From 993acb8a2cef56040feb8b514ee2baf4faa79aea Mon Sep 17 00:00:00 2001 From: workcontrolgit Date: Sun, 5 Apr 2026 10:56:51 +0000 Subject: [PATCH 1/8] Initial gh-pages commit From befaeb31b6b54967d619c66a72465d305a88c2df Mon Sep 17 00:00:00 2001 From: workcontrolgit Date: Sun, 5 Apr 2026 10:56:52 +0000 Subject: [PATCH 2/8] =?UTF-8?q?Deploying=20to=20gh-pages=20from=20@=20work?= =?UTF-8?q?controlgit/AngularNetTutorial@28a258f77214dbfe345eb296391eaafc2?= =?UTF-8?q?82ef338=20=F0=9F=9A=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- 404.html | 80 ++++++++ data/dashboard.json | 28 +++ data/menu.json | 94 +++++++++ favicon.ico | Bin 0 -> 15086 bytes fonts/Material_Icons.css | 23 +++ .../flUhRq6tzZclQEJ-Vdg-IuiaDsNcIhQ8tQ.woff2 | Bin 0 -> 60840 bytes i18n/en-US.json | 154 ++++++++++++++ i18n/zh-CN.json | 142 +++++++++++++ i18n/zh-TW.json | 142 +++++++++++++ images/avatar-default.jpg | Bin 0 -> 4284 bytes images/avatar.jpg | Bin 0 -> 28421 bytes images/matero.png | Bin 0 -> 7730 bytes index.html | 80 ++++++++ main-DM47CGWN.js | 189 ++++++++++++++++++ polyfills-5CFQRCPP.js | 2 + silent-refresh.html | 12 ++ staticwebapp.config.json | 14 ++ styles-3APQE4AP.css | 1 + 18 files changed, 961 insertions(+) create mode 100644 404.html create mode 100644 data/dashboard.json create mode 100644 data/menu.json create mode 100644 favicon.ico create mode 100644 fonts/Material_Icons.css create mode 100644 fonts/flUhRq6tzZclQEJ-Vdg-IuiaDsNcIhQ8tQ.woff2 create mode 100644 i18n/en-US.json create mode 100644 i18n/zh-CN.json create mode 100644 i18n/zh-TW.json create mode 100644 images/avatar-default.jpg create mode 100644 images/avatar.jpg create mode 100644 images/matero.png create mode 100644 index.html create mode 100644 main-DM47CGWN.js create mode 100644 polyfills-5CFQRCPP.js create mode 100644 silent-refresh.html create mode 100644 staticwebapp.config.json create mode 100644 styles-3APQE4AP.css diff --git a/404.html b/404.html new file mode 100644 index 0000000..c8c569d --- /dev/null +++ b/404.html @@ -0,0 +1,80 @@ + + + + + Talent Management + + + + + + + + + + + +

LOADING

+ + diff --git a/data/dashboard.json b/data/dashboard.json new file mode 100644 index 0000000..93b5aca --- /dev/null +++ b/data/dashboard.json @@ -0,0 +1,28 @@ +{ + "dashboard": [ + { + "type": "Total Sales", + "amount": 180200, + "progress": 50, + "date": 1427207139000 + }, + { + "type": "Revenue", + "amount": 70205, + "progress": 70, + "date": 1427412725000 + }, + { + "type": "Traffic", + "amount": 1291922, + "progress": 80, + "date": 1427546580000 + }, + { + "type": "New User", + "amount": 1922, + "progress": 40, + "date": 1427891640000 + } + ] +} diff --git a/data/menu.json b/data/menu.json new file mode 100644 index 0000000..09c557b --- /dev/null +++ b/data/menu.json @@ -0,0 +1,94 @@ +{ + "menu": [ + { + "route": "dashboard", + "name": "dashboard", + "type": "link", + "icon": "dashboard" + }, + { + "route": "employees", + "name": "employees", + "type": "sub", + "icon": "people", + "children": [ + { + "route": "", + "name": "employeeList", + "type": "link" + }, + { + "route": "create", + "name": "addEmployee", + "type": "link", + "permissions": { + "only": ["canAdd"] + } + } + ] + }, + { + "route": "departments", + "name": "departments", + "type": "sub", + "icon": "business", + "children": [ + { + "route": "", + "name": "departmentList", + "type": "link" + }, + { + "route": "create", + "name": "addDepartment", + "type": "link", + "permissions": { + "only": ["canAdd"] + } + } + ] + }, + { + "route": "positions", + "name": "positions", + "type": "sub", + "icon": "work", + "children": [ + { + "route": "", + "name": "positionList", + "type": "link" + }, + { + "route": "create", + "name": "addPosition", + "type": "link", + "permissions": { + "only": ["canAdd"] + } + } + ] + }, + { + "route": "salary-ranges", + "name": "salaryRanges", + "type": "sub", + "icon": "attach_money", + "children": [ + { + "route": "", + "name": "salaryRangeList", + "type": "link" + }, + { + "route": "create", + "name": "addSalaryRange", + "type": "link", + "permissions": { + "only": ["canAdd"] + } + } + ] + } + ] +} diff --git a/favicon.ico b/favicon.ico new file mode 100644 index 0000000000000000000000000000000000000000..57614f9c967596fad0a3989bec2b1deff33034f6 GIT binary patch literal 15086 zcmd^G33O9Omi+`8$@{|M-I6TH3wzF-p5CV8o}7f~KxR60LK+ApEFB<$bcciv%@SmA zV{n>g85YMFFeU*Uvl=i4v)C*qgnb;$GQ=3XTe9{Y%c`mO%su)noNCCQ*@t1WXn|B(hQ7i~ zrUK8|pUkD6#lNo!bt$6)jR!&C?`P5G(`e((P($RaLeq+o0Vd~f11;qB05kdbAOm?r zXv~GYr_sibQO9NGTCdT;+G(!{4Xs@4fPak8#L8PjgJwcs-Mm#nR_Z0s&u?nDX5^~@ z+A6?}g0|=4e_LoE69pPFO`yCD@BCjgKpzMH0O4Xs{Ahc?K3HC5;l=f zg>}alhBXX&);z$E-wai+9TTRtBX-bWYY@cl$@YN#gMd~tM_5lj6W%8ah4;uZ;jP@Q zVbuel1rPA?2@x9Y+u?e`l{Z4ngfG5q5BLH5QsEu4GVpt{KIp1?U)=3+KQ;%7ec8l* zdV=zZgN5>O3G(3L2fqj3;oBbZZw$Ij@`Juz@?+yy#OPw)>#wsTewVgTK9BGt5AbZ&?K&B3GVF&yu?@(Xj3fR3n+ZP0%+wo)D9_xp>Z$`A4 zfV>}NWjO#3lqumR0`gvnffd9Ka}JJMuHS&|55-*mCD#8e^anA<+sFZVaJe7{=p*oX zE_Uv?1>e~ga=seYzh{9P+n5<+7&9}&(kwqSaz;1aD|YM3HBiy<))4~QJSIryyqp| z8nGc(8>3(_nEI4n)n7j(&d4idW1tVLjZ7QbNLXg;LB ziHsS5pXHEjGJZb59KcvS~wv;uZR-+4qEqow`;JCfB*+b^UL^3!?;-^F%yt=VjU|v z39SSqKcRu_NVvz!zJzL0CceJaS6%!(eMshPv_0U5G`~!a#I$qI5Ic(>IONej@aH=f z)($TAT#1I{iCS4f{D2+ApS=$3E7}5=+y(rA9mM#;Cky%b*Gi0KfFA`ofKTzu`AV-9 znW|y@19rrZ*!N2AvDi<_ZeR3O2R{#dh1#3-d%$k${Rx42h+i&GZo5!C^dSL34*AKp z27mTd>k>?V&X;Nl%GZ(>0s`1UN~Hfyj>KPjtnc|)xM@{H_B9rNr~LuH`Gr5_am&Ep zTjZA8hljNj5H1Ipm-uD9rC}U{-vR!eay5&6x6FkfupdpT*84MVwGpdd(}ib)zZ3Ky z7C$pnjc82(W_y_F{PhYj?o!@3__UUvpX)v69aBSzYj3 zdi}YQkKs^SyXyFG2LTRz9{(w}y~!`{EuAaUr6G1M{*%c+kP1olW9z23dSH!G4_HSK zzae-DF$OGR{ofP*!$a(r^5Go>I3SObVI6FLY)N@o<*gl0&kLo-OT{Tl*7nCz>Iq=? zcigIDHtj|H;6sR?or8Wd_a4996GI*CXGU}o;D9`^FM!AT1pBY~?|4h^61BY#_yIfO zKO?E0 zJ{Pc`9rVEI&$xxXu`<5E)&+m(7zX^v0rqofLs&bnQT(1baQkAr^kEsk)15vlzAZ-l z@OO9RF<+IiJ*O@HE256gCt!bF=NM*vh|WVWmjVawcNoksRTMvR03H{p@cjwKh(CL4 z7_PB(dM=kO)!s4fW!1p0f93YN@?ZSG` z$B!JaAJCtW$B97}HNO9(x-t30&E}Mo1UPi@Av%uHj~?T|!4JLwV;KCx8xO#b9IlUW zI6+{a@Wj|<2Y=U;a@vXbxqZNngH8^}LleE_4*0&O7#3iGxfJ%Id>+sb;7{L=aIic8 z|EW|{{S)J-wr@;3PmlxRXU8!e2gm_%s|ReH!reFcY8%$Hl4M5>;6^UDUUae?kOy#h zk~6Ee_@ZAn48Bab__^bNmQ~+k=02jz)e0d9Z3>G?RGG!65?d1>9}7iG17?P*=GUV-#SbLRw)Hu{zx*azHxWkGNTWl@HeWjA?39Ia|sCi{e;!^`1Oec zb>Z|b65OM*;eC=ZLSy?_fg$&^2xI>qSLA2G*$nA3GEnp3$N-)46`|36m*sc#4%C|h zBN<2U;7k>&G_wL4=Ve5z`ubVD&*Hxi)r@{4RCDw7U_D`lbC(9&pG5C*z#W>8>HU)h z!h3g?2UL&sS!oY5$3?VlA0Me9W5e~V;2jds*fz^updz#AJ%G8w2V}AEE?E^=MK%Xt z__Bx1cr7+DQmuHmzn*|hh%~eEc9@m05@clWfpEFcr+06%0&dZJH&@8^&@*$qR@}o3 z@Tuuh2FsLz^zH+dN&T&?0G3I?MpmYJ;GP$J!EzjeM#YLJ!W$}MVNb0^HfOA>5Fe~UNn%Zk(PT@~9}1dt)1UQ zU*B5K?Dl#G74qmg|2>^>0WtLX#Jz{lO4NT`NYB*(L#D|5IpXr9v&7a@YsGp3vLR7L zHYGHZg7{ie6n~2p$6Yz>=^cEg7tEgk-1YRl%-s7^cbqFb(U7&Dp78+&ut5!Tn(hER z|Gp4Ed@CnOPeAe|N>U(dB;SZ?NU^AzoD^UAH_vamp6Ws}{|mSq`^+VP1g~2B{%N-!mWz<`)G)>V-<`9`L4?3dM%Qh6<@kba+m`JS{Ya@9Fq*m6$$ zA1%Ogc~VRH33|S9l%CNb4zM%k^EIpqY}@h{w(aBcJ9c05oiZx#SK9t->5lSI`=&l~ z+-Ic)a{FbBhXV$Xt!WRd`R#Jk-$+_Z52rS>?Vpt2IK<84|E-SBEoIw>cs=a{BlQ7O z-?{Fy_M&84&9|KM5wt~)*!~i~E=(6m8(uCO)I=)M?)&sRbzH$9Rovzd?ZEY}GqX+~ zFbEbLz`BZ49=2Yh-|<`waK-_4!7`ro@zlC|r&I4fc4oyb+m=|c8)8%tZ-z5FwhzDt zL5kB@u53`d@%nHl0Sp)Dw`(QU&>vujEn?GPEXUW!Wi<+4e%BORl&BIH+SwRcbS}X@ z01Pk|vA%OdJKAs17zSXtO55k!;%m9>1eW9LnyAX4uj7@${O6cfii`49qTNItzny5J zH&Gj`e}o}?xjQ}r?LrI%FjUd@xflT3|7LA|ka%Q3i}a8gVm<`HIWoJGH=$EGClX^C0lysQJ>UO(q&;`T#8txuoQ_{l^kEV9CAdXuU1Ghg8 zN_6hHFuy&1x24q5-(Z7;!poYdt*`UTdrQOIQ!2O7_+AHV2hgXaEz7)>$LEdG z<8vE^Tw$|YwZHZDPM!SNOAWG$?J)MdmEk{U!!$M#fp7*Wo}jJ$Q(=8>R`Ats?e|VU?Zt7Cdh%AdnfyN3MBWw{ z$OnREvPf7%z6`#2##_7id|H%Y{vV^vWXb?5d5?a_y&t3@p9t$ncHj-NBdo&X{wrfJ zamN)VMYROYh_SvjJ=Xd!Ga?PY_$;*L=SxFte!4O6%0HEh%iZ4=gvns7IWIyJHa|hT z2;1+e)`TvbNb3-0z&DD_)Jomsg-7p_Uh`wjGnU1urmv1_oVqRg#=C?e?!7DgtqojU zWoAB($&53;TsXu^@2;8M`#z{=rPy?JqgYM0CDf4v@z=ZD|ItJ&8%_7A#K?S{wjxgd z?xA6JdJojrWpB7fr2p_MSsU4(R7=XGS0+Eg#xR=j>`H@R9{XjwBmqAiOxOL` zt?XK-iTEOWV}f>Pz3H-s*>W z4~8C&Xq25UQ^xH6H9kY_RM1$ch+%YLF72AA7^b{~VNTG}Tj#qZltz5Q=qxR`&oIlW Nr__JTFzvMr^FKp4S3v*( literal 0 HcmV?d00001 diff --git a/fonts/Material_Icons.css b/fonts/Material_Icons.css new file mode 100644 index 0000000..95f3add --- /dev/null +++ b/fonts/Material_Icons.css @@ -0,0 +1,23 @@ +@font-face { + font-family: 'Material Icons'; + font-style: normal; + font-weight: 400; + font-display: block; + src: url(./flUhRq6tzZclQEJ-Vdg-IuiaDsNcIhQ8tQ.woff2) format('woff2'); +} + +.material-icons { + font-family: 'Material Icons'; + font-weight: normal; + font-style: normal; + font-size: 24px; + line-height: 1; + letter-spacing: normal; + text-transform: none; + display: inline-block; + white-space: nowrap; + word-wrap: normal; + direction: ltr; + font-feature-settings: 'liga'; + -webkit-font-smoothing: antialiased; +} diff --git a/fonts/flUhRq6tzZclQEJ-Vdg-IuiaDsNcIhQ8tQ.woff2 b/fonts/flUhRq6tzZclQEJ-Vdg-IuiaDsNcIhQ8tQ.woff2 new file mode 100644 index 0000000000000000000000000000000000000000..34cdd2afba56b9dd3c7f0e3b758069a92db6b7bf GIT binary patch literal 60840 zcmV(+K;6H0Pew8T0RR910PUy%4gdfE0=B#W0PRo!0RR9100000000000000000000 z0000Q92*cEf{-c(U;vRc5eN#1h-ik3YzwDk00A}vBm1dIum|XCrc=@OD3= zD0NpAa-00~<3+*Pwc&OI?aiH!uVCXUGw2SG2-kMsWdHwvYSNIyk}FBC3f66=N^t=L+q;3n}>;b$!DFrV=% zpd6c1BUw3l@+F68o5usf11g|k6gGllV@|QK603Ssx3*TUN*88r+Cx`vjkRc(;g2|b zO>zm_f@eu*QS>DH^Z~gY77z!(+;xDs!ky5W?kp+qXRb{C-bcd!PGe2HqFMB#Bq?5WS04qBYTKk!C5A z5|wc_6Om#0{OZeOQl$;KkP9_JjZmXbja&#XqU-d()6B2>no_5XL$)o$p3IrI+I(Ht z#9@puMu@{;#f91AW*$lm~YqgEB7Bf$ciO z)tR3Ex%^))&)vI`^ePk%V>U1Bgtlbf#8{3!$5Wa^eP>Hkbm+nTv<$-3nF=j|ATRlJ z#ev?2a;m5Hch~+5MUYO063FrpQs-cqM~T|`^R>Up_rMSsSOzR`s0@Z7goe(rS^5C; z=9hTzPOYDjAI?Y*+bohSwOt}xF5Gd!u?Ldqr;awOpI`ac{-wY!2MPyNSU&0=Q5+v| z59Z6I{>(qlTt}k?Lt$Blf`MCh3Ou7ptVP-=E1l`wz_l6iWpEv!I_B1vp00n8wo0MNJEeR-=x{7={Clqo7Lv3-ZBdJ zJ-kP}hYN@gBqaf&Ws#0lCM9`HC*lF5Ku~s`vrZFok|)X=QYgx;LP$lkRk!W(eEmJs zd+e_z3G4(Q^=)Tf@R|uM3rIt@{=QVLE1EPtq9f!<@I9lY&;063`I603>+{$aILZ zG$AEv#yD|UNt%{TpMq!7MK*qfOe~51XAKh;(#G=S& zmZ6~RuB2Ia$z2KwfY1R1fEvn>R)K&xOZLWH2qob0%Fvo{P=gxY*=3wyIS1n=nm^$|M!9YFUQ}F z(9zG{7sG19lLvMAzboSkf3NPWiLR*!=2*>E_G_iJ4tg14q{-%5I+{jmN*+xDkD;$% z@TZ|~c7V<))H#6~$57=6DjY(Y11PZ%MK1U>3-8y*)KfDCByMNzW`obDi*9wSwq;qZ z-r(KpEuU$i(6X7`99}J%;gkZ72oX^@?6K)Oqw3j%VV_u7hA7*D@pOh~3{)mZ?hla6 zlzIA0B@1ooZjr3CwabxgwVi7t*=q-K|G{1CVw3K($;@w7ds&CJ0iXBTj_&I=%l3X( zOE`v(3njb)LEOimu_2+uGBXa^%eM+)NtqhyDsT7Og^`6XU3X%1%m`A%N;W2i%<>a= zl8=+GIC$*TnFkl0IalcDyHr=h&DW{kdKZ0bS^ghOd-n0}7k~8N5oz^bEsB6fVF5}A zKtxIk3rEqQ;3No52}vj-;4?LKwT}5-iLg!XFa{E+kJzx`)e@v*I{C@S<3kw-4jLddC&$fH&ZKejzxB1^(k`SvE0n;67%Ru}n1i=ZBWEQ#3z9dsrS!?${qrQ(+EjUL_Y}4|00NUBm-yco$5w zSF-Hx&q=`VyVezruCpkMbV+Qt&}0Rx-nw&Sh1ckH{Zp~Lne}Oy+3fFjERAW_NM50A zUpOO9g@U>Au|_YcL^$5?Q9g!*-SQuTI6Yk4x@GG z5G--ej4E--2Vr<_=sAqR-?v^U!P$cQwR)LQ64&4cPe4a($iUQNS^5Pga!XIkL=TdK z82*+_O{7M<5Nzw$4PvFZ7DN;{4$lcR*_FYWvFgg&3oJkLuZFbEjjM-SZmn~LH`yL% zV)1pcx|+7}^}w=L*BTXX7yEx;Y)wcf^|>)oPvS|#Lf>`|bG?~>exuh-UqlDsN#?_} znq3(fhv^vQ!EX(?=mWXo*4%sdl!W;=ww`~Vbx}BrBvB96Fqn3zbeyI^JBJ=8Sl&n8 zuM{hF?A@kqBB{Qb95B&d51MrEi%SwYPj4Qi#WG{eIVL;T)0^|~*6_XAq7{3&^-UHx zVn9X%j0$7`2pwnfpvs0e^EC81;+9B}$z8G%c@$PwZSitd*GQ2*lsdCNa){X9>e&EZ z^wYc|Nh$y9(2}~aIGd|N ziCpJH0p45H`Xw%Rf{`-mbo-Nr*ypT6a9PGaj>gGuG4kV?GpcQa-0{-lX#l_53e_yx~Q=o zf35}ET)<}YkbqFfx;DMFVC8PpAZ1$`ONn6-iNmhLtdAJiL)>a|(!76Qwuq$k7EW3h zOQ`{Q;zcv6CZj&f zpC|CgGm-xS&%L>Ha2M#5o>!-y#Lj9y!s$3i{P7Srz_ergWs3)eq4M2&GPHj{{yl)U z7_*A6*R_fGQzHqQ!4b@dHZwz7lZszaL-v;Y4VxeZx)XVi$*d8Hfl72s$tB_lNr~?P z&s?84z50U&r>|YEaW6oy6CRcBwCj7;KmKZtsZ3$E6ZTkId)v!4S;89cNPtj*juGw< z?o>IDuuYdU8j8BUDug6-sk#!OMt8rRIA~_au17w4$bv`Y6oFw;G1EzwJpP!E!zJfC za-}n89~|D#(T%NoFG@WqENQ;&^0iy-pxC#j?aKZCOA$C?ZYu8?^uuVfkXPe9$w($t zHm2nY7WMHgN*kBD29@lPcC$Vo+1TE;xI$6kAsr9z$hiD-&x?bW;g#S9PylY+jV2+vb$PVE_*ju?J@cRY-LCD`Z~^Qpsg? zD~PgL23gpKXfQtW};T5AO|! zFPc`XfsU$AGF*J{jA|kX*f?QL2>3)b19&-*w_ zBaG2Avgg^RkQMZKaLDB5c3C!Sd0?Jf0WY$?Gtt`fWlh;p?77XZqflMF6-2E%dtLer z6oadqMU8g@;>DXOaklB_Bc8!TsIW(R1>d=*VUJ5OLfNHz_mBjbg)z6DPawG|rZ0Us z3jASwq&J&2ZZIV-JciK&7WmK{sC)|6e{c_hv%9r^aNk6!NSmmCl@L0wTH*kw|$HRFdW?>blK1KD* zrA<;AE%hwb=hJ(2;;fvztQMPLvh3zG)Tp$6jQe(2)^37(&WgKt-lSv_*Z&wf5EkV` z*cA^ZMvH<=%$MJI6yfpI|2MleusbYSbm;LXPx{hTY!d|ezW?R=In5;IbYRXCc3*wB z<$JlEJ+DUt(1Adq00eTvsB>VHk~%viHjLW!RwSROq(qf9(}x-bOWMs_HhIrJBNHP8c(h0}qfy&`xrg9Zf6F{*1+n*sPf5tX{Ab8(F9nHXa0N;N^y`iE( zedE+P#F2yqB->o>Co&T38vOitzKD_4ad2e$*EvNOyr9%y5QtQK5`AyuiZO-6X1)29 z3S0Gi8u-N5-Mrq`M5#@7Hr@m%yKdFIiM0Kq-^rLyrZ2TPA>#wJm|4dO6kvb-t*W+N z`9vw@y|Av4qG}E~UkDKH7zwVT56A395@_v>32p1dc=~qNY+;%Z|H8qu?^{v3fW^w^ zeX@DOU)IZgd#=ALjKl3+8szbH-FbPJF(s7}XYX@&Yu-~L@Zrs~3=Az9B4&TWGTB91 zpzsH>Sw-+fhl`qHjK4)m1#k1aP5NTWhsj|-5=p6YRH1xkszU2^Y*4UX=Oj%-lbTMT zPSA*nx*828UajOl&LS-yC#ud)-l$@OUQpm+FX7mjgfSxf9QuUC(v*kZP~HU|)~$L9y=NEf2Xa_#LNvQaLeF*!VM;xJ%jhT`#btK`RP+)eS; zQjV0;>7JZ&3CR)i=@if=st0)2h(0~Yg&2io+dCEtMy1xWc^mTN;0Sj-tTnn=Ccp-4C^wx`xRDH+@Lu~ZN+w64U~B_??cbv z9LYk;jzgcnws7Q1x;XN;#D|_{X|aeSU>2@5s6aEt|IAZ83t4%`cLE&%a3V3~p{QEb zQ{L?=`44of!IhhNF;)q;*fw*(wvgL>_j5m(6i6z+-{ai_HEBapt~UcK!Qz_*rvt3F z&E)PKfQyRtOg3HBJIH=WzSpI#RQpnGNfm_-kh+q>xr-C7+>RN z35kpvNEVEqpLp&~7rxS+o_~X*D=$>_Ry3-sxY??zt#;P8V#CudhL_$MyYbH5UAwiD zo$r;n0vWjnENWQJb7{EHBY#nPE_Ytlzc?&eg=*#$3dMFl(xh$c*&y06ssMn3QcPRp zJGPFb|H5MtuB;G4E#yeYMRSf)oQhIks$9CH8moQO+pF%PnI1e6BIt5Z0|^W_^X#Ni z&?%r&F;h~Ln2Kbf@_l$C(xCXCLUAPkFtUBxCp$NAze4_&>tdAtM48)`1QC;!yQ|F{ zlm^*lcwv$)Hk6P3)^8dDBHDrnwSW`-9Ine(E# zU2E#S5!kZevwT&S!&EP(XZ6CEt?s+n7>!@F)B(7ZUqDFnX}&hXP}SCP$IF8d;HV5G zQ}o6gldI`Nx>~^kSLetc`J8mlgE<7% zZ|^r_{wy7U@>chm&7!>Uhh+TN>Fz{l(ecxeZ;-_S_1jmIMRs5%*)`>825qv~NYO22 zg3ao-m?i4c*F|#*b&>5XcOP{O^taWOAd*?GxM}wd)vb1)(xOlUh;aL@9M}Y@0v?3k zCT7LcHwZPCeg=(Q=D?Oq(V%UUm*5nbcL~JI|L&oMe1%D4*|OvPf)dvVD0MLx-`?tf z{o3CYF?gBSiNi)Oa}`(vG2bh{d+uPuZt2JS4Kf4ekYC?38amcGE(N8`j@>;ygYJ`8 ze=_bl`-ff0$b4*=?klSLFT2N1Ekb zdph3Xbl$h+pv-Qky=ZT5%$wxR`{vl^=)oY_AD4S8CiM5RLDUfBPb6;<9_W90-FKHaqT`SH3qyP@@)hxbXyqCZA^N(-Isgc~G`9l`M%* z`hN7Z>Hx-%o(ug%0>R-#!1S~5NEzz{m>2wwZn79k)jX^RgGo;08ioLqC<_m#7xC%U z0-{%clP_K>^6xZ670NsfI+*Li7AW)BU2dPxACM;>!fNQr-+3Jl4@RZg{UF5ML64Mb&Hp<-tcR(#y6lzzsj$Kg43CqO>CJphY+?x{ zUsf&Z)?lOMt#x+~^kgr#cTq7!G}I&qg$jLye&Q+TbdW(2d`lCdH(7DQ_~+yzxhsfn zb3<`zOpjtK#b>?TZ7H4J5=fgpV8p%V+cnp1R%3cmp}Ns>SjsLs5ZuCS)pbI1U5I7X z>EFQAOu~r}38srP#CO&%8q_toy`Tj2@IVw8-*m7`bmw4*;j9^&4IV2-+)Qmynr`{Z zE2$8okC(MUPAxC6KXBp^2U>Nz9EsC7t*vIiHgB=<45HR?=ME(1X5TY4J z-6bNA3Mc9uTqMESzStKi!7*&*3iBQHtQkTrPN6Yr&&}9wA+>S}%Bp*|gXQ<9Sl55e zZOR$81E}lDwA9SB;yg`0R~SGH@c+_|dBiVT0+fazHvomsT=kd;7JsX)EGzR7b5eSm zIf3Al_LKm~o{n1vvhhXpN^u(3Bjw50+fBI3jLw|JvTZg9#mv3|}B^Ajb-ULFWBpLyRCC6;0&*4PwCpoZ{~{=eR+ZI_;G(|Naia zsih^CGoJg>C$r*vDlzw5c{`<1*qz_`juTtW`t6Y%%@o{Sc(<5{meqyZdkuUnL9lj% z?ZPX-yVk9qKSQhJ`ZaPV&3jQLe&l_)D|gWKYhc6F&5!AtV(c117sQ&W~au9 z^VQpOwu9bu9!|p1>CC-o=d~_wyRGHd&LNUDE)$*hoSn%jCoU5TbWEU7@UcJ&VdI+_ zE#`U7Dv>FJs=UkBCaR`XH5Dn9x2BtAX9lLOnK$#qdpDLSk9^~&3k*#uI%-&Y!F(jo z5aI1*J(vJfFQYX^xn!@Ja@Xmi{xWRDWOg4;!Xh;mGHq0|t6bXXC(BdwHWsI!fwj}i zPP!!%q;YKQrjUIhf4o+PIzy%LX4QBx(Od#0_iTh~d{iji$E}G&W@VaYs=W4NMSzwH zwTv@ZMsKcJ?0V>_HHOzZF!{W><+2C!(7ImFi`YoV-P6YpsbL|uv`kvgcQ+f# zYR0EWrJ!@>Ckm}+E=O~{o@sHz^kPK|A*!IcTW!X=!&7sVLg_0eq26;0b|br)jd3P^ z6KJUSo-?MWaA`XnaWX3ecsc8>fW*unTzeBwLq*QBW~Vq%EaO?y*pTwkyIxxa4~d%Z z4YmDnSa^ueniB^>e%KpW986K?Onp1-3Wzi*t|~hy<3E zdaqWCbZdDZn7`*rPQ|pQ!bgbQ4|xh;%U!vf9A69=4fI02pj=)hvtZ;W+X8M44Msi} z!_$nVx`b%>;_wp@C zLo5v6qLv{T!u^uIxMA5_6QM8CixZK$V(g9;0fP*g;yd4#f30|sSA3DEUAGyd+FpVH zyyH{glp>iR?ftfLgT+pI(E>;L{7G~!XEC;Wh*5{yE%myc<$wEp#(|-a#rRBgD$_XU zXW0D5H-alL+yF#y!3IMO9CR>ru)qVpkb}VZABC|8-YUguAZ5-Uf#g0YLox|Xa)uYc z^w!R#4`2t4sAr6rvok3w+N4|Xq36Or&%D7YASajZqy0TFg{*pUWD_xv(h0kJXoU59 z?~k*Xvc(%>1QIkan?7Wvwdqk*V9ONx8`PE>S6b{Y&yEr3Q;{{IWmE7TUIJ&&W%d@d zMSf768;1#J#~;q0^#KX@&?TMNY@q^Myq;}yDZ9(Rv)z)!jR3wwy&DjTp}O^)QY0fW zne9^i1emjr=Lb>!lycr0ZzNn=AR(=3fNHFpOTG*{SCXkLqoW=$>;x_m&`?YB^~@dr z1Q+djfZPzo`T>AaYjsHN_%s1V?sO4{u}Qwy;u&TAo`teL=esRYdf=T4KV(3*Q$dH9q+|pBw>fB#nN+kMrDl0X~2YsPi=N;g0f6j^6jgH1tPKmU7emhII8dv8guUc$r^wd zr-M@qkvmp0H1JAc0FS_8T^tM8ncMr;y)@sd$8}X{)Ei4-!?(!qq1U-PR+vR4%!!Nr zT(w@o8VOXL`Z50)03r`+y>I-;Tom~k$iXi(U_$9iIBRjIO16O`AVMyzdQ_kK>c47!sY@gq=?<;B;5 z`tI>Q(Iq^9GMPDu1>$$e-rVrwSropvrIwU5q~Pu{TuMLq|{EUR&olwhXr*Zn4b1J|&C9Gi1&#=rqf+1!%6TZiB2a6u8Or)0_lT>#C zrm}KKP=uk4w_{JjlXusZvQha?Q5}{8Leg@GT=rhGO2`)ae>PXR79flhpXqk9IMB zCW#f1>p&>o&GK>j4Hv!I$yYx-b6o1JaJpDJPx&15dq|&Yt*MjxxEkugr!stQ1ph-HIy>kx#p`ObBX!t4NevDUTM-6 zudb*^gD9zGZ*OGBx-}}-OE2oaYGVAC3SN~Ij52yHVL(E=0QHJ~xDZh(e>1HyQ}!~F zR*~2*#szr=YO^pq=PQDA!2@=15sn*7^&qv@DVX)QEsf2gSnObdBo9{vhd{dk19Bku#o# z*?j-dk~`(P+(X5@CElCo(NtJj=xBko9h2v1s_d2O1#lm#pp)3>JY32<;qHFf9Yyed zs)CUd0jWz7z_3Zf#0;}MVpWl|@YuH`k;f_-G<;|U31s#Tki9$%2L`~3K0B5;Q}L0g zS;+rw>DTT)3q(h45c^rj`SG9L&1ELq=&T1;$VtUF)~m;v*kRmU_<7Pe$fk00rwaUm z!5!UTb?a3Pr3*$$n1VN}#&1ZU){Cq2(LaIG28vt%I2ro#+|Di5y5e^!F5$V)c(4G` z>(FqUJ>6?ftD{D5Tn0~N4o&CGPdU2SQd{QBW7#XaoOOJ4uj%!(Xz4aZOK*(Lc;jxa z4Q+|7v^m>>?eune>mM2g5vnVex`(TBI+X`GVe0F0J?ZT*NY&^DCju0O1s0(~(pL2B z&D$&LiFfH4+e*J=*~j&rUQCgwDy%3yxDcrJ!0^36J}E>07BOqdHN0NZJ|2dZp&bx^ zUm!%oN`m}HsyMP#x+HI~ir301%8Gi6Dx&FcSn0@5jPg5PnDq&PEG#_4)rc)!YVQG$ zVh32e0NaMIjnf_J6^7M|=5~hKf8^wMomoWR33IpQxdwz{fPhED=DZWh+r~OzS&5AHcUAa8Hx6ty~_W1~#UtUqC`3LSJ%6 zNY*BI!^Y2E4#wwMLklkZH2qh;2@-RCxksQq>~nE4Z8%HUITEhD0#M4}iWxr0KizD& zg30)J?9B{FD=@;vHoDav8-CjDuP_6p)g5SQYUdGG-#df&Az!7Ic8v0}OsfggNte@i zpvsN!^hR0wt%Kn{`J6!8mi50uQq(_*9HskTA;2qZ`_eiw7p`=;zSe(!=4lK+vFjVz z^G-KR9^aAEIjidsWxf*E^_pJ1%{QlwZyCRmD0)^Su4hGZ9wvva4Zb_(Ia#97Y33Zg z+eL@3eeANcJ=9;cE3Iy|RQvn#{l(*#Z~yGmA1V7#9}Es22Xbg1P9Me(<{(FL)H%8w z!$)~MejGkNIP$3wQ9E%?;KWY)boMlQx_27RGf~Mi>uh@l=ft^rZaH_JXV2-`Ux6du zL1Yu1SSZV6+t?v?nO$Q`>;?PDaim*FEE0!%@Nk~a%lTe@oVW8)&gYN#EB+l&Sq*7Et-Z>lG5^-LM|lM`>SIc2!}&b--O9_aEE>>)z8JOg8QW2# z%vQM74#&7$YaFz)9D_#_pClrZ^H> z-(E?^a-CvL=OjbKa!=W#D8(B^AZ<)2XWl_E7a0Fb{FUq!@ad6WMV^H0CN2~@S4Vw> zD#0&RW8W;s&9sTDiYjEecvO73OcL(~YK5lmny2q#9!jmawA|~ohPvr%A{X-Q!TcFj zghnut5yd=4B3HdyMqOh9*)+R`9buche}ZQu7Hku$CVslMR$*An=H;Avp&EBW&|4^& z_kW%72`!! z^(l7L*~?t&2^hT8JCmtq97e;PZT?{{FWqAa<*t7cJE{uC|156r}tN`A5#Nnb5nuW6Xv>=DLisxic_e2+9BxuT$fpx;wUdT zFz{g$n>t=b^7%r!lXy~Gyfa}hY_$Cg@dlmH{g$zO8G}vOJgk@a!s9rruUVjKpX z60fSGXbvXSFIOih5Rc4?;Z8wc6|^lb(Dk&9;y;C!>B^vQ+w!5kSx7chYUq7_WpG#+ z0Kr3O@-M(AR^1xD1HlD4(@7dxVYsp04jOxVB6t!F?;vDy@Yz^*osdP)o9eQQ0eawb zu=9|er`{!oXDe0Ay1nkDfZ2x?ga-E+j(H6nieF0^tq_^%VZ~j*U_*F5UJ$Uffe+-T zfq|rMww~5&y8zbOo|;G1ec457Q>)SP?RZs_}bQnI&WLwWgD(a+Lj-{QmM;gUz3H0U-DCl6c2q$`ac!lC2A;cBgDJn9?`Tn zzD>|R=qO=&y7yISC%xV!+%vuhbA>;I^^YI*q4QWIIx6j1O3?pu?D{lS)6A=r4K0M{ z_4iu7X4x+GZyAbb*cj+bLBPO84;gZJG9LVrcto3=P4e{FA@YMIEma~-j6^}UB5jGn zk9w}sX@Q{@z+P5uYb5r#qZ0;;15&|(0!+pkN1y&gfQ%)<^D+Vuai;;`5pBy=`g_5o z>bMd%7egE~uiCZvPDLY-cE!V@Yw{UNPbBBel-0jZ@VHkwyPv8NN~U_t%YFS3vJAm9 zO;%TZoa^B3CipX+t~9dcgdnNGR}-{HkS!{epn&`lqPS_321LaS73wFtA+Y! z1i}E&+Ih4LuDx>y0de2mGaxCq6`%#$EM4 zRU5vipx%3U;oerk!u9XGAAJApf$jf;)h0 zJA82do;Ebfa58KS9k$ln-{E&kL-dE7rH*AA+&gQ%e~amIPoDG=NG@@wZbd%bh5vRl zXoG|W**4XuStVQT18q^~u7h=Pm!N5tX378OR&r1qLrk{N>e+!Dt42K{^qu|&!JctK zf!!f?pAURZC%axaeuWuZEUl_H5(~Py#Ex$7{PjK=khx%=& zkKI&NPyR!iTnsGk~!Q$g9;DN~TX|msv)4EzHB|xgVkq!)Ppal*sD6 zv)Ej`jbn<;GglDQ_03pn90j2Tw=MSz$~J_`s!zrm<5+fmB-AGaq})3PC8Prnb~KzF z!UC&Lr>G(0UE*ALfcoA}7zy_EoWOmdq3}+laZrkAh0*p`-uPt&u;I#{=a_G1+Go?b zsesO*n#ZvTa5!)+I&VVxc478j4zj@M*U#L8g`?$@(nrSTTxFi`TEm%4^9R~7<79xm z)6DXu7wvEVLxewA+~{~>eewI4ZNFQ-2GNO2!jU-_Kx?Z zrd_%JnLesnF^As?9pza1rHx`l2-Qqq7oYX7epGCDyZ9BRRb=326InhI>c8ru z$7@lIzjH^6#du=IMYE|?{lO$*A0FqFX?Jd9w-~*+ALGoA>4C5w5V}Il$S_r7C8L&c zCO+Fn65{>NF>VokPk_hO1)`+je5KWYWZx;l=<3g+ksFr2)(`1i;Heb3@bu7TJ#DFK!uuenIzJQU~#RumZ6EM}B*@YC{1s z7~m`&L0skgqkQ9XE&e(XD(@_*(pXj5KsqX?BJxKgyU7pUnlim0H8E+%-B&9E6WljchWt4S@IP+xPMWNl(!wDbrt(yldZR^R7BclA+quMLuB46~?4h1UnmNE>j&O=IoTrsb zbka>9BTUd?#+m~cghv3p`0&eje({(8cPMR4;+TLWB>TBM_pbmtxYQMZ6f!77hlM_7 z@VH_|&4lTyz4od_r!=dH_A>gnYJ1pD+p){`v`rsz>+aj59G%e`lbHxAx4DypdO3VY zMR6I(Ro==`e{_?C$L8N?@7CgwJ%RSHm%*sdf~_{E#q;{Zx4%jP0w;$PkAx@vnLW3! z_peoLXN+_dSRo)qhl~~}+;r0dzI?sb<69t_$A#==5C7Vb15ww?4Vs z>*z{`ZtlEuR$6YyHi-RtIiHS){cgLVEX3t}HZ^L*umSyg_2|-}-4&Odcg`87opRh! zEe<(q7X(roOG& zm9+vR_GHfhQ)0s?=mSn+qQfg9+bm#^>Se>UnBBAfLJACW?eA(0@#fGK&dJgM@Qg&{{T zXZ;qP8NW|MEtxz~O9wfW+u_>yTsznKdffnaAWd#E3xkjbbIh^MB8xRzVu@z=xlfA+ zJ*X99oH})g<(A{Ev`U*b*66U_Mx8d>Y=dpK*+__P057>DT)R#Yx^;`zt51wUBjQY$ zkYvh~WV3Eaam$h%_dHZUK%m5`HKm?;rrZlJRCw*RO7FZ^<%18l`s|BszWJ`!FTZT} z*Izr8GF{A=Qwk^CE)vH3hDk@J5 z3>BOek8RQ0Z3U&|u$bONO-zeB3Ok&&{^Es*`~_jS7ct+eS^*mdqTy{SK3rs8`B*rR zofxS1xZ#JQz|i=&F&y$4J0$Ibsug3FlQ%^b7fSSra{?ZN;*{}%Cct_*_0ra${r&U* zY>pacZt0gzP^TAFtKNY^3W34U-T`0>G9m*`d{`kcf!+XEb=VRB6D&Rp9`(DDS5Ijr z@1!xf00yK7_RgBWyvDNz@BuO5h(F;Eym&!Hcms7TsYYPgh2fExIolXE>Vi`mQh^(4 zq39F{lVNZULWF1mnr#~#HM{`cCd$DlZ1q*vMT|fUA1Xh>alGTAIMe`l>s8OLmO~z0 zfYq>Q!(6q2_bbpnf!K(1FNjY_k4W)y**ff?;>fg{frkb4j!iU)2=qeK%S-mbRR9O( zw93G$2w(gqVXY3Rc4@Dx%JPWz(Mo+A&+*ts;QAm!lBf;ThU#A&?pTxo@v1zfH%~sb zivsi2r6wY&st4i4!H%u~GS@#y47}(gBSlT6(RLbqpiGPQ#l;G20$)!!c+spG$6xA% z_=ALu%HGEnT_TwxH2*dl$idAMZ}f=Kh%xD}HMkcCADNRr!OHaVhY}s!?rP&rwtduM zJ6kZ=|m19yo?$y?J0Fd)(|D-F%)sYO)LE z95&AYJm>0Smo^Ns1c?x&7GOkPyJ3KiNTn6r-%f%WFlAF zgPLn#2qW~T)O)}G=ePDC?y}9^xf^;->OeE~03iB}VvH3Y3^cDIb^^L3Nm;}d<~aGa zS*X_GrF!YDa#doS|!vh%nSO>24pdZVtdz7Z0mrK*6pKv*?=y+_YFOSij}YAP}}2y zRGTioS{14AsZ;*WLAPGloej31TF|rj88Tz8;7(T~ckX&tw05~`)-^=Gr4U?VJh&IZ zTeF{Yx3M#i*=3Y~{nq;Y0{C$>;)mMs!zIv26VimR7y~CbY#4JZlsitv?kVxugETXN z7cm~Jp^7Y_!MHlnGpfb}-p@z_r$$#`t0DmCP@kdW@8lOUX@XVE(A;Xp9clFYx>DBU zy*9c5RIv?>Y$l{w5!1XK9XrM`aKK?^iZ8dmA=k;L$&hdvDadX_*a$Z4_!STt`;tJ1 zPwPl-Kv%^pk8ENvg;dXE)_s|X$Iw~NHpp8mO*}e$pRF2e4!Ei_^$Ec&+ffnmmN)p# zN^FIU@E0!0h}D8XgFP_Ts#A`MQT;b^5SgELAKAi=EXQ_xY-lx9i;>C3hb(zxlX))U zXivbP_S9$ro~quH+3VinlD8)L3@zn{rn#M@ZlnYaxFv8dd4W5ZL%Wf&BCUn~B#Dlb zWBelk;o8n5IT;5_SydUB&sYte(JL;)$M}64MH2{I`APOy@3YLuAQjd93}) z)rP>CTz%D@7bc033*us|v5U)WPVO|4ZU|rEy<>;k5_W+Lx7qC&A~yJ4uarlvQk$g| zHA7K;ixA&DXg&{iiYKbc4l63Pta-hXQLo}4Y7_R>(Eia-IiYb-pc5D5H!Vj-M@6F9 zFCJ)%#zmA%vLSZich7*G%+5sf3_f0HtPQm}L&qXy~YE-phB+ZuJ|vPP`1rlg>odab>BfXb;6;<+pa zJ$@7>`7rUYYnp789LV~H^02t0DG^P_*{d3(R1aN9@04%$h6w6Ho_B?lO?G@{7i(${ z(NsWGrM;rI_-iX2&>7l0nge|4M6qt5{?@NMkf4~@@m_8yG|}! z%m`X!Ti8Pk*vn}s-8(ijIhPn!@d!WD(?~YQnewX%tb)udQYdC_se=pK2v)mDUImy` z4@rovVyzOh!HfLC#zl8eaLQzxjs{#n>r=B*uc> zv)N+Bmf-tr<0T`uR`4XyKHfg1TTyR7cgcm}%!96LOahgLM=BTPl!CYwa%;m+o}}Y+ z!WfXo_cQuq;H9KeVi9%Hj$^i|#X&Z7U%aQG&43FlFJZ6tE(ahP(yBo~G*eio*al0w zV*t*;;1bFEpZmj^{bX*8jn@bG)w_l0#|UBAA#3E6$mt>ZwWPA_Zsf${fp7ykTf z#D`8z+qt%Y+pBc%>{AiLI+}QL;*Zs&EQO7w0+)yazso6Mt`}&e+GbY=mbr8GhJB5oMK<~TYx+orQImF-|QW`h&cpa|LC zQcGC9qLeOS?S=KbQu4VacVvrW#AkeK(<-8#CHqR>=JsN%tEYyEMObS84UwNky~{%( zoO8{#u}BYF&1i@=9~SGM!XHGOLI-n`H;Q^n|KzlyVoIY|_NmG(*ScRwM+EPle z$OPP&juQbznsfF9(EIfJbx)~DOt(JS9ajpQ~Ks(rU|Ppz0j?yKmpr9w+LOm&(9 zxe#uX`x+NttuUhVh$UIl{>U zsC7Gj?f>vY_B^BZWyd+LabR4d7Zu?G2^7cwZK6UM>&PS~(yGisu{P%pbaN1niS+pmMeGsp47r>T#saO5*^3G(A-{) z8o9D5VN<`$SJwm~P-A-^s1gIAUk9qHiNRNoI`Tmk#MN*N8<02)&WG|E`>+L4)kM>v z4LAJ`9)lDTunm=6Wzm7zVa!yhrtSfm!#D3pcM)i1u}xUCJIKH58QXi`WB2Fb2k}89 zmWLe})ewWG%xb#I(BFm(buL9x68U~}zs*L;4`h%ngsPZNEX9Kz%vi9q7RaLr%w-(#> z+&m7e=n7OeU~1)ZX>Y;cPK|`Jt>%_el9lw}97J%!rF6hFw+gO&fA)JwFhOjFt)v4H zx;mavTSbgFGw*cGT>~n`M{G&to!r>)eo=q~c{c$=~$O9{&mPyr(`_TZ)`U(yAfK|A_5Tg9d|C|h>egG>#)W6&f zw~D)jQ4k-yF#woTM~oy>W2#Kuq=9!e4ss4?P$nUm0|H?rMX2cJjlanBs!gb+R_@B)4YZd8>sT2ZDOWk(zgsKHnu4{Jcgr(MKErw7JoM78fwQi0+0t2|20o^);Xuv?rKlwW&Yxly!pl!!D zjXHz4dT?Ch^8XE_MJySK>60uOWJpq_IctE{!a&%JOmdiatYg28#P&mva%_(|iILis zs|`E8C>sTf*aB%q-E`V@!L}q}ADP;;(N&D?)HH;E)qb*(I2@{m8&-(skR#i&HA=|y z$P5*O8?*DOg5n>S(pXzGY%l9w^hUk`;{24$VAnsa7h+V_#Zp~0)kFH6l5{(%`2f&k zGu=N7BA}N^Tj|kK{5K=U_kQiKk*#$d^0`8SsE(@j0|W9Aw3 zq;i%4OW6q6XvP-wJ1ftN#fZ&-ja3Y)mxl*%3VHs`dAaa^ah5o~4~>(jsDblR)9NB7 zdb3|o#26|TuXqkvR)pQyZ8mt6X{$L(JZp_oYh;QSX4QmL)Bw1(=0KZmb`HWC7tTUe zC>AT?NNtWw;`Dh-cSkRHgSk&9<&ubLY7*JQPx&|`BiTe_g+A3j_815yamrl@)&?$H zsrh)N|e;lER;f2*j6T1cnrXuBt^~Yy!E}h6-9* z+UG9r`&S5YV6r-wjX9mqwAJz)MqM5ga@B!3Az1(&nFB|)%Q9J4=b3=8+5P8Kx6A+O z1qUbw>JZmeRpe6Ru_zHw(MUHe!h)qCWK)ST&}qs~C$1l;DF$d?0N%6~`QbSAKBDex zh}+pz`uE^6jLhYZlp$i)z*g)Kz1ZgM4ynQEo$=V#yCk66T5E_bOVtM{cKJS*0y5i! zX#XYYMD4g4YI8aw4^nF&Ge;$J?Dia)=hACo(E7Q(t;LxzaN$k?)-}kJHC7kKoPt?j zy58(HIwZ|6W_jRpq;Uk{;1HNi>mKNFuVgw{!dHvt+yq!c4amfE3aHsKWRfLOw49!)#2tneEO=-dmi>s46@dCgMIcLTp0cfd8c-u zcLnj~&Fq4^7I(r(bK5;t<=Be`qnNN1Kx&8cR9$(XN-nJH8X0gV4u1r(ZIEfvX8@?W zh?QD=JR@wJ&sQiMK-yq!$g}TFhdh(6ntAm)ouwTK>g~lC^WSJEU0g|M*NXuLvZl`z zt>#WR_n@I5yGRLvYFmgr-xv-3$eZ3z?piCz#A;%d9rml_gOzo5*TV8<{AdETlUX#) z6=Q|H1pt#6qd!;Qv+$#zCA@|~w2D@||%Zj#UT)l1(K`wx2|?TyxlfM7{=O?J-`O8l7NSqn#0& zeyaXTebp)WU0e-oNdxnGVykob%}Hk()|w{PiE((|Rmk0>$KJlr6}j#Rj9@i_P?4cz zpt}iBjdN5%!eV%RvU~+tbF-=4#QGjM)f&t1U}c-LH?a=K5up7cVjse6PJXqG$Szcy z|jbQfz{GwXM7I)%k5_E5qY1Ak5C!g7Q-D;<*v!g8qiC%&c; z*C?U>%I6hY;wKp+1dD4)8C8YCgJ3U_fUcN!pO)(vE2lO z8EF?n1%9T1gBS%Vs0KJ?tMmL45C{kZzIkL2eI~+G)0Y2(HHak(u z?kIS&wk_N4f(c`U_^C*NGG8B~XOg|^a8ltp5-;bmH9{>*72shC`9>_db=kRytlVIY zA-eXqm<OPjoYuv#M_TO{1?iIriffeK>C&%!2=%}rDn zt6gK4o8&|;CI6W$`#23&Du}tuuVG}v;(Up{&yPogH-DLL{`~~tvTihsht%v`A6sT! zpz`(rhj};xdwYRzk$n>M=APu;8B^#;W*93#Z#6V?u-*|%6Ex1pxmcEPS-)Px>7Y@` zB$6;!enNO2nBa>@&|Sf7X7=qz(a#lBdP!FlFkJFWkI3v^loJYjVk8=lHP)k|<$#!$DDnZ)i^nPx(=P z+idQK8%lS)E0~6F>oW*cT14)ac@#RG|(=; zseGbqLj{!4DRD;Bvy{iL<8I<>Ft>dDm%`$)-7-|1-qM0#WH-H5^!n2$*Vh52Sb3IpMT0_!qCslGsoUDJQG(+?A@*oN+(nzL!}lVGNY6RNg+3b-buoz zdQE{Wcvh77J0g4utNKgTd|Tg2k+Eq|XA4J6BNH|oeruvtEa$QoIG~c%htRI|m4__9xH`RtMtsgOMLK5L}stv#9ez2E0&hB?>~!Bw#EE zK~oG@7U!`QV+yUwW-Id6j3xzIvY6!Sih+{emBZcu4xxV-za$jQs{lsxi*8O;CvUX9QkSIi1F{zB zI{p<8Y1P~)k^o(Xh(>AmX+2>;Gz;{Blrp>spY{3>>Cg_nLVd{`Tps}iR3pJ0J`1Y< zXdxJu(Wq`~Y55+R^aprEIFB`%0{SSKVh(VR>O)0kAE#t*&ZgXjo^3D1N+R1g`oS3uMY zlXdz2juB8*vkE}At$(f;3s+(7Bc=q;d=;2Vy5a~SRLoAQ~8^-RJxH1^>~}A z(CIFPy%QDy4EFnUZJ*dC%MRdH2L$Wm&<-G8;7EaSL*B{#kK z-RnreaR>YcC}qP0{FVbd)p*{#B`hOR4aktPq^u(lsHmk(bi~lp^kR(+CR$T?Q`d)o z26=h1k75F@#uSXx2%Li#ae_~tqT|Y^I3=oGTtV@Hz7AJ7s4OohXbY@j>=QTl6b}+% z@5>Ie(TZj)Bl`X#bt-XFvyN-_ zMSF);VV?v(4kCSSm}<&A%YyqBem_2chr~6u5<<8Dw1AN3N6U@9lFH!XMC57)*HMY9 zZj)L%CPo`nE2HQ}Et)3{!N3o zl*`k8!db_1_RKVe$^uY$ID(MUECJ;<$2Xk0;^M{hy9~eAtyUwarf?Jmw@zb+TnR$m zrHI*9CKIo;$F1xul)|%69h-S2ON5NLhpaOTKi`D|B7=YZ9w| zv&^Yr=;<`ZvU?j?=b!ek*$IRA;@nI`)e@uAEJc{xnOBC$AXd)*?PRW=owCrmAVh(< z9fcg&E^M5znFrquW-=JdL*=0X_9^T}%F>4od=O!UB?Fa!y*reN7KO|KUVSB z@!v%@sZ&EMjz&LOTm{9b5kWs2U$1uRV!Gf=D`ocPwzrWC{j+HZh(0~_|tFJ~&LOmAtAQD`SF8Y!` zHxqsaozKr>6Gm@)^vhWdL5qkWxcYG=rd_7@=Si)UwolwcI^WZpHK!C2$Evog$6RWK zAenwfRZRJ7A$dTRmsr^nH0fhKTL4g15=1zOU#tOpnj)(LtD7YjliETdr9xwe)0?3Q za^N|V!F=-a2KL4y@w4cSV#1mt*H(M&+kl{pDnWCDGFKoqYibwmqY|^^$xvw83btO^ z&#tfGmPTyW9xH!08SWDX5!x!n*kfOYq=oSsd9`I1sZoZi@b75kuE}16+xOQlh`Wh6 zesGd}!Oa>pq4xX@57$yd*B5PKIBt)^uKy(B+N$;FRsZrN%FEP1#Oq^#_M42qHe+9Z zlEv>X7`|fYc2-ffiTAL|*@K+d!h1=}KLl5ZD-s+;$tCpjw=W}Ba%OQ?4hb%13<#9t6(?o-r%gIMz z0odW@c5tJ@HufXjxSvY_)4hYHRPbMk?Mp?_s$$U$}lk=>|Stq3I`Nb+Oi%`%f_tJU{chR7JWCFBjHdg``AwG zm2!TT;`RlOzTuYO5_M!w0jPLsA@=xB7q^_@P!`cLs0^&5)n2j81hq&4MXwKVqBnsA z3zf1yJb{sXxq)7Fi{;PCb4xVayNfNjMiZRVwYXDHtKH7xYcu*zDy?!bjAx_6tCXvu zsKLB;5Zb}81AoQ%iI~kk2-8t2JXy_|=>P_?oj|j^xR6?b!qY>fYT?PmvJt;*zS?8~ zq%w)DvR<^J$CXaJf`XJ7YNh#I%2X&yD+u-P_K>2*iGWvH^DI}xJM=U#;^RV;IJfaH z*;DuiD;VREq&rD46~ToDp6g@p<1NBFv8;X~rqA@U5f|oD z-1)wsf0NBYy7e97gBI; z*1McV(^F*6u`bVX+N{`ZSMVEB;x|4XyeSOM78TuHQXQVEi2i2UPS~aLVlk(_q%FA% zVmY*Lot#{XArxLQKA0l=;omu7(t|*&{H6yEzlLxSKNV~KGRvx&^9w9?(kFK_$LWrz zt()NuvJh`@9QxSLNYttfoNlcnB`xDX)MfO;IYV$m4z>Ox2*nv)mc~XaaJbFCK=kr!|es4 zTwoyi0_>*==&{cT3Y#q#+_X>!8#RbC`=r>~=QWLx7iD*R85h_jvx#n#$3XvSf4tf? z80XCo=yov-jMu_i2FU!;`fxIfIT$%E;c%Q~fDn-wu{lWQMi&zJ(V|_cwxnf!nl{Z- z0_zEcoYxzeS#I?z{VsJ@KxrTJW^BX8*;EHrgkpmNWJA~Qqx5U>`T`7Dya3*oTrB1B zkA*MslP&f@#Lwms?mI>EYtwpMwf@tTFTN0q961^#pa0wwkG=ER$McG_dV){3|7pt4 ze&(?!-uwKMdhCVc@#xVb(KV?91<_8?(i(h)b3iNYrPzB|+*l(%dc#%vp9r_P>vcpy zzSCo}+t2i~A#8tAE$KGEWx${JDXG9e11}D0Y}>vT&(FwDxHsof>#5U9L8kHou$YSk zp~2i+gzndaIbypZOF#fZk@gIMNN+43GA`%}*WO4ZQZXuwzM(`Nr@;pPAqAcmxuASx z&142=K^&Q-D!C3kdU?W2USyPd($`5|cqJSj*W!UIzO*U?BFe2?M?K`H2n{wCoI>kW zapf|R;<31Tg=Pb!l}fuk=B!+N3?Zft%2b$&tu`Oqqh;*uEwML&F?--Tw!w3;qA&f@ z42;j#o#LV1VL2QHZj%!~WZYL-ckG2?qF1`w6kD$xII|CcGLl+b!Y%TsaT0yrX8cwL!Bi9kEpfldcdt{2~b(4|GWI_tY55P zNYL6y{uDz>r7zba#a7y*_J9v`p|tMA;CJ%>(u`zwNCYY1M zN^$TB9~D@(mymVjM-F9iKsbKU-p}Yaw~0f^k{lWQx205WE1HrBKc%p2L;E?g|lQrXJD@}#>vVEX9SodHo$ z*h7!}vl42|l=4uAt(RxuDB(*hhixKXuKPlWf7!jlUHcBzo%Rjzi2dmPRd3#Qnx-d9 zwcj$k6gjjm!Rl6z5d{3_gP(12=+HGgV~`)x+^=Bx1gEHDnX3QA|Jl(HXVvcDnj1bE zkBH6H{S2DCZk^pEa?0%?;|w``INefklSQi zk;q5VG!3~SLXeoA`+=(*C!j}a5TXf#twxdW1-}4Y@R8oCT6J@PJ>PyKyM4%8?7*Uv zTiotZe@bBfDH~Yn=oy>_FW=h)gjw+&aWKaO-G@_(8ChPqMLZFhPdavq%+QDTvuLDU z_c0q$0R`c1BZQ0HdfSi#bJ3|8{JuHy%t8p&0ftW=$wNFeh}FQ(%zJs&x^#83OeTUw zsG^gjV1fM%D{m?z^iKlaHmV+e1c7wFL^hJ)VC#wkDXjI);(Wpw=uLh#n(*TvkgaK{ zIB)e9DI}Id<#FoW-3ERQ0mvn5#bXcxJUP8cGo{Ttxz$W&TQea%8DsQgu<-eEmMCjz(5|1Q%|i0BfY6JR&s7Xqm6V{1uV zLU~WRB+!p5J0~byW3!TMkGwHdUMV7GuCrf^}zAH6)e;ywnK{Mk5f*hGQG zAnnEh!QogN0hQn}$Q4NGg!5`%u8IJrdFtt92yqM@(JmlX8bJ(YnMNrnAoSiYc)g?i zfhuvGxlVjvpTA(Veix^~yTI}xrT5y9wuo|dojzzPFV|eESpEM7h25flSV}?O zyhH#|7$n7E+91U4Keg#hega8IPQ}I}EK28*01W?m1pce!gT|$M@tsnlnUqIt{wZ%9 z#7wOV4OnW*;*J8waP*1(EB@H_9fB0y?w6BGZ_Yca@~W4HKlZU)^M+ssBQhLfAN_I< zvbhr+Nw1DAbpOY3A|Cb?T{{B|gYC$xLznAYFh!ZsA4atRHw*--J3l_4=d-CE8I<&K z$`oVf4gw*w;J$0T*$1&5+F%=OmZ}~KYcmJBUnFsA(_PY7ij2%Z!rE2J=39xtC4bq2 zJ0;gx-pszg<}R;}$96+B4p?WdIN7#*UJ3p!d%Q1MZKgO`aG)dOf6qJ(2cdec_FVz| zmKLh;FR~oUb(dPd3WP$(1oACTZ_N+@eTyF;zMnYdY~O>lB1$FL?5_T%fUgi ztQWD0-ejwHupHZ}50dSt>DNz;KiV|PyFfhz!g#o%_>p;Ik)Ggbe}pI#XQNYQ1sGHomL;NP((C68JRtl82rqfaB9Vj#tdxlkD?j_z zMPs3^n-No;5i49BqF<1VU!&B_s?0Yc&7iFnG7bsd+teR6(PG~P_Pk#xKw55Q0_!{5 ze@*!yr{H^9u0Eh>lF9+df)!kobTdgZKCPfwx2o&Ar)_^(a2mWUop=h)sZ=kM;8z~R zk5ZI8_l^gnDG=J0Y>rc__#jW%{XeGC!SOPTLqxx+v`{p?U;jvwC?{v?jQ-3hoJ*H*`SX&-O=vLf&9c*I2B3fjS zJ2sES_@QG|@y?vRFMCH;xA*1C;p(W zDbd$45}~#p7K1{b5|IqMAY0>%t87;#Pl-QEM%_5POPNm)YG+$pYzCwvTx{0L(kH#y{F1`HO5(tOP>#0HYUk-DL@*#HM!OFx!Gr4;|_S4Aj0qK}I=)o|Ao|Xd#8HEuV##zt4xE2Mo0o(45 zgwb=$jb&osECE|N8D(j-3aO?#H#nKP^Rw?9Y98GvK=#9zE+KbPmBK}eTOL3|!^M@u z6V<>{DZ~oZXH0P1s4eFQ&Z%WYJ=0?&P<-RRmW4WL5y?;c`j*sCT3;6VTZXLoXmCQ> zc2jU^oW9H&}PedIhFQ?Et_>*!+l;hK^M&hO7iX!a$&|y8^5=i_n(i z!pk9o*)jVb39jZPT-HrT8_IsRIg{`iCvEa2y-hKya?bnlz|^>}VlUz;n?WZF#{B{X zom!d1df9DKS&7_)UjBmR5y5Q+N$QzwPjL|}NfR8jvbq%Y12w2Msd`G{7pwf5FQSjU zR9R<*e?h(*K{2=kZ$%kc2-)7_ESz@V{Ot2#ntpi_&bY77mLH_R#>0GPg7IdQEqT;3O6M%)TBU(3~Y2i;0fHVd4z`q6YgCnhpo06D$8QRjKOU>db8 zVSY%#N3YYOzqJm>D*Alah83g5_Lgi&CS-So3zN+0t0Y={YI#N zyBCasX14^SRDDtlW@KU%Wcf#zwWG(0$l7+u4AoS#VV$SNKy4*>uX~JC7J(gq;9O2J zR%je)+HFZMv1ne_ewK`5)nwErQ85yBBMsf zRInFL(GkJLG&G6+H1Q{}mRApk^<}hMnlysdO|F>C@t)w5F_;1%$`0Vd`-mHS&kYjf znBGn_$ApaNd)s7-x%THww^a)7j3}GfNfp_yvia0{chBCw>ke64{rvlTn|^(&3{N9! zYr0R71Bz}^mkyB)f*cat>=8iA5}{>wkJ>Bk!_wL)FCMZtYx|&hNc%O#S<3s%XTHM~ zQ!=u@SUVQu<}x^urW>iPa`?pmybP1nKxrL;x(O&wXi%6^@!YUbvXDHFi9ToUr4Vq? zvdnXSx_%wB07Z_-S?6(!sRL}{DgLU!!FYR4R(IPXCG;ZS{|_tyifiO{`2-t$T{h!p z{kt~xiawh}Hz=6{<<5u)n*B{Ye$wDWjDzA%^LXeClNM}Dq_A%q z=I;Thpua*TN}I|}nr={13cj~WUa3_mGDnbOAy`~oVe1)z*g|-6$~e?xyg)hn+aj=b zKViYMVBpRQ*c_KcS2}2Z#3i1d;nj#^-7+zW#9GGmN!2Ypb`Jd?RJj8E5)k~Q%G6UI zeq*bAee7+0^GkxVFQ>=zLK%&c!6mjH@v5H;QnmU^{|>$uT7rd|!9#Cr9=9Am?7f7yPfhEp%?SAQ2Hv z4Gub(c=|?kP1qCV^^4;UK4L9MHbE8wMPqaav0~~VUmk%e#1b%SX$|k>>jLEcLw)?+ z&+MZn!`~$%DwyxrzdlGQXZqdV8JS^=`=So)?Jds6!I#XRLa*$tg(CFxa8a+Yfs#NC z%lHZte$R>n_Zi&zIK`(`$2&yq(XS#1|G9IK^q4#~aUXe}+q3G^5x#Rar7`X#Z?l<_ z;DahmL3@4dM8}AxHI`HMHYnhDNE6*=pR4}j8^#DBqkK>MqlFIu6^N)`wYTIf~u z4ex7wy1LQORV9f16bPuM@)dZ?9-W2AYT+y^2JEyp*X#3=2=}m`Ya}%*)etLB7-<&S zfHpFXmChK$`|0UIxh}Rs0Gqq350f{3Fs-EQOgk%A_0r`j;ScBo#51E1fQg5=X7(NS zv~7-tbl2Leh6~2yTfLdziOWnD$pd)NbXswchW-*cpML!8=_k+flkwDaBx{3qz_-fmbC~Hpzlqb z-j+4Q_bs3lB{oJk2q&a=t+-|;t;D{+)|8~;7Ph5c18Z?z6noj>{$}CktGBO&SM$`n z%3z*nM%$kEVzMDedoF$o`8C9ec2b%#vP35|Rp>BWiS^^T(lcC)ClFg0!t_+{C17iH-rFVR1R$)Q_0zdG(G z4`$)}*>|E1ryZ8uQk3aA3K{0}Kmdf11wgt+ZW}9E#B0mAB7rLJcpD+xx$nev{%BWn z@j{OBZ-u&+vx_9jKZWQjCF4?i)=rK3NN_@lPwo#$PE4<;YWK&a)csJe)oz40dv}xj z&N7VZ{h!Al{xbULvPo2Vv`7sJ#4j1ZL&FNYys`Kp8K1QK!xs|I5cP8gaANwFUk_dq z4&-lj3IQ60)?C|Aeyu@aRB564jWrsZ9*?Zpc)Z@7B%((n0|Bq+BeY!d?FQo`r!@4Q z(0{m(s~Z(z@^HX7yPw~VJL^cIDPt%Z2bOx#eInvB7;rZI5ykKT6&H7BTaL&do3CX#-TBOB7wG=0DI(!rPBIa> z@PLo4d$FT5LS573ZahqDBrPk7Yb)tO2f@4#&1?hU-59(5)yn?fKQo&D+0cV3@mz4I zA1pGhHVeu#4$p-kDep*Y;NSSid5_XDiV!a-wNz7E^cN+0ls%X55)zVlB3(PC@eAZ= zJVyZjv=`IDF{DMCXt-k;nKx0cPx2V=dxWB=)z(ir@1HKFat{Oy;WG$xVgOR85-m{? z-Va{JekYHrEr6dr7iR*_wL57k^H9W;5nT_#O;B)#Cdc50i%3D)=IlnQ;Xw~OMFxI` zmjgkOqAi{Pt5g}+&<^&#m6o4i6GS$p28?1fv4)!e&pNFRdF#urfT9@gK{zA_Ac?R$ zVThhRC1eXv9t0%ShS>q;^VV9!c-bM_Qeve0k(M@^)zn2wH`paHG}fBsDTRBphZQ3j z!yTK*kMTsyA@lWoZlimcw#@MG<3hL~&mU-;f2tl|MdOri(h}%O@Od_8DJh%1%(&Aw zZHFB;pI$#-)Bx}qqnDBgZNs53ZRA9JT7v>5Kktz z08vtt*Zr;vEn8#V#OZTW6tS7iH}rzC95$YvtY8!Mp_3M|G|U7#_P8zpEnJU%s{x6~ zPNI~V1@yKq2T{1*lP*i0q_5y;0+WmaQeFEa8NyDqZ%Rn-`l%`0Zhe~gl!8q=f|#?x zuq{$GqsxK5JqT)K{i31EJVPcONMS$g$;>e+YGM6zj^mG=QZ^xE6k2p_v(12dLbl09 z+;1^C>_a zKnydPgY1_#>nXBT8U!mMZ!k07CALSVrz$6N1TN7ObvVO zmZWvXHTLB#X1p@Yd~S+KtA6oJBTF3X&amo<0BiCb;oLS5;Q16XK-fs{6tbLwDd17H zw^sx>IFARocm{)ztAM%S|8rA5{P4rZnH@I1#vw>Gb>6K`Xtot5c@@}@fQV5*_; z`IZ1xNf3lAO0~60JYh|3aRvwtaoGVffkug)vDYp9G(dA5o>4;Tz< z_yBA3d*Y%RA-%C%=JPLkoMoQBWYEfH>YBAN3$>pr8 z>^U!_{-Cd4POpZ(8G%F~`mDJFd2mC9m4^@*zXN?25R*~;?8YMNQ3oTsOrMzrjTLKc zGPY2V!`Dn2Z3~mRKmd%$pCj|Y!@QJ*o%j-TSB~d$5qchIG)G!zP#}YSxZbf(LuAAb zIh*BEohdjuYl+uaKe22ZufR)NnHBtIls~s^wr1&brPe)sw2E*qz8E(MfeWeR={*Mw zI#u{P(vxBPQ=nL1lILG2prG@zjY8rECT?@H78T3%_27!bXnl6#PTL)dSQ~6KR+=x> z%O)14dS?^$$*ajoY~bt((82FOmtUAaa-x4N-Aw1>cha4C^VoT!|ga6-7E?#Lg#?L2k$64;ukqR zH(Q$%B9yFmQLnbUd)WrB2hTe{uQ>X7prcdkw$k$wiC`|G+H&||Nl>hrN;kJaRSgKD z-Efp+jx1?H^DzLx2{#sbE$rjG8v>?Gf<3lSA{%khlq`=22KKrJy>1f4wRc%M3h2Vu zzku-Fl_PWyI5&;`vqJzc!Fx^+bi*Dzzvd$prdergG88OwhIocF*J7S&YP^YJ#6Kr_ zsRFp6=3Rg1YPIFYmst=>R6`+0v#2!>+Z9=V?jK7+Syxurs#IbGE<_~4@!b53ys9#b#;d_e@e%dBW+C&&y)h?U9fOz z(xcbNkgwuuv{BE=yW=q9-aLleh=${1#D^nBq(fKC@bHHPRID>@cdh+H{9W@(c(wIC zFrMb6p}RXOEV#*s7sEW*MO-rGH|BBA<|Dm31NQSHhm zJ7fwmKvv!<7}iwrddvcoEtt}_J){dsAZUx=XC9Lk=B0uavJ~3DB{;+cMY03u4rHd& zpSfPFn@H375gz0L0SLPTVSKC@&@RLmR7bXBLP&|<0HS&SXF53WcoNQJDPC4Lkl-3y z11e}Y4d?RR9B2WhjWuEkf~5KHu;CqvX%qGnfkfwKBA|uq}Y)&a;d^k z=vV_b>3MHCh#2! zq#W`Oln3I93VFd_cnrT^AL`koEwwz?`L^|W^Q*S^0lq%i2#qv>Fab&YiGIBfKifdj z)pAj_v!&vu?5TpIp!O*u$X%dEOaOMNOVS*sDzth4z!Q{;Jzg5v>KQPQB+94jJ1O|em8Hg@oq>_6 zkTfc=-Mbp*O3tkPp}vtwi9ic_Q#Oi z`O{NWYWZ3G;d>_1D=(7|u1oQ)@Wrb-G8e9>P|n?myve2A%a*=h)SaYd-CoyNX?c+p z!j#;(xJL!q3u7Z9nsJ+|dYwk#{s|RdUfQ*b(PAE$_S1!wwD>0eY^p@3#ZSIoEJ0){ znPRrHkdHIxr|O0LG?7@N&qlzSx=%K#m%b+}k{r z{P3-42GL7eThAV)s7119EWE=O$h8y@Oj{+-0O1ey1U$c8NMW)wJ_zMBqOP5&14|@P z>|>BH-S?VyFgyRkkR8kgRO0t4XhvAN>d9Og*g}_~Q8#Ji2M+{#v=82u(mYyw6B%wb zx!wcze~7<}QyY)T1=Xl@R>C~DIZ}sww-0f>SeyD8jQdxC-5fFXNuAc>im)IPwPZuq zogF#<%&iC0mvO=^2i>)${t-fpz*yVA4)NTMGvPCb>g`QC+Q8DW3?_H*!!cN?^(k4r zo16>B{t?hCAB5Euj*k*MN4OM3N)Cwg0Q&6O!sHhG>S`*mpU8+Hf+`Gb96M>NJ`#4) zCXFO4fq0i}_)Y`)ib(Vw2-#9){0_+AbpgI#$woBI>3!nKSkhJbzw!aXsXDf;y67-p z>Xk;`2h;=mRNXp)8wP{-bcW7o`AdD~n)*PN-IJ&9)c$4kQ6C@i5v02aK$_(Jd{=?C z{4!yDbXkgJYni1JZlu?9#yjhr8TRC#1Yoj_?uWkXSdNVr#jt*GxLc4&E6H!0=XOX)=rg>t*`ETO5XNv&I^m zK;MFq>Ydk#EaH3?jHi`A@P8V?qMjYklS{~kcgyqw)t;;p=frmIG7uF;JkfrSojP)J z(zu~`I5(T1PNMw?J8Xs4Od2%JkJyvq!@6_$5*{OiWP>Uux=K1V)lPDms?TSR&H@u` z>*<&g_Rdb?*QYuwbH?ePAF7wWLvMW|+s;)A10C3z5DAeEX=a1$CG$AxW)ihYu#v&d z!R)n7fiB!CV!Cb@(Ms<|ZkNOZE4_4%FKgT<(H-Bo6U$d#DB5*PHfV8Sk}5lgfArF_ z(-$OJ>s)gb87CvM!Gb~H%jxkHNkpQSV1z3SFCILYd?R=c?(Od{YEfQ|amkU0FsFfy zJmR%n^1BVoc8Ui09V%+?}-164tm}vc^g6J5WWmCcB1&*4~On^H1 zn4G6h1uXCo(Q*hOheY$VWX;d7doL!6oFtEmncouf;U`O;oqn-=OVem^$loq1^wYU? zRnULS?Gwi(x@pIbv&(zc)KkCO@5Elup538_Wjue7=gU^twYF)|4f$o!U{(%fnXp-y z4Z9BWkk~YpQAc1FM+`Gr%$M2oV%}|{rYOJ_NIouy`v~Cqn>_5ObRwST!Fwz&ikM)6 z2%ZrtO$S3@>4NT?1M)(%D)h>ECFt*m#bIA}x6c=dO7V7qLKO?mXKUWk+~Cw*mq*Wz zdW^;^>M#FyC#VSur%`FKKUXsYZ~wk<3o`KJEb6egK|F6%7e#N~) zf4|h;z9BFVdVyd2y4OL zlm)h!kf7B?jaQMO&uPmk!eNZ?$?u{V7?B$Z5*G0ShuwI&nj7e7tzvGP*++?>2Ul)&Xzo{-oBkJ zrUaR9=$IhlL-H_gUW-iWkY2aj% zs3nN-nBT;49EPmU@f3$az$N6HLZVWXcmtWdbAH{dVU31T{*#46DwoUV|1{Gc86Kka;A6#LlgaAU^H!Y-SN^@CVs>O?c2=10Rn3S9 z0Y0L%!n1w52Zj^72l503omQ=iA!~xgVrG3u0~S}*x0_rC`8M6b_b~qd_>P^Y;iHn> ze0EdI3-75mHNQYD01+4fDdI)!<}i=ZDv5#mB#Fm77=iCv;BF8OroSCtMv+yF5cfTR-+b304wg4$W*1rbl zq{*i2#&5kF)s?o*fSy>bywyrnhLX-_JO2gP^A_u}6;SD%A1&|imu4g0(>%JVv-3nt zpE&SxAGjw9iW_d}*eLHU#+4oaXsr)J>aXnl3f%LFI6nB&cwcGVv*%Qm zc>_}rn&ambR&tXpuS*fsOWrbSrfxBT)dE2WibG3ZSMcWj*_Rcd-|$vaAvI&9Q~ zy){zH#kc>wLO*4bdVh-IdP$d4;DZlJg;(-AW6fNWz|m{j_&|HIpzLQgMQ-+v#XO^>XTprj{QCRm1Z&s~E^NZg*{Y0WRm{IWlkBf7U#02K-ChnzuHNqC+ z3!P80I?I-RJyRZUF0}rXlzK;^RXDinff4iL3Nt!Z6t8;ToAH^JaUMsJ77CBkhoWA( zd=Zh6v7S#w2gQm)LAIZhjnFX37B)RlMX@9|FV&1(*$y5FVNvkU_a0*A==PYX>QxYg zpaq4(Dmm5EHB7SYn@7jrjW1rR3F&fS6zRDN5*B-Y19bk-$C>H(ovQB&T)6PH2E!*H zcNR`YYu^zbg?D_!0%f<4MW5f9zslD8r%UJ`1-~Qb=lQel#7{EsK6J$@vf!e$1jzx_ zhUEK5+HRb(VF}yhV^P2xEoA6uD%vcnae`8<%ld;pLr~MTiduELP_AO56{F0eIZ9D+ zOF^)>J87yjn8gYMrZMEBP1zG~PBh2&B-+BR!z65|u|1K9BvBuyM|!-zUsRg)CZ!1$ znWEoVc4jKS3xSIk1K$I;;6zS0WQ{XfV{Qar;|q=F1(BMf&^58?6q>~nUVH^Jf`lZ1 z=Nwox;HE=0T_di?A)PL-+O%9pUN2drY%V0qkdLcvn4MH|gDl?Q05Q{y=&}((?m;p4#{6o|2!KCo2;5XV$%Wy>esyq4OIt zO04+zp46Yr1Xyz*3@FZtE(URDPo5Q7;jAm7IpiXE4hvHLVX9-!A-F)q*NhDR#Ar7GbG_4`gjo8O zAr$(c!ws@5E(;1=ZBX#}GP-lsqB^&`Q>CU^^+N1XtS&ioBS!z#6NA+XJ$sc`6vb`a z7+3VS$ae78k%@Q5aWY(CGLKJ?1DH({}~3ckfobTsnStc6Wbn7zslYOF(_$^@^D8 z|6@c>jPPvf(@6WNE|+>fxx+UG=dRsm69?AY_@Tz@}Q?-fP(av*?&d?gXE6WcIkojr62V2%@y z9!5M^ISE^R1o2hfYFJ0WEplA^?gY(B0c3T2ZL-lN#H;W6JZpAVYCrG3BTmd?SSgbK z&X`9gmlm3j_sCD`P81T%12}@$8$f67YQ{Ou42SM1cU7to&TDWRYCq$CXjTuEK5~f+c!WID;NyIqs$& zhv_*04n2dD$ZiL3(@7Te!5EL*y1jb|W!*SE_3`F`fd??t>LY(wZkDFLD^0FWno6ol zPU!wutAr4gomP;PCa;#KA&QXH`RQY+5lC|^zP}xWXE^ElrFzzijy?S{e5LbFr*0vu!*k1be9j>;zzd!eLO+c73l@^w(X;M( zj6=Giv|kS;r~Xm*$JFHMUxzq4xh=h^Ej^i@^4SBrG+;@3C5!TcYPBSaP^-0DfBnV$ z{tb)HtE-b;H=DPOS&{XV&WGqpl>471cmMJIQrEX=dcy}wA1DS7PSJUAA>4!e5c2+= z*>zm0E313OyeIGUO9W$h#n4@|x4ePg2i~fS=q@)kPKnehY7vY`0Iyx>zKfaQooqfK zO-VSyI?||WD$OB%{ggwRkwYLIKL-Gd_=TPqa30K!I(N(o&AAc}j|m|gu2kn`=n0t~l2!O4^Ow^iW2Ox}X1&aO%;Zhypnm zTRt=NL`hJPW^j<%6GJoQu|_x;1{MjS&`^XXpy)}1f}Ha{y_6TrMT9_9NAa_S2*1qg zM4doFwN*oy_%n>k4L@00t;kf>pIH?+7>Fd^v-S{p!Bq5fxcNIICeY*sv+0EwK&@ou ziO(%rB#ZlT%5Mv#k=Ky3C7QZzhB)>S4B4D~uiPCui0=3ADB$p?2 zVPB-$hHULGJAS3xeqEUp+tD1ZQfa6x>mXvhBM@fUWf|x_8*@kAoURSI-tjj};1ci* z4uVpy$0CvH0iSU($H$d8N*)^AB!7FocO9 zWlr(8j@dG(Dfb=CIqI98Z@MhO(MQ3eI)~>Eo=chsGy}zi&o1Dx9Bm)`_1A)YTOEIh1d7AY@6?p&=9Iu?gM(a7;LQ ze|XH{iA;n!1o#PaJ&PVC)|<|HZcjHLm=LS@%kF1+^e+lfc$qi8;p^KUCQ_vx{QaIS z_Yt0)7VxZh1@?FuFZpROToO)bMz2(dt#RYP(sqZWGBFHu&jrn?^i!Y--|wsKl?8`T zSi7CtuJ|<=lAVh0DeC*P6@h_A>>`W!M}_C?F+v3C6vYFhUHy*UUl>0k;kl86jg5mu zPAKXj+_?GHy)nfDG`+Cxg+Z+!32>W%kUODdZYMngB|r&*^L7!7_65vixQO<;C-?1j zAln=$@RIxh<((3oIU%~+@ROf}Lk^7nr}E)ZNfn!|O1b#T<4rZ8@EY&&|E^&iP1WlQ zgN&Zkq>;qbk{U}0+GSuNJgK-ga53u~Ql-Z{PWtURX!&>~aByQc|7;lfqyShoB;PAX zs0)a?>+RQdyp~TKEE-G*wZN>wmG(-&pw%1xn=* zsUyG%AtZ^ncoE4ZuoX+iB3gv#H%F(7RA>Fx(`|NJ3hWP6FnCco^3RuJ!nzpf*oIY` z>OVgCc z65%p3{$a|9nXObLB#Lo0T}sEL9~w~LlnvP>lt1b$&CP=uv>Hy#WV5&5?t89M9~pL2spBKozZ4h2rR1lM23Rtt4&UH z+px`A0h|sG4K)gan}Bjz4c8-iOL<+LXLjp0&pY($)M`z&yjpm~H-|Haa*AS_pv?!o zFub9~LgZxZsPDFHY5H}v*}TPKGTr63$;-#&cvM#JlTYJLWYSK=8=- zh^%;7C#S;6DE5G?v?1%jp^b&K1*(=hN$GR>YhKe5IS-yzUz8WOKCdY6oPn?6j(a`Z zwqN$>&I>`ySXuQ?sW>Ik*^*z5I-*sK_}>ZyS)N^XU=c6-+Mc4y3Gc9n^YHxs%KLHM&Hs=zStJ&ANoFX&qRi@_PxpxcsobwPN|E-X`j6s`0-X zdRtwPvF_|%{aae4m`h`-8k01ee z29MC9y*J|a(QOhDyx>0@6jFlJCh1>E<#<6soJK}P_h_@Uo3yFZuiCh`In;CS+Ace8 z-(LFMrcGNp8_vOVG_aGT>FlmVt94;|Ww0|w_de!XwaNp%dp)Myd#@|BYT8COk7HSn z9NJg#?Ut_kYTs9DO9RIp+v^B{F@qGUyW~I z9lih~5mB8paPfc2K?gD{hXO(DNhLbobx;z%%97qW7%{n0ow?J%Zxy@iwQk?r6vAn% zYh7K&^DSEjHjit~Wp+NSG~ENINfBYoV+lfrCeJ1t@KjX3^1>Q!-%s1)18!)y=%EFO zJV_?4uCQ6y4PS;ucs`_Dg=utik%JkC(hd;=E6u8EIfiQ#EhB|X3ClgEd3KYI2Cw2Q z=l`U)w&;*xEU#<8yf7mnN%&aNEI4Uq2A=E)`9_WgQ`v1V zcSrFiOh3sYX$rErT?zYRd_q?)H9XU-w-iI8*BX{a12YHp< z1;e^$3>-L@!ViN!-)pU-8=OPyMn~5z-VKsQ9s|C1Od%8QrFvx(VYBWYN%FDuF*y@B zw1r+oi=0ofF=tV^QAiNwm(b)YXhj%Wh^UJYwN2qSJz3p`izNB{Y0bg$O~>N{VBO{ue7jTx)) z`4IK!X)vdbxx|e11T)?$y0&J&=&0RNkddy+ZXg6<+NYAh+9U81bhZFtq-r3m7}~Z% zNtE${y8@kZlI+EPj92GnK(^0FFF}zYyjE_W6FF6L4>ZPBNvMdAPk^EI+jmIQ2QFVe zIyN-0MqT*8KB}LM`I#$94!nHRILYp&D9r9^G0~uaDcosdsRz%}ua1ym;_HNAc?32%o{6 zbvf02efRbCRjUnAZI=7&9-=Ra&)TyQ>N&m6jYE$I5rXEgN zY??6b9=!J9V!(;1DaoiBmWA8SFqt5E_9iO`tjPKZ%d^m*)IZ7LY8Z`q;c1#`dD@r# zkaAspHS8*RHY^*yt@AOFCmnw8$h-QZD5E+`=dd}!GsKmpC90=l(tUkQdGe{Bb2uwQ zaOBFQLgjbz5#wsGmYo6QweZRk) z^or-1`Fs$7eHMOQw^~%U#pJ$dF>v2eDy0zU7;m(m`a4fh=&-mV3`52v)L zlt@Yf<)ShhKH0^q3J)6vZRu!+n;b12+#n*YlTwC4hFWjB>!!BKo*VM!hI~2tY4d~5 zA$oN-^1Dh#lZ}!Y#S1hT;jxWy>rkI$4(2W7Lr4-kCMAms;6q)GlcUFsX}MNp>}jO! zB;%Q$P0@K6Dq?YE6!mPFd+$Vg%k4r<3HOQlXt`1zZD!|K7Vo`Jtm<4S)O?_M2p>)N zs|8}r9!zb#`i=hVgIqzOw0Ez%fi2ko;DeAeIm4OfWvMC61Ql8Juu}K_;K1?5Ddnl5 zp{=czoT2gPsM?fmnp-gDzE!KFvBs6t>C|g3R9B)}kSl zyW^;kJ7j>IG0TbJMpk-mLFi13i{m6hzh+GcNz|B;fQ&d7@6b1v6is7&qr>eQv?z4 ziUQHWrUr>-tx#sFjE}29b0bz%^ja;xc_RekxKU@ygzPDPC&D*bM9@I^(#{-5IPGP4 zWC<9Y07ma}bh_x|uhG>QO&NyMsRki71Mk8({?GvB-;+-P<|`jZ)%zGBhvpw_6nF3;w)n$V!wTf1# zFQGWY=^vJTSc^T=1Bn1>k+~?^-^hMVB(kjA%CNTMU!CJ;RYbDab})w$V;+~xjzjU! zqc!O5ip16J^u4K3{Ym;&D61lxv1Zt|c5@WO4nvul)BxvfH(6@RIzUZOtRwm>MFjP2dmFM{0P!{bu{@t%E}7Ux7FsA*+uKk&|i=>AtFtlmiSYmnhD**-&Ofs ziG1(9p6%OaJyc!xa|IJic*0t(kIW?cHo1)YY1d+6cwI8{+g(gyOTYM%hh9Xc zk|@;?d6kuUNsrvwvhqn~stF$v%)0SJO!j#tl^=46wOaW3VtIa-y_SfW24&f9*AbBq z4s%2##|T7`oHHj=qi|T{=H0}1sRdC2W+wKj!lz=H0ZB8ZImL?^Iw0moSH5B*8CxX) zSN+4ZZqvlXCfu}hMq_!RsvFk;I8~a7Tvp z-G#|=zMEGQp4ba`T-$%hjpdUthVYkoy0$Tbq$Eln0sw3OkvZJLF)T5|&oZ|eE3gyf zK?O+@BpCuXb0*0SspF}7`gh+EYnqx6rX*^An@P;WvG0^8NJj8GtXGW@0vIc-L&OnA zpnW&NB=;V;{$#ZgzC24CdADxv-SB>C**rrlyIX$9;-lxjj~a%r7m2t20GeDx?AUg) zIhNVEeuwC?yUsOl39)uuwwLb*tf-g>b}<4$1aVo=%^@u4Y*QE@N6~qRoF*sRAlKK< zPr=wD?cU$>j-mRD=42XARk zrH{#}vGklu*`TaIHXwUhM#5BH229`#C~vu+6;9yCtwd5p-X6nlX@L=401%TIdXgMs zE_}jxnMq&_%s@5QXzZyn=H3L~+gJrrHxmM@jEks5U7mVFNXuw=La|SBRyOY${#>B| zP>9V|&ULU@9>x*E88ZbPM1U4DjZ~M;n}v5F+qzQ?=!@^2_ph z`F}5-??fF9--3qri135Lsq2xh_9_vZ7HR$y9ggS9mB?D*I6`4l4SWPOBAgmVawZ!L ziC9EG7D(D~nKIAU9p1|^M!>fz;vNY%2o602j0 zQK%75zEri&FOB7I^3?{{IuSp2B+e>Tkx@!fk)KY?7Ht1`83}88 z;@{zgkS(e&d`I!+lf60gmD4R%Z}7#dKh;6Y<~k%s&+PSu1qnA(j|vUDvJS_W*WJ-Y zT2>$J4tWD7%YQF}`qdSE-Wm5=S0ixk)tQJa&7$X+JDN4_$s5Y)54Q}9(_Tw?CE$iz z`hze0;#Nz)zP116r>Nov;I^{HY796>cNG5@zq)tGB}DuIA-0E8+BKh+$F}UekJx3- zr$)9ffR)bZ`&{mec22%yw9BihaD-ZJZrWxh-Rt8BA$AX7K@DtVDm=HE$jR%kOO6X~ zh172gi875!D-4f0E2e~9=NC1MRWuyk)0n7=f7$-wx}(=Bs#SNAE}dN!t5LTeG3Ce0 zah8D>I;Rye`oG<%v?Cns=3VBwA*dc{blw>?YTj8r`g;U8e(8Mf`jV-fI_dLaE3#rX zICMbLObp&Bjk4eeB`SHwHK(R>4hpG>LrO)&Z@5m^%X);hj*oE|6NSVws&LZ-0I~kjScIHagS&8wSj@xUiWxvD=LVb01F`%taBEDwqjxsgK9BIr?K^NJ{96^0Y0$4u{mX02 zC!ee+nX+ie%~f0k)L<)pi4p&sxEcvd>`ElTLKQ8)>iha4C}&?= z0vlmtNo?9|$$3)bRxG9fCM>!_Bm6%DfZY<@aB-7JA~}mWl7;KpKrlhV&mnb`Cd#?d zM2bZvUjdFr|T?`E;-fmG`xq=;xd2zH}|ro<6ZL_F@mQjky!)mmc-$Rgmz zZ6OPXr3k3)AsY}U>1RkpoExgwn%+PHV(%fJT0VMPi{s;LtCKx>mbeQpao7Q6FMxbh zF8Q*7H6?HMlM$*U^vsshLnPV~17~a=!YoY(!FMkkih!m6`b)S~?wW#kta=Ke}O_PI@gVWI593w3_c|tg2WwkQC_~rkk zX_clzvLX^65j|EplkMGAe}czKfu-)GyA+?^*qwRetp~81@+s4y?5$Y8Z3r1>=}3FduMHhu0-ECa}FkGcLJ6 zm)9!_qRd`Sc(<_wbIOsf$+!jpRNm93Sre}nIvyhM)}rd`=|O`}W8R%>l}yw)Ws{b$5uVD^`rghA4EoGU3Y&WM`6G`#R$J$@1n##SIyCfiW2i4H zN)x5^b%#skJzW<6LtXnfHv{P|sFpCd* z#tq{Tq4rCyR#9?^6X_wY3ZE{U0f-pQJZj(u``c zzkuTgWrJPoNf?gT%5fZ#llAL8xA|L1IBYt*E@d$a-VLI2>y}>LwH7*qL+AA<@VEtI(c=#@gk40)BYj-7FRnm zCQ5ROT{m}ma&EG(+%9SsZvTCBLD``4OY~)JZ3p?bvQ_m2M%g5}QVyj(c0XmXl|{r# z^Z2;^d75=jEy2HkJ8o&D7H6)*dIrrmpBNoJM#PZhraV-JcO){}G&&N}?bf{G7Uuc) zRePl&ZbN%Z+~1nxI+kcy0)LBZc~P*V*qrNuiLq1q#WdaT3>kfu;0c*tAEVSll^>

eaZ7l&e{1638CUHL-V5Hmb0#QAt=Zr$)`}HCFeMD$>;7G(Zh2p3Df3e0k~-wk4d9YO?sU)}Eh!lsz085o*#m z{JfG@aBvQM-ed=g#G>btR@YwMVG%80r?{-nRF_=G5r!jX*a?Ot-_VPwH~p`_)(%_S zmxTaR&T~n5eC^q5EbP)ze&dG0!ISGFH-+-G>MDIzR?^WSGSL3(qVyBnQDhfH-5s;|E+UlVK&*NEXnMI}b~5!k)0^rsj0cXr3FejGij z=bQJI|GTF&G5)WxBK;3%lONS(?CLXpr@@M+-=$DXjxseteN+*VnW=m*BMfE#3nj~Z zu-2<00i6$uHzt)W5d2`$lvth6bp3xfXWOJWnf85Z16CAXy{fA%FxFuREMs2n7PfK>x~tDlG#_hsov0hSyt>FZKI^B_$JsCX_cMXVR$iJV9Nfz zVll_qRrLJ^Mo52g$67_%jk<=GqjEuj?i>Rm0X@zD;YHeUAB1|$4U}tNBAoF)_0XJT zHXKsFlW40>cyqU$1x_+8F<$q)%hb|LlMJ&vV z>n!FDII+=K(HLa{q2lZx$TD$(LJxqcO+7tRy6_AQpgeF(*6kl?K&3rk{VE)cj5t{0&fqv2V)ug_$4@L1CNBV|g9BXie@r!vh$JmtXx zU(eos$biI+d*w)HB*M~R;1hw>k|j19xF$31&|q%ARlEx!&nMJgZE6Zg-}vrxZ@@4w z05wfaN}fti5*6*Ya`{2`q&3)%0l(2IvhOu|Flm3+OVUbjz!g(gj~0)thK6S%`4rmdFJr70jsuTmgP1yCrD~@cn+pImEDyc`pOOGXZhwZ6sS-k$fV}=Z?j{Et?A1( zm*DW0PfE6KNDlF%2x zmRw}yv$F@7*qh@%9X8Cv2ZxnOUhZOYm-N17AHl9aYfjZ8+FcI z(3bj?8!K=pwPrG`co~VAC3?D@%vL~)RNc#8SV-xjyc^DX0}IYNV%iiszEpNH1ukJZ z0f>m8oy-VUtoXfOkjV4%eekNwS&?Oj`ktxoJM-t&)%7@%M^x`kvybfQ+;b#5F6V%C zz4gGVves4FQn;!Hiy~MYZpA{ zoGcLlYt2=Tp4hqGWp~-v-@oJZBm2>7H3T=L`|g(-n=H+SJqehKJ#S3&tKO*Z=&;}a z#B)zSed8&G_wcQE6za0sSgCe%&Dv8irVC(q5#xJ zV?h{Jw-aVr2GKK@pZWy@%Sb%WOAN~*SOB3sbtu`oR7jMuzkdFg!5%AxN)a7V4apW| zLnYY zCLJa_cV!K0M51WTDE7u(op#KoKD$WD55++%r6;W8SYgvuk&Kr~Po5uuo}{spwTQM? zuPF_?4Exc|6BiQBX#9iFKbS!77GC#O{bP7LGBoX=$P@Cflx11M&h_{!DnQjvlf&KT zSeFocQLUN-hN~4TOGfvOr>9ZXa5T)FYS`Im+PS==$;>r&EboNf$^VuPYf^()cVrUQ zM7e~b79(s2Z$!8ukPio0I3vAv`buzwM>t+|7>>D5?4F_7^jU|)2VJgNxj$P(J_|=% z>f|x1iZ@8I&CkG!L<9i;5y=HU2mc6oe(9o^6e5qSpht2y1$d$K*b4Vy)%W$Bi}QWT zb8TKlMI(6pf0^$8UsvEGtV1(Kv(k^;h1Gcv zDUH^6<{s|}18ZJD{F-Xfh9ClnY9&dA4MRVEy?(0t0B!B8>AEUMJS_F-Po5kdAtQrJ z3H09gS?`^GBw6^Ew@y{Yx0PYtb)BtT$t#z%S@(~F5)p}kqeUzdaZ#kP!pbYG3JLRA z#~Aa2PajVo;|b_)Saixb6d}b%V5C|2rtz5E=}IZR7|*7ZTucbN3QI^!xLA_H#$PN| z@Pe6Ph?)FmiHE-pvM24|qDXyqdmZZEo)hpGlK!^*iUHRwd^mR;i|^LHr|+KQ?5LgtG#@>VXGV(V&r0UWt9C@R?Xotvh}E zZ+TlP=1CJp_@ZfH(Jefe51O91ebC=N07_wtkffK2ELI0{Xs%In`Z?;F2F=T1MG)fb z*v6f~S4}ziQ|bAe&Ip~CP{C}&UYn5cSs+zHmI%Je30#jc#o4SWKtIc$e+Lk3OTdI+|aTvGS{$J51s&jkPJ-Of; zot7?SGuYRvpBZv3L;L-TUGW|^awc%@Tp=KXBPi=LGBZ&6USFZVbiMhjOSX-1DLORs zwJ$lvwe`983?jAkwuxeESzBA#>bjP;ip17TX#?;hvee_xs`7BJqI4asc(0?wV>WH}#%{^n-o8Ea zA1y%juHMZVu-`8|VBZYI%p%snmFJb0Z-@zvp#b|fT`qES_$^F|XtT`ozSwMSLv6OS zjY+9d_@iP@W2QI}JxjSnSuE}C2M=_#S*)`UzEbU~TthVg@ld%^;w6K?GdvP_qA;86 zof~ltf+PgsXzFw`q(g8m{zPar<4XszC~#!dBU#ZCehI*C(P{;a9FhEI0*}Oa2KQK| zLVVVLI}3R}MVO0cOTBOYCME>uudVbawe7zQNQi(Bi$m5xkHfWM5kr%szI1)py-{cqg3C)vDqqpmsnq18 z(MSq8_L8pXKIy6{335(IsZN4{OV?Pcv|FBB_38ng;hmnht~Xy)fNkl$H8LW5jE+F^ zp3%1!nQ#Dt?gI{w;oFei`_^G0$h15Je#_y>8wNrDrC)wU9PURFxkG;0`KO!wlX`2PtHFLmv|Q(-4oGm`&oY8%pk@*KTia`-Ur7=rxQfVcxOdEc{p6J(-TtdtcHu< zM3F=TvLP#+ohmGGO{3TQHA8wXWb$M74Fv3KbhQxPn{H7p_rT#%lH$DUuFA^6`OTZB z3crd53kqBZ{~87t(IoO&rmm;3<3$X!SysKHCP=n|*;!0WH}S3YZEu%;j6y}JpNh!=MXGTVH`+lcHF*?gT%s?B)Q~NbqUqDA%m&(-4QuDM7)4?2odGn zCN_`E=WRt+B7{dM`29h$p-MIiE2kI5WB!kx)v_#a8XxaPjXQTXI?`Q}()D$5!XqdT zV$O5Xq-Yj+E{Xe*aStyl!pXbsNU|`p|Hy^Mt(1*EIo}1Egvw7EdMzbwL4e~1!O^JSw5WZXZ|2} zGl?cAO%jupQqq-?R`nH1BqU-9i!&BPi*spmSarHXPARr`$f@%0U)F7iUhA=yKiD7m zq$gD)^{fo|0kcuJ_d@yRlmt`3bBK$J%t>`XpRV}tFiAt zKX$x7-0Qfa?z(OcL7t)%lTxF49Md2h&W~z^@fNR!0kf@-VAA&)ly&4}#`LfXPE7ls zy4Ic&nFBq;{%&8B;Uv?bPdem>MvxBt3*pD{BfX1$G-3U6i^BJEcrx>2qP>Q+?-rHC zm&splDario^T-mAZeEjVtCA=W#Lmb1#rm%Kk4djAyQ|Ukx?&~px8<}3w%jr4>V7)d z(iv((abG7N=eBD@aCTzne29KtVEE-y_*_+$m$RZbyhZ`6opbu!O$W@AM_0%Mf$0Yqhs@C*0|4ghz*QH6)KCn}9~Hg97Ln0&qc zhppqii>*tq`9^031KQ@RuyIkE&RG{#J2R3sFBc+k`f|VQJu&2Qc|_gzU(~@%q#Uey zQVV{WKvSovKYa1m?Dt6UOPU(p75q>s!FFj1F!~fbIa%Rm30o@|p|-p85t0lLTvwQ# zWO;OxZ<@7ClW9iPf9cGbOHNYBi}e{K(N#YWlGCQCss5Xa>{GEzCd9x)x{plZpi1IVP?4YkvARQ&CmzEto`aXyVbT zd_EPbb)G&WO`F!q+a~ibjj*Nt3l_=Z{?0WyneZ7kAHuEg_AKmX?;M^1pVqFOTA#{49To4@pzfUVghQbgdpuP8um5NlJ!T z#nzgF?QzTRNe@Q^!FT2iM@p-Tjil~zPmQ5-uzFo-C6rGZwd%Z2boxJwUR_)Y85}g083#?TQBzcewXDnKSf*W_c{stS)}6liPPpFG+$$r!T7N2OHV6^B`@ zIZ-pl@MQR5h7lbOKkACTG`H~}a9D-Ck=0sAX5I!CW<+I7Q^-BkL0DO~&HJw>(~kz`^|Sw{(qJU*MoLLdkiV*36RP z+D`fR6t6Om>aQ)@XhLWkK{T<6{lsFp=YJuo#a0;F43u?VU07oF+K_7IhT;0|w~OT( z5FmLwWa!w5jvo@yMYztHlD|3(nBO?746ja1S9U!crBuI)wPVF_CF;iAnX2N&V%5?d zuM7$T@5bbzoJ`E)%=bH-h8%B!BL<5VN8GaRudQPnG$xLjT2it+t6Zx6NJtbn6fd+B zb!1#%T;%pIGp907@k&rKtDB+G*PY#d@P6pbikZYXYw3rT`eO1g*kGT4!>+;z8wvt+ z%2=ym^04TEfl7HfbRt#5vf#va*OtXk+U?D3|71`Po1sC=1|4gQq}ir z6nn}*>zQIFnCU0dHGh$%`=RwFrr?4rvy202Gt24f9O@Qn5mcDs49y#9?uFtSM>%9h z$g~2L_&!PC=KwtP%gof#+S73zsZZm%?N=XuEB-lpo_<jyHVrV(|;3(U4xX$%w7^r@s9+6K%zT*z^Y&DyLnaV`f4#jU+8k%5Axn6kgX=c{3sYleol) zTZE({m5h-k=PMK9k|^*0sFHt*OQ>1o6$C$qI2wyc#9DcJ&2s9u1kGta5j(J!V<%ay zg>|sYzNiQe?}nRd-*JW2l3OyFjvd<;vXnHpN)pC^n1)6$sB6z1{mecMMzbWtmqU%F z6*_0i<8?=aiys=;{3VvZ;V^85s@D|Prq$agO=H`P&32a}b=6oK>1=`~zgYN;vNoRt zx_RfjHIwI3ZsmN`{n1BKdL_-Y@TUT^IX=!PdAHZNQ_YeS>oQ=%SG(t5%AO;BcU$7# zmsRXNV>A9feB&wo~J|wJ!hlErF8wDf|=r{BxnH>FQOB zCYi_ArcJ-0%h%P_+!nRzku`k-q%6k~&J=UmG4Jz53e_+5b@lHMs4Nh-f8f|dS<$_q zbU~jUL3)mM?M8;iViL1(qgg$93=EyyCfI(-n%+&l=68HtYi#Ky0$=&S3nDMVOe%s6 zPSFW_cDO}x?Up1049}Zv;;h_z1~35Vv;$IY4(ZF)s# z4{+;8$g3gI78&;e`d~Btdo-Na(DeNCO(#Y7 zW%26f-sAjo{Rpqt;_#E5e0BLts%9))VoradUER1&6BNlUIb*_Fm^;)>raPj$s{y_2 zX5;@&ZTRH8ipu=r_3MlCL+g1f3R>Scu7#pKzda6WVAM0}1m|$purt9Jn1-&u{zeLG zn5Hk8|H%J;_nXUY;`_~b#mqUI2We=?N#fqBZ*ERhk*7k#F*{${u<_~Wod&FRZ-PND z4sP~t9z2-qm+%=iD~iOMo&M5pZ2bKb=^ypt;nup6Mbf$fR+tQ^?_EyP#4ccr$cozgqa?Ma;W+$bZStto! zU8B3x+_cKgVFSe5Yp0Jr7VDuCEm+n@KZ!mrBdVAsRXTBBYK28ODvt00GA+&0ZyKjA zD5yJ4x?cl})-0Ufx#O&>-I%&gJ$QX~ZCM+Cu#I4;E=!2KrG;&R2v#S%;Ns@2(<<_y z8IChc<{1~qbps0mRNp$qhZ_Nk{l04e^Z)5M*X6h>OL|fZBwO;)r;$V?HjB=4lG4uQ zpIINJE3Iabgk407EXN7bCB~++@jT{5oyb$J+)M4N@8}@QuBAFbux z_3G7@tE=6YWMf<3k>1%lR`5`xwns|uCDN;-U+E}bTt6ne^lV(|l;CjS`fJw&&f{Xy zZgU;t8<#mzGk(2Jrqw+;;??|Z+ruMRguSZcoL6RcYNv2@EP_v2eks!3W&ZYzdCvE0 zVB);K16~QH`}B8qJ{tk8atrbH359`2bP`9An1{~|(;}9nwZBc&afB6-$S!3;CwOxX zxRE8w%c?v34d_#bus;Dl9o zhaM^S63pikA%3)V9ESXa$?QL^tzH=#>`B8bH~ml9lbZw?i5M3lYP_zC6F!N|j_GoR(GRqsdi*gE1`(l&HO7`tUu-FvWHrnC zl!*-#`I9!?{wi^sso1cgB2?~|RtbLE#VF+#+)b_LNrMo@0h_uT9lc>KNcqzfmWpOT zdI+7mk3tL@<{Y9=(#M+AAVEPZEnGU66pHcDPTv||@odY_IW zz40*Pfyy=QP3JQ(HGKuS=;>8eCf|w4+e>v*ZM_@05p}bSl*@k;-=B;(s_Mt4 zZu=3C23Il?#cfx!4E+B6xSg!4+eBhPJlew-ME68?V@R@muY4JpPvn)xtJu_%=byLv zqGRchwda|Tx3XfEFt^!m5xOBlc0xB+Su8$xq7-Q=EN*HXYHAv4Y$~P;KP0d(Up9O5 zr~XpdmFQYjS9I98?z_?WP(D<0bVa1`a1pAj?Y|P76g=VH!~$8plVTsGY?uKIAaDa2!RZC7Vk*S>u~hOW^q1|PGy1&xA$80HR!U@0lK`+z{)rq%yrh9$dS{bCM}UV;*K)lA6j#GR)JPp~M8n6OY0X+zI~EPQX6q|u>d zpOzz;f}}_-q1`sFjG*tINAn9x6k!o!P&<`>Byr~eGOu~gHdGT_Ibax)- zjyrZ7NM*}d*jdMdc0*=z25SD+GvxpVx^{};w64XC-0nkSyY^KWJ!dqra%lO`!CBAz zRh2j9P0!+wk+mko03$Lm4%ii$n%O1KZ`N1lqT{SMaG7V4NV3HrC(s$|8BSrvJf0Tm z!ex*a@r5IpYZ&5&3^q)#WLuWdAor22;no~R48l!98ZvkjnzB&KiW8z?!}bk>Vb|e@ z)K660r)Jdm>EHGX%wN_A*B@_>6m|f%#{hO>$>1$kr;U>zztGMeCwJBFAMTl-Pul8f zSU34ZzOwJG1 zEulpOAu(^`oLq-KuCF|%nPO^GDRY-|m9p*yyNx}+ghEVikZwGzjtsvDnxwK*w>jFx`K5~B|~yAh36)}G2H(JmB!p~ z(ekL{BI5~LU|2@$@!%a{LvUh1T<*@h6^-1t!Y957g!6WhTo&bU$CvQ1v)QtJ9O_B~ ze_BNRUR{LzqEj~!nMG@El!&`PU7e?+{c&qM{bJ)i!R(7ADXQSs)MFk9AYK_9?JTEG zecM(iCsiAvD_3dOw|D!nFd*P=U%f5Ds@!VvY_%R3!Zok|W#er;i4dB^hBMhs7BC#a z@ZlWyC=YHej=Sd`s5Vi76TrEOM-<_RI6Nf#wvXew@}SLfnBPhWK7LajB>>-mHrfWoMxp_t{s`+35dIX~67Cv%#-D5q z?;$fNb`!2m2n;#1CkHvT@KA|X!V|La#O?{tFINh4y4l6%!SDX)e|V&lC<9OHU5wLtb#Vva{7jkz$4yR3`}Rr3 zO3!2Yjng%l@ixsmKPpnJ@NCa%yz3>jKTMFRX#boM4~e+i4HWZnL?IuQ-+c5~IV~gW z4ARY4_#n&%*gDx?hi5fl5nIuc5nJ3#A|UJlbk*4=x%kRsEf_FbEVr#z8Tp?Lo%Qt{ zBeB|;si}=?=Jacto7WUK$%d925#`@6Bn5(U(NvnAlBB8W>c)0&yIJYEA*e#aiU zOOL&cwng#M#1%3$rk|kG;gF88S{zcTd(@KlOeV!#IHArqz_dto;4xTOYqc2IID;he zB74%jE!}&~%mG!x_8;;ri7y^2cI`}l^Bv97t}B}>Ch;WfzPjV>H;dHG^v>i2TW;$Q zXDo?rr;eQ*-5NO!Zs!yuPq*u(wLtSJbMcPGyc$t4C+2#YEN;=7*PJ zRzSBdyIs=1y*ZlxeKN)4amK&*mHzl|oPjp?P=9shN*wia^`B2^R@YISe%(l(rml;} zL1O>^y?l*%cQu6h_T+=7E!x2SXI~mKt>5+fv(@<(4k3*7FZOcJa^I0!Jydia-8&nX z44#kL(J`ByJv*KNSz}7SyI~}D8{;0!PRir+w){sDFK69<8+GP|(ghNf{2T}oYsDw{ zm$#}~TU5Qas=U#~$w%cjWD}uS<{Wh*j2)VlaSP=xVbaE`jpuS&NKPCc*qNmWj7g7> zk9MO4oUG>B*V8%$>B7 zDCrRWwfKkE`ynF9>qYr!b$lH$=WfHuYNMv8&)`-4J~eDVh8zN6Uv~wDo9L#N5e=bS z1*%;qis-Xd;Xn*sZzKe^>Su?V9c+mE<}HoEWlKA1YkszB42jzu;=XiOTm#wKK;p^) zQ0!74*w>!^@Ki|s7TdaD^(EKEQwzJX`&Y2EBKQIN1Hq@#*fJPekT4|?HaVtORL}Tc z$`U~~^b;cyT;Qj+UBpGi!HA5IM~*^2*4;J%r&a{c(bk?{!FcmAM)uvTP~64(2SM{5 z+ft|1Z_avdssV2##1Bw}OLH9?I@Xi_*i+RmV609m)^Ubwl9Q^8Y6%P9Jd?J@k4%S5Q!?@bnj#3C0No7wSe$>8?)DncyM_$Y^t7r= z@6r#C0!Tb-Wfe^-0uMR(p2q3)vGmdOz3H$cu4SE`)IZ$qO8=L?ui!7)f4MjVL2;Ag zL3C*Wtk|j~%K2)YS6~sw84Yb^(Rj*Q@zADjJZSIpsV66UqF5*P%CGr4_{CmT98eaR z&3U==_uQjyvZ@f3x`TMwRObU4su?_fA+)MW2NmvVLG)mAxMxq#9SS zV0EHDPc2iMO`}gDWVp^c-BM?fbwT%lb9O&G-|mt8M+!d6U!tV7xN&6k?C8j&ql4?z z74D1%ABLWrBf8h@P>U7V!01#{l$M(I@U7O<(v06gIL521;EsQFtx3w&Xex<{zDjwe zUwef*l6(?^pIESoG?~hJYgUuc-`HsK(#eMas+nG5NIezK=83ws8IcalJ z^5&#Oc>dp7-Su`4@56WMbB)fIF-JGdrCQUDFORrfs@hff9kf--A0y6BNb_%?FNc|= zFV57o{`lqeZrC7!lFr+HOIQ4lHbN+2bFAu8*{o_scgE!kvpddlDH08*0<#6%jWgJ( zJ#;9`Wx(ux%>JN(0cqd9IgYbRP%b8ipI^M}nP*NNVnML5;B~?IN86G*n>3LiB{u}4 zDcJS-lam@0ACwKBK~a#WRkBz;X7l0?H6geq_rlU*{hJ#)I;!56U+%C+`e)BS|Jl+0 z#pq~^Xd_-$AUrc;euT{*)*iKdXsZ8J&B8Ux7k%$ccR`&_2PiidY-_XG;!fE!`IXm> zyJwPj#6M(DYlt)1!Y~FlQNu6TN&-To?o>ZEEuGh^a$A4X3hS@YOS&>^ znU3xwobNk5moML%z3kCk8qL}Kz{bCOStj#0x8H@p)0h2bJW+p48{NDz{?%~%8)x%c z--cUDn)w4R%F~69SkGG?S%&pO9!?*P2)}GCc~AG--POr$!@+ezQ9^~m(oSXYvAAME zFqn8kTZ3#$w${oO*jV^VNt6u6a}JyB?86Mh?IkA$AZJS*i{FFElCDkX(|(bKLgb?| zUN$P%@v^;&RnqJ_G4>@EJ=F?AvTeK%E%VC)QcC7|Uf@^B*^=`lxtItU!YJ4qLp6NC zWaZ5+)LE@|=+7ATy$>uC3vnLtnvlL36uTvErsBHR_q_go$*a%?VZMp*)*{Y5|I^S@ zU0wC@X;fPLTcZnG+S>!S?GO@z7)C@`xE;+bOZ+0!{G^PF(o+zvKa?AXOc-N*;iT1K zuG?_5KAnwlwpb7m29Bo*Cym;^rY0KiS4P6Hyv+p3o+E?f>+*4^zc?8(pb$&3{*t}ea298? zBg#2yb&tZwE|zje&8ne1sx47iJ$!JH$B(6mY~Qon)dT8bhnh%0q?tq<6iGdsXcMmz z!>U=j=e!BsrRO;{%-vYE2-~M-Hxjc%j;FW;>+7YCNkjV^U4G>PZn2KxpIa^}rUm`glRD{tYUe zr1YT|Bh2d6N!?WfX$m^yyMLrz*MjH3==>EHshgGFu4_O{G+IqG>8sh8EVRt14~S{b zjuB1NtIkHXai#cy4gK^>^an7^RP*_$-63I zB>kC_=+Vb&m2TAotex~lL?y<%-|ocH}cas%iUOnXd#zQ z6T^F!KUcyX&2#)Mt3Y;^FE=>!4$5h=cuSOX^g*8RMj6BS`Q=1PpZ1LilX`V>_iZ2D z=iF0+iJ8%bg0H)9F8uoKbm&yCo=%9E@6cdZ&yuoP+kDKqTUA`cBA%qT-)h2y!9@Hp zsNLZfB4#MvPkHnBN!-Lxb9>S2$$LSx4i-z8bvVQ45_dt=&k2N9Y=xD0kk1KO<8nS9 zqng`*-C*VyN|0p74t!ZZ-FwF`F&L1+2Vn71kt~yqkyjvG7ZcY%idhy|kB00DOV%~L zhI^hMLe5Ub5DW*RgolPftzoz!*3y1UXLX2LP?_)4w>oso42G=P^ncI815@w*5n4^C zeRpiziMPhb|7moQ{(MR*>v4V|*1 zo_ye)6Y&|dVTL1^`6;@_x2@IJk(xwQodMu)o~;SEX413PH#Zfh>Tc;&s(F=WEz7jh&G&in(MDT9dfEeDbj>nK?D2+Z<{u9z4V_lMWBc%^@BbB*{e81KDNmp!7Rt7N6j6`ye~sLt+Ht$z?1^S# z??nQRh26*Lju~(>)IHjedIJnoys`-5 zBZ^iVyn9pMW5ipKx*rb)k?qU>vxD3xbq2>1_fPpS+fy}Z{_i=`TTaM~ZNTI7yJ1v6 z1}$+ll6f7Z5d=G`{62#a3pnPuEB8$i4|z8*^5~<}S|7p)UQSlgx{Gv(9a|+U>Fnh! zq{D_3%;cKr?p0bU|LDU<^AWWwx_dP+5<<{ccMHCkMYx&4+5p0etl_Z~Y_w_2b8EU& zS?~#pKoN#_-ZIO6JA7q0x|`GEy}?0)BtTWI=&*s2qKGjji#FsGotSky34*AeTUu&m z-pDVvTBK=!YVkaE$(U#Hx^(Pb&(>|To@F-SWB^7^?992?NUYjM*YDu^;AiNw&EPFY znA1|q_DW5CFk}$TEL=uG6v(0J$Eq0~;X>S)If;QZm(u=6G2Ul5R{Q>Vq^IeS$34zA z{SCqsmwIC`*B1yhrmYRHu7pJWmb*lt=CHxbr`Y;%bb1fQ{3%1#8HW7RL>4k2Pf;R9Q&0yp=6 ziRL3;QSA5|uDL{GqL|M=_~52IHkd}|l7sGnw57HN%AKV?OIX|94s;MX>@wUNVIKtZZf&w0 zjoSKrg`@JFx-GGvEEeCP+1SwFaVHvie&g7L=TD{{i^a2L^Z3Y!r@dYJ`&!1UI|m!r zy!vW)_fUb0h-;NkOSQGDD`HAogCrFU5C8t&(T0Bc4fAYJ?c72Sp@VI%*#7whY!K-u z7&RG2sRyZGWrUH~|HACJUvMv{O@~8%p`WdS;OCvhVpfFeD(5YK$(eH_&yVgs zKYR93cWkAy|by-16D8`PY<#cdumn`j+9us(HXt(dgHn6$*0$bEz$+x^(#e@AO zQ>ET>tauaKYI-nHr^{x zm%UPd(`IwnDYBBjBTWXiU3;c&SDBUrBZ8#_H0D%6ShT#K4Fmah#vfif84C^mWSvJ>S`!#A*8y z&hqWPAgB74&R=JFqpYoMe|!7df_0@IPM14e$b}q*?^XGJ`;9>I3~e{d4y9B1?X_Yr zHQE*WgNb0)Zomrb92r|KX6@|(^NeZcG0qNsQaAx^2;nTC4d(`e0M3R+Ioff?%LJF7 zpvTeia3=gXR_@Gfk{b-Ebh@-w3loCqSQs4$kuvD}2}`8|!TE2=_fJeFKqze0E<_ns zF{(nj_%$qM$pWR(m|trwtZG)QtfuMJHx$=0S&YxgL&RcGN^C(=VrxNSN-`ZQaZ!+LM0YDxA2}GdjEgKdmOZh%j_6|Bvy-~r z^oHzR(e&s|Yk>*h#N6_e3BAZJ0;ppS%P46MLBTtDN!pMogW4~2M&+!NEK?a)=nHyG z-zRUnV6W-I(!o7zqk_4>LS;7QxHI(w$14(p`L>03yAR$rq8Rd*%e z0B%V_S0c^$2R~o1JwK=`0?&)U2L0aG9(aCe zx3HX08K2p=`^EL^-_bD1E2LLn%ZiNML!XP#C=bVI#x)-<;f9)4$3`B0e0)63ugOo2 z9-*z0r*Dh84=eYr4;LlGM2o~kisFJN5bo<$#I;uCRJF#-p=;NT-JVv?Co`{{c&lVx zKGu13tCR!T6~ny(>>n5#fYKkh!_&lX4~PjwD{USf9nn;;xbCqgvECf7?;PLYpbuWc zt)AP@kKNd~0+sxE4?%1X^9_R^J$MMl9!lwW@=1@Y_|#WCi=2q%tuANK0TJD&T6`B? za;FeNF3u*}Y*1WmwK>I2lKir}^>LB%%gk;|jc+8l*2${LI1?SO!y=+!lD#z z)-LwBBE#;#V;VV17}1d}4}yAsBeR=oQQx+&jPFl^=dXvb>WhfWUD`}o|7?|wd_~VbbICY1dT0xk9*g_ipvf?9{E<(NT{(!lv)for`JTytzH*XaAv} z$MI(qkFD zuKN8*UJdlz%(4LqntDN~*KG06_^B^)drixf@AenTmxRLxGRHkryE9iCjlESs_5EiI z{s9R0&r;S$?vy3PX;ao_uAt~dpy zaK(SV*KIjEktf#TALKJUlw+!-qapLA(+1!1eE0&KSvdO15&sjAw(A}Qhe+)TqTbed z8Tt9fe%O7~>)RUYLXx(mWUeXYnTED)Iu@z>lk0i5*ZAY;*5B1XH1^{c?;)%9ujQF2 z+X{U`MYkE1o;Db)GCSW#$>%z0^Pe|UT%=89qz}~^rTzz;Iap_o$n}o1Nr?gR5j`Jg z{1)5MajUaq@P(GL;0Vb8WfD8?g*MOsl#5W&v8wy54;9_xmhF_PK21`uyXOa^VY~5X zgXGr&A|j4g5t<_(Bx^r9oE-lV95?~a$(H@qOP&|;_Geahc6b`;WV)$>%$ zQC{o6LUJ>=GzUOLe?N%hhs*O@;O+La_NN8;dBoP?+Kul}U=l33>2>o&Pidh@yzFfwMIX^+Y@97Q1Roa@OVWWi!Gkm*Rp_Rs;R>RY-SBr#$Fg zq@+=42wAs{w|@~+mivuHq$|u7haWovJ$KBHULN`P)wy@~R#x^Hx>m7a!x3XeX~(+# z&N^U$C=7i5@2D*o{<2b9iOwvOLQM0`5VMI1abiLiK@tk&1oJQlF1}$zRu(%StMJY7 z7f(JPGK~$fmEr;-lB8E6f;=U-=%NIJA$_!@nNTM(ZcMg*XCqb~@dqwb+r&F@=gH(J zYvyP~&n+}Y9(`M2oO{12C%x&;^tQhe)M+ ziX};c==hS^=koj2_gogk&`r4d)hv)>ZEPE)tr%OmmpfJEV7@>ns?s~ z*-Kq5G1;rWoewEkr3wE`H?i!Ys8w-UenF7$=mFyY!VvnJi_q$u;ON?~{5x~aov+`* zL>tto%m9A69+DvPrC#-P-#L<$Zy1V;hu3 zD+D{$fo#d2(VzWs2`CxNDg>R0Y>Efw1N--XW4Zw|PBic3rv`2hBE~x~K6uAB3_+f) z6Y6>N{A{rk>S@&hr#U5^CqI4a(~pf>w`k|bFR6D|@ke=EekDi!MG=W;JKQU%xcJ?T z|9yS;gDa;RQV*#x-x48p{?NvE2TBJ{C;oD8%#N*Sc>7;tOx0IT<~3w}_^S82*MBB{ zld+DRkTPmCQ^%iF%7+q8ge!lomMhO;K64?d zB7_iBXKq*4#@ALw%WmEJ>FNnjFuj^ZVSo#SCz3DiqP_4dx@GSxr}A<)tT(m_SC&R<3;o-DJbtW{oFW!MJy*cMdw9v*hIfwjhO;Ck(%?0uI`SQ2~I%%FjC^< zw*4tG@sFYS^$EsKzl!EfQsp7@t8OPCTiLTzuN`%`VcX}9&$n<`a1rqI$svHs36q2) z_7*|=;DUVtV(=wvpx9KID{kC)G(*Zbx-=|iofa)u8c!?N*=QTG>Qkx^ROQJ~HfNC8 zObt^0ag2X`JwKAKX5!Rxk~$iJ%cBN&A0Lb#ygE2LA^vi#%{DMPdVjpj{QM|0`a9O5 zb-7?kH#i{O5FtA;sFv+KqHCZlxnTN~nd38IuhFBEqSi=1zXK%Xy0T#H)G#I>aMH^jXt_RHXIVy2m1r8kt8b zlsvM)26eOxf@o2P(RjVL597YxTM>1c6t5$?5Z|}cm(C0y67FBxCIUok0e%! z1q6vo;y*{Bw<19jk&xixX$LV-ju8h`_``-$A9XKnXvjLev?3dfb+kA)oX_T~>j&4B zeBhVsS8Z}Z{9vE;v0kD{A6K<;W7(RToy%X@t(a;?#_3m71d=d zr88!fe56BP*tGOndG|ibj7L*dk}AnwoLzh*Np(r38_;c7iA}|;;_Dp>3t=TEJpI~r z{<7db|2;N1n_qc_-DUmXtfGTex?3oJl>kBV_y|i3)Zn_^khGgpGspRqew?IHzHSo#TQyGx5gRii-F_MsE0LJ8HDK%KO7vN z=)Q^Zk37zqD}*sZRyOyLIXZCi|MkYgU!|Z0+}FzLTESWkb>4%t{>pt!$0w&_It zrT`QrFpzq5Oj90WqXHW%m!WcfaxK0RZr6`NU$fe)(VN3h?JY1EKs=_k%Q! zP9eW#N&!bqjsBeZBVi8HED065%~IRz`*v+MR&l{WITjc1yc$+%U{1ulx>(L_j-5`F zBI@KNG@2pqBlxX4M5PPLqBGtu02z&KRd@(_s|}(yaw*vPr*vf)rOO^#Rz%PS03`@Q z-x)4v{Urc3u$hKgyu7xLQ*UCp#SXA-k}faPU|jZk)uA?JG-e^W3}ERj8cM)T7JdlL zc0nF0>^2_+z=^}CR!7HJ8W`gx4sn#+=AzmlO2ii1VMK!!x8p~J@vPp`#>bf1Vop-J zSN+L@UONE58;qgw^rB=ZqVpoLiU4n`bOz=R3{4DRFeL{I#;e+}RnIUHMTf@5X34P# zyeDYUU{Pf^`hEE`^k!HO4$wS)>Zqflrr1&uCCn2(c@dEv$)apab>b6-i(Cyl>hX?k z19X@S$2tMYv1q+UAp=`!h+?(ru}wQ{PhhM7i_e@UMfSefAGBzX+@_c-w9J+C+hHce zXHZhbH?tuV8%K`oWFcKu#Q3$u4eT`2lbIik&K0Hr4#i+7aUDcgFgercTF)0OY@+^) zpPtAlq6CI0>(-tdyx?aBA!I#VnF6-udYqv!UWOf6jbBL=Xl)Y+1d zzdR6c(;mluLVjc8Dm3dXhw6v=6=G$*Gm;B{0mhTq2#HgD=qI%72AG9`y6ED_d=yk& ztg36IPf%RY8VLK9#lFxiOXpMrX#y=mC1wHr;93@5Qz~fjp=vP>vIqQt5AbL43BPDY zQJr$`5|XI~eg@|ob^TEcPx`I-%i|Rzel!R$w4!9&F|0+%8xm#GWCg!Tx~>l79{V`B z?Xs!xw*-FMNcAE^?`Zc!23SNnrmZd>8-;J*(q|Wdx#w$mV6?{& ZAW|PCr`Wg(XLM`IW|Ri_`Ahlk@&R}sbiDuo literal 0 HcmV?d00001 diff --git a/i18n/en-US.json b/i18n/en-US.json new file mode 100644 index 0000000..0bf0f26 --- /dev/null +++ b/i18n/en-US.json @@ -0,0 +1,154 @@ +{ + "menu": { + "dashboard": "Dashboard", + "employees": "Employees", + "employees.employeeList": "List", + "employees.addEmployee": "Create", + "departments": "Departments", + "departments.departmentList": "List", + "departments.addDepartment": "Create", + "positions": "Positions", + "positions.positionList": "List", + "positions.addPosition": "Create", + "salaryRanges": "Salary Ranges", + "salaryRanges.salaryRangeList": "List", + "salaryRanges.addSalaryRange": "Create", + "design": "Design", + "design.colors": "Color System", + "design.icons": "Material Icons", + "material": "Material", + "material.form-controls": "Form Controls", + "material.form-controls.autocomplete": "Autocomplete", + "material.form-controls.checkbox": "Checkbox", + "material.form-controls.datepicker": "Datepicker", + "material.form-controls.form-field": "Form Field", + "material.form-controls.input": "Input", + "material.form-controls.radio": "Radio", + "material.form-controls.select": "Select", + "material.form-controls.slider": "Slider", + "material.form-controls.slide-toggle": "Slide Toggle", + "material.navigation": "Navigation", + "material.navigation.menu": "Menu", + "material.navigation.sidenav": "Sidenav", + "material.navigation.toolbar": "Toolbar", + "material.layout": "Layout", + "material.layout.card": "Card", + "material.layout.divider": "Divider", + "material.layout.expansion": "Expansion Panel", + "material.layout.grid-list": "Grid List", + "material.layout.list": "List", + "material.layout.stepper": "Stepper", + "material.layout.tab": "Tab", + "material.layout.tree": "Tree", + "material.buttons-indicators": "Buttons & Indicators", + "material.buttons-indicators.button": "Buttons", + "material.buttons-indicators.button-toggle": "Button Toggle", + "material.buttons-indicators.badge": "Badge", + "material.buttons-indicators.chips": "Chips", + "material.buttons-indicators.icon": "Icon", + "material.buttons-indicators.progress-spinner": "Progress Spinner", + "material.buttons-indicators.progress-bar": "Progress Bar", + "material.buttons-indicators.ripple": "Ripple", + "material.popups-modals": "Popups & Modals", + "material.popups-modals.bottom-sheet": "Bottom Sheet", + "material.popups-modals.dialog": "Dialog", + "material.popups-modals.snackbar": "Snackbar", + "material.popups-modals.tooltip": "Tooltip", + "material.data-table": "Data Table", + "material.data-table.paginator": "Paginator", + "material.data-table.sort": "Sort", + "material.data-table.table": "Table", + "media": "Media", + "media.gallery": "Gallery", + "forms": "Forms", + "forms.form-elements": "Form Elements", + "forms.dynamic-form": "Dynamic Form", + "forms.select": "Select", + "forms.datetime": "Date Time", + "tables": "Tables", + "tables.kitchen-sink": "Kitchen Sink", + "tables.remote-data": "Remote Data", + "profile": "Profile", + "profile.overview": "Overview", + "profile.settings": "Settings", + "extensions": "Extensions", + "sessions": "Sessions", + "sessions.403": "403", + "sessions.404": "404", + "sessions.500": "500", + "utilities": "Utilities", + "utilities.css-grid": "CSS Grid", + "utilities.css-helpers": "CSS Helpers", + "menu-level": "Menu Level", + "menu-level.level-1-1": "Level 1.1", + "menu-level.level-1-2": "Level 1.2", + "menu-level.level-1-1.level-2-1": "Level 2.1", + "menu-level.level-1-1.level-2-2": "Level 2.2", + "menu-level.level-1-1.level-2-1.level-3-1": "Level 3.1", + "menu-level.level-1-1.level-2-1.level-3-1.level-4-1": "Level 4.1", + "permissions": "Permissions", + "permissions.role-switching": "Role Switching", + "permissions.route-guard": "Route Guard", + "permissions.test": "Permission Test" + }, + "validation": { + "required": "This field is required", + "min_length": "This value should be no less than {{number}} characters", + "max_length": "This value should be no more than {{number}} characters", + "min": "This value should be no less than {{number}}", + "max": "This value should be no more than {{number}}", + "exist": "The {{value}} has exists", + "inconsistent": "Inconsistent with {{value}}", + "invalid_email": "Invalid email" + }, + "paginator": { + "items_per_page_label": "Items per page:", + "next_page_label": "Next page", + "previous_page_label": "Previous page", + "first_page_label": "First page", + "last_page_label": "Last page", + "range_page_label_1": "no record", + "range_page_label_2": "{{startIndex}} - {{endIndex}} of {{length}}" + }, + "en_us": "English", + "zh_cn": "Simplified Chinese", + "zh_tw": "Traditional Chinese", + "system": "System", + "position": "Position", + "name": "Name", + "weight": "Weight", + "symbol": "Symbol", + "gender": "Gender", + "mobile": "Mobile", + "tele": "Telephone", + "birthday": "Birthday", + "city": "City", + "address": "Address", + "website": "Website", + "company": "Company", + "email": "Email", + "operation": "Operation", + "edit": "Edit", + "delete": "Delete", + "confirm_delete": "Confirm delete?", + "ok": "Ok", + "close": "Close", + "profile": "Profile", + "edit_profile": "Edit profile", + "logout": "logout", + "login": "Login", + "login_title": "Welcome Back", + "have_no_account": "Don't have an account", + "create_one_account": "Click here to create one", + "please_enter": "Please enter", + "username": "Username", + "password": "Password", + "confirm_password": "Confirm Password", + "remember_me": "Remember Me", + "register": "Create account", + "register_welcome": "Welcome", + "register_title": "It only takes a few seconds to create your account", + "read_and_agree": "I have read and agree to the terms of service", + "have_an_account": "Already have an account", + "restore_defaults": "Restore defaults" +} diff --git a/i18n/zh-CN.json b/i18n/zh-CN.json new file mode 100644 index 0000000..3770a76 --- /dev/null +++ b/i18n/zh-CN.json @@ -0,0 +1,142 @@ +{ + "menu": { + "dashboard": "数据大盘", + "design": "设计", + "design.colors": "颜色系统", + "design.icons": "Material 图标库", + "material": "Material", + "material.form-controls": "表单控件", + "material.form-controls.autocomplete": "自动完成", + "material.form-controls.checkbox": "检查框", + "material.form-controls.datepicker": "日期选择器", + "material.form-controls.form-field": "表单字段", + "material.form-controls.input": "输入框", + "material.form-controls.radio": "单选按钮", + "material.form-controls.select": "选择框", + "material.form-controls.slider": "滑竿", + "material.form-controls.slide-toggle": "滑块开关", + "material.navigation": "导航", + "material.navigation.menu": "菜单", + "material.navigation.sidenav": "侧边栏", + "material.navigation.toolbar": "工具栏", + "material.layout": "布局", + "material.layout.card": "卡片", + "material.layout.divider": "分割器", + "material.layout.expansion": "可展开面板", + "material.layout.grid-list": "网格列表", + "material.layout.list": "列表", + "material.layout.stepper": "步进器", + "material.layout.tab": "选项卡", + "material.layout.tree": "树", + "material.buttons-indicators": "按钮与指示器", + "material.buttons-indicators.button": "按钮", + "material.buttons-indicators.button-toggle": "开关按钮", + "material.buttons-indicators.badge": "徽章", + "material.buttons-indicators.chips": "芯片", + "material.buttons-indicators.icon": "图标", + "material.buttons-indicators.progress-spinner": "进度圈", + "material.buttons-indicators.progress-bar": "进度条", + "material.buttons-indicators.ripple": "水波", + "material.popups-modals": "弹框与模态框", + "material.popups-modals.bottom-sheet": "底部操作表", + "material.popups-modals.dialog": "对话框", + "material.popups-modals.snackbar": "快餐栏", + "material.popups-modals.tooltip": "提示框", + "material.data-table": "数据表", + "material.data-table.paginator": "分页器", + "material.data-table.sort": "排序头", + "material.data-table.table": "表格", + "media": "媒体", + "media.gallery": "图片画廊", + "forms": "表单", + "forms.form-elements": "表单元素", + "forms.dynamic-form": "动态表单", + "forms.select": "选择框", + "forms.datetime": "日期时间", + "tables": "表格", + "tables.kitchen-sink": "基础演示", + "tables.remote-data": "远程数据", + "profile": "个人信息", + "profile.overview": "概述", + "profile.settings": "设置", + "extensions": "扩展组件库", + "sessions": "会话", + "sessions.403": "403", + "sessions.404": "404", + "sessions.500": "500", + "utilities": "辅助工具", + "utilities.css-grid": "CSS 栅格", + "utilities.css-helpers": "CSS 辅助类", + "menu-level": "菜单层级", + "menu-level.level-1-1": "层级 1.1", + "menu-level.level-1-2": "层级 1.2", + "menu-level.level-1-1.level-2-1": "层级 2.1", + "menu-level.level-1-1.level-2-2": "层级 2.2", + "menu-level.level-1-1.level-2-1.level-3-1": "层级 3.1", + "menu-level.level-1-1.level-2-1.level-3-1.level-4-1": "层级 4.1", + "permissions": "权限管理", + "permissions.role-switching": "切换角色", + "permissions.route-guard": "路由守卫", + "permissions.test": "权限测试" + }, + "validation": { + "required": "该字段必填", + "min_length": "必须不小于 {{number}} 个字符", + "max_length": "必须不大于 {{number}} 个字符", + "min": "值必须不小于 {{number}}", + "max": "值必须不大于 {{number}}", + "exist": "{{value}} 已存在", + "inconsistent": "与 {{value}} 不一致", + "invalid_email": "邮箱格式不正确" + }, + "paginator": { + "items_per_page_label": "每页共:", + "next_page_label": "下一页", + "previous_page_label": "前一页", + "first_page_label": "首页", + "last_page_label": "尾页", + "range_page_label_1": "无数据", + "range_page_label_2": "第 {{startIndex}} - {{endIndex}} 行,共 {{length}} 行" + }, + "en_us": "英语", + "zh_cn": "简体中文", + "zh_tw": "繁体中文", + "system": "跟随系统", + "position": "序号", + "name": "姓名", + "weight": "体重", + "symbol": "代号", + "gender": "性别", + "mobile": "手机号", + "tele": "固话", + "birthday": "出生日期", + "city": "城市", + "address": "家庭地址", + "company": "公司", + "website": "网址", + "email": "邮箱", + "operation": "操作", + "edit": "编辑", + "delete": "删除", + "confirm_delete": "确认删除?", + "ok": "确定", + "close": "关闭", + "profile": "个人信息", + "edit_profile": "修改资料", + "logout": "退出", + "login": "登入", + "login_title": "欢迎回来", + "have_no_account": "没有账号", + "create_one_account": "点此创建一个", + "please_enter": "请输入", + "username": "用户名", + "password": "密码", + "confirm_password": "确认密码", + "remember_me": "记住我", + "register": "创建账号", + "register_welcome": "欢迎", + "register_title": "创建您的帐户只需几秒钟", + "read_and_agree": "我已阅读并同意服务条款", + "have_an_account": "已经有帐号了", + "restore_defaults": "还原配置" +} diff --git a/i18n/zh-TW.json b/i18n/zh-TW.json new file mode 100644 index 0000000..49e12a7 --- /dev/null +++ b/i18n/zh-TW.json @@ -0,0 +1,142 @@ +{ + "menu": { + "dashboard": "數據大盤", + "design": "設計", + "design.colors": "颜色系统", + "design.icons": "Material 圖標庫", + "material": "Material", + "material.form-controls": "表單控件", + "material.form-controls.autocomplete": "自動完成", + "material.form-controls.checkbox": "檢查框", + "material.form-controls.datepicker": "日期選擇器", + "material.form-controls.form-field": "表單字段", + "material.form-controls.input": "輸入框", + "material.form-controls.radio": "單選按鈕", + "material.form-controls.select": "選擇框", + "material.form-controls.slider": "滑竿", + "material.form-controls.slide-toggle": "滑塊開關", + "material.navigation": "導航", + "material.navigation.menu": "菜單", + "material.navigation.sidenav": "側邊欄", + "material.navigation.toolbar": "工具欄", + "material.layout": "布局", + "material.layout.card": "卡片", + "material.layout.divider": "分割器", + "material.layout.expansion": "可展開面板", + "material.layout.grid-list": "網格列表", + "material.layout.list": "列表", + "material.layout.stepper": "步進器", + "material.layout.tab": "選項卡", + "material.layout.tree": "樹", + "material.buttons-indicators": "按鈕與指示器", + "material.buttons-indicators.button": "按鈕", + "material.buttons-indicators.button-toggle": "開關按鈕", + "material.buttons-indicators.badge": "徽章", + "material.buttons-indicators.chips": "芯片", + "material.buttons-indicators.icon": "圖標", + "material.buttons-indicators.progress-spinner": "進度圈", + "material.buttons-indicators.progress-bar": "進度條", + "material.buttons-indicators.ripple": "水波", + "material.popups-modals": "彈框與模態框", + "material.popups-modals.bottom-sheet": "底部操作表", + "material.popups-modals.dialog": "對話框", + "material.popups-modals.snackbar": "快餐欄", + "material.popups-modals.tooltip": "提示框", + "material.data-table": "數據表", + "material.data-table.paginator": "分頁器", + "material.data-table.sort": "排序頭", + "material.data-table.table": "表格", + "media": "媒體", + "media.gallery": "圖片畫廊", + "forms": "表單", + "forms.form-elements": "表單元素", + "forms.dynamic-form": "動態表單", + "forms.select": "選擇框", + "forms.datetime": "日期時間", + "tables": "表格", + "tables.kitchen-sink": "基礎演示", + "tables.remote-data": "遠程數據", + "profile": "個人信息", + "profile.overview": "概述", + "profile.settings": "設置", + "extensions": "擴展組件庫", + "sessions": "會話", + "sessions.403": "403", + "sessions.404": "404", + "sessions.500": "500", + "utilities": "輔助工具", + "utilities.css-grid": "CSS 柵格", + "utilities.css-helpers": "CSS 輔助類", + "menu-level": "菜單層級", + "menu-level.level-1-1": "層級 1.1", + "menu-level.level-1-2": "層級 1.2", + "menu-level.level-1-1.level-2-1": "層級 2.1", + "menu-level.level-1-1.level-2-2": "層級 2.2", + "menu-level.level-1-1.level-2-1.level-3-1": "層級 3.1", + "menu-level.level-1-1.level-2-1.level-3-1.level-4-1": "層級 4.1", + "permissions": "權限管理", + "permissions.role-switching": "切換角色", + "permissions.route-guard": "路由守衛", + "permissions.test": "權限測試" + }, + "validation": { + "required": "該字段必填", + "min_length": "必須不小于 {{number}} 個字符", + "max_length": "必須不大于 {{number}} 個字符", + "min": "值必须不小于 {{number}}", + "max": "值必須不大于 {{number}}", + "exist": "{{value}} 已存在", + "inconsistent": "與 {{value}} 不壹致", + "invalid_email": "郵箱格式不正確" + }, + "paginator": { + "items_per_page_label": "每頁共:", + "next_page_label": "下壹頁", + "previous_page_label": "前壹頁", + "first_page_label": "首頁", + "last_page_label": "尾頁", + "range_page_label_1": "無數據", + "range_page_label_2": "第 {{startIndex}} - {{endIndex}} 行,共 {{length}} 行" + }, + "en_us": "英語", + "zh_cn": "簡體中文", + "zh_tw": "繁體中文", + "system": "跟隨系統", + "position": "序號", + "name": "姓名", + "weight": "體重", + "symbol": "代號", + "gender": "性别", + "mobile": "手機號", + "tele": "固話", + "birthday": "出生日期", + "city": "城市", + "address": "家庭地址", + "company": "公司", + "website": "網址", + "email": "郵箱", + "operation": "操作", + "edit": "編輯", + "delete": "删除", + "confirm_delete": "確認刪除?", + "ok": "確定", + "close": "關閉", + "profile": "個人信息", + "edit_profile": "修改資料", + "logout": "退出", + "login": "登入", + "login_title": "歡迎回來", + "have_no_account": "沒有賬號", + "create_one_account": "點此創建壹個", + "please_enter": "請輸入", + "username": "用戶名", + "password": "密碼", + "confirm_password": "確認密碼", + "remember_me": "記住我", + "register": "創建賬號", + "register_welcome": "歡迎", + "register_title": "創建您的帳戶只需幾秒鐘", + "read_and_agree": "我已閱讀並同意服務條款", + "have_an_account": "已經有帳號了", + "restore_defaults": "還原配置" +} diff --git a/images/avatar-default.jpg b/images/avatar-default.jpg new file mode 100644 index 0000000000000000000000000000000000000000..8294366c22e0d6b0a8d60742534a349b05d4eef8 GIT binary patch literal 4284 zcmeHKdpy+J7GEI4bX)>g18=anPHPkPycE)#K90 z>80abM1+d^5EUvhqI9Ci?VP#4QMc>XOrP8N`>fyRvp;+9_1$al{atIX_4)C7cmqIo zu(7uR332`Dxo=loEhon4jzO+1zsTxiD3B0{VZ4!Q3S`=$^6gsjGlKNhzJI-WQ2^4?|okLcjx;VSS*dk zh+FK;LQKSa0Bpg3jYwAC0uYUw{HR`U_3E05&_aKZ9kZ~mgW+bm3gz*7{tn&cD z5>(;4;1i<&h7E{rV)daoVXg&Wo?9nWKg?#LUR6W&(xW|s z!o2fjJs=hO7g6sp!s-RRl;ezs5y0M7D|iW*K?Prdm}G|j2uLqN;#z7?yYG^8l2RahAV9FWUP$ zenihUOa)JD79$7P@68I`y~w zRR&_vYP}52C|C?$94CTBD>Pp)SVRPHQhEkPp=9Z~RHg+hEVWujR(0uZwUzGS`f;05 z3Ovw)PC&~%W(DwI^NnnE&lF4L!yk@iMVs%0Da~OYS4us@{@uy6=Itbpp97vu_9NZw zZ!68)5>3|aSfHaw5Xpw(7N^NZ4>`ulzhLOo5nO6&DXeW82T7r|2ENJetmPbs{Y7Er zX2g3P8M>4f`A5>*+D*i>hNfbqdbTF^6s3D!zffw~p8HB|pUrQEoGjw%y1fTZaa^#a zQFR*{BNhFOwVui@zJFTYWy?sB%+4iT*>UP+t{Z!Y0`0&7RV~*l8L?%7IXI`uUB4cA zZhU=eJ}vKP0hDTl|fE;pJ^XmZI#|YemPe7!K$J9liU(cGJv7JjN@lZ*d>3dh!1_q}7a!jlB zLH2f8gC_2u>Q#O6)wWs{k$1hH9{JINT-)(@^q{{Yo#3e+rF`+}m(*MdITO}Nyj5&& z>bxGI2iHi}KcfiRPuGtgwOZ=eeqWv8$nZ7m$|hdRNeaSwFmj1&yDny1J9v2Jr!egE z?KAf4mQ+tC7%6_uIK_T2d#z*9_-hk|tcqNkPvjHvn7aFCd&@8^bDw_}M|Yqu>kC{1)7RB{sqh)e>YiL^Cox z)3N9QrNofKmRWs?((WjLLbtI^!x{UZ7g&{!gp(wvcwnU9{3WiKt`z#Hb-nhA+vN`7 zC#>?EC9W4Z5G*{7<;!HPTw+gX<-zONkl7EXp_g-&W!vjW^VN}ard7IXq;GPk*A*SS z`H*8fr6qAqWlHnH?C0y-uiNoLckj70TKOVX<{d)ukF`17!~<@HM$c?(ssqf9kNz%T zRgmI!^_O_x?MRGQGc(=X}_S$|g`c|97_CE@(PH2_0S>IS`JO9+BpV<$` z1LuycI??@%I_64pyR%j$w0J?h)yI+Wpz-%pmEpR7aT8iy-~lV|`pbdSdB`!OHi0 zPgKZF?~`qMF)jBr_R1g+Ja*4cSEZp>eN8*;@HI<=&Enh9H3wMl?ye0_u_=BzrDLg{ zDSVChvYMCWKCc*|Ef|e>lEoQr@R~OAM4sw4%CjzF)%-mxxUM0y6LQD0L|fA~1BS&q z%}oDIhG*EVHxTHr I{|ut{-&hbH7ytkO literal 0 HcmV?d00001 diff --git a/images/avatar.jpg b/images/avatar.jpg new file mode 100644 index 0000000000000000000000000000000000000000..36c56811e0ab13686f5afd9e00d96047d5e13a40 GIT binary patch literal 28421 zcmb@u2Ut^Kmo6GQ(gH%H6Qu}>fb>p4q>B{kRiyXcO9Z6~L_k1kk={Y1_bOF-lP0~l zL|T9lPMkAy?muT{{xkQUyPs$6Iw<%nVFS_t|+l@3TH(V`AbGee~ohzmSj+m{VL@OhAfPP)Gph z&Ye4Cq-1pDvlHzus;;093>{KXHEI;jjX5sc`V9aBh2WasU7v0-S%@0ROt- z;NsyE5E2pJAt9v%;Nsxn;o{>F5a8ouzZs1E41iBXaQ6Yf93i!q1re(|jX-EZHZj|? zs!ovhID%d9jYrrWl6$mt^b8yiIk_G^77`W_6%&_`f3BdYq^zR)N=H{u-@wqw(#qP# z*3RC+)63h(*UvxT-TUx}$f)R;#H3HjDXE{oq~+x1hAf` z+t)uZI59ajJu~}jZhm!bePeTLduMkK`RC;H?EC_Cd4&VO`=9Dy_y1F&f6#{ts}C+d zJ{~^NUwv?JeX)W^g-`H+pYX1n7LkQJHLE}N3&l6&kzs~pI` zD*cN_|2>7m{y%B-zZCjk`rOU~$nbEm3x-DpfB+VAVz}2}nIv2}Z~yP5ACG+{a8|g; zZ}erDZtbMD`YX+Zy8PChRF1aXE4@!UBc(NJU{Rn@PienVP=qc;a!SfpXl?5zI9uLum_X-TtPbd2zEW#Ck+OQ7Wp2k z?W%!L z;h5MCTR?%=hG#?K57bJ*ExdrUEyvkF!1(>WXq1Qo&Q+h+>3c<-2 z43C9o=aiz`yTMV&TR<_=<_q7AcO5DEY!jw(`o(qji(5MJGvL!c~HS>;CpZB-2?Y4zA&^tl7ZU2RE00H zCTR6FReieH1^zpjCyL~(ofrj_MVMy8lxr3wiws??B=b{Q3csDxu}n|ACEy7>-R;Wo ze_aOC=GW3wR?m$w;wt6h%83E|qdX!W=AprfTjL|$!91EY>ofQszxI&G5!BrqtkqO} z6(YRBP~SC5>Bq|1iU{7{^ReU+$@IcW!fT=gSi)X_ZFbF&%Ceos8Ej&I224q`wDoL9 z+rUWEf(90P%{lWPpVquWa=6n9d?;pzyAW%e-O{4H`^+oJ2eo#zl%~&#WJ3GgfbRV_ z+(TZO&{yB4;j&26%3t1ey=*BO$+qHsMA?V^E3@HoLygi`fj$TRpJO@sTFK)pVz?^V zSN|`fNN6~XmMj5Q!Wx(Fq9WApSWF20N?SK->+u=qBC_Yifvt}PGSsiB2k=qs90#)= zJH3w+we)1kINx#1N2#wEIvv73NXdb}R4m6KqxIA6MrDZ*Rp5{7@t(UYPt9h`CL9$m zGe0{?rf;S67IteyK3Z82=M$!8o@w<`$=b25E5;CT)_b@KXnd=b&Ch9zwy)a%dpZA9 zJhC7N;mG*Y2bNyFj8Q6y^Q($4G-5p@i;pC4WGgD(Dap!sjMX~cNb1A8%pSl7rVcs{ zHb?MxB&hcL?q7ga_u5JJ+Bp0Og52|-^W?|R>ejdl%&f$>74>-Fh)H>|?VDMzYEZ?Q z(Lbq3$eB85_jYGwQ6VB|muWj&v7wXE_}yve|G5Riy&d1Dq(Gye==M*q_8+wYC6xNX zmB#5f&equTte(GZ4v}RF5v!2YLzR;6(kJ?Bvoo71lH?+VSM@_AkQ{T)^BD8*0kO%OYDqcR9N)7>2lVPbyRGvrQ zS>-eO=WUDepI5BUzZ|88h$1$>a6c?$e0q5Iiy$_egLL}OT<`FyCq1^C>Dd;zUT z<4*t+Ma0jGQ`MWKHG##rO_s@8#!KmCAmPS67}8h)>@jiKR`l)`U{mrZ$mlzG@3cAM z77!o{>1~<4e!P7HyWYzXN{1aQLZ~sI%5xuZ{g(OkBOhrZ%)LEZjBGjV>hczF;Gl!5 zwF|){3*0;;x*|ELJowVw4=?9De{l;~hMhoGm9QsXLhpff@_(J8Fxpf zlx{;Cr=QOY7g4QSKr1bZ+Dz#t*&Wk)3xKFv&Y39GfY_^Wo@H!IwNz7F330y5yJA^I zTx&qVLGr-?b}!}$6Gb|z`35Jc`UV3xQqZ*XZSR<3HZd%Ic7FODS1z9sdHUSoFCMfl zB%Y3=zgNnQULs)fqLnKa zkb#GK4>q#({QSr8_8;DtFx1r-?xg(oz8QQj{`ft57vXPQFRB_gNwTv3Q+9QpH@uk5k7% zG)sTuVD#^E7{+@7%{RV^B>KT4GVk{@Wkz+@gRfXFd9-dVdDs`U53g>E|8DAdbyA>g zT^-)qb^@D_09<5Gq+oMlg=cSwzyunUJy7KEihP606&If6i`l^xeyxaabG^wsGHsE| zo=>@CtM$jdx)%h#!Pg`t%t!9`(Rwz|FU`*>Y7Bl{U~>lRFFNGc_b!7M#B68uyhoSP zW}et0G@(Z8L6X+@^4HXPyMiwD^*?s4Ffo^{YV0_UVZ{CPl@Rq&UOnRn6BCRdo|$nC zbXva=9IXN;0|G9(ZUHf4s9mr|TQrY%6m=jgcxj|{POzV?>12vhL#zkYhh*!Kxic%Y zug+p{_t9Z&1xJ+l$QmTyudb;7w)UG1EJ^M8`Fw7IqE5^R&InLv7@bwX)>uE#L$DBWP|*!s4|<#+OanGZ(&N za$Mv!pKM7Km0ps2!S6{uD)f`=wN;-$k2}l^2$aP&6tjm3?*0G-gAmJW(uJ^^M(~ia zv+6SL+Ak5mgZ;h2)7?@0${#RVGn8Pbda?Z|!*3OLCMtSbw{3Rh=_@k=ga9TG5)%+a zS;yKEV`pQoOH~a+``>FNI{(!ED9=v9O-fCw`r9qQ{Tb|r&JHj977%{D4!=CMyal}N zDz|TEL7UBIer;{2zUIrw^5N-_6cF`N=Sx|D^c-YQ92A);2Ov?aJZzg`9ylR>C z=K30L=5KJ&Rm2#5U4yf|jA)ngyah-fv?FNrM#7P)y;rRjHNS%kzgQR6E(SVB>Lxz* z+!LwRk5j3s`bDw0;j$ld*8aAQUgCFQrMgGlO~#eyuR$fo*gQ9BL>@*5M;0B7>=(OM zfMIZBE`T7^A9e24$9^RPYqY*12;l~c#a7m>6(Q&HvN{#id3ibY9U_f zse~KuCM0e2?~|4KaG}@NvA({nX8tUOj5z3rH(a;}<}5+JLZx@rtwuH;7uC|UBM5?3 z-tg-6F1c*nHHrG9x&oj_o=_6KbXi^LrcZh!t~U+smOYXUa(llp=7Ytkp*||R1V(A`33a&$x--ff==?dhRj}>LPjnnAOc)xH zDl`22#~`bA|Fy>jB&1@gIrEnjpWxOPnZgoNM~3&QsV-*rz?Ix@EMY0L>h`k!Dhik* zabcH<&ig&EpY2!Vrj-HM8d9ksIr(FMj`FKFT%;N~F_!K|!bTAa^06)|@U_)c;;V)5AuuVNBix?36M2O&O{f=)tjz#M>pe<>t_#;=v3{i}J` zzo3VTmHGQy(0L_{5;N!DG{z(UgOKSTY#C;EkIrfXQPR*K**eOx2gEU z$US{6lgq%WcFTy~KwD-<*FKCOlo^$=cMEuPeV;Oq8~A05iT9;S$DT(18&u#6b=#f* zn^g8V1~bziE+e@d@(tSVhZ!@=Jzyd@u3yNtm_>(4??eM;%$XAW8 zVay8U8qQK8DU{7+mGq=+-?(V*KJ~MKye$XMzg+ie&t8CfOmASj%5?BGj|M_=jknyr zqI=c!rEN=nrfGRW@{kIZ?h}2^l2r}nW_Oe0LxLb)40{v~cqc{cSx8>>Er62-XBaIo z38|Gb+L7bF2lsu@cjM*_E+ttX*lG3{=E*umL#F)&qAza-@WkzPksfO&0;8Ym>f06acq? zj$wdbzqmB_K0GXqCIHgSBlCia=hCs!L*huxyxXC2%W)G%VK<42>ZLjA90h4c^%69?w#}LbiUioaP{~t038kpDn%~8V1V}Q7bp9aA5fWib&QCB zr^)>nOq+lGu!BzbvGvQ8QG#y(`s45#^T@W@)g_2|^qs_B*M}y+OIyxo8r1;EicOp2 zSKwEO%@RGSW5B|@7N?rn_1NHTjEWhWkUIjUu)2&=l40H*mq>8;k(m=wl(7fg4_s0kNN;Z>0#JM zZ}1AR*^bbD=e+r2snV`}m&~cc1~kg&*tP zDW%TNwZ~iLpQtfKP`~S}>EbnW$_13GnyBZagn>C4`BG8Nq}{&V7=-aq@fqoWi>;4; zzQ<3M5tT{}zRqj?Lrz3)J*j-=iF8EBpEZ+==Ei}6y}-0z)z$ZQliodGN>k(JcS(l{ zuoO;|&yG6aGS+?^b_(^zf#myC!hc*dY&4I^^h!@v^uDy!;zJgrO_0-RUTAzaYa> z<8(jPsGAsZF?;$5sh>Wkd7)W(+x0>ad)}Z|x$Br9Y;dx}8@YTv|lKES}&UD54`FrevB>Ka1;`UR{uVk)a?SJ%z zWCBNT0Xght$I%zJfO!bDl)U>WtuyiHjo{5PW_b$=S{^DR$Vd)DfWL*SQFRrU0uQw17C-ME4^#?#1!|)1r9Ab!tmS!jJ~P26Y0GtS zx5UNg52T#SWI7>Ck4|US9^5j`Z)xBK{Q{cc1}g+{n$=!QK?f8YZUNt%+OL?r za1P8F+cy#%AqJ4sAn!lS!GXwT`1^p_8Q=|=IVgfi2cV3H z@kf$oAnodk3#9Zaw*Exxaz;9?sA{s@nI=Pyq?ec|gUqHS=(o>%{V(0|$%zVSTsbXl zL;oQKD|yG!FNW*Vv!CZz2(F1nQ6%Sl;G!#^-qL47S%L#kMj#N?nQ%_MoUlDpG4TNf z7SFX?z}@<&vxsChQn5B=N@VEGK|oe}veqQeOQ{Pc7Fx7JTno9oSS(9R(xEACkuHD? z@RWN$n}E2eBC?sTs6vN_MoULiOMwRPUx~gPV%;FJ8%}*%x*z$-(Zgs)kGVds6z;s> zX>udyPnEJ5e%*0o<~|GvZj#WRWkz)ObpMdSopfdJ6kb$056oE(9F_~yXry!PZKj%d zOY%&BUrhm^)iPc)ELU%~Tj$FYYvTtRflxY-LdkaYTv%omCbKR2?GCk+(cuo`vSjm$ z{4Y`_etVFODLi1p-JyU;q{RTrgsz2O57`4=dl1Ls0youol4}l|9Q~}EEIq$+o|V#Q z5?Ft$k#BUi&^t5e5Q5LmKu@-@RYyoF`tdXk4w>G!4&n&9b)q5#Qutunj7TECKaYhC zCwtB7B-C1&mMkc-YeqoT_*q`q9UZ{OK&_ih>sx?~&n@6$7ur=eE(>a}E^FT&S;pM( zp_b?BUG;(PQYJy4-C)zG#0=m0+0=es z0Dy;u`2I#nP|})o$Y?hUxMha#*M~r>McKU`M2Ymk{SYCX^){JlrDz#`1AD5?!x}Lo z6`bAer$jQSpU`qg%W{t_vbroJUyxc6!1c^N>x~j3TZ-!xJn5S6t$RYBtgBb8X65&* z@now0H5NO4zxBTx8^t@$d_PFs+2~>WU5zIiP4nO-`S@@pXis8D@&OCiG_5jX>2Ult zc<2%MdgHbJC^Fk$mk3G8JwIsYs&&N@PndNgEYzUdGbyUKds#su#d8Y`LhtHpq8p-PNQr`Ib`_YS3rhr(SiMP_w6w&}{SK%P3=UKc+4tVJ4K=*v-qja4_8Cfp(&Fv|cwhfA}v(8A#zWtS@$6`;Y zc)b_8zfUYP#%yDZKujxMEQP-qPGF>d-d>KjO$`rCwNEZmU-55yG9`mwoa{kK)_d1< zNnD%7k)UL;%k*#Zpcbl568sop;uuLTY~abuiMg~{@U@M-z^+W_zr*6dMvs)V&b|T# zQPm-9(juM4o6eIG*Qem0vvB)_XkN0&%uJbrCSbJavLn(ffy}us`T^Zp@A_5!t|5c! zo27;8VRQYkNDkuMh3@W@G=(d!oTj+07_P6l|0nqz^s6xbXkIa9j}S;xDujE>ACSQMRkB}Dt}sb9W) zSeXRF1uW8>;p>dGDfbT90qAX!Iz=X7TKWT%Vs!b2<+b4c% zhRKb+oQYd4t((q65=FU^pI3>BTm0#P&Ru!YbugEvQ%8pr|294sC^ZsF{*^|U01Yl4 zT7y#!+D;#}S!qALuPp}f5nE?&m)Nt*X?xRZuLqZcG32Z0qzYn}>-*o`zqc|8PX+z9 z^n8O3}zX{cf<@EnaG%9J^ zQkLuLY@J3b?NeJrqLd2{SgeM3a*-RSG&rrEp5*y0^|W{UX!sxbCMwRC5NT^zm~pOY z#9S4|@Kp%$;T0^HIKlN2i06U$eY?GG8k`w8u`>@#y(`f#Th$H~?Y)+P5j{o@%5%v| zNYNLG0o0S@e7-fMXQ6K+XPWo?7 z9J`kAMN5qzK#@12@H@xq@&U)I#vOHlla7ZRP40G_#;TUV;KLdXT}F*nJv&@Uo3=@K z$d}^Zh7j|`pF>w+nKs6Qb=Ud{N_uaWb0r#YoXl>39qYoNW` z#isxd4KqRw&!~>)jZ-s6CbkWN&&$mt+G|H~|T}V=S%wCKPe2D$AO|u05&bMf-Q_{#ZE=(Vw4T zPqF0wB{vERRdGz_@YVa8z5NQOT%r<6H1D;a9%MTlJqgxSFcq~g+|rR@55kt#G}ke^0kZ-g zbT^Lq_*4mFvvXj%hMNBdFi#WgP&SKrP675mH5yLWOmixdq&YVNOlF;nwdve!ykEiQ z6NVHj&J?N1RH=^=K!@yt`E}}s{R?Ps%?_YwD@%;lE7JArkwfiBE|XeRzwh}DH_v9u zo~B8PWd}eL@5m)M%&JtPhTcd^uhDJuxZ|6?6f?Vpj?C4&&Qk&HQ%jphs}`i z?(gqRZ#cwV0&U+)|I#yO-k)x_9U2y4HaD+nND-Rmm8vGG+EPySS!sU}1_jE?vLG!A z=j~G{4Gk9hTpda9hA6V*wy_AOhynw$zvEH@fapRjJOA8vbtg%KjDOVt?*% zlC<*vH_HO?3uf-0D>d=B26ul3RD0Orj>ZJ3uK{WJu~6$Bj_xEfyiMhLsJ9YcEYR#R z7?)dZ-SnwD z!AU<(8t4qyRb+2~dj;QXQirP_9rS_DX{?9Ul`o115ii;mX!P>`V`PJ7)%2#ZUr(^! z7`+86yh_rp*Jx6MpF5Q9jd*^)FFh~}aMW>?(z>|>x$imNRcnrh{oH1G7phR3ytI*J zT3$2R=3dAC1gc8(=3u@g{=tjuTCKDr|6XR)DU-hQ*C2KzOI5T>uBixaz#=RIX0?C0 z*2<`W5?#HK(BeTSIlLsg!#Thb>=UmsmJz6@T~3_V8@myNw*08H1#*7BA|l4QuTdAJ zE|L3G_ekZ?Tp>sq;g!XTXnATM6)hdQL`DqIGkINfx?VWRyubaWW?{kpr{KH>&DWJ) zB<0-It8fJ&byXLN-q^J8mOFKPpF`hb`=YNp37HAGS?>JfeV3V+#}J(MELXx5?8b(Pxw4`Jbqa zj0#?kcd%?+$ZS8X@~(_BqZ|7eeI{0r$|Udbyv%)Ja|PNFRbfB)J+tcftoKwSjz7-8@u@79yy>~mtFRN#HSHb@9vynvb9R{)ZRn3F+4}vH zWlR>hcipb~d3C!{yGP#g)9fj>9^b!_o=!bD`OalAEhnk5_7uucTd2M@AI`ZYACq0; zP(MGsVCEnSbazvnWLp;ltGZ-zMQpf;>0PS(axc6J(`$>^6nWTC(-wj0-BL5|XY|tU zb}8iyBJ=n+Po0hWQwoYq#cQcPrUR?jnQ{9;HPl`LM#aj_eR$Y^ll4G2HcIEE(@V8XBTH@*3a?Gr&+2?T6Y}u!Xk=pBw(_)avzA1)}di-`a<(b+Wm(^ zLAoO=p>_|8l5pb)zqj3}!RKJ{Vtws8m$IQVqjJvzc6X_S#!E#vM}fBz2AlC(pWK#J zgFQ)pmXRa^YrXXEUh0iLI+Y3>BP8!WZb)b~m~HhF>9NP$oy@^-MyW3AU$$57ni0k@ zDCj-#aKmOORby5KXBw@KTAKK54FDW7Mc0SL`HL%kgX7BBxqc-<*6aTYj{CRcx~8fa z9zOMk_RrKz#3rFr>-Fm$XoqS4(I3+8Uu)~fS3StOhtrwIz@I|csc!)|pf-l2Qayg* zTnhg@|D(n-Q^)zT`dR$V_`6aYin%$klhKDIW(G_47tW5pr1BC3JdAFNvTTr0&@7rC z(TD`cP;JT1+ge}#eBRHPZ&k*obr8}l+LkX@K1H_CtK0X=~`C2JB%|9Y} zrE7enIHXn+*nC}7emHro!bX613#dFa3=u@)VB0xYVRpdJlDm|OAwFXG*AxxsmAF+C zXmcdDp6df%??+P>c^>z~Lbns$ikIVW!aXK(wo4`UW;DlL0`jqe1WrCbf;5&3^r6iw zrqgjPSOe}Fx+3R$prvC+j5oW}(2v5}-RIs&p}m3&?MY`jsgmmcZUg{0(*S1l3w(*F zYr0a%`sS@t{-<7m6#B?AWJks_QF2zbyOXKi;LEN%+IuqkX6u7T?#&n7_O2#r#3SN?B838@F_)dq_B~MC0+KchqBLOaO_u@Uh8Ige|$LM=PEZbN5tvgVn z7U{zI!)eVuefEuh!(6Qckn!aWUY&1P{0l>N%tZg%%A05?${J)ga)mG+X}y_G*CXxLZdL6`dPR^Yn!7ZLp6BaNGQa ziSZ9#XP(*~M|Oc?B}IBNpr+&2;k_x8~Oo7qq@q#$E5W67>MUo>}nva+F>cO&Hcw0!vly?c^?eie*~; zd_#m+d~8MwE%kf%S^e884s#H{HU=XYG#eNUcIS= zVWu4kYn;v`y-&#QF1RYe#QI-%gx#UX_XV{Uhm3~s){ve1GI;-iH5K#6jozGo4XKfm zlDPARb80Ju74>4rsBht*rBNvGT)=1m$kn(}Sjb$pu;Z9ES%EH~Y+thMJT0x?FWaG| zWdTp8_)R>51X^>WvzrCZN5#p+WL6S%gvmvMWeo5e=CB+YUI__N`GbHkNlHh9Qf@)c zW0CP-YMS`V%MKu^;9WV=xy1ny6f^Zir-1l+3{3 z7S`0LS)F-Kmp;CN%4|kK9wTHv;TYr3mIjF+pQm!)MEV&1X6M0wzr6wO3dvNeXAYNJ zJ&xon4H9gb!hh}X3X*A?6s9FWg6&|xF9!0J`=2KiYvk_L&5qq=;lzh&jlp`{QM0_P z8SXTjEJYa#6n2Ji#c|E~#Xf&~@+tNjPu3>tS$r#~L|U6}sia_s!^mG++q3_G8U7=N zh}4MoNJYl>`%`r@V7_1qS}ThxDN*sn$nrVq2|+C3n&k9PKxxxAsXjemJ=mBJvs!h|M_5cdx zfpoQsv_6h2iG!=FKAKQQ{ZY=V&s<9|kJZep)`{ueU|u(n#loshtb5MAR7B z^>D$_Q9iwjGEt+ZOF}y8){O+UhBYn zNX|tS66l%bxp9dtJ}TvV%79VO)ms3$UyQV?MqTP5|6NN%jwe+clx~t|Y#C=|JJVWv z3HbrMFL%!Bi7ZGjzPZDVP!Ew6EPrg8d1oIg3Zz2#gEF?4g)d$(l-FRFge_#Rw}owO zwu|&S)4Fz<)Ij>DuR>mPeO#yY$BZLQ_m7@qwi)LY4Ff86?y9_euR2Q`P^uRyNF}-J z2d@vsf%Q#Jl2}X&XV|*%ZICJZZ&g2YgWnSGZ13YC*+56_L?QGhsAnqPw*bl~ZVq<~ zlkpitpJs1O~aSwAV zZ}axChsJD`8yXG0Du|;uJC=J_2-*ZQ3CrD!E3|i57CNE-3_L38J8_+8Roz-+RI}&h z-*A)g&!*={I7*8L zR8NI4+a2eiz%T2QaYrBf|FN7NS%tfa#O&Dv`T&4dz$vz+(Vo%vbxs9YeZRCTi)oPNWM2jL*KLq(p8HKl$B#w|>Y`8?TZ4iyKI-ua* zQOE1J0>7*I@P6!oiZ_-$IKR!`%8AJu)@~7srG}-5GlcC1d3R7+1D1&%8bOne3vHZehBi~Hy*BE}jmGMxpGk6zxE3BNl8PQW z8?VXMvwl?yf9R0m&06UOM+gV67deV*%H+lBT|AZG3nSbK(whixmYGp`k6NKa*R5Q; zETGof>Mefw^I>UM5tDuo@6={GCkRUxwbZ_U%1Zp_4*uz)GJUTbU_0&f!|)rfBuasn ztcFX47lm}?sqxV2L)1dh2a zZt2&O!fJs@y>lQ%|2>+IP>4gb{R$8`=a-L`BfCpFlTbin&Yvsd@eITHOJ7rL*TkFK zQ+Uv4B6koj`f7t&NuzP%jPwIze;W5^ro5=7sL}u(+0vg%;vMG|rRy}0XkmHQno>h{ znN^D`m49#>o!K#4a+n#%?-a-vYiTuUJWHw%>U}wh=*-J44dzCRmgTIS(zmk|;%KK~ zcxR;yWpl}IUUkJL9GhNrnv%P=$a|IyQ(0BPsQ7o-T?CJw9if$lUYb-jtg_e}Trf)v z2ptMc4Bp2z?n&U4rop-4-sA}&s7Bt)cY23Q+GvS4NuhLFSzfwv40`HHyZ@r_{_=>@ z4O)2ky{~hoL9!Lh2BA~nO1SIv(w$7nY z2ZYMhkKy-VlWRq!B10j^^PjF^3_biNdlEw52@;*FWr0X%{HH9ac_^OQq&b_t#HTCX zO2?uFCUs{n_oUdBKfo!g5aBb$$nrVAcPf!uRUf6aDfCgfE_>ZoMCkRj3x2BE^jw)- za>>3=>VeO(Hv}g0B_u!l6B%eVA@V`!fzstl+GV9FLa%-GJY#8h7Hkt8B}yEg%O)kF zgeT=)SzJ<3SlC@^uOAR}3)ri8WB2*3Sbr~+Bu&>uXvfq@HQ-Ff2vJ)B4_-57l-6B( zvYj;Oqu8n45iZ_|d7_^y8x)M#GAwg`lKyIZ?c--ya;s04he+nosg$i0(^gBC-9}Aw z;=MsN>SUR(?_j&;dVc0Q&W_y-E;+xJ-EpfArCfR$&j_2i2lBFZwsS$;`MFA23qkHx z0aGr_Kh|M28+eh?tb&wUVJCM(nFJR9n-t?sw7(RqFyS%&7 z{k0a)LCWx$>mV05RqEallENr+ls<8CO)36-ZcnQ&JzuqBP^yZObhjq+@RXCj*L|i{ zvYUl=vgJ`h@COZj$#k!38ByimsKdj_%b97AK+*j7aasm@$yNicg{t%2t8oPz!);M* zv`%A|Uf6rDN-wHhEG{Io2P%Kj7@Muu`U^cy>rPDQ3wYJGn8Kdaqt^4X_=G;} z7*DXm(1X)csOeQ3rtV_CYT3fS93Q!~ncpi^!Y$hGZcYh{R94FgUw!dX7aqOVOMvex z3Ck=;H9GjBDWrm&5MAJ8VZJU9_*xi(p{Ez6iGVgDxesEdT}R;!M6<39YA$@E^aJ#`^arO%K~h65Q7TUB0@$T(n6 ze<+r#{jo7RNA+DM!gUfs8N%kI>1Cs z7a$@I&eTL|eBcS<$Nu2yVb+$JWt4~jk@ib5(AWv~)`{CoAE;gDV z2(Eb?&jvjX#6x3hlUCqNW+;&>^@Jzqp2;WKmhbwIj}F`uj!|TRR#ogsDQ(skr#yjg z{cK|~e_+&Tk%nq}-qWB_=YeZ+NQ)L`^dfTK?1+?^zI$#uAgh3y*6LGMVdGBL{Ryc?#KkAQn|$U>7UIhK59 z!km}}GL7U1S09NXsq3bm-NJ~hMSd+PRVvaL3j_Sh5=gV_yq5V&KFH){!x?}fA6?^a zKyj?$c@`|$30itroqQej;@kpEmeD+arnz|1yD!8UpnAF++iXk zN~ZdEElS>NDrb#(28k0hXXS^}v_zy+Ny}0Udv5;g=vzQ!tKaDP^hH-C&7R1to`A{D z{QG75@T9OtY1lK_m3Om%4PR_ePcalTvFu(?KZR(-UQk1|!c^Wsl zyBzLVFeKI{PMxPouCvJ`cXRfr9E>KHq4bTaKa+tU0!0LZ)89H|mHp;KZhkkmPr1lq zsZw0#_^}}5G5m{5VS{2j13Xc!v)n&EWhyF7{tje8&)9$IOBQ>*UR0rm?UiDVS~LpH zNKtQMu0}k`+LRwCAIKgqhJZRc*BqfZ^8Weu5^*!_rHf+Eegcz7V`Cq0q&Q`{xw+3b zFGsS_HzJNB4Qt7l=S3%ib5=xun;>Ye&o~#;8s!vu+7qbKKP9)>T43jj4?F*n6s);q z^26F*dhzHk9h*J7<(%w*u&`VEJ>mXSIKil6^9`G(%=6da)xDl;OIVMtoTmz_)j_%x z&}@2Z)_Y;;rF-oWJ5N2t%L@+yAi3gO9SOY!5MP8HJ_!2o0e)Ki=c(>zU@AhhJuYY| ze{o^Xp)S=|4+|}Y(I+Z>5IX_fPabUzs2%OI;eT2?rfbzV_-Ang?+7;*^QM{mnYJpw zSkVZ-i?(g$Z#9nAPbczs(hSyZlsf^*GWxsS2&X z6#ZPfCTXWvQ`0(WS#S zvu(x6JJDj5uOd4{Vfa|K$sOLW`BQfV{6@{!KoKG(G5YqLOJ>`d z(M8j>%3-qoGPLIEN}~Vf6=Q3Hha2& z72BBgAU-6ndZ4kX%-X>H6W!Psu^RVn;T_twvRVaN8A@QM)Pt&+_ zvUqEy+1Tv#i^;!ia;^#=DGEyl*;aI;OQWZ2=DgyJwl%)IlLCJGekv1*#MGWz`xpKo z$9e9)@5Y5s1?rXDKB_;(K83*VNtb8wfbMbCT;z{I?ag#)!PVZTri*t^Htb1Fj6$8o zI5P(&;6?L}WtHh|w5TtqKu{-Hwez=D3$nccLWp-e-W9bu_Q3=ZjwLnXR>7b0=)TKhOcU1h?)6>F1d*qb9q2>t=>ITJt6uBTe2&y=RlYX2=Ik zrE-qdm!L{aMf)UV-qsZ%&3g|fQXVAH_Yy&yjrmH93u-Ao$p;sx`8JqP;FfZ2FK>Yp zHuQNa?E>Pqe}F0W+>EN{j1}&uIlZMsci@d)KdXBjQla&(k z1f#R~X5#ejr-~bOyRx$KBhqeXSEk_;K~_MIZdUTJlC7W2Lp47Ocbj?DXWv<9+B04* zS3ItabQM;SGGFUyO!2J=UAb5K(B~2MIUmvzUd31g{#53Ds>k_WSaR61D}^EaD!l0n zT?1(i@N;ON3!uCyrR>1S_b-9#-)xLfuulqUE*7LSn`(^A+a(J>JV-t0ms|P9=?{j{ zpI2I-64n$E%kK*le{1kwZCr|Mc;la0oYJG+%_Zzp1oy6L?rDLSO_XUpS-$LPV9BI= z*&v#2o_Hx;o#gn)?%y~qNWzaz?|t36;x}=>Cn__aoQ-Z8^P@Q$A^XAxk=Iq!=>AIO z$+G*CLZ~N)sZLtFW0G*svr^p+-Jkp7GD_AvL8r)M-b=Gc`urf_aj$bj-v80rc?LE0 zu4^AfK@f;Er6x#~t|&^6NCyD{AxN(xy-5!Qse%*%sRE&Q2uKq`Q@S*%p-S&HKtc!* zPyT1mIkV^ea`wDmvhv}XSu<793lJFU^y<|-v5H}`|Vl;^vh z)vSvQ_M^1Oz_Gh{mm8?x#fAQFYNzfTOQA=WRmjm=rwYp#jxV#$=!rh;;F3)YXH$E4 zv+FEWUi>6*!0;z)5pGhJ5C(vmlBMG;p`=Y2xx8C~ zs7o7n9;9sISW7gHiMw^$BV~nT9S}5Co~b;vP+N9Um*^Wop#HQVyBqqKvJ5DmXrx;j z=NLH}IQKo5SOex9OP-1kgvRm@B#Q=&ydHeGLp@j8ztbGv8zuAnjOte6#;b%P&pIHZ zr`dk~w%gXMW@{MJ9OY8Oqb6kI1O_3ZDMB6O>lIIFTyU?U0wEh(&E)36{J2MAd*7_- zw(60x?eoMv)^W*M_r4+LbnW>Vt~}G*-6Kkj#h-~JZ%b&{{{<}wG~`-4ml_V)`7rtN zm{x%i6JCsO<0d9Djo#VU9mHqVXNj5Kd(%|?Wqlb+M#{`C&v*#F4K#iHO8uF#UMGJq;(Xg&^F@XGYu8C20YH}p{}X7ZWQz+h`-T>Yr75&n>*b@0JtK+? ze^$Y$T*gvEal5wx6h&1b(GLn9QBW2}kz7mEcBr%~HFQuNvJP@JEB2_60JUWcrKFrLEte#Tm5|MHgR&!cFH2>x6f*9O=#;*hM8#lwtoPV zTLsh|178YEx&^!ov{fat_t&tDOL$@l<1(dasyj7{r9De0PrZNEcMelO6@I+Z8-}^{ zr9Xh@OK~Xspkh#Y0)FCG%y^OUy7!$hUzsycm9l(5I2uo* zF51~z`^q7DZ43O#u3G$XDki^PSS3g2cZ|F0AOoEi$&OluMmrPErF%w1eBh>+#Dm%h zOAIM*sZ#6b%*2JS!4^8G;<1(s2(EKEOHNEE!&%v7fR4euI}Pxg%viT` z1*c{BF)HB0;)V67nRR@s`-@MarD!_k3YH+v#>SoYj*P9%0tzfQmCS-E zM;>(vxM3g8pYM5d`Bu(6_=l7W@srmV*Hw=9haBGadxV*FSWuC%3h=uxL;j-RN=X8# z#t4c6iXQ#xTfqHfcK^~4yY4#h?#eJoe?NKSFA3#osfEUsvf-~t&RhM5p(jB|#~QS9 z{#EjF`9-zc?%fIEv}n`8XPnj?W4{+Nj`i(y^=p->9ubxMKd~xZK4wMC zmyl+he}COy5}Ivn9MVjJLE_ZOhR}on95rN%o6}DlJ^b|q3BQ_LBZRbt>>IyL)QREu ze$s<{&=I|}AtXZFZszkVnE%VQAj6S$?Q5ErTP=!b+gE<^ z)Qnm*6|r;i*B7^+KE3Bpg%sC#|CdBn-|9wJCOVr&$^yf5h-$A5h!V00C{cX;jVw{z z`G;ZLbIzh&l_l^sGg~LcopS9Uq9v_Yw>;yFIBzSch#&vAzn}%N0tn6cV=ta1CDgGf z-sN~neYGSDfGO;cPx60LPV7SWMQ<&Y3sOapmvA;e{2pbwIoKecuRoS5CiCnE;qipb z{UC(P`rf)b_9K&x)EU=k&2QA0zgA80Zi8Sz(SnL6DcfD`Ww|gf@?x?!D7rX=XVlJd zNJ^4te32)3?Pnn1LN4-TKa*H0_|EAZc@Z~&o7sP?WOn`Jc42jZx9sto8F*1o+M5y} zrHF1m*2?&jcNH)iU$_QZD_i7rrqco-#w+0)pAXpmJ=N{;WV}|EdmJMFMrt#n4o2I- zIqAgpo%Eo6!3+P8BfiMpXhKi3GHfg$TfgG+&N!cPAm~;0lv$o6n%f3%7Xmg~st1Jw zg=>;S40-0Q3sR0t$&Vyl$J!F}8saz|2Y(s*g1Oc%+9`1%9rT|0<~`&FPY)YUdIaSJ z2L`M^y4ZaTy`*F8T{kyhoz~-NjBv%&sPJ9v08YyBzXI~X<=%F`ba2I8539IPUQd9Z zd^ia8Y;D}ADlp2?ChrwsU6EJm{ zVY~&tr9JKZ**i@721?`sZ_>-^HEJMyu<|Ha}*!Gorv`aB^Ym>7NDqKAs4IkuuW=MQa zS}MLqkjB-rC$*(7Z^qeI>l%-=)PV4I(~a%g2*)tCg#`MH5Tr0v75BMW1~ikwI4@dq z*YjrK)~$`PSBz?Q)u z(3thNU@|9Cp|lN^16T(PvkNI5Vt@>5d1Pi5HZA|s(%K_#1##QFyBBx`wwqMwn&1+s{e#%jDK6^|l^; z?IqrQDLURZv^*nf2tD&ilpruJ1tH58yEOHQ3&HIH60YGEIduTmzXop|-&5a>sIWS} zm+RH;XSM(kp2D!g>2WD)c`>y^9MQKr_D5CD56woGD``N0t(rF~gK&QX!bzqLAvnkk zvk9YyK1F3jVh7I+g^g*c0?&GnnJ>|1jgWK$^$E*w^A#rh4(?kFI!bqcu|cU% zlZKqVD1J4wSF|mz2+m%D&_Uy`KfiI@rH+}tCPHe(C%1GpvVK~G%m0xg$D{wbeFni` z`BtCY?UXBq;I-Dqanw+_JoCII=84dBoQ;yUq7{oLLB}OOwKD z<7<|oB0k-44>`;8peMyIbmsIX!hHt<0UCL^4b36gS?RBD^0O((bXDiYsxdcScOnpD z)&4Fn_0tc^P-oa?+ptDdt&qX*Dw~96%Kmor{cq^(q@2JsvBgfIY$BQ8tgptzw3&N2 zuczarrN){#z()I|wl6`s-7hQnHb(BtQb(`~#~Ffd((BWe-Ew4<&4dVxcccLYt%aP@ ze8IJI_%JenT^SFe^VQRi^Jvhsr#e>p5b~l5aD3&cqTUy7aM0_jJdTn?aHWwT6|voUlM)K zHZF8q`0{(Nb|ke2nNo#>z43V5qCq#Mh%u>ybQYtPZ)CSWIKtV?S@}TxGe7_JYOyA) z`R-UteAgngIJNSo9xQp?7!Zis2hR8Fj?PZJ7IiVug% z`!mP83R=ez=*X@tNVg-_qTQ;RJdMlak6qEprQx2G0VwkFS&47-k&?q#E4F^=s|k?V z=3J#$2Kmp6s7qw5gXN9Dpy9B4Tno*BPH?z?cx%hk6!hE=x^4ywfwCA2%8jm#J9$m~ z4kIAiSjd^zTSz4IvGsDf9%G59;ObC1frtYHV=K!ZASnN_ls(BVPUe@CuFi`VQ2Q4o zQr0+|oRUtS73j%8n-pwXle8rZqjdk2^o>Om$vFw#u3TW<_rPyTo`|r27;&D5)a?KT z$5}fw!ZG1{o^=lsud|8OoWK6;N6HO}*qJ55>-ZJ^ZaL$z!$}($eh_g!&2pimjGQ-uzlDgrbSF0bXppZE$DCsA$^KG=Bo0 zgprvndr;-~bYV`+xzU?A+wcERrTiaX-3gp%YYj z{gf>Ut2v!Z42P|5uS!VnH4%KVz`Q!B@X>9fsho%tgSJS``V8@8TKN2a z%C)A?8(&6KV6TBI-xYVju9Z1E-X``39UDis9Ou<|Z2b8R&#gN3+Q)h5rvJ@c;%@uK+^~Q!mg$?lnBBXZ)P>(DW2eDZ^6)RsN*-{abR~knzjUvng4h zc)DC}@5_2thmN%R4kMQ?vL3HcFNWuF4H+YN7YZ$&m3uOCQ`v;HN0olz5*}h$Yp{dx z#n)XabQodNz1%%S530B`Zl>M6X{2P4+tfqmzXY)>BX-)*u0QqU1=LuL<}LG`I|%z1 zs0foSslxh##&|pa`e=jjP5CCqiKP$~(xk;oo!GUI=jdAH)nr=7a{UveZg_TNkMM$)Xk=i5~i#>^MK zMCnN?%_7&VUf`*+zhntwSjtk0^E68he-Q2BQ}iZXjXo^nX}KfA9ZwW9{Vjm+zOEF{ zRMn}y-*t@8lxu}&$(9rH4gJ;E=IfJt~8V28iMYLBmJ@y6% z)wq-TxiJXCBSi3N9Zs_h*9fUk+&ErRb1qT@t^es#jIZ-@eVE;1VaK>*~{; zd6nFSvf`naXm(>hdPW-}y-}$o98<`9CTAGj!>b^LR0Ir`OmhdYv0%Uyxcr|_bDeYQ z2*b%Afi^g+ULp;G?|_ueLrIPl7d>QO0Pvfh@T*%aoAvOScFlJh?=lwV#XkHrE9RPjOANj8 ze|61Fd&QbBMvl|yUCOt{#46!_ws1*a<=*N(;(9f;83XmXnW?+otZ|O2qH^T~q=@vA zBfYWssk5Jp*A{R-`z%$JER}m(bPuBDM@!cZ&Sc#8&4$Tow)u?wpM8@xX{THl@s49% z0dy7~#kTlhpV4Vs3uPNqkPoq1b8)+=kXN6cmVv2+p~QHK^qQ`_doyPe=DTLCXrp(W zIKPsLwYLVboWRN!&{_d1%2&Hv4`+G69XBSql2-D$S~}u!Futp!|B~?1<#XLwUz3|=9?3(wkW=rM zIewFRIMG^g89Nf%4p52lO0Ul{RctoROndJMm$M!oC-n94p+3y7?&$w_SU{2B<4!zT z)^a5awWvn0g7cm2g|Em*2il%S^%$1-vXyoJ>>85stj3)74fvIx$0l2~l{Jh$rFQr%Hq zW5(U$;?g7MC0^#ajfme(ot=DVuNnmw$o6b3EJ%l;%}fM%k=_etYNC1 z5JiFl5wQL+UQAlGQMn}Ttlf<_$a8iw)@q1QYzkl9c*_wkK}wzk|JgLcdPzU|WdEfj z@D{arDW_tiTFnz`)Pt_ef$d?x!>OjE)x(cK`b_x>`TN4ZdP|MIB^>~MX>T}Yzb*{u z&U#o$R>|$~?C0F+QA!1T=F!t?*JnlyX*LQ89h<;b$D(?impx5W?#NZF9af?u%Qd0H zVw{nLy;wTVbKfKr#)f%Vpq)3<#D%l51*M7`ZLZpVw9`$QdU_}6(wKcZ$T@zjIHjuF zQ)hl(`0^TKaR{cB?{#a))SnGZl~UL9YYY}u3v)H&u3Di}ExX2kmw_uof}L$ZU|?&3 zpq;&7Eb?c`0vDT`#AW2mO#Km@N)R9JvYUOO{=%r%mHK_VT{vv^2MJL2n)pr-@MtRO z2tT*S!e)R+#bvWSIss3T^$srN$JhYfjDsZ|rm~)~+YFZJYZ^V6AFB`s*PUvU8TJx4 zKpJkJdnXTnrvD7u4xFxKR^6`;bQ~pD?>pLveqzdFnWCSKH+XEeaFfz5?P?R;N7Hd_ zwtzSa%ed zur{CplrnM@-%UsU2B-^uC67k7h0_&`9TukgsQ|gtx8F~uVKwVhNWe` zyTn=eR@Dn3frdr9BI@6@fS0$~ixVzOjqVRfO3W5lvk!S^bF~D5J2PS@Ty#~JoMWWQ zX@g->n?bj>U%eEUefzE}m2#I#_hG+DOq*Pj8LSIcoI3hRt1e|07-t%(Z|nUYNQSev z%X!h*+~R$fk?XcKJ^$G{#{?s}DS;2b-_s)3URUu)o3r>1=%c->q0-Ad*~VTsG zB>!C-^H&06?Yrjg@Gl;9RBigrr_#z(R{s6jYV2r@CG*GzAY*;phV4D6TE0U*%LE$# zGJl`V_HEObQbk#w0m3o&uwx5~U_UC4aw(cf0UDKJ&N9z$I`Jtbnt5#W+qqdYzsm2;pUdqG~haob3 zT}1BcSrzW>q}5U2KGLxF*LFtA=JUtDdLNu8O|y57YeoAsE*f4lDo zSQ@o~U#vll6L$EE3{mAJmkuVY?9*IvO{qWhBpeYmPvWGQp^}o|2+LyL)}k5qW|c56 zKVv4KauU}4d|(}AVi)F>0G5)$wQuGTyeM1wu&IBfA15iH<5~sMyUbXtfBbr}>*>Qc z`SExaq}jV|Y;-TO?hr87PaR_it+L7XGlteS5r~-sKyCA%^$Pr39aq%CM)rFgM6FZ* zzk?L?jV}b9)rSKFzo$6*tv(uHeQ(QkL%-|+>6&0UFsY@QYf{jk%O_ z6OajDglnqRh+?IgSd6(H_2rJDa&Oq-qbG37OZ_dH%RCcKtD=F02VXd=UM8@)lC~+6 z29Zy-3@jr)Djj6L_p9cuGwFi0g~2E2U5xGBN^Sy=}rDusf3i`o^ zEq3&pOZz&nY(DzX?$J0PI_AP$0Xr!(Kr2&*NaMg>h(3nM_>x*s4l-!Pb}DbXq*dvw}yU#V;Ow#B1D~Ibm0S_`dbR4j%i|;XK z*{fSY?uU={?7*TWA~r9vjhki>#wxQ0$QgD+DJVt+51c#F=oBW}AdWO;c%_GwVkdG_ zsThuei5`gOa&xi%O5zf$g;H%_u-D5M{wUbe4Y7D7`%?9oHJ&980yHC>64K#`X^Z9x^r zF3%AJVsTd3YZl4miAocgHYZmNUo~sJuE8cy`;zA~ARQY%ubs1xTHJA5sfP6- z^u`F1j(4RvXH4vgF|s;2ip_qvmfp{QKabb)5PUhuk*un+Q+9xFzy$eN6`Ml_eOUgI zbRz*&zF+mn4)#SvUMk5nghzju{UtH=VS98p1qno;$$OjO!H7NP`ytq|BT2*QFNvH;k7rad> zKgA7CR^v;XSuIca87rJ5RW?c$e z6_>c8Ey8`!djsBgU3;upmfE9QHKVwzJPVOLT8H_FC`hGlA>8LQzu0Lj*^sLCRN`PN z%po}yKX#3C;v;T-Z&!ByP&erHW7A$!myPyk{gMl-CZ2FBkdOqzZz;|lAZh&TTQd7k zmyLa{9>WqMuTEbPiOT3NCgwWo0_uaML>IwauZ$3o|BlqdE%~*eWFC)pfcVY!qu6ho zXDMABi;-NXT*sBMFnt!@aGw%3dOB!uc9k#bNjEfetNzWn=?Km1+0s6@AnBH7REvh) z@+Z3DvyZIg6|v(Id)KZs14JY0Zo5)#J;j@r3MEk0W?nz=6M}U%0+Tnun?R2VDxfHY4Z^uwFQlLur2QeMblh~1U9U%q_fzGMLI;TQtluh4+?JvZ z-SYwOHDC(_e(5sqyfJ>->cVG`Y;*BQz=K&;ND|9I@S4Fbc1#6{)y6~jo&8(@$r7fW z{mRin{hp@uWA!R;`||wCqha_e zg4s~1#KDXwyHoQENN}%1DA6S3L|Zh^U;$UvllrQHa0N?hTTs95U%siPSRjXcj*3iPNpAw-XxNj{QByI z(?n%KM)eGo$H*rHdAuC2f~C_h?9<}@H(Zib`5QhXs1K*W`t8n~RmNeQ_D=%>Q$2Te z239_bhbzYJ0MV$`k_k~Vdn!%KQmf9&)zQ5oTd#3STvET&JkN{f5B^US=6}ZYze(Y< zWwt2zaA*SBJ6|6{3v8$n?3Lkyxh}}F9>8kIAf%7XyNL}I-)ebhp;fI( z6B1`WCo-2bm8}J3a`M?$s`rR@r%HLzFJrtIu5Fl8xXiMv^!Ss~DZ?u@xS>aM%EX8& z<`*!Q)AW^-+;=1X$L3*UMaAgbD`b_V#DLw_6%{7(Ly|G*V$S7||CN%udnq}EQ%_c$ zhv6(g<+E2Xsq=e1a?J3b+1yRzB1}@GZOqDU=tc$14&b{uwyU~VEZK{EvDFjEePjS% zF_kiAy?CF&Yr^&UMgm;lN&>uw8nkp{iYdRduI4$Ovh5NVr6mq&Z8}bkgi;`Ih1{tc z-xjHyYu5c38J<3l(>6C(Z?rq=?S^C&PGw|RtGGK{`!c{;7VH_rwzNrJV>tSf zP5YZ(4f41^S9SM+W?|@4Kay+}?argh7|-$SZN@0Y*KOy-XKbZJH__Bpd?%d2!H9NB_G@(mxGkeobaPWn`gR2SVRq#Oaun^=(u&xO&`1)jz;|$(B@Qyq)>}2ItWwE9 z0(p$4z7LC(V#0M-ophk_1MbUlJ{XK5^s<5&P zqB8n!q8dE|7CAd`pOGhc1$2rT`x-CLXS6~4t0;o9%%vHFg5xJ9<3s;|Qi#vK8Lj`9 zWLPKt{#!|2h1ijEHbChqLf}qJ4Sf~XNL24DKuN!=>AkG6!kF+WJKgxpdZy@w>zhnM z0X1iQymb$HB=RB-n@%YV1xMP%9LPpGHWt)|)_*Gc?TKv?le%|`hU_j|FADZo3;CJ8*l_vLq!MhH^35W+{w zsleJ*Q-Pj$U7uTi6ex@)%Uc1KsJ%dUt86dK;Lgai7f%D*_vvE@$*xP`nRK{l{Py_! z>bVs$SR^s92I`K>z{^ktX0xVy$+om*tSh6U+o%h>dQLj^RGi$C?78kVVGP#diIlcg z_v%QLIiPCg)9Z|ll|>m9*u~msnxFDX1AXL`M^gnF@+KY|}Km{;FeeYPA^qPlfP zUTIJDG9^*gZ#iGsAQDs*G@5baD1KjUbSy{EfVA~Umq!`!t~TL+4P`w;EwiW zx#%dpur_XrIz@|*+13h}>zSPLqxX)BM|Cj%;9qUaCy%aw_?qh_-NIK%KJNcNGIQkIA$Np7&u()MZBl^c?JpIL3@_| zM_6=ZEs|h3u_RduA)n5|jqv5Yu_TKA$Xrbb9hgAo7)y~!v^GGwg?_(7Q zHltSdw&CpkDK97lC|11%3&$>>dh`D>L1`K#c z3QiC|HGdIQd_J)v1Q(DGFG_SK_J2%z4Iv@E2iiDQf{1+4TFcXY#u{Mf25e(7IbZ>b zSz2)=JaD-8j1P+3OmZino#@Z$jpUDi>YCE_#wERuH_VHhfDD7U|5us#Hx&c+cjmtU DoBcKV literal 0 HcmV?d00001 diff --git a/images/matero.png b/images/matero.png new file mode 100644 index 0000000000000000000000000000000000000000..21ff683ca89778af01392edb73572b7d6764d34d GIT binary patch literal 7730 zcmeHs`9IX%-~SneLX?Wg)`C)vE~H47vSp9BvX|>pAtPmHW>nH5v`8gO_9cc(Ok*&^ z6)IabcE*;av5hc;Vdi}weeUn$`#;?G{nNbPGv~FO=XsvjHVnVX$G z4*(y0XJp7#g{Ccv-Wg=2wjDdSHn|N3 z+)byp2c$PJN2KN(Lna?fxt};|_xz}_X!Z&7{Yu*wMKy;%-B!f^EU5C;nOvu!jZ%z6 z&i);Afoq-C;?cI=Pg!4E6aaV6F9z}(oPr(*><7TW;Qt=}2ZJDn4kvM^ak{BI8cr`Q z{891GGiAm4TnZ%*S=6Uk47pd;&=aW2P3`RO7+!PP(l3g<73-dFPVuSgWz8sVUJ3)Z zzKryY+8oqDWsJqYnakCnILDn9)z!iJpRQR(#|i-USSk{!p6cpmCN%Wgg2joe>u-$n zb8vRoF*-r2Ow`c}ORm%GXWe3_9>_Az*$nR561u-n38}gJ2?p|NaytAv#dakr1BpgX z6Cb#95m~`M$y^Ws^(P`TQ(lO-hu8IfTR*Q>6I4s2B^VqK26sol#M9q#!w66KhTSF>2`||go@BssYp1N4=`)7gT zo14suBkow%YL0W1axu2FnsFolQ2On=G@tG@CEy+s9(63J%F4?~nhz*l{MnGQbXMXq zFfb$is38ygBuIHr%CvPTLY0Z$-rnE)OiNZmN7mOYtk?JLq5Qi0cY`*1)lG3P3SYW) z&usRcrpa|a0b*!IYJA$9iGm>Cb|8G6ewjMI&`Fu{*bCo|5cu;uBUen5eBaIrD;+}N zzfMe~Fg_Og4ClwEGIAP{f|o8Ss-p1oN1eg07e%b-#Kt3x-@sj0ncc4+EjOiYJMX+Qr{08)x^Gh50E zt1IUp0)Y7>cBA~J%xGb5Z(+_&rcdPEWC0L*rpC@fYOs5oht}kvi*@S@4Ta$YC{S7I zUHBoe>j>|ThXn8xF|`SyjiM$$IvHcilC0mgnJNgbY=Wy2i=te@sMBI{^L|fxT-Ej z{DplM z5t%vQGMTFCbj#Fw`THn}=Idcpa6S#fNW9FyHI(sFx*SoE!2aB z7Ohv=J!4qp#*76I88iJB1$4VUfjbb+gsvGh`f#3h{V?1{*0Z9;0`f5aRp#fQ*423h zPj#sITT6?j^V+8*?{8yO6R!QDqK)KD>^gt^s9m>c#6C!@Jtz9ig%a9#SKa=k)k-Sa zE&T?7wZAA~H(ox8u8{5lrY<`u8~hp*XlMb}HL3PWnE}+fdt>CFhq$qq+=S^YxX-k=$O=JtetkuH-k< z$-i3zl=8(5XHOZ>gq^!+36 z-g7FNsaJ)8`ejm@qXqqEanvmX7CJ5w0I$Tn!Yh$ZkDt4!sXIe!b-#J-RTb_4150ks zo$}7mKWru74-Yo^X8m}vB`yuh1diMp@31Zb)+B9nW42!ZPbvOmZ^|)h zPPcDBD#Tg3iMLDFheE3+D%}(Id6QE?6mRn5TRu^5-yor?Cs3d<-<^=tDSlXRfY2$P zyyhhwmlm=suD4<6W&I$*mB$|!3ylT;EGE5=?2%{JeDMliav-`QS5>#6fbwu=j9)~q zDXP%|;5XZfRcnX6>(Yn(ej@;0;s-Co*p3~v75}+HTGgb?oHdqKfifSl?7EXHLXGfj zHlIWW&-+wXj|V@Se%4OO<485O=54byE5BefIq3Gs0Qr+whfjA1Pif<=z=|u zI}!EW@XfYFaPFw4*y{0xo;S{rh0oyq6==x z?xi#|K12OxtrHsAR!SKeE`v`kAE?<7oJ~@*H;4XeZ4tJ74uE|kGpO5VE{O8H$%uuv zd;z~v@Al1=EGmrl_~La;8xta634@>g=v}H)+$KwS81{k3wFg^$s++w6*m7bI)UQGR z%(LvK)5Rs+!F0!eh+SNYHpI?_iQ+%Q8}%^LiGOl3tqHt5 zg#x*U7q)~JA(z4-jQ`}EDQA2t@c)pkq(8Yn5Y3PP8DOvc?H|JmFOQYt6KD_CG7#)M&dd3dEwoo(mwpiOPccRNYHopBjlsXMvEooVs)Itnzz(oP1 z9r&P@7YfPFg^gc#@gk=_!zTLoT*RJNv{$qwo2e{Py_~>pO?w>Ea~q^0pLKu z?}8_3a<YR^^V)d86)5%#iv1xa5?NW>fU}k71J7HgOx0pexf31J&5INcW5V~SDns+$ zCEb=P-4C6_B7avx4MRDgdSfR$%e+Hss6=Hv%&V$z%b7=Wy8LduX2W_2p2RMA06QQ} z4s=}Y-~^G4Z}7M|4w#h_(SQ7kk9m6N`@@JL&Ifv$(Z9m;E_T*g zo_p#cl`jl6DR(bUT+Xm-_TaTT(g`9CccF`#@pRyboT-54YDmh}?qA}lCkM=H_oW^XM*miNr9XhlDS0`(?k0nAa% zVcwlX+u_@S4*pVMv@h$`d(OyM{BA*In5DN&69y@zrA(DjpX*9NRju$8#vwQjV&(Yu zL0mozH;3ko?+gtNP0jXl{*>7ieHre1G%$*Z)mcYJet07zrm)TS!XRCOip^bUvQrV= z0h0%6OlD|qbokNguC4EB-!$k@X(znpfYca*?xapb2Ed*``103-+yU7{eqei@4+z}Y zAo!`%#OY^xfmO-7#6>-nL^rNkwCkP>NzcS|)EAgN3>@{H845eAQ~zH@1bYMnMVP>K zNR?4q^S#96^JH4j(g|BVsIlB$YyNcuPU0Q_b^l$9q@>-->o&{lBBslMLSumU46I=~ zF0VT2|7p&uN)WhTPnP5B^C`sTx$ql6OeMblx>=)18Q@GxdYnF$vNhe7D*^+Ugl)-c zRL$l*JB0-SM>Rr)+}KpF1SZ*sxfH;huA~ z%R@m3&Qw+wi_2F=;lGf1v@__1T??Oa<#dzRDVS_$`i^BsEbo_LIM45qK7NY?$gjqr z>Fm82C6Cqi^(@H@^4EcN{%ni%bw7#x!%)QwJJOPrWyb$E?gPq~2n7J+n$Ub0M@zvVPpg z^>a-Lv0*3Tm|z^-yQIHU1xVCuC;R6JExWen;2aQtt?{8DG0!8OL(iII8AbYo14}0$ zc@2ca(920Sn9#DtTR39bI0K2o8}vPv*r8dvboRY@q8ecN{&x5dEt;x}%+bq%7+ zy|_OaI~@`;1)HWHeId&|>E=s~S? zz)@UXyB{t~U+AtiW|4z8TVUQ_Fxx8ugmaLQv{7u8_&?wEIsSOGB_eqj7^sH$PcZ0Y zC66T&_c3iEcL}jbb>G)1)8D?`p|^s`%#rPOFqOOm3{Kcdg^m~F?nD+(`V6~&^%=IH zbV?cS;R7RMN8D}FKlYDSB=6+Wb3)0ex{9rLDtHC)jd8iHdJf#m zepZKH6DJe`JG(SIN811vwtu${_W0umPnZ163gUaoQ;~rUYArcXg-+(4_-Nlw=1oj2 zV{IrNQhWY7GMpu3Lrd3p;#$D$r?kN(x2@;J-Ym1ary~$$jHb`EV7wdug#cE$?6n^S zt;ol{K%#40k&FtrSo8R%-+~Y=Yt^|n27KTWmm4d@VCoMLmS}{|E9djbNYP5<2w2t%-^xfloM;&7kVtvKDcX0^O^$MB`n@H%lpnAkUk@W*)}SWKBS5p^``GAF%9 z0GJ)*vYK@nZLK~I{Oui$hJ>Gmv6xo&G?$rL!saihQo`(2yD{v_n?oT5y~b zBh^*Rb)f>^P0%yLt=0DJ{HhMKfxA6h?cce}zVC>Pn_2-OwF54EscYhB*tWkeqEMbd z_9O+HDIYWTnCJ(ExRISuVi7Xsd&$=JwI!F?U+wM0$*BUn?>@s6*P3T@gN2R$;?l5) z#i;tK7=#!(O>ljNpUO*&4d6my(9@3OuC^}ytbY!Hu9Kk!lAAe;eVmu zVzM^rc}3|-(~mM?5)JnX#7ue@oqqaEP~~9y>ipP^ut za@T7vclDVgp?%3WwpkIwjVM`_!ork(eTkxZ{uf0nm!wG0ZR{JdtIFm`9p45#Wufxt z*!A3=PU>n4!X8*Esb3Qk?|c-cFpR;~q?aHL@%<;&&0)`*@zW_jOleS)f?Z1mk^|Te z3MITtzVL_PsXXoPjkHmJxs=8!M0;nLHnsdpJ8gXEB3Il6nh;8m_s`bHVSU#WUS?K{ zQ+i+XTtX{pW{>&Sbt|9xrrxa4D18M0`NNX=vAo1b4oxl{-qg(6U|RvGJQKGwjQP1u zU-ME}x5tyYnq`df4nKHDV{K^Nn^J3{Vc_wUYCoQqr#OIv!oE+;cI-^Zpk}c(-Xa&d2=c{>Vs?c&;F6JmKk`18&)Aq$}<&q_WX(<@?a&NLRY{7>9d6}(7p$rnP z3kq(`DJ;Xa4KNQyrrAYA&EDN25y&MBv>2O?3r*zl{^dRpbsKcj??2LIsC(yA`L1V$ zf^GkQ0HRp{<6Mj*4j0wi;qA>)^4z{>oj*baY8^+XPD-l2Nndi{s9IgtHYnlk1fEQ& zIBzW^EgOR#lAoTh=wtDaFNcPz^0k|EBc4pZVh+5SDG|-*gOd>Txv0s%`_?E)<_`QW z>p~k76$#$Df;R1ksjQc5{Xar@%?UYC(u`*Tw|c2${6n`#A= zc(qluP+meIGoY_bqCu7RjTCARIqwGeHx&sk)JNEu{yALCzx5Z#YFmZ|nV zlI4;58F6xV;7{u;KgeptHLVtE0Nm``OL@6Pk*svyMX^%@*YP*H(PwsS zjBUDcRY~%Cp;ZKmI+G*IZY~qOM-of)O}@$fLml?nCRcwj7H_f2x%Bk8rPl@SgwX|x zhfn1c*9EoqYy65fht*7-hw97F?32cBEC$j&yL^{wH~SvIFG=aOq!fSddVme?dhzLJ z6D9-Co&Msw$VI%F`Ec`x9cQFH1ollcuqfQe&Xftol!MiWp}9t#6mkJ`-~8CIC>Yx| zhD67H;x6XYQHu9kA(RfczW&>$DoEW`IA0PZ;x=Mic&X2@NzseG)DtuWJ-!>?hkqoG zTW7mhtrBbKj;LT|Kz%71ZsbYGgsQ{7ZC3ATiJkJ0)`O#+v5nA1%OhhhP9Jr|F_B4Nt^tT3&}TKscFC)7p^@OmyT6dr(?zT@lefXuCrOBrHft?`lLNUM}?dnVYR zjI>^V5ASCmY1O;1vvPGpB>UStmW|=Smn0j)a+AbwFa5~<0CI|PownJNsUHUc^9ug& z&_-EF7*npc&X^ja-Xv9B33<&J&;`_h9 + + + + Talent Management + + + + + + + + + + + +

LOADING

+ + diff --git a/main-DM47CGWN.js b/main-DM47CGWN.js new file mode 100644 index 0000000..8011f4e --- /dev/null +++ b/main-DM47CGWN.js @@ -0,0 +1,189 @@ +var w6=Object.defineProperty,D6=Object.defineProperties;var E6=Object.getOwnPropertyDescriptors;var E_=Object.getOwnPropertySymbols;var mA=Object.prototype.hasOwnProperty,hA=Object.prototype.propertyIsEnumerable;var uA=(t,n,e)=>n in t?w6(t,n,{enumerable:!0,configurable:!0,writable:!0,value:e}):t[n]=e,M=(t,n)=>{for(var e in n||={})mA.call(n,e)&&uA(t,e,n[e]);if(E_)for(var e of E_(n))hA.call(n,e)&&uA(t,e,n[e]);return t},De=(t,n)=>D6(t,E6(n));var pA=t=>typeof t=="symbol"?t:t+"",ed=(t,n)=>{var e={};for(var i in t)mA.call(t,i)&&n.indexOf(i)<0&&(e[i]=t[i]);if(t!=null&&E_)for(var i of E_(t))n.indexOf(i)<0&&hA.call(t,i)&&(e[i]=t[i]);return e};var fn=(t,n,e)=>new Promise((i,r)=>{var o=l=>{try{s(e.next(l))}catch(c){r(c)}},a=l=>{try{s(e.throw(l))}catch(c){r(c)}},s=l=>l.done?i(l.value):Promise.resolve(l.value).then(o,a);s((e=e.apply(t,n)).next())});var Mw;function M_(){return Mw}function Ua(t){let n=Mw;return Mw=t,n}var fA=Symbol("NotFound");function Fu(t){return t===fA||t?.name==="\u0275NotFound"}var cr=null,k_=!1,kw=1,M6=null,ln=Symbol("SIGNAL");function Xe(t){let n=cr;return cr=t,n}function A_(){return cr}var td={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 kl(t){if(k_)throw new Error("");if(cr===null)return;cr.consumerOnSignalRead(t);let n=cr.producersTail;if(n!==void 0&&n.producer===t)return;let e,i=cr.recomputing;if(i&&(e=n!==void 0?n.nextProducer:cr.producers,e!==void 0&&e.producer===t)){cr.producersTail=e,e.lastReadVersion=t.version;return}let r=t.consumersTail;if(r!==void 0&&r.consumer===cr&&(!i||S6(r,cr)))return;let o=Nu(cr),a={producer:t,consumer:cr,nextProducer:e,prevConsumer:r,lastReadVersion:t.version,nextConsumer:void 0};cr.producersTail=a,n!==void 0?n.nextProducer=a:cr.producers=a,o&&vA(t,a)}function gA(){kw++}function O_(t){if(!(Nu(t)&&!t.dirty)&&!(!t.dirty&&t.lastCleanEpoch===kw)){if(!t.producerMustRecompute(t)&&!nd(t)){I_(t);return}t.producerRecomputeValue(t),I_(t)}}function Sw(t){if(t.consumers===void 0)return;let n=k_;k_=!0;try{for(let e=t.consumers;e!==void 0;e=e.nextConsumer){let i=e.consumer;i.dirty||k6(i)}}finally{k_=n}}function Tw(){return cr?.consumerAllowSignalWrites!==!1}function k6(t){t.dirty=!0,Sw(t),t.consumerMarkedDirty?.(t)}function I_(t){t.dirty=!1,t.lastCleanEpoch=kw}function Sl(t){return t&&_A(t),Xe(t)}function _A(t){t.producersTail=void 0,t.recomputing=!0}function id(t,n){Xe(n),t&&bA(t)}function bA(t){t.recomputing=!1;let n=t.producersTail,e=n!==void 0?n.nextProducer:t.producers;if(e!==void 0){if(Nu(t))do e=Iw(e);while(e!==void 0);n!==void 0?n.nextProducer=void 0:t.producers=void 0}}function nd(t){for(let n=t.producers;n!==void 0;n=n.nextProducer){let e=n.producer,i=n.lastReadVersion;if(i!==e.version||(O_(e),i!==e.version))return!0}return!1}function Tl(t){if(Nu(t)){let n=t.producers;for(;n!==void 0;)n=Iw(n)}t.producers=void 0,t.producersTail=void 0,t.consumers=void 0,t.consumersTail=void 0}function vA(t,n){let e=t.consumersTail,i=Nu(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,!i)for(let r=t.producers;r!==void 0;r=r.nextProducer)vA(r.producer,r)}function Iw(t){let n=t.producer,e=t.nextProducer,i=t.nextConsumer,r=t.prevConsumer;if(t.nextConsumer=void 0,t.prevConsumer=void 0,i!==void 0?i.prevConsumer=r:n.consumersTail=r,r!==void 0)r.nextConsumer=i;else if(n.consumers=i,!Nu(n)){let o=n.producers;for(;o!==void 0;)o=Iw(o)}return e}function Nu(t){return t.consumerIsAlwaysLive||t.consumers!==void 0}function R_(t){M6?.(t)}function S6(t,n){let e=n.producersTail;if(e!==void 0){let i=n.producers;do{if(i===t)return!0;if(i===e)break;i=i.nextProducer}while(i!==void 0)}return!1}function P_(t,n){return Object.is(t,n)}function pp(t,n){let e=Object.create(T6);e.computation=t,n!==void 0&&(e.equal=n);let i=()=>{if(O_(e),kl(e),e.value===hp)throw e.error;return e.value};return i[ln]=e,R_(e),i}var S_=Symbol("UNSET"),T_=Symbol("COMPUTING"),hp=Symbol("ERRORED"),T6=De(M({},td),{value:S_,dirty:!0,error:null,equal:P_,kind:"computed",producerMustRecompute(t){return t.value===S_||t.value===T_},producerRecomputeValue(t){if(t.value===T_)throw new Error("");let n=t.value;t.value=T_;let e=Sl(t),i,r=!1;try{i=t.computation(),Xe(null),r=n!==S_&&n!==hp&&i!==hp&&t.equal(n,i)}catch(o){i=hp,t.error=o}finally{id(t,e)}if(r){t.value=n;return}t.value=i,t.version++}});function I6(){throw new Error}var yA=I6;function xA(t){yA(t)}function Aw(t){yA=t}var A6=null;function Ow(t,n){let e=Object.create(fp);e.value=t,n!==void 0&&(e.equal=n);let i=()=>CA(e);return i[ln]=e,R_(e),[i,a=>rd(e,a),a=>Rw(e,a)]}function CA(t){return kl(t),t.value}function rd(t,n){Tw()||xA(t),t.equal(t.value,n)||(t.value=n,O6(t))}function Rw(t,n){Tw()||xA(t),rd(t,n(t.value))}var fp=De(M({},td),{equal:P_,value:void 0,kind:"signal"});function O6(t){t.version++,gA(),Sw(t),A6?.(t)}function Ke(t){return typeof t=="function"}function Il(t){let e=t(i=>{Error.call(i),i.stack=new Error().stack});return e.prototype=Object.create(Error.prototype),e.prototype.constructor=e,e}var F_=Il(t=>function(e){t(this),this.message=e?`${e.length} errors occurred during unsubscription: +${e.map((i,r)=>`${r+1}) ${i.toString()}`).join(` + `)}`:"",this.name="UnsubscriptionError",this.errors=e});function od(t,n){if(t){let e=t.indexOf(n);0<=e&&t.splice(e,1)}}var ke=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 o of e)o.remove(this);else e.remove(this);let{initialTeardown:i}=this;if(Ke(i))try{i()}catch(o){n=o instanceof F_?o.errors:[o]}let{_finalizers:r}=this;if(r){this._finalizers=null;for(let o of r)try{wA(o)}catch(a){n=n??[],a instanceof F_?n=[...n,...a.errors]:n.push(a)}}if(n)throw new F_(n)}}add(n){var e;if(n&&n!==this)if(this.closed)wA(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)&&od(e,n)}remove(n){let{_finalizers:e}=this;e&&od(e,n),n instanceof t&&n._removeParent(this)}};ke.EMPTY=(()=>{let t=new ke;return t.closed=!0,t})();var Pw=ke.EMPTY;function N_(t){return t instanceof ke||t&&"closed"in t&&Ke(t.remove)&&Ke(t.add)&&Ke(t.unsubscribe)}function wA(t){Ke(t)?t():t.unsubscribe()}var ha={onUnhandledError:null,onStoppedNotification:null,Promise:void 0,useDeprecatedSynchronousErrorHandling:!1,useDeprecatedNextContext:!1};var Lu={setTimeout(t,n,...e){let{delegate:i}=Lu;return i?.setTimeout?i.setTimeout(t,n,...e):setTimeout(t,n,...e)},clearTimeout(t){let{delegate:n}=Lu;return(n?.clearTimeout||clearTimeout)(t)},delegate:void 0};function L_(t){Lu.setTimeout(()=>{let{onUnhandledError:n}=ha;if(n)n(t);else throw t})}function ad(){}var DA=Fw("C",void 0,void 0);function EA(t){return Fw("E",void 0,t)}function MA(t){return Fw("N",t,void 0)}function Fw(t,n,e){return{kind:t,value:n,error:e}}var sd=null;function Vu(t){if(ha.useDeprecatedSynchronousErrorHandling){let n=!sd;if(n&&(sd={errorThrown:!1,error:null}),t(),n){let{errorThrown:e,error:i}=sd;if(sd=null,e)throw i}}else t()}function kA(t){ha.useDeprecatedSynchronousErrorHandling&&sd&&(sd.errorThrown=!0,sd.error=t)}var ld=class extends ke{constructor(n){super(),this.isStopped=!1,n?(this.destination=n,N_(n)&&n.add(this)):this.destination=F6}static create(n,e,i){return new Bs(n,e,i)}next(n){this.isStopped?Lw(MA(n),this):this._next(n)}error(n){this.isStopped?Lw(EA(n),this):(this.isStopped=!0,this._error(n))}complete(){this.isStopped?Lw(DA,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()}}},R6=Function.prototype.bind;function Nw(t,n){return R6.call(t,n)}var Vw=class{constructor(n){this.partialObserver=n}next(n){let{partialObserver:e}=this;if(e.next)try{e.next(n)}catch(i){V_(i)}}error(n){let{partialObserver:e}=this;if(e.error)try{e.error(n)}catch(i){V_(i)}else V_(n)}complete(){let{partialObserver:n}=this;if(n.complete)try{n.complete()}catch(e){V_(e)}}},Bs=class extends ld{constructor(n,e,i){super();let r;if(Ke(n)||!n)r={next:n??void 0,error:e??void 0,complete:i??void 0};else{let o;this&&ha.useDeprecatedNextContext?(o=Object.create(n),o.unsubscribe=()=>this.unsubscribe(),r={next:n.next&&Nw(n.next,o),error:n.error&&Nw(n.error,o),complete:n.complete&&Nw(n.complete,o)}):r=n}this.destination=new Vw(r)}};function V_(t){ha.useDeprecatedSynchronousErrorHandling?kA(t):L_(t)}function P6(t){throw t}function Lw(t,n){let{onStoppedNotification:e}=ha;e&&Lu.setTimeout(()=>e(t,n))}var F6={closed:!0,next:ad,error:P6,complete:ad};var Bu=typeof Symbol=="function"&&Symbol.observable||"@@observable";function Mr(t){return t}function Bw(...t){return jw(t)}function jw(t){return t.length===0?Mr:t.length===1?t[0]:function(e){return t.reduce((i,r)=>r(i),e)}}var Fe=(()=>{class t{constructor(e){e&&(this._subscribe=e)}lift(e){let i=new t;return i.source=this,i.operator=e,i}subscribe(e,i,r){let o=L6(e)?e:new Bs(e,i,r);return Vu(()=>{let{operator:a,source:s}=this;o.add(a?a.call(o,s):s?this._subscribe(o):this._trySubscribe(o))}),o}_trySubscribe(e){try{return this._subscribe(e)}catch(i){e.error(i)}}forEach(e,i){return i=SA(i),new i((r,o)=>{let a=new Bs({next:s=>{try{e(s)}catch(l){o(l),a.unsubscribe()}},error:o,complete:r});this.subscribe(a)})}_subscribe(e){var i;return(i=this.source)===null||i===void 0?void 0:i.subscribe(e)}[Bu](){return this}pipe(...e){return jw(e)(this)}toPromise(e){return e=SA(e),new e((i,r)=>{let o;this.subscribe(a=>o=a,a=>r(a),()=>i(o))})}}return t.create=n=>new t(n),t})();function SA(t){var n;return(n=t??ha.Promise)!==null&&n!==void 0?n:Promise}function N6(t){return t&&Ke(t.next)&&Ke(t.error)&&Ke(t.complete)}function L6(t){return t&&t instanceof ld||N6(t)&&N_(t)}function Hw(t){return Ke(t?.lift)}function Qe(t){return n=>{if(Hw(n))return n.lift(function(e){try{return t(e,this)}catch(i){this.error(i)}});throw new TypeError("Unable to lift unknown Observable type")}}function Ue(t,n,e,i,r){return new zw(t,n,e,i,r)}var zw=class extends ld{constructor(n,e,i,r,o,a){super(n),this.onFinalize=o,this.shouldUnsubscribe=a,this._next=e?function(s){try{e(s)}catch(l){n.error(l)}}:super._next,this._error=r?function(s){try{r(s)}catch(l){n.error(l)}finally{this.unsubscribe()}}:super._error,this._complete=i?function(){try{i()}catch(s){n.error(s)}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 ju(){return Qe((t,n)=>{let e=null;t._refCount++;let i=Ue(n,void 0,void 0,void 0,()=>{if(!t||t._refCount<=0||0<--t._refCount){e=null;return}let r=t._connection,o=e;e=null,r&&(!o||r===o)&&r.unsubscribe(),n.unsubscribe()});t.subscribe(i),i.closed||(e=t.connect())})}var Al=class extends Fe{constructor(n,e){super(),this.source=n,this.subjectFactory=e,this._subject=null,this._refCount=0,this._connection=null,Hw(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 ke;let e=this.getSubject();n.add(this.source.subscribe(Ue(e,void 0,()=>{this._teardown(),e.complete()},i=>{this._teardown(),e.error(i)},()=>this._teardown()))),n.closed&&(this._connection=null,n=ke.EMPTY)}return n}refCount(){return ju()(this)}};var Hu={schedule(t){let n=requestAnimationFrame,e=cancelAnimationFrame,{delegate:i}=Hu;i&&(n=i.requestAnimationFrame,e=i.cancelAnimationFrame);let r=n(o=>{e=void 0,t(o)});return new ke(()=>e?.(r))},requestAnimationFrame(...t){let{delegate:n}=Hu;return(n?.requestAnimationFrame||requestAnimationFrame)(...t)},cancelAnimationFrame(...t){let{delegate:n}=Hu;return(n?.cancelAnimationFrame||cancelAnimationFrame)(...t)},delegate:void 0};var TA=Il(t=>function(){t(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"});var z=(()=>{class t extends Fe{constructor(){super(),this.closed=!1,this.currentObservers=null,this.observers=[],this.isStopped=!1,this.hasError=!1,this.thrownError=null}lift(e){let i=new B_(this,this);return i.operator=e,i}_throwIfClosed(){if(this.closed)throw new TA}next(e){Vu(()=>{if(this._throwIfClosed(),!this.isStopped){this.currentObservers||(this.currentObservers=Array.from(this.observers));for(let i of this.currentObservers)i.next(e)}})}error(e){Vu(()=>{if(this._throwIfClosed(),!this.isStopped){this.hasError=this.isStopped=!0,this.thrownError=e;let{observers:i}=this;for(;i.length;)i.shift().error(e)}})}complete(){Vu(()=>{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:i,isStopped:r,observers:o}=this;return i||r?Pw:(this.currentObservers=null,o.push(e),new ke(()=>{this.currentObservers=null,od(o,e)}))}_checkFinalizedStatuses(e){let{hasError:i,thrownError:r,isStopped:o}=this;i?e.error(r):o&&e.complete()}asObservable(){let e=new Fe;return e.source=this,e}}return t.create=(n,e)=>new B_(n,e),t})(),B_=class extends z{constructor(n,e){super(),this.destination=n,this.source=e}next(n){var e,i;(i=(e=this.destination)===null||e===void 0?void 0:e.next)===null||i===void 0||i.call(e,n)}error(n){var e,i;(i=(e=this.destination)===null||e===void 0?void 0:e.error)===null||i===void 0||i.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,i;return(i=(e=this.source)===null||e===void 0?void 0:e.subscribe(n))!==null&&i!==void 0?i:Pw}};var tt=class extends z{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:i}=this;if(n)throw e;return this._throwIfClosed(),i}next(n){super.next(this._value=n)}};var gp={now(){return(gp.delegate||Date).now()},delegate:void 0};var $a=class extends z{constructor(n=1/0,e=1/0,i=gp){super(),this._bufferSize=n,this._windowTime=e,this._timestampProvider=i,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:i,_infiniteTimeWindow:r,_timestampProvider:o,_windowTime:a}=this;e||(i.push(n),!r&&i.push(o.now()+a)),this._trimBuffer(),super.next(n)}_subscribe(n){this._throwIfClosed(),this._trimBuffer();let e=this._innerSubscribe(n),{_infiniteTimeWindow:i,_buffer:r}=this,o=r.slice();for(let a=0;aIA(n)&&t()),n},clearImmediate(t){IA(t)}};var{setImmediate:B6,clearImmediate:j6}=AA,bp={setImmediate(...t){let{delegate:n}=bp;return(n?.setImmediate||B6)(...t)},clearImmediate(t){let{delegate:n}=bp;return(n?.clearImmediate||j6)(t)},delegate:void 0};var H_=class extends Ol{constructor(n,e){super(n,e),this.scheduler=n,this.work=e}requestAsyncId(n,e,i=0){return i!==null&&i>0?super.requestAsyncId(n,e,i):(n.actions.push(this),n._scheduled||(n._scheduled=bp.setImmediate(n.flush.bind(n,void 0))))}recycleAsyncId(n,e,i=0){var r;if(i!=null?i>0:this.delay>0)return super.recycleAsyncId(n,e,i);let{actions:o}=n;e!=null&&((r=o[o.length-1])===null||r===void 0?void 0:r.id)!==e&&(bp.clearImmediate(e),n._scheduled===e&&(n._scheduled=void 0))}};var zu=class t{constructor(n,e=t.now){this.schedulerActionCtor=n,this.now=e}schedule(n,e=0,i){return new this.schedulerActionCtor(this,n).schedule(i,e)}};zu.now=gp.now;var Rl=class extends zu{constructor(n,e=zu.now){super(n,e),this.actions=[],this._active=!1}flush(n){let{actions:e}=this;if(this._active){e.push(n);return}let i;this._active=!0;do if(i=n.execute(n.state,n.delay))break;while(n=e.shift());if(this._active=!1,i){for(;n=e.shift();)n.unsubscribe();throw i}}};var z_=class extends Rl{flush(n){this._active=!0;let e=this._scheduled;this._scheduled=void 0;let{actions:i}=this,r;n=n||i.shift();do if(r=n.execute(n.state,n.delay))break;while((n=i[0])&&n.id===e&&i.shift());if(this._active=!1,r){for(;(n=i[0])&&n.id===e&&i.shift();)n.unsubscribe();throw r}}};var U_=new z_(H_);var js=new Rl(Ol),OA=js;var $_=class extends Ol{constructor(n,e){super(n,e),this.scheduler=n,this.work=e}requestAsyncId(n,e,i=0){return i!==null&&i>0?super.requestAsyncId(n,e,i):(n.actions.push(this),n._scheduled||(n._scheduled=Hu.requestAnimationFrame(()=>n.flush(void 0))))}recycleAsyncId(n,e,i=0){var r;if(i!=null?i>0:this.delay>0)return super.recycleAsyncId(n,e,i);let{actions:o}=n;e!=null&&e===n._scheduled&&((r=o[o.length-1])===null||r===void 0?void 0:r.id)!==e&&(Hu.cancelAnimationFrame(e),n._scheduled=void 0)}};var W_=class extends Rl{flush(n){this._active=!0;let e;n?e=n.id:(e=this._scheduled,this._scheduled=void 0);let{actions:i}=this,r;n=n||i.shift();do if(r=n.execute(n.state,n.delay))break;while((n=i[0])&&n.id===e&&i.shift());if(this._active=!1,r){for(;(n=i[0])&&n.id===e&&i.shift();)n.unsubscribe();throw r}}};var G_=new W_($_);var Fi=new Fe(t=>t.complete());function q_(t){return t&&Ke(t.schedule)}function Ww(t){return t[t.length-1]}function Y_(t){return Ke(Ww(t))?t.pop():void 0}function Wa(t){return q_(Ww(t))?t.pop():void 0}function RA(t,n){return typeof Ww(t)=="number"?t.pop():n}function FA(t,n,e,i){function r(o){return o instanceof e?o:new e(function(a){a(o)})}return new(e||(e=Promise))(function(o,a){function s(d){try{c(i.next(d))}catch(m){a(m)}}function l(d){try{c(i.throw(d))}catch(m){a(m)}}function c(d){d.done?o(d.value):r(d.value).then(s,l)}c((i=i.apply(t,n||[])).next())})}function PA(t){var n=typeof Symbol=="function"&&Symbol.iterator,e=n&&t[n],i=0;if(e)return e.call(t);if(t&&typeof t.length=="number")return{next:function(){return t&&i>=t.length&&(t=void 0),{value:t&&t[i++],done:!t}}};throw new TypeError(n?"Object is not iterable.":"Symbol.iterator is not defined.")}function cd(t){return this instanceof cd?(this.v=t,this):new cd(t)}function NA(t,n,e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var i=e.apply(t,n||[]),r,o=[];return r=Object.create((typeof AsyncIterator=="function"?AsyncIterator:Object).prototype),s("next"),s("throw"),s("return",a),r[Symbol.asyncIterator]=function(){return this},r;function a(b){return function(v){return Promise.resolve(v).then(b,m)}}function s(b,v){i[b]&&(r[b]=function(w){return new Promise(function(x,D){o.push([b,w,x,D])>1||l(b,w)})},v&&(r[b]=v(r[b])))}function l(b,v){try{c(i[b](v))}catch(w){f(o[0][3],w)}}function c(b){b.value instanceof cd?Promise.resolve(b.value.v).then(d,m):f(o[0][2],b)}function d(b){l("next",b)}function m(b){l("throw",b)}function f(b,v){b(v),o.shift(),o.length&&l(o[0][0],o[0][1])}}function LA(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 PA=="function"?PA(t):t[Symbol.iterator](),e={},i("next"),i("throw"),i("return"),e[Symbol.asyncIterator]=function(){return this},e);function i(o){e[o]=t[o]&&function(a){return new Promise(function(s,l){a=t[o](a),r(s,l,a.done,a.value)})}}function r(o,a,s,l){Promise.resolve(l).then(function(c){o({value:c,done:s})},a)}}var Uu=t=>t&&typeof t.length=="number"&&typeof t!="function";function Q_(t){return Ke(t?.then)}function K_(t){return Ke(t[Bu])}function Z_(t){return Symbol.asyncIterator&&Ke(t?.[Symbol.asyncIterator])}function X_(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 H6(){return typeof Symbol!="function"||!Symbol.iterator?"@@iterator":Symbol.iterator}var J_=H6();function eb(t){return Ke(t?.[J_])}function tb(t){return NA(this,arguments,function*(){let e=t.getReader();try{for(;;){let{value:i,done:r}=yield cd(e.read());if(r)return yield cd(void 0);yield yield cd(i)}}finally{e.releaseLock()}})}function ib(t){return Ke(t?.getReader)}function At(t){if(t instanceof Fe)return t;if(t!=null){if(K_(t))return z6(t);if(Uu(t))return U6(t);if(Q_(t))return $6(t);if(Z_(t))return VA(t);if(eb(t))return W6(t);if(ib(t))return G6(t)}throw X_(t)}function z6(t){return new Fe(n=>{let e=t[Bu]();if(Ke(e.subscribe))return e.subscribe(n);throw new TypeError("Provided object does not correctly implement Symbol.observable")})}function U6(t){return new Fe(n=>{for(let e=0;e{t.then(e=>{n.closed||(n.next(e),n.complete())},e=>n.error(e)).then(null,L_)})}function W6(t){return new Fe(n=>{for(let e of t)if(n.next(e),n.closed)return;n.complete()})}function VA(t){return new Fe(n=>{q6(t,n).catch(e=>n.error(e))})}function G6(t){return VA(tb(t))}function q6(t,n){var e,i,r,o;return FA(this,void 0,void 0,function*(){try{for(e=LA(t);i=yield e.next(),!i.done;){let a=i.value;if(n.next(a),n.closed)return}}catch(a){r={error:a}}finally{try{i&&!i.done&&(o=e.return)&&(yield o.call(e))}finally{if(r)throw r.error}}n.complete()})}function dr(t,n,e,i=0,r=!1){let o=n.schedule(function(){e(),r?t.add(this.schedule(null,i)):this.unsubscribe()},i);if(t.add(o),!r)return o}function nb(t,n=0){return Qe((e,i)=>{e.subscribe(Ue(i,r=>dr(i,t,()=>i.next(r),n),()=>dr(i,t,()=>i.complete(),n),r=>dr(i,t,()=>i.error(r),n)))})}function rb(t,n=0){return Qe((e,i)=>{i.add(t.schedule(()=>e.subscribe(i),n))})}function BA(t,n){return At(t).pipe(rb(n),nb(n))}function jA(t,n){return At(t).pipe(rb(n),nb(n))}function HA(t,n){return new Fe(e=>{let i=0;return n.schedule(function(){i===t.length?e.complete():(e.next(t[i++]),e.closed||this.schedule())})})}function zA(t,n){return new Fe(e=>{let i;return dr(e,n,()=>{i=t[J_](),dr(e,n,()=>{let r,o;try{({value:r,done:o}=i.next())}catch(a){e.error(a);return}o?e.complete():e.next(r)},0,!0)}),()=>Ke(i?.return)&&i.return()})}function ob(t,n){if(!t)throw new Error("Iterable cannot be null");return new Fe(e=>{dr(e,n,()=>{let i=t[Symbol.asyncIterator]();dr(e,n,()=>{i.next().then(r=>{r.done?e.complete():e.next(r.value)})},0,!0)})})}function UA(t,n){return ob(tb(t),n)}function $A(t,n){if(t!=null){if(K_(t))return BA(t,n);if(Uu(t))return HA(t,n);if(Q_(t))return jA(t,n);if(Z_(t))return ob(t,n);if(eb(t))return zA(t,n);if(ib(t))return UA(t,n)}throw X_(t)}function Ot(t,n){return n?$A(t,n):At(t)}function Q(...t){let n=Wa(t);return Ot(t,n)}function Wn(t,n){let e=Ke(t)?t:()=>t,i=r=>r.error(e());return new Fe(n?r=>n.schedule(i,0,r):i)}function ji(t){return!!t&&(t instanceof Fe||Ke(t.lift)&&Ke(t.subscribe))}var Hs=Il(t=>function(){t(this),this.name="EmptyError",this.message="no elements in sequence"});function ab(t){return t instanceof Date&&!isNaN(t)}var Y6=Il(t=>function(e=null){t(this),this.message="Timeout has occurred",this.name="TimeoutError",this.info=e});function Gw(t,n){let{first:e,each:i,with:r=Q6,scheduler:o=n??js,meta:a=null}=ab(t)?{first:t}:typeof t=="number"?{each:t}:t;if(e==null&&i==null)throw new TypeError("No timeout provided.");return Qe((s,l)=>{let c,d,m=null,f=0,b=v=>{d=dr(l,o,()=>{try{c.unsubscribe(),At(r({meta:a,lastValue:m,seen:f})).subscribe(l)}catch(w){l.error(w)}},v)};c=s.subscribe(Ue(l,v=>{d?.unsubscribe(),f++,l.next(m=v),i>0&&b(i)},void 0,void 0,()=>{d?.closed||d?.unsubscribe(),m=null})),!f&&b(e!=null?typeof e=="number"?e:+e-o.now():i)})}function Q6(t){throw new Y6(t)}function se(t,n){return Qe((e,i)=>{let r=0;e.subscribe(Ue(i,o=>{i.next(t.call(n,o,r++))}))})}var{isArray:K6}=Array;function Z6(t,n){return K6(n)?t(...n):t(n)}function $u(t){return se(n=>Z6(t,n))}var{isArray:X6}=Array,{getPrototypeOf:J6,prototype:e$,keys:t$}=Object;function sb(t){if(t.length===1){let n=t[0];if(X6(n))return{args:n,keys:null};if(i$(n)){let e=t$(n);return{args:e.map(i=>n[i]),keys:e}}}return{args:t,keys:null}}function i$(t){return t&&typeof t=="object"&&J6(t)===e$}function lb(t,n){return t.reduce((e,i,r)=>(e[i]=n[r],e),{})}function co(...t){let n=Wa(t),e=Y_(t),{args:i,keys:r}=sb(t);if(i.length===0)return Ot([],n);let o=new Fe(n$(i,n,r?a=>lb(r,a):Mr));return e?o.pipe($u(e)):o}function n$(t,n,e=Mr){return i=>{WA(n,()=>{let{length:r}=t,o=new Array(r),a=r,s=r;for(let l=0;l{let c=Ot(t[l],n),d=!1;c.subscribe(Ue(i,m=>{o[l]=m,d||(d=!0,s--),s||i.next(e(o.slice()))},()=>{--a||i.complete()}))},i)},i)}}function WA(t,n,e){t?dr(e,t,n):n()}function GA(t,n,e,i,r,o,a,s){let l=[],c=0,d=0,m=!1,f=()=>{m&&!l.length&&!c&&n.complete()},b=w=>c{o&&n.next(w),c++;let x=!1;At(e(w,d++)).subscribe(Ue(n,D=>{r?.(D),o?b(D):n.next(D)},()=>{x=!0},void 0,()=>{if(x)try{for(c--;l.length&&cv(D)):v(D)}f()}catch(D){n.error(D)}}))};return t.subscribe(Ue(n,b,()=>{m=!0,f()})),()=>{s?.()}}function Mt(t,n,e=1/0){return Ke(n)?Mt((i,r)=>se((o,a)=>n(i,o,r,a))(At(t(i,r))),e):(typeof n=="number"&&(e=n),Qe((i,r)=>GA(i,r,t,e)))}function uo(t=1/0){return Mt(Mr,t)}function qA(){return uo(1)}function mo(...t){return qA()(Ot(t,Wa(t)))}function kn(t){return new Fe(n=>{At(t()).subscribe(n)})}function Ga(...t){let n=Y_(t),{args:e,keys:i}=sb(t),r=new Fe(o=>{let{length:a}=e;if(!a){o.complete();return}let s=new Array(a),l=a,c=a;for(let d=0;d{m||(m=!0,c--),s[d]=f},()=>l--,void 0,()=>{(!l||!m)&&(c||o.next(i?lb(i,s):s),o.complete())}))}});return n?r.pipe($u(n)):r}var r$=["addListener","removeListener"],o$=["addEventListener","removeEventListener"],a$=["on","off"];function zs(t,n,e,i){if(Ke(e)&&(i=e,e=void 0),i)return zs(t,n,e).pipe($u(i));let[r,o]=c$(t)?o$.map(a=>s=>t[a](n,s,e)):s$(t)?r$.map(YA(t,n)):l$(t)?a$.map(YA(t,n)):[];if(!r&&Uu(t))return Mt(a=>zs(a,n,e))(At(t));if(!r)throw new TypeError("Invalid event target");return new Fe(a=>{let s=(...l)=>a.next(1o(s)})}function YA(t,n){return e=>i=>t[e](n,i)}function s$(t){return Ke(t.addListener)&&Ke(t.removeListener)}function l$(t){return Ke(t.on)&&Ke(t.off)}function c$(t){return Ke(t.addEventListener)&&Ke(t.removeEventListener)}function qa(t=0,n,e=OA){let i=-1;return n!=null&&(q_(n)?e=n:i=n),new Fe(r=>{let o=ab(t)?+t-e.now():t;o<0&&(o=0);let a=0;return e.schedule(function(){r.closed||(r.next(a++),0<=i?this.schedule(void 0,i):r.complete())},o)})}function Je(...t){let n=Wa(t),e=RA(t,1/0),i=t;return i.length?i.length===1?At(i[0]):uo(e)(Ot(i,n)):Fi}var{isArray:d$}=Array;function QA(t){return t.length===1&&d$(t[0])?t[0]:t}function ce(t,n){return Qe((e,i)=>{let r=0;e.subscribe(Ue(i,o=>t.call(n,o,r++)&&i.next(o)))})}function Wu(...t){return t=QA(t),t.length===1?At(t[0]):new Fe(u$(t))}function u$(t){return n=>{let e=[];for(let i=0;e&&!n.closed&&i{if(e){for(let o=0;o{let i=!1,r=null,o=null,a=!1,s=()=>{if(o?.unsubscribe(),o=null,i){i=!1;let c=r;r=null,e.next(c)}a&&e.complete()},l=()=>{o=null,a&&e.complete()};n.subscribe(Ue(e,c=>{i=!0,r=c,o||At(t(c)).subscribe(o=Ue(e,s,l))},()=>{a=!0,(!i||!o||o.closed)&&e.complete()}))})}function Pl(t,n=js){return KA(()=>qa(t,n))}function fi(t){return Qe((n,e)=>{let i=null,r=!1,o;i=n.subscribe(Ue(e,void 0,void 0,a=>{o=At(t(a,fi(t)(n))),i?(i.unsubscribe(),i=null,o.subscribe(e)):r=!0})),r&&(i.unsubscribe(),i=null,o.subscribe(e))})}function ZA(t,n,e,i,r){return(o,a)=>{let s=e,l=n,c=0;o.subscribe(Ue(a,d=>{let m=c++;l=s?t(l,d,m):(s=!0,d),i&&a.next(l)},r&&(()=>{s&&a.next(l),a.complete()})))}}function Ao(t,n){return Ke(n)?Mt(t,n,1):Mt(t,1)}function Rt(t,n=js){return Qe((e,i)=>{let r=null,o=null,a=null,s=()=>{if(r){r.unsubscribe(),r=null;let c=o;o=null,i.next(c)}};function l(){let c=a+t,d=n.now();if(d{o=c,a=n.now(),r||(r=n.schedule(l,t),i.add(r))},()=>{s(),i.complete()},void 0,()=>{o=r=null}))})}function Fl(t){return Qe((n,e)=>{let i=!1;n.subscribe(Ue(e,r=>{i=!0,e.next(r)},()=>{i||e.next(t),e.complete()}))})}function lt(t){return t<=0?()=>Fi:Qe((n,e)=>{let i=0;n.subscribe(Ue(e,r=>{++i<=t&&(e.next(r),t<=i&&e.complete())}))})}function XA(){return Qe((t,n)=>{t.subscribe(Ue(n,ad))})}function Gu(t){return se(()=>t)}function qw(t,n){return n?e=>mo(n.pipe(lt(1),XA()),e.pipe(qw(t))):Mt((e,i)=>At(t(e,i)).pipe(lt(1),Gu(e)))}function pa(t,n=js){let e=qa(t,n);return qw(()=>e)}function Sn(t,n=Mr){return t=t??m$,Qe((e,i)=>{let r,o=!0;e.subscribe(Ue(i,a=>{let s=n(a);(o||!t(r,s))&&(o=!1,r=s,i.next(a))}))})}function m$(t,n){return t===n}function cb(t=h$){return Qe((n,e)=>{let i=!1;n.subscribe(Ue(e,r=>{i=!0,e.next(r)},()=>i?e.complete():e.error(t())))})}function h$(){return new Hs}function Yw(t,n){return Qe((e,i)=>{let r=0;e.subscribe(Ue(i,o=>{t.call(n,o,r++,e)||(i.next(!1),i.complete())},()=>{i.next(!0),i.complete()}))})}function Hr(t){return Qe((n,e)=>{try{n.subscribe(e)}finally{e.add(t)}})}function gn(t,n){let e=arguments.length>=2;return i=>i.pipe(t?ce((r,o)=>t(r,o,i)):Mr,lt(1),e?Fl(n):cb(()=>new Hs))}function qu(t){return t<=0?()=>Fi:Qe((n,e)=>{let i=[];n.subscribe(Ue(e,r=>{i.push(r),t{for(let r of i)e.next(r);e.complete()},void 0,()=>{i=null}))})}function Qw(t,n){let e=arguments.length>=2;return i=>i.pipe(t?ce((r,o)=>t(r,o,i)):Mr,qu(1),e?Fl(n):cb(()=>new Hs))}function db(){return Qe((t,n)=>{let e,i=!1;t.subscribe(Ue(n,r=>{let o=e;e=r,i&&n.next([o,r]),i=!0}))})}function Kw(t,n){return Qe(ZA(t,n,arguments.length>=2,!0))}function Nl(t={}){let{connector:n=()=>new z,resetOnError:e=!0,resetOnComplete:i=!0,resetOnRefCountZero:r=!0}=t;return o=>{let a,s,l,c=0,d=!1,m=!1,f=()=>{s?.unsubscribe(),s=void 0},b=()=>{f(),a=l=void 0,d=m=!1},v=()=>{let w=a;b(),w?.unsubscribe()};return Qe((w,x)=>{c++,!m&&!d&&f();let D=l=l??n();x.add(()=>{c--,c===0&&!m&&!d&&(s=Zw(v,r))}),D.subscribe(x),!a&&c>0&&(a=new Bs({next:P=>D.next(P),error:P=>{m=!0,f(),s=Zw(b,e,P),D.error(P)},complete:()=>{d=!0,f(),s=Zw(b,i),D.complete()}}),At(w).subscribe(a))})(o)}}function Zw(t,n,...e){if(n===!0){t();return}if(n===!1)return;let i=new Bs({next:()=>{i.unsubscribe(),t()}});return At(n(...e)).subscribe(i)}function dd(t,n,e){let i,r=!1;return t&&typeof t=="object"?{bufferSize:i=1/0,windowTime:n=1/0,refCount:r=!1,scheduler:e}=t:i=t??1/0,Nl({connector:()=>new $a(i,n,e),resetOnError:!0,resetOnComplete:!1,resetOnRefCountZero:r})}function Ya(t){return ce((n,e)=>t<=e)}function He(...t){let n=Wa(t);return Qe((e,i)=>{(n?mo(t,e,n):mo(t,e)).subscribe(i)})}function $e(t,n){return Qe((e,i)=>{let r=null,o=0,a=!1,s=()=>a&&!r&&i.complete();e.subscribe(Ue(i,l=>{r?.unsubscribe();let c=0,d=o++;At(t(l,d)).subscribe(r=Ue(i,m=>i.next(n?n(l,m,d,c++):m),()=>{r=null,s()}))},()=>{a=!0,s()}))})}function Te(t){return Qe((n,e)=>{At(t).subscribe(Ue(e,()=>e.complete(),ad)),!e.closed&&n.subscribe(e)})}function Xw(t,n=!1){return Qe((e,i)=>{let r=0;e.subscribe(Ue(i,o=>{let a=t(o,r++);(a||n)&&i.next(o),!a&&i.complete()}))})}function Be(t,n,e){let i=Ke(t)||n||e?{next:t,error:n,complete:e}:t;return i?Qe((r,o)=>{var a;(a=i.subscribe)===null||a===void 0||a.call(i);let s=!0;r.subscribe(Ue(o,l=>{var c;(c=i.next)===null||c===void 0||c.call(i,l),o.next(l)},()=>{var l;s=!1,(l=i.complete)===null||l===void 0||l.call(i),o.complete()},l=>{var c;s=!1,(c=i.error)===null||c===void 0||c.call(i,l),o.error(l)},()=>{var l,c;s&&((l=i.unsubscribe)===null||l===void 0||l.call(i)),(c=i.finalize)===null||c===void 0||c.call(i)}))}):Mr}function JA(t){let n=Xe(null);try{return t()}finally{Xe(n)}}var eO=De(M({},td),{consumerIsAlwaysLive:!0,consumerAllowSignalWrites:!0,dirty:!0,kind:"effect"});function tO(t){if(t.dirty=!1,t.version>0&&!nd(t))return;t.version++;let n=Sl(t);try{t.cleanup(),t.fn()}finally{id(t,n)}}var Ll=class{full;major;minor;patch;constructor(n){this.full=n;let e=n.split(".");this.major=e[0],this.minor=e[1],this.patch=e.slice(2).join(".")}},wp=new Ll("20.3.16");var pb="https://angular.dev/best-practices/security#preventing-cross-site-scripting-xss",ue=class extends Error{code;constructor(n,e){super(Ro(n,e)),this.code=n}};function p$(t){return`NG0${Math.abs(t)}`}function Ro(t,n){return`${p$(t)}${n?": "+n:""}`}var Po=globalThis;function Qt(t){for(let n in t)if(t[n]===Qt)return n;throw Error("")}function rO(t,n){for(let e in n)n.hasOwnProperty(e)&&!t.hasOwnProperty(e)&&(t[e]=n[e])}function $s(t){if(typeof t=="string")return t;if(Array.isArray(t))return`[${t.map($s).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 i=e.indexOf(` +`);return i>=0?e.slice(0,i):e}function fb(t,n){return t?n?`${t} ${n}`:t:n||""}var f$=Qt({__forward_ref__:Qt});function Kt(t){return t.__forward_ref__=Kt,t.toString=function(){return $s(this())},t}function _n(t){return dD(t)?t():t}function dD(t){return typeof t=="function"&&t.hasOwnProperty(f$)&&t.__forward_ref__===Kt}function O(t){return{token:t.token,providedIn:t.providedIn||null,factory:t.factory,value:void 0}}function J(t){return{providers:t.providers||[],imports:t.imports||[]}}function Dp(t){return g$(t,gb)}function uD(t){return Dp(t)!==null}function g$(t,n){return t.hasOwnProperty(n)&&t[n]||null}function _$(t){let n=t?.[gb]??null;return n||null}function eD(t){return t&&t.hasOwnProperty(mb)?t[mb]:null}var gb=Qt({\u0275prov:Qt}),mb=Qt({\u0275inj:Qt}),T=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=O({token:this,providedIn:e.providedIn||"root",factory:e.factory}))}get multi(){return this}toString(){return`InjectionToken ${this._desc}`}};function mD(t){return t&&!!t.\u0275providers}var hD=Qt({\u0275cmp:Qt}),pD=Qt({\u0275dir:Qt}),fD=Qt({\u0275pipe:Qt}),gD=Qt({\u0275mod:Qt}),yp=Qt({\u0275fac:Qt}),fd=Qt({__NG_ELEMENT_ID__:Qt}),iO=Qt({__NG_ENV_ID__:Qt});function Fo(t){return typeof t=="string"?t:t==null?"":String(t)}function oO(t){return typeof t=="function"?t.name||t.toString():typeof t=="object"&&t!=null&&typeof t.type=="function"?t.type.name||t.type.toString():Fo(t)}var aO=Qt({ngErrorCode:Qt}),b$=Qt({ngErrorMessage:Qt}),v$=Qt({ngTokenPath:Qt});function _D(t,n){return sO("",-200,n)}function _b(t,n){throw new ue(-201,!1)}function sO(t,n,e){let i=new ue(n,t);return i[aO]=n,i[b$]=t,e&&(i[v$]=e),i}function y$(t){return t[aO]}var tD;function lO(){return tD}function kr(t){let n=tD;return tD=t,n}function bD(t,n,e){let i=Dp(t);if(i&&i.providedIn=="root")return i.value===void 0?i.value=i.factory():i.value;if(e&8)return null;if(n!==void 0)return n;_b(t,"Injector")}var x$={},ud=x$,iD="__NG_DI_FLAG__",nD=class{injector;constructor(n){this.injector=n}retrieve(n,e){let i=md(e)||0;try{return this.injector.get(n,i&8?null:ud,i)}catch(r){if(Fu(r))return r;throw r}}};function C$(t,n=0){let e=M_();if(e===void 0)throw new ue(-203,!1);if(e===null)return bD(t,void 0,n);{let i=w$(n),r=e.retrieve(t,i);if(Fu(r)){if(i.optional)return null;throw r}return r}}function pe(t,n=0){return(lO()||C$)(_n(t),n)}function u(t,n){return pe(t,md(n))}function md(t){return typeof t>"u"||typeof t=="number"?t:0|(t.optional&&8)|(t.host&&1)|(t.self&&2)|(t.skipSelf&&4)}function w$(t){return{optional:!!(t&8),host:!!(t&1),self:!!(t&2),skipSelf:!!(t&4)}}function rD(t){let n=[];for(let e=0;eArray.isArray(e)?bb(e,n):n(e))}function yD(t,n,e){n>=t.length?t.push(e):t.splice(n,0,e)}function Ep(t,n){return n>=t.length-1?t.pop():t.splice(n,1)[0]}function uO(t,n){let e=[];for(let i=0;in;){let o=r-2;t[r]=t[o],r--}t[n]=e,t[n+1]=i}}function Mp(t,n,e){let i=Qu(t,n);return i>=0?t[i|1]=e:(i=~i,mO(t,i,n,e)),i}function vb(t,n){let e=Qu(t,n);if(e>=0)return t[e|1]}function Qu(t,n){return E$(t,n,1)}function E$(t,n,e){let i=0,r=t.length>>e;for(;r!==i;){let o=i+(r-i>>1),a=t[o<n?r=o:i=o+1}return~(r<{e.push(a)};return bb(n,a=>{let s=a;hb(s,o,[],i)&&(r||=[],r.push(s))}),r!==void 0&&fO(r,o),e}function fO(t,n){for(let e=0;e{n(o,i)})}}function hb(t,n,e,i){if(t=_n(t),!t)return!1;let r=null,o=eD(t),a=!o&&Ka(t);if(!o&&!a){let l=t.ngModule;if(o=eD(l),o)r=l;else return!1}else{if(a&&!a.standalone)return!1;r=t}let s=i.has(r);if(a){if(s)return!1;if(i.add(r),a.dependencies){let l=typeof a.dependencies=="function"?a.dependencies():a.dependencies;for(let c of l)hb(c,n,e,i)}}else if(o){if(o.imports!=null&&!s){i.add(r);let c;try{bb(o.imports,d=>{hb(d,n,e,i)&&(c||=[],c.push(d))})}finally{}c!==void 0&&fO(c,n)}if(!s){let c=Vl(r)||(()=>new r);n({provide:r,useFactory:c,deps:ur},r),n({provide:CD,useValue:r,multi:!0},r),n({provide:Qa,useValue:()=>pe(r),multi:!0},r)}let l=o.providers;if(l!=null&&!s){let c=t;ED(l,d=>{n(d,c)})}}else return!1;return r!==t&&t.providers!==void 0}function ED(t,n){for(let e of t)mD(e)&&(e=e.\u0275providers),Array.isArray(e)?ED(e,n):n(e)}var M$=Qt({provide:String,useValue:Qt});function gO(t){return t!==null&&typeof t=="object"&&M$ in t}function k$(t){return!!(t&&t.useExisting)}function S$(t){return!!(t&&t.useFactory)}function hd(t){return typeof t=="function"}function _O(t){return!!t.useClass}var kp=new T(""),ub={},nO={},Jw;function Ku(){return Jw===void 0&&(Jw=new xp),Jw}var Wt=class{},pd=class extends Wt{parent;source;scopes;records=new Map;_ngOnDestroyHooks=new Set;_onDestroyHooks=[];get destroyed(){return this._destroyed}_destroyed=!1;injectorDefTypes;constructor(n,e,i,r){super(),this.parent=e,this.source=i,this.scopes=r,aD(n,a=>this.processProvider(a)),this.records.set(xD,Yu(void 0,this)),r.has("environment")&&this.records.set(Wt,Yu(void 0,this));let o=this.records.get(kp);o!=null&&typeof o.value=="string"&&this.scopes.add(o.value),this.injectorDefTypes=new Set(this.get(CD,ur,{self:!0}))}retrieve(n,e){let i=md(e)||0;try{return this.get(n,ud,i)}catch(r){if(Fu(r))return r;throw r}}destroy(){vp(this),this._destroyed=!0;let n=Xe(null);try{for(let i of this._ngOnDestroyHooks)i.ngOnDestroy();let e=this._onDestroyHooks;this._onDestroyHooks=[];for(let i of e)i()}finally{this.records.clear(),this._ngOnDestroyHooks.clear(),this.injectorDefTypes.clear(),Xe(n)}}onDestroy(n){return vp(this),this._onDestroyHooks.push(n),()=>this.removeOnDestroy(n)}runInContext(n){vp(this);let e=Ua(this),i=kr(void 0),r;try{return n()}finally{Ua(e),kr(i)}}get(n,e=ud,i){if(vp(this),n.hasOwnProperty(iO))return n[iO](this);let r=md(i),o,a=Ua(this),s=kr(void 0);try{if(!(r&4)){let c=this.records.get(n);if(c===void 0){let d=R$(n)&&Dp(n);d&&this.injectableDefInScope(d)?c=Yu(oD(n),ub):c=null,this.records.set(n,c)}if(c!=null)return this.hydrate(n,c,r)}let l=r&2?Ku():this.parent;return e=r&8&&e===ud?null:e,l.get(n,e)}catch(l){let c=y$(l);throw c===-200||c===-201?new ue(c,null):l}finally{kr(s),Ua(a)}}resolveInjectorInitializers(){let n=Xe(null),e=Ua(this),i=kr(void 0),r;try{let o=this.get(Qa,ur,{self:!0});for(let a of o)a()}finally{Ua(e),kr(i),Xe(n)}}toString(){let n=[],e=this.records;for(let i of e.keys())n.push($s(i));return`R3Injector[${n.join(", ")}]`}processProvider(n){n=_n(n);let e=hd(n)?n:_n(n&&n.provide),i=I$(n);if(!hd(n)&&n.multi===!0){let r=this.records.get(e);r||(r=Yu(void 0,ub,!0),r.factory=()=>rD(r.multi),this.records.set(e,r)),e=n,r.multi.push(n)}this.records.set(e,i)}hydrate(n,e,i){let r=Xe(null);try{if(e.value===nO)throw _D($s(n));return e.value===ub&&(e.value=nO,e.value=e.factory(void 0,i)),typeof e.value=="object"&&e.value&&O$(e.value)&&this._ngOnDestroyHooks.add(e.value),e.value}finally{Xe(r)}}injectableDefInScope(n){if(!n.providedIn)return!1;let e=_n(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 oD(t){let n=Dp(t),e=n!==null?n.factory:Vl(t);if(e!==null)return e;if(t instanceof T)throw new ue(204,!1);if(t instanceof Function)return T$(t);throw new ue(204,!1)}function T$(t){if(t.length>0)throw new ue(204,!1);let e=_$(t);return e!==null?()=>e.factory(t):()=>new t}function I$(t){if(gO(t))return Yu(void 0,t.useValue);{let n=MD(t);return Yu(n,ub)}}function MD(t,n,e){let i;if(hd(t)){let r=_n(t);return Vl(r)||oD(r)}else if(gO(t))i=()=>_n(t.useValue);else if(S$(t))i=()=>t.useFactory(...rD(t.deps||[]));else if(k$(t))i=(r,o)=>pe(_n(t.useExisting),o!==void 0&&o&8?8:void 0);else{let r=_n(t&&(t.useClass||t.provide));if(A$(t))i=()=>new r(...rD(t.deps));else return Vl(r)||oD(r)}return i}function vp(t){if(t.destroyed)throw new ue(205,!1)}function Yu(t,n,e=!1){return{factory:t,value:n,multi:e?[]:void 0}}function A$(t){return!!t.deps}function O$(t){return t!==null&&typeof t=="object"&&typeof t.ngOnDestroy=="function"}function R$(t){return typeof t=="function"||typeof t=="object"&&t.ngMetadataName==="InjectionToken"}function aD(t,n){for(let e of t)Array.isArray(e)?aD(e,n):e&&mD(e)?aD(e.\u0275providers,n):n(e)}function In(t,n){let e;t instanceof pd?(vp(t),e=t):e=new nD(t);let i,r=Ua(e),o=kr(void 0);try{return n()}finally{Ua(r),kr(o)}}function bO(){return lO()!==void 0||M_()!=null}var ga=0,We=1,et=2,bn=3,No=4,Sr=5,gd=6,Zu=7,qi=8,Ws=9,Za=10,ri=11,Xu=12,kD=13,_d=14,mr=15,jl=16,bd=17,Xa=18,Sp=19,SD=20,Us=21,Cb=22,Gs=23,ho=24,vd=25,yd=26,mi=27,vO=1,TD=6,Hl=7,Tp=8,xd=9,Yi=10;function Ja(t){return Array.isArray(t)&&typeof t[vO]=="object"}function _a(t){return Array.isArray(t)&&t[vO]===!0}function ID(t){return(t.flags&4)!==0}function qs(t){return t.componentOffset>-1}function Ju(t){return(t.flags&1)===1}function ba(t){return!!t.template}function em(t){return(t[et]&512)!==0}function Cd(t){return(t[et]&256)===256}var AD="svg",yO="math";function Lo(t){for(;Array.isArray(t);)t=t[ga];return t}function OD(t,n){return Lo(n[t])}function Vo(t,n){return Lo(n[t.index])}function Ip(t,n){return t.data[n]}function tm(t,n){return t[n]}function RD(t,n,e,i){e>=t.data.length&&(t.data[e]=null,t.blueprint[e]=null),n[e]=i}function Bo(t,n){let e=n[t];return Ja(e)?e:e[ga]}function xO(t){return(t[et]&4)===4}function wb(t){return(t[et]&128)===128}function CO(t){return _a(t[bn])}function po(t,n){return n==null?null:t[n]}function PD(t){t[bd]=0}function FD(t){t[et]&1024||(t[et]|=1024,wb(t)&&zl(t))}function wO(t,n){for(;t>0;)n=n[_d],t--;return n}function Ap(t){return!!(t[et]&9216||t[ho]?.dirty)}function Db(t){t[Za].changeDetectionScheduler?.notify(8),t[et]&64&&(t[et]|=1024),Ap(t)&&zl(t)}function zl(t){t[Za].changeDetectionScheduler?.notify(0);let n=Bl(t);for(;n!==null&&!(n[et]&8192||(n[et]|=8192,!wb(n)));)n=Bl(n)}function ND(t,n){if(Cd(t))throw new ue(911,!1);t[Us]===null&&(t[Us]=[]),t[Us].push(n)}function DO(t,n){if(t[Us]===null)return;let e=t[Us].indexOf(n);e!==-1&&t[Us].splice(e,1)}function Bl(t){let n=t[bn];return _a(n)?n[bn]:n}function LD(t){return t[Zu]??=[]}function VD(t){return t.cleanup??=[]}function EO(t,n,e,i){let r=LD(n);r.push(e),t.firstCreatePass&&VD(t).push(i,r.length-1)}var ht={lFrame:NO(null),bindingsEnabled:!0,skipHydrationRootTNode:null};var sD=!1;function MO(){return ht.lFrame.elementDepthCount}function kO(){ht.lFrame.elementDepthCount++}function BD(){ht.lFrame.elementDepthCount--}function Eb(){return ht.bindingsEnabled}function jD(){return ht.skipHydrationRootTNode!==null}function HD(t){return ht.skipHydrationRootTNode===t}function zD(){ht.skipHydrationRootTNode=null}function Ne(){return ht.lFrame.lView}function gi(){return ht.lFrame.tView}function I(t){return ht.lFrame.contextLView=t,t[qi]}function A(t){return ht.lFrame.contextLView=null,t}function tn(){let t=UD();for(;t!==null&&t.type===64;)t=t.parent;return t}function UD(){return ht.lFrame.currentTNode}function SO(){let t=ht.lFrame,n=t.currentTNode;return t.isParent?n:n.parent}function im(t,n){let e=ht.lFrame;e.currentTNode=t,e.isParent=n}function $D(){return ht.lFrame.isParent}function WD(){ht.lFrame.isParent=!1}function TO(){return ht.lFrame.contextLView}function GD(){return sD}function nm(t){let n=sD;return sD=t,n}function es(){let t=ht.lFrame,n=t.bindingRootIndex;return n===-1&&(n=t.bindingRootIndex=t.tView.bindingStartIndex),n}function qD(){return ht.lFrame.bindingIndex}function IO(t){return ht.lFrame.bindingIndex=t}function ts(){return ht.lFrame.bindingIndex++}function Op(t){let n=ht.lFrame,e=n.bindingIndex;return n.bindingIndex=n.bindingIndex+t,e}function AO(){return ht.lFrame.inI18n}function OO(t,n){let e=ht.lFrame;e.bindingIndex=e.bindingRootIndex=t,Mb(n)}function RO(){return ht.lFrame.currentDirectiveIndex}function Mb(t){ht.lFrame.currentDirectiveIndex=t}function PO(t){let n=ht.lFrame.currentDirectiveIndex;return n===-1?null:t[n]}function kb(){return ht.lFrame.currentQueryIndex}function Rp(t){ht.lFrame.currentQueryIndex=t}function P$(t){let n=t[We];return n.type===2?n.declTNode:n.type===1?t[Sr]:null}function YD(t,n,e){if(e&4){let r=n,o=t;for(;r=r.parent,r===null&&!(e&1);)if(r=P$(o),r===null||(o=o[_d],r.type&10))break;if(r===null)return!1;n=r,t=o}let i=ht.lFrame=FO();return i.currentTNode=n,i.lView=t,!0}function Sb(t){let n=FO(),e=t[We];ht.lFrame=n,n.currentTNode=e.firstChild,n.lView=t,n.tView=e,n.contextLView=t,n.bindingIndex=e.bindingStartIndex,n.inI18n=!1}function FO(){let t=ht.lFrame,n=t===null?null:t.child;return n===null?NO(t):n}function NO(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 LO(){let t=ht.lFrame;return ht.lFrame=t.parent,t.currentTNode=null,t.lView=null,t}var QD=LO;function Tb(){let t=LO();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 VO(t){return(ht.lFrame.contextLView=wO(t,ht.lFrame.contextLView))[qi]}function va(){return ht.lFrame.selectedIndex}function Ul(t){ht.lFrame.selectedIndex=t}function rm(){let t=ht.lFrame;return Ip(t.tView,t.selectedIndex)}function Gt(){ht.lFrame.currentNamespace=AD}function jo(){F$()}function F$(){ht.lFrame.currentNamespace=null}function BO(){return ht.lFrame.currentNamespace}var jO=!0;function Ib(){return jO}function Pp(t){jO=t}function lD(t,n=null,e=null,i){let r=KD(t,n,e,i);return r.resolveInjectorInitializers(),r}function KD(t,n=null,e=null,i,r=new Set){let o=[e||ur,xb(t)];return i=i||(typeof t=="object"?void 0:$s(t)),new pd(o,n||Ku(),i||null,r)}var de=class t{static THROW_IF_NOT_FOUND=ud;static NULL=new xp;static create(n,e){if(Array.isArray(n))return lD({name:""},e,n,"");{let i=n.name??"";return lD({name:i},n.parent,n.providers,i)}}static \u0275prov=O({token:t,providedIn:"any",factory:()=>pe(xD)});static __NG_ELEMENT_ID__=-1},ge=new T(""),nn=(()=>{class t{static __NG_ELEMENT_ID__=N$;static __NG_ENV_ID__=e=>e}return t})(),Cp=class extends nn{_lView;constructor(n){super(),this._lView=n}get destroyed(){return Cd(this._lView)}onDestroy(n){let e=this._lView;return ND(e,n),()=>DO(e,n)}};function N$(){return new Cp(Ne())}var Tn=class{_console=console;handleError(n){this._console.error("ERROR",n)}},hr=new T("",{providedIn:"root",factory:()=>{let t=u(Wt),n;return e=>{t.destroyed&&!n?setTimeout(()=>{throw e}):(n??=t.get(Tn),n.handleError(e))}}}),HO={provide:Qa,useValue:()=>void u(Tn),multi:!0},L$=new T("",{providedIn:"root",factory:()=>{let t=u(ge).defaultView;if(!t)return;let n=u(hr),e=o=>{n(o.reason),o.preventDefault()},i=o=>{o.error?n(o.error):n(new Error(o.message,{cause:o})),o.preventDefault()},r=()=>{t.addEventListener("unhandledrejection",e),t.addEventListener("error",i)};typeof Zone<"u"?Zone.root.run(r):r(),u(nn).onDestroy(()=>{t.removeEventListener("error",i),t.removeEventListener("unhandledrejection",e)})}});function ZD(){return zr([pO(()=>void u(L$))])}function is(t){return typeof t=="function"&&t[ln]!==void 0}function he(t,n){let[e,i,r]=Ow(t,n?.equal),o=e,a=o[ln];return o.set=i,o.update=r,o.asReadonly=Ab.bind(o),o}function Ab(){let t=this[ln];if(t.readonlyFn===void 0){let n=()=>this();n[ln]=t,t.readonlyFn=n}return t.readonlyFn}function XD(t){return is(t)&&typeof t.set=="function"}var wd=(()=>{class t{view;node;constructor(e,i){this.view=e,this.node=i}static __NG_ELEMENT_ID__=V$}return t})();function V$(){return new wd(Ne(),tn())}var Oo=class{},Fp=new T("",{providedIn:"root",factory:()=>!1});var JD=new T(""),eE=new T(""),ns=(()=>{class t{taskId=0;pendingTasks=new Set;destroyed=!1;pendingTask=new tt(!1);get hasPendingTasks(){return this.destroyed?!1:this.pendingTask.value}get hasPendingTasksObservable(){return this.destroyed?new Fe(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),e}has(e){return this.pendingTasks.has(e)}remove(e){this.pendingTasks.delete(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=O({token:t,providedIn:"root",factory:()=>new t})}return t})(),om=(()=>{class t{internalPendingTasks=u(ns);scheduler=u(Oo);errorHandler=u(hr);add(){let e=this.internalPendingTasks.add();return()=>{this.internalPendingTasks.has(e)&&(this.scheduler.notify(11),this.internalPendingTasks.remove(e))}}run(e){let i=this.add();e().catch(this.errorHandler).finally(i)}static \u0275prov=O({token:t,providedIn:"root",factory:()=>new t})}return t})();function Dd(...t){}var Np=(()=>{class t{static \u0275prov=O({token:t,providedIn:"root",factory:()=>new cD})}return t})(),cD=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,i=this.queues.get(e);i.has(n)&&(i.delete(n),n.dirty&&this.dirtyEffectCount--)}enqueue(n){let e=n.zone;this.queues.has(e)||this.queues.set(e,new Set);let i=this.queues.get(e);i.has(n)||i.add(n)}flush(){for(;this.dirtyEffectCount>0;){let n=!1;for(let[e,i]of this.queues)e===null?n||=this.flushQueue(i):n||=e.run(()=>this.flushQueue(i));n||(this.dirtyEffectCount=0)}}flushQueue(n){let e=!1;for(let i of n)i.dirty&&(this.dirtyEffectCount--,e=!0,i.run());return e}};function pm(t){return{toString:t}.toString()}var Ob="__parameters__";function $$(t){return function(...e){if(t){let i=t(...e);for(let r in i)this[r]=i[r]}}}function kR(t,n,e){return pm(()=>{let i=$$(n);function r(...o){if(this instanceof r)return i.apply(this,o),this;let a=new r(...o);return s.annotation=a,s;function s(l,c,d){let m=l.hasOwnProperty(Ob)?l[Ob]:Object.defineProperty(l,Ob,{value:[]})[Ob];for(;m.length<=d;)m.push(null);return(m[d]=m[d]||[]).push(a),l}}return r.prototype.ngMetadataName=t,r.annotationCls=r,r})}var ss=vD(kR("Optional"),8);var Gl=vD(kR("SkipSelf"),4);var Td=Function;function W$(t){return typeof t=="function"}var Ub=class{previousValue;currentValue;firstChange;constructor(n,e,i){this.previousValue=n,this.currentValue=e,this.firstChange=i}isFirstChange(){return this.firstChange}};function SR(t,n,e,i){n!==null?n.applyValueToInputSignal(n,i):t[e]=i}var Ae=(()=>{let t=()=>TR;return t.ngInherit=!0,t})();function TR(t){return t.type.prototype.ngOnChanges&&(t.setInput=q$),G$}function G$(){let t=AR(this),n=t?.current;if(n){let e=t.previous;if(e===fa)t.previous=n;else for(let i in n)e[i]=n[i];t.current=null,this.ngOnChanges(n)}}function q$(t,n,e,i,r){let o=this.declaredInputs[i],a=AR(t)||Y$(t,{previous:fa,current:null}),s=a.current||(a.current={}),l=a.previous,c=l[o];s[o]=new Ub(c&&c.currentValue,e,l===fa),SR(t,n,r,e)}var IR="__ngSimpleChanges__";function AR(t){return t[IR]||null}function Y$(t,n){return t[IR]=n}var zO=[];var oi=function(t,n=null,e){for(let i=0;i=i)break}else n[l]<0&&(t[bd]+=65536),(s>14>16&&(t[et]&3)===n&&(t[et]+=16384,UO(s,o)):UO(s,o)}var sm=-1,Md=class{factory;name;injectImpl;resolving=!1;canSeeViewProviders;multi;componentProviders;index;providerFactory;constructor(n,e,i,r){this.factory=n,this.name=r,this.canSeeViewProviders=e,this.injectImpl=i}};function Z$(t){return(t.flags&8)!==0}function X$(t){return(t.flags&16)!==0}function J$(t,n,e){let i=0;for(;in){a=o-1;break}}}for(;o>16}function Wb(t,n){let e=tW(t),i=n;for(;e>0;)i=i[_d],e--;return i}var mE=!0;function Gb(t){let n=mE;return mE=t,n}var iW=256,NR=iW-1,LR=5,nW=0,rs={};function rW(t,n,e){let i;typeof e=="string"?i=e.charCodeAt(0)||0:e.hasOwnProperty(fd)&&(i=e[fd]),i==null&&(i=e[fd]=nW++);let r=i&NR,o=1<>LR)]|=o}function qb(t,n){let e=VR(t,n);if(e!==-1)return e;let i=n[We];i.firstCreatePass&&(t.injectorIndex=n.length,iE(i.data,t),iE(n,null),iE(i.blueprint,null));let r=ZE(t,n),o=t.injectorIndex;if(FR(r)){let a=$b(r),s=Wb(r,n),l=s[We].data;for(let c=0;c<8;c++)n[o+c]=s[a+c]|l[a+c]}return n[o+8]=r,o}function iE(t,n){t.push(0,0,0,0,0,0,0,0,n)}function VR(t,n){return t.injectorIndex===-1||t.parent&&t.parent.injectorIndex===t.injectorIndex||n[t.injectorIndex+8]===null?-1:t.injectorIndex}function ZE(t,n){if(t.parent&&t.parent.injectorIndex!==-1)return t.parent.injectorIndex;let e=0,i=null,r=n;for(;r!==null;){if(i=UR(r),i===null)return sm;if(e++,r=r[_d],i.injectorIndex!==-1)return i.injectorIndex|e<<16}return sm}function hE(t,n,e){rW(t,n,e)}function oW(t,n){if(n==="class")return t.classes;if(n==="style")return t.styles;let e=t.attrs;if(e){let i=e.length,r=0;for(;r>20,m=i?s:s+d,f=r?s+d:c;for(let b=m;b=l&&v.type===e)return b}if(r){let b=a[l];if(b&&ba(b)&&b.type===e)return l}return null}function Bp(t,n,e,i,r){let o=t[e],a=n.data;if(o instanceof Md){let s=o;if(s.resolving){let b=oO(a[e]);throw _D(b)}let l=Gb(s.canSeeViewProviders);s.resolving=!0;let c=a[e].type||a[e],d,m=s.injectImpl?kr(s.injectImpl):null,f=YD(t,i,0);try{o=t[e]=s.factory(void 0,r,a,t,i),n.firstCreatePass&&e>=i.directiveStart&&Q$(e,a[e],n)}finally{m!==null&&kr(m),Gb(l),s.resolving=!1,QD()}}return o}function sW(t){if(typeof t=="string")return t.charCodeAt(0)||0;let n=t.hasOwnProperty(fd)?t[fd]:void 0;return typeof n=="number"?n>=0?n&NR:lW:n}function WO(t,n,e){let i=1<>LR)]&i)}function GO(t,n){return!(t&2)&&!(t&1&&n)}var Ed=class{_tNode;_lView;constructor(n,e){this._tNode=n,this._lView=e}get(n,e,i){return HR(this._tNode,this._lView,n,md(i),e)}};function lW(){return new Ed(tn(),Ne())}function fe(t){return pm(()=>{let n=t.prototype.constructor,e=n[yp]||pE(n),i=Object.prototype,r=Object.getPrototypeOf(t.prototype).constructor;for(;r&&r!==i;){let o=r[yp]||pE(r);if(o&&o!==e)return o;r=Object.getPrototypeOf(r)}return o=>new o})}function pE(t){return dD(t)?()=>{let n=pE(_n(t));return n&&n()}:Vl(t)}function cW(t,n,e,i,r){let o=t,a=n;for(;o!==null&&a!==null&&a[et]&2048&&!em(a);){let s=zR(o,a,e,i|2,rs);if(s!==rs)return s;let l=o.parent;if(!l){let c=a[SD];if(c){let d=c.get(e,rs,i);if(d!==rs)return d}l=UR(a),a=a[_d]}o=l}return r}function UR(t){let n=t[We],e=n.type;return e===2?n.declTNode:e===1?t[Sr]:null}function qp(t){return oW(tn(),t)}function dW(){return fm(tn(),Ne())}function fm(t,n){return new q(Vo(t,n))}var q=(()=>{class t{nativeElement;constructor(e){this.nativeElement=e}static __NG_ELEMENT_ID__=dW}return t})();function $R(t){return t instanceof q?t.nativeElement:t}function uW(){return this._results[Symbol.iterator]()}var pr=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 z}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 i=dO(n);(this._changesDetected=!cO(this._results,i,e))&&(this._results=i,this.length=i.length,this.last=i[this.length-1],this.first=i[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]=uW};function WR(t){return(t.flags&128)===128}var XE=(function(t){return t[t.OnPush=0]="OnPush",t[t.Default=1]="Default",t})(XE||{}),GR=new Map,mW=0;function hW(){return mW++}function pW(t){GR.set(t[Sp],t)}function fE(t){GR.delete(t[Sp])}var qO="__ngContext__";function cm(t,n){Ja(n)?(t[qO]=n[Sp],pW(n)):t[qO]=n}function qR(t){return QR(t[Xu])}function YR(t){return QR(t[No])}function QR(t){for(;t!==null&&!_a(t);)t=t[No];return t}var gE;function JE(t){gE=t}function eM(){if(gE!==void 0)return gE;if(typeof document<"u")return document;throw new ue(210,!1)}var ql=new T("",{providedIn:"root",factory:()=>fW}),fW="ng",sv=new T(""),Ks=new T("",{providedIn:"platform",factory:()=>"unknown"});var Yp=new T(""),gm=new T("",{providedIn:"root",factory:()=>eM().body?.querySelector("[ngCspNonce]")?.getAttribute("ngCspNonce")||null});var gW="h",_W="b";var KR="r";var ZR="di";var XR=!1,JR=new T("",{providedIn:"root",factory:()=>XR});var lv=new T("");var bW=(t,n,e,i)=>{};function vW(t,n,e,i){bW(t,n,e,i)}function cv(t){return(t.flags&32)===32}var yW=()=>null;function eP(t,n,e=!1){return yW(t,n,e)}function tP(t,n){let e=t.contentQueries;if(e!==null){let i=Xe(null);try{for(let r=0;rt,createScript:t=>t,createScriptURL:t=>t})}catch{}return Rb}function dv(t){return xW()?.createHTML(t)||t}var Pb;function iP(){if(Pb===void 0&&(Pb=null,Po.trustedTypes))try{Pb=Po.trustedTypes.createPolicy("angular#unsafe-bypass",{createHTML:t=>t,createScript:t=>t,createScriptURL:t=>t})}catch{}return Pb}function YO(t){return iP()?.createHTML(t)||t}function QO(t){return iP()?.createScriptURL(t)||t}var Qs=class{changingThisBreaksApplicationSecurity;constructor(n){this.changingThisBreaksApplicationSecurity=n}toString(){return`SafeValue must use [property]=binding: ${this.changingThisBreaksApplicationSecurity} (see ${pb})`}},bE=class extends Qs{getTypeName(){return"HTML"}},vE=class extends Qs{getTypeName(){return"Style"}},yE=class extends Qs{getTypeName(){return"Script"}},xE=class extends Qs{getTypeName(){return"URL"}},CE=class extends Qs{getTypeName(){return"ResourceURL"}};function Ur(t){return t instanceof Qs?t.changingThisBreaksApplicationSecurity:t}function ls(t,n){let e=nP(t);if(e!=null&&e!==n){if(e==="ResourceURL"&&n==="URL")return!0;throw new Error(`Required a safe ${n}, got a ${e} (see ${pb})`)}return e===n}function nP(t){return t instanceof Qs&&t.getTypeName()||null}function iM(t){return new bE(t)}function nM(t){return new vE(t)}function rM(t){return new yE(t)}function oM(t){return new xE(t)}function aM(t){return new CE(t)}function CW(t){let n=new DE(t);return wW()?new wE(n):n}var wE=class{inertDocumentHelper;constructor(n){this.inertDocumentHelper=n}getInertBodyElement(n){n=""+n;try{let e=new window.DOMParser().parseFromString(dv(n),"text/html").body;return e===null?this.inertDocumentHelper.getInertBodyElement(n):(e.firstChild?.remove(),e)}catch{return null}}},DE=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=dv(n),e}};function wW(){try{return!!new window.DOMParser().parseFromString(dv(""),"text/html")}catch{return!1}}var DW=/^(?!javascript:)(?:[a-z0-9+.-]+:|[^&:\/?#]*(?:[\/?#]|$))/i;function Qp(t){return t=String(t),t.match(DW)?t:"unsafe:"+t}function Zs(t){let n={};for(let e of t.split(","))n[e]=!0;return n}function Kp(...t){let n={};for(let e of t)for(let i in e)e.hasOwnProperty(i)&&(n[i]=!0);return n}var rP=Zs("area,br,col,hr,img,wbr"),oP=Zs("colgroup,dd,dt,li,p,tbody,td,tfoot,th,thead,tr"),aP=Zs("rp,rt"),EW=Kp(aP,oP),MW=Kp(oP,Zs("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")),kW=Kp(aP,Zs("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")),KO=Kp(rP,MW,kW,EW),sP=Zs("background,cite,href,itemtype,longdesc,poster,src,xlink:href"),SW=Zs("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"),TW=Zs("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"),IW=Kp(sP,SW,TW),AW=Zs("script,style,template"),EE=class{sanitizedSomething=!1;buf=[];sanitizeChildren(n){let e=n.firstChild,i=!0,r=[];for(;e;){if(e.nodeType===Node.ELEMENT_NODE?i=this.startElement(e):e.nodeType===Node.TEXT_NODE?this.chars(e.nodeValue):this.sanitizedSomething=!0,i&&e.firstChild){r.push(e),e=PW(e);continue}for(;e;){e.nodeType===Node.ELEMENT_NODE&&this.endElement(e);let o=RW(e);if(o){e=o;break}e=r.pop()}}return this.buf.join("")}startElement(n){let e=ZO(n).toLowerCase();if(!KO.hasOwnProperty(e))return this.sanitizedSomething=!0,!AW.hasOwnProperty(e);this.buf.push("<"),this.buf.push(e);let i=n.attributes;for(let r=0;r"),!0}endElement(n){let e=ZO(n).toLowerCase();KO.hasOwnProperty(e)&&!rP.hasOwnProperty(e)&&(this.buf.push(""))}chars(n){this.buf.push(XO(n))}};function OW(t,n){return(t.compareDocumentPosition(n)&Node.DOCUMENT_POSITION_CONTAINED_BY)!==Node.DOCUMENT_POSITION_CONTAINED_BY}function RW(t){let n=t.nextSibling;if(n&&t!==n.previousSibling)throw lP(n);return n}function PW(t){let n=t.firstChild;if(n&&OW(t,n))throw lP(n);return n}function ZO(t){let n=t.nodeName;return typeof n=="string"?n:"FORM"}function lP(t){return new Error(`Failed to sanitize html because the element is clobbered: ${t.outerHTML}`)}var FW=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,NW=/([^\#-~ |!])/g;function XO(t){return t.replace(/&/g,"&").replace(FW,function(n){let e=n.charCodeAt(0),i=n.charCodeAt(1);return"&#"+((e-55296)*1024+(i-56320)+65536)+";"}).replace(NW,function(n){return"&#"+n.charCodeAt(0)+";"}).replace(//g,">")}var Fb;function uv(t,n){let e=null;try{Fb=Fb||CW(t);let i=n?String(n):"";e=Fb.getInertBodyElement(i);let r=5,o=i;do{if(r===0)throw new Error("Failed to sanitize html because the input is unstable");r--,i=o,o=e.innerHTML,e=Fb.getInertBodyElement(i)}while(i!==o);let s=new EE().sanitizeChildren(JO(e)||e);return dv(s)}finally{if(e){let i=JO(e)||e;for(;i.firstChild;)i.firstChild.remove()}}}function JO(t){return"content"in t&&LW(t)?t.content:null}function LW(t){return t.nodeType===Node.ELEMENT_NODE&&t.nodeName==="TEMPLATE"}var VW=/^>|^->||--!>|)/g,jW="\u200B$1\u200B";function HW(t){return t.replace(VW,n=>n.replace(BW,jW))}function zW(t,n){return t.createText(n)}function UW(t,n,e){t.setValue(n,e)}function $W(t,n){return t.createComment(HW(n))}function cP(t,n,e){return t.createElement(n,e)}function Yb(t,n,e,i,r){t.insertBefore(n,e,i,r)}function dP(t,n,e){t.appendChild(n,e)}function eR(t,n,e,i,r){i!==null?Yb(t,n,e,i,r):dP(t,n,e)}function uP(t,n,e,i){t.removeChild(null,n,e,i)}function WW(t,n,e){t.setAttribute(n,"style",e)}function GW(t,n,e){e===""?t.removeAttribute(n,"class"):t.setAttribute(n,"class",e)}function mP(t,n,e){let{mergedAttrs:i,classes:r,styles:o}=e;i!==null&&J$(t,n,i),r!==null&&GW(t,n,r),o!==null&&WW(t,n,o)}var An=(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})(An||{});function Zp(t){let n=lM();return n?YO(n.sanitize(An.HTML,t)||""):ls(t,"HTML")?YO(Ur(t)):uv(eM(),Fo(t))}function $r(t){let n=lM();return n?n.sanitize(An.URL,t)||"":ls(t,"URL")?Ur(t):Qp(Fo(t))}function hP(t){let n=lM();if(n)return QO(n.sanitize(An.RESOURCE_URL,t)||"");if(ls(t,"ResourceURL"))return QO(Ur(t));throw new ue(904,!1)}var qW=new Set(["embed","frame","iframe","media","script"]),YW=new Set(["base","link","script"]);function QW(t,n){return n==="src"&&qW.has(t)||n==="href"&&YW.has(t)||n==="xlink:href"&&t==="script"?hP:$r}function sM(t,n,e){return QW(n,e)(t)}function lM(){let t=Ne();return t&&t[Za].sanitizer}function pP(t){return t instanceof Function?t():t}function KW(t,n,e){let i=t.length;for(;;){let r=t.indexOf(n,e);if(r===-1)return r;if(r===0||t.charCodeAt(r-1)<=32){let o=n.length;if(r+o===i||t.charCodeAt(r+o)<=32)return r}e=r+1}}var fP="ng-template";function ZW(t,n,e,i){let r=0;if(i){for(;r-1){let o;for(;++ro?m="":m=r[d+1].toLowerCase(),i&2&&c!==m){if(ya(i))return!1;a=!0}}}}return ya(i)||a}function ya(t){return(t&1)===0}function e7(t,n,e,i){if(n===null)return-1;let r=0;if(i||!e){let o=!1;for(;r-1)for(e++;e0?'="'+s+'"':"")+"]"}else i&8?r+="."+a:i&4&&(r+=" "+a);else r!==""&&!ya(a)&&(n+=tR(o,r),r=""),i=a,o=o||!ya(i);e++}return r!==""&&(n+=tR(o,r)),n}function a7(t){return t.map(o7).join(",")}function s7(t){let n=[],e=[],i=1,r=2;for(;inull),a=i;if(n&&typeof n=="object"){let l=n;r=l.next?.bind(l),o=l.error?.bind(l),a=l.complete?.bind(l)}this.__isAsync&&(o=this.wrapInTimeout(o),r&&(r=this.wrapInTimeout(r)),a&&(a=this.wrapInTimeout(a)));let s=super.subscribe({next:r,error:o,complete:a});return n instanceof ke&&n.add(s),s}wrapInTimeout(n){return e=>{let i=this.pendingTasks?.add();setTimeout(()=>{try{n(e)}finally{i!==void 0&&this.pendingTasks?.remove(i)}})}}},U=kE;function xP(t){let n,e;function i(){t=Dd;try{e!==void 0&&typeof cancelAnimationFrame=="function"&&cancelAnimationFrame(e),n!==void 0&&clearTimeout(n)}catch{}}return n=setTimeout(()=>{t(),i()}),typeof requestAnimationFrame=="function"&&(e=requestAnimationFrame(()=>{t(),i()})),()=>i()}function nR(t){return queueMicrotask(()=>t()),()=>{t=Dd}}var pM="isAngularZone",Qb=pM+"_ID",m7=0,ae=class t{hasPendingMacrotasks=!1;hasPendingMicrotasks=!1;isStable=!0;onUnstable=new U(!1);onMicrotaskEmpty=new U(!1);onStable=new U(!1);onError=new U(!1);constructor(n){let{enableLongStackTrace:e=!1,shouldCoalesceEventChangeDetection:i=!1,shouldCoalesceRunChangeDetection:r=!1,scheduleInRootZone:o=yP}=n;if(typeof Zone>"u")throw new ue(908,!1);Zone.assertZonePatched();let a=this;a._nesting=0,a._outer=a._inner=Zone.current,Zone.TaskTrackingZoneSpec&&(a._inner=a._inner.fork(new Zone.TaskTrackingZoneSpec)),e&&Zone.longStackTraceZoneSpec&&(a._inner=a._inner.fork(Zone.longStackTraceZoneSpec)),a.shouldCoalesceEventChangeDetection=!r&&i,a.shouldCoalesceRunChangeDetection=r,a.callbackScheduled=!1,a.scheduleInRootZone=o,f7(a)}static isInAngularZone(){return typeof Zone<"u"&&Zone.current.get(pM)===!0}static assertInAngularZone(){if(!t.isInAngularZone())throw new ue(909,!1)}static assertNotInAngularZone(){if(t.isInAngularZone())throw new ue(909,!1)}run(n,e,i){return this._inner.run(n,e,i)}runTask(n,e,i,r){let o=this._inner,a=o.scheduleEventTask("NgZoneEvent: "+r,n,h7,Dd,Dd);try{return o.runTask(a,e,i)}finally{o.cancelTask(a)}}runGuarded(n,e,i){return this._inner.runGuarded(n,e,i)}runOutsideAngular(n){return this._outer.run(n)}},h7={};function fM(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 p7(t){if(t.isCheckStableRunning||t.callbackScheduled)return;t.callbackScheduled=!0;function n(){xP(()=>{t.callbackScheduled=!1,SE(t),t.isCheckStableRunning=!0,fM(t),t.isCheckStableRunning=!1})}t.scheduleInRootZone?Zone.root.run(()=>{n()}):t._outer.run(()=>{n()}),SE(t)}function f7(t){let n=()=>{p7(t)},e=m7++;t._inner=t._inner.fork({name:"angular",properties:{[pM]:!0,[Qb]:e,[Qb+e]:!0},onInvokeTask:(i,r,o,a,s,l)=>{if(g7(l))return i.invokeTask(o,a,s,l);try{return rR(t),i.invokeTask(o,a,s,l)}finally{(t.shouldCoalesceEventChangeDetection&&a.type==="eventTask"||t.shouldCoalesceRunChangeDetection)&&n(),oR(t)}},onInvoke:(i,r,o,a,s,l,c)=>{try{return rR(t),i.invoke(o,a,s,l,c)}finally{t.shouldCoalesceRunChangeDetection&&!t.callbackScheduled&&!_7(l)&&n(),oR(t)}},onHasTask:(i,r,o,a)=>{i.hasTask(o,a),r===o&&(a.change=="microTask"?(t._hasPendingMicrotasks=a.microTask,SE(t),fM(t)):a.change=="macroTask"&&(t.hasPendingMacrotasks=a.macroTask))},onHandleError:(i,r,o,a)=>(i.handleError(o,a),t.runOutsideAngular(()=>t.onError.emit(a)),!1)})}function SE(t){t._hasPendingMicrotasks||(t.shouldCoalesceEventChangeDetection||t.shouldCoalesceRunChangeDetection)&&t.callbackScheduled===!0?t.hasPendingMicrotasks=!0:t.hasPendingMicrotasks=!1}function rR(t){t._nesting++,t.isStable&&(t.isStable=!1,t.onUnstable.emit(null))}function oR(t){t._nesting--,fM(t)}var jp=class{hasPendingMicrotasks=!1;hasPendingMacrotasks=!1;isStable=!0;onUnstable=new U;onMicrotaskEmpty=new U;onStable=new U;onError=new U;run(n,e,i){return n.apply(e,i)}runGuarded(n,e,i){return n.apply(e,i)}runOutsideAngular(n){return n()}runTask(n,e,i,r){return n.apply(e,i)}};function g7(t){return CP(t,"__ignore_ng_zone__")}function _7(t){return CP(t,"__scheduler_tick__")}function CP(t,n){return!Array.isArray(t)||t.length!==1?!1:t[0]?.data?.[n]===!0}var pv=(()=>{class t{impl=null;execute(){this.impl?.execute()}static \u0275prov=O({token:t,providedIn:"root",factory:()=>new t})}return t})(),gM=[0,1,2,3],_M=(()=>{class t{ngZone=u(ae);scheduler=u(Oo);errorHandler=u(Tn,{optional:!0});sequences=new Set;deferredRegistrations=new Set;executing=!1;constructor(){u(Yl,{optional:!0})}execute(){let e=this.sequences.size>0;e&&oi(16),this.executing=!0;for(let i of gM)for(let r of this.sequences)if(!(r.erroredOrDestroyed||!r.hooks[i]))try{r.pipelinedValue=this.ngZone.runOutsideAngular(()=>this.maybeTrace(()=>{let o=r.hooks[i];return o(r.pipelinedValue)},r.snapshot))}catch(o){r.erroredOrDestroyed=!0,this.errorHandler?.handleError(o)}this.executing=!1;for(let i of this.sequences)i.afterRun(),i.once&&(this.sequences.delete(i),i.destroy());for(let i of this.deferredRegistrations)this.sequences.add(i);this.deferredRegistrations.size>0&&this.scheduler.notify(7),this.deferredRegistrations.clear(),e&&oi(17)}register(e){let{view:i}=e;i!==void 0?((i[vd]??=[]).push(e),zl(i),i[et]|=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,i){return i?i.run(hv.AFTER_NEXT_RENDER,e):e()}static \u0275prov=O({token:t,providedIn:"root",factory:()=>new t})}return t})(),Hp=class{impl;hooks;view;once;snapshot;erroredOrDestroyed=!1;pipelinedValue=void 0;unregisterOnDestroy;constructor(n,e,i,r,o,a=null){this.impl=n,this.hooks=e,this.view=i,this.once=r,this.snapshot=a,this.unregisterOnDestroy=o?.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?.[vd];n&&(this.view[vd]=n.filter(e=>e!==this))}};function pt(t,n){let e=n?.injector??u(de);return cs("NgAfterNextRender"),v7(t,e,n,!0)}function b7(t){return t instanceof Function?[void 0,void 0,t,void 0]:[t.earlyRead,t.write,t.mixedReadWrite,t.read]}function v7(t,n,e,i){let r=n.get(pv);r.impl??=n.get(_M);let o=n.get(Yl,null,{optional:!0}),a=e?.manualCleanup!==!0?n.get(nn):null,s=n.get(wd,null,{optional:!0}),l=new Hp(r.impl,b7(t),s?.view,i,a,o?.snapshot(null));return r.impl.register(l),l}var wP=new T("",{providedIn:"root",factory:()=>({queue:new Set,isScheduled:!1,scheduler:null})});function DP(t,n,e){let i=t.get(wP);if(Array.isArray(n))for(let r of n)i.queue.add(r),e?.detachedLeaveAnimationFns?.push(r);else i.queue.add(n),e?.detachedLeaveAnimationFns?.push(n);i.scheduler&&i.scheduler(t)}function y7(t,n){let e=t.get(wP);if(n.detachedLeaveAnimationFns){for(let i of n.detachedLeaveAnimationFns)e.queue.delete(i);n.detachedLeaveAnimationFns=void 0}}function x7(t,n){for(let[e,i]of n)DP(t,i.animateFns)}function aR(t,n,e,i){let r=t?.[yd]?.enter;n!==null&&r&&r.has(e.index)&&x7(i,r)}function am(t,n,e,i,r,o,a,s){if(r!=null){let l,c=!1;_a(r)?l=r:Ja(r)&&(c=!0,r=r[ga]);let d=Lo(r);t===0&&i!==null?(aR(s,i,o,e),a==null?dP(n,i,d):Yb(n,i,d,a||null,!0)):t===1&&i!==null?(aR(s,i,o,e),Yb(n,i,d,a||null,!0)):t===2?sR(s,o,e,m=>{uP(n,d,c,m)}):t===3&&sR(s,o,e,()=>{n.destroyNode(d)}),l!=null&&O7(n,t,e,l,o,i,a)}}function C7(t,n){EP(t,n),n[ga]=null,n[Sr]=null}function w7(t,n,e,i,r,o){i[ga]=r,i[Sr]=n,gv(t,i,e,1,r,o)}function EP(t,n){n[Za].changeDetectionScheduler?.notify(9),gv(t,n,n[ri],2,null,null)}function D7(t){let n=t[Xu];if(!n)return nE(t[We],t);for(;n;){let e=null;if(Ja(n))e=n[Xu];else{let i=n[Yi];i&&(e=i)}if(!e){for(;n&&!n[No]&&n!==t;)Ja(n)&&nE(n[We],n),n=n[bn];n===null&&(n=t),Ja(n)&&nE(n[We],n),e=n&&n[No]}n=e}}function bM(t,n){let e=t[xd],i=e.indexOf(n);e.splice(i,1)}function fv(t,n){if(Cd(n))return;let e=n[ri];e.destroyNode&&gv(t,n,e,3,null,null),D7(n)}function nE(t,n){if(Cd(n))return;let e=Xe(null);try{n[et]&=-129,n[et]|=256,n[ho]&&Tl(n[ho]),k7(t,n),M7(t,n),n[We].type===1&&n[ri].destroy();let i=n[jl];if(i!==null&&_a(n[bn])){i!==n[bn]&&bM(i,n);let r=n[Xa];r!==null&&r.detachView(t)}fE(n)}finally{Xe(e)}}function sR(t,n,e,i){let r=t?.[yd];if(r==null||r.leave==null||!r.leave.has(n.index))return i(!1);t&&kd.add(t),DP(e,()=>{if(r.leave&&r.leave.has(n.index)){let a=r.leave.get(n.index),s=[];if(a){for(let l=0;l{t[yd].running=void 0,kd.delete(t),n(!0)});return}n(!1)}function M7(t,n){let e=t.cleanup,i=n[Zu];if(e!==null)for(let a=0;a=0?i[s]():i[-s].unsubscribe(),a+=2}else{let s=i[e[a+1]];e[a].call(s)}i!==null&&(n[Zu]=null);let r=n[Us];if(r!==null){n[Us]=null;for(let a=0;ami&&vP(t,n,mi,!1),oi(a?2:0,r,e),e(i,r)}finally{Ul(o),oi(a?3:1,r,e)}}function _v(t,n,e){V7(t,n,e),(e.flags&64)===64&&B7(t,n,e)}function _m(t,n,e=Vo){let i=n.localNames;if(i!==null){let r=n.index+1;for(let o=0;onull;function L7(t){return t==="class"?"className":t==="for"?"htmlFor":t==="formaction"?"formAction":t==="innerHtml"?"innerHTML":t==="readonly"?"readOnly":t==="tabindex"?"tabIndex":t}function AP(t,n,e,i,r,o){let a=n[We];if(yv(t,a,n,e,i)){qs(t)&&RP(n,t.index);return}t.type&3&&(e=L7(e)),OP(t,n,e,i,r,o)}function OP(t,n,e,i,r,o){if(t.type&3){let a=Vo(t,n);i=o!=null?o(i,t.value||"",e):i,r.setProperty(a,e,i)}else t.type&12}function RP(t,n){let e=Bo(n,t);e[et]&16||(e[et]|=64)}function V7(t,n,e){let i=e.directiveStart,r=e.directiveEnd;qs(e)&&d7(n,e,t.data[i+e.componentOffset]),t.firstCreatePass||qb(e,n);let o=e.initialInputs;for(let a=i;a{zl(t.lView)},consumerOnSignalRead(){this.lView[ho]=this}});function Z7(t){let n=t[ho]??Object.create(X7);return n.lView=t,n}var X7=De(M({},td),{consumerIsAlwaysLive:!0,kind:"template",consumerMarkedDirty:t=>{let n=Bl(t.lView);for(;n&&!VP(n[We]);)n=Bl(n);n&&FD(n)},consumerOnSignalRead(){this.lView[ho]=this}});function VP(t){return t.type!==2}function BP(t){if(t[Gs]===null)return;let n=!0;for(;n;){let e=!1;for(let i of t[Gs])i.dirty&&(e=!0,i.zone===null||Zone.current===i.zone?i.run():i.zone.run(()=>i.run()));n=e&&!!(t[et]&8192)}}var J7=100;function jP(t,n=0){let i=t[Za].rendererFactory,r=!1;r||i.begin?.();try{eG(t,n)}finally{r||i.end?.()}}function eG(t,n){let e=GD();try{nm(!0),IE(t,n);let i=0;for(;Ap(t);){if(i===J7)throw new ue(103,!1);i++,IE(t,1)}}finally{nm(e)}}function tG(t,n,e,i){if(Cd(n))return;let r=n[et],o=!1,a=!1;Sb(n);let s=!0,l=null,c=null;o||(VP(t)?(c=q7(n),l=Sl(c)):A_()===null?(s=!1,c=Z7(n),l=Sl(c)):n[ho]&&(Tl(n[ho]),n[ho]=null));try{PD(n),IO(t.bindingStartIndex),e!==null&&IP(t,n,e,2,i);let d=(r&3)===3;if(!o)if(d){let b=t.preOrderCheckHooks;b!==null&&Vb(n,b,null)}else{let b=t.preOrderHooks;b!==null&&Bb(n,b,0,null),tE(n,0)}if(a||iG(n),BP(n),HP(n,0),t.contentQueries!==null&&tP(t,n),!o)if(d){let b=t.contentCheckHooks;b!==null&&Vb(n,b)}else{let b=t.contentHooks;b!==null&&Bb(n,b,1),tE(n,1)}rG(t,n);let m=t.components;m!==null&&UP(n,m,0);let f=t.viewQuery;if(f!==null&&_E(2,f,i),!o)if(d){let b=t.viewCheckHooks;b!==null&&Vb(n,b)}else{let b=t.viewHooks;b!==null&&Bb(n,b,2),tE(n,2)}if(t.firstUpdatePass===!0&&(t.firstUpdatePass=!1),n[Cb]){for(let b of n[Cb])b();n[Cb]=null}o||(NP(n),n[et]&=-73)}catch(d){throw o||zl(n),d}finally{c!==null&&(id(c,l),s&&Q7(c)),Tb()}}function HP(t,n){for(let e=qR(t);e!==null;e=YR(e))for(let i=Yi;i0&&(t[e-1][No]=i[No]);let o=Ep(t,Yi+n);C7(i[We],i);let a=o[Xa];a!==null&&a.detachView(o[We]),i[bn]=null,i[No]=null,i[et]&=-129}return i}function oG(t,n,e,i){let r=Yi+i,o=e.length;i>0&&(e[r-1][No]=n),i-1&&(Up(n,i),Ep(e,i))}this._attachedToViewContainer=!1}fv(this._lView[We],this._lView)}onDestroy(n){ND(this._lView,n)}markForCheck(){wM(this._cdRefInjectingView||this._lView,4)}detach(){this._lView[et]&=-129}reattach(){Db(this._lView),this._lView[et]|=128}detectChanges(){this._lView[et]|=1024,jP(this._lView)}checkNoChanges(){}attachToViewContainerRef(){if(this._appRef)throw new ue(902,!1);this._attachedToViewContainer=!0}detachFromAppRef(){this._appRef=null;let n=em(this._lView),e=this._lView[jl];e!==null&&!n&&bM(e,this._lView),EP(this._lView[We],this._lView)}attachToAppRef(n){if(this._attachedToViewContainer)throw new ue(902,!1);this._appRef=n;let e=em(this._lView),i=this._lView[jl];i!==null&&!e&&qP(i,this._lView),Db(this._lView)}};var te=(()=>{class t{_declarationLView;_declarationTContainer;elementRef;static __NG_ELEMENT_ID__=aG;constructor(e,i,r){this._declarationLView=e,this._declarationTContainer=i,this.elementRef=r}get ssrId(){return this._declarationTContainer.tView?.ssrId||null}createEmbeddedView(e,i){return this.createEmbeddedViewImpl(e,i)}createEmbeddedViewImpl(e,i,r){let o=Xp(this._declarationLView,this._declarationTContainer,e,{embeddedViewInjector:i,dehydratedView:r});return new $l(o)}}return t})();function aG(){return xv(tn(),Ne())}function xv(t,n){return t.type&4?new te(n,t,fm(t,n)):null}function bm(t,n,e,i,r){let o=t.data[n];if(o===null)o=sG(t,n,e,i,r),AO()&&(o.flags|=32);else if(o.type&64){o.type=e,o.value=i,o.attrs=r;let a=SO();o.injectorIndex=a===null?-1:a.injectorIndex}return im(o,!0),o}function sG(t,n,e,i,r){let o=UD(),a=$D(),s=a?o:o&&o.parent,l=t.data[n]=cG(t,s,e,n,i,r);return lG(t,l,o,a),l}function lG(t,n,e,i){t.firstChild===null&&(t.firstChild=n),e!==null&&(i?e.child==null&&n.parent!==null&&(e.child=n):e.next===null&&(e.next=n,n.prev=e))}function cG(t,n,e,i,r,o){let a=n?n.injectorIndex:-1,s=0;return jD()&&(s|=128),{type:e,index:i,insertBeforeIndex:null,injectorIndex:a,directiveStart:-1,directiveEnd:-1,directiveStylingLast:-1,componentOffset:-1,propertyBindings:null,flags:s,providerIndexes:0,value:r,attrs:o,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}}var pIe=new RegExp(`^(\\d+)*(${_W}|${gW})*(.*)`);function dG(t){let n=t[TD]??[],i=t[bn][ri],r=[];for(let o of n)o.data[ZR]!==void 0?r.push(o):uG(o,i);t[TD]=r}function uG(t,n){let e=0,i=t.firstChild;if(i){let r=t.data[KR];for(;enull,hG=()=>null;function Kb(t,n){return mG(t,n)}function YP(t,n,e){return hG(t,n,e)}var Id=class{},Cv=class{},AE=class{resolveComponentFactory(n){throw new ue(917,!1)}},ef=class{static NULL=new AE},cn=class{},je=(()=>{class t{destroyNode=null;static __NG_ELEMENT_ID__=()=>pG()}return t})();function pG(){let t=Ne(),n=tn(),e=Bo(n.index,t);return(Ja(e)?e:t)[ri]}var QP=(()=>{class t{static \u0275prov=O({token:t,providedIn:"root",factory:()=>null})}return t})();var Hb={},OE=class{injector;parentInjector;constructor(n,e){this.injector=n,this.parentInjector=e}get(n,e,i){let r=this.injector.get(n,Hb,i);return r!==Hb||e===Hb?r:this.parentInjector.get(n,e,i)}};function Zb(t,n,e){let i=e?t.styles:null,r=e?t.classes:null,o=0;if(n!==null)for(let a=0;a0&&(e.directiveToIndex=new Map);for(let f=0;f0;){let e=t[--n];if(typeof e=="number"&&e<0)return e}return 0}function CG(t,n,e){if(e){if(n.exportAs)for(let i=0;ii(Lo(w[t.index])):t.index;nF(v,n,e,o,s,b,!1)}}return c}function MG(t){return t.startsWith("animation")||t.startsWith("transition")}function kG(t,n,e,i){let r=t.cleanup;if(r!=null)for(let o=0;ol?s[l]:null}typeof a=="string"&&(o+=2)}return null}function nF(t,n,e,i,r,o,a){let s=n.firstCreatePass?VD(n):null,l=LD(e),c=l.length;l.push(r,o),s&&s.push(i,t,c,(c+1)*(a?-1:1))}function hR(t,n,e,i,r,o){let a=n[e],s=n[We],c=s.data[e].outputs[i],m=a[c].subscribe(o);nF(t.index,s,n,r,o,m,!0)}var RE=Symbol("BINDING");var Xb=class extends ef{ngModule;constructor(n){super(),this.ngModule=n}resolveComponentFactory(n){let e=Ka(n);return new Wl(e,this.ngModule)}};function SG(t){return Object.keys(t).map(n=>{let[e,i,r]=t[n],o={propName:e,templateName:n,isSignal:(i&mv.SignalBased)!==0};return r&&(o.transform=r),o})}function TG(t){return Object.keys(t).map(n=>({propName:t[n],templateName:n}))}function IG(t,n,e){let i=n instanceof Wt?n:n?.injector;return i&&t.getStandaloneInjector!==null&&(i=t.getStandaloneInjector(i)||i),i?new OE(e,i):e}function AG(t){let n=t.get(cn,null);if(n===null)throw new ue(407,!1);let e=t.get(QP,null),i=t.get(Oo,null);return{rendererFactory:n,sanitizer:e,changeDetectionScheduler:i,ngReflect:!1}}function OG(t,n){let e=rF(t);return cP(n,e,e==="svg"?AD:e==="math"?yO:null)}function rF(t){return(t.selectors[0][0]||"div").toLowerCase()}var Wl=class extends Cv{componentDef;ngModule;selector;componentType;ngContentSelectors;isBoundToModule;cachedInputs=null;cachedOutputs=null;get inputs(){return this.cachedInputs??=SG(this.componentDef.inputs),this.cachedInputs}get outputs(){return this.cachedOutputs??=TG(this.componentDef.outputs),this.cachedOutputs}constructor(n,e){super(),this.componentDef=n,this.ngModule=e,this.componentType=n.type,this.selector=a7(n.selectors),this.ngContentSelectors=n.ngContentSelectors??[],this.isBoundToModule=!!e}create(n,e,i,r,o,a){oi(22);let s=Xe(null);try{let l=this.componentDef,c=RG(i,l,a,o),d=IG(l,r||this.ngModule,n),m=AG(d),f=m.rendererFactory.createRenderer(null,l),b=i?P7(f,i,l.encapsulation,d):OG(l,f),v=a?.some(pR)||o?.some(D=>typeof D!="function"&&D.bindings.some(pR)),w=uM(null,c,null,512|_P(l),null,null,m,f,d,null,eP(b,d,!0));w[mi]=b,Sb(w);let x=null;try{let D=DM(mi,w,2,"#host",()=>c.directiveRegistry,!0,0);mP(f,b,D),cm(b,w),_v(c,w,D),tM(c,D,w),EM(c,D),e!==void 0&&FG(D,this.ngContentSelectors,e),x=Bo(D.index,w),w[qi]=x[qi],CM(c,w,null)}catch(D){throw x!==null&&fE(x),fE(w),D}finally{oi(23),Tb()}return new Jb(this.componentType,w,!!v)}finally{Xe(s)}}};function RG(t,n,e,i){let r=t?["ng-version","20.3.16"]:s7(n.selectors[0]),o=null,a=null,s=0;if(e)for(let d of e)s+=d[RE].requiredVars,d.create&&(d.targetIdx=0,(o??=[]).push(d)),d.update&&(d.targetIdx=0,(a??=[]).push(d));if(i)for(let d=0;d{if(e&1&&t)for(let i of t)i.create();if(e&2&&n)for(let i of n)i.update()}}function pR(t){let n=t[RE].kind;return n==="input"||n==="twoWay"}var Jb=class extends Id{_rootLView;_hasInputBindings;instance;hostView;changeDetectorRef;componentType;location;previousInputValues=null;_tNode;constructor(n,e,i){super(),this._rootLView=e,this._hasInputBindings=i,this._tNode=Ip(e[We],mi),this.location=fm(this._tNode,e),this.instance=Bo(this._tNode.index,e)[qi],this.hostView=this.changeDetectorRef=new $l(e,void 0),this.componentType=n}setInput(n,e){this._hasInputBindings;let i=this._tNode;if(this.previousInputValues??=new Map,this.previousInputValues.has(n)&&Object.is(this.previousInputValues.get(n),e))return;let r=this._rootLView,o=yv(i,r[We],r,n,e);this.previousInputValues.set(n,e);let a=Bo(i.index,r);wM(a,1)}get injector(){return new Ed(this._tNode,this._rootLView)}destroy(){this.hostView.destroy()}onDestroy(n){this.hostView.onDestroy(n)}};function FG(t,n,e){let i=t.projection=[];for(let r=0;r{class t{static __NG_ELEMENT_ID__=NG}return t})();function NG(){let t=tn();return aF(t,Ne())}var LG=nt,oF=class extends LG{_lContainer;_hostTNode;_hostLView;constructor(n,e,i){super(),this._lContainer=n,this._hostTNode=e,this._hostLView=i}get element(){return fm(this._hostTNode,this._hostLView)}get injector(){return new Ed(this._hostTNode,this._hostLView)}get parentInjector(){let n=ZE(this._hostTNode,this._hostLView);if(FR(n)){let e=Wb(n,this._hostLView),i=$b(n),r=e[We].data[i+8];return new Ed(r,e)}else return new Ed(null,this._hostLView)}clear(){for(;this.length>0;)this.remove(this.length-1)}get(n){let e=fR(this._lContainer);return e!==null&&e[n]||null}get length(){return this._lContainer.length-Yi}createEmbeddedView(n,e,i){let r,o;typeof i=="number"?r=i:i!=null&&(r=i.index,o=i.injector);let a=Kb(this._lContainer,n.ssrId),s=n.createEmbeddedViewImpl(e||{},o,a);return this.insertImpl(s,r,dm(this._hostTNode,a)),s}createComponent(n,e,i,r,o,a,s){let l=n&&!W$(n),c;if(l)c=e;else{let x=e||{};c=x.index,i=x.injector,r=x.projectableNodes,o=x.environmentInjector||x.ngModuleRef,a=x.directives,s=x.bindings}let d=l?n:new Wl(Ka(n)),m=i||this.parentInjector;if(!o&&d.ngModule==null){let D=(l?m:this.parentInjector).get(Wt,null);D&&(o=D)}let f=Ka(d.componentType??{}),b=Kb(this._lContainer,f?.id??null),v=b?.firstChild??null,w=d.create(m,r,v,o,a,s);return this.insertImpl(w.hostView,c,dm(this._hostTNode,b)),w}insert(n,e){return this.insertImpl(n,e,!0)}insertImpl(n,e,i){let r=n._lView;if(CO(r)){let s=this.indexOf(n);if(s!==-1)this.detach(s);else{let l=r[bn],c=new oF(l,l[Sr],l[bn]);c.detach(c.indexOf(n))}}let o=this._adjustIndex(e),a=this._lContainer;return Jp(a,r,o,i),n.attachToViewContainerRef(),yD(rE(a),o,n),n}move(n,e){return this.insert(n,e)}indexOf(n){let e=fR(this._lContainer);return e!==null?e.indexOf(n):-1}remove(n){let e=this._adjustIndex(n,-1),i=Up(this._lContainer,e);i&&(Ep(rE(this._lContainer),e),fv(i[We],i))}detach(n){let e=this._adjustIndex(n,-1),i=Up(this._lContainer,e);return i&&Ep(rE(this._lContainer),e)!=null?new $l(i):null}_adjustIndex(n,e=0){return n??this.length+e}};function fR(t){return t[Tp]}function rE(t){return t[Tp]||(t[Tp]=[])}function aF(t,n){let e,i=n[t.index];return _a(i)?e=i:(e=$P(i,n,null,t),n[t.index]=e,mM(n,e)),BG(e,n,t,i),new oF(e,t,n)}function VG(t,n){let e=t[ri],i=e.createComment(""),r=Vo(n,t),o=e.parentNode(r);return Yb(e,o,i,e.nextSibling(r),!1),i}var BG=zG,jG=()=>!1;function HG(t,n,e){return jG(t,n,e)}function zG(t,n,e,i){if(t[Hl])return;let r;e.type&8?r=Lo(i):r=VG(n,e),t[Hl]=r}var PE=class t{queryList;matches=null;constructor(n){this.queryList=n}clone(){return new t(this.queryList)}setDirty(){this.queryList.setDirty()}},FE=class t{queries;constructor(n=[]){this.queries=n}createEmbeddedView(n){let e=n.queries;if(e!==null){let i=n.contentQueries!==null?n.contentQueries[0]:e.length,r=[];for(let o=0;o0)i.push(a[s/2]);else{let c=o[s+1],d=n[-l];for(let m=Yi;mn.trim())}function uF(t,n,e){t.queries===null&&(t.queries=new NE),t.queries.track(new LE(n,e))}function YG(t,n){let e=t.contentQueries||(t.contentQueries=[]),i=e.length?e[e.length-1]:-1;n!==i&&e.push(t.queries.length-1,n)}function SM(t,n){return t.queries.getByIndex(n)}function mF(t,n){let e=t[We],i=SM(e,n);return i.crossesNgTemplate?VE(e,t,n,[]):sF(e,t,i,n)}function TM(t,n,e){let i,r=pp(()=>{i._dirtyCounter();let o=QG(i,t);if(n&&o===void 0)throw new ue(-951,!1);return o});return i=r[ln],i._dirtyCounter=he(0),i._flatValue=void 0,r}function IM(t){return TM(!0,!1,t)}function AM(t){return TM(!0,!0,t)}function hF(t){return TM(!1,!1,t)}function pF(t,n){let e=t[ln];e._lView=Ne(),e._queryIndex=n,e._queryList=kM(e._lView,n),e._queryList.onDirty(()=>e._dirtyCounter.update(i=>i+1))}function QG(t,n){let e=t._lView,i=t._queryIndex;if(e===void 0||i===void 0||e[et]&4)return n?void 0:ur;let r=kM(e,i),o=mF(e,i);return r.reset(o,$R),n?r.first:r._changesDetected||t._flatValue===void 0?t._flatValue=r.toArray():t._flatValue}var as=class{},wv=class{};var tv=class extends as{ngModuleType;_parent;_bootstrapComponents=[];_r3Injector;instance;destroyCbs=[];componentFactoryResolver=new Xb(this);constructor(n,e,i,r=!0){super(),this.ngModuleType=n,this._parent=e;let o=wD(n);this._bootstrapComponents=pP(o.bootstrap),this._r3Injector=KD(n,e,[{provide:as,useValue:this},{provide:ef,useValue:this.componentFactoryResolver},...i],$s(n),new Set(["environment"])),r&&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)}},iv=class extends wv{moduleType;constructor(n){super(),this.moduleType=n}create(n){return new tv(this.moduleType,n,[])}};var Wp=class extends as{injector;componentFactoryResolver=new Xb(this);instance=null;constructor(n){super();let e=new pd([...n.providers,{provide:as,useValue:this},{provide:ef,useValue:this.componentFactoryResolver}],n.parent||Ku(),n.debugName,new Set(["environment"]));this.injector=e,n.runEnvironmentInitializers&&e.resolveInjectorInitializers()}destroy(){this.injector.destroy()}onDestroy(n){this.injector.onDestroy(n)}};function vm(t,n,e=null){return new Wp({providers:t,parent:n,debugName:e,runEnvironmentInitializers:!0}).injector}var KG=(()=>{class t{_injector;cachedInjectors=new Map;constructor(e){this._injector=e}getOrCreateStandaloneInjector(e){if(!e.standalone)return null;if(!this.cachedInjectors.has(e)){let i=DD(!1,e.type),r=i.length>0?vm([i],this._injector,`Standalone[${e.type.name}]`):null;this.cachedInjectors.set(e,r)}return this.cachedInjectors.get(e)}ngOnDestroy(){try{for(let e of this.cachedInjectors.values())e!==null&&e.destroy()}finally{this.cachedInjectors.clear()}}static \u0275prov=O({token:t,providedIn:"environment",factory:()=>new t(pe(Wt))})}return t})();function E(t){return pm(()=>{let n=fF(t),e=De(M({},n),{decls:t.decls,vars:t.vars,template:t.template,consts:t.consts||null,ngContentSelectors:t.ngContentSelectors,onPush:t.changeDetection===XE.OnPush,directiveDefs:null,pipeDefs:null,dependencies:n.standalone&&t.dependencies||null,getStandaloneInjector:n.standalone?r=>r.get(KG).getOrCreateStandaloneInjector(e):null,getExternalStyles:null,signals:t.signals??!1,data:t.data||{},encapsulation:t.encapsulation||Ys.Emulated,styles:t.styles||ur,_:null,schemas:t.schemas||null,tView:null,id:""});n.standalone&&cs("NgStandalone"),gF(e);let i=t.dependencies;return e.directiveDefs=gR(i,ZG),e.pipeDefs=gR(i,hO),e.id=e9(e),e})}function ZG(t){return Ka(t)||yb(t)}function ee(t){return pm(()=>({type:t.type,bootstrap:t.bootstrap||ur,declarations:t.declarations||ur,imports:t.imports||ur,exports:t.exports||ur,transitiveCompileScopes:null,schemas:t.schemas||null,id:t.id||null}))}function XG(t,n){if(t==null)return fa;let e={};for(let i in t)if(t.hasOwnProperty(i)){let r=t[i],o,a,s,l;Array.isArray(r)?(s=r[0],o=r[1],a=r[2]??o,l=r[3]||null):(o=r,a=r,s=mv.None,l=null),e[o]=[i,s,l],n[o]=a}return e}function JG(t){if(t==null)return fa;let n={};for(let e in t)t.hasOwnProperty(e)&&(n[t[e]]=e);return n}function F(t){return pm(()=>{let n=fF(t);return gF(n),n})}function Wr(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 fF(t){let n={};return{type:t.type,providersResolver:null,factory:null,hostBindings:t.hostBindings||null,hostVars:t.hostVars||0,hostAttrs:t.hostAttrs||null,contentQueries:t.contentQueries||null,declaredInputs:n,inputConfig:t.inputs||fa,exportAs:t.exportAs||null,standalone:t.standalone??!0,signals:t.signals===!0,selectors:t.selectors||ur,viewQuery:t.viewQuery||null,features:t.features||null,setInput:null,resolveHostDirectives:null,hostDirectives:null,inputs:XG(t.inputs,n),outputs:JG(t.outputs),debugInfo:null}}function gF(t){t.features?.forEach(n=>n(t))}function gR(t,n){return t?()=>{let e=typeof t=="function"?t():t,i=[];for(let r of e){let o=n(r);o!==null&&i.push(o)}return i}:null}function e9(t){let n=0,e=typeof t.consts=="function"?"":t.consts,i=[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 o of i.join("|"))n=Math.imul(31,n)+o.charCodeAt(0)<<0;return n+=2147483648,"c"+n}function t9(t){return Object.getPrototypeOf(t.prototype).constructor}function le(t){let n=t9(t.type),e=!0,i=[t];for(;n;){let r;if(ba(t))r=n.\u0275cmp||n.\u0275dir;else{if(n.\u0275cmp)throw new ue(903,!1);r=n.\u0275dir}if(r){if(e){i.push(r);let a=t;a.inputs=oE(t.inputs),a.declaredInputs=oE(t.declaredInputs),a.outputs=oE(t.outputs);let s=r.hostBindings;s&&a9(t,s);let l=r.viewQuery,c=r.contentQueries;if(l&&r9(t,l),c&&o9(t,c),i9(t,r),rO(t.outputs,r.outputs),ba(r)&&r.data.animation){let d=t.data;d.animation=(d.animation||[]).concat(r.data.animation)}}let o=r.features;if(o)for(let a=0;a=0;i--){let r=t[i];r.hostVars=n+=r.hostVars,r.hostAttrs=lm(r.hostAttrs,e=lm(e,r.hostAttrs))}}function oE(t){return t===fa?{}:t===ur?[]:t}function r9(t,n){let e=t.viewQuery;e?t.viewQuery=(i,r)=>{n(i,r),e(i,r)}:t.viewQuery=n}function o9(t,n){let e=t.contentQueries;e?t.contentQueries=(i,r,o)=>{n(i,r,o),e(i,r,o)}:t.contentQueries=n}function a9(t,n){let e=t.hostBindings;e?t.hostBindings=(i,r)=>{n(i,r),e(i,r)}:t.hostBindings=n}function ym(t){let n=e=>{let i=Array.isArray(t);e.hostDirectives===null?(e.resolveHostDirectives=s9,e.hostDirectives=i?t.map(BE):[t]):i?e.hostDirectives.unshift(...t.map(BE)):e.hostDirectives.unshift(t)};return n.ngInherit=!0,n}function s9(t){let n=[],e=!1,i=null,r=null;for(let o=0;o{class t{log(e){console.log(e)}warn(e){console.warn(e)}static \u0275fac=function(i){return new(i||t)};static \u0275prov=O({token:t,factory:t.\u0275fac,providedIn:"platform"})}return t})();var OM=new T("");function Xs(t){return!!t&&typeof t.then=="function"}function Ev(t){return!!t&&typeof t.subscribe=="function"}var RM=new T("");function Ql(t){return zr([{provide:RM,multi:!0,useValue:t}])}var PM=(()=>{class t{resolve;reject;initialized=!1;done=!1;donePromise=new Promise((e,i)=>{this.resolve=e,this.reject=i});appInits=u(RM,{optional:!0})??[];injector=u(de);constructor(){}runInitializers(){if(this.initialized)return;let e=[];for(let r of this.appInits){let o=In(this.injector,r);if(Xs(o))e.push(o);else if(Ev(o)){let a=new Promise((s,l)=>{o.subscribe({complete:s,error:l})});e.push(a)}}let i=()=>{this.done=!0,this.resolve()};Promise.all(e).then(()=>{i()}).catch(r=>{this.reject(r)}),e.length===0&&i(),this.initialized=!0}static \u0275fac=function(i){return new(i||t)};static \u0275prov=O({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),nf=new T("");function vF(){Aw(()=>{let t="";throw new ue(600,t)})}function yF(t){return t.isBoundToModule}var m9=10;var Gn=(()=>{class t{_runningTick=!1;_destroyed=!1;_destroyListeners=[];_views=[];internalErrorHandler=u(hr);afterRenderManager=u(pv);zonelessEnabled=u(Fp);rootEffectScheduler=u(Np);dirtyFlags=0;tracingSnapshot=null;allTestViews=new Set;autoDetectTestViews=new Set;includeAllTestViews=!1;afterTick=new z;get allViews(){return[...(this.includeAllTestViews?this.allTestViews:this.autoDetectTestViews).keys(),...this._views]}get destroyed(){return this._destroyed}componentTypes=[];components=[];internalPendingTask=u(ns);get isStable(){return this.internalPendingTask.hasPendingTasksObservable.pipe(se(e=>!e))}constructor(){u(Yl,{optional:!0})}whenStable(){let e;return new Promise(i=>{e=this.isStable.subscribe({next:r=>{r&&i()}})}).finally(()=>{e.unsubscribe()})}_injector=u(Wt);_rendererFactory=null;get injector(){return this._injector}bootstrap(e,i){return this.bootstrapImpl(e,i)}bootstrapImpl(e,i,r=de.NULL){return this._injector.get(ae).run(()=>{oi(10);let a=e instanceof Cv;if(!this._injector.get(PM).done){let v="";throw new ue(405,v)}let l;a?l=e:l=this._injector.get(ef).resolveComponentFactory(e),this.componentTypes.push(l.componentType);let c=yF(l)?void 0:this._injector.get(as),d=i||l.selector,m=l.create(r,[],d,c),f=m.location.nativeElement,b=m.injector.get(OM,null);return b?.registerApplication(f),m.onDestroy(()=>{this.detachView(m.hostView),Vp(this.components,m),b?.unregisterApplication(f)}),this._loadComponent(m),oi(11,m),m})}tick(){this.zonelessEnabled||(this.dirtyFlags|=1),this._tick()}_tick(){oi(12),this.tracingSnapshot!==null?this.tracingSnapshot.run(hv.CHANGE_DETECTION,this.tickImpl):this.tickImpl()}tickImpl=()=>{if(this._runningTick)throw new ue(101,!1);let e=Xe(null);try{this._runningTick=!0,this.synchronize()}finally{this._runningTick=!1,this.tracingSnapshot?.dispose(),this.tracingSnapshot=null,Xe(e),this.afterTick.next(),oi(13)}};synchronize(){this._rendererFactory===null&&!this._injector.destroyed&&(this._rendererFactory=this._injector.get(cn,null,{optional:!0}));let e=0;for(;this.dirtyFlags!==0&&e++Ap(e))){this.dirtyFlags|=2;return}else this.dirtyFlags&=-8}attachView(e){let i=e;this._views.push(i),i.attachToAppRef(this)}detachView(e){let i=e;Vp(this._views,i),i.detachFromAppRef()}_loadComponent(e){this.attachView(e.hostView);try{this.tick()}catch(r){this.internalErrorHandler(r)}this.components.push(e),this._injector.get(nf,[]).forEach(r=>r(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),()=>Vp(this._destroyListeners,e)}destroy(){if(this._destroyed)throw new ue(406,!1);let e=this._injector;e.destroy&&!e.destroyed&&e.destroy()}get viewCount(){return this._views.length}static \u0275fac=function(i){return new(i||t)};static \u0275prov=O({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();function Vp(t,n){let e=t.indexOf(n);e>-1&&t.splice(e,1)}function Kl(t,n){let e=Ne(),i=ts();if(Tr(e,i,n)){let r=gi(),o=rm();if(yv(o,r,e,t,n))qs(o)&&RP(e,o.index);else{let s=Vo(o,e);PP(e[ri],s,null,o.value,t,n,null)}}return Kl}function X(t,n,e,i){let r=Ne(),o=ts();if(Tr(r,o,n)){let a=gi(),s=rm();H7(s,r,t,n,e,i)}return X}var xIe=typeof document<"u"&&typeof document?.documentElement?.getAnimations=="function";function Mv(){return Ne()[mr][qi]}var jE=class{destroy(n){}updateValue(n,e){}swap(n,e){let i=Math.min(n,e),r=Math.max(n,e),o=this.detach(r);if(r-i>1){let a=this.detach(i);this.attach(i,o),this.attach(r,a)}else this.attach(i,o)}move(n,e){this.attach(e,this.detach(n))}};function aE(t,n,e,i,r){return t===e&&Object.is(n,i)?1:Object.is(r(t,n),r(e,i))?-1:0}function h9(t,n,e){let i,r,o=0,a=t.length-1,s=void 0;if(Array.isArray(n)){let l=n.length-1;for(;o<=a&&o<=l;){let c=t.at(o),d=n[o],m=aE(o,c,o,d,e);if(m!==0){m<0&&t.updateValue(o,d),o++;continue}let f=t.at(a),b=n[l],v=aE(a,f,l,b,e);if(v!==0){v<0&&t.updateValue(a,b),a--,l--;continue}let w=e(o,c),x=e(a,f),D=e(o,d);if(Object.is(D,x)){let P=e(l,b);Object.is(P,w)?(t.swap(o,a),t.updateValue(a,b),l--,a--):t.move(a,o),t.updateValue(o,d),o++;continue}if(i??=new nv,r??=yR(t,o,a,e),HE(t,i,o,D))t.updateValue(o,d),o++,a++;else if(r.has(D))i.set(w,t.detach(o)),a--;else{let P=t.create(o,n[o]);t.attach(o,P),o++,a++}}for(;o<=l;)vR(t,i,e,o,n[o]),o++}else if(n!=null){let l=n[Symbol.iterator](),c=l.next();for(;!c.done&&o<=a;){let d=t.at(o),m=c.value,f=aE(o,d,o,m,e);if(f!==0)f<0&&t.updateValue(o,m),o++,c=l.next();else{i??=new nv,r??=yR(t,o,a,e);let b=e(o,m);if(HE(t,i,o,b))t.updateValue(o,m),o++,a++,c=l.next();else if(!r.has(b))t.attach(o,t.create(o,m)),o++,a++,c=l.next();else{let v=e(o,d);i.set(v,t.detach(o)),a--}}}for(;!c.done;)vR(t,i,e,t.length,c.value),c=l.next()}for(;o<=a;)t.destroy(t.detach(a--));i?.forEach(l=>{t.destroy(l)})}function HE(t,n,e,i){return n!==void 0&&n.has(i)?(t.attach(e,n.get(i)),n.delete(i),!0):!1}function vR(t,n,e,i,r){if(HE(t,n,i,e(i,r)))t.updateValue(i,r);else{let o=t.create(i,r);t.attach(i,o)}}function yR(t,n,e,i){let r=new Set;for(let o=n;o<=e;o++)r.add(i(o,t.at(o)));return r}var nv=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 i=this.kvMap.get(n);this._vMap===void 0&&(this._vMap=new Map);let r=this._vMap;for(;r.has(i);)i=r.get(i);r.set(i,e)}else this.kvMap.set(n,e)}forEach(n){for(let[e,i]of this.kvMap)if(n(i,e),this._vMap!==void 0){let r=this._vMap;for(;r.has(i);)i=r.get(i),n(i,e)}}};function N(t,n,e,i,r,o,a,s){cs("NgControlFlow");let l=Ne(),c=gi(),d=po(c.consts,o);return um(l,c,t,n,e,i,r,d,256,a,s),FM}function FM(t,n,e,i,r,o,a,s){cs("NgControlFlow");let l=Ne(),c=gi(),d=po(c.consts,o);return um(l,c,t,n,e,i,r,d,512,a,s),FM}function L(t,n){cs("NgControlFlow");let e=Ne(),i=ts(),r=e[i]!==On?e[i]:-1,o=r!==-1?rv(e,mi+r):void 0,a=0;if(Tr(e,i,t)){let s=Xe(null);try{if(o!==void 0&&GP(o,a),t!==-1){let l=mi+t,c=rv(e,l),d=WE(e[We],l),m=YP(c,d,e),f=Xp(e,d,n,{dehydratedView:m});Jp(c,f,a,dm(d,m))}}finally{Xe(s)}}else if(o!==void 0){let s=WP(o,a);s!==void 0&&(s[qi]=n)}}var zE=class{lContainer;$implicit;$index;constructor(n,e,i){this.lContainer=n,this.$implicit=e,this.$index=i}get $count(){return this.lContainer.length-Yi}};function Hi(t){return t}function xm(t,n){return n}var UE=class{hasEmptyBlock;trackByFn;liveCollection;constructor(n,e,i){this.hasEmptyBlock=n,this.trackByFn=e,this.liveCollection=i}};function xt(t,n,e,i,r,o,a,s,l,c,d,m,f){cs("NgControlFlow");let b=Ne(),v=gi(),w=l!==void 0,x=Ne(),D=s?a.bind(x[mr][qi]):a,P=new UE(w,D);x[mi+t]=P,um(b,v,t+1,n,e,i,r,po(v.consts,o),256),w&&um(b,v,t+2,l,c,d,m,po(v.consts,f),512)}var $E=class extends jE{lContainer;hostLView;templateTNode;operationsCounter=void 0;needsIndexUpdate=!1;constructor(n,e,i){super(),this.lContainer=n,this.hostLView=e,this.templateTNode=i}get length(){return this.lContainer.length-Yi}at(n){return this.getLView(n)[qi].$implicit}attach(n,e){let i=e[gd];this.needsIndexUpdate||=n!==this.length,Jp(this.lContainer,e,n,dm(this.templateTNode,i)),p9(this.lContainer,n)}detach(n){return this.needsIndexUpdate||=n!==this.length-1,f9(this.lContainer,n),g9(this.lContainer,n)}create(n,e){let i=Kb(this.lContainer,this.templateTNode.tView.ssrId),r=Xp(this.hostLView,this.templateTNode,new zE(this.lContainer,e,n),{dehydratedView:i});return this.operationsCounter?.recordCreate(),r}destroy(n){fv(n[We],n),this.operationsCounter?.recordDestroy()}updateValue(n,e){this.getLView(n)[qi].$implicit=e}reset(){this.needsIndexUpdate=!1,this.operationsCounter?.reset()}updateIndexes(){if(this.needsIndexUpdate)for(let n=0;n0){let o=i[Ws];y7(o,r),kd.delete(i),r.detachedLeaveAnimationFns=void 0}}function f9(t,n){if(t.length<=Yi)return;let e=Yi+n,i=t[e],r=i?i[yd]:void 0;r&&r.leave&&r.leave.size>0&&(r.detachedLeaveAnimationFns=[])}function g9(t,n){return Up(t,n)}function _9(t,n){return WP(t,n)}function WE(t,n){return Ip(t,n)}function y(t,n,e){let i=Ne(),r=ts();if(Tr(i,r,n)){let o=gi(),a=rm();AP(a,i,t,n,i[ri],e)}return y}function GE(t,n,e,i,r){yv(n,t,e,r?"class":"style",i)}function h(t,n,e,i){let r=Ne(),o=r[We],a=t+mi,s=o.firstCreatePass?DM(a,r,2,n,xM,Eb(),e,i):o.data[a];if(bv(s,r,t,n,xF),Ju(s)){let l=r[We];_v(l,r,s),tM(l,s,r)}return i!=null&&_m(r,s),h}function p(){let t=gi(),n=tn(),e=vv(n);return t.firstCreatePass&&EM(t,e),HD(e)&&zD(),BD(),e.classesWithoutHost!=null&&Z$(e)&&GE(t,e,Ne(),e.classesWithoutHost,!0),e.stylesWithoutHost!=null&&X$(e)&&GE(t,e,Ne(),e.stylesWithoutHost,!1),p}function k(t,n,e,i){return h(t,n,e,i),p(),k}function ft(t,n,e,i){let r=Ne(),o=r[We],a=t+mi,s=o.firstCreatePass?XP(a,o,2,n,e,i):o.data[a];return bv(s,r,t,n,xF),i!=null&&_m(r,s),ft}function vt(){let t=tn(),n=vv(t);return HD(n)&&zD(),BD(),vt}function ai(t,n,e,i){return ft(t,n,e,i),vt(),ai}var xF=(t,n,e,i,r)=>(Pp(!0),cP(n[ri],i,BO()));function jt(t,n,e){let i=Ne(),r=i[We],o=t+mi,a=r.firstCreatePass?DM(o,i,8,"ng-container",xM,Eb(),n,e):r.data[o];if(bv(a,i,t,"ng-container",wF),Ju(a)){let s=i[We];_v(s,i,a),tM(s,a,i)}return e!=null&&_m(i,a),jt}function Lt(){let t=gi(),n=tn(),e=vv(n);return t.firstCreatePass&&EM(t,e),Lt}function Ge(t,n,e){return jt(t,n,e),Lt(),Ge}function NM(t,n,e){let i=Ne(),r=i[We],o=t+mi,a=r.firstCreatePass?XP(o,r,8,"ng-container",n,e):r.data[o];return bv(a,i,t,"ng-container",wF),e!=null&&_m(i,a),NM}function CF(){let t=tn(),n=vv(t);return Lt}function rf(t,n,e){return NM(t,n,e),CF(),rf}var wF=(t,n,e,i,r)=>(Pp(!0),$W(n[ri],""));function Y(){return Ne()}function si(t,n,e){let i=Ne(),r=ts();if(Tr(i,r,n)){let o=gi(),a=rm();OP(a,i,t,n,i[ri],e)}return si}var Nb=void 0;function b9(t){let n=Math.floor(Math.abs(t)),e=t.toString().replace(/^[^.]*\.?/,"").length;return n===1&&e===0?1:5}var v9=["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"]],Nb,[["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"]],Nb,[["B","A"],["BC","AD"],["Before Christ","Anno Domini"]],0,[6,0],["M/d/yy","MMM d, y","MMMM d, y","EEEE, MMMM d, y"],["h:mm a","h:mm:ss a","h:mm:ss a z","h:mm:ss a zzzz"],["{1}, {0}",Nb,"{1} 'at' {0}",Nb],[".",",",";","%","+","-","E","\xD7","\u2030","\u221E","NaN",":"],["#,##0.###","#,##0%","\xA4#,##0.00","#E0"],"USD","$","US Dollar",{},"ltr",b9],sE={};function Ir(t){let n=y9(t),e=xR(n);if(e)return e;let i=n.split("-")[0];if(e=xR(i),e)return e;if(i==="en")return v9;throw new ue(701,!1)}function xR(t){return t in sE||(sE[t]=Po.ng&&Po.ng.common&&Po.ng.common.locales&&Po.ng.common.locales[t]),sE[t]}var zi=(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})(zi||{});function y9(t){return t.toLowerCase().replace(/_/g,"-")}var of="en-US",x9="USD";var C9=of;function DF(t){typeof t=="string"&&(C9=t.toLowerCase().replace(/_/g,"-"))}function S(t,n,e){let i=Ne(),r=gi(),o=tn();return EF(r,i,i[ri],o,t,n,e),S}function kv(t,n,e){let i=Ne(),r=gi(),o=tn();return(o.type&3||e)&&iF(o,r,i,e,i[ri],t,n,zb(o,i,n)),kv}function EF(t,n,e,i,r,o,a){let s=!0,l=null;if((i.type&3||a)&&(l??=zb(i,n,o),iF(i,t,n,a,e,r,o,l)&&(s=!1)),s){let c=i.outputs?.[r],d=i.hostDirectiveOutputs?.[r];if(d&&d.length)for(let m=0;m>17&32767}function E9(t){return(t&2)==2}function M9(t,n){return t&131071|n<<17}function qE(t){return t|2}function mm(t){return(t&131068)>>2}function lE(t,n){return t&-131069|n<<2}function k9(t){return(t&1)===1}function YE(t){return t|1}function S9(t,n,e,i,r,o){let a=o?n.classBindings:n.styleBindings,s=Sd(a),l=mm(a);t[i]=e;let c=!1,d;if(Array.isArray(e)){let m=e;d=m[1],(d===null||Qu(m,d)>0)&&(c=!0)}else d=e;if(r)if(l!==0){let f=Sd(t[s+1]);t[i+1]=Lb(f,s),f!==0&&(t[f+1]=lE(t[f+1],i)),t[s+1]=M9(t[s+1],i)}else t[i+1]=Lb(s,0),s!==0&&(t[s+1]=lE(t[s+1],i)),s=i;else t[i+1]=Lb(l,0),s===0?s=i:t[l+1]=lE(t[l+1],i),l=i;c&&(t[i+1]=qE(t[i+1])),CR(t,d,i,!0),CR(t,d,i,!1),T9(n,d,t,i,o),a=Lb(s,l),o?n.classBindings=a:n.styleBindings=a}function T9(t,n,e,i,r){let o=r?t.residualClasses:t.residualStyles;o!=null&&typeof n=="string"&&Qu(o,n)>=0&&(e[i+1]=YE(e[i+1]))}function CR(t,n,e,i){let r=t[e+1],o=n===null,a=i?Sd(r):mm(r),s=!1;for(;a!==0&&(s===!1||o);){let l=t[a],c=t[a+1];I9(l,n)&&(s=!0,t[a+1]=i?YE(c):qE(c)),a=i?Sd(c):mm(c)}s&&(t[e+1]=i?qE(r):YE(r))}function I9(t,n){return t===null||n==null||(Array.isArray(t)?t[1]:t)===n?!0:Array.isArray(t)&&typeof n=="string"?Qu(t,n)>=0:!1}var vn={textEnd:0,key:0,keyEnd:0,value:0,valueEnd:0};function MF(t){return t.substring(vn.key,vn.keyEnd)}function A9(t){return t.substring(vn.value,vn.valueEnd)}function O9(t){return TF(t),kF(t,hm(t,0,vn.textEnd))}function kF(t,n){let e=vn.textEnd;return e===n?-1:(n=vn.keyEnd=P9(t,vn.key=n,e),hm(t,n,e))}function R9(t){return TF(t),SF(t,hm(t,0,vn.textEnd))}function SF(t,n){let e=vn.textEnd,i=vn.key=hm(t,n,e);return e===i?-1:(i=vn.keyEnd=F9(t,i,e),i=wR(t,i,e,58),i=vn.value=hm(t,i,e),i=vn.valueEnd=N9(t,i,e),wR(t,i,e,59))}function TF(t){vn.key=0,vn.keyEnd=0,vn.value=0,vn.valueEnd=0,vn.textEnd=t.length}function hm(t,n,e){for(;n32;)n++;return n}function F9(t,n,e){let i;for(;n=65&&(i&-33)<=90||i>=48&&i<=57);)n++;return n}function wR(t,n,e,i){return n=hm(t,n,e),n32&&(s=a),o=r,r=i,i=l&-33}return s}function DR(t,n,e,i){let r=-1,o=e;for(;o=0;e=SF(n,e))PF(t,MF(n),A9(n))}function it(t){AF($9,V9,t,!0)}function V9(t,n){for(let e=O9(n);e>=0;e=kF(n,e))Mp(t,MF(n),!0)}function IF(t,n,e,i){let r=Ne(),o=gi(),a=Op(2);if(o.firstUpdatePass&&RF(o,t,a,i),n!==On&&Tr(r,a,n)){let s=o.data[va()];FF(o,s,r,r[ri],t,r[a+1]=G9(n,e),i,a)}}function AF(t,n,e,i){let r=gi(),o=Op(2);r.firstUpdatePass&&RF(r,null,o,i);let a=Ne();if(e!==On&&Tr(a,o,e)){let s=r.data[va()];if(NF(s,i)&&!OF(r,o)){let l=i?s.classesWithoutHost:s.stylesWithoutHost;l!==null&&(e=fb(l,e||"")),GE(r,s,a,e,i)}else W9(r,s,a,a[ri],a[o+1],a[o+1]=U9(t,n,e),i,o)}}function OF(t,n){return n>=t.expandoStartIndex}function RF(t,n,e,i){let r=t.data;if(r[e+1]===null){let o=r[va()],a=OF(t,e);NF(o,i)&&n===null&&!a&&(n=!1),n=B9(r,o,n,i),S9(r,o,n,e,a,i)}}function B9(t,n,e,i){let r=PO(t),o=i?n.residualClasses:n.residualStyles;if(r===null)(i?n.classBindings:n.styleBindings)===0&&(e=cE(null,t,n,e,i),e=Gp(e,n.attrs,i),o=null);else{let a=n.directiveStylingLast;if(a===-1||t[a]!==r)if(e=cE(r,t,n,e,i),o===null){let l=j9(t,n,i);l!==void 0&&Array.isArray(l)&&(l=cE(null,t,n,l[1],i),l=Gp(l,n.attrs,i),H9(t,n,i,l))}else o=z9(t,n,i)}return o!==void 0&&(i?n.residualClasses=o:n.residualStyles=o),e}function j9(t,n,e){let i=e?n.classBindings:n.styleBindings;if(mm(i)!==0)return t[Sd(i)]}function H9(t,n,e,i){let r=e?n.classBindings:n.styleBindings;t[Sd(r)]=i}function z9(t,n,e){let i,r=n.directiveEnd;for(let o=1+n.directiveStylingLast;o0;){let l=t[r],c=Array.isArray(l),d=c?l[1]:l,m=d===null,f=e[r+1];f===On&&(f=m?ur:void 0);let b=m?vb(f,i):d===i?f:void 0;if(c&&!ov(b)&&(b=vb(l,i)),ov(b)&&(s=b,a))return s;let v=t[r+1];r=a?Sd(v):mm(v)}if(n!==null){let l=o?n.residualClasses:n.residualStyles;l!=null&&(s=vb(l,i))}return s}function ov(t){return t!==void 0}function G9(t,n){return t==null||t===""||(typeof n=="string"?t=t+n:typeof t=="object"&&(t=$s(Ur(t)))),t}function NF(t,n){return(t.flags&(n?8:16))!==0}function _(t,n=""){let e=Ne(),i=gi(),r=t+mi,o=i.firstCreatePass?bm(i,r,1,n,null):i.data[r],a=q9(i,e,o,n,t);e[r]=a,Ib()&&vM(i,e,a,o),im(o,!1)}var q9=(t,n,e,i,r)=>(Pp(!0),zW(n[ri],i));function LF(t,n,e,i=""){return Tr(t,ts(),e)?n+Fo(e)+i:On}function Y9(t,n,e,i,r,o=""){let a=qD(),s=$p(t,a,e,r);return Op(2),s?n+Fo(e)+i+Fo(r)+o:On}function Q9(t,n,e,i,r,o,a,s=""){let l=qD(),c=tF(t,l,e,r,a);return Op(3),c?n+Fo(e)+i+Fo(r)+o+Fo(a)+s:On}function H(t){return ve("",t),H}function ve(t,n,e){let i=Ne(),r=LF(i,t,n,e);return r!==On&&LM(i,va(),r),ve}function Od(t,n,e,i,r){let o=Ne(),a=Y9(o,t,n,e,i,r);return a!==On&&LM(o,va(),a),Od}function Cm(t,n,e,i,r,o,a){let s=Ne(),l=Q9(s,t,n,e,i,r,o,a);return l!==On&&LM(s,va(),l),Cm}function LM(t,n,e){let i=OD(n,t);UW(t[ri],i,e)}function zo(t,n,e){XD(n)&&(n=n());let i=Ne(),r=ts();if(Tr(i,r,n)){let o=gi(),a=rm();AP(a,i,t,n,i[ri],e)}return zo}function Ca(t,n){let e=XD(t);return e&&t.set(n),e}function Uo(t,n){let e=Ne(),i=gi(),r=tn();return EF(i,e,e[ri],r,t,n),Uo}function VM(t){return Tr(Ne(),ts(),t)?Fo(t):On}function $o(t,n,e=""){return LF(Ne(),t,n,e)}function K9(t,n,e){let i=gi();if(i.firstCreatePass){let r=ba(t);QE(e,i.data,i.blueprint,r,!0),QE(n,i.data,i.blueprint,r,!1)}}function QE(t,n,e,i,r){if(t=_n(t),Array.isArray(t))for(let o=0;o>20;if(hd(t)||!t.multi){let b=new Md(c,r,_e,null),v=uE(l,n,r?d:d+f,m);v===-1?(hE(qb(s,a),o,l),dE(o,t,n.length),n.push(l),s.directiveStart++,s.directiveEnd++,r&&(s.providerIndexes+=1048576),e.push(b),a.push(b)):(e[v]=b,a[v]=b)}else{let b=uE(l,n,d+f,m),v=uE(l,n,d,d+f),w=b>=0&&e[b],x=v>=0&&e[v];if(r&&!x||!r&&!w){hE(qb(s,a),o,l);let D=J9(r?X9:Z9,e.length,r,i,c,t);!r&&x&&(e[v].providerFactory=D),dE(o,t,n.length,0),n.push(l),s.directiveStart++,s.directiveEnd++,r&&(s.providerIndexes+=1048576),e.push(D),a.push(D)}else{let D=VF(e[r?v:b],c,!r&&i);dE(o,t,b>-1?b:v,D)}!r&&i&&x&&e[v].componentProviders++}}}function dE(t,n,e,i){let r=hd(n),o=_O(n);if(r||o){let l=(o?_n(n.useClass):n).prototype.ngOnDestroy;if(l){let c=t.destroyHooks||(t.destroyHooks=[]);if(!r&&n.multi){let d=c.indexOf(e);d===-1?c.push(e,[i,l]):c[d+1].push(i,l)}else c.push(e,l)}}}function VF(t,n,e){return e&&t.componentProviders++,t.multi.push(n)-1}function uE(t,n,e,i){for(let r=e;r{e.providersResolver=(i,r)=>K9(i,r?r(t):t,n)}}function at(t,n,e){let i=es()+t,r=Ne();return r[i]===On?tf(r,i,e?n.call(e):n()):DG(r,i)}function Pt(t,n,e,i){return BF(Ne(),es(),t,n,e,i)}function wa(t,n,e,i,r){return jF(Ne(),es(),t,n,e,i,r)}function Rd(t,n,e,i,r,o){return HF(Ne(),es(),t,n,e,i,r,o)}function wm(t,n,e,i,r,o,a){return zF(Ne(),es(),t,n,e,i,r,o,a)}function Sv(t,n){let e=t[n];return e===On?void 0:e}function BF(t,n,e,i,r,o){let a=n+e;return Tr(t,a,r)?tf(t,a+1,o?i.call(o,r):i(r)):Sv(t,a+1)}function jF(t,n,e,i,r,o,a){let s=n+e;return $p(t,s,r,o)?tf(t,s+2,a?i.call(a,r,o):i(r,o)):Sv(t,s+2)}function HF(t,n,e,i,r,o,a,s){let l=n+e;return tF(t,l,r,o,a)?tf(t,l+3,s?i.call(s,r,o,a):i(r,o,a)):Sv(t,l+3)}function zF(t,n,e,i,r,o,a,s,l){let c=n+e;return EG(t,c,r,o,a,s)?tf(t,c+4,l?i.call(l,r,o,a,s):i(r,o,a,s)):Sv(t,c+4)}function me(t,n){let e=gi(),i,r=t+mi;e.firstCreatePass?(i=eq(n,e.pipeRegistry),e.data[r]=i,i.onDestroy&&(e.destroyHooks??=[]).push(r,i.onDestroy)):i=e.data[r];let o=i.factory||(i.factory=Vl(i.type,!0)),a,s=kr(_e);try{let l=Gb(!1),c=o();return Gb(l),RD(e,Ne(),r,c),c}finally{kr(s)}}function eq(t,n){if(n)for(let e=n.length-1;e>=0;e--){let i=n[e];if(t===i.name)return i}}function Oe(t,n,e){let i=t+mi,r=Ne(),o=tm(r,i);return Tv(r,i)?BF(r,es(),n,o.transform,e,o):o.transform(e)}function Ni(t,n,e,i){let r=t+mi,o=Ne(),a=tm(o,r);return Tv(o,r)?jF(o,es(),n,a.transform,e,i,a):a.transform(e,i)}function BM(t,n,e,i,r){let o=t+mi,a=Ne(),s=tm(a,o);return Tv(a,o)?HF(a,es(),n,s.transform,e,i,r,s):s.transform(e,i,r)}function Dm(t,n,e,i,r,o){let a=t+mi,s=Ne(),l=tm(s,a);return Tv(s,a)?zF(s,es(),n,l.transform,e,i,r,o,l):l.transform(e,i,r,o)}function Tv(t,n){return t[We].data[n].pure}function _i(t,n){return xv(t,n)}var av=class{ngModuleFactory;componentFactories;constructor(n,e){this.ngModuleFactory=n,this.componentFactories=e}},jM=(()=>{class t{compileModuleSync(e){return new iv(e)}compileModuleAsync(e){return Promise.resolve(this.compileModuleSync(e))}compileModuleAndAllComponentsSync(e){let i=this.compileModuleSync(e),r=wD(e),o=pP(r.declarations).reduce((a,s)=>{let l=Ka(s);return l&&a.push(new Wl(l)),a},[]);return new av(i,o)}compileModuleAndAllComponentsAsync(e){return Promise.resolve(this.compileModuleAndAllComponentsSync(e))}clearCache(){}clearCacheFor(e){}getModuleId(e){}static \u0275fac=function(i){return new(i||t)};static \u0275prov=O({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();var tq=(()=>{class t{zone=u(ae);changeDetectionScheduler=u(Oo);applicationRef=u(Gn);applicationErrorHandler=u(hr);_onMicrotaskEmptySubscription;initialize(){this._onMicrotaskEmptySubscription||(this._onMicrotaskEmptySubscription=this.zone.onMicrotaskEmpty.subscribe({next:()=>{this.changeDetectionScheduler.runningTick||this.zone.run(()=>{try{this.applicationRef.dirtyFlags|=1,this.applicationRef._tick()}catch(e){this.applicationErrorHandler(e)}})}}))}ngOnDestroy(){this._onMicrotaskEmptySubscription?.unsubscribe()}static \u0275fac=function(i){return new(i||t)};static \u0275prov=O({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();function UF({ngZoneFactory:t,ignoreChangesOutsideZone:n,scheduleInRootZone:e}){return t??=()=>new ae(De(M({},$F()),{scheduleInRootZone:e})),[{provide:ae,useFactory:t},{provide:Qa,multi:!0,useFactory:()=>{let i=u(tq,{optional:!0});return()=>i.initialize()}},{provide:Qa,multi:!0,useFactory:()=>{let i=u(iq);return()=>{i.initialize()}}},n===!0?{provide:JD,useValue:!0}:[],{provide:eE,useValue:e??yP},{provide:hr,useFactory:()=>{let i=u(ae),r=u(Wt),o;return a=>{i.runOutsideAngular(()=>{r.destroyed&&!o?setTimeout(()=>{throw a}):(o??=r.get(Tn),o.handleError(a))})}}}]}function $F(t){return{enableLongStackTrace:!1,shouldCoalesceEventChangeDetection:t?.eventCoalescing??!1,shouldCoalesceRunChangeDetection:t?.runCoalescing??!1}}var iq=(()=>{class t{subscription=new ke;initialized=!1;zone=u(ae);pendingTasks=u(ns);initialize(){if(this.initialized)return;this.initialized=!0;let e=null;!this.zone.isStable&&!this.zone.hasPendingMacrotasks&&!this.zone.hasPendingMicrotasks&&(e=this.pendingTasks.add()),this.zone.runOutsideAngular(()=>{this.subscription.add(this.zone.onStable.subscribe(()=>{ae.assertNotInAngularZone(),queueMicrotask(()=>{e!==null&&!this.zone.hasPendingMacrotasks&&!this.zone.hasPendingMicrotasks&&(this.pendingTasks.remove(e),e=null)})}))}),this.subscription.add(this.zone.onUnstable.subscribe(()=>{ae.assertInAngularZone(),e??=this.pendingTasks.add()}))}ngOnDestroy(){this.subscription.unsubscribe()}static \u0275fac=function(i){return new(i||t)};static \u0275prov=O({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();var WF=(()=>{class t{applicationErrorHandler=u(hr);appRef=u(Gn);taskService=u(ns);ngZone=u(ae);zonelessEnabled=u(Fp);tracing=u(Yl,{optional:!0});disableScheduling=u(JD,{optional:!0})??!1;zoneIsDefined=typeof Zone<"u"&&!!Zone.root.run;schedulerTickApplyArgs=[{data:{__scheduler_tick__:!0}}];subscriptions=new ke;angularZoneId=this.zoneIsDefined?this.ngZone._inner?.get(Qb):null;scheduleInRootZone=!this.zonelessEnabled&&this.zoneIsDefined&&(u(eE,{optional:!0})??!1);cancelScheduledCallback=null;useMicrotaskScheduler=!1;runningTick=!1;pendingRenderTaskId=null;constructor(){this.subscriptions.add(this.appRef.afterTick.subscribe(()=>{this.runningTick||this.cleanup()})),this.subscriptions.add(this.ngZone.onUnstable.subscribe(()=>{this.runningTick||this.cleanup()})),this.disableScheduling||=!this.zonelessEnabled&&(this.ngZone instanceof jp||!this.zoneIsDefined)}notify(e){if(!this.zonelessEnabled&&e===5)return;let i=!1;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,i=!0;break}case 12:{this.appRef.dirtyFlags|=16,i=!0;break}case 13:{this.appRef.dirtyFlags|=2,i=!0;break}case 11:{i=!0;break}case 9:case 8:case 7:case 10:default:this.appRef.dirtyFlags|=8}if(this.appRef.tracingSnapshot=this.tracing?.snapshot(this.appRef.tracingSnapshot)??null,!this.shouldScheduleTick(i))return;let r=this.useMicrotaskScheduler?nR:xP;this.pendingRenderTaskId=this.taskService.add(),this.scheduleInRootZone?this.cancelScheduledCallback=Zone.root.run(()=>r(()=>this.tick())):this.cancelScheduledCallback=this.ngZone.runOutsideAngular(()=>r(()=>this.tick()))}shouldScheduleTick(e){return!(this.disableScheduling&&!e||this.appRef.destroyed||this.pendingRenderTaskId!==null||this.runningTick||this.appRef._runningTick||!this.zonelessEnabled&&this.zoneIsDefined&&Zone.current.get(Qb+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(i){this.taskService.remove(e),this.applicationErrorHandler(i)}finally{this.cleanup()}this.useMicrotaskScheduler=!0,nR(()=>{this.useMicrotaskScheduler=!1,this.taskService.remove(e)})}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(i){return new(i||t)};static \u0275prov=O({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();function nq(){return typeof $localize<"u"&&$localize.locale||of}var el=new T("",{providedIn:"root",factory:()=>u(el,{optional:!0,skipSelf:!0})||nq()}),HM=new T("",{providedIn:"root",factory:()=>x9});var af=class{destroyed=!1;listeners=null;errorHandler=u(Tn,{optional:!0});destroyRef=u(nn);constructor(){this.destroyRef.onDestroy(()=>{this.destroyed=!0,this.listeners=null})}subscribe(n){if(this.destroyed)throw new ue(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(Ro(953,!1));return}if(this.listeners===null)return;let e=Xe(null);try{for(let i of this.listeners)try{i(n)}catch(r){this.errorHandler?.handleError(r)}}finally{Xe(e)}}};function UM(t){return t.destroyRef}function Ti(t){return JA(t)}function Zt(t,n){return pp(t,n?.equal)}var zM=class{[ln];constructor(n){this[ln]=n}destroy(){this[ln].destroy()}};function Ar(t,n){let e=n?.injector??u(de),i=n?.manualCleanup!==!0?e.get(nn):null,r,o=e.get(wd,null,{optional:!0}),a=e.get(Oo);return o!==null?(r=aq(o.view,a,t),i instanceof Cp&&i._lView===o.view&&(i=null)):r=sq(t,e.get(Np),a),r.injector=e,i!==null&&(r.onDestroyFn=i.onDestroy(()=>r.destroy())),new zM(r)}var GF=De(M({},eO),{cleanupFns:void 0,zone:null,onDestroyFn:Dd,run(){let t=nm(!1);try{tO(this)}finally{nm(t)}},cleanup(){if(!this.cleanupFns?.length)return;let t=Xe(null);try{for(;this.cleanupFns.length;)this.cleanupFns.pop()()}finally{this.cleanupFns=[],Xe(t)}}}),rq=De(M({},GF),{consumerMarkedDirty(){this.scheduler.schedule(this),this.notifier.notify(12)},destroy(){Tl(this),this.onDestroyFn(),this.cleanup(),this.scheduler.remove(this)}}),oq=De(M({},GF),{consumerMarkedDirty(){this.view[et]|=8192,zl(this.view),this.notifier.notify(13)},destroy(){Tl(this),this.onDestroyFn(),this.cleanup(),this.view[Gs]?.delete(this)}});function aq(t,n,e){let i=Object.create(oq);return i.view=t,i.zone=typeof Zone<"u"?Zone.current:null,i.notifier=n,i.fn=qF(i,e),t[Gs]??=new Set,t[Gs].add(i),i.consumerMarkedDirty(i),i}function sq(t,n,e){let i=Object.create(rq);return i.fn=qF(i,t),i.scheduler=n,i.notifier=e,i.zone=typeof Zone<"u"?Zone.current:null,i.scheduler.add(i),i.notifier.notify(12),i}function qF(t,n){return()=>{n(e=>(t.cleanupFns??=[]).push(e))}}var Ov=Symbol("InputSignalNode#UNSET"),i2=De(M({},fp),{transformFn:void 0,applyValueToInputSignal(t,n){rd(t,n)}});function n2(t,n){let e=Object.create(i2);e.value=t,e.transformFn=n?.transform;function i(){if(kl(e),e.value===Ov){let r=null;throw new ue(-950,r)}return e.value}return i[ln]=e,i}var Ii=class{attributeName;constructor(n){this.attributeName=n}__NG_ELEMENT_ID__=()=>qp(this.attributeName);toString(){return`HostAttributeToken ${this.attributeName}`}},ZM=new T("");ZM.__NG_ELEMENT_ID__=t=>{let n=tn();if(n===null)throw new ue(204,!1);if(n.type&2)return n.value;if(t&8)return null;throw new ue(204,!1)};function bi(t){return new af}function YF(t,n){return n2(t,n)}function xq(t){return n2(Ov,t)}var ne=(YF.required=xq,YF);function QF(t,n){return IM(n)}function Cq(t,n){return AM(n)}var qn=(QF.required=Cq,QF);function KF(t,n){return IM(n)}function wq(t,n){return AM(n)}var fr=(KF.required=wq,KF);function r2(t,n){return hF(n)}function o2(t,n){let e=Object.create(i2),i=new af;e.value=t;function r(){return kl(e),ZF(e.value),e.value}return r[ln]=e,r.asReadonly=Ab.bind(r),r.set=o=>{e.equal(e.value,o)||(rd(e,o),i.emit(o))},r.update=o=>{ZF(e.value),r.set(o(e.value))},r.subscribe=i.subscribe.bind(i),r.destroyRef=i.destroyRef,r}function ZF(t){if(t===Ov)throw new ue(952,!1)}function XF(t,n){return o2(t,n)}function Dq(t){return o2(Ov,t)}var Em=(XF.required=Dq,XF);var WM=new T(""),Eq=new T("");function sf(t){return!t.moduleRef}function Mq(t){let n=sf(t)?t.r3Injector:t.moduleRef.injector,e=n.get(ae);return e.run(()=>{sf(t)?t.r3Injector.resolveInjectorInitializers():t.moduleRef.resolveInjectorInitializers();let i=n.get(hr),r;if(e.runOutsideAngular(()=>{r=e.onError.subscribe({next:i})}),sf(t)){let o=()=>n.destroy(),a=t.platformInjector.get(WM);a.add(o),n.onDestroy(()=>{r.unsubscribe(),a.delete(o)})}else{let o=()=>t.moduleRef.destroy(),a=t.platformInjector.get(WM);a.add(o),t.moduleRef.onDestroy(()=>{Vp(t.allPlatformModules,t.moduleRef),r.unsubscribe(),a.delete(o)})}return Sq(i,e,()=>{let o=n.get(ns),a=o.add(),s=n.get(PM);return s.runInitializers(),s.donePromise.then(()=>{let l=n.get(el,of);if(DF(l||of),!n.get(Eq,!0))return sf(t)?n.get(Gn):(t.allPlatformModules.push(t.moduleRef),t.moduleRef);if(sf(t)){let d=n.get(Gn);return t.rootComponent!==void 0&&d.bootstrap(t.rootComponent),d}else return kq?.(t.moduleRef,t.allPlatformModules),t.moduleRef}).finally(()=>void o.remove(a))})})}var kq;function Sq(t,n,e){try{let i=e();return Xs(i)?i.catch(r=>{throw n.runOutsideAngular(()=>t(r)),r}):i}catch(i){throw n.runOutsideAngular(()=>t(i)),i}}var Iv=null;function Tq(t=[],n){return de.create({name:n,providers:[{provide:kp,useValue:"platform"},{provide:WM,useValue:new Set([()=>Iv=null])},...t]})}function Iq(t=[]){if(Iv)return Iv;let n=Tq(t);return Iv=n,vF(),Aq(n),n}function Aq(t){let n=t.get(sv,null);In(t,()=>{n?.forEach(e=>e())})}var ye=(()=>{class t{static __NG_ELEMENT_ID__=Oq}return t})();function Oq(t){return Rq(tn(),Ne(),(t&16)===16)}function Rq(t,n,e){if(qs(t)&&!e){let i=Bo(t.index,n);return new $l(i,i)}else if(t.type&175){let i=n[mr];return new $l(i,n)}return null}var GM=class{constructor(){}supports(n){return MM(n)}create(n){return new qM(n)}},Pq=(t,n)=>n,qM=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||Pq}forEachItem(n){let e;for(e=this._itHead;e!==null;e=e._next)n(e)}forEachOperation(n){let e=this._itHead,i=this._removalsHead,r=0,o=null;for(;e||i;){let a=!i||e&&e.currentIndex{a=this._trackByFn(r,s),e===null||!Object.is(e.trackById,a)?(e=this._mismatch(e,s,a,r),i=!0):(i&&(e=this._verifyReinsertion(e,s,a,r)),Object.is(e.item,s)||this._addIdentityChange(e,s)),e=e._next,r++}),this.length=r;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,i,r){let o;return n===null?o=this._itTail:(o=n._prev,this._remove(n)),n=this._unlinkedRecords===null?null:this._unlinkedRecords.get(i,null),n!==null?(Object.is(n.item,e)||this._addIdentityChange(n,e),this._reinsertAfter(n,o,r)):(n=this._linkedRecords===null?null:this._linkedRecords.get(i,r),n!==null?(Object.is(n.item,e)||this._addIdentityChange(n,e),this._moveAfter(n,o,r)):n=this._addAfter(new YM(e,i),o,r)),n}_verifyReinsertion(n,e,i,r){let o=this._unlinkedRecords===null?null:this._unlinkedRecords.get(i,null);return o!==null?n=this._reinsertAfter(o,n._prev,r):n.currentIndex!=r&&(n.currentIndex=r,this._addToMoves(n,r)),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,i){this._unlinkedRecords!==null&&this._unlinkedRecords.remove(n);let r=n._prevRemoved,o=n._nextRemoved;return r===null?this._removalsHead=o:r._nextRemoved=o,o===null?this._removalsTail=r:o._prevRemoved=r,this._insertAfter(n,e,i),this._addToMoves(n,i),n}_moveAfter(n,e,i){return this._unlink(n),this._insertAfter(n,e,i),this._addToMoves(n,i),n}_addAfter(n,e,i){return this._insertAfter(n,e,i),this._additionsTail===null?this._additionsTail=this._additionsHead=n:this._additionsTail=this._additionsTail._nextAdded=n,n}_insertAfter(n,e,i){let r=e===null?this._itHead:e._next;return n._next=r,n._prev=e,r===null?this._itTail=n:r._prev=n,e===null?this._itHead=n:e._next=n,this._linkedRecords===null&&(this._linkedRecords=new Av),this._linkedRecords.put(n),n.currentIndex=i,n}_remove(n){return this._addToRemovals(this._unlink(n))}_unlink(n){this._linkedRecords!==null&&this._linkedRecords.remove(n);let e=n._prev,i=n._next;return e===null?this._itHead=i:e._next=i,i===null?this._itTail=e:i._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 Av),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}},QM=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 i;for(i=this._head;i!==null;i=i._nextDup)if((e===null||e<=i.currentIndex)&&Object.is(i.trackById,n))return i;return null}remove(n){let e=n._prevDup,i=n._nextDup;return e===null?this._head=i:e._nextDup=i,i===null?this._tail=e:i._prevDup=e,this._head===null}},Av=class{map=new Map;put(n){let e=n.trackById,i=this.map.get(e);i||(i=new QM,this.map.set(e,i)),i.add(n)}get(n,e){let i=n,r=this.map.get(i);return r?r.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 JF(t,n,e){let i=t.previousIndex;if(i===null)return i;let r=0;return e&&i{class t{factories;static \u0275prov=O({token:t,providedIn:"root",factory:e2});constructor(e){this.factories=e}static create(e,i){if(i!=null){let r=i.factories.slice();e=e.concat(r)}return new t(e)}static extend(e){return{provide:t,useFactory:()=>{let i=u(t,{optional:!0,skipSelf:!0});return t.create(e,i||e2())}}}find(e){let i=this.factories.find(r=>r.supports(e));if(i!=null)return i;throw new ue(901,!1)}}return t})();function a2(t){let{rootComponent:n,appProviders:e,platformProviders:i,platformRef:r}=t;oi(8);try{let o=r?.injector??Iq(i),a=[UF({}),{provide:Oo,useExisting:WF},HO,...e||[]],s=new Wp({providers:a,parent:o,debugName:"",runEnvironmentInitializers:!1});return Mq({r3Injector:s.injector,platformInjector:o,rootComponent:n})}catch(o){return Promise.reject(o)}finally{oi(9)}}function V(t){return typeof t=="boolean"?t:t!=null&&t!=="false"}function ct(t,n=NaN){return!isNaN(parseFloat(t))&&!isNaN(Number(t))?Number(t):n}var $M=Symbol("NOT_SET"),s2=new Set,Fq=De(M({},fp),{consumerIsAlwaysLive:!0,consumerAllowSignalWrites:!0,value:$M,cleanup:null,consumerMarkedDirty(){if(this.sequence.impl.executing){if(this.sequence.lastPhase===null||this.sequence.lastPhase(kl(c),c.value),c.signal[ln]=c,c.registerCleanupFn=d=>(c.cleanup??=new Set).add(d),this.nodes[s]=c,this.hooks[s]=d=>c.phaseFn(d)}}afterRun(){super.afterRun(),this.lastPhase=null}destroy(){super.destroy();for(let n of this.nodes)if(n)try{for(let e of n.cleanup??s2)e()}finally{Tl(n)}}};function l2(t,n){let e=n?.injector??u(de),i=e.get(Oo),r=e.get(pv),o=e.get(Yl,null,{optional:!0});r.impl??=e.get(_M);let a=t;typeof a=="function"&&(a={mixedReadWrite:t});let s=e.get(wd,null,{optional:!0}),l=new KM(r.impl,[a.earlyRead,a.write,a.mixedReadWrite,a.read],s?.view,i,e,o?.snapshot(null));return r.impl.register(l),l}function Mm(t,n){let e=Ka(t),i=n.elementInjector||Ku();return new Wl(e).create(i,n.projectableNodes,n.hostElement,n.environmentInjector,n.directives,n.bindings)}function c2(t){let n=Ka(t);if(!n)return null;let e=new Wl(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 m2=null;function Wo(){return m2}function XM(t){m2??=t}var lf=class{},cf=(()=>{class t{historyGo(e){throw new Error("")}static \u0275fac=function(i){return new(i||t)};static \u0275prov=O({token:t,factory:()=>u(h2),providedIn:"platform"})}return t})(),JM=new T(""),h2=(()=>{class t extends cf{_location;_history;_doc=u(ge);constructor(){super(),this._location=window.location,this._history=window.history}getBaseHrefFromDOM(){return Wo().getBaseHref(this._doc)}onPopState(e){let i=Wo().getGlobalEventTarget(this._doc,"window");return i.addEventListener("popstate",e,!1),()=>i.removeEventListener("popstate",e)}onHashChange(e){let i=Wo().getGlobalEventTarget(this._doc,"window");return i.addEventListener("hashchange",e,!1),()=>i.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,i,r){this._history.pushState(e,i,r)}replaceState(e,i,r){this._history.replaceState(e,i,r)}forward(){this._history.forward()}back(){this._history.back()}historyGo(e=0){this._history.go(e)}getState(){return this._history.state}static \u0275fac=function(i){return new(i||t)};static \u0275prov=O({token:t,factory:()=>new t,providedIn:"platform"})}return t})();function Rv(t,n){return t?n?t.endsWith("/")?n.startsWith("/")?t+n.slice(1):t+n:n.startsWith("/")?t+n:`${t}/${n}`:t:n}function d2(t){let n=t.search(/#|\?|$/);return t[n-1]==="/"?t.slice(0,n-1)+t.slice(n):t}function Da(t){return t&&t[0]!=="?"?`?${t}`:t}var Ea=(()=>{class t{historyGo(e){throw new Error("")}static \u0275fac=function(i){return new(i||t)};static \u0275prov=O({token:t,factory:()=>u(Fv),providedIn:"root"})}return t})(),Pv=new T(""),Fv=(()=>{class t extends Ea{_platformLocation;_baseHref;_removeListenerFns=[];constructor(e,i){super(),this._platformLocation=e,this._baseHref=i??this._platformLocation.getBaseHrefFromDOM()??u(ge).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 Rv(this._baseHref,e)}path(e=!1){let i=this._platformLocation.pathname+Da(this._platformLocation.search),r=this._platformLocation.hash;return r&&e?`${i}${r}`:i}pushState(e,i,r,o){let a=this.prepareExternalUrl(r+Da(o));this._platformLocation.pushState(e,i,a)}replaceState(e,i,r,o){let a=this.prepareExternalUrl(r+Da(o));this._platformLocation.replaceState(e,i,a)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}getState(){return this._platformLocation.getState()}historyGo(e=0){this._platformLocation.historyGo?.(e)}static \u0275fac=function(i){return new(i||t)(pe(cf),pe(Pv,8))};static \u0275prov=O({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),us=(()=>{class t{_subject=new z;_basePath;_locationStrategy;_urlChangeListeners=[];_urlChangeSubscription=null;constructor(e){this._locationStrategy=e;let i=this._locationStrategy.getBaseHref();this._basePath=Vq(d2(u2(i))),this._locationStrategy.onPopState(r=>{this._subject.next({url:this.path(!0),pop:!0,state:r.state,type:r.type})})}ngOnDestroy(){this._urlChangeSubscription?.unsubscribe(),this._urlChangeListeners=[]}path(e=!1){return this.normalize(this._locationStrategy.path(e))}getState(){return this._locationStrategy.getState()}isCurrentPathEqualTo(e,i=""){return this.path()==this.normalize(e+Da(i))}normalize(e){return t.stripTrailingSlash(Lq(this._basePath,u2(e)))}prepareExternalUrl(e){return e&&e[0]!=="/"&&(e="/"+e),this._locationStrategy.prepareExternalUrl(e)}go(e,i="",r=null){this._locationStrategy.pushState(r,"",e,i),this._notifyUrlChangeListeners(this.prepareExternalUrl(e+Da(i)),r)}replaceState(e,i="",r=null){this._locationStrategy.replaceState(r,"",e,i),this._notifyUrlChangeListeners(this.prepareExternalUrl(e+Da(i)),r)}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(i=>{this._notifyUrlChangeListeners(i.url,i.state)}),()=>{let i=this._urlChangeListeners.indexOf(e);this._urlChangeListeners.splice(i,1),this._urlChangeListeners.length===0&&(this._urlChangeSubscription?.unsubscribe(),this._urlChangeSubscription=null)}}_notifyUrlChangeListeners(e="",i){this._urlChangeListeners.forEach(r=>r(e,i))}subscribe(e,i,r){return this._subject.subscribe({next:e,error:i??void 0,complete:r??void 0})}static normalizeQueryParams=Da;static joinWithSlash=Rv;static stripTrailingSlash=d2;static \u0275fac=function(i){return new(i||t)(pe(Ea))};static \u0275prov=O({token:t,factory:()=>Nq(),providedIn:"root"})}return t})();function Nq(){return new us(pe(Ea))}function Lq(t,n){if(!t||!n.startsWith(t))return n;let e=n.substring(t.length);return e===""||["/",";","?","#"].includes(e[0])?e:n}function u2(t){return t.replace(/\/index.html$/,"")}function Vq(t){if(new RegExp("^(https?:)?//").test(t)){let[,e]=t.split(/\/\/[^\/]+/);return e}return t}var l1=(()=>{class t extends Ea{_platformLocation;_baseHref="";_removeListenerFns=[];constructor(e,i){super(),this._platformLocation=e,i!=null&&(this._baseHref=i)}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 i=this._platformLocation.hash??"#";return i.length>0?i.substring(1):i}prepareExternalUrl(e){let i=Rv(this._baseHref,e);return i.length>0?"#"+i:i}pushState(e,i,r,o){let a=this.prepareExternalUrl(r+Da(o))||this._platformLocation.pathname;this._platformLocation.pushState(e,i,a)}replaceState(e,i,r,o){let a=this.prepareExternalUrl(r+Da(o))||this._platformLocation.pathname;this._platformLocation.replaceState(e,i,a)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}getState(){return this._platformLocation.getState()}historyGo(e=0){this._platformLocation.historyGo?.(e)}static \u0275fac=function(i){return new(i||t)(pe(cf),pe(Pv,8))};static \u0275prov=O({token:t,factory:t.\u0275fac})}return t})(),y2={ADP:[void 0,void 0,0],AFN:[void 0,"\u060B",0],ALL:[void 0,void 0,0],AMD:[void 0,"\u058F",2],AOA:[void 0,"Kz"],ARS:[void 0,"$"],AUD:["A$","$"],AZN:[void 0,"\u20BC"],BAM:[void 0,"KM"],BBD:[void 0,"$"],BDT:[void 0,"\u09F3"],BHD:[void 0,void 0,3],BIF:[void 0,void 0,0],BMD:[void 0,"$"],BND:[void 0,"$"],BOB:[void 0,"Bs"],BRL:["R$"],BSD:[void 0,"$"],BWP:[void 0,"P"],BYN:[void 0,void 0,2],BYR:[void 0,void 0,0],BZD:[void 0,"$"],CAD:["CA$","$",2],CHF:[void 0,void 0,2],CLF:[void 0,void 0,4],CLP:[void 0,"$",0],CNY:["CN\xA5","\xA5"],COP:[void 0,"$",2],CRC:[void 0,"\u20A1",2],CUC:[void 0,"$"],CUP:[void 0,"$"],CZK:[void 0,"K\u010D",2],DJF:[void 0,void 0,0],DKK:[void 0,"kr",2],DOP:[void 0,"$"],EGP:[void 0,"E\xA3"],ESP:[void 0,"\u20A7",0],EUR:["\u20AC"],FJD:[void 0,"$"],FKP:[void 0,"\xA3"],GBP:["\xA3"],GEL:[void 0,"\u20BE"],GHS:[void 0,"GH\u20B5"],GIP:[void 0,"\xA3"],GNF:[void 0,"FG",0],GTQ:[void 0,"Q"],GYD:[void 0,"$",2],HKD:["HK$","$"],HNL:[void 0,"L"],HRK:[void 0,"kn"],HUF:[void 0,"Ft",2],IDR:[void 0,"Rp",2],ILS:["\u20AA"],INR:["\u20B9"],IQD:[void 0,void 0,0],IRR:[void 0,void 0,0],ISK:[void 0,"kr",0],ITL:[void 0,void 0,0],JMD:[void 0,"$"],JOD:[void 0,void 0,3],JPY:["\xA5",void 0,0],KHR:[void 0,"\u17DB"],KMF:[void 0,"CF",0],KPW:[void 0,"\u20A9",0],KRW:["\u20A9",void 0,0],KWD:[void 0,void 0,3],KYD:[void 0,"$"],KZT:[void 0,"\u20B8"],LAK:[void 0,"\u20AD",0],LBP:[void 0,"L\xA3",0],LKR:[void 0,"Rs"],LRD:[void 0,"$"],LTL:[void 0,"Lt"],LUF:[void 0,void 0,0],LVL:[void 0,"Ls"],LYD:[void 0,void 0,3],MGA:[void 0,"Ar",0],MGF:[void 0,void 0,0],MMK:[void 0,"K",0],MNT:[void 0,"\u20AE",2],MRO:[void 0,void 0,0],MUR:[void 0,"Rs",2],MXN:["MX$","$"],MYR:[void 0,"RM"],NAD:[void 0,"$"],NGN:[void 0,"\u20A6"],NIO:[void 0,"C$"],NOK:[void 0,"kr",2],NPR:[void 0,"Rs"],NZD:["NZ$","$"],OMR:[void 0,void 0,3],PHP:["\u20B1"],PKR:[void 0,"Rs",2],PLN:[void 0,"z\u0142"],PYG:[void 0,"\u20B2",0],RON:[void 0,"lei"],RSD:[void 0,void 0,0],RUB:[void 0,"\u20BD"],RWF:[void 0,"RF",0],SBD:[void 0,"$"],SEK:[void 0,"kr",2],SGD:[void 0,"$"],SHP:[void 0,"\xA3"],SLE:[void 0,void 0,2],SLL:[void 0,void 0,0],SOS:[void 0,void 0,0],SRD:[void 0,"$"],SSP:[void 0,"\xA3"],STD:[void 0,void 0,0],STN:[void 0,"Db"],SYP:[void 0,"\xA3",0],THB:[void 0,"\u0E3F"],TMM:[void 0,void 0,0],TND:[void 0,void 0,3],TOP:[void 0,"T$"],TRL:[void 0,void 0,0],TRY:[void 0,"\u20BA"],TTD:[void 0,"$"],TWD:["NT$","$",2],TZS:[void 0,void 0,2],UAH:[void 0,"\u20B4"],UGX:[void 0,void 0,0],USD:["$"],UYI:[void 0,void 0,0],UYU:[void 0,"$"],UYW:[void 0,void 0,4],UZS:[void 0,void 0,2],VEF:[void 0,"Bs",2],VND:["\u20AB",void 0,0],VUV:[void 0,void 0,0],XAF:["FCFA",void 0,0],XCD:["EC$","$"],XOF:["F\u202FCFA",void 0,0],XPF:["CFPF",void 0,0],XXX:["\xA4"],YER:[void 0,void 0,0],ZAR:[void 0,"R"],ZMK:[void 0,void 0,0],ZMW:[void 0,"ZK"],ZWD:[void 0,void 0,0]},Wv=(function(t){return t[t.Decimal=0]="Decimal",t[t.Percent=1]="Percent",t[t.Currency=2]="Currency",t[t.Scientific=3]="Scientific",t})(Wv||{});var gr=(function(t){return t[t.Format=0]="Format",t[t.Standalone=1]="Standalone",t})(gr||{}),hi=(function(t){return t[t.Narrow=0]="Narrow",t[t.Abbreviated=1]="Abbreviated",t[t.Wide=2]="Wide",t[t.Short=3]="Short",t})(hi||{}),Gr=(function(t){return t[t.Short=0]="Short",t[t.Medium=1]="Medium",t[t.Long=2]="Long",t[t.Full=3]="Full",t})(Gr||{}),Yn={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 x2(t){return Ir(t)[zi.LocaleId]}function C2(t,n,e){let i=Ir(t),r=[i[zi.DayPeriodsFormat],i[zi.DayPeriodsStandalone]],o=Go(r,n);return Go(o,e)}function w2(t,n,e){let i=Ir(t),r=[i[zi.DaysFormat],i[zi.DaysStandalone]],o=Go(r,n);return Go(o,e)}function D2(t,n,e){let i=Ir(t),r=[i[zi.MonthsFormat],i[zi.MonthsStandalone]],o=Go(r,n);return Go(o,e)}function E2(t,n){let i=Ir(t)[zi.Eras];return Go(i,n)}function df(t,n){let e=Ir(t);return Go(e[zi.DateFormat],n)}function uf(t,n){let e=Ir(t);return Go(e[zi.TimeFormat],n)}function mf(t,n){let i=Ir(t)[zi.DateTimeFormat];return Go(i,n)}function ka(t,n){let e=Ir(t),i=e[zi.NumberSymbols][n];if(typeof i>"u"){if(n===Yn.CurrencyDecimal)return e[zi.NumberSymbols][Yn.Decimal];if(n===Yn.CurrencyGroup)return e[zi.NumberSymbols][Yn.Group]}return i}function c1(t,n){return Ir(t)[zi.NumberFormats][n]}function Bq(t){return Ir(t)[zi.Currencies]}function M2(t){if(!t[zi.ExtraData])throw new ue(2303,!1)}function k2(t){let n=Ir(t);return M2(n),(n[zi.ExtraData][2]||[]).map(i=>typeof i=="string"?e1(i):[e1(i[0]),e1(i[1])])}function S2(t,n,e){let i=Ir(t);M2(i);let r=[i[zi.ExtraData][0],i[zi.ExtraData][1]],o=Go(r,n)||[];return Go(o,e)||[]}function Go(t,n){for(let e=n;e>-1;e--)if(typeof t[e]<"u")return t[e];throw new ue(2304,!1)}function e1(t){let[n,e]=t.split(":");return{hours:+n,minutes:+e}}function T2(t,n,e="en"){let i=Bq(e)[t]||y2[t]||[],r=i[1];return n==="narrow"&&typeof r=="string"?r:i[0]||t}var jq=2;function I2(t){let n,e=y2[t];return e&&(n=e[2]),typeof n=="number"?n:jq}var Hq=/^(\d{4,})-?(\d\d)-?(\d\d)(?:T(\d\d)(?::?(\d\d)(?::?(\d\d)(?:\.(\d+))?)?)?(Z|([+-])(\d\d):?(\d\d))?)?$/,Nv={},zq=/((?:[^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]*)/;function A2(t,n,e,i){let r=Zq(t);n=tl(e,n)||n;let a=[],s;for(;n;)if(s=zq.exec(n),s){a=a.concat(s.slice(1));let d=a.pop();if(!d)break;n=d}else{a.push(n);break}let l=r.getTimezoneOffset();i&&(l=R2(i,l),r=Kq(r,i));let c="";return a.forEach(d=>{let m=Yq(d);c+=m?m(r,e,l):d==="''"?"'":d.replace(/(^'|'$)/g,"").replace(/''/g,"'")}),c}function Hv(t,n,e){let i=new Date(0);return i.setFullYear(t,n,e),i.setHours(0,0,0),i}function tl(t,n){let e=x2(t);if(Nv[e]??={},Nv[e][n])return Nv[e][n];let i="";switch(n){case"shortDate":i=df(t,Gr.Short);break;case"mediumDate":i=df(t,Gr.Medium);break;case"longDate":i=df(t,Gr.Long);break;case"fullDate":i=df(t,Gr.Full);break;case"shortTime":i=uf(t,Gr.Short);break;case"mediumTime":i=uf(t,Gr.Medium);break;case"longTime":i=uf(t,Gr.Long);break;case"fullTime":i=uf(t,Gr.Full);break;case"short":let r=tl(t,"shortTime"),o=tl(t,"shortDate");i=Lv(mf(t,Gr.Short),[r,o]);break;case"medium":let a=tl(t,"mediumTime"),s=tl(t,"mediumDate");i=Lv(mf(t,Gr.Medium),[a,s]);break;case"long":let l=tl(t,"longTime"),c=tl(t,"longDate");i=Lv(mf(t,Gr.Long),[l,c]);break;case"full":let d=tl(t,"fullTime"),m=tl(t,"fullDate");i=Lv(mf(t,Gr.Full),[d,m]);break}return i&&(Nv[e][n]=i),i}function Lv(t,n){return n&&(t=t.replace(/\{([^}]+)}/g,function(e,i){return n!=null&&i in n?n[i]:e})),t}function Ma(t,n,e="-",i,r){let o="";(t<0||r&&t<=0)&&(r?t=-t+1:(t=-t,o=e));let a=String(t);for(;a.length0||s>-e)&&(s+=e),t===3)s===0&&e===-12&&(s=12);else if(t===6)return Uq(s,n);let l=ka(a,Yn.MinusSign);return Ma(s,n,l,i,r)}}function $q(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 ue(2301,!1)}}function Ci(t,n,e=gr.Format,i=!1){return function(r,o){return Wq(r,o,t,n,e,i)}}function Wq(t,n,e,i,r,o){switch(e){case 2:return D2(n,r,i)[t.getMonth()];case 1:return w2(n,r,i)[t.getDay()];case 0:let a=t.getHours(),s=t.getMinutes();if(o){let c=k2(n),d=S2(n,r,i),m=c.findIndex(f=>{if(Array.isArray(f)){let[b,v]=f,w=a>=b.hours&&s>=b.minutes,x=a0?Math.floor(r/60):Math.ceil(r/60);switch(t){case 0:return(r>=0?"+":"")+Ma(a,2,o)+Ma(Math.abs(r%60),2,o);case 1:return"GMT"+(r>=0?"+":"")+Ma(a,1,o);case 2:return"GMT"+(r>=0?"+":"")+Ma(a,2,o)+":"+Ma(Math.abs(r%60),2,o);case 3:return i===0?"Z":(r>=0?"+":"")+Ma(a,2,o)+":"+Ma(Math.abs(r%60),2,o);default:throw new ue(2310,!1)}}}var Gq=0,jv=4;function qq(t){let n=Hv(t,Gq,1).getDay();return Hv(t,0,1+(n<=jv?jv:jv+7)-n)}function O2(t){let n=t.getDay(),e=n===0?-3:jv-n;return Hv(t.getFullYear(),t.getMonth(),t.getDate()+e)}function t1(t,n=!1){return function(e,i){let r;if(n){let o=new Date(e.getFullYear(),e.getMonth(),1).getDay()-1,a=e.getDate();r=1+Math.floor((a+o)/7)}else{let o=O2(e),a=qq(o.getFullYear()),s=o.getTime()-a.getTime();r=1+Math.round(s/6048e5)}return Ma(r,t,ka(i,Yn.MinusSign))}}function Bv(t,n=!1){return function(e,i){let o=O2(e).getFullYear();return Ma(o,t,ka(i,Yn.MinusSign),n)}}var i1={};function Yq(t){if(i1[t])return i1[t];let n;switch(t){case"G":case"GG":case"GGG":n=Ci(3,hi.Abbreviated);break;case"GGGG":n=Ci(3,hi.Wide);break;case"GGGGG":n=Ci(3,hi.Narrow);break;case"y":n=dn(0,1,0,!1,!0);break;case"yy":n=dn(0,2,0,!0,!0);break;case"yyy":n=dn(0,3,0,!1,!0);break;case"yyyy":n=dn(0,4,0,!1,!0);break;case"Y":n=Bv(1);break;case"YY":n=Bv(2,!0);break;case"YYY":n=Bv(3);break;case"YYYY":n=Bv(4);break;case"M":case"L":n=dn(1,1,1);break;case"MM":case"LL":n=dn(1,2,1);break;case"MMM":n=Ci(2,hi.Abbreviated);break;case"MMMM":n=Ci(2,hi.Wide);break;case"MMMMM":n=Ci(2,hi.Narrow);break;case"LLL":n=Ci(2,hi.Abbreviated,gr.Standalone);break;case"LLLL":n=Ci(2,hi.Wide,gr.Standalone);break;case"LLLLL":n=Ci(2,hi.Narrow,gr.Standalone);break;case"w":n=t1(1);break;case"ww":n=t1(2);break;case"W":n=t1(1,!0);break;case"d":n=dn(2,1);break;case"dd":n=dn(2,2);break;case"c":case"cc":n=dn(7,1);break;case"ccc":n=Ci(1,hi.Abbreviated,gr.Standalone);break;case"cccc":n=Ci(1,hi.Wide,gr.Standalone);break;case"ccccc":n=Ci(1,hi.Narrow,gr.Standalone);break;case"cccccc":n=Ci(1,hi.Short,gr.Standalone);break;case"E":case"EE":case"EEE":n=Ci(1,hi.Abbreviated);break;case"EEEE":n=Ci(1,hi.Wide);break;case"EEEEE":n=Ci(1,hi.Narrow);break;case"EEEEEE":n=Ci(1,hi.Short);break;case"a":case"aa":case"aaa":n=Ci(0,hi.Abbreviated);break;case"aaaa":n=Ci(0,hi.Wide);break;case"aaaaa":n=Ci(0,hi.Narrow);break;case"b":case"bb":case"bbb":n=Ci(0,hi.Abbreviated,gr.Standalone,!0);break;case"bbbb":n=Ci(0,hi.Wide,gr.Standalone,!0);break;case"bbbbb":n=Ci(0,hi.Narrow,gr.Standalone,!0);break;case"B":case"BB":case"BBB":n=Ci(0,hi.Abbreviated,gr.Format,!0);break;case"BBBB":n=Ci(0,hi.Wide,gr.Format,!0);break;case"BBBBB":n=Ci(0,hi.Narrow,gr.Format,!0);break;case"h":n=dn(3,1,-12);break;case"hh":n=dn(3,2,-12);break;case"H":n=dn(3,1);break;case"HH":n=dn(3,2);break;case"m":n=dn(4,1);break;case"mm":n=dn(4,2);break;case"s":n=dn(5,1);break;case"ss":n=dn(5,2);break;case"S":n=dn(6,1);break;case"SS":n=dn(6,2);break;case"SSS":n=dn(6,3);break;case"Z":case"ZZ":case"ZZZ":n=Vv(0);break;case"ZZZZZ":n=Vv(3);break;case"O":case"OO":case"OOO":case"z":case"zz":case"zzz":n=Vv(1);break;case"OOOO":case"ZZZZ":case"zzzz":n=Vv(2);break;default:return null}return i1[t]=n,n}function R2(t,n){t=t.replace(/:/g,"");let e=Date.parse("Jan 01, 1970 00:00:00 "+t)/6e4;return isNaN(e)?n:e}function Qq(t,n){return t=new Date(t.getTime()),t.setMinutes(t.getMinutes()+n),t}function Kq(t,n,e){let r=t.getTimezoneOffset(),o=R2(n,r);return Qq(t,-1*(o-r))}function Zq(t){if(p2(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[r,o=1,a=1]=t.split("-").map(s=>+s);return Hv(r,o-1,a)}let e=parseFloat(t);if(!isNaN(t-e))return new Date(e);let i;if(i=t.match(Hq))return Xq(i)}let n=new Date(t);if(!p2(n))throw new ue(2311,!1);return n}function Xq(t){let n=new Date(0),e=0,i=0,r=t[8]?n.setUTCFullYear:n.setFullYear,o=t[8]?n.setUTCHours:n.setHours;t[9]&&(e=Number(t[9]+t[10]),i=Number(t[9]+t[11])),r.call(n,Number(t[1]),Number(t[2])-1,Number(t[3]));let a=Number(t[4]||0)-e,s=Number(t[5]||0)-i,l=Number(t[6]||0),c=Math.floor(parseFloat("0."+(t[7]||0))*1e3);return o.call(n,a,s,l,c),n}function p2(t){return t instanceof Date&&!isNaN(t.valueOf())}var Jq=/^(\d+)?\.((\d+)(-(\d+))?)?$/,f2=22,zv=".",hf="0",eY=";",tY=",",n1="#",g2="\xA4";function P2(t,n,e,i,r,o,a=!1){let s="",l=!1;if(!isFinite(t))s=ka(e,Yn.Infinity);else{let c=nY(t);a&&(c=iY(c));let d=n.minInt,m=n.minFrac,f=n.maxFrac;if(o){let P=o.match(Jq);if(P===null)throw new ue(2306,!1);let W=P[1],Z=P[3],K=P[5];W!=null&&(d=r1(W)),Z!=null&&(m=r1(Z)),K!=null?f=r1(K):Z!=null&&m>f&&(f=m)}rY(c,m,f);let b=c.digits,v=c.integerLen,w=c.exponent,x=[];for(l=b.every(P=>!P);v0?x=b.splice(v,b.length):(x=b,b=[0]);let D=[];for(b.length>=n.lgSize&&D.unshift(b.splice(-n.lgSize,b.length).join(""));b.length>n.gSize;)D.unshift(b.splice(-n.gSize,b.length).join(""));b.length&&D.unshift(b.join("")),s=D.join(ka(e,i)),x.length&&(s+=ka(e,r)+x.join("")),w&&(s+=ka(e,Yn.Exponential)+"+"+w)}return t<0&&!l?s=n.negPre+s+n.negSuf:s=n.posPre+s+n.posSuf,s}function F2(t,n,e,i,r){let o=c1(n,Wv.Currency),a=L2(o,ka(n,Yn.MinusSign));return a.minFrac=I2(i),a.maxFrac=a.minFrac,P2(t,a,n,Yn.CurrencyGroup,Yn.CurrencyDecimal,r).replace(g2,e).replace(g2,"").trim()}function N2(t,n,e){let i=c1(n,Wv.Decimal),r=L2(i,ka(n,Yn.MinusSign));return P2(t,r,n,Yn.Group,Yn.Decimal,e)}function L2(t,n="-"){let e={minInt:1,minFrac:0,maxFrac:0,posPre:"",posSuf:"",negPre:"",negSuf:"",gSize:0,lgSize:0},i=t.split(eY),r=i[0],o=i[1],a=r.indexOf(zv)!==-1?r.split(zv):[r.substring(0,r.lastIndexOf(hf)+1),r.substring(r.lastIndexOf(hf)+1)],s=a[0],l=a[1]||"";e.posPre=s.substring(0,s.indexOf(n1));for(let d=0;d-1&&(n=n.replace(zv,"")),(o=n.search(/e/i))>0?(r<0&&(r=o),r+=+n.slice(o+1),n=n.substring(0,o)):r<0&&(r=n.length),o=0;n.charAt(o)===hf;o++);if(o===(s=n.length))i=[0],r=1;else{for(s--;n.charAt(s)===hf;)s--;for(r-=o,i=[],a=0;o<=s;o++,a++)i[a]=Number(n.charAt(o))}return r>f2&&(i=i.splice(0,f2-1),e=r-1,r=1),{digits:i,exponent:e,integerLen:r}}function rY(t,n,e){if(n>e)throw new ue(2307,!1);let i=t.digits,r=i.length-t.integerLen,o=Math.min(Math.max(n,r),e),a=o+t.integerLen,s=i[a];if(a>0){i.splice(Math.max(t.integerLen,a));for(let m=a;m=5)if(a-1<0){for(let m=0;m>a;m--)i.unshift(0),t.integerLen++;i.unshift(1),t.integerLen++}else i[a-1]++;for(;r=c?v.pop():l=!1),f>=10?1:0},0);d&&(i.unshift(d),t.integerLen++)}function r1(t){let n=parseInt(t);if(isNaN(n))throw new ue(2305,!1);return n}var o1=/\s+/,_2=[],Pd=(()=>{class t{_ngEl;_renderer;initialClasses=_2;rawClass;stateMap=new Map;constructor(e,i){this._ngEl=e,this._renderer=i}set klass(e){this.initialClasses=e!=null?e.trim().split(o1):_2}set ngClass(e){this.rawClass=typeof e=="string"?e.trim().split(o1):e}ngDoCheck(){for(let i of this.initialClasses)this._updateState(i,!0);let e=this.rawClass;if(Array.isArray(e)||e instanceof Set)for(let i of e)this._updateState(i,!0);else if(e!=null)for(let i of Object.keys(e))this._updateState(i,!!e[i]);this._applyStateDiff()}_updateState(e,i){let r=this.stateMap.get(e);r!==void 0?(r.enabled!==i&&(r.changed=!0,r.enabled=i),r.touched=!0):this.stateMap.set(e,{enabled:i,changed:!0,touched:!0})}_applyStateDiff(){for(let e of this.stateMap){let i=e[0],r=e[1];r.changed?(this._toggleClass(i,r.enabled),r.changed=!1):r.touched||(r.enabled&&this._toggleClass(i,!1),this.stateMap.delete(i)),r.touched=!1}}_toggleClass(e,i){e=e.trim(),e.length>0&&e.split(o1).forEach(r=>{i?this._renderer.addClass(this._ngEl.nativeElement,r):this._renderer.removeClass(this._ngEl.nativeElement,r)})}static \u0275fac=function(i){return new(i||t)(_e(q),_e(je))};static \u0275dir=F({type:t,selectors:[["","ngClass",""]],inputs:{klass:[0,"class","klass"],ngClass:"ngClass"}})}return t})();var Uv=class{$implicit;ngForOf;index;count;constructor(n,e,i,r){this.$implicit=n,this.ngForOf=e,this.index=i,this.count=r}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}},qr=(()=>{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,i,r){this._viewContainer=e,this._template=i,this._differs=r}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 i=this._viewContainer;e.forEachOperation((r,o,a)=>{if(r.previousIndex==null)i.createEmbeddedView(this._template,new Uv(r.item,this._ngForOf,-1,-1),a===null?void 0:a);else if(a==null)i.remove(o===null?void 0:o);else if(o!==null){let s=i.get(o);i.move(s,a),b2(s,r)}});for(let r=0,o=i.length;r{let o=i.get(r.currentIndex);b2(o,r)})}static ngTemplateContextGuard(e,i){return!0}static \u0275fac=function(i){return new(i||t)(_e(nt),_e(te),_e(ds))};static \u0275dir=F({type:t,selectors:[["","ngFor","","ngForOf",""]],inputs:{ngForOf:"ngForOf",ngForTrackBy:"ngForTrackBy",ngForTemplate:"ngForTemplate"}})}return t})();function b2(t,n){t.context.$implicit=n.item}var li=(()=>{class t{_viewContainer;_context=new $v;_thenTemplateRef=null;_elseTemplateRef=null;_thenViewRef=null;_elseViewRef=null;constructor(e,i){this._viewContainer=e,this._thenTemplateRef=i}set ngIf(e){this._context.$implicit=this._context.ngIf=e,this._updateView()}set ngIfThen(e){v2(e,!1),this._thenTemplateRef=e,this._thenViewRef=null,this._updateView()}set ngIfElse(e){v2(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,i){return!0}static \u0275fac=function(i){return new(i||t)(_e(nt),_e(te))};static \u0275dir=F({type:t,selectors:[["","ngIf",""]],inputs:{ngIf:"ngIf",ngIfThen:"ngIfThen",ngIfElse:"ngIfElse"}})}return t})(),$v=class{$implicit=null;ngIf=null};function v2(t,n){if(t&&!t.createEmbeddedView)throw new ue(2020,!1)}var Fn=(()=>{class t{_viewContainerRef;_viewRef=null;ngTemplateOutletContext=null;ngTemplateOutlet=null;ngTemplateOutletInjector=null;constructor(e){this._viewContainerRef=e}ngOnChanges(e){if(this._shouldRecreateView(e)){let i=this._viewContainerRef;if(this._viewRef&&i.remove(i.indexOf(this._viewRef)),!this.ngTemplateOutlet){this._viewRef=null;return}let r=this._createContextForwardProxy();this._viewRef=i.createEmbeddedView(this.ngTemplateOutlet,r,{injector:this.ngTemplateOutletInjector??void 0})}}_shouldRecreateView(e){return!!e.ngTemplateOutlet||!!e.ngTemplateOutletInjector}_createContextForwardProxy(){return new Proxy({},{set:(e,i,r)=>this.ngTemplateOutletContext?Reflect.set(this.ngTemplateOutletContext,i,r):!1,get:(e,i,r)=>{if(this.ngTemplateOutletContext)return Reflect.get(this.ngTemplateOutletContext,i,r)}})}static \u0275fac=function(i){return new(i||t)(_e(nt))};static \u0275dir=F({type:t,selectors:[["","ngTemplateOutlet",""]],inputs:{ngTemplateOutletContext:"ngTemplateOutletContext",ngTemplateOutlet:"ngTemplateOutlet",ngTemplateOutletInjector:"ngTemplateOutletInjector"},features:[Ae]})}return t})();function pf(t,n){return new ue(2100,!1)}var a1=class{createSubscription(n,e,i){return Ti(()=>n.subscribe({next:e,error:i}))}dispose(n){Ti(()=>n.unsubscribe())}},s1=class{createSubscription(n,e,i){return n.then(r=>e?.(r),r=>i?.(r)),{unsubscribe:()=>{e=null,i=null}}}dispose(n){n.unsubscribe()}},oY=new s1,aY=new a1,rn=(()=>{class t{_ref;_latestValue=null;markForCheckOnValueUpdate=!0;_subscription=null;_obj=null;_strategy=null;applicationErrorHandler=u(hr);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,i=>this._updateLatestValue(e,i),i=>this.applicationErrorHandler(i))}_selectStrategy(e){if(Xs(e))return oY;if(Ev(e))return aY;throw pf(t,e)}_dispose(){this._strategy.dispose(this._subscription),this._latestValue=null,this._subscription=null,this._obj=null}_updateLatestValue(e,i){e===this._obj&&(this._latestValue=i,this.markForCheckOnValueUpdate&&this._ref?.markForCheck())}static \u0275fac=function(i){return new(i||t)(_e(ye,16))};static \u0275pipe=Wr({name:"async",type:t,pure:!1})}return t})();var sY="mediumDate",V2=new T(""),B2=new T(""),Sa=(()=>{class t{locale;defaultTimezone;defaultOptions;constructor(e,i,r){this.locale=e,this.defaultTimezone=i,this.defaultOptions=r}transform(e,i,r,o){if(e==null||e===""||e!==e)return null;try{let a=i??this.defaultOptions?.dateFormat??sY,s=r??this.defaultOptions?.timezone??this.defaultTimezone??void 0;return A2(e,a,o||this.locale,s)}catch(a){throw pf(t,a.message)}}static \u0275fac=function(i){return new(i||t)(_e(el,16),_e(V2,24),_e(B2,24))};static \u0275pipe=Wr({name:"date",type:t,pure:!0})}return t})();var ff=(()=>{class t{_locale;constructor(e){this._locale=e}transform(e,i,r){if(!j2(e))return null;r||=this._locale;try{let o=H2(e);return N2(o,r,i)}catch(o){throw pf(t,o.message)}}static \u0275fac=function(i){return new(i||t)(_e(el,16))};static \u0275pipe=Wr({name:"number",type:t,pure:!0})}return t})();var il=(()=>{class t{_locale;_defaultCurrencyCode;constructor(e,i="USD"){this._locale=e,this._defaultCurrencyCode=i}transform(e,i=this._defaultCurrencyCode,r="symbol",o,a){if(!j2(e))return null;a||=this._locale,typeof r=="boolean"&&(r=r?"symbol":"code");let s=i||this._defaultCurrencyCode;r!=="code"&&(r==="symbol"||r==="symbol-narrow"?s=T2(s,r==="symbol"?"wide":"narrow",a):s=r);try{let l=H2(e);return F2(l,a,s,i,o)}catch(l){throw pf(t,l.message)}}static \u0275fac=function(i){return new(i||t)(_e(el,16),_e(HM,16))};static \u0275pipe=Wr({name:"currency",type:t,pure:!0})}return t})();function j2(t){return!(t==null||t===""||t!==t)}function H2(t){if(typeof t=="string"&&!isNaN(Number(t)-parseFloat(t)))return Number(t);if(typeof t!="number")throw new ue(2309,!1);return t}var d1=(()=>{class t{transform(e,i,r){if(e==null)return null;if(!(typeof e=="string"||Array.isArray(e)))throw pf(t,e);return e.slice(i,r)}static \u0275fac=function(i){return new(i||t)};static \u0275pipe=Wr({name:"slice",type:t,pure:!1})}return t})();var gt=(()=>{class t{static \u0275fac=function(i){return new(i||t)};static \u0275mod=ee({type:t});static \u0275inj=J({})}return t})();function gf(t,n){n=encodeURIComponent(n);for(let e of t.split(";")){let i=e.indexOf("="),[r,o]=i==-1?[e,""]:[e.slice(0,i),e.slice(i+1)];if(r.trim()===n)return decodeURIComponent(o)}return null}var Fd=class{};var m1="browser",lY="server";function z2(t){return t===m1}function U2(t){return t===lY}var h1=(()=>{class t{static \u0275prov=O({token:t,providedIn:"root",factory:()=>new u1(u(ge),window)})}return t})(),u1=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(De(M({},e),{left:n[0],top:n[1]}))}scrollToAnchor(n,e){let i=cY(this.document,n);i&&(this.scrollToElement(i,e),i.focus())}setHistoryScrollRestoration(n){try{this.window.history.scrollRestoration=n}catch{console.warn(Ro(2400,!1))}}scrollToElement(n,e){let i=n.getBoundingClientRect(),r=i.left+this.window.pageXOffset,o=i.top+this.window.pageYOffset,a=this.offset();this.window.scrollTo(De(M({},e),{left:r-a[0],top:o-a[1]}))}};function cY(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 i=t.createTreeWalker(t.body,NodeFilter.SHOW_ELEMENT),r=i.currentNode;for(;r;){let o=r.shadowRoot;if(o){let a=o.getElementById(n)||o.querySelector(`[name="${n}"]`);if(a)return a}r=i.nextNode()}}return null}var _f=class{_doc;constructor(n){this._doc=n}manager},Gv=(()=>{class t extends _f{constructor(e){super(e)}supports(e){return!0}addEventListener(e,i,r,o){return e.addEventListener(i,r,o),()=>this.removeEventListener(e,i,r,o)}removeEventListener(e,i,r,o){return e.removeEventListener(i,r,o)}static \u0275fac=function(i){return new(i||t)(pe(ge))};static \u0275prov=O({token:t,factory:t.\u0275fac})}return t})(),Yv=new T(""),b1=(()=>{class t{_zone;_plugins;_eventNameToPlugin=new Map;constructor(e,i){this._zone=i,e.forEach(a=>{a.manager=this});let r=e.filter(a=>!(a instanceof Gv));this._plugins=r.slice().reverse();let o=e.find(a=>a instanceof Gv);o&&this._plugins.push(o)}addEventListener(e,i,r,o){return this._findPluginFor(i).addEventListener(e,i,r,o)}getZone(){return this._zone}_findPluginFor(e){let i=this._eventNameToPlugin.get(e);if(i)return i;if(i=this._plugins.find(o=>o.supports(e)),!i)throw new ue(5101,!1);return this._eventNameToPlugin.set(e,i),i}static \u0275fac=function(i){return new(i||t)(pe(Yv),pe(ae))};static \u0275prov=O({token:t,factory:t.\u0275fac})}return t})(),p1="ng-app-id";function $2(t){for(let n of t)n.remove()}function W2(t,n){let e=n.createElement("style");return e.textContent=t,e}function dY(t,n,e,i){let r=t.head?.querySelectorAll(`style[${p1}="${n}"],link[${p1}="${n}"]`);if(r)for(let o of r)o.removeAttribute(p1),o instanceof HTMLLinkElement?i.set(o.href.slice(o.href.lastIndexOf("/")+1),{usage:0,elements:[o]}):o.textContent&&e.set(o.textContent,{usage:0,elements:[o]})}function g1(t,n){let e=n.createElement("link");return e.setAttribute("rel","stylesheet"),e.setAttribute("href",t),e}var v1=(()=>{class t{doc;appId;nonce;inline=new Map;external=new Map;hosts=new Set;constructor(e,i,r,o={}){this.doc=e,this.appId=i,this.nonce=r,dY(e,i,this.inline,this.external),this.hosts.add(e.head)}addStyles(e,i){for(let r of e)this.addUsage(r,this.inline,W2);i?.forEach(r=>this.addUsage(r,this.external,g1))}removeStyles(e,i){for(let r of e)this.removeUsage(r,this.inline);i?.forEach(r=>this.removeUsage(r,this.external))}addUsage(e,i,r){let o=i.get(e);o?o.usage++:i.set(e,{usage:1,elements:[...this.hosts].map(a=>this.addElement(a,r(e,this.doc)))})}removeUsage(e,i){let r=i.get(e);r&&(r.usage--,r.usage<=0&&($2(r.elements),i.delete(e)))}ngOnDestroy(){for(let[,{elements:e}]of[...this.inline,...this.external])$2(e);this.hosts.clear()}addHost(e){this.hosts.add(e);for(let[i,{elements:r}]of this.inline)r.push(this.addElement(e,W2(i,this.doc)));for(let[i,{elements:r}]of this.external)r.push(this.addElement(e,g1(i,this.doc)))}removeHost(e){this.hosts.delete(e)}addElement(e,i){return this.nonce&&i.setAttribute("nonce",this.nonce),e.appendChild(i)}static \u0275fac=function(i){return new(i||t)(pe(ge),pe(ql),pe(gm,8),pe(Ks))};static \u0275prov=O({token:t,factory:t.\u0275fac})}return t})(),f1={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"},y1=/%COMP%/g;var q2="%COMP%",uY=`_nghost-${q2}`,mY=`_ngcontent-${q2}`,hY=!0,pY=new T("",{providedIn:"root",factory:()=>hY});function fY(t){return mY.replace(y1,t)}function gY(t){return uY.replace(y1,t)}function Y2(t,n){return n.map(e=>e.replace(y1,t))}var x1=(()=>{class t{eventManager;sharedStylesHost;appId;removeStylesOnCompDestroy;doc;ngZone;nonce;tracingService;rendererByCompId=new Map;defaultRenderer;platformIsServer;constructor(e,i,r,o,a,s,l=null,c=null){this.eventManager=e,this.sharedStylesHost=i,this.appId=r,this.removeStylesOnCompDestroy=o,this.doc=a,this.ngZone=s,this.nonce=l,this.tracingService=c,this.platformIsServer=!1,this.defaultRenderer=new bf(e,a,s,this.platformIsServer,this.tracingService)}createRenderer(e,i){if(!e||!i)return this.defaultRenderer;let r=this.getOrCreateRenderer(e,i);return r instanceof qv?r.applyToHost(e):r instanceof vf&&r.applyStyles(),r}getOrCreateRenderer(e,i){let r=this.rendererByCompId,o=r.get(i.id);if(!o){let a=this.doc,s=this.ngZone,l=this.eventManager,c=this.sharedStylesHost,d=this.removeStylesOnCompDestroy,m=this.platformIsServer,f=this.tracingService;switch(i.encapsulation){case Ys.Emulated:o=new qv(l,c,i,this.appId,d,a,s,m,f);break;case Ys.ShadowDom:return new _1(l,c,e,i,a,s,this.nonce,m,f);default:o=new vf(l,c,i,d,a,s,m,f);break}r.set(i.id,o)}return o}ngOnDestroy(){this.rendererByCompId.clear()}componentReplaced(e){this.rendererByCompId.delete(e)}static \u0275fac=function(i){return new(i||t)(pe(b1),pe(v1),pe(ql),pe(pY),pe(ge),pe(ae),pe(gm),pe(Yl,8))};static \u0275prov=O({token:t,factory:t.\u0275fac})}return t})(),bf=class{eventManager;doc;ngZone;platformIsServer;tracingService;data=Object.create(null);throwOnSyntheticProps=!0;constructor(n,e,i,r,o){this.eventManager=n,this.doc=e,this.ngZone=i,this.platformIsServer=r,this.tracingService=o}destroy(){}destroyNode=null;createElement(n,e){return e?this.doc.createElementNS(f1[e]||e,n):this.doc.createElement(n)}createComment(n){return this.doc.createComment(n)}createText(n){return this.doc.createTextNode(n)}appendChild(n,e){(G2(n)?n.content:n).appendChild(e)}insertBefore(n,e,i){n&&(G2(n)?n.content:n).insertBefore(e,i)}removeChild(n,e){e.remove()}selectRootElement(n,e){let i=typeof n=="string"?this.doc.querySelector(n):n;if(!i)throw new ue(-5104,!1);return e||(i.textContent=""),i}parentNode(n){return n.parentNode}nextSibling(n){return n.nextSibling}setAttribute(n,e,i,r){if(r){e=r+":"+e;let o=f1[r];o?n.setAttributeNS(o,e,i):n.setAttribute(e,i)}else n.setAttribute(e,i)}removeAttribute(n,e,i){if(i){let r=f1[i];r?n.removeAttributeNS(r,e):n.removeAttribute(`${i}:${e}`)}else n.removeAttribute(e)}addClass(n,e){n.classList.add(e)}removeClass(n,e){n.classList.remove(e)}setStyle(n,e,i,r){r&(os.DashCase|os.Important)?n.style.setProperty(e,i,r&os.Important?"important":""):n.style[e]=i}removeStyle(n,e,i){i&os.DashCase?n.style.removeProperty(e):n.style[e]=""}setProperty(n,e,i){n!=null&&(n[e]=i)}setValue(n,e){n.nodeValue=e}listen(n,e,i,r){if(typeof n=="string"&&(n=Wo().getGlobalEventTarget(this.doc,n),!n))throw new ue(5102,!1);let o=this.decoratePreventDefault(i);return this.tracingService?.wrapEventListener&&(o=this.tracingService.wrapEventListener(n,e,o)),this.eventManager.addEventListener(n,e,o,r)}decoratePreventDefault(n){return e=>{if(e==="__ngUnwrap__")return n;n(e)===!1&&e.preventDefault()}}};function G2(t){return t.tagName==="TEMPLATE"&&t.content!==void 0}var _1=class extends bf{sharedStylesHost;hostEl;shadowRoot;constructor(n,e,i,r,o,a,s,l,c){super(n,o,a,l,c),this.sharedStylesHost=e,this.hostEl=i,this.shadowRoot=i.attachShadow({mode:"open"}),this.sharedStylesHost.addHost(this.shadowRoot);let d=r.styles;d=Y2(r.id,d);for(let f of d){let b=document.createElement("style");s&&b.setAttribute("nonce",s),b.textContent=f,this.shadowRoot.appendChild(b)}let m=r.getExternalStyles?.();if(m)for(let f of m){let b=g1(f,o);s&&b.setAttribute("nonce",s),this.shadowRoot.appendChild(b)}}nodeOrShadowRoot(n){return n===this.hostEl?this.shadowRoot:n}appendChild(n,e){return super.appendChild(this.nodeOrShadowRoot(n),e)}insertBefore(n,e,i){return super.insertBefore(this.nodeOrShadowRoot(n),e,i)}removeChild(n,e){return super.removeChild(null,e)}parentNode(n){return this.nodeOrShadowRoot(super.parentNode(this.nodeOrShadowRoot(n)))}destroy(){this.sharedStylesHost.removeHost(this.shadowRoot)}},vf=class extends bf{sharedStylesHost;removeStylesOnCompDestroy;styles;styleUrls;constructor(n,e,i,r,o,a,s,l,c){super(n,o,a,s,l),this.sharedStylesHost=e,this.removeStylesOnCompDestroy=r;let d=i.styles;this.styles=c?Y2(c,d):d,this.styleUrls=i.getExternalStyles?.(c)}applyStyles(){this.sharedStylesHost.addStyles(this.styles,this.styleUrls)}destroy(){this.removeStylesOnCompDestroy&&kd.size===0&&this.sharedStylesHost.removeStyles(this.styles,this.styleUrls)}},qv=class extends vf{contentAttr;hostAttr;constructor(n,e,i,r,o,a,s,l,c){let d=r+"-"+i.id;super(n,e,i,o,a,s,l,c,d),this.contentAttr=fY(d),this.hostAttr=gY(d)}applyToHost(n){this.applyStyles(),this.setAttribute(n,this.hostAttr,"")}createElement(n,e){let i=super.createElement(n,e);return super.setAttribute(i,this.contentAttr,""),i}};var Qv=class t extends lf{supportsDOMEvents=!0;static makeCurrent(){XM(new t)}onAndCancel(n,e,i,r){return n.addEventListener(e,i,r),()=>{n.removeEventListener(e,i,r)}}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=_Y();return e==null?null:bY(e)}resetBaseElement(){yf=null}getUserAgent(){return window.navigator.userAgent}getCookie(n){return gf(document.cookie,n)}},yf=null;function _Y(){return yf=yf||document.head.querySelector("base"),yf?yf.getAttribute("href"):null}function bY(t){return new URL(t,document.baseURI).pathname}var vY=(()=>{class t{build(){return new XMLHttpRequest}static \u0275fac=function(i){return new(i||t)};static \u0275prov=O({token:t,factory:t.\u0275fac})}return t})(),Q2=["alt","control","meta","shift"],yY={"\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"},xY={alt:t=>t.altKey,control:t=>t.ctrlKey,meta:t=>t.metaKey,shift:t=>t.shiftKey},K2=(()=>{class t extends _f{constructor(e){super(e)}supports(e){return t.parseEventName(e)!=null}addEventListener(e,i,r,o){let a=t.parseEventName(i),s=t.eventCallback(a.fullKey,r,this.manager.getZone());return this.manager.getZone().runOutsideAngular(()=>Wo().onAndCancel(e,a.domEventName,s,o))}static parseEventName(e){let i=e.toLowerCase().split("."),r=i.shift();if(i.length===0||!(r==="keydown"||r==="keyup"))return null;let o=t._normalizeKey(i.pop()),a="",s=i.indexOf("code");if(s>-1&&(i.splice(s,1),a="code."),Q2.forEach(c=>{let d=i.indexOf(c);d>-1&&(i.splice(d,1),a+=c+".")}),a+=o,i.length!=0||o.length===0)return null;let l={};return l.domEventName=r,l.fullKey=a,l}static matchEventFullKeyCode(e,i){let r=yY[e.key]||e.key,o="";return i.indexOf("code.")>-1&&(r=e.code,o="code."),r==null||!r?!1:(r=r.toLowerCase(),r===" "?r="space":r==="."&&(r="dot"),Q2.forEach(a=>{if(a!==r){let s=xY[a];s(e)&&(o+=a+".")}}),o+=r,o===i)}static eventCallback(e,i,r){return o=>{t.matchEventFullKeyCode(o,e)&&r.runGuarded(()=>i(o))}}static _normalizeKey(e){return e==="esc"?"escape":e}static \u0275fac=function(i){return new(i||t)(pe(ge))};static \u0275prov=O({token:t,factory:t.\u0275fac})}return t})();function C1(t,n,e){let i=M({rootComponent:t,platformRef:e?.platformRef},CY(n));return a2(i)}function CY(t){return{appProviders:[...kY,...t?.providers??[]],platformProviders:MY}}function wY(){Qv.makeCurrent()}function DY(){return new Tn}function EY(){return JE(document),document}var MY=[{provide:Ks,useValue:m1},{provide:sv,useValue:wY,multi:!0},{provide:ge,useFactory:EY}];var kY=[{provide:kp,useValue:"root"},{provide:Tn,useFactory:DY},{provide:Yv,useClass:Gv,multi:!0,deps:[ge]},{provide:Yv,useClass:K2,multi:!0,deps:[ge]},x1,v1,b1,{provide:cn,useExisting:x1},{provide:Fd,useClass:vY},[]];var Tm=class{},Zl=class{},_r=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 i=e.indexOf(":");if(i>0){let r=e.slice(0,i),o=e.slice(i+1).trim();this.addHeaderEntry(r,o)}})}:typeof Headers<"u"&&n instanceof Headers?(this.headers=new Map,n.forEach((e,i)=>{this.addHeaderEntry(i,e)})):this.lazyInit=()=>{this.headers=new Map,Object.entries(n).forEach(([e,i])=>{this.setHeaderEntries(e,i)})}: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(),Array.from(n.headers.keys()).forEach(e=>{this.headers.set(e,n.headers.get(e)),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 i=n.value;if(typeof i=="string"&&(i=[i]),i.length===0)return;this.maybeSetNormalizedName(n.name,e);let r=(n.op==="a"?this.headers.get(e):void 0)||[];r.push(...i),this.headers.set(e,r);break;case"d":let o=n.value;if(!o)this.headers.delete(e),this.normalizedNames.delete(e);else{let a=this.headers.get(e);if(!a)return;a=a.filter(s=>o.indexOf(s)===-1),a.length===0?(this.headers.delete(e),this.normalizedNames.delete(e)):this.headers.set(e,a)}break}}addHeaderEntry(n,e){let i=n.toLowerCase();this.maybeSetNormalizedName(n,i),this.headers.has(i)?this.headers.get(i).push(e):this.headers.set(i,[e])}setHeaderEntries(n,e){let i=(Array.isArray(e)?e:[e]).map(o=>o.toString()),r=n.toLowerCase();this.headers.set(r,i),this.maybeSetNormalizedName(n,r)}forEach(n){this.init(),Array.from(this.normalizedNames.keys()).forEach(e=>n(this.normalizedNames.get(e),this.headers.get(e)))}};var Zv=class{encodeKey(n){return Z2(n)}encodeValue(n){return Z2(n)}decodeKey(n){return decodeURIComponent(n)}decodeValue(n){return decodeURIComponent(n)}};function SY(t,n){let e=new Map;return t.length>0&&t.replace(/^\?/,"").split("&").forEach(r=>{let o=r.indexOf("="),[a,s]=o==-1?[n.decodeKey(r),""]:[n.decodeKey(r.slice(0,o)),n.decodeValue(r.slice(o+1))],l=e.get(a)||[];l.push(s),e.set(a,l)}),e}var TY=/%(\d[a-f0-9])/gi,IY={40:"@","3A":":",24:"$","2C":",","3B":";","3D":"=","3F":"?","2F":"/"};function Z2(t){return encodeURIComponent(t).replace(TY,(n,e)=>IY[e]??n)}function Kv(t){return`${t}`}var Qn=class t{map;encoder;updates=null;cloneFrom=null;constructor(n={}){if(this.encoder=n.encoder||new Zv,n.fromString){if(n.fromObject)throw new ue(2805,!1);this.map=SY(n.fromString,this.encoder)}else n.fromObject?(this.map=new Map,Object.keys(n.fromObject).forEach(e=>{let i=n.fromObject[e],r=Array.isArray(i)?i.map(Kv):[Kv(i)];this.map.set(e,r)})):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(i=>{let r=n[i];Array.isArray(r)?r.forEach(o=>{e.push({param:i,value:o,op:"a"})}):e.push({param:i,value:r,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(i=>e+"="+this.encoder.encodeValue(i)).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(){this.map===null&&(this.map=new Map),this.cloneFrom!==null&&(this.cloneFrom.init(),this.cloneFrom.keys().forEach(n=>this.map.set(n,this.cloneFrom.map.get(n))),this.updates.forEach(n=>{switch(n.op){case"a":case"s":let e=(n.op==="a"?this.map.get(n.param):void 0)||[];e.push(Kv(n.value)),this.map.set(n.param,e);break;case"d":if(n.value!==void 0){let i=this.map.get(n.param)||[],r=i.indexOf(Kv(n.value));r!==-1&&i.splice(r,1),i.length>0?this.map.set(n.param,i):this.map.delete(n.param)}else{this.map.delete(n.param);break}}}),this.cloneFrom=this.updates=null)}};var Xv=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()}};function AY(t){switch(t){case"DELETE":case"GET":case"HEAD":case"OPTIONS":case"JSONP":return!1;default:return!0}}function X2(t){return typeof ArrayBuffer<"u"&&t instanceof ArrayBuffer}function J2(t){return typeof Blob<"u"&&t instanceof Blob}function eN(t){return typeof FormData<"u"&&t instanceof FormData}function OY(t){return typeof URLSearchParams<"u"&&t instanceof URLSearchParams}var tN="Content-Type",iN="Accept",nN="X-Request-URL",rN="text/plain",oN="application/json",RY=`${oN}, ${rN}, */*`,km=class t{url;body=null;headers;context;reportProgress=!1;withCredentials=!1;credentials;keepalive=!1;cache;priority;mode;redirect;referrer;integrity;responseType="json";method;params;urlWithParams;transferCache;timeout;constructor(n,e,i,r){this.url=e,this.method=n.toUpperCase();let o;if(AY(this.method)||r?(this.body=i!==void 0?i:null,o=r):o=i,o){if(this.reportProgress=!!o.reportProgress,this.withCredentials=!!o.withCredentials,this.keepalive=!!o.keepalive,o.responseType&&(this.responseType=o.responseType),o.headers&&(this.headers=o.headers),o.context&&(this.context=o.context),o.params&&(this.params=o.params),o.priority&&(this.priority=o.priority),o.cache&&(this.cache=o.cache),o.credentials&&(this.credentials=o.credentials),typeof o.timeout=="number"){if(o.timeout<1||!Number.isInteger(o.timeout))throw new ue(2822,"");this.timeout=o.timeout}o.mode&&(this.mode=o.mode),o.redirect&&(this.redirect=o.redirect),o.integrity&&(this.integrity=o.integrity),o.referrer&&(this.referrer=o.referrer),this.transferCache=o.transferCache}if(this.headers??=new _r,this.context??=new Xv,!this.params)this.params=new Qn,this.urlWithParams=e;else{let a=this.params.toString();if(a.length===0)this.urlWithParams=e;else{let s=e.indexOf("?"),l=s===-1?"?":sK.set(re,n.setHeaders[re]),P)),n.setParams&&(W=Object.keys(n.setParams).reduce((K,re)=>K.set(re,n.setParams[re]),W)),new t(e,i,w,{params:W,headers:P,context:Z,reportProgress:D,responseType:r,withCredentials:x,transferCache:b,keepalive:o,cache:s,priority:a,timeout:v,mode:l,redirect:c,credentials:d,referrer:m,integrity:f})}},Nd=(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})(Nd||{}),Im=class{headers;status;statusText;url;ok;type;redirected;constructor(n,e=200,i="OK"){this.headers=n.headers||new _r,this.status=n.status!==void 0?n.status:e,this.statusText=n.statusText||i,this.url=n.url||null,this.redirected=n.redirected,this.ok=this.status>=200&&this.status<300}},Jv=class t extends Im{constructor(n={}){super(n)}type=Nd.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})}},nl=class t extends Im{body;constructor(n={}){super(n),this.body=n.body!==void 0?n.body:null}type=Nd.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})}},Sm=class extends Im{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}},PY=200,FY=204;function w1(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}}var Yr=(()=>{class t{handler;constructor(e){this.handler=e}request(e,i,r={}){let o;if(e instanceof km)o=e;else{let l;r.headers instanceof _r?l=r.headers:l=new _r(r.headers);let c;r.params&&(r.params instanceof Qn?c=r.params:c=new Qn({fromObject:r.params})),o=new km(e,i,r.body!==void 0?r.body:null,{headers:l,context:r.context,params:c,reportProgress:r.reportProgress,responseType:r.responseType||"json",withCredentials:r.withCredentials,transferCache:r.transferCache,keepalive:r.keepalive,priority:r.priority,cache:r.cache,mode:r.mode,redirect:r.redirect,credentials:r.credentials,referrer:r.referrer,integrity:r.integrity,timeout:r.timeout})}let a=Q(o).pipe(Ao(l=>this.handler.handle(l)));if(e instanceof km||r.observe==="events")return a;let s=a.pipe(ce(l=>l instanceof nl));switch(r.observe||"body"){case"body":switch(o.responseType){case"arraybuffer":return s.pipe(se(l=>{if(l.body!==null&&!(l.body instanceof ArrayBuffer))throw new ue(2806,!1);return l.body}));case"blob":return s.pipe(se(l=>{if(l.body!==null&&!(l.body instanceof Blob))throw new ue(2807,!1);return l.body}));case"text":return s.pipe(se(l=>{if(l.body!==null&&typeof l.body!="string")throw new ue(2808,!1);return l.body}));case"json":default:return s.pipe(se(l=>l.body))}case"response":return s;default:throw new ue(2809,!1)}}delete(e,i={}){return this.request("DELETE",e,i)}get(e,i={}){return this.request("GET",e,i)}head(e,i={}){return this.request("HEAD",e,i)}jsonp(e,i){return this.request("JSONP",e,{params:new Qn().append(i,"JSONP_CALLBACK"),observe:"body",responseType:"json"})}options(e,i={}){return this.request("OPTIONS",e,i)}patch(e,i,r={}){return this.request("PATCH",e,w1(r,i))}post(e,i,r={}){return this.request("POST",e,w1(r,i))}put(e,i,r={}){return this.request("PUT",e,w1(r,i))}static \u0275fac=function(i){return new(i||t)(pe(Tm))};static \u0275prov=O({token:t,factory:t.\u0275fac})}return t})();var NY=new T("");function LY(t,n){return n(t)}function VY(t,n,e){return(i,r)=>In(e,()=>n(i,o=>t(o,r)))}var E1=new T(""),M1=new T(""),aN=new T(""),sN=new T("",{providedIn:"root",factory:()=>!0});var e0=(()=>{class t extends Tm{backend;injector;chain=null;pendingTasks=u(om);contributeToStability=u(sN);constructor(e,i){super(),this.backend=e,this.injector=i}handle(e){if(this.chain===null){let i=Array.from(new Set([...this.injector.get(M1),...this.injector.get(aN,[])]));this.chain=i.reduceRight((r,o)=>VY(r,o,this.injector),LY)}if(this.contributeToStability){let i=this.pendingTasks.add();return this.chain(e,r=>this.backend.handle(r)).pipe(Hr(i))}else return this.chain(e,i=>this.backend.handle(i))}static \u0275fac=function(i){return new(i||t)(pe(Zl),pe(Wt))};static \u0275prov=O({token:t,factory:t.\u0275fac})}return t})();var BY=/^\)\]\}',?\n/,jY=RegExp(`^${nN}:`,"m");function HY(t){return"responseURL"in t&&t.responseURL?t.responseURL:jY.test(t.getAllResponseHeaders())?t.getResponseHeader(nN):null}var D1=(()=>{class t{xhrFactory;constructor(e){this.xhrFactory=e}handle(e){if(e.method==="JSONP")throw new ue(-2800,!1);let i=this.xhrFactory;return Q(null).pipe($e(()=>new Fe(o=>{let a=i.build();if(a.open(e.method,e.urlWithParams),e.withCredentials&&(a.withCredentials=!0),e.headers.forEach((x,D)=>a.setRequestHeader(x,D.join(","))),e.headers.has(iN)||a.setRequestHeader(iN,RY),!e.headers.has(tN)){let x=e.detectContentTypeHeader();x!==null&&a.setRequestHeader(tN,x)}if(e.timeout&&(a.timeout=e.timeout),e.responseType){let x=e.responseType.toLowerCase();a.responseType=x!=="json"?x:"text"}let s=e.serializeBody(),l=null,c=()=>{if(l!==null)return l;let x=a.statusText||"OK",D=new _r(a.getAllResponseHeaders()),P=HY(a)||e.url;return l=new Jv({headers:D,status:a.status,statusText:x,url:P}),l},d=()=>{let{headers:x,status:D,statusText:P,url:W}=c(),Z=null;D!==FY&&(Z=typeof a.response>"u"?a.responseText:a.response),D===0&&(D=Z?PY:0);let K=D>=200&&D<300;if(e.responseType==="json"&&typeof Z=="string"){let re=Z;Z=Z.replace(BY,"");try{Z=Z!==""?JSON.parse(Z):null}catch(Ee){Z=re,K&&(K=!1,Z={error:Ee,text:Z})}}K?(o.next(new nl({body:Z,headers:x,status:D,statusText:P,url:W||void 0})),o.complete()):o.error(new Sm({error:Z,headers:x,status:D,statusText:P,url:W||void 0}))},m=x=>{let{url:D}=c(),P=new Sm({error:x,status:a.status||0,statusText:a.statusText||"Unknown Error",url:D||void 0});o.error(P)},f=m;e.timeout&&(f=x=>{let{url:D}=c(),P=new Sm({error:new DOMException("Request timed out","TimeoutError"),status:a.status||0,statusText:a.statusText||"Request timeout",url:D||void 0});o.error(P)});let b=!1,v=x=>{b||(o.next(c()),b=!0);let D={type:Nd.DownloadProgress,loaded:x.loaded};x.lengthComputable&&(D.total=x.total),e.responseType==="text"&&a.responseText&&(D.partialText=a.responseText),o.next(D)},w=x=>{let D={type:Nd.UploadProgress,loaded:x.loaded};x.lengthComputable&&(D.total=x.total),o.next(D)};return a.addEventListener("load",d),a.addEventListener("error",m),a.addEventListener("timeout",f),a.addEventListener("abort",m),e.reportProgress&&(a.addEventListener("progress",v),s!==null&&a.upload&&a.upload.addEventListener("progress",w)),a.send(s),o.next({type:Nd.Sent}),()=>{a.removeEventListener("error",m),a.removeEventListener("abort",m),a.removeEventListener("load",d),a.removeEventListener("timeout",f),e.reportProgress&&(a.removeEventListener("progress",v),s!==null&&a.upload&&a.upload.removeEventListener("progress",w)),a.readyState!==a.DONE&&a.abort()}})))}static \u0275fac=function(i){return new(i||t)(pe(Fd))};static \u0275prov=O({token:t,factory:t.\u0275fac})}return t})(),lN=new T(""),zY="XSRF-TOKEN",UY=new T("",{providedIn:"root",factory:()=>zY}),$Y="X-XSRF-TOKEN",WY=new T("",{providedIn:"root",factory:()=>$Y}),xf=class{},GY=(()=>{class t{doc;cookieName;lastCookieString="";lastToken=null;parseCount=0;constructor(e,i){this.doc=e,this.cookieName=i}getToken(){let e=this.doc.cookie||"";return e!==this.lastCookieString&&(this.parseCount++,this.lastToken=gf(e,this.cookieName),this.lastCookieString=e),this.lastToken}static \u0275fac=function(i){return new(i||t)(pe(ge),pe(UY))};static \u0275prov=O({token:t,factory:t.\u0275fac})}return t})(),qY=/^(?:https?:)?\/\//i;function YY(t,n){if(!u(lN)||t.method==="GET"||t.method==="HEAD"||qY.test(t.url))return n(t);let e=u(xf).getToken(),i=u(WY);return e!=null&&!t.headers.has(i)&&(t=t.clone({headers:t.headers.set(i,e)})),n(t)}var k1=(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})(k1||{});function QY(t,n){return{\u0275kind:t,\u0275providers:n}}function S1(...t){let n=[Yr,D1,e0,{provide:Tm,useExisting:e0},{provide:Zl,useFactory:()=>u(NY,{optional:!0})??u(D1)},{provide:M1,useValue:YY,multi:!0},{provide:lN,useValue:!0},{provide:xf,useClass:GY}];for(let e of t)n.push(...e.\u0275providers);return zr(n)}function T1(t){return QY(k1.Interceptors,t.map(n=>({provide:M1,useValue:n,multi:!0})))}var dN=(()=>{class t{_doc;constructor(e){this._doc=e}getTitle(){return this._doc.title}setTitle(e){this._doc.title=e||""}static \u0275fac=function(i){return new(i||t)(pe(ge))};static \u0275prov=O({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();var Cf=(()=>{class t{static \u0275fac=function(i){return new(i||t)};static \u0275prov=O({token:t,factory:function(i){let r=null;return i?r=new(i||t):r=pe(KY),r},providedIn:"root"})}return t})(),KY=(()=>{class t extends Cf{_doc;constructor(e){super(),this._doc=e}sanitize(e,i){if(i==null)return null;switch(e){case An.NONE:return i;case An.HTML:return ls(i,"HTML")?Ur(i):uv(this._doc,String(i)).toString();case An.STYLE:return ls(i,"Style")?Ur(i):i;case An.SCRIPT:if(ls(i,"Script"))return Ur(i);throw new ue(5200,!1);case An.URL:return ls(i,"URL")?Ur(i):Qp(String(i));case An.RESOURCE_URL:if(ls(i,"ResourceURL"))return Ur(i);throw new ue(5201,!1);default:throw new ue(5202,!1)}}bypassSecurityTrustHtml(e){return iM(e)}bypassSecurityTrustStyle(e){return nM(e)}bypassSecurityTrustScript(e){return rM(e)}bypassSecurityTrustUrl(e){return oM(e)}bypassSecurityTrustResourceUrl(e){return aM(e)}static \u0275fac=function(i){return new(i||t)(pe(ge))};static \u0275prov=O({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();var dt="primary",Ff=Symbol("RouteTitle"),F1=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 Bd(t){return new F1(t)}function bN(t,n,e){let i=e.path.split("/");if(i.length>t.length||e.pathMatch==="full"&&(n.hasChildren()||i.lengthi[o]===r)}else return t===n}function yN(t){return t.length>0?t[t.length-1]:null}function rl(t){return ji(t)?t:Xs(t)?Ot(Promise.resolve(t)):Q(t)}var XY={exact:CN,subset:wN},xN={exact:JY,subset:eQ,ignored:()=>!0};function uN(t,n,e){return XY[e.paths](t.root,n.root,e.matrixParams)&&xN[e.queryParams](t.queryParams,n.queryParams)&&!(e.fragment==="exact"&&t.fragment!==n.fragment)}function JY(t,n){return ms(t,n)}function CN(t,n,e){if(!Ld(t.segments,n.segments)||!n0(t.segments,n.segments,e)||t.numberOfChildren!==n.numberOfChildren)return!1;for(let i in n.children)if(!t.children[i]||!CN(t.children[i],n.children[i],e))return!1;return!0}function eQ(t,n){return Object.keys(n).length<=Object.keys(t).length&&Object.keys(n).every(e=>vN(t[e],n[e]))}function wN(t,n,e){return DN(t,n,n.segments,e)}function DN(t,n,e,i){if(t.segments.length>e.length){let r=t.segments.slice(0,e.length);return!(!Ld(r,e)||n.hasChildren()||!n0(r,e,i))}else if(t.segments.length===e.length){if(!Ld(t.segments,e)||!n0(t.segments,e,i))return!1;for(let r in n.children)if(!t.children[r]||!wN(t.children[r],n.children[r],i))return!1;return!0}else{let r=e.slice(0,t.segments.length),o=e.slice(t.segments.length);return!Ld(t.segments,r)||!n0(t.segments,r,i)||!t.children[dt]?!1:DN(t.children[dt],n,o,i)}}function n0(t,n,e){return n.every((i,r)=>xN[e](t[r].parameters,i.parameters))}var hs=class{root;queryParams;fragment;_queryParamMap;constructor(n=new qt([],{}),e={},i=null){this.root=n,this.queryParams=e,this.fragment=i}get queryParamMap(){return this._queryParamMap??=Bd(this.queryParams),this._queryParamMap}toString(){return nQ.serialize(this)}},qt=class{segments;children;parent=null;constructor(n,e){this.segments=n,this.children=e,Object.values(e).forEach(i=>i.parent=this)}hasChildren(){return this.numberOfChildren>0}get numberOfChildren(){return Object.keys(this.children).length}toString(){return r0(this)}},Xl=class{path;parameters;_parameterMap;constructor(n,e){this.path=n,this.parameters=e}get parameterMap(){return this._parameterMap??=Bd(this.parameters),this._parameterMap}toString(){return MN(this)}};function tQ(t,n){return Ld(t,n)&&t.every((e,i)=>ms(e.parameters,n[i].parameters))}function Ld(t,n){return t.length!==n.length?!1:t.every((e,i)=>e.path===n[i].path)}function iQ(t,n){let e=[];return Object.entries(t.children).forEach(([i,r])=>{i===dt&&(e=e.concat(n(r,i)))}),Object.entries(t.children).forEach(([i,r])=>{i!==dt&&(e=e.concat(n(r,i)))}),e}var ic=(()=>{class t{static \u0275fac=function(i){return new(i||t)};static \u0275prov=O({token:t,factory:()=>new Jl,providedIn:"root"})}return t})(),Jl=class{parse(n){let e=new V1(n);return new hs(e.parseRootSegment(),e.parseQueryParams(),e.parseFragment())}serialize(n){let e=`/${wf(n.root,!0)}`,i=aQ(n.queryParams),r=typeof n.fragment=="string"?`#${rQ(n.fragment)}`:"";return`${e}${i}${r}`}},nQ=new Jl;function r0(t){return t.segments.map(n=>MN(n)).join("/")}function wf(t,n){if(!t.hasChildren())return r0(t);if(n){let e=t.children[dt]?wf(t.children[dt],!1):"",i=[];return Object.entries(t.children).forEach(([r,o])=>{r!==dt&&i.push(`${r}:${wf(o,!1)}`)}),i.length>0?`${e}(${i.join("//")})`:e}else{let e=iQ(t,(i,r)=>r===dt?[wf(t.children[dt],!1)]:[`${r}:${wf(i,!1)}`]);return Object.keys(t.children).length===1&&t.children[dt]!=null?`${r0(t)}/${e[0]}`:`${r0(t)}/(${e.join("//")})`}}function EN(t){return encodeURIComponent(t).replace(/%40/g,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",")}function t0(t){return EN(t).replace(/%3B/gi,";")}function rQ(t){return encodeURI(t)}function L1(t){return EN(t).replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/%26/gi,"&")}function o0(t){return decodeURIComponent(t)}function mN(t){return o0(t.replace(/\+/g,"%20"))}function MN(t){return`${L1(t.path)}${oQ(t.parameters)}`}function oQ(t){return Object.entries(t).map(([n,e])=>`;${L1(n)}=${L1(e)}`).join("")}function aQ(t){let n=Object.entries(t).map(([e,i])=>Array.isArray(i)?i.map(r=>`${t0(e)}=${t0(r)}`).join("&"):`${t0(e)}=${t0(i)}`).filter(e=>e);return n.length?`?${n.join("&")}`:""}var sQ=/^[^\/()?;#]+/;function A1(t){let n=t.match(sQ);return n?n[0]:""}var lQ=/^[^\/()?;=#]+/;function cQ(t){let n=t.match(lQ);return n?n[0]:""}var dQ=/^[^=?&#]+/;function uQ(t){let n=t.match(dQ);return n?n[0]:""}var mQ=/^[^&#]+/;function hQ(t){let n=t.match(mQ);return n?n[0]:""}var V1=class{url;remaining;constructor(n){this.url=n,this.remaining=n}parseRootSegment(){return this.consumeOptional("/"),this.remaining===""||this.peekStartsWith("?")||this.peekStartsWith("#")?new qt([],{}):new qt([],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(){if(this.remaining==="")return{};this.consumeOptional("/");let n=[];for(this.peekStartsWith("(")||n.push(this.parseSegment());this.peekStartsWith("/")&&!this.peekStartsWith("//")&&!this.peekStartsWith("/(");)this.capture("/"),n.push(this.parseSegment());let e={};this.peekStartsWith("/(")&&(this.capture("/"),e=this.parseParens(!0));let i={};return this.peekStartsWith("(")&&(i=this.parseParens(!1)),(n.length>0||Object.keys(e).length>0)&&(i[dt]=new qt(n,e)),i}parseSegment(){let n=A1(this.remaining);if(n===""&&this.peekStartsWith(";"))throw new ue(4009,!1);return this.capture(n),new Xl(o0(n),this.parseMatrixParams())}parseMatrixParams(){let n={};for(;this.consumeOptional(";");)this.parseParam(n);return n}parseParam(n){let e=cQ(this.remaining);if(!e)return;this.capture(e);let i="";if(this.consumeOptional("=")){let r=A1(this.remaining);r&&(i=r,this.capture(i))}n[o0(e)]=o0(i)}parseQueryParam(n){let e=uQ(this.remaining);if(!e)return;this.capture(e);let i="";if(this.consumeOptional("=")){let a=hQ(this.remaining);a&&(i=a,this.capture(i))}let r=mN(e),o=mN(i);if(n.hasOwnProperty(r)){let a=n[r];Array.isArray(a)||(a=[a],n[r]=a),a.push(o)}else n[r]=o}parseParens(n){let e={};for(this.capture("(");!this.consumeOptional(")")&&this.remaining.length>0;){let i=A1(this.remaining),r=this.remaining[i.length];if(r!=="/"&&r!==")"&&r!==";")throw new ue(4010,!1);let o;i.indexOf(":")>-1?(o=i.slice(0,i.indexOf(":")),this.capture(o),this.capture(":")):n&&(o=dt);let a=this.parseChildren();e[o??dt]=Object.keys(a).length===1&&a[dt]?a[dt]:new qt([],a),this.consumeOptional("//")}return e}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 ue(4011,!1)}};function kN(t){return t.segments.length>0?new qt([],{[dt]:t}):t}function SN(t){let n={};for(let[i,r]of Object.entries(t.children)){let o=SN(r);if(i===dt&&o.segments.length===0&&o.hasChildren())for(let[a,s]of Object.entries(o.children))n[a]=s;else(o.segments.length>0||o.hasChildren())&&(n[i]=o)}let e=new qt(t.segments,n);return pQ(e)}function pQ(t){if(t.numberOfChildren===1&&t.children[dt]){let n=t.children[dt];return new qt(t.segments.concat(n.segments),n.children)}return t}function ec(t){return t instanceof hs}function TN(t,n,e=null,i=null){let r=IN(t);return AN(r,n,e,i)}function IN(t){let n;function e(o){let a={};for(let l of o.children){let c=e(l);a[l.outlet]=c}let s=new qt(o.url,a);return o===t&&(n=s),s}let i=e(t.root),r=kN(i);return n??r}function AN(t,n,e,i){let r=t;for(;r.parent;)r=r.parent;if(n.length===0)return O1(r,r,r,e,i);let o=fQ(n);if(o.toRoot())return O1(r,r,new qt([],{}),e,i);let a=gQ(o,r,t),s=a.processChildren?Ef(a.segmentGroup,a.index,o.commands):RN(a.segmentGroup,a.index,o.commands);return O1(r,a.segmentGroup,s,e,i)}function a0(t){return typeof t=="object"&&t!=null&&!t.outlets&&!t.segmentPath}function kf(t){return typeof t=="object"&&t!=null&&t.outlets}function O1(t,n,e,i,r){let o={};i&&Object.entries(i).forEach(([l,c])=>{o[l]=Array.isArray(c)?c.map(d=>`${d}`):`${c}`});let a;t===n?a=e:a=ON(t,n,e);let s=kN(SN(a));return new hs(s,o,r)}function ON(t,n,e){let i={};return Object.entries(t.children).forEach(([r,o])=>{o===n?i[r]=e:i[r]=ON(o,n,e)}),new qt(t.segments,i)}var s0=class{isAbsolute;numberOfDoubleDots;commands;constructor(n,e,i){if(this.isAbsolute=n,this.numberOfDoubleDots=e,this.commands=i,n&&i.length>0&&a0(i[0]))throw new ue(4003,!1);let r=i.find(kf);if(r&&r!==yN(i))throw new ue(4004,!1)}toRoot(){return this.isAbsolute&&this.commands.length===1&&this.commands[0]=="/"}};function fQ(t){if(typeof t[0]=="string"&&t.length===1&&t[0]==="/")return new s0(!0,0,t);let n=0,e=!1,i=t.reduce((r,o,a)=>{if(typeof o=="object"&&o!=null){if(o.outlets){let s={};return Object.entries(o.outlets).forEach(([l,c])=>{s[l]=typeof c=="string"?c.split("/"):c}),[...r,{outlets:s}]}if(o.segmentPath)return[...r,o.segmentPath]}return typeof o!="string"?[...r,o]:a===0?(o.split("/").forEach((s,l)=>{l==0&&s==="."||(l==0&&s===""?e=!0:s===".."?n++:s!=""&&r.push(s))}),r):[...r,o]},[]);return new s0(e,n,i)}var Rm=class{segmentGroup;processChildren;index;constructor(n,e,i){this.segmentGroup=n,this.processChildren=e,this.index=i}};function gQ(t,n,e){if(t.isAbsolute)return new Rm(n,!0,0);if(!e)return new Rm(n,!1,NaN);if(e.parent===null)return new Rm(e,!0,0);let i=a0(t.commands[0])?0:1,r=e.segments.length-1+i;return _Q(e,r,t.numberOfDoubleDots)}function _Q(t,n,e){let i=t,r=n,o=e;for(;o>r;){if(o-=r,i=i.parent,!i)throw new ue(4005,!1);r=i.segments.length}return new Rm(i,!1,r-o)}function bQ(t){return kf(t[0])?t[0].outlets:{[dt]:t}}function RN(t,n,e){if(t??=new qt([],{}),t.segments.length===0&&t.hasChildren())return Ef(t,n,e);let i=vQ(t,n,e),r=e.slice(i.commandIndex);if(i.match&&i.pathIndexo!==dt)&&t.children[dt]&&t.numberOfChildren===1&&t.children[dt].segments.length===0){let o=Ef(t.children[dt],n,e);return new qt(t.segments,o.children)}return Object.entries(i).forEach(([o,a])=>{typeof a=="string"&&(a=[a]),a!==null&&(r[o]=RN(t.children[o],n,a))}),Object.entries(t.children).forEach(([o,a])=>{i[o]===void 0&&(r[o]=a)}),new qt(t.segments,r)}}function vQ(t,n,e){let i=0,r=n,o={match:!1,pathIndex:0,commandIndex:0};for(;r=e.length)return o;let a=t.segments[r],s=e[i];if(kf(s))break;let l=`${s}`,c=i0&&l===void 0)break;if(l&&c&&typeof c=="object"&&c.outlets===void 0){if(!pN(l,c,a))return o;i+=2}else{if(!pN(l,{},a))return o;i++}r++}return{match:!0,pathIndex:r,commandIndex:i}}function B1(t,n,e){let i=t.segments.slice(0,n),r=0;for(;r{typeof i=="string"&&(i=[i]),i!==null&&(n[e]=B1(new qt([],{}),0,i))}),n}function hN(t){let n={};return Object.entries(t).forEach(([e,i])=>n[e]=`${i}`),n}function pN(t,n,e){return t==e.path&&ms(n,e.parameters)}var Pm="imperative",yn=(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})(yn||{}),go=class{id;url;constructor(n,e){this.id=n,this.url=e}},ps=class extends go{type=yn.NavigationStart;navigationTrigger;restoredState;constructor(n,e,i="imperative",r=null){super(n,e),this.navigationTrigger=i,this.restoredState=r}toString(){return`NavigationStart(id: ${this.id}, url: '${this.url}')`}},vi=class extends go{urlAfterRedirects;type=yn.NavigationEnd;constructor(n,e,i){super(n,e),this.urlAfterRedirects=i}toString(){return`NavigationEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}')`}},Or=(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})(Or||{}),Nm=(function(t){return t[t.IgnoredSameUrlNavigation=0]="IgnoredSameUrlNavigation",t[t.IgnoredByUrlHandlingStrategy=1]="IgnoredByUrlHandlingStrategy",t})(Nm||{}),qo=class extends go{reason;code;type=yn.NavigationCancel;constructor(n,e,i,r){super(n,e),this.reason=i,this.code=r}toString(){return`NavigationCancel(id: ${this.id}, url: '${this.url}')`}},fs=class extends go{reason;code;type=yn.NavigationSkipped;constructor(n,e,i,r){super(n,e),this.reason=i,this.code=r}},tc=class extends go{error;target;type=yn.NavigationError;constructor(n,e,i,r){super(n,e),this.error=i,this.target=r}toString(){return`NavigationError(id: ${this.id}, url: '${this.url}', error: ${this.error})`}},Sf=class extends go{urlAfterRedirects;state;type=yn.RoutesRecognized;constructor(n,e,i,r){super(n,e),this.urlAfterRedirects=i,this.state=r}toString(){return`RoutesRecognized(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}},l0=class extends go{urlAfterRedirects;state;type=yn.GuardsCheckStart;constructor(n,e,i,r){super(n,e),this.urlAfterRedirects=i,this.state=r}toString(){return`GuardsCheckStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}},c0=class extends go{urlAfterRedirects;state;shouldActivate;type=yn.GuardsCheckEnd;constructor(n,e,i,r,o){super(n,e),this.urlAfterRedirects=i,this.state=r,this.shouldActivate=o}toString(){return`GuardsCheckEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state}, shouldActivate: ${this.shouldActivate})`}},d0=class extends go{urlAfterRedirects;state;type=yn.ResolveStart;constructor(n,e,i,r){super(n,e),this.urlAfterRedirects=i,this.state=r}toString(){return`ResolveStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}},u0=class extends go{urlAfterRedirects;state;type=yn.ResolveEnd;constructor(n,e,i,r){super(n,e),this.urlAfterRedirects=i,this.state=r}toString(){return`ResolveEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}},m0=class{route;type=yn.RouteConfigLoadStart;constructor(n){this.route=n}toString(){return`RouteConfigLoadStart(path: ${this.route.path})`}},h0=class{route;type=yn.RouteConfigLoadEnd;constructor(n){this.route=n}toString(){return`RouteConfigLoadEnd(path: ${this.route.path})`}},p0=class{snapshot;type=yn.ChildActivationStart;constructor(n){this.snapshot=n}toString(){return`ChildActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}},f0=class{snapshot;type=yn.ChildActivationEnd;constructor(n){this.snapshot=n}toString(){return`ChildActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}},g0=class{snapshot;type=yn.ActivationStart;constructor(n){this.snapshot=n}toString(){return`ActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}},_0=class{snapshot;type=yn.ActivationEnd;constructor(n){this.snapshot=n}toString(){return`ActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}},Lm=class{routerEvent;position;anchor;type=yn.Scroll;constructor(n,e,i){this.routerEvent=n,this.position=e,this.anchor=i}toString(){let n=this.position?`${this.position[0]}, ${this.position[1]}`:null;return`Scroll(anchor: '${this.anchor}', position: '${n}')`}},Tf=class{},Vm=class{url;navigationBehaviorOptions;constructor(n,e){this.url=n,this.navigationBehaviorOptions=e}};function xQ(t){return!(t instanceof Tf)&&!(t instanceof Vm)}function CQ(t,n){return t.providers&&!t._injector&&(t._injector=vm(t.providers,n,`Route: ${t.path}`)),t._injector??n}function Ta(t){return t.outlet||dt}function wQ(t,n){let e=t.filter(i=>Ta(i)===n);return e.push(...t.filter(i=>Ta(i)!==n)),e}function Hm(t){if(!t)return null;if(t.routeConfig?._injector)return t.routeConfig._injector;for(let n=t.parent;n;n=n.parent){let e=n.routeConfig;if(e?._loadedInjector)return e._loadedInjector;if(e?._injector)return e._injector}return null}var b0=class{rootInjector;outlet=null;route=null;children;attachRef=null;get injector(){return Hm(this.route?.snapshot)??this.rootInjector}constructor(n){this.rootInjector=n,this.children=new jd(this.rootInjector)}},jd=(()=>{class t{rootInjector;contexts=new Map;constructor(e){this.rootInjector=e}onChildOutletCreated(e,i){let r=this.getOrCreateContext(e);r.outlet=i,this.contexts.set(e,r)}onChildOutletDestroyed(e){let i=this.getContext(e);i&&(i.outlet=null,i.attachRef=null)}onOutletDeactivated(){let e=this.contexts;return this.contexts=new Map,e}onOutletReAttached(e){this.contexts=e}getOrCreateContext(e){let i=this.getContext(e);return i||(i=new b0(this.rootInjector),this.contexts.set(e,i)),i}getContext(e){return this.contexts.get(e)||null}static \u0275fac=function(i){return new(i||t)(pe(Wt))};static \u0275prov=O({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),v0=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=j1(n,this._root);return e?e.children.map(i=>i.value):[]}firstChild(n){let e=j1(n,this._root);return e&&e.children.length>0?e.children[0].value:null}siblings(n){let e=H1(n,this._root);return e.length<2?[]:e[e.length-2].children.map(r=>r.value).filter(r=>r!==n)}pathFromRoot(n){return H1(n,this._root).map(e=>e.value)}};function j1(t,n){if(t===n.value)return n;for(let e of n.children){let i=j1(t,e);if(i)return i}return null}function H1(t,n){if(t===n.value)return[n];for(let e of n.children){let i=H1(t,e);if(i.length)return i.unshift(n),i}return[]}var fo=class{value;children;constructor(n,e){this.value=n,this.children=e}toString(){return`TreeNode(${this.value})`}};function Om(t){let n={};return t&&t.children.forEach(e=>n[e.value.outlet]=e),n}var If=class extends v0{snapshot;constructor(n,e){super(n),this.snapshot=e,Q1(this,n)}toString(){return this.snapshot.toString()}};function PN(t){let n=DQ(t),e=new tt([new Xl("",{})]),i=new tt({}),r=new tt({}),o=new tt({}),a=new tt(""),s=new wi(e,i,o,a,r,dt,t,n.root);return s.snapshot=n.root,new If(new fo(s,[]),n)}function DQ(t){let n={},e={},i={},o=new Vd([],n,i,"",e,dt,t,null,{});return new Af("",new fo(o,[]))}var wi=class{urlSubject;paramsSubject;queryParamsSubject;fragmentSubject;dataSubject;outlet;component;snapshot;_futureSnapshot;_routerState;_paramMap;_queryParamMap;title;url;params;queryParams;fragment;data;constructor(n,e,i,r,o,a,s,l){this.urlSubject=n,this.paramsSubject=e,this.queryParamsSubject=i,this.fragmentSubject=r,this.dataSubject=o,this.outlet=a,this.component=s,this._futureSnapshot=l,this.title=this.dataSubject?.pipe(se(c=>c[Ff]))??Q(void 0),this.url=n,this.params=e,this.queryParams=i,this.fragment=r,this.data=o}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(se(n=>Bd(n))),this._paramMap}get queryParamMap(){return this._queryParamMap??=this.queryParams.pipe(se(n=>Bd(n))),this._queryParamMap}toString(){return this.snapshot?this.snapshot.toString():`Future(${this._futureSnapshot})`}};function y0(t,n,e="emptyOnly"){let i,{routeConfig:r}=t;return n!==null&&(e==="always"||r?.path===""||!n.component&&!n.routeConfig?.loadComponent)?i={params:M(M({},n.params),t.params),data:M(M({},n.data),t.data),resolve:M(M(M(M({},t.data),n.data),r?.data),t._resolvedData)}:i={params:M({},t.params),data:M({},t.data),resolve:M(M({},t.data),t._resolvedData??{})},r&&NN(r)&&(i.resolve[Ff]=r.title),i}var Vd=class{url;params;queryParams;fragment;data;outlet;component;routeConfig;_resolve;_resolvedData;_routerState;_paramMap;_queryParamMap;get title(){return this.data?.[Ff]}constructor(n,e,i,r,o,a,s,l,c){this.url=n,this.params=e,this.queryParams=i,this.fragment=r,this.data=o,this.outlet=a,this.component=s,this.routeConfig=l,this._resolve=c}get root(){return this._routerState.root}get parent(){return this._routerState.parent(this)}get firstChild(){return this._routerState.firstChild(this)}get children(){return this._routerState.children(this)}get pathFromRoot(){return this._routerState.pathFromRoot(this)}get paramMap(){return this._paramMap??=Bd(this.params),this._paramMap}get queryParamMap(){return this._queryParamMap??=Bd(this.queryParams),this._queryParamMap}toString(){let n=this.url.map(i=>i.toString()).join("/"),e=this.routeConfig?this.routeConfig.path:"";return`Route(url:'${n}', path:'${e}')`}},Af=class extends v0{url;constructor(n,e){super(e),this.url=n,Q1(this,e)}toString(){return FN(this._root)}};function Q1(t,n){n.value._routerState=t,n.children.forEach(e=>Q1(t,e))}function FN(t){let n=t.children.length>0?` { ${t.children.map(FN).join(", ")} } `:"";return`${t.value}${n}`}function R1(t){if(t.snapshot){let n=t.snapshot,e=t._futureSnapshot;t.snapshot=e,ms(n.queryParams,e.queryParams)||t.queryParamsSubject.next(e.queryParams),n.fragment!==e.fragment&&t.fragmentSubject.next(e.fragment),ms(n.params,e.params)||t.paramsSubject.next(e.params),ZY(n.url,e.url)||t.urlSubject.next(e.url),ms(n.data,e.data)||t.dataSubject.next(e.data)}else t.snapshot=t._futureSnapshot,t.dataSubject.next(t._futureSnapshot.data)}function z1(t,n){let e=ms(t.params,n.params)&&tQ(t.url,n.url),i=!t.parent!=!n.parent;return e&&!i&&(!t.parent||z1(t.parent,n.parent))}function NN(t){return typeof t.title=="string"||t.title===null}var LN=new T(""),ol=(()=>{class t{activated=null;get activatedComponentRef(){return this.activated}_activatedRoute=null;name=dt;activateEvents=new U;deactivateEvents=new U;attachEvents=new U;detachEvents=new U;routerOutletData=ne();parentContexts=u(jd);location=u(nt);changeDetector=u(ye);inputBinder=u(Nf,{optional:!0});supportsBindingToComponentInputs=!0;ngOnChanges(e){if(e.name){let{firstChange:i,previousValue:r}=e.name;if(i)return;this.isTrackedInParentContexts(r)&&(this.deactivate(),this.parentContexts.onChildOutletDestroyed(r)),this.initializeOutletWithName()}}ngOnDestroy(){this.isTrackedInParentContexts(this.name)&&this.parentContexts.onChildOutletDestroyed(this.name),this.inputBinder?.unsubscribeFromRouteData(this)}isTrackedInParentContexts(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 ue(4012,!1);return this.activated.instance}get activatedRoute(){if(!this.activated)throw new ue(4012,!1);return this._activatedRoute}get activatedRouteData(){return this._activatedRoute?this._activatedRoute.snapshot.data:{}}detach(){if(!this.activated)throw new ue(4012,!1);this.location.detach();let e=this.activated;return this.activated=null,this._activatedRoute=null,this.detachEvents.emit(e.instance),e}attach(e,i){this.activated=e,this._activatedRoute=i,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,i){if(this.isActivated)throw new ue(4013,!1);this._activatedRoute=e;let r=this.location,a=e.snapshot.component,s=this.parentContexts.getOrCreateContext(this.name).children,l=new U1(e,s,r.injector,this.routerOutletData);this.activated=r.createComponent(a,{index:r.length,injector:l,environmentInjector:i}),this.changeDetector.markForCheck(),this.inputBinder?.bindActivatedRouteToOutletComponent(this),this.activateEvents.emit(this.activated.instance)}static \u0275fac=function(i){return new(i||t)};static \u0275dir=F({type:t,selectors:[["router-outlet"]],inputs:{name:"name",routerOutletData:[1,"routerOutletData"]},outputs:{activateEvents:"activate",deactivateEvents:"deactivate",attachEvents:"attach",detachEvents:"detach"},exportAs:["outlet"],features:[Ae]})}return t})(),U1=class{route;childContexts;parent;outletData;constructor(n,e,i,r){this.route=n,this.childContexts=e,this.parent=i,this.outletData=r}get(n,e){return n===wi?this.route:n===jd?this.childContexts:n===LN?this.outletData:this.parent.get(n,e)}},Nf=new T(""),K1=(()=>{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:i}=e,r=co([i.queryParams,i.params,i.data]).pipe($e(([o,a,s],l)=>(s=M(M(M({},o),a),s),l===0?Q(s):Promise.resolve(s)))).subscribe(o=>{if(!e.isActivated||!e.activatedComponentRef||e.activatedRoute!==i||i.component===null){this.unsubscribeFromRouteData(e);return}let a=c2(i.component);if(!a){this.unsubscribeFromRouteData(e);return}for(let{templateName:s}of a.inputs)e.activatedComponentRef.setInput(s,o[s])});this.outletDataSubscriptions.set(e,r)}static \u0275fac=function(i){return new(i||t)};static \u0275prov=O({token:t,factory:t.\u0275fac})}return t})(),Z1=(()=>{class t{static \u0275fac=function(i){return new(i||t)};static \u0275cmp=E({type:t,selectors:[["ng-component"]],exportAs:["emptyRouterOutlet"],decls:1,vars:0,template:function(i,r){i&1&&k(0,"router-outlet")},dependencies:[ol],encapsulation:2})}return t})();function X1(t){let n=t.children&&t.children.map(X1),e=n?De(M({},t),{children:n}):M({},t);return!e.component&&!e.loadComponent&&(n||e.loadChildren)&&e.outlet&&e.outlet!==dt&&(e.component=Z1),e}function EQ(t,n,e){let i=Of(t,n._root,e?e._root:void 0);return new If(i,n)}function Of(t,n,e){if(e&&t.shouldReuseRoute(n.value,e.value.snapshot)){let i=e.value;i._futureSnapshot=n.value;let r=MQ(t,n,e);return new fo(i,r)}else{if(t.shouldAttach(n.value)){let o=t.retrieve(n.value);if(o!==null){let a=o.route;return a.value._futureSnapshot=n.value,a.children=n.children.map(s=>Of(t,s)),a}}let i=kQ(n.value),r=n.children.map(o=>Of(t,o));return new fo(i,r)}}function MQ(t,n,e){return n.children.map(i=>{for(let r of e.children)if(t.shouldReuseRoute(i.value,r.value.snapshot))return Of(t,i,r);return Of(t,i)})}function kQ(t){return new wi(new tt(t.url),new tt(t.params),new tt(t.queryParams),new tt(t.fragment),new tt(t.data),t.outlet,t.component,t)}var Bm=class{redirectTo;navigationBehaviorOptions;constructor(n,e){this.redirectTo=n,this.navigationBehaviorOptions=e}},VN="ngNavigationCancelingError";function x0(t,n){let{redirectTo:e,navigationBehaviorOptions:i}=ec(n)?{redirectTo:n,navigationBehaviorOptions:void 0}:n,r=BN(!1,Or.Redirect);return r.url=e,r.navigationBehaviorOptions=i,r}function BN(t,n){let e=new Error(`NavigationCancelingError: ${t||""}`);return e[VN]=!0,e.cancellationCode=n,e}function SQ(t){return jN(t)&&ec(t.url)}function jN(t){return!!t&&t[VN]}var TQ=(t,n,e,i)=>se(r=>(new $1(n,r.targetRouterState,r.currentRouterState,e,i).activate(t),r)),$1=class{routeReuseStrategy;futureState;currState;forwardEvent;inputBindingEnabled;constructor(n,e,i,r,o){this.routeReuseStrategy=n,this.futureState=e,this.currState=i,this.forwardEvent=r,this.inputBindingEnabled=o}activate(n){let e=this.futureState._root,i=this.currState?this.currState._root:null;this.deactivateChildRoutes(e,i,n),R1(this.futureState.root),this.activateChildRoutes(e,i,n)}deactivateChildRoutes(n,e,i){let r=Om(e);n.children.forEach(o=>{let a=o.value.outlet;this.deactivateRoutes(o,r[a],i),delete r[a]}),Object.values(r).forEach(o=>{this.deactivateRouteAndItsChildren(o,i)})}deactivateRoutes(n,e,i){let r=n.value,o=e?e.value:null;if(r===o)if(r.component){let a=i.getContext(r.outlet);a&&this.deactivateChildRoutes(n,e,a.children)}else this.deactivateChildRoutes(n,e,i);else o&&this.deactivateRouteAndItsChildren(e,i)}deactivateRouteAndItsChildren(n,e){n.value.component&&this.routeReuseStrategy.shouldDetach(n.value.snapshot)?this.detachAndStoreRouteSubtree(n,e):this.deactivateRouteAndOutlet(n,e)}detachAndStoreRouteSubtree(n,e){let i=e.getContext(n.value.outlet),r=i&&n.value.component?i.children:e,o=Om(n);for(let a of Object.values(o))this.deactivateRouteAndItsChildren(a,r);if(i&&i.outlet){let a=i.outlet.detach(),s=i.children.onOutletDeactivated();this.routeReuseStrategy.store(n.value.snapshot,{componentRef:a,route:n,contexts:s})}}deactivateRouteAndOutlet(n,e){let i=e.getContext(n.value.outlet),r=i&&n.value.component?i.children:e,o=Om(n);for(let a of Object.values(o))this.deactivateRouteAndItsChildren(a,r);i&&(i.outlet&&(i.outlet.deactivate(),i.children.onOutletDeactivated()),i.attachRef=null,i.route=null)}activateChildRoutes(n,e,i){let r=Om(e);n.children.forEach(o=>{this.activateRoutes(o,r[o.value.outlet],i),this.forwardEvent(new _0(o.value.snapshot))}),n.children.length&&this.forwardEvent(new f0(n.value.snapshot))}activateRoutes(n,e,i){let r=n.value,o=e?e.value:null;if(R1(r),r===o)if(r.component){let a=i.getOrCreateContext(r.outlet);this.activateChildRoutes(n,e,a.children)}else this.activateChildRoutes(n,e,i);else if(r.component){let a=i.getOrCreateContext(r.outlet);if(this.routeReuseStrategy.shouldAttach(r.snapshot)){let s=this.routeReuseStrategy.retrieve(r.snapshot);this.routeReuseStrategy.store(r.snapshot,null),a.children.onOutletReAttached(s.contexts),a.attachRef=s.componentRef,a.route=s.route.value,a.outlet&&a.outlet.attach(s.componentRef,s.route.value),R1(s.route.value),this.activateChildRoutes(n,null,a.children)}else a.attachRef=null,a.route=r,a.outlet&&a.outlet.activateWith(r,a.injector),this.activateChildRoutes(n,null,a.children)}else this.activateChildRoutes(n,null,i)}},C0=class{path;route;constructor(n){this.path=n,this.route=this.path[this.path.length-1]}},Fm=class{component;route;constructor(n,e){this.component=n,this.route=e}};function IQ(t,n,e){let i=t._root,r=n?n._root:null;return Df(i,r,e,[i.value])}function AQ(t){let n=t.routeConfig?t.routeConfig.canActivateChild:null;return!n||n.length===0?null:{node:t,guards:n}}function zm(t,n){let e=Symbol(),i=n.get(t,e);return i===e?typeof t=="function"&&!uD(t)?t:n.get(t):i}function Df(t,n,e,i,r={canDeactivateChecks:[],canActivateChecks:[]}){let o=Om(n);return t.children.forEach(a=>{OQ(a,o[a.value.outlet],e,i.concat([a.value]),r),delete o[a.value.outlet]}),Object.entries(o).forEach(([a,s])=>Mf(s,e.getContext(a),r)),r}function OQ(t,n,e,i,r={canDeactivateChecks:[],canActivateChecks:[]}){let o=t.value,a=n?n.value:null,s=e?e.getContext(t.value.outlet):null;if(a&&o.routeConfig===a.routeConfig){let l=RQ(a,o,o.routeConfig.runGuardsAndResolvers);l?r.canActivateChecks.push(new C0(i)):(o.data=a.data,o._resolvedData=a._resolvedData),o.component?Df(t,n,s?s.children:null,i,r):Df(t,n,e,i,r),l&&s&&s.outlet&&s.outlet.isActivated&&r.canDeactivateChecks.push(new Fm(s.outlet.component,a))}else a&&Mf(n,s,r),r.canActivateChecks.push(new C0(i)),o.component?Df(t,null,s?s.children:null,i,r):Df(t,null,e,i,r);return r}function RQ(t,n,e){if(typeof e=="function")return e(t,n);switch(e){case"pathParamsChange":return!Ld(t.url,n.url);case"pathParamsOrQueryParamsChange":return!Ld(t.url,n.url)||!ms(t.queryParams,n.queryParams);case"always":return!0;case"paramsOrQueryParamsChange":return!z1(t,n)||!ms(t.queryParams,n.queryParams);case"paramsChange":default:return!z1(t,n)}}function Mf(t,n,e){let i=Om(t),r=t.value;Object.entries(i).forEach(([o,a])=>{r.component?n?Mf(a,n.children.getContext(o),e):Mf(a,null,e):Mf(a,n,e)}),r.component?n&&n.outlet&&n.outlet.isActivated?e.canDeactivateChecks.push(new Fm(n.outlet.component,r)):e.canDeactivateChecks.push(new Fm(null,r)):e.canDeactivateChecks.push(new Fm(null,r))}function Lf(t){return typeof t=="function"}function PQ(t){return typeof t=="boolean"}function FQ(t){return t&&Lf(t.canLoad)}function NQ(t){return t&&Lf(t.canActivate)}function LQ(t){return t&&Lf(t.canActivateChild)}function VQ(t){return t&&Lf(t.canDeactivate)}function BQ(t){return t&&Lf(t.canMatch)}function HN(t){return t instanceof Hs||t?.name==="EmptyError"}var i0=Symbol("INITIAL_VALUE");function jm(){return $e(t=>co(t.map(n=>n.pipe(lt(1),He(i0)))).pipe(se(n=>{for(let e of n)if(e!==!0){if(e===i0)return i0;if(e===!1||jQ(e))return e}return!0}),ce(n=>n!==i0),lt(1)))}function jQ(t){return ec(t)||t instanceof Bm}function HQ(t,n){return Mt(e=>{let{targetSnapshot:i,currentSnapshot:r,guards:{canActivateChecks:o,canDeactivateChecks:a}}=e;return a.length===0&&o.length===0?Q(De(M({},e),{guardsResult:!0})):zQ(a,i,r,t).pipe(Mt(s=>s&&PQ(s)?UQ(i,o,t,n):Q(s)),se(s=>De(M({},e),{guardsResult:s})))})}function zQ(t,n,e,i){return Ot(t).pipe(Mt(r=>YQ(r.component,r.route,e,n,i)),gn(r=>r!==!0,!0))}function UQ(t,n,e,i){return Ot(n).pipe(Ao(r=>mo(WQ(r.route.parent,i),$Q(r.route,i),qQ(t,r.path,e),GQ(t,r.route,e))),gn(r=>r!==!0,!0))}function $Q(t,n){return t!==null&&n&&n(new g0(t)),Q(!0)}function WQ(t,n){return t!==null&&n&&n(new p0(t)),Q(!0)}function GQ(t,n,e){let i=n.routeConfig?n.routeConfig.canActivate:null;if(!i||i.length===0)return Q(!0);let r=i.map(o=>kn(()=>{let a=Hm(n)??e,s=zm(o,a),l=NQ(s)?s.canActivate(n,t):In(a,()=>s(n,t));return rl(l).pipe(gn())}));return Q(r).pipe(jm())}function qQ(t,n,e){let i=n[n.length-1],o=n.slice(0,n.length-1).reverse().map(a=>AQ(a)).filter(a=>a!==null).map(a=>kn(()=>{let s=a.guards.map(l=>{let c=Hm(a.node)??e,d=zm(l,c),m=LQ(d)?d.canActivateChild(i,t):In(c,()=>d(i,t));return rl(m).pipe(gn())});return Q(s).pipe(jm())}));return Q(o).pipe(jm())}function YQ(t,n,e,i,r){let o=n&&n.routeConfig?n.routeConfig.canDeactivate:null;if(!o||o.length===0)return Q(!0);let a=o.map(s=>{let l=Hm(n)??r,c=zm(s,l),d=VQ(c)?c.canDeactivate(t,n,e,i):In(l,()=>c(t,n,e,i));return rl(d).pipe(gn())});return Q(a).pipe(jm())}function QQ(t,n,e,i){let r=n.canLoad;if(r===void 0||r.length===0)return Q(!0);let o=r.map(a=>{let s=zm(a,t),l=FQ(s)?s.canLoad(n,e):In(t,()=>s(n,e));return rl(l)});return Q(o).pipe(jm(),zN(i))}function zN(t){return Bw(Be(n=>{if(typeof n!="boolean")throw x0(t,n)}),se(n=>n===!0))}function KQ(t,n,e,i){let r=n.canMatch;if(!r||r.length===0)return Q(!0);let o=r.map(a=>{let s=zm(a,t),l=BQ(s)?s.canMatch(n,e):In(t,()=>s(n,e));return rl(l)});return Q(o).pipe(jm(),zN(i))}var Rf=class{segmentGroup;constructor(n){this.segmentGroup=n||null}},Pf=class extends Error{urlTree;constructor(n){super(),this.urlTree=n}};function Am(t){return Wn(new Rf(t))}function ZQ(t){return Wn(new ue(4e3,!1))}function XQ(t){return Wn(BN(!1,Or.GuardRejected))}var W1=class{urlSerializer;urlTree;constructor(n,e){this.urlSerializer=n,this.urlTree=e}lineralizeSegments(n,e){let i=[],r=e.root;for(;;){if(i=i.concat(r.segments),r.numberOfChildren===0)return Q(i);if(r.numberOfChildren>1||!r.children[dt])return ZQ(`${n.redirectTo}`);r=r.children[dt]}}applyRedirectCommands(n,e,i,r,o){return JQ(e,r,o).pipe(se(a=>{if(a instanceof hs)throw new Pf(a);let s=this.applyRedirectCreateUrlTree(a,this.urlSerializer.parse(a),n,i);if(a[0]==="/")throw new Pf(s);return s}))}applyRedirectCreateUrlTree(n,e,i,r){let o=this.createSegmentGroup(n,e.root,i,r);return new hs(o,this.createQueryParams(e.queryParams,this.urlTree.queryParams),e.fragment)}createQueryParams(n,e){let i={};return Object.entries(n).forEach(([r,o])=>{if(typeof o=="string"&&o[0]===":"){let s=o.substring(1);i[r]=e[s]}else i[r]=o}),i}createSegmentGroup(n,e,i,r){let o=this.createSegments(n,e.segments,i,r),a={};return Object.entries(e.children).forEach(([s,l])=>{a[s]=this.createSegmentGroup(n,l,i,r)}),new qt(o,a)}createSegments(n,e,i,r){return e.map(o=>o.path[0]===":"?this.findPosParam(n,o,r):this.findOrReturn(o,i))}findPosParam(n,e,i){let r=i[e.path.substring(1)];if(!r)throw new ue(4001,!1);return r}findOrReturn(n,e){let i=0;for(let r of e){if(r.path===n.path)return e.splice(i),r;i++}return n}};function JQ(t,n,e){if(typeof t=="string")return Q(t);let i=t,{queryParams:r,fragment:o,routeConfig:a,url:s,outlet:l,params:c,data:d,title:m}=n;return rl(In(e,()=>i({params:c,data:d,queryParams:r,fragment:o,routeConfig:a,url:s,outlet:l,title:m})))}var G1={matched:!1,consumedSegments:[],remainingSegments:[],parameters:{},positionalParamSegments:{}};function eK(t,n,e,i,r){let o=UN(t,n,e);return o.matched?(i=CQ(n,i),KQ(i,n,e,r).pipe(se(a=>a===!0?o:M({},G1)))):Q(o)}function UN(t,n,e){if(n.path==="**")return tK(e);if(n.path==="")return n.pathMatch==="full"&&(t.hasChildren()||e.length>0)?M({},G1):{matched:!0,consumedSegments:[],remainingSegments:e,parameters:{},positionalParamSegments:{}};let r=(n.matcher||bN)(e,t,n);if(!r)return M({},G1);let o={};Object.entries(r.posParams??{}).forEach(([s,l])=>{o[s]=l.path});let a=r.consumed.length>0?M(M({},o),r.consumed[r.consumed.length-1].parameters):o;return{matched:!0,consumedSegments:r.consumed,remainingSegments:e.slice(r.consumed.length),parameters:a,positionalParamSegments:r.posParams??{}}}function tK(t){return{matched:!0,parameters:t.length>0?yN(t).parameters:{},consumedSegments:t,remainingSegments:[],positionalParamSegments:{}}}function fN(t,n,e,i){return e.length>0&&rK(t,e,i)?{segmentGroup:new qt(n,nK(i,new qt(e,t.children))),slicedSegments:[]}:e.length===0&&oK(t,e,i)?{segmentGroup:new qt(t.segments,iK(t,e,i,t.children)),slicedSegments:e}:{segmentGroup:new qt(t.segments,t.children),slicedSegments:e}}function iK(t,n,e,i){let r={};for(let o of e)if(D0(t,n,o)&&!i[Ta(o)]){let a=new qt([],{});r[Ta(o)]=a}return M(M({},i),r)}function nK(t,n){let e={};e[dt]=n;for(let i of t)if(i.path===""&&Ta(i)!==dt){let r=new qt([],{});e[Ta(i)]=r}return e}function rK(t,n,e){return e.some(i=>D0(t,n,i)&&Ta(i)!==dt)}function oK(t,n,e){return e.some(i=>D0(t,n,i))}function D0(t,n,e){return(t.hasChildren()||n.length>0)&&e.pathMatch==="full"?!1:e.path===""}function aK(t,n,e){return n.length===0&&!t.children[e]}var q1=class{};function sK(t,n,e,i,r,o,a="emptyOnly"){return new Y1(t,n,e,i,r,a,o).recognize()}var lK=31,Y1=class{injector;configLoader;rootComponentType;config;urlTree;paramsInheritanceStrategy;urlSerializer;applyRedirects;absoluteRedirectCount=0;allowRedirects=!0;constructor(n,e,i,r,o,a,s){this.injector=n,this.configLoader=e,this.rootComponentType=i,this.config=r,this.urlTree=o,this.paramsInheritanceStrategy=a,this.urlSerializer=s,this.applyRedirects=new W1(this.urlSerializer,this.urlTree)}noMatchError(n){return new ue(4002,`'${n.segmentGroup}'`)}recognize(){let n=fN(this.urlTree.root,[],[],this.config).segmentGroup;return this.match(n).pipe(se(({children:e,rootSnapshot:i})=>{let r=new fo(i,e),o=new Af("",r),a=TN(i,[],this.urlTree.queryParams,this.urlTree.fragment);return a.queryParams=this.urlTree.queryParams,o.url=this.urlSerializer.serialize(a),{state:o,tree:a}}))}match(n){let e=new Vd([],Object.freeze({}),Object.freeze(M({},this.urlTree.queryParams)),this.urlTree.fragment,Object.freeze({}),dt,this.rootComponentType,null,{});return this.processSegmentGroup(this.injector,this.config,n,dt,e).pipe(se(i=>({children:i,rootSnapshot:e})),fi(i=>{if(i instanceof Pf)return this.urlTree=i.urlTree,this.match(i.urlTree.root);throw i instanceof Rf?this.noMatchError(i):i}))}processSegmentGroup(n,e,i,r,o){return i.segments.length===0&&i.hasChildren()?this.processChildren(n,e,i,o):this.processSegment(n,e,i,i.segments,r,!0,o).pipe(se(a=>a instanceof fo?[a]:[]))}processChildren(n,e,i,r){let o=[];for(let a of Object.keys(i.children))a==="primary"?o.unshift(a):o.push(a);return Ot(o).pipe(Ao(a=>{let s=i.children[a],l=wQ(e,a);return this.processSegmentGroup(n,l,s,a,r)}),Kw((a,s)=>(a.push(...s),a)),Fl(null),Qw(),Mt(a=>{if(a===null)return Am(i);let s=$N(a);return cK(s),Q(s)}))}processSegment(n,e,i,r,o,a,s){return Ot(e).pipe(Ao(l=>this.processSegmentAgainstRoute(l._injector??n,e,l,i,r,o,a,s).pipe(fi(c=>{if(c instanceof Rf)return Q(null);throw c}))),gn(l=>!!l),fi(l=>{if(HN(l))return aK(i,r,o)?Q(new q1):Am(i);throw l}))}processSegmentAgainstRoute(n,e,i,r,o,a,s,l){return Ta(i)!==a&&(a===dt||!D0(r,o,i))?Am(r):i.redirectTo===void 0?this.matchSegmentAgainstRoute(n,r,i,o,a,l):this.allowRedirects&&s?this.expandSegmentAgainstRouteUsingRedirect(n,r,e,i,o,a,l):Am(r)}expandSegmentAgainstRouteUsingRedirect(n,e,i,r,o,a,s){let{matched:l,parameters:c,consumedSegments:d,positionalParamSegments:m,remainingSegments:f}=UN(e,r,o);if(!l)return Am(e);typeof r.redirectTo=="string"&&r.redirectTo[0]==="/"&&(this.absoluteRedirectCount++,this.absoluteRedirectCount>lK&&(this.allowRedirects=!1));let b=new Vd(o,c,Object.freeze(M({},this.urlTree.queryParams)),this.urlTree.fragment,gN(r),Ta(r),r.component??r._loadedComponent??null,r,_N(r)),v=y0(b,s,this.paramsInheritanceStrategy);return b.params=Object.freeze(v.params),b.data=Object.freeze(v.data),this.applyRedirects.applyRedirectCommands(d,r.redirectTo,m,b,n).pipe($e(x=>this.applyRedirects.lineralizeSegments(r,x)),Mt(x=>this.processSegment(n,i,e,x.concat(f),a,!1,s)))}matchSegmentAgainstRoute(n,e,i,r,o,a){let s=eK(e,i,r,n,this.urlSerializer);return i.path==="**"&&(e.children={}),s.pipe($e(l=>l.matched?(n=i._injector??n,this.getChildConfig(n,i,r).pipe($e(({routes:c})=>{let d=i._loadedInjector??n,{parameters:m,consumedSegments:f,remainingSegments:b}=l,v=new Vd(f,m,Object.freeze(M({},this.urlTree.queryParams)),this.urlTree.fragment,gN(i),Ta(i),i.component??i._loadedComponent??null,i,_N(i)),w=y0(v,a,this.paramsInheritanceStrategy);v.params=Object.freeze(w.params),v.data=Object.freeze(w.data);let{segmentGroup:x,slicedSegments:D}=fN(e,f,b,c);if(D.length===0&&x.hasChildren())return this.processChildren(d,c,x,v).pipe(se(W=>new fo(v,W)));if(c.length===0&&D.length===0)return Q(new fo(v,[]));let P=Ta(i)===o;return this.processSegment(d,c,x,D,P?dt:o,!0,v).pipe(se(W=>new fo(v,W instanceof fo?[W]:[])))}))):Am(e)))}getChildConfig(n,e,i){return e.children?Q({routes:e.children,injector:n}):e.loadChildren?e._loadedRoutes!==void 0?Q({routes:e._loadedRoutes,injector:e._loadedInjector}):QQ(n,e,i,this.urlSerializer).pipe(Mt(r=>r?this.configLoader.loadChildren(n,e).pipe(Be(o=>{e._loadedRoutes=o.routes,e._loadedInjector=o.injector})):XQ(e))):Q({routes:[],injector:n})}};function cK(t){t.sort((n,e)=>n.value.outlet===dt?-1:e.value.outlet===dt?1:n.value.outlet.localeCompare(e.value.outlet))}function dK(t){let n=t.value.routeConfig;return n&&n.path===""}function $N(t){let n=[],e=new Set;for(let i of t){if(!dK(i)){n.push(i);continue}let r=n.find(o=>i.value.routeConfig===o.value.routeConfig);r!==void 0?(r.children.push(...i.children),e.add(r)):n.push(i)}for(let i of e){let r=$N(i.children);n.push(new fo(i.value,r))}return n.filter(i=>!e.has(i))}function gN(t){return t.data||{}}function _N(t){return t.resolve||{}}function uK(t,n,e,i,r,o){return Mt(a=>sK(t,n,e,i,a.extractedUrl,r,o).pipe(se(({state:s,tree:l})=>De(M({},a),{targetSnapshot:s,urlAfterRedirects:l}))))}function mK(t,n){return Mt(e=>{let{targetSnapshot:i,guards:{canActivateChecks:r}}=e;if(!r.length)return Q(e);let o=new Set(r.map(l=>l.route)),a=new Set;for(let l of o)if(!a.has(l))for(let c of WN(l))a.add(c);let s=0;return Ot(a).pipe(Ao(l=>o.has(l)?hK(l,i,t,n):(l.data=y0(l,l.parent,t).resolve,Q(void 0))),Be(()=>s++),qu(1),Mt(l=>s===a.size?Q(e):Fi))})}function WN(t){let n=t.children.map(e=>WN(e)).flat();return[t,...n]}function hK(t,n,e,i){let r=t.routeConfig,o=t._resolve;return r?.title!==void 0&&!NN(r)&&(o[Ff]=r.title),kn(()=>(t.data=y0(t,t.parent,e).resolve,pK(o,t,n,i).pipe(se(a=>(t._resolvedData=a,t.data=M(M({},t.data),a),null)))))}function pK(t,n,e,i){let r=N1(t);if(r.length===0)return Q({});let o={};return Ot(r).pipe(Mt(a=>fK(t[a],n,e,i).pipe(gn(),Be(s=>{if(s instanceof Bm)throw x0(new Jl,s);o[a]=s}))),qu(1),se(()=>o),fi(a=>HN(a)?Fi:Wn(a)))}function fK(t,n,e,i){let r=Hm(n)??i,o=zm(t,r),a=o.resolve?o.resolve(n,e):In(r,()=>o(n,e));return rl(a)}function P1(t){return $e(n=>{let e=t(n);return e?Ot(e).pipe(se(()=>n)):Q(n)})}var J1=(()=>{class t{buildTitle(e){let i,r=e.root;for(;r!==void 0;)i=this.getResolvedTitleForRoute(r)??i,r=r.children.find(o=>o.outlet===dt);return i}getResolvedTitleForRoute(e){return e.data[Ff]}static \u0275fac=function(i){return new(i||t)};static \u0275prov=O({token:t,factory:()=>u(GN),providedIn:"root"})}return t})(),GN=(()=>{class t extends J1{title;constructor(e){super(),this.title=e}updateTitle(e){let i=this.buildTitle(e);i!==void 0&&this.title.setTitle(i)}static \u0275fac=function(i){return new(i||t)(pe(dN))};static \u0275prov=O({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),nc=new T("",{providedIn:"root",factory:()=>({})}),Hd=new T(""),E0=(()=>{class t{componentLoaders=new WeakMap;childrenLoaders=new WeakMap;onLoadStartListener;onLoadEndListener;compiler=u(jM);loadComponent(e,i){if(this.componentLoaders.get(i))return this.componentLoaders.get(i);if(i._loadedComponent)return Q(i._loadedComponent);this.onLoadStartListener&&this.onLoadStartListener(i);let r=rl(In(e,()=>i.loadComponent())).pipe(se(YN),$e(QN),Be(a=>{this.onLoadEndListener&&this.onLoadEndListener(i),i._loadedComponent=a}),Hr(()=>{this.componentLoaders.delete(i)})),o=new Al(r,()=>new z).pipe(ju());return this.componentLoaders.set(i,o),o}loadChildren(e,i){if(this.childrenLoaders.get(i))return this.childrenLoaders.get(i);if(i._loadedRoutes)return Q({routes:i._loadedRoutes,injector:i._loadedInjector});this.onLoadStartListener&&this.onLoadStartListener(i);let o=qN(i,this.compiler,e,this.onLoadEndListener).pipe(Hr(()=>{this.childrenLoaders.delete(i)})),a=new Al(o,()=>new z).pipe(ju());return this.childrenLoaders.set(i,a),a}static \u0275fac=function(i){return new(i||t)};static \u0275prov=O({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();function qN(t,n,e,i){return rl(In(e,()=>t.loadChildren())).pipe(se(YN),$e(QN),Mt(r=>r instanceof wv||Array.isArray(r)?Q(r):Ot(n.compileModuleAsync(r))),se(r=>{i&&i(t);let o,a,s=!1;return Array.isArray(r)?(a=r,s=!0):(o=r.create(e).injector,a=o.get(Hd,[],{optional:!0,self:!0}).flat()),{routes:a.map(X1),injector:o}}))}function gK(t){return t&&typeof t=="object"&&"default"in t}function YN(t){return gK(t)?t.default:t}function QN(t){return Q(t)}var M0=(()=>{class t{static \u0275fac=function(i){return new(i||t)};static \u0275prov=O({token:t,factory:()=>u(_K),providedIn:"root"})}return t})(),_K=(()=>{class t{shouldProcessUrl(e){return!0}extract(e){return e}merge(e,i){return e}static \u0275fac=function(i){return new(i||t)};static \u0275prov=O({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),ek=new T(""),tk=new T("");function KN(t,n,e){let i=t.get(tk),r=t.get(ge);if(!r.startViewTransition||i.skipNextTransition)return i.skipNextTransition=!1,new Promise(c=>setTimeout(c));let o,a=new Promise(c=>{o=c}),s=r.startViewTransition(()=>(o(),bK(t)));s.ready.catch(c=>{});let{onViewTransitionCreated:l}=i;return l&&In(t,()=>l({transition:s,from:n,to:e})),a}function bK(t){return new Promise(n=>{pt({read:()=>setTimeout(n)},{injector:t})})}var ik=new T(""),Vf=(()=>{class t{currentNavigation=he(null,{equal:()=>!1});currentTransition=null;lastSuccessfulNavigation=null;events=new z;transitionAbortWithErrorSubject=new z;configLoader=u(E0);environmentInjector=u(Wt);destroyRef=u(nn);urlSerializer=u(ic);rootContexts=u(jd);location=u(us);inputBindingEnabled=u(Nf,{optional:!0})!==null;titleStrategy=u(J1);options=u(nc,{optional:!0})||{};paramsInheritanceStrategy=this.options.paramsInheritanceStrategy||"emptyOnly";urlHandlingStrategy=u(M0);createViewTransition=u(ek,{optional:!0});navigationErrorHandler=u(ik,{optional:!0});navigationId=0;get hasRequestedNavigation(){return this.navigationId!==0}transitions;afterPreactivation=()=>Q(void 0);rootComponentType=null;destroyed=!1;constructor(){let e=r=>this.events.next(new m0(r)),i=r=>this.events.next(new h0(r));this.configLoader.onLoadEndListener=i,this.configLoader.onLoadStartListener=e,this.destroyRef.onDestroy(()=>{this.destroyed=!0})}complete(){this.transitions?.complete()}handleNavigationRequest(e){let i=++this.navigationId;Ti(()=>{this.transitions?.next(De(M({},e),{extractedUrl:this.urlHandlingStrategy.extract(e.rawUrl),targetSnapshot:null,targetRouterState:null,guards:{canActivateChecks:[],canDeactivateChecks:[]},guardsResult:null,abortController:new AbortController,id:i}))})}setupNavigations(e){return this.transitions=new tt(null),this.transitions.pipe(ce(i=>i!==null),$e(i=>{let r=!1;return Q(i).pipe($e(o=>{if(this.navigationId>i.id)return this.cancelNavigationTransition(i,"",Or.SupersededByNewNavigation),Fi;this.currentTransition=i,this.currentNavigation.set({id:o.id,initialUrl:o.rawUrl,extractedUrl:o.extractedUrl,targetBrowserUrl:typeof o.extras.browserUrl=="string"?this.urlSerializer.parse(o.extras.browserUrl):o.extras.browserUrl,trigger:o.source,extras:o.extras,previousNavigation:this.lastSuccessfulNavigation?De(M({},this.lastSuccessfulNavigation),{previousNavigation:null}):null,abort:()=>o.abortController.abort()});let a=!e.navigated||this.isUpdatingInternalState()||this.isUpdatedBrowserUrl(),s=o.extras.onSameUrlNavigation??e.onSameUrlNavigation;if(!a&&s!=="reload")return this.events.next(new fs(o.id,this.urlSerializer.serialize(o.rawUrl),"",Nm.IgnoredSameUrlNavigation)),o.resolve(!1),Fi;if(this.urlHandlingStrategy.shouldProcessUrl(o.rawUrl))return Q(o).pipe($e(l=>(this.events.next(new ps(l.id,this.urlSerializer.serialize(l.extractedUrl),l.source,l.restoredState)),l.id!==this.navigationId?Fi:Promise.resolve(l))),uK(this.environmentInjector,this.configLoader,this.rootComponentType,e.config,this.urlSerializer,this.paramsInheritanceStrategy),Be(l=>{i.targetSnapshot=l.targetSnapshot,i.urlAfterRedirects=l.urlAfterRedirects,this.currentNavigation.update(d=>(d.finalUrl=l.urlAfterRedirects,d));let c=new Sf(l.id,this.urlSerializer.serialize(l.extractedUrl),this.urlSerializer.serialize(l.urlAfterRedirects),l.targetSnapshot);this.events.next(c)}));if(a&&this.urlHandlingStrategy.shouldProcessUrl(o.currentRawUrl)){let{id:l,extractedUrl:c,source:d,restoredState:m,extras:f}=o,b=new ps(l,this.urlSerializer.serialize(c),d,m);this.events.next(b);let v=PN(this.rootComponentType).snapshot;return this.currentTransition=i=De(M({},o),{targetSnapshot:v,urlAfterRedirects:c,extras:De(M({},f),{skipLocationChange:!1,replaceUrl:!1})}),this.currentNavigation.update(w=>(w.finalUrl=c,w)),Q(i)}else return this.events.next(new fs(o.id,this.urlSerializer.serialize(o.extractedUrl),"",Nm.IgnoredByUrlHandlingStrategy)),o.resolve(!1),Fi}),Be(o=>{let a=new l0(o.id,this.urlSerializer.serialize(o.extractedUrl),this.urlSerializer.serialize(o.urlAfterRedirects),o.targetSnapshot);this.events.next(a)}),se(o=>(this.currentTransition=i=De(M({},o),{guards:IQ(o.targetSnapshot,o.currentSnapshot,this.rootContexts)}),i)),HQ(this.environmentInjector,o=>this.events.next(o)),Be(o=>{if(i.guardsResult=o.guardsResult,o.guardsResult&&typeof o.guardsResult!="boolean")throw x0(this.urlSerializer,o.guardsResult);let a=new c0(o.id,this.urlSerializer.serialize(o.extractedUrl),this.urlSerializer.serialize(o.urlAfterRedirects),o.targetSnapshot,!!o.guardsResult);this.events.next(a)}),ce(o=>o.guardsResult?!0:(this.cancelNavigationTransition(o,"",Or.GuardRejected),!1)),P1(o=>{if(o.guards.canActivateChecks.length!==0)return Q(o).pipe(Be(a=>{let s=new d0(a.id,this.urlSerializer.serialize(a.extractedUrl),this.urlSerializer.serialize(a.urlAfterRedirects),a.targetSnapshot);this.events.next(s)}),$e(a=>{let s=!1;return Q(a).pipe(mK(this.paramsInheritanceStrategy,this.environmentInjector),Be({next:()=>s=!0,complete:()=>{s||this.cancelNavigationTransition(a,"",Or.NoDataFromResolver)}}))}),Be(a=>{let s=new u0(a.id,this.urlSerializer.serialize(a.extractedUrl),this.urlSerializer.serialize(a.urlAfterRedirects),a.targetSnapshot);this.events.next(s)}))}),P1(o=>{let a=s=>{let l=[];if(s.routeConfig?.loadComponent){let c=Hm(s)??this.environmentInjector;l.push(this.configLoader.loadComponent(c,s.routeConfig).pipe(Be(d=>{s.component=d}),se(()=>{})))}for(let c of s.children)l.push(...a(c));return l};return co(a(o.targetSnapshot.root)).pipe(Fl(null),lt(1))}),P1(()=>this.afterPreactivation()),$e(()=>{let{currentSnapshot:o,targetSnapshot:a}=i,s=this.createViewTransition?.(this.environmentInjector,o.root,a.root);return s?Ot(s).pipe(se(()=>i)):Q(i)}),se(o=>{let a=EQ(e.routeReuseStrategy,o.targetSnapshot,o.currentRouterState);return this.currentTransition=i=De(M({},o),{targetRouterState:a}),this.currentNavigation.update(s=>(s.targetRouterState=a,s)),i}),Be(()=>{this.events.next(new Tf)}),TQ(this.rootContexts,e.routeReuseStrategy,o=>this.events.next(o),this.inputBindingEnabled),lt(1),Te(new Fe(o=>{let a=i.abortController.signal,s=()=>o.next();return a.addEventListener("abort",s),()=>a.removeEventListener("abort",s)}).pipe(ce(()=>!r&&!i.targetRouterState),Be(()=>{this.cancelNavigationTransition(i,i.abortController.signal.reason+"",Or.Aborted)}))),Be({next:o=>{r=!0,this.lastSuccessfulNavigation=Ti(this.currentNavigation),this.events.next(new vi(o.id,this.urlSerializer.serialize(o.extractedUrl),this.urlSerializer.serialize(o.urlAfterRedirects))),this.titleStrategy?.updateTitle(o.targetRouterState.snapshot),o.resolve(!0)},complete:()=>{r=!0}}),Te(this.transitionAbortWithErrorSubject.pipe(Be(o=>{throw o}))),Hr(()=>{r||this.cancelNavigationTransition(i,"",Or.SupersededByNewNavigation),this.currentTransition?.id===i.id&&(this.currentNavigation.set(null),this.currentTransition=null)}),fi(o=>{if(this.destroyed)return i.resolve(!1),Fi;if(r=!0,jN(o))this.events.next(new qo(i.id,this.urlSerializer.serialize(i.extractedUrl),o.message,o.cancellationCode)),SQ(o)?this.events.next(new Vm(o.url,o.navigationBehaviorOptions)):i.resolve(!1);else{let a=new tc(i.id,this.urlSerializer.serialize(i.extractedUrl),o,i.targetSnapshot??void 0);try{let s=In(this.environmentInjector,()=>this.navigationErrorHandler?.(a));if(s instanceof Bm){let{message:l,cancellationCode:c}=x0(this.urlSerializer,s);this.events.next(new qo(i.id,this.urlSerializer.serialize(i.extractedUrl),l,c)),this.events.next(new Vm(s.redirectTo,s.navigationBehaviorOptions))}else throw this.events.next(a),o}catch(s){this.options.resolveNavigationPromiseOnError?i.resolve(!1):i.reject(s)}}return Fi}))}))}cancelNavigationTransition(e,i,r){let o=new qo(e.id,this.urlSerializer.serialize(e.extractedUrl),i,r);this.events.next(o),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))),i=Ti(this.currentNavigation),r=i?.targetBrowserUrl??i?.extractedUrl;return e.toString()!==r?.toString()&&!i?.extras.skipLocationChange}static \u0275fac=function(i){return new(i||t)};static \u0275prov=O({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();function vK(t){return t!==Pm}var ZN=(()=>{class t{static \u0275fac=function(i){return new(i||t)};static \u0275prov=O({token:t,factory:()=>u(yK),providedIn:"root"})}return t})(),w0=class{shouldDetach(n){return!1}store(n,e){}shouldAttach(n){return!1}retrieve(n){return null}shouldReuseRoute(n,e){return n.routeConfig===e.routeConfig}},yK=(()=>{class t extends w0{static \u0275fac=(()=>{let e;return function(r){return(e||(e=fe(t)))(r||t)}})();static \u0275prov=O({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),XN=(()=>{class t{urlSerializer=u(ic);options=u(nc,{optional:!0})||{};canceledNavigationResolution=this.options.canceledNavigationResolution||"replace";location=u(us);urlHandlingStrategy=u(M0);urlUpdateStrategy=this.options.urlUpdateStrategy||"deferred";currentUrlTree=new hs;getCurrentUrlTree(){return this.currentUrlTree}rawUrlTree=this.currentUrlTree;getRawUrlTree(){return this.rawUrlTree}createBrowserPath({finalUrl:e,initialUrl:i,targetBrowserUrl:r}){let o=e!==void 0?this.urlHandlingStrategy.merge(e,i):i,a=r??o;return a instanceof hs?this.urlSerializer.serialize(a):a}commitTransition({targetRouterState:e,finalUrl:i,initialUrl:r}){i&&e?(this.currentUrlTree=i,this.rawUrlTree=this.urlHandlingStrategy.merge(i,r),this.routerState=e):this.rawUrlTree=r}routerState=PN(null);getRouterState(){return this.routerState}stateMemento=this.createStateMemento();updateStateMemento(){this.stateMemento=this.createStateMemento()}createStateMemento(){return{rawUrlTree:this.rawUrlTree,currentUrlTree:this.currentUrlTree,routerState:this.routerState}}resetInternalState({finalUrl:e}){this.routerState=this.stateMemento.routerState,this.currentUrlTree=this.stateMemento.currentUrlTree,this.rawUrlTree=this.urlHandlingStrategy.merge(this.currentUrlTree,e??this.rawUrlTree)}static \u0275fac=function(i){return new(i||t)};static \u0275prov=O({token:t,factory:()=>u(xK),providedIn:"root"})}return t})(),xK=(()=>{class t extends XN{currentPageId=0;lastSuccessfulId=-1;restoredState(){return this.location.getState()}get browserPageId(){return this.canceledNavigationResolution!=="computed"?this.currentPageId:this.restoredState()?.\u0275routerPageId??this.currentPageId}registerNonRouterCurrentEntryChangeListener(e){return this.location.subscribe(i=>{i.type==="popstate"&&setTimeout(()=>{e(i.url,i.state,"popstate")})})}handleRouterEvent(e,i){e instanceof ps?this.updateStateMemento():e instanceof fs?this.commitTransition(i):e instanceof Sf?this.urlUpdateStrategy==="eager"&&(i.extras.skipLocationChange||this.setBrowserUrl(this.createBrowserPath(i),i)):e instanceof Tf?(this.commitTransition(i),this.urlUpdateStrategy==="deferred"&&!i.extras.skipLocationChange&&this.setBrowserUrl(this.createBrowserPath(i),i)):e instanceof qo&&e.code!==Or.SupersededByNewNavigation&&e.code!==Or.Redirect?this.restoreHistory(i):e instanceof tc?this.restoreHistory(i,!0):e instanceof vi&&(this.lastSuccessfulId=e.id,this.currentPageId=this.browserPageId)}setBrowserUrl(e,{extras:i,id:r}){let{replaceUrl:o,state:a}=i;if(this.location.isCurrentPathEqualTo(e)||o){let s=this.browserPageId,l=M(M({},a),this.generateNgRouterState(r,s));this.location.replaceState(e,"",l)}else{let s=M(M({},a),this.generateNgRouterState(r,this.browserPageId+1));this.location.go(e,"",s)}}restoreHistory(e,i=!1){if(this.canceledNavigationResolution==="computed"){let r=this.browserPageId,o=this.currentPageId-r;o!==0?this.location.historyGo(o):this.getCurrentUrlTree()===e.finalUrl&&o===0&&(this.resetInternalState(e),this.resetUrlToCurrentUrlTree())}else this.canceledNavigationResolution==="replace"&&(i&&this.resetInternalState(e),this.resetUrlToCurrentUrlTree())}resetUrlToCurrentUrlTree(){this.location.replaceState(this.urlSerializer.serialize(this.getRawUrlTree()),"",this.generateNgRouterState(this.lastSuccessfulId,this.currentPageId))}generateNgRouterState(e,i){return this.canceledNavigationResolution==="computed"?{navigationId:e,\u0275routerPageId:i}:{navigationId:e}}static \u0275fac=(()=>{let e;return function(r){return(e||(e=fe(t)))(r||t)}})();static \u0275prov=O({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();function k0(t,n){t.events.pipe(ce(e=>e instanceof vi||e instanceof qo||e instanceof tc||e instanceof fs),se(e=>e instanceof vi||e instanceof fs?0:(e instanceof qo?e.code===Or.Redirect||e.code===Or.SupersededByNewNavigation:!1)?2:1),ce(e=>e!==2),lt(1)).subscribe(()=>{n()})}var CK={paths:"exact",fragment:"ignored",matrixParams:"ignored",queryParams:"exact"},wK={paths:"subset",fragment:"ignored",matrixParams:"ignored",queryParams:"subset"},Re=(()=>{class t{get currentUrlTree(){return this.stateManager.getCurrentUrlTree()}get rawUrlTree(){return this.stateManager.getRawUrlTree()}disposed=!1;nonRouterCurrentEntryChangeSubscription;console=u(Dv);stateManager=u(XN);options=u(nc,{optional:!0})||{};pendingTasks=u(ns);urlUpdateStrategy=this.options.urlUpdateStrategy||"deferred";navigationTransitions=u(Vf);urlSerializer=u(ic);location=u(us);urlHandlingStrategy=u(M0);injector=u(Wt);_events=new z;get events(){return this._events}get routerState(){return this.stateManager.getRouterState()}navigated=!1;routeReuseStrategy=u(ZN);onSameUrlNavigation=this.options.onSameUrlNavigation||"ignore";config=u(Hd,{optional:!0})?.flat()??[];componentInputBindingEnabled=!!u(Nf,{optional:!0});currentNavigation=this.navigationTransitions.currentNavigation.asReadonly();constructor(){this.resetConfig(this.config),this.navigationTransitions.setupNavigations(this).subscribe({error:e=>{this.console.warn(e)}}),this.subscribeToNavigationEvents()}eventsSubscription=new ke;subscribeToNavigationEvents(){let e=this.navigationTransitions.events.subscribe(i=>{try{let r=this.navigationTransitions.currentTransition,o=Ti(this.navigationTransitions.currentNavigation);if(r!==null&&o!==null){if(this.stateManager.handleRouterEvent(i,o),i instanceof qo&&i.code!==Or.Redirect&&i.code!==Or.SupersededByNewNavigation)this.navigated=!0;else if(i instanceof vi)this.navigated=!0;else if(i instanceof Vm){let a=i.navigationBehaviorOptions,s=this.urlHandlingStrategy.merge(i.url,r.currentRawUrl),l=M({browserUrl:r.extras.browserUrl,info:r.extras.info,skipLocationChange:r.extras.skipLocationChange,replaceUrl:r.extras.replaceUrl||this.urlUpdateStrategy==="eager"||vK(r.source)},a);this.scheduleNavigation(s,Pm,null,l,{resolve:r.resolve,reject:r.reject,promise:r.promise})}}xQ(i)&&this._events.next(i)}catch(r){this.navigationTransitions.transitionAbortWithErrorSubject.next(r)}});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),Pm,this.stateManager.restoredState())}setUpLocationChangeListener(){this.nonRouterCurrentEntryChangeSubscription??=this.stateManager.registerNonRouterCurrentEntryChangeListener((e,i,r)=>{this.navigateToSyncWithBrowser(e,r,i)})}navigateToSyncWithBrowser(e,i,r){let o={replaceUrl:!0},a=r?.navigationId?r:null;if(r){let l=M({},r);delete l.navigationId,delete l.\u0275routerPageId,Object.keys(l).length!==0&&(o.state=l)}let s=this.parseUrl(e);this.scheduleNavigation(s,i,a,o).catch(l=>{this.disposed||this.injector.get(hr)(l)})}get url(){return this.serializeUrl(this.currentUrlTree)}getCurrentNavigation(){return Ti(this.navigationTransitions.currentNavigation)}get lastSuccessfulNavigation(){return this.navigationTransitions.lastSuccessfulNavigation}resetConfig(e){this.config=e.map(X1),this.navigated=!1}ngOnDestroy(){this.dispose()}dispose(){this._events.unsubscribe(),this.navigationTransitions.complete(),this.nonRouterCurrentEntryChangeSubscription&&(this.nonRouterCurrentEntryChangeSubscription.unsubscribe(),this.nonRouterCurrentEntryChangeSubscription=void 0),this.disposed=!0,this.eventsSubscription.unsubscribe()}createUrlTree(e,i={}){let{relativeTo:r,queryParams:o,fragment:a,queryParamsHandling:s,preserveFragment:l}=i,c=l?this.currentUrlTree.fragment:a,d=null;switch(s??this.options.defaultQueryParamsHandling){case"merge":d=M(M({},this.currentUrlTree.queryParams),o);break;case"preserve":d=this.currentUrlTree.queryParams;break;default:d=o||null}d!==null&&(d=this.removeEmptyProps(d));let m;try{let f=r?r.snapshot:this.routerState.snapshot.root;m=IN(f)}catch{(typeof e[0]!="string"||e[0][0]!=="/")&&(e=[]),m=this.currentUrlTree.root}return AN(m,e,d,c??null)}navigateByUrl(e,i={skipLocationChange:!1}){let r=ec(e)?e:this.parseUrl(e),o=this.urlHandlingStrategy.merge(r,this.rawUrlTree);return this.scheduleNavigation(o,Pm,null,i)}navigate(e,i={skipLocationChange:!1}){return DK(e),this.navigateByUrl(this.createUrlTree(e,i),i)}serializeUrl(e){return this.urlSerializer.serialize(e)}parseUrl(e){try{return this.urlSerializer.parse(e)}catch{return this.console.warn(Ro(4018,!1)),this.urlSerializer.parse("/")}}isActive(e,i){let r;if(i===!0?r=M({},CK):i===!1?r=M({},wK):r=i,ec(e))return uN(this.currentUrlTree,e,r);let o=this.parseUrl(e);return uN(this.currentUrlTree,o,r)}removeEmptyProps(e){return Object.entries(e).reduce((i,[r,o])=>(o!=null&&(i[r]=o),i),{})}scheduleNavigation(e,i,r,o,a){if(this.disposed)return Promise.resolve(!1);let s,l,c;a?(s=a.resolve,l=a.reject,c=a.promise):c=new Promise((m,f)=>{s=m,l=f});let d=this.pendingTasks.add();return k0(this,()=>{queueMicrotask(()=>this.pendingTasks.remove(d))}),this.navigationTransitions.handleNavigationRequest({source:i,restoredState:r,currentUrlTree:this.currentUrlTree,currentRawUrl:this.currentUrlTree,rawUrl:e,extras:o,resolve:s,reject:l,promise:c,currentSnapshot:this.routerState.snapshot,currentRouterState:this.routerState}),c.catch(m=>Promise.reject(m))}static \u0275fac=function(i){return new(i||t)};static \u0275prov=O({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();function DK(t){for(let n=0;n{class t{router;route;tabIndexAttribute;renderer;el;locationStrategy;reactiveHref=he(null);get href(){return Ti(this.reactiveHref)}set href(e){this.reactiveHref.set(e)}target;queryParams;fragment;queryParamsHandling;state;info;relativeTo;isAnchorElement;subscription;onChanges=new z;applicationErrorHandler=u(hr);options=u(nc,{optional:!0});constructor(e,i,r,o,a,s){this.router=e,this.route=i,this.tabIndexAttribute=r,this.renderer=o,this.el=a,this.locationStrategy=s,this.reactiveHref.set(u(new Ii("href"),{optional:!0}));let l=a.nativeElement.tagName?.toLowerCase();this.isAnchorElement=l==="a"||l==="area"||!!(typeof customElements=="object"&&customElements.get(l)?.observedAttributes?.includes?.("href")),this.isAnchorElement?this.setTabIndexIfNotOnNativeEl("0"):this.subscribeToNavigationEventsIfNecessary()}subscribeToNavigationEventsIfNecessary(){if(this.subscription!==void 0||!this.isAnchorElement)return;let e=this.preserveFragment,i=r=>r==="merge"||r==="preserve";e||=i(this.queryParamsHandling),e||=!this.queryParamsHandling&&!i(this.options?.defaultQueryParamsHandling),e&&(this.subscription=this.router.events.subscribe(r=>{r instanceof vi&&this.updateHref()}))}preserveFragment=!1;skipLocationChange=!1;replaceUrl=!1;setTabIndexIfNotOnNativeEl(e){this.tabIndexAttribute!=null||this.isAnchorElement||this.applyAttributeValue("tabindex",e)}ngOnChanges(e){this.isAnchorElement&&(this.updateHref(),this.subscribeToNavigationEventsIfNecessary()),this.onChanges.next(this)}routerLinkInput=null;set routerLink(e){e==null?(this.routerLinkInput=null,this.setTabIndexIfNotOnNativeEl(null)):(ec(e)?this.routerLinkInput=e:this.routerLinkInput=Array.isArray(e)?e:[e],this.setTabIndexIfNotOnNativeEl("0"))}onClick(e,i,r,o,a){let s=this.urlTree;if(s===null||this.isAnchorElement&&(e!==0||i||r||o||a||typeof this.target=="string"&&this.target!="_self"))return!0;let l={skipLocationChange:this.skipLocationChange,replaceUrl:this.replaceUrl,state:this.state,info:this.info};return this.router.navigateByUrl(s,l)?.catch(c=>{this.applicationErrorHandler(c)}),!this.isAnchorElement}ngOnDestroy(){this.subscription?.unsubscribe()}updateHref(){let e=this.urlTree;this.reactiveHref.set(e!==null&&this.locationStrategy?this.locationStrategy?.prepareExternalUrl(this.router.serializeUrl(e))??"":null)}applyAttributeValue(e,i){let r=this.renderer,o=this.el.nativeElement;i!==null?r.setAttribute(o,e,i):r.removeAttribute(o,e)}get urlTree(){return this.routerLinkInput===null?null:ec(this.routerLinkInput)?this.routerLinkInput:this.router.createUrlTree(this.routerLinkInput,{relativeTo:this.relativeTo!==void 0?this.relativeTo:this.route,queryParams:this.queryParams,fragment:this.fragment,queryParamsHandling:this.queryParamsHandling,preserveFragment:this.preserveFragment})}static \u0275fac=function(i){return new(i||t)(_e(Re),_e(wi),qp("tabindex"),_e(je),_e(q),_e(Ea))};static \u0275dir=F({type:t,selectors:[["","routerLink",""]],hostVars:2,hostBindings:function(i,r){i&1&&S("click",function(a){return r.onClick(a.button,a.ctrlKey,a.shiftKey,a.altKey,a.metaKey)}),i&2&&X("href",r.reactiveHref(),sM)("target",r.target)},inputs:{target:"target",queryParams:"queryParams",fragment:"fragment",queryParamsHandling:"queryParamsHandling",state:"state",info:"info",relativeTo:"relativeTo",preserveFragment:[2,"preserveFragment","preserveFragment",V],skipLocationChange:[2,"skipLocationChange","skipLocationChange",V],replaceUrl:[2,"replaceUrl","replaceUrl",V],routerLink:"routerLink"},features:[Ae]})}return t})(),zd=(()=>{class t{router;element;renderer;cdr;link;links;classes=[];routerEventsSubscription;linkInputChangesSubscription;_isActive=!1;get isActive(){return this._isActive}routerLinkActiveOptions={exact:!1};ariaCurrentWhenActive;isActiveChange=new U;constructor(e,i,r,o,a){this.router=e,this.element=i,this.renderer=r,this.cdr=o,this.link=a,this.routerEventsSubscription=e.events.subscribe(s=>{s instanceof vi&&this.update()})}ngAfterContentInit(){Q(this.links.changes,Q(null)).pipe(uo()).subscribe(e=>{this.update(),this.subscribeToEachLinkOnChanges()})}subscribeToEachLinkOnChanges(){this.linkInputChangesSubscription?.unsubscribe();let e=[...this.links.toArray(),this.link].filter(i=>!!i).map(i=>i.onChanges);this.linkInputChangesSubscription=Ot(e).pipe(uo()).subscribe(i=>{this._isActive!==this.isLinkActive(this.router)(i)&&this.update()})}set routerLinkActive(e){let i=Array.isArray(e)?e:e.split(" ");this.classes=i.filter(r=>!!r)}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(i=>{e?this.renderer.addClass(this.element.nativeElement,i):this.renderer.removeClass(this.element.nativeElement,i)}),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 i=EK(this.routerLinkActiveOptions)?this.routerLinkActiveOptions:this.routerLinkActiveOptions.exact||!1;return r=>{let o=r.urlTree;return o?e.isActive(o,i):!1}}hasActiveLinks(){let e=this.isLinkActive(this.router);return this.link&&e(this.link)||this.links.some(e)}static \u0275fac=function(i){return new(i||t)(_e(Re),_e(q),_e(je),_e(ye),_e(Nn,8))};static \u0275dir=F({type:t,selectors:[["","routerLinkActive",""]],contentQueries:function(i,r,o){if(i&1&&xe(o,Nn,5),i&2){let a;B(a=j())&&(r.links=a)}},inputs:{routerLinkActiveOptions:"routerLinkActiveOptions",ariaCurrentWhenActive:"ariaCurrentWhenActive",routerLinkActive:"routerLinkActive"},outputs:{isActiveChange:"isActiveChange"},exportAs:["routerLinkActive"],features:[Ae]})}return t})();function EK(t){return!!t.paths}var Bf=class{};var JN=(()=>{class t{router;injector;preloadingStrategy;loader;subscription;constructor(e,i,r,o){this.router=e,this.injector=i,this.preloadingStrategy=r,this.loader=o}setUpPreloading(){this.subscription=this.router.events.pipe(ce(e=>e instanceof vi),Ao(()=>this.preload())).subscribe(()=>{})}preload(){return this.processRoutes(this.injector,this.router.config)}ngOnDestroy(){this.subscription&&this.subscription.unsubscribe()}processRoutes(e,i){let r=[];for(let o of i){o.providers&&!o._injector&&(o._injector=vm(o.providers,e,`Route: ${o.path}`));let a=o._injector??e,s=o._loadedInjector??a;(o.loadChildren&&!o._loadedRoutes&&o.canLoad===void 0||o.loadComponent&&!o._loadedComponent)&&r.push(this.preloadConfig(a,o)),(o.children||o._loadedRoutes)&&r.push(this.processRoutes(s,o.children??o._loadedRoutes))}return Ot(r).pipe(uo())}preloadConfig(e,i){return this.preloadingStrategy.preload(i,()=>{let r;i.loadChildren&&i.canLoad===void 0?r=this.loader.loadChildren(e,i):r=Q(null);let o=r.pipe(Mt(a=>a===null?Q(void 0):(i._loadedRoutes=a.routes,i._loadedInjector=a.injector,this.processRoutes(a.injector??e,a.routes))));if(i.loadComponent&&!i._loadedComponent){let a=this.loader.loadComponent(e,i);return Ot([o,a]).pipe(uo())}else return o})}static \u0275fac=function(i){return new(i||t)(pe(Re),pe(Wt),pe(Bf),pe(E0))};static \u0275prov=O({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),rk=new T(""),eL=(()=>{class t{urlSerializer;transitions;viewportScroller;zone;options;routerEventsSubscription;scrollEventsSubscription;lastId=0;lastSource=Pm;restoredId=0;store={};constructor(e,i,r,o,a={}){this.urlSerializer=e,this.transitions=i,this.viewportScroller=r,this.zone=o,this.options=a,a.scrollPositionRestoration||="disabled",a.anchorScrolling||="disabled"}init(){this.options.scrollPositionRestoration!=="disabled"&&this.viewportScroller.setHistoryScrollRestoration("manual"),this.routerEventsSubscription=this.createScrollEvents(),this.scrollEventsSubscription=this.consumeScrollEvents()}createScrollEvents(){return this.transitions.events.subscribe(e=>{e instanceof ps?(this.store[this.lastId]=this.viewportScroller.getScrollPosition(),this.lastSource=e.navigationTrigger,this.restoredId=e.restoredState?e.restoredState.navigationId:0):e instanceof vi?(this.lastId=e.id,this.scheduleScrollEvent(e,this.urlSerializer.parse(e.urlAfterRedirects).fragment)):e instanceof fs&&e.code===Nm.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 Lm))return;let i={behavior:"instant"};e.position?this.options.scrollPositionRestoration==="top"?this.viewportScroller.scrollToPosition([0,0],i):this.options.scrollPositionRestoration==="enabled"&&this.viewportScroller.scrollToPosition(e.position,i):e.anchor&&this.options.anchorScrolling==="enabled"?this.viewportScroller.scrollToAnchor(e.anchor):this.options.scrollPositionRestoration!=="disabled"&&this.viewportScroller.scrollToPosition([0,0])})}scheduleScrollEvent(e,i){this.zone.runOutsideAngular(()=>fn(this,null,function*(){yield new Promise(r=>{setTimeout(r),typeof requestAnimationFrame<"u"&&requestAnimationFrame(r)}),this.zone.run(()=>{this.transitions.events.next(new Lm(e,this.lastSource==="popstate"?this.store[this.restoredId]:null,i))})}))}ngOnDestroy(){this.routerEventsSubscription?.unsubscribe(),this.scrollEventsSubscription?.unsubscribe()}static \u0275fac=function(i){Ad()};static \u0275prov=O({token:t,factory:t.\u0275fac})}return t})();function ok(t,...n){return zr([{provide:Hd,multi:!0,useValue:t},[],{provide:wi,useFactory:tL,deps:[Re]},{provide:nf,multi:!0,useFactory:iL},n.map(e=>e.\u0275providers)])}function tL(t){return t.routerState.root}function Um(t,n){return{\u0275kind:t,\u0275providers:n}}function ak(t={}){return Um(4,[{provide:rk,useFactory:()=>{let e=u(h1),i=u(ae),r=u(Vf),o=u(ic);return new eL(o,r,e,i,t)}}])}function iL(){let t=u(de);return n=>{let e=t.get(Gn);if(n!==e.components[0])return;let i=t.get(Re),r=t.get(nL);t.get(sk)===1&&i.initialNavigation(),t.get(aL,null,{optional:!0})?.setUpPreloading(),t.get(rk,null,{optional:!0})?.init(),i.resetRootComponentType(e.componentTypes[0]),r.closed||(r.next(),r.complete(),r.unsubscribe())}}var nL=new T("",{factory:()=>new z}),sk=new T("",{providedIn:"root",factory:()=>1});function rL(){let t=[{provide:lv,useValue:!0},{provide:sk,useValue:0},Ql(()=>{let n=u(de);return n.get(JM,Promise.resolve()).then(()=>new Promise(i=>{let r=n.get(Re),o=n.get(nL);k0(r,()=>{i(!0)}),n.get(Vf).afterPreactivation=()=>(i(!0),o.closed?Q(void 0):o),r.initialNavigation()}))})];return Um(2,t)}function oL(){let t=[Ql(()=>{u(Re).setUpLocationChangeListener()}),{provide:sk,useValue:2}];return Um(3,t)}var aL=new T("");function sL(t){return Um(0,[{provide:aL,useExisting:JN},{provide:Bf,useExisting:t}])}function S0(){return Um(8,[K1,{provide:Nf,useExisting:K1}])}function lL(t){cs("NgRouterViewTransitions");let n=[{provide:ek,useValue:KN},{provide:tk,useValue:M({skipNextTransition:!!t?.skipInitialTransition},t)}];return Um(9,n)}var cL=[us,{provide:ic,useClass:Jl},Re,jd,{provide:wi,useFactory:tL,deps:[Re]},E0,[]],lk=(()=>{class t{constructor(){}static forRoot(e,i){return{ngModule:t,providers:[cL,[],{provide:Hd,multi:!0,useValue:e},[],i?.errorHandler?{provide:ik,useValue:i.errorHandler}:[],{provide:nc,useValue:i||{}},i?.useHash?kK():SK(),MK(),i?.preloadingStrategy?sL(i.preloadingStrategy).\u0275providers:[],i?.initialNavigation?TK(i):[],i?.bindToComponentInputs?S0().\u0275providers:[],i?.enableViewTransitions?lL().\u0275providers:[],IK()]}}static forChild(e){return{ngModule:t,providers:[{provide:Hd,multi:!0,useValue:e}]}}static \u0275fac=function(i){return new(i||t)};static \u0275mod=ee({type:t});static \u0275inj=J({})}return t})();function MK(){return{provide:rk,useFactory:()=>{let t=u(h1),n=u(ae),e=u(nc),i=u(Vf),r=u(ic);return e.scrollOffset&&t.setOffset(e.scrollOffset),new eL(r,i,t,n,e)}}}function kK(){return{provide:Ea,useClass:l1}}function SK(){return{provide:Ea,useClass:Fv}}function TK(t){return[t.initialNavigation==="disabled"?oL().\u0275providers:[],t.initialNavigation==="enabledBlocking"?rL().\u0275providers:[]]}var nk=new T("");function IK(){return[{provide:nk,useFactory:iL},{provide:nf,multi:!0,useExisting:nk}]}var dk=class{validateSignature(n){return Promise.resolve(null)}validateAtHash(n){return Promise.resolve(!0)}},T0=class{};var jf=class{},AK=(()=>{let n=class n extends jf{now(){return Date.now()}new(){return new Date}};n.\u0275fac=(()=>{let i;return function(o){return(i||(i=fe(n)))(o||n)}})(),n.\u0275prov=O({token:n,factory:n.\u0275fac});let t=n;return t})();var I0=class{},A0=class{},OK=(()=>{let n=class n{constructor(){this.data=new Map}getItem(i){return this.data.get(i)}removeItem(i){this.data.delete(i)}setItem(i,r){this.data.set(i,r)}};n.\u0275fac=function(r){return new(r||n)},n.\u0275prov=O({token:n,factory:n.\u0275fac});let t=n;return t})();var Hf=class{constructor(n){this.type=n}},Rr=class extends Hf{constructor(n,e=null){super(n),this.info=e}},Ia=class extends Hf{constructor(n,e=null){super(n),this.info=e}},Ui=class extends Hf{constructor(n,e,i=null){super(n),this.reason=e,this.params=i}};function uL(t){let n=t.replace(/-/g,"+").replace(/_/g,"/");return decodeURIComponent(atob(n).split("").map(function(e){return"%"+("00"+e.charCodeAt(0).toString(16)).slice(-2)}).join(""))}function mL(t){return btoa(t).replace(/\+/g,"-").replace(/\//g,"_").replace(/=/g,"")}var $m=class{constructor(n){this.clientId="",this.redirectUri="",this.postLogoutRedirectUri="",this.redirectUriAsPostLogoutRedirectUriFallback=!0,this.loginUrl="",this.scope="openid profile",this.resource="",this.rngUrl="",this.oidc=!0,this.requestAccessToken=!0,this.options=null,this.issuer="",this.logoutUrl="",this.clearHashAfterLogin=!0,this.tokenEndpoint=null,this.revocationEndpoint=null,this.customTokenParameters=[],this.userinfoEndpoint=null,this.responseType="",this.showDebugInformation=!1,this.silentRefreshRedirectUri="",this.silentRefreshMessagePrefix="",this.silentRefreshShowIFrame=!1,this.siletRefreshTimeout=1e3*20,this.silentRefreshTimeout=1e3*20,this.dummyClientSecret="",this.requireHttps="remoteOnly",this.strictDiscoveryDocumentValidation=!0,this.jwks=null,this.customQueryParams=null,this.silentRefreshIFrameName="angular-oauth-oidc-silent-refresh-iframe",this.timeoutFactor=.75,this.sessionChecksEnabled=!1,this.sessionCheckIntervall=3*1e3,this.sessionCheckIFrameUrl=null,this.sessionCheckIFrameName="angular-oauth-oidc-check-session-iframe",this.disableAtHashCheck=!1,this.skipSubjectCheck=!1,this.useIdTokenHintForSilentRefresh=!1,this.skipIssuerCheck=!1,this.nonceStateSeparator=";",this.useHttpBasicAuth=!1,this.decreaseExpirationBySec=0,this.waitForTokenInMsec=0,this.disablePKCE=!1,this.preserveRequestedRoute=!1,this.disableIdTokenTimer=!1,this.checkOrigin=!1,this.openUri=e=>{location.href=e},n&&Object.assign(this,n)}},Ud=class{encodeKey(n){return encodeURIComponent(n)}encodeValue(n){return encodeURIComponent(n)}decodeKey(n){return decodeURIComponent(n)}decodeValue(n){return decodeURIComponent(n)}},O0=class{};var hL=(()=>{let n=class n{getHashFragmentParams(i){let r=i||window.location.hash;if(r=decodeURIComponent(r),r.indexOf("#")!==0)return{};let o=r.indexOf("?");return o>-1?r=r.substr(o+1):r=r.substr(1),this.parseQueryString(r)}parseQueryString(i){let r={},o,a,s,l,c,d;if(i===null)return r;let m=i.split("&");for(let f=0;f=64;){for(o=n[0],a=n[1],s=n[2],l=n[3],c=n[4],d=n[5],m=n[6],f=n[7],v=0;v<16;v++)w=i+v*4,t[v]=(e[w]&255)<<24|(e[w+1]&255)<<16|(e[w+2]&255)<<8|e[w+3]&255;for(v=16;v<64;v++)b=t[v-2],x=(b>>>17|b<<15)^(b>>>19|b<<13)^b>>>10,b=t[v-15],D=(b>>>7|b<<25)^(b>>>18|b<<14)^b>>>3,t[v]=(x+t[v-7]|0)+(D+t[v-16]|0);for(v=0;v<64;v++)x=(((c>>>6|c<<26)^(c>>>11|c<<21)^(c>>>25|c<<7))+(c&d^~c&m)|0)+(f+(PK[v]+t[v]|0)|0)|0,D=((o>>>2|o<<30)^(o>>>13|o<<19)^(o>>>22|o<<10))+(o&a^o&s^a&s)|0,f=m,m=d,d=c,c=l+x|0,l=s,s=a,a=o,o=x+D|0;n[0]+=o,n[1]+=a,n[2]+=s,n[3]+=l,n[4]+=c,n[5]+=d,n[6]+=m,n[7]+=f,i+=64,r-=64}return i}var uk=class{constructor(){this.digestLength=pL,this.blockSize=RK,this.state=new Int32Array(8),this.temp=new Int32Array(64),this.buffer=new Uint8Array(128),this.bufferLength=0,this.bytesHashed=0,this.finished=!1,this.reset()}reset(){return this.state[0]=1779033703,this.state[1]=3144134277,this.state[2]=1013904242,this.state[3]=2773480762,this.state[4]=1359893119,this.state[5]=2600822924,this.state[6]=528734635,this.state[7]=1541459225,this.bufferLength=0,this.bytesHashed=0,this.finished=!1,this}clean(){for(let n=0;n0){for(;this.bufferLength<64&&e>0;)this.buffer[this.bufferLength++]=n[i++],e--;this.bufferLength===64&&(ck(this.temp,this.state,this.buffer,0,64),this.bufferLength=0)}for(e>=64&&(i=ck(this.temp,this.state,n,i,e),e%=64);e>0;)this.buffer[this.bufferLength++]=n[i++],e--;return this}finish(n){if(!this.finished){let e=this.bytesHashed,i=this.bufferLength,r=e/536870912|0,o=e<<3,a=e%64<56?64:128;this.buffer[i]=128;for(let s=i+1;s>>24&255,this.buffer[a-7]=r>>>16&255,this.buffer[a-6]=r>>>8&255,this.buffer[a-5]=r>>>0&255,this.buffer[a-4]=o>>>24&255,this.buffer[a-3]=o>>>16&255,this.buffer[a-2]=o>>>8&255,this.buffer[a-1]=o>>>0&255,ck(this.temp,this.state,this.buffer,0,a),this.finished=!0}for(let e=0;e<8;e++)n[e*4+0]=this.state[e]>>>24&255,n[e*4+1]=this.state[e]>>>16&255,n[e*4+2]=this.state[e]>>>8&255,n[e*4+3]=this.state[e]>>>0&255;return this}digest(){let n=new Uint8Array(this.digestLength);return this.finish(n),n}_saveState(n){for(let e=0;e{let n=class n{calcHash(i,r){return fn(this,null,function*(){return LK(FK(NK(i)))})}toHashString2(i){let r="";for(let o of i)r+=String.fromCharCode(o);return r}toHashString(i){let r=new Uint8Array(i),o="";for(let a of r)o+=String.fromCharCode(a);return o}};n.\u0275fac=function(r){return new(r||n)},n.\u0275prov=O({token:n,factory:n.\u0275fac});let t=n;return t})(),Wm=(()=>{let n=class n extends $m{constructor(i,r,o,a,s,l,c,d,m,f){super(),this.ngZone=i,this.http=r,this.config=s,this.urlHelper=l,this.logger=c,this.crypto=d,this.dateTimeService=f,this.discoveryDocumentLoaded=!1,this.state="",this.eventsSubject=new z,this.discoveryDocumentLoadedSubject=new z,this.grantTypesSupported=[],this.inImplicitFlow=!1,this.saveNoncesInLocalStorage=!1,this.debug("angular-oauth2-oidc v10"),this.document=m,s||(s={}),this.discoveryDocumentLoaded$=this.discoveryDocumentLoadedSubject.asObservable(),this.events=this.eventsSubject.asObservable(),a&&(this.tokenValidationHandler=a),s&&this.configure(s);try{o?this.setStorage(o):typeof sessionStorage<"u"&&this.setStorage(sessionStorage)}catch(b){console.error("No OAuthStorage provided and cannot access default (sessionStorage).Consider providing a custom OAuthStorage implementation in your module.",b)}if(this.checkLocalStorageAccessable()){let b=window?.navigator?.userAgent;(b?.includes("MSIE ")||b?.includes("Trident"))&&(this.saveNoncesInLocalStorage=!0)}this.setupRefreshTimer()}checkLocalStorageAccessable(){if(typeof window>"u")return!1;let i="test";try{return typeof window.localStorage>"u"?!1:(localStorage.setItem(i,i),localStorage.removeItem(i),!0)}catch{return!1}}configure(i){Object.assign(this,new $m,i),this.config=Object.assign({},new $m,i),this.sessionChecksEnabled&&this.setupSessionCheck(),this.configChanged()}configChanged(){this.setupRefreshTimer()}restartSessionChecksIfStillLoggedIn(){this.hasValidIdToken()&&this.initSessionCheck()}restartRefreshTimerIfStillLoggedIn(){this.setupExpirationTimers()}setupSessionCheck(){this.events.pipe(ce(i=>i.type==="token_received")).subscribe(()=>{this.initSessionCheck()})}setupAutomaticSilentRefresh(i={},r,o=!0){let a=!0;this.clearAutomaticRefreshTimer(),this.automaticRefreshSubscription=this.events.pipe(Be(s=>{s.type==="token_received"?a=!0:s.type==="logout"&&(a=!1)}),ce(s=>s.type==="token_expires"&&(r==null||r==="any"||s.info===r)),Rt(1e3)).subscribe(()=>{a&&this.refreshInternal(i,o).catch(()=>{this.debug("Automatic silent refresh did not work")})}),this.restartRefreshTimerIfStillLoggedIn()}refreshInternal(i,r){return!this.useSilentRefresh&&this.responseType==="code"?this.refreshToken():this.silentRefresh(i,r)}loadDiscoveryDocumentAndTryLogin(i=null){return this.loadDiscoveryDocument().then(()=>this.tryLogin(i))}loadDiscoveryDocumentAndLogin(i=null){return i=i||{},this.loadDiscoveryDocumentAndTryLogin(i).then(()=>{if(!this.hasValidIdToken()||!this.hasValidAccessToken()){let r=typeof i.state=="string"?i.state:"";return this.initLoginFlow(r),!1}else return!0})}debug(...i){this.showDebugInformation&&this.logger.debug(...i)}validateUrlFromDiscoveryDocument(i){let r=[],o=this.validateUrlForHttps(i),a=this.validateUrlAgainstIssuer(i);return o||r.push("https for all urls required. Also for urls received by discovery."),a||r.push("Every url in discovery document has to start with the issuer url.Also see property strictDiscoveryDocumentValidation."),r}validateUrlForHttps(i){if(!i)return!0;let r=i.toLowerCase();return this.requireHttps===!1||(r.match(/^http:\/\/localhost($|[:/])/)||r.match(/^http:\/\/localhost($|[:/])/))&&this.requireHttps==="remoteOnly"?!0:r.startsWith("https://")}assertUrlNotNullAndCorrectProtocol(i,r){if(!i)throw new Error(`'${r}' should not be null`);if(!this.validateUrlForHttps(i))throw new Error(`'${r}' must use HTTPS (with TLS), or config value for property 'requireHttps' must be set to 'false' and allow HTTP (without TLS).`)}validateUrlAgainstIssuer(i){return!this.strictDiscoveryDocumentValidation||!i?!0:i.toLowerCase().startsWith(this.issuer.toLowerCase())}setupRefreshTimer(){if(typeof window>"u"){this.debug("timer not supported on this plattform");return}(this.hasValidIdToken()||this.hasValidAccessToken())&&(this.clearAccessTokenTimer(),this.clearIdTokenTimer(),this.setupExpirationTimers()),this.tokenReceivedSubscription&&this.tokenReceivedSubscription.unsubscribe(),this.tokenReceivedSubscription=this.events.pipe(ce(i=>i.type==="token_received")).subscribe(()=>{this.clearAccessTokenTimer(),this.clearIdTokenTimer(),this.setupExpirationTimers()})}setupExpirationTimers(){this.hasValidAccessToken()&&this.setupAccessTokenTimer(),!this.disableIdTokenTimer&&this.hasValidIdToken()&&this.setupIdTokenTimer()}setupAccessTokenTimer(){let i=this.getAccessTokenExpiration(),r=this.getAccessTokenStoredAt(),o=this.calcTimeout(r,i);this.ngZone.runOutsideAngular(()=>{this.accessTokenTimeoutSubscription=Q(new Ia("token_expires","access_token")).pipe(pa(o)).subscribe(a=>{this.ngZone.run(()=>{this.eventsSubject.next(a)})})})}setupIdTokenTimer(){let i=this.getIdTokenExpiration(),r=this.getIdTokenStoredAt(),o=this.calcTimeout(r,i);this.ngZone.runOutsideAngular(()=>{this.idTokenTimeoutSubscription=Q(new Ia("token_expires","id_token")).pipe(pa(o)).subscribe(a=>{this.ngZone.run(()=>{this.eventsSubject.next(a)})})})}stopAutomaticRefresh(){this.clearAccessTokenTimer(),this.clearIdTokenTimer(),this.clearAutomaticRefreshTimer()}clearAccessTokenTimer(){this.accessTokenTimeoutSubscription&&this.accessTokenTimeoutSubscription.unsubscribe()}clearIdTokenTimer(){this.idTokenTimeoutSubscription&&this.idTokenTimeoutSubscription.unsubscribe()}clearAutomaticRefreshTimer(){this.automaticRefreshSubscription&&this.automaticRefreshSubscription.unsubscribe()}calcTimeout(i,r){let o=this.dateTimeService.now(),a=(r-i)*this.timeoutFactor-(o-i),s=Math.max(0,a),l=2147483647;return s>l?l:s}setStorage(i){this._storage=i,this.configChanged()}loadDiscoveryDocument(i=null){return new Promise((r,o)=>{if(i||(i=this.issuer||"",i.endsWith("/")||(i+="/"),i+=".well-known/openid-configuration"),!this.validateUrlForHttps(i)){o("issuer must use HTTPS (with TLS), or config value for property 'requireHttps' must be set to 'false' and allow HTTP (without TLS).");return}this.http.get(i).subscribe(a=>{if(!this.validateDiscoveryDocument(a)){this.eventsSubject.next(new Ui("discovery_document_validation_error",null)),o("discovery_document_validation_error");return}this.loginUrl=a.authorization_endpoint,this.logoutUrl=a.end_session_endpoint||this.logoutUrl,this.grantTypesSupported=a.grant_types_supported,this.issuer=a.issuer,this.tokenEndpoint=a.token_endpoint,this.userinfoEndpoint=a.userinfo_endpoint||this.userinfoEndpoint,this.jwksUri=a.jwks_uri,this.sessionCheckIFrameUrl=a.check_session_iframe||this.sessionCheckIFrameUrl,this.discoveryDocumentLoaded=!0,this.discoveryDocumentLoadedSubject.next(a),this.revocationEndpoint=a.revocation_endpoint||this.revocationEndpoint,this.sessionChecksEnabled&&this.restartSessionChecksIfStillLoggedIn(),this.loadJwks().then(s=>{let l={discoveryDocument:a,jwks:s},c=new Rr("discovery_document_loaded",l);this.eventsSubject.next(c),r(c)}).catch(s=>{this.eventsSubject.next(new Ui("discovery_document_load_error",s)),o(s)})},a=>{this.logger.error("error loading discovery document",a),this.eventsSubject.next(new Ui("discovery_document_load_error",a)),o(a)})})}loadJwks(){return new Promise((i,r)=>{this.jwksUri?this.http.get(this.jwksUri).subscribe(o=>{this.jwks=o,i(o)},o=>{this.logger.error("error loading jwks",o),this.eventsSubject.next(new Ui("jwks_load_error",o)),r(o)}):i(null)})}validateDiscoveryDocument(i){let r;return!this.skipIssuerCheck&&i.issuer!==this.issuer?(this.logger.error("invalid issuer in discovery document","expected: "+this.issuer,"current: "+i.issuer),!1):(r=this.validateUrlFromDiscoveryDocument(i.authorization_endpoint),r.length>0?(this.logger.error("error validating authorization_endpoint in discovery document",r),!1):(r=this.validateUrlFromDiscoveryDocument(i.end_session_endpoint),r.length>0?(this.logger.error("error validating end_session_endpoint in discovery document",r),!1):(r=this.validateUrlFromDiscoveryDocument(i.token_endpoint),r.length>0&&this.logger.error("error validating token_endpoint in discovery document",r),r=this.validateUrlFromDiscoveryDocument(i.revocation_endpoint),r.length>0&&this.logger.error("error validating revocation_endpoint in discovery document",r),r=this.validateUrlFromDiscoveryDocument(i.userinfo_endpoint),r.length>0?(this.logger.error("error validating userinfo_endpoint in discovery document",r),!1):(r=this.validateUrlFromDiscoveryDocument(i.jwks_uri),r.length>0?(this.logger.error("error validating jwks_uri in discovery document",r),!1):(this.sessionChecksEnabled&&!i.check_session_iframe&&this.logger.warn("sessionChecksEnabled is activated but discovery document does not contain a check_session_iframe field"),!0)))))}fetchTokenUsingPasswordFlowAndLoadUserProfile(i,r,o=new _r){return this.fetchTokenUsingPasswordFlow(i,r,o).then(()=>this.loadUserProfile())}loadUserProfile(){if(!this.hasValidAccessToken())throw new Error("Can not load User Profile without access_token");if(!this.validateUrlForHttps(this.userinfoEndpoint))throw new Error("userinfoEndpoint must use HTTPS (with TLS), or config value for property 'requireHttps' must be set to 'false' and allow HTTP (without TLS).");return new Promise((i,r)=>{let o=new _r().set("Authorization","Bearer "+this.getAccessToken());this.http.get(this.userinfoEndpoint,{headers:o,observe:"response",responseType:"text"}).subscribe(a=>{if(this.debug("userinfo received",JSON.stringify(a)),a.headers.get("content-type").startsWith("application/json")){let s=JSON.parse(a.body),l=this.getIdentityClaims()||{};if(!this.skipSubjectCheck&&this.oidc&&(!l.sub||s.sub!==l.sub)){r(`if property oidc is true, the received user-id (sub) has to be the user-id of the user that has logged in with oidc. +if you are not using oidc but just oauth2 password flow set oidc to false`);return}s=Object.assign({},l,s),this._storage.setItem("id_token_claims_obj",JSON.stringify(s)),this.eventsSubject.next(new Rr("user_profile_loaded")),i({info:s})}else this.debug("userinfo is not JSON, treating it as JWE/JWS"),this.eventsSubject.next(new Rr("user_profile_loaded")),i(JSON.parse(a.body))},a=>{this.logger.error("error loading user info",a),this.eventsSubject.next(new Ui("user_profile_load_error",a)),r(a)})})}fetchTokenUsingPasswordFlow(i,r,o=new _r){let a={username:i,password:r};return this.fetchTokenUsingGrant("password",a,o)}fetchTokenUsingGrant(i,r,o=new _r){this.assertUrlNotNullAndCorrectProtocol(this.tokenEndpoint,"tokenEndpoint");let a=new Qn({encoder:new Ud}).set("grant_type",i).set("scope",this.scope);if(this.useHttpBasicAuth){let s=btoa(`${this.clientId}:${this.dummyClientSecret}`);o=o.set("Authorization","Basic "+s)}if(this.useHttpBasicAuth||(a=a.set("client_id",this.clientId)),!this.useHttpBasicAuth&&this.dummyClientSecret&&(a=a.set("client_secret",this.dummyClientSecret)),this.customQueryParams)for(let s of Object.getOwnPropertyNames(this.customQueryParams))a=a.set(s,this.customQueryParams[s]);for(let s of Object.keys(r))a=a.set(s,r[s]);return o=o.set("Content-Type","application/x-www-form-urlencoded"),new Promise((s,l)=>{this.http.post(this.tokenEndpoint,a,{headers:o}).subscribe(c=>{this.debug("tokenResponse",c),this.storeAccessTokenResponse(c.access_token,c.refresh_token,c.expires_in||this.fallbackAccessTokenExpirationTimeInSec,c.scope,this.extractRecognizedCustomParameters(c)),this.oidc&&c.id_token&&this.processIdToken(c.id_token,c.access_token).then(d=>{this.storeIdToken(d),s(c)}),this.eventsSubject.next(new Rr("token_received")),s(c)},c=>{this.logger.error("Error performing ${grantType} flow",c),this.eventsSubject.next(new Ui("token_error",c)),l(c)})})}refreshToken(){return this.assertUrlNotNullAndCorrectProtocol(this.tokenEndpoint,"tokenEndpoint"),new Promise((i,r)=>{let o=new Qn({encoder:new Ud}).set("grant_type","refresh_token").set("scope",this.scope).set("refresh_token",this._storage.getItem("refresh_token")),a=new _r().set("Content-Type","application/x-www-form-urlencoded");if(this.useHttpBasicAuth){let s=btoa(`${this.clientId}:${this.dummyClientSecret}`);a=a.set("Authorization","Basic "+s)}if(this.useHttpBasicAuth||(o=o.set("client_id",this.clientId)),!this.useHttpBasicAuth&&this.dummyClientSecret&&(o=o.set("client_secret",this.dummyClientSecret)),this.customQueryParams)for(let s of Object.getOwnPropertyNames(this.customQueryParams))o=o.set(s,this.customQueryParams[s]);this.http.post(this.tokenEndpoint,o,{headers:a}).pipe($e(s=>this.oidc&&s.id_token?Ot(this.processIdToken(s.id_token,s.access_token,!0)).pipe(Be(l=>this.storeIdToken(l)),se(()=>s)):Q(s))).subscribe(s=>{this.debug("refresh tokenResponse",s),this.storeAccessTokenResponse(s.access_token,s.refresh_token,s.expires_in||this.fallbackAccessTokenExpirationTimeInSec,s.scope,this.extractRecognizedCustomParameters(s)),this.eventsSubject.next(new Rr("token_received")),this.eventsSubject.next(new Rr("token_refreshed")),i(s)},s=>{this.logger.error("Error refreshing token",s),this.eventsSubject.next(new Ui("token_refresh_error",s)),r(s)})})}removeSilentRefreshEventListener(){this.silentRefreshPostMessageEventListener&&(window.removeEventListener("message",this.silentRefreshPostMessageEventListener),this.silentRefreshPostMessageEventListener=null)}setupSilentRefreshEventListener(){this.removeSilentRefreshEventListener(),this.silentRefreshPostMessageEventListener=i=>{let r=this.processMessageEventMessage(i);this.checkOrigin&&i.origin!==location.origin&&console.error("wrong origin requested silent refresh!"),this.tryLogin({customHashFragment:r,preventClearHashAfterLogin:!0,customRedirectUri:this.silentRefreshRedirectUri||this.redirectUri}).catch(o=>this.debug("tryLogin during silent refresh failed",o))},window.addEventListener("message",this.silentRefreshPostMessageEventListener)}silentRefresh(i={},r=!0){let o=this.getIdentityClaims()||{};if(this.useIdTokenHintForSilentRefresh&&this.hasValidIdToken()&&(i.id_token_hint=this.getIdToken()),!this.validateUrlForHttps(this.loginUrl))throw new Error("loginUrl must use HTTPS (with TLS), or config value for property 'requireHttps' must be set to 'false' and allow HTTP (without TLS).");if(typeof this.document>"u")throw new Error("silent refresh is not supported on this platform");let a=this.document.getElementById(this.silentRefreshIFrameName);a&&this.document.body.removeChild(a),this.silentRefreshSubject=o.sub;let s=this.document.createElement("iframe");s.id=this.silentRefreshIFrameName,this.setupSilentRefreshEventListener();let l=this.silentRefreshRedirectUri||this.redirectUri;this.createLoginUrl(null,null,l,r,i).then(f=>{s.setAttribute("src",f),this.silentRefreshShowIFrame||(s.style.display="none"),this.document.body.appendChild(s)});let c=this.events.pipe(ce(f=>f instanceof Ui),gn()),d=this.events.pipe(ce(f=>f.type==="token_received"),gn()),m=Q(new Ui("silent_refresh_timeout",null)).pipe(pa(this.silentRefreshTimeout));return Wu([c,d,m]).pipe(se(f=>{if(f instanceof Ui)throw f.type==="silent_refresh_timeout"?this.eventsSubject.next(f):(f=new Ui("silent_refresh_error",f),this.eventsSubject.next(f)),f;return f.type==="token_received"&&(f=new Rr("silently_refreshed"),this.eventsSubject.next(f)),f})).toPromise()}initImplicitFlowInPopup(i){return this.initLoginFlowInPopup(i)}initLoginFlowInPopup(i){return i=i||{},this.createLoginUrl(null,null,this.silentRefreshRedirectUri,!1,{display:"popup"}).then(r=>new Promise((o,a)=>{let l=null;i.windowRef?i.windowRef&&!i.windowRef.closed&&(l=i.windowRef,l.location.href=r):l=window.open(r,"ngx-oauth2-oidc-login",this.calculatePopupFeatures(i));let c,d=w=>{this.tryLogin({customHashFragment:w,preventClearHashAfterLogin:!0,customRedirectUri:this.silentRefreshRedirectUri}).then(()=>{f(),o(!0)},x=>{f(),a(x)})},m=()=>{(!l||l.closed)&&(f(),a(new Ui("popup_closed",{})))};l?c=window.setInterval(m,500):a(new Ui("popup_blocked",{}));let f=()=>{window.clearInterval(c),window.removeEventListener("storage",v),window.removeEventListener("message",b),l!==null&&l.close(),l=null},b=w=>{let x=this.processMessageEventMessage(w);x&&x!==null?(window.removeEventListener("storage",v),d(x)):console.log("false event firing")},v=w=>{w.key==="auth_hash"&&(window.removeEventListener("message",b),d(w.newValue))};window.addEventListener("message",b),window.addEventListener("storage",v)}))}calculatePopupFeatures(i){let r=i.height||470,o=i.width||500,a=window.screenLeft+(window.outerWidth-o)/2,s=window.screenTop+(window.outerHeight-r)/2;return`location=no,toolbar=no,width=${o},height=${r},top=${s},left=${a}`}processMessageEventMessage(i){let r="#";if(this.silentRefreshMessagePrefix&&(r+=this.silentRefreshMessagePrefix),!i||!i.data||typeof i.data!="string")return;let o=i.data;if(o.startsWith(r))return"#"+o.substr(r.length)}canPerformSessionCheck(){return this.sessionChecksEnabled?this.sessionCheckIFrameUrl?this.getSessionState()?!(typeof this.document>"u"):(console.warn("sessionChecksEnabled is activated but there is no session_state"),!1):(console.warn("sessionChecksEnabled is activated but there is no sessionCheckIFrameUrl"),!1):!1}setupSessionCheckEventListener(){this.removeSessionCheckEventListener(),this.sessionCheckEventListener=i=>{let r=i.origin.toLowerCase(),o=this.issuer.toLowerCase();if(this.debug("sessionCheckEventListener"),!o.startsWith(r)){this.debug("sessionCheckEventListener","wrong origin",r,"expected",o,"event",i);return}switch(i.data){case"unchanged":this.ngZone.run(()=>{this.handleSessionUnchanged()});break;case"changed":this.ngZone.run(()=>{this.handleSessionChange()});break;case"error":this.ngZone.run(()=>{this.handleSessionError()});break}this.debug("got info from session check inframe",i)},this.ngZone.runOutsideAngular(()=>{window.addEventListener("message",this.sessionCheckEventListener)})}handleSessionUnchanged(){this.debug("session check","session unchanged"),this.eventsSubject.next(new Ia("session_unchanged"))}handleSessionChange(){this.eventsSubject.next(new Ia("session_changed")),this.stopSessionCheckTimer(),!this.useSilentRefresh&&this.responseType==="code"?this.refreshToken().then(()=>{this.debug("token refresh after session change worked")}).catch(()=>{this.debug("token refresh did not work after session changed"),this.eventsSubject.next(new Ia("session_terminated")),this.logOut(!0)}):this.silentRefreshRedirectUri?(this.silentRefresh().catch(()=>this.debug("silent refresh failed after session changed")),this.waitForSilentRefreshAfterSessionChange()):(this.eventsSubject.next(new Ia("session_terminated")),this.logOut(!0))}waitForSilentRefreshAfterSessionChange(){this.events.pipe(ce(i=>i.type==="silently_refreshed"||i.type==="silent_refresh_timeout"||i.type==="silent_refresh_error"),gn()).subscribe(i=>{i.type!=="silently_refreshed"&&(this.debug("silent refresh did not work after session changed"),this.eventsSubject.next(new Ia("session_terminated")),this.logOut(!0))})}handleSessionError(){this.stopSessionCheckTimer(),this.eventsSubject.next(new Ia("session_error"))}removeSessionCheckEventListener(){this.sessionCheckEventListener&&(window.removeEventListener("message",this.sessionCheckEventListener),this.sessionCheckEventListener=null)}initSessionCheck(){if(!this.canPerformSessionCheck())return;let i=this.document.getElementById(this.sessionCheckIFrameName);i&&this.document.body.removeChild(i);let r=this.document.createElement("iframe");r.id=this.sessionCheckIFrameName,this.setupSessionCheckEventListener();let o=this.sessionCheckIFrameUrl;r.setAttribute("src",o),r.style.display="none",this.document.body.appendChild(r),this.startSessionCheckTimer()}startSessionCheckTimer(){this.stopSessionCheckTimer(),this.ngZone.runOutsideAngular(()=>{this.sessionCheckTimer=setInterval(this.checkSession.bind(this),this.sessionCheckIntervall)})}stopSessionCheckTimer(){this.sessionCheckTimer&&(clearInterval(this.sessionCheckTimer),this.sessionCheckTimer=null)}checkSession(){let i=this.document.getElementById(this.sessionCheckIFrameName);i||this.logger.warn("checkSession did not find iframe",this.sessionCheckIFrameName);let r=this.getSessionState();r||this.stopSessionCheckTimer();let o=this.clientId+" "+r;i.contentWindow.postMessage(o,this.issuer)}createLoginUrl(){return fn(this,arguments,function*(i="",r="",o="",a=!1,s={}){let l=this,c;o?c=o:c=this.redirectUri;let d=yield this.createAndSaveNonce();if(i?i=d+this.config.nonceStateSeparator+encodeURIComponent(i):i=d,!this.requestAccessToken&&!this.oidc)throw new Error("Either requestAccessToken or oidc or both must be true");this.config.responseType?this.responseType=this.config.responseType:this.oidc&&this.requestAccessToken?this.responseType="id_token token":this.oidc&&!this.requestAccessToken?this.responseType="id_token":this.responseType="token";let m=l.loginUrl.indexOf("?")>-1?"&":"?",f=l.scope;this.oidc&&!f.match(/(^|\s)openid($|\s)/)&&(f="openid "+f);let b=l.loginUrl+m+"response_type="+encodeURIComponent(l.responseType)+"&client_id="+encodeURIComponent(l.clientId)+"&state="+encodeURIComponent(i)+"&redirect_uri="+encodeURIComponent(c)+"&scope="+encodeURIComponent(f);if(this.responseType.includes("code")&&!this.disablePKCE){let[v,w]=yield this.createChallangeVerifierPairForPKCE();this.saveNoncesInLocalStorage&&typeof window.localStorage<"u"?localStorage.setItem("PKCE_verifier",w):this._storage.setItem("PKCE_verifier",w),b+="&code_challenge="+v,b+="&code_challenge_method=S256"}r&&(b+="&login_hint="+encodeURIComponent(r)),l.resource&&(b+="&resource="+encodeURIComponent(l.resource)),l.oidc&&(b+="&nonce="+encodeURIComponent(d)),a&&(b+="&prompt=none");for(let v of Object.keys(s))b+="&"+encodeURIComponent(v)+"="+encodeURIComponent(s[v]);if(this.customQueryParams)for(let v of Object.getOwnPropertyNames(this.customQueryParams))b+="&"+v+"="+encodeURIComponent(this.customQueryParams[v]);return b})}initImplicitFlowInternal(i="",r=""){if(this.inImplicitFlow)return;if(this.inImplicitFlow=!0,!this.validateUrlForHttps(this.loginUrl))throw new Error("loginUrl must use HTTPS (with TLS), or config value for property 'requireHttps' must be set to 'false' and allow HTTP (without TLS).");let o={},a=null;typeof r=="string"?a=r:typeof r=="object"&&(o=r),this.createLoginUrl(i,a,null,!1,o).then(this.config.openUri).catch(s=>{console.error("Error in initImplicitFlow",s),this.inImplicitFlow=!1})}initImplicitFlow(i="",r=""){this.loginUrl!==""?this.initImplicitFlowInternal(i,r):this.events.pipe(ce(o=>o.type==="discovery_document_loaded")).subscribe(()=>this.initImplicitFlowInternal(i,r))}resetImplicitFlow(){this.inImplicitFlow=!1}callOnTokenReceivedIfExists(i){let r=this;if(i.onTokenReceived){let o={idClaims:r.getIdentityClaims(),idToken:r.getIdToken(),accessToken:r.getAccessToken(),state:r.state};i.onTokenReceived(o)}}storeAccessTokenResponse(i,r,o,a,s){if(this._storage.setItem("access_token",i),a&&!Array.isArray(a)?this._storage.setItem("granted_scopes",JSON.stringify(a.split(" "))):a&&Array.isArray(a)&&this._storage.setItem("granted_scopes",JSON.stringify(a)),this._storage.setItem("access_token_stored_at",""+this.dateTimeService.now()),o){let l=o*1e3,d=this.dateTimeService.new().getTime()+l;this._storage.setItem("expires_at",""+d)}r&&this._storage.setItem("refresh_token",r),s&&s.forEach((l,c)=>{this._storage.setItem(c,l)})}tryLogin(i=null){return this.config.responseType==="code"?this.tryLoginCodeFlow(i).then(()=>!0):this.tryLoginImplicitFlow(i)}parseQueryString(i){return!i||i.length===0?{}:(i.charAt(0)==="?"&&(i=i.substr(1)),this.urlHelper.parseQueryString(i))}tryLoginCodeFlow(i=null){return fn(this,null,function*(){i=i||{};let r=i.customHashFragment?i.customHashFragment.substring(1):window.location.search,o=this.getCodePartsFromUrl(r),a=o.code,s=o.state,l=o.session_state;if(!i.preventClearHashAfterLogin){let m=location.origin+location.pathname+location.search.replace(/code=[^&$]*/,"").replace(/scope=[^&$]*/,"").replace(/state=[^&$]*/,"").replace(/session_state=[^&$]*/,"").replace(/^\?&/,"?").replace(/&$/,"").replace(/^\?$/,"").replace(/&+/g,"&").replace(/\?&/,"?").replace(/\?$/,"")+location.hash;history.replaceState(null,window.name,m)}let[c,d]=this.parseState(s);if(this.state=d,o.error){this.debug("error trying to login"),this.handleLoginError(i,o);let m=new Ui("code_error",{},o);return this.eventsSubject.next(m),Promise.reject(m)}if(!i.disableNonceCheck){if(!c)return this.saveRequestedRoute(),Promise.resolve();if(!i.disableOAuth2StateCheck&&!this.validateNonce(c)){let f=new Ui("invalid_nonce_in_state",null);return this.eventsSubject.next(f),Promise.reject(f)}}return this.storeSessionState(l),a&&(yield this.getTokenFromCode(a,i),this.restoreRequestedRoute()),Promise.resolve()})}saveRequestedRoute(){this.config.preserveRequestedRoute&&this._storage.setItem("requested_route",window.location.pathname+window.location.search)}restoreRequestedRoute(){let i=this._storage.getItem("requested_route");i&&history.replaceState(null,"",window.location.origin+i)}getCodePartsFromUrl(i){return!i||i.length===0?this.urlHelper.getHashFragmentParams():(i.charAt(0)==="?"&&(i=i.substr(1)),this.urlHelper.parseQueryString(i))}getTokenFromCode(i,r){let o=new Qn({encoder:new Ud}).set("grant_type","authorization_code").set("code",i).set("redirect_uri",r.customRedirectUri||this.redirectUri);if(!this.disablePKCE){let a;this.saveNoncesInLocalStorage&&typeof window.localStorage<"u"?a=localStorage.getItem("PKCE_verifier"):a=this._storage.getItem("PKCE_verifier"),a?o=o.set("code_verifier",a):console.warn("No PKCE verifier found in oauth storage!")}return this.fetchAndProcessToken(o,r)}fetchAndProcessToken(i,r){r=r||{},this.assertUrlNotNullAndCorrectProtocol(this.tokenEndpoint,"tokenEndpoint");let o=new _r().set("Content-Type","application/x-www-form-urlencoded");if(this.useHttpBasicAuth){let a=btoa(`${this.clientId}:${this.dummyClientSecret}`);o=o.set("Authorization","Basic "+a)}return this.useHttpBasicAuth||(i=i.set("client_id",this.clientId)),!this.useHttpBasicAuth&&this.dummyClientSecret&&(i=i.set("client_secret",this.dummyClientSecret)),new Promise((a,s)=>{if(this.customQueryParams)for(let l of Object.getOwnPropertyNames(this.customQueryParams))i=i.set(l,this.customQueryParams[l]);this.http.post(this.tokenEndpoint,i,{headers:o}).subscribe(l=>{this.debug("refresh tokenResponse",l),this.storeAccessTokenResponse(l.access_token,l.refresh_token,l.expires_in||this.fallbackAccessTokenExpirationTimeInSec,l.scope,this.extractRecognizedCustomParameters(l)),this.oidc&&l.id_token?this.processIdToken(l.id_token,l.access_token,r.disableNonceCheck).then(c=>{this.storeIdToken(c),this.eventsSubject.next(new Rr("token_received")),this.eventsSubject.next(new Rr("token_refreshed")),a(l)}).catch(c=>{this.eventsSubject.next(new Ui("token_validation_error",c)),console.error("Error validating tokens"),console.error(c),s(c)}):(this.eventsSubject.next(new Rr("token_received")),this.eventsSubject.next(new Rr("token_refreshed")),a(l))},l=>{console.error("Error getting token",l),this.eventsSubject.next(new Ui("token_error",l)),s(l)})})}tryLoginImplicitFlow(i=null){i=i||{};let r;i.customHashFragment?r=this.urlHelper.getHashFragmentParams(i.customHashFragment):r=this.urlHelper.getHashFragmentParams(),this.debug("parsed url",r);let o=r.state,[a,s]=this.parseState(o);if(this.state=s,r.error){this.debug("error trying to login"),this.handleLoginError(i,r);let f=new Ui("token_error",{},r);return this.eventsSubject.next(f),Promise.reject(f)}let l=r.access_token,c=r.id_token,d=r.session_state,m=r.scope;if(!this.requestAccessToken&&!this.oidc)return Promise.reject("Either requestAccessToken or oidc (or both) must be true.");if(this.requestAccessToken&&!l||this.requestAccessToken&&!i.disableOAuth2StateCheck&&!o||this.oidc&&!c)return Promise.resolve(!1);if(this.sessionChecksEnabled&&!d&&this.logger.warn("session checks (Session Status Change Notification) were activated in the configuration but the id_token does not contain a session_state claim"),this.requestAccessToken&&!i.disableNonceCheck&&!this.validateNonce(a)){let b=new Ui("invalid_nonce_in_state",null);return this.eventsSubject.next(b),Promise.reject(b)}return this.requestAccessToken&&this.storeAccessTokenResponse(l,null,r.expires_in||this.fallbackAccessTokenExpirationTimeInSec,m),this.oidc?this.processIdToken(c,l,i.disableNonceCheck).then(f=>i.validationHandler?i.validationHandler({accessToken:l,idClaims:f.idTokenClaims,idToken:f.idToken,state:o}).then(()=>f):f).then(f=>(this.storeIdToken(f),this.storeSessionState(d),this.clearHashAfterLogin&&!i.preventClearHashAfterLogin&&this.clearLocationHash(),this.eventsSubject.next(new Rr("token_received")),this.callOnTokenReceivedIfExists(i),this.inImplicitFlow=!1,!0)).catch(f=>(this.eventsSubject.next(new Ui("token_validation_error",f)),this.logger.error("Error validating tokens"),this.logger.error(f),Promise.reject(f))):(this.eventsSubject.next(new Rr("token_received")),this.clearHashAfterLogin&&!i.preventClearHashAfterLogin&&this.clearLocationHash(),this.callOnTokenReceivedIfExists(i),Promise.resolve(!0))}parseState(i){let r=i,o="";if(i){let a=i.indexOf(this.config.nonceStateSeparator);a>-1&&(r=i.substr(0,a),o=i.substr(a+this.config.nonceStateSeparator.length))}return[r,o]}validateNonce(i){let r;return this.saveNoncesInLocalStorage&&typeof window.localStorage<"u"?r=localStorage.getItem("nonce"):r=this._storage.getItem("nonce"),r!==i?(console.error("Validating access_token failed, wrong state/nonce.",r,i),!1):!0}storeIdToken(i){this._storage.setItem("id_token",i.idToken),this._storage.setItem("id_token_claims_obj",i.idTokenClaimsJson),this._storage.setItem("id_token_expires_at",""+i.idTokenExpiresAt),this._storage.setItem("id_token_stored_at",""+this.dateTimeService.now())}storeSessionState(i){this._storage.setItem("session_state",i)}getSessionState(){return this._storage.getItem("session_state")}handleLoginError(i,r){i.onLoginError&&i.onLoginError(r),this.clearHashAfterLogin&&!i.preventClearHashAfterLogin&&this.clearLocationHash()}getClockSkewInMsec(i=6e5){return!this.clockSkewInSec&&this.clockSkewInSec!==0?i:this.clockSkewInSec*1e3}processIdToken(i,r,o=!1){let a=i.split("."),s=this.padBase64(a[0]),l=uL(s),c=JSON.parse(l),d=this.padBase64(a[1]),m=uL(d),f=JSON.parse(m),b;if(this.saveNoncesInLocalStorage&&typeof window.localStorage<"u"?b=localStorage.getItem("nonce"):b=this._storage.getItem("nonce"),Array.isArray(f.aud)){if(f.aud.every(W=>W!==this.clientId)){let W="Wrong audience: "+f.aud.join(",");return this.logger.warn(W),Promise.reject(W)}}else if(f.aud!==this.clientId){let W="Wrong audience: "+f.aud;return this.logger.warn(W),Promise.reject(W)}if(!f.sub){let W="No sub claim in id_token";return this.logger.warn(W),Promise.reject(W)}if(this.sessionChecksEnabled&&this.silentRefreshSubject&&this.silentRefreshSubject!==f.sub){let W=`After refreshing, we got an id_token for another user (sub). Expected sub: ${this.silentRefreshSubject}, received sub: ${f.sub}`;return this.logger.warn(W),Promise.reject(W)}if(!f.iat){let W="No iat claim in id_token";return this.logger.warn(W),Promise.reject(W)}if(!this.skipIssuerCheck&&f.iss!==this.issuer){let W="Wrong issuer: "+f.iss;return this.logger.warn(W),Promise.reject(W)}if(!o&&f.nonce!==b){let W="Wrong nonce: "+f.nonce;return this.logger.warn(W),Promise.reject(W)}if(Object.prototype.hasOwnProperty.call(this,"responseType")&&(this.responseType==="code"||this.responseType==="id_token")&&(this.disableAtHashCheck=!0),!this.disableAtHashCheck&&this.requestAccessToken&&!f.at_hash){let W="An at_hash is needed!";return this.logger.warn(W),Promise.reject(W)}let v=this.dateTimeService.now(),w=f.iat*1e3,x=f.exp*1e3,D=this.getClockSkewInMsec();if(w-D>=v||x+D-this.decreaseExpirationBySec<=v){let W="Token has expired";return console.error(W),console.error({now:v,issuedAtMSec:w,expiresAtMSec:x}),Promise.reject(W)}let P={accessToken:r,idToken:i,jwks:this.jwks,idTokenClaims:f,idTokenHeader:c,loadKeys:()=>this.loadJwks()};return this.disableAtHashCheck?this.checkSignature(P).then(()=>({idToken:i,idTokenClaims:f,idTokenClaimsJson:m,idTokenHeader:c,idTokenHeaderJson:l,idTokenExpiresAt:x})):this.checkAtHash(P).then(W=>{if(!this.disableAtHashCheck&&this.requestAccessToken&&!W){let Z="Wrong at_hash";return this.logger.warn(Z),Promise.reject(Z)}return this.checkSignature(P).then(()=>{let Z=!this.disableAtHashCheck,K={idToken:i,idTokenClaims:f,idTokenClaimsJson:m,idTokenHeader:c,idTokenHeaderJson:l,idTokenExpiresAt:x};return Z?this.checkAtHash(P).then(re=>{if(this.requestAccessToken&&!re){let Ee="Wrong at_hash";return this.logger.warn(Ee),Promise.reject(Ee)}else return K}):K})})}getIdentityClaims(){let i=this._storage.getItem("id_token_claims_obj");return i?JSON.parse(i):null}getGrantedScopes(){let i=this._storage.getItem("granted_scopes");return i?JSON.parse(i):null}getIdToken(){return this._storage?this._storage.getItem("id_token"):null}padBase64(i){for(;i.length%4!==0;)i+="=";return i}getAccessToken(){return this._storage?this._storage.getItem("access_token"):null}getRefreshToken(){return this._storage?this._storage.getItem("refresh_token"):null}getAccessTokenExpiration(){return this._storage.getItem("expires_at")?parseInt(this._storage.getItem("expires_at"),10):null}getAccessTokenStoredAt(){return parseInt(this._storage.getItem("access_token_stored_at"),10)}getIdTokenStoredAt(){return parseInt(this._storage.getItem("id_token_stored_at"),10)}getIdTokenExpiration(){return this._storage.getItem("id_token_expires_at")?parseInt(this._storage.getItem("id_token_expires_at"),10):null}hasValidAccessToken(){if(this.getAccessToken()){let i=this._storage.getItem("expires_at"),r=this.dateTimeService.new();return!(i&&parseInt(i,10)-this.decreaseExpirationBySec=0&&this._storage.getItem(i)!==null?JSON.parse(this._storage.getItem(i)):null}authorizationHeader(){return"Bearer "+this.getAccessToken()}logOut(i={},r=""){let o=!1;typeof i=="boolean"&&(o=i,i={});let a=this.getIdToken();if(this._storage.removeItem("access_token"),this._storage.removeItem("id_token"),this._storage.removeItem("refresh_token"),this.saveNoncesInLocalStorage?(localStorage.removeItem("nonce"),localStorage.removeItem("PKCE_verifier")):(this._storage.removeItem("nonce"),this._storage.removeItem("PKCE_verifier")),this._storage.removeItem("expires_at"),this._storage.removeItem("id_token_claims_obj"),this._storage.removeItem("id_token_expires_at"),this._storage.removeItem("id_token_stored_at"),this._storage.removeItem("access_token_stored_at"),this._storage.removeItem("granted_scopes"),this._storage.removeItem("session_state"),this.config.customTokenParameters&&this.config.customTokenParameters.forEach(l=>this._storage.removeItem(l)),this.silentRefreshSubject=null,this.eventsSubject.next(new Ia("logout")),!this.logoutUrl||o)return;let s;if(!this.validateUrlForHttps(this.logoutUrl))throw new Error("logoutUrl must use HTTPS (with TLS), or config value for property 'requireHttps' must be set to 'false' and allow HTTP (without TLS).");if(this.logoutUrl.indexOf("{{")>-1)s=this.logoutUrl.replace(/\{\{id_token\}\}/,encodeURIComponent(a)).replace(/\{\{client_id\}\}/,encodeURIComponent(this.clientId));else{let l=new Qn({encoder:new Ud});a&&(l=l.set("id_token_hint",a));let c=this.postLogoutRedirectUri||this.redirectUriAsPostLogoutRedirectUriFallback&&this.redirectUri||"";c&&(l=l.set("post_logout_redirect_uri",c),r&&(l=l.set("state",r)));for(let d in i)l=l.set(d,i[d]);s=this.logoutUrl+(this.logoutUrl.indexOf("?")>-1?"&":"?")+l.toString()}this.config.openUri(s)}createAndSaveNonce(){let i=this;return this.createNonce().then(function(r){return i.saveNoncesInLocalStorage&&typeof window.localStorage<"u"?localStorage.setItem("nonce",r):i._storage.setItem("nonce",r),r})}ngOnDestroy(){this.clearAccessTokenTimer(),this.clearIdTokenTimer(),this.removeSilentRefreshEventListener();let i=this.document.getElementById(this.silentRefreshIFrameName);i&&i.remove(),this.stopSessionCheckTimer(),this.removeSessionCheckEventListener();let r=this.document.getElementById(this.sessionCheckIFrameName);r&&r.remove()}createNonce(){return new Promise(i=>{if(this.rngUrl)throw new Error("createNonce with rng-web-api has not been implemented so far");let r="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-._~",o=45,a="",s=typeof self>"u"?null:self.crypto||self.msCrypto;if(s){let l=new Uint8Array(o);s.getRandomValues(l),l.map||(l.map=Array.prototype.map),l=l.map(c=>r.charCodeAt(c%r.length)),a=String.fromCharCode.apply(null,l)}else for(;0o.type==="discovery_document_loaded")).subscribe(()=>this.initCodeFlowInternal(i,r))}initCodeFlowInternal(i="",r={}){if(!this.validateUrlForHttps(this.loginUrl))throw new Error("loginUrl must use HTTPS (with TLS), or config value for property 'requireHttps' must be set to 'false' and allow HTTP (without TLS).");let o={},a=null;typeof r=="string"?a=r:typeof r=="object"&&(o=r),this.createLoginUrl(i,a,null,!1,o).then(this.config.openUri).catch(s=>{console.error("Error in initAuthorizationCodeFlow"),console.error(s)})}createChallangeVerifierPairForPKCE(){return fn(this,null,function*(){if(!this.crypto)throw new Error("PKCE support for code flow needs a CryptoHander. Did you import the OAuthModule using forRoot() ?");let i=yield this.createNonce(),r=yield this.crypto.calcHash(i,"sha-256");return[mL(r),i]})}extractRecognizedCustomParameters(i){let r=new Map;return this.config.customTokenParameters&&this.config.customTokenParameters.forEach(o=>{i[o]&&r.set(o,JSON.stringify(i[o]))}),r}revokeTokenAndLogout(i={},r=!1){let o=this.revocationEndpoint,a=this.getAccessToken(),s=this.getRefreshToken();if(!a)return Promise.resolve();let l=new Qn({encoder:new Ud}),c=new _r().set("Content-Type","application/x-www-form-urlencoded");if(this.useHttpBasicAuth){let d=btoa(`${this.clientId}:${this.dummyClientSecret}`);c=c.set("Authorization","Basic "+d)}if(this.useHttpBasicAuth||(l=l.set("client_id",this.clientId)),!this.useHttpBasicAuth&&this.dummyClientSecret&&(l=l.set("client_secret",this.dummyClientSecret)),this.customQueryParams)for(let d of Object.getOwnPropertyNames(this.customQueryParams))l=l.set(d,this.customQueryParams[d]);return new Promise((d,m)=>{let f,b;if(a){let v=l.set("token",a).set("token_type_hint","access_token");f=this.http.post(o,v,{headers:c})}else f=Q(null);if(s){let v=l.set("token",s).set("token_type_hint","refresh_token");b=this.http.post(o,v,{headers:c})}else b=Q(null);r&&(f=f.pipe(fi(v=>v.status===0?Q(null):Wn(v))),b=b.pipe(fi(v=>v.status===0?Q(null):Wn(v)))),co([f,b]).subscribe(v=>{this.logOut(i),d(v),this.logger.info("Token successfully revoked")},v=>{this.logger.error("Error revoking token",v),this.eventsSubject.next(new Ui("token_revoke_error",v)),m(v)})})}clearLocationHash(){location.hash!=""&&(location.hash="")}};n.\u0275fac=function(r){return new(r||n)(pe(ae),pe(Yr),pe(A0,8),pe(O0,8),pe($m,8),pe(hL),pe(I0),pe(R0,8),pe(ge),pe(jf))},n.\u0275prov=O({token:n,factory:n.\u0275fac});let t=n;return t})(),P0=class{},mk=class{handleError(n){return Wn(n)}},BK=(()=>{let n=class n{constructor(i,r,o){this.oAuthService=i,this.errorHandler=r,this.moduleConfig=o}checkUrl(i){return this.moduleConfig.resourceServer.customUrlValidation?this.moduleConfig.resourceServer.customUrlValidation(i):this.moduleConfig.resourceServer.allowedUrls?!!this.moduleConfig.resourceServer.allowedUrls.find(r=>i.toLowerCase().startsWith(r.toLowerCase())):!0}intercept(i,r){let o=i.url.toLowerCase();return!this.moduleConfig||!this.moduleConfig.resourceServer||!this.checkUrl(o)?r.handle(i):this.moduleConfig.resourceServer.sendAccessToken?Je(Q(this.oAuthService.getAccessToken()).pipe(ce(s=>!!s)),this.oAuthService.events.pipe(ce(s=>s.type==="token_received"),Gw(this.oAuthService.waitForTokenInMsec||0),fi(()=>Q(null)),se(()=>this.oAuthService.getAccessToken()))).pipe(lt(1),Mt(s=>{if(s){let l="Bearer "+s,c=i.headers.set("Authorization",l);i=i.clone({headers:c})}return r.handle(i).pipe(fi(l=>this.errorHandler.handleError(l)))})):r.handle(i).pipe(fi(s=>this.errorHandler.handleError(s)))}};n.\u0275fac=function(r){return new(r||n)(pe(Wm),pe(P0),pe(T0,8))},n.\u0275prov=O({token:n,factory:n.\u0275fac});let t=n;return t})();function jK(){return console}function HK(){return typeof sessionStorage<"u"?sessionStorage:new OK}function fL(t=null,n=dk){return zr([Wm,hL,{provide:I0,useFactory:jK},{provide:A0,useFactory:HK},{provide:O0,useClass:n},{provide:R0,useClass:VK},{provide:P0,useClass:mk},{provide:T0,useValue:t},{provide:E1,useClass:BK,multi:!0},{provide:jf,useClass:AK}])}var zK=["mat-internal-form-field",""],UK=["*"],Gm=(()=>{class t{labelPosition;static \u0275fac=function(i){return new(i||t)};static \u0275cmp=E({type:t,selectors:[["div","mat-internal-form-field",""]],hostAttrs:[1,"mdc-form-field","mat-internal-form-field"],hostVars:2,hostBindings:function(i,r){i&2&&G("mdc-form-field--align-end",r.labelPosition==="before")},inputs:{labelPosition:"labelPosition"},attrs:zK,ngContentSelectors:UK,decls:1,vars:0,template:function(i,r){i&1&&(Me(),oe(0))},styles:[`.mat-internal-form-field{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;display:inline-flex;align-items:center;vertical-align:middle}.mat-internal-form-field>label{margin-left:0;margin-right:auto;padding-left:4px;padding-right:0;order:0}[dir=rtl] .mat-internal-form-field>label{margin-left:auto;margin-right:0;padding-left:0;padding-right:4px}.mdc-form-field--align-end>label{margin-left:auto;margin-right:0;padding-left:0;padding-right:4px;order:-1}[dir=rtl] .mdc-form-field--align-end .mdc-form-field--align-end label{margin-left:0;margin-right:auto;padding-left:4px;padding-right:0} +`],encapsulation:2,changeDetection:0})}return t})();var hk;try{hk=typeof Intl<"u"&&Intl.v8BreakIterator}catch{hk=!1}var qe=(()=>{class t{_platformId=u(Ks);isBrowser=this._platformId?z2(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||hk)&&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(i){return new(i||t)};static \u0275prov=O({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();function al(t){return Array.isArray(t)?t:[t]}var gL=new Set,$d,qm=(()=>{class t{_platform=u(qe);_nonce=u(gm,{optional:!0});_matchMedia;constructor(){this._matchMedia=this._platform.isBrowser&&window.matchMedia?window.matchMedia.bind(window):WK}matchMedia(e){return(this._platform.WEBKIT||this._platform.BLINK)&&$K(e,this._nonce),this._matchMedia(e)}static \u0275fac=function(i){return new(i||t)};static \u0275prov=O({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();function $K(t,n){if(!gL.has(t))try{$d||($d=document.createElement("style"),n&&$d.setAttribute("nonce",n),$d.setAttribute("type","text/css"),document.head.appendChild($d)),$d.sheet&&($d.sheet.insertRule(`@media ${t} {body{ }}`,0),gL.add(t))}catch(e){console.error(e)}}function WK(t){return{matches:t==="all"||t==="",media:t,addListener:()=>{},removeListener:()=>{}}}var sl=(()=>{class t{_mediaMatcher=u(qm);_zone=u(ae);_queries=new Map;_destroySubject=new z;constructor(){}ngOnDestroy(){this._destroySubject.next(),this._destroySubject.complete()}isMatched(e){return _L(al(e)).some(r=>this._registerQuery(r).mql.matches)}observe(e){let r=_L(al(e)).map(a=>this._registerQuery(a).observable),o=co(r);return o=mo(o.pipe(lt(1)),o.pipe(Ya(1),Rt(0))),o.pipe(se(a=>{let s={matches:!1,breakpoints:{}};return a.forEach(({matches:l,query:c})=>{s.matches=s.matches||l,s.breakpoints[c]=l}),s}))}_registerQuery(e){if(this._queries.has(e))return this._queries.get(e);let i=this._mediaMatcher.matchMedia(e),o={observable:new Fe(a=>{let s=l=>this._zone.run(()=>a.next(l));return i.addListener(s),()=>{i.removeListener(s)}}).pipe(He(i),se(({matches:a})=>({query:e,matches:a})),Te(this._destroySubject)),mql:i};return this._queries.set(e,o),o}static \u0275fac=function(i){return new(i||t)};static \u0275prov=O({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();function _L(t){return t.map(n=>n.split(",")).reduce((n,e)=>n.concat(e)).map(n=>n.trim())}var F0={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 GK=new T("MATERIAL_ANIMATIONS");var bL=null;function pk(){return u(GK,{optional:!0})?.animationsDisabled||u(Yp,{optional:!0})==="NoopAnimations"?"di-disabled":(bL??=u(qm).matchMedia("(prefers-reduced-motion)").matches,bL?"reduced-motion":"enabled")}function Ye(){return pk()!=="enabled"}function Wd(t){return t.buttons===0||t.detail===0}function Gd(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 fk;function vL(){if(fk==null){let t=typeof document<"u"?document.head:null;fk=!!(t&&(t.createShadowRoot||t.attachShadow))}return fk}function gk(t){if(vL()){let n=t.getRootNode?t.getRootNode():null;if(typeof ShadowRoot<"u"&&ShadowRoot&&n instanceof ShadowRoot)return n}return null}function _o(){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 Kn(t){return t.composedPath?t.composedPath()[0]:t.target}var zf;function yL(){if(zf==null&&typeof window<"u")try{window.addEventListener("test",null,Object.defineProperty({},"passive",{get:()=>zf=!0}))}finally{zf=zf||!1}return zf}function rc(t){return yL()?t:!!t.capture}function Ln(t,n=0){return N0(t)?Number(t):arguments.length===2?n:0}function N0(t){return!isNaN(parseFloat(t))&&!isNaN(Number(t))}function Pr(t){return t instanceof q?t.nativeElement:t}var xL=new T("cdk-input-modality-detector-options"),CL={ignoreKeys:[18,17,224,91,16]},wL=650,_k={passive:!0,capture:!0},DL=(()=>{class t{_platform=u(qe);_listenerCleanups;modalityDetected;modalityChanged;get mostRecentModality(){return this._modality.value}_mostRecentTarget=null;_modality=new tt(null);_options;_lastTouchMs=0;_onKeydown=e=>{this._options?.ignoreKeys?.some(i=>i===e.keyCode)||(this._modality.next("keyboard"),this._mostRecentTarget=Kn(e))};_onMousedown=e=>{Date.now()-this._lastTouchMs{if(Gd(e)){this._modality.next("keyboard");return}this._lastTouchMs=Date.now(),this._modality.next("touch"),this._mostRecentTarget=Kn(e)};constructor(){let e=u(ae),i=u(ge),r=u(xL,{optional:!0});if(this._options=M(M({},CL),r),this.modalityDetected=this._modality.pipe(Ya(1)),this.modalityChanged=this.modalityDetected.pipe(Sn()),this._platform.isBrowser){let o=u(cn).createRenderer(null,null);this._listenerCleanups=e.runOutsideAngular(()=>[o.listen(i,"keydown",this._onKeydown,_k),o.listen(i,"mousedown",this._onMousedown,_k),o.listen(i,"touchstart",this._onTouchstart,_k)])}}ngOnDestroy(){this._modality.complete(),this._listenerCleanups?.forEach(e=>e())}static \u0275fac=function(i){return new(i||t)};static \u0275prov=O({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),Uf=(function(t){return t[t.IMMEDIATE=0]="IMMEDIATE",t[t.EVENTUAL=1]="EVENTUAL",t})(Uf||{}),EL=new T("cdk-focus-monitor-default-options"),L0=rc({passive:!0,capture:!0}),Yt=(()=>{class t{_ngZone=u(ae);_platform=u(qe);_inputModalityDetector=u(DL);_origin=null;_lastFocusOrigin;_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=u(ge);_stopInputModalityDetector=new z;constructor(){let e=u(EL,{optional:!0});this._detectionMode=e?.detectionMode||Uf.IMMEDIATE}_rootNodeFocusAndBlurListener=e=>{let i=Kn(e);for(let r=i;r;r=r.parentElement)e.type==="focus"?this._onFocus(e,r):this._onBlur(e,r)};monitor(e,i=!1){let r=Pr(e);if(!this._platform.isBrowser||r.nodeType!==1)return Q();let o=gk(r)||this._document,a=this._elementInfo.get(r);if(a)return i&&(a.checkChildren=!0),a.subject;let s={checkChildren:i,subject:new z,rootNode:o};return this._elementInfo.set(r,s),this._registerGlobalListeners(s),s.subject}stopMonitoring(e){let i=Pr(e),r=this._elementInfo.get(i);r&&(r.subject.complete(),this._setClasses(i),this._elementInfo.delete(i),this._removeGlobalListeners(r))}focusVia(e,i,r){let o=Pr(e),a=this._document.activeElement;o===a?this._getClosestElementsInfo(o).forEach(([s,l])=>this._originChanged(s,i,l)):(this._setOrigin(i),typeof o.focus=="function"&&o.focus(r))}ngOnDestroy(){this._elementInfo.forEach((e,i)=>this.stopMonitoring(i))}_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===Uf.EVENTUAL||!!e?.contains(this._inputModalityDetector._mostRecentTarget)}_setClasses(e,i){e.classList.toggle("cdk-focused",!!i),e.classList.toggle("cdk-touch-focused",i==="touch"),e.classList.toggle("cdk-keyboard-focused",i==="keyboard"),e.classList.toggle("cdk-mouse-focused",i==="mouse"),e.classList.toggle("cdk-program-focused",i==="program")}_setOrigin(e,i=!1){this._ngZone.runOutsideAngular(()=>{if(this._origin=e,this._originFromTouchInteraction=e==="touch"&&i,this._detectionMode===Uf.IMMEDIATE){clearTimeout(this._originTimeoutId);let r=this._originFromTouchInteraction?wL:1;this._originTimeoutId=setTimeout(()=>this._origin=null,r)}})}_onFocus(e,i){let r=this._elementInfo.get(i),o=Kn(e);!r||!r.checkChildren&&i!==o||this._originChanged(i,this._getFocusOrigin(o),r)}_onBlur(e,i){let r=this._elementInfo.get(i);!r||r.checkChildren&&e.relatedTarget instanceof Node&&i.contains(e.relatedTarget)||(this._setClasses(i),this._emitOrigin(r,null))}_emitOrigin(e,i){e.subject.observers.length&&this._ngZone.run(()=>e.subject.next(i))}_registerGlobalListeners(e){if(!this._platform.isBrowser)return;let i=e.rootNode,r=this._rootNodeFocusListenerCount.get(i)||0;r||this._ngZone.runOutsideAngular(()=>{i.addEventListener("focus",this._rootNodeFocusAndBlurListener,L0),i.addEventListener("blur",this._rootNodeFocusAndBlurListener,L0)}),this._rootNodeFocusListenerCount.set(i,r+1),++this._monitoredElementCount===1&&(this._ngZone.runOutsideAngular(()=>{this._getWindow().addEventListener("focus",this._windowFocusListener)}),this._inputModalityDetector.modalityDetected.pipe(Te(this._stopInputModalityDetector)).subscribe(o=>{this._setOrigin(o,!0)}))}_removeGlobalListeners(e){let i=e.rootNode;if(this._rootNodeFocusListenerCount.has(i)){let r=this._rootNodeFocusListenerCount.get(i);r>1?this._rootNodeFocusListenerCount.set(i,r-1):(i.removeEventListener("focus",this._rootNodeFocusAndBlurListener,L0),i.removeEventListener("blur",this._rootNodeFocusAndBlurListener,L0),this._rootNodeFocusListenerCount.delete(i))}--this._monitoredElementCount||(this._getWindow().removeEventListener("focus",this._windowFocusListener),this._stopInputModalityDetector.next(),clearTimeout(this._windowFocusTimeoutId),clearTimeout(this._originTimeoutId))}_originChanged(e,i,r){this._setClasses(e,i),this._emitOrigin(r,i),this._lastFocusOrigin=i}_getClosestElementsInfo(e){let i=[];return this._elementInfo.forEach((r,o)=>{(o===e||r.checkChildren&&o.contains(e))&&i.push([o,r])}),i}_isLastInteractionFromInputLabel(e){let{_mostRecentTarget:i,mostRecentModality:r}=this._inputModalityDetector;if(r!=="mouse"||!i||i===e||e.nodeName!=="INPUT"&&e.nodeName!=="TEXTAREA"||e.disabled)return!1;let o=e.labels;if(o){for(let a=0;a{class t{_elementRef=u(q);_focusMonitor=u(Yt);_monitorSubscription;_focusOrigin=null;cdkFocusChange=new U;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(i=>{this._focusOrigin=i,this.cdkFocusChange.emit(i)})}ngOnDestroy(){this._focusMonitor.stopMonitoring(this._elementRef),this._monitorSubscription&&this._monitorSubscription.unsubscribe()}static \u0275fac=function(i){return new(i||t)};static \u0275dir=F({type:t,selectors:[["","cdkMonitorElementFocus",""],["","cdkMonitorSubtreeFocus",""]],outputs:{cdkFocusChange:"cdkFocusChange"},exportAs:["cdkMonitorFocus"]})}return t})();var V0=new WeakMap,ut=(()=>{class t{_appRef;_injector=u(de);_environmentInjector=u(Wt);load(e){let i=this._appRef=this._appRef||this._injector.get(Gn),r=V0.get(i);r||(r={loaders:new Set,refs:[]},V0.set(i,r),i.onDestroy(()=>{V0.get(i)?.refs.forEach(o=>o.destroy()),V0.delete(i)})),r.loaders.has(e)||(r.loaders.add(e),r.refs.push(Mm(e,{environmentInjector:this._environmentInjector})))}static \u0275fac=function(i){return new(i||t)};static \u0275prov=O({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();var Qr=(()=>{class t{static \u0275fac=function(i){return new(i||t)};static \u0275cmp=E({type:t,selectors:[["ng-component"]],exportAs:["cdkVisuallyHidden"],decls:0,vars:0,template:function(i,r){},styles:[`.cdk-visually-hidden{border:0;clip:rect(0 0 0 0);height:1px;margin:-1px;overflow:hidden;padding:0;position:absolute;width:1px;white-space:nowrap;outline:0;-webkit-appearance:none;-moz-appearance:none;left:0}[dir=rtl] .cdk-visually-hidden{left:auto;right:0} +`],encapsulation:2,changeDetection:0})}return t})();function qK(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(i){return new(i||t)};static \u0275prov=O({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),kL=(()=>{class t{_mutationObserverFactory=u(ML);_observedElements=new Map;_ngZone=u(ae);constructor(){}ngOnDestroy(){this._observedElements.forEach((e,i)=>this._cleanupObserver(i))}observe(e){let i=Pr(e);return new Fe(r=>{let a=this._observeElement(i).pipe(se(s=>s.filter(l=>!qK(l))),ce(s=>!!s.length)).subscribe(s=>{this._ngZone.run(()=>{r.next(s)})});return()=>{a.unsubscribe(),this._unobserveElement(i)}})}_observeElement(e){return this._ngZone.runOutsideAngular(()=>{if(this._observedElements.has(e))this._observedElements.get(e).count++;else{let i=new z,r=this._mutationObserverFactory.create(o=>i.next(o));r&&r.observe(e,{characterData:!0,childList:!0,subtree:!0}),this._observedElements.set(e,{observer:r,stream:i,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:i,stream:r}=this._observedElements.get(e);i&&i.disconnect(),r.complete(),this._observedElements.delete(e)}}static \u0275fac=function(i){return new(i||t)};static \u0275prov=O({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),Wf=(()=>{class t{_contentObserver=u(kL);_elementRef=u(q);event=new U;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=Ln(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(Rt(this.debounce)):e).subscribe(this.event)}_unsubscribe(){this._currentSubscription?.unsubscribe()}static \u0275fac=function(i){return new(i||t)};static \u0275dir=F({type:t,selectors:[["","cdkObserveContent",""]],inputs:{disabled:[2,"cdkObserveContentDisabled","disabled",V],debounce:"debounce"},outputs:{event:"cdkObserveContent"},exportAs:["cdkObserveContent"]})}return t})(),Ym=(()=>{class t{static \u0275fac=function(i){return new(i||t)};static \u0275mod=ee({type:t});static \u0275inj=J({providers:[ML]})}return t})();var ac=(()=>{class t{_platform=u(qe);constructor(){}isDisabled(e){return e.hasAttribute("disabled")}isVisible(e){return QK(e)&&getComputedStyle(e).visibility==="visible"}isTabbable(e){if(!this._platform.isBrowser)return!1;let i=YK(nZ(e));if(i&&(SL(i)===-1||!this.isVisible(i)))return!1;let r=e.nodeName.toLowerCase(),o=SL(e);return e.hasAttribute("contenteditable")?o!==-1:r==="iframe"||r==="object"||this._platform.WEBKIT&&this._platform.IOS&&!tZ(e)?!1:r==="audio"?e.hasAttribute("controls")?o!==-1:!1:r==="video"?o===-1?!1:o!==null?!0:this._platform.FIREFOX||e.hasAttribute("controls"):e.tabIndex>=0}isFocusable(e,i){return iZ(e)&&!this.isDisabled(e)&&(i?.ignoreVisibility||this.isVisible(e))}static \u0275fac=function(i){return new(i||t)};static \u0275prov=O({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();function YK(t){try{return t.frameElement}catch{return null}}function QK(t){return!!(t.offsetWidth||t.offsetHeight||typeof t.getClientRects=="function"&&t.getClientRects().length)}function KK(t){let n=t.nodeName.toLowerCase();return n==="input"||n==="select"||n==="button"||n==="textarea"}function ZK(t){return JK(t)&&t.type=="hidden"}function XK(t){return eZ(t)&&t.hasAttribute("href")}function JK(t){return t.nodeName.toLowerCase()=="input"}function eZ(t){return t.nodeName.toLowerCase()=="a"}function AL(t){if(!t.hasAttribute("tabindex")||t.tabIndex===void 0)return!1;let n=t.getAttribute("tabindex");return!!(n&&!isNaN(parseInt(n,10)))}function SL(t){if(!AL(t))return null;let n=parseInt(t.getAttribute("tabindex")||"",10);return isNaN(n)?-1:n}function tZ(t){let n=t.nodeName.toLowerCase(),e=n==="input"&&t.type;return e==="text"||e==="password"||n==="select"||n==="textarea"}function iZ(t){return ZK(t)?!1:KK(t)||XK(t)||t.hasAttribute("contenteditable")||AL(t)}function nZ(t){return t.ownerDocument&&t.ownerDocument.defaultView||window}var B0=class{_element;_checker;_ngZone;_document;_injector;_startAnchor;_endAnchor;_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,i,r,o=!1,a){this._element=n,this._checker=e,this._ngZone=i,this._document=r,this._injector=a,o||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 i=this._getFirstTabbableElement(e);return i?.focus(n),!!i}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 i=0;i=0;i--){let r=e[i].nodeType===this._document.ELEMENT_NODE?this._getLastTabbableElement(e[i]):null;if(r)return r}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?pt(n,{injector:this._injector}):setTimeout(n)}},Qm=(()=>{class t{_checker=u(ac);_ngZone=u(ae);_document=u(ge);_injector=u(de);constructor(){u(ut).load(Qr)}create(e,i=!1){return new B0(e,this._checker,this._ngZone,this._document,i,this._injector)}static \u0275fac=function(i){return new(i||t)};static \u0275prov=O({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),vk=(()=>{class t{_elementRef=u(q);_focusTrapFactory=u(Qm);focusTrap;_previouslyFocusedElement=null;get enabled(){return this.focusTrap?.enabled||!1}set enabled(e){this.focusTrap&&(this.focusTrap.enabled=e)}autoCapture;constructor(){u(qe).isBrowser&&(this.focusTrap=this._focusTrapFactory.create(this._elementRef.nativeElement,!0))}ngOnDestroy(){this.focusTrap?.destroy(),this._previouslyFocusedElement&&(this._previouslyFocusedElement.focus(),this._previouslyFocusedElement=null)}ngAfterContentInit(){this.focusTrap?.attachAnchors(),this.autoCapture&&this._captureFocus()}ngDoCheck(){this.focusTrap&&!this.focusTrap.hasAttached()&&this.focusTrap.attachAnchors()}ngOnChanges(e){let i=e.autoCapture;i&&!i.firstChange&&this.autoCapture&&this.focusTrap?.hasAttached()&&this._captureFocus()}_captureFocus(){this._previouslyFocusedElement=_o(),this.focusTrap?.focusInitialElementWhenReady()}static \u0275fac=function(i){return new(i||t)};static \u0275dir=F({type:t,selectors:[["","cdkTrapFocus",""]],inputs:{enabled:[2,"cdkTrapFocus","enabled",V],autoCapture:[2,"cdkTrapFocusAutoCapture","autoCapture",V]},exportAs:["cdkTrapFocus"],features:[Ae]})}return t})(),OL=new T("liveAnnouncerElement",{providedIn:"root",factory:RL});function RL(){return null}var PL=new T("LIVE_ANNOUNCER_DEFAULT_OPTIONS"),rZ=0,Gf=(()=>{class t{_ngZone=u(ae);_defaultOptions=u(PL,{optional:!0});_liveElement;_document=u(ge);_previousTimeout;_currentPromise;_currentResolve;constructor(){let e=u(OL,{optional:!0});this._liveElement=e||this._createLiveElement()}announce(e,...i){let r=this._defaultOptions,o,a;return i.length===1&&typeof i[0]=="number"?a=i[0]:[o,a]=i,this.clear(),clearTimeout(this._previousTimeout),o||(o=r&&r.politeness?r.politeness:"polite"),a==null&&r&&(a=r.duration),this._liveElement.setAttribute("aria-live",o),this._liveElement.id&&this._exposeAnnouncerToModals(this._liveElement.id),this._ngZone.runOutsideAngular(()=>(this._currentPromise||(this._currentPromise=new Promise(s=>this._currentResolve=s)),clearTimeout(this._previousTimeout),this._previousTimeout=setTimeout(()=>{this._liveElement.textContent=e,typeof a=="number"&&(this._previousTimeout=setTimeout(()=>this.clear(),a)),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",i=this._document.getElementsByClassName(e),r=this._document.createElement("div");for(let o=0;o .cdk-overlay-container [aria-modal="true"]');for(let r=0;r{class t{_platform=u(qe);_hasCheckedHighContrastMode;_document=u(ge);_breakpointSubscription;constructor(){this._breakpointSubscription=u(sl).observe("(forced-colors: active)").subscribe(()=>{this._hasCheckedHighContrastMode&&(this._hasCheckedHighContrastMode=!1,this._applyBodyHighContrastModeCssClasses())})}getHighContrastMode(){if(!this._platform.isBrowser)return oc.NONE;let e=this._document.createElement("div");e.style.backgroundColor="rgb(1,2,3)",e.style.position="absolute",this._document.body.appendChild(e);let i=this._document.defaultView||window,r=i&&i.getComputedStyle?i.getComputedStyle(e):null,o=(r&&r.backgroundColor||"").replace(/ /g,"");switch(e.remove(),o){case"rgb(0,0,0)":case"rgb(45,50,54)":case"rgb(32,32,32)":return oc.WHITE_ON_BLACK;case"rgb(255,255,255)":case"rgb(255,250,239)":return oc.BLACK_ON_WHITE}return oc.NONE}ngOnDestroy(){this._breakpointSubscription.unsubscribe()}_applyBodyHighContrastModeCssClasses(){if(!this._hasCheckedHighContrastMode&&this._platform.isBrowser&&this._document.body){let e=this._document.body.classList;e.remove(bk,TL,IL),this._hasCheckedHighContrastMode=!0;let i=this.getHighContrastMode();i===oc.BLACK_ON_WHITE?e.add(bk,TL):i===oc.WHITE_ON_BLACK&&e.add(bk,IL)}}static \u0275fac=function(i){return new(i||t)};static \u0275prov=O({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),ll=(()=>{class t{constructor(){u(j0)._applyBodyHighContrastModeCssClasses()}static \u0275fac=function(i){return new(i||t)};static \u0275mod=ee({type:t});static \u0275inj=J({imports:[Ym]})}return t})();var yk={},Ze=(()=>{class t{_appId=u(ql);getId(e){return this._appId!=="ng"&&(e+=this._appId),yk.hasOwnProperty(e)||(yk[e]=0),`${e}${yk[e]++}`}static \u0275fac=function(i){return new(i||t)};static \u0275prov=O({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();var oZ=200,H0=class{_letterKeyStream=new z;_items=[];_selectedItemIndex=-1;_pressedLetters=[];_skipPredicateFn;_selectedItem=new z;selectedItem=this._selectedItem;constructor(n,e){let i=typeof e?.debounceInterval=="number"?e.debounceInterval:oZ;e?.skipPredicate&&(this._skipPredicateFn=e.skipPredicate),this.setItems(n),this._setupKeyHandler(i)}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)),Rt(n),ce(()=>this._pressedLetters.length>0),se(()=>this._pressedLetters.join("").toLocaleUpperCase())).subscribe(e=>{for(let i=1;it[e]):t.altKey||t.shiftKey||t.ctrlKey||t.metaKey}var Km=class{_items;_activeItemIndex=he(-1);_activeItem=he(null);_wrap=!1;_typeaheadSubscription=ke.EMPTY;_itemChangesSubscription;_vertical=!0;_horizontal;_allowedModifierKeys=[];_homeAndEnd=!1;_pageUpAndDown={enabled:!1,delta:10};_effectRef;_typeahead;_skipPredicateFn=n=>n.disabled;constructor(n,e){this._items=n,n instanceof pr?this._itemChangesSubscription=n.changes.subscribe(i=>this._itemsChanged(i.toArray())):is(n)&&(this._effectRef=Ar(()=>this._itemsChanged(n()),{injector:e}))}tabOut=new z;change=new z;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 H0(e,{debounceInterval:typeof n=="number"?n:void 0,skipPredicate:i=>this._skipPredicateFn(i)}),this._typeaheadSubscription=this._typeahead.selectedItem.subscribe(i=>{this.setActiveItem(i)}),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,r=["altKey","ctrlKey","metaKey","shiftKey"].every(o=>!n[o]||this._allowedModifierKeys.indexOf(o)>-1);switch(e){case 9:this.tabOut.next();return;case 40:if(this._vertical&&r){this.setNextItemActive();break}else return;case 38:if(this._vertical&&r){this.setPreviousItemActive();break}else return;case 39:if(this._horizontal&&r){this._horizontal==="rtl"?this.setPreviousItemActive():this.setNextItemActive();break}else return;case 37:if(this._horizontal&&r){this._horizontal==="rtl"?this.setNextItemActive():this.setPreviousItemActive();break}else return;case 36:if(this._homeAndEnd&&r){this.setFirstItemActive();break}else return;case 35:if(this._homeAndEnd&&r){this.setLastItemActive();break}else return;case 33:if(this._pageUpAndDown.enabled&&r){let o=this._activeItemIndex()-this._pageUpAndDown.delta;this._setActiveItemByIndex(o>0?o:0,1);break}else return;case 34:if(this._pageUpAndDown.enabled&&r){let o=this._activeItemIndex()+this._pageUpAndDown.delta,a=this._getItemsArray().length;this._setActiveItemByIndex(o-1&&i!==this._activeItemIndex()&&(this._activeItemIndex.set(i),this._typeahead?.setCurrentSelectedItemIndex(i))}}};var qd=class extends Km{setActiveItem(n){this.activeItem&&this.activeItem.setInactiveStyles(),super.setActiveItem(n),this.activeItem&&this.activeItem.setActiveStyles()}};var bs=class extends Km{_origin="program";setFocusOrigin(n){return this._origin=n,this}setActiveItem(n){super.setActiveItem(n),this.activeItem&&this.activeItem.focus(this._origin)}};var VL=" ";function Zm(t,n,e){let i=W0(t,n);e=e.trim(),!i.some(r=>r.trim()===e)&&(i.push(e),t.setAttribute(n,i.join(VL)))}function sc(t,n,e){let i=W0(t,n);e=e.trim();let r=i.filter(o=>o!==e);r.length?t.setAttribute(n,r.join(VL)):t.removeAttribute(n)}function W0(t,n){return t.getAttribute(n)?.match(/\S+/g)??[]}var BL="cdk-describedby-message",$0="cdk-describedby-host",Ck=0,Xm=(()=>{class t{_platform=u(qe);_document=u(ge);_messageRegistry=new Map;_messagesContainer=null;_id=`${Ck++}`;constructor(){u(ut).load(Qr),this._id=u(ql)+"-"+Ck++}describe(e,i,r){if(!this._canBeDescribed(e,i))return;let o=xk(i,r);typeof i!="string"?(LL(i,this._id),this._messageRegistry.set(o,{messageElement:i,referenceCount:0})):this._messageRegistry.has(o)||this._createMessageElement(i,r),this._isElementDescribedByMessage(e,o)||this._addMessageReference(e,o)}removeDescription(e,i,r){if(!i||!this._isElementNode(e))return;let o=xk(i,r);if(this._isElementDescribedByMessage(e,o)&&this._removeMessageReference(e,o),typeof i=="string"){let a=this._messageRegistry.get(o);a&&a.referenceCount===0&&this._deleteMessageElement(o)}this._messagesContainer?.childNodes.length===0&&(this._messagesContainer.remove(),this._messagesContainer=null)}ngOnDestroy(){let e=this._document.querySelectorAll(`[${$0}="${this._id}"]`);for(let i=0;ir.indexOf(BL)!=0);e.setAttribute("aria-describedby",i.join(" "))}_addMessageReference(e,i){let r=this._messageRegistry.get(i);Zm(e,"aria-describedby",r.messageElement.id),e.setAttribute($0,this._id),r.referenceCount++}_removeMessageReference(e,i){let r=this._messageRegistry.get(i);r.referenceCount--,sc(e,"aria-describedby",r.messageElement.id),e.removeAttribute($0)}_isElementDescribedByMessage(e,i){let r=W0(e,"aria-describedby"),o=this._messageRegistry.get(i),a=o&&o.messageElement.id;return!!a&&r.indexOf(a)!=-1}_canBeDescribed(e,i){if(!this._isElementNode(e))return!1;if(i&&typeof i=="object")return!0;let r=i==null?"":`${i}`.trim(),o=e.getAttribute("aria-label");return r?!o||o.trim()!==r:!1}_isElementNode(e){return e.nodeType===this._document.ELEMENT_NODE}static \u0275fac=function(i){return new(i||t)};static \u0275prov=O({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();function xk(t,n){return typeof t=="string"?`${n||""}/${t}`:t}function LL(t,n){t.id||(t.id=`${BL}-${n}-${Ck++}`)}var aZ=new T("cdk-dir-doc",{providedIn:"root",factory:sZ});function sZ(){return u(ge)}var lZ=/^(ar|ckb|dv|he|iw|fa|nqo|ps|sd|ug|ur|yi|.*[-_](Adlm|Arab|Hebr|Nkoo|Rohg|Thaa))(?!.*[-_](Latn|Cyrl)($|-|_))($|-|_)/i;function wk(t){let n=t?.toLowerCase()||"";return n==="auto"&&typeof navigator<"u"&&navigator?.language?lZ.test(navigator.language)?"rtl":"ltr":n==="rtl"?"rtl":"ltr"}var Vt=(()=>{class t{get value(){return this.valueSignal()}valueSignal=he("ltr");change=new U;constructor(){let e=u(aZ,{optional:!0});if(e){let i=e.body?e.body.dir:null,r=e.documentElement?e.documentElement.dir:null;this.valueSignal.set(wk(i||r||"ltr"))}}ngOnDestroy(){this.change.complete()}static \u0275fac=function(i){return new(i||t)};static \u0275prov=O({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();var HL=(()=>{class t{_isInitialized=!1;_rawDir;change=new U;get dir(){return this.valueSignal()}set dir(e){let i=this.valueSignal();this.valueSignal.set(wk(e)),this._rawDir=e,i!==this.valueSignal()&&this._isInitialized&&this.change.emit(this.valueSignal())}get value(){return this.dir}valueSignal=he("ltr");ngAfterContentInit(){this._isInitialized=!0}ngOnDestroy(){this.change.complete()}static \u0275fac=function(i){return new(i||t)};static \u0275dir=F({type:t,selectors:[["","dir",""]],hostVars:1,hostBindings:function(i,r){i&2&&X("dir",r._rawDir)},inputs:{dir:"dir"},outputs:{change:"dirChange"},exportAs:["dir"],features:[Ce([{provide:Vt,useExisting:t}])]})}return t})(),vs=(()=>{class t{static \u0275fac=function(i){return new(i||t)};static \u0275mod=ee({type:t});static \u0275inj=J({})}return t})();var we=(()=>{class t{constructor(){u(j0)._applyBodyHighContrastModeCssClasses()}static \u0275fac=function(i){return new(i||t)};static \u0275mod=ee({type:t});static \u0275inj=J({imports:[vs,vs]})}return t})();var cl=class{_defaultMatcher;ngControl;_parentFormGroup;_parentForm;_stateChanges;errorState=!1;matcher;constructor(n,e,i,r,o){this._defaultMatcher=n,this.ngControl=e,this._parentFormGroup=i,this._parentForm=r,this._stateChanges=o}updateErrorState(){let n=this.errorState,e=this._parentFormGroup||this._parentForm,i=this.matcher||this._defaultMatcher,r=this.ngControl?this.ngControl.control:null,o=i?.isErrorState(r,e)??!1;o!==n&&(this.errorState=o,this._stateChanges.next())}};var ys=new T("MAT_DATE_LOCALE",{providedIn:"root",factory:dZ});function dZ(){return u(el)}var Jm="Method not implemented",Li=class{locale;_localeChanges=new z;localeChanges=this._localeChanges;setTime(n,e,i,r){throw new Error(Jm)}getHours(n){throw new Error(Jm)}getMinutes(n){throw new Error(Jm)}getSeconds(n){throw new Error(Jm)}parseTime(n,e){throw new Error(Jm)}addSeconds(n,e){throw new Error(Jm)}getValidDateOrNull(n){return this.isDateInstance(n)&&this.isValid(n)?n:null}deserialize(n){return n==null||this.isDateInstance(n)&&this.isValid(n)?n:this.invalid()}setLocale(n){this.locale=n,this._localeChanges.next()}compareDate(n,e){return this.getYear(n)-this.getYear(e)||this.getMonth(n)-this.getMonth(e)||this.getDate(n)-this.getDate(e)}compareTime(n,e){return this.getHours(n)-this.getHours(e)||this.getMinutes(n)-this.getMinutes(e)||this.getSeconds(n)-this.getSeconds(e)}sameDate(n,e){if(n&&e){let i=this.isValid(n),r=this.isValid(e);return i&&r?!this.compareDate(n,e):i==r}return n==e}sameTime(n,e){if(n&&e){let i=this.isValid(n),r=this.isValid(e);return i&&r?!this.compareTime(n,e):i==r}return n==e}clampDate(n,e,i){return e&&this.compareDate(n,e)<0?e:i&&this.compareDate(n,i)>0?i:n}},xs=new T("mat-date-formats");var dl=(()=>{class t{isErrorState(e,i){return!!(e&&e.invalid&&(e.touched||i&&i.submitted))}static \u0275fac=function(i){return new(i||t)};static \u0275prov=O({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();var Di=(()=>{class t{static \u0275fac=function(i){return new(i||t)};static \u0275cmp=E({type:t,selectors:[["structural-styles"]],decls:0,vars:0,template:function(i,r){},styles:[`.mat-focus-indicator{position:relative}.mat-focus-indicator::before{top:0;left:0;right:0;bottom:0;position:absolute;box-sizing:border-box;pointer-events:none;display:var(--mat-focus-indicator-display, none);border-width:var(--mat-focus-indicator-border-width, 3px);border-style:var(--mat-focus-indicator-border-style, solid);border-color:var(--mat-focus-indicator-border-color, transparent);border-radius:var(--mat-focus-indicator-border-radius, 4px)}.mat-focus-indicator:focus::before{content:""}@media(forced-colors: active){html{--mat-focus-indicator-display: block}} +`],encapsulation:2,changeDetection:0})}return t})();var Aa=(function(t){return t[t.NORMAL=0]="NORMAL",t[t.NEGATED=1]="NEGATED",t[t.INVERTED=2]="INVERTED",t})(Aa||{}),G0,Yd;function q0(){if(Yd==null){if(typeof document!="object"||!document||typeof Element!="function"||!Element)return Yd=!1,Yd;if(document.documentElement?.style&&"scrollBehavior"in document.documentElement.style)Yd=!0;else{let t=Element.prototype.scrollTo;t?Yd=!/\{\s*\[native code\]\s*\}/.test(t.toString()):Yd=!1}}return Yd}function eh(){if(typeof document!="object"||!document)return Aa.NORMAL;if(G0==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"),i=e.style;i.width="2px",i.height="1px",t.appendChild(e),document.body.appendChild(t),G0=Aa.NORMAL,t.scrollLeft===0&&(t.scrollLeft=1,G0=t.scrollLeft===0?Aa.NEGATED:Aa.INVERTED),t.remove()}return G0}function Dk(){return typeof __karma__<"u"&&!!__karma__||typeof jasmine<"u"&&!!jasmine||typeof jest<"u"&&!!jest||typeof Mocha<"u"&&!!Mocha}var th,zL=["color","button","checkbox","date","datetime-local","email","file","hidden","image","month","number","password","radio","range","reset","search","submit","tel","text","time","url","week"];function Ek(){if(th)return th;if(typeof document!="object"||!document)return th=new Set(zL),th;let t=document.createElement("input");return th=new Set(zL.filter(n=>(t.setAttribute("type",n),t.type===n))),th}function on(t){return t==null?"":typeof t=="string"?t:`${t}px`}function Ai(t){return t!=null&&`${t}`!="false"}function UL(t,n=/\s+/){let e=[];if(t!=null){let i=Array.isArray(t)?t:`${t}`.split(n);for(let r of i){let o=`${r}`.trim();o&&e.push(o)}}return e}var vo=(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})(vo||{}),Y0=class{_renderer;element;config;_animationForciblyDisabledThroughCss;state=vo.HIDDEN;constructor(n,e,i,r=!1){this._renderer=n,this.element=e,this.config=i,this._animationForciblyDisabledThroughCss=r}fadeOut(){this._renderer.fadeOutRipple(this)}},$L=rc({passive:!0,capture:!0}),Mk=class{_events=new Map;addHandler(n,e,i,r){let o=this._events.get(e);if(o){let a=o.get(i);a?a.add(r):o.set(i,new Set([r]))}else this._events.set(e,new Map([[i,new Set([r])]])),n.runOutsideAngular(()=>{document.addEventListener(e,this._delegateEventHandler,$L)})}removeHandler(n,e,i){let r=this._events.get(n);if(!r)return;let o=r.get(e);o&&(o.delete(i),o.size===0&&r.delete(e),r.size===0&&(this._events.delete(n),document.removeEventListener(n,this._delegateEventHandler,$L)))}_delegateEventHandler=n=>{let e=Kn(n);e&&this._events.get(n.type)?.forEach((i,r)=>{(r===e||r.contains(e))&&i.forEach(o=>o.handleEvent(n))})}},ih={enterDuration:225,exitDuration:150},uZ=800,WL=rc({passive:!0,capture:!0}),GL=["mousedown","touchstart"],qL=["mouseup","mouseleave","touchend","touchcancel"],mZ=(()=>{class t{static \u0275fac=function(i){return new(i||t)};static \u0275cmp=E({type:t,selectors:[["ng-component"]],hostAttrs:["mat-ripple-style-loader",""],decls:0,vars:0,template:function(i,r){},styles:[`.mat-ripple{overflow:hidden;position:relative}.mat-ripple:not(:empty){transform:translateZ(0)}.mat-ripple.mat-ripple-unbounded{overflow:visible}.mat-ripple-element{position:absolute;border-radius:50%;pointer-events:none;transition:opacity,transform 0ms cubic-bezier(0, 0, 0.2, 1);transform:scale3d(0, 0, 0);background-color:var(--mat-ripple-color, color-mix(in srgb, var(--mat-sys-on-surface) 10%, transparent))}@media(forced-colors: active){.mat-ripple-element{display:none}}.cdk-drag-preview .mat-ripple-element,.cdk-drag-placeholder .mat-ripple-element{display:none} +`],encapsulation:2,changeDetection:0})}return t})(),lc=class t{_target;_ngZone;_platform;_containerElement;_triggerElement;_isPointerDown=!1;_activeRipples=new Map;_mostRecentTransientRipple;_lastTouchStartEvent;_pointerUpEventsRegistered=!1;_containerRect;static _eventManager=new Mk;constructor(n,e,i,r,o){this._target=n,this._ngZone=e,this._platform=r,r.isBrowser&&(this._containerElement=Pr(i)),o&&o.get(ut).load(mZ)}fadeInRipple(n,e,i={}){let r=this._containerRect=this._containerRect||this._containerElement.getBoundingClientRect(),o=M(M({},ih),i.animation);i.centered&&(n=r.left+r.width/2,e=r.top+r.height/2);let a=i.radius||hZ(n,e,r),s=n-r.left,l=e-r.top,c=o.enterDuration,d=document.createElement("div");d.classList.add("mat-ripple-element"),d.style.left=`${s-a}px`,d.style.top=`${l-a}px`,d.style.height=`${a*2}px`,d.style.width=`${a*2}px`,i.color!=null&&(d.style.backgroundColor=i.color),d.style.transitionDuration=`${c}ms`,this._containerElement.appendChild(d);let m=window.getComputedStyle(d),f=m.transitionProperty,b=m.transitionDuration,v=f==="none"||b==="0s"||b==="0s, 0s"||r.width===0&&r.height===0,w=new Y0(this,d,i,v);d.style.transform="scale3d(1, 1, 1)",w.state=vo.FADING_IN,i.persistent||(this._mostRecentTransientRipple=w);let x=null;return!v&&(c||o.exitDuration)&&this._ngZone.runOutsideAngular(()=>{let D=()=>{x&&(x.fallbackTimer=null),clearTimeout(W),this._finishRippleTransition(w)},P=()=>this._destroyRipple(w),W=setTimeout(P,c+100);d.addEventListener("transitionend",D),d.addEventListener("transitioncancel",P),x={onTransitionEnd:D,onTransitionCancel:P,fallbackTimer:W}}),this._activeRipples.set(w,x),(v||!c)&&this._finishRippleTransition(w),w}fadeOutRipple(n){if(n.state===vo.FADING_OUT||n.state===vo.HIDDEN)return;let e=n.element,i=M(M({},ih),n.config.animation);e.style.transitionDuration=`${i.exitDuration}ms`,e.style.opacity="0",n.state=vo.FADING_OUT,(n._animationForciblyDisabledThroughCss||!i.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=Pr(n);!this._platform.isBrowser||!e||e===this._triggerElement||(this._removeTriggerEvents(),this._triggerElement=e,GL.forEach(i=>{t._eventManager.addHandler(this._ngZone,i,e,this)}))}handleEvent(n){n.type==="mousedown"?this._onMousedown(n):n.type==="touchstart"?this._onTouchStart(n):this._onPointerUp(),this._pointerUpEventsRegistered||(this._ngZone.runOutsideAngular(()=>{qL.forEach(e=>{this._triggerElement.addEventListener(e,this,WL)})}),this._pointerUpEventsRegistered=!0)}_finishRippleTransition(n){n.state===vo.FADING_IN?this._startFadeOutTransition(n):n.state===vo.FADING_OUT&&this._destroyRipple(n)}_startFadeOutTransition(n){let e=n===this._mostRecentTransientRipple,{persistent:i}=n.config;n.state=vo.VISIBLE,!i&&(!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=vo.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=Wd(n),i=this._lastTouchStartEvent&&Date.now(){let e=n.state===vo.VISIBLE||n.config.terminateOnPointerUp&&n.state===vo.FADING_IN;!n.config.persistent&&e&&n.fadeOut()}))}_getActiveRipples(){return Array.from(this._activeRipples.keys())}_removeTriggerEvents(){let n=this._triggerElement;n&&(GL.forEach(e=>t._eventManager.removeHandler(e,n,this)),this._pointerUpEventsRegistered&&(qL.forEach(e=>n.removeEventListener(e,this,WL)),this._pointerUpEventsRegistered=!1))}};function hZ(t,n,e){let i=Math.max(Math.abs(t-e.left),Math.abs(t-e.right)),r=Math.max(Math.abs(n-e.top),Math.abs(n-e.bottom));return Math.sqrt(i*i+r*r)}var Cs=new T("mat-ripple-global-options"),Vn=(()=>{class t{_elementRef=u(q);_animationsDisabled=Ye();color;unbounded;centered;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=u(ae),i=u(qe),r=u(Cs,{optional:!0}),o=u(de);this._globalOptions=r||{},this._rippleRenderer=new lc(this,e,this._elementRef,i,o)}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:M(M(M({},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,i=0,r){return typeof e=="number"?this._rippleRenderer.fadeInRipple(e,i,M(M({},this.rippleConfig),r)):this._rippleRenderer.fadeInRipple(0,0,M(M({},this.rippleConfig),e))}static \u0275fac=function(i){return new(i||t)};static \u0275dir=F({type:t,selectors:[["","mat-ripple",""],["","matRipple",""]],hostAttrs:[1,"mat-ripple"],hostVars:2,hostBindings:function(i,r){i&2&&G("mat-ripple-unbounded",r.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 yo=(()=>{class t{static \u0275fac=function(i){return new(i||t)};static \u0275mod=ee({type:t});static \u0275inj=J({imports:[we,we]})}return t})();var Qd=(()=>{class t{_animationsDisabled=Ye();state="unchecked";disabled=!1;appearance="full";constructor(){}static \u0275fac=function(i){return new(i||t)};static \u0275cmp=E({type:t,selectors:[["mat-pseudo-checkbox"]],hostAttrs:[1,"mat-pseudo-checkbox"],hostVars:12,hostBindings:function(i,r){i&2&&G("mat-pseudo-checkbox-indeterminate",r.state==="indeterminate")("mat-pseudo-checkbox-checked",r.state==="checked")("mat-pseudo-checkbox-disabled",r.disabled)("mat-pseudo-checkbox-minimal",r.appearance==="minimal")("mat-pseudo-checkbox-full",r.appearance==="full")("_mat-animation-noopable",r._animationsDisabled)},inputs:{state:"state",disabled:"disabled",appearance:"appearance"},decls:0,vars:0,template:function(i,r){},styles:[`.mat-pseudo-checkbox{border-radius:2px;cursor:pointer;display:inline-block;vertical-align:middle;box-sizing:border-box;position:relative;flex-shrink:0;transition:border-color 90ms cubic-bezier(0, 0, 0.2, 0.1),background-color 90ms cubic-bezier(0, 0, 0.2, 0.1)}.mat-pseudo-checkbox::after{position:absolute;opacity:0;content:"";border-bottom:2px solid currentColor;transition:opacity 90ms cubic-bezier(0, 0, 0.2, 0.1)}.mat-pseudo-checkbox._mat-animation-noopable{transition:none !important;animation:none !important}.mat-pseudo-checkbox._mat-animation-noopable::after{transition:none}.mat-pseudo-checkbox-disabled{cursor:default}.mat-pseudo-checkbox-indeterminate::after{left:1px;opacity:1;border-radius:2px}.mat-pseudo-checkbox-checked::after{left:1px;border-left:2px solid currentColor;transform:rotate(-45deg);opacity:1;box-sizing:content-box}.mat-pseudo-checkbox-minimal.mat-pseudo-checkbox-checked::after,.mat-pseudo-checkbox-minimal.mat-pseudo-checkbox-indeterminate::after{color:var(--mat-pseudo-checkbox-minimal-selected-checkmark-color, var(--mat-sys-primary))}.mat-pseudo-checkbox-minimal.mat-pseudo-checkbox-checked.mat-pseudo-checkbox-disabled::after,.mat-pseudo-checkbox-minimal.mat-pseudo-checkbox-indeterminate.mat-pseudo-checkbox-disabled::after{color:var(--mat-pseudo-checkbox-minimal-disabled-selected-checkmark-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent))}.mat-pseudo-checkbox-full{border-color:var(--mat-pseudo-checkbox-full-unselected-icon-color, var(--mat-sys-on-surface-variant));border-width:2px;border-style:solid}.mat-pseudo-checkbox-full.mat-pseudo-checkbox-disabled{border-color:var(--mat-pseudo-checkbox-full-disabled-unselected-icon-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent))}.mat-pseudo-checkbox-full.mat-pseudo-checkbox-checked,.mat-pseudo-checkbox-full.mat-pseudo-checkbox-indeterminate{background-color:var(--mat-pseudo-checkbox-full-selected-icon-color, var(--mat-sys-primary));border-color:rgba(0,0,0,0)}.mat-pseudo-checkbox-full.mat-pseudo-checkbox-checked::after,.mat-pseudo-checkbox-full.mat-pseudo-checkbox-indeterminate::after{color:var(--mat-pseudo-checkbox-full-selected-checkmark-color, var(--mat-sys-on-primary))}.mat-pseudo-checkbox-full.mat-pseudo-checkbox-checked.mat-pseudo-checkbox-disabled,.mat-pseudo-checkbox-full.mat-pseudo-checkbox-indeterminate.mat-pseudo-checkbox-disabled{background-color:var(--mat-pseudo-checkbox-full-disabled-selected-icon-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent))}.mat-pseudo-checkbox-full.mat-pseudo-checkbox-checked.mat-pseudo-checkbox-disabled::after,.mat-pseudo-checkbox-full.mat-pseudo-checkbox-indeterminate.mat-pseudo-checkbox-disabled::after{color:var(--mat-pseudo-checkbox-full-disabled-selected-checkmark-color, var(--mat-sys-surface))}.mat-pseudo-checkbox{width:18px;height:18px}.mat-pseudo-checkbox-minimal.mat-pseudo-checkbox-checked::after{width:14px;height:6px;transform-origin:center;top:-4.2426406871px;left:0;bottom:0;right:0;margin:auto}.mat-pseudo-checkbox-minimal.mat-pseudo-checkbox-indeterminate::after{top:8px;width:16px}.mat-pseudo-checkbox-full.mat-pseudo-checkbox-checked::after{width:10px;height:4px;transform-origin:center;top:-2.8284271247px;left:0;bottom:0;right:0;margin:auto}.mat-pseudo-checkbox-full.mat-pseudo-checkbox-indeterminate::after{top:6px;width:12px} +`],encapsulation:2,changeDetection:0})}return t})();var Q0=(()=>{class t{static \u0275fac=function(i){return new(i||t)};static \u0275mod=ee({type:t});static \u0275inj=J({imports:[we]})}return t})();var pZ=["*",[["mat-option"],["ng-container"]]],fZ=["*","mat-option, ng-container"],gZ=["text"],_Z=[[["mat-icon"]],"*"],bZ=["mat-icon","*"];function vZ(t,n){if(t&1&&k(0,"mat-pseudo-checkbox",1),t&2){let e=C();y("disabled",e.disabled)("state",e.selected?"checked":"unchecked")}}function yZ(t,n){if(t&1&&k(0,"mat-pseudo-checkbox",3),t&2){let e=C();y("disabled",e.disabled)}}function xZ(t,n){if(t&1&&(h(0,"span",4),_(1),p()),t&2){let e=C();g(),ve("(",e.group.label,")")}}var Kd=new T("MAT_OPTION_PARENT_COMPONENT"),Zd=new T("MatOptgroup"),kk=(()=>{class t{label;disabled=!1;_labelId=u(Ze).getId("mat-optgroup-label-");_inert;constructor(){let e=u(Kd,{optional:!0});this._inert=e?.inertGroups??!1}static \u0275fac=function(i){return new(i||t)};static \u0275cmp=E({type:t,selectors:[["mat-optgroup"]],hostAttrs:[1,"mat-mdc-optgroup"],hostVars:3,hostBindings:function(i,r){i&2&&X("role",r._inert?null:"group")("aria-disabled",r._inert?null:r.disabled.toString())("aria-labelledby",r._inert?null:r._labelId)},inputs:{label:"label",disabled:[2,"disabled","disabled",V]},exportAs:["matOptgroup"],features:[Ce([{provide:Zd,useExisting:t}])],ngContentSelectors:fZ,decls:5,vars:4,consts:[["role","presentation",1,"mat-mdc-optgroup-label",3,"id"],[1,"mdc-list-item__primary-text"]],template:function(i,r){i&1&&(Me(pZ),ft(0,"span",0)(1,"span",1),_(2),oe(3),vt()(),oe(4,1)),i&2&&(G("mdc-list-item--disabled",r.disabled),si("id",r._labelId),g(2),ve("",r.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));font-size:var(--mat-optgroup-label-text-size, var(--mat-sys-title-small-size));letter-spacing:var(--mat-optgroup-label-text-tracking, var(--mat-sys-title-small-tracking));font-weight:var(--mat-optgroup-label-text-weight, var(--mat-sys-title-small-weight))}.mat-mdc-optgroup-label{display:flex;position:relative;align-items:center;justify-content:flex-start;overflow:hidden;min-height:48px;padding:0 16px;outline:none}.mat-mdc-optgroup-label.mdc-list-item--disabled{opacity:.38}.mat-mdc-optgroup-label .mdc-list-item__primary-text{font-size:inherit;font-weight:inherit;letter-spacing:inherit;line-height:inherit;font-family:inherit;text-decoration:inherit;text-transform:inherit;white-space:normal;color:inherit} +`],encapsulation:2,changeDetection:0})}return t})(),nh=class{source;isUserInput;constructor(n,e=!1){this.source=n,this.isUserInput=e}},xn=(()=>{class t{_element=u(q);_changeDetectorRef=u(ye);_parent=u(Kd,{optional:!0});group=u(Zd,{optional:!0});_signalDisableRipple=!1;_selected=!1;_active=!1;_mostRecentViewValue="";get multiple(){return this._parent&&this._parent.multiple}get selected(){return this._selected}value;id=u(Ze).getId("mat-option-");get disabled(){return this.group&&this.group.disabled||this._disabled()}set disabled(e){this._disabled.set(e)}_disabled=he(!1);get disableRipple(){return this._signalDisableRipple?this._parent.disableRipple():!!this._parent?.disableRipple}get hideSingleSelectionIndicator(){return!!(this._parent&&this._parent.hideSingleSelectionIndicator)}onSelectionChange=new U;_text;_stateChanges=new z;constructor(){let e=u(ut);e.load(Di),e.load(Qr),this._signalDisableRipple=!!this._parent&&is(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,i){let r=this._getHostElement();typeof r.focus=="function"&&r.focus(i)}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)&&!Ft(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 nh(this,e))}static \u0275fac=function(i){return new(i||t)};static \u0275cmp=E({type:t,selectors:[["mat-option"]],viewQuery:function(i,r){if(i&1&&ie(gZ,7),i&2){let o;B(o=j())&&(r._text=o.first)}},hostAttrs:["role","option",1,"mat-mdc-option","mdc-list-item"],hostVars:11,hostBindings:function(i,r){i&1&&S("click",function(){return r._selectViaInteraction()})("keydown",function(a){return r._handleKeydown(a)}),i&2&&(si("id",r.id),X("aria-selected",r.selected)("aria-disabled",r.disabled.toString()),G("mdc-list-item--selected",r.selected)("mat-mdc-option-multiple",r.multiple)("mat-mdc-option-active",r.active)("mdc-list-item--disabled",r.disabled))},inputs:{value:"value",id:"id",disabled:[2,"disabled","disabled",V]},outputs:{onSelectionChange:"onSelectionChange"},exportAs:["matOption"],ngContentSelectors:bZ,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(i,r){i&1&&(Me(_Z),N(0,vZ,1,2,"mat-pseudo-checkbox",1),oe(1),h(2,"span",2,0),oe(4,1),p(),N(5,yZ,1,1,"mat-pseudo-checkbox",3),N(6,xZ,2,1,"span",4),k(7,"div",5)),i&2&&(L(r.multiple?0:-1),g(5),L(!r.multiple&&r.selected&&!r.hideSingleSelectionIndicator?5:-1),g(),L(r.group&&r.group._inert?6:-1),g(),y("matRippleTrigger",r._getHostElement())("matRippleDisabled",r.disabled||r.disableRipple))},dependencies:[Qd,Vn],styles:[`.mat-mdc-option{-webkit-user-select:none;user-select:none;-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;display:flex;position:relative;align-items:center;justify-content:flex-start;overflow:hidden;min-height:48px;padding:0 16px;cursor:pointer;-webkit-tap-highlight-color:rgba(0,0,0,0);color:var(--mat-option-label-text-color, var(--mat-sys-on-surface));font-family:var(--mat-option-label-text-font, var(--mat-sys-label-large-font));line-height:var(--mat-option-label-text-line-height, var(--mat-sys-label-large-line-height));font-size:var(--mat-option-label-text-size, var(--mat-sys-body-large-size));letter-spacing:var(--mat-option-label-text-tracking, var(--mat-sys-label-large-tracking));font-weight:var(--mat-option-label-text-weight, var(--mat-sys-body-large-weight))}.mat-mdc-option:hover:not(.mdc-list-item--disabled){background-color:var(--mat-option-hover-state-layer-color, color-mix(in srgb, var(--mat-sys-on-surface) calc(var(--mat-sys-hover-state-layer-opacity) * 100%), transparent))}.mat-mdc-option:focus.mdc-list-item,.mat-mdc-option.mat-mdc-option-active.mdc-list-item{background-color:var(--mat-option-focus-state-layer-color, color-mix(in srgb, var(--mat-sys-on-surface) calc(var(--mat-sys-focus-state-layer-opacity) * 100%), transparent));outline:0}.mat-mdc-option.mdc-list-item--selected:not(.mdc-list-item--disabled):not(.mat-mdc-option-multiple){background-color:var(--mat-option-selected-state-layer-color, var(--mat-sys-secondary-container))}.mat-mdc-option.mdc-list-item--selected:not(.mdc-list-item--disabled):not(.mat-mdc-option-multiple) .mdc-list-item__primary-text{color:var(--mat-option-selected-state-label-text-color, var(--mat-sys-on-secondary-container))}.mat-mdc-option .mat-pseudo-checkbox{--mat-pseudo-checkbox-minimal-selected-checkmark-color: var(--mat-option-selected-state-label-text-color, var(--mat-sys-on-secondary-container))}.mat-mdc-option.mdc-list-item{align-items:center;background:rgba(0,0,0,0)}.mat-mdc-option.mdc-list-item--disabled{cursor:default;pointer-events:none}.mat-mdc-option.mdc-list-item--disabled .mat-mdc-option-pseudo-checkbox,.mat-mdc-option.mdc-list-item--disabled .mdc-list-item__primary-text,.mat-mdc-option.mdc-list-item--disabled>mat-icon{opacity:.38}.mat-mdc-optgroup .mat-mdc-option:not(.mat-mdc-option-multiple){padding-left:32px}[dir=rtl] .mat-mdc-optgroup .mat-mdc-option:not(.mat-mdc-option-multiple){padding-left:16px;padding-right:32px}.mat-mdc-option .mat-icon,.mat-mdc-option .mat-pseudo-checkbox-full{margin-right:16px;flex-shrink:0}[dir=rtl] .mat-mdc-option .mat-icon,[dir=rtl] .mat-mdc-option .mat-pseudo-checkbox-full{margin-right:0;margin-left:16px}.mat-mdc-option .mat-pseudo-checkbox-minimal{margin-left:16px;flex-shrink:0}[dir=rtl] .mat-mdc-option .mat-pseudo-checkbox-minimal{margin-right:16px;margin-left:0}.mat-mdc-option .mat-mdc-option-ripple{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none}.mat-mdc-option .mdc-list-item__primary-text{white-space:normal;font-size:inherit;font-weight:inherit;letter-spacing:inherit;line-height:inherit;font-family:inherit;text-decoration:inherit;text-transform:inherit;margin-right:auto}[dir=rtl] .mat-mdc-option .mdc-list-item__primary-text{margin-right:0;margin-left:auto}@media(forced-colors: active){.mat-mdc-option.mdc-list-item--selected:not(:has(.mat-mdc-option-pseudo-checkbox))::after{content:"";position:absolute;top:50%;right:16px;transform:translateY(-50%);width:10px;height:0;border-bottom:solid 10px;border-radius:10px}[dir=rtl] .mat-mdc-option.mdc-list-item--selected:not(:has(.mat-mdc-option-pseudo-checkbox))::after{right:auto;left:16px}}.mat-mdc-option-multiple{--mat-list-list-item-selected-container-color: var(--mat-list-list-item-container-color, transparent)}.mat-mdc-option-active .mat-focus-indicator::before{content:""} +`],encapsulation:2,changeDetection:0})}return t})();function Qf(t,n,e){if(e.length){let i=n.toArray(),r=e.toArray(),o=0;for(let a=0;ae+i?Math.max(0,t-i+n):e}var rh=(()=>{class t{static \u0275fac=function(i){return new(i||t)};static \u0275mod=ee({type:t});static \u0275inj=J({imports:[yo,we,Q0,xn]})}return t})();var CZ={capture:!0},wZ=["focus","mousedown","mouseenter","touchstart"],Sk="mat-ripple-loader-uninitialized",Tk="mat-ripple-loader-class-name",YL="mat-ripple-loader-centered",K0="mat-ripple-loader-disabled",Z0=(()=>{class t{_document=u(ge);_animationsDisabled=Ye();_globalRippleOptions=u(Cs,{optional:!0});_platform=u(qe);_ngZone=u(ae);_injector=u(de);_eventCleanups;_hosts=new Map;constructor(){let e=u(cn).createRenderer(null,null);this._eventCleanups=this._ngZone.runOutsideAngular(()=>wZ.map(i=>e.listen(this._document,i,this._onInteraction,CZ)))}ngOnDestroy(){let e=this._hosts.keys();for(let i of e)this.destroyRipple(i);this._eventCleanups.forEach(i=>i())}configureRipple(e,i){e.setAttribute(Sk,this._globalRippleOptions?.namespace??""),(i.className||!e.hasAttribute(Tk))&&e.setAttribute(Tk,i.className||""),i.centered&&e.setAttribute(YL,""),i.disabled&&e.setAttribute(K0,"")}setDisabled(e,i){let r=this._hosts.get(e);r?(r.target.rippleDisabled=i,!i&&!r.hasSetUpEvents&&(r.hasSetUpEvents=!0,r.renderer.setupTriggerEvents(e))):i?e.setAttribute(K0,""):e.removeAttribute(K0)}_onInteraction=e=>{let i=Kn(e);if(i instanceof HTMLElement){let r=i.closest(`[${Sk}="${this._globalRippleOptions?.namespace??""}"]`);r&&this._createRipple(r)}};_createRipple(e){if(!this._document||this._hosts.has(e))return;e.querySelector(".mat-ripple")?.remove();let i=this._document.createElement("span");i.classList.add("mat-ripple",e.getAttribute(Tk)),e.append(i);let r=this._globalRippleOptions,o=this._animationsDisabled?0:r?.animation?.enterDuration??ih.enterDuration,a=this._animationsDisabled?0:r?.animation?.exitDuration??ih.exitDuration,s={rippleDisabled:this._animationsDisabled||r?.disabled||e.hasAttribute(K0),rippleConfig:{centered:e.hasAttribute(YL),terminateOnPointerUp:r?.terminateOnPointerUp,animation:{enterDuration:o,exitDuration:a}}},l=new lc(s,this._ngZone,i,this._platform,this._injector),c=!s.rippleDisabled;c&&l.setupTriggerEvents(e),this._hosts.set(e,{target:s,renderer:l,hasSetUpEvents:c}),e.removeAttribute(Sk)}destroyRipple(e){let i=this._hosts.get(e);i&&(i.renderer._removeTriggerEvents(),this._hosts.delete(e))}static \u0275fac=function(i){return new(i||t)};static \u0275prov=O({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();var DZ=/^\d{4}-\d{2}-\d{2}(?:T\d{2}:\d{2}:\d{2}(?:\.\d+)?(?:Z|(?:(?:\+|-)\d{2}:\d{2}))?)?$/,EZ=/^(\d?\d)[:.](\d?\d)(?:[:.](\d?\d))?\s*(AM|PM)?$/i;function Ik(t,n){let e=Array(t);for(let i=0;i{class t extends Li{useUtcForDisplay=!1;_matDateLocale=u(ys,{optional:!0});constructor(){super();let e=u(ys,{optional:!0});e!==void 0&&(this._matDateLocale=e),super.setLocale(this._matDateLocale)}getYear(e){return e.getFullYear()}getMonth(e){return e.getMonth()}getDate(e){return e.getDate()}getDayOfWeek(e){return e.getDay()}getMonthNames(e){let i=new Intl.DateTimeFormat(this.locale,{month:e,timeZone:"utc"});return Ik(12,r=>this._format(i,new Date(2017,r,1)))}getDateNames(){let e=new Intl.DateTimeFormat(this.locale,{day:"numeric",timeZone:"utc"});return Ik(31,i=>this._format(e,new Date(2017,0,i+1)))}getDayOfWeekNames(e){let i=new Intl.DateTimeFormat(this.locale,{weekday:e,timeZone:"utc"});return Ik(7,r=>this._format(i,new Date(2017,0,r+1)))}getYearName(e){let i=new Intl.DateTimeFormat(this.locale,{year:"numeric",timeZone:"utc"});return this._format(i,e)}getFirstDayOfWeek(){if(typeof Intl<"u"&&Intl.Locale){let e=new Intl.Locale(this.locale),i=(e.getWeekInfo?.()||e.weekInfo)?.firstDay??0;return i===7?0:i}return 0}getNumDaysInMonth(e){return this.getDate(this._createDateWithOverflow(this.getYear(e),this.getMonth(e)+1,0))}clone(e){return new Date(e.getTime())}createDate(e,i,r){let o=this._createDateWithOverflow(e,i,r);return o.getMonth()!=i,o}today(){return new Date}parse(e,i){return typeof e=="number"?new Date(e):e?new Date(Date.parse(e)):null}format(e,i){if(!this.isValid(e))throw Error("NativeDateAdapter: Cannot format invalid date.");let r=new Intl.DateTimeFormat(this.locale,De(M({},i),{timeZone:"utc"}));return this._format(r,e)}addCalendarYears(e,i){return this.addCalendarMonths(e,i*12)}addCalendarMonths(e,i){let r=this._createDateWithOverflow(this.getYear(e),this.getMonth(e)+i,this.getDate(e));return this.getMonth(r)!=((this.getMonth(e)+i)%12+12)%12&&(r=this._createDateWithOverflow(this.getYear(r),this.getMonth(r),0)),r}addCalendarDays(e,i){return this._createDateWithOverflow(this.getYear(e),this.getMonth(e),this.getDate(e)+i)}toIso8601(e){return[e.getUTCFullYear(),this._2digit(e.getUTCMonth()+1),this._2digit(e.getUTCDate())].join("-")}deserialize(e){if(typeof e=="string"){if(!e)return null;if(DZ.test(e)){let i=new Date(e);if(this.isValid(i))return i}}return super.deserialize(e)}isDateInstance(e){return e instanceof Date}isValid(e){return!isNaN(e.getTime())}invalid(){return new Date(NaN)}setTime(e,i,r,o){let a=this.clone(e);return a.setHours(i,r,o,0),a}getHours(e){return e.getHours()}getMinutes(e){return e.getMinutes()}getSeconds(e){return e.getSeconds()}parseTime(e,i){if(typeof e!="string")return e instanceof Date?new Date(e.getTime()):null;let r=e.trim();if(r.length===0)return null;let o=this._parseTimeString(r);if(o===null){let a=r.replace(/[^0-9:(AM|PM)]/gi,"").trim();a.length>0&&(o=this._parseTimeString(a))}return o||this.invalid()}addSeconds(e,i){return new Date(e.getTime()+i*1e3)}_createDateWithOverflow(e,i,r){let o=new Date;return o.setFullYear(e,i,r),o.setHours(0,0,0,0),o}_2digit(e){return("00"+e).slice(-2)}_format(e,i){let r=new Date;return r.setUTCFullYear(i.getFullYear(),i.getMonth(),i.getDate()),r.setUTCHours(i.getHours(),i.getMinutes(),i.getSeconds(),i.getMilliseconds()),e.format(r)}_parseTimeString(e){let i=e.toUpperCase().match(EZ);if(i){let r=parseInt(i[1]),o=parseInt(i[2]),a=i[3]==null?void 0:parseInt(i[3]),s=i[4];if(r===12?r=s==="AM"?0:r:s==="PM"&&(r+=12),Ak(r,0,23)&&Ak(o,0,59)&&(a==null||Ak(a,0,59)))return this.setTime(this.today(),r,o,a||0)}return null}static \u0275fac=function(i){return new(i||t)};static \u0275prov=O({token:t,factory:t.\u0275fac})}return t})();function Ak(t,n,e){return!isNaN(t)&&t>=n&&t<=e}var MZ={parse:{dateInput:null,timeInput:null},display:{dateInput:{year:"numeric",month:"numeric",day:"numeric"},timeInput:{hour:"numeric",minute:"numeric"},monthYearLabel:{year:"numeric",month:"short"},dateA11yLabel:{year:"numeric",month:"long",day:"numeric"},monthYearA11yLabel:{year:"numeric",month:"long"},timeOptionLabel:{hour:"numeric",minute:"numeric"}}};var KL=(()=>{class t{static \u0275fac=function(i){return new(i||t)};static \u0275mod=ee({type:t});static \u0275inj=J({providers:[kZ()]})}return t})();function kZ(t=MZ){return[{provide:Li,useClass:QL},{provide:xs,useValue:t}]}var SZ=Math.pow(10,8)*24*60*60*1e3,Pje=-SZ,X0=6048e5,XL=864e5,Xd=6e4,Jd=36e5,JL=1e3;var TZ=3600;var eV=TZ*24,Fje=eV*7,IZ=eV*365.2425,AZ=IZ/12,Nje=AZ*3,Ok=Symbol.for("constructDateFrom");function rt(t,n){return typeof t=="function"?t(n):t&&typeof t=="object"&&Ok in t?t[Ok](n):t instanceof Date?new t.constructor(n):new Date(n)}function Ie(t,n){return rt(n||t,t)}function oh(t,n,e){let i=Ie(t,e?.in);return isNaN(n)?rt(e?.in||t,NaN):(n&&i.setDate(i.getDate()+n),i)}function ah(t,n,e){let i=Ie(t,e?.in);if(isNaN(n))return rt(e?.in||t,NaN);if(!n)return i;let r=i.getDate(),o=rt(e?.in||t,i.getTime());o.setMonth(i.getMonth()+n+1,0);let a=o.getDate();return r>=a?o:(i.setFullYear(o.getFullYear(),o.getMonth(),r),i)}function J0(t,n,e){return rt(e?.in||t,+Ie(t)+n)}function tV(t,n,e){return J0(t,n*Jd,e)}var OZ={};function Yo(){return OZ}function Zn(t,n){let e=Yo(),i=n?.weekStartsOn??n?.locale?.options?.weekStartsOn??e.weekStartsOn??e.locale?.options?.weekStartsOn??0,r=Ie(t,n?.in),o=r.getDay(),a=(o=o.getTime()?i+1:e.getTime()>=s.getTime()?i:i-1}function eu(t){let n=Ie(t),e=new Date(Date.UTC(n.getFullYear(),n.getMonth(),n.getDate(),n.getHours(),n.getMinutes(),n.getSeconds(),n.getMilliseconds()));return e.setUTCFullYear(n.getFullYear()),+t-+e}function ty(t,...n){let e=rt.bind(null,t||n.find(i=>typeof i=="object"));return n.map(e)}function Rk(t,n){let e=Ie(t,n?.in);return e.setHours(0,0,0,0),e}function iV(t,n,e){let[i,r]=ty(e?.in,t,n),o=Rk(i),a=Rk(r),s=+o-eu(o),l=+a-eu(a);return Math.round((s-l)/XL)}function nV(t,n){let e=ey(t,n),i=rt(n?.in||t,0);return i.setFullYear(e,0,4),i.setHours(0,0,0,0),Oa(i)}function rV(t,n,e){let i=Ie(t,e?.in);return i.setTime(i.getTime()+n*Xd),i}function oV(t,n,e){return J0(t,n*1e3,e)}function aV(t,n,e){return ah(t,n*12,e)}function iy(t){return t instanceof Date||typeof t=="object"&&Object.prototype.toString.call(t)==="[object Date]"}function sh(t){return!(!iy(t)&&typeof t!="number"||isNaN(+Ie(t)))}function sV(t,n){let e=Ie(t,n?.in);return e.setDate(1),e.setHours(0,0,0,0),e}function lV(t,n){let e=Ie(t,n?.in);return e.setFullYear(e.getFullYear(),0,1),e.setHours(0,0,0,0),e}var RZ={lessThanXSeconds:{one:"less than a second",other:"less than {{count}} seconds"},xSeconds:{one:"1 second",other:"{{count}} seconds"},halfAMinute:"half a minute",lessThanXMinutes:{one:"less than a minute",other:"less than {{count}} minutes"},xMinutes:{one:"1 minute",other:"{{count}} minutes"},aboutXHours:{one:"about 1 hour",other:"about {{count}} hours"},xHours:{one:"1 hour",other:"{{count}} hours"},xDays:{one:"1 day",other:"{{count}} days"},aboutXWeeks:{one:"about 1 week",other:"about {{count}} weeks"},xWeeks:{one:"1 week",other:"{{count}} weeks"},aboutXMonths:{one:"about 1 month",other:"about {{count}} months"},xMonths:{one:"1 month",other:"{{count}} months"},aboutXYears:{one:"about 1 year",other:"about {{count}} years"},xYears:{one:"1 year",other:"{{count}} years"},overXYears:{one:"over 1 year",other:"over {{count}} years"},almostXYears:{one:"almost 1 year",other:"almost {{count}} years"}},cV=(t,n,e)=>{let i,r=RZ[t];return typeof r=="string"?i=r:n===1?i=r.one:i=r.other.replace("{{count}}",n.toString()),e?.addSuffix?e.comparison&&e.comparison>0?"in "+i:i+" ago":i};function Qo(t){return(n={})=>{let e=n.width?String(n.width):t.defaultWidth;return t.formats[e]||t.formats[t.defaultWidth]}}var PZ={full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},FZ={full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},NZ={full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},dV={date:Qo({formats:PZ,defaultWidth:"full"}),time:Qo({formats:FZ,defaultWidth:"full"}),dateTime:Qo({formats:NZ,defaultWidth:"full"})};var LZ={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"},uV=(t,n,e,i)=>LZ[t];function Bn(t){return(n,e)=>{let i=e?.context?String(e.context):"standalone",r;if(i==="formatting"&&t.formattingValues){let a=t.defaultFormattingWidth||t.defaultWidth,s=e?.width?String(e.width):a;r=t.formattingValues[s]||t.formattingValues[a]}else{let a=t.defaultWidth,s=e?.width?String(e.width):t.defaultWidth;r=t.values[s]||t.values[a]}let o=t.argumentCallback?t.argumentCallback(n):n;return r[o]}}var VZ={narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},BZ={narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},jZ={narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],wide:["January","February","March","April","May","June","July","August","September","October","November","December"]},HZ={narrow:["S","M","T","W","T","F","S"],short:["Su","Mo","Tu","We","Th","Fr","Sa"],abbreviated:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],wide:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},zZ={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"}},UZ={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"}},$Z=(t,n)=>{let e=Number(t),i=e%100;if(i>20||i<10)switch(i%10){case 1:return e+"st";case 2:return e+"nd";case 3:return e+"rd"}return e+"th"},mV={ordinalNumber:$Z,era:Bn({values:VZ,defaultWidth:"wide"}),quarter:Bn({values:BZ,defaultWidth:"wide",argumentCallback:t=>t-1}),month:Bn({values:jZ,defaultWidth:"wide"}),day:Bn({values:HZ,defaultWidth:"wide"}),dayPeriod:Bn({values:zZ,defaultWidth:"wide",formattingValues:UZ,defaultFormattingWidth:"wide"})};function jn(t){return(n,e={})=>{let i=e.width,r=i&&t.matchPatterns[i]||t.matchPatterns[t.defaultMatchWidth],o=n.match(r);if(!o)return null;let a=o[0],s=i&&t.parsePatterns[i]||t.parsePatterns[t.defaultParseWidth],l=Array.isArray(s)?GZ(s,m=>m.test(a)):WZ(s,m=>m.test(a)),c;c=t.valueCallback?t.valueCallback(l):l,c=e.valueCallback?e.valueCallback(c):c;let d=n.slice(a.length);return{value:c,rest:d}}}function WZ(t,n){for(let e in t)if(Object.prototype.hasOwnProperty.call(t,e)&&n(t[e]))return e}function GZ(t,n){for(let e=0;e{let i=n.match(t.matchPattern);if(!i)return null;let r=i[0],o=n.match(t.parsePattern);if(!o)return null;let a=t.valueCallback?t.valueCallback(o[0]):o[0];a=e.valueCallback?e.valueCallback(a):a;let s=n.slice(r.length);return{value:a,rest:s}}}var qZ=/^(\d+)(th|st|nd|rd)?/i,YZ=/\d+/i,QZ={narrow:/^(b|a)/i,abbreviated:/^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,wide:/^(before christ|before common era|anno domini|common era)/i},KZ={any:[/^b/i,/^(a|c)/i]},ZZ={narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},XZ={any:[/1/i,/2/i,/3/i,/4/i]},JZ={narrow:/^[jfmasond]/i,abbreviated:/^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,wide:/^(january|february|march|april|may|june|july|august|september|october|november|december)/i},eX={narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ap/i,/^may/i,/^jun/i,/^jul/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},tX={narrow:/^[smtwf]/i,short:/^(su|mo|tu|we|th|fr|sa)/i,abbreviated:/^(sun|mon|tue|wed|thu|fri|sat)/i,wide:/^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i},iX={narrow:[/^s/i,/^m/i,/^t/i,/^w/i,/^t/i,/^f/i,/^s/i],any:[/^su/i,/^m/i,/^tu/i,/^w/i,/^th/i,/^f/i,/^sa/i]},nX={narrow:/^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,any:/^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i},rX={any:{am:/^a/i,pm:/^p/i,midnight:/^mi/i,noon:/^no/i,morning:/morning/i,afternoon:/afternoon/i,evening:/evening/i,night:/night/i}},hV={ordinalNumber:lh({matchPattern:qZ,parsePattern:YZ,valueCallback:t=>parseInt(t,10)}),era:jn({matchPatterns:QZ,defaultMatchWidth:"wide",parsePatterns:KZ,defaultParseWidth:"any"}),quarter:jn({matchPatterns:ZZ,defaultMatchWidth:"wide",parsePatterns:XZ,defaultParseWidth:"any",valueCallback:t=>t+1}),month:jn({matchPatterns:JZ,defaultMatchWidth:"wide",parsePatterns:eX,defaultParseWidth:"any"}),day:jn({matchPatterns:tX,defaultMatchWidth:"wide",parsePatterns:iX,defaultParseWidth:"any"}),dayPeriod:jn({matchPatterns:nX,defaultMatchWidth:"any",parsePatterns:rX,defaultParseWidth:"any"})};var tu={code:"en-US",formatDistance:cV,formatLong:dV,formatRelative:uV,localize:mV,match:hV,options:{weekStartsOn:0,firstWeekContainsDate:1}};function pV(t,n){let e=Ie(t,n?.in);return iV(e,lV(e))+1}function ny(t,n){let e=Ie(t,n?.in),i=+Oa(e)-+nV(e);return Math.round(i/X0)+1}function ch(t,n){let e=Ie(t,n?.in),i=e.getFullYear(),r=Yo(),o=n?.firstWeekContainsDate??n?.locale?.options?.firstWeekContainsDate??r.firstWeekContainsDate??r.locale?.options?.firstWeekContainsDate??1,a=rt(n?.in||t,0);a.setFullYear(i+1,0,o),a.setHours(0,0,0,0);let s=Zn(a,n),l=rt(n?.in||t,0);l.setFullYear(i,0,o),l.setHours(0,0,0,0);let c=Zn(l,n);return+e>=+s?i+1:+e>=+c?i:i-1}function fV(t,n){let e=Yo(),i=n?.firstWeekContainsDate??n?.locale?.options?.firstWeekContainsDate??e.firstWeekContainsDate??e.locale?.options?.firstWeekContainsDate??1,r=ch(t,n),o=rt(n?.in||t,0);return o.setFullYear(r,0,i),o.setHours(0,0,0,0),Zn(o,n)}function dh(t,n){let e=Ie(t,n?.in),i=+Zn(e,n)-+fV(e,n);return Math.round(i/X0)+1}function wt(t,n){let e=t<0?"-":"",i=Math.abs(t).toString().padStart(n,"0");return e+i}var ul={y(t,n){let e=t.getFullYear(),i=e>0?e:1-e;return wt(n==="yy"?i%100:i,n.length)},M(t,n){let e=t.getMonth();return n==="M"?String(e+1):wt(e+1,2)},d(t,n){return wt(t.getDate(),n.length)},a(t,n){let e=t.getHours()/12>=1?"pm":"am";switch(n){case"a":case"aa":return e.toUpperCase();case"aaa":return e;case"aaaaa":return e[0];case"aaaa":default:return e==="am"?"a.m.":"p.m."}},h(t,n){return wt(t.getHours()%12||12,n.length)},H(t,n){return wt(t.getHours(),n.length)},m(t,n){return wt(t.getMinutes(),n.length)},s(t,n){return wt(t.getSeconds(),n.length)},S(t,n){let e=n.length,i=t.getMilliseconds(),r=Math.trunc(i*Math.pow(10,e-3));return wt(r,n.length)}};var uh={am:"am",pm:"pm",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},Pk={G:function(t,n,e){let i=t.getFullYear()>0?1:0;switch(n){case"G":case"GG":case"GGG":return e.era(i,{width:"abbreviated"});case"GGGGG":return e.era(i,{width:"narrow"});case"GGGG":default:return e.era(i,{width:"wide"})}},y:function(t,n,e){if(n==="yo"){let i=t.getFullYear(),r=i>0?i:1-i;return e.ordinalNumber(r,{unit:"year"})}return ul.y(t,n)},Y:function(t,n,e,i){let r=ch(t,i),o=r>0?r:1-r;if(n==="YY"){let a=o%100;return wt(a,2)}return n==="Yo"?e.ordinalNumber(o,{unit:"year"}):wt(o,n.length)},R:function(t,n){let e=ey(t);return wt(e,n.length)},u:function(t,n){let e=t.getFullYear();return wt(e,n.length)},Q:function(t,n,e){let i=Math.ceil((t.getMonth()+1)/3);switch(n){case"Q":return String(i);case"QQ":return wt(i,2);case"Qo":return e.ordinalNumber(i,{unit:"quarter"});case"QQQ":return e.quarter(i,{width:"abbreviated",context:"formatting"});case"QQQQQ":return e.quarter(i,{width:"narrow",context:"formatting"});case"QQQQ":default:return e.quarter(i,{width:"wide",context:"formatting"})}},q:function(t,n,e){let i=Math.ceil((t.getMonth()+1)/3);switch(n){case"q":return String(i);case"qq":return wt(i,2);case"qo":return e.ordinalNumber(i,{unit:"quarter"});case"qqq":return e.quarter(i,{width:"abbreviated",context:"standalone"});case"qqqqq":return e.quarter(i,{width:"narrow",context:"standalone"});case"qqqq":default:return e.quarter(i,{width:"wide",context:"standalone"})}},M:function(t,n,e){let i=t.getMonth();switch(n){case"M":case"MM":return ul.M(t,n);case"Mo":return e.ordinalNumber(i+1,{unit:"month"});case"MMM":return e.month(i,{width:"abbreviated",context:"formatting"});case"MMMMM":return e.month(i,{width:"narrow",context:"formatting"});case"MMMM":default:return e.month(i,{width:"wide",context:"formatting"})}},L:function(t,n,e){let i=t.getMonth();switch(n){case"L":return String(i+1);case"LL":return wt(i+1,2);case"Lo":return e.ordinalNumber(i+1,{unit:"month"});case"LLL":return e.month(i,{width:"abbreviated",context:"standalone"});case"LLLLL":return e.month(i,{width:"narrow",context:"standalone"});case"LLLL":default:return e.month(i,{width:"wide",context:"standalone"})}},w:function(t,n,e,i){let r=dh(t,i);return n==="wo"?e.ordinalNumber(r,{unit:"week"}):wt(r,n.length)},I:function(t,n,e){let i=ny(t);return n==="Io"?e.ordinalNumber(i,{unit:"week"}):wt(i,n.length)},d:function(t,n,e){return n==="do"?e.ordinalNumber(t.getDate(),{unit:"date"}):ul.d(t,n)},D:function(t,n,e){let i=pV(t);return n==="Do"?e.ordinalNumber(i,{unit:"dayOfYear"}):wt(i,n.length)},E:function(t,n,e){let i=t.getDay();switch(n){case"E":case"EE":case"EEE":return e.day(i,{width:"abbreviated",context:"formatting"});case"EEEEE":return e.day(i,{width:"narrow",context:"formatting"});case"EEEEEE":return e.day(i,{width:"short",context:"formatting"});case"EEEE":default:return e.day(i,{width:"wide",context:"formatting"})}},e:function(t,n,e,i){let r=t.getDay(),o=(r-i.weekStartsOn+8)%7||7;switch(n){case"e":return String(o);case"ee":return wt(o,2);case"eo":return e.ordinalNumber(o,{unit:"day"});case"eee":return e.day(r,{width:"abbreviated",context:"formatting"});case"eeeee":return e.day(r,{width:"narrow",context:"formatting"});case"eeeeee":return e.day(r,{width:"short",context:"formatting"});case"eeee":default:return e.day(r,{width:"wide",context:"formatting"})}},c:function(t,n,e,i){let r=t.getDay(),o=(r-i.weekStartsOn+8)%7||7;switch(n){case"c":return String(o);case"cc":return wt(o,n.length);case"co":return e.ordinalNumber(o,{unit:"day"});case"ccc":return e.day(r,{width:"abbreviated",context:"standalone"});case"ccccc":return e.day(r,{width:"narrow",context:"standalone"});case"cccccc":return e.day(r,{width:"short",context:"standalone"});case"cccc":default:return e.day(r,{width:"wide",context:"standalone"})}},i:function(t,n,e){let i=t.getDay(),r=i===0?7:i;switch(n){case"i":return String(r);case"ii":return wt(r,n.length);case"io":return e.ordinalNumber(r,{unit:"day"});case"iii":return e.day(i,{width:"abbreviated",context:"formatting"});case"iiiii":return e.day(i,{width:"narrow",context:"formatting"});case"iiiiii":return e.day(i,{width:"short",context:"formatting"});case"iiii":default:return e.day(i,{width:"wide",context:"formatting"})}},a:function(t,n,e){let r=t.getHours()/12>=1?"pm":"am";switch(n){case"a":case"aa":return e.dayPeriod(r,{width:"abbreviated",context:"formatting"});case"aaa":return e.dayPeriod(r,{width:"abbreviated",context:"formatting"}).toLowerCase();case"aaaaa":return e.dayPeriod(r,{width:"narrow",context:"formatting"});case"aaaa":default:return e.dayPeriod(r,{width:"wide",context:"formatting"})}},b:function(t,n,e){let i=t.getHours(),r;switch(i===12?r=uh.noon:i===0?r=uh.midnight:r=i/12>=1?"pm":"am",n){case"b":case"bb":return e.dayPeriod(r,{width:"abbreviated",context:"formatting"});case"bbb":return e.dayPeriod(r,{width:"abbreviated",context:"formatting"}).toLowerCase();case"bbbbb":return e.dayPeriod(r,{width:"narrow",context:"formatting"});case"bbbb":default:return e.dayPeriod(r,{width:"wide",context:"formatting"})}},B:function(t,n,e){let i=t.getHours(),r;switch(i>=17?r=uh.evening:i>=12?r=uh.afternoon:i>=4?r=uh.morning:r=uh.night,n){case"B":case"BB":case"BBB":return e.dayPeriod(r,{width:"abbreviated",context:"formatting"});case"BBBBB":return e.dayPeriod(r,{width:"narrow",context:"formatting"});case"BBBB":default:return e.dayPeriod(r,{width:"wide",context:"formatting"})}},h:function(t,n,e){if(n==="ho"){let i=t.getHours()%12;return i===0&&(i=12),e.ordinalNumber(i,{unit:"hour"})}return ul.h(t,n)},H:function(t,n,e){return n==="Ho"?e.ordinalNumber(t.getHours(),{unit:"hour"}):ul.H(t,n)},K:function(t,n,e){let i=t.getHours()%12;return n==="Ko"?e.ordinalNumber(i,{unit:"hour"}):wt(i,n.length)},k:function(t,n,e){let i=t.getHours();return i===0&&(i=24),n==="ko"?e.ordinalNumber(i,{unit:"hour"}):wt(i,n.length)},m:function(t,n,e){return n==="mo"?e.ordinalNumber(t.getMinutes(),{unit:"minute"}):ul.m(t,n)},s:function(t,n,e){return n==="so"?e.ordinalNumber(t.getSeconds(),{unit:"second"}):ul.s(t,n)},S:function(t,n){return ul.S(t,n)},X:function(t,n,e){let i=t.getTimezoneOffset();if(i===0)return"Z";switch(n){case"X":return _V(i);case"XXXX":case"XX":return iu(i);case"XXXXX":case"XXX":default:return iu(i,":")}},x:function(t,n,e){let i=t.getTimezoneOffset();switch(n){case"x":return _V(i);case"xxxx":case"xx":return iu(i);case"xxxxx":case"xxx":default:return iu(i,":")}},O:function(t,n,e){let i=t.getTimezoneOffset();switch(n){case"O":case"OO":case"OOO":return"GMT"+gV(i,":");case"OOOO":default:return"GMT"+iu(i,":")}},z:function(t,n,e){let i=t.getTimezoneOffset();switch(n){case"z":case"zz":case"zzz":return"GMT"+gV(i,":");case"zzzz":default:return"GMT"+iu(i,":")}},t:function(t,n,e){let i=Math.trunc(+t/1e3);return wt(i,n.length)},T:function(t,n,e){return wt(+t,n.length)}};function gV(t,n=""){let e=t>0?"-":"+",i=Math.abs(t),r=Math.trunc(i/60),o=i%60;return o===0?e+String(r):e+String(r)+n+wt(o,2)}function _V(t,n){return t%60===0?(t>0?"-":"+")+wt(Math.abs(t)/60,2):iu(t,n)}function iu(t,n=""){let e=t>0?"-":"+",i=Math.abs(t),r=wt(Math.trunc(i/60),2),o=wt(i%60,2);return e+r+n+o}var bV=(t,n)=>{switch(t){case"P":return n.date({width:"short"});case"PP":return n.date({width:"medium"});case"PPP":return n.date({width:"long"});case"PPPP":default:return n.date({width:"full"})}},vV=(t,n)=>{switch(t){case"p":return n.time({width:"short"});case"pp":return n.time({width:"medium"});case"ppp":return n.time({width:"long"});case"pppp":default:return n.time({width:"full"})}},oX=(t,n)=>{let e=t.match(/(P+)(p+)?/)||[],i=e[1],r=e[2];if(!r)return bV(t,n);let o;switch(i){case"P":o=n.dateTime({width:"short"});break;case"PP":o=n.dateTime({width:"medium"});break;case"PPP":o=n.dateTime({width:"long"});break;case"PPPP":default:o=n.dateTime({width:"full"});break}return o.replace("{{date}}",bV(i,n)).replace("{{time}}",vV(r,n))},Zf={p:vV,P:oX};var aX=/^D+$/,sX=/^Y+$/,lX=["D","DD","YY","YYYY"];function ry(t){return aX.test(t)}function oy(t){return sX.test(t)}function Xf(t,n,e){let i=cX(t,n,e);if(console.warn(i),lX.includes(t))throw new RangeError(i)}function cX(t,n,e){let i=t[0]==="Y"?"years":"days of the month";return`Use \`${t.toLowerCase()}\` instead of \`${t}\` (in \`${n}\`) for formatting ${i} to the input \`${e}\`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md`}var dX=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,uX=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,mX=/^'([^]*?)'?$/,hX=/''/g,pX=/[a-zA-Z]/;function yV(t,n,e){let i=Yo(),r=e?.locale??i.locale??tu,o=e?.firstWeekContainsDate??e?.locale?.options?.firstWeekContainsDate??i.firstWeekContainsDate??i.locale?.options?.firstWeekContainsDate??1,a=e?.weekStartsOn??e?.locale?.options?.weekStartsOn??i.weekStartsOn??i.locale?.options?.weekStartsOn??0,s=Ie(t,e?.in);if(!sh(s))throw new RangeError("Invalid time value");let l=n.match(uX).map(d=>{let m=d[0];if(m==="p"||m==="P"){let f=Zf[m];return f(d,r.formatLong)}return d}).join("").match(dX).map(d=>{if(d==="''")return{isToken:!1,value:"'"};let m=d[0];if(m==="'")return{isToken:!1,value:fX(d)};if(Pk[m])return{isToken:!0,value:d};if(m.match(pX))throw new RangeError("Format string contains an unescaped latin alphabet character `"+m+"`");return{isToken:!1,value:d}});r.localize.preprocessor&&(l=r.localize.preprocessor(s,l));let c={firstWeekContainsDate:o,weekStartsOn:a,locale:r};return l.map(d=>{if(!d.isToken)return d.value;let m=d.value;(!e?.useAdditionalWeekYearTokens&&oy(m)||!e?.useAdditionalDayOfYearTokens&&ry(m))&&Xf(m,n,String(t));let f=Pk[m[0]];return f(s,m,r.localize,c)}).join("")}function fX(t){let n=t.match(mX);return n?n[1].replace(hX,"'"):t}function xV(t,n){let e=Ie(t,n?.in);if(isNaN(+e))throw new RangeError("Invalid time value");let i=n?.format??"extended",r=n?.representation??"complete",o="",a="",s=i==="extended"?"-":"",l=i==="extended"?":":"";if(r!=="time"){let c=wt(e.getDate(),2),d=wt(e.getMonth()+1,2);o=`${wt(e.getFullYear(),4)}${s}${d}${s}${c}`}if(r!=="date"){let c=e.getTimezoneOffset();if(c!==0){let w=Math.abs(c),x=wt(Math.trunc(w/60),2),D=wt(w%60,2);a=`${c<0?"+":"-"}${x}:${D}`}else a="Z";let d=wt(e.getHours(),2),m=wt(e.getMinutes(),2),f=wt(e.getSeconds(),2),b=o===""?"":"T",v=[d,m,f].join(l);o=`${o}${b}${v}${a}`}return o}function CV(t,n){return Ie(t,n?.in).getDate()}function wV(t,n){return Ie(t,n?.in).getDay()}function ay(t,n){let e=Ie(t,n?.in),i=e.getFullYear(),r=e.getMonth(),o=rt(e,0);return o.setFullYear(i,r+1,0),o.setHours(0,0,0,0),o.getDate()}function DV(){return Object.assign({},Yo())}function sy(t,n){return Ie(t,n?.in).getHours()}function EV(t,n){let e=Ie(t,n?.in).getDay();return e===0?7:e}function ly(t,n){return Ie(t,n?.in).getMinutes()}function MV(t,n){return Ie(t,n?.in).getMonth()}function kV(t){return Ie(t).getSeconds()}function SV(t,n){return Ie(t,n?.in).getFullYear()}function TV(t,n){let e=gX(n)?new n(0):rt(n,0);return e.setFullYear(t.getFullYear(),t.getMonth(),t.getDate()),e.setHours(t.getHours(),t.getMinutes(),t.getSeconds(),t.getMilliseconds()),e}function gX(t){return typeof t=="function"&&t.prototype?.constructor===t}var _X=10,cy=class{subPriority=0;validate(n,e){return!0}},dy=class extends cy{constructor(n,e,i,r,o){super(),this.value=n,this.validateValue=e,this.setValue=i,this.priority=r,o&&(this.subPriority=o)}validate(n,e){return this.validateValue(n,this.value,e)}set(n,e,i){return this.setValue(n,e,this.value,i)}},uy=class extends cy{priority=_X;subPriority=-1;constructor(n,e){super(),this.context=n||(i=>rt(e,i))}set(n,e){return e.timestampIsSet?n:rt(n,TV(n,this.context))}};var Pe=class{run(n,e,i,r){let o=this.parse(n,e,i,r);return o?{setter:new dy(o.value,this.validate,this.set,this.priority,this.subPriority),rest:o.rest}:null}validate(n,e,i){return!0}};var my=class extends Pe{priority=140;parse(n,e,i){switch(e){case"G":case"GG":case"GGG":return i.era(n,{width:"abbreviated"})||i.era(n,{width:"narrow"});case"GGGGG":return i.era(n,{width:"narrow"});case"GGGG":default:return i.era(n,{width:"wide"})||i.era(n,{width:"abbreviated"})||i.era(n,{width:"narrow"})}}set(n,e,i){return e.era=i,n.setFullYear(i,0,1),n.setHours(0,0,0,0),n}incompatibleTokens=["R","u","t","T"]};var Bt={month:/^(1[0-2]|0?\d)/,date:/^(3[0-1]|[0-2]?\d)/,dayOfYear:/^(36[0-6]|3[0-5]\d|[0-2]?\d?\d)/,week:/^(5[0-3]|[0-4]?\d)/,hour23h:/^(2[0-3]|[0-1]?\d)/,hour24h:/^(2[0-4]|[0-1]?\d)/,hour11h:/^(1[0-1]|0?\d)/,hour12h:/^(1[0-2]|0?\d)/,minute:/^[0-5]?\d/,second:/^[0-5]?\d/,singleDigit:/^\d/,twoDigits:/^\d{1,2}/,threeDigits:/^\d{1,3}/,fourDigits:/^\d{1,4}/,anyDigitsSigned:/^-?\d+/,singleDigitSigned:/^-?\d/,twoDigitsSigned:/^-?\d{1,2}/,threeDigitsSigned:/^-?\d{1,3}/,fourDigitsSigned:/^-?\d{1,4}/},Ko={basicOptionalMinutes:/^([+-])(\d{2})(\d{2})?|Z/,basic:/^([+-])(\d{2})(\d{2})|Z/,basicOptionalSeconds:/^([+-])(\d{2})(\d{2})((\d{2}))?|Z/,extended:/^([+-])(\d{2}):(\d{2})|Z/,extendedOptionalSeconds:/^([+-])(\d{2}):(\d{2})(:(\d{2}))?|Z/};function ci(t,n){return t&&{value:n(t.value),rest:t.rest}}function Nt(t,n){let e=n.match(t);return e?{value:parseInt(e[0],10),rest:n.slice(e[0].length)}:null}function Zo(t,n){let e=n.match(t);if(!e)return null;if(e[0]==="Z")return{value:0,rest:n.slice(1)};let i=e[1]==="+"?1:-1,r=e[2]?parseInt(e[2],10):0,o=e[3]?parseInt(e[3],10):0,a=e[5]?parseInt(e[5],10):0;return{value:i*(r*Jd+o*Xd+a*JL),rest:n.slice(e[0].length)}}function hy(t){return Nt(Bt.anyDigitsSigned,t)}function _t(t,n){switch(t){case 1:return Nt(Bt.singleDigit,n);case 2:return Nt(Bt.twoDigits,n);case 3:return Nt(Bt.threeDigits,n);case 4:return Nt(Bt.fourDigits,n);default:return Nt(new RegExp("^\\d{1,"+t+"}"),n)}}function mh(t,n){switch(t){case 1:return Nt(Bt.singleDigitSigned,n);case 2:return Nt(Bt.twoDigitsSigned,n);case 3:return Nt(Bt.threeDigitsSigned,n);case 4:return Nt(Bt.fourDigitsSigned,n);default:return Nt(new RegExp("^-?\\d{1,"+t+"}"),n)}}function hh(t){switch(t){case"morning":return 4;case"evening":return 17;case"pm":case"noon":case"afternoon":return 12;case"am":case"midnight":case"night":default:return 0}}function py(t,n){let e=n>0,i=e?n:1-n,r;if(i<=50)r=t||100;else{let o=i+50,a=Math.trunc(o/100)*100,s=t>=o%100;r=t+a-(s?100:0)}return e?r:1-r}function fy(t){return t%400===0||t%4===0&&t%100!==0}var gy=class extends Pe{priority=130;incompatibleTokens=["Y","R","u","w","I","i","e","c","t","T"];parse(n,e,i){let r=o=>({year:o,isTwoDigitYear:e==="yy"});switch(e){case"y":return ci(_t(4,n),r);case"yo":return ci(i.ordinalNumber(n,{unit:"year"}),r);default:return ci(_t(e.length,n),r)}}validate(n,e){return e.isTwoDigitYear||e.year>0}set(n,e,i){let r=n.getFullYear();if(i.isTwoDigitYear){let a=py(i.year,r);return n.setFullYear(a,0,1),n.setHours(0,0,0,0),n}let o=!("era"in e)||e.era===1?i.year:1-i.year;return n.setFullYear(o,0,1),n.setHours(0,0,0,0),n}};var _y=class extends Pe{priority=130;parse(n,e,i){let r=o=>({year:o,isTwoDigitYear:e==="YY"});switch(e){case"Y":return ci(_t(4,n),r);case"Yo":return ci(i.ordinalNumber(n,{unit:"year"}),r);default:return ci(_t(e.length,n),r)}}validate(n,e){return e.isTwoDigitYear||e.year>0}set(n,e,i,r){let o=ch(n,r);if(i.isTwoDigitYear){let s=py(i.year,o);return n.setFullYear(s,0,r.firstWeekContainsDate),n.setHours(0,0,0,0),Zn(n,r)}let a=!("era"in e)||e.era===1?i.year:1-i.year;return n.setFullYear(a,0,r.firstWeekContainsDate),n.setHours(0,0,0,0),Zn(n,r)}incompatibleTokens=["y","R","u","Q","q","M","L","I","d","D","i","t","T"]};var by=class extends Pe{priority=130;parse(n,e){return e==="R"?mh(4,n):mh(e.length,n)}set(n,e,i){let r=rt(n,0);return r.setFullYear(i,0,4),r.setHours(0,0,0,0),Oa(r)}incompatibleTokens=["G","y","Y","u","Q","q","M","L","w","d","D","e","c","t","T"]};var vy=class extends Pe{priority=130;parse(n,e){return e==="u"?mh(4,n):mh(e.length,n)}set(n,e,i){return n.setFullYear(i,0,1),n.setHours(0,0,0,0),n}incompatibleTokens=["G","y","Y","R","w","I","i","e","c","t","T"]};var yy=class extends Pe{priority=120;parse(n,e,i){switch(e){case"Q":case"QQ":return _t(e.length,n);case"Qo":return i.ordinalNumber(n,{unit:"quarter"});case"QQQ":return i.quarter(n,{width:"abbreviated",context:"formatting"})||i.quarter(n,{width:"narrow",context:"formatting"});case"QQQQQ":return i.quarter(n,{width:"narrow",context:"formatting"});case"QQQQ":default:return i.quarter(n,{width:"wide",context:"formatting"})||i.quarter(n,{width:"abbreviated",context:"formatting"})||i.quarter(n,{width:"narrow",context:"formatting"})}}validate(n,e){return e>=1&&e<=4}set(n,e,i){return n.setMonth((i-1)*3,1),n.setHours(0,0,0,0),n}incompatibleTokens=["Y","R","q","M","L","w","I","d","D","i","e","c","t","T"]};var xy=class extends Pe{priority=120;parse(n,e,i){switch(e){case"q":case"qq":return _t(e.length,n);case"qo":return i.ordinalNumber(n,{unit:"quarter"});case"qqq":return i.quarter(n,{width:"abbreviated",context:"standalone"})||i.quarter(n,{width:"narrow",context:"standalone"});case"qqqqq":return i.quarter(n,{width:"narrow",context:"standalone"});case"qqqq":default:return i.quarter(n,{width:"wide",context:"standalone"})||i.quarter(n,{width:"abbreviated",context:"standalone"})||i.quarter(n,{width:"narrow",context:"standalone"})}}validate(n,e){return e>=1&&e<=4}set(n,e,i){return n.setMonth((i-1)*3,1),n.setHours(0,0,0,0),n}incompatibleTokens=["Y","R","Q","M","L","w","I","d","D","i","e","c","t","T"]};var Cy=class extends Pe{incompatibleTokens=["Y","R","q","Q","L","w","I","D","i","e","c","t","T"];priority=110;parse(n,e,i){let r=o=>o-1;switch(e){case"M":return ci(Nt(Bt.month,n),r);case"MM":return ci(_t(2,n),r);case"Mo":return ci(i.ordinalNumber(n,{unit:"month"}),r);case"MMM":return i.month(n,{width:"abbreviated",context:"formatting"})||i.month(n,{width:"narrow",context:"formatting"});case"MMMMM":return i.month(n,{width:"narrow",context:"formatting"});case"MMMM":default:return i.month(n,{width:"wide",context:"formatting"})||i.month(n,{width:"abbreviated",context:"formatting"})||i.month(n,{width:"narrow",context:"formatting"})}}validate(n,e){return e>=0&&e<=11}set(n,e,i){return n.setMonth(i,1),n.setHours(0,0,0,0),n}};var wy=class extends Pe{priority=110;parse(n,e,i){let r=o=>o-1;switch(e){case"L":return ci(Nt(Bt.month,n),r);case"LL":return ci(_t(2,n),r);case"Lo":return ci(i.ordinalNumber(n,{unit:"month"}),r);case"LLL":return i.month(n,{width:"abbreviated",context:"standalone"})||i.month(n,{width:"narrow",context:"standalone"});case"LLLLL":return i.month(n,{width:"narrow",context:"standalone"});case"LLLL":default:return i.month(n,{width:"wide",context:"standalone"})||i.month(n,{width:"abbreviated",context:"standalone"})||i.month(n,{width:"narrow",context:"standalone"})}}validate(n,e){return e>=0&&e<=11}set(n,e,i){return n.setMonth(i,1),n.setHours(0,0,0,0),n}incompatibleTokens=["Y","R","q","Q","M","w","I","D","i","e","c","t","T"]};function IV(t,n,e){let i=Ie(t,e?.in),r=dh(i,e)-n;return i.setDate(i.getDate()-r*7),Ie(i,e?.in)}var Dy=class extends Pe{priority=100;parse(n,e,i){switch(e){case"w":return Nt(Bt.week,n);case"wo":return i.ordinalNumber(n,{unit:"week"});default:return _t(e.length,n)}}validate(n,e){return e>=1&&e<=53}set(n,e,i,r){return Zn(IV(n,i,r),r)}incompatibleTokens=["y","R","u","q","Q","M","L","I","d","D","i","t","T"]};function AV(t,n,e){let i=Ie(t,e?.in),r=ny(i,e)-n;return i.setDate(i.getDate()-r*7),i}var Ey=class extends Pe{priority=100;parse(n,e,i){switch(e){case"I":return Nt(Bt.week,n);case"Io":return i.ordinalNumber(n,{unit:"week"});default:return _t(e.length,n)}}validate(n,e){return e>=1&&e<=53}set(n,e,i){return Oa(AV(n,i))}incompatibleTokens=["y","Y","u","q","Q","M","L","w","d","D","e","c","t","T"]};var bX=[31,28,31,30,31,30,31,31,30,31,30,31],vX=[31,29,31,30,31,30,31,31,30,31,30,31],My=class extends Pe{priority=90;subPriority=1;parse(n,e,i){switch(e){case"d":return Nt(Bt.date,n);case"do":return i.ordinalNumber(n,{unit:"date"});default:return _t(e.length,n)}}validate(n,e){let i=n.getFullYear(),r=fy(i),o=n.getMonth();return r?e>=1&&e<=vX[o]:e>=1&&e<=bX[o]}set(n,e,i){return n.setDate(i),n.setHours(0,0,0,0),n}incompatibleTokens=["Y","R","q","Q","w","I","D","i","e","c","t","T"]};var ky=class extends Pe{priority=90;subpriority=1;parse(n,e,i){switch(e){case"D":case"DD":return Nt(Bt.dayOfYear,n);case"Do":return i.ordinalNumber(n,{unit:"date"});default:return _t(e.length,n)}}validate(n,e){let i=n.getFullYear();return fy(i)?e>=1&&e<=366:e>=1&&e<=365}set(n,e,i){return n.setMonth(0,i),n.setHours(0,0,0,0),n}incompatibleTokens=["Y","R","q","Q","M","L","w","I","d","E","i","e","c","t","T"]};function ph(t,n,e){let i=Yo(),r=e?.weekStartsOn??e?.locale?.options?.weekStartsOn??i.weekStartsOn??i.locale?.options?.weekStartsOn??0,o=Ie(t,e?.in),a=o.getDay(),l=(n%7+7)%7,c=7-r,d=n<0||n>6?n-(a+c)%7:(l+c)%7-(a+c)%7;return oh(o,d,e)}var Sy=class extends Pe{priority=90;parse(n,e,i){switch(e){case"E":case"EE":case"EEE":return i.day(n,{width:"abbreviated",context:"formatting"})||i.day(n,{width:"short",context:"formatting"})||i.day(n,{width:"narrow",context:"formatting"});case"EEEEE":return i.day(n,{width:"narrow",context:"formatting"});case"EEEEEE":return i.day(n,{width:"short",context:"formatting"})||i.day(n,{width:"narrow",context:"formatting"});case"EEEE":default:return i.day(n,{width:"wide",context:"formatting"})||i.day(n,{width:"abbreviated",context:"formatting"})||i.day(n,{width:"short",context:"formatting"})||i.day(n,{width:"narrow",context:"formatting"})}}validate(n,e){return e>=0&&e<=6}set(n,e,i,r){return n=ph(n,i,r),n.setHours(0,0,0,0),n}incompatibleTokens=["D","i","e","c","t","T"]};var Ty=class extends Pe{priority=90;parse(n,e,i,r){let o=a=>{let s=Math.floor((a-1)/7)*7;return(a+r.weekStartsOn+6)%7+s};switch(e){case"e":case"ee":return ci(_t(e.length,n),o);case"eo":return ci(i.ordinalNumber(n,{unit:"day"}),o);case"eee":return i.day(n,{width:"abbreviated",context:"formatting"})||i.day(n,{width:"short",context:"formatting"})||i.day(n,{width:"narrow",context:"formatting"});case"eeeee":return i.day(n,{width:"narrow",context:"formatting"});case"eeeeee":return i.day(n,{width:"short",context:"formatting"})||i.day(n,{width:"narrow",context:"formatting"});case"eeee":default:return i.day(n,{width:"wide",context:"formatting"})||i.day(n,{width:"abbreviated",context:"formatting"})||i.day(n,{width:"short",context:"formatting"})||i.day(n,{width:"narrow",context:"formatting"})}}validate(n,e){return e>=0&&e<=6}set(n,e,i,r){return n=ph(n,i,r),n.setHours(0,0,0,0),n}incompatibleTokens=["y","R","u","q","Q","M","L","I","d","D","E","i","c","t","T"]};var Iy=class extends Pe{priority=90;parse(n,e,i,r){let o=a=>{let s=Math.floor((a-1)/7)*7;return(a+r.weekStartsOn+6)%7+s};switch(e){case"c":case"cc":return ci(_t(e.length,n),o);case"co":return ci(i.ordinalNumber(n,{unit:"day"}),o);case"ccc":return i.day(n,{width:"abbreviated",context:"standalone"})||i.day(n,{width:"short",context:"standalone"})||i.day(n,{width:"narrow",context:"standalone"});case"ccccc":return i.day(n,{width:"narrow",context:"standalone"});case"cccccc":return i.day(n,{width:"short",context:"standalone"})||i.day(n,{width:"narrow",context:"standalone"});case"cccc":default:return i.day(n,{width:"wide",context:"standalone"})||i.day(n,{width:"abbreviated",context:"standalone"})||i.day(n,{width:"short",context:"standalone"})||i.day(n,{width:"narrow",context:"standalone"})}}validate(n,e){return e>=0&&e<=6}set(n,e,i,r){return n=ph(n,i,r),n.setHours(0,0,0,0),n}incompatibleTokens=["y","R","u","q","Q","M","L","I","d","D","E","i","e","t","T"]};function OV(t,n,e){let i=Ie(t,e?.in),r=EV(i,e),o=n-r;return oh(i,o,e)}var Ay=class extends Pe{priority=90;parse(n,e,i){let r=o=>o===0?7:o;switch(e){case"i":case"ii":return _t(e.length,n);case"io":return i.ordinalNumber(n,{unit:"day"});case"iii":return ci(i.day(n,{width:"abbreviated",context:"formatting"})||i.day(n,{width:"short",context:"formatting"})||i.day(n,{width:"narrow",context:"formatting"}),r);case"iiiii":return ci(i.day(n,{width:"narrow",context:"formatting"}),r);case"iiiiii":return ci(i.day(n,{width:"short",context:"formatting"})||i.day(n,{width:"narrow",context:"formatting"}),r);case"iiii":default:return ci(i.day(n,{width:"wide",context:"formatting"})||i.day(n,{width:"abbreviated",context:"formatting"})||i.day(n,{width:"short",context:"formatting"})||i.day(n,{width:"narrow",context:"formatting"}),r)}}validate(n,e){return e>=1&&e<=7}set(n,e,i){return n=OV(n,i),n.setHours(0,0,0,0),n}incompatibleTokens=["y","Y","u","q","Q","M","L","w","d","D","E","e","c","t","T"]};var Oy=class extends Pe{priority=80;parse(n,e,i){switch(e){case"a":case"aa":case"aaa":return i.dayPeriod(n,{width:"abbreviated",context:"formatting"})||i.dayPeriod(n,{width:"narrow",context:"formatting"});case"aaaaa":return i.dayPeriod(n,{width:"narrow",context:"formatting"});case"aaaa":default:return i.dayPeriod(n,{width:"wide",context:"formatting"})||i.dayPeriod(n,{width:"abbreviated",context:"formatting"})||i.dayPeriod(n,{width:"narrow",context:"formatting"})}}set(n,e,i){return n.setHours(hh(i),0,0,0),n}incompatibleTokens=["b","B","H","k","t","T"]};var Ry=class extends Pe{priority=80;parse(n,e,i){switch(e){case"b":case"bb":case"bbb":return i.dayPeriod(n,{width:"abbreviated",context:"formatting"})||i.dayPeriod(n,{width:"narrow",context:"formatting"});case"bbbbb":return i.dayPeriod(n,{width:"narrow",context:"formatting"});case"bbbb":default:return i.dayPeriod(n,{width:"wide",context:"formatting"})||i.dayPeriod(n,{width:"abbreviated",context:"formatting"})||i.dayPeriod(n,{width:"narrow",context:"formatting"})}}set(n,e,i){return n.setHours(hh(i),0,0,0),n}incompatibleTokens=["a","B","H","k","t","T"]};var Py=class extends Pe{priority=80;parse(n,e,i){switch(e){case"B":case"BB":case"BBB":return i.dayPeriod(n,{width:"abbreviated",context:"formatting"})||i.dayPeriod(n,{width:"narrow",context:"formatting"});case"BBBBB":return i.dayPeriod(n,{width:"narrow",context:"formatting"});case"BBBB":default:return i.dayPeriod(n,{width:"wide",context:"formatting"})||i.dayPeriod(n,{width:"abbreviated",context:"formatting"})||i.dayPeriod(n,{width:"narrow",context:"formatting"})}}set(n,e,i){return n.setHours(hh(i),0,0,0),n}incompatibleTokens=["a","b","t","T"]};var Fy=class extends Pe{priority=70;parse(n,e,i){switch(e){case"h":return Nt(Bt.hour12h,n);case"ho":return i.ordinalNumber(n,{unit:"hour"});default:return _t(e.length,n)}}validate(n,e){return e>=1&&e<=12}set(n,e,i){let r=n.getHours()>=12;return r&&i<12?n.setHours(i+12,0,0,0):!r&&i===12?n.setHours(0,0,0,0):n.setHours(i,0,0,0),n}incompatibleTokens=["H","K","k","t","T"]};var Ny=class extends Pe{priority=70;parse(n,e,i){switch(e){case"H":return Nt(Bt.hour23h,n);case"Ho":return i.ordinalNumber(n,{unit:"hour"});default:return _t(e.length,n)}}validate(n,e){return e>=0&&e<=23}set(n,e,i){return n.setHours(i,0,0,0),n}incompatibleTokens=["a","b","h","K","k","t","T"]};var Ly=class extends Pe{priority=70;parse(n,e,i){switch(e){case"K":return Nt(Bt.hour11h,n);case"Ko":return i.ordinalNumber(n,{unit:"hour"});default:return _t(e.length,n)}}validate(n,e){return e>=0&&e<=11}set(n,e,i){return n.getHours()>=12&&i<12?n.setHours(i+12,0,0,0):n.setHours(i,0,0,0),n}incompatibleTokens=["h","H","k","t","T"]};var Vy=class extends Pe{priority=70;parse(n,e,i){switch(e){case"k":return Nt(Bt.hour24h,n);case"ko":return i.ordinalNumber(n,{unit:"hour"});default:return _t(e.length,n)}}validate(n,e){return e>=1&&e<=24}set(n,e,i){let r=i<=24?i%24:i;return n.setHours(r,0,0,0),n}incompatibleTokens=["a","b","h","H","K","t","T"]};var By=class extends Pe{priority=60;parse(n,e,i){switch(e){case"m":return Nt(Bt.minute,n);case"mo":return i.ordinalNumber(n,{unit:"minute"});default:return _t(e.length,n)}}validate(n,e){return e>=0&&e<=59}set(n,e,i){return n.setMinutes(i,0,0),n}incompatibleTokens=["t","T"]};var jy=class extends Pe{priority=50;parse(n,e,i){switch(e){case"s":return Nt(Bt.second,n);case"so":return i.ordinalNumber(n,{unit:"second"});default:return _t(e.length,n)}}validate(n,e){return e>=0&&e<=59}set(n,e,i){return n.setSeconds(i,0),n}incompatibleTokens=["t","T"]};var Hy=class extends Pe{priority=30;parse(n,e){let i=r=>Math.trunc(r*Math.pow(10,-e.length+3));return ci(_t(e.length,n),i)}set(n,e,i){return n.setMilliseconds(i),n}incompatibleTokens=["t","T"]};var zy=class extends Pe{priority=10;parse(n,e){switch(e){case"X":return Zo(Ko.basicOptionalMinutes,n);case"XX":return Zo(Ko.basic,n);case"XXXX":return Zo(Ko.basicOptionalSeconds,n);case"XXXXX":return Zo(Ko.extendedOptionalSeconds,n);case"XXX":default:return Zo(Ko.extended,n)}}set(n,e,i){return e.timestampIsSet?n:rt(n,n.getTime()-eu(n)-i)}incompatibleTokens=["t","T","x"]};var Uy=class extends Pe{priority=10;parse(n,e){switch(e){case"x":return Zo(Ko.basicOptionalMinutes,n);case"xx":return Zo(Ko.basic,n);case"xxxx":return Zo(Ko.basicOptionalSeconds,n);case"xxxxx":return Zo(Ko.extendedOptionalSeconds,n);case"xxx":default:return Zo(Ko.extended,n)}}set(n,e,i){return e.timestampIsSet?n:rt(n,n.getTime()-eu(n)-i)}incompatibleTokens=["t","T","X"]};var $y=class extends Pe{priority=40;parse(n){return hy(n)}set(n,e,i){return[rt(n,i*1e3),{timestampIsSet:!0}]}incompatibleTokens="*"};var Wy=class extends Pe{priority=20;parse(n){return hy(n)}set(n,e,i){return[rt(n,i),{timestampIsSet:!0}]}incompatibleTokens="*"};var RV={G:new my,y:new gy,Y:new _y,R:new by,u:new vy,Q:new yy,q:new xy,M:new Cy,L:new wy,w:new Dy,I:new Ey,d:new My,D:new ky,E:new Sy,e:new Ty,c:new Iy,i:new Ay,a:new Oy,b:new Ry,B:new Py,h:new Fy,H:new Ny,K:new Ly,k:new Vy,m:new By,s:new jy,S:new Hy,X:new zy,x:new Uy,t:new $y,T:new Wy};var yX=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,xX=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,CX=/^'([^]*?)'?$/,wX=/''/g,DX=/\S/,EX=/[a-zA-Z]/;function PV(t,n,e,i){let r=()=>rt(i?.in||e,NaN),o=DV(),a=i?.locale??o.locale??tu,s=i?.firstWeekContainsDate??i?.locale?.options?.firstWeekContainsDate??o.firstWeekContainsDate??o.locale?.options?.firstWeekContainsDate??1,l=i?.weekStartsOn??i?.locale?.options?.weekStartsOn??o.weekStartsOn??o.locale?.options?.weekStartsOn??0;if(!n)return t?r():Ie(e,i?.in);let c={firstWeekContainsDate:s,weekStartsOn:l,locale:a},d=[new uy(i?.in,e)],m=n.match(xX).map(x=>{let D=x[0];if(D in Zf){let P=Zf[D];return P(x,a.formatLong)}return x}).join("").match(yX),f=[];for(let x of m){!i?.useAdditionalWeekYearTokens&&oy(x)&&Xf(x,n,t),!i?.useAdditionalDayOfYearTokens&&ry(x)&&Xf(x,n,t);let D=x[0],P=RV[D];if(P){let{incompatibleTokens:W}=P;if(Array.isArray(W)){let K=f.find(re=>W.includes(re.token)||re.token===D);if(K)throw new RangeError(`The format string mustn't contain \`${K.fullToken}\` and \`${x}\` at the same time`)}else if(P.incompatibleTokens==="*"&&f.length>0)throw new RangeError(`The format string mustn't contain \`${x}\` and any other token at the same time`);f.push({token:D,fullToken:x});let Z=P.run(t,x,a.match,c);if(!Z)return r();d.push(Z.setter),t=Z.rest}else{if(D.match(EX))throw new RangeError("Format string contains an unescaped latin alphabet character `"+D+"`");if(x==="''"?x="'":D==="'"&&(x=MX(x)),t.indexOf(x)===0)t=t.slice(x.length);else return r()}}if(t.length>0&&DX.test(t))return r();let b=d.map(x=>x.priority).sort((x,D)=>D-x).filter((x,D,P)=>P.indexOf(x)===D).map(x=>d.filter(D=>D.priority===x).sort((D,P)=>P.subPriority-D.subPriority)).map(x=>x[0]),v=Ie(e,i?.in);if(isNaN(+v))return r();let w={};for(let x of b){if(!x.validate(v,c))return r();let D=x.set(v,w,c);Array.isArray(D)?(v=D[0],Object.assign(w,D[1])):v=D}return v}function MX(t){return t.match(CX)[1].replace(wX,"'")}function FV(t,n,e){let[i,r]=ty(e?.in,t,n);return+Zn(i,e)==+Zn(r,e)}function Nk(t,n){let e=()=>rt(n?.in,NaN),i=n?.additionalDigits??2,r=IX(t),o;if(r.date){let c=AX(r.date,i);o=OX(c.restDateString,c.year)}if(!o||isNaN(+o))return e();let a=+o,s=0,l;if(r.time&&(s=RX(r.time),isNaN(s)))return e();if(r.timezone){if(l=PX(r.timezone),isNaN(l))return e()}else{let c=new Date(a+s),d=Ie(0,n?.in);return d.setFullYear(c.getUTCFullYear(),c.getUTCMonth(),c.getUTCDate()),d.setHours(c.getUTCHours(),c.getUTCMinutes(),c.getUTCSeconds(),c.getUTCMilliseconds()),d}return Ie(a+s+l,n?.in)}var Gy={dateTimeDelimiter:/[T ]/,timeZoneDelimiter:/[Z ]/i,timezone:/([Z+-].*)$/},kX=/^-?(?:(\d{3})|(\d{2})(?:-?(\d{2}))?|W(\d{2})(?:-?(\d{1}))?|)$/,SX=/^(\d{2}(?:[.,]\d*)?)(?::?(\d{2}(?:[.,]\d*)?))?(?::?(\d{2}(?:[.,]\d*)?))?$/,TX=/^([+-])(\d{2})(?::?(\d{2}))?$/;function IX(t){let n={},e=t.split(Gy.dateTimeDelimiter),i;if(e.length>2)return n;if(/:/.test(e[0])?i=e[0]:(n.date=e[0],i=e[1],Gy.timeZoneDelimiter.test(n.date)&&(n.date=t.split(Gy.timeZoneDelimiter)[0],i=t.substr(n.date.length,t.length))),i){let r=Gy.timezone.exec(i);r?(n.time=i.replace(r[1],""),n.timezone=r[1]):n.time=i}return n}function AX(t,n){let e=new RegExp("^(?:(\\d{4}|[+-]\\d{"+(4+n)+"})|(\\d{2}|[+-]\\d{"+(2+n)+"})$)"),i=t.match(e);if(!i)return{year:NaN,restDateString:""};let r=i[1]?parseInt(i[1]):null,o=i[2]?parseInt(i[2]):null;return{year:o===null?r:o*100,restDateString:t.slice((i[1]||i[2]).length)}}function OX(t,n){if(n===null)return new Date(NaN);let e=t.match(kX);if(!e)return new Date(NaN);let i=!!e[4],r=Jf(e[1]),o=Jf(e[2])-1,a=Jf(e[3]),s=Jf(e[4]),l=Jf(e[5])-1;if(i)return BX(n,s,l)?FX(n,s,l):new Date(NaN);{let c=new Date(0);return!LX(n,o,a)||!VX(n,r)?new Date(NaN):(c.setUTCFullYear(n,o,Math.max(r,a)),c)}}function Jf(t){return t?parseInt(t):1}function RX(t){let n=t.match(SX);if(!n)return NaN;let e=Fk(n[1]),i=Fk(n[2]),r=Fk(n[3]);return jX(e,i,r)?e*Jd+i*Xd+r*1e3:NaN}function Fk(t){return t&&parseFloat(t.replace(",","."))||0}function PX(t){if(t==="Z")return 0;let n=t.match(TX);if(!n)return 0;let e=n[1]==="+"?-1:1,i=parseInt(n[2]),r=n[3]&&parseInt(n[3])||0;return HX(i,r)?e*(i*Jd+r*Xd):NaN}function FX(t,n,e){let i=new Date(0);i.setUTCFullYear(t,0,4);let r=i.getUTCDay()||7,o=(n-1)*7+e+1-r;return i.setUTCDate(i.getUTCDate()+o),i}var NX=[31,null,31,30,31,30,31,31,30,31,30,31];function NV(t){return t%400===0||t%4===0&&t%100!==0}function LX(t,n,e){return n>=0&&n<=11&&e>=1&&e<=(NX[n]||(NV(t)?29:28))}function VX(t,n){return n>=1&&n<=(NV(t)?366:365)}function BX(t,n,e){return n>=1&&n<=53&&e>=0&&e<=6}function jX(t,n,e){return t===24?n===0&&e===0:e>=0&&e<60&&n>=0&&n<60&&t>=0&&t<25}function HX(t,n){return n>=0&&n<=59}function LV(t,n,e){let i=Ie(t,e?.in),r=i.getFullYear(),o=i.getDate(),a=rt(e?.in||t,0);a.setFullYear(r,n,15),a.setHours(0,0,0,0);let s=ay(a);return i.setMonth(n,Math.min(o,s)),i}function VV(t,n,e){let i=Ie(t,e?.in);return isNaN(+i)?rt(e?.in||t,NaN):(n.year!=null&&i.setFullYear(n.year),n.month!=null&&(i=LV(i,n.month)),n.date!=null&&i.setDate(n.date),n.hours!=null&&i.setHours(n.hours),n.minutes!=null&&i.setMinutes(n.minutes),n.seconds!=null&&i.setSeconds(n.seconds),n.milliseconds!=null&&i.setMilliseconds(n.milliseconds),i)}function Lk(t,n){let e=Array(t);for(let i=0;i{class t extends Li{constructor(){super();let e=u(ys,{optional:!0});this.setLocale(e)}getYear(e){return SV(e)}getMonth(e){return MV(e)}getDate(e){return CV(e)}getDayOfWeek(e){return wV(e)}getMonthNames(e){let i=zX[e];return Lk(12,r=>this.format(new Date(2017,r,1),i))}getDateNames(){let e=typeof Intl<"u"?new Intl.DateTimeFormat(this.locale.code,{day:"numeric",timeZone:"utc"}):null;return Lk(31,i=>{if(e){let r=new Date;return r.setUTCFullYear(2017,0,i+1),r.setUTCHours(0,0,0,0),e.format(r).replace(/[\u200e\u200f]/g,"")}return i+""})}getDayOfWeekNames(e){let i=UX[e];return Lk(7,r=>this.format(new Date(2017,0,r+1),i))}getYearName(e){return this.format(e,"y")}getFirstDayOfWeek(){return this.locale.options?.weekStartsOn??0}getNumDaysInMonth(e){return ay(e)}clone(e){return new Date(e.getTime())}createDate(e,i,r){let o=new Date;return o.setFullYear(e,i,r),o.setHours(0,0,0,0),o.getMonth()!=i,o}today(){return new Date}parse(e,i){return this._parse(e,i)}format(e,i){if(!this.isValid(e))throw Error("DateFnsAdapter: Cannot format invalid date.");return yV(e,i,{locale:this.locale})}addCalendarYears(e,i){return aV(e,i)}addCalendarMonths(e,i){return ah(e,i)}addCalendarDays(e,i){return oh(e,i)}toIso8601(e){return xV(e,{representation:"date"})}deserialize(e){if(typeof e=="string"){if(!e)return null;let i=Nk(e);if(this.isValid(i))return i}return super.deserialize(e)}isDateInstance(e){return iy(e)}isValid(e){return sh(e)}invalid(){return new Date(NaN)}setTime(e,i,r,o){return VV(this.clone(e),{hours:i,minutes:r,seconds:o,milliseconds:0})}getHours(e){return sy(e)}getMinutes(e){return ly(e)}getSeconds(e){return kV(e)}parseTime(e,i){return this._parse(e,i,!1)}addSeconds(e,i){return oV(e,i)}_parse(e,i,r=!0){if(typeof e=="string"&&e.length>0){if(r){let a=Nk(e);if(this.isValid(a))return a}let o=Array.isArray(i)?i:[i];if(!i.length)throw Error("Formats array must not be empty.");for(let a of o){let s=PV(e,a,new Date,{locale:this.locale});if(this.isValid(s))return s}return this.invalid()}else{if(typeof e=="number")return new Date(e);if(e instanceof Date)return this.clone(e)}return null}static \u0275fac=function(i){return new(i||t)};static \u0275prov=O({token:t,factory:t.\u0275fac})}return t})(),$X={parse:{dateInput:"P",timeInput:"p"},display:{dateInput:"P",timeInput:"p",monthYearLabel:"LLL uuuu",dateA11yLabel:"PP",monthYearA11yLabel:"LLLL uuuu",timeOptionLabel:"p"}};function BV(t=$X){return[{provide:Li,useClass:Vk,deps:[ys]},{provide:xs,useValue:t}]}var WX=["*"];var GX=[[["","mat-card-avatar",""],["","matCardAvatar",""]],[["mat-card-title"],["mat-card-subtitle"],["","mat-card-title",""],["","mat-card-subtitle",""],["","matCardTitle",""],["","matCardSubtitle",""]],"*"],qX=["[mat-card-avatar], [matCardAvatar]",`mat-card-title, mat-card-subtitle, + [mat-card-title], [mat-card-subtitle], + [matCardTitle], [matCardSubtitle]`,"*"],Bk=new T("MAT_CARD_CONFIG"),zt=(()=>{class t{appearance;constructor(){let e=u(Bk,{optional:!0});this.appearance=e?.appearance||"raised"}static \u0275fac=function(i){return new(i||t)};static \u0275cmp=E({type:t,selectors:[["mat-card"]],hostAttrs:[1,"mat-mdc-card","mdc-card"],hostVars:8,hostBindings:function(i,r){i&2&&G("mat-mdc-card-outlined",r.appearance==="outlined")("mdc-card--outlined",r.appearance==="outlined")("mat-mdc-card-filled",r.appearance==="filled")("mdc-card--filled",r.appearance==="filled")},inputs:{appearance:"appearance"},exportAs:["matCard"],ngContentSelectors:WX,decls:1,vars:0,template:function(i,r){i&1&&(Me(),oe(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 rgba(0,0,0,0);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 t})(),Xt=(()=>{class t{static \u0275fac=function(i){return new(i||t)};static \u0275dir=F({type:t,selectors:[["mat-card-title"],["","mat-card-title",""],["","matCardTitle",""]],hostAttrs:[1,"mat-mdc-card-title"]})}return t})();var Ut=(()=>{class t{static \u0275fac=function(i){return new(i||t)};static \u0275dir=F({type:t,selectors:[["mat-card-content"]],hostAttrs:[1,"mat-mdc-card-content"]})}return t})(),jV=(()=>{class t{static \u0275fac=function(i){return new(i||t)};static \u0275dir=F({type:t,selectors:[["mat-card-subtitle"],["","mat-card-subtitle",""],["","matCardSubtitle",""]],hostAttrs:[1,"mat-mdc-card-subtitle"]})}return t})();var Jt=(()=>{class t{static \u0275fac=function(i){return new(i||t)};static \u0275cmp=E({type:t,selectors:[["mat-card-header"]],hostAttrs:[1,"mat-mdc-card-header"],ngContentSelectors:qX,decls:4,vars:0,consts:[[1,"mat-mdc-card-header-text"]],template:function(i,r){i&1&&(Me(GX),oe(0),ft(1,"div",0),oe(2,1),vt(),oe(3,2))},encapsulation:2,changeDetection:0})}return t})();var HV=(()=>{class t{static \u0275fac=function(i){return new(i||t)};static \u0275dir=F({type:t,selectors:[["","mat-card-avatar",""],["","matCardAvatar",""]],hostAttrs:[1,"mat-mdc-card-avatar"]})}return t})();var $t=(()=>{class t{static \u0275fac=function(i){return new(i||t)};static \u0275mod=ee({type:t});static \u0275inj=J({imports:[we,we]})}return t})();var jk=class{_box;_destroyed=new z;_resizeSubject=new z;_resizeObserver;_elementObservables=new Map;constructor(n){this._box=n,typeof ResizeObserver<"u"&&(this._resizeObserver=new ResizeObserver(e=>this._resizeSubject.next(e)))}observe(n){return this._elementObservables.has(n)||this._elementObservables.set(n,new Fe(e=>{let i=this._resizeSubject.subscribe(e);return this._resizeObserver?.observe(n,{box:this._box}),()=>{this._resizeObserver?.unobserve(n),i.unsubscribe(),this._elementObservables.delete(n)}}).pipe(ce(e=>e.some(i=>i.target===n)),dd({bufferSize:1,refCount:!0}),Te(this._destroyed))),this._elementObservables.get(n)}destroy(){this._destroyed.next(),this._destroyed.complete(),this._resizeSubject.complete(),this._elementObservables.clear()}},qy=(()=>{class t{_cleanupErrorListener;_observers=new Map;_ngZone=u(ae);constructor(){typeof ResizeObserver<"u"}ngOnDestroy(){for(let[,e]of this._observers)e.destroy();this._observers.clear(),this._cleanupErrorListener?.()}observe(e,i){let r=i?.box||"content-box";return this._observers.has(r)||this._observers.set(r,new jk(r)),this._observers.get(r).observe(e)}static \u0275fac=function(i){return new(i||t)};static \u0275prov=O({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();var YX=["notch"],QX=["matFormFieldNotchedOutline",""],KX=["*"],zV=["iconPrefixContainer"],UV=["textPrefixContainer"],$V=["iconSuffixContainer"],WV=["textSuffixContainer"],ZX=["textField"],XX=["*",[["mat-label"]],[["","matPrefix",""],["","matIconPrefix",""]],[["","matTextPrefix",""]],[["","matTextSuffix",""]],[["","matSuffix",""],["","matIconSuffix",""]],[["mat-error"],["","matError",""]],[["mat-hint",3,"align","end"]],[["mat-hint","align","end"]]],JX=["*","mat-label","[matPrefix], [matIconPrefix]","[matTextPrefix]","[matTextSuffix]","[matSuffix], [matIconSuffix]","mat-error, [matError]","mat-hint:not([align='end'])","mat-hint[align='end']"];function eJ(t,n){t&1&&k(0,"span",21)}function tJ(t,n){if(t&1&&(h(0,"label",20),oe(1,1),N(2,eJ,1,0,"span",21),p()),t&2){let e=C(2);y("floating",e._shouldLabelFloat())("monitorResize",e._hasOutline())("id",e._labelId),X("for",e._control.disableAutomaticLabeling?null:e._control.id),g(2),L(!e.hideRequiredMarker&&e._control.required?2:-1)}}function iJ(t,n){if(t&1&&N(0,tJ,3,5,"label",20),t&2){let e=C();L(e._hasFloatingLabel()?0:-1)}}function nJ(t,n){t&1&&k(0,"div",7)}function rJ(t,n){}function oJ(t,n){if(t&1&&R(0,rJ,0,0,"ng-template",13),t&2){C(2);let e=Se(1);y("ngTemplateOutlet",e)}}function aJ(t,n){if(t&1&&(h(0,"div",9),N(1,oJ,1,1,null,13),p()),t&2){let e=C();y("matFormFieldNotchedOutlineOpen",e._shouldLabelFloat()),g(),L(e._forceDisplayInfixLabel()?-1:1)}}function sJ(t,n){t&1&&(h(0,"div",10,2),oe(2,2),p())}function lJ(t,n){t&1&&(h(0,"div",11,3),oe(2,3),p())}function cJ(t,n){}function dJ(t,n){if(t&1&&R(0,cJ,0,0,"ng-template",13),t&2){C();let e=Se(1);y("ngTemplateOutlet",e)}}function uJ(t,n){t&1&&(h(0,"div",14,4),oe(2,4),p())}function mJ(t,n){t&1&&(h(0,"div",15,5),oe(2,5),p())}function hJ(t,n){t&1&&k(0,"div",16)}function pJ(t,n){t&1&&(h(0,"div",18),oe(1,6),p())}function fJ(t,n){if(t&1&&(h(0,"mat-hint",22),_(1),p()),t&2){let e=C(2);y("id",e._hintLabelId),g(),H(e.hintLabel)}}function gJ(t,n){if(t&1&&(h(0,"div",19),N(1,fJ,2,2,"mat-hint",22),oe(2,7),k(3,"div",23),oe(4,8),p()),t&2){let e=C();g(),L(e.hintLabel?1:-1)}}var sn=(()=>{class t{static \u0275fac=function(i){return new(i||t)};static \u0275dir=F({type:t,selectors:[["mat-label"]]})}return t})(),Hk=new T("MatError"),xo=(()=>{class t{id=u(Ze).getId("mat-mdc-error-");constructor(){}static \u0275fac=function(i){return new(i||t)};static \u0275dir=F({type:t,selectors:[["mat-error"],["","matError",""]],hostAttrs:[1,"mat-mdc-form-field-error","mat-mdc-form-field-bottom-align"],hostVars:1,hostBindings:function(i,r){i&2&&si("id",r.id)},inputs:{id:"id"},features:[Ce([{provide:Hk,useExisting:t}])]})}return t})(),eg=(()=>{class t{align="start";id=u(Ze).getId("mat-mdc-hint-");static \u0275fac=function(i){return new(i||t)};static \u0275dir=F({type:t,selectors:[["mat-hint"]],hostAttrs:[1,"mat-mdc-form-field-hint","mat-mdc-form-field-bottom-align"],hostVars:4,hostBindings:function(i,r){i&2&&(si("id",r.id),X("align",null),G("mat-mdc-form-field-hint-end",r.align==="end"))},inputs:{align:"align",id:"id"}})}return t})(),zk=new T("MatPrefix"),nu=(()=>{class t{set _isTextSelector(e){this._isText=!0}_isText=!1;static \u0275fac=function(i){return new(i||t)};static \u0275dir=F({type:t,selectors:[["","matPrefix",""],["","matIconPrefix",""],["","matTextPrefix",""]],inputs:{_isTextSelector:[0,"matTextPrefix","_isTextSelector"]},features:[Ce([{provide:zk,useExisting:t}])]})}return t})(),Uk=new T("MatSuffix"),ru=(()=>{class t{set _isTextSelector(e){this._isText=!0}_isText=!1;static \u0275fac=function(i){return new(i||t)};static \u0275dir=F({type:t,selectors:[["","matSuffix",""],["","matIconSuffix",""],["","matTextSuffix",""]],inputs:{_isTextSelector:[0,"matTextSuffix","_isTextSelector"]},features:[Ce([{provide:Uk,useExisting:t}])]})}return t})(),XV=new T("FloatingLabelParent"),GV=(()=>{class t{_elementRef=u(q);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=u(qy);_ngZone=u(ae);_parent=u(XV);_resizeSubscription=new ke;constructor(){}ngOnDestroy(){this._resizeSubscription.unsubscribe()}getWidth(){return _J(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(i){return new(i||t)};static \u0275dir=F({type:t,selectors:[["label","matFormFieldFloatingLabel",""]],hostAttrs:[1,"mdc-floating-label","mat-mdc-floating-label"],hostVars:2,hostBindings:function(i,r){i&2&&G("mdc-floating-label--float-above",r.floating)},inputs:{floating:"floating",monitorResize:"monitorResize"}})}return t})();function _J(t){let n=t;if(n.offsetParent!==null)return n.scrollWidth;let e=n.cloneNode(!0);e.style.setProperty("position","absolute"),e.style.setProperty("transform","translate(-9999px, -9999px)"),document.documentElement.appendChild(e);let i=e.scrollWidth;return e.remove(),i}var qV="mdc-line-ripple--active",Yy="mdc-line-ripple--deactivating",YV=(()=>{class t{_elementRef=u(q);_cleanupTransitionEnd;constructor(){let e=u(ae),i=u(je);e.runOutsideAngular(()=>{this._cleanupTransitionEnd=i.listen(this._elementRef.nativeElement,"transitionend",this._handleTransitionEnd)})}activate(){let e=this._elementRef.nativeElement.classList;e.remove(Yy),e.add(qV)}deactivate(){this._elementRef.nativeElement.classList.add(Yy)}_handleTransitionEnd=e=>{let i=this._elementRef.nativeElement.classList,r=i.contains(Yy);e.propertyName==="opacity"&&r&&i.remove(qV,Yy)};ngOnDestroy(){this._cleanupTransitionEnd()}static \u0275fac=function(i){return new(i||t)};static \u0275dir=F({type:t,selectors:[["div","matFormFieldLineRipple",""]],hostAttrs:[1,"mdc-line-ripple"]})}return t})(),QV=(()=>{class t{_elementRef=u(q);_ngZone=u(ae);open=!1;_notch;ngAfterViewInit(){let e=this._elementRef.nativeElement,i=e.querySelector(".mdc-floating-label");i?(e.classList.add("mdc-notched-outline--upgraded"),typeof requestAnimationFrame=="function"&&(i.style.transitionDuration="0s",this._ngZone.runOutsideAngular(()=>{requestAnimationFrame(()=>i.style.transitionDuration="")}))):e.classList.add("mdc-notched-outline--no-label")}_setNotchWidth(e){let i=this._notch.nativeElement;!this.open||!e?i.style.width="":i.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(i){return new(i||t)};static \u0275cmp=E({type:t,selectors:[["div","matFormFieldNotchedOutline",""]],viewQuery:function(i,r){if(i&1&&ie(YX,5),i&2){let o;B(o=j())&&(r._notch=o.first)}},hostAttrs:[1,"mdc-notched-outline"],hostVars:2,hostBindings:function(i,r){i&2&&G("mdc-notched-outline--notched",r.open)},inputs:{open:[0,"matFormFieldNotchedOutlineOpen","open"]},attrs:QX,ngContentSelectors:KX,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(i,r){i&1&&(Me(),ai(0,"div",1),ft(1,"div",2,0),oe(3),vt(),ai(4,"div",3))},encapsulation:2,changeDetection:0})}return t})(),Ra=(()=>{class t{value;stateChanges;id;placeholder;ngControl;focused;empty;shouldLabelFloat;required;disabled;errorState;controlType;autofilled;userAriaDescribedBy;disableAutomaticLabeling;describedByIds;static \u0275fac=function(i){return new(i||t)};static \u0275dir=F({type:t})}return t})();var Xo=new T("MatFormField"),JV=new T("MAT_FORM_FIELD_DEFAULT_OPTIONS"),KV="fill",bJ="auto",ZV="fixed",vJ="translateY(-50%)",Oi=(()=>{class t{_elementRef=u(q);_changeDetectorRef=u(ye);_platform=u(qe);_idGenerator=u(Ze);_ngZone=u(ae);_defaults=u(JV,{optional:!0});_currentDirection;_textField;_iconPrefixContainer;_textPrefixContainer;_iconSuffixContainer;_textSuffixContainer;_floatingLabel;_notchedOutline;_lineRipple;_iconPrefixContainerSignal=qn("iconPrefixContainer");_textPrefixContainerSignal=qn("textPrefixContainer");_iconSuffixContainerSignal=qn("iconSuffixContainer");_textSuffixContainerSignal=qn("textSuffixContainer");_prefixSuffixContainers=Zt(()=>[this._iconPrefixContainerSignal(),this._textPrefixContainerSignal(),this._iconSuffixContainerSignal(),this._textSuffixContainerSignal()].map(e=>e?.nativeElement).filter(e=>e!==void 0));_formFieldControl;_prefixChildren;_suffixChildren;_errorChildren;_hintChildren;_labelChild=fr(sn);get hideRequiredMarker(){return this._hideRequiredMarker}set hideRequiredMarker(e){this._hideRequiredMarker=Ai(e)}_hideRequiredMarker=!1;color="primary";get floatLabel(){return this._floatLabel||this._defaults?.floatLabel||bJ}set floatLabel(e){e!==this._floatLabel&&(this._floatLabel=e,this._changeDetectorRef.markForCheck())}_floatLabel;get appearance(){return this._appearanceSignal()}set appearance(e){let i=e||this._defaults?.appearance||KV;this._appearanceSignal.set(i)}_appearanceSignal=he(KV);get subscriptSizing(){return this._subscriptSizing||this._defaults?.subscriptSizing||ZV}set subscriptSizing(e){this._subscriptSizing=e||this._defaults?.subscriptSizing||ZV}_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 z;_isFocused=null;_explicitFormFieldControl;_previousControl=null;_previousControlValidatorFn=null;_stateChanges;_valueChanges;_describedByChanges;_outlineLabelOffsetResizeObserver=null;_animationsDisabled=Ye();constructor(){let e=this._defaults,i=u(Vt);e&&(e.appearance&&(this.appearance=e.appearance),this._hideRequiredMarker=!!e?.hideRequiredMarker,e.color&&(this.color=e.color)),Ar(()=>this._currentDirection=i.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=Zt(()=>this._hasFloatingLabel()?this._labelId:null);getConnectedOverlayOrigin(){return this._textField||this._elementRef}_animateAndLockLabel(){this._hasFloatingLabel()&&(this.floatLabel="always")}_initializeControl(e){let i=this._control,r="mat-mdc-form-field-type-";e&&this._elementRef.nativeElement.classList.remove(r+e.controlType),i.controlType&&this._elementRef.nativeElement.classList.add(r+i.controlType),this._stateChanges?.unsubscribe(),this._stateChanges=i.stateChanges.subscribe(()=>{this._updateFocusState(),this._changeDetectorRef.markForCheck()}),this._describedByChanges?.unsubscribe(),this._describedByChanges=i.stateChanges.pipe(He([void 0,void 0]),se(()=>[i.errorState,i.userAriaDescribedBy]),db(),ce(([[o,a],[s,l]])=>o!==s||a!==l)).subscribe(()=>this._syncDescribedByIds()),this._valueChanges?.unsubscribe(),i.ngControl&&i.ngControl.valueChanges&&(this._valueChanges=i.ngControl.valueChanges.pipe(Te(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(),Je(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(){l2({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=Zt(()=>!!this._labelChild());_shouldLabelFloat(){return this._hasFloatingLabel()?this._control.shouldLabelFloat||this._shouldAlwaysFloat():!1}_shouldForward(e){let i=this._control?this._control.ngControl:null;return i&&i[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 o=this._hintChildren?this._hintChildren.find(s=>s.align==="start"):null,a=this._hintChildren?this._hintChildren.find(s=>s.align==="end"):null;o?e.push(o.id):this._hintLabel&&e.push(this._hintLabelId),a&&e.push(a.id)}else this._errorChildren&&e.push(...this._errorChildren.map(o=>o.id));let i=this._control.describedByIds,r;if(i){let o=this._describedByIds||e;r=e.concat(i.filter(a=>a&&!o.includes(a)))}else r=e;this._control.setDescribedByIds(r),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,i=this._textPrefixContainer?.nativeElement,r=this._iconSuffixContainer?.nativeElement,o=this._textSuffixContainer?.nativeElement,a=e?.getBoundingClientRect().width??0,s=i?.getBoundingClientRect().width??0,l=r?.getBoundingClientRect().width??0,c=o?.getBoundingClientRect().width??0,d=this._currentDirection==="rtl"?"-1":"1",m=`${a+s}px`,b=`calc(${d} * (${m} + var(--mat-mdc-form-field-label-offset-x, 0px)))`,v=`var(--mat-mdc-form-field-label-transform, ${vJ} translateX(${b}))`,w=a+s+l+c;return[v,w]}_writeOutlinedLabelStyles(e){if(e!==null){let[i,r]=e;this._floatingLabel&&(this._floatingLabel.element.style.transform=i),r!==null&&this._notchedOutline?._setMaxWidth(r)}}_isAttachedToDom(){let e=this._elementRef.nativeElement;if(e.getRootNode){let i=e.getRootNode();return i&&i!==e}return document.documentElement.contains(e)}static \u0275fac=function(i){return new(i||t)};static \u0275cmp=E({type:t,selectors:[["mat-form-field"]],contentQueries:function(i,r,o){if(i&1&&(Rn(o,r._labelChild,sn,5),xe(o,Ra,5),xe(o,zk,5),xe(o,Uk,5),xe(o,Hk,5),xe(o,eg,5)),i&2){Ho();let a;B(a=j())&&(r._formFieldControl=a.first),B(a=j())&&(r._prefixChildren=a),B(a=j())&&(r._suffixChildren=a),B(a=j())&&(r._errorChildren=a),B(a=j())&&(r._hintChildren=a)}},viewQuery:function(i,r){if(i&1&&(Pn(r._iconPrefixContainerSignal,zV,5),Pn(r._textPrefixContainerSignal,UV,5),Pn(r._iconSuffixContainerSignal,$V,5),Pn(r._textSuffixContainerSignal,WV,5),ie(ZX,5),ie(zV,5),ie(UV,5),ie($V,5),ie(WV,5),ie(GV,5),ie(QV,5),ie(YV,5)),i&2){Ho(4);let o;B(o=j())&&(r._textField=o.first),B(o=j())&&(r._iconPrefixContainer=o.first),B(o=j())&&(r._textPrefixContainer=o.first),B(o=j())&&(r._iconSuffixContainer=o.first),B(o=j())&&(r._textSuffixContainer=o.first),B(o=j())&&(r._floatingLabel=o.first),B(o=j())&&(r._notchedOutline=o.first),B(o=j())&&(r._lineRipple=o.first)}},hostAttrs:[1,"mat-mdc-form-field"],hostVars:38,hostBindings:function(i,r){i&2&&G("mat-mdc-form-field-label-always-float",r._shouldAlwaysFloat())("mat-mdc-form-field-has-icon-prefix",r._hasIconPrefix)("mat-mdc-form-field-has-icon-suffix",r._hasIconSuffix)("mat-form-field-invalid",r._control.errorState)("mat-form-field-disabled",r._control.disabled)("mat-form-field-autofilled",r._control.autofilled)("mat-form-field-appearance-fill",r.appearance=="fill")("mat-form-field-appearance-outline",r.appearance=="outline")("mat-form-field-hide-placeholder",r._hasFloatingLabel()&&!r._shouldLabelFloat())("mat-primary",r.color!=="accent"&&r.color!=="warn")("mat-accent",r.color==="accent")("mat-warn",r.color==="warn")("ng-untouched",r._shouldForward("untouched"))("ng-touched",r._shouldForward("touched"))("ng-pristine",r._shouldForward("pristine"))("ng-dirty",r._shouldForward("dirty"))("ng-valid",r._shouldForward("valid"))("ng-invalid",r._shouldForward("invalid"))("ng-pending",r._shouldForward("pending"))},inputs:{hideRequiredMarker:"hideRequiredMarker",color:"color",floatLabel:"floatLabel",appearance:"appearance",subscriptSizing:"subscriptSizing",hintLabel:"hintLabel"},exportAs:["matFormField"],features:[Ce([{provide:Xo,useExisting:t},{provide:XV,useExisting:t}])],ngContentSelectors:JX,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(i,r){if(i&1){let o=Y();Me(XX),R(0,iJ,1,1,"ng-template",null,0,_i),h(2,"div",6,1),S("click",function(s){return I(o),A(r._control.onContainerClick(s))}),N(4,nJ,1,0,"div",7),h(5,"div",8),N(6,aJ,2,2,"div",9),N(7,sJ,3,0,"div",10),N(8,lJ,3,0,"div",11),h(9,"div",12),N(10,dJ,1,1,null,13),oe(11),p(),N(12,uJ,3,0,"div",14),N(13,mJ,3,0,"div",15),p(),N(14,hJ,1,0,"div",16),p(),h(15,"div",17),N(16,pJ,2,0,"div",18)(17,gJ,5,1,"div",19),p()}if(i&2){let o;g(2),G("mdc-text-field--filled",!r._hasOutline())("mdc-text-field--outlined",r._hasOutline())("mdc-text-field--no-label",!r._hasFloatingLabel())("mdc-text-field--disabled",r._control.disabled)("mdc-text-field--invalid",r._control.errorState),g(2),L(!r._hasOutline()&&!r._control.disabled?4:-1),g(2),L(r._hasOutline()?6:-1),g(),L(r._hasIconPrefix?7:-1),g(),L(r._hasTextPrefix?8:-1),g(2),L(!r._hasOutline()||r._forceDisplayInfixLabel()?10:-1),g(2),L(r._hasTextSuffix?12:-1),g(),L(r._hasIconSuffix?13:-1),g(),L(r._hasOutline()?-1:14),g(),G("mat-mdc-form-field-subscript-dynamic-size",r.subscriptSizing==="dynamic");let a=r._getSubscriptMessageType();g(),L((o=a)==="error"?16:o==="hint"?17:-1)}},dependencies:[GV,QV,Fn,YV,eg],styles:[`.mdc-text-field{display:inline-flex;align-items:baseline;padding:0 16px;position:relative;box-sizing:border-box;overflow:hidden;will-change:opacity,transform,color;border-top-left-radius:4px;border-top-right-radius:4px;border-bottom-right-radius:0;border-bottom-left-radius:0}.mdc-text-field__input{width:100%;min-width:0;border:none;border-radius:0;background:none;padding:0;-moz-appearance:none;-webkit-appearance:none;height:28px}.mdc-text-field__input::-webkit-calendar-picker-indicator,.mdc-text-field__input::-webkit-search-cancel-button{display:none}.mdc-text-field__input::-ms-clear{display:none}.mdc-text-field__input:focus{outline:none}.mdc-text-field__input:invalid{box-shadow:none}.mdc-text-field__input::placeholder{opacity:0}.mdc-text-field__input::-moz-placeholder{opacity:0}.mdc-text-field__input::-webkit-input-placeholder{opacity:0}.mdc-text-field__input:-ms-input-placeholder{opacity:0}.mdc-text-field--no-label .mdc-text-field__input::placeholder,.mdc-text-field--focused .mdc-text-field__input::placeholder{opacity:1}.mdc-text-field--no-label .mdc-text-field__input::-moz-placeholder,.mdc-text-field--focused .mdc-text-field__input::-moz-placeholder{opacity:1}.mdc-text-field--no-label .mdc-text-field__input::-webkit-input-placeholder,.mdc-text-field--focused .mdc-text-field__input::-webkit-input-placeholder{opacity:1}.mdc-text-field--no-label .mdc-text-field__input:-ms-input-placeholder,.mdc-text-field--focused .mdc-text-field__input:-ms-input-placeholder{opacity:1}.mdc-text-field--disabled:not(.mdc-text-field--no-label) .mdc-text-field__input.mat-mdc-input-disabled-interactive::placeholder{opacity:0}.mdc-text-field--disabled:not(.mdc-text-field--no-label) .mdc-text-field__input.mat-mdc-input-disabled-interactive::-moz-placeholder{opacity:0}.mdc-text-field--disabled:not(.mdc-text-field--no-label) .mdc-text-field__input.mat-mdc-input-disabled-interactive::-webkit-input-placeholder{opacity:0}.mdc-text-field--disabled:not(.mdc-text-field--no-label) .mdc-text-field__input.mat-mdc-input-disabled-interactive:-ms-input-placeholder{opacity:0}.mdc-text-field--outlined .mdc-text-field__input,.mdc-text-field--filled.mdc-text-field--no-label .mdc-text-field__input{height:100%}.mdc-text-field--outlined .mdc-text-field__input{display:flex;border:none !important;background-color:rgba(0,0,0,0)}.mdc-text-field--disabled .mdc-text-field__input{pointer-events:auto}.mdc-text-field--filled:not(.mdc-text-field--disabled) .mdc-text-field__input{color:var(--mat-form-field-filled-input-text-color, var(--mat-sys-on-surface));caret-color:var(--mat-form-field-filled-caret-color, var(--mat-sys-primary))}.mdc-text-field--filled:not(.mdc-text-field--disabled) .mdc-text-field__input::placeholder{color:var(--mat-form-field-filled-input-text-placeholder-color, var(--mat-sys-on-surface-variant))}.mdc-text-field--filled:not(.mdc-text-field--disabled) .mdc-text-field__input::-moz-placeholder{color:var(--mat-form-field-filled-input-text-placeholder-color, var(--mat-sys-on-surface-variant))}.mdc-text-field--filled:not(.mdc-text-field--disabled) .mdc-text-field__input::-webkit-input-placeholder{color:var(--mat-form-field-filled-input-text-placeholder-color, var(--mat-sys-on-surface-variant))}.mdc-text-field--filled:not(.mdc-text-field--disabled) .mdc-text-field__input:-ms-input-placeholder{color:var(--mat-form-field-filled-input-text-placeholder-color, var(--mat-sys-on-surface-variant))}.mdc-text-field--outlined:not(.mdc-text-field--disabled) .mdc-text-field__input{color:var(--mat-form-field-outlined-input-text-color, var(--mat-sys-on-surface));caret-color:var(--mat-form-field-outlined-caret-color, var(--mat-sys-primary))}.mdc-text-field--outlined:not(.mdc-text-field--disabled) .mdc-text-field__input::placeholder{color:var(--mat-form-field-outlined-input-text-placeholder-color, var(--mat-sys-on-surface-variant))}.mdc-text-field--outlined:not(.mdc-text-field--disabled) .mdc-text-field__input::-moz-placeholder{color:var(--mat-form-field-outlined-input-text-placeholder-color, var(--mat-sys-on-surface-variant))}.mdc-text-field--outlined:not(.mdc-text-field--disabled) .mdc-text-field__input::-webkit-input-placeholder{color:var(--mat-form-field-outlined-input-text-placeholder-color, var(--mat-sys-on-surface-variant))}.mdc-text-field--outlined:not(.mdc-text-field--disabled) .mdc-text-field__input:-ms-input-placeholder{color:var(--mat-form-field-outlined-input-text-placeholder-color, var(--mat-sys-on-surface-variant))}.mdc-text-field--filled.mdc-text-field--invalid:not(.mdc-text-field--disabled) .mdc-text-field__input{caret-color:var(--mat-form-field-filled-error-caret-color, var(--mat-sys-error))}.mdc-text-field--outlined.mdc-text-field--invalid:not(.mdc-text-field--disabled) .mdc-text-field__input{caret-color:var(--mat-form-field-outlined-error-caret-color, var(--mat-sys-error))}.mdc-text-field--filled.mdc-text-field--disabled .mdc-text-field__input{color:var(--mat-form-field-filled-disabled-input-text-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent))}.mdc-text-field--outlined.mdc-text-field--disabled .mdc-text-field__input{color:var(--mat-form-field-outlined-disabled-input-text-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent))}@media(forced-colors: active){.mdc-text-field--disabled .mdc-text-field__input{background-color:Window}}.mdc-text-field--filled{height:56px;border-bottom-right-radius:0;border-bottom-left-radius:0;border-top-left-radius:var(--mat-form-field-filled-container-shape, var(--mat-sys-corner-extra-small));border-top-right-radius:var(--mat-form-field-filled-container-shape, var(--mat-sys-corner-extra-small))}.mdc-text-field--filled:not(.mdc-text-field--disabled){background-color:var(--mat-form-field-filled-container-color, var(--mat-sys-surface-variant))}.mdc-text-field--filled.mdc-text-field--disabled{background-color:var(--mat-form-field-filled-disabled-container-color, color-mix(in srgb, var(--mat-sys-on-surface) 4%, transparent))}.mdc-text-field--outlined{height:56px;overflow:visible;padding-right:max(16px,var(--mat-form-field-outlined-container-shape, var(--mat-sys-corner-extra-small)));padding-left:max(16px,var(--mat-form-field-outlined-container-shape, var(--mat-sys-corner-extra-small)) + 4px)}[dir=rtl] .mdc-text-field--outlined{padding-right:max(16px,var(--mat-form-field-outlined-container-shape, var(--mat-sys-corner-extra-small)) + 4px);padding-left:max(16px,var(--mat-form-field-outlined-container-shape, var(--mat-sys-corner-extra-small)))}.mdc-floating-label{position:absolute;left:0;transform-origin:left top;line-height:1.15rem;text-align:left;text-overflow:ellipsis;white-space:nowrap;cursor:text;overflow:hidden;will-change:transform}[dir=rtl] .mdc-floating-label{right:0;left:auto;transform-origin:right top;text-align:right}.mdc-text-field .mdc-floating-label{top:50%;transform:translateY(-50%);pointer-events:none}.mdc-notched-outline .mdc-floating-label{display:inline-block;position:relative;max-width:100%}.mdc-text-field--outlined .mdc-floating-label{left:4px;right:auto}[dir=rtl] .mdc-text-field--outlined .mdc-floating-label{left:auto;right:4px}.mdc-text-field--filled .mdc-floating-label{left:16px;right:auto}[dir=rtl] .mdc-text-field--filled .mdc-floating-label{left:auto;right:16px}.mdc-text-field--disabled .mdc-floating-label{cursor:default}@media(forced-colors: active){.mdc-text-field--disabled .mdc-floating-label{z-index:1}}.mdc-text-field--filled.mdc-text-field--no-label .mdc-floating-label{display:none}.mdc-text-field--filled:not(.mdc-text-field--disabled) .mdc-floating-label{color:var(--mat-form-field-filled-label-text-color, var(--mat-sys-on-surface-variant))}.mdc-text-field--filled:not(.mdc-text-field--disabled).mdc-text-field--focused .mdc-floating-label{color:var(--mat-form-field-filled-focus-label-text-color, var(--mat-sys-primary))}.mdc-text-field--filled:not(.mdc-text-field--disabled):not(.mdc-text-field--focused):hover .mdc-floating-label{color:var(--mat-form-field-filled-hover-label-text-color, var(--mat-sys-on-surface-variant))}.mdc-text-field--filled.mdc-text-field--disabled .mdc-floating-label{color:var(--mat-form-field-filled-disabled-label-text-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent))}.mdc-text-field--filled:not(.mdc-text-field--disabled).mdc-text-field--invalid .mdc-floating-label{color:var(--mat-form-field-filled-error-label-text-color, var(--mat-sys-error))}.mdc-text-field--filled:not(.mdc-text-field--disabled).mdc-text-field--invalid.mdc-text-field--focused .mdc-floating-label{color:var(--mat-form-field-filled-error-focus-label-text-color, var(--mat-sys-error))}.mdc-text-field--filled:not(.mdc-text-field--disabled).mdc-text-field--invalid:not(.mdc-text-field--disabled):hover .mdc-floating-label{color:var(--mat-form-field-filled-error-hover-label-text-color, var(--mat-sys-on-error-container))}.mdc-text-field--filled .mdc-floating-label{font-family:var(--mat-form-field-filled-label-text-font, var(--mat-sys-body-large-font));font-size:var(--mat-form-field-filled-label-text-size, var(--mat-sys-body-large-size));font-weight:var(--mat-form-field-filled-label-text-weight, var(--mat-sys-body-large-weight));letter-spacing:var(--mat-form-field-filled-label-text-tracking, var(--mat-sys-body-large-tracking))}.mdc-text-field--outlined:not(.mdc-text-field--disabled) .mdc-floating-label{color:var(--mat-form-field-outlined-label-text-color, var(--mat-sys-on-surface-variant))}.mdc-text-field--outlined:not(.mdc-text-field--disabled).mdc-text-field--focused .mdc-floating-label{color:var(--mat-form-field-outlined-focus-label-text-color, var(--mat-sys-primary))}.mdc-text-field--outlined:not(.mdc-text-field--disabled):not(.mdc-text-field--focused):hover .mdc-floating-label{color:var(--mat-form-field-outlined-hover-label-text-color, var(--mat-sys-on-surface))}.mdc-text-field--outlined.mdc-text-field--disabled .mdc-floating-label{color:var(--mat-form-field-outlined-disabled-label-text-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent))}.mdc-text-field--outlined:not(.mdc-text-field--disabled).mdc-text-field--invalid .mdc-floating-label{color:var(--mat-form-field-outlined-error-label-text-color, var(--mat-sys-error))}.mdc-text-field--outlined:not(.mdc-text-field--disabled).mdc-text-field--invalid.mdc-text-field--focused .mdc-floating-label{color:var(--mat-form-field-outlined-error-focus-label-text-color, var(--mat-sys-error))}.mdc-text-field--outlined:not(.mdc-text-field--disabled).mdc-text-field--invalid:not(.mdc-text-field--disabled):hover .mdc-floating-label{color:var(--mat-form-field-outlined-error-hover-label-text-color, var(--mat-sys-on-error-container))}.mdc-text-field--outlined .mdc-floating-label{font-family:var(--mat-form-field-outlined-label-text-font, var(--mat-sys-body-large-font));font-size:var(--mat-form-field-outlined-label-text-size, var(--mat-sys-body-large-size));font-weight:var(--mat-form-field-outlined-label-text-weight, var(--mat-sys-body-large-weight));letter-spacing:var(--mat-form-field-outlined-label-text-tracking, var(--mat-sys-body-large-tracking))}.mdc-floating-label--float-above{cursor:auto;transform:translateY(-106%) scale(0.75)}.mdc-text-field--filled .mdc-floating-label--float-above{transform:translateY(-106%) scale(0.75)}.mdc-text-field--outlined .mdc-floating-label--float-above{transform:translateY(-37.25px) scale(1);font-size:.75rem}.mdc-notched-outline .mdc-floating-label--float-above{text-overflow:clip}.mdc-notched-outline--upgraded .mdc-floating-label--float-above{max-width:133.3333333333%}.mdc-text-field--outlined.mdc-notched-outline--upgraded .mdc-floating-label--float-above,.mdc-text-field--outlined .mdc-notched-outline--upgraded .mdc-floating-label--float-above{transform:translateY(-34.75px) scale(0.75)}.mdc-text-field--outlined.mdc-notched-outline--upgraded .mdc-floating-label--float-above,.mdc-text-field--outlined .mdc-notched-outline--upgraded .mdc-floating-label--float-above{font-size:1rem}.mdc-floating-label--required:not(.mdc-floating-label--hide-required-marker)::after{margin-left:1px;margin-right:0;content:"*"}[dir=rtl] .mdc-floating-label--required:not(.mdc-floating-label--hide-required-marker)::after{margin-left:0;margin-right:1px}.mdc-notched-outline{display:flex;position:absolute;top:0;right:0;left:0;box-sizing:border-box;width:100%;max-width:100%;height:100%;text-align:left;pointer-events:none}[dir=rtl] .mdc-notched-outline{text-align:right}.mdc-text-field--outlined .mdc-notched-outline{z-index:1}.mat-mdc-notch-piece{box-sizing:border-box;height:100%;pointer-events:none;border-top:1px solid;border-bottom:1px solid}.mdc-text-field--focused .mat-mdc-notch-piece{border-width:2px}.mdc-text-field--outlined:not(.mdc-text-field--disabled) .mat-mdc-notch-piece{border-color:var(--mat-form-field-outlined-outline-color, var(--mat-sys-outline));border-width:var(--mat-form-field-outlined-outline-width, 1px)}.mdc-text-field--outlined:not(.mdc-text-field--disabled):not(.mdc-text-field--focused):hover .mat-mdc-notch-piece{border-color:var(--mat-form-field-outlined-hover-outline-color, var(--mat-sys-on-surface))}.mdc-text-field--outlined:not(.mdc-text-field--disabled).mdc-text-field--focused .mat-mdc-notch-piece{border-color:var(--mat-form-field-outlined-focus-outline-color, var(--mat-sys-primary))}.mdc-text-field--outlined.mdc-text-field--disabled .mat-mdc-notch-piece{border-color:var(--mat-form-field-outlined-disabled-outline-color, color-mix(in srgb, var(--mat-sys-on-surface) 12%, transparent))}.mdc-text-field--outlined:not(.mdc-text-field--disabled).mdc-text-field--invalid .mat-mdc-notch-piece{border-color:var(--mat-form-field-outlined-error-outline-color, var(--mat-sys-error))}.mdc-text-field--outlined:not(.mdc-text-field--disabled).mdc-text-field--invalid:not(.mdc-text-field--focused):hover .mdc-notched-outline .mat-mdc-notch-piece{border-color:var(--mat-form-field-outlined-error-hover-outline-color, var(--mat-sys-on-error-container))}.mdc-text-field--outlined:not(.mdc-text-field--disabled).mdc-text-field--invalid.mdc-text-field--focused .mat-mdc-notch-piece{border-color:var(--mat-form-field-outlined-error-focus-outline-color, var(--mat-sys-error))}.mdc-text-field--outlined:not(.mdc-text-field--disabled).mdc-text-field--focused .mdc-notched-outline .mat-mdc-notch-piece{border-width:var(--mat-form-field-outlined-focus-outline-width, 2px)}.mdc-notched-outline__leading{border-left:1px solid;border-right:none;border-top-right-radius:0;border-bottom-right-radius:0;border-top-left-radius:var(--mat-form-field-outlined-container-shape, var(--mat-sys-corner-extra-small));border-bottom-left-radius:var(--mat-form-field-outlined-container-shape, var(--mat-sys-corner-extra-small))}.mdc-text-field--outlined .mdc-notched-outline .mdc-notched-outline__leading{width:max(12px,var(--mat-form-field-outlined-container-shape, var(--mat-sys-corner-extra-small)))}[dir=rtl] .mdc-notched-outline__leading{border-left:none;border-right:1px solid;border-bottom-left-radius:0;border-top-left-radius:0;border-top-right-radius:var(--mat-form-field-outlined-container-shape, var(--mat-sys-corner-extra-small));border-bottom-right-radius:var(--mat-form-field-outlined-container-shape, var(--mat-sys-corner-extra-small))}.mdc-notched-outline__trailing{flex-grow:1;border-left:none;border-right:1px solid;border-top-left-radius:0;border-bottom-left-radius:0;border-top-right-radius:var(--mat-form-field-outlined-container-shape, var(--mat-sys-corner-extra-small));border-bottom-right-radius:var(--mat-form-field-outlined-container-shape, var(--mat-sys-corner-extra-small))}[dir=rtl] .mdc-notched-outline__trailing{border-left:1px solid;border-right:none;border-top-right-radius:0;border-bottom-right-radius:0;border-top-left-radius:var(--mat-form-field-outlined-container-shape, var(--mat-sys-corner-extra-small));border-bottom-left-radius:var(--mat-form-field-outlined-container-shape, var(--mat-sys-corner-extra-small))}.mdc-notched-outline__notch{flex:0 0 auto;width:auto}.mdc-text-field--outlined .mdc-notched-outline .mdc-notched-outline__notch{max-width:min(var(--mat-form-field-notch-max-width, 100%),calc(100% - max(12px, var(--mat-form-field-outlined-container-shape, var(--mat-sys-corner-extra-small))) * 2))}.mdc-text-field--outlined .mdc-notched-outline--notched .mdc-notched-outline__notch{max-width:min(100%,calc(100% - max(12px, var(--mat-form-field-outlined-container-shape, var(--mat-sys-corner-extra-small))) * 2))}.mdc-text-field--outlined .mdc-notched-outline--notched .mdc-notched-outline__notch{padding-top:1px}.mdc-text-field--focused.mdc-text-field--outlined .mdc-notched-outline--notched .mdc-notched-outline__notch{padding-top:2px}.mdc-notched-outline--notched .mdc-notched-outline__notch{padding-left:0;padding-right:8px;border-top:none}[dir=rtl] .mdc-notched-outline--notched .mdc-notched-outline__notch{padding-left:8px;padding-right:0}.mdc-notched-outline--no-label .mdc-notched-outline__notch{display:none}.mdc-line-ripple::before,.mdc-line-ripple::after{position:absolute;bottom:0;left:0;width:100%;border-bottom-style:solid;content:""}.mdc-line-ripple::before{z-index:1;border-bottom-width:var(--mat-form-field-filled-active-indicator-height, 1px)}.mdc-text-field--filled:not(.mdc-text-field--disabled) .mdc-line-ripple::before{border-bottom-color:var(--mat-form-field-filled-active-indicator-color, var(--mat-sys-on-surface-variant))}.mdc-text-field--filled:not(.mdc-text-field--disabled):not(.mdc-text-field--focused):hover .mdc-line-ripple::before{border-bottom-color:var(--mat-form-field-filled-hover-active-indicator-color, var(--mat-sys-on-surface))}.mdc-text-field--filled.mdc-text-field--disabled .mdc-line-ripple::before{border-bottom-color:var(--mat-form-field-filled-disabled-active-indicator-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent))}.mdc-text-field--filled:not(.mdc-text-field--disabled).mdc-text-field--invalid .mdc-line-ripple::before{border-bottom-color:var(--mat-form-field-filled-error-active-indicator-color, var(--mat-sys-error))}.mdc-text-field--filled:not(.mdc-text-field--disabled).mdc-text-field--invalid:not(.mdc-text-field--focused):hover .mdc-line-ripple::before{border-bottom-color:var(--mat-form-field-filled-error-hover-active-indicator-color, var(--mat-sys-on-error-container))}.mdc-line-ripple::after{transform:scaleX(0);opacity:0;z-index:2}.mdc-text-field--filled .mdc-line-ripple::after{border-bottom-width:var(--mat-form-field-filled-focus-active-indicator-height, 2px)}.mdc-text-field--filled:not(.mdc-text-field--disabled) .mdc-line-ripple::after{border-bottom-color:var(--mat-form-field-filled-focus-active-indicator-color, var(--mat-sys-primary))}.mdc-text-field--filled.mdc-text-field--invalid:not(.mdc-text-field--disabled) .mdc-line-ripple::after{border-bottom-color:var(--mat-form-field-filled-error-focus-active-indicator-color, var(--mat-sys-error))}.mdc-line-ripple--active::after{transform:scaleX(1);opacity:1}.mdc-line-ripple--deactivating::after{opacity:0}.mdc-text-field--disabled{pointer-events:none}.mat-mdc-form-field-textarea-control{vertical-align:middle;resize:vertical;box-sizing:border-box;height:auto;margin:0;padding:0;border:none;overflow:auto}.mat-mdc-form-field-input-control.mat-mdc-form-field-input-control{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;font:inherit;letter-spacing:inherit;text-decoration:inherit;text-transform:inherit;border:none}.mat-mdc-form-field .mat-mdc-floating-label.mdc-floating-label{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;line-height:normal;pointer-events:all;will-change:auto}.mat-mdc-form-field:not(.mat-form-field-disabled) .mat-mdc-floating-label.mdc-floating-label{cursor:inherit}.mdc-text-field--no-label:not(.mdc-text-field--textarea) .mat-mdc-form-field-input-control.mdc-text-field__input,.mat-mdc-text-field-wrapper .mat-mdc-form-field-input-control{height:auto}.mat-mdc-text-field-wrapper .mat-mdc-form-field-input-control.mdc-text-field__input[type=color]{height:23px}.mat-mdc-text-field-wrapper{height:auto;flex:auto;will-change:auto}.mat-mdc-form-field-has-icon-prefix .mat-mdc-text-field-wrapper{padding-left:0;--mat-mdc-form-field-label-offset-x: -16px}.mat-mdc-form-field-has-icon-suffix .mat-mdc-text-field-wrapper{padding-right:0}[dir=rtl] .mat-mdc-text-field-wrapper{padding-left:16px;padding-right:16px}[dir=rtl] .mat-mdc-form-field-has-icon-suffix .mat-mdc-text-field-wrapper{padding-left:0}[dir=rtl] .mat-mdc-form-field-has-icon-prefix .mat-mdc-text-field-wrapper{padding-right:0}.mat-form-field-disabled .mdc-text-field__input::placeholder{color:var(--mat-form-field-disabled-input-text-placeholder-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent))}.mat-form-field-disabled .mdc-text-field__input::-moz-placeholder{color:var(--mat-form-field-disabled-input-text-placeholder-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent))}.mat-form-field-disabled .mdc-text-field__input::-webkit-input-placeholder{color:var(--mat-form-field-disabled-input-text-placeholder-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent))}.mat-form-field-disabled .mdc-text-field__input:-ms-input-placeholder{color:var(--mat-form-field-disabled-input-text-placeholder-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent))}.mat-mdc-form-field-label-always-float .mdc-text-field__input::placeholder{transition-delay:40ms;transition-duration:110ms;opacity:1}.mat-mdc-text-field-wrapper .mat-mdc-form-field-infix .mat-mdc-floating-label{left:auto;right:auto}.mat-mdc-text-field-wrapper.mdc-text-field--outlined .mdc-text-field__input{display:inline-block}.mat-mdc-form-field .mat-mdc-text-field-wrapper.mdc-text-field .mdc-notched-outline__notch{padding-top:0}.mat-mdc-form-field.mat-mdc-form-field.mat-mdc-form-field.mat-mdc-form-field.mat-mdc-form-field.mat-mdc-form-field .mdc-notched-outline__notch{border-left:1px solid rgba(0,0,0,0)}[dir=rtl] .mat-mdc-form-field.mat-mdc-form-field.mat-mdc-form-field.mat-mdc-form-field.mat-mdc-form-field.mat-mdc-form-field .mdc-notched-outline__notch{border-left:none;border-right:1px solid rgba(0,0,0,0)}.mat-mdc-form-field-infix{min-height:var(--mat-form-field-container-height, 56px);padding-top:var(--mat-form-field-filled-with-label-container-padding-top, 24px);padding-bottom:var(--mat-form-field-filled-with-label-container-padding-bottom, 8px)}.mdc-text-field--outlined .mat-mdc-form-field-infix,.mdc-text-field--no-label .mat-mdc-form-field-infix{padding-top:var(--mat-form-field-container-vertical-padding, 16px);padding-bottom:var(--mat-form-field-container-vertical-padding, 16px)}.mat-mdc-text-field-wrapper .mat-mdc-form-field-flex .mat-mdc-floating-label{top:calc(var(--mat-form-field-container-height, 56px)/2)}.mdc-text-field--filled .mat-mdc-floating-label{display:var(--mat-form-field-filled-label-display, block)}.mat-mdc-text-field-wrapper.mdc-text-field--outlined .mdc-notched-outline--upgraded .mdc-floating-label--float-above{--mat-mdc-form-field-label-transform: translateY(calc(calc(6.75px + var(--mat-form-field-container-height, 56px) / 2) * -1)) scale(var(--mat-mdc-form-field-floating-label-scale, 0.75));transform:var(--mat-mdc-form-field-label-transform)}@keyframes _mat-form-field-subscript-animation{from{opacity:0;transform:translateY(-5px)}to{opacity:1;transform:translateY(0)}}.mat-mdc-form-field-subscript-wrapper{box-sizing:border-box;width:100%;position:relative}.mat-mdc-form-field-hint-wrapper,.mat-mdc-form-field-error-wrapper{position:absolute;top:0;left:0;right:0;padding:0 16px;opacity:1;transform:translateY(0);animation:_mat-form-field-subscript-animation 0ms cubic-bezier(0.55, 0, 0.55, 0.2)}.mat-mdc-form-field-subscript-dynamic-size .mat-mdc-form-field-hint-wrapper,.mat-mdc-form-field-subscript-dynamic-size .mat-mdc-form-field-error-wrapper{position:static}.mat-mdc-form-field-bottom-align::before{content:"";display:inline-block;height:16px}.mat-mdc-form-field-bottom-align.mat-mdc-form-field-subscript-dynamic-size::before{content:unset}.mat-mdc-form-field-hint-end{order:1}.mat-mdc-form-field-hint-wrapper{display:flex}.mat-mdc-form-field-hint-spacer{flex:1 0 1em}.mat-mdc-form-field-error{display:block;color:var(--mat-form-field-error-text-color, var(--mat-sys-error))}.mat-mdc-form-field-subscript-wrapper,.mat-mdc-form-field-bottom-align::before{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;font-family:var(--mat-form-field-subscript-text-font, var(--mat-sys-body-small-font));line-height:var(--mat-form-field-subscript-text-line-height, var(--mat-sys-body-small-line-height));font-size:var(--mat-form-field-subscript-text-size, var(--mat-sys-body-small-size));letter-spacing:var(--mat-form-field-subscript-text-tracking, var(--mat-sys-body-small-tracking));font-weight:var(--mat-form-field-subscript-text-weight, var(--mat-sys-body-small-weight))}.mat-mdc-form-field-focus-overlay{top:0;left:0;right:0;bottom:0;position:absolute;opacity:0;pointer-events:none;background-color:var(--mat-form-field-state-layer-color, var(--mat-sys-on-surface))}.mat-mdc-text-field-wrapper:hover .mat-mdc-form-field-focus-overlay{opacity:var(--mat-form-field-hover-state-layer-opacity, var(--mat-sys-hover-state-layer-opacity))}.mat-mdc-form-field.mat-focused .mat-mdc-form-field-focus-overlay{opacity:var(--mat-form-field-focus-state-layer-opacity, 0)}select.mat-mdc-form-field-input-control{-moz-appearance:none;-webkit-appearance:none;background-color:rgba(0,0,0,0);display:inline-flex;box-sizing:border-box}select.mat-mdc-form-field-input-control:not(:disabled){cursor:pointer}select.mat-mdc-form-field-input-control:not(.mat-mdc-native-select-inline) option{color:var(--mat-form-field-select-option-text-color, var(--mat-sys-neutral10))}select.mat-mdc-form-field-input-control:not(.mat-mdc-native-select-inline) option:disabled{color:var(--mat-form-field-select-disabled-option-text-color, color-mix(in srgb, var(--mat-sys-neutral10) 38%, transparent))}.mat-mdc-form-field-type-mat-native-select .mat-mdc-form-field-infix::after{content:"";width:0;height:0;border-left:5px solid rgba(0,0,0,0);border-right:5px solid rgba(0,0,0,0);border-top:5px solid;position:absolute;right:0;top:50%;margin-top:-2.5px;pointer-events:none;color:var(--mat-form-field-enabled-select-arrow-color, var(--mat-sys-on-surface-variant))}[dir=rtl] .mat-mdc-form-field-type-mat-native-select .mat-mdc-form-field-infix::after{right:auto;left:0}.mat-mdc-form-field-type-mat-native-select.mat-focused .mat-mdc-form-field-infix::after{color:var(--mat-form-field-focus-select-arrow-color, var(--mat-sys-primary))}.mat-mdc-form-field-type-mat-native-select.mat-form-field-disabled .mat-mdc-form-field-infix::after{color:var(--mat-form-field-disabled-select-arrow-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent))}.mat-mdc-form-field-type-mat-native-select .mat-mdc-form-field-input-control{padding-right:15px}[dir=rtl] .mat-mdc-form-field-type-mat-native-select .mat-mdc-form-field-input-control{padding-right:0;padding-left:15px}@media(forced-colors: active){.mat-form-field-appearance-fill .mat-mdc-text-field-wrapper{outline:solid 1px}}@media(forced-colors: active){.mat-form-field-appearance-fill.mat-form-field-disabled .mat-mdc-text-field-wrapper{outline-color:GrayText}}@media(forced-colors: active){.mat-form-field-appearance-fill.mat-focused .mat-mdc-text-field-wrapper{outline:dashed 3px}}@media(forced-colors: active){.mat-mdc-form-field.mat-focused .mdc-notched-outline{border:dashed 3px}}.mat-mdc-form-field-input-control[type=date],.mat-mdc-form-field-input-control[type=datetime],.mat-mdc-form-field-input-control[type=datetime-local],.mat-mdc-form-field-input-control[type=month],.mat-mdc-form-field-input-control[type=week],.mat-mdc-form-field-input-control[type=time]{line-height:1}.mat-mdc-form-field-input-control::-webkit-datetime-edit{line-height:1;padding:0;margin-bottom:-2px}.mat-mdc-form-field{--mat-mdc-form-field-floating-label-scale: 0.75;display:inline-flex;flex-direction:column;min-width:0;text-align:left;-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;font-family:var(--mat-form-field-container-text-font, var(--mat-sys-body-large-font));line-height:var(--mat-form-field-container-text-line-height, var(--mat-sys-body-large-line-height));font-size:var(--mat-form-field-container-text-size, var(--mat-sys-body-large-size));letter-spacing:var(--mat-form-field-container-text-tracking, var(--mat-sys-body-large-tracking));font-weight:var(--mat-form-field-container-text-weight, var(--mat-sys-body-large-weight))}.mat-mdc-form-field .mdc-text-field--outlined .mdc-floating-label--float-above{font-size:calc(var(--mat-form-field-outlined-label-text-populated-size)*var(--mat-mdc-form-field-floating-label-scale))}.mat-mdc-form-field .mdc-text-field--outlined .mdc-notched-outline--upgraded .mdc-floating-label--float-above{font-size:var(--mat-form-field-outlined-label-text-populated-size)}[dir=rtl] .mat-mdc-form-field{text-align:right}.mat-mdc-form-field-flex{display:inline-flex;align-items:baseline;box-sizing:border-box;width:100%}.mat-mdc-text-field-wrapper{width:100%;z-index:0}.mat-mdc-form-field-icon-prefix,.mat-mdc-form-field-icon-suffix{align-self:center;line-height:0;pointer-events:auto;position:relative;z-index:1}.mat-mdc-form-field-icon-prefix>.mat-icon,.mat-mdc-form-field-icon-suffix>.mat-icon{padding:0 12px;box-sizing:content-box}.mat-mdc-form-field-icon-prefix{color:var(--mat-form-field-leading-icon-color, var(--mat-sys-on-surface-variant))}.mat-form-field-disabled .mat-mdc-form-field-icon-prefix{color:var(--mat-form-field-disabled-leading-icon-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent))}.mat-mdc-form-field-icon-suffix{color:var(--mat-form-field-trailing-icon-color, var(--mat-sys-on-surface-variant))}.mat-form-field-disabled .mat-mdc-form-field-icon-suffix{color:var(--mat-form-field-disabled-trailing-icon-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent))}.mat-form-field-invalid .mat-mdc-form-field-icon-suffix{color:var(--mat-form-field-error-trailing-icon-color, var(--mat-sys-error))}.mat-form-field-invalid:not(.mat-focused):not(.mat-form-field-disabled) .mat-mdc-text-field-wrapper:hover .mat-mdc-form-field-icon-suffix{color:var(--mat-form-field-error-hover-trailing-icon-color, var(--mat-sys-on-error-container))}.mat-form-field-invalid.mat-focused .mat-mdc-text-field-wrapper .mat-mdc-form-field-icon-suffix{color:var(--mat-form-field-error-focus-trailing-icon-color, var(--mat-sys-error))}.mat-mdc-form-field-icon-prefix,[dir=rtl] .mat-mdc-form-field-icon-suffix{padding:0 4px 0 0}.mat-mdc-form-field-icon-suffix,[dir=rtl] .mat-mdc-form-field-icon-prefix{padding:0 0 0 4px}.mat-mdc-form-field-subscript-wrapper .mat-icon,.mat-mdc-form-field label .mat-icon{width:1em;height:1em;font-size:inherit}.mat-mdc-form-field-infix{flex:auto;min-width:0;width:180px;position:relative;box-sizing:border-box}.mat-mdc-form-field-infix:has(textarea[cols]){width:auto}.mat-mdc-form-field .mdc-notched-outline__notch{margin-left:-1px;-webkit-clip-path:inset(-9em -999em -9em 1px);clip-path:inset(-9em -999em -9em 1px)}[dir=rtl] .mat-mdc-form-field .mdc-notched-outline__notch{margin-left:0;margin-right:-1px;-webkit-clip-path:inset(-9em 1px -9em -999em);clip-path:inset(-9em 1px -9em -999em)}.mat-mdc-form-field.mat-form-field-animations-enabled .mdc-floating-label{transition:transform 150ms cubic-bezier(0.4, 0, 0.2, 1),color 150ms cubic-bezier(0.4, 0, 0.2, 1)}.mat-mdc-form-field.mat-form-field-animations-enabled .mdc-text-field__input{transition:opacity 150ms cubic-bezier(0.4, 0, 0.2, 1)}.mat-mdc-form-field.mat-form-field-animations-enabled .mdc-text-field__input::placeholder{transition:opacity 67ms cubic-bezier(0.4, 0, 0.2, 1)}.mat-mdc-form-field.mat-form-field-animations-enabled .mdc-text-field__input::-moz-placeholder{transition:opacity 67ms cubic-bezier(0.4, 0, 0.2, 1)}.mat-mdc-form-field.mat-form-field-animations-enabled .mdc-text-field__input::-webkit-input-placeholder{transition:opacity 67ms cubic-bezier(0.4, 0, 0.2, 1)}.mat-mdc-form-field.mat-form-field-animations-enabled .mdc-text-field__input:-ms-input-placeholder{transition:opacity 67ms cubic-bezier(0.4, 0, 0.2, 1)}.mat-mdc-form-field.mat-form-field-animations-enabled.mdc-text-field--no-label .mdc-text-field__input::placeholder,.mat-mdc-form-field.mat-form-field-animations-enabled.mdc-text-field--focused .mdc-text-field__input::placeholder{transition-delay:40ms;transition-duration:110ms}.mat-mdc-form-field.mat-form-field-animations-enabled.mdc-text-field--no-label .mdc-text-field__input::-moz-placeholder,.mat-mdc-form-field.mat-form-field-animations-enabled.mdc-text-field--focused .mdc-text-field__input::-moz-placeholder{transition-delay:40ms;transition-duration:110ms}.mat-mdc-form-field.mat-form-field-animations-enabled.mdc-text-field--no-label .mdc-text-field__input::-webkit-input-placeholder,.mat-mdc-form-field.mat-form-field-animations-enabled.mdc-text-field--focused .mdc-text-field__input::-webkit-input-placeholder{transition-delay:40ms;transition-duration:110ms}.mat-mdc-form-field.mat-form-field-animations-enabled.mdc-text-field--no-label .mdc-text-field__input:-ms-input-placeholder,.mat-mdc-form-field.mat-form-field-animations-enabled.mdc-text-field--focused .mdc-text-field__input:-ms-input-placeholder{transition-delay:40ms;transition-duration:110ms}.mat-mdc-form-field.mat-form-field-animations-enabled .mdc-text-field--filled:not(.mdc-ripple-upgraded):focus .mdc-text-field__ripple::before{transition-duration:75ms}.mat-mdc-form-field.mat-form-field-animations-enabled .mdc-line-ripple::after{transition:transform 180ms cubic-bezier(0.4, 0, 0.2, 1),opacity 180ms cubic-bezier(0.4, 0, 0.2, 1)}.mat-mdc-form-field.mat-form-field-animations-enabled .mat-mdc-form-field-hint-wrapper,.mat-mdc-form-field.mat-form-field-animations-enabled .mat-mdc-form-field-error-wrapper{animation-duration:300ms}.mdc-notched-outline .mdc-floating-label{max-width:calc(100% + 1px)}.mdc-notched-outline--upgraded .mdc-floating-label--float-above{max-width:calc(133.3333333333% + 1px)} +`],encapsulation:2,changeDetection:0})}return t})();var tg=class{};function ig(t){return t&&typeof t.connect=="function"&&!(t instanceof Al)}var cc=(function(t){return t[t.REPLACED=0]="REPLACED",t[t.INSERTED=1]="INSERTED",t[t.MOVED=2]="MOVED",t[t.REMOVED=3]="REMOVED",t})(cc||{}),fh=new T("_ViewRepeater");var yJ=20,ws=(()=>{class t{_ngZone=u(ae);_platform=u(qe);_renderer=u(cn).createRenderer(null,null);_cleanupGlobalListener;constructor(){}_scrolled=new z;_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 i=this.scrollContainers.get(e);i&&(i.unsubscribe(),this.scrollContainers.delete(e))}scrolled(e=yJ){return this._platform.isBrowser?new Fe(i=>{this._cleanupGlobalListener||(this._cleanupGlobalListener=this._ngZone.runOutsideAngular(()=>this._renderer.listen("document","scroll",()=>this._scrolled.next())));let r=e>0?this._scrolled.pipe(Pl(e)).subscribe(i):this._scrolled.subscribe(i);return this._scrolledCount++,()=>{r.unsubscribe(),this._scrolledCount--,this._scrolledCount||(this._cleanupGlobalListener?.(),this._cleanupGlobalListener=void 0)}}):Q()}ngOnDestroy(){this._cleanupGlobalListener?.(),this._cleanupGlobalListener=void 0,this.scrollContainers.forEach((e,i)=>this.deregister(i)),this._scrolled.complete()}ancestorScrolled(e,i){let r=this.getAncestorScrollContainers(e);return this.scrolled(i).pipe(ce(o=>!o||r.indexOf(o)>-1))}getAncestorScrollContainers(e){let i=[];return this.scrollContainers.forEach((r,o)=>{this._scrollableContainsElement(o,e)&&i.push(o)}),i}_scrollableContainsElement(e,i){let r=Pr(i),o=e.getElementRef().nativeElement;do if(r==o)return!0;while(r=r.parentElement);return!1}static \u0275fac=function(i){return new(i||t)};static \u0275prov=O({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),Pa=(()=>{class t{elementRef=u(q);scrollDispatcher=u(ws);ngZone=u(ae);dir=u(Vt,{optional:!0});_scrollElement=this.elementRef.nativeElement;_destroyed=new z;_renderer=u(je);_cleanupScroll;_elementScrolled=new z;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 i=this.elementRef.nativeElement,r=this.dir&&this.dir.value=="rtl";e.left==null&&(e.left=r?e.end:e.start),e.right==null&&(e.right=r?e.start:e.end),e.bottom!=null&&(e.top=i.scrollHeight-i.clientHeight-e.bottom),r&&eh()!=Aa.NORMAL?(e.left!=null&&(e.right=i.scrollWidth-i.clientWidth-e.left),eh()==Aa.INVERTED?e.left=e.right:eh()==Aa.NEGATED&&(e.left=e.right?-e.right:e.right)):e.right!=null&&(e.left=i.scrollWidth-i.clientWidth-e.right),this._applyScrollToOptions(e)}_applyScrollToOptions(e){let i=this.elementRef.nativeElement;q0()?i.scrollTo(e):(e.top!=null&&(i.scrollTop=e.top),e.left!=null&&(i.scrollLeft=e.left))}measureScrollOffset(e){let i="left",r="right",o=this.elementRef.nativeElement;if(e=="top")return o.scrollTop;if(e=="bottom")return o.scrollHeight-o.clientHeight-o.scrollTop;let a=this.dir&&this.dir.value=="rtl";return e=="start"?e=a?r:i:e=="end"&&(e=a?i:r),a&&eh()==Aa.INVERTED?e==i?o.scrollWidth-o.clientWidth-o.scrollLeft:o.scrollLeft:a&&eh()==Aa.NEGATED?e==i?o.scrollLeft+o.scrollWidth-o.clientWidth:-o.scrollLeft:e==i?o.scrollLeft:o.scrollWidth-o.clientWidth-o.scrollLeft}static \u0275fac=function(i){return new(i||t)};static \u0275dir=F({type:t,selectors:[["","cdk-scrollable",""],["","cdkScrollable",""]]})}return t})(),xJ=20,Xn=(()=>{class t{_platform=u(qe);_listeners;_viewportSize;_change=new z;_document=u(ge);constructor(){let e=u(ae),i=u(cn).createRenderer(null,null);e.runOutsideAngular(()=>{if(this._platform.isBrowser){let r=o=>this._change.next(o);this._listeners=[i.listen("window","resize",r),i.listen("window","orientationchange",r)]}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:i,height:r}=this.getViewportSize();return{top:e.top,left:e.left,bottom:e.top+r,right:e.left+i,height:r,width:i}}getViewportScrollPosition(){if(!this._platform.isBrowser)return{top:0,left:0};let e=this._document,i=this._getWindow(),r=e.documentElement,o=r.getBoundingClientRect(),a=-o.top||e.body.scrollTop||i.scrollY||r.scrollTop||0,s=-o.left||e.body.scrollLeft||i.scrollX||r.scrollLeft||0;return{top:a,left:s}}change(e=xJ){return e>0?this._change.pipe(Pl(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(i){return new(i||t)};static \u0275prov=O({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();var vr=(()=>{class t{static \u0275fac=function(i){return new(i||t)};static \u0275mod=ee({type:t});static \u0275inj=J({})}return t})(),ng=(()=>{class t{static \u0275fac=function(i){return new(i||t)};static \u0275mod=ee({type:t});static \u0275inj=J({imports:[vs,vr,vs,vr]})}return t})();var rg=class{_attachedHost;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}},Zr=class extends rg{component;viewContainerRef;injector;projectableNodes;constructor(n,e,i,r){super(),this.component=n,this.viewContainerRef=e,this.injector=i,this.projectableNodes=r}},Cn=class extends rg{templateRef;viewContainerRef;context;injector;constructor(n,e,i,r){super(),this.templateRef=n,this.viewContainerRef=e,this.context=i,this.injector=r}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()}},$k=class extends rg{element;constructor(n){super(),this.element=n instanceof q?n.nativeElement:n}},dc=class{_attachedPortal;_disposeFn;_isDisposed=!1;hasAttached(){return!!this._attachedPortal}attach(n){if(n instanceof Zr)return this._attachedPortal=n,this.attachComponentPortal(n);if(n instanceof Cn)return this._attachedPortal=n,this.attachTemplatePortal(n);if(this.attachDomPortal&&n instanceof $k)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)}},og=class extends dc{outletElement;_appRef;_defaultInjector;constructor(n,e,i){super(),this.outletElement=n,this._appRef=e,this._defaultInjector=i}attachComponentPortal(n){let e;if(n.viewContainerRef){let i=n.injector||n.viewContainerRef.injector,r=i.get(as,null,{optional:!0})||void 0;e=n.viewContainerRef.createComponent(n.component,{index:n.viewContainerRef.length,injector:i,ngModuleRef:r,projectableNodes:n.projectableNodes||void 0}),this.setDisposeFn(()=>e.destroy())}else{let i=this._appRef,r=n.injector||this._defaultInjector||de.NULL,o=r.get(Wt,i.injector);e=Mm(n.component,{elementInjector:r,environmentInjector:o,projectableNodes:n.projectableNodes||void 0}),i.attachView(e.hostView),this.setDisposeFn(()=>{i.viewCount>0&&i.detachView(e.hostView),e.destroy()})}return this.outletElement.appendChild(this._getComponentRootNode(e)),this._attachedPortal=n,e}attachTemplatePortal(n){let e=n.viewContainerRef,i=e.createEmbeddedView(n.templateRef,n.context,{injector:n.injector});return i.rootNodes.forEach(r=>this.outletElement.appendChild(r)),i.detectChanges(),this.setDisposeFn(()=>{let r=e.indexOf(i);r!==-1&&e.remove(r)}),this._attachedPortal=n,i}attachDomPortal=n=>{let e=n.element;e.parentNode;let i=this.outletElement.ownerDocument.createComment("dom-portal");e.parentNode.insertBefore(i,e),this.outletElement.appendChild(e),this._attachedPortal=n,super.setDisposeFn(()=>{i.parentNode&&i.parentNode.replaceChild(e,i)})};dispose(){super.dispose(),this.outletElement.remove()}_getComponentRootNode(n){return n.hostView.rootNodes[0]}},eB=(()=>{class t extends Cn{constructor(){let e=u(te),i=u(nt);super(e,i)}static \u0275fac=function(i){return new(i||t)};static \u0275dir=F({type:t,selectors:[["","cdkPortal",""]],exportAs:["cdkPortal"],features:[le]})}return t})();var yr=(()=>{class t extends dc{_moduleRef=u(as,{optional:!0});_document=u(ge);_viewContainerRef=u(nt);_isInitialized=!1;_attachedRef;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 U;get attachedRef(){return this._attachedRef}ngOnInit(){this._isInitialized=!0}ngOnDestroy(){super.dispose(),this._attachedRef=this._attachedPortal=null}attachComponentPortal(e){e.setAttachedHost(this);let i=e.viewContainerRef!=null?e.viewContainerRef:this._viewContainerRef,r=i.createComponent(e.component,{index:i.length,injector:e.injector||i.injector,projectableNodes:e.projectableNodes||void 0,ngModuleRef:this._moduleRef||void 0});return i!==this._viewContainerRef&&this._getRootNode().appendChild(r.hostView.rootNodes[0]),super.setDisposeFn(()=>r.destroy()),this._attachedPortal=e,this._attachedRef=r,this.attached.emit(r),r}attachTemplatePortal(e){e.setAttachedHost(this);let i=this._viewContainerRef.createEmbeddedView(e.templateRef,e.context,{injector:e.injector});return super.setDisposeFn(()=>this._viewContainerRef.clear()),this._attachedPortal=e,this._attachedRef=i,this.attached.emit(i),i}attachDomPortal=e=>{let i=e.element;i.parentNode;let r=this._document.createComment("dom-portal");e.setAttachedHost(this),i.parentNode.insertBefore(r,i),this._getRootNode().appendChild(i),this._attachedPortal=e,super.setDisposeFn(()=>{r.parentNode&&r.parentNode.replaceChild(i,r)})};_getRootNode(){let e=this._viewContainerRef.element.nativeElement;return e.nodeType===e.ELEMENT_NODE?e:e.parentNode}static \u0275fac=function(i){return new(i||t)};static \u0275dir=F({type:t,selectors:[["","cdkPortalOutlet",""]],inputs:{portal:[0,"cdkPortalOutlet","portal"]},outputs:{attached:"attached"},exportAs:["cdkPortalOutlet"],features:[le]})}return t})();var Co=(()=>{class t{static \u0275fac=function(i){return new(i||t)};static \u0275mod=ee({type:t});static \u0275inj=J({})}return t})();var tB=q0();function uc(t){return new Qy(t.get(Xn),t.get(ge))}var Qy=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=on(-this._previousScrollPosition.left),n.style.top=on(-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,i=n.style,r=e.style,o=i.scrollBehavior||"",a=r.scrollBehavior||"";this._isEnabled=!1,i.left=this._previousHTMLStyles.left,i.top=this._previousHTMLStyles.top,n.classList.remove("cdk-global-scrollblock"),tB&&(i.scrollBehavior=r.scrollBehavior="auto"),window.scroll(this._previousScrollPosition.left,this._previousScrollPosition.top),tB&&(i.scrollBehavior=o,r.scrollBehavior=a)}}_canBeEnabled(){if(this._document.documentElement.classList.contains("cdk-global-scrollblock")||this._isEnabled)return!1;let e=this._document.documentElement,i=this._viewportRuler.getViewportSize();return e.scrollHeight>i.height||e.scrollWidth>i.width}};function lB(t,n){return new Ky(t.get(ws),t.get(ae),t.get(Xn),n)}var Ky=class{_scrollDispatcher;_ngZone;_viewportRuler;_config;_scrollSubscription=null;_overlayRef;_initialScrollPosition;constructor(n,e,i,r){this._scrollDispatcher=n,this._ngZone=e,this._viewportRuler=i,this._config=r}attach(n){this._overlayRef,this._overlayRef=n}enable(){if(this._scrollSubscription)return;let n=this._scrollDispatcher.scrolled(0).pipe(ce(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 ag=class{enable(){}disable(){}attach(){}};function Wk(t,n){return n.some(e=>{let i=t.bottome.bottom,o=t.righte.right;return i||r||o||a})}function iB(t,n){return n.some(e=>{let i=t.tope.bottom,o=t.lefte.right;return i||r||o||a})}function wn(t,n){return new Zy(t.get(ws),t.get(Xn),t.get(ae),n)}var Zy=class{_scrollDispatcher;_viewportRuler;_ngZone;_config;_scrollSubscription=null;_overlayRef;constructor(n,e,i,r){this._scrollDispatcher=n,this._viewportRuler=e,this._ngZone=i,this._config=r}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:i,height:r}=this._viewportRuler.getViewportSize();Wk(e,[{width:i,height:r,bottom:r,right:i,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}},cB=(()=>{class t{_injector=u(de);constructor(){}noop=()=>new ag;close=e=>lB(this._injector,e);block=()=>uc(this._injector);reposition=e=>wn(this._injector,e);static \u0275fac=function(i){return new(i||t)};static \u0275prov=O({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),Fr=class{positionStrategy;scrollStrategy=new ag;panelClass="";hasBackdrop=!1;backdropClass="cdk-overlay-dark-backdrop";disableAnimations;width;height;minWidth;minHeight;maxWidth;maxHeight;direction;disposeOnNavigation=!1;constructor(n){if(n){let e=Object.keys(n);for(let i of e)n[i]!==void 0&&(this[i]=n[i])}}};var Xy=class{connectionPair;scrollableViewProperties;constructor(n,e){this.connectionPair=n,this.scrollableViewProperties=e}};var dB=(()=>{class t{_attachedOverlays=[];_document=u(ge);_isAttached;constructor(){}ngOnDestroy(){this.detach()}add(e){this.remove(e),this._attachedOverlays.push(e)}remove(e){let i=this._attachedOverlays.indexOf(e);i>-1&&this._attachedOverlays.splice(i,1),this._attachedOverlays.length===0&&this.detach()}static \u0275fac=function(i){return new(i||t)};static \u0275prov=O({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),uB=(()=>{class t extends dB{_ngZone=u(ae);_renderer=u(cn).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 i=this._attachedOverlays;for(let r=i.length-1;r>-1;r--)if(i[r]._keydownEvents.observers.length>0){this._ngZone.run(()=>i[r]._keydownEvents.next(e));break}};static \u0275fac=(()=>{let e;return function(r){return(e||(e=fe(t)))(r||t)}})();static \u0275prov=O({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),mB=(()=>{class t extends dB{_platform=u(qe);_ngZone=u(ae);_renderer=u(cn).createRenderer(null,null);_cursorOriginalValue;_cursorStyleIsSet=!1;_pointerDownEventTarget;_cleanups;add(e){if(super.add(e),!this._isAttached){let i=this._document.body,r={capture:!0},o=this._renderer;this._cleanups=this._ngZone.runOutsideAngular(()=>[o.listen(i,"pointerdown",this._pointerDownListener,r),o.listen(i,"click",this._clickListener,r),o.listen(i,"auxclick",this._clickListener,r),o.listen(i,"contextmenu",this._clickListener,r)]),this._platform.IOS&&!this._cursorStyleIsSet&&(this._cursorOriginalValue=i.style.cursor,i.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=Kn(e)};_clickListener=e=>{let i=Kn(e),r=e.type==="click"&&this._pointerDownEventTarget?this._pointerDownEventTarget:i;this._pointerDownEventTarget=null;let o=this._attachedOverlays.slice();for(let a=o.length-1;a>-1;a--){let s=o[a];if(s._outsidePointerEvents.observers.length<1||!s.hasAttached())continue;if(nB(s.overlayElement,i)||nB(s.overlayElement,r))break;let l=s._outsidePointerEvents;this._ngZone?this._ngZone.run(()=>l.next(e)):l.next(e)}};static \u0275fac=(()=>{let e;return function(r){return(e||(e=fe(t)))(r||t)}})();static \u0275prov=O({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();function nB(t,n){let e=typeof ShadowRoot<"u"&&ShadowRoot,i=n;for(;i;){if(i===t)return!0;i=e&&i instanceof ShadowRoot?i.host:i.parentNode}return!1}var hB=(()=>{class t{static \u0275fac=function(i){return new(i||t)};static \u0275cmp=E({type:t,selectors:[["ng-component"]],hostAttrs:["cdk-overlay-style-loader",""],decls:0,vars:0,template:function(i,r){},styles:[`.cdk-overlay-container,.cdk-global-overlay-wrapper{pointer-events:none;top:0;left:0;height:100%;width:100%}.cdk-overlay-container{position:fixed}@layer cdk-overlay{.cdk-overlay-container{z-index:1000}}.cdk-overlay-container:empty{display:none}.cdk-global-overlay-wrapper{display:flex;position:absolute}@layer cdk-overlay{.cdk-global-overlay-wrapper{z-index:1000}}.cdk-overlay-pane{position:absolute;pointer-events:auto;box-sizing:border-box;display:flex;max-width:100%;max-height:100%}@layer cdk-overlay{.cdk-overlay-pane{z-index:1000}}.cdk-overlay-backdrop{position:absolute;top:0;bottom:0;left:0;right:0;pointer-events:auto;-webkit-tap-highlight-color:rgba(0,0,0,0);opacity:0;touch-action:manipulation}@layer cdk-overlay{.cdk-overlay-backdrop{z-index:1000;transition:opacity 400ms cubic-bezier(0.25, 0.8, 0.25, 1)}}@media(prefers-reduced-motion){.cdk-overlay-backdrop{transition-duration:1ms}}.cdk-overlay-backdrop-showing{opacity:1}@media(forced-colors: active){.cdk-overlay-backdrop-showing{opacity:.6}}@layer cdk-overlay{.cdk-overlay-dark-backdrop{background:rgba(0,0,0,.32)}}.cdk-overlay-transparent-backdrop{transition:visibility 1ms linear,opacity 1ms linear;visibility:hidden;opacity:1}.cdk-overlay-transparent-backdrop.cdk-overlay-backdrop-showing,.cdk-high-contrast-active .cdk-overlay-transparent-backdrop{opacity:0;visibility:visible}.cdk-overlay-backdrop-noop-animation{transition:none}.cdk-overlay-connected-position-bounding-box{position:absolute;display:flex;flex-direction:column;min-width:1px;min-height:1px}@layer cdk-overlay{.cdk-overlay-connected-position-bounding-box{z-index:1000}}.cdk-global-scrollblock{position:fixed;width:100%;overflow-y:scroll} +`],encapsulation:2,changeDetection:0})}return t})(),ex=(()=>{class t{_platform=u(qe);_containerElement;_document=u(ge);_styleLoader=u(ut);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||Dk()){let r=this._document.querySelectorAll(`.${e}[platform="server"], .${e}[platform="test"]`);for(let o=0;o{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()}},gh=class{_portalOutlet;_host;_pane;_config;_ngZone;_keyboardDispatcher;_document;_location;_outsideClickDispatcher;_animationsDisabled;_injector;_renderer;_backdropClick=new z;_attachments=new z;_detachments=new z;_positionStrategy;_scrollStrategy;_locationChanges=ke.EMPTY;_backdropRef=null;_detachContentMutationObserver;_detachContentAfterRenderRef;_previousHostParent;_keydownEvents=new z;_outsidePointerEvents=new z;_afterNextRenderRef;constructor(n,e,i,r,o,a,s,l,c,d=!1,m,f){this._portalOutlet=n,this._host=e,this._pane=i,this._config=r,this._ngZone=o,this._keyboardDispatcher=a,this._document=s,this._location=l,this._outsideClickDispatcher=c,this._animationsDisabled=d,this._injector=m,this._renderer=f,r.scrollStrategy&&(this._scrollStrategy=r.scrollStrategy,this._scrollStrategy.attach(this)),this._positionStrategy=r.positionStrategy}get overlayElement(){return this._pane}get backdropElement(){return this._backdropRef?.element||null}get hostElement(){return this._host}attach(n){!this._host.parentElement&&this._previousHostParent&&this._previousHostParent.appendChild(this._host);let e=this._portalOutlet.attach(n);return this._positionStrategy&&this._positionStrategy.attach(this),this._updateStackingOrder(),this._updateElementSize(),this._updateElementDirection(),this._scrollStrategy&&this._scrollStrategy.enable(),this._afterNextRenderRef?.destroy(),this._afterNextRenderRef=pt(()=>{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(){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()}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=M(M({},this._config),n),this._updateElementSize()}setDirection(n){this._config=De(M({},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=on(this._config.width),n.height=on(this._config.height),n.minWidth=on(this._config.minWidth),n.minHeight=on(this._config.minHeight),n.maxWidth=on(this._config.maxWidth),n.maxHeight=on(this._config.maxHeight)}_togglePointerEvents(n){this._pane.style.pointerEvents=n?"":"none"}_attachBackdrop(){let n="cdk-overlay-backdrop-showing";this._backdropRef?.dispose(),this._backdropRef=new Gk(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._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._host.nextSibling&&this._host.parentNode.appendChild(this._host)}detachBackdrop(){this._animationsDisabled?(this._backdropRef?.dispose(),this._backdropRef=null):this._backdropRef?.detach()}_toggleClasses(n,e,i){let r=al(e||[]).filter(o=>!!o);r.length&&(i?n.classList.add(...r):n.classList.remove(...r))}_detachContentWhenEmpty(){let n=!1;try{this._detachContentAfterRenderRef=pt(()=>{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?.()}},rB="cdk-overlay-connected-position-bounding-box",wJ=/([A-Za-z%]+)$/;function Fa(t,n){return new _h(n,t.get(Xn),t.get(ge),t.get(qe),t.get(ex))}var _h=class{_viewportRuler;_document;_platform;_overlayContainer;_overlayRef;_isInitialRender;_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;_boundingBox;_lastPosition;_lastScrollVisibility;_positionChanges=new z;_resizeSubscription=ke.EMPTY;_offsetX=0;_offsetY=0;_transformOriginSelector;_appliedPanelClasses=[];_previousPushAmount;positionChanges=this._positionChanges;get positions(){return this._preferredPositions}constructor(n,e,i,r,o){this._viewportRuler=e,this._document=i,this._platform=r,this._overlayContainer=o,this.setOrigin(n)}attach(n){this._overlayRef&&this._overlayRef,this._validatePositions(),n.hostElement.classList.add(rB),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._overlayContainer.getContainerElement().getBoundingClientRect();let n=this._originRect,e=this._overlayRect,i=this._viewportRect,r=this._containerRect,o=[],a;for(let s of this._preferredPositions){let l=this._getOriginPoint(n,r,s),c=this._getOverlayPoint(l,e,s),d=this._getOverlayFit(c,e,i,s);if(d.isCompletelyWithinViewport){this._isPushed=!1,this._applyPosition(s,l);return}if(this._canFitWithFlexibleDimensions(d,c,i)){o.push({position:s,origin:l,overlayRect:e,boundingBoxRect:this._calculateBoundingBoxRect(l,s)});continue}(!a||a.overlayFit.visibleAreal&&(l=d,s=c)}this._isPushed=!1,this._applyPosition(s.position,s.origin);return}if(this._canPush){this._isPushed=!0,this._applyPosition(a.position,a.originPoint);return}this._applyPosition(a.position,a.originPoint)}detach(){this._clearPanelClasses(),this._lastPosition=null,this._previousPushAmount=null,this._resizeSubscription.unsubscribe()}dispose(){this._isDisposed||(this._boundingBox&&ou(this._boundingBox.style,{top:"",left:"",right:"",bottom:"",height:"",width:"",alignItems:"",justifyContent:""}),this._pane&&this._resetOverlayElementStyles(),this._overlayRef&&this._overlayRef.hostElement.classList.remove(rB),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;if(n){this._originRect=this._getOriginRect(),this._overlayRect=this._pane.getBoundingClientRect(),this._viewportRect=this._getNarrowedViewportRect(),this._containerRect=this._overlayContainer.getContainerElement().getBoundingClientRect();let e=this._getOriginPoint(this._originRect,this._containerRect,n);this._applyPosition(n,e)}else 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}_getOriginPoint(n,e,i){let r;if(i.originX=="center")r=n.left+n.width/2;else{let a=this._isRtl()?n.right:n.left,s=this._isRtl()?n.left:n.right;r=i.originX=="start"?a:s}e.left<0&&(r-=e.left);let o;return i.originY=="center"?o=n.top+n.height/2:o=i.originY=="top"?n.top:n.bottom,e.top<0&&(o-=e.top),{x:r,y:o}}_getOverlayPoint(n,e,i){let r;i.overlayX=="center"?r=-e.width/2:i.overlayX==="start"?r=this._isRtl()?-e.width:0:r=this._isRtl()?0:-e.width;let o;return i.overlayY=="center"?o=-e.height/2:o=i.overlayY=="top"?0:-e.height,{x:n.x+r,y:n.y+o}}_getOverlayFit(n,e,i,r){let o=aB(e),{x:a,y:s}=n,l=this._getOffset(r,"x"),c=this._getOffset(r,"y");l&&(a+=l),c&&(s+=c);let d=0-a,m=a+o.width-i.width,f=0-s,b=s+o.height-i.height,v=this._subtractOverflows(o.width,d,m),w=this._subtractOverflows(o.height,f,b),x=v*w;return{visibleArea:x,isCompletelyWithinViewport:o.width*o.height===x,fitsInViewportVertically:w===o.height,fitsInViewportHorizontally:v==o.width}}_canFitWithFlexibleDimensions(n,e,i){if(this._hasFlexibleDimensions){let r=i.bottom-e.y,o=i.right-e.x,a=oB(this._overlayRef.getConfig().minHeight),s=oB(this._overlayRef.getConfig().minWidth),l=n.fitsInViewportVertically||a!=null&&a<=r,c=n.fitsInViewportHorizontally||s!=null&&s<=o;return l&&c}return!1}_pushOverlayOnScreen(n,e,i){if(this._previousPushAmount&&this._positionLocked)return{x:n.x+this._previousPushAmount.x,y:n.y+this._previousPushAmount.y};let r=aB(e),o=this._viewportRect,a=Math.max(n.x+r.width-o.width,0),s=Math.max(n.y+r.height-o.height,0),l=Math.max(o.top-i.top-n.y,0),c=Math.max(o.left-i.left-n.x,0),d=0,m=0;return r.width<=o.width?d=c||-a:d=n.xv&&!this._isInitialRender&&!this._growAfterOpen&&(a=n.y-v/2)}let l=e.overlayX==="start"&&!r||e.overlayX==="end"&&r,c=e.overlayX==="end"&&!r||e.overlayX==="start"&&r,d,m,f;if(c)f=i.width-n.x+this._viewportMargin*2,d=n.x-this._viewportMargin;else if(l)m=n.x,d=i.right-n.x;else{let b=Math.min(i.right-n.x+i.left,n.x),v=this._lastBoundingBoxSize.width;d=b*2,m=n.x-b,d>v&&!this._isInitialRender&&!this._growAfterOpen&&(m=n.x-v/2)}return{top:a,left:m,bottom:s,right:f,width:d,height:o}}_setBoundingBoxStyles(n,e){let i=this._calculateBoundingBoxRect(n,e);!this._isInitialRender&&!this._growAfterOpen&&(i.height=Math.min(i.height,this._lastBoundingBoxSize.height),i.width=Math.min(i.width,this._lastBoundingBoxSize.width));let r={};if(this._hasExactPosition())r.top=r.left="0",r.bottom=r.right=r.maxHeight=r.maxWidth="",r.width=r.height="100%";else{let o=this._overlayRef.getConfig().maxHeight,a=this._overlayRef.getConfig().maxWidth;r.height=on(i.height),r.top=on(i.top),r.bottom=on(i.bottom),r.width=on(i.width),r.left=on(i.left),r.right=on(i.right),e.overlayX==="center"?r.alignItems="center":r.alignItems=e.overlayX==="end"?"flex-end":"flex-start",e.overlayY==="center"?r.justifyContent="center":r.justifyContent=e.overlayY==="bottom"?"flex-end":"flex-start",o&&(r.maxHeight=on(o)),a&&(r.maxWidth=on(a))}this._lastBoundingBoxSize=i,ou(this._boundingBox.style,r)}_resetBoundingBoxStyles(){ou(this._boundingBox.style,{top:"0",left:"0",right:"0",bottom:"0",height:"",width:"",alignItems:"",justifyContent:""})}_resetOverlayElementStyles(){ou(this._pane.style,{top:"",left:"",bottom:"",right:"",position:"",transform:""})}_setOverlayElementStyles(n,e){let i={},r=this._hasExactPosition(),o=this._hasFlexibleDimensions,a=this._overlayRef.getConfig();if(r){let d=this._viewportRuler.getViewportScrollPosition();ou(i,this._getExactOverlayY(e,n,d)),ou(i,this._getExactOverlayX(e,n,d))}else i.position="static";let s="",l=this._getOffset(e,"x"),c=this._getOffset(e,"y");l&&(s+=`translateX(${l}px) `),c&&(s+=`translateY(${c}px)`),i.transform=s.trim(),a.maxHeight&&(r?i.maxHeight=on(a.maxHeight):o&&(i.maxHeight="")),a.maxWidth&&(r?i.maxWidth=on(a.maxWidth):o&&(i.maxWidth="")),ou(this._pane.style,i)}_getExactOverlayY(n,e,i){let r={top:"",bottom:""},o=this._getOverlayPoint(e,this._overlayRect,n);if(this._isPushed&&(o=this._pushOverlayOnScreen(o,this._overlayRect,i)),n.overlayY==="bottom"){let a=this._document.documentElement.clientHeight;r.bottom=`${a-(o.y+this._overlayRect.height)}px`}else r.top=on(o.y);return r}_getExactOverlayX(n,e,i){let r={left:"",right:""},o=this._getOverlayPoint(e,this._overlayRect,n);this._isPushed&&(o=this._pushOverlayOnScreen(o,this._overlayRect,i));let a;if(this._isRtl()?a=n.overlayX==="end"?"left":"right":a=n.overlayX==="end"?"right":"left",a==="right"){let s=this._document.documentElement.clientWidth;r.right=`${s-(o.x+this._overlayRect.width)}px`}else r.left=on(o.x);return r}_getScrollVisibility(){let n=this._getOriginRect(),e=this._pane.getBoundingClientRect(),i=this._scrollables.map(r=>r.getElementRef().nativeElement.getBoundingClientRect());return{isOriginClipped:iB(n,i),isOriginOutsideView:Wk(n,i),isOverlayClipped:iB(e,i),isOverlayOutsideView:Wk(e,i)}}_subtractOverflows(n,...e){return e.reduce((i,r)=>i-Math.max(r,0),n)}_getNarrowedViewportRect(){let n=this._document.documentElement.clientWidth,e=this._document.documentElement.clientHeight,i=this._viewportRuler.getViewportScrollPosition();return{top:i.top+this._viewportMargin,left:i.left+this._viewportMargin,right:i.left+n-this._viewportMargin,bottom:i.top+e-this._viewportMargin,width:n-2*this._viewportMargin,height:e-2*this._viewportMargin}}_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&&al(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=[])}_getOriginRect(){let n=this._origin;if(n instanceof q)return n.nativeElement.getBoundingClientRect();if(n instanceof Element)return n.getBoundingClientRect();let e=n.width||0,i=n.height||0;return{top:n.y,bottom:n.y+i,left:n.x,right:n.x+e,height:i,width:e}}};function ou(t,n){for(let e in n)n.hasOwnProperty(e)&&(t[e]=n[e]);return t}function oB(t){if(typeof t!="number"&&t!=null){let[n,e]=t.split(wJ);return!e||e==="px"?parseFloat(n):null}return t||null}function aB(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 DJ(t,n){return t===n?!0:t.isOriginClipped===n.isOriginClipped&&t.isOriginOutsideView===n.isOriginOutsideView&&t.isOverlayClipped===n.isOverlayClipped&&t.isOverlayOutsideView===n.isOverlayOutsideView}var sB="cdk-global-overlay-wrapper";function Ds(t){return new Jy}var Jy=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(sB),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,i=this._overlayRef.getConfig(),{width:r,height:o,maxWidth:a,maxHeight:s}=i,l=(r==="100%"||r==="100vw")&&(!a||a==="100%"||a==="100vw"),c=(o==="100%"||o==="100vh")&&(!s||s==="100%"||s==="100vh"),d=this._xPosition,m=this._xOffset,f=this._overlayRef.getConfig().direction==="rtl",b="",v="",w="";l?w="flex-start":d==="center"?(w="center",f?v=m:b=m):f?d==="left"||d==="end"?(w="flex-end",b=m):(d==="right"||d==="start")&&(w="flex-start",v=m):d==="left"||d==="start"?(w="flex-start",b=m):(d==="right"||d==="end")&&(w="flex-end",v=m),n.position=this._cssPosition,n.marginLeft=l?"0":b,n.marginTop=c?"0":this._topOffset,n.marginBottom=this._bottomOffset,n.marginRight=l?"0":v,e.justifyContent=w,e.alignItems=c?"flex-start":this._alignItems}dispose(){if(this._isDisposed||!this._overlayRef)return;let n=this._overlayRef.overlayElement.style,e=this._overlayRef.hostElement,i=e.style;e.classList.remove(sB),i.justifyContent=i.alignItems=n.marginTop=n.marginBottom=n.marginLeft=n.marginRight=n.position="",this._overlayRef=null,this._isDisposed=!0}},pB=(()=>{class t{_injector=u(de);constructor(){}global(){return Ds()}flexibleConnectedTo(e){return Fa(this._injector,e)}static \u0275fac=function(i){return new(i||t)};static \u0275prov=O({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();function Nr(t,n){t.get(ut).load(hB);let e=t.get(ex),i=t.get(ge),r=t.get(Ze),o=t.get(Gn),a=t.get(Vt),s=i.createElement("div"),l=i.createElement("div");l.id=r.getId("cdk-overlay-"),l.classList.add("cdk-overlay-pane"),s.appendChild(l),e.getContainerElement().appendChild(s);let c=new og(l,o,t),d=new Fr(n),m=t.get(je,null,{optional:!0})||t.get(cn).createRenderer(null,null);return d.direction=d.direction||a.value,new gh(c,s,l,d,t.get(ae),t.get(uB),i,t.get(us),t.get(mB),n?.disableAnimations??t.get(Yp,null,{optional:!0})==="NoopAnimations",t.get(Wt),m)}var fB=(()=>{class t{scrollStrategies=u(cB);_positionBuilder=u(pB);_injector=u(de);constructor(){}create(e){return Nr(this._injector,e)}position(){return this._positionBuilder}static \u0275fac=function(i){return new(i||t)};static \u0275prov=O({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),EJ=[{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"}],gB=new T("cdk-connected-overlay-scroll-strategy",{providedIn:"root",factory:()=>{let t=u(de);return()=>wn(t)}}),bh=(()=>{class t{elementRef=u(q);constructor(){}static \u0275fac=function(i){return new(i||t)};static \u0275dir=F({type:t,selectors:[["","cdk-overlay-origin",""],["","overlay-origin",""],["","cdkOverlayOrigin",""]],exportAs:["cdkOverlayOrigin"]})}return t})(),tx=(()=>{class t{_dir=u(Vt,{optional:!0});_injector=u(de);_overlayRef;_templatePortal;_backdropSubscription=ke.EMPTY;_attachSubscription=ke.EMPTY;_detachSubscription=ke.EMPTY;_positionSubscription=ke.EMPTY;_offsetX;_offsetY;_position;_scrollStrategyFactory=u(gB);_disposeOnNavigation=!1;_ngZone=u(ae);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;get disposeOnNavigation(){return this._disposeOnNavigation}set disposeOnNavigation(e){this._disposeOnNavigation=e}backdropClick=new U;positionChange=new U;attach=new U;detach=new U;overlayKeydown=new U;overlayOutsideClick=new U;constructor(){let e=u(te),i=u(nt);this._templatePortal=new Cn(e,i),this.scrollStrategy=this._scrollStrategyFactory()}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.width,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=EJ);let e=this._overlayRef=Nr(this._injector,this._buildConfig());this._attachSubscription=e.attachments().subscribe(()=>this.attach.emit()),this._detachSubscription=e.detachments().subscribe(()=>this.detach.emit()),e.keydownEvents().subscribe(i=>{this.overlayKeydown.next(i),i.keyCode===27&&!this.disableClose&&!Ft(i)&&(i.preventDefault(),this.detachOverlay())}),this._overlayRef.outsidePointerEvents().subscribe(i=>{let r=this._getOriginElement(),o=Kn(i);(!r||r!==o&&!r.contains(o))&&this.overlayOutsideClick.next(i)})}_buildConfig(){let e=this._position=this.positionStrategy||this._createPositionStrategy(),i=new Fr({direction:this._dir||"ltr",positionStrategy:e,scrollStrategy:this.scrollStrategy,hasBackdrop:this.hasBackdrop,disposeOnNavigation:this.disposeOnNavigation});return(this.width||this.width===0)&&(i.width=this.width),(this.height||this.height===0)&&(i.height=this.height),(this.minWidth||this.minWidth===0)&&(i.minWidth=this.minWidth),(this.minHeight||this.minHeight===0)&&(i.minHeight=this.minHeight),this.backdropClass&&(i.backdropClass=this.backdropClass),this.panelClass&&(i.panelClass=this.panelClass),i}_updatePositionStrategy(e){let i=this.positions.map(r=>({originX:r.originX,originY:r.originY,overlayX:r.overlayX,overlayY:r.overlayY,offsetX:r.offsetX||this.offsetX,offsetY:r.offsetY||this.offsetY,panelClass:r.panelClass||void 0}));return e.setOrigin(this._getOrigin()).withPositions(i).withFlexibleDimensions(this.flexibleDimensions).withPush(this.push).withGrowAfterOpen(this.growAfterOpen).withViewportMargin(this.viewportMargin).withLockedPosition(this.lockPosition).withTransformOriginOn(this.transformOriginSelector)}_createPositionStrategy(){let e=Fa(this._injector,this._getOrigin());return this._updatePositionStrategy(e),e}_getOrigin(){return this.origin instanceof bh?this.origin.elementRef:this.origin}_getOriginElement(){return this.origin instanceof bh?this.origin.elementRef.nativeElement:this.origin instanceof q?this.origin.nativeElement:typeof Element<"u"&&this.origin instanceof Element?this.origin:null}attachOverlay(){this._overlayRef?this._overlayRef.getConfig().hasBackdrop=this.hasBackdrop:this._createOverlay(),this._overlayRef.hasAttached()||this._overlayRef.attach(this._templatePortal),this.hasBackdrop?this._backdropSubscription=this._overlayRef.backdropClick().subscribe(e=>{this.backdropClick.emit(e)}):this._backdropSubscription.unsubscribe(),this._positionSubscription.unsubscribe(),this.positionChange.observers.length>0&&(this._positionSubscription=this._position.positionChanges.pipe(Xw(()=>this.positionChange.observers.length>0)).subscribe(e=>{this._ngZone.run(()=>this.positionChange.emit(e)),this.positionChange.observers.length===0&&this._positionSubscription.unsubscribe()})),this.open=!0}detachOverlay(){this._overlayRef?.detach(),this._backdropSubscription.unsubscribe(),this._positionSubscription.unsubscribe(),this.open=!1}static \u0275fac=function(i){return new(i||t)};static \u0275dir=F({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",V],lockPosition:[2,"cdkConnectedOverlayLockPosition","lockPosition",V],flexibleDimensions:[2,"cdkConnectedOverlayFlexibleDimensions","flexibleDimensions",V],growAfterOpen:[2,"cdkConnectedOverlayGrowAfterOpen","growAfterOpen",V],push:[2,"cdkConnectedOverlayPush","push",V],disposeOnNavigation:[2,"cdkConnectedOverlayDisposeOnNavigation","disposeOnNavigation",V]},outputs:{backdropClick:"backdropClick",positionChange:"positionChange",attach:"attach",detach:"detach",overlayKeydown:"overlayKeydown",overlayOutsideClick:"overlayOutsideClick"},exportAs:["cdkConnectedOverlay"],features:[Ae]})}return t})();function MJ(t){let n=u(de);return()=>wn(n)}var kJ={provide:gB,useFactory:MJ},er=(()=>{class t{static \u0275fac=function(i){return new(i||t)};static \u0275mod=ee({type:t});static \u0275inj=J({providers:[fB,kJ],imports:[vs,Co,ng,ng]})}return t})();var au=(()=>{class t{_listeners=[];notify(e,i){for(let r of this._listeners)r(e,i)}listen(e){return this._listeners.push(e),()=>{this._listeners=this._listeners.filter(i=>e!==i)}}ngOnDestroy(){this._listeners=[]}static \u0275fac=function(i){return new(i||t)};static \u0275prov=O({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();var su=class{applyChanges(n,e,i,r,o){n.forEachOperation((a,s,l)=>{let c,d;if(a.previousIndex==null){let m=i(a,s,l);c=e.createEmbeddedView(m.templateRef,m.context,m.index),d=cc.INSERTED}else l==null?(e.remove(s),d=cc.REMOVED):(c=e.get(s),e.move(c,l),d=cc.MOVED);o&&o({context:c?.context,operation:d,record:a})})}detach(){}};var sg=class{_multiple;_emitChanges;compareWith;_selection=new Set;_deselectedToEmit=[];_selectedToEmit=[];_selected;get selected(){return this._selected||(this._selected=Array.from(this._selection.values())),this._selected}changed=new z;constructor(n=!1,e,i=!0,r){this._multiple=n,this._emitChanges=i,this.compareWith=r,e&&e.length&&(n?e.forEach(o=>this._markSelected(o)):this._markSelected(e[0]),this._selectedToEmit.length=0)}select(...n){this._verifyValueAssignment(n),n.forEach(i=>this._markSelected(i));let e=this._hasQueuedChanges();return this._emitChangeEvent(),e}deselect(...n){this._verifyValueAssignment(n),n.forEach(i=>this._unmarkSelected(i));let e=this._hasQueuedChanges();return this._emitChangeEvent(),e}setSelection(...n){this._verifyValueAssignment(n);let e=this.selected,i=new Set(n.map(o=>this._getConcreteValue(o)));n.forEach(o=>this._markSelected(o)),e.filter(o=>!i.has(this._getConcreteValue(o,i))).forEach(o=>this._unmarkSelected(o));let r=this._hasQueuedChanges();return this._emitChangeEvent(),r}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 i of e)if(this.compareWith(n,i))return i;return n}else return n}};var EB=(()=>{class t{_renderer;_elementRef;onChange=e=>{};onTouched=()=>{};constructor(e,i){this._renderer=e,this._elementRef=i}setProperty(e,i){this._renderer.setProperty(this._elementRef.nativeElement,e,i)}registerOnTouched(e){this.onTouched=e}registerOnChange(e){this.onChange=e}setDisabledState(e){this.setProperty("disabled",e)}static \u0275fac=function(i){return new(i||t)(_e(je),_e(q))};static \u0275dir=F({type:t})}return t})(),MB=(()=>{class t extends EB{static \u0275fac=(()=>{let e;return function(r){return(e||(e=fe(t)))(r||t)}})();static \u0275dir=F({type:t,features:[le]})}return t})(),tr=new T("");var SJ={provide:tr,useExisting:Kt(()=>Qi),multi:!0};function TJ(){let t=Wo()?Wo().getUserAgent():"";return/android (\d+)/.test(t.toLowerCase())}var IJ=new T(""),Qi=(()=>{class t extends EB{_compositionMode;_composing=!1;constructor(e,i,r){super(e,i),this._compositionMode=r,this._compositionMode==null&&(this._compositionMode=!TJ())}writeValue(e){let i=e??"";this.setProperty("value",i)}_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(i){return new(i||t)(_e(je),_e(q),_e(IJ,8))};static \u0275dir=F({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(i,r){i&1&&S("input",function(a){return r._handleInput(a.target.value)})("blur",function(){return r.onTouched()})("compositionstart",function(){return r._compositionStart()})("compositionend",function(a){return r._compositionEnd(a.target.value)})},standalone:!1,features:[Ce([SJ]),le]})}return t})();function Qk(t){return t==null||Kk(t)===0}function Kk(t){return t==null?null:Array.isArray(t)||typeof t=="string"?t.length:t instanceof Set?t.size:null}var ea=new T(""),fg=new T(""),AJ=/^(?=.{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])?)*$/,Le=class{static min(n){return OJ(n)}static max(n){return RJ(n)}static required(n){return kB(n)}static requiredTrue(n){return PJ(n)}static email(n){return FJ(n)}static minLength(n){return NJ(n)}static maxLength(n){return LJ(n)}static pattern(n){return VJ(n)}static nullValidator(n){return nx()}static compose(n){return RB(n)}static composeAsync(n){return PB(n)}};function OJ(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 kB(t){return Qk(t.value)?{required:!0}:null}function PJ(t){return t.value===!0?null:{required:!0}}function FJ(t){return Qk(t.value)||AJ.test(t.value)?null:{email:!0}}function NJ(t){return n=>{let e=n.value?.length??Kk(n.value);return e===null||e===0?null:e{let e=n.value?.length??Kk(n.value);return e!==null&&e>t?{maxlength:{requiredLength:t,actualLength:e}}:null}}function VJ(t){if(!t)return nx;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),i=>{if(Qk(i.value))return null;let r=i.value;return n.test(r)?null:{pattern:{requiredPattern:e,actualValue:r}}}}function nx(t){return null}function SB(t){return t!=null}function TB(t){return Xs(t)?Ot(t):t}function IB(t){let n={};return t.forEach(e=>{n=e!=null?M(M({},n),e):n}),Object.keys(n).length===0?null:n}function AB(t,n){return n.map(e=>e(t))}function BJ(t){return!t.validate}function OB(t){return t.map(n=>BJ(n)?n:e=>n.validate(e))}function RB(t){if(!t)return null;let n=t.filter(SB);return n.length==0?null:function(e){return IB(AB(e,n))}}function Zk(t){return t!=null?RB(OB(t)):null}function PB(t){if(!t)return null;let n=t.filter(SB);return n.length==0?null:function(e){let i=AB(e,n).map(TB);return Ga(i).pipe(se(IB))}}function Xk(t){return t!=null?PB(OB(t)):null}function bB(t,n){return t===null?[n]:Array.isArray(t)?[...t,n]:[t,n]}function FB(t){return t._rawValidators}function NB(t){return t._rawAsyncValidators}function qk(t){return t?Array.isArray(t)?t:[t]:[]}function rx(t,n){return Array.isArray(t)?t.includes(n):t===n}function vB(t,n){let e=qk(n);return qk(t).forEach(r=>{rx(e,r)||e.push(r)}),e}function yB(t,n){return qk(n).filter(e=>!rx(t,e))}var ox=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=Zk(this._rawValidators)}_setAsyncValidators(n){this._rawAsyncValidators=n||[],this._composedAsyncValidatorFn=Xk(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&&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}},Es=class extends ox{name;get formDirective(){return null}get path(){return null}},Hn=class extends ox{_parent=null;name=null;valueAccessor=null},ax=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}},jJ={"[class.ng-untouched]":"isUntouched","[class.ng-touched]":"isTouched","[class.ng-pristine]":"isPristine","[class.ng-dirty]":"isDirty","[class.ng-valid]":"isValid","[class.ng-invalid]":"isInvalid","[class.ng-pending]":"isPending"},BWe=De(M({},jJ),{"[class.ng-submitted]":"isSubmitted"}),ei=(()=>{class t extends ax{constructor(e){super(e)}static \u0275fac=function(i){return new(i||t)(_e(Hn,2))};static \u0275dir=F({type:t,selectors:[["","formControlName",""],["","ngModel",""],["","formControl",""]],hostVars:14,hostBindings:function(i,r){i&2&&G("ng-untouched",r.isUntouched)("ng-touched",r.isTouched)("ng-pristine",r.isPristine)("ng-dirty",r.isDirty)("ng-valid",r.isValid)("ng-invalid",r.isInvalid)("ng-pending",r.isPending)},standalone:!1,features:[le]})}return t})(),Xr=(()=>{class t extends ax{constructor(e){super(e)}static \u0275fac=function(i){return new(i||t)(_e(Es,10))};static \u0275dir=F({type:t,selectors:[["","formGroupName",""],["","formArrayName",""],["","ngModelGroup",""],["","formGroup",""],["form",3,"ngNoForm",""],["","ngForm",""]],hostVars:16,hostBindings:function(i,r){i&2&&G("ng-untouched",r.isUntouched)("ng-touched",r.isTouched)("ng-pristine",r.isPristine)("ng-dirty",r.isDirty)("ng-valid",r.isValid)("ng-invalid",r.isInvalid)("ng-pending",r.isPending)("ng-submitted",r.isSubmitted)},standalone:!1,features:[le]})}return t})();var lg="VALID",ix="INVALID",vh="PENDING",cg="DISABLED",mc=class{},sx=class extends mc{value;source;constructor(n,e){super(),this.value=n,this.source=e}},ug=class extends mc{pristine;source;constructor(n,e){super(),this.pristine=n,this.source=e}},mg=class extends mc{touched;source;constructor(n,e){super(),this.touched=n,this.source=e}},yh=class extends mc{status;source;constructor(n,e){super(),this.status=n,this.source=e}},lx=class extends mc{source;constructor(n){super(),this.source=n}},hg=class extends mc{source;constructor(n){super(),this.source=n}};function Jk(t){return(hx(t)?t.validators:t)||null}function HJ(t){return Array.isArray(t)?Zk(t):t||null}function eS(t,n){return(hx(n)?n.asyncValidators:t)||null}function zJ(t){return Array.isArray(t)?Xk(t):t||null}function hx(t){return t!=null&&!Array.isArray(t)&&typeof t=="object"}function LB(t,n,e){let i=t.controls;if(!(n?Object.keys(i):i).length)throw new ue(1e3,"");if(!i[e])throw new ue(1001,"")}function VB(t,n,e){t._forEachChild((i,r)=>{if(e[r]===void 0)throw new ue(1002,"")})}var hc=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 Ti(this.statusReactive)}set status(n){Ti(()=>this.statusReactive.set(n))}_status=Zt(()=>this.statusReactive());statusReactive=he(void 0);get valid(){return this.status===lg}get invalid(){return this.status===ix}get pending(){return this.status==vh}get disabled(){return this.status===cg}get enabled(){return this.status!==cg}errors;get pristine(){return Ti(this.pristineReactive)}set pristine(n){Ti(()=>this.pristineReactive.set(n))}_pristine=Zt(()=>this.pristineReactive());pristineReactive=he(!0);get dirty(){return!this.pristine}get touched(){return Ti(this.touchedReactive)}set touched(n){Ti(()=>this.touchedReactive.set(n))}_touched=Zt(()=>this.touchedReactive());touchedReactive=he(!1);get untouched(){return!this.touched}_events=new z;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(vB(n,this._rawValidators))}addAsyncValidators(n){this.setAsyncValidators(vB(n,this._rawAsyncValidators))}removeValidators(n){this.setValidators(yB(n,this._rawValidators))}removeAsyncValidators(n){this.setAsyncValidators(yB(n,this._rawAsyncValidators))}hasValidator(n){return rx(this._rawValidators,n)}hasAsyncValidator(n){return rx(this._rawAsyncValidators,n)}clearValidators(){this.validator=null}clearAsyncValidators(){this.asyncValidator=null}markAsTouched(n={}){let e=this.touched===!1;this.touched=!0;let i=n.sourceControl??this;this._parent&&!n.onlySelf&&this._parent.markAsTouched(De(M({},n),{sourceControl:i})),e&&n.emitEvent!==!1&&this._events.next(new mg(!0,i))}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 i=n.sourceControl??this;this._forEachChild(r=>{r.markAsUntouched({onlySelf:!0,emitEvent:n.emitEvent,sourceControl:i})}),this._parent&&!n.onlySelf&&this._parent._updateTouched(n,i),e&&n.emitEvent!==!1&&this._events.next(new mg(!1,i))}markAsDirty(n={}){let e=this.pristine===!0;this.pristine=!1;let i=n.sourceControl??this;this._parent&&!n.onlySelf&&this._parent.markAsDirty(De(M({},n),{sourceControl:i})),e&&n.emitEvent!==!1&&this._events.next(new ug(!1,i))}markAsPristine(n={}){let e=this.pristine===!1;this.pristine=!0,this._pendingDirty=!1;let i=n.sourceControl??this;this._forEachChild(r=>{r.markAsPristine({onlySelf:!0,emitEvent:n.emitEvent})}),this._parent&&!n.onlySelf&&this._parent._updatePristine(n,i),e&&n.emitEvent!==!1&&this._events.next(new ug(!0,i))}markAsPending(n={}){this.status=vh;let e=n.sourceControl??this;n.emitEvent!==!1&&(this._events.next(new yh(this.status,e)),this.statusChanges.emit(this.status)),this._parent&&!n.onlySelf&&this._parent.markAsPending(De(M({},n),{sourceControl:e}))}disable(n={}){let e=this._parentMarkedDirty(n.onlySelf);this.status=cg,this.errors=null,this._forEachChild(r=>{r.disable(De(M({},n),{onlySelf:!0}))}),this._updateValue();let i=n.sourceControl??this;n.emitEvent!==!1&&(this._events.next(new sx(this.value,i)),this._events.next(new yh(this.status,i)),this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._updateAncestors(De(M({},n),{skipPristineCheck:e}),this),this._onDisabledChange.forEach(r=>r(!0))}enable(n={}){let e=this._parentMarkedDirty(n.onlySelf);this.status=lg,this._forEachChild(i=>{i.enable(De(M({},n),{onlySelf:!0}))}),this.updateValueAndValidity({onlySelf:!0,emitEvent:n.emitEvent}),this._updateAncestors(De(M({},n),{skipPristineCheck:e}),this),this._onDisabledChange.forEach(i=>i(!1))}_updateAncestors(n,e){this._parent&&!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 i=this._cancelExistingSubscription();this.errors=this._runValidator(),this.status=this._calculateStatus(),(this.status===lg||this.status===vh)&&this._runAsyncValidator(i,n.emitEvent)}let e=n.sourceControl??this;n.emitEvent!==!1&&(this._events.next(new sx(this.value,e)),this._events.next(new yh(this.status,e)),this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._parent&&!n.onlySelf&&this._parent.updateValueAndValidity(De(M({},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()?cg:lg}_runValidator(){return this.validator?this.validator(this):null}_runAsyncValidator(n,e){if(this.asyncValidator){this.status=vh,this._hasOwnPendingAsyncValidator={emitEvent:e!==!1,shouldHaveEmitted:n!==!1};let i=TB(this.asyncValidator(this));this._asyncValidationSubscription=i.subscribe(r=>{this._hasOwnPendingAsyncValidator=null,this.setErrors(r,{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((i,r)=>i&&i._find(r),this)}getError(n,e){let i=e?this.get(e):this;return i&&i.errors?i.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,i){this.status=this._calculateStatus(),n&&this.statusChanges.emit(this.status),(n||i)&&this._events.next(new yh(this.status,e)),this._parent&&this._parent._updateControlsErrors(n,e,i)}_initObservables(){this.valueChanges=new U,this.statusChanges=new U}_calculateStatus(){return this._allControlsDisabled()?cg:this.errors?ix:this._hasOwnPendingAsyncValidator||this._anyControlsHaveStatus(vh)?vh:this._anyControlsHaveStatus(ix)?ix:lg}_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 i=!this._anyControlsDirty(),r=this.pristine!==i;this.pristine=i,this._parent&&!n.onlySelf&&this._parent._updatePristine(n,e),r&&this._events.next(new ug(this.pristine,e))}_updateTouched(n={},e){this.touched=this._anyControlsTouched(),this._events.next(new mg(this.touched,e)),this._parent&&!n.onlySelf&&this._parent._updateTouched(n,e)}_onDisabledChange=[];_registerOnCollectionChange(n){this._onCollectionChange=n}_setUpdateStrategy(n){hx(n)&&n.updateOn!=null&&(this._updateOn=n.updateOn)}_parentMarkedDirty(n){let e=this._parent&&this._parent.dirty;return!n&&!!e&&!this._parent._anyControlsDirty()}_find(n){return null}_assignValidators(n){this._rawValidators=Array.isArray(n)?n.slice():n,this._composedValidatorFn=HJ(this._rawValidators)}_assignAsyncValidators(n){this._rawAsyncValidators=Array.isArray(n)?n.slice():n,this._composedAsyncValidatorFn=zJ(this._rawAsyncValidators)}},lu=class extends hc{constructor(n,e,i){super(Jk(e),eS(i,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,i={}){this.registerControl(n,e),this.updateValueAndValidity({emitEvent:i.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,i={}){this.controls[n]&&this.controls[n]._registerOnCollectionChange(()=>{}),delete this.controls[n],e&&this.registerControl(n,e),this.updateValueAndValidity({emitEvent:i.emitEvent}),this._onCollectionChange()}contains(n){return this.controls.hasOwnProperty(n)&&this.controls[n].enabled}setValue(n,e={}){VB(this,!0,n),Object.keys(n).forEach(i=>{LB(this,!0,i),this.controls[i].setValue(n[i],{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e)}patchValue(n,e={}){n!=null&&(Object.keys(n).forEach(i=>{let r=this.controls[i];r&&r.patchValue(n[i],{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e))}reset(n={},e={}){this._forEachChild((i,r)=>{i.reset(n?n[r]:null,{onlySelf:!0,emitEvent:e.emitEvent})}),this._updatePristine(e,this),this._updateTouched(e,this),this.updateValueAndValidity(e),e?.emitEvent!==!1&&this._events.next(new hg(this))}getRawValue(){return this._reduceChildren({},(n,e,i)=>(n[i]=e.getRawValue(),n))}_syncPendingControls(){let n=this._reduceChildren(!1,(e,i)=>i._syncPendingControls()?!0:e);return n&&this.updateValueAndValidity({onlySelf:!0}),n}_forEachChild(n){Object.keys(this.controls).forEach(e=>{let i=this.controls[e];i&&n(i,e)})}_setUpControls(){this._forEachChild(n=>{n.setParent(this),n._registerOnCollectionChange(this._onCollectionChange)})}_updateValue(){this.value=this._reduceValue()}_anyControls(n){for(let[e,i]of Object.entries(this.controls))if(this.contains(e)&&n(i))return!0;return!1}_reduceValue(){let n={};return this._reduceChildren(n,(e,i,r)=>((i.enabled||this.disabled)&&(e[r]=i.value),e))}_reduceChildren(n,e){let i=n;return this._forEachChild((r,o)=>{i=e(i,r,o)}),i}_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 px=lu;var Yk=class extends lu{};var xh=new T("",{providedIn:"root",factory:()=>fx}),fx="always";function BB(t,n){return[...n.path,t]}function pg(t,n,e=fx){tS(t,n),n.valueAccessor.writeValue(t.value),(t.disabled||e==="always")&&n.valueAccessor.setDisabledState?.(t.disabled),$J(t,n),GJ(t,n),WJ(t,n),UJ(t,n)}function cx(t,n,e=!0){let i=()=>{};n.valueAccessor&&(n.valueAccessor.registerOnChange(i),n.valueAccessor.registerOnTouched(i)),ux(t,n),t&&(n._invokeOnDestroyCallbacks(),t._registerOnCollectionChange(()=>{}))}function dx(t,n){t.forEach(e=>{e.registerOnValidatorChange&&e.registerOnValidatorChange(n)})}function UJ(t,n){if(n.valueAccessor.setDisabledState){let e=i=>{n.valueAccessor.setDisabledState(i)};t.registerOnDisabledChange(e),n._registerOnDestroy(()=>{t._unregisterOnDisabledChange(e)})}}function tS(t,n){let e=FB(t);n.validator!==null?t.setValidators(bB(e,n.validator)):typeof e=="function"&&t.setValidators([e]);let i=NB(t);n.asyncValidator!==null?t.setAsyncValidators(bB(i,n.asyncValidator)):typeof i=="function"&&t.setAsyncValidators([i]);let r=()=>t.updateValueAndValidity();dx(n._rawValidators,r),dx(n._rawAsyncValidators,r)}function ux(t,n){let e=!1;if(t!==null){if(n.validator!==null){let r=FB(t);if(Array.isArray(r)&&r.length>0){let o=r.filter(a=>a!==n.validator);o.length!==r.length&&(e=!0,t.setValidators(o))}}if(n.asyncValidator!==null){let r=NB(t);if(Array.isArray(r)&&r.length>0){let o=r.filter(a=>a!==n.asyncValidator);o.length!==r.length&&(e=!0,t.setAsyncValidators(o))}}}let i=()=>{};return dx(n._rawValidators,i),dx(n._rawAsyncValidators,i),e}function $J(t,n){n.valueAccessor.registerOnChange(e=>{t._pendingValue=e,t._pendingChange=!0,t._pendingDirty=!0,t.updateOn==="change"&&jB(t,n)})}function WJ(t,n){n.valueAccessor.registerOnTouched(()=>{t._pendingTouched=!0,t.updateOn==="blur"&&t._pendingChange&&jB(t,n),t.updateOn!=="submit"&&t.markAsTouched()})}function jB(t,n){t._pendingDirty&&t.markAsDirty(),t.setValue(t._pendingValue,{emitModelToViewChange:!1}),n.viewToModelUpdate(t._pendingValue),t._pendingChange=!1}function GJ(t,n){let e=(i,r)=>{n.valueAccessor.writeValue(i),r&&n.viewToModelUpdate(i)};t.registerOnChange(e),n._registerOnDestroy(()=>{t._unregisterOnChange(e)})}function HB(t,n){t==null,tS(t,n)}function qJ(t,n){return ux(t,n)}function iS(t,n){if(!t.hasOwnProperty("model"))return!1;let e=t.model;return e.isFirstChange()?!0:!Object.is(n,e.currentValue)}function YJ(t){return Object.getPrototypeOf(t.constructor)===MB}function zB(t,n){t._syncPendingControls(),n.forEach(e=>{let i=e.control;i.updateOn==="submit"&&i._pendingChange&&(e.viewToModelUpdate(i._pendingValue),i._pendingChange=!1)})}function nS(t,n){if(!n)return null;Array.isArray(n);let e,i,r;return n.forEach(o=>{o.constructor===Qi?e=o:YJ(o)?i=o:r=o}),r||i||e||null}function QJ(t,n){let e=t.indexOf(n);e>-1&&t.splice(e,1)}var KJ={provide:Es,useExisting:Kt(()=>pc)},dg=Promise.resolve(),pc=(()=>{class t extends Es{callSetDisabledState;get submitted(){return Ti(this.submittedReactive)}_submitted=Zt(()=>this.submittedReactive());submittedReactive=he(!1);_directives=new Set;form;ngSubmit=new U;options;constructor(e,i,r){super(),this.callSetDisabledState=r,this.form=new lu({},Zk(e),Xk(i))}ngAfterViewInit(){this._setUpdateStrategy()}get formDirective(){return this}get control(){return this.form}get path(){return[]}get controls(){return this.form.controls}addControl(e){dg.then(()=>{let i=this._findContainer(e.path);e.control=i.registerControl(e.name,e.control),pg(e.control,e,this.callSetDisabledState),e.control.updateValueAndValidity({emitEvent:!1}),this._directives.add(e)})}getControl(e){return this.form.get(e.path)}removeControl(e){dg.then(()=>{let i=this._findContainer(e.path);i&&i.removeControl(e.name),this._directives.delete(e)})}addFormGroup(e){dg.then(()=>{let i=this._findContainer(e.path),r=new lu({});HB(r,e),i.registerControl(e.name,r),r.updateValueAndValidity({emitEvent:!1})})}removeFormGroup(e){dg.then(()=>{let i=this._findContainer(e.path);i&&i.removeControl(e.name)})}getFormGroup(e){return this.form.get(e.path)}updateModel(e,i){dg.then(()=>{this.form.get(e.path).setValue(i)})}setValue(e){this.control.setValue(e)}onSubmit(e){return this.submittedReactive.set(!0),zB(this.form,this._directives),this.ngSubmit.emit(e),this.form._events.next(new lx(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(i){return new(i||t)(_e(ea,10),_e(fg,10),_e(xh,8))};static \u0275dir=F({type:t,selectors:[["form",3,"ngNoForm","",3,"formGroup",""],["ng-form"],["","ngForm",""]],hostBindings:function(i,r){i&1&&S("submit",function(a){return r.onSubmit(a)})("reset",function(){return r.onReset()})},inputs:{options:[0,"ngFormOptions","options"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],standalone:!1,features:[Ce([KJ]),le]})}return t})();function xB(t,n){let e=t.indexOf(n);e>-1&&t.splice(e,1)}function CB(t){return typeof t=="object"&&t!==null&&Object.keys(t).length===2&&"value"in t&&"disabled"in t}var Jo=class extends hc{defaultValue=null;_onChange=[];_pendingValue;_pendingChange=!1;constructor(n=null,e,i){super(Jk(e),eS(i,e)),this._applyFormState(n),this._setUpdateStrategy(e),this._initObservables(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator}),hx(e)&&(e.nonNullable||e.initialValueIsDefault)&&(CB(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(i=>i(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),this._pendingChange=!1,e?.emitEvent!==!1&&this._events.next(new hg(this))}_updateValue(){}_anyControls(n){return!1}_allControlsDisabled(){return this.disabled}registerOnChange(n){this._onChange.push(n)}_unregisterOnChange(n){xB(this._onChange,n)}registerOnDisabledChange(n){this._onDisabledChange.push(n)}_unregisterOnDisabledChange(n){xB(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){CB(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}},UB=Jo,ZJ=t=>t instanceof Jo;var XJ={provide:Hn,useExisting:Kt(()=>gg)},wB=Promise.resolve(),gg=(()=>{class t extends Hn{_changeDetectorRef;callSetDisabledState;control=new Jo;static ngAcceptInputType_isDisabled;_registered=!1;viewModel;name="";isDisabled;model;options;update=new U;constructor(e,i,r,o,a,s){super(),this._changeDetectorRef=a,this.callSetDisabledState=s,this._parent=e,this._setValidators(i),this._setAsyncValidators(r),this.valueAccessor=nS(this,o)}ngOnChanges(e){if(this._checkForErrors(),!this._registered||"name"in e){if(this._registered&&(this._checkName(),this.formDirective)){let i=e.name.previousValue;this.formDirective.removeControl({name:i,path:this._getPath(i)})}this._setUpControl()}"isDisabled"in e&&this._updateDisabled(e),iS(e,this.viewModel)&&(this._updateValue(this.model),this.viewModel=this.model)}ngOnDestroy(){this.formDirective&&this.formDirective.removeControl(this)}get path(){return this._getPath(this.name)}get formDirective(){return this._parent?this._parent.formDirective:null}viewToModelUpdate(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(){pg(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){wB.then(()=>{this.control.setValue(e,{emitViewToModelChange:!1}),this._changeDetectorRef?.markForCheck()})}_updateDisabled(e){let i=e.isDisabled.currentValue,r=i!==0&&V(i);wB.then(()=>{r&&!this.control.disabled?this.control.disable():!r&&this.control.disabled&&this.control.enable(),this._changeDetectorRef?.markForCheck()})}_getPath(e){return this._parent?BB(e,this._parent):[e]}static \u0275fac=function(i){return new(i||t)(_e(Es,9),_e(ea,10),_e(fg,10),_e(tr,10),_e(ye,8),_e(xh,8))};static \u0275dir=F({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:[Ce([XJ]),le,Ae]})}return t})();var Jr=(()=>{class t{static \u0275fac=function(i){return new(i||t)};static \u0275dir=F({type:t,selectors:[["form",3,"ngNoForm","",3,"ngNativeValidate",""]],hostAttrs:["novalidate",""],standalone:!1})}return t})(),JJ={provide:tr,useExisting:Kt(()=>cu),multi:!0},cu=(()=>{class t extends MB{writeValue(e){let i=e??"";this.setProperty("value",i)}registerOnChange(e){this.onChange=i=>{e(i==""?null:parseFloat(i))}}static \u0275fac=(()=>{let e;return function(r){return(e||(e=fe(t)))(r||t)}})();static \u0275dir=F({type:t,selectors:[["input","type","number","formControlName",""],["input","type","number","formControl",""],["input","type","number","ngModel",""]],hostBindings:function(i,r){i&1&&S("input",function(a){return r.onChange(a.target.value)})("blur",function(){return r.onTouched()})},standalone:!1,features:[Ce([JJ]),le]})}return t})();var rS=new T(""),eee={provide:Hn,useExisting:Kt(()=>wo)},wo=(()=>{class t extends Hn{_ngModelWarningConfig;callSetDisabledState;viewModel;form;set isDisabled(e){}model;update=new U;static _ngModelWarningSentOnce=!1;_ngModelWarningSent=!1;constructor(e,i,r,o,a){super(),this._ngModelWarningConfig=o,this.callSetDisabledState=a,this._setValidators(e),this._setAsyncValidators(i),this.valueAccessor=nS(this,r)}ngOnChanges(e){if(this._isControlChanged(e)){let i=e.form.previousValue;i&&cx(i,this,!1),pg(this.form,this,this.callSetDisabledState),this.form.updateValueAndValidity({emitEvent:!1})}iS(e,this.viewModel)&&(this.form.setValue(this.model),this.viewModel=this.model)}ngOnDestroy(){this.form&&cx(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(i){return new(i||t)(_e(ea,10),_e(fg,10),_e(tr,10),_e(rS,8),_e(xh,8))};static \u0275dir=F({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:[Ce([eee]),le,Ae]})}return t})(),tee={provide:Es,useExisting:Kt(()=>Ki)},Ki=(()=>{class t extends Es{callSetDisabledState;get submitted(){return Ti(this._submittedReactive)}set submitted(e){this._submittedReactive.set(e)}_submitted=Zt(()=>this._submittedReactive());_submittedReactive=he(!1);_oldForm;_onCollectionChange=()=>this._updateDomValue();directives=[];form=null;ngSubmit=new U;constructor(e,i,r){super(),this.callSetDisabledState=r,this._setValidators(e),this._setAsyncValidators(i)}ngOnChanges(e){e.hasOwnProperty("form")&&(this._updateValidators(),this._updateDomValue(),this._updateRegistrations(),this._oldForm=this.form)}ngOnDestroy(){this.form&&(ux(this.form,this),this.form._onCollectionChange===this._onCollectionChange&&this.form._registerOnCollectionChange(()=>{}))}get formDirective(){return this}get control(){return this.form}get path(){return[]}addControl(e){let i=this.form.get(e.path);return pg(i,e,this.callSetDisabledState),i.updateValueAndValidity({emitEvent:!1}),this.directives.push(e),i}getControl(e){return this.form.get(e.path)}removeControl(e){cx(e.control||null,e,!1),QJ(this.directives,e)}addFormGroup(e){this._setUpFormContainer(e)}removeFormGroup(e){this._cleanUpFormContainer(e)}getFormGroup(e){return this.form.get(e.path)}addFormArray(e){this._setUpFormContainer(e)}removeFormArray(e){this._cleanUpFormContainer(e)}getFormArray(e){return this.form.get(e.path)}updateModel(e,i){this.form.get(e.path).setValue(i)}onSubmit(e){return this._submittedReactive.set(!0),zB(this.form,this.directives),this.ngSubmit.emit(e),this.form._events.next(new lx(this.control)),e?.target?.method==="dialog"}onReset(){this.resetForm()}resetForm(e=void 0,i={}){this.form.reset(e,i),this._submittedReactive.set(!1)}_updateDomValue(){this.directives.forEach(e=>{let i=e.control,r=this.form.get(e.path);i!==r&&(cx(i||null,e),ZJ(r)&&(pg(r,e,this.callSetDisabledState),e.control=r))}),this.form._updateTreeValidity({emitEvent:!1})}_setUpFormContainer(e){let i=this.form.get(e.path);HB(i,e),i.updateValueAndValidity({emitEvent:!1})}_cleanUpFormContainer(e){if(this.form){let i=this.form.get(e.path);i&&qJ(i,e)&&i.updateValueAndValidity({emitEvent:!1})}}_updateRegistrations(){this.form._registerOnCollectionChange(this._onCollectionChange),this._oldForm&&this._oldForm._registerOnCollectionChange(()=>{})}_updateValidators(){tS(this.form,this),this._oldForm&&ux(this._oldForm,this)}static \u0275fac=function(i){return new(i||t)(_e(ea,10),_e(fg,10),_e(xh,8))};static \u0275dir=F({type:t,selectors:[["","formGroup",""]],hostBindings:function(i,r){i&1&&S("submit",function(a){return r.onSubmit(a)})("reset",function(){return r.onReset()})},inputs:{form:[0,"formGroup","form"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],standalone:!1,features:[Ce([tee]),le,Ae]})}return t})();var iee={provide:Hn,useExisting:Kt(()=>Lr)},Lr=(()=>{class t extends Hn{_ngModelWarningConfig;_added=!1;viewModel;control;name=null;set isDisabled(e){}model;update=new U;static _ngModelWarningSentOnce=!1;_ngModelWarningSent=!1;constructor(e,i,r,o,a){super(),this._ngModelWarningConfig=a,this._parent=e,this._setValidators(i),this._setAsyncValidators(r),this.valueAccessor=nS(this,o)}ngOnChanges(e){this._added||this._setUpControl(),iS(e,this.viewModel)&&(this.viewModel=this.model,this.formDirective.updateModel(this,this.model))}ngOnDestroy(){this.formDirective&&this.formDirective.removeControl(this)}viewToModelUpdate(e){this.viewModel=e,this.update.emit(e)}get path(){return BB(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(i){return new(i||t)(_e(Es,13),_e(ea,10),_e(fg,10),_e(tr,10),_e(rS,8))};static \u0275dir=F({type:t,selectors:[["","formControlName",""]],inputs:{name:[0,"formControlName","name"],isDisabled:[0,"disabled","isDisabled"],model:[0,"ngModel","model"]},outputs:{update:"ngModelChange"},standalone:!1,features:[Ce([iee]),le,Ae]})}return t})();var nee=(()=>{class t{_validator=nx;_onChange;_enabled;ngOnChanges(e){if(this.inputName in e){let i=this.normalizeInput(e[this.inputName].currentValue);this._enabled=this.enabled(i),this._validator=this._enabled?this.createValidator(i):nx,this._onChange&&this._onChange()}}validate(e){return this._validator(e)}registerOnValidatorChange(e){this._onChange=e}enabled(e){return e!=null}static \u0275fac=function(i){return new(i||t)};static \u0275dir=F({type:t,features:[Ae]})}return t})();var ree={provide:ea,useExisting:Kt(()=>Do),multi:!0};var Do=(()=>{class t extends nee{required;inputName="required";normalizeInput=V;createValidator=e=>kB;enabled(e){return e}static \u0275fac=(()=>{let e;return function(r){return(e||(e=fe(t)))(r||t)}})();static \u0275dir=F({type:t,selectors:[["","required","","formControlName","",3,"type","checkbox"],["","required","","formControl","",3,"type","checkbox"],["","required","","ngModel","",3,"type","checkbox"]],hostVars:1,hostBindings:function(i,r){i&2&&X("required",r._enabled?"":null)},inputs:{required:"required"},standalone:!1,features:[Ce([ree]),le]})}return t})();var $B=(()=>{class t{static \u0275fac=function(i){return new(i||t)};static \u0275mod=ee({type:t});static \u0275inj=J({})}return t})(),mx=class extends hc{constructor(n,e,i){super(Jk(e),eS(i,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(i=>{this.controls.push(i),this._registerControl(i)}):(this.controls.push(n),this._registerControl(n)),this.updateValueAndValidity({emitEvent:e.emitEvent}),this._onCollectionChange()}insert(n,e,i={}){this.controls.splice(n,0,e),this._registerControl(e),this.updateValueAndValidity({emitEvent:i.emitEvent})}removeAt(n,e={}){let i=this._adjustIndex(n);i<0&&(i=0),this.controls[i]&&this.controls[i]._registerOnCollectionChange(()=>{}),this.controls.splice(i,1),this.updateValueAndValidity({emitEvent:e.emitEvent})}setControl(n,e,i={}){let r=this._adjustIndex(n);r<0&&(r=0),this.controls[r]&&this.controls[r]._registerOnCollectionChange(()=>{}),this.controls.splice(r,1),e&&(this.controls.splice(r,0,e),this._registerControl(e)),this.updateValueAndValidity({emitEvent:i.emitEvent}),this._onCollectionChange()}get length(){return this.controls.length}setValue(n,e={}){VB(this,!1,n),n.forEach((i,r)=>{LB(this,!1,r),this.at(r).setValue(i,{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e)}patchValue(n,e={}){n!=null&&(n.forEach((i,r)=>{this.at(r)&&this.at(r).patchValue(i,{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e))}reset(n=[],e={}){this._forEachChild((i,r)=>{i.reset(n[r],{onlySelf:!0,emitEvent:e.emitEvent})}),this._updatePristine(e,this),this._updateTouched(e,this),this.updateValueAndValidity(e),e?.emitEvent!==!1&&this._events.next(new hg(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,i)=>i._syncPendingControls()?!0:e,!1);return n&&this.updateValueAndValidity({onlySelf:!0}),n}_forEachChild(n){this.controls.forEach((e,i)=>{n(e,i)})}_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}},oS=mx;function DB(t){return!!t&&(t.asyncValidators!==void 0||t.validators!==void 0||t.updateOn!==void 0)}var eo=(()=>{class t{useNonNullable=!1;get nonNullable(){let e=new t;return e.useNonNullable=!0,e}group(e,i=null){let r=this._reduceControls(e),o={};return DB(i)?o=i:i!==null&&(o.validators=i.validator,o.asyncValidators=i.asyncValidator),new lu(r,o)}record(e,i=null){let r=this._reduceControls(e);return new Yk(r,i)}control(e,i,r){let o={};return this.useNonNullable?(DB(i)?o=i:(o.validators=i,o.asyncValidators=r),new Jo(e,De(M({},o),{nonNullable:!0}))):new Jo(e,i,r)}array(e,i,r){let o=e.map(a=>this._createControl(a));return new mx(o,i,r)}_reduceControls(e){let i={};return Object.keys(e).forEach(r=>{i[r]=this._createControl(e[r])}),i}_createControl(e){if(e instanceof Jo)return e;if(e instanceof hc)return e;if(Array.isArray(e)){let i=e[0],r=e.length>1?e[1]:null,o=e.length>2?e[2]:null;return this.control(i,r,o)}else return this.control(e)}static \u0275fac=function(i){return new(i||t)};static \u0275prov=O({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();var du=(()=>{class t{static withConfig(e){return{ngModule:t,providers:[{provide:xh,useValue:e.callSetDisabledState??fx}]}}static \u0275fac=function(i){return new(i||t)};static \u0275mod=ee({type:t});static \u0275inj=J({imports:[$B]})}return t})(),zn=(()=>{class t{static withConfig(e){return{ngModule:t,providers:[{provide:rS,useValue:e.warnOnNgModelWithFormControl??"always"},{provide:xh,useValue:e.callSetDisabledState??fx}]}}static \u0275fac=function(i){return new(i||t)};static \u0275mod=ee({type:t});static \u0275inj=J({imports:[$B]})}return t})();var $i=(()=>{class t{static \u0275fac=function(i){return new(i||t)};static \u0275mod=ee({type:t});static \u0275inj=J({imports:[we,Ym,Oi,we]})}return t})();var oee=["trigger"],aee=["panel"],see=[[["mat-select-trigger"]],"*"],lee=["mat-select-trigger","*"];function cee(t,n){if(t&1&&(h(0,"span",4),_(1),p()),t&2){let e=C();g(),H(e.placeholder)}}function dee(t,n){t&1&&oe(0)}function uee(t,n){if(t&1&&(h(0,"span",11),_(1),p()),t&2){let e=C(2);g(),H(e.triggerValue)}}function mee(t,n){if(t&1&&(h(0,"span",5),N(1,dee,1,0)(2,uee,2,1,"span",11),p()),t&2){let e=C();g(),L(e.customTrigger?1:2)}}function hee(t,n){if(t&1){let e=Y();h(0,"div",12,1),S("keydown",function(r){I(e);let o=C();return A(o._handleKeydown(r))}),oe(2,1),p()}if(t&2){let e=C();it($o("mat-mdc-select-panel mdc-menu-surface mdc-menu-surface--open ",e._getPanelTheme())),G("mat-select-panel-animations-enabled",!e._animationsDisabled),y("ngClass",e.panelClass),X("id",e.id+"-panel")("aria-multiselectable",e.multiple)("aria-label",e.ariaLabel||null)("aria-labelledby",e._getPanelAriaLabelledby())}}var aS=new T("mat-select-scroll-strategy",{providedIn:"root",factory:()=>{let t=u(de);return()=>wn(t)}});function WB(t){let n=u(de);return()=>wn(n)}var GB=new T("MAT_SELECT_CONFIG"),qB={provide:aS,deps:[],useFactory:WB},YB=new T("MatSelectTrigger"),gx=class{source;value;constructor(n,e){this.source=n,this.value=e}},Na=(()=>{class t{_viewportRuler=u(Xn);_changeDetectorRef=u(ye);_elementRef=u(q);_dir=u(Vt,{optional:!0});_idGenerator=u(Ze);_renderer=u(je);_parentFormField=u(Xo,{optional:!0});ngControl=u(Hn,{self:!0,optional:!0});_liveAnnouncer=u(Gf);_defaultOptions=u(GB,{optional:!0});_animationsDisabled=Ye();_initialized=new z;_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 i=this.options.toArray()[e];if(i){let r=this.panel.nativeElement,o=Qf(e,this.options,this.optionGroups),a=i._getHostElement();e===0&&o===1?r.scrollTop=0:r.scrollTop=Kf(a.offsetTop,a.offsetHeight,r.scrollTop,r.offsetHeight)}}_positioningSettled(){this._scrollOptionIntoView(this._keyManager.activeItemIndex||0)}_getChangeEvent(e){return new gx(this,e)}_scrollStrategyFactory=u(aS);_panelOpen=!1;_compareWith=(e,i)=>e===i;_uid=this._idGenerator.getId("mat-select-");_triggerAriaLabelledBy=null;_previousControl;_destroy=new z;_errorStateTracker;stateChanges=new z;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=he(!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(Le.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=kn(()=>{let e=this.options;return e?e.changes.pipe(He(e),$e(()=>Je(...e.map(i=>i.onSelectionChange)))):this._initialized.pipe($e(()=>this.optionSelectionChanges))});openedChange=new U;_openedStream=this.openedChange.pipe(ce(e=>e),se(()=>{}));_closedStream=this.openedChange.pipe(ce(e=>!e),se(()=>{}));selectionChange=new U;valueChange=new U;constructor(){let e=u(dl),i=u(pc,{optional:!0}),r=u(Ki,{optional:!0}),o=u(new Ii("tabindex"),{optional:!0});this.ngControl&&(this.ngControl.valueAccessor=this),this._defaultOptions?.typeaheadDebounceInterval!=null&&(this.typeaheadDebounceInterval=this._defaultOptions.typeaheadDebounceInterval),this._errorStateTracker=new cl(e,this.ngControl,r,i,this.stateChanges),this._scrollStrategy=this._scrollStrategyFactory(),this.tabIndex=o==null?0:parseInt(o)||0,this.id=this.id}ngOnInit(){this._selectionModel=new sg(this.multiple),this.stateChanges.next(),this._viewportRuler.change().pipe(Te(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(Te(this._destroy)).subscribe(e=>{e.added.forEach(i=>i.select()),e.removed.forEach(i=>i.deselect())}),this.options.changes.pipe(He(null),Te(this._destroy)).subscribe(()=>{this._resetOptions(),this._initializeSelection()})}ngDoCheck(){let e=this._getTriggerAriaLabelledby(),i=this.ngControl;if(e!==this._triggerAriaLabelledBy){let r=this._elementRef.nativeElement;this._triggerAriaLabelledBy=e,e?r.setAttribute("aria-labelledby",e):r.removeAttribute("aria-labelledby")}i&&(this._previousControl!==i.control&&(this._previousControl!==void 0&&i.disabled!==null&&i.disabled!==this.disabled&&(this.disabled=i.disabled),this._previousControl=i.control),this.updateErrorState())}ngOnChanges(e){(e.disabled||e.userAriaDescribedBy)&&this.stateChanges.next(),e.typeaheadDebounceInterval&&this._keyManager&&this._keyManager.withTypeAhead(this.typeaheadDebounceInterval)}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(lt(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 i=`${this.id}-panel`;this._trackedModal&&sc(this._trackedModal,"aria-owns",i),Zm(e,"aria-owns",i),this._trackedModal=e}_clearFromModal(){if(!this._trackedModal)return;let e=`${this.id}-panel`;sc(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=()=>{i(),clearTimeout(r),this._cleanupDetach=void 0};let e=this.panel.nativeElement,i=this._renderer.listen(e,"animationend",o=>{o.animationName==="_mat-select-exit"&&(this._cleanupDetach?.(),this._detachOverlay())}),r=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(i=>i.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 i=e.keyCode,r=i===40||i===38||i===37||i===39,o=i===13||i===32,a=this._keyManager;if(!a.isTyping()&&o&&!Ft(e)||(this.multiple||e.altKey)&&r)e.preventDefault(),this.open();else if(!this.multiple){let s=this.selected;a.onKeydown(e);let l=this.selected;l&&s!==l&&this._liveAnnouncer.announce(l.viewValue,1e4)}}_handleOpenKeydown(e){let i=this._keyManager,r=e.keyCode,o=r===40||r===38,a=i.isTyping();if(o&&e.altKey)e.preventDefault(),this.close();else if(!a&&(r===13||r===32)&&i.activeItem&&!Ft(e))e.preventDefault(),i.activeItem._selectViaInteraction();else if(!a&&this._multiple&&r===65&&e.ctrlKey){e.preventDefault();let s=this.options.some(l=>!l.disabled&&!l.selected);this.options.forEach(l=>{l.disabled||(s?l.select():l.deselect())})}else{let s=i.activeItemIndex;i.onKeydown(e),this._multiple&&o&&e.shiftKey&&i.activeItem&&i.activeItemIndex!==s&&i.activeItem._selectViaInteraction()}}_handleOverlayKeydown(e){e.keyCode===27&&!Ft(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())}_getPanelTheme(){return this._parentFormField?`mat-${this._parentFormField.color}`:""}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(i=>i.setInactiveStyles()),this._selectionModel.clear(),this.multiple&&e)Array.isArray(e),e.forEach(i=>this._selectOptionByValue(i)),this._sortValues();else{let i=this._selectOptionByValue(e);i?this._keyManager.updateActiveItem(i):this.panelOpen||this._keyManager.updateActiveItem(-1)}this._changeDetectorRef.markForCheck()}_selectOptionByValue(e){let i=this.options.find(r=>{if(this._selectionModel.isSelected(r))return!1;try{return(r.value!=null||this.canSelectNullableOptions)&&this._compareWith(r.value,e)}catch{return!1}});return i&&this._selectionModel.select(i),i}_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 bh?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 qd(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=Je(this.options.changes,this._destroy);this.optionSelectionChanges.pipe(Te(e)).subscribe(i=>{this._onSelect(i.source,i.isUserInput),i.isUserInput&&!this.multiple&&this._panelOpen&&(this.close(),this.focus())}),Je(...this.options.map(i=>i._stateChanges)).pipe(Te(e)).subscribe(()=>{this._changeDetectorRef.detectChanges(),this.stateChanges.next()})}_onSelect(e,i){let r=this._selectionModel.isSelected(e);!this.canSelectNullableOptions&&e.value==null&&!this._multiple?(e.deselect(),this._selectionModel.clear(),this.value!=null&&this._propagateChanges(e.value)):(r!==e.selected&&(e.selected?this._selectionModel.select(e):this._selectionModel.deselect(e)),i&&this._keyManager.setActiveItem(e),this.multiple&&(this._sortValues(),i&&this.focus())),r!==this._selectionModel.isSelected(e)&&this._propagateChanges(),this.stateChanges.next()}_sortValues(){if(this.multiple){let e=this.options.toArray();this._selectionModel.sort((i,r)=>this.sortComparator?this.sortComparator(i,r,e):e.indexOf(i)-e.indexOf(r)),this.stateChanges.next()}}_propagateChanges(e){let i;this.multiple?i=this.selected.map(r=>r.value):i=this.selected?this.selected.value:e,this._value=i,this.valueChange.emit(i),this._onChange(i),this.selectionChange.emit(this._getChangeEvent(i)),this._changeDetectorRef.markForCheck()}_highlightCorrectOption(){if(this._keyManager)if(this.empty){let e=-1;for(let i=0;i0&&!!this._overlayDir}focus(e){this._elementRef.nativeElement.focus(e)}_getPanelAriaLabelledby(){if(this.ariaLabel)return null;let e=this._parentFormField?.getLabelId()||null,i=e?e+" ":"";return this.ariaLabelledby?i+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){e.length?this._elementRef.nativeElement.setAttribute("aria-describedby",e.join(" ")):this._elementRef.nativeElement.removeAttribute("aria-describedby")}onContainerClick(){this.focus(),this.open()}get shouldLabelFloat(){return this.panelOpen||!this.empty||this.focused&&!!this.placeholder}static \u0275fac=function(i){return new(i||t)};static \u0275cmp=E({type:t,selectors:[["mat-select"]],contentQueries:function(i,r,o){if(i&1&&(xe(o,YB,5),xe(o,xn,5),xe(o,Zd,5)),i&2){let a;B(a=j())&&(r.customTrigger=a.first),B(a=j())&&(r.options=a),B(a=j())&&(r.optionGroups=a)}},viewQuery:function(i,r){if(i&1&&(ie(oee,5),ie(aee,5),ie(tx,5)),i&2){let o;B(o=j())&&(r.trigger=o.first),B(o=j())&&(r.panel=o.first),B(o=j())&&(r._overlayDir=o.first)}},hostAttrs:["role","combobox","aria-haspopup","listbox",1,"mat-mdc-select"],hostVars:21,hostBindings:function(i,r){i&1&&S("keydown",function(a){return r._handleKeydown(a)})("focus",function(){return r._onFocus()})("blur",function(){return r._onBlur()}),i&2&&(X("id",r.id)("tabindex",r.disabled?-1:r.tabIndex)("aria-controls",r.panelOpen?r.id+"-panel":null)("aria-expanded",r.panelOpen)("aria-label",r.ariaLabel||null)("aria-required",r.required.toString())("aria-disabled",r.disabled.toString())("aria-invalid",r.errorState)("aria-activedescendant",r._getAriaActiveDescendant()),G("mat-mdc-select-disabled",r.disabled)("mat-mdc-select-invalid",r.errorState)("mat-mdc-select-required",r.required)("mat-mdc-select-empty",r.empty)("mat-mdc-select-multiple",r.multiple)("mat-select-open",r.panelOpen))},inputs:{userAriaDescribedBy:[0,"aria-describedby","userAriaDescribedBy"],panelClass:"panelClass",disabled:[2,"disabled","disabled",V],disableRipple:[2,"disableRipple","disableRipple",V],tabIndex:[2,"tabIndex","tabIndex",e=>e==null?0:ct(e)],hideSingleSelectionIndicator:[2,"hideSingleSelectionIndicator","hideSingleSelectionIndicator",V],placeholder:"placeholder",required:[2,"required","required",V],multiple:[2,"multiple","multiple",V],disableOptionCentering:[2,"disableOptionCentering","disableOptionCentering",V],compareWith:"compareWith",value:"value",ariaLabel:[0,"aria-label","ariaLabel"],ariaLabelledby:[0,"aria-labelledby","ariaLabelledby"],errorStateMatcher:"errorStateMatcher",typeaheadDebounceInterval:[2,"typeaheadDebounceInterval","typeaheadDebounceInterval",ct],sortComparator:"sortComparator",id:"id",panelWidth:"panelWidth",canSelectNullableOptions:[2,"canSelectNullableOptions","canSelectNullableOptions",V]},outputs:{openedChange:"openedChange",_openedStream:"opened",_closedStream:"closed",selectionChange:"selectionChange",valueChange:"valueChange"},exportAs:["matSelect"],features:[Ce([{provide:Ra,useExisting:t},{provide:Kd,useExisting:t}]),Ae],ngContentSelectors:lee,decls:11,vars:9,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","","cdkConnectedOverlayLockPosition","","cdkConnectedOverlayHasBackdrop","","cdkConnectedOverlayBackdropClass","cdk-overlay-transparent-backdrop",3,"detach","backdropClick","overlayKeydown","cdkConnectedOverlayDisableClose","cdkConnectedOverlayPanelClass","cdkConnectedOverlayScrollStrategy","cdkConnectedOverlayOrigin","cdkConnectedOverlayPositions","cdkConnectedOverlayWidth","cdkConnectedOverlayFlexibleDimensions"],[1,"mat-mdc-select-min-line"],["role","listbox","tabindex","-1",3,"keydown","ngClass"]],template:function(i,r){if(i&1){let o=Y();Me(see),h(0,"div",2,0),S("click",function(){return I(o),A(r.open())}),h(3,"div",3),N(4,cee,2,1,"span",4)(5,mee,3,1,"span",5),p(),h(6,"div",6)(7,"div",7),Gt(),h(8,"svg",8),k(9,"path",9),p()()()(),R(10,hee,3,10,"ng-template",10),S("detach",function(){return I(o),A(r.close())})("backdropClick",function(){return I(o),A(r.close())})("overlayKeydown",function(s){return I(o),A(r._handleOverlayKeydown(s))})}if(i&2){let o=Se(1);g(3),X("id",r._valueId),g(),L(r.empty?4:5),g(6),y("cdkConnectedOverlayDisableClose",!0)("cdkConnectedOverlayPanelClass",r._overlayPanelClass)("cdkConnectedOverlayScrollStrategy",r._scrollStrategy)("cdkConnectedOverlayOrigin",r._preferredOverlayOrigin||o)("cdkConnectedOverlayPositions",r._positions)("cdkConnectedOverlayWidth",r._overlayWidth)("cdkConnectedOverlayFlexibleDimensions",!0)}},dependencies:[bh,tx,Pd],styles:[`@keyframes _mat-select-enter{from{opacity:0;transform:scaleY(0.8)}to{opacity:1;transform:none}}@keyframes _mat-select-exit{from{opacity:1}to{opacity:0}}.mat-mdc-select{display:inline-block;width:100%;outline:none;-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;color:var(--mat-select-enabled-trigger-text-color, var(--mat-sys-on-surface));font-family:var(--mat-select-trigger-text-font, var(--mat-sys-body-large-font));line-height:var(--mat-select-trigger-text-line-height, var(--mat-sys-body-large-line-height));font-size:var(--mat-select-trigger-text-size, var(--mat-sys-body-large-size));font-weight:var(--mat-select-trigger-text-weight, var(--mat-sys-body-large-weight));letter-spacing:var(--mat-select-trigger-text-tracking, var(--mat-sys-body-large-tracking))}div.mat-mdc-select-panel{box-shadow:var(--mat-select-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-mdc-select-disabled{color:var(--mat-select-disabled-trigger-text-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent))}.mat-mdc-select-disabled .mat-mdc-select-placeholder{color:var(--mat-select-disabled-trigger-text-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent))}.mat-mdc-select-trigger{display:inline-flex;align-items:center;cursor:pointer;position:relative;box-sizing:border-box;width:100%}.mat-mdc-select-disabled .mat-mdc-select-trigger{-webkit-user-select:none;user-select:none;cursor:default}.mat-mdc-select-value{width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.mat-mdc-select-value-text{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.mat-mdc-select-arrow-wrapper{height:24px;flex-shrink:0;display:inline-flex;align-items:center}.mat-form-field-appearance-fill .mdc-text-field--no-label .mat-mdc-select-arrow-wrapper{transform:none}.mat-mdc-form-field .mat-mdc-select.mat-mdc-select-invalid .mat-mdc-select-arrow,.mat-form-field-invalid:not(.mat-form-field-disabled) .mat-mdc-form-field-infix::after{color:var(--mat-select-invalid-arrow-color, var(--mat-sys-error))}.mat-mdc-select-arrow{width:10px;height:5px;position:relative;color:var(--mat-select-enabled-arrow-color, var(--mat-sys-on-surface-variant))}.mat-mdc-form-field.mat-focused .mat-mdc-select-arrow{color:var(--mat-select-focused-arrow-color, var(--mat-sys-primary))}.mat-mdc-form-field .mat-mdc-select.mat-mdc-select-disabled .mat-mdc-select-arrow{color:var(--mat-select-disabled-arrow-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent))}.mat-select-open .mat-mdc-select-arrow{transform:rotate(180deg)}.mat-form-field-animations-enabled .mat-mdc-select-arrow{transition:transform 80ms linear}.mat-mdc-select-arrow svg{fill:currentColor;position:absolute;top:50%;left:50%;transform:translate(-50%, -50%)}@media(forced-colors: active){.mat-mdc-select-arrow svg{fill:CanvasText}.mat-mdc-select-disabled .mat-mdc-select-arrow svg{fill:GrayText}}div.mat-mdc-select-panel{width:100%;max-height:275px;outline:0;overflow:auto;padding:8px 0;border-radius:4px;box-sizing:border-box;position:relative;background-color:var(--mat-select-panel-background-color, var(--mat-sys-surface-container))}@media(forced-colors: active){div.mat-mdc-select-panel{outline:solid 1px}}.cdk-overlay-pane:not(.mat-mdc-select-panel-above) div.mat-mdc-select-panel{border-top-left-radius:0;border-top-right-radius:0;transform-origin:top center}.mat-mdc-select-panel-above div.mat-mdc-select-panel{border-bottom-left-radius:0;border-bottom-right-radius:0;transform-origin:bottom center}.mat-select-panel-animations-enabled{animation:_mat-select-enter 120ms cubic-bezier(0, 0, 0.2, 1)}.mat-select-panel-animations-enabled.mat-select-panel-exit{animation:_mat-select-exit 100ms linear}.mat-mdc-select-placeholder{transition:color 400ms 133.3333333333ms cubic-bezier(0.25, 0.8, 0.25, 1);color:var(--mat-select-placeholder-text-color, var(--mat-sys-on-surface-variant))}.mat-mdc-form-field:not(.mat-form-field-animations-enabled) .mat-mdc-select-placeholder,._mat-animation-noopable .mat-mdc-select-placeholder{transition:none}.mat-form-field-hide-placeholder .mat-mdc-select-placeholder{color:rgba(0,0,0,0);-webkit-text-fill-color:rgba(0,0,0,0);transition:none;display:block}.mat-mdc-form-field-type-mat-select:not(.mat-form-field-disabled) .mat-mdc-text-field-wrapper{cursor:pointer}.mat-mdc-form-field-type-mat-select.mat-form-field-appearance-fill .mat-mdc-floating-label{max-width:calc(100% - 18px)}.mat-mdc-form-field-type-mat-select.mat-form-field-appearance-fill .mdc-floating-label--float-above{max-width:calc(100%/0.75 - 24px)}.mat-mdc-form-field-type-mat-select.mat-form-field-appearance-outline .mdc-notched-outline__notch{max-width:calc(100% - 60px)}.mat-mdc-form-field-type-mat-select.mat-form-field-appearance-outline .mdc-text-field--label-floating .mdc-notched-outline__notch{max-width:calc(100% - 24px)}.mat-mdc-select-min-line:empty::before{content:" ";white-space:pre;width:1px;display:inline-block;visibility:hidden}.mat-form-field-appearance-fill .mat-mdc-select-arrow-wrapper{transform:var(--mat-select-arrow-transform, translateY(-8px))} +`],encapsulation:2,changeDetection:0})}return t})();var fc=(()=>{class t{static \u0275fac=function(i){return new(i||t)};static \u0275mod=ee({type:t});static \u0275inj=J({providers:[qB],imports:[er,rh,we,vr,$i,rh,we]})}return t})();var pee=["mat-icon-button",""],fee=["*"],gee=new T("MAT_BUTTON_CONFIG");function QB(t){return t==null?void 0:ct(t)}var sS=(()=>{class t{_elementRef=u(q);_ngZone=u(ae);_animationsDisabled=Ye();_config=u(gee,{optional:!0});_focusMonitor=u(Yt);_cleanupClick;_renderer=u(je);_rippleLoader=u(Z0);_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(){u(ut).load(Di);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",i){e?this._focusMonitor.focusVia(this._elementRef.nativeElement,e,i):this._elementRef.nativeElement.focus(i)}_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(i){return new(i||t)};static \u0275dir=F({type:t,hostAttrs:[1,"mat-mdc-button-base"],hostVars:13,hostBindings:function(i,r){i&2&&(X("disabled",r._getDisabledAttribute())("aria-disabled",r._getAriaDisabled())("tabindex",r._getTabIndex()),it(r.color?"mat-"+r.color:""),G("mat-mdc-button-disabled",r.disabled)("mat-mdc-button-disabled-interactive",r.disabledInteractive)("mat-unthemed",!r.color)("_mat-animation-noopable",r._animationsDisabled))},inputs:{color:"color",disableRipple:[2,"disableRipple","disableRipple",V],disabled:[2,"disabled","disabled",V],ariaDisabled:[2,"aria-disabled","ariaDisabled",V],disabledInteractive:[2,"disabledInteractive","disabledInteractive",V],tabIndex:[2,"tabIndex","tabIndex",QB],_tabindex:[2,"tabindex","_tabindex",QB]}})}return t})(),ti=(()=>{class t extends sS{constructor(){super(),this._rippleLoader.configureRipple(this._elementRef.nativeElement,{centered:!0})}static \u0275fac=function(i){return new(i||t)};static \u0275cmp=E({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:[le],attrs:pee,ngContentSelectors:fee,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(i,r){i&1&&(Me(),ai(0,"span",0),oe(1),ai(2,"span",1)(3,"span",2))},styles:[`.mat-mdc-icon-button{-webkit-user-select:none;user-select:none;display:inline-block;position:relative;box-sizing:border-box;border:none;outline:none;background-color:rgba(0,0,0,0);fill:currentColor;text-decoration:none;cursor:pointer;z-index:0;overflow:visible;border-radius:var(--mat-icon-button-container-shape, var(--mat-sys-corner-full, 50%));flex-shrink:0;text-align:center;width:var(--mat-icon-button-state-layer-size, 40px);height:var(--mat-icon-button-state-layer-size, 40px);padding:calc(calc(var(--mat-icon-button-state-layer-size, 40px) - var(--mat-icon-button-icon-size, 24px)) / 2);font-size:var(--mat-icon-button-icon-size, 24px);color:var(--mat-icon-button-icon-color, var(--mat-sys-on-surface-variant));-webkit-tap-highlight-color:rgba(0,0,0,0)}.mat-mdc-icon-button .mat-mdc-button-ripple,.mat-mdc-icon-button .mat-mdc-button-persistent-ripple,.mat-mdc-icon-button .mat-mdc-button-persistent-ripple::before{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none;border-radius:inherit}.mat-mdc-icon-button .mat-mdc-button-ripple{overflow:hidden}.mat-mdc-icon-button .mat-mdc-button-persistent-ripple::before{content:"";opacity:0}.mat-mdc-icon-button .mdc-button__label,.mat-mdc-icon-button .mat-icon{z-index:1;position:relative}.mat-mdc-icon-button .mat-focus-indicator{top:0;left:0;right:0;bottom:0;position:absolute;border-radius:inherit}.mat-mdc-icon-button:focus>.mat-focus-indicator::before{content:"";border-radius:inherit}.mat-mdc-icon-button .mat-ripple-element{background-color:var(--mat-icon-button-ripple-color, color-mix(in srgb, var(--mat-sys-on-surface-variant) calc(var(--mat-sys-pressed-state-layer-opacity) * 100%), transparent))}.mat-mdc-icon-button .mat-mdc-button-persistent-ripple::before{background-color:var(--mat-icon-button-state-layer-color, var(--mat-sys-on-surface-variant))}.mat-mdc-icon-button.mat-mdc-button-disabled .mat-mdc-button-persistent-ripple::before{background-color:var(--mat-icon-button-disabled-state-layer-color, var(--mat-sys-on-surface-variant))}.mat-mdc-icon-button:hover>.mat-mdc-button-persistent-ripple::before{opacity:var(--mat-icon-button-hover-state-layer-opacity, var(--mat-sys-hover-state-layer-opacity))}.mat-mdc-icon-button.cdk-program-focused>.mat-mdc-button-persistent-ripple::before,.mat-mdc-icon-button.cdk-keyboard-focused>.mat-mdc-button-persistent-ripple::before,.mat-mdc-icon-button.mat-mdc-button-disabled-interactive:focus>.mat-mdc-button-persistent-ripple::before{opacity:var(--mat-icon-button-focus-state-layer-opacity, var(--mat-sys-focus-state-layer-opacity))}.mat-mdc-icon-button:active>.mat-mdc-button-persistent-ripple::before{opacity:var(--mat-icon-button-pressed-state-layer-opacity, var(--mat-sys-pressed-state-layer-opacity))}.mat-mdc-icon-button .mat-mdc-button-touch-target{position:absolute;top:50%;height:var(--mat-icon-button-touch-target-size, 48px);display:var(--mat-icon-button-touch-target-display, block);left:50%;width:var(--mat-icon-button-touch-target-size, 48px);transform:translate(-50%, -50%)}.mat-mdc-icon-button._mat-animation-noopable{transition:none !important;animation:none !important}.mat-mdc-icon-button[disabled],.mat-mdc-icon-button.mat-mdc-button-disabled{cursor:default;pointer-events:none;color:var(--mat-icon-button-disabled-icon-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent))}.mat-mdc-icon-button.mat-mdc-button-disabled-interactive{pointer-events:auto}.mat-mdc-icon-button img,.mat-mdc-icon-button svg{width:var(--mat-icon-button-icon-size, 24px);height:var(--mat-icon-button-icon-size, 24px);vertical-align:baseline}.mat-mdc-icon-button .mat-mdc-button-persistent-ripple{border-radius:var(--mat-icon-button-container-shape, var(--mat-sys-corner-full, 50%))}.mat-mdc-icon-button[hidden]{display:none}.mat-mdc-icon-button.mat-unthemed:not(.mdc-ripple-upgraded):focus::before,.mat-mdc-icon-button.mat-primary:not(.mdc-ripple-upgraded):focus::before,.mat-mdc-icon-button.mat-accent:not(.mdc-ripple-upgraded):focus::before,.mat-mdc-icon-button.mat-warn:not(.mdc-ripple-upgraded):focus::before{background:rgba(0,0,0,0);opacity:1} +`,`@media(forced-colors: active){.mat-mdc-button:not(.mdc-button--outlined),.mat-mdc-unelevated-button:not(.mdc-button--outlined),.mat-mdc-raised-button:not(.mdc-button--outlined),.mat-mdc-outlined-button:not(.mdc-button--outlined),.mat-mdc-button-base.mat-tonal-button,.mat-mdc-icon-button.mat-mdc-icon-button,.mat-mdc-outlined-button .mdc-button__ripple{outline:solid 1px}} +`],encapsulation:2,changeDetection:0})}return t})();var _ee=["tooltip"],lS=20;var cS=new T("mat-tooltip-scroll-strategy",{providedIn:"root",factory:()=>{let t=u(de);return()=>wn(t,{scrollThrottle:lS})}});function XB(t){let n=u(de);return()=>wn(n,{scrollThrottle:lS})}var dS={provide:cS,deps:[],useFactory:XB};function JB(){return{showDelay:0,hideDelay:0,touchendHideDelay:1500}}var e3=new T("mat-tooltip-default-options",{providedIn:"root",factory:JB});var KB="tooltip-panel",ZB=rc({passive:!0}),bee=8,vee=8,yee=24,xee=200,Eo=(()=>{class t{_elementRef=u(q);_ngZone=u(ae);_platform=u(qe);_ariaDescriber=u(Xm);_focusMonitor=u(Yt);_dir=u(Vt);_injector=u(de);_viewContainerRef=u(nt);_animationsDisabled=Ye();_defaultOptions=u(e3,{optional:!0});_overlayRef;_tooltipInstance;_overlayPanelClass;_portal;_position="below";_positionAtOrigin=!1;_disabled=!1;_tooltipClass;_viewInitialized=!1;_pointerExitEventsInitialized=!1;_tooltipComponent=t3;_viewportMargin=8;_currentPosition;_cssClassPrefix="mat-mdc";_ariaDescriptionPending;_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=Ai(e),this._detach(),this._overlayRef=null}get disabled(){return this._disabled}set disabled(e){let i=Ai(e);this._disabled!==i&&(this._disabled=i,i?this.hide(0):this._setupPointerEnterEventsIfNeeded(),this._syncAriaDescription(this.message))}get showDelay(){return this._showDelay}set showDelay(e){this._showDelay=Ln(e)}_showDelay;get hideDelay(){return this._hideDelay}set hideDelay(e){this._hideDelay=Ln(e),this._tooltipInstance&&(this._tooltipInstance._mouseLeaveHideDelay=this._hideDelay)}_hideDelay;touchGestures="auto";get message(){return this._message}set message(e){let i=this._message;this._message=e!=null?String(e).trim():"",!this._message&&this._isTooltipVisible()?this.hide(0):(this._setupPointerEnterEventsIfNeeded(),this._updateTooltipMessage()),this._syncAriaDescription(i)}_message="";get tooltipClass(){return this._tooltipClass}set tooltipClass(e){this._tooltipClass=e,this._tooltipInstance&&this._setTooltipClass(this._tooltipClass)}_passiveListeners=[];_touchstartTimeout=null;_destroyed=new z;_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=bee}ngAfterViewInit(){this._viewInitialized=!0,this._setupPointerEnterEventsIfNeeded(),this._focusMonitor.monitor(this._elementRef).pipe(Te(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._passiveListeners.forEach(([i,r])=>{e.removeEventListener(i,r,ZB)}),this._passiveListeners.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,i){if(this.disabled||!this.message||this._isTooltipVisible()){this._tooltipInstance?._cancelPendingAnimations();return}let r=this._createOverlay(i);this._detach(),this._portal=this._portal||new Zr(this._tooltipComponent,this._viewContainerRef);let o=this._tooltipInstance=r.attach(this._portal).instance;o._triggerElement=this._elementRef.nativeElement,o._mouseLeaveHideDelay=this._hideDelay,o.afterHidden().pipe(Te(this._destroyed)).subscribe(()=>this._detach()),this._setTooltipClass(this._tooltipClass),this._updateTooltipMessage(),o.show(e)}hide(e=this.hideDelay){let i=this._tooltipInstance;i&&(i.isVisible()?i.hide(e):(i._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 a=this._overlayRef.getConfig().positionStrategy;if((!this.positionAtOrigin||!e)&&a._origin instanceof q)return this._overlayRef;this._detach()}let i=this._injector.get(ws).getAncestorScrollContainers(this._elementRef),r=`${this._cssClassPrefix}-${KB}`,o=Fa(this._injector,this.positionAtOrigin?e||this._elementRef:this._elementRef).withTransformOriginOn(`.${this._cssClassPrefix}-tooltip`).withFlexibleDimensions(!1).withViewportMargin(this._viewportMargin).withScrollableContainers(i);return o.positionChanges.pipe(Te(this._destroyed)).subscribe(a=>{this._updateCurrentPositionClass(a.connectionPair),this._tooltipInstance&&a.scrollableViewProperties.isOverlayClipped&&this._tooltipInstance.isVisible()&&this._ngZone.run(()=>this.hide(0))}),this._overlayRef=Nr(this._injector,{direction:this._dir,positionStrategy:o,panelClass:this._overlayPanelClass?[...this._overlayPanelClass,r]:r,scrollStrategy:this._injector.get(cS)(),disableAnimations:this._animationsDisabled}),this._updatePosition(this._overlayRef),this._overlayRef.detachments().pipe(Te(this._destroyed)).subscribe(()=>this._detach()),this._overlayRef.outsidePointerEvents().pipe(Te(this._destroyed)).subscribe(()=>this._tooltipInstance?._handleBodyInteraction()),this._overlayRef.keydownEvents().pipe(Te(this._destroyed)).subscribe(a=>{this._isTooltipVisible()&&a.keyCode===27&&!Ft(a)&&(a.preventDefault(),a.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(Te(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 i=e.getConfig().positionStrategy,r=this._getOrigin(),o=this._getOverlayPosition();i.withPositions([this._addOffset(M(M({},r.main),o.main)),this._addOffset(M(M({},r.fallback),o.fallback))])}_addOffset(e){let i=vee,r=!this._dir||this._dir.value=="ltr";return e.originY==="top"?e.offsetY=-i:e.originY==="bottom"?e.offsetY=i:e.originX==="start"?e.offsetX=r?-i:i:e.originX==="end"&&(e.offsetX=r?i:-i),e}_getOrigin(){let e=!this._dir||this._dir.value=="ltr",i=this.position,r;i=="above"||i=="below"?r={originX:"center",originY:i=="above"?"top":"bottom"}:i=="before"||i=="left"&&e||i=="right"&&!e?r={originX:"start",originY:"center"}:(i=="after"||i=="right"&&e||i=="left"&&!e)&&(r={originX:"end",originY:"center"});let{x:o,y:a}=this._invertPosition(r.originX,r.originY);return{main:r,fallback:{originX:o,originY:a}}}_getOverlayPosition(){let e=!this._dir||this._dir.value=="ltr",i=this.position,r;i=="above"?r={overlayX:"center",overlayY:"bottom"}:i=="below"?r={overlayX:"center",overlayY:"top"}:i=="before"||i=="left"&&e||i=="right"&&!e?r={overlayX:"end",overlayY:"center"}:(i=="after"||i=="right"&&e||i=="left"&&!e)&&(r={overlayX:"start",overlayY:"center"});let{x:o,y:a}=this._invertPosition(r.overlayX,r.overlayY);return{main:r,fallback:{overlayX:o,overlayY:a}}}_updateTooltipMessage(){this._tooltipInstance&&(this._tooltipInstance.message=this.message,this._tooltipInstance._markForCheck(),pt(()=>{this._tooltipInstance&&this._overlayRef.updatePosition()},{injector:this._injector}))}_setTooltipClass(e){this._tooltipInstance&&(this._tooltipInstance.tooltipClass=e,this._tooltipInstance._markForCheck())}_invertPosition(e,i){return this.position==="above"||this.position==="below"?i==="top"?i="bottom":i==="bottom"&&(i="top"):e==="end"?e="start":e==="start"&&(e="end"),{x:e,y:i}}_updateCurrentPositionClass(e){let{overlayY:i,originX:r,originY:o}=e,a;if(i==="center"?this._dir&&this._dir.value==="rtl"?a=r==="end"?"left":"right":a=r==="start"?"left":"right":a=i==="bottom"&&o==="top"?"above":"below",a!==this._currentPosition){let s=this._overlayRef;if(s){let l=`${this._cssClassPrefix}-${KB}-`;s.removePanelClass(l+this._currentPosition),s.addPanelClass(l+a)}this._currentPosition=a}}_setupPointerEnterEventsIfNeeded(){this._disabled||!this.message||!this._viewInitialized||this._passiveListeners.length||(this._platformSupportsMouseEvents()?this._passiveListeners.push(["mouseenter",e=>{this._setupPointerExitEventsIfNeeded();let i;e.x!==void 0&&e.y!==void 0&&(i=e),this.show(void 0,i)}]):this.touchGestures!=="off"&&(this._disableNativeGesturesIfNecessary(),this._passiveListeners.push(["touchstart",e=>{let i=e.targetTouches?.[0],r=i?{x:i.clientX,y:i.clientY}:void 0;this._setupPointerExitEventsIfNeeded(),this._touchstartTimeout&&clearTimeout(this._touchstartTimeout);let o=500;this._touchstartTimeout=setTimeout(()=>{this._touchstartTimeout=null,this.show(void 0,r)},this._defaultOptions?.touchLongPressShowDelay??o)}])),this._addListeners(this._passiveListeners))}_setupPointerExitEventsIfNeeded(){if(this._pointerExitEventsInitialized)return;this._pointerExitEventsInitialized=!0;let e=[];if(this._platformSupportsMouseEvents())e.push(["mouseleave",i=>{let r=i.relatedTarget;(!r||!this._overlayRef?.overlayElement.contains(r))&&this.hide()}],["wheel",i=>this._wheelListener(i)]);else if(this.touchGestures!=="off"){this._disableNativeGesturesIfNecessary();let i=()=>{this._touchstartTimeout&&clearTimeout(this._touchstartTimeout),this.hide(this._defaultOptions?.touchendHideDelay)};e.push(["touchend",i],["touchcancel",i])}this._addListeners(e),this._passiveListeners.push(...e)}_addListeners(e){e.forEach(([i,r])=>{this._elementRef.nativeElement.addEventListener(i,r,ZB)})}_platformSupportsMouseEvents(){return!this._platform.IOS&&!this._platform.ANDROID}_wheelListener(e){if(this._isTooltipVisible()){let i=this._injector.get(ge).elementFromPoint(e.clientX,e.clientY),r=this._elementRef.nativeElement;i!==r&&!r.contains(i)&&this.hide()}}_disableNativeGesturesIfNecessary(){let e=this.touchGestures;if(e!=="off"){let i=this._elementRef.nativeElement,r=i.style;(e==="on"||i.nodeName!=="INPUT"&&i.nodeName!=="TEXTAREA")&&(r.userSelect=r.msUserSelect=r.webkitUserSelect=r.MozUserSelect="none"),(e==="on"||!i.draggable)&&(r.webkitUserDrag="none"),r.touchAction="none",r.webkitTapHighlightColor="transparent"}}_syncAriaDescription(e){this._ariaDescriptionPending||(this._ariaDescriptionPending=!0,this._ariaDescriber.removeDescription(this._elementRef.nativeElement,e,"tooltip"),this._isDestroyed||pt({write:()=>{this._ariaDescriptionPending=!1,this.message&&!this.disabled&&this._ariaDescriber.describe(this._elementRef.nativeElement,this.message,"tooltip")}},{injector:this._injector}))}static \u0275fac=function(i){return new(i||t)};static \u0275dir=F({type:t,selectors:[["","matTooltip",""]],hostAttrs:[1,"mat-mdc-tooltip-trigger"],hostVars:2,hostBindings:function(i,r){i&2&&G("mat-mdc-tooltip-disabled",r.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 t})(),t3=(()=>{class t{_changeDetectorRef=u(ye);_elementRef=u(q);_isMultiline=!1;message;tooltipClass;_showTimeoutId;_hideTimeoutId;_triggerElement;_mouseLeaveHideDelay;_animationsDisabled=Ye();_tooltip;_closeOnInteraction=!1;_isVisible=!1;_onHide=new z;_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>yee&&e.width>=xee}_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 i=this._tooltip.nativeElement,r=this._showAnimation,o=this._hideAnimation;if(i.classList.remove(e?o:r),i.classList.add(e?r:o),this._isVisible!==e&&(this._isVisible=e,this._changeDetectorRef.markForCheck()),e&&!this._animationsDisabled&&typeof getComputedStyle=="function"){let a=getComputedStyle(i);(a.getPropertyValue("animation-duration")==="0s"||a.getPropertyValue("animation-name")==="none")&&(this._animationsDisabled=!0)}e&&this._onShow(),this._animationsDisabled&&(i.classList.add("_mat-animation-noopable"),this._finalizeAnimation(e))}static \u0275fac=function(i){return new(i||t)};static \u0275cmp=E({type:t,selectors:[["mat-tooltip-component"]],viewQuery:function(i,r){if(i&1&&ie(_ee,7),i&2){let o;B(o=j())&&(r._tooltip=o.first)}},hostAttrs:["aria-hidden","true"],hostBindings:function(i,r){i&1&&S("mouseleave",function(a){return r._handleMouseLeave(a)})},decls:4,vars:4,consts:[["tooltip",""],[1,"mdc-tooltip","mat-mdc-tooltip",3,"animationend","ngClass"],[1,"mat-mdc-tooltip-surface","mdc-tooltip__surface"]],template:function(i,r){if(i&1){let o=Y();h(0,"div",1,0),S("animationend",function(s){return I(o),A(r._handleAnimationEnd(s))}),h(2,"div",2),_(3),p()()}i&2&&(G("mdc-tooltip--multiline",r._isMultiline),y("ngClass",r.tooltipClass),g(3),H(r.message))},dependencies:[Pd],styles:[`.mat-mdc-tooltip{position:relative;transform:scale(0);display:inline-flex}.mat-mdc-tooltip::before{content:"";top:0;right:0;bottom:0;left:0;z-index:-1;position:absolute}.mat-mdc-tooltip-panel-below .mat-mdc-tooltip::before{top:-8px}.mat-mdc-tooltip-panel-above .mat-mdc-tooltip::before{bottom:-8px}.mat-mdc-tooltip-panel-right .mat-mdc-tooltip::before{left:-8px}.mat-mdc-tooltip-panel-left .mat-mdc-tooltip::before{right:-8px}.mat-mdc-tooltip._mat-animation-noopable{animation:none;transform:scale(1)}.mat-mdc-tooltip-surface{word-break:normal;overflow-wrap:anywhere;padding:4px 8px;min-width:40px;max-width:200px;min-height:24px;max-height:40vh;box-sizing:border-box;overflow:hidden;text-align:center;will-change:transform,opacity;background-color:var(--mat-tooltip-container-color, var(--mat-sys-inverse-surface));color:var(--mat-tooltip-supporting-text-color, var(--mat-sys-inverse-on-surface));border-radius:var(--mat-tooltip-container-shape, var(--mat-sys-corner-extra-small));font-family:var(--mat-tooltip-supporting-text-font, var(--mat-sys-body-small-font));font-size:var(--mat-tooltip-supporting-text-size, var(--mat-sys-body-small-size));font-weight:var(--mat-tooltip-supporting-text-weight, var(--mat-sys-body-small-weight));line-height:var(--mat-tooltip-supporting-text-line-height, var(--mat-sys-body-small-line-height));letter-spacing:var(--mat-tooltip-supporting-text-tracking, var(--mat-sys-body-small-tracking))}.mat-mdc-tooltip-surface::before{position:absolute;box-sizing:border-box;width:100%;height:100%;top:0;left:0;border:1px solid rgba(0,0,0,0);border-radius:inherit;content:"";pointer-events:none}.mdc-tooltip--multiline .mat-mdc-tooltip-surface{text-align:left}[dir=rtl] .mdc-tooltip--multiline .mat-mdc-tooltip-surface{text-align:right}.mat-mdc-tooltip-panel{line-height:normal}.mat-mdc-tooltip-panel.mat-mdc-tooltip-panel-non-interactive{pointer-events:none}@keyframes mat-mdc-tooltip-show{0%{opacity:0;transform:scale(0.8)}100%{opacity:1;transform:scale(1)}}@keyframes mat-mdc-tooltip-hide{0%{opacity:1;transform:scale(1)}100%{opacity:0;transform:scale(0.8)}}.mat-mdc-tooltip-show{animation:mat-mdc-tooltip-show 150ms cubic-bezier(0, 0, 0.2, 1) forwards}.mat-mdc-tooltip-hide{animation:mat-mdc-tooltip-hide 75ms cubic-bezier(0.4, 0, 1, 1) forwards} +`],encapsulation:2,changeDetection:0})}return t})();var Br=(()=>{class t{static \u0275fac=function(i){return new(i||t)};static \u0275mod=ee({type:t});static \u0275inj=J({providers:[dS],imports:[ll,er,we,we,vr]})}return t})();var Cee=["matButton",""],wee=[[["",8,"material-icons",3,"iconPositionEnd",""],["mat-icon",3,"iconPositionEnd",""],["","matButtonIcon","",3,"iconPositionEnd",""]],"*",[["","iconPositionEnd","",8,"material-icons"],["mat-icon","iconPositionEnd",""],["","matButtonIcon","","iconPositionEnd",""]]],Dee=[".material-icons:not([iconPositionEnd]), mat-icon:not([iconPositionEnd]), [matButtonIcon]:not([iconPositionEnd])","*",".material-icons[iconPositionEnd], mat-icon[iconPositionEnd], [matButtonIcon][iconPositionEnd]"];var i3=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"]]]),kt=(()=>{class t extends sS{get appearance(){return this._appearance}set appearance(e){this.setAppearance(e||this._config?.defaultAppearance||"text")}_appearance=null;constructor(){super();let e=Eee(this._elementRef.nativeElement);e&&this.setAppearance(e)}setAppearance(e){if(e===this._appearance)return;let i=this._elementRef.nativeElement.classList,r=this._appearance?i3.get(this._appearance):null,o=i3.get(e);r&&i.remove(...r),i.add(...o),this._appearance=e}static \u0275fac=function(i){return new(i||t)};static \u0275cmp=E({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:[le],attrs:Cee,ngContentSelectors:Dee,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(i,r){i&1&&(Me(wee),ai(0,"span",0),oe(1),ft(2,"span",1),oe(3,1),vt(),oe(4,2),ai(5,"span",2)(6,"span",3)),i&2&&G("mdc-button__ripple",!r._isFab)("mdc-fab__ripple",r._isFab)},styles:[`.mat-mdc-button-base{text-decoration:none}.mat-mdc-button-base .mat-icon{min-height:fit-content;flex-shrink:0}.mdc-button{-webkit-user-select:none;user-select:none;position:relative;display:inline-flex;align-items:center;justify-content:center;box-sizing:border-box;min-width:64px;border:none;outline:none;line-height:inherit;-webkit-appearance:none;overflow:visible;vertical-align:middle;background:rgba(0,0,0,0);padding:0 8px}.mdc-button::-moz-focus-inner{padding:0;border:0}.mdc-button:active{outline:none}.mdc-button:hover{cursor:pointer}.mdc-button:disabled{cursor:default;pointer-events:none}.mdc-button[hidden]{display:none}.mdc-button .mdc-button__label{position:relative}.mat-mdc-button{padding:0 var(--mat-button-text-horizontal-padding, 12px);height:var(--mat-button-text-container-height, 40px);font-family:var(--mat-button-text-label-text-font, var(--mat-sys-label-large-font));font-size:var(--mat-button-text-label-text-size, var(--mat-sys-label-large-size));letter-spacing:var(--mat-button-text-label-text-tracking, var(--mat-sys-label-large-tracking));text-transform:var(--mat-button-text-label-text-transform);font-weight:var(--mat-button-text-label-text-weight, var(--mat-sys-label-large-weight))}.mat-mdc-button,.mat-mdc-button .mdc-button__ripple{border-radius:var(--mat-button-text-container-shape, var(--mat-sys-corner-full))}.mat-mdc-button:not(:disabled){color:var(--mat-button-text-label-text-color, var(--mat-sys-primary))}.mat-mdc-button[disabled],.mat-mdc-button.mat-mdc-button-disabled{cursor:default;pointer-events:none;color:var(--mat-button-text-disabled-label-text-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent))}.mat-mdc-button.mat-mdc-button-disabled-interactive{pointer-events:auto}.mat-mdc-button:has(.material-icons,mat-icon,[matButtonIcon]){padding:0 var(--mat-button-text-with-icon-horizontal-padding, 16px)}.mat-mdc-button>.mat-icon{margin-right:var(--mat-button-text-icon-spacing, 8px);margin-left:var(--mat-button-text-icon-offset, -4px)}[dir=rtl] .mat-mdc-button>.mat-icon{margin-right:var(--mat-button-text-icon-offset, -4px);margin-left:var(--mat-button-text-icon-spacing, 8px)}.mat-mdc-button .mdc-button__label+.mat-icon{margin-right:var(--mat-button-text-icon-offset, -4px);margin-left:var(--mat-button-text-icon-spacing, 8px)}[dir=rtl] .mat-mdc-button .mdc-button__label+.mat-icon{margin-right:var(--mat-button-text-icon-spacing, 8px);margin-left:var(--mat-button-text-icon-offset, -4px)}.mat-mdc-button .mat-ripple-element{background-color:var(--mat-button-text-ripple-color, color-mix(in srgb, var(--mat-sys-primary) calc(var(--mat-sys-pressed-state-layer-opacity) * 100%), transparent))}.mat-mdc-button .mat-mdc-button-persistent-ripple::before{background-color:var(--mat-button-text-state-layer-color, var(--mat-sys-primary))}.mat-mdc-button.mat-mdc-button-disabled .mat-mdc-button-persistent-ripple::before{background-color:var(--mat-button-text-disabled-state-layer-color, var(--mat-sys-on-surface-variant))}.mat-mdc-button:hover>.mat-mdc-button-persistent-ripple::before{opacity:var(--mat-button-text-hover-state-layer-opacity, var(--mat-sys-hover-state-layer-opacity))}.mat-mdc-button.cdk-program-focused>.mat-mdc-button-persistent-ripple::before,.mat-mdc-button.cdk-keyboard-focused>.mat-mdc-button-persistent-ripple::before,.mat-mdc-button.mat-mdc-button-disabled-interactive:focus>.mat-mdc-button-persistent-ripple::before{opacity:var(--mat-button-text-focus-state-layer-opacity, var(--mat-sys-focus-state-layer-opacity))}.mat-mdc-button:active>.mat-mdc-button-persistent-ripple::before{opacity:var(--mat-button-text-pressed-state-layer-opacity, var(--mat-sys-pressed-state-layer-opacity))}.mat-mdc-button .mat-mdc-button-touch-target{position:absolute;top:50%;height:var(--mat-button-text-touch-target-size, 48px);display:var(--mat-button-text-touch-target-display, block);left:0;right:0;transform:translateY(-50%)}.mat-mdc-unelevated-button{transition:box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);height:var(--mat-button-filled-container-height, 40px);font-family:var(--mat-button-filled-label-text-font, var(--mat-sys-label-large-font));font-size:var(--mat-button-filled-label-text-size, var(--mat-sys-label-large-size));letter-spacing:var(--mat-button-filled-label-text-tracking, var(--mat-sys-label-large-tracking));text-transform:var(--mat-button-filled-label-text-transform);font-weight:var(--mat-button-filled-label-text-weight, var(--mat-sys-label-large-weight));padding:0 var(--mat-button-filled-horizontal-padding, 24px)}.mat-mdc-unelevated-button>.mat-icon{margin-right:var(--mat-button-filled-icon-spacing, 8px);margin-left:var(--mat-button-filled-icon-offset, -8px)}[dir=rtl] .mat-mdc-unelevated-button>.mat-icon{margin-right:var(--mat-button-filled-icon-offset, -8px);margin-left:var(--mat-button-filled-icon-spacing, 8px)}.mat-mdc-unelevated-button .mdc-button__label+.mat-icon{margin-right:var(--mat-button-filled-icon-offset, -8px);margin-left:var(--mat-button-filled-icon-spacing, 8px)}[dir=rtl] .mat-mdc-unelevated-button .mdc-button__label+.mat-icon{margin-right:var(--mat-button-filled-icon-spacing, 8px);margin-left:var(--mat-button-filled-icon-offset, -8px)}.mat-mdc-unelevated-button .mat-ripple-element{background-color:var(--mat-button-filled-ripple-color, color-mix(in srgb, var(--mat-sys-on-primary) calc(var(--mat-sys-pressed-state-layer-opacity) * 100%), transparent))}.mat-mdc-unelevated-button .mat-mdc-button-persistent-ripple::before{background-color:var(--mat-button-filled-state-layer-color, var(--mat-sys-on-primary))}.mat-mdc-unelevated-button.mat-mdc-button-disabled .mat-mdc-button-persistent-ripple::before{background-color:var(--mat-button-filled-disabled-state-layer-color, var(--mat-sys-on-surface-variant))}.mat-mdc-unelevated-button:hover>.mat-mdc-button-persistent-ripple::before{opacity:var(--mat-button-filled-hover-state-layer-opacity, var(--mat-sys-hover-state-layer-opacity))}.mat-mdc-unelevated-button.cdk-program-focused>.mat-mdc-button-persistent-ripple::before,.mat-mdc-unelevated-button.cdk-keyboard-focused>.mat-mdc-button-persistent-ripple::before,.mat-mdc-unelevated-button.mat-mdc-button-disabled-interactive:focus>.mat-mdc-button-persistent-ripple::before{opacity:var(--mat-button-filled-focus-state-layer-opacity, var(--mat-sys-focus-state-layer-opacity))}.mat-mdc-unelevated-button:active>.mat-mdc-button-persistent-ripple::before{opacity:var(--mat-button-filled-pressed-state-layer-opacity, var(--mat-sys-pressed-state-layer-opacity))}.mat-mdc-unelevated-button .mat-mdc-button-touch-target{position:absolute;top:50%;height:var(--mat-button-filled-touch-target-size, 48px);display:var(--mat-button-filled-touch-target-display, block);left:0;right:0;transform:translateY(-50%)}.mat-mdc-unelevated-button:not(:disabled){color:var(--mat-button-filled-label-text-color, var(--mat-sys-on-primary));background-color:var(--mat-button-filled-container-color, var(--mat-sys-primary))}.mat-mdc-unelevated-button,.mat-mdc-unelevated-button .mdc-button__ripple{border-radius:var(--mat-button-filled-container-shape, var(--mat-sys-corner-full))}.mat-mdc-unelevated-button[disabled],.mat-mdc-unelevated-button.mat-mdc-button-disabled{cursor:default;pointer-events:none;color:var(--mat-button-filled-disabled-label-text-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent));background-color:var(--mat-button-filled-disabled-container-color, color-mix(in srgb, var(--mat-sys-on-surface) 12%, transparent))}.mat-mdc-unelevated-button.mat-mdc-button-disabled-interactive{pointer-events:auto}.mat-mdc-raised-button{transition:box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);box-shadow:var(--mat-button-protected-container-elevation-shadow, var(--mat-sys-level1));height:var(--mat-button-protected-container-height, 40px);font-family:var(--mat-button-protected-label-text-font, var(--mat-sys-label-large-font));font-size:var(--mat-button-protected-label-text-size, var(--mat-sys-label-large-size));letter-spacing:var(--mat-button-protected-label-text-tracking, var(--mat-sys-label-large-tracking));text-transform:var(--mat-button-protected-label-text-transform);font-weight:var(--mat-button-protected-label-text-weight, var(--mat-sys-label-large-weight));padding:0 var(--mat-button-protected-horizontal-padding, 24px)}.mat-mdc-raised-button>.mat-icon{margin-right:var(--mat-button-protected-icon-spacing, 8px);margin-left:var(--mat-button-protected-icon-offset, -8px)}[dir=rtl] .mat-mdc-raised-button>.mat-icon{margin-right:var(--mat-button-protected-icon-offset, -8px);margin-left:var(--mat-button-protected-icon-spacing, 8px)}.mat-mdc-raised-button .mdc-button__label+.mat-icon{margin-right:var(--mat-button-protected-icon-offset, -8px);margin-left:var(--mat-button-protected-icon-spacing, 8px)}[dir=rtl] .mat-mdc-raised-button .mdc-button__label+.mat-icon{margin-right:var(--mat-button-protected-icon-spacing, 8px);margin-left:var(--mat-button-protected-icon-offset, -8px)}.mat-mdc-raised-button .mat-ripple-element{background-color:var(--mat-button-protected-ripple-color, color-mix(in srgb, var(--mat-sys-primary) calc(var(--mat-sys-pressed-state-layer-opacity) * 100%), transparent))}.mat-mdc-raised-button .mat-mdc-button-persistent-ripple::before{background-color:var(--mat-button-protected-state-layer-color, var(--mat-sys-primary))}.mat-mdc-raised-button.mat-mdc-button-disabled .mat-mdc-button-persistent-ripple::before{background-color:var(--mat-button-protected-disabled-state-layer-color, var(--mat-sys-on-surface-variant))}.mat-mdc-raised-button:hover>.mat-mdc-button-persistent-ripple::before{opacity:var(--mat-button-protected-hover-state-layer-opacity, var(--mat-sys-hover-state-layer-opacity))}.mat-mdc-raised-button.cdk-program-focused>.mat-mdc-button-persistent-ripple::before,.mat-mdc-raised-button.cdk-keyboard-focused>.mat-mdc-button-persistent-ripple::before,.mat-mdc-raised-button.mat-mdc-button-disabled-interactive:focus>.mat-mdc-button-persistent-ripple::before{opacity:var(--mat-button-protected-focus-state-layer-opacity, var(--mat-sys-focus-state-layer-opacity))}.mat-mdc-raised-button:active>.mat-mdc-button-persistent-ripple::before{opacity:var(--mat-button-protected-pressed-state-layer-opacity, var(--mat-sys-pressed-state-layer-opacity))}.mat-mdc-raised-button .mat-mdc-button-touch-target{position:absolute;top:50%;height:var(--mat-button-protected-touch-target-size, 48px);display:var(--mat-button-protected-touch-target-display, block);left:0;right:0;transform:translateY(-50%)}.mat-mdc-raised-button:not(:disabled){color:var(--mat-button-protected-label-text-color, var(--mat-sys-primary));background-color:var(--mat-button-protected-container-color, var(--mat-sys-surface))}.mat-mdc-raised-button,.mat-mdc-raised-button .mdc-button__ripple{border-radius:var(--mat-button-protected-container-shape, var(--mat-sys-corner-full))}.mat-mdc-raised-button:hover{box-shadow:var(--mat-button-protected-hover-container-elevation-shadow, var(--mat-sys-level2))}.mat-mdc-raised-button:focus{box-shadow:var(--mat-button-protected-focus-container-elevation-shadow, var(--mat-sys-level1))}.mat-mdc-raised-button:active,.mat-mdc-raised-button:focus:active{box-shadow:var(--mat-button-protected-pressed-container-elevation-shadow, var(--mat-sys-level1))}.mat-mdc-raised-button[disabled],.mat-mdc-raised-button.mat-mdc-button-disabled{cursor:default;pointer-events:none;color:var(--mat-button-protected-disabled-label-text-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent));background-color:var(--mat-button-protected-disabled-container-color, color-mix(in srgb, var(--mat-sys-on-surface) 12%, transparent))}.mat-mdc-raised-button[disabled].mat-mdc-button-disabled,.mat-mdc-raised-button.mat-mdc-button-disabled.mat-mdc-button-disabled{box-shadow:var(--mat-button-protected-disabled-container-elevation-shadow, var(--mat-sys-level0))}.mat-mdc-raised-button.mat-mdc-button-disabled-interactive{pointer-events:auto}.mat-mdc-outlined-button{border-style:solid;transition:border 280ms cubic-bezier(0.4, 0, 0.2, 1);height:var(--mat-button-outlined-container-height, 40px);font-family:var(--mat-button-outlined-label-text-font, var(--mat-sys-label-large-font));font-size:var(--mat-button-outlined-label-text-size, var(--mat-sys-label-large-size));letter-spacing:var(--mat-button-outlined-label-text-tracking, var(--mat-sys-label-large-tracking));text-transform:var(--mat-button-outlined-label-text-transform);font-weight:var(--mat-button-outlined-label-text-weight, var(--mat-sys-label-large-weight));border-radius:var(--mat-button-outlined-container-shape, var(--mat-sys-corner-full));border-width:var(--mat-button-outlined-outline-width, 1px);padding:0 var(--mat-button-outlined-horizontal-padding, 24px)}.mat-mdc-outlined-button>.mat-icon{margin-right:var(--mat-button-outlined-icon-spacing, 8px);margin-left:var(--mat-button-outlined-icon-offset, -8px)}[dir=rtl] .mat-mdc-outlined-button>.mat-icon{margin-right:var(--mat-button-outlined-icon-offset, -8px);margin-left:var(--mat-button-outlined-icon-spacing, 8px)}.mat-mdc-outlined-button .mdc-button__label+.mat-icon{margin-right:var(--mat-button-outlined-icon-offset, -8px);margin-left:var(--mat-button-outlined-icon-spacing, 8px)}[dir=rtl] .mat-mdc-outlined-button .mdc-button__label+.mat-icon{margin-right:var(--mat-button-outlined-icon-spacing, 8px);margin-left:var(--mat-button-outlined-icon-offset, -8px)}.mat-mdc-outlined-button .mat-ripple-element{background-color:var(--mat-button-outlined-ripple-color, color-mix(in srgb, var(--mat-sys-primary) calc(var(--mat-sys-pressed-state-layer-opacity) * 100%), transparent))}.mat-mdc-outlined-button .mat-mdc-button-persistent-ripple::before{background-color:var(--mat-button-outlined-state-layer-color, var(--mat-sys-primary))}.mat-mdc-outlined-button.mat-mdc-button-disabled .mat-mdc-button-persistent-ripple::before{background-color:var(--mat-button-outlined-disabled-state-layer-color, var(--mat-sys-on-surface-variant))}.mat-mdc-outlined-button:hover>.mat-mdc-button-persistent-ripple::before{opacity:var(--mat-button-outlined-hover-state-layer-opacity, var(--mat-sys-hover-state-layer-opacity))}.mat-mdc-outlined-button.cdk-program-focused>.mat-mdc-button-persistent-ripple::before,.mat-mdc-outlined-button.cdk-keyboard-focused>.mat-mdc-button-persistent-ripple::before,.mat-mdc-outlined-button.mat-mdc-button-disabled-interactive:focus>.mat-mdc-button-persistent-ripple::before{opacity:var(--mat-button-outlined-focus-state-layer-opacity, var(--mat-sys-focus-state-layer-opacity))}.mat-mdc-outlined-button:active>.mat-mdc-button-persistent-ripple::before{opacity:var(--mat-button-outlined-pressed-state-layer-opacity, var(--mat-sys-pressed-state-layer-opacity))}.mat-mdc-outlined-button .mat-mdc-button-touch-target{position:absolute;top:50%;height:var(--mat-button-outlined-touch-target-size, 48px);display:var(--mat-button-outlined-touch-target-display, block);left:0;right:0;transform:translateY(-50%)}.mat-mdc-outlined-button:not(:disabled){color:var(--mat-button-outlined-label-text-color, var(--mat-sys-primary));border-color:var(--mat-button-outlined-outline-color, var(--mat-sys-outline))}.mat-mdc-outlined-button[disabled],.mat-mdc-outlined-button.mat-mdc-button-disabled{cursor:default;pointer-events:none;color:var(--mat-button-outlined-disabled-label-text-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent));border-color:var(--mat-button-outlined-disabled-outline-color, color-mix(in srgb, var(--mat-sys-on-surface) 12%, transparent))}.mat-mdc-outlined-button.mat-mdc-button-disabled-interactive{pointer-events:auto}.mat-tonal-button{transition:box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);height:var(--mat-button-tonal-container-height, 40px);font-family:var(--mat-button-tonal-label-text-font, var(--mat-sys-label-large-font));font-size:var(--mat-button-tonal-label-text-size, var(--mat-sys-label-large-size));letter-spacing:var(--mat-button-tonal-label-text-tracking, var(--mat-sys-label-large-tracking));text-transform:var(--mat-button-tonal-label-text-transform);font-weight:var(--mat-button-tonal-label-text-weight, var(--mat-sys-label-large-weight));padding:0 var(--mat-button-tonal-horizontal-padding, 24px)}.mat-tonal-button:not(:disabled){color:var(--mat-button-tonal-label-text-color, var(--mat-sys-on-secondary-container));background-color:var(--mat-button-tonal-container-color, var(--mat-sys-secondary-container))}.mat-tonal-button,.mat-tonal-button .mdc-button__ripple{border-radius:var(--mat-button-tonal-container-shape, var(--mat-sys-corner-full))}.mat-tonal-button[disabled],.mat-tonal-button.mat-mdc-button-disabled{cursor:default;pointer-events:none;color:var(--mat-button-tonal-disabled-label-text-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent));background-color:var(--mat-button-tonal-disabled-container-color, color-mix(in srgb, var(--mat-sys-on-surface) 12%, transparent))}.mat-tonal-button.mat-mdc-button-disabled-interactive{pointer-events:auto}.mat-tonal-button>.mat-icon{margin-right:var(--mat-button-tonal-icon-spacing, 8px);margin-left:var(--mat-button-tonal-icon-offset, -8px)}[dir=rtl] .mat-tonal-button>.mat-icon{margin-right:var(--mat-button-tonal-icon-offset, -8px);margin-left:var(--mat-button-tonal-icon-spacing, 8px)}.mat-tonal-button .mdc-button__label+.mat-icon{margin-right:var(--mat-button-tonal-icon-offset, -8px);margin-left:var(--mat-button-tonal-icon-spacing, 8px)}[dir=rtl] .mat-tonal-button .mdc-button__label+.mat-icon{margin-right:var(--mat-button-tonal-icon-spacing, 8px);margin-left:var(--mat-button-tonal-icon-offset, -8px)}.mat-tonal-button .mat-ripple-element{background-color:var(--mat-button-tonal-ripple-color, color-mix(in srgb, var(--mat-sys-on-secondary-container) calc(var(--mat-sys-pressed-state-layer-opacity) * 100%), transparent))}.mat-tonal-button .mat-mdc-button-persistent-ripple::before{background-color:var(--mat-button-tonal-state-layer-color, var(--mat-sys-on-secondary-container))}.mat-tonal-button.mat-mdc-button-disabled .mat-mdc-button-persistent-ripple::before{background-color:var(--mat-button-tonal-disabled-state-layer-color, var(--mat-sys-on-surface-variant))}.mat-tonal-button:hover>.mat-mdc-button-persistent-ripple::before{opacity:var(--mat-button-tonal-hover-state-layer-opacity, var(--mat-sys-hover-state-layer-opacity))}.mat-tonal-button.cdk-program-focused>.mat-mdc-button-persistent-ripple::before,.mat-tonal-button.cdk-keyboard-focused>.mat-mdc-button-persistent-ripple::before,.mat-tonal-button.mat-mdc-button-disabled-interactive:focus>.mat-mdc-button-persistent-ripple::before{opacity:var(--mat-button-tonal-focus-state-layer-opacity, var(--mat-sys-focus-state-layer-opacity))}.mat-tonal-button:active>.mat-mdc-button-persistent-ripple::before{opacity:var(--mat-button-tonal-pressed-state-layer-opacity, var(--mat-sys-pressed-state-layer-opacity))}.mat-tonal-button .mat-mdc-button-touch-target{position:absolute;top:50%;height:var(--mat-button-tonal-touch-target-size, 48px);display:var(--mat-button-tonal-touch-target-display, block);left:0;right:0;transform:translateY(-50%)}.mat-mdc-button,.mat-mdc-unelevated-button,.mat-mdc-raised-button,.mat-mdc-outlined-button,.mat-tonal-button{-webkit-tap-highlight-color:rgba(0,0,0,0)}.mat-mdc-button .mat-mdc-button-ripple,.mat-mdc-button .mat-mdc-button-persistent-ripple,.mat-mdc-button .mat-mdc-button-persistent-ripple::before,.mat-mdc-unelevated-button .mat-mdc-button-ripple,.mat-mdc-unelevated-button .mat-mdc-button-persistent-ripple,.mat-mdc-unelevated-button .mat-mdc-button-persistent-ripple::before,.mat-mdc-raised-button .mat-mdc-button-ripple,.mat-mdc-raised-button .mat-mdc-button-persistent-ripple,.mat-mdc-raised-button .mat-mdc-button-persistent-ripple::before,.mat-mdc-outlined-button .mat-mdc-button-ripple,.mat-mdc-outlined-button .mat-mdc-button-persistent-ripple,.mat-mdc-outlined-button .mat-mdc-button-persistent-ripple::before,.mat-tonal-button .mat-mdc-button-ripple,.mat-tonal-button .mat-mdc-button-persistent-ripple,.mat-tonal-button .mat-mdc-button-persistent-ripple::before{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none;border-radius:inherit}.mat-mdc-button .mat-mdc-button-ripple,.mat-mdc-unelevated-button .mat-mdc-button-ripple,.mat-mdc-raised-button .mat-mdc-button-ripple,.mat-mdc-outlined-button .mat-mdc-button-ripple,.mat-tonal-button .mat-mdc-button-ripple{overflow:hidden}.mat-mdc-button .mat-mdc-button-persistent-ripple::before,.mat-mdc-unelevated-button .mat-mdc-button-persistent-ripple::before,.mat-mdc-raised-button .mat-mdc-button-persistent-ripple::before,.mat-mdc-outlined-button .mat-mdc-button-persistent-ripple::before,.mat-tonal-button .mat-mdc-button-persistent-ripple::before{content:"";opacity:0}.mat-mdc-button .mdc-button__label,.mat-mdc-button .mat-icon,.mat-mdc-unelevated-button .mdc-button__label,.mat-mdc-unelevated-button .mat-icon,.mat-mdc-raised-button .mdc-button__label,.mat-mdc-raised-button .mat-icon,.mat-mdc-outlined-button .mdc-button__label,.mat-mdc-outlined-button .mat-icon,.mat-tonal-button .mdc-button__label,.mat-tonal-button .mat-icon{z-index:1;position:relative}.mat-mdc-button .mat-focus-indicator,.mat-mdc-unelevated-button .mat-focus-indicator,.mat-mdc-raised-button .mat-focus-indicator,.mat-mdc-outlined-button .mat-focus-indicator,.mat-tonal-button .mat-focus-indicator{top:0;left:0;right:0;bottom:0;position:absolute;border-radius:inherit}.mat-mdc-button:focus>.mat-focus-indicator::before,.mat-mdc-unelevated-button:focus>.mat-focus-indicator::before,.mat-mdc-raised-button:focus>.mat-focus-indicator::before,.mat-mdc-outlined-button:focus>.mat-focus-indicator::before,.mat-tonal-button:focus>.mat-focus-indicator::before{content:"";border-radius:inherit}.mat-mdc-button._mat-animation-noopable,.mat-mdc-unelevated-button._mat-animation-noopable,.mat-mdc-raised-button._mat-animation-noopable,.mat-mdc-outlined-button._mat-animation-noopable,.mat-tonal-button._mat-animation-noopable{transition:none !important;animation:none !important}.mat-mdc-button>.mat-icon,.mat-mdc-unelevated-button>.mat-icon,.mat-mdc-raised-button>.mat-icon,.mat-mdc-outlined-button>.mat-icon,.mat-tonal-button>.mat-icon{display:inline-block;position:relative;vertical-align:top;font-size:1.125rem;height:1.125rem;width:1.125rem}.mat-mdc-outlined-button .mat-mdc-button-ripple,.mat-mdc-outlined-button .mdc-button__ripple{top:-1px;left:-1px;bottom:-1px;right:-1px}.mat-mdc-unelevated-button .mat-focus-indicator::before,.mat-tonal-button .mat-focus-indicator::before,.mat-mdc-raised-button .mat-focus-indicator::before{margin:calc(calc(var(--mat-focus-indicator-border-width, 3px) + 2px)*-1)}.mat-mdc-outlined-button .mat-focus-indicator::before{margin:calc(calc(var(--mat-focus-indicator-border-width, 3px) + 3px)*-1)} +`,`@media(forced-colors: active){.mat-mdc-button:not(.mdc-button--outlined),.mat-mdc-unelevated-button:not(.mdc-button--outlined),.mat-mdc-raised-button:not(.mdc-button--outlined),.mat-mdc-outlined-button:not(.mdc-button--outlined),.mat-mdc-button-base.mat-tonal-button,.mat-mdc-icon-button.mat-mdc-icon-button,.mat-mdc-outlined-button .mdc-button__ripple{outline:solid 1px}} +`],encapsulation:2,changeDetection:0})}return t})();function Eee(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 ze=(()=>{class t{static \u0275fac=function(i){return new(i||t)};static \u0275mod=ee({type:t});static \u0275inj=J({imports:[we,yo,we]})}return t})();function Mee(t,n){if(t&1&&(h(0,"mat-option",17),_(1),p()),t&2){let e=n.$implicit;y("value",e),g(),ve(" ",e," ")}}function kee(t,n){if(t&1){let e=Y();h(0,"mat-form-field",14)(1,"mat-select",16,0),S("selectionChange",function(r){I(e);let o=C(2);return A(o._changePageSize(r.value))}),xt(3,Mee,2,2,"mat-option",17,xm),p(),h(5,"div",18),S("click",function(){I(e);let r=Se(2);return A(r.open())}),p()()}if(t&2){let e=C(2);y("appearance",e._formFieldAppearance)("color",e.color),g(),y("value",e.pageSize)("disabled",e.disabled),Kl("aria-labelledby",e._pageSizeLabelId),y("panelClass",e.selectConfig.panelClass||"")("disableOptionCentering",e.selectConfig.disableOptionCentering),g(2),Ct(e._displayedPageSizeOptions)}}function See(t,n){if(t&1&&(h(0,"div",15),_(1),p()),t&2){let e=C(2);g(),H(e.pageSize)}}function Tee(t,n){if(t&1&&(h(0,"div",3)(1,"div",13),_(2),p(),N(3,kee,6,7,"mat-form-field",14),N(4,See,2,1,"div",15),p()),t&2){let e=C();g(),X("id",e._pageSizeLabelId),g(),ve(" ",e._intl.itemsPerPageLabel," "),g(),L(e._displayedPageSizeOptions.length>1?3:-1),g(),L(e._displayedPageSizeOptions.length<=1?4:-1)}}function Iee(t,n){if(t&1){let e=Y();h(0,"button",19),S("click",function(){I(e);let r=C();return A(r._buttonClicked(0,r._previousButtonsDisabled()))}),Gt(),h(1,"svg",8),k(2,"path",20),p()()}if(t&2){let e=C();y("matTooltip",e._intl.firstPageLabel)("matTooltipDisabled",e._previousButtonsDisabled())("disabled",e._previousButtonsDisabled())("tabindex",e._previousButtonsDisabled()?-1:null),X("aria-label",e._intl.firstPageLabel)}}function Aee(t,n){if(t&1){let e=Y();h(0,"button",21),S("click",function(){I(e);let r=C();return A(r._buttonClicked(r.getNumberOfPages()-1,r._nextButtonsDisabled()))}),Gt(),h(1,"svg",8),k(2,"path",22),p()()}if(t&2){let e=C();y("matTooltip",e._intl.lastPageLabel)("matTooltipDisabled",e._nextButtonsDisabled())("disabled",e._nextButtonsDisabled())("tabindex",e._nextButtonsDisabled()?-1:null),X("aria-label",e._intl.lastPageLabel)}}var gc=(()=>{class t{changes=new z;itemsPerPageLabel="Items per page:";nextPageLabel="Next page";previousPageLabel="Previous page";firstPageLabel="First page";lastPageLabel="Last page";getRangeLabel=(e,i,r)=>{if(r==0||i==0)return`0 of ${r}`;r=Math.max(r,0);let o=e*i,a=o{class t{_intl=u(gc);_changeDetectorRef=u(ye);_formFieldAppearance;_pageSizeLabelId=u(Ze).getId("mat-paginator-page-size-label-");_intlChanges;_isInitialized=!1;_initializedStream=new $a(1);color;get pageIndex(){return this._pageIndex}set pageIndex(e){this._pageIndex=Math.max(e||0,0),this._changeDetectorRef.markForCheck()}_pageIndex=0;get length(){return this._length}set length(e){this._length=e||0,this._changeDetectorRef.markForCheck()}_length=0;get pageSize(){return this._pageSize}set pageSize(e){this._pageSize=Math.max(e||0,0),this._updateDisplayedPageSizeOptions()}_pageSize;get pageSizeOptions(){return this._pageSizeOptions}set pageSizeOptions(e){this._pageSizeOptions=(e||[]).map(i=>ct(i,0)),this._updateDisplayedPageSizeOptions()}_pageSizeOptions=[];hidePageSize=!1;showFirstLastButtons=!1;selectConfig={};disabled=!1;page=new U;_displayedPageSizeOptions;initialized=this._initializedStream;constructor(){let e=this._intl,i=u(Fee,{optional:!0});if(this._intlChanges=e.changes.subscribe(()=>this._changeDetectorRef.markForCheck()),i){let{pageSize:r,pageSizeOptions:o,hidePageSize:a,showFirstLastButtons:s}=i;r!=null&&(this._pageSize=r),o!=null&&(this._pageSizeOptions=o),a!=null&&(this.hidePageSize=a),s!=null&&(this.showFirstLastButtons=s)}this._formFieldAppearance=i?.formFieldAppearance||"outline"}ngOnInit(){this._isInitialized=!0,this._updateDisplayedPageSizeOptions(),this._initializedStream.next()}ngOnDestroy(){this._initializedStream.complete(),this._intlChanges.unsubscribe()}nextPage(){this.hasNextPage()&&this._navigate(this.pageIndex+1)}previousPage(){this.hasPreviousPage()&&this._navigate(this.pageIndex-1)}firstPage(){this.hasPreviousPage()&&this._navigate(0)}lastPage(){this.hasNextPage()&&this._navigate(this.getNumberOfPages()-1)}hasPreviousPage(){return this.pageIndex>=1&&this.pageSize!=0}hasNextPage(){let e=this.getNumberOfPages()-1;return this.pageIndexe-i),this._changeDetectorRef.markForCheck())}_emitPageEvent(e){this.page.emit({previousPageIndex:e,pageIndex:this.pageIndex,pageSize:this.pageSize,length:this.length})}_navigate(e){let i=this.pageIndex;e!==i&&(this.pageIndex=e,this._emitPageEvent(i))}_buttonClicked(e,i){i||this._navigate(e)}static \u0275fac=function(i){return new(i||t)};static \u0275cmp=E({type:t,selectors:[["mat-paginator"]],hostAttrs:["role","group",1,"mat-mdc-paginator"],inputs:{color:"color",pageIndex:[2,"pageIndex","pageIndex",ct],length:[2,"length","length",ct],pageSize:[2,"pageSize","pageSize",ct],pageSizeOptions:"pageSizeOptions",hidePageSize:[2,"hidePageSize","hidePageSize",V],showFirstLastButtons:[2,"showFirstLastButtons","showFirstLastButtons",V],selectConfig:"selectConfig",disabled:[2,"disabled","disabled",V]},outputs:{page:"page"},exportAs:["matPaginator"],decls:14,vars:14,consts:[["selectRef",""],[1,"mat-mdc-paginator-outer-container"],[1,"mat-mdc-paginator-container"],[1,"mat-mdc-paginator-page-size"],[1,"mat-mdc-paginator-range-actions"],["aria-live","polite",1,"mat-mdc-paginator-range-label"],["matIconButton","","type","button","matTooltipPosition","above","disabledInteractive","",1,"mat-mdc-paginator-navigation-first",3,"matTooltip","matTooltipDisabled","disabled","tabindex"],["matIconButton","","type","button","matTooltipPosition","above","disabledInteractive","",1,"mat-mdc-paginator-navigation-previous",3,"click","matTooltip","matTooltipDisabled","disabled","tabindex"],["viewBox","0 0 24 24","focusable","false","aria-hidden","true",1,"mat-mdc-paginator-icon"],["d","M15.41 7.41L14 6l-6 6 6 6 1.41-1.41L10.83 12z"],["matIconButton","","type","button","matTooltipPosition","above","disabledInteractive","",1,"mat-mdc-paginator-navigation-next",3,"click","matTooltip","matTooltipDisabled","disabled","tabindex"],["d","M10 6L8.59 7.41 13.17 12l-4.58 4.59L10 18l6-6z"],["matIconButton","","type","button","matTooltipPosition","above","disabledInteractive","",1,"mat-mdc-paginator-navigation-last",3,"matTooltip","matTooltipDisabled","disabled","tabindex"],[1,"mat-mdc-paginator-page-size-label"],[1,"mat-mdc-paginator-page-size-select",3,"appearance","color"],[1,"mat-mdc-paginator-page-size-value"],["hideSingleSelectionIndicator","",3,"selectionChange","value","disabled","aria-labelledby","panelClass","disableOptionCentering"],[3,"value"],[1,"mat-mdc-paginator-touch-target",3,"click"],["matIconButton","","type","button","matTooltipPosition","above","disabledInteractive","",1,"mat-mdc-paginator-navigation-first",3,"click","matTooltip","matTooltipDisabled","disabled","tabindex"],["d","M18.41 16.59L13.82 12l4.59-4.59L17 6l-6 6 6 6zM6 6h2v12H6z"],["matIconButton","","type","button","matTooltipPosition","above","disabledInteractive","",1,"mat-mdc-paginator-navigation-last",3,"click","matTooltip","matTooltipDisabled","disabled","tabindex"],["d","M5.59 7.41L10.18 12l-4.59 4.59L7 18l6-6-6-6zM16 6h2v12h-2z"]],template:function(i,r){i&1&&(h(0,"div",1)(1,"div",2),N(2,Tee,5,4,"div",3),h(3,"div",4)(4,"div",5),_(5),p(),N(6,Iee,3,5,"button",6),h(7,"button",7),S("click",function(){return r._buttonClicked(r.pageIndex-1,r._previousButtonsDisabled())}),Gt(),h(8,"svg",8),k(9,"path",9),p()(),jo(),h(10,"button",10),S("click",function(){return r._buttonClicked(r.pageIndex+1,r._nextButtonsDisabled())}),Gt(),h(11,"svg",8),k(12,"path",11),p()(),N(13,Aee,3,5,"button",12),p()()()),i&2&&(g(2),L(r.hidePageSize?-1:2),g(3),ve(" ",r._intl.getRangeLabel(r.pageIndex,r.pageSize,r.length)," "),g(),L(r.showFirstLastButtons?6:-1),g(),y("matTooltip",r._intl.previousPageLabel)("matTooltipDisabled",r._previousButtonsDisabled())("disabled",r._previousButtonsDisabled())("tabindex",r._previousButtonsDisabled()?-1:null),X("aria-label",r._intl.previousPageLabel),g(3),y("matTooltip",r._intl.nextPageLabel)("matTooltipDisabled",r._nextButtonsDisabled())("disabled",r._nextButtonsDisabled())("tabindex",r._nextButtonsDisabled()?-1:null),X("aria-label",r._intl.nextPageLabel),g(3),L(r.showFirstLastButtons?13:-1))},dependencies:[Oi,Na,xn,ti,Eo],styles:[`.mat-mdc-paginator{display:block;-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;color:var(--mat-paginator-container-text-color, var(--mat-sys-on-surface));background-color:var(--mat-paginator-container-background-color, var(--mat-sys-surface));font-family:var(--mat-paginator-container-text-font, var(--mat-sys-body-small-font));line-height:var(--mat-paginator-container-text-line-height, var(--mat-sys-body-small-line-height));font-size:var(--mat-paginator-container-text-size, var(--mat-sys-body-small-size));font-weight:var(--mat-paginator-container-text-weight, var(--mat-sys-body-small-weight));letter-spacing:var(--mat-paginator-container-text-tracking, var(--mat-sys-body-small-tracking));--mat-form-field-container-height: var(--mat-paginator-form-field-container-height, 40px);--mat-form-field-container-vertical-padding: var(--mat-paginator-form-field-container-vertical-padding, 8px)}.mat-mdc-paginator .mat-mdc-select-value{font-size:var(--mat-paginator-select-trigger-text-size, var(--mat-sys-body-small-size))}.mat-mdc-paginator .mat-mdc-form-field-subscript-wrapper{display:none}.mat-mdc-paginator .mat-mdc-select{line-height:1.5}.mat-mdc-paginator-outer-container{display:flex}.mat-mdc-paginator-container{display:flex;align-items:center;justify-content:flex-end;padding:0 8px;flex-wrap:wrap;width:100%;min-height:var(--mat-paginator-container-size, 56px)}.mat-mdc-paginator-page-size{display:flex;align-items:baseline;margin-right:8px}[dir=rtl] .mat-mdc-paginator-page-size{margin-right:0;margin-left:8px}.mat-mdc-paginator-page-size-label{margin:0 4px}.mat-mdc-paginator-page-size-select{margin:0 4px;width:var(--mat-paginator-page-size-select-width, 84px)}.mat-mdc-paginator-range-label{margin:0 32px 0 24px}.mat-mdc-paginator-range-actions{display:flex;align-items:center}.mat-mdc-paginator-icon{display:inline-block;width:28px;fill:var(--mat-paginator-enabled-icon-color, var(--mat-sys-on-surface-variant))}.mat-mdc-icon-button[aria-disabled] .mat-mdc-paginator-icon{fill:var(--mat-paginator-disabled-icon-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent))}[dir=rtl] .mat-mdc-paginator-icon{transform:rotate(180deg)}@media(forced-colors: active){.mat-mdc-icon-button[aria-disabled] .mat-mdc-paginator-icon,.mat-mdc-paginator-icon{fill:currentColor}.mat-mdc-paginator-range-actions .mat-mdc-icon-button{outline:solid 1px}.mat-mdc-paginator-range-actions .mat-mdc-icon-button[aria-disabled]{color:GrayText}}.mat-mdc-paginator-touch-target{display:var(--mat-paginator-touch-target-display, block);position:absolute;top:50%;left:50%;width:var(--mat-paginator-page-size-select-width, 84px);height:var(--mat-paginator-page-size-select-touch-target-height, 48px);background-color:rgba(0,0,0,0);transform:translate(-50%, -50%);cursor:pointer} +`],encapsulation:2,changeDetection:0})}return t})(),_c=(()=>{class t{static \u0275fac=function(i){return new(i||t)};static \u0275mod=ee({type:t});static \u0275inj=J({providers:[Ree],imports:[ze,fc,Br,ir]})}return t})();var _g=class extends Li{constructor(){super(...arguments),this._delegate=u(Li)}getValidDateOrNull(n){return this.isDateInstance(n)&&this.isValid(n)?n:null}compareDatetime(n,e,i=!0){return this.compareDate(n,e)||this.getHour(n)-this.getHour(e)||i&&this.getMinute(n)-this.getMinute(e)}sameDatetime(n,e){if(n&&e){let i=this.isValid(n),r=this.isValid(e);return i&&r?!this.compareDatetime(n,e):i===r}return n===e}sameYear(n,e){return n&&e&&this.getYear(n)===this.getYear(e)}sameDay(n,e){return n&&e&&this.getDate(n)===this.getDate(e)&&this.sameMonthAndYear(n,e)}sameHour(n,e){return n&&e&&this.getHour(n)===this.getHour(e)&&this.sameDay(n,e)}sameMinute(n,e){return n&&e&&this.getMinute(n)===this.getMinute(e)&&this.sameHour(n,e)}sameMonthAndYear(n,e){if(n&&e){let i=this.isValid(n),r=this.isValid(e);return i&&r?!(this.getYear(n)-this.getYear(e)||this.getMonth(n)-this.getMonth(e)):i===r}return n===e}clone(n){return this._delegate.clone(n)}addCalendarYears(n,e){return this._delegate.addCalendarYears(n,e)}addCalendarMonths(n,e){return this._delegate.addCalendarMonths(n,e)}addCalendarDays(n,e){return this._delegate.addCalendarDays(n,e)}getYear(n){return this._delegate.getYear(n)}getMonth(n){return this._delegate.getMonth(n)}getDate(n){return this._delegate.getDate(n)}getDayOfWeek(n){return this._delegate.getDayOfWeek(n)}getMonthNames(n){return this._delegate.getMonthNames(n)}getDateNames(){return this._delegate.getDateNames()}getDayOfWeekNames(n){return this._delegate.getDayOfWeekNames(n)}getYearName(n){return this._delegate.getYearName(n)}getFirstDayOfWeek(){return this._delegate.getFirstDayOfWeek()}getNumDaysInMonth(n){return this._delegate.getNumDaysInMonth(n)}createDate(n,e,i){return this._delegate.createDate(n,e,i)}today(){return this._delegate.today()}parse(n,e){return this._delegate.parse(n,e)}format(n,e){return this._delegate.format(n,e)}toIso8601(n){return this._delegate.toIso8601(n)}isDateInstance(n){return this._delegate.isDateInstance(n)}isValid(n){return this._delegate.isValid(n)}invalid(){return this._delegate.invalid()}clampDate(n,e,i){return e&&this.compareDatetime(n,e)<0?e:i&&this.compareDatetime(n,i)>0?i:n}},n3=new T("mtx-datetime-formats"),HGe=r3(24,t=>String(t)),zGe=r3(60,t=>String(t));function r3(t,n){let e=Array(t);for(let i=0;i{let n=class n{transform(i){return ji(i)?i:Q(i)}};n.\u0275fac=function(r){return new(r||n)},n.\u0275pipe=Wr({name:"toObservable",type:n,pure:!0});let t=n;return t})();var a3=(()=>{let n=class n{};n.\u0275fac=function(r){return new(r||n)},n.\u0275mod=ee({type:n}),n.\u0275inj=J({imports:[gt]});let t=n;return t})();function s3(t,n){let e=Array(t);for(let i=0;i{let n=class n extends _g{constructor(){super();let i=u(ys,{optional:!0});this.setLocale(i)}setLocale(i){super.setLocale(i)}getHour(i){return sy(i)}getMinute(i){return ly(i)}isInNextMonth(i,r){let o=this.getDateInNextMonth(i);return super.sameMonthAndYear(o,r)}getWeek(i,r){return dh(i,{weekStartsOn:r})}createDatetime(i,r,o,a,s){if(r<0||r>11)throw Error(`Invalid month index "${r}". Month index has to be between 0 and 11.`);if(o<1)throw Error(`Invalid date "${o}". Date has to be greater than 0.`);if(a<0||a>23)throw Error(`Invalid hour "${a}". Hour has to be between 0 and 23.`);if(s<0||s>59)throw Error(`Invalid minute "${s}". Minute has to be between 0 and 59.`);let l=new Date(i,r,o,a,s);if(!sh(l))throw Error(`Invalid date "${o}" for month with index "${r}".`);return l}getFirstDateOfMonth(i){return sV(i)}getHourNames(){return s3(24,i=>i.toLocaleString(this.locale))}getMinuteNames(){return s3(60,i=>i.toLocaleString(this.locale))}addCalendarHours(i,r){return tV(i,r)}addCalendarMinutes(i,r){return rV(i,r)}deserialize(i){return this._delegate.deserialize(i)}getDateInNextMonth(i){return ah(i,1)}};n.\u0275fac=function(r){return new(r||n)},n.\u0275prov=O({token:n,factory:n.\u0275fac});let t=n;return t})(),Vee={parse:{dateInput:"P",monthInput:"LLLL",yearInput:"yyyy",datetimeInput:"P p",timeInput:"p"},display:{dateInput:"P",monthInput:"LLLL",yearInput:"yyyy",datetimeInput:"P p",timeInput:"p",monthYearLabel:"yyyy",dateA11yLabel:"LLLL dd, yyyy",monthYearA11yLabel:"MMMM yyyy",popupHeaderDateLabel:"ccc, dd LLL"}};function l3(t=Vee){return[{provide:Li,useClass:Vk,deps:[ys]},{provide:_g,useClass:Lee},{provide:n3,useValue:t}]}var Bee=["container"];function jee(t,n){}function Hee(t,n){}var zee=["*"];function Uee(t,n){if(t&1&&k(0,"formly-field",0),t&2){let e=n.$implicit;y("field",e)}}var c3=["fieldComponent"];function $ee(t,n,e){if(n.id)return n.id;let i=n.type;return!i&&n.template&&(i="template"),i instanceof Td&&(i=i.prototype.constructor.name),[t,i,n.key,e].join("_")}function mn(t){return!bc(t.key)&&t.key!==""&&(!Array.isArray(t.key)||t.key.length>0)}function uu(t){if(!mn(t))return[];if(t._keyPath?.key!==t.key){let n=[];if(typeof t.key=="string"){let e=t.key.indexOf("[")===-1?t.key:t.key.replace(/\[(\w+)\]/g,".$1");n=e.indexOf(".")!==-1?e.split("."):[e]}else Array.isArray(t.key)?n=t.key.slice(0):n=[`${t.key}`];nr(t,"_keyPath",{key:t.key,path:n})}return t._keyPath.path.slice(0)}var _S=["required","pattern","minLength","maxLength","min","max"];function bg(t,n){let e=uu(t);if(e.length===0)return;let i=t;for(;i.parent;)i=i.parent,e=[...uu(i),...e];if(n===void 0&&t.resetOnHide){let r=e.pop(),o=e.reduce((a,s)=>a[s]||{},i.model);delete o[r];return}Wee(i.model,e,n)}function Wee(t,n,e){for(let i=0;i{for(let i in e)bc(t[i])||Gee(t[i])?t[i]=vc(e[i]):qee(t[i],e[i])&&Ch(t[i],e[i])}),t}function bc(t){return t==null}function bx(t){return t===void 0}function Gee(t){return t===""}function uS(t){return typeof t=="function"}function qee(t,n){return La(t)&&La(n)&&Object.getPrototypeOf(t)===Object.getPrototypeOf(n)&&!(Array.isArray(t)||Array.isArray(n))}function La(t){return t!=null&&typeof t=="object"}function Yee(t){return!!t&&typeof t.then=="function"}function vc(t){if(!La(t)||ji(t)||t instanceof te||t.changingThisBreaksApplicationSecurity||["RegExp","FileList","File","Blob"].indexOf(t.constructor?.name)!==-1)return t;if(t instanceof Set)return new Set(t);if(t instanceof Map)return new Map(t);if(t instanceof Uint8Array)return new Uint8Array(t);if(t instanceof Uint16Array)return new Uint16Array(t);if(t instanceof Uint32Array)return new Uint32Array(t);if(t._isAMomentObject&&uS(t.clone))return t.clone();if(t instanceof hc)return null;if(t instanceof Date)return new Date(t.getTime());if(Array.isArray(t))return t.slice(0).map(i=>vc(i));let n=Object.getPrototypeOf(t),e=Object.create(n);return e=Object.setPrototypeOf(e,n),Object.keys(t).reduce((i,r)=>{let o=Object.getOwnPropertyDescriptor(t,r);return o.get?Object.defineProperty(i,r,o):i[r]=vc(t[r]),i},e)}function nr(t,n,e){Object.defineProperty(t,n,{enumerable:!1,writable:!0,configurable:!0}),t[n]=e}function d3(t,n,e){let i=[],r=()=>{i.forEach(a=>a()),i=[]},o=Wi(t,n,({firstChange:a,currentValue:s})=>{!a&&e(),r(),La(s)&&s.constructor.name==="Object"&&Object.keys(s).forEach(l=>{i.push(d3(t,[...n,l],e))})});return()=>{o.unsubscribe(),r()}}function Wi(t,n,e){t._observers||nr(t,"_observers",{});let i=t;for(let s=0;s=1&&La(i))){let{enumerable:s}=Object.getOwnPropertyDescriptor(i,r)||{enumerable:!0};Object.defineProperty(i,r,{enumerable:s,configurable:!0,get:()=>a.value,set:l=>{if(l!==a.value){let c=a.value;a.value=l,a.onChange.forEach(d=>d({previousValue:c,currentValue:l,firstChange:!1}))}}})}return{setValue(s,l=!0){if(s===a.value)return;let c=a.value;a.value=s,a.onChange.forEach(d=>{d!==e&&l&&d({previousValue:c,currentValue:s,firstChange:!1})})},unsubscribe(){a.onChange=a.onChange.filter(s=>s!==e),a.onChange.length===0&&delete t._observers[o]}}}function u3(t,n){if(n=Array.isArray(n)?n.join("."):n,!!t.fieldGroup)for(let e=0,i=t.fieldGroup.length;e{n instanceof Id?n.injector.get(ye).markForCheck():n.markForCheck()})}function Qee(t){let n=i=>i.hide||i.expressions?.hide||i.hideExpression,e=!t.resetOnHide||!n(t);if(!n(t)&&t.resetOnHide){let i=t.parent;for(;i&&!n(i);)i=i.parent;e=!i||!n(i)}return!e}function m3(){return+wp.major>18||+wp.major>=18&&+wp.minor>=1}function Kee(t,n){try{return Function(...n,`return ${t};`)}catch(e){console.error(e)}}function Zee(t,n,e){return typeof t=="function"?t.apply(n,e):!!t}function Xee(t,n=!1){let e=t.formControl,i=e._fields?e._fields.indexOf(t):-1;i!==-1&&e._fields.splice(i,1);let r=e.parent;if(!r)return;let o={emitEvent:n};if(r instanceof oS){let a=r.controls.findIndex(s=>s===e);a!==-1&&r.removeAt(a,o)}else if(r instanceof px){let a=uu(t),s=a[a.length-1];r.get([s])===e&&r.removeControl(s,o)}e.setParent(null)}function Jee(t){return t.formControl?t.formControl:t.shareFormControl===!1?null:t.form?.get(uu(t))}function h3(t,n,e=!1){if(n=n||t.formControl,n._fields||nr(n,"_fields",[]),n._fields.indexOf(t)===-1&&n._fields.push(t),!t.formControl&&n){nr(t,"formControl",n),n.setValidators(null),n.setAsyncValidators(null),t.props.disabled=!!t.props.disabled;let s=Wi(t,["props","disabled"],({firstChange:l,currentValue:c})=>{l||(c?t.formControl.disable():t.formControl.enable())});n instanceof Jo&&n.registerOnDisabledChange(s.setValue)}if(!t.form||!mn(t))return;let i=t.form,r=uu(t),o=mu(t);!(bc(n.value)&&bc(o))&&n.value!==o&&n instanceof Jo&&n.patchValue(o);for(let s=0;s{nr(n,"_hide",!!i),(!r||r&&i===!0)&&(n.props.hidden=i,n.options._hiddenFieldsForCheck.push({field:n}))}),n.hideExpression&&Wi(n,["hideExpression"],({currentValue:i})=>{n._expressions.hide=this.parseExpressions(n,"hide",typeof i=="boolean"?()=>i:i)});let e=(i,r)=>{typeof r=="string"||uS(r)?n._expressions[i]=this.parseExpressions(n,i,r):r instanceof Fe&&(n._expressions[i]={value$:r.pipe(Be(o=>{this.evalExpr(n,i,o),n.options._detectChanges(n)}))})};n.expressions=n.expressions||{};for(let i of Object.keys(n.expressions))Wi(n,["expressions",i],({currentValue:r})=>{e(i,uS(r)?(...o)=>r(n,o[3]):r)});n.expressionProperties=n.expressionProperties||{};for(let i of Object.keys(n.expressionProperties))Wi(n,["expressionProperties",i],({currentValue:r})=>e(i,r))}postPopulate(n){if(!n.parent&&!n.options.checkExpressions){let e=!1;n.options.checkExpressions=(i,r)=>{if(e)return;e=!0;let o=this.checkExpressions(i,r),a=n.options;a._hiddenFieldsForCheck.sort(s=>s.field.hide?-1:1).forEach(s=>this.changeHideState(s.field,s.field.hide??s.default,!r)),a._hiddenFieldsForCheck=[],o&&this.checkExpressions(n),e=!1}}}parseExpressions(n,e,i){let r;if(n.parent&&["hide","props.disabled"].includes(e)){let a=s=>e==="hide"?s.hide:s.props.disabled;r=()=>{let s=n.parent;for(;s.parent&&!a(s);)s=s.parent;return a(s)}}i=i||(()=>!1),typeof i=="string"&&(i=Kee(i,["model","formState","field"]));let o;return{callback:a=>{try{let s=Zee(r?(...l)=>r(n)||i(...l):i,{field:n},[n.model,n.options.formState,n,a]);return a||o!==s&&(!La(s)||ji(s)||JSON.stringify(s)!==JSON.stringify(o))?(o=s,this.evalExpr(n,e,s),!0):!1}catch(s){throw s.message=`[Formly Error] [Expression "${e}"] ${s.message}`,s}}}}checkExpressions(n,e=!1){if(!n)return!1;let i=!1;if(n._expressions)for(let r of Object.keys(n._expressions))n._expressions[r].callback?.(e)&&(i=!0);return n.fieldGroup?.forEach(r=>this.checkExpressions(r,e)&&(i=!0)),i}changeDisabledState(n,e){n.fieldGroup&&n.fieldGroup.filter(i=>!i._expressions.hasOwnProperty("props.disabled")).forEach(i=>this.changeDisabledState(i,e)),mn(n)&&n.props.disabled!==e&&(n.props.disabled=e)}changeHideState(n,e,i){if(n.fieldGroup&&n.fieldGroup.filter(r=>r&&!r._expressions.hide).forEach(r=>this.changeHideState(r,e,i)),n.formControl&&mn(n)){nr(n,"_hide",!!(e||n.hide));let r=n.formControl;r._fields?.length>1&&vg(r),e===!0&&(!r._fields||r._fields.every(o=>!!o._hide))?(Xee(n,!0),i&&n.resetOnHide&&(bg(n,void 0),n.formControl.reset({value:void 0,disabled:n.formControl.disabled}),n.options.fieldChanges.next({value:void 0,field:n,type:"valueChanges"}),n.fieldGroup&&n.formControl instanceof oS&&(n.fieldGroup.length=0))):e===!1&&(n.resetOnHide&&!bx(n.defaultValue)&&bx(mu(n))&&bg(n,n.defaultValue),h3(n,void 0,!0),n.resetOnHide&&n.fieldArray&&n.fieldGroup?.length!==n.model?.length&&n.options.build(n))}n.options.fieldChanges&&n.options.fieldChanges.next({field:n,type:"hidden",value:e})}evalExpr(n,e,i){if(e.indexOf("model.")===0){let r=e.replace(/^model\./,""),o=n.fieldGroup?n:n.parent,a=n?.key===r?n.formControl:n.form.get(r);!a&&n.get(r)&&(a=n.get(r).formControl),bg({key:r,parent:o,model:n.model},i),a&&!(bc(a.value)&&bc(i))&&a.value!==i&&a.patchValue(i)}else{try{let r=n,o=this._evalExpressionPath(n,e),a=o.length-1;for(let s=0;sr).forEach(r=>{let o=r.match(/['|"](.*?)['|"]/);o?i.push(o[1]):i.push(...r.split(".").filter(a=>a))}),n._expressions[e]&&(n._expressions[e].paths=i),i}},pS=class{constructor(n){this.config=n,this.formId=0}prePopulate(n){let e=n.parent;this.initRootOptions(n),this.initFieldProps(n),e&&(Object.defineProperty(n,"options",{get:()=>e.options,configurable:!0}),Object.defineProperty(n,"model",{get:()=>mn(n)&&n.fieldGroup?mu(n):e.model,configurable:!0})),Object.defineProperty(n,"get",{value:i=>u3(n,i),configurable:!0}),this.getFieldComponentInstance(n).prePopulate?.(n)}onPopulate(n){this.initFieldOptions(n),this.getFieldComponentInstance(n).onPopulate?.(n),n.fieldGroup&&n.fieldGroup.forEach((e,i)=>{e&&(Object.defineProperty(e,"parent",{get:()=>n,configurable:!0}),Object.defineProperty(e,"index",{get:()=>i,configurable:!0})),this.formId++})}postPopulate(n){this.getFieldComponentInstance(n).postPopulate?.(n)}initFieldProps(n){n.props??=n.templateOptions,Object.defineProperty(n,"templateOptions",{get:()=>n.props,set:e=>n.props=e,configurable:!0})}initRootOptions(n){if(n.parent)return;let e=n.options;n.options.formState=n.options.formState||{},e.showError||(e.showError=this.config.extras.showError),e.fieldChanges||nr(e,"fieldChanges",new z),e._hiddenFieldsForCheck||(e._hiddenFieldsForCheck=[]),e._detectChanges=i=>{i._componentRefs&&mS(i),i.fieldGroup?.forEach(r=>r&&e._detectChanges(r))},e.detectChanges=i=>{i.options.checkExpressions?.(i),e._detectChanges(i)},e.resetModel=i=>{i=vc(i??e._initialModel),n.model&&(Object.keys(n.model).forEach(r=>delete n.model[r]),Object.assign(n.model,i||{})),m3()||Wi(e,["parentForm","submitted"]).setValue(!1,!1),e.build(n),n.form.reset(n.model)},e.updateInitialValue=i=>e._initialModel=vc(i??n.model),n.options.updateInitialValue()}initFieldOptions(n){Ch(n,{id:$ee(`formly_${this.formId}`,n,n.index),hooks:{},modelOptions:{},validation:{messages:{}},props:!n.type||!mn(n)?{}:{label:"",placeholder:"",disabled:!1}}),this.config.extras.resetFieldOnHide&&n.resetOnHide!==!1&&(n.resetOnHide=!0),n.type!=="formly-template"&&(n.template||n.expressions?.template||n.expressionProperties?.template)&&(n.type="formly-template"),!n.type&&n.fieldGroup&&(n.type="formly-group"),n.type&&this.config.getMergedField(n),mn(n)&&!bx(n.defaultValue)&&bx(mu(n))&&!Qee(n)&&bg(n,n.defaultValue),n.wrappers=n.wrappers||[]}getFieldComponentInstance(n){let e=()=>{let i=this.config.resolveFieldTypeRef(n),r=n._componentRefs?.slice(-1)[0];return r instanceof Id&&r?.componentType===i?.componentType&&(i=r),i?.instance};return n._proxyInstance||nr(n,"_proxyInstance",new Proxy({},{get:(i,r)=>e()?.[r],set:(i,r,o)=>e()[r]=o})),n._proxyInstance}},fS=class{prePopulate(n){this.root||(this.root=n),n.parent&&Object.defineProperty(n,"form",{get:()=>n.parent.formControl,configurable:!0})}onPopulate(n){n.hasOwnProperty("fieldGroup")&&!mn(n)?nr(n,"formControl",n.form):this.addFormControl(n)}postPopulate(n){if(this.root!==n)return;if(this.root=null,this.setValidators(n)&&n.parent){let i=n.parent;for(;i;)(mn(i)||!i.parent)&&vg(i.formControl,!0),i=i.parent}}addFormControl(n){let e=Jee(n);if(!n.fieldArray){if(e){if(e instanceof Jo){let i=mn(n)?mu(n):n.defaultValue;e.defaultValue=i}}else{let i={updateOn:n.modelOptions.updateOn};if(n.fieldGroup)e=new px({},i);else{let r=mn(n)?mu(n):n.defaultValue;e=new UB({value:r,disabled:!!n.props.disabled},De(M({},i),{initialValueIsDefault:!0}))}}h3(n,e)}}setValidators(n,e=!1){e===!1&&mn(n)&&n.props?.disabled&&(e=!0);let i=!1;if(n.fieldGroup?.forEach(r=>r&&this.setValidators(r,e)&&(i=!0)),mn(n)||!n.parent||!mn(n)&&!n.fieldGroup){let{formControl:r}=n;if(r&&(mn(n)&&r instanceof Jo&&(e&&r.enabled&&(r.disable({emitEvent:!1,onlySelf:!0}),i=!0),!e&&r.disabled&&(r.enable({emitEvent:!1,onlySelf:!0}),i=!0)),r.validator===null&&this.hasValidators(n,"_validators")&&(r.setValidators(()=>{let o=Le.compose(this.mergeValidators(n,"_validators"));return o?o(r):null}),i=!0),r.asyncValidator===null&&this.hasValidators(n,"_asyncValidators")&&(r.setAsyncValidators(()=>{let o=Le.composeAsync(this.mergeValidators(n,"_asyncValidators"));return o?o(r):Q(null)}),i=!0),i)){vg(r,!0);let o=r.parent;for(let a=1;a1&&i._fields.some(r=>r[e].length>0)||n[e].length>0?!0:n.fieldGroup?.some(r=>r?.fieldGroup&&!mn(r)&&this.hasValidators(r,e))}mergeValidators(n,e){let i=[],r=n.formControl;return r?._fields?.length>1?r._fields.filter(o=>!o._hide).forEach(o=>i.push(...o[e])):n[e]&&i.push(...n[e]),n.fieldGroup&&n.fieldGroup.filter(o=>o?.fieldGroup&&!mn(o)).forEach(o=>i.push(...this.mergeValidators(o,e))),i}},gS=class{constructor(n){this.config=n}onPopulate(n){this.initFieldValidation(n,"validators"),this.initFieldValidation(n,"asyncValidators")}initFieldValidation(n,e){let i=[];if(e==="validators"&&!(n.hasOwnProperty("fieldGroup")&&!mn(n))&&i.push(this.getPredefinedFieldValidation(n)),n[e])for(let r of Object.keys(n[e]))r==="validation"?i.push(...n[e].validation.map(o=>this.wrapNgValidatorFn(n,o))):i.push(this.wrapNgValidatorFn(n,n[e][r],r));nr(n,"_"+e,i)}getPredefinedFieldValidation(n){let e=[];return _S.forEach(i=>Wi(n,["props",i],({currentValue:r,firstChange:o})=>{e=e.filter(a=>a!==i),i==="required"&&r!=null&&typeof r!="boolean"&&console.warn(`Formly: Invalid prop 'required' of type '${typeof r}', expected 'boolean' (Field:${n.key}).`),r!=null&&r!==!1&&e.push(i),!o&&n.formControl&&vg(n.formControl)})),i=>e.length===0?null:Le.compose(e.map(r=>()=>{let o=n.props[r];switch(r){case"required":return Le.required(i);case"pattern":return Le.pattern(o)(i);case"minLength":let a=Le.minLength(o)(i),s=this.config.getValidatorMessage("minlength")||n.validation?.messages?.minlength?"minlength":"minLength";return a?{[s]:a.minlength}:null;case"maxLength":let l=Le.maxLength(o)(i),c=this.config.getValidatorMessage("maxlength")||n.validation?.messages?.maxlength?"maxlength":"maxLength";return l?{[c]:l.maxlength}:null;case"min":return Le.min(o)(i);case"max":return Le.max(o)(i);default:return null}}))(i)}wrapNgValidatorFn(n,e,i){let r;if(typeof e=="string"&&(r=vc(this.config.getValidator(e))),typeof e=="object"&&e.name&&(r=vc(this.config.getValidator(e.name)),e.options&&(r.options=e.options)),typeof e=="object"&&e.expression){let o=e,{expression:a}=o,s=ed(o,["expression"]);r={name:i,validation:a,options:Object.keys(s).length>0?s:null}}return typeof e=="function"&&(r={name:i,validation:e}),a=>{let s=r.validation(a,n,r.options);return Yee(s)?s.then(l=>this.handleResult(n,i?!!l:l,r)):ji(s)?s.pipe(se(l=>this.handleResult(n,i?!!l:l,r))):this.handleResult(n,i?!!s:s,r)}}handleResult(n,e,{name:i,options:r}){typeof e=="boolean"&&(e=e?null:{[i]:r||!0});let o=n.formControl;return o?._childrenErrors?.[i]?.(),La(e)&&Object.keys(e).forEach(a=>{let s=e[a].errorPath?e[a].errorPath:r?.errorPath,l=s?n.formControl.get(s):null;if(l){let c=e[a],{errorPath:d}=c,m=ed(c,["errorPath"]);l.setErrors(De(M({},l.errors||{}),{[a]:m})),!o._childrenErrors&&nr(o,"_childrenErrors",{}),o._childrenErrors[a]=()=>{let v=l.errors||{},{[a]:f}=v,b=ed(v,[pA(a)]);l.setErrors(Object.keys(b).length===0?null:b)}}}),e}},xg=(()=>{let n=class n{constructor(){this.field={}}set _formlyControls(i){let r=this.field;r._localFields=i.map(o=>o.control._fields||[]).flat().filter(o=>o.formControl!==this.field.formControl)}get model(){return this.field.model}get form(){return this.field.form}get options(){return this.field.options}get key(){return this.field.key}get formControl(){return this.field.formControl}get props(){return this.field.props||{}}get to(){return this.props}get showError(){return this.options.showError(this)}get id(){return this.field.id}get formState(){return this.options?.formState||{}}};n.\u0275fac=function(r){return new(r||n)},n.\u0275dir=F({type:n,viewQuery:function(r,o){if(r&1&&ie(Hn,5),r&2){let a;B(a=j())&&(o._formlyControls=a)}},inputs:{field:"field"},standalone:!1});let t=n;return t})(),ete=(()=>{let n=class n extends xg{get template(){return this.field&&this.field.template!==this.innerHtml.template&&(this.innerHtml={template:this.field.template,content:this.props.safeHtml?this.sanitizer.bypassSecurityTrustHtml(this.field.template):this.field.template}),this.innerHtml.content}constructor(i){super(),this.sanitizer=i,this.innerHtml={}}};n.\u0275fac=function(r){return new(r||n)(_e(Cf))},n.\u0275cmp=E({type:n,selectors:[["formly-template"]],standalone:!1,features:[le],decls:1,vars:1,consts:[[3,"innerHtml"]],template:function(r,o){r&1&&k(0,"div",0),r&2&&y("innerHtml",o.template,Zp)},encapsulation:2,changeDetection:0});let t=n;return t})(),bS=(()=>{let n=class n{constructor(){this.types={},this.validators={},this.wrappers={},this.messages={},this.extras={checkExpressionOn:"modelChange",lazyRender:!0,resetFieldOnHide:!0,renderFormlyFieldElement:!0,showError(i){return i.formControl?.invalid&&(i.formControl?.touched||i.options.parentForm?.submitted||!!i.field.validation?.show)}},this.extensions={},this.presets={},this.extensionsByPriority={},this.componentRefs={}}addConfig(i){if(Array.isArray(i)){i.forEach(r=>this.addConfig(r));return}i.types&&i.types.forEach(r=>this.setType(r)),i.validators&&i.validators.forEach(r=>this.setValidator(r)),i.wrappers&&i.wrappers.forEach(r=>this.setWrapper(r)),i.validationMessages&&i.validationMessages.forEach(r=>this.addValidatorMessage(r.name,r.message)),i.extensions&&this.setSortedExtensions(i.extensions),i.extras&&(this.extras=M(M({},this.extras),i.extras)),i.presets&&(this.presets=M(M({},this.presets),i.presets.reduce((r,o)=>De(M({},r),{[o.name]:o.config}),{})))}setType(i){Array.isArray(i)?i.forEach(r=>this.setType(r)):(this.types[i.name]||(this.types[i.name]={name:i.name}),["component","extends","defaultOptions","wrappers"].forEach(r=>{i.hasOwnProperty(r)&&(this.types[i.name][r]=i[r])}))}getType(i,r=!1){if(i instanceof Td)return{component:i,name:i.prototype.constructor.name};if(!this.types[i]){if(r)throw new Error(`[Formly Error] The type "${i}" could not be found. Please make sure that is registered through the FormlyModule declaration.`);return null}return this.mergeExtendedType(i),this.types[i]}getMergedField(i={}){let r=this.getType(i.type);if(!r)return;r.defaultOptions&&Ch(i,r.defaultOptions);let o=r.extends&&this.getType(r.extends).defaultOptions;o&&Ch(i,o),i?.optionsTypes&&i.optionsTypes.forEach(s=>{let l=this.getType(s).defaultOptions;l&&Ch(i,l)});let a=this.resolveFieldTypeRef(i);a?.instance?.defaultOptions&&Ch(i,a.instance.defaultOptions),!i.wrappers&&r.wrappers&&(i.wrappers=[...r.wrappers])}resolveFieldTypeRef(i={}){let r=this.getType(i.type);if(!r||!r.component)return null;if(!this.componentRefs[r.name]){let{_viewContainerRef:o,_injector:a}=i.options;if(!o||!a)return null;let s=o.createComponent(r.component,{injector:a});this.componentRefs[r.name]=s;try{s.destroy()}catch(l){console.error(`An error occurred while destroying the Formly component type "${i.type}"`,l)}}return this.componentRefs[r.name]}clearRefs(){this.componentRefs={}}setWrapper(i){this.wrappers[i.name]=i,i.types&&i.types.forEach(r=>{this.setTypeWrapper(r,i.name)})}getWrapper(i){if(i instanceof Td)return{component:i,name:i.prototype.constructor.name};if(!this.wrappers[i])throw new Error(`[Formly Error] The wrapper "${i}" could not be found. Please make sure that is registered through the FormlyModule declaration.`);return this.wrappers[i]}setTypeWrapper(i,r){this.types[i]||(this.types[i]={}),this.types[i].wrappers||(this.types[i].wrappers=[]),this.types[i].wrappers.indexOf(r)===-1&&this.types[i].wrappers.push(r)}setValidator(i){this.validators[i.name]=i}getValidator(i){if(!this.validators[i])throw new Error(`[Formly Error] The validator "${i}" could not be found. Please make sure that is registered through the FormlyModule declaration.`);return this.validators[i]}addValidatorMessage(i,r){this.messages[i]=r}getValidatorMessage(i){return this.messages[i]}setSortedExtensions(i){i.forEach(r=>{let o=r.priority??1;this.extensionsByPriority[o]=De(M({},this.extensionsByPriority[o]),{[r.name]:r.extension})}),this.extensions=Object.keys(this.extensionsByPriority).map(Number).sort((r,o)=>r-o).reduce((r,o)=>M(M({},r),this.extensionsByPriority[o]),{})}mergeExtendedType(i){if(!this.types[i].extends)return;let r=this.getType(this.types[i].extends);this.types[i].component||(this.types[i].component=r.component),this.types[i].wrappers||(this.types[i].wrappers=r.wrappers)}};n.\u0275fac=function(r){return new(r||n)},n.\u0275prov=O({token:n,factory:n.\u0275fac,providedIn:"root"});let t=n;return t})();var tte=(()=>{let n=class n{};n.\u0275fac=function(r){return new(r||n)},n.\u0275prov=O({token:n,factory:n.\u0275fac});let t=n;return t})(),ite=(()=>{let n=class n{get containerRef(){return this.config.extras.renderFormlyFieldElement?this.viewContainerRef:this.hostContainerRef}get elementRef(){return this.config.extras.renderFormlyFieldElement?this._elementRef:this.componentRefs?.[0]instanceof Id?this.componentRefs[0].location:null}constructor(i,r,o,a,s){this.config=i,this.renderer=r,this._elementRef=o,this.hostContainerRef=a,this.form=s,this.hostObservers=[],this.componentRefs=[],this.hooksObservers=[],this.detectFieldBuild=!1,this.valueChangesUnsubscribe=()=>{}}ngAfterContentInit(){this.triggerHook("afterContentInit")}ngAfterViewInit(){this.triggerHook("afterViewInit")}ngDoCheck(){this.detectFieldBuild&&this.field&&this.field.options&&this.render()}ngOnInit(){this.triggerHook("onInit")}ngOnChanges(i){this.triggerHook("onChanges",i)}ngOnDestroy(){this.resetRefs(this.field),this.hostObservers.forEach(i=>i.unsubscribe()),this.hooksObservers.forEach(i=>i()),this.valueChangesUnsubscribe(),this.triggerHook("onDestroy")}renderField(i,r,o=[]){if(this.containerRef===i&&(this.resetRefs(this.field),this.containerRef.clear(),o=this.field?.wrappers),o?.length>0){let[a,...s]=o,{component:l}=this.config.getWrapper(a),c=i.createComponent(l);this.attachComponentRef(c,r),Wi(c.instance,["fieldComponent"],({currentValue:d,previousValue:m,firstChange:f})=>{if(d){if(m&&m._lContainer===d._lContainer)return;let b=m?m.detach():null;b&&!b.destroyed?d.insert(b):this.renderField(d,r,s),!f&&c.changeDetectorRef.detectChanges()}})}else if(r?.type){let a=this.form?.templates?.find(l=>l.name===r.type),s;if(a)s=i.createEmbeddedView(a.ref,{$implicit:r});else{let{component:l}=this.config.getType(r.type,!0);s=i.createComponent(l)}this.attachComponentRef(s,r)}}triggerHook(i,r){if((i==="onInit"||i==="onChanges"&&r.field&&!r.field.firstChange)&&(this.valueChangesUnsubscribe(),this.valueChangesUnsubscribe=this.fieldChanges(this.field)),this.field?.hooks?.[i]&&(!r||r.field)){let o=this.field.hooks[i](this.field);if(ji(o)&&["onInit","afterContentInit","afterViewInit"].indexOf(i)!==-1){let a=o.subscribe();this.hooksObservers.push(()=>a.unsubscribe())}}i==="onChanges"&&r.field&&(this.resetRefs(r.field.previousValue),this.render())}attachComponentRef(i,r){this.componentRefs.push(i),r._componentRefs.push(i),i instanceof Id&&Object.assign(i.instance,{field:r})}render(){if(this.field){if(!this.field.options){this.detectFieldBuild=!0;return}if(this.detectFieldBuild=!1,this.hostObservers.forEach(i=>i.unsubscribe()),this.hostObservers=[Wi(this.field,["hide"],({firstChange:i,currentValue:r})=>{let o=this.containerRef;this.config.extras.lazyRender===!1?(i&&this.renderField(o,this.field),(!i||i&&r)&&this.elementRef&&this.renderer.setStyle(this.elementRef.nativeElement,"display",r?"none":"")):r?(o.clear(),this.field.className&&this.renderer.removeAttribute(this.elementRef.nativeElement,"class")):(this.renderField(o,this.field),this.field.className&&this.renderer.setAttribute(this.elementRef.nativeElement,"class",this.field.className)),!i&&this.field.options.detectChanges(this.field)}),Wi(this.field,["className"],({firstChange:i,currentValue:r})=>{(!i||i&&r)&&(!this.config.extras.lazyRender||this.field.hide!==!0)&&this.elementRef&&this.renderer.setAttribute(this.elementRef.nativeElement,"class",r)})],!m3())["touched","pristine","status"].forEach(i=>this.hostObservers.push(Wi(this.field,["formControl",i],({firstChange:r})=>!r&&mS(this.field))));else if(this.field.formControl){let i=this.field.formControl.events.subscribe(()=>mS(this.field));this.hostObservers.push(i)}}}resetRefs(i){i&&(i._localFields?i._localFields=[]:nr(this.field,"_localFields",[]),i._componentRefs?i._componentRefs=i._componentRefs.filter(r=>this.componentRefs.indexOf(r)===-1):nr(this.field,"_componentRefs",[])),this.componentRefs=[]}fieldChanges(i){if(!i)return()=>{};let r=d3(i,["props"],()=>i.options.detectChanges(i)),o=[()=>{r()}];for(let s of Object.keys(i._expressions||{})){let l=Wi(i,["_expressions",s],({currentValue:c,previousValue:d})=>{d?.subscription&&(d.subscription.unsubscribe(),d.subscription=null),ji(c.value$)&&(c.subscription=c.value$.subscribe())});o.push(()=>{i._expressions[s]?.subscription&&i._expressions[s].subscription.unsubscribe(),l.unsubscribe()})}for(let s of[["focus"],["template"],["fieldGroupClassName"],["validation","show"]]){let l=Wi(i,s,({firstChange:c})=>!c&&i.options.detectChanges(i));o.push(()=>l.unsubscribe())}if(i.formControl&&!i.fieldGroup){let s=i.formControl,l=s.valueChanges.pipe(se(f=>(i.parsers?.map(b=>f=b(f,i)),Object.is(f,i.formControl.value)||i.formControl.setValue(f),f)),Sn((f,b)=>!(f!==b||Array.isArray(f)||La(f))));s.value!==mu(i)&&(l=l.pipe(He(s.value)));let{updateOn:c,debounce:d}=i.modelOptions;(!c||c==="change")&&d?.default>0&&(l=l.pipe(Rt(d.default)));let m=l.subscribe(f=>{s._fields?.length>1&&s instanceof Jo&&s.patchValue(f,{emitEvent:!1,onlySelf:!0}),mn(i)&&bg(i,f),i.options.fieldChanges.next({value:f,field:i,type:"valueChanges"})});o.push(()=>m.unsubscribe())}let a=[];return Wi(i,["_localFields"],({currentValue:s})=>{a.forEach(l=>l()),a=(s||[]).map(l=>this.fieldChanges(l))}),()=>{o.forEach(s=>s()),a.forEach(s=>s())}}};n.\u0275fac=function(r){return new(r||n)(_e(bS),_e(je),_e(q),_e(nt),_e(tte,8))},n.\u0275cmp=E({type:n,selectors:[["formly-field"]],viewQuery:function(r,o){if(r&1&&ie(Bee,7,nt),r&2){let a;B(a=j())&&(o.viewContainerRef=a.first)}},inputs:{field:"field"},features:[Ae],decls:2,vars:0,consts:[["container",""]],template:function(r,o){r&1&&xa(0,jee,0,0,"ng-template",null,0,_i)},styles:["[_nghost-%COMP%]:empty{display:none}"]});let t=n;return t})(),nte=(()=>{let n=class n extends ite{};n.\u0275fac=(()=>{let i;return function(o){return(i||(i=fe(n)))(o||n)}})(),n.\u0275cmp=E({type:n,selectors:[["formly-field"]],standalone:!1,features:[le],decls:2,vars:0,consts:[["container",""]],template:function(r,o){r&1&&R(0,Hee,0,0,"ng-template",null,0,_i)},styles:["[_nghost-%COMP%]:empty{display:none}"]});let t=n;return t})(),rte=(()=>{let n=class n extends xg{};n.\u0275fac=(()=>{let i;return function(o){return(i||(i=fe(n)))(o||n)}})(),n.\u0275cmp=E({type:n,selectors:[["formly-group"]],hostVars:2,hostBindings:function(r,o){r&2&&it(o.field.fieldGroupClassName||"")},standalone:!1,features:[le],ngContentSelectors:zee,decls:3,vars:0,consts:[[3,"field"]],template:function(r,o){r&1&&(Me(),xt(0,Uee,1,1,"formly-field",0,Hi),oe(2)),r&2&&Ct(o.field.fieldGroup)},dependencies:[nte],encapsulation:2,changeDetection:0});let t=n;return t})(),yg=new T("FORMLY_CONFIG");function ote(t){return{types:[{name:"formly-group",component:rte},{name:"formly-template",component:ete}],extensions:[{name:"core",extension:new pS(t),priority:-250},{name:"field-validation",extension:new gS(t),priority:-200},{name:"field-form",extension:new fS,priority:-150},{name:"field-expression",extension:new hS,priority:-100}]}}var p3=(t=[])=>[{provide:yg,multi:!0,useFactory:ote,deps:[bS]},ate(t)],ate=(t=[])=>({provide:yg,multi:!0,useFactory:()=>{let n=u(yg,{skipSelf:!0,optional:!0});return n?(n.push(t),n):t}});var ste=(()=>{let n=class n{get props(){return this.field.props||{}}get fieldAttrElements(){return this.field?._elementRefs||[]}constructor(i,r,o){this.renderer=i,this.elementRef=r,this.uiAttributesCache={},this.uiEvents={listeners:[],events:["click","keyup","keydown","keypress","focus","blur","change","wheel"],callback:(a,s)=>{switch(a){case"focus":return this.onFocus(s);case"blur":return this.onBlur(s);case"change":return this.onChange(s);default:return this.props[a](this.field,s)}}},this.document=o}ngOnChanges(i){i.field&&(this.field.name&&this.setAttribute("name",this.field.name),this.uiEvents.listeners.forEach(r=>r()),this.uiEvents.events.forEach(r=>{(this.props?.[r]||["focus","blur","change"].indexOf(r)!==-1)&&this.uiEvents.listeners.push(this.renderer.listen(this.elementRef.nativeElement,r,o=>this.uiEvents.callback(r,o)))}),this.props?.attributes&&Wi(this.field,["props","attributes"],({currentValue:r,previousValue:o})=>{o&&Object.keys(o).forEach(a=>this.removeAttribute(a)),r&&Object.keys(r).forEach(a=>{r[a]!=null&&this.setAttribute(a,r[a])})}),this.detachElementRef(i.field.previousValue),this.attachElementRef(i.field.currentValue),this.fieldAttrElements.length===1&&(!this.id&&this.field.id&&this.setAttribute("id",this.field.id),this.focusObserver=Wi(this.field,["focus"],({currentValue:r})=>{this.toggleFocus(r)}))),i.id&&this.setAttribute("id",this.id)}ngDoCheck(){if(!this.uiAttributes){let i=this.elementRef.nativeElement;this.uiAttributes=[..._S,"tabindex","placeholder","readonly","disabled","step"].filter(r=>!i.hasAttribute||!i.hasAttribute(r))}for(let i=0;ii()),this.detachElementRef(this.field),this.focusObserver?.unsubscribe()}toggleFocus(i){let r=this.fieldAttrElements?this.fieldAttrElements[0]:null;if(!r||!r.nativeElement.focus)return;let o=!!this.document.activeElement&&this.fieldAttrElements.some(({nativeElement:a})=>this.document.activeElement===a||a.contains(this.document.activeElement));i&&!o?Promise.resolve().then(()=>r.nativeElement.focus()):!i&&o&&Promise.resolve().then(()=>r.nativeElement.blur())}onFocus(i){this.focusObserver?.setValue(!0),this.props.focus?.(this.field,i)}onBlur(i){this.focusObserver?.setValue(!1),this.props.blur?.(this.field,i)}onHostChange(i){i instanceof Event||this.onChange(i)}onChange(i){this.props.change?.(this.field,i),this.field.formControl?.markAsDirty()}attachElementRef(i){i&&(i._elementRefs?.indexOf(this.elementRef)===-1?i._elementRefs.push(this.elementRef):nr(i,"_elementRefs",[this.elementRef]))}detachElementRef(i){let r=i?._elementRefs?this.fieldAttrElements.indexOf(this.elementRef):-1;r!==-1&&i._elementRefs.splice(r,1)}setAttribute(i,r){this.renderer.setAttribute(this.elementRef.nativeElement,i,r)}removeAttribute(i){this.renderer.removeAttribute(this.elementRef.nativeElement,i)}};n.\u0275fac=function(r){return new(r||n)(_e(je),_e(q),_e(ge))},n.\u0275dir=F({type:n,selectors:[["","formlyAttributes",""]],hostBindings:function(r,o){r&1&&S("change",function(s){return o.onHostChange(s)})},inputs:{field:[0,"formlyAttributes","field"],id:"id"},features:[Ae]});let t=n;return t})(),ta=(()=>{let n=class n extends ste{};n.\u0275fac=(()=>{let i;return function(o){return(i||(i=fe(n)))(o||n)}})(),n.\u0275dir=F({type:n,selectors:[["","formlyAttributes",""]],hostBindings:function(r,o){r&1&&S("change",function(s){return o.onHostChange(s)})},standalone:!1,features:[le]});let t=n;return t})(),lte=(()=>{let n=class n{constructor(i){this.config=i}ngOnChanges(){let i=_S.map(r=>`templateOptions.${r}`);this.errorMessage$=Je(this.field.formControl.statusChanges,this.field.options?this.field.options.fieldChanges.pipe(ce(({field:r,type:o,property:a})=>r===this.field&&o==="expressionChanges"&&(a.indexOf("validation")!==-1||i.indexOf(a)!==-1))):Q(null)).pipe(He(null),$e(()=>ji(this.errorMessage)?this.errorMessage:Q(this.errorMessage)))}get errorMessage(){let i=this.field.formControl;for(let r in i.errors)if(i.errors.hasOwnProperty(r)){let o=this.config.getValidatorMessage(r);if(La(i.errors[r])){if(i.errors[r].errorPath)return;i.errors[r].message&&(o=i.errors[r].message)}return this.field.validation?.messages?.[r]&&(o=this.field.validation.messages[r]),this.field.validators?.[r]?.message&&(o=this.field.validators[r].message),this.field.asyncValidators?.[r]?.message&&(o=this.field.asyncValidators[r].message),typeof o=="function"?o(i.errors[r],this.field):o}}};n.\u0275fac=function(r){return new(r||n)(_e(bS))},n.\u0275cmp=E({type:n,selectors:[["formly-validation-message"]],inputs:{field:"field"},features:[Ae],decls:2,vars:3,template:function(r,o){r&1&&(_(0),me(1,"async")),r&2&&H(Oe(1,1,o.errorMessage$))},dependencies:[rn],encapsulation:2,changeDetection:0});let t=n;return t})(),f3=(()=>{let n=class n extends lte{};n.\u0275fac=(()=>{let i;return function(o){return(i||(i=fe(n)))(o||n)}})(),n.\u0275cmp=E({type:n,selectors:[["formly-validation-message"]],standalone:!1,features:[le],decls:2,vars:3,template:function(r,o){r&1&&(_(0),me(1,"async")),r&2&&H(Oe(1,1,o.errorMessage$))},dependencies:[rn],encapsulation:2,changeDetection:0});let t=n;return t})();var Cg=(()=>{let n=class n extends xg{set _formlyControls(i){}set _staticContent(i){this.fieldComponent=i}};n.\u0275fac=(()=>{let i;return function(o){return(i||(i=fe(n)))(o||n)}})(),n.\u0275dir=F({type:n,viewQuery:function(r,o){if(r&1&&(ie(c3,5,nt),ie(c3,7,nt)),r&2){let a;B(a=j())&&(o.fieldComponent=a.first),B(a=j())&&(o._staticContent=a.first)}},standalone:!1,features:[le]});let t=n;return t})();var wg=t=>({field:t}),_3=t=>({content:t});function cte(t,n){t&1&&(h(0,"span",9),_(1,"*"),p())}function dte(t,n){if(t&1&&(h(0,"mat-label"),_(1),N(2,cte,2,0,"span",9),p()),t&2){let e=C();g(),ve(" ",e.props.label," "),g(),L(e.props.required&&e.props.hideRequiredMarker!==!0?2:-1)}}function ute(t,n){if(t&1&&Ge(0,3),t&2){let e=C();y("ngTemplateOutlet",e.props.textPrefix)("ngTemplateOutletContext",Pt(2,wg,e.field))}}function mte(t,n){if(t&1&&Ge(0,4),t&2){let e=C();y("ngTemplateOutlet",e.props.prefix)("ngTemplateOutletContext",Pt(2,wg,e.field))}}function hte(t,n){if(t&1&&Ge(0,5),t&2){let e=C();y("ngTemplateOutlet",e.props.textSuffix)("ngTemplateOutletContext",Pt(2,wg,e.field))}}function pte(t,n){if(t&1&&Ge(0,6),t&2){let e=C();y("ngTemplateOutlet",e.props.suffix)("ngTemplateOutletContext",Pt(2,wg,e.field))}}function fte(t,n){if(t&1&&(h(0,"mat-hint"),Ge(1,10),p()),t&2){C();let e=Se(13);g(),y("ngTemplateOutlet",e)("ngTemplateOutletContext",Pt(2,_3,n))}}function gte(t,n){if(t&1&&(h(0,"mat-hint",8),Ge(1,10),p()),t&2){C();let e=Se(13);g(),y("ngTemplateOutlet",e)("ngTemplateOutletContext",Pt(2,_3,n))}}function _te(t,n){if(t&1&&(jt(0),_(1),Lt()),t&2){let e=C().content;g(),H(e)}}function bte(t,n){if(t&1&&Ge(0,10),t&2){let e=C().content,i=C();y("ngTemplateOutlet",e)("ngTemplateOutletContext",Pt(2,wg,i.field))}}function vte(t,n){if(t&1&&N(0,_te,2,1,"ng-container")(1,bte,1,4,"ng-container",10),t&2){let e=n.content;L(e.createEmbeddedView?1:0)}}var yte=["matPrefix"],xte=["matTextPrefix"],Cte=["matSuffix"],wte=["matTextSuffix"],Dte=(()=>{let n=class n extends Cg{constructor(i,r,o){super(),this.renderer=i,this.elementRef=r,this.focusMonitor=o}ngOnInit(){nr(this.field,"_formField",this.formField),this.focusMonitor.monitor(this.elementRef,!0).subscribe(i=>{!i&&this.field.focus&&(this.field.focus=!1)})}ngAfterViewInit(){if(this.formField.appearance!=="outline"&&this.props.hideFieldUnderline===!0){let i=this.formField._elementRef.nativeElement.querySelector(".mat-form-field-underline");i&&this.renderer.removeChild(i.parentNode,i)}}ngOnDestroy(){delete this.field._formField,this.focusMonitor.stopMonitoring(this.elementRef)}};n.\u0275fac=function(r){return new(r||n)(_e(je),_e(q),_e(Yt))},n.\u0275cmp=E({type:n,selectors:[["formly-wrapper-mat-form-field"]],viewQuery:function(r,o){if(r&1&&ie(Oi,7),r&2){let a;B(a=j())&&(o.formField=a.first)}},standalone:!1,features:[le],decls:14,vars:13,consts:[["fieldComponent",""],["stringOrTemplate",""],[3,"hideRequiredMarker","floatLabel","appearance","subscriptSizing","color"],["matTextPrefix","",3,"ngTemplateOutlet","ngTemplateOutletContext"],["matPrefix","",3,"ngTemplateOutlet","ngTemplateOutletContext"],["matTextSuffix","",3,"ngTemplateOutlet","ngTemplateOutletContext"],["matSuffix","",3,"ngTemplateOutlet","ngTemplateOutletContext"],[3,"field"],["align","end"],["aria-hidden","true",1,"mat-form-field-required-marker","mat-mdc-form-field-required-marker"],[3,"ngTemplateOutlet","ngTemplateOutletContext"]],template:function(r,o){if(r&1&&(h(0,"mat-form-field",2),Ge(1,null,0),N(3,dte,3,2,"mat-label"),N(4,ute,1,4,"ng-container",3),N(5,mte,1,4,"ng-container",4),N(6,hte,1,4,"ng-container",5),N(7,pte,1,4,"ng-container",6),h(8,"mat-error"),k(9,"formly-validation-message",7),p(),N(10,fte,2,4,"mat-hint"),N(11,gte,2,4,"mat-hint",8),p(),R(12,vte,2,1,"ng-template",null,1,_i)),r&2){let a,s;y("hideRequiredMarker",!0)("floatLabel",o.props.floatLabel)("appearance",o.props.appearance)("subscriptSizing",o.props.subscriptSizing)("color",o.props.color??"primary"),g(3),L(o.props.label&&o.props.hideLabel!==!0?3:-1),g(),L(o.props.textPrefix?4:-1),g(),L(o.props.prefix?5:-1),g(),L(o.props.textSuffix?6:-1),g(),L(o.props.suffix?7:-1),g(2),y("field",o.field),g(),L((a=o.props.description||o.props.hintStart)?10:-1,a),g(),L((s=o.props.hintEnd)?11:-1,s)}},dependencies:[Fn,Oi,sn,eg,xo,nu,ru,f3],styles:[`formly-wrapper-mat-form-field .mat-mdc-form-field,formly-wrapper-mat-form-field .mat-form-field{width:100%} +`],encapsulation:2});let t=n;return t})();function b3(){return{wrappers:[{name:"form-field",component:Dte}]}}var to=(()=>{let n=class n extends xg{constructor(){super(...arguments),this.errorStateMatcher={isErrorState:()=>this.field&&this.showError},this.stateChanges=new z,this._errorState=!1,this._focused=!1}set matPrefix(i){i&&(this.props.prefix=i)}set matTextPrefix(i){i&&(this.props.textPrefix=i)}set matSuffix(i){i&&(this.props.suffix=i)}set matTextSuffix(i){i&&(this.props.textSuffix=i)}set _controls(i){this.attachControl(i.length===1?i.first:this)}ngOnDestroy(){delete this.formField?._control,this.stateChanges.complete()}setDescribedByIds(i){}onContainerClick(i){this.field.focus=!0,this.stateChanges.next()}get errorState(){let i=this.options.showError(this);return i!==this._errorState&&(this._errorState=i,this.stateChanges.next()),i}get controlType(){if(this.props.type)return this.props.type;let i=this.field.type;return i instanceof Td?i.prototype.constructor.name:i}get focused(){let i=!!this.field.focus&&!this.disabled;return i!==this._focused&&(this._focused=i,this.stateChanges.next()),i}get disabled(){return!!this.props.disabled}get required(){return!!this.props.required}get placeholder(){return this.props.placeholder||""}get shouldPlaceholderFloat(){return this.shouldLabelFloat}get value(){return this.formControl?.value}set value(i){this.formControl?.patchValue(i)}get ngControl(){return this.formControl}get empty(){return this.value==null||this.value===""}get shouldLabelFloat(){return this.focused||!this.empty}get formField(){return this.field?._formField}attachControl(i){if(this.formField&&i!==this.formField._control){this.formField._control=i;let r=i?.ngControl;r?.valueAccessor?.hasOwnProperty("_formField")&&(r.valueAccessor._formField=this.formField),r?.valueAccessor?.hasOwnProperty("_parentFormField")&&(r.valueAccessor._parentFormField=this.formField),["prefix","suffix","textPrefix","textSuffix"].forEach(a=>Wi(this.field,["props",a],({currentValue:s})=>s&&Promise.resolve().then(()=>{this.options.detectChanges(this.field)})));let o=i.setDescribedByIds.bind(i);i.setDescribedByIds=a=>{setTimeout(()=>o(a))}}}};n.\u0275fac=(()=>{let i;return function(o){return(i||(i=fe(n)))(o||n)}})(),n.\u0275dir=F({type:n,viewQuery:function(r,o){if(r&1&&(ie(yte,5),ie(xte,5),ie(Cte,5),ie(wte,5),ie(Ra,5)),r&2){let a;B(a=j())&&(o.matPrefix=a.first),B(a=j())&&(o.matTextPrefix=a.first),B(a=j())&&(o.matSuffix=a.first),B(a=j())&&(o.matTextSuffix=a.first),B(a=j())&&(o._controls=a)}},standalone:!1,features:[le]});let t=n;return t})();var v3=(()=>{class t{static \u0275fac=function(i){return new(i||t)};static \u0275cmp=E({type:t,selectors:[["ng-component"]],hostAttrs:["cdk-text-field-style-loader",""],decls:0,vars:0,template:function(i,r){},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 t})(),Ete={passive:!0},y3=(()=>{class t{_platform=u(qe);_ngZone=u(ae);_renderer=u(cn).createRenderer(null,null);_styleLoader=u(ut);_monitoredElements=new Map;constructor(){}monitor(e){if(!this._platform.isBrowser)return Fi;this._styleLoader.load(v3);let i=Pr(e),r=this._monitoredElements.get(i);if(r)return r.subject;let o=new z,a="cdk-text-field-autofilled",s=c=>{c.animationName==="cdk-text-field-autofill-start"&&!i.classList.contains(a)?(i.classList.add(a),this._ngZone.run(()=>o.next({target:c.target,isAutofilled:!0}))):c.animationName==="cdk-text-field-autofill-end"&&i.classList.contains(a)&&(i.classList.remove(a),this._ngZone.run(()=>o.next({target:c.target,isAutofilled:!1})))},l=this._ngZone.runOutsideAngular(()=>(i.classList.add("cdk-text-field-autofill-monitored"),this._renderer.listen(i,"animationstart",s,Ete)));return this._monitoredElements.set(i,{subject:o,unlisten:l}),o}stopMonitoring(e){let i=Pr(e),r=this._monitoredElements.get(i);r&&(r.unlisten(),r.subject.complete(),i.classList.remove("cdk-text-field-autofill-monitored"),i.classList.remove("cdk-text-field-autofilled"),this._monitoredElements.delete(i))}ngOnDestroy(){this._monitoredElements.forEach((e,i)=>this.stopMonitoring(i))}static \u0275fac=function(i){return new(i||t)};static \u0275prov=O({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();var x3=(()=>{class t{_elementRef=u(q);_platform=u(qe);_ngZone=u(ae);_renderer=u(je);_resizeEvents=new z;_previousValue;_initialHeight;_destroyed=new z;_listenerCleanups;_minRows;_maxRows;_enabled=!0;_previousMinRows=-1;_textareaElement;get minRows(){return this._minRows}set minRows(e){this._minRows=Ln(e),this._setMinHeight()}get maxRows(){return this._maxRows}set maxRows(e){this._maxRows=Ln(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=u(ge);_hasFocus;_isViewInited=!1;constructor(){u(ut).load(v3),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(Pl(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),i=e.style;e.rows=1,i.position="absolute",i.visibility="hidden",i.border="none",i.padding="0",i.height="",i.minHeight="",i.maxHeight="",i.top=i.bottom=i.left=i.right="auto",i.overflow="hidden",this._textareaElement.parentNode.appendChild(e),this._cachedLineHeight=e.clientHeight,e.remove(),this._setMinHeight(),this._setMaxHeight()}_measureScrollHeight(){let e=this._textareaElement,i=e.style.marginBottom||"",r=this._platform.FIREFOX,o=r&&this._hasFocus,a=r?"cdk-textarea-autosize-measuring-firefox":"cdk-textarea-autosize-measuring";o&&(e.style.marginBottom=`${e.clientHeight}px`),e.classList.add(a);let s=e.scrollHeight-4;return e.classList.remove(a),o&&(e.style.marginBottom=i),s}_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 i=this._elementRef.nativeElement,r=i.value;if(!e&&this._minRows===this._previousMinRows&&r===this._previousValue)return;let o=this._measureScrollHeight(),a=Math.max(o,this._cachedPlaceholderHeight||0);i.style.height=`${a}px`,this._ngZone.runOutsideAngular(()=>{typeof requestAnimationFrame<"u"?requestAnimationFrame(()=>this._scrollToCaretPosition(i)):setTimeout(()=>this._scrollToCaretPosition(i))}),this._previousValue=r,this._previousMinRows=this._minRows}reset(){this._initialHeight!==void 0&&(this._textareaElement.style.height=this._initialHeight)}_noopInputHandler(){}_scrollToCaretPosition(e){let{selectionStart:i,selectionEnd:r}=e;!this._destroyed.isStopped&&this._hasFocus&&e.setSelectionRange(i,r)}static \u0275fac=function(i){return new(i||t)};static \u0275dir=F({type:t,selectors:[["textarea","cdkTextareaAutosize",""]],hostAttrs:["rows","1",1,"cdk-textarea-autosize"],hostBindings:function(i,r){i&1&&S("input",function(){return r._noopInputHandler()})},inputs:{minRows:[0,"cdkAutosizeMinRows","minRows"],maxRows:[0,"cdkAutosizeMaxRows","maxRows"],enabled:[2,"cdkTextareaAutosize","enabled",V],placeholder:"placeholder"},exportAs:["cdkTextareaAutosize"]})}return t})(),C3=(()=>{class t{static \u0275fac=function(i){return new(i||t)};static \u0275mod=ee({type:t});static \u0275inj=J({})}return t})();var wh=new T("MAT_INPUT_VALUE_ACCESSOR");var kte=["button","checkbox","file","hidden","image","radio","range","reset","submit"],Ste=new T("MAT_INPUT_CONFIG"),hn=(()=>{class t{_elementRef=u(q);_platform=u(qe);ngControl=u(Hn,{optional:!0,self:!0});_autofillMonitor=u(y3);_ngZone=u(ae);_formField=u(Xo,{optional:!0});_renderer=u(je);_uid=u(Ze).getId("mat-input-");_previousNativeValue;_inputValueAccessor;_signalBasedValueAccessor;_previousPlaceholder;_errorStateTracker;_config=u(Ste,{optional:!0});_cleanupIosKeyup;_cleanupWebkitWheel;_isServer;_isNativeSelect;_isTextarea;_isInFormField;focused=!1;stateChanges=new z;controlType="mat-input";autofilled=!1;get disabled(){return this._disabled}set disabled(e){this._disabled=Ai(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(Le.required)??!1}set required(e){this._required=Ai(e)}_required;get type(){return this._type}set type(e){this._type=e||"text",this._validateType(),!this._isTextarea&&Ek().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=Ai(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=>Ek().has(e));constructor(){let e=u(pc,{optional:!0}),i=u(Ki,{optional:!0}),r=u(dl),o=u(wh,{optional:!0,self:!0}),a=this._elementRef.nativeElement,s=a.nodeName.toLowerCase();o?is(o.value)?this._signalBasedValueAccessor=o:this._inputValueAccessor=o:this._inputValueAccessor=a,this._previousNativeValue=this.value,this.id=this.id,this._platform.IOS&&this._ngZone.runOutsideAngular(()=>{this._cleanupIosKeyup=this._renderer.listen(a,"keyup",this._iOSKeyupListener)}),this._errorStateTracker=new cl(r,this.ngControl,i,e,this.stateChanges),this._isServer=!this._platform.isBrowser,this._isNativeSelect=s==="select",this._isTextarea=s==="textarea",this._isInFormField=!!this._formField,this.disabledInteractive=this._config?.disabledInteractive||!1,this._isNativeSelect&&(this.controlType=a.multiple?"mat-native-select-multiple":"mat-native-select"),this._signalBasedValueAccessor&&Ar(()=>{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 i=this._elementRef.nativeElement;i.type==="number"?(i.type="text",i.setSelectionRange(0,0),i.type="number"):i.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 i=this._elementRef.nativeElement;this._previousPlaceholder=e,e?i.setAttribute("placeholder",e):i.removeAttribute("placeholder")}}_getPlaceholder(){return this.placeholder||null}_validateType(){kte.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,i=e.options[0];return this.focused||e.multiple||!this.empty||!!(e.selectedIndex>-1&&i&&i.label)}else return this.focused&&!this.disabled||!this.empty}get describedByIds(){return this._elementRef.nativeElement.getAttribute("aria-describedby")?.split(" ")||[]}setDescribedByIds(e){let i=this._elementRef.nativeElement;e.length?i.setAttribute("aria-describedby",e.join(" ")):i.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 i=e.target;!i.value&&i.selectionStart===0&&i.selectionEnd===0&&(i.setSelectionRange(1,1),i.setSelectionRange(0,0))};_getReadonlyAttribute(){return this._isNativeSelect?null:this.readonly||this.disabled&&this.disabledInteractive?"true":null}static \u0275fac=function(i){return new(i||t)};static \u0275dir=F({type:t,selectors:[["input","matInput",""],["textarea","matInput",""],["select","matNativeControl",""],["input","matNativeControl",""],["textarea","matNativeControl",""]],hostAttrs:[1,"mat-mdc-input-element"],hostVars:21,hostBindings:function(i,r){i&1&&S("focus",function(){return r._focusChanged(!0)})("blur",function(){return r._focusChanged(!1)})("input",function(){return r._onInput()}),i&2&&(si("id",r.id)("disabled",r.disabled&&!r.disabledInteractive)("required",r.required),X("name",r.name||null)("readonly",r._getReadonlyAttribute())("aria-disabled",r.disabled&&r.disabledInteractive?"true":null)("aria-invalid",r.empty&&r.required?null:r.errorState)("aria-required",r.required)("id",r.id),G("mat-input-server",r._isServer)("mat-mdc-form-field-textarea-control",r._isInFormField&&r._isTextarea)("mat-mdc-form-field-input-control",r._isInFormField)("mat-mdc-input-disabled-interactive",r.disabledInteractive)("mdc-text-field__input",r._isInFormField)("mat-mdc-native-select-inline",r._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",V]},exportAs:["matInput"],features:[Ce([{provide:Ra,useExisting:t}]),Ae]})}return t})(),rr=(()=>{class t{static \u0275fac=function(i){return new(i||t)};static \u0275mod=ee({type:t});static \u0275inj=J({imports:[we,$i,$i,C3,we]})}return t})();function Tte(t,n){if(t&1&&k(0,"input",0),t&2){let e=C();y("id",e.id)("name",e.field.name)("type",e.type||"text")("readonly",e.props.readonly)("required",e.required)("errorStateMatcher",e.errorStateMatcher)("formControl",e.formControl)("formlyAttributes",e.field)("tabIndex",e.props.tabindex)("placeholder",e.props.placeholder)}}function Ite(t,n){if(t&1&&k(0,"input",1),t&2){let e=C();y("id",e.id)("name",e.field.name)("readonly",e.props.readonly)("required",e.required)("errorStateMatcher",e.errorStateMatcher)("formControl",e.formControl)("formlyAttributes",e.field)("tabIndex",e.props.tabindex)("placeholder",e.props.placeholder)}}var Ate=(()=>{let n=class n extends to{get type(){return this.props.type||"text"}};n.\u0275fac=(()=>{let i;return function(o){return(i||(i=fe(n)))(o||n)}})(),n.\u0275cmp=E({type:n,selectors:[["formly-field-mat-input"]],standalone:!1,features:[le],decls:2,vars:1,consts:[["matInput","",3,"id","name","type","readonly","required","errorStateMatcher","formControl","formlyAttributes","tabIndex","placeholder"],["matInput","","type","number",3,"id","name","readonly","required","errorStateMatcher","formControl","formlyAttributes","tabIndex","placeholder"]],template:function(r,o){r&1&&N(0,Tte,1,10,"input",0)(1,Ite,1,9,"input",1),r&2&&L(o.type!=="number"?0:1)},dependencies:[Qi,cu,ei,Do,wo,hn,ta],encapsulation:2,changeDetection:0});let t=n;return t})();function w3(){return{types:[{name:"input",component:Ate,wrappers:["form-field"]},{name:"string",extends:"input"},{name:"number",extends:"input",defaultOptions:{props:{type:"number"}}},{name:"integer",extends:"input",defaultOptions:{props:{type:"number"}}}]}}var Ote=(()=>{let n=class n extends to{constructor(){super(...arguments),this.defaultOptions={props:{cols:1,rows:1}}}};n.\u0275fac=(()=>{let i;return function(o){return(i||(i=fe(n)))(o||n)}})(),n.\u0275cmp=E({type:n,selectors:[["formly-field-mat-textarea"]],standalone:!1,features:[Ce([{provide:wh,useExisting:n}]),le],decls:1,vars:16,consts:[["matInput","",3,"id","name","readonly","required","formControl","errorStateMatcher","cols","rows","formlyAttributes","placeholder","tabindex","cdkTextareaAutosize","cdkAutosizeMinRows","cdkAutosizeMaxRows"]],template:function(r,o){r&1&&k(0,"textarea",0),r&2&&(G("cdk-textarea-autosize",o.props.autosize),y("id",o.id)("name",o.field.name)("readonly",o.props.readonly)("required",o.required)("formControl",o.formControl)("errorStateMatcher",o.errorStateMatcher)("cols",o.props.cols)("rows",o.props.rows)("formlyAttributes",o.field)("placeholder",o.props.placeholder)("tabindex",o.props.tabindex)("cdkTextareaAutosize",o.props.autosize)("cdkAutosizeMinRows",o.props.autosizeMinRows)("cdkAutosizeMaxRows",o.props.autosizeMaxRows))},dependencies:[Qi,ei,Do,wo,hn,x3,ta],encapsulation:2,changeDetection:0});let t=n;return t})();function D3(){return{types:[{name:"textarea",component:Ote,wrappers:["form-field"]}]}}var Rte=["input"],Pte=["formField"],Fte=["*"],vx=class{source;value;constructor(n,e){this.source=n,this.value=e}},Nte={provide:tr,useExisting:Kt(()=>Dg),multi:!0},E3=new T("MatRadioGroup"),Lte=new T("mat-radio-default-options",{providedIn:"root",factory:Vte});function Vte(){return{color:"accent",disabledInteractive:!1}}var Dg=(()=>{class t{_changeDetector=u(ye);_value=null;_name=u(Ze).getId("mat-radio-group-");_selected=null;_isInitialized=!1;_labelPosition="after";_disabled=!1;_required=!1;_buttonChanges;_controlValueAccessorChangeFn=()=>{};onTouched=()=>{};change=new U;_radios;color;get name(){return this._name}set name(e){this._name=e,this._updateRadioButtonNames()}get labelPosition(){return this._labelPosition}set labelPosition(e){this._labelPosition=e==="before"?"before":"after",this._markRadiosForCheck()}get value(){return this._value}set value(e){this._value!==e&&(this._value=e,this._updateSelectedRadioFromValue(),this._checkSelectedRadioButton())}_checkSelectedRadioButton(){this._selected&&!this._selected.checked&&(this._selected.checked=!0)}get selected(){return this._selected}set selected(e){this._selected=e,this.value=e?e.value:null,this._checkSelectedRadioButton()}get disabled(){return this._disabled}set disabled(e){this._disabled=e,this._markRadiosForCheck()}get required(){return this._required}set required(e){this._required=e,this._markRadiosForCheck()}get disabledInteractive(){return this._disabledInteractive}set disabledInteractive(e){this._disabledInteractive=e,this._markRadiosForCheck()}_disabledInteractive=!1;constructor(){}ngAfterContentInit(){this._isInitialized=!0,this._buttonChanges=this._radios.changes.subscribe(()=>{this.selected&&!this._radios.find(e=>e===this.selected)&&(this._selected=null)})}ngOnDestroy(){this._buttonChanges?.unsubscribe()}_touch(){this.onTouched&&this.onTouched()}_updateRadioButtonNames(){this._radios&&this._radios.forEach(e=>{e.name=this.name,e._markForCheck()})}_updateSelectedRadioFromValue(){let e=this._selected!==null&&this._selected.value===this._value;this._radios&&!e&&(this._selected=null,this._radios.forEach(i=>{i.checked=this.value===i.value,i.checked&&(this._selected=i)}))}_emitChangeEvent(){this._isInitialized&&this.change.emit(new vx(this._selected,this._value))}_markRadiosForCheck(){this._radios&&this._radios.forEach(e=>e._markForCheck())}writeValue(e){this.value=e,this._changeDetector.markForCheck()}registerOnChange(e){this._controlValueAccessorChangeFn=e}registerOnTouched(e){this.onTouched=e}setDisabledState(e){this.disabled=e,this._changeDetector.markForCheck()}static \u0275fac=function(i){return new(i||t)};static \u0275dir=F({type:t,selectors:[["mat-radio-group"]],contentQueries:function(i,r,o){if(i&1&&xe(o,vS,5),i&2){let a;B(a=j())&&(r._radios=a)}},hostAttrs:["role","radiogroup",1,"mat-mdc-radio-group"],inputs:{color:"color",name:"name",labelPosition:"labelPosition",value:"value",selected:"selected",disabled:[2,"disabled","disabled",V],required:[2,"required","required",V],disabledInteractive:[2,"disabledInteractive","disabledInteractive",V]},outputs:{change:"change"},exportAs:["matRadioGroup"],features:[Ce([Nte,{provide:E3,useExisting:t}])]})}return t})(),vS=(()=>{class t{_elementRef=u(q);_changeDetector=u(ye);_focusMonitor=u(Yt);_radioDispatcher=u(au);_defaultOptions=u(Lte,{optional:!0});_ngZone=u(ae);_renderer=u(je);_uniqueId=u(Ze).getId("mat-radio-");_cleanupClick;id=this._uniqueId;name;ariaLabel;ariaLabelledby;ariaDescribedby;disableRipple=!1;tabIndex=0;get checked(){return this._checked}set checked(e){this._checked!==e&&(this._checked=e,e&&this.radioGroup&&this.radioGroup.value!==this.value?this.radioGroup.selected=this:!e&&this.radioGroup&&this.radioGroup.value===this.value&&(this.radioGroup.selected=null),e&&this._radioDispatcher.notify(this.id,this.name),this._changeDetector.markForCheck())}get value(){return this._value}set value(e){this._value!==e&&(this._value=e,this.radioGroup!==null&&(this.checked||(this.checked=this.radioGroup.value===e),this.checked&&(this.radioGroup.selected=this)))}get labelPosition(){return this._labelPosition||this.radioGroup&&this.radioGroup.labelPosition||"after"}set labelPosition(e){this._labelPosition=e}_labelPosition;get disabled(){return this._disabled||this.radioGroup!==null&&this.radioGroup.disabled}set disabled(e){this._setDisabled(e)}get required(){return this._required||this.radioGroup&&this.radioGroup.required}set required(e){e!==this._required&&this._changeDetector.markForCheck(),this._required=e}get color(){return this._color||this.radioGroup&&this.radioGroup.color||this._defaultOptions&&this._defaultOptions.color||"accent"}set color(e){this._color=e}_color;get disabledInteractive(){return this._disabledInteractive||this.radioGroup!==null&&this.radioGroup.disabledInteractive}set disabledInteractive(e){this._disabledInteractive=e}_disabledInteractive;change=new U;radioGroup;get inputId(){return`${this.id||this._uniqueId}-input`}_checked=!1;_disabled;_required;_value=null;_removeUniqueSelectionListener=()=>{};_previousTabIndex;_inputElement;_rippleTrigger;_noopAnimations=Ye();_injector=u(de);constructor(){u(ut).load(Di);let e=u(E3,{optional:!0}),i=u(new Ii("tabindex"),{optional:!0});this.radioGroup=e,this._disabledInteractive=this._defaultOptions?.disabledInteractive??!1,i&&(this.tabIndex=ct(i,0))}focus(e,i){i?this._focusMonitor.focusVia(this._inputElement,i,e):this._inputElement.nativeElement.focus(e)}_markForCheck(){this._changeDetector.markForCheck()}ngOnInit(){this.radioGroup&&(this.checked=this.radioGroup.value===this._value,this.checked&&(this.radioGroup.selected=this),this.name=this.radioGroup.name),this._removeUniqueSelectionListener=this._radioDispatcher.listen((e,i)=>{e!==this.id&&i===this.name&&(this.checked=!1)})}ngDoCheck(){this._updateTabIndex()}ngAfterViewInit(){this._updateTabIndex(),this._focusMonitor.monitor(this._elementRef,!0).subscribe(e=>{!e&&this.radioGroup&&this.radioGroup._touch()}),this._ngZone.runOutsideAngular(()=>{this._cleanupClick=this._renderer.listen(this._inputElement.nativeElement,"click",this._onInputClick)})}ngOnDestroy(){this._cleanupClick?.(),this._focusMonitor.stopMonitoring(this._elementRef),this._removeUniqueSelectionListener()}_emitChangeEvent(){this.change.emit(new vx(this,this._value))}_isRippleDisabled(){return this.disableRipple||this.disabled}_onInputInteraction(e){if(e.stopPropagation(),!this.checked&&!this.disabled){let i=this.radioGroup&&this.value!==this.radioGroup.value;this.checked=!0,this._emitChangeEvent(),this.radioGroup&&(this.radioGroup._controlValueAccessorChangeFn(this.value),i&&this.radioGroup._emitChangeEvent())}}_onTouchTargetClick(e){this._onInputInteraction(e),(!this.disabled||this.disabledInteractive)&&this._inputElement?.nativeElement.focus()}_setDisabled(e){this._disabled!==e&&(this._disabled=e,this._changeDetector.markForCheck())}_onInputClick=e=>{this.disabled&&this.disabledInteractive&&e.preventDefault()};_updateTabIndex(){let e=this.radioGroup,i;if(!e||!e.selected||this.disabled?i=this.tabIndex:i=e.selected===this?this.tabIndex:-1,i!==this._previousTabIndex){let r=this._inputElement?.nativeElement;r&&(r.setAttribute("tabindex",i+""),this._previousTabIndex=i,pt(()=>{queueMicrotask(()=>{e&&e.selected&&e.selected!==this&&document.activeElement===r&&(e.selected?._inputElement.nativeElement.focus(),document.activeElement===r&&this._inputElement.nativeElement.blur())})},{injector:this._injector}))}}static \u0275fac=function(i){return new(i||t)};static \u0275cmp=E({type:t,selectors:[["mat-radio-button"]],viewQuery:function(i,r){if(i&1&&(ie(Rte,5),ie(Pte,7,q)),i&2){let o;B(o=j())&&(r._inputElement=o.first),B(o=j())&&(r._rippleTrigger=o.first)}},hostAttrs:[1,"mat-mdc-radio-button"],hostVars:19,hostBindings:function(i,r){i&1&&S("focus",function(){return r._inputElement.nativeElement.focus()}),i&2&&(X("id",r.id)("tabindex",null)("aria-label",null)("aria-labelledby",null)("aria-describedby",null),G("mat-primary",r.color==="primary")("mat-accent",r.color==="accent")("mat-warn",r.color==="warn")("mat-mdc-radio-checked",r.checked)("mat-mdc-radio-disabled",r.disabled)("mat-mdc-radio-disabled-interactive",r.disabledInteractive)("_mat-animation-noopable",r._noopAnimations))},inputs:{id:"id",name:"name",ariaLabel:[0,"aria-label","ariaLabel"],ariaLabelledby:[0,"aria-labelledby","ariaLabelledby"],ariaDescribedby:[0,"aria-describedby","ariaDescribedby"],disableRipple:[2,"disableRipple","disableRipple",V],tabIndex:[2,"tabIndex","tabIndex",e=>e==null?0:ct(e)],checked:[2,"checked","checked",V],value:"value",labelPosition:"labelPosition",disabled:[2,"disabled","disabled",V],required:[2,"required","required",V],color:"color",disabledInteractive:[2,"disabledInteractive","disabledInteractive",V]},outputs:{change:"change"},exportAs:["matRadioButton"],ngContentSelectors:Fte,decls:13,vars:17,consts:[["formField",""],["input",""],["mat-internal-form-field","",3,"labelPosition"],[1,"mdc-radio"],[1,"mat-mdc-radio-touch-target",3,"click"],["type","radio","aria-invalid","false",1,"mdc-radio__native-control",3,"change","id","checked","disabled","required"],[1,"mdc-radio__background"],[1,"mdc-radio__outer-circle"],[1,"mdc-radio__inner-circle"],["mat-ripple","",1,"mat-radio-ripple","mat-focus-indicator",3,"matRippleTrigger","matRippleDisabled","matRippleCentered"],[1,"mat-ripple-element","mat-radio-persistent-ripple"],[1,"mdc-label",3,"for"]],template:function(i,r){if(i&1){let o=Y();Me(),h(0,"div",2,0)(2,"div",3)(3,"div",4),S("click",function(s){return I(o),A(r._onTouchTargetClick(s))}),p(),h(4,"input",5,1),S("change",function(s){return I(o),A(r._onInputInteraction(s))}),p(),h(6,"div",6),k(7,"div",7)(8,"div",8),p(),h(9,"div",9),k(10,"div",10),p()(),h(11,"label",11),oe(12),p()()}i&2&&(y("labelPosition",r.labelPosition),g(2),G("mdc-radio--disabled",r.disabled),g(2),y("id",r.inputId)("checked",r.checked)("disabled",r.disabled&&!r.disabledInteractive)("required",r.required),X("name",r.name)("value",r.value)("aria-label",r.ariaLabel)("aria-labelledby",r.ariaLabelledby)("aria-describedby",r.ariaDescribedby)("aria-disabled",r.disabled&&r.disabledInteractive?"true":null),g(5),y("matRippleTrigger",r._rippleTrigger.nativeElement)("matRippleDisabled",r._isRippleDisabled())("matRippleCentered",!0),g(2),y("for",r.inputId))},dependencies:[Vn,Gm],styles:[`.mat-mdc-radio-button{-webkit-tap-highlight-color:rgba(0,0,0,0)}.mat-mdc-radio-button .mdc-radio{display:inline-block;position:relative;flex:0 0 auto;box-sizing:content-box;width:20px;height:20px;cursor:pointer;will-change:opacity,transform,border-color,color;padding:calc((var(--mat-radio-state-layer-size, 40px) - 20px)/2)}.mat-mdc-radio-button .mdc-radio:hover>.mdc-radio__native-control:not([disabled]):not(:focus)~.mdc-radio__background::before{opacity:.04;transform:scale(1)}.mat-mdc-radio-button .mdc-radio:hover>.mdc-radio__native-control:not([disabled])~.mdc-radio__background>.mdc-radio__outer-circle{border-color:var(--mat-radio-unselected-hover-icon-color, var(--mat-sys-on-surface))}.mat-mdc-radio-button .mdc-radio:hover>.mdc-radio__native-control:enabled:checked+.mdc-radio__background>.mdc-radio__outer-circle{border-color:var(--mat-radio-selected-hover-icon-color, var(--mat-sys-primary))}.mat-mdc-radio-button .mdc-radio:hover>.mdc-radio__native-control:enabled:checked+.mdc-radio__background>.mdc-radio__inner-circle{background-color:var(--mat-radio-selected-hover-icon-color, var(--mat-sys-primary, currentColor))}.mat-mdc-radio-button .mdc-radio:active>.mdc-radio__native-control:enabled:not(:checked)+.mdc-radio__background>.mdc-radio__outer-circle{border-color:var(--mat-radio-unselected-pressed-icon-color, var(--mat-sys-on-surface))}.mat-mdc-radio-button .mdc-radio:active>.mdc-radio__native-control:enabled:checked+.mdc-radio__background>.mdc-radio__outer-circle{border-color:var(--mat-radio-selected-pressed-icon-color, var(--mat-sys-primary))}.mat-mdc-radio-button .mdc-radio:active>.mdc-radio__native-control:enabled:checked+.mdc-radio__background>.mdc-radio__inner-circle{background-color:var(--mat-radio-selected-pressed-icon-color, var(--mat-sys-primary, currentColor))}.mat-mdc-radio-button .mdc-radio__background{display:inline-block;position:relative;box-sizing:border-box;width:20px;height:20px}.mat-mdc-radio-button .mdc-radio__background::before{position:absolute;transform:scale(0, 0);border-radius:50%;opacity:0;pointer-events:none;content:"";transition:opacity 90ms cubic-bezier(0.4, 0, 0.6, 1),transform 90ms cubic-bezier(0.4, 0, 0.6, 1);width:var(--mat-radio-state-layer-size, 40px);height:var(--mat-radio-state-layer-size, 40px);top:calc(-1*(var(--mat-radio-state-layer-size, 40px) - 20px)/2);left:calc(-1*(var(--mat-radio-state-layer-size, 40px) - 20px)/2)}.mat-mdc-radio-button .mdc-radio__outer-circle{position:absolute;top:0;left:0;box-sizing:border-box;width:100%;height:100%;border-width:2px;border-style:solid;border-radius:50%;transition:border-color 90ms cubic-bezier(0.4, 0, 0.6, 1)}.mat-mdc-radio-button .mdc-radio__inner-circle{position:absolute;top:0;left:0;box-sizing:border-box;width:100%;height:100%;transform:scale(0);border-radius:50%;transition:transform 90ms cubic-bezier(0.4, 0, 0.6, 1),background-color 90ms cubic-bezier(0.4, 0, 0.6, 1)}@media(forced-colors: active){.mat-mdc-radio-button .mdc-radio__inner-circle{background-color:CanvasText !important}}.mat-mdc-radio-button .mdc-radio__native-control{position:absolute;margin:0;padding:0;opacity:0;top:0;right:0;left:0;cursor:inherit;z-index:1;width:var(--mat-radio-state-layer-size, 40px);height:var(--mat-radio-state-layer-size, 40px)}.mat-mdc-radio-button .mdc-radio__native-control:checked+.mdc-radio__background,.mat-mdc-radio-button .mdc-radio__native-control:disabled+.mdc-radio__background{transition:opacity 90ms cubic-bezier(0, 0, 0.2, 1),transform 90ms cubic-bezier(0, 0, 0.2, 1)}.mat-mdc-radio-button .mdc-radio__native-control:checked+.mdc-radio__background>.mdc-radio__outer-circle,.mat-mdc-radio-button .mdc-radio__native-control:disabled+.mdc-radio__background>.mdc-radio__outer-circle{transition:border-color 90ms cubic-bezier(0, 0, 0.2, 1)}.mat-mdc-radio-button .mdc-radio__native-control:checked+.mdc-radio__background>.mdc-radio__inner-circle,.mat-mdc-radio-button .mdc-radio__native-control:disabled+.mdc-radio__background>.mdc-radio__inner-circle{transition:transform 90ms cubic-bezier(0, 0, 0.2, 1),background-color 90ms cubic-bezier(0, 0, 0.2, 1)}.mat-mdc-radio-button .mdc-radio__native-control:focus+.mdc-radio__background::before{transform:scale(1);opacity:.12;transition:opacity 90ms cubic-bezier(0, 0, 0.2, 1),transform 90ms cubic-bezier(0, 0, 0.2, 1)}.mat-mdc-radio-button .mdc-radio__native-control:disabled:not(:checked)+.mdc-radio__background>.mdc-radio__outer-circle{border-color:var(--mat-radio-disabled-unselected-icon-color, var(--mat-sys-on-surface));opacity:var(--mat-radio-disabled-unselected-icon-opacity, 0.38)}.mat-mdc-radio-button .mdc-radio__native-control:disabled+.mdc-radio__background{cursor:default}.mat-mdc-radio-button .mdc-radio__native-control:disabled+.mdc-radio__background>.mdc-radio__outer-circle{border-color:var(--mat-radio-disabled-selected-icon-color, var(--mat-sys-on-surface));opacity:var(--mat-radio-disabled-selected-icon-opacity, 0.38)}.mat-mdc-radio-button .mdc-radio__native-control:disabled+.mdc-radio__background>.mdc-radio__inner-circle{background-color:var(--mat-radio-disabled-selected-icon-color, var(--mat-sys-on-surface, currentColor));opacity:var(--mat-radio-disabled-selected-icon-opacity, 0.38)}.mat-mdc-radio-button .mdc-radio__native-control:enabled:not(:checked)+.mdc-radio__background>.mdc-radio__outer-circle{border-color:var(--mat-radio-unselected-icon-color, var(--mat-sys-on-surface-variant))}.mat-mdc-radio-button .mdc-radio__native-control:enabled:checked+.mdc-radio__background>.mdc-radio__outer-circle{border-color:var(--mat-radio-selected-icon-color, var(--mat-sys-primary))}.mat-mdc-radio-button .mdc-radio__native-control:enabled:checked+.mdc-radio__background>.mdc-radio__inner-circle{background-color:var(--mat-radio-selected-icon-color, var(--mat-sys-primary, currentColor))}.mat-mdc-radio-button .mdc-radio__native-control:enabled:focus:checked+.mdc-radio__background>.mdc-radio__outer-circle{border-color:var(--mat-radio-selected-focus-icon-color, var(--mat-sys-primary))}.mat-mdc-radio-button .mdc-radio__native-control:enabled:focus:checked+.mdc-radio__background>.mdc-radio__inner-circle{background-color:var(--mat-radio-selected-focus-icon-color, var(--mat-sys-primary, currentColor))}.mat-mdc-radio-button .mdc-radio__native-control:checked+.mdc-radio__background>.mdc-radio__inner-circle{transform:scale(0.5);transition:transform 90ms cubic-bezier(0, 0, 0.2, 1),background-color 90ms cubic-bezier(0, 0, 0.2, 1)}.mat-mdc-radio-button.mat-mdc-radio-disabled-interactive .mdc-radio--disabled{pointer-events:auto}.mat-mdc-radio-button.mat-mdc-radio-disabled-interactive .mdc-radio--disabled .mdc-radio__native-control:not(:checked)+.mdc-radio__background>.mdc-radio__outer-circle{border-color:var(--mat-radio-disabled-unselected-icon-color, var(--mat-sys-on-surface));opacity:var(--mat-radio-disabled-unselected-icon-opacity, 0.38)}.mat-mdc-radio-button.mat-mdc-radio-disabled-interactive .mdc-radio--disabled:hover .mdc-radio__native-control:checked+.mdc-radio__background>.mdc-radio__outer-circle,.mat-mdc-radio-button.mat-mdc-radio-disabled-interactive .mdc-radio--disabled .mdc-radio__native-control:checked:focus+.mdc-radio__background>.mdc-radio__outer-circle,.mat-mdc-radio-button.mat-mdc-radio-disabled-interactive .mdc-radio--disabled .mdc-radio__native-control+.mdc-radio__background>.mdc-radio__outer-circle{border-color:var(--mat-radio-disabled-selected-icon-color, var(--mat-sys-on-surface));opacity:var(--mat-radio-disabled-selected-icon-opacity, 0.38)}.mat-mdc-radio-button.mat-mdc-radio-disabled-interactive .mdc-radio--disabled:hover .mdc-radio__native-control:checked+.mdc-radio__background>.mdc-radio__inner-circle,.mat-mdc-radio-button.mat-mdc-radio-disabled-interactive .mdc-radio--disabled .mdc-radio__native-control:checked:focus+.mdc-radio__background>.mdc-radio__inner-circle,.mat-mdc-radio-button.mat-mdc-radio-disabled-interactive .mdc-radio--disabled .mdc-radio__native-control+.mdc-radio__background>.mdc-radio__inner-circle{background-color:var(--mat-radio-disabled-selected-icon-color, var(--mat-sys-on-surface, currentColor));opacity:var(--mat-radio-disabled-selected-icon-opacity, 0.38)}.mat-mdc-radio-button._mat-animation-noopable .mdc-radio__background::before,.mat-mdc-radio-button._mat-animation-noopable .mdc-radio__outer-circle,.mat-mdc-radio-button._mat-animation-noopable .mdc-radio__inner-circle{transition:none !important}.mat-mdc-radio-button label{cursor:pointer}.mat-mdc-radio-button .mdc-radio__background::before{background-color:var(--mat-radio-ripple-color, var(--mat-sys-on-surface))}.mat-mdc-radio-button.mat-mdc-radio-checked .mat-ripple-element,.mat-mdc-radio-button.mat-mdc-radio-checked .mdc-radio__background::before{background-color:var(--mat-radio-checked-ripple-color, var(--mat-sys-primary))}.mat-mdc-radio-button.mat-mdc-radio-disabled-interactive .mdc-radio--disabled .mat-ripple-element,.mat-mdc-radio-button.mat-mdc-radio-disabled-interactive .mdc-radio--disabled .mdc-radio__background::before{background-color:var(--mat-radio-ripple-color, var(--mat-sys-on-surface))}.mat-mdc-radio-button .mat-internal-form-field{color:var(--mat-radio-label-text-color, var(--mat-sys-on-surface));font-family:var(--mat-radio-label-text-font, var(--mat-sys-body-medium-font));line-height:var(--mat-radio-label-text-line-height, var(--mat-sys-body-medium-line-height));font-size:var(--mat-radio-label-text-size, var(--mat-sys-body-medium-size));letter-spacing:var(--mat-radio-label-text-tracking, var(--mat-sys-body-medium-tracking));font-weight:var(--mat-radio-label-text-weight, var(--mat-sys-body-medium-weight))}.mat-mdc-radio-button .mdc-radio--disabled+label{color:var(--mat-radio-disabled-label-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent))}.mat-mdc-radio-button .mat-radio-ripple{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none;border-radius:50%}.mat-mdc-radio-button .mat-radio-ripple>.mat-ripple-element{opacity:.14}.mat-mdc-radio-button .mat-radio-ripple::before{border-radius:50%}.mat-mdc-radio-button .mdc-radio>.mdc-radio__native-control:focus:enabled:not(:checked)~.mdc-radio__background>.mdc-radio__outer-circle{border-color:var(--mat-radio-unselected-focus-icon-color, var(--mat-sys-on-surface))}.mat-mdc-radio-button.cdk-focused .mat-focus-indicator::before{content:""}.mat-mdc-radio-disabled{cursor:default;pointer-events:none}.mat-mdc-radio-disabled.mat-mdc-radio-disabled-interactive{pointer-events:auto}.mat-mdc-radio-touch-target{position:absolute;top:50%;left:50%;height:var(--mat-radio-touch-target-size, 48px);width:var(--mat-radio-touch-target-size, 48px);transform:translate(-50%, -50%);display:var(--mat-radio-touch-target-display, block)}[dir=rtl] .mat-mdc-radio-touch-target{left:auto;right:50%;transform:translate(50%, -50%)} +`],encapsulation:2,changeDetection:0})}return t})();var jte=(()=>{let n=class n{transform(i,r){return i instanceof Fe?this.dispose():i=this.observableOf(i,r),i.pipe(se(o=>this.transformOptions(o,r)))}ngOnDestroy(){this.dispose()}transformOptions(i,r){let o=this.transformSelectProps(r),a=[],s={};return i?.forEach(l=>{let c=this.transformOption(l,o);if(c.group){let d=s[c.label];d===void 0?s[c.label]=a.push(c)-1:c.group.forEach(m=>a[d].group.push(m))}else a.push(c)}),a}transformOption(i,r){let o=r.groupProp(i);return Array.isArray(o)?{label:r.labelProp(i),group:o.map(a=>this.transformOption(a,r))}:(i={label:r.labelProp(i),value:r.valueProp(i),disabled:!!r.disabledProp(i)},o?{label:o,group:[i]}:i)}transformSelectProps(i){let r=i?.props||i?.templateOptions||{},o=a=>typeof a=="function"?a:s=>s[a];return{groupProp:o(r.groupProp||"group"),labelProp:o(r.labelProp||"label"),valueProp:o(r.valueProp||"value"),disabledProp:o(r.disabledProp||"disabled")}}dispose(){this._options&&(this._options.complete(),this._options=null),this._subscription&&(this._subscription.unsubscribe(),this._subscription=null)}observableOf(i,r){return this.dispose(),r&&r.options&&r.options.fieldChanges&&(this._subscription=r.options.fieldChanges.pipe(ce(({property:o,type:a,field:s})=>a==="expressionChanges"&&(o.indexOf("templateOptions.options")===0||o.indexOf("props.options")===0)&&s===r&&Array.isArray(s.props.options)&&!!this._options),Be(()=>this._options.next(r.props.options))).subscribe()),this._options=new tt(i),this._options.asObservable()}};n.\u0275fac=function(r){return new(r||n)},n.\u0275pipe=Wr({name:"formlySelectOptions",type:n,pure:!0});let t=n;return t})(),Eh=(()=>{let n=class n extends jte{};n.\u0275fac=(()=>{let i;return function(o){return(i||(i=fe(n)))(o||n)}})(),n.\u0275pipe=Wr({name:"formlySelectOptions",type:n,pure:!0,standalone:!1});let t=n;return t})();function Hte(t,n){if(t&1&&(h(0,"mat-radio-button",1),_(1),p()),t&2){let e=n.$implicit,i=n.$index,r=C();y("id",r.id+"_"+i)("color",r.props.color)("labelPosition",r.props.labelPosition)("disabled",e.disabled)("value",e.value),g(),ve(" ",e.label," ")}}var zte=(()=>{let n=class n extends to{constructor(){super(...arguments),this.defaultOptions={props:{hideFieldUnderline:!0,floatLabel:"always",tabindex:-1}}}ngAfterViewInit(){this.focusObserver=Wi(this.field,["focus"],({currentValue:i})=>{this.props.tabindex===-1&&i&&this.radioGroup._radios.length>0&&setTimeout(()=>{(this.radioGroup.selected?this.radioGroup.selected:this.radioGroup._radios.first).focus()})})}onContainerClick(){}ngOnDestroy(){super.ngOnDestroy(),this.focusObserver&&this.focusObserver.unsubscribe()}};n.\u0275fac=(()=>{let i;return function(o){return(i||(i=fe(n)))(o||n)}})(),n.\u0275cmp=E({type:n,selectors:[["formly-field-mat-radio"]],viewQuery:function(r,o){if(r&1&&ie(Dg,7),r&2){let a;B(a=j())&&(o.radioGroup=a.first)}},standalone:!1,features:[le],decls:5,vars:9,consts:[[3,"formControl","formlyAttributes","required","tabindex"],[3,"id","color","labelPosition","disabled","value"]],template:function(r,o){r&1&&(h(0,"mat-radio-group",0),xt(1,Hte,2,6,"mat-radio-button",1,Hi),me(3,"formlySelectOptions"),me(4,"async"),p()),r&2&&(y("formControl",o.formControl)("formlyAttributes",o.field)("required",o.required)("tabindex",o.props.tabindex),g(),Ct(Oe(4,7,Ni(3,4,o.props.options,o.field))))},dependencies:[ei,Do,wo,Dg,vS,ta,rn,Eh],encapsulation:2,changeDetection:0});let t=n;return t})();function M3(){return{types:[{name:"radio",component:zte,wrappers:["form-field"]}]}}var Ute=["input"],$te=["label"],Wte=["*"],Gte=new T("mat-checkbox-default-options",{providedIn:"root",factory:S3});function S3(){return{color:"accent",clickAction:"check-indeterminate",disabledInteractive:!1}}var xr=(function(t){return t[t.Init=0]="Init",t[t.Checked=1]="Checked",t[t.Unchecked=2]="Unchecked",t[t.Indeterminate=3]="Indeterminate",t})(xr||{}),xS=class{source;checked},k3=S3(),Va=(()=>{class t{_elementRef=u(q);_changeDetectorRef=u(ye);_ngZone=u(ae);_animationsDisabled=Ye();_options=u(Gte,{optional:!0});focus(){this._inputElement.nativeElement.focus()}_createChangeEvent(e){let i=new xS;return i.source=this,i.checked=e,i}_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;labelPosition="after";name=null;change=new U;indeterminateChange=new U;value;disableRipple;_inputElement;_labelElement;tabIndex;color;disabledInteractive;_onTouched=()=>{};_currentAnimationClass="";_currentCheckState=xr.Init;_controlValueAccessorChangeFn=()=>{};_validatorChangeFn=()=>{};constructor(){u(ut).load(Di);let e=u(new Ii("tabindex"),{optional:!0});this._options=this._options||k3,this.color=this._options.color||k3.color,this.tabIndex=e==null?0:parseInt(e)||0,this.id=this._uniqueId=u(Ze).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 i=e!=this._indeterminate();this._indeterminate.set(e),i&&(e?this._transitionCheckState(xr.Indeterminate):this._transitionCheckState(this.checked?xr.Checked:xr.Unchecked),this.indeterminateChange.emit(e)),this._syncIndeterminate(e)}_indeterminate=he(!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 i=this._currentCheckState,r=this._getAnimationTargetElement();if(!(i===e||!r)&&(this._currentAnimationClass&&r.classList.remove(this._currentAnimationClass),this._currentAnimationClass=this._getAnimationClassForCheckStateTransition(i,e),this._currentCheckState=e,this._currentAnimationClass.length>0)){r.classList.add(this._currentAnimationClass);let o=this._currentAnimationClass;this._ngZone.runOutsideAngular(()=>{setTimeout(()=>{r.classList.remove(o)},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?xr.Checked:xr.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,i){if(this._animationsDisabled)return"";switch(e){case xr.Init:if(i===xr.Checked)return this._animationClasses.uncheckedToChecked;if(i==xr.Indeterminate)return this._checked?this._animationClasses.checkedToIndeterminate:this._animationClasses.uncheckedToIndeterminate;break;case xr.Unchecked:return i===xr.Checked?this._animationClasses.uncheckedToChecked:this._animationClasses.uncheckedToIndeterminate;case xr.Checked:return i===xr.Unchecked?this._animationClasses.checkedToUnchecked:this._animationClasses.checkedToIndeterminate;case xr.Indeterminate:return i===xr.Checked?this._animationClasses.indeterminateToChecked:this._animationClasses.indeterminateToUnchecked}return""}_syncIndeterminate(e){let i=this._inputElement;i&&(i.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(i){return new(i||t)};static \u0275cmp=E({type:t,selectors:[["mat-checkbox"]],viewQuery:function(i,r){if(i&1&&(ie(Ute,5),ie($te,5)),i&2){let o;B(o=j())&&(r._inputElement=o.first),B(o=j())&&(r._labelElement=o.first)}},hostAttrs:[1,"mat-mdc-checkbox"],hostVars:16,hostBindings:function(i,r){i&2&&(si("id",r.id),X("tabindex",null)("aria-label",null)("aria-labelledby",null),it(r.color?"mat-"+r.color:"mat-accent"),G("_mat-animation-noopable",r._animationsDisabled)("mdc-checkbox--disabled",r.disabled)("mat-mdc-checkbox-disabled",r.disabled)("mat-mdc-checkbox-checked",r.checked)("mat-mdc-checkbox-disabled-interactive",r.disabledInteractive))},inputs:{ariaLabel:[0,"aria-label","ariaLabel"],ariaLabelledby:[0,"aria-labelledby","ariaLabelledby"],ariaDescribedby:[0,"aria-describedby","ariaDescribedby"],ariaExpanded:[2,"aria-expanded","ariaExpanded",V],ariaControls:[0,"aria-controls","ariaControls"],ariaOwns:[0,"aria-owns","ariaOwns"],id:"id",required:[2,"required","required",V],labelPosition:"labelPosition",name:"name",value:"value",disableRipple:[2,"disableRipple","disableRipple",V],tabIndex:[2,"tabIndex","tabIndex",e=>e==null?void 0:ct(e)],color:"color",disabledInteractive:[2,"disabledInteractive","disabledInteractive",V],checked:[2,"checked","checked",V],disabled:[2,"disabled","disabled",V],indeterminate:[2,"indeterminate","indeterminate",V]},outputs:{change:"change",indeterminateChange:"indeterminateChange"},exportAs:["matCheckbox"],features:[Ce([{provide:tr,useExisting:Kt(()=>t),multi:!0},{provide:ea,useExisting:t,multi:!0}]),Ae],ngContentSelectors:Wte,decls:15,vars:23,consts:[["checkbox",""],["input",""],["label",""],["mat-internal-form-field","",3,"click","labelPosition"],[1,"mdc-checkbox"],[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"],[1,"mdc-checkbox__ripple"],[1,"mdc-checkbox__background"],["focusable","false","viewBox","0 0 24 24","aria-hidden","true",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","",1,"mat-mdc-checkbox-ripple","mat-focus-indicator",3,"matRippleTrigger","matRippleDisabled","matRippleCentered"],[1,"mdc-label",3,"for"]],template:function(i,r){if(i&1){let o=Y();Me(),h(0,"div",3),S("click",function(s){return I(o),A(r._preventBubblingFromLabel(s))}),h(1,"div",4,0)(3,"div",5),S("click",function(){return I(o),A(r._onTouchTargetClick())}),p(),h(4,"input",6,1),S("blur",function(){return I(o),A(r._onBlur())})("click",function(){return I(o),A(r._onInputClick())})("change",function(s){return I(o),A(r._onInteractionEvent(s))}),p(),k(6,"div",7),h(7,"div",8),Gt(),h(8,"svg",9),k(9,"path",10),p(),jo(),k(10,"div",11),p(),k(11,"div",12),p(),h(12,"label",13,2),oe(14),p()()}if(i&2){let o=Se(2);y("labelPosition",r.labelPosition),g(4),G("mdc-checkbox--selected",r.checked),y("checked",r.checked)("indeterminate",r.indeterminate)("disabled",r.disabled&&!r.disabledInteractive)("id",r.inputId)("required",r.required)("tabIndex",r.disabled&&!r.disabledInteractive?-1:r.tabIndex),X("aria-label",r.ariaLabel||null)("aria-labelledby",r.ariaLabelledby)("aria-describedby",r.ariaDescribedby)("aria-checked",r.indeterminate?"mixed":null)("aria-controls",r.ariaControls)("aria-disabled",r.disabled&&r.disabledInteractive?!0:null)("aria-expanded",r.ariaExpanded)("aria-owns",r.ariaOwns)("name",r.name)("value",r.value),g(7),y("matRippleTrigger",o)("matRippleDisabled",r.disableRipple||r.disabled)("matRippleCentered",!0),g(),y("for",r.inputId)}},dependencies:[Vn,Gm],styles:[`.mdc-checkbox{display:inline-block;position:relative;flex:0 0 18px;box-sizing:content-box;width:18px;height:18px;line-height:0;white-space:nowrap;cursor:pointer;vertical-align:bottom;padding:calc((var(--mat-checkbox-state-layer-size, 40px) - 18px)/2);margin:calc((var(--mat-checkbox-state-layer-size, 40px) - var(--mat-checkbox-state-layer-size, 40px))/2)}.mdc-checkbox:hover>.mdc-checkbox__ripple{opacity:var(--mat-checkbox-unselected-hover-state-layer-opacity, var(--mat-sys-hover-state-layer-opacity));background-color:var(--mat-checkbox-unselected-hover-state-layer-color, var(--mat-sys-on-surface))}.mdc-checkbox:hover>.mat-mdc-checkbox-ripple>.mat-ripple-element{background-color:var(--mat-checkbox-unselected-hover-state-layer-color, var(--mat-sys-on-surface))}.mdc-checkbox .mdc-checkbox__native-control:focus+.mdc-checkbox__ripple{opacity:var(--mat-checkbox-unselected-focus-state-layer-opacity, var(--mat-sys-focus-state-layer-opacity));background-color:var(--mat-checkbox-unselected-focus-state-layer-color, var(--mat-sys-on-surface))}.mdc-checkbox .mdc-checkbox__native-control:focus~.mat-mdc-checkbox-ripple .mat-ripple-element{background-color:var(--mat-checkbox-unselected-focus-state-layer-color, var(--mat-sys-on-surface))}.mdc-checkbox:active>.mdc-checkbox__native-control+.mdc-checkbox__ripple{opacity:var(--mat-checkbox-unselected-pressed-state-layer-opacity, var(--mat-sys-pressed-state-layer-opacity));background-color:var(--mat-checkbox-unselected-pressed-state-layer-color, var(--mat-sys-primary))}.mdc-checkbox:active>.mdc-checkbox__native-control~.mat-mdc-checkbox-ripple .mat-ripple-element{background-color:var(--mat-checkbox-unselected-pressed-state-layer-color, var(--mat-sys-primary))}.mdc-checkbox:hover .mdc-checkbox__native-control:checked+.mdc-checkbox__ripple{opacity:var(--mat-checkbox-selected-hover-state-layer-opacity, var(--mat-sys-hover-state-layer-opacity));background-color:var(--mat-checkbox-selected-hover-state-layer-color, var(--mat-sys-primary))}.mdc-checkbox:hover .mdc-checkbox__native-control:checked~.mat-mdc-checkbox-ripple .mat-ripple-element{background-color:var(--mat-checkbox-selected-hover-state-layer-color, var(--mat-sys-primary))}.mdc-checkbox .mdc-checkbox__native-control:focus:checked+.mdc-checkbox__ripple{opacity:var(--mat-checkbox-selected-focus-state-layer-opacity, var(--mat-sys-focus-state-layer-opacity));background-color:var(--mat-checkbox-selected-focus-state-layer-color, var(--mat-sys-primary))}.mdc-checkbox .mdc-checkbox__native-control:focus:checked~.mat-mdc-checkbox-ripple .mat-ripple-element{background-color:var(--mat-checkbox-selected-focus-state-layer-color, var(--mat-sys-primary))}.mdc-checkbox:active>.mdc-checkbox__native-control:checked+.mdc-checkbox__ripple{opacity:var(--mat-checkbox-selected-pressed-state-layer-opacity, var(--mat-sys-pressed-state-layer-opacity));background-color:var(--mat-checkbox-selected-pressed-state-layer-color, var(--mat-sys-on-surface))}.mdc-checkbox:active>.mdc-checkbox__native-control:checked~.mat-mdc-checkbox-ripple .mat-ripple-element{background-color:var(--mat-checkbox-selected-pressed-state-layer-color, var(--mat-sys-on-surface))}.mdc-checkbox--disabled.mat-mdc-checkbox-disabled-interactive .mdc-checkbox .mdc-checkbox__native-control~.mat-mdc-checkbox-ripple .mat-ripple-element,.mdc-checkbox--disabled.mat-mdc-checkbox-disabled-interactive .mdc-checkbox .mdc-checkbox__native-control+.mdc-checkbox__ripple{background-color:var(--mat-checkbox-unselected-hover-state-layer-color, var(--mat-sys-on-surface))}.mdc-checkbox .mdc-checkbox__native-control{position:absolute;margin:0;padding:0;opacity:0;cursor:inherit;z-index:1;width:var(--mat-checkbox-state-layer-size, 40px);height:var(--mat-checkbox-state-layer-size, 40px);top:calc((var(--mat-checkbox-state-layer-size, 40px) - var(--mat-checkbox-state-layer-size, 40px))/2);right:calc((var(--mat-checkbox-state-layer-size, 40px) - var(--mat-checkbox-state-layer-size, 40px))/2);left:calc((var(--mat-checkbox-state-layer-size, 40px) - var(--mat-checkbox-state-layer-size, 40px))/2)}.mdc-checkbox--disabled{cursor:default;pointer-events:none}.mdc-checkbox__background{display:inline-flex;position:absolute;align-items:center;justify-content:center;box-sizing:border-box;width:18px;height:18px;border:2px solid currentColor;border-radius:2px;background-color:rgba(0,0,0,0);pointer-events:none;will-change:background-color,border-color;transition:background-color 90ms cubic-bezier(0.4, 0, 0.6, 1),border-color 90ms cubic-bezier(0.4, 0, 0.6, 1);-webkit-print-color-adjust:exact;color-adjust:exact;border-color:var(--mat-checkbox-unselected-icon-color, var(--mat-sys-on-surface-variant));top:calc((var(--mat-checkbox-state-layer-size, 40px) - 18px)/2);left:calc((var(--mat-checkbox-state-layer-size, 40px) - 18px)/2)}.mdc-checkbox__native-control:enabled:checked~.mdc-checkbox__background,.mdc-checkbox__native-control:enabled:indeterminate~.mdc-checkbox__background{border-color:var(--mat-checkbox-selected-icon-color, var(--mat-sys-primary));background-color:var(--mat-checkbox-selected-icon-color, var(--mat-sys-primary))}.mdc-checkbox--disabled .mdc-checkbox__background{border-color:var(--mat-checkbox-disabled-unselected-icon-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent))}@media(forced-colors: active){.mdc-checkbox--disabled .mdc-checkbox__background{border-color:GrayText}}.mdc-checkbox__native-control:disabled:checked~.mdc-checkbox__background,.mdc-checkbox__native-control:disabled:indeterminate~.mdc-checkbox__background{background-color:var(--mat-checkbox-disabled-selected-icon-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent));border-color:rgba(0,0,0,0)}@media(forced-colors: active){.mdc-checkbox__native-control:disabled:checked~.mdc-checkbox__background,.mdc-checkbox__native-control:disabled:indeterminate~.mdc-checkbox__background{border-color:GrayText}}.mdc-checkbox:hover>.mdc-checkbox__native-control:not(:checked)~.mdc-checkbox__background,.mdc-checkbox:hover>.mdc-checkbox__native-control:not(:indeterminate)~.mdc-checkbox__background{border-color:var(--mat-checkbox-unselected-hover-icon-color, var(--mat-sys-on-surface));background-color:rgba(0,0,0,0)}.mdc-checkbox:hover>.mdc-checkbox__native-control:checked~.mdc-checkbox__background,.mdc-checkbox:hover>.mdc-checkbox__native-control:indeterminate~.mdc-checkbox__background{border-color:var(--mat-checkbox-selected-hover-icon-color, var(--mat-sys-primary));background-color:var(--mat-checkbox-selected-hover-icon-color, var(--mat-sys-primary))}.mdc-checkbox__native-control:focus:focus:not(:checked)~.mdc-checkbox__background,.mdc-checkbox__native-control:focus:focus:not(:indeterminate)~.mdc-checkbox__background{border-color:var(--mat-checkbox-unselected-focus-icon-color, var(--mat-sys-on-surface))}.mdc-checkbox__native-control:focus:focus:checked~.mdc-checkbox__background,.mdc-checkbox__native-control:focus:focus:indeterminate~.mdc-checkbox__background{border-color:var(--mat-checkbox-selected-focus-icon-color, var(--mat-sys-primary));background-color:var(--mat-checkbox-selected-focus-icon-color, var(--mat-sys-primary))}.mdc-checkbox--disabled.mat-mdc-checkbox-disabled-interactive .mdc-checkbox:hover>.mdc-checkbox__native-control~.mdc-checkbox__background,.mdc-checkbox--disabled.mat-mdc-checkbox-disabled-interactive .mdc-checkbox .mdc-checkbox__native-control:focus~.mdc-checkbox__background,.mdc-checkbox--disabled.mat-mdc-checkbox-disabled-interactive .mdc-checkbox__background{border-color:var(--mat-checkbox-disabled-unselected-icon-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent))}@media(forced-colors: active){.mdc-checkbox--disabled.mat-mdc-checkbox-disabled-interactive .mdc-checkbox:hover>.mdc-checkbox__native-control~.mdc-checkbox__background,.mdc-checkbox--disabled.mat-mdc-checkbox-disabled-interactive .mdc-checkbox .mdc-checkbox__native-control:focus~.mdc-checkbox__background,.mdc-checkbox--disabled.mat-mdc-checkbox-disabled-interactive .mdc-checkbox__background{border-color:GrayText}}.mdc-checkbox--disabled.mat-mdc-checkbox-disabled-interactive .mdc-checkbox__native-control:checked~.mdc-checkbox__background,.mdc-checkbox--disabled.mat-mdc-checkbox-disabled-interactive .mdc-checkbox__native-control:indeterminate~.mdc-checkbox__background{background-color:var(--mat-checkbox-disabled-selected-icon-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent));border-color:rgba(0,0,0,0)}.mdc-checkbox__checkmark{position:absolute;top:0;right:0;bottom:0;left:0;width:100%;opacity:0;transition:opacity 180ms cubic-bezier(0.4, 0, 0.6, 1);color:var(--mat-checkbox-selected-checkmark-color, var(--mat-sys-on-primary))}@media(forced-colors: active){.mdc-checkbox__checkmark{color:CanvasText}}.mdc-checkbox--disabled .mdc-checkbox__checkmark,.mdc-checkbox--disabled.mat-mdc-checkbox-disabled-interactive .mdc-checkbox__checkmark{color:var(--mat-checkbox-disabled-selected-checkmark-color, var(--mat-sys-surface))}@media(forced-colors: active){.mdc-checkbox--disabled .mdc-checkbox__checkmark,.mdc-checkbox--disabled.mat-mdc-checkbox-disabled-interactive .mdc-checkbox__checkmark{color:GrayText}}.mdc-checkbox__checkmark-path{transition:stroke-dashoffset 180ms cubic-bezier(0.4, 0, 0.6, 1);stroke:currentColor;stroke-width:3.12px;stroke-dashoffset:29.7833385;stroke-dasharray:29.7833385}.mdc-checkbox__mixedmark{width:100%;height:0;transform:scaleX(0) rotate(0deg);border-width:1px;border-style:solid;opacity:0;transition:opacity 90ms cubic-bezier(0.4, 0, 0.6, 1),transform 90ms cubic-bezier(0.4, 0, 0.6, 1);border-color:var(--mat-checkbox-selected-checkmark-color, var(--mat-sys-on-primary))}@media(forced-colors: active){.mdc-checkbox__mixedmark{margin:0 1px}}.mdc-checkbox--disabled .mdc-checkbox__mixedmark,.mdc-checkbox--disabled.mat-mdc-checkbox-disabled-interactive .mdc-checkbox__mixedmark{border-color:var(--mat-checkbox-disabled-selected-checkmark-color, var(--mat-sys-surface))}@media(forced-colors: active){.mdc-checkbox--disabled .mdc-checkbox__mixedmark,.mdc-checkbox--disabled.mat-mdc-checkbox-disabled-interactive .mdc-checkbox__mixedmark{border-color:GrayText}}.mdc-checkbox--anim-unchecked-checked .mdc-checkbox__background,.mdc-checkbox--anim-unchecked-indeterminate .mdc-checkbox__background,.mdc-checkbox--anim-checked-unchecked .mdc-checkbox__background,.mdc-checkbox--anim-indeterminate-unchecked .mdc-checkbox__background{animation-duration:180ms;animation-timing-function:linear}.mdc-checkbox--anim-unchecked-checked .mdc-checkbox__checkmark-path{animation:mdc-checkbox-unchecked-checked-checkmark-path 180ms linear;transition:none}.mdc-checkbox--anim-unchecked-indeterminate .mdc-checkbox__mixedmark{animation:mdc-checkbox-unchecked-indeterminate-mixedmark 90ms linear;transition:none}.mdc-checkbox--anim-checked-unchecked .mdc-checkbox__checkmark-path{animation:mdc-checkbox-checked-unchecked-checkmark-path 90ms linear;transition:none}.mdc-checkbox--anim-checked-indeterminate .mdc-checkbox__checkmark{animation:mdc-checkbox-checked-indeterminate-checkmark 90ms linear;transition:none}.mdc-checkbox--anim-checked-indeterminate .mdc-checkbox__mixedmark{animation:mdc-checkbox-checked-indeterminate-mixedmark 90ms linear;transition:none}.mdc-checkbox--anim-indeterminate-checked .mdc-checkbox__checkmark{animation:mdc-checkbox-indeterminate-checked-checkmark 500ms linear;transition:none}.mdc-checkbox--anim-indeterminate-checked .mdc-checkbox__mixedmark{animation:mdc-checkbox-indeterminate-checked-mixedmark 500ms linear;transition:none}.mdc-checkbox--anim-indeterminate-unchecked .mdc-checkbox__mixedmark{animation:mdc-checkbox-indeterminate-unchecked-mixedmark 300ms linear;transition:none}.mdc-checkbox__native-control:checked~.mdc-checkbox__background,.mdc-checkbox__native-control:indeterminate~.mdc-checkbox__background{transition:border-color 90ms cubic-bezier(0, 0, 0.2, 1),background-color 90ms cubic-bezier(0, 0, 0.2, 1)}.mdc-checkbox__native-control:checked~.mdc-checkbox__background>.mdc-checkbox__checkmark>.mdc-checkbox__checkmark-path,.mdc-checkbox__native-control:indeterminate~.mdc-checkbox__background>.mdc-checkbox__checkmark>.mdc-checkbox__checkmark-path{stroke-dashoffset:0}.mdc-checkbox__native-control:checked~.mdc-checkbox__background>.mdc-checkbox__checkmark{transition:opacity 180ms cubic-bezier(0, 0, 0.2, 1),transform 180ms cubic-bezier(0, 0, 0.2, 1);opacity:1}.mdc-checkbox__native-control:checked~.mdc-checkbox__background>.mdc-checkbox__mixedmark{transform:scaleX(1) rotate(-45deg)}.mdc-checkbox__native-control:indeterminate~.mdc-checkbox__background>.mdc-checkbox__checkmark{transform:rotate(45deg);opacity:0;transition:opacity 90ms cubic-bezier(0.4, 0, 0.6, 1),transform 90ms cubic-bezier(0.4, 0, 0.6, 1)}.mdc-checkbox__native-control:indeterminate~.mdc-checkbox__background>.mdc-checkbox__mixedmark{transform:scaleX(1) rotate(0deg);opacity:1}@keyframes mdc-checkbox-unchecked-checked-checkmark-path{0%,50%{stroke-dashoffset:29.7833385}50%{animation-timing-function:cubic-bezier(0, 0, 0.2, 1)}100%{stroke-dashoffset:0}}@keyframes mdc-checkbox-unchecked-indeterminate-mixedmark{0%,68.2%{transform:scaleX(0)}68.2%{animation-timing-function:cubic-bezier(0, 0, 0, 1)}100%{transform:scaleX(1)}}@keyframes mdc-checkbox-checked-unchecked-checkmark-path{from{animation-timing-function:cubic-bezier(0.4, 0, 1, 1);opacity:1;stroke-dashoffset:0}to{opacity:0;stroke-dashoffset:-29.7833385}}@keyframes mdc-checkbox-checked-indeterminate-checkmark{from{animation-timing-function:cubic-bezier(0, 0, 0.2, 1);transform:rotate(0deg);opacity:1}to{transform:rotate(45deg);opacity:0}}@keyframes mdc-checkbox-indeterminate-checked-checkmark{from{animation-timing-function:cubic-bezier(0.14, 0, 0, 1);transform:rotate(45deg);opacity:0}to{transform:rotate(360deg);opacity:1}}@keyframes mdc-checkbox-checked-indeterminate-mixedmark{from{animation-timing-function:cubic-bezier(0, 0, 0.2, 1);transform:rotate(-45deg);opacity:0}to{transform:rotate(0deg);opacity:1}}@keyframes mdc-checkbox-indeterminate-checked-mixedmark{from{animation-timing-function:cubic-bezier(0.14, 0, 0, 1);transform:rotate(0deg);opacity:1}to{transform:rotate(315deg);opacity:0}}@keyframes mdc-checkbox-indeterminate-unchecked-mixedmark{0%{animation-timing-function:linear;transform:scaleX(1);opacity:1}32.8%,100%{transform:scaleX(0);opacity:0}}.mat-mdc-checkbox{display:inline-block;position:relative;-webkit-tap-highlight-color:rgba(0,0,0,0)}.mat-mdc-checkbox._mat-animation-noopable>.mat-internal-form-field>.mdc-checkbox>.mat-mdc-checkbox-touch-target,.mat-mdc-checkbox._mat-animation-noopable>.mat-internal-form-field>.mdc-checkbox>.mdc-checkbox__native-control,.mat-mdc-checkbox._mat-animation-noopable>.mat-internal-form-field>.mdc-checkbox>.mdc-checkbox__ripple,.mat-mdc-checkbox._mat-animation-noopable>.mat-internal-form-field>.mdc-checkbox>.mat-mdc-checkbox-ripple::before,.mat-mdc-checkbox._mat-animation-noopable>.mat-internal-form-field>.mdc-checkbox>.mdc-checkbox__background,.mat-mdc-checkbox._mat-animation-noopable>.mat-internal-form-field>.mdc-checkbox>.mdc-checkbox__background>.mdc-checkbox__checkmark,.mat-mdc-checkbox._mat-animation-noopable>.mat-internal-form-field>.mdc-checkbox>.mdc-checkbox__background>.mdc-checkbox__checkmark>.mdc-checkbox__checkmark-path,.mat-mdc-checkbox._mat-animation-noopable>.mat-internal-form-field>.mdc-checkbox>.mdc-checkbox__background>.mdc-checkbox__mixedmark{transition:none !important;animation:none !important}.mat-mdc-checkbox label{cursor:pointer}.mat-mdc-checkbox .mat-internal-form-field{color:var(--mat-checkbox-label-text-color, var(--mat-sys-on-surface));font-family:var(--mat-checkbox-label-text-font, var(--mat-sys-body-medium-font));line-height:var(--mat-checkbox-label-text-line-height, var(--mat-sys-body-medium-line-height));font-size:var(--mat-checkbox-label-text-size, var(--mat-sys-body-medium-size));letter-spacing:var(--mat-checkbox-label-text-tracking, var(--mat-sys-body-medium-tracking));font-weight:var(--mat-checkbox-label-text-weight, var(--mat-sys-body-medium-weight))}.mat-mdc-checkbox.mat-mdc-checkbox-disabled.mat-mdc-checkbox-disabled-interactive{pointer-events:auto}.mat-mdc-checkbox.mat-mdc-checkbox-disabled.mat-mdc-checkbox-disabled-interactive input{cursor:default}.mat-mdc-checkbox.mat-mdc-checkbox-disabled label{cursor:default;color:var(--mat-checkbox-disabled-label-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent))}@media(forced-colors: active){.mat-mdc-checkbox.mat-mdc-checkbox-disabled label{color:GrayText}}.mat-mdc-checkbox label:empty{display:none}.mat-mdc-checkbox .mdc-checkbox__ripple{opacity:0}.mat-mdc-checkbox .mat-mdc-checkbox-ripple,.mdc-checkbox__ripple{top:0;left:0;right:0;bottom:0;position:absolute;border-radius:50%;pointer-events:none}.mat-mdc-checkbox .mat-mdc-checkbox-ripple:not(:empty),.mdc-checkbox__ripple:not(:empty){transform:translateZ(0)}.mat-mdc-checkbox-ripple .mat-ripple-element{opacity:.1}.mat-mdc-checkbox-touch-target{position:absolute;top:50%;left:50%;height:var(--mat-checkbox-touch-target-size, 48px);width:var(--mat-checkbox-touch-target-size, 48px);transform:translate(-50%, -50%);display:var(--mat-checkbox-touch-target-display, block)}.mat-mdc-checkbox .mat-mdc-checkbox-ripple::before{border-radius:50%}.mdc-checkbox__native-control:focus~.mat-focus-indicator::before{content:""} +`],encapsulation:2,changeDetection:0})}return t})(),yx=(()=>{class t{static \u0275fac=function(i){return new(i||t)};static \u0275mod=ee({type:t});static \u0275inj=J({imports:[Va,we,we]})}return t})();function qte(t,n){t&1&&(h(0,"span",1),_(1,"*"),p())}var Yte=(()=>{let n=class n extends to{constructor(i,r){super(),this.renderer=i,this.focusMonitor=r,this.defaultOptions={props:{hideFieldUnderline:!0,indeterminate:!0,floatLabel:"always",hideLabel:!0,color:"accent"}}}onContainerClick(i){this.checkbox.focus(),super.onContainerClick(i)}ngAfterViewInit(){this.checkbox&&this.focusMonitor.monitor(this.checkbox._inputElement,!0).subscribe(i=>{this.field.focus=!!i,this.stateChanges.next(),i?this.props.focus&&this.props.focus(this.field):this.props.blur&&this.props.blur(this.field)})}ngAfterViewChecked(){if(this.required!==this._required&&this.checkbox&&this.checkbox._inputElement){this._required=this.required;let i=this.checkbox._inputElement.nativeElement;this.required?this.renderer.setAttribute(i,"required","required"):this.renderer.removeAttribute(i,"required")}}ngOnDestroy(){super.ngOnDestroy(),this.checkbox&&this.focusMonitor.stopMonitoring(this.checkbox._inputElement)}};n.\u0275fac=function(r){return new(r||n)(_e(je),_e(Yt))},n.\u0275cmp=E({type:n,selectors:[["formly-field-mat-checkbox"]],viewQuery:function(r,o){if(r&1&&ie(Va,7),r&2){let a;B(a=j())&&(o.checkbox=a.first)}},standalone:!1,features:[le],decls:3,vars:10,consts:[[3,"formControl","id","name","formlyAttributes","tabIndex","indeterminate","color","labelPosition"],["aria-hidden","true",1,"mat-form-field-required-marker","mat-mdc-form-field-required-marker"]],template:function(r,o){r&1&&(h(0,"mat-checkbox",0),_(1),N(2,qte,2,0,"span",1),p()),r&2&&(y("formControl",o.formControl)("id",o.id)("name",o.field.name)("formlyAttributes",o.field)("tabIndex",o.props.tabindex)("indeterminate",o.props.indeterminate&&o.formControl.value==null)("color",o.props.color)("labelPosition",o.props.labelPosition),g(),ve(" ",o.props.label," "),g(),L(o.props.required&&o.props.hideRequiredMarker!==!0?2:-1))},dependencies:[ei,wo,Va,ta],encapsulation:2,changeDetection:0});let t=n;return t})();function T3(){return{types:[{name:"checkbox",component:Yte,wrappers:["form-field"]},{name:"boolean",extends:"checkbox"}]}}function Qte(t,n){if(t&1){let e=Y();h(0,"mat-checkbox",1),S("change",function(r){let o=I(e).$implicit,a=C();return A(a.onChange(o.value,r.checked))}),_(1),p()}if(t&2){let e=n.$implicit,i=n.$index,r=C();y("id",r.id+"_"+i)("formlyAttributes",r.field)("tabIndex",r.props.tabindex)("color",r.props.color)("labelPosition",r.props.labelPosition)("checked",r.isChecked(e))("disabled",r.formControl.disabled||e.disabled),g(),ve(" ",e.label," ")}}var Kte=(()=>{let n=class n extends to{constructor(){super(...arguments),this.defaultOptions={props:{hideFieldUnderline:!0,floatLabel:"always",color:"accent"}}}onChange(i,r){this.formControl.markAsDirty(),this.props.type==="array"?this.formControl.patchValue(r?[...this.formControl.value||[],i]:[...this.formControl.value||[]].filter(o=>o!==i)):this.formControl.patchValue(De(M({},this.formControl.value),{[i]:r})),this.formControl.markAsTouched()}onContainerClick(){}isChecked(i){let r=this.formControl.value;return r&&(this.props.type==="array"?r.indexOf(i.value)!==-1:r[i.value])}};n.\u0275fac=(()=>{let i;return function(o){return(i||(i=fe(n)))(o||n)}})(),n.\u0275cmp=E({type:n,selectors:[["formly-field-mat-multicheckbox"]],viewQuery:function(r,o){if(r&1&&ie(Va,5),r&2){let a;B(a=j())&&(o.checkboxes=a)}},hostVars:1,hostBindings:function(r,o){r&2&&si("id",o.id)},standalone:!1,features:[le],decls:4,vars:5,consts:[[3,"id","formlyAttributes","tabIndex","color","labelPosition","checked","disabled"],[3,"change","id","formlyAttributes","tabIndex","color","labelPosition","checked","disabled"]],template:function(r,o){r&1&&(xt(0,Qte,2,8,"mat-checkbox",0,Hi),me(2,"formlySelectOptions"),me(3,"async")),r&2&&Ct(Oe(3,3,Ni(2,0,o.props.options,o.field)))},dependencies:[Va,ta,rn,Eh],encapsulation:2,changeDetection:0});let t=n;return t})();function I3(){return{types:[{name:"multicheckbox",component:Kte,wrappers:["form-field"]}]}}var Zte=t=>({selectOptions:t});function Xte(t,n){if(t&1){let e=Y();h(0,"mat-option",2),S("click",function(){let r=I(e).selectOptions,o=C();return A(o.toggleSelectAll(r))}),k(1,"mat-pseudo-checkbox",3),_(2),p()}if(t&2){let e=n.selectOptions,i=C();g(),y("state",i.getSelectAllState(e)),g(),ve(" ",i.props.selectAllOption," ")}}function Jte(t,n){if(t&1&&Ge(0,4),t&2){let e=C();C();let i=Se(1);y("ngTemplateOutlet",i)("ngTemplateOutletContext",Pt(2,Zte,e))}}function eie(t,n){if(t&1&&(h(0,"mat-option",6),_(1),p()),t&2){let e=n.$implicit;y("value",e.value)("disabled",e.disabled),g(),ve(" ",e.label," ")}}function tie(t,n){if(t&1&&(h(0,"mat-optgroup",5),xt(1,eie,2,3,"mat-option",6,Hi),p()),t&2){let e=C().$implicit;y("label",e.label),g(),Ct(e.group)}}function iie(t,n){if(t&1&&(h(0,"mat-option",6),_(1),p()),t&2){let e=C().$implicit;y("value",e.value)("disabled",e.disabled),g(),H(e.label)}}function nie(t,n){if(t&1&&N(0,tie,3,1,"mat-optgroup",5)(1,iie,2,3,"mat-option",6),t&2){let e=n.$implicit;L(e.group?0:1)}}function rie(t,n){if(t&1&&(N(0,Jte,1,4,"ng-container",4),xt(1,nie,2,1,null,null,Hi)),t&2){let e=C();L(e.props.multiple&&e.props.selectAllOption?0:-1),g(),Ct(n)}}var oie=(()=>{let n=class n extends to{constructor(){super(...arguments),this.defaultOptions={props:{compareWith(i,r){return i===r}}}}set select(i){Wi(i,["_parentFormField","_textField"],({currentValue:r})=>{r&&(i._preferredOverlayOrigin=i._parentFormField.getConnectedOverlayOrigin())})}getSelectAllState(i){return this.empty||this.value.length===0?null:this.value.length!==this.getSelectAllValue(i).length?"indeterminate":"checked"}toggleSelectAll(i){let r=this.getSelectAllValue(i);this.formControl.markAsDirty(),this.formControl.setValue(!this.value||this.value.length!==r.length?r:[])}change(i){this.props.change?.(this.field,i)}_getAriaLabelledby(){return this.props.attributes?.["aria-labelledby"]?this.props.attributes["aria-labelledby"]:this.formField?._labelId}_getAriaLabel(){return this.props.attributes?.["aria-label"]}getSelectAllValue(i){if(!this.selectAllValue||i!==this.selectAllValue.options){let r=[];i.forEach(o=>o.group?r.push(...o.group):r.push(o)),this.selectAllValue={options:i,value:r.filter(o=>!o.disabled).map(o=>o.value)}}return this.selectAllValue.value}};n.\u0275fac=(()=>{let i;return function(o){return(i||(i=fe(n)))(o||n)}})(),n.\u0275cmp=E({type:n,selectors:[["formly-field-mat-select"]],viewQuery:function(r,o){if(r&1&&ie(Na,7),r&2){let a;B(a=j())&&(o.select=a.first)}},standalone:!1,features:[le],decls:6,vars:20,consts:[["selectAll",""],[3,"selectionChange","id","formControl","formlyAttributes","placeholder","tabIndex","required","compareWith","multiple","errorStateMatcher","aria-label","aria-labelledby","disableOptionCentering","typeaheadDebounceInterval","panelClass"],[3,"click"],[1,"mat-option-pseudo-checkbox",3,"state"],[3,"ngTemplateOutlet","ngTemplateOutletContext"],[3,"label"],[3,"value","disabled"]],template:function(r,o){if(r&1){let a=Y();R(0,Xte,3,2,"ng-template",null,0,_i),h(2,"mat-select",1),S("selectionChange",function(l){return I(a),A(o.change(l))}),N(3,rie,3,1),me(4,"formlySelectOptions"),me(5,"async"),p()}if(r&2){let a;g(2),y("id",o.id)("formControl",o.formControl)("formlyAttributes",o.field)("placeholder",o.props.placeholder)("tabIndex",o.props.tabindex)("required",o.required)("compareWith",o.props.compareWith)("multiple",o.props.multiple)("errorStateMatcher",o.errorStateMatcher),Kl("aria-label",o._getAriaLabel())("aria-labelledby",o._getAriaLabelledby()),y("disableOptionCentering",o.props.disableOptionCentering)("typeaheadDebounceInterval",o.props.typeaheadDebounceInterval)("panelClass",o.props.panelClass),g(),L((a=Oe(5,18,Ni(4,15,o.props.options,o.field)))?3:-1,a)}},dependencies:[Fn,ei,Do,wo,Na,xn,kk,Qd,ta,rn,Eh],encapsulation:2,changeDetection:0});let t=n;return t})();function A3(){return{types:[{name:"select",component:oie,wrappers:["form-field"]},{name:"enum",extends:"select"}]}}function O3(){return[b3(),w3(),D3(),M3(),T3(),I3(),A3()]}var kg=class{},P3=(()=>{class t{handle(e){return e.key}static \u0275fac=function(i){return new(i||t)};static \u0275prov=O({token:t,factory:t.\u0275fac})}return t})(),Mh=class{},F3=(()=>{class t extends Mh{compile(e,i){return e}compileTranslations(e,i){return e}static \u0275fac=(()=>{let e;return function(r){return(e||(e=fe(t)))(r||t)}})();static \u0275prov=O({token:t,factory:t.\u0275fac})}return t})(),yc=class{},N3=(()=>{class t extends yc{getTranslation(e){return Q({})}static \u0275fac=(()=>{let e;return function(r){return(e||(e=fe(t)))(r||t)}})();static \u0275prov=O({token:t,factory:t.\u0275fac})}return t})();function Sg(t,n){if(t===n)return!0;if(t===null||n===null)return!1;if(t!==t&&n!==n)return!0;let e=typeof t,i=typeof n,r;if(e==i&&e=="object")if(Array.isArray(t)){if(!Array.isArray(n))return!1;if((r=t.length)==n.length){for(let o=0;oxx(n));if(hl(t)){let n={};return Object.keys(t).forEach(e=>{n[e]=xx(t[e])}),n}else return t}function kS(t,n){if(!Mg(t))return xx(n);let e=xx(t);return Mg(e)&&Mg(n)&&Object.keys(n).forEach(i=>{hl(n[i])?i in t?e[i]=kS(t[i],n[i]):Object.assign(e,{[i]:n[i]}):Object.assign(e,{[i]:n[i]})}),e}function L3(t,n){let e=n.split(".");n="";do{n+=e.shift();let i=!e.length;if(Mo(t)){if(hl(t)&&R3(t[n])&&(hl(t[n])||pu(t[n])||i)){t=t[n],n="";continue}if(pu(t)){let r=parseInt(n,10);if(R3(t[r])&&(hl(t[r])||pu(t[r])||i)){t=t[r],n="";continue}}}if(i){t=void 0;continue}n+="."}while(e.length);return t}function sie(t,n,e){return kS(t,lie(n,e))}function lie(t,n){return t.split(".").reduceRight((e,i)=>({[i]:e}),n)}var kh=class{},V3=(()=>{class t extends kh{templateMatcher=/{{\s?([^{}\s]*)\s?}}/g;interpolate(e,i){if(Tg(e))return this.interpolateString(e,i);if(aie(e))return this.interpolateFunction(e,i)}interpolateFunction(e,i){return e(i)}interpolateString(e,i){return i?e.replace(this.templateMatcher,(r,o)=>{let a=this.getInterpolationReplacement(i,o);return a!==void 0?a:r}):e}getInterpolationReplacement(e,i){return this.formatValue(L3(e,i))}formatValue(e){if(Tg(e))return e;if(typeof e=="number"||typeof e=="boolean")return e.toString();if(e===null)return"null";if(pu(e))return e.join(", ");if(Mg(e))return typeof e.toString=="function"&&e.toString!==Object.prototype.toString?e.toString():JSON.stringify(e)}static \u0275fac=(()=>{let e;return function(r){return(e||(e=fe(t)))(r||t)}})();static \u0275prov=O({token:t,factory:t.\u0275fac})}return t})(),DS=(()=>{class t{_onTranslationChange=new z;_onLangChange=new z;_onFallbackLangChange=new z;fallbackLang=null;currentLang;translations={};languages=[];getTranslations(e){return this.translations[e]}setTranslations(e,i,r){this.translations[e]=r&&this.hasTranslationFor(e)?kS(this.translations[e],i):i,this.addLanguages([e]),this._onTranslationChange.next({lang:e,translations:this.getTranslations(e)})}getLanguages(){return this.languages}getCurrentLang(){return this.currentLang}getFallbackLang(){return this.fallbackLang}setFallbackLang(e,i=!0){this.fallbackLang=e,i&&this._onFallbackLangChange.next({lang:e,translations:this.translations[e]})}setCurrentLang(e,i=!0){this.currentLang=e,i&&this._onLangChange.next({lang:e,translations:this.translations[e]})}get onTranslationChange(){return this._onTranslationChange.asObservable()}get onLangChange(){return this._onLangChange.asObservable()}get onFallbackLangChange(){return this._onFallbackLangChange.asObservable()}addLanguages(e){this.languages=Array.from(new Set([...this.languages,...e]))}hasTranslationFor(e){return typeof this.translations[e]<"u"}deleteTranslations(e){delete this.translations[e]}getTranslation(e){let i=this.getValue(this.currentLang,e);return i===void 0&&this.fallbackLang!=null&&this.fallbackLang!==this.currentLang&&(i=this.getValue(this.fallbackLang,e)),i}getValue(e,i){return L3(this.getTranslations(e),i)}static \u0275fac=function(i){return new(i||t)};static \u0275prov=O({token:t,factory:t.\u0275fac})}return t})(),ES=new T("TRANSLATE_CONFIG"),Eg=t=>ji(t)?t:Q(t);var ia=(()=>{class t{loadingTranslations;pending=!1;_translationRequests={};lastUseLanguage=null;currentLoader=u(yc);compiler=u(Mh);parser=u(kh);missingTranslationHandler=u(kg);store=u(DS);extend=!1;get onTranslationChange(){return this.store.onTranslationChange}get onLangChange(){return this.store.onLangChange}get onFallbackLangChange(){return this.store.onFallbackLangChange}get onDefaultLangChange(){return this.store.onFallbackLangChange}constructor(){let e=M({extend:!1,fallbackLang:null},u(ES,{optional:!0}));e.lang&&this.use(e.lang),e.fallbackLang&&this.setFallbackLang(e.fallbackLang),e.extend&&(this.extend=!0)}setFallbackLang(e){this.getFallbackLang()||this.store.setFallbackLang(e,!1);let i=this.loadOrExtendLanguage(e);return ji(i)?(i.pipe(lt(1)).subscribe({next:()=>{this.store.setFallbackLang(e)},error:()=>{}}),i):(this.store.setFallbackLang(e),Q(this.store.getTranslations(e)))}use(e){this.lastUseLanguage=e,this.getCurrentLang()||this.store.setCurrentLang(e,!1);let i=this.loadOrExtendLanguage(e);return ji(i)?(i.pipe(lt(1)).subscribe({next:()=>{this.changeLang(e)},error:()=>{}}),i):(this.changeLang(e),Q(this.store.getTranslations(e)))}loadOrExtendLanguage(e){if(!this.store.hasTranslationFor(e)||this.extend)return this._translationRequests[e]=this._translationRequests[e]||this.loadAndCompileTranslations(e),this._translationRequests[e]}changeLang(e){e===this.lastUseLanguage&&this.store.setCurrentLang(e)}getCurrentLang(){return this.store.getCurrentLang()}loadAndCompileTranslations(e){this.pending=!0;let i=this.currentLoader.getTranslation(e).pipe(dd(1),lt(1));return this.loadingTranslations=i.pipe(se(r=>this.compiler.compileTranslations(r,e)),dd(1),lt(1)),this.loadingTranslations.subscribe({next:r=>{this.store.setTranslations(e,r,this.extend),this.pending=!1},error:r=>{this.pending=!1}}),i}setTranslation(e,i,r=!1){let o=this.compiler.compileTranslations(i,e);this.store.setTranslations(e,o,r||this.extend)}getLangs(){return this.store.getLanguages()}addLangs(e){this.store.addLanguages(e)}getParsedResultForKey(e,i){let r=this.getTextToInterpolate(e);if(Mo(r))return this.runInterpolation(r,i);let o=this.missingTranslationHandler.handle(M({key:e,translateService:this},i!==void 0&&{interpolateParams:i}));return o!==void 0?o:e}getFallbackLang(){return this.store.getFallbackLang()}getTextToInterpolate(e){return this.store.getTranslation(e)}runInterpolation(e,i){if(Mo(e))return pu(e)?this.runInterpolationOnArray(e,i):hl(e)?this.runInterpolationOnDict(e,i):this.parser.interpolate(e,i)}runInterpolationOnArray(e,i){return e.map(r=>this.runInterpolation(r,i))}runInterpolationOnDict(e,i){let r={};for(let o in e){let a=this.runInterpolation(e[o],i);a!==void 0&&(r[o]=a)}return r}getParsedResult(e,i){return e instanceof Array?this.getParsedResultForArray(e,i):this.getParsedResultForKey(e,i)}getParsedResultForArray(e,i){let r={},o=!1;for(let s of e)r[s]=this.getParsedResultForKey(s,i),o=o||ji(r[s]);if(!o)return r;let a=e.map(s=>Eg(r[s]));return Ga(a).pipe(se(s=>{let l={};return s.forEach((c,d)=>{l[e[d]]=c}),l}))}get(e,i){if(!Mo(e)||!e.length)throw new Error('Parameter "key" is required and cannot be empty');return this.pending?this.loadingTranslations.pipe(Ao(()=>Eg(this.getParsedResult(e,i)))):Eg(this.getParsedResult(e,i))}getStreamOnTranslationChange(e,i){if(!Mo(e)||!e.length)throw new Error('Parameter "key" is required and cannot be empty');return mo(kn(()=>this.get(e,i)),this.onTranslationChange.pipe($e(()=>{let r=this.getParsedResult(e,i);return Eg(r)})))}stream(e,i){if(!Mo(e)||!e.length)throw new Error('Parameter "key" required');return mo(kn(()=>this.get(e,i)),this.onLangChange.pipe($e(()=>{let r=this.getParsedResult(e,i);return Eg(r)})))}instant(e,i){if(!Mo(e)||e.length===0)throw new Error('Parameter "key" is required and cannot be empty');let r=this.getParsedResult(e,i);return ji(r)?Array.isArray(e)?e.reduce((o,a)=>(o[a]=a,o),{}):e:r}set(e,i,r=this.getCurrentLang()){this.store.setTranslations(r,sie(this.store.getTranslations(r),e,Tg(i)?this.compiler.compile(i,r):this.compiler.compileTranslations(i,r)),!1)}reloadLang(e){return this.resetLang(e),this.loadAndCompileTranslations(e)}resetLang(e){delete this._translationRequests[e],this.store.deleteTranslations(e)}static getBrowserLang(){if(typeof window>"u"||!window.navigator)return;let e=this.getBrowserCultureLang();return e?e.split(/[-_]/)[0]:void 0}static getBrowserCultureLang(){if(!(typeof window>"u"||typeof window.navigator>"u"))return window.navigator.languages?window.navigator.languages[0]:window.navigator.language||window.navigator.browserLanguage||window.navigator.userLanguage}getBrowserLang(){return t.getBrowserLang()}getBrowserCultureLang(){return t.getBrowserCultureLang()}get defaultLang(){return this.getFallbackLang()}get currentLang(){return this.store.getCurrentLang()}get langs(){return this.store.getLanguages()}setDefaultLang(e){return this.setFallbackLang(e)}getDefaultLang(){return this.getFallbackLang()}static \u0275fac=function(i){return new(i||t)};static \u0275prov=O({token:t,factory:t.\u0275fac})}return t})(),B3=(()=>{class t{translateService=u(ia);element=u(q);_ref=u(ye);key;lastParams;currentParams;onLangChangeSub;onFallbackLangChangeSub;onTranslationChangeSub;set translate(e){e&&(this.key=e,this.checkNodes())}set translateParams(e){Sg(this.currentParams,e)||(this.currentParams=e,this.checkNodes(!0))}constructor(){this.onTranslationChangeSub||(this.onTranslationChangeSub=this.translateService.onTranslationChange.subscribe(e=>{e.lang===this.translateService.currentLang&&this.checkNodes(!0,e.translations)})),this.onLangChangeSub||(this.onLangChangeSub=this.translateService.onLangChange.subscribe(e=>{this.checkNodes(!0,e.translations)})),this.onFallbackLangChangeSub||(this.onFallbackLangChangeSub=this.translateService.onFallbackLangChange.subscribe(e=>{this.checkNodes(!0)}))}ngAfterViewChecked(){this.checkNodes()}checkNodes(e=!1,i){let r=this.element.nativeElement.childNodes;r.length||(this.setContent(this.element.nativeElement,this.key),r=this.element.nativeElement.childNodes),r.forEach(o=>{let a=o;if(a.nodeType===3){let s;if(e&&(a.lastKey=null),Mo(a.lookupKey))s=a.lookupKey;else if(this.key)s=this.key;else{let l=this.getContent(a),c=l.trim();c.length&&(a.lookupKey=c,l!==a.currentValue?(s=c,a.originalContent=l||a.originalContent):a.originalContent&&(s=a.originalContent.trim()))}this.updateValue(s,a,i)}})}updateValue(e,i,r){if(e){if(i.lastKey===e&&this.lastParams===this.currentParams)return;this.lastParams=this.currentParams;let o=a=>{(a!==e||!i.lastKey)&&(i.lastKey=e),i.originalContent||(i.originalContent=this.getContent(i)),Tg(a)?i.currentValue=a:Mo(a)?i.currentValue=JSON.stringify(a):i.currentValue=i.originalContent||e,this.setContent(i,this.key?i.currentValue:i.originalContent.replace(e,i.currentValue)),this._ref.markForCheck()};if(Mo(r)){let a=this.translateService.getParsedResult(e,this.currentParams);ji(a)?a.subscribe({next:o}):o(a)}else this.translateService.get(e,this.currentParams).subscribe(o)}}getContent(e){return Mo(e.textContent)?e.textContent:e.data}setContent(e,i){Mo(e.textContent)?e.textContent=i:e.data=i}ngOnDestroy(){this.onLangChangeSub&&this.onLangChangeSub.unsubscribe(),this.onFallbackLangChangeSub&&this.onFallbackLangChangeSub.unsubscribe(),this.onTranslationChangeSub&&this.onTranslationChangeSub.unsubscribe()}static \u0275fac=function(i){return new(i||t)};static \u0275dir=F({type:t,selectors:[["","translate",""],["","ngx-translate",""]],inputs:{translate:"translate",translateParams:"translateParams"}})}return t})(),Cr=(()=>{class t{translate=u(ia);_ref=u(ye);value="";lastKey=null;lastParams=[];onTranslationChange;onLangChange;onFallbackLangChange;updateValue(e,i,r){let o=a=>{this.value=a!==void 0?a:e,this.lastKey=e,this._ref.markForCheck()};if(r){let a=this.translate.getParsedResult(e,i);ji(a)?a.subscribe(o):o(a)}this.translate.get(e,i).subscribe(o)}transform(e,...i){if(!e||!e.length)return e;if(Sg(e,this.lastKey)&&Sg(i,this.lastParams))return this.value;let r;if(Mo(i[0])&&i.length)if(Tg(i[0])&&i[0].length){let o=i[0].replace(/(')?([a-zA-Z0-9_]+)(')?(\s)?:/g,'"$2":').replace(/:(\s)?(')(.*?)(')/g,':"$3"');try{r=JSON.parse(o)}catch(a){throw new SyntaxError(`Wrong parameter in TranslatePipe. Expected a valid Object, received: ${i[0]}`)}}else hl(i[0])&&(r=i[0]);return this.lastKey=e,this.lastParams=i,this.updateValue(e,r),this._dispose(),this.onTranslationChange||(this.onTranslationChange=this.translate.onTranslationChange.subscribe(o=>{(this.lastKey&&o.lang===this.translate.getCurrentLang()||o.lang===this.translate.getFallbackLang())&&(this.lastKey=null,this.updateValue(e,r,o.translations))})),this.onLangChange||(this.onLangChange=this.translate.onLangChange.subscribe(o=>{this.lastKey&&(this.lastKey=null,this.updateValue(e,r,o.translations))})),this.onFallbackLangChange||(this.onFallbackLangChange=this.translate.onFallbackLangChange.subscribe(()=>{this.lastKey&&(this.lastKey=null,this.updateValue(e,r))})),this.value}_dispose(){typeof this.onTranslationChange<"u"&&(this.onTranslationChange.unsubscribe(),this.onTranslationChange=void 0),typeof this.onLangChange<"u"&&(this.onLangChange.unsubscribe(),this.onLangChange=void 0),typeof this.onFallbackLangChange<"u"&&(this.onFallbackLangChange.unsubscribe(),this.onFallbackLangChange=void 0)}ngOnDestroy(){this._dispose()}static \u0275fac=function(i){return new(i||t)};static \u0275pipe=Wr({name:"translate",type:t,pure:!1});static \u0275prov=O({token:t,factory:t.\u0275fac})}return t})();function j3(t){return{provide:yc,useClass:t}}function H3(t){return{provide:Mh,useClass:t}}function z3(t){return{provide:kh,useClass:t}}function U3(t){return{provide:kg,useClass:t}}function $3(t={}){return MS(M({compiler:H3(F3),parser:z3(V3),loader:j3(N3),missingTranslationHandler:U3(P3)},t),!0)}function MS(t={},n){let e=[];t.loader&&e.push(t.loader),t.compiler&&e.push(t.compiler),t.parser&&e.push(t.parser),t.missingTranslationHandler&&e.push(t.missingTranslationHandler),n&&e.push(DS),(t.useDefaultLang||t.defaultLanguage)&&(console.warn("The `useDefaultLang` and `defaultLanguage` options are deprecated. Please use `fallbackLang` instead."),t.useDefaultLang===!0&&t.defaultLanguage&&(t.fallbackLang=t.defaultLanguage));let i={fallbackLang:t.fallbackLang??null,lang:t.lang,extend:t.extend??!1};return e.push({provide:ES,useValue:i}),e.push({provide:ia,useClass:ia,deps:[DS,yc,Mh,kh,kg,ES]}),e}var wr=(()=>{class t{static forRoot(e={}){return{ngModule:t,providers:[...MS(M({compiler:H3(F3),parser:z3(V3),loader:j3(N3),missingTranslationHandler:U3(P3)},e),!0)]}}static forChild(e={}){return{ngModule:t,providers:[...MS(e,e.isolate??!1)]}}static \u0275fac=function(i){return new(i||t)};static \u0275mod=ee({type:t});static \u0275inj=J({})}return t})();var SS=new T("TRANSLATE_HTTP_LOADER_CONFIG"),cie=(()=>{class t{http;config;constructor(){this.config=M({prefix:"/assets/i18n/",suffix:".json",enforceLoading:!1,useHttpBackend:!1},u(SS)),this.http=this.config.useHttpBackend?new Yr(u(Zl)):u(Yr)}getTranslation(e){let i=this.config.enforceLoading?`?enforceLoading=${Date.now()}`:"";return this.http.get(`${this.config.prefix}${e}${this.config.suffix}${i}`)}static \u0275fac=function(i){return new(i||t)};static \u0275prov=O({token:t,factory:t.\u0275fac})}return t})();function W3(t={}){let n=t.useHttpBackend??!1;return[{provide:SS,useValue:t},{provide:yc,useClass:cie,deps:[n?Zl:Yr,SS]}]}var TS=class{constructor(n){this.options=n,n.vcr?this.ref=n.vcr.createComponent(n.component,{index:n.vcr.length,injector:n.injector||n.vcr.injector}):(this.ref=Mm(n.component,{elementInjector:n.injector,environmentInjector:n.environmentInjector}),n.appRef.attachView(this.ref.hostView))}setInput(n,e){return this.ref.setInput(n,e),this}setInputs(n){return Object.keys(n).forEach(e=>{this.ref.setInput(e,n[e])}),this}detectChanges(){return this.ref.hostView.detectChanges(),this}updateContext(n){return this.options.contextSignal?.set(n),this}appendTo(n){return n.appendChild(this.getElement()),this}removeFrom(n){return n.removeChild(this.getElement()),this}getRawContent(){return this.getElement().outerHTML}getElement(){return this.ref.location.nativeElement}destroy(){this.ref.destroy(),!this.options.vcr&&this.options.appRef.detachView(this.ref.hostView),this.ref=null}};function Ig(t){return t instanceof te}function gu(t){return typeof t=="function"}function G3(t){return typeof t=="string"}var IS=class{constructor(n){this.args=n,this.args.vcr?(this.ref=this.args.vcr.createEmbeddedView(this.args.tpl,this.args.context||{},{injector:n.injector}),this.ref.detectChanges()):(this.ref=this.args.tpl.createEmbeddedView(this.args.context||{},n.injector),this.ref.detectChanges(),this.args.appRef.attachView(this.ref))}detectChanges(){return this.ref.detectChanges(),this}getElement(){let n=this.ref.rootNodes;return n.length===1&&n[0]===Node.ELEMENT_NODE?this.element=n[0]:(this.element=document.createElement("div"),this.element.append(...n)),this.element}destroy(){this.ref.rootNodes[0]!==1&&(this.element?.parentNode.removeChild(this.element),this.element=null),this.args.vcr||this.args.appRef.detachView(this.ref),this.ref.destroy(),this.ref=null}updateContext(n){return Object.assign(this.ref.context,n),this}},AS=class{constructor(n){this.value=n}getElement(){return this.value}detectChanges(){return this}updateContext(){return this}destroy(){}},die=new T("Component context"),OS=(()=>{let n=class n{constructor(){this.injector=u(de),this.appRef=u(Gn),this.environmentInjector=u(Wt)}createComponent(i,r={}){let o=r.injector??this.injector,a;return r.context&&(a=he(r.context),o=de.create({providers:[{provide:die,useValue:a.asReadonly()}],parent:o})),new TS({component:i,vcr:r.vcr,injector:o,appRef:this.appRef,environmentInjector:r.environmentInjector||this.environmentInjector,contextSignal:a})}createTemplate(i,r={}){return new IS({vcr:r.vcr,appRef:this.appRef,tpl:i,context:r.context,injector:r.injector})}createView(i,r={}){if(Ig(i))return this.createTemplate(i,r);if(gu(i))return this.createComponent(i,r);if(G3(i))return new AS(i);throw"Type of content is not supported"}};n.\u0275fac=function(r){return new(r||n)},n.\u0275prov=O({token:n,factory:n.\u0275fac,providedIn:"root"});let t=n;return t})();var uie=(()=>{let n=class n{constructor(){this.content=ne()}};n.\u0275fac=function(r){return new(r||n)},n.\u0275cmp=E({type:n,selectors:[["dynamic-view"]],inputs:{content:[1,"content"]},decls:1,vars:1,consts:[[3,"innerHTML"]],template:function(r,o){r&1&&ai(0,"div",0),r&2&&si("innerHTML",o.content(),Zp)},encapsulation:2});let t=n;return t})(),Cx=(()=>{let n=class n{constructor(){this.view=ne(void 0,{alias:"dynamicView"}),this.injector=ne(void 0,{alias:"dynamicViewInjector"}),this.context=ne(void 0,{alias:"dynamicViewContext"}),this.inputs=ne(void 0,{alias:"dynamicViewInputs"}),this.defaultTpl=u(te),this.vcr=u(nt),this.viewService=u(OS)}ngOnInit(){this.resolveContentType()}ngOnChanges(i){let r=i.view&&!i.view.isFirstChange(),o=i.context&&!i.context.isFirstChange(),a=i.inputs&&!i.inputs.isFirstChange();r?this.resolveContentType():o?this.viewRef.updateContext(this.context()):gu(this.view())&&a&&this.viewRef.setInputs(this.inputs()||{})}resolveContentType(){this.viewRef?.destroy();let i=this.view(),r=this.injector(),o=this.context();if(G3(i))(this.viewRef=this.viewService.createComponent(uie,{vcr:this.vcr,injector:r})).setInput("content",i).detectChanges();else if(gu(i)){this.viewRef=this.viewService.createComponent(i,{vcr:this.vcr,injector:r??this.vcr.injector,context:o});let a=this.inputs();a&&this.viewRef.setInputs(a)}else this.viewRef=this.viewService.createView(i||this.defaultTpl,{vcr:this.vcr,injector:r??this.vcr.injector,context:o})}ngOnDestroy(){this.viewRef?.destroy()}};n.\u0275fac=function(r){return new(r||n)},n.\u0275dir=F({type:n,selectors:[["","dynamicView",""]],inputs:{view:[1,"dynamicView","view"],injector:[1,"dynamicViewInjector","injector"],context:[1,"dynamicViewContext","context"],inputs:[1,"dynamicViewInputs","inputs"]},features:[Ae]});let t=n;return t})();function mie(t,n){if(t&1&&(_(0,` + `),k(1,"hot-toast-loader",1),_(2,` + `)),t&2){let e=C(2);g(),y("theme",e.theme)}}function hie(t,n){if(t&1&&(_(0,` + `),h(1,"div"),_(2,` + `),k(3,"hot-toast-error",1),_(4,` + `),p(),_(5,` + `)),t&2){let e=C(3);g(3),y("theme",e.theme)}}function pie(t,n){if(t&1&&(_(0,` + `),h(1,"div"),_(2,` + `),k(3,"hot-toast-checkmark",1),_(4,` + `),p(),_(5,` + `)),t&2){let e=C(3);g(3),y("theme",e.theme)}}function fie(t,n){if(t&1&&(_(0,` + `),h(1,"div"),_(2,` + `),k(3,"hot-toast-warning",1),_(4,` + `),p(),_(5,` + `)),t&2){let e=C(3);g(3),y("theme",e.theme)}}function gie(t,n){if(t&1&&(_(0,` + `),h(1,"div"),_(2,` + `),k(3,"hot-toast-info",1),_(4,` + `),p(),_(5,` + `)),t&2){let e=C(3);g(3),y("theme",e.theme)}}function _ie(t,n){if(t&1&&(_(0,` + `),h(1,"div",2),_(2,` + `),h(3,"div"),_(4,` + `),N(5,hie,6,1)(6,pie,6,1)(7,fie,6,1)(8,gie,6,1),_(9,` + `),p(),_(10,` + `),p(),_(11,` + `)),t&2){let e,i=C(2);g(5),L((e=i.type)==="error"?5:e==="success"?6:e==="warning"?7:e==="info"?8:-1)}}function bie(t,n){if(t&1&&(_(0,` +`),h(1,"div",0),_(2,` + `),N(3,mie,3,1),N(4,_ie,12,1),p(),_(5,` +`)),t&2){let e=C();g(3),L(e.type==="loading"?3:-1),g(),L(e.type!=="loading"?4:-1)}}function vie(t,n){t&1&&Ge(0)}var K3=["hotToastBarBase"];function yie(t,n){if(t&1&&(_(0,` + `),h(1,"hot-toast-animated-icon",7),_(2),p(),_(3,` + `)),t&2){let e=C(2);g(),y("iconTheme",e.toast.iconTheme),g(),H(e.toast.icon)}}function xie(t,n){t&1&&Ge(0)}function Cie(t,n){if(t&1&&(_(0,` + `),h(1,"div"),_(2,` + `),R(3,xie,1,0,"ng-container",8),_(4,` + `),p(),_(5,` + `)),t&2){let e=C(2);g(3),y("dynamicView",e.toast.icon)}}function wie(t,n){if(t&1&&(_(0," "),N(1,yie,4,2)(2,Cie,6,1)),t&2){let e=C();g(),L(e.isIconString?1:2)}}function Die(t,n){if(t&1&&(_(0,` + `),k(1,"hot-toast-indicator",9),_(2,` + `)),t&2){let e=C();g(),y("theme",e.toast.iconTheme)("type",e.toast.type)}}function Eie(t,n){t&1&&Ge(0)}function Mie(t,n){if(t&1){let e=Y();_(0,` + `),h(1,"button",10),S("click",function(){I(e);let r=C();return A(r.close())}),p(),_(2,` + `)}if(t&2){let e=C();g(),Js(e.toast.closeStyle)}}var kie=(t,n)=>n.id;function Sie(t,n){if(t&1&&(_(0,` + `),k(1,"hot-toast-animated-icon",7),_(2,` + `)),t&2){let e=C(2);g(),y("iconTheme",e.toast.iconTheme)("icon",e.toast.icon)}}function Tie(t,n){t&1&&Ge(0)}function Iie(t,n){if(t&1&&(_(0,` + `),h(1,"div"),_(2,` + `),R(3,Tie,1,0,"ng-container",8),_(4,` + `),p(),_(5,` + `)),t&2){let e=C(2);g(3),y("dynamicView",e.toast.icon)}}function Aie(t,n){if(t&1&&(_(0," "),N(1,Sie,3,2)(2,Iie,6,1)),t&2){let e=C();g(),L(e.isIconString?1:2)}}function Oie(t,n){if(t&1&&(_(0,` + `),k(1,"hot-toast-indicator",9),_(2,` + `)),t&2){let e=C();g(),y("theme",e.toast.iconTheme)("type",e.toast.type)}}function Rie(t,n){t&1&&Ge(0)}function Pie(t,n){if(t&1){let e=Y();_(0,` + `),h(1,"button",10),S("click",function(){I(e);let r=C();return A(r.toggleToastGroup())}),p(),_(2,` + `)}if(t&2){let e=C();g(),Js(e.toast.group.btnStyle),G("expanded",e.isExpanded),X("aria-label",e.isExpanded?"Collapse":"Expand")}}function Fie(t,n){if(t&1){let e=Y();_(0,` + `),h(1,"button",11),S("click",function(){I(e);let r=C();return A(r.close())}),p(),_(2,` + `)}if(t&2){let e=C();g(),Js(e.toast.closeStyle)}}function Nie(t,n){if(t&1){let e=Y();_(0,` + `),h(1,"hot-toast-group-item",13),S("height",function(r){let o=I(e).$implicit,a=C(2);return A(a.updateHeight(r,o))})("beforeClosed",function(){let r=I(e).$implicit,o=C(2);return A(o.beforeClosedGroupItem(r))})("afterClosed",function(r){I(e);let o=C(2);return A(o.afterClosedGroupItem(r))}),p(),_(2,` + `)}if(t&2){let e=n.$implicit,i=n.$index,r=C(2);g(),y("toast",e)("offset",r.calculateOffset(e.id))("toastRef",r.toastRef.groupRefs[i])("toastsAfter",(e.autoClose?r.groupChildrenToasts.length:r.visibleToasts.length)-1-i)("defaultConfig",r.defaultConfig)("isShowingAllToasts",r.isShowingAllToasts)}}function Lie(t,n){if(t&1&&(_(0,` + `),h(1,"div",12),_(2,` + `),xt(3,Nie,3,6,null,null,kie),p(),_(5,` + `)),t&2){let e=C();g(),it(e.toast.group==null?null:e.toast.group.className),Dt("--hot-toast-group-height",e.groupHeight+"px"),g(2),Ct(e.groupChildrenToasts)}}function Vie(t,n){t&1&&_(0,` + `)}function Bie(t,n){if(t&1){let e=Y();_(0,` + `),h(1,"hot-toast",2),S("showAllToasts",function(r){I(e);let o=C(2);return A(o.showAllToasts(r))})("height",function(r){I(e);let o=C().$implicit,a=C();return A(a.updateHeight(r,o))})("beforeClosed",function(){I(e);let r=C().$implicit,o=C();return A(o.beforeClosed(r))})("afterClosed",function(r){I(e);let o=C(2);return A(o.afterClosed(r))})("toggleGroup",function(r){I(e);let o=C(2);return A(o.toggleGroup(r))}),p(),_(2,` + `)}if(t&2){let e=C(),i=e.$implicit,r=e.$index,o=C();g(),y("toast",i)("offset",o.calculateOffset(i.id,i.position))("toastRef",o.toastRefs[r])("toastsAfter",(i.autoClose?o.toasts.length:o.getVisibleToasts(i.position).length)-1-r)("defaultConfig",o.defaultConfig)("isShowingAllToasts",o.isShowingAllToasts)}}function jie(t,n){if(t&1&&(_(0,` + `),N(1,Vie,1,0)(2,Bie,3,6)),t&2){let e=n.$implicit;g(),L(e.group!=null&&e.group.parent?1:2)}}var q3={blank:4e3,error:4e3,success:4e3,loading:3e4,warning:4e3,info:4e3},Sh=800,wx=350,Hie=8,PS=.05,zie=1,Ag=class{constructor(n){this.toast=n,this.groupRefs=[],this.groupExpanded=!1,this._onClosed=new z,this._onGroupToggle=new z}set data(n){this.toast.data=n}get data(){return this.toast.data}set dispose(n){this._dispose=n}getToast(){return this.toast}appendTo(n,e){let{dispose:i,updateMessage:r,updateToast:o,afterClosed:a,afterGroupToggled:s,afterGroupRefsAttached:l}=n.addToast(this,e);return this.dispose=i,this.updateMessage=r,this.updateToast=o,this.afterClosed=Wu(this._onClosed.asObservable(),a),this.afterGroupToggled=Wu(this._onGroupToggle.asObservable(),s),this.afterGroupRefsAttached=l,this}close(n={dismissedByAction:!1}){this.groupRefs.forEach(e=>e.close()),this._dispose(),this._onClosed.next({dismissedByAction:n.dismissedByAction,id:this.toast.id}),this._onClosed.complete()}toggleGroup(n={byAction:!1}){this.groupExpanded=!this.groupExpanded,this._onGroupToggle.next({byAction:n.byAction,id:this.toast.id,event:this.groupExpanded?"expand":"collapse"})}show(){this.toast.visible=!0}},Dx=(t,n,e)=>{t.setStyle(n,"animation",e)},Uie=(()=>{let n=class n{};n.\u0275fac=function(r){return new(r||n)},n.\u0275cmp=E({type:n,selectors:[["hot-toast-loader"]],inputs:{theme:"theme"},decls:2,vars:4,consts:[[1,"hot-toast-loader-icon"]],template:function(r,o){r&1&&(ai(0,"div",0),_(1,` +`)),r&2&&Dt("border-color",o.theme==null?null:o.theme.primary)("border-right-color",o.theme==null?null:o.theme.secondary)},encapsulation:2,changeDetection:0});let t=n;return t})(),$ie=(()=>{let n=class n{};n.\u0275fac=function(r){return new(r||n)},n.\u0275cmp=E({type:n,selectors:[["hot-toast-error"]],inputs:{theme:"theme"},decls:2,vars:4,consts:[[1,"hot-toast-error-icon"]],template:function(r,o){r&1&&(ai(0,"div",0),_(1,` +`)),r&2&&Dt("--error-primary",o.theme==null?null:o.theme.primary)("--error-secondary",o.theme==null?null:o.theme.secondary)},encapsulation:2,changeDetection:0});let t=n;return t})(),Wie=(()=>{let n=class n{};n.\u0275fac=function(r){return new(r||n)},n.\u0275cmp=E({type:n,selectors:[["hot-toast-checkmark"]],inputs:{theme:"theme"},decls:2,vars:4,consts:[[1,"hot-toast-checkmark-icon"]],template:function(r,o){r&1&&(ai(0,"div",0),_(1,` +`)),r&2&&Dt("--check-primary",o.theme==null?null:o.theme.primary)("--check-secondary",o.theme==null?null:o.theme.secondary)},encapsulation:2,changeDetection:0});let t=n;return t})(),Gie=(()=>{let n=class n{};n.\u0275fac=function(r){return new(r||n)},n.\u0275cmp=E({type:n,selectors:[["hot-toast-warning"]],inputs:{theme:"theme"},decls:2,vars:4,consts:[[1,"hot-toast-warning-icon"]],template:function(r,o){r&1&&(ai(0,"div",0),_(1,` +`)),r&2&&Dt("--warn-primary",o.theme==null?null:o.theme.primary)("--warn-secondary",o.theme==null?null:o.theme.secondary)},encapsulation:2,changeDetection:0});let t=n;return t})(),qie=(()=>{let n=class n{};n.\u0275fac=function(r){return new(r||n)},n.\u0275cmp=E({type:n,selectors:[["hot-toast-info"]],inputs:{theme:"theme"},decls:2,vars:4,consts:[[1,"hot-toast-info-icon"]],template:function(r,o){r&1&&(ai(0,"div",0),_(1,` +`)),r&2&&Dt("--info-primary",o.theme==null?null:o.theme.primary)("--info-secondary",o.theme==null?null:o.theme.secondary)},encapsulation:2,changeDetection:0});let t=n;return t})(),Z3=(()=>{let n=class n{};n.\u0275fac=function(r){return new(r||n)},n.\u0275cmp=E({type:n,selectors:[["hot-toast-indicator"]],inputs:{theme:"theme",type:"type"},decls:1,vars:1,consts:[[1,"hot-toast-indicator-wrapper"],[3,"theme"],[1,"hot-toast-status-wrapper"]],template:function(r,o){r&1&&N(0,bie,6,2),r&2&&L(o.type!=="blank"?0:-1)},dependencies:[Uie,$ie,Wie,Gie,qie],encapsulation:2,changeDetection:0});let t=n;return t})(),X3=(()=>{let n=class n{};n.\u0275fac=function(r){return new(r||n)},n.\u0275cmp=E({type:n,selectors:[["hot-toast-animated-icon"]],inputs:{iconTheme:"iconTheme",icon:"icon"},decls:5,vars:3,consts:[[1,"hot-toast-animated-icon"],[4,"dynamicView"]],template:function(r,o){r&1&&(h(0,"div",0),_(1,` + `),R(2,vie,1,0,"ng-container",1),_(3,` +`),p(),_(4,` +`)),r&2&&(Dt("color",o.iconTheme==null?null:o.iconTheme.primary),g(2),y("dynamicView",o.icon))},dependencies:[Cx],encapsulation:2,changeDetection:0});let t=n;return t})(),Yie=(()=>{let n=class n{constructor(){this.offset=0,this._toastsAfter=0,this.isShowingAllToasts=!1,this.height=new U,this.beforeClosed=new U,this.afterClosed=new U,this.showAllToasts=new U,this.toggleGroup=new U,this.isManualClose=!1,this.toastBarBaseStylesSignal=he({}),this.unlisteners=[],this.softClosed=!1,this.injector=u(de),this.renderer=u(je),this.ngZone=u(ae),this.cdr=u(ye)}set toast(i){this._toast=i;let r=this.toastBarBaseStylesSignal(),o=M({},i.style);if(r.animation?.includes("hotToastExitAnimation"))o.animation=r.animation;else{let s=`hotToastEnterAnimation${i.position.includes("top")?"Negative":"Positive"} ${wx}ms cubic-bezier(0.21, 1.02, 0.73, 1) forwards`;o.animation=s}this.toastBarBaseStylesSignal.set(o)}get toast(){return this._toast}get toastsAfter(){return this._toastsAfter}set toastsAfter(i){this._toastsAfter=i}get toastBarBaseHeight(){return this.toastBarBase.nativeElement.offsetHeight}get scale(){return this.defaultConfig.stacking!=="vertical"&&!this.isShowingAllToasts?this.toastsAfter*-PS+1:1}get translateY(){return this.offset*(this.top?1:-1)+"px"}get exitAnimationDelay(){return this.toast.duration+"ms"}get top(){return this.toast.position.includes("top")}get containerPositionStyle(){let i=this.top?{top:0}:{bottom:0},r="translateY(var(--hot-toast-translate-y)) scale(var(--hot-toast-scale))",o=this.toast.position.includes("left")?{left:0}:this.toast.position.includes("right")?{right:0}:{left:0,right:0,justifyContent:"center"};return M(M({transform:r},i),o)}get isIconString(){return typeof this.toast.icon=="string"}get groupChildrenToastRefs(){return this.toastRef.groupRefs.filter(i=>!!i)}set groupChildrenToastRefs(i){this.toastRef.groupRefs=i}get groupChildrenToasts(){return this.groupChildrenToastRefs.map(i=>i.getToast())}get groupHeight(){return this.visibleToasts.map(i=>i.height).reduce((i,r)=>i+r,0)}get isExpanded(){return this.toastRef.groupExpanded}ngOnChanges(i){i.toast&&!i.toast.firstChange&&i.toast.currentValue?.message&&requestAnimationFrame(()=>{this.height.emit(this.toastBarBase.nativeElement.offsetHeight)})}ngOnInit(){Ig(this.toast.message)&&(this.context={$implicit:this.toastRef}),gu(this.toast.message)&&(this.toastComponentInjector=de.create({providers:[{provide:Ag,useValue:this.toastRef}],parent:this.toast.injector||this.injector}));let i=this.toastBarBase.nativeElement;this.ngZone.runOutsideAngular(()=>{this.unlisteners.push(this.renderer.listen(i,"animationstart",r=>{this.isExitAnimation(r)&&this.ngZone.run(()=>{this.renderer.setStyle(i,"pointer-events","none"),this.renderer.setStyle(i.parentElement,"pointer-events","none"),this.beforeClosed.emit()})}),this.renderer.listen(i,"animationend",r=>{this.isEnterAnimation(r)&&this.ngZone.run(()=>{if(this.toast.autoClose){let o=`hotToastExitAnimation${this.top?"Negative":"Positive"} ${Sh}ms forwards cubic-bezier(0.06, 0.71, 0.55, 1) var(--hot-toast-exit-animation-delay) var(--hot-toast-exit-animation-state)`;this.toastBarBaseStylesSignal.set(De(M({},this.toast.style),{animation:o}))}}),this.isExitAnimation(r)&&this.ngZone.run(()=>this.afterClosed.emit({dismissedByAction:this.isManualClose,id:this.toast.id}))}))})}ngAfterViewInit(){let i=this.toastBarBase.nativeElement;requestAnimationFrame(()=>{this.height.emit(i.offsetHeight)}),this.setToastAttributes()}softClose(){let i=`hotToastExitSoftAnimation${this.top?"Negative":"Positive"} ${Sh}ms forwards cubic-bezier(0.06, 0.71, 0.55, 1)`,r=this.toastBarBase.nativeElement;Dx(this.renderer,r,i),this.softClosed=!0}softOpen(){let i=`hotToastEnterSoftAnimation${top?"Negative":"Positive"} ${wx}ms cubic-bezier(0.21, 1.02, 0.73, 1) forwards`,r=this.toastBarBase.nativeElement;Dx(this.renderer,r,i),this.softClosed=!1}close(){this.isManualClose=!0,this.cdr.markForCheck();let i=`hotToastExitAnimation${this.top?"Negative":"Positive"} ${Sh}ms forwards cubic-bezier(0.06, 0.71, 0.55, 1)`;this.toastBarBaseStylesSignal.set(De(M({},this.toast.style),{animation:i}))}handleMouseEnter(){this.showAllToasts.emit(!0)}handleMouseLeave(){this.showAllToasts.emit(!1)}ngOnDestroy(){for(this.close();this.unlisteners.length;)this.unlisteners.pop()()}isExitAnimation(i){return i.animationName.includes("hotToastExitAnimation")}isEnterAnimation(i){return i.animationName.includes("hotToastEnterAnimation")}setToastAttributes(){let i=this.toast.attributes;for(let[r,o]of Object.entries(i))this.renderer.setAttribute(this.toastBarBase.nativeElement,r,o)}get visibleToasts(){return this.groupChildrenToasts.filter(i=>i.visible)}};n.\u0275fac=function(r){return new(r||n)},n.\u0275cmp=E({type:n,selectors:[["hot-toast-group-item"]],viewQuery:function(r,o){if(r&1&&ie(K3,7),r&2){let a;B(a=j())&&(o.toastBarBase=a.first)}},inputs:{toast:"toast",offset:"offset",defaultConfig:"defaultConfig",toastRef:"toastRef",toastsAfter:"toastsAfter",isShowingAllToasts:"isShowingAllToasts"},outputs:{height:"height",beforeClosed:"beforeClosed",afterClosed:"afterClosed",showAllToasts:"showAllToasts",toggleGroup:"toggleGroup"},features:[Ae],decls:21,vars:25,consts:[["hotToastBarBase",""],[1,"hot-toast-bar-base-container"],[1,"hot-toast-bar-base-wrapper",3,"mouseenter","mouseleave"],[1,"hot-toast-bar-base"],["aria-hidden","true",1,"hot-toast-icon"],[1,"hot-toast-message"],[4,"dynamicView","dynamicViewContext","dynamicViewInjector"],[3,"iconTheme"],[4,"dynamicView"],[3,"theme","type"],["type","button","aria-label","Close",1,"hot-toast-close-btn",3,"click"]],template:function(r,o){if(r&1){let a=Y();h(0,"div",1),_(1,` + `),h(2,"div",2),S("mouseenter",function(){return I(a),A(o.handleMouseEnter())})("mouseleave",function(){return I(a),A(o.handleMouseLeave())}),_(3,` + `),h(4,"div",3,0),_(6,` + `),h(7,"div",4),_(8,` + `),N(9,wie,3,1)(10,Die,3,2),p(),_(11,` + `),h(12,"div",5),_(13,` + `),R(14,Eie,1,0,"ng-container",6),_(15,` + `),p(),_(16,` + `),N(17,Mie,3,2),p(),_(18,` + `),p(),_(19,` +`),p(),_(20,` +`)}r&2&&(Js(o.containerPositionStyle),it("hot-toast-theme-"+o.toast.theme),Dt("--hot-toast-scale",o.scale)("--hot-toast-translate-y",o.translateY),g(4),Js(o.toastBarBaseStylesSignal()),it(o.toast.className),Dt("--hot-toast-animation-state",o.isManualClose?"running":"paused")("--hot-toast-exit-animation-state",o.isShowingAllToasts?"paused":"running")("--hot-toast-exit-animation-delay",o.exitAnimationDelay),X("aria-live",o.toast.ariaLive)("role",o.toast.role),g(5),L(o.toast.icon!==void 0?9:10),g(5),y("dynamicView",o.toast.message)("dynamicViewContext",o.context)("dynamicViewInjector",o.toastComponentInjector),g(3),L(o.toast.dismissible?17:-1))},dependencies:[X3,Z3,Cx],encapsulation:2,changeDetection:0});let t=n;return t})(),Y3=(()=>{let n=class n{constructor(){this.offset=0,this._toastsAfter=0,this.isShowingAllToasts=!1,this.height=new U,this.beforeClosed=new U,this.afterClosed=new U,this.showAllToasts=new U,this.toggleGroup=new U,this.isManualClose=!1,this.isExpanded=!1,this.toastBarBaseStylesSignal=he({}),this.unlisteners=[],this.softClosed=!1,this.groupRefs=[],this.injector=u(de),this.renderer=u(je),this.ngZone=u(ae),this.cdr=u(ye)}set toast(i){this._toast=i;let r=this.toastBarBaseStylesSignal(),o=M({},i.style);if(r.animation?.includes("hotToastExitAnimation"))o.animation=r.animation;else{let s=`hotToastEnterAnimation${i.position.includes("top")?"Negative":"Positive"} ${wx}ms cubic-bezier(0.21, 1.02, 0.73, 1) forwards`;o.animation=s}this.toastBarBaseStylesSignal.set(o)}get toast(){return this._toast}get toastsAfter(){return this._toastsAfter}set toastsAfter(i){this._toastsAfter=i,this.defaultConfig?.visibleToasts>0&&(this.toast.autoClose||(i>=this.defaultConfig?.visibleToasts?this.softClose():this.softClosed&&this.softOpen()))}get toastBarBaseHeight(){return this.toastBarBase.nativeElement.offsetHeight}get scale(){return this.defaultConfig.stacking!=="vertical"&&!this.isShowingAllToasts?this.toastsAfter*-PS+1:1}get translateY(){return this.offset*(this.top?1:-1)+"px"}get exitAnimationDelay(){return this.toast.duration+"ms"}get top(){return this.toast.position.includes("top")}get containerPositionStyle(){let i=this.top?{top:0}:{bottom:0},r="translateY(var(--hot-toast-translate-y)) scale(var(--hot-toast-scale))",o=this.toast.position.includes("left")?{left:0}:this.toast.position.includes("right")?{right:0}:{left:0,right:0,justifyContent:"center"};return M(M({transform:r},i),o)}get isIconString(){return typeof this.toast.icon=="string"}get groupChildrenToastRefs(){return this.groupRefs.filter(i=>!!i)}set groupChildrenToastRefs(i){this.groupRefs=i,this.toastRef.groupRefs=i}get groupChildrenToasts(){return this.groupChildrenToastRefs.map(i=>i.getToast())}get groupHeight(){return this.visibleToasts.slice(-this.defaultConfig.visibleToasts).map(i=>i.height).reduce((i,r)=>i+r,0)}get visibleToasts(){return this.groupChildrenToasts.filter(i=>i.visible)}ngDoCheck(){this.toastRef.groupRefs.length!==this.groupRefs.length&&(this.groupRefs=this.toastRef.groupRefs.slice(),this.cdr.markForCheck(),this.emiHeightWithGroup(this.isExpanded)),this.toastRef.groupExpanded!==this.isExpanded&&(this.isExpanded=this.toastRef.groupExpanded,this.cdr.markForCheck(),this.emiHeightWithGroup(this.isExpanded))}ngOnChanges(i){i.toast&&!i.toast.firstChange&&i.toast.currentValue?.message&&this.emiHeightWithGroup(this.isExpanded)}ngOnInit(){Ig(this.toast.message)&&(this.context={$implicit:this.toastRef}),gu(this.toast.message)&&(this.toastComponentInjector=de.create({providers:[{provide:Ag,useValue:this.toastRef}],parent:this.toast.injector||this.injector}));let i=this.toastBarBase.nativeElement;this.ngZone.runOutsideAngular(()=>{this.unlisteners.push(this.renderer.listen(i,"animationstart",r=>{this.isExitAnimation(r)&&this.ngZone.run(()=>{this.renderer.setStyle(i,"pointer-events","none"),this.renderer.setStyle(i.parentElement,"pointer-events","none"),this.beforeClosed.emit()})}),this.renderer.listen(i,"animationend",r=>{this.isEnterAnimation(r)&&this.ngZone.run(()=>{if(this.toast.autoClose){let o=`hotToastExitAnimation${this.top?"Negative":"Positive"} ${Sh}ms forwards cubic-bezier(0.06, 0.71, 0.55, 1) var(--hot-toast-exit-animation-delay) var(--hot-toast-exit-animation-state)`;this.toastBarBaseStylesSignal.set(De(M({},this.toast.style),{animation:o}))}}),this.isExitAnimation(r)&&this.ngZone.run(()=>this.afterClosed.emit({dismissedByAction:this.isManualClose,id:this.toast.id}))}))})}ngAfterViewInit(){let i=this.toastBarBase.nativeElement;requestAnimationFrame(()=>{this.height.emit(i.offsetHeight)}),this.setToastAttributes()}softClose(){let i=`hotToastExitSoftAnimation${this.top?"Negative":"Positive"} ${Sh}ms forwards cubic-bezier(0.06, 0.71, 0.55, 1)`,r=this.toastBarBase.nativeElement;Dx(this.renderer,r,i),this.softClosed=!0,this.isExpanded&&this.toggleToastGroup()}softOpen(){let i=`hotToastEnterSoftAnimation${top?"Negative":"Positive"} ${wx}ms cubic-bezier(0.21, 1.02, 0.73, 1) forwards`,r=this.toastBarBase.nativeElement;Dx(this.renderer,r,i),this.softClosed=!1}close(){this.isManualClose=!0,this.cdr.markForCheck();let i=`hotToastExitAnimation${this.top?"Negative":"Positive"} ${Sh}ms forwards cubic-bezier(0.06, 0.71, 0.55, 1)`;this.toastBarBaseStylesSignal.set(De(M({},this.toast.style),{animation:i}))}handleMouseEnter(){this.showAllToasts.emit(!0)}handleMouseLeave(){this.showAllToasts.emit(!1)}ngOnDestroy(){for(this.close();this.unlisteners.length;)this.unlisteners.pop()()}isExitAnimation(i){return i.animationName.includes("hotToastExitAnimation")}isEnterAnimation(i){return i.animationName.includes("hotToastEnterAnimation")}setToastAttributes(){let i=this.toast.attributes;for(let[r,o]of Object.entries(i))this.renderer.setAttribute(this.toastBarBase.nativeElement,r,o)}calculateOffset(i){let r=this.visibleToasts,o=r.findIndex(s=>s.id===i);return o!==-1?r.slice(...this.defaultConfig.reverseOrder?[o+1]:[0,o]).reduce((s,l,c)=>this.defaultConfig.visibleToasts!==0&&co.id===i.id)>-1&&(this.groupChildrenToastRefs=this.groupChildrenToastRefs.filter(o=>o.getToast().id!==i.id),this.cdr.markForCheck())}toggleToastGroup(){let i=this.isExpanded?"collapse":"expand";this.toggleGroup.emit({byAction:!0,event:i,id:this.toast.id}),this.emiHeightWithGroup(i==="expand")}emiHeightWithGroup(i){requestAnimationFrame(i?()=>{this.height.emit(this.toastBarBase.nativeElement.offsetHeight+this.groupHeight)}:()=>{this.height.emit(this.toastBarBase.nativeElement.offsetHeight)})}};n.\u0275fac=function(r){return new(r||n)},n.\u0275cmp=E({type:n,selectors:[["hot-toast"]],viewQuery:function(r,o){if(r&1&&ie(K3,7),r&2){let a;B(a=j())&&(o.toastBarBase=a.first)}},inputs:{toast:"toast",offset:"offset",defaultConfig:"defaultConfig",toastRef:"toastRef",toastsAfter:"toastsAfter",isShowingAllToasts:"isShowingAllToasts"},outputs:{height:"height",beforeClosed:"beforeClosed",afterClosed:"afterClosed",showAllToasts:"showAllToasts",toggleGroup:"toggleGroup"},features:[Ae],decls:23,vars:29,consts:[["hotToastBarBase",""],[1,"hot-toast-bar-base-container"],[1,"hot-toast-bar-base-wrapper",3,"mouseenter","mouseleave"],[1,"hot-toast-bar-base"],["aria-hidden","true",1,"hot-toast-icon"],[1,"hot-toast-message"],[4,"dynamicView","dynamicViewContext","dynamicViewInjector"],[3,"iconTheme","icon"],[4,"dynamicView"],[3,"theme","type"],["type","button",1,"hot-toast-group-btn",3,"click"],["type","button","aria-label","Close",1,"hot-toast-close-btn",3,"click"],["role","list",1,"hot-toast-bar-base-group"],[3,"height","beforeClosed","afterClosed","toast","offset","toastRef","toastsAfter","defaultConfig","isShowingAllToasts"]],template:function(r,o){if(r&1){let a=Y();h(0,"div",1),_(1,` + `),h(2,"div",2),S("mouseenter",function(){return I(a),A(o.handleMouseEnter())})("mouseleave",function(){return I(a),A(o.handleMouseLeave())}),_(3,` + `),h(4,"div",3,0),_(6,` + `),h(7,"div",4),_(8,` + `),N(9,Aie,3,1)(10,Oie,3,2),p(),_(11,` + + `),h(12,"div",5),_(13,` + `),R(14,Rie,1,0,"ng-container",6),_(15,` + `),p(),_(16,` + + `),N(17,Pie,3,5),N(18,Fie,3,2),p(),_(19,` + + `),N(20,Lie,6,4),p(),_(21,` +`),p(),_(22,` +`)}r&2&&(Js(o.containerPositionStyle),it("hot-toast-theme-"+o.toast.theme),Dt("--hot-toast-scale",o.scale)("--hot-toast-translate-y",o.translateY),g(2),G("expanded",o.isExpanded),g(2),Js(o.toastBarBaseStylesSignal()),it(o.toast.className),Dt("--hot-toast-animation-state",o.isManualClose?"running":"paused")("--hot-toast-exit-animation-state",o.isShowingAllToasts?"paused":"running")("--hot-toast-exit-animation-delay",o.exitAnimationDelay),X("aria-live",o.toast.ariaLive)("role",o.toast.role),g(5),L(o.toast.icon!==void 0?9:10),g(5),y("dynamicView",o.toast.message)("dynamicViewContext",o.context)("dynamicViewInjector",o.toastComponentInjector),g(3),L(o.toast.group!=null&&o.toast.group.expandAndCollapsible&&(o.toast.group!=null&&o.toast.group.children)&&o.visibleToasts.length>0?17:-1),g(),L(o.toast.dismissible?18:-1),g(2),L(o.toast.visible?20:-1))},dependencies:[Cx,Z3,X3,Yie],encapsulation:2,changeDetection:0});let t=n;return t})(),Q3=(()=>{let n=class n{constructor(){this.toasts=[],this.toastRefs=[],this.isShowingAllToasts=!1,this._onClosed=new z,this._onGroupToggle=new z,this._onGroupRefAttached=new z,this.onClosed$=this._onClosed.asObservable(),this.onGroupToggle$=this._onGroupToggle.asObservable(),this.onGroupRefAttached$=this._onGroupRefAttached.asObservable(),this.cdr=u(ye),this.toastService=u(Rg)}trackById(i,r){return r.id}getVisibleToasts(i){return this.unGroupedToasts.filter(r=>r.visible&&r.position===i)}get unGroupedToasts(){return this.toasts.filter(i=>i.group?.parent===void 0||i.group?.children===void 0||i.group?.children.length===0)}calculateOffset(i,r){let o=this.getVisibleToasts(r),a=o.findIndex(l=>l.id===i);return a!==-1?o.slice(...this.defaultConfig.reverseOrder?[a+1]:[0,a]).reduce((l,c,d)=>{let m=o.length-1-d;return this.defaultConfig.visibleToasts!==0&&dthis.defaultConfig.visibleToasts&&this.toasts.slice(0,this.toasts.length-this.defaultConfig.visibleToasts).forEach(s=>{s.autoClose&&this.closeToast(s.id)}),this.cdr.markForCheck(),this.attachGroupRefs(o,i,r),{dispose:()=>{this.closeToast(o.id)},updateMessage:a=>{o.message=a,this.updateToasts(o),this.cdr.markForCheck()},updateToast:a=>{this.updateToasts(o,a),this.cdr.markForCheck()},afterClosed:this.getAfterClosed(o),afterGroupToggled:this.getAfterGroupToggled(o),afterGroupRefsAttached:this.getAfterGroupRefsAttached(o).pipe(se(a=>a.groupRefs))}}attachGroupRefs(i,r,o){return fn(this,null,function*(){let a=[];if(i.group){if(i.group.children){a=yield this.createGroupRefs(i,r);let s=this.toastRefs.findIndex(l=>l.getToast().id===i.id);s>-1&&(this.toastRefs[s].groupRefs=a,this.cdr.markForCheck(),this._onGroupRefAttached.next({groupRefs:a,id:i.id}))}else if(i.group.parent&&!o){let l=i.group.parent.getToast(),c=this.toastRefs.findIndex(m=>m.getToast().id===l.id),d=this.toasts.findIndex(m=>m.id===l.id);if(c>-1&&d>-1){this.toastRefs[c].groupRefs.push(r);let m=this.toasts[c].group??{},f=this.toasts[c].group?.children??[];f.push({options:De(M({},i),{type:i.type,message:i.message})}),m.children=f,this.toasts[c].group=M({},m),this.cdr.markForCheck(),this._onGroupRefAttached.next({groupRefs:a,id:l.id})}}}})}createGroupRefs(i,r){return new Promise(a=>{let l=i.group.children.map(c=>new Promise(d=>{c.options.group={parent:r},setTimeout(()=>{try{let m=this.toastService.show(c.options.message,c.options,!0);d(m)}catch(m){console.error("Error creating toast",m),d(null)}})}));Promise.all(l).then(c=>a(c))})}closeToast(i){if(i){let r=this.hotToastComponentList.find(o=>o.toast.id===i);r&&(r.close(),this.cdr.markForCheck())}else this.hotToastComponentList.forEach(r=>r.close()),this.cdr.markForCheck()}beforeClosed(i){i.visible=!1,this.cdr.markForCheck()}afterClosed(i){this.toasts.findIndex(o=>o.id===i.id)>-1&&(this._onClosed.next(i),this.toasts=this.toasts.filter(o=>o.id!==i.id),this.toastRefs=this.toastRefs.filter(o=>o.getToast().id!==i.id),this.cdr.markForCheck())}toggleGroup(i){let r=this.toastRefs.findIndex(o=>o.getToast().id===i.id);r>-1&&(this._onGroupToggle.next(i),this.toastRefs[r].groupExpanded=i.event==="expand",this.cdr.markForCheck())}hasToast(i){return this.toasts.findIndex(r=>r.id===i)>-1}showAllToasts(i){this.isShowingAllToasts=i}getAfterClosed(i){return this.onClosed$.pipe(ce(r=>r.id===i.id))}getAfterGroupToggled(i){return this.onGroupToggle$.pipe(ce(r=>r.id===i.id))}getAfterGroupRefsAttached(i){return this.onGroupRefAttached$.pipe(ce(r=>r.id===i.id))}updateToasts(i,r){this.toasts=this.toasts.map(o=>M(M({},o),o.id===i.id&&M(M({},i),r))),this.cdr.markForCheck()}};n.\u0275fac=function(r){return new(r||n)},n.\u0275cmp=E({type:n,selectors:[["hot-toast-container"]],viewQuery:function(r,o){if(r&1&&ie(Y3,5),r&2){let a;B(a=j())&&(o.hotToastComponentList=a)}},inputs:{defaultConfig:"defaultConfig"},decls:11,vars:0,consts:[[1,"hot-toast-container-overlay"],[1,"hot-toast-container-wrapper"],[3,"showAllToasts","height","beforeClosed","afterClosed","toggleGroup","toast","offset","toastRef","toastsAfter","defaultConfig","isShowingAllToasts"]],template:function(r,o){r&1&&(h(0,"div",0),_(1,` + `),h(2,"div",1),_(3,` + `),h(4,"div"),_(5,` + `),xt(6,jie,3,1,null,null,o.trackById,!0),p(),_(8,` + `),p(),_(9,` +`),p(),_(10,` +`)),r&2&&(g(6),Ct(o.toasts))},dependencies:[Y3],styles:[".hot-toast-container-overlay[_ngcontent-%COMP%]{position:fixed;z-index:var(--hot-toast-container-overlay-z-index, 9999);inset:0;pointer-events:none}.hot-toast-container-wrapper[_ngcontent-%COMP%]{position:relative;height:100%}"],changeDetection:0});let t=n;return t})(),Og=class{constructor(){this.reverseOrder=!1,this.visibleToasts=5,this.stacking="vertical",this.ariaLive="polite",this.role="status",this.position="top-center",this.autoClose=!0,this.theme="toast",this.attributes={},this.info={content:""},this.success={content:""},this.error={content:""},this.loading={content:""},this.blank={content:""},this.warning={content:""}}},Qie=t=>typeof t=="function",Kie=t=>typeof t=="function"&&!!t.\u0275cmp,Zie=(t,n)=>Kie(t)?t:Qie(t)?t(n):t,RS=class{constructor(){this.storage="local",this.key="ngxpert/hototast-${id}",this.count=1,this.enabled=!1}},Xie=new T("HOT_TOAST_CONTAINER_TOKEN"),Rg=(()=>{let n=class n{constructor(){this._isInitialized=!1,this._defaultGlobalConfig=new Og,this._defaultPersistConfig=new RS,this._viewService=u(OS),this._platformId=u(Ks),this._globalConfig=u(Og,{optional:!0}),this._container=u(Xie,{optional:!0}),this._globalConfig&&(this._defaultGlobalConfig=M(M({},this._defaultGlobalConfig),this._globalConfig))}get defaultConfig(){return this._defaultGlobalConfig}set defaultConfig(i){this._defaultGlobalConfig=M(M({},this._defaultGlobalConfig),i),this._componentRef&&this._componentRef.setInput("defaultConfig",this._defaultGlobalConfig)}show(i,r,o){return this.createToast({message:i||this._defaultGlobalConfig.blank.content,type:r?.type??"blank",options:M(M({},this._defaultGlobalConfig),r),skipAttachToParent:o})}error(i,r){return this.createToast({message:i||this._defaultGlobalConfig.error.content,type:"error",options:M(M(M({},this._defaultGlobalConfig),this._defaultGlobalConfig?.error),r)})}success(i,r){return this.createToast({message:i||this._defaultGlobalConfig.success.content,type:"success",options:M(M(M({},this._defaultGlobalConfig),this._defaultGlobalConfig?.success),r)})}loading(i,r){return this.createToast({message:i||this._defaultGlobalConfig.loading.content,type:"loading",options:M(M(M({},this._defaultGlobalConfig),this._defaultGlobalConfig?.loading),r)})}warning(i,r){return this.createToast({message:i||this._defaultGlobalConfig.warning.content,type:"warning",options:M(M(M({},this._defaultGlobalConfig),this._defaultGlobalConfig?.warning),r)})}info(i,r){return this.createToast({message:i||this._defaultGlobalConfig.info.content,type:"info",options:M(M(M({},this._defaultGlobalConfig),this._defaultGlobalConfig?.info),r)})}observe(i){return r=>{let o,a=0,s=i.loading??this._defaultGlobalConfig.loading?.content,l=i.success??this._defaultGlobalConfig.success?.content,c=i.error??this._defaultGlobalConfig.error?.content;return kn(()=>(s&&(o=this.createLoadingToast(s),a=Date.now()),r.pipe(Be(M(M({},l&&{next:d=>{o=this.createOrUpdateToast(i,d,o,"success",a===0?a:Date.now()-a)}}),c&&{error:d=>{o=this.createOrUpdateToast(i,d,o,"error",a===0?a:Date.now()-a)}})))))}}close(i){this._componentRef&&this._componentRef.ref.instance.closeToast(i)}init(){if(!U2(this._platformId))if(this._container){let i=document.querySelector(this._container);i||(console.warn(`No container element found for selector: ${this._container}, using document.body instead as toast container.`),i=document.body),this._componentRef=this._viewService.createComponent(Q3).setInput("defaultConfig",this._defaultGlobalConfig).appendTo(i)}else this._componentRef=this._viewService.createComponent(Q3).setInput("defaultConfig",this._defaultGlobalConfig).appendTo(document.body)}createOrUpdateToast(i,r,o,a,s){try{let l=null,c={};if({content:l,options:c}=this.getContentAndOptions(a,i[a]||(this._defaultGlobalConfig[a]?this._defaultGlobalConfig[a].content:"")),l=Zie(l,r),o){c.data&&(o.data=c.data),o.updateMessage(l);let d=M(M({type:a,duration:s+q3[a]},c),c.duration&&{duration:s+c.duration});o.updateToast(d)}else this.createToast({message:l,type:a,options:c});return o}catch(l){console.error(l)}}createToast({message:i,type:r,options:o,observableMessages:a,skipAttachToParent:s}){this._isInitialized||(this._isInitialized=!0,this.init());let l=o?.id??`toast-${n.nextId++}`;if(!this.isDuplicate(l)&&(!o.persist?.enabled||o.persist?.enabled&&this.handleStorageValue(l,o))){let c=M({ariaLive:o?.ariaLive??"polite",createdAt:Date.now(),duration:o?.duration??q3[r],id:l,message:i,role:o?.role??"status",type:r,visible:!0,observableMessages:a??void 0},o);return new Ag(c).appendTo(this._componentRef.ref.instance,s)}}isDuplicate(i){return this._componentRef.ref.instance.hasToast(i)}handleStorageValue(i,r){let o=1,a=M(M({},this._defaultPersistConfig),r.persist),s=a.storage==="local"?localStorage:sessionStorage,l=a.key.replace(/\${id}/g,i),c=s.getItem(l);return c?(c=parseInt(c,10),c>0?o=c-1:o=c):o=a.count,s.setItem(l,o.toString()),o}getContentAndOptions(i,r){var s;let o,a=M(M({},this._defaultGlobalConfig),this._defaultGlobalConfig[i]);if(typeof r=="string"||Ig(r)||gu(r))o=r;else{let l;s=r,{content:o}=s,l=ed(s,["content"]),a=M(M({},a),l)}return{content:o,options:a}}createLoadingToast(i){let r=null,o={};return{content:r,options:o}=this.getContentAndOptions("loading",i),this.loading(r,o)}};n.nextId=0,n.\u0275fac=function(r){return new(r||n)},n.\u0275prov=O({token:n,factory:n.\u0275fac,providedIn:"root"});let t=n;return t})();function J3(t){return zr([{provide:Og,useValue:t}])}var Mx={REMOVE:"remove",SHOW:"show"},tj=(()=>{let n=class n{constructor(){this.strategiesSource=new tt({}),this.strategies$=this.strategiesSource.asObservable()}};n.\u0275fac=function(r){return new(r||n)},n.\u0275prov=O({token:n,factory:n.\u0275fac});let t=n;return t})(),NS=new T("USE_CONFIGURATION_STORE"),LS=(()=>{let n=class n{constructor(i=!1,r){this.isolate=i,this.configurationStore=r,this.strategiesSource=this.isolate?new tt({}):this.configurationStore.strategiesSource,this.strategies$=this.strategiesSource.asObservable(),this.onAuthorisedDefaultStrategy=this.isolate?void 0:this.configurationStore.onAuthorisedDefaultStrategy,this.onUnAuthorisedDefaultStrategy=this.isolate?void 0:this.configurationStore.onUnAuthorisedDefaultStrategy}setDefaultOnAuthorizedStrategy(i){this.isolate?this.onAuthorisedDefaultStrategy=this.getDefinedStrategy(i):(this.configurationStore.onAuthorisedDefaultStrategy=this.getDefinedStrategy(i),this.onAuthorisedDefaultStrategy=this.configurationStore.onAuthorisedDefaultStrategy)}setDefaultOnUnauthorizedStrategy(i){this.isolate?this.onUnAuthorisedDefaultStrategy=this.getDefinedStrategy(i):(this.configurationStore.onUnAuthorisedDefaultStrategy=this.getDefinedStrategy(i),this.onUnAuthorisedDefaultStrategy=this.configurationStore.onUnAuthorisedDefaultStrategy)}addPermissionStrategy(i,r){this.strategiesSource.value[i]=r}getStrategy(i){return this.strategiesSource.value[i]}getAllStrategies(){return this.strategiesSource.value}getDefinedStrategy(i){if(this.strategiesSource.value[i]||this.isPredefinedStrategy(i))return i;throw new Error(`No ' ${i} ' strategy is found please define one`)}isPredefinedStrategy(i){return i===Mx.SHOW||i===Mx.REMOVE}};n.\u0275fac=function(r){return new(r||n)(pe(NS),pe(tj))},n.\u0275prov=O({token:n,factory:n.\u0275fac});let t=n;return t})();function io(t){return typeof t=="function"}function FS(t){if(Object.prototype.toString.call(t)!=="[object Object]")return!1;{let n=Object.getPrototypeOf(t);return n===null||n===Object.prototype}}function ij(t){return!!t&&typeof t=="string"}function kx(t){return typeof t=="boolean"}function Jie(t){return Object.prototype.toString.call(t)==="[object Promise]"}function Ex(t){return Array.isArray(t)?t.length>0:!!t}function Sx(t){return ij(t)?[t]:t}var nj=(()=>{let n=class n{constructor(){this.permissionsSource=new tt({}),this.permissions$=this.permissionsSource.asObservable()}};n.\u0275fac=function(r){return new(r||n)},n.\u0275prov=O({token:n,factory:n.\u0275fac});let t=n;return t})(),VS=new T("USE_PERMISSIONS_STORE"),_u=(()=>{let n=class n{constructor(i=!1,r){this.isolate=i,this.permissionsStore=r,this.permissionsSource=this.isolate?new tt({}):this.permissionsStore.permissionsSource,this.permissions$=this.permissionsSource.asObservable()}flushPermissions(){this.permissionsSource.next({})}hasPermission(i){return!i||Array.isArray(i)&&i.length===0?Promise.resolve(!0):(i=Sx(i),this.hasArrayPermission(i))}loadPermissions(i,r){let o=i.reduce((a,s)=>this.reducePermission(a,s,r),{});this.permissionsSource.next(o)}addPermission(i,r){if(Array.isArray(i)){let o=i.reduce((a,s)=>this.reducePermission(a,s,r),this.permissionsSource.value);this.permissionsSource.next(o)}else{let o=this.reducePermission(this.permissionsSource.value,i,r);this.permissionsSource.next(o)}}removePermission(i){let r=M({},this.permissionsSource.value);delete r[i],this.permissionsSource.next(r)}getPermission(i){return this.permissionsSource.value[i]}getPermissions(){return this.permissionsSource.value}reducePermission(i,r,o){return o&&io(o)?De(M({},i),{[r]:{name:r,validationFunction:o}}):De(M({},i),{[r]:{name:r}})}hasArrayPermission(i){let r=i.map(o=>{if(this.hasPermissionValidationFunction(o)){let a=this.permissionsSource.value[o].validationFunction,s=M({},this.permissionsSource.value);return Q(null).pipe(se(()=>a(o,s)),$e(l=>kx(l)?Q(l):l),fi(()=>Q(!1)))}return Q(!!this.permissionsSource.value[o])});return Ot(r).pipe(uo(),gn(o=>o!==!1,!1),se(o=>o!==!1)).toPromise().then(o=>o)}hasPermissionValidationFunction(i){return!!this.permissionsSource.value[i]&&!!this.permissionsSource.value[i].validationFunction&&io(this.permissionsSource.value[i].validationFunction)}};n.\u0275fac=function(r){return new(r||n)(pe(VS),pe(nj))},n.\u0275prov=O({token:n,factory:n.\u0275fac});let t=n;return t})(),Tx=class{constructor(){this.rolesSource=new tt({}),this.roles$=this.rolesSource.asObservable()}},BS=new T("USE_ROLES_STORE"),Th=(()=>{let n=class n{constructor(i=!1,r,o){this.isolate=i,this.rolesStore=r,this.permissionsService=o,this.rolesSource=this.isolate?new tt({}):this.rolesStore.rolesSource,this.roles$=this.rolesSource.asObservable()}addRole(i,r){let o=De(M({},this.rolesSource.value),{[i]:{name:i,validationFunction:r}});this.rolesSource.next(o)}addRoleWithPermissions(i,r){this.permissionsService.addPermission(r),this.addRole(i,r)}addRoles(i){Object.keys(i).forEach((r,o)=>{this.addRole(r,i[r])})}addRolesWithPermissions(i){Object.keys(i).forEach((r,o)=>{this.addRoleWithPermissions(r,i[r])})}flushRoles(){this.rolesSource.next({})}flushRolesAndPermissions(){this.flushRoles(),this.permissionsService.flushPermissions()}removeRole(i){let r=M({},this.rolesSource.value);delete r[i],this.rolesSource.next(r)}getRoles(){return this.rolesSource.value}getRole(i){return this.rolesSource.value[i]}hasOnlyRoles(i){return!i||Array.isArray(i)&&i.length===0?Promise.resolve(!0):(i=Sx(i),Promise.all([this.hasRoleKey(i),this.hasRolePermission(this.rolesSource.value,i)]).then(([o,a])=>o||a))}hasRoleKey(i){let r=i.map(o=>{if(!!this.rolesSource.value[o]&&!!this.rolesSource.value[o].validationFunction&&io(this.rolesSource.value[o].validationFunction)&&!Jie(this.rolesSource.value[o].validationFunction)){let s=this.rolesSource.value[o].validationFunction,l=M({},this.rolesSource.value);return Q(null).pipe(se(()=>s(o,l)),$e(c=>kx(c)?Q(c):c),fi(()=>Q(!1)))}return Q(!1)});return Ot(r).pipe(uo(),gn(o=>o!==!1,!1),se(o=>o!==!1)).toPromise().then(o=>o)}hasRolePermission(i,r){return Ot(r).pipe(Mt(o=>i[o]&&Array.isArray(i[o].validationFunction)?Ot(i[o].validationFunction).pipe(Mt(a=>this.permissionsService.hasPermission(a)),Yw(a=>a===!0)):Q(!1)),gn(o=>o===!0,!1)).toPromise()}};n.\u0275fac=function(r){return new(r||n)(pe(BS),pe(Tx),pe(_u))},n.\u0275prov=O({token:n,factory:n.\u0275fac});let t=n;return t})(),Ih=(()=>{let n=class n{constructor(){this.permissionsAuthorized=new U,this.permissionsUnauthorized=new U,this.firstMergeUnusedRun=1,this.permissionsService=u(_u),this.configurationService=u(LS),this.rolesService=u(Th),this.viewContainer=u(nt),this.changeDetector=u(ye),this.templateRef=u(te)}ngOnInit(){this.viewContainer.clear(),this.initPermissionSubscription=this.validateExceptOnlyPermissions()}ngOnChanges(i){let r=i.ngxPermissionsOnly,o=i.ngxPermissionsExcept;if(r||o){if(r&&r.firstChange||o&&o.firstChange)return;Je(this.permissionsService.permissions$,this.rolesService.roles$).pipe(Ya(this.firstMergeUnusedRun),lt(1)).subscribe(()=>{if(Ex(this.ngxPermissionsExcept)){this.validateExceptAndOnlyPermissions();return}if(Ex(this.ngxPermissionsOnly)){this.validateOnlyPermissions();return}this.handleAuthorisedPermission(this.getAuthorisedTemplates())})}}ngOnDestroy(){this.initPermissionSubscription&&this.initPermissionSubscription.unsubscribe()}validateExceptOnlyPermissions(){return Je(this.permissionsService.permissions$,this.rolesService.roles$).pipe(Ya(this.firstMergeUnusedRun)).subscribe(()=>{if(Ex(this.ngxPermissionsExcept)){this.validateExceptAndOnlyPermissions();return}if(Ex(this.ngxPermissionsOnly)){this.validateOnlyPermissions();return}this.handleAuthorisedPermission(this.getAuthorisedTemplates())})}validateExceptAndOnlyPermissions(){Promise.all([this.permissionsService.hasPermission(this.ngxPermissionsExcept),this.rolesService.hasOnlyRoles(this.ngxPermissionsExcept)]).then(([i,r])=>{if(i||r){this.handleUnauthorisedPermission(this.ngxPermissionsExceptElse||this.ngxPermissionsElse);return}if(this.ngxPermissionsOnly)throw!1;this.handleAuthorisedPermission(this.ngxPermissionsExceptThen||this.ngxPermissionsThen||this.templateRef)}).catch(()=>{this.ngxPermissionsOnly?this.validateOnlyPermissions():this.handleAuthorisedPermission(this.ngxPermissionsExceptThen||this.ngxPermissionsThen||this.templateRef)})}validateOnlyPermissions(){Promise.all([this.permissionsService.hasPermission(this.ngxPermissionsOnly),this.rolesService.hasOnlyRoles(this.ngxPermissionsOnly)]).then(([i,r])=>{i||r?this.handleAuthorisedPermission(this.ngxPermissionsOnlyThen||this.ngxPermissionsThen||this.templateRef):this.handleUnauthorisedPermission(this.ngxPermissionsOnlyElse||this.ngxPermissionsElse)}).catch(()=>{this.handleUnauthorisedPermission(this.ngxPermissionsOnlyElse||this.ngxPermissionsElse)})}handleUnauthorisedPermission(i){if(!(kx(this.currentAuthorizedState)&&!this.currentAuthorizedState)){if(this.currentAuthorizedState=!1,this.permissionsUnauthorized.emit(),this.getUnAuthorizedStrategyInput()){this.applyStrategyAccordingToStrategyType(this.getUnAuthorizedStrategyInput());return}this.configurationService.onUnAuthorisedDefaultStrategy&&!this.elseBlockDefined()?this.applyStrategy(this.configurationService.onUnAuthorisedDefaultStrategy):this.showTemplateBlockInView(i)}}handleAuthorisedPermission(i){if(!(kx(this.currentAuthorizedState)&&this.currentAuthorizedState)){if(this.currentAuthorizedState=!0,this.permissionsAuthorized.emit(),this.getAuthorizedStrategyInput()){this.applyStrategyAccordingToStrategyType(this.getAuthorizedStrategyInput());return}this.configurationService.onAuthorisedDefaultStrategy&&!this.thenBlockDefined()?this.applyStrategy(this.configurationService.onAuthorisedDefaultStrategy):this.showTemplateBlockInView(i)}}applyStrategyAccordingToStrategyType(i){if(ij(i)){this.applyStrategy(i);return}if(io(i)){this.showTemplateBlockInView(this.templateRef),i(this.templateRef);return}}showTemplateBlockInView(i){this.viewContainer.clear(),i&&(this.viewContainer.createEmbeddedView(i),this.changeDetector.markForCheck())}getAuthorisedTemplates(){return this.ngxPermissionsOnlyThen||this.ngxPermissionsExceptThen||this.ngxPermissionsThen||this.templateRef}elseBlockDefined(){return!!this.ngxPermissionsExceptElse||!!this.ngxPermissionsElse}thenBlockDefined(){return!!this.ngxPermissionsExceptThen||!!this.ngxPermissionsThen}getAuthorizedStrategyInput(){return this.ngxPermissionsOnlyAuthorisedStrategy||this.ngxPermissionsExceptAuthorisedStrategy||this.ngxPermissionsAuthorisedStrategy}getUnAuthorizedStrategyInput(){return this.ngxPermissionsOnlyUnauthorisedStrategy||this.ngxPermissionsExceptUnauthorisedStrategy||this.ngxPermissionsUnauthorisedStrategy}applyStrategy(i){if(i===Mx.SHOW){this.showTemplateBlockInView(this.templateRef);return}if(i===Mx.REMOVE){this.viewContainer.clear();return}let r=this.configurationService.getStrategy(i);this.showTemplateBlockInView(this.templateRef),r(this.templateRef)}};n.\u0275fac=function(r){return new(r||n)},n.\u0275dir=F({type:n,selectors:[["","ngxPermissionsOnly",""],["","ngxPermissionsExcept",""]],inputs:{ngxPermissionsOnly:"ngxPermissionsOnly",ngxPermissionsOnlyThen:"ngxPermissionsOnlyThen",ngxPermissionsOnlyElse:"ngxPermissionsOnlyElse",ngxPermissionsExcept:"ngxPermissionsExcept",ngxPermissionsExceptElse:"ngxPermissionsExceptElse",ngxPermissionsExceptThen:"ngxPermissionsExceptThen",ngxPermissionsThen:"ngxPermissionsThen",ngxPermissionsElse:"ngxPermissionsElse",ngxPermissionsOnlyAuthorisedStrategy:"ngxPermissionsOnlyAuthorisedStrategy",ngxPermissionsOnlyUnauthorisedStrategy:"ngxPermissionsOnlyUnauthorisedStrategy",ngxPermissionsExceptUnauthorisedStrategy:"ngxPermissionsExceptUnauthorisedStrategy",ngxPermissionsExceptAuthorisedStrategy:"ngxPermissionsExceptAuthorisedStrategy",ngxPermissionsUnauthorisedStrategy:"ngxPermissionsUnauthorisedStrategy",ngxPermissionsAuthorisedStrategy:"ngxPermissionsAuthorisedStrategy"},outputs:{permissionsAuthorized:"permissionsAuthorized",permissionsUnauthorized:"permissionsUnauthorized"},standalone:!1,features:[Ae]});let t=n;return t})(),ene="default";var ej=(()=>{let n=class n{constructor(i,r,o){this.permissionsService=i,this.rolesService=r,this.router=o}canActivate(i,r){return this.hasPermissions(i,r)}canActivateChild(i,r){return this.hasPermissions(i,r)}canLoad(i){return this.hasPermissions(i)}canMatch(i){return this.hasPermissions(i)}hasPermissions(i,r){let o=i&&i.data?i.data.permissions:{},a=this.transformPermission(o,i,r);return this.isParameterAvailable(a.except)?this.passingExceptPermissionsValidation(a,i,r):this.isParameterAvailable(a.only)?this.passingOnlyPermissionsValidation(a,i,r):!0}transformPermission(i,r,o){let a=io(i.only)?i.only(r,o):Sx(i.only),s=io(i.except)?i.except(r,o):Sx(i.except),l=i.redirectTo;return{only:a,except:s,redirectTo:l}}isParameterAvailable(i){return!!i&&i.length>0}passingExceptPermissionsValidation(i,r,o){if(i.redirectTo&&(io(i.redirectTo)||FS(i.redirectTo)&&!this.isRedirectionWithParameters(i.redirectTo))){let a="";return Ot(i.except).pipe(Mt(s=>Ga([this.permissionsService.hasPermission(s),this.rolesService.hasOnlyRoles(s)]).pipe(Be(l=>{l.every(d=>d===!1)||(a=s)}))),gn(s=>s.some(l=>l===!0),!1),Mt(s=>a?(this.handleRedirectOfFailedPermission(i,a,r,o),Q(!1)):!s&&i.only?this.onlyRedirectCheck(i,r,o):Q(!s))).toPromise()}return Promise.all([this.permissionsService.hasPermission(i.except),this.rolesService.hasOnlyRoles(i.except)]).then(([a,s])=>a||s?(i.redirectTo&&this.redirectToAnotherRoute(i.redirectTo,r,o),!1):i.only?this.checkOnlyPermissions(i,r,o):!0)}redirectToAnotherRoute(i,r,o,a){let s=io(i)?i(a,r,o):i;if(this.isRedirectionWithParameters(s)){s.navigationCommands=this.transformNavigationCommands(s.navigationCommands,r,o),s.navigationExtras=this.transformNavigationExtras(s.navigationExtras,r,o),this.router.navigate(s.navigationCommands,s.navigationExtras);return}Array.isArray(s)?this.router.navigate(s):this.router.navigate([s])}isRedirectionWithParameters(i){return FS(i)&&(!!i.navigationCommands||!!i.navigationExtras)}transformNavigationCommands(i,r,o){return io(i)?i(r,o):i}transformNavigationExtras(i,r,o){return io(i)?i(r,o):i}onlyRedirectCheck(i,r,o){let a="";return Ot(i.only).pipe(Mt(s=>Ga([this.permissionsService.hasPermission(s),this.rolesService.hasOnlyRoles(s)]).pipe(Be(l=>{l.every(d=>d===!1)&&(a=s)}))),gn(s=>io(i.redirectTo)?s.some(l=>l===!0):s.every(l=>l===!1),!1),Mt(s=>io(i.redirectTo)?s?Q(!0):(this.handleRedirectOfFailedPermission(i,a,r,o),Q(!1)):(a&&this.handleRedirectOfFailedPermission(i,a,r,o),Q(!s)))).toPromise()}handleRedirectOfFailedPermission(i,r,o,a){this.isFailedPermissionPropertyOfRedirectTo(i,r)?this.redirectToAnotherRoute(i.redirectTo[r],o,a,r):io(i.redirectTo)?this.redirectToAnotherRoute(i.redirectTo,o,a,r):this.redirectToAnotherRoute(i.redirectTo[ene],o,a,r)}isFailedPermissionPropertyOfRedirectTo(i,r){return!!i.redirectTo&&i.redirectTo[r]}checkOnlyPermissions(i,r,o){let a=M({},i);return Promise.all([this.permissionsService.hasPermission(a.only),this.rolesService.hasOnlyRoles(a.only)]).then(([s,l])=>s||l?!0:(a.redirectTo&&this.redirectToAnotherRoute(a.redirectTo,r,o),!1))}passingOnlyPermissionsValidation(i,r,o){return io(i.redirectTo)||FS(i.redirectTo)&&!this.isRedirectionWithParameters(i.redirectTo)?this.onlyRedirectCheck(i,r,o):this.checkOnlyPermissions(i,r,o)}};n.\u0275fac=function(r){return new(r||n)(pe(_u),pe(Th),pe(Re))},n.\u0275prov=O({token:n,factory:n.\u0275fac});let t=n;return t})();var xc=(()=>{let n=class n{static forRoot(i={}){return{ngModule:n,providers:[nj,Tx,tj,_u,ej,Th,LS,{provide:VS,useValue:i.permissionsIsolate},{provide:BS,useValue:i.rolesIsolate},{provide:NS,useValue:i.configurationIsolate}]}}static forChild(i={}){return{ngModule:n,providers:[{provide:VS,useValue:i.permissionsIsolate},{provide:BS,useValue:i.rolesIsolate},{provide:NS,useValue:i.configurationIsolate},LS,_u,Th,ej]}}};n.\u0275fac=function(r){return new(r||n)},n.\u0275mod=ee({type:n}),n.\u0275inj=J({});let t=n;return t})();function Ng(t){return t+.5|0}var Cc=(t,n,e)=>Math.max(Math.min(t,e),n);function Pg(t){return Cc(Ng(t*2.55),0,255)}function wc(t){return Cc(Ng(t*255),0,255)}function pl(t){return Cc(Ng(t/2.55)/100,0,1)}function rj(t){return Cc(Ng(t*100),0,100)}var na={0:0,1:1,2:2,3:3,4:4,5:5,6:6,7:7,8:8,9:9,A:10,B:11,C:12,D:13,E:14,F:15,a:10,b:11,c:12,d:13,e:14,f:15},zS=[..."0123456789ABCDEF"],tne=t=>zS[t&15],ine=t=>zS[(t&240)>>4]+zS[t&15],Ix=t=>(t&240)>>4===(t&15),nne=t=>Ix(t.r)&&Ix(t.g)&&Ix(t.b)&&Ix(t.a);function rne(t){var n=t.length,e;return t[0]==="#"&&(n===4||n===5?e={r:255&na[t[1]]*17,g:255&na[t[2]]*17,b:255&na[t[3]]*17,a:n===5?na[t[4]]*17:255}:(n===7||n===9)&&(e={r:na[t[1]]<<4|na[t[2]],g:na[t[3]]<<4|na[t[4]],b:na[t[5]]<<4|na[t[6]],a:n===9?na[t[7]]<<4|na[t[8]]:255})),e}var one=(t,n)=>t<255?n(t):"";function ane(t){var n=nne(t)?tne:ine;return t?"#"+n(t.r)+n(t.g)+n(t.b)+one(t.a,n):void 0}var sne=/^(hsla?|hwb|hsv)\(\s*([-+.e\d]+)(?:deg)?[\s,]+([-+.e\d]+)%[\s,]+([-+.e\d]+)%(?:[\s,]+([-+.e\d]+)(%)?)?\s*\)$/;function lj(t,n,e){let i=n*Math.min(e,1-e),r=(o,a=(o+t/30)%12)=>e-i*Math.max(Math.min(a-3,9-a,1),-1);return[r(0),r(8),r(4)]}function lne(t,n,e){let i=(r,o=(r+t/60)%6)=>e-e*n*Math.max(Math.min(o,4-o,1),0);return[i(5),i(3),i(1)]}function cne(t,n,e){let i=lj(t,1,.5),r;for(n+e>1&&(r=1/(n+e),n*=r,e*=r),r=0;r<3;r++)i[r]*=1-n-e,i[r]+=n;return i}function dne(t,n,e,i,r){return t===r?(n-e)/i+(n.5?d/(2-o-a):d/(o+a),l=dne(e,i,r,d,o),l=l*60+.5),[l|0,c||0,s]}function $S(t,n,e,i){return(Array.isArray(n)?t(n[0],n[1],n[2]):t(n,e,i)).map(wc)}function WS(t,n,e){return $S(lj,t,n,e)}function une(t,n,e){return $S(cne,t,n,e)}function mne(t,n,e){return $S(lne,t,n,e)}function cj(t){return(t%360+360)%360}function hne(t){let n=sne.exec(t),e=255,i;if(!n)return;n[5]!==i&&(e=n[6]?Pg(+n[5]):wc(+n[5]));let r=cj(+n[2]),o=+n[3]/100,a=+n[4]/100;return n[1]==="hwb"?i=une(r,o,a):n[1]==="hsv"?i=mne(r,o,a):i=WS(r,o,a),{r:i[0],g:i[1],b:i[2],a:e}}function pne(t,n){var e=US(t);e[0]=cj(e[0]+n),e=WS(e),t.r=e[0],t.g=e[1],t.b=e[2]}function fne(t){if(!t)return;let n=US(t),e=n[0],i=rj(n[1]),r=rj(n[2]);return t.a<255?`hsla(${e}, ${i}%, ${r}%, ${pl(t.a)})`:`hsl(${e}, ${i}%, ${r}%)`}var oj={x:"dark",Z:"light",Y:"re",X:"blu",W:"gr",V:"medium",U:"slate",A:"ee",T:"ol",S:"or",B:"ra",C:"lateg",D:"ights",R:"in",Q:"turquois",E:"hi",P:"ro",O:"al",N:"le",M:"de",L:"yello",F:"en",K:"ch",G:"arks",H:"ea",I:"ightg",J:"wh"},aj={OiceXe:"f0f8ff",antiquewEte:"faebd7",aqua:"ffff",aquamarRe:"7fffd4",azuY:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"0",blanKedOmond:"ffebcd",Xe:"ff",XeviTet:"8a2be2",bPwn:"a52a2a",burlywood:"deb887",caMtXe:"5f9ea0",KartYuse:"7fff00",KocTate:"d2691e",cSO:"ff7f50",cSnflowerXe:"6495ed",cSnsilk:"fff8dc",crimson:"dc143c",cyan:"ffff",xXe:"8b",xcyan:"8b8b",xgTMnPd:"b8860b",xWay:"a9a9a9",xgYF:"6400",xgYy:"a9a9a9",xkhaki:"bdb76b",xmagFta:"8b008b",xTivegYF:"556b2f",xSange:"ff8c00",xScEd:"9932cc",xYd:"8b0000",xsOmon:"e9967a",xsHgYF:"8fbc8f",xUXe:"483d8b",xUWay:"2f4f4f",xUgYy:"2f4f4f",xQe:"ced1",xviTet:"9400d3",dAppRk:"ff1493",dApskyXe:"bfff",dimWay:"696969",dimgYy:"696969",dodgerXe:"1e90ff",fiYbrick:"b22222",flSOwEte:"fffaf0",foYstWAn:"228b22",fuKsia:"ff00ff",gaRsbSo:"dcdcdc",ghostwEte:"f8f8ff",gTd:"ffd700",gTMnPd:"daa520",Way:"808080",gYF:"8000",gYFLw:"adff2f",gYy:"808080",honeyMw:"f0fff0",hotpRk:"ff69b4",RdianYd:"cd5c5c",Rdigo:"4b0082",ivSy:"fffff0",khaki:"f0e68c",lavFMr:"e6e6fa",lavFMrXsh:"fff0f5",lawngYF:"7cfc00",NmoncEffon:"fffacd",ZXe:"add8e6",ZcSO:"f08080",Zcyan:"e0ffff",ZgTMnPdLw:"fafad2",ZWay:"d3d3d3",ZgYF:"90ee90",ZgYy:"d3d3d3",ZpRk:"ffb6c1",ZsOmon:"ffa07a",ZsHgYF:"20b2aa",ZskyXe:"87cefa",ZUWay:"778899",ZUgYy:"778899",ZstAlXe:"b0c4de",ZLw:"ffffe0",lime:"ff00",limegYF:"32cd32",lRF:"faf0e6",magFta:"ff00ff",maPon:"800000",VaquamarRe:"66cdaa",VXe:"cd",VScEd:"ba55d3",VpurpN:"9370db",VsHgYF:"3cb371",VUXe:"7b68ee",VsprRggYF:"fa9a",VQe:"48d1cc",VviTetYd:"c71585",midnightXe:"191970",mRtcYam:"f5fffa",mistyPse:"ffe4e1",moccasR:"ffe4b5",navajowEte:"ffdead",navy:"80",Tdlace:"fdf5e6",Tive:"808000",TivedBb:"6b8e23",Sange:"ffa500",SangeYd:"ff4500",ScEd:"da70d6",pOegTMnPd:"eee8aa",pOegYF:"98fb98",pOeQe:"afeeee",pOeviTetYd:"db7093",papayawEp:"ffefd5",pHKpuff:"ffdab9",peru:"cd853f",pRk:"ffc0cb",plum:"dda0dd",powMrXe:"b0e0e6",purpN:"800080",YbeccapurpN:"663399",Yd:"ff0000",Psybrown:"bc8f8f",PyOXe:"4169e1",saddNbPwn:"8b4513",sOmon:"fa8072",sandybPwn:"f4a460",sHgYF:"2e8b57",sHshell:"fff5ee",siFna:"a0522d",silver:"c0c0c0",skyXe:"87ceeb",UXe:"6a5acd",UWay:"708090",UgYy:"708090",snow:"fffafa",sprRggYF:"ff7f",stAlXe:"4682b4",tan:"d2b48c",teO:"8080",tEstN:"d8bfd8",tomato:"ff6347",Qe:"40e0d0",viTet:"ee82ee",JHt:"f5deb3",wEte:"ffffff",wEtesmoke:"f5f5f5",Lw:"ffff00",LwgYF:"9acd32"};function gne(){let t={},n=Object.keys(aj),e=Object.keys(oj),i,r,o,a,s;for(i=0;i>16&255,o>>8&255,o&255]}return t}var Ax;function _ne(t){Ax||(Ax=gne(),Ax.transparent=[0,0,0,0]);let n=Ax[t.toLowerCase()];return n&&{r:n[0],g:n[1],b:n[2],a:n.length===4?n[3]:255}}var bne=/^rgba?\(\s*([-+.\d]+)(%)?[\s,]+([-+.e\d]+)(%)?[\s,]+([-+.e\d]+)(%)?(?:[\s,/]+([-+.e\d]+)(%)?)?\s*\)$/;function vne(t){let n=bne.exec(t),e=255,i,r,o;if(n){if(n[7]!==i){let a=+n[7];e=n[8]?Pg(a):Cc(a*255,0,255)}return i=+n[1],r=+n[3],o=+n[5],i=255&(n[2]?Pg(i):Cc(i,0,255)),r=255&(n[4]?Pg(r):Cc(r,0,255)),o=255&(n[6]?Pg(o):Cc(o,0,255)),{r:i,g:r,b:o,a:e}}}function yne(t){return t&&(t.a<255?`rgba(${t.r}, ${t.g}, ${t.b}, ${pl(t.a)})`:`rgb(${t.r}, ${t.g}, ${t.b})`)}var HS=t=>t<=.0031308?t*12.92:Math.pow(t,1/2.4)*1.055-.055,Ah=t=>t<=.04045?t/12.92:Math.pow((t+.055)/1.055,2.4);function xne(t,n,e){let i=Ah(pl(t.r)),r=Ah(pl(t.g)),o=Ah(pl(t.b));return{r:wc(HS(i+e*(Ah(pl(n.r))-i))),g:wc(HS(r+e*(Ah(pl(n.g))-r))),b:wc(HS(o+e*(Ah(pl(n.b))-o))),a:t.a+e*(n.a-t.a)}}function Ox(t,n,e){if(t){let i=US(t);i[n]=Math.max(0,Math.min(i[n]+i[n]*e,n===0?360:1)),i=WS(i),t.r=i[0],t.g=i[1],t.b=i[2]}}function dj(t,n){return t&&Object.assign(n||{},t)}function sj(t){var n={r:0,g:0,b:0,a:255};return Array.isArray(t)?t.length>=3&&(n={r:t[0],g:t[1],b:t[2],a:255},t.length>3&&(n.a=wc(t[3]))):(n=dj(t,{r:0,g:0,b:0,a:1}),n.a=wc(n.a)),n}function Cne(t){return t.charAt(0)==="r"?vne(t):hne(t)}var Fg=class t{constructor(n){if(n instanceof t)return n;let e=typeof n,i;e==="object"?i=sj(n):e==="string"&&(i=rne(n)||_ne(n)||Cne(n)),this._rgb=i,this._valid=!!i}get valid(){return this._valid}get rgb(){var n=dj(this._rgb);return n&&(n.a=pl(n.a)),n}set rgb(n){this._rgb=sj(n)}rgbString(){return this._valid?yne(this._rgb):void 0}hexString(){return this._valid?ane(this._rgb):void 0}hslString(){return this._valid?fne(this._rgb):void 0}mix(n,e){if(n){let i=this.rgb,r=n.rgb,o,a=e===o?.5:e,s=2*a-1,l=i.a-r.a,c=((s*l===-1?s:(s+l)/(1+s*l))+1)/2;o=1-c,i.r=255&c*i.r+o*r.r+.5,i.g=255&c*i.g+o*r.g+.5,i.b=255&c*i.b+o*r.b+.5,i.a=a*i.a+(1-a)*r.a,this.rgb=i}return this}interpolate(n,e){return n&&(this._rgb=xne(this._rgb,n._rgb,e)),this}clone(){return new t(this.rgb)}alpha(n){return this._rgb.a=wc(n),this}clearer(n){let e=this._rgb;return e.a*=1-n,this}greyscale(){let n=this._rgb,e=Ng(n.r*.3+n.g*.59+n.b*.11);return n.r=n.g=n.b=e,this}opaquer(n){let e=this._rgb;return e.a*=1+n,this}negate(){let n=this._rgb;return n.r=255-n.r,n.g=255-n.g,n.b=255-n.b,this}lighten(n){return Ox(this._rgb,2,n),this}darken(n){return Ox(this._rgb,2,-n),this}saturate(n){return Ox(this._rgb,1,n),this}desaturate(n){return Ox(this._rgb,1,-n),this}rotate(n){return pne(this._rgb,n),this}};function Ts(){}var xj=(()=>{let t=0;return()=>t++})();function Et(t){return t==null}function Ei(t){if(Array.isArray&&Array.isArray(t))return!0;let n=Object.prototype.toString.call(t);return n.slice(0,7)==="[object"&&n.slice(-6)==="Array]"}function St(t){return t!==null&&Object.prototype.toString.call(t)==="[object Object]"}function Gi(t){return(typeof t=="number"||t instanceof Number)&&isFinite(+t)}function no(t,n){return Gi(t)?t:n}function st(t,n){return typeof t>"u"?n:t}var Cj=(t,n)=>typeof t=="string"&&t.endsWith("%")?parseFloat(t)/100:+t/n,QS=(t,n)=>typeof t=="string"&&t.endsWith("%")?parseFloat(t)/100*n:+t;function yi(t,n,e){if(t&&typeof t.call=="function")return t.apply(e,n)}function ii(t,n,e,i){let r,o,a;if(Ei(t))if(o=t.length,i)for(r=o-1;r>=0;r--)n.call(e,t[r],r);else for(r=0;rt,x:t=>t.x,y:t=>t.y};function Ene(t){let n=t.split("."),e=[],i="";for(let r of n)i+=r,i.endsWith("\\")?i=i.slice(0,-1)+".":(e.push(i),i="");return e}function Mne(t){let n=Ene(t);return e=>{for(let i of n){if(i==="")break;e=e&&e[i]}return e}}function _l(t,n){return(uj[n]||(uj[n]=Mne(n)))(t)}function jx(t){return t.charAt(0).toUpperCase()+t.slice(1)}var Nh=t=>typeof t<"u",fl=t=>typeof t=="function",KS=(t,n)=>{if(t.size!==n.size)return!1;for(let e of t)if(!n.has(e))return!1;return!0};function Dj(t){return t.type==="mouseup"||t.type==="click"||t.type==="contextmenu"}var Ht=Math.PI,Mi=2*Ht,kne=Mi+Ht,Lx=Number.POSITIVE_INFINITY,Sne=Ht/180,Zi=Ht/2,bu=Ht/4,mj=Ht*2/3,gl=Math.log10,Ba=Math.sign;function Lh(t,n,e){return Math.abs(t-n)r-o).pop(),n}function Tne(t){return typeof t=="symbol"||typeof t=="object"&&t!==null&&!(Symbol.toPrimitive in t||"toString"in t||"valueOf"in t)}function xu(t){return!Tne(t)&&!isNaN(parseFloat(t))&&isFinite(t)}function Mj(t,n){let e=Math.round(t);return e-n<=t&&e+n>=t}function XS(t,n,e){let i,r,o;for(i=0,r=t.length;il&&c=Math.min(n,e)-i&&t<=Math.max(n,e)+i}function zx(t,n,e){e=e||(a=>t[a]1;)o=r+i>>1,e(o)?r=o:i=o;return{lo:r,hi:i}}var ks=(t,n,e,i)=>zx(t,e,i?r=>{let o=t[r][n];return ot[r][n]zx(t,e,i=>t[i][n]>=e);function Tj(t,n,e){let i=0,r=t.length;for(;ii&&t[r-1]>e;)r--;return i>0||r{let i="_onData"+jx(e),r=t[e];Object.defineProperty(t,e,{configurable:!0,enumerable:!1,value(...o){let a=r.apply(this,o);return t._chartjs.listeners.forEach(s=>{typeof s[i]=="function"&&s[i](...o)}),a}})})}function tT(t,n){let e=t._chartjs;if(!e)return;let i=e.listeners,r=i.indexOf(n);r!==-1&&i.splice(r,1),!(i.length>0)&&(Ij.forEach(o=>{delete t[o]}),delete t._chartjs)}function iT(t){let n=new Set(t);return n.size===t.length?t:Array.from(n)}var nT=(function(){return typeof window>"u"?function(t){return t()}:window.requestAnimationFrame})();function rT(t,n){let e=[],i=!1;return function(...r){e=r,i||(i=!0,nT.call(window,()=>{i=!1,t.apply(n,e)}))}}function Oj(t,n){let e;return function(...i){return n?(clearTimeout(e),e=setTimeout(t,n,i)):t.apply(this,i),n}}var Ux=t=>t==="start"?"left":t==="end"?"right":"center",ar=(t,n,e)=>t==="start"?n:t==="end"?e:(n+e)/2,Rj=(t,n,e,i)=>t===(i?"left":"right")?e:t==="center"?(n+e)/2:n;function oT(t,n,e){let i=n.length,r=0,o=i;if(t._sorted){let{iScale:a,vScale:s,_parsed:l}=t,c=t.dataset&&t.dataset.options?t.dataset.options.spanGaps:null,d=a.axis,{min:m,max:f,minDefined:b,maxDefined:v}=a.getUserBounds();if(b){if(r=Math.min(ks(l,d,m).lo,e?i:ks(n,d,a.getPixelForValue(m)).lo),c){let w=l.slice(0,r+1).reverse().findIndex(x=>!Et(x[s.axis]));r-=Math.max(0,w)}r=Dn(r,0,i-1)}if(v){let w=Math.max(ks(l,a.axis,f,!0).hi+1,e?0:ks(n,d,a.getPixelForValue(f),!0).hi+1);if(c){let x=l.slice(w-1).findIndex(D=>!Et(D[s.axis]));w+=Math.max(0,x)}o=Dn(w,r,i)-r}else o=i-r}return{start:r,count:o}}function aT(t){let{xScale:n,yScale:e,_scaleRanges:i}=t,r={xmin:n.min,xmax:n.max,ymin:e.min,ymax:e.max};if(!i)return t._scaleRanges=r,!0;let o=i.xmin!==n.min||i.xmax!==n.max||i.ymin!==e.min||i.ymax!==e.max;return Object.assign(i,r),o}var Rx=t=>t===0||t===1,hj=(t,n,e)=>-(Math.pow(2,10*(t-=1))*Math.sin((t-n)*Mi/e)),pj=(t,n,e)=>Math.pow(2,-10*t)*Math.sin((t-n)*Mi/e)+1,Oh={linear:t=>t,easeInQuad:t=>t*t,easeOutQuad:t=>-t*(t-2),easeInOutQuad:t=>(t/=.5)<1?.5*t*t:-.5*(--t*(t-2)-1),easeInCubic:t=>t*t*t,easeOutCubic:t=>(t-=1)*t*t+1,easeInOutCubic:t=>(t/=.5)<1?.5*t*t*t:.5*((t-=2)*t*t+2),easeInQuart:t=>t*t*t*t,easeOutQuart:t=>-((t-=1)*t*t*t-1),easeInOutQuart:t=>(t/=.5)<1?.5*t*t*t*t:-.5*((t-=2)*t*t*t-2),easeInQuint:t=>t*t*t*t*t,easeOutQuint:t=>(t-=1)*t*t*t*t+1,easeInOutQuint:t=>(t/=.5)<1?.5*t*t*t*t*t:.5*((t-=2)*t*t*t*t+2),easeInSine:t=>-Math.cos(t*Zi)+1,easeOutSine:t=>Math.sin(t*Zi),easeInOutSine:t=>-.5*(Math.cos(Ht*t)-1),easeInExpo:t=>t===0?0:Math.pow(2,10*(t-1)),easeOutExpo:t=>t===1?1:-Math.pow(2,-10*t)+1,easeInOutExpo:t=>Rx(t)?t:t<.5?.5*Math.pow(2,10*(t*2-1)):.5*(-Math.pow(2,-10*(t*2-1))+2),easeInCirc:t=>t>=1?t:-(Math.sqrt(1-t*t)-1),easeOutCirc:t=>Math.sqrt(1-(t-=1)*t),easeInOutCirc:t=>(t/=.5)<1?-.5*(Math.sqrt(1-t*t)-1):.5*(Math.sqrt(1-(t-=2)*t)+1),easeInElastic:t=>Rx(t)?t:hj(t,.075,.3),easeOutElastic:t=>Rx(t)?t:pj(t,.075,.3),easeInOutElastic(t){return Rx(t)?t:t<.5?.5*hj(t*2,.1125,.45):.5+.5*pj(t*2-1,.1125,.45)},easeInBack(t){return t*t*((1.70158+1)*t-1.70158)},easeOutBack(t){return(t-=1)*t*((1.70158+1)*t+1.70158)+1},easeInOutBack(t){let n=1.70158;return(t/=.5)<1?.5*(t*t*(((n*=1.525)+1)*t-n)):.5*((t-=2)*t*(((n*=1.525)+1)*t+n)+2)},easeInBounce:t=>1-Oh.easeOutBounce(1-t),easeOutBounce(t){return t<1/2.75?7.5625*t*t:t<2/2.75?7.5625*(t-=1.5/2.75)*t+.75:t<2.5/2.75?7.5625*(t-=2.25/2.75)*t+.9375:7.5625*(t-=2.625/2.75)*t+.984375},easeInOutBounce:t=>t<.5?Oh.easeInBounce(t*2)*.5:Oh.easeOutBounce(t*2-1)*.5+.5};function sT(t){if(t&&typeof t=="object"){let n=t.toString();return n==="[object CanvasPattern]"||n==="[object CanvasGradient]"}return!1}function lT(t){return sT(t)?t:new Fg(t)}function GS(t){return sT(t)?t:new Fg(t).saturate(.5).darken(.1).hexString()}var Ane=["x","y","borderWidth","radius","tension"],One=["color","borderColor","backgroundColor"];function Rne(t){t.set("animation",{delay:void 0,duration:1e3,easing:"easeOutQuart",fn:void 0,from:void 0,loop:void 0,to:void 0,type:void 0}),t.describe("animation",{_fallback:!1,_indexable:!1,_scriptable:n=>n!=="onProgress"&&n!=="onComplete"&&n!=="fn"}),t.set("animations",{colors:{type:"color",properties:One},numbers:{type:"number",properties:Ane}}),t.describe("animations",{_fallback:"animation"}),t.set("transitions",{active:{animation:{duration:400}},resize:{animation:{duration:0}},show:{animations:{colors:{from:"transparent"},visible:{type:"boolean",duration:0}}},hide:{animations:{colors:{to:"transparent"},visible:{type:"boolean",easing:"linear",fn:n=>n|0}}}})}function Pne(t){t.set("layout",{autoPadding:!0,padding:{top:0,right:0,bottom:0,left:0}})}var fj=new Map;function Fne(t,n){n=n||{};let e=t+JSON.stringify(n),i=fj.get(e);return i||(i=new Intl.NumberFormat(t,n),fj.set(e,i)),i}function Bh(t,n,e){return Fne(n,e).format(t)}var Pj={values(t){return Ei(t)?t:""+t},numeric(t,n,e){if(t===0)return"0";let i=this.chart.options.locale,r,o=t;if(e.length>1){let c=Math.max(Math.abs(e[0].value),Math.abs(e[e.length-1].value));(c<1e-4||c>1e15)&&(r="scientific"),o=Nne(t,e)}let a=gl(Math.abs(o)),s=isNaN(a)?1:Math.max(Math.min(-1*Math.floor(a),20),0),l={notation:r,minimumFractionDigits:s,maximumFractionDigits:s};return Object.assign(l,this.options.ticks.format),Bh(t,i,l)},logarithmic(t,n,e){if(t===0)return"0";let i=e[n].significand||t/Math.pow(10,Math.floor(gl(t)));return[1,2,3,5,10,15].includes(i)||n>.8*e.length?Pj.numeric.call(this,t,n,e):""}};function Nne(t,n){let e=n.length>3?n[2].value-n[1].value:n[1].value-n[0].value;return Math.abs(e)>=1&&t!==Math.floor(t)&&(e=t-Math.floor(t)),e}var jg={formatters:Pj};function Lne(t){t.set("scale",{display:!0,offset:!1,reverse:!1,beginAtZero:!1,bounds:"ticks",clip:!0,grace:0,grid:{display:!0,lineWidth:1,drawOnChartArea:!0,drawTicks:!0,tickLength:8,tickWidth:(n,e)=>e.lineWidth,tickColor:(n,e)=>e.color,offset:!1},border:{display:!0,dash:[],dashOffset:0,width:1},title:{display:!1,text:"",padding:{top:4,bottom:4}},ticks:{minRotation:0,maxRotation:50,mirror:!1,textStrokeWidth:0,textStrokeColor:"",padding:3,display:!0,autoSkip:!0,autoSkipPadding:3,labelOffset:0,callback:jg.formatters.values,minor:{},major:{},align:"center",crossAlign:"near",showLabelBackdrop:!1,backdropColor:"rgba(255, 255, 255, 0.75)",backdropPadding:2}}),t.route("scale.ticks","color","","color"),t.route("scale.grid","color","","borderColor"),t.route("scale.border","color","","borderColor"),t.route("scale.title","color","","color"),t.describe("scale",{_fallback:!1,_scriptable:n=>!n.startsWith("before")&&!n.startsWith("after")&&n!=="callback"&&n!=="parser",_indexable:n=>n!=="borderDash"&&n!=="tickBorderDash"&&n!=="dash"}),t.describe("scales",{_fallback:"scale"}),t.describe("scale.ticks",{_scriptable:n=>n!=="backdropPadding"&&n!=="callback",_indexable:n=>n!=="backdropPadding"})}var Mc=Object.create(null),$x=Object.create(null);function Lg(t,n){if(!n)return t;let e=n.split(".");for(let i=0,r=e.length;ii.chart.platform.getDevicePixelRatio(),this.elements={},this.events=["mousemove","mouseout","click","touchstart","touchmove"],this.font={family:"'Helvetica Neue', 'Helvetica', 'Arial', sans-serif",size:12,style:"normal",lineHeight:1.2,weight:null},this.hover={},this.hoverBackgroundColor=(i,r)=>GS(r.backgroundColor),this.hoverBorderColor=(i,r)=>GS(r.borderColor),this.hoverColor=(i,r)=>GS(r.color),this.indexAxis="x",this.interaction={mode:"nearest",intersect:!0,includeInvisible:!1},this.maintainAspectRatio=!0,this.onHover=null,this.onClick=null,this.parsing=!0,this.plugins={},this.responsive=!0,this.scale=void 0,this.scales={},this.showLine=!0,this.drawActiveElementsOnTop=!0,this.describe(n),this.apply(e)}set(n,e){return qS(this,n,e)}get(n){return Lg(this,n)}describe(n,e){return qS($x,n,e)}override(n,e){return qS(Mc,n,e)}route(n,e,i,r){let o=Lg(this,n),a=Lg(this,i),s="_"+e;Object.defineProperties(o,{[s]:{value:o[e],writable:!0},[e]:{enumerable:!0,get(){let l=this[s],c=a[r];return St(l)?Object.assign({},c,l):st(l,c)},set(l){this[s]=l}}})}apply(n){n.forEach(e=>e(this))}},xi=new YS({_scriptable:t=>!t.startsWith("on"),_indexable:t=>t!=="events",hover:{_fallback:"interaction"},interaction:{_scriptable:!1,_indexable:!1}},[Rne,Pne,Lne]);function Vne(t){return!t||Et(t.size)||Et(t.family)?null:(t.style?t.style+" ":"")+(t.weight?t.weight+" ":"")+t.size+"px "+t.family}function Vg(t,n,e,i,r){let o=n[r];return o||(o=n[r]=t.measureText(r).width,e.push(r)),o>i&&(i=o),i}function Fj(t,n,e,i){i=i||{};let r=i.data=i.data||{},o=i.garbageCollect=i.garbageCollect||[];i.font!==n&&(r=i.data={},o=i.garbageCollect=[],i.font=n),t.save(),t.font=n;let a=0,s=e.length,l,c,d,m,f;for(l=0;le.length){for(l=0;l0&&t.stroke()}}function Ss(t,n,e){return e=e||.5,!n||t&&t.x>n.left-e&&t.xn.top-e&&t.y0&&o.strokeColor!=="",l,c;for(t.save(),t.font=r.string,Bne(t,o),l=0;l+t||0;function Gx(t,n){let e={},i=St(n),r=i?Object.keys(n):n,o=St(t)?i?a=>st(t[a],t[n[a]]):a=>t[a]:()=>t;for(let a of r)e[a]=Wne(o(a));return e}function uT(t){return Gx(t,{top:"y",right:"x",bottom:"y",left:"x"})}function Tc(t){return Gx(t,["topLeft","topRight","bottomLeft","bottomRight"])}function sr(t){let n=uT(t);return n.width=n.left+n.right,n.height=n.top+n.bottom,n}function pn(t,n){t=t||{},n=n||xi.font;let e=st(t.size,n.size);typeof e=="string"&&(e=parseInt(e,10));let i=st(t.style,n.style);i&&!(""+i).match(Une)&&(console.warn('Invalid font style specified: "'+i+'"'),i=void 0);let r={family:st(t.family,n.family),lineHeight:$ne(st(t.lineHeight,n.lineHeight),e),size:e,style:i,weight:st(t.weight,n.weight),string:""};return r.string=Vne(r),r}function Hh(t,n,e,i){let r=!0,o,a,s;for(o=0,a=t.length;oe&&s===0?0:s+l;return{min:a(i,-Math.abs(o)),max:a(r,o)}}function bl(t,n){return Object.assign(Object.create(t),n)}function qx(t,n=[""],e,i,r=()=>t[0]){let o=e||t;typeof i>"u"&&(i=Hj("_fallback",t));let a={[Symbol.toStringTag]:"Object",_cacheable:!0,_scopes:t,_rootScopes:o,_fallback:i,_getTarget:r,override:s=>qx([s,...t],n,o,i)};return new Proxy(a,{deleteProperty(s,l){return delete s[l],delete s._keys,delete t[0][l],!0},get(s,l){return Bj(s,l,()=>Jne(l,n,t,s))},getOwnPropertyDescriptor(s,l){return Reflect.getOwnPropertyDescriptor(s._scopes[0],l)},getPrototypeOf(){return Reflect.getPrototypeOf(t[0])},has(s,l){return _j(s).includes(l)},ownKeys(s){return _j(s)},set(s,l,c){let d=s._storage||(s._storage=r());return s[l]=d[l]=c,delete s._keys,!0}})}function yu(t,n,e,i){let r={_cacheable:!1,_proxy:t,_context:n,_subProxy:e,_stack:new Set,_descriptors:mT(t,i),setContext:o=>yu(t,o,e,i),override:o=>yu(t.override(o),n,e,i)};return new Proxy(r,{deleteProperty(o,a){return delete o[a],delete t[a],!0},get(o,a,s){return Bj(o,a,()=>qne(o,a,s))},getOwnPropertyDescriptor(o,a){return o._descriptors.allKeys?Reflect.has(t,a)?{enumerable:!0,configurable:!0}:void 0:Reflect.getOwnPropertyDescriptor(t,a)},getPrototypeOf(){return Reflect.getPrototypeOf(t)},has(o,a){return Reflect.has(t,a)},ownKeys(){return Reflect.ownKeys(t)},set(o,a,s){return t[a]=s,delete o[a],!0}})}function mT(t,n={scriptable:!0,indexable:!0}){let{_scriptable:e=n.scriptable,_indexable:i=n.indexable,_allKeys:r=n.allKeys}=t;return{allKeys:r,scriptable:e,indexable:i,isScriptable:fl(e)?e:()=>e,isIndexable:fl(i)?i:()=>i}}var Gne=(t,n)=>t?t+jx(n):n,hT=(t,n)=>St(n)&&t!=="adapters"&&(Object.getPrototypeOf(n)===null||n.constructor===Object);function Bj(t,n,e){if(Object.prototype.hasOwnProperty.call(t,n)||n==="constructor")return t[n];let i=e();return t[n]=i,i}function qne(t,n,e){let{_proxy:i,_context:r,_subProxy:o,_descriptors:a}=t,s=i[n];return fl(s)&&a.isScriptable(n)&&(s=Yne(n,s,t,e)),Ei(s)&&s.length&&(s=Qne(n,s,t,a.isIndexable)),hT(n,s)&&(s=yu(s,r,o&&o[n],a)),s}function Yne(t,n,e,i){let{_proxy:r,_context:o,_subProxy:a,_stack:s}=e;if(s.has(t))throw new Error("Recursion detected: "+Array.from(s).join("->")+"->"+t);s.add(t);let l=n(o,a||i);return s.delete(t),hT(t,l)&&(l=pT(r._scopes,r,t,l)),l}function Qne(t,n,e,i){let{_proxy:r,_context:o,_subProxy:a,_descriptors:s}=e;if(typeof o.index<"u"&&i(t))return n[o.index%n.length];if(St(n[0])){let l=n,c=r._scopes.filter(d=>d!==l);n=[];for(let d of l){let m=pT(c,r,t,d);n.push(yu(m,o,a&&a[t],s))}}return n}function jj(t,n,e){return fl(t)?t(n,e):t}var Kne=(t,n)=>t===!0?n:typeof t=="string"?_l(n,t):void 0;function Zne(t,n,e,i,r){for(let o of n){let a=Kne(e,o);if(a){t.add(a);let s=jj(a._fallback,e,r);if(typeof s<"u"&&s!==e&&s!==i)return s}else if(a===!1&&typeof i<"u"&&e!==i)return null}return!1}function pT(t,n,e,i){let r=n._rootScopes,o=jj(n._fallback,e,i),a=[...t,...r],s=new Set;s.add(i);let l=gj(s,a,e,o||e,i);return l===null||typeof o<"u"&&o!==e&&(l=gj(s,a,o,l,i),l===null)?!1:qx(Array.from(s),[""],r,o,()=>Xne(n,e,i))}function gj(t,n,e,i,r){for(;e;)e=Zne(t,n,e,i,r);return e}function Xne(t,n,e){let i=t._getTarget();n in i||(i[n]={});let r=i[n];return Ei(r)&&St(e)?e:r||{}}function Jne(t,n,e,i){let r;for(let o of n)if(r=Hj(Gne(o,t),e),typeof r<"u")return hT(t,r)?pT(e,i,t,r):r}function Hj(t,n){for(let e of n){if(!e)continue;let i=e[t];if(typeof i<"u")return i}}function _j(t){let n=t._keys;return n||(n=t._keys=ere(t._scopes)),n}function ere(t){let n=new Set;for(let e of t)for(let i of Object.keys(e).filter(r=>!r.startsWith("_")))n.add(i);return Array.from(n)}function fT(t,n,e,i){let{iScale:r}=t,{key:o="r"}=this._parsing,a=new Array(i),s,l,c,d;for(s=0,l=i;snt==="x"?"y":"x";function ire(t,n,e,i){let r=t.skip?n:t,o=n,a=e.skip?n:e,s=Vx(o,r),l=Vx(a,o),c=s/(s+l),d=l/(s+l);c=isNaN(c)?0:c,d=isNaN(d)?0:d;let m=i*c,f=i*d;return{previous:{x:o.x-m*(a.x-r.x),y:o.y-m*(a.y-r.y)},next:{x:o.x+f*(a.x-r.x),y:o.y+f*(a.y-r.y)}}}function nre(t,n,e){let i=t.length,r,o,a,s,l,c=Ph(t,0);for(let d=0;d!c.skip)),n.cubicInterpolationMode==="monotone")ore(t,r);else{let c=i?t[t.length-1]:t[0];for(o=0,a=t.length;ot.ownerDocument.defaultView.getComputedStyle(t,null);function sre(t,n){return Kx(t).getPropertyValue(n)}var lre=["top","right","bottom","left"];function vu(t,n,e){let i={};e=e?"-"+e:"";for(let r=0;r<4;r++){let o=lre[r];i[o]=parseFloat(t[n+"-"+o+e])||0}return i.width=i.left+i.right,i.height=i.top+i.bottom,i}var cre=(t,n,e)=>(t>0||n>0)&&(!e||!e.shadowRoot);function dre(t,n){let e=t.touches,i=e&&e.length?e[0]:t,{offsetX:r,offsetY:o}=i,a=!1,s,l;if(cre(r,o,t.target))s=r,l=o;else{let c=n.getBoundingClientRect();s=i.clientX-c.left,l=i.clientY-c.top,a=!0}return{x:s,y:l,box:a}}function Ic(t,n){if("native"in t)return t;let{canvas:e,currentDevicePixelRatio:i}=n,r=Kx(e),o=r.boxSizing==="border-box",a=vu(r,"padding"),s=vu(r,"border","width"),{x:l,y:c,box:d}=dre(t,e),m=a.left+(d&&s.left),f=a.top+(d&&s.top),{width:b,height:v}=n;return o&&(b-=a.width+s.width,v-=a.height+s.height),{x:Math.round((l-m)/b*e.width/i),y:Math.round((c-f)/v*e.height/i)}}function ure(t,n,e){let i,r;if(n===void 0||e===void 0){let o=t&&Qx(t);if(!o)n=t.clientWidth,e=t.clientHeight;else{let a=o.getBoundingClientRect(),s=Kx(o),l=vu(s,"border","width"),c=vu(s,"padding");n=a.width-c.width-l.width,e=a.height-c.height-l.height,i=Bx(s.maxWidth,o,"clientWidth"),r=Bx(s.maxHeight,o,"clientHeight")}}return{width:n,height:e,maxWidth:i||Lx,maxHeight:r||Lx}}var Ec=t=>Math.round(t*10)/10;function $j(t,n,e,i){let r=Kx(t),o=vu(r,"margin"),a=Bx(r.maxWidth,t,"clientWidth")||Lx,s=Bx(r.maxHeight,t,"clientHeight")||Lx,l=ure(t,n,e),{width:c,height:d}=l;if(r.boxSizing==="content-box"){let f=vu(r,"border","width"),b=vu(r,"padding");c-=b.width+f.width,d-=b.height+f.height}return c=Math.max(0,c-o.width),d=Math.max(0,i?c/i:d-o.height),c=Ec(Math.min(c,a,l.maxWidth)),d=Ec(Math.min(d,s,l.maxHeight)),c&&!d&&(d=Ec(c/2)),(n!==void 0||e!==void 0)&&i&&l.height&&d>l.height&&(d=l.height,c=Ec(Math.floor(d*i))),{width:c,height:d}}function gT(t,n,e){let i=n||1,r=Ec(t.height*i),o=Ec(t.width*i);t.height=Ec(t.height),t.width=Ec(t.width);let a=t.canvas;return a.style&&(e||!a.style.height&&!a.style.width)&&(a.style.height=`${t.height}px`,a.style.width=`${t.width}px`),t.currentDevicePixelRatio!==i||a.height!==r||a.width!==o?(t.currentDevicePixelRatio=i,a.height=r,a.width=o,t.ctx.setTransform(i,0,0,i,0,0),!0):!1}var Wj=(function(){let t=!1;try{let n={get passive(){return t=!0,!1}};Yx()&&(window.addEventListener("test",null,n),window.removeEventListener("test",null,n))}catch{}return t})();function _T(t,n){let e=sre(t,n),i=e&&e.match(/^(\d+)(\.\d+)?px$/);return i?+i[1]:void 0}function Dc(t,n,e,i){return{x:t.x+e*(n.x-t.x),y:t.y+e*(n.y-t.y)}}function Gj(t,n,e,i){return{x:t.x+e*(n.x-t.x),y:i==="middle"?e<.5?t.y:n.y:i==="after"?e<1?t.y:n.y:e>0?n.y:t.y}}function qj(t,n,e,i){let r={x:t.cp2x,y:t.cp2y},o={x:n.cp1x,y:n.cp1y},a=Dc(t,r,e),s=Dc(r,o,e),l=Dc(o,n,e),c=Dc(a,s,e),d=Dc(s,l,e);return Dc(c,d,e)}var mre=function(t,n){return{x(e){return t+t+n-e},setWidth(e){n=e},textAlign(e){return e==="center"?e:e==="right"?"left":"right"},xPlus(e,i){return e-i},leftForLtr(e,i){return e-i}}},hre=function(){return{x(t){return t},setWidth(t){},textAlign(t){return t},xPlus(t,n){return t+n},leftForLtr(t,n){return t}}};function Cu(t,n,e){return t?mre(n,e):hre()}function bT(t,n){let e,i;(n==="ltr"||n==="rtl")&&(e=t.canvas.style,i=[e.getPropertyValue("direction"),e.getPropertyPriority("direction")],e.setProperty("direction",n,"important"),t.prevTextDirection=i)}function vT(t,n){n!==void 0&&(delete t.prevTextDirection,t.canvas.style.setProperty("direction",n[0],n[1]))}function Yj(t){return t==="angle"?{between:Vh,compare:Ine,normalize:or}:{between:Is,compare:(n,e)=>n-e,normalize:n=>n}}function bj({start:t,end:n,count:e,loop:i,style:r}){return{start:t%e,end:n%e,loop:i&&(n-t+1)%e===0,style:r}}function pre(t,n,e){let{property:i,start:r,end:o}=e,{between:a,normalize:s}=Yj(i),l=n.length,{start:c,end:d,loop:m}=t,f,b;if(m){for(c+=l,d+=l,f=0,b=l;fl(r,W,D)&&s(r,W)!==0,K=()=>s(o,D)===0||l(o,W,D),re=()=>w||Z(),Ee=()=>!w||K();for(let be=d,Ve=d;be<=m;++be)P=n[be%a],!P.skip&&(D=c(P[i]),D!==W&&(w=l(D,r,o),x===null&&re()&&(x=s(D,r)===0?be:Ve),x!==null&&Ee()&&(v.push(bj({start:x,end:be,loop:f,count:a,style:b})),x=null),Ve=be,W=D));return x!==null&&v.push(bj({start:x,end:m,loop:f,count:a,style:b})),v}function xT(t,n){let e=[],i=t.segments;for(let r=0;rr&&t[o%n].skip;)o--;return o%=n,{start:r,end:o}}function gre(t,n,e,i){let r=t.length,o=[],a=n,s=t[n],l;for(l=n+1;l<=e;++l){let c=t[l%r];c.skip||c.stop?s.skip||(i=!1,o.push({start:n%r,end:(l-1)%r,loop:i}),n=a=c.stop?l:null):(a=l,s.skip&&(n=l)),s=c}return a!==null&&o.push({start:n%r,end:a%r,loop:i}),o}function Qj(t,n){let e=t.points,i=t.options.spanGaps,r=e.length;if(!r)return[];let o=!!t._loop,{start:a,end:s}=fre(e,r,o,i);if(i===!0)return vj(t,[{start:a,end:s,loop:o}],e,n);let l=ss({chart:n,initial:e.initial,numSteps:a,currentStep:Math.min(i-e.start,a)}))}_refresh(){this._request||(this._running=!0,this._request=nT.call(window,()=>{this._update(),this._request=null,this._running&&this._refresh()}))}_update(n=Date.now()){let e=0;this._charts.forEach((i,r)=>{if(!i.running||!i.items.length)return;let o=i.items,a=o.length-1,s=!1,l;for(;a>=0;--a)l=o[a],l._active?(l._total>i.duration&&(i.duration=l._total),l.tick(n),s=!0):(o[a]=o[o.length-1],o.pop());s&&(r.draw(),this._notify(r,i,n,"progress")),o.length||(i.running=!1,this._notify(r,i,n,"complete"),i.initial=!1),e+=o.length}),this._lastDate=n,e===0&&(this._running=!1)}_getAnims(n){let e=this._charts,i=e.get(n);return i||(i={running:!1,initial:!0,items:[],listeners:{complete:[],progress:[]}},e.set(n,i)),i}listen(n,e,i){this._getAnims(n).listeners[e].push(i)}add(n,e){!e||!e.length||this._getAnims(n).items.push(...e)}has(n){return this._getAnims(n).items.length>0}start(n){let e=this._charts.get(n);e&&(e.running=!0,e.start=Date.now(),e.duration=e.items.reduce((i,r)=>Math.max(i,r._duration),0),this._refresh())}running(n){if(!this._running)return!1;let e=this._charts.get(n);return!(!e||!e.running||!e.items.length)}stop(n){let e=this._charts.get(n);if(!e||!e.items.length)return;let i=e.items,r=i.length-1;for(;r>=0;--r)i[r].cancel();e.items=[],this._notify(n,e,Date.now(),"complete")}remove(n){return this._charts.delete(n)}},vl=new PT,Kj="transparent",yre={boolean(t,n,e){return e>.5?n:t},color(t,n,e){let i=lT(t||Kj),r=i.valid&&lT(n||Kj);return r&&r.valid?r.mix(i,e).hexString():n},number(t,n,e){return t+(n-t)*e}},FT=class{constructor(n,e,i,r){let o=e[i];r=Hh([n.to,r,o,n.from]);let a=Hh([n.from,o,r]);this._active=!0,this._fn=n.fn||yre[n.type||typeof a],this._easing=Oh[n.easing]||Oh.linear,this._start=Math.floor(Date.now()+(n.delay||0)),this._duration=this._total=Math.floor(n.duration),this._loop=!!n.loop,this._target=e,this._prop=i,this._from=a,this._to=r,this._promises=void 0}active(){return this._active}update(n,e,i){if(this._active){this._notify(!1);let r=this._target[this._prop],o=i-this._start,a=this._duration-o;this._start=i,this._duration=Math.floor(Math.max(a,n.duration)),this._total+=o,this._loop=!!n.loop,this._to=Hh([n.to,e,r,n.from]),this._from=Hh([n.from,r,e])}}cancel(){this._active&&(this.tick(Date.now()),this._active=!1,this._notify(!1))}tick(n){let e=n-this._start,i=this._duration,r=this._prop,o=this._from,a=this._loop,s=this._to,l;if(this._active=o!==s&&(a||e1?2-l:l,l=this._easing(Math.min(1,Math.max(0,l))),this._target[r]=this._fn(o,s,l)}wait(){let n=this._promises||(this._promises=[]);return new Promise((e,i)=>{n.push({res:e,rej:i})})}_notify(n){let e=n?"res":"rej",i=this._promises||[];for(let r=0;r{let o=n[r];if(!St(o))return;let a={};for(let s of e)a[s]=o[s];(Ei(o.properties)&&o.properties||[r]).forEach(s=>{(s===r||!i.has(s))&&i.set(s,a)})})}_animateOptions(n,e){let i=e.options,r=Cre(n,i);if(!r)return[];let o=this._createAnimations(r,i);return i.$shared&&xre(n.options.$animations,i).then(()=>{n.options=i},()=>{}),o}_createAnimations(n,e){let i=this._properties,r=[],o=n.$animations||(n.$animations={}),a=Object.keys(e),s=Date.now(),l;for(l=a.length-1;l>=0;--l){let c=a[l];if(c.charAt(0)==="$")continue;if(c==="options"){r.push(...this._animateOptions(n,e));continue}let d=e[c],m=o[c],f=i.get(c);if(m)if(f&&m.active()){m.update(f,d,s);continue}else m.cancel();if(!f||!f.duration){n[c]=d;continue}o[c]=m=new FT(f,n,c,d),r.push(m)}return r}update(n,e){if(this._properties.size===0){Object.assign(n,e);return}let i=this._createAnimations(n,e);if(i.length)return vl.add(this._chart,i),!0}};function xre(t,n){let e=[],i=Object.keys(n);for(let r=0;r0||!e&&o<0)return r.index}return null}function e4(t,n){let{chart:e,_cachedMeta:i}=t,r=e._stacks||(e._stacks={}),{iScale:o,vScale:a,index:s}=i,l=o.axis,c=a.axis,d=Mre(o,a,i),m=n.length,f;for(let b=0;be[i].axis===n).shift()}function Tre(t,n){return bl(t,{active:!1,dataset:void 0,datasetIndex:n,index:n,mode:"default",type:"dataset"})}function Ire(t,n,e){return bl(t,{active:!1,dataIndex:n,parsed:void 0,raw:void 0,element:e,index:n,mode:"default",type:"data"})}function Ug(t,n){let e=t.controller.index,i=t.vScale&&t.vScale.axis;if(i){n=n||t._parsed;for(let r of n){let o=r._stacks;if(!o||o[i]===void 0||o[i][e]===void 0)return;delete o[i][e],o[i]._visualValues!==void 0&&o[i]._visualValues[e]!==void 0&&delete o[i]._visualValues[e]}}}var ET=t=>t==="reset"||t==="none",t4=(t,n)=>n?t:Object.assign({},t),Are=(t,n,e)=>t&&!n.hidden&&n._stacked&&{keys:K4(e,!0),values:null},Oc=(()=>{class t{static defaults={};static datasetElementType=null;static dataElementType=null;constructor(e,i){this.chart=e,this._ctx=e.ctx,this.index=i,this._cachedDataOpts={},this._cachedMeta=this.getMeta(),this._type=this._cachedMeta.type,this.options=void 0,this._parsing=!1,this._data=void 0,this._objectData=void 0,this._sharedOptions=void 0,this._drawStart=void 0,this._drawCount=void 0,this.enableOptionSharing=!1,this.supportsDecimation=!1,this.$context=void 0,this._syncList=[],this.datasetElementType=new.target.datasetElementType,this.dataElementType=new.target.dataElementType,this.initialize()}initialize(){let e=this._cachedMeta;this.configure(),this.linkScales(),e._stacked=wT(e.vScale,e),this.addElements(),this.options.fill&&!this.chart.isPluginEnabled("filler")&&console.warn("Tried to use the 'fill' option without the 'Filler' plugin enabled. Please import and register the 'Filler' plugin and make sure it is not disabled in the options")}updateIndex(e){this.index!==e&&Ug(this._cachedMeta),this.index=e}linkScales(){let e=this.chart,i=this._cachedMeta,r=this.getDataset(),o=(f,b,v,w)=>f==="x"?b:f==="r"?w:v,a=i.xAxisID=st(r.xAxisID,DT(e,"x")),s=i.yAxisID=st(r.yAxisID,DT(e,"y")),l=i.rAxisID=st(r.rAxisID,DT(e,"r")),c=i.indexAxis,d=i.iAxisID=o(c,a,s,l),m=i.vAxisID=o(c,s,a,l);i.xScale=this.getScaleForId(a),i.yScale=this.getScaleForId(s),i.rScale=this.getScaleForId(l),i.iScale=this.getScaleForId(d),i.vScale=this.getScaleForId(m)}getDataset(){return this.chart.data.datasets[this.index]}getMeta(){return this.chart.getDatasetMeta(this.index)}getScaleForId(e){return this.chart.scales[e]}_getOtherScale(e){let i=this._cachedMeta;return e===i.iScale?i.vScale:i.iScale}reset(){this._update("reset")}_destroy(){let e=this._cachedMeta;this._data&&tT(this._data,this),e._stacked&&Ug(e)}_dataCheck(){let e=this.getDataset(),i=e.data||(e.data=[]),r=this._data;if(St(i)){let o=this._cachedMeta;this._data=Ere(i,o)}else if(r!==i){if(r){tT(r,this);let o=this._cachedMeta;Ug(o),o._parsed=[]}i&&Object.isExtensible(i)&&Aj(i,this),this._syncList=[],this._data=i}}addElements(){let e=this._cachedMeta;this._dataCheck(),this.datasetElementType&&(e.dataset=new this.datasetElementType)}buildOrUpdateElements(e){let i=this._cachedMeta,r=this.getDataset(),o=!1;this._dataCheck();let a=i._stacked;i._stacked=wT(i.vScale,i),i.stack!==r.stack&&(o=!0,Ug(i),i.stack=r.stack),this._resyncElements(e),(o||a!==i._stacked)&&(e4(this,i._parsed),i._stacked=wT(i.vScale,i))}configure(){let e=this.chart.config,i=e.datasetScopeKeys(this._type),r=e.getOptionScopes(this.getDataset(),i,!0);this.options=e.createResolver(r,this.getContext()),this._parsing=this.options.parsing,this._cachedDataOpts={}}parse(e,i){let{_cachedMeta:r,_data:o}=this,{iScale:a,_stacked:s}=r,l=a.axis,c=e===0&&i===o.length?!0:r._sorted,d=e>0&&r._parsed[e-1],m,f,b;if(this._parsing===!1)r._parsed=o,r._sorted=!0,b=o;else{Ei(o[e])?b=this.parseArrayData(r,o,e,i):St(o[e])?b=this.parseObjectData(r,o,e,i):b=this.parsePrimitiveData(r,o,e,i);let v=()=>f[l]===null||d&&f[l]x||f=0;--b)if(!w()){this.updateRangeFromParsed(d,e,v,c);break}}return d}getAllParsedValues(e){let i=this._cachedMeta._parsed,r=[],o,a,s;for(o=0,a=i.length;o=0&&ethis.getContext(r,o,i),x=d.resolveNamedOptions(b,v,w,f);return x.$shared&&(x.$shared=c,a[s]=Object.freeze(t4(x,c))),x}_resolveAnimations(e,i,r){let o=this.chart,a=this._cachedDataOpts,s=`animation-${i}`,l=a[s];if(l)return l;let c;if(o.options.animation!==!1){let m=this.chart.config,f=m.datasetAnimationScopeKeys(this._type,i),b=m.getOptionScopes(this.getDataset(),f);c=m.createResolver(b,this.getContext(e,r,i))}let d=new oC(o,c&&c.animations);return c&&c._cacheable&&(a[s]=Object.freeze(d)),d}getSharedOptions(e){if(e.$shared)return this._sharedOptions||(this._sharedOptions=Object.assign({},e))}includeOptions(e,i){return!i||ET(e)||this.chart._animationsDisabled}_getSharedOptions(e,i){let r=this.resolveDataElementOptions(e,i),o=this._sharedOptions,a=this.getSharedOptions(r),s=this.includeOptions(i,a)||a!==o;return this.updateSharedOptions(a,i,r),{sharedOptions:a,includeOptions:s}}updateElement(e,i,r,o){ET(o)?Object.assign(e,r):this._resolveAnimations(i,o).update(e,r)}updateSharedOptions(e,i,r){e&&!ET(i)&&this._resolveAnimations(void 0,i).update(e,r)}_setStyle(e,i,r,o){e.active=o;let a=this.getStyle(i,o);this._resolveAnimations(i,r,o).update(e,{options:!o&&this.getSharedOptions(a)||a})}removeHoverStyle(e,i,r){this._setStyle(e,r,"active",!1)}setHoverStyle(e,i,r){this._setStyle(e,r,"active",!0)}_removeDatasetHoverStyle(){let e=this._cachedMeta.dataset;e&&this._setStyle(e,void 0,"active",!1)}_setDatasetHoverStyle(){let e=this._cachedMeta.dataset;e&&this._setStyle(e,void 0,"active",!0)}_resyncElements(e){let i=this._data,r=this._cachedMeta.data;for(let[l,c,d]of this._syncList)this[l](c,d);this._syncList=[];let o=r.length,a=i.length,s=Math.min(a,o);s&&this.parse(0,s),a>o?this._insertElements(o,a-o,e):a{for(d.length+=i,l=d.length-1;l>=s;l--)d[l]=d[l-i]};for(c(a),l=e;lr-o))}return t._cache.$bar}function Rre(t){let n=t.iScale,e=Ore(n,t.type),i=n._length,r,o,a,s,l=()=>{a===32767||a===-32768||(Nh(s)&&(i=Math.min(i,Math.abs(a-s)||i)),s=a)};for(r=0,o=e.length;r0?r[t-1]:null,s=tMath.abs(s)&&(l=s,c=a),n[e.axis]=c,n._custom={barStart:l,barEnd:c,start:r,end:o,min:a,max:s}}function Z4(t,n,e,i){return Ei(t)?Nre(t,n,e,i):n[e.axis]=e.parse(t,i),n}function i4(t,n,e,i){let r=t.iScale,o=t.vScale,a=r.getLabels(),s=r===o,l=[],c,d,m,f;for(c=e,d=e+i;c=e?1:-1)}function Vre(t){let n,e,i,r,o;return t.horizontal?(n=t.base>t.x,e="left",i="right"):(n=t.base{class t extends Oc{static id="bar";static defaults={datasetElementType:!1,dataElementType:"bar",categoryPercentage:.8,barPercentage:.9,grouped:!0,animations:{numbers:{type:"number",properties:["x","y","base","width","height"]}}};static overrides={scales:{_index_:{type:"category",offset:!0,grid:{offset:!0}},_value_:{type:"linear",beginAtZero:!0}}};parsePrimitiveData(e,i,r,o){return i4(e,i,r,o)}parseArrayData(e,i,r,o){return i4(e,i,r,o)}parseObjectData(e,i,r,o){let{iScale:a,vScale:s}=e,{xAxisKey:l="x",yAxisKey:c="y"}=this._parsing,d=a.axis==="x"?l:c,m=s.axis==="x"?l:c,f=[],b,v,w,x;for(b=r,v=r+o;bm.controller.options.grouped),a=r.options.stacked,s=[],l=this._cachedMeta.controller.getParsed(i),c=l&&l[r.axis],d=m=>{let f=m._parsed.find(v=>v[r.axis]===c),b=f&&f[m.vScale.axis];if(Et(b)||isNaN(b))return!0};for(let m of o)if(!(i!==void 0&&d(m))&&((a===!1||s.indexOf(m.stack)===-1||a===void 0&&m.stack===void 0)&&s.push(m.stack),m.index===e))break;return s.length||s.push(void 0),s}_getStackCount(e){return this._getStacks(void 0,e).length}_getAxisCount(){return this._getAxis().length}getFirstScaleIdForIndexAxis(){let e=this.chart.scales,i=this.chart.options.indexAxis;return Object.keys(e).filter(r=>e[r].axis===i).shift()}_getAxis(){let e={},i=this.getFirstScaleIdForIndexAxis();for(let r of this.chart.data.datasets)e[st(this.chart.options.indexAxis==="x"?r.xAxisID:r.yAxisID,i)]=!0;return Object.keys(e)}_getStackIndex(e,i,r){let o=this._getStacks(e,r),a=i!==void 0?o.indexOf(i):-1;return a===-1?o.length-1:a}_getRuler(){let e=this.options,i=this._cachedMeta,r=i.iScale,o=[],a,s;for(a=0,s=i.data.length;a{class t extends Oc{static id="bubble";static defaults={datasetElementType:!1,dataElementType:"point",animations:{numbers:{type:"number",properties:["x","y","borderWidth","radius"]}}};static overrides={scales:{x:{type:"linear"},y:{type:"linear"}}};initialize(){this.enableOptionSharing=!0,super.initialize()}parsePrimitiveData(e,i,r,o){let a=super.parsePrimitiveData(e,i,r,o);for(let s=0;s=0;--r)i=Math.max(i,e[r].size(this.resolveDataElementOptions(r))/2);return i>0&&i}getLabelAndValue(e){let i=this._cachedMeta,r=this.chart.data.labels||[],{xScale:o,yScale:a}=i,s=this.getParsed(e),l=o.getLabelForValue(s.x),c=a.getLabelForValue(s.y),d=s._custom;return{label:r[e]||"",value:"("+l+", "+c+(d?", "+d:"")+")"}}update(e){let i=this._cachedMeta.data;this.updateElements(i,0,i.length,e)}updateElements(e,i,r,o){let a=o==="reset",{iScale:s,vScale:l}=this._cachedMeta,{sharedOptions:c,includeOptions:d}=this._getSharedOptions(i,o),m=s.axis,f=l.axis;for(let b=i;bVh(W,s,l,!0)?1:Math.max(Z,Z*e,K,K*e),v=(W,Z,K)=>Vh(W,s,l,!0)?-1:Math.min(Z,Z*e,K,K*e),w=b(0,c,m),x=b(Zi,d,f),D=v(Ht,c,m),P=v(Ht+Zi,d,f);i=(w-D)/2,r=(x-P)/2,o=-(w+D)/2,a=-(x+P)/2}return{ratioX:i,ratioY:r,offsetX:o,offsetY:a}}var tI=(()=>{class t extends Oc{static id="doughnut";static defaults={datasetElementType:!1,dataElementType:"arc",animation:{animateRotate:!0,animateScale:!1},animations:{numbers:{type:"number",properties:["circumference","endAngle","innerRadius","outerRadius","startAngle","x","y","offset","borderWidth","spacing"]}},cutout:"50%",rotation:0,circumference:360,radius:"100%",spacing:0,indexAxis:"r"};static descriptors={_scriptable:e=>e!=="spacing",_indexable:e=>e!=="spacing"&&!e.startsWith("borderDash")&&!e.startsWith("hoverBorderDash")};static overrides={aspectRatio:1,plugins:{legend:{labels:{generateLabels(e){let i=e.data,{labels:{pointStyle:r,textAlign:o,color:a,useBorderRadius:s,borderRadius:l}}=e.legend.options;return i.labels.length&&i.datasets.length?i.labels.map((c,d)=>{let f=e.getDatasetMeta(0).controller.getStyle(d);return{text:c,fillStyle:f.backgroundColor,fontColor:a,hidden:!e.getDataVisibility(d),lineDash:f.borderDash,lineDashOffset:f.borderDashOffset,lineJoin:f.borderJoinStyle,lineWidth:f.borderWidth,strokeStyle:f.borderColor,textAlign:o,pointStyle:r,borderRadius:s&&(l||f.borderRadius),index:d}}):[]}},onClick(e,i,r){r.chart.toggleDataVisibility(i.index),r.chart.update()}}}};constructor(e,i){super(e,i),this.enableOptionSharing=!0,this.innerRadius=void 0,this.outerRadius=void 0,this.offsetX=void 0,this.offsetY=void 0}linkScales(){}parse(e,i){let r=this.getDataset().data,o=this._cachedMeta;if(this._parsing===!1)o._parsed=r;else{let a=c=>+r[c];if(St(r[e])){let{key:c="value"}=this._parsing;a=d=>+_l(r[d],c)}let s,l;for(s=e,l=e+i;s0&&!isNaN(e)?Mi*(Math.abs(e)/i):0}getLabelAndValue(e){let i=this._cachedMeta,r=this.chart,o=r.data.labels||[],a=Bh(i._parsed[e],r.options.locale);return{label:o[e]||"",value:a}}getMaxBorderWidth(e){let i=0,r=this.chart,o,a,s,l,c;if(!e){for(o=0,a=r.data.datasets.length;o{class t extends Oc{static id="line";static defaults={datasetElementType:"line",dataElementType:"point",showLine:!0,spanGaps:!1};static overrides={scales:{_index_:{type:"category"},_value_:{type:"linear"}}};initialize(){this.enableOptionSharing=!0,this.supportsDecimation=!0,super.initialize()}update(e){let i=this._cachedMeta,{dataset:r,data:o=[],_dataset:a}=i,s=this.chart._animationsDisabled,{start:l,count:c}=oT(i,o,s);this._drawStart=l,this._drawCount=c,aT(i)&&(l=0,c=o.length),r._chart=this.chart,r._datasetIndex=this.index,r._decimated=!!a._decimated,r.points=o;let d=this.resolveDatasetElementOptions(e);this.options.showLine||(d.borderWidth=0),d.segment=this.options.segment,this.updateElement(r,void 0,{animated:!s,options:d},e),this.updateElements(o,l,c,e)}updateElements(e,i,r,o){let a=o==="reset",{iScale:s,vScale:l,_stacked:c,_dataset:d}=this._cachedMeta,{sharedOptions:m,includeOptions:f}=this._getSharedOptions(i,o),b=s.axis,v=l.axis,{spanGaps:w,segment:x}=this.options,D=xu(w)?w:Number.POSITIVE_INFINITY,P=this.chart._animationsDisabled||a||o==="none",W=i+r,Z=e.length,K=i>0&&this.getParsed(i-1);for(let re=0;re=W){be.skip=!0;continue}let Ve=this.getParsed(re),yt=Et(Ve[v]),bt=be[b]=s.getPixelForValue(Ve[b],re),It=be[v]=a||yt?l.getBasePixel():l.getPixelForValue(c?this.applyStack(l,Ve,c):Ve[v],re);be.skip=isNaN(bt)||isNaN(It)||yt,be.stop=re>0&&Math.abs(Ve[b]-K[b])>D,x&&(be.parsed=Ve,be.raw=d.data[re]),f&&(be.options=m||this.resolveDataElementOptions(re,Ee.active?"active":o)),P||this.updateElement(Ee,re,be,o),K=Ve}}getMaxOverflow(){let e=this._cachedMeta,i=e.dataset,r=i.options&&i.options.borderWidth||0,o=e.data||[];if(!o.length)return r;let a=o[0].size(this.resolveDataElementOptions(0)),s=o[o.length-1].size(this.resolveDataElementOptions(o.length-1));return Math.max(r,a,s)/2}draw(){let e=this._cachedMeta;e.dataset.updateControlPoints(this.chart.chartArea,e.iScale.axis),super.draw()}}return t})(),X4=(()=>{class t extends Oc{static id="polarArea";static defaults={dataElementType:"arc",animation:{animateRotate:!0,animateScale:!0},animations:{numbers:{type:"number",properties:["x","y","startAngle","endAngle","innerRadius","outerRadius"]}},indexAxis:"r",startAngle:0};static overrides={aspectRatio:1,plugins:{legend:{labels:{generateLabels(e){let i=e.data;if(i.labels.length&&i.datasets.length){let{labels:{pointStyle:r,color:o}}=e.legend.options;return i.labels.map((a,s)=>{let c=e.getDatasetMeta(0).controller.getStyle(s);return{text:a,fillStyle:c.backgroundColor,strokeStyle:c.borderColor,fontColor:o,lineWidth:c.borderWidth,pointStyle:r,hidden:!e.getDataVisibility(s),index:s}})}return[]}},onClick(e,i,r){r.chart.toggleDataVisibility(i.index),r.chart.update()}}},scales:{r:{type:"radialLinear",angleLines:{display:!1},beginAtZero:!0,grid:{circular:!0},pointLabels:{display:!1},startAngle:0}}};constructor(e,i){super(e,i),this.innerRadius=void 0,this.outerRadius=void 0}getLabelAndValue(e){let i=this._cachedMeta,r=this.chart,o=r.data.labels||[],a=Bh(i._parsed[e].r,r.options.locale);return{label:o[e]||"",value:a}}parseObjectData(e,i,r,o){return fT.bind(this)(e,i,r,o)}update(e){let i=this._cachedMeta.data;this._updateRadius(),this.updateElements(i,0,i.length,e)}getMinMax(){let e=this._cachedMeta,i={min:Number.POSITIVE_INFINITY,max:Number.NEGATIVE_INFINITY};return e.data.forEach((r,o)=>{let a=this.getParsed(o).r;!isNaN(a)&&this.chart.getDataVisibility(o)&&(ai.max&&(i.max=a))}),i}_updateRadius(){let e=this.chart,i=e.chartArea,r=e.options,o=Math.min(i.right-i.left,i.bottom-i.top),a=Math.max(o/2,0),s=Math.max(r.cutoutPercentage?a/100*r.cutoutPercentage:1,0),l=(a-s)/e.getVisibleDatasetCount();this.outerRadius=a-l*this.index,this.innerRadius=this.outerRadius-l}updateElements(e,i,r,o){let a=o==="reset",s=this.chart,c=s.options.animation,d=this._cachedMeta.rScale,m=d.xCenter,f=d.yCenter,b=d.getIndexAngle(0)-.5*Ht,v=b,w,x=360/this.countVisibleElements();for(w=0;w{!isNaN(this.getParsed(o).r)&&this.chart.getDataVisibility(o)&&i++}),i}_computeAngle(e,i,r){return this.chart.getDataVisibility(e)?ra(this.resolveDataElementOptions(e,i).angle||r):0}}return t})(),Gre=(()=>{class t extends tI{static id="pie";static defaults={cutout:0,rotation:0,circumference:360,radius:"100%"}}return t})(),qre=(()=>{class t extends Oc{static id="radar";static defaults={datasetElementType:"line",dataElementType:"point",indexAxis:"r",showLine:!0,elements:{line:{fill:"start"}}};static overrides={aspectRatio:1,scales:{r:{type:"radialLinear"}}};getLabelAndValue(e){let i=this._cachedMeta.vScale,r=this.getParsed(e);return{label:i.getLabels()[e],value:""+i.getLabelForValue(r[i.axis])}}parseObjectData(e,i,r,o){return fT.bind(this)(e,i,r,o)}update(e){let i=this._cachedMeta,r=i.dataset,o=i.data||[],a=i.iScale.getLabels();if(r.points=o,e!=="resize"){let s=this.resolveDatasetElementOptions(e);this.options.showLine||(s.borderWidth=0);let l={_loop:!0,_fullLoop:a.length===o.length,options:s};this.updateElement(r,void 0,l,e)}this.updateElements(o,0,o.length,e)}updateElements(e,i,r,o){let a=this._cachedMeta.rScale,s=o==="reset";for(let l=i;l{class t extends Oc{static id="scatter";static defaults={datasetElementType:!1,dataElementType:"point",showLine:!1,fill:!1};static overrides={interaction:{mode:"point"},scales:{x:{type:"linear"},y:{type:"linear"}}};getLabelAndValue(e){let i=this._cachedMeta,r=this.chart.data.labels||[],{xScale:o,yScale:a}=i,s=this.getParsed(e),l=o.getLabelForValue(s.x),c=a.getLabelForValue(s.y);return{label:r[e]||"",value:"("+l+", "+c+")"}}update(e){let i=this._cachedMeta,{data:r=[]}=i,o=this.chart._animationsDisabled,{start:a,count:s}=oT(i,r,o);if(this._drawStart=a,this._drawCount=s,aT(i)&&(a=0,s=r.length),this.options.showLine){this.datasetElementType||this.addElements();let{dataset:l,_dataset:c}=i;l._chart=this.chart,l._datasetIndex=this.index,l._decimated=!!c._decimated,l.points=r;let d=this.resolveDatasetElementOptions(e);d.segment=this.options.segment,this.updateElement(l,void 0,{animated:!o,options:d},e)}else this.datasetElementType&&(delete i.dataset,this.datasetElementType=!1);this.updateElements(r,a,s,e)}addElements(){let{showLine:e}=this.options;!this.datasetElementType&&e&&(this.datasetElementType=this.chart.registry.getElement("line")),super.addElements()}updateElements(e,i,r,o){let a=o==="reset",{iScale:s,vScale:l,_stacked:c,_dataset:d}=this._cachedMeta,m=this.resolveDataElementOptions(i,o),f=this.getSharedOptions(m),b=this.includeOptions(o,f),v=s.axis,w=l.axis,{spanGaps:x,segment:D}=this.options,P=xu(x)?x:Number.POSITIVE_INFINITY,W=this.chart._animationsDisabled||a||o==="none",Z=i>0&&this.getParsed(i-1);for(let K=i;K0&&Math.abs(Ee[v]-Z[v])>P,D&&(be.parsed=Ee,be.raw=d.data[K]),b&&(be.options=f||this.resolveDataElementOptions(K,re.active?"active":o)),W||this.updateElement(re,K,be,o),Z=Ee}this.updateSharedOptions(f,o,m)}getMaxOverflow(){let e=this._cachedMeta,i=e.data||[];if(!this.options.showLine){let l=0;for(let c=i.length-1;c>=0;--c)l=Math.max(l,i[c].size(this.resolveDataElementOptions(c))/2);return l>0&&l}let r=e.dataset,o=r.options&&r.options.borderWidth||0;if(!i.length)return o;let a=i[0].size(this.resolveDataElementOptions(0)),s=i[i.length-1].size(this.resolveDataElementOptions(i.length-1));return Math.max(o,a,s)/2}}return t})(),Qre=Object.freeze({__proto__:null,BarController:zre,BubbleController:Ure,DoughnutController:tI,LineController:Wre,PieController:Gre,PolarAreaController:X4,RadarController:qre,ScatterController:Yre});function wu(){throw new Error("This method is not implemented: Check that a complete date adapter is provided.")}var NT=class t{static override(n){Object.assign(t.prototype,n)}options;constructor(n){this.options=n||{}}init(){}formats(){return wu()}parse(){return wu()}format(){return wu()}add(){return wu()}diff(){return wu()}startOf(){return wu()}endOf(){return wu()}},Kre={_date:NT};function Zre(t,n,e,i){let{controller:r,data:o,_sorted:a}=t,s=r._cachedMeta.iScale,l=t.dataset&&t.dataset.options?t.dataset.options.spanGaps:null;if(s&&n===s.axis&&n!=="r"&&a&&o.length){let c=s._reversePixels?Sj:ks;if(i){if(r._sharedOptions){let d=o[0],m=typeof d.getRange=="function"&&d.getRange(n);if(m){let f=c(o,n,e-m),b=c(o,n,e+m);return{lo:f.lo,hi:b.hi}}}}else{let d=c(o,n,e);if(l){let{vScale:m}=r._cachedMeta,{_parsed:f}=t,b=f.slice(0,d.lo+1).reverse().findIndex(w=>!Et(w[m.axis]));d.lo-=Math.max(0,b);let v=f.slice(d.hi).findIndex(w=>!Et(w[m.axis]));d.hi+=Math.max(0,v)}return d}}return{lo:0,hi:o.length-1}}function Jg(t,n,e,i,r){let o=t.getSortedVisibleDatasetMetas(),a=e[n];for(let s=0,l=o.length;s{l[a]&&l[a](n[e],r)&&(o.push({element:l,datasetIndex:c,index:d}),s=s||l.inRange(n.x,n.y,r))}),i&&!s?[]:o}var toe={evaluateInteractionItems:Jg,modes:{index(t,n,e,i){let r=Ic(n,t),o=e.axis||"x",a=e.includeInvisible||!1,s=e.intersect?kT(t,r,o,i,a):ST(t,r,o,!1,i,a),l=[];return s.length?(t.getSortedVisibleDatasetMetas().forEach(c=>{let d=s[0].index,m=c.data[d];m&&!m.skip&&l.push({element:m,datasetIndex:c.index,index:d})}),l):[]},dataset(t,n,e,i){let r=Ic(n,t),o=e.axis||"xy",a=e.includeInvisible||!1,s=e.intersect?kT(t,r,o,i,a):ST(t,r,o,!1,i,a);if(s.length>0){let l=s[0].datasetIndex,c=t.getDatasetMeta(l).data;s=[];for(let d=0;de.pos===n)}function a4(t,n){return t.filter(e=>J4.indexOf(e.pos)===-1&&e.box.axis===n)}function Wg(t,n){return t.sort((e,i)=>{let r=n?i:e,o=n?e:i;return r.weight===o.weight?r.index-o.index:r.weight-o.weight})}function ioe(t){let n=[],e,i,r,o,a,s;for(e=0,i=(t||[]).length;ec.box.fullSize),!0),i=Wg($g(n,"left"),!0),r=Wg($g(n,"right")),o=Wg($g(n,"top"),!0),a=Wg($g(n,"bottom")),s=a4(n,"x"),l=a4(n,"y");return{fullSize:e,leftAndTop:i.concat(o),rightAndBottom:r.concat(l).concat(a).concat(s),chartArea:$g(n,"chartArea"),vertical:i.concat(r).concat(l),horizontal:o.concat(a).concat(s)}}function s4(t,n,e,i){return Math.max(t[e],n[e])+Math.max(t[i],n[i])}function eH(t,n){t.top=Math.max(t.top,n.top),t.left=Math.max(t.left,n.left),t.bottom=Math.max(t.bottom,n.bottom),t.right=Math.max(t.right,n.right)}function aoe(t,n,e,i){let{pos:r,box:o}=e,a=t.maxPadding;if(!St(r)){e.size&&(t[r]-=e.size);let m=i[e.stack]||{size:0,count:1};m.size=Math.max(m.size,e.horizontal?o.height:o.width),e.size=m.size/m.count,t[r]+=e.size}o.getPadding&&eH(a,o.getPadding());let s=Math.max(0,n.outerWidth-s4(a,t,"left","right")),l=Math.max(0,n.outerHeight-s4(a,t,"top","bottom")),c=s!==t.w,d=l!==t.h;return t.w=s,t.h=l,e.horizontal?{same:c,other:d}:{same:d,other:c}}function soe(t){let n=t.maxPadding;function e(i){let r=Math.max(n[i]-t[i],0);return t[i]+=r,r}t.y+=e("top"),t.x+=e("left"),e("right"),e("bottom")}function loe(t,n){let e=n.maxPadding;function i(r){let o={left:0,top:0,right:0,bottom:0};return r.forEach(a=>{o[a]=Math.max(n[a],e[a])}),o}return i(t?["left","right"]:["top","bottom"])}function Yg(t,n,e,i){let r=[],o,a,s,l,c,d;for(o=0,a=t.length,c=0;o{typeof w.beforeLayout=="function"&&w.beforeLayout()});let d=l.reduce((w,x)=>x.box.options&&x.box.options.display===!1?w:w+1,0)||1,m=Object.freeze({outerWidth:n,outerHeight:e,padding:r,availableWidth:o,availableHeight:a,vBoxMaxWidth:o/2/d,hBoxMaxHeight:a/2}),f=Object.assign({},r);eH(f,sr(i));let b=Object.assign({maxPadding:f,w:o,h:a,x:r.left,y:r.top},r),v=roe(l.concat(c),m);Yg(s.fullSize,b,m,v),Yg(l,b,m,v),Yg(c,b,m,v)&&Yg(l,b,m,v),soe(b),l4(s.leftAndTop,b,m,v),b.x+=b.w,b.y+=b.h,l4(s.rightAndBottom,b,m,v),t.chartArea={left:b.left,top:b.top,right:b.left+b.w,bottom:b.top+b.h,height:b.h,width:b.w},ii(s.chartArea,w=>{let x=w.box;Object.assign(x,t.chartArea),x.update(b.w,b.h,{left:0,top:0,right:0,bottom:0})})}},aC=class{acquireContext(n,e){}releaseContext(n){return!1}addEventListener(n,e,i){}removeEventListener(n,e,i){}getDevicePixelRatio(){return 1}getMaximumSize(n,e,i,r){return e=Math.max(0,e||n.width),i=i||n.height,{width:e,height:Math.max(0,r?Math.floor(e/r):i)}}isAttached(n){return!0}updateConfig(n){}},LT=class extends aC{acquireContext(n){return n&&n.getContext&&n.getContext("2d")||null}updateConfig(n){n.options.animation=!1}},nC="$chartjs",coe={touchstart:"mousedown",touchmove:"mousemove",touchend:"mouseup",pointerenter:"mouseenter",pointerdown:"mousedown",pointermove:"mousemove",pointerup:"mouseup",pointerleave:"mouseout",pointerout:"mouseout"},c4=t=>t===null||t==="";function doe(t,n){let e=t.style,i=t.getAttribute("height"),r=t.getAttribute("width");if(t[nC]={initial:{height:i,width:r,style:{display:e.display,height:e.height,width:e.width}}},e.display=e.display||"block",e.boxSizing=e.boxSizing||"border-box",c4(r)){let o=_T(t,"width");o!==void 0&&(t.width=o)}if(c4(i))if(t.style.height==="")t.height=t.width/(n||2);else{let o=_T(t,"height");o!==void 0&&(t.height=o)}return t}var tH=Wj?{passive:!0}:!1;function uoe(t,n,e){t&&t.addEventListener(n,e,tH)}function moe(t,n,e){t&&t.canvas&&t.canvas.removeEventListener(n,e,tH)}function hoe(t,n){let e=coe[t.type]||t.type,{x:i,y:r}=Ic(t,n);return{type:e,chart:n,native:t,x:i!==void 0?i:null,y:r!==void 0?r:null}}function sC(t,n){for(let e of t)if(e===n||e.contains(n))return!0}function poe(t,n,e){let i=t.canvas,r=new MutationObserver(o=>{let a=!1;for(let s of o)a=a||sC(s.addedNodes,i),a=a&&!sC(s.removedNodes,i);a&&e()});return r.observe(document,{childList:!0,subtree:!0}),r}function foe(t,n,e){let i=t.canvas,r=new MutationObserver(o=>{let a=!1;for(let s of o)a=a||sC(s.removedNodes,i),a=a&&!sC(s.addedNodes,i);a&&e()});return r.observe(document,{childList:!0,subtree:!0}),r}var Kg=new Map,d4=0;function iH(){let t=window.devicePixelRatio;t!==d4&&(d4=t,Kg.forEach((n,e)=>{e.currentDevicePixelRatio!==t&&n()}))}function goe(t,n){Kg.size||window.addEventListener("resize",iH),Kg.set(t,n)}function _oe(t){Kg.delete(t),Kg.size||window.removeEventListener("resize",iH)}function boe(t,n,e){let i=t.canvas,r=i&&Qx(i);if(!r)return;let o=rT((s,l)=>{let c=r.clientWidth;e(s,l),c{let l=s[0],c=l.contentRect.width,d=l.contentRect.height;c===0&&d===0||o(c,d)});return a.observe(r),goe(t,o),a}function TT(t,n,e){e&&e.disconnect(),n==="resize"&&_oe(t)}function voe(t,n,e){let i=t.canvas,r=rT(o=>{t.ctx!==null&&e(hoe(o,t))},t);return uoe(i,n,r),r}var VT=class extends aC{acquireContext(n,e){let i=n&&n.getContext&&n.getContext("2d");return i&&i.canvas===n?(doe(n,e),i):null}releaseContext(n){let e=n.canvas;if(!e[nC])return!1;let i=e[nC].initial;["height","width"].forEach(o=>{let a=i[o];Et(a)?e.removeAttribute(o):e.setAttribute(o,a)});let r=i.style||{};return Object.keys(r).forEach(o=>{e.style[o]=r[o]}),e.width=e.width,delete e[nC],!0}addEventListener(n,e,i){this.removeEventListener(n,e);let r=n.$proxies||(n.$proxies={}),a={attach:poe,detach:foe,resize:boe}[e]||voe;r[e]=a(n,e,i)}removeEventListener(n,e){let i=n.$proxies||(n.$proxies={}),r=i[e];if(!r)return;({attach:TT,detach:TT,resize:TT}[e]||moe)(n,e,r),i[e]=void 0}getDevicePixelRatio(){return window.devicePixelRatio}getMaximumSize(n,e,i,r){return $j(n,e,i,r)}isAttached(n){let e=n&&Qx(n);return!!(e&&e.isConnected)}};function yoe(t){return!Yx()||typeof OffscreenCanvas<"u"&&t instanceof OffscreenCanvas?LT:VT}var ja=class{static defaults={};static defaultRoutes=void 0;x;y;active=!1;options;$animations;tooltipPosition(n){let{x:e,y:i}=this.getProps(["x","y"],n);return{x:e,y:i}}hasValue(){return xu(this.x)&&xu(this.y)}getProps(n,e){let i=this.$animations;if(!e||!i)return this;let r={};return n.forEach(o=>{r[o]=i[o]&&i[o].active()?i[o]._to:this[o]}),r}};function xoe(t,n){let e=t.options.ticks,i=Coe(t),r=Math.min(e.maxTicksLimit||i,i),o=e.major.enabled?Doe(n):[],a=o.length,s=o[0],l=o[a-1],c=[];if(a>r)return Eoe(n,c,o,a/r),c;let d=woe(o,n,r);if(a>0){let m,f,b=a>1?Math.round((l-s)/(a-1)):null;for(Xx(n,c,d,Et(b)?0:s-b,s),m=0,f=a-1;mr)return l}return Math.max(r,1)}function Doe(t){let n=[],e,i;for(e=0,i=t.length;et==="left"?"right":t==="right"?"left":t,u4=(t,n,e)=>n==="top"||n==="left"?t[n]+e:t[n]-e,m4=(t,n)=>Math.min(n||t,t);function h4(t,n){let e=[],i=t.length/n,r=t.length,o=0;for(;oa+s)))return l}function Toe(t,n){ii(t,e=>{let i=e.gc,r=i.length/2,o;if(r>n){for(o=0;oi?i:e,i=r&&e>i?e:i,{min:no(e,no(i,e)),max:no(i,no(e,i))}}getPadding(){return{left:this.paddingLeft||0,top:this.paddingTop||0,right:this.paddingRight||0,bottom:this.paddingBottom||0}}getTicks(){return this.ticks}getLabels(){let n=this.chart.data;return this.options.labels||(this.isHorizontal()?n.xLabels:n.yLabels)||n.labels||[]}getLabelItems(n=this.chart.chartArea){return this._labelItems||(this._labelItems=this._computeLabelItems(n))}beforeLayout(){this._cache={},this._dataLimitsCached=!1}beforeUpdate(){yi(this.options.beforeUpdate,[this])}update(n,e,i){let{beginAtZero:r,grace:o,ticks:a}=this.options,s=a.sampleSize;this.beforeUpdate(),this.maxWidth=n,this.maxHeight=e,this._margins=i=Object.assign({left:0,right:0,top:0,bottom:0},i),this.ticks=null,this._labelSizes=null,this._gridLineItems=null,this._labelItems=null,this.beforeSetDimensions(),this.setDimensions(),this.afterSetDimensions(),this._maxLength=this.isHorizontal()?this.width+i.left+i.right:this.height+i.top+i.bottom,this._dataLimitsCached||(this.beforeDataLimits(),this.determineDataLimits(),this.afterDataLimits(),this._range=Vj(this,o,r),this._dataLimitsCached=!0),this.beforeBuildTicks(),this.ticks=this.buildTicks()||[],this.afterBuildTicks();let l=s=o||i<=1||!this.isHorizontal()){this.labelRotation=r;return}let d=this._getLabelSizes(),m=d.widest.width,f=d.highest.height,b=Dn(this.chart.width-m,0,this.maxWidth);s=n.offset?this.maxWidth/i:b/(i-1),m+6>s&&(s=b/(i-(n.offset?.5:1)),l=this.maxHeight-Gg(n.grid)-e.padding-p4(n.title,this.chart.options.font),c=Math.sqrt(m*m+f*f),a=Hx(Math.min(Math.asin(Dn((d.highest.height+6)/s,-1,1)),Math.asin(Dn(l/c,-1,1))-Math.asin(Dn(f/c,-1,1)))),a=Math.max(r,Math.min(o,a))),this.labelRotation=a}afterCalculateLabelRotation(){yi(this.options.afterCalculateLabelRotation,[this])}afterAutoSkip(){}beforeFit(){yi(this.options.beforeFit,[this])}fit(){let n={width:0,height:0},{chart:e,options:{ticks:i,title:r,grid:o}}=this,a=this._isVisible(),s=this.isHorizontal();if(a){let l=p4(r,e.options.font);if(s?(n.width=this.maxWidth,n.height=Gg(o)+l):(n.height=this.maxHeight,n.width=Gg(o)+l),i.display&&this.ticks.length){let{first:c,last:d,widest:m,highest:f}=this._getLabelSizes(),b=i.padding*2,v=ra(this.labelRotation),w=Math.cos(v),x=Math.sin(v);if(s){let D=i.mirror?0:x*m.width+w*f.height;n.height=Math.min(this.maxHeight,n.height+D+b)}else{let D=i.mirror?0:w*m.width+x*f.height;n.width=Math.min(this.maxWidth,n.width+D+b)}this._calculatePadding(c,d,x,w)}}this._handleMargins(),s?(this.width=this._length=e.width-this._margins.left-this._margins.right,this.height=n.height):(this.width=n.width,this.height=this._length=e.height-this._margins.top-this._margins.bottom)}_calculatePadding(n,e,i,r){let{ticks:{align:o,padding:a},position:s}=this.options,l=this.labelRotation!==0,c=s!=="top"&&this.axis==="x";if(this.isHorizontal()){let d=this.getPixelForTick(0)-this.left,m=this.right-this.getPixelForTick(this.ticks.length-1),f=0,b=0;l?c?(f=r*n.width,b=i*e.height):(f=i*n.height,b=r*e.width):o==="start"?b=e.width:o==="end"?f=n.width:o!=="inner"&&(f=n.width/2,b=e.width/2),this.paddingLeft=Math.max((f-d+a)*this.width/(this.width-d),0),this.paddingRight=Math.max((b-m+a)*this.width/(this.width-m),0)}else{let d=e.height/2,m=n.height/2;o==="start"?(d=0,m=n.height):o==="end"&&(d=e.height,m=0),this.paddingTop=d+a,this.paddingBottom=m+a}}_handleMargins(){this._margins&&(this._margins.left=Math.max(this.paddingLeft,this._margins.left),this._margins.top=Math.max(this.paddingTop,this._margins.top),this._margins.right=Math.max(this.paddingRight,this._margins.right),this._margins.bottom=Math.max(this.paddingBottom,this._margins.bottom))}afterFit(){yi(this.options.afterFit,[this])}isHorizontal(){let{axis:n,position:e}=this.options;return e==="top"||e==="bottom"||n==="x"}isFullSize(){return this.options.fullSize}_convertTicksToLabels(n){this.beforeTickToLabelConversion(),this.generateTickLabels(n);let e,i;for(e=0,i=n.length;e({width:a[Ve]||0,height:s[Ve]||0});return{first:be(0),last:be(e-1),widest:be(re),highest:be(Ee),widths:a,heights:s}}getLabelForValue(n){return n}getPixelForValue(n,e){return NaN}getValueForPixel(n){}getPixelForTick(n){let e=this.ticks;return n<0||n>e.length-1?null:this.getPixelForValue(e[n].value)}getPixelForDecimal(n){this._reversePixels&&(n=1-n);let e=this._startPixel+n*this._length;return kj(this._alignToPixels?kc(this.chart,e,0):e)}getDecimalForPixel(n){let e=(n-this._startPixel)/this._length;return this._reversePixels?1-e:e}getBasePixel(){return this.getPixelForValue(this.getBaseValue())}getBaseValue(){let{min:n,max:e}=this;return n<0&&e<0?e:n>0&&e>0?n:0}getContext(n){let e=this.ticks||[];if(n>=0&&ns*r?s/i:l/r:l*r0}_computeGridLineItems(n){let e=this.axis,i=this.chart,r=this.options,{grid:o,position:a,border:s}=r,l=o.offset,c=this.isHorizontal(),m=this.ticks.length+(l?1:0),f=Gg(o),b=[],v=s.setContext(this.getContext()),w=v.display?v.width:0,x=w/2,D=function(Pi){return kc(i,Pi,w)},P,W,Z,K,re,Ee,be,Ve,yt,bt,It,$n;if(a==="top")P=D(this.bottom),Ee=this.bottom-f,Ve=P-x,bt=D(n.top)+x,$n=n.bottom;else if(a==="bottom")P=D(this.top),bt=n.top,$n=D(n.bottom)-x,Ee=P+x,Ve=this.top+f;else if(a==="left")P=D(this.right),re=this.right-f,be=P-x,yt=D(n.left)+x,It=n.right;else if(a==="right")P=D(this.left),yt=n.left,It=D(n.right)-x,re=P+x,be=this.left+f;else if(e==="x"){if(a==="center")P=D((n.top+n.bottom)/2+.5);else if(St(a)){let Pi=Object.keys(a)[0],en=a[Pi];P=D(this.chart.scales[Pi].getPixelForValue(en))}bt=n.top,$n=n.bottom,Ee=P+x,Ve=Ee+f}else if(e==="y"){if(a==="center")P=D((n.left+n.right)/2);else if(St(a)){let Pi=Object.keys(a)[0],en=a[Pi];P=D(this.chart.scales[Pi].getPixelForValue(en))}re=P-x,be=re-f,yt=n.left,It=n.right}let lo=st(r.ticks.maxTicksLimit,m),ui=Math.max(1,Math.ceil(m/lo));for(W=0;W0&&(Jc-=Xc/2);break}D_={left:Jc,top:mp,width:Xc+Pu.width,height:up+Pu.height,color:ui.backdropColor}}x.push({label:Z,font:Ve,textOffset:It,options:{rotation:w,color:en,strokeColor:ma,strokeWidth:lr,textAlign:Ru,textBaseline:$n,translation:[K,re],backdrop:D_}})}return x}_getXAxisLabelAlignment(){let{position:n,ticks:e}=this.options;if(-ra(this.labelRotation))return n==="top"?"left":"right";let r="center";return e.align==="start"?r="left":e.align==="end"?r="right":e.align==="inner"&&(r="inner"),r}_getYAxisLabelAlignment(n){let{position:e,ticks:{crossAlign:i,mirror:r,padding:o}}=this.options,a=this._getLabelSizes(),s=n+o,l=a.widest.width,c,d;return e==="left"?r?(d=this.right+o,i==="near"?c="left":i==="center"?(c="center",d+=l/2):(c="right",d+=l)):(d=this.right-s,i==="near"?c="right":i==="center"?(c="center",d-=l/2):(c="left",d=this.left)):e==="right"?r?(d=this.left+o,i==="near"?c="right":i==="center"?(c="center",d-=l/2):(c="left",d-=l)):(d=this.left+s,i==="near"?c="left":i==="center"?(c="center",d+=l/2):(c="right",d=this.right)):c="right",{textAlign:c,x:d}}_computeLabelArea(){if(this.options.ticks.mirror)return;let n=this.chart,e=this.options.position;if(e==="left"||e==="right")return{top:0,left:this.left,bottom:n.height,right:this.right};if(e==="top"||e==="bottom")return{top:this.top,left:0,bottom:this.bottom,right:n.width}}drawBackground(){let{ctx:n,options:{backgroundColor:e},left:i,top:r,width:o,height:a}=this;e&&(n.save(),n.fillStyle=e,n.fillRect(i,r,o,a),n.restore())}getLineWidthForValue(n){let e=this.options.grid;if(!this._isVisible()||!e.display)return 0;let r=this.ticks.findIndex(o=>o.value===n);return r>=0?e.setContext(this.getContext(r)).lineWidth:0}drawGrid(n){let e=this.options.grid,i=this.ctx,r=this._gridLineItems||(this._gridLineItems=this._computeGridLineItems(n)),o,a,s=(l,c,d)=>{!d.width||!d.color||(i.save(),i.lineWidth=d.width,i.strokeStyle=d.color,i.setLineDash(d.borderDash||[]),i.lineDashOffset=d.borderDashOffset,i.beginPath(),i.moveTo(l.x,l.y),i.lineTo(c.x,c.y),i.stroke(),i.restore())};if(e.display)for(o=0,a=r.length;o{this.draw(o)}}]:[{z:i,draw:o=>{this.drawBackground(),this.drawGrid(o),this.drawTitle()}},{z:r,draw:()=>{this.drawBorder()}},{z:e,draw:o=>{this.drawLabels(o)}}]}getMatchingVisibleMetas(n){let e=this.chart.getSortedVisibleDatasetMetas(),i=this.axis+"AxisID",r=[],o,a;for(o=0,a=e.length;o{let i=e.split("."),r=i.pop(),o=[t].concat(i).join("."),a=n[e].split("."),s=a.pop(),l=a.join(".");xi.route(o,r,l,s)})}function Noe(t){return"id"in t&&"defaults"in t}var BT=class{constructor(){this.controllers=new Uh(Oc,"datasets",!0),this.elements=new Uh(ja,"elements"),this.plugins=new Uh(Object,"plugins"),this.scales=new Uh(Eu,"scales"),this._typedRegistries=[this.controllers,this.scales,this.elements]}add(...n){this._each("register",n)}remove(...n){this._each("unregister",n)}addControllers(...n){this._each("register",n,this.controllers)}addElements(...n){this._each("register",n,this.elements)}addPlugins(...n){this._each("register",n,this.plugins)}addScales(...n){this._each("register",n,this.scales)}getController(n){return this._get(n,this.controllers,"controller")}getElement(n){return this._get(n,this.elements,"element")}getPlugin(n){return this._get(n,this.plugins,"plugin")}getScale(n){return this._get(n,this.scales,"scale")}removeControllers(...n){this._each("unregister",n,this.controllers)}removeElements(...n){this._each("unregister",n,this.elements)}removePlugins(...n){this._each("unregister",n,this.plugins)}removeScales(...n){this._each("unregister",n,this.scales)}_each(n,e,i){[...e].forEach(r=>{let o=i||this._getRegistryForType(r);i||o.isForType(r)||o===this.plugins&&r.id?this._exec(n,o,r):ii(r,a=>{let s=i||this._getRegistryForType(a);this._exec(n,s,a)})})}_exec(n,e,i){let r=jx(n);yi(i["before"+r],[],i),e[n](i),yi(i["after"+r],[],i)}_getRegistryForType(n){for(let e=0;eo.filter(s=>!a.some(l=>s.plugin.id===l.plugin.id));this._notify(r(e,i),n,"stop"),this._notify(r(i,e),n,"start")}};function Loe(t){let n={},e=[],i=Object.keys(Os.plugins.items);for(let o=0;o1&&f4(t[0].toLowerCase());if(i)return i}throw new Error(`Cannot determine type of '${t}' axis. Please provide 'axis' or 'position' option.`)}function g4(t,n,e){if(e[n+"AxisID"]===t)return{axis:n}}function $oe(t,n){if(n.data&&n.data.datasets){let e=n.data.datasets.filter(i=>i.xAxisID===t||i.yAxisID===t);if(e.length)return g4(t,"x",e[0])||g4(t,"y",e[0])}return{}}function Woe(t,n){let e=Mc[t.type]||{scales:{}},i=n.scales||{},r=HT(t.type,n),o=Object.create(null);return Object.keys(i).forEach(a=>{let s=i[a];if(!St(s))return console.error(`Invalid scale configuration for scale: ${a}`);if(s._proxy)return console.warn(`Ignoring resolver passed as options for scale: ${a}`);let l=zT(a,s,$oe(a,t),xi.scales[s.type]),c=zoe(l,r),d=e.scales||{};o[a]=Fh(Object.create(null),[{axis:l},s,d[l],d[c]])}),t.data.datasets.forEach(a=>{let s=a.type||t.type,l=a.indexAxis||HT(s,n),d=(Mc[s]||{}).scales||{};Object.keys(d).forEach(m=>{let f=Hoe(m,l),b=a[f+"AxisID"]||f;o[b]=o[b]||Object.create(null),Fh(o[b],[{axis:f},i[b],d[m]])})}),Object.keys(o).forEach(a=>{let s=o[a];Fh(s,[xi.scales[s.type],xi.scale])}),o}function nH(t){let n=t.options||(t.options={});n.plugins=st(n.plugins,{}),n.scales=Woe(t,n)}function rH(t){return t=t||{},t.datasets=t.datasets||[],t.labels=t.labels||[],t}function Goe(t){return t=t||{},t.data=rH(t.data),nH(t),t}var _4=new Map,oH=new Set;function Jx(t,n){let e=_4.get(t);return e||(e=n(),_4.set(t,e),oH.add(e)),e}var qg=(t,n,e)=>{let i=_l(n,e);i!==void 0&&t.add(i)},UT=class{constructor(n){this._config=Goe(n),this._scopeCache=new Map,this._resolverCache=new Map}get platform(){return this._config.platform}get type(){return this._config.type}set type(n){this._config.type=n}get data(){return this._config.data}set data(n){this._config.data=rH(n)}get options(){return this._config.options}set options(n){this._config.options=n}get plugins(){return this._config.plugins}update(){let n=this._config;this.clearCache(),nH(n)}clearCache(){this._scopeCache.clear(),this._resolverCache.clear()}datasetScopeKeys(n){return Jx(n,()=>[[`datasets.${n}`,""]])}datasetAnimationScopeKeys(n,e){return Jx(`${n}.transition.${e}`,()=>[[`datasets.${n}.transitions.${e}`,`transitions.${e}`],[`datasets.${n}`,""]])}datasetElementScopeKeys(n,e){return Jx(`${n}-${e}`,()=>[[`datasets.${n}.elements.${e}`,`datasets.${n}`,`elements.${e}`,""]])}pluginScopeKeys(n){let e=n.id,i=this.type;return Jx(`${i}-plugin-${e}`,()=>[[`plugins.${e}`,...n.additionalOptionScopes||[]]])}_cachedScopes(n,e){let i=this._scopeCache,r=i.get(n);return(!r||e)&&(r=new Map,i.set(n,r)),r}getOptionScopes(n,e,i){let{options:r,type:o}=this,a=this._cachedScopes(n,i),s=a.get(e);if(s)return s;let l=new Set;e.forEach(d=>{n&&(l.add(n),d.forEach(m=>qg(l,n,m))),d.forEach(m=>qg(l,r,m)),d.forEach(m=>qg(l,Mc[o]||{},m)),d.forEach(m=>qg(l,xi,m)),d.forEach(m=>qg(l,$x,m))});let c=Array.from(l);return c.length===0&&c.push(Object.create(null)),oH.has(e)&&a.set(e,c),c}chartOptionScopes(){let{options:n,type:e}=this;return[n,Mc[e]||{},xi.datasets[e]||{},{type:e},xi,$x]}resolveNamedOptions(n,e,i,r=[""]){let o={$shared:!0},{resolver:a,subPrefixes:s}=b4(this._resolverCache,n,r),l=a;if(Yoe(a,e)){o.$shared=!1,i=fl(i)?i():i;let c=this.createResolver(n,i,s);l=yu(a,i,c)}for(let c of e)o[c]=l[c];return o}createResolver(n,e,i=[""],r){let{resolver:o}=b4(this._resolverCache,n,i);return St(e)?yu(o,e,void 0,r):o}};function b4(t,n,e){let i=t.get(n);i||(i=new Map,t.set(n,i));let r=e.join(),o=i.get(r);return o||(o={resolver:qx(n,e),subPrefixes:e.filter(s=>!s.toLowerCase().includes("hover"))},i.set(r,o)),o}var qoe=t=>St(t)&&Object.getOwnPropertyNames(t).some(n=>fl(t[n]));function Yoe(t,n){let{isScriptable:e,isIndexable:i}=mT(t);for(let r of n){let o=e(r),a=i(r),s=(a||o)&&t[r];if(o&&(fl(s)||qoe(s))||a&&Ei(s))return!0}return!1}var Qoe="4.5.1",Koe=["top","bottom","left","right","chartArea"];function v4(t,n){return t==="top"||t==="bottom"||Koe.indexOf(t)===-1&&n==="x"}function y4(t,n){return function(e,i){return e[t]===i[t]?e[n]-i[n]:e[t]-i[t]}}function x4(t){let n=t.chart,e=n.options.animation;n.notifyPlugins("afterRender"),yi(e&&e.onComplete,[t],n)}function Zoe(t){let n=t.chart,e=n.options.animation;yi(e&&e.onProgress,[t],n)}function aH(t){return Yx()&&typeof t=="string"?t=document.getElementById(t):t&&t.length&&(t=t[0]),t&&t.canvas&&(t=t.canvas),t}var rC={},C4=t=>{let n=aH(t);return Object.values(rC).filter(e=>e.canvas===n).pop()};function Xoe(t,n,e){let i=Object.keys(t);for(let r of i){let o=+r;if(o>=n){let a=t[r];delete t[r],(e>0||o>n)&&(t[o+e]=a)}}}function Joe(t,n,e,i){return!e||t.type==="mouseout"?null:i?n:t}var uC=(()=>{class t{static defaults=xi;static instances=rC;static overrides=Mc;static registry=Os;static version=Qoe;static getChart=C4;static register(...e){Os.add(...e),w4()}static unregister(...e){Os.remove(...e),w4()}constructor(e,i){let r=this.config=new UT(i),o=aH(e),a=C4(o);if(a)throw new Error("Canvas is already in use. Chart with ID '"+a.id+"' must be destroyed before the canvas with ID '"+a.canvas.id+"' can be reused.");let s=r.createResolver(r.chartOptionScopes(),this.getContext());this.platform=new(r.platform||yoe(o)),this.platform.updateConfig(r);let l=this.platform.acquireContext(o,s.aspectRatio),c=l&&l.canvas,d=c&&c.height,m=c&&c.width;if(this.id=xj(),this.ctx=l,this.canvas=c,this.width=m,this.height=d,this._options=s,this._aspectRatio=this.aspectRatio,this._layers=[],this._metasets=[],this._stacks=void 0,this.boxes=[],this.currentDevicePixelRatio=void 0,this.chartArea=void 0,this._active=[],this._lastEvent=void 0,this._listeners={},this._responsiveListeners=void 0,this._sortedMetasets=[],this.scales={},this._plugins=new jT,this.$proxies={},this._hiddenIndices={},this.attached=!1,this._animationsDisabled=void 0,this.$context=void 0,this._doResize=Oj(f=>this.update(f),s.resizeDelay||0),this._dataChanges=[],rC[this.id]=this,!l||!c){console.error("Failed to create chart: can't acquire context from the given item");return}vl.listen(this,"complete",x4),vl.listen(this,"progress",Zoe),this._initialize(),this.attached&&this.update()}get aspectRatio(){let{options:{aspectRatio:e,maintainAspectRatio:i},width:r,height:o,_aspectRatio:a}=this;return Et(e)?i&&a?a:o?r/o:null:e}get data(){return this.config.data}set data(e){this.config.data=e}get options(){return this._options}set options(e){this.config.options=e}get registry(){return Os}_initialize(){return this.notifyPlugins("beforeInit"),this.options.responsive?this.resize():gT(this,this.options.devicePixelRatio),this.bindEvents(),this.notifyPlugins("afterInit"),this}clear(){return cT(this.canvas,this.ctx),this}stop(){return vl.stop(this),this}resize(e,i){vl.running(this)?this._resizeBeforeDraw={width:e,height:i}:this._resize(e,i)}_resize(e,i){let r=this.options,o=this.canvas,a=r.maintainAspectRatio&&this.aspectRatio,s=this.platform.getMaximumSize(o,e,i,a),l=r.devicePixelRatio||this.platform.getDevicePixelRatio(),c=this.width?"resize":"attach";this.width=s.width,this.height=s.height,this._aspectRatio=this.aspectRatio,gT(this,l,!0)&&(this.notifyPlugins("resize",{size:s}),yi(r.onResize,[this,s],this),this.attached&&this._doResize(c)&&this.render())}ensureScalesHaveIDs(){let i=this.options.scales||{};ii(i,(r,o)=>{r.id=o})}buildOrUpdateScales(){let e=this.options,i=e.scales,r=this.scales,o=Object.keys(r).reduce((s,l)=>(s[l]=!1,s),{}),a=[];i&&(a=a.concat(Object.keys(i).map(s=>{let l=i[s],c=zT(s,l),d=c==="r",m=c==="x";return{options:l,dposition:d?"chartArea":m?"bottom":"left",dtype:d?"radialLinear":m?"category":"linear"}}))),ii(a,s=>{let l=s.options,c=l.id,d=zT(c,l),m=st(l.type,s.dtype);(l.position===void 0||v4(l.position,d)!==v4(s.dposition))&&(l.position=s.dposition),o[c]=!0;let f=null;if(c in r&&r[c].type===m)f=r[c];else{let b=Os.getScale(m);f=new b({id:c,type:m,ctx:this.ctx,chart:this}),r[f.id]=f}f.init(l,e)}),ii(o,(s,l)=>{s||delete r[l]}),ii(r,s=>{Dr.configure(this,s,s.options),Dr.addBox(this,s)})}_updateMetasets(){let e=this._metasets,i=this.data.datasets.length,r=e.length;if(e.sort((o,a)=>o.index-a.index),r>i){for(let o=i;oi.length&&delete this._stacks,e.forEach((r,o)=>{i.filter(a=>a===r._dataset).length===0&&this._destroyDatasetMeta(o)})}buildOrUpdateControllers(){let e=[],i=this.data.datasets,r,o;for(this._removeUnreferencedMetasets(),r=0,o=i.length;r{this.getDatasetMeta(i).controller.reset()},this)}reset(){this._resetElements(),this.notifyPlugins("reset")}update(e){let i=this.config;i.update();let r=this._options=i.createResolver(i.chartOptionScopes(),this.getContext()),o=this._animationsDisabled=!r.animation;if(this._updateScales(),this._checkEventBindings(),this._updateHiddenIndices(),this._plugins.invalidate(),this.notifyPlugins("beforeUpdate",{mode:e,cancelable:!0})===!1)return;let a=this.buildOrUpdateControllers();this.notifyPlugins("beforeElementsUpdate");let s=0;for(let d=0,m=this.data.datasets.length;d{d.reset()}),this._updateDatasets(e),this.notifyPlugins("afterUpdate",{mode:e}),this._layers.sort(y4("z","_idx"));let{_active:l,_lastEvent:c}=this;c?this._eventHandler(c,!0):l.length&&this._updateHoverStyles(l,l,!0),this.render()}_updateScales(){ii(this.scales,e=>{Dr.removeBox(this,e)}),this.ensureScalesHaveIDs(),this.buildOrUpdateScales()}_checkEventBindings(){let e=this.options,i=new Set(Object.keys(this._listeners)),r=new Set(e.events);(!KS(i,r)||!!this._responsiveListeners!==e.responsive)&&(this.unbindEvents(),this.bindEvents())}_updateHiddenIndices(){let{_hiddenIndices:e}=this,i=this._getUniformDataChanges()||[];for(let{method:r,start:o,count:a}of i){let s=r==="_removeElements"?-a:a;Xoe(e,o,s)}}_getUniformDataChanges(){let e=this._dataChanges;if(!e||!e.length)return;this._dataChanges=[];let i=this.data.datasets.length,r=a=>new Set(e.filter(s=>s[0]===a).map((s,l)=>l+","+s.splice(1).join(","))),o=r(0);for(let a=1;aa.split(",")).map(a=>({method:a[1],start:+a[2],count:+a[3]}))}_updateLayout(e){if(this.notifyPlugins("beforeLayout",{cancelable:!0})===!1)return;Dr.update(this,this.width,this.height,e);let i=this.chartArea,r=i.width<=0||i.height<=0;this._layers=[],ii(this.boxes,o=>{r&&o.position==="chartArea"||(o.configure&&o.configure(),this._layers.push(...o._layers()))},this),this._layers.forEach((o,a)=>{o._idx=a}),this.notifyPlugins("afterLayout")}_updateDatasets(e){if(this.notifyPlugins("beforeDatasetsUpdate",{mode:e,cancelable:!0})!==!1){for(let i=0,r=this.data.datasets.length;i=0;--i)this._drawDataset(e[i]);this.notifyPlugins("afterDatasetsDraw")}_drawDataset(e){let i=this.ctx,r={meta:e,index:e.index,cancelable:!0},o=CT(this,e);this.notifyPlugins("beforeDatasetDraw",r)!==!1&&(o&&Hg(i,o),e.controller.draw(),o&&zg(i),r.cancelable=!1,this.notifyPlugins("afterDatasetDraw",r))}isPointInArea(e){return Ss(e,this.chartArea,this._minPadding)}getElementsAtEventForMode(e,i,r,o){let a=toe.modes[i];return typeof a=="function"?a(this,e,r,o):[]}getDatasetMeta(e){let i=this.data.datasets[e],r=this._metasets,o=r.filter(a=>a&&a._dataset===i).pop();return o||(o={type:null,data:[],dataset:null,controller:null,hidden:null,xAxisID:null,yAxisID:null,order:i&&i.order||0,index:e,_dataset:i,_parsed:[],_sorted:!1},r.push(o)),o}getContext(){return this.$context||(this.$context=bl(null,{chart:this,type:"chart"}))}getVisibleDatasetCount(){return this.getSortedVisibleDatasetMetas().length}isDatasetVisible(e){let i=this.data.datasets[e];if(!i)return!1;let r=this.getDatasetMeta(e);return typeof r.hidden=="boolean"?!r.hidden:!i.hidden}setDatasetVisibility(e,i){let r=this.getDatasetMeta(e);r.hidden=!i}toggleDataVisibility(e){this._hiddenIndices[e]=!this._hiddenIndices[e]}getDataVisibility(e){return!this._hiddenIndices[e]}_updateVisibility(e,i,r){let o=r?"show":"hide",a=this.getDatasetMeta(e),s=a.controller._resolveAnimations(void 0,o);Nh(i)?(a.data[i].hidden=!r,this.update()):(this.setDatasetVisibility(e,r),s.update(a,{visible:r}),this.update(l=>l.datasetIndex===e?o:void 0))}hide(e,i){this._updateVisibility(e,i,!1)}show(e,i){this._updateVisibility(e,i,!0)}_destroyDatasetMeta(e){let i=this._metasets[e];i&&i.controller&&i.controller._destroy(),delete this._metasets[e]}_stop(){let e,i;for(this.stop(),vl.remove(this),e=0,i=this.data.datasets.length;e{i.addEventListener(this,a,s),e[a]=s},o=(a,s,l)=>{a.offsetX=s,a.offsetY=l,this._eventHandler(a)};ii(this.options.events,a=>r(a,o))}bindResponsiveEvents(){this._responsiveListeners||(this._responsiveListeners={});let e=this._responsiveListeners,i=this.platform,r=(c,d)=>{i.addEventListener(this,c,d),e[c]=d},o=(c,d)=>{e[c]&&(i.removeEventListener(this,c,d),delete e[c])},a=(c,d)=>{this.canvas&&this.resize(c,d)},s,l=()=>{o("attach",l),this.attached=!0,this.resize(),r("resize",a),r("detach",s)};s=()=>{this.attached=!1,o("resize",a),this._stop(),this._resize(0,0),r("attach",l)},i.isAttached(this.canvas)?l():s()}unbindEvents(){ii(this._listeners,(e,i)=>{this.platform.removeEventListener(this,i,e)}),this._listeners={},ii(this._responsiveListeners,(e,i)=>{this.platform.removeEventListener(this,i,e)}),this._responsiveListeners=void 0}updateHoverStyle(e,i,r){let o=r?"set":"remove",a,s,l,c;for(i==="dataset"&&(a=this.getDatasetMeta(e[0].datasetIndex),a.controller["_"+o+"DatasetHoverStyle"]()),l=0,c=e.length;l{let l=this.getDatasetMeta(a);if(!l)throw new Error("No dataset found at index "+a);return{datasetIndex:a,element:l.data[s],index:s}});!Bg(r,i)&&(this._active=r,this._lastEvent=null,this._updateHoverStyles(r,i))}notifyPlugins(e,i,r){return this._plugins.notify(this,e,i,r)}isPluginEnabled(e){return this._plugins._cache.filter(i=>i.plugin.id===e).length===1}_updateHoverStyles(e,i,r){let o=this.options.hover,a=(c,d)=>c.filter(m=>!d.some(f=>m.datasetIndex===f.datasetIndex&&m.index===f.index)),s=a(i,e),l=r?e:a(e,i);s.length&&this.updateHoverStyle(s,o.mode,!1),l.length&&o.mode&&this.updateHoverStyle(l,o.mode,!0)}_eventHandler(e,i){let r={event:e,replay:i,cancelable:!0,inChartArea:this.isPointInArea(e)},o=s=>(s.options.events||this.options.events).includes(e.native.type);if(this.notifyPlugins("beforeEvent",r,o)===!1)return;let a=this._handleEvent(e,i,r.inChartArea);return r.cancelable=!1,this.notifyPlugins("afterEvent",r,o),(a||r.changed)&&this.render(),this}_handleEvent(e,i,r){let{_active:o=[],options:a}=this,s=i,l=this._getActiveElements(e,o,r,s),c=Dj(e),d=Joe(e,this._lastEvent,r,c);r&&(this._lastEvent=null,yi(a.onHover,[e,l,this],this),c&&yi(a.onClick,[e,l,this],this));let m=!Bg(l,o);return(m||i)&&(this._active=l,this._updateHoverStyles(l,o,i)),this._lastEvent=d,m}_getActiveElements(e,i,r,o){if(e.type==="mouseout")return[];if(!r)return i;let a=this.options.hover;return this.getElementsAtEventForMode(e,a.mode,a,o)}}return t})();function w4(){return ii(uC.instances,t=>t._plugins.invalidate())}function eae(t,n,e){let{startAngle:i,x:r,y:o,outerRadius:a,innerRadius:s,options:l}=n,{borderWidth:c,borderJoinStyle:d}=l,m=Math.min(c/a,or(i-e));if(t.beginPath(),t.arc(r,o,a-c/2,i+m/2,e-m/2),s>0){let f=Math.min(c/s,or(i-e));t.arc(r,o,s+c/2,e-f/2,i+f/2,!0)}else{let f=Math.min(c/2,a*or(i-e));if(d==="round")t.arc(r,o,f,e-Ht/2,i+Ht/2,!0);else if(d==="bevel"){let b=2*f*f,v=-b*Math.cos(e+Ht/2)+r,w=-b*Math.sin(e+Ht/2)+o,x=b*Math.cos(i+Ht/2)+r,D=b*Math.sin(i+Ht/2)+o;t.lineTo(v,w),t.lineTo(x,D)}}t.closePath(),t.moveTo(0,0),t.rect(0,0,t.canvas.width,t.canvas.height),t.clip("evenodd")}function tae(t,n,e){let{startAngle:i,pixelMargin:r,x:o,y:a,outerRadius:s,innerRadius:l}=n,c=r/s;t.beginPath(),t.arc(o,a,s,i-c,e+c),l>r?(c=r/l,t.arc(o,a,l,e+c,i-c,!0)):t.arc(o,a,r,e+Zi,i-Zi),t.closePath(),t.clip()}function iae(t){return Gx(t,["outerStart","outerEnd","innerStart","innerEnd"])}function nae(t,n,e,i){let r=iae(t.options.borderRadius),o=(e-n)/2,a=Math.min(o,i*n/2),s=l=>{let c=(e-Math.min(o,l))*i/2;return Dn(l,0,Math.min(o,c))};return{outerStart:s(r.outerStart),outerEnd:s(r.outerEnd),innerStart:Dn(r.innerStart,0,a),innerEnd:Dn(r.innerEnd,0,a)}}function zh(t,n,e,i){return{x:e+t*Math.cos(n),y:i+t*Math.sin(n)}}function lC(t,n,e,i,r,o){let{x:a,y:s,startAngle:l,pixelMargin:c,innerRadius:d}=n,m=Math.max(n.outerRadius+i+e-c,0),f=d>0?d+i+e+c:0,b=0,v=r-l;if(i){let ui=d>0?d-i:0,Pi=m>0?m-i:0,en=(ui+Pi)/2,ma=en!==0?v*en/(en+i):v;b=(v-ma)/2}let w=Math.max(.001,v*m-e/Ht)/m,x=(v-w)/2,D=l+x+b,P=r-x-b,{outerStart:W,outerEnd:Z,innerStart:K,innerEnd:re}=nae(n,f,m,P-D),Ee=m-W,be=m-Z,Ve=D+W/Ee,yt=P-Z/be,bt=f+K,It=f+re,$n=D+K/bt,lo=P-re/It;if(t.beginPath(),o){let ui=(Ve+yt)/2;if(t.arc(a,s,m,Ve,ui),t.arc(a,s,m,ui,yt),Z>0){let lr=zh(be,yt,a,s);t.arc(lr.x,lr.y,Z,yt,P+Zi)}let Pi=zh(It,P,a,s);if(t.lineTo(Pi.x,Pi.y),re>0){let lr=zh(It,lo,a,s);t.arc(lr.x,lr.y,re,P+Zi,lo+Math.PI)}let en=(P-re/f+(D+K/f))/2;if(t.arc(a,s,f,P-re/f,en,!0),t.arc(a,s,f,en,D+K/f,!0),K>0){let lr=zh(bt,$n,a,s);t.arc(lr.x,lr.y,K,$n+Math.PI,D-Zi)}let ma=zh(Ee,D,a,s);if(t.lineTo(ma.x,ma.y),W>0){let lr=zh(Ee,Ve,a,s);t.arc(lr.x,lr.y,W,D-Zi,Ve)}}else{t.moveTo(a,s);let ui=Math.cos(Ve)*m+a,Pi=Math.sin(Ve)*m+s;t.lineTo(ui,Pi);let en=Math.cos(yt)*m+a,ma=Math.sin(yt)*m+s;t.lineTo(en,ma)}t.closePath()}function rae(t,n,e,i,r){let{fullCircles:o,startAngle:a,circumference:s}=n,l=n.endAngle;if(o){lC(t,n,e,i,l,r);for(let c=0;c=Ht&&b===0&&d!=="miter"&&eae(t,n,w),o||(lC(t,n,e,i,w,r),t.stroke())}var $T=class extends ja{static id="arc";static defaults={borderAlign:"center",borderColor:"#fff",borderDash:[],borderDashOffset:0,borderJoinStyle:void 0,borderRadius:0,borderWidth:2,offset:0,spacing:0,angle:void 0,circular:!0,selfJoin:!1};static defaultRoutes={backgroundColor:"backgroundColor"};static descriptors={_scriptable:!0,_indexable:n=>n!=="borderDash"};circumference;endAngle;fullCircles;innerRadius;outerRadius;pixelMargin;startAngle;constructor(n){super(),this.options=void 0,this.circumference=void 0,this.startAngle=void 0,this.endAngle=void 0,this.innerRadius=void 0,this.outerRadius=void 0,this.pixelMargin=0,this.fullCircles=0,n&&Object.assign(this,n)}inRange(n,e,i){let r=this.getProps(["x","y"],i),{angle:o,distance:a}=eT(r,{x:n,y:e}),{startAngle:s,endAngle:l,innerRadius:c,outerRadius:d,circumference:m}=this.getProps(["startAngle","endAngle","innerRadius","outerRadius","circumference"],i),f=(this.options.spacing+this.options.borderWidth)/2,b=st(m,l-s),v=Vh(o,s,l)&&s!==l,w=b>=Mi||v,x=Is(a,c+f,d+f);return w&&x}getCenterPoint(n){let{x:e,y:i,startAngle:r,endAngle:o,innerRadius:a,outerRadius:s}=this.getProps(["x","y","startAngle","endAngle","innerRadius","outerRadius"],n),{offset:l,spacing:c}=this.options,d=(r+o)/2,m=(a+s+c+l)/2;return{x:e+Math.cos(d)*m,y:i+Math.sin(d)*m}}tooltipPosition(n){return this.getCenterPoint(n)}draw(n){let{options:e,circumference:i}=this,r=(e.offset||0)/4,o=(e.spacing||0)/2,a=e.circular;if(this.pixelMargin=e.borderAlign==="inner"?.33:0,this.fullCircles=i>Mi?Math.floor(i/Mi):0,i===0||this.innerRadius<0||this.outerRadius<0)return;n.save();let s=(this.startAngle+this.endAngle)/2;n.translate(Math.cos(s)*r,Math.sin(s)*r);let l=1-Math.sin(Math.min(Ht,i||0)),c=r*l;n.fillStyle=e.backgroundColor,n.strokeStyle=e.borderColor,rae(n,this,c,o,a),oae(n,this,c,o,a),n.restore()}};function sH(t,n,e=n){t.lineCap=st(e.borderCapStyle,n.borderCapStyle),t.setLineDash(st(e.borderDash,n.borderDash)),t.lineDashOffset=st(e.borderDashOffset,n.borderDashOffset),t.lineJoin=st(e.borderJoinStyle,n.borderJoinStyle),t.lineWidth=st(e.borderWidth,n.borderWidth),t.strokeStyle=st(e.borderColor,n.borderColor)}function aae(t,n,e){t.lineTo(e.x,e.y)}function sae(t){return t.stepped?Nj:t.tension||t.cubicInterpolationMode==="monotone"?Lj:aae}function lH(t,n,e={}){let i=t.length,{start:r=0,end:o=i-1}=e,{start:a,end:s}=n,l=Math.max(r,a),c=Math.min(o,s),d=rs&&o>s;return{count:i,start:l,loop:n.loop,ilen:c(a+(c?s-Z:Z))%o,W=()=>{w!==x&&(t.lineTo(d,x),t.lineTo(d,w),t.lineTo(d,D))};for(l&&(b=r[P(0)],t.moveTo(b.x,b.y)),f=0;f<=s;++f){if(b=r[P(f)],b.skip)continue;let Z=b.x,K=b.y,re=Z|0;re===v?(Kx&&(x=K),d=(m*d+Z)/++m):(W(),t.lineTo(Z,K),v=re,m=0,w=x=K),D=K}W()}function WT(t){let n=t.options,e=n.borderDash&&n.borderDash.length;return!t._decimated&&!t._loop&&!n.tension&&n.cubicInterpolationMode!=="monotone"&&!n.stepped&&!e?cae:lae}function dae(t){return t.stepped?Gj:t.tension||t.cubicInterpolationMode==="monotone"?qj:Dc}function uae(t,n,e,i){let r=n._path;r||(r=n._path=new Path2D,n.path(r,e,i)&&r.closePath()),sH(t,n.options),t.stroke(r)}function mae(t,n,e,i){let{segments:r,options:o}=n,a=WT(n);for(let s of r)sH(t,o,s.style),t.beginPath(),a(t,n,s,{start:e,end:e+i-1})&&t.closePath(),t.stroke()}var hae=typeof Path2D=="function";function pae(t,n,e,i){hae&&!n.options.segment?uae(t,n,e,i):mae(t,n,e,i)}var mC=(()=>{class t extends ja{static id="line";static defaults={borderCapStyle:"butt",borderDash:[],borderDashOffset:0,borderJoinStyle:"miter",borderWidth:3,capBezierPoints:!0,cubicInterpolationMode:"default",fill:!1,spanGaps:!1,stepped:!1,tension:0};static defaultRoutes={backgroundColor:"backgroundColor",borderColor:"borderColor"};static descriptors={_scriptable:!0,_indexable:e=>e!=="borderDash"&&e!=="fill"};constructor(e){super(),this.animated=!0,this.options=void 0,this._chart=void 0,this._loop=void 0,this._fullLoop=void 0,this._path=void 0,this._points=void 0,this._segments=void 0,this._decimated=!1,this._pointsUpdated=!1,this._datasetIndex=void 0,e&&Object.assign(this,e)}updateControlPoints(e,i){let r=this.options;if((r.tension||r.cubicInterpolationMode==="monotone")&&!r.stepped&&!this._pointsUpdated){let o=r.spanGaps?this._loop:this._fullLoop;Uj(this._points,r,e,o,i),this._pointsUpdated=!0}}set points(e){this._points=e,delete this._segments,delete this._path,this._pointsUpdated=!1}get points(){return this._points}get segments(){return this._segments||(this._segments=Qj(this,this.options.segment))}first(){let e=this.segments,i=this.points;return e.length&&i[e[0].start]}last(){let e=this.segments,i=this.points,r=e.length;return r&&i[e[r-1].end]}interpolate(e,i){let r=this.options,o=e[i],a=this.points,s=xT(this,{property:i,start:o,end:o});if(!s.length)return;let l=[],c=dae(r),d,m;for(d=0,m=s.length;d{class t extends ja{static id="point";parsed;skip;stop;static defaults={borderWidth:1,hitRadius:1,hoverBorderWidth:1,hoverRadius:4,pointStyle:"circle",radius:3,rotation:0};static defaultRoutes={backgroundColor:"backgroundColor",borderColor:"borderColor"};constructor(e){super(),this.options=void 0,this.parsed=void 0,this.skip=void 0,this.stop=void 0,e&&Object.assign(this,e)}inRange(e,i,r){let o=this.options,{x:a,y:s}=this.getProps(["x","y"],r);return Math.pow(e-a,2)+Math.pow(i-s,2)t.replace("rgb(","rgba(").replace(")",", 0.5)"));function dH(t){return qT[t%qT.length]}function uH(t){return E4[t%E4.length]}function Cae(t,n){return t.borderColor=dH(n),t.backgroundColor=uH(n),++n}function wae(t,n){return t.backgroundColor=t.data.map(()=>dH(n++)),n}function Dae(t,n){return t.backgroundColor=t.data.map(()=>uH(n++)),n}function Eae(t){let n=0;return(e,i)=>{let r=t.getDatasetMeta(i).controller;r instanceof tI?n=wae(e,n):r instanceof X4?n=Dae(e,n):r&&(n=Cae(e,n))}}function M4(t){let n;for(n in t)if(t[n].borderColor||t[n].backgroundColor)return!0;return!1}function Mae(t){return t&&(t.borderColor||t.backgroundColor)}function kae(){return xi.borderColor!=="rgba(0,0,0,0.1)"||xi.backgroundColor!=="rgba(0,0,0,0.1)"}var Sae={id:"colors",defaults:{enabled:!0,forceOverride:!1},beforeLayout(t,n,e){if(!e.enabled)return;let{data:{datasets:i},options:r}=t.config,{elements:o}=r,a=M4(i)||Mae(r)||o&&M4(o)||kae();if(!e.forceOverride&&a)return;let s=Eae(t);i.forEach(s)}};function Tae(t,n,e,i,r){let o=r.samples||i;if(o>=e)return t.slice(n,n+e);let a=[],s=(e-2)/(o-2),l=0,c=n+e-1,d=n,m,f,b,v,w;for(a[l++]=t[d],m=0;mb&&(b=v,f=t[P],w=P);a[l++]=f,d=w}return a[l++]=t[c],a}function Iae(t,n,e,i){let r=0,o=0,a,s,l,c,d,m,f,b,v,w,x=[],D=n+e-1,P=t[n].x,Z=t[D].x-P;for(a=n;aw&&(w=c,f=a),r=(o*r+s.x)/++o;else{let re=a-1;if(!Et(m)&&!Et(f)){let Ee=Math.min(m,f),be=Math.max(m,f);Ee!==b&&Ee!==re&&x.push(De(M({},t[Ee]),{x:r})),be!==b&&be!==re&&x.push(De(M({},t[be]),{x:r}))}a>0&&re!==b&&x.push(t[re]),x.push(s),d=K,o=0,v=w=c,m=f=b=a}}return x}function mH(t){if(t._decimated){let n=t._data;delete t._decimated,delete t._data,Object.defineProperty(t,"data",{configurable:!0,enumerable:!0,writable:!0,value:n})}}function k4(t){t.data.datasets.forEach(n=>{mH(n)})}function Aae(t,n){let e=n.length,i=0,r,{iScale:o}=t,{min:a,max:s,minDefined:l,maxDefined:c}=o.getUserBounds();return l&&(i=Dn(ks(n,o.axis,a).lo,0,e-1)),c?r=Dn(ks(n,o.axis,s).hi+1,i,e)-i:r=e-i,{start:i,count:r}}var Oae={id:"decimation",defaults:{algorithm:"min-max",enabled:!1},beforeElementsUpdate:(t,n,e)=>{if(!e.enabled){k4(t);return}let i=t.width;t.data.datasets.forEach((r,o)=>{let{_data:a,indexAxis:s}=r,l=t.getDatasetMeta(o),c=a||r.data;if(Hh([s,t.options.indexAxis])==="y"||!l.controller.supportsDecimation)return;let d=t.scales[l.xAxisID];if(d.type!=="linear"&&d.type!=="time"||t.options.parsing)return;let{start:m,count:f}=Aae(l,c),b=e.threshold||4*i;if(f<=b){mH(r);return}Et(a)&&(r._data=c,delete r.data,Object.defineProperty(r,"data",{configurable:!0,enumerable:!0,get:function(){return this._decimated},set:function(w){this._data=w}}));let v;switch(e.algorithm){case"lttb":v=Tae(c,m,f,i,e);break;case"min-max":v=Iae(c,m,f,i);break;default:throw new Error(`Unsupported decimation algorithm '${e.algorithm}'`)}r._decimated=v})},destroy(t){k4(t)}};function Rae(t,n,e){let i=t.segments,r=t.points,o=n.points,a=[];for(let s of i){let{start:l,end:c}=s;c=hC(l,c,r);let d=YT(e,r[l],r[c],s.loop);if(!n.segments){a.push({source:s,target:d,start:r[l],end:r[c]});continue}let m=xT(n,d);for(let f of m){let b=YT(e,o[f.start],o[f.end],f.loop),v=yT(s,r,b);for(let w of v)a.push({source:w,target:f,start:{[e]:S4(d,b,"start",Math.max)},end:{[e]:S4(d,b,"end",Math.min)}})}}return a}function YT(t,n,e,i){if(i)return;let r=n[t],o=e[t];return t==="angle"&&(r=or(r),o=or(o)),{property:t,start:r,end:o}}function Pae(t,n){let{x:e=null,y:i=null}=t||{},r=n.points,o=[];return n.segments.forEach(({start:a,end:s})=>{s=hC(a,s,r);let l=r[a],c=r[s];i!==null?(o.push({x:l.x,y:i}),o.push({x:c.x,y:i})):e!==null&&(o.push({x:e,y:l.y}),o.push({x:e,y:c.y}))}),o}function hC(t,n,e){for(;n>t;n--){let i=e[n];if(!isNaN(i.x)&&!isNaN(i.y))break}return n}function S4(t,n,e,i){return t&&n?i(t[e],n[e]):t?t[e]:n?n[e]:0}function hH(t,n){let e=[],i=!1;return Ei(t)?(i=!0,e=t):e=Pae(t,n),e.length?new mC({points:e,options:{tension:0},_loop:i,_fullLoop:i}):null}function T4(t){return t&&t.fill!==!1}function Fae(t,n,e){let r=t[n].fill,o=[n],a;if(!e)return r;for(;r!==!1&&o.indexOf(r)===-1;){if(!Gi(r))return r;if(a=t[r],!a)return!1;if(a.visible)return r;o.push(r),r=a.fill}return!1}function Nae(t,n,e){let i=jae(t);if(St(i))return isNaN(i.value)?!1:i;let r=parseFloat(i);return Gi(r)&&Math.floor(r)===r?Lae(i[0],n,r,e):["origin","start","end","stack","shape"].indexOf(i)>=0&&i}function Lae(t,n,e,i){return(t==="-"||t==="+")&&(e=n+e),e===n||e<0||e>=i?!1:e}function Vae(t,n){let e=null;return t==="start"?e=n.bottom:t==="end"?e=n.top:St(t)?e=n.getPixelForValue(t.value):n.getBasePixel&&(e=n.getBasePixel()),e}function Bae(t,n,e){let i;return t==="start"?i=e:t==="end"?i=n.options.reverse?n.min:n.max:St(t)?i=t.value:i=n.getBaseValue(),i}function jae(t){let n=t.options,e=n.fill,i=st(e&&e.target,e);return i===void 0&&(i=!!n.backgroundColor),i===!1||i===null?!1:i===!0?"origin":i}function Hae(t){let{scale:n,index:e,line:i}=t,r=[],o=i.segments,a=i.points,s=zae(n,e);s.push(hH({x:null,y:n.bottom},i));for(let l=0;l=0;--a){let s=r[a].$filler;s&&(s.line.updateControlPoints(o,s.axis),i&&s.fill&&OT(t.ctx,s,o))}},beforeDatasetsDraw(t,n,e){if(e.drawTime!=="beforeDatasetsDraw")return;let i=t.getSortedVisibleDatasetMetas();for(let r=i.length-1;r>=0;--r){let o=i[r].$filler;T4(o)&&OT(t.ctx,o,t.chartArea)}},beforeDatasetDraw(t,n,e){let i=n.meta.$filler;!T4(i)||e.drawTime!=="beforeDatasetDraw"||OT(t.ctx,i,t.chartArea)},defaults:{propagate:!0,drawTime:"beforeDatasetDraw"}},R4=(t,n)=>{let{boxHeight:e=n,boxWidth:i=n}=t;return t.usePointStyle&&(e=Math.min(e,n),i=t.pointStyleWidth||Math.min(i,n)),{boxWidth:i,boxHeight:e,itemHeight:Math.max(n,e)}},Jae=(t,n)=>t!==null&&n!==null&&t.datasetIndex===n.datasetIndex&&t.index===n.index,dC=class extends ja{constructor(n){super(),this._added=!1,this.legendHitBoxes=[],this._hoveredItem=null,this.doughnutMode=!1,this.chart=n.chart,this.options=n.options,this.ctx=n.ctx,this.legendItems=void 0,this.columnSizes=void 0,this.lineWidths=void 0,this.maxHeight=void 0,this.maxWidth=void 0,this.top=void 0,this.bottom=void 0,this.left=void 0,this.right=void 0,this.height=void 0,this.width=void 0,this._margins=void 0,this.position=void 0,this.weight=void 0,this.fullSize=void 0}update(n,e,i){this.maxWidth=n,this.maxHeight=e,this._margins=i,this.setDimensions(),this.buildLabels(),this.fit()}setDimensions(){this.isHorizontal()?(this.width=this.maxWidth,this.left=this._margins.left,this.right=this.width):(this.height=this.maxHeight,this.top=this._margins.top,this.bottom=this.height)}buildLabels(){let n=this.options.labels||{},e=yi(n.generateLabels,[this.chart],this)||[];n.filter&&(e=e.filter(i=>n.filter(i,this.chart.data))),n.sort&&(e=e.sort((i,r)=>n.sort(i,r,this.chart.data))),this.options.reverse&&e.reverse(),this.legendItems=e}fit(){let{options:n,ctx:e}=this;if(!n.display){this.width=this.height=0;return}let i=n.labels,r=pn(i.font),o=r.size,a=this._computeTitleHeight(),{boxWidth:s,itemHeight:l}=R4(i,o),c,d;e.font=r.string,this.isHorizontal()?(c=this.maxWidth,d=this._fitRows(a,o,s,l)+10):(d=this.maxHeight,c=this._fitCols(a,r,s,l)+10),this.width=Math.min(c,n.maxWidth||this.maxWidth),this.height=Math.min(d,n.maxHeight||this.maxHeight)}_fitRows(n,e,i,r){let{ctx:o,maxWidth:a,options:{labels:{padding:s}}}=this,l=this.legendHitBoxes=[],c=this.lineWidths=[0],d=r+s,m=n;o.textAlign="left",o.textBaseline="middle";let f=-1,b=-d;return this.legendItems.forEach((v,w)=>{let x=i+e/2+o.measureText(v.text).width;(w===0||c[c.length-1]+x+2*s>a)&&(m+=d,c[c.length-(w>0?0:1)]=0,b+=d,f++),l[w]={left:0,top:b,row:f,width:x,height:r},c[c.length-1]+=x+s}),m}_fitCols(n,e,i,r){let{ctx:o,maxHeight:a,options:{labels:{padding:s}}}=this,l=this.legendHitBoxes=[],c=this.columnSizes=[],d=a-n,m=s,f=0,b=0,v=0,w=0;return this.legendItems.forEach((x,D)=>{let{itemWidth:P,itemHeight:W}=ese(i,e,o,x,r);D>0&&b+W+2*s>d&&(m+=f+s,c.push({width:f,height:b}),v+=f+s,w++,f=b=0),l[D]={left:v,top:b,col:w,width:P,height:W},f=Math.max(f,P),b+=W+s}),m+=f,c.push({width:f,height:b}),m}adjustHitBoxes(){if(!this.options.display)return;let n=this._computeTitleHeight(),{legendHitBoxes:e,options:{align:i,labels:{padding:r},rtl:o}}=this,a=Cu(o,this.left,this.width);if(this.isHorizontal()){let s=0,l=ar(i,this.left+r,this.right-this.lineWidths[s]);for(let c of e)s!==c.row&&(s=c.row,l=ar(i,this.left+r,this.right-this.lineWidths[s])),c.top+=this.top+n+r,c.left=a.leftForLtr(a.x(l),c.width),l+=c.width+r}else{let s=0,l=ar(i,this.top+n+r,this.bottom-this.columnSizes[s].height);for(let c of e)c.col!==s&&(s=c.col,l=ar(i,this.top+n+r,this.bottom-this.columnSizes[s].height)),c.top=l,c.left+=this.left+r,c.left=a.leftForLtr(a.x(c.left),c.width),l+=c.height+r}}isHorizontal(){return this.options.position==="top"||this.options.position==="bottom"}draw(){if(this.options.display){let n=this.ctx;Hg(n,this),this._draw(),zg(n)}}_draw(){let{options:n,columnSizes:e,lineWidths:i,ctx:r}=this,{align:o,labels:a}=n,s=xi.color,l=Cu(n.rtl,this.left,this.width),c=pn(a.font),{padding:d}=a,m=c.size,f=m/2,b;this.drawTitle(),r.textAlign=l.textAlign("left"),r.textBaseline="middle",r.lineWidth=.5,r.font=c.string;let{boxWidth:v,boxHeight:w,itemHeight:x}=R4(a,m),D=function(re,Ee,be){if(isNaN(v)||v<=0||isNaN(w)||w<0)return;r.save();let Ve=st(be.lineWidth,1);if(r.fillStyle=st(be.fillStyle,s),r.lineCap=st(be.lineCap,"butt"),r.lineDashOffset=st(be.lineDashOffset,0),r.lineJoin=st(be.lineJoin,"miter"),r.lineWidth=Ve,r.strokeStyle=st(be.strokeStyle,s),r.setLineDash(st(be.lineDash,[])),a.usePointStyle){let yt={radius:w*Math.SQRT2/2,pointStyle:be.pointStyle,rotation:be.rotation,borderWidth:Ve},bt=l.xPlus(re,v/2),It=Ee+f;dT(r,yt,bt,It,a.pointStyleWidth&&v)}else{let yt=Ee+Math.max((m-w)/2,0),bt=l.leftForLtr(re,v),It=Tc(be.borderRadius);r.beginPath(),Object.values(It).some($n=>$n!==0)?jh(r,{x:bt,y:yt,w:v,h:w,radius:It}):r.rect(bt,yt,v,w),r.fill(),Ve!==0&&r.stroke()}r.restore()},P=function(re,Ee,be){Sc(r,be.text,re,Ee+x/2,c,{strikethrough:be.hidden,textAlign:l.textAlign(be.textAlign)})},W=this.isHorizontal(),Z=this._computeTitleHeight();W?b={x:ar(o,this.left+d,this.right-i[0]),y:this.top+d+Z,line:0}:b={x:this.left+d,y:ar(o,this.top+Z+d,this.bottom-e[0].height),line:0},bT(this.ctx,n.textDirection);let K=x+d;this.legendItems.forEach((re,Ee)=>{r.strokeStyle=re.fontColor,r.fillStyle=re.fontColor;let be=r.measureText(re.text).width,Ve=l.textAlign(re.textAlign||(re.textAlign=a.textAlign)),yt=v+f+be,bt=b.x,It=b.y;l.setWidth(this.width),W?Ee>0&&bt+yt+d>this.right&&(It=b.y+=K,b.line++,bt=b.x=ar(o,this.left+d,this.right-i[b.line])):Ee>0&&It+K>this.bottom&&(bt=b.x=bt+e[b.line].width+d,b.line++,It=b.y=ar(o,this.top+Z+d,this.bottom-e[b.line].height));let $n=l.x(bt);if(D($n,It,re),bt=Rj(Ve,bt+v+f,W?bt+yt:this.right,n.rtl),P(l.x(bt),It,re),W)b.x+=yt+d;else if(typeof re.text!="string"){let lo=c.lineHeight;b.y+=pH(re,lo)+d}else b.y+=K}),vT(this.ctx,n.textDirection)}drawTitle(){let n=this.options,e=n.title,i=pn(e.font),r=sr(e.padding);if(!e.display)return;let o=Cu(n.rtl,this.left,this.width),a=this.ctx,s=e.position,l=i.size/2,c=r.top+l,d,m=this.left,f=this.width;if(this.isHorizontal())f=Math.max(...this.lineWidths),d=this.top+c,m=ar(n.align,m,this.right-f);else{let v=this.columnSizes.reduce((w,x)=>Math.max(w,x.height),0);d=c+ar(n.align,this.top,this.bottom-v-n.labels.padding-this._computeTitleHeight())}let b=ar(s,m,m+f);a.textAlign=o.textAlign(Ux(s)),a.textBaseline="middle",a.strokeStyle=e.color,a.fillStyle=e.color,a.font=i.string,Sc(a,e.text,b,d,i)}_computeTitleHeight(){let n=this.options.title,e=pn(n.font),i=sr(n.padding);return n.display?e.lineHeight+i.height:0}_getLegendItemAt(n,e){let i,r,o;if(Is(n,this.left,this.right)&&Is(e,this.top,this.bottom)){for(o=this.legendHitBoxes,i=0;io.length>a.length?o:a)),n+e.size/2+i.measureText(r).width}function ise(t,n,e){let i=t;return typeof n.text!="string"&&(i=pH(n,e)),i}function pH(t,n){let e=t.text?t.text.length:0;return n*e}function nse(t,n){return!!((t==="mousemove"||t==="mouseout")&&(n.onHover||n.onLeave)||n.onClick&&(t==="click"||t==="mouseup"))}var rse={id:"legend",_element:dC,start(t,n,e){let i=t.legend=new dC({ctx:t.ctx,options:e,chart:t});Dr.configure(t,i,e),Dr.addBox(t,i)},stop(t){Dr.removeBox(t,t.legend),delete t.legend},beforeUpdate(t,n,e){let i=t.legend;Dr.configure(t,i,e),i.options=e},afterUpdate(t){let n=t.legend;n.buildLabels(),n.adjustHitBoxes()},afterEvent(t,n){n.replay||t.legend.handleEvent(n.event)},defaults:{display:!0,position:"top",align:"center",fullSize:!0,reverse:!1,weight:1e3,onClick(t,n,e){let i=n.datasetIndex,r=e.chart;r.isDatasetVisible(i)?(r.hide(i),n.hidden=!0):(r.show(i),n.hidden=!1)},onHover:null,onLeave:null,labels:{color:t=>t.chart.options.color,boxWidth:40,padding:10,generateLabels(t){let n=t.data.datasets,{labels:{usePointStyle:e,pointStyle:i,textAlign:r,color:o,useBorderRadius:a,borderRadius:s}}=t.legend.options;return t._getSortedDatasetMetas().map(l=>{let c=l.controller.getStyle(e?0:void 0),d=sr(c.borderWidth);return{text:n[l.index].label,fillStyle:c.backgroundColor,fontColor:o,hidden:!l.visible,lineCap:c.borderCapStyle,lineDash:c.borderDash,lineDashOffset:c.borderDashOffset,lineJoin:c.borderJoinStyle,lineWidth:(d.width+d.height)/4,strokeStyle:c.borderColor,pointStyle:i||c.pointStyle,rotation:c.rotation,textAlign:r||c.textAlign,borderRadius:a&&(s||c.borderRadius),datasetIndex:l.index}},this)}},title:{color:t=>t.chart.options.color,display:!1,position:"center",text:""}},descriptors:{_scriptable:t=>!t.startsWith("on"),labels:{_scriptable:t=>!["generateLabels","filter","sort"].includes(t)}}},Zg=class extends ja{constructor(n){super(),this.chart=n.chart,this.options=n.options,this.ctx=n.ctx,this._padding=void 0,this.top=void 0,this.bottom=void 0,this.left=void 0,this.right=void 0,this.width=void 0,this.height=void 0,this.position=void 0,this.weight=void 0,this.fullSize=void 0}update(n,e){let i=this.options;if(this.left=0,this.top=0,!i.display){this.width=this.height=this.right=this.bottom=0;return}this.width=this.right=n,this.height=this.bottom=e;let r=Ei(i.text)?i.text.length:1;this._padding=sr(i.padding);let o=r*pn(i.font).lineHeight+this._padding.height;this.isHorizontal()?this.height=o:this.width=o}isHorizontal(){let n=this.options.position;return n==="top"||n==="bottom"}_drawArgs(n){let{top:e,left:i,bottom:r,right:o,options:a}=this,s=a.align,l=0,c,d,m;return this.isHorizontal()?(d=ar(s,i,o),m=e+n,c=o-i):(a.position==="left"?(d=i+n,m=ar(s,r,e),l=Ht*-.5):(d=o-n,m=ar(s,e,r),l=Ht*.5),c=r-e),{titleX:d,titleY:m,maxWidth:c,rotation:l}}draw(){let n=this.ctx,e=this.options;if(!e.display)return;let i=pn(e.font),o=i.lineHeight/2+this._padding.top,{titleX:a,titleY:s,maxWidth:l,rotation:c}=this._drawArgs(o);Sc(n,e.text,0,0,i,{color:e.color,maxWidth:l,rotation:c,textAlign:Ux(e.align),textBaseline:"middle",translation:[a,s]})}};function ose(t,n){let e=new Zg({ctx:t.ctx,options:n,chart:t});Dr.configure(t,e,n),Dr.addBox(t,e),t.titleBlock=e}var ase={id:"title",_element:Zg,start(t,n,e){ose(t,e)},stop(t){let n=t.titleBlock;Dr.removeBox(t,n),delete t.titleBlock},beforeUpdate(t,n,e){let i=t.titleBlock;Dr.configure(t,i,e),i.options=e},defaults:{align:"center",display:!1,font:{weight:"bold"},fullSize:!0,padding:10,position:"top",text:"",weight:2e3},defaultRoutes:{color:"color"},descriptors:{_scriptable:!0,_indexable:!1}},eC=new WeakMap,sse={id:"subtitle",start(t,n,e){let i=new Zg({ctx:t.ctx,options:e,chart:t});Dr.configure(t,i,e),Dr.addBox(t,i),eC.set(t,i)},stop(t){Dr.removeBox(t,eC.get(t)),eC.delete(t)},beforeUpdate(t,n,e){let i=eC.get(t);Dr.configure(t,i,e),i.options=e},defaults:{align:"center",display:!1,font:{weight:"normal"},fullSize:!0,padding:0,position:"top",text:"",weight:1500},defaultRoutes:{color:"color"},descriptors:{_scriptable:!0,_indexable:!1}},Qg={average(t){if(!t.length)return!1;let n,e,i=new Set,r=0,o=0;for(n=0,e=t.length;ns+l)/i.size,y:r/o}},nearest(t,n){if(!t.length)return!1;let e=n.x,i=n.y,r=Number.POSITIVE_INFINITY,o,a,s;for(o=0,a=t.length;o-1?t.split(` +`):t}function lse(t,n){let{element:e,datasetIndex:i,index:r}=n,o=t.getDatasetMeta(i).controller,{label:a,value:s}=o.getLabelAndValue(r);return{chart:t,label:a,parsed:o.getParsed(r),raw:t.data.datasets[i].data[r],formattedValue:s,dataset:o.getDataset(),dataIndex:r,datasetIndex:i,element:e}}function P4(t,n){let e=t.chart.ctx,{body:i,footer:r,title:o}=t,{boxWidth:a,boxHeight:s}=n,l=pn(n.bodyFont),c=pn(n.titleFont),d=pn(n.footerFont),m=o.length,f=r.length,b=i.length,v=sr(n.padding),w=v.height,x=0,D=i.reduce((Z,K)=>Z+K.before.length+K.lines.length+K.after.length,0);if(D+=t.beforeBody.length+t.afterBody.length,m&&(w+=m*c.lineHeight+(m-1)*n.titleSpacing+n.titleMarginBottom),D){let Z=n.displayColors?Math.max(s,l.lineHeight):l.lineHeight;w+=b*Z+(D-b)*l.lineHeight+(D-1)*n.bodySpacing}f&&(w+=n.footerMarginTop+f*d.lineHeight+(f-1)*n.footerSpacing);let P=0,W=function(Z){x=Math.max(x,e.measureText(Z).width+P)};return e.save(),e.font=c.string,ii(t.title,W),e.font=l.string,ii(t.beforeBody.concat(t.afterBody),W),P=n.displayColors?a+2+n.boxPadding:0,ii(i,Z=>{ii(Z.before,W),ii(Z.lines,W),ii(Z.after,W)}),P=0,e.font=d.string,ii(t.footer,W),e.restore(),x+=v.width,{width:x,height:w}}function cse(t,n){let{y:e,height:i}=n;return et.height-i/2?"bottom":"center"}function dse(t,n,e,i){let{x:r,width:o}=i,a=e.caretSize+e.caretPadding;if(t==="left"&&r+o+a>n.width||t==="right"&&r-o-a<0)return!0}function use(t,n,e,i){let{x:r,width:o}=e,{width:a,chartArea:{left:s,right:l}}=t,c="center";return i==="center"?c=r<=(s+l)/2?"left":"right":r<=o/2?c="left":r>=a-o/2&&(c="right"),dse(c,t,n,e)&&(c="center"),c}function F4(t,n,e){let i=e.yAlign||n.yAlign||cse(t,e);return{xAlign:e.xAlign||n.xAlign||use(t,n,e,i),yAlign:i}}function mse(t,n){let{x:e,width:i}=t;return n==="right"?e-=i:n==="center"&&(e-=i/2),e}function hse(t,n,e){let{y:i,height:r}=t;return n==="top"?i+=e:n==="bottom"?i-=r+e:i-=r/2,i}function N4(t,n,e,i){let{caretSize:r,caretPadding:o,cornerRadius:a}=t,{xAlign:s,yAlign:l}=e,c=r+o,{topLeft:d,topRight:m,bottomLeft:f,bottomRight:b}=Tc(a),v=mse(n,s),w=hse(n,l,c);return l==="center"?s==="left"?v+=c:s==="right"&&(v-=c):s==="left"?v-=Math.max(d,f)+r:s==="right"&&(v+=Math.max(m,b)+r),{x:Dn(v,0,i.width-n.width),y:Dn(w,0,i.height-n.height)}}function tC(t,n,e){let i=sr(e.padding);return n==="center"?t.x+t.width/2:n==="right"?t.x+t.width-i.right:t.x+i.left}function L4(t){return As([],yl(t))}function pse(t,n,e){return bl(t,{tooltip:n,tooltipItems:e,type:"tooltip"})}function V4(t,n){let e=n&&n.dataset&&n.dataset.tooltip&&n.dataset.tooltip.callbacks;return e?t.override(e):t}var fH={beforeTitle:Ts,title(t){if(t.length>0){let n=t[0],e=n.chart.data.labels,i=e?e.length:0;if(this&&this.options&&this.options.mode==="dataset")return n.dataset.label||"";if(n.label)return n.label;if(i>0&&n.dataIndex"u"?fH[n].call(e,i):r}var B4=(()=>{class t extends ja{static positioners=Qg;constructor(e){super(),this.opacity=0,this._active=[],this._eventPosition=void 0,this._size=void 0,this._cachedAnimations=void 0,this._tooltipItems=[],this.$animations=void 0,this.$context=void 0,this.chart=e.chart,this.options=e.options,this.dataPoints=void 0,this.title=void 0,this.beforeBody=void 0,this.body=void 0,this.afterBody=void 0,this.footer=void 0,this.xAlign=void 0,this.yAlign=void 0,this.x=void 0,this.y=void 0,this.height=void 0,this.width=void 0,this.caretX=void 0,this.caretY=void 0,this.labelColors=void 0,this.labelPointStyles=void 0,this.labelTextColors=void 0}initialize(e){this.options=e,this._cachedAnimations=void 0,this.$context=void 0}_resolveAnimations(){let e=this._cachedAnimations;if(e)return e;let i=this.chart,r=this.options.setContext(this.getContext()),o=r.enabled&&i.options.animation&&r.animations,a=new oC(this.chart,o);return o._cacheable&&(this._cachedAnimations=Object.freeze(a)),a}getContext(){return this.$context||(this.$context=pse(this.chart.getContext(),this,this._tooltipItems))}getTitle(e,i){let{callbacks:r}=i,o=ro(r,"beforeTitle",this,e),a=ro(r,"title",this,e),s=ro(r,"afterTitle",this,e),l=[];return l=As(l,yl(o)),l=As(l,yl(a)),l=As(l,yl(s)),l}getBeforeBody(e,i){return L4(ro(i.callbacks,"beforeBody",this,e))}getBody(e,i){let{callbacks:r}=i,o=[];return ii(e,a=>{let s={before:[],lines:[],after:[]},l=V4(r,a);As(s.before,yl(ro(l,"beforeLabel",this,a))),As(s.lines,ro(l,"label",this,a)),As(s.after,yl(ro(l,"afterLabel",this,a))),o.push(s)}),o}getAfterBody(e,i){return L4(ro(i.callbacks,"afterBody",this,e))}getFooter(e,i){let{callbacks:r}=i,o=ro(r,"beforeFooter",this,e),a=ro(r,"footer",this,e),s=ro(r,"afterFooter",this,e),l=[];return l=As(l,yl(o)),l=As(l,yl(a)),l=As(l,yl(s)),l}_createItems(e){let i=this._active,r=this.chart.data,o=[],a=[],s=[],l=[],c,d;for(c=0,d=i.length;ce.filter(m,f,b,r))),e.itemSort&&(l=l.sort((m,f)=>e.itemSort(m,f,r))),ii(l,m=>{let f=V4(e.callbacks,m);o.push(ro(f,"labelColor",this,m)),a.push(ro(f,"labelPointStyle",this,m)),s.push(ro(f,"labelTextColor",this,m))}),this.labelColors=o,this.labelPointStyles=a,this.labelTextColors=s,this.dataPoints=l,l}update(e,i){let r=this.options.setContext(this.getContext()),o=this._active,a,s=[];if(!o.length)this.opacity!==0&&(a={opacity:0});else{let l=Qg[r.position].call(this,o,this._eventPosition);s=this._createItems(r),this.title=this.getTitle(s,r),this.beforeBody=this.getBeforeBody(s,r),this.body=this.getBody(s,r),this.afterBody=this.getAfterBody(s,r),this.footer=this.getFooter(s,r);let c=this._size=P4(this,r),d=Object.assign({},l,c),m=F4(this.chart,r,d),f=N4(r,d,m,this.chart);this.xAlign=m.xAlign,this.yAlign=m.yAlign,a={opacity:1,x:f.x,y:f.y,width:c.width,height:c.height,caretX:l.x,caretY:l.y}}this._tooltipItems=s,this.$context=void 0,a&&this._resolveAnimations().update(this,a),e&&r.external&&r.external.call(this,{chart:this.chart,tooltip:this,replay:i})}drawCaret(e,i,r,o){let a=this.getCaretPosition(e,r,o);i.lineTo(a.x1,a.y1),i.lineTo(a.x2,a.y2),i.lineTo(a.x3,a.y3)}getCaretPosition(e,i,r){let{xAlign:o,yAlign:a}=this,{caretSize:s,cornerRadius:l}=r,{topLeft:c,topRight:d,bottomLeft:m,bottomRight:f}=Tc(l),{x:b,y:v}=e,{width:w,height:x}=i,D,P,W,Z,K,re;return a==="center"?(K=v+x/2,o==="left"?(D=b,P=D-s,Z=K+s,re=K-s):(D=b+w,P=D+s,Z=K-s,re=K+s),W=D):(o==="left"?P=b+Math.max(c,m)+s:o==="right"?P=b+w-Math.max(d,f)-s:P=this.caretX,a==="top"?(Z=v,K=Z-s,D=P-s,W=P+s):(Z=v+x,K=Z+s,D=P+s,W=P-s),re=Z),{x1:D,x2:P,x3:W,y1:Z,y2:K,y3:re}}drawTitle(e,i,r){let o=this.title,a=o.length,s,l,c;if(a){let d=Cu(r.rtl,this.x,this.width);for(e.x=tC(this,r.titleAlign,r),i.textAlign=d.textAlign(r.titleAlign),i.textBaseline="middle",s=pn(r.titleFont),l=r.titleSpacing,i.fillStyle=r.titleColor,i.font=s.string,c=0;cW!==0)?(e.beginPath(),e.fillStyle=a.multiKeyBackground,jh(e,{x,y:w,w:d,h:c,radius:P}),e.fill(),e.stroke(),e.fillStyle=s.backgroundColor,e.beginPath(),jh(e,{x:D,y:w+1,w:d-2,h:c-2,radius:P}),e.fill()):(e.fillStyle=a.multiKeyBackground,e.fillRect(x,w,d,c),e.strokeRect(x,w,d,c),e.fillStyle=s.backgroundColor,e.fillRect(D,w+1,d-2,c-2))}e.fillStyle=this.labelTextColors[r]}drawBody(e,i,r){let{body:o}=this,{bodySpacing:a,bodyAlign:s,displayColors:l,boxHeight:c,boxWidth:d,boxPadding:m}=r,f=pn(r.bodyFont),b=f.lineHeight,v=0,w=Cu(r.rtl,this.x,this.width),x=function(Ve){i.fillText(Ve,w.x(e.x+v),e.y+b/2),e.y+=b+a},D=w.textAlign(s),P,W,Z,K,re,Ee,be;for(i.textAlign=s,i.textBaseline="middle",i.font=f.string,e.x=tC(this,D,r),i.fillStyle=r.bodyColor,ii(this.beforeBody,x),v=l&&D!=="right"?s==="center"?d/2+m:d+2+m:0,K=0,Ee=o.length;K0&&i.stroke()}_updateAnimationTarget(e){let i=this.chart,r=this.$animations,o=r&&r.x,a=r&&r.y;if(o||a){let s=Qg[e.position].call(this,this._active,this._eventPosition);if(!s)return;let l=this._size=P4(this,e),c=Object.assign({},s,this._size),d=F4(i,e,c),m=N4(e,c,d,i);(o._to!==m.x||a._to!==m.y)&&(this.xAlign=d.xAlign,this.yAlign=d.yAlign,this.width=l.width,this.height=l.height,this.caretX=s.x,this.caretY=s.y,this._resolveAnimations().update(this,m))}}_willRender(){return!!this.opacity}draw(e){let i=this.options.setContext(this.getContext()),r=this.opacity;if(!r)return;this._updateAnimationTarget(i);let o={width:this.width,height:this.height},a={x:this.x,y:this.y};r=Math.abs(r)<.001?0:r;let s=sr(i.padding),l=this.title.length||this.beforeBody.length||this.body.length||this.afterBody.length||this.footer.length;i.enabled&&l&&(e.save(),e.globalAlpha=r,this.drawBackground(a,e,o,i),bT(e,i.textDirection),a.y+=s.top,this.drawTitle(a,e,i),this.drawBody(a,e,i),this.drawFooter(a,e,i),vT(e,i.textDirection),e.restore())}getActiveElements(){return this._active||[]}setActiveElements(e,i){let r=this._active,o=e.map(({datasetIndex:l,index:c})=>{let d=this.chart.getDatasetMeta(l);if(!d)throw new Error("Cannot find a dataset at index "+l);return{datasetIndex:l,element:d.data[c],index:c}}),a=!Bg(r,o),s=this._positionChanged(o,i);(a||s)&&(this._active=o,this._eventPosition=i,this._ignoreReplayEvents=!0,this.update(!0))}handleEvent(e,i,r=!0){if(i&&this._ignoreReplayEvents)return!1;this._ignoreReplayEvents=!1;let o=this.options,a=this._active||[],s=this._getActiveElements(e,a,i,r),l=this._positionChanged(s,e),c=i||!Bg(s,a)||l;return c&&(this._active=s,(o.enabled||o.external)&&(this._eventPosition={x:e.x,y:e.y},this.update(!0,i))),c}_getActiveElements(e,i,r,o){let a=this.options;if(e.type==="mouseout")return[];if(!o)return i.filter(l=>this.chart.data.datasets[l.datasetIndex]&&this.chart.getDatasetMeta(l.datasetIndex).controller.getParsed(l.index)!==void 0);let s=this.chart.getElementsAtEventForMode(e,a.mode,a,r);return a.reverse&&s.reverse(),s}_positionChanged(e,i){let{caretX:r,caretY:o,options:a}=this,s=Qg[a.position].call(this,e,i);return s!==!1&&(r!==s.x||o!==s.y)}}return t})(),fse={id:"tooltip",_element:B4,positioners:Qg,afterInit(t,n,e){e&&(t.tooltip=new B4({chart:t,options:e}))},beforeUpdate(t,n,e){t.tooltip&&t.tooltip.initialize(e)},reset(t,n,e){t.tooltip&&t.tooltip.initialize(e)},afterDraw(t){let n=t.tooltip;if(n&&n._willRender()){let e={tooltip:n};if(t.notifyPlugins("beforeTooltipDraw",De(M({},e),{cancelable:!0}))===!1)return;n.draw(t.ctx),t.notifyPlugins("afterTooltipDraw",e)}},afterEvent(t,n){if(t.tooltip){let e=n.replay;t.tooltip.handleEvent(n.event,e,n.inChartArea)&&(n.changed=!0)}},defaults:{enabled:!0,external:null,position:"average",backgroundColor:"rgba(0,0,0,0.8)",titleColor:"#fff",titleFont:{weight:"bold"},titleSpacing:2,titleMarginBottom:6,titleAlign:"left",bodyColor:"#fff",bodySpacing:2,bodyFont:{},bodyAlign:"left",footerColor:"#fff",footerSpacing:2,footerMarginTop:6,footerFont:{weight:"bold"},footerAlign:"left",padding:6,caretPadding:2,caretSize:5,cornerRadius:6,boxHeight:(t,n)=>n.bodyFont.size,boxWidth:(t,n)=>n.bodyFont.size,multiKeyBackground:"#fff",displayColors:!0,boxPadding:0,borderColor:"rgba(0,0,0,0)",borderWidth:0,animation:{duration:400,easing:"easeOutQuart"},animations:{numbers:{type:"number",properties:["x","y","width","height","caretX","caretY"]},opacity:{easing:"linear",duration:200}},callbacks:fH},defaultRoutes:{bodyFont:"font",footerFont:"font",titleFont:"font"},descriptors:{_scriptable:t=>t!=="filter"&&t!=="itemSort"&&t!=="external",_indexable:!1,callbacks:{_scriptable:!1,_indexable:!1},animation:{_fallback:!1},animations:{_fallback:"animation"}},additionalOptionScopes:["interaction"]},gse=Object.freeze({__proto__:null,Colors:Sae,Decimation:Oae,Filler:Xae,Legend:rse,SubTitle:sse,Title:ase,Tooltip:fse}),_se=(t,n,e,i)=>(typeof n=="string"?(e=t.push(n)-1,i.unshift({index:e,label:n})):isNaN(n)&&(e=null),e);function bse(t,n,e,i){let r=t.indexOf(n);if(r===-1)return _se(t,n,e,i);let o=t.lastIndexOf(n);return r!==o?e:r}var vse=(t,n)=>t===null?null:Dn(Math.round(t),0,n);function j4(t){let n=this.getLabels();return t>=0&&t{class t extends Eu{static id="category";static defaults={ticks:{callback:j4}};constructor(e){super(e),this._startValue=void 0,this._valueRange=0,this._addedLabels=[]}init(e){let i=this._addedLabels;if(i.length){let r=this.getLabels();for(let{index:o,label:a}of i)r[o]===a&&r.splice(o,1);this._addedLabels=[]}super.init(e)}parse(e,i){if(Et(e))return null;let r=this.getLabels();return i=isFinite(i)&&r[i]===e?i:bse(r,e,st(i,e),this._addedLabels),vse(i,r.length-1)}determineDataLimits(){let{minDefined:e,maxDefined:i}=this.getUserBounds(),{min:r,max:o}=this.getMinMax(!0);this.options.bounds==="ticks"&&(e||(r=0),i||(o=this.getLabels().length-1)),this.min=r,this.max=o}buildTicks(){let e=this.min,i=this.max,r=this.options.offset,o=[],a=this.getLabels();a=e===0&&i===a.length-1?a:a.slice(e,i+1),this._valueRange=Math.max(a.length-(r?0:1),1),this._startValue=this.min-(r?.5:0);for(let s=e;s<=i;s++)o.push({value:s});return o}getLabelForValue(e){return j4.call(this,e)}configure(){super.configure(),this.isHorizontal()||(this._reversePixels=!this._reversePixels)}getPixelForValue(e){return typeof e!="number"&&(e=this.parse(e)),e===null?NaN:this.getPixelForDecimal((e-this._startValue)/this._valueRange)}getPixelForTick(e){let i=this.ticks;return e<0||e>i.length-1?null:this.getPixelForValue(i[e].value)}getValueForPixel(e){return Math.round(this._startValue+this.getDecimalForPixel(e)*this._valueRange)}getBasePixel(){return this.bottom}}return t})();function xse(t,n){let e=[],{bounds:r,step:o,min:a,max:s,precision:l,count:c,maxTicks:d,maxDigits:m,includeBounds:f}=t,b=o||1,v=d-1,{min:w,max:x}=n,D=!Et(a),P=!Et(s),W=!Et(c),Z=(x-w)/(m+1),K=ZS((x-w)/v/b)*b,re,Ee,be,Ve;if(K<1e-14&&!D&&!P)return[{value:w},{value:x}];Ve=Math.ceil(x/K)-Math.floor(w/K),Ve>v&&(K=ZS(Ve*K/v/b)*b),Et(l)||(re=Math.pow(10,l),K=Math.ceil(K*re)/re),r==="ticks"?(Ee=Math.floor(w/K)*K,be=Math.ceil(x/K)*K):(Ee=w,be=x),D&&P&&o&&Mj((s-a)/o,K/1e3)?(Ve=Math.round(Math.min((s-a)/K,d)),K=(s-a)/Ve,Ee=a,be=s):W?(Ee=D?a:Ee,be=P?s:be,Ve=c-1,K=(be-Ee)/Ve):(Ve=(be-Ee)/K,Lh(Ve,Math.round(Ve),K/1e3)?Ve=Math.round(Ve):Ve=Math.ceil(Ve));let yt=Math.max(JS(K),JS(Ee));re=Math.pow(10,Et(l)?yt:l),Ee=Math.round(Ee*re)/re,be=Math.round(be*re)/re;let bt=0;for(D&&(f&&Ee!==a?(e.push({value:a}),Ees)break;e.push({value:It})}return P&&f&&be!==s?e.length&&Lh(e[e.length-1].value,s,H4(s,Z,t))?e[e.length-1].value=s:e.push({value:s}):(!P||be===s)&&e.push({value:be}),e}function H4(t,n,{horizontal:e,minRotation:i}){let r=ra(i),o=(e?Math.sin(r):Math.cos(r))||.001,a=.75*n*(""+t).length;return Math.min(n/o,a)}var $h=class extends Eu{constructor(n){super(n),this.start=void 0,this.end=void 0,this._startValue=void 0,this._endValue=void 0,this._valueRange=0}parse(n,e){return Et(n)||(typeof n=="number"||n instanceof Number)&&!isFinite(+n)?null:+n}handleTickRangeOptions(){let{beginAtZero:n}=this.options,{minDefined:e,maxDefined:i}=this.getUserBounds(),{min:r,max:o}=this,a=l=>r=e?r:l,s=l=>o=i?o:l;if(n){let l=Ba(r),c=Ba(o);l<0&&c<0?s(0):l>0&&c>0&&a(0)}if(r===o){let l=o===0?1:Math.abs(o*.05);s(o+l),n||a(r-l)}this.min=r,this.max=o}getTickLimit(){let n=this.options.ticks,{maxTicksLimit:e,stepSize:i}=n,r;return i?(r=Math.ceil(this.max/i)-Math.floor(this.min/i)+1,r>1e3&&(console.warn(`scales.${this.id}.ticks.stepSize: ${i} would result generating up to ${r} ticks. Limiting to 1000.`),r=1e3)):(r=this.computeTickLimit(),e=e||11),e&&(r=Math.min(e,r)),r}computeTickLimit(){return Number.POSITIVE_INFINITY}buildTicks(){let n=this.options,e=n.ticks,i=this.getTickLimit();i=Math.max(2,i);let r={maxTicks:i,bounds:n.bounds,min:n.min,max:n.max,precision:e.precision,step:e.stepSize,count:e.count,maxDigits:this._maxDigits(),horizontal:this.isHorizontal(),minRotation:e.minRotation||0,includeBounds:e.includeBounds!==!1},o=this._range||this,a=xse(r,o);return n.bounds==="ticks"&&XS(a,this,"value"),n.reverse?(a.reverse(),this.start=this.max,this.end=this.min):(this.start=this.min,this.end=this.max),a}configure(){let n=this.ticks,e=this.min,i=this.max;if(super.configure(),this.options.offset&&n.length){let r=(i-e)/Math.max(n.length-1,1)/2;e-=r,i+=r}this._startValue=e,this._endValue=i,this._valueRange=i-e}getLabelForValue(n){return Bh(n,this.chart.options.locale,this.options.ticks.format)}},QT=class extends $h{static id="linear";static defaults={ticks:{callback:jg.formatters.numeric}};determineDataLimits(){let{min:n,max:e}=this.getMinMax(!0);this.min=Gi(n)?n:0,this.max=Gi(e)?e:1,this.handleTickRangeOptions()}computeTickLimit(){let n=this.isHorizontal(),e=n?this.width:this.height,i=ra(this.options.ticks.minRotation),r=(n?Math.sin(i):Math.cos(i))||.001,o=this._resolveTickFontOptions(0);return Math.ceil(e/Math.min(40,o.lineHeight/r))}getPixelForValue(n){return n===null?NaN:this.getPixelForDecimal((n-this._startValue)/this._valueRange)}getValueForPixel(n){return this._startValue+this.getDecimalForPixel(n)*this._valueRange}},Xg=t=>Math.floor(gl(t)),Du=(t,n)=>Math.pow(10,Xg(t)+n);function z4(t){return t/Math.pow(10,Xg(t))===1}function U4(t,n,e){let i=Math.pow(10,e),r=Math.floor(t/i);return Math.ceil(n/i)-r}function Cse(t,n){let e=n-t,i=Xg(e);for(;U4(t,n,i)>10;)i++;for(;U4(t,n,i)<10;)i--;return Math.min(i,Xg(t))}function wse(t,{min:n,max:e}){n=no(t.min,n);let i=[],r=Xg(n),o=Cse(n,e),a=o<0?Math.pow(10,Math.abs(o)):1,s=Math.pow(10,o),l=r>o?Math.pow(10,r):0,c=Math.round((n-l)*a)/a,d=Math.floor((n-l)/s/10)*s*10,m=Math.floor((c-d)/Math.pow(10,o)),f=no(t.min,Math.round((l+d+m*Math.pow(10,o))*a)/a);for(;f=10?m=m<15?15:20:m++,m>=20&&(o++,m=2,a=o>=0?1:a),f=Math.round((l+d+m*Math.pow(10,o))*a)/a;let b=no(t.max,f);return i.push({value:b,major:z4(b),significand:m}),i}var KT=class extends Eu{static id="logarithmic";static defaults={ticks:{callback:jg.formatters.logarithmic,major:{enabled:!0}}};constructor(n){super(n),this.start=void 0,this.end=void 0,this._startValue=void 0,this._valueRange=0}parse(n,e){let i=$h.prototype.parse.apply(this,[n,e]);if(i===0){this._zero=!0;return}return Gi(i)&&i>0?i:null}determineDataLimits(){let{min:n,max:e}=this.getMinMax(!0);this.min=Gi(n)?Math.max(0,n):null,this.max=Gi(e)?Math.max(0,e):null,this.options.beginAtZero&&(this._zero=!0),this._zero&&this.min!==this._suggestedMin&&!Gi(this._userMin)&&(this.min=n===Du(this.min,0)?Du(this.min,-1):Du(this.min,0)),this.handleTickRangeOptions()}handleTickRangeOptions(){let{minDefined:n,maxDefined:e}=this.getUserBounds(),i=this.min,r=this.max,o=s=>i=n?i:s,a=s=>r=e?r:s;i===r&&(i<=0?(o(1),a(10)):(o(Du(i,-1)),a(Du(r,1)))),i<=0&&o(Du(r,-1)),r<=0&&a(Du(i,1)),this.min=i,this.max=r}buildTicks(){let n=this.options,e={min:this._userMin,max:this._userMax},i=wse(e,this);return n.bounds==="ticks"&&XS(i,this,"value"),n.reverse?(i.reverse(),this.start=this.max,this.end=this.min):(this.start=this.min,this.end=this.max),i}getLabelForValue(n){return n===void 0?"0":Bh(n,this.chart.options.locale,this.options.ticks.format)}configure(){let n=this.min;super.configure(),this._startValue=gl(n),this._valueRange=gl(this.max)-gl(n)}getPixelForValue(n){return(n===void 0||n===0)&&(n=this.min),n===null||isNaN(n)?NaN:this.getPixelForDecimal(n===this.min?0:(gl(n)-this._startValue)/this._valueRange)}getValueForPixel(n){let e=this.getDecimalForPixel(n);return Math.pow(10,this._startValue+e*this._valueRange)}};function ZT(t){let n=t.ticks;if(n.display&&t.display){let e=sr(n.backdropPadding);return st(n.font&&n.font.size,xi.font.size)+e.height}return 0}function Dse(t,n,e){return e=Ei(e)?e:[e],{w:Fj(t,n.string,e),h:e.length*n.lineHeight}}function $4(t,n,e,i,r){return t===i||t===r?{start:n-e/2,end:n+e/2}:tr?{start:n-e,end:n}:{start:n,end:n+e}}function Ese(t){let n={l:t.left+t._padding.left,r:t.right-t._padding.right,t:t.top+t._padding.top,b:t.bottom-t._padding.bottom},e=Object.assign({},n),i=[],r=[],o=t._pointLabels.length,a=t.options.pointLabels,s=a.centerPointLabels?Ht/o:0;for(let l=0;ln.r&&(s=(i.end-n.r)/o,t.r=Math.max(t.r,n.r+s)),r.startn.b&&(l=(r.end-n.b)/a,t.b=Math.max(t.b,n.b+l))}function kse(t,n,e){let i=t.drawingArea,{extra:r,additionalAngle:o,padding:a,size:s}=e,l=t.getPointPosition(n,i+r+a,o),c=Math.round(Hx(or(l.angle+Zi))),d=Ose(l.y,s.h,c),m=Ise(c),f=Ase(l.x,s.w,m);return{visible:!0,x:l.x,y:d,textAlign:m,left:f,top:d,right:f+s.w,bottom:d+s.h}}function Sse(t,n){if(!n)return!0;let{left:e,top:i,right:r,bottom:o}=t;return!(Ss({x:e,y:i},n)||Ss({x:e,y:o},n)||Ss({x:r,y:i},n)||Ss({x:r,y:o},n))}function Tse(t,n,e){let i=[],r=t._pointLabels.length,o=t.options,{centerPointLabels:a,display:s}=o.pointLabels,l={extra:ZT(o)/2,additionalAngle:a?Ht/r:0},c;for(let d=0;d270||e<90)&&(t-=n),t}function Rse(t,n,e){let{left:i,top:r,right:o,bottom:a}=e,{backdropColor:s}=n;if(!Et(s)){let l=Tc(n.borderRadius),c=sr(n.backdropPadding);t.fillStyle=s;let d=i-c.left,m=r-c.top,f=o-i+c.width,b=a-r+c.height;Object.values(l).some(v=>v!==0)?(t.beginPath(),jh(t,{x:d,y:m,w:f,h:b,radius:l}),t.fill()):t.fillRect(d,m,f,b)}}function Pse(t,n){let{ctx:e,options:{pointLabels:i}}=t;for(let r=n-1;r>=0;r--){let o=t._pointLabelItems[r];if(!o.visible)continue;let a=i.setContext(t.getPointLabelContext(r));Rse(e,a,o);let s=pn(a.font),{x:l,y:c,textAlign:d}=o;Sc(e,t._pointLabels[r],l,c+s.lineHeight/2,s,{color:a.color,textAlign:d,textBaseline:"middle"})}}function gH(t,n,e,i){let{ctx:r}=t;if(e)r.arc(t.xCenter,t.yCenter,n,0,Mi);else{let o=t.getPointPosition(0,n);r.moveTo(o.x,o.y);for(let a=1;a{let r=yi(this.options.pointLabels.callback,[e,i],this);return r||r===0?r:""}).filter((e,i)=>this.chart.getDataVisibility(i))}fit(){let n=this.options;n.display&&n.pointLabels.display?Ese(this):this.setCenterPoint(0,0,0,0)}setCenterPoint(n,e,i,r){this.xCenter+=Math.floor((n-e)/2),this.yCenter+=Math.floor((i-r)/2),this.drawingArea-=Math.min(this.drawingArea/2,Math.max(n,e,i,r))}getIndexAngle(n){let e=Mi/(this._pointLabels.length||1),i=this.options.startAngle||0;return or(n*e+ra(i))}getDistanceFromCenterForValue(n){if(Et(n))return NaN;let e=this.drawingArea/(this.max-this.min);return this.options.reverse?(this.max-n)*e:(n-this.min)*e}getValueForDistanceFromCenter(n){if(Et(n))return NaN;let e=n/(this.drawingArea/(this.max-this.min));return this.options.reverse?this.max-e:this.min+e}getPointLabelContext(n){let e=this._pointLabels||[];if(n>=0&&n{if(m!==0||m===0&&this.min<0){l=this.getDistanceFromCenterForValue(d.value);let f=this.getContext(m),b=r.setContext(f),v=o.setContext(f);Fse(this,b,l,a,v)}}),i.display){for(n.save(),s=a-1;s>=0;s--){let d=i.setContext(this.getPointLabelContext(s)),{color:m,lineWidth:f}=d;!f||!m||(n.lineWidth=f,n.strokeStyle=m,n.setLineDash(d.borderDash),n.lineDashOffset=d.borderDashOffset,l=this.getDistanceFromCenterForValue(e.reverse?this.min:this.max),c=this.getPointPosition(s,l),n.beginPath(),n.moveTo(this.xCenter,this.yCenter),n.lineTo(c.x,c.y),n.stroke())}n.restore()}}drawBorder(){}drawLabels(){let n=this.ctx,e=this.options,i=e.ticks;if(!i.display)return;let r=this.getIndexAngle(0),o,a;n.save(),n.translate(this.xCenter,this.yCenter),n.rotate(r),n.textAlign="center",n.textBaseline="middle",this.ticks.forEach((s,l)=>{if(l===0&&this.min>=0&&!e.reverse)return;let c=i.setContext(this.getContext(l)),d=pn(c.font);if(o=this.getDistanceFromCenterForValue(this.ticks[l].value),c.showLabelBackdrop){n.font=d.string,a=n.measureText(s.label).width,n.fillStyle=c.backdropColor;let m=sr(c.backdropPadding);n.fillRect(-a/2-m.left,-o-d.size/2-m.top,a+m.width,d.size+m.height)}Sc(n,s.label,0,-o,d,{color:c.color,strokeColor:c.textStrokeColor,strokeWidth:c.textStrokeWidth})}),n.restore()}drawTitle(){}},pC={millisecond:{common:!0,size:1,steps:1e3},second:{common:!0,size:1e3,steps:60},minute:{common:!0,size:6e4,steps:60},hour:{common:!0,size:36e5,steps:24},day:{common:!0,size:864e5,steps:30},week:{common:!1,size:6048e5,steps:4},month:{common:!0,size:2628e6,steps:12},quarter:{common:!1,size:7884e6,steps:4},year:{common:!0,size:3154e7}},oo=Object.keys(pC);function W4(t,n){return t-n}function G4(t,n){if(Et(n))return null;let e=t._adapter,{parser:i,round:r,isoWeekday:o}=t._parseOpts,a=n;return typeof i=="function"&&(a=i(a)),Gi(a)||(a=typeof i=="string"?e.parse(a,i):e.parse(a)),a===null?null:(r&&(a=r==="week"&&(xu(o)||o===!0)?e.startOf(a,"isoWeek",o):e.startOf(a,r)),+a)}function q4(t,n,e,i){let r=oo.length;for(let o=oo.indexOf(t);o=oo.indexOf(e);o--){let a=oo[o];if(pC[a].common&&t._adapter.diff(r,i,a)>=n-1)return a}return oo[e?oo.indexOf(e):0]}function Vse(t){for(let n=oo.indexOf(t)+1,e=oo.length;n=n?e[i]:e[r];t[o]=!0}}function Bse(t,n,e,i){let r=t._adapter,o=+r.startOf(n[0].value,i),a=n[n.length-1].value,s,l;for(s=o;s<=a;s=+r.add(s,1,i))l=e[s],l>=0&&(n[l].major=!0);return n}function Q4(t,n,e){let i=[],r={},o=n.length,a,s;for(a=0;a{class t extends Eu{static id="time";static defaults={bounds:"data",adapters:{},time:{parser:!1,unit:!1,round:!1,isoWeekday:!1,minUnit:"millisecond",displayFormats:{}},ticks:{source:"auto",callback:!1,major:{enabled:!1}}};constructor(e){super(e),this._cache={data:[],labels:[],all:[]},this._unit="day",this._majorUnit=void 0,this._offsets={},this._normalized=!1,this._parseOpts=void 0}init(e,i={}){let r=e.time||(e.time={}),o=this._adapter=new Kre._date(e.adapters.date);o.init(i),Fh(r.displayFormats,o.formats()),this._parseOpts={parser:r.parser,round:r.round,isoWeekday:r.isoWeekday},super.init(e),this._normalized=i.normalized}parse(e,i){return e===void 0?null:G4(this,e)}beforeLayout(){super.beforeLayout(),this._cache={data:[],labels:[],all:[]}}determineDataLimits(){let e=this.options,i=this._adapter,r=e.time.unit||"day",{min:o,max:a,minDefined:s,maxDefined:l}=this.getUserBounds();function c(d){!s&&!isNaN(d.min)&&(o=Math.min(o,d.min)),!l&&!isNaN(d.max)&&(a=Math.max(a,d.max))}(!s||!l)&&(c(this._getLabelBounds()),(e.bounds!=="ticks"||e.ticks.source!=="labels")&&c(this.getMinMax(!1))),o=Gi(o)&&!isNaN(o)?o:+i.startOf(Date.now(),r),a=Gi(a)&&!isNaN(a)?a:+i.endOf(Date.now(),r)+1,this.min=Math.min(o,a-1),this.max=Math.max(o+1,a)}_getLabelBounds(){let e=this.getLabelTimestamps(),i=Number.POSITIVE_INFINITY,r=Number.NEGATIVE_INFINITY;return e.length&&(i=e[0],r=e[e.length-1]),{min:i,max:r}}buildTicks(){let e=this.options,i=e.time,r=e.ticks,o=r.source==="labels"?this.getLabelTimestamps():this._generate();e.bounds==="ticks"&&o.length&&(this.min=this._userMin||o[0],this.max=this._userMax||o[o.length-1]);let a=this.min,s=this.max,l=Tj(o,a,s);return this._unit=i.unit||(r.autoSkip?q4(i.minUnit,this.min,this.max,this._getLabelCapacity(a)):Lse(this,l.length,i.minUnit,this.min,this.max)),this._majorUnit=!r.major.enabled||this._unit==="year"?void 0:Vse(this._unit),this.initOffsets(o),e.reverse&&l.reverse(),Q4(this,l,this._majorUnit)}afterAutoSkip(){this.options.offsetAfterAutoskip&&this.initOffsets(this.ticks.map(e=>+e.value))}initOffsets(e=[]){let i=0,r=0,o,a;this.options.offset&&e.length&&(o=this.getDecimalForValue(e[0]),e.length===1?i=1-o:i=(this.getDecimalForValue(e[1])-o)/2,a=this.getDecimalForValue(e[e.length-1]),e.length===1?r=a:r=(a-this.getDecimalForValue(e[e.length-2]))/2);let s=e.length<3?.5:.25;i=Dn(i,0,s),r=Dn(r,0,s),this._offsets={start:i,end:r,factor:1/(i+1+r)}}_generate(){let e=this._adapter,i=this.min,r=this.max,o=this.options,a=o.time,s=a.unit||q4(a.minUnit,i,r,this._getLabelCapacity(i)),l=st(o.ticks.stepSize,1),c=s==="week"?a.isoWeekday:!1,d=xu(c)||c===!0,m={},f=i,b,v;if(d&&(f=+e.startOf(f,"isoWeek",c)),f=+e.startOf(f,d?"day":s),e.diff(r,i,s)>1e5*l)throw new Error(i+" and "+r+" are too far apart with stepSize of "+l+" "+s);let w=o.ticks.source==="data"&&this.getDataTimestamps();for(b=f,v=0;b+x)}getLabelForValue(e){let i=this._adapter,r=this.options.time;return r.tooltipFormat?i.format(e,r.tooltipFormat):i.format(e,r.displayFormats.datetime)}format(e,i){let o=this.options.time.displayFormats,a=this._unit,s=i||o[a];return this._adapter.format(e,s)}_tickFormatFunction(e,i,r,o){let a=this.options,s=a.ticks.callback;if(s)return yi(s,[e,i,r],this);let l=a.time.displayFormats,c=this._unit,d=this._majorUnit,m=c&&l[c],f=d&&l[d],b=r[i],v=d&&f&&b&&b.major;return this._adapter.format(e,o||(v?f:m))}generateTickLabels(e){let i,r,o;for(i=0,r=e.length;i0?l:1}getDataTimestamps(){let e=this._cache.data||[],i,r;if(e.length)return e;let o=this.getMatchingVisibleMetas();if(this._normalized&&o.length)return this._cache.data=o[0].controller.getAllParsedValues(this);for(i=0,r=o.length;i=t[i].pos&&n<=t[r].pos&&({lo:i,hi:r}=ks(t,"pos",n)),{pos:o,time:s}=t[i],{pos:a,time:l}=t[r]):(n>=t[i].time&&n<=t[r].time&&({lo:i,hi:r}=ks(t,"time",n)),{time:o,pos:s}=t[i],{time:a,pos:l}=t[r]);let c=a-o;return c?s+(l-s)*(n-o)/c:s}var eI=class extends JT{static id="timeseries";static defaults=JT.defaults;constructor(n){super(n),this._table=[],this._minPos=void 0,this._tableRange=void 0}initOffsets(){let n=this._getTimestampsForTable(),e=this._table=this.buildLookupTable(n);this._minPos=iC(e,this.min),this._tableRange=iC(e,this.max)-this._minPos,super.initOffsets(n)}buildLookupTable(n){let{min:e,max:i}=this,r=[],o=[],a,s,l,c,d;for(a=0,s=n.length;a=e&&c<=i&&r.push(c);if(r.length<2)return[{time:e,pos:0},{time:i,pos:1}];for(a=0,s=r.length;ar-o)}_getTimestampsForTable(){let n=this._cache.all||[];if(n.length)return n;let e=this.getDataTimestamps(),i=this.getLabelTimestamps();return e.length&&i.length?n=this.normalize(e.concat(i)):n=e.length?e:i,n=this._cache.all=n,n}getDecimalForValue(n){return(iC(this._table,n)-this._minPos)/this._tableRange}getValueForPixel(n){let e=this._offsets,i=this.getDecimalForPixel(n)/e.factor-e.end;return iC(this._table,i*this._tableRange+this._minPos,!0)}},jse=Object.freeze({__proto__:null,CategoryScale:yse,LinearScale:QT,LogarithmicScale:KT,RadialLinearScale:XT,TimeScale:JT,TimeSeriesScale:eI}),_H=[Qre,xae,gse,jse];var Hse=typeof global=="object"&&global&&global.Object===Object&&global,fC=Hse;var zse=typeof self=="object"&&self&&self.Object===Object&&self,Use=fC||zse||Function("return this")(),oa=Use;var $se=oa.Symbol,Wh=$se;var bH=Object.prototype,Wse=bH.hasOwnProperty,Gse=bH.toString,e_=Wh?Wh.toStringTag:void 0;function qse(t){var n=Wse.call(t,e_),e=t[e_];try{t[e_]=void 0;var i=!0}catch{}var r=Gse.call(t);return i&&(n?t[e_]=e:delete t[e_]),r}var vH=qse;var Yse=Object.prototype,Qse=Yse.toString;function Kse(t){return Qse.call(t)}var yH=Kse;var Zse="[object Null]",Xse="[object Undefined]",xH=Wh?Wh.toStringTag:void 0;function Jse(t){return t==null?t===void 0?Xse:Zse:xH&&xH in Object(t)?vH(t):yH(t)}var Rc=Jse;function ele(t){return t!=null&&typeof t=="object"}var Rs=ele;var tle=Array.isArray,t_=tle;function ile(t){var n=typeof t;return t!=null&&(n=="object"||n=="function")}var ao=ile;function nle(t){return t}var gC=nle;var rle="[object AsyncFunction]",ole="[object Function]",ale="[object GeneratorFunction]",sle="[object Proxy]";function lle(t){if(!ao(t))return!1;var n=Rc(t);return n==ole||n==ale||n==rle||n==sle}var Gh=lle;var cle=oa["__core-js_shared__"],_C=cle;var CH=(function(){var t=/[^.]+$/.exec(_C&&_C.keys&&_C.keys.IE_PROTO||"");return t?"Symbol(src)_1."+t:""})();function dle(t){return!!CH&&CH in t}var wH=dle;var ule=Function.prototype,mle=ule.toString;function hle(t){if(t!=null){try{return mle.call(t)}catch{}try{return t+""}catch{}}return""}var DH=hle;var ple=/[\\^$.*+?()[\]{}|]/g,fle=/^\[object .+?Constructor\]$/,gle=Function.prototype,_le=Object.prototype,ble=gle.toString,vle=_le.hasOwnProperty,yle=RegExp("^"+ble.call(vle).replace(ple,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function xle(t){if(!ao(t)||wH(t))return!1;var n=Gh(t)?yle:fle;return n.test(DH(t))}var EH=xle;function Cle(t,n){return t?.[n]}var MH=Cle;function wle(t,n){var e=MH(t,n);return EH(e)?e:void 0}var qh=wle;var kH=Object.create,Dle=(function(){function t(){}return function(n){if(!ao(n))return{};if(kH)return kH(n);t.prototype=n;var e=new t;return t.prototype=void 0,e}})(),SH=Dle;function Ele(t,n,e){switch(e.length){case 0:return t.call(n);case 1:return t.call(n,e[0]);case 2:return t.call(n,e[0],e[1]);case 3:return t.call(n,e[0],e[1],e[2])}return t.apply(n,e)}var TH=Ele;function Mle(t,n){var e=-1,i=t.length;for(n||(n=Array(i));++e0){if(++n>=kle)return arguments[0]}else n=0;return t.apply(void 0,arguments)}}var AH=Ile;function Ale(t){return function(){return t}}var OH=Ale;var Ole=(function(){try{var t=qh(Object,"defineProperty");return t({},"",{}),t}catch{}})(),Yh=Ole;var Rle=Yh?function(t,n){return Yh(t,"toString",{configurable:!0,enumerable:!1,value:OH(n),writable:!0})}:gC,RH=Rle;var Ple=AH(RH),PH=Ple;var Fle=9007199254740991,Nle=/^(?:0|[1-9]\d*)$/;function Lle(t,n){var e=typeof t;return n=n??Fle,!!n&&(e=="number"||e!="symbol"&&Nle.test(t))&&t>-1&&t%1==0&&t-1&&t%1==0&&t<=Gle}var vC=qle;function Yle(t){return t!=null&&vC(t.length)&&!Gh(t)}var Kh=Yle;function Qle(t,n,e){if(!ao(e))return!1;var i=typeof n;return(i=="number"?Kh(e)&&bC(n,e.length):i=="string"&&n in e)?Pc(e[n],t):!1}var jH=Qle;function Kle(t){return BH(function(n,e){var i=-1,r=e.length,o=r>1?e[r-1]:void 0,a=r>2?e[2]:void 0;for(o=t.length>3&&typeof o=="function"?(r--,o):void 0,a&&jH(e[0],e[1],a)&&(o=r<3?void 0:o,r=1),n=Object(n);++i-1}var d5=ude;function mde(t,n){var e=this.__data__,i=Fc(e,t);return i<0?(++this.size,e.push([t,n])):e[i][1]=n,this}var u5=mde;function Xh(t){var n=-1,e=t==null?0:t.length;for(this.clear();++n{let n=class n{constructor(){this.colorschemesOptions=new tt(void 0)}setColorschemesOptions(i){this.pColorschemesOptions=i,this.colorschemesOptions.next(i)}getColorschemesOptions(){return this.pColorschemesOptions}};n.\u0275fac=function(r){return new(r||n)},n.\u0275prov=O({token:n,factory:n.\u0275fac,providedIn:"root"});let t=n;return t})(),W5=(()=>{let n=class n{constructor(i,r,o,a){this.zone=r,this.themeService=o,this.type="bar",this.plugins=[],this.chartClick=new U,this.chartHover=new U,this.subs=[],this.themeOverrides={},a?.registerables&&uC.register(...a.registerables),a?.defaults&&xi.set(a.defaults),this.ctx=i.nativeElement.getContext("2d"),this.subs.push(this.themeService.colorschemesOptions.pipe(Sn()).subscribe(s=>this.themeChanged(s)))}ngOnChanges(i){let r=["type"],o=Object.getOwnPropertyNames(i);if(o.some(a=>r.includes(a))||o.every(a=>i[a].isFirstChange()))this.render();else{let a=this.getChartConfiguration();this.chart&&(Object.assign(this.chart.config.data,a.data),this.chart.config.plugins&&Object.assign(this.chart.config.plugins,a.plugins),this.chart.config.options&&Object.assign(this.chart.config.options,a.options)),this.update()}}ngOnDestroy(){this.chart&&(this.chart.destroy(),this.chart=void 0),this.subs.forEach(i=>i.unsubscribe())}render(){return this.chart&&this.chart.destroy(),this.zone.runOutsideAngular(()=>this.chart=new uC(this.ctx,this.getChartConfiguration()))}update(i){this.chart&&this.zone.runOutsideAngular(()=>this.chart?.update(i))}hideDataset(i,r){this.chart&&(this.chart.getDatasetMeta(i).hidden=r,this.update())}isDatasetHidden(i){return this.chart?.getDatasetMeta(i)?.hidden}toBase64Image(){return this.chart?.toBase64Image()}themeChanged(i){this.themeOverrides=i,this.chart&&(this.chart.config.options&&Object.assign(this.chart.config.options,this.getChartOptions()),this.update())}getChartOptions(){return MC({onHover:(i,r)=>{!this.chartHover.observed&&!this.chartHover.observers?.length||this.zone.run(()=>this.chartHover.emit({event:i,active:r}))},onClick:(i,r)=>{!this.chartClick.observed&&!this.chartClick.observers?.length||this.zone.run(()=>this.chartClick.emit({event:i,active:r}))}},this.themeOverrides,this.options,{plugins:{legend:{display:this.legend}}})}getChartConfiguration(){return{type:this.type,data:this.getChartData(),options:this.getChartOptions(),plugins:this.plugins}}getChartData(){return this.data?this.data:{labels:this.labels||[],datasets:this.datasets||[]}}};n.\u0275fac=function(r){return new(r||n)(_e(q),_e(ae),_e(Yde),_e(z5,8))},n.\u0275dir=F({type:n,selectors:[["canvas","baseChart",""]],inputs:{type:"type",legend:"legend",data:"data",options:"options",plugins:"plugins",labels:"labels",datasets:"datasets"},outputs:{chartClick:"chartClick",chartHover:"chartHover"},exportAs:["base-chart"],features:[Ae]});let t=n;return t})();var ko={production:!0,baseUrl:"",useHash:!1,apiUrl:"https://app-talent-api-dev.azurewebsites.net/api/v1",identityServerUrl:"https://app-talent-ids-dev.azurewebsites.net",clientId:"TalentManagement",scope:"openid profile email roles app.api.talentmanagement.read app.api.talentmanagement.write",allowAnonymousAccess:!1};var G5={issuer:ko.identityServerUrl,redirectUri:window.location.origin+"/callback",postLogoutRedirectUri:window.location.origin,clientId:ko.clientId,scope:ko.scope,responseType:"code",showDebugInformation:!ko.production,useSilentRefresh:!0,silentRefreshRedirectUri:window.location.origin+"/silent-refresh.html",silentRefreshTimeout:5e3,timeoutFactor:.75,sessionChecksEnabled:!0,clearHashAfterLogin:!0,strictDiscoveryDocumentValidation:!1,skipIssuerCheck:!ko.production,requireHttps:ko.production,requestAccessToken:!0,dummyClientSecret:void 0,customQueryParams:{}};var Tt=(()=>{let n=class n{constructor(){this.oauthService=u(Wm),this.router=u(Re),this.isAuthenticatedSubject=new tt(!1),this.isAuthenticated$=this.isAuthenticatedSubject.asObservable(),this.userInfoSubject=new tt(null),this.userInfo$=this.userInfoSubject.asObservable(),this.permissionsChangeSubject=new z,this.permissionsChange$=this.permissionsChangeSubject.asObservable(),this.configureOAuth()}configureOAuth(){this.oauthService.configure(G5),this.oauthService.events.pipe(ce(i=>i.type==="token_received")).subscribe(()=>{this.handleSuccessfulLogin()}),this.oauthService.events.pipe(ce(i=>i.type==="token_error"||i.type==="token_refresh_error")).subscribe(()=>{console.error("Token error occurred")}),this.oauthService.setupAutomaticSilentRefresh()}initAuth(){return fn(this,null,function*(){try{return yield this.oauthService.loadDiscoveryDocument(),yield this.oauthService.tryLogin(),this.oauthService.hasValidAccessToken()?(yield this.handleSuccessfulLogin(),!0):!1}catch(i){return console.error("Error during authentication initialization:",i),!1}})}login(i){i?this.oauthService.initCodeFlow(i):this.oauthService.initCodeFlow()}logout(){this.oauthService.logOut(),this.isAuthenticatedSubject.next(!1),this.userInfoSubject.next(null),this.permissionsChangeSubject.next()}handleSuccessfulLogin(){return fn(this,null,function*(){try{let i=this.oauthService.getIdentityClaims();this.userInfoSubject.next(i),this.isAuthenticatedSubject.next(!0),this.permissionsChangeSubject.next()}catch(i){console.error("Error loading user info:",i)}})}isAuthenticated(){return this.oauthService.hasValidAccessToken()}getAccessToken(){return this.oauthService.getAccessToken()}getUserInfo(){return this.userInfoSubject.value}getUserRoles(){let i=this.oauthService.getIdentityClaims();if(!i)return[];let r=i.role;return Array.isArray(r)?r:typeof r=="string"?[r]:[]}hasRole(i){return this.getUserRoles().includes(i)}isEmployee(){return this.hasRole("Employee")}isManager(){return this.hasRole("Manager")}isHRAdmin(){return this.hasRole("HRAdmin")}hasAnyRole(i){let r=this.getUserRoles();return i.some(o=>r.includes(o))}getUserDisplayName(){let i=this.getUserInfo();return i?.name||i?.email||"User"}};n.\u0275fac=function(r){return new(r||n)},n.\u0275prov=O({token:n,factory:n.\u0275fac,providedIn:"root"});let t=n;return t})();var sI=(t,n)=>{let e=u(Tt);return ko.allowAnonymousAccess||e.isAuthenticated()?!0:(e.login(n?.url),!1)};var a_=t=>{let n=u(Tt),e=u(Re);return n.isAuthenticated()?n.isManager()||n.isHRAdmin()?!0:(e.navigate(["/403"]),!1):(n.login(),!1)},s_=t=>{let n=u(Tt),e=u(Re);return n.isAuthenticated()?n.isHRAdmin()?!0:(e.navigate(["/403"]),!1):(n.login(),!1)};var so=(()=>{let n=class n{constructor(){this.menu$=new tt([])}getAll(){return this.menu$.asObservable()}change(){return this.menu$.pipe(Nl())}set(i){return this.menu$.next(i),this.menu$.asObservable()}add(i){let r=this.menu$.value;r.push(i),this.menu$.next(r)}reset(){this.menu$.next([])}buildRoute(i){let r="";return i.forEach(o=>{o&&o.trim()&&(r+="/"+o.replace(/^\/+|\/+$/g,""))}),r}getItemName(i){return this.getLevel(i)[i.length-1]}isLeafItem(i){let r=i.route===void 0,o=i.children===void 0,a=!o&&i.children?.length===0;return r||o||a}deepClone(i){return JSON.parse(JSON.stringify(i))}isJsonObjEqual(i,r){return JSON.stringify(i)===JSON.stringify(r)}isRouteEqual(i,r){return r=this.deepClone(r),r=r.filter(o=>o!==""),this.isJsonObjEqual(i,r)}getLevel(i){let r=[];return this.menu$.value.forEach(o=>{let a=[{item:o,parentNamePathList:[],realRouteArr:[]}];for(;a.length>0;){let s=[];for(let l of a){let c=l.item,d=this.deepClone(l.parentNamePathList).concat(c.name),m=this.deepClone(l.realRouteArr).concat(c.route);if(this.isRouteEqual(i,m)){r=d;break}if(!this.isLeafItem(c)){let f=c.children?.map(b=>({item:b,parentNamePathList:d,realRouteArr:m}));s=s.concat(f)}}a=s}}),r}addNamespace(i,r){i.forEach(o=>{o.name=`${r}.${o.name}`,o.children&&o.children.length>0&&this.addNamespace(o.children,o.name)})}};n.\u0275fac=function(r){return new(r||n)},n.\u0275prov=O({token:n,factory:n.\u0275fac,providedIn:"root"});let t=n;return t})();var kC;function Qde(){if(kC===void 0&&(kC=null,typeof window<"u")){let t=window;t.trustedTypes!==void 0&&(kC=t.trustedTypes.createPolicy("angular#components",{createHTML:n=>n}))}return kC}function l_(t){return Qde()?.createHTML(t)||t}function q5(t){return Error(`Unable to find icon with the name "${t}"`)}function Kde(){return Error("Could not find HttpClient for use with Angular Material icons. Please add provideHttpClient() to your providers.")}function Y5(t){return Error(`The URL provided to MatIconRegistry was not trusted as a resource URL via Angular's DomSanitizer. Attempted URL was "${t}".`)}function Q5(t){return Error(`The literal provided to MatIconRegistry was not trusted as safe HTML by Angular's DomSanitizer. Attempted literal was "${t}".`)}var Cl=class{url;svgText;options;svgElement;constructor(n,e,i){this.url=n,this.svgText=e,this.options=i}},Z5=(()=>{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,i,r,o){this._httpClient=e,this._sanitizer=i,this._errorHandler=o,this._document=r}addSvgIcon(e,i,r){return this.addSvgIconInNamespace("",e,i,r)}addSvgIconLiteral(e,i,r){return this.addSvgIconLiteralInNamespace("",e,i,r)}addSvgIconInNamespace(e,i,r,o){return this._addSvgIconConfig(e,i,new Cl(r,null,o))}addSvgIconResolver(e){return this._resolvers.push(e),this}addSvgIconLiteralInNamespace(e,i,r,o){let a=this._sanitizer.sanitize(An.HTML,r);if(!a)throw Q5(r);let s=l_(a);return this._addSvgIconConfig(e,i,new Cl("",s,o))}addSvgIconSet(e,i){return this.addSvgIconSetInNamespace("",e,i)}addSvgIconSetLiteral(e,i){return this.addSvgIconSetLiteralInNamespace("",e,i)}addSvgIconSetInNamespace(e,i,r){return this._addSvgIconSetConfig(e,new Cl(i,null,r))}addSvgIconSetLiteralInNamespace(e,i,r){let o=this._sanitizer.sanitize(An.HTML,i);if(!o)throw Q5(i);let a=l_(o);return this._addSvgIconSetConfig(e,new Cl("",a,r))}registerFontClassAlias(e,i=e){return this._fontCssClassesByAlias.set(e,i),this}classNameForFontAlias(e){return this._fontCssClassesByAlias.get(e)||e}setDefaultFontSetClass(...e){return this._defaultFontSetClass=e,this}getDefaultFontSetClass(){return this._defaultFontSetClass}getSvgIconFromUrl(e){let i=this._sanitizer.sanitize(An.RESOURCE_URL,e);if(!i)throw Y5(e);let r=this._cachedIconsByUrl.get(i);return r?Q(SC(r)):this._loadSvgIconFromConfig(new Cl(e,null)).pipe(Be(o=>this._cachedIconsByUrl.set(i,o)),se(o=>SC(o)))}getNamedSvgIcon(e,i=""){let r=K5(i,e),o=this._svgIconConfigs.get(r);if(o)return this._getSvgFromConfig(o);if(o=this._getIconConfigFromResolvers(i,e),o)return this._svgIconConfigs.set(r,o),this._getSvgFromConfig(o);let a=this._iconSetConfigs.get(i);return a?this._getSvgFromIconSetConfigs(e,a):Wn(q5(r))}ngOnDestroy(){this._resolvers=[],this._svgIconConfigs.clear(),this._iconSetConfigs.clear(),this._cachedIconsByUrl.clear()}_getSvgFromConfig(e){return e.svgText?Q(SC(this._svgElementFromConfig(e))):this._loadSvgIconFromConfig(e).pipe(se(i=>SC(i)))}_getSvgFromIconSetConfigs(e,i){let r=this._extractIconWithNameFromAnySet(e,i);if(r)return Q(r);let o=i.filter(a=>!a.svgText).map(a=>this._loadSvgIconSetFromConfig(a).pipe(fi(s=>{let c=`Loading icon set URL: ${this._sanitizer.sanitize(An.RESOURCE_URL,a.url)} failed: ${s.message}`;return this._errorHandler.handleError(new Error(c)),Q(null)})));return Ga(o).pipe(se(()=>{let a=this._extractIconWithNameFromAnySet(e,i);if(!a)throw q5(e);return a}))}_extractIconWithNameFromAnySet(e,i){for(let r=i.length-1;r>=0;r--){let o=i[r];if(o.svgText&&o.svgText.toString().indexOf(e)>-1){let a=this._svgElementFromConfig(o),s=this._extractSvgIconFromSet(a,e,o.options);if(s)return s}}return null}_loadSvgIconFromConfig(e){return this._fetchIcon(e).pipe(Be(i=>e.svgText=i),se(()=>this._svgElementFromConfig(e)))}_loadSvgIconSetFromConfig(e){return e.svgText?Q(null):this._fetchIcon(e).pipe(Be(i=>e.svgText=i))}_extractSvgIconFromSet(e,i,r){let o=e.querySelector(`[id="${i}"]`);if(!o)return null;let a=o.cloneNode(!0);if(a.removeAttribute("id"),a.nodeName.toLowerCase()==="svg")return this._setSvgAttributes(a,r);if(a.nodeName.toLowerCase()==="symbol")return this._setSvgAttributes(this._toSvgElement(a),r);let s=this._svgElementFromString(l_(""));return s.appendChild(a),this._setSvgAttributes(s,r)}_svgElementFromString(e){let i=this._document.createElement("DIV");i.innerHTML=e;let r=i.querySelector("svg");if(!r)throw Error(" tag not found");return r}_toSvgElement(e){let i=this._svgElementFromString(l_("")),r=e.attributes;for(let o=0;ol_(c)),Hr(()=>this._inProgressUrlFetches.delete(a)),Nl());return this._inProgressUrlFetches.set(a,l),l}_addSvgIconConfig(e,i,r){return this._svgIconConfigs.set(K5(e,i),r),this}_addSvgIconSetConfig(e,i){let r=this._iconSetConfigs.get(e);return r?r.push(i):this._iconSetConfigs.set(e,[i]),this}_svgElementFromConfig(e){if(!e.svgElement){let i=this._svgElementFromString(e.svgText);this._setSvgAttributes(i,e.options),e.svgElement=i}return e.svgElement}_getIconConfigFromResolvers(e,i){for(let r=0;rn?n.pathname+n.search:""}}var X5=["clip-path","color-profile","src","cursor","fill","filter","marker","marker-start","marker-mid","marker-end","mask","stroke"],iue=X5.map(t=>`[${t}]`).join(", "),nue=/^url\(['"]?#(.*?)['"]?\)$/,mt=(()=>{class t{_elementRef=u(q);_iconRegistry=u(Z5);_location=u(eue);_errorHandler=u(Tn);_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 i=this._cleanupFontValue(e);i!==this._fontSet&&(this._fontSet=i,this._updateFontIconClasses())}_fontSet;get fontIcon(){return this._fontIcon}set fontIcon(e){let i=this._cleanupFontValue(e);i!==this._fontIcon&&(this._fontIcon=i,this._updateFontIconClasses())}_fontIcon;_previousFontSetClass=[];_previousFontIconClass;_svgName;_svgNamespace;_previousPath;_elementsWithExternalReferences;_currentIconFetch=ke.EMPTY;constructor(){let e=u(new Ii("aria-hidden"),{optional:!0}),i=u(Jde,{optional:!0});i&&(i.color&&(this.color=this._defaultColor=i.color),i.fontSet&&(this.fontSet=i.fontSet)),e||this._elementRef.nativeElement.setAttribute("aria-hidden","true")}_splitIconName(e){if(!e)return["",""];let i=e.split(":");switch(i.length){case 1:return["",i[0]];case 2:return i;default:throw Error(`Invalid icon name: "${e}"`)}}ngOnInit(){this._updateFontIconClasses()}ngAfterViewChecked(){let e=this._elementsWithExternalReferences;if(e&&e.size){let i=this._location.getPathname();i!==this._previousPath&&(this._previousPath=i,this._prependPathToReferences(i))}}ngOnDestroy(){this._currentIconFetch.unsubscribe(),this._elementsWithExternalReferences&&this._elementsWithExternalReferences.clear()}_usingFontIcon(){return!this.svgIcon}_setSvgElement(e){this._clearSvgElement();let i=this._location.getPathname();this._previousPath=i,this._cacheChildrenWithExternalReferences(e),this._prependPathToReferences(i),this._elementRef.nativeElement.appendChild(e)}_clearSvgElement(){let e=this._elementRef.nativeElement,i=e.childNodes.length;for(this._elementsWithExternalReferences&&this._elementsWithExternalReferences.clear();i--;){let r=e.childNodes[i];(r.nodeType!==1||r.nodeName.toLowerCase()==="svg")&&r.remove()}}_updateFontIconClasses(){if(!this._usingFontIcon())return;let e=this._elementRef.nativeElement,i=(this.fontSet?this._iconRegistry.classNameForFontAlias(this.fontSet).split(/ +/):this._iconRegistry.getDefaultFontSetClass()).filter(r=>r.length>0);this._previousFontSetClass.forEach(r=>e.classList.remove(r)),i.forEach(r=>e.classList.add(r)),this._previousFontSetClass=i,this.fontIcon!==this._previousFontIconClass&&!i.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 i=this._elementsWithExternalReferences;i&&i.forEach((r,o)=>{r.forEach(a=>{o.setAttribute(a.name,`url('${e}#${a.value}')`)})})}_cacheChildrenWithExternalReferences(e){let i=e.querySelectorAll(iue),r=this._elementsWithExternalReferences=this._elementsWithExternalReferences||new Map;for(let o=0;o{let s=i[o],l=s.getAttribute(a),c=l?l.match(nue):null;if(c){let d=r.get(s);d||(d=[],r.set(s,d)),d.push({name:a,value:c[1]})}})}_updateSvgIcon(e){if(this._svgNamespace=null,this._svgName=null,this._currentIconFetch.unsubscribe(),e){let[i,r]=this._splitIconName(e);i&&(this._svgNamespace=i),r&&(this._svgName=r),this._currentIconFetch=this._iconRegistry.getNamedSvgIcon(r,i).pipe(lt(1)).subscribe(o=>this._setSvgElement(o),o=>{let a=`Error retrieving icon ${i}:${r}! ${o.message}`;this._errorHandler.handleError(new Error(a))})}}static \u0275fac=function(i){return new(i||t)};static \u0275cmp=E({type:t,selectors:[["mat-icon"]],hostAttrs:["role","img",1,"mat-icon","notranslate"],hostVars:10,hostBindings:function(i,r){i&2&&(X("data-mat-icon-type",r._usingFontIcon()?"font":"svg")("data-mat-icon-name",r._svgName||r.fontIcon)("data-mat-icon-namespace",r._svgNamespace||r.fontSet)("fontIcon",r._usingFontIcon()?r.fontIcon:null),it(r.color?"mat-"+r.color:""),G("mat-icon-inline",r.inline)("mat-icon-no-color",r.color!=="primary"&&r.color!=="accent"&&r.color!=="warn"))},inputs:{color:"color",inline:[2,"inline","inline",V],svgIcon:"svgIcon",fontSet:"fontSet",fontIcon:"fontIcon"},exportAs:["matIcon"],ngContentSelectors:Xde,decls:1,vars:0,template:function(i,r){i&1&&(Me(),oe(0))},styles:[`mat-icon,mat-icon.mat-primary,mat-icon.mat-accent,mat-icon.mat-warn{color:var(--mat-icon-color, inherit)}.mat-icon{-webkit-user-select:none;user-select:none;background-repeat:no-repeat;display:inline-block;fill:currentColor;height:24px;width:24px;overflow:hidden}.mat-icon.mat-icon-inline{font-size:inherit;height:inherit;line-height:inherit;width:inherit}.mat-icon.mat-ligature-font[fontIcon]::before{content:attr(fontIcon)}[dir=rtl] .mat-icon-rtl-mirror{transform:scale(-1, 1)}.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-prefix .mat-icon,.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-suffix .mat-icon{display:block}.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-prefix .mat-icon-button .mat-icon,.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})(),ot=(()=>{class t{static \u0275fac=function(i){return new(i||t)};static \u0275mod=ee({type:t});static \u0275inj=J({imports:[we,we]})}return t})();function rue(t,n){if(t&1&&(h(0,"a",3),_(1),p()),t&2){let e=C().$implicit;g(),H(e)}}function oue(t,n){if(t&1&&(h(0,"mat-icon",4),_(1,"chevron_right"),p(),h(2,"span"),_(3),me(4,"translate"),p()),t&2){let e=C().$implicit;g(3),H(Oe(4,1,e))}}function aue(t,n){if(t&1&&(h(0,"li",2),N(1,rue,2,1,"a",3),N(2,oue,5,3),p()),t&2){let e=n.$index;g(),L(e===0?1:-1),g(),L(e!==0?2:-1)}}var J5=(()=>{let n=class n{constructor(){this.router=u(Re),this.menu=u(so),this.nav=ne([]),this.navItems=[]}ngOnInit(){this.router.events.pipe(ce(i=>i instanceof vi),He(this.router)).subscribe(()=>{this.genBreadcrumb()})}genBreadcrumb(){let i=this.router.url.slice(1).split("/");this.nav().length>0?this.navItems=[...this.nav()]:(this.navItems=this.menu.getLevel(i),this.navItems.unshift("home"))}};n.\u0275fac=function(r){return new(r||n)},n.\u0275cmp=E({type:n,selectors:[["breadcrumb"]],inputs:{nav:[1,"nav"]},decls:4,vars:0,consts:[["aria-label","breadcrumb"],[1,"matero-breadcrumb"],[1,"matero-breadcrumb-item"],["href","#",1,"link"],[1,"chevron"]],template:function(r,o){r&1&&(h(0,"nav",0)(1,"ol",1),xt(2,aue,3,2,"li",2,Hi),p()()),r&2&&(g(2),Ct(o.navItems))},dependencies:[ot,mt,wr,Cr],styles:[`.matero-breadcrumb{display:flex;flex-wrap:wrap;padding:0;margin-bottom:1rem;font-size:.875rem;list-style:none}.matero-breadcrumb-item{line-height:1.125rem;text-transform:capitalize}.matero-breadcrumb-item>*{vertical-align:middle}.matero-breadcrumb-item>a.link{color:currentColor;text-decoration:none}.matero-breadcrumb-item>a.link:hover{color:currentColor;text-decoration:underline}.matero-breadcrumb-item>.chevron{width:1.125rem;height:1.125rem;font-size:1.125rem;-webkit-user-select:none;user-select:none} +`],encapsulation:2});let t=n;return t})();function sue(t,n){}var Vc=class{viewContainerRef;injector;id;role="dialog";panelClass="";hasBackdrop=!0;backdropClass="";disableClose=!1;closePredicate;width="";height="";minWidth;minHeight;maxWidth;maxHeight;positionStrategy;data=null;direction;ariaDescribedBy=null;ariaLabelledBy=null;ariaLabel=null;ariaModal=!1;autoFocus="first-tabbable";restoreFocus=!0;scrollStrategy;closeOnNavigation=!0;closeOnDestroy=!0;closeOnOverlayDetachments=!0;disableAnimations=!1;providers;container;templateContext};var cI=(()=>{class t extends dc{_elementRef=u(q);_focusTrapFactory=u(Qm);_config;_interactivityChecker=u(ac);_ngZone=u(ae);_focusMonitor=u(Yt);_renderer=u(je);_changeDetectorRef=u(ye);_injector=u(de);_platform=u(qe);_document=u(ge);_portalOutlet;_focusTrapped=new z;_focusTrap=null;_elementFocusedBeforeDialogWasOpened=null;_closeInteractionType=null;_ariaLabelledByQueue=[];_isDestroyed=!1;constructor(){super(),this._config=u(Vc,{optional:!0})||new Vc,this._config.ariaLabelledBy&&this._ariaLabelledByQueue.push(this._config.ariaLabelledBy)}_addAriaLabelledBy(e){this._ariaLabelledByQueue.push(e),this._changeDetectorRef.markForCheck()}_removeAriaLabelledBy(e){let i=this._ariaLabelledByQueue.indexOf(e);i>-1&&(this._ariaLabelledByQueue.splice(i,1),this._changeDetectorRef.markForCheck())}_contentAttached(){this._initializeFocusTrap(),this._captureInitialFocus()}_captureInitialFocus(){this._trapFocus()}ngOnDestroy(){this._focusTrapped.complete(),this._isDestroyed=!0,this._restoreFocus()}attachComponentPortal(e){this._portalOutlet.hasAttached();let i=this._portalOutlet.attachComponentPortal(e);return this._contentAttached(),i}attachTemplatePortal(e){this._portalOutlet.hasAttached();let i=this._portalOutlet.attachTemplatePortal(e);return this._contentAttached(),i}attachDomPortal=e=>{this._portalOutlet.hasAttached();let i=this._portalOutlet.attachDomPortal(e);return this._contentAttached(),i};_recaptureFocus(){this._containsFocus()||this._trapFocus()}_forceFocus(e,i){this._interactivityChecker.isFocusable(e)||(e.tabIndex=-1,this._ngZone.runOutsideAngular(()=>{let r=()=>{o(),a(),e.removeAttribute("tabindex")},o=this._renderer.listen(e,"blur",r),a=this._renderer.listen(e,"mousedown",r)})),e.focus(i)}_focusByCssSelector(e,i){let r=this._elementRef.nativeElement.querySelector(e);r&&this._forceFocus(r,i)}_trapFocus(e){this._isDestroyed||pt(()=>{let i=this._elementRef.nativeElement;switch(this._config.autoFocus){case!1:case"dialog":this._containsFocus()||i.focus(e);break;case!0:case"first-tabbable":this._focusTrap?.focusInitialElement(e)||this._focusDialogContainer(e);break;case"first-heading":this._focusByCssSelector('h1, h2, h3, h4, h5, h6, [role="heading"]',e);break;default:this._focusByCssSelector(this._config.autoFocus,e);break}this._focusTrapped.next()},{injector:this._injector})}_restoreFocus(){let e=this._config.restoreFocus,i=null;if(typeof e=="string"?i=this._document.querySelector(e):typeof e=="boolean"?i=e?this._elementFocusedBeforeDialogWasOpened:null:e&&(i=e),this._config.restoreFocus&&i&&typeof i.focus=="function"){let r=_o(),o=this._elementRef.nativeElement;(!r||r===this._document.body||r===o||o.contains(r))&&(this._focusMonitor?(this._focusMonitor.focusVia(i,this._closeInteractionType),this._closeInteractionType=null):i.focus())}this._focusTrap&&this._focusTrap.destroy()}_focusDialogContainer(e){this._elementRef.nativeElement.focus?.(e)}_containsFocus(){let e=this._elementRef.nativeElement,i=_o();return e===i||e.contains(i)}_initializeFocusTrap(){this._platform.isBrowser&&(this._focusTrap=this._focusTrapFactory.create(this._elementRef.nativeElement),this._document&&(this._elementFocusedBeforeDialogWasOpened=_o()))}static \u0275fac=function(i){return new(i||t)};static \u0275cmp=E({type:t,selectors:[["cdk-dialog-container"]],viewQuery:function(i,r){if(i&1&&ie(yr,7),i&2){let o;B(o=j())&&(r._portalOutlet=o.first)}},hostAttrs:["tabindex","-1",1,"cdk-dialog-container"],hostVars:6,hostBindings:function(i,r){i&2&&X("id",r._config.id||null)("role",r._config.role)("aria-modal",r._config.ariaModal)("aria-labelledby",r._config.ariaLabel?null:r._ariaLabelledByQueue[0])("aria-label",r._config.ariaLabel)("aria-describedby",r._config.ariaDescribedBy||null)},features:[le],decls:1,vars:0,consts:[["cdkPortalOutlet",""]],template:function(i,r){i&1&&R(0,sue,0,0,"ng-template",0)},dependencies:[yr],styles:[`.cdk-dialog-container{display:block;width:100%;height:100%;min-height:inherit;max-height:inherit} +`],encapsulation:2})}return t})(),c_=class{overlayRef;config;componentInstance;componentRef;containerInstance;disableClose;closed=new z;backdropClick;keydownEvents;outsidePointerEvents;id;_detachSubscription;constructor(n,e){this.overlayRef=n,this.config=e,this.disableClose=e.disableClose,this.backdropClick=n.backdropClick(),this.keydownEvents=n.keydownEvents(),this.outsidePointerEvents=n.outsidePointerEvents(),this.id=e.id,this.keydownEvents.subscribe(i=>{i.keyCode===27&&!this.disableClose&&!Ft(i)&&(i.preventDefault(),this.close(void 0,{focusOrigin:"keyboard"}))}),this.backdropClick.subscribe(()=>{!this.disableClose&&this._canClose()?this.close(void 0,{focusOrigin:"mouse"}):this.containerInstance._recaptureFocus?.()}),this._detachSubscription=n.detachments().subscribe(()=>{e.closeOnOverlayDetachments!==!1&&this.close()})}close(n,e){if(this._canClose(n)){let i=this.closed;this.containerInstance._closeInteractionType=e?.focusOrigin||"program",this._detachSubscription.unsubscribe(),this.overlayRef.dispose(),i.next(n),i.complete(),this.componentInstance=this.containerInstance=null}}updatePosition(){return this.overlayRef.updatePosition(),this}updateSize(n="",e=""){return this.overlayRef.updateSize({width:n,height:e}),this}addPanelClass(n){return this.overlayRef.addPanelClass(n),this}removePanelClass(n){return this.overlayRef.removePanelClass(n),this}_canClose(n){let e=this.config;return!!this.containerInstance&&(!e.closePredicate||e.closePredicate(n,e,this.componentInstance))}},lue=new T("DialogScrollStrategy",{providedIn:"root",factory:()=>{let t=u(de);return()=>uc(t)}}),cue=new T("DialogData"),due=new T("DefaultDialogConfig");function uue(t){let n=he(t),e=new U;return{valueSignal:n,get value(){return n()},change:e,ngOnDestroy(){e.complete()}}}var dI=(()=>{class t{_injector=u(de);_defaultOptions=u(due,{optional:!0});_parentDialog=u(t,{optional:!0,skipSelf:!0});_overlayContainer=u(ex);_idGenerator=u(Ze);_openDialogsAtThisLevel=[];_afterAllClosedAtThisLevel=new z;_afterOpenedAtThisLevel=new z;_ariaHiddenElements=new Map;_scrollStrategy=u(lue);get openDialogs(){return this._parentDialog?this._parentDialog.openDialogs:this._openDialogsAtThisLevel}get afterOpened(){return this._parentDialog?this._parentDialog.afterOpened:this._afterOpenedAtThisLevel}afterAllClosed=kn(()=>this.openDialogs.length?this._getAfterAllClosed():this._getAfterAllClosed().pipe(He(void 0)));constructor(){}open(e,i){let r=this._defaultOptions||new Vc;i=M(M({},r),i),i.id=i.id||this._idGenerator.getId("cdk-dialog-"),i.id&&this.getDialogById(i.id);let o=this._getOverlayConfig(i),a=Nr(this._injector,o),s=new c_(a,i),l=this._attachContainer(a,s,i);if(s.containerInstance=l,!this.openDialogs.length){let c=this._overlayContainer.getContainerElement();l._focusTrapped?l._focusTrapped.pipe(lt(1)).subscribe(()=>{this._hideNonDialogContentFromAssistiveTechnology(c)}):this._hideNonDialogContentFromAssistiveTechnology(c)}return this._attachDialogContent(e,s,l,i),this.openDialogs.push(s),s.closed.subscribe(()=>this._removeOpenDialog(s,!0)),this.afterOpened.next(s),s}closeAll(){lI(this.openDialogs,e=>e.close())}getDialogById(e){return this.openDialogs.find(i=>i.id===e)}ngOnDestroy(){lI(this._openDialogsAtThisLevel,e=>{e.config.closeOnDestroy===!1&&this._removeOpenDialog(e,!1)}),lI(this._openDialogsAtThisLevel,e=>e.close()),this._afterAllClosedAtThisLevel.complete(),this._afterOpenedAtThisLevel.complete(),this._openDialogsAtThisLevel=[]}_getOverlayConfig(e){let i=new Fr({positionStrategy:e.positionStrategy||Ds().centerHorizontally().centerVertically(),scrollStrategy:e.scrollStrategy||this._scrollStrategy(),panelClass:e.panelClass,hasBackdrop:e.hasBackdrop,direction:e.direction,minWidth:e.minWidth,minHeight:e.minHeight,maxWidth:e.maxWidth,maxHeight:e.maxHeight,width:e.width,height:e.height,disposeOnNavigation:e.closeOnNavigation,disableAnimations:e.disableAnimations});return e.backdropClass&&(i.backdropClass=e.backdropClass),i}_attachContainer(e,i,r){let o=r.injector||r.viewContainerRef?.injector,a=[{provide:Vc,useValue:r},{provide:c_,useValue:i},{provide:gh,useValue:e}],s;r.container?typeof r.container=="function"?s=r.container:(s=r.container.type,a.push(...r.container.providers(r))):s=cI;let l=new Zr(s,r.viewContainerRef,de.create({parent:o||this._injector,providers:a}));return e.attach(l).instance}_attachDialogContent(e,i,r,o){if(e instanceof te){let a=this._createInjector(o,i,r,void 0),s={$implicit:o.data,dialogRef:i};o.templateContext&&(s=M(M({},s),typeof o.templateContext=="function"?o.templateContext():o.templateContext)),r.attachTemplatePortal(new Cn(e,null,s,a))}else{let a=this._createInjector(o,i,r,this._injector),s=r.attachComponentPortal(new Zr(e,o.viewContainerRef,a));i.componentRef=s,i.componentInstance=s.instance}}_createInjector(e,i,r,o){let a=e.injector||e.viewContainerRef?.injector,s=[{provide:cue,useValue:e.data},{provide:c_,useValue:i}];return e.providers&&(typeof e.providers=="function"?s.push(...e.providers(i,e,r)):s.push(...e.providers)),e.direction&&(!a||!a.get(Vt,null,{optional:!0}))&&s.push({provide:Vt,useValue:uue(e.direction)}),de.create({parent:a||o,providers:s})}_removeOpenDialog(e,i){let r=this.openDialogs.indexOf(e);r>-1&&(this.openDialogs.splice(r,1),this.openDialogs.length||(this._ariaHiddenElements.forEach((o,a)=>{o?a.setAttribute("aria-hidden",o):a.removeAttribute("aria-hidden")}),this._ariaHiddenElements.clear(),i&&this._getAfterAllClosed().next()))}_hideNonDialogContentFromAssistiveTechnology(e){if(e.parentElement){let i=e.parentElement.children;for(let r=i.length-1;r>-1;r--){let o=i[r];o!==e&&o.nodeName!=="SCRIPT"&&o.nodeName!=="STYLE"&&!o.hasAttribute("aria-live")&&(this._ariaHiddenElements.set(o,o.getAttribute("aria-hidden")),o.setAttribute("aria-hidden","true"))}}}_getAfterAllClosed(){let e=this._parentDialog;return e?e._getAfterAllClosed():this._afterAllClosedAtThisLevel}static \u0275fac=function(i){return new(i||t)};static \u0275prov=O({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();function lI(t,n){let e=t.length;for(;e--;)n(t[e])}var ez=(()=>{class t{static \u0275fac=function(i){return new(i||t)};static \u0275mod=ee({type:t});static \u0275inj=J({providers:[dI],imports:[er,Co,ll,Co]})}return t})();function mue(t,n){}var u_=class{viewContainerRef;injector;id;role="dialog";panelClass="";hasBackdrop=!0;backdropClass="";disableClose=!1;closePredicate;width="";height="";minWidth;minHeight;maxWidth;maxHeight;position;data=null;direction;ariaDescribedBy=null;ariaLabelledBy=null;ariaLabel=null;ariaModal=!1;autoFocus="first-tabbable";restoreFocus=!0;delayFocusTrap=!0;scrollStrategy;closeOnNavigation=!0;enterAnimationDuration;exitAnimationDuration},uI="mdc-dialog--open",tz="mdc-dialog--opening",iz="mdc-dialog--closing",hue=150,pue=75,oz=(()=>{class t extends cI{_animationStateChanged=new U;_animationsEnabled=!Ye();_actionSectionCount=0;_hostElement=this._elementRef.nativeElement;_enterAnimationDuration=this._animationsEnabled?rz(this._config.enterAnimationDuration)??hue:0;_exitAnimationDuration=this._animationsEnabled?rz(this._config.exitAnimationDuration)??pue:0;_animationTimer=null;_contentAttached(){super._contentAttached(),this._startOpenAnimation()}_startOpenAnimation(){this._animationStateChanged.emit({state:"opening",totalTime:this._enterAnimationDuration}),this._animationsEnabled?(this._hostElement.style.setProperty(nz,`${this._enterAnimationDuration}ms`),this._requestAnimationFrame(()=>this._hostElement.classList.add(tz,uI)),this._waitForAnimationToComplete(this._enterAnimationDuration,this._finishDialogOpen)):(this._hostElement.classList.add(uI),Promise.resolve().then(()=>this._finishDialogOpen()))}_startExitAnimation(){this._animationStateChanged.emit({state:"closing",totalTime:this._exitAnimationDuration}),this._hostElement.classList.remove(uI),this._animationsEnabled?(this._hostElement.style.setProperty(nz,`${this._exitAnimationDuration}ms`),this._requestAnimationFrame(()=>this._hostElement.classList.add(iz)),this._waitForAnimationToComplete(this._exitAnimationDuration,this._finishDialogClose)):Promise.resolve().then(()=>this._finishDialogClose())}_updateActionSectionCount(e){this._actionSectionCount+=e,this._changeDetectorRef.markForCheck()}_finishDialogOpen=()=>{this._clearAnimationClasses(),this._openAnimationDone(this._enterAnimationDuration)};_finishDialogClose=()=>{this._clearAnimationClasses(),this._animationStateChanged.emit({state:"closed",totalTime:this._exitAnimationDuration})};_clearAnimationClasses(){this._hostElement.classList.remove(tz,iz)}_waitForAnimationToComplete(e,i){this._animationTimer!==null&&clearTimeout(this._animationTimer),this._animationTimer=setTimeout(i,e)}_requestAnimationFrame(e){this._ngZone.runOutsideAngular(()=>{typeof requestAnimationFrame=="function"?requestAnimationFrame(e):e()})}_captureInitialFocus(){this._config.delayFocusTrap||this._trapFocus()}_openAnimationDone(e){this._config.delayFocusTrap&&this._trapFocus(),this._animationStateChanged.next({state:"opened",totalTime:e})}ngOnDestroy(){super.ngOnDestroy(),this._animationTimer!==null&&clearTimeout(this._animationTimer)}attachComponentPortal(e){let i=super.attachComponentPortal(e);return i.location.nativeElement.classList.add("mat-mdc-dialog-component-host"),i}static \u0275fac=(()=>{let e;return function(r){return(e||(e=fe(t)))(r||t)}})();static \u0275cmp=E({type:t,selectors:[["mat-dialog-container"]],hostAttrs:["tabindex","-1",1,"mat-mdc-dialog-container","mdc-dialog"],hostVars:10,hostBindings:function(i,r){i&2&&(si("id",r._config.id),X("aria-modal",r._config.ariaModal)("role",r._config.role)("aria-labelledby",r._config.ariaLabel?null:r._ariaLabelledByQueue[0])("aria-label",r._config.ariaLabel)("aria-describedby",r._config.ariaDescribedBy||null),G("_mat-animation-noopable",!r._animationsEnabled)("mat-mdc-dialog-container-with-actions",r._actionSectionCount>0))},features:[le],decls:3,vars:0,consts:[[1,"mat-mdc-dialog-inner-container","mdc-dialog__container"],[1,"mat-mdc-dialog-surface","mdc-dialog__surface"],["cdkPortalOutlet",""]],template:function(i,r){i&1&&(h(0,"div",0)(1,"div",1),R(2,mue,0,0,"ng-template",2),p()())},dependencies:[yr],styles:[`.mat-mdc-dialog-container{width:100%;height:100%;display:block;box-sizing:border-box;max-height:inherit;min-height:inherit;min-width:inherit;max-width:inherit;outline:0}.cdk-overlay-pane.mat-mdc-dialog-panel{max-width:var(--mat-dialog-container-max-width, 560px);min-width:var(--mat-dialog-container-min-width, 280px)}@media(max-width: 599px){.cdk-overlay-pane.mat-mdc-dialog-panel{max-width:var(--mat-dialog-container-small-max-width, calc(100vw - 32px))}}.mat-mdc-dialog-inner-container{display:flex;flex-direction:row;align-items:center;justify-content:space-around;box-sizing:border-box;height:100%;opacity:0;transition:opacity linear var(--mat-dialog-transition-duration, 0ms);max-height:inherit;min-height:inherit;min-width:inherit;max-width:inherit}.mdc-dialog--closing .mat-mdc-dialog-inner-container{transition:opacity 75ms linear;transform:none}.mdc-dialog--open .mat-mdc-dialog-inner-container{opacity:1}._mat-animation-noopable .mat-mdc-dialog-inner-container{transition:none}.mat-mdc-dialog-surface{display:flex;flex-direction:column;flex-grow:0;flex-shrink:0;box-sizing:border-box;width:100%;height:100%;position:relative;overflow-y:auto;outline:0;transform:scale(0.8);transition:transform var(--mat-dialog-transition-duration, 0ms) cubic-bezier(0, 0, 0.2, 1);max-height:inherit;min-height:inherit;min-width:inherit;max-width:inherit;box-shadow:var(--mat-dialog-container-elevation-shadow, none);border-radius:var(--mat-dialog-container-shape, var(--mat-sys-corner-extra-large, 4px));background-color:var(--mat-dialog-container-color, var(--mat-sys-surface, white))}[dir=rtl] .mat-mdc-dialog-surface{text-align:right}.mdc-dialog--open .mat-mdc-dialog-surface,.mdc-dialog--closing .mat-mdc-dialog-surface{transform:none}._mat-animation-noopable .mat-mdc-dialog-surface{transition:none}.mat-mdc-dialog-surface::before{position:absolute;box-sizing:border-box;width:100%;height:100%;top:0;left:0;border:2px solid rgba(0,0,0,0);border-radius:inherit;content:"";pointer-events:none}.mat-mdc-dialog-title{display:block;position:relative;flex-shrink:0;box-sizing:border-box;margin:0 0 1px;padding:var(--mat-dialog-headline-padding, 6px 24px 13px)}.mat-mdc-dialog-title::before{display:inline-block;width:0;height:40px;content:"";vertical-align:0}[dir=rtl] .mat-mdc-dialog-title{text-align:right}.mat-mdc-dialog-container .mat-mdc-dialog-title{color:var(--mat-dialog-subhead-color, var(--mat-sys-on-surface, rgba(0, 0, 0, 0.87)));font-family:var(--mat-dialog-subhead-font, var(--mat-sys-headline-small-font, inherit));line-height:var(--mat-dialog-subhead-line-height, var(--mat-sys-headline-small-line-height, 1.5rem));font-size:var(--mat-dialog-subhead-size, var(--mat-sys-headline-small-size, 1rem));font-weight:var(--mat-dialog-subhead-weight, var(--mat-sys-headline-small-weight, 400));letter-spacing:var(--mat-dialog-subhead-tracking, var(--mat-sys-headline-small-tracking, 0.03125em))}.mat-mdc-dialog-content{display:block;flex-grow:1;box-sizing:border-box;margin:0;overflow:auto;max-height:65vh}.mat-mdc-dialog-content>:first-child{margin-top:0}.mat-mdc-dialog-content>:last-child{margin-bottom:0}.mat-mdc-dialog-container .mat-mdc-dialog-content{color:var(--mat-dialog-supporting-text-color, var(--mat-sys-on-surface-variant, rgba(0, 0, 0, 0.6)));font-family:var(--mat-dialog-supporting-text-font, var(--mat-sys-body-medium-font, inherit));line-height:var(--mat-dialog-supporting-text-line-height, var(--mat-sys-body-medium-line-height, 1.5rem));font-size:var(--mat-dialog-supporting-text-size, var(--mat-sys-body-medium-size, 1rem));font-weight:var(--mat-dialog-supporting-text-weight, var(--mat-sys-body-medium-weight, 400));letter-spacing:var(--mat-dialog-supporting-text-tracking, var(--mat-sys-body-medium-tracking, 0.03125em))}.mat-mdc-dialog-container .mat-mdc-dialog-content{padding:var(--mat-dialog-content-padding, 20px 24px)}.mat-mdc-dialog-container-with-actions .mat-mdc-dialog-content{padding:var(--mat-dialog-with-actions-content-padding, 20px 24px 0)}.mat-mdc-dialog-container .mat-mdc-dialog-title+.mat-mdc-dialog-content{padding-top:0}.mat-mdc-dialog-actions{display:flex;position:relative;flex-shrink:0;flex-wrap:wrap;align-items:center;box-sizing:border-box;min-height:52px;margin:0;border-top:1px solid rgba(0,0,0,0);padding:var(--mat-dialog-actions-padding, 16px 24px);justify-content:var(--mat-dialog-actions-alignment, flex-end)}@media(forced-colors: active){.mat-mdc-dialog-actions{border-top-color:CanvasText}}.mat-mdc-dialog-actions.mat-mdc-dialog-actions-align-start,.mat-mdc-dialog-actions[align=start]{justify-content:start}.mat-mdc-dialog-actions.mat-mdc-dialog-actions-align-center,.mat-mdc-dialog-actions[align=center]{justify-content:center}.mat-mdc-dialog-actions.mat-mdc-dialog-actions-align-end,.mat-mdc-dialog-actions[align=end]{justify-content:flex-end}.mat-mdc-dialog-actions .mat-button-base+.mat-button-base,.mat-mdc-dialog-actions .mat-mdc-button-base+.mat-mdc-button-base{margin-left:8px}[dir=rtl] .mat-mdc-dialog-actions .mat-button-base+.mat-button-base,[dir=rtl] .mat-mdc-dialog-actions .mat-mdc-button-base+.mat-mdc-button-base{margin-left:0;margin-right:8px}.mat-mdc-dialog-component-host{display:contents} +`],encapsulation:2})}return t})(),nz="--mat-dialog-transition-duration";function rz(t){return t==null?null:typeof t=="number"?t:t.endsWith("ms")?Ln(t.substring(0,t.length-2)):t.endsWith("s")?Ln(t.substring(0,t.length-1))*1e3:t==="0"?0:null}var d_=(function(t){return t[t.OPEN=0]="OPEN",t[t.CLOSING=1]="CLOSING",t[t.CLOSED=2]="CLOSED",t})(d_||{}),Mu=class{_ref;_config;_containerInstance;componentInstance;componentRef;disableClose;id;_afterOpened=new z;_beforeClosed=new z;_result;_closeFallbackTimeout;_state=d_.OPEN;_closeInteractionType;constructor(n,e,i){this._ref=n,this._config=e,this._containerInstance=i,this.disableClose=e.disableClose,this.id=n.id,n.addPanelClass("mat-mdc-dialog-panel"),i._animationStateChanged.pipe(ce(r=>r.state==="opened"),lt(1)).subscribe(()=>{this._afterOpened.next(),this._afterOpened.complete()}),i._animationStateChanged.pipe(ce(r=>r.state==="closed"),lt(1)).subscribe(()=>{clearTimeout(this._closeFallbackTimeout),this._finishDialogClose()}),n.overlayRef.detachments().subscribe(()=>{this._beforeClosed.next(this._result),this._beforeClosed.complete(),this._finishDialogClose()}),Je(this.backdropClick(),this.keydownEvents().pipe(ce(r=>r.keyCode===27&&!this.disableClose&&!Ft(r)))).subscribe(r=>{this.disableClose||(r.preventDefault(),az(this,r.type==="keydown"?"keyboard":"mouse"))})}close(n){let e=this._config.closePredicate;e&&!e(n,this._config,this.componentInstance)||(this._result=n,this._containerInstance._animationStateChanged.pipe(ce(i=>i.state==="closing"),lt(1)).subscribe(i=>{this._beforeClosed.next(n),this._beforeClosed.complete(),this._ref.overlayRef.detachBackdrop(),this._closeFallbackTimeout=setTimeout(()=>this._finishDialogClose(),i.totalTime+100)}),this._state=d_.CLOSING,this._containerInstance._startExitAnimation())}afterOpened(){return this._afterOpened}afterClosed(){return this._ref.closed}beforeClosed(){return this._beforeClosed}backdropClick(){return this._ref.backdropClick}keydownEvents(){return this._ref.keydownEvents}updatePosition(n){let e=this._ref.config.positionStrategy;return n&&(n.left||n.right)?n.left?e.left(n.left):e.right(n.right):e.centerHorizontally(),n&&(n.top||n.bottom)?n.top?e.top(n.top):e.bottom(n.bottom):e.centerVertically(),this._ref.updatePosition(),this}updateSize(n="",e=""){return this._ref.updateSize(n,e),this}addPanelClass(n){return this._ref.addPanelClass(n),this}removePanelClass(n){return this._ref.removePanelClass(n),this}getState(){return this._state}_finishDialogClose(){this._state=d_.CLOSED,this._ref.close(this._result,{focusOrigin:this._closeInteractionType}),this.componentInstance=null}};function az(t,n,e){return t._closeInteractionType=n,t.close(e)}var TC=new T("MatMdcDialogData"),sz=new T("mat-mdc-dialog-default-options"),lz=new T("mat-mdc-dialog-scroll-strategy",{providedIn:"root",factory:()=>{let t=u(de);return()=>uc(t)}}),En=(()=>{class t{_defaultOptions=u(sz,{optional:!0});_scrollStrategy=u(lz);_parentDialog=u(t,{optional:!0,skipSelf:!0});_idGenerator=u(Ze);_injector=u(de);_dialog=u(dI);_animationsDisabled=Ye();_openDialogsAtThisLevel=[];_afterAllClosedAtThisLevel=new z;_afterOpenedAtThisLevel=new z;dialogConfigClass=u_;_dialogRefConstructor;_dialogContainerType;_dialogDataToken;get openDialogs(){return this._parentDialog?this._parentDialog.openDialogs:this._openDialogsAtThisLevel}get afterOpened(){return this._parentDialog?this._parentDialog.afterOpened:this._afterOpenedAtThisLevel}_getAfterAllClosed(){let e=this._parentDialog;return e?e._getAfterAllClosed():this._afterAllClosedAtThisLevel}afterAllClosed=kn(()=>this.openDialogs.length?this._getAfterAllClosed():this._getAfterAllClosed().pipe(He(void 0)));constructor(){this._dialogRefConstructor=Mu,this._dialogContainerType=oz,this._dialogDataToken=TC}open(e,i){let r;i=M(M({},this._defaultOptions||new u_),i),i.id=i.id||this._idGenerator.getId("mat-mdc-dialog-"),i.scrollStrategy=i.scrollStrategy||this._scrollStrategy();let o=this._dialog.open(e,De(M({},i),{positionStrategy:Ds(this._injector).centerHorizontally().centerVertically(),disableClose:!0,closePredicate:void 0,closeOnDestroy:!1,closeOnOverlayDetachments:!1,disableAnimations:this._animationsDisabled||i.enterAnimationDuration?.toLocaleString()==="0"||i.exitAnimationDuration?.toString()==="0",container:{type:this._dialogContainerType,providers:()=>[{provide:this.dialogConfigClass,useValue:i},{provide:Vc,useValue:i}]},templateContext:()=>({dialogRef:r}),providers:(a,s,l)=>(r=new this._dialogRefConstructor(a,i,l),r.updatePosition(i?.position),[{provide:this._dialogContainerType,useValue:l},{provide:this._dialogDataToken,useValue:s.data},{provide:this._dialogRefConstructor,useValue:r}])}));return r.componentRef=o.componentRef,r.componentInstance=o.componentInstance,this.openDialogs.push(r),this.afterOpened.next(r),r.afterClosed().subscribe(()=>{let a=this.openDialogs.indexOf(r);a>-1&&(this.openDialogs.splice(a,1),this.openDialogs.length||this._getAfterAllClosed().next())}),r}closeAll(){this._closeDialogs(this.openDialogs)}getDialogById(e){return this.openDialogs.find(i=>i.id===e)}ngOnDestroy(){this._closeDialogs(this._openDialogsAtThisLevel),this._afterAllClosedAtThisLevel.complete(),this._afterOpenedAtThisLevel.complete()}_closeDialogs(e){let i=e.length;for(;i--;)e[i].close()}static \u0275fac=function(i){return new(i||t)};static \u0275prov=O({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();var cz=(()=>{class t{_dialogRef=u(Mu,{optional:!0});_elementRef=u(q);_dialog=u(En);constructor(){}ngOnInit(){this._dialogRef||(this._dialogRef=fue(this._elementRef,this._dialog.openDialogs)),this._dialogRef&&Promise.resolve().then(()=>{this._onAdd()})}ngOnDestroy(){this._dialogRef?._containerInstance&&Promise.resolve().then(()=>{this._onRemove()})}static \u0275fac=function(i){return new(i||t)};static \u0275dir=F({type:t})}return t})(),mI=(()=>{class t extends cz{id=u(Ze).getId("mat-mdc-dialog-title-");_onAdd(){this._dialogRef._containerInstance?._addAriaLabelledBy?.(this.id)}_onRemove(){this._dialogRef?._containerInstance?._removeAriaLabelledBy?.(this.id)}static \u0275fac=(()=>{let e;return function(r){return(e||(e=fe(t)))(r||t)}})();static \u0275dir=F({type:t,selectors:[["","mat-dialog-title",""],["","matDialogTitle",""]],hostAttrs:[1,"mat-mdc-dialog-title","mdc-dialog__title"],hostVars:1,hostBindings:function(i,r){i&2&&si("id",r.id)},inputs:{id:"id"},exportAs:["matDialogTitle"],features:[le]})}return t})(),hI=(()=>{class t{static \u0275fac=function(i){return new(i||t)};static \u0275dir=F({type:t,selectors:[["","mat-dialog-content",""],["mat-dialog-content"],["","matDialogContent",""]],hostAttrs:[1,"mat-mdc-dialog-content","mdc-dialog__content"],features:[ym([Pa])]})}return t})(),pI=(()=>{class t extends cz{align;_onAdd(){this._dialogRef._containerInstance?._updateActionSectionCount?.(1)}_onRemove(){this._dialogRef._containerInstance?._updateActionSectionCount?.(-1)}static \u0275fac=(()=>{let e;return function(r){return(e||(e=fe(t)))(r||t)}})();static \u0275dir=F({type:t,selectors:[["","mat-dialog-actions",""],["mat-dialog-actions"],["","matDialogActions",""]],hostAttrs:[1,"mat-mdc-dialog-actions","mdc-dialog__actions"],hostVars:6,hostBindings:function(i,r){i&2&&G("mat-mdc-dialog-actions-align-start",r.align==="start")("mat-mdc-dialog-actions-align-center",r.align==="center")("mat-mdc-dialog-actions-align-end",r.align==="end")},inputs:{align:"align"},features:[le]})}return t})();function fue(t,n){let e=t.nativeElement.parentElement;for(;e&&!e.classList.contains("mat-mdc-dialog-container");)e=e.parentElement;return e?n.find(i=>i.id===e.id):null}var Mn=(()=>{class t{static \u0275fac=function(i){return new(i||t)};static \u0275mod=ee({type:t});static \u0275inj=J({providers:[En],imports:[ez,er,Co,we,we]})}return t})();var Er=(()=>{let n=class n{constructor(){this.dialogRef=u(Mu),this.data=u(TC)}confirm(){this.dialogRef.close(!0)}cancel(){this.dialogRef.close(!1)}};n.\u0275fac=function(r){return new(r||n)},n.\u0275cmp=E({type:n,selectors:[["app-confirm-dialog"]],decls:12,vars:4,consts:[["mat-dialog-title",""],["color","warn",2,"vertical-align","middle","margin-right","8px"],["align","end"],["mat-button","",3,"click"],["mat-raised-button","","color","warn","cdkFocusInitial","",3,"click"]],template:function(r,o){r&1&&(h(0,"h2",0)(1,"mat-icon",1),_(2,"warning"),p(),_(3),p(),h(4,"mat-dialog-content")(5,"p"),_(6),p()(),h(7,"mat-dialog-actions",2)(8,"button",3),S("click",function(){return o.cancel()}),_(9),p(),h(10,"button",4),S("click",function(){return o.confirm()}),_(11),p()()),r&2&&(g(3),ve(" ",o.data.title,` +`),g(3),H(o.data.message),g(3),ve(" ",o.data.cancelText||"Cancel"," "),g(2),ve(" ",o.data.confirmText||"Delete"," "))},dependencies:[Mn,mI,pI,hI,ze,kt,ot,mt],encapsulation:2});let t=n;return t})();function _ue(t,n){if(t&1&&(h(0,"div",2),_(1),p()),t&2){let e=C();g(),H(e.title())}}function bue(t,n){if(t&1&&(h(0,"div",3),_(1),p()),t&2){let e=C();g(),H(e.message())}}var tp=(()=>{let n=class n{constructor(){this.code=ne(""),this.title=ne(""),this.message=ne("")}};n.\u0275fac=function(r){return new(r||n)},n.\u0275cmp=E({type:n,selectors:[["error-code"]],inputs:{code:[1,"code"],title:[1,"title"],message:[1,"message"]},decls:8,vars:3,consts:[[1,"matero-error-wrap"],[1,"matero-error-code"],[1,"matero-error-title"],[1,"matero-error-message"],["matButton","elevated","color","primary","routerLink","/"]],template:function(r,o){r&1&&(h(0,"div",0)(1,"div",1),_(2),p(),N(3,_ue,2,1,"div",2),N(4,bue,2,1,"div",3),h(5,"div")(6,"a",4),_(7,"Back to Home"),p()()()),r&2&&(g(2),H(o.code()),g(),L(o.title()?3:-1),g(),L(o.message()?4:-1))},dependencies:[Nn,ze,kt],styles:[`.matero-error-wrap{text-align:center}.matero-error-code{padding:1.25rem 0;font-size:10rem;text-shadow:.1325825215rem .1325825215rem 0 rgba(0,0,0,.028575),.2651650429rem .2651650429rem 0 rgba(0,0,0,.02715),.3977475644rem .3977475644rem 0 rgba(0,0,0,.025725),.5303300859rem .5303300859rem 0 rgba(0,0,0,.0243),.6629126074rem .6629126074rem 0 rgba(0,0,0,.022875),.7954951288rem .7954951288rem 0 rgba(0,0,0,.02145),.9280776503rem .9280776503rem 0 rgba(0,0,0,.020025),1.0606601718rem 1.0606601718rem 0 rgba(0,0,0,.0186),1.1932426933rem 1.1932426933rem 0 rgba(0,0,0,.017175),1.3258252147rem 1.3258252147rem 0 rgba(0,0,0,.01575),1.4584077362rem 1.4584077362rem 0 rgba(0,0,0,.014325),1.5909902577rem 1.5909902577rem 0 rgba(0,0,0,.0129),1.7235727791rem 1.7235727791rem 0 rgba(0,0,0,.011475),1.8561553006rem 1.8561553006rem 0 rgba(0,0,0,.01005),1.9887378221rem 1.9887378221rem 0 rgba(0,0,0,.008625),2.1213203436rem 2.1213203436rem 0 rgba(0,0,0,.0072),2.253902865rem 2.253902865rem 0 rgba(0,0,0,.005775),2.3864853865rem 2.3864853865rem 0 rgba(0,0,0,.00435),2.519067908rem 2.519067908rem 0 rgba(0,0,0,.002925),2.6516504294rem 2.6516504294rem 0 rgba(0,0,0,.0015)}.matero-error-title{margin:0 0 1rem;font-size:1.25rem;font-weight:500;line-height:2rem}.matero-error-message{margin:0 0 1rem;font-size:1rem;font-weight:400;line-height:1.75rem} +`],encapsulation:2});let t=n;return t})();function vue(t,n){if(t&1&&k(0,"breadcrumb",2),t&2){let e=C();y("nav",e.nav())}}var ni=(()=>{let n=class n{constructor(){this.router=u(Re),this.menu=u(so),this.title=ne(""),this.subtitle=ne(""),this.nav=ne([]),this.hideBreadcrumb=ne(!1,{transform:V}),this.titleName=Zt(()=>{let i=this.router.url.slice(1).split("/"),r=this.menu.getLevel(i);return this.title()||r[r.length-1]})}};n.\u0275fac=function(r){return new(r||n)},n.\u0275cmp=E({type:n,selectors:[["page-header"]],hostAttrs:[1,"matero-page-header"],inputs:{title:[1,"title"],subtitle:[1,"subtitle"],nav:[1,"nav"],hideBreadcrumb:[1,"hideBreadcrumb"]},decls:7,vars:5,consts:[[1,"matero-page-header-inner"],[1,"matero-page-title"],[3,"nav"]],template:function(r,o){r&1&&(h(0,"div",0)(1,"h1",1),_(2),me(3,"translate"),h(4,"small"),_(5),p()(),N(6,vue,1,1,"breadcrumb",2),p()),r&2&&(g(2),ve(" ",Oe(3,3,o.titleName())," "),g(3),H(o.subtitle()),g(),L(o.hideBreadcrumb()?-1:6))},dependencies:[J5,wr,Cr],styles:[`.matero-page-header{display:block;padding:1rem;margin-bottom:1rem;color:#ffffffde;background-color:#0074e9;border-radius:var(--mat-sys-corner-medium)}.matero-page-header .matero-breadcrumb{margin-top:.5rem;margin-bottom:0}.matero-page-title{margin:0;font-size:1.5rem;font-weight:400} +`],encapsulation:2});let t=n;return t})();var dz=(()=>{let n=class n{constructor(){this.change=new U,this.valueSignal=he("ltr")}get value(){return this.valueSignal()}set value(i){this.valueSignal.set(i),this.change.next(i)}ngOnDestroy(){this.change.complete()}};n.\u0275fac=function(r){return new(r||n)},n.\u0275prov=O({token:n,factory:n.\u0275fac,providedIn:"root"});let t=n;return t})();var uz=(()=>{let n=class n{constructor(){this.messages=[]}add(i){this.messages.push(i)}clear(){this.messages=[]}};n.\u0275fac=function(r){return new(r||n)},n.\u0275prov=O({token:n,factory:n.\u0275fac,providedIn:"root"});let t=n;return t})();var mz=(()=>{let n=class n{get(i){return JSON.parse(localStorage.getItem(i)||"{}")||{}}set(i,r){return localStorage.setItem(i,JSON.stringify(r)),!0}has(i){return!!localStorage.getItem(i)}remove(i){localStorage.removeItem(i)}clear(){localStorage.clear()}};n.\u0275fac=function(r){return new(r||n)},n.\u0275prov=O({token:n,factory:n.\u0275fac,providedIn:"root"});let t=n;return t})();var hz=(()=>{let n=class n{constructor(){this.translate=u(ia),this.paginatorIntl=new gc,this.translate.onLangChange.subscribe(i=>this.getPaginatorIntl())}getPaginatorIntl(){return this.paginatorIntl.itemsPerPageLabel=this.translate.instant("paginator.items_per_page_label"),this.paginatorIntl.previousPageLabel=this.translate.instant("paginator.previous_page_label"),this.paginatorIntl.nextPageLabel=this.translate.instant("paginator.next_page_label"),this.paginatorIntl.firstPageLabel=this.translate.instant("paginator.first_page_label"),this.paginatorIntl.lastPageLabel=this.translate.instant("paginator.last_page_label"),this.paginatorIntl.getRangeLabel=this.getRangeLabel.bind(this),this.paginatorIntl.changes.next(),this.paginatorIntl}getRangeLabel(i,r,o){if(o===0||r===0)return this.translate.instant("paginator.range_page_label_1",{length:o});o=Math.max(o,0);let a=i*r,s=a{if(t.destroyed){e.next();return}return t.onDestroy(e.next.bind(e))});return e=>e.pipe(Te(n))}function pz(t){let n=UM(t);return new Fe(e=>{let i=n?.onDestroy(()=>e.complete()),r=t.subscribe(o=>e.next(o));return()=>{r.unsubscribe(),i?.()}})}var yue=["content"],xue=["scroll"],Cue=["padding"],_z=["*"],m_=t=>({searchTerm:t});function wue(t,n){if(t&1&&(h(0,"div",3),Ge(1,6),p()),t&2){let e=C();g(),y("ngTemplateOutlet",e.headerTemplate())("ngTemplateOutletContext",Pt(2,m_,e.filterValue()))}}function Due(t,n){if(t&1&&(h(0,"div",5),Ge(1,6),p()),t&2){let e=C();g(),y("ngTemplateOutlet",e.footerTemplate())("ngTemplateOutletContext",Pt(2,m_,e.filterValue()))}}var Eue=["searchInput"],Mue=["clearButton"],kue=(t,n,e)=>({item:t,clear:n,label:e}),Sue=(t,n)=>({items:t,clear:n}),Tue=(t,n,e,i)=>({item:t,item$:n,index:e,searchTerm:i});function Iue(t,n){if(t&1&&(h(0,"div",20),_(1),p()),t&2){let e=C(2);g(),H(e.placeholder()??e.config.placeholder)}}function Aue(t,n){}function Oue(t,n){if(t&1&&R(0,Iue,2,1,"ng-template",null,1,_i)(2,Aue,0,0,"ng-template",19),t&2){let e=Se(1),i=C();g(2),y("ngTemplateOutlet",i.placeholderTemplate()||e)}}function Rue(t,n){if(t&1){let e=Y();h(0,"span",23),S("click",function(){I(e);let r=C().$implicit,o=C(2);return A(o.unselect(r))}),_(1,"\xD7"),p(),k(2,"span",24)}if(t&2){let e=C().$implicit,i=C(2);g(2),y("ngItemLabel",e.label)("escape",i.escapeHTML)}}function Pue(t,n){}function Fue(t,n){if(t&1&&(h(0,"div",22),R(1,Rue,3,2,"ng-template",null,2,_i)(3,Pue,0,0,"ng-template",12),p()),t&2){let e=n.$implicit,i=Se(2),r=C(2);G("ng-value-disabled",e.disabled),g(3),y("ngTemplateOutlet",r.labelTemplate()||i)("ngTemplateOutletContext",Rd(4,kue,e.value,r.clearItem,e.label))}}function Nue(t,n){if(t&1&&xt(0,Fue,4,8,"div",21,Mv().trackByOption,!0),t&2){let e=C();Ct(e.selectedItems)}}function Lue(t,n){}function Vue(t,n){if(t&1&&R(0,Lue,0,0,"ng-template",12),t&2){let e=C();y("ngTemplateOutlet",e.multiLabelTemplate())("ngTemplateOutletContext",wa(2,Sue,e.selectedValues,e.clearItem))}}function Bue(t,n){t&1&&k(0,"div",25)}function jue(t,n){}function Hue(t,n){if(t&1&&R(0,Bue,1,0,"ng-template",null,3,_i)(2,jue,0,0,"ng-template",19),t&2){let e=Se(1),i=C();g(2),y("ngTemplateOutlet",i.loadingSpinnerTemplate()||e)}}function zue(t,n){if(t&1&&Ge(0,19),t&2){let e=C(2);y("ngTemplateOutlet",e.clearButtonTemplate())}}function Uue(t,n){if(t&1){let e=Y();h(0,"span",27,4),S("click",function(r){I(e);let o=C(2);return A(o.handleClearClick(r))}),h(2,"span",28),_(3,"\xD7"),p()()}if(t&2){let e=C(2);y("title",VM(e.clearAllText()||e.config.clearAllText)),X("tabindex",e.tabFocusOnClear()?0:-1)}}function $ue(t,n){if(t&1&&N(0,zue,1,1,"ng-container",19)(1,Uue,4,3,"span",26),t&2){let e=C();L(e.clearButtonTemplate()?0:1)}}function Wue(t,n){if(t&1&&k(0,"span",33),t&2){let e=C().$implicit,i=C(2);y("ngItemLabel",e.label)("escape",i.escapeHTML)}}function Gue(t,n){}function que(t,n){if(t&1){let e=Y();h(0,"div",32),S("click",function(){let r=I(e).$implicit,o=C(2);return A(o.toggleItem(r))})("mouseover",function(){let r=I(e).$implicit,o=C(2);return A(o.onItemHover(r))}),R(1,Wue,1,2,"ng-template",null,5,_i)(3,Gue,0,0,"ng-template",12),p()}if(t&2){let e=n.$implicit,i=Se(2),r=C(2);G("ng-option-disabled",e.disabled)("ng-option-selected",e.selected)("ng-optgroup",e.children)("ng-option",!e.children)("ng-option-child",!!e.parent)("ng-option-marked",e===r.itemsList.markedItem),X("role",e.children?"group":"option")("aria-selected",e.selected)("id",e==null?null:e.htmlId)("aria-setsize",r.itemsList.filteredItems.length)("aria-posinset",e.index+1),g(3),y("ngTemplateOutlet",e.children?r.optgroupTemplate()||i:r.optionTemplate()||i)("ngTemplateOutletContext",wm(19,Tue,e.value,e,e.index,r.searchTerm))}}function Yue(t,n){if(t&1&&(h(0,"span")(1,"span",35),_(2),p(),_(3),p()),t&2){let e=C(3);g(2),H(e.addTagText()||e.config.addTagText),g(),ve('"',e.searchTerm,'"')}}function Que(t,n){}function Kue(t,n){if(t&1){let e=Y();h(0,"div",34),S("mouseover",function(){I(e);let r=C(2);return A(r.itemsList.unmarkItem())})("click",function(){I(e);let r=C(2);return A(r.selectTag())}),R(1,Yue,4,2,"ng-template",null,6,_i)(3,Que,0,0,"ng-template",12),p()}if(t&2){let e=Se(2),i=C(2);G("ng-option-marked",!i.itemsList.markedItem),g(3),y("ngTemplateOutlet",i.tagTemplate()||e)("ngTemplateOutletContext",Pt(4,m_,i.searchTerm))}}function Zue(t,n){if(t&1&&(h(0,"div",36),_(1),p()),t&2){let e=C(3);g(),H(e.notFoundText()??e.config.notFoundText)}}function Xue(t,n){}function Jue(t,n){if(t&1&&R(0,Zue,2,1,"ng-template",null,7,_i)(2,Xue,0,0,"ng-template",12),t&2){let e=Se(1),i=C(2);g(2),y("ngTemplateOutlet",i.notFoundTemplate()||e)("ngTemplateOutletContext",Pt(2,m_,i.searchTerm))}}function eme(t,n){if(t&1&&(h(0,"div",36),_(1),p()),t&2){let e=C(3);g(),H(e.typeToSearchText()||e.config.typeToSearchText)}}function tme(t,n){}function ime(t,n){if(t&1&&R(0,eme,2,1,"ng-template",null,8,_i)(2,tme,0,0,"ng-template",19),t&2){let e=Se(1),i=C(2);g(2),y("ngTemplateOutlet",i.typeToSearchTemplate()||e)}}function nme(t,n){if(t&1&&(h(0,"div",36),_(1),p()),t&2){let e=C(3);g(),H(e.loadingText()||e.config.loadingText)}}function rme(t,n){}function ome(t,n){if(t&1&&R(0,nme,2,1,"ng-template",null,9,_i)(2,rme,0,0,"ng-template",12),t&2){let e=Se(1),i=C(2);g(2),y("ngTemplateOutlet",i.loadingTextTemplate()||e)("ngTemplateOutletContext",Pt(2,m_,i.searchTerm))}}function ame(t,n){if(t&1){let e=Y();h(0,"ng-dropdown-panel",29),S("update",function(r){I(e);let o=C();return A(o.viewPortItems=r)})("scroll",function(r){I(e);let o=C();return A(o.scroll.emit(r))})("scrollToEnd",function(r){I(e);let o=C();return A(o.scrollToEnd.emit(r))})("outsideClick",function(){I(e);let r=C();return A(r.close())}),jt(1),xt(2,que,4,24,"div",30,Mv().trackByOption,!0),N(4,Kue,4,6,"div",31),Lt(),N(5,Jue,3,4),N(6,ime,3,1),N(7,ome,3,4),p()}if(t&2){let e=C(),i=e.appendTo()||e.config.appendTo;it(i?e.ngClass()?e.ngClass():e.classes:null),G("ng-select-multiple",e.multiple()),y("virtualScroll",e.virtualScroll()??!e.config.disableVirtualScroll??!1)("bufferAmount",e.bufferAmount())("appendTo",i)("position",e.dropdownPosition())("outsideClickEvent",e.outsideClickEvent())("headerTemplate",e.headerTemplate())("footerTemplate",e.footerTemplate())("filterValue",e.searchTerm)("items",e.itemsList.filteredItems)("showAddTag",e.showAddTag)("markedItem",e.itemsList.markedItem)("id",e.dropdownId)("ariaLabelDropdown",e.ariaLabelDropdown()),g(2),Ct(e.viewPortItems),g(2),L(e.showAddTag?4:-1),g(),L(e.showNoItemsFound()?5:-1),g(),L(e.showTypeToSearch()?6:-1),g(),L(e.loading()&&e.itemsList.filteredItems.length===0?7:-1)}}function sme(t,n){if(t&1&&_(0),t&2){let e=C();ve(" ",e.notFoundText()??e.config.notFoundText," ")}}var bz=/[&<>"']/g,lme=RegExp(bz.source),cme={"&":"&","<":"<",">":">",'"':""","'":"'"};function dme(t){return t&&lme.test(t)?t.replace(bz,n=>cme[n]):t}function Ji(t){return t!=null}function Su(t){return typeof t=="object"&&Ji(t)}function ume(t){return t instanceof Promise}function AC(t){return t instanceof Function}var mme=(()=>{let n=class n{constructor(){this.element=u(q),this.ngItemLabel=ne(),this.escape=ne(!0),Ar(()=>{this.element.nativeElement.innerHTML=this.escape()?dme(this.ngItemLabel()):this.ngItemLabel()})}};n.\u0275fac=function(r){return new(r||n)},n.\u0275dir=F({type:n,selectors:[["","ngItemLabel",""]],inputs:{ngItemLabel:[1,"ngItemLabel"],escape:[1,"escape"]}});let t=n;return t})(),OC=(()=>{let n=class n{constructor(){this.template=u(te)}};n.\u0275fac=function(r){return new(r||n)},n.\u0275dir=F({type:n,selectors:[["","ng-option-tmp",""]]});let t=n;return t})(),RC=(()=>{let n=class n{constructor(){this.template=u(te)}};n.\u0275fac=function(r){return new(r||n)},n.\u0275dir=F({type:n,selectors:[["","ng-optgroup-tmp",""]]});let t=n;return t})(),PC=(()=>{let n=class n{constructor(){this.template=u(te)}};n.\u0275fac=function(r){return new(r||n)},n.\u0275dir=F({type:n,selectors:[["","ng-label-tmp",""]]});let t=n;return t})(),FC=(()=>{let n=class n{constructor(){this.template=u(te)}};n.\u0275fac=function(r){return new(r||n)},n.\u0275dir=F({type:n,selectors:[["","ng-multi-label-tmp",""]]});let t=n;return t})(),NC=(()=>{let n=class n{constructor(){this.template=u(te)}};n.\u0275fac=function(r){return new(r||n)},n.\u0275dir=F({type:n,selectors:[["","ng-header-tmp",""]]});let t=n;return t})(),LC=(()=>{let n=class n{constructor(){this.template=u(te)}};n.\u0275fac=function(r){return new(r||n)},n.\u0275dir=F({type:n,selectors:[["","ng-footer-tmp",""]]});let t=n;return t})(),VC=(()=>{let n=class n{constructor(){this.template=u(te)}};n.\u0275fac=function(r){return new(r||n)},n.\u0275dir=F({type:n,selectors:[["","ng-notfound-tmp",""]]});let t=n;return t})(),BC=(()=>{let n=class n{constructor(){this.template=u(te)}};n.\u0275fac=function(r){return new(r||n)},n.\u0275dir=F({type:n,selectors:[["","ng-placeholder-tmp",""]]});let t=n;return t})(),jC=(()=>{let n=class n{constructor(){this.template=u(te)}};n.\u0275fac=function(r){return new(r||n)},n.\u0275dir=F({type:n,selectors:[["","ng-typetosearch-tmp",""]]});let t=n;return t})(),HC=(()=>{let n=class n{constructor(){this.template=u(te)}};n.\u0275fac=function(r){return new(r||n)},n.\u0275dir=F({type:n,selectors:[["","ng-loadingtext-tmp",""]]});let t=n;return t})(),zC=(()=>{let n=class n{constructor(){this.template=u(te)}};n.\u0275fac=function(r){return new(r||n)},n.\u0275dir=F({type:n,selectors:[["","ng-tag-tmp",""]]});let t=n;return t})(),UC=(()=>{let n=class n{constructor(){this.template=u(te)}};n.\u0275fac=function(r){return new(r||n)},n.\u0275dir=F({type:n,selectors:[["","ng-loadingspinner-tmp",""]]});let t=n;return t})(),$C=(()=>{let n=class n{constructor(){this.template=u(te)}};n.\u0275fac=function(r){return new(r||n)},n.\u0275dir=F({type:n,selectors:[["","ng-clearbutton-tmp",""]]});let t=n;return t})(),hme=(()=>{let n=class n{constructor(){this.fixedPlaceholder=!0,this.notFoundText="No items found",this.typeToSearchText="Type to search",this.addTagText="Add item",this.loadingText="Loading...",this.clearAllText="Clear all",this.disableVirtualScroll=!0,this.openOnEnter=!0,this.appearance="underline",this.tabFocusOnClear=!0,this.outsideClickEvent="click"}};n.\u0275fac=function(r){return new(r||n)},n.\u0275prov=O({token:n,factory:n.\u0275fac,providedIn:"root"});let t=n;return t})(),pme=(()=>{let n=class n{warn(i){console.warn(i)}};n.\u0275fac=function(r){return new(r||n)},n.\u0275prov=O({token:n,factory:n.\u0275fac,providedIn:"root"});let t=n;return t})();function vz(){return"axxxxxxxxxxx".replace(/[x]/g,()=>(Math.random()*16|0).toString(16))}var fme={"\u24B6":"A",\uFF21:"A",\u00C0:"A",\u00C1:"A",\u00C2:"A",\u1EA6:"A",\u1EA4:"A",\u1EAA:"A",\u1EA8:"A",\u00C3:"A",\u0100:"A",\u0102:"A",\u1EB0:"A",\u1EAE:"A",\u1EB4:"A",\u1EB2:"A",\u0226:"A",\u01E0:"A",\u00C4:"A",\u01DE:"A",\u1EA2:"A",\u00C5:"A",\u01FA:"A",\u01CD:"A",\u0200:"A",\u0202:"A",\u1EA0:"A",\u1EAC:"A",\u1EB6:"A",\u1E00:"A",\u0104:"A","\u023A":"A","\u2C6F":"A","\uA732":"AA",\u00C6:"AE",\u01FC:"AE",\u01E2:"AE","\uA734":"AO","\uA736":"AU","\uA738":"AV","\uA73A":"AV","\uA73C":"AY","\u24B7":"B",\uFF22:"B",\u1E02:"B",\u1E04:"B",\u1E06:"B","\u0243":"B",\u0182:"B",\u0181:"B","\u24B8":"C",\uFF23:"C",\u0106:"C",\u0108:"C",\u010A:"C",\u010C:"C",\u00C7:"C",\u1E08:"C",\u0187:"C","\u023B":"C","\uA73E":"C","\u24B9":"D",\uFF24:"D",\u1E0A:"D",\u010E:"D",\u1E0C:"D",\u1E10:"D",\u1E12:"D",\u1E0E:"D",\u0110:"D",\u018B:"D",\u018A:"D",\u0189:"D","\uA779":"D",\u01F1:"DZ",\u01C4:"DZ",\u01F2:"Dz",\u01C5:"Dz","\u24BA":"E",\uFF25:"E",\u00C8:"E",\u00C9:"E",\u00CA:"E",\u1EC0:"E",\u1EBE:"E",\u1EC4:"E",\u1EC2:"E",\u1EBC:"E",\u0112:"E",\u1E14:"E",\u1E16:"E",\u0114:"E",\u0116:"E",\u00CB:"E",\u1EBA:"E",\u011A:"E",\u0204:"E",\u0206:"E",\u1EB8:"E",\u1EC6:"E",\u0228:"E",\u1E1C:"E",\u0118:"E",\u1E18:"E",\u1E1A:"E",\u0190:"E",\u018E:"E","\u24BB":"F",\uFF26:"F",\u1E1E:"F",\u0191:"F","\uA77B":"F","\u24BC":"G",\uFF27:"G",\u01F4:"G",\u011C:"G",\u1E20:"G",\u011E:"G",\u0120:"G",\u01E6:"G",\u0122:"G",\u01E4:"G",\u0193:"G","\uA7A0":"G","\uA77D":"G","\uA77E":"G","\u24BD":"H",\uFF28:"H",\u0124:"H",\u1E22:"H",\u1E26:"H",\u021E:"H",\u1E24:"H",\u1E28:"H",\u1E2A:"H",\u0126:"H","\u2C67":"H","\u2C75":"H","\uA78D":"H","\u24BE":"I",\uFF29:"I",\u00CC:"I",\u00CD:"I",\u00CE:"I",\u0128:"I",\u012A:"I",\u012C:"I",\u0130:"I",\u00CF:"I",\u1E2E:"I",\u1EC8:"I",\u01CF:"I",\u0208:"I",\u020A:"I",\u1ECA:"I",\u012E:"I",\u1E2C:"I",\u0197:"I","\u24BF":"J",\uFF2A:"J",\u0134:"J","\u0248":"J","\u24C0":"K",\uFF2B:"K",\u1E30:"K",\u01E8:"K",\u1E32:"K",\u0136:"K",\u1E34:"K",\u0198:"K","\u2C69":"K","\uA740":"K","\uA742":"K","\uA744":"K","\uA7A2":"K","\u24C1":"L",\uFF2C:"L",\u013F:"L",\u0139:"L",\u013D:"L",\u1E36:"L",\u1E38:"L",\u013B:"L",\u1E3C:"L",\u1E3A:"L",\u0141:"L","\u023D":"L","\u2C62":"L","\u2C60":"L","\uA748":"L","\uA746":"L","\uA780":"L",\u01C7:"LJ",\u01C8:"Lj","\u24C2":"M",\uFF2D:"M",\u1E3E:"M",\u1E40:"M",\u1E42:"M","\u2C6E":"M",\u019C:"M","\u24C3":"N",\uFF2E:"N",\u01F8:"N",\u0143:"N",\u00D1:"N",\u1E44:"N",\u0147:"N",\u1E46:"N",\u0145:"N",\u1E4A:"N",\u1E48:"N","\u0220":"N",\u019D:"N","\uA790":"N","\uA7A4":"N",\u01CA:"NJ",\u01CB:"Nj","\u24C4":"O",\uFF2F:"O",\u00D2:"O",\u00D3:"O",\u00D4:"O",\u1ED2:"O",\u1ED0:"O",\u1ED6:"O",\u1ED4:"O",\u00D5:"O",\u1E4C:"O",\u022C:"O",\u1E4E:"O",\u014C:"O",\u1E50:"O",\u1E52:"O",\u014E:"O",\u022E:"O",\u0230:"O",\u00D6:"O",\u022A:"O",\u1ECE:"O",\u0150:"O",\u01D1:"O",\u020C:"O",\u020E:"O",\u01A0:"O",\u1EDC:"O",\u1EDA:"O",\u1EE0:"O",\u1EDE:"O",\u1EE2:"O",\u1ECC:"O",\u1ED8:"O",\u01EA:"O",\u01EC:"O",\u00D8:"O",\u01FE:"O",\u0186:"O",\u019F:"O","\uA74A":"O","\uA74C":"O",\u01A2:"OI","\uA74E":"OO",\u0222:"OU","\u24C5":"P",\uFF30:"P",\u1E54:"P",\u1E56:"P",\u01A4:"P","\u2C63":"P","\uA750":"P","\uA752":"P","\uA754":"P","\u24C6":"Q",\uFF31:"Q","\uA756":"Q","\uA758":"Q","\u024A":"Q","\u24C7":"R",\uFF32:"R",\u0154:"R",\u1E58:"R",\u0158:"R",\u0210:"R",\u0212:"R",\u1E5A:"R",\u1E5C:"R",\u0156:"R",\u1E5E:"R","\u024C":"R","\u2C64":"R","\uA75A":"R","\uA7A6":"R","\uA782":"R","\u24C8":"S",\uFF33:"S","\u1E9E":"S",\u015A:"S",\u1E64:"S",\u015C:"S",\u1E60:"S",\u0160:"S",\u1E66:"S",\u1E62:"S",\u1E68:"S",\u0218:"S",\u015E:"S","\u2C7E":"S","\uA7A8":"S","\uA784":"S","\u24C9":"T",\uFF34:"T",\u1E6A:"T",\u0164:"T",\u1E6C:"T",\u021A:"T",\u0162:"T",\u1E70:"T",\u1E6E:"T",\u0166:"T",\u01AC:"T",\u01AE:"T","\u023E":"T","\uA786":"T","\uA728":"TZ","\u24CA":"U",\uFF35:"U",\u00D9:"U",\u00DA:"U",\u00DB:"U",\u0168:"U",\u1E78:"U",\u016A:"U",\u1E7A:"U",\u016C:"U",\u00DC:"U",\u01DB:"U",\u01D7:"U",\u01D5:"U",\u01D9:"U",\u1EE6:"U",\u016E:"U",\u0170:"U",\u01D3:"U",\u0214:"U",\u0216:"U",\u01AF:"U",\u1EEA:"U",\u1EE8:"U",\u1EEE:"U",\u1EEC:"U",\u1EF0:"U",\u1EE4:"U",\u1E72:"U",\u0172:"U",\u1E76:"U",\u1E74:"U","\u0244":"U","\u24CB":"V",\uFF36:"V",\u1E7C:"V",\u1E7E:"V",\u01B2:"V","\uA75E":"V","\u0245":"V","\uA760":"VY","\u24CC":"W",\uFF37:"W",\u1E80:"W",\u1E82:"W",\u0174:"W",\u1E86:"W",\u1E84:"W",\u1E88:"W","\u2C72":"W","\u24CD":"X",\uFF38:"X",\u1E8A:"X",\u1E8C:"X","\u24CE":"Y",\uFF39:"Y",\u1EF2:"Y",\u00DD:"Y",\u0176:"Y",\u1EF8:"Y",\u0232:"Y",\u1E8E:"Y",\u0178:"Y",\u1EF6:"Y",\u1EF4:"Y",\u01B3:"Y","\u024E":"Y","\u1EFE":"Y","\u24CF":"Z",\uFF3A:"Z",\u0179:"Z",\u1E90:"Z",\u017B:"Z",\u017D:"Z",\u1E92:"Z",\u1E94:"Z",\u01B5:"Z",\u0224:"Z","\u2C7F":"Z","\u2C6B":"Z","\uA762":"Z","\u24D0":"a",\uFF41:"a",\u1E9A:"a",\u00E0:"a",\u00E1:"a",\u00E2:"a",\u1EA7:"a",\u1EA5:"a",\u1EAB:"a",\u1EA9:"a",\u00E3:"a",\u0101:"a",\u0103:"a",\u1EB1:"a",\u1EAF:"a",\u1EB5:"a",\u1EB3:"a",\u0227:"a",\u01E1:"a",\u00E4:"a",\u01DF:"a",\u1EA3:"a",\u00E5:"a",\u01FB:"a",\u01CE:"a",\u0201:"a",\u0203:"a",\u1EA1:"a",\u1EAD:"a",\u1EB7:"a",\u1E01:"a",\u0105:"a","\u2C65":"a",\u0250:"a","\uA733":"aa",\u00E6:"ae",\u01FD:"ae",\u01E3:"ae","\uA735":"ao","\uA737":"au","\uA739":"av","\uA73B":"av","\uA73D":"ay","\u24D1":"b",\uFF42:"b",\u1E03:"b",\u1E05:"b",\u1E07:"b",\u0180:"b",\u0183:"b",\u0253:"b","\u24D2":"c",\uFF43:"c",\u0107:"c",\u0109:"c",\u010B:"c",\u010D:"c",\u00E7:"c",\u1E09:"c",\u0188:"c","\u023C":"c","\uA73F":"c","\u2184":"c","\u24D3":"d",\uFF44:"d",\u1E0B:"d",\u010F:"d",\u1E0D:"d",\u1E11:"d",\u1E13:"d",\u1E0F:"d",\u0111:"d",\u018C:"d",\u0256:"d",\u0257:"d","\uA77A":"d",\u01F3:"dz",\u01C6:"dz","\u24D4":"e",\uFF45:"e",\u00E8:"e",\u00E9:"e",\u00EA:"e",\u1EC1:"e",\u1EBF:"e",\u1EC5:"e",\u1EC3:"e",\u1EBD:"e",\u0113:"e",\u1E15:"e",\u1E17:"e",\u0115:"e",\u0117:"e",\u00EB:"e",\u1EBB:"e",\u011B:"e",\u0205:"e",\u0207:"e",\u1EB9:"e",\u1EC7:"e",\u0229:"e",\u1E1D:"e",\u0119:"e",\u1E19:"e",\u1E1B:"e","\u0247":"e",\u025B:"e",\u01DD:"e","\u24D5":"f",\uFF46:"f",\u1E1F:"f",\u0192:"f","\uA77C":"f","\u24D6":"g",\uFF47:"g",\u01F5:"g",\u011D:"g",\u1E21:"g",\u011F:"g",\u0121:"g",\u01E7:"g",\u0123:"g",\u01E5:"g",\u0260:"g","\uA7A1":"g","\u1D79":"g","\uA77F":"g","\u24D7":"h",\uFF48:"h",\u0125:"h",\u1E23:"h",\u1E27:"h",\u021F:"h",\u1E25:"h",\u1E29:"h",\u1E2B:"h",\u1E96:"h",\u0127:"h","\u2C68":"h","\u2C76":"h",\u0265:"h",\u0195:"hv","\u24D8":"i",\uFF49:"i",\u00EC:"i",\u00ED:"i",\u00EE:"i",\u0129:"i",\u012B:"i",\u012D:"i",\u00EF:"i",\u1E2F:"i",\u1EC9:"i",\u01D0:"i",\u0209:"i",\u020B:"i",\u1ECB:"i",\u012F:"i",\u1E2D:"i",\u0268:"i",\u0131:"i","\u24D9":"j",\uFF4A:"j",\u0135:"j",\u01F0:"j","\u0249":"j","\u24DA":"k",\uFF4B:"k",\u1E31:"k",\u01E9:"k",\u1E33:"k",\u0137:"k",\u1E35:"k",\u0199:"k","\u2C6A":"k","\uA741":"k","\uA743":"k","\uA745":"k","\uA7A3":"k","\u24DB":"l",\uFF4C:"l",\u0140:"l",\u013A:"l",\u013E:"l",\u1E37:"l",\u1E39:"l",\u013C:"l",\u1E3D:"l",\u1E3B:"l",\u017F:"l",\u0142:"l",\u019A:"l",\u026B:"l","\u2C61":"l","\uA749":"l","\uA781":"l","\uA747":"l",\u01C9:"lj","\u24DC":"m",\uFF4D:"m",\u1E3F:"m",\u1E41:"m",\u1E43:"m",\u0271:"m",\u026F:"m","\u24DD":"n",\uFF4E:"n",\u01F9:"n",\u0144:"n",\u00F1:"n",\u1E45:"n",\u0148:"n",\u1E47:"n",\u0146:"n",\u1E4B:"n",\u1E49:"n",\u019E:"n",\u0272:"n",\u0149:"n","\uA791":"n","\uA7A5":"n",\u01CC:"nj","\u24DE":"o",\uFF4F:"o",\u00F2:"o",\u00F3:"o",\u00F4:"o",\u1ED3:"o",\u1ED1:"o",\u1ED7:"o",\u1ED5:"o",\u00F5:"o",\u1E4D:"o",\u022D:"o",\u1E4F:"o",\u014D:"o",\u1E51:"o",\u1E53:"o",\u014F:"o",\u022F:"o",\u0231:"o",\u00F6:"o",\u022B:"o",\u1ECF:"o",\u0151:"o",\u01D2:"o",\u020D:"o",\u020F:"o",\u01A1:"o",\u1EDD:"o",\u1EDB:"o",\u1EE1:"o",\u1EDF:"o",\u1EE3:"o",\u1ECD:"o",\u1ED9:"o",\u01EB:"o",\u01ED:"o",\u00F8:"o",\u01FF:"o",\u0254:"o","\uA74B":"o","\uA74D":"o",\u0275:"o",\u01A3:"oi",\u0223:"ou","\uA74F":"oo","\u24DF":"p",\uFF50:"p",\u1E55:"p",\u1E57:"p",\u01A5:"p","\u1D7D":"p","\uA751":"p","\uA753":"p","\uA755":"p","\u24E0":"q",\uFF51:"q","\u024B":"q","\uA757":"q","\uA759":"q","\u24E1":"r",\uFF52:"r",\u0155:"r",\u1E59:"r",\u0159:"r",\u0211:"r",\u0213:"r",\u1E5B:"r",\u1E5D:"r",\u0157:"r",\u1E5F:"r","\u024D":"r",\u027D:"r","\uA75B":"r","\uA7A7":"r","\uA783":"r","\u24E2":"s",\uFF53:"s",\u00DF:"s",\u015B:"s",\u1E65:"s",\u015D:"s",\u1E61:"s",\u0161:"s",\u1E67:"s",\u1E63:"s",\u1E69:"s",\u0219:"s",\u015F:"s","\u023F":"s","\uA7A9":"s","\uA785":"s",\u1E9B:"s","\u24E3":"t",\uFF54:"t",\u1E6B:"t",\u1E97:"t",\u0165:"t",\u1E6D:"t",\u021B:"t",\u0163:"t",\u1E71:"t",\u1E6F:"t",\u0167:"t",\u01AD:"t",\u0288:"t","\u2C66":"t","\uA787":"t","\uA729":"tz","\u24E4":"u",\uFF55:"u",\u00F9:"u",\u00FA:"u",\u00FB:"u",\u0169:"u",\u1E79:"u",\u016B:"u",\u1E7B:"u",\u016D:"u",\u00FC:"u",\u01DC:"u",\u01D8:"u",\u01D6:"u",\u01DA:"u",\u1EE7:"u",\u016F:"u",\u0171:"u",\u01D4:"u",\u0215:"u",\u0217:"u",\u01B0:"u",\u1EEB:"u",\u1EE9:"u",\u1EEF:"u",\u1EED:"u",\u1EF1:"u",\u1EE5:"u",\u1E73:"u",\u0173:"u",\u1E77:"u",\u1E75:"u",\u0289:"u","\u24E5":"v",\uFF56:"v",\u1E7D:"v",\u1E7F:"v",\u028B:"v","\uA75F":"v",\u028C:"v","\uA761":"vy","\u24E6":"w",\uFF57:"w",\u1E81:"w",\u1E83:"w",\u0175:"w",\u1E87:"w",\u1E85:"w",\u1E98:"w",\u1E89:"w","\u2C73":"w","\u24E7":"x",\uFF58:"x",\u1E8B:"x",\u1E8D:"x","\u24E8":"y",\uFF59:"y",\u1EF3:"y",\u00FD:"y",\u0177:"y",\u1EF9:"y",\u0233:"y",\u1E8F:"y",\u00FF:"y",\u1EF7:"y",\u1E99:"y",\u1EF5:"y",\u01B4:"y","\u024F":"y","\u1EFF":"y","\u24E9":"z",\uFF5A:"z",\u017A:"z",\u1E91:"z",\u017C:"z",\u017E:"z",\u1E93:"z",\u1E95:"z",\u01B6:"z",\u0225:"z","\u0240":"z","\u2C6C":"z","\uA763":"z",\u0386:"\u0391",\u0388:"\u0395",\u0389:"\u0397",\u038A:"\u0399",\u03AA:"\u0399",\u038C:"\u039F",\u038E:"\u03A5",\u03AB:"\u03A5",\u038F:"\u03A9",\u03AC:"\u03B1",\u03AD:"\u03B5",\u03AE:"\u03B7",\u03AF:"\u03B9",\u03CA:"\u03B9",\u0390:"\u03B9",\u03CC:"\u03BF",\u03CD:"\u03C5",\u03CB:"\u03C5",\u03B0:"\u03C5",\u03C9:"\u03C9",\u03C2:"\u03C3"};function IC(t){let n=e=>fme[e]||e;return t.replace(/[^\u0000-\u007E]/g,n)}var gI=class{constructor(n,e){this._ngSelect=n,this._selectionModel=e,this._items=[],this._filteredItems=[],this._markedIndex=-1}get items(){return this._items}get filteredItems(){return this._filteredItems}get markedIndex(){return this._markedIndex}get selectedItems(){return this._selectionModel.value}get markedItem(){return this._filteredItems[this._markedIndex]}get noItemsToSelect(){return this._ngSelect.hideSelected()&&this._items.length===this.selectedItems.length}get maxItemsSelected(){return this._ngSelect.multiple()&&this._ngSelect.maxSelectedItems()<=this.selectedItems.length}get lastSelectedItem(){let n=this.selectedItems.length-1;for(;n>=0;n--){let e=this.selectedItems[n];if(!e.disabled)return e}return null}setItems(n){this._items=n.map((i,r)=>this.mapItem(i,r));let e=this._ngSelect.groupBy();e?(this._groups=this._groupBy(this._items,e),this._items=this._flatten(this._groups)):(this._groups=new Map,this._groups.set(void 0,this._items)),this._filteredItems=[...this._items]}select(n){if(n.selected||this.maxItemsSelected)return;let e=this._ngSelect.multiple();e||this.clearSelected(),this._selectionModel.select(n,e,this._ngSelect.selectableGroupAsModel()),this._ngSelect.hideSelected()&&this._hideSelected(n)}unselect(n){if(!n.selected)return;let e=this._ngSelect.multiple();this._selectionModel.unselect(n,e),this._ngSelect.hideSelected()&&Ji(n.index)&&e&&this._showSelected(n)}findItem(n){let e;return this._ngSelect.compareWith()?e=i=>this._ngSelect.compareWith()(i.value,n):this._ngSelect.bindValue()?e=i=>!i.children&&this.resolveNested(i.value,this._ngSelect.bindValue())===n:e=i=>i.value===n||!i.children&&i.label&&i.label===this.resolveNested(n,this._ngSelect.bindLabel()),this._items.find(i=>e(i))}addItem(n){let e=this.mapItem(n,this._items.length);return this._items.push(e),this._filteredItems.push(e),e}clearSelected(n=!1){this._selectionModel.clear(n),this._items.forEach(e=>{e.selected=n&&e.selected&&e.disabled,e.marked=!1}),this._ngSelect.hideSelected()&&this.resetFilteredItems()}findByLabel(n){return n=IC(n).toLocaleLowerCase(),this.filteredItems.find(e=>IC(e.label).toLocaleLowerCase().substr(0,n.length)===n)}filter(n){if(!n){this.resetFilteredItems();return}this._filteredItems=[],n=this._ngSelect.searchFn()?n:IC(n).toLocaleLowerCase();let e=this._ngSelect.searchFn()||this._defaultSearchFn,i=this._ngSelect.hideSelected();for(let r of Array.from(this._groups.keys())){let o=[];for(let a of this._groups.get(r)){if(i&&(a.parent&&a.parent.selected||a.selected))continue;let s=this._ngSelect.searchFn()?a.value:a;e(n,s)&&o.push(a)}if(o.length>0){let[a]=o.slice(-1);if(a.parent){let s=this._items.find(l=>l===a.parent);this._filteredItems.push(s)}this._filteredItems.push(...o)}}}resetFilteredItems(){this._filteredItems.length!==this._items.length&&(this._ngSelect.hideSelected()&&this.selectedItems.length>0?this._filteredItems=this._items.filter(n=>!n.selected):this._filteredItems=this._items)}unmarkItem(){this._markedIndex=-1}markNextItem(){this._stepToItem(1)}markPreviousItem(){this._stepToItem(-1)}markItem(n){this._markedIndex=this._filteredItems.indexOf(n)}markSelectedOrDefault(n){if(this._filteredItems.length===0)return;let e=this._getLastMarkedIndex();e>-1?this._markedIndex=e:this._markedIndex=n?this.filteredItems.findIndex(i=>!i.disabled):-1}resolveNested(n,e){if(!Su(n))return n;if(e.indexOf(".")===-1)return n[e];{let i=e.split("."),r=n;for(let o=0,a=i.length;othis._ngSelect.compareWith()(o.value,e.value));else{let o=i?this.resolveNested(e.value,i):e.value;r=Ji(o)?this.findItem(o):null}this._selectionModel.unselect(e,n),this._selectionModel.select(r||e,n,this._ngSelect.selectableGroupAsModel())}this._ngSelect.hideSelected()&&(this._filteredItems=this.filteredItems.filter(e=>this.selectedItems.indexOf(e)===-1))}_showSelected(n){if(this._filteredItems.push(n),n.parent){let e=n.parent;this._filteredItems.find(r=>r===e)||this._filteredItems.push(e)}else if(n.children)for(let e of n.children)e.selected=!1,this._filteredItems.push(e);this._filteredItems=[...this._filteredItems.sort((e,i)=>e.index-i.index)]}_hideSelected(n){this._filteredItems=this._filteredItems.filter(e=>e!==n),n.parent?n.parent.children.every(i=>i.selected)&&(this._filteredItems=this._filteredItems.filter(i=>i!==n.parent)):n.children&&(this._filteredItems=this.filteredItems.filter(e=>e.parent!==n))}_defaultSearchFn(n,e){return IC(e.label).toLocaleLowerCase().indexOf(n)>-1}_getNextItemIndex(n){return n>0?this._markedIndex>=this._filteredItems.length-1?0:this._markedIndex+1:this._markedIndex<=0?this._filteredItems.length-1:this._markedIndex-1}_stepToItem(n){this._filteredItems.length===0||this._filteredItems.every(e=>e.disabled)||(this._markedIndex=this._getNextItemIndex(n),this.markedItem.disabled&&this._stepToItem(n))}_getLastMarkedIndex(){if(this._ngSelect.hideSelected()||this._markedIndex>-1&&this.markedItem===void 0)return-1;let n=this._filteredItems.indexOf(this.lastSelectedItem);return this.lastSelectedItem&&n<0?-1:Math.max(this.markedIndex,n)}_groupBy(n,e){let i=new Map;if(n.length===0)return i;if(Array.isArray(n[0].value[e])){for(let a of n){let s=(a.value[e]||[]).map((l,c)=>this.mapItem(l,c));i.set(a,s)}return i}let r=AC(this._ngSelect.groupBy()),o=a=>{let s=r?e(a.value):a.value[e];return Ji(s)?s:void 0};for(let a of n){let s=o(a),l=i.get(s);l?l.push(a):i.set(s,[a])}return i}_flatten(n){let e=AC(this._ngSelect.groupBy()),i=[];for(let r of Array.from(n.keys())){let o=i.length;if(r===void 0){let m=n.get(void 0)||[];i.push(...m.map(f=>(f.index=o++,f)));continue}let a=Su(r),s={label:a?"":String(r),children:void 0,parent:null,index:o++,disabled:!this._ngSelect.selectableGroup(),htmlId:vz()},l=e?this._ngSelect.bindLabel():this._ngSelect.groupBy(),c=this._ngSelect.groupValue()||(()=>a?r.value:{[l]:r}),d=n.get(r).map(m=>(m.parent=s,m.children=void 0,m.index=o++,m));s.children=d,s.value=c(r,d.map(m=>m.value)),i.push(s),i.push(...d)}return i}},yz=(()=>{let n=class n{constructor(){this._dimensions={itemHeight:0,panelHeight:0,itemsPerViewport:0}}get dimensions(){return this._dimensions}calculateItems(i,r,o){let a=this._dimensions,s=a.itemHeight*r,c=Math.max(0,i)/s*r,d=Math.min(r,Math.ceil(c)+(a.itemsPerViewport+1)),f=Math.max(0,d-a.itemsPerViewport),b=Math.min(f,Math.floor(c)),v=a.itemHeight*Math.ceil(b)-a.itemHeight*Math.min(b,o);return v=isNaN(v)?0:v,b=isNaN(b)?-1:b,d=isNaN(d)?-1:d,b-=o,b=Math.max(0,b),d+=o,d=Math.min(r,d),{topPadding:v,scrollHeight:s,start:b,end:d}}setDimensions(i,r){let o=Math.max(1,Math.floor(r/i));this._dimensions={itemHeight:i,panelHeight:r,itemsPerViewport:o}}getScrollTo(i,r,o){let{panelHeight:a}=this.dimensions,s=i+r,l=o,c=l+a;return a>=s&&o===i?null:s>c?l+s-c:i<=l?i:null}};n.\u0275fac=function(r){return new(r||n)},n.\u0275prov=O({token:n,factory:n.\u0275fac});let t=n;return t})(),fz=["top","right","bottom","left"],gme=typeof requestAnimationFrame<"u"?G_:U_,fI=(()=>{let n=class n{get currentPosition(){return this._currentPosition}get itemsLength(){return this._itemsLength}set itemsLength(i){i!==this._itemsLength&&(this._itemsLength=i,this._onItemsLengthChanged())}get _startOffset(){if(this.markedItem()){let{itemHeight:i,panelHeight:r}=this._panelService.dimensions,o=this.markedItem().index*i;return r>o?0:o}return 0}constructor(){this._renderer=u(je),this._zone=u(ae),this._panelService=u(yz),this._document=u(ge,{optional:!0}),this._destroyRef=u(nn),this._dropdown=u(q).nativeElement,this.items=ne([]),this.showAddTag=ne(!1,{transform:V}),this.markedItem=ne(void 0),this.position=ne("auto"),this.appendTo=ne(void 0),this.bufferAmount=ne(void 0),this.virtualScroll=ne(!1,{transform:V}),this.headerTemplate=ne(void 0),this.footerTemplate=ne(void 0),this.filterValue=ne(null),this.ariaLabelDropdown=ne(null),this.outsideClickEvent=ne("click"),this.update=bi(),this.scroll=bi(),this.scrollToEnd=bi(),this.outsideClick=bi(),this.contentElementRef=qn("content",{read:q}),this.scrollElementRef=qn("scroll",{read:q}),this.paddingElementRef=qn("padding",{read:q}),this._virtualPadding=Zt(()=>this.paddingElementRef()?.nativeElement),this._scrollablePanel=Zt(()=>this.scrollElementRef()?.nativeElement),this._contentPanel=Zt(()=>this.contentElementRef()?.nativeElement),this._scrollToEndFired=!1,this._updateScrollHeight=!1,this._lastScrollPosition=0,this._destroyRef.onDestroy(()=>{this.appendTo()&&this._renderer.removeChild(this._dropdown.parentNode,this._dropdown)})}ngOnInit(){this._select=this._dropdown.parentElement,this._handleScroll(),this._handleOutsideClick(),this._appendDropdown(),this._setupMousedownListener()}ngOnChanges(i){if(i.items){let r=i.items;this._onItemsOrShowAddTagChange(r.currentValue,this.showAddTag(),r.firstChange)}if(i.showAddTag){let r=i.showAddTag;this._onItemsOrShowAddTagChange(this.items(),r.currentValue,r.firstChange)}}scrollTo(i,r=!1){if(!i)return;let o=this.items().indexOf(i);if(o<0||o>=this.itemsLength)return;let a;if(this.virtualScroll()){let s=this._panelService.dimensions.itemHeight;a=this._panelService.getScrollTo(o*s,s,this._lastScrollPosition)}else{let s=this._dropdown.querySelector(`#${i.htmlId}`),l=r?s.offsetTop:this._lastScrollPosition;a=this._panelService.getScrollTo(s.offsetTop,s.clientHeight,l)}Ji(a)&&(this._scrollablePanel().scrollTop=a)}scrollToTag(){let i=this._scrollablePanel();i.scrollTop=i.scrollHeight-i.clientHeight}adjustPosition(){this._updateYPosition()}_handleDropdownPosition(){this._currentPosition=this._calculateCurrentPosition(this._dropdown),fz.includes(this._currentPosition)?this._updateDropdownClass(this._currentPosition):this._updateDropdownClass("bottom"),this.appendTo()&&this._updateYPosition(),this._dropdown.style.opacity="1"}_updateDropdownClass(i){fz.forEach(o=>{let a=`ng-select-${o}`;this._renderer.removeClass(this._dropdown,a),this._renderer.removeClass(this._select,a)});let r=`ng-select-${i}`;this._renderer.addClass(this._dropdown,r),this._renderer.addClass(this._select,r)}_handleScroll(){this._zone.runOutsideAngular(()=>{this._scrollablePanel()&&zs(this._scrollablePanel(),"scroll").pipe(ku(this._destroyRef),Pl(0,gme)).subscribe(i=>{let r=i.target;r&&"scrollTop"in r&&this._onContentScrolled(r.scrollTop)})})}_handleOutsideClick(){this._document&&this._zone.runOutsideAngular(()=>{zs(this._document,this.outsideClickEvent(),{capture:!0}).pipe(ku(this._destroyRef)).subscribe(i=>this._checkToClose(i))})}_checkToClose(i){if(this._select.contains(i.target)||this._dropdown.contains(i.target))return;let r=i.path||i.composedPath&&i.composedPath();i.target&&i.target.shadowRoot&&r&&r[0]&&this._select.contains(r[0])||this._zone.run(()=>this.outsideClick.emit())}_onItemsOrShowAddTagChange(i=[],r,o){this._scrollToEndFired=!1,this.itemsLength=i.length,r&&i.length&&this.itemsLength++,this.virtualScroll()?this._updateItemsRange(o):(this._setVirtualHeight(),this._updateItems(o))}_updateItems(i){this.update.emit(this.items()),i!==!1&&this._zone.runOutsideAngular(()=>{Promise.resolve().then(()=>{let r=this._scrollablePanel().clientHeight;this._panelService.setDimensions(0,r),this._handleDropdownPosition(),this.scrollTo(this.markedItem(),i)})})}_updateItemsRange(i){this._zone.runOutsideAngular(()=>{this._measureDimensions().then(()=>{i?(this._renderItemsRange(this._startOffset),this._handleDropdownPosition()):this._renderItemsRange()})})}_onContentScrolled(i){this.virtualScroll()&&this._renderItemsRange(i),this._lastScrollPosition=i,this._fireScrollToEnd(i)}_updateVirtualHeight(i){this._updateScrollHeight&&(this._virtualPadding().style.height=`${i}px`,this._updateScrollHeight=!1)}_setVirtualHeight(){this._virtualPadding()&&(this._virtualPadding().style.height="0px")}_onItemsLengthChanged(){this._updateScrollHeight=!0}_renderItemsRange(i=null){if(i&&this._lastScrollPosition===i)return;i=i||this._scrollablePanel().scrollTop;let r=this._panelService.calculateItems(i,this.itemsLength,this.bufferAmount());this._updateVirtualHeight(r.scrollHeight),this._contentPanel().style.transform=`translateY(${r.topPadding}px)`,this._zone.run(()=>{this.update.emit(this.items().slice(r.start,r.end)),this.scroll.emit({start:r.start,end:r.end})}),Ji(i)&&this._lastScrollPosition===0&&(this._scrollablePanel().scrollTop=i,this._lastScrollPosition=i)}_measureDimensions(){if(this._panelService.dimensions.itemHeight>0||this.itemsLength===0)return Promise.resolve(this._panelService.dimensions);let[i]=this.items();return this.update.emit([i]),Promise.resolve().then(()=>{let o=this._dropdown.querySelector(`#${i.htmlId}`).clientHeight;this._virtualPadding().style.height=`${o*this.itemsLength}px`;let a=this._scrollablePanel().clientHeight;return this._panelService.setDimensions(o,a),this._panelService.dimensions})}_fireScrollToEnd(i){if(this._scrollToEndFired||i===0)return;let r=this.virtualScroll()?this._virtualPadding():this._contentPanel();i+this._dropdown.clientHeight>=r.clientHeight-1&&(this._zone.run(()=>this.scrollToEnd.emit()),this._scrollToEndFired=!0)}_calculateCurrentPosition(i){let r=this.position();if(r!=="auto")return r;let o=this._select.getBoundingClientRect(),a=document.documentElement.scrollTop||document.body.scrollTop,s=o.top+window.pageYOffset,l=o.height,c=i.getBoundingClientRect().height;return s+l+c>a+document.documentElement.clientHeight?"top":"bottom"}_appendDropdown(){if(this.appendTo()){if(this._parent=this._dropdown.shadowRoot?this._dropdown.shadowRoot.querySelector(this.appendTo()):document.querySelector(this.appendTo()),!this._parent)throw new Error(`appendTo selector ${this.appendTo()} did not found any parent element`);this._updateXPosition(),this._parent.appendChild(this._dropdown)}}_updateXPosition(){let i=this._select.getBoundingClientRect(),r=this._parent.getBoundingClientRect(),o=document.documentElement.dir==="rtl",a=i.left-r.left;if(o){let s=r.right-i.right;this._dropdown.style.right=s+"px",this._dropdown.style.left="auto"}else this._dropdown.style.left=a+"px",this._dropdown.style.right="auto";this._dropdown.style.width=i.width+"px",this._dropdown.style.minWidth=i.width+"px"}_updateYPosition(){let i=this._select.getBoundingClientRect(),r=this._parent.getBoundingClientRect(),o=i.height;if(this._currentPosition==="top"){let a=r.bottom-i.bottom;this._dropdown.style.bottom=a+o+"px",this._dropdown.style.top="auto"}else if(this._currentPosition==="bottom"){let a=i.top-r.top;this._dropdown.style.top=a+o+"px",this._dropdown.style.bottom="auto"}}_setupMousedownListener(){this._zone.runOutsideAngular(()=>{zs(this._dropdown,"mousedown").pipe(ku(this._destroyRef)).subscribe(i=>{i.target.tagName!=="INPUT"&&i.preventDefault()})})}};n.\u0275fac=function(r){return new(r||n)},n.\u0275cmp=E({type:n,selectors:[["ng-dropdown-panel"]],viewQuery:function(r,o){r&1&&(Pn(o.contentElementRef,yue,5,q),Pn(o.scrollElementRef,xue,5,q),Pn(o.paddingElementRef,Cue,5,q)),r&2&&Ho(3)},inputs:{items:[1,"items"],showAddTag:[1,"showAddTag"],markedItem:[1,"markedItem"],position:[1,"position"],appendTo:[1,"appendTo"],bufferAmount:[1,"bufferAmount"],virtualScroll:[1,"virtualScroll"],headerTemplate:[1,"headerTemplate"],footerTemplate:[1,"footerTemplate"],filterValue:[1,"filterValue"],ariaLabelDropdown:[1,"ariaLabelDropdown"],outsideClickEvent:[1,"outsideClickEvent"]},outputs:{update:"update",scroll:"scroll",scrollToEnd:"scrollToEnd",outsideClick:"outsideClick"},features:[Ae],ngContentSelectors:_z,decls:9,vars:7,consts:[["scroll",""],["padding",""],["content",""],[1,"ng-dropdown-header"],["role","listbox",1,"ng-dropdown-panel-items","scroll-host"],[1,"ng-dropdown-footer"],[3,"ngTemplateOutlet","ngTemplateOutletContext"]],template:function(r,o){r&1&&(Me(),N(0,wue,2,4,"div",3),h(1,"div",4,0),k(3,"div",null,1),h(5,"div",null,2),oe(7),p()(),N(8,Due,2,4,"div",5)),r&2&&(L(o.headerTemplate()?0:-1),g(),X("aria-label",o.ariaLabelDropdown()),g(2),G("total-padding",o.virtualScroll()),g(2),G("scrollable-content",o.virtualScroll()&&o.items().length),g(3),L(o.footerTemplate()?8:-1))},dependencies:[Fn],encapsulation:2,changeDetection:0});let t=n;return t})(),gz=(()=>{let n=class n{constructor(){this.value=ne(),this.disabled=ne(!1,{transform:V}),this.elementRef=u(q),this.label=he(""),pt(()=>{let i=(this.elementRef.nativeElement.innerHTML||"").trim();i!==this.label()&&this.label.set(i)})}};n.\u0275fac=function(r){return new(r||n)},n.\u0275cmp=E({type:n,selectors:[["ng-option"]],inputs:{value:[1,"value"],disabled:[1,"disabled"]},ngContentSelectors:_z,decls:1,vars:0,template:function(r,o){r&1&&(Me(),oe(0))},encapsulation:2,changeDetection:0});let t=n;return t})(),Ps=(function(t){return t.Tab="Tab",t.Enter="Enter",t.Esc="Escape",t.Space=" ",t.ArrowUp="ArrowUp",t.ArrowDown="ArrowDown",t.Backspace="Backspace",t})(Ps||{});function xz(){return new _I}var _I=class{constructor(){this._selected=[]}get value(){return this._selected}select(n,e,i){if(n.selected=!0,(!n.children||!e&&i)&&this._selected.push(n),e)if(n.parent){let r=n.parent.children.length,o=n.parent.children.filter(a=>a.selected).length;n.parent.selected=r===o}else n.children&&(this._setChildrenSelectedState(n.children,!0),this._removeChildren(n),i&&this._activeChildren(n)?this._selected=[...this._selected.filter(r=>r.parent!==n),n]:this._selected=[...this._selected,...n.children.filter(r=>!r.disabled)])}unselect(n,e){if(this._selected=this._selected.filter(i=>i!==n),n.selected=!1,e)if(n.parent&&n.parent.selected){let i=n.parent.children;this._removeParent(n.parent),this._removeChildren(n.parent),this._selected.push(...i.filter(r=>r!==n&&!r.disabled)),n.parent.selected=!1}else n.children&&(this._setChildrenSelectedState(n.children,!1),this._removeChildren(n))}clear(n){this._selected=n?this._selected.filter(e=>e.disabled):[]}_setChildrenSelectedState(n,e){for(let i of n)i.disabled||(i.selected=e)}_removeChildren(n){this._selected=[...this._selected.filter(e=>e.parent!==n),...n.children.filter(e=>e.parent===n&&e.disabled&&e.selected)]}_removeParent(n){this._selected=this._selected.filter(e=>e!==n)}_activeChildren(n){return n.children.every(e=>!e.disabled||e.selected)}},Cz=new T("ng-select-selection-model"),wz=(()=>{let n=class n{constructor(){this.classes=u(new Ii("class"),{optional:!0}),this.config=u(hme),this._cd=u(ye),this._console=u(pme),this._destroyRef=u(nn),this._disabled=he(!1),this.ariaLabelDropdown=ne("Options List"),this.ariaLabel=ne(void 0),this.markFirst=ne(!0,{transform:V}),this.placeholder=ne(this.config.placeholder),this.fixedPlaceholder=ne(!0),this.notFoundText=ne(void 0),this.typeToSearchText=ne(void 0),this.preventToggleOnRightClick=ne(!1),this.addTagText=ne(void 0),this.loadingText=ne(void 0),this.clearAllText=ne(void 0),this.dropdownPosition=ne("auto"),this.appendTo=ne(void 0),this.outsideClickEvent=ne(this.config.outsideClickEvent),this.loading=ne(!1,{transform:V}),this.closeOnSelect=ne(!0,{transform:V}),this.hideSelected=ne(!1,{transform:V}),this.selectOnTab=ne(!1,{transform:V}),this.openOnEnter=ne(void 0,{transform:V}),this.maxSelectedItems=ne(void 0,{transform:ct}),this.groupBy=ne(void 0),this.groupValue=ne(void 0),this.bufferAmount=ne(4,{transform:ct}),this.virtualScroll=ne(void 0,{transform:V}),this.selectableGroup=ne(!1,{transform:V}),this.tabFocusOnClearButton=ne(),this.selectableGroupAsModel=ne(!0,{transform:V}),this.searchFn=ne(null),this.trackByFn=ne(null),this.clearOnBackspace=ne(!0,{transform:V}),this.labelForId=ne(null),this.inputAttrs=ne({}),this.tabIndex=ne(void 0,{transform:ct}),this.readonly=ne(!1,{transform:V}),this.searchWhileComposing=ne(!0,{transform:V}),this.minTermLength=ne(0,{transform:ct}),this.editableSearchTerm=ne(!1,{transform:V}),this.ngClass=ne(null),this.typeahead=ne(void 0),this.multiple=ne(!1,{transform:V}),this.addTag=ne(!1),this.searchable=ne(!0,{transform:V}),this.clearable=ne(!0,{transform:V}),this.deselectOnClick=ne(),this.clearSearchOnAdd=ne(void 0),this.compareWith=ne(void 0,{transform:a=>{if(a!=null&&!AC(a))throw Error("`compareWith` must be a function.");return a}}),this.keyDownFn=ne(a=>!0),this.bindLabel=Em(void 0),this.bindValue=Em(void 0),this.appearance=Em(void 0),this.isOpen=Em(!1),this.items=Em([]),this.blurEvent=bi({alias:"blur"}),this.focusEvent=bi({alias:"focus"}),this.changeEvent=bi({alias:"change"}),this.openEvent=bi({alias:"open"}),this.closeEvent=bi({alias:"close"}),this.searchEvent=bi({alias:"search"}),this.clearEvent=bi({alias:"clear"}),this.addEvent=bi({alias:"add"}),this.removeEvent=bi({alias:"remove"}),this.scroll=bi({alias:"scroll"}),this.scrollToEnd=bi({alias:"scrollToEnd"}),this.disabled=Zt(()=>this.readonly()||this._disabled()),this.clearSearchOnAddValue=Zt(()=>Ji(this.clearSearchOnAdd())?this.clearSearchOnAdd():Ji(this.config.clearSearchOnAdd)?this.config.clearSearchOnAdd:this.closeOnSelect()),this.deselectOnClickValue=Zt(()=>Ji(this.deselectOnClick())?this.deselectOnClick():Ji(this.config.deselectOnClick)?this.config.deselectOnClick:this.multiple()),this.optionTemplate=fr(OC,{read:te}),this.optgroupTemplate=fr(RC,{read:te}),this.labelTemplate=fr(PC,{read:te}),this.multiLabelTemplate=fr(FC,{read:te}),this.headerTemplate=fr(NC,{read:te}),this.footerTemplate=fr(LC,{read:te}),this.notFoundTemplate=fr(VC,{read:te}),this.placeholderTemplate=fr(BC,{read:te}),this.typeToSearchTemplate=fr(jC,{read:te}),this.loadingTextTemplate=fr(HC,{read:te}),this.tagTemplate=fr(zC,{read:te}),this.loadingSpinnerTemplate=fr(UC,{read:te}),this.clearButtonTemplate=fr($C,{read:te}),this.ngOptions=r2(gz,{descendants:!0}),this.dropdownPanel=qn(Kt(()=>fI)),this.searchInput=qn("searchInput"),this.clearButton=qn("clearButton"),this.dropdownId=vz(),this.escapeHTML=!0,this.viewPortItems=[],this.tabFocusOnClear=he(!0),this.autoFocus=u(new Ii("autofocus"),{optional:!0}),this._defaultLabel="label",this._editableSearchTerm=Zt(()=>this.editableSearchTerm()&&!this.multiple()),this._injector=u(de),this._isComposing=!1,this._keyPress$=new z,this._pressedKeys=[],this._searchTerm=he(null),this._validTerm=Zt(()=>{let a=this._searchTerm()?.trim();return a&&a.length>=this.minTermLength()}),this.clearItem=a=>{let s=this.selectedItems.find(l=>l.value===a);this.unselect(s)},this.trackByOption=(a,s)=>this.trackByFn()?this.trackByFn()(s.value):s,this._onChange=a=>{},this._onTouched=()=>{};let i=this.config,r=u(Cz,{optional:!0}),o=u(q);this._mergeGlobalConfig(i),this.itemsList=new gI(this,r?r():xz()),this.element=o.nativeElement}get filtered(){return!!this.searchTerm&&this.searchable()||this._isComposing}get focused(){return this._focused}get searchTerm(){return this._searchTerm()}get selectedItems(){return this.itemsList.selectedItems}get selectedValues(){return this.selectedItems.map(i=>i.value)}get hasValue(){return this.selectedItems.length>0}get currentPanelPosition(){if(this.dropdownPanel())return this.dropdownPanel().currentPosition}get showAddTag(){if(!this._validTerm())return!1;let i=this.searchTerm.toLowerCase().trim();return this.addTag()&&!this.itemsList.filteredItems.some(r=>r.label.toLowerCase()===i)&&(!this.hideSelected()&&this.isOpen()||!this.selectedItems.some(r=>r.label.toLowerCase()===i))&&!this.loading()}ngOnInit(){this._handleKeyPresses(),this._setInputAttributes()}ngOnChanges(i){i.multiple&&this.itemsList.clearSelected(),i.items&&(this._itemsAreUsed=!0,this._setItems(i.items.currentValue||[])),i.isOpen&&(this._manualOpen=Ji(i.isOpen.currentValue)),i.groupBy&&(i.items||this._setItems([...this.items()])),i.inputAttrs&&this._setInputAttributes(),this._setTabFocusOnClear()}ngAfterViewInit(){this._itemsAreUsed||(this.escapeHTML=!1,this._setItemsFromNgOptions()),Ji(this.autoFocus)&&this.focus()}handleKeyDown(i){let r=i.key;if(Object.values(Ps).includes(r)){if(this.keyDownFn()(i)===!1)return;this.handleKeyCode(i)}else r&&r.length===1&&this._keyPress$.next(r.toLocaleLowerCase())}handleKeyCode(i){let r=i.target;this.clearButton()&&this.clearButton().nativeElement===r?this.handleKeyCodeClear(i):this.handleKeyCodeInput(i)}handleKeyCodeInput(i){switch(i.key){case Ps.ArrowDown:this._handleArrowDown(i);break;case Ps.ArrowUp:this._handleArrowUp(i);break;case Ps.Space:this._handleSpace(i);break;case Ps.Enter:this._handleEnter(i);break;case Ps.Tab:this._handleTab(i);break;case Ps.Esc:this.close(),i.preventDefault();break;case Ps.Backspace:this._handleBackspace();break}}handleKeyCodeClear(i){switch(i.key){case Ps.Enter:this.handleClearClick(),i.preventDefault();break}}handleMousedown(i){if(this.disabled())return;if(this.preventToggleOnRightClick()&&i.button===2)return!1;let r=i.target;if(r.tagName!=="INPUT"&&i.preventDefault(),!r.classList.contains("ng-clear-wrapper")){if(r.classList.contains("ng-arrow-wrapper")){this.handleArrowClick();return}r.classList.contains("ng-value-icon")||(this._focused||this.focus(),this.searchable()?this.open():this.toggle())}}handleArrowClick(){this.isOpen()?this.close():this.open()}handleClearClick(i){this.hasValue&&(this.itemsList.clearSelected(!0),this._updateNgModel()),this._clearSearch(),this.focus(),this.clearEvent.emit(),this._onSelectionChanged()}clearModel(){this.clearable()&&(this.itemsList.clearSelected(),this._updateNgModel())}writeValue(i){this.itemsList.clearSelected(),this._handleWriteValue(i),this._editableSearchTerm()&&this._setSearchTermFromItems(),this._cd.markForCheck()}registerOnChange(i){this._onChange=i}registerOnTouched(i){this._onTouched=i}setDisabledState(i){this._disabled.set(i),this._cd.markForCheck()}toggle(){this.isOpen()?this.close():this.open()}open(){this.disabled()||this.isOpen()||this._manualOpen||!this.typeahead()?.observed&&!this.addTag()&&this.itemsList.noItemsToSelect||(this.isOpen.set(!0),this.itemsList.markSelectedOrDefault(this.markFirst()),this.openEvent.emit(),this.searchTerm||this.focus(),this.detectChanges())}close(){!this.isOpen()||this._manualOpen||(this.isOpen.set(!1),this._isComposing=!1,this._editableSearchTerm()?this.itemsList.resetFilteredItems():this._clearSearch(),this.itemsList.unmarkItem(),this._onTouched(),this.closeEvent.emit(),this._cd.markForCheck())}toggleItem(i){!i||i.disabled||this.disabled()||(this.deselectOnClickValue()&&i.selected?this.unselect(i):this.select(i),this._editableSearchTerm()&&this._setSearchTermFromItems())}select(i){i.selected||(this.itemsList.select(i),this.clearSearchOnAddValue()&&!this._editableSearchTerm()&&this._clearSearch(),this._updateNgModel(),this.multiple()&&this.addEvent.emit(i.value)),(this.closeOnSelect()||this.itemsList.noItemsToSelect)&&this.close(),this._onSelectionChanged()}focus(){this.searchInput().nativeElement.focus()}blur(){this.searchInput().nativeElement.blur()}unselect(i){i&&(this.itemsList.unselect(i),this.focus(),this._updateNgModel(),this.removeEvent.emit(i.value),this._onSelectionChanged())}selectTag(){let i;AC(this.addTag())?i=this.addTag()(this.searchTerm):i=this._primitive?this.searchTerm:{[this.bindLabel()]:this.searchTerm};let r=o=>this.typeahead()?.observed||!this.isOpen()?this.itemsList.mapItem(o,null):this.itemsList.addItem(o);ume(i)?i.then(o=>this.select(r(o))).catch(()=>{}):i&&this.select(r(i))}showClear(){return this.clearable()&&(this.hasValue||this.searchTerm)&&!this.disabled()}focusOnClear(){this.blur(),this.clearButton()&&this.clearButton().nativeElement.focus()}showNoItemsFound(){let i=this.itemsList.filteredItems.length===0;return(i&&!this.typeahead()?.observed&&!this.loading()||i&&this.typeahead()?.observed&&this._validTerm()&&!this.loading())&&!this.showAddTag}showTypeToSearch(){return this.itemsList.filteredItems.length===0&&this.typeahead()?.observed&&!this._validTerm()&&!this.loading()}onCompositionStart(){this._isComposing=!0}onCompositionEnd(i){this._isComposing=!1,!this.searchWhileComposing()&&this.filter(i)}filter(i){this._isComposing&&!this.searchWhileComposing()||(this._searchTerm.set(i),this.typeahead()?.observed&&(this._validTerm()||this.minTermLength()===0)&&this.typeahead().next(i),this.typeahead()?.observed||(this.itemsList.filter(i),this.isOpen()&&this.itemsList.markSelectedOrDefault(this.markFirst())),this.searchEvent.emit({term:i,items:this.itemsList.filteredItems.map(r=>r.value)}),this.open())}onInputFocus(i){this._focused||(this._editableSearchTerm()&&this._setSearchTermFromItems(),this.element.classList.add("ng-select-focused"),this.focusEvent.emit(i),this._focused=!0)}onInputBlur(i){this.element.classList.remove("ng-select-focused"),this.blurEvent.emit(i),!this.isOpen()&&!this.disabled()&&this._onTouched(),this._editableSearchTerm()&&this._setSearchTermFromItems(),this._focused=!1}onItemHover(i){i.disabled||this.itemsList.markItem(i)}detectChanges(){this._cd.destroyed||this._cd.detectChanges()}_setSearchTermFromItems(){let i=this.selectedItems?.[0];this._searchTerm.set(i?.label??null)}_setItems(i){let r=i[0];this.bindLabel.set(this.bindLabel()||this._defaultLabel),this._primitive=Ji(r)?!Su(r):this._primitive||this.bindLabel()===this._defaultLabel,this.itemsList.setItems(i),i.length>0&&this.hasValue&&this.itemsList.mapSelectedItems(),this.isOpen()&&Ji(this.searchTerm)&&!this.typeahead()?.observed&&this.itemsList.filter(this.searchTerm),(this.typeahead()?.observed||this.isOpen())&&this.itemsList.markSelectedOrDefault(this.markFirst())}_setItemsFromNgOptions(){Ar(()=>{let i=this.ngOptions();this.bindLabel.set(this._defaultLabel);let r=i.map(o=>({$ngOptionValue:o.value(),$ngOptionLabel:o.elementRef.nativeElement.innerHTML,disabled:o.disabled()}))??[];this.items.set(r),this.itemsList.setItems(r),this.hasValue&&this.itemsList.mapSelectedItems(),this._cd.detectChanges(),i.map(o=>({option:o,item:this.itemsList.findItem(o.value())})).filter(({item:o})=>Ji(o)).forEach(({option:o,item:a})=>{a.disabled=o.disabled(),a.label=o.label()||a.label})},{injector:this._injector})}_isValidWriteValue(i){if(!Ji(i)||this.multiple()&&i===""||Array.isArray(i)&&i.length===0)return!1;let r=o=>!Ji(this.compareWith())&&Su(o)&&this.bindValue()?(this._console.warn(`Setting object(${JSON.stringify(o)}) as your model with bindValue is not allowed unless [compareWith] is used.`),!1):!0;return this.multiple()?Array.isArray(i)?i.every(o=>r(o)):(this._console.warn("Multiple select ngModel should be array."),!1):r(i)}_handleWriteValue(i){if(!this._isValidWriteValue(i))return;let r=o=>{let a=this.itemsList.findItem(o);if(a)this.itemsList.select(a);else{let s=Su(o),l=!s&&!this.bindValue();s||l?this.itemsList.select(this.itemsList.mapItem(o,null)):this.bindValue()&&(a={[this.bindLabel()]:null,[this.bindValue()]:o},this.itemsList.select(this.itemsList.mapItem(a,null)))}};this.multiple()?i.forEach(o=>r(o)):r(i)}_handleKeyPresses(){this.searchable()||this._keyPress$.pipe(ku(this._destroyRef),Be(i=>this._pressedKeys.push(i)),Rt(200),ce(()=>this._pressedKeys.length>0),se(()=>this._pressedKeys.join(""))).subscribe(i=>{let r=this.itemsList.findByLabel(i);r&&(this.isOpen()?(this.itemsList.markItem(r),this._scrollToMarked(),this._cd.markForCheck()):this.select(r)),this._pressedKeys=[]})}_setInputAttributes(){let i=this.searchInput().nativeElement,r=M({type:"text",autocorrect:"off",autocapitalize:"off",autocomplete:"off","aria-controls":this.dropdownId},this.inputAttrs());for(let o of Object.keys(r))i.setAttribute(o,r[o])}_setTabFocusOnClear(){this.tabFocusOnClear.set(Ji(this.tabFocusOnClearButton())?!!this.tabFocusOnClearButton():this.config.tabFocusOnClear)}_updateNgModel(){let i=[];for(let o of this.selectedItems)if(this.bindValue()){let a=null;if(o.children){let s=this.groupValue()?this.bindValue():this.groupBy();a=o.value[s||this.groupBy()]}else a=this.itemsList.resolveNested(o.value,this.bindValue());i.push(a)}else i.push(o.value);let r=this.selectedItems.map(o=>o.value);this.multiple()?(this._onChange(i),this.changeEvent.emit(r)):(this._onChange(Ji(i[0])?i[0]:null),this.changeEvent.emit(r[0])),this._cd.markForCheck()}_clearSearch(){this.searchTerm&&(this._changeSearch(null),this.itemsList.resetFilteredItems())}_changeSearch(i){this._searchTerm.set(i),this.typeahead()?.observed&&this.typeahead().next(i)}_scrollToMarked(){!this.isOpen()||!this.dropdownPanel()||this.dropdownPanel().scrollTo(this.itemsList.markedItem)}_scrollToTag(){!this.isOpen()||!this.dropdownPanel()||this.dropdownPanel().scrollToTag()}_onSelectionChanged(){let i=this.appendTo()??this.config.appendTo;this.isOpen()&&this.deselectOnClickValue()&&i&&(this._cd.detectChanges(),this.dropdownPanel().adjustPosition())}_handleTab(i){if(this.isOpen()===!1){if(this.showClear()&&!i.shiftKey&&this.tabFocusOnClear())this.focusOnClear(),i.preventDefault();else if(!this.addTag())return}this.selectOnTab()?this.itemsList.markedItem?(this.toggleItem(this.itemsList.markedItem),i.preventDefault()):this.showAddTag?(this.selectTag(),i.preventDefault()):this.close():this.close()}_handleEnter(i){let r=this.openOnEnter()??this.config.openOnEnter;if(this.isOpen()||this._manualOpen)this.itemsList.markedItem?this.toggleItem(this.itemsList.markedItem):this.showAddTag&&this.selectTag();else if(r)this.open();else return;i.preventDefault()}_handleSpace(i){this.isOpen()||this._manualOpen||(this.open(),i.preventDefault())}_handleArrowDown(i){this._nextItemIsTag(1)?(this.itemsList.unmarkItem(),this._scrollToTag()):(this.itemsList.markNextItem(),this._scrollToMarked()),this.open(),i.preventDefault()}_handleArrowUp(i){this.isOpen()&&(this._nextItemIsTag(-1)?(this.itemsList.unmarkItem(),this._scrollToTag()):(this.itemsList.markPreviousItem(),this._scrollToMarked()),i.preventDefault())}_nextItemIsTag(i){let r=this.itemsList.markedIndex+i;return this.addTag()&&this.searchTerm&&this.itemsList.markedItem&&(r<0||r===this.itemsList.filteredItems.length)}_handleBackspace(){this.searchTerm||!this.clearable()||!this.clearOnBackspace()||!this.hasValue||(this.multiple()?this.unselect(this.itemsList.lastSelectedItem):this.clearModel())}_mergeGlobalConfig(i){this.bindValue.set(this.bindValue()||i.bindValue),this.bindLabel.set(this.bindLabel()||i.bindLabel),this.appearance.set(this.appearance()||i.appearance),this._setTabFocusOnClear()}getVirtualScroll(i){return Ji(this.virtualScroll)?this.virtualScroll():this.isVirtualScrollDisabled(i)}isVirtualScrollDisabled(i){return Ji(i.disableVirtualScroll)?!i.disableVirtualScroll:!1}};n.\u0275fac=function(r){return new(r||n)},n.\u0275cmp=E({type:n,selectors:[["ng-select"]],contentQueries:function(r,o,a){r&1&&(Rn(a,o.optionTemplate,OC,5,te),Rn(a,o.optgroupTemplate,RC,5,te),Rn(a,o.labelTemplate,PC,5,te),Rn(a,o.multiLabelTemplate,FC,5,te),Rn(a,o.headerTemplate,NC,5,te),Rn(a,o.footerTemplate,LC,5,te),Rn(a,o.notFoundTemplate,VC,5,te),Rn(a,o.placeholderTemplate,BC,5,te),Rn(a,o.typeToSearchTemplate,jC,5,te),Rn(a,o.loadingTextTemplate,HC,5,te),Rn(a,o.tagTemplate,zC,5,te),Rn(a,o.loadingSpinnerTemplate,UC,5,te),Rn(a,o.clearButtonTemplate,$C,5,te),Rn(a,o.ngOptions,gz,5)),r&2&&Ho(14)},viewQuery:function(r,o){r&1&&(Pn(o.dropdownPanel,fI,5),Pn(o.searchInput,Eue,5),Pn(o.clearButton,Mue,5)),r&2&&Ho(3)},hostVars:20,hostBindings:function(r,o){r&1&&S("keydown",function(s){return o.handleKeyDown(s)}),r&2&&G("ng-select",!0)("ng-select-single",!o.multiple())("ng-select-typeahead",o.typeahead())("ng-select-multiple",o.multiple())("ng-select-taggable",o.addTag())("ng-select-searchable",o.searchable())("ng-select-clearable",o.clearable())("ng-select-opened",o.isOpen())("ng-select-filtered",o.filtered)("ng-select-disabled",o.disabled())},inputs:{ariaLabelDropdown:[1,"ariaLabelDropdown"],ariaLabel:[1,"ariaLabel"],markFirst:[1,"markFirst"],placeholder:[1,"placeholder"],fixedPlaceholder:[1,"fixedPlaceholder"],notFoundText:[1,"notFoundText"],typeToSearchText:[1,"typeToSearchText"],preventToggleOnRightClick:[1,"preventToggleOnRightClick"],addTagText:[1,"addTagText"],loadingText:[1,"loadingText"],clearAllText:[1,"clearAllText"],dropdownPosition:[1,"dropdownPosition"],appendTo:[1,"appendTo"],outsideClickEvent:[1,"outsideClickEvent"],loading:[1,"loading"],closeOnSelect:[1,"closeOnSelect"],hideSelected:[1,"hideSelected"],selectOnTab:[1,"selectOnTab"],openOnEnter:[1,"openOnEnter"],maxSelectedItems:[1,"maxSelectedItems"],groupBy:[1,"groupBy"],groupValue:[1,"groupValue"],bufferAmount:[1,"bufferAmount"],virtualScroll:[1,"virtualScroll"],selectableGroup:[1,"selectableGroup"],tabFocusOnClearButton:[1,"tabFocusOnClearButton"],selectableGroupAsModel:[1,"selectableGroupAsModel"],searchFn:[1,"searchFn"],trackByFn:[1,"trackByFn"],clearOnBackspace:[1,"clearOnBackspace"],labelForId:[1,"labelForId"],inputAttrs:[1,"inputAttrs"],tabIndex:[1,"tabIndex"],readonly:[1,"readonly"],searchWhileComposing:[1,"searchWhileComposing"],minTermLength:[1,"minTermLength"],editableSearchTerm:[1,"editableSearchTerm"],ngClass:[1,"ngClass"],typeahead:[1,"typeahead"],multiple:[1,"multiple"],addTag:[1,"addTag"],searchable:[1,"searchable"],clearable:[1,"clearable"],deselectOnClick:[1,"deselectOnClick"],clearSearchOnAdd:[1,"clearSearchOnAdd"],compareWith:[1,"compareWith"],keyDownFn:[1,"keyDownFn"],bindLabel:[1,"bindLabel"],bindValue:[1,"bindValue"],appearance:[1,"appearance"],isOpen:[1,"isOpen"],items:[1,"items"]},outputs:{bindLabel:"bindLabelChange",bindValue:"bindValueChange",appearance:"appearanceChange",isOpen:"isOpenChange",items:"itemsChange",blurEvent:"blur",focusEvent:"focus",changeEvent:"change",openEvent:"open",closeEvent:"close",searchEvent:"search",clearEvent:"clear",addEvent:"add",removeEvent:"remove",scroll:"scroll",scrollToEnd:"scrollToEnd"},exportAs:["ngSelect"],features:[Ce([{provide:tr,useExisting:Kt(()=>n),multi:!0},yz]),Ae],decls:15,vars:20,consts:[["searchInput",""],["defaultPlaceholderTemplate",""],["defaultLabelTemplate",""],["defaultLoadingSpinnerTemplate",""],["clearButton",""],["defaultOptionTemplate",""],["defaultTagTemplate",""],["defaultNotFoundTemplate",""],["defaultTypeToSearchTemplate",""],["defaultLoadingTextTemplate",""],[1,"ng-select-container",3,"mousedown"],[1,"ng-value-container"],[3,"ngTemplateOutlet","ngTemplateOutletContext"],[1,"ng-input"],["aria-autocomplete","list","role","combobox",3,"blur","change","compositionend","compositionstart","focus","input","disabled","readOnly","value"],[1,"ng-arrow-wrapper"],[1,"ng-arrow"],[1,"ng-dropdown-panel",3,"virtualScroll","bufferAmount","appendTo","position","outsideClickEvent","headerTemplate","footerTemplate","filterValue","items","showAddTag","markedItem","ng-select-multiple","class","id","ariaLabelDropdown"],["aria-atomic","true","aria-live","polite","role","status",1,"ng-visually-hidden"],[3,"ngTemplateOutlet"],[1,"ng-placeholder"],[1,"ng-value",3,"ng-value-disabled"],[1,"ng-value"],["aria-hidden","true",1,"ng-value-icon","left",3,"click"],[1,"ng-value-label",3,"ngItemLabel","escape"],[1,"ng-spinner-loader"],["role","button","tabindex","0",1,"ng-clear-wrapper",3,"title"],["role","button","tabindex","0",1,"ng-clear-wrapper",3,"click","title"],["aria-hidden","true",1,"ng-clear"],[1,"ng-dropdown-panel",3,"update","scroll","scrollToEnd","outsideClick","virtualScroll","bufferAmount","appendTo","position","outsideClickEvent","headerTemplate","footerTemplate","filterValue","items","showAddTag","markedItem","id","ariaLabelDropdown"],[1,"ng-option",3,"ng-option-disabled","ng-option-selected","ng-optgroup","ng-option","ng-option-child","ng-option-marked"],["role","option",1,"ng-option",3,"ng-option-marked"],[1,"ng-option",3,"click","mouseover"],[1,"ng-option-label",3,"ngItemLabel","escape"],["role","option",1,"ng-option",3,"mouseover","click"],[1,"ng-tag-label"],[1,"ng-option","ng-option-disabled"]],template:function(r,o){if(r&1){let a=Y();h(0,"div",10),S("mousedown",function(l){return I(a),A(o.handleMousedown(l))}),h(1,"div",11),N(2,Oue,3,1),N(3,Nue,2,0),N(4,Vue,1,5,null,12),h(5,"div",13)(6,"input",14,0),S("blur",function(l){return I(a),A(o.onInputBlur(l))})("change",function(l){return I(a),A(l.stopPropagation())})("compositionend",function(){I(a);let l=Se(7);return A(o.onCompositionEnd(l.value))})("compositionstart",function(){return I(a),A(o.onCompositionStart())})("focus",function(l){return I(a),A(o.onInputFocus(l))})("input",function(){I(a);let l=Se(7);return A(o.filter(l.value))}),p()()(),N(8,Hue,3,1),N(9,$ue,2,1),h(10,"span",15),k(11,"span",16),p()(),N(12,ame,8,21,"ng-dropdown-panel",17),h(13,"div",18),N(14,sme,1,1),p()}r&2&&(G("ng-appearance-outline",o.appearance()==="outline")("ng-has-value",o.hasValue),g(2),L(o.selectedItems.length===0&&!o.searchTerm||(o.fixedPlaceholder()??o.config.fixedPlaceholder)?2:-1),g(),L((!o.multiLabelTemplate()||!o.multiple())&&o.selectedItems.length>0?3:-1),g(),L(o.multiple()&&o.multiLabelTemplate()&&o.selectedValues.length>0?4:-1),g(2),y("disabled",o.disabled())("readOnly",!o.searchable()||o.itemsList.maxItemsSelected)("value",o.searchTerm??""),X("aria-activedescendant",o.isOpen()?o.itemsList==null||o.itemsList.markedItem==null?null:o.itemsList.markedItem.htmlId:null)("aria-controls",o.isOpen()?o.dropdownId:null)("aria-expanded",o.isOpen())("aria-label",o.ariaLabel())("id",o.labelForId())("tabindex",o.tabIndex()),g(2),L(o.loading()?8:-1),g(),L(o.showClear()?9:-1),g(3),L(o.isOpen()?12:-1),g(2),L(o.isOpen()&&o.showNoItemsFound()?14:-1))},dependencies:[Fn,mme,fI],styles:[`@charset "UTF-8";.ng-select{position:relative;display:block;-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box}.ng-select div,.ng-select input,.ng-select span{-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box}.ng-select [hidden]{display:none}.ng-select.ng-select-searchable .ng-select-container .ng-value-container .ng-input{opacity:1}.ng-select.ng-select-opened .ng-select-container{z-index:1001}.ng-select.ng-select-disabled .ng-select-container .ng-value-container .ng-placeholder,.ng-select.ng-select-disabled .ng-select-container .ng-value-container .ng-value{-webkit-user-select:none;user-select:none;cursor:default}.ng-select.ng-select-disabled .ng-arrow-wrapper{cursor:default}.ng-select.ng-select-filtered .ng-placeholder{display:none}.ng-select .ng-select-container{cursor:default;display:flex;outline:none;overflow:hidden;position:relative;width:100%}.ng-select .ng-select-container .ng-value-container{display:flex;flex:1}.ng-select .ng-select-container .ng-value-container .ng-input{opacity:0}.ng-select .ng-select-container .ng-value-container .ng-input>input{box-sizing:content-box;background:none transparent;border:0 none;box-shadow:none;outline:none;padding:0;cursor:default;width:100%}.ng-select .ng-select-container .ng-value-container .ng-input>input::-ms-clear{display:none}.ng-select .ng-select-container .ng-value-container .ng-input>input[readonly]{-webkit-user-select:unset;user-select:unset;width:0;padding:0}.ng-select.ng-select-single.ng-select-filtered .ng-select-container .ng-value-container .ng-value{visibility:hidden}.ng-select.ng-select-single .ng-select-container .ng-value-container,.ng-select.ng-select-single .ng-select-container .ng-value-container .ng-value{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.ng-select.ng-select-single .ng-select-container .ng-value-container .ng-value .ng-value-icon{display:none}.ng-select.ng-select-single .ng-select-container .ng-value-container .ng-input{position:absolute;left:0;width:100%}.ng-select.ng-select-multiple.ng-select-disabled>.ng-select-container .ng-value-container .ng-value .ng-value-icon{display:none}.ng-select.ng-select-multiple .ng-select-container .ng-value-container{flex-wrap:wrap}.ng-select.ng-select-multiple .ng-select-container .ng-value-container .ng-placeholder{position:absolute}.ng-select.ng-select-multiple .ng-select-container .ng-value-container .ng-value{white-space:nowrap}.ng-select.ng-select-multiple .ng-select-container .ng-value-container .ng-value.ng-value-disabled .ng-value-icon{display:none}.ng-select.ng-select-multiple .ng-select-container .ng-value-container .ng-value .ng-value-icon{cursor:pointer}.ng-select.ng-select-multiple .ng-select-container .ng-value-container .ng-input{flex:1;z-index:2}.ng-select.ng-select-multiple .ng-select-container .ng-value-container .ng-placeholder{z-index:1}.ng-select .ng-clear-wrapper{cursor:pointer;position:relative;width:17px;-webkit-user-select:none;user-select:none}.ng-select .ng-clear-wrapper .ng-clear{display:inline-block;font-size:18px;line-height:1;pointer-events:none}.ng-select .ng-spinner-loader{border-radius:50%;width:17px;height:17px;margin-right:5px;font-size:10px;position:relative;text-indent:-9999em;border-top:2px solid rgba(66,66,66,.2);border-right:2px solid rgba(66,66,66,.2);border-bottom:2px solid rgba(66,66,66,.2);border-left:2px solid #424242;transform:translateZ(0);animation:load8 .8s infinite linear}.ng-select .ng-spinner-loader:after{border-radius:50%;width:17px;height:17px}@-webkit-keyframes load8{0%{-webkit-transform:rotate(0deg);transform:rotate(0)}to{-webkit-transform:rotate(360deg);transform:rotate(360deg)}}@keyframes load8{0%{-webkit-transform:rotate(0deg);transform:rotate(0)}to{-webkit-transform:rotate(360deg);transform:rotate(360deg)}}.ng-select .ng-arrow-wrapper{cursor:pointer;position:relative;text-align:center;-webkit-user-select:none;user-select:none}.ng-select .ng-arrow-wrapper .ng-arrow{pointer-events:none;display:inline-block;height:0;width:0;position:relative}.ng-dropdown-panel{box-sizing:border-box;position:absolute;opacity:0;width:100%;z-index:1050;-webkit-overflow-scrolling:touch}.ng-dropdown-panel .ng-dropdown-panel-items{display:block;height:auto;-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box;max-height:240px;overflow-y:auto}.ng-dropdown-panel .ng-dropdown-panel-items .ng-optgroup{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.ng-dropdown-panel .ng-dropdown-panel-items .ng-option{box-sizing:border-box;cursor:pointer;display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.ng-dropdown-panel .ng-dropdown-panel-items .ng-option .ng-option-label:empty:before{content:"\\200b"}.ng-dropdown-panel .ng-dropdown-panel-items .ng-option .highlighted{font-weight:700;text-decoration:underline}.ng-dropdown-panel .ng-dropdown-panel-items .ng-option.disabled{cursor:default}.ng-dropdown-panel .scroll-host{overflow:hidden;overflow-y:auto;position:relative;display:block;-webkit-overflow-scrolling:touch}.ng-dropdown-panel .scrollable-content{top:0;left:0;width:100%;height:100%;position:absolute}.ng-dropdown-panel .total-padding{width:1px;opacity:0}.ng-visually-hidden{position:absolute!important;width:1px;height:1px;margin:-1px;padding:0;overflow:hidden;clip:rect(0 0 0 0);border:0;white-space:nowrap} +`],encapsulation:2,changeDetection:0});let t=n;return t})(),bI=(()=>{let n=class n{};n.\u0275fac=function(r){return new(r||n)},n.\u0275mod=ee({type:n}),n.\u0275inj=J({providers:_me()});let t=n;return t})();function _me(){return[{provide:Cz,useValue:xz}]}var vme=["*"],yme=["ngSelect"],xme=()=>({standalone:!0}),Ez=(t,n,e,i)=>({item:t,item$:n,index:e,searchTerm:i}),Cme=(t,n,e)=>({item:t,clear:n,label:e}),wme=(t,n)=>({items:t,clear:n}),vI=t=>({searchTerm:t});function Dme(t,n){}function Eme(t,n){if(t&1&&R(0,Dme,0,0,"ng-template",15),t&2){let e=n.item,i=n.item$,r=n.index,o=n.searchTerm,a=C(2);y("ngTemplateOutlet",a.optionTemplate)("ngTemplateOutletContext",wm(2,Ez,e,i,r,o))}}function Mme(t,n){t&1&&R(0,Eme,1,7,"ng-template",2)}function kme(t,n){}function Sme(t,n){if(t&1&&R(0,kme,0,0,"ng-template",15),t&2){let e=n.item,i=n.item$,r=n.index,o=n.searchTerm,a=C(2);y("ngTemplateOutlet",a.optgroupTemplate)("ngTemplateOutletContext",wm(2,Ez,e,i,r,o))}}function Tme(t,n){t&1&&R(0,Sme,1,7,"ng-template",3)}function Ime(t,n){}function Ame(t,n){if(t&1&&R(0,Ime,0,0,"ng-template",15),t&2){let e=n.item,i=n.clear,r=n.label,o=C(2);y("ngTemplateOutlet",o.labelTemplate)("ngTemplateOutletContext",Rd(2,Cme,e,i,r))}}function Ome(t,n){t&1&&R(0,Ame,1,6,"ng-template",4)}function Rme(t,n){}function Pme(t,n){if(t&1&&R(0,Rme,0,0,"ng-template",15),t&2){let e=n.items,i=n.clear,r=C(2);y("ngTemplateOutlet",r.multiLabelTemplate)("ngTemplateOutletContext",wa(2,wme,e,i))}}function Fme(t,n){t&1&&R(0,Pme,1,5,"ng-template",5)}function Nme(t,n){}function Lme(t,n){if(t&1&&R(0,Nme,0,0,"ng-template",16),t&2){let e=C(2);y("ngTemplateOutlet",e.headerTemplate)}}function Vme(t,n){t&1&&R(0,Lme,1,1,"ng-template",6)}function Bme(t,n){}function jme(t,n){if(t&1&&R(0,Bme,0,0,"ng-template",16),t&2){let e=C(2);y("ngTemplateOutlet",e.footerTemplate)}}function Hme(t,n){t&1&&R(0,jme,1,1,"ng-template",7)}function zme(t,n){}function Ume(t,n){if(t&1&&R(0,zme,0,0,"ng-template",15),t&2){let e=n.searchTerm,i=C(2);y("ngTemplateOutlet",i.notFoundTemplate)("ngTemplateOutletContext",Pt(2,vI,e))}}function $me(t,n){t&1&&R(0,Ume,1,4,"ng-template",8)}function Wme(t,n){}function Gme(t,n){if(t&1&&R(0,Wme,0,0,"ng-template",16),t&2){let e=C(2);y("ngTemplateOutlet",e.typeToSearchTemplate)}}function qme(t,n){t&1&&R(0,Gme,1,1,"ng-template",9)}function Yme(t,n){}function Qme(t,n){if(t&1&&R(0,Yme,0,0,"ng-template",15),t&2){let e=n.searchTerm,i=C(2);y("ngTemplateOutlet",i.loadingTextTemplate)("ngTemplateOutletContext",Pt(2,vI,e))}}function Kme(t,n){t&1&&R(0,Qme,1,4,"ng-template",10)}function Zme(t,n){}function Xme(t,n){if(t&1&&R(0,Zme,0,0,"ng-template",15),t&2){let e=n.searchTerm,i=C(2);y("ngTemplateOutlet",i.tagTemplate)("ngTemplateOutletContext",Pt(2,vI,e))}}function Jme(t,n){t&1&&R(0,Xme,1,4,"ng-template",11)}function ehe(t,n){}function the(t,n){if(t&1&&R(0,ehe,0,0,"ng-template",16),t&2){let e=C(2);y("ngTemplateOutlet",e.loadingSpinnerTemplate)}}function ihe(t,n){t&1&&R(0,the,1,1,"ng-template",12)}function nhe(t,n){}function rhe(t,n){if(t&1&&R(0,nhe,0,0,"ng-template",16),t&2){let e=C(2);y("ngTemplateOutlet",e.placeholderTemplate)}}function ohe(t,n){t&1&&R(0,rhe,1,1,"ng-template",13)}function ahe(t,n){}function she(t,n){if(t&1&&R(0,ahe,0,0,"ng-template",16),t&2){let e=C(2);y("ngTemplateOutlet",e.clearbuttonTemplate)}}function lhe(t,n){t&1&&R(0,she,1,1,"ng-template",14)}var che=(()=>{let n=class n{constructor(){this.elementRef=u(q),this.disabled=!1,this.stateChange$=new z}get label(){return(this.elementRef.nativeElement.textContent||"").trim()}ngOnChanges(i){i.disabled&&this.stateChange$.next({value:this.value,disabled:this.disabled})}ngAfterViewChecked(){this.label!==this._previousLabel&&(this._previousLabel=this.label,this.stateChange$.next({value:this.value,disabled:this.disabled,label:this.elementRef.nativeElement.innerHTML}))}ngOnDestroy(){this.stateChange$.complete()}};n.\u0275fac=function(r){return new(r||n)},n.\u0275cmp=E({type:n,selectors:[["mtx-option"]],inputs:{value:"value",disabled:[2,"disabled","disabled",V]},exportAs:["mtxOption"],features:[Ae],ngContentSelectors:vme,decls:1,vars:0,template:function(r,o){r&1&&(Me(),oe(0))},encapsulation:2,changeDetection:0});let t=n;return t})(),dhe=(()=>{let n=class n{constructor(){this._defaultOptions=u(Mz,{optional:!0}),this.changes=new z,this.placeholder=this._defaultOptions?.placeholder,this.notFoundText=this._defaultOptions?.notFoundText??"No items found",this.typeToSearchText=this._defaultOptions?.typeToSearchText??"Type to search",this.addTagText=this._defaultOptions?.addTagText??"Add item",this.loadingText=this._defaultOptions?.loadingText??"Loading...",this.clearAllText=this._defaultOptions?.clearAllText??"Clear all"}};n.\u0275fac=function(r){return new(r||n)},n.\u0275prov=O({token:n,factory:n.\u0275fac,providedIn:"root"});let t=n;return t})(),uhe=(()=>{let n=class n{constructor(){this.template=u(te)}};n.\u0275fac=function(r){return new(r||n)},n.\u0275dir=F({type:n,selectors:[["","ng-option-tmp",""]]});let t=n;return t})(),mhe=(()=>{let n=class n{constructor(){this.template=u(te)}};n.\u0275fac=function(r){return new(r||n)},n.\u0275dir=F({type:n,selectors:[["","ng-optgroup-tmp",""]]});let t=n;return t})(),hhe=(()=>{let n=class n{constructor(){this.template=u(te)}};n.\u0275fac=function(r){return new(r||n)},n.\u0275dir=F({type:n,selectors:[["","ng-label-tmp",""]]});let t=n;return t})(),phe=(()=>{let n=class n{constructor(){this.template=u(te)}};n.\u0275fac=function(r){return new(r||n)},n.\u0275dir=F({type:n,selectors:[["","ng-multi-label-tmp",""]]});let t=n;return t})(),fhe=(()=>{let n=class n{constructor(){this.template=u(te)}};n.\u0275fac=function(r){return new(r||n)},n.\u0275dir=F({type:n,selectors:[["","ng-header-tmp",""]]});let t=n;return t})(),ghe=(()=>{let n=class n{constructor(){this.template=u(te)}};n.\u0275fac=function(r){return new(r||n)},n.\u0275dir=F({type:n,selectors:[["","ng-footer-tmp",""]]});let t=n;return t})(),_he=(()=>{let n=class n{constructor(){this.template=u(te)}};n.\u0275fac=function(r){return new(r||n)},n.\u0275dir=F({type:n,selectors:[["","ng-notfound-tmp",""]]});let t=n;return t})(),bhe=(()=>{let n=class n{constructor(){this.template=u(te)}};n.\u0275fac=function(r){return new(r||n)},n.\u0275dir=F({type:n,selectors:[["","ng-typetosearch-tmp",""]]});let t=n;return t})(),vhe=(()=>{let n=class n{constructor(){this.template=u(te)}};n.\u0275fac=function(r){return new(r||n)},n.\u0275dir=F({type:n,selectors:[["","ng-loadingtext-tmp",""]]});let t=n;return t})(),yhe=(()=>{let n=class n{constructor(){this.template=u(te)}};n.\u0275fac=function(r){return new(r||n)},n.\u0275dir=F({type:n,selectors:[["","ng-tag-tmp",""]]});let t=n;return t})(),xhe=(()=>{let n=class n{constructor(){this.template=u(te)}};n.\u0275fac=function(r){return new(r||n)},n.\u0275dir=F({type:n,selectors:[["","ng-loadingspinner-tmp",""]]});let t=n;return t})(),Che=(()=>{let n=class n{constructor(){this.template=u(te)}};n.\u0275fac=function(r){return new(r||n)},n.\u0275dir=F({type:n,selectors:[["","ng-placeholder-tmp",""]]});let t=n;return t})(),whe=(()=>{let n=class n{constructor(){this.template=u(te)}};n.\u0275fac=function(r){return new(r||n)},n.\u0275dir=F({type:n,selectors:[["","ng-clearbutton-tmp",""]]});let t=n;return t})(),Mz=new T("mtx-select-default-options"),Dz=0,yI=(()=>{let n=class n{get clearSearchOnAdd(){return this._clearSearchOnAdd??this.closeOnSelect}set clearSearchOnAdd(i){this._clearSearchOnAdd=i}get items(){return this._items}set items(i){this._itemsAreUsed=!0,this._items=i}get value(){return this._value}set value(i){this._assignValue(i)&&this._onChange(i)}get id(){return this._id}set id(i){this._id=i||this._uid,this.stateChanges.next()}get placeholder(){return this._placeholder}set placeholder(i){this._placeholder=i,this.stateChanges.next()}get focused(){return this._focused}get empty(){return this.value==null||Array.isArray(this.value)&&this.value.length===0}get shouldLabelFloat(){return this.focused||!this.empty}get required(){return this._required??this.ngControl?.control?.hasValidator(Le.required)??!1}set required(i){this._required=i,this.stateChanges.next()}get errorStateMatcher(){return this._errorStateTracker.matcher}set errorStateMatcher(i){this._errorStateTracker.matcher=i}get panelOpen(){return!!this.ngSelect.isOpen}get errorState(){return this._errorStateTracker.errorState}set errorState(i){this._errorStateTracker.errorState=i}constructor(){this._intl=u(dhe),this._changeDetectorRef=u(ye),this._elementRef=u(q),this._focusMonitor=u(Yt),this.ngControl=u(Hn,{optional:!0,self:!0}),this._parentFormField=u(Xo,{optional:!0}),this._defaultOptions=u(Mz,{optional:!0}),this._document=u(ge),this.addTag=!1,this.appearance="underline",this.appendTo=this._defaultOptions?.appendTo??"body",this.bindLabel=this._defaultOptions?.bindLabel,this.bindValue=this._defaultOptions?.bindValue,this.closeOnSelect=!0,this.clearable=!0,this.clearOnBackspace=!0,this.dropdownPosition="auto",this.bufferAmount=4,this.selectableGroup=!1,this.selectableGroupAsModel=!0,this.hideSelected=!1,this.loading=!1,this.labelForId=null,this.markFirst=!0,this.multiple=!1,this.searchable=!0,this.readonly=!1,this.searchFn=null,this.searchWhileComposing=!0,this.selectOnTab=!1,this.trackByFn=null,this.inputAttrs={},this.openOnEnter=this._defaultOptions?.openOnEnter??!0,this.minTermLength=0,this.editableSearchTerm=!1,this.keyDownFn=l=>!0,this.virtualScroll=this._defaultOptions?.virtualScroll??!1,this.fixedPlaceholder=this._defaultOptions?.fixedPlaceholder??!1,this.deselectOnClick=this._defaultOptions?.deselectOnClick??!1,this.blurEvent=new U,this.focusEvent=new U,this.changeEvent=new U,this.openEvent=new U,this.closeEvent=new U,this.searchEvent=new U,this.clearEvent=new U,this.addEvent=new U,this.removeEvent=new U,this.scroll=new U,this.scrollToEnd=new U,this._clearSearchOnAdd=this._defaultOptions?.clearSearchOnAdd,this._items=[],this._itemsAreUsed=!1,this._destroy$=new z,this._value=null,this.stateChanges=new z,this._uid=`mtx-select-${Dz++}`,this._focused=!1,this.disabled=!1,this.ariaLabel="",this.ariaLabelledby=null,this._ariaDescribedby=null,this.controlType="mtx-select",this._onChange=()=>{},this._onTouched=()=>{},this._valueId=`mtx-select-value-${Dz++}`,this._intlChangesSubscription=ke.EMPTY;let i=this._focusMonitor,r=u(dl),o=u(pc,{optional:!0}),a=u(Ki,{optional:!0}),s=this.ngControl;this._intlChangesSubscription=this._intl.changes.subscribe(()=>{this._changeDetectorRef.detectChanges()}),i.monitor(this._elementRef,!0).subscribe(l=>{this._focused&&!l&&this._onTouched(),this._focused=!!l,this.stateChanges.next()}),this.ngControl&&(this.ngControl.valueAccessor=this),this._errorStateTracker=new cl(r,s,a,o,this.stateChanges),this.id=this.id}ngOnInit(){this.compareWith&&(this.ngSelect.compareWith=this.compareWith)}ngAfterViewInit(){this._itemsAreUsed||(this.ngSelect.escapeHTML=!1,this._setItemsFromMtxOptions())}ngDoCheck(){if(this.ngControl){let i=this.ngControl;this._previousControl!==i.control&&(this._previousControl!==void 0&&i.disabled!==null&&i.disabled!==this.disabled&&(this.disabled=i.disabled),this._previousControl=i.control),this.updateErrorState()}}ngOnDestroy(){this._destroy$.next(),this._destroy$.complete(),this.stateChanges.complete(),this._focusMonitor.stopMonitoring(this._elementRef),this._intlChangesSubscription.unsubscribe()}_getAriaLabelledby(){if(this.ariaLabel)return null;let i=this._parentFormField?.getLabelId(),r=(i?i+" ":"")+this._valueId;return this.ariaLabelledby&&(r+=" "+this.ariaLabelledby),r}setDescribedByIds(i){this._ariaDescribedby=i.length?i.join(" "):null}setDisabledState(i){this.disabled=i,this._changeDetectorRef.markForCheck(),this.stateChanges.next()}onContainerClick(i){i.target.classList.contains("ng-arrow-wrapper")||(this.focus(),this.open())}writeValue(i){this._assignValue(i)}registerOnChange(i){this._onChange=i}registerOnTouched(i){this._onTouched=i}updateErrorState(){this._errorStateTracker.updateErrorState()}_assignValue(i){return i!==this._value||this.multiple&&Array.isArray(i)?(this._value=i,this._changeDetectorRef.markForCheck(),!0):!1}_setItemsFromMtxOptions(){let i=o=>{this.items=o.map(a=>({$ngOptionValue:a.value,$ngOptionLabel:a.elementRef.nativeElement.innerHTML,disabled:a.disabled})),this.ngSelect.itemsList.setItems(this.items),this.ngSelect.hasValue&&this.ngSelect.itemsList.mapSelectedItems(),this.ngSelect.detectChanges()},r=()=>{let o=Je(this.mtxOptions.changes,this._destroy$);Je(...this.mtxOptions.map(a=>a.stateChange$)).pipe(Te(o)).subscribe(a=>{let s=this.ngSelect.itemsList.findItem(a.value);s.disabled=a.disabled,s.label=a.label||s.label,this.ngSelect.detectChanges()})};this.mtxOptions.changes.pipe(He(this.mtxOptions),Te(this._destroy$)).subscribe(o=>{i(o),r()})}open(){this.ngSelect.open()}close(){this.ngSelect.close()}focus(){this.ngSelect.focus()}blur(){this.ngSelect.blur()}openChange(){this.openEvent.emit(),setTimeout(()=>{this._document.getElementById(this.ngSelect.dropdownId)?.classList.add("mat-"+this._parentFormField?.color)})}};n.\u0275fac=function(r){return new(r||n)},n.\u0275cmp=E({type:n,selectors:[["mtx-select"]],contentQueries:function(r,o,a){if(r&1&&(xe(a,uhe,5,te),xe(a,mhe,5,te),xe(a,hhe,5,te),xe(a,phe,5,te),xe(a,fhe,5,te),xe(a,ghe,5,te),xe(a,_he,5,te),xe(a,bhe,5,te),xe(a,vhe,5,te),xe(a,yhe,5,te),xe(a,xhe,5,te),xe(a,Che,5,te),xe(a,whe,5,te),xe(a,che,5)),r&2){let s;B(s=j())&&(o.optionTemplate=s.first),B(s=j())&&(o.optgroupTemplate=s.first),B(s=j())&&(o.labelTemplate=s.first),B(s=j())&&(o.multiLabelTemplate=s.first),B(s=j())&&(o.headerTemplate=s.first),B(s=j())&&(o.footerTemplate=s.first),B(s=j())&&(o.notFoundTemplate=s.first),B(s=j())&&(o.typeToSearchTemplate=s.first),B(s=j())&&(o.loadingTextTemplate=s.first),B(s=j())&&(o.tagTemplate=s.first),B(s=j())&&(o.loadingSpinnerTemplate=s.first),B(s=j())&&(o.placeholderTemplate=s.first),B(s=j())&&(o.clearbuttonTemplate=s.first),B(s=j())&&(o.mtxOptions=s)}},viewQuery:function(r,o){if(r&1&&ie(yme,7),r&2){let a;B(a=j())&&(o.ngSelect=a.first)}},hostAttrs:["role","combobox","aria-autocomplete","none",1,"mtx-select"],hostVars:20,hostBindings:function(r,o){r&2&&(X("id",o.id)("aria-expanded",o.panelOpen)("aria-label",o.ariaLabel||null)("aria-labelledby",o._getAriaLabelledby())("aria-describedby",o._ariaDescribedby||null)("aria-required",o.required.toString())("aria-disabled",o.disabled.toString())("aria-invalid",o.errorState),G("mtx-select-floating",o.shouldLabelFloat)("mtx-select-disabled",o.disabled)("mtx-select-invalid",o.errorState)("mtx-select-required",o.required)("mtx-select-empty",o.empty)("mtx-select-multiple",o.multiple))},inputs:{addTag:"addTag",addTagText:"addTagText",appearance:"appearance",appendTo:"appendTo",bindLabel:"bindLabel",bindValue:"bindValue",closeOnSelect:[2,"closeOnSelect","closeOnSelect",V],clearAllText:"clearAllText",clearable:[2,"clearable","clearable",V],clearOnBackspace:[2,"clearOnBackspace","clearOnBackspace",V],compareWith:"compareWith",dropdownPosition:"dropdownPosition",groupBy:"groupBy",groupValue:"groupValue",bufferAmount:"bufferAmount",selectableGroup:[2,"selectableGroup","selectableGroup",V],selectableGroupAsModel:[2,"selectableGroupAsModel","selectableGroupAsModel",V],hideSelected:[2,"hideSelected","hideSelected",V],loading:[2,"loading","loading",V],loadingText:"loadingText",labelForId:"labelForId",markFirst:[2,"markFirst","markFirst",V],maxSelectedItems:"maxSelectedItems",multiple:[2,"multiple","multiple",V],notFoundText:"notFoundText",searchable:[2,"searchable","searchable",V],readonly:[2,"readonly","readonly",V],searchFn:"searchFn",searchWhileComposing:[2,"searchWhileComposing","searchWhileComposing",V],selectOnTab:[2,"selectOnTab","selectOnTab",V],trackByFn:"trackByFn",inputAttrs:"inputAttrs",tabIndex:"tabIndex",openOnEnter:[2,"openOnEnter","openOnEnter",V],minTermLength:"minTermLength",editableSearchTerm:[2,"editableSearchTerm","editableSearchTerm",V],keyDownFn:"keyDownFn",virtualScroll:[2,"virtualScroll","virtualScroll",V],typeToSearchText:"typeToSearchText",typeahead:"typeahead",isOpen:"isOpen",fixedPlaceholder:[2,"fixedPlaceholder","fixedPlaceholder",V],deselectOnClick:[2,"deselectOnClick","deselectOnClick",V],clearSearchOnAdd:"clearSearchOnAdd",items:"items",value:"value",id:"id",placeholder:"placeholder",disabled:[2,"disabled","disabled",V],required:[2,"required","required",V],errorStateMatcher:"errorStateMatcher",ariaLabel:[0,"aria-label","ariaLabel"],ariaLabelledby:[0,"aria-labelledby","ariaLabelledby"]},outputs:{blurEvent:"blur",focusEvent:"focus",changeEvent:"change",openEvent:"open",closeEvent:"close",searchEvent:"search",clearEvent:"clear",addEvent:"add",removeEvent:"remove",scroll:"scroll",scrollToEnd:"scrollToEnd"},exportAs:["mtxSelect"],features:[Ce([{provide:Ra,useExisting:n}])],decls:15,vars:63,consts:[["ngSelect",""],[3,"ngModelChange","blur","focus","change","open","close","search","clear","add","remove","scroll","scrollToEnd","ngModel","ngModelOptions","placeholder","items","addTag","addTagText","appendTo","appearance","bindLabel","bindValue","closeOnSelect","clearAllText","clearable","clearOnBackspace","dropdownPosition","groupBy","groupValue","bufferAmount","hideSelected","isOpen","inputAttrs","loading","loadingText","labelForId","markFirst","maxSelectedItems","multiple","notFoundText","readonly","typeahead","typeToSearchText","trackByFn","searchable","searchFn","searchWhileComposing","clearSearchOnAdd","selectableGroup","selectableGroupAsModel","selectOnTab","tabIndex","openOnEnter","minTermLength","editableSearchTerm","keyDownFn","virtualScroll","fixedPlaceholder","deselectOnClick"],["ng-option-tmp",""],["ng-optgroup-tmp",""],["ng-label-tmp",""],["ng-multi-label-tmp",""],["ng-header-tmp",""],["ng-footer-tmp",""],["ng-notfound-tmp",""],["ng-typetosearch-tmp",""],["ng-loadingtext-tmp",""],["ng-tag-tmp",""],["ng-loadingspinner-tmp",""],["ng-placeholder-tmp",""],["ng-clearbutton-tmp",""],[3,"ngTemplateOutlet","ngTemplateOutletContext"],[3,"ngTemplateOutlet"]],template:function(r,o){if(r&1){let a=Y();h(0,"ng-select",1,0),Uo("ngModelChange",function(l){return I(a),Ca(o.value,l)||(o.value=l),A(l)}),S("blur",function(l){return I(a),A(o.blurEvent.emit(l))})("focus",function(l){return I(a),A(o.focusEvent.emit(l))})("change",function(l){return I(a),A(o.changeEvent.emit(l))})("open",function(){return I(a),A(o.openChange())})("close",function(){return I(a),A(o.closeEvent.emit())})("search",function(l){return I(a),A(o.searchEvent.emit(l))})("clear",function(l){return I(a),A(o.clearEvent.emit(l))})("add",function(l){return I(a),A(o.addEvent.emit(l))})("remove",function(l){return I(a),A(o.removeEvent.emit(l))})("scroll",function(l){return I(a),A(o.scroll.emit(l))})("scrollToEnd",function(){return I(a),A(o.scrollToEnd.emit())}),N(2,Mme,1,0,null,2),N(3,Tme,1,0,null,3),N(4,Ome,1,0,null,4),N(5,Fme,1,0,null,5),N(6,Vme,1,0,null,6),N(7,Hme,1,0,null,7),N(8,$me,1,0,null,8),N(9,qme,1,0,null,9),N(10,Kme,1,0,null,10),N(11,Jme,1,0,null,11),N(12,ihe,1,0,null,12),N(13,ohe,1,0,null,13),N(14,lhe,1,0,null,14),p()}r&2&&(G("ng-select-invalid",o.errorState),zo("ngModel",o.value),y("ngModelOptions",at(62,xme))("placeholder",o.placeholder||o._intl.placeholder)("items",o.items)("addTag",o.addTag)("addTagText",o.addTagText||o._intl.addTagText)("appendTo",o.appendTo)("appearance",o.appearance)("bindLabel",o.bindLabel)("bindValue",o.bindValue)("closeOnSelect",o.closeOnSelect)("clearAllText",o.clearAllText||o._intl.clearAllText)("clearable",o.clearable)("clearOnBackspace",o.clearOnBackspace)("dropdownPosition",o.dropdownPosition)("groupBy",o.groupBy)("groupValue",o.groupValue)("bufferAmount",o.bufferAmount)("hideSelected",o.hideSelected)("isOpen",o.isOpen)("inputAttrs",o.inputAttrs)("loading",o.loading)("loadingText",o.loadingText||o._intl.loadingText)("labelForId",o.labelForId)("markFirst",o.markFirst)("maxSelectedItems",o.maxSelectedItems)("multiple",o.multiple)("notFoundText",o.notFoundText||o._intl.notFoundText)("readonly",o.readonly||o.disabled)("typeahead",o.typeahead)("typeToSearchText",o.typeToSearchText||o._intl.typeToSearchText)("trackByFn",o.trackByFn)("searchable",o.searchable)("searchFn",o.searchFn)("searchWhileComposing",o.searchWhileComposing)("clearSearchOnAdd",o.clearSearchOnAdd)("selectableGroup",o.selectableGroup)("selectableGroupAsModel",o.selectableGroupAsModel)("selectOnTab",o.selectOnTab)("tabIndex",o.tabIndex)("openOnEnter",o.openOnEnter)("minTermLength",o.minTermLength)("editableSearchTerm",o.editableSearchTerm)("keyDownFn",o.keyDownFn)("virtualScroll",o.virtualScroll)("fixedPlaceholder",o.fixedPlaceholder)("deselectOnClick",o.deselectOnClick),g(2),L(o.optionTemplate?2:-1),g(),L(o.optgroupTemplate?3:-1),g(),L(o.labelTemplate?4:-1),g(),L(o.multiLabelTemplate?5:-1),g(),L(o.headerTemplate?6:-1),g(),L(o.footerTemplate?7:-1),g(),L(o.notFoundTemplate?8:-1),g(),L(o.typeToSearchTemplate?9:-1),g(),L(o.loadingTextTemplate?10:-1),g(),L(o.tagTemplate?11:-1),g(),L(o.loadingSpinnerTemplate?12:-1),g(),L(o.placeholderTemplate?13:-1),g(),L(o.clearbuttonTemplate?14:-1))},dependencies:[bI,wz,RC,OC,PC,FC,NC,LC,BC,VC,jC,HC,zC,UC,$C,du,ei,gg,Fn],styles:[`.ng-select{padding:var(--mat-form-field-filled-with-label-container-padding-top, 24px) 16px var(--mat-form-field-filled-with-label-container-padding-bottom, 8px);margin:calc(var(--mat-form-field-filled-with-label-container-padding-top, 24px) * -1) -16px calc(var(--mat-form-field-filled-with-label-container-padding-bottom, 8px) * -1)}.mdc-text-field--outlined .ng-select,.mdc-text-field--no-label .ng-select{padding-top:var(--mat-form-field-container-vertical-padding, 16px);padding-bottom:var(--mat-form-field-container-vertical-padding, 16px);margin-top:calc(var(--mat-form-field-container-vertical-padding, 16px) * -1);margin-bottom:calc(var(--mat-form-field-container-vertical-padding, 16px) * -1)}.ng-select .ng-select-container{align-items:center;color:var(--mtx-select-container-text-color, var(--mat-sys-on-surface))}.ng-select .ng-select-container .ng-value-container{align-items:center;gap:4px}.ng-select .ng-select-container .ng-value-container .ng-input>input{height:var(--mat-form-field-container-text-line-height, var(--mat-sys-body-large-line-height));color:inherit;font:inherit}.ng-select .ng-select-container .ng-clear-wrapper{display:inline-flex;justify-content:center;align-items:center;width:24px;height:var(--mat-form-field-container-text-line-height, var(--mat-sys-body-large-line-height))}.ng-select .ng-placeholder{transition:opacity .2s;opacity:1;color:var(--mtx-select-placeholder-text-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent))}.mat-form-field-hide-placeholder .ng-select .ng-placeholder{opacity:0}.ng-select .ng-has-value .ng-placeholder{display:none}.ng-select .ng-clear-wrapper{color:var(--mtx-select-clear-icon-color, var(--mat-sys-on-surface))}.ng-select .ng-clear-wrapper:hover .ng-clear{color:var(--mtx-select-clear-icon-hover-color, var(--mat-sys-error))}.ng-select.ng-select-disabled .ng-value{color:var(--mtx-select-disabled-text-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent))}.ng-select.ng-select-opened .ng-arrow-wrapper .ng-arrow{top:-2px;border-width:0 5px 5px}.ng-select.ng-select-single.ng-select-filtered .ng-placeholder{display:initial;visibility:hidden}.ng-select.ng-select-multiple .ng-select-container .ng-value-container .ng-value{display:inline-flex;align-items:center;height:var(--mat-form-field-container-text-line-height, var(--mat-sys-body-large-line-height));padding:0 calc((var(--mat-form-field-container-text-line-height, var(--mat-sys-body-large-line-height)) - 16px) / 2);border-radius:9999px;font-size:.875em;background-color:var(--mtx-select-multiple-value-background-color, transparent);border:1px solid var(--mtx-select-multiple-value-outline-color, var(--mat-sys-outline))}.ng-select.ng-select-multiple .ng-select-container .ng-value-container .ng-value.ng-value-disabled{opacity:.4}.ng-select.ng-select-multiple .ng-select-container .ng-value-container .ng-value .ng-value-label{display:inline-block;margin:0 4px;line-height:16px}.ng-select.ng-select-multiple .ng-select-container .ng-value-container .ng-value .ng-value-icon{width:16px;height:16px;line-height:16px;border-radius:50%;text-align:center}.ng-select.ng-select-multiple .ng-select-container .ng-value-container .ng-value .ng-value-icon:hover{background-color:var(--mtx-select-multiple-value-icon-hover-background-color, var(--mat-sys-outline-variant))}.ng-select.ng-select-multiple.ng-select-disabled .ng-select-container .ng-value-container .ng-value{border-color:var(--mtx-select-multiple-value-disabled-outline-color, color-mix(in srgb, var(--mat-sys-outline) 38%, transparent))}.ng-select .ng-arrow-wrapper{width:10px}.ng-select .ng-arrow{border-width:5px 5px 2px;border-style:solid;border-color:var(--mtx-select-enabled-arrow-color, var(--mat-sys-on-surface)) transparent transparent}.ng-select.ng-select-disabled .ng-arrow{border-color:var(--mtx-select-disabled-arrow-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent)) transparent transparent}.ng-select.ng-select-invalid .ng-arrow{border-color:var(--mtx-select-invalid-arrow-color, var(--mat-sys-error)) transparent transparent}.ng-select.ng-select-opened .ng-arrow{border-color:transparent transparent var(--mtx-select-enabled-arrow-color, var(--mat-sys-on-surface))}.ng-select.ng-select-opened.ng-select-invalid .ng-arrow{border-color:transparent transparent var(--mtx-select-invalid-arrow-color, var(--mat-sys-error))}.ng-dropdown-panel{background-color:var(--mtx-select-panel-background-color, var(--mat-sys-surface-container))}.ng-dropdown-panel.ng-select-bottom{top:100%;border-bottom-left-radius:var(--mtx-select-container-shape, var(--mat-sys-corner-extra-small));border-bottom-right-radius:var(--mtx-select-container-shape, var(--mat-sys-corner-extra-small));box-shadow:var(--mtx-select-container-elevation-shadow, 0px 3px 1px -2px rgba(0, 0, 0, .2), 0px 2px 2px 0px rgba(0, 0, 0, .14), 0px 1px 5px 0px rgba(0, 0, 0, .12))}.ng-dropdown-panel.ng-select-top{bottom:100%;border-top-left-radius:var(--mtx-select-container-shape, var(--mat-sys-corner-extra-small));border-top-right-radius:var(--mtx-select-container-shape, var(--mat-sys-corner-extra-small));box-shadow:var(--mtx-select-container-elevation-shadow, 0px 3px 1px -2px rgba(0, 0, 0, .2), 0px 2px 2px 0px rgba(0, 0, 0, .14), 0px 1px 5px 0px rgba(0, 0, 0, .12))}.ng-dropdown-panel .ng-dropdown-header,.ng-dropdown-panel .ng-dropdown-footer{padding:14px 16px}.ng-dropdown-panel .ng-dropdown-header{border-bottom:1px solid var(--mtx-select-panel-divider-color, var(--mat-sys-outline))}.ng-dropdown-panel .ng-dropdown-footer{border-top:1px solid var(--mtx-select-panel-divider-color, var(--mat-sys-outline))}.ng-dropdown-panel .ng-dropdown-panel-items .ng-optgroup{padding:14px 16px;font-weight:500;-webkit-user-select:none;user-select:none;cursor:pointer;color:var(--mtx-select-optgroup-label-text-color, var(--mat-sys-on-surface))}.ng-dropdown-panel .ng-dropdown-panel-items .ng-optgroup.ng-option-disabled{cursor:default}.ng-dropdown-panel .ng-dropdown-panel-items .ng-optgroup.ng-option-marked{background-color:var(--mtx-select-option-hover-state-background-color, color-mix(in srgb, var(--mat-sys-on-surface) calc(var(--mat-sys-hover-state-layer-opacity) * 100%), transparent))}.ng-dropdown-panel .ng-dropdown-panel-items .ng-optgroup.ng-option-selected{background-color:var(--mtx-select-option-selected-state-background-color, var(--mat-sys-secondary-container));color:var(--mtx-select-option-selected-state-text-color, var(--mat-sys-on-surface))}.ng-dropdown-panel .ng-dropdown-panel-items .ng-option{position:relative;padding:14px 16px;text-overflow:ellipsis;text-decoration:none;text-align:left;white-space:nowrap;overflow:hidden;color:var(--mtx-select-option-label-text-color, var(--mat-sys-on-surface))}.ng-dropdown-panel .ng-dropdown-panel-items .ng-option.ng-option-marked{background-color:var(--mtx-select-option-hover-state-background-color, color-mix(in srgb, var(--mat-sys-on-surface) calc(var(--mat-sys-hover-state-layer-opacity) * 100%), transparent))}.ng-dropdown-panel .ng-dropdown-panel-items .ng-option.ng-option-selected{background-color:var(--mtx-select-option-selected-state-background-color, var(--mat-sys-secondary-container));color:var(--mtx-select-option-selected-state-text-color, var(--mat-sys-on-surface))}.ng-dropdown-panel .ng-dropdown-panel-items .ng-option.ng-option-disabled{color:var(--mtx-select-option-disabled-state-text-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent))}[dir=rtl] .ng-dropdown-panel .ng-dropdown-panel-items .ng-option{text-align:right}.ng-dropdown-panel .ng-dropdown-panel-items .ng-option.ng-option-child{padding-left:32px}[dir=rtl] .ng-dropdown-panel .ng-dropdown-panel-items .ng-option.ng-option-child{padding-right:32px;padding-left:0}.ng-dropdown-panel .ng-dropdown-panel-items .ng-option .ng-tag-label{margin-right:6px;font-size:80%}[dir=rtl] .ng-dropdown-panel .ng-dropdown-panel-items .ng-option .ng-tag-label{margin-left:6px;margin-right:0} +`],encapsulation:2,changeDetection:0});let t=n;return t})(),kz=(()=>{let n=class n{};n.\u0275fac=function(r){return new(r||n)},n.\u0275mod=ee({type:n}),n.\u0275inj=J({imports:[gt,du,zn,bI,yI]});let t=n;return t})();var Sz=(()=>{let n=class n extends to{get bindLabel(){return typeof this.props.labelProp=="string"?this.props.labelProp:""}get bindValue(){return typeof this.props.valueProp=="string"?this.props.valueProp:void 0}};n.\u0275fac=(()=>{let i;return function(o){return(i||(i=fe(n)))(o||n)}})(),n.\u0275cmp=E({type:n,selectors:[["formly-field-combobox"]],features:[le],decls:4,vars:13,consts:[["select",""],[3,"formControl","items","bindLabel","bindValue","multiple","placeholder","required","closeOnSelect","compareWith"]],template:function(r,o){r&1&&(k(0,"mtx-select",1,0),me(2,"toObservable"),me(3,"async")),r&2&&y("formControl",o.formControl)("items",Oe(3,11,Oe(2,9,o.props.options)))("bindLabel",o.bindLabel)("bindValue",o.bindValue)("multiple",o.props.multiple)("placeholder",o.props.placeholder)("required",o.props.required)("closeOnSelect",!o.props.multiple)("compareWith",o.props.compareWith)},dependencies:[zn,ei,Do,wo,kz,yI,a3,rn,o3],encapsulation:2});let t=n;return t})();var Tz=(()=>{let n=class n extends Cg{};n.\u0275fac=(()=>{let i;return function(o){return(i||(i=fe(n)))(o||n)}})(),n.\u0275cmp=E({type:n,selectors:[["formly-wrapper-card"]],features:[le],decls:8,vars:1,consts:[["fieldComponent",""],[1,"card"],[1,"card-header"],[1,"card-body"]],template:function(r,o){r&1&&(ft(0,"div",1)(1,"h3",2),_(2,"Its time to party"),vt(),ft(3,"h3",2),_(4),vt(),ft(5,"div",3),rf(6,null,0),vt()()),r&2&&(g(4),H(o.props.label))},encapsulation:2});let t=n;return t})(),Iz=(()=>{let n=class n extends Cg{};n.\u0275fac=(()=>{let i;return function(o){return(i||(i=fe(n)))(o||n)}})(),n.\u0275cmp=E({type:n,selectors:[["formly-wrapper-div"]],features:[le],decls:3,vars:0,consts:[["fieldComponent",""]],template:function(r,o){r&1&&(ft(0,"div"),rf(1,null,0),vt())},encapsulation:2});let t=n;return t})();function Az(t){return{types:[{name:"combobox",component:Sz,wrappers:["form-field"]}],wrappers:[{name:"card",component:Tz},{name:"div",component:Iz}],validators:[],validationMessages:[{name:"required",message:(n,e)=>t.stream("validation.required")},{name:"min",message:(n,e)=>t.stream("validation.min",{number:e.props?.min})},{name:"max",message:(n,e)=>t.stream("validation.max",{number:e.props?.max})},{name:"minLength",message:(n,e)=>t.stream("validation.min_length",{number:e.props?.minLength})},{name:"maxLength",message:(n,e)=>t.stream("validation.max_length",{number:e.props?.maxLength})}]}}var Ehe={lessThanXSeconds:{one:"\u4E0D\u5230 1 \u79D2",other:"\u4E0D\u5230 {{count}} \u79D2"},xSeconds:{one:"1 \u79D2",other:"{{count}} \u79D2"},halfAMinute:"\u534A\u5206\u949F",lessThanXMinutes:{one:"\u4E0D\u5230 1 \u5206\u949F",other:"\u4E0D\u5230 {{count}} \u5206\u949F"},xMinutes:{one:"1 \u5206\u949F",other:"{{count}} \u5206\u949F"},xHours:{one:"1 \u5C0F\u65F6",other:"{{count}} \u5C0F\u65F6"},aboutXHours:{one:"\u5927\u7EA6 1 \u5C0F\u65F6",other:"\u5927\u7EA6 {{count}} \u5C0F\u65F6"},xDays:{one:"1 \u5929",other:"{{count}} \u5929"},aboutXWeeks:{one:"\u5927\u7EA6 1 \u4E2A\u661F\u671F",other:"\u5927\u7EA6 {{count}} \u4E2A\u661F\u671F"},xWeeks:{one:"1 \u4E2A\u661F\u671F",other:"{{count}} \u4E2A\u661F\u671F"},aboutXMonths:{one:"\u5927\u7EA6 1 \u4E2A\u6708",other:"\u5927\u7EA6 {{count}} \u4E2A\u6708"},xMonths:{one:"1 \u4E2A\u6708",other:"{{count}} \u4E2A\u6708"},aboutXYears:{one:"\u5927\u7EA6 1 \u5E74",other:"\u5927\u7EA6 {{count}} \u5E74"},xYears:{one:"1 \u5E74",other:"{{count}} \u5E74"},overXYears:{one:"\u8D85\u8FC7 1 \u5E74",other:"\u8D85\u8FC7 {{count}} \u5E74"},almostXYears:{one:"\u5C06\u8FD1 1 \u5E74",other:"\u5C06\u8FD1 {{count}} \u5E74"}},Oz=(t,n,e)=>{let i,r=Ehe[t];return typeof r=="string"?i=r:n===1?i=r.one:i=r.other.replace("{{count}}",String(n)),e?.addSuffix?e.comparison&&e.comparison>0?i+"\u5185":i+"\u524D":i};var Mhe={full:"y'\u5E74'M'\u6708'd'\u65E5' EEEE",long:"y'\u5E74'M'\u6708'd'\u65E5'",medium:"yyyy-MM-dd",short:"yy-MM-dd"},khe={full:"zzzz a h:mm:ss",long:"z a h:mm:ss",medium:"a h:mm:ss",short:"a h:mm"},She={full:"{{date}} {{time}}",long:"{{date}} {{time}}",medium:"{{date}} {{time}}",short:"{{date}} {{time}}"},Rz={date:Qo({formats:Mhe,defaultWidth:"full"}),time:Qo({formats:khe,defaultWidth:"full"}),dateTime:Qo({formats:She,defaultWidth:"full"})};function Pz(t,n,e){let i="eeee p";return FV(t,n,e)?i:t.getTime()>n.getTime()?"'\u4E0B\u4E2A'"+i:"'\u4E0A\u4E2A'"+i}var The={lastWeek:Pz,yesterday:"'\u6628\u5929' p",today:"'\u4ECA\u5929' p",tomorrow:"'\u660E\u5929' p",nextWeek:Pz,other:"PP p"},Fz=(t,n,e,i)=>{let r=The[t];return typeof r=="function"?r(n,e,i):r};var Ihe={narrow:["\u524D","\u516C\u5143"],abbreviated:["\u524D","\u516C\u5143"],wide:["\u516C\u5143\u524D","\u516C\u5143"]},Ahe={narrow:["1","2","3","4"],abbreviated:["\u7B2C\u4E00\u5B63","\u7B2C\u4E8C\u5B63","\u7B2C\u4E09\u5B63","\u7B2C\u56DB\u5B63"],wide:["\u7B2C\u4E00\u5B63\u5EA6","\u7B2C\u4E8C\u5B63\u5EA6","\u7B2C\u4E09\u5B63\u5EA6","\u7B2C\u56DB\u5B63\u5EA6"]},Ohe={narrow:["\u4E00","\u4E8C","\u4E09","\u56DB","\u4E94","\u516D","\u4E03","\u516B","\u4E5D","\u5341","\u5341\u4E00","\u5341\u4E8C"],abbreviated:["1\u6708","2\u6708","3\u6708","4\u6708","5\u6708","6\u6708","7\u6708","8\u6708","9\u6708","10\u6708","11\u6708","12\u6708"],wide:["\u4E00\u6708","\u4E8C\u6708","\u4E09\u6708","\u56DB\u6708","\u4E94\u6708","\u516D\u6708","\u4E03\u6708","\u516B\u6708","\u4E5D\u6708","\u5341\u6708","\u5341\u4E00\u6708","\u5341\u4E8C\u6708"]},Rhe={narrow:["\u65E5","\u4E00","\u4E8C","\u4E09","\u56DB","\u4E94","\u516D"],short:["\u65E5","\u4E00","\u4E8C","\u4E09","\u56DB","\u4E94","\u516D"],abbreviated:["\u5468\u65E5","\u5468\u4E00","\u5468\u4E8C","\u5468\u4E09","\u5468\u56DB","\u5468\u4E94","\u5468\u516D"],wide:["\u661F\u671F\u65E5","\u661F\u671F\u4E00","\u661F\u671F\u4E8C","\u661F\u671F\u4E09","\u661F\u671F\u56DB","\u661F\u671F\u4E94","\u661F\u671F\u516D"]},Phe={narrow:{am:"\u4E0A",pm:"\u4E0B",midnight:"\u51CC\u6668",noon:"\u5348",morning:"\u65E9",afternoon:"\u4E0B\u5348",evening:"\u665A",night:"\u591C"},abbreviated:{am:"\u4E0A\u5348",pm:"\u4E0B\u5348",midnight:"\u51CC\u6668",noon:"\u4E2D\u5348",morning:"\u65E9\u6668",afternoon:"\u4E2D\u5348",evening:"\u665A\u4E0A",night:"\u591C\u95F4"},wide:{am:"\u4E0A\u5348",pm:"\u4E0B\u5348",midnight:"\u51CC\u6668",noon:"\u4E2D\u5348",morning:"\u65E9\u6668",afternoon:"\u4E2D\u5348",evening:"\u665A\u4E0A",night:"\u591C\u95F4"}},Fhe={narrow:{am:"\u4E0A",pm:"\u4E0B",midnight:"\u51CC\u6668",noon:"\u5348",morning:"\u65E9",afternoon:"\u4E0B\u5348",evening:"\u665A",night:"\u591C"},abbreviated:{am:"\u4E0A\u5348",pm:"\u4E0B\u5348",midnight:"\u51CC\u6668",noon:"\u4E2D\u5348",morning:"\u65E9\u6668",afternoon:"\u4E2D\u5348",evening:"\u665A\u4E0A",night:"\u591C\u95F4"},wide:{am:"\u4E0A\u5348",pm:"\u4E0B\u5348",midnight:"\u51CC\u6668",noon:"\u4E2D\u5348",morning:"\u65E9\u6668",afternoon:"\u4E2D\u5348",evening:"\u665A\u4E0A",night:"\u591C\u95F4"}},Nhe=(t,n)=>{let e=Number(t);switch(n?.unit){case"date":return e.toString()+"\u65E5";case"hour":return e.toString()+"\u65F6";case"minute":return e.toString()+"\u5206";case"second":return e.toString()+"\u79D2";default:return"\u7B2C "+e.toString()}},Nz={ordinalNumber:Nhe,era:Bn({values:Ihe,defaultWidth:"wide"}),quarter:Bn({values:Ahe,defaultWidth:"wide",argumentCallback:t=>t-1}),month:Bn({values:Ohe,defaultWidth:"wide"}),day:Bn({values:Rhe,defaultWidth:"wide"}),dayPeriod:Bn({values:Phe,defaultWidth:"wide",formattingValues:Fhe,defaultFormattingWidth:"wide"})};var Lhe=/^(第\s*)?\d+(日|时|分|秒)?/i,Vhe=/\d+/i,Bhe={narrow:/^(前)/i,abbreviated:/^(前)/i,wide:/^(公元前|公元)/i},jhe={any:[/^(前)/i,/^(公元)/i]},Hhe={narrow:/^[1234]/i,abbreviated:/^第[一二三四]刻/i,wide:/^第[一二三四]刻钟/i},zhe={any:[/(1|一)/i,/(2|二)/i,/(3|三)/i,/(4|四)/i]},Uhe={narrow:/^(一|二|三|四|五|六|七|八|九|十[二一])/i,abbreviated:/^(一|二|三|四|五|六|七|八|九|十[二一]|\d|1[12])月/i,wide:/^(一|二|三|四|五|六|七|八|九|十[二一])月/i},$he={narrow:[/^一/i,/^二/i,/^三/i,/^四/i,/^五/i,/^六/i,/^七/i,/^八/i,/^九/i,/^十(?!(一|二))/i,/^十一/i,/^十二/i],any:[/^一|1/i,/^二|2/i,/^三|3/i,/^四|4/i,/^五|5/i,/^六|6/i,/^七|7/i,/^八|8/i,/^九|9/i,/^十(?!(一|二))|10/i,/^十一|11/i,/^十二|12/i]},Whe={narrow:/^[一二三四五六日]/i,short:/^[一二三四五六日]/i,abbreviated:/^周[一二三四五六日]/i,wide:/^星期[一二三四五六日]/i},Ghe={any:[/日/i,/一/i,/二/i,/三/i,/四/i,/五/i,/六/i]},qhe={any:/^(上午?|下午?|午夜|[中正]午|早上?|下午|晚上?|凌晨|)/i},Yhe={any:{am:/^上午?/i,pm:/^下午?/i,midnight:/^午夜/i,noon:/^[中正]午/i,morning:/^早上/i,afternoon:/^下午/i,evening:/^晚上?/i,night:/^凌晨/i}},Lz={ordinalNumber:lh({matchPattern:Lhe,parsePattern:Vhe,valueCallback:t=>parseInt(t,10)}),era:jn({matchPatterns:Bhe,defaultMatchWidth:"wide",parsePatterns:jhe,defaultParseWidth:"any"}),quarter:jn({matchPatterns:Hhe,defaultMatchWidth:"wide",parsePatterns:zhe,defaultParseWidth:"any",valueCallback:t=>t+1}),month:jn({matchPatterns:Uhe,defaultMatchWidth:"wide",parsePatterns:$he,defaultParseWidth:"any"}),day:jn({matchPatterns:Whe,defaultMatchWidth:"wide",parsePatterns:Ghe,defaultParseWidth:"any"}),dayPeriod:jn({matchPatterns:qhe,defaultMatchWidth:"any",parsePatterns:Yhe,defaultParseWidth:"any"})};var Vz={code:"zh-CN",formatDistance:Oz,formatLong:Rz,formatRelative:Fz,localize:Nz,match:Lz,options:{weekStartsOn:1,firstWeekContainsDate:4}};var Qhe={lessThanXSeconds:{one:"\u5C11\u65BC 1 \u79D2",other:"\u5C11\u65BC {{count}} \u79D2"},xSeconds:{one:"1 \u79D2",other:"{{count}} \u79D2"},halfAMinute:"\u534A\u5206\u9418",lessThanXMinutes:{one:"\u5C11\u65BC 1 \u5206\u9418",other:"\u5C11\u65BC {{count}} \u5206\u9418"},xMinutes:{one:"1 \u5206\u9418",other:"{{count}} \u5206\u9418"},xHours:{one:"1 \u5C0F\u6642",other:"{{count}} \u5C0F\u6642"},aboutXHours:{one:"\u5927\u7D04 1 \u5C0F\u6642",other:"\u5927\u7D04 {{count}} \u5C0F\u6642"},xDays:{one:"1 \u5929",other:"{{count}} \u5929"},aboutXWeeks:{one:"\u5927\u7D04 1 \u500B\u661F\u671F",other:"\u5927\u7D04 {{count}} \u500B\u661F\u671F"},xWeeks:{one:"1 \u500B\u661F\u671F",other:"{{count}} \u500B\u661F\u671F"},aboutXMonths:{one:"\u5927\u7D04 1 \u500B\u6708",other:"\u5927\u7D04 {{count}} \u500B\u6708"},xMonths:{one:"1 \u500B\u6708",other:"{{count}} \u500B\u6708"},aboutXYears:{one:"\u5927\u7D04 1 \u5E74",other:"\u5927\u7D04 {{count}} \u5E74"},xYears:{one:"1 \u5E74",other:"{{count}} \u5E74"},overXYears:{one:"\u8D85\u904E 1 \u5E74",other:"\u8D85\u904E {{count}} \u5E74"},almostXYears:{one:"\u5C07\u8FD1 1 \u5E74",other:"\u5C07\u8FD1 {{count}} \u5E74"}},Bz=(t,n,e)=>{let i,r=Qhe[t];return typeof r=="string"?i=r:n===1?i=r.one:i=r.other.replace("{{count}}",String(n)),e?.addSuffix?e.comparison&&e.comparison>0?i+"\u5167":i+"\u524D":i};var Khe={full:"y'\u5E74'M'\u6708'd'\u65E5' EEEE",long:"y'\u5E74'M'\u6708'd'\u65E5'",medium:"yyyy-MM-dd",short:"yy-MM-dd"},Zhe={full:"zzzz a h:mm:ss",long:"z a h:mm:ss",medium:"a h:mm:ss",short:"a h:mm"},Xhe={full:"{{date}} {{time}}",long:"{{date}} {{time}}",medium:"{{date}} {{time}}",short:"{{date}} {{time}}"},jz={date:Qo({formats:Khe,defaultWidth:"full"}),time:Qo({formats:Zhe,defaultWidth:"full"}),dateTime:Qo({formats:Xhe,defaultWidth:"full"})};var Jhe={lastWeek:"'\u4E0A\u500B'eeee p",yesterday:"'\u6628\u5929' p",today:"'\u4ECA\u5929' p",tomorrow:"'\u660E\u5929' p",nextWeek:"'\u4E0B\u500B'eeee p",other:"P"},Hz=(t,n,e,i)=>Jhe[t];var epe={narrow:["\u524D","\u516C\u5143"],abbreviated:["\u524D","\u516C\u5143"],wide:["\u516C\u5143\u524D","\u516C\u5143"]},tpe={narrow:["1","2","3","4"],abbreviated:["\u7B2C\u4E00\u523B","\u7B2C\u4E8C\u523B","\u7B2C\u4E09\u523B","\u7B2C\u56DB\u523B"],wide:["\u7B2C\u4E00\u523B\u9418","\u7B2C\u4E8C\u523B\u9418","\u7B2C\u4E09\u523B\u9418","\u7B2C\u56DB\u523B\u9418"]},ipe={narrow:["\u4E00","\u4E8C","\u4E09","\u56DB","\u4E94","\u516D","\u4E03","\u516B","\u4E5D","\u5341","\u5341\u4E00","\u5341\u4E8C"],abbreviated:["1\u6708","2\u6708","3\u6708","4\u6708","5\u6708","6\u6708","7\u6708","8\u6708","9\u6708","10\u6708","11\u6708","12\u6708"],wide:["\u4E00\u6708","\u4E8C\u6708","\u4E09\u6708","\u56DB\u6708","\u4E94\u6708","\u516D\u6708","\u4E03\u6708","\u516B\u6708","\u4E5D\u6708","\u5341\u6708","\u5341\u4E00\u6708","\u5341\u4E8C\u6708"]},npe={narrow:["\u65E5","\u4E00","\u4E8C","\u4E09","\u56DB","\u4E94","\u516D"],short:["\u65E5","\u4E00","\u4E8C","\u4E09","\u56DB","\u4E94","\u516D"],abbreviated:["\u9031\u65E5","\u9031\u4E00","\u9031\u4E8C","\u9031\u4E09","\u9031\u56DB","\u9031\u4E94","\u9031\u516D"],wide:["\u661F\u671F\u65E5","\u661F\u671F\u4E00","\u661F\u671F\u4E8C","\u661F\u671F\u4E09","\u661F\u671F\u56DB","\u661F\u671F\u4E94","\u661F\u671F\u516D"]},rpe={narrow:{am:"\u4E0A",pm:"\u4E0B",midnight:"\u51CC\u6668",noon:"\u5348",morning:"\u65E9",afternoon:"\u4E0B\u5348",evening:"\u665A",night:"\u591C"},abbreviated:{am:"\u4E0A\u5348",pm:"\u4E0B\u5348",midnight:"\u51CC\u6668",noon:"\u4E2D\u5348",morning:"\u65E9\u6668",afternoon:"\u4E2D\u5348",evening:"\u665A\u4E0A",night:"\u591C\u9593"},wide:{am:"\u4E0A\u5348",pm:"\u4E0B\u5348",midnight:"\u51CC\u6668",noon:"\u4E2D\u5348",morning:"\u65E9\u6668",afternoon:"\u4E2D\u5348",evening:"\u665A\u4E0A",night:"\u591C\u9593"}},ope={narrow:{am:"\u4E0A",pm:"\u4E0B",midnight:"\u51CC\u6668",noon:"\u5348",morning:"\u65E9",afternoon:"\u4E0B\u5348",evening:"\u665A",night:"\u591C"},abbreviated:{am:"\u4E0A\u5348",pm:"\u4E0B\u5348",midnight:"\u51CC\u6668",noon:"\u4E2D\u5348",morning:"\u65E9\u6668",afternoon:"\u4E2D\u5348",evening:"\u665A\u4E0A",night:"\u591C\u9593"},wide:{am:"\u4E0A\u5348",pm:"\u4E0B\u5348",midnight:"\u51CC\u6668",noon:"\u4E2D\u5348",morning:"\u65E9\u6668",afternoon:"\u4E2D\u5348",evening:"\u665A\u4E0A",night:"\u591C\u9593"}},ape=(t,n)=>{let e=Number(t);switch(n?.unit){case"date":return e+"\u65E5";case"hour":return e+"\u6642";case"minute":return e+"\u5206";case"second":return e+"\u79D2";default:return"\u7B2C "+e}},zz={ordinalNumber:ape,era:Bn({values:epe,defaultWidth:"wide"}),quarter:Bn({values:tpe,defaultWidth:"wide",argumentCallback:t=>t-1}),month:Bn({values:ipe,defaultWidth:"wide"}),day:Bn({values:npe,defaultWidth:"wide"}),dayPeriod:Bn({values:rpe,defaultWidth:"wide",formattingValues:ope,defaultFormattingWidth:"wide"})};var spe=/^(第\s*)?\d+(日|時|分|秒)?/i,lpe=/\d+/i,cpe={narrow:/^(前)/i,abbreviated:/^(前)/i,wide:/^(公元前|公元)/i},dpe={any:[/^(前)/i,/^(公元)/i]},upe={narrow:/^[1234]/i,abbreviated:/^第[一二三四]刻/i,wide:/^第[一二三四]刻鐘/i},mpe={any:[/(1|一)/i,/(2|二)/i,/(3|三)/i,/(4|四)/i]},hpe={narrow:/^(一|二|三|四|五|六|七|八|九|十[二一])/i,abbreviated:/^(一|二|三|四|五|六|七|八|九|十[二一]|\d|1[12])月/i,wide:/^(一|二|三|四|五|六|七|八|九|十[二一])月/i},ppe={narrow:[/^一/i,/^二/i,/^三/i,/^四/i,/^五/i,/^六/i,/^七/i,/^八/i,/^九/i,/^十(?!(一|二))/i,/^十一/i,/^十二/i],any:[/^一|1/i,/^二|2/i,/^三|3/i,/^四|4/i,/^五|5/i,/^六|6/i,/^七|7/i,/^八|8/i,/^九|9/i,/^十(?!(一|二))|10/i,/^十一|11/i,/^十二|12/i]},fpe={narrow:/^[一二三四五六日]/i,short:/^[一二三四五六日]/i,abbreviated:/^週[一二三四五六日]/i,wide:/^星期[一二三四五六日]/i},gpe={any:[/日/i,/一/i,/二/i,/三/i,/四/i,/五/i,/六/i]},_pe={any:/^(上午?|下午?|午夜|[中正]午|早上?|下午|晚上?|凌晨)/i},bpe={any:{am:/^上午?/i,pm:/^下午?/i,midnight:/^午夜/i,noon:/^[中正]午/i,morning:/^早上/i,afternoon:/^下午/i,evening:/^晚上?/i,night:/^凌晨/i}},Uz={ordinalNumber:lh({matchPattern:spe,parsePattern:lpe,valueCallback:t=>parseInt(t,10)}),era:jn({matchPatterns:cpe,defaultMatchWidth:"wide",parsePatterns:dpe,defaultParseWidth:"any"}),quarter:jn({matchPatterns:upe,defaultMatchWidth:"wide",parsePatterns:mpe,defaultParseWidth:"any",valueCallback:t=>t+1}),month:jn({matchPatterns:hpe,defaultMatchWidth:"wide",parsePatterns:ppe,defaultParseWidth:"any"}),day:jn({matchPatterns:fpe,defaultMatchWidth:"wide",parsePatterns:gpe,defaultParseWidth:"any"}),dayPeriod:jn({matchPatterns:_pe,defaultMatchWidth:"any",parsePatterns:bpe,defaultParseWidth:"any"})};var $z={code:"zh-TW",formatDistance:Bz,formatLong:jz,formatRelative:Hz,localize:zz,match:Uz,options:{weekStartsOn:1,firstWeekContainsDate:4}};var xI={navPos:"side",theme:"auto",dir:"ltr",showHeader:!0,headerPos:"fixed",showUserPanel:!0,sidenavOpened:!0,sidenavCollapsed:!1,language:"auto"};var aa=(()=>{let n=class n{get notify(){return this.notify$.asObservable()}constructor(){this.key="ng-matero-settings",this.document=u(ge),this.translate=u(ia),this.store=u(mz),this.mediaMatcher=u(qm),this.dir=u(dz),this.notify$=new tt({}),this.htmlElement=this.document.querySelector("html"),this.storedOptions=this.store.get(this.key),this.options=Object.assign(xI,this.storedOptions),this.languages=["en-US","zh-CN","zh-TW"],this.localeMap={"en-US":tu,"zh-CN":Vz,"zh-TW":$z},this.translate.addLangs(this.languages)}reset(){this.store.remove(this.key)}setOptions(i){this.options=Object.assign(xI,this.options,i),this.store.set(this.key,this.options),this.notify$.next(this.options)}setDirection(i){i&&this.setOptions({dir:i}),this.dir.value=this.options.dir,this.htmlElement.dir=this.options.dir}getThemeColor(){return this.options.theme==="auto"&&this.mediaMatcher.matchMedia("(prefers-color-scheme)").media!=="not all"?this.mediaMatcher.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light":this.options.theme}setTheme(i){i&&this.setOptions({theme:i}),this.getThemeColor()==="dark"?this.htmlElement.classList.add("theme-dark"):this.htmlElement.classList.remove("theme-dark")}getTranslateLang(){if(this.options.language==="auto"){let i=navigator.language;return this.languages.includes(i)?i:"en-US"}return this.options.language}setLanguage(i){i&&this.setOptions({language:i}),this.translate.use(this.getTranslateLang())}getLocale(){return this.localeMap[this.getTranslateLang()]}};n.\u0275fac=function(r){return new(r||n)},n.\u0275prov=O({token:n,factory:n.\u0275fac,providedIn:"root"});let t=n;return t})();var Wz=(()=>{let n=class n{constructor(){this.http=u(Yr),this.oidcAuth=u(Tt),this.menuService=u(so),this.permissonsService=u(_u),this.rolesService=u(Th),this.oidcAuth.permissionsChange$.subscribe(()=>{console.log("StartupService: Permission change event received, refreshing permissions"),this.setPermissions()})}load(){return new Promise((i,r)=>{this.http.get("data/menu.json").pipe(Be(o=>this.setMenu(o.menu))).subscribe({next:()=>{this.setPermissions(),i()},error:o=>{console.error("Error loading menu:",o),this.setPermissions(),i()}})})}setMenu(i){this.menuService.addNamespace(i,"menu"),this.menuService.set(i)}setPermissions(){let i=this.oidcAuth.getUserRoles();console.log("StartupService: User roles from token:",i);let r=["canAdd","canDelete","canEdit","canRead"];this.rolesService.flushRoles(),i.length>0?(this.permissonsService.loadPermissions(r),console.log("StartupService: Loaded permissions:",r),i.includes("HRAdmin")&&(this.rolesService.addRoles({HRAdmin:r}),console.log("StartupService: Added HRAdmin role with permissions:",r)),i.includes("Manager")&&(this.rolesService.addRoles({Manager:r}),console.log("StartupService: Added Manager role with permissions:",r)),i.includes("Employee")&&(this.rolesService.addRoles({Employee:["canRead"]}),console.log("StartupService: Added Employee role with canRead permission"))):(console.log("StartupService: No roles found - setting Guest permissions"),this.permissonsService.loadPermissions(["canRead"]),this.rolesService.addRoles({Guest:["canRead"]}))}};n.\u0275fac=function(r){return new(r||n)},n.\u0275prov=O({token:n,factory:n.\u0275fac,providedIn:"root"});let t=n;return t})();var Gz=(()=>{let n=class n{constructor(){this.document=u(ge),this.selector="globalLoader"}getElement(){return this.document.getElementById(this.selector)}hide(){let i=this.getElement();i&&(i.addEventListener("transitionend",()=>{i.className="global-loader-hidden"}),i.classList.contains("global-loader-hidden")||(i.className+=" global-loader-fade-out"))}};n.\u0275fac=function(r){return new(r||n)},n.\u0275prov=O({token:n,factory:n.\u0275fac,providedIn:"root"});let t=n;return t})();var qz=(()=>{let n=class n{constructor(){this.translate=u(ia),this.settings=u(aa)}load(){return new Promise(i=>{let r=this.settings.getTranslateLang();this.translate.setFallbackLang(r),this.translate.use(r).subscribe({next:()=>console.log(`Successfully initialized '${r}' language.'`),error:()=>console.error(`Problem with '${r}' language initialization.'`),complete:()=>i()})})}};n.\u0275fac=function(r){return new(r||n)},n.\u0275prov=O({token:n,factory:n.\u0275fac,providedIn:"root"});let t=n;return t})();function Yz(t,n){return n(t)}var CI=new T("BASE_URL");function vpe(t){return new RegExp("^http(s)?://","i").test(t)}function Qz(t,n){let e=u(CI,{optional:!0}),i=o=>e&&vpe(o),r=o=>[e?.replace(/\/$/g,""),o.replace(/^\.?\//,"")].filter(a=>a).join("/");return i(t.url)===!1?n(t.clone({url:r(t.url)})):n(t)}function Kz(t,n){let e=u(aa);return n(t.clone({headers:t.headers.append("Accept-Language",e.getTranslateLang())}))}function Zz(t,n){let e=u(Rg);return t.url.includes("/api/")?n(t).pipe(Mt(i=>{if(i instanceof nl){let r=i.body;if(r&&"code"in r&&r.code!==0)return r.msg&&e.error(r.msg),Wn(()=>[])}return Q(i)})):n(t)}var h_=(function(t){return t[t.UNAUTHORIZED=401]="UNAUTHORIZED",t[t.FORBIDDEN=403]="FORBIDDEN",t[t.NOT_FOUND=404]="NOT_FOUND",t[t.INTERNAL_SERVER_ERROR=500]="INTERNAL_SERVER_ERROR",t})(h_||{});function Xz(t,n){let e=u(Re),i=u(Rg),r=[h_.FORBIDDEN,h_.NOT_FOUND,h_.INTERNAL_SERVER_ERROR],o=a=>a.error?.message?a.error.message:a.error?.msg?a.error.msg:a.status===0?"Network error - please check your connection":`${a.status} ${a.statusText}`;return n(t).pipe(fi(a=>a.status===0?(console.warn("Network error (possible CORS issue):",a),Wn(()=>a)):(r.includes(a.status)?e.navigateByUrl(`/${a.status}`,{skipLocationChange:!0}):(console.error("ERROR",a),i.error(o(a)),a.status===h_.UNAUTHORIZED&&console.warn("Unauthorized access - authentication required")),Wn(()=>a))))}function Jz(t,n){let e=u(uz),i=Date.now(),r;return n(t).pipe(Be({next:o=>r=o instanceof nl?"succeeded":"",error:o=>r="failed"}),Hr(()=>{let o=Date.now()-i,a=`${t.method} "${t.urlWithParams}" ${r} in ${o} ms.`;e.add(a)}))}var e8=[Yz,Qz,Kz,Zz,Xz,Jz];var qC=["*"],ype=["content"],xpe=[[["mat-drawer"]],[["mat-drawer-content"]],"*"],Cpe=["mat-drawer","mat-drawer-content","*"];function wpe(t,n){if(t&1){let e=Y();h(0,"div",1),S("click",function(){I(e);let r=C();return A(r._onBackdropClicked())}),p()}if(t&2){let e=C();G("mat-drawer-shown",e._isShowingBackdrop())}}function Dpe(t,n){t&1&&(h(0,"mat-drawer-content"),oe(1,2),p())}var Epe=[[["mat-sidenav"]],[["mat-sidenav-content"]],"*"],Mpe=["mat-sidenav","mat-sidenav-content","*"];function kpe(t,n){if(t&1){let e=Y();h(0,"div",1),S("click",function(){I(e);let r=C();return A(r._onBackdropClicked())}),p()}if(t&2){let e=C();G("mat-drawer-shown",e._isShowingBackdrop())}}function Spe(t,n){t&1&&(h(0,"mat-sidenav-content"),oe(1,2),p())}var Tpe=`.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:.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} +`;var Ipe=new T("MAT_DRAWER_DEFAULT_AUTOSIZE",{providedIn:"root",factory:Ape}),EI=new T("MAT_DRAWER_CONTAINER");function Ape(){return!1}var WC=(()=>{class t extends Pa{_platform=u(qe);_changeDetectorRef=u(ye);_container=u(DI);constructor(){let e=u(q),i=u(ws),r=u(ae);super(e,i,r)}ngAfterContentInit(){this._container._contentMarginChanges.subscribe(()=>{this._changeDetectorRef.markForCheck()})}_shouldBeHidden(){if(this._platform.isBrowser)return!1;let{start:e,end:i}=this._container;return e!=null&&e.mode!=="over"&&e.opened||i!=null&&i.mode!=="over"&&i.opened}static \u0275fac=function(i){return new(i||t)};static \u0275cmp=E({type:t,selectors:[["mat-drawer-content"]],hostAttrs:[1,"mat-drawer-content"],hostVars:6,hostBindings:function(i,r){i&2&&(Dt("margin-left",r._container._contentMargins.left,"px")("margin-right",r._container._contentMargins.right,"px"),G("mat-drawer-content-hidden",r._shouldBeHidden()))},features:[Ce([{provide:Pa,useExisting:t}]),le],ngContentSelectors:qC,decls:1,vars:0,template:function(i,r){i&1&&(Me(),oe(0))},encapsulation:2,changeDetection:0})}return t})(),wI=(()=>{class t{_elementRef=u(q);_focusTrapFactory=u(Qm);_focusMonitor=u(Yt);_platform=u(qe);_ngZone=u(ae);_renderer=u(je);_interactivityChecker=u(ac);_doc=u(ge);_container=u(EI,{optional:!0});_focusTrap=null;_elementFocusedBeforeDrawerWasOpened=null;_eventCleanups;_isAttached;_anchor;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=Ai(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=Ai(e)),this._autoFocus=e}_autoFocus;get opened(){return this._opened()}set opened(e){this.toggle(Ai(e))}_opened=he(!1);_openedVia;_animationStarted=new z;_animationEnd=new z;openedChange=new U(!0);_openedStream=this.openedChange.pipe(ce(e=>e),se(()=>{}));openedStart=this._animationStarted.pipe(ce(()=>this.opened),Gu(void 0));_closedStream=this.openedChange.pipe(ce(e=>!e),se(()=>{}));closedStart=this._animationStarted.pipe(ce(()=>!this.opened),Gu(void 0));_destroyed=new z;onPositionChanged=new U;_content;_modeChanged=new z;_injector=u(de);_changeDetectorRef=u(ye);constructor(){this.openedChange.pipe(Te(this._destroyed)).subscribe(e=>{e?(this._elementFocusedBeforeDrawerWasOpened=this._doc.activeElement,this._takeFocus()):this._isFocusWithinDrawer()&&this._restoreFocus(this._openedVia||"program")}),this._ngZone.runOutsideAngular(()=>{let e=this._elementRef.nativeElement;zs(e,"keydown").pipe(ce(i=>i.keyCode===27&&!this.disableClose&&!Ft(i)),Te(this._destroyed)).subscribe(i=>this._ngZone.run(()=>{this.close(),i.stopPropagation(),i.preventDefault()})),this._eventCleanups=[this._renderer.listen(e,"transitionrun",this._handleTransitionEvent),this._renderer.listen(e,"transitionend",this._handleTransitionEvent),this._renderer.listen(e,"transitioncancel",this._handleTransitionEvent)]}),this._animationEnd.subscribe(()=>{this.openedChange.emit(this.opened)})}_forceFocus(e,i){this._interactivityChecker.isFocusable(e)||(e.tabIndex=-1,this._ngZone.runOutsideAngular(()=>{let r=()=>{o(),a(),e.removeAttribute("tabindex")},o=this._renderer.listen(e,"blur",r),a=this._renderer.listen(e,"mousedown",r)})),e.focus(i)}_focusByCssSelector(e,i){let r=this._elementRef.nativeElement.querySelector(e);r&&this._forceFocus(r,i)}_takeFocus(){if(!this._focusTrap)return;let e=this._elementRef.nativeElement;switch(this.autoFocus){case!1:case"dialog":return;case!0:case"first-tabbable":pt(()=>{!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,i){e&&i&&(this._openedVia=i);let r=this._setOpen(e,!e&&this._isFocusWithinDrawer(),this._openedVia||"program");return e||(this._openedVia=null),r}_setOpen(e,i,r){return e===this.opened?Promise.resolve(e?"open":"close"):(this._opened.set(e),this._container?._transitionsEnabled?this._setIsAnimating(!0):setTimeout(()=>{this._animationStarted.next(),this._animationEnd.next()}),this._elementRef.nativeElement.classList.toggle("mat-drawer-opened",e),!e&&i&&this._restoreFocus(r),this._changeDetectorRef.markForCheck(),this._updateFocusTrapState(),new Promise(o=>{this.openedChange.pipe(lt(1)).subscribe(a=>o(a?"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._container?.hasBackdrop&&this.opened)}_updatePositionInParent(e){if(!this._platform.isBrowser)return;let i=this._elementRef.nativeElement,r=i.parentNode;e==="end"?(this._anchor||(this._anchor=this._doc.createComment("mat-drawer-anchor"),r.insertBefore(this._anchor,i)),r.appendChild(i)):this._anchor&&this._anchor.parentNode.insertBefore(i,this._anchor)}_handleTransitionEvent=e=>{let i=this._elementRef.nativeElement;e.target===i&&this._ngZone.run(()=>{e.type==="transitionrun"?this._animationStarted.next(e):(e.type==="transitionend"&&this._setIsAnimating(!1),this._animationEnd.next(e))})};static \u0275fac=function(i){return new(i||t)};static \u0275cmp=E({type:t,selectors:[["mat-drawer"]],viewQuery:function(i,r){if(i&1&&ie(ype,5),i&2){let o;B(o=j())&&(r._content=o.first)}},hostAttrs:[1,"mat-drawer"],hostVars:12,hostBindings:function(i,r){i&2&&(X("align",null)("tabIndex",r.mode!=="side"?"-1":null),Dt("visibility",!r._container&&!r.opened?"hidden":null),G("mat-drawer-end",r.position==="end")("mat-drawer-over",r.mode==="over")("mat-drawer-push",r.mode==="push")("mat-drawer-side",r.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:qC,decls:3,vars:0,consts:[["content",""],["cdkScrollable","",1,"mat-drawer-inner-container"]],template:function(i,r){i&1&&(Me(),h(0,"div",1,0),oe(2),p())},dependencies:[Pa],encapsulation:2,changeDetection:0})}return t})(),DI=(()=>{class t{_dir=u(Vt,{optional:!0});_element=u(q);_ngZone=u(ae);_changeDetectorRef=u(ye);_animationDisabled=Ye();_transitionsEnabled=!1;_allDrawers;_drawers=new pr;_content;_userContent;get start(){return this._start}get end(){return this._end}get autosize(){return this._autosize}set autosize(e){this._autosize=Ai(e)}_autosize=u(Ipe);get hasBackdrop(){return this._drawerHasBackdrop(this._start)||this._drawerHasBackdrop(this._end)}set hasBackdrop(e){this._backdropOverride=e==null?null:Ai(e)}_backdropOverride;backdropClick=new U;_start;_end;_left;_right;_destroyed=new z;_doCheckSubject=new z;_contentMargins={left:null,right:null};_contentMarginChanges=new z;get scrollable(){return this._userContent||this._content}_injector=u(de);constructor(){let e=u(qe),i=u(Xn);this._dir?.change.pipe(Te(this._destroyed)).subscribe(()=>{this._validateDrawers(),this.updateContentMargins()}),i.change().pipe(Te(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(He(this._allDrawers),Te(this._destroyed)).subscribe(e=>{this._drawers.reset(e.filter(i=>!i._container||i._container===this)),this._drawers.notifyOnChanges()}),this._drawers.changes.pipe(He(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(Rt(10),Te(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,i=0;if(this._left&&this._left.opened){if(this._left.mode=="side")e+=this._left._getWidth();else if(this._left.mode=="push"){let r=this._left._getWidth();e+=r,i-=r}}if(this._right&&this._right.opened){if(this._right.mode=="side")i+=this._right._getWidth();else if(this._right.mode=="push"){let r=this._right._getWidth();i+=r,e-=r}}e=e||null,i=i||null,(e!==this._contentMargins.left||i!==this._contentMargins.right)&&(this._contentMargins={left:e,right:i},this._ngZone.run(()=>this._contentMarginChanges.next(this._contentMargins)))}ngDoCheck(){this._autosize&&this._isPushed()&&this._ngZone.runOutsideAngular(()=>this._doCheckSubject.next())}_watchDrawerToggle(e){e._animationStarted.pipe(Te(this._drawers.changes)).subscribe(()=>{this.updateContentMargins(),this._changeDetectorRef.markForCheck()}),e.mode!=="side"&&e.openedChange.pipe(Te(this._drawers.changes)).subscribe(()=>this._setContainerClass(e.opened))}_watchDrawerPosition(e){e.onPositionChanged.pipe(Te(this._drawers.changes)).subscribe(()=>{pt({read:()=>this._validateDrawers()},{injector:this._injector})})}_watchDrawerMode(e){e._modeChanged.pipe(Te(Je(this._drawers.changes,this._destroyed))).subscribe(()=>{this.updateContentMargins(),this._changeDetectorRef.markForCheck()})}_setContainerClass(e){let i=this._element.nativeElement.classList,r="mat-drawer-container-has-open";e?i.add(r):i.remove(r)}_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(i){return new(i||t)};static \u0275cmp=E({type:t,selectors:[["mat-drawer-container"]],contentQueries:function(i,r,o){if(i&1&&(xe(o,WC,5),xe(o,wI,5)),i&2){let a;B(a=j())&&(r._content=a.first),B(a=j())&&(r._allDrawers=a)}},viewQuery:function(i,r){if(i&1&&ie(WC,5),i&2){let o;B(o=j())&&(r._userContent=o.first)}},hostAttrs:[1,"mat-drawer-container"],hostVars:2,hostBindings:function(i,r){i&2&&G("mat-drawer-container-explicit-backdrop",r._backdropOverride)},inputs:{autosize:"autosize",hasBackdrop:"hasBackdrop"},outputs:{backdropClick:"backdropClick"},exportAs:["matDrawerContainer"],features:[Ce([{provide:EI,useExisting:t}])],ngContentSelectors:Cpe,decls:4,vars:2,consts:[[1,"mat-drawer-backdrop",3,"mat-drawer-shown"],[1,"mat-drawer-backdrop",3,"click"]],template:function(i,r){i&1&&(Me(xpe),N(0,wpe,1,2,"div",0),oe(1),oe(2,1),N(3,Dpe,2,0,"mat-drawer-content")),i&2&&(L(r.hasBackdrop?0:-1),g(3),L(r._content?-1:3))},dependencies:[WC],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:.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 t})(),GC=(()=>{class t extends WC{static \u0275fac=(()=>{let e;return function(r){return(e||(e=fe(t)))(r||t)}})();static \u0275cmp=E({type:t,selectors:[["mat-sidenav-content"]],hostAttrs:[1,"mat-drawer-content","mat-sidenav-content"],features:[Ce([{provide:Pa,useExisting:t}]),le],ngContentSelectors:qC,decls:1,vars:0,template:function(i,r){i&1&&(Me(),oe(0))},encapsulation:2,changeDetection:0})}return t})(),MI=(()=>{class t extends wI{get fixedInViewport(){return this._fixedInViewport}set fixedInViewport(e){this._fixedInViewport=Ai(e)}_fixedInViewport=!1;get fixedTopGap(){return this._fixedTopGap}set fixedTopGap(e){this._fixedTopGap=Ln(e)}_fixedTopGap=0;get fixedBottomGap(){return this._fixedBottomGap}set fixedBottomGap(e){this._fixedBottomGap=Ln(e)}_fixedBottomGap=0;static \u0275fac=(()=>{let e;return function(r){return(e||(e=fe(t)))(r||t)}})();static \u0275cmp=E({type:t,selectors:[["mat-sidenav"]],hostAttrs:[1,"mat-drawer","mat-sidenav"],hostVars:16,hostBindings:function(i,r){i&2&&(X("tabIndex",r.mode!=="side"?"-1":null)("align",null),Dt("top",r.fixedInViewport?r.fixedTopGap:null,"px")("bottom",r.fixedInViewport?r.fixedBottomGap:null,"px"),G("mat-drawer-end",r.position==="end")("mat-drawer-over",r.mode==="over")("mat-drawer-push",r.mode==="push")("mat-drawer-side",r.mode==="side")("mat-sidenav-fixed",r.fixedInViewport))},inputs:{fixedInViewport:"fixedInViewport",fixedTopGap:"fixedTopGap",fixedBottomGap:"fixedBottomGap"},exportAs:["matSidenav"],features:[Ce([{provide:wI,useExisting:t}]),le],ngContentSelectors:qC,decls:3,vars:0,consts:[["content",""],["cdkScrollable","",1,"mat-drawer-inner-container"]],template:function(i,r){i&1&&(Me(),h(0,"div",1,0),oe(2),p())},dependencies:[Pa],encapsulation:2,changeDetection:0})}return t})(),t8=(()=>{class t extends DI{_allDrawers=void 0;_content=void 0;static \u0275fac=(()=>{let e;return function(r){return(e||(e=fe(t)))(r||t)}})();static \u0275cmp=E({type:t,selectors:[["mat-sidenav-container"]],contentQueries:function(i,r,o){if(i&1&&(xe(o,GC,5),xe(o,MI,5)),i&2){let a;B(a=j())&&(r._content=a.first),B(a=j())&&(r._allDrawers=a)}},hostAttrs:[1,"mat-drawer-container","mat-sidenav-container"],hostVars:2,hostBindings:function(i,r){i&2&&G("mat-drawer-container-explicit-backdrop",r._backdropOverride)},exportAs:["matSidenavContainer"],features:[Ce([{provide:EI,useExisting:t},{provide:DI,useExisting:t}]),le],ngContentSelectors:Mpe,decls:4,vars:2,consts:[[1,"mat-drawer-backdrop",3,"mat-drawer-shown"],[1,"mat-drawer-backdrop",3,"click"]],template:function(i,r){i&1&&(Me(Epe),N(0,kpe,1,2,"div",0),oe(1),oe(2,1),N(3,Spe,2,0,"mat-sidenav-content")),i&2&&(L(r.hasBackdrop?0:-1),g(3),L(r._content?-1:3))},dependencies:[GC],styles:[Tpe],encapsulation:2,changeDetection:0})}return t})(),i8=(()=>{class t{static \u0275fac=function(i){return new(i||t)};static \u0275mod=ee({type:t});static \u0275inj=J({imports:[we,vr,vr,we]})}return t})();function Rpe(t,n){t&1&&ai(0,"div",3)}function Ppe(t,n){t&1&&(ft(0,"div",4),ai(1,"div",5),vt())}var Fpe={min:8,max:100,speed:200,debounceTime:0,trickleSpeed:300,fadeOutSpeed:50,relative:!1,flat:!1,spinner:!1,direction:"ltr+",spinnerPosition:"right",trickleFunc:t=>t>=0&&t<20?10:t>=20&&t<50?4:t>=50&&t<80?2:t>=80&&t<99?.5:0},n8=new T("NG_PROGRESS_OPTIONS",{providedIn:"root",factory:()=>Fpe});var YC=(function(t){return t.START="START",t.COMPLETE="COMPLETE",t})(YC||{});function Npe(t){let n=ct(t)||0;return n<100&&n>=0?n:0}function Lpe(t){let n=ct(t)||100;return n>0&&n<=100?n:100}var QC=(()=>{let n=class n{constructor(){this.defaultOptions=u(n8),this.min=ne(this.defaultOptions.min,{transform:Npe}),this.max=ne(this.defaultOptions.max,{transform:Lpe}),this.speed=ne(this.defaultOptions.speed,{transform:ct}),this.trickleSpeed=ne(this.defaultOptions.trickleSpeed,{transform:ct}),this.fadeOutSpeed=ne(this.defaultOptions.fadeOutSpeed,{transform:ct}),this.debounceTime=ne(this.defaultOptions.debounceTime,{transform:ct}),this.trickleFunc=ne(this.defaultOptions.trickleFunc),this.config=Zt(()=>({max:this.max(),min:this.min(),speed:this.speed(),trickleSpeed:this.trickleSpeed(),fadeOutSpeed:this.fadeOutSpeed(),trickleFunc:this.trickleFunc(),debounceTime:this.debounceTime()})),this._progress=he(0),this._active=he(!1),this.active=Zt(()=>this._active()),this.progress=Zt(()=>this._progress()),this.started=bi(),this.completed=bi(),this._trigger=new tt(null);let i;Ar(r=>{let o=this.config();Ti(()=>{i=this._trigger.pipe(ce(a=>!!a),$e(a=>a===YC.START?qa(o.debounceTime).pipe($e(()=>this.onTrickling(o))):this.onComplete(o))).subscribe(),r(()=>i?.unsubscribe())})})}start(){this.started.emit(),this._trigger.next(YC.START),this._active.set(!0)}complete(){this._trigger.next(YC.COMPLETE)}inc(i){let r=this.progress();this.active()?(typeof i!="number"&&(i=this.config().trickleFunc(r)),this.set(r+i)):this.start()}set(i){this._active.set(!0),this._progress.set(this.clamp(i))}clamp(i){return Math.max(this.config().min,Math.min(this.config().max,i))}onTrickling(i){return this.active()||this.set(i.min),qa(0,i.trickleSpeed).pipe(Be(()=>this.inc()))}onComplete(i){return this.active()?(this.completed.emit(),Q({}).pipe(Be(()=>this._progress.set(100)),pa(i.speed+140),Be(()=>this._active.set(!1)),pa(i.fadeOutSpeed),Hr(()=>this._progress.set(0)),Te(pz(this.started)))):Fi}};n.\u0275fac=function(r){return new(r||n)},n.\u0275dir=F({type:n,selectors:[["","ngProgressRef",""]],inputs:{min:[1,"min"],max:[1,"max"],speed:[1,"speed"],trickleSpeed:[1,"trickleSpeed"],fadeOutSpeed:[1,"fadeOutSpeed"],debounceTime:[1,"debounceTime"],trickleFunc:[1,"trickleFunc"]},outputs:{started:"started",completed:"completed"},exportAs:["ngProgressRef"]});let t=n;return t})(),r8=(()=>{let n=class n{constructor(){this.config=u(n8),this.progressRef=u(QC,{host:!0,self:!0}),this.flat=ne(this.config.flat,{transform:V}),this.spinner=ne(this.config.spinner,{transform:V}),this.relative=ne(this.config.relative,{transform:V}),this.spinnerPosition=ne(this.config.spinnerPosition),this.direction=ne(this.config.direction),this.progressTransform=Zt(()=>`translate3d(${this.progressRef.progress()}%,0,0)`)}};n.\u0275fac=function(r){return new(r||n)},n.\u0275cmp=E({type:n,selectors:[["ng-progress"]],hostAttrs:["role","progressbar"],hostVars:12,hostBindings:function(r,o){r&2&&(X("spinnerPosition",o.spinnerPosition())("direction",o.direction()),Dt("--_ng-progress-speed",o.progressRef.speed()+"ms")("--_ng-progress-fade-out-speed",o.progressRef.fadeOutSpeed()+"ms"),G("ng-progress-bar",!0)("ng-progress-bar-active",o.progressRef.active())("ng-progress-bar-relative",o.relative()))},inputs:{flat:[1,"flat"],spinner:[1,"spinner"],relative:[1,"relative"],spinnerPosition:[1,"spinnerPosition"],direction:[1,"direction"]},exportAs:["ngProgress"],features:[ym([{directive:QC,inputs:["min","min","max","max","speed","speed","trickleSpeed","trickleSpeed","fadeOutSpeed","fadeOutSpeed","debounceTime","debounceTime"],outputs:["started","started","completed","completed"]}])],decls:5,vars:4,consts:[[1,"ng-progress-bar-wrapper"],[1,"ng-bar-placeholder"],[1,"ng-bar"],[1,"ng-meteor"],[1,"ng-spinner"],[1,"ng-spinner-icon"]],template:function(r,o){r&1&&(ft(0,"div",0)(1,"div",1)(2,"div",2),N(3,Rpe,1,0,"div",3),vt()(),N(4,Ppe,2,0,"div",4),vt()),r&2&&(g(2),Dt("transform",o.progressTransform()),g(),L(o.flat()?-1:3),g(),L(o.spinner()?4:-1))},styles:['[_nghost-%COMP%]{--_ng-progress-thickness: var(--ng-progress-thickness, 2);--_ng-progress-thickness-px: calc(var(--_ng-progress-thickness) * 1px);--_ng-progress-thickness-add-one: calc(var(--_ng-progress-thickness) + 1);--_ng-progress-meteor-position-px: calc(var(--_ng-progress-thickness-add-one) * -1px);--_ng-progress-color: var(--ng-progress-color, #1B95E0);--_ng-progress-holder-color: var(--ng-progress-holder-color, transparent);--_ng-progress-ease: var(--ng-progress-ease, linear);--_ng-progress-spinner-thickness: var(--ng-progress-spinner-thickness, 2);--_ng-progress-spinner-thickness-px: calc(var(--_ng-progress-spinner-thickness) * 1px);--_ng-progress-spinner-spacing: var(--ng-progress-spinner-spacing, 15);--_ng-progress-spinner-spacing-px: calc(var(--_ng-progress-spinner-spacing) * 1px);--_ng-progress-spinner-size: var(--ng-progress-spinner-size, 18);--_ng-progress-spinner-size-px: calc(var(--_ng-progress-spinner-size) * 1px);--_ng-progress-spinner-speed: var(--ng-progress-spinner-speed, .25s);z-index:999999;pointer-events:none}.ng-progress-bar-active[_nghost-%COMP%] .ng-progress-bar-wrapper[_ngcontent-%COMP%]{filter:alpha(opacity=100);opacity:1;transition:none}.ng-progress-bar-active[_nghost-%COMP%] .ng-bar[_ngcontent-%COMP%]{transition:all var(--_ng-progress-speed) var(--_ng-progress-ease)}.ng-progress-bar-relative[_nghost-%COMP%] .ng-progress-bar-wrapper[_ngcontent-%COMP%]{position:relative}[direction="ltr+"][_nghost-%COMP%] .ng-meteor[_ngcontent-%COMP%], [direction=ltr-][_nghost-%COMP%] .ng-meteor[_ngcontent-%COMP%]{rotate:calc(var(--_ng-progress-thickness-add-one) * 1deg)}[direction="ltr+"][_nghost-%COMP%] .ng-bar[_ngcontent-%COMP%], [direction="rtl+"][_nghost-%COMP%] .ng-bar[_ngcontent-%COMP%]{margin-left:-100%}[direction="ltr+"][_nghost-%COMP%] .ng-meteor[_ngcontent-%COMP%], [direction="rtl+"][_nghost-%COMP%] .ng-meteor[_ngcontent-%COMP%]{right:0}[direction="ltr+"][_nghost-%COMP%] .ng-meteor[_ngcontent-%COMP%], [direction=rtl-][_nghost-%COMP%] .ng-meteor[_ngcontent-%COMP%]{top:var(--_ng-progress-meteor-position-px)}[direction=ltr-][_nghost-%COMP%] .ng-meteor[_ngcontent-%COMP%], [direction="rtl+"][_nghost-%COMP%] .ng-meteor[_ngcontent-%COMP%]{bottom:var(--_ng-progress-meteor-position-px)}[direction=ltr-][_nghost-%COMP%] .ng-bar-placeholder[_ngcontent-%COMP%], [direction="rtl+"][_nghost-%COMP%] .ng-bar-placeholder[_ngcontent-%COMP%]{transform:rotate(180deg)}[direction=ltr-][_nghost-%COMP%] .ng-spinner-icon[_ngcontent-%COMP%], [direction="rtl+"][_nghost-%COMP%] .ng-spinner-icon[_ngcontent-%COMP%]{animation-direction:reverse}[direction="rtl+"][_nghost-%COMP%] .ng-meteor[_ngcontent-%COMP%], [direction=rtl-][_nghost-%COMP%] .ng-meteor[_ngcontent-%COMP%]{rotate:calc(var(--_ng-progress-thickness-add-one) * -1deg)}[_nghost-%COMP%] .ng-spinner[_ngcontent-%COMP%]{top:var(--_ng-progress-spinner-spacing-px)}[spinnerPosition=left][_nghost-%COMP%] .ng-spinner[_ngcontent-%COMP%]{left:var(--_ng-progress-spinner-spacing-px)}[spinnerPosition=right][_nghost-%COMP%] .ng-spinner[_ngcontent-%COMP%]{right:var(--_ng-progress-spinner-spacing-px)}.ng-progress-bar-wrapper[_ngcontent-%COMP%]{position:fixed;z-index:999999;top:0;left:0;width:100%;transform:scale(1);filter:alpha(opacity=0);opacity:0;transition:opacity var(--_ng-progress-fade-out-speed) linear}.ng-bar-placeholder[_ngcontent-%COMP%]{position:absolute;height:var(--_ng-progress-thickness-px);width:100%}.ng-bar[_ngcontent-%COMP%]{width:100%;height:100%;transform:translate(-100%,0,0);background:var(--_ng-progress-color)}.ng-meteor[_ngcontent-%COMP%]{display:block;position:absolute;width:100px;height:100%;opacity:1;box-shadow:0 0 10px var(--_ng-progress-color),0 0 5px var(--_ng-progress-color)}.ng-spinner[_ngcontent-%COMP%]{position:absolute;display:block;z-index:1031;top:10px}.ng-spinner-icon[_ngcontent-%COMP%]{box-sizing:border-box;animation:_ngcontent-%COMP%_spinner-animation var(--_ng-progress-spinner-speed) linear infinite;border-style:solid;border-color:transparent;border-radius:50%;border-top-color:var(--_ng-progress-color);border-left-color:var(--_ng-progress-color);width:var(--_ng-progress-spinner-size-px);height:var(--_ng-progress-spinner-size-px);border-width:var(--_ng-progress-spinner-thickness-px)}@keyframes _ngcontent-%COMP%_spinner-animation{0%{transform:rotate(0)}to{transform:rotate(360deg)}}'],changeDetection:0});let t=n;return t})();var Vpe={minDuration:0,startEvents:[ps],completeEvents:[vi,qo,tc]},Bpe=new T("NG_PROGRESS_ROUTER_OPTIONS",{providedIn:"root",factory:()=>Vpe});function o8(t,n){return n.some(e=>t instanceof e)}var jpe=(()=>{let n=class n{constructor(){this.router=u(Re),this.config=u(Bpe),this.progressRef=u(QC,{host:!0,self:!0});let i;this.router.events.pipe(ce(r=>o8(r,[...this.config.startEvents,...this.config.completeEvents])),se(r=>o8(r,this.config.startEvents)),Be(r=>{clearTimeout(i),r?this.progressRef.start():i=setTimeout(()=>{this.progressRef.complete()},this.config.minDuration)}),ku()).subscribe()}};n.\u0275fac=function(r){return new(r||n)},n.\u0275dir=F({type:n});let t=n;return t})(),a8=(()=>{let n=class n extends jpe{};n.\u0275fac=(()=>{let i;return function(o){return(i||(i=fe(n)))(o||n)}})(),n.\u0275dir=F({type:n,selectors:[["ng-progress","ngProgressRouter",""]],features:[le]});let t=n;return t})();var Hpe=["*",[["mat-toolbar-row"]]],zpe=["*","mat-toolbar-row"],Upe=(()=>{class t{static \u0275fac=function(i){return new(i||t)};static \u0275dir=F({type:t,selectors:[["mat-toolbar-row"]],hostAttrs:[1,"mat-toolbar-row"],exportAs:["matToolbarRow"]})}return t})(),KC=(()=>{class t{_elementRef=u(q);_platform=u(qe);_document=u(ge);color;_toolbarRows;constructor(){}ngAfterViewInit(){this._platform.isBrowser&&(this._checkToolbarMixedModes(),this._toolbarRows.changes.subscribe(()=>this._checkToolbarMixedModes()))}_checkToolbarMixedModes(){this._toolbarRows.length}static \u0275fac=function(i){return new(i||t)};static \u0275cmp=E({type:t,selectors:[["mat-toolbar"]],contentQueries:function(i,r,o){if(i&1&&xe(o,Upe,5),i&2){let a;B(a=j())&&(r._toolbarRows=a)}},hostAttrs:[1,"mat-toolbar"],hostVars:6,hostBindings:function(i,r){i&2&&(it(r.color?"mat-"+r.color:""),G("mat-toolbar-multiple-rows",r._toolbarRows.length>0)("mat-toolbar-single-row",r._toolbarRows.length===0))},inputs:{color:"color"},exportAs:["matToolbar"],ngContentSelectors:zpe,decls:2,vars:0,template:function(i,r){i&1&&(Me(Hpe),oe(0),oe(1,1))},styles:[`.mat-toolbar{background:var(--mat-toolbar-container-background-color, var(--mat-sys-surface));color:var(--mat-toolbar-container-text-color, var(--mat-sys-on-surface))}.mat-toolbar,.mat-toolbar h1,.mat-toolbar h2,.mat-toolbar h3,.mat-toolbar h4,.mat-toolbar h5,.mat-toolbar h6{font-family:var(--mat-toolbar-title-text-font, var(--mat-sys-title-large-font));font-size:var(--mat-toolbar-title-text-size, var(--mat-sys-title-large-size));line-height:var(--mat-toolbar-title-text-line-height, var(--mat-sys-title-large-line-height));font-weight:var(--mat-toolbar-title-text-weight, var(--mat-sys-title-large-weight));letter-spacing:var(--mat-toolbar-title-text-tracking, var(--mat-sys-title-large-tracking));margin:0}@media(forced-colors: active){.mat-toolbar{outline:solid 1px}}.mat-toolbar .mat-form-field-underline,.mat-toolbar .mat-form-field-ripple,.mat-toolbar .mat-focused .mat-form-field-ripple{background-color:currentColor}.mat-toolbar .mat-form-field-label,.mat-toolbar .mat-focused .mat-form-field-label,.mat-toolbar .mat-select-value,.mat-toolbar .mat-select-arrow,.mat-toolbar .mat-form-field.mat-focused .mat-select-arrow{color:inherit}.mat-toolbar .mat-input-element{caret-color:currentColor}.mat-toolbar .mat-mdc-button-base.mat-mdc-button-base.mat-unthemed{--mat-button-text-label-text-color: var(--mat-toolbar-container-text-color, var(--mat-sys-on-surface));--mat-button-outlined-label-text-color: var(--mat-toolbar-container-text-color, var(--mat-sys-on-surface))}.mat-toolbar-row,.mat-toolbar-single-row{display:flex;box-sizing:border-box;padding:0 16px;width:100%;flex-direction:row;align-items:center;white-space:nowrap;height:var(--mat-toolbar-standard-height, 64px)}@media(max-width: 599px){.mat-toolbar-row,.mat-toolbar-single-row{height:var(--mat-toolbar-mobile-height, 56px)}}.mat-toolbar-multiple-rows{display:flex;box-sizing:border-box;flex-direction:column;width:100%;min-height:var(--mat-toolbar-standard-height, 64px)}@media(max-width: 599px){.mat-toolbar-multiple-rows{min-height:var(--mat-toolbar-mobile-height, 56px)}} +`],encapsulation:2,changeDetection:0})}return t})();var ZC=(()=>{class t{static \u0275fac=function(i){return new(i||t)};static \u0275mod=ee({type:t});static \u0275inj=J({imports:[we,we]})}return t})();var l8=[["requestFullscreen","exitFullscreen","fullscreenElement","fullscreenEnabled","fullscreenchange","fullscreenerror"],["webkitRequestFullscreen","webkitExitFullscreen","webkitFullscreenElement","webkitFullscreenEnabled","webkitfullscreenchange","webkitfullscreenerror"],["webkitRequestFullScreen","webkitCancelFullScreen","webkitCurrentFullScreenElement","webkitCancelFullScreen","webkitfullscreenchange","webkitfullscreenerror"],["mozRequestFullScreen","mozCancelFullScreen","mozFullScreenElement","mozFullScreenEnabled","mozfullscreenchange","mozfullscreenerror"],["msRequestFullscreen","msExitFullscreen","msFullscreenElement","msFullscreenEnabled","MSFullscreenChange","MSFullscreenError"]],wl=(()=>{if(typeof document>"u")return!1;let t=l8[0],n={};for(let e of l8)if(e?.[1]in document){for(let[r,o]of e.entries())n[t[r]]=o;return n}return!1})(),c8={change:wl.fullscreenchange,error:wl.fullscreenerror},So={request(t=document.documentElement,n){return new Promise((e,i)=>{let r=()=>{So.off("change",r),e()};So.on("change",r);let o=t[wl.requestFullscreen](n);o instanceof Promise&&o.then(r).catch(i)})},exit(){return new Promise((t,n)=>{if(!So.isFullscreen){t();return}let e=()=>{So.off("change",e),t()};So.on("change",e);let i=document[wl.exitFullscreen]();i instanceof Promise&&i.then(e).catch(n)})},toggle(t,n){return So.isFullscreen?So.exit():So.request(t,n)},onchange(t){So.on("change",t)},onerror(t){So.on("error",t)},on(t,n){let e=c8[t];e&&document.addEventListener(e,n,!1)},off(t,n){let e=c8[t];e&&document.removeEventListener(e,n,!1)},raw:wl};Object.defineProperties(So,{isFullscreen:{get:()=>!!document[wl.fullscreenElement]},element:{enumerable:!0,get:()=>document[wl.fullscreenElement]??void 0},isEnabled:{enumerable:!0,get:()=>!!document[wl.fullscreenEnabled]}});wl||(So={isEnabled:!1});var kI=So;function $pe(t,n){t&1&&(ft(0,"span",2),_(1,"Talent Management"),vt())}var XC=(()=>{let n=class n{constructor(){this.showName=ne(!0)}};n.\u0275fac=function(r){return new(r||n)},n.\u0275cmp=E({type:n,selectors:[["app-branding"]],inputs:{showName:[1,"showName"]},decls:3,vars:1,consts:[["href","/",1,"branding"],["src","images/matero.png","alt","logo",1,"branding-logo"],[1,"branding-name"]],template:function(r,o){r&1&&(ft(0,"a",0),ai(1,"img",1),N(2,$pe,2,0,"span",2),vt()),r&2&&(g(2),L(o.showName()?2:-1))},styles:[".branding[_ngcontent-%COMP%]{display:flex;align-items:center;margin:0 .5rem;text-decoration:none;white-space:nowrap;color:inherit;border-radius:50rem}.branding-logo[_ngcontent-%COMP%]{width:2rem;height:2rem;border-radius:50rem}.branding-name[_ngcontent-%COMP%]{margin:0 .5rem;font-size:1rem;font-weight:500}"]});let t=n;return t})();var d8=(()=>{let n=class n{};n.\u0275fac=function(r){return new(r||n)},n.\u0275cmp=E({type:n,selectors:[["app-github-button"]],decls:3,vars:0,consts:[["matIconButton","","href","https://github.com/ng-matero/ng-matero","target","_blank"],["viewBox","0 0 16 16"],["fill","currentColor","d",`M7.999,0.431c-4.285,0-7.76,3.474-7.76,7.761 c0,3.428,2.223,6.337,5.307,7.363c0.388, + 0.071,0.53-0.168,0.53-0.374c0-0.184-0.007-0.672-0.01-1.32 c-2.159, + 0.469-2.614-1.04-2.614-1.04c-0.353-0.896-0.862-1.135-0.862-1.135c-0.705-0.481, + 0.053-0.472,0.053-0.472 c0.779,0.055,1.189,0.8,1.189,0.8c0.692,1.186,1.816,0.843,2.258, + 0.645c0.071-0.502,0.271-0.843,0.493-1.037 C4.86,11.425,3.049,10.76,3.049,7.786c0-0.847, + 0.302-1.54,0.799-2.082C3.768,5.507,3.501,4.718,3.924,3.65 c0,0,0.652-0.209, + 2.134,0.796C6.677,4.273,7.34,4.187,8,4.184c0.659,0.003,1.323,0.089,1.943, + 0.261 c1.482-1.004,2.132-0.796,2.132-0.796c0.423,1.068,0.157,1.857,0.077,2.054c0.497, + 0.542,0.798,1.235,0.798,2.082 c0,2.981-1.814,3.637-3.543,3.829c0.279,0.24,0.527,0.713, + 0.527,1.437c0,1.037-0.01,1.874-0.01,2.129 c0,0.208,0.14,0.449,0.534,0.373c3.081-1.028, + 5.302-3.935,5.302-7.362C15.76,3.906,12.285,0.431,7.999,0.431z`]],template:function(r,o){r&1&&(h(0,"a",0),Gt(),h(1,"svg",1),k(2,"path",2),p()())},dependencies:[ze,ti],encapsulation:2});let t=n;return t})();var u8="mat-badge-content",Wpe=(()=>{class t{static \u0275fac=function(i){return new(i||t)};static \u0275cmp=E({type:t,selectors:[["ng-component"]],decls:0,vars:0,template:function(i,r){},styles:[`.mat-badge{position:relative}.mat-badge.mat-badge{overflow:visible}.mat-badge-content{position:absolute;text-align:center;display:inline-block;transition:transform 200ms ease-in-out;transform:scale(0.6);overflow:hidden;white-space:nowrap;text-overflow:ellipsis;box-sizing:border-box;pointer-events:none;background-color:var(--mat-badge-background-color, var(--mat-sys-error));color:var(--mat-badge-text-color, var(--mat-sys-on-error));font-family:var(--mat-badge-text-font, var(--mat-sys-label-small-font));font-weight:var(--mat-badge-text-weight, var(--mat-sys-label-small-weight));border-radius:var(--mat-badge-container-shape, var(--mat-sys-corner-full))}.mat-badge-above .mat-badge-content{bottom:100%}.mat-badge-below .mat-badge-content{top:100%}.mat-badge-before .mat-badge-content{right:100%}[dir=rtl] .mat-badge-before .mat-badge-content{right:auto;left:100%}.mat-badge-after .mat-badge-content{left:100%}[dir=rtl] .mat-badge-after .mat-badge-content{left:auto;right:100%}@media(forced-colors: active){.mat-badge-content{outline:solid 1px;border-radius:0}}.mat-badge-disabled .mat-badge-content{background-color:var(--mat-badge-disabled-state-background-color, color-mix(in srgb, var(--mat-sys-error) 38%, transparent));color:var(--mat-badge-disabled-state-text-color, var(--mat-sys-on-error))}.mat-badge-hidden .mat-badge-content{display:none}.ng-animate-disabled .mat-badge-content,.mat-badge-content._mat-animation-noopable{transition:none}.mat-badge-content.mat-badge-active{transform:none}.mat-badge-small .mat-badge-content{width:var(--mat-badge-legacy-small-size-container-size, unset);height:var(--mat-badge-legacy-small-size-container-size, unset);min-width:var(--mat-badge-small-size-container-size, 6px);min-height:var(--mat-badge-small-size-container-size, 6px);line-height:var(--mat-badge-small-size-line-height, 6px);padding:var(--mat-badge-small-size-container-padding, 0);font-size:var(--mat-badge-small-size-text-size, 0);margin:var(--mat-badge-small-size-container-offset, -6px 0)}.mat-badge-small.mat-badge-overlap .mat-badge-content{margin:var(--mat-badge-small-size-container-overlap-offset, -6px)}.mat-badge-medium .mat-badge-content{width:var(--mat-badge-legacy-container-size, unset);height:var(--mat-badge-legacy-container-size, unset);min-width:var(--mat-badge-container-size, 16px);min-height:var(--mat-badge-container-size, 16px);line-height:var(--mat-badge-line-height, 16px);padding:var(--mat-badge-container-padding, 0 4px);font-size:var(--mat-badge-text-size, var(--mat-sys-label-small-size));margin:var(--mat-badge-container-offset, -12px 0)}.mat-badge-medium.mat-badge-overlap .mat-badge-content{margin:var(--mat-badge-container-overlap-offset, -12px)}.mat-badge-large .mat-badge-content{width:var(--mat-badge-legacy-large-size-container-size, unset);height:var(--mat-badge-legacy-large-size-container-size, unset);min-width:var(--mat-badge-large-size-container-size, 16px);min-height:var(--mat-badge-large-size-container-size, 16px);line-height:var(--mat-badge-large-size-line-height, 16px);padding:var(--mat-badge-large-size-container-padding, 0 4px);font-size:var(--mat-badge-large-size-text-size, var(--mat-sys-label-small-size));margin:var(--mat-badge-large-size-container-offset, -12px 0)}.mat-badge-large.mat-badge-overlap .mat-badge-content{margin:var(--mat-badge-large-size-container-overlap-offset, -12px)} +`],encapsulation:2,changeDetection:0})}return t})(),m8=(()=>{class t{_ngZone=u(ae);_elementRef=u(q);_ariaDescriber=u(Xm);_renderer=u(je);_animationsDisabled=Ye();_idGenerator=u(Ze);get color(){return this._color}set color(e){this._setColor(e),this._color=e}_color="primary";overlap=!0;disabled;position="above after";get content(){return this._content}set content(e){this._updateRenderedContent(e)}_content;get description(){return this._description}set description(e){this._updateDescription(e)}_description;size="medium";hidden;_badgeElement;_inlineBadgeDescription;_isInitialized=!1;_interactivityChecker=u(ac);_document=u(ge);constructor(){let e=u(ut);e.load(Wpe),e.load(Qr)}isAbove(){return this.position.indexOf("below")===-1}isAfter(){return this.position.indexOf("before")===-1}getBadgeElement(){return this._badgeElement}ngOnInit(){this._clearExistingBadges(),this.content&&!this._badgeElement&&(this._badgeElement=this._createBadgeElement(),this._updateRenderedContent(this.content)),this._isInitialized=!0}ngOnDestroy(){this._renderer.destroyNode&&(this._renderer.destroyNode(this._badgeElement),this._inlineBadgeDescription?.remove()),this._ariaDescriber.removeDescription(this._elementRef.nativeElement,this.description)}_isHostInteractive(){return this._interactivityChecker.isFocusable(this._elementRef.nativeElement,{ignoreVisibility:!0})}_createBadgeElement(){let e=this._renderer.createElement("span"),i="mat-badge-active";return e.setAttribute("id",this._idGenerator.getId("mat-badge-content-")),e.setAttribute("aria-hidden","true"),e.classList.add(u8),this._animationsDisabled&&e.classList.add("_mat-animation-noopable"),this._elementRef.nativeElement.appendChild(e),typeof requestAnimationFrame=="function"&&!this._animationsDisabled?this._ngZone.runOutsideAngular(()=>{requestAnimationFrame(()=>{e.classList.add(i)})}):e.classList.add(i),e}_updateRenderedContent(e){let i=`${e??""}`.trim();this._isInitialized&&i&&!this._badgeElement&&(this._badgeElement=this._createBadgeElement()),this._badgeElement&&(this._badgeElement.textContent=i),this._content=i}_updateDescription(e){this._ariaDescriber.removeDescription(this._elementRef.nativeElement,this.description),(!e||this._isHostInteractive())&&this._removeInlineDescription(),this._description=e,this._isHostInteractive()?this._ariaDescriber.describe(this._elementRef.nativeElement,e):this._updateInlineDescription()}_updateInlineDescription(){this._inlineBadgeDescription||(this._inlineBadgeDescription=this._document.createElement("span"),this._inlineBadgeDescription.classList.add("cdk-visually-hidden")),this._inlineBadgeDescription.textContent=this.description,this._badgeElement?.appendChild(this._inlineBadgeDescription)}_removeInlineDescription(){this._inlineBadgeDescription?.remove(),this._inlineBadgeDescription=void 0}_setColor(e){let i=this._elementRef.nativeElement.classList;i.remove(`mat-badge-${this._color}`),e&&i.add(`mat-badge-${e}`)}_clearExistingBadges(){let e=this._elementRef.nativeElement.querySelectorAll(`:scope > .${u8}`);for(let i of Array.from(e))i!==this._badgeElement&&i.remove()}static \u0275fac=function(i){return new(i||t)};static \u0275dir=F({type:t,selectors:[["","matBadge",""]],hostAttrs:[1,"mat-badge"],hostVars:20,hostBindings:function(i,r){i&2&&G("mat-badge-overlap",r.overlap)("mat-badge-above",r.isAbove())("mat-badge-below",!r.isAbove())("mat-badge-before",!r.isAfter())("mat-badge-after",r.isAfter())("mat-badge-small",r.size==="small")("mat-badge-medium",r.size==="medium")("mat-badge-large",r.size==="large")("mat-badge-hidden",r.hidden||!r.content)("mat-badge-disabled",r.disabled)},inputs:{color:[0,"matBadgeColor","color"],overlap:[2,"matBadgeOverlap","overlap",V],disabled:[2,"matBadgeDisabled","disabled",V],position:[0,"matBadgePosition","position"],content:[0,"matBadge","content"],description:[0,"matBadgeDescription","description"],size:[0,"matBadgeSize","size"],hidden:[2,"matBadgeHidden","hidden",V]}})}return t})(),h8=(()=>{class t{static \u0275fac=function(i){return new(i||t)};static \u0275mod=ee({type:t});static \u0275inj=J({imports:[ll,we,we]})}return t})();var Ha=(()=>{class t{get vertical(){return this._vertical}set vertical(e){this._vertical=Ai(e)}_vertical=!1;get inset(){return this._inset}set inset(e){this._inset=Ai(e)}_inset=!1;static \u0275fac=function(i){return new(i||t)};static \u0275cmp=E({type:t,selectors:[["mat-divider"]],hostAttrs:["role","separator",1,"mat-divider"],hostVars:7,hostBindings:function(i,r){i&2&&(X("aria-orientation",r.vertical?"vertical":"horizontal"),G("mat-divider-vertical",r.vertical)("mat-divider-horizontal",!r.vertical)("mat-divider-inset",r.inset))},inputs:{vertical:"vertical",inset:"inset"},decls:0,vars:0,template:function(i,r){},styles:[`.mat-divider{display:block;margin:0;border-top-style:solid;border-top-color:var(--mat-divider-color, var(--mat-sys-outline-variant));border-top-width:var(--mat-divider-width, 1px)}.mat-divider.mat-divider-vertical{border-top:0;border-right-style:solid;border-right-color:var(--mat-divider-color, var(--mat-sys-outline-variant));border-right-width:var(--mat-divider-width, 1px)}.mat-divider.mat-divider-inset{margin-left:80px}[dir=rtl] .mat-divider.mat-divider-inset{margin-left:auto;margin-right:80px} +`],encapsulation:2,changeDetection:0})}return t})(),sa=(()=>{class t{static \u0275fac=function(i){return new(i||t)};static \u0275mod=ee({type:t});static \u0275inj=J({imports:[we,we]})}return t})();var p8=["*"],f8=`.mdc-list{margin:0;padding:8px 0;list-style-type:none}.mdc-list:focus{outline:none}.mdc-list-item{display:flex;position:relative;justify-content:flex-start;overflow:hidden;padding:0;align-items:stretch;cursor:pointer;padding-left:16px;padding-right:16px;background-color:var(--mat-list-list-item-container-color, transparent);border-radius:var(--mat-list-list-item-container-shape, var(--mat-sys-corner-none))}.mdc-list-item.mdc-list-item--selected{background-color:var(--mat-list-list-item-selected-container-color)}.mdc-list-item:focus{outline:0}.mdc-list-item.mdc-list-item--disabled{cursor:auto}.mdc-list-item.mdc-list-item--with-one-line{height:var(--mat-list-list-item-one-line-container-height, 48px)}.mdc-list-item.mdc-list-item--with-one-line .mdc-list-item__start{align-self:center;margin-top:0}.mdc-list-item.mdc-list-item--with-one-line .mdc-list-item__end{align-self:center;margin-top:0}.mdc-list-item.mdc-list-item--with-two-lines{height:var(--mat-list-list-item-two-line-container-height, 64px)}.mdc-list-item.mdc-list-item--with-two-lines .mdc-list-item__start{align-self:flex-start;margin-top:16px}.mdc-list-item.mdc-list-item--with-two-lines .mdc-list-item__end{align-self:center;margin-top:0}.mdc-list-item.mdc-list-item--with-three-lines{height:var(--mat-list-list-item-three-line-container-height, 88px)}.mdc-list-item.mdc-list-item--with-three-lines .mdc-list-item__start{align-self:flex-start;margin-top:16px}.mdc-list-item.mdc-list-item--with-three-lines .mdc-list-item__end{align-self:flex-start;margin-top:16px}.mdc-list-item.mdc-list-item--selected::before,.mdc-list-item.mdc-list-item--selected:focus::before,.mdc-list-item:not(.mdc-list-item--selected):focus::before{position:absolute;box-sizing:border-box;width:100%;height:100%;top:0;left:0;content:"";pointer-events:none}a.mdc-list-item{color:inherit;text-decoration:none}.mdc-list-item__start{fill:currentColor;flex-shrink:0;pointer-events:none}.mdc-list-item--with-leading-icon .mdc-list-item__start{color:var(--mat-list-list-item-leading-icon-color, var(--mat-sys-on-surface-variant));width:var(--mat-list-list-item-leading-icon-size, 24px);height:var(--mat-list-list-item-leading-icon-size, 24px);margin-left:16px;margin-right:32px}[dir=rtl] .mdc-list-item--with-leading-icon .mdc-list-item__start{margin-left:32px;margin-right:16px}.mdc-list-item--with-leading-icon:hover .mdc-list-item__start{color:var(--mat-list-list-item-hover-leading-icon-color)}.mdc-list-item--with-leading-avatar .mdc-list-item__start{width:var(--mat-list-list-item-leading-avatar-size, 40px);height:var(--mat-list-list-item-leading-avatar-size, 40px);margin-left:16px;margin-right:16px;border-radius:50%}.mdc-list-item--with-leading-avatar .mdc-list-item__start,[dir=rtl] .mdc-list-item--with-leading-avatar .mdc-list-item__start{margin-left:16px;margin-right:16px;border-radius:50%}.mdc-list-item__end{flex-shrink:0;pointer-events:none}.mdc-list-item--with-trailing-meta .mdc-list-item__end{font-family:var(--mat-list-list-item-trailing-supporting-text-font, var(--mat-sys-label-small-font));line-height:var(--mat-list-list-item-trailing-supporting-text-line-height, var(--mat-sys-label-small-line-height));font-size:var(--mat-list-list-item-trailing-supporting-text-size, var(--mat-sys-label-small-size));font-weight:var(--mat-list-list-item-trailing-supporting-text-weight, var(--mat-sys-label-small-weight));letter-spacing:var(--mat-list-list-item-trailing-supporting-text-tracking, var(--mat-sys-label-small-tracking))}.mdc-list-item--with-trailing-icon .mdc-list-item__end{color:var(--mat-list-list-item-trailing-icon-color, var(--mat-sys-on-surface-variant));width:var(--mat-list-list-item-trailing-icon-size, 24px);height:var(--mat-list-list-item-trailing-icon-size, 24px)}.mdc-list-item--with-trailing-icon:hover .mdc-list-item__end{color:var(--mat-list-list-item-hover-trailing-icon-color)}.mdc-list-item.mdc-list-item--with-trailing-meta .mdc-list-item__end{color:var(--mat-list-list-item-trailing-supporting-text-color, var(--mat-sys-on-surface-variant))}.mdc-list-item--selected.mdc-list-item--with-trailing-icon .mdc-list-item__end{color:var(--mat-list-list-item-selected-trailing-icon-color, var(--mat-sys-primary))}.mdc-list-item__content{text-overflow:ellipsis;white-space:nowrap;overflow:hidden;align-self:center;flex:1;pointer-events:none}.mdc-list-item--with-two-lines .mdc-list-item__content,.mdc-list-item--with-three-lines .mdc-list-item__content{align-self:stretch}.mdc-list-item__primary-text{text-overflow:ellipsis;white-space:nowrap;overflow:hidden;color:var(--mat-list-list-item-label-text-color, var(--mat-sys-on-surface));font-family:var(--mat-list-list-item-label-text-font, var(--mat-sys-body-large-font));line-height:var(--mat-list-list-item-label-text-line-height, var(--mat-sys-body-large-line-height));font-size:var(--mat-list-list-item-label-text-size, var(--mat-sys-body-large-size));font-weight:var(--mat-list-list-item-label-text-weight, var(--mat-sys-body-large-weight));letter-spacing:var(--mat-list-list-item-label-text-tracking, var(--mat-sys-body-large-tracking))}.mdc-list-item:hover .mdc-list-item__primary-text{color:var(--mat-list-list-item-hover-label-text-color, var(--mat-sys-on-surface))}.mdc-list-item:focus .mdc-list-item__primary-text{color:var(--mat-list-list-item-focus-label-text-color, var(--mat-sys-on-surface))}.mdc-list-item--with-two-lines .mdc-list-item__primary-text,.mdc-list-item--with-three-lines .mdc-list-item__primary-text{display:block;margin-top:0;line-height:normal;margin-bottom:-20px}.mdc-list-item--with-two-lines .mdc-list-item__primary-text::before,.mdc-list-item--with-three-lines .mdc-list-item__primary-text::before{display:inline-block;width:0;height:28px;content:"";vertical-align:0}.mdc-list-item--with-two-lines .mdc-list-item__primary-text::after,.mdc-list-item--with-three-lines .mdc-list-item__primary-text::after{display:inline-block;width:0;height:20px;content:"";vertical-align:-20px}.mdc-list-item__secondary-text{text-overflow:ellipsis;white-space:nowrap;overflow:hidden;display:block;margin-top:0;color:var(--mat-list-list-item-supporting-text-color, var(--mat-sys-on-surface-variant));font-family:var(--mat-list-list-item-supporting-text-font, var(--mat-sys-body-medium-font));line-height:var(--mat-list-list-item-supporting-text-line-height, var(--mat-sys-body-medium-line-height));font-size:var(--mat-list-list-item-supporting-text-size, var(--mat-sys-body-medium-size));font-weight:var(--mat-list-list-item-supporting-text-weight, var(--mat-sys-body-medium-weight));letter-spacing:var(--mat-list-list-item-supporting-text-tracking, var(--mat-sys-body-medium-tracking))}.mdc-list-item__secondary-text::before{display:inline-block;width:0;height:20px;content:"";vertical-align:0}.mdc-list-item--with-three-lines .mdc-list-item__secondary-text{white-space:normal;line-height:20px}.mdc-list-item--with-overline .mdc-list-item__secondary-text{white-space:nowrap;line-height:auto}.mdc-list-item--with-leading-radio.mdc-list-item,.mdc-list-item--with-leading-checkbox.mdc-list-item,.mdc-list-item--with-leading-icon.mdc-list-item,.mdc-list-item--with-leading-avatar.mdc-list-item{padding-left:0;padding-right:16px}[dir=rtl] .mdc-list-item--with-leading-radio.mdc-list-item,[dir=rtl] .mdc-list-item--with-leading-checkbox.mdc-list-item,[dir=rtl] .mdc-list-item--with-leading-icon.mdc-list-item,[dir=rtl] .mdc-list-item--with-leading-avatar.mdc-list-item{padding-left:16px;padding-right:0}.mdc-list-item--with-leading-radio.mdc-list-item--with-two-lines .mdc-list-item__primary-text,.mdc-list-item--with-leading-checkbox.mdc-list-item--with-two-lines .mdc-list-item__primary-text,.mdc-list-item--with-leading-icon.mdc-list-item--with-two-lines .mdc-list-item__primary-text,.mdc-list-item--with-leading-avatar.mdc-list-item--with-two-lines .mdc-list-item__primary-text{display:block;margin-top:0;line-height:normal;margin-bottom:-20px}.mdc-list-item--with-leading-radio.mdc-list-item--with-two-lines .mdc-list-item__primary-text::before,.mdc-list-item--with-leading-checkbox.mdc-list-item--with-two-lines .mdc-list-item__primary-text::before,.mdc-list-item--with-leading-icon.mdc-list-item--with-two-lines .mdc-list-item__primary-text::before,.mdc-list-item--with-leading-avatar.mdc-list-item--with-two-lines .mdc-list-item__primary-text::before{display:inline-block;width:0;height:32px;content:"";vertical-align:0}.mdc-list-item--with-leading-radio.mdc-list-item--with-two-lines .mdc-list-item__primary-text::after,.mdc-list-item--with-leading-checkbox.mdc-list-item--with-two-lines .mdc-list-item__primary-text::after,.mdc-list-item--with-leading-icon.mdc-list-item--with-two-lines .mdc-list-item__primary-text::after,.mdc-list-item--with-leading-avatar.mdc-list-item--with-two-lines .mdc-list-item__primary-text::after{display:inline-block;width:0;height:20px;content:"";vertical-align:-20px}.mdc-list-item--with-leading-radio.mdc-list-item--with-two-lines.mdc-list-item--with-trailing-meta .mdc-list-item__end,.mdc-list-item--with-leading-checkbox.mdc-list-item--with-two-lines.mdc-list-item--with-trailing-meta .mdc-list-item__end,.mdc-list-item--with-leading-icon.mdc-list-item--with-two-lines.mdc-list-item--with-trailing-meta .mdc-list-item__end,.mdc-list-item--with-leading-avatar.mdc-list-item--with-two-lines.mdc-list-item--with-trailing-meta .mdc-list-item__end{display:block;margin-top:0;line-height:normal}.mdc-list-item--with-leading-radio.mdc-list-item--with-two-lines.mdc-list-item--with-trailing-meta .mdc-list-item__end::before,.mdc-list-item--with-leading-checkbox.mdc-list-item--with-two-lines.mdc-list-item--with-trailing-meta .mdc-list-item__end::before,.mdc-list-item--with-leading-icon.mdc-list-item--with-two-lines.mdc-list-item--with-trailing-meta .mdc-list-item__end::before,.mdc-list-item--with-leading-avatar.mdc-list-item--with-two-lines.mdc-list-item--with-trailing-meta .mdc-list-item__end::before{display:inline-block;width:0;height:32px;content:"";vertical-align:0}.mdc-list-item--with-trailing-icon.mdc-list-item,[dir=rtl] .mdc-list-item--with-trailing-icon.mdc-list-item{padding-left:0;padding-right:0}.mdc-list-item--with-trailing-icon .mdc-list-item__end{margin-left:16px;margin-right:16px}.mdc-list-item--with-trailing-meta.mdc-list-item{padding-left:16px;padding-right:0}[dir=rtl] .mdc-list-item--with-trailing-meta.mdc-list-item{padding-left:0;padding-right:16px}.mdc-list-item--with-trailing-meta .mdc-list-item__end{-webkit-user-select:none;user-select:none;margin-left:28px;margin-right:16px}[dir=rtl] .mdc-list-item--with-trailing-meta .mdc-list-item__end{margin-left:16px;margin-right:28px}.mdc-list-item--with-trailing-meta.mdc-list-item--with-three-lines .mdc-list-item__end,.mdc-list-item--with-trailing-meta.mdc-list-item--with-two-lines .mdc-list-item__end{display:block;line-height:normal;align-self:flex-start;margin-top:0}.mdc-list-item--with-trailing-meta.mdc-list-item--with-three-lines .mdc-list-item__end::before,.mdc-list-item--with-trailing-meta.mdc-list-item--with-two-lines .mdc-list-item__end::before{display:inline-block;width:0;height:28px;content:"";vertical-align:0}.mdc-list-item--with-leading-radio .mdc-list-item__start,.mdc-list-item--with-leading-checkbox .mdc-list-item__start{margin-left:8px;margin-right:24px}[dir=rtl] .mdc-list-item--with-leading-radio .mdc-list-item__start,[dir=rtl] .mdc-list-item--with-leading-checkbox .mdc-list-item__start{margin-left:24px;margin-right:8px}.mdc-list-item--with-leading-radio.mdc-list-item--with-two-lines .mdc-list-item__start,.mdc-list-item--with-leading-checkbox.mdc-list-item--with-two-lines .mdc-list-item__start{align-self:flex-start;margin-top:8px}.mdc-list-item--with-trailing-radio.mdc-list-item,.mdc-list-item--with-trailing-checkbox.mdc-list-item{padding-left:16px;padding-right:0}[dir=rtl] .mdc-list-item--with-trailing-radio.mdc-list-item,[dir=rtl] .mdc-list-item--with-trailing-checkbox.mdc-list-item{padding-left:0;padding-right:16px}.mdc-list-item--with-trailing-radio.mdc-list-item--with-leading-icon,.mdc-list-item--with-trailing-radio.mdc-list-item--with-leading-avatar,.mdc-list-item--with-trailing-checkbox.mdc-list-item--with-leading-icon,.mdc-list-item--with-trailing-checkbox.mdc-list-item--with-leading-avatar{padding-left:0}[dir=rtl] .mdc-list-item--with-trailing-radio.mdc-list-item--with-leading-icon,[dir=rtl] .mdc-list-item--with-trailing-radio.mdc-list-item--with-leading-avatar,[dir=rtl] .mdc-list-item--with-trailing-checkbox.mdc-list-item--with-leading-icon,[dir=rtl] .mdc-list-item--with-trailing-checkbox.mdc-list-item--with-leading-avatar{padding-right:0}.mdc-list-item--with-trailing-radio .mdc-list-item__end,.mdc-list-item--with-trailing-checkbox .mdc-list-item__end{margin-left:24px;margin-right:8px}[dir=rtl] .mdc-list-item--with-trailing-radio .mdc-list-item__end,[dir=rtl] .mdc-list-item--with-trailing-checkbox .mdc-list-item__end{margin-left:8px;margin-right:24px}.mdc-list-item--with-trailing-radio.mdc-list-item--with-three-lines .mdc-list-item__end,.mdc-list-item--with-trailing-checkbox.mdc-list-item--with-three-lines .mdc-list-item__end{align-self:flex-start;margin-top:8px}.mdc-list-group__subheader{margin:.75rem 16px}.mdc-list-item--disabled .mdc-list-item__start,.mdc-list-item--disabled .mdc-list-item__content,.mdc-list-item--disabled .mdc-list-item__end{opacity:1}.mdc-list-item--disabled .mdc-list-item__primary-text,.mdc-list-item--disabled .mdc-list-item__secondary-text{opacity:var(--mat-list-list-item-disabled-label-text-opacity, 0.3)}.mdc-list-item--disabled.mdc-list-item--with-leading-icon .mdc-list-item__start{color:var(--mat-list-list-item-disabled-leading-icon-color, var(--mat-sys-on-surface));opacity:var(--mat-list-list-item-disabled-leading-icon-opacity, 0.38)}.mdc-list-item--disabled.mdc-list-item--with-trailing-icon .mdc-list-item__end{color:var(--mat-list-list-item-disabled-trailing-icon-color, var(--mat-sys-on-surface));opacity:var(--mat-list-list-item-disabled-trailing-icon-opacity, 0.38)}.mat-mdc-list-item.mat-mdc-list-item-both-leading-and-trailing,[dir=rtl] .mat-mdc-list-item.mat-mdc-list-item-both-leading-and-trailing{padding-left:0;padding-right:0}.mdc-list-item.mdc-list-item--disabled .mdc-list-item__primary-text{color:var(--mat-list-list-item-disabled-label-text-color, var(--mat-sys-on-surface))}.mdc-list-item:hover::before{background-color:var(--mat-list-list-item-hover-state-layer-color, var(--mat-sys-on-surface));opacity:var(--mat-list-list-item-hover-state-layer-opacity, var(--mat-sys-hover-state-layer-opacity))}.mdc-list-item.mdc-list-item--disabled::before{background-color:var(--mat-list-list-item-disabled-state-layer-color, var(--mat-sys-on-surface));opacity:var(--mat-list-list-item-disabled-state-layer-opacity, var(--mat-sys-focus-state-layer-opacity))}.mdc-list-item:focus::before{background-color:var(--mat-list-list-item-focus-state-layer-color, var(--mat-sys-on-surface));opacity:var(--mat-list-list-item-focus-state-layer-opacity, var(--mat-sys-focus-state-layer-opacity))}.mdc-list-item--disabled .mdc-radio,.mdc-list-item--disabled .mdc-checkbox{opacity:var(--mat-list-list-item-disabled-label-text-opacity, 0.3)}.mdc-list-item--with-leading-avatar .mat-mdc-list-item-avatar{border-radius:var(--mat-list-list-item-leading-avatar-shape, var(--mat-sys-corner-full));background-color:var(--mat-list-list-item-leading-avatar-color, var(--mat-sys-primary-container))}.mat-mdc-list-item-icon{font-size:var(--mat-list-list-item-leading-icon-size, 24px)}@media(forced-colors: active){a.mdc-list-item--activated::after{content:"";position:absolute;top:50%;right:16px;transform:translateY(-50%);width:10px;height:0;border-bottom:solid 10px;border-radius:10px}a.mdc-list-item--activated [dir=rtl]::after{right:auto;left:16px}}.mat-mdc-list-base{display:block}.mat-mdc-list-base .mdc-list-item__start,.mat-mdc-list-base .mdc-list-item__end,.mat-mdc-list-base .mdc-list-item__content{pointer-events:auto}.mat-mdc-list-item,.mat-mdc-list-option{width:100%;box-sizing:border-box;-webkit-tap-highlight-color:rgba(0,0,0,0)}.mat-mdc-list-item:not(.mat-mdc-list-item-interactive),.mat-mdc-list-option:not(.mat-mdc-list-item-interactive){cursor:default}.mat-mdc-list-item .mat-divider-inset,.mat-mdc-list-option .mat-divider-inset{position:absolute;left:0;right:0;bottom:0}.mat-mdc-list-item .mat-mdc-list-item-avatar~.mat-divider-inset,.mat-mdc-list-option .mat-mdc-list-item-avatar~.mat-divider-inset{margin-left:72px}[dir=rtl] .mat-mdc-list-item .mat-mdc-list-item-avatar~.mat-divider-inset,[dir=rtl] .mat-mdc-list-option .mat-mdc-list-item-avatar~.mat-divider-inset{margin-right:72px}.mat-mdc-list-item-interactive::before{top:0;left:0;right:0;bottom:0;position:absolute;content:"";opacity:0;pointer-events:none;border-radius:inherit}.mat-mdc-list-item>.mat-focus-indicator{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none}.mat-mdc-list-item:focus>.mat-focus-indicator::before{content:""}.mat-mdc-list-item.mdc-list-item--with-three-lines .mat-mdc-list-item-line.mdc-list-item__secondary-text{white-space:nowrap;line-height:normal}.mat-mdc-list-item.mdc-list-item--with-three-lines .mat-mdc-list-item-unscoped-content.mdc-list-item__secondary-text{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2}mat-action-list button{background:none;color:inherit;border:none;font:inherit;outline:inherit;-webkit-tap-highlight-color:rgba(0,0,0,0);text-align:start}mat-action-list button::-moz-focus-inner{border:0}.mdc-list-item--with-leading-icon .mdc-list-item__start{margin-inline-start:var(--mat-list-list-item-leading-icon-start-space, 16px);margin-inline-end:var(--mat-list-list-item-leading-icon-end-space, 16px)}.mat-mdc-nav-list .mat-mdc-list-item{border-radius:var(--mat-list-active-indicator-shape, var(--mat-sys-corner-full));--mat-focus-indicator-border-radius: var(--mat-list-active-indicator-shape, var(--mat-sys-corner-full))}.mat-mdc-nav-list .mat-mdc-list-item.mdc-list-item--activated{background-color:var(--mat-list-active-indicator-color, var(--mat-sys-secondary-container))} +`,qpe=["unscopedContent"],Ype=["text"],Qpe=[[["","matListItemAvatar",""],["","matListItemIcon",""]],[["","matListItemTitle",""]],[["","matListItemLine",""]],"*",[["","matListItemMeta",""]],[["mat-divider"]]],Kpe=["[matListItemAvatar],[matListItemIcon]","[matListItemTitle]","[matListItemLine]","*","[matListItemMeta]","mat-divider"];var Zpe=new T("ListOption"),Dl=(()=>{class t{_elementRef=u(q);constructor(){}static \u0275fac=function(i){return new(i||t)};static \u0275dir=F({type:t,selectors:[["","matListItemTitle",""]],hostAttrs:[1,"mat-mdc-list-item-title","mdc-list-item__primary-text"]})}return t})(),Tu=(()=>{class t{_elementRef=u(q);constructor(){}static \u0275fac=function(i){return new(i||t)};static \u0275dir=F({type:t,selectors:[["","matListItemLine",""]],hostAttrs:[1,"mat-mdc-list-item-line","mdc-list-item__secondary-text"]})}return t})(),SI=(()=>{class t{static \u0275fac=function(i){return new(i||t)};static \u0275dir=F({type:t,selectors:[["","matListItemMeta",""]],hostAttrs:[1,"mat-mdc-list-item-meta","mdc-list-item__end"]})}return t})(),g8=(()=>{class t{_listOption=u(Zpe,{optional:!0});constructor(){}_isAlignedAtStart(){return!this._listOption||this._listOption?._getTogglePosition()==="after"}static \u0275fac=function(i){return new(i||t)};static \u0275dir=F({type:t,hostVars:4,hostBindings:function(i,r){i&2&&G("mdc-list-item__start",r._isAlignedAtStart())("mdc-list-item__end",!r._isAlignedAtStart())}})}return t})(),Xpe=(()=>{class t extends g8{static \u0275fac=(()=>{let e;return function(r){return(e||(e=fe(t)))(r||t)}})();static \u0275dir=F({type:t,selectors:[["","matListItemAvatar",""]],hostAttrs:[1,"mat-mdc-list-item-avatar"],features:[le]})}return t})(),f_=(()=>{class t extends g8{static \u0275fac=(()=>{let e;return function(r){return(e||(e=fe(t)))(r||t)}})();static \u0275dir=F({type:t,selectors:[["","matListItemIcon",""]],hostAttrs:[1,"mat-mdc-list-item-icon"],features:[le]})}return t})(),Jpe=new T("MAT_LIST_CONFIG"),p_=(()=>{class t{_isNonInteractive=!0;get disableRipple(){return this._disableRipple}set disableRipple(e){this._disableRipple=Ai(e)}_disableRipple=!1;get disabled(){return this._disabled()}set disabled(e){this._disabled.set(Ai(e))}_disabled=he(!1);_defaultOptions=u(Jpe,{optional:!0});static \u0275fac=function(i){return new(i||t)};static \u0275dir=F({type:t,hostVars:1,hostBindings:function(i,r){i&2&&X("aria-disabled",r.disabled)},inputs:{disableRipple:"disableRipple",disabled:"disabled"}})}return t})(),efe=(()=>{class t{_elementRef=u(q);_ngZone=u(ae);_listBase=u(p_,{optional:!0});_platform=u(qe);_hostElement;_isButtonElement;_noopAnimations=Ye();_avatars;_icons;set lines(e){this._explicitLines=Ln(e,null),this._updateItemLines(!1)}_explicitLines=null;get disableRipple(){return this.disabled||this._disableRipple||this._noopAnimations||!!this._listBase?.disableRipple}set disableRipple(e){this._disableRipple=Ai(e)}_disableRipple=!1;get disabled(){return this._disabled()||!!this._listBase?.disabled}set disabled(e){this._disabled.set(Ai(e))}_disabled=he(!1);_subscriptions=new ke;_rippleRenderer=null;_hasUnscopedTextContent=!1;rippleConfig;get rippleDisabled(){return this.disableRipple||!!this.rippleConfig.disabled}constructor(){u(ut).load(Di);let e=u(Cs,{optional:!0});this.rippleConfig=e||{},this._hostElement=this._elementRef.nativeElement,this._isButtonElement=this._hostElement.nodeName.toLowerCase()==="button",this._listBase&&!this._listBase._isNonInteractive&&this._initInteractiveListItem(),this._isButtonElement&&!this._hostElement.hasAttribute("type")&&this._hostElement.setAttribute("type","button")}ngAfterViewInit(){this._monitorProjectedLinesAndTitle(),this._updateItemLines(!0)}ngOnDestroy(){this._subscriptions.unsubscribe(),this._rippleRenderer!==null&&this._rippleRenderer._removeTriggerEvents()}_hasIconOrAvatar(){return!!(this._avatars.length||this._icons.length)}_initInteractiveListItem(){this._hostElement.classList.add("mat-mdc-list-item-interactive"),this._rippleRenderer=new lc(this,this._ngZone,this._hostElement,this._platform,u(de)),this._rippleRenderer.setupTriggerEvents(this._hostElement)}_monitorProjectedLinesAndTitle(){this._ngZone.runOutsideAngular(()=>{this._subscriptions.add(Je(this._lines.changes,this._titles.changes).subscribe(()=>this._updateItemLines(!1)))})}_updateItemLines(e){if(!this._lines||!this._titles||!this._unscopedContent)return;e&&this._checkDomForUnscopedTextContent();let i=this._explicitLines??this._inferLinesFromContent(),r=this._unscopedContent.nativeElement;if(this._hostElement.classList.toggle("mat-mdc-list-item-single-line",i<=1),this._hostElement.classList.toggle("mdc-list-item--with-one-line",i<=1),this._hostElement.classList.toggle("mdc-list-item--with-two-lines",i===2),this._hostElement.classList.toggle("mdc-list-item--with-three-lines",i===3),this._hasUnscopedTextContent){let o=this._titles.length===0&&i===1;r.classList.toggle("mdc-list-item__primary-text",o),r.classList.toggle("mdc-list-item__secondary-text",!o)}else r.classList.remove("mdc-list-item__primary-text"),r.classList.remove("mdc-list-item__secondary-text")}_inferLinesFromContent(){let e=this._titles.length+this._lines.length;return this._hasUnscopedTextContent&&(e+=1),e}_checkDomForUnscopedTextContent(){this._hasUnscopedTextContent=Array.from(this._unscopedContent.nativeElement.childNodes).filter(e=>e.nodeType!==e.COMMENT_NODE).some(e=>!!(e.textContent&&e.textContent.trim()))}static \u0275fac=function(i){return new(i||t)};static \u0275dir=F({type:t,contentQueries:function(i,r,o){if(i&1&&(xe(o,Xpe,4),xe(o,f_,4)),i&2){let a;B(a=j())&&(r._avatars=a),B(a=j())&&(r._icons=a)}},hostVars:4,hostBindings:function(i,r){i&2&&(X("aria-disabled",r.disabled)("disabled",r._isButtonElement&&r.disabled||null),G("mdc-list-item--disabled",r.disabled))},inputs:{lines:"lines",disableRipple:"disableRipple",disabled:"disabled"}})}return t})();var Fs=(()=>{class t extends p_{static \u0275fac=(()=>{let e;return function(r){return(e||(e=fe(t)))(r||t)}})();static \u0275cmp=E({type:t,selectors:[["mat-list"]],hostAttrs:[1,"mat-mdc-list","mat-mdc-list-base","mdc-list"],exportAs:["matList"],features:[Ce([{provide:p_,useExisting:t}]),le],ngContentSelectors:p8,decls:1,vars:0,template:function(i,r){i&1&&(Me(),oe(0))},styles:[f8],encapsulation:2,changeDetection:0})}return t})(),la=(()=>{class t extends efe{_lines;_titles;_meta;_unscopedContent;_itemText;get activated(){return this._activated}set activated(e){this._activated=Ai(e)}_activated=!1;_getAriaCurrent(){return this._hostElement.nodeName==="A"&&this._activated?"page":null}_hasBothLeadingAndTrailing(){return this._meta.length!==0&&(this._avatars.length!==0||this._icons.length!==0)}static \u0275fac=(()=>{let e;return function(r){return(e||(e=fe(t)))(r||t)}})();static \u0275cmp=E({type:t,selectors:[["mat-list-item"],["a","mat-list-item",""],["button","mat-list-item",""]],contentQueries:function(i,r,o){if(i&1&&(xe(o,Tu,5),xe(o,Dl,5),xe(o,SI,5)),i&2){let a;B(a=j())&&(r._lines=a),B(a=j())&&(r._titles=a),B(a=j())&&(r._meta=a)}},viewQuery:function(i,r){if(i&1&&(ie(qpe,5),ie(Ype,5)),i&2){let o;B(o=j())&&(r._unscopedContent=o.first),B(o=j())&&(r._itemText=o.first)}},hostAttrs:[1,"mat-mdc-list-item","mdc-list-item"],hostVars:13,hostBindings:function(i,r){i&2&&(X("aria-current",r._getAriaCurrent()),G("mdc-list-item--activated",r.activated)("mdc-list-item--with-leading-avatar",r._avatars.length!==0)("mdc-list-item--with-leading-icon",r._icons.length!==0)("mdc-list-item--with-trailing-meta",r._meta.length!==0)("mat-mdc-list-item-both-leading-and-trailing",r._hasBothLeadingAndTrailing())("_mat-animation-noopable",r._noopAnimations))},inputs:{activated:"activated"},exportAs:["matListItem"],features:[le],ngContentSelectors:Kpe,decls:10,vars:0,consts:[["unscopedContent",""],[1,"mdc-list-item__content"],[1,"mat-mdc-list-item-unscoped-content",3,"cdkObserveContent"],[1,"mat-focus-indicator"]],template:function(i,r){if(i&1){let o=Y();Me(Qpe),oe(0),h(1,"span",1),oe(2,1),oe(3,2),h(4,"span",2,0),S("cdkObserveContent",function(){return I(o),A(r._updateItemLines(!0))}),oe(6,3),p()(),oe(7,4),oe(8,5),k(9,"div",3)}},dependencies:[Wf],encapsulation:2,changeDetection:0})}return t})();var _8=(()=>{class t extends p_{_isNonInteractive=!1;static \u0275fac=(()=>{let e;return function(r){return(e||(e=fe(t)))(r||t)}})();static \u0275cmp=E({type:t,selectors:[["mat-nav-list"]],hostAttrs:["role","navigation",1,"mat-mdc-nav-list","mat-mdc-list-base","mdc-list"],exportAs:["matNavList"],features:[Ce([{provide:p_,useExisting:t}]),le],ngContentSelectors:p8,decls:1,vars:0,template:function(i,r){i&1&&(Me(),oe(0))},styles:[f8],encapsulation:2,changeDetection:0})}return t})();var ca=(()=>{class t{static \u0275fac=function(i){return new(i||t)};static \u0275mod=ee({type:t});static \u0275inj=J({imports:[Ym,we,yo,Q0,sa]})}return t})();var tfe=["mat-menu-item",""],ife=[[["mat-icon"],["","matMenuItemIcon",""]],"*"],nfe=["mat-icon, [matMenuItemIcon]","*"];function rfe(t,n){t&1&&(Gt(),h(0,"svg",2),k(1,"polygon",3),p())}var ofe=["*"];function afe(t,n){if(t&1){let e=Y();ft(0,"div",0),kv("click",function(){I(e);let r=C();return A(r.closed.emit("click"))})("animationstart",function(r){I(e);let o=C();return A(o._onAnimationStart(r.animationName))})("animationend",function(r){I(e);let o=C();return A(o._onAnimationDone(r.animationName))})("animationcancel",function(r){I(e);let o=C();return A(o._onAnimationDone(r.animationName))}),ft(1,"div",1),oe(2),vt()()}if(t&2){let e=C();it(e._classList),G("mat-menu-panel-animations-disabled",e._animationsDisabled)("mat-menu-panel-exit-animation",e._panelAnimationState==="void")("mat-menu-panel-animating",e._isAnimating()),si("id",e.panelId),X("aria-label",e.ariaLabel||null)("aria-labelledby",e.ariaLabelledby||null)("aria-describedby",e.ariaDescribedby||null)}}var II=new T("MAT_MENU_PANEL"),El=(()=>{class t{_elementRef=u(q);_document=u(ge);_focusMonitor=u(Yt);_parentMenu=u(II,{optional:!0});_changeDetectorRef=u(ye);role="menuitem";disabled=!1;disableRipple=!1;_hovered=new z;_focused=new z;_highlighted=!1;_triggersSubmenu=!1;constructor(){u(ut).load(Di),this._parentMenu?.addItem?.(this)}focus(e,i){this._focusMonitor&&e?this._focusMonitor.focusVia(this._getHostElement(),e,i):this._getHostElement().focus(i),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),i=e.querySelectorAll("mat-icon, .material-icons");for(let r=0;r{class t{_elementRef=u(q);_changeDetectorRef=u(ye);_injector=u(de);_keyManager;_xPosition;_yPosition;_firstItemFocusRef;_exitFallbackTimeout;_animationsDisabled=Ye();_allItems;_directDescendantItems=new pr;_classList={};_panelAnimationState="void";_animationDone=new z;_isAnimating=he(!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;hasBackdrop;set panelClass(e){let i=this._previousPanelClass,r=M({},this._classList);i&&i.length&&i.split(" ").forEach(o=>{r[o]=!1}),this._previousPanelClass=e,e&&e.length&&(e.split(" ").forEach(o=>{r[o]=!0}),this._elementRef.nativeElement.className=""),this._classList=r}_previousPanelClass;get classList(){return this.panelClass}set classList(e){this.panelClass=e}closed=new U;close=this.closed;panelId=u(Ze).getId("mat-menu-panel-");constructor(){let e=u(lfe);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 bs(this._directDescendantItems).withWrap().withTypeAhead().withHomeAndEnd(),this._keyManager.tabOut.subscribe(()=>this.closed.emit("tab")),this._directDescendantItems.changes.pipe(He(this._directDescendantItems),$e(e=>Je(...e.map(i=>i._focused)))).subscribe(e=>this._keyManager.updateActiveItem(e)),this._directDescendantItems.changes.subscribe(e=>{let i=this._keyManager;if(this._panelAnimationState==="enter"&&i.activeItem?._hasFocus()){let r=e.toArray(),o=Math.max(0,Math.min(r.length-1,i.activeItemIndex||0));r[o]&&!r[o].disabled?i.setActiveItem(o):i.setNextItemActive()}})}ngOnDestroy(){this._keyManager?.destroy(),this._directDescendantItems.destroy(),this.closed.complete(),this._firstItemFocusRef?.destroy(),clearTimeout(this._exitFallbackTimeout)}_hovered(){return this._directDescendantItems.changes.pipe(He(this._directDescendantItems),$e(i=>Je(...i.map(r=>r._hovered))))}addItem(e){}removeItem(e){}_handleKeydown(e){let i=e.keyCode,r=this._keyManager;switch(i){case 27:Ft(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:(i===38||i===40)&&r.setFocusOrigin("keyboard"),r.onKeydown(e);return}}focusFirstItem(e="program"){this._firstItemFocusRef?.destroy(),this._firstItemFocusRef=pt(()=>{let i=this._resolvePanel();if(!i||!i.contains(document.activeElement)){let r=this._keyManager;r.setFocusOrigin(e).setFirstItemActive(),!r.activeItem&&i&&i.focus()}},{injector:this._injector})}resetActiveItem(){this._keyManager.setActiveItem(-1)}setElevation(e){}setPositionClasses(e=this.xPosition,i=this.yPosition){this._classList=De(M({},this._classList),{"mat-menu-before":e==="before","mat-menu-after":e==="after","mat-menu-above":i==="above","mat-menu-below":i==="below"}),this._changeDetectorRef.markForCheck()}_onAnimationDone(e){let i=e===JC;(i||e===TI)&&(i&&(clearTimeout(this._exitFallbackTimeout),this._exitFallbackTimeout=void 0),this._animationDone.next(i?"void":"enter"),this._isAnimating.set(!1))}_onAnimationStart(e){(e===TI||e===JC)&&this._isAnimating.set(!0)}_setIsOpen(e){if(this._panelAnimationState=e?"enter":"void",e){if(this._keyManager.activeItemIndex===0){let i=this._resolvePanel();i&&(i.scrollTop=0)}}else this._animationsDisabled||(this._exitFallbackTimeout=setTimeout(()=>this._onAnimationDone(JC),200));this._animationsDisabled&&setTimeout(()=>{this._onAnimationDone(e?TI:JC)}),this._changeDetectorRef.markForCheck()}_updateDirectDescendants(){this._allItems.changes.pipe(He(this._allItems)).subscribe(e=>{this._directDescendantItems.reset(e.filter(i=>i._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(i){return new(i||t)};static \u0275cmp=E({type:t,selectors:[["mat-menu"]],contentQueries:function(i,r,o){if(i&1&&(xe(o,sfe,5),xe(o,El,5),xe(o,El,4)),i&2){let a;B(a=j())&&(r.lazyContent=a.first),B(a=j())&&(r._allItems=a),B(a=j())&&(r.items=a)}},viewQuery:function(i,r){if(i&1&&ie(te,5),i&2){let o;B(o=j())&&(r.templateRef=o.first)}},hostVars:3,hostBindings:function(i,r){i&2&&X("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",V],hasBackdrop:[2,"hasBackdrop","hasBackdrop",e=>e==null?null:V(e)],panelClass:[0,"class","panelClass"],classList:"classList"},outputs:{closed:"closed",close:"close"},exportAs:["matMenu"],features:[Ce([{provide:II,useExisting:t}])],ngContentSelectors:ofe,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(i,r){i&1&&(Me(),xa(0,afe,3,12,"ng-template"))},styles:[`mat-menu{display:none}.mat-mdc-menu-content{margin:0;padding:8px 0;outline:0}.mat-mdc-menu-content,.mat-mdc-menu-content .mat-mdc-menu-item .mat-mdc-menu-item-text{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;flex:1;white-space:normal;font-family:var(--mat-menu-item-label-text-font, var(--mat-sys-label-large-font));line-height:var(--mat-menu-item-label-text-line-height, var(--mat-sys-label-large-line-height));font-size:var(--mat-menu-item-label-text-size, var(--mat-sys-label-large-size));letter-spacing:var(--mat-menu-item-label-text-tracking, var(--mat-sys-label-large-tracking));font-weight:var(--mat-menu-item-label-text-weight, var(--mat-sys-label-large-weight))}@keyframes _mat-menu-enter{from{opacity:0;transform:scale(0.8)}to{opacity:1;transform:none}}@keyframes _mat-menu-exit{from{opacity:1}to{opacity:0}}.mat-mdc-menu-panel{min-width:112px;max-width:280px;overflow:auto;box-sizing:border-box;outline:0;animation:_mat-menu-enter 120ms cubic-bezier(0, 0, 0.2, 1);border-radius:var(--mat-menu-container-shape, var(--mat-sys-corner-extra-small));background-color:var(--mat-menu-container-color, var(--mat-sys-surface-container));box-shadow:var(--mat-menu-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));will-change:transform,opacity}.mat-mdc-menu-panel.mat-menu-panel-exit-animation{animation:_mat-menu-exit 100ms 25ms linear forwards}.mat-mdc-menu-panel.mat-menu-panel-animations-disabled{animation:none}.mat-mdc-menu-panel.mat-menu-panel-animating{pointer-events:none}.mat-mdc-menu-panel.mat-menu-panel-animating:has(.mat-mdc-menu-content:empty){display:none}@media(forced-colors: active){.mat-mdc-menu-panel{outline:solid 1px}}.mat-mdc-menu-panel .mat-divider{color:var(--mat-menu-divider-color, var(--mat-sys-surface-variant));margin-bottom:var(--mat-menu-divider-bottom-spacing, 8px);margin-top:var(--mat-menu-divider-top-spacing, 8px)}.mat-mdc-menu-item{display:flex;position:relative;align-items:center;justify-content:flex-start;overflow:hidden;padding:0;cursor:pointer;width:100%;text-align:left;box-sizing:border-box;color:inherit;font-size:inherit;background:none;text-decoration:none;margin:0;min-height:48px;padding-left:var(--mat-menu-item-leading-spacing, 12px);padding-right:var(--mat-menu-item-trailing-spacing, 12px);-webkit-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:rgba(0,0,0,0)}.mat-mdc-menu-item::-moz-focus-inner{border:0}[dir=rtl] .mat-mdc-menu-item{padding-left:var(--mat-menu-item-trailing-spacing, 12px);padding-right:var(--mat-menu-item-leading-spacing, 12px)}.mat-mdc-menu-item:has(.material-icons,mat-icon,[matButtonIcon]){padding-left:var(--mat-menu-item-with-icon-leading-spacing, 12px);padding-right:var(--mat-menu-item-with-icon-trailing-spacing, 12px)}[dir=rtl] .mat-mdc-menu-item:has(.material-icons,mat-icon,[matButtonIcon]){padding-left:var(--mat-menu-item-with-icon-trailing-spacing, 12px);padding-right:var(--mat-menu-item-with-icon-leading-spacing, 12px)}.mat-mdc-menu-item,.mat-mdc-menu-item:visited,.mat-mdc-menu-item:link{color:var(--mat-menu-item-label-text-color, var(--mat-sys-on-surface))}.mat-mdc-menu-item .mat-icon-no-color,.mat-mdc-menu-item .mat-mdc-menu-submenu-icon{color:var(--mat-menu-item-icon-color, var(--mat-sys-on-surface-variant))}.mat-mdc-menu-item[disabled]{cursor:default;opacity:.38}.mat-mdc-menu-item[disabled]::after{display:block;position:absolute;content:"";top:0;left:0;bottom:0;right:0}.mat-mdc-menu-item:focus{outline:0}.mat-mdc-menu-item .mat-icon{flex-shrink:0;margin-right:var(--mat-menu-item-spacing, 12px);height:var(--mat-menu-item-icon-size, 24px);width:var(--mat-menu-item-icon-size, 24px)}[dir=rtl] .mat-mdc-menu-item{text-align:right}[dir=rtl] .mat-mdc-menu-item .mat-icon{margin-right:0;margin-left:var(--mat-menu-item-spacing, 12px)}.mat-mdc-menu-item:not([disabled]):hover{background-color:var(--mat-menu-item-hover-state-layer-color, color-mix(in srgb, var(--mat-sys-on-surface) calc(var(--mat-sys-hover-state-layer-opacity) * 100%), transparent))}.mat-mdc-menu-item:not([disabled]).cdk-program-focused,.mat-mdc-menu-item:not([disabled]).cdk-keyboard-focused,.mat-mdc-menu-item:not([disabled]).mat-mdc-menu-item-highlighted{background-color:var(--mat-menu-item-focus-state-layer-color, color-mix(in srgb, var(--mat-sys-on-surface) calc(var(--mat-sys-focus-state-layer-opacity) * 100%), transparent))}@media(forced-colors: active){.mat-mdc-menu-item{margin-top:1px}}.mat-mdc-menu-submenu-icon{width:var(--mat-menu-item-icon-size, 24px);height:10px;fill:currentColor;padding-left:var(--mat-menu-item-spacing, 12px)}[dir=rtl] .mat-mdc-menu-submenu-icon{padding-right:var(--mat-menu-item-spacing, 12px);padding-left:0}[dir=rtl] .mat-mdc-menu-submenu-icon polygon{transform:scaleX(-1);transform-origin:center}@media(forced-colors: active){.mat-mdc-menu-submenu-icon{fill:CanvasText}}.mat-mdc-menu-item .mat-mdc-menu-ripple{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none} +`],encapsulation:2,changeDetection:0})}return t})(),b8=new T("mat-menu-scroll-strategy",{providedIn:"root",factory:()=>{let t=u(de);return()=>wn(t)}});function dfe(t){let n=u(de);return()=>wn(n)}var ufe={provide:b8,deps:[],useFactory:dfe};var ip=new WeakMap,mfe=(()=>{class t{_canHaveBackdrop;_element=u(q);_viewContainerRef=u(nt);_menuItemInstance=u(El,{optional:!0,self:!0});_dir=u(Vt,{optional:!0});_focusMonitor=u(Yt);_ngZone=u(ae);_injector=u(de);_scrollStrategy=u(b8);_changeDetectorRef=u(ye);_animationsDisabled=Ye();_portal;_overlayRef=null;_menuOpen=!1;_closingActionsSubscription=ke.EMPTY;_menuCloseSubscription=ke.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(i=>{this._destroyMenu(i),(i==="click"||i==="tab")&&this._parentMaterialMenu&&this._parentMaterialMenu.closed.emit(i)})),this._menuItemInstance?._setTriggersSubmenu(this._triggersSubmenu()))}_menuInternal;constructor(e){this._canHaveBackdrop=e;let i=u(II,{optional:!0});this._parentMaterialMenu=i instanceof jr?i:void 0}ngOnDestroy(){this._menu&&this._ownsMenu(this._menu)&&ip.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){let i=this._menu;if(this._menuOpen||!i)return;this._pendingRemoval?.unsubscribe();let r=ip.get(i);ip.set(i,this),r&&r!==this&&r._closeMenu();let o=this._createOverlay(i),a=o.getConfig(),s=a.positionStrategy;this._setPosition(i,s),this._canHaveBackdrop?a.hasBackdrop=i.hasBackdrop==null?!this._triggersSubmenu():i.hasBackdrop:a.hasBackdrop=!1,o.hasAttached()||(o.attach(this._getPortal(i)),i.lazyContent?.attach(this.menuData)),this._closingActionsSubscription=this._menuClosingActions().subscribe(()=>this._closeMenu()),i.parentMenu=this._triggersSubmenu()?this._parentMaterialMenu:void 0,i.direction=this.dir,e&&i.focusFirstItem(this._openedBy||"program"),this._setIsMenuOpen(!0),i instanceof jr&&(i._setIsOpen(!0),i._directDescendantItems.changes.pipe(Te(i.close)).subscribe(()=>{s.withLockedPosition(!1).reapplyLastPosition(),s.withLockedPosition(!0)}))}focus(e,i){this._focusMonitor&&e?this._focusMonitor.focusVia(this._element,e,i):this._element.nativeElement.focus(i)}_destroyMenu(e){let i=this._overlayRef,r=this._menu;!i||!this.menuOpen||(this._closingActionsSubscription.unsubscribe(),this._pendingRemoval?.unsubscribe(),r instanceof jr&&this._ownsMenu(r)?(this._pendingRemoval=r._animationDone.pipe(lt(1)).subscribe(()=>{i.detach(),ip.has(r)||r.lazyContent?.detach()}),r._setIsOpen(!1)):(i.detach(),r?.lazyContent?.detach()),r&&this._ownsMenu(r)&&ip.delete(r),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 i=this._getOverlayConfig(e);this._subscribeToPositions(e,i.positionStrategy),this._overlayRef=Nr(this._injector,i),this._overlayRef.keydownEvents().subscribe(r=>{this._menu instanceof jr&&this._menu._handleKeydown(r)})}return this._overlayRef}_getOverlayConfig(e){return new Fr({positionStrategy:Fa(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,i){e.setPositionClasses&&i.positionChanges.subscribe(r=>{this._ngZone.run(()=>{let o=r.connectionPair.overlayX==="start"?"after":"before",a=r.connectionPair.overlayY==="top"?"below":"above";e.setPositionClasses(o,a)})})}_setPosition(e,i){let[r,o]=e.xPosition==="before"?["end","start"]:["start","end"],[a,s]=e.yPosition==="above"?["bottom","top"]:["top","bottom"],[l,c]=[a,s],[d,m]=[r,o],f=0;if(this._triggersSubmenu()){if(m=r=e.xPosition==="before"?"start":"end",o=d=r==="end"?"start":"end",this._parentMaterialMenu){if(this._parentInnerPadding==null){let b=this._parentMaterialMenu.items.first;this._parentInnerPadding=b?b._getHostElement().offsetTop:0}f=a==="bottom"?this._parentInnerPadding:-this._parentInnerPadding}}else e.overlapTrigger||(l=a==="top"?"bottom":"top",c=s==="top"?"bottom":"top");i.withPositions([{originX:r,originY:l,overlayX:d,overlayY:a,offsetY:f},{originX:o,originY:l,overlayX:m,overlayY:a,offsetY:f},{originX:r,originY:c,overlayX:d,overlayY:s,offsetY:-f},{originX:o,originY:c,overlayX:m,overlayY:s,offsetY:-f}])}_menuClosingActions(){let e=this._getOutsideClickStream(this._overlayRef),i=this._overlayRef.detachments(),r=this._parentMaterialMenu?this._parentMaterialMenu.closed:Q(),o=this._parentMaterialMenu?this._parentMaterialMenu._hovered().pipe(ce(a=>this._menuOpen&&a!==this._menuItemInstance)):Q();return Je(e,r,o,i)}_getPortal(e){return(!this._portal||this._portal.templateRef!==e.templateRef)&&(this._portal=new Cn(e.templateRef,this._viewContainerRef)),this._portal}_ownsMenu(e){return ip.get(e)===this}static \u0275fac=function(i){Ad()};static \u0275dir=F({type:t})}return t})(),Ns=(()=>{class t extends mfe{_cleanupTouchstart;_hoverSubscription=ke.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 U;onMenuOpen=this.menuOpened;menuClosed=new U;onMenuClose=this.menuClosed;constructor(){super(!0);let e=u(je);this._cleanupTouchstart=e.listen(this._element.nativeElement,"touchstart",i=>{Gd(i)||(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){Wd(e)||(this._openedBy=e.button===0?"mouse":void 0,this.triggersSubmenu()&&e.preventDefault())}_handleKeydown(e){let i=e.keyCode;(i===13||i===32)&&(this._openedBy="keyboard"),this.triggersSubmenu()&&(i===39&&this.dir==="ltr"||i===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(i){return new(i||t)};static \u0275dir=F({type:t,selectors:[["","mat-menu-trigger-for",""],["","matMenuTriggerFor",""]],hostAttrs:[1,"mat-mdc-menu-trigger"],hostVars:3,hostBindings:function(i,r){i&1&&S("click",function(a){return r._handleClick(a)})("mousedown",function(a){return r._handleMousedown(a)})("keydown",function(a){return r._handleKeydown(a)}),i&2&&X("aria-haspopup",r.menu?"menu":null)("aria-expanded",r.menuOpen)("aria-controls",r.menuOpen?r.menu==null?null:r.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:[le]})}return t})();var Ls=(()=>{class t{static \u0275fac=function(i){return new(i||t)};static \u0275mod=ee({type:t});static \u0275inj=J({providers:[ufe],imports:[yo,we,er,vr,we]})}return t})(),v8={transformMenu:{type:7,name:"transformMenu",definitions:[{type:0,name:"void",styles:{type:6,styles:{opacity:0,transform:"scale(0.8)"},offset:null}},{type:1,expr:"void => enter",animation:{type:4,styles:{type:6,styles:{opacity:1,transform:"scale(1)"},offset:null},timings:"120ms cubic-bezier(0, 0, 0.2, 1)"},options:null},{type:1,expr:"* => void",animation:{type:4,styles:{type:6,styles:{opacity:0},offset:null},timings:"100ms 25ms linear"},options:null}],options:{}},fadeInItems:{type:7,name:"fadeInItems",definitions:[{type:0,name:"showing",styles:{type:6,styles:{opacity:1},offset:null}},{type:1,expr:"void => *",animation:[{type:6,styles:{opacity:0},offset:null},{type:4,styles:null,timings:"400ms 100ms cubic-bezier(0.55, 0, 0.55, 0.2)"}],options:null}],options:{}}},dlt=v8.fadeInItems,ult=v8.transformMenu;function hfe(t,n){if(t&1&&(h(0,"mat-list-item")(1,"mat-icon",3),_(2,"info"),p(),h(3,"a",4),_(4),p()()),t&2){let e=n.$implicit;g(4),H(e)}}var y8=(()=>{let n=class n{constructor(){this.messages=["Server Error Reports 1","Server Error Reports 2","Server Error Reports 3"]}};n.\u0275fac=function(r){return new(r||n)},n.\u0275cmp=E({type:n,selectors:[["app-notification"]],decls:8,vars:1,consts:[["menu","matMenu"],["matIconButton","",3,"matMenuTriggerFor"],["matBadge","5","matBadgeColor","warn","aria-hidden","false"],["matListItemIcon","",1,"m-x-16"],["matListItemTitle","","href","#"]],template:function(r,o){if(r&1&&(h(0,"button",1)(1,"mat-icon",2),_(2,"notifications"),p()(),h(3,"mat-menu",null,0)(5,"mat-nav-list"),xt(6,hfe,5,1,"mat-list-item",null,Hi),p()()),r&2){let a=Se(4);y("matMenuTriggerFor",a),g(6),Ct(o.messages)}},dependencies:[h8,m8,ze,ti,ot,mt,ca,_8,la,f_,Dl,Ls,jr,Ns],styles:["[_nghost-%COMP%] .mat-badge-content{--mat-badge-background-color: #ef0000;--mat-badge-text-color: #fff}"]});let t=n;return t})();var pfe=(t,n)=>n.value;function ffe(t,n){t&1&&k(0,"mat-pseudo-checkbox",5)}function gfe(t,n){if(t&1){let e=Y();h(0,"button",3),S("click",function(){let r=I(e).$implicit,o=C();return A(o.changeLang(r.value))}),h(1,"span",4),_(2),me(3,"translate"),N(4,ffe,1,0,"mat-pseudo-checkbox",5),p()()}if(t&2){let e=n.$implicit,i=C();g(2),ve(" ",Oe(3,2,e.name)," "),g(2),L(e.value===i.options.language?4:-1)}}var x8=(()=>{let n=class n{constructor(){this.settings=u(aa),this.options=this.settings.options,this.langs=[{value:"en-US",name:"en_us"},{value:"zh-CN",name:"zh_cn"},{value:"zh-TW",name:"zh_tw"},{value:"auto",name:"system"}]}changeLang(i){this.settings.setLanguage(i)}};n.\u0275fac=function(r){return new(r||n)},n.\u0275cmp=E({type:n,selectors:[["app-translate"]],decls:7,vars:1,consts:[["menu","matMenu"],["matIconButton","",3,"matMenuTriggerFor"],["mat-menu-item",""],["mat-menu-item","",3,"click"],[1,"d-flex","justify-content-between","gap-8"],["state","checked","appearance","minimal"]],template:function(r,o){if(r&1&&(h(0,"button",1)(1,"mat-icon"),_(2,"translate"),p()(),h(3,"mat-menu",null,0),xt(5,gfe,5,4,"button",2,pfe),p()),r&2){let a=Se(4);y("matMenuTriggerFor",a),g(5),Ct(o.langs)}},dependencies:[ze,ti,ot,mt,Ls,jr,El,Ns,Qd,Cr],encapsulation:2});let t=n;return t})();function _fe(t,n){t&1&&(h(0,"button",8)(1,"mat-icon"),_(2,"account_circle"),p(),h(3,"span"),_(4),me(5,"translate"),p()(),h(6,"button",9)(7,"mat-icon"),_(8,"edit"),p(),h(9,"span"),_(10),me(11,"translate"),p()()),t&2&&(g(4),H(Oe(5,2,"profile")),g(6),H(Oe(11,4,"edit_profile")))}function bfe(t,n){if(t&1){let e=Y();h(0,"button",6),S("click",function(){I(e);let r=C();return A(r.logout())}),h(1,"mat-icon"),_(2,"exit_to_app"),p(),h(3,"span"),_(4),me(5,"translate"),p()()}t&2&&(g(4),H(Oe(5,1,"logout")))}function vfe(t,n){if(t&1){let e=Y();h(0,"button",6),S("click",function(){I(e);let r=C();return A(r.login())}),h(1,"mat-icon"),_(2,"login"),p(),h(3,"span"),_(4),me(5,"translate"),p()()}t&2&&(g(4),H(Oe(5,1,"login")))}var C8=(()=>{let n=class n{constructor(){this.oidcAuth=u(Tt),this.router=u(Re),this.settings=u(aa),this.userName="Guest",this.userEmail="",this.userRoles="Anonymous User"}ngOnInit(){this.updateUserInfo(),this.authSubscription=this.oidcAuth.isAuthenticated$.subscribe(()=>{this.updateUserInfo()})}ngOnDestroy(){this.authSubscription?.unsubscribe()}updateUserInfo(){if(!this.oidcAuth.isAuthenticated()){this.userName="Guest",this.userEmail="",this.userRoles="Anonymous User";return}let i=this.oidcAuth.getUserInfo();console.log("UserButton: User info:",i),console.log("UserButton: Available claims:",i?Object.keys(i):"null"),this.userName=i?.name||i?.preferred_username||i?.given_name||i?.["http://schemas.xmlsoap.org/ws/2005/05/identity/claims/name"]||i?.sub||"User",this.userEmail=i?.email||i?.["http://schemas.xmlsoap.org/ws/2005/05/identity/claims/emailaddress"]||"";let r=this.oidcAuth.getUserRoles();this.userRoles=r.length>0?r.join(", "):"No roles",console.log("UserButton: Set userName to:",this.userName,"email to:",this.userEmail,"roles:",this.userRoles)}isAuthenticated(){return this.oidcAuth.isAuthenticated()}login(){this.oidcAuth.login()}logout(){this.oidcAuth.logout(),this.router.navigateByUrl("/dashboard")}restore(){this.settings.reset(),window.location.reload()}};n.\u0275fac=function(r){return new(r||n)},n.\u0275cmp=E({type:n,selectors:[["app-user"]],decls:22,vars:9,consts:[["menu","matMenu"],["matIconButton","",1,"user-button",3,"matMenuTriggerFor"],[1,"user-info"],[1,"user-name"],[1,"user-email"],[1,"user-roles"],["mat-menu-item","",3,"click"],["mat-menu-item",""],["routerLink","/profile/overview","mat-menu-item",""],["routerLink","/profile/settings","mat-menu-item",""]],template:function(r,o){if(r&1){let a=Y();h(0,"button",1)(1,"mat-icon"),_(2,"account_circle"),p()(),h(3,"mat-menu",null,0)(5,"div",2)(6,"div",3),_(7),p(),h(8,"div",4),_(9),p(),h(10,"div",5),_(11),p()(),k(12,"mat-divider"),N(13,_fe,12,6),h(14,"button",6),S("click",function(){return I(a),A(o.restore())}),h(15,"mat-icon"),_(16,"restore"),p(),h(17,"span"),_(18),me(19,"translate"),p()(),N(20,bfe,6,3,"button",7)(21,vfe,6,3,"button",7),p()}if(r&2){let a=Se(4);y("matMenuTriggerFor",a),g(7),H(o.userName),g(2),H(o.userEmail),g(2),H(o.userRoles),g(2),L(o.isAuthenticated()?13:-1),g(5),H(Oe(19,7,"restore_defaults")),g(2),L(o.isAuthenticated()?20:21)}},dependencies:[gt,Nn,ze,ti,ot,mt,Ls,jr,El,Ns,sa,Ha,wr,Cr],styles:["[_nghost-%COMP%]{display:inline-block}.user-button[_ngcontent-%COMP%]{display:inline-flex!important}.user-info[_ngcontent-%COMP%]{padding:16px;max-width:250px}.user-info[_ngcontent-%COMP%] .user-name[_ngcontent-%COMP%]{font-weight:500;font-size:14px;margin-bottom:4px}.user-info[_ngcontent-%COMP%] .user-email[_ngcontent-%COMP%]{font-size:12px;color:#0009;margin-bottom:4px}.user-info[_ngcontent-%COMP%] .user-roles[_ngcontent-%COMP%]{font-size:11px;color:#00000080;font-style:italic}"]});let t=n;return t})();function yfe(t,n){if(t&1){let e=Y();h(0,"button",4),S("click",function(){I(e);let r=C();return A(r.toggleSidenav.emit())}),h(1,"mat-icon"),_(2,"menu"),p()()}}function xfe(t,n){t&1&&k(0,"app-branding")}var w8=(()=>{let n=class n{constructor(){this.showToggle=ne(!0),this.showBranding=ne(!1),this.toggleSidenav=bi(),this.toggleSidenavNotice=bi()}toggleFullscreen(){kI.isEnabled&&kI.toggle()}};n.\u0275fac=function(r){return new(r||n)},n.\u0275cmp=E({type:n,selectors:[["app-header"]],hostAttrs:[1,"matero-header"],inputs:{showToggle:[1,"showToggle"],showBranding:[1,"showBranding"]},outputs:{toggleSidenav:"toggleSidenav",toggleSidenavNotice:"toggleSidenavNotice"},decls:17,vars:2,consts:[["matIconButton",""],[1,"flex-fill"],["matIconButton","",1,"hide-small",3,"click"],[1,"hide-small"],["matIconButton","",3,"click"]],template:function(r,o){r&1&&(h(0,"mat-toolbar"),N(1,yfe,3,0,"button",0),N(2,xfe,1,0,"app-branding"),k(3,"span",1)(4,"app-github-button"),h(5,"button",0)(6,"mat-icon"),_(7,"search"),p()(),k(8,"app-translate"),h(9,"button",2),S("click",function(){return o.toggleFullscreen()}),h(10,"mat-icon"),_(11,"fullscreen"),p()(),k(12,"app-notification",3)(13,"app-user"),h(14,"button",2),S("click",function(){return o.toggleSidenavNotice.emit()}),h(15,"mat-icon"),_(16,"list"),p()()()),r&2&&(g(),L(o.showToggle()?1:-1),g(),L(o.showBranding()?2:-1))},dependencies:[ZC,KC,ze,ti,ot,mt,XC,d8,y8,x8,C8],styles:[`.matero-header{--mat-toolbar-container-background-color: transparent;position:relative;z-index:200;display:block;background-color:var(--header-background-color);-webkit-backdrop-filter:blur(8px);backdrop-filter:blur(8px)} +`],encapsulation:2});let t=n;return t})();var np=["*"];function Cfe(t,n){t&1&&oe(0)}var k8=["tabListContainer"],S8=["tabList"],T8=["tabListInner"],I8=["nextPaginator"],A8=["previousPaginator"],wfe=["content"];function Dfe(t,n){}var Efe=["tabBodyWrapper"],Mfe=["tabHeader"];function kfe(t,n){}function Sfe(t,n){if(t&1&&R(0,kfe,0,0,"ng-template",12),t&2){let e=C().$implicit;y("cdkPortalOutlet",e.templateLabel)}}function Tfe(t,n){if(t&1&&_(0),t&2){let e=C().$implicit;H(e.textLabel)}}function Ife(t,n){if(t&1){let e=Y();h(0,"div",7,2),S("click",function(){let r=I(e),o=r.$implicit,a=r.$index,s=C(),l=Se(1);return A(s._handleClick(o,l,a))})("cdkFocusChange",function(r){let o=I(e).$index,a=C();return A(a._tabFocusChanged(r,o))}),k(2,"span",8)(3,"div",9),h(4,"span",10)(5,"span",11),N(6,Sfe,1,1,null,12)(7,Tfe,1,1),p()()()}if(t&2){let e=n.$implicit,i=n.$index,r=Se(1),o=C();it(e.labelClass),G("mdc-tab--active",o.selectedIndex===i),y("id",o._getTabLabelId(e,i))("disabled",e.disabled)("fitInkBarToContent",o.fitInkBarToContent),X("tabIndex",o._getTabIndex(i))("aria-posinset",i+1)("aria-setsize",o._tabs.length)("aria-controls",o._getTabContentId(i))("aria-selected",o.selectedIndex===i)("aria-label",e.ariaLabel||null)("aria-labelledby",!e.ariaLabel&&e.ariaLabelledby?e.ariaLabelledby:null),g(3),y("matRippleTrigger",r)("matRippleDisabled",e.disabled||o.disableRipple),g(3),L(e.templateLabel?6:7)}}function Afe(t,n){t&1&&oe(0)}function Ofe(t,n){if(t&1){let e=Y();h(0,"mat-tab-body",13),S("_onCentered",function(){I(e);let r=C();return A(r._removeTabBodyWrapperHeight())})("_onCentering",function(r){I(e);let o=C();return A(o._setTabBodyWrapperHeight(r))})("_beforeCentering",function(r){I(e);let o=C();return A(o._bodyCentered(r))}),p()}if(t&2){let e=n.$implicit,i=n.$index,r=C();it(e.bodyClass),y("id",r._getTabContentId(i))("content",e.content)("position",e.position)("animationDuration",r.animationDuration)("preserveContent",r.preserveContent),X("tabindex",r.contentTabIndex!=null&&r.selectedIndex===i?r.contentTabIndex:null)("aria-labelledby",r._getTabLabelId(e,i))("aria-hidden",r.selectedIndex!==i)}}var Rfe=["mat-tab-nav-bar",""],Pfe=["mat-tab-link",""],Ffe=new T("MatTabContent"),Nfe=(()=>{class t{template=u(te);constructor(){}static \u0275fac=function(i){return new(i||t)};static \u0275dir=F({type:t,selectors:[["","matTabContent",""]],features:[Ce([{provide:Ffe,useExisting:t}])]})}return t})(),Lfe=new T("MatTabLabel"),O8=new T("MAT_TAB"),Vfe=(()=>{class t extends eB{_closestTab=u(O8,{optional:!0});static \u0275fac=(()=>{let e;return function(r){return(e||(e=fe(t)))(r||t)}})();static \u0275dir=F({type:t,selectors:[["","mat-tab-label",""],["","matTabLabel",""]],features:[Ce([{provide:Lfe,useExisting:t}]),le]})}return t})(),R8=new T("MAT_TAB_GROUP"),__=(()=>{class t{_viewContainerRef=u(nt);_closestTabGroup=u(R8,{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 z;position=null;origin=null;isActive=!1;constructor(){u(ut).load(Di)}ngOnChanges(e){(e.hasOwnProperty("textLabel")||e.hasOwnProperty("disabled"))&&this._stateChanges.next()}ngOnDestroy(){this._stateChanges.complete()}ngOnInit(){this._contentPortal=new Cn(this._explicitContent||this._implicitContent,this._viewContainerRef)}_setTemplateLabelInput(e){e&&e._closestTab===this&&(this._templateLabel=e)}static \u0275fac=function(i){return new(i||t)};static \u0275cmp=E({type:t,selectors:[["mat-tab"]],contentQueries:function(i,r,o){if(i&1&&(xe(o,Vfe,5),xe(o,Nfe,7,te)),i&2){let a;B(a=j())&&(r.templateLabel=a.first),B(a=j())&&(r._explicitContent=a.first)}},viewQuery:function(i,r){if(i&1&&ie(te,7),i&2){let o;B(o=j())&&(r._implicitContent=o.first)}},hostAttrs:["hidden",""],hostVars:1,hostBindings:function(i,r){i&2&&X("id",null)},inputs:{disabled:[2,"disabled","disabled",V],textLabel:[0,"label","textLabel"],ariaLabel:[0,"aria-label","ariaLabel"],ariaLabelledby:[0,"aria-labelledby","ariaLabelledby"],labelClass:"labelClass",bodyClass:"bodyClass",id:"id"},exportAs:["matTab"],features:[Ce([{provide:O8,useExisting:t}]),Ae],ngContentSelectors:np,decls:1,vars:0,template:function(i,r){i&1&&(Me(),xa(0,Cfe,1,0,"ng-template"))},encapsulation:2})}return t})(),AI="mdc-tab-indicator--active",D8="mdc-tab-indicator--no-transition",ew=class{_items;_currentItem;constructor(n){this._items=n}hide(){this._items.forEach(n=>n.deactivateInkBar()),this._currentItem=void 0}alignToElement(n){let e=this._items.find(r=>r.elementRef.nativeElement===n),i=this._currentItem;if(e!==i&&(i?.deactivateInkBar(),e)){let r=i?.elementRef.nativeElement.getBoundingClientRect?.();e.activateInkBar(r),this._currentItem=e}}},P8=(()=>{class t{_elementRef=u(q);_inkBarElement;_inkBarContentElement;_fitToContent=!1;get fitInkBarToContent(){return this._fitToContent}set fitInkBarToContent(e){this._fitToContent!==e&&(this._fitToContent=e,this._inkBarElement&&this._appendInkBarElement())}activateInkBar(e){let i=this._elementRef.nativeElement;if(!e||!i.getBoundingClientRect||!this._inkBarContentElement){i.classList.add(AI);return}let r=i.getBoundingClientRect(),o=e.width/r.width,a=e.left-r.left;i.classList.add(D8),this._inkBarContentElement.style.setProperty("transform",`translateX(${a}px) scaleX(${o})`),i.getBoundingClientRect(),i.classList.remove(D8),i.classList.add(AI),this._inkBarContentElement.style.setProperty("transform","")}deactivateInkBar(){this._elementRef.nativeElement.classList.remove(AI)}ngOnInit(){this._createInkBarElement()}ngOnDestroy(){this._inkBarElement?.remove(),this._inkBarElement=this._inkBarContentElement=null}_createInkBarElement(){let e=this._elementRef.nativeElement.ownerDocument||document,i=this._inkBarElement=e.createElement("span"),r=this._inkBarContentElement=e.createElement("span");i.className="mdc-tab-indicator",r.className="mdc-tab-indicator__content mdc-tab-indicator__content--underline",i.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(i){return new(i||t)};static \u0275dir=F({type:t,inputs:{fitInkBarToContent:[2,"fitInkBarToContent","fitInkBarToContent",V]}})}return t})();var F8=(()=>{class t extends P8{elementRef=u(q);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(r){return(e||(e=fe(t)))(r||t)}})();static \u0275dir=F({type:t,selectors:[["","matTabLabelWrapper",""]],hostVars:3,hostBindings:function(i,r){i&2&&(X("aria-disabled",!!r.disabled),G("mat-mdc-tab-disabled",r.disabled))},inputs:{disabled:[2,"disabled","disabled",V]},features:[le]})}return t})(),E8={passive:!0},Bfe=650,jfe=100,N8=(()=>{class t{_elementRef=u(q);_changeDetectorRef=u(ye);_viewportRuler=u(Xn);_dir=u(Vt,{optional:!0});_ngZone=u(ae);_platform=u(qe);_sharedResizeObserver=u(qy);_injector=u(de);_renderer=u(je);_animationsDisabled=Ye();_eventCleanups;_scrollDistance=0;_selectedIndexChanged=!1;_destroyed=new z;_showPaginationControls=!1;_disableScrollAfter=!0;_disableScrollBefore=!0;_tabLabelCount;_scrollDistanceChanged;_keyManager;_currentTextContent;_stopScrolling=new z;disablePagination=!1;get selectedIndex(){return this._selectedIndex}set selectedIndex(e){let i=isNaN(e)?0:e;this._selectedIndex!=i&&(this._selectedIndexChanged=!0,this._selectedIndex=i,this._keyManager&&this._keyManager.updateActiveItem(i))}_selectedIndex=0;selectFocusedIndex=new U;indexFocused=new U;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"),E8),this._renderer.listen(this._nextPaginator.nativeElement,"touchstart",()=>this._handlePaginatorPress("after"),E8))}ngAfterContentInit(){let e=this._dir?this._dir.change:Q("ltr"),i=this._sharedResizeObserver.observe(this._elementRef.nativeElement).pipe(Rt(32),Te(this._destroyed)),r=this._viewportRuler.change(150).pipe(Te(this._destroyed)),o=()=>{this.updatePagination(),this._alignInkBarToSelectedTab()};this._keyManager=new bs(this._items).withHorizontalOrientation(this._getLayoutDirection()).withHomeAndEnd().withWrap().skipPredicate(()=>!1),this._keyManager.updateActiveItem(Math.max(this._selectedIndex,0)),pt(o,{injector:this._injector}),Je(e,r,i,this._items.changes,this._itemsResized()).pipe(Te(this._destroyed)).subscribe(()=>{this._ngZone.run(()=>{Promise.resolve().then(()=>{this._scrollDistance=Math.max(0,Math.min(this._getMaxScrollDistance(),this._scrollDistance)),o()})}),this._keyManager?.withHorizontalOrientation(this._getLayoutDirection())}),this._keyManager.change.subscribe(a=>{this.indexFocused.emit(a),this._setTabFocus(a)})}_itemsResized(){return typeof ResizeObserver!="function"?Fi:this._items.changes.pipe(He(this._items),$e(e=>new Fe(i=>this._ngZone.runOutsideAngular(()=>{let r=new ResizeObserver(o=>i.next(o));return e.forEach(o=>r.observe(o.elementRef.nativeElement)),()=>{r.disconnect()}}))),Ya(1),ce(e=>e.some(i=>i.contentRect.width>0&&i.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(!Ft(e))switch(e.keyCode){case 13:case 32:if(this.focusIndex!==this.selectedIndex){let i=this._items.get(this.focusIndex);i&&!i.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 i=this._tabListContainer.nativeElement;this._getLayoutDirection()=="ltr"?i.scrollLeft=0:i.scrollLeft=i.scrollWidth-i.offsetWidth}}_getLayoutDirection(){return this._dir&&this._dir.value==="rtl"?"rtl":"ltr"}_updateTabScrollPosition(){if(this.disablePagination)return;let e=this.scrollDistance,i=this._getLayoutDirection()==="ltr"?-e:e;this._tabList.nativeElement.style.transform=`translateX(${Math.round(i)}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 i=this._tabListContainer.nativeElement.offsetWidth,r=(e=="before"?-1:1)*i/3;return this._scrollTo(this._scrollDistance+r)}_handlePaginatorClick(e){this._stopInterval(),this._scrollHeader(e)}_scrollToLabel(e){if(this.disablePagination)return;let i=this._items?this._items.toArray()[e]:null;if(!i)return;let r=this._tabListContainer.nativeElement.offsetWidth,{offsetLeft:o,offsetWidth:a}=i.elementRef.nativeElement,s,l;this._getLayoutDirection()=="ltr"?(s=o,l=s+a):(l=this._tabListInner.nativeElement.offsetWidth-o,s=l-a);let c=this.scrollDistance,d=this.scrollDistance+r;sd&&(this.scrollDistance+=Math.min(l-d,s-c))}_checkPaginationEnabled(){if(this.disablePagination)this._showPaginationControls=!1;else{let e=this._tabListInner.nativeElement.scrollWidth,i=this._elementRef.nativeElement.offsetWidth,r=e-i>=5;r||(this.scrollDistance=0),r!==this._showPaginationControls&&(this._showPaginationControls=r,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,i=this._tabListContainer.nativeElement.offsetWidth;return e-i||0}_alignInkBarToSelectedTab(){let e=this._items&&this._items.length?this._items.toArray()[this.selectedIndex]:null,i=e?e.elementRef.nativeElement:null;i?this._inkBar.alignToElement(i):this._inkBar.hide()}_stopInterval(){this._stopScrolling.next()}_handlePaginatorPress(e,i){i&&i.button!=null&&i.button!==0||(this._stopInterval(),qa(Bfe,jfe).pipe(Te(Je(this._stopScrolling,this._destroyed))).subscribe(()=>{let{maxScrollDistance:r,distance:o}=this._scrollHeader(e);(o===0||o>=r)&&this._stopInterval()}))}_scrollTo(e){if(this.disablePagination)return{maxScrollDistance:0,distance:0};let i=this._getMaxScrollDistance();return this._scrollDistance=Math.max(0,Math.min(i,e)),this._scrollDistanceChanged=!0,this._checkScrollingControls(),{maxScrollDistance:i,distance:this._scrollDistance}}static \u0275fac=function(i){return new(i||t)};static \u0275dir=F({type:t,inputs:{disablePagination:[2,"disablePagination","disablePagination",V],selectedIndex:[2,"selectedIndex","selectedIndex",ct]},outputs:{selectFocusedIndex:"selectFocusedIndex",indexFocused:"indexFocused"}})}return t})(),Hfe=(()=>{class t extends N8{_items;_tabListContainer;_tabList;_tabListInner;_nextPaginator;_previousPaginator;_inkBar;ariaLabel;ariaLabelledby;disableRipple=!1;ngAfterContentInit(){this._inkBar=new ew(this._items),super.ngAfterContentInit()}_itemSelected(e){e.preventDefault()}static \u0275fac=(()=>{let e;return function(r){return(e||(e=fe(t)))(r||t)}})();static \u0275cmp=E({type:t,selectors:[["mat-tab-header"]],contentQueries:function(i,r,o){if(i&1&&xe(o,F8,4),i&2){let a;B(a=j())&&(r._items=a)}},viewQuery:function(i,r){if(i&1&&(ie(k8,7),ie(S8,7),ie(T8,7),ie(I8,5),ie(A8,5)),i&2){let o;B(o=j())&&(r._tabListContainer=o.first),B(o=j())&&(r._tabList=o.first),B(o=j())&&(r._tabListInner=o.first),B(o=j())&&(r._nextPaginator=o.first),B(o=j())&&(r._previousPaginator=o.first)}},hostAttrs:[1,"mat-mdc-tab-header"],hostVars:4,hostBindings:function(i,r){i&2&&G("mat-mdc-tab-header-pagination-controls-enabled",r._showPaginationControls)("mat-mdc-tab-header-rtl",r._getLayoutDirection()=="rtl")},inputs:{ariaLabel:[0,"aria-label","ariaLabel"],ariaLabelledby:[0,"aria-labelledby","ariaLabelledby"],disableRipple:[2,"disableRipple","disableRipple",V]},features:[le],ngContentSelectors:np,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(i,r){if(i&1){let o=Y();Me(),h(0,"div",5,0),S("click",function(){return I(o),A(r._handlePaginatorClick("before"))})("mousedown",function(s){return I(o),A(r._handlePaginatorPress("before",s))})("touchend",function(){return I(o),A(r._stopInterval())}),k(2,"div",6),p(),h(3,"div",7,1),S("keydown",function(s){return I(o),A(r._handleKeydown(s))}),h(5,"div",8,2),S("cdkObserveContent",function(){return I(o),A(r._onContentChanges())}),h(7,"div",9,3),oe(9),p()()(),h(10,"div",10,4),S("mousedown",function(s){return I(o),A(r._handlePaginatorPress("after",s))})("click",function(){return I(o),A(r._handlePaginatorClick("after"))})("touchend",function(){return I(o),A(r._stopInterval())}),k(12,"div",6),p()}i&2&&(G("mat-mdc-tab-header-pagination-disabled",r._disableScrollBefore),y("matRippleDisabled",r._disableScrollBefore||r.disableRipple),g(3),G("_mat-animation-noopable",r._animationsDisabled),g(2),X("aria-label",r.ariaLabel||null)("aria-labelledby",r.ariaLabelledby||null),g(5),G("mat-mdc-tab-header-pagination-disabled",r._disableScrollAfter),y("matRippleDisabled",r._disableScrollAfter||r.disableRipple))},dependencies:[Vn,Wf],styles:[`.mat-mdc-tab-header{display:flex;overflow:hidden;position:relative;flex-shrink:0}.mdc-tab-indicator .mdc-tab-indicator__content{transition-duration:var(--mat-tab-animation-duration, 250ms)}.mat-mdc-tab-header-pagination{-webkit-user-select:none;user-select:none;position:relative;display:none;justify-content:center;align-items:center;min-width:32px;cursor:pointer;z-index:2;-webkit-tap-highlight-color:rgba(0,0,0,0);touch-action:none;box-sizing:content-box;outline:0}.mat-mdc-tab-header-pagination::-moz-focus-inner{border:0}.mat-mdc-tab-header-pagination .mat-ripple-element{opacity:.12;background-color:var(--mat-tab-inactive-ripple-color, var(--mat-sys-on-surface))}.mat-mdc-tab-header-pagination-controls-enabled .mat-mdc-tab-header-pagination{display:flex}.mat-mdc-tab-header-pagination-before,.mat-mdc-tab-header-rtl .mat-mdc-tab-header-pagination-after{padding-left:4px}.mat-mdc-tab-header-pagination-before .mat-mdc-tab-header-pagination-chevron,.mat-mdc-tab-header-rtl .mat-mdc-tab-header-pagination-after .mat-mdc-tab-header-pagination-chevron{transform:rotate(-135deg)}.mat-mdc-tab-header-rtl .mat-mdc-tab-header-pagination-before,.mat-mdc-tab-header-pagination-after{padding-right:4px}.mat-mdc-tab-header-rtl .mat-mdc-tab-header-pagination-before .mat-mdc-tab-header-pagination-chevron,.mat-mdc-tab-header-pagination-after .mat-mdc-tab-header-pagination-chevron{transform:rotate(45deg)}.mat-mdc-tab-header-pagination-chevron{border-style:solid;border-width:2px 2px 0 0;height:8px;width:8px;border-color:var(--mat-tab-pagination-icon-color, var(--mat-sys-on-surface))}.mat-mdc-tab-header-pagination-disabled{box-shadow:none;cursor:default;pointer-events:none}.mat-mdc-tab-header-pagination-disabled .mat-mdc-tab-header-pagination-chevron{opacity:.4}.mat-mdc-tab-list{flex-grow:1;position:relative;transition:transform 500ms cubic-bezier(0.35, 0, 0.25, 1)}._mat-animation-noopable .mat-mdc-tab-list{transition:none}.mat-mdc-tab-label-container{display:flex;flex-grow:1;overflow:hidden;z-index:1;border-bottom-style:solid;border-bottom-width:var(--mat-tab-divider-height, 1px);border-bottom-color:var(--mat-tab-divider-color, var(--mat-sys-surface-variant))}.mat-mdc-tab-group-inverted-header .mat-mdc-tab-label-container{border-bottom:none;border-top-style:solid;border-top-width:var(--mat-tab-divider-height, 1px);border-top-color:var(--mat-tab-divider-color, var(--mat-sys-surface-variant))}.mat-mdc-tab-labels{display:flex;flex:1 0 auto}[mat-align-tabs=center]>.mat-mdc-tab-header .mat-mdc-tab-labels{justify-content:center}[mat-align-tabs=end]>.mat-mdc-tab-header .mat-mdc-tab-labels{justify-content:flex-end}.cdk-drop-list .mat-mdc-tab-labels,.mat-mdc-tab-labels.cdk-drop-list{min-height:var(--mat-tab-container-height, 48px)}.mat-mdc-tab::before{margin:5px}@media(forced-colors: active){.mat-mdc-tab[aria-disabled=true]{color:GrayText}} +`],encapsulation:2})}return t})(),L8=new T("MAT_TABS_CONFIG"),M8=(()=>{class t extends yr{_host=u(OI);_ngZone=u(ae);_centeringSub=ke.EMPTY;_leavingSub=ke.EMPTY;constructor(){super()}ngOnInit(){super.ngOnInit(),this._centeringSub=this._host._beforeCentering.pipe(He(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(i){return new(i||t)};static \u0275dir=F({type:t,selectors:[["","matTabBodyHost",""]],features:[le]})}return t})(),OI=(()=>{class t{_elementRef=u(q);_dir=u(Vt,{optional:!0});_ngZone=u(ae);_injector=u(de);_renderer=u(je);_diAnimationsDisabled=Ye();_eventCleanups;_initialized;_fallbackTimer;_positionIndex;_dirChangeSubscription=ke.EMPTY;_position;_previousPosition;_onCentering=new U;_beforeCentering=new U;_afterLeavingCenter=new U;_onCentered=new U(!0);_portalHost;_contentElement;_content;animationDuration="500ms";preserveContent=!1;set position(e){this._positionIndex=e,this._computePositionAnimationState()}constructor(){if(this._dir){let e=u(ye);this._dirChangeSubscription=this._dir.change.subscribe(i=>{this._computePositionAnimationState(i),e.markForCheck()})}}ngOnInit(){this._bindTransitionEvents(),this._position==="center"&&(this._setActiveClass(!0),pt(()=>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,i=r=>{r.target===this._contentElement?.nativeElement&&(this._elementRef.nativeElement.classList.remove("mat-tab-body-animating"),r.type==="transitionend"&&this._transitionDone())};this._eventCleanups=[this._renderer.listen(e,"transitionstart",r=>{r.target===this._contentElement?.nativeElement&&(this._elementRef.nativeElement.classList.add("mat-tab-body-animating"),this._transitionStarted())}),this._renderer.listen(e,"transitionend",i),this._renderer.listen(e,"transitioncancel",i)]})}_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(),pt(()=>this._transitionDone(),{injector:this._injector})}_animationsDisabled(){return this._diAnimationsDisabled||this.animationDuration==="0ms"||this.animationDuration==="0s"}static \u0275fac=function(i){return new(i||t)};static \u0275cmp=E({type:t,selectors:[["mat-tab-body"]],viewQuery:function(i,r){if(i&1&&(ie(M8,5),ie(wfe,5)),i&2){let o;B(o=j())&&(r._portalHost=o.first),B(o=j())&&(r._contentElement=o.first)}},hostAttrs:[1,"mat-mdc-tab-body"],hostVars:1,hostBindings:function(i,r){i&2&&X("inert",r._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(i,r){i&1&&(h(0,"div",1,0),R(2,Dfe,0,0,"ng-template",2),p()),i&2&&G("mat-tab-body-content-left",r._position==="left")("mat-tab-body-content-right",r._position==="right")("mat-tab-body-content-can-animate",r._position==="center"||r._previousPosition==="center")},dependencies:[M8,Pa],styles:[`.mat-mdc-tab-body{top:0;left:0;right:0;bottom:0;position:absolute;display:block;overflow:hidden;outline:0;flex-basis:100%}.mat-mdc-tab-body.mat-mdc-tab-body-active{position:relative;overflow-x:hidden;overflow-y:auto;z-index:1;flex-grow:1}.mat-mdc-tab-group.mat-mdc-tab-group-dynamic-height .mat-mdc-tab-body.mat-mdc-tab-body-active{overflow-y:hidden}.mat-mdc-tab-body-content{height:100%;overflow:auto;transform:none;visibility:hidden}.mat-tab-body-animating>.mat-mdc-tab-body-content,.mat-mdc-tab-body-active>.mat-mdc-tab-body-content{visibility:visible}.mat-tab-body-animating>.mat-mdc-tab-body-content{min-height:1px}.mat-mdc-tab-group-dynamic-height .mat-mdc-tab-body-content{overflow:hidden}.mat-tab-body-content-can-animate{transition:transform var(--mat-tab-animation-duration) 1ms cubic-bezier(0.35, 0, 0.25, 1)}.mat-mdc-tab-body-wrapper._mat-animation-noopable .mat-tab-body-content-can-animate{transition:none}.mat-tab-body-content-left{transform:translate3d(-100%, 0, 0)}.mat-tab-body-content-right{transform:translate3d(100%, 0, 0)} +`],encapsulation:2})}return t})(),tw=(()=>{class t{_elementRef=u(q);_changeDetectorRef=u(ye);_ngZone=u(ae);_tabsSubscription=ke.EMPTY;_tabLabelSubscription=ke.EMPTY;_tabBodySubscription=ke.EMPTY;_diAnimationsDisabled=Ye();_allTabs;_tabBodies;_tabBodyWrapper;_tabHeader;_tabs=new pr;_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 i=e+"";this._animationDuration=/^\d+$/.test(i)?e+"ms":i}_animationDuration;get contentTabIndex(){return this._contentTabIndex}set contentTabIndex(e){this._contentTabIndex=isNaN(e)?null:e}_contentTabIndex;disablePagination=!1;disableRipple=!1;preserveContent=!1;get backgroundColor(){return this._backgroundColor}set backgroundColor(e){let i=this._elementRef.nativeElement.classList;i.remove("mat-tabs-with-background",`mat-background-${this.backgroundColor}`),e&&i.add("mat-tabs-with-background",`mat-background-${e}`),this._backgroundColor=e}_backgroundColor;ariaLabel;ariaLabelledby;selectedIndexChange=new U;focusChange=new U;animationDone=new U;selectedTabChange=new U(!0);_groupId;_isServer=!u(qe).isBrowser;constructor(){let e=u(L8,{optional:!0});this._groupId=u(Ze).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 i=this._selectedIndex==null;if(!i){this.selectedTabChange.emit(this._createChangeEvent(e));let r=this._tabBodyWrapper.nativeElement;r.style.minHeight=r.clientHeight+"px"}Promise.resolve().then(()=>{this._tabs.forEach((r,o)=>r.isActive=o===e),i||(this.selectedIndexChange.emit(e),this._tabBodyWrapper.nativeElement.style.minHeight="")})}this._tabs.forEach((i,r)=>{i.position=r-e,this._selectedIndex!=null&&i.position==0&&!i.origin&&(i.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 i=this._tabs.toArray(),r;for(let o=0;o{i[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(He(this._allTabs)).subscribe(e=>{this._tabs.reset(e.filter(i=>i._closestTabGroup===this||!i._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 i=this._tabHeader;i&&(i.focusIndex=e)}_focusChanged(e){this._lastFocusedTabIndex=e,this.focusChange.emit(this._createChangeEvent(e))}_createChangeEvent(e){let i=new RI;return i.index=e,this._tabs&&this._tabs.length&&(i.tab=this._tabs.toArray()[e]),i}_subscribeToTabLabels(){this._tabLabelSubscription&&this._tabLabelSubscription.unsubscribe(),this._tabLabelSubscription=Je(...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,i){return e.id||`${this._groupId}-label-${i}`}_getTabContentId(e){return`${this._groupId}-content-${e}`}_setTabBodyWrapperHeight(e){if(!this.dynamicHeight||!this._tabBodyWrapperHeight){this._tabBodyWrapperHeight=e;return}let i=this._tabBodyWrapper.nativeElement;i.style.height=this._tabBodyWrapperHeight+"px",this._tabBodyWrapper.nativeElement.offsetHeight&&(i.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,i,r){i.focusIndex=r,e.disabled||(this.selectedIndex=r)}_getTabIndex(e){let i=this._lastFocusedTabIndex??this.selectedIndex;return e===i?0:-1}_tabFocusChanged(e,i){e&&e!=="mouse"&&e!=="touch"&&(this._tabHeader.focusIndex=i)}_bodyCentered(e){e&&this._tabBodies?.forEach((i,r)=>i._setActiveClass(r===this._selectedIndex))}_animationsDisabled(){return this._diAnimationsDisabled||this.animationDuration==="0"||this.animationDuration==="0ms"}static \u0275fac=function(i){return new(i||t)};static \u0275cmp=E({type:t,selectors:[["mat-tab-group"]],contentQueries:function(i,r,o){if(i&1&&xe(o,__,5),i&2){let a;B(a=j())&&(r._allTabs=a)}},viewQuery:function(i,r){if(i&1&&(ie(Efe,5),ie(Mfe,5),ie(OI,5)),i&2){let o;B(o=j())&&(r._tabBodyWrapper=o.first),B(o=j())&&(r._tabHeader=o.first),B(o=j())&&(r._tabBodies=o)}},hostAttrs:[1,"mat-mdc-tab-group"],hostVars:11,hostBindings:function(i,r){i&2&&(X("mat-align-tabs",r.alignTabs),it("mat-"+(r.color||"primary")),Dt("--mat-tab-animation-duration",r.animationDuration),G("mat-mdc-tab-group-dynamic-height",r.dynamicHeight)("mat-mdc-tab-group-inverted-header",r.headerPosition==="below")("mat-mdc-tab-group-stretch-tabs",r.stretchTabs))},inputs:{color:"color",fitInkBarToContent:[2,"fitInkBarToContent","fitInkBarToContent",V],stretchTabs:[2,"mat-stretch-tabs","stretchTabs",V],alignTabs:[0,"mat-align-tabs","alignTabs"],dynamicHeight:[2,"dynamicHeight","dynamicHeight",V],selectedIndex:[2,"selectedIndex","selectedIndex",ct],headerPosition:"headerPosition",animationDuration:"animationDuration",contentTabIndex:[2,"contentTabIndex","contentTabIndex",ct],disablePagination:[2,"disablePagination","disablePagination",V],disableRipple:[2,"disableRipple","disableRipple",V],preserveContent:[2,"preserveContent","preserveContent",V],backgroundColor:"backgroundColor",ariaLabel:[0,"aria-label","ariaLabel"],ariaLabelledby:[0,"aria-labelledby","ariaLabelledby"]},outputs:{selectedIndexChange:"selectedIndexChange",focusChange:"focusChange",animationDone:"animationDone",selectedTabChange:"selectedTabChange"},exportAs:["matTabGroup"],features:[Ce([{provide:R8,useExisting:t}])],ngContentSelectors:np,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(i,r){if(i&1){let o=Y();Me(),h(0,"mat-tab-header",3,0),S("indexFocused",function(s){return I(o),A(r._focusChanged(s))})("selectFocusedIndex",function(s){return I(o),A(r.selectedIndex=s)}),xt(2,Ife,8,17,"div",4,xm),p(),N(4,Afe,1,0),h(5,"div",5,1),xt(7,Ofe,1,10,"mat-tab-body",6,xm),p()}i&2&&(y("selectedIndex",r.selectedIndex||0)("disableRipple",r.disableRipple)("disablePagination",r.disablePagination),Kl("aria-label",r.ariaLabel)("aria-labelledby",r.ariaLabelledby),g(2),Ct(r._tabs),g(2),L(r._isServer?4:-1),g(),G("_mat-animation-noopable",r._animationsDisabled()),g(2),Ct(r._tabs))},dependencies:[Hfe,F8,$f,Vn,yr,OI],styles:[`.mdc-tab{min-width:90px;padding:0 24px;display:flex;flex:1 0 auto;justify-content:center;box-sizing:border-box;border:none;outline:none;text-align:center;white-space:nowrap;cursor:pointer;z-index:1;touch-action:manipulation}.mdc-tab__content{display:flex;align-items:center;justify-content:center;height:inherit;pointer-events:none}.mdc-tab__text-label{transition:150ms color linear;display:inline-block;line-height:1;z-index:2}.mdc-tab--active .mdc-tab__text-label{transition-delay:100ms}._mat-animation-noopable .mdc-tab__text-label{transition:none}.mdc-tab-indicator{display:flex;position:absolute;top:0;left:0;justify-content:center;width:100%;height:100%;pointer-events:none;z-index:1}.mdc-tab-indicator__content{transition:var(--mat-tab-animation-duration, 250ms) transform cubic-bezier(0.4, 0, 0.2, 1);transform-origin:left;opacity:0}.mdc-tab-indicator__content--underline{align-self:flex-end;box-sizing:border-box;width:100%;border-top-style:solid}.mdc-tab-indicator--active .mdc-tab-indicator__content{opacity:1}._mat-animation-noopable .mdc-tab-indicator__content,.mdc-tab-indicator--no-transition .mdc-tab-indicator__content{transition:none}.mat-mdc-tab-ripple.mat-mdc-tab-ripple{position:absolute;top:0;left:0;bottom:0;right:0;pointer-events:none}.mat-mdc-tab{-webkit-tap-highlight-color:rgba(0,0,0,0);-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;text-decoration:none;background:none;height:var(--mat-tab-container-height, 48px);font-family:var(--mat-tab-label-text-font, var(--mat-sys-title-small-font));font-size:var(--mat-tab-label-text-size, var(--mat-sys-title-small-size));letter-spacing:var(--mat-tab-label-text-tracking, var(--mat-sys-title-small-tracking));line-height:var(--mat-tab-label-text-line-height, var(--mat-sys-title-small-line-height));font-weight:var(--mat-tab-label-text-weight, var(--mat-sys-title-small-weight))}.mat-mdc-tab.mdc-tab{flex-grow:0}.mat-mdc-tab .mdc-tab-indicator__content--underline{border-color:var(--mat-tab-active-indicator-color, var(--mat-sys-primary));border-top-width:var(--mat-tab-active-indicator-height, 2px);border-radius:var(--mat-tab-active-indicator-shape, 0)}.mat-mdc-tab:hover .mdc-tab__text-label{color:var(--mat-tab-inactive-hover-label-text-color, var(--mat-sys-on-surface))}.mat-mdc-tab:focus .mdc-tab__text-label{color:var(--mat-tab-inactive-focus-label-text-color, var(--mat-sys-on-surface))}.mat-mdc-tab.mdc-tab--active .mdc-tab__text-label{color:var(--mat-tab-active-label-text-color, var(--mat-sys-on-surface))}.mat-mdc-tab.mdc-tab--active .mdc-tab__ripple::before,.mat-mdc-tab.mdc-tab--active .mat-ripple-element{background-color:var(--mat-tab-active-ripple-color, var(--mat-sys-on-surface))}.mat-mdc-tab.mdc-tab--active:hover .mdc-tab__text-label{color:var(--mat-tab-active-hover-label-text-color, var(--mat-sys-on-surface))}.mat-mdc-tab.mdc-tab--active:hover .mdc-tab-indicator__content--underline{border-color:var(--mat-tab-active-hover-indicator-color, var(--mat-sys-primary))}.mat-mdc-tab.mdc-tab--active:focus .mdc-tab__text-label{color:var(--mat-tab-active-focus-label-text-color, var(--mat-sys-on-surface))}.mat-mdc-tab.mdc-tab--active:focus .mdc-tab-indicator__content--underline{border-color:var(--mat-tab-active-focus-indicator-color, var(--mat-sys-primary))}.mat-mdc-tab.mat-mdc-tab-disabled{opacity:.4;pointer-events:none}.mat-mdc-tab.mat-mdc-tab-disabled .mdc-tab__content{pointer-events:none}.mat-mdc-tab.mat-mdc-tab-disabled .mdc-tab__ripple::before,.mat-mdc-tab.mat-mdc-tab-disabled .mat-ripple-element{background-color:var(--mat-tab-disabled-ripple-color, var(--mat-sys-on-surface-variant))}.mat-mdc-tab .mdc-tab__ripple::before{content:"";display:block;position:absolute;top:0;left:0;right:0;bottom:0;opacity:0;pointer-events:none;background-color:var(--mat-tab-inactive-ripple-color, var(--mat-sys-on-surface))}.mat-mdc-tab .mdc-tab__text-label{color:var(--mat-tab-inactive-label-text-color, var(--mat-sys-on-surface));display:inline-flex;align-items:center}.mat-mdc-tab .mdc-tab__content{position:relative;pointer-events:auto}.mat-mdc-tab:hover .mdc-tab__ripple::before{opacity:.04}.mat-mdc-tab.cdk-program-focused .mdc-tab__ripple::before,.mat-mdc-tab.cdk-keyboard-focused .mdc-tab__ripple::before{opacity:.12}.mat-mdc-tab .mat-ripple-element{opacity:.12;background-color:var(--mat-tab-inactive-ripple-color, var(--mat-sys-on-surface))}.mat-mdc-tab-group.mat-mdc-tab-group-stretch-tabs>.mat-mdc-tab-header .mat-mdc-tab{flex-grow:1}.mat-mdc-tab-group{display:flex;flex-direction:column;max-width:100%}.mat-mdc-tab-group.mat-tabs-with-background>.mat-mdc-tab-header,.mat-mdc-tab-group.mat-tabs-with-background>.mat-mdc-tab-header-pagination{background-color:var(--mat-tab-background-color)}.mat-mdc-tab-group.mat-tabs-with-background.mat-primary>.mat-mdc-tab-header .mat-mdc-tab .mdc-tab__text-label{color:var(--mat-tab-foreground-color)}.mat-mdc-tab-group.mat-tabs-with-background.mat-primary>.mat-mdc-tab-header .mdc-tab-indicator__content--underline{border-color:var(--mat-tab-foreground-color)}.mat-mdc-tab-group.mat-tabs-with-background:not(.mat-primary)>.mat-mdc-tab-header .mat-mdc-tab:not(.mdc-tab--active) .mdc-tab__text-label{color:var(--mat-tab-foreground-color)}.mat-mdc-tab-group.mat-tabs-with-background:not(.mat-primary)>.mat-mdc-tab-header .mat-mdc-tab:not(.mdc-tab--active) .mdc-tab-indicator__content--underline{border-color:var(--mat-tab-foreground-color)}.mat-mdc-tab-group.mat-tabs-with-background>.mat-mdc-tab-header .mat-mdc-tab-header-pagination-chevron,.mat-mdc-tab-group.mat-tabs-with-background>.mat-mdc-tab-header .mat-focus-indicator::before,.mat-mdc-tab-group.mat-tabs-with-background>.mat-mdc-tab-header-pagination .mat-mdc-tab-header-pagination-chevron,.mat-mdc-tab-group.mat-tabs-with-background>.mat-mdc-tab-header-pagination .mat-focus-indicator::before{border-color:var(--mat-tab-foreground-color)}.mat-mdc-tab-group.mat-tabs-with-background>.mat-mdc-tab-header .mat-ripple-element,.mat-mdc-tab-group.mat-tabs-with-background>.mat-mdc-tab-header .mdc-tab__ripple::before,.mat-mdc-tab-group.mat-tabs-with-background>.mat-mdc-tab-header-pagination .mat-ripple-element,.mat-mdc-tab-group.mat-tabs-with-background>.mat-mdc-tab-header-pagination .mdc-tab__ripple::before{background-color:var(--mat-tab-foreground-color)}.mat-mdc-tab-group.mat-tabs-with-background>.mat-mdc-tab-header .mat-mdc-tab-header-pagination-chevron,.mat-mdc-tab-group.mat-tabs-with-background>.mat-mdc-tab-header-pagination .mat-mdc-tab-header-pagination-chevron{color:var(--mat-tab-foreground-color)}.mat-mdc-tab-group.mat-mdc-tab-group-inverted-header{flex-direction:column-reverse}.mat-mdc-tab-group.mat-mdc-tab-group-inverted-header .mdc-tab-indicator__content--underline{align-self:flex-start}.mat-mdc-tab-body-wrapper{position:relative;overflow:hidden;display:flex;transition:height 500ms cubic-bezier(0.35, 0, 0.25, 1)}.mat-mdc-tab-body-wrapper._mat-animation-noopable{transition:none !important;animation:none !important} +`],encapsulation:2})}return t})(),RI=class{index;tab},PI=(()=>{class t extends N8{_focusedItem=he(null);get fitInkBarToContent(){return this._fitInkBarToContent.value}set fitInkBarToContent(e){this._fitInkBarToContent.next(e),this._changeDetectorRef.markForCheck()}_fitInkBarToContent=new tt(!1);stretchTabs=!0;get animationDuration(){return this._animationDuration}set animationDuration(e){let i=e+"";this._animationDuration=/^\d+$/.test(i)?e+"ms":i}_animationDuration;_items;get backgroundColor(){return this._backgroundColor}set backgroundColor(e){let i=this._elementRef.nativeElement.classList;i.remove("mat-tabs-with-background",`mat-background-${this.backgroundColor}`),e&&i.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=he(!1);color="primary";tabPanel;_tabListContainer;_tabList;_tabListInner;_nextPaginator;_previousPaginator;_inkBar;constructor(){let e=u(L8,{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 ew(this._items),this._items.changes.pipe(He(null),Te(this._destroyed)).subscribe(()=>this.updateActiveLink()),super.ngAfterContentInit(),this._keyManager.change.pipe(He(null),Te(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 i=0;i.mat-mdc-tab-link-container .mat-mdc-tab-links{justify-content:center}[mat-align-tabs=end]>.mat-mdc-tab-link-container .mat-mdc-tab-links{justify-content:flex-end}.cdk-drop-list .mat-mdc-tab-links,.mat-mdc-tab-links.cdk-drop-list{min-height:var(--mat-tab-container-height, 48px)}.mat-mdc-tab-link-container{display:flex;flex-grow:1;overflow:hidden;z-index:1;border-bottom-style:solid;border-bottom-width:var(--mat-tab-divider-height, 1px);border-bottom-color:var(--mat-tab-divider-color, var(--mat-sys-surface-variant))}.mat-mdc-tab-nav-bar.mat-tabs-with-background>.mat-mdc-tab-link-container,.mat-mdc-tab-nav-bar.mat-tabs-with-background>.mat-mdc-tab-header-pagination{background-color:var(--mat-tab-background-color)}.mat-mdc-tab-nav-bar.mat-tabs-with-background.mat-primary>.mat-mdc-tab-link-container .mat-mdc-tab-link .mdc-tab__text-label{color:var(--mat-tab-foreground-color)}.mat-mdc-tab-nav-bar.mat-tabs-with-background.mat-primary>.mat-mdc-tab-link-container .mdc-tab-indicator__content--underline{border-color:var(--mat-tab-foreground-color)}.mat-mdc-tab-nav-bar.mat-tabs-with-background:not(.mat-primary)>.mat-mdc-tab-link-container .mat-mdc-tab-link:not(.mdc-tab--active) .mdc-tab__text-label{color:var(--mat-tab-foreground-color)}.mat-mdc-tab-nav-bar.mat-tabs-with-background:not(.mat-primary)>.mat-mdc-tab-link-container .mat-mdc-tab-link:not(.mdc-tab--active) .mdc-tab-indicator__content--underline{border-color:var(--mat-tab-foreground-color)}.mat-mdc-tab-nav-bar.mat-tabs-with-background>.mat-mdc-tab-link-container .mat-mdc-tab-header-pagination-chevron,.mat-mdc-tab-nav-bar.mat-tabs-with-background>.mat-mdc-tab-link-container .mat-focus-indicator::before,.mat-mdc-tab-nav-bar.mat-tabs-with-background>.mat-mdc-tab-header-pagination .mat-mdc-tab-header-pagination-chevron,.mat-mdc-tab-nav-bar.mat-tabs-with-background>.mat-mdc-tab-header-pagination .mat-focus-indicator::before{border-color:var(--mat-tab-foreground-color)}.mat-mdc-tab-nav-bar.mat-tabs-with-background>.mat-mdc-tab-link-container .mat-ripple-element,.mat-mdc-tab-nav-bar.mat-tabs-with-background>.mat-mdc-tab-link-container .mdc-tab__ripple::before,.mat-mdc-tab-nav-bar.mat-tabs-with-background>.mat-mdc-tab-header-pagination .mat-ripple-element,.mat-mdc-tab-nav-bar.mat-tabs-with-background>.mat-mdc-tab-header-pagination .mdc-tab__ripple::before{background-color:var(--mat-tab-foreground-color)}.mat-mdc-tab-nav-bar.mat-tabs-with-background>.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 t})(),zfe=(()=>{class t extends P8{_tabNavBar=u(PI);elementRef=u(q);_focusMonitor=u(Yt);_destroyed=new z;_isActive=!1;_tabIndex=Zt(()=>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=he(!1);tabIndex=0;rippleConfig;get rippleDisabled(){return this.disabled||this.disableRipple||this._tabNavBar.disableRipple||!!this.rippleConfig.disabled}id=u(Ze).getId("mat-tab-link-");constructor(){super(),u(ut).load(Di);let e=u(Cs,{optional:!0}),i=u(new Ii("tabindex"),{optional:!0});this.rippleConfig=e||{},this.tabIndex=i==null?0:parseInt(i)||0,Ye()&&(this.rippleConfig.animation={enterDuration:0,exitDuration:0}),this._tabNavBar._fitInkBarToContent.pipe(Te(this._destroyed)).subscribe(r=>{this.fitInkBarToContent=r})}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(i){return new(i||t)};static \u0275cmp=E({type:t,selectors:[["","mat-tab-link",""],["","matTabLink",""]],hostAttrs:[1,"mdc-tab","mat-mdc-tab-link","mat-focus-indicator"],hostVars:11,hostBindings:function(i,r){i&1&&S("focus",function(){return r._handleFocus()})("keydown",function(a){return r._handleKeydown(a)}),i&2&&(X("aria-controls",r._getAriaControls())("aria-current",r._getAriaCurrent())("aria-disabled",r.disabled)("aria-selected",r._getAriaSelected())("id",r.id)("tabIndex",r._tabIndex())("role",r._getRole()),G("mat-mdc-tab-disabled",r.disabled)("mdc-tab--active",r.active))},inputs:{active:[2,"active","active",V],disabled:[2,"disabled","disabled",V],disableRipple:[2,"disableRipple","disableRipple",V],tabIndex:[2,"tabIndex","tabIndex",e=>e==null?0:ct(e)],id:"id"},exportAs:["matTabLink"],features:[le],attrs:Pfe,ngContentSelectors:np,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(i,r){i&1&&(Me(),k(0,"span",0)(1,"div",1),h(2,"span",2)(3,"span",3),oe(4),p()()),i&2&&(g(),y("matRippleTrigger",r.elementRef.nativeElement)("matRippleDisabled",r.rippleDisabled))},dependencies:[Vn],styles:[`.mat-mdc-tab-link{-webkit-tap-highlight-color:rgba(0,0,0,0);-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;text-decoration:none;background:none;height:var(--mat-tab-container-height, 48px);font-family:var(--mat-tab-label-text-font, var(--mat-sys-title-small-font));font-size:var(--mat-tab-label-text-size, var(--mat-sys-title-small-size));letter-spacing:var(--mat-tab-label-text-tracking, var(--mat-sys-title-small-tracking));line-height:var(--mat-tab-label-text-line-height, var(--mat-sys-title-small-line-height));font-weight:var(--mat-tab-label-text-weight, var(--mat-sys-title-small-weight))}.mat-mdc-tab-link.mdc-tab{flex-grow:0}.mat-mdc-tab-link .mdc-tab-indicator__content--underline{border-color:var(--mat-tab-active-indicator-color, var(--mat-sys-primary));border-top-width:var(--mat-tab-active-indicator-height, 2px);border-radius:var(--mat-tab-active-indicator-shape, 0)}.mat-mdc-tab-link:hover .mdc-tab__text-label{color:var(--mat-tab-inactive-hover-label-text-color, var(--mat-sys-on-surface))}.mat-mdc-tab-link:focus .mdc-tab__text-label{color:var(--mat-tab-inactive-focus-label-text-color, var(--mat-sys-on-surface))}.mat-mdc-tab-link.mdc-tab--active .mdc-tab__text-label{color:var(--mat-tab-active-label-text-color, var(--mat-sys-on-surface))}.mat-mdc-tab-link.mdc-tab--active .mdc-tab__ripple::before,.mat-mdc-tab-link.mdc-tab--active .mat-ripple-element{background-color:var(--mat-tab-active-ripple-color, var(--mat-sys-on-surface))}.mat-mdc-tab-link.mdc-tab--active:hover .mdc-tab__text-label{color:var(--mat-tab-active-hover-label-text-color, var(--mat-sys-on-surface))}.mat-mdc-tab-link.mdc-tab--active:hover .mdc-tab-indicator__content--underline{border-color:var(--mat-tab-active-hover-indicator-color, var(--mat-sys-primary))}.mat-mdc-tab-link.mdc-tab--active:focus .mdc-tab__text-label{color:var(--mat-tab-active-focus-label-text-color, var(--mat-sys-on-surface))}.mat-mdc-tab-link.mdc-tab--active:focus .mdc-tab-indicator__content--underline{border-color:var(--mat-tab-active-focus-indicator-color, var(--mat-sys-primary))}.mat-mdc-tab-link.mat-mdc-tab-disabled{opacity:.4;pointer-events:none}.mat-mdc-tab-link.mat-mdc-tab-disabled .mdc-tab__content{pointer-events:none}.mat-mdc-tab-link.mat-mdc-tab-disabled .mdc-tab__ripple::before,.mat-mdc-tab-link.mat-mdc-tab-disabled .mat-ripple-element{background-color:var(--mat-tab-disabled-ripple-color, var(--mat-sys-on-surface-variant))}.mat-mdc-tab-link .mdc-tab__ripple::before{content:"";display:block;position:absolute;top:0;left:0;right:0;bottom:0;opacity:0;pointer-events:none;background-color:var(--mat-tab-inactive-ripple-color, var(--mat-sys-on-surface))}.mat-mdc-tab-link .mdc-tab__text-label{color:var(--mat-tab-inactive-label-text-color, var(--mat-sys-on-surface));display:inline-flex;align-items:center}.mat-mdc-tab-link .mdc-tab__content{position:relative;pointer-events:auto}.mat-mdc-tab-link:hover .mdc-tab__ripple::before{opacity:.04}.mat-mdc-tab-link.cdk-program-focused .mdc-tab__ripple::before,.mat-mdc-tab-link.cdk-keyboard-focused .mdc-tab__ripple::before{opacity:.12}.mat-mdc-tab-link .mat-ripple-element{opacity:.12;background-color:var(--mat-tab-inactive-ripple-color, var(--mat-sys-on-surface))}.mat-mdc-tab-header.mat-mdc-tab-nav-bar-stretch-tabs .mat-mdc-tab-link{flex-grow:1}.mat-mdc-tab-link::before{margin:5px}@media(max-width: 599px){.mat-mdc-tab-link{min-width:72px}} +`],encapsulation:2,changeDetection:0})}return t})(),V8=(()=>{class t{id=u(Ze).getId("mat-tab-nav-panel-");_activeTabId;static \u0275fac=function(i){return new(i||t)};static \u0275cmp=E({type:t,selectors:[["mat-tab-nav-panel"]],hostAttrs:["role","tabpanel",1,"mat-mdc-tab-nav-panel"],hostVars:2,hostBindings:function(i,r){i&2&&X("aria-labelledby",r._activeTabId)("id",r.id)},inputs:{id:"id"},exportAs:["matTabNavPanel"],ngContentSelectors:np,decls:1,vars:0,template:function(i,r){i&1&&(Me(),oe(0))},encapsulation:2,changeDetection:0})}return t})(),rp=(()=>{class t{static \u0275fac=function(i){return new(i||t)};static \u0275mod=ee({type:t});static \u0275inj=J({imports:[we,we]})}return t})();function Ufe(t,n){if(t&1&&(h(0,"div",1)(1,"div"),_(2),p(),h(3,"div",2)(4,"div",3),_(5),p(),h(6,"div",4),_(7),p()()()),t&2){let e=n.$implicit;g(),it($o("d-flex align-items-center justify-content-center r-12 ",e.color)),Dt("width",3,"rem")("height",3,"rem"),g(),ve(" ",e.icon," "),g(3),H(e.title),g(2),H(e.content)}}function $fe(t,n){if(t&1&&(h(0,"mat-tab",0),xt(1,Ufe,8,10,"div",1,Hi),p()),t&2){let e=n.$implicit;y("label",e.label),g(),Ct(e.messages)}}var B8=(()=>{let n=class n{constructor(){this.tabs=[{label:"Today",messages:[{icon:"\u{1F514}",color:"bg-red-95",title:"General Meeting for update",content:"You can use the Dashboard to explore how many new users download reports daily and monthly."},{icon:"\u{1F4E2}",color:"bg-azure-95",title:"Widgets update",content:"We've made some updates to the emendable widget which we think you are going to love."},{icon:"\u23F3",color:"bg-violet-95",title:"Coming soon new features",content:"More new features are coming soon, so stay patient!"}]},{label:"Notifications",messages:[{icon:"\u{1F4E9}",color:"bg-magenta-95",title:"Weekly reports are available",content:"Please go to the notification center to check your reports."}]}]}};n.\u0275fac=function(r){return new(r||n)},n.\u0275cmp=E({type:n,selectors:[["app-sidebar-notice"]],hostAttrs:[1,"matero-sidebar-notice"],decls:3,vars:0,consts:[[3,"label"],[1,"d-flex","align-items-center","gap-16","p-16","m-b-16","b-1","r-12"],[1,"flex-grow-1","w-0"],[1,"f-w-600"],[1,"f-s-14"]],template:function(r,o){r&1&&(h(0,"mat-tab-group"),xt(1,$fe,3,1,"mat-tab",0,Hi),p()),r&2&&(g(),Ct(o.tabs))},dependencies:[rp,__,tw],styles:[`.matero-sidebar-notice{display:block;height:100%}.matero-sidebar-notice .mat-mdc-tab-group{height:100%}.matero-sidebar-notice .mat-mdc-tab-body-wrapper{flex:1}.matero-sidebar-notice .mat-mdc-tab-body-content{padding:1rem} +`],encapsulation:2});let t=n;return t})();var Wfe=["switch"],Gfe=["*"];function qfe(t,n){t&1&&(h(0,"span",11),Gt(),h(1,"svg",13),k(2,"path",14),p(),h(3,"svg",15),k(4,"path",16),p()())}var Yfe=new T("mat-slide-toggle-default-options",{providedIn:"root",factory:()=>({disableToggleValue:!1,hideIcon:!1,disabledInteractive:!1})}),iw=class{source;checked;constructor(n,e){this.source=n,this.checked=e}},NI=(()=>{class t{_elementRef=u(q);_focusMonitor=u(Yt);_changeDetectorRef=u(ye);defaults=u(Yfe);_onChange=e=>{};_onTouched=()=>{};_validatorOnChange=()=>{};_uniqueId;_checked=!1;_createChangeEvent(e){return new iw(this,e)}_labelId;get buttonId(){return`${this.id||this._uniqueId}-button`}_switchElement;focus(){this._switchElement.nativeElement.focus()}_noopAnimations=Ye();_focused;name=null;id;labelPosition="after";ariaLabel=null;ariaLabelledby=null;ariaDescribedby;required;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 U;toggleChange=new U;get inputId(){return`${this.id||this._uniqueId}-input`}constructor(){u(ut).load(Di);let e=u(new Ii("tabindex"),{optional:!0}),i=this.defaults;this.tabIndex=e==null?0:parseInt(e)||0,this.color=i.color||"accent",this.id=this._uniqueId=u(Ze).getId("mat-mdc-slide-toggle-"),this.hideIcon=i.hideIcon??!1,this.disabledInteractive=i.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 iw(this,this.checked))))}_getAriaLabelledBy(){return this.ariaLabelledby?this.ariaLabelledby:this.ariaLabel?null:this._labelId}static \u0275fac=function(i){return new(i||t)};static \u0275cmp=E({type:t,selectors:[["mat-slide-toggle"]],viewQuery:function(i,r){if(i&1&&ie(Wfe,5),i&2){let o;B(o=j())&&(r._switchElement=o.first)}},hostAttrs:[1,"mat-mdc-slide-toggle"],hostVars:13,hostBindings:function(i,r){i&2&&(si("id",r.id),X("tabindex",null)("aria-label",null)("name",null)("aria-labelledby",null),it(r.color?"mat-"+r.color:""),G("mat-mdc-slide-toggle-focused",r._focused)("mat-mdc-slide-toggle-checked",r.checked)("_mat-animation-noopable",r._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",V],color:"color",disabled:[2,"disabled","disabled",V],disableRipple:[2,"disableRipple","disableRipple",V],tabIndex:[2,"tabIndex","tabIndex",e=>e==null?0:ct(e)],checked:[2,"checked","checked",V],hideIcon:[2,"hideIcon","hideIcon",V],disabledInteractive:[2,"disabledInteractive","disabledInteractive",V]},outputs:{change:"change",toggleChange:"toggleChange"},exportAs:["matSlideToggle"],features:[Ce([{provide:tr,useExisting:Kt(()=>t),multi:!0},{provide:ea,useExisting:t,multi:!0}]),Ae],ngContentSelectors:Gfe,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(i,r){if(i&1){let o=Y();Me(),h(0,"div",1)(1,"button",2,0),S("click",function(){return I(o),A(r._handleClick())}),k(3,"div",3)(4,"span",4),h(5,"span",5)(6,"span",6)(7,"span",7),k(8,"span",8),p(),h(9,"span",9),k(10,"span",10),p(),N(11,qfe,5,0,"span",11),p()()(),h(12,"label",12),S("click",function(s){return I(o),A(s.stopPropagation())}),oe(13),p()()}if(i&2){let o=Se(2);y("labelPosition",r.labelPosition),g(),G("mdc-switch--selected",r.checked)("mdc-switch--unselected",!r.checked)("mdc-switch--checked",r.checked)("mdc-switch--disabled",r.disabled)("mat-mdc-slide-toggle-disabled-interactive",r.disabledInteractive),y("tabIndex",r.disabled&&!r.disabledInteractive?-1:r.tabIndex)("disabled",r.disabled&&!r.disabledInteractive),X("id",r.buttonId)("name",r.name)("aria-label",r.ariaLabel)("aria-labelledby",r._getAriaLabelledBy())("aria-describedby",r.ariaDescribedby)("aria-required",r.required||null)("aria-checked",r.checked)("aria-disabled",r.disabled&&r.disabledInteractive?"true":null),g(9),y("matRippleTrigger",o)("matRippleDisabled",r.disableRipple||r.disabled)("matRippleCentered",!0),g(),L(r.hideIcon?-1:11),g(),y("for",r.buttonId),X("id",r._labelId)}},dependencies:[Vn,Gm],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 rgba(0,0,0,0);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 rgba(0,0,0,0);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:rgba(0,0,0,0);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:.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-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 t})(),j8=(()=>{class t{static \u0275fac=function(i){return new(i||t)};static \u0275mod=ee({type:t});static \u0275inj=J({imports:[NI,we,we]})}return t})();var nw=(()=>{let n=class n{constructor(){this.router=u(Re),this.menu=u(so),this.navItems=[],this.router.events.pipe(ce(i=>i instanceof vi)).subscribe(()=>this.checkOpenedItems()),this.menu.change().pipe(Rt(10)).subscribe(()=>{setTimeout(()=>this.checkOpenedItems())})}addItem(i){this.navItems.push(i)}removeItem(i){let r=this.navItems.indexOf(i);r!==-1&&this.navItems.splice(r,1)}closeOtherItems(i){this.navItems.forEach(r=>{r!==i&&r.setExpanded(!1)})}checkOpenedItems(){this.navItems.forEach(i=>{let r=i.route();r&&this.router.url.split("/").includes(r)&&(i.setExpanded(!0),this.closeOtherItems(i))})}};n.\u0275fac=function(r){return new(r||n)},n.\u0275dir=F({type:n,selectors:[["","navAccordion",""]],exportAs:["navAccordion"]});let t=n;return t})();var rw=(()=>{let n=class n{constructor(){this.nav=u(nw),this.route=ne(""),this.expanded=he(!1)}ngOnInit(){this.nav.addItem(this)}ngOnDestroy(){this.nav.removeItem(this)}toggle(){this.expanded.update(i=>!i),this.expanded()&&this.nav.closeOtherItems(this)}setExpanded(i){this.expanded()!==i&&this.expanded.set(i)}};n.\u0275fac=function(r){return new(r||n)},n.\u0275dir=F({type:n,selectors:[["","navAccordionItem",""]],hostVars:2,hostBindings:function(r,o){r&2&&G("expanded",o.expanded())},inputs:{route:[1,"route"]},exportAs:["navAccordionItem"]});let t=n;return t})();var H8=(()=>{let n=class n{constructor(){this.navItem=u(rw)}onClick(){this.navItem.toggle()}};n.\u0275fac=function(r){return new(r||n)},n.\u0275dir=F({type:n,selectors:[["","navAccordionToggle",""]],hostBindings:function(r,o){r&1&&S("click",function(){return o.onClick()})},exportAs:["navAccordionToggle"]});let t=n;return t})();var Kfe=()=>[],Zfe=(t,n)=>({menuList:t,parentRoute:n,level:0}),z8=t=>[t],ow=(t,n)=>({item:t,level:n}),Xfe=(t,n,e)=>({menuList:t,parentRoute:n,level:e});function Jfe(t,n){if(t&1&&(h(0,"a",6),Ge(1,2),p()),t&2){let e=C(2).$implicit,i=C(),r=i.parentRoute,o=i.level,a=C(),s=Se(5);y("routerLink",a.menu.buildRoute(r.concat(Pt(3,z8,e.route)))),g(),y("ngTemplateOutlet",s)("ngTemplateOutletContext",wa(5,ow,e,o))}}function ege(t,n){if(t&1&&(h(0,"a",7),Ge(1,2),p()),t&2){let e=C(2).$implicit,i=C().level;C();let r=Se(5);y("href",e.route,$r),g(),y("ngTemplateOutlet",r)("ngTemplateOutletContext",wa(3,ow,e,i))}}function tge(t,n){if(t&1&&(h(0,"a",8),Ge(1,2),p()),t&2){let e=C(2).$implicit,i=C().level;C();let r=Se(5);y("href",e.route,$r),g(),y("ngTemplateOutlet",r)("ngTemplateOutletContext",wa(3,ow,e,i))}}function ige(t,n){if(t&1&&(h(0,"button",9),Ge(1,2),p(),Ge(2,2)),t&2){let e=C(2).$implicit,i=C(),r=i.parentRoute,o=i.level;C();let a=Se(3),s=Se(5);g(),y("ngTemplateOutlet",s)("ngTemplateOutletContext",wa(4,ow,e,o)),g(),y("ngTemplateOutlet",a)("ngTemplateOutletContext",Rd(9,Xfe,e.children,r.concat(Pt(7,z8,e.route)),o+1))}}function nge(t,n){if(t&1&&(h(0,"li",5),N(1,Jfe,2,8,"a",6),N(2,ege,2,6,"a",7),N(3,tge,2,6,"a",8),N(4,ige,3,13),p()),t&2){let e=C().$implicit;y("route",e.route),g(),L(e.type==="link"?1:-1),g(),L(e.type==="extLink"?2:-1),g(),L(e.type==="extTabLink"?3:-1),g(),L(e.type==="sub"?4:-1)}}function rge(t,n){if(t&1&&R(0,nge,5,5,"ng-template",4),t&2){let e=n.$implicit;y("ngxPermissionsOnly",e.permissions==null?null:e.permissions.only)("ngxPermissionsExcept",e.permissions==null?null:e.permissions.except)}}function oge(t,n){if(t&1&&(h(0,"ul",3),xt(1,rge,1,2,null,4,Hi),p()),t&2){let e=n.menuList,i=n.level;it($o("matero-sidemenu level-",i)),G("submenu",i>0),g(),Ct(e)}}function age(t,n){if(t&1&&(h(0,"mat-icon",14),_(1),p()),t&2){let e=C(),i=e.item,r=e.level;G("submenu-icon",r>0),g(),H(i.icon)}}function sge(t,n){if(t&1&&(h(0,"span",14),_(1),me(2,"translate"),me(3,"slice"),p()),t&2){let e=C(),i=e.item,r=e.level;G("submenu-icon",r>0),g(),ve(" ",BM(3,5,Oe(2,3,i.name),0,1)," ")}}function lge(t,n){if(t&1&&(h(0,"span"),_(1),p()),t&2){let e=C().item;it($o("menu-label bg-",e.label.color)),g(),H(e.label.value)}}function cge(t,n){if(t&1&&(h(0,"span"),_(1),p()),t&2){let e=C().item;it($o("menu-badge bg-",e.badge.color)),g(),H(e.badge.value)}}function dge(t,n){if(t&1&&(h(0,"mat-icon",13),_(1),p()),t&2){let e=C().item;g(),H(e.type==="sub"?"arrow_drop_down":"launch")}}function uge(t,n){if(t&1&&(N(0,age,2,3,"mat-icon",10)(1,sge,4,9,"span",10),h(2,"span",11),_(3),me(4,"translate"),p(),N(5,lge,2,4,"span",12),N(6,cge,2,4,"span",12),N(7,dge,2,1,"mat-icon",13)),t&2){let e=n.item;L(e.icon?0:1),g(3),H(Oe(4,5,e.name)),g(2),L(e.label?5:-1),g(),L(e.badge?6:-1),g(),L(e.type!=="link"?7:-1)}}var U8=(()=>{let n=class n{constructor(){this.menu=u(so)}};n.\u0275fac=function(r){return new(r||n)},n.\u0275cmp=E({type:n,selectors:[["app-sidemenu"]],decls:6,vars:8,consts:[["menuTpl",""],["linkTypeTpl",""],[3,"ngTemplateOutlet","ngTemplateOutletContext"],["navAccordion",""],[3,"ngxPermissionsOnly","ngxPermissionsExcept"],["navAccordionItem","","routerLinkActive","active",1,"menu-item",3,"route"],["matRipple","",1,"menu-heading",3,"routerLink"],["matRipple","",1,"menu-heading",3,"href"],["target","_blank","matRipple","",1,"menu-heading",3,"href"],["navAccordionToggle","","matRipple","",1,"menu-heading","menu-toggle"],[1,"menu-icon",3,"submenu-icon"],[1,"menu-name"],[3,"class"],[1,"menu-caret"],[1,"menu-icon"]],template:function(r,o){if(r&1&&(Ge(0,2),me(1,"async"),R(2,oge,3,5,"ng-template",null,0,_i)(4,uge,8,7,"ng-template",null,1,_i)),r&2){let a=Se(3);y("ngTemplateOutlet",a)("ngTemplateOutletContext",wa(5,Zfe,Oe(1,2,o.menu.getAll()),at(4,Kfe)))}},dependencies:[Fn,Nn,zd,xc,Ih,ot,mt,yo,Vn,wr,nw,rw,H8,rn,d1,Cr],styles:[`.matero-sidemenu{padding:0;margin:0;list-style:none}.matero-sidemenu .menu-item{overflow:hidden;border-radius:1.5rem;transition:background 225ms cubic-bezier(.4,0,.2,1)}.matero-sidemenu .menu-item>.submenu{visibility:hidden;height:0;transition:all 225ms cubic-bezier(.4,0,.2,1)}.matero-sidemenu .menu-item>.menu-heading:hover,.matero-sidemenu .menu-item>.menu-heading:focus{background-color:var(--sidemenu-heading-hover-background-color)}.matero-sidemenu .menu-item.active>.menu-heading{color:var(--sidemenu-active-heading-text-color);background-color:var(--sidemenu-active-heading-background-color)}.matero-sidemenu .menu-item.active>.menu-heading:hover,.matero-sidemenu .menu-item.active>.menu-heading:focus{background-color:var(--sidemenu-active-heading-hover-background-color)}.matero-sidemenu .menu-item.expanded{background-color:var(--sidemenu-expanded-background-color)}.matero-sidemenu .menu-item.expanded>.submenu{visibility:visible;height:auto;height:calc-size(auto,size)}.matero-sidemenu .menu-item.expanded>.menu-toggle>.menu-caret{transform:rotate(-180deg)}.matero-sidemenu .menu-item:has(.active)>.menu-heading{color:var(--sidemenu-active-heading-text-color)}.matero-sidemenu .menu-heading{position:relative;display:flex;align-items:center;width:calc(var(--sidenav-width) - 1rem);padding:.75rem;font-size:inherit;color:inherit;text-decoration:none;cursor:pointer;outline:none;background-color:transparent;border:none;border-radius:1.5rem}.matero-sidemenu .menu-icon{width:1.5rem;height:1.5rem;margin-right:.75rem;font-size:1.25rem;line-height:1.5rem;text-align:center}[dir=rtl] .matero-sidemenu .menu-icon{margin-right:0;margin-left:.75rem}.matero-sidemenu .menu-icon.submenu-icon{position:absolute;left:.75rem;width:1.5rem;height:1.5rem;font-size:1rem;line-height:1.5rem;opacity:0}[dir=rtl] .matero-sidemenu .menu-icon.submenu-icon{right:.75rem;left:0}.matero-sidemenu .menu-caret{display:block;width:1.5rem;height:1.5rem;font-size:1.5rem;line-height:1.5rem;text-align:center;transition:transform .4s cubic-bezier(.25,.8,.25,1)}.matero-sidemenu .menu-name{flex:1;overflow:hidden;text-overflow:ellipsis;text-align:initial}.matero-sidemenu .menu-icon,.matero-sidemenu .menu-name,.matero-sidemenu .menu-label,.matero-sidemenu .menu-badge{transition:opacity .4s cubic-bezier(.25,.8,.25,1)}.matero-sidemenu .menu-label,.matero-sidemenu .menu-badge{padding:.25rem .5rem;font-size:.75rem;font-weight:700;line-height:1;color:#fff;background-color:#757575;border-radius:.375rem}.matero-sidemenu .menu-badge{border-radius:50rem}.matero-sidemenu.level-1>li>.menu-heading{padding-left:3rem}[dir=rtl] .matero-sidemenu.level-1>li>.menu-heading{padding-right:3rem;padding-left:1rem}.matero-sidemenu.level-2>li>.menu-heading{padding-left:4rem}[dir=rtl] .matero-sidemenu.level-2>li>.menu-heading{padding-right:4rem;padding-left:1rem}.matero-sidemenu.level-2 [class^=level-]>li>.menu-heading{padding-left:5rem}[dir=rtl] .matero-sidemenu.level-2 [class^=level-]>li>.menu-heading{padding-right:5rem;padding-left:1rem} +`],encapsulation:2});let t=n;return t})();var $8=(()=>{let n=class n{constructor(){this.oidcAuth=u(Tt),this.userName="Guest",this.userEmail="Anonymous"}ngOnInit(){this.updateUserInfo(),this.authSubscription=this.oidcAuth.isAuthenticated$.subscribe(i=>{console.log("UserPanel: Auth state changed:",i),this.updateUserInfo()})}ngOnDestroy(){this.authSubscription?.unsubscribe()}updateUserInfo(){let i=this.oidcAuth.isAuthenticated();if(console.log("UserPanel: Updating user info, isAuthenticated:",i),!i){this.userName="Guest",this.userEmail="Anonymous";return}let r=this.oidcAuth.getUserInfo();console.log("UserPanel: User info from service:",r),console.log("UserPanel: Available claims:",r?Object.keys(r):"null"),this.userName=r?.name||r?.preferred_username||r?.given_name||r?.["http://schemas.xmlsoap.org/ws/2005/05/identity/claims/name"]||r?.sub||"User",this.userEmail=r?.email||r?.["http://schemas.xmlsoap.org/ws/2005/05/identity/claims/emailaddress"]||"",console.log("UserPanel: Set userName to:",this.userName,"email to:",this.userEmail)}};n.\u0275fac=function(r){return new(r||n)},n.\u0275cmp=E({type:n,selectors:[["app-user-panel"]],decls:8,vars:4,consts:[[1,"matero-user-panel"],[1,"matero-user-panel-avatar"],[1,"matero-user-panel-info"]],template:function(r,o){r&1&&(h(0,"div",0)(1,"mat-icon",1),_(2,"account_circle"),p(),h(3,"div",2)(4,"h4"),_(5),p(),h(6,"h5"),_(7),p()()()),r&2&&(G("authenticated",o.oidcAuth.isAuthenticated()),g(5),H(o.userName),g(2),H(o.userEmail))},dependencies:[gt,ze,ot,mt,Br,wr],styles:[`.matero-user-panel{display:flex;align-items:center;padding:.75rem;margin-bottom:.75rem;cursor:pointer;outline:none;background-color:var(--user-panel-background-color);border-radius:.75rem}.matero-user-panel:hover,.matero-user-panel:focus{background-color:var(--user-panel-hover-background-color)}.matero-user-panel-avatar{width:3rem;height:3rem;font-size:3rem;border-radius:50rem;color:#0000008a;transform-origin:0 1.5rem;transition:transform .4s cubic-bezier(.25,.8,.25,1)}[dir=rtl] .matero-user-panel-avatar{transform-origin:3rem 1.5rem}.matero-user-panel-info{flex:1;width:0;margin-left:.75rem;opacity:1;transition:opacity .4s cubic-bezier(.25,.8,.25,1)}[dir=rtl] .matero-user-panel-info{margin-right:.75rem;margin-left:0}.matero-user-panel-info h4,.matero-user-panel-info h5{margin:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.matero-user-panel-info h4{margin-bottom:4px;font-size:1rem;font-weight:500}.matero-user-panel-info h5{font-size:.75rem;font-weight:400} +`],encapsulation:2});let t=n;return t})();function mge(t,n){if(t&1){let e=Y();h(0,"mat-slide-toggle",6),S("change",function(){I(e);let r=C(2);return A(r.toggleCollapsed.emit())}),p()}if(t&2){let e=C(2);y("checked",e.toggleChecked())}}function hge(t,n){if(t&1){let e=Y();h(0,"button",7),S("click",function(){I(e);let r=C(2);return A(r.closeSidenav.emit())}),h(1,"mat-icon"),_(2,"close"),p()()}}function pge(t,n){if(t&1&&(h(0,"div",0)(1,"mat-toolbar"),k(2,"app-branding",2)(3,"span",3),N(4,mge,1,1,"mat-slide-toggle",4)(5,hge,3,0,"button",5),p()()),t&2){let e=C();g(2),y("showName",!e.toggleChecked()),g(2),L(e.showToggle()?4:5)}}function fge(t,n){t&1&&k(0,"app-user-panel")}var W8=(()=>{let n=class n{constructor(){this.showToggle=ne(!0),this.showUser=ne(!0),this.showHeader=ne(!0),this.toggleChecked=ne(!1),this.toggleCollapsed=bi(),this.closeSidenav=bi()}};n.\u0275fac=function(r){return new(r||n)},n.\u0275cmp=E({type:n,selectors:[["app-sidebar"]],inputs:{showToggle:[1,"showToggle"],showUser:[1,"showUser"],showHeader:[1,"showHeader"],toggleChecked:[1,"toggleChecked"]},outputs:{toggleCollapsed:"toggleCollapsed",closeSidenav:"closeSidenav"},decls:4,vars:2,consts:[[1,"matero-sidebar-header"],[1,"matero-sidebar-main"],[3,"showName"],[1,"flex-fill"],["hideIcon","",3,"checked"],["mat-icon-button",""],["hideIcon","",3,"change","checked"],["mat-icon-button","",3,"click"]],template:function(r,o){r&1&&(N(0,pge,6,2,"div",0),h(1,"div",1),N(2,fge,1,0,"app-user-panel"),k(3,"app-sidemenu"),p()),r&2&&(L(o.showHeader()?0:-1),g(2),L(o.showUser()?2:-1))},dependencies:[j8,NI,ot,mt,ze,ti,ZC,KC,XC,U8,$8],styles:[`.matero-sidebar-header{overflow:hidden}.matero-sidebar-header mat-toolbar{width:var(--sidenav-width);padding:0 .5rem}.matero-sidebar-header mat-slide-toggle .mdc-label{display:none}.matero-sidebar-main{height:calc(100% - var(--mat-toolbar-standard-height));padding:0 .5rem .5rem;overflow:auto;scrollbar-width:none}@media (max-width: 599px){.matero-sidebar-main{height:calc(100% - var(--mat-toolbar-mobile-height))}} +`],encapsulation:2});let t=n;return t})();var G8=t=>[t],gge=()=>[];function _ge(t,n){if(t&1){let e=Y();h(0,"a",8,0),S("click",function(){I(e);let r=Se(1),o=C(3);return A(o.onRouterLinkClick(r))}),_(2),me(3,"translate"),p()}if(t&2){let e=C(2).$implicit,i=C();y("routerLink",i.menu.buildRoute(i.parentRoute().concat(Pt(4,G8,e.route)))),g(2),ve(" ",Oe(3,2,e.name)," ")}}function bge(t,n){if(t&1&&(h(0,"a",5)(1,"span",9),_(2),me(3,"translate"),p(),h(4,"mat-icon"),_(5,"launch"),p()()),t&2){let e=C(2).$implicit;y("href",e.route,$r),g(2),H(Oe(3,2,e.name))}}function vge(t,n){if(t&1&&(h(0,"a",6)(1,"span",9),_(2),me(3,"translate"),p(),h(4,"mat-icon"),_(5,"launch"),p()()),t&2){let e=C(2).$implicit;y("href",e.route,$r),g(2),H(Oe(3,2,e.name))}}function yge(t,n){if(t&1){let e=Y();h(0,"button",10),_(1),me(2,"translate"),h(3,"app-topmenu-panel",11,1),S("routeChange",function(r){I(e);let o=C(2).$implicit,a=C();return A(a.onRouteChange(r,o))}),p()()}if(t&2){let e=Se(4),i=C(2).$implicit,r=C();G("active",i.active==null?null:i.active()),y("matMenuTriggerFor",e.menuPanel()),g(),ve(" ",Oe(2,7,i.name)," "),g(2),y("items",i.children||at(9,gge))("parentRoute",r.parentRoute().concat(Pt(10,G8,i.route)))("level",r.level()+1)}}function xge(t,n){if(t&1&&(N(0,_ge,4,6,"a",4),N(1,bge,6,4,"a",5),N(2,vge,6,4,"a",6),N(3,yge,5,12,"button",7)),t&2){let e=C().$implicit;L(e.type==="link"?0:-1),g(),L(e.type==="extLink"?1:-1),g(),L(e.type==="extTabLink"?2:-1),g(),L(e.type==="sub"?3:-1)}}function Cge(t,n){if(t&1&&R(0,xge,4,4,"ng-template",3),t&2){let e=n.$implicit;y("ngxPermissionsOnly",e.permissions==null?null:e.permissions.only)("ngxPermissionsExcept",e.permissions==null?null:e.permissions.except)}}var q8=(()=>{let n=class n{constructor(){this.router=u(Re),this.menu=u(so),this.menuPanel=qn.required(jr),this.items=ne([]),this.parentRoute=ne([]),this.level=ne(1),this.routeChange=bi(),this.routerSubscription=this.router.events.pipe(ce(i=>i instanceof vi)).subscribe(i=>{this.items().map(r=>r.active?.set(!1))})}ngOnInit(){this.items().forEach(i=>{i.active=he(this.checkRoute(i))})}ngOnDestroy(){this.routerSubscription.unsubscribe()}checkRoute(i){return i.route?this.router.url.split("/").includes(i.route):this.checkChildRoute(i.children)}checkChildRoute(i=[]){return i.some(r=>this.router.url.split("/").includes(r.route)?!0:(!r.route&&r.children&&this.checkChildRoute(r.children),!1))}onRouterLinkClick(i){this.routeChange.emit(i)}onRouteChange(i,r){this.routeChange.emit(i),this.routerSubscription.unsubscribe(),this.routerSubscription=this.router.events.pipe(ce(o=>o instanceof vi),Be(()=>{this.items().filter(a=>a!=r).map(a=>a.active?.set(!1))}),Rt(10),Be(()=>{r.active?.set(i.isActive)})).subscribe()}};n.\u0275fac=function(r){return new(r||n)},n.\u0275cmp=E({type:n,selectors:[["app-topmenu-panel"]],viewQuery:function(r,o){r&1&&Pn(o.menuPanel,jr,5),r&2&&Ho()},inputs:{items:[1,"items"],parentRoute:[1,"parentRoute"],level:[1,"level"]},outputs:{routeChange:"routeChange"},decls:3,vars:0,consts:[["rla","routerLinkActive"],["submenu",""],[1,"matero-topmenu-panel"],[3,"ngxPermissionsOnly","ngxPermissionsExcept"],["mat-menu-item","","routerLinkActive","active",3,"routerLink"],["mat-menu-item","",3,"href"],["mat-menu-item","","target","_blank",3,"href"],["mat-menu-item","",3,"matMenuTriggerFor","active"],["mat-menu-item","","routerLinkActive","active",3,"click","routerLink"],[1,"menu-name"],["mat-menu-item","",3,"matMenuTriggerFor"],[3,"routeChange","items","parentRoute","level"]],template:function(r,o){r&1&&(h(0,"mat-menu",2),xt(1,Cge,1,2,null,3,Hi),p()),r&2&&(g(),Ct(o.items()))},dependencies:[n,Nn,zd,ot,mt,Ls,jr,El,Ns,xc,Ih,wr,Cr],encapsulation:2});let t=n;return t})();var Y8=t=>[t],sw=t=>({item:t}),wge=()=>[];function Dge(t,n){if(t&1&&(h(0,"a",5),Ge(1,9),p()),t&2){let e=C(2).$implicit,i=C(),r=Se(7);y("routerLink",i.menu.buildRoute(Pt(3,Y8,e.route))),g(),y("ngTemplateOutlet",r)("ngTemplateOutletContext",Pt(5,sw,e))}}function Ege(t,n){if(t&1&&(h(0,"a",6),Ge(1,9),p()),t&2){let e=C(2).$implicit;C();let i=Se(7);y("href",e.route,$r),g(),y("ngTemplateOutlet",i)("ngTemplateOutletContext",Pt(3,sw,e))}}function Mge(t,n){if(t&1&&(h(0,"a",7),Ge(1,9),p()),t&2){let e=C(2).$implicit;C();let i=Se(7);y("href",e.route,$r),g(),y("ngTemplateOutlet",i)("ngTemplateOutletContext",Pt(3,sw,e))}}function kge(t,n){if(t&1){let e=Y();h(0,"button",10),Ge(1,9),h(2,"app-topmenu-panel",11,2),S("routeChange",function(r){I(e);let o=C(2).$implicit,a=C();return A(a.onRouteChange(r,o))}),p()()}if(t&2){let e=Se(3),i=C(2).$implicit;C();let r=Se(7);G("active",i.active==null?null:i.active()),y("matMenuTriggerFor",e.menuPanel()),g(),y("ngTemplateOutlet",r)("ngTemplateOutletContext",Pt(8,sw,i)),g(),y("items",i.children||at(10,wge))("parentRoute",Pt(11,Y8,i.route))("level",1)}}function Sge(t,n){if(t&1&&(N(0,Dge,2,7,"a",5),N(1,Ege,2,5,"a",6),N(2,Mge,2,5,"a",7),N(3,kge,4,13,"button",8)),t&2){let e=C().$implicit;L(e.type==="link"?0:-1),g(),L(e.type==="extLink"?1:-1),g(),L(e.type==="extTabLink"?2:-1),g(),L(e.type==="sub"?3:-1)}}function Tge(t,n){if(t&1&&R(0,Sge,4,4,"ng-template",4),t&2){let e=n.$implicit;y("ngxPermissionsOnly",e.permissions==null?null:e.permissions.only)("ngxPermissionsExcept",e.permissions==null?null:e.permissions.except)}}function Ige(t,n){if(t&1&&(h(0,"span"),_(1),p()),t&2){let e=C().item;it($o("menu-label bg-",e.label.color)),g(),H(e.label.value)}}function Age(t,n){if(t&1&&(h(0,"span"),_(1),p()),t&2){let e=C().item;it($o("menu-badge bg-",e.badge.color)),g(),H(e.badge.value)}}function Oge(t,n){if(t&1&&(h(0,"mat-icon",15),_(1),p()),t&2){let e=C().item;g(),H(e.type==="sub"?"arrow_drop_down":"launch")}}function Rge(t,n){if(t&1&&(h(0,"mat-icon",12),_(1),p(),h(2,"span",13),_(3),me(4,"translate"),p(),N(5,Ige,2,4,"span",14),N(6,Age,2,4,"span",14),N(7,Oge,2,1,"mat-icon",15)),t&2){let e=n.item;g(),H(e.icon),g(2),H(Oe(4,5,e.name)),g(2),L(e.label?5:-1),g(),L(e.badge?6:-1),g(),L(e.type!=="link"?7:-1)}}var Q8=(()=>{let n=class n{constructor(){this.router=u(Re),this.menu=u(so),this.menuList=[],this.menuSubscription=this.menu.getAll().subscribe(i=>{this.menuList=i.map(r=>{let o=this.router.url.split("/").includes(r.route);return r.active=he(o),r})}),this.routerSubscription=this.router.events.pipe(ce(i=>i instanceof vi)).subscribe(i=>{this.menuList.map(r=>r.active?.set(!1))})}ngOnDestroy(){this.menuSubscription.unsubscribe(),this.routerSubscription.unsubscribe()}onRouteChange(i,r){this.routerSubscription.unsubscribe(),this.routerSubscription=this.router.events.pipe(ce(o=>o instanceof vi),Be(()=>{this.menuList.filter(o=>o!=r).map(o=>o.active?.set(!1))}),Rt(10),Be(()=>{r.active?.set(i.isActive)})).subscribe()}};n.\u0275fac=function(r){return new(r||n)},n.\u0275cmp=E({type:n,selectors:[["app-topmenu"]],hostAttrs:[1,"matero-topmenu"],decls:8,vars:3,consts:[["tabPanel",""],["linkTypeTpl",""],["submenu",""],["mat-tab-nav-bar","",3,"tabPanel"],[3,"ngxPermissionsOnly","ngxPermissionsExcept"],["matButton","","routerLinkActive","active",3,"routerLink"],["matButton","",3,"href"],["matButton","","target","_blank",3,"href"],["matButton","",3,"matMenuTriggerFor","active"],[3,"ngTemplateOutlet","ngTemplateOutletContext"],["matButton","",3,"matMenuTriggerFor"],[3,"routeChange","items","parentRoute","level"],[1,"menu-icon"],[1,"menu-name"],[3,"class"],[1,"menu-caret"]],template:function(r,o){if(r&1&&(h(0,"nav",3),xt(1,Tge,1,2,null,4,Hi),me(3,"async"),p(),k(4,"mat-tab-nav-panel",null,0),R(6,Rge,8,7,"ng-template",null,1,_i)),r&2){let a=Se(5);y("tabPanel",a),g(),Ct(Oe(3,1,o.menu.getAll()))}},dependencies:[Fn,Nn,zd,ze,kt,ot,mt,Ls,Ns,rp,PI,V8,xc,Ih,wr,q8,rn,Cr],styles:[`.matero-topmenu{--mat-tab-divider-height: 0;--mat-button-text-label-text-color: var(--topmenu-text-color);position:sticky;z-index:200;display:block;padding:.5rem;background-color:var(--topmenu-background-color);-webkit-backdrop-filter:blur(8px);backdrop-filter:blur(8px)}.matero-topmenu .mat-mdc-button{padding:0 1rem;white-space:nowrap}.matero-topmenu .mat-mdc-button.active{background-color:var(--topmenu-item-active-background-color)}.matero-topmenu .menu-icon,.matero-topmenu .menu-caret,.matero-topmenu .menu-name{vertical-align:middle}.matero-topmenu .mat-icon.menu-icon{width:1.125rem;height:1.125rem;margin-right:.5rem;font-size:1.125rem;line-height:1.125rem}[dir=rtl] .matero-topmenu .mat-icon.menu-icon{margin-right:auto;margin-left:.5rem}.matero-topmenu .mat-icon.menu-caret{margin-right:-.5rem}[dir=rtl] .matero-topmenu .mat-icon.menu-caret{margin-right:auto;margin-left:-.5rem}.matero-topmenu .menu-label,.matero-topmenu .menu-badge{padding:.25rem .5rem;margin-left:.5rem;font-size:.75rem;font-weight:700;line-height:1;color:#fff;background-color:#757575;border-radius:.375rem}[dir=rtl] .matero-topmenu .menu-label,[dir=rtl] .matero-topmenu .menu-badge{margin-right:.5rem;margin-left:auto}.matero-topmenu .menu-badge{border-radius:50rem}.matero-topmenu .mat-tab-nav-bar,.matero-topmenu .mat-tab-header{border-bottom:none}.matero-topmenu-panel .mat-mdc-menu-item.active{color:var(--topmenu-dropdown-item-active-text-color)} +`],encapsulation:2});let t=n;return t})();var Pge=["sidenav"],Fge=["content"];function Nge(t,n){if(t&1){let e=Y();h(0,"app-header",13),S("toggleSidenav",function(){I(e),C();let r=Se(5);return A(r.toggle())})("toggleSidenavNotice",function(){I(e),C();let r=Se(8);return A(r.toggle())}),p()}t&2&&y("showBranding",!0)}function Lge(t,n){if(t&1){let e=Y();h(0,"app-header",14),S("toggleSidenav",function(){I(e),C();let r=Se(5);return A(r.toggle())})("toggleSidenavNotice",function(){I(e),C();let r=Se(8);return A(r.toggle())}),p()}if(t&2){let e=C();y("showToggle",!e.options.sidenavCollapsed&&e.options.navPos!=="top")("showBranding",e.options.navPos==="top")}}function Vge(t,n){t&1&&k(0,"app-topmenu")}var K8="screen and (max-width: 599px)",Z8="screen and (min-width: 600px) and (max-width: 959px)",X8="screen and (min-width: 960px)",J8=(()=>{let n=class n{get themeColor(){return this.settings.getThemeColor()}get isOver(){return this.isMobileScreen}get contentWidthFix(){return this.isContentWidthFixed&&this.options.navPos==="side"&&this.options.sidenavOpened&&!this.isOver}get collapsedWidthFix(){return this.isCollapsedWidthFixed&&(this.options.navPos==="top"||this.options.sidenavOpened&&this.isOver)}constructor(){this.sidenav=qn.required("sidenav"),this.content=qn.required("content"),this.breakpointObserver=u(sl),this.router=u(Re),this.settings=u(aa),this.options=this.settings.options,this.isMobileScreen=!1,this.isContentWidthFixed=!0,this.isCollapsedWidthFixed=!1,this.layoutChangesSubscription=ke.EMPTY,this.layoutChangesSubscription=this.breakpointObserver.observe([K8,Z8,X8]).subscribe(i=>{this.options.sidenavOpened=!0,this.isMobileScreen=i.breakpoints[K8],this.options.sidenavCollapsed=i.breakpoints[Z8],this.isContentWidthFixed=i.breakpoints[X8]}),this.router.events.pipe(ce(i=>i instanceof vi)).subscribe(i=>{this.isOver&&this.sidenav().close(),this.content().scrollTo({top:0})})}ngOnDestroy(){this.layoutChangesSubscription.unsubscribe()}toggleCollapsed(){this.isContentWidthFixed=!1,this.options.sidenavCollapsed=!this.options.sidenavCollapsed,this.resetCollapsedState()}resetCollapsedState(i=400){setTimeout(()=>{this.settings.setOptions(this.options)},i)}onSidenavClosedStart(){this.isContentWidthFixed=!1}onSidenavOpenedChange(i){this.isCollapsedWidthFixed=!this.isOver,this.options.sidenavOpened=i,this.settings.setOptions(this.options)}updateOptions(i){this.options=i,this.settings.setOptions(i),this.settings.setDirection(),this.settings.setTheme()}};n.\u0275fac=function(r){return new(r||n)},n.\u0275cmp=E({type:n,selectors:[["app-admin-layout"]],viewQuery:function(r,o){r&1&&(Pn(o.sidenav,Pge,5),Pn(o.content,Fge,5)),r&2&&Ho(2)},hostVars:4,hostBindings:function(r,o){r&2&&G("matero-content-width-fix",o.contentWidthFix)("matero-sidenav-collapsed-fix",o.collapsedWidthFix)},decls:16,vars:20,consts:[["sidenav",""],["sidenavNotice",""],["content",""],[1,"matero-container-wrap",3,"dir"],["ngProgressRouter",""],[3,"showBranding"],["autosize","","autoFocus","",1,"matero-container"],[1,"matero-sidenav",3,"openedChange","closedStart","mode","opened"],[3,"toggleCollapsed","closeSidenav","showToggle","showUser","showHeader","toggleChecked"],["position","end","mode","over"],[1,"matero-content"],[3,"showToggle","showBranding"],[1,"matero-page-content"],[3,"toggleSidenav","toggleSidenavNotice","showBranding"],[3,"toggleSidenav","toggleSidenavNotice","showToggle","showBranding"]],template:function(r,o){if(r&1){let a=Y();h(0,"div",3),k(1,"ng-progress",4),N(2,Nge,1,1,"app-header",5),h(3,"mat-sidenav-container",6)(4,"mat-sidenav",7,0),S("openedChange",function(l){return I(a),A(o.onSidenavOpenedChange(l))})("closedStart",function(){return I(a),A(o.onSidenavClosedStart())}),h(6,"app-sidebar",8),S("toggleCollapsed",function(){return I(a),A(o.toggleCollapsed())})("closeSidenav",function(){I(a);let l=Se(5);return A(l.close())}),p()(),h(7,"mat-sidenav",9,1),k(9,"app-sidebar-notice"),p(),h(10,"mat-sidenav-content",10,2),N(12,Lge,1,2,"app-header",11),N(13,Vge,1,0,"app-topmenu"),h(14,"main",12),k(15,"router-outlet"),p()()()()}r&2&&(G("matero-sidenav-collapsed",o.options.sidenavCollapsed&&o.options.navPos!=="top")("matero-navbar-side",o.options.navPos==="side")("matero-navbar-top",o.options.navPos==="top")("matero-header-above",o.options.headerPos==="above")("matero-header-fixed",o.options.headerPos==="fixed"),y("dir",o.options.dir),g(2),L(o.options.showHeader&&o.options.headerPos==="above"?2:-1),g(2),y("mode",o.isOver?"over":"side")("opened",o.options.navPos==="side"&&o.options.sidenavOpened&&!o.isOver),g(2),y("showToggle",!o.isOver)("showUser",!!o.options.showUserPanel)("showHeader",o.options.headerPos!=="above")("toggleChecked",!!o.options.sidenavCollapsed),g(6),L(o.options.showHeader&&o.options.headerPos!=="above"?12:-1),g(),L(o.options.navPos==="top"?13:-1))},dependencies:[ol,vs,HL,i8,MI,t8,GC,r8,a8,w8,Q8,W8,B8],styles:[`.matero-container-wrap,.matero-container{--mat-sidenav-content-background-color: transparent;height:100%}.matero-sidenav{--mat-sidenav-container-width: var(--sidenav-width);position:absolute;overflow-x:hidden;border-width:0!important;transition-property:transform,width!important}.matero-header-above .matero-container{height:calc(100% - var(--mat-toolbar-standard-height))!important}@media (max-width: 599px){.matero-header-above .matero-container{height:calc(100% - var(--mat-toolbar-mobile-height))!important}}.matero-header-above .matero-sidebar-main{height:100%!important;padding-top:.5rem}.matero-sidenav-collapsed .matero-sidenav,.matero-sidenav-collapsed-fix .matero-sidenav{width:var(--sidenav-collapsed-width)}.matero-sidenav-collapsed .matero-sidenav .menu-name,.matero-sidenav-collapsed .matero-sidenav .menu-label,.matero-sidenav-collapsed .matero-sidenav .menu-badge,.matero-sidenav-collapsed .matero-sidenav .menu-caret,.matero-sidenav-collapsed .matero-sidenav .matero-user-panel-info,.matero-sidenav-collapsed-fix .matero-sidenav .menu-name,.matero-sidenav-collapsed-fix .matero-sidenav .menu-label,.matero-sidenav-collapsed-fix .matero-sidenav .menu-badge,.matero-sidenav-collapsed-fix .matero-sidenav .menu-caret,.matero-sidenav-collapsed-fix .matero-sidenav .matero-user-panel-info{opacity:0}.matero-sidenav-collapsed .matero-sidenav .menu-icon.submenu-icon,.matero-sidenav-collapsed-fix .matero-sidenav .menu-icon.submenu-icon{opacity:1}.matero-sidenav-collapsed .matero-sidenav .matero-user-panel-avatar,.matero-sidenav-collapsed-fix .matero-sidenav .matero-user-panel-avatar{transform:scale(.5)}.matero-sidenav-collapsed .matero-sidenav:hover,.matero-sidenav-collapsed-fix .matero-sidenav:hover{width:var(--sidenav-width)}.matero-sidenav-collapsed .matero-sidenav:hover .menu-name,.matero-sidenav-collapsed .matero-sidenav:hover .menu-label,.matero-sidenav-collapsed .matero-sidenav:hover .menu-badge,.matero-sidenav-collapsed .matero-sidenav:hover .menu-caret,.matero-sidenav-collapsed .matero-sidenav:hover .matero-user-panel-info,.matero-sidenav-collapsed-fix .matero-sidenav:hover .menu-name,.matero-sidenav-collapsed-fix .matero-sidenav:hover .menu-label,.matero-sidenav-collapsed-fix .matero-sidenav:hover .menu-badge,.matero-sidenav-collapsed-fix .matero-sidenav:hover .menu-caret,.matero-sidenav-collapsed-fix .matero-sidenav:hover .matero-user-panel-info{opacity:1}.matero-sidenav-collapsed .matero-sidenav:hover .menu-icon.submenu-icon,.matero-sidenav-collapsed-fix .matero-sidenav:hover .menu-icon.submenu-icon{opacity:0}.matero-sidenav-collapsed .matero-sidenav:hover .matero-user-panel-avatar,.matero-sidenav-collapsed-fix .matero-sidenav:hover .matero-user-panel-avatar{transform:scale(1)}.matero-sidenav-collapsed .matero-content{margin-left:var(--sidenav-collapsed-width)!important}[dir=rtl] .matero-sidenav-collapsed .matero-content,.matero-sidenav-collapsed[dir=rtl] .matero-content{margin-right:var(--sidenav-collapsed-width)!important;margin-left:auto!important}.matero-navbar-top .matero-topmenu{top:0}.matero-navbar-top .matero-branding{margin-left:1rem}[dir=rtl] .matero-navbar-top .matero-branding{margin-right:1rem;margin-left:auto}.matero-header-fixed .matero-header{position:sticky;top:0}.matero-header-fixed .matero-topmenu{top:var(--mat-toolbar-standard-height)}@media (max-width: 599px){.matero-header-fixed .matero-topmenu{top:var(--mat-toolbar-mobile-height)}}.matero-content-width-fix .matero-content{margin-left:var(--sidenav-width)!important}[dir=rtl] .matero-content-width-fix .matero-content{margin-right:var(--sidenav-width)!important;margin-left:auto!important}.matero-page-content{position:relative;padding:var(--gutter)}.matero-header+.matero-page-content,.matero-header-above .matero-page-content,.matero-navbar-top .matero-page-content{padding-top:0} +`],encapsulation:2});let t=n;return t})();var eU=(()=>{let n=class n{};n.\u0275fac=function(r){return new(r||n)},n.\u0275cmp=E({type:n,selectors:[["app-auth-layout"]],decls:2,vars:0,consts:[[1,"matero-auth-container"]],template:function(r,o){r&1&&(h(0,"div",0),k(1,"router-outlet"),p())},dependencies:[ol],styles:[`.matero-auth-container{position:relative;display:flex;justify-content:center;min-height:100%;background-image:radial-gradient(at 97% 21%,hsla(125,98%,72%,.3) 0,transparent 50%),radial-gradient(at 52% 99%,hsla(354,98%,61%,.3) 0,transparent 50%),radial-gradient(at 10% 29%,hsla(256,96%,67%,.3) 0,transparent 50%),radial-gradient(at 97% 96%,hsla(38,60%,74%,.3) 0,transparent 50%),radial-gradient(at 33% 50%,hsla(222,67%,73%,.3) 0,transparent 50%),radial-gradient(at 79% 53%,hsla(343,68%,79%,.3) 0,transparent 50%)} +`],encapsulation:2});let t=n;return t})();var Bge=["determinateSpinner"];function jge(t,n){if(t&1&&(Gt(),h(0,"svg",11),k(1,"circle",12),p()),t&2){let e=C();X("viewBox",e._viewBox()),g(),Dt("stroke-dasharray",e._strokeCircumference(),"px")("stroke-dashoffset",e._strokeCircumference()/2,"px")("stroke-width",e._circleStrokeWidth(),"%"),X("r",e._circleRadius())}}var Hge=new T("mat-progress-spinner-default-options",{providedIn:"root",factory:zge});function zge(){return{diameter:tU}}var tU=100,Uge=10,ki=(()=>{class t{_elementRef=u(q);_noopAnimations;get color(){return this._color||this._defaultColor}set color(e){this._color=e}_color;_defaultColor="primary";_determinateCircle;constructor(){let e=u(Hge),i=pk(),r=this._elementRef.nativeElement;this._noopAnimations=i==="di-disabled"&&!!e&&!e._forceAnimations,this.mode=r.nodeName.toLowerCase()==="mat-spinner"?"indeterminate":"determinate",!this._noopAnimations&&i==="reduced-motion"&&r.classList.add("mat-progress-spinner-reduced-motion"),e&&(e.color&&(this.color=this._defaultColor=e.color),e.diameter&&(this.diameter=e.diameter),e.strokeWidth&&(this.strokeWidth=e.strokeWidth))}mode;get value(){return this.mode==="determinate"?this._value:0}set value(e){this._value=Math.max(0,Math.min(100,e||0))}_value=0;get diameter(){return this._diameter}set diameter(e){this._diameter=e||0}_diameter=tU;get strokeWidth(){return this._strokeWidth??this.diameter/10}set strokeWidth(e){this._strokeWidth=e||0}_strokeWidth;_circleRadius(){return(this.diameter-Uge)/2}_viewBox(){let e=this._circleRadius()*2+this.strokeWidth;return`0 0 ${e} ${e}`}_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(i){return new(i||t)};static \u0275cmp=E({type:t,selectors:[["mat-progress-spinner"],["mat-spinner"]],viewQuery:function(i,r){if(i&1&&ie(Bge,5),i&2){let o;B(o=j())&&(r._determinateCircle=o.first)}},hostAttrs:["role","progressbar","tabindex","-1",1,"mat-mdc-progress-spinner","mdc-circular-progress"],hostVars:18,hostBindings:function(i,r){i&2&&(X("aria-valuemin",0)("aria-valuemax",100)("aria-valuenow",r.mode==="determinate"?r.value:null)("mode",r.mode),it("mat-"+r.color),Dt("width",r.diameter,"px")("height",r.diameter,"px")("--mat-progress-spinner-size",r.diameter+"px")("--mat-progress-spinner-active-indicator-width",r.diameter+"px"),G("_mat-animation-noopable",r._noopAnimations)("mdc-circular-progress--indeterminate",r.mode==="indeterminate"))},inputs:{color:"color",mode:"mode",value:[2,"value","value",ct],diameter:[2,"diameter","diameter",ct],strokeWidth:[2,"strokeWidth","strokeWidth",ct]},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(i,r){if(i&1&&(R(0,jge,2,8,"ng-template",null,0,_i),h(2,"div",2,1),Gt(),h(4,"svg",3),k(5,"circle",4),p()(),jo(),h(6,"div",5)(7,"div",6)(8,"div",7),Ge(9,8),p(),h(10,"div",9),Ge(11,8),p(),h(12,"div",10),Ge(13,8),p()()()),i&2){let o=Se(1);g(4),X("viewBox",r._viewBox()),g(),Dt("stroke-dasharray",r._strokeCircumference(),"px")("stroke-dashoffset",r._strokeDashOffset(),"px")("stroke-width",r._circleStrokeWidth(),"%"),X("r",r._circleRadius()),g(4),y("ngTemplateOutlet",o),g(2),y("ngTemplateOutlet",o),g(2),y("ngTemplateOutlet",o)}},dependencies:[Fn],styles:[`.mat-mdc-progress-spinner{--mat-progress-spinner-animation-multiplier: 1;display:block;overflow:hidden;line-height:0;position:relative;direction:ltr;transition:opacity 250ms cubic-bezier(0.4, 0, 0.6, 1)}.mat-mdc-progress-spinner circle{stroke-width:var(--mat-progress-spinner-active-indicator-width, 4px)}.mat-mdc-progress-spinner._mat-animation-noopable,.mat-mdc-progress-spinner._mat-animation-noopable .mdc-circular-progress__determinate-circle{transition:none !important}.mat-mdc-progress-spinner._mat-animation-noopable .mdc-circular-progress__indeterminate-circle-graphic,.mat-mdc-progress-spinner._mat-animation-noopable .mdc-circular-progress__spinner-layer,.mat-mdc-progress-spinner._mat-animation-noopable .mdc-circular-progress__indeterminate-container{animation:none !important}.mat-mdc-progress-spinner._mat-animation-noopable .mdc-circular-progress__indeterminate-container circle{stroke-dasharray:0 !important}@media(forced-colors: active){.mat-mdc-progress-spinner .mdc-circular-progress__indeterminate-circle-graphic,.mat-mdc-progress-spinner .mdc-circular-progress__determinate-circle{stroke:currentColor;stroke:CanvasText}}.mat-progress-spinner-reduced-motion{--mat-progress-spinner-animation-multiplier: 1.25}.mdc-circular-progress__determinate-container,.mdc-circular-progress__indeterminate-circle-graphic,.mdc-circular-progress__indeterminate-container,.mdc-circular-progress__spinner-layer{position:absolute;width:100%;height:100%}.mdc-circular-progress__determinate-container{transform:rotate(-90deg)}.mdc-circular-progress--indeterminate .mdc-circular-progress__determinate-container{opacity:0}.mdc-circular-progress__indeterminate-container{font-size:0;letter-spacing:0;white-space:nowrap;opacity:0}.mdc-circular-progress--indeterminate .mdc-circular-progress__indeterminate-container{opacity:1;animation:mdc-circular-progress-container-rotate calc(1568.2352941176ms*var(--mat-progress-spinner-animation-multiplier)) linear infinite}.mdc-circular-progress__determinate-circle-graphic,.mdc-circular-progress__indeterminate-circle-graphic{fill:rgba(0,0,0,0)}.mat-mdc-progress-spinner .mdc-circular-progress__determinate-circle,.mat-mdc-progress-spinner .mdc-circular-progress__indeterminate-circle-graphic{stroke:var(--mat-progress-spinner-active-indicator-color, var(--mat-sys-primary))}@media(forced-colors: active){.mat-mdc-progress-spinner .mdc-circular-progress__determinate-circle,.mat-mdc-progress-spinner .mdc-circular-progress__indeterminate-circle-graphic{stroke:CanvasText}}.mdc-circular-progress__determinate-circle{transition:stroke-dashoffset 500ms cubic-bezier(0, 0, 0.2, 1)}.mdc-circular-progress__gap-patch{position:absolute;top:0;left:47.5%;box-sizing:border-box;width:5%;height:100%;overflow:hidden}.mdc-circular-progress__gap-patch .mdc-circular-progress__indeterminate-circle-graphic{left:-900%;width:2000%;transform:rotate(180deg)}.mdc-circular-progress__circle-clipper .mdc-circular-progress__indeterminate-circle-graphic{width:200%}.mdc-circular-progress__circle-right .mdc-circular-progress__indeterminate-circle-graphic{left:-100%}.mdc-circular-progress--indeterminate .mdc-circular-progress__circle-left .mdc-circular-progress__indeterminate-circle-graphic{animation:mdc-circular-progress-left-spin calc(1333ms*var(--mat-progress-spinner-animation-multiplier)) cubic-bezier(0.4, 0, 0.2, 1) infinite both}.mdc-circular-progress--indeterminate .mdc-circular-progress__circle-right .mdc-circular-progress__indeterminate-circle-graphic{animation:mdc-circular-progress-right-spin calc(1333ms*var(--mat-progress-spinner-animation-multiplier)) cubic-bezier(0.4, 0, 0.2, 1) infinite both}.mdc-circular-progress__circle-clipper{display:inline-flex;position:relative;width:50%;height:100%;overflow:hidden}.mdc-circular-progress--indeterminate .mdc-circular-progress__spinner-layer{animation:mdc-circular-progress-spinner-layer-rotate calc(5332ms*var(--mat-progress-spinner-animation-multiplier)) cubic-bezier(0.4, 0, 0.2, 1) infinite both}@keyframes mdc-circular-progress-container-rotate{to{transform:rotate(360deg)}}@keyframes mdc-circular-progress-spinner-layer-rotate{12.5%{transform:rotate(135deg)}25%{transform:rotate(270deg)}37.5%{transform:rotate(405deg)}50%{transform:rotate(540deg)}62.5%{transform:rotate(675deg)}75%{transform:rotate(810deg)}87.5%{transform:rotate(945deg)}100%{transform:rotate(1080deg)}}@keyframes mdc-circular-progress-left-spin{from{transform:rotate(265deg)}50%{transform:rotate(130deg)}to{transform:rotate(265deg)}}@keyframes mdc-circular-progress-right-spin{from{transform:rotate(-265deg)}50%{transform:rotate(-130deg)}to{transform:rotate(-265deg)}} +`],encapsulation:2,changeDetection:0})}return t})();var Si=(()=>{class t{static \u0275fac=function(i){return new(i||t)};static \u0275mod=ee({type:t});static \u0275inj=J({imports:[we]})}return t})();function $ge(t,n){if(t&1){let e=Y();h(0,"div",1)(1,"button",2),S("click",function(){I(e);let r=C();return A(r.action())}),_(2),p()()}if(t&2){let e=C();g(2),ve(" ",e.data.action," ")}}var Wge=["label"];function Gge(t,n){}var qge=Math.pow(2,31)-1,b_=class{_overlayRef;instance;containerInstance;_afterDismissed=new z;_afterOpened=new z;_onAction=new z;_durationTimeoutId;_dismissedByAction=!1;constructor(n,e){this._overlayRef=e,this.containerInstance=n,n._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(n){this._durationTimeoutId=setTimeout(()=>this.dismiss(),Math.min(n,qge))}_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}},iU=new T("MatSnackBarData"),op=class{politeness="polite";announcementMessage="";viewContainerRef;duration=0;panelClass;direction;data=null;horizontalPosition="center";verticalPosition="bottom"},Yge=(()=>{class t{static \u0275fac=function(i){return new(i||t)};static \u0275dir=F({type:t,selectors:[["","matSnackBarLabel",""]],hostAttrs:[1,"mat-mdc-snack-bar-label","mdc-snackbar__label"]})}return t})(),Qge=(()=>{class t{static \u0275fac=function(i){return new(i||t)};static \u0275dir=F({type:t,selectors:[["","matSnackBarActions",""]],hostAttrs:[1,"mat-mdc-snack-bar-actions","mdc-snackbar__actions"]})}return t})(),Kge=(()=>{class t{static \u0275fac=function(i){return new(i||t)};static \u0275dir=F({type:t,selectors:[["","matSnackBarAction",""]],hostAttrs:[1,"mat-mdc-snack-bar-action","mdc-snackbar__action"]})}return t})(),nU=(()=>{class t{snackBarRef=u(b_);data=u(iU);constructor(){}action(){this.snackBarRef.dismissWithAction()}get hasAction(){return!!this.data.action}static \u0275fac=function(i){return new(i||t)};static \u0275cmp=E({type:t,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(i,r){i&1&&(h(0,"div",0),_(1),p(),N(2,$ge,3,1,"div",1)),i&2&&(g(),ve(" ",r.data.message,` +`),g(),L(r.hasAction?2:-1))},dependencies:[kt,Yge,Qge,Kge],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 t})(),LI="_mat-snack-bar-enter",VI="_mat-snack-bar-exit",Zge=(()=>{class t extends dc{_ngZone=u(ae);_elementRef=u(q);_changeDetectorRef=u(ye);_platform=u(qe);_animationsDisabled=Ye();snackBarConfig=u(op);_document=u(ge);_trackedModals=new Set;_enterFallback;_exitFallback;_injector=u(de);_announceDelay=150;_announceTimeoutId;_destroyed=!1;_portalOutlet;_onAnnounce=new z;_onExit=new z;_onEnter=new z;_animationState="void";_live;_label;_role;_liveElementId=u(Ze).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 i=this._portalOutlet.attachComponentPortal(e);return this._afterPortalAttached(),i}attachTemplatePortal(e){this._assertNotAttached();let i=this._portalOutlet.attachTemplatePortal(e);return this._afterPortalAttached(),i}attachDomPortal=e=>{this._assertNotAttached();let i=this._portalOutlet.attachDomPortal(e);return this._afterPortalAttached(),i};onAnimationEnd(e){e===VI?this._completeExit():e===LI&&(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?pt(()=>{this._ngZone.run(()=>queueMicrotask(()=>this.onAnimationEnd(LI)))},{injector:this._injector}):(clearTimeout(this._enterFallback),this._enterFallback=setTimeout(()=>{this._elementRef.nativeElement.classList.add("mat-snack-bar-fallback-visible"),this.onAnimationEnd(LI)},200)))}exit(){return this._destroyed?Q(void 0):(this._ngZone.run(()=>{this._animationState="hidden",this._changeDetectorRef.markForCheck(),this._elementRef.nativeElement.setAttribute("mat-exit",""),clearTimeout(this._announceTimeoutId),this._animationsDisabled?pt(()=>{this._ngZone.run(()=>queueMicrotask(()=>this.onAnimationEnd(VI)))},{injector:this._injector}):(clearTimeout(this._exitFallback),this._exitFallback=setTimeout(()=>this.onAnimationEnd(VI),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,i=this.snackBarConfig.panelClass;i&&(Array.isArray(i)?i.forEach(a=>e.classList.add(a)):e.classList.add(i)),this._exposeToModals();let r=this._label.nativeElement,o="mdc-snackbar__label";r.classList.toggle(o,!r.querySelector(`.${o}`))}_exposeToModals(){let e=this._liveElementId,i=this._document.querySelectorAll('body > .cdk-overlay-container [aria-modal="true"]');for(let r=0;r{let i=e.getAttribute("aria-owns");if(i){let r=i.replace(this._liveElementId,"").trim();r.length>0?e.setAttribute("aria-owns",r):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,i=e.querySelector("[aria-hidden]"),r=e.querySelector("[aria-live]");if(i&&r){let o=null;this._platform.isBrowser&&document.activeElement instanceof HTMLElement&&i.contains(document.activeElement)&&(o=document.activeElement),i.removeAttribute("aria-hidden"),r.appendChild(i),o?.focus(),this._onAnnounce.next(),this._onAnnounce.complete()}},this._announceDelay)})}static \u0275fac=function(i){return new(i||t)};static \u0275cmp=E({type:t,selectors:[["mat-snack-bar-container"]],viewQuery:function(i,r){if(i&1&&(ie(yr,7),ie(Wge,7)),i&2){let o;B(o=j())&&(r._portalOutlet=o.first),B(o=j())&&(r._label=o.first)}},hostAttrs:[1,"mdc-snackbar","mat-mdc-snack-bar-container"],hostVars:6,hostBindings:function(i,r){i&1&&S("animationend",function(a){return r.onAnimationEnd(a.animationName)})("animationcancel",function(a){return r.onAnimationEnd(a.animationName)}),i&2&&G("mat-snack-bar-container-enter",r._animationState==="visible")("mat-snack-bar-container-exit",r._animationState==="hidden")("mat-snack-bar-container-animations-enabled",!r._animationsDisabled)},features:[le],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(i,r){i&1&&(h(0,"div",1)(1,"div",2,0)(3,"div",3),R(4,Gge,0,0,"ng-template",4),p(),k(5,"div"),p()()),i&2&&(g(5),X("aria-live",r._live)("role",r._role)("id",r._liveElementId))},dependencies:[yr],styles:[`@keyframes _mat-snack-bar-enter{from{transform:scale(0.8);opacity:0}to{transform:scale(1);opacity:1}}@keyframes _mat-snack-bar-exit{from{opacity:1}to{opacity:0}}.mat-mdc-snack-bar-container{display:flex;align-items:center;justify-content:center;box-sizing:border-box;-webkit-tap-highlight-color:rgba(0,0,0,0);margin:8px}.mat-mdc-snack-bar-handset .mat-mdc-snack-bar-container{width:100vw}.mat-snack-bar-container-animations-enabled{opacity:0}.mat-snack-bar-container-animations-enabled.mat-snack-bar-fallback-visible{opacity:1}.mat-snack-bar-container-animations-enabled.mat-snack-bar-container-enter{animation:_mat-snack-bar-enter 150ms cubic-bezier(0, 0, 0.2, 1) forwards}.mat-snack-bar-container-animations-enabled.mat-snack-bar-container-exit{animation:_mat-snack-bar-exit 75ms cubic-bezier(0.4, 0, 1, 1) forwards}.mat-mdc-snackbar-surface{box-shadow:0px 3px 5px -1px rgba(0, 0, 0, 0.2), 0px 6px 10px 0px rgba(0, 0, 0, 0.14), 0px 1px 18px 0px rgba(0, 0, 0, 0.12);display:flex;align-items:center;justify-content:flex-start;box-sizing:border-box;padding-left:0;padding-right:8px}[dir=rtl] .mat-mdc-snackbar-surface{padding-right:0;padding-left:8px}.mat-mdc-snack-bar-container .mat-mdc-snackbar-surface{min-width:344px;max-width:672px}.mat-mdc-snack-bar-handset .mat-mdc-snackbar-surface{width:100%;min-width:0}@media(forced-colors: active){.mat-mdc-snackbar-surface{outline:solid 1px}}.mat-mdc-snack-bar-container .mat-mdc-snackbar-surface{color:var(--mat-snack-bar-supporting-text-color, var(--mat-sys-inverse-on-surface));border-radius:var(--mat-snack-bar-container-shape, var(--mat-sys-corner-extra-small));background-color:var(--mat-snack-bar-container-color, var(--mat-sys-inverse-surface))}.mdc-snackbar__label{width:100%;flex-grow:1;box-sizing:border-box;margin:0;padding:14px 8px 14px 16px}[dir=rtl] .mdc-snackbar__label{padding-left:8px;padding-right:16px}.mat-mdc-snack-bar-container .mdc-snackbar__label{font-family:var(--mat-snack-bar-supporting-text-font, var(--mat-sys-body-medium-font));font-size:var(--mat-snack-bar-supporting-text-size, var(--mat-sys-body-medium-size));font-weight:var(--mat-snack-bar-supporting-text-weight, var(--mat-sys-body-medium-weight));line-height:var(--mat-snack-bar-supporting-text-line-height, var(--mat-sys-body-medium-line-height))}.mat-mdc-snack-bar-actions{display:flex;flex-shrink:0;align-items:center;box-sizing:border-box}.mat-mdc-snack-bar-handset,.mat-mdc-snack-bar-container,.mat-mdc-snack-bar-label{flex:1 1 auto}.mat-mdc-snack-bar-container .mat-mdc-button.mat-mdc-snack-bar-action:not(:disabled){--mat-button-text-state-layer-color: currentColor;--mat-button-text-ripple-color: currentColor}.mat-mdc-snack-bar-container .mat-mdc-button.mat-mdc-snack-bar-action:not(:disabled).mat-unthemed{color:var(--mat-snack-bar-button-color, var(--mat-sys-inverse-primary))}.mat-mdc-snack-bar-container .mat-mdc-button.mat-mdc-snack-bar-action:not(:disabled) .mat-ripple-element{opacity:.1} +`],encapsulation:2})}return t})();function Xge(){return new op}var Jge=new T("mat-snack-bar-default-options",{providedIn:"root",factory:Xge}),di=(()=>{class t{_live=u(Gf);_injector=u(de);_breakpointObserver=u(sl);_parentSnackBar=u(t,{optional:!0,skipSelf:!0});_defaultConfig=u(Jge);_animationsDisabled=Ye();_snackBarRefAtThisLevel=null;simpleSnackBarComponent=nU;snackBarContainerComponent=Zge;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,i){return this._attach(e,i)}openFromTemplate(e,i){return this._attach(e,i)}open(e,i="",r){let o=M(M({},this._defaultConfig),r);return o.data={message:e,action:i},o.announcementMessage===e&&(o.announcementMessage=void 0),this.openFromComponent(this.simpleSnackBarComponent,o)}dismiss(){this._openedSnackBarRef&&this._openedSnackBarRef.dismiss()}ngOnDestroy(){this._snackBarRefAtThisLevel&&this._snackBarRefAtThisLevel.dismiss()}_attachSnackBarContainer(e,i){let r=i&&i.viewContainerRef&&i.viewContainerRef.injector,o=de.create({parent:r||this._injector,providers:[{provide:op,useValue:i}]}),a=new Zr(this.snackBarContainerComponent,i.viewContainerRef,o),s=e.attach(a);return s.instance.snackBarConfig=i,s.instance}_attach(e,i){let r=M(M(M({},new op),this._defaultConfig),i),o=this._createOverlay(r),a=this._attachSnackBarContainer(o,r),s=new b_(a,o);if(e instanceof te){let l=new Cn(e,null,{$implicit:r.data,snackBarRef:s});s.instance=a.attachTemplatePortal(l)}else{let l=this._createInjector(r,s),c=new Zr(e,void 0,l),d=a.attachComponentPortal(c);s.instance=d.instance}return this._breakpointObserver.observe(F0.HandsetPortrait).pipe(Te(o.detachments())).subscribe(l=>{o.overlayElement.classList.toggle(this.handsetCssClass,l.matches)}),r.announcementMessage&&a._onAnnounce.subscribe(()=>{this._live.announce(r.announcementMessage,r.politeness)}),this._animateSnackBar(s,r),this._openedSnackBarRef=s,this._openedSnackBarRef}_animateSnackBar(e,i){e.afterDismissed().subscribe(()=>{this._openedSnackBarRef==e&&(this._openedSnackBarRef=null),i.announcementMessage&&this._live.clear()}),i.duration&&i.duration>0&&e.afterOpened().subscribe(()=>e._dismissAfter(i.duration)),this._openedSnackBarRef?(this._openedSnackBarRef.afterDismissed().subscribe(()=>{e.containerInstance.enter()}),this._openedSnackBarRef.dismiss()):e.containerInstance.enter()}_createOverlay(e){let i=new Fr;i.direction=e.direction;let r=Ds(this._injector),o=e.direction==="rtl",a=e.horizontalPosition==="left"||e.horizontalPosition==="start"&&!o||e.horizontalPosition==="end"&&o,s=!a&&e.horizontalPosition!=="center";return a?r.left("0"):s?r.right("0"):r.centerHorizontally(),e.verticalPosition==="top"?r.top("0"):r.bottom("0"),i.positionStrategy=r,i.disableAnimations=this._animationsDisabled,Nr(this._injector,i)}_createInjector(e,i){let r=e&&e.viewContainerRef&&e.viewContainerRef.injector;return de.create({parent:r||this._injector,providers:[{provide:b_,useValue:i},{provide:iU,useValue:e.data}]})}static \u0275fac=function(i){return new(i||t)};static \u0275prov=O({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();var pi=(()=>{class t{static \u0275fac=function(i){return new(i||t)};static \u0275mod=ee({type:t});static \u0275inj=J({providers:[di],imports:[er,Co,ze,we,nU,we]})}return t})();var Un=(()=>{let n=class n{constructor(){this.authService=u(Tt),this.templateRef=u(te),this.viewContainer=u(nt)}set appHasRole(i){this.updateView(i)}ngOnInit(){this.subscription=this.authService.isAuthenticated$.subscribe(()=>{let i=this.roles;i&&this.updateView(i)})}ngOnDestroy(){this.subscription?.unsubscribe()}updateView(i){this.roles=i,this.viewContainer.clear(),this.checkRole(i)&&this.viewContainer.createEmbeddedView(this.templateRef)}checkRole(i){return this.authService.isAuthenticated()?typeof i=="string"?this.authService.hasRole(i):Array.isArray(i)?this.authService.hasAnyRole(i):!1:!1}};n.\u0275fac=function(r){return new(r||n)},n.\u0275dir=F({type:n,selectors:[["","appHasRole",""]],inputs:{appHasRole:"appHasRole"}});let t=n;return t})();var da=class{constructor(){this.http=u(Yr),this.apiUrl=ko.apiUrl}getAll(n){let e=this.buildHttpParams(n);return this.http.get(`${this.apiUrl}/${this.endpoint}`,{params:e}).pipe(se(i=>i.value))}getAllPaged(n){let e=this.buildHttpParams(n);return this.http.get(`${this.apiUrl}/${this.endpoint}`,{params:e})}getById(n){return this.http.get(`${this.apiUrl}/${this.endpoint}/${n}`).pipe(se(e=>e.value))}create(n){return this.http.post(`${this.apiUrl}/${this.endpoint}`,n).pipe(se(e=>e&&"value"in e&&typeof e.value=="string"?{id:e.value}:e))}update(n,e){return this.http.put(`${this.apiUrl}/${this.endpoint}/${n}`,e)}delete(n){return this.http.delete(`${this.apiUrl}/${this.endpoint}/${n}`)}buildHttpParams(n){let e=new Qn;return n&&Object.keys(n).forEach(i=>{let r=n[i];r!=null&&(e=e.set(i,r.toString()))}),e}};var rU=(()=>{let n=class n extends da{constructor(){super(...arguments),this.endpoint="Dashboard"}getDashboardMetrics(){return this.http.get(`${this.apiUrl}/${this.endpoint}/Metrics`).pipe(se(i=>{if(i.isSuccess&&i.value)return i.value;throw new Error(i.message||"Failed to load dashboard metrics")}))}};n.\u0275fac=(()=>{let i;return function(o){return(i||(i=fe(n)))(o||n)}})(),n.\u0275prov=O({token:n,factory:n.\u0275fac,providedIn:"root"});let t=n;return t})();var Vs=(()=>{let n=class n extends da{constructor(){super(...arguments),this.endpoint="Departments"}createDepartment(i){return this.create(i)}updateDepartment(i){return this.update(i.id,i)}};n.\u0275fac=(()=>{let i;return function(o){return(i||(i=fe(n)))(o||n)}})(),n.\u0275prov=O({token:n,factory:n.\u0275fac,providedIn:"root"});let t=n;return t})();var ap=(()=>{let n=class n extends da{constructor(){super(...arguments),this.endpoint="Employees"}createEmployee(i){return this.create(i)}updateEmployee(i){return this.update(i.id,i)}};n.\u0275fac=(()=>{let i;return function(o){return(i||(i=fe(n)))(o||n)}})(),n.\u0275prov=O({token:n,factory:n.\u0275fac,providedIn:"root"});let t=n;return t})();var Bc=(()=>{let n=class n extends da{constructor(){super(...arguments),this.endpoint="Positions"}createPosition(i){return this.create(i)}updatePosition(i){return this.update(i.id,i)}getAllPaged(i){let r=this.buildHttpParams(i);return this.http.get(`${this.apiUrl}/${this.endpoint}`,{params:r})}addMockPositions(i){return this.http.post(`${this.apiUrl}/${this.endpoint}/AddMock`,i)}};n.\u0275fac=(()=>{let i;return function(o){return(i||(i=fe(n)))(o||n)}})(),n.\u0275prov=O({token:n,factory:n.\u0275fac,providedIn:"root"});let t=n;return t})();var jc=(()=>{let n=class n extends da{constructor(){super(...arguments),this.endpoint="SalaryRanges"}createSalaryRange(i){return this.create(i)}updateSalaryRange(i){return this.update(i.id,i)}};n.\u0275fac=(()=>{let i;return function(o){return(i||(i=fe(n)))(o||n)}})(),n.\u0275prov=O({token:n,factory:n.\u0275fac,providedIn:"root"});let t=n;return t})();var oU=(()=>{let n=class n{decodeToken(i){if(!i)return null;try{let r=i.split(".");if(r.length!==3)return console.warn("Invalid JWT token format"),null;let o=this.decodeBase64Url(r[0]),a=this.decodeBase64Url(r[1]),s=r[2],l=JSON.parse(a),c=l.iat?new Date(l.iat*1e3):void 0,d=l.exp?new Date(l.exp*1e3):void 0,m=new Date,f=d?d24){let s=Math.floor(o/24);return`Expires in ${s} day${s>1?"s":""}`}else return o>0?`Expires in ${o}h ${a}m`:a>0?`Expires in ${a}m`:"Expires soon"}};n.\u0275fac=function(r){return new(r||n)},n.\u0275prov=O({token:n,factory:n.\u0275fac,providedIn:"root"});let t=n;return t})();var e_e=()=>["HRAdmin","Manager"],aU=()=>["HRAdmin"];function t_e(t,n){t&1&&(h(0,"div",3),k(1,"mat-spinner"),p())}function i_e(t,n){if(t&1&&(h(0,"div",21),k(1,"canvas",22),p()),t&2){let e=C(2);g(),y("data",e.departmentChartData)("options",e.departmentChartOptions)}}function n_e(t,n){t&1&&(h(0,"div",23)(1,"mat-icon"),_(2,"pie_chart"),p(),h(3,"p"),_(4,"No department data available"),p()())}function r_e(t,n){if(t&1&&(h(0,"div",21),k(1,"canvas",24),p()),t&2){let e=C(2);g(),y("data",e.positionChartData)("options",e.positionChartOptions)}}function o_e(t,n){t&1&&(h(0,"div",23)(1,"mat-icon"),_(2,"bar_chart"),p(),h(3,"p"),_(4,"No position data available"),p()())}function a_e(t,n){if(t&1&&(h(0,"div",21),k(1,"canvas",25),p()),t&2){let e=C(2);g(),y("data",e.genderChartData)("options",e.genderChartOptions)}}function s_e(t,n){t&1&&(h(0,"div",23)(1,"mat-icon"),_(2,"donut_large"),p(),h(3,"p"),_(4,"No gender data available"),p()())}function l_e(t,n){if(t&1&&(h(0,"div",21),k(1,"canvas",24),p()),t&2){let e=C(2);g(),y("data",e.salaryChartData)("options",e.salaryChartOptions)}}function c_e(t,n){t&1&&(h(0,"div",23)(1,"mat-icon"),_(2,"bar_chart"),p(),h(3,"p"),_(4,"No salary range data available"),p()())}function d_e(t,n){if(t&1){let e=Y();h(0,"mat-list-item",27),S("click",function(){let r=I(e).$implicit,o=C(3);return A(o.navigateToEmployee(r.id))}),h(1,"mat-icon",28),_(2,"person"),p(),h(3,"div",29),_(4),p(),h(5,"div",30),_(6),p(),h(7,"div",31),_(8),me(9,"date"),p()()}if(t&2){let e=n.$implicit;g(4),H(e.fullName),g(2),Od("",e.positionTitle," \u2022 ",e.departmentName),g(2),H(Ni(9,4,e.createdAt,"MMM d, y"))}}function u_e(t,n){if(t&1&&(h(0,"mat-list"),R(1,d_e,10,7,"mat-list-item",26),p()),t&2){let e=C(2);g(),y("ngForOf",e.metrics.recentEmployees)}}function m_e(t,n){t&1&&(h(0,"div",23)(1,"mat-icon"),_(2,"people_outline"),p(),h(3,"p"),_(4,"No recent employees"),p()())}function h_e(t,n){if(t&1){let e=Y();h(0,"button",36),S("click",function(){I(e);let r=C(3);return A(r.navigateToAddDepartment())}),h(1,"mat-icon"),_(2,"add_business"),p(),_(3," Add Department "),p()}}function p_e(t,n){if(t&1){let e=Y();h(0,"button",36),S("click",function(){I(e);let r=C(3);return A(r.navigateToAddPosition())}),h(1,"mat-icon"),_(2,"work_outline"),p(),_(3," Add Position "),p()}}function f_e(t,n){if(t&1){let e=Y();h(0,"div",32)(1,"mat-card")(2,"mat-card-header")(3,"mat-card-title"),_(4,"Quick Actions"),p()(),h(5,"mat-card-content")(6,"div",33)(7,"button",34),S("click",function(){I(e);let r=C(2);return A(r.navigateToAddEmployee())}),h(8,"mat-icon"),_(9,"person_add"),p(),_(10," Add Employee "),p(),R(11,h_e,4,0,"button",35)(12,p_e,4,0,"button",35),p()()()()}t&2&&(g(11),y("appHasRole",at(2,aU)),g(),y("appHasRole",at(3,aU)))}function g_e(t,n){if(t&1){let e=Y();h(0,"div",4)(1,"div",5)(2,"mat-card",6)(3,"mat-card-content")(4,"div",7)(5,"mat-icon"),_(6,"people"),p()(),h(7,"div",8),_(8),p(),h(9,"div",9),_(10,"Total Employees"),p()()(),h(11,"mat-card",6)(12,"mat-card-content")(13,"div",7)(14,"mat-icon"),_(15,"business"),p()(),h(16,"div",8),_(17),p(),h(18,"div",9),_(19,"Departments"),p()()(),h(20,"mat-card",6)(21,"mat-card-content")(22,"div",7)(23,"mat-icon"),_(24,"work"),p()(),h(25,"div",8),_(26),p(),h(27,"div",9),_(28,"Positions"),p()()(),h(29,"mat-card",6)(30,"mat-card-content")(31,"div",7)(32,"mat-icon"),_(33,"attach_money"),p()(),h(34,"div",8),_(35),p(),h(36,"div",9),_(37,"Salary Ranges"),p()()()(),h(38,"div",10)(39,"mat-card",11)(40,"mat-card-content")(41,"div",12)(42,"mat-icon"),_(43,"person_add"),p()(),h(44,"div",8),_(45),p(),h(46,"div",9),_(47,"New Hires This Month"),p()()(),h(48,"mat-card",11)(49,"mat-card-content")(50,"div",12)(51,"mat-icon"),_(52,"payments"),p()(),h(53,"div",8),_(54),me(55,"currency"),p(),h(56,"div",9),_(57,"Average Salary"),p()()()(),h(58,"div",13)(59,"mat-card",14)(60,"mat-card-header")(61,"mat-card-title"),_(62,"Employees by Department"),p()(),h(63,"mat-card-content"),R(64,i_e,2,2,"div",15)(65,n_e,5,0,"div",16),p()(),h(66,"mat-card",14)(67,"mat-card-header")(68,"mat-card-title"),_(69,"Top 10 Positions"),p()(),h(70,"mat-card-content"),R(71,r_e,2,2,"div",15)(72,o_e,5,0,"div",16),p()()(),h(73,"div",13)(74,"mat-card",14)(75,"mat-card-header")(76,"mat-card-title"),_(77,"Gender Distribution"),p()(),h(78,"mat-card-content"),R(79,a_e,2,2,"div",15)(80,s_e,5,0,"div",16),p()(),h(81,"mat-card",14)(82,"mat-card-header")(83,"mat-card-title"),_(84,"Salary Range Distribution"),p()(),h(85,"mat-card-content"),R(86,l_e,2,2,"div",15)(87,c_e,5,0,"div",16),p()()(),h(88,"div",17)(89,"mat-card")(90,"mat-card-header")(91,"mat-card-title"),_(92,"Recent Employees"),p(),h(93,"button",18),S("click",function(){I(e);let r=C();return A(r.navigateToEmployees())}),_(94," View All "),h(95,"mat-icon"),_(96,"arrow_forward"),p()()(),h(97,"mat-card-content"),R(98,u_e,2,1,"mat-list",19)(99,m_e,5,0,"div",16),p()()(),R(100,f_e,13,4,"div",20),p()}if(t&2){let e=C();g(8),H(e.metrics.totalEmployees),g(9),H(e.metrics.totalDepartments),g(9),H(e.metrics.totalPositions),g(9),H(e.metrics.totalSalaryRanges),g(10),H(e.metrics.newHiresThisMonth),g(9),H(Dm(55,17,e.metrics.averageSalary,"USD","symbol","1.0-0")),g(10),y("ngIf",e.departmentChartData),g(),y("ngIf",!e.departmentChartData),g(6),y("ngIf",e.positionChartData),g(),y("ngIf",!e.positionChartData),g(7),y("ngIf",e.genderChartData),g(),y("ngIf",!e.genderChartData),g(6),y("ngIf",e.salaryChartData),g(),y("ngIf",!e.salaryChartData),g(11),y("ngIf",e.metrics.recentEmployees&&e.metrics.recentEmployees.length>0),g(),y("ngIf",!e.metrics.recentEmployees||e.metrics.recentEmployees.length===0),g(),y("appHasRole",at(22,e_e))}}function __e(t,n){if(t&1){let e=Y();h(0,"div",37)(1,"mat-card")(2,"mat-card-content")(3,"div",23)(4,"mat-icon"),_(5,"error_outline"),p(),h(6,"p"),_(7,"Unable to load dashboard data"),p(),h(8,"button",34),S("click",function(){I(e);let r=C();return A(r.loadDashboardMetrics())}),h(9,"mat-icon"),_(10,"refresh"),p(),_(11," Retry "),p()()()()()}}var sU=(()=>{let n=class n{constructor(){this.dashboardService=u(rU),this.router=u(Re),this.snackBar=u(di),this.loading=!0,this.metrics=null,this.departmentChartData=null,this.departmentChartOptions={responsive:!0,maintainAspectRatio:!1,plugins:{legend:{position:"bottom"},tooltip:{callbacks:{label:i=>{let r=i.label||"",o=i.parsed||0;return`${r}: ${o} employees`}}}}},this.positionChartData=null,this.positionChartOptions={responsive:!0,maintainAspectRatio:!1,indexAxis:"y",plugins:{legend:{display:!1},tooltip:{callbacks:{label:i=>`${i.parsed.x} employees`}}},scales:{x:{beginAtZero:!0,ticks:{precision:0}}}},this.genderChartData=null,this.genderChartOptions={responsive:!0,maintainAspectRatio:!1,plugins:{legend:{position:"bottom"},tooltip:{callbacks:{label:i=>{let r=i.label||"",o=i.parsed||0;return`${r}: ${o} employees`}}}}},this.salaryChartData=null,this.salaryChartOptions={responsive:!0,maintainAspectRatio:!1,plugins:{legend:{display:!1},tooltip:{callbacks:{label:i=>`${i.parsed.y} employees`}}},scales:{y:{beginAtZero:!0,ticks:{precision:0}}}}}ngOnInit(){this.loadDashboardMetrics()}loadDashboardMetrics(){this.loading=!0,this.dashboardService.getDashboardMetrics().subscribe({next:i=>{this.metrics=i,this.prepareCharts(i),this.loading=!1},error:i=>{console.error("Error loading dashboard metrics:",i),this.showMessage("Error loading dashboard data"),this.loading=!1}})}prepareCharts(i){this.prepareDepartmentChart(i.employeesByDepartment),this.preparePositionChart(i.employeesByPosition),this.prepareGenderChart(i.genderDistribution),this.prepareSalaryChart(i.employeesBySalaryRange)}prepareDepartmentChart(i){if(!i||i.length===0){this.departmentChartData=null;return}this.departmentChartData={labels:i.map(r=>r.departmentName),datasets:[{data:i.map(r=>r.employeeCount),backgroundColor:["#FF6384","#36A2EB","#FFCE56","#4BC0C0","#9966FF","#FF9F40","#FF6384","#C9CBCF"]}]}}preparePositionChart(i){if(!i||i.length===0){this.positionChartData=null;return}this.positionChartData={labels:i.map(r=>r.positionTitle),datasets:[{label:"Employees",data:i.map(r=>r.employeeCount),backgroundColor:"#36A2EB"}]}}prepareGenderChart(i){if(!i){this.genderChartData=null;return}this.genderChartData={labels:["Male","Female"],datasets:[{data:[i.male,i.female],backgroundColor:["#36A2EB","#FF6384"]}]}}prepareSalaryChart(i){if(!i||i.length===0){this.salaryChartData=null;return}this.salaryChartData={labels:i.map(r=>r.rangeName),datasets:[{label:"Employees",data:i.map(r=>r.employeeCount),backgroundColor:"#4BC0C0"}]}}navigateToAddEmployee(){this.router.navigate(["/employees/create"])}navigateToAddDepartment(){this.router.navigate(["/departments/create"])}navigateToAddPosition(){this.router.navigate(["/positions/create"])}navigateToEmployees(){this.router.navigate(["/employees"])}navigateToEmployee(i){this.router.navigate(["/employees",i])}showMessage(i){this.snackBar.open(i,"Close",{duration:3e3,horizontalPosition:"end",verticalPosition:"top"})}};n.\u0275fac=function(r){return new(r||n)},n.\u0275cmp=E({type:n,selectors:[["app-dashboard"]],decls:4,vars:3,consts:[["class","loading-spinner",4,"ngIf"],["class","dashboard-container",4,"ngIf"],["class","error-state",4,"ngIf"],[1,"loading-spinner"],[1,"dashboard-container"],[1,"metrics-row"],[1,"metric-card"],[1,"metric-icon"],[1,"metric-value"],[1,"metric-label"],[1,"secondary-metrics-row"],[1,"metric-card","secondary"],[1,"metric-icon","secondary"],[1,"charts-row"],[1,"chart-card"],["class","chart-container",4,"ngIf"],["class","no-data",4,"ngIf"],[1,"activity-row"],["mat-button","","color","primary",3,"click"],[4,"ngIf"],["class","actions-row",4,"appHasRole"],[1,"chart-container"],["baseChart","","type","pie",3,"data","options"],[1,"no-data"],["baseChart","","type","bar",3,"data","options"],["baseChart","","type","doughnut",3,"data","options"],["class","clickable-item",3,"click",4,"ngFor","ngForOf"],[1,"clickable-item",3,"click"],["matListItemIcon",""],["matListItemTitle",""],["matListItemLine",""],["matListItemMeta",""],[1,"actions-row"],[1,"action-buttons"],["mat-raised-button","","color","primary",3,"click"],["mat-raised-button","","color","accent",3,"click",4,"appHasRole"],["mat-raised-button","","color","accent",3,"click"],[1,"error-state"]],template:function(r,o){r&1&&(k(0,"page-header"),R(1,t_e,2,0,"div",0)(2,g_e,101,23,"div",1)(3,__e,12,0,"div",2)),r&2&&(g(),y("ngIf",o.loading),g(),y("ngIf",!o.loading&&o.metrics),g(),y("ngIf",!o.loading&&!o.metrics))},dependencies:[gt,qr,li,$t,zt,Ut,Jt,Xt,ot,mt,ze,kt,Si,ki,ca,Fs,la,f_,Tu,Dl,SI,pi,W5,ni,Un,il,Sa],styles:[".loading-spinner[_ngcontent-%COMP%]{display:flex;justify-content:center;align-items:center;min-height:400px}.dashboard-container[_ngcontent-%COMP%]{padding:16px;max-width:1400px;margin:0 auto}.metrics-row[_ngcontent-%COMP%], .secondary-metrics-row[_ngcontent-%COMP%]{display:grid;grid-template-columns:repeat(auto-fit,minmax(200px,1fr));gap:16px;margin-bottom:24px}@media (max-width: 768px){.metrics-row[_ngcontent-%COMP%], .secondary-metrics-row[_ngcontent-%COMP%]{grid-template-columns:repeat(2,1fr)}}@media (max-width: 480px){.metrics-row[_ngcontent-%COMP%], .secondary-metrics-row[_ngcontent-%COMP%]{grid-template-columns:1fr}}.secondary-metrics-row[_ngcontent-%COMP%]{grid-template-columns:repeat(auto-fit,minmax(250px,1fr))}.metric-card[_ngcontent-%COMP%] mat-card-content[_ngcontent-%COMP%]{padding:24px!important;text-align:center}.metric-card[_ngcontent-%COMP%] .metric-icon[_ngcontent-%COMP%]{display:inline-flex;align-items:center;justify-content:center;width:64px;height:64px;border-radius:50%;background-color:#3f51b51a;margin-bottom:16px}.metric-card[_ngcontent-%COMP%] .metric-icon[_ngcontent-%COMP%] mat-icon[_ngcontent-%COMP%]{font-size:32px;width:32px;height:32px;color:#3f51b5}.metric-card[_ngcontent-%COMP%] .metric-icon.secondary[_ngcontent-%COMP%]{background-color:#ff98001a}.metric-card[_ngcontent-%COMP%] .metric-icon.secondary[_ngcontent-%COMP%] mat-icon[_ngcontent-%COMP%]{color:#ff9800}.metric-card[_ngcontent-%COMP%] .metric-value[_ngcontent-%COMP%]{font-size:32px;font-weight:600;color:#000000de;margin-bottom:8px;line-height:1.2}.metric-card[_ngcontent-%COMP%] .metric-label[_ngcontent-%COMP%]{font-size:14px;color:#0009;text-transform:uppercase;letter-spacing:.5px}.metric-card[_ngcontent-%COMP%]:hover{box-shadow:0 4px 8px #00000026;transition:box-shadow .3s ease}.charts-row[_ngcontent-%COMP%]{display:grid;grid-template-columns:repeat(auto-fit,minmax(400px,1fr));gap:24px;margin-bottom:24px}@media (max-width: 900px){.charts-row[_ngcontent-%COMP%]{grid-template-columns:1fr}}.chart-card[_ngcontent-%COMP%] mat-card-header[_ngcontent-%COMP%]{padding:16px 16px 0;margin-bottom:16px}.chart-card[_ngcontent-%COMP%] mat-card-header[_ngcontent-%COMP%] mat-card-title[_ngcontent-%COMP%]{font-size:18px;font-weight:500;margin:0}.chart-card[_ngcontent-%COMP%] mat-card-content[_ngcontent-%COMP%]{padding:0 16px 16px}.chart-card[_ngcontent-%COMP%] .chart-container[_ngcontent-%COMP%]{position:relative;height:300px;width:100%}.chart-card[_ngcontent-%COMP%] .no-data[_ngcontent-%COMP%]{display:flex;flex-direction:column;align-items:center;justify-content:center;min-height:300px;color:#00000061}.chart-card[_ngcontent-%COMP%] .no-data[_ngcontent-%COMP%] mat-icon[_ngcontent-%COMP%]{font-size:48px;width:48px;height:48px;margin-bottom:12px}.chart-card[_ngcontent-%COMP%] .no-data[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{margin:0;font-size:14px}.activity-row[_ngcontent-%COMP%]{margin-bottom:24px}.activity-row[_ngcontent-%COMP%] mat-card-header[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:space-between;padding:16px;border-bottom:1px solid rgba(0,0,0,.12)}.activity-row[_ngcontent-%COMP%] mat-card-header[_ngcontent-%COMP%] mat-card-title[_ngcontent-%COMP%]{font-size:18px;font-weight:500;margin:0}.activity-row[_ngcontent-%COMP%] mat-card-header[_ngcontent-%COMP%] button[_ngcontent-%COMP%] mat-icon[_ngcontent-%COMP%]{margin-left:4px;font-size:18px;width:18px;height:18px}.activity-row[_ngcontent-%COMP%] mat-card-content[_ngcontent-%COMP%]{padding:0}.activity-row[_ngcontent-%COMP%] mat-list[_ngcontent-%COMP%]{padding:0}.activity-row[_ngcontent-%COMP%] mat-list-item[_ngcontent-%COMP%]{height:auto;padding:12px 16px;cursor:pointer;transition:background-color .2s ease}.activity-row[_ngcontent-%COMP%] mat-list-item[_ngcontent-%COMP%]:hover{background-color:#0000000a}.activity-row[_ngcontent-%COMP%] mat-list-item[_ngcontent-%COMP%]:not(:last-child){border-bottom:1px solid rgba(0,0,0,.08)}.activity-row[_ngcontent-%COMP%] mat-list-item[_ngcontent-%COMP%] mat-icon[_ngcontent-%COMP%]{color:#0000008a}.activity-row[_ngcontent-%COMP%] .clickable-item[_ngcontent-%COMP%]{cursor:pointer}.activity-row[_ngcontent-%COMP%] .no-data[_ngcontent-%COMP%]{display:flex;flex-direction:column;align-items:center;justify-content:center;padding:48px 16px;color:#00000061}.activity-row[_ngcontent-%COMP%] .no-data[_ngcontent-%COMP%] mat-icon[_ngcontent-%COMP%]{font-size:48px;width:48px;height:48px;margin-bottom:12px}.activity-row[_ngcontent-%COMP%] .no-data[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{margin:0;font-size:14px}.actions-row[_ngcontent-%COMP%]{margin-bottom:24px}.actions-row[_ngcontent-%COMP%] mat-card-header[_ngcontent-%COMP%]{padding:16px;border-bottom:1px solid rgba(0,0,0,.12)}.actions-row[_ngcontent-%COMP%] mat-card-header[_ngcontent-%COMP%] mat-card-title[_ngcontent-%COMP%]{font-size:18px;font-weight:500;margin:0}.actions-row[_ngcontent-%COMP%] mat-card-content[_ngcontent-%COMP%]{padding:24px 16px}.actions-row[_ngcontent-%COMP%] .action-buttons[_ngcontent-%COMP%]{display:flex;gap:12px;flex-wrap:wrap}.actions-row[_ngcontent-%COMP%] .action-buttons[_ngcontent-%COMP%] button[_ngcontent-%COMP%] mat-icon[_ngcontent-%COMP%]{margin-right:8px}@media (max-width: 600px){.actions-row[_ngcontent-%COMP%] .action-buttons[_ngcontent-%COMP%]{flex-direction:column}.actions-row[_ngcontent-%COMP%] .action-buttons[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{width:100%}}.error-state[_ngcontent-%COMP%]{padding:16px}.error-state[_ngcontent-%COMP%] mat-card[_ngcontent-%COMP%]{max-width:600px;margin:0 auto}.error-state[_ngcontent-%COMP%] .no-data[_ngcontent-%COMP%]{display:flex;flex-direction:column;align-items:center;justify-content:center;padding:48px 16px;color:#0000008a}.error-state[_ngcontent-%COMP%] .no-data[_ngcontent-%COMP%] mat-icon[_ngcontent-%COMP%]{font-size:64px;width:64px;height:64px;margin-bottom:16px;color:#f44336}.error-state[_ngcontent-%COMP%] .no-data[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{margin:0 0 24px;font-size:16px}.error-state[_ngcontent-%COMP%] .no-data[_ngcontent-%COMP%] button[_ngcontent-%COMP%] mat-icon[_ngcontent-%COMP%]{margin-right:8px;font-size:20px;width:20px;height:20px}@media (max-width: 1200px){.dashboard-container[_ngcontent-%COMP%]{padding:12px}.charts-row[_ngcontent-%COMP%]{gap:16px}}@media (max-width: 768px){.metric-card[_ngcontent-%COMP%] mat-card-content[_ngcontent-%COMP%]{padding:16px!important}.metric-card[_ngcontent-%COMP%] .metric-icon[_ngcontent-%COMP%]{width:56px;height:56px}.metric-card[_ngcontent-%COMP%] .metric-icon[_ngcontent-%COMP%] mat-icon[_ngcontent-%COMP%]{font-size:28px;width:28px;height:28px}.metric-card[_ngcontent-%COMP%] .metric-value[_ngcontent-%COMP%]{font-size:28px}.metric-card[_ngcontent-%COMP%] .metric-label[_ngcontent-%COMP%]{font-size:12px}.chart-card[_ngcontent-%COMP%] .chart-container[_ngcontent-%COMP%]{height:250px}}@media (max-width: 480px){.dashboard-container[_ngcontent-%COMP%]{padding:8px}.metrics-row[_ngcontent-%COMP%], .secondary-metrics-row[_ngcontent-%COMP%], .charts-row[_ngcontent-%COMP%]{gap:12px;margin-bottom:16px}.metric-card[_ngcontent-%COMP%] .metric-value[_ngcontent-%COMP%]{font-size:24px}.chart-card[_ngcontent-%COMP%] .chart-container[_ngcontent-%COMP%]{height:200px}}"]});let t=n;return t})();var lU=(()=>{let n=class n{};n.\u0275fac=function(r){return new(r||n)},n.\u0275cmp=E({type:n,selectors:[["app-error-403"]],decls:1,vars:0,consts:[["code","403","title","Permission denied!","message","You do not have permission to access the requested data."]],template:function(r,o){r&1&&k(0,"error-code",0)},dependencies:[tp],encapsulation:2});let t=n;return t})();var cU=(()=>{let n=class n{};n.\u0275fac=function(r){return new(r||n)},n.\u0275cmp=E({type:n,selectors:[["app-error-404"]],decls:1,vars:0,consts:[["code","404","title","Page not found!","message","This is not the web page you are looking for."]],template:function(r,o){r&1&&k(0,"error-code",0)},dependencies:[tp],encapsulation:2});let t=n;return t})();var dU=(()=>{let n=class n{};n.\u0275fac=function(r){return new(r||n)},n.\u0275cmp=E({type:n,selectors:[["app-error-500"]],decls:1,vars:0,consts:[["code","500","title","Server went wrong!","message","Just kidding, looks like we have an internal issue, please try refreshing."]],template:function(r,o){r&1&&k(0,"error-code",0)},dependencies:[tp],encapsulation:2});let t=n;return t})();var b_e=t=>({value:t});function v_e(t,n){t&1&&(h(0,"mat-error")(1,"span"),_(2),me(3,"translate"),p()()),t&2&&(g(2),H(Oe(3,1,"validation.required")))}function y_e(t,n){t&1&&(h(0,"mat-error")(1,"span"),_(2),me(3,"translate"),p()()),t&2&&(g(2),H(Oe(3,1,"validation.required")))}function x_e(t,n){t&1&&(h(0,"mat-error")(1,"span"),_(2),me(3,"translate"),p()()),t&2&&(g(2),H(Oe(3,1,"validation.required")))}function C_e(t,n){t&1&&(h(0,"mat-error",8),me(1,"translate"),h(2,"span"),_(3),p()()),t&2&&(y("translateParams",Pt(4,b_e,Oe(1,2,"login.password"))),g(3),H("validation.inconsistent"))}var uU=(()=>{let n=class n{constructor(){this.fb=u(eo),this.registerForm=this.fb.nonNullable.group({username:["",[Le.required]],password:["",[Le.required]],confirmPassword:["",[Le.required]]},{validators:[this.matchValidator("password","confirmPassword")]})}matchValidator(i,r){return o=>{let a=o.get(i),s=o.get(r);return s.errors&&!s.errors.mismatch?null:a.value!==s.value?(s.setErrors({mismatch:!0}),{mismatch:!0}):(s.setErrors(null),null)}}};n.\u0275fac=function(r){return new(r||n)},n.\u0275cmp=E({type:n,selectors:[["app-register"]],decls:43,vars:32,consts:[[1,"d-flex","w-full","h-full"],[1,"m-auto",2,"max-width","380px"],[1,"m-b-24"],[1,"form-field-full",3,"formGroup"],["appearance","outline"],["matInput","","formControlName","username","required",""],["matInput","","type","password","formControlName","password","required",""],["matInput","","type","password","formControlName","confirmPassword","required",""],["translate","",3,"translateParams"],["matButton","filled",1,"w-full","m-y-16"],["routerLink","/auth/login"]],template:function(r,o){if(r&1&&(h(0,"div",0)(1,"mat-card",1)(2,"mat-card-header",2)(3,"mat-card-title"),_(4),me(5,"translate"),k(6,"br"),_(7),me(8,"translate"),p()(),h(9,"mat-card-content")(10,"form",3)(11,"mat-form-field",4)(12,"mat-label"),_(13),me(14,"translate"),p(),k(15,"input",5),N(16,v_e,4,3,"mat-error"),p(),h(17,"mat-form-field",4)(18,"mat-label"),_(19),me(20,"translate"),p(),k(21,"input",6),N(22,y_e,4,3,"mat-error"),p(),h(23,"mat-form-field",4)(24,"mat-label"),_(25),me(26,"translate"),p(),k(27,"input",7),N(28,x_e,4,3,"mat-error"),N(29,C_e,4,6,"mat-error",8),p(),h(30,"mat-checkbox"),_(31),me(32,"translate"),p(),h(33,"button",9),_(34),me(35,"translate"),p(),h(36,"div")(37,"span"),_(38),me(39,"translate"),p(),h(40,"a",10),_(41),me(42,"translate"),p()()()()()()),r&2){let a,s,l,c;g(4),ve(" ",Oe(5,14,"register_welcome"),", "),g(3),ve(" ",Oe(8,16,"register_title")," "),g(3),y("formGroup",o.registerForm),g(3),H(Oe(14,18,"username")),g(3),L((a=o.registerForm.get("username"))!=null&&a.invalid?16:-1),g(3),H(Oe(20,20,"password")),g(3),L((s=o.registerForm.get("password"))!=null&&s.invalid?22:-1),g(3),H(Oe(26,22,"confirm_password")),g(3),L((l=o.registerForm.get("confirmPassword"))!=null&&l.hasError("required")?28:-1),g(),L((c=o.registerForm.get("confirmPassword"))!=null&&c.hasError("mismatch")?29:-1),g(2),H(Oe(32,24,"read_and_agree")),g(3),H(Oe(35,26,"register")),g(4),ve("",Oe(39,28,"have_an_account"),"?"),g(3),H(Oe(42,30,"login"))}},dependencies:[Nn,du,Jr,Qi,ei,Xr,Do,zn,Ki,Lr,ze,kt,$t,zt,Ut,Jt,Xt,yx,Va,$i,Oi,sn,xo,rr,hn,wr,B3,Cr],encapsulation:2});let t=n;return t})();var mU=(()=>{let n=class n{constructor(){this.authService=u(Tt),this.router=u(Re)}ngOnInit(){return fn(this,null,function*(){try{(yield this.authService.initAuth())?this.router.navigate(["/dashboard"]):(console.warn("Authentication callback failed, redirecting to dashboard as guest"),this.router.navigate(["/dashboard"]))}catch(i){console.error("Error processing callback:",i),this.router.navigate(["/dashboard"])}})}};n.\u0275fac=function(r){return new(r||n)},n.\u0275cmp=E({type:n,selectors:[["app-callback"]],decls:5,vars:0,consts:[[1,"callback-container"]],template:function(r,o){r&1&&(ft(0,"div",0)(1,"h2"),_(2,"Processing login..."),vt(),ft(3,"p"),_(4,"Please wait while we complete your authentication."),vt()())},styles:[".callback-container[_ngcontent-%COMP%]{display:flex;flex-direction:column;align-items:center;justify-content:center;height:100vh;text-align:center}"]});let t=n;return t})();var w_e=[[["caption"]],[["colgroup"],["col"]],"*"],D_e=["caption","colgroup, col","*"];function E_e(t,n){t&1&&oe(0,2)}function M_e(t,n){t&1&&(h(0,"thead",0),Ge(1,1),p(),h(2,"tbody",0),Ge(3,2)(4,3),p(),h(5,"tfoot",0),Ge(6,4),p())}function k_e(t,n){t&1&&Ge(0,1)(1,2)(2,3)(3,4)}var za=new T("CDK_TABLE");var uw=(()=>{class t{template=u(te);constructor(){}static \u0275fac=function(i){return new(i||t)};static \u0275dir=F({type:t,selectors:[["","cdkCellDef",""]]})}return t})(),mw=(()=>{class t{template=u(te);constructor(){}static \u0275fac=function(i){return new(i||t)};static \u0275dir=F({type:t,selectors:[["","cdkHeaderCellDef",""]]})}return t})(),fU=(()=>{class t{template=u(te);constructor(){}static \u0275fac=function(i){return new(i||t)};static \u0275dir=F({type:t,selectors:[["","cdkFooterCellDef",""]]})}return t})(),sp=(()=>{class t{_table=u(za,{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(i){return new(i||t)};static \u0275dir=F({type:t,selectors:[["","cdkColumnDef",""]],contentQueries:function(i,r,o){if(i&1&&(xe(o,uw,5),xe(o,mw,5),xe(o,fU,5)),i&2){let a;B(a=j())&&(r.cell=a.first),B(a=j())&&(r.headerCell=a.first),B(a=j())&&(r.footerCell=a.first)}},inputs:{name:[0,"cdkColumnDef","name"],sticky:[2,"sticky","sticky",V],stickyEnd:[2,"stickyEnd","stickyEnd",V]},features:[Ce([{provide:"MAT_SORT_HEADER_COLUMN_DEF",useExisting:t}])]})}return t})(),cw=class{constructor(n,e){e.nativeElement.classList.add(...n._columnCssClassName)}},gU=(()=>{class t extends cw{constructor(){super(u(sp),u(q))}static \u0275fac=function(i){return new(i||t)};static \u0275dir=F({type:t,selectors:[["cdk-header-cell"],["th","cdk-header-cell",""]],hostAttrs:["role","columnheader",1,"cdk-header-cell"],features:[le]})}return t})();var _U=(()=>{class t extends cw{constructor(){let e=u(sp),i=u(q);super(e,i);let r=e._table?._getCellRole();r&&i.nativeElement.setAttribute("role",r)}static \u0275fac=function(i){return new(i||t)};static \u0275dir=F({type:t,selectors:[["cdk-cell"],["td","cdk-cell",""]],hostAttrs:[1,"cdk-cell"],features:[le]})}return t})();var jI=(()=>{class t{template=u(te);_differs=u(ds);columns;_columnsDiffer;constructor(){}ngOnChanges(e){if(!this._columnsDiffer){let i=e.columns&&e.columns.currentValue||[];this._columnsDiffer=this._differs.find(i).create(),this._columnsDiffer.diff(i)}}getColumnsDiff(){return this._columnsDiffer.diff(this.columns)}extractCellTemplate(e){return this instanceof v_?e.headerCell.template:this instanceof HI?e.footerCell.template:e.cell.template}static \u0275fac=function(i){return new(i||t)};static \u0275dir=F({type:t,features:[Ae]})}return t})(),v_=(()=>{class t extends jI{_table=u(za,{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(u(te),u(ds))}ngOnChanges(e){super.ngOnChanges(e)}hasStickyChanged(){let e=this._hasStickyChanged;return this.resetStickyChanged(),e}resetStickyChanged(){this._hasStickyChanged=!1}static \u0275fac=function(i){return new(i||t)};static \u0275dir=F({type:t,selectors:[["","cdkHeaderRowDef",""]],inputs:{columns:[0,"cdkHeaderRowDef","columns"],sticky:[2,"cdkHeaderRowDefSticky","sticky",V]},features:[le,Ae]})}return t})(),HI=(()=>{class t extends jI{_table=u(za,{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(u(te),u(ds))}ngOnChanges(e){super.ngOnChanges(e)}hasStickyChanged(){let e=this._hasStickyChanged;return this.resetStickyChanged(),e}resetStickyChanged(){this._hasStickyChanged=!1}static \u0275fac=function(i){return new(i||t)};static \u0275dir=F({type:t,selectors:[["","cdkFooterRowDef",""]],inputs:{columns:[0,"cdkFooterRowDef","columns"],sticky:[2,"cdkFooterRowDefSticky","sticky",V]},features:[le,Ae]})}return t})(),hw=(()=>{class t extends jI{_table=u(za,{optional:!0});when;constructor(){super(u(te),u(ds))}static \u0275fac=function(i){return new(i||t)};static \u0275dir=F({type:t,selectors:[["","cdkRowDef",""]],inputs:{columns:[0,"cdkRowDefColumns","columns"],when:[0,"cdkRowDefWhen","when"]},features:[le]})}return t})(),Au=(()=>{class t{_viewContainer=u(nt);cells;context;static mostRecentCellOutlet=null;constructor(){t.mostRecentCellOutlet=this}ngOnDestroy(){t.mostRecentCellOutlet===this&&(t.mostRecentCellOutlet=null)}static \u0275fac=function(i){return new(i||t)};static \u0275dir=F({type:t,selectors:[["","cdkCellOutlet",""]]})}return t})(),zI=(()=>{class t{static \u0275fac=function(i){return new(i||t)};static \u0275cmp=E({type:t,selectors:[["cdk-header-row"],["tr","cdk-header-row",""]],hostAttrs:["role","row",1,"cdk-header-row"],decls:1,vars:0,consts:[["cdkCellOutlet",""]],template:function(i,r){i&1&&Ge(0,0)},dependencies:[Au],encapsulation:2})}return t})();var UI=(()=>{class t{static \u0275fac=function(i){return new(i||t)};static \u0275cmp=E({type:t,selectors:[["cdk-row"],["tr","cdk-row",""]],hostAttrs:["role","row",1,"cdk-row"],decls:1,vars:0,consts:[["cdkCellOutlet",""]],template:function(i,r){i&1&&Ge(0,0)},dependencies:[Au],encapsulation:2})}return t})(),pw=(()=>{class t{templateRef=u(te);_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(i){return new(i||t)};static \u0275dir=F({type:t,selectors:[["ng-template","cdkNoDataRow",""]]})}return t})(),hU=["top","bottom","left","right"],BI=class{_isNativeHtmlTable;_stickCellCss;_isBrowser;_needsPositionStickyOnElement;direction;_positionListener;_tableInjector;_elemSizeCache=new WeakMap;_resizeObserver=globalThis?.ResizeObserver?new globalThis.ResizeObserver(n=>this._updateCachedSizes(n)):null;_updatedStickyColumnsParamsToReplay=[];_stickyColumnsReplayTimeout=null;_cachedCellWidths=[];_borderCellCss;_destroyed=!1;constructor(n,e,i=!0,r=!0,o,a,s){this._isNativeHtmlTable=n,this._stickCellCss=e,this._isBrowser=i,this._needsPositionStickyOnElement=r,this.direction=o,this._positionListener=a,this._tableInjector=s,this._borderCellCss={top:`${e}-border-elem-top`,bottom:`${e}-border-elem-bottom`,left:`${e}-border-elem-left`,right:`${e}-border-elem-right`}}clearStickyPositioning(n,e){(e.includes("left")||e.includes("right"))&&this._removeFromStickyColumnReplayQueue(n);let i=[];for(let r of n)r.nodeType===r.ELEMENT_NODE&&i.push(r,...Array.from(r.children));pt({write:()=>{for(let r of i)this._removeStickyStyle(r,e)}},{injector:this._tableInjector})}updateStickyColumns(n,e,i,r=!0,o=!0){if(!n.length||!this._isBrowser||!(e.some(x=>x)||i.some(x=>x))){this._positionListener?.stickyColumnsUpdated({sizes:[]}),this._positionListener?.stickyEndColumnsUpdated({sizes:[]});return}let a=n[0],s=a.children.length,l=this.direction==="rtl",c=l?"right":"left",d=l?"left":"right",m=e.lastIndexOf(!0),f=i.indexOf(!0),b,v,w;o&&this._updateStickyColumnReplayQueue({rows:[...n],stickyStartStates:[...e],stickyEndStates:[...i]}),pt({earlyRead:()=>{b=this._getCellWidths(a,r),v=this._getStickyStartColumnPositions(b,e),w=this._getStickyEndColumnPositions(b,i)},write:()=>{for(let x of n)for(let D=0;D!!x)&&(this._positionListener.stickyColumnsUpdated({sizes:m===-1?[]:b.slice(0,m+1).map((x,D)=>e[D]?x:null)}),this._positionListener.stickyEndColumnsUpdated({sizes:f===-1?[]:b.slice(f).map((x,D)=>i[D+f]?x:null).reverse()}))}},{injector:this._tableInjector})}stickRows(n,e,i){if(!this._isBrowser)return;let r=i==="bottom"?n.slice().reverse():n,o=i==="bottom"?e.slice().reverse():e,a=[],s=[],l=[];pt({earlyRead:()=>{for(let c=0,d=0;c{let c=o.lastIndexOf(!0);for(let d=0;d{let i=n.querySelector("tfoot");i&&(e.some(r=>!r)?this._removeStickyStyle(i,["bottom"]):this._addStickyStyle(i,"bottom",0,!1))}},{injector:this._tableInjector})}destroy(){this._stickyColumnsReplayTimeout&&clearTimeout(this._stickyColumnsReplayTimeout),this._resizeObserver?.disconnect(),this._destroyed=!0}_removeStickyStyle(n,e){if(!n.classList.contains(this._stickCellCss))return;for(let r of e)n.style[r]="",n.classList.remove(this._borderCellCss[r]);hU.some(r=>e.indexOf(r)===-1&&n.style[r])?n.style.zIndex=this._getCalculatedZIndex(n):(n.style.zIndex="",this._needsPositionStickyOnElement&&(n.style.position=""),n.classList.remove(this._stickCellCss))}_addStickyStyle(n,e,i,r){n.classList.add(this._stickCellCss),r&&n.classList.add(this._borderCellCss[e]),n.style[e]=`${i}px`,n.style.zIndex=this._getCalculatedZIndex(n),this._needsPositionStickyOnElement&&(n.style.cssText+="position: -webkit-sticky; position: sticky; ")}_getCalculatedZIndex(n){let e={top:100,bottom:10,left:1,right:1},i=0;for(let r of hU)n.style[r]&&(i+=e[r]);return i?`${i}`:""}_getCellWidths(n,e=!0){if(!e&&this._cachedCellWidths.length)return this._cachedCellWidths;let i=[],r=n.children;for(let o=0;o0;o--)e[o]&&(i[o]=r,r+=n[o]);return i}_retrieveElementSize(n){let e=this._elemSizeCache.get(n);if(e)return e;let i=n.getBoundingClientRect(),r={width:i.width,height:i.height};return this._resizeObserver&&(this._elemSizeCache.set(n,r),this._resizeObserver.observe(n,{box:"border-box"})),r}_updateStickyColumnReplayQueue(n){this._removeFromStickyColumnReplayQueue(n.rows),this._stickyColumnsReplayTimeout||this._updatedStickyColumnsParamsToReplay.push(n)}_removeFromStickyColumnReplayQueue(n){let e=new Set(n);for(let i of this._updatedStickyColumnsParamsToReplay)i.rows=i.rows.filter(r=>!e.has(r));this._updatedStickyColumnsParamsToReplay=this._updatedStickyColumnsParamsToReplay.filter(i=>!!i.rows.length)}_updateCachedSizes(n){let e=!1;for(let i of n){let r=i.borderBoxSize?.length?{width:i.borderBoxSize[0].inlineSize,height:i.borderBoxSize[0].blockSize}:{width:i.contentRect.width,height:i.contentRect.height};r.width!==this._elemSizeCache.get(i.target)?.width&&S_e(i.target)&&(e=!0),this._elemSizeCache.set(i.target,r)}e&&this._updatedStickyColumnsParamsToReplay.length&&(this._stickyColumnsReplayTimeout&&clearTimeout(this._stickyColumnsReplayTimeout),this._stickyColumnsReplayTimeout=setTimeout(()=>{if(!this._destroyed){for(let i of this._updatedStickyColumnsParamsToReplay)this.updateStickyColumns(i.rows,i.stickyStartStates,i.stickyEndStates,!0,!1);this._updatedStickyColumnsParamsToReplay=[],this._stickyColumnsReplayTimeout=null}},0))}};function S_e(t){return["cdk-cell","cdk-header-cell","cdk-footer-cell"].some(n=>t.classList.contains(n))}var dw=new T("CDK_SPL");var $I=(()=>{class t{viewContainer=u(nt);elementRef=u(q);constructor(){let e=u(za);e._rowOutlet=this,e._outletAssigned()}static \u0275fac=function(i){return new(i||t)};static \u0275dir=F({type:t,selectors:[["","rowOutlet",""]]})}return t})(),WI=(()=>{class t{viewContainer=u(nt);elementRef=u(q);constructor(){let e=u(za);e._headerRowOutlet=this,e._outletAssigned()}static \u0275fac=function(i){return new(i||t)};static \u0275dir=F({type:t,selectors:[["","headerRowOutlet",""]]})}return t})(),GI=(()=>{class t{viewContainer=u(nt);elementRef=u(q);constructor(){let e=u(za);e._footerRowOutlet=this,e._outletAssigned()}static \u0275fac=function(i){return new(i||t)};static \u0275dir=F({type:t,selectors:[["","footerRowOutlet",""]]})}return t})(),qI=(()=>{class t{viewContainer=u(nt);elementRef=u(q);constructor(){let e=u(za);e._noDataRowOutlet=this,e._outletAssigned()}static \u0275fac=function(i){return new(i||t)};static \u0275dir=F({type:t,selectors:[["","noDataRowOutlet",""]]})}return t})(),YI=(()=>{class t{_differs=u(ds);_changeDetectorRef=u(ye);_elementRef=u(q);_dir=u(Vt,{optional:!0});_platform=u(qe);_viewRepeater=u(fh);_viewportRuler=u(Xn);_stickyPositioningListener=u(dw,{optional:!0,skipSelf:!0});_document=u(ge);_data;_onDestroy=new z;_renderRows;_renderChangeSubscription;_columnDefsByName=new Map;_rowDefs;_headerRowDefs;_footerRowDefs;_dataDiffer;_defaultRowDef;_customColumnDefs=new Set;_customRowDefs=new Set;_customHeaderRowDefs=new Set;_customFooterRowDefs=new Set;_customNoDataRow;_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;_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)}_dataSource;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._fixedLayout}set fixedLayout(e){this._fixedLayout=e,this._forceRecalculateCellWidths=!0,this._stickyColumnStylesNeedReset=!0}_fixedLayout=!1;contentChanged=new U;viewChange=new tt({start:0,end:Number.MAX_VALUE});_rowOutlet;_headerRowOutlet;_footerRowOutlet;_noDataRowOutlet;_contentColumnDefs;_contentRowDefs;_contentHeaderRowDefs;_contentFooterRowDefs;_noDataRow;_injector=u(de);constructor(){u(new Ii("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((i,r)=>this.trackBy?this.trackBy(r.dataIndex,r.data):r)}ngOnInit(){this._setupStickyStyler(),this._viewportRuler.change().pipe(Te(this._onDestroy)).subscribe(()=>{this._forceRecalculateCellWidths=!0})}ngAfterContentInit(){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._onDestroy.next(),this._onDestroy.complete(),ig(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 i=this._rowOutlet.viewContainer;this._viewRepeater.applyChanges(e,i,(r,o,a)=>this._getEmbeddedViewArgs(r.item,a),r=>r.item.data,r=>{r.operation===cc.INSERTED&&r.context&&this._renderCellTemplateForItem(r.record.item.rowDef,r.context)}),this._updateRowIndexContext(),e.forEachIdentityChange(r=>{let o=i.get(r.currentIndex);o.context.$implicit=r.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 r=pU(this._headerRowOutlet,"thead");r&&(r.style.display=e.length?"":"none")}let i=this._headerRowDefs.map(r=>r.sticky);this._stickyStyler.clearStickyPositioning(e,["top"]),this._stickyStyler.stickRows(e,i,"top"),this._headerRowDefs.forEach(r=>r.resetStickyChanged())}updateStickyFooterRowStyles(){let e=this._getRenderedRows(this._footerRowOutlet);if(this._isNativeHtmlTable){let r=pU(this._footerRowOutlet,"tfoot");r&&(r.style.display=e.length?"":"none")}let i=this._footerRowDefs.map(r=>r.sticky);this._stickyStyler.clearStickyPositioning(e,["bottom"]),this._stickyStyler.stickRows(e,i,"bottom"),this._stickyStyler.updateStickyFooterContainer(this._elementRef.nativeElement,i),this._footerRowDefs.forEach(r=>r.resetStickyChanged())}updateStickyColumnStyles(){let e=this._getRenderedRows(this._headerRowOutlet),i=this._getRenderedRows(this._rowOutlet),r=this._getRenderedRows(this._footerRowOutlet);(this._isNativeHtmlTable&&!this._fixedLayout||this._stickyColumnStylesNeedReset)&&(this._stickyStyler.clearStickyPositioning([...e,...i,...r],["left","right"]),this._stickyColumnStylesNeedReset=!1),e.forEach((o,a)=>{this._addStickyColumnStyles([o],this._headerRowDefs[a])}),this._rowDefs.forEach(o=>{let a=[];for(let s=0;s{this._addStickyColumnStyles([o],this._footerRowDefs[a])}),Array.from(this._columnDefsByName.values()).forEach(o=>o.resetStickyChanged())}_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 i=this._renderUpdatedColumns()||this._headerRowDefChanged||this._footerRowDefChanged;this._stickyColumnStylesNeedReset=this._stickyColumnStylesNeedReset||i,this._forceRecalculateCellWidths=i,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(){let e=[],i=this._cachedRenderRowsMap;if(this._cachedRenderRowsMap=new Map,!this._data)return e;for(let r=0;r{let s=r&&r.has(a)?r.get(a):[];if(s.length){let l=s.shift();return l.dataIndex=i,l}else return{data:e,rowDef:a,dataIndex:i}})}_cacheColumnDefs(){this._columnDefsByName.clear(),lw(this._getOwnDefs(this._contentColumnDefs),this._customColumnDefs).forEach(i=>{this._columnDefsByName.has(i.name),this._columnDefsByName.set(i.name,i)})}_cacheRowDefs(){this._headerRowDefs=lw(this._getOwnDefs(this._contentHeaderRowDefs),this._customHeaderRowDefs),this._footerRowDefs=lw(this._getOwnDefs(this._contentFooterRowDefs),this._customFooterRowDefs),this._rowDefs=lw(this._getOwnDefs(this._contentRowDefs),this._customRowDefs);let e=this._rowDefs.filter(i=>!i.when);!this.multiTemplateDataRows&&e.length>1,this._defaultRowDef=e[0]}_renderUpdatedColumns(){let e=(a,s)=>{let l=!!s.getColumnsDiff();return a||l},i=this._rowDefs.reduce(e,!1);i&&this._forceRenderDataRows();let r=this._headerRowDefs.reduce(e,!1);r&&this._forceRenderHeaderRows();let o=this._footerRowDefs.reduce(e,!1);return o&&this._forceRenderFooterRows(),i||r||o}_switchDataSource(e){this._data=[],ig(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;ig(this.dataSource)?e=this.dataSource.connect(this):ji(this.dataSource)?e=this.dataSource:Array.isArray(this.dataSource)&&(e=Q(this.dataSource)),this._renderChangeSubscription=e.pipe(Te(this._onDestroy)).subscribe(i=>{this._data=i||[],this.renderRows()})}_forceRenderHeaderRows(){this._headerRowOutlet.viewContainer.length>0&&this._headerRowOutlet.viewContainer.clear(),this._headerRowDefs.forEach((e,i)=>this._renderRow(this._headerRowOutlet,e,i)),this.updateStickyHeaderRowStyles()}_forceRenderFooterRows(){this._footerRowOutlet.viewContainer.length>0&&this._footerRowOutlet.viewContainer.clear(),this._footerRowDefs.forEach((e,i)=>this._renderRow(this._footerRowOutlet,e,i)),this.updateStickyFooterRowStyles()}_addStickyColumnStyles(e,i){let r=Array.from(i?.columns||[]).map(s=>{let l=this._columnDefsByName.get(s);return l}),o=r.map(s=>s.sticky),a=r.map(s=>s.stickyEnd);this._stickyStyler.updateStickyColumns(e,o,a,!this._fixedLayout||this._forceRecalculateCellWidths)}_getRenderedRows(e){let i=[];for(let r=0;r!o.when||o.when(i,e));else{let o=this._rowDefs.find(a=>a.when&&a.when(i,e))||this._defaultRowDef;o&&r.push(o)}return r.length,r}_getEmbeddedViewArgs(e,i){let r=e.rowDef,o={$implicit:e.data};return{templateRef:r.template,context:o,index:i}}_renderRow(e,i,r,o={}){let a=e.viewContainer.createEmbeddedView(i.template,o,r);return this._renderCellTemplateForItem(i,o),a}_renderCellTemplateForItem(e,i){for(let r of this._getCellTemplates(e))Au.mostRecentCellOutlet&&Au.mostRecentCellOutlet._viewContainer.createEmbeddedView(r,i);this._changeDetectorRef.markForCheck()}_updateRowIndexContext(){let e=this._rowOutlet.viewContainer;for(let i=0,r=e.length;i{let r=this._columnDefsByName.get(i);return e.extractCellTemplate(r)})}_forceRenderDataRows(){this._dataDiffer.diff([]),this._rowOutlet.viewContainer.clear(),this.renderRows()}_checkStickyStates(){let e=(i,r)=>i||r.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";this._stickyStyler=new BI(this._isNativeHtmlTable,this.stickyCssClass,this._platform.isBrowser,this.needsPositionStickyOnElement,e,this._stickyPositioningListener,this._injector),(this._dir?this._dir.change:Q()).pipe(Te(this._onDestroy)).subscribe(i=>{this._stickyStyler.direction=i,this.updateStickyColumnStyles()})}_getOwnDefs(e){return e.filter(i=>!i._table||i._table===this)}_updateNoDataRow(){let e=this._customNoDataRow||this._noDataRow;if(!e)return;let i=this._rowOutlet.viewContainer.length===0;if(i===this._isShowingNoDataRow)return;let r=this._noDataRowOutlet.viewContainer;if(i){let o=r.createEmbeddedView(e.templateRef),a=o.rootNodes[0];if(o.rootNodes.length===1&&a?.nodeType===this._document.ELEMENT_NODE){a.setAttribute("role","row"),a.classList.add(...e._contentClassNames);let s=a.querySelectorAll(e._cellSelector);for(let l=0;l{class t{static \u0275fac=function(i){return new(i||t)};static \u0275mod=ee({type:t});static \u0275inj=J({imports:[ng]})}return t})();var T_e=[[["caption"]],[["colgroup"],["col"]],"*"],I_e=["caption","colgroup, col","*"];function A_e(t,n){t&1&&oe(0,2)}function O_e(t,n){t&1&&(h(0,"thead",0),Ge(1,1),p(),h(2,"tbody",2),Ge(3,3)(4,4),p(),h(5,"tfoot",0),Ge(6,5),p())}function R_e(t,n){t&1&&Ge(0,1)(1,3)(2,4)(3,5)}var Hc=(()=>{class t extends YI{stickyCssClass="mat-mdc-table-sticky";needsPositionStickyOnElement=!1;static \u0275fac=(()=>{let e;return function(r){return(e||(e=fe(t)))(r||t)}})();static \u0275cmp=E({type:t,selectors:[["mat-table"],["table","mat-table",""]],hostAttrs:[1,"mat-mdc-table","mdc-data-table__table"],hostVars:2,hostBindings:function(i,r){i&2&&G("mdc-table-fixed-layout",r.fixedLayout)},exportAs:["matTable"],features:[Ce([{provide:YI,useExisting:t},{provide:za,useExisting:t},{provide:fh,useClass:su},{provide:dw,useValue:null}]),le],ngContentSelectors:I_e,decls:5,vars:2,consts:[["role","rowgroup"],["headerRowOutlet",""],["role","rowgroup",1,"mdc-data-table__content"],["rowOutlet",""],["noDataRowOutlet",""],["footerRowOutlet",""]],template:function(i,r){i&1&&(Me(T_e),oe(0),oe(1,1),N(2,A_e,1,0),N(3,O_e,7,0)(4,R_e,4,0)),i&2&&(g(2),L(r._isServer?2:-1),g(),L(r._isNativeHtmlTable?3:4))},dependencies:[WI,$I,qI,GI],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))}.mdc-data-table__cell{box-sizing:border-box;overflow:hidden;text-align:left;text-overflow:ellipsis}[dir=rtl] .mdc-data-table__cell{text-align:right}.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:left}[dir=rtl] .mat-mdc-header-cell{text-align:right}.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 t})(),zc=(()=>{class t extends uw{static \u0275fac=(()=>{let e;return function(r){return(e||(e=fe(t)))(r||t)}})();static \u0275dir=F({type:t,selectors:[["","matCellDef",""]],features:[Ce([{provide:uw,useExisting:t}]),le]})}return t})(),Uc=(()=>{class t extends mw{static \u0275fac=(()=>{let e;return function(r){return(e||(e=fe(t)))(r||t)}})();static \u0275dir=F({type:t,selectors:[["","matHeaderCellDef",""]],features:[Ce([{provide:mw,useExisting:t}]),le]})}return t})();var $c=(()=>{class t extends sp{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(r){return(e||(e=fe(t)))(r||t)}})();static \u0275dir=F({type:t,selectors:[["","matColumnDef",""]],inputs:{name:[0,"matColumnDef","name"]},features:[Ce([{provide:sp,useExisting:t},{provide:"MAT_SORT_HEADER_COLUMN_DEF",useExisting:t}]),le]})}return t})(),Wc=(()=>{class t extends gU{static \u0275fac=(()=>{let e;return function(r){return(e||(e=fe(t)))(r||t)}})();static \u0275dir=F({type:t,selectors:[["mat-header-cell"],["th","mat-header-cell",""]],hostAttrs:["role","columnheader",1,"mat-mdc-header-cell","mdc-data-table__header-cell"],features:[le]})}return t})();var Gc=(()=>{class t extends _U{static \u0275fac=(()=>{let e;return function(r){return(e||(e=fe(t)))(r||t)}})();static \u0275dir=F({type:t,selectors:[["mat-cell"],["td","mat-cell",""]],hostAttrs:[1,"mat-mdc-cell","mdc-data-table__cell"],features:[le]})}return t})();var qc=(()=>{class t extends v_{static \u0275fac=(()=>{let e;return function(r){return(e||(e=fe(t)))(r||t)}})();static \u0275dir=F({type:t,selectors:[["","matHeaderRowDef",""]],inputs:{columns:[0,"matHeaderRowDef","columns"],sticky:[2,"matHeaderRowDefSticky","sticky",V]},features:[Ce([{provide:v_,useExisting:t}]),le]})}return t})();var Yc=(()=>{class t extends hw{static \u0275fac=(()=>{let e;return function(r){return(e||(e=fe(t)))(r||t)}})();static \u0275dir=F({type:t,selectors:[["","matRowDef",""]],inputs:{columns:[0,"matRowDefColumns","columns"],when:[0,"matRowDefWhen","when"]},features:[Ce([{provide:hw,useExisting:t}]),le]})}return t})(),Qc=(()=>{class t extends zI{static \u0275fac=(()=>{let e;return function(r){return(e||(e=fe(t)))(r||t)}})();static \u0275cmp=E({type:t,selectors:[["mat-header-row"],["tr","mat-header-row",""]],hostAttrs:["role","row",1,"mat-mdc-header-row","mdc-data-table__header-row"],exportAs:["matHeaderRow"],features:[Ce([{provide:zI,useExisting:t}]),le],decls:1,vars:0,consts:[["cdkCellOutlet",""]],template:function(i,r){i&1&&Ge(0,0)},dependencies:[Au],encapsulation:2})}return t})();var Kc=(()=>{class t extends UI{static \u0275fac=(()=>{let e;return function(r){return(e||(e=fe(t)))(r||t)}})();static \u0275cmp=E({type:t,selectors:[["mat-row"],["tr","mat-row",""]],hostAttrs:["role","row",1,"mat-mdc-row","mdc-data-table__row"],exportAs:["matRow"],features:[Ce([{provide:UI,useExisting:t}]),le],decls:1,vars:0,consts:[["cdkCellOutlet",""]],template:function(i,r){i&1&&Ge(0,0)},dependencies:[Au],encapsulation:2})}return t})(),gw=(()=>{class t extends pw{_cellSelector="td, mat-cell, [mat-cell], .mat-cell";constructor(){super(),this._contentClassNames.push("mat-mdc-no-data-row","mat-mdc-row","mdc-data-table__row"),this._cellClassNames.push("mat-mdc-cell","mdc-data-table__cell","mat-no-data-cell")}static \u0275fac=function(i){return new(i||t)};static \u0275dir=F({type:t,selectors:[["ng-template","matNoDataRow",""]],features:[Ce([{provide:pw,useExisting:t}]),le]})}return t})();var Zc=(()=>{class t{static \u0275fac=function(i){return new(i||t)};static \u0275mod=ee({type:t});static \u0275inj=J({imports:[we,bU,we]})}return t})(),P_e=9007199254740991,fw=class extends tg{_data;_renderData=new tt([]);_filter=new tt("");_internalPageChanges=new z;_renderChangesSubscription=null;filteredData;get data(){return this._data.value}set data(n){n=Array.isArray(n)?n:[],this._data.next(n),this._renderChangesSubscription||this._filterData(n)}get filter(){return this._filter.value}set filter(n){this._filter.next(n),this._renderChangesSubscription||this._filterData(this.data)}get sort(){return this._sort}set sort(n){this._sort=n,this._updateChangeSubscription()}_sort;get paginator(){return this._paginator}set paginator(n){this._paginator=n,this._updateChangeSubscription()}_paginator;sortingDataAccessor=(n,e)=>{let i=n[e];if(N0(i)){let r=Number(i);return r{let i=e.active,r=e.direction;return!i||r==""?n:n.sort((o,a)=>{let s=this.sortingDataAccessor(o,i),l=this.sortingDataAccessor(a,i),c=typeof s,d=typeof l;c!==d&&(c==="number"&&(s+=""),d==="number"&&(l+=""));let m=0;return s!=null&&l!=null?s>l?m=1:s{let i=e.trim().toLowerCase();return Object.values(n).some(r=>`${r}`.toLowerCase().includes(i))};constructor(n=[]){super(),this._data=new tt(n),this._updateChangeSubscription()}_updateChangeSubscription(){let n=this._sort?Je(this._sort.sortChange,this._sort.initialized):Q(null),e=this._paginator?Je(this._paginator.page,this._internalPageChanges,this._paginator.initialized):Q(null),i=this._data,r=co([i,this._filter]).pipe(se(([s])=>this._filterData(s))),o=co([r,n]).pipe(se(([s])=>this._orderData(s))),a=co([o,e]).pipe(se(([s])=>this._pageData(s)));this._renderChangesSubscription?.unsubscribe(),this._renderChangesSubscription=a.subscribe(s=>this._renderData.next(s))}_filterData(n){return this.filteredData=this.filter==null||this.filter===""?n:n.filter(e=>this.filterPredicate(e,this.filter)),this.paginator&&this._updatePaginator(this.filteredData.length),this.filteredData}_orderData(n){return this.sort?this.sortData(n.slice(),this.sort):n}_pageData(n){if(!this.paginator)return n;let e=this.paginator.pageIndex*this.paginator.pageSize;return n.slice(e,e+this.paginator.pageSize)}_updatePaginator(n){Promise.resolve().then(()=>{let e=this.paginator;if(e&&(e.length=n,e.pageIndex>0)){let i=Math.ceil(e.length/e.pageSize)-1||0,r=Math.min(e.pageIndex,i);r!==e.pageIndex&&(e.pageIndex=r,this._internalPageChanges.next())}})}connect(){return this._renderChangesSubscription||this._updateChangeSubscription(),this._renderData}disconnect(){this._renderChangesSubscription?.unsubscribe(),this._renderChangesSubscription=null}};var F_e=["panel"],N_e=["*"];function L_e(t,n){if(t&1&&(ft(0,"div",1,0),oe(2),vt()),t&2){let e=n.id,i=C();it(i._classList),G("mat-mdc-autocomplete-visible",i.showPanel)("mat-mdc-autocomplete-hidden",!i.showPanel)("mat-autocomplete-panel-animations-enabled",!i._animationsDisabled)("mat-primary",i._color==="primary")("mat-accent",i._color==="accent")("mat-warn",i._color==="warn"),si("id",i.id),X("aria-label",i.ariaLabel||null)("aria-labelledby",i._getPanelAriaLabelledby(e))}}var QI=class{source;option;constructor(n,e){this.source=n,this.option=e}},vU=new T("mat-autocomplete-default-options",{providedIn:"root",factory:V_e});function V_e(){return{autoActiveFirstOption:!1,autoSelectActiveOption:!1,hideSingleSelectionIndicator:!1,requireSelection:!1,hasBackdrop:!1}}var bw=(()=>{class t{_changeDetectorRef=u(ye);_elementRef=u(q);_defaults=u(vU);_animationsDisabled=Ye();_activeOptionChanges=ke.EMPTY;_keyManager;showPanel=!1;get isOpen(){return this._isOpen&&this.showPanel}_isOpen=!1;_latestOpeningTrigger;_setColor(e){this._color=e,this._changeDetectorRef.markForCheck()}_color;template;panel;options;optionGroups;ariaLabel;ariaLabelledby;displayWith=null;autoActiveFirstOption;autoSelectActiveOption;requireSelection;panelWidth;disableRipple;optionSelected=new U;opened=new U;closed=new U;optionActivated=new U;set classList(e){this._classList=e,this._elementRef.nativeElement.className=""}_classList;get hideSingleSelectionIndicator(){return this._hideSingleSelectionIndicator}set hideSingleSelectionIndicator(e){this._hideSingleSelectionIndicator=e,this._syncParentProperties()}_hideSingleSelectionIndicator;_syncParentProperties(){if(this.options)for(let e of this.options)e._changeDetectorRef.markForCheck()}id=u(Ze).getId("mat-autocomplete-");inertGroups;constructor(){let e=u(qe);this.inertGroups=e?.SAFARI||!1,this.autoActiveFirstOption=!!this._defaults.autoActiveFirstOption,this.autoSelectActiveOption=!!this._defaults.autoSelectActiveOption,this.requireSelection=!!this._defaults.requireSelection,this._hideSingleSelectionIndicator=this._defaults.hideSingleSelectionIndicator??!1}ngAfterContentInit(){this._keyManager=new qd(this.options).withWrap().skipPredicate(this._skipPredicate),this._activeOptionChanges=this._keyManager.change.subscribe(e=>{this.isOpen&&this.optionActivated.emit({source:this,option:this.options.toArray()[e]||null})}),this._setVisibility()}ngOnDestroy(){this._keyManager?.destroy(),this._activeOptionChanges.unsubscribe()}_setScrollTop(e){this.panel&&(this.panel.nativeElement.scrollTop=e)}_getScrollTop(){return this.panel?this.panel.nativeElement.scrollTop:0}_setVisibility(){this.showPanel=!!this.options?.length,this._changeDetectorRef.markForCheck()}_emitSelectEvent(e){let i=new QI(this,e);this.optionSelected.emit(i)}_getPanelAriaLabelledby(e){if(this.ariaLabel)return null;let i=e?e+" ":"";return this.ariaLabelledby?i+this.ariaLabelledby:e}_skipPredicate(){return!1}static \u0275fac=function(i){return new(i||t)};static \u0275cmp=E({type:t,selectors:[["mat-autocomplete"]],contentQueries:function(i,r,o){if(i&1&&(xe(o,xn,5),xe(o,Zd,5)),i&2){let a;B(a=j())&&(r.options=a),B(a=j())&&(r.optionGroups=a)}},viewQuery:function(i,r){if(i&1&&(ie(te,7),ie(F_e,5)),i&2){let o;B(o=j())&&(r.template=o.first),B(o=j())&&(r.panel=o.first)}},hostAttrs:[1,"mat-mdc-autocomplete"],inputs:{ariaLabel:[0,"aria-label","ariaLabel"],ariaLabelledby:[0,"aria-labelledby","ariaLabelledby"],displayWith:"displayWith",autoActiveFirstOption:[2,"autoActiveFirstOption","autoActiveFirstOption",V],autoSelectActiveOption:[2,"autoSelectActiveOption","autoSelectActiveOption",V],requireSelection:[2,"requireSelection","requireSelection",V],panelWidth:"panelWidth",disableRipple:[2,"disableRipple","disableRipple",V],classList:[0,"class","classList"],hideSingleSelectionIndicator:[2,"hideSingleSelectionIndicator","hideSingleSelectionIndicator",V]},outputs:{optionSelected:"optionSelected",opened:"opened",closed:"closed",optionActivated:"optionActivated"},exportAs:["matAutocomplete"],features:[Ce([{provide:Kd,useExisting:t}])],ngContentSelectors:N_e,decls:1,vars:0,consts:[["panel",""],["role","listbox",1,"mat-mdc-autocomplete-panel","mdc-menu-surface","mdc-menu-surface--open",3,"id"]],template:function(i,r){i&1&&(Me(),xa(0,L_e,3,17,"ng-template"))},styles:[`div.mat-mdc-autocomplete-panel{width:100%;max-height:256px;visibility:hidden;transform-origin:center top;overflow:auto;padding:8px 0;box-sizing:border-box;position:relative;border-radius:var(--mat-autocomplete-container-shape, var(--mat-sys-corner-extra-small));box-shadow:var(--mat-autocomplete-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));background-color:var(--mat-autocomplete-background-color, var(--mat-sys-surface-container))}@media(forced-colors: active){div.mat-mdc-autocomplete-panel{outline:solid 1px}}.cdk-overlay-pane:not(.mat-mdc-autocomplete-panel-above) div.mat-mdc-autocomplete-panel{border-top-left-radius:0;border-top-right-radius:0}.mat-mdc-autocomplete-panel-above div.mat-mdc-autocomplete-panel{border-bottom-left-radius:0;border-bottom-right-radius:0;transform-origin:center bottom}div.mat-mdc-autocomplete-panel.mat-mdc-autocomplete-visible{visibility:visible}div.mat-mdc-autocomplete-panel.mat-mdc-autocomplete-hidden{visibility:hidden;pointer-events:none}@keyframes _mat-autocomplete-enter{from{opacity:0;transform:scaleY(0.8)}to{opacity:1;transform:none}}.mat-autocomplete-panel-animations-enabled{animation:_mat-autocomplete-enter 120ms cubic-bezier(0, 0, 0.2, 1)}mat-autocomplete{display:none} +`],encapsulation:2,changeDetection:0})}return t})();var B_e={provide:tr,useExisting:Kt(()=>y_),multi:!0};var yU=new T("mat-autocomplete-scroll-strategy",{providedIn:"root",factory:()=>{let t=u(de);return()=>wn(t)}});function j_e(t){let n=u(de);return()=>wn(n)}var H_e={provide:yU,deps:[],useFactory:j_e},y_=(()=>{class t{_environmentInjector=u(Wt);_element=u(q);_injector=u(de);_viewContainerRef=u(nt);_zone=u(ae);_changeDetectorRef=u(ye);_dir=u(Vt,{optional:!0});_formField=u(Xo,{optional:!0,host:!0});_viewportRuler=u(Xn);_scrollStrategy=u(yU);_renderer=u(je);_animationsDisabled=Ye();_defaults=u(vU,{optional:!0});_overlayRef;_portal;_componentDestroyed=!1;_initialized=new z;_keydownSubscription;_outsideClickSubscription;_cleanupWindowBlur;_previousValue;_valueOnAttach;_valueOnLastKeydown;_positionStrategy;_manuallyFloatingLabel=!1;_closingActionsSubscription;_viewportSubscription=ke.EMPTY;_breakpointObserver=u(sl);_handsetLandscapeSubscription=ke.EMPTY;_canOpenOnNextFocus=!0;_valueBeforeAutoSelection;_pendingAutoselectedOption;_closeKeyEventStream=new z;_overlayPanelClass=al(this._defaults?.overlayPanelClass||[]);_windowBlurHandler=()=>{this._canOpenOnNextFocus=this.panelOpen||!this._hasFocus()};_onChange=()=>{};_onTouched=()=>{};autocomplete;position="auto";connectedTo;autocompleteAttribute="off";autocompleteDisabled;constructor(){}_aboveClass="mat-mdc-autocomplete-panel-above";ngAfterViewInit(){this._initialized.next(),this._initialized.complete(),this._cleanupWindowBlur=this._renderer.listen("window","blur",this._windowBlurHandler)}ngOnChanges(e){e.position&&this._positionStrategy&&(this._setStrategyPositions(this._positionStrategy),this.panelOpen&&this._overlayRef.updatePosition())}ngOnDestroy(){this._cleanupWindowBlur?.(),this._handsetLandscapeSubscription.unsubscribe(),this._viewportSubscription.unsubscribe(),this._componentDestroyed=!0,this._destroyPanel(),this._closeKeyEventStream.complete(),this._clearFromModal()}get panelOpen(){return this._overlayAttached&&this.autocomplete.showPanel}_overlayAttached=!1;openPanel(){this._openPanelInternal()}closePanel(){this._resetLabel(),this._overlayAttached&&(this.panelOpen&&this._zone.run(()=>{this.autocomplete.closed.emit()}),this.autocomplete._latestOpeningTrigger===this&&(this.autocomplete._isOpen=!1,this.autocomplete._latestOpeningTrigger=null),this._overlayAttached=!1,this._pendingAutoselectedOption=null,this._overlayRef&&this._overlayRef.hasAttached()&&(this._overlayRef.detach(),this._closingActionsSubscription.unsubscribe()),this._updatePanelState(),this._componentDestroyed||this._changeDetectorRef.detectChanges(),this._trackedModal&&sc(this._trackedModal,"aria-owns",this.autocomplete.id))}updatePosition(){this._overlayAttached&&this._overlayRef.updatePosition()}get panelClosingActions(){return Je(this.optionSelections,this.autocomplete._keyManager.tabOut.pipe(ce(()=>this._overlayAttached)),this._closeKeyEventStream,this._getOutsideClickStream(),this._overlayRef?this._overlayRef.detachments().pipe(ce(()=>this._overlayAttached)):Q()).pipe(se(e=>e instanceof nh?e:null))}optionSelections=kn(()=>{let e=this.autocomplete?this.autocomplete.options:null;return e?e.changes.pipe(He(e),$e(()=>Je(...e.map(i=>i.onSelectionChange)))):this._initialized.pipe($e(()=>this.optionSelections))});get activeOption(){return this.autocomplete&&this.autocomplete._keyManager?this.autocomplete._keyManager.activeItem:null}_getOutsideClickStream(){return new Fe(e=>{let i=o=>{let a=Kn(o),s=this._formField?this._formField.getConnectedOverlayOrigin().nativeElement:null,l=this.connectedTo?this.connectedTo.elementRef.nativeElement:null;this._overlayAttached&&a!==this._element.nativeElement&&!this._hasFocus()&&(!s||!s.contains(a))&&(!l||!l.contains(a))&&this._overlayRef&&!this._overlayRef.overlayElement.contains(a)&&e.next(o)},r=[this._renderer.listen("document","click",i),this._renderer.listen("document","auxclick",i),this._renderer.listen("document","touchend",i)];return()=>{r.forEach(o=>o())}})}writeValue(e){Promise.resolve(null).then(()=>this._assignOptionValue(e))}registerOnChange(e){this._onChange=e}registerOnTouched(e){this._onTouched=e}setDisabledState(e){this._element.nativeElement.disabled=e}_handleKeydown(e){let i=e,r=i.keyCode,o=Ft(i);if(r===27&&!o&&i.preventDefault(),this._valueOnLastKeydown=this._element.nativeElement.value,this.activeOption&&r===13&&this.panelOpen&&!o)this.activeOption._selectViaInteraction(),this._resetActiveItem(),i.preventDefault();else if(this.autocomplete){let a=this.autocomplete._keyManager.activeItem,s=r===38||r===40;r===9||s&&!o&&this.panelOpen?this.autocomplete._keyManager.onKeydown(i):s&&this._canOpen()&&this._openPanelInternal(this._valueOnLastKeydown),(s||this.autocomplete._keyManager.activeItem!==a)&&(this._scrollToOption(this.autocomplete._keyManager.activeItemIndex||0),this.autocomplete.autoSelectActiveOption&&this.activeOption&&(this._pendingAutoselectedOption||(this._valueBeforeAutoSelection=this._valueOnLastKeydown),this._pendingAutoselectedOption=this.activeOption,this._assignOptionValue(this.activeOption.value)))}}_handleInput(e){let i=e.target,r=i.value;if(i.type==="number"&&(r=r==""?null:parseFloat(r)),this._previousValue!==r){if(this._previousValue=r,this._pendingAutoselectedOption=null,(!this.autocomplete||!this.autocomplete.requireSelection)&&this._onChange(r),!r)this._clearPreviousSelectedOption(null,!1);else if(this.panelOpen&&!this.autocomplete.requireSelection){let o=this.autocomplete.options?.find(a=>a.selected);if(o){let a=this._getDisplayValue(o.value);r!==a&&o.deselect(!1)}}if(this._canOpen()&&this._hasFocus()){let o=this._valueOnLastKeydown??this._element.nativeElement.value;this._valueOnLastKeydown=null,this._openPanelInternal(o)}}}_handleFocus(){this._canOpenOnNextFocus?this._canOpen()&&(this._previousValue=this._element.nativeElement.value,this._attachOverlay(this._previousValue),this._floatLabel(!0)):this._canOpenOnNextFocus=!0}_handleClick(){this._canOpen()&&!this.panelOpen&&this._openPanelInternal()}_hasFocus(){return _o()===this._element.nativeElement}_floatLabel(e=!1){this._formField&&this._formField.floatLabel==="auto"&&(e?this._formField._animateAndLockLabel():this._formField.floatLabel="always",this._manuallyFloatingLabel=!0)}_resetLabel(){this._manuallyFloatingLabel&&(this._formField&&(this._formField.floatLabel="auto"),this._manuallyFloatingLabel=!1)}_subscribeToClosingActions(){let e=new Fe(r=>{pt(()=>{r.next()},{injector:this._environmentInjector})}),i=this.autocomplete.options?.changes.pipe(Be(()=>this._positionStrategy.reapplyLastPosition()),pa(0))??Q();return Je(e,i).pipe($e(()=>this._zone.run(()=>{let r=this.panelOpen;return this._resetActiveItem(),this._updatePanelState(),this._changeDetectorRef.detectChanges(),this.panelOpen&&this._overlayRef.updatePosition(),r!==this.panelOpen&&(this.panelOpen?this._emitOpened():this.autocomplete.closed.emit()),this.panelClosingActions})),lt(1)).subscribe(r=>this._setValueAndClose(r))}_emitOpened(){this.autocomplete.opened.emit()}_destroyPanel(){this._overlayRef&&(this.closePanel(),this._overlayRef.dispose(),this._overlayRef=null)}_getDisplayValue(e){let i=this.autocomplete;return i&&i.displayWith?i.displayWith(e):e}_assignOptionValue(e){let i=this._getDisplayValue(e);e==null&&this._clearPreviousSelectedOption(null,!1),this._updateNativeInputValue(i??"")}_updateNativeInputValue(e){this._formField?this._formField._control.value=e:this._element.nativeElement.value=e,this._previousValue=e}_setValueAndClose(e){let i=this.autocomplete,r=e?e.source:this._pendingAutoselectedOption;r?(this._clearPreviousSelectedOption(r),this._assignOptionValue(r.value),this._onChange(r.value),i._emitSelectEvent(r),this._element.nativeElement.focus()):i.requireSelection&&this._element.nativeElement.value!==this._valueOnAttach&&(this._clearPreviousSelectedOption(null),this._assignOptionValue(null),this._onChange(null)),this.closePanel()}_clearPreviousSelectedOption(e,i){this.autocomplete?.options?.forEach(r=>{r!==e&&r.selected&&r.deselect(i)})}_openPanelInternal(e=this._element.nativeElement.value){if(this._attachOverlay(e),this._floatLabel(),this._trackedModal){let i=this.autocomplete.id;Zm(this._trackedModal,"aria-owns",i)}}_attachOverlay(e){this.autocomplete;let i=this._overlayRef;i?(this._positionStrategy.setOrigin(this._getConnectedElement()),i.updateSize({width:this._getPanelWidth()})):(this._portal=new Cn(this.autocomplete.template,this._viewContainerRef,{id:this._formField?.getLabelId()}),i=Nr(this._injector,this._getOverlayConfig()),this._overlayRef=i,this._viewportSubscription=this._viewportRuler.change().subscribe(()=>{this.panelOpen&&i&&i.updateSize({width:this._getPanelWidth()})}),this._handsetLandscapeSubscription=this._breakpointObserver.observe(F0.HandsetLandscape).subscribe(o=>{o.matches?this._positionStrategy.withFlexibleDimensions(!0).withGrowAfterOpen(!0).withViewportMargin(8):this._positionStrategy.withFlexibleDimensions(!1).withGrowAfterOpen(!1).withViewportMargin(0)})),i&&!i.hasAttached()&&(i.attach(this._portal),this._valueOnAttach=e,this._valueOnLastKeydown=null,this._closingActionsSubscription=this._subscribeToClosingActions());let r=this.panelOpen;this.autocomplete._isOpen=this._overlayAttached=!0,this.autocomplete._latestOpeningTrigger=this,this.autocomplete._setColor(this._formField?.color),this._updatePanelState(),this._applyModalPanelOwnership(),this.panelOpen&&r!==this.panelOpen&&this._emitOpened()}_handlePanelKeydown=e=>{(e.keyCode===27&&!Ft(e)||e.keyCode===38&&Ft(e,"altKey"))&&(this._pendingAutoselectedOption&&(this._updateNativeInputValue(this._valueBeforeAutoSelection??""),this._pendingAutoselectedOption=null),this._closeKeyEventStream.next(),this._resetActiveItem(),e.stopPropagation(),e.preventDefault())};_updatePanelState(){if(this.autocomplete._setVisibility(),this.panelOpen){let e=this._overlayRef;this._keydownSubscription||(this._keydownSubscription=e.keydownEvents().subscribe(this._handlePanelKeydown)),this._outsideClickSubscription||(this._outsideClickSubscription=e.outsidePointerEvents().subscribe())}else this._keydownSubscription?.unsubscribe(),this._outsideClickSubscription?.unsubscribe(),this._keydownSubscription=this._outsideClickSubscription=null}_getOverlayConfig(){return new Fr({positionStrategy:this._getOverlayPosition(),scrollStrategy:this._scrollStrategy(),width:this._getPanelWidth(),direction:this._dir??void 0,hasBackdrop:this._defaults?.hasBackdrop,backdropClass:this._defaults?.backdropClass||"cdk-overlay-transparent-backdrop",panelClass:this._overlayPanelClass,disableAnimations:this._animationsDisabled})}_getOverlayPosition(){let e=Fa(this._injector,this._getConnectedElement()).withFlexibleDimensions(!1).withPush(!1);return this._setStrategyPositions(e),this._positionStrategy=e,e}_setStrategyPositions(e){let i=[{originX:"start",originY:"bottom",overlayX:"start",overlayY:"top"},{originX:"end",originY:"bottom",overlayX:"end",overlayY:"top"}],r=this._aboveClass,o=[{originX:"start",originY:"top",overlayX:"start",overlayY:"bottom",panelClass:r},{originX:"end",originY:"top",overlayX:"end",overlayY:"bottom",panelClass:r}],a;this.position==="above"?a=o:this.position==="below"?a=i:a=[...i,...o],e.withPositions(a)}_getConnectedElement(){return this.connectedTo?this.connectedTo.elementRef:this._formField?this._formField.getConnectedOverlayOrigin():this._element}_getPanelWidth(){return this.autocomplete.panelWidth||this._getHostWidth()}_getHostWidth(){return this._getConnectedElement().nativeElement.getBoundingClientRect().width}_resetActiveItem(){let e=this.autocomplete;if(e.autoActiveFirstOption){let i=-1;for(let r=0;r .cdk-overlay-container [aria-modal="true"]');if(!e)return;let i=this.autocomplete.id;this._trackedModal&&sc(this._trackedModal,"aria-owns",i),Zm(e,"aria-owns",i),this._trackedModal=e}_clearFromModal(){if(this._trackedModal){let e=this.autocomplete.id;sc(this._trackedModal,"aria-owns",e),this._trackedModal=null}}static \u0275fac=function(i){return new(i||t)};static \u0275dir=F({type:t,selectors:[["input","matAutocomplete",""],["textarea","matAutocomplete",""]],hostAttrs:[1,"mat-mdc-autocomplete-trigger"],hostVars:7,hostBindings:function(i,r){i&1&&S("focusin",function(){return r._handleFocus()})("blur",function(){return r._onTouched()})("input",function(a){return r._handleInput(a)})("keydown",function(a){return r._handleKeydown(a)})("click",function(){return r._handleClick()}),i&2&&X("autocomplete",r.autocompleteAttribute)("role",r.autocompleteDisabled?null:"combobox")("aria-autocomplete",r.autocompleteDisabled?null:"list")("aria-activedescendant",r.panelOpen&&r.activeOption?r.activeOption.id:null)("aria-expanded",r.autocompleteDisabled?null:r.panelOpen.toString())("aria-controls",r.autocompleteDisabled||!r.panelOpen||r.autocomplete==null?null:r.autocomplete.id)("aria-haspopup",r.autocompleteDisabled?null:"listbox")},inputs:{autocomplete:[0,"matAutocomplete","autocomplete"],position:[0,"matAutocompletePosition","position"],connectedTo:[0,"matAutocompleteConnectedTo","connectedTo"],autocompleteAttribute:[0,"autocomplete","autocompleteAttribute"],autocompleteDisabled:[2,"matAutocompleteDisabled","autocompleteDisabled",V]},exportAs:["matAutocompleteTrigger"],features:[Ce([B_e]),Ae]})}return t})(),vw=(()=>{class t{static \u0275fac=function(i){return new(i||t)};static \u0275mod=ee({type:t});static \u0275inj=J({providers:[H_e],imports:[er,rh,we,vr,rh,we]})}return t})();var xU=()=>["HRAdmin","Manager"],z_e=()=>[5,10,25,50,100],U_e=()=>["HRAdmin"];function $_e(t,n){if(t&1){let e=Y();h(0,"button",22),S("click",function(){I(e);let r=C();return A(r.createEmployee())}),h(1,"mat-icon"),_(2,"add"),p(),_(3," Add Employee "),p()}}function W_e(t,n){if(t&1&&(h(0,"mat-option",23),_(1),p()),t&2){let e=n.$implicit;y("value",e),g(),ve(" ",e," ")}}function G_e(t,n){if(t&1&&(h(0,"mat-option",23),_(1),p()),t&2){let e=n.$implicit;y("value",e),g(),ve(" ",e," ")}}function q_e(t,n){if(t&1&&(h(0,"mat-option",23),_(1),p()),t&2){let e=n.$implicit;y("value",e),g(),ve(" ",e," ")}}function Y_e(t,n){if(t&1&&(h(0,"mat-option",23),_(1),p()),t&2){let e=n.$implicit;y("value",e),g(),ve(" ",e," ")}}function Q_e(t,n){if(t&1&&(h(0,"mat-option",23),_(1),p()),t&2){let e=n.$implicit;y("value",e),g(),ve(" ",e," ")}}function K_e(t,n){t&1&&(h(0,"div",24),k(1,"mat-spinner"),p())}function Z_e(t,n){t&1&&(h(0,"th",37),_(1,"Employee #"),p())}function X_e(t,n){if(t&1&&(h(0,"td",38),_(1),p()),t&2){let e=n.$implicit;g(),H(e.employeeNumber)}}function J_e(t,n){t&1&&(h(0,"th",37),_(1,"Name"),p())}function ebe(t,n){if(t&1&&(h(0,"td",38),_(1),p()),t&2){let e=n.$implicit,i=C(2);g(),H(i.getFullName(e))}}function tbe(t,n){t&1&&(h(0,"th",37),_(1,"Email"),p())}function ibe(t,n){if(t&1&&(h(0,"td",38),_(1),p()),t&2){let e=n.$implicit;g(),H(e.email)}}function nbe(t,n){t&1&&(h(0,"th",37),_(1,"Phone"),p())}function rbe(t,n){if(t&1&&(h(0,"td",38),_(1),p()),t&2){let e=n.$implicit;g(),H(e.phoneNumber||e.phone||"-")}}function obe(t,n){t&1&&(h(0,"th",37),_(1,"Position"),p())}function abe(t,n){if(t&1&&(h(0,"td",38),_(1),p()),t&2){let e=n.$implicit;g(),H(e.positionTitle||(e.position==null?null:e.position.positionTitle)||"-")}}function sbe(t,n){t&1&&(h(0,"th",37),_(1,"Actions"),p())}function lbe(t,n){if(t&1){let e=Y();h(0,"button",43),S("click",function(){I(e);let r=C().$implicit,o=C(2);return A(o.editEmployee(r))}),h(1,"mat-icon"),_(2,"edit"),p()()}}function cbe(t,n){if(t&1){let e=Y();h(0,"button",44),S("click",function(){I(e);let r=C().$implicit,o=C(2);return A(o.deleteEmployee(r))}),h(1,"mat-icon"),_(2,"delete"),p()()}}function dbe(t,n){if(t&1){let e=Y();h(0,"td",38)(1,"div",39)(2,"button",40),S("click",function(){let r=I(e).$implicit,o=C(2);return A(o.viewEmployee(r))}),h(3,"mat-icon"),_(4,"visibility"),p()(),R(5,lbe,3,0,"button",41)(6,cbe,3,0,"button",42),p()()}t&2&&(g(5),y("appHasRole",at(2,xU)),g(),y("appHasRole",at(3,U_e)))}function ube(t,n){t&1&&k(0,"tr",45)}function mbe(t,n){t&1&&k(0,"tr",46)}function hbe(t,n){if(t&1&&(h(0,"tr",47)(1,"td",48)(2,"div",49)(3,"mat-icon"),_(4,"info"),p(),h(5,"p"),_(6,"No employees found"),p()()()()),t&2){let e=C(2);g(),X("colspan",e.displayedColumns.length)}}function pbe(t,n){if(t&1&&(h(0,"table",25),jt(1,26),R(2,Z_e,2,0,"th",27)(3,X_e,2,1,"td",28),Lt(),jt(4,29),R(5,J_e,2,0,"th",27)(6,ebe,2,1,"td",28),Lt(),jt(7,30),R(8,tbe,2,0,"th",27)(9,ibe,2,1,"td",28),Lt(),jt(10,31),R(11,nbe,2,0,"th",27)(12,rbe,2,1,"td",28),Lt(),jt(13,32),R(14,obe,2,0,"th",27)(15,abe,2,1,"td",28),Lt(),jt(16,33),R(17,sbe,2,0,"th",27)(18,dbe,7,4,"td",28),Lt(),R(19,ube,1,0,"tr",34)(20,mbe,1,0,"tr",35)(21,hbe,7,1,"tr",36),p()),t&2){let e=C();y("dataSource",e.employees),g(19),y("matHeaderRowDef",e.displayedColumns),g(),y("matRowDefColumns",e.displayedColumns),g(),y("ngIf",e.employees.length===0)}}var CU=(()=>{let n=class n{constructor(){this.employeeService=u(ap),this.authService=u(Tt),this.router=u(Re),this.fb=u(eo),this.snackBar=u(di),this.dialog=u(En),this.employees=[],this.loading=!1,this.totalCount=0,this.pageSize=10,this.pageNumber=1,this.destroy$=new z,this.displayedColumns=["employeeNumber","name","email","phone","positionTitle","actions"]}ngOnInit(){this.initSearchForm(),this.setupAutocomplete(),this.setupAutoSubmit(),this.loadEmployees()}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete()}initSearchForm(){this.searchForm=this.fb.group({FirstName:[""],LastName:[""],Email:[""],EmployeeNumber:[""],PositionTitle:[""]})}setupAutocomplete(){this.filteredEmployeeNumbers$=this.searchForm.get("EmployeeNumber").valueChanges.pipe(He(""),Rt(300),Sn(),$e(i=>this.getAutocompleteOptions("EmployeeNumber",i))),this.filteredFirstNames$=this.searchForm.get("FirstName").valueChanges.pipe(He(""),Rt(300),Sn(),$e(i=>this.getAutocompleteOptions("FirstName",i))),this.filteredLastNames$=this.searchForm.get("LastName").valueChanges.pipe(He(""),Rt(300),Sn(),$e(i=>this.getAutocompleteOptions("LastName",i))),this.filteredEmails$=this.searchForm.get("Email").valueChanges.pipe(He(""),Rt(300),Sn(),$e(i=>this.getAutocompleteOptions("Email",i))),this.filteredPositionTitles$=this.searchForm.get("PositionTitle").valueChanges.pipe(He(""),Rt(300),Sn(),$e(i=>this.getAutocompleteOptions("PositionTitle",i)))}setupAutoSubmit(){this.searchForm.valueChanges.pipe(Rt(500),Sn((i,r)=>JSON.stringify(i)===JSON.stringify(r)),Te(this.destroy$)).subscribe(()=>{this.pageNumber=1,this.loadEmployees()})}getAutocompleteOptions(i,r){if(!r||r.length<2)return Q([]);let o={PageNumber:1,PageSize:10,[i]:r};return this.employeeService.getAllPaged(o).pipe(se(a=>{let s={EmployeeNumber:c=>c.employeeNumber,FirstName:c=>c.firstName,LastName:c=>c.lastName,Email:c=>c.email,PositionTitle:c=>c.positionTitle||""};return a.value.map(c=>s[i](c)).filter((c,d,m)=>c&&m.indexOf(c)===d)}),fi(()=>Q([])))}loadEmployees(){this.loading=!0;let i=M({PageNumber:this.pageNumber,PageSize:this.pageSize},this.searchForm.value);Object.keys(i).forEach(r=>{(i[r]===""||i[r]===null||i[r]===void 0)&&delete i[r]}),this.employeeService.getAllPaged(i).subscribe({next:r=>{this.employees=r.value,this.totalCount=r.recordsTotal,this.loading=!1},error:r=>{console.error("Error loading employees:",r),this.loading=!1}})}onClearSearch(){this.searchForm.reset(),this.pageNumber=1,this.paginator&&(this.paginator.pageIndex=0),this.loadEmployees()}onPageChange(i){this.pageSize=i.pageSize,this.pageNumber=i.pageIndex+1,this.loadEmployees()}getFullName(i){return[i.prefix,i.firstName,i.middleName,i.lastName].filter(Boolean).join(" ")}viewEmployee(i){this.router.navigate(["/employees",i.id])}editEmployee(i){this.router.navigate(["/employees","edit",i.id])}deleteEmployee(i){let r=this.getFullName(i);this.dialog.open(Er,{width:"400px",data:{title:"Delete Employee",message:`Are you sure you want to delete ${r}? This action cannot be undone.`,confirmText:"Delete",cancelText:"Cancel"}}).afterClosed().subscribe(a=>{a&&this.employeeService.delete(i.id).subscribe({next:()=>{this.snackBar.open(`${r} has been deleted.`,"Close",{duration:3e3,horizontalPosition:"end",verticalPosition:"top"}),this.loadEmployees()},error:s=>{console.error("Error deleting employee:",s),this.snackBar.open("Failed to delete employee. Please try again.","Close",{duration:4e3,horizontalPosition:"end",verticalPosition:"top"})}})})}createEmployee(){this.router.navigate(["/employees","create"])}canEdit(){return this.authService.isHRAdmin()||this.authService.isManager()}canDelete(){return this.authService.isHRAdmin()}canCreate(){return this.authService.isHRAdmin()||this.authService.isManager()}};n.\u0275fac=function(r){return new(r||n)},n.\u0275cmp=E({type:n,selectors:[["app-employee-list"]],viewQuery:function(r,o){if(r&1&&ie(ir,5),r&2){let a;B(a=j())&&(o.paginator=a.first)}},decls:59,vars:30,consts:[["autoEmployeeNumber","matAutocomplete"],["autoFirstName","matAutocomplete"],["autoLastName","matAutocomplete"],["autoEmail","matAutocomplete"],["autoPositionTitle","matAutocomplete"],[1,"flex-spacer"],["mat-raised-button","","color","primary",3,"click",4,"appHasRole"],[1,"search-form",3,"formGroup"],[1,"search-row"],["appearance","outline"],["matInput","","formControlName","EmployeeNumber",3,"matAutocomplete"],[3,"value",4,"ngFor","ngForOf"],["matInput","","formControlName","FirstName",3,"matAutocomplete"],["matInput","","formControlName","LastName",3,"matAutocomplete"],["matInput","","formControlName","Email",3,"matAutocomplete"],["matInput","","formControlName","PositionTitle",3,"matAutocomplete"],[1,"search-buttons"],["mat-raised-button","","color","accent","type","button",3,"click"],[1,"table-container"],["class","loading-spinner",4,"ngIf"],["mat-table","","class","employee-table",3,"dataSource",4,"ngIf"],["showFirstLastButtons","",3,"page","length","pageSize","pageSizeOptions","pageIndex"],["mat-raised-button","","color","primary",3,"click"],[3,"value"],[1,"loading-spinner"],["mat-table","",1,"employee-table",3,"dataSource"],["matColumnDef","employeeNumber"],["mat-header-cell","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","name"],["matColumnDef","email"],["matColumnDef","phone"],["matColumnDef","positionTitle"],["matColumnDef","actions"],["mat-header-row","",4,"matHeaderRowDef"],["mat-row","",4,"matRowDef","matRowDefColumns"],["class","mat-row",4,"ngIf"],["mat-header-cell",""],["mat-cell",""],[1,"action-buttons"],["mat-icon-button","","color","primary","matTooltip","View Details",3,"click"],["mat-icon-button","","color","accent","matTooltip","Edit Employee",3,"click",4,"appHasRole"],["mat-icon-button","","color","warn","matTooltip","Delete Employee",3,"click",4,"appHasRole"],["mat-icon-button","","color","accent","matTooltip","Edit Employee",3,"click"],["mat-icon-button","","color","warn","matTooltip","Delete Employee",3,"click"],["mat-header-row",""],["mat-row",""],[1,"mat-row"],[1,"mat-cell"],[1,"no-data"]],template:function(r,o){if(r&1){let a=Y();k(0,"page-header"),h(1,"mat-card")(2,"mat-card-header")(3,"mat-card-title"),_(4,"Employee Directory"),p(),k(5,"div",5),R(6,$_e,4,0,"button",6),p(),h(7,"mat-card-content")(8,"form",7)(9,"div",8)(10,"mat-form-field",9)(11,"mat-label"),_(12,"Employee Number"),p(),k(13,"input",10),h(14,"mat-autocomplete",null,0),R(16,W_e,2,2,"mat-option",11),me(17,"async"),p()(),h(18,"mat-form-field",9)(19,"mat-label"),_(20,"First Name"),p(),k(21,"input",12),h(22,"mat-autocomplete",null,1),R(24,G_e,2,2,"mat-option",11),me(25,"async"),p()(),h(26,"mat-form-field",9)(27,"mat-label"),_(28,"Last Name"),p(),k(29,"input",13),h(30,"mat-autocomplete",null,2),R(32,q_e,2,2,"mat-option",11),me(33,"async"),p()(),h(34,"mat-form-field",9)(35,"mat-label"),_(36,"Email"),p(),k(37,"input",14),h(38,"mat-autocomplete",null,3),R(40,Y_e,2,2,"mat-option",11),me(41,"async"),p()(),h(42,"mat-form-field",9)(43,"mat-label"),_(44,"Position Title"),p(),k(45,"input",15),h(46,"mat-autocomplete",null,4),R(48,Q_e,2,2,"mat-option",11),me(49,"async"),p()(),h(50,"div",16)(51,"button",17),S("click",function(){return I(a),A(o.onClearSearch())}),h(52,"mat-icon"),_(53,"clear"),p(),_(54," Clear Filters "),p()()()(),h(55,"div",18),R(56,K_e,2,0,"div",19)(57,pbe,22,4,"table",20),p(),h(58,"mat-paginator",21),S("page",function(l){return I(a),A(o.onPageChange(l))}),p()()()}if(r&2){let a=Se(15),s=Se(23),l=Se(31),c=Se(39),d=Se(47);g(6),y("appHasRole",at(28,xU)),g(2),y("formGroup",o.searchForm),g(5),y("matAutocomplete",a),g(3),y("ngForOf",Oe(17,18,o.filteredEmployeeNumbers$)),g(5),y("matAutocomplete",s),g(3),y("ngForOf",Oe(25,20,o.filteredFirstNames$)),g(5),y("matAutocomplete",l),g(3),y("ngForOf",Oe(33,22,o.filteredLastNames$)),g(5),y("matAutocomplete",c),g(3),y("ngForOf",Oe(41,24,o.filteredEmails$)),g(5),y("matAutocomplete",d),g(3),y("ngForOf",Oe(49,26,o.filteredPositionTitles$)),g(8),y("ngIf",o.loading),g(),y("ngIf",!o.loading),g(),y("length",o.totalCount)("pageSize",o.pageSize)("pageSizeOptions",at(29,z_e))("pageIndex",o.pageNumber-1)}},dependencies:[gt,qr,li,zn,Jr,Qi,ei,Xr,Ki,Lr,ze,kt,ti,$t,zt,Ut,Jt,Xt,ot,mt,rr,hn,Oi,sn,$i,Zc,Hc,Uc,qc,$c,zc,Yc,Wc,Gc,Qc,Kc,_c,ir,Si,ki,Br,Eo,vw,bw,xn,y_,pi,Mn,ni,Un,rn],styles:["mat-card[_ngcontent-%COMP%]{margin:16px}mat-card-header[_ngcontent-%COMP%]{display:flex;align-items:center;margin-bottom:16px;padding:16px;border-bottom:1px solid rgba(0,0,0,.12)}mat-card-header[_ngcontent-%COMP%] mat-card-title[_ngcontent-%COMP%]{font-size:20px;font-weight:500;margin:0}mat-card-header[_ngcontent-%COMP%] .flex-spacer[_ngcontent-%COMP%]{flex:1 1 auto}mat-card-header[_ngcontent-%COMP%] button[_ngcontent-%COMP%] mat-icon[_ngcontent-%COMP%]{margin-right:4px}mat-card-content[_ngcontent-%COMP%]{padding:0}.search-form[_ngcontent-%COMP%]{padding:16px;background-color:#f5f5f5;margin-bottom:0}.search-form[_ngcontent-%COMP%] .search-row[_ngcontent-%COMP%]{display:grid;grid-template-columns:repeat(auto-fit,minmax(180px,1fr));gap:16px;align-items:start}.search-form[_ngcontent-%COMP%] .search-row[_ngcontent-%COMP%] mat-form-field[_ngcontent-%COMP%]{width:100%}.search-form[_ngcontent-%COMP%] .search-row[_ngcontent-%COMP%] .search-buttons[_ngcontent-%COMP%]{display:flex;gap:8px;align-items:center}.search-form[_ngcontent-%COMP%] .search-row[_ngcontent-%COMP%] .search-buttons[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{white-space:nowrap}.search-form[_ngcontent-%COMP%] .search-row[_ngcontent-%COMP%] .search-buttons[_ngcontent-%COMP%] button[_ngcontent-%COMP%] mat-icon[_ngcontent-%COMP%]{margin-right:4px}.table-container[_ngcontent-%COMP%]{position:relative;min-height:300px;overflow-x:auto}.loading-spinner[_ngcontent-%COMP%]{display:flex;justify-content:center;align-items:center;min-height:300px}.employee-table[_ngcontent-%COMP%]{width:100%}.employee-table[_ngcontent-%COMP%] th[_ngcontent-%COMP%]{font-weight:600;font-size:14px;color:#000000de}.employee-table[_ngcontent-%COMP%] td[_ngcontent-%COMP%]{font-size:14px;color:#000000de}.employee-table[_ngcontent-%COMP%] .mat-column-employeeNumber[_ngcontent-%COMP%]{width:120px}.employee-table[_ngcontent-%COMP%] .mat-column-name[_ngcontent-%COMP%], .employee-table[_ngcontent-%COMP%] .mat-column-email[_ngcontent-%COMP%]{min-width:200px}.employee-table[_ngcontent-%COMP%] .mat-column-phone[_ngcontent-%COMP%]{width:150px}.employee-table[_ngcontent-%COMP%] .mat-column-positionTitle[_ngcontent-%COMP%]{min-width:200px}.employee-table[_ngcontent-%COMP%] .mat-column-actions[_ngcontent-%COMP%]{width:120px;text-align:right}.employee-table[_ngcontent-%COMP%] .mat-column-actions[_ngcontent-%COMP%] .action-buttons[_ngcontent-%COMP%]{display:flex;justify-content:flex-end;align-items:center;gap:4px}.no-data[_ngcontent-%COMP%]{display:flex;flex-direction:column;align-items:center;justify-content:center;padding:48px 16px;color:#0000008a}.no-data[_ngcontent-%COMP%] mat-icon[_ngcontent-%COMP%]{font-size:48px;width:48px;height:48px;margin-bottom:16px}.no-data[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{margin:0;font-size:16px}mat-paginator[_ngcontent-%COMP%]{border-top:1px solid rgba(0,0,0,.12)}"]});let t=n;return t})();var Ou=(function(t){return t[t.Male=0]="Male",t[t.Female=1]="Female",t})(Ou||{});var fbe=()=>["HRAdmin","Manager"],gbe=()=>["HRAdmin"];function _be(t,n){t&1&&(h(0,"div",2),k(1,"mat-spinner"),p())}function bbe(t,n){if(t&1){let e=Y();h(0,"button",14),S("click",function(){I(e);let r=C(2);return A(r.editEmployee())}),h(1,"mat-icon"),_(2,"edit"),p(),_(3," Edit "),p()}}function vbe(t,n){if(t&1){let e=Y();h(0,"button",15),S("click",function(){I(e);let r=C(2);return A(r.deleteEmployee())}),h(1,"mat-icon"),_(2,"delete"),p(),_(3," Delete "),p()}}function ybe(t,n){if(t&1&&(h(0,"mat-list-item")(1,"span",10),_(2,"Address"),p(),h(3,"span",11),_(4),p()()),t&2){let e=C(2);g(4),H(e.employee.address)}}function xbe(t,n){if(t&1&&(h(0,"mat-list-item")(1,"span",10),_(2,"Hire Date"),p(),h(3,"span",11),_(4),me(5,"date"),p()()),t&2){let e=C(2);g(4),H(Oe(5,1,e.employee.hireDate))}}function Cbe(t,n){if(t&1&&(h(0,"mat-list-item")(1,"span",10),_(2,"Salary Range"),p(),h(3,"span",11),_(4),me(5,"number"),me(6,"number"),p()()),t&2){let e=C(2);g(4),Cm(" ",e.employee.salaryRange.name," ($",Oe(5,3,e.employee.salaryRange.minSalary)," - $",Oe(6,5,e.employee.salaryRange.maxSalary),") ")}}function wbe(t,n){if(t&1&&(h(0,"mat-list-item")(1,"span",10),_(2,"Created"),p(),h(3,"span",11),_(4),me(5,"date"),p()()),t&2){let e=C(3);g(4),H(Ni(5,1,e.employee.createdAt,"medium"))}}function Dbe(t,n){if(t&1&&(h(0,"mat-list-item")(1,"span",10),_(2,"Last Modified"),p(),h(3,"span",11),_(4),me(5,"date"),p()()),t&2){let e=C(3);g(4),H(Ni(5,1,e.employee.lastModifiedAt,"medium"))}}function Ebe(t,n){if(t&1&&(h(0,"div",9)(1,"h3"),_(2,"Audit Information"),p(),k(3,"mat-divider"),h(4,"mat-list"),R(5,wbe,6,4,"mat-list-item",1)(6,Dbe,6,4,"mat-list-item",1),p()()),t&2){let e=C(2);g(5),y("ngIf",e.employee.createdAt),g(),y("ngIf",e.employee.lastModifiedAt)}}function Mbe(t,n){if(t&1){let e=Y();h(0,"mat-card")(1,"mat-card-header")(2,"mat-card-title"),_(3),p(),k(4,"div",3),h(5,"div",4)(6,"button",5),S("click",function(){I(e);let r=C();return A(r.goBack())}),h(7,"mat-icon"),_(8,"arrow_back"),p(),_(9," Back to List "),p(),R(10,bbe,4,0,"button",6)(11,vbe,4,0,"button",7),p()(),h(12,"mat-card-content")(13,"div",8)(14,"div",9)(15,"h3"),_(16,"Personal Information"),p(),k(17,"mat-divider"),h(18,"mat-list")(19,"mat-list-item")(20,"span",10),_(21,"Employee Number"),p(),h(22,"span",11),_(23),p()(),h(24,"mat-list-item")(25,"span",10),_(26,"Full Name"),p(),h(27,"span",11),_(28),p()(),h(29,"mat-list-item")(30,"span",10),_(31,"Date of Birth"),p(),h(32,"span",11),_(33),me(34,"date"),p()(),h(35,"mat-list-item")(36,"span",10),_(37,"Gender"),p(),h(38,"span",11),_(39),p()()()(),h(40,"div",9)(41,"h3"),_(42,"Contact Information"),p(),k(43,"mat-divider"),h(44,"mat-list")(45,"mat-list-item")(46,"span",10),_(47,"Email"),p(),h(48,"span",11)(49,"a",12),_(50),p()()(),h(51,"mat-list-item")(52,"span",10),_(53,"Phone Number"),p(),h(54,"span",11)(55,"a",12),_(56),p()()(),R(57,ybe,5,1,"mat-list-item",1),p()(),h(58,"div",9)(59,"h3"),_(60,"Employment Information"),p(),k(61,"mat-divider"),h(62,"mat-list"),R(63,xbe,6,3,"mat-list-item",1),h(64,"mat-list-item")(65,"span",10),_(66,"Salary"),p(),h(67,"span",11),_(68),me(69,"currency"),p()(),h(70,"mat-list-item")(71,"span",10),_(72,"Department"),p(),h(73,"span",11),_(74),p()(),h(75,"mat-list-item")(76,"span",10),_(77,"Position"),p(),h(78,"span",11),_(79),p()(),R(80,Cbe,7,7,"mat-list-item",1),p()(),R(81,Ebe,7,2,"div",13),p()()()}if(t&2){let e=C();g(3),H(e.getFullName()),g(7),y("appHasRole",at(22,fbe)),g(),y("appHasRole",at(23,gbe)),g(12),H(e.employee.employeeNumber),g(5),H(e.getFullName()),g(5),H(Oe(34,18,e.employee.dateOfBirth||e.employee.birthday)),g(6),H(e.getGenderLabel(e.employee.gender)),g(10),y("href","mailto:"+e.employee.email,$r),g(),H(e.employee.email),g(5),y("href","tel:"+(e.employee.phoneNumber||e.employee.phone),$r),g(),H(e.employee.phoneNumber||e.employee.phone),g(),y("ngIf",e.employee.address),g(6),y("ngIf",e.employee.hireDate),g(5),H(Oe(69,20,e.employee.salary)),g(6),H(e.employee.departmentName||(e.employee.department==null?null:e.employee.department.name)||"N/A"),g(5),H(e.employee.positionTitle||(e.employee.position==null?null:e.employee.position.positionTitle)||"N/A"),g(),y("ngIf",e.employee.salaryRange),g(),y("ngIf",e.employee.createdAt||e.employee.lastModifiedAt)}}function kbe(t,n){if(t&1){let e=Y();h(0,"mat-card")(1,"mat-card-content")(2,"div",16)(3,"mat-icon"),_(4,"error"),p(),h(5,"p"),_(6,"Employee not found"),p(),h(7,"button",17),S("click",function(){I(e);let r=C();return A(r.goBack())}),_(8," Go Back "),p()()()()}}var wU=(()=>{let n=class n{constructor(){this.employeeService=u(ap),this.authService=u(Tt),this.router=u(Re),this.route=u(wi),this.snackBar=u(di),this.dialog=u(En),this.loading=!1}ngOnInit(){let i=this.route.snapshot.paramMap.get("id");i&&this.loadEmployee(i)}loadEmployee(i){this.loading=!0,this.employeeService.getById(i).subscribe({next:r=>{this.employee=r,this.loading=!1},error:r=>{console.error("Error loading employee:",r),this.loading=!1,this.router.navigate(["/employees"])}})}getFullName(){return this.employee?[this.employee.prefix,this.employee.firstName,this.employee.middleName,this.employee.lastName,this.employee.suffix].filter(Boolean).join(" "):""}getGenderLabel(i){return i===Ou.Male?"Male":"Female"}editEmployee(){this.employee&&this.router.navigate(["/employees","edit",this.employee.id])}deleteEmployee(){if(!this.employee)return;let i=this.getFullName();this.dialog.open(Er,{width:"400px",data:{title:"Delete Employee",message:`Are you sure you want to delete ${i}? This action cannot be undone.`,confirmText:"Delete",cancelText:"Cancel"}}).afterClosed().subscribe(o=>{o&&this.employeeService.delete(this.employee.id).subscribe({next:()=>{let a=this.snackBar.open(`${i} has been deleted.`,"Close",{duration:3e3,horizontalPosition:"end",verticalPosition:"top"});a.afterDismissed().subscribe(()=>this.router.navigate(["/employees"])),a.onAction().subscribe(()=>this.router.navigate(["/employees"]))},error:a=>{console.error("Error deleting employee:",a),this.snackBar.open("Failed to delete employee. Please try again.","Close",{duration:4e3,horizontalPosition:"end",verticalPosition:"top"})}})})}goBack(){this.router.navigate(["/employees"])}canEdit(){return this.authService.isHRAdmin()||this.authService.isManager()}canDelete(){return this.authService.isHRAdmin()}};n.\u0275fac=function(r){return new(r||n)},n.\u0275cmp=E({type:n,selectors:[["app-employee-detail"]],decls:4,vars:3,consts:[["class","loading-spinner",4,"ngIf"],[4,"ngIf"],[1,"loading-spinner"],[1,"flex-spacer"],[1,"header-actions"],["mat-stroked-button","",3,"click"],["mat-raised-button","","color","accent",3,"click",4,"appHasRole"],["mat-raised-button","","color","warn",3,"click",4,"appHasRole"],[1,"detail-container"],[1,"detail-section"],["matListItemTitle",""],["matListItemLine",""],[3,"href"],["class","detail-section",4,"ngIf"],["mat-raised-button","","color","accent",3,"click"],["mat-raised-button","","color","warn",3,"click"],[1,"no-data"],["mat-raised-button","","color","primary",3,"click"]],template:function(r,o){r&1&&(k(0,"page-header"),R(1,_be,2,0,"div",0)(2,Mbe,82,24,"mat-card",1)(3,kbe,9,0,"mat-card",1)),r&2&&(g(),y("ngIf",o.loading),g(),y("ngIf",!o.loading&&o.employee),g(),y("ngIf",!o.loading&&!o.employee))},dependencies:[gt,li,ze,kt,$t,zt,Ut,Jt,Xt,ot,mt,Si,ki,sa,Ha,ca,Fs,la,Tu,Dl,pi,Mn,ni,Un,ff,il,Sa],styles:[".loading-spinner[_ngcontent-%COMP%]{display:flex;justify-content:center;align-items:center;min-height:400px}mat-card[_ngcontent-%COMP%]{margin:16px;max-width:1200px}mat-card-header[_ngcontent-%COMP%]{display:flex;align-items:center;padding:16px;border-bottom:1px solid rgba(0,0,0,.12)}mat-card-header[_ngcontent-%COMP%] mat-card-title[_ngcontent-%COMP%]{font-size:24px;font-weight:500;margin:0}mat-card-header[_ngcontent-%COMP%] .flex-spacer[_ngcontent-%COMP%]{flex:1 1 auto}mat-card-header[_ngcontent-%COMP%] .header-actions[_ngcontent-%COMP%]{display:flex;gap:12px}mat-card-header[_ngcontent-%COMP%] .header-actions[_ngcontent-%COMP%] button[_ngcontent-%COMP%] mat-icon[_ngcontent-%COMP%]{margin-right:4px}mat-card-content[_ngcontent-%COMP%]{padding:24px}.detail-container[_ngcontent-%COMP%]{display:grid;grid-template-columns:1fr 1fr;gap:24px}@media (max-width: 768px){.detail-container[_ngcontent-%COMP%]{grid-template-columns:1fr}}.detail-section[_ngcontent-%COMP%] h3[_ngcontent-%COMP%]{font-size:16px;font-weight:500;margin:0 0 8px;color:#000000de}.detail-section[_ngcontent-%COMP%] mat-divider[_ngcontent-%COMP%]{margin-bottom:16px}.detail-section[_ngcontent-%COMP%] mat-list[_ngcontent-%COMP%]{padding:0}.detail-section[_ngcontent-%COMP%] mat-list-item[_ngcontent-%COMP%]{height:auto;min-height:48px;padding:8px 0}.detail-section[_ngcontent-%COMP%] mat-list-item[_ngcontent-%COMP%] span[matListItemTitle][_ngcontent-%COMP%]{font-weight:500;color:#0009;font-size:12px;text-transform:uppercase;letter-spacing:.5px}.detail-section[_ngcontent-%COMP%] mat-list-item[_ngcontent-%COMP%] span[matListItemLine][_ngcontent-%COMP%]{font-size:14px;color:#000000de;margin-top:4px;white-space:normal;word-break:break-word}.detail-section[_ngcontent-%COMP%] mat-list-item[_ngcontent-%COMP%] span[matListItemLine][_ngcontent-%COMP%] a[_ngcontent-%COMP%]{color:#1976d2;text-decoration:none}.detail-section[_ngcontent-%COMP%] mat-list-item[_ngcontent-%COMP%] span[matListItemLine][_ngcontent-%COMP%] a[_ngcontent-%COMP%]:hover{text-decoration:underline}.no-data[_ngcontent-%COMP%]{display:flex;flex-direction:column;align-items:center;justify-content:center;padding:48px 16px;color:#0000008a}.no-data[_ngcontent-%COMP%] mat-icon[_ngcontent-%COMP%]{font-size:64px;width:64px;height:64px;margin-bottom:16px;color:#f44336}.no-data[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{margin:0 0 24px;font-size:18px}"]});let t=n;return t})();var Tbe=["mat-calendar-body",""];function Ibe(t,n){return this._trackRow(n)}var IU=(t,n)=>n.id;function Abe(t,n){if(t&1&&(h(0,"tr",0)(1,"td",3),_(2),p()()),t&2){let e=C();g(),Dt("padding-top",e._cellPadding)("padding-bottom",e._cellPadding),X("colspan",e.numCols),g(),ve(" ",e.label," ")}}function Obe(t,n){if(t&1&&(h(0,"td",3),_(1),p()),t&2){let e=C(2);Dt("padding-top",e._cellPadding)("padding-bottom",e._cellPadding),X("colspan",e._firstRowOffset),g(),ve(" ",e._firstRowOffset>=e.labelMinRequiredCells?e.label:""," ")}}function Rbe(t,n){if(t&1){let e=Y();h(0,"td",6)(1,"button",7),S("click",function(r){let o=I(e).$implicit,a=C(2);return A(a._cellClicked(o,r))})("focus",function(r){let o=I(e).$implicit,a=C(2);return A(a._emitActiveDateChange(o,r))}),h(2,"span",8),_(3),p(),k(4,"span",9),p()()}if(t&2){let e=n.$implicit,i=n.$index,r=C().$index,o=C();Dt("width",o._cellWidth)("padding-top",o._cellPadding)("padding-bottom",o._cellPadding),X("data-mat-row",r)("data-mat-col",i),g(),G("mat-calendar-body-disabled",!e.enabled)("mat-calendar-body-active",o._isActiveCell(r,i))("mat-calendar-body-range-start",o._isRangeStart(e.compareValue))("mat-calendar-body-range-end",o._isRangeEnd(e.compareValue))("mat-calendar-body-in-range",o._isInRange(e.compareValue))("mat-calendar-body-comparison-bridge-start",o._isComparisonBridgeStart(e.compareValue,r,i))("mat-calendar-body-comparison-bridge-end",o._isComparisonBridgeEnd(e.compareValue,r,i))("mat-calendar-body-comparison-start",o._isComparisonStart(e.compareValue))("mat-calendar-body-comparison-end",o._isComparisonEnd(e.compareValue))("mat-calendar-body-in-comparison-range",o._isInComparisonRange(e.compareValue))("mat-calendar-body-preview-start",o._isPreviewStart(e.compareValue))("mat-calendar-body-preview-end",o._isPreviewEnd(e.compareValue))("mat-calendar-body-in-preview",o._isInPreview(e.compareValue)),y("ngClass",e.cssClasses)("tabindex",o._isActiveCell(r,i)?0:-1),X("aria-label",e.ariaLabel)("aria-disabled",!e.enabled||null)("aria-pressed",o._isSelected(e.compareValue))("aria-current",o.todayValue===e.compareValue?"date":null)("aria-describedby",o._getDescribedby(e.compareValue)),g(),G("mat-calendar-body-selected",o._isSelected(e.compareValue))("mat-calendar-body-comparison-identical",o._isComparisonIdentical(e.compareValue))("mat-calendar-body-today",o.todayValue===e.compareValue),g(),ve(" ",e.displayValue," ")}}function Pbe(t,n){if(t&1&&(h(0,"tr",1),N(1,Obe,2,6,"td",4),xt(2,Rbe,5,48,"td",5,IU),p()),t&2){let e=n.$implicit,i=n.$index,r=C();g(),L(i===0&&r._firstRowOffset?1:-1),g(),Ct(e)}}function Fbe(t,n){if(t&1&&(h(0,"th",2)(1,"span",6),_(2),p(),h(3,"span",3),_(4),p()()),t&2){let e=n.$implicit;g(2),H(e.long),g(2),H(e.narrow)}}var Nbe=["*"];function Lbe(t,n){}function Vbe(t,n){if(t&1){let e=Y();h(0,"mat-month-view",4),Uo("activeDateChange",function(r){I(e);let o=C();return Ca(o.activeDate,r)||(o.activeDate=r),A(r)}),S("_userSelection",function(r){I(e);let o=C();return A(o._dateSelected(r))})("dragStarted",function(r){I(e);let o=C();return A(o._dragStarted(r))})("dragEnded",function(r){I(e);let o=C();return A(o._dragEnded(r))}),p()}if(t&2){let e=C();zo("activeDate",e.activeDate),y("selected",e.selected)("dateFilter",e.dateFilter)("maxDate",e.maxDate)("minDate",e.minDate)("dateClass",e.dateClass)("comparisonStart",e.comparisonStart)("comparisonEnd",e.comparisonEnd)("startDateAccessibleName",e.startDateAccessibleName)("endDateAccessibleName",e.endDateAccessibleName)("activeDrag",e._activeDrag)}}function Bbe(t,n){if(t&1){let e=Y();h(0,"mat-year-view",5),Uo("activeDateChange",function(r){I(e);let o=C();return Ca(o.activeDate,r)||(o.activeDate=r),A(r)}),S("monthSelected",function(r){I(e);let o=C();return A(o._monthSelectedInYearView(r))})("selectedChange",function(r){I(e);let o=C();return A(o._goToDateInView(r,"month"))}),p()}if(t&2){let e=C();zo("activeDate",e.activeDate),y("selected",e.selected)("dateFilter",e.dateFilter)("maxDate",e.maxDate)("minDate",e.minDate)("dateClass",e.dateClass)}}function jbe(t,n){if(t&1){let e=Y();h(0,"mat-multi-year-view",6),Uo("activeDateChange",function(r){I(e);let o=C();return Ca(o.activeDate,r)||(o.activeDate=r),A(r)}),S("yearSelected",function(r){I(e);let o=C();return A(o._yearSelectedInMultiYearView(r))})("selectedChange",function(r){I(e);let o=C();return A(o._goToDateInView(r,"year"))}),p()}if(t&2){let e=C();zo("activeDate",e.activeDate),y("selected",e.selected)("dateFilter",e.dateFilter)("maxDate",e.maxDate)("minDate",e.minDate)("dateClass",e.dateClass)}}function Hbe(t,n){}var zbe=["button"],Ube=[[["","matDatepickerToggleIcon",""]]],$be=["[matDatepickerToggleIcon]"];function Wbe(t,n){t&1&&(Gt(),h(0,"svg",2),k(1,"path",3),p())}var dp=(()=>{class t{changes=new z;calendarLabel="Calendar";openCalendarLabel="Open calendar";closeCalendarLabel="Close calendar";prevMonthLabel="Previous month";nextMonthLabel="Next month";prevYearLabel="Previous year";nextYearLabel="Next year";prevMultiYearLabel="Previous 24 years";nextMultiYearLabel="Next 24 years";switchToMonthViewLabel="Choose date";switchToMultiYearViewLabel="Choose month and year";startDateLabel="Start date";endDateLabel="End date";comparisonDateLabel="Comparison range";formatYearRange(e,i){return`${e} \u2013 ${i}`}formatYearRangeLabel(e,i){return`${e} to ${i}`}static \u0275fac=function(i){return new(i||t)};static \u0275prov=O({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),Gbe=0,C_=class{value;displayValue;ariaLabel;enabled;cssClasses;compareValue;rawValue;id=Gbe++;constructor(n,e,i,r,o={},a=n,s){this.value=n,this.displayValue=e,this.ariaLabel=i,this.enabled=r,this.cssClasses=o,this.compareValue=a,this.rawValue=s}},qbe={passive:!1,capture:!0},xw={passive:!0,capture:!0},DU={passive:!0},cp=(()=>{class t{_elementRef=u(q);_ngZone=u(ae);_platform=u(qe);_intl=u(dp);_eventCleanups;_skipNextFocus;_focusActiveCellAfterViewChecked=!1;label;rows;todayValue;startValue;endValue;labelMinRequiredCells;numCols=7;activeCell=0;ngAfterViewChecked(){this._focusActiveCellAfterViewChecked&&(this._focusActiveCell(),this._focusActiveCellAfterViewChecked=!1)}isRange=!1;cellAspectRatio=1;comparisonStart;comparisonEnd;previewStart=null;previewEnd=null;startDateAccessibleName;endDateAccessibleName;selectedValueChange=new U;previewChange=new U;activeDateChange=new U;dragStarted=new U;dragEnded=new U;_firstRowOffset;_cellPadding;_cellWidth;_startDateLabelId;_endDateLabelId;_comparisonStartDateLabelId;_comparisonEndDateLabelId;_didDragSinceMouseDown=!1;_injector=u(de);comparisonDateAccessibleName=this._intl.comparisonDateLabel;_trackRow=e=>e;constructor(){let e=u(je),i=u(Ze);this._startDateLabelId=i.getId("mat-calendar-body-start-"),this._endDateLabelId=i.getId("mat-calendar-body-end-"),this._comparisonStartDateLabelId=i.getId("mat-calendar-body-comparison-start-"),this._comparisonEndDateLabelId=i.getId("mat-calendar-body-comparison-end-"),u(ut).load(Di),this._ngZone.runOutsideAngular(()=>{let r=this._elementRef.nativeElement,o=[e.listen(r,"touchmove",this._touchmoveHandler,qbe),e.listen(r,"mouseenter",this._enterHandler,xw),e.listen(r,"focus",this._enterHandler,xw),e.listen(r,"mouseleave",this._leaveHandler,xw),e.listen(r,"blur",this._leaveHandler,xw),e.listen(r,"mousedown",this._mousedownHandler,DU),e.listen(r,"touchstart",this._mousedownHandler,DU)];this._platform.isBrowser&&o.push(e.listen("window","mouseup",this._mouseupHandler),e.listen("window","touchend",this._touchendHandler)),this._eventCleanups=o})}_cellClicked(e,i){this._didDragSinceMouseDown||e.enabled&&this.selectedValueChange.emit({value:e.value,event:i})}_emitActiveDateChange(e,i){e.enabled&&this.activeDateChange.emit({value:e.value,event:i})}_isSelected(e){return this.startValue===e||this.endValue===e}ngOnChanges(e){let i=e.numCols,{rows:r,numCols:o}=this;(e.rows||i)&&(this._firstRowOffset=r&&r.length&&r[0].length?o-r[0].length:0),(e.cellAspectRatio||i||!this._cellPadding)&&(this._cellPadding=`${50*this.cellAspectRatio/o}%`),(i||!this._cellWidth)&&(this._cellWidth=`${100/o}%`)}ngOnDestroy(){this._eventCleanups.forEach(e=>e())}_isActiveCell(e,i){let r=e*this.numCols+i;return e&&(r-=this._firstRowOffset),r==this.activeCell}_focusActiveCell(e=!0){pt(()=>{setTimeout(()=>{let i=this._elementRef.nativeElement.querySelector(".mat-calendar-body-active");i&&(e||(this._skipNextFocus=!0),i.focus())})},{injector:this._injector})}_scheduleFocusActiveCellAfterViewChecked(){this._focusActiveCellAfterViewChecked=!0}_isRangeStart(e){return XI(e,this.startValue,this.endValue)}_isRangeEnd(e){return JI(e,this.startValue,this.endValue)}_isInRange(e){return eA(e,this.startValue,this.endValue,this.isRange)}_isComparisonStart(e){return XI(e,this.comparisonStart,this.comparisonEnd)}_isComparisonBridgeStart(e,i,r){if(!this._isComparisonStart(e)||this._isRangeStart(e)||!this._isInRange(e))return!1;let o=this.rows[i][r-1];if(!o){let a=this.rows[i-1];o=a&&a[a.length-1]}return o&&!this._isRangeEnd(o.compareValue)}_isComparisonBridgeEnd(e,i,r){if(!this._isComparisonEnd(e)||this._isRangeEnd(e)||!this._isInRange(e))return!1;let o=this.rows[i][r+1];if(!o){let a=this.rows[i+1];o=a&&a[0]}return o&&!this._isRangeStart(o.compareValue)}_isComparisonEnd(e){return JI(e,this.comparisonStart,this.comparisonEnd)}_isInComparisonRange(e){return eA(e,this.comparisonStart,this.comparisonEnd,this.isRange)}_isComparisonIdentical(e){return this.comparisonStart===this.comparisonEnd&&e===this.comparisonStart}_isPreviewStart(e){return XI(e,this.previewStart,this.previewEnd)}_isPreviewEnd(e){return JI(e,this.previewStart,this.previewEnd)}_isInPreview(e){return eA(e,this.previewStart,this.previewEnd,this.isRange)}_getDescribedby(e){if(!this.isRange)return null;if(this.startValue===e&&this.endValue===e)return`${this._startDateLabelId} ${this._endDateLabelId}`;if(this.startValue===e)return this._startDateLabelId;if(this.endValue===e)return this._endDateLabelId;if(this.comparisonStart!==null&&this.comparisonEnd!==null){if(e===this.comparisonStart&&e===this.comparisonEnd)return`${this._comparisonStartDateLabelId} ${this._comparisonEndDateLabelId}`;if(e===this.comparisonStart)return this._comparisonStartDateLabelId;if(e===this.comparisonEnd)return this._comparisonEndDateLabelId}return null}_enterHandler=e=>{if(this._skipNextFocus&&e.type==="focus"){this._skipNextFocus=!1;return}if(e.target&&this.isRange){let i=this._getCellFromElement(e.target);i&&this._ngZone.run(()=>this.previewChange.emit({value:i.enabled?i:null,event:e}))}};_touchmoveHandler=e=>{if(!this.isRange)return;let i=EU(e),r=i?this._getCellFromElement(i):null;i!==e.target&&(this._didDragSinceMouseDown=!0),ZI(e.target)&&e.preventDefault(),this._ngZone.run(()=>this.previewChange.emit({value:r?.enabled?r:null,event:e}))};_leaveHandler=e=>{this.previewEnd!==null&&this.isRange&&(e.type!=="blur"&&(this._didDragSinceMouseDown=!0),e.target&&this._getCellFromElement(e.target)&&!(e.relatedTarget&&this._getCellFromElement(e.relatedTarget))&&this._ngZone.run(()=>this.previewChange.emit({value:null,event:e})))};_mousedownHandler=e=>{if(!this.isRange)return;this._didDragSinceMouseDown=!1;let i=e.target&&this._getCellFromElement(e.target);!i||!this._isInRange(i.compareValue)||this._ngZone.run(()=>{this.dragStarted.emit({value:i.rawValue,event:e})})};_mouseupHandler=e=>{if(!this.isRange)return;let i=ZI(e.target);if(!i){this._ngZone.run(()=>{this.dragEnded.emit({value:null,event:e})});return}i.closest(".mat-calendar-body")===this._elementRef.nativeElement&&this._ngZone.run(()=>{let r=this._getCellFromElement(i);this.dragEnded.emit({value:r?.rawValue??null,event:e})})};_touchendHandler=e=>{let i=EU(e);i&&this._mouseupHandler({target:i})};_getCellFromElement(e){let i=ZI(e);if(i){let r=i.getAttribute("data-mat-row"),o=i.getAttribute("data-mat-col");if(r&&o)return this.rows[parseInt(r)]?.[parseInt(o)]||null}return null}static \u0275fac=function(i){return new(i||t)};static \u0275cmp=E({type:t,selectors:[["","mat-calendar-body",""]],hostAttrs:[1,"mat-calendar-body"],inputs:{label:"label",rows:"rows",todayValue:"todayValue",startValue:"startValue",endValue:"endValue",labelMinRequiredCells:"labelMinRequiredCells",numCols:"numCols",activeCell:"activeCell",isRange:"isRange",cellAspectRatio:"cellAspectRatio",comparisonStart:"comparisonStart",comparisonEnd:"comparisonEnd",previewStart:"previewStart",previewEnd:"previewEnd",startDateAccessibleName:"startDateAccessibleName",endDateAccessibleName:"endDateAccessibleName"},outputs:{selectedValueChange:"selectedValueChange",previewChange:"previewChange",activeDateChange:"activeDateChange",dragStarted:"dragStarted",dragEnded:"dragEnded"},exportAs:["matCalendarBody"],features:[Ae],attrs:Tbe,decls:11,vars:11,consts:[["aria-hidden","true"],["role","row"],[1,"mat-calendar-body-hidden-label",3,"id"],[1,"mat-calendar-body-label"],[1,"mat-calendar-body-label",3,"paddingTop","paddingBottom"],["role","gridcell",1,"mat-calendar-body-cell-container",3,"width","paddingTop","paddingBottom"],["role","gridcell",1,"mat-calendar-body-cell-container"],["type","button",1,"mat-calendar-body-cell",3,"click","focus","ngClass","tabindex"],[1,"mat-calendar-body-cell-content","mat-focus-indicator"],["aria-hidden","true",1,"mat-calendar-body-cell-preview"]],template:function(i,r){i&1&&(N(0,Abe,3,6,"tr",0),xt(1,Pbe,4,1,"tr",1,Ibe,!0),h(3,"span",2),_(4),p(),h(5,"span",2),_(6),p(),h(7,"span",2),_(8),p(),h(9,"span",2),_(10),p()),i&2&&(L(r._firstRowOffset.mat-calendar-body-cell-content:not(.mat-calendar-body-selected):not(.mat-calendar-body-comparison-identical){color:var(--mat-datepicker-calendar-date-disabled-state-text-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent))}.mat-calendar-body-disabled>.mat-calendar-body-today:not(.mat-calendar-body-selected):not(.mat-calendar-body-comparison-identical){border-color:var(--mat-datepicker-calendar-date-today-disabled-state-outline-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent))}@media(forced-colors: active){.mat-calendar-body-disabled{opacity:.5}}.mat-calendar-body-cell-content{top:5%;left:5%;z-index:1;display:flex;align-items:center;justify-content:center;box-sizing:border-box;width:90%;height:90%;line-height:1;border-width:1px;border-style:solid;border-radius:999px;color:var(--mat-datepicker-calendar-date-text-color, var(--mat-sys-on-surface));border-color:var(--mat-datepicker-calendar-date-outline-color, transparent)}.mat-calendar-body-cell-content.mat-focus-indicator{position:absolute}@media(forced-colors: active){.mat-calendar-body-cell-content{border:none}}.cdk-keyboard-focused .mat-calendar-body-active>.mat-calendar-body-cell-content:not(.mat-calendar-body-selected):not(.mat-calendar-body-comparison-identical),.cdk-program-focused .mat-calendar-body-active>.mat-calendar-body-cell-content:not(.mat-calendar-body-selected):not(.mat-calendar-body-comparison-identical){background-color:var(--mat-datepicker-calendar-date-focus-state-background-color, color-mix(in srgb, var(--mat-sys-on-surface) calc(var(--mat-sys-focus-state-layer-opacity) * 100%), transparent))}@media(hover: hover){.mat-calendar-body-cell:not(.mat-calendar-body-disabled):hover>.mat-calendar-body-cell-content:not(.mat-calendar-body-selected):not(.mat-calendar-body-comparison-identical){background-color:var(--mat-datepicker-calendar-date-hover-state-background-color, color-mix(in srgb, var(--mat-sys-on-surface) calc(var(--mat-sys-hover-state-layer-opacity) * 100%), transparent))}}.mat-calendar-body-selected{background-color:var(--mat-datepicker-calendar-date-selected-state-background-color, var(--mat-sys-primary));color:var(--mat-datepicker-calendar-date-selected-state-text-color, var(--mat-sys-on-primary))}.mat-calendar-body-disabled>.mat-calendar-body-selected{background-color:var(--mat-datepicker-calendar-date-selected-disabled-state-background-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent))}.mat-calendar-body-selected.mat-calendar-body-today{box-shadow:inset 0 0 0 1px var(--mat-datepicker-calendar-date-today-selected-state-outline-color, var(--mat-sys-primary))}.mat-calendar-body-in-range::before{background:var(--mat-datepicker-calendar-date-in-range-state-background-color, var(--mat-sys-primary-container))}.mat-calendar-body-comparison-identical,.mat-calendar-body-in-comparison-range::before{background:var(--mat-datepicker-calendar-date-in-comparison-range-state-background-color, var(--mat-sys-tertiary-container))}.mat-calendar-body-comparison-identical,.mat-calendar-body-in-comparison-range::before{background:var(--mat-datepicker-calendar-date-in-comparison-range-state-background-color, var(--mat-sys-tertiary-container))}.mat-calendar-body-comparison-bridge-start::before,[dir=rtl] .mat-calendar-body-comparison-bridge-end::before{background:linear-gradient(to right, var(--mat-datepicker-calendar-date-in-range-state-background-color, var(--mat-sys-primary-container)) 50%, var(--mat-datepicker-calendar-date-in-comparison-range-state-background-color, var(--mat-sys-tertiary-container)) 50%)}.mat-calendar-body-comparison-bridge-end::before,[dir=rtl] .mat-calendar-body-comparison-bridge-start::before{background:linear-gradient(to left, var(--mat-datepicker-calendar-date-in-range-state-background-color, var(--mat-sys-primary-container)) 50%, var(--mat-datepicker-calendar-date-in-comparison-range-state-background-color, var(--mat-sys-tertiary-container)) 50%)}.mat-calendar-body-in-range>.mat-calendar-body-comparison-identical,.mat-calendar-body-in-comparison-range.mat-calendar-body-in-range::after{background:var(--mat-datepicker-calendar-date-in-overlap-range-state-background-color, var(--mat-sys-secondary-container))}.mat-calendar-body-comparison-identical.mat-calendar-body-selected,.mat-calendar-body-in-comparison-range>.mat-calendar-body-selected{background:var(--mat-datepicker-calendar-date-in-overlap-range-selected-state-background-color, var(--mat-sys-secondary))}@media(forced-colors: active){.mat-datepicker-popup:not(:empty),.mat-calendar-body-cell:not(.mat-calendar-body-in-range) .mat-calendar-body-selected{outline:solid 1px}.mat-calendar-body-today{outline:dotted 1px}.mat-calendar-body-cell::before,.mat-calendar-body-cell::after,.mat-calendar-body-selected{background:none}.mat-calendar-body-in-range::before,.mat-calendar-body-comparison-bridge-start::before,.mat-calendar-body-comparison-bridge-end::before{border-top:solid 1px;border-bottom:solid 1px}.mat-calendar-body-range-start::before{border-left:solid 1px}[dir=rtl] .mat-calendar-body-range-start::before{border-left:0;border-right:solid 1px}.mat-calendar-body-range-end::before{border-right:solid 1px}[dir=rtl] .mat-calendar-body-range-end::before{border-right:0;border-left:solid 1px}.mat-calendar-body-in-comparison-range::before{border-top:dashed 1px;border-bottom:dashed 1px}.mat-calendar-body-comparison-start::before{border-left:dashed 1px}[dir=rtl] .mat-calendar-body-comparison-start::before{border-left:0;border-right:dashed 1px}.mat-calendar-body-comparison-end::before{border-right:dashed 1px}[dir=rtl] .mat-calendar-body-comparison-end::before{border-right:0;border-left:dashed 1px}} +`],encapsulation:2,changeDetection:0})}return t})();function KI(t){return t?.nodeName==="TD"}function ZI(t){let n;return KI(t)?n=t:KI(t.parentNode)?n=t.parentNode:KI(t.parentNode?.parentNode)&&(n=t.parentNode.parentNode),n?.getAttribute("data-mat-row")!=null?n:null}function XI(t,n,e){return e!==null&&n!==e&&t=n&&t===e}function eA(t,n,e,i){return i&&n!==null&&e!==null&&n!==e&&t>=n&&t<=e}function EU(t){let n=t.changedTouches[0];return document.elementFromPoint(n.clientX,n.clientY)}var ua=class{start;end;_disableStructuralEquivalency;constructor(n,e){this.start=n,this.end=e}},w_=(()=>{class t{selection;_adapter;_selectionChanged=new z;selectionChanged=this._selectionChanged;constructor(e,i){this.selection=e,this._adapter=i,this.selection=e}updateSelection(e,i){let r=this.selection;this.selection=e,this._selectionChanged.next({selection:e,source:i,oldValue:r})}ngOnDestroy(){this._selectionChanged.complete()}_isValidDateInstance(e){return this._adapter.isDateInstance(e)&&this._adapter.isValid(e)}static \u0275fac=function(i){Ad()};static \u0275prov=O({token:t,factory:t.\u0275fac})}return t})(),Ybe=(()=>{class t extends w_{constructor(e){super(null,e)}add(e){super.updateSelection(e,this)}isValid(){return this.selection!=null&&this._isValidDateInstance(this.selection)}isComplete(){return this.selection!=null}clone(){let e=new t(this._adapter);return e.updateSelection(this.selection,this),e}static \u0275fac=function(i){return new(i||t)(pe(Li))};static \u0275prov=O({token:t,factory:t.\u0275fac})}return t})();function Qbe(t,n){return t||new Ybe(n)}var AU={provide:w_,deps:[[new ss,new Gl,w_],Li],useFactory:Qbe};var OU=new T("MAT_DATE_RANGE_SELECTION_STRATEGY");var tA=7,Kbe=0,MU=(()=>{class t{_changeDetectorRef=u(ye);_dateFormats=u(xs,{optional:!0});_dateAdapter=u(Li,{optional:!0});_dir=u(Vt,{optional:!0});_rangeStrategy=u(OU,{optional:!0});_rerenderSubscription=ke.EMPTY;_selectionKeyPressed;get activeDate(){return this._activeDate}set activeDate(e){let i=this._activeDate,r=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e))||this._dateAdapter.today();this._activeDate=this._dateAdapter.clampDate(r,this.minDate,this.maxDate),this._hasSameMonthAndYear(i,this._activeDate)||this._init()}_activeDate;get selected(){return this._selected}set selected(e){e instanceof ua?this._selected=e:this._selected=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e)),this._setRanges(this._selected)}_selected;get minDate(){return this._minDate}set minDate(e){this._minDate=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e))}_minDate;get maxDate(){return this._maxDate}set maxDate(e){this._maxDate=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e))}_maxDate;dateFilter;dateClass;comparisonStart;comparisonEnd;startDateAccessibleName;endDateAccessibleName;activeDrag=null;selectedChange=new U;_userSelection=new U;dragStarted=new U;dragEnded=new U;activeDateChange=new U;_matCalendarBody;_monthLabel=he("");_weeks=he([]);_firstWeekOffset=he(0);_rangeStart=he(null);_rangeEnd=he(null);_comparisonRangeStart=he(null);_comparisonRangeEnd=he(null);_previewStart=he(null);_previewEnd=he(null);_isRange=he(!1);_todayDate=he(null);_weekdays=he([]);constructor(){u(ut).load(Qr),this._activeDate=this._dateAdapter.today()}ngAfterContentInit(){this._rerenderSubscription=this._dateAdapter.localeChanges.pipe(He(null)).subscribe(()=>this._init())}ngOnChanges(e){let i=e.comparisonStart||e.comparisonEnd;i&&!i.firstChange&&this._setRanges(this.selected),e.activeDrag&&!this.activeDrag&&this._clearPreview()}ngOnDestroy(){this._rerenderSubscription.unsubscribe()}_dateSelected(e){let i=e.value,r=this._getDateFromDayOfMonth(i),o,a;this._selected instanceof ua?(o=this._getDateInCurrentMonth(this._selected.start),a=this._getDateInCurrentMonth(this._selected.end)):o=a=this._getDateInCurrentMonth(this._selected),(o!==i||a!==i)&&this.selectedChange.emit(r),this._userSelection.emit({value:r,event:e.event}),this._clearPreview(),this._changeDetectorRef.markForCheck()}_updateActiveDate(e){let i=e.value,r=this._activeDate;this.activeDate=this._getDateFromDayOfMonth(i),this._dateAdapter.compareDate(r,this.activeDate)&&this.activeDateChange.emit(this._activeDate)}_handleCalendarBodyKeydown(e){let i=this._activeDate,r=this._isRtl();switch(e.keyCode){case 37:this.activeDate=this._dateAdapter.addCalendarDays(this._activeDate,r?1:-1);break;case 39:this.activeDate=this._dateAdapter.addCalendarDays(this._activeDate,r?-1:1);break;case 38:this.activeDate=this._dateAdapter.addCalendarDays(this._activeDate,-7);break;case 40:this.activeDate=this._dateAdapter.addCalendarDays(this._activeDate,7);break;case 36:this.activeDate=this._dateAdapter.addCalendarDays(this._activeDate,1-this._dateAdapter.getDate(this._activeDate));break;case 35:this.activeDate=this._dateAdapter.addCalendarDays(this._activeDate,this._dateAdapter.getNumDaysInMonth(this._activeDate)-this._dateAdapter.getDate(this._activeDate));break;case 33:this.activeDate=e.altKey?this._dateAdapter.addCalendarYears(this._activeDate,-1):this._dateAdapter.addCalendarMonths(this._activeDate,-1);break;case 34:this.activeDate=e.altKey?this._dateAdapter.addCalendarYears(this._activeDate,1):this._dateAdapter.addCalendarMonths(this._activeDate,1);break;case 13:case 32:this._selectionKeyPressed=!0,this._canSelect(this._activeDate)&&e.preventDefault();return;case 27:this._previewEnd()!=null&&!Ft(e)&&(this._clearPreview(),this.activeDrag?this.dragEnded.emit({value:null,event:e}):(this.selectedChange.emit(null),this._userSelection.emit({value:null,event:e})),e.preventDefault(),e.stopPropagation());return;default:return}this._dateAdapter.compareDate(i,this.activeDate)&&(this.activeDateChange.emit(this.activeDate),this._focusActiveCellAfterViewChecked()),e.preventDefault()}_handleCalendarBodyKeyup(e){(e.keyCode===32||e.keyCode===13)&&(this._selectionKeyPressed&&this._canSelect(this._activeDate)&&this._dateSelected({value:this._dateAdapter.getDate(this._activeDate),event:e}),this._selectionKeyPressed=!1)}_init(){this._setRanges(this.selected),this._todayDate.set(this._getCellCompareValue(this._dateAdapter.today())),this._monthLabel.set(this._dateFormats.display.monthLabel?this._dateAdapter.format(this.activeDate,this._dateFormats.display.monthLabel):this._dateAdapter.getMonthNames("short")[this._dateAdapter.getMonth(this.activeDate)].toLocaleUpperCase());let e=this._dateAdapter.createDate(this._dateAdapter.getYear(this.activeDate),this._dateAdapter.getMonth(this.activeDate),1);this._firstWeekOffset.set((tA+this._dateAdapter.getDayOfWeek(e)-this._dateAdapter.getFirstDayOfWeek())%tA),this._initWeekdays(),this._createWeekCells(),this._changeDetectorRef.markForCheck()}_focusActiveCell(e){this._matCalendarBody._focusActiveCell(e)}_focusActiveCellAfterViewChecked(){this._matCalendarBody._scheduleFocusActiveCellAfterViewChecked()}_previewChanged({event:e,value:i}){if(this._rangeStrategy){let r=i?i.rawValue:null,o=this._rangeStrategy.createPreview(r,this.selected,e);if(this._previewStart.set(this._getCellCompareValue(o.start)),this._previewEnd.set(this._getCellCompareValue(o.end)),this.activeDrag&&r){let a=this._rangeStrategy.createDrag?.(this.activeDrag.value,this.selected,r,e);a&&(this._previewStart.set(this._getCellCompareValue(a.start)),this._previewEnd.set(this._getCellCompareValue(a.end)))}}}_dragEnded(e){if(this.activeDrag)if(e.value){let i=this._rangeStrategy?.createDrag?.(this.activeDrag.value,this.selected,e.value,e.event);this.dragEnded.emit({value:i??null,event:e.event})}else this.dragEnded.emit({value:null,event:e.event})}_getDateFromDayOfMonth(e){return this._dateAdapter.createDate(this._dateAdapter.getYear(this.activeDate),this._dateAdapter.getMonth(this.activeDate),e)}_initWeekdays(){let e=this._dateAdapter.getFirstDayOfWeek(),i=this._dateAdapter.getDayOfWeekNames("narrow"),o=this._dateAdapter.getDayOfWeekNames("long").map((a,s)=>({long:a,narrow:i[s],id:Kbe++}));this._weekdays.set(o.slice(e).concat(o.slice(0,e)))}_createWeekCells(){let e=this._dateAdapter.getNumDaysInMonth(this.activeDate),i=this._dateAdapter.getDateNames(),r=[[]];for(let o=0,a=this._firstWeekOffset();o=0)&&(!this.maxDate||this._dateAdapter.compareDate(e,this.maxDate)<=0)&&(!this.dateFilter||this.dateFilter(e))}_getDateInCurrentMonth(e){return e&&this._hasSameMonthAndYear(e,this.activeDate)?this._dateAdapter.getDate(e):null}_hasSameMonthAndYear(e,i){return!!(e&&i&&this._dateAdapter.getMonth(e)==this._dateAdapter.getMonth(i)&&this._dateAdapter.getYear(e)==this._dateAdapter.getYear(i))}_getCellCompareValue(e){if(e){let i=this._dateAdapter.getYear(e),r=this._dateAdapter.getMonth(e),o=this._dateAdapter.getDate(e);return new Date(i,r,o).getTime()}return null}_isRtl(){return this._dir&&this._dir.value==="rtl"}_setRanges(e){e instanceof ua?(this._rangeStart.set(this._getCellCompareValue(e.start)),this._rangeEnd.set(this._getCellCompareValue(e.end)),this._isRange.set(!0)):(this._rangeStart.set(this._getCellCompareValue(e)),this._rangeEnd.set(this._rangeStart()),this._isRange.set(!1)),this._comparisonRangeStart.set(this._getCellCompareValue(this.comparisonStart)),this._comparisonRangeEnd.set(this._getCellCompareValue(this.comparisonEnd))}_canSelect(e){return!this.dateFilter||this.dateFilter(e)}_clearPreview(){this._previewStart.set(null),this._previewEnd.set(null)}static \u0275fac=function(i){return new(i||t)};static \u0275cmp=E({type:t,selectors:[["mat-month-view"]],viewQuery:function(i,r){if(i&1&&ie(cp,5),i&2){let o;B(o=j())&&(r._matCalendarBody=o.first)}},inputs:{activeDate:"activeDate",selected:"selected",minDate:"minDate",maxDate:"maxDate",dateFilter:"dateFilter",dateClass:"dateClass",comparisonStart:"comparisonStart",comparisonEnd:"comparisonEnd",startDateAccessibleName:"startDateAccessibleName",endDateAccessibleName:"endDateAccessibleName",activeDrag:"activeDrag"},outputs:{selectedChange:"selectedChange",_userSelection:"_userSelection",dragStarted:"dragStarted",dragEnded:"dragEnded",activeDateChange:"activeDateChange"},exportAs:["matMonthView"],features:[Ae],decls:8,vars:14,consts:[["role","grid",1,"mat-calendar-table"],[1,"mat-calendar-table-header"],["scope","col"],["aria-hidden","true"],["colspan","7",1,"mat-calendar-table-header-divider"],["mat-calendar-body","",3,"selectedValueChange","activeDateChange","previewChange","dragStarted","dragEnded","keyup","keydown","label","rows","todayValue","startValue","endValue","comparisonStart","comparisonEnd","previewStart","previewEnd","isRange","labelMinRequiredCells","activeCell","startDateAccessibleName","endDateAccessibleName"],[1,"cdk-visually-hidden"]],template:function(i,r){i&1&&(h(0,"table",0)(1,"thead",1)(2,"tr"),xt(3,Fbe,5,2,"th",2,IU),p(),h(5,"tr",3),k(6,"th",4),p()(),h(7,"tbody",5),S("selectedValueChange",function(a){return r._dateSelected(a)})("activeDateChange",function(a){return r._updateActiveDate(a)})("previewChange",function(a){return r._previewChanged(a)})("dragStarted",function(a){return r.dragStarted.emit(a)})("dragEnded",function(a){return r._dragEnded(a)})("keyup",function(a){return r._handleCalendarBodyKeyup(a)})("keydown",function(a){return r._handleCalendarBodyKeydown(a)}),p()()),i&2&&(g(3),Ct(r._weekdays()),g(4),y("label",r._monthLabel())("rows",r._weeks())("todayValue",r._todayDate())("startValue",r._rangeStart())("endValue",r._rangeEnd())("comparisonStart",r._comparisonRangeStart())("comparisonEnd",r._comparisonRangeEnd())("previewStart",r._previewStart())("previewEnd",r._previewEnd())("isRange",r._isRange())("labelMinRequiredCells",3)("activeCell",r._dateAdapter.getDate(r.activeDate)-1)("startDateAccessibleName",r.startDateAccessibleName)("endDateAccessibleName",r.endDateAccessibleName))},dependencies:[cp],encapsulation:2,changeDetection:0})}return t})(),Io=24,iA=4,kU=(()=>{class t{_changeDetectorRef=u(ye);_dateAdapter=u(Li,{optional:!0});_dir=u(Vt,{optional:!0});_rerenderSubscription=ke.EMPTY;_selectionKeyPressed;get activeDate(){return this._activeDate}set activeDate(e){let i=this._activeDate,r=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e))||this._dateAdapter.today();this._activeDate=this._dateAdapter.clampDate(r,this.minDate,this.maxDate),RU(this._dateAdapter,i,this._activeDate,this.minDate,this.maxDate)||this._init()}_activeDate;get selected(){return this._selected}set selected(e){e instanceof ua?this._selected=e:this._selected=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e)),this._setSelectedYear(e)}_selected;get minDate(){return this._minDate}set minDate(e){this._minDate=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e))}_minDate;get maxDate(){return this._maxDate}set maxDate(e){this._maxDate=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e))}_maxDate;dateFilter;dateClass;selectedChange=new U;yearSelected=new U;activeDateChange=new U;_matCalendarBody;_years=he([]);_todayYear=he(0);_selectedYear=he(null);constructor(){this._dateAdapter,this._activeDate=this._dateAdapter.today()}ngAfterContentInit(){this._rerenderSubscription=this._dateAdapter.localeChanges.pipe(He(null)).subscribe(()=>this._init())}ngOnDestroy(){this._rerenderSubscription.unsubscribe()}_init(){this._todayYear.set(this._dateAdapter.getYear(this._dateAdapter.today()));let i=this._dateAdapter.getYear(this._activeDate)-x_(this._dateAdapter,this.activeDate,this.minDate,this.maxDate),r=[];for(let o=0,a=[];othis._createCellForYear(s))),a=[]);this._years.set(r),this._changeDetectorRef.markForCheck()}_yearSelected(e){let i=e.value,r=this._dateAdapter.createDate(i,0,1),o=this._getDateFromYear(i);this.yearSelected.emit(r),this.selectedChange.emit(o)}_updateActiveDate(e){let i=e.value,r=this._activeDate;this.activeDate=this._getDateFromYear(i),this._dateAdapter.compareDate(r,this.activeDate)&&this.activeDateChange.emit(this.activeDate)}_handleCalendarBodyKeydown(e){let i=this._activeDate,r=this._isRtl();switch(e.keyCode){case 37:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,r?1:-1);break;case 39:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,r?-1:1);break;case 38:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,-iA);break;case 40:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,iA);break;case 36:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,-x_(this._dateAdapter,this.activeDate,this.minDate,this.maxDate));break;case 35:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,Io-x_(this._dateAdapter,this.activeDate,this.minDate,this.maxDate)-1);break;case 33:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,e.altKey?-Io*10:-Io);break;case 34:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,e.altKey?Io*10:Io);break;case 13:case 32:this._selectionKeyPressed=!0;break;default:return}this._dateAdapter.compareDate(i,this.activeDate)&&this.activeDateChange.emit(this.activeDate),this._focusActiveCellAfterViewChecked(),e.preventDefault()}_handleCalendarBodyKeyup(e){(e.keyCode===32||e.keyCode===13)&&(this._selectionKeyPressed&&this._yearSelected({value:this._dateAdapter.getYear(this._activeDate),event:e}),this._selectionKeyPressed=!1)}_getActiveCell(){return x_(this._dateAdapter,this.activeDate,this.minDate,this.maxDate)}_focusActiveCell(){this._matCalendarBody._focusActiveCell()}_focusActiveCellAfterViewChecked(){this._matCalendarBody._scheduleFocusActiveCellAfterViewChecked()}_getDateFromYear(e){let i=this._dateAdapter.getMonth(this.activeDate),r=this._dateAdapter.getNumDaysInMonth(this._dateAdapter.createDate(e,i,1));return this._dateAdapter.createDate(e,i,Math.min(this._dateAdapter.getDate(this.activeDate),r))}_createCellForYear(e){let i=this._dateAdapter.createDate(e,0,1),r=this._dateAdapter.getYearName(i),o=this.dateClass?this.dateClass(i,"multi-year"):void 0;return new C_(e,r,r,this._shouldEnableYear(e),o)}_shouldEnableYear(e){if(e==null||this.maxDate&&e>this._dateAdapter.getYear(this.maxDate)||this.minDate&&e{class t{_changeDetectorRef=u(ye);_dateFormats=u(xs,{optional:!0});_dateAdapter=u(Li,{optional:!0});_dir=u(Vt,{optional:!0});_rerenderSubscription=ke.EMPTY;_selectionKeyPressed;get activeDate(){return this._activeDate}set activeDate(e){let i=this._activeDate,r=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e))||this._dateAdapter.today();this._activeDate=this._dateAdapter.clampDate(r,this.minDate,this.maxDate),this._dateAdapter.getYear(i)!==this._dateAdapter.getYear(this._activeDate)&&this._init()}_activeDate;get selected(){return this._selected}set selected(e){e instanceof ua?this._selected=e:this._selected=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e)),this._setSelectedMonth(e)}_selected;get minDate(){return this._minDate}set minDate(e){this._minDate=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e))}_minDate;get maxDate(){return this._maxDate}set maxDate(e){this._maxDate=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e))}_maxDate;dateFilter;dateClass;selectedChange=new U;monthSelected=new U;activeDateChange=new U;_matCalendarBody;_months=he([]);_yearLabel=he("");_todayMonth=he(null);_selectedMonth=he(null);constructor(){this._activeDate=this._dateAdapter.today()}ngAfterContentInit(){this._rerenderSubscription=this._dateAdapter.localeChanges.pipe(He(null)).subscribe(()=>this._init())}ngOnDestroy(){this._rerenderSubscription.unsubscribe()}_monthSelected(e){let i=e.value,r=this._dateAdapter.createDate(this._dateAdapter.getYear(this.activeDate),i,1);this.monthSelected.emit(r);let o=this._getDateFromMonth(i);this.selectedChange.emit(o)}_updateActiveDate(e){let i=e.value,r=this._activeDate;this.activeDate=this._getDateFromMonth(i),this._dateAdapter.compareDate(r,this.activeDate)&&this.activeDateChange.emit(this.activeDate)}_handleCalendarBodyKeydown(e){let i=this._activeDate,r=this._isRtl();switch(e.keyCode){case 37:this.activeDate=this._dateAdapter.addCalendarMonths(this._activeDate,r?1:-1);break;case 39:this.activeDate=this._dateAdapter.addCalendarMonths(this._activeDate,r?-1:1);break;case 38:this.activeDate=this._dateAdapter.addCalendarMonths(this._activeDate,-4);break;case 40:this.activeDate=this._dateAdapter.addCalendarMonths(this._activeDate,4);break;case 36:this.activeDate=this._dateAdapter.addCalendarMonths(this._activeDate,-this._dateAdapter.getMonth(this._activeDate));break;case 35:this.activeDate=this._dateAdapter.addCalendarMonths(this._activeDate,11-this._dateAdapter.getMonth(this._activeDate));break;case 33:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,e.altKey?-10:-1);break;case 34:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,e.altKey?10:1);break;case 13:case 32:this._selectionKeyPressed=!0;break;default:return}this._dateAdapter.compareDate(i,this.activeDate)&&(this.activeDateChange.emit(this.activeDate),this._focusActiveCellAfterViewChecked()),e.preventDefault()}_handleCalendarBodyKeyup(e){(e.keyCode===32||e.keyCode===13)&&(this._selectionKeyPressed&&this._monthSelected({value:this._dateAdapter.getMonth(this._activeDate),event:e}),this._selectionKeyPressed=!1)}_init(){this._setSelectedMonth(this.selected),this._todayMonth.set(this._getMonthInCurrentYear(this._dateAdapter.today())),this._yearLabel.set(this._dateAdapter.getYearName(this.activeDate));let e=this._dateAdapter.getMonthNames("short");this._months.set([[0,1,2,3],[4,5,6,7],[8,9,10,11]].map(i=>i.map(r=>this._createCellForMonth(r,e[r])))),this._changeDetectorRef.markForCheck()}_focusActiveCell(){this._matCalendarBody._focusActiveCell()}_focusActiveCellAfterViewChecked(){this._matCalendarBody._scheduleFocusActiveCellAfterViewChecked()}_getMonthInCurrentYear(e){return e&&this._dateAdapter.getYear(e)==this._dateAdapter.getYear(this.activeDate)?this._dateAdapter.getMonth(e):null}_getDateFromMonth(e){let i=this._dateAdapter.createDate(this._dateAdapter.getYear(this.activeDate),e,1),r=this._dateAdapter.getNumDaysInMonth(i);return this._dateAdapter.createDate(this._dateAdapter.getYear(this.activeDate),e,Math.min(this._dateAdapter.getDate(this.activeDate),r))}_createCellForMonth(e,i){let r=this._dateAdapter.createDate(this._dateAdapter.getYear(this.activeDate),e,1),o=this._dateAdapter.format(r,this._dateFormats.display.monthYearA11yLabel),a=this.dateClass?this.dateClass(r,"year"):void 0;return new C_(e,i.toLocaleUpperCase(),o,this._shouldEnableMonth(e),a)}_shouldEnableMonth(e){let i=this._dateAdapter.getYear(this.activeDate);if(e==null||this._isYearAndMonthAfterMaxDate(i,e)||this._isYearAndMonthBeforeMinDate(i,e))return!1;if(!this.dateFilter)return!0;let r=this._dateAdapter.createDate(i,e,1);for(let o=r;this._dateAdapter.getMonth(o)==e;o=this._dateAdapter.addCalendarDays(o,1))if(this.dateFilter(o))return!0;return!1}_isYearAndMonthAfterMaxDate(e,i){if(this.maxDate){let r=this._dateAdapter.getYear(this.maxDate),o=this._dateAdapter.getMonth(this.maxDate);return e>r||e===r&&i>o}return!1}_isYearAndMonthBeforeMinDate(e,i){if(this.minDate){let r=this._dateAdapter.getYear(this.minDate),o=this._dateAdapter.getMonth(this.minDate);return e{class t{_intl=u(dp);calendar=u(nA);_dateAdapter=u(Li,{optional:!0});_dateFormats=u(xs,{optional:!0});_periodButtonText;_periodButtonDescription;_periodButtonLabel;_prevButtonLabel;_nextButtonLabel;constructor(){u(ut).load(Qr);let e=u(ye);this._updateLabels(),this.calendar.stateChanges.subscribe(()=>{this._updateLabels(),e.markForCheck()})}get periodButtonText(){return this._periodButtonText}get periodButtonDescription(){return this._periodButtonDescription}get periodButtonLabel(){return this._periodButtonLabel}get prevButtonLabel(){return this._prevButtonLabel}get nextButtonLabel(){return this._nextButtonLabel}currentPeriodClicked(){this.calendar.currentView=this.calendar.currentView=="month"?"multi-year":"month"}previousClicked(){this.previousEnabled()&&(this.calendar.activeDate=this.calendar.currentView=="month"?this._dateAdapter.addCalendarMonths(this.calendar.activeDate,-1):this._dateAdapter.addCalendarYears(this.calendar.activeDate,this.calendar.currentView=="year"?-1:-Io))}nextClicked(){this.nextEnabled()&&(this.calendar.activeDate=this.calendar.currentView=="month"?this._dateAdapter.addCalendarMonths(this.calendar.activeDate,1):this._dateAdapter.addCalendarYears(this.calendar.activeDate,this.calendar.currentView=="year"?1:Io))}previousEnabled(){return this.calendar.minDate?!this.calendar.minDate||!this._isSameView(this.calendar.activeDate,this.calendar.minDate):!0}nextEnabled(){return!this.calendar.maxDate||!this._isSameView(this.calendar.activeDate,this.calendar.maxDate)}_updateLabels(){let e=this.calendar,i=this._intl,r=this._dateAdapter;e.currentView==="month"?(this._periodButtonText=r.format(e.activeDate,this._dateFormats.display.monthYearLabel).toLocaleUpperCase(),this._periodButtonDescription=r.format(e.activeDate,this._dateFormats.display.monthYearLabel).toLocaleUpperCase(),this._periodButtonLabel=i.switchToMultiYearViewLabel,this._prevButtonLabel=i.prevMonthLabel,this._nextButtonLabel=i.nextMonthLabel):e.currentView==="year"?(this._periodButtonText=r.getYearName(e.activeDate),this._periodButtonDescription=r.getYearName(e.activeDate),this._periodButtonLabel=i.switchToMonthViewLabel,this._prevButtonLabel=i.prevYearLabel,this._nextButtonLabel=i.nextYearLabel):(this._periodButtonText=i.formatYearRange(...this._formatMinAndMaxYearLabels()),this._periodButtonDescription=i.formatYearRangeLabel(...this._formatMinAndMaxYearLabels()),this._periodButtonLabel=i.switchToMonthViewLabel,this._prevButtonLabel=i.prevMultiYearLabel,this._nextButtonLabel=i.nextMultiYearLabel)}_isSameView(e,i){return this.calendar.currentView=="month"?this._dateAdapter.getYear(e)==this._dateAdapter.getYear(i)&&this._dateAdapter.getMonth(e)==this._dateAdapter.getMonth(i):this.calendar.currentView=="year"?this._dateAdapter.getYear(e)==this._dateAdapter.getYear(i):RU(this._dateAdapter,e,i,this.calendar.minDate,this.calendar.maxDate)}_formatMinAndMaxYearLabels(){let i=this._dateAdapter.getYear(this.calendar.activeDate)-x_(this._dateAdapter,this.calendar.activeDate,this.calendar.minDate,this.calendar.maxDate),r=i+Io-1,o=this._dateAdapter.getYearName(this._dateAdapter.createDate(i,0,1)),a=this._dateAdapter.getYearName(this._dateAdapter.createDate(r,0,1));return[o,a]}_periodButtonLabelId=u(Ze).getId("mat-calendar-period-label-");static \u0275fac=function(i){return new(i||t)};static \u0275cmp=E({type:t,selectors:[["mat-calendar-header"]],exportAs:["matCalendarHeader"],ngContentSelectors:Nbe,decls:17,vars:13,consts:[[1,"mat-calendar-header"],[1,"mat-calendar-controls"],["aria-live","polite",1,"cdk-visually-hidden",3,"id"],["matButton","","type","button",1,"mat-calendar-period-button",3,"click"],["aria-hidden","true"],["viewBox","0 0 10 5","focusable","false","aria-hidden","true",1,"mat-calendar-arrow"],["points","0,0 5,5 10,0"],[1,"mat-calendar-spacer"],["matIconButton","","type","button","disabledInteractive","",1,"mat-calendar-previous-button",3,"click","disabled","matTooltip"],["viewBox","0 0 24 24","focusable","false","aria-hidden","true"],["d","M15.41 7.41L14 6l-6 6 6 6 1.41-1.41L10.83 12z"],["matIconButton","","type","button","disabledInteractive","",1,"mat-calendar-next-button",3,"click","disabled","matTooltip"],["d","M10 6L8.59 7.41 13.17 12l-4.58 4.59L10 18l6-6z"]],template:function(i,r){i&1&&(Me(),h(0,"div",0)(1,"div",1)(2,"span",2),_(3),p(),h(4,"button",3),S("click",function(){return r.currentPeriodClicked()}),h(5,"span",4),_(6),p(),Gt(),h(7,"svg",5),k(8,"polygon",6),p()(),jo(),k(9,"div",7),oe(10),h(11,"button",8),S("click",function(){return r.previousClicked()}),Gt(),h(12,"svg",9),k(13,"path",10),p()(),jo(),h(14,"button",11),S("click",function(){return r.nextClicked()}),Gt(),h(15,"svg",9),k(16,"path",12),p()()()()),i&2&&(g(2),y("id",r._periodButtonLabelId),g(),H(r.periodButtonDescription),g(),X("aria-label",r.periodButtonLabel)("aria-describedby",r._periodButtonLabelId),g(2),H(r.periodButtonText),g(),G("mat-calendar-invert",r.calendar.currentView!=="month"),g(4),y("disabled",!r.previousEnabled())("matTooltip",r.prevButtonLabel),X("aria-label",r.prevButtonLabel),g(3),y("disabled",!r.nextEnabled())("matTooltip",r.nextButtonLabel),X("aria-label",r.nextButtonLabel))},dependencies:[kt,ti,Eo],encapsulation:2,changeDetection:0})}return t})(),nA=(()=>{class t{_dateAdapter=u(Li,{optional:!0});_dateFormats=u(xs,{optional:!0});_changeDetectorRef=u(ye);_elementRef=u(q);headerComponent;_calendarHeaderPortal;_intlChanges;_moveFocusOnNextTick=!1;get startAt(){return this._startAt}set startAt(e){this._startAt=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e))}_startAt;startView="month";get selected(){return this._selected}set selected(e){e instanceof ua?this._selected=e:this._selected=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e))}_selected;get minDate(){return this._minDate}set minDate(e){this._minDate=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e))}_minDate;get maxDate(){return this._maxDate}set maxDate(e){this._maxDate=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e))}_maxDate;dateFilter;dateClass;comparisonStart;comparisonEnd;startDateAccessibleName;endDateAccessibleName;selectedChange=new U;yearSelected=new U;monthSelected=new U;viewChanged=new U(!0);_userSelection=new U;_userDragDrop=new U;monthView;yearView;multiYearView;get activeDate(){return this._clampedActiveDate}set activeDate(e){this._clampedActiveDate=this._dateAdapter.clampDate(e,this.minDate,this.maxDate),this.stateChanges.next(),this._changeDetectorRef.markForCheck()}_clampedActiveDate;get currentView(){return this._currentView}set currentView(e){let i=this._currentView!==e?e:null;this._currentView=e,this._moveFocusOnNextTick=!0,this._changeDetectorRef.markForCheck(),i&&(this.stateChanges.next(),this.viewChanged.emit(i))}_currentView;_activeDrag=null;stateChanges=new z;constructor(){this._intlChanges=u(dp).changes.subscribe(()=>{this._changeDetectorRef.markForCheck(),this.stateChanges.next()})}ngAfterContentInit(){this._calendarHeaderPortal=new Zr(this.headerComponent||FU),this.activeDate=this.startAt||this._dateAdapter.today(),this._currentView=this.startView}ngAfterViewChecked(){this._moveFocusOnNextTick&&(this._moveFocusOnNextTick=!1,this.focusActiveCell())}ngOnDestroy(){this._intlChanges.unsubscribe(),this.stateChanges.complete()}ngOnChanges(e){let i=e.minDate&&!this._dateAdapter.sameDate(e.minDate.previousValue,e.minDate.currentValue)?e.minDate:void 0,r=e.maxDate&&!this._dateAdapter.sameDate(e.maxDate.previousValue,e.maxDate.currentValue)?e.maxDate:void 0,o=i||r||e.dateFilter;if(o&&!o.firstChange){let a=this._getCurrentViewComponent();a&&(this._elementRef.nativeElement.contains(_o())&&(this._moveFocusOnNextTick=!0),this._changeDetectorRef.detectChanges(),a._init())}this.stateChanges.next()}focusActiveCell(){this._getCurrentViewComponent()._focusActiveCell(!1)}updateTodaysDate(){this._getCurrentViewComponent()._init()}_dateSelected(e){let i=e.value;(this.selected instanceof ua||i&&!this._dateAdapter.sameDate(i,this.selected))&&this.selectedChange.emit(i),this._userSelection.emit(e)}_yearSelectedInMultiYearView(e){this.yearSelected.emit(e)}_monthSelectedInYearView(e){this.monthSelected.emit(e)}_goToDateInView(e,i){this.activeDate=e,this.currentView=i}_dragStarted(e){this._activeDrag=e}_dragEnded(e){this._activeDrag&&(e.value&&this._userDragDrop.emit(e),this._activeDrag=null)}_getCurrentViewComponent(){return this.monthView||this.yearView||this.multiYearView}static \u0275fac=function(i){return new(i||t)};static \u0275cmp=E({type:t,selectors:[["mat-calendar"]],viewQuery:function(i,r){if(i&1&&(ie(MU,5),ie(SU,5),ie(kU,5)),i&2){let o;B(o=j())&&(r.monthView=o.first),B(o=j())&&(r.yearView=o.first),B(o=j())&&(r.multiYearView=o.first)}},hostAttrs:[1,"mat-calendar"],inputs:{headerComponent:"headerComponent",startAt:"startAt",startView:"startView",selected:"selected",minDate:"minDate",maxDate:"maxDate",dateFilter:"dateFilter",dateClass:"dateClass",comparisonStart:"comparisonStart",comparisonEnd:"comparisonEnd",startDateAccessibleName:"startDateAccessibleName",endDateAccessibleName:"endDateAccessibleName"},outputs:{selectedChange:"selectedChange",yearSelected:"yearSelected",monthSelected:"monthSelected",viewChanged:"viewChanged",_userSelection:"_userSelection",_userDragDrop:"_userDragDrop"},exportAs:["matCalendar"],features:[Ce([AU]),Ae],decls:5,vars:2,consts:[[3,"cdkPortalOutlet"],["cdkMonitorSubtreeFocus","","tabindex","-1",1,"mat-calendar-content"],[3,"activeDate","selected","dateFilter","maxDate","minDate","dateClass","comparisonStart","comparisonEnd","startDateAccessibleName","endDateAccessibleName","activeDrag"],[3,"activeDate","selected","dateFilter","maxDate","minDate","dateClass"],[3,"activeDateChange","_userSelection","dragStarted","dragEnded","activeDate","selected","dateFilter","maxDate","minDate","dateClass","comparisonStart","comparisonEnd","startDateAccessibleName","endDateAccessibleName","activeDrag"],[3,"activeDateChange","monthSelected","selectedChange","activeDate","selected","dateFilter","maxDate","minDate","dateClass"],[3,"activeDateChange","yearSelected","selectedChange","activeDate","selected","dateFilter","maxDate","minDate","dateClass"]],template:function(i,r){if(i&1&&(R(0,Lbe,0,0,"ng-template",0),h(1,"div",1),N(2,Vbe,1,11,"mat-month-view",2)(3,Bbe,1,6,"mat-year-view",3)(4,jbe,1,6,"mat-multi-year-view",3),p()),i&2){let o;y("cdkPortalOutlet",r._calendarHeaderPortal),g(2),L((o=r.currentView)==="month"?2:o==="year"?3:o==="multi-year"?4:-1)}},dependencies:[yr,$f,MU,SU,kU],styles:[`.mat-calendar{display:block;line-height:normal;font-family:var(--mat-datepicker-calendar-text-font, var(--mat-sys-body-medium-font));font-size:var(--mat-datepicker-calendar-text-size, var(--mat-sys-body-medium-size))}.mat-calendar-header{padding:8px 8px 0 8px}.mat-calendar-content{padding:0 8px 8px 8px;outline:none}.mat-calendar-controls{display:flex;align-items:center;margin:5% calc(4.7142857143% - 16px)}.mat-calendar-spacer{flex:1 1 auto}.mat-calendar-period-button{min-width:0;margin:0 8px;font-size:var(--mat-datepicker-calendar-period-button-text-size, var(--mat-sys-title-small-size));font-weight:var(--mat-datepicker-calendar-period-button-text-weight, var(--mat-sys-title-small-weight));--mat-button-text-label-text-color: var(--mat-datepicker-calendar-period-button-text-color, var(--mat-sys-on-surface-variant))}.mat-calendar-arrow{display:inline-block;width:10px;height:5px;margin:0 0 0 5px;vertical-align:middle;fill:var(--mat-datepicker-calendar-period-button-icon-color, var(--mat-sys-on-surface-variant))}.mat-calendar-arrow.mat-calendar-invert{transform:rotate(180deg)}[dir=rtl] .mat-calendar-arrow{margin:0 5px 0 0}@media(forced-colors: active){.mat-calendar-arrow{fill:CanvasText}}.mat-datepicker-content .mat-calendar-previous-button:not(.mat-mdc-button-disabled),.mat-datepicker-content .mat-calendar-next-button:not(.mat-mdc-button-disabled){color:var(--mat-datepicker-calendar-navigation-button-icon-color, var(--mat-sys-on-surface-variant))}[dir=rtl] .mat-calendar-previous-button,[dir=rtl] .mat-calendar-next-button{transform:rotate(180deg)}.mat-calendar-table{border-spacing:0;border-collapse:collapse;width:100%}.mat-calendar-table-header th{text-align:center;padding:0 0 8px 0;color:var(--mat-datepicker-calendar-header-text-color, var(--mat-sys-on-surface-variant));font-size:var(--mat-datepicker-calendar-header-text-size, var(--mat-sys-title-small-size));font-weight:var(--mat-datepicker-calendar-header-text-weight, var(--mat-sys-title-small-weight))}.mat-calendar-table-header-divider{position:relative;height:1px}.mat-calendar-table-header-divider::after{content:"";position:absolute;top:0;left:-8px;right:-8px;height:1px;background:var(--mat-datepicker-calendar-header-divider-color, transparent)}.mat-calendar-body-cell-content::before{margin:calc(calc(var(--mat-focus-indicator-border-width, 3px) + 3px)*-1)}.mat-calendar-body-cell:focus .mat-focus-indicator::before{content:""} +`],encapsulation:2,changeDetection:0})}return t})(),NU=new T("mat-datepicker-scroll-strategy",{providedIn:"root",factory:()=>{let t=u(de);return()=>wn(t)}});function Xbe(t){let n=u(de);return()=>wn(n)}var Jbe={provide:NU,deps:[],useFactory:Xbe},LU=(()=>{class t{_elementRef=u(q);_animationsDisabled=Ye();_changeDetectorRef=u(ye);_globalModel=u(w_);_dateAdapter=u(Li);_ngZone=u(ae);_rangeSelectionStrategy=u(OU,{optional:!0});_stateChanges;_model;_eventCleanups;_animationFallback;_calendar;color;datepicker;comparisonStart;comparisonEnd;startDateAccessibleName;endDateAccessibleName;_isAbove;_animationDone=new z;_isAnimating=!1;_closeButtonText;_closeButtonFocused;_actionsPortal=null;_dialogLabelId;constructor(){if(u(ut).load(Qr),this._closeButtonText=u(dp).closeCalendarLabel,!this._animationsDisabled){let e=this._elementRef.nativeElement,i=u(je);this._eventCleanups=this._ngZone.runOutsideAngular(()=>[i.listen(e,"animationstart",this._handleAnimationEvent),i.listen(e,"animationend",this._handleAnimationEvent),i.listen(e,"animationcancel",this._handleAnimationEvent)])}}ngAfterViewInit(){this._stateChanges=this.datepicker.stateChanges.subscribe(()=>{this._changeDetectorRef.markForCheck()}),this._calendar.focusActiveCell()}ngOnDestroy(){clearTimeout(this._animationFallback),this._eventCleanups?.forEach(e=>e()),this._stateChanges?.unsubscribe(),this._animationDone.complete()}_handleUserSelection(e){let i=this._model.selection,r=e.value,o=i instanceof ua;if(o&&this._rangeSelectionStrategy){let a=this._rangeSelectionStrategy.selectionFinished(r,i,e.event);this._model.updateSelection(a,this)}else r&&(o||!this._dateAdapter.sameDate(r,i))&&this._model.add(r);(!this._model||this._model.isComplete())&&!this._actionsPortal&&this.datepicker.close()}_handleUserDragDrop(e){this._model.updateSelection(e.value,this)}_startExitAnimation(){this._elementRef.nativeElement.classList.add("mat-datepicker-content-exit"),this._animationsDisabled?this._animationDone.next():(clearTimeout(this._animationFallback),this._animationFallback=setTimeout(()=>{this._isAnimating||this._animationDone.next()},200))}_handleAnimationEvent=e=>{let i=this._elementRef.nativeElement;e.target!==i||!e.animationName.startsWith("_mat-datepicker-content")||(clearTimeout(this._animationFallback),this._isAnimating=e.type==="animationstart",i.classList.toggle("mat-datepicker-content-animating",this._isAnimating),this._isAnimating||this._animationDone.next())};_getSelected(){return this._model.selection}_applyPendingSelection(){this._model!==this._globalModel&&this._globalModel.updateSelection(this._model.selection,this)}_assignActions(e,i){this._model=e?this._globalModel.clone():this._globalModel,this._actionsPortal=e,i&&this._changeDetectorRef.detectChanges()}static \u0275fac=function(i){return new(i||t)};static \u0275cmp=E({type:t,selectors:[["mat-datepicker-content"]],viewQuery:function(i,r){if(i&1&&ie(nA,5),i&2){let o;B(o=j())&&(r._calendar=o.first)}},hostAttrs:[1,"mat-datepicker-content"],hostVars:6,hostBindings:function(i,r){i&2&&(it(r.color?"mat-"+r.color:""),G("mat-datepicker-content-touch",r.datepicker.touchUi)("mat-datepicker-content-animations-enabled",!r._animationsDisabled))},inputs:{color:"color"},exportAs:["matDatepickerContent"],decls:5,vars:26,consts:[["cdkTrapFocus","","role","dialog",1,"mat-datepicker-content-container"],[3,"yearSelected","monthSelected","viewChanged","_userSelection","_userDragDrop","id","startAt","startView","minDate","maxDate","dateFilter","headerComponent","selected","dateClass","comparisonStart","comparisonEnd","startDateAccessibleName","endDateAccessibleName"],[3,"cdkPortalOutlet"],["type","button","matButton","elevated",1,"mat-datepicker-close-button",3,"focus","blur","click","color"]],template:function(i,r){i&1&&(h(0,"div",0)(1,"mat-calendar",1),S("yearSelected",function(a){return r.datepicker._selectYear(a)})("monthSelected",function(a){return r.datepicker._selectMonth(a)})("viewChanged",function(a){return r.datepicker._viewChanged(a)})("_userSelection",function(a){return r._handleUserSelection(a)})("_userDragDrop",function(a){return r._handleUserDragDrop(a)}),p(),R(2,Hbe,0,0,"ng-template",2),h(3,"button",3),S("focus",function(){return r._closeButtonFocused=!0})("blur",function(){return r._closeButtonFocused=!1})("click",function(){return r.datepicker.close()}),_(4),p()()),i&2&&(G("mat-datepicker-content-container-with-custom-header",r.datepicker.calendarHeaderComponent)("mat-datepicker-content-container-with-actions",r._actionsPortal),X("aria-modal",!0)("aria-labelledby",r._dialogLabelId??void 0),g(),it(r.datepicker.panelClass),y("id",r.datepicker.id)("startAt",r.datepicker.startAt)("startView",r.datepicker.startView)("minDate",r.datepicker._getMinDate())("maxDate",r.datepicker._getMaxDate())("dateFilter",r.datepicker._getDateFilter())("headerComponent",r.datepicker.calendarHeaderComponent)("selected",r._getSelected())("dateClass",r.datepicker.dateClass)("comparisonStart",r.comparisonStart)("comparisonEnd",r.comparisonEnd)("startDateAccessibleName",r.startDateAccessibleName)("endDateAccessibleName",r.endDateAccessibleName),g(),y("cdkPortalOutlet",r._actionsPortal),g(),G("cdk-visually-hidden",!r._closeButtonFocused),y("color",r.color||"primary"),g(),H(r._closeButtonText))},dependencies:[vk,nA,yr,kt],styles:[`@keyframes _mat-datepicker-content-dropdown-enter{from{opacity:0;transform:scaleY(0.8)}to{opacity:1;transform:none}}@keyframes _mat-datepicker-content-dialog-enter{from{opacity:0;transform:scale(0.8)}to{opacity:1;transform:none}}@keyframes _mat-datepicker-content-exit{from{opacity:1}to{opacity:0}}.mat-datepicker-content{display:block;background-color:var(--mat-datepicker-calendar-container-background-color, var(--mat-sys-surface-container-high));color:var(--mat-datepicker-calendar-container-text-color, var(--mat-sys-on-surface));box-shadow:var(--mat-datepicker-calendar-container-elevation-shadow, 0px 0px 0px 0px rgba(0, 0, 0, 0.2), 0px 0px 0px 0px rgba(0, 0, 0, 0.14), 0px 0px 0px 0px rgba(0, 0, 0, 0.12));border-radius:var(--mat-datepicker-calendar-container-shape, var(--mat-sys-corner-large))}.mat-datepicker-content.mat-datepicker-content-animations-enabled{animation:_mat-datepicker-content-dropdown-enter 120ms cubic-bezier(0, 0, 0.2, 1)}.mat-datepicker-content .mat-calendar{width:296px;height:354px}.mat-datepicker-content .mat-datepicker-content-container-with-custom-header .mat-calendar{height:auto}.mat-datepicker-content .mat-datepicker-close-button{position:absolute;top:100%;left:0;margin-top:8px}.mat-datepicker-content-animating .mat-datepicker-content .mat-datepicker-close-button{display:none}.mat-datepicker-content-container{display:flex;flex-direction:column;justify-content:space-between}.mat-datepicker-content-touch{display:block;max-height:80vh;box-shadow:var(--mat-datepicker-calendar-container-touch-elevation-shadow, 0px 0px 0px 0px rgba(0, 0, 0, 0.2), 0px 0px 0px 0px rgba(0, 0, 0, 0.14), 0px 0px 0px 0px rgba(0, 0, 0, 0.12));border-radius:var(--mat-datepicker-calendar-container-touch-shape, var(--mat-sys-corner-extra-large));position:relative;overflow:visible}.mat-datepicker-content-touch.mat-datepicker-content-animations-enabled{animation:_mat-datepicker-content-dialog-enter 150ms cubic-bezier(0, 0, 0.2, 1)}.mat-datepicker-content-touch .mat-datepicker-content-container{min-height:312px;max-height:788px;min-width:250px;max-width:750px}.mat-datepicker-content-touch .mat-calendar{width:100%;height:auto}.mat-datepicker-content-exit.mat-datepicker-content-animations-enabled{animation:_mat-datepicker-content-exit 100ms linear}@media all and (orientation: landscape){.mat-datepicker-content-touch .mat-datepicker-content-container{width:64vh;height:80vh}}@media all and (orientation: portrait){.mat-datepicker-content-touch .mat-datepicker-content-container{width:80vw;height:100vw}.mat-datepicker-content-touch .mat-datepicker-content-container-with-actions{height:115vw}} +`],encapsulation:2,changeDetection:0})}return t})(),TU=(()=>{class t{_injector=u(de);_viewContainerRef=u(nt);_dateAdapter=u(Li,{optional:!0});_dir=u(Vt,{optional:!0});_model=u(w_);_animationsDisabled=Ye();_scrollStrategy=u(NU);_inputStateChanges=ke.EMPTY;_document=u(ge);calendarHeaderComponent;get startAt(){return this._startAt||(this.datepickerInput?this.datepickerInput.getStartValue():null)}set startAt(e){this._startAt=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e))}_startAt;startView="month";get color(){return this._color||(this.datepickerInput?this.datepickerInput.getThemePalette():void 0)}set color(e){this._color=e}_color;touchUi=!1;get disabled(){return this._disabled===void 0&&this.datepickerInput?this.datepickerInput.disabled:!!this._disabled}set disabled(e){e!==this._disabled&&(this._disabled=e,this.stateChanges.next(void 0))}_disabled;xPosition="start";yPosition="below";restoreFocus=!0;yearSelected=new U;monthSelected=new U;viewChanged=new U(!0);dateClass;openedStream=new U;closedStream=new U;get panelClass(){return this._panelClass}set panelClass(e){this._panelClass=UL(e)}_panelClass;get opened(){return this._opened}set opened(e){e?this.open():this.close()}_opened=!1;id=u(Ze).getId("mat-datepicker-");_getMinDate(){return this.datepickerInput&&this.datepickerInput.min}_getMaxDate(){return this.datepickerInput&&this.datepickerInput.max}_getDateFilter(){return this.datepickerInput&&this.datepickerInput.dateFilter}_overlayRef;_componentRef;_focusedElementBeforeOpen=null;_backdropHarnessClass=`${this.id}-backdrop`;_actionsPortal;datepickerInput;stateChanges=new z;_changeDetectorRef=u(ye);constructor(){this._dateAdapter,this._model.selectionChanged.subscribe(()=>{this._changeDetectorRef.markForCheck()})}ngOnChanges(e){let i=e.xPosition||e.yPosition;if(i&&!i.firstChange&&this._overlayRef){let r=this._overlayRef.getConfig().positionStrategy;r instanceof _h&&(this._setConnectedPositions(r),this.opened&&this._overlayRef.updatePosition())}this.stateChanges.next(void 0)}ngOnDestroy(){this._destroyOverlay(),this.close(),this._inputStateChanges.unsubscribe(),this.stateChanges.complete()}select(e){this._model.add(e)}_selectYear(e){this.yearSelected.emit(e)}_selectMonth(e){this.monthSelected.emit(e)}_viewChanged(e){this.viewChanged.emit(e)}registerInput(e){return this.datepickerInput,this._inputStateChanges.unsubscribe(),this.datepickerInput=e,this._inputStateChanges=e.stateChanges.subscribe(()=>this.stateChanges.next(void 0)),this._model}registerActions(e){this._actionsPortal,this._actionsPortal=e,this._componentRef?.instance._assignActions(e,!0)}removeActions(e){e===this._actionsPortal&&(this._actionsPortal=null,this._componentRef?.instance._assignActions(null,!0))}open(){this._opened||this.disabled||this._componentRef?.instance._isAnimating||(this.datepickerInput,this._focusedElementBeforeOpen=_o(),this._openOverlay(),this._opened=!0,this.openedStream.emit())}close(){if(!this._opened||this._componentRef?.instance._isAnimating)return;let e=this.restoreFocus&&this._focusedElementBeforeOpen&&typeof this._focusedElementBeforeOpen.focus=="function",i=()=>{this._opened&&(this._opened=!1,this.closedStream.emit())};if(this._componentRef){let{instance:r,location:o}=this._componentRef;r._animationDone.pipe(lt(1)).subscribe(()=>{let a=this._document.activeElement;e&&(!a||a===this._document.activeElement||o.nativeElement.contains(a))&&this._focusedElementBeforeOpen.focus(),this._focusedElementBeforeOpen=null,this._destroyOverlay()}),r._startExitAnimation()}e?setTimeout(i):i()}_applyPendingSelection(){this._componentRef?.instance?._applyPendingSelection()}_forwardContentValues(e){e.datepicker=this,e.color=this.color,e._dialogLabelId=this.datepickerInput.getOverlayLabelId(),e._assignActions(this._actionsPortal,!1)}_openOverlay(){this._destroyOverlay();let e=this.touchUi,i=new Zr(LU,this._viewContainerRef),r=this._overlayRef=Nr(this._injector,new Fr({positionStrategy:e?this._getDialogStrategy():this._getDropdownStrategy(),hasBackdrop:!0,backdropClass:[e?"cdk-overlay-dark-backdrop":"mat-overlay-transparent-backdrop",this._backdropHarnessClass],direction:this._dir||"ltr",scrollStrategy:e?uc(this._injector):this._scrollStrategy(),panelClass:`mat-datepicker-${e?"dialog":"popup"}`,disableAnimations:this._animationsDisabled}));this._getCloseStream(r).subscribe(o=>{o&&o.preventDefault(),this.close()}),r.keydownEvents().subscribe(o=>{let a=o.keyCode;(a===38||a===40||a===37||a===39||a===33||a===34)&&o.preventDefault()}),this._componentRef=r.attach(i),this._forwardContentValues(this._componentRef.instance),e||pt(()=>{r.updatePosition()},{injector:this._injector})}_destroyOverlay(){this._overlayRef&&(this._overlayRef.dispose(),this._overlayRef=this._componentRef=null)}_getDialogStrategy(){return Ds(this._injector).centerHorizontally().centerVertically()}_getDropdownStrategy(){let e=Fa(this._injector,this.datepickerInput.getConnectedOverlayOrigin()).withTransformOriginOn(".mat-datepicker-content").withFlexibleDimensions(!1).withViewportMargin(8).withLockedPosition();return this._setConnectedPositions(e)}_setConnectedPositions(e){let i=this.xPosition==="end"?"end":"start",r=i==="start"?"end":"start",o=this.yPosition==="above"?"bottom":"top",a=o==="top"?"bottom":"top";return e.withPositions([{originX:i,originY:a,overlayX:i,overlayY:o},{originX:i,originY:o,overlayX:i,overlayY:a},{originX:r,originY:a,overlayX:r,overlayY:o},{originX:r,originY:o,overlayX:r,overlayY:a}])}_getCloseStream(e){let i=["ctrlKey","shiftKey","metaKey"];return Je(e.backdropClick(),e.detachments(),e.keydownEvents().pipe(ce(r=>r.keyCode===27&&!Ft(r)||this.datepickerInput&&Ft(r,"altKey")&&r.keyCode===38&&i.every(o=>!Ft(r,o)))))}static \u0275fac=function(i){return new(i||t)};static \u0275dir=F({type:t,inputs:{calendarHeaderComponent:"calendarHeaderComponent",startAt:"startAt",startView:"startView",color:"color",touchUi:[2,"touchUi","touchUi",V],disabled:[2,"disabled","disabled",V],xPosition:"xPosition",yPosition:"yPosition",restoreFocus:[2,"restoreFocus","restoreFocus",V],dateClass:"dateClass",panelClass:"panelClass",opened:[2,"opened","opened",V]},outputs:{yearSelected:"yearSelected",monthSelected:"monthSelected",viewChanged:"viewChanged",openedStream:"opened",closedStream:"closed"},features:[Ae]})}return t})(),VU=(()=>{class t extends TU{static \u0275fac=(()=>{let e;return function(r){return(e||(e=fe(t)))(r||t)}})();static \u0275cmp=E({type:t,selectors:[["mat-datepicker"]],exportAs:["matDatepicker"],features:[Ce([AU,{provide:TU,useExisting:t}]),le],decls:0,vars:0,template:function(i,r){},encapsulation:2,changeDetection:0})}return t})(),lp=class{target;targetElement;value;constructor(n,e){this.target=n,this.targetElement=e,this.value=this.target.value}},eve=(()=>{class t{_elementRef=u(q);_dateAdapter=u(Li,{optional:!0});_dateFormats=u(xs,{optional:!0});_isInitialized;get value(){return this._model?this._getValueFromModel(this._model.selection):this._pendingValue}set value(e){this._assignValueProgrammatically(e)}_model;get disabled(){return!!this._disabled||this._parentDisabled()}set disabled(e){let i=e,r=this._elementRef.nativeElement;this._disabled!==i&&(this._disabled=i,this.stateChanges.next(void 0)),i&&this._isInitialized&&r.blur&&r.blur()}_disabled;dateChange=new U;dateInput=new U;stateChanges=new z;_onTouched=()=>{};_validatorOnChange=()=>{};_cvaOnChange=()=>{};_valueChangesSubscription=ke.EMPTY;_localeSubscription=ke.EMPTY;_pendingValue;_parseValidator=()=>this._lastValueValid?null:{matDatepickerParse:{text:this._elementRef.nativeElement.value}};_filterValidator=e=>{let i=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e.value));return!i||this._matchesFilter(i)?null:{matDatepickerFilter:!0}};_minValidator=e=>{let i=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e.value)),r=this._getMinDate();return!r||!i||this._dateAdapter.compareDate(r,i)<=0?null:{matDatepickerMin:{min:r,actual:i}}};_maxValidator=e=>{let i=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e.value)),r=this._getMaxDate();return!r||!i||this._dateAdapter.compareDate(r,i)>=0?null:{matDatepickerMax:{max:r,actual:i}}};_getValidators(){return[this._parseValidator,this._minValidator,this._maxValidator,this._filterValidator]}_registerModel(e){this._model=e,this._valueChangesSubscription.unsubscribe(),this._pendingValue&&this._assignValue(this._pendingValue),this._valueChangesSubscription=this._model.selectionChanged.subscribe(i=>{if(this._shouldHandleChangeEvent(i)){let r=this._getValueFromModel(i.selection);this._lastValueValid=this._isValidValue(r),this._cvaOnChange(r),this._onTouched(),this._formatValue(r),this.dateInput.emit(new lp(this,this._elementRef.nativeElement)),this.dateChange.emit(new lp(this,this._elementRef.nativeElement))}})}_lastValueValid=!1;constructor(){this._localeSubscription=this._dateAdapter.localeChanges.subscribe(()=>{this._assignValueProgrammatically(this.value)})}ngAfterViewInit(){this._isInitialized=!0}ngOnChanges(e){tve(e,this._dateAdapter)&&this.stateChanges.next(void 0)}ngOnDestroy(){this._valueChangesSubscription.unsubscribe(),this._localeSubscription.unsubscribe(),this.stateChanges.complete()}registerOnValidatorChange(e){this._validatorOnChange=e}validate(e){return this._validator?this._validator(e):null}writeValue(e){this._assignValueProgrammatically(e)}registerOnChange(e){this._cvaOnChange=e}registerOnTouched(e){this._onTouched=e}setDisabledState(e){this.disabled=e}_onKeydown(e){let i=["ctrlKey","shiftKey","metaKey"];Ft(e,"altKey")&&e.keyCode===40&&i.every(o=>!Ft(e,o))&&!this._elementRef.nativeElement.readOnly&&(this._openPopup(),e.preventDefault())}_onInput(e){let i=e.target.value,r=this._lastValueValid,o=this._dateAdapter.parse(i,this._dateFormats.parse.dateInput);this._lastValueValid=this._isValidValue(o),o=this._dateAdapter.getValidDateOrNull(o);let a=!this._dateAdapter.sameDate(o,this.value);!o||a?this._cvaOnChange(o):(i&&!this.value&&this._cvaOnChange(o),r!==this._lastValueValid&&this._validatorOnChange()),a&&(this._assignValue(o),this.dateInput.emit(new lp(this,this._elementRef.nativeElement)))}_onChange(){this.dateChange.emit(new lp(this,this._elementRef.nativeElement))}_onBlur(){this.value&&this._formatValue(this.value),this._onTouched()}_formatValue(e){this._elementRef.nativeElement.value=e!=null?this._dateAdapter.format(e,this._dateFormats.display.dateInput):""}_assignValue(e){this._model?(this._assignValueToModel(e),this._pendingValue=null):this._pendingValue=e}_isValidValue(e){return!e||this._dateAdapter.isValid(e)}_parentDisabled(){return!1}_assignValueProgrammatically(e){e=this._dateAdapter.deserialize(e),this._lastValueValid=this._isValidValue(e),e=this._dateAdapter.getValidDateOrNull(e),this._assignValue(e),this._formatValue(e)}_matchesFilter(e){let i=this._getDateFilter();return!i||i(e)}static \u0275fac=function(i){return new(i||t)};static \u0275dir=F({type:t,inputs:{value:"value",disabled:[2,"disabled","disabled",V]},outputs:{dateChange:"dateChange",dateInput:"dateInput"},features:[Ae]})}return t})();function tve(t,n){let e=Object.keys(t);for(let i of e){let{previousValue:r,currentValue:o}=t[i];if(n.isDateInstance(r)&&n.isDateInstance(o)){if(!n.sameDate(r,o))return!0}else return!0}return!1}var ive={provide:tr,useExisting:Kt(()=>Cw),multi:!0},nve={provide:ea,useExisting:Kt(()=>Cw),multi:!0},Cw=(()=>{class t extends eve{_formField=u(Xo,{optional:!0});_closedSubscription=ke.EMPTY;_openedSubscription=ke.EMPTY;set matDatepicker(e){e&&(this._datepicker=e,this._ariaOwns.set(e.opened?e.id:null),this._closedSubscription=e.closedStream.subscribe(()=>{this._onTouched(),this._ariaOwns.set(null)}),this._openedSubscription=e.openedStream.subscribe(()=>{this._ariaOwns.set(e.id)}),this._registerModel(e.registerInput(this)))}_datepicker;_ariaOwns=he(null);get min(){return this._min}set min(e){let i=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e));this._dateAdapter.sameDate(i,this._min)||(this._min=i,this._validatorOnChange())}_min;get max(){return this._max}set max(e){let i=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e));this._dateAdapter.sameDate(i,this._max)||(this._max=i,this._validatorOnChange())}_max;get dateFilter(){return this._dateFilter}set dateFilter(e){let i=this._matchesFilter(this.value);this._dateFilter=e,this._matchesFilter(this.value)!==i&&this._validatorOnChange()}_dateFilter;_validator;constructor(){super(),this._validator=Le.compose(super._getValidators())}getConnectedOverlayOrigin(){return this._formField?this._formField.getConnectedOverlayOrigin():this._elementRef}getOverlayLabelId(){return this._formField?this._formField.getLabelId():this._elementRef.nativeElement.getAttribute("aria-labelledby")}getThemePalette(){return this._formField?this._formField.color:void 0}getStartValue(){return this.value}ngOnDestroy(){super.ngOnDestroy(),this._closedSubscription.unsubscribe(),this._openedSubscription.unsubscribe()}_openPopup(){this._datepicker&&this._datepicker.open()}_getValueFromModel(e){return e}_assignValueToModel(e){this._model&&this._model.updateSelection(e,this)}_getMinDate(){return this._min}_getMaxDate(){return this._max}_getDateFilter(){return this._dateFilter}_shouldHandleChangeEvent(e){return e.source!==this}static \u0275fac=function(i){return new(i||t)};static \u0275dir=F({type:t,selectors:[["input","matDatepicker",""]],hostAttrs:[1,"mat-datepicker-input"],hostVars:6,hostBindings:function(i,r){i&1&&S("input",function(a){return r._onInput(a)})("change",function(){return r._onChange()})("blur",function(){return r._onBlur()})("keydown",function(a){return r._onKeydown(a)}),i&2&&(si("disabled",r.disabled),X("aria-haspopup",r._datepicker?"dialog":null)("aria-owns",r._ariaOwns())("min",r.min?r._dateAdapter.toIso8601(r.min):null)("max",r.max?r._dateAdapter.toIso8601(r.max):null)("data-mat-calendar",r._datepicker?r._datepicker.id:null))},inputs:{matDatepicker:"matDatepicker",min:"min",max:"max",dateFilter:[0,"matDatepickerFilter","dateFilter"]},exportAs:["matDatepickerInput"],features:[Ce([ive,nve,{provide:wh,useExisting:t}]),le]})}return t})(),rve=(()=>{class t{static \u0275fac=function(i){return new(i||t)};static \u0275dir=F({type:t,selectors:[["","matDatepickerToggleIcon",""]]})}return t})(),rA=(()=>{class t{_intl=u(dp);_changeDetectorRef=u(ye);_stateChanges=ke.EMPTY;datepicker;tabIndex;ariaLabel;get disabled(){return this._disabled===void 0&&this.datepicker?this.datepicker.disabled:!!this._disabled}set disabled(e){this._disabled=e}_disabled;disableRipple;_customIcon;_button;constructor(){let e=u(new Ii("tabindex"),{optional:!0}),i=Number(e);this.tabIndex=i||i===0?i:null}ngOnChanges(e){e.datepicker&&this._watchStateChanges()}ngOnDestroy(){this._stateChanges.unsubscribe()}ngAfterContentInit(){this._watchStateChanges()}_open(e){this.datepicker&&!this.disabled&&(this.datepicker.open(),e.stopPropagation())}_watchStateChanges(){let e=this.datepicker?this.datepicker.stateChanges:Q(),i=this.datepicker&&this.datepicker.datepickerInput?this.datepicker.datepickerInput.stateChanges:Q(),r=this.datepicker?Je(this.datepicker.openedStream,this.datepicker.closedStream):Q();this._stateChanges.unsubscribe(),this._stateChanges=Je(this._intl.changes,e,i,r).subscribe(()=>this._changeDetectorRef.markForCheck())}static \u0275fac=function(i){return new(i||t)};static \u0275cmp=E({type:t,selectors:[["mat-datepicker-toggle"]],contentQueries:function(i,r,o){if(i&1&&xe(o,rve,5),i&2){let a;B(a=j())&&(r._customIcon=a.first)}},viewQuery:function(i,r){if(i&1&&ie(zbe,5),i&2){let o;B(o=j())&&(r._button=o.first)}},hostAttrs:[1,"mat-datepicker-toggle"],hostVars:8,hostBindings:function(i,r){i&1&&S("click",function(a){return r._open(a)}),i&2&&(X("tabindex",null)("data-mat-calendar",r.datepicker?r.datepicker.id:null),G("mat-datepicker-toggle-active",r.datepicker&&r.datepicker.opened)("mat-accent",r.datepicker&&r.datepicker.color==="accent")("mat-warn",r.datepicker&&r.datepicker.color==="warn"))},inputs:{datepicker:[0,"for","datepicker"],tabIndex:"tabIndex",ariaLabel:[0,"aria-label","ariaLabel"],disabled:[2,"disabled","disabled",V],disableRipple:"disableRipple"},exportAs:["matDatepickerToggle"],features:[Ae],ngContentSelectors:$be,decls:4,vars:7,consts:[["button",""],["matIconButton","","type","button",3,"tabIndex","disabled","disableRipple"],["viewBox","0 0 24 24","width","24px","height","24px","fill","currentColor","focusable","false","aria-hidden","true",1,"mat-datepicker-toggle-default-icon"],["d","M19 3h-1V1h-2v2H8V1H6v2H5c-1.11 0-1.99.9-1.99 2L3 19c0 1.1.89 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm0 16H5V8h14v11zM7 10h5v5H7z"]],template:function(i,r){i&1&&(Me(Ube),h(0,"button",1,0),N(2,Wbe,2,0,":svg:svg",2),oe(3),p()),i&2&&(y("tabIndex",r.disabled?-1:r.tabIndex)("disabled",r.disabled)("disableRipple",r.disableRipple),X("aria-haspopup",r.datepicker?"dialog":null)("aria-label",r.ariaLabel||r._intl.openCalendarLabel)("aria-expanded",r.datepicker?r.datepicker.opened:null),g(2),L(r._customIcon?-1:2))},dependencies:[ti],styles:[`.mat-datepicker-toggle{pointer-events:auto;color:var(--mat-datepicker-toggle-icon-color, var(--mat-sys-on-surface-variant))}.mat-datepicker-toggle button{color:inherit}.mat-datepicker-toggle-active{color:var(--mat-datepicker-toggle-active-state-icon-color, var(--mat-sys-primary))}@media(forced-colors: active){.mat-datepicker-toggle-default-icon{color:CanvasText}} +`],encapsulation:2,changeDetection:0})}return t})();var BU=(()=>{class t{static \u0275fac=function(i){return new(i||t)};static \u0275mod=ee({type:t});static \u0275inj=J({providers:[dp,Jbe],imports:[ze,er,ll,Co,we,LU,rA,FU,vr]})}return t})();function ave(t,n){t&1&&(h(0,"div",1),k(1,"mat-spinner"),p())}function sve(t,n){t&1&&(h(0,"mat-error"),_(1," Employee number is required "),p())}function lve(t,n){t&1&&(h(0,"mat-error"),_(1," First name is required "),p())}function cve(t,n){t&1&&(h(0,"mat-error"),_(1," Last name is required "),p())}function dve(t,n){t&1&&(h(0,"mat-error"),_(1," Date of birth is required "),p())}function uve(t,n){t&1&&(h(0,"mat-error"),_(1," Email is required "),p())}function mve(t,n){t&1&&(h(0,"mat-error"),_(1," Please enter a valid email "),p())}function hve(t,n){t&1&&(h(0,"mat-error"),_(1," Phone number is required "),p())}function pve(t,n){if(t&1&&(h(0,"mat-option",25),_(1),p()),t&2){let e=n.$implicit;y("value",e.value),g(),ve(" ",e.label," ")}}function fve(t,n){t&1&&(h(0,"mat-error"),_(1," Gender is required "),p())}function gve(t,n){if(t&1&&(h(0,"mat-option",25),_(1),p()),t&2){let e=n.$implicit;y("value",e.id),g(),ve(" ",e.name," ")}}function _ve(t,n){t&1&&(h(0,"mat-error"),_(1," Department is required "),p())}function bve(t,n){if(t&1&&(h(0,"mat-option",25),_(1),p()),t&2){let e=n.$implicit;y("value",e.id),g(),ve(" ",e.positionTitle," ")}}function vve(t,n){t&1&&(h(0,"mat-error"),_(1," Position is required "),p())}function yve(t,n){t&1&&(h(0,"mat-error"),_(1," Salary is required "),p())}function xve(t,n){t&1&&(h(0,"mat-error"),_(1," Salary must be greater than 0 "),p())}var oA=(()=>{let n=class n{constructor(){this.fb=u(eo),this.router=u(Re),this.route=u(wi),this.snackBar=u(di),this.employeeService=u(ap),this.positionService=u(Bc),this.departmentService=u(Vs),this.loading=!1,this.isEditMode=!1,this.positions=[],this.departments=[],this.genderOptions=[{value:Ou.Male,label:"Male"},{value:Ou.Female,label:"Female"}]}ngOnInit(){this.initForm(),this.loadDependencies(),this.checkEditMode()}initForm(){this.employeeForm=this.fb.group({employeeNumber:["",[Le.required,Le.maxLength(50)]],prefix:["",Le.maxLength(10)],firstName:["",[Le.required,Le.maxLength(100)]],middleName:["",Le.maxLength(100)],lastName:["",[Le.required,Le.maxLength(100)]],birthday:[null,Le.required],gender:[Ou.Male,Le.required],email:["",[Le.required,Le.email,Le.maxLength(255)]],phone:["",[Le.required,Le.maxLength(20)]],salary:[0,[Le.required,Le.min(0)]],positionId:["",Le.required],departmentId:["",Le.required]})}loadDependencies(){this.departmentService.getAll().subscribe({next:i=>{this.departments=i},error:i=>{console.error("Error loading departments:",i),this.showMessage("Error loading departments")}}),this.positionService.getAll().subscribe({next:i=>{this.positions=i},error:i=>{console.error("Error loading positions:",i),this.showMessage("Error loading positions")}})}checkEditMode(){this.employeeId=this.route.snapshot.paramMap.get("id")||void 0,this.isEditMode=!!this.employeeId,this.isEditMode&&this.employeeId&&this.loadEmployee(this.employeeId)}loadEmployee(i){this.loading=!0,this.employeeService.getById(i).subscribe({next:r=>{this.employeeForm.patchValue({employeeNumber:r.employeeNumber,prefix:r.prefix,firstName:r.firstName,middleName:r.middleName,lastName:r.lastName,birthday:r.birthday||r.dateOfBirth,gender:r.gender,email:r.email,phone:r.phone||r.phoneNumber,salary:r.salary,positionId:r.positionId,departmentId:r.departmentId}),this.loading=!1},error:r=>{console.error("Error loading employee:",r),this.showMessage("Error loading employee"),this.loading=!1}})}onSubmit(){if(this.employeeForm.invalid){this.employeeForm.markAllAsTouched();return}if(this.loading=!0,this.isEditMode&&this.employeeId){let i=M({id:this.employeeId},this.employeeForm.value);this.employeeService.updateEmployee(i).subscribe({next:()=>{this.showMessage("Employee updated successfully"),this.router.navigate(["/employees",this.employeeId])},error:r=>{console.error("Error updating employee:",r),this.showMessage("Error updating employee"),this.loading=!1}})}else{let i=this.employeeForm.value;this.employeeService.createEmployee(i).subscribe({next:r=>{console.log("Employee created - Response:",r),console.log("Employee ID:",r?.id),this.showMessage("Employee created successfully"),r?.id?(console.log("Navigating to detail page:","/employees/"+r.id),this.router.navigate(["/employees",r.id])):(console.warn("No employee ID returned, navigating to list page"),this.router.navigate(["/employees"])),this.loading=!1},error:r=>{console.error("Error creating employee:",r),this.showMessage("Error creating employee"),this.loading=!1}})}}onCancel(){this.router.navigate(["/employees"])}showMessage(i){this.snackBar.open(i,"Close",{duration:3e3,horizontalPosition:"end",verticalPosition:"top"})}getFormTitle(){return this.isEditMode?"Edit Employee":"Create Employee"}};n.\u0275fac=function(r){return new(r||n)},n.\u0275cmp=E({type:n,selectors:[["app-employee-form"]],decls:94,vars:22,consts:[["dobPicker",""],[1,"loading-overlay"],[3,"ngSubmit","formGroup"],[1,"form-section"],[1,"form-row"],["appearance","outline"],["matInput","","formControlName","employeeNumber"],[4,"ngIf"],["matInput","","formControlName","prefix","placeholder","Mr., Mrs., Dr."],["matInput","","formControlName","firstName"],["matInput","","formControlName","middleName"],["matInput","","formControlName","lastName"],["matInput","","formControlName","birthday",3,"matDatepicker"],["matIconSuffix","",3,"for"],["matInput","","type","email","formControlName","email"],["matInput","","formControlName","phone"],["formControlName","gender"],[3,"value",4,"ngFor","ngForOf"],["formControlName","departmentId"],["formControlName","positionId"],["matInput","","type","number","formControlName","salary"],["matTextPrefix",""],[1,"form-actions"],["type","button","mat-stroked-button","",3,"click"],["type","submit","mat-raised-button","","color","primary",3,"disabled"],[3,"value"]],template:function(r,o){if(r&1){let a=Y();k(0,"page-header"),h(1,"mat-card")(2,"mat-card-header")(3,"mat-card-title"),_(4),p()(),h(5,"mat-card-content"),N(6,ave,2,0,"div",1),h(7,"form",2),S("ngSubmit",function(){return I(a),A(o.onSubmit())}),h(8,"div",3)(9,"h3"),_(10,"Personal Information"),p(),h(11,"div",4)(12,"mat-form-field",5)(13,"mat-label"),_(14,"Employee Number"),p(),k(15,"input",6),R(16,sve,2,0,"mat-error",7),p(),h(17,"mat-form-field",5)(18,"mat-label"),_(19,"Prefix"),p(),k(20,"input",8),p()(),h(21,"div",4)(22,"mat-form-field",5)(23,"mat-label"),_(24,"First Name"),p(),k(25,"input",9),R(26,lve,2,0,"mat-error",7),p(),h(27,"mat-form-field",5)(28,"mat-label"),_(29,"Middle Name"),p(),k(30,"input",10),p()(),h(31,"div",4)(32,"mat-form-field",5)(33,"mat-label"),_(34,"Last Name"),p(),k(35,"input",11),R(36,cve,2,0,"mat-error",7),p(),h(37,"mat-form-field",5)(38,"mat-label"),_(39,"Date of Birth"),p(),k(40,"input",12)(41,"mat-datepicker-toggle",13)(42,"mat-datepicker",null,0),R(44,dve,2,0,"mat-error",7),p()(),h(45,"div",4)(46,"mat-form-field",5)(47,"mat-label"),_(48,"Email"),p(),k(49,"input",14),R(50,uve,2,0,"mat-error",7)(51,mve,2,0,"mat-error",7),p(),h(52,"mat-form-field",5)(53,"mat-label"),_(54,"Phone Number"),p(),k(55,"input",15),R(56,hve,2,0,"mat-error",7),p()(),h(57,"div",4)(58,"mat-form-field",5)(59,"mat-label"),_(60,"Gender"),p(),h(61,"mat-select",16),R(62,pve,2,2,"mat-option",17),p(),R(63,fve,2,0,"mat-error",7),p()()(),h(64,"div",3)(65,"h3"),_(66,"Employment Information"),p(),h(67,"div",4)(68,"mat-form-field",5)(69,"mat-label"),_(70,"Department"),p(),h(71,"mat-select",18),R(72,gve,2,2,"mat-option",17),p(),R(73,_ve,2,0,"mat-error",7),p(),h(74,"mat-form-field",5)(75,"mat-label"),_(76,"Position"),p(),h(77,"mat-select",19),R(78,bve,2,2,"mat-option",17),p(),R(79,vve,2,0,"mat-error",7),p()(),h(80,"div",4)(81,"mat-form-field",5)(82,"mat-label"),_(83,"Salary"),p(),k(84,"input",20),h(85,"span",21),_(86,"$\xA0"),p(),R(87,yve,2,0,"mat-error",7)(88,xve,2,0,"mat-error",7),p()()(),h(89,"div",22)(90,"button",23),S("click",function(){return I(a),A(o.onCancel())}),_(91," Cancel "),p(),h(92,"button",24),_(93),p()()()()()}if(r&2){let a,s,l,c,d,m,f,b,v,w,x,D,P=Se(43);g(4),H(o.getFormTitle()),g(2),L(o.loading?6:-1),g(),y("formGroup",o.employeeForm),g(9),y("ngIf",(a=o.employeeForm.get("employeeNumber"))==null?null:a.hasError("required")),g(10),y("ngIf",(s=o.employeeForm.get("firstName"))==null?null:s.hasError("required")),g(10),y("ngIf",(l=o.employeeForm.get("lastName"))==null?null:l.hasError("required")),g(4),y("matDatepicker",P),g(),y("for",P),g(3),y("ngIf",(c=o.employeeForm.get("birthday"))==null?null:c.hasError("required")),g(6),y("ngIf",(d=o.employeeForm.get("email"))==null?null:d.hasError("required")),g(),y("ngIf",(m=o.employeeForm.get("email"))==null?null:m.hasError("email")),g(5),y("ngIf",(f=o.employeeForm.get("phone"))==null?null:f.hasError("required")),g(6),y("ngForOf",o.genderOptions),g(),y("ngIf",(b=o.employeeForm.get("gender"))==null?null:b.hasError("required")),g(9),y("ngForOf",o.departments),g(),y("ngIf",(v=o.employeeForm.get("departmentId"))==null?null:v.hasError("required")),g(5),y("ngForOf",o.positions),g(),y("ngIf",(w=o.employeeForm.get("positionId"))==null?null:w.hasError("required")),g(8),y("ngIf",(x=o.employeeForm.get("salary"))==null?null:x.hasError("required")),g(),y("ngIf",(D=o.employeeForm.get("salary"))==null?null:D.hasError("min")),g(4),y("disabled",o.loading),g(),ve(" ",o.isEditMode?"Update":"Create"," ")}},dependencies:[gt,qr,li,zn,Jr,Qi,cu,ei,Xr,Ki,Lr,ze,kt,$t,zt,Ut,Jt,Xt,$i,Oi,sn,xo,nu,ru,rr,hn,fc,Na,xn,BU,VU,Cw,rA,KL,Si,ki,pi,ni],styles:["mat-card[_ngcontent-%COMP%]{margin:16px;max-width:1200px}mat-card-header[_ngcontent-%COMP%]{padding:16px;border-bottom:1px solid rgba(0,0,0,.12);margin-bottom:24px}mat-card-header[_ngcontent-%COMP%] mat-card-title[_ngcontent-%COMP%]{font-size:20px;font-weight:500;margin:0}mat-card-content[_ngcontent-%COMP%]{padding:24px;position:relative}.loading-overlay[_ngcontent-%COMP%]{position:absolute;inset:0;background-color:#fffc;display:flex;align-items:center;justify-content:center;z-index:1000}form[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:24px}.form-section[_ngcontent-%COMP%] h3[_ngcontent-%COMP%]{font-size:16px;font-weight:500;margin:0 0 16px;color:#000000de}.form-row[_ngcontent-%COMP%]{display:grid;grid-template-columns:1fr 1fr;gap:16px;margin-bottom:8px}@media (max-width: 768px){.form-row[_ngcontent-%COMP%]{grid-template-columns:1fr}}mat-form-field[_ngcontent-%COMP%]{width:100%}mat-form-field.full-width[_ngcontent-%COMP%]{grid-column:1/-1}.form-actions[_ngcontent-%COMP%]{display:flex;justify-content:flex-end;gap:12px;margin-top:24px;padding-top:24px;border-top:1px solid rgba(0,0,0,.12)}.form-actions[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{min-width:120px}"]});let t=n;return t})();var jU=()=>["HRAdmin","Manager"],Cve=()=>[5,10,25,50,100],wve=()=>["HRAdmin"];function Dve(t,n){if(t&1){let e=Y();h(0,"button",14),S("click",function(){I(e);let r=C();return A(r.createDepartment())}),h(1,"mat-icon"),_(2,"add"),p(),_(3," Add Department "),p()}}function Eve(t,n){if(t&1&&(h(0,"mat-option",15),_(1),p()),t&2){let e=n.$implicit;y("value",e),g(),ve(" ",e," ")}}function Mve(t,n){t&1&&(h(0,"div",16),k(1,"mat-spinner"),p())}function kve(t,n){t&1&&(h(0,"th",25),_(1,"Name"),p())}function Sve(t,n){if(t&1&&(h(0,"td",26),_(1),p()),t&2){let e=n.$implicit;g(),H(e.name)}}function Tve(t,n){t&1&&(h(0,"th",25),_(1,"Actions"),p())}function Ive(t,n){if(t&1){let e=Y();h(0,"button",31),S("click",function(){I(e);let r=C().$implicit,o=C(2);return A(o.editDepartment(r))}),h(1,"mat-icon"),_(2,"edit"),p()()}}function Ave(t,n){if(t&1){let e=Y();h(0,"button",32),S("click",function(){I(e);let r=C().$implicit,o=C(2);return A(o.deleteDepartment(r))}),h(1,"mat-icon"),_(2,"delete"),p()()}}function Ove(t,n){if(t&1){let e=Y();h(0,"td",26)(1,"div",27)(2,"button",28),S("click",function(){let r=I(e).$implicit,o=C(2);return A(o.viewDepartment(r))}),h(3,"mat-icon"),_(4,"visibility"),p()(),R(5,Ive,3,0,"button",29)(6,Ave,3,0,"button",30),p()()}t&2&&(g(5),y("appHasRole",at(2,jU)),g(),y("appHasRole",at(3,wve)))}function Rve(t,n){t&1&&k(0,"tr",33)}function Pve(t,n){t&1&&k(0,"tr",34)}function Fve(t,n){if(t&1&&(h(0,"tr",35)(1,"td",36)(2,"div",37)(3,"mat-icon"),_(4,"info"),p(),h(5,"p"),_(6,"No departments found"),p()()()()),t&2){let e=C(2);g(),X("colspan",e.displayedColumns.length)}}function Nve(t,n){if(t&1&&(h(0,"table",17),jt(1,18),R(2,kve,2,0,"th",19)(3,Sve,2,1,"td",20),Lt(),jt(4,21),R(5,Tve,2,0,"th",19)(6,Ove,7,4,"td",20),Lt(),R(7,Rve,1,0,"tr",22)(8,Pve,1,0,"tr",23)(9,Fve,7,1,"tr",24),p()),t&2){let e=C();y("dataSource",e.departments),g(7),y("matHeaderRowDef",e.displayedColumns),g(),y("matRowDefColumns",e.displayedColumns),g(),y("ngIf",e.departments.length===0)}}var HU=(()=>{let n=class n{constructor(){this.departmentService=u(Vs),this.authService=u(Tt),this.router=u(Re),this.fb=u(eo),this.snackBar=u(di),this.dialog=u(En),this.departments=[],this.loading=!1,this.totalCount=0,this.pageSize=10,this.pageNumber=1,this.destroy$=new z,this.displayedColumns=["name","actions"]}ngOnInit(){this.initSearchForm(),this.setupAutocomplete(),this.setupAutoSubmit(),this.loadDepartments()}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete()}initSearchForm(){this.searchForm=this.fb.group({Name:[""]})}setupAutocomplete(){this.filteredNames$=this.searchForm.get("Name").valueChanges.pipe(He(""),Rt(300),Sn(),$e(i=>this.getAutocompleteOptions("Name",i)))}setupAutoSubmit(){this.searchForm.valueChanges.pipe(Rt(500),Sn((i,r)=>JSON.stringify(i)===JSON.stringify(r)),Te(this.destroy$)).subscribe(()=>{this.pageNumber=1,this.loadDepartments()})}getAutocompleteOptions(i,r){if(!r||r.length<2)return Q([]);let o={PageNumber:1,PageSize:10,[i]:r};return this.departmentService.getAllPaged(o).pipe(se(a=>a.value.map(l=>l.name).filter((l,c,d)=>l&&d.indexOf(l)===c)),fi(()=>Q([])))}loadDepartments(){this.loading=!0;let i=M({PageNumber:this.pageNumber,PageSize:this.pageSize},this.searchForm.value);Object.keys(i).forEach(r=>{(i[r]===""||i[r]===null||i[r]===void 0)&&delete i[r]}),this.departmentService.getAllPaged(i).subscribe({next:r=>{this.departments=r.value,this.totalCount=r.recordsTotal,this.loading=!1},error:r=>{console.error("Error loading departments:",r),this.loading=!1}})}onClearSearch(){this.searchForm.reset(),this.pageNumber=1,this.paginator&&(this.paginator.pageIndex=0),this.loadDepartments()}onPageChange(i){this.pageSize=i.pageSize,this.pageNumber=i.pageIndex+1,this.loadDepartments()}viewDepartment(i){this.router.navigate(["/departments",i.id])}editDepartment(i){this.router.navigate(["/departments","edit",i.id])}deleteDepartment(i){this.dialog.open(Er,{width:"400px",data:{title:"Delete Department",message:`Are you sure you want to delete "${i.name}"? This action cannot be undone.`,confirmText:"Delete",cancelText:"Cancel"}}).afterClosed().subscribe(o=>{o&&this.departmentService.delete(i.id).subscribe({next:()=>{this.showMessage(`"${i.name}" has been deleted.`),this.loadDepartments()},error:a=>{console.error("Error deleting department:",a),this.showMessage("Failed to delete department. Please try again.")}})})}createDepartment(){this.router.navigate(["/departments","create"])}canEdit(){return this.authService.isHRAdmin()||this.authService.isManager()}canDelete(){return this.authService.isHRAdmin()}canCreate(){return this.authService.isHRAdmin()||this.authService.isManager()}showMessage(i){this.snackBar.open(i,"Close",{duration:3e3,horizontalPosition:"end",verticalPosition:"top"})}};n.\u0275fac=function(r){return new(r||n)},n.\u0275cmp=E({type:n,selectors:[["app-department-list"]],viewQuery:function(r,o){if(r&1&&ie(ir,5),r&2){let a;B(a=j())&&(o.paginator=a.first)}},decls:27,vars:14,consts:[["autoName","matAutocomplete"],[1,"flex-spacer"],["mat-raised-button","","color","primary",3,"click",4,"appHasRole"],[1,"search-form",3,"formGroup"],[1,"search-row"],["appearance","outline"],["matInput","","formControlName","Name",3,"matAutocomplete"],[3,"value",4,"ngFor","ngForOf"],[1,"search-buttons"],["mat-raised-button","","color","accent","type","button",3,"click"],[1,"table-container"],["class","loading-spinner",4,"ngIf"],["mat-table","","class","department-table",3,"dataSource",4,"ngIf"],["showFirstLastButtons","",3,"page","length","pageSize","pageSizeOptions","pageIndex"],["mat-raised-button","","color","primary",3,"click"],[3,"value"],[1,"loading-spinner"],["mat-table","",1,"department-table",3,"dataSource"],["matColumnDef","name"],["mat-header-cell","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","actions"],["mat-header-row","",4,"matHeaderRowDef"],["mat-row","",4,"matRowDef","matRowDefColumns"],["class","mat-row",4,"ngIf"],["mat-header-cell",""],["mat-cell",""],[1,"action-buttons"],["mat-icon-button","","color","primary","matTooltip","View Details",3,"click"],["mat-icon-button","","color","accent","matTooltip","Edit Department",3,"click",4,"appHasRole"],["mat-icon-button","","color","warn","matTooltip","Delete Department",3,"click",4,"appHasRole"],["mat-icon-button","","color","accent","matTooltip","Edit Department",3,"click"],["mat-icon-button","","color","warn","matTooltip","Delete Department",3,"click"],["mat-header-row",""],["mat-row",""],[1,"mat-row"],[1,"mat-cell"],[1,"no-data"]],template:function(r,o){if(r&1){let a=Y();k(0,"page-header"),h(1,"mat-card")(2,"mat-card-header")(3,"mat-card-title"),_(4,"Department Directory"),p(),k(5,"div",1),R(6,Dve,4,0,"button",2),p(),h(7,"mat-card-content")(8,"form",3)(9,"div",4)(10,"mat-form-field",5)(11,"mat-label"),_(12,"Department Name"),p(),k(13,"input",6),h(14,"mat-autocomplete",null,0),R(16,Eve,2,2,"mat-option",7),me(17,"async"),p()(),h(18,"div",8)(19,"button",9),S("click",function(){return I(a),A(o.onClearSearch())}),h(20,"mat-icon"),_(21,"clear"),p(),_(22," Clear Filters "),p()()()(),h(23,"div",10),R(24,Mve,2,0,"div",11)(25,Nve,10,4,"table",12),p(),h(26,"mat-paginator",13),S("page",function(l){return I(a),A(o.onPageChange(l))}),p()()()}if(r&2){let a=Se(15);g(6),y("appHasRole",at(12,jU)),g(2),y("formGroup",o.searchForm),g(5),y("matAutocomplete",a),g(3),y("ngForOf",Oe(17,10,o.filteredNames$)),g(8),y("ngIf",o.loading),g(),y("ngIf",!o.loading),g(),y("length",o.totalCount)("pageSize",o.pageSize)("pageSizeOptions",at(13,Cve))("pageIndex",o.pageNumber-1)}},dependencies:[gt,qr,li,zn,Jr,Qi,ei,Xr,Ki,Lr,ze,kt,ti,$t,zt,Ut,Jt,Xt,ot,mt,rr,hn,Oi,sn,$i,Zc,Hc,Uc,qc,$c,zc,Yc,Wc,Gc,Qc,Kc,_c,ir,Si,ki,Br,Eo,vw,bw,xn,y_,pi,Mn,ni,Un,rn],styles:["mat-card[_ngcontent-%COMP%]{margin:16px}mat-card-header[_ngcontent-%COMP%]{display:flex;align-items:center;margin-bottom:16px;padding:16px;border-bottom:1px solid rgba(0,0,0,.12)}mat-card-header[_ngcontent-%COMP%] mat-card-title[_ngcontent-%COMP%]{font-size:20px;font-weight:500;margin:0}mat-card-header[_ngcontent-%COMP%] .flex-spacer[_ngcontent-%COMP%]{flex:1 1 auto}mat-card-header[_ngcontent-%COMP%] button[_ngcontent-%COMP%] mat-icon[_ngcontent-%COMP%]{margin-right:4px}mat-card-content[_ngcontent-%COMP%]{padding:0}.search-form[_ngcontent-%COMP%]{padding:16px;background-color:#f5f5f5;margin-bottom:0}.search-form[_ngcontent-%COMP%] .search-row[_ngcontent-%COMP%]{display:grid;grid-template-columns:1fr auto;gap:16px;align-items:start}.search-form[_ngcontent-%COMP%] .search-row[_ngcontent-%COMP%] mat-form-field[_ngcontent-%COMP%]{width:100%}.search-form[_ngcontent-%COMP%] .search-row[_ngcontent-%COMP%] .search-buttons[_ngcontent-%COMP%]{display:flex;gap:8px;align-items:center}.search-form[_ngcontent-%COMP%] .search-row[_ngcontent-%COMP%] .search-buttons[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{white-space:nowrap}.search-form[_ngcontent-%COMP%] .search-row[_ngcontent-%COMP%] .search-buttons[_ngcontent-%COMP%] button[_ngcontent-%COMP%] mat-icon[_ngcontent-%COMP%]{margin-right:4px}.table-container[_ngcontent-%COMP%]{position:relative;min-height:300px;overflow-x:auto}.loading-spinner[_ngcontent-%COMP%]{display:flex;justify-content:center;align-items:center;min-height:300px}.department-table[_ngcontent-%COMP%]{width:100%}.department-table[_ngcontent-%COMP%] th[_ngcontent-%COMP%]{font-weight:600;font-size:14px;color:#000000de}.department-table[_ngcontent-%COMP%] td[_ngcontent-%COMP%]{font-size:14px;color:#000000de}.department-table[_ngcontent-%COMP%] .mat-column-name[_ngcontent-%COMP%]{min-width:200px}.department-table[_ngcontent-%COMP%] .mat-column-actions[_ngcontent-%COMP%]{width:120px;text-align:right}.department-table[_ngcontent-%COMP%] .mat-column-actions[_ngcontent-%COMP%] .action-buttons[_ngcontent-%COMP%]{display:flex;justify-content:flex-end;align-items:center;gap:4px}.no-data[_ngcontent-%COMP%]{display:flex;flex-direction:column;align-items:center;justify-content:center;padding:48px 16px;color:#0000008a}.no-data[_ngcontent-%COMP%] mat-icon[_ngcontent-%COMP%]{font-size:48px;width:48px;height:48px;margin-bottom:16px}.no-data[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{margin:0;font-size:16px}mat-paginator[_ngcontent-%COMP%]{border-top:1px solid rgba(0,0,0,.12)}"]});let t=n;return t})();var Lve=()=>["HRAdmin","Manager"],Vve=()=>["HRAdmin"];function Bve(t,n){if(t&1){let e=Y();h(0,"button",10),S("click",function(){I(e);let r=C(2);return A(r.editDepartment())}),h(1,"mat-icon"),_(2,"edit"),p(),_(3," Edit "),p()}}function jve(t,n){if(t&1){let e=Y();h(0,"button",11),S("click",function(){I(e);let r=C(2);return A(r.deleteDepartment())}),h(1,"mat-icon"),_(2,"delete"),p(),_(3," Delete "),p()}}function Hve(t,n){if(t&1&&(h(0,"mat-list-item")(1,"span",7),_(2,"Created At"),p(),h(3,"span",8),_(4),me(5,"date"),p()()),t&2){let e=C(3);g(4),H(Ni(5,1,e.department.createdAt,"medium"))}}function zve(t,n){if(t&1&&(h(0,"mat-list-item")(1,"span",7),_(2,"Last Modified At"),p(),h(3,"span",8),_(4),me(5,"date"),p()()),t&2){let e=C(3);g(4),H(Ni(5,1,e.department.lastModifiedAt,"medium"))}}function Uve(t,n){if(t&1&&(h(0,"div",6)(1,"h3"),_(2,"Audit Information"),p(),k(3,"mat-divider"),h(4,"mat-list"),R(5,Hve,6,4,"mat-list-item",0)(6,zve,6,4,"mat-list-item",0),p()()),t&2){let e=C(2);g(5),y("ngIf",e.department.createdAt),g(),y("ngIf",e.department.lastModifiedAt)}}function $ve(t,n){if(t&1){let e=Y();h(0,"mat-card")(1,"mat-card-header")(2,"mat-card-title"),_(3,"Department Details"),p(),k(4,"div",1),R(5,Bve,4,0,"button",2)(6,jve,4,0,"button",3),h(7,"button",4),S("click",function(){I(e);let r=C();return A(r.goBack())}),h(8,"mat-icon"),_(9,"arrow_back"),p(),_(10," Back to List "),p()(),h(11,"mat-card-content")(12,"div",5)(13,"div",6)(14,"h3"),_(15,"Basic Information"),p(),k(16,"mat-divider"),h(17,"mat-list")(18,"mat-list-item")(19,"span",7),_(20,"Department Name"),p(),h(21,"span",8),_(22),p()()()(),R(23,Uve,7,2,"div",9),p()()()}if(t&2){let e=C();g(5),y("appHasRole",at(4,Lve)),g(),y("appHasRole",at(5,Vve)),g(16),H(e.department.name),g(),y("ngIf",e.department.createdAt||e.department.lastModifiedAt)}}function Wve(t,n){t&1&&(h(0,"mat-card")(1,"mat-card-content")(2,"div",12),k(3,"mat-spinner"),p()()())}function Gve(t,n){if(t&1){let e=Y();h(0,"mat-card")(1,"mat-card-content")(2,"div",13)(3,"mat-icon"),_(4,"error"),p(),h(5,"p"),_(6,"Department not found"),p(),h(7,"button",14),S("click",function(){I(e);let r=C();return A(r.goBack())}),_(8," Go Back "),p()()()()}}var zU=(()=>{let n=class n{constructor(){this.departmentService=u(Vs),this.authService=u(Tt),this.route=u(wi),this.router=u(Re),this.snackBar=u(di),this.dialog=u(En),this.loading=!1}ngOnInit(){let i=this.route.snapshot.paramMap.get("id");i&&this.loadDepartment(i)}loadDepartment(i){this.loading=!0,this.departmentService.getById(i).subscribe({next:r=>{this.department=r,this.loading=!1},error:r=>{console.error("Error loading department:",r),this.showMessage("Error loading department"),this.loading=!1,this.router.navigate(["/departments"])}})}editDepartment(){this.router.navigate(["/departments","edit",this.department.id])}deleteDepartment(){this.dialog.open(Er,{width:"400px",data:{title:"Delete Department",message:`Are you sure you want to delete "${this.department.name}"? This action cannot be undone.`,confirmText:"Delete",cancelText:"Cancel"}}).afterClosed().subscribe(r=>{r&&this.departmentService.delete(this.department.id).subscribe({next:()=>{let o=this.snackBar.open(`"${this.department.name}" has been deleted.`,"Close",{duration:3e3,horizontalPosition:"end",verticalPosition:"top"});o.afterDismissed().subscribe(()=>this.router.navigate(["/departments"])),o.onAction().subscribe(()=>this.router.navigate(["/departments"]))},error:o=>{console.error("Error deleting department:",o),this.showMessage("Failed to delete department. Please try again.")}})})}goBack(){this.router.navigate(["/departments"])}canEdit(){return this.authService.isHRAdmin()||this.authService.isManager()}canDelete(){return this.authService.isHRAdmin()}showMessage(i){this.snackBar.open(i,"Close",{duration:3e3,horizontalPosition:"end",verticalPosition:"top"})}};n.\u0275fac=function(r){return new(r||n)},n.\u0275cmp=E({type:n,selectors:[["app-department-detail"]],decls:4,vars:3,consts:[[4,"ngIf"],[1,"flex-spacer"],["mat-raised-button","","color","accent",3,"click",4,"appHasRole"],["mat-raised-button","","color","warn",3,"click",4,"appHasRole"],["mat-stroked-button","",3,"click"],[1,"detail-grid"],[1,"detail-section"],["matListItemTitle",""],["matListItemLine",""],["class","detail-section",4,"ngIf"],["mat-raised-button","","color","accent",3,"click"],["mat-raised-button","","color","warn",3,"click"],[1,"loading-container"],[1,"no-data"],["mat-raised-button","","color","primary",3,"click"]],template:function(r,o){r&1&&(k(0,"page-header"),R(1,$ve,24,6,"mat-card",0)(2,Wve,4,0,"mat-card",0)(3,Gve,9,0,"mat-card",0)),r&2&&(g(),y("ngIf",!o.loading&&o.department),g(),y("ngIf",o.loading),g(),y("ngIf",!o.loading&&!o.department))},dependencies:[gt,li,ze,kt,$t,zt,Ut,Jt,Xt,ot,mt,ca,Fs,la,Ha,Tu,Dl,sa,Si,ki,pi,Mn,ni,Un,Sa],styles:["mat-card[_ngcontent-%COMP%]{margin:16px}mat-card-header[_ngcontent-%COMP%]{display:flex;align-items:center;margin-bottom:16px;padding:16px;border-bottom:1px solid rgba(0,0,0,.12)}mat-card-header[_ngcontent-%COMP%] mat-card-title[_ngcontent-%COMP%]{font-size:20px;font-weight:500;margin:0}mat-card-header[_ngcontent-%COMP%] .flex-spacer[_ngcontent-%COMP%]{flex:1 1 auto}mat-card-header[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{margin-left:8px}mat-card-header[_ngcontent-%COMP%] button[_ngcontent-%COMP%] mat-icon[_ngcontent-%COMP%]{margin-right:4px}mat-card-content[_ngcontent-%COMP%]{padding:16px}.detail-grid[_ngcontent-%COMP%]{display:grid;grid-template-columns:repeat(auto-fit,minmax(400px,1fr));gap:24px}.detail-section[_ngcontent-%COMP%] h3[_ngcontent-%COMP%]{margin:0 0 8px;font-size:16px;font-weight:500;color:#000000de}.detail-section[_ngcontent-%COMP%] mat-divider[_ngcontent-%COMP%]{margin-bottom:16px}.detail-section[_ngcontent-%COMP%] mat-list[_ngcontent-%COMP%]{padding:0}.detail-section[_ngcontent-%COMP%] mat-list-item[_ngcontent-%COMP%]{height:auto;min-height:48px;padding:8px 0}.loading-container[_ngcontent-%COMP%]{display:flex;justify-content:center;align-items:center;min-height:300px}.no-data[_ngcontent-%COMP%]{display:flex;flex-direction:column;align-items:center;justify-content:center;padding:48px 16px;color:#0000008a}.no-data[_ngcontent-%COMP%] mat-icon[_ngcontent-%COMP%]{font-size:48px;width:48px;height:48px;margin-bottom:16px}.no-data[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{margin:0 0 16px;font-size:16px}"]});let t=n;return t})();function qve(t,n){t&1&&(h(0,"div",0),k(1,"mat-spinner"),p())}function Yve(t,n){t&1&&(h(0,"mat-error"),_(1," Department name is required "),p())}function Qve(t,n){t&1&&(h(0,"mat-error"),_(1," Department name cannot exceed 100 characters "),p())}var aA=(()=>{let n=class n{constructor(){this.departmentService=u(Vs),this.route=u(wi),this.router=u(Re),this.fb=u(eo),this.snackBar=u(di),this.loading=!1,this.isEditMode=!1}ngOnInit(){this.initForm();let i=this.route.snapshot.paramMap.get("id");i&&(this.isEditMode=!0,this.departmentId=i,this.loadDepartment(i))}initForm(){this.departmentForm=this.fb.group({name:["",[Le.required,Le.maxLength(100)]]})}loadDepartment(i){this.loading=!0,this.departmentService.getById(i).subscribe({next:r=>{this.departmentForm.patchValue({name:r.name}),this.loading=!1},error:r=>{console.error("Error loading department:",r),this.showMessage("Error loading department"),this.loading=!1}})}onSubmit(){if(!this.departmentForm.invalid)if(this.loading=!0,this.isEditMode&&this.departmentId){let i={id:this.departmentId,name:this.departmentForm.value.name};this.departmentService.updateDepartment(i).subscribe({next:()=>{this.showMessage("Department updated successfully"),this.router.navigate(["/departments",this.departmentId])},error:r=>{console.error("Error updating department:",r),this.showMessage("Error updating department"),this.loading=!1}})}else{let i={name:this.departmentForm.value.name};this.departmentService.createDepartment(i).subscribe({next:r=>{console.log("Department created - Response:",r),console.log("Department ID:",r?.id),this.showMessage("Department created successfully"),r?.id?(console.log("Navigating to detail page:","/departments/"+r.id),this.router.navigate(["/departments",r.id])):(console.warn("No department ID returned, navigating to list page"),this.router.navigate(["/departments"])),this.loading=!1},error:r=>{console.error("Error creating department:",r),this.showMessage("Error creating department"),this.loading=!1}})}}onCancel(){this.isEditMode&&this.departmentId?this.router.navigate(["/departments",this.departmentId]):this.router.navigate(["/departments"])}showMessage(i){this.snackBar.open(i,"Close",{duration:3e3,horizontalPosition:"end",verticalPosition:"top"})}};n.\u0275fac=function(r){return new(r||n)},n.\u0275cmp=E({type:n,selectors:[["app-department-form"]],decls:23,vars:7,consts:[[1,"loading-overlay"],[3,"ngSubmit","formGroup"],[1,"form-section"],[1,"form-row"],["appearance","outline"],["matInput","","formControlName","name"],[4,"ngIf"],[1,"form-actions"],["type","button","mat-stroked-button","",3,"click"],["type","submit","mat-raised-button","","color","primary",3,"disabled"]],template:function(r,o){if(r&1&&(k(0,"page-header"),h(1,"mat-card")(2,"mat-card-header")(3,"mat-card-title"),_(4),p()(),h(5,"mat-card-content"),N(6,qve,2,0,"div",0),h(7,"form",1),S("ngSubmit",function(){return o.onSubmit()}),h(8,"div",2)(9,"h3"),_(10,"Department Information"),p(),h(11,"div",3)(12,"mat-form-field",4)(13,"mat-label"),_(14,"Department Name"),p(),k(15,"input",5),R(16,Yve,2,0,"mat-error",6)(17,Qve,2,0,"mat-error",6),p()()(),h(18,"div",7)(19,"button",8),S("click",function(){return o.onCancel()}),_(20," Cancel "),p(),h(21,"button",9),_(22),p()()()()()),r&2){let a,s;g(4),H(o.isEditMode?"Edit Department":"Create Department"),g(2),L(o.loading?6:-1),g(),y("formGroup",o.departmentForm),g(9),y("ngIf",(a=o.departmentForm.get("name"))==null?null:a.hasError("required")),g(),y("ngIf",(s=o.departmentForm.get("name"))==null?null:s.hasError("maxlength")),g(4),y("disabled",o.loading),g(),ve(" ",o.isEditMode?"Update":"Create"," ")}},dependencies:[gt,li,zn,Jr,Qi,ei,Xr,Ki,Lr,ze,kt,$t,zt,Ut,Jt,Xt,ot,rr,hn,Oi,sn,xo,$i,Si,ki,pi,ni],styles:["mat-card[_ngcontent-%COMP%]{margin:16px;max-width:800px}mat-card-header[_ngcontent-%COMP%]{padding:16px;border-bottom:1px solid rgba(0,0,0,.12)}mat-card-header[_ngcontent-%COMP%] mat-card-title[_ngcontent-%COMP%]{font-size:20px;font-weight:500;margin:0}mat-card-content[_ngcontent-%COMP%]{padding:24px;position:relative}.form-section[_ngcontent-%COMP%]{margin-bottom:24px}.form-section[_ngcontent-%COMP%] h3[_ngcontent-%COMP%]{margin:0 0 16px;font-size:16px;font-weight:500;color:#000000de}.form-section[_ngcontent-%COMP%] .form-row[_ngcontent-%COMP%]{display:grid;grid-template-columns:1fr;gap:16px;margin-bottom:16px}.form-section[_ngcontent-%COMP%] .form-row[_ngcontent-%COMP%] mat-form-field[_ngcontent-%COMP%]{width:100%}.form-actions[_ngcontent-%COMP%]{display:flex;justify-content:flex-end;gap:8px;padding-top:16px;border-top:1px solid rgba(0,0,0,.12)}.loading-overlay[_ngcontent-%COMP%]{position:absolute;inset:0;background-color:#fffc;display:flex;align-items:center;justify-content:center;z-index:1000}"]});let t=n;return t})();var Kve=["mat-sort-header",""],Zve=["*"];function Xve(t,n){t&1&&(ft(0,"div",2),Gt(),ft(1,"svg",3),ai(2,"path",4),vt()())}var UU=new T("MAT_SORT_DEFAULT_OPTIONS"),Ml=(()=>{class t{_defaultOptions;_initializedStream=new $a(1);sortables=new Map;_stateChanges=new z;active;start="asc";get direction(){return this._direction}set direction(e){this._direction=e}_direction="";disableClear;disabled=!1;sortChange=new U;initialized=this._initializedStream;constructor(e){this._defaultOptions=e}register(e){this.sortables.set(e.id,e)}deregister(e){this.sortables.delete(e.id)}sort(e){this.active!=e.id?(this.active=e.id,this.direction=e.start?e.start:this.start):this.direction=this.getNextSortDirection(e),this.sortChange.emit({active:this.active,direction:this.direction})}getNextSortDirection(e){if(!e)return"";let i=e?.disableClear??this.disableClear??!!this._defaultOptions?.disableClear,r=Jve(e.start||this.start,i),o=r.indexOf(this.direction)+1;return o>=r.length&&(o=0),r[o]}ngOnInit(){this._initializedStream.next()}ngOnChanges(){this._stateChanges.next()}ngOnDestroy(){this._stateChanges.complete(),this._initializedStream.complete()}static \u0275fac=function(i){return new(i||t)(_e(UU,8))};static \u0275dir=F({type:t,selectors:[["","matSort",""]],hostAttrs:[1,"mat-sort"],inputs:{active:[0,"matSortActive","active"],start:[0,"matSortStart","start"],direction:[0,"matSortDirection","direction"],disableClear:[2,"matSortDisableClear","disableClear",V],disabled:[2,"matSortDisabled","disabled",V]},outputs:{sortChange:"matSortChange"},exportAs:["matSort"],features:[Ae]})}return t})();function Jve(t,n){let e=["asc","desc"];return t=="desc"&&e.reverse(),n||e.push(""),e}var ww=(()=>{class t{changes=new z;static \u0275fac=function(i){return new(i||t)};static \u0275prov=O({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();function e0e(t){return t||new ww}var t0e={provide:ww,deps:[[new ss,new Gl,ww]],useFactory:e0e},Dw=(()=>{class t{_intl=u(ww);_sort=u(Ml,{optional:!0});_columnDef=u("MAT_SORT_HEADER_COLUMN_DEF",{optional:!0});_changeDetectorRef=u(ye);_focusMonitor=u(Yt);_elementRef=u(q);_ariaDescriber=u(Xm,{optional:!0});_renderChanges;_animationsDisabled=Ye();_recentlyCleared=he(null);_sortButton;id;arrowPosition="after";start;disabled=!1;get sortActionDescription(){return this._sortActionDescription}set sortActionDescription(e){this._updateSortActionDescription(e)}_sortActionDescription="Sort";disableClear;constructor(){u(ut).load(Di);let e=u(UU,{optional:!0});this._sort,e?.arrowPosition&&(this.arrowPosition=e?.arrowPosition)}ngOnInit(){!this.id&&this._columnDef&&(this.id=this._columnDef.name),this._sort.register(this),this._renderChanges=Je(this._sort._stateChanges,this._sort.sortChange).subscribe(()=>this._changeDetectorRef.markForCheck()),this._sortButton=this._elementRef.nativeElement.querySelector(".mat-sort-header-container"),this._updateSortActionDescription(this._sortActionDescription)}ngAfterViewInit(){this._focusMonitor.monitor(this._elementRef,!0).subscribe(()=>{Promise.resolve().then(()=>this._recentlyCleared.set(null))})}ngOnDestroy(){this._focusMonitor.stopMonitoring(this._elementRef),this._sort.deregister(this),this._renderChanges?.unsubscribe(),this._sortButton&&this._ariaDescriber?.removeDescription(this._sortButton,this._sortActionDescription)}_toggleOnInteraction(){if(!this._isDisabled()){let e=this._isSorted(),i=this._sort.direction;this._sort.sort(this),this._recentlyCleared.set(e&&!this._isSorted()?i:null)}}_handleKeydown(e){(e.keyCode===32||e.keyCode===13)&&(e.preventDefault(),this._toggleOnInteraction())}_isSorted(){return this._sort.active==this.id&&(this._sort.direction==="asc"||this._sort.direction==="desc")}_isDisabled(){return this._sort.disabled||this.disabled}_getAriaSortAttribute(){return this._isSorted()?this._sort.direction=="asc"?"ascending":"descending":"none"}_renderArrow(){return!this._isDisabled()||this._isSorted()}_updateSortActionDescription(e){this._sortButton&&(this._ariaDescriber?.removeDescription(this._sortButton,this._sortActionDescription),this._ariaDescriber?.describe(this._sortButton,e)),this._sortActionDescription=e}static \u0275fac=function(i){return new(i||t)};static \u0275cmp=E({type:t,selectors:[["","mat-sort-header",""]],hostAttrs:[1,"mat-sort-header"],hostVars:3,hostBindings:function(i,r){i&1&&S("click",function(){return r._toggleOnInteraction()})("keydown",function(a){return r._handleKeydown(a)})("mouseleave",function(){return r._recentlyCleared.set(null)}),i&2&&(X("aria-sort",r._getAriaSortAttribute()),G("mat-sort-header-disabled",r._isDisabled()))},inputs:{id:[0,"mat-sort-header","id"],arrowPosition:"arrowPosition",start:"start",disabled:[2,"disabled","disabled",V],sortActionDescription:"sortActionDescription",disableClear:[2,"disableClear","disableClear",V]},exportAs:["matSortHeader"],attrs:Kve,ngContentSelectors:Zve,decls:4,vars:17,consts:[[1,"mat-sort-header-container","mat-focus-indicator"],[1,"mat-sort-header-content"],[1,"mat-sort-header-arrow"],["viewBox","0 -960 960 960","focusable","false","aria-hidden","true"],["d","M440-240v-368L296-464l-56-56 240-240 240 240-56 56-144-144v368h-80Z"]],template:function(i,r){i&1&&(Me(),ft(0,"div",0)(1,"div",1),oe(2),vt(),N(3,Xve,3,0,"div",2),vt()),i&2&&(G("mat-sort-header-sorted",r._isSorted())("mat-sort-header-position-before",r.arrowPosition==="before")("mat-sort-header-descending",r._sort.direction==="desc")("mat-sort-header-ascending",r._sort.direction==="asc")("mat-sort-header-recently-cleared-ascending",r._recentlyCleared()==="asc")("mat-sort-header-recently-cleared-descending",r._recentlyCleared()==="desc")("mat-sort-header-animations-disabled",r._animationsDisabled),X("tabindex",r._isDisabled()?null:0)("role",r._isDisabled()?null:"button"),g(3),L(r._renderArrow()?3:-1))},styles:[`.mat-sort-header{cursor:pointer}.mat-sort-header-disabled{cursor:default}.mat-sort-header-container{display:flex;align-items:center;letter-spacing:normal;outline:0}[mat-sort-header].cdk-keyboard-focused .mat-sort-header-container,[mat-sort-header].cdk-program-focused .mat-sort-header-container{border-bottom:solid 1px currentColor}.mat-sort-header-container::before{margin:calc(calc(var(--mat-focus-indicator-border-width, 3px) + 2px)*-1)}.mat-sort-header-content{display:flex;align-items:center}.mat-sort-header-position-before{flex-direction:row-reverse}@keyframes _mat-sort-header-recently-cleared-ascending{from{transform:translateY(0);opacity:1}to{transform:translateY(-25%);opacity:0}}@keyframes _mat-sort-header-recently-cleared-descending{from{transform:translateY(0) rotate(180deg);opacity:1}to{transform:translateY(25%) rotate(180deg);opacity:0}}.mat-sort-header-arrow{height:12px;width:12px;position:relative;transition:transform 225ms cubic-bezier(0.4, 0, 0.2, 1),opacity 225ms cubic-bezier(0.4, 0, 0.2, 1);opacity:0;overflow:visible;color:var(--mat-sort-arrow-color, var(--mat-sys-on-surface))}.mat-sort-header.cdk-keyboard-focused .mat-sort-header-arrow,.mat-sort-header.cdk-program-focused .mat-sort-header-arrow,.mat-sort-header:hover .mat-sort-header-arrow{opacity:.54}.mat-sort-header .mat-sort-header-sorted .mat-sort-header-arrow{opacity:1}.mat-sort-header-descending .mat-sort-header-arrow{transform:rotate(180deg)}.mat-sort-header-recently-cleared-ascending .mat-sort-header-arrow{transform:translateY(-25%)}.mat-sort-header-recently-cleared-ascending .mat-sort-header-arrow{transition:none;animation:_mat-sort-header-recently-cleared-ascending 225ms cubic-bezier(0.4, 0, 0.2, 1) forwards}.mat-sort-header-recently-cleared-descending .mat-sort-header-arrow{transition:none;animation:_mat-sort-header-recently-cleared-descending 225ms cubic-bezier(0.4, 0, 0.2, 1) forwards}.mat-sort-header-animations-disabled .mat-sort-header-arrow{transition-duration:0ms;animation-duration:0ms}.mat-sort-header-arrow svg{width:24px;height:24px;fill:currentColor;position:absolute;top:50%;left:50%;margin:-12px 0 0 -12px;transform:translateZ(0)}.mat-sort-header-arrow,[dir=rtl] .mat-sort-header-position-before .mat-sort-header-arrow{margin:0 0 0 6px}.mat-sort-header-position-before .mat-sort-header-arrow,[dir=rtl] .mat-sort-header-arrow{margin:0 6px 0 0} +`],encapsulation:2,changeDetection:0})}return t})(),Ew=(()=>{class t{static \u0275fac=function(i){return new(i||t)};static \u0275mod=ee({type:t});static \u0275inj=J({providers:[t0e],imports:[we]})}return t})();var WU=()=>["HRAdmin","Manager"],GU=()=>["HRAdmin"];function i0e(t,n){if(t&1){let e=Y();h(0,"button",14),S("click",function(){I(e);let r=C();return A(r.createPosition())}),h(1,"mat-icon"),_(2,"add"),p(),_(3," Add Position "),p()}}function n0e(t,n){if(t&1){let e=Y();h(0,"button",15),S("click",function(){I(e);let r=C();return A(r.addMockData())}),h(1,"mat-icon"),_(2,"data_object"),p(),_(3," Add Mock Data "),p()}}function r0e(t,n){t&1&&(h(0,"div",16),k(1,"mat-spinner"),p())}function o0e(t,n){t&1&&(h(0,"th",30),_(1,"Position Number"),p())}function a0e(t,n){if(t&1&&(h(0,"td",31),_(1),p()),t&2){let e=n.$implicit;g(),H(e.positionNumber)}}function s0e(t,n){t&1&&(h(0,"th",30),_(1,"Position Title"),p())}function l0e(t,n){if(t&1&&(h(0,"td",31),_(1),p()),t&2){let e=n.$implicit;g(),H(e.positionTitle)}}function c0e(t,n){t&1&&(h(0,"th",30),_(1,"Department"),p())}function d0e(t,n){if(t&1&&(h(0,"td",31),_(1),p()),t&2){let e=n.$implicit;g(),H(e.department==null?null:e.department.name)}}function u0e(t,n){t&1&&(h(0,"th",30),_(1,"Salary Range"),p())}function m0e(t,n){if(t&1&&(h(0,"td",31),_(1),p()),t&2){let e=n.$implicit;g(),H(e.salaryRange==null?null:e.salaryRange.name)}}function h0e(t,n){t&1&&(h(0,"th",32),_(1,"Actions"),p())}function p0e(t,n){if(t&1){let e=Y();h(0,"button",38),S("click",function(){I(e);let r=C().$implicit,o=C(2);return A(o.editPosition(r))}),h(1,"mat-icon"),_(2,"edit"),p()()}}function f0e(t,n){if(t&1){let e=Y();h(0,"button",39),S("click",function(){I(e);let r=C().$implicit,o=C(2);return A(o.deletePosition(r))}),h(1,"mat-icon"),_(2,"delete"),p()()}}function g0e(t,n){if(t&1){let e=Y();h(0,"td",33)(1,"div",34)(2,"button",35),S("click",function(){let r=I(e).$implicit,o=C(2);return A(o.viewPosition(r))}),h(3,"mat-icon"),_(4,"visibility"),p()(),R(5,p0e,3,0,"button",36)(6,f0e,3,0,"button",37),p()()}t&2&&(g(5),y("appHasRole",at(2,WU)),g(),y("appHasRole",at(3,GU)))}function _0e(t,n){t&1&&k(0,"tr",40)}function b0e(t,n){t&1&&k(0,"tr",41)}function v0e(t,n){if(t&1&&(h(0,"tr",42)(1,"td",43)(2,"div",44)(3,"mat-icon"),_(4,"work_off"),p(),h(5,"p"),_(6,"No positions found"),p()()()()),t&2){let e=C(2);g(),X("colspan",e.displayedColumns.length)}}function y0e(t,n){if(t&1){let e=Y();h(0,"table",17),S("matSortChange",function(r){I(e);let o=C();return A(o.onSortChange(r))}),jt(1,18),R(2,o0e,2,0,"th",19)(3,a0e,2,1,"td",20),Lt(),jt(4,21),R(5,s0e,2,0,"th",19)(6,l0e,2,1,"td",20),Lt(),jt(7,22),R(8,c0e,2,0,"th",19)(9,d0e,2,1,"td",20),Lt(),jt(10,23),R(11,u0e,2,0,"th",19)(12,m0e,2,1,"td",20),Lt(),jt(13,24),R(14,h0e,2,0,"th",25)(15,g0e,7,4,"td",26),Lt(),R(16,_0e,1,0,"tr",27)(17,b0e,1,0,"tr",28)(18,v0e,7,1,"tr",29),p()}if(t&2){let e=C();y("dataSource",e.positions),g(16),y("matHeaderRowDef",e.displayedColumns),g(),y("matRowDefColumns",e.displayedColumns)}}var qU=(()=>{let n=class n{constructor(){this.positionService=u(Bc),this.authService=u(Tt),this.router=u(Re),this.dialog=u(En),this.snackBar=u(di),this.searchSubject=new z,this.positions=[],this.loading=!1,this.displayedColumns=["positionNumber","positionTitle","departmentId","salaryRangeId","actions"],this.totalCount=0,this.pageNumber=1,this.pageSize=10,this.pageSizeOptions=[5,10,25,50,100],this.searchPositionNumber="",this.searchPositionTitle="",this.searchDepartment=""}ngOnInit(){this.searchSubject.pipe(Rt(500)).subscribe(()=>{this.pageNumber=1,this.loadPositions()}),this.loadPositions()}ngAfterViewInit(){}loadPositions(){this.loading=!0;let i={pageNumber:this.pageNumber,pageSize:this.pageSize};this.searchPositionNumber&&(i.PositionNumber=this.searchPositionNumber),this.searchPositionTitle&&(i.PositionTitle=this.searchPositionTitle),this.searchDepartment&&(i.Department=this.searchDepartment),this.sort?.active&&this.sort?.direction&&(i.orderBy=`${this.sort.active} ${this.sort.direction}`),this.positionService.getAllPaged(i).subscribe({next:r=>{this.positions=r.value,this.totalCount=r.recordsTotal,this.loading=!1},error:r=>{console.error("Error loading positions:",r),this.loading=!1}})}onSearch(){this.searchSubject.next()}onPageChange(i){this.pageNumber=i.pageIndex+1,this.pageSize=i.pageSize,this.loadPositions()}onSortChange(i){this.loadPositions()}clearFilters(){this.searchPositionNumber="",this.searchPositionTitle="",this.searchDepartment="",this.pageNumber=1,this.loadPositions()}createPosition(){this.router.navigate(["/positions/create"])}viewPosition(i){this.router.navigate(["/positions",i.id])}editPosition(i){this.router.navigate(["/positions/edit",i.id])}deletePosition(i){this.dialog.open(Er,{width:"400px",data:{title:"Delete Position",message:`Are you sure you want to delete "${i.positionTitle}"? This action cannot be undone.`,confirmText:"Delete",cancelText:"Cancel"}}).afterClosed().subscribe(o=>{o&&this.positionService.delete(i.id).subscribe({next:()=>{this.showMessage(`"${i.positionTitle}" has been deleted.`),this.loadPositions()},error:a=>{console.error("Error deleting position:",a),this.showMessage("Failed to delete position. Please try again.")}})})}addMockData(){let i=prompt("How many mock positions would you like to add?","10");if(i){let r=parseInt(i,10);r>0&&r<=100?(this.loading=!0,this.positionService.addMockPositions({rowCount:r}).subscribe({next:()=>{this.showMessage(`${r} mock positions added successfully`),this.loadPositions()},error:o=>{console.error("Error adding mock positions:",o),this.showMessage("Error adding mock positions"),this.loading=!1}})):this.showMessage("Please enter a number between 1 and 100")}}showMessage(i){this.snackBar.open(i,"Close",{duration:3e3,horizontalPosition:"end",verticalPosition:"top"})}canEdit(){return this.authService.hasRole("HRAdmin")||this.authService.hasRole("Manager")}};n.\u0275fac=function(r){return new(r||n)},n.\u0275cmp=E({type:n,selectors:[["app-position-list"]],viewQuery:function(r,o){if(r&1&&(ie(ir,5),ie(Ml,5)),r&2){let a;B(a=j())&&(o.paginator=a.first),B(a=j())&&(o.sort=a.first)}},decls:36,vars:13,consts:[[1,"flex-spacer"],["mat-raised-button","","color","primary",3,"click",4,"appHasRole"],["mat-stroked-button","","color","accent","style","margin-left: 8px;",3,"click",4,"appHasRole"],[1,"search-filters",2,"margin-bottom","16px","display","flex","gap","16px","flex-wrap","wrap"],["appearance","outline",2,"flex","1","min-width","200px"],["matInput","","placeholder","Search by position number",3,"ngModelChange","input","ngModel"],["matSuffix",""],["matInput","","placeholder","Search by position title",3,"ngModelChange","input","ngModel"],["matInput","","placeholder","Search by department",3,"ngModelChange","input","ngModel"],["mat-stroked-button","",2,"height","56px",3,"click"],[1,"table-container"],["class","loading-spinner",4,"ngIf"],["mat-table","","matSort","","class","position-table",3,"dataSource","matSortChange",4,"ngIf"],["showFirstLastButtons","",3,"page","length","pageSize","pageSizeOptions","pageIndex"],["mat-raised-button","","color","primary",3,"click"],["mat-stroked-button","","color","accent",2,"margin-left","8px",3,"click"],[1,"loading-spinner"],["mat-table","","matSort","",1,"position-table",3,"matSortChange","dataSource"],["matColumnDef","positionNumber"],["mat-header-cell","","mat-sort-header","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","positionTitle"],["matColumnDef","departmentId"],["matColumnDef","salaryRangeId"],["matColumnDef","actions"],["mat-header-cell","","class","mat-column-actions",4,"matHeaderCellDef"],["mat-cell","","class","mat-column-actions",4,"matCellDef"],["mat-header-row","",4,"matHeaderRowDef"],["mat-row","",4,"matRowDef","matRowDefColumns"],["class","mat-row",4,"matNoDataRow"],["mat-header-cell","","mat-sort-header",""],["mat-cell",""],["mat-header-cell","",1,"mat-column-actions"],["mat-cell","",1,"mat-column-actions"],[1,"action-buttons"],["mat-icon-button","","color","primary","matTooltip","View Details",3,"click"],["mat-icon-button","","color","accent","matTooltip","Edit Position",3,"click",4,"appHasRole"],["mat-icon-button","","color","warn","matTooltip","Delete Position",3,"click",4,"appHasRole"],["mat-icon-button","","color","accent","matTooltip","Edit Position",3,"click"],["mat-icon-button","","color","warn","matTooltip","Delete Position",3,"click"],["mat-header-row",""],["mat-row",""],[1,"mat-row"],[1,"mat-cell"],[1,"no-data"]],template:function(r,o){r&1&&(k(0,"page-header"),h(1,"mat-card")(2,"mat-card-header")(3,"mat-card-title"),_(4,"Positions"),p(),k(5,"span",0),R(6,i0e,4,0,"button",1)(7,n0e,4,0,"button",2),p(),h(8,"mat-card-content")(9,"div",3)(10,"mat-form-field",4)(11,"mat-label"),_(12,"Position Number"),p(),h(13,"input",5),Uo("ngModelChange",function(s){return Ca(o.searchPositionNumber,s)||(o.searchPositionNumber=s),s}),S("input",function(){return o.onSearch()}),p(),h(14,"mat-icon",6),_(15,"search"),p()(),h(16,"mat-form-field",4)(17,"mat-label"),_(18,"Position Title"),p(),h(19,"input",7),Uo("ngModelChange",function(s){return Ca(o.searchPositionTitle,s)||(o.searchPositionTitle=s),s}),S("input",function(){return o.onSearch()}),p(),h(20,"mat-icon",6),_(21,"search"),p()(),h(22,"mat-form-field",4)(23,"mat-label"),_(24,"Department"),p(),h(25,"input",8),Uo("ngModelChange",function(s){return Ca(o.searchDepartment,s)||(o.searchDepartment=s),s}),S("input",function(){return o.onSearch()}),p(),h(26,"mat-icon",6),_(27,"search"),p()(),h(28,"button",9),S("click",function(){return o.clearFilters()}),h(29,"mat-icon"),_(30,"clear"),p(),_(31," Clear Filters "),p()(),h(32,"div",10),R(33,r0e,2,0,"div",11)(34,y0e,19,3,"table",12),p(),h(35,"mat-paginator",13),S("page",function(s){return o.onPageChange(s)}),p()()()),r&2&&(g(6),y("appHasRole",at(11,WU)),g(),y("appHasRole",at(12,GU)),g(6),zo("ngModel",o.searchPositionNumber),g(6),zo("ngModel",o.searchPositionTitle),g(6),zo("ngModel",o.searchDepartment),g(8),y("ngIf",o.loading),g(),y("ngIf",!o.loading),g(),y("length",o.totalCount)("pageSize",o.pageSize)("pageSizeOptions",o.pageSizeOptions)("pageIndex",o.pageNumber-1))},dependencies:[gt,li,ze,kt,ti,$t,zt,Ut,Jt,Xt,ot,mt,Zc,Hc,Uc,qc,$c,zc,Yc,Wc,Gc,Qc,Kc,gw,_c,ir,Ew,Ml,Dw,Si,ki,Br,Eo,Mn,$i,Oi,sn,ru,rr,hn,pi,du,Qi,ei,gg,ni,Un],styles:["mat-card[_ngcontent-%COMP%]{margin:16px}mat-card-header[_ngcontent-%COMP%]{display:flex;align-items:center;margin-bottom:16px;padding:16px;border-bottom:1px solid rgba(0,0,0,.12)}mat-card-header[_ngcontent-%COMP%] mat-card-title[_ngcontent-%COMP%]{font-size:20px;font-weight:500;margin:0}mat-card-header[_ngcontent-%COMP%] .flex-spacer[_ngcontent-%COMP%]{flex:1 1 auto}mat-card-header[_ngcontent-%COMP%] button[_ngcontent-%COMP%] mat-icon[_ngcontent-%COMP%]{margin-right:4px}mat-card-content[_ngcontent-%COMP%]{padding:0}.table-container[_ngcontent-%COMP%]{position:relative;min-height:300px;overflow-x:auto}.loading-spinner[_ngcontent-%COMP%]{display:flex;justify-content:center;align-items:center;min-height:300px}.position-table[_ngcontent-%COMP%]{width:100%}.position-table[_ngcontent-%COMP%] th[_ngcontent-%COMP%]{font-weight:600;font-size:14px;color:#000000de}.position-table[_ngcontent-%COMP%] td[_ngcontent-%COMP%]{font-size:14px;color:#000000de}.position-table[_ngcontent-%COMP%] .mat-column-positionNumber[_ngcontent-%COMP%]{min-width:150px}.position-table[_ngcontent-%COMP%] .mat-column-positionTitle[_ngcontent-%COMP%]{min-width:200px}.position-table[_ngcontent-%COMP%] .mat-column-departmentId[_ngcontent-%COMP%], .position-table[_ngcontent-%COMP%] .mat-column-salaryRangeId[_ngcontent-%COMP%]{min-width:150px}.position-table[_ngcontent-%COMP%] .mat-column-actions[_ngcontent-%COMP%]{width:150px;text-align:right}.position-table[_ngcontent-%COMP%] .action-buttons[_ngcontent-%COMP%]{display:flex;justify-content:flex-end;gap:4px}.position-table[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{margin-left:4px}.no-data[_ngcontent-%COMP%]{display:flex;flex-direction:column;align-items:center;justify-content:center;padding:48px 16px;color:#0000008a}.no-data[_ngcontent-%COMP%] mat-icon[_ngcontent-%COMP%]{font-size:48px;width:48px;height:48px;margin-bottom:16px}.no-data[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{margin:0;font-size:16px}mat-paginator[_ngcontent-%COMP%]{border-top:1px solid rgba(0,0,0,.12)}"]});let t=n;return t})();var YU=()=>["HRAdmin","Manager"];function x0e(t,n){t&1&&(h(0,"div",2),k(1,"mat-spinner"),p())}function C0e(t,n){if(t&1){let e=Y();h(0,"button",9),S("click",function(){I(e);let r=C(2);return A(r.editPosition())}),h(1,"mat-icon"),_(2,"edit"),p()()}}function w0e(t,n){if(t&1){let e=Y();h(0,"button",10),S("click",function(){I(e);let r=C(2);return A(r.deletePosition())}),h(1,"mat-icon"),_(2,"delete"),p()()}}function D0e(t,n){if(t&1&&(h(0,"mat-list-item")(1,"span",7),_(2,"Description:"),p(),h(3,"span",8),_(4),p()()),t&2){let e=C(2);g(4),H(e.position.positionDescription)}}function E0e(t,n){t&1&&k(0,"mat-divider")}function M0e(t,n){if(t&1&&(h(0,"mat-list-item")(1,"span",7),_(2,"Created:"),p(),h(3,"span",8),_(4),me(5,"date"),p()()),t&2){let e=C(2);g(4),H(Ni(5,1,e.position.createdAt,"medium"))}}function k0e(t,n){t&1&&k(0,"mat-divider")}function S0e(t,n){if(t&1&&(h(0,"mat-list-item")(1,"span",7),_(2,"Last Modified:"),p(),h(3,"span",8),_(4),me(5,"date"),p()()),t&2){let e=C(2);g(4),H(Ni(5,1,e.position.lastModifiedAt,"medium"))}}function T0e(t,n){if(t&1){let e=Y();h(0,"mat-card")(1,"mat-card-header")(2,"mat-card-title"),_(3),p(),h(4,"div",3),R(5,C0e,3,0,"button",4)(6,w0e,3,0,"button",5),h(7,"button",6),S("click",function(){I(e);let r=C();return A(r.goBack())}),h(8,"mat-icon"),_(9,"arrow_back"),p()()()(),h(10,"mat-card-content")(11,"mat-list")(12,"mat-list-item")(13,"span",7),_(14,"Position Number:"),p(),h(15,"span",8),_(16),p()(),k(17,"mat-divider"),h(18,"mat-list-item")(19,"span",7),_(20,"Position Title:"),p(),h(21,"span",8),_(22),p()(),k(23,"mat-divider"),R(24,D0e,5,1,"mat-list-item",1)(25,E0e,1,0,"mat-divider",1),h(26,"mat-list-item")(27,"span",7),_(28,"Department:"),p(),h(29,"span",8),_(30),p()(),k(31,"mat-divider"),h(32,"mat-list-item")(33,"span",7),_(34,"Salary Range:"),p(),h(35,"span",8),_(36),p()(),k(37,"mat-divider"),R(38,M0e,6,4,"mat-list-item",1)(39,k0e,1,0,"mat-divider",1)(40,S0e,6,4,"mat-list-item",1),p()()()}if(t&2){let e=C();g(3),H(e.position.positionTitle),g(2),y("appHasRole",at(12,YU)),g(),y("appHasRole",at(13,YU)),g(10),H(e.position.positionNumber),g(6),H(e.position.positionTitle),g(2),y("ngIf",e.position.positionDescription),g(),y("ngIf",e.position.positionDescription),g(5),H((e.position.department==null?null:e.position.department.name)||e.position.departmentId),g(6),H((e.position.salaryRange==null?null:e.position.salaryRange.name)||e.position.salaryRangeId),g(2),y("ngIf",e.position.createdAt),g(),y("ngIf",e.position.createdAt),g(),y("ngIf",e.position.lastModifiedAt)}}function I0e(t,n){t&1&&(h(0,"mat-card")(1,"mat-card-content")(2,"p"),_(3,"Position not found."),p()()())}var QU=(()=>{let n=class n{constructor(){this.positionService=u(Bc),this.authService=u(Tt),this.route=u(wi),this.router=u(Re),this.snackBar=u(di),this.dialog=u(En),this.loading=!1}ngOnInit(){let i=this.route.snapshot.paramMap.get("id");i&&this.loadPosition(i)}loadPosition(i){this.loading=!0,this.positionService.getById(i).subscribe({next:r=>{this.position=r,this.loading=!1},error:r=>{console.error("Error loading position:",r),this.showMessage("Error loading position"),this.loading=!1,this.router.navigate(["/positions"])}})}editPosition(){this.router.navigate(["/positions","edit",this.position.id])}deletePosition(){this.dialog.open(Er,{width:"400px",data:{title:"Delete Position",message:`Are you sure you want to delete "${this.position.positionTitle}"? This action cannot be undone.`,confirmText:"Delete",cancelText:"Cancel"}}).afterClosed().subscribe(r=>{r&&this.positionService.delete(this.position.id).subscribe({next:()=>{let o=this.snackBar.open(`"${this.position.positionTitle}" has been deleted.`,"Close",{duration:3e3,horizontalPosition:"end",verticalPosition:"top"});o.afterDismissed().subscribe(()=>this.router.navigate(["/positions"])),o.onAction().subscribe(()=>this.router.navigate(["/positions"]))},error:o=>{console.error("Error deleting position:",o),this.showMessage("Failed to delete position. Please try again.")}})})}goBack(){this.router.navigate(["/positions"])}canEdit(){return this.authService.isHRAdmin()||this.authService.isManager()}canDelete(){return this.authService.isHRAdmin()||this.authService.isManager()}showMessage(i){this.snackBar.open(i,"Close",{duration:3e3,horizontalPosition:"end",verticalPosition:"top"})}};n.\u0275fac=function(r){return new(r||n)},n.\u0275cmp=E({type:n,selectors:[["app-position-detail"]],decls:4,vars:3,consts:[["class","loading-spinner",4,"ngIf"],[4,"ngIf"],[1,"loading-spinner"],[1,"header-actions"],["mat-icon-button","","color","primary","matTooltip","Edit Position",3,"click",4,"appHasRole"],["mat-icon-button","","color","warn","matTooltip","Delete Position",3,"click",4,"appHasRole"],["mat-icon-button","","matTooltip","Back to List",3,"click"],[1,"label"],[1,"value"],["mat-icon-button","","color","primary","matTooltip","Edit Position",3,"click"],["mat-icon-button","","color","warn","matTooltip","Delete Position",3,"click"]],template:function(r,o){r&1&&(k(0,"page-header"),R(1,x0e,2,0,"div",0)(2,T0e,41,14,"mat-card",1)(3,I0e,4,0,"mat-card",1)),r&2&&(g(),y("ngIf",o.loading),g(),y("ngIf",!o.loading&&o.position),g(),y("ngIf",!o.loading&&!o.position))},dependencies:[gt,li,ze,ti,$t,zt,Ut,Jt,Xt,ot,mt,ca,Fs,la,Ha,sa,Si,ki,pi,Mn,ni,Un,Sa],styles:[".loading-spinner[_ngcontent-%COMP%]{display:flex;justify-content:center;align-items:center;min-height:400px}mat-card[_ngcontent-%COMP%]{margin:16px;max-width:800px}mat-card-header[_ngcontent-%COMP%]{padding:16px;border-bottom:1px solid rgba(0,0,0,.12);display:flex;justify-content:space-between;align-items:center}mat-card-header[_ngcontent-%COMP%] mat-card-title[_ngcontent-%COMP%]{font-size:24px;font-weight:500;margin:0}mat-card-header[_ngcontent-%COMP%] .header-actions[_ngcontent-%COMP%]{display:flex;gap:8px}mat-card-content[_ngcontent-%COMP%]{padding:0}mat-list[_ngcontent-%COMP%]{padding:0}mat-list-item[_ngcontent-%COMP%]{height:auto!important;min-height:48px;padding:12px 16px;display:flex;justify-content:space-between;align-items:flex-start}mat-list-item[_ngcontent-%COMP%] .label[_ngcontent-%COMP%]{font-weight:500;color:#0009;min-width:180px}mat-list-item[_ngcontent-%COMP%] .value[_ngcontent-%COMP%]{flex:1;text-align:right;word-break:break-word}"]});let t=n;return t})();function A0e(t,n){t&1&&(h(0,"div",0),k(1,"mat-spinner"),p())}function O0e(t,n){t&1&&(h(0,"mat-error"),_(1," Position title is required "),p())}function R0e(t,n){t&1&&(h(0,"mat-error"),_(1," Position title cannot exceed 100 characters "),p())}function P0e(t,n){t&1&&(h(0,"mat-error"),_(1," Position number is required "),p())}function F0e(t,n){t&1&&(h(0,"mat-error"),_(1," Position number cannot exceed 50 characters "),p())}function N0e(t,n){t&1&&(h(0,"mat-error"),_(1," Position description cannot exceed 500 characters "),p())}function L0e(t,n){if(t&1&&(h(0,"mat-option",14),_(1),p()),t&2){let e=n.$implicit;y("value",e.id),g(),ve(" ",e.name," ")}}function V0e(t,n){t&1&&(h(0,"mat-error"),_(1," Department is required "),p())}function B0e(t,n){if(t&1&&(h(0,"mat-option",14),_(1),me(2,"number"),me(3,"number"),p()),t&2){let e=n.$implicit;y("value",e.id),g(),Cm(" ",e.name," ($",Ni(2,4,e.minSalary,"1.0-0")," - $",Ni(3,7,e.maxSalary,"1.0-0"),") ")}}function j0e(t,n){t&1&&(h(0,"mat-error"),_(1," Salary range is required "),p())}var sA=(()=>{let n=class n{constructor(){this.fb=u(eo),this.router=u(Re),this.route=u(wi),this.snackBar=u(di),this.positionService=u(Bc),this.departmentService=u(Vs),this.salaryRangeService=u(jc),this.loading=!1,this.isEditMode=!1,this.departments=[],this.salaryRanges=[]}ngOnInit(){this.initForm(),this.loadDepartments(),this.loadSalaryRanges(),this.checkEditMode()}initForm(){this.positionForm=this.fb.group({positionTitle:["",[Le.required,Le.maxLength(100)]],positionNumber:["",[Le.required,Le.maxLength(50)]],positionDescription:["",[Le.maxLength(500)]],departmentId:["",Le.required],salaryRangeId:["",Le.required]})}loadDepartments(){this.departmentService.getAll().subscribe({next:i=>{this.departments=i},error:i=>{console.error("Error loading departments:",i),this.showMessage("Error loading departments")}})}loadSalaryRanges(){this.salaryRangeService.getAll().subscribe({next:i=>{this.salaryRanges=i},error:i=>{console.error("Error loading salary ranges:",i),this.showMessage("Error loading salary ranges")}})}checkEditMode(){this.positionId=this.route.snapshot.paramMap.get("id")||void 0,this.isEditMode=!!this.positionId,this.isEditMode&&this.positionId&&this.loadPosition(this.positionId)}loadPosition(i){this.loading=!0,this.positionService.getById(i).subscribe({next:r=>{this.positionForm.patchValue({positionTitle:r.positionTitle,positionNumber:r.positionNumber,positionDescription:r.positionDescription,departmentId:r.departmentId,salaryRangeId:r.salaryRangeId}),this.loading=!1},error:r=>{console.error("Error loading position:",r),this.showMessage("Error loading position"),this.loading=!1}})}onSubmit(){if(this.positionForm.invalid){this.positionForm.markAllAsTouched();return}if(this.loading=!0,this.isEditMode&&this.positionId){let i=M({id:this.positionId},this.positionForm.value);this.positionService.updatePosition(i).subscribe({next:()=>{this.showMessage("Position updated successfully"),this.router.navigate(["/positions",this.positionId])},error:r=>{console.error("Error updating position:",r),this.showMessage("Error updating position"),this.loading=!1}})}else{let i=this.positionForm.value;this.positionService.createPosition(i).subscribe({next:r=>{console.log("Position created - Response:",r),console.log("Position ID:",r?.id),this.showMessage("Position created successfully"),r?.id?(console.log("Navigating to detail page:","/positions/"+r.id),this.router.navigate(["/positions",r.id])):(console.warn("No position ID returned, navigating to list page"),this.router.navigate(["/positions"])),this.loading=!1},error:r=>{console.error("Error creating position:",r),this.showMessage("Error creating position"),this.loading=!1}})}}onCancel(){this.router.navigate(["/positions"])}showMessage(i){this.snackBar.open(i,"Close",{duration:3e3,horizontalPosition:"end",verticalPosition:"top"})}getFormTitle(){return this.isEditMode?"Edit Position":"Create Position"}};n.\u0275fac=function(r){return new(r||n)},n.\u0275cmp=E({type:n,selectors:[["app-position-form"]],decls:43,vars:14,consts:[[1,"loading-overlay"],[3,"ngSubmit","formGroup"],[1,"form-section"],["appearance","outline",1,"full-width"],["matInput","","formControlName","positionTitle"],[4,"ngIf"],["matInput","","formControlName","positionNumber"],["matInput","","formControlName","positionDescription","rows","4"],["formControlName","departmentId"],[3,"value",4,"ngFor","ngForOf"],["formControlName","salaryRangeId"],[1,"form-actions"],["type","button","mat-stroked-button","",3,"click"],["type","submit","mat-raised-button","","color","primary",3,"disabled"],[3,"value"]],template:function(r,o){if(r&1&&(k(0,"page-header"),h(1,"mat-card")(2,"mat-card-header")(3,"mat-card-title"),_(4),p()(),h(5,"mat-card-content"),N(6,A0e,2,0,"div",0),h(7,"form",1),S("ngSubmit",function(){return o.onSubmit()}),h(8,"div",2)(9,"mat-form-field",3)(10,"mat-label"),_(11,"Position Title"),p(),k(12,"input",4),R(13,O0e,2,0,"mat-error",5)(14,R0e,2,0,"mat-error",5),p(),h(15,"mat-form-field",3)(16,"mat-label"),_(17,"Position Number"),p(),k(18,"input",6),R(19,P0e,2,0,"mat-error",5)(20,F0e,2,0,"mat-error",5),p(),h(21,"mat-form-field",3)(22,"mat-label"),_(23,"Position Description"),p(),k(24,"textarea",7),R(25,N0e,2,0,"mat-error",5),p(),h(26,"mat-form-field",3)(27,"mat-label"),_(28,"Department"),p(),h(29,"mat-select",8),R(30,L0e,2,2,"mat-option",9),p(),R(31,V0e,2,0,"mat-error",5),p(),h(32,"mat-form-field",3)(33,"mat-label"),_(34,"Salary Range"),p(),h(35,"mat-select",10),R(36,B0e,4,10,"mat-option",9),p(),R(37,j0e,2,0,"mat-error",5),p()(),h(38,"div",11)(39,"button",12),S("click",function(){return o.onCancel()}),_(40," Cancel "),p(),h(41,"button",13),_(42),p()()()()()),r&2){let a,s,l,c,d,m,f;g(4),H(o.getFormTitle()),g(2),L(o.loading?6:-1),g(),y("formGroup",o.positionForm),g(6),y("ngIf",(a=o.positionForm.get("positionTitle"))==null?null:a.hasError("required")),g(),y("ngIf",(s=o.positionForm.get("positionTitle"))==null?null:s.hasError("maxlength")),g(5),y("ngIf",(l=o.positionForm.get("positionNumber"))==null?null:l.hasError("required")),g(),y("ngIf",(c=o.positionForm.get("positionNumber"))==null?null:c.hasError("maxlength")),g(5),y("ngIf",(d=o.positionForm.get("positionDescription"))==null?null:d.hasError("maxlength")),g(5),y("ngForOf",o.departments),g(),y("ngIf",(m=o.positionForm.get("departmentId"))==null?null:m.hasError("required")),g(5),y("ngForOf",o.salaryRanges),g(),y("ngIf",(f=o.positionForm.get("salaryRangeId"))==null?null:f.hasError("required")),g(4),y("disabled",o.loading),g(),ve(" ",o.isEditMode?"Update":"Create"," ")}},dependencies:[gt,qr,li,zn,Jr,Qi,ei,Xr,Ki,Lr,ze,kt,$t,zt,Ut,Jt,Xt,$i,Oi,sn,xo,rr,hn,fc,Na,xn,Si,ki,pi,ni,ff],styles:["mat-card[_ngcontent-%COMP%]{margin:16px;max-width:800px}mat-card-header[_ngcontent-%COMP%]{margin-bottom:16px;padding:16px;border-bottom:1px solid rgba(0,0,0,.12)}mat-card-header[_ngcontent-%COMP%] mat-card-title[_ngcontent-%COMP%]{font-size:20px;font-weight:500;margin:0}mat-card-content[_ngcontent-%COMP%]{padding:16px;position:relative}.loading-overlay[_ngcontent-%COMP%]{position:absolute;inset:0;background-color:#fffc;display:flex;align-items:center;justify-content:center;z-index:1000}.form-section[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:16px;margin-bottom:24px}.form-section[_ngcontent-%COMP%] .full-width[_ngcontent-%COMP%]{width:100%}.form-actions[_ngcontent-%COMP%]{display:flex;gap:12px;justify-content:flex-end;padding-top:16px;border-top:1px solid rgba(0,0,0,.12)}"]});let t=n;return t})();var KU=()=>["HRAdmin","Manager"],H0e=()=>[5,10,25,50],z0e=()=>["HRAdmin"];function U0e(t,n){if(t&1){let e=Y();h(0,"button",6),S("click",function(){I(e);let r=C();return A(r.createSalaryRange())}),h(1,"mat-icon"),_(2,"add"),p(),_(3," Add Salary Range "),p()}}function $0e(t,n){t&1&&(h(0,"div",7),k(1,"mat-spinner"),p())}function W0e(t,n){t&1&&(h(0,"th",20),_(1,"Range Name"),p())}function G0e(t,n){if(t&1&&(h(0,"td",21),_(1),p()),t&2){let e=n.$implicit;g(),H(e.name)}}function q0e(t,n){t&1&&(h(0,"th",20),_(1,"Minimum Salary"),p())}function Y0e(t,n){if(t&1&&(h(0,"td",21),_(1),me(2,"currency"),p()),t&2){let e=n.$implicit;g(),H(Dm(2,1,e.minSalary,"USD","symbol","1.0-0"))}}function Q0e(t,n){t&1&&(h(0,"th",20),_(1,"Maximum Salary"),p())}function K0e(t,n){if(t&1&&(h(0,"td",21),_(1),me(2,"currency"),p()),t&2){let e=n.$implicit;g(),H(Dm(2,1,e.maxSalary,"USD","symbol","1.0-0"))}}function Z0e(t,n){t&1&&(h(0,"th",22),_(1,"Actions"),p())}function X0e(t,n){if(t&1){let e=Y();h(0,"button",28),S("click",function(){I(e);let r=C().$implicit,o=C(2);return A(o.editSalaryRange(r))}),h(1,"mat-icon"),_(2,"edit"),p()()}}function J0e(t,n){if(t&1){let e=Y();h(0,"button",29),S("click",function(){I(e);let r=C().$implicit,o=C(2);return A(o.deleteSalaryRange(r))}),h(1,"mat-icon"),_(2,"delete"),p()()}}function eye(t,n){if(t&1){let e=Y();h(0,"td",23)(1,"div",24)(2,"button",25),S("click",function(){let r=I(e).$implicit,o=C(2);return A(o.viewSalaryRange(r))}),h(3,"mat-icon"),_(4,"visibility"),p()(),R(5,X0e,3,0,"button",26)(6,J0e,3,0,"button",27),p()()}t&2&&(g(5),y("appHasRole",at(2,KU)),g(),y("appHasRole",at(3,z0e)))}function tye(t,n){t&1&&k(0,"tr",30)}function iye(t,n){t&1&&k(0,"tr",31)}function nye(t,n){if(t&1&&(h(0,"tr",32)(1,"td",33)(2,"div",34)(3,"mat-icon"),_(4,"money_off"),p(),h(5,"p"),_(6,"No salary ranges found"),p()()()()),t&2){let e=C(2);g(),X("colspan",e.displayedColumns.length)}}function rye(t,n){if(t&1&&(h(0,"table",8),jt(1,9),R(2,W0e,2,0,"th",10)(3,G0e,2,1,"td",11),Lt(),jt(4,12),R(5,q0e,2,0,"th",10)(6,Y0e,3,6,"td",11),Lt(),jt(7,13),R(8,Q0e,2,0,"th",10)(9,K0e,3,6,"td",11),Lt(),jt(10,14),R(11,Z0e,2,0,"th",15)(12,eye,7,4,"td",16),Lt(),R(13,tye,1,0,"tr",17)(14,iye,1,0,"tr",18)(15,nye,7,1,"tr",19),p()),t&2){let e=C();y("dataSource",e.dataSource),g(13),y("matHeaderRowDef",e.displayedColumns),g(),y("matRowDefColumns",e.displayedColumns)}}var ZU=(()=>{let n=class n{constructor(){this.salaryRangeService=u(jc),this.authService=u(Tt),this.router=u(Re),this.snackBar=u(di),this.dialog=u(En),this.dataSource=new fw([]),this.loading=!1,this.displayedColumns=["name","minSalary","maxSalary","actions"]}ngOnInit(){this.loadSalaryRanges()}ngAfterViewInit(){this.dataSource.paginator=this.paginator,this.dataSource.sort=this.sort}loadSalaryRanges(){this.loading=!0,this.salaryRangeService.getAll().subscribe({next:i=>{this.dataSource.data=i,this.loading=!1},error:i=>{console.error("Error loading salary ranges:",i),this.loading=!1}})}createSalaryRange(){this.router.navigate(["/salary-ranges/create"])}viewSalaryRange(i){this.router.navigate(["/salary-ranges",i.id])}editSalaryRange(i){this.router.navigate(["/salary-ranges/edit",i.id])}deleteSalaryRange(i){this.dialog.open(Er,{width:"400px",data:{title:"Delete Salary Range",message:`Are you sure you want to delete "${i.name}"? This action cannot be undone.`,confirmText:"Delete",cancelText:"Cancel"}}).afterClosed().subscribe(o=>{o&&this.salaryRangeService.delete(i.id).subscribe({next:()=>{this.showMessage(`"${i.name}" has been deleted.`),this.loadSalaryRanges()},error:a=>{console.error("Error deleting salary range:",a),this.showMessage("Failed to delete salary range. Please try again.")}})})}showMessage(i){this.snackBar.open(i,"Close",{duration:3e3,horizontalPosition:"end",verticalPosition:"top"})}canEdit(){return this.authService.hasRole("HRAdmin")||this.authService.hasRole("Manager")}};n.\u0275fac=function(r){return new(r||n)},n.\u0275cmp=E({type:n,selectors:[["app-salary-range-list"]],viewQuery:function(r,o){if(r&1&&(ie(ir,5),ie(Ml,5)),r&2){let a;B(a=j())&&(o.paginator=a.first),B(a=j())&&(o.sort=a.first)}},decls:12,vars:6,consts:[[1,"flex-spacer"],["mat-raised-button","","color","primary",3,"click",4,"appHasRole"],[1,"table-container"],["class","loading-spinner",4,"ngIf"],["mat-table","","matSort","","class","salary-range-table",3,"dataSource",4,"ngIf"],["showFirstLastButtons","",3,"pageSizeOptions"],["mat-raised-button","","color","primary",3,"click"],[1,"loading-spinner"],["mat-table","","matSort","",1,"salary-range-table",3,"dataSource"],["matColumnDef","name"],["mat-header-cell","","mat-sort-header","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","minSalary"],["matColumnDef","maxSalary"],["matColumnDef","actions"],["mat-header-cell","","class","mat-column-actions",4,"matHeaderCellDef"],["mat-cell","","class","mat-column-actions",4,"matCellDef"],["mat-header-row","",4,"matHeaderRowDef"],["mat-row","",4,"matRowDef","matRowDefColumns"],["class","mat-row",4,"matNoDataRow"],["mat-header-cell","","mat-sort-header",""],["mat-cell",""],["mat-header-cell","",1,"mat-column-actions"],["mat-cell","",1,"mat-column-actions"],[1,"action-buttons"],["mat-icon-button","","color","primary","matTooltip","View Details",3,"click"],["mat-icon-button","","color","accent","matTooltip","Edit Salary Range",3,"click",4,"appHasRole"],["mat-icon-button","","color","warn","matTooltip","Delete Salary Range",3,"click",4,"appHasRole"],["mat-icon-button","","color","accent","matTooltip","Edit Salary Range",3,"click"],["mat-icon-button","","color","warn","matTooltip","Delete Salary Range",3,"click"],["mat-header-row",""],["mat-row",""],[1,"mat-row"],[1,"mat-cell"],[1,"no-data"]],template:function(r,o){r&1&&(k(0,"page-header"),h(1,"mat-card")(2,"mat-card-header")(3,"mat-card-title"),_(4,"Salary Ranges"),p(),k(5,"span",0),R(6,U0e,4,0,"button",1),p(),h(7,"mat-card-content")(8,"div",2),R(9,$0e,2,0,"div",3)(10,rye,16,3,"table",4),p(),k(11,"mat-paginator",5),p()()),r&2&&(g(6),y("appHasRole",at(4,KU)),g(3),y("ngIf",o.loading),g(),y("ngIf",!o.loading),g(),y("pageSizeOptions",at(5,H0e)))},dependencies:[gt,li,ze,kt,ti,$t,zt,Ut,Jt,Xt,ot,mt,Zc,Hc,Uc,qc,$c,zc,Yc,Wc,Gc,Qc,Kc,gw,_c,ir,Ew,Ml,Dw,Si,ki,Br,Eo,pi,Mn,ni,Un,il],styles:["mat-card[_ngcontent-%COMP%]{margin:16px}mat-card-header[_ngcontent-%COMP%]{display:flex;align-items:center;margin-bottom:16px;padding:16px;border-bottom:1px solid rgba(0,0,0,.12)}mat-card-header[_ngcontent-%COMP%] mat-card-title[_ngcontent-%COMP%]{font-size:20px;font-weight:500;margin:0}mat-card-header[_ngcontent-%COMP%] .flex-spacer[_ngcontent-%COMP%]{flex:1 1 auto}mat-card-header[_ngcontent-%COMP%] button[_ngcontent-%COMP%] mat-icon[_ngcontent-%COMP%]{margin-right:4px}mat-card-content[_ngcontent-%COMP%]{padding:0}.table-container[_ngcontent-%COMP%]{position:relative;min-height:300px;overflow-x:auto}.loading-spinner[_ngcontent-%COMP%]{display:flex;justify-content:center;align-items:center;min-height:300px}.salary-range-table[_ngcontent-%COMP%]{width:100%}.salary-range-table[_ngcontent-%COMP%] th[_ngcontent-%COMP%]{font-weight:600;font-size:14px;color:#000000de}.salary-range-table[_ngcontent-%COMP%] td[_ngcontent-%COMP%]{font-size:14px;color:#000000de}.salary-range-table[_ngcontent-%COMP%] .mat-column-name[_ngcontent-%COMP%]{min-width:200px}.salary-range-table[_ngcontent-%COMP%] .mat-column-minSalary[_ngcontent-%COMP%], .salary-range-table[_ngcontent-%COMP%] .mat-column-maxSalary[_ngcontent-%COMP%]{min-width:150px}.salary-range-table[_ngcontent-%COMP%] .mat-column-actions[_ngcontent-%COMP%]{width:150px;text-align:right}.salary-range-table[_ngcontent-%COMP%] .action-buttons[_ngcontent-%COMP%]{display:flex;justify-content:flex-end;gap:4px}.salary-range-table[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{margin-left:4px}.no-data[_ngcontent-%COMP%]{display:flex;flex-direction:column;align-items:center;justify-content:center;padding:48px 16px;color:#0000008a}.no-data[_ngcontent-%COMP%] mat-icon[_ngcontent-%COMP%]{font-size:48px;width:48px;height:48px;margin-bottom:16px}.no-data[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{margin:0;font-size:16px}mat-paginator[_ngcontent-%COMP%]{border-top:1px solid rgba(0,0,0,.12)}"]});let t=n;return t})();var XU=()=>["HRAdmin","Manager"];function oye(t,n){t&1&&(h(0,"div",2),k(1,"mat-spinner"),p())}function aye(t,n){if(t&1){let e=Y();h(0,"button",9),S("click",function(){I(e);let r=C(2);return A(r.editSalaryRange())}),h(1,"mat-icon"),_(2,"edit"),p()()}}function sye(t,n){if(t&1){let e=Y();h(0,"button",10),S("click",function(){I(e);let r=C(2);return A(r.deleteSalaryRange())}),h(1,"mat-icon"),_(2,"delete"),p()()}}function lye(t,n){if(t&1&&(h(0,"mat-list-item")(1,"span",7),_(2,"Created:"),p(),h(3,"span",8),_(4),me(5,"date"),p()()),t&2){let e=C(2);g(4),H(Ni(5,1,e.salaryRange.createdAt,"medium"))}}function cye(t,n){t&1&&k(0,"mat-divider")}function dye(t,n){if(t&1&&(h(0,"mat-list-item")(1,"span",7),_(2,"Last Modified:"),p(),h(3,"span",8),_(4),me(5,"date"),p()()),t&2){let e=C(2);g(4),H(Ni(5,1,e.salaryRange.lastModifiedAt,"medium"))}}function uye(t,n){if(t&1){let e=Y();h(0,"mat-card")(1,"mat-card-header")(2,"mat-card-title"),_(3),p(),h(4,"div",3),R(5,aye,3,0,"button",4)(6,sye,3,0,"button",5),h(7,"button",6),S("click",function(){I(e);let r=C();return A(r.goBack())}),h(8,"mat-icon"),_(9,"arrow_back"),p()()()(),h(10,"mat-card-content")(11,"mat-list")(12,"mat-list-item")(13,"span",7),_(14,"Name:"),p(),h(15,"span",8),_(16),p()(),k(17,"mat-divider"),h(18,"mat-list-item")(19,"span",7),_(20,"Minimum Salary:"),p(),h(21,"span",8),_(22),me(23,"currency"),p()(),k(24,"mat-divider"),h(25,"mat-list-item")(26,"span",7),_(27,"Maximum Salary:"),p(),h(28,"span",8),_(29),me(30,"currency"),p()(),k(31,"mat-divider"),R(32,lye,6,4,"mat-list-item",1)(33,cye,1,0,"mat-divider",1)(34,dye,6,4,"mat-list-item",1),p()()()}if(t&2){let e=C();g(3),H(e.salaryRange.name),g(2),y("appHasRole",at(13,XU)),g(),y("appHasRole",at(14,XU)),g(10),H(e.salaryRange.name),g(6),H(Oe(23,9,e.salaryRange.minSalary)),g(7),H(Oe(30,11,e.salaryRange.maxSalary)),g(3),y("ngIf",e.salaryRange.createdAt),g(),y("ngIf",e.salaryRange.createdAt),g(),y("ngIf",e.salaryRange.lastModifiedAt)}}function mye(t,n){t&1&&(h(0,"mat-card")(1,"mat-card-content")(2,"p"),_(3,"Salary range not found."),p()()())}var JU=(()=>{let n=class n{constructor(){this.salaryRangeService=u(jc),this.authService=u(Tt),this.route=u(wi),this.router=u(Re),this.snackBar=u(di),this.dialog=u(En),this.loading=!1}ngOnInit(){let i=this.route.snapshot.paramMap.get("id");i&&this.loadSalaryRange(i)}loadSalaryRange(i){this.loading=!0,this.salaryRangeService.getById(i).subscribe({next:r=>{this.salaryRange=r,this.loading=!1},error:r=>{console.error("Error loading salary range:",r),this.showMessage("Error loading salary range"),this.loading=!1,this.router.navigate(["/salary-ranges"])}})}editSalaryRange(){this.router.navigate(["/salary-ranges","edit",this.salaryRange.id])}deleteSalaryRange(){this.dialog.open(Er,{width:"400px",data:{title:"Delete Salary Range",message:`Are you sure you want to delete "${this.salaryRange.name}"? This action cannot be undone.`,confirmText:"Delete",cancelText:"Cancel"}}).afterClosed().subscribe(r=>{r&&this.salaryRangeService.delete(this.salaryRange.id).subscribe({next:()=>{let o=this.snackBar.open(`"${this.salaryRange.name}" has been deleted.`,"Close",{duration:3e3,horizontalPosition:"end",verticalPosition:"top"});o.afterDismissed().subscribe(()=>this.router.navigate(["/salary-ranges"])),o.onAction().subscribe(()=>this.router.navigate(["/salary-ranges"]))},error:o=>{console.error("Error deleting salary range:",o),this.showMessage("Failed to delete salary range. Please try again.")}})})}goBack(){this.router.navigate(["/salary-ranges"])}canEdit(){return this.authService.isHRAdmin()||this.authService.isManager()}canDelete(){return this.authService.isHRAdmin()||this.authService.isManager()}showMessage(i){this.snackBar.open(i,"Close",{duration:3e3,horizontalPosition:"end",verticalPosition:"top"})}};n.\u0275fac=function(r){return new(r||n)},n.\u0275cmp=E({type:n,selectors:[["app-salary-range-detail"]],decls:4,vars:3,consts:[["class","loading-spinner",4,"ngIf"],[4,"ngIf"],[1,"loading-spinner"],[1,"header-actions"],["mat-icon-button","","color","primary","matTooltip","Edit Salary Range",3,"click",4,"appHasRole"],["mat-icon-button","","color","warn","matTooltip","Delete Salary Range",3,"click",4,"appHasRole"],["mat-icon-button","","matTooltip","Back to List",3,"click"],[1,"label"],[1,"value"],["mat-icon-button","","color","primary","matTooltip","Edit Salary Range",3,"click"],["mat-icon-button","","color","warn","matTooltip","Delete Salary Range",3,"click"]],template:function(r,o){r&1&&(k(0,"page-header"),R(1,oye,2,0,"div",0)(2,uye,35,15,"mat-card",1)(3,mye,4,0,"mat-card",1)),r&2&&(g(),y("ngIf",o.loading),g(),y("ngIf",!o.loading&&o.salaryRange),g(),y("ngIf",!o.loading&&!o.salaryRange))},dependencies:[gt,li,ze,ti,$t,zt,Ut,Jt,Xt,ot,mt,ca,Fs,la,Ha,sa,Si,ki,pi,Mn,ni,Un,il,Sa],styles:[".loading-spinner[_ngcontent-%COMP%]{display:flex;justify-content:center;align-items:center;min-height:400px}mat-card[_ngcontent-%COMP%]{margin:16px;max-width:800px}mat-card-header[_ngcontent-%COMP%]{padding:16px;border-bottom:1px solid rgba(0,0,0,.12);display:flex;justify-content:space-between;align-items:center}mat-card-header[_ngcontent-%COMP%] mat-card-title[_ngcontent-%COMP%]{font-size:24px;font-weight:500;margin:0}mat-card-header[_ngcontent-%COMP%] .header-actions[_ngcontent-%COMP%]{display:flex;gap:8px}mat-card-content[_ngcontent-%COMP%]{padding:0}mat-list[_ngcontent-%COMP%]{padding:0}mat-list-item[_ngcontent-%COMP%]{height:auto!important;min-height:48px;padding:12px 16px;display:flex;justify-content:space-between;align-items:flex-start}mat-list-item[_ngcontent-%COMP%] .label[_ngcontent-%COMP%]{font-weight:500;color:#0009;min-width:180px}mat-list-item[_ngcontent-%COMP%] .value[_ngcontent-%COMP%]{flex:1;text-align:right;word-break:break-word}"]});let t=n;return t})();function hye(t,n){t&1&&(h(0,"div",0),k(1,"mat-spinner"),p())}function pye(t,n){t&1&&(h(0,"mat-error"),_(1," Range name is required "),p())}function fye(t,n){t&1&&(h(0,"mat-error"),_(1," Range name cannot exceed 100 characters "),p())}function gye(t,n){t&1&&(h(0,"mat-error"),_(1," Minimum salary is required "),p())}function _ye(t,n){t&1&&(h(0,"mat-error"),_(1," Minimum salary must be at least 0 "),p())}function bye(t,n){t&1&&(h(0,"mat-error"),_(1," Maximum salary is required "),p())}function vye(t,n){t&1&&(h(0,"mat-error"),_(1," Maximum salary must be at least 0 "),p())}function yye(t,n){t&1&&(h(0,"mat-error",13),_(1," Maximum salary must be greater than minimum salary "),p())}var lA=(()=>{let n=class n{constructor(){this.fb=u(eo),this.router=u(Re),this.route=u(wi),this.snackBar=u(di),this.salaryRangeService=u(jc),this.loading=!1,this.isEditMode=!1}ngOnInit(){this.initForm(),this.checkEditMode()}initForm(){this.salaryRangeForm=this.fb.group({name:["",[Le.required,Le.maxLength(100)]],minSalary:["",[Le.required,Le.min(0)]],maxSalary:["",[Le.required,Le.min(0)]]},{validators:this.salaryRangeValidator})}salaryRangeValidator(i){let r=i.get("minSalary")?.value,o=i.get("maxSalary")?.value;return r&&o&&parseFloat(r)>=parseFloat(o)?{salaryRangeInvalid:!0}:null}checkEditMode(){this.salaryRangeId=this.route.snapshot.paramMap.get("id")||void 0,this.isEditMode=!!this.salaryRangeId,this.isEditMode&&this.salaryRangeId&&this.loadSalaryRange(this.salaryRangeId)}loadSalaryRange(i){this.loading=!0,this.salaryRangeService.getById(i).subscribe({next:r=>{this.salaryRangeForm.patchValue({name:r.name,minSalary:r.minSalary,maxSalary:r.maxSalary}),this.loading=!1},error:r=>{console.error("Error loading salary range:",r),this.showMessage("Error loading salary range"),this.loading=!1}})}onSubmit(){if(this.salaryRangeForm.invalid){this.salaryRangeForm.markAllAsTouched();return}if(this.loading=!0,this.isEditMode&&this.salaryRangeId){let i={id:this.salaryRangeId,name:this.salaryRangeForm.value.name,minSalary:parseFloat(this.salaryRangeForm.value.minSalary),maxSalary:parseFloat(this.salaryRangeForm.value.maxSalary)};this.salaryRangeService.updateSalaryRange(i).subscribe({next:()=>{this.showMessage("Salary range updated successfully"),this.router.navigate(["/salary-ranges",this.salaryRangeId])},error:r=>{console.error("Error updating salary range:",r),this.showMessage("Error updating salary range"),this.loading=!1}})}else{let i={name:this.salaryRangeForm.value.name,minSalary:parseFloat(this.salaryRangeForm.value.minSalary),maxSalary:parseFloat(this.salaryRangeForm.value.maxSalary)};this.salaryRangeService.createSalaryRange(i).subscribe({next:r=>{console.log("Salary range created - Response:",r),console.log("Salary range ID:",r?.id),this.showMessage("Salary range created successfully"),r?.id?(console.log("Navigating to detail page:","/salary-ranges/"+r.id),this.router.navigate(["/salary-ranges",r.id])):(console.warn("No salary range ID returned, navigating to list page"),this.router.navigate(["/salary-ranges"])),this.loading=!1},error:r=>{console.error("Error creating salary range:",r),this.showMessage("Error creating salary range"),this.loading=!1}})}}onCancel(){this.router.navigate(["/salary-ranges"])}showMessage(i){this.snackBar.open(i,"Close",{duration:3e3,horizontalPosition:"end",verticalPosition:"top"})}getFormTitle(){return this.isEditMode?"Edit Salary Range":"Create Salary Range"}};n.\u0275fac=function(r){return new(r||n)},n.\u0275cmp=E({type:n,selectors:[["app-salary-range-form"]],decls:37,vars:12,consts:[[1,"loading-overlay"],[3,"ngSubmit","formGroup"],[1,"form-section"],["appearance","outline",1,"full-width"],["matInput","","formControlName","name"],[4,"ngIf"],["matInput","","type","number","formControlName","minSalary"],["matTextPrefix",""],["matInput","","type","number","formControlName","maxSalary"],["class","range-error",4,"ngIf"],[1,"form-actions"],["type","button","mat-stroked-button","",3,"click"],["type","submit","mat-raised-button","","color","primary",3,"disabled"],[1,"range-error"]],template:function(r,o){if(r&1&&(k(0,"page-header"),h(1,"mat-card")(2,"mat-card-header")(3,"mat-card-title"),_(4),p()(),h(5,"mat-card-content"),N(6,hye,2,0,"div",0),h(7,"form",1),S("ngSubmit",function(){return o.onSubmit()}),h(8,"div",2)(9,"mat-form-field",3)(10,"mat-label"),_(11,"Range Name"),p(),k(12,"input",4),R(13,pye,2,0,"mat-error",5)(14,fye,2,0,"mat-error",5),p(),h(15,"mat-form-field",3)(16,"mat-label"),_(17,"Minimum Salary"),p(),k(18,"input",6),h(19,"span",7),_(20,"$\xA0"),p(),R(21,gye,2,0,"mat-error",5)(22,_ye,2,0,"mat-error",5),p(),h(23,"mat-form-field",3)(24,"mat-label"),_(25,"Maximum Salary"),p(),k(26,"input",8),h(27,"span",7),_(28,"$\xA0"),p(),R(29,bye,2,0,"mat-error",5)(30,vye,2,0,"mat-error",5),p(),R(31,yye,2,0,"mat-error",9),p(),h(32,"div",10)(33,"button",11),S("click",function(){return o.onCancel()}),_(34," Cancel "),p(),h(35,"button",12),_(36),p()()()()()),r&2){let a,s,l,c,d,m;g(4),H(o.getFormTitle()),g(2),L(o.loading?6:-1),g(),y("formGroup",o.salaryRangeForm),g(6),y("ngIf",(a=o.salaryRangeForm.get("name"))==null?null:a.hasError("required")),g(),y("ngIf",(s=o.salaryRangeForm.get("name"))==null?null:s.hasError("maxlength")),g(7),y("ngIf",(l=o.salaryRangeForm.get("minSalary"))==null?null:l.hasError("required")),g(),y("ngIf",(c=o.salaryRangeForm.get("minSalary"))==null?null:c.hasError("min")),g(7),y("ngIf",(d=o.salaryRangeForm.get("maxSalary"))==null?null:d.hasError("required")),g(),y("ngIf",(m=o.salaryRangeForm.get("maxSalary"))==null?null:m.hasError("min")),g(),y("ngIf",o.salaryRangeForm.hasError("salaryRangeInvalid")&&o.salaryRangeForm.touched),g(4),y("disabled",o.loading),g(),ve(" ",o.isEditMode?"Update":"Create"," ")}},dependencies:[gt,li,zn,Jr,Qi,cu,ei,Xr,Ki,Lr,ze,kt,$t,zt,Ut,Jt,Xt,$i,Oi,sn,xo,nu,rr,hn,Si,ki,pi,ni],styles:["mat-card[_ngcontent-%COMP%]{margin:16px;max-width:800px}mat-card-header[_ngcontent-%COMP%]{margin-bottom:16px;padding:16px;border-bottom:1px solid rgba(0,0,0,.12)}mat-card-header[_ngcontent-%COMP%] mat-card-title[_ngcontent-%COMP%]{font-size:20px;font-weight:500;margin:0}mat-card-content[_ngcontent-%COMP%]{padding:16px;position:relative}.loading-overlay[_ngcontent-%COMP%]{position:absolute;inset:0;background-color:#fffc;display:flex;align-items:center;justify-content:center;z-index:1000}.form-section[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:16px;margin-bottom:24px}.form-section[_ngcontent-%COMP%] .full-width[_ngcontent-%COMP%]{width:100%}.form-section[_ngcontent-%COMP%] .range-error[_ngcontent-%COMP%]{color:#f44336;font-size:12px;margin-top:-8px}.form-actions[_ngcontent-%COMP%]{display:flex;gap:12px;justify-content:flex-end;padding-top:16px;border-top:1px solid rgba(0,0,0,.12)}"]});let t=n;return t})();var xye=["*",[["mat-chip-avatar"],["","matChipAvatar",""]],[["mat-chip-trailing-icon"],["","matChipRemove",""],["","matChipTrailingIcon",""]]],Cye=["*","mat-chip-avatar, [matChipAvatar]","mat-chip-trailing-icon,[matChipRemove],[matChipTrailingIcon]"];function wye(t,n){t&1&&(h(0,"span",3),oe(1,1),p())}function Dye(t,n){t&1&&(h(0,"span",6),oe(1,2),p())}var Eye=["*"];var Mye=new T("mat-chips-default-options",{providedIn:"root",factory:()=>({separatorKeyCodes:[13]})}),e6=new T("MatChipAvatar"),t6=new T("MatChipTrailingIcon"),i6=new T("MatChipEdit"),n6=new T("MatChipRemove"),o6=new T("MatChip"),r6=(()=>{class t{_elementRef=u(q);_parentChip=u(o6);isInteractive=!0;_isPrimary=!0;_isLeading=!1;get disabled(){return this._disabled||this._parentChip?.disabled||!1}set disabled(e){this._disabled=e}_disabled=!1;tabIndex=-1;_allowFocusWhenDisabled=!1;_getDisabledAttribute(){return this.disabled&&!this._allowFocusWhenDisabled?"":null}_getTabindex(){return this.disabled&&!this._allowFocusWhenDisabled||!this.isInteractive?null:this.tabIndex.toString()}constructor(){u(ut).load(Di),this._elementRef.nativeElement.nodeName==="BUTTON"&&this._elementRef.nativeElement.setAttribute("type","button")}focus(){this._elementRef.nativeElement.focus()}_handleClick(e){!this.disabled&&this.isInteractive&&this._isPrimary&&(e.preventDefault(),this._parentChip._handlePrimaryActionInteraction())}_handleKeydown(e){(e.keyCode===13||e.keyCode===32)&&!this.disabled&&this.isInteractive&&this._isPrimary&&!this._parentChip._isEditing&&(e.preventDefault(),this._parentChip._handlePrimaryActionInteraction())}static \u0275fac=function(i){return new(i||t)};static \u0275dir=F({type:t,selectors:[["","matChipAction",""]],hostAttrs:[1,"mdc-evolution-chip__action","mat-mdc-chip-action"],hostVars:11,hostBindings:function(i,r){i&1&&S("click",function(a){return r._handleClick(a)})("keydown",function(a){return r._handleKeydown(a)}),i&2&&(X("tabindex",r._getTabindex())("disabled",r._getDisabledAttribute())("aria-disabled",r.disabled),G("mdc-evolution-chip__action--primary",r._isPrimary)("mdc-evolution-chip__action--presentational",!r.isInteractive)("mdc-evolution-chip__action--secondary",!r._isPrimary)("mdc-evolution-chip__action--trailing",!r._isPrimary&&!r._isLeading))},inputs:{isInteractive:"isInteractive",disabled:[2,"disabled","disabled",V],tabIndex:[2,"tabIndex","tabIndex",e=>e==null?-1:ct(e)],_allowFocusWhenDisabled:"_allowFocusWhenDisabled"}})}return t})();var cA=(()=>{class t{_changeDetectorRef=u(ye);_elementRef=u(q);_tagName=u(ZM);_ngZone=u(ae);_focusMonitor=u(Yt);_globalRippleOptions=u(Cs,{optional:!0});_document=u(ge);_onFocus=new z;_onBlur=new z;_isBasicChip;role=null;_hasFocusInternal=!1;_pendingFocus;_actionChanges;_animationsDisabled=Ye();_allLeadingIcons;_allTrailingIcons;_allEditIcons;_allRemoveIcons;_hasFocus(){return this._hasFocusInternal}id=u(Ze).getId("mat-mdc-chip-");ariaLabel=null;ariaDescription=null;_chipListDisabled=!1;_hadFocusOnRemove=!1;_textElement;get value(){return this._value!==void 0?this._value:this._textElement.textContent.trim()}set value(e){this._value=e}_value;color;removable=!0;highlighted=!1;disableRipple=!1;get disabled(){return this._disabled||this._chipListDisabled}set disabled(e){this._disabled=e}_disabled=!1;removed=new U;destroyed=new U;basicChipAttrName="mat-basic-chip";leadingIcon;editIcon;trailingIcon;removeIcon;primaryAction;_rippleLoader=u(Z0);_injector=u(de);constructor(){let e=u(ut);e.load(Di),e.load(Qr),this._monitorFocus(),this._rippleLoader?.configureRipple(this._elementRef.nativeElement,{className:"mat-mdc-chip-ripple",disabled:this._isRippleDisabled()})}ngOnInit(){this._isBasicChip=this._elementRef.nativeElement.hasAttribute(this.basicChipAttrName)||this._tagName.toLowerCase()===this.basicChipAttrName}ngAfterViewInit(){this._textElement=this._elementRef.nativeElement.querySelector(".mat-mdc-chip-action-label"),this._pendingFocus&&(this._pendingFocus=!1,this.focus())}ngAfterContentInit(){this._actionChanges=Je(this._allLeadingIcons.changes,this._allTrailingIcons.changes,this._allEditIcons.changes,this._allRemoveIcons.changes).subscribe(()=>this._changeDetectorRef.markForCheck())}ngDoCheck(){this._rippleLoader.setDisabled(this._elementRef.nativeElement,this._isRippleDisabled())}ngOnDestroy(){this._focusMonitor.stopMonitoring(this._elementRef),this._rippleLoader?.destroyRipple(this._elementRef.nativeElement),this._actionChanges?.unsubscribe(),this.destroyed.emit({chip:this}),this.destroyed.complete()}remove(){this.removable&&(this._hadFocusOnRemove=this._hasFocus(),this.removed.emit({chip:this}))}_isRippleDisabled(){return this.disabled||this.disableRipple||this._animationsDisabled||this._isBasicChip||!this._hasInteractiveActions()||!!this._globalRippleOptions?.disabled}_hasTrailingIcon(){return!!(this.trailingIcon||this.removeIcon)}_handleKeydown(e){(e.keyCode===8&&!e.repeat||e.keyCode===46)&&(e.preventDefault(),this.remove())}focus(){this.disabled||(this.primaryAction?this.primaryAction.focus():this._pendingFocus=!0)}_getSourceAction(e){return this._getActions().find(i=>{let r=i._elementRef.nativeElement;return r===e||r.contains(e)})}_getActions(){let e=[];return this.editIcon&&e.push(this.editIcon),this.primaryAction&&e.push(this.primaryAction),this.removeIcon&&e.push(this.removeIcon),this.trailingIcon&&e.push(this.trailingIcon),e}_handlePrimaryActionInteraction(){}_hasInteractiveActions(){return this._getActions().some(e=>e.isInteractive)}_edit(e){}_monitorFocus(){this._focusMonitor.monitor(this._elementRef,!0).subscribe(e=>{let i=e!==null;i!==this._hasFocusInternal&&(this._hasFocusInternal=i,i?this._onFocus.next({chip:this}):(this._changeDetectorRef.markForCheck(),setTimeout(()=>this._ngZone.run(()=>this._onBlur.next({chip:this})))))})}static \u0275fac=function(i){return new(i||t)};static \u0275cmp=E({type:t,selectors:[["mat-basic-chip"],["","mat-basic-chip",""],["mat-chip"],["","mat-chip",""]],contentQueries:function(i,r,o){if(i&1&&(xe(o,e6,5),xe(o,i6,5),xe(o,t6,5),xe(o,n6,5),xe(o,e6,5),xe(o,t6,5),xe(o,i6,5),xe(o,n6,5)),i&2){let a;B(a=j())&&(r.leadingIcon=a.first),B(a=j())&&(r.editIcon=a.first),B(a=j())&&(r.trailingIcon=a.first),B(a=j())&&(r.removeIcon=a.first),B(a=j())&&(r._allLeadingIcons=a),B(a=j())&&(r._allTrailingIcons=a),B(a=j())&&(r._allEditIcons=a),B(a=j())&&(r._allRemoveIcons=a)}},viewQuery:function(i,r){if(i&1&&ie(r6,5),i&2){let o;B(o=j())&&(r.primaryAction=o.first)}},hostAttrs:[1,"mat-mdc-chip"],hostVars:31,hostBindings:function(i,r){i&1&&S("keydown",function(a){return r._handleKeydown(a)}),i&2&&(si("id",r.id),X("role",r.role)("aria-label",r.ariaLabel),it("mat-"+(r.color||"primary")),G("mdc-evolution-chip",!r._isBasicChip)("mdc-evolution-chip--disabled",r.disabled)("mdc-evolution-chip--with-trailing-action",r._hasTrailingIcon())("mdc-evolution-chip--with-primary-graphic",r.leadingIcon)("mdc-evolution-chip--with-primary-icon",r.leadingIcon)("mdc-evolution-chip--with-avatar",r.leadingIcon)("mat-mdc-chip-with-avatar",r.leadingIcon)("mat-mdc-chip-highlighted",r.highlighted)("mat-mdc-chip-disabled",r.disabled)("mat-mdc-basic-chip",r._isBasicChip)("mat-mdc-standard-chip",!r._isBasicChip)("mat-mdc-chip-with-trailing-icon",r._hasTrailingIcon())("_mat-animation-noopable",r._animationsDisabled))},inputs:{role:"role",id:"id",ariaLabel:[0,"aria-label","ariaLabel"],ariaDescription:[0,"aria-description","ariaDescription"],value:"value",color:"color",removable:[2,"removable","removable",V],highlighted:[2,"highlighted","highlighted",V],disableRipple:[2,"disableRipple","disableRipple",V],disabled:[2,"disabled","disabled",V]},outputs:{removed:"removed",destroyed:"destroyed"},exportAs:["matChip"],features:[Ce([{provide:o6,useExisting:t}])],ngContentSelectors:Cye,decls:8,vars:3,consts:[[1,"mat-mdc-chip-focus-overlay"],[1,"mdc-evolution-chip__cell","mdc-evolution-chip__cell--primary"],["matChipAction","",3,"isInteractive"],[1,"mdc-evolution-chip__graphic","mat-mdc-chip-graphic"],[1,"mdc-evolution-chip__text-label","mat-mdc-chip-action-label"],[1,"mat-mdc-chip-primary-focus-indicator","mat-focus-indicator"],[1,"mdc-evolution-chip__cell","mdc-evolution-chip__cell--trailing"]],template:function(i,r){i&1&&(Me(xye),k(0,"span",0),h(1,"span",1)(2,"span",2),N(3,wye,2,0,"span",3),h(4,"span",4),oe(5),k(6,"span",5),p()()(),N(7,Dye,2,0,"span",6)),i&2&&(g(2),y("isInteractive",!1),g(),L(r.leadingIcon?3:-1),g(4),L(r._hasTrailingIcon()?7:-1))},dependencies:[r6],styles:[`.mdc-evolution-chip,.mdc-evolution-chip__cell,.mdc-evolution-chip__action{display:inline-flex;align-items:center}.mdc-evolution-chip{position:relative;max-width:100%}.mdc-evolution-chip__cell,.mdc-evolution-chip__action{height:100%}.mdc-evolution-chip__cell--primary{flex-basis:100%;overflow-x:hidden}.mdc-evolution-chip__cell--trailing{flex:1 0 auto}.mdc-evolution-chip__action{align-items:center;background:none;border:none;box-sizing:content-box;cursor:pointer;display:inline-flex;justify-content:center;outline:none;padding:0;text-decoration:none;color:inherit}.mdc-evolution-chip__action--presentational{cursor:auto}.mdc-evolution-chip--disabled,.mdc-evolution-chip__action:disabled{pointer-events:none}@media(forced-colors: active){.mdc-evolution-chip--disabled,.mdc-evolution-chip__action:disabled{forced-color-adjust:none}}.mdc-evolution-chip__action--primary{font:inherit;letter-spacing:inherit;white-space:inherit;overflow-x:hidden}.mat-mdc-standard-chip .mdc-evolution-chip__action--primary::before{border-width:var(--mat-chip-outline-width, 1px);border-radius:var(--mat-chip-container-shape-radius, 8px);box-sizing:border-box;content:"";height:100%;left:0;position:absolute;pointer-events:none;top:0;width:100%;z-index:1;border-style:solid}.mat-mdc-standard-chip .mdc-evolution-chip__action--primary{padding-left:12px;padding-right:12px}.mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic .mdc-evolution-chip__action--primary{padding-left:0;padding-right:12px}[dir=rtl] .mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic .mdc-evolution-chip__action--primary{padding-left:12px;padding-right:0}.mat-mdc-standard-chip:not(.mdc-evolution-chip--disabled) .mdc-evolution-chip__action--primary::before{border-color:var(--mat-chip-outline-color, var(--mat-sys-outline))}.mdc-evolution-chip__action--primary:not(.mdc-evolution-chip__action--presentational):not(.mdc-ripple-upgraded):focus::before{border-color:var(--mat-chip-focus-outline-color, var(--mat-sys-on-surface-variant))}.mat-mdc-standard-chip.mdc-evolution-chip--disabled .mdc-evolution-chip__action--primary::before{border-color:var(--mat-chip-disabled-outline-color, color-mix(in srgb, var(--mat-sys-on-surface) 12%, transparent))}.mat-mdc-standard-chip.mdc-evolution-chip--selected .mdc-evolution-chip__action--primary::before{border-width:var(--mat-chip-flat-selected-outline-width, 0)}.mat-mdc-basic-chip .mdc-evolution-chip__action--primary{font:inherit}.mat-mdc-standard-chip.mdc-evolution-chip--with-leading-action .mdc-evolution-chip__action--primary{padding-left:0;padding-right:12px}[dir=rtl] .mat-mdc-standard-chip.mdc-evolution-chip--with-leading-action .mdc-evolution-chip__action--primary{padding-left:12px;padding-right:0}.mat-mdc-standard-chip.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--primary{padding-left:12px;padding-right:0}[dir=rtl] .mat-mdc-standard-chip.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--primary{padding-left:0;padding-right:12px}.mat-mdc-standard-chip.mdc-evolution-chip--with-leading-action.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--primary{padding-left:0;padding-right:0}.mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--primary{padding-left:0;padding-right:0}[dir=rtl] .mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--primary{padding-left:0;padding-right:0}.mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic .mdc-evolution-chip__action--primary{padding-left:0;padding-right:12px}[dir=rtl] .mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic .mdc-evolution-chip__action--primary{padding-left:12px;padding-right:0}.mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--primary{padding-left:0;padding-right:0}[dir=rtl] .mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--primary{padding-left:0;padding-right:0}.mdc-evolution-chip__action--secondary{position:relative;overflow:visible}.mat-mdc-standard-chip:not(.mdc-evolution-chip--disabled) .mdc-evolution-chip__action--secondary{color:var(--mat-chip-with-trailing-icon-trailing-icon-color, var(--mat-sys-on-surface-variant))}.mat-mdc-standard-chip.mdc-evolution-chip--disabled .mdc-evolution-chip__action--secondary{color:var(--mat-chip-with-trailing-icon-disabled-trailing-icon-color, var(--mat-sys-on-surface))}.mat-mdc-standard-chip.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--secondary{padding-left:8px;padding-right:8px}.mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--secondary{padding-left:8px;padding-right:8px}.mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--secondary{padding-left:8px;padding-right:8px}[dir=rtl] .mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--secondary{padding-left:8px;padding-right:8px}.mdc-evolution-chip__text-label{-webkit-user-select:none;user-select:none;white-space:nowrap;text-overflow:ellipsis;overflow:hidden}.mat-mdc-standard-chip .mdc-evolution-chip__text-label{font-family:var(--mat-chip-label-text-font, var(--mat-sys-label-large-font));line-height:var(--mat-chip-label-text-line-height, var(--mat-sys-label-large-line-height));font-size:var(--mat-chip-label-text-size, var(--mat-sys-label-large-size));font-weight:var(--mat-chip-label-text-weight, var(--mat-sys-label-large-weight));letter-spacing:var(--mat-chip-label-text-tracking, var(--mat-sys-label-large-tracking))}.mat-mdc-standard-chip:not(.mdc-evolution-chip--disabled) .mdc-evolution-chip__text-label{color:var(--mat-chip-label-text-color, var(--mat-sys-on-surface-variant))}.mat-mdc-standard-chip.mdc-evolution-chip--selected:not(.mdc-evolution-chip--disabled) .mdc-evolution-chip__text-label{color:var(--mat-chip-selected-label-text-color, var(--mat-sys-on-secondary-container))}.mat-mdc-standard-chip.mdc-evolution-chip--disabled .mdc-evolution-chip__text-label,.mat-mdc-standard-chip.mdc-evolution-chip--selected.mdc-evolution-chip--disabled .mdc-evolution-chip__text-label{color:var(--mat-chip-disabled-label-text-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent))}.mdc-evolution-chip__graphic{align-items:center;display:inline-flex;justify-content:center;overflow:hidden;pointer-events:none;position:relative;flex:1 0 auto}.mat-mdc-standard-chip .mdc-evolution-chip__graphic{width:var(--mat-chip-with-avatar-avatar-size, 24px);height:var(--mat-chip-with-avatar-avatar-size, 24px);font-size:var(--mat-chip-with-avatar-avatar-size, 24px)}.mdc-evolution-chip--selecting .mdc-evolution-chip__graphic{transition:width 150ms 0ms cubic-bezier(0.4, 0, 0.2, 1)}.mdc-evolution-chip--selectable:not(.mdc-evolution-chip--selected):not(.mdc-evolution-chip--with-primary-icon) .mdc-evolution-chip__graphic{width:0}.mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic .mdc-evolution-chip__graphic{padding-left:6px;padding-right:6px}.mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic .mdc-evolution-chip__graphic{padding-left:4px;padding-right:8px}[dir=rtl] .mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic .mdc-evolution-chip__graphic{padding-left:8px;padding-right:4px}.mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__graphic{padding-left:6px;padding-right:6px}.mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__graphic{padding-left:4px;padding-right:8px}[dir=rtl] .mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__graphic{padding-left:8px;padding-right:4px}.mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-leading-action .mdc-evolution-chip__graphic{padding-left:0}.mdc-evolution-chip__checkmark{position:absolute;opacity:0;top:50%;left:50%;height:20px;width:20px}.mat-mdc-standard-chip:not(.mdc-evolution-chip--disabled) .mdc-evolution-chip__checkmark{color:var(--mat-chip-with-icon-selected-icon-color, var(--mat-sys-on-secondary-container))}.mat-mdc-standard-chip.mdc-evolution-chip--disabled .mdc-evolution-chip__checkmark{color:var(--mat-chip-with-icon-disabled-icon-color, var(--mat-sys-on-surface))}.mdc-evolution-chip--selecting .mdc-evolution-chip__checkmark{transition:transform 150ms 0ms cubic-bezier(0.4, 0, 0.2, 1);transform:translate(-75%, -50%)}.mdc-evolution-chip--selected .mdc-evolution-chip__checkmark{transform:translate(-50%, -50%);opacity:1}.mdc-evolution-chip__checkmark-svg{display:block}.mdc-evolution-chip__checkmark-path{stroke-width:2px;stroke-dasharray:29.7833385;stroke-dashoffset:29.7833385;stroke:currentColor}.mdc-evolution-chip--selecting .mdc-evolution-chip__checkmark-path{transition:stroke-dashoffset 150ms 45ms cubic-bezier(0.4, 0, 0.2, 1)}.mdc-evolution-chip--selected .mdc-evolution-chip__checkmark-path{stroke-dashoffset:0}@media(forced-colors: active){.mdc-evolution-chip__checkmark-path{stroke:CanvasText !important}}.mat-mdc-standard-chip .mdc-evolution-chip__icon--trailing{height:18px;width:18px;font-size:18px}.mdc-evolution-chip--disabled .mdc-evolution-chip__icon--trailing.mat-mdc-chip-remove{opacity:calc(var(--mat-chip-trailing-action-opacity, 1)*var(--mat-chip-with-trailing-icon-disabled-trailing-icon-opacity, 0.38))}.mdc-evolution-chip--disabled .mdc-evolution-chip__icon--trailing.mat-mdc-chip-remove:focus{opacity:calc(var(--mat-chip-trailing-action-focus-opacity, 1)*var(--mat-chip-with-trailing-icon-disabled-trailing-icon-opacity, 0.38))}.mat-mdc-standard-chip{border-radius:var(--mat-chip-container-shape-radius, 8px);height:var(--mat-chip-container-height, 32px)}.mat-mdc-standard-chip:not(.mdc-evolution-chip--disabled){background-color:var(--mat-chip-elevated-container-color, transparent)}.mat-mdc-standard-chip.mdc-evolution-chip--disabled{background-color:var(--mat-chip-elevated-disabled-container-color)}.mat-mdc-standard-chip.mdc-evolution-chip--selected:not(.mdc-evolution-chip--disabled){background-color:var(--mat-chip-elevated-selected-container-color, var(--mat-sys-secondary-container))}.mat-mdc-standard-chip.mdc-evolution-chip--selected.mdc-evolution-chip--disabled{background-color:var(--mat-chip-flat-disabled-selected-container-color, color-mix(in srgb, var(--mat-sys-on-surface) 12%, transparent))}@media(forced-colors: active){.mat-mdc-standard-chip{outline:solid 1px}}.mat-mdc-standard-chip .mdc-evolution-chip__icon--primary{border-radius:var(--mat-chip-with-avatar-avatar-shape-radius, 24px);width:var(--mat-chip-with-icon-icon-size, 18px);height:var(--mat-chip-with-icon-icon-size, 18px);font-size:var(--mat-chip-with-icon-icon-size, 18px)}.mdc-evolution-chip--selected .mdc-evolution-chip__icon--primary{opacity:0}.mat-mdc-standard-chip:not(.mdc-evolution-chip--disabled) .mdc-evolution-chip__icon--primary{color:var(--mat-chip-with-icon-icon-color, var(--mat-sys-on-surface-variant))}.mat-mdc-standard-chip.mdc-evolution-chip--disabled .mdc-evolution-chip__icon--primary{color:var(--mat-chip-with-icon-disabled-icon-color, var(--mat-sys-on-surface))}.mat-mdc-chip-highlighted{--mat-chip-with-icon-icon-color: var(--mat-chip-with-icon-selected-icon-color, var(--mat-sys-on-secondary-container));--mat-chip-elevated-container-color: var(--mat-chip-elevated-selected-container-color, var(--mat-sys-secondary-container));--mat-chip-label-text-color: var(--mat-chip-selected-label-text-color, var(--mat-sys-on-secondary-container));--mat-chip-outline-width: var(--mat-chip-flat-selected-outline-width, 0)}.mat-mdc-chip-focus-overlay{background:var(--mat-chip-focus-state-layer-color, var(--mat-sys-on-surface-variant))}.mat-mdc-chip-selected .mat-mdc-chip-focus-overlay,.mat-mdc-chip-highlighted .mat-mdc-chip-focus-overlay{background:var(--mat-chip-selected-focus-state-layer-color, var(--mat-sys-on-secondary-container))}.mat-mdc-chip:hover .mat-mdc-chip-focus-overlay{background:var(--mat-chip-hover-state-layer-color, var(--mat-sys-on-surface-variant));opacity:var(--mat-chip-hover-state-layer-opacity, var(--mat-sys-hover-state-layer-opacity))}.mat-mdc-chip-focus-overlay .mat-mdc-chip-selected:hover,.mat-mdc-chip-highlighted:hover .mat-mdc-chip-focus-overlay{background:var(--mat-chip-selected-hover-state-layer-color, var(--mat-sys-on-secondary-container));opacity:var(--mat-chip-selected-hover-state-layer-opacity, var(--mat-sys-hover-state-layer-opacity))}.mat-mdc-chip.cdk-focused .mat-mdc-chip-focus-overlay{background:var(--mat-chip-focus-state-layer-color, var(--mat-sys-on-surface-variant));opacity:var(--mat-chip-focus-state-layer-opacity, var(--mat-sys-focus-state-layer-opacity))}.mat-mdc-chip-selected.cdk-focused .mat-mdc-chip-focus-overlay,.mat-mdc-chip-highlighted.cdk-focused .mat-mdc-chip-focus-overlay{background:var(--mat-chip-selected-focus-state-layer-color, var(--mat-sys-on-secondary-container));opacity:var(--mat-chip-selected-focus-state-layer-opacity, var(--mat-sys-focus-state-layer-opacity))}.mdc-evolution-chip--disabled:not(.mdc-evolution-chip--selected) .mat-mdc-chip-avatar{opacity:var(--mat-chip-with-avatar-disabled-avatar-opacity, 0.38)}.mdc-evolution-chip--disabled .mdc-evolution-chip__icon--trailing{opacity:var(--mat-chip-with-trailing-icon-disabled-trailing-icon-opacity, 0.38)}.mdc-evolution-chip--disabled.mdc-evolution-chip--selected .mdc-evolution-chip__checkmark{opacity:var(--mat-chip-with-icon-disabled-icon-opacity, 0.38)}.mat-mdc-standard-chip.mdc-evolution-chip--disabled{opacity:var(--mat-chip-disabled-container-opacity, 1)}.mat-mdc-standard-chip.mdc-evolution-chip--selected .mdc-evolution-chip__icon--trailing,.mat-mdc-standard-chip.mat-mdc-chip-highlighted .mdc-evolution-chip__icon--trailing{color:var(--mat-chip-selected-trailing-icon-color, var(--mat-sys-on-secondary-container))}.mat-mdc-standard-chip.mdc-evolution-chip--selected.mdc-evolution-chip--disabled .mdc-evolution-chip__icon--trailing,.mat-mdc-standard-chip.mat-mdc-chip-highlighted.mdc-evolution-chip--disabled .mdc-evolution-chip__icon--trailing{color:var(--mat-chip-selected-disabled-trailing-icon-color, var(--mat-sys-on-surface))}.mat-mdc-chip-edit,.mat-mdc-chip-remove{opacity:var(--mat-chip-trailing-action-opacity, 1)}.mat-mdc-chip-edit:focus,.mat-mdc-chip-remove:focus{opacity:var(--mat-chip-trailing-action-focus-opacity, 1)}.mat-mdc-chip-edit::after,.mat-mdc-chip-remove::after{background-color:var(--mat-chip-trailing-action-state-layer-color, var(--mat-sys-on-surface-variant))}.mat-mdc-chip-edit:hover::after,.mat-mdc-chip-remove:hover::after{opacity:var(--mat-chip-trailing-action-hover-state-layer-opacity, var(--mat-sys-hover-state-layer-opacity))}.mat-mdc-chip-edit:focus::after,.mat-mdc-chip-remove:focus::after{opacity:var(--mat-chip-trailing-action-focus-state-layer-opacity, var(--mat-sys-focus-state-layer-opacity))}.mat-mdc-chip-selected .mat-mdc-chip-remove::after,.mat-mdc-chip-highlighted .mat-mdc-chip-remove::after{background-color:var(--mat-chip-selected-trailing-action-state-layer-color, var(--mat-sys-on-secondary-container))}.mat-mdc-standard-chip{-webkit-tap-highlight-color:rgba(0,0,0,0)}.mat-mdc-standard-chip .mdc-evolution-chip__cell--primary,.mat-mdc-standard-chip .mdc-evolution-chip__action--primary,.mat-mdc-standard-chip .mat-mdc-chip-action-label{overflow:visible}.mat-mdc-standard-chip .mat-mdc-chip-graphic,.mat-mdc-standard-chip .mat-mdc-chip-trailing-icon{box-sizing:content-box}.mat-mdc-standard-chip._mat-animation-noopable,.mat-mdc-standard-chip._mat-animation-noopable .mdc-evolution-chip__graphic,.mat-mdc-standard-chip._mat-animation-noopable .mdc-evolution-chip__checkmark,.mat-mdc-standard-chip._mat-animation-noopable .mdc-evolution-chip__checkmark-path{transition-duration:1ms;animation-duration:1ms}.mat-mdc-chip-focus-overlay{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none;opacity:0;border-radius:inherit;transition:opacity 150ms linear}._mat-animation-noopable .mat-mdc-chip-focus-overlay{transition:none}.mat-mdc-basic-chip .mat-mdc-chip-focus-overlay{display:none}.mat-mdc-chip .mat-ripple.mat-mdc-chip-ripple{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none;border-radius:inherit}.mat-mdc-chip-avatar{text-align:center;line-height:1;color:var(--mat-chip-with-icon-icon-color, currentColor)}.mat-mdc-chip{position:relative;z-index:0}.mat-mdc-chip-action-label{text-align:left;z-index:1}[dir=rtl] .mat-mdc-chip-action-label{text-align:right}.mat-mdc-chip.mdc-evolution-chip--with-trailing-action .mat-mdc-chip-action-label{position:relative}.mat-mdc-chip-action-label .mat-mdc-chip-primary-focus-indicator{position:absolute;top:0;right:0;bottom:0;left:0;pointer-events:none}.mat-mdc-chip-action-label .mat-focus-indicator::before{margin:calc(calc(var(--mat-focus-indicator-border-width, 3px) + 2px)*-1)}.mat-mdc-chip-edit::before,.mat-mdc-chip-remove::before{margin:calc(var(--mat-focus-indicator-border-width, 3px)*-1);left:8px;right:8px}.mat-mdc-chip-edit::after,.mat-mdc-chip-remove::after{content:"";display:block;opacity:0;position:absolute;top:-3px;bottom:-3px;left:5px;right:5px;border-radius:50%;box-sizing:border-box;padding:12px;margin:-12px;background-clip:content-box}.mat-mdc-chip-edit .mat-icon,.mat-mdc-chip-remove .mat-icon{width:18px;height:18px;font-size:18px;box-sizing:content-box}.mat-chip-edit-input{cursor:text;display:inline-block;color:inherit;outline:0}@media(forced-colors: active){.mat-mdc-chip-selected:not(.mat-mdc-chip-multiple){outline-width:3px}}.mat-mdc-chip-action:focus .mat-focus-indicator::before{content:""}.mdc-evolution-chip__icon,.mat-mdc-chip-edit .mat-icon,.mat-mdc-chip-remove .mat-icon{min-height:fit-content}img.mdc-evolution-chip__icon{min-height:0} +`],encapsulation:2,changeDetection:0})}return t})();var a6=(()=>{class t{_elementRef=u(q);_changeDetectorRef=u(ye);_dir=u(Vt,{optional:!0});_lastDestroyedFocusedChipIndex=null;_keyManager;_destroyed=new z;_defaultRole="presentation";get chipFocusChanges(){return this._getChipStream(e=>e._onFocus)}get chipDestroyedChanges(){return this._getChipStream(e=>e.destroyed)}get chipRemovedChanges(){return this._getChipStream(e=>e.removed)}get disabled(){return this._disabled}set disabled(e){this._disabled=e,this._syncChipsState()}_disabled=!1;get empty(){return!this._chips||this._chips.length===0}get role(){return this._explicitRole?this._explicitRole:this.empty?null:this._defaultRole}tabIndex=0;set role(e){this._explicitRole=e}_explicitRole=null;get focused(){return this._hasFocusedChip()}_chips;_chipActions=new pr;constructor(){}ngAfterViewInit(){this._setUpFocusManagement(),this._trackChipSetChanges(),this._trackDestroyedFocusedChip()}ngOnDestroy(){this._keyManager?.destroy(),this._chipActions.destroy(),this._destroyed.next(),this._destroyed.complete()}_hasFocusedChip(){return this._chips&&this._chips.some(e=>e._hasFocus())}_syncChipsState(){this._chips?.forEach(e=>{e._chipListDisabled=this._disabled,e._changeDetectorRef.markForCheck()})}focus(){}_handleKeydown(e){this._originatesFromChip(e)&&this._keyManager.onKeydown(e)}_isValidIndex(e){return e>=0&&ethis._elementRef.nativeElement.tabIndex=e))}_getChipStream(e){return this._chips.changes.pipe(He(null),$e(()=>Je(...this._chips.map(e))))}_originatesFromChip(e){let i=e.target;for(;i&&i!==this._elementRef.nativeElement;){if(i.classList.contains("mat-mdc-chip"))return!0;i=i.parentElement}return!1}_setUpFocusManagement(){this._chips.changes.pipe(He(this._chips)).subscribe(e=>{let i=[];e.forEach(r=>r._getActions().forEach(o=>i.push(o))),this._chipActions.reset(i),this._chipActions.notifyOnChanges()}),this._keyManager=new bs(this._chipActions).withVerticalOrientation().withHorizontalOrientation(this._dir?this._dir.value:"ltr").withHomeAndEnd().skipPredicate(e=>this._skipPredicate(e)),this.chipFocusChanges.pipe(Te(this._destroyed)).subscribe(({chip:e})=>{let i=e._getSourceAction(document.activeElement);i&&this._keyManager.updateActiveItem(i)}),this._dir?.change.pipe(Te(this._destroyed)).subscribe(e=>this._keyManager.withHorizontalOrientation(e))}_skipPredicate(e){return!e.isInteractive||e.disabled}_trackChipSetChanges(){this._chips.changes.pipe(He(null),Te(this._destroyed)).subscribe(()=>{this.disabled&&Promise.resolve().then(()=>this._syncChipsState()),this._redirectDestroyedChipFocus()})}_trackDestroyedFocusedChip(){this.chipDestroyedChanges.pipe(Te(this._destroyed)).subscribe(e=>{let r=this._chips.toArray().indexOf(e.chip),o=e.chip._hasFocus(),a=e.chip._hadFocusOnRemove&&this._keyManager.activeItem&&e.chip._getActions().includes(this._keyManager.activeItem),s=o||a;this._isValidIndex(r)&&s&&(this._lastDestroyedFocusedChipIndex=r)})}_redirectDestroyedChipFocus(){if(this._lastDestroyedFocusedChipIndex!=null){if(this._chips.length){let e=Math.min(this._lastDestroyedFocusedChipIndex,this._chips.length-1),i=this._chips.toArray()[e];i.disabled?this._chips.length===1?this.focus():this._keyManager.setPreviousItemActive():i.focus()}else this.focus();this._lastDestroyedFocusedChipIndex=null}}static \u0275fac=function(i){return new(i||t)};static \u0275cmp=E({type:t,selectors:[["mat-chip-set"]],contentQueries:function(i,r,o){if(i&1&&xe(o,cA,5),i&2){let a;B(a=j())&&(r._chips=a)}},hostAttrs:[1,"mat-mdc-chip-set","mdc-evolution-chip-set"],hostVars:1,hostBindings:function(i,r){i&1&&S("keydown",function(a){return r._handleKeydown(a)}),i&2&&X("role",r.role)},inputs:{disabled:[2,"disabled","disabled",V],role:"role",tabIndex:[2,"tabIndex","tabIndex",e=>e==null?0:ct(e)]},ngContentSelectors:Eye,decls:2,vars:0,consts:[["role","presentation",1,"mdc-evolution-chip-set__chips"]],template:function(i,r){i&1&&(Me(),ft(0,"div",0),oe(1),vt())},styles:[`.mat-mdc-chip-set{display:flex}.mat-mdc-chip-set:focus{outline:none}.mat-mdc-chip-set .mdc-evolution-chip-set__chips{min-width:100%;margin-left:-8px;margin-right:0}.mat-mdc-chip-set .mdc-evolution-chip{margin:4px 0 4px 8px}[dir=rtl] .mat-mdc-chip-set .mdc-evolution-chip-set__chips{margin-left:0;margin-right:-8px}[dir=rtl] .mat-mdc-chip-set .mdc-evolution-chip{margin-left:0;margin-right:8px}.mdc-evolution-chip-set__chips{display:flex;flex-flow:wrap;min-width:0}.mat-mdc-chip-set-stacked{flex-direction:column;align-items:flex-start}.mat-mdc-chip-set-stacked .mat-mdc-chip{width:100%}.mat-mdc-chip-set-stacked .mdc-evolution-chip__graphic{flex-grow:0}.mat-mdc-chip-set-stacked .mdc-evolution-chip__action--primary{flex-basis:100%;justify-content:start}input.mat-mdc-chip-input{flex:1 0 150px;margin-left:8px}[dir=rtl] input.mat-mdc-chip-input{margin-left:0;margin-right:8px}.mat-mdc-form-field:not(.mat-form-field-hide-placeholder) input.mat-mdc-chip-input::placeholder{opacity:1}.mat-mdc-form-field:not(.mat-form-field-hide-placeholder) input.mat-mdc-chip-input::-moz-placeholder{opacity:1}.mat-mdc-form-field:not(.mat-form-field-hide-placeholder) input.mat-mdc-chip-input::-webkit-input-placeholder{opacity:1}.mat-mdc-form-field:not(.mat-form-field-hide-placeholder) input.mat-mdc-chip-input:-ms-input-placeholder{opacity:1}.mat-mdc-chip-set+input.mat-mdc-chip-input{margin-left:0;margin-right:0} +`],encapsulation:2,changeDetection:0})}return t})();var s6=(()=>{class t{static \u0275fac=function(i){return new(i||t)};static \u0275mod=ee({type:t});static \u0275inj=J({providers:[dl,{provide:Mye,useValue:{separatorKeyCodes:[13]}}],imports:[we,yo,we]})}return t})();var l6=new T("CdkAccordion");var c6=(()=>{class t{accordion=u(l6,{optional:!0,skipSelf:!0});_changeDetectorRef=u(ye);_expansionDispatcher=u(au);_openCloseAllSubscription=ke.EMPTY;closed=new U;opened=new U;destroyed=new U;expandedChange=new U;id=u(Ze).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 i=this.accordion?this.accordion.id:this.id;this._expansionDispatcher.notify(this.id,i)}else this.closed.emit();this._changeDetectorRef.markForCheck()}}_expanded=!1;get disabled(){return this._disabled()}set disabled(e){this._disabled.set(e)}_disabled=he(!1);_removeUniqueSelectionListener=()=>{};constructor(){}ngOnInit(){this._removeUniqueSelectionListener=this._expansionDispatcher.listen((e,i)=>{this.accordion&&!this.accordion.multi&&this.accordion.id===i&&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(i){return new(i||t)};static \u0275dir=F({type:t,selectors:[["cdk-accordion-item"],["","cdkAccordionItem",""]],inputs:{expanded:[2,"expanded","expanded",V],disabled:[2,"disabled","disabled",V]},outputs:{closed:"closed",opened:"opened",destroyed:"destroyed",expandedChange:"expandedChange"},exportAs:["cdkAccordionItem"],features:[Ce([{provide:l6,useValue:void 0}])]})}return t})(),d6=(()=>{class t{static \u0275fac=function(i){return new(i||t)};static \u0275mod=ee({type:t});static \u0275inj=J({})}return t})();var Sye=["body"],Tye=["bodyWrapper"],Iye=[[["mat-expansion-panel-header"]],"*",[["mat-action-row"]]],Aye=["mat-expansion-panel-header","*","mat-action-row"];function Oye(t,n){}var Rye=[[["mat-panel-title"]],[["mat-panel-description"]],"*"],Pye=["mat-panel-title","mat-panel-description","*"];function Fye(t,n){t&1&&(ft(0,"span",1),Gt(),ft(1,"svg",2),ai(2,"path",3),vt()())}var u6=new T("MAT_ACCORDION"),m6=new T("MAT_EXPANSION_PANEL"),Nye=(()=>{class t{_template=u(te);_expansionPanel=u(m6,{optional:!0});constructor(){}static \u0275fac=function(i){return new(i||t)};static \u0275dir=F({type:t,selectors:[["ng-template","matExpansionPanelContent",""]]})}return t})(),h6=new T("MAT_EXPANSION_PANEL_DEFAULT_OPTIONS"),dA=(()=>{class t extends c6{_viewContainerRef=u(nt);_animationsDisabled=Ye();_document=u(ge);_ngZone=u(ae);_elementRef=u(q);_renderer=u(je);_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 U;afterCollapse=new U;_inputChanges=new z;accordion=u(u6,{optional:!0,skipSelf:!0});_lazyContent;_body;_bodyWrapper;_portal;_headerId=u(Ze).getId("mat-expansion-panel-header-");constructor(){super();let e=u(h6,{optional:!0});this._expansionDispatcher=u(au),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(He(null),ce(()=>this.expanded&&!this._portal),lt(1)).subscribe(()=>{this._portal=new Cn(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,i=this._body.nativeElement;return e===i||i.contains(e)}return!1}_transitionEndListener=({target:e,propertyName:i})=>{e===this._bodyWrapper?.nativeElement&&i==="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(i){return new(i||t)};static \u0275cmp=E({type:t,selectors:[["mat-expansion-panel"]],contentQueries:function(i,r,o){if(i&1&&xe(o,Nye,5),i&2){let a;B(a=j())&&(r._lazyContent=a.first)}},viewQuery:function(i,r){if(i&1&&(ie(Sye,5),ie(Tye,5)),i&2){let o;B(o=j())&&(r._body=o.first),B(o=j())&&(r._bodyWrapper=o.first)}},hostAttrs:[1,"mat-expansion-panel"],hostVars:4,hostBindings:function(i,r){i&2&&G("mat-expanded",r.expanded)("mat-expansion-panel-spacing",r._hasSpacing())},inputs:{hideToggle:[2,"hideToggle","hideToggle",V],togglePosition:"togglePosition"},outputs:{afterExpand:"afterExpand",afterCollapse:"afterCollapse"},exportAs:["matExpansionPanel"],features:[Ce([{provide:u6,useValue:void 0},{provide:m6,useExisting:t}]),le,Ae],ngContentSelectors:Aye,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(i,r){i&1&&(Me(Iye),oe(0),h(1,"div",2,0)(3,"div",3,1)(5,"div",4),oe(6,1),R(7,Oye,0,0,"ng-template",5),p(),oe(8,2),p()()),i&2&&(g(),X("inert",r.expanded?null:""),g(2),y("id",r.id),X("aria-labelledby",r._headerId),g(4),y("cdkPortalOutlet",r._portal))},dependencies:[yr],styles:[`.mat-expansion-panel{box-sizing:content-box;display:block;margin:0;overflow:hidden;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.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: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}}.mat-expansion-panel-content{display:flex;flex-direction:column;overflow:visible;min-height:0;visibility:hidden;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-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-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 t})();var p6=(()=>{class t{panel=u(dA,{host:!0});_element=u(q);_focusMonitor=u(Yt);_changeDetectorRef=u(ye);_parentChangeSubscription=ke.EMPTY;constructor(){u(ut).load(Di);let e=this.panel,i=u(h6,{optional:!0}),r=u(new Ii("tabindex"),{optional:!0}),o=e.accordion?e.accordion._stateChanges.pipe(ce(a=>!!(a.hideToggle||a.togglePosition))):Fi;this.tabIndex=parseInt(r||"")||0,this._parentChangeSubscription=Je(e.opened,e.closed,o,e._inputChanges.pipe(ce(a=>!!(a.hideToggle||a.disabled||a.togglePosition)))).subscribe(()=>this._changeDetectorRef.markForCheck()),e.closed.pipe(ce(()=>e._containsFocus())).subscribe(()=>this._focusMonitor.focusVia(this._element,"program")),i&&(this.expandedHeight=i.expandedHeight,this.collapsedHeight=i.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:Ft(e)||(e.preventDefault(),this._toggle());break;default:this.panel.accordion&&this.panel.accordion._handleHeaderKeydown(e);return}}focus(e,i){e?this._focusMonitor.focusVia(this._element,e,i):this._element.nativeElement.focus(i)}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(i){return new(i||t)};static \u0275cmp=E({type:t,selectors:[["mat-expansion-panel-header"]],hostAttrs:["role","button",1,"mat-expansion-panel-header","mat-focus-indicator"],hostVars:13,hostBindings:function(i,r){i&1&&S("click",function(){return r._toggle()})("keydown",function(a){return r._keydown(a)}),i&2&&(X("id",r.panel._headerId)("tabindex",r.disabled?-1:r.tabIndex)("aria-controls",r._getPanelId())("aria-expanded",r._isExpanded())("aria-disabled",r.panel.disabled),Dt("height",r._getHeaderHeight()),G("mat-expanded",r._isExpanded())("mat-expansion-toggle-indicator-after",r._getTogglePosition()==="after")("mat-expansion-toggle-indicator-before",r._getTogglePosition()==="before"))},inputs:{expandedHeight:"expandedHeight",collapsedHeight:"collapsedHeight",tabIndex:[2,"tabIndex","tabIndex",e=>e==null?0:ct(e)]},ngContentSelectors:Pye,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(i,r){i&1&&(Me(Rye),ft(0,"span",0),oe(1),oe(2,1),oe(3,2),vt(),N(4,Fye,3,0,"span",1)),i&2&&(G("mat-content-hide-toggle",!r._showToggle()),g(4),L(r._showToggle()?4:-1))},styles:[`.mat-expansion-panel-header{display:flex;flex-direction:row;align-items:center;padding:0 24px;border-radius:inherit;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-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.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 t})();var f6=(()=>{class t{static \u0275fac=function(i){return new(i||t)};static \u0275dir=F({type:t,selectors:[["mat-panel-title"]],hostAttrs:[1,"mat-expansion-panel-header-title"]})}return t})();var g6=(()=>{class t{static \u0275fac=function(i){return new(i||t)};static \u0275mod=ee({type:t});static \u0275inj=J({imports:[we,d6,Co]})}return t})();function Vye(t,n){if(t&1&&(jt(0),h(1,"mat-icon"),_(2,"account_circle"),p(),_(3),Lt()),t&2){let e=n.ngIf;g(3),ve(" ",e.name||e.preferred_username||"User Profile"," ")}}function Bye(t,n){t&1&&(jt(0),h(1,"mat-icon"),_(2,"account_circle"),p(),_(3," User Profile "),Lt())}function jye(t,n){t&1&&(h(0,"div",3)(1,"mat-card")(2,"mat-card-content")(3,"div",4)(4,"mat-icon"),_(5,"lock"),p(),h(6,"h2"),_(7,"Not Authenticated"),p(),h(8,"p"),_(9,"Please log in to view your profile information."),p(),h(10,"button",5)(11,"mat-icon"),_(12,"login"),p(),_(13," Log In "),p()()()()())}function Hye(t,n){if(t&1&&(h(0,"mat-chip",23),_(1),p()),t&2){let e=n.$implicit;y("color","primary"),g(),ve(" ",e," ")}}function zye(t,n){if(t&1&&(h(0,"mat-chip",24),_(1),p()),t&2){let e=n.$implicit;y("color","accent"),g(),ve(" ",e," ")}}function Uye(t,n){if(t&1&&(h(0,"div",17)(1,"div",18)(2,"label"),_(3,"User ID (sub)"),p(),h(4,"div",19),_(5),p()(),h(6,"div",18)(7,"label"),_(8,"Display Name"),p(),h(9,"div",19),_(10),p()(),h(11,"div",18)(12,"label"),_(13,"Email"),p(),h(14,"div",19),_(15),p()(),h(16,"div",18)(17,"label"),_(18,"Username"),p(),h(19,"div",19),_(20),p()(),h(21,"div",20)(22,"label"),_(23,"Roles"),p(),h(24,"div",19)(25,"mat-chip-set"),R(26,Hye,2,2,"mat-chip",21),p()()(),h(27,"div",20)(28,"label"),_(29,"Permissions"),p(),h(30,"div",19)(31,"mat-chip-set"),R(32,zye,2,2,"mat-chip",22),p()()()()),t&2){let e=n.ngIf,i=C(2);g(5),H(e.sub),g(5),H(e.name||"N/A"),g(5),H(e.email||"N/A"),g(5),H(e.preferred_username||"N/A"),g(6),y("ngForOf",i.profileData==null?null:i.profileData.roles),g(6),y("ngForOf",i.profileData==null?null:i.profileData.permissions)}}function $ye(t,n){t&1&&(h(0,"mat-chip",36)(1,"mat-icon"),_(2,"verified_user"),p(),_(3," Valid "),p())}function Wye(t,n){t&1&&(h(0,"mat-chip",37)(1,"mat-icon"),_(2,"error"),p(),_(3," Expired "),p())}function Gye(t,n){if(t&1&&(h(0,"div",30)(1,"label"),_(2,"Issuer"),p(),h(3,"div"),_(4),p()()),t&2){let e=C().ngIf;g(4),H(e.payload.iss)}}function qye(t,n){if(t&1&&(h(0,"mat-expansion-panel",38)(1,"mat-expansion-panel-header")(2,"mat-panel-title"),_(3,"Raw JWT Token"),p()(),h(4,"pre",39),_(5),p()()),t&2){let e=C().ngIf;g(5),H(e.raw)}}function Yye(t,n){if(t&1){let e=Y();h(0,"div",25)(1,"div",26)(2,"mat-chip-set")(3,"mat-chip",23)(4,"mat-icon"),_(5,"schedule"),p(),_(6),p(),R(7,$ye,4,0,"mat-chip",27)(8,Wye,4,0,"mat-chip",28),p()(),h(9,"div",29)(10,"div",30)(11,"label"),_(12,"Issued At"),p(),h(13,"div"),_(14),p()(),h(15,"div",30)(16,"label"),_(17,"Expires At"),p(),h(18,"div"),_(19),p()(),R(20,Gye,5,1,"div",31),p(),h(21,"div",32)(22,"button",33),S("click",function(){I(e);let r=C(2);return A(r.toggleRawIdToken())}),h(23,"mat-icon"),_(24),p(),_(25),p(),h(26,"button",33),S("click",function(){let r=I(e).ngIf,o=C(2);return A(o.copyToClipboard(r.raw,"ID Token"))}),h(27,"mat-icon"),_(28,"content_copy"),p(),_(29," Copy Token "),p()(),R(30,qye,6,1,"mat-expansion-panel",34),h(31,"mat-expansion-panel")(32,"mat-expansion-panel-header")(33,"mat-panel-title"),_(34,"Token Header"),p()(),h(35,"pre",35),_(36),p()(),h(37,"mat-expansion-panel")(38,"mat-expansion-panel-header")(39,"mat-panel-title"),_(40,"Token Claims (Payload)"),p()(),h(41,"pre",35),_(42),p()()()}if(t&2){let e=n.ngIf,i=C(2);g(3),y("color",i.getExpirationColor(e)),g(3),ve(" ",i.getExpirationStatus(e)," "),g(),y("ngIf",!e.isExpired),g(),y("ngIf",e.isExpired),g(6),H(i.formatDate(e.issuedAt)),g(5),H(i.formatDate(e.expiresAt)),g(),y("ngIf",e.payload.iss),g(4),H(i.showRawIdToken?"visibility_off":"visibility"),g(),ve(" ",i.showRawIdToken?"Hide":"Show"," Raw Token "),g(5),y("ngIf",i.showRawIdToken),g(6),H(i.formatJson(e.header)),g(6),H(i.formatJson(e.payload))}}function Qye(t,n){t&1&&(h(0,"div",40)(1,"mat-icon"),_(2,"info"),p(),h(3,"p"),_(4,"ID Token not available"),p()())}function Kye(t,n){t&1&&(h(0,"mat-chip",36)(1,"mat-icon"),_(2,"verified_user"),p(),_(3," Valid "),p())}function Zye(t,n){t&1&&(h(0,"mat-chip",37)(1,"mat-icon"),_(2,"error"),p(),_(3," Expired "),p())}function Xye(t,n){if(t&1&&(h(0,"div",30)(1,"label"),_(2,"Audience"),p(),h(3,"div"),_(4),p()()),t&2){let e=C().ngIf;g(4),H(e.payload.aud)}}function Jye(t,n){if(t&1&&(h(0,"mat-expansion-panel",38)(1,"mat-expansion-panel-header")(2,"mat-panel-title"),_(3,"Raw JWT Token"),p()(),h(4,"pre",39),_(5),p()()),t&2){let e=C().ngIf;g(5),H(e.raw)}}function exe(t,n){if(t&1&&(h(0,"mat-chip"),_(1),p()),t&2){let e=n.$implicit;g(),ve(" ",e," ")}}function txe(t,n){if(t&1&&(h(0,"mat-expansion-panel")(1,"mat-expansion-panel-header")(2,"mat-panel-title"),_(3,"Scopes"),p()(),h(4,"div",41)(5,"mat-chip-set"),R(6,exe,2,1,"mat-chip",42),p()()()),t&2){let e=C().ngIf,i=C(2);g(6),y("ngForOf",i.getScopes(e.payload.scope))}}function ixe(t,n){if(t&1){let e=Y();h(0,"div",25)(1,"div",26)(2,"mat-chip-set")(3,"mat-chip",23)(4,"mat-icon"),_(5,"schedule"),p(),_(6),p(),R(7,Kye,4,0,"mat-chip",27)(8,Zye,4,0,"mat-chip",28),p()(),h(9,"div",29)(10,"div",30)(11,"label"),_(12,"Issued At"),p(),h(13,"div"),_(14),p()(),h(15,"div",30)(16,"label"),_(17,"Expires At"),p(),h(18,"div"),_(19),p()(),R(20,Xye,5,1,"div",31),p(),h(21,"div",32)(22,"button",33),S("click",function(){I(e);let r=C(2);return A(r.toggleRawAccessToken())}),h(23,"mat-icon"),_(24),p(),_(25),p(),h(26,"button",33),S("click",function(){let r=I(e).ngIf,o=C(2);return A(o.copyToClipboard(r.raw,"Access Token"))}),h(27,"mat-icon"),_(28,"content_copy"),p(),_(29," Copy Token "),p()(),R(30,Jye,6,1,"mat-expansion-panel",34),h(31,"mat-expansion-panel")(32,"mat-expansion-panel-header")(33,"mat-panel-title"),_(34,"Token Header"),p()(),h(35,"pre",35),_(36),p()(),h(37,"mat-expansion-panel")(38,"mat-expansion-panel-header")(39,"mat-panel-title"),_(40,"Token Claims (Payload)"),p()(),h(41,"pre",35),_(42),p()(),R(43,txe,7,1,"mat-expansion-panel",0),p()}if(t&2){let e=n.ngIf,i=C(2);g(3),y("color",i.getExpirationColor(e)),g(3),ve(" ",i.getExpirationStatus(e)," "),g(),y("ngIf",!e.isExpired),g(),y("ngIf",e.isExpired),g(6),H(i.formatDate(e.issuedAt)),g(5),H(i.formatDate(e.expiresAt)),g(),y("ngIf",e.payload.aud),g(4),H(i.showRawAccessToken?"visibility_off":"visibility"),g(),ve(" ",i.showRawAccessToken?"Hide":"Show"," Raw Token "),g(5),y("ngIf",i.showRawAccessToken),g(6),H(i.formatJson(e.header)),g(6),H(i.formatJson(e.payload)),g(),y("ngIf",e.payload.scope)}}function nxe(t,n){t&1&&(h(0,"div",40)(1,"mat-icon"),_(2,"info"),p(),h(3,"p"),_(4,"Access Token not available"),p()())}function rxe(t,n){if(t&1&&(h(0,"div",6)(1,"mat-card",7)(2,"mat-card-content")(3,"div",8)(4,"mat-icon"),_(5,"warning"),p(),h(6,"div")(7,"strong"),_(8,"Security Notice:"),p(),_(9," Tokens displayed on this page contain sensitive information. Do not share these tokens with anyone or paste them in untrusted applications. "),p()()()(),h(10,"mat-card",9)(11,"mat-card-header")(12,"mat-icon",10),_(13,"person"),p(),h(14,"mat-card-title"),_(15,"User Information"),p(),h(16,"mat-card-subtitle"),_(17,"Your profile details from ID token"),p()(),h(18,"mat-card-content"),R(19,Uye,33,6,"div",11),p()(),h(20,"mat-card",12)(21,"mat-card-header")(22,"mat-icon",10),_(23,"vpn_key"),p(),h(24,"mat-card-title"),_(25,"Token Details"),p(),h(26,"mat-card-subtitle"),_(27,"Detailed JWT token information and claims"),p()(),h(28,"mat-card-content")(29,"mat-tab-group")(30,"mat-tab",13),R(31,Yye,43,12,"div",14)(32,Qye,5,0,"div",15),p(),h(33,"mat-tab",16),R(34,ixe,44,13,"div",14)(35,nxe,5,0,"div",15),p()()()()()),t&2){let e=C();g(19),y("ngIf",e.profileData==null?null:e.profileData.userInfo),g(12),y("ngIf",e.profileData==null?null:e.profileData.idToken),g(),y("ngIf",!(e.profileData!=null&&e.profileData.idToken)),g(2),y("ngIf",e.profileData==null?null:e.profileData.accessToken),g(),y("ngIf",!(e.profileData!=null&&e.profileData.accessToken))}}var _6=(()=>{let n=class n{constructor(){this.authService=u(Tt),this.oauthService=u(Wm),this.tokenDecoder=u(oU),this.snackBar=u(di),this.router=u(Re),this.profileData=null,this.showRawIdToken=!1,this.showRawAccessToken=!1}ngOnInit(){this.loadProfileData(),this.authSubscription=this.authService.isAuthenticated$.subscribe(()=>{this.loadProfileData()})}ngOnDestroy(){this.authSubscription?.unsubscribe()}loadProfileData(){let i=this.authService.isAuthenticated(),r=this.oauthService.hasValidAccessToken();if(console.log("Authentication Status:",{isAuthenticated:i,hasValidAccessToken:r}),!i&&!r){this.profileData=null;return}let o=this.authService.getUserInfo(),a=this.authService.getAccessToken(),s=this.oauthService.getIdToken(),l=this.authService.getUserRoles();console.log("Profile Data Debug:",{isAuthenticated:i,hasUserInfo:!!o,hasAccessToken:!!a,accessTokenLength:a?.length,hasIdToken:!!s,idTokenLength:s?.length,roles:l}),this.profileData={isAuthenticated:i,userInfo:o,idToken:s?this.tokenDecoder.decodeToken(s):null,accessToken:a?this.tokenDecoder.decodeToken(a):null,roles:l,permissions:this.getUserPermissions()},console.log("Decoded tokens:",{idToken:this.profileData.idToken,accessToken:this.profileData.accessToken})}getUserPermissions(){let i=[];return this.authService.hasRole("HRAdmin")||this.authService.hasRole("Manager")?i.push("canAdd","canEdit","canDelete","canRead"):this.authService.hasRole("Employee")&&i.push("canRead"),i}toggleRawIdToken(){this.showRawIdToken=!this.showRawIdToken}toggleRawAccessToken(){this.showRawAccessToken=!this.showRawAccessToken}copyToClipboard(i,r){navigator.clipboard.writeText(i).then(()=>{this.showMessage(`${r} copied to clipboard`)}).catch(o=>{console.error("Failed to copy:",o),this.showMessage("Failed to copy to clipboard")})}formatJson(i){return JSON.stringify(i,null,2)}getExpirationStatus(i){return this.tokenDecoder.getExpirationStatus(i)}getExpirationColor(i){if(!i||!i.expiresIn)return"";let r=i.expiresIn/3600;return i.isExpired?"warn":r<1?"accent":"primary"}formatDate(i){return i?new Intl.DateTimeFormat("en-US",{dateStyle:"medium",timeStyle:"medium"}).format(i):"N/A"}showMessage(i){this.snackBar.open(i,"Close",{duration:3e3,horizontalPosition:"end",verticalPosition:"top"})}getScopes(i){return i?Array.isArray(i)?i:typeof i=="string"?i.split(" ").filter(r=>r.length>0):[]:[]}};n.\u0275fac=function(r){return new(r||n)},n.\u0275cmp=E({type:n,selectors:[["app-profile-overview"]],decls:5,vars:4,consts:[[4,"ngIf"],["class","not-authenticated",4,"ngIf"],["class","profile-container",4,"ngIf"],[1,"not-authenticated"],[1,"empty-state"],["mat-raised-button","","color","primary","routerLink","/login"],[1,"profile-container"],[1,"security-warning"],[1,"warning-content"],[1,"profile-card"],["mat-card-avatar",""],["class","info-grid",4,"ngIf"],[1,"tokens-card"],["label","ID Token"],["class","token-content",4,"ngIf"],["class","no-token",4,"ngIf"],["label","Access Token"],[1,"info-grid"],[1,"info-item"],[1,"value"],[1,"info-item","full-width"],["highlighted","",3,"color",4,"ngFor","ngForOf"],[3,"color",4,"ngFor","ngForOf"],["highlighted","",3,"color"],[3,"color"],[1,"token-content"],[1,"token-status"],["color","primary",4,"ngIf"],["color","warn",4,"ngIf"],[1,"token-metadata"],[1,"metadata-item"],["class","metadata-item",4,"ngIf"],[1,"token-actions"],["mat-button","",3,"click"],["expanded","",4,"ngIf"],[1,"json-display"],["color","primary"],["color","warn"],["expanded",""],[1,"token-display"],[1,"no-token"],[1,"scopes-list"],[4,"ngFor","ngForOf"]],template:function(r,o){r&1&&(h(0,"page-header"),R(1,Vye,4,1,"ng-container",0)(2,Bye,4,0,"ng-container",0),p(),R(3,jye,14,0,"div",1)(4,rxe,36,5,"div",2)),r&2&&(g(),y("ngIf",o.profileData==null?null:o.profileData.userInfo),g(),y("ngIf",!(o.profileData!=null&&o.profileData.isAuthenticated)),g(),y("ngIf",!(o.profileData!=null&&o.profileData.isAuthenticated)),g(),y("ngIf",o.profileData==null?null:o.profileData.isAuthenticated))},dependencies:[gt,qr,li,$t,zt,HV,Ut,Jt,jV,Xt,ot,mt,ze,kt,s6,cA,a6,g6,dA,p6,f6,Br,pi,rp,__,tw,lk,Nn,ni],styles:[".profile-container[_ngcontent-%COMP%]{padding:16px;max-width:1200px;margin:0 auto;display:flex;flex-direction:column;gap:24px}.not-authenticated[_ngcontent-%COMP%]{padding:16px;max-width:600px;margin:0 auto}.not-authenticated[_ngcontent-%COMP%] .empty-state[_ngcontent-%COMP%]{display:flex;flex-direction:column;align-items:center;justify-content:center;padding:48px 16px;text-align:center}.not-authenticated[_ngcontent-%COMP%] .empty-state[_ngcontent-%COMP%] mat-icon[_ngcontent-%COMP%]{font-size:64px;width:64px;height:64px;color:#00000061;margin-bottom:16px}.not-authenticated[_ngcontent-%COMP%] .empty-state[_ngcontent-%COMP%] h2[_ngcontent-%COMP%]{margin:0 0 8px;font-size:24px;font-weight:500}.not-authenticated[_ngcontent-%COMP%] .empty-state[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{margin:0 0 24px;color:#0009}.not-authenticated[_ngcontent-%COMP%] .empty-state[_ngcontent-%COMP%] button[_ngcontent-%COMP%] mat-icon[_ngcontent-%COMP%]{font-size:20px;width:20px;height:20px;margin-right:8px;color:inherit}.security-warning[_ngcontent-%COMP%]{background-color:#fff3cd;border-left:4px solid #ff9800}.security-warning[_ngcontent-%COMP%] mat-card-content[_ngcontent-%COMP%]{padding:16px}.security-warning[_ngcontent-%COMP%] .warning-content[_ngcontent-%COMP%]{display:flex;align-items:center;gap:12px}.security-warning[_ngcontent-%COMP%] .warning-content[_ngcontent-%COMP%] mat-icon[_ngcontent-%COMP%]{color:#ff9800;flex-shrink:0}.security-warning[_ngcontent-%COMP%] .warning-content[_ngcontent-%COMP%] strong[_ngcontent-%COMP%]{font-weight:600}.profile-card[_ngcontent-%COMP%] mat-card-header[_ngcontent-%COMP%], .tokens-card[_ngcontent-%COMP%] mat-card-header[_ngcontent-%COMP%]{padding:16px;border-bottom:1px solid rgba(0,0,0,.12)}.profile-card[_ngcontent-%COMP%] mat-card-header[_ngcontent-%COMP%] mat-card-title[_ngcontent-%COMP%], .tokens-card[_ngcontent-%COMP%] mat-card-header[_ngcontent-%COMP%] mat-card-title[_ngcontent-%COMP%]{font-size:20px;font-weight:500;margin:0}.profile-card[_ngcontent-%COMP%] mat-card-header[_ngcontent-%COMP%] mat-card-subtitle[_ngcontent-%COMP%], .tokens-card[_ngcontent-%COMP%] mat-card-header[_ngcontent-%COMP%] mat-card-subtitle[_ngcontent-%COMP%]{margin-top:4px;color:#0009}.profile-card[_ngcontent-%COMP%] mat-card-content[_ngcontent-%COMP%], .tokens-card[_ngcontent-%COMP%] mat-card-content[_ngcontent-%COMP%]{padding:24px}.info-grid[_ngcontent-%COMP%]{display:grid;grid-template-columns:repeat(2,1fr);gap:24px}@media (max-width: 768px){.info-grid[_ngcontent-%COMP%]{grid-template-columns:1fr}}.info-grid[_ngcontent-%COMP%] .info-item[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:8px}.info-grid[_ngcontent-%COMP%] .info-item.full-width[_ngcontent-%COMP%]{grid-column:1/-1}.info-grid[_ngcontent-%COMP%] .info-item[_ngcontent-%COMP%] label[_ngcontent-%COMP%]{font-size:12px;font-weight:500;text-transform:uppercase;letter-spacing:.5px;color:#0009}.info-grid[_ngcontent-%COMP%] .info-item[_ngcontent-%COMP%] .value[_ngcontent-%COMP%]{font-size:16px;color:#000000de;word-break:break-word}.token-content[_ngcontent-%COMP%]{padding:24px 0;display:flex;flex-direction:column;gap:16px}.token-content[_ngcontent-%COMP%] .token-status[_ngcontent-%COMP%] mat-chip-set[_ngcontent-%COMP%] mat-chip[_ngcontent-%COMP%] mat-icon[_ngcontent-%COMP%]{margin-right:4px;font-size:18px;width:18px;height:18px}.token-content[_ngcontent-%COMP%] .token-metadata[_ngcontent-%COMP%]{display:grid;grid-template-columns:repeat(auto-fit,minmax(200px,1fr));gap:16px;padding:16px;background-color:#00000005;border-radius:4px}.token-content[_ngcontent-%COMP%] .token-metadata[_ngcontent-%COMP%] .metadata-item[_ngcontent-%COMP%] label[_ngcontent-%COMP%]{display:block;font-size:12px;font-weight:500;text-transform:uppercase;letter-spacing:.5px;color:#0009;margin-bottom:4px}.token-content[_ngcontent-%COMP%] .token-metadata[_ngcontent-%COMP%] .metadata-item[_ngcontent-%COMP%] div[_ngcontent-%COMP%]{font-size:14px;color:#000000de;word-break:break-word}.token-content[_ngcontent-%COMP%] .token-actions[_ngcontent-%COMP%]{display:flex;gap:8px;flex-wrap:wrap}.token-content[_ngcontent-%COMP%] .token-actions[_ngcontent-%COMP%] button[_ngcontent-%COMP%] mat-icon[_ngcontent-%COMP%]{margin-right:4px}.token-content[_ngcontent-%COMP%] mat-expansion-panel[_ngcontent-%COMP%]{margin-top:8px}.token-content[_ngcontent-%COMP%] .token-display[_ngcontent-%COMP%], .token-content[_ngcontent-%COMP%] .json-display[_ngcontent-%COMP%]{background-color:#f5f5f5;padding:16px;border-radius:4px;overflow-x:auto;font-family:Courier New,monospace;font-size:12px;line-height:1.5;margin:0;white-space:pre-wrap;word-break:break-all}.token-content[_ngcontent-%COMP%] .scopes-list[_ngcontent-%COMP%]{padding:16px}.token-content[_ngcontent-%COMP%] .scopes-list[_ngcontent-%COMP%] mat-chip-set[_ngcontent-%COMP%] mat-chip[_ngcontent-%COMP%]{margin:4px}.no-token[_ngcontent-%COMP%]{display:flex;flex-direction:column;align-items:center;justify-content:center;padding:48px 16px;text-align:center;color:#00000061}.no-token[_ngcontent-%COMP%] mat-icon[_ngcontent-%COMP%]{font-size:48px;width:48px;height:48px;margin-bottom:12px}.no-token[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{margin:0;font-size:14px}mat-chip-set[_ngcontent-%COMP%] mat-chip[_ngcontent-%COMP%]{margin:4px}@media (max-width: 768px){.profile-container[_ngcontent-%COMP%]{padding:12px}.profile-card[_ngcontent-%COMP%] mat-card-content[_ngcontent-%COMP%], .tokens-card[_ngcontent-%COMP%] mat-card-content[_ngcontent-%COMP%]{padding:16px}.token-content[_ngcontent-%COMP%]{padding:16px 0}.token-content[_ngcontent-%COMP%] .token-metadata[_ngcontent-%COMP%]{grid-template-columns:1fr}.security-warning[_ngcontent-%COMP%] .warning-content[_ngcontent-%COMP%]{flex-direction:column;align-items:flex-start}}"]});let t=n;return t})();var b6=(()=>{let n=class n{};n.\u0275fac=function(r){return new(r||n)},n.\u0275cmp=E({type:n,selectors:[["app-profile-settings"]],decls:14,vars:0,consts:[[1,"settings-container"],[1,"coming-soon"]],template:function(r,o){r&1&&(h(0,"page-header")(1,"mat-icon"),_(2,"settings"),p(),_(3,` Profile Settings +`),p(),h(4,"div",0)(5,"mat-card")(6,"mat-card-content")(7,"div",1)(8,"mat-icon"),_(9,"construction"),p(),h(10,"h2"),_(11,"Coming Soon"),p(),h(12,"p"),_(13,"User settings functionality will be available in a future update."),p()()()()())},dependencies:[gt,$t,zt,Ut,ot,mt,ni],styles:[".settings-container[_ngcontent-%COMP%]{padding:16px;max-width:800px;margin:0 auto}.settings-container[_ngcontent-%COMP%] .coming-soon[_ngcontent-%COMP%]{display:flex;flex-direction:column;align-items:center;justify-content:center;padding:48px 16px;text-align:center}.settings-container[_ngcontent-%COMP%] .coming-soon[_ngcontent-%COMP%] mat-icon[_ngcontent-%COMP%]{font-size:64px;width:64px;height:64px;color:#00000061;margin-bottom:16px}.settings-container[_ngcontent-%COMP%] .coming-soon[_ngcontent-%COMP%] h2[_ngcontent-%COMP%]{margin:0 0 8px;font-size:24px;font-weight:500}.settings-container[_ngcontent-%COMP%] .coming-soon[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{margin:0;color:#0009}"]});let t=n;return t})();var v6=[{path:"",component:J8,canActivate:[sI],canActivateChild:[sI],children:[{path:"",redirectTo:"dashboard",pathMatch:"full"},{path:"dashboard",component:sU},{path:"employees",component:CU},{path:"employees/create",component:oA,canActivate:[a_]},{path:"employees/edit/:id",component:oA,canActivate:[a_]},{path:"employees/:id",component:wU},{path:"departments",component:HU},{path:"departments/create",component:aA,canActivate:[a_]},{path:"departments/edit/:id",component:aA,canActivate:[a_]},{path:"departments/:id",component:zU},{path:"positions",component:qU},{path:"positions/create",component:sA,canActivate:[s_]},{path:"positions/edit/:id",component:sA,canActivate:[s_]},{path:"positions/:id",component:QU},{path:"salary-ranges",component:ZU},{path:"salary-ranges/create",component:lA,canActivate:[s_]},{path:"salary-ranges/edit/:id",component:lA,canActivate:[s_]},{path:"salary-ranges/:id",component:JU},{path:"profile",children:[{path:"overview",component:_6},{path:"settings",component:b6},{path:"",redirectTo:"overview",pathMatch:"full"}]},{path:"403",component:lU},{path:"404",component:cU},{path:"500",component:dU}]},{path:"auth",component:eU,children:[{path:"register",component:uU}]},{path:"callback",component:mU},{path:"**",redirectTo:"dashboard"}];var y6=(t,n)=>{let e=u(Tt);if(!e.isAuthenticated())return n(t);let i=e.getAccessToken();if(!i)return n(t);let r=t.clone({setHeaders:{Authorization:`Bearer ${i}`}});return n(r)};var x6={providers:[ZD(),{provide:CI,useValue:ko.baseUrl},fL(),Ql(()=>u(Tt).initAuth()),Ql(()=>u(qz).load()),Ql(()=>u(Wz).load()),S1(T1([y6,...e8])),ok(v6,ak({scrollPositionRestoration:"enabled",anchorScrolling:"enabled"}),S0()),J3(),$5(U5()),$3({loader:W3({prefix:"i18n/",suffix:".json"})}),xb(xc.forRoot()),p3([...O3()]),{provide:yg,useFactory:Az,deps:[ia],multi:!0},{provide:gc,deps:[hz],useFactory:t=>t.getPaginatorIntl()},{provide:Bk,useValue:{appearance:"outlined"}},BV({parse:{dateInput:"yyyy-MM-dd"},display:{dateInput:"yyyy-MM-dd",monthYearLabel:"yyyy MMM",dateA11yLabel:"LL",monthYearA11yLabel:"yyyy MMM"}}),l3({parse:{dateInput:"yyyy-MM-dd",yearInput:"yyyy",monthInput:"MMMM",datetimeInput:"yyyy-MM-dd HH:mm",timeInput:"HH:mm"},display:{dateInput:"yyyy-MM-dd",yearInput:"yyyy",monthInput:"MMMM",datetimeInput:"yyyy-MM-dd HH:mm",timeInput:"HH:mm",monthYearLabel:"yyyy MMMM",dateA11yLabel:"LL",monthYearA11yLabel:"MMMM yyyy",popupHeaderDateLabel:"MMM dd, E"}})]};var C6=(()=>{let n=class n{constructor(){this.preloader=u(Gz),this.settings=u(aa)}ngOnInit(){this.settings.setDirection(),this.settings.setTheme()}ngAfterViewInit(){this.preloader.hide()}};n.\u0275fac=function(r){return new(r||n)},n.\u0275cmp=E({type:n,selectors:[["app-root"]],decls:1,vars:0,template:function(r,o){r&1&&k(0,"router-outlet")},dependencies:[ol],encapsulation:2});let t=n;return t})();C1(C6,x6).catch(t=>console.error(t)); diff --git a/polyfills-5CFQRCPP.js b/polyfills-5CFQRCPP.js new file mode 100644 index 0000000..b237b5e --- /dev/null +++ b/polyfills-5CFQRCPP.js @@ -0,0 +1,2 @@ +var ce=globalThis;function te(t){return(ce.__Zone_symbol_prefix||"__zone_symbol__")+t}function ht(){let t=ce.performance;function n(I){t&&t.mark&&t.mark(I)}function a(I,s){t&&t.measure&&t.measure(I,s)}n("Zone");class e{static __symbol__=te;static assertZonePatched(){if(ce.Promise!==S.ZoneAwarePromise)throw new Error("Zone.js has detected that ZoneAwarePromise `(window|global).Promise` has been overwritten.\nMost likely cause is that a Promise polyfill has been loaded after Zone.js (Polyfilling Promise api is not necessary when zone.js is loaded. If you must load one, do so before loading zone.js.)")}static get root(){let s=e.current;for(;s.parent;)s=s.parent;return s}static get current(){return b.zone}static get currentTask(){return D}static __load_patch(s,i,r=!1){if(S.hasOwnProperty(s)){let E=ce[te("forceDuplicateZoneCheck")]===!0;if(!r&&E)throw Error("Already loaded patch: "+s)}else if(!ce["__Zone_disable_"+s]){let E="Zone:"+s;n(E),S[s]=i(ce,e,R),a(E,E)}}get parent(){return this._parent}get name(){return this._name}_parent;_name;_properties;_zoneDelegate;constructor(s,i){this._parent=s,this._name=i?i.name||"unnamed":"",this._properties=i&&i.properties||{},this._zoneDelegate=new f(this,this._parent&&this._parent._zoneDelegate,i)}get(s){let i=this.getZoneWith(s);if(i)return i._properties[s]}getZoneWith(s){let i=this;for(;i;){if(i._properties.hasOwnProperty(s))return i;i=i._parent}return null}fork(s){if(!s)throw new Error("ZoneSpec required!");return this._zoneDelegate.fork(this,s)}wrap(s,i){if(typeof s!="function")throw new Error("Expecting function got: "+s);let r=this._zoneDelegate.intercept(this,s,i),E=this;return function(){return E.runGuarded(r,this,arguments,i)}}run(s,i,r,E){b={parent:b,zone:this};try{return this._zoneDelegate.invoke(this,s,i,r,E)}finally{b=b.parent}}runGuarded(s,i=null,r,E){b={parent:b,zone:this};try{try{return this._zoneDelegate.invoke(this,s,i,r,E)}catch(x){if(this._zoneDelegate.handleError(this,x))throw x}}finally{b=b.parent}}runTask(s,i,r){if(s.zone!=this)throw new Error("A task can only be run in the zone of creation! (Creation: "+(s.zone||J).name+"; Execution: "+this.name+")");let E=s,{type:x,data:{isPeriodic:ee=!1,isRefreshable:M=!1}={}}=s;if(s.state===q&&(x===U||x===k))return;let he=s.state!=A;he&&E._transitionTo(A,d);let _e=D;D=E,b={parent:b,zone:this};try{x==k&&s.data&&!ee&&!M&&(s.cancelFn=void 0);try{return this._zoneDelegate.invokeTask(this,E,i,r)}catch(Q){if(this._zoneDelegate.handleError(this,Q))throw Q}}finally{let Q=s.state;if(Q!==q&&Q!==X)if(x==U||ee||M&&Q===p)he&&E._transitionTo(d,A,p);else{let Te=E._zoneDelegates;this._updateTaskCount(E,-1),he&&E._transitionTo(q,A,q),M&&(E._zoneDelegates=Te)}b=b.parent,D=_e}}scheduleTask(s){if(s.zone&&s.zone!==this){let r=this;for(;r;){if(r===s.zone)throw Error(`can not reschedule task to ${this.name} which is descendants of the original zone ${s.zone.name}`);r=r.parent}}s._transitionTo(p,q);let i=[];s._zoneDelegates=i,s._zone=this;try{s=this._zoneDelegate.scheduleTask(this,s)}catch(r){throw s._transitionTo(X,p,q),this._zoneDelegate.handleError(this,r),r}return s._zoneDelegates===i&&this._updateTaskCount(s,1),s.state==p&&s._transitionTo(d,p),s}scheduleMicroTask(s,i,r,E){return this.scheduleTask(new g(F,s,i,r,E,void 0))}scheduleMacroTask(s,i,r,E,x){return this.scheduleTask(new g(k,s,i,r,E,x))}scheduleEventTask(s,i,r,E,x){return this.scheduleTask(new g(U,s,i,r,E,x))}cancelTask(s){if(s.zone!=this)throw new Error("A task can only be cancelled in the zone of creation! (Creation: "+(s.zone||J).name+"; Execution: "+this.name+")");if(!(s.state!==d&&s.state!==A)){s._transitionTo(V,d,A);try{this._zoneDelegate.cancelTask(this,s)}catch(i){throw s._transitionTo(X,V),this._zoneDelegate.handleError(this,i),i}return this._updateTaskCount(s,-1),s._transitionTo(q,V),s.runCount=-1,s}}_updateTaskCount(s,i){let r=s._zoneDelegates;i==-1&&(s._zoneDelegates=null);for(let E=0;EI.hasTask(i,r),onScheduleTask:(I,s,i,r)=>I.scheduleTask(i,r),onInvokeTask:(I,s,i,r,E,x)=>I.invokeTask(i,r,E,x),onCancelTask:(I,s,i,r)=>I.cancelTask(i,r)};class f{get zone(){return this._zone}_zone;_taskCounts={microTask:0,macroTask:0,eventTask:0};_parentDelegate;_forkDlgt;_forkZS;_forkCurrZone;_interceptDlgt;_interceptZS;_interceptCurrZone;_invokeDlgt;_invokeZS;_invokeCurrZone;_handleErrorDlgt;_handleErrorZS;_handleErrorCurrZone;_scheduleTaskDlgt;_scheduleTaskZS;_scheduleTaskCurrZone;_invokeTaskDlgt;_invokeTaskZS;_invokeTaskCurrZone;_cancelTaskDlgt;_cancelTaskZS;_cancelTaskCurrZone;_hasTaskDlgt;_hasTaskDlgtOwner;_hasTaskZS;_hasTaskCurrZone;constructor(s,i,r){this._zone=s,this._parentDelegate=i,this._forkZS=r&&(r&&r.onFork?r:i._forkZS),this._forkDlgt=r&&(r.onFork?i:i._forkDlgt),this._forkCurrZone=r&&(r.onFork?this._zone:i._forkCurrZone),this._interceptZS=r&&(r.onIntercept?r:i._interceptZS),this._interceptDlgt=r&&(r.onIntercept?i:i._interceptDlgt),this._interceptCurrZone=r&&(r.onIntercept?this._zone:i._interceptCurrZone),this._invokeZS=r&&(r.onInvoke?r:i._invokeZS),this._invokeDlgt=r&&(r.onInvoke?i:i._invokeDlgt),this._invokeCurrZone=r&&(r.onInvoke?this._zone:i._invokeCurrZone),this._handleErrorZS=r&&(r.onHandleError?r:i._handleErrorZS),this._handleErrorDlgt=r&&(r.onHandleError?i:i._handleErrorDlgt),this._handleErrorCurrZone=r&&(r.onHandleError?this._zone:i._handleErrorCurrZone),this._scheduleTaskZS=r&&(r.onScheduleTask?r:i._scheduleTaskZS),this._scheduleTaskDlgt=r&&(r.onScheduleTask?i:i._scheduleTaskDlgt),this._scheduleTaskCurrZone=r&&(r.onScheduleTask?this._zone:i._scheduleTaskCurrZone),this._invokeTaskZS=r&&(r.onInvokeTask?r:i._invokeTaskZS),this._invokeTaskDlgt=r&&(r.onInvokeTask?i:i._invokeTaskDlgt),this._invokeTaskCurrZone=r&&(r.onInvokeTask?this._zone:i._invokeTaskCurrZone),this._cancelTaskZS=r&&(r.onCancelTask?r:i._cancelTaskZS),this._cancelTaskDlgt=r&&(r.onCancelTask?i:i._cancelTaskDlgt),this._cancelTaskCurrZone=r&&(r.onCancelTask?this._zone:i._cancelTaskCurrZone),this._hasTaskZS=null,this._hasTaskDlgt=null,this._hasTaskDlgtOwner=null,this._hasTaskCurrZone=null;let E=r&&r.onHasTask,x=i&&i._hasTaskZS;(E||x)&&(this._hasTaskZS=E?r:c,this._hasTaskDlgt=i,this._hasTaskDlgtOwner=this,this._hasTaskCurrZone=this._zone,r.onScheduleTask||(this._scheduleTaskZS=c,this._scheduleTaskDlgt=i,this._scheduleTaskCurrZone=this._zone),r.onInvokeTask||(this._invokeTaskZS=c,this._invokeTaskDlgt=i,this._invokeTaskCurrZone=this._zone),r.onCancelTask||(this._cancelTaskZS=c,this._cancelTaskDlgt=i,this._cancelTaskCurrZone=this._zone))}fork(s,i){return this._forkZS?this._forkZS.onFork(this._forkDlgt,this.zone,s,i):new e(s,i)}intercept(s,i,r){return this._interceptZS?this._interceptZS.onIntercept(this._interceptDlgt,this._interceptCurrZone,s,i,r):i}invoke(s,i,r,E,x){return this._invokeZS?this._invokeZS.onInvoke(this._invokeDlgt,this._invokeCurrZone,s,i,r,E,x):i.apply(r,E)}handleError(s,i){return this._handleErrorZS?this._handleErrorZS.onHandleError(this._handleErrorDlgt,this._handleErrorCurrZone,s,i):!0}scheduleTask(s,i){let r=i;if(this._scheduleTaskZS)this._hasTaskZS&&r._zoneDelegates.push(this._hasTaskDlgtOwner),r=this._scheduleTaskZS.onScheduleTask(this._scheduleTaskDlgt,this._scheduleTaskCurrZone,s,i),r||(r=i);else if(i.scheduleFn)i.scheduleFn(i);else if(i.type==F)z(i);else throw new Error("Task is missing scheduleFn.");return r}invokeTask(s,i,r,E){return this._invokeTaskZS?this._invokeTaskZS.onInvokeTask(this._invokeTaskDlgt,this._invokeTaskCurrZone,s,i,r,E):i.callback.apply(r,E)}cancelTask(s,i){let r;if(this._cancelTaskZS)r=this._cancelTaskZS.onCancelTask(this._cancelTaskDlgt,this._cancelTaskCurrZone,s,i);else{if(!i.cancelFn)throw Error("Task is not cancelable");r=i.cancelFn(i)}return r}hasTask(s,i){try{this._hasTaskZS&&this._hasTaskZS.onHasTask(this._hasTaskDlgt,this._hasTaskCurrZone,s,i)}catch(r){this.handleError(s,r)}}_updateTaskCount(s,i){let r=this._taskCounts,E=r[s],x=r[s]=E+i;if(x<0)throw new Error("More tasks executed then were scheduled.");if(E==0||x==0){let ee={microTask:r.microTask>0,macroTask:r.macroTask>0,eventTask:r.eventTask>0,change:s};this.hasTask(this._zone,ee)}}}class g{type;source;invoke;callback;data;scheduleFn;cancelFn;_zone=null;runCount=0;_zoneDelegates=null;_state="notScheduled";constructor(s,i,r,E,x,ee){if(this.type=s,this.source=i,this.data=E,this.scheduleFn=x,this.cancelFn=ee,!r)throw new Error("callback is not defined");this.callback=r;let M=this;s===U&&E&&E.useG?this.invoke=g.invokeTask:this.invoke=function(){return g.invokeTask.call(ce,M,this,arguments)}}static invokeTask(s,i,r){s||(s=this),K++;try{return s.runCount++,s.zone.runTask(s,i,r)}finally{K==1&&$(),K--}}get zone(){return this._zone}get state(){return this._state}cancelScheduleRequest(){this._transitionTo(q,p)}_transitionTo(s,i,r){if(this._state===i||this._state===r)this._state=s,s==q&&(this._zoneDelegates=null);else throw new Error(`${this.type} '${this.source}': can not transition to '${s}', expecting state '${i}'${r?" or '"+r+"'":""}, was '${this._state}'.`)}toString(){return this.data&&typeof this.data.handleId<"u"?this.data.handleId.toString():Object.prototype.toString.call(this)}toJSON(){return{type:this.type,state:this.state,source:this.source,zone:this.zone.name,runCount:this.runCount}}}let T=te("setTimeout"),y=te("Promise"),w=te("then"),_=[],P=!1,L;function H(I){if(L||ce[y]&&(L=ce[y].resolve(0)),L){let s=L[w];s||(s=L.then),s.call(L,I)}else ce[T](I,0)}function z(I){K===0&&_.length===0&&H($),I&&_.push(I)}function $(){if(!P){for(P=!0;_.length;){let I=_;_=[];for(let s=0;sb,onUnhandledError:W,microtaskDrainDone:W,scheduleMicroTask:z,showUncaughtError:()=>!e[te("ignoreConsoleErrorUncaughtError")],patchEventTarget:()=>[],patchOnProperties:W,patchMethod:()=>W,bindArguments:()=>[],patchThen:()=>W,patchMacroTask:()=>W,patchEventPrototype:()=>W,isIEOrEdge:()=>!1,getGlobalObjects:()=>{},ObjectDefineProperty:()=>W,ObjectGetOwnPropertyDescriptor:()=>{},ObjectCreate:()=>{},ArraySlice:()=>[],patchClass:()=>W,wrapWithCurrentZone:()=>W,filterProperties:()=>[],attachOriginToPatched:()=>W,_redefineProperty:()=>W,patchCallbacks:()=>W,nativeScheduleMicroTask:H},b={parent:null,zone:new e(null,null)},D=null,K=0;function W(){}return a("Zone","Zone"),e}function dt(){let t=globalThis,n=t[te("forceDuplicateZoneCheck")]===!0;if(t.Zone&&(n||typeof t.Zone.__symbol__!="function"))throw new Error("Zone already loaded.");return t.Zone??=ht(),t.Zone}var pe=Object.getOwnPropertyDescriptor,Me=Object.defineProperty,Ae=Object.getPrototypeOf,_t=Object.create,Tt=Array.prototype.slice,je="addEventListener",He="removeEventListener",Ne=te(je),Ze=te(He),ae="true",le="false",ve=te("");function Ve(t,n){return Zone.current.wrap(t,n)}function xe(t,n,a,e,c){return Zone.current.scheduleMacroTask(t,n,a,e,c)}var j=te,we=typeof window<"u",be=we?window:void 0,Y=we&&be||globalThis,Et="removeAttribute";function Fe(t,n){for(let a=t.length-1;a>=0;a--)typeof t[a]=="function"&&(t[a]=Ve(t[a],n+"_"+a));return t}function gt(t,n){let a=t.constructor.name;for(let e=0;e{let y=function(){return T.apply(this,Fe(arguments,a+"."+c))};return fe(y,T),y})(f)}}}function et(t){return t?t.writable===!1?!1:!(typeof t.get=="function"&&typeof t.set>"u"):!0}var tt=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope,De=!("nw"in Y)&&typeof Y.process<"u"&&Y.process.toString()==="[object process]",Ge=!De&&!tt&&!!(we&&be.HTMLElement),nt=typeof Y.process<"u"&&Y.process.toString()==="[object process]"&&!tt&&!!(we&&be.HTMLElement),Ce={},kt=j("enable_beforeunload"),Xe=function(t){if(t=t||Y.event,!t)return;let n=Ce[t.type];n||(n=Ce[t.type]=j("ON_PROPERTY"+t.type));let a=this||t.target||Y,e=a[n],c;if(Ge&&a===be&&t.type==="error"){let f=t;c=e&&e.call(this,f.message,f.filename,f.lineno,f.colno,f.error),c===!0&&t.preventDefault()}else c=e&&e.apply(this,arguments),t.type==="beforeunload"&&Y[kt]&&typeof c=="string"?t.returnValue=c:c!=null&&!c&&t.preventDefault();return c};function Ye(t,n,a){let e=pe(t,n);if(!e&&a&&pe(a,n)&&(e={enumerable:!0,configurable:!0}),!e||!e.configurable)return;let c=j("on"+n+"patched");if(t.hasOwnProperty(c)&&t[c])return;delete e.writable,delete e.value;let f=e.get,g=e.set,T=n.slice(2),y=Ce[T];y||(y=Ce[T]=j("ON_PROPERTY"+T)),e.set=function(w){let _=this;if(!_&&t===Y&&(_=Y),!_)return;typeof _[y]=="function"&&_.removeEventListener(T,Xe),g?.call(_,null),_[y]=w,typeof w=="function"&&_.addEventListener(T,Xe,!1)},e.get=function(){let w=this;if(!w&&t===Y&&(w=Y),!w)return null;let _=w[y];if(_)return _;if(f){let P=f.call(this);if(P)return e.set.call(this,P),typeof w[Et]=="function"&&w.removeAttribute(n),P}return null},Me(t,n,e),t[c]=!0}function rt(t,n,a){if(n)for(let e=0;efunction(g,T){let y=a(g,T);return y.cbIdx>=0&&typeof T[y.cbIdx]=="function"?xe(y.name,T[y.cbIdx],y,c):f.apply(g,T)})}function fe(t,n){t[j("OriginalDelegate")]=n}var $e=!1,Le=!1;function yt(){if($e)return Le;$e=!0;try{let t=be.navigator.userAgent;(t.indexOf("MSIE ")!==-1||t.indexOf("Trident/")!==-1||t.indexOf("Edge/")!==-1)&&(Le=!0)}catch{}return Le}function Je(t){return typeof t=="function"}function Ke(t){return typeof t=="number"}var pt={useG:!0},ne={},ot={},st=new RegExp("^"+ve+"(\\w+)(true|false)$"),it=j("propagationStopped");function ct(t,n){let a=(n?n(t):t)+le,e=(n?n(t):t)+ae,c=ve+a,f=ve+e;ne[t]={},ne[t][le]=c,ne[t][ae]=f}function vt(t,n,a,e){let c=e&&e.add||je,f=e&&e.rm||He,g=e&&e.listeners||"eventListeners",T=e&&e.rmAll||"removeAllListeners",y=j(c),w="."+c+":",_="prependListener",P="."+_+":",L=function(p,d,A){if(p.isRemoved)return;let V=p.callback;typeof V=="object"&&V.handleEvent&&(p.callback=k=>V.handleEvent(k),p.originalDelegate=V);let X;try{p.invoke(p,d,[A])}catch(k){X=k}let F=p.options;if(F&&typeof F=="object"&&F.once){let k=p.originalDelegate?p.originalDelegate:p.callback;d[f].call(d,A.type,k,F)}return X};function H(p,d,A){if(d=d||t.event,!d)return;let V=p||d.target||t,X=V[ne[d.type][A?ae:le]];if(X){let F=[];if(X.length===1){let k=L(X[0],V,d);k&&F.push(k)}else{let k=X.slice();for(let U=0;U{throw U})}}}let z=function(p){return H(this,p,!1)},$=function(p){return H(this,p,!0)};function J(p,d){if(!p)return!1;let A=!0;d&&d.useG!==void 0&&(A=d.useG);let V=d&&d.vh,X=!0;d&&d.chkDup!==void 0&&(X=d.chkDup);let F=!1;d&&d.rt!==void 0&&(F=d.rt);let k=p;for(;k&&!k.hasOwnProperty(c);)k=Ae(k);if(!k&&p[c]&&(k=p),!k||k[y])return!1;let U=d&&d.eventNameToString,S={},R=k[y]=k[c],b=k[j(f)]=k[f],D=k[j(g)]=k[g],K=k[j(T)]=k[T],W;d&&d.prepend&&(W=k[j(d.prepend)]=k[d.prepend]);function I(o,u){return u?typeof o=="boolean"?{capture:o,passive:!0}:o?typeof o=="object"&&o.passive!==!1?{...o,passive:!0}:o:{passive:!0}:o}let s=function(o){if(!S.isExisting)return R.call(S.target,S.eventName,S.capture?$:z,S.options)},i=function(o){if(!o.isRemoved){let u=ne[o.eventName],v;u&&(v=u[o.capture?ae:le]);let C=v&&o.target[v];if(C){for(let m=0;mre.zone.cancelTask(re);o.call(Ee,"abort",ie,{once:!0}),re.removeAbortListener=()=>Ee.removeEventListener("abort",ie)}if(S.target=null,me&&(me.taskData=null),Be&&(S.options.once=!0),typeof re.options!="boolean"&&(re.options=se),re.target=N,re.capture=Se,re.eventName=Z,B&&(re.originalDelegate=G),O?ge.unshift(re):ge.push(re),m)return N}};return k[c]=l(R,w,ee,M,F),W&&(k[_]=l(W,P,E,M,F,!0)),k[f]=function(){let o=this||t,u=arguments[0];d&&d.transferEventName&&(u=d.transferEventName(u));let v=arguments[2],C=v?typeof v=="boolean"?!0:v.capture:!1,m=arguments[1];if(!m)return b.apply(this,arguments);if(V&&!V(b,m,o,arguments))return;let O=ne[u],N;O&&(N=O[C?ae:le]);let Z=N&&o[N];if(Z)for(let G=0;Gfunction(c,f){c[it]=!0,e&&e.apply(c,f)})}function Pt(t,n){n.patchMethod(t,"queueMicrotask",a=>function(e,c){Zone.current.scheduleMicroTask("queueMicrotask",c[0])})}var Re=j("zoneTask");function ke(t,n,a,e){let c=null,f=null;n+=e,a+=e;let g={};function T(w){let _=w.data;_.args[0]=function(){return w.invoke.apply(this,arguments)};let P=c.apply(t,_.args);return Ke(P)?_.handleId=P:(_.handle=P,_.isRefreshable=Je(P.refresh)),w}function y(w){let{handle:_,handleId:P}=w.data;return f.call(t,_??P)}c=ue(t,n,w=>function(_,P){if(Je(P[0])){let L={isRefreshable:!1,isPeriodic:e==="Interval",delay:e==="Timeout"||e==="Interval"?P[1]||0:void 0,args:P},H=P[0];P[0]=function(){try{return H.apply(this,arguments)}finally{let{handle:A,handleId:V,isPeriodic:X,isRefreshable:F}=L;!X&&!F&&(V?delete g[V]:A&&(A[Re]=null))}};let z=xe(n,P[0],L,T,y);if(!z)return z;let{handleId:$,handle:J,isRefreshable:q,isPeriodic:p}=z.data;if($)g[$]=z;else if(J&&(J[Re]=z,q&&!p)){let d=J.refresh;J.refresh=function(){let{zone:A,state:V}=z;return V==="notScheduled"?(z._state="scheduled",A._updateTaskCount(z,1)):V==="running"&&(z._state="scheduling"),d.call(this)}}return J??$??z}else return w.apply(t,P)}),f=ue(t,a,w=>function(_,P){let L=P[0],H;Ke(L)?(H=g[L],delete g[L]):(H=L?.[Re],H?L[Re]=null:H=L),H?.type?H.cancelFn&&H.zone.cancelTask(H):w.apply(t,P)})}function Rt(t,n){let{isBrowser:a,isMix:e}=n.getGlobalObjects();if(!a&&!e||!t.customElements||!("customElements"in t))return;let c=["connectedCallback","disconnectedCallback","adoptedCallback","attributeChangedCallback","formAssociatedCallback","formDisabledCallback","formResetCallback","formStateRestoreCallback"];n.patchCallbacks(n,t.customElements,"customElements","define",c)}function Ct(t,n){if(Zone[n.symbol("patchEventTarget")])return;let{eventNames:a,zoneSymbolEventNames:e,TRUE_STR:c,FALSE_STR:f,ZONE_SYMBOL_PREFIX:g}=n.getGlobalObjects();for(let y=0;yf.target===t);if(e.length===0)return n;let c=e[0].ignoreProperties;return n.filter(f=>c.indexOf(f)===-1)}function Qe(t,n,a,e){if(!t)return;let c=lt(t,n,a);rt(t,c,e)}function Ie(t){return Object.getOwnPropertyNames(t).filter(n=>n.startsWith("on")&&n.length>2).map(n=>n.substring(2))}function Dt(t,n){if(De&&!nt||Zone[t.symbol("patchEvents")])return;let a=n.__Zone_ignore_on_properties,e=[];if(Ge){let c=window;e=e.concat(["Document","SVGElement","Element","HTMLElement","HTMLBodyElement","HTMLMediaElement","HTMLFrameSetElement","HTMLFrameElement","HTMLIFrameElement","HTMLMarqueeElement","Worker"]);let f=[];Qe(c,Ie(c),a&&a.concat(f),Ae(c))}e=e.concat(["XMLHttpRequest","XMLHttpRequestEventTarget","IDBIndex","IDBRequest","IDBOpenDBRequest","IDBDatabase","IDBTransaction","IDBCursor","WebSocket"]);for(let c=0;c{let a=n[t.__symbol__("legacyPatch")];a&&a()}),t.__load_patch("timers",n=>{let e="clear";ke(n,"set",e,"Timeout"),ke(n,"set",e,"Interval"),ke(n,"set",e,"Immediate")}),t.__load_patch("requestAnimationFrame",n=>{ke(n,"request","cancel","AnimationFrame"),ke(n,"mozRequest","mozCancel","AnimationFrame"),ke(n,"webkitRequest","webkitCancel","AnimationFrame")}),t.__load_patch("blocking",(n,a)=>{let e=["alert","prompt","confirm"];for(let c=0;cfunction(w,_){return a.current.run(g,n,_,y)})}}),t.__load_patch("EventTarget",(n,a,e)=>{wt(n,e),Ct(n,e);let c=n.XMLHttpRequestEventTarget;c&&c.prototype&&e.patchEventTarget(n,e,[c.prototype])}),t.__load_patch("MutationObserver",(n,a,e)=>{ye("MutationObserver"),ye("WebKitMutationObserver")}),t.__load_patch("IntersectionObserver",(n,a,e)=>{ye("IntersectionObserver")}),t.__load_patch("FileReader",(n,a,e)=>{ye("FileReader")}),t.__load_patch("on_property",(n,a,e)=>{Dt(e,n)}),t.__load_patch("customElements",(n,a,e)=>{Rt(n,e)}),t.__load_patch("XHR",(n,a)=>{w(n);let e=j("xhrTask"),c=j("xhrSync"),f=j("xhrListener"),g=j("xhrScheduled"),T=j("xhrURL"),y=j("xhrErrorBeforeScheduled");function w(_){let P=_.XMLHttpRequest;if(!P)return;let L=P.prototype;function H(R){return R[e]}let z=L[Ne],$=L[Ze];if(!z){let R=_.XMLHttpRequestEventTarget;if(R){let b=R.prototype;z=b[Ne],$=b[Ze]}}let J="readystatechange",q="scheduled";function p(R){let b=R.data,D=b.target;D[g]=!1,D[y]=!1;let K=D[f];z||(z=D[Ne],$=D[Ze]),K&&$.call(D,J,K);let W=D[f]=()=>{if(D.readyState===D.DONE)if(!b.aborted&&D[g]&&R.state===q){let s=D[a.__symbol__("loadfalse")];if(D.status!==0&&s&&s.length>0){let i=R.invoke;R.invoke=function(){let r=D[a.__symbol__("loadfalse")];for(let E=0;Efunction(R,b){return R[c]=b[2]==!1,R[T]=b[1],V.apply(R,b)}),X="XMLHttpRequest.send",F=j("fetchTaskAborting"),k=j("fetchTaskScheduling"),U=ue(L,"send",()=>function(R,b){if(a.current[k]===!0||R[c])return U.apply(R,b);{let D={target:R,url:R[T],isPeriodic:!1,args:b,aborted:!1},K=xe(X,d,D,p,A);R&&R[y]===!0&&!D.aborted&&K.state===q&&K.invoke()}}),S=ue(L,"abort",()=>function(R,b){let D=H(R);if(D&&typeof D.type=="string"){if(D.cancelFn==null||D.data&&D.data.aborted)return;D.zone.cancelTask(D)}else if(a.current[F]===!0)return S.apply(R,b)})}}),t.__load_patch("geolocation",n=>{n.navigator&&n.navigator.geolocation&>(n.navigator.geolocation,["getCurrentPosition","watchPosition"])}),t.__load_patch("PromiseRejectionEvent",(n,a)=>{function e(c){return function(f){at(n,c).forEach(T=>{let y=n.PromiseRejectionEvent;if(y){let w=new y(c,{promise:f.promise,reason:f.rejection});T.invoke(w)}})}}n.PromiseRejectionEvent&&(a[j("unhandledPromiseRejectionHandler")]=e("unhandledrejection"),a[j("rejectionHandledHandler")]=e("rejectionhandled"))}),t.__load_patch("queueMicrotask",(n,a,e)=>{Pt(n,e)})}function Ot(t){t.__load_patch("ZoneAwarePromise",(n,a,e)=>{let c=Object.getOwnPropertyDescriptor,f=Object.defineProperty;function g(h){if(h&&h.toString===Object.prototype.toString){let l=h.constructor&&h.constructor.name;return(l||"")+": "+JSON.stringify(h)}return h?h.toString():Object.prototype.toString.call(h)}let T=e.symbol,y=[],w=n[T("DISABLE_WRAPPING_UNCAUGHT_PROMISE_REJECTION")]!==!1,_=T("Promise"),P=T("then"),L="__creationTrace__";e.onUnhandledError=h=>{if(e.showUncaughtError()){let l=h&&h.rejection;l?console.error("Unhandled Promise rejection:",l instanceof Error?l.message:l,"; Zone:",h.zone.name,"; Task:",h.task&&h.task.source,"; Value:",l,l instanceof Error?l.stack:void 0):console.error(h)}},e.microtaskDrainDone=()=>{for(;y.length;){let h=y.shift();try{h.zone.runGuarded(()=>{throw h.throwOriginal?h.rejection:h})}catch(l){z(l)}}};let H=T("unhandledPromiseRejectionHandler");function z(h){e.onUnhandledError(h);try{let l=a[H];typeof l=="function"&&l.call(this,h)}catch{}}function $(h){return h&&typeof h.then=="function"}function J(h){return h}function q(h){return M.reject(h)}let p=T("state"),d=T("value"),A=T("finally"),V=T("parentPromiseValue"),X=T("parentPromiseState"),F="Promise.then",k=null,U=!0,S=!1,R=0;function b(h,l){return o=>{try{I(h,l,o)}catch(u){I(h,!1,u)}}}let D=function(){let h=!1;return function(o){return function(){h||(h=!0,o.apply(null,arguments))}}},K="Promise resolved with itself",W=T("currentTaskTrace");function I(h,l,o){let u=D();if(h===o)throw new TypeError(K);if(h[p]===k){let v=null;try{(typeof o=="object"||typeof o=="function")&&(v=o&&o.then)}catch(C){return u(()=>{I(h,!1,C)})(),h}if(l!==S&&o instanceof M&&o.hasOwnProperty(p)&&o.hasOwnProperty(d)&&o[p]!==k)i(o),I(h,o[p],o[d]);else if(l!==S&&typeof v=="function")try{v.call(o,u(b(h,l)),u(b(h,!1)))}catch(C){u(()=>{I(h,!1,C)})()}else{h[p]=l;let C=h[d];if(h[d]=o,h[A]===A&&l===U&&(h[p]=h[X],h[d]=h[V]),l===S&&o instanceof Error){let m=a.currentTask&&a.currentTask.data&&a.currentTask.data[L];m&&f(o,W,{configurable:!0,enumerable:!1,writable:!0,value:m})}for(let m=0;m{try{let O=h[d],N=!!o&&A===o[A];N&&(o[V]=O,o[X]=C);let Z=l.run(m,void 0,N&&m!==q&&m!==J?[]:[O]);I(o,!0,Z)}catch(O){I(o,!1,O)}},o)}let E="function ZoneAwarePromise() { [native code] }",x=function(){},ee=n.AggregateError;class M{static toString(){return E}static resolve(l){return l instanceof M?l:I(new this(null),U,l)}static reject(l){return I(new this(null),S,l)}static withResolvers(){let l={};return l.promise=new M((o,u)=>{l.resolve=o,l.reject=u}),l}static any(l){if(!l||typeof l[Symbol.iterator]!="function")return Promise.reject(new ee([],"All promises were rejected"));let o=[],u=0;try{for(let m of l)u++,o.push(M.resolve(m))}catch{return Promise.reject(new ee([],"All promises were rejected"))}if(u===0)return Promise.reject(new ee([],"All promises were rejected"));let v=!1,C=[];return new M((m,O)=>{for(let N=0;N{v||(v=!0,m(Z))},Z=>{C.push(Z),u--,u===0&&(v=!0,O(new ee(C,"All promises were rejected")))})})}static race(l){let o,u,v=new this((O,N)=>{o=O,u=N});function C(O){o(O)}function m(O){u(O)}for(let O of l)$(O)||(O=this.resolve(O)),O.then(C,m);return v}static all(l){return M.allWithCallback(l)}static allSettled(l){return(this&&this.prototype instanceof M?this:M).allWithCallback(l,{thenCallback:u=>({status:"fulfilled",value:u}),errorCallback:u=>({status:"rejected",reason:u})})}static allWithCallback(l,o){let u,v,C=new this((Z,G)=>{u=Z,v=G}),m=2,O=0,N=[];for(let Z of l){$(Z)||(Z=this.resolve(Z));let G=O;try{Z.then(B=>{N[G]=o?o.thenCallback(B):B,m--,m===0&&u(N)},B=>{o?(N[G]=o.errorCallback(B),m--,m===0&&u(N)):v(B)})}catch(B){v(B)}m++,O++}return m-=2,m===0&&u(N),C}constructor(l){let o=this;if(!(o instanceof M))throw new Error("Must be an instanceof Promise.");o[p]=k,o[d]=[];try{let u=D();l&&l(u(b(o,U)),u(b(o,S)))}catch(u){I(o,!1,u)}}get[Symbol.toStringTag](){return"Promise"}get[Symbol.species](){return M}then(l,o){let u=this.constructor?.[Symbol.species];(!u||typeof u!="function")&&(u=this.constructor||M);let v=new u(x),C=a.current;return this[p]==k?this[d].push(C,v,l,o):r(this,C,v,l,o),v}catch(l){return this.then(null,l)}finally(l){let o=this.constructor?.[Symbol.species];(!o||typeof o!="function")&&(o=M);let u=new o(x);u[A]=A;let v=a.current;return this[p]==k?this[d].push(v,u,l,l):r(this,v,u,l,l),u}}M.resolve=M.resolve,M.reject=M.reject,M.race=M.race,M.all=M.all;let he=n[_]=n.Promise;n.Promise=M;let _e=T("thenPatched");function Q(h){let l=h.prototype,o=c(l,"then");if(o&&(o.writable===!1||!o.configurable))return;let u=l.then;l[P]=u,h.prototype.then=function(v,C){return new M((O,N)=>{u.call(this,O,N)}).then(v,C)},h[_e]=!0}e.patchThen=Q;function Te(h){return function(l,o){let u=h.apply(l,o);if(u instanceof M)return u;let v=u.constructor;return v[_e]||Q(v),u}}return he&&(Q(he),ue(n,"fetch",h=>Te(h))),Promise[a.__symbol__("uncaughtPromiseErrors")]=y,M})}function Nt(t){t.__load_patch("toString",n=>{let a=Function.prototype.toString,e=j("OriginalDelegate"),c=j("Promise"),f=j("Error"),g=function(){if(typeof this=="function"){let _=this[e];if(_)return typeof _=="function"?a.call(_):Object.prototype.toString.call(_);if(this===Promise){let P=n[c];if(P)return a.call(P)}if(this===Error){let P=n[f];if(P)return a.call(P)}}return a.call(this)};g[e]=a,Function.prototype.toString=g;let T=Object.prototype.toString,y="[object Promise]";Object.prototype.toString=function(){return typeof Promise=="function"&&this instanceof Promise?y:T.call(this)}})}function Zt(t,n,a,e,c){let f=Zone.__symbol__(e);if(n[f])return;let g=n[f]=n[e];n[e]=function(T,y,w){return y&&y.prototype&&c.forEach(function(_){let P=`${a}.${e}::`+_,L=y.prototype;try{if(L.hasOwnProperty(_)){let H=t.ObjectGetOwnPropertyDescriptor(L,_);H&&H.value?(H.value=t.wrapWithCurrentZone(H.value,P),t._redefineProperty(y.prototype,_,H)):L[_]&&(L[_]=t.wrapWithCurrentZone(L[_],P))}else L[_]&&(L[_]=t.wrapWithCurrentZone(L[_],P))}catch{}}),g.call(n,T,y,w)},t.attachOriginToPatched(n[e],g)}function Lt(t){t.__load_patch("util",(n,a,e)=>{let c=Ie(n);e.patchOnProperties=rt,e.patchMethod=ue,e.bindArguments=Fe,e.patchMacroTask=mt;let f=a.__symbol__("BLACK_LISTED_EVENTS"),g=a.__symbol__("UNPATCHED_EVENTS");n[g]&&(n[f]=n[g]),n[f]&&(a[f]=a[g]=n[f]),e.patchEventPrototype=bt,e.patchEventTarget=vt,e.isIEOrEdge=yt,e.ObjectDefineProperty=Me,e.ObjectGetOwnPropertyDescriptor=pe,e.ObjectCreate=_t,e.ArraySlice=Tt,e.patchClass=ye,e.wrapWithCurrentZone=Ve,e.filterProperties=lt,e.attachOriginToPatched=fe,e._redefineProperty=Object.defineProperty,e.patchCallbacks=Zt,e.getGlobalObjects=()=>({globalSources:ot,zoneSymbolEventNames:ne,eventNames:c,isBrowser:Ge,isMix:nt,isNode:De,TRUE_STR:ae,FALSE_STR:le,ZONE_SYMBOL_PREFIX:ve,ADD_EVENT_LISTENER_STR:je,REMOVE_EVENT_LISTENER_STR:He})})}function It(t){Ot(t),Nt(t),Lt(t)}var ut=dt();It(ut);St(ut); diff --git a/silent-refresh.html b/silent-refresh.html new file mode 100644 index 0000000..c4e2e74 --- /dev/null +++ b/silent-refresh.html @@ -0,0 +1,12 @@ + + + + + Silent Refresh + + + + + diff --git a/staticwebapp.config.json b/staticwebapp.config.json new file mode 100644 index 0000000..325d9f6 --- /dev/null +++ b/staticwebapp.config.json @@ -0,0 +1,14 @@ +{ + "navigationFallback": { + "rewrite": "/index.html", + "exclude": ["/api/*", "/*.{css,js,png,jpg,svg,ico,woff,woff2,ttf,eot}"] + }, + "mimeTypes": { + ".json": "application/json" + }, + "globalHeaders": { + "X-Frame-Options": "SAMEORIGIN", + "X-Content-Type-Options": "nosniff", + "Referrer-Policy": "strict-origin-when-cross-origin" + } +} diff --git a/styles-3APQE4AP.css b/styles-3APQE4AP.css new file mode 100644 index 0000000..1d6d5ea --- /dev/null +++ b/styles-3APQE4AP.css @@ -0,0 +1 @@ +:root{--body-font-family: "Roboto", "Helvetica Neue Light", "Helvetica Neue", Helvetica, Arial, "Lucida Grande", sans-serif;--code-font-family: "Roboto Mono", monospace;--gutter: 1rem;--sidenav-width: 15rem;--sidenav-collapsed-width: 4rem;--body-background-color: var(--mat-sys-surface-container);--link-color: var(--mat-sys-primary);--link-hover-color: var(--mat-sys-primary);--code-border-color: light-dark(rgba(19, 28, 43, .08), rgba(218, 226, 249, .08));--code-background-color: light-dark(rgba(19, 28, 43, .04), rgba(218, 226, 249, .04));--header-background-color: light-dark(rgba(239, 237, 240, .8), rgba(31, 32, 34, .8));--user-panel-background-color: var(--mat-sys-surface-container);--user-panel-hover-background-color: var(--mat-sys-surface-variant);--sidemenu-heading-hover-background-color: var(--mat-sys-surface-container-highest);--sidemenu-active-heading-text-color: var(--mat-sys-primary);--sidemenu-active-heading-background-color: var(--mat-sys-primary-container);--sidemenu-active-heading-hover-background-color: var(--mat-sys-primary-container);--sidemenu-expanded-background-color: var(--mat-sys-surface-container);--topmenu-text-color: var(--mat-sys-on-background);--topmenu-background-color: var(--header-background-color);--topmenu-item-active-background-color: var(--mat-sys-primary-container);--topmenu-dropdown-item-active-text-color: var(--mat-sys-primary);--mat-toolbar-standard-height: 4rem;--mat-toolbar-mobile-height: 3.5rem}*,:after,:before{box-sizing:border-box}html,body{position:relative;height:100%;overflow:auto;background-color:var(--body-background-color)}body{margin:0;font-family:var(--body-font-family);line-height:1.5;-webkit-font-smoothing:antialiased;-webkit-text-size-adjust:100%;text-size-adjust:100%;-webkit-tap-highlight-color:transparent;-webkit-touch-callout:none}dl,ol,ul{margin-top:0;margin-bottom:1rem}code,kbd,pre,samp{font-family:var(--code-font-family)}code{padding:.125rem .25rem;font-size:80%;overflow-wrap:break-word;background-color:var(--code-background-color);border:1px solid var(--code-border-color);border-radius:.25rem}a{color:var(--link-color)}a:hover{color:var(--link-hover-color)}@media (width <= 720px){.hide-small{display:none!important}.show-small{display:block!important}}html{color-scheme:light;--mat-sys-background: light-dark(#faf9fd, #121316);--mat-sys-error: light-dark(#ba1a1a, #ffb4ab);--mat-sys-error-container: light-dark(#ffdad6, #93000a);--mat-sys-inverse-on-surface: light-dark(#f2f0f4, #2f3033);--mat-sys-inverse-primary: light-dark(#abc7ff, #005cbb);--mat-sys-inverse-surface: light-dark(#2f3033, #e3e2e6);--mat-sys-on-background: light-dark(#1a1b1f, #e3e2e6);--mat-sys-on-error: light-dark(#ffffff, #690005);--mat-sys-on-error-container: light-dark(#93000a, #ffdad6);--mat-sys-on-primary: light-dark(#ffffff, #002f65);--mat-sys-on-primary-container: light-dark(#00458f, #d7e3ff);--mat-sys-on-primary-fixed: light-dark(#001b3f, #001b3f);--mat-sys-on-primary-fixed-variant: light-dark(#00458f, #00458f);--mat-sys-on-secondary: light-dark(#ffffff, #283041);--mat-sys-on-secondary-container: light-dark(#3e4759, #dae2f9);--mat-sys-on-secondary-fixed: light-dark(#131c2b, #131c2b);--mat-sys-on-secondary-fixed-variant: light-dark(#3e4759, #3e4759);--mat-sys-on-surface: light-dark(#1a1b1f, #e3e2e6);--mat-sys-on-surface-variant: light-dark(#44474e, #e0e2ec);--mat-sys-on-tertiary: light-dark(#ffffff, #0001ac);--mat-sys-on-tertiary-container: light-dark(#0000ef, #e0e0ff);--mat-sys-on-tertiary-fixed: light-dark(#00006e, #00006e);--mat-sys-on-tertiary-fixed-variant: light-dark(#0000ef, #0000ef);--mat-sys-outline: light-dark(#74777f, #8e9099);--mat-sys-outline-variant: light-dark(#c4c6d0, #44474e);--mat-sys-primary: light-dark(#005cbb, #abc7ff);--mat-sys-primary-container: light-dark(#d7e3ff, #00458f);--mat-sys-primary-fixed: light-dark(#d7e3ff, #d7e3ff);--mat-sys-primary-fixed-dim: light-dark(#abc7ff, #abc7ff);--mat-sys-scrim: light-dark(#000000, #000000);--mat-sys-secondary: light-dark(#565e71, #bec6dc);--mat-sys-secondary-container: light-dark(#dae2f9, #3e4759);--mat-sys-secondary-fixed: light-dark(#dae2f9, #dae2f9);--mat-sys-secondary-fixed-dim: light-dark(#bec6dc, #bec6dc);--mat-sys-shadow: light-dark(#000000, #000000);--mat-sys-surface: light-dark(#faf9fd, #121316);--mat-sys-surface-bright: light-dark(#faf9fd, #38393c);--mat-sys-surface-container: light-dark(#efedf0, #1f2022);--mat-sys-surface-container-high: light-dark(#e9e7eb, #292a2c);--mat-sys-surface-container-highest: light-dark(#e3e2e6, #343537);--mat-sys-surface-container-low: light-dark(#f4f3f6, #1a1b1f);--mat-sys-surface-container-lowest: light-dark(#ffffff, #0d0e11);--mat-sys-surface-dim: light-dark(#dbd9dd, #121316);--mat-sys-surface-tint: light-dark(#005cbb, #abc7ff);--mat-sys-surface-variant: light-dark(#e0e2ec, #44474e);--mat-sys-tertiary: light-dark(#343dff, #bec2ff);--mat-sys-tertiary-container: light-dark(#e0e0ff, #0000ef);--mat-sys-tertiary-fixed: light-dark(#e0e0ff, #e0e0ff);--mat-sys-tertiary-fixed-dim: light-dark(#bec2ff, #bec2ff);--mat-sys-neutral-variant20: #2d3038;--mat-sys-neutral10: #1a1b1f;--mat-sys-level0: 0px 0px 0px 0px rgba(0, 0, 0, .2), 0px 0px 0px 0px rgba(0, 0, 0, .14), 0px 0px 0px 0px rgba(0, 0, 0, .12);--mat-sys-level1: 0px 2px 1px -1px rgba(0, 0, 0, .2), 0px 1px 1px 0px rgba(0, 0, 0, .14), 0px 1px 3px 0px rgba(0, 0, 0, .12);--mat-sys-level2: 0px 3px 3px -2px rgba(0, 0, 0, .2), 0px 3px 4px 0px rgba(0, 0, 0, .14), 0px 1px 8px 0px rgba(0, 0, 0, .12);--mat-sys-level3: 0px 3px 5px -1px rgba(0, 0, 0, .2), 0px 6px 10px 0px rgba(0, 0, 0, .14), 0px 1px 18px 0px rgba(0, 0, 0, .12);--mat-sys-level4: 0px 5px 5px -3px rgba(0, 0, 0, .2), 0px 8px 10px 1px rgba(0, 0, 0, .14), 0px 3px 14px 2px rgba(0, 0, 0, .12);--mat-sys-level5: 0px 7px 8px -4px rgba(0, 0, 0, .2), 0px 12px 17px 2px rgba(0, 0, 0, .14), 0px 5px 22px 4px rgba(0, 0, 0, .12);--mat-sys-body-large: 400 1rem / 1.5rem Roboto;--mat-sys-body-large-font: Roboto;--mat-sys-body-large-line-height: 1.5rem;--mat-sys-body-large-size: 1rem;--mat-sys-body-large-tracking: .031rem;--mat-sys-body-large-weight: 400;--mat-sys-body-medium: 400 .875rem / 1.25rem Roboto;--mat-sys-body-medium-font: Roboto;--mat-sys-body-medium-line-height: 1.25rem;--mat-sys-body-medium-size: .875rem;--mat-sys-body-medium-tracking: .016rem;--mat-sys-body-medium-weight: 400;--mat-sys-body-small: 400 .75rem / 1rem Roboto;--mat-sys-body-small-font: Roboto;--mat-sys-body-small-line-height: 1rem;--mat-sys-body-small-size: .75rem;--mat-sys-body-small-tracking: .025rem;--mat-sys-body-small-weight: 400;--mat-sys-display-large: 400 3.562rem / 4rem Roboto;--mat-sys-display-large-font: Roboto;--mat-sys-display-large-line-height: 4rem;--mat-sys-display-large-size: 3.562rem;--mat-sys-display-large-tracking: -.016rem;--mat-sys-display-large-weight: 400;--mat-sys-display-medium: 400 2.812rem / 3.25rem Roboto;--mat-sys-display-medium-font: Roboto;--mat-sys-display-medium-line-height: 3.25rem;--mat-sys-display-medium-size: 2.812rem;--mat-sys-display-medium-tracking: 0;--mat-sys-display-medium-weight: 400;--mat-sys-display-small: 400 2.25rem / 2.75rem Roboto;--mat-sys-display-small-font: Roboto;--mat-sys-display-small-line-height: 2.75rem;--mat-sys-display-small-size: 2.25rem;--mat-sys-display-small-tracking: 0;--mat-sys-display-small-weight: 400;--mat-sys-headline-large: 400 2rem / 2.5rem Roboto;--mat-sys-headline-large-font: Roboto;--mat-sys-headline-large-line-height: 2.5rem;--mat-sys-headline-large-size: 2rem;--mat-sys-headline-large-tracking: 0;--mat-sys-headline-large-weight: 400;--mat-sys-headline-medium: 400 1.75rem / 2.25rem Roboto;--mat-sys-headline-medium-font: Roboto;--mat-sys-headline-medium-line-height: 2.25rem;--mat-sys-headline-medium-size: 1.75rem;--mat-sys-headline-medium-tracking: 0;--mat-sys-headline-medium-weight: 400;--mat-sys-headline-small: 400 1.5rem / 2rem Roboto;--mat-sys-headline-small-font: Roboto;--mat-sys-headline-small-line-height: 2rem;--mat-sys-headline-small-size: 1.5rem;--mat-sys-headline-small-tracking: 0;--mat-sys-headline-small-weight: 400;--mat-sys-label-large: 500 .875rem / 1.25rem Roboto;--mat-sys-label-large-font: Roboto;--mat-sys-label-large-line-height: 1.25rem;--mat-sys-label-large-size: .875rem;--mat-sys-label-large-tracking: .006rem;--mat-sys-label-large-weight: 500;--mat-sys-label-large-weight-prominent: 700;--mat-sys-label-medium: 500 .75rem / 1rem Roboto;--mat-sys-label-medium-font: Roboto;--mat-sys-label-medium-line-height: 1rem;--mat-sys-label-medium-size: .75rem;--mat-sys-label-medium-tracking: .031rem;--mat-sys-label-medium-weight: 500;--mat-sys-label-medium-weight-prominent: 700;--mat-sys-label-small: 500 .688rem / 1rem Roboto;--mat-sys-label-small-font: Roboto;--mat-sys-label-small-line-height: 1rem;--mat-sys-label-small-size: .688rem;--mat-sys-label-small-tracking: .031rem;--mat-sys-label-small-weight: 500;--mat-sys-title-large: 400 1.375rem / 1.75rem Roboto;--mat-sys-title-large-font: Roboto;--mat-sys-title-large-line-height: 1.75rem;--mat-sys-title-large-size: 1.375rem;--mat-sys-title-large-tracking: 0;--mat-sys-title-large-weight: 400;--mat-sys-title-medium: 500 1rem / 1.5rem Roboto;--mat-sys-title-medium-font: Roboto;--mat-sys-title-medium-line-height: 1.5rem;--mat-sys-title-medium-size: 1rem;--mat-sys-title-medium-tracking: .009rem;--mat-sys-title-medium-weight: 500;--mat-sys-title-small: 500 .875rem / 1.25rem Roboto;--mat-sys-title-small-font: Roboto;--mat-sys-title-small-line-height: 1.25rem;--mat-sys-title-small-size: .875rem;--mat-sys-title-small-tracking: .006rem;--mat-sys-title-small-weight: 500;--mat-sys-corner-extra-large: 28px;--mat-sys-corner-extra-large-top: 28px 28px 0 0;--mat-sys-corner-extra-small: 4px;--mat-sys-corner-extra-small-top: 4px 4px 0 0;--mat-sys-corner-full: 9999px;--mat-sys-corner-large: 16px;--mat-sys-corner-large-end: 0 16px 16px 0;--mat-sys-corner-large-start: 16px 0 0 16px;--mat-sys-corner-large-top: 16px 16px 0 0;--mat-sys-corner-medium: 12px;--mat-sys-corner-none: 0;--mat-sys-corner-small: 8px;--mat-sys-dragged-state-layer-opacity: .16;--mat-sys-focus-state-layer-opacity: .12;--mat-sys-hover-state-layer-opacity: .08;--mat-sys-pressed-state-layer-opacity: .12}.theme-dark{color-scheme:dark}.text-red-0{color:#000!important}.text-red-10{color:#410000!important}.text-red-20{color:#690100!important}.text-red-25{color:#7e0100!important}.text-red-30{color:#930100!important}.text-red-35{color:#a90100!important}.text-red-40{color:#c00100!important}.text-red-50{color:#ef0000!important}.text-red-60{color:#ff5540!important}.text-red-70{color:#ff8a78!important}.text-red-80{color:#ffb4a8!important}.text-red-90{color:#ffdad4!important}.text-red-95{color:#ffedea!important}.text-red-98{color:#fff8f6!important}.text-red-99{color:#fffbff!important}.text-red-100{color:#fff!important}.text-green-0{color:#000!important}.text-green-10{color:#020!important}.text-green-20{color:#013a00!important}.text-green-25{color:#014600!important}.text-green-30{color:#015300!important}.text-green-35{color:#026100!important}.text-green-40{color:#026e00!important}.text-green-50{color:#038b00!important}.text-green-60{color:#03a800!important}.text-green-70{color:#03c700!important}.text-green-80{color:#02e600!important}.text-green-90{color:#77ff61!important}.text-green-95{color:#cbffb8!important}.text-green-98{color:#edffe1!important}.text-green-99{color:#f7ffee!important}.text-green-100{color:#fff!important}.text-blue-0{color:#000!important}.text-blue-10{color:#00006e!important}.text-blue-20{color:#0001ac!important}.text-blue-25{color:#0001cd!important}.text-blue-30{color:#0000ef!important}.text-blue-35{color:#1a21ff!important}.text-blue-40{color:#343dff!important}.text-blue-50{color:#5a64ff!important}.text-blue-60{color:#7c84ff!important}.text-blue-70{color:#9da3ff!important}.text-blue-80{color:#bec2ff!important}.text-blue-90{color:#e0e0ff!important}.text-blue-95{color:#f1efff!important}.text-blue-98{color:#fbf8ff!important}.text-blue-99{color:#fffbff!important}.text-blue-100{color:#fff!important}.text-yellow-0{color:#000!important}.text-yellow-10{color:#1d1d00!important}.text-yellow-20{color:#323200!important}.text-yellow-25{color:#3e3e00!important}.text-yellow-30{color:#494900!important}.text-yellow-35{color:#550!important}.text-yellow-40{color:#626200!important}.text-yellow-50{color:#7b7b00!important}.text-yellow-60{color:#969600!important}.text-yellow-70{color:#b1b100!important}.text-yellow-80{color:#cdcd00!important}.text-yellow-90{color:#eaea00!important}.text-yellow-95{color:#f9f900!important}.text-yellow-98{color:#fffeac!important}.text-yellow-99{color:#fffbff!important}.text-yellow-100{color:#fff!important}.text-cyan-0{color:#000!important}.text-cyan-10{color:#002020!important}.text-cyan-20{color:#003737!important}.text-cyan-25{color:#004343!important}.text-cyan-30{color:#004f4f!important}.text-cyan-35{color:#005c5c!important}.text-cyan-40{color:#006a6a!important}.text-cyan-50{color:#008585!important}.text-cyan-60{color:#00a1a1!important}.text-cyan-70{color:#00bebe!important}.text-cyan-80{color:#0dd!important}.text-cyan-90{color:#00fbfb!important}.text-cyan-95{color:#adfffe!important}.text-cyan-98{color:#e2fffe!important}.text-cyan-99{color:#f1fffe!important}.text-cyan-100{color:#fff!important}.text-magenta-0{color:#000!important}.text-magenta-10{color:#380038!important}.text-magenta-20{color:#5b005b!important}.text-magenta-25{color:#6e006e!important}.text-magenta-30{color:#810081!important}.text-magenta-35{color:#950094!important}.text-magenta-40{color:#a900a9!important}.text-magenta-50{color:#d200d2!important}.text-magenta-60{color:#fe00fe!important}.text-magenta-70{color:#ff76f6!important}.text-magenta-80{color:#ffabf3!important}.text-magenta-90{color:#ffd7f5!important}.text-magenta-95{color:#ffebf8!important}.text-magenta-98{color:#fff7f9!important}.text-magenta-99{color:#fffbff!important}.text-magenta-100{color:#fff!important}.text-orange-0{color:#000!important}.text-orange-10{color:#311300!important}.text-orange-20{color:#502400!important}.text-orange-25{color:#612d00!important}.text-orange-30{color:#723600!important}.text-orange-35{color:#843f00!important}.text-orange-40{color:#964900!important}.text-orange-50{color:#bc5d00!important}.text-orange-60{color:#e37100!important}.text-orange-70{color:#ff8e36!important}.text-orange-80{color:#ffb787!important}.text-orange-90{color:#ffdcc7!important}.text-orange-95{color:#ffede4!important}.text-orange-98{color:#fff8f5!important}.text-orange-99{color:#fffbff!important}.text-orange-100{color:#fff!important}.text-chartreuse-0{color:#000!important}.text-chartreuse-10{color:#0b2000!important}.text-chartreuse-20{color:#173800!important}.text-chartreuse-25{color:#1e4400!important}.text-chartreuse-30{color:#245100!important}.text-chartreuse-35{color:#2b5e00!important}.text-chartreuse-40{color:#326b00!important}.text-chartreuse-50{color:#418700!important}.text-chartreuse-60{color:#50a400!important}.text-chartreuse-70{color:#60c100!important}.text-chartreuse-80{color:#70e000!important}.text-chartreuse-90{color:#82ff10!important}.text-chartreuse-95{color:#cfffa9!important}.text-chartreuse-98{color:#eeffdc!important}.text-chartreuse-99{color:#f8ffeb!important}.text-chartreuse-100{color:#fff!important}.text-spring-green-0{color:#000!important}.text-spring-green-10{color:#00210b!important}.text-spring-green-20{color:#003917!important}.text-spring-green-25{color:#00461e!important}.text-spring-green-30{color:#005225!important}.text-spring-green-35{color:#00602c!important}.text-spring-green-40{color:#006d33!important}.text-spring-green-50{color:#008942!important}.text-spring-green-60{color:#00a751!important}.text-spring-green-70{color:#00c561!important}.text-spring-green-80{color:#00e472!important}.text-spring-green-90{color:#63ff94!important}.text-spring-green-95{color:#c4ffcb!important}.text-spring-green-98{color:#eaffe9!important}.text-spring-green-99{color:#f5fff2!important}.text-spring-green-100{color:#fff!important}.text-azure-0{color:#000!important}.text-azure-10{color:#001b3f!important}.text-azure-20{color:#002f65!important}.text-azure-25{color:#003a7a!important}.text-azure-30{color:#00458f!important}.text-azure-35{color:#0050a5!important}.text-azure-40{color:#005cbb!important}.text-azure-50{color:#0074e9!important}.text-azure-60{color:#438fff!important}.text-azure-70{color:#7cabff!important}.text-azure-80{color:#abc7ff!important}.text-azure-90{color:#d7e3ff!important}.text-azure-95{color:#ecf0ff!important}.text-azure-98{color:#f9f9ff!important}.text-azure-99{color:#fdfbff!important}.text-azure-100{color:#fff!important}.text-violet-0{color:#000!important}.text-violet-10{color:#270057!important}.text-violet-20{color:#42008a!important}.text-violet-25{color:#5000a4!important}.text-violet-30{color:#5f00c0!important}.text-violet-35{color:#6e00dc!important}.text-violet-40{color:#7d00fa!important}.text-violet-50{color:#944aff!important}.text-violet-60{color:#a974ff!important}.text-violet-70{color:#bf98ff!important}.text-violet-80{color:#d5baff!important}.text-violet-90{color:#ecdcff!important}.text-violet-95{color:#f7edff!important}.text-violet-98{color:#fef7ff!important}.text-violet-99{color:#fffbff!important}.text-violet-100{color:#fff!important}.text-rose-0{color:#000!important}.text-rose-10{color:#3f001b!important}.text-rose-20{color:#65002f!important}.text-rose-25{color:#7a003a!important}.text-rose-30{color:#8f0045!important}.text-rose-35{color:#a40050!important}.text-rose-40{color:#ba005c!important}.text-rose-50{color:#e80074!important}.text-rose-60{color:#ff4a8e!important}.text-rose-70{color:#ff84a9!important}.text-rose-80{color:#ffb1c5!important}.text-rose-90{color:#ffd9e1!important}.text-rose-95{color:#ffecef!important}.text-rose-98{color:#fff8f8!important}.text-rose-99{color:#fffbff!important}.text-rose-100,.text-white{color:#fff!important}.text-black{color:#000!important}.text-light{color:#ffffffde!important}.text-dark{color:#000000de!important}.bg-red-0{background-color:#000!important}.bg-red-10{background-color:#410000!important}.bg-red-20{background-color:#690100!important}.bg-red-25{background-color:#7e0100!important}.bg-red-30{background-color:#930100!important}.bg-red-35{background-color:#a90100!important}.bg-red-40{background-color:#c00100!important}.bg-red-50{background-color:#ef0000!important}.bg-red-60{background-color:#ff5540!important}.bg-red-70{background-color:#ff8a78!important}.bg-red-80{background-color:#ffb4a8!important}.bg-red-90{background-color:#ffdad4!important}.bg-red-95{background-color:#ffedea!important}.bg-red-98{background-color:#fff8f6!important}.bg-red-99{background-color:#fffbff!important}.bg-red-100{background-color:#fff!important}.bg-green-0{background-color:#000!important}.bg-green-10{background-color:#020!important}.bg-green-20{background-color:#013a00!important}.bg-green-25{background-color:#014600!important}.bg-green-30{background-color:#015300!important}.bg-green-35{background-color:#026100!important}.bg-green-40{background-color:#026e00!important}.bg-green-50{background-color:#038b00!important}.bg-green-60{background-color:#03a800!important}.bg-green-70{background-color:#03c700!important}.bg-green-80{background-color:#02e600!important}.bg-green-90{background-color:#77ff61!important}.bg-green-95{background-color:#cbffb8!important}.bg-green-98{background-color:#edffe1!important}.bg-green-99{background-color:#f7ffee!important}.bg-green-100{background-color:#fff!important}.bg-blue-0{background-color:#000!important}.bg-blue-10{background-color:#00006e!important}.bg-blue-20{background-color:#0001ac!important}.bg-blue-25{background-color:#0001cd!important}.bg-blue-30{background-color:#0000ef!important}.bg-blue-35{background-color:#1a21ff!important}.bg-blue-40{background-color:#343dff!important}.bg-blue-50{background-color:#5a64ff!important}.bg-blue-60{background-color:#7c84ff!important}.bg-blue-70{background-color:#9da3ff!important}.bg-blue-80{background-color:#bec2ff!important}.bg-blue-90{background-color:#e0e0ff!important}.bg-blue-95{background-color:#f1efff!important}.bg-blue-98{background-color:#fbf8ff!important}.bg-blue-99{background-color:#fffbff!important}.bg-blue-100{background-color:#fff!important}.bg-yellow-0{background-color:#000!important}.bg-yellow-10{background-color:#1d1d00!important}.bg-yellow-20{background-color:#323200!important}.bg-yellow-25{background-color:#3e3e00!important}.bg-yellow-30{background-color:#494900!important}.bg-yellow-35{background-color:#550!important}.bg-yellow-40{background-color:#626200!important}.bg-yellow-50{background-color:#7b7b00!important}.bg-yellow-60{background-color:#969600!important}.bg-yellow-70{background-color:#b1b100!important}.bg-yellow-80{background-color:#cdcd00!important}.bg-yellow-90{background-color:#eaea00!important}.bg-yellow-95{background-color:#f9f900!important}.bg-yellow-98{background-color:#fffeac!important}.bg-yellow-99{background-color:#fffbff!important}.bg-yellow-100{background-color:#fff!important}.bg-cyan-0{background-color:#000!important}.bg-cyan-10{background-color:#002020!important}.bg-cyan-20{background-color:#003737!important}.bg-cyan-25{background-color:#004343!important}.bg-cyan-30{background-color:#004f4f!important}.bg-cyan-35{background-color:#005c5c!important}.bg-cyan-40{background-color:#006a6a!important}.bg-cyan-50{background-color:#008585!important}.bg-cyan-60{background-color:#00a1a1!important}.bg-cyan-70{background-color:#00bebe!important}.bg-cyan-80{background-color:#0dd!important}.bg-cyan-90{background-color:#00fbfb!important}.bg-cyan-95{background-color:#adfffe!important}.bg-cyan-98{background-color:#e2fffe!important}.bg-cyan-99{background-color:#f1fffe!important}.bg-cyan-100{background-color:#fff!important}.bg-magenta-0{background-color:#000!important}.bg-magenta-10{background-color:#380038!important}.bg-magenta-20{background-color:#5b005b!important}.bg-magenta-25{background-color:#6e006e!important}.bg-magenta-30{background-color:#810081!important}.bg-magenta-35{background-color:#950094!important}.bg-magenta-40{background-color:#a900a9!important}.bg-magenta-50{background-color:#d200d2!important}.bg-magenta-60{background-color:#fe00fe!important}.bg-magenta-70{background-color:#ff76f6!important}.bg-magenta-80{background-color:#ffabf3!important}.bg-magenta-90{background-color:#ffd7f5!important}.bg-magenta-95{background-color:#ffebf8!important}.bg-magenta-98{background-color:#fff7f9!important}.bg-magenta-99{background-color:#fffbff!important}.bg-magenta-100{background-color:#fff!important}.bg-orange-0{background-color:#000!important}.bg-orange-10{background-color:#311300!important}.bg-orange-20{background-color:#502400!important}.bg-orange-25{background-color:#612d00!important}.bg-orange-30{background-color:#723600!important}.bg-orange-35{background-color:#843f00!important}.bg-orange-40{background-color:#964900!important}.bg-orange-50{background-color:#bc5d00!important}.bg-orange-60{background-color:#e37100!important}.bg-orange-70{background-color:#ff8e36!important}.bg-orange-80{background-color:#ffb787!important}.bg-orange-90{background-color:#ffdcc7!important}.bg-orange-95{background-color:#ffede4!important}.bg-orange-98{background-color:#fff8f5!important}.bg-orange-99{background-color:#fffbff!important}.bg-orange-100{background-color:#fff!important}.bg-chartreuse-0{background-color:#000!important}.bg-chartreuse-10{background-color:#0b2000!important}.bg-chartreuse-20{background-color:#173800!important}.bg-chartreuse-25{background-color:#1e4400!important}.bg-chartreuse-30{background-color:#245100!important}.bg-chartreuse-35{background-color:#2b5e00!important}.bg-chartreuse-40{background-color:#326b00!important}.bg-chartreuse-50{background-color:#418700!important}.bg-chartreuse-60{background-color:#50a400!important}.bg-chartreuse-70{background-color:#60c100!important}.bg-chartreuse-80{background-color:#70e000!important}.bg-chartreuse-90{background-color:#82ff10!important}.bg-chartreuse-95{background-color:#cfffa9!important}.bg-chartreuse-98{background-color:#eeffdc!important}.bg-chartreuse-99{background-color:#f8ffeb!important}.bg-chartreuse-100{background-color:#fff!important}.bg-spring-green-0{background-color:#000!important}.bg-spring-green-10{background-color:#00210b!important}.bg-spring-green-20{background-color:#003917!important}.bg-spring-green-25{background-color:#00461e!important}.bg-spring-green-30{background-color:#005225!important}.bg-spring-green-35{background-color:#00602c!important}.bg-spring-green-40{background-color:#006d33!important}.bg-spring-green-50{background-color:#008942!important}.bg-spring-green-60{background-color:#00a751!important}.bg-spring-green-70{background-color:#00c561!important}.bg-spring-green-80{background-color:#00e472!important}.bg-spring-green-90{background-color:#63ff94!important}.bg-spring-green-95{background-color:#c4ffcb!important}.bg-spring-green-98{background-color:#eaffe9!important}.bg-spring-green-99{background-color:#f5fff2!important}.bg-spring-green-100{background-color:#fff!important}.bg-azure-0{background-color:#000!important}.bg-azure-10{background-color:#001b3f!important}.bg-azure-20{background-color:#002f65!important}.bg-azure-25{background-color:#003a7a!important}.bg-azure-30{background-color:#00458f!important}.bg-azure-35{background-color:#0050a5!important}.bg-azure-40{background-color:#005cbb!important}.bg-azure-50{background-color:#0074e9!important}.bg-azure-60{background-color:#438fff!important}.bg-azure-70{background-color:#7cabff!important}.bg-azure-80{background-color:#abc7ff!important}.bg-azure-90{background-color:#d7e3ff!important}.bg-azure-95{background-color:#ecf0ff!important}.bg-azure-98{background-color:#f9f9ff!important}.bg-azure-99{background-color:#fdfbff!important}.bg-azure-100{background-color:#fff!important}.bg-violet-0{background-color:#000!important}.bg-violet-10{background-color:#270057!important}.bg-violet-20{background-color:#42008a!important}.bg-violet-25{background-color:#5000a4!important}.bg-violet-30{background-color:#5f00c0!important}.bg-violet-35{background-color:#6e00dc!important}.bg-violet-40{background-color:#7d00fa!important}.bg-violet-50{background-color:#944aff!important}.bg-violet-60{background-color:#a974ff!important}.bg-violet-70{background-color:#bf98ff!important}.bg-violet-80{background-color:#d5baff!important}.bg-violet-90{background-color:#ecdcff!important}.bg-violet-95{background-color:#f7edff!important}.bg-violet-98{background-color:#fef7ff!important}.bg-violet-99{background-color:#fffbff!important}.bg-violet-100{background-color:#fff!important}.bg-rose-0{background-color:#000!important}.bg-rose-10{background-color:#3f001b!important}.bg-rose-20{background-color:#65002f!important}.bg-rose-25{background-color:#7a003a!important}.bg-rose-30{background-color:#8f0045!important}.bg-rose-35{background-color:#a40050!important}.bg-rose-40{background-color:#ba005c!important}.bg-rose-50{background-color:#e80074!important}.bg-rose-60{background-color:#ff4a8e!important}.bg-rose-70{background-color:#ff84a9!important}.bg-rose-80{background-color:#ffb1c5!important}.bg-rose-90{background-color:#ffd9e1!important}.bg-rose-95{background-color:#ffecef!important}.bg-rose-98{background-color:#fff8f8!important}.bg-rose-99{background-color:#fffbff!important}.bg-rose-100,.bg-white{background-color:#fff!important}.bg-black{background-color:#000!important}.bg-light{background-color:#ffffffde!important}.bg-dark{background-color:#000000de!important}.border-red-0{border-color:#000!important}.border-red-10{border-color:#410000!important}.border-red-20{border-color:#690100!important}.border-red-25{border-color:#7e0100!important}.border-red-30{border-color:#930100!important}.border-red-35{border-color:#a90100!important}.border-red-40{border-color:#c00100!important}.border-red-50{border-color:#ef0000!important}.border-red-60{border-color:#ff5540!important}.border-red-70{border-color:#ff8a78!important}.border-red-80{border-color:#ffb4a8!important}.border-red-90{border-color:#ffdad4!important}.border-red-95{border-color:#ffedea!important}.border-red-98{border-color:#fff8f6!important}.border-red-99{border-color:#fffbff!important}.border-red-100{border-color:#fff!important}.border-green-0{border-color:#000!important}.border-green-10{border-color:#020!important}.border-green-20{border-color:#013a00!important}.border-green-25{border-color:#014600!important}.border-green-30{border-color:#015300!important}.border-green-35{border-color:#026100!important}.border-green-40{border-color:#026e00!important}.border-green-50{border-color:#038b00!important}.border-green-60{border-color:#03a800!important}.border-green-70{border-color:#03c700!important}.border-green-80{border-color:#02e600!important}.border-green-90{border-color:#77ff61!important}.border-green-95{border-color:#cbffb8!important}.border-green-98{border-color:#edffe1!important}.border-green-99{border-color:#f7ffee!important}.border-green-100{border-color:#fff!important}.border-blue-0{border-color:#000!important}.border-blue-10{border-color:#00006e!important}.border-blue-20{border-color:#0001ac!important}.border-blue-25{border-color:#0001cd!important}.border-blue-30{border-color:#0000ef!important}.border-blue-35{border-color:#1a21ff!important}.border-blue-40{border-color:#343dff!important}.border-blue-50{border-color:#5a64ff!important}.border-blue-60{border-color:#7c84ff!important}.border-blue-70{border-color:#9da3ff!important}.border-blue-80{border-color:#bec2ff!important}.border-blue-90{border-color:#e0e0ff!important}.border-blue-95{border-color:#f1efff!important}.border-blue-98{border-color:#fbf8ff!important}.border-blue-99{border-color:#fffbff!important}.border-blue-100{border-color:#fff!important}.border-yellow-0{border-color:#000!important}.border-yellow-10{border-color:#1d1d00!important}.border-yellow-20{border-color:#323200!important}.border-yellow-25{border-color:#3e3e00!important}.border-yellow-30{border-color:#494900!important}.border-yellow-35{border-color:#550!important}.border-yellow-40{border-color:#626200!important}.border-yellow-50{border-color:#7b7b00!important}.border-yellow-60{border-color:#969600!important}.border-yellow-70{border-color:#b1b100!important}.border-yellow-80{border-color:#cdcd00!important}.border-yellow-90{border-color:#eaea00!important}.border-yellow-95{border-color:#f9f900!important}.border-yellow-98{border-color:#fffeac!important}.border-yellow-99{border-color:#fffbff!important}.border-yellow-100{border-color:#fff!important}.border-cyan-0{border-color:#000!important}.border-cyan-10{border-color:#002020!important}.border-cyan-20{border-color:#003737!important}.border-cyan-25{border-color:#004343!important}.border-cyan-30{border-color:#004f4f!important}.border-cyan-35{border-color:#005c5c!important}.border-cyan-40{border-color:#006a6a!important}.border-cyan-50{border-color:#008585!important}.border-cyan-60{border-color:#00a1a1!important}.border-cyan-70{border-color:#00bebe!important}.border-cyan-80{border-color:#0dd!important}.border-cyan-90{border-color:#00fbfb!important}.border-cyan-95{border-color:#adfffe!important}.border-cyan-98{border-color:#e2fffe!important}.border-cyan-99{border-color:#f1fffe!important}.border-cyan-100{border-color:#fff!important}.border-magenta-0{border-color:#000!important}.border-magenta-10{border-color:#380038!important}.border-magenta-20{border-color:#5b005b!important}.border-magenta-25{border-color:#6e006e!important}.border-magenta-30{border-color:#810081!important}.border-magenta-35{border-color:#950094!important}.border-magenta-40{border-color:#a900a9!important}.border-magenta-50{border-color:#d200d2!important}.border-magenta-60{border-color:#fe00fe!important}.border-magenta-70{border-color:#ff76f6!important}.border-magenta-80{border-color:#ffabf3!important}.border-magenta-90{border-color:#ffd7f5!important}.border-magenta-95{border-color:#ffebf8!important}.border-magenta-98{border-color:#fff7f9!important}.border-magenta-99{border-color:#fffbff!important}.border-magenta-100{border-color:#fff!important}.border-orange-0{border-color:#000!important}.border-orange-10{border-color:#311300!important}.border-orange-20{border-color:#502400!important}.border-orange-25{border-color:#612d00!important}.border-orange-30{border-color:#723600!important}.border-orange-35{border-color:#843f00!important}.border-orange-40{border-color:#964900!important}.border-orange-50{border-color:#bc5d00!important}.border-orange-60{border-color:#e37100!important}.border-orange-70{border-color:#ff8e36!important}.border-orange-80{border-color:#ffb787!important}.border-orange-90{border-color:#ffdcc7!important}.border-orange-95{border-color:#ffede4!important}.border-orange-98{border-color:#fff8f5!important}.border-orange-99{border-color:#fffbff!important}.border-orange-100{border-color:#fff!important}.border-chartreuse-0{border-color:#000!important}.border-chartreuse-10{border-color:#0b2000!important}.border-chartreuse-20{border-color:#173800!important}.border-chartreuse-25{border-color:#1e4400!important}.border-chartreuse-30{border-color:#245100!important}.border-chartreuse-35{border-color:#2b5e00!important}.border-chartreuse-40{border-color:#326b00!important}.border-chartreuse-50{border-color:#418700!important}.border-chartreuse-60{border-color:#50a400!important}.border-chartreuse-70{border-color:#60c100!important}.border-chartreuse-80{border-color:#70e000!important}.border-chartreuse-90{border-color:#82ff10!important}.border-chartreuse-95{border-color:#cfffa9!important}.border-chartreuse-98{border-color:#eeffdc!important}.border-chartreuse-99{border-color:#f8ffeb!important}.border-chartreuse-100{border-color:#fff!important}.border-spring-green-0{border-color:#000!important}.border-spring-green-10{border-color:#00210b!important}.border-spring-green-20{border-color:#003917!important}.border-spring-green-25{border-color:#00461e!important}.border-spring-green-30{border-color:#005225!important}.border-spring-green-35{border-color:#00602c!important}.border-spring-green-40{border-color:#006d33!important}.border-spring-green-50{border-color:#008942!important}.border-spring-green-60{border-color:#00a751!important}.border-spring-green-70{border-color:#00c561!important}.border-spring-green-80{border-color:#00e472!important}.border-spring-green-90{border-color:#63ff94!important}.border-spring-green-95{border-color:#c4ffcb!important}.border-spring-green-98{border-color:#eaffe9!important}.border-spring-green-99{border-color:#f5fff2!important}.border-spring-green-100{border-color:#fff!important}.border-azure-0{border-color:#000!important}.border-azure-10{border-color:#001b3f!important}.border-azure-20{border-color:#002f65!important}.border-azure-25{border-color:#003a7a!important}.border-azure-30{border-color:#00458f!important}.border-azure-35{border-color:#0050a5!important}.border-azure-40{border-color:#005cbb!important}.border-azure-50{border-color:#0074e9!important}.border-azure-60{border-color:#438fff!important}.border-azure-70{border-color:#7cabff!important}.border-azure-80{border-color:#abc7ff!important}.border-azure-90{border-color:#d7e3ff!important}.border-azure-95{border-color:#ecf0ff!important}.border-azure-98{border-color:#f9f9ff!important}.border-azure-99{border-color:#fdfbff!important}.border-azure-100{border-color:#fff!important}.border-violet-0{border-color:#000!important}.border-violet-10{border-color:#270057!important}.border-violet-20{border-color:#42008a!important}.border-violet-25{border-color:#5000a4!important}.border-violet-30{border-color:#5f00c0!important}.border-violet-35{border-color:#6e00dc!important}.border-violet-40{border-color:#7d00fa!important}.border-violet-50{border-color:#944aff!important}.border-violet-60{border-color:#a974ff!important}.border-violet-70{border-color:#bf98ff!important}.border-violet-80{border-color:#d5baff!important}.border-violet-90{border-color:#ecdcff!important}.border-violet-95{border-color:#f7edff!important}.border-violet-98{border-color:#fef7ff!important}.border-violet-99{border-color:#fffbff!important}.border-violet-100{border-color:#fff!important}.border-rose-0{border-color:#000!important}.border-rose-10{border-color:#3f001b!important}.border-rose-20{border-color:#65002f!important}.border-rose-25{border-color:#7a003a!important}.border-rose-30{border-color:#8f0045!important}.border-rose-35{border-color:#a40050!important}.border-rose-40{border-color:#ba005c!important}.border-rose-50{border-color:#e80074!important}.border-rose-60{border-color:#ff4a8e!important}.border-rose-70{border-color:#ff84a9!important}.border-rose-80{border-color:#ffb1c5!important}.border-rose-90{border-color:#ffd9e1!important}.border-rose-95{border-color:#ffecef!important}.border-rose-98{border-color:#fff8f8!important}.border-rose-99{border-color:#fffbff!important}.border-rose-100,.border-white{border-color:#fff!important}.border-black{border-color:#000!important}.border-light{border-color:#ffffffde!important}.border-dark{border-color:#000000de!important}.row{display:flex;flex-wrap:wrap;margin-right:calc(var(--gutter) * -.5);margin-left:calc(var(--gutter) * -.5)}.no-gutters{--gutter: 0}.col,.col-1,.col-2,.col-3,.col-4,.col-5,.col-6,.col-7,.col-8,.col-9,.col-10,.col-11,.col-12,.col-sm,.col-sm-1,.col-sm-2,.col-sm-3,.col-sm-4,.col-sm-5,.col-sm-6,.col-sm-7,.col-sm-8,.col-sm-9,.col-sm-10,.col-sm-11,.col-sm-12,.col-md,.col-md-1,.col-md-2,.col-md-3,.col-md-4,.col-md-5,.col-md-6,.col-md-7,.col-md-8,.col-md-9,.col-md-10,.col-md-11,.col-md-12,.col-lg,.col-lg-1,.col-lg-2,.col-lg-3,.col-lg-4,.col-lg-5,.col-lg-6,.col-lg-7,.col-lg-8,.col-lg-9,.col-lg-10,.col-lg-11,.col-lg-12,.col-xl,.col-xl-1,.col-xl-2,.col-xl-3,.col-xl-4,.col-xl-5,.col-xl-6,.col-xl-7,.col-xl-8,.col-xl-9,.col-xl-10,.col-xl-11,.col-xl-12{position:relative;width:100%;padding-right:calc(var(--gutter) * .5);padding-left:calc(var(--gutter) * .5)}.col{flex-grow:1;flex-basis:0;max-width:100%}.col-1{flex:0 0 8.3333333333%;max-width:8.3333333333%}.offset-1{margin-left:8.3333333333%}.col-2{flex:0 0 16.6666666667%;max-width:16.6666666667%}.offset-2{margin-left:16.6666666667%}.col-3{flex:0 0 25%;max-width:25%}.offset-3{margin-left:25%}.col-4{flex:0 0 33.3333333333%;max-width:33.3333333333%}.offset-4{margin-left:33.3333333333%}.col-5{flex:0 0 41.6666666667%;max-width:41.6666666667%}.offset-5{margin-left:41.6666666667%}.col-6{flex:0 0 50%;max-width:50%}.offset-6{margin-left:50%}.col-7{flex:0 0 58.3333333333%;max-width:58.3333333333%}.offset-7{margin-left:58.3333333333%}.col-8{flex:0 0 66.6666666667%;max-width:66.6666666667%}.offset-8{margin-left:66.6666666667%}.col-9{flex:0 0 75%;max-width:75%}.offset-9{margin-left:75%}.col-10{flex:0 0 83.3333333333%;max-width:83.3333333333%}.offset-10{margin-left:83.3333333333%}.col-11{flex:0 0 91.6666666667%;max-width:91.6666666667%}.offset-11{margin-left:91.6666666667%}.col-12{flex:0 0 100%;max-width:100%}.offset-12{margin-left:100%}@media (min-width: 600px){.col-sm{flex-grow:1;flex-basis:0;max-width:100%}.col-sm-1{flex:0 0 8.3333333333%;max-width:8.3333333333%}.offset-sm-1{margin-left:8.3333333333%}.col-sm-2{flex:0 0 16.6666666667%;max-width:16.6666666667%}.offset-sm-2{margin-left:16.6666666667%}.col-sm-3{flex:0 0 25%;max-width:25%}.offset-sm-3{margin-left:25%}.col-sm-4{flex:0 0 33.3333333333%;max-width:33.3333333333%}.offset-sm-4{margin-left:33.3333333333%}.col-sm-5{flex:0 0 41.6666666667%;max-width:41.6666666667%}.offset-sm-5{margin-left:41.6666666667%}.col-sm-6{flex:0 0 50%;max-width:50%}.offset-sm-6{margin-left:50%}.col-sm-7{flex:0 0 58.3333333333%;max-width:58.3333333333%}.offset-sm-7{margin-left:58.3333333333%}.col-sm-8{flex:0 0 66.6666666667%;max-width:66.6666666667%}.offset-sm-8{margin-left:66.6666666667%}.col-sm-9{flex:0 0 75%;max-width:75%}.offset-sm-9{margin-left:75%}.col-sm-10{flex:0 0 83.3333333333%;max-width:83.3333333333%}.offset-sm-10{margin-left:83.3333333333%}.col-sm-11{flex:0 0 91.6666666667%;max-width:91.6666666667%}.offset-sm-11{margin-left:91.6666666667%}.col-sm-12{flex:0 0 100%;max-width:100%}.offset-sm-12{margin-left:100%}}@media (min-width: 960px){.col-md{flex-grow:1;flex-basis:0;max-width:100%}.col-md-1{flex:0 0 8.3333333333%;max-width:8.3333333333%}.offset-md-1{margin-left:8.3333333333%}.col-md-2{flex:0 0 16.6666666667%;max-width:16.6666666667%}.offset-md-2{margin-left:16.6666666667%}.col-md-3{flex:0 0 25%;max-width:25%}.offset-md-3{margin-left:25%}.col-md-4{flex:0 0 33.3333333333%;max-width:33.3333333333%}.offset-md-4{margin-left:33.3333333333%}.col-md-5{flex:0 0 41.6666666667%;max-width:41.6666666667%}.offset-md-5{margin-left:41.6666666667%}.col-md-6{flex:0 0 50%;max-width:50%}.offset-md-6{margin-left:50%}.col-md-7{flex:0 0 58.3333333333%;max-width:58.3333333333%}.offset-md-7{margin-left:58.3333333333%}.col-md-8{flex:0 0 66.6666666667%;max-width:66.6666666667%}.offset-md-8{margin-left:66.6666666667%}.col-md-9{flex:0 0 75%;max-width:75%}.offset-md-9{margin-left:75%}.col-md-10{flex:0 0 83.3333333333%;max-width:83.3333333333%}.offset-md-10{margin-left:83.3333333333%}.col-md-11{flex:0 0 91.6666666667%;max-width:91.6666666667%}.offset-md-11{margin-left:91.6666666667%}.col-md-12{flex:0 0 100%;max-width:100%}.offset-md-12{margin-left:100%}}@media (min-width: 1280px){.col-lg{flex-grow:1;flex-basis:0;max-width:100%}.col-lg-1{flex:0 0 8.3333333333%;max-width:8.3333333333%}.offset-lg-1{margin-left:8.3333333333%}.col-lg-2{flex:0 0 16.6666666667%;max-width:16.6666666667%}.offset-lg-2{margin-left:16.6666666667%}.col-lg-3{flex:0 0 25%;max-width:25%}.offset-lg-3{margin-left:25%}.col-lg-4{flex:0 0 33.3333333333%;max-width:33.3333333333%}.offset-lg-4{margin-left:33.3333333333%}.col-lg-5{flex:0 0 41.6666666667%;max-width:41.6666666667%}.offset-lg-5{margin-left:41.6666666667%}.col-lg-6{flex:0 0 50%;max-width:50%}.offset-lg-6{margin-left:50%}.col-lg-7{flex:0 0 58.3333333333%;max-width:58.3333333333%}.offset-lg-7{margin-left:58.3333333333%}.col-lg-8{flex:0 0 66.6666666667%;max-width:66.6666666667%}.offset-lg-8{margin-left:66.6666666667%}.col-lg-9{flex:0 0 75%;max-width:75%}.offset-lg-9{margin-left:75%}.col-lg-10{flex:0 0 83.3333333333%;max-width:83.3333333333%}.offset-lg-10{margin-left:83.3333333333%}.col-lg-11{flex:0 0 91.6666666667%;max-width:91.6666666667%}.offset-lg-11{margin-left:91.6666666667%}.col-lg-12{flex:0 0 100%;max-width:100%}.offset-lg-12{margin-left:100%}}@media (min-width: 1920px){.col-xl{flex-grow:1;flex-basis:0;max-width:100%}.col-xl-1{flex:0 0 8.3333333333%;max-width:8.3333333333%}.offset-xl-1{margin-left:8.3333333333%}.col-xl-2{flex:0 0 16.6666666667%;max-width:16.6666666667%}.offset-xl-2{margin-left:16.6666666667%}.col-xl-3{flex:0 0 25%;max-width:25%}.offset-xl-3{margin-left:25%}.col-xl-4{flex:0 0 33.3333333333%;max-width:33.3333333333%}.offset-xl-4{margin-left:33.3333333333%}.col-xl-5{flex:0 0 41.6666666667%;max-width:41.6666666667%}.offset-xl-5{margin-left:41.6666666667%}.col-xl-6{flex:0 0 50%;max-width:50%}.offset-xl-6{margin-left:50%}.col-xl-7{flex:0 0 58.3333333333%;max-width:58.3333333333%}.offset-xl-7{margin-left:58.3333333333%}.col-xl-8{flex:0 0 66.6666666667%;max-width:66.6666666667%}.offset-xl-8{margin-left:66.6666666667%}.col-xl-9{flex:0 0 75%;max-width:75%}.offset-xl-9{margin-left:75%}.col-xl-10{flex:0 0 83.3333333333%;max-width:83.3333333333%}.offset-xl-10{margin-left:83.3333333333%}.col-xl-11{flex:0 0 91.6666666667%;max-width:91.6666666667%}.offset-xl-11{margin-left:91.6666666667%}.col-xl-12{flex:0 0 100%;max-width:100%}.offset-xl-12{margin-left:100%}}.static{position:static!important}.fixed{position:fixed!important}.absolute{position:absolute!important}.relative{position:relative!important}.sticky{position:sticky!important}.d-inline{display:inline!important}.d-inline-block{display:inline-block!important}.d-block{display:block!important}.d-grid{display:grid!important}.d-table{display:table!important}.d-table-row{display:table-row!important}.d-table-cell{display:table-cell!important}.d-flex{display:flex!important}.d-inline-flex{display:inline-flex!important}.d-none{display:none!important}.flex-fill{flex:1 1 auto!important}.flex-row{flex-direction:row!important}.flex-row-reverse{flex-direction:row-reverse!important}.flex-col{flex-direction:column!important}.flex-col-reverse{flex-direction:column-reverse!important}.flex-grow-0{flex-grow:0!important}.flex-grow-1{flex-grow:1!important}.flex-shrink-0{flex-shrink:0!important}.flex-shrink-1{flex-shrink:1!important}.flex-wrap{flex-wrap:wrap!important}.flex-nowrap{flex-wrap:nowrap!important}.flex-wrap-reverse{flex-wrap:wrap-reverse!important}.justify-content-start{justify-content:flex-start!important}.justify-content-end{justify-content:flex-end!important}.justify-content-center{justify-content:center!important}.justify-content-between{justify-content:space-between!important}.justify-content-around{justify-content:space-around!important}.align-content-start{align-content:flex-start!important}.align-content-end{align-content:flex-end!important}.align-content-center{align-content:center!important}.align-content-between{align-content:space-between!important}.align-content-around{align-content:space-around!important}.align-content-stretch{align-content:stretch!important}.align-items-start{align-items:flex-start!important}.align-items-end{align-items:flex-end!important}.align-items-center{align-items:center!important}.align-items-baseline{align-items:baseline!important}.align-items-stretch{align-items:stretch!important}.align-self-auto{align-self:auto!important}.align-self-start{align-self:flex-start!important}.align-self-end{align-self:flex-end!important}.align-self-center{align-self:center!important}.align-self-baseline{align-self:baseline!important}.align-self-stretch{align-self:stretch!important}.w-0{width:0!important}.w-20{width:20%!important}.w-25{width:25%!important}.w-40{width:40%!important}.w-50{width:50%!important}.w-60{width:60%!important}.w-75{width:75%!important}.w-80{width:80%!important}.w-full{width:100%!important}.w-auto{width:auto!important}.h-0{height:0!important}.h-20{height:20%!important}.h-25{height:25%!important}.h-40{height:40%!important}.h-50{height:50%!important}.h-60{height:60%!important}.h-75{height:75%!important}.h-80{height:80%!important}.h-full{height:100%!important}.h-auto{height:auto!important}.m-0{margin:0!important}.m-2{margin:.125rem!important}.m-4{margin:.25rem!important}.m-8{margin:.5rem!important}.m-12{margin:.75rem!important}.m-16{margin:1rem!important}.m-24{margin:1.5rem!important}.m-32{margin:2rem!important}.m-48{margin:3rem!important}.m-auto{margin:auto!important}.m-x-0{margin-left:0!important;margin-right:0!important}.m-x-2{margin-left:.125rem!important;margin-right:.125rem!important}.m-x-4{margin-left:.25rem!important;margin-right:.25rem!important}.m-x-8{margin-left:.5rem!important;margin-right:.5rem!important}.m-x-12{margin-left:.75rem!important;margin-right:.75rem!important}.m-x-16{margin-left:1rem!important;margin-right:1rem!important}.m-x-24{margin-left:1.5rem!important;margin-right:1.5rem!important}.m-x-32{margin-left:2rem!important;margin-right:2rem!important}.m-x-48{margin-left:3rem!important;margin-right:3rem!important}.m-x-auto{margin-left:auto!important;margin-right:auto!important}.m-y-0{margin-top:0!important;margin-bottom:0!important}.m-y-2{margin-top:.125rem!important;margin-bottom:.125rem!important}.m-y-4{margin-top:.25rem!important;margin-bottom:.25rem!important}.m-y-8{margin-top:.5rem!important;margin-bottom:.5rem!important}.m-y-12{margin-top:.75rem!important;margin-bottom:.75rem!important}.m-y-16{margin-top:1rem!important;margin-bottom:1rem!important}.m-y-24{margin-top:1.5rem!important;margin-bottom:1.5rem!important}.m-y-32{margin-top:2rem!important;margin-bottom:2rem!important}.m-y-48{margin-top:3rem!important;margin-bottom:3rem!important}.m-y-auto{margin-top:auto!important;margin-bottom:auto!important}.m-t-0{margin-top:0!important}.m-t-2{margin-top:.125rem!important}.m-t-4{margin-top:.25rem!important}.m-t-8{margin-top:.5rem!important}.m-t-12{margin-top:.75rem!important}.m-t-16{margin-top:1rem!important}.m-t-24{margin-top:1.5rem!important}.m-t-32{margin-top:2rem!important}.m-t-48{margin-top:3rem!important}.m-t-auto{margin-top:auto!important}.m-r-0{margin-right:0!important}.m-r-2{margin-right:.125rem!important}.m-r-4{margin-right:.25rem!important}.m-r-8{margin-right:.5rem!important}.m-r-12{margin-right:.75rem!important}.m-r-16{margin-right:1rem!important}.m-r-24{margin-right:1.5rem!important}.m-r-32{margin-right:2rem!important}.m-r-48{margin-right:3rem!important}.m-r-auto{margin-right:auto!important}.m-b-0{margin-bottom:0!important}.m-b-2{margin-bottom:.125rem!important}.m-b-4{margin-bottom:.25rem!important}.m-b-8{margin-bottom:.5rem!important}.m-b-12{margin-bottom:.75rem!important}.m-b-16{margin-bottom:1rem!important}.m-b-24{margin-bottom:1.5rem!important}.m-b-32{margin-bottom:2rem!important}.m-b-48{margin-bottom:3rem!important}.m-b-auto{margin-bottom:auto!important}.m-l-0{margin-left:0!important}.m-l-2{margin-left:.125rem!important}.m-l-4{margin-left:.25rem!important}.m-l-8{margin-left:.5rem!important}.m-l-12{margin-left:.75rem!important}.m-l-16{margin-left:1rem!important}.m-l-24{margin-left:1.5rem!important}.m-l-32{margin-left:2rem!important}.m-l-48{margin-left:3rem!important}.m-l-auto{margin-left:auto!important}.m--2{margin:-.125rem!important}.m--4{margin:-.25rem!important}.m--8{margin:-.5rem!important}.m--12{margin:-.75rem!important}.m--16{margin:-1rem!important}.m--24{margin:-1.5rem!important}.m--32{margin:-2rem!important}.m--48{margin:-3rem!important}.m-x--2{margin-left:-.125rem!important;margin-right:-.125rem!important}.m-x--4{margin-left:-.25rem!important;margin-right:-.25rem!important}.m-x--8{margin-left:-.5rem!important;margin-right:-.5rem!important}.m-x--12{margin-left:-.75rem!important;margin-right:-.75rem!important}.m-x--16{margin-left:-1rem!important;margin-right:-1rem!important}.m-x--24{margin-left:-1.5rem!important;margin-right:-1.5rem!important}.m-x--32{margin-left:-2rem!important;margin-right:-2rem!important}.m-x--48{margin-left:-3rem!important;margin-right:-3rem!important}.m-y--2{margin-top:-.125rem!important;margin-bottom:-.125rem!important}.m-y--4{margin-top:-.25rem!important;margin-bottom:-.25rem!important}.m-y--8{margin-top:-.5rem!important;margin-bottom:-.5rem!important}.m-y--12{margin-top:-.75rem!important;margin-bottom:-.75rem!important}.m-y--16{margin-top:-1rem!important;margin-bottom:-1rem!important}.m-y--24{margin-top:-1.5rem!important;margin-bottom:-1.5rem!important}.m-y--32{margin-top:-2rem!important;margin-bottom:-2rem!important}.m-y--48{margin-top:-3rem!important;margin-bottom:-3rem!important}.m-t--2{margin-top:-.125rem!important}.m-t--4{margin-top:-.25rem!important}.m-t--8{margin-top:-.5rem!important}.m-t--12{margin-top:-.75rem!important}.m-t--16{margin-top:-1rem!important}.m-t--24{margin-top:-1.5rem!important}.m-t--32{margin-top:-2rem!important}.m-t--48{margin-top:-3rem!important}.m-r--2{margin-right:-.125rem!important}.m-r--4{margin-right:-.25rem!important}.m-r--8{margin-right:-.5rem!important}.m-r--12{margin-right:-.75rem!important}.m-r--16{margin-right:-1rem!important}.m-r--24{margin-right:-1.5rem!important}.m-r--32{margin-right:-2rem!important}.m-r--48{margin-right:-3rem!important}.m-b--2{margin-bottom:-.125rem!important}.m-b--4{margin-bottom:-.25rem!important}.m-b--8{margin-bottom:-.5rem!important}.m-b--12{margin-bottom:-.75rem!important}.m-b--16{margin-bottom:-1rem!important}.m-b--24{margin-bottom:-1.5rem!important}.m-b--32{margin-bottom:-2rem!important}.m-b--48{margin-bottom:-3rem!important}.m-l--2{margin-left:-.125rem!important}.m-l--4{margin-left:-.25rem!important}.m-l--8{margin-left:-.5rem!important}.m-l--12{margin-left:-.75rem!important}.m-l--16{margin-left:-1rem!important}.m-l--24{margin-left:-1.5rem!important}.m-l--32{margin-left:-2rem!important}.m-l--48{margin-left:-3rem!important}.p-0{padding:0!important}.p-2{padding:.125rem!important}.p-4{padding:.25rem!important}.p-8{padding:.5rem!important}.p-12{padding:.75rem!important}.p-16{padding:1rem!important}.p-24{padding:1.5rem!important}.p-32{padding:2rem!important}.p-48{padding:3rem!important}.p-x-0{padding-left:0!important;padding-right:0!important}.p-x-2{padding-left:.125rem!important;padding-right:.125rem!important}.p-x-4{padding-left:.25rem!important;padding-right:.25rem!important}.p-x-8{padding-left:.5rem!important;padding-right:.5rem!important}.p-x-12{padding-left:.75rem!important;padding-right:.75rem!important}.p-x-16{padding-left:1rem!important;padding-right:1rem!important}.p-x-24{padding-left:1.5rem!important;padding-right:1.5rem!important}.p-x-32{padding-left:2rem!important;padding-right:2rem!important}.p-x-48{padding-left:3rem!important;padding-right:3rem!important}.p-y-0{padding-top:0!important;padding-bottom:0!important}.p-y-2{padding-top:.125rem!important;padding-bottom:.125rem!important}.p-y-4{padding-top:.25rem!important;padding-bottom:.25rem!important}.p-y-8{padding-top:.5rem!important;padding-bottom:.5rem!important}.p-y-12{padding-top:.75rem!important;padding-bottom:.75rem!important}.p-y-16{padding-top:1rem!important;padding-bottom:1rem!important}.p-y-24{padding-top:1.5rem!important;padding-bottom:1.5rem!important}.p-y-32{padding-top:2rem!important;padding-bottom:2rem!important}.p-y-48{padding-top:3rem!important;padding-bottom:3rem!important}.p-t-0{padding-top:0!important}.p-t-2{padding-top:.125rem!important}.p-t-4{padding-top:.25rem!important}.p-t-8{padding-top:.5rem!important}.p-t-12{padding-top:.75rem!important}.p-t-16{padding-top:1rem!important}.p-t-24{padding-top:1.5rem!important}.p-t-32{padding-top:2rem!important}.p-t-48{padding-top:3rem!important}.p-r-0{padding-right:0!important}.p-r-2{padding-right:.125rem!important}.p-r-4{padding-right:.25rem!important}.p-r-8{padding-right:.5rem!important}.p-r-12{padding-right:.75rem!important}.p-r-16{padding-right:1rem!important}.p-r-24{padding-right:1.5rem!important}.p-r-32{padding-right:2rem!important}.p-r-48{padding-right:3rem!important}.p-b-0{padding-bottom:0!important}.p-b-2{padding-bottom:.125rem!important}.p-b-4{padding-bottom:.25rem!important}.p-b-8{padding-bottom:.5rem!important}.p-b-12{padding-bottom:.75rem!important}.p-b-16{padding-bottom:1rem!important}.p-b-24{padding-bottom:1.5rem!important}.p-b-32{padding-bottom:2rem!important}.p-b-48{padding-bottom:3rem!important}.p-l-0{padding-left:0!important}.p-l-2{padding-left:.125rem!important}.p-l-4{padding-left:.25rem!important}.p-l-8{padding-left:.5rem!important}.p-l-12{padding-left:.75rem!important}.p-l-16{padding-left:1rem!important}.p-l-24{padding-left:1.5rem!important}.p-l-32{padding-left:2rem!important}.p-l-48{padding-left:3rem!important}.gap-0{gap:0!important}.gap-2{gap:.125rem!important}.gap-4{gap:.25rem!important}.gap-8{gap:.5rem!important}.gap-12{gap:.75rem!important}.gap-16{gap:1rem!important}.gap-24{gap:1.5rem!important}.gap-32{gap:2rem!important}.gap-48{gap:3rem!important}.b-0{border:0!important}.b-1{border:1px solid var(--mat-divider-color)!important}.b-2{border:2px solid var(--mat-divider-color)!important}.b-4{border:4px solid var(--mat-divider-color)!important}.b-8{border:8px solid var(--mat-divider-color)!important}.b-t-0{border-top:0!important}.b-t-1{border-top:1px solid var(--mat-divider-color)!important}.b-t-2{border-top:2px solid var(--mat-divider-color)!important}.b-t-4{border-top:4px solid var(--mat-divider-color)!important}.b-t-8{border-top:8px solid var(--mat-divider-color)!important}.b-b-0{border-bottom:0!important}.b-b-1{border-bottom:1px solid var(--mat-divider-color)!important}.b-b-2{border-bottom:2px solid var(--mat-divider-color)!important}.b-b-4{border-bottom:4px solid var(--mat-divider-color)!important}.b-b-8{border-bottom:8px solid var(--mat-divider-color)!important}.b-l-0{border-left:0!important}.b-l-1{border-left:1px solid var(--mat-divider-color)!important}.b-l-2{border-left:2px solid var(--mat-divider-color)!important}.b-l-4{border-left:4px solid var(--mat-divider-color)!important}.b-l-8{border-left:8px solid var(--mat-divider-color)!important}.b-r-0{border-right:0!important}.b-r-1{border-right:1px solid var(--mat-divider-color)!important}.b-r-2{border-right:2px solid var(--mat-divider-color)!important}.b-r-4{border-right:4px solid var(--mat-divider-color)!important}.b-r-8{border-right:8px solid var(--mat-divider-color)!important}.b-y-0{border-top:0!important;border-bottom:0!important}.b-y-1{border-top:1px solid var(--mat-divider-color)!important;border-bottom:1px solid var(--mat-divider-color)!important}.b-y-2{border-top:2px solid var(--mat-divider-color)!important;border-bottom:2px solid var(--mat-divider-color)!important}.b-y-4{border-top:4px solid var(--mat-divider-color)!important;border-bottom:4px solid var(--mat-divider-color)!important}.b-y-8{border-top:8px solid var(--mat-divider-color)!important;border-bottom:8px solid var(--mat-divider-color)!important}.b-x-0{border-left:0!important;border-right:0!important}.b-x-1{border-left:1px solid var(--mat-divider-color)!important;border-right:1px solid var(--mat-divider-color)!important}.b-x-2{border-left:2px solid var(--mat-divider-color)!important;border-right:2px solid var(--mat-divider-color)!important}.b-x-4{border-left:4px solid var(--mat-divider-color)!important;border-right:4px solid var(--mat-divider-color)!important}.b-x-8{border-left:8px solid var(--mat-divider-color)!important;border-right:8px solid var(--mat-divider-color)!important}.border-0{border-width:0!important}.border-1{border-width:1px!important}.border-2{border-width:2px!important}.border-4{border-width:4px!important}.border-8{border-width:8px!important}.border-t-0{border-top-width:0!important}.border-t-1{border-top-width:1px!important}.border-t-2{border-top-width:2px!important}.border-t-4{border-top-width:4px!important}.border-t-8{border-top-width:8px!important}.border-b-0{border-bottom-width:0!important}.border-b-1{border-bottom-width:1px!important}.border-b-2{border-bottom-width:2px!important}.border-b-4{border-bottom-width:4px!important}.border-b-8{border-bottom-width:8px!important}.border-l-0{border-left-width:0!important}.border-l-1{border-left-width:1px!important}.border-l-2{border-left-width:2px!important}.border-l-4{border-left-width:4px!important}.border-l-8{border-left-width:8px!important}.border-r-0{border-right-width:0!important}.border-r-1{border-right-width:1px!important}.border-r-2{border-right-width:2px!important}.border-r-4{border-right-width:4px!important}.border-r-8{border-right-width:8px!important}.border-y-0{border-top-width:0!important;border-bottom-width:0!important}.border-y-1{border-top-width:1px!important;border-bottom-width:1px!important}.border-y-2{border-top-width:2px!important;border-bottom-width:2px!important}.border-y-4{border-top-width:4px!important;border-bottom-width:4px!important}.border-y-8{border-top-width:8px!important;border-bottom-width:8px!important}.border-x-0{border-left-width:0!important;border-right-width:0!important}.border-x-1{border-left-width:1px!important;border-right-width:1px!important}.border-x-2{border-left-width:2px!important;border-right-width:2px!important}.border-x-4{border-left-width:4px!important;border-right-width:4px!important}.border-x-8{border-left-width:8px!important;border-right-width:8px!important}.border-solid{border-style:solid!important}.border-dashed{border-style:dashed!important}.border-dotted{border-style:dotted!important}.border-double{border-style:double!important}.border-hidden{border-style:hidden!important}.border-none{border-style:none!important}.border-t-solid{border-top-style:solid!important}.border-t-dashed{border-top-style:dashed!important}.border-t-dotted{border-top-style:dotted!important}.border-t-double{border-top-style:double!important}.border-t-hidden{border-top-style:hidden!important}.border-t-none{border-top-style:none!important}.border-b-solid{border-bottom-style:solid!important}.border-b-dashed{border-bottom-style:dashed!important}.border-b-dotted{border-bottom-style:dotted!important}.border-b-double{border-bottom-style:double!important}.border-b-hidden{border-bottom-style:hidden!important}.border-b-none{border-bottom-style:none!important}.border-l-solid{border-left-style:solid!important}.border-l-dashed{border-left-style:dashed!important}.border-l-dotted{border-left-style:dotted!important}.border-l-double{border-left-style:double!important}.border-l-hidden{border-left-style:hidden!important}.border-l-none{border-left-style:none!important}.border-r-solid{border-right-style:solid!important}.border-r-dashed{border-right-style:dashed!important}.border-r-dotted{border-right-style:dotted!important}.border-r-double{border-right-style:double!important}.border-r-hidden{border-right-style:hidden!important}.border-r-none{border-right-style:none!important}.border-y-solid{border-top-style:solid!important;border-bottom-style:solid!important}.border-y-dashed{border-top-style:dashed!important;border-bottom-style:dashed!important}.border-y-dotted{border-top-style:dotted!important;border-bottom-style:dotted!important}.border-y-double{border-top-style:double!important;border-bottom-style:double!important}.border-y-hidden{border-top-style:hidden!important;border-bottom-style:hidden!important}.border-y-none{border-top-style:none!important;border-bottom-style:none!important}.border-x-solid{border-left-style:solid!important;border-right-style:solid!important}.border-x-dashed{border-left-style:dashed!important;border-right-style:dashed!important}.border-x-dotted{border-left-style:dotted!important;border-right-style:dotted!important}.border-x-double{border-left-style:double!important;border-right-style:double!important}.border-x-hidden{border-left-style:hidden!important;border-right-style:hidden!important}.border-x-none{border-left-style:none!important;border-right-style:none!important}.r-0{border-radius:0!important}.r-4{border-radius:.25rem!important}.r-8{border-radius:.5rem!important}.r-12{border-radius:.75rem!important}.r-16{border-radius:1rem!important}.r-full{border-radius:9999px!important}.r-t-l-0{border-top-left-radius:0!important}.r-t-l-4{border-top-left-radius:.25rem!important}.r-t-l-8{border-top-left-radius:.5rem!important}.r-t-l-12{border-top-left-radius:.75rem!important}.r-t-l-16{border-top-left-radius:1rem!important}.r-t-l-full{border-top-left-radius:9999px!important}.r-t-r-0{border-top-right-radius:0!important}.r-t-r-4{border-top-right-radius:.25rem!important}.r-t-r-8{border-top-right-radius:.5rem!important}.r-t-r-12{border-top-right-radius:.75rem!important}.r-t-r-16{border-top-right-radius:1rem!important}.r-t-r-full{border-top-right-radius:9999px!important}.r-b-r-0{border-bottom-right-radius:0!important}.r-b-r-4{border-bottom-right-radius:.25rem!important}.r-b-r-8{border-bottom-right-radius:.5rem!important}.r-b-r-12{border-bottom-right-radius:.75rem!important}.r-b-r-16{border-bottom-right-radius:1rem!important}.r-b-r-full{border-bottom-right-radius:9999px!important}.r-b-l-0{border-bottom-left-radius:0!important}.r-b-l-4{border-bottom-left-radius:.25rem!important}.r-b-l-8{border-bottom-left-radius:.5rem!important}.r-b-l-12{border-bottom-left-radius:.75rem!important}.r-b-l-16{border-bottom-left-radius:1rem!important}.r-b-l-full{border-bottom-left-radius:9999px!important}.r-t-0{border-top-left-radius:0!important;border-top-right-radius:0!important}.r-t-4{border-top-left-radius:.25rem!important;border-top-right-radius:.25rem!important}.r-t-8{border-top-left-radius:.5rem!important;border-top-right-radius:.5rem!important}.r-t-12{border-top-left-radius:.75rem!important;border-top-right-radius:.75rem!important}.r-t-16{border-top-left-radius:1rem!important;border-top-right-radius:1rem!important}.r-t-full{border-top-left-radius:9999px!important;border-top-right-radius:9999px!important}.r-b-0{border-bottom-left-radius:0!important;border-bottom-right-radius:0!important}.r-b-4{border-bottom-left-radius:.25rem!important;border-bottom-right-radius:.25rem!important}.r-b-8{border-bottom-left-radius:.5rem!important;border-bottom-right-radius:.5rem!important}.r-b-12{border-bottom-left-radius:.75rem!important;border-bottom-right-radius:.75rem!important}.r-b-16{border-bottom-left-radius:1rem!important;border-bottom-right-radius:1rem!important}.r-b-full{border-bottom-left-radius:9999px!important;border-bottom-right-radius:9999px!important}.r-l-0{border-top-left-radius:0!important;border-bottom-left-radius:0!important}.r-l-4{border-top-left-radius:.25rem!important;border-bottom-left-radius:.25rem!important}.r-l-8{border-top-left-radius:.5rem!important;border-bottom-left-radius:.5rem!important}.r-l-12{border-top-left-radius:.75rem!important;border-bottom-left-radius:.75rem!important}.r-l-16{border-top-left-radius:1rem!important;border-bottom-left-radius:1rem!important}.r-l-full{border-top-left-radius:9999px!important;border-bottom-left-radius:9999px!important}.r-r-0{border-top-right-radius:0!important;border-bottom-right-radius:0!important}.r-r-4{border-top-right-radius:.25rem!important;border-bottom-right-radius:.25rem!important}.r-r-8{border-top-right-radius:.5rem!important;border-bottom-right-radius:.5rem!important}.r-r-12{border-top-right-radius:.75rem!important;border-bottom-right-radius:.75rem!important}.r-r-16{border-top-right-radius:1rem!important;border-bottom-right-radius:1rem!important}.r-r-full{border-top-right-radius:9999px!important;border-bottom-right-radius:9999px!important}.f-s-0{font-size:0!important}.f-s-10{font-size:.625rem!important}.f-s-12{font-size:.75rem!important}.f-s-14{font-size:.875rem!important}.f-s-16{font-size:1rem!important}.f-s-18{font-size:1.125rem!important}.f-s-20{font-size:1.25rem!important}.f-w-100{font-weight:100!important}.f-w-200{font-weight:200!important}.f-w-300{font-weight:300!important}.f-w-400{font-weight:400!important}.f-w-500{font-weight:500!important}.f-w-600{font-weight:600!important}.f-w-700{font-weight:700!important}.f-w-800{font-weight:800!important}.f-w-900{font-weight:900!important}.font-italic{font-style:italic!important}.font-normal{font-style:normal!important}.text-center{text-align:center!important}.text-right{text-align:right!important}.text-left{text-align:left!important}.text-none{text-decoration:none!important}.text-underline{text-decoration:underline!important}.text-line-through{text-decoration:line-through!important}.text-capitalize{text-transform:capitalize!important}.text-uppercase{text-transform:uppercase!important}.text-lowercase{text-transform:lowercase!important}.text-wrap{white-space:normal!important}.text-nowrap{white-space:nowrap!important}.text-break{word-wrap:break-word!important;word-break:break-word!important}.text-ellipsis{text-overflow:ellipsis!important}.text-reset{color:inherit!important}.text-current{color:currentColor!important}.align-baseline{vertical-align:baseline!important}.align-top{vertical-align:top!important}.align-middle{vertical-align:middle!important}.align-bottom{vertical-align:bottom!important}.align-text-bottom{vertical-align:text-bottom!important}.align-text-top{vertical-align:text-top!important}.overflow-auto{overflow:auto!important}.overflow-hidden{overflow:hidden!important}.overflow-visible{overflow:visible!important}.overflow-scroll{overflow:scroll!important}.overflow-x-auto{overflow-x:auto!important}.overflow-x-hidden{overflow-x:hidden!important}.overflow-x-visible{overflow-x:visible!important}.overflow-x-scroll{overflow-x:scroll!important}.overflow-y-auto{overflow-y:auto!important}.overflow-y-hidden{overflow-y:hidden!important}.overflow-y-visible{overflow-y:visible!important}.overflow-y-scroll{overflow-y:scroll!important}.cursor-default{cursor:default!important}.cursor-pointer{cursor:pointer!important}.cursor-text{cursor:text!important}.cursor-move{cursor:move!important}.cursor-copy{cursor:copy!important}.cursor-not-allowed{cursor:not-allowed!important}.select-all{-webkit-user-select:all!important;user-select:all!important}.select-auto{-webkit-user-select:auto!important;user-select:auto!important}.select-none{-webkit-user-select:none!important;user-select:none!important}.pointer-events-none{pointer-events:none!important}.pointer-events-auto{pointer-events:auto!important}.object-contain{object-fit:contain!important}.object-cover{object-fit:cover!important}.object-fill{object-fit:fill!important}.object-none{object-fit:none!important}.object-scale-down{object-fit:scale-down!important}.object-top{object-position:top!important}.object-bottom{object-position:bottom!important}.object-center{object-position:center!important}.object-left{object-position:left!important}.object-left-top{object-position:left top!important}.object-left-bottom{object-position:left bottom!important}.object-right{object-position:right!important}.object-right-top{object-position:right top!important}.object-right-bottom{object-position:right bottom!important}.photoviewer-modal{position:absolute;z-index:1100;width:320px;height:320px;color:#333;background-color:#fff;border-radius:6px;box-shadow:inset 0 0 1px #fff9,0 0 1px #0009,0 8px 32px -4px #0006;outline:none}.photoviewer-modal:focus-visible{outline:4px solid rgba(0,0,0,.2)}.photoviewer-inner{position:absolute;inset:0}.photoviewer-maximized{position:fixed;inset:0;width:auto;height:auto}.photoviewer-maximized.photoviewer-modal{border-width:0;border-radius:0}.photoviewer-maximized .photoviewer-header{border-radius:0}.photoviewer-maximized .photoviewer-resizable-handle{display:none}.photoviewer-button{display:inline-block;min-width:40px;height:40px;box-sizing:border-box;font-size:16px;line-height:1;background:none;border:none;color:inherit;cursor:pointer;outline:none}.photoviewer-button:hover{color:#111}.photoviewer-button:focus{background-color:#0000001a}.photoviewer-button svg{width:1em;height:1em;vertical-align:-.125em}.photoviewer-header{position:relative;z-index:1;height:30px;border-radius:6px 6px 0 0;overflow:hidden}.photoviewer-header .photoviewer-toolbar{float:right}[dir=rtl] .photoviewer-header .photoviewer-toolbar{float:left}.photoviewer-header .photoviewer-button{height:30px}.photoviewer-header .photoviewer-button:hover{background-color:#0000001a}.photoviewer-header .photoviewer-button-close:hover{color:#fff;background-color:#ff4545}.photoviewer-title{padding:8px 10px;font-size:14px;line-height:1;white-space:nowrap;text-overflow:ellipsis;-webkit-user-select:none;user-select:none;overflow:hidden}.photoviewer-stage{position:absolute;inset:30px 0 40px;border-top:1px solid rgba(0,0,0,.2);border-bottom:1px solid rgba(0,0,0,.2);overflow:hidden}.photoviewer-image{position:absolute;display:inline-block;min-width:auto;max-width:none}.photoviewer-footer{position:absolute;bottom:0;z-index:1;width:100%;height:40px;text-align:center}.photoviewer-align-center{text-align:center}.photoviewer-align-center:before{content:"";display:inline-block;height:100%;vertical-align:middle;overflow:hidden}.photoviewer-align-center .photoviewer-image{position:static;max-width:100%;max-height:100%;vertical-align:middle}.photoviewer-image-error{display:none}.photoviewer-error-msg{vertical-align:middle}[dir=rtl] .photoviewer-button-prev,[dir=rtl] .photoviewer-button-next{transform:rotate(180deg)}.photoviewer-resizable-handle{position:absolute;z-index:1}.photoviewer-resizable-handle-e,.photoviewer-resizable-handle-w{top:0;bottom:0;width:8px;cursor:ew-resize}.photoviewer-resizable-handle-e{right:-4px}.photoviewer-resizable-handle-w{left:-4px}.photoviewer-resizable-handle-s,.photoviewer-resizable-handle-n{right:0;left:0;height:8px;cursor:ns-resize}.photoviewer-resizable-handle-s{bottom:-4px}.photoviewer-resizable-handle-n{top:-4px}.photoviewer-resizable-handle-se,.photoviewer-resizable-handle-sw,.photoviewer-resizable-handle-ne,.photoviewer-resizable-handle-nw{width:8px;height:8px}.photoviewer-resizable-handle-se{right:-4px;bottom:-4px;cursor:nwse-resize}.photoviewer-resizable-handle-sw{bottom:-4px;left:-4px;cursor:nesw-resize}.photoviewer-resizable-handle-ne{top:-4px;right:-4px;cursor:nesw-resize}.photoviewer-resizable-handle-nw{top:-4px;left:-4px;cursor:nwse-resize}.photoviewer-modal:fullscreen{inset:0!important;width:100%!important;height:100%!important;background-color:#000;border-width:0;border-radius:0}.photoviewer-modal:fullscreen .photoviewer-header,.photoviewer-modal:fullscreen .photoviewer-footer,.photoviewer-modal:fullscreen .photoviewer-resizable-handle{display:none}.photoviewer-modal:fullscreen .photoviewer-stage{inset:0;border-width:0;background-color:transparent}.is-grab{cursor:move;cursor:-webkit-grab;cursor:grab}.is-grabbing{cursor:move;cursor:-webkit-grabbing;cursor:grabbing}.photoviewer-loader{position:absolute;inset:0;text-align:center;color:#333}.photoviewer-loader:before{content:"";position:relative;display:inline-block;width:32px;height:32px;box-sizing:border-box;border-width:4px;border-style:solid;border-color:rgba(0,0,0,.5) rgba(0,0,0,.5) rgba(0,0,0,.5) rgba(255,255,255,.5);border-radius:100%;vertical-align:middle;animation:photoviewerLoading 1s infinite linear}.photoviewer-loader:after{content:"";display:inline-block;width:0;height:100%;vertical-align:middle;overflow:hidden}@keyframes photoviewerLoading{0%{transform:rotate(0) translateZ(0)}to{transform:rotate(360deg) translateZ(0)}}@keyframes hotToastEnter{0%{transform:scale(0)}to{transform:scale(1)}}.hot-toast-animated-icon{animation:var(--hot-toast-animated-icon-animation, hotToastEnter .3s ease-in-out forwards);position:var(--hot-toast-animated-icon-position, relative);transform:var(--hot-toast-animated-icon-transform, scale(0))}@media (prefers-reduced-motion: reduce){.hot-toast-animated-icon{animation-duration:var(--hot-toast-animated-icon-reduced-motion-animation-duration, none);opacity:var(--hot-toast-animated-icon-reduced-motion-opacity, 1);transform:var(--hot-toast-animated-icon-reduced-motion-transform, scale(1))}}@keyframes hotToastCircleAnimation{0%{opacity:0;transform:scale(0) rotate(45deg)}to{opacity:1;transform:scale(1) rotate(45deg)}}@keyframes hotToastCheckmarkAnimation{0%{height:0;opacity:0;width:0}40%{height:0;opacity:1;width:6px}to{height:10px;opacity:1}}.hot-toast-checkmark-icon{animation:var(--hot-toast-checkmark-icon-animation, hotToastCircleAnimation .3s cubic-bezier(.175, .885, .32, 1.275) forwards);animation-delay:var(--hot-toast-checkmark-icon-animation-delay, .1s);background-color:var(--hot-toast-checkmark-icon-background-color, var(--check-primary, #61d345));border-radius:var(--hot-toast-checkmark-icon-border-radius, 10px);height:var(--hot-toast-checkmark-icon-height, 20px);opacity:var(--hot-toast-checkmark-icon-opacity, 0);position:var(--hot-toast-checkmark-icon-position, relative);transform:var(--hot-toast-checkmark-icon-transform, rotate(45deg));width:var(--hot-toast-checkmark-icon-width, 20px)}@media (prefers-reduced-motion: reduce){.hot-toast-checkmark-icon{animation-duration:var(--hot-toast-checkmark-icon-reduced-motion-animation-duration, 0ms)}}.hot-toast-checkmark-icon:after{animation:var(--hot-toast-checkmark-icon-after-animation, hotToastCheckmarkAnimation .2s ease-out forwards);animation-delay:var(--hot-toast-checkmark-icon-after-animation-delay, .2s);border-bottom-style:solid;border-bottom-width:var(--hot-toast-checkmark-icon-after-border-bottom, 2px);border-color:var(--hot-toast-checkmark-icon-after-border-color, var(--check-secondary, #fff));border-right-style:solid;border-right-width:var(--hot-toast-checkmark-icon-after-border-right, 2px);bottom:var(--hot-toast-checkmark-icon-after-bottom, 6px);box-sizing:var(--hot-toast-checkmark-icon-after-box-sizing, border-box);content:var(--hot-toast-checkmark-icon-after-content, "");height:var(--hot-toast-checkmark-icon-after-height, 10px);left:var(--hot-toast-checkmark-icon-after-left, 6px);opacity:var(--hot-toast-checkmark-icon-after-opacity, 0);position:var(--hot-toast-checkmark-icon-after-position, absolute);width:var(--hot-toast-checkmark-icon-after-width, 6px)}@media (prefers-reduced-motion: reduce){.hot-toast-checkmark-icon:after{animation-duration:var(--hot-toast-checkmark-icon-after-reduced-motion-animation-duration, 0ms)}}@keyframes hotToastErrorCircleAnimation{0%{opacity:0;transform:scale(0) rotate(45deg)}to{opacity:1;transform:scale(1) rotate(45deg)}}@keyframes hotToastFirstLineAnimation{0%{opacity:0;transform:scale(0)}to{opacity:1;transform:scale(1)}}@keyframes hotToastSecondLineAnimation{0%{opacity:0;transform:scale(0) rotate(90deg)}to{opacity:1;transform:scale(1) rotate(90deg)}}.hot-toast-error-icon{animation:var(--hot-toast-error-icon-animation, hotToastErrorCircleAnimation .3s cubic-bezier(.175, .885, .32, 1.275) forwards);animation-delay:var(--hot-toast-error-icon-animation-delay, .1s);background:var(--hot-toast-error-icon-background, var(--error-primary, #ff4b4b));border-radius:var(--hot-toast-error-icon-border-radius, 10px);height:var(--hot-toast-error-icon-height, 20px);opacity:var(--hot-toast-error-icon-opacity, 0);position:var(--hot-toast-error-icon-position, relative);transform:var(--hot-toast-error-icon-transform, rotate(45deg));width:var(--hot-toast-error-icon-width, 20px)}@media (prefers-reduced-motion: reduce){.hot-toast-error-icon{animation-duration:var(--hot-toast-error-icon-reduced-motion-animation-duration, 0ms)}}.hot-toast-error-icon:after,.hot-toast-error-icon:before{animation:var(--hot-toast-error-icon-after-before-animation, hotToastFirstLineAnimation .15s ease-out forwards);animation-delay:var(--hot-toast-error-icon-after-before-animation-delay, .15s);background:var(--hot-toast-error-icon-after-before-background, var(--error-secondary, #fff));border-radius:var(--hot-toast-error-icon-after-before-border-radius, 3px);bottom:var(--hot-toast-error-icon-after-before-bottom, 9px);content:var(--hot-toast-error-icon-after-before-content, "");height:var(--hot-toast-error-icon-after-before-height, 2px);left:var(--hot-toast-error-icon-after-before-left, 4px);opacity:var(--hot-toast-error-icon-after-before-opacity, 0);position:var(--hot-toast-error-icon-after-before-position, absolute);width:var(--hot-toast-error-icon-after-before-width, 12px)}@media (prefers-reduced-motion: reduce){.hot-toast-error-icon:after,.hot-toast-error-icon:before{animation-duration:var(--hot-toast-error-icon-after-before-reduced-motion-animation-duration, 0ms)}}.hot-toast-error-icon:before{animation:var(--hot-toast-error-icon-before-animation, hotToastSecondLineAnimation .15s ease-out forwards);animation-delay:var(--hot-toast-error-icon-before-animation-delay, .18s);transform:var(--hot-toast-error-icon-before-transform, rotate(90deg))}@media (prefers-reduced-motion: reduce){.hot-toast-error-icon:before{animation-duration:var(--hot-toast-error-icon-before-reduced-motion-animation-duration, 0ms)}}.hot-toast-bar-base{align-items:var(--hot-toast-align-items, center);background-color:var(--hot-toast-bg, #fff);border-radius:var(--hot-toast-border-radius, 4px);box-shadow:var(--hot-toast-shadow, 0 3px 10px rgba(0, 0, 0, .1), 0 3px 3px rgba(0, 0, 0, .05));color:var(--hot-toast-color, #363636);display:var(--hot-toast-display, flex);line-height:var(--hot-toast-line, 1.3);margin:var(--hot-toast-margin, 16px);max-width:var(--hot-toast-max-width, 350px);padding:var(--hot-toast-padding, 8px 10px);pointer-events:var(--hot-toast-pointer-events, auto);width:var(--hot-toast-width, fit-content);transition-property:border-bottom-left-radius,border-bottom-right-radius;transition-duration:.23s;transition-timing-function:ease-out}.hot-toast-bar-base:hover,.hot-toast-bar-base:focus{animation-play-state:var(--hot-toast-animation-state, paused)!important}@media (prefers-reduced-motion: reduce){.hot-toast-bar-base{animation-duration:var(--hot-toast-reduced-motion-animation-duration, 10ms)!important}}.expanded .hot-toast-bar-base{border-bottom-left-radius:0;border-bottom-right-radius:0}.hot-toast-message{color:var(--hot-toast-message-color, inherit);display:var(--hot-toast-message-display, flex);flex:var(--hot-toast-message-flex, 1);justify-content:var(--hot-toast-message-justify-content, center);margin:var(--hot-toast-message-margin, 4px 10px)}.hot-toast-bar-base-container{display:var(--hot-toast-container-display, flex);pointer-events:var(--hot-toast-container-pointer-events, none);position:var(--hot-toast-container-position, absolute);transition:var(--hot-toast-container-transition, transform .23s cubic-bezier(.21, 1.02, .73, 1))}@media (prefers-reduced-motion: reduce){.hot-toast-bar-base-container{transition-duration:var(--hot-toast-container-reduced-motion-transition-duration, 10ms)!important}}.hot-toast-bar-base-container.hot-toast-theme-snackbar .hot-toast-bar-base{background:var(--hot-toast-snackbar-bg, #323232);box-shadow:var(--hot-toast-snackbar-shadow, 0 3px 5px -1px rgba(0, 0, 0, .2), 0 6px 10px 0 rgba(0, 0, 0, .14), 0 1px 18px 0 rgba(0, 0, 0, .12));color:var(--hot-toast-snackbar-color, rgb(255, 255, 255))}.hot-toast-bar-base-container.hot-toast-theme-snackbar .hot-toast-close-btn{filter:var(--hot-toast-snackbar-close-btn-filter, invert(1) grayscale(100%) brightness(200%))}.hot-toast-close-btn{align-self:var(--hot-toast-close-btn-align-self, flex-start);background-color:var(--hot-toast-close-btn-background-color, transparent);background-image:var(--hot-toast-close-btn-background-image, url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23000'%3e%3cpath d='M.293.293a1 1 0 011.414 0L8 6.586 14.293.293a1 1 0 111.414 1.414L9.414 8l6.293 6.293a1 1 0 01-1.414 1.414L8 9.414l-6.293 6.293a1 1 0 01-1.414-1.414L6.586 8 .293 1.707a1 1 0 010-1.414z'/%3e%3c/svg%3e"));background-position:var(--hot-toast-close-btn-background-position, center);background-repeat:var(--hot-toast-close-btn-background-repeat, no-repeat);background-size:var(--hot-toast-close-btn-background-size, .75em);border:var(--hot-toast-close-btn-border, 0);border-radius:var(--hot-toast-close-btn-border-radius, .25rem);box-sizing:var(--hot-toast-close-btn-box-sizing, content-box);display:var(--hot-toast-close-btn-display, flex);height:var(--hot-toast-close-btn-height, .8em);margin-top:var(--hot-toast-close-btn-margin-top, .25em);opacity:var(--hot-toast-close-btn-opacity, .5);padding:var(--hot-toast-close-btn-padding, .25em);width:var(--hot-toast-close-btn-width, .8em)}.hot-toast-close-btn:focus{box-shadow:var(--hot-toast-close-btn-box-shadow, 0 0 0 .125rem rgba(13, 110, 253, .25));outline:var(--hot-toast-close-btn-outline, none)}.hot-toast-close-btn:hover,.hot-toast-close-btn:focus{opacity:var(--hot-toast-close-btn-opacity, .75)}.hot-toast-group-btn{align-self:var(--hot-toast-group-btn-align-self, flex-start);background-color:var(--hot-toast-group-btn-background-color, transparent);background-image:var(--hot-toast-group-btn-background-image, url("data:image/svg+xml,%3Csvg width='24' height='24' viewBox='0 0 24 24' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M7.75745 10.5858L9.17166 9.17154L12.0001 12L14.8285 9.17157L16.2427 10.5858L12.0001 14.8284L7.75745 10.5858Z' fill='currentColor' /%3E%3Cpath fill-rule='evenodd' clip-rule='evenodd' d='M1 12C1 5.92487 5.92487 1 12 1C18.0751 1 23 5.92487 23 12C23 18.0751 18.0751 23 12 23C5.92487 23 1 18.0751 1 12ZM12 21C7.02944 21 3 16.9706 3 12C3 7.02944 7.02944 3 12 3C16.9706 3 21 7.02944 21 12C21 16.9706 16.9706 21 12 21Z' fill='currentColor' /%3E%3C/svg%3E"));background-position:var(--hot-toast-group-btn-background-position, center);background-repeat:var(--hot-toast-group-btn-background-repeat, no-repeat);background-size:var(--hot-toast-group-btn-background-size, 1.3em);border:var(--hot-toast-group-btn-border, 0);border-radius:var(--hot-toast-group-btn-border-radius, .25rem);box-sizing:var(--hot-toast-group-btn-box-sizing, content-box);display:var(--hot-toast-group-btn-display, flex);height:var(--hot-toast-group-btn-height, .8em);margin-top:var(--hot-toast-group-btn-margin-top, .25em);opacity:var(--hot-toast-group-btn-opacity, .5);padding:var(--hot-toast-group-btn-padding, .25em);width:var(--hot-toast-group-btn-width, .8em);will-change:var(--hot-toast-group-btn-will-change, transform);transition:var(--hot-toast-group-btn-transition, transform .23s cubic-bezier(.21, 1.02, .73, 1))}.hot-toast-group-btn:focus{box-shadow:var(--hot-toast-group-btn-box-shadow, 0 0 0 .125rem rgba(13, 110, 253, .25));outline:var(--hot-toast-group-btn-outline, none)}.hot-toast-group-btn:hover,.hot-toast-group-btn:focus{opacity:var(--hot-toast-group-btn-opacity, .75)}.expanded .hot-toast-group-btn{transform:rotate(var(--hot-toast-group-btn-expanded-rotate, 180deg))}.hot-toast-icon{align-self:var(--hot-toast-icon-align-self, flex-start);padding-top:var(--hot-toast-icon-padding-top, .25em)}.hot-toast-bar-base-wrapper{pointer-events:all}.hot-toast-bar-base-group{--hot-toast-shadow: none;background-color:var(--hot-toast-group-bg, #fff);margin:var(--hot-toast-margin, 16px);margin-top:calc(-1 * var(--hot-toast-margin, 16px));border-bottom-left-radius:var(--hot-toast-border-radius, 4px);border-bottom-right-radius:var(--hot-toast-border-radius, 4px);height:0;overflow:hidden;transition-property:height;transition-duration:.23s;transition-timing-function:ease-in-out;position:relative;box-shadow:var(--hot-toast-group-after-shadow, 0 3px 10px rgba(0, 0, 0, .1), 0 3px 3px rgba(0, 0, 0, .05))}.expanded .hot-toast-bar-base-group{height:var(--hot-toast-group-height)}.hot-toast-bar-base-group .hot-toast-bar-base{margin:0}@keyframes hotToastEnterAnimationNegative{0%{opacity:.5;transform:translate3d(0,-80px,0) scale(.6)}to{opacity:1;transform:translateZ(0) scale(1)}}@keyframes hotToastEnterAnimationPositive{0%{opacity:.5;transform:translate3d(0,80px,0) scale(.6)}to{opacity:1;transform:translateZ(0) scale(1)}}@keyframes hotToastExitAnimationPositive{0%{opacity:1;transform:translateZ(-1px) scale(1)}to{opacity:0;transform:translate3d(0,var(--hot-toast-exit-positive-y, 130px),-1px) scale(.5)}}@keyframes hotToastExitAnimationNegative{0%{opacity:1;transform:translateZ(-1px) scale(1)}to{opacity:0;transform:translate3d(0,var(--hot-toast-exit-negative-y, -130px),-1px) scale(.5)}}@keyframes hotToastEnterSoftAnimationNegative{0%{opacity:.5;transform:translate3d(0,-14px,0)}to{opacity:1;transform:translateZ(0)}}@keyframes hotToastEnterSoftAnimationPositive{0%{opacity:.5;transform:translate3d(0,14px,0)}to{opacity:1;transform:translateZ(0)}}@keyframes hotToastExitSoftAnimationPositive{0%{opacity:1;transform:translateZ(-1px)}to{opacity:0;transform:translate3d(0,14px,-1px)}}@keyframes hotToastExitSoftAnimationNegative{0%{opacity:1;transform:translateZ(-1px)}to{opacity:0;transform:translate3d(0,-14px,-1px)}}.hot-toast-indicator-wrapper{align-items:var(--hot-toast-indicator-wrapper-align-items, center);display:var(--hot-toast-indicator-wrapper-display, flex);justify-content:var(--hot-toast-indicator-wrapper-justify-content, center);min-height:var(--hot-toast-indicator-wrapper-min-height, 20px);min-width:var(--hot-toast-indicator-wrapper-min-width, 20px);position:var(--hot-toast-indicator-wrapper-position, relative)}.hot-toast-status-wrapper{position:var(--hot-toast-status-wrapper-position, absolute)}@keyframes animate-info-background{0%{opacity:0;transform:scale(0)}to{opacity:1;transform:scale(1)}}@keyframes animate-info-line{0%{height:0;opacity:0}40%{height:4.8px;opacity:1}to{height:8px;opacity:1}}.hot-toast-info-icon{animation:var(--hot-toast-info-icon-animation, animate-info-background .3s cubic-bezier(.175, .885, .32, 1.275) forwards);animation-delay:var(--hot-toast-info-icon-animation-delay, .1s);background-color:var(--hot-toast-info-icon-background-color, var(--info-primary, #0d6efd));border-radius:var(--hot-toast-info-icon-border-radius, 50%);display:var(--hot-toast-info-icon-display, block);height:var(--hot-toast-info-icon-height, 20px);opacity:var(--hot-toast-info-icon-opacity, 0);position:var(--hot-toast-info-icon-position, relative);transform:var(--hot-toast-info-icon-transform, scale(0));width:var(--hot-toast-info-icon-width, 20px)}.hot-toast-info-icon:after,.hot-toast-info-icon:before{background-color:var(--hot-toast-info-icon-after-before-background-color, var(--info-secondary, #fff));border-radius:var(--hot-toast-info-icon-after-before-border-radius, 3px);box-sizing:var(--hot-toast-info-icon-after-before-box-sizing, border-box);content:var(--hot-toast-info-icon-after-before-content, "");display:var(--hot-toast-info-icon-after-before-display, block);left:var(--hot-toast-info-icon-after-before-left, 8.5px);position:var(--hot-toast-info-icon-after-before-position, absolute);width:var(--hot-toast-info-icon-after-before-width, 2.5px)}.hot-toast-info-icon:after{animation:var(--hot-toast-info-icon-after-animation, animate-info-line .2s ease-out forwards);animation-delay:var(--hot-toast-info-icon-after-animation-delay, .2s);height:var(--hot-toast-info-icon-after-height, 0);opacity:var(--hot-toast-info-icon-after-opacity, 0);top:var(--hot-toast-info-icon-after-bottom, 8px)}.hot-toast-info-icon:before{height:var(--hot-toast-info-icon-before-height, 2px);top:var(--hot-toast-info-icon-before-top, 4px)}@keyframes hotToastRotate{0%{transform:rotate(0)}to{transform:rotate(360deg)}}.hot-toast-loader-icon{animation:var(--hot-toast-loader-icon-animation, hotToastRotate 1s linear infinite);border:var(--hot-toast-loader-icon-border, 2px solid);border-bottom-color:var(--hot-toast-loader-icon-border-color, #e0e0e0);border-left-color:var(--hot-toast-loader-icon-border-color, #e0e0e0);border-radius:var(--hot-toast-loader-icon-border-radius, 100%);border-right-color:var(--hot-toast-loader-icon-border-right-color, #616161);border-top-color:var(--hot-toast-loader-icon-border-color, #e0e0e0);box-sizing:var(--hot-toast-loader-icon-box-sizing, border-box);height:var(--hot-toast-loader-icon-height, 18px);padding-top:var(--hot-toast-loader-icon-padding-top, 2px);width:var(--hot-toast-loader-icon-width, 18px)}@media (prefers-reduced-motion: reduce){.hot-toast-loader-icon{animation-duration:var(--hot-toast-loader-icon-reduced-motion-animation-duration, 5s)}}@keyframes animate-warn-background{0%{opacity:0;transform:scale(0)}to{opacity:1;transform:scale(1)}}@keyframes animate-warn-line{0%{height:0;opacity:0}40%{height:4.8px;opacity:1}to{height:8px;opacity:1}}.hot-toast-warning-icon{animation:var(--hot-toast-warning-icon-animation, animate-warn-background .3s cubic-bezier(.175, .885, .32, 1.275) forwards);animation-delay:var(--hot-toast-warning-icon-animation-delay, .1s);background-color:var(--hot-toast-warning-icon-background-color, var(--warn-primary, #ffab00));border-radius:var(--hot-toast-warning-icon-border-radius, 50%);display:var(--hot-toast-warning-icon-display, block);height:var(--hot-toast-warning-icon-height, 20px);opacity:var(--hot-toast-warning-icon-opacity, 0);position:var(--hot-toast-warning-icon-position, relative);transform:var(--hot-toast-warning-icon-transform, scale(0));width:var(--hot-toast-warning-icon-width, 20px)}.hot-toast-warning-icon:after,.hot-toast-warning-icon:before{background-color:var(--hot-toast-warning-icon-after-before-background-color, var(--warn-secondary, #fff));border-radius:var(--hot-toast-warning-icon-after-before-border-radius, 3px);box-sizing:var(--hot-toast-warning-icon-after-before-box-sizing, border-box);content:var(--hot-toast-warning-icon-after-before-content, "");display:var(--hot-toast-warning-icon-after-before-display, block);left:var(--hot-toast-warning-icon-after-before-left, 8.5px);position:var(--hot-toast-warning-icon-after-before-position, absolute);width:var(--hot-toast-warning-icon-after-before-width, 2.5px)}.hot-toast-warning-icon:after{animation:var(--hot-toast-warning-icon-after-animation, animate-warn-line .2s ease-out forwards);animation-delay:var(--hot-toast-warning-icon-after-animation-delay, .2s);height:var(--hot-toast-warning-icon-after-height, 0);opacity:var(--hot-toast-warning-icon-after-opacity, 0);top:var(--hot-toast-warning-icon-after-top, 4px)}.hot-toast-warning-icon:before{bottom:var(--hot-toast-warning-icon-before-bottom, 4px);height:var(--hot-toast-warning-icon-before-height, 2px)}.hot-toast-theme-toast{--hot-toast-padding: 6px 10px;--hot-toast-border-radius: 8px;--hot-toast-line: 1.25;--hot-toast-message-margin: 4px 8px;--hot-toast-icon-padding-top: 4px;--hot-toast-close-btn-width: 12px;--hot-toast-close-btn-height: 12px;--hot-toast-close-btn-padding: 4px;--hot-toast-close-btn-margin-top: 4px}formly-wrapper-mat-form-field .mat-mdc-form-field{width:100%}mat-card{margin-bottom:var(--gutter)}mat-card-header+mat-card-content{margin-top:var(--gutter)}.form-field-full .mat-mdc-form-field{width:100%} From a07aed5c29a83f73e2c27c6bbe1670d33472671d Mon Sep 17 00:00:00 2001 From: workcontrolgit Date: Sun, 5 Apr 2026 11:32:40 +0000 Subject: [PATCH 3/8] =?UTF-8?q?Deploying=20to=20gh-pages=20from=20@=20work?= =?UTF-8?q?controlgit/AngularNetTutorial@b0a019c29bdf1f5c3e89c8d05f563cc9b?= =?UTF-8?q?02b2fc3=20=F0=9F=9A=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- 404.html | 2 +- index.html | 2 +- main-DM47CGWN.js => main-5MG4PVJO.js | 236 +++++++++++++-------------- 3 files changed, 120 insertions(+), 120 deletions(-) rename main-DM47CGWN.js => main-5MG4PVJO.js (83%) diff --git a/404.html b/404.html index c8c569d..785a4a9 100644 --- a/404.html +++ b/404.html @@ -76,5 +76,5 @@

LOADING

- + diff --git a/index.html b/index.html index c8c569d..785a4a9 100644 --- a/index.html +++ b/index.html @@ -76,5 +76,5 @@

LOADING

- + diff --git a/main-DM47CGWN.js b/main-5MG4PVJO.js similarity index 83% rename from main-DM47CGWN.js rename to main-5MG4PVJO.js index 8011f4e..ed1d22b 100644 --- a/main-DM47CGWN.js +++ b/main-5MG4PVJO.js @@ -1,143 +1,143 @@ -var w6=Object.defineProperty,D6=Object.defineProperties;var E6=Object.getOwnPropertyDescriptors;var E_=Object.getOwnPropertySymbols;var mA=Object.prototype.hasOwnProperty,hA=Object.prototype.propertyIsEnumerable;var uA=(t,n,e)=>n in t?w6(t,n,{enumerable:!0,configurable:!0,writable:!0,value:e}):t[n]=e,M=(t,n)=>{for(var e in n||={})mA.call(n,e)&&uA(t,e,n[e]);if(E_)for(var e of E_(n))hA.call(n,e)&&uA(t,e,n[e]);return t},De=(t,n)=>D6(t,E6(n));var pA=t=>typeof t=="symbol"?t:t+"",ed=(t,n)=>{var e={};for(var i in t)mA.call(t,i)&&n.indexOf(i)<0&&(e[i]=t[i]);if(t!=null&&E_)for(var i of E_(t))n.indexOf(i)<0&&hA.call(t,i)&&(e[i]=t[i]);return e};var fn=(t,n,e)=>new Promise((i,r)=>{var o=l=>{try{s(e.next(l))}catch(c){r(c)}},a=l=>{try{s(e.throw(l))}catch(c){r(c)}},s=l=>l.done?i(l.value):Promise.resolve(l.value).then(o,a);s((e=e.apply(t,n)).next())});var Mw;function M_(){return Mw}function Ua(t){let n=Mw;return Mw=t,n}var fA=Symbol("NotFound");function Fu(t){return t===fA||t?.name==="\u0275NotFound"}var cr=null,k_=!1,kw=1,M6=null,ln=Symbol("SIGNAL");function Xe(t){let n=cr;return cr=t,n}function A_(){return cr}var td={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 kl(t){if(k_)throw new Error("");if(cr===null)return;cr.consumerOnSignalRead(t);let n=cr.producersTail;if(n!==void 0&&n.producer===t)return;let e,i=cr.recomputing;if(i&&(e=n!==void 0?n.nextProducer:cr.producers,e!==void 0&&e.producer===t)){cr.producersTail=e,e.lastReadVersion=t.version;return}let r=t.consumersTail;if(r!==void 0&&r.consumer===cr&&(!i||S6(r,cr)))return;let o=Nu(cr),a={producer:t,consumer:cr,nextProducer:e,prevConsumer:r,lastReadVersion:t.version,nextConsumer:void 0};cr.producersTail=a,n!==void 0?n.nextProducer=a:cr.producers=a,o&&vA(t,a)}function gA(){kw++}function O_(t){if(!(Nu(t)&&!t.dirty)&&!(!t.dirty&&t.lastCleanEpoch===kw)){if(!t.producerMustRecompute(t)&&!nd(t)){I_(t);return}t.producerRecomputeValue(t),I_(t)}}function Sw(t){if(t.consumers===void 0)return;let n=k_;k_=!0;try{for(let e=t.consumers;e!==void 0;e=e.nextConsumer){let i=e.consumer;i.dirty||k6(i)}}finally{k_=n}}function Tw(){return cr?.consumerAllowSignalWrites!==!1}function k6(t){t.dirty=!0,Sw(t),t.consumerMarkedDirty?.(t)}function I_(t){t.dirty=!1,t.lastCleanEpoch=kw}function Sl(t){return t&&_A(t),Xe(t)}function _A(t){t.producersTail=void 0,t.recomputing=!0}function id(t,n){Xe(n),t&&bA(t)}function bA(t){t.recomputing=!1;let n=t.producersTail,e=n!==void 0?n.nextProducer:t.producers;if(e!==void 0){if(Nu(t))do e=Iw(e);while(e!==void 0);n!==void 0?n.nextProducer=void 0:t.producers=void 0}}function nd(t){for(let n=t.producers;n!==void 0;n=n.nextProducer){let e=n.producer,i=n.lastReadVersion;if(i!==e.version||(O_(e),i!==e.version))return!0}return!1}function Tl(t){if(Nu(t)){let n=t.producers;for(;n!==void 0;)n=Iw(n)}t.producers=void 0,t.producersTail=void 0,t.consumers=void 0,t.consumersTail=void 0}function vA(t,n){let e=t.consumersTail,i=Nu(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,!i)for(let r=t.producers;r!==void 0;r=r.nextProducer)vA(r.producer,r)}function Iw(t){let n=t.producer,e=t.nextProducer,i=t.nextConsumer,r=t.prevConsumer;if(t.nextConsumer=void 0,t.prevConsumer=void 0,i!==void 0?i.prevConsumer=r:n.consumersTail=r,r!==void 0)r.nextConsumer=i;else if(n.consumers=i,!Nu(n)){let o=n.producers;for(;o!==void 0;)o=Iw(o)}return e}function Nu(t){return t.consumerIsAlwaysLive||t.consumers!==void 0}function R_(t){M6?.(t)}function S6(t,n){let e=n.producersTail;if(e!==void 0){let i=n.producers;do{if(i===t)return!0;if(i===e)break;i=i.nextProducer}while(i!==void 0)}return!1}function P_(t,n){return Object.is(t,n)}function pp(t,n){let e=Object.create(T6);e.computation=t,n!==void 0&&(e.equal=n);let i=()=>{if(O_(e),kl(e),e.value===hp)throw e.error;return e.value};return i[ln]=e,R_(e),i}var S_=Symbol("UNSET"),T_=Symbol("COMPUTING"),hp=Symbol("ERRORED"),T6=De(M({},td),{value:S_,dirty:!0,error:null,equal:P_,kind:"computed",producerMustRecompute(t){return t.value===S_||t.value===T_},producerRecomputeValue(t){if(t.value===T_)throw new Error("");let n=t.value;t.value=T_;let e=Sl(t),i,r=!1;try{i=t.computation(),Xe(null),r=n!==S_&&n!==hp&&i!==hp&&t.equal(n,i)}catch(o){i=hp,t.error=o}finally{id(t,e)}if(r){t.value=n;return}t.value=i,t.version++}});function I6(){throw new Error}var yA=I6;function xA(t){yA(t)}function Aw(t){yA=t}var A6=null;function Ow(t,n){let e=Object.create(fp);e.value=t,n!==void 0&&(e.equal=n);let i=()=>CA(e);return i[ln]=e,R_(e),[i,a=>rd(e,a),a=>Rw(e,a)]}function CA(t){return kl(t),t.value}function rd(t,n){Tw()||xA(t),t.equal(t.value,n)||(t.value=n,O6(t))}function Rw(t,n){Tw()||xA(t),rd(t,n(t.value))}var fp=De(M({},td),{equal:P_,value:void 0,kind:"signal"});function O6(t){t.version++,gA(),Sw(t),A6?.(t)}function Ke(t){return typeof t=="function"}function Il(t){let e=t(i=>{Error.call(i),i.stack=new Error().stack});return e.prototype=Object.create(Error.prototype),e.prototype.constructor=e,e}var F_=Il(t=>function(e){t(this),this.message=e?`${e.length} errors occurred during unsubscription: +var D6=Object.defineProperty,E6=Object.defineProperties;var M6=Object.getOwnPropertyDescriptors;var E_=Object.getOwnPropertySymbols;var hA=Object.prototype.hasOwnProperty,pA=Object.prototype.propertyIsEnumerable;var mA=(t,n,e)=>n in t?D6(t,n,{enumerable:!0,configurable:!0,writable:!0,value:e}):t[n]=e,M=(t,n)=>{for(var e in n||={})hA.call(n,e)&&mA(t,e,n[e]);if(E_)for(var e of E_(n))pA.call(n,e)&&mA(t,e,n[e]);return t},De=(t,n)=>E6(t,M6(n));var fA=t=>typeof t=="symbol"?t:t+"",ed=(t,n)=>{var e={};for(var i in t)hA.call(t,i)&&n.indexOf(i)<0&&(e[i]=t[i]);if(t!=null&&E_)for(var i of E_(t))n.indexOf(i)<0&&pA.call(t,i)&&(e[i]=t[i]);return e};var fn=(t,n,e)=>new Promise((i,r)=>{var o=l=>{try{s(e.next(l))}catch(c){r(c)}},a=l=>{try{s(e.throw(l))}catch(c){r(c)}},s=l=>l.done?i(l.value):Promise.resolve(l.value).then(o,a);s((e=e.apply(t,n)).next())});var Mw;function M_(){return Mw}function Ua(t){let n=Mw;return Mw=t,n}var gA=Symbol("NotFound");function Fu(t){return t===gA||t?.name==="\u0275NotFound"}var cr=null,k_=!1,kw=1,k6=null,ln=Symbol("SIGNAL");function Xe(t){let n=cr;return cr=t,n}function A_(){return cr}var td={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 kl(t){if(k_)throw new Error("");if(cr===null)return;cr.consumerOnSignalRead(t);let n=cr.producersTail;if(n!==void 0&&n.producer===t)return;let e,i=cr.recomputing;if(i&&(e=n!==void 0?n.nextProducer:cr.producers,e!==void 0&&e.producer===t)){cr.producersTail=e,e.lastReadVersion=t.version;return}let r=t.consumersTail;if(r!==void 0&&r.consumer===cr&&(!i||T6(r,cr)))return;let o=Nu(cr),a={producer:t,consumer:cr,nextProducer:e,prevConsumer:r,lastReadVersion:t.version,nextConsumer:void 0};cr.producersTail=a,n!==void 0?n.nextProducer=a:cr.producers=a,o&&yA(t,a)}function _A(){kw++}function O_(t){if(!(Nu(t)&&!t.dirty)&&!(!t.dirty&&t.lastCleanEpoch===kw)){if(!t.producerMustRecompute(t)&&!nd(t)){I_(t);return}t.producerRecomputeValue(t),I_(t)}}function Sw(t){if(t.consumers===void 0)return;let n=k_;k_=!0;try{for(let e=t.consumers;e!==void 0;e=e.nextConsumer){let i=e.consumer;i.dirty||S6(i)}}finally{k_=n}}function Tw(){return cr?.consumerAllowSignalWrites!==!1}function S6(t){t.dirty=!0,Sw(t),t.consumerMarkedDirty?.(t)}function I_(t){t.dirty=!1,t.lastCleanEpoch=kw}function Sl(t){return t&&bA(t),Xe(t)}function bA(t){t.producersTail=void 0,t.recomputing=!0}function id(t,n){Xe(n),t&&vA(t)}function vA(t){t.recomputing=!1;let n=t.producersTail,e=n!==void 0?n.nextProducer:t.producers;if(e!==void 0){if(Nu(t))do e=Iw(e);while(e!==void 0);n!==void 0?n.nextProducer=void 0:t.producers=void 0}}function nd(t){for(let n=t.producers;n!==void 0;n=n.nextProducer){let e=n.producer,i=n.lastReadVersion;if(i!==e.version||(O_(e),i!==e.version))return!0}return!1}function Tl(t){if(Nu(t)){let n=t.producers;for(;n!==void 0;)n=Iw(n)}t.producers=void 0,t.producersTail=void 0,t.consumers=void 0,t.consumersTail=void 0}function yA(t,n){let e=t.consumersTail,i=Nu(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,!i)for(let r=t.producers;r!==void 0;r=r.nextProducer)yA(r.producer,r)}function Iw(t){let n=t.producer,e=t.nextProducer,i=t.nextConsumer,r=t.prevConsumer;if(t.nextConsumer=void 0,t.prevConsumer=void 0,i!==void 0?i.prevConsumer=r:n.consumersTail=r,r!==void 0)r.nextConsumer=i;else if(n.consumers=i,!Nu(n)){let o=n.producers;for(;o!==void 0;)o=Iw(o)}return e}function Nu(t){return t.consumerIsAlwaysLive||t.consumers!==void 0}function R_(t){k6?.(t)}function T6(t,n){let e=n.producersTail;if(e!==void 0){let i=n.producers;do{if(i===t)return!0;if(i===e)break;i=i.nextProducer}while(i!==void 0)}return!1}function P_(t,n){return Object.is(t,n)}function pp(t,n){let e=Object.create(I6);e.computation=t,n!==void 0&&(e.equal=n);let i=()=>{if(O_(e),kl(e),e.value===hp)throw e.error;return e.value};return i[ln]=e,R_(e),i}var S_=Symbol("UNSET"),T_=Symbol("COMPUTING"),hp=Symbol("ERRORED"),I6=De(M({},td),{value:S_,dirty:!0,error:null,equal:P_,kind:"computed",producerMustRecompute(t){return t.value===S_||t.value===T_},producerRecomputeValue(t){if(t.value===T_)throw new Error("");let n=t.value;t.value=T_;let e=Sl(t),i,r=!1;try{i=t.computation(),Xe(null),r=n!==S_&&n!==hp&&i!==hp&&t.equal(n,i)}catch(o){i=hp,t.error=o}finally{id(t,e)}if(r){t.value=n;return}t.value=i,t.version++}});function A6(){throw new Error}var xA=A6;function CA(t){xA(t)}function Aw(t){xA=t}var O6=null;function Ow(t,n){let e=Object.create(fp);e.value=t,n!==void 0&&(e.equal=n);let i=()=>wA(e);return i[ln]=e,R_(e),[i,a=>rd(e,a),a=>Rw(e,a)]}function wA(t){return kl(t),t.value}function rd(t,n){Tw()||CA(t),t.equal(t.value,n)||(t.value=n,R6(t))}function Rw(t,n){Tw()||CA(t),rd(t,n(t.value))}var fp=De(M({},td),{equal:P_,value:void 0,kind:"signal"});function R6(t){t.version++,_A(),Sw(t),O6?.(t)}function Ke(t){return typeof t=="function"}function Il(t){let e=t(i=>{Error.call(i),i.stack=new Error().stack});return e.prototype=Object.create(Error.prototype),e.prototype.constructor=e,e}var F_=Il(t=>function(e){t(this),this.message=e?`${e.length} errors occurred during unsubscription: ${e.map((i,r)=>`${r+1}) ${i.toString()}`).join(` - `)}`:"",this.name="UnsubscriptionError",this.errors=e});function od(t,n){if(t){let e=t.indexOf(n);0<=e&&t.splice(e,1)}}var ke=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 o of e)o.remove(this);else e.remove(this);let{initialTeardown:i}=this;if(Ke(i))try{i()}catch(o){n=o instanceof F_?o.errors:[o]}let{_finalizers:r}=this;if(r){this._finalizers=null;for(let o of r)try{wA(o)}catch(a){n=n??[],a instanceof F_?n=[...n,...a.errors]:n.push(a)}}if(n)throw new F_(n)}}add(n){var e;if(n&&n!==this)if(this.closed)wA(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)&&od(e,n)}remove(n){let{_finalizers:e}=this;e&&od(e,n),n instanceof t&&n._removeParent(this)}};ke.EMPTY=(()=>{let t=new ke;return t.closed=!0,t})();var Pw=ke.EMPTY;function N_(t){return t instanceof ke||t&&"closed"in t&&Ke(t.remove)&&Ke(t.add)&&Ke(t.unsubscribe)}function wA(t){Ke(t)?t():t.unsubscribe()}var ha={onUnhandledError:null,onStoppedNotification:null,Promise:void 0,useDeprecatedSynchronousErrorHandling:!1,useDeprecatedNextContext:!1};var Lu={setTimeout(t,n,...e){let{delegate:i}=Lu;return i?.setTimeout?i.setTimeout(t,n,...e):setTimeout(t,n,...e)},clearTimeout(t){let{delegate:n}=Lu;return(n?.clearTimeout||clearTimeout)(t)},delegate:void 0};function L_(t){Lu.setTimeout(()=>{let{onUnhandledError:n}=ha;if(n)n(t);else throw t})}function ad(){}var DA=Fw("C",void 0,void 0);function EA(t){return Fw("E",void 0,t)}function MA(t){return Fw("N",t,void 0)}function Fw(t,n,e){return{kind:t,value:n,error:e}}var sd=null;function Vu(t){if(ha.useDeprecatedSynchronousErrorHandling){let n=!sd;if(n&&(sd={errorThrown:!1,error:null}),t(),n){let{errorThrown:e,error:i}=sd;if(sd=null,e)throw i}}else t()}function kA(t){ha.useDeprecatedSynchronousErrorHandling&&sd&&(sd.errorThrown=!0,sd.error=t)}var ld=class extends ke{constructor(n){super(),this.isStopped=!1,n?(this.destination=n,N_(n)&&n.add(this)):this.destination=F6}static create(n,e,i){return new Bs(n,e,i)}next(n){this.isStopped?Lw(MA(n),this):this._next(n)}error(n){this.isStopped?Lw(EA(n),this):(this.isStopped=!0,this._error(n))}complete(){this.isStopped?Lw(DA,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()}}},R6=Function.prototype.bind;function Nw(t,n){return R6.call(t,n)}var Vw=class{constructor(n){this.partialObserver=n}next(n){let{partialObserver:e}=this;if(e.next)try{e.next(n)}catch(i){V_(i)}}error(n){let{partialObserver:e}=this;if(e.error)try{e.error(n)}catch(i){V_(i)}else V_(n)}complete(){let{partialObserver:n}=this;if(n.complete)try{n.complete()}catch(e){V_(e)}}},Bs=class extends ld{constructor(n,e,i){super();let r;if(Ke(n)||!n)r={next:n??void 0,error:e??void 0,complete:i??void 0};else{let o;this&&ha.useDeprecatedNextContext?(o=Object.create(n),o.unsubscribe=()=>this.unsubscribe(),r={next:n.next&&Nw(n.next,o),error:n.error&&Nw(n.error,o),complete:n.complete&&Nw(n.complete,o)}):r=n}this.destination=new Vw(r)}};function V_(t){ha.useDeprecatedSynchronousErrorHandling?kA(t):L_(t)}function P6(t){throw t}function Lw(t,n){let{onStoppedNotification:e}=ha;e&&Lu.setTimeout(()=>e(t,n))}var F6={closed:!0,next:ad,error:P6,complete:ad};var Bu=typeof Symbol=="function"&&Symbol.observable||"@@observable";function Mr(t){return t}function Bw(...t){return jw(t)}function jw(t){return t.length===0?Mr:t.length===1?t[0]:function(e){return t.reduce((i,r)=>r(i),e)}}var Fe=(()=>{class t{constructor(e){e&&(this._subscribe=e)}lift(e){let i=new t;return i.source=this,i.operator=e,i}subscribe(e,i,r){let o=L6(e)?e:new Bs(e,i,r);return Vu(()=>{let{operator:a,source:s}=this;o.add(a?a.call(o,s):s?this._subscribe(o):this._trySubscribe(o))}),o}_trySubscribe(e){try{return this._subscribe(e)}catch(i){e.error(i)}}forEach(e,i){return i=SA(i),new i((r,o)=>{let a=new Bs({next:s=>{try{e(s)}catch(l){o(l),a.unsubscribe()}},error:o,complete:r});this.subscribe(a)})}_subscribe(e){var i;return(i=this.source)===null||i===void 0?void 0:i.subscribe(e)}[Bu](){return this}pipe(...e){return jw(e)(this)}toPromise(e){return e=SA(e),new e((i,r)=>{let o;this.subscribe(a=>o=a,a=>r(a),()=>i(o))})}}return t.create=n=>new t(n),t})();function SA(t){var n;return(n=t??ha.Promise)!==null&&n!==void 0?n:Promise}function N6(t){return t&&Ke(t.next)&&Ke(t.error)&&Ke(t.complete)}function L6(t){return t&&t instanceof ld||N6(t)&&N_(t)}function Hw(t){return Ke(t?.lift)}function Qe(t){return n=>{if(Hw(n))return n.lift(function(e){try{return t(e,this)}catch(i){this.error(i)}});throw new TypeError("Unable to lift unknown Observable type")}}function Ue(t,n,e,i,r){return new zw(t,n,e,i,r)}var zw=class extends ld{constructor(n,e,i,r,o,a){super(n),this.onFinalize=o,this.shouldUnsubscribe=a,this._next=e?function(s){try{e(s)}catch(l){n.error(l)}}:super._next,this._error=r?function(s){try{r(s)}catch(l){n.error(l)}finally{this.unsubscribe()}}:super._error,this._complete=i?function(){try{i()}catch(s){n.error(s)}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 ju(){return Qe((t,n)=>{let e=null;t._refCount++;let i=Ue(n,void 0,void 0,void 0,()=>{if(!t||t._refCount<=0||0<--t._refCount){e=null;return}let r=t._connection,o=e;e=null,r&&(!o||r===o)&&r.unsubscribe(),n.unsubscribe()});t.subscribe(i),i.closed||(e=t.connect())})}var Al=class extends Fe{constructor(n,e){super(),this.source=n,this.subjectFactory=e,this._subject=null,this._refCount=0,this._connection=null,Hw(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 ke;let e=this.getSubject();n.add(this.source.subscribe(Ue(e,void 0,()=>{this._teardown(),e.complete()},i=>{this._teardown(),e.error(i)},()=>this._teardown()))),n.closed&&(this._connection=null,n=ke.EMPTY)}return n}refCount(){return ju()(this)}};var Hu={schedule(t){let n=requestAnimationFrame,e=cancelAnimationFrame,{delegate:i}=Hu;i&&(n=i.requestAnimationFrame,e=i.cancelAnimationFrame);let r=n(o=>{e=void 0,t(o)});return new ke(()=>e?.(r))},requestAnimationFrame(...t){let{delegate:n}=Hu;return(n?.requestAnimationFrame||requestAnimationFrame)(...t)},cancelAnimationFrame(...t){let{delegate:n}=Hu;return(n?.cancelAnimationFrame||cancelAnimationFrame)(...t)},delegate:void 0};var TA=Il(t=>function(){t(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"});var z=(()=>{class t extends Fe{constructor(){super(),this.closed=!1,this.currentObservers=null,this.observers=[],this.isStopped=!1,this.hasError=!1,this.thrownError=null}lift(e){let i=new B_(this,this);return i.operator=e,i}_throwIfClosed(){if(this.closed)throw new TA}next(e){Vu(()=>{if(this._throwIfClosed(),!this.isStopped){this.currentObservers||(this.currentObservers=Array.from(this.observers));for(let i of this.currentObservers)i.next(e)}})}error(e){Vu(()=>{if(this._throwIfClosed(),!this.isStopped){this.hasError=this.isStopped=!0,this.thrownError=e;let{observers:i}=this;for(;i.length;)i.shift().error(e)}})}complete(){Vu(()=>{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:i,isStopped:r,observers:o}=this;return i||r?Pw:(this.currentObservers=null,o.push(e),new ke(()=>{this.currentObservers=null,od(o,e)}))}_checkFinalizedStatuses(e){let{hasError:i,thrownError:r,isStopped:o}=this;i?e.error(r):o&&e.complete()}asObservable(){let e=new Fe;return e.source=this,e}}return t.create=(n,e)=>new B_(n,e),t})(),B_=class extends z{constructor(n,e){super(),this.destination=n,this.source=e}next(n){var e,i;(i=(e=this.destination)===null||e===void 0?void 0:e.next)===null||i===void 0||i.call(e,n)}error(n){var e,i;(i=(e=this.destination)===null||e===void 0?void 0:e.error)===null||i===void 0||i.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,i;return(i=(e=this.source)===null||e===void 0?void 0:e.subscribe(n))!==null&&i!==void 0?i:Pw}};var tt=class extends z{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:i}=this;if(n)throw e;return this._throwIfClosed(),i}next(n){super.next(this._value=n)}};var gp={now(){return(gp.delegate||Date).now()},delegate:void 0};var $a=class extends z{constructor(n=1/0,e=1/0,i=gp){super(),this._bufferSize=n,this._windowTime=e,this._timestampProvider=i,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:i,_infiniteTimeWindow:r,_timestampProvider:o,_windowTime:a}=this;e||(i.push(n),!r&&i.push(o.now()+a)),this._trimBuffer(),super.next(n)}_subscribe(n){this._throwIfClosed(),this._trimBuffer();let e=this._innerSubscribe(n),{_infiniteTimeWindow:i,_buffer:r}=this,o=r.slice();for(let a=0;aIA(n)&&t()),n},clearImmediate(t){IA(t)}};var{setImmediate:B6,clearImmediate:j6}=AA,bp={setImmediate(...t){let{delegate:n}=bp;return(n?.setImmediate||B6)(...t)},clearImmediate(t){let{delegate:n}=bp;return(n?.clearImmediate||j6)(t)},delegate:void 0};var H_=class extends Ol{constructor(n,e){super(n,e),this.scheduler=n,this.work=e}requestAsyncId(n,e,i=0){return i!==null&&i>0?super.requestAsyncId(n,e,i):(n.actions.push(this),n._scheduled||(n._scheduled=bp.setImmediate(n.flush.bind(n,void 0))))}recycleAsyncId(n,e,i=0){var r;if(i!=null?i>0:this.delay>0)return super.recycleAsyncId(n,e,i);let{actions:o}=n;e!=null&&((r=o[o.length-1])===null||r===void 0?void 0:r.id)!==e&&(bp.clearImmediate(e),n._scheduled===e&&(n._scheduled=void 0))}};var zu=class t{constructor(n,e=t.now){this.schedulerActionCtor=n,this.now=e}schedule(n,e=0,i){return new this.schedulerActionCtor(this,n).schedule(i,e)}};zu.now=gp.now;var Rl=class extends zu{constructor(n,e=zu.now){super(n,e),this.actions=[],this._active=!1}flush(n){let{actions:e}=this;if(this._active){e.push(n);return}let i;this._active=!0;do if(i=n.execute(n.state,n.delay))break;while(n=e.shift());if(this._active=!1,i){for(;n=e.shift();)n.unsubscribe();throw i}}};var z_=class extends Rl{flush(n){this._active=!0;let e=this._scheduled;this._scheduled=void 0;let{actions:i}=this,r;n=n||i.shift();do if(r=n.execute(n.state,n.delay))break;while((n=i[0])&&n.id===e&&i.shift());if(this._active=!1,r){for(;(n=i[0])&&n.id===e&&i.shift();)n.unsubscribe();throw r}}};var U_=new z_(H_);var js=new Rl(Ol),OA=js;var $_=class extends Ol{constructor(n,e){super(n,e),this.scheduler=n,this.work=e}requestAsyncId(n,e,i=0){return i!==null&&i>0?super.requestAsyncId(n,e,i):(n.actions.push(this),n._scheduled||(n._scheduled=Hu.requestAnimationFrame(()=>n.flush(void 0))))}recycleAsyncId(n,e,i=0){var r;if(i!=null?i>0:this.delay>0)return super.recycleAsyncId(n,e,i);let{actions:o}=n;e!=null&&e===n._scheduled&&((r=o[o.length-1])===null||r===void 0?void 0:r.id)!==e&&(Hu.cancelAnimationFrame(e),n._scheduled=void 0)}};var W_=class extends Rl{flush(n){this._active=!0;let e;n?e=n.id:(e=this._scheduled,this._scheduled=void 0);let{actions:i}=this,r;n=n||i.shift();do if(r=n.execute(n.state,n.delay))break;while((n=i[0])&&n.id===e&&i.shift());if(this._active=!1,r){for(;(n=i[0])&&n.id===e&&i.shift();)n.unsubscribe();throw r}}};var G_=new W_($_);var Fi=new Fe(t=>t.complete());function q_(t){return t&&Ke(t.schedule)}function Ww(t){return t[t.length-1]}function Y_(t){return Ke(Ww(t))?t.pop():void 0}function Wa(t){return q_(Ww(t))?t.pop():void 0}function RA(t,n){return typeof Ww(t)=="number"?t.pop():n}function FA(t,n,e,i){function r(o){return o instanceof e?o:new e(function(a){a(o)})}return new(e||(e=Promise))(function(o,a){function s(d){try{c(i.next(d))}catch(m){a(m)}}function l(d){try{c(i.throw(d))}catch(m){a(m)}}function c(d){d.done?o(d.value):r(d.value).then(s,l)}c((i=i.apply(t,n||[])).next())})}function PA(t){var n=typeof Symbol=="function"&&Symbol.iterator,e=n&&t[n],i=0;if(e)return e.call(t);if(t&&typeof t.length=="number")return{next:function(){return t&&i>=t.length&&(t=void 0),{value:t&&t[i++],done:!t}}};throw new TypeError(n?"Object is not iterable.":"Symbol.iterator is not defined.")}function cd(t){return this instanceof cd?(this.v=t,this):new cd(t)}function NA(t,n,e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var i=e.apply(t,n||[]),r,o=[];return r=Object.create((typeof AsyncIterator=="function"?AsyncIterator:Object).prototype),s("next"),s("throw"),s("return",a),r[Symbol.asyncIterator]=function(){return this},r;function a(b){return function(v){return Promise.resolve(v).then(b,m)}}function s(b,v){i[b]&&(r[b]=function(w){return new Promise(function(x,D){o.push([b,w,x,D])>1||l(b,w)})},v&&(r[b]=v(r[b])))}function l(b,v){try{c(i[b](v))}catch(w){f(o[0][3],w)}}function c(b){b.value instanceof cd?Promise.resolve(b.value.v).then(d,m):f(o[0][2],b)}function d(b){l("next",b)}function m(b){l("throw",b)}function f(b,v){b(v),o.shift(),o.length&&l(o[0][0],o[0][1])}}function LA(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 PA=="function"?PA(t):t[Symbol.iterator](),e={},i("next"),i("throw"),i("return"),e[Symbol.asyncIterator]=function(){return this},e);function i(o){e[o]=t[o]&&function(a){return new Promise(function(s,l){a=t[o](a),r(s,l,a.done,a.value)})}}function r(o,a,s,l){Promise.resolve(l).then(function(c){o({value:c,done:s})},a)}}var Uu=t=>t&&typeof t.length=="number"&&typeof t!="function";function Q_(t){return Ke(t?.then)}function K_(t){return Ke(t[Bu])}function Z_(t){return Symbol.asyncIterator&&Ke(t?.[Symbol.asyncIterator])}function X_(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 H6(){return typeof Symbol!="function"||!Symbol.iterator?"@@iterator":Symbol.iterator}var J_=H6();function eb(t){return Ke(t?.[J_])}function tb(t){return NA(this,arguments,function*(){let e=t.getReader();try{for(;;){let{value:i,done:r}=yield cd(e.read());if(r)return yield cd(void 0);yield yield cd(i)}}finally{e.releaseLock()}})}function ib(t){return Ke(t?.getReader)}function At(t){if(t instanceof Fe)return t;if(t!=null){if(K_(t))return z6(t);if(Uu(t))return U6(t);if(Q_(t))return $6(t);if(Z_(t))return VA(t);if(eb(t))return W6(t);if(ib(t))return G6(t)}throw X_(t)}function z6(t){return new Fe(n=>{let e=t[Bu]();if(Ke(e.subscribe))return e.subscribe(n);throw new TypeError("Provided object does not correctly implement Symbol.observable")})}function U6(t){return new Fe(n=>{for(let e=0;e{t.then(e=>{n.closed||(n.next(e),n.complete())},e=>n.error(e)).then(null,L_)})}function W6(t){return new Fe(n=>{for(let e of t)if(n.next(e),n.closed)return;n.complete()})}function VA(t){return new Fe(n=>{q6(t,n).catch(e=>n.error(e))})}function G6(t){return VA(tb(t))}function q6(t,n){var e,i,r,o;return FA(this,void 0,void 0,function*(){try{for(e=LA(t);i=yield e.next(),!i.done;){let a=i.value;if(n.next(a),n.closed)return}}catch(a){r={error:a}}finally{try{i&&!i.done&&(o=e.return)&&(yield o.call(e))}finally{if(r)throw r.error}}n.complete()})}function dr(t,n,e,i=0,r=!1){let o=n.schedule(function(){e(),r?t.add(this.schedule(null,i)):this.unsubscribe()},i);if(t.add(o),!r)return o}function nb(t,n=0){return Qe((e,i)=>{e.subscribe(Ue(i,r=>dr(i,t,()=>i.next(r),n),()=>dr(i,t,()=>i.complete(),n),r=>dr(i,t,()=>i.error(r),n)))})}function rb(t,n=0){return Qe((e,i)=>{i.add(t.schedule(()=>e.subscribe(i),n))})}function BA(t,n){return At(t).pipe(rb(n),nb(n))}function jA(t,n){return At(t).pipe(rb(n),nb(n))}function HA(t,n){return new Fe(e=>{let i=0;return n.schedule(function(){i===t.length?e.complete():(e.next(t[i++]),e.closed||this.schedule())})})}function zA(t,n){return new Fe(e=>{let i;return dr(e,n,()=>{i=t[J_](),dr(e,n,()=>{let r,o;try{({value:r,done:o}=i.next())}catch(a){e.error(a);return}o?e.complete():e.next(r)},0,!0)}),()=>Ke(i?.return)&&i.return()})}function ob(t,n){if(!t)throw new Error("Iterable cannot be null");return new Fe(e=>{dr(e,n,()=>{let i=t[Symbol.asyncIterator]();dr(e,n,()=>{i.next().then(r=>{r.done?e.complete():e.next(r.value)})},0,!0)})})}function UA(t,n){return ob(tb(t),n)}function $A(t,n){if(t!=null){if(K_(t))return BA(t,n);if(Uu(t))return HA(t,n);if(Q_(t))return jA(t,n);if(Z_(t))return ob(t,n);if(eb(t))return zA(t,n);if(ib(t))return UA(t,n)}throw X_(t)}function Ot(t,n){return n?$A(t,n):At(t)}function Q(...t){let n=Wa(t);return Ot(t,n)}function Wn(t,n){let e=Ke(t)?t:()=>t,i=r=>r.error(e());return new Fe(n?r=>n.schedule(i,0,r):i)}function ji(t){return!!t&&(t instanceof Fe||Ke(t.lift)&&Ke(t.subscribe))}var Hs=Il(t=>function(){t(this),this.name="EmptyError",this.message="no elements in sequence"});function ab(t){return t instanceof Date&&!isNaN(t)}var Y6=Il(t=>function(e=null){t(this),this.message="Timeout has occurred",this.name="TimeoutError",this.info=e});function Gw(t,n){let{first:e,each:i,with:r=Q6,scheduler:o=n??js,meta:a=null}=ab(t)?{first:t}:typeof t=="number"?{each:t}:t;if(e==null&&i==null)throw new TypeError("No timeout provided.");return Qe((s,l)=>{let c,d,m=null,f=0,b=v=>{d=dr(l,o,()=>{try{c.unsubscribe(),At(r({meta:a,lastValue:m,seen:f})).subscribe(l)}catch(w){l.error(w)}},v)};c=s.subscribe(Ue(l,v=>{d?.unsubscribe(),f++,l.next(m=v),i>0&&b(i)},void 0,void 0,()=>{d?.closed||d?.unsubscribe(),m=null})),!f&&b(e!=null?typeof e=="number"?e:+e-o.now():i)})}function Q6(t){throw new Y6(t)}function se(t,n){return Qe((e,i)=>{let r=0;e.subscribe(Ue(i,o=>{i.next(t.call(n,o,r++))}))})}var{isArray:K6}=Array;function Z6(t,n){return K6(n)?t(...n):t(n)}function $u(t){return se(n=>Z6(t,n))}var{isArray:X6}=Array,{getPrototypeOf:J6,prototype:e$,keys:t$}=Object;function sb(t){if(t.length===1){let n=t[0];if(X6(n))return{args:n,keys:null};if(i$(n)){let e=t$(n);return{args:e.map(i=>n[i]),keys:e}}}return{args:t,keys:null}}function i$(t){return t&&typeof t=="object"&&J6(t)===e$}function lb(t,n){return t.reduce((e,i,r)=>(e[i]=n[r],e),{})}function co(...t){let n=Wa(t),e=Y_(t),{args:i,keys:r}=sb(t);if(i.length===0)return Ot([],n);let o=new Fe(n$(i,n,r?a=>lb(r,a):Mr));return e?o.pipe($u(e)):o}function n$(t,n,e=Mr){return i=>{WA(n,()=>{let{length:r}=t,o=new Array(r),a=r,s=r;for(let l=0;l{let c=Ot(t[l],n),d=!1;c.subscribe(Ue(i,m=>{o[l]=m,d||(d=!0,s--),s||i.next(e(o.slice()))},()=>{--a||i.complete()}))},i)},i)}}function WA(t,n,e){t?dr(e,t,n):n()}function GA(t,n,e,i,r,o,a,s){let l=[],c=0,d=0,m=!1,f=()=>{m&&!l.length&&!c&&n.complete()},b=w=>c{o&&n.next(w),c++;let x=!1;At(e(w,d++)).subscribe(Ue(n,D=>{r?.(D),o?b(D):n.next(D)},()=>{x=!0},void 0,()=>{if(x)try{for(c--;l.length&&cv(D)):v(D)}f()}catch(D){n.error(D)}}))};return t.subscribe(Ue(n,b,()=>{m=!0,f()})),()=>{s?.()}}function Mt(t,n,e=1/0){return Ke(n)?Mt((i,r)=>se((o,a)=>n(i,o,r,a))(At(t(i,r))),e):(typeof n=="number"&&(e=n),Qe((i,r)=>GA(i,r,t,e)))}function uo(t=1/0){return Mt(Mr,t)}function qA(){return uo(1)}function mo(...t){return qA()(Ot(t,Wa(t)))}function kn(t){return new Fe(n=>{At(t()).subscribe(n)})}function Ga(...t){let n=Y_(t),{args:e,keys:i}=sb(t),r=new Fe(o=>{let{length:a}=e;if(!a){o.complete();return}let s=new Array(a),l=a,c=a;for(let d=0;d{m||(m=!0,c--),s[d]=f},()=>l--,void 0,()=>{(!l||!m)&&(c||o.next(i?lb(i,s):s),o.complete())}))}});return n?r.pipe($u(n)):r}var r$=["addListener","removeListener"],o$=["addEventListener","removeEventListener"],a$=["on","off"];function zs(t,n,e,i){if(Ke(e)&&(i=e,e=void 0),i)return zs(t,n,e).pipe($u(i));let[r,o]=c$(t)?o$.map(a=>s=>t[a](n,s,e)):s$(t)?r$.map(YA(t,n)):l$(t)?a$.map(YA(t,n)):[];if(!r&&Uu(t))return Mt(a=>zs(a,n,e))(At(t));if(!r)throw new TypeError("Invalid event target");return new Fe(a=>{let s=(...l)=>a.next(1o(s)})}function YA(t,n){return e=>i=>t[e](n,i)}function s$(t){return Ke(t.addListener)&&Ke(t.removeListener)}function l$(t){return Ke(t.on)&&Ke(t.off)}function c$(t){return Ke(t.addEventListener)&&Ke(t.removeEventListener)}function qa(t=0,n,e=OA){let i=-1;return n!=null&&(q_(n)?e=n:i=n),new Fe(r=>{let o=ab(t)?+t-e.now():t;o<0&&(o=0);let a=0;return e.schedule(function(){r.closed||(r.next(a++),0<=i?this.schedule(void 0,i):r.complete())},o)})}function Je(...t){let n=Wa(t),e=RA(t,1/0),i=t;return i.length?i.length===1?At(i[0]):uo(e)(Ot(i,n)):Fi}var{isArray:d$}=Array;function QA(t){return t.length===1&&d$(t[0])?t[0]:t}function ce(t,n){return Qe((e,i)=>{let r=0;e.subscribe(Ue(i,o=>t.call(n,o,r++)&&i.next(o)))})}function Wu(...t){return t=QA(t),t.length===1?At(t[0]):new Fe(u$(t))}function u$(t){return n=>{let e=[];for(let i=0;e&&!n.closed&&i{if(e){for(let o=0;o{let i=!1,r=null,o=null,a=!1,s=()=>{if(o?.unsubscribe(),o=null,i){i=!1;let c=r;r=null,e.next(c)}a&&e.complete()},l=()=>{o=null,a&&e.complete()};n.subscribe(Ue(e,c=>{i=!0,r=c,o||At(t(c)).subscribe(o=Ue(e,s,l))},()=>{a=!0,(!i||!o||o.closed)&&e.complete()}))})}function Pl(t,n=js){return KA(()=>qa(t,n))}function fi(t){return Qe((n,e)=>{let i=null,r=!1,o;i=n.subscribe(Ue(e,void 0,void 0,a=>{o=At(t(a,fi(t)(n))),i?(i.unsubscribe(),i=null,o.subscribe(e)):r=!0})),r&&(i.unsubscribe(),i=null,o.subscribe(e))})}function ZA(t,n,e,i,r){return(o,a)=>{let s=e,l=n,c=0;o.subscribe(Ue(a,d=>{let m=c++;l=s?t(l,d,m):(s=!0,d),i&&a.next(l)},r&&(()=>{s&&a.next(l),a.complete()})))}}function Ao(t,n){return Ke(n)?Mt(t,n,1):Mt(t,1)}function Rt(t,n=js){return Qe((e,i)=>{let r=null,o=null,a=null,s=()=>{if(r){r.unsubscribe(),r=null;let c=o;o=null,i.next(c)}};function l(){let c=a+t,d=n.now();if(d{o=c,a=n.now(),r||(r=n.schedule(l,t),i.add(r))},()=>{s(),i.complete()},void 0,()=>{o=r=null}))})}function Fl(t){return Qe((n,e)=>{let i=!1;n.subscribe(Ue(e,r=>{i=!0,e.next(r)},()=>{i||e.next(t),e.complete()}))})}function lt(t){return t<=0?()=>Fi:Qe((n,e)=>{let i=0;n.subscribe(Ue(e,r=>{++i<=t&&(e.next(r),t<=i&&e.complete())}))})}function XA(){return Qe((t,n)=>{t.subscribe(Ue(n,ad))})}function Gu(t){return se(()=>t)}function qw(t,n){return n?e=>mo(n.pipe(lt(1),XA()),e.pipe(qw(t))):Mt((e,i)=>At(t(e,i)).pipe(lt(1),Gu(e)))}function pa(t,n=js){let e=qa(t,n);return qw(()=>e)}function Sn(t,n=Mr){return t=t??m$,Qe((e,i)=>{let r,o=!0;e.subscribe(Ue(i,a=>{let s=n(a);(o||!t(r,s))&&(o=!1,r=s,i.next(a))}))})}function m$(t,n){return t===n}function cb(t=h$){return Qe((n,e)=>{let i=!1;n.subscribe(Ue(e,r=>{i=!0,e.next(r)},()=>i?e.complete():e.error(t())))})}function h$(){return new Hs}function Yw(t,n){return Qe((e,i)=>{let r=0;e.subscribe(Ue(i,o=>{t.call(n,o,r++,e)||(i.next(!1),i.complete())},()=>{i.next(!0),i.complete()}))})}function Hr(t){return Qe((n,e)=>{try{n.subscribe(e)}finally{e.add(t)}})}function gn(t,n){let e=arguments.length>=2;return i=>i.pipe(t?ce((r,o)=>t(r,o,i)):Mr,lt(1),e?Fl(n):cb(()=>new Hs))}function qu(t){return t<=0?()=>Fi:Qe((n,e)=>{let i=[];n.subscribe(Ue(e,r=>{i.push(r),t{for(let r of i)e.next(r);e.complete()},void 0,()=>{i=null}))})}function Qw(t,n){let e=arguments.length>=2;return i=>i.pipe(t?ce((r,o)=>t(r,o,i)):Mr,qu(1),e?Fl(n):cb(()=>new Hs))}function db(){return Qe((t,n)=>{let e,i=!1;t.subscribe(Ue(n,r=>{let o=e;e=r,i&&n.next([o,r]),i=!0}))})}function Kw(t,n){return Qe(ZA(t,n,arguments.length>=2,!0))}function Nl(t={}){let{connector:n=()=>new z,resetOnError:e=!0,resetOnComplete:i=!0,resetOnRefCountZero:r=!0}=t;return o=>{let a,s,l,c=0,d=!1,m=!1,f=()=>{s?.unsubscribe(),s=void 0},b=()=>{f(),a=l=void 0,d=m=!1},v=()=>{let w=a;b(),w?.unsubscribe()};return Qe((w,x)=>{c++,!m&&!d&&f();let D=l=l??n();x.add(()=>{c--,c===0&&!m&&!d&&(s=Zw(v,r))}),D.subscribe(x),!a&&c>0&&(a=new Bs({next:P=>D.next(P),error:P=>{m=!0,f(),s=Zw(b,e,P),D.error(P)},complete:()=>{d=!0,f(),s=Zw(b,i),D.complete()}}),At(w).subscribe(a))})(o)}}function Zw(t,n,...e){if(n===!0){t();return}if(n===!1)return;let i=new Bs({next:()=>{i.unsubscribe(),t()}});return At(n(...e)).subscribe(i)}function dd(t,n,e){let i,r=!1;return t&&typeof t=="object"?{bufferSize:i=1/0,windowTime:n=1/0,refCount:r=!1,scheduler:e}=t:i=t??1/0,Nl({connector:()=>new $a(i,n,e),resetOnError:!0,resetOnComplete:!1,resetOnRefCountZero:r})}function Ya(t){return ce((n,e)=>t<=e)}function He(...t){let n=Wa(t);return Qe((e,i)=>{(n?mo(t,e,n):mo(t,e)).subscribe(i)})}function $e(t,n){return Qe((e,i)=>{let r=null,o=0,a=!1,s=()=>a&&!r&&i.complete();e.subscribe(Ue(i,l=>{r?.unsubscribe();let c=0,d=o++;At(t(l,d)).subscribe(r=Ue(i,m=>i.next(n?n(l,m,d,c++):m),()=>{r=null,s()}))},()=>{a=!0,s()}))})}function Te(t){return Qe((n,e)=>{At(t).subscribe(Ue(e,()=>e.complete(),ad)),!e.closed&&n.subscribe(e)})}function Xw(t,n=!1){return Qe((e,i)=>{let r=0;e.subscribe(Ue(i,o=>{let a=t(o,r++);(a||n)&&i.next(o),!a&&i.complete()}))})}function Be(t,n,e){let i=Ke(t)||n||e?{next:t,error:n,complete:e}:t;return i?Qe((r,o)=>{var a;(a=i.subscribe)===null||a===void 0||a.call(i);let s=!0;r.subscribe(Ue(o,l=>{var c;(c=i.next)===null||c===void 0||c.call(i,l),o.next(l)},()=>{var l;s=!1,(l=i.complete)===null||l===void 0||l.call(i),o.complete()},l=>{var c;s=!1,(c=i.error)===null||c===void 0||c.call(i,l),o.error(l)},()=>{var l,c;s&&((l=i.unsubscribe)===null||l===void 0||l.call(i)),(c=i.finalize)===null||c===void 0||c.call(i)}))}):Mr}function JA(t){let n=Xe(null);try{return t()}finally{Xe(n)}}var eO=De(M({},td),{consumerIsAlwaysLive:!0,consumerAllowSignalWrites:!0,dirty:!0,kind:"effect"});function tO(t){if(t.dirty=!1,t.version>0&&!nd(t))return;t.version++;let n=Sl(t);try{t.cleanup(),t.fn()}finally{id(t,n)}}var Ll=class{full;major;minor;patch;constructor(n){this.full=n;let e=n.split(".");this.major=e[0],this.minor=e[1],this.patch=e.slice(2).join(".")}},wp=new Ll("20.3.16");var pb="https://angular.dev/best-practices/security#preventing-cross-site-scripting-xss",ue=class extends Error{code;constructor(n,e){super(Ro(n,e)),this.code=n}};function p$(t){return`NG0${Math.abs(t)}`}function Ro(t,n){return`${p$(t)}${n?": "+n:""}`}var Po=globalThis;function Qt(t){for(let n in t)if(t[n]===Qt)return n;throw Error("")}function rO(t,n){for(let e in n)n.hasOwnProperty(e)&&!t.hasOwnProperty(e)&&(t[e]=n[e])}function $s(t){if(typeof t=="string")return t;if(Array.isArray(t))return`[${t.map($s).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 i=e.indexOf(` -`);return i>=0?e.slice(0,i):e}function fb(t,n){return t?n?`${t} ${n}`:t:n||""}var f$=Qt({__forward_ref__:Qt});function Kt(t){return t.__forward_ref__=Kt,t.toString=function(){return $s(this())},t}function _n(t){return dD(t)?t():t}function dD(t){return typeof t=="function"&&t.hasOwnProperty(f$)&&t.__forward_ref__===Kt}function O(t){return{token:t.token,providedIn:t.providedIn||null,factory:t.factory,value:void 0}}function J(t){return{providers:t.providers||[],imports:t.imports||[]}}function Dp(t){return g$(t,gb)}function uD(t){return Dp(t)!==null}function g$(t,n){return t.hasOwnProperty(n)&&t[n]||null}function _$(t){let n=t?.[gb]??null;return n||null}function eD(t){return t&&t.hasOwnProperty(mb)?t[mb]:null}var gb=Qt({\u0275prov:Qt}),mb=Qt({\u0275inj:Qt}),T=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=O({token:this,providedIn:e.providedIn||"root",factory:e.factory}))}get multi(){return this}toString(){return`InjectionToken ${this._desc}`}};function mD(t){return t&&!!t.\u0275providers}var hD=Qt({\u0275cmp:Qt}),pD=Qt({\u0275dir:Qt}),fD=Qt({\u0275pipe:Qt}),gD=Qt({\u0275mod:Qt}),yp=Qt({\u0275fac:Qt}),fd=Qt({__NG_ELEMENT_ID__:Qt}),iO=Qt({__NG_ENV_ID__:Qt});function Fo(t){return typeof t=="string"?t:t==null?"":String(t)}function oO(t){return typeof t=="function"?t.name||t.toString():typeof t=="object"&&t!=null&&typeof t.type=="function"?t.type.name||t.type.toString():Fo(t)}var aO=Qt({ngErrorCode:Qt}),b$=Qt({ngErrorMessage:Qt}),v$=Qt({ngTokenPath:Qt});function _D(t,n){return sO("",-200,n)}function _b(t,n){throw new ue(-201,!1)}function sO(t,n,e){let i=new ue(n,t);return i[aO]=n,i[b$]=t,e&&(i[v$]=e),i}function y$(t){return t[aO]}var tD;function lO(){return tD}function kr(t){let n=tD;return tD=t,n}function bD(t,n,e){let i=Dp(t);if(i&&i.providedIn=="root")return i.value===void 0?i.value=i.factory():i.value;if(e&8)return null;if(n!==void 0)return n;_b(t,"Injector")}var x$={},ud=x$,iD="__NG_DI_FLAG__",nD=class{injector;constructor(n){this.injector=n}retrieve(n,e){let i=md(e)||0;try{return this.injector.get(n,i&8?null:ud,i)}catch(r){if(Fu(r))return r;throw r}}};function C$(t,n=0){let e=M_();if(e===void 0)throw new ue(-203,!1);if(e===null)return bD(t,void 0,n);{let i=w$(n),r=e.retrieve(t,i);if(Fu(r)){if(i.optional)return null;throw r}return r}}function pe(t,n=0){return(lO()||C$)(_n(t),n)}function u(t,n){return pe(t,md(n))}function md(t){return typeof t>"u"||typeof t=="number"?t:0|(t.optional&&8)|(t.host&&1)|(t.self&&2)|(t.skipSelf&&4)}function w$(t){return{optional:!!(t&8),host:!!(t&1),self:!!(t&2),skipSelf:!!(t&4)}}function rD(t){let n=[];for(let e=0;eArray.isArray(e)?bb(e,n):n(e))}function yD(t,n,e){n>=t.length?t.push(e):t.splice(n,0,e)}function Ep(t,n){return n>=t.length-1?t.pop():t.splice(n,1)[0]}function uO(t,n){let e=[];for(let i=0;in;){let o=r-2;t[r]=t[o],r--}t[n]=e,t[n+1]=i}}function Mp(t,n,e){let i=Qu(t,n);return i>=0?t[i|1]=e:(i=~i,mO(t,i,n,e)),i}function vb(t,n){let e=Qu(t,n);if(e>=0)return t[e|1]}function Qu(t,n){return E$(t,n,1)}function E$(t,n,e){let i=0,r=t.length>>e;for(;r!==i;){let o=i+(r-i>>1),a=t[o<n?r=o:i=o+1}return~(r<{e.push(a)};return bb(n,a=>{let s=a;hb(s,o,[],i)&&(r||=[],r.push(s))}),r!==void 0&&fO(r,o),e}function fO(t,n){for(let e=0;e{n(o,i)})}}function hb(t,n,e,i){if(t=_n(t),!t)return!1;let r=null,o=eD(t),a=!o&&Ka(t);if(!o&&!a){let l=t.ngModule;if(o=eD(l),o)r=l;else return!1}else{if(a&&!a.standalone)return!1;r=t}let s=i.has(r);if(a){if(s)return!1;if(i.add(r),a.dependencies){let l=typeof a.dependencies=="function"?a.dependencies():a.dependencies;for(let c of l)hb(c,n,e,i)}}else if(o){if(o.imports!=null&&!s){i.add(r);let c;try{bb(o.imports,d=>{hb(d,n,e,i)&&(c||=[],c.push(d))})}finally{}c!==void 0&&fO(c,n)}if(!s){let c=Vl(r)||(()=>new r);n({provide:r,useFactory:c,deps:ur},r),n({provide:CD,useValue:r,multi:!0},r),n({provide:Qa,useValue:()=>pe(r),multi:!0},r)}let l=o.providers;if(l!=null&&!s){let c=t;ED(l,d=>{n(d,c)})}}else return!1;return r!==t&&t.providers!==void 0}function ED(t,n){for(let e of t)mD(e)&&(e=e.\u0275providers),Array.isArray(e)?ED(e,n):n(e)}var M$=Qt({provide:String,useValue:Qt});function gO(t){return t!==null&&typeof t=="object"&&M$ in t}function k$(t){return!!(t&&t.useExisting)}function S$(t){return!!(t&&t.useFactory)}function hd(t){return typeof t=="function"}function _O(t){return!!t.useClass}var kp=new T(""),ub={},nO={},Jw;function Ku(){return Jw===void 0&&(Jw=new xp),Jw}var Wt=class{},pd=class extends Wt{parent;source;scopes;records=new Map;_ngOnDestroyHooks=new Set;_onDestroyHooks=[];get destroyed(){return this._destroyed}_destroyed=!1;injectorDefTypes;constructor(n,e,i,r){super(),this.parent=e,this.source=i,this.scopes=r,aD(n,a=>this.processProvider(a)),this.records.set(xD,Yu(void 0,this)),r.has("environment")&&this.records.set(Wt,Yu(void 0,this));let o=this.records.get(kp);o!=null&&typeof o.value=="string"&&this.scopes.add(o.value),this.injectorDefTypes=new Set(this.get(CD,ur,{self:!0}))}retrieve(n,e){let i=md(e)||0;try{return this.get(n,ud,i)}catch(r){if(Fu(r))return r;throw r}}destroy(){vp(this),this._destroyed=!0;let n=Xe(null);try{for(let i of this._ngOnDestroyHooks)i.ngOnDestroy();let e=this._onDestroyHooks;this._onDestroyHooks=[];for(let i of e)i()}finally{this.records.clear(),this._ngOnDestroyHooks.clear(),this.injectorDefTypes.clear(),Xe(n)}}onDestroy(n){return vp(this),this._onDestroyHooks.push(n),()=>this.removeOnDestroy(n)}runInContext(n){vp(this);let e=Ua(this),i=kr(void 0),r;try{return n()}finally{Ua(e),kr(i)}}get(n,e=ud,i){if(vp(this),n.hasOwnProperty(iO))return n[iO](this);let r=md(i),o,a=Ua(this),s=kr(void 0);try{if(!(r&4)){let c=this.records.get(n);if(c===void 0){let d=R$(n)&&Dp(n);d&&this.injectableDefInScope(d)?c=Yu(oD(n),ub):c=null,this.records.set(n,c)}if(c!=null)return this.hydrate(n,c,r)}let l=r&2?Ku():this.parent;return e=r&8&&e===ud?null:e,l.get(n,e)}catch(l){let c=y$(l);throw c===-200||c===-201?new ue(c,null):l}finally{kr(s),Ua(a)}}resolveInjectorInitializers(){let n=Xe(null),e=Ua(this),i=kr(void 0),r;try{let o=this.get(Qa,ur,{self:!0});for(let a of o)a()}finally{Ua(e),kr(i),Xe(n)}}toString(){let n=[],e=this.records;for(let i of e.keys())n.push($s(i));return`R3Injector[${n.join(", ")}]`}processProvider(n){n=_n(n);let e=hd(n)?n:_n(n&&n.provide),i=I$(n);if(!hd(n)&&n.multi===!0){let r=this.records.get(e);r||(r=Yu(void 0,ub,!0),r.factory=()=>rD(r.multi),this.records.set(e,r)),e=n,r.multi.push(n)}this.records.set(e,i)}hydrate(n,e,i){let r=Xe(null);try{if(e.value===nO)throw _D($s(n));return e.value===ub&&(e.value=nO,e.value=e.factory(void 0,i)),typeof e.value=="object"&&e.value&&O$(e.value)&&this._ngOnDestroyHooks.add(e.value),e.value}finally{Xe(r)}}injectableDefInScope(n){if(!n.providedIn)return!1;let e=_n(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 oD(t){let n=Dp(t),e=n!==null?n.factory:Vl(t);if(e!==null)return e;if(t instanceof T)throw new ue(204,!1);if(t instanceof Function)return T$(t);throw new ue(204,!1)}function T$(t){if(t.length>0)throw new ue(204,!1);let e=_$(t);return e!==null?()=>e.factory(t):()=>new t}function I$(t){if(gO(t))return Yu(void 0,t.useValue);{let n=MD(t);return Yu(n,ub)}}function MD(t,n,e){let i;if(hd(t)){let r=_n(t);return Vl(r)||oD(r)}else if(gO(t))i=()=>_n(t.useValue);else if(S$(t))i=()=>t.useFactory(...rD(t.deps||[]));else if(k$(t))i=(r,o)=>pe(_n(t.useExisting),o!==void 0&&o&8?8:void 0);else{let r=_n(t&&(t.useClass||t.provide));if(A$(t))i=()=>new r(...rD(t.deps));else return Vl(r)||oD(r)}return i}function vp(t){if(t.destroyed)throw new ue(205,!1)}function Yu(t,n,e=!1){return{factory:t,value:n,multi:e?[]:void 0}}function A$(t){return!!t.deps}function O$(t){return t!==null&&typeof t=="object"&&typeof t.ngOnDestroy=="function"}function R$(t){return typeof t=="function"||typeof t=="object"&&t.ngMetadataName==="InjectionToken"}function aD(t,n){for(let e of t)Array.isArray(e)?aD(e,n):e&&mD(e)?aD(e.\u0275providers,n):n(e)}function In(t,n){let e;t instanceof pd?(vp(t),e=t):e=new nD(t);let i,r=Ua(e),o=kr(void 0);try{return n()}finally{Ua(r),kr(o)}}function bO(){return lO()!==void 0||M_()!=null}var ga=0,We=1,et=2,bn=3,No=4,Sr=5,gd=6,Zu=7,qi=8,Ws=9,Za=10,ri=11,Xu=12,kD=13,_d=14,mr=15,jl=16,bd=17,Xa=18,Sp=19,SD=20,Us=21,Cb=22,Gs=23,ho=24,vd=25,yd=26,mi=27,vO=1,TD=6,Hl=7,Tp=8,xd=9,Yi=10;function Ja(t){return Array.isArray(t)&&typeof t[vO]=="object"}function _a(t){return Array.isArray(t)&&t[vO]===!0}function ID(t){return(t.flags&4)!==0}function qs(t){return t.componentOffset>-1}function Ju(t){return(t.flags&1)===1}function ba(t){return!!t.template}function em(t){return(t[et]&512)!==0}function Cd(t){return(t[et]&256)===256}var AD="svg",yO="math";function Lo(t){for(;Array.isArray(t);)t=t[ga];return t}function OD(t,n){return Lo(n[t])}function Vo(t,n){return Lo(n[t.index])}function Ip(t,n){return t.data[n]}function tm(t,n){return t[n]}function RD(t,n,e,i){e>=t.data.length&&(t.data[e]=null,t.blueprint[e]=null),n[e]=i}function Bo(t,n){let e=n[t];return Ja(e)?e:e[ga]}function xO(t){return(t[et]&4)===4}function wb(t){return(t[et]&128)===128}function CO(t){return _a(t[bn])}function po(t,n){return n==null?null:t[n]}function PD(t){t[bd]=0}function FD(t){t[et]&1024||(t[et]|=1024,wb(t)&&zl(t))}function wO(t,n){for(;t>0;)n=n[_d],t--;return n}function Ap(t){return!!(t[et]&9216||t[ho]?.dirty)}function Db(t){t[Za].changeDetectionScheduler?.notify(8),t[et]&64&&(t[et]|=1024),Ap(t)&&zl(t)}function zl(t){t[Za].changeDetectionScheduler?.notify(0);let n=Bl(t);for(;n!==null&&!(n[et]&8192||(n[et]|=8192,!wb(n)));)n=Bl(n)}function ND(t,n){if(Cd(t))throw new ue(911,!1);t[Us]===null&&(t[Us]=[]),t[Us].push(n)}function DO(t,n){if(t[Us]===null)return;let e=t[Us].indexOf(n);e!==-1&&t[Us].splice(e,1)}function Bl(t){let n=t[bn];return _a(n)?n[bn]:n}function LD(t){return t[Zu]??=[]}function VD(t){return t.cleanup??=[]}function EO(t,n,e,i){let r=LD(n);r.push(e),t.firstCreatePass&&VD(t).push(i,r.length-1)}var ht={lFrame:NO(null),bindingsEnabled:!0,skipHydrationRootTNode:null};var sD=!1;function MO(){return ht.lFrame.elementDepthCount}function kO(){ht.lFrame.elementDepthCount++}function BD(){ht.lFrame.elementDepthCount--}function Eb(){return ht.bindingsEnabled}function jD(){return ht.skipHydrationRootTNode!==null}function HD(t){return ht.skipHydrationRootTNode===t}function zD(){ht.skipHydrationRootTNode=null}function Ne(){return ht.lFrame.lView}function gi(){return ht.lFrame.tView}function I(t){return ht.lFrame.contextLView=t,t[qi]}function A(t){return ht.lFrame.contextLView=null,t}function tn(){let t=UD();for(;t!==null&&t.type===64;)t=t.parent;return t}function UD(){return ht.lFrame.currentTNode}function SO(){let t=ht.lFrame,n=t.currentTNode;return t.isParent?n:n.parent}function im(t,n){let e=ht.lFrame;e.currentTNode=t,e.isParent=n}function $D(){return ht.lFrame.isParent}function WD(){ht.lFrame.isParent=!1}function TO(){return ht.lFrame.contextLView}function GD(){return sD}function nm(t){let n=sD;return sD=t,n}function es(){let t=ht.lFrame,n=t.bindingRootIndex;return n===-1&&(n=t.bindingRootIndex=t.tView.bindingStartIndex),n}function qD(){return ht.lFrame.bindingIndex}function IO(t){return ht.lFrame.bindingIndex=t}function ts(){return ht.lFrame.bindingIndex++}function Op(t){let n=ht.lFrame,e=n.bindingIndex;return n.bindingIndex=n.bindingIndex+t,e}function AO(){return ht.lFrame.inI18n}function OO(t,n){let e=ht.lFrame;e.bindingIndex=e.bindingRootIndex=t,Mb(n)}function RO(){return ht.lFrame.currentDirectiveIndex}function Mb(t){ht.lFrame.currentDirectiveIndex=t}function PO(t){let n=ht.lFrame.currentDirectiveIndex;return n===-1?null:t[n]}function kb(){return ht.lFrame.currentQueryIndex}function Rp(t){ht.lFrame.currentQueryIndex=t}function P$(t){let n=t[We];return n.type===2?n.declTNode:n.type===1?t[Sr]:null}function YD(t,n,e){if(e&4){let r=n,o=t;for(;r=r.parent,r===null&&!(e&1);)if(r=P$(o),r===null||(o=o[_d],r.type&10))break;if(r===null)return!1;n=r,t=o}let i=ht.lFrame=FO();return i.currentTNode=n,i.lView=t,!0}function Sb(t){let n=FO(),e=t[We];ht.lFrame=n,n.currentTNode=e.firstChild,n.lView=t,n.tView=e,n.contextLView=t,n.bindingIndex=e.bindingStartIndex,n.inI18n=!1}function FO(){let t=ht.lFrame,n=t===null?null:t.child;return n===null?NO(t):n}function NO(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 LO(){let t=ht.lFrame;return ht.lFrame=t.parent,t.currentTNode=null,t.lView=null,t}var QD=LO;function Tb(){let t=LO();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 VO(t){return(ht.lFrame.contextLView=wO(t,ht.lFrame.contextLView))[qi]}function va(){return ht.lFrame.selectedIndex}function Ul(t){ht.lFrame.selectedIndex=t}function rm(){let t=ht.lFrame;return Ip(t.tView,t.selectedIndex)}function Gt(){ht.lFrame.currentNamespace=AD}function jo(){F$()}function F$(){ht.lFrame.currentNamespace=null}function BO(){return ht.lFrame.currentNamespace}var jO=!0;function Ib(){return jO}function Pp(t){jO=t}function lD(t,n=null,e=null,i){let r=KD(t,n,e,i);return r.resolveInjectorInitializers(),r}function KD(t,n=null,e=null,i,r=new Set){let o=[e||ur,xb(t)];return i=i||(typeof t=="object"?void 0:$s(t)),new pd(o,n||Ku(),i||null,r)}var de=class t{static THROW_IF_NOT_FOUND=ud;static NULL=new xp;static create(n,e){if(Array.isArray(n))return lD({name:""},e,n,"");{let i=n.name??"";return lD({name:i},n.parent,n.providers,i)}}static \u0275prov=O({token:t,providedIn:"any",factory:()=>pe(xD)});static __NG_ELEMENT_ID__=-1},ge=new T(""),nn=(()=>{class t{static __NG_ELEMENT_ID__=N$;static __NG_ENV_ID__=e=>e}return t})(),Cp=class extends nn{_lView;constructor(n){super(),this._lView=n}get destroyed(){return Cd(this._lView)}onDestroy(n){let e=this._lView;return ND(e,n),()=>DO(e,n)}};function N$(){return new Cp(Ne())}var Tn=class{_console=console;handleError(n){this._console.error("ERROR",n)}},hr=new T("",{providedIn:"root",factory:()=>{let t=u(Wt),n;return e=>{t.destroyed&&!n?setTimeout(()=>{throw e}):(n??=t.get(Tn),n.handleError(e))}}}),HO={provide:Qa,useValue:()=>void u(Tn),multi:!0},L$=new T("",{providedIn:"root",factory:()=>{let t=u(ge).defaultView;if(!t)return;let n=u(hr),e=o=>{n(o.reason),o.preventDefault()},i=o=>{o.error?n(o.error):n(new Error(o.message,{cause:o})),o.preventDefault()},r=()=>{t.addEventListener("unhandledrejection",e),t.addEventListener("error",i)};typeof Zone<"u"?Zone.root.run(r):r(),u(nn).onDestroy(()=>{t.removeEventListener("error",i),t.removeEventListener("unhandledrejection",e)})}});function ZD(){return zr([pO(()=>void u(L$))])}function is(t){return typeof t=="function"&&t[ln]!==void 0}function he(t,n){let[e,i,r]=Ow(t,n?.equal),o=e,a=o[ln];return o.set=i,o.update=r,o.asReadonly=Ab.bind(o),o}function Ab(){let t=this[ln];if(t.readonlyFn===void 0){let n=()=>this();n[ln]=t,t.readonlyFn=n}return t.readonlyFn}function XD(t){return is(t)&&typeof t.set=="function"}var wd=(()=>{class t{view;node;constructor(e,i){this.view=e,this.node=i}static __NG_ELEMENT_ID__=V$}return t})();function V$(){return new wd(Ne(),tn())}var Oo=class{},Fp=new T("",{providedIn:"root",factory:()=>!1});var JD=new T(""),eE=new T(""),ns=(()=>{class t{taskId=0;pendingTasks=new Set;destroyed=!1;pendingTask=new tt(!1);get hasPendingTasks(){return this.destroyed?!1:this.pendingTask.value}get hasPendingTasksObservable(){return this.destroyed?new Fe(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),e}has(e){return this.pendingTasks.has(e)}remove(e){this.pendingTasks.delete(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=O({token:t,providedIn:"root",factory:()=>new t})}return t})(),om=(()=>{class t{internalPendingTasks=u(ns);scheduler=u(Oo);errorHandler=u(hr);add(){let e=this.internalPendingTasks.add();return()=>{this.internalPendingTasks.has(e)&&(this.scheduler.notify(11),this.internalPendingTasks.remove(e))}}run(e){let i=this.add();e().catch(this.errorHandler).finally(i)}static \u0275prov=O({token:t,providedIn:"root",factory:()=>new t})}return t})();function Dd(...t){}var Np=(()=>{class t{static \u0275prov=O({token:t,providedIn:"root",factory:()=>new cD})}return t})(),cD=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,i=this.queues.get(e);i.has(n)&&(i.delete(n),n.dirty&&this.dirtyEffectCount--)}enqueue(n){let e=n.zone;this.queues.has(e)||this.queues.set(e,new Set);let i=this.queues.get(e);i.has(n)||i.add(n)}flush(){for(;this.dirtyEffectCount>0;){let n=!1;for(let[e,i]of this.queues)e===null?n||=this.flushQueue(i):n||=e.run(()=>this.flushQueue(i));n||(this.dirtyEffectCount=0)}}flushQueue(n){let e=!1;for(let i of n)i.dirty&&(this.dirtyEffectCount--,e=!0,i.run());return e}};function pm(t){return{toString:t}.toString()}var Ob="__parameters__";function $$(t){return function(...e){if(t){let i=t(...e);for(let r in i)this[r]=i[r]}}}function kR(t,n,e){return pm(()=>{let i=$$(n);function r(...o){if(this instanceof r)return i.apply(this,o),this;let a=new r(...o);return s.annotation=a,s;function s(l,c,d){let m=l.hasOwnProperty(Ob)?l[Ob]:Object.defineProperty(l,Ob,{value:[]})[Ob];for(;m.length<=d;)m.push(null);return(m[d]=m[d]||[]).push(a),l}}return r.prototype.ngMetadataName=t,r.annotationCls=r,r})}var ss=vD(kR("Optional"),8);var Gl=vD(kR("SkipSelf"),4);var Td=Function;function W$(t){return typeof t=="function"}var Ub=class{previousValue;currentValue;firstChange;constructor(n,e,i){this.previousValue=n,this.currentValue=e,this.firstChange=i}isFirstChange(){return this.firstChange}};function SR(t,n,e,i){n!==null?n.applyValueToInputSignal(n,i):t[e]=i}var Ae=(()=>{let t=()=>TR;return t.ngInherit=!0,t})();function TR(t){return t.type.prototype.ngOnChanges&&(t.setInput=q$),G$}function G$(){let t=AR(this),n=t?.current;if(n){let e=t.previous;if(e===fa)t.previous=n;else for(let i in n)e[i]=n[i];t.current=null,this.ngOnChanges(n)}}function q$(t,n,e,i,r){let o=this.declaredInputs[i],a=AR(t)||Y$(t,{previous:fa,current:null}),s=a.current||(a.current={}),l=a.previous,c=l[o];s[o]=new Ub(c&&c.currentValue,e,l===fa),SR(t,n,r,e)}var IR="__ngSimpleChanges__";function AR(t){return t[IR]||null}function Y$(t,n){return t[IR]=n}var zO=[];var oi=function(t,n=null,e){for(let i=0;i=i)break}else n[l]<0&&(t[bd]+=65536),(s>14>16&&(t[et]&3)===n&&(t[et]+=16384,UO(s,o)):UO(s,o)}var sm=-1,Md=class{factory;name;injectImpl;resolving=!1;canSeeViewProviders;multi;componentProviders;index;providerFactory;constructor(n,e,i,r){this.factory=n,this.name=r,this.canSeeViewProviders=e,this.injectImpl=i}};function Z$(t){return(t.flags&8)!==0}function X$(t){return(t.flags&16)!==0}function J$(t,n,e){let i=0;for(;in){a=o-1;break}}}for(;o>16}function Wb(t,n){let e=tW(t),i=n;for(;e>0;)i=i[_d],e--;return i}var mE=!0;function Gb(t){let n=mE;return mE=t,n}var iW=256,NR=iW-1,LR=5,nW=0,rs={};function rW(t,n,e){let i;typeof e=="string"?i=e.charCodeAt(0)||0:e.hasOwnProperty(fd)&&(i=e[fd]),i==null&&(i=e[fd]=nW++);let r=i&NR,o=1<>LR)]|=o}function qb(t,n){let e=VR(t,n);if(e!==-1)return e;let i=n[We];i.firstCreatePass&&(t.injectorIndex=n.length,iE(i.data,t),iE(n,null),iE(i.blueprint,null));let r=ZE(t,n),o=t.injectorIndex;if(FR(r)){let a=$b(r),s=Wb(r,n),l=s[We].data;for(let c=0;c<8;c++)n[o+c]=s[a+c]|l[a+c]}return n[o+8]=r,o}function iE(t,n){t.push(0,0,0,0,0,0,0,0,n)}function VR(t,n){return t.injectorIndex===-1||t.parent&&t.parent.injectorIndex===t.injectorIndex||n[t.injectorIndex+8]===null?-1:t.injectorIndex}function ZE(t,n){if(t.parent&&t.parent.injectorIndex!==-1)return t.parent.injectorIndex;let e=0,i=null,r=n;for(;r!==null;){if(i=UR(r),i===null)return sm;if(e++,r=r[_d],i.injectorIndex!==-1)return i.injectorIndex|e<<16}return sm}function hE(t,n,e){rW(t,n,e)}function oW(t,n){if(n==="class")return t.classes;if(n==="style")return t.styles;let e=t.attrs;if(e){let i=e.length,r=0;for(;r>20,m=i?s:s+d,f=r?s+d:c;for(let b=m;b=l&&v.type===e)return b}if(r){let b=a[l];if(b&&ba(b)&&b.type===e)return l}return null}function Bp(t,n,e,i,r){let o=t[e],a=n.data;if(o instanceof Md){let s=o;if(s.resolving){let b=oO(a[e]);throw _D(b)}let l=Gb(s.canSeeViewProviders);s.resolving=!0;let c=a[e].type||a[e],d,m=s.injectImpl?kr(s.injectImpl):null,f=YD(t,i,0);try{o=t[e]=s.factory(void 0,r,a,t,i),n.firstCreatePass&&e>=i.directiveStart&&Q$(e,a[e],n)}finally{m!==null&&kr(m),Gb(l),s.resolving=!1,QD()}}return o}function sW(t){if(typeof t=="string")return t.charCodeAt(0)||0;let n=t.hasOwnProperty(fd)?t[fd]:void 0;return typeof n=="number"?n>=0?n&NR:lW:n}function WO(t,n,e){let i=1<>LR)]&i)}function GO(t,n){return!(t&2)&&!(t&1&&n)}var Ed=class{_tNode;_lView;constructor(n,e){this._tNode=n,this._lView=e}get(n,e,i){return HR(this._tNode,this._lView,n,md(i),e)}};function lW(){return new Ed(tn(),Ne())}function fe(t){return pm(()=>{let n=t.prototype.constructor,e=n[yp]||pE(n),i=Object.prototype,r=Object.getPrototypeOf(t.prototype).constructor;for(;r&&r!==i;){let o=r[yp]||pE(r);if(o&&o!==e)return o;r=Object.getPrototypeOf(r)}return o=>new o})}function pE(t){return dD(t)?()=>{let n=pE(_n(t));return n&&n()}:Vl(t)}function cW(t,n,e,i,r){let o=t,a=n;for(;o!==null&&a!==null&&a[et]&2048&&!em(a);){let s=zR(o,a,e,i|2,rs);if(s!==rs)return s;let l=o.parent;if(!l){let c=a[SD];if(c){let d=c.get(e,rs,i);if(d!==rs)return d}l=UR(a),a=a[_d]}o=l}return r}function UR(t){let n=t[We],e=n.type;return e===2?n.declTNode:e===1?t[Sr]:null}function qp(t){return oW(tn(),t)}function dW(){return fm(tn(),Ne())}function fm(t,n){return new q(Vo(t,n))}var q=(()=>{class t{nativeElement;constructor(e){this.nativeElement=e}static __NG_ELEMENT_ID__=dW}return t})();function $R(t){return t instanceof q?t.nativeElement:t}function uW(){return this._results[Symbol.iterator]()}var pr=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 z}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 i=dO(n);(this._changesDetected=!cO(this._results,i,e))&&(this._results=i,this.length=i.length,this.last=i[this.length-1],this.first=i[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]=uW};function WR(t){return(t.flags&128)===128}var XE=(function(t){return t[t.OnPush=0]="OnPush",t[t.Default=1]="Default",t})(XE||{}),GR=new Map,mW=0;function hW(){return mW++}function pW(t){GR.set(t[Sp],t)}function fE(t){GR.delete(t[Sp])}var qO="__ngContext__";function cm(t,n){Ja(n)?(t[qO]=n[Sp],pW(n)):t[qO]=n}function qR(t){return QR(t[Xu])}function YR(t){return QR(t[No])}function QR(t){for(;t!==null&&!_a(t);)t=t[No];return t}var gE;function JE(t){gE=t}function eM(){if(gE!==void 0)return gE;if(typeof document<"u")return document;throw new ue(210,!1)}var ql=new T("",{providedIn:"root",factory:()=>fW}),fW="ng",sv=new T(""),Ks=new T("",{providedIn:"platform",factory:()=>"unknown"});var Yp=new T(""),gm=new T("",{providedIn:"root",factory:()=>eM().body?.querySelector("[ngCspNonce]")?.getAttribute("ngCspNonce")||null});var gW="h",_W="b";var KR="r";var ZR="di";var XR=!1,JR=new T("",{providedIn:"root",factory:()=>XR});var lv=new T("");var bW=(t,n,e,i)=>{};function vW(t,n,e,i){bW(t,n,e,i)}function cv(t){return(t.flags&32)===32}var yW=()=>null;function eP(t,n,e=!1){return yW(t,n,e)}function tP(t,n){let e=t.contentQueries;if(e!==null){let i=Xe(null);try{for(let r=0;rt,createScript:t=>t,createScriptURL:t=>t})}catch{}return Rb}function dv(t){return xW()?.createHTML(t)||t}var Pb;function iP(){if(Pb===void 0&&(Pb=null,Po.trustedTypes))try{Pb=Po.trustedTypes.createPolicy("angular#unsafe-bypass",{createHTML:t=>t,createScript:t=>t,createScriptURL:t=>t})}catch{}return Pb}function YO(t){return iP()?.createHTML(t)||t}function QO(t){return iP()?.createScriptURL(t)||t}var Qs=class{changingThisBreaksApplicationSecurity;constructor(n){this.changingThisBreaksApplicationSecurity=n}toString(){return`SafeValue must use [property]=binding: ${this.changingThisBreaksApplicationSecurity} (see ${pb})`}},bE=class extends Qs{getTypeName(){return"HTML"}},vE=class extends Qs{getTypeName(){return"Style"}},yE=class extends Qs{getTypeName(){return"Script"}},xE=class extends Qs{getTypeName(){return"URL"}},CE=class extends Qs{getTypeName(){return"ResourceURL"}};function Ur(t){return t instanceof Qs?t.changingThisBreaksApplicationSecurity:t}function ls(t,n){let e=nP(t);if(e!=null&&e!==n){if(e==="ResourceURL"&&n==="URL")return!0;throw new Error(`Required a safe ${n}, got a ${e} (see ${pb})`)}return e===n}function nP(t){return t instanceof Qs&&t.getTypeName()||null}function iM(t){return new bE(t)}function nM(t){return new vE(t)}function rM(t){return new yE(t)}function oM(t){return new xE(t)}function aM(t){return new CE(t)}function CW(t){let n=new DE(t);return wW()?new wE(n):n}var wE=class{inertDocumentHelper;constructor(n){this.inertDocumentHelper=n}getInertBodyElement(n){n=""+n;try{let e=new window.DOMParser().parseFromString(dv(n),"text/html").body;return e===null?this.inertDocumentHelper.getInertBodyElement(n):(e.firstChild?.remove(),e)}catch{return null}}},DE=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=dv(n),e}};function wW(){try{return!!new window.DOMParser().parseFromString(dv(""),"text/html")}catch{return!1}}var DW=/^(?!javascript:)(?:[a-z0-9+.-]+:|[^&:\/?#]*(?:[\/?#]|$))/i;function Qp(t){return t=String(t),t.match(DW)?t:"unsafe:"+t}function Zs(t){let n={};for(let e of t.split(","))n[e]=!0;return n}function Kp(...t){let n={};for(let e of t)for(let i in e)e.hasOwnProperty(i)&&(n[i]=!0);return n}var rP=Zs("area,br,col,hr,img,wbr"),oP=Zs("colgroup,dd,dt,li,p,tbody,td,tfoot,th,thead,tr"),aP=Zs("rp,rt"),EW=Kp(aP,oP),MW=Kp(oP,Zs("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")),kW=Kp(aP,Zs("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")),KO=Kp(rP,MW,kW,EW),sP=Zs("background,cite,href,itemtype,longdesc,poster,src,xlink:href"),SW=Zs("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"),TW=Zs("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"),IW=Kp(sP,SW,TW),AW=Zs("script,style,template"),EE=class{sanitizedSomething=!1;buf=[];sanitizeChildren(n){let e=n.firstChild,i=!0,r=[];for(;e;){if(e.nodeType===Node.ELEMENT_NODE?i=this.startElement(e):e.nodeType===Node.TEXT_NODE?this.chars(e.nodeValue):this.sanitizedSomething=!0,i&&e.firstChild){r.push(e),e=PW(e);continue}for(;e;){e.nodeType===Node.ELEMENT_NODE&&this.endElement(e);let o=RW(e);if(o){e=o;break}e=r.pop()}}return this.buf.join("")}startElement(n){let e=ZO(n).toLowerCase();if(!KO.hasOwnProperty(e))return this.sanitizedSomething=!0,!AW.hasOwnProperty(e);this.buf.push("<"),this.buf.push(e);let i=n.attributes;for(let r=0;r"),!0}endElement(n){let e=ZO(n).toLowerCase();KO.hasOwnProperty(e)&&!rP.hasOwnProperty(e)&&(this.buf.push(""))}chars(n){this.buf.push(XO(n))}};function OW(t,n){return(t.compareDocumentPosition(n)&Node.DOCUMENT_POSITION_CONTAINED_BY)!==Node.DOCUMENT_POSITION_CONTAINED_BY}function RW(t){let n=t.nextSibling;if(n&&t!==n.previousSibling)throw lP(n);return n}function PW(t){let n=t.firstChild;if(n&&OW(t,n))throw lP(n);return n}function ZO(t){let n=t.nodeName;return typeof n=="string"?n:"FORM"}function lP(t){return new Error(`Failed to sanitize html because the element is clobbered: ${t.outerHTML}`)}var FW=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,NW=/([^\#-~ |!])/g;function XO(t){return t.replace(/&/g,"&").replace(FW,function(n){let e=n.charCodeAt(0),i=n.charCodeAt(1);return"&#"+((e-55296)*1024+(i-56320)+65536)+";"}).replace(NW,function(n){return"&#"+n.charCodeAt(0)+";"}).replace(//g,">")}var Fb;function uv(t,n){let e=null;try{Fb=Fb||CW(t);let i=n?String(n):"";e=Fb.getInertBodyElement(i);let r=5,o=i;do{if(r===0)throw new Error("Failed to sanitize html because the input is unstable");r--,i=o,o=e.innerHTML,e=Fb.getInertBodyElement(i)}while(i!==o);let s=new EE().sanitizeChildren(JO(e)||e);return dv(s)}finally{if(e){let i=JO(e)||e;for(;i.firstChild;)i.firstChild.remove()}}}function JO(t){return"content"in t&&LW(t)?t.content:null}function LW(t){return t.nodeType===Node.ELEMENT_NODE&&t.nodeName==="TEMPLATE"}var VW=/^>|^->||--!>|)/g,jW="\u200B$1\u200B";function HW(t){return t.replace(VW,n=>n.replace(BW,jW))}function zW(t,n){return t.createText(n)}function UW(t,n,e){t.setValue(n,e)}function $W(t,n){return t.createComment(HW(n))}function cP(t,n,e){return t.createElement(n,e)}function Yb(t,n,e,i,r){t.insertBefore(n,e,i,r)}function dP(t,n,e){t.appendChild(n,e)}function eR(t,n,e,i,r){i!==null?Yb(t,n,e,i,r):dP(t,n,e)}function uP(t,n,e,i){t.removeChild(null,n,e,i)}function WW(t,n,e){t.setAttribute(n,"style",e)}function GW(t,n,e){e===""?t.removeAttribute(n,"class"):t.setAttribute(n,"class",e)}function mP(t,n,e){let{mergedAttrs:i,classes:r,styles:o}=e;i!==null&&J$(t,n,i),r!==null&&GW(t,n,r),o!==null&&WW(t,n,o)}var An=(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})(An||{});function Zp(t){let n=lM();return n?YO(n.sanitize(An.HTML,t)||""):ls(t,"HTML")?YO(Ur(t)):uv(eM(),Fo(t))}function $r(t){let n=lM();return n?n.sanitize(An.URL,t)||"":ls(t,"URL")?Ur(t):Qp(Fo(t))}function hP(t){let n=lM();if(n)return QO(n.sanitize(An.RESOURCE_URL,t)||"");if(ls(t,"ResourceURL"))return QO(Ur(t));throw new ue(904,!1)}var qW=new Set(["embed","frame","iframe","media","script"]),YW=new Set(["base","link","script"]);function QW(t,n){return n==="src"&&qW.has(t)||n==="href"&&YW.has(t)||n==="xlink:href"&&t==="script"?hP:$r}function sM(t,n,e){return QW(n,e)(t)}function lM(){let t=Ne();return t&&t[Za].sanitizer}function pP(t){return t instanceof Function?t():t}function KW(t,n,e){let i=t.length;for(;;){let r=t.indexOf(n,e);if(r===-1)return r;if(r===0||t.charCodeAt(r-1)<=32){let o=n.length;if(r+o===i||t.charCodeAt(r+o)<=32)return r}e=r+1}}var fP="ng-template";function ZW(t,n,e,i){let r=0;if(i){for(;r-1){let o;for(;++ro?m="":m=r[d+1].toLowerCase(),i&2&&c!==m){if(ya(i))return!1;a=!0}}}}return ya(i)||a}function ya(t){return(t&1)===0}function e7(t,n,e,i){if(n===null)return-1;let r=0;if(i||!e){let o=!1;for(;r-1)for(e++;e0?'="'+s+'"':"")+"]"}else i&8?r+="."+a:i&4&&(r+=" "+a);else r!==""&&!ya(a)&&(n+=tR(o,r),r=""),i=a,o=o||!ya(i);e++}return r!==""&&(n+=tR(o,r)),n}function a7(t){return t.map(o7).join(",")}function s7(t){let n=[],e=[],i=1,r=2;for(;inull),a=i;if(n&&typeof n=="object"){let l=n;r=l.next?.bind(l),o=l.error?.bind(l),a=l.complete?.bind(l)}this.__isAsync&&(o=this.wrapInTimeout(o),r&&(r=this.wrapInTimeout(r)),a&&(a=this.wrapInTimeout(a)));let s=super.subscribe({next:r,error:o,complete:a});return n instanceof ke&&n.add(s),s}wrapInTimeout(n){return e=>{let i=this.pendingTasks?.add();setTimeout(()=>{try{n(e)}finally{i!==void 0&&this.pendingTasks?.remove(i)}})}}},U=kE;function xP(t){let n,e;function i(){t=Dd;try{e!==void 0&&typeof cancelAnimationFrame=="function"&&cancelAnimationFrame(e),n!==void 0&&clearTimeout(n)}catch{}}return n=setTimeout(()=>{t(),i()}),typeof requestAnimationFrame=="function"&&(e=requestAnimationFrame(()=>{t(),i()})),()=>i()}function nR(t){return queueMicrotask(()=>t()),()=>{t=Dd}}var pM="isAngularZone",Qb=pM+"_ID",m7=0,ae=class t{hasPendingMacrotasks=!1;hasPendingMicrotasks=!1;isStable=!0;onUnstable=new U(!1);onMicrotaskEmpty=new U(!1);onStable=new U(!1);onError=new U(!1);constructor(n){let{enableLongStackTrace:e=!1,shouldCoalesceEventChangeDetection:i=!1,shouldCoalesceRunChangeDetection:r=!1,scheduleInRootZone:o=yP}=n;if(typeof Zone>"u")throw new ue(908,!1);Zone.assertZonePatched();let a=this;a._nesting=0,a._outer=a._inner=Zone.current,Zone.TaskTrackingZoneSpec&&(a._inner=a._inner.fork(new Zone.TaskTrackingZoneSpec)),e&&Zone.longStackTraceZoneSpec&&(a._inner=a._inner.fork(Zone.longStackTraceZoneSpec)),a.shouldCoalesceEventChangeDetection=!r&&i,a.shouldCoalesceRunChangeDetection=r,a.callbackScheduled=!1,a.scheduleInRootZone=o,f7(a)}static isInAngularZone(){return typeof Zone<"u"&&Zone.current.get(pM)===!0}static assertInAngularZone(){if(!t.isInAngularZone())throw new ue(909,!1)}static assertNotInAngularZone(){if(t.isInAngularZone())throw new ue(909,!1)}run(n,e,i){return this._inner.run(n,e,i)}runTask(n,e,i,r){let o=this._inner,a=o.scheduleEventTask("NgZoneEvent: "+r,n,h7,Dd,Dd);try{return o.runTask(a,e,i)}finally{o.cancelTask(a)}}runGuarded(n,e,i){return this._inner.runGuarded(n,e,i)}runOutsideAngular(n){return this._outer.run(n)}},h7={};function fM(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 p7(t){if(t.isCheckStableRunning||t.callbackScheduled)return;t.callbackScheduled=!0;function n(){xP(()=>{t.callbackScheduled=!1,SE(t),t.isCheckStableRunning=!0,fM(t),t.isCheckStableRunning=!1})}t.scheduleInRootZone?Zone.root.run(()=>{n()}):t._outer.run(()=>{n()}),SE(t)}function f7(t){let n=()=>{p7(t)},e=m7++;t._inner=t._inner.fork({name:"angular",properties:{[pM]:!0,[Qb]:e,[Qb+e]:!0},onInvokeTask:(i,r,o,a,s,l)=>{if(g7(l))return i.invokeTask(o,a,s,l);try{return rR(t),i.invokeTask(o,a,s,l)}finally{(t.shouldCoalesceEventChangeDetection&&a.type==="eventTask"||t.shouldCoalesceRunChangeDetection)&&n(),oR(t)}},onInvoke:(i,r,o,a,s,l,c)=>{try{return rR(t),i.invoke(o,a,s,l,c)}finally{t.shouldCoalesceRunChangeDetection&&!t.callbackScheduled&&!_7(l)&&n(),oR(t)}},onHasTask:(i,r,o,a)=>{i.hasTask(o,a),r===o&&(a.change=="microTask"?(t._hasPendingMicrotasks=a.microTask,SE(t),fM(t)):a.change=="macroTask"&&(t.hasPendingMacrotasks=a.macroTask))},onHandleError:(i,r,o,a)=>(i.handleError(o,a),t.runOutsideAngular(()=>t.onError.emit(a)),!1)})}function SE(t){t._hasPendingMicrotasks||(t.shouldCoalesceEventChangeDetection||t.shouldCoalesceRunChangeDetection)&&t.callbackScheduled===!0?t.hasPendingMicrotasks=!0:t.hasPendingMicrotasks=!1}function rR(t){t._nesting++,t.isStable&&(t.isStable=!1,t.onUnstable.emit(null))}function oR(t){t._nesting--,fM(t)}var jp=class{hasPendingMicrotasks=!1;hasPendingMacrotasks=!1;isStable=!0;onUnstable=new U;onMicrotaskEmpty=new U;onStable=new U;onError=new U;run(n,e,i){return n.apply(e,i)}runGuarded(n,e,i){return n.apply(e,i)}runOutsideAngular(n){return n()}runTask(n,e,i,r){return n.apply(e,i)}};function g7(t){return CP(t,"__ignore_ng_zone__")}function _7(t){return CP(t,"__scheduler_tick__")}function CP(t,n){return!Array.isArray(t)||t.length!==1?!1:t[0]?.data?.[n]===!0}var pv=(()=>{class t{impl=null;execute(){this.impl?.execute()}static \u0275prov=O({token:t,providedIn:"root",factory:()=>new t})}return t})(),gM=[0,1,2,3],_M=(()=>{class t{ngZone=u(ae);scheduler=u(Oo);errorHandler=u(Tn,{optional:!0});sequences=new Set;deferredRegistrations=new Set;executing=!1;constructor(){u(Yl,{optional:!0})}execute(){let e=this.sequences.size>0;e&&oi(16),this.executing=!0;for(let i of gM)for(let r of this.sequences)if(!(r.erroredOrDestroyed||!r.hooks[i]))try{r.pipelinedValue=this.ngZone.runOutsideAngular(()=>this.maybeTrace(()=>{let o=r.hooks[i];return o(r.pipelinedValue)},r.snapshot))}catch(o){r.erroredOrDestroyed=!0,this.errorHandler?.handleError(o)}this.executing=!1;for(let i of this.sequences)i.afterRun(),i.once&&(this.sequences.delete(i),i.destroy());for(let i of this.deferredRegistrations)this.sequences.add(i);this.deferredRegistrations.size>0&&this.scheduler.notify(7),this.deferredRegistrations.clear(),e&&oi(17)}register(e){let{view:i}=e;i!==void 0?((i[vd]??=[]).push(e),zl(i),i[et]|=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,i){return i?i.run(hv.AFTER_NEXT_RENDER,e):e()}static \u0275prov=O({token:t,providedIn:"root",factory:()=>new t})}return t})(),Hp=class{impl;hooks;view;once;snapshot;erroredOrDestroyed=!1;pipelinedValue=void 0;unregisterOnDestroy;constructor(n,e,i,r,o,a=null){this.impl=n,this.hooks=e,this.view=i,this.once=r,this.snapshot=a,this.unregisterOnDestroy=o?.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?.[vd];n&&(this.view[vd]=n.filter(e=>e!==this))}};function pt(t,n){let e=n?.injector??u(de);return cs("NgAfterNextRender"),v7(t,e,n,!0)}function b7(t){return t instanceof Function?[void 0,void 0,t,void 0]:[t.earlyRead,t.write,t.mixedReadWrite,t.read]}function v7(t,n,e,i){let r=n.get(pv);r.impl??=n.get(_M);let o=n.get(Yl,null,{optional:!0}),a=e?.manualCleanup!==!0?n.get(nn):null,s=n.get(wd,null,{optional:!0}),l=new Hp(r.impl,b7(t),s?.view,i,a,o?.snapshot(null));return r.impl.register(l),l}var wP=new T("",{providedIn:"root",factory:()=>({queue:new Set,isScheduled:!1,scheduler:null})});function DP(t,n,e){let i=t.get(wP);if(Array.isArray(n))for(let r of n)i.queue.add(r),e?.detachedLeaveAnimationFns?.push(r);else i.queue.add(n),e?.detachedLeaveAnimationFns?.push(n);i.scheduler&&i.scheduler(t)}function y7(t,n){let e=t.get(wP);if(n.detachedLeaveAnimationFns){for(let i of n.detachedLeaveAnimationFns)e.queue.delete(i);n.detachedLeaveAnimationFns=void 0}}function x7(t,n){for(let[e,i]of n)DP(t,i.animateFns)}function aR(t,n,e,i){let r=t?.[yd]?.enter;n!==null&&r&&r.has(e.index)&&x7(i,r)}function am(t,n,e,i,r,o,a,s){if(r!=null){let l,c=!1;_a(r)?l=r:Ja(r)&&(c=!0,r=r[ga]);let d=Lo(r);t===0&&i!==null?(aR(s,i,o,e),a==null?dP(n,i,d):Yb(n,i,d,a||null,!0)):t===1&&i!==null?(aR(s,i,o,e),Yb(n,i,d,a||null,!0)):t===2?sR(s,o,e,m=>{uP(n,d,c,m)}):t===3&&sR(s,o,e,()=>{n.destroyNode(d)}),l!=null&&O7(n,t,e,l,o,i,a)}}function C7(t,n){EP(t,n),n[ga]=null,n[Sr]=null}function w7(t,n,e,i,r,o){i[ga]=r,i[Sr]=n,gv(t,i,e,1,r,o)}function EP(t,n){n[Za].changeDetectionScheduler?.notify(9),gv(t,n,n[ri],2,null,null)}function D7(t){let n=t[Xu];if(!n)return nE(t[We],t);for(;n;){let e=null;if(Ja(n))e=n[Xu];else{let i=n[Yi];i&&(e=i)}if(!e){for(;n&&!n[No]&&n!==t;)Ja(n)&&nE(n[We],n),n=n[bn];n===null&&(n=t),Ja(n)&&nE(n[We],n),e=n&&n[No]}n=e}}function bM(t,n){let e=t[xd],i=e.indexOf(n);e.splice(i,1)}function fv(t,n){if(Cd(n))return;let e=n[ri];e.destroyNode&&gv(t,n,e,3,null,null),D7(n)}function nE(t,n){if(Cd(n))return;let e=Xe(null);try{n[et]&=-129,n[et]|=256,n[ho]&&Tl(n[ho]),k7(t,n),M7(t,n),n[We].type===1&&n[ri].destroy();let i=n[jl];if(i!==null&&_a(n[bn])){i!==n[bn]&&bM(i,n);let r=n[Xa];r!==null&&r.detachView(t)}fE(n)}finally{Xe(e)}}function sR(t,n,e,i){let r=t?.[yd];if(r==null||r.leave==null||!r.leave.has(n.index))return i(!1);t&&kd.add(t),DP(e,()=>{if(r.leave&&r.leave.has(n.index)){let a=r.leave.get(n.index),s=[];if(a){for(let l=0;l{t[yd].running=void 0,kd.delete(t),n(!0)});return}n(!1)}function M7(t,n){let e=t.cleanup,i=n[Zu];if(e!==null)for(let a=0;a=0?i[s]():i[-s].unsubscribe(),a+=2}else{let s=i[e[a+1]];e[a].call(s)}i!==null&&(n[Zu]=null);let r=n[Us];if(r!==null){n[Us]=null;for(let a=0;ami&&vP(t,n,mi,!1),oi(a?2:0,r,e),e(i,r)}finally{Ul(o),oi(a?3:1,r,e)}}function _v(t,n,e){V7(t,n,e),(e.flags&64)===64&&B7(t,n,e)}function _m(t,n,e=Vo){let i=n.localNames;if(i!==null){let r=n.index+1;for(let o=0;onull;function L7(t){return t==="class"?"className":t==="for"?"htmlFor":t==="formaction"?"formAction":t==="innerHtml"?"innerHTML":t==="readonly"?"readOnly":t==="tabindex"?"tabIndex":t}function AP(t,n,e,i,r,o){let a=n[We];if(yv(t,a,n,e,i)){qs(t)&&RP(n,t.index);return}t.type&3&&(e=L7(e)),OP(t,n,e,i,r,o)}function OP(t,n,e,i,r,o){if(t.type&3){let a=Vo(t,n);i=o!=null?o(i,t.value||"",e):i,r.setProperty(a,e,i)}else t.type&12}function RP(t,n){let e=Bo(n,t);e[et]&16||(e[et]|=64)}function V7(t,n,e){let i=e.directiveStart,r=e.directiveEnd;qs(e)&&d7(n,e,t.data[i+e.componentOffset]),t.firstCreatePass||qb(e,n);let o=e.initialInputs;for(let a=i;a{zl(t.lView)},consumerOnSignalRead(){this.lView[ho]=this}});function Z7(t){let n=t[ho]??Object.create(X7);return n.lView=t,n}var X7=De(M({},td),{consumerIsAlwaysLive:!0,kind:"template",consumerMarkedDirty:t=>{let n=Bl(t.lView);for(;n&&!VP(n[We]);)n=Bl(n);n&&FD(n)},consumerOnSignalRead(){this.lView[ho]=this}});function VP(t){return t.type!==2}function BP(t){if(t[Gs]===null)return;let n=!0;for(;n;){let e=!1;for(let i of t[Gs])i.dirty&&(e=!0,i.zone===null||Zone.current===i.zone?i.run():i.zone.run(()=>i.run()));n=e&&!!(t[et]&8192)}}var J7=100;function jP(t,n=0){let i=t[Za].rendererFactory,r=!1;r||i.begin?.();try{eG(t,n)}finally{r||i.end?.()}}function eG(t,n){let e=GD();try{nm(!0),IE(t,n);let i=0;for(;Ap(t);){if(i===J7)throw new ue(103,!1);i++,IE(t,1)}}finally{nm(e)}}function tG(t,n,e,i){if(Cd(n))return;let r=n[et],o=!1,a=!1;Sb(n);let s=!0,l=null,c=null;o||(VP(t)?(c=q7(n),l=Sl(c)):A_()===null?(s=!1,c=Z7(n),l=Sl(c)):n[ho]&&(Tl(n[ho]),n[ho]=null));try{PD(n),IO(t.bindingStartIndex),e!==null&&IP(t,n,e,2,i);let d=(r&3)===3;if(!o)if(d){let b=t.preOrderCheckHooks;b!==null&&Vb(n,b,null)}else{let b=t.preOrderHooks;b!==null&&Bb(n,b,0,null),tE(n,0)}if(a||iG(n),BP(n),HP(n,0),t.contentQueries!==null&&tP(t,n),!o)if(d){let b=t.contentCheckHooks;b!==null&&Vb(n,b)}else{let b=t.contentHooks;b!==null&&Bb(n,b,1),tE(n,1)}rG(t,n);let m=t.components;m!==null&&UP(n,m,0);let f=t.viewQuery;if(f!==null&&_E(2,f,i),!o)if(d){let b=t.viewCheckHooks;b!==null&&Vb(n,b)}else{let b=t.viewHooks;b!==null&&Bb(n,b,2),tE(n,2)}if(t.firstUpdatePass===!0&&(t.firstUpdatePass=!1),n[Cb]){for(let b of n[Cb])b();n[Cb]=null}o||(NP(n),n[et]&=-73)}catch(d){throw o||zl(n),d}finally{c!==null&&(id(c,l),s&&Q7(c)),Tb()}}function HP(t,n){for(let e=qR(t);e!==null;e=YR(e))for(let i=Yi;i0&&(t[e-1][No]=i[No]);let o=Ep(t,Yi+n);C7(i[We],i);let a=o[Xa];a!==null&&a.detachView(o[We]),i[bn]=null,i[No]=null,i[et]&=-129}return i}function oG(t,n,e,i){let r=Yi+i,o=e.length;i>0&&(e[r-1][No]=n),i-1&&(Up(n,i),Ep(e,i))}this._attachedToViewContainer=!1}fv(this._lView[We],this._lView)}onDestroy(n){ND(this._lView,n)}markForCheck(){wM(this._cdRefInjectingView||this._lView,4)}detach(){this._lView[et]&=-129}reattach(){Db(this._lView),this._lView[et]|=128}detectChanges(){this._lView[et]|=1024,jP(this._lView)}checkNoChanges(){}attachToViewContainerRef(){if(this._appRef)throw new ue(902,!1);this._attachedToViewContainer=!0}detachFromAppRef(){this._appRef=null;let n=em(this._lView),e=this._lView[jl];e!==null&&!n&&bM(e,this._lView),EP(this._lView[We],this._lView)}attachToAppRef(n){if(this._attachedToViewContainer)throw new ue(902,!1);this._appRef=n;let e=em(this._lView),i=this._lView[jl];i!==null&&!e&&qP(i,this._lView),Db(this._lView)}};var te=(()=>{class t{_declarationLView;_declarationTContainer;elementRef;static __NG_ELEMENT_ID__=aG;constructor(e,i,r){this._declarationLView=e,this._declarationTContainer=i,this.elementRef=r}get ssrId(){return this._declarationTContainer.tView?.ssrId||null}createEmbeddedView(e,i){return this.createEmbeddedViewImpl(e,i)}createEmbeddedViewImpl(e,i,r){let o=Xp(this._declarationLView,this._declarationTContainer,e,{embeddedViewInjector:i,dehydratedView:r});return new $l(o)}}return t})();function aG(){return xv(tn(),Ne())}function xv(t,n){return t.type&4?new te(n,t,fm(t,n)):null}function bm(t,n,e,i,r){let o=t.data[n];if(o===null)o=sG(t,n,e,i,r),AO()&&(o.flags|=32);else if(o.type&64){o.type=e,o.value=i,o.attrs=r;let a=SO();o.injectorIndex=a===null?-1:a.injectorIndex}return im(o,!0),o}function sG(t,n,e,i,r){let o=UD(),a=$D(),s=a?o:o&&o.parent,l=t.data[n]=cG(t,s,e,n,i,r);return lG(t,l,o,a),l}function lG(t,n,e,i){t.firstChild===null&&(t.firstChild=n),e!==null&&(i?e.child==null&&n.parent!==null&&(e.child=n):e.next===null&&(e.next=n,n.prev=e))}function cG(t,n,e,i,r,o){let a=n?n.injectorIndex:-1,s=0;return jD()&&(s|=128),{type:e,index:i,insertBeforeIndex:null,injectorIndex:a,directiveStart:-1,directiveEnd:-1,directiveStylingLast:-1,componentOffset:-1,propertyBindings:null,flags:s,providerIndexes:0,value:r,attrs:o,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}}var pIe=new RegExp(`^(\\d+)*(${_W}|${gW})*(.*)`);function dG(t){let n=t[TD]??[],i=t[bn][ri],r=[];for(let o of n)o.data[ZR]!==void 0?r.push(o):uG(o,i);t[TD]=r}function uG(t,n){let e=0,i=t.firstChild;if(i){let r=t.data[KR];for(;enull,hG=()=>null;function Kb(t,n){return mG(t,n)}function YP(t,n,e){return hG(t,n,e)}var Id=class{},Cv=class{},AE=class{resolveComponentFactory(n){throw new ue(917,!1)}},ef=class{static NULL=new AE},cn=class{},je=(()=>{class t{destroyNode=null;static __NG_ELEMENT_ID__=()=>pG()}return t})();function pG(){let t=Ne(),n=tn(),e=Bo(n.index,t);return(Ja(e)?e:t)[ri]}var QP=(()=>{class t{static \u0275prov=O({token:t,providedIn:"root",factory:()=>null})}return t})();var Hb={},OE=class{injector;parentInjector;constructor(n,e){this.injector=n,this.parentInjector=e}get(n,e,i){let r=this.injector.get(n,Hb,i);return r!==Hb||e===Hb?r:this.parentInjector.get(n,e,i)}};function Zb(t,n,e){let i=e?t.styles:null,r=e?t.classes:null,o=0;if(n!==null)for(let a=0;a0&&(e.directiveToIndex=new Map);for(let f=0;f0;){let e=t[--n];if(typeof e=="number"&&e<0)return e}return 0}function CG(t,n,e){if(e){if(n.exportAs)for(let i=0;ii(Lo(w[t.index])):t.index;nF(v,n,e,o,s,b,!1)}}return c}function MG(t){return t.startsWith("animation")||t.startsWith("transition")}function kG(t,n,e,i){let r=t.cleanup;if(r!=null)for(let o=0;ol?s[l]:null}typeof a=="string"&&(o+=2)}return null}function nF(t,n,e,i,r,o,a){let s=n.firstCreatePass?VD(n):null,l=LD(e),c=l.length;l.push(r,o),s&&s.push(i,t,c,(c+1)*(a?-1:1))}function hR(t,n,e,i,r,o){let a=n[e],s=n[We],c=s.data[e].outputs[i],m=a[c].subscribe(o);nF(t.index,s,n,r,o,m,!0)}var RE=Symbol("BINDING");var Xb=class extends ef{ngModule;constructor(n){super(),this.ngModule=n}resolveComponentFactory(n){let e=Ka(n);return new Wl(e,this.ngModule)}};function SG(t){return Object.keys(t).map(n=>{let[e,i,r]=t[n],o={propName:e,templateName:n,isSignal:(i&mv.SignalBased)!==0};return r&&(o.transform=r),o})}function TG(t){return Object.keys(t).map(n=>({propName:t[n],templateName:n}))}function IG(t,n,e){let i=n instanceof Wt?n:n?.injector;return i&&t.getStandaloneInjector!==null&&(i=t.getStandaloneInjector(i)||i),i?new OE(e,i):e}function AG(t){let n=t.get(cn,null);if(n===null)throw new ue(407,!1);let e=t.get(QP,null),i=t.get(Oo,null);return{rendererFactory:n,sanitizer:e,changeDetectionScheduler:i,ngReflect:!1}}function OG(t,n){let e=rF(t);return cP(n,e,e==="svg"?AD:e==="math"?yO:null)}function rF(t){return(t.selectors[0][0]||"div").toLowerCase()}var Wl=class extends Cv{componentDef;ngModule;selector;componentType;ngContentSelectors;isBoundToModule;cachedInputs=null;cachedOutputs=null;get inputs(){return this.cachedInputs??=SG(this.componentDef.inputs),this.cachedInputs}get outputs(){return this.cachedOutputs??=TG(this.componentDef.outputs),this.cachedOutputs}constructor(n,e){super(),this.componentDef=n,this.ngModule=e,this.componentType=n.type,this.selector=a7(n.selectors),this.ngContentSelectors=n.ngContentSelectors??[],this.isBoundToModule=!!e}create(n,e,i,r,o,a){oi(22);let s=Xe(null);try{let l=this.componentDef,c=RG(i,l,a,o),d=IG(l,r||this.ngModule,n),m=AG(d),f=m.rendererFactory.createRenderer(null,l),b=i?P7(f,i,l.encapsulation,d):OG(l,f),v=a?.some(pR)||o?.some(D=>typeof D!="function"&&D.bindings.some(pR)),w=uM(null,c,null,512|_P(l),null,null,m,f,d,null,eP(b,d,!0));w[mi]=b,Sb(w);let x=null;try{let D=DM(mi,w,2,"#host",()=>c.directiveRegistry,!0,0);mP(f,b,D),cm(b,w),_v(c,w,D),tM(c,D,w),EM(c,D),e!==void 0&&FG(D,this.ngContentSelectors,e),x=Bo(D.index,w),w[qi]=x[qi],CM(c,w,null)}catch(D){throw x!==null&&fE(x),fE(w),D}finally{oi(23),Tb()}return new Jb(this.componentType,w,!!v)}finally{Xe(s)}}};function RG(t,n,e,i){let r=t?["ng-version","20.3.16"]:s7(n.selectors[0]),o=null,a=null,s=0;if(e)for(let d of e)s+=d[RE].requiredVars,d.create&&(d.targetIdx=0,(o??=[]).push(d)),d.update&&(d.targetIdx=0,(a??=[]).push(d));if(i)for(let d=0;d{if(e&1&&t)for(let i of t)i.create();if(e&2&&n)for(let i of n)i.update()}}function pR(t){let n=t[RE].kind;return n==="input"||n==="twoWay"}var Jb=class extends Id{_rootLView;_hasInputBindings;instance;hostView;changeDetectorRef;componentType;location;previousInputValues=null;_tNode;constructor(n,e,i){super(),this._rootLView=e,this._hasInputBindings=i,this._tNode=Ip(e[We],mi),this.location=fm(this._tNode,e),this.instance=Bo(this._tNode.index,e)[qi],this.hostView=this.changeDetectorRef=new $l(e,void 0),this.componentType=n}setInput(n,e){this._hasInputBindings;let i=this._tNode;if(this.previousInputValues??=new Map,this.previousInputValues.has(n)&&Object.is(this.previousInputValues.get(n),e))return;let r=this._rootLView,o=yv(i,r[We],r,n,e);this.previousInputValues.set(n,e);let a=Bo(i.index,r);wM(a,1)}get injector(){return new Ed(this._tNode,this._rootLView)}destroy(){this.hostView.destroy()}onDestroy(n){this.hostView.onDestroy(n)}};function FG(t,n,e){let i=t.projection=[];for(let r=0;r{class t{static __NG_ELEMENT_ID__=NG}return t})();function NG(){let t=tn();return aF(t,Ne())}var LG=nt,oF=class extends LG{_lContainer;_hostTNode;_hostLView;constructor(n,e,i){super(),this._lContainer=n,this._hostTNode=e,this._hostLView=i}get element(){return fm(this._hostTNode,this._hostLView)}get injector(){return new Ed(this._hostTNode,this._hostLView)}get parentInjector(){let n=ZE(this._hostTNode,this._hostLView);if(FR(n)){let e=Wb(n,this._hostLView),i=$b(n),r=e[We].data[i+8];return new Ed(r,e)}else return new Ed(null,this._hostLView)}clear(){for(;this.length>0;)this.remove(this.length-1)}get(n){let e=fR(this._lContainer);return e!==null&&e[n]||null}get length(){return this._lContainer.length-Yi}createEmbeddedView(n,e,i){let r,o;typeof i=="number"?r=i:i!=null&&(r=i.index,o=i.injector);let a=Kb(this._lContainer,n.ssrId),s=n.createEmbeddedViewImpl(e||{},o,a);return this.insertImpl(s,r,dm(this._hostTNode,a)),s}createComponent(n,e,i,r,o,a,s){let l=n&&!W$(n),c;if(l)c=e;else{let x=e||{};c=x.index,i=x.injector,r=x.projectableNodes,o=x.environmentInjector||x.ngModuleRef,a=x.directives,s=x.bindings}let d=l?n:new Wl(Ka(n)),m=i||this.parentInjector;if(!o&&d.ngModule==null){let D=(l?m:this.parentInjector).get(Wt,null);D&&(o=D)}let f=Ka(d.componentType??{}),b=Kb(this._lContainer,f?.id??null),v=b?.firstChild??null,w=d.create(m,r,v,o,a,s);return this.insertImpl(w.hostView,c,dm(this._hostTNode,b)),w}insert(n,e){return this.insertImpl(n,e,!0)}insertImpl(n,e,i){let r=n._lView;if(CO(r)){let s=this.indexOf(n);if(s!==-1)this.detach(s);else{let l=r[bn],c=new oF(l,l[Sr],l[bn]);c.detach(c.indexOf(n))}}let o=this._adjustIndex(e),a=this._lContainer;return Jp(a,r,o,i),n.attachToViewContainerRef(),yD(rE(a),o,n),n}move(n,e){return this.insert(n,e)}indexOf(n){let e=fR(this._lContainer);return e!==null?e.indexOf(n):-1}remove(n){let e=this._adjustIndex(n,-1),i=Up(this._lContainer,e);i&&(Ep(rE(this._lContainer),e),fv(i[We],i))}detach(n){let e=this._adjustIndex(n,-1),i=Up(this._lContainer,e);return i&&Ep(rE(this._lContainer),e)!=null?new $l(i):null}_adjustIndex(n,e=0){return n??this.length+e}};function fR(t){return t[Tp]}function rE(t){return t[Tp]||(t[Tp]=[])}function aF(t,n){let e,i=n[t.index];return _a(i)?e=i:(e=$P(i,n,null,t),n[t.index]=e,mM(n,e)),BG(e,n,t,i),new oF(e,t,n)}function VG(t,n){let e=t[ri],i=e.createComment(""),r=Vo(n,t),o=e.parentNode(r);return Yb(e,o,i,e.nextSibling(r),!1),i}var BG=zG,jG=()=>!1;function HG(t,n,e){return jG(t,n,e)}function zG(t,n,e,i){if(t[Hl])return;let r;e.type&8?r=Lo(i):r=VG(n,e),t[Hl]=r}var PE=class t{queryList;matches=null;constructor(n){this.queryList=n}clone(){return new t(this.queryList)}setDirty(){this.queryList.setDirty()}},FE=class t{queries;constructor(n=[]){this.queries=n}createEmbeddedView(n){let e=n.queries;if(e!==null){let i=n.contentQueries!==null?n.contentQueries[0]:e.length,r=[];for(let o=0;o0)i.push(a[s/2]);else{let c=o[s+1],d=n[-l];for(let m=Yi;mn.trim())}function uF(t,n,e){t.queries===null&&(t.queries=new NE),t.queries.track(new LE(n,e))}function YG(t,n){let e=t.contentQueries||(t.contentQueries=[]),i=e.length?e[e.length-1]:-1;n!==i&&e.push(t.queries.length-1,n)}function SM(t,n){return t.queries.getByIndex(n)}function mF(t,n){let e=t[We],i=SM(e,n);return i.crossesNgTemplate?VE(e,t,n,[]):sF(e,t,i,n)}function TM(t,n,e){let i,r=pp(()=>{i._dirtyCounter();let o=QG(i,t);if(n&&o===void 0)throw new ue(-951,!1);return o});return i=r[ln],i._dirtyCounter=he(0),i._flatValue=void 0,r}function IM(t){return TM(!0,!1,t)}function AM(t){return TM(!0,!0,t)}function hF(t){return TM(!1,!1,t)}function pF(t,n){let e=t[ln];e._lView=Ne(),e._queryIndex=n,e._queryList=kM(e._lView,n),e._queryList.onDirty(()=>e._dirtyCounter.update(i=>i+1))}function QG(t,n){let e=t._lView,i=t._queryIndex;if(e===void 0||i===void 0||e[et]&4)return n?void 0:ur;let r=kM(e,i),o=mF(e,i);return r.reset(o,$R),n?r.first:r._changesDetected||t._flatValue===void 0?t._flatValue=r.toArray():t._flatValue}var as=class{},wv=class{};var tv=class extends as{ngModuleType;_parent;_bootstrapComponents=[];_r3Injector;instance;destroyCbs=[];componentFactoryResolver=new Xb(this);constructor(n,e,i,r=!0){super(),this.ngModuleType=n,this._parent=e;let o=wD(n);this._bootstrapComponents=pP(o.bootstrap),this._r3Injector=KD(n,e,[{provide:as,useValue:this},{provide:ef,useValue:this.componentFactoryResolver},...i],$s(n),new Set(["environment"])),r&&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)}},iv=class extends wv{moduleType;constructor(n){super(),this.moduleType=n}create(n){return new tv(this.moduleType,n,[])}};var Wp=class extends as{injector;componentFactoryResolver=new Xb(this);instance=null;constructor(n){super();let e=new pd([...n.providers,{provide:as,useValue:this},{provide:ef,useValue:this.componentFactoryResolver}],n.parent||Ku(),n.debugName,new Set(["environment"]));this.injector=e,n.runEnvironmentInitializers&&e.resolveInjectorInitializers()}destroy(){this.injector.destroy()}onDestroy(n){this.injector.onDestroy(n)}};function vm(t,n,e=null){return new Wp({providers:t,parent:n,debugName:e,runEnvironmentInitializers:!0}).injector}var KG=(()=>{class t{_injector;cachedInjectors=new Map;constructor(e){this._injector=e}getOrCreateStandaloneInjector(e){if(!e.standalone)return null;if(!this.cachedInjectors.has(e)){let i=DD(!1,e.type),r=i.length>0?vm([i],this._injector,`Standalone[${e.type.name}]`):null;this.cachedInjectors.set(e,r)}return this.cachedInjectors.get(e)}ngOnDestroy(){try{for(let e of this.cachedInjectors.values())e!==null&&e.destroy()}finally{this.cachedInjectors.clear()}}static \u0275prov=O({token:t,providedIn:"environment",factory:()=>new t(pe(Wt))})}return t})();function E(t){return pm(()=>{let n=fF(t),e=De(M({},n),{decls:t.decls,vars:t.vars,template:t.template,consts:t.consts||null,ngContentSelectors:t.ngContentSelectors,onPush:t.changeDetection===XE.OnPush,directiveDefs:null,pipeDefs:null,dependencies:n.standalone&&t.dependencies||null,getStandaloneInjector:n.standalone?r=>r.get(KG).getOrCreateStandaloneInjector(e):null,getExternalStyles:null,signals:t.signals??!1,data:t.data||{},encapsulation:t.encapsulation||Ys.Emulated,styles:t.styles||ur,_:null,schemas:t.schemas||null,tView:null,id:""});n.standalone&&cs("NgStandalone"),gF(e);let i=t.dependencies;return e.directiveDefs=gR(i,ZG),e.pipeDefs=gR(i,hO),e.id=e9(e),e})}function ZG(t){return Ka(t)||yb(t)}function ee(t){return pm(()=>({type:t.type,bootstrap:t.bootstrap||ur,declarations:t.declarations||ur,imports:t.imports||ur,exports:t.exports||ur,transitiveCompileScopes:null,schemas:t.schemas||null,id:t.id||null}))}function XG(t,n){if(t==null)return fa;let e={};for(let i in t)if(t.hasOwnProperty(i)){let r=t[i],o,a,s,l;Array.isArray(r)?(s=r[0],o=r[1],a=r[2]??o,l=r[3]||null):(o=r,a=r,s=mv.None,l=null),e[o]=[i,s,l],n[o]=a}return e}function JG(t){if(t==null)return fa;let n={};for(let e in t)t.hasOwnProperty(e)&&(n[t[e]]=e);return n}function F(t){return pm(()=>{let n=fF(t);return gF(n),n})}function Wr(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 fF(t){let n={};return{type:t.type,providersResolver:null,factory:null,hostBindings:t.hostBindings||null,hostVars:t.hostVars||0,hostAttrs:t.hostAttrs||null,contentQueries:t.contentQueries||null,declaredInputs:n,inputConfig:t.inputs||fa,exportAs:t.exportAs||null,standalone:t.standalone??!0,signals:t.signals===!0,selectors:t.selectors||ur,viewQuery:t.viewQuery||null,features:t.features||null,setInput:null,resolveHostDirectives:null,hostDirectives:null,inputs:XG(t.inputs,n),outputs:JG(t.outputs),debugInfo:null}}function gF(t){t.features?.forEach(n=>n(t))}function gR(t,n){return t?()=>{let e=typeof t=="function"?t():t,i=[];for(let r of e){let o=n(r);o!==null&&i.push(o)}return i}:null}function e9(t){let n=0,e=typeof t.consts=="function"?"":t.consts,i=[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 o of i.join("|"))n=Math.imul(31,n)+o.charCodeAt(0)<<0;return n+=2147483648,"c"+n}function t9(t){return Object.getPrototypeOf(t.prototype).constructor}function le(t){let n=t9(t.type),e=!0,i=[t];for(;n;){let r;if(ba(t))r=n.\u0275cmp||n.\u0275dir;else{if(n.\u0275cmp)throw new ue(903,!1);r=n.\u0275dir}if(r){if(e){i.push(r);let a=t;a.inputs=oE(t.inputs),a.declaredInputs=oE(t.declaredInputs),a.outputs=oE(t.outputs);let s=r.hostBindings;s&&a9(t,s);let l=r.viewQuery,c=r.contentQueries;if(l&&r9(t,l),c&&o9(t,c),i9(t,r),rO(t.outputs,r.outputs),ba(r)&&r.data.animation){let d=t.data;d.animation=(d.animation||[]).concat(r.data.animation)}}let o=r.features;if(o)for(let a=0;a=0;i--){let r=t[i];r.hostVars=n+=r.hostVars,r.hostAttrs=lm(r.hostAttrs,e=lm(e,r.hostAttrs))}}function oE(t){return t===fa?{}:t===ur?[]:t}function r9(t,n){let e=t.viewQuery;e?t.viewQuery=(i,r)=>{n(i,r),e(i,r)}:t.viewQuery=n}function o9(t,n){let e=t.contentQueries;e?t.contentQueries=(i,r,o)=>{n(i,r,o),e(i,r,o)}:t.contentQueries=n}function a9(t,n){let e=t.hostBindings;e?t.hostBindings=(i,r)=>{n(i,r),e(i,r)}:t.hostBindings=n}function ym(t){let n=e=>{let i=Array.isArray(t);e.hostDirectives===null?(e.resolveHostDirectives=s9,e.hostDirectives=i?t.map(BE):[t]):i?e.hostDirectives.unshift(...t.map(BE)):e.hostDirectives.unshift(t)};return n.ngInherit=!0,n}function s9(t){let n=[],e=!1,i=null,r=null;for(let o=0;o{class t{log(e){console.log(e)}warn(e){console.warn(e)}static \u0275fac=function(i){return new(i||t)};static \u0275prov=O({token:t,factory:t.\u0275fac,providedIn:"platform"})}return t})();var OM=new T("");function Xs(t){return!!t&&typeof t.then=="function"}function Ev(t){return!!t&&typeof t.subscribe=="function"}var RM=new T("");function Ql(t){return zr([{provide:RM,multi:!0,useValue:t}])}var PM=(()=>{class t{resolve;reject;initialized=!1;done=!1;donePromise=new Promise((e,i)=>{this.resolve=e,this.reject=i});appInits=u(RM,{optional:!0})??[];injector=u(de);constructor(){}runInitializers(){if(this.initialized)return;let e=[];for(let r of this.appInits){let o=In(this.injector,r);if(Xs(o))e.push(o);else if(Ev(o)){let a=new Promise((s,l)=>{o.subscribe({complete:s,error:l})});e.push(a)}}let i=()=>{this.done=!0,this.resolve()};Promise.all(e).then(()=>{i()}).catch(r=>{this.reject(r)}),e.length===0&&i(),this.initialized=!0}static \u0275fac=function(i){return new(i||t)};static \u0275prov=O({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),nf=new T("");function vF(){Aw(()=>{let t="";throw new ue(600,t)})}function yF(t){return t.isBoundToModule}var m9=10;var Gn=(()=>{class t{_runningTick=!1;_destroyed=!1;_destroyListeners=[];_views=[];internalErrorHandler=u(hr);afterRenderManager=u(pv);zonelessEnabled=u(Fp);rootEffectScheduler=u(Np);dirtyFlags=0;tracingSnapshot=null;allTestViews=new Set;autoDetectTestViews=new Set;includeAllTestViews=!1;afterTick=new z;get allViews(){return[...(this.includeAllTestViews?this.allTestViews:this.autoDetectTestViews).keys(),...this._views]}get destroyed(){return this._destroyed}componentTypes=[];components=[];internalPendingTask=u(ns);get isStable(){return this.internalPendingTask.hasPendingTasksObservable.pipe(se(e=>!e))}constructor(){u(Yl,{optional:!0})}whenStable(){let e;return new Promise(i=>{e=this.isStable.subscribe({next:r=>{r&&i()}})}).finally(()=>{e.unsubscribe()})}_injector=u(Wt);_rendererFactory=null;get injector(){return this._injector}bootstrap(e,i){return this.bootstrapImpl(e,i)}bootstrapImpl(e,i,r=de.NULL){return this._injector.get(ae).run(()=>{oi(10);let a=e instanceof Cv;if(!this._injector.get(PM).done){let v="";throw new ue(405,v)}let l;a?l=e:l=this._injector.get(ef).resolveComponentFactory(e),this.componentTypes.push(l.componentType);let c=yF(l)?void 0:this._injector.get(as),d=i||l.selector,m=l.create(r,[],d,c),f=m.location.nativeElement,b=m.injector.get(OM,null);return b?.registerApplication(f),m.onDestroy(()=>{this.detachView(m.hostView),Vp(this.components,m),b?.unregisterApplication(f)}),this._loadComponent(m),oi(11,m),m})}tick(){this.zonelessEnabled||(this.dirtyFlags|=1),this._tick()}_tick(){oi(12),this.tracingSnapshot!==null?this.tracingSnapshot.run(hv.CHANGE_DETECTION,this.tickImpl):this.tickImpl()}tickImpl=()=>{if(this._runningTick)throw new ue(101,!1);let e=Xe(null);try{this._runningTick=!0,this.synchronize()}finally{this._runningTick=!1,this.tracingSnapshot?.dispose(),this.tracingSnapshot=null,Xe(e),this.afterTick.next(),oi(13)}};synchronize(){this._rendererFactory===null&&!this._injector.destroyed&&(this._rendererFactory=this._injector.get(cn,null,{optional:!0}));let e=0;for(;this.dirtyFlags!==0&&e++Ap(e))){this.dirtyFlags|=2;return}else this.dirtyFlags&=-8}attachView(e){let i=e;this._views.push(i),i.attachToAppRef(this)}detachView(e){let i=e;Vp(this._views,i),i.detachFromAppRef()}_loadComponent(e){this.attachView(e.hostView);try{this.tick()}catch(r){this.internalErrorHandler(r)}this.components.push(e),this._injector.get(nf,[]).forEach(r=>r(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),()=>Vp(this._destroyListeners,e)}destroy(){if(this._destroyed)throw new ue(406,!1);let e=this._injector;e.destroy&&!e.destroyed&&e.destroy()}get viewCount(){return this._views.length}static \u0275fac=function(i){return new(i||t)};static \u0275prov=O({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();function Vp(t,n){let e=t.indexOf(n);e>-1&&t.splice(e,1)}function Kl(t,n){let e=Ne(),i=ts();if(Tr(e,i,n)){let r=gi(),o=rm();if(yv(o,r,e,t,n))qs(o)&&RP(e,o.index);else{let s=Vo(o,e);PP(e[ri],s,null,o.value,t,n,null)}}return Kl}function X(t,n,e,i){let r=Ne(),o=ts();if(Tr(r,o,n)){let a=gi(),s=rm();H7(s,r,t,n,e,i)}return X}var xIe=typeof document<"u"&&typeof document?.documentElement?.getAnimations=="function";function Mv(){return Ne()[mr][qi]}var jE=class{destroy(n){}updateValue(n,e){}swap(n,e){let i=Math.min(n,e),r=Math.max(n,e),o=this.detach(r);if(r-i>1){let a=this.detach(i);this.attach(i,o),this.attach(r,a)}else this.attach(i,o)}move(n,e){this.attach(e,this.detach(n))}};function aE(t,n,e,i,r){return t===e&&Object.is(n,i)?1:Object.is(r(t,n),r(e,i))?-1:0}function h9(t,n,e){let i,r,o=0,a=t.length-1,s=void 0;if(Array.isArray(n)){let l=n.length-1;for(;o<=a&&o<=l;){let c=t.at(o),d=n[o],m=aE(o,c,o,d,e);if(m!==0){m<0&&t.updateValue(o,d),o++;continue}let f=t.at(a),b=n[l],v=aE(a,f,l,b,e);if(v!==0){v<0&&t.updateValue(a,b),a--,l--;continue}let w=e(o,c),x=e(a,f),D=e(o,d);if(Object.is(D,x)){let P=e(l,b);Object.is(P,w)?(t.swap(o,a),t.updateValue(a,b),l--,a--):t.move(a,o),t.updateValue(o,d),o++;continue}if(i??=new nv,r??=yR(t,o,a,e),HE(t,i,o,D))t.updateValue(o,d),o++,a++;else if(r.has(D))i.set(w,t.detach(o)),a--;else{let P=t.create(o,n[o]);t.attach(o,P),o++,a++}}for(;o<=l;)vR(t,i,e,o,n[o]),o++}else if(n!=null){let l=n[Symbol.iterator](),c=l.next();for(;!c.done&&o<=a;){let d=t.at(o),m=c.value,f=aE(o,d,o,m,e);if(f!==0)f<0&&t.updateValue(o,m),o++,c=l.next();else{i??=new nv,r??=yR(t,o,a,e);let b=e(o,m);if(HE(t,i,o,b))t.updateValue(o,m),o++,a++,c=l.next();else if(!r.has(b))t.attach(o,t.create(o,m)),o++,a++,c=l.next();else{let v=e(o,d);i.set(v,t.detach(o)),a--}}}for(;!c.done;)vR(t,i,e,t.length,c.value),c=l.next()}for(;o<=a;)t.destroy(t.detach(a--));i?.forEach(l=>{t.destroy(l)})}function HE(t,n,e,i){return n!==void 0&&n.has(i)?(t.attach(e,n.get(i)),n.delete(i),!0):!1}function vR(t,n,e,i,r){if(HE(t,n,i,e(i,r)))t.updateValue(i,r);else{let o=t.create(i,r);t.attach(i,o)}}function yR(t,n,e,i){let r=new Set;for(let o=n;o<=e;o++)r.add(i(o,t.at(o)));return r}var nv=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 i=this.kvMap.get(n);this._vMap===void 0&&(this._vMap=new Map);let r=this._vMap;for(;r.has(i);)i=r.get(i);r.set(i,e)}else this.kvMap.set(n,e)}forEach(n){for(let[e,i]of this.kvMap)if(n(i,e),this._vMap!==void 0){let r=this._vMap;for(;r.has(i);)i=r.get(i),n(i,e)}}};function N(t,n,e,i,r,o,a,s){cs("NgControlFlow");let l=Ne(),c=gi(),d=po(c.consts,o);return um(l,c,t,n,e,i,r,d,256,a,s),FM}function FM(t,n,e,i,r,o,a,s){cs("NgControlFlow");let l=Ne(),c=gi(),d=po(c.consts,o);return um(l,c,t,n,e,i,r,d,512,a,s),FM}function L(t,n){cs("NgControlFlow");let e=Ne(),i=ts(),r=e[i]!==On?e[i]:-1,o=r!==-1?rv(e,mi+r):void 0,a=0;if(Tr(e,i,t)){let s=Xe(null);try{if(o!==void 0&&GP(o,a),t!==-1){let l=mi+t,c=rv(e,l),d=WE(e[We],l),m=YP(c,d,e),f=Xp(e,d,n,{dehydratedView:m});Jp(c,f,a,dm(d,m))}}finally{Xe(s)}}else if(o!==void 0){let s=WP(o,a);s!==void 0&&(s[qi]=n)}}var zE=class{lContainer;$implicit;$index;constructor(n,e,i){this.lContainer=n,this.$implicit=e,this.$index=i}get $count(){return this.lContainer.length-Yi}};function Hi(t){return t}function xm(t,n){return n}var UE=class{hasEmptyBlock;trackByFn;liveCollection;constructor(n,e,i){this.hasEmptyBlock=n,this.trackByFn=e,this.liveCollection=i}};function xt(t,n,e,i,r,o,a,s,l,c,d,m,f){cs("NgControlFlow");let b=Ne(),v=gi(),w=l!==void 0,x=Ne(),D=s?a.bind(x[mr][qi]):a,P=new UE(w,D);x[mi+t]=P,um(b,v,t+1,n,e,i,r,po(v.consts,o),256),w&&um(b,v,t+2,l,c,d,m,po(v.consts,f),512)}var $E=class extends jE{lContainer;hostLView;templateTNode;operationsCounter=void 0;needsIndexUpdate=!1;constructor(n,e,i){super(),this.lContainer=n,this.hostLView=e,this.templateTNode=i}get length(){return this.lContainer.length-Yi}at(n){return this.getLView(n)[qi].$implicit}attach(n,e){let i=e[gd];this.needsIndexUpdate||=n!==this.length,Jp(this.lContainer,e,n,dm(this.templateTNode,i)),p9(this.lContainer,n)}detach(n){return this.needsIndexUpdate||=n!==this.length-1,f9(this.lContainer,n),g9(this.lContainer,n)}create(n,e){let i=Kb(this.lContainer,this.templateTNode.tView.ssrId),r=Xp(this.hostLView,this.templateTNode,new zE(this.lContainer,e,n),{dehydratedView:i});return this.operationsCounter?.recordCreate(),r}destroy(n){fv(n[We],n),this.operationsCounter?.recordDestroy()}updateValue(n,e){this.getLView(n)[qi].$implicit=e}reset(){this.needsIndexUpdate=!1,this.operationsCounter?.reset()}updateIndexes(){if(this.needsIndexUpdate)for(let n=0;n0){let o=i[Ws];y7(o,r),kd.delete(i),r.detachedLeaveAnimationFns=void 0}}function f9(t,n){if(t.length<=Yi)return;let e=Yi+n,i=t[e],r=i?i[yd]:void 0;r&&r.leave&&r.leave.size>0&&(r.detachedLeaveAnimationFns=[])}function g9(t,n){return Up(t,n)}function _9(t,n){return WP(t,n)}function WE(t,n){return Ip(t,n)}function y(t,n,e){let i=Ne(),r=ts();if(Tr(i,r,n)){let o=gi(),a=rm();AP(a,i,t,n,i[ri],e)}return y}function GE(t,n,e,i,r){yv(n,t,e,r?"class":"style",i)}function h(t,n,e,i){let r=Ne(),o=r[We],a=t+mi,s=o.firstCreatePass?DM(a,r,2,n,xM,Eb(),e,i):o.data[a];if(bv(s,r,t,n,xF),Ju(s)){let l=r[We];_v(l,r,s),tM(l,s,r)}return i!=null&&_m(r,s),h}function p(){let t=gi(),n=tn(),e=vv(n);return t.firstCreatePass&&EM(t,e),HD(e)&&zD(),BD(),e.classesWithoutHost!=null&&Z$(e)&&GE(t,e,Ne(),e.classesWithoutHost,!0),e.stylesWithoutHost!=null&&X$(e)&&GE(t,e,Ne(),e.stylesWithoutHost,!1),p}function k(t,n,e,i){return h(t,n,e,i),p(),k}function ft(t,n,e,i){let r=Ne(),o=r[We],a=t+mi,s=o.firstCreatePass?XP(a,o,2,n,e,i):o.data[a];return bv(s,r,t,n,xF),i!=null&&_m(r,s),ft}function vt(){let t=tn(),n=vv(t);return HD(n)&&zD(),BD(),vt}function ai(t,n,e,i){return ft(t,n,e,i),vt(),ai}var xF=(t,n,e,i,r)=>(Pp(!0),cP(n[ri],i,BO()));function jt(t,n,e){let i=Ne(),r=i[We],o=t+mi,a=r.firstCreatePass?DM(o,i,8,"ng-container",xM,Eb(),n,e):r.data[o];if(bv(a,i,t,"ng-container",wF),Ju(a)){let s=i[We];_v(s,i,a),tM(s,a,i)}return e!=null&&_m(i,a),jt}function Lt(){let t=gi(),n=tn(),e=vv(n);return t.firstCreatePass&&EM(t,e),Lt}function Ge(t,n,e){return jt(t,n,e),Lt(),Ge}function NM(t,n,e){let i=Ne(),r=i[We],o=t+mi,a=r.firstCreatePass?XP(o,r,8,"ng-container",n,e):r.data[o];return bv(a,i,t,"ng-container",wF),e!=null&&_m(i,a),NM}function CF(){let t=tn(),n=vv(t);return Lt}function rf(t,n,e){return NM(t,n,e),CF(),rf}var wF=(t,n,e,i,r)=>(Pp(!0),$W(n[ri],""));function Y(){return Ne()}function si(t,n,e){let i=Ne(),r=ts();if(Tr(i,r,n)){let o=gi(),a=rm();OP(a,i,t,n,i[ri],e)}return si}var Nb=void 0;function b9(t){let n=Math.floor(Math.abs(t)),e=t.toString().replace(/^[^.]*\.?/,"").length;return n===1&&e===0?1:5}var v9=["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"]],Nb,[["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"]],Nb,[["B","A"],["BC","AD"],["Before Christ","Anno Domini"]],0,[6,0],["M/d/yy","MMM d, y","MMMM d, y","EEEE, MMMM d, y"],["h:mm a","h:mm:ss a","h:mm:ss a z","h:mm:ss a zzzz"],["{1}, {0}",Nb,"{1} 'at' {0}",Nb],[".",",",";","%","+","-","E","\xD7","\u2030","\u221E","NaN",":"],["#,##0.###","#,##0%","\xA4#,##0.00","#E0"],"USD","$","US Dollar",{},"ltr",b9],sE={};function Ir(t){let n=y9(t),e=xR(n);if(e)return e;let i=n.split("-")[0];if(e=xR(i),e)return e;if(i==="en")return v9;throw new ue(701,!1)}function xR(t){return t in sE||(sE[t]=Po.ng&&Po.ng.common&&Po.ng.common.locales&&Po.ng.common.locales[t]),sE[t]}var zi=(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})(zi||{});function y9(t){return t.toLowerCase().replace(/_/g,"-")}var of="en-US",x9="USD";var C9=of;function DF(t){typeof t=="string"&&(C9=t.toLowerCase().replace(/_/g,"-"))}function S(t,n,e){let i=Ne(),r=gi(),o=tn();return EF(r,i,i[ri],o,t,n,e),S}function kv(t,n,e){let i=Ne(),r=gi(),o=tn();return(o.type&3||e)&&iF(o,r,i,e,i[ri],t,n,zb(o,i,n)),kv}function EF(t,n,e,i,r,o,a){let s=!0,l=null;if((i.type&3||a)&&(l??=zb(i,n,o),iF(i,t,n,a,e,r,o,l)&&(s=!1)),s){let c=i.outputs?.[r],d=i.hostDirectiveOutputs?.[r];if(d&&d.length)for(let m=0;m>17&32767}function E9(t){return(t&2)==2}function M9(t,n){return t&131071|n<<17}function qE(t){return t|2}function mm(t){return(t&131068)>>2}function lE(t,n){return t&-131069|n<<2}function k9(t){return(t&1)===1}function YE(t){return t|1}function S9(t,n,e,i,r,o){let a=o?n.classBindings:n.styleBindings,s=Sd(a),l=mm(a);t[i]=e;let c=!1,d;if(Array.isArray(e)){let m=e;d=m[1],(d===null||Qu(m,d)>0)&&(c=!0)}else d=e;if(r)if(l!==0){let f=Sd(t[s+1]);t[i+1]=Lb(f,s),f!==0&&(t[f+1]=lE(t[f+1],i)),t[s+1]=M9(t[s+1],i)}else t[i+1]=Lb(s,0),s!==0&&(t[s+1]=lE(t[s+1],i)),s=i;else t[i+1]=Lb(l,0),s===0?s=i:t[l+1]=lE(t[l+1],i),l=i;c&&(t[i+1]=qE(t[i+1])),CR(t,d,i,!0),CR(t,d,i,!1),T9(n,d,t,i,o),a=Lb(s,l),o?n.classBindings=a:n.styleBindings=a}function T9(t,n,e,i,r){let o=r?t.residualClasses:t.residualStyles;o!=null&&typeof n=="string"&&Qu(o,n)>=0&&(e[i+1]=YE(e[i+1]))}function CR(t,n,e,i){let r=t[e+1],o=n===null,a=i?Sd(r):mm(r),s=!1;for(;a!==0&&(s===!1||o);){let l=t[a],c=t[a+1];I9(l,n)&&(s=!0,t[a+1]=i?YE(c):qE(c)),a=i?Sd(c):mm(c)}s&&(t[e+1]=i?qE(r):YE(r))}function I9(t,n){return t===null||n==null||(Array.isArray(t)?t[1]:t)===n?!0:Array.isArray(t)&&typeof n=="string"?Qu(t,n)>=0:!1}var vn={textEnd:0,key:0,keyEnd:0,value:0,valueEnd:0};function MF(t){return t.substring(vn.key,vn.keyEnd)}function A9(t){return t.substring(vn.value,vn.valueEnd)}function O9(t){return TF(t),kF(t,hm(t,0,vn.textEnd))}function kF(t,n){let e=vn.textEnd;return e===n?-1:(n=vn.keyEnd=P9(t,vn.key=n,e),hm(t,n,e))}function R9(t){return TF(t),SF(t,hm(t,0,vn.textEnd))}function SF(t,n){let e=vn.textEnd,i=vn.key=hm(t,n,e);return e===i?-1:(i=vn.keyEnd=F9(t,i,e),i=wR(t,i,e,58),i=vn.value=hm(t,i,e),i=vn.valueEnd=N9(t,i,e),wR(t,i,e,59))}function TF(t){vn.key=0,vn.keyEnd=0,vn.value=0,vn.valueEnd=0,vn.textEnd=t.length}function hm(t,n,e){for(;n32;)n++;return n}function F9(t,n,e){let i;for(;n=65&&(i&-33)<=90||i>=48&&i<=57);)n++;return n}function wR(t,n,e,i){return n=hm(t,n,e),n32&&(s=a),o=r,r=i,i=l&-33}return s}function DR(t,n,e,i){let r=-1,o=e;for(;o=0;e=SF(n,e))PF(t,MF(n),A9(n))}function it(t){AF($9,V9,t,!0)}function V9(t,n){for(let e=O9(n);e>=0;e=kF(n,e))Mp(t,MF(n),!0)}function IF(t,n,e,i){let r=Ne(),o=gi(),a=Op(2);if(o.firstUpdatePass&&RF(o,t,a,i),n!==On&&Tr(r,a,n)){let s=o.data[va()];FF(o,s,r,r[ri],t,r[a+1]=G9(n,e),i,a)}}function AF(t,n,e,i){let r=gi(),o=Op(2);r.firstUpdatePass&&RF(r,null,o,i);let a=Ne();if(e!==On&&Tr(a,o,e)){let s=r.data[va()];if(NF(s,i)&&!OF(r,o)){let l=i?s.classesWithoutHost:s.stylesWithoutHost;l!==null&&(e=fb(l,e||"")),GE(r,s,a,e,i)}else W9(r,s,a,a[ri],a[o+1],a[o+1]=U9(t,n,e),i,o)}}function OF(t,n){return n>=t.expandoStartIndex}function RF(t,n,e,i){let r=t.data;if(r[e+1]===null){let o=r[va()],a=OF(t,e);NF(o,i)&&n===null&&!a&&(n=!1),n=B9(r,o,n,i),S9(r,o,n,e,a,i)}}function B9(t,n,e,i){let r=PO(t),o=i?n.residualClasses:n.residualStyles;if(r===null)(i?n.classBindings:n.styleBindings)===0&&(e=cE(null,t,n,e,i),e=Gp(e,n.attrs,i),o=null);else{let a=n.directiveStylingLast;if(a===-1||t[a]!==r)if(e=cE(r,t,n,e,i),o===null){let l=j9(t,n,i);l!==void 0&&Array.isArray(l)&&(l=cE(null,t,n,l[1],i),l=Gp(l,n.attrs,i),H9(t,n,i,l))}else o=z9(t,n,i)}return o!==void 0&&(i?n.residualClasses=o:n.residualStyles=o),e}function j9(t,n,e){let i=e?n.classBindings:n.styleBindings;if(mm(i)!==0)return t[Sd(i)]}function H9(t,n,e,i){let r=e?n.classBindings:n.styleBindings;t[Sd(r)]=i}function z9(t,n,e){let i,r=n.directiveEnd;for(let o=1+n.directiveStylingLast;o0;){let l=t[r],c=Array.isArray(l),d=c?l[1]:l,m=d===null,f=e[r+1];f===On&&(f=m?ur:void 0);let b=m?vb(f,i):d===i?f:void 0;if(c&&!ov(b)&&(b=vb(l,i)),ov(b)&&(s=b,a))return s;let v=t[r+1];r=a?Sd(v):mm(v)}if(n!==null){let l=o?n.residualClasses:n.residualStyles;l!=null&&(s=vb(l,i))}return s}function ov(t){return t!==void 0}function G9(t,n){return t==null||t===""||(typeof n=="string"?t=t+n:typeof t=="object"&&(t=$s(Ur(t)))),t}function NF(t,n){return(t.flags&(n?8:16))!==0}function _(t,n=""){let e=Ne(),i=gi(),r=t+mi,o=i.firstCreatePass?bm(i,r,1,n,null):i.data[r],a=q9(i,e,o,n,t);e[r]=a,Ib()&&vM(i,e,a,o),im(o,!1)}var q9=(t,n,e,i,r)=>(Pp(!0),zW(n[ri],i));function LF(t,n,e,i=""){return Tr(t,ts(),e)?n+Fo(e)+i:On}function Y9(t,n,e,i,r,o=""){let a=qD(),s=$p(t,a,e,r);return Op(2),s?n+Fo(e)+i+Fo(r)+o:On}function Q9(t,n,e,i,r,o,a,s=""){let l=qD(),c=tF(t,l,e,r,a);return Op(3),c?n+Fo(e)+i+Fo(r)+o+Fo(a)+s:On}function H(t){return ve("",t),H}function ve(t,n,e){let i=Ne(),r=LF(i,t,n,e);return r!==On&&LM(i,va(),r),ve}function Od(t,n,e,i,r){let o=Ne(),a=Y9(o,t,n,e,i,r);return a!==On&&LM(o,va(),a),Od}function Cm(t,n,e,i,r,o,a){let s=Ne(),l=Q9(s,t,n,e,i,r,o,a);return l!==On&&LM(s,va(),l),Cm}function LM(t,n,e){let i=OD(n,t);UW(t[ri],i,e)}function zo(t,n,e){XD(n)&&(n=n());let i=Ne(),r=ts();if(Tr(i,r,n)){let o=gi(),a=rm();AP(a,i,t,n,i[ri],e)}return zo}function Ca(t,n){let e=XD(t);return e&&t.set(n),e}function Uo(t,n){let e=Ne(),i=gi(),r=tn();return EF(i,e,e[ri],r,t,n),Uo}function VM(t){return Tr(Ne(),ts(),t)?Fo(t):On}function $o(t,n,e=""){return LF(Ne(),t,n,e)}function K9(t,n,e){let i=gi();if(i.firstCreatePass){let r=ba(t);QE(e,i.data,i.blueprint,r,!0),QE(n,i.data,i.blueprint,r,!1)}}function QE(t,n,e,i,r){if(t=_n(t),Array.isArray(t))for(let o=0;o>20;if(hd(t)||!t.multi){let b=new Md(c,r,_e,null),v=uE(l,n,r?d:d+f,m);v===-1?(hE(qb(s,a),o,l),dE(o,t,n.length),n.push(l),s.directiveStart++,s.directiveEnd++,r&&(s.providerIndexes+=1048576),e.push(b),a.push(b)):(e[v]=b,a[v]=b)}else{let b=uE(l,n,d+f,m),v=uE(l,n,d,d+f),w=b>=0&&e[b],x=v>=0&&e[v];if(r&&!x||!r&&!w){hE(qb(s,a),o,l);let D=J9(r?X9:Z9,e.length,r,i,c,t);!r&&x&&(e[v].providerFactory=D),dE(o,t,n.length,0),n.push(l),s.directiveStart++,s.directiveEnd++,r&&(s.providerIndexes+=1048576),e.push(D),a.push(D)}else{let D=VF(e[r?v:b],c,!r&&i);dE(o,t,b>-1?b:v,D)}!r&&i&&x&&e[v].componentProviders++}}}function dE(t,n,e,i){let r=hd(n),o=_O(n);if(r||o){let l=(o?_n(n.useClass):n).prototype.ngOnDestroy;if(l){let c=t.destroyHooks||(t.destroyHooks=[]);if(!r&&n.multi){let d=c.indexOf(e);d===-1?c.push(e,[i,l]):c[d+1].push(i,l)}else c.push(e,l)}}}function VF(t,n,e){return e&&t.componentProviders++,t.multi.push(n)-1}function uE(t,n,e,i){for(let r=e;r{e.providersResolver=(i,r)=>K9(i,r?r(t):t,n)}}function at(t,n,e){let i=es()+t,r=Ne();return r[i]===On?tf(r,i,e?n.call(e):n()):DG(r,i)}function Pt(t,n,e,i){return BF(Ne(),es(),t,n,e,i)}function wa(t,n,e,i,r){return jF(Ne(),es(),t,n,e,i,r)}function Rd(t,n,e,i,r,o){return HF(Ne(),es(),t,n,e,i,r,o)}function wm(t,n,e,i,r,o,a){return zF(Ne(),es(),t,n,e,i,r,o,a)}function Sv(t,n){let e=t[n];return e===On?void 0:e}function BF(t,n,e,i,r,o){let a=n+e;return Tr(t,a,r)?tf(t,a+1,o?i.call(o,r):i(r)):Sv(t,a+1)}function jF(t,n,e,i,r,o,a){let s=n+e;return $p(t,s,r,o)?tf(t,s+2,a?i.call(a,r,o):i(r,o)):Sv(t,s+2)}function HF(t,n,e,i,r,o,a,s){let l=n+e;return tF(t,l,r,o,a)?tf(t,l+3,s?i.call(s,r,o,a):i(r,o,a)):Sv(t,l+3)}function zF(t,n,e,i,r,o,a,s,l){let c=n+e;return EG(t,c,r,o,a,s)?tf(t,c+4,l?i.call(l,r,o,a,s):i(r,o,a,s)):Sv(t,c+4)}function me(t,n){let e=gi(),i,r=t+mi;e.firstCreatePass?(i=eq(n,e.pipeRegistry),e.data[r]=i,i.onDestroy&&(e.destroyHooks??=[]).push(r,i.onDestroy)):i=e.data[r];let o=i.factory||(i.factory=Vl(i.type,!0)),a,s=kr(_e);try{let l=Gb(!1),c=o();return Gb(l),RD(e,Ne(),r,c),c}finally{kr(s)}}function eq(t,n){if(n)for(let e=n.length-1;e>=0;e--){let i=n[e];if(t===i.name)return i}}function Oe(t,n,e){let i=t+mi,r=Ne(),o=tm(r,i);return Tv(r,i)?BF(r,es(),n,o.transform,e,o):o.transform(e)}function Ni(t,n,e,i){let r=t+mi,o=Ne(),a=tm(o,r);return Tv(o,r)?jF(o,es(),n,a.transform,e,i,a):a.transform(e,i)}function BM(t,n,e,i,r){let o=t+mi,a=Ne(),s=tm(a,o);return Tv(a,o)?HF(a,es(),n,s.transform,e,i,r,s):s.transform(e,i,r)}function Dm(t,n,e,i,r,o){let a=t+mi,s=Ne(),l=tm(s,a);return Tv(s,a)?zF(s,es(),n,l.transform,e,i,r,o,l):l.transform(e,i,r,o)}function Tv(t,n){return t[We].data[n].pure}function _i(t,n){return xv(t,n)}var av=class{ngModuleFactory;componentFactories;constructor(n,e){this.ngModuleFactory=n,this.componentFactories=e}},jM=(()=>{class t{compileModuleSync(e){return new iv(e)}compileModuleAsync(e){return Promise.resolve(this.compileModuleSync(e))}compileModuleAndAllComponentsSync(e){let i=this.compileModuleSync(e),r=wD(e),o=pP(r.declarations).reduce((a,s)=>{let l=Ka(s);return l&&a.push(new Wl(l)),a},[]);return new av(i,o)}compileModuleAndAllComponentsAsync(e){return Promise.resolve(this.compileModuleAndAllComponentsSync(e))}clearCache(){}clearCacheFor(e){}getModuleId(e){}static \u0275fac=function(i){return new(i||t)};static \u0275prov=O({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();var tq=(()=>{class t{zone=u(ae);changeDetectionScheduler=u(Oo);applicationRef=u(Gn);applicationErrorHandler=u(hr);_onMicrotaskEmptySubscription;initialize(){this._onMicrotaskEmptySubscription||(this._onMicrotaskEmptySubscription=this.zone.onMicrotaskEmpty.subscribe({next:()=>{this.changeDetectionScheduler.runningTick||this.zone.run(()=>{try{this.applicationRef.dirtyFlags|=1,this.applicationRef._tick()}catch(e){this.applicationErrorHandler(e)}})}}))}ngOnDestroy(){this._onMicrotaskEmptySubscription?.unsubscribe()}static \u0275fac=function(i){return new(i||t)};static \u0275prov=O({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();function UF({ngZoneFactory:t,ignoreChangesOutsideZone:n,scheduleInRootZone:e}){return t??=()=>new ae(De(M({},$F()),{scheduleInRootZone:e})),[{provide:ae,useFactory:t},{provide:Qa,multi:!0,useFactory:()=>{let i=u(tq,{optional:!0});return()=>i.initialize()}},{provide:Qa,multi:!0,useFactory:()=>{let i=u(iq);return()=>{i.initialize()}}},n===!0?{provide:JD,useValue:!0}:[],{provide:eE,useValue:e??yP},{provide:hr,useFactory:()=>{let i=u(ae),r=u(Wt),o;return a=>{i.runOutsideAngular(()=>{r.destroyed&&!o?setTimeout(()=>{throw a}):(o??=r.get(Tn),o.handleError(a))})}}}]}function $F(t){return{enableLongStackTrace:!1,shouldCoalesceEventChangeDetection:t?.eventCoalescing??!1,shouldCoalesceRunChangeDetection:t?.runCoalescing??!1}}var iq=(()=>{class t{subscription=new ke;initialized=!1;zone=u(ae);pendingTasks=u(ns);initialize(){if(this.initialized)return;this.initialized=!0;let e=null;!this.zone.isStable&&!this.zone.hasPendingMacrotasks&&!this.zone.hasPendingMicrotasks&&(e=this.pendingTasks.add()),this.zone.runOutsideAngular(()=>{this.subscription.add(this.zone.onStable.subscribe(()=>{ae.assertNotInAngularZone(),queueMicrotask(()=>{e!==null&&!this.zone.hasPendingMacrotasks&&!this.zone.hasPendingMicrotasks&&(this.pendingTasks.remove(e),e=null)})}))}),this.subscription.add(this.zone.onUnstable.subscribe(()=>{ae.assertInAngularZone(),e??=this.pendingTasks.add()}))}ngOnDestroy(){this.subscription.unsubscribe()}static \u0275fac=function(i){return new(i||t)};static \u0275prov=O({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();var WF=(()=>{class t{applicationErrorHandler=u(hr);appRef=u(Gn);taskService=u(ns);ngZone=u(ae);zonelessEnabled=u(Fp);tracing=u(Yl,{optional:!0});disableScheduling=u(JD,{optional:!0})??!1;zoneIsDefined=typeof Zone<"u"&&!!Zone.root.run;schedulerTickApplyArgs=[{data:{__scheduler_tick__:!0}}];subscriptions=new ke;angularZoneId=this.zoneIsDefined?this.ngZone._inner?.get(Qb):null;scheduleInRootZone=!this.zonelessEnabled&&this.zoneIsDefined&&(u(eE,{optional:!0})??!1);cancelScheduledCallback=null;useMicrotaskScheduler=!1;runningTick=!1;pendingRenderTaskId=null;constructor(){this.subscriptions.add(this.appRef.afterTick.subscribe(()=>{this.runningTick||this.cleanup()})),this.subscriptions.add(this.ngZone.onUnstable.subscribe(()=>{this.runningTick||this.cleanup()})),this.disableScheduling||=!this.zonelessEnabled&&(this.ngZone instanceof jp||!this.zoneIsDefined)}notify(e){if(!this.zonelessEnabled&&e===5)return;let i=!1;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,i=!0;break}case 12:{this.appRef.dirtyFlags|=16,i=!0;break}case 13:{this.appRef.dirtyFlags|=2,i=!0;break}case 11:{i=!0;break}case 9:case 8:case 7:case 10:default:this.appRef.dirtyFlags|=8}if(this.appRef.tracingSnapshot=this.tracing?.snapshot(this.appRef.tracingSnapshot)??null,!this.shouldScheduleTick(i))return;let r=this.useMicrotaskScheduler?nR:xP;this.pendingRenderTaskId=this.taskService.add(),this.scheduleInRootZone?this.cancelScheduledCallback=Zone.root.run(()=>r(()=>this.tick())):this.cancelScheduledCallback=this.ngZone.runOutsideAngular(()=>r(()=>this.tick()))}shouldScheduleTick(e){return!(this.disableScheduling&&!e||this.appRef.destroyed||this.pendingRenderTaskId!==null||this.runningTick||this.appRef._runningTick||!this.zonelessEnabled&&this.zoneIsDefined&&Zone.current.get(Qb+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(i){this.taskService.remove(e),this.applicationErrorHandler(i)}finally{this.cleanup()}this.useMicrotaskScheduler=!0,nR(()=>{this.useMicrotaskScheduler=!1,this.taskService.remove(e)})}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(i){return new(i||t)};static \u0275prov=O({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();function nq(){return typeof $localize<"u"&&$localize.locale||of}var el=new T("",{providedIn:"root",factory:()=>u(el,{optional:!0,skipSelf:!0})||nq()}),HM=new T("",{providedIn:"root",factory:()=>x9});var af=class{destroyed=!1;listeners=null;errorHandler=u(Tn,{optional:!0});destroyRef=u(nn);constructor(){this.destroyRef.onDestroy(()=>{this.destroyed=!0,this.listeners=null})}subscribe(n){if(this.destroyed)throw new ue(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(Ro(953,!1));return}if(this.listeners===null)return;let e=Xe(null);try{for(let i of this.listeners)try{i(n)}catch(r){this.errorHandler?.handleError(r)}}finally{Xe(e)}}};function UM(t){return t.destroyRef}function Ti(t){return JA(t)}function Zt(t,n){return pp(t,n?.equal)}var zM=class{[ln];constructor(n){this[ln]=n}destroy(){this[ln].destroy()}};function Ar(t,n){let e=n?.injector??u(de),i=n?.manualCleanup!==!0?e.get(nn):null,r,o=e.get(wd,null,{optional:!0}),a=e.get(Oo);return o!==null?(r=aq(o.view,a,t),i instanceof Cp&&i._lView===o.view&&(i=null)):r=sq(t,e.get(Np),a),r.injector=e,i!==null&&(r.onDestroyFn=i.onDestroy(()=>r.destroy())),new zM(r)}var GF=De(M({},eO),{cleanupFns:void 0,zone:null,onDestroyFn:Dd,run(){let t=nm(!1);try{tO(this)}finally{nm(t)}},cleanup(){if(!this.cleanupFns?.length)return;let t=Xe(null);try{for(;this.cleanupFns.length;)this.cleanupFns.pop()()}finally{this.cleanupFns=[],Xe(t)}}}),rq=De(M({},GF),{consumerMarkedDirty(){this.scheduler.schedule(this),this.notifier.notify(12)},destroy(){Tl(this),this.onDestroyFn(),this.cleanup(),this.scheduler.remove(this)}}),oq=De(M({},GF),{consumerMarkedDirty(){this.view[et]|=8192,zl(this.view),this.notifier.notify(13)},destroy(){Tl(this),this.onDestroyFn(),this.cleanup(),this.view[Gs]?.delete(this)}});function aq(t,n,e){let i=Object.create(oq);return i.view=t,i.zone=typeof Zone<"u"?Zone.current:null,i.notifier=n,i.fn=qF(i,e),t[Gs]??=new Set,t[Gs].add(i),i.consumerMarkedDirty(i),i}function sq(t,n,e){let i=Object.create(rq);return i.fn=qF(i,t),i.scheduler=n,i.notifier=e,i.zone=typeof Zone<"u"?Zone.current:null,i.scheduler.add(i),i.notifier.notify(12),i}function qF(t,n){return()=>{n(e=>(t.cleanupFns??=[]).push(e))}}var Ov=Symbol("InputSignalNode#UNSET"),i2=De(M({},fp),{transformFn:void 0,applyValueToInputSignal(t,n){rd(t,n)}});function n2(t,n){let e=Object.create(i2);e.value=t,e.transformFn=n?.transform;function i(){if(kl(e),e.value===Ov){let r=null;throw new ue(-950,r)}return e.value}return i[ln]=e,i}var Ii=class{attributeName;constructor(n){this.attributeName=n}__NG_ELEMENT_ID__=()=>qp(this.attributeName);toString(){return`HostAttributeToken ${this.attributeName}`}},ZM=new T("");ZM.__NG_ELEMENT_ID__=t=>{let n=tn();if(n===null)throw new ue(204,!1);if(n.type&2)return n.value;if(t&8)return null;throw new ue(204,!1)};function bi(t){return new af}function YF(t,n){return n2(t,n)}function xq(t){return n2(Ov,t)}var ne=(YF.required=xq,YF);function QF(t,n){return IM(n)}function Cq(t,n){return AM(n)}var qn=(QF.required=Cq,QF);function KF(t,n){return IM(n)}function wq(t,n){return AM(n)}var fr=(KF.required=wq,KF);function r2(t,n){return hF(n)}function o2(t,n){let e=Object.create(i2),i=new af;e.value=t;function r(){return kl(e),ZF(e.value),e.value}return r[ln]=e,r.asReadonly=Ab.bind(r),r.set=o=>{e.equal(e.value,o)||(rd(e,o),i.emit(o))},r.update=o=>{ZF(e.value),r.set(o(e.value))},r.subscribe=i.subscribe.bind(i),r.destroyRef=i.destroyRef,r}function ZF(t){if(t===Ov)throw new ue(952,!1)}function XF(t,n){return o2(t,n)}function Dq(t){return o2(Ov,t)}var Em=(XF.required=Dq,XF);var WM=new T(""),Eq=new T("");function sf(t){return!t.moduleRef}function Mq(t){let n=sf(t)?t.r3Injector:t.moduleRef.injector,e=n.get(ae);return e.run(()=>{sf(t)?t.r3Injector.resolveInjectorInitializers():t.moduleRef.resolveInjectorInitializers();let i=n.get(hr),r;if(e.runOutsideAngular(()=>{r=e.onError.subscribe({next:i})}),sf(t)){let o=()=>n.destroy(),a=t.platformInjector.get(WM);a.add(o),n.onDestroy(()=>{r.unsubscribe(),a.delete(o)})}else{let o=()=>t.moduleRef.destroy(),a=t.platformInjector.get(WM);a.add(o),t.moduleRef.onDestroy(()=>{Vp(t.allPlatformModules,t.moduleRef),r.unsubscribe(),a.delete(o)})}return Sq(i,e,()=>{let o=n.get(ns),a=o.add(),s=n.get(PM);return s.runInitializers(),s.donePromise.then(()=>{let l=n.get(el,of);if(DF(l||of),!n.get(Eq,!0))return sf(t)?n.get(Gn):(t.allPlatformModules.push(t.moduleRef),t.moduleRef);if(sf(t)){let d=n.get(Gn);return t.rootComponent!==void 0&&d.bootstrap(t.rootComponent),d}else return kq?.(t.moduleRef,t.allPlatformModules),t.moduleRef}).finally(()=>void o.remove(a))})})}var kq;function Sq(t,n,e){try{let i=e();return Xs(i)?i.catch(r=>{throw n.runOutsideAngular(()=>t(r)),r}):i}catch(i){throw n.runOutsideAngular(()=>t(i)),i}}var Iv=null;function Tq(t=[],n){return de.create({name:n,providers:[{provide:kp,useValue:"platform"},{provide:WM,useValue:new Set([()=>Iv=null])},...t]})}function Iq(t=[]){if(Iv)return Iv;let n=Tq(t);return Iv=n,vF(),Aq(n),n}function Aq(t){let n=t.get(sv,null);In(t,()=>{n?.forEach(e=>e())})}var ye=(()=>{class t{static __NG_ELEMENT_ID__=Oq}return t})();function Oq(t){return Rq(tn(),Ne(),(t&16)===16)}function Rq(t,n,e){if(qs(t)&&!e){let i=Bo(t.index,n);return new $l(i,i)}else if(t.type&175){let i=n[mr];return new $l(i,n)}return null}var GM=class{constructor(){}supports(n){return MM(n)}create(n){return new qM(n)}},Pq=(t,n)=>n,qM=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||Pq}forEachItem(n){let e;for(e=this._itHead;e!==null;e=e._next)n(e)}forEachOperation(n){let e=this._itHead,i=this._removalsHead,r=0,o=null;for(;e||i;){let a=!i||e&&e.currentIndex{a=this._trackByFn(r,s),e===null||!Object.is(e.trackById,a)?(e=this._mismatch(e,s,a,r),i=!0):(i&&(e=this._verifyReinsertion(e,s,a,r)),Object.is(e.item,s)||this._addIdentityChange(e,s)),e=e._next,r++}),this.length=r;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,i,r){let o;return n===null?o=this._itTail:(o=n._prev,this._remove(n)),n=this._unlinkedRecords===null?null:this._unlinkedRecords.get(i,null),n!==null?(Object.is(n.item,e)||this._addIdentityChange(n,e),this._reinsertAfter(n,o,r)):(n=this._linkedRecords===null?null:this._linkedRecords.get(i,r),n!==null?(Object.is(n.item,e)||this._addIdentityChange(n,e),this._moveAfter(n,o,r)):n=this._addAfter(new YM(e,i),o,r)),n}_verifyReinsertion(n,e,i,r){let o=this._unlinkedRecords===null?null:this._unlinkedRecords.get(i,null);return o!==null?n=this._reinsertAfter(o,n._prev,r):n.currentIndex!=r&&(n.currentIndex=r,this._addToMoves(n,r)),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,i){this._unlinkedRecords!==null&&this._unlinkedRecords.remove(n);let r=n._prevRemoved,o=n._nextRemoved;return r===null?this._removalsHead=o:r._nextRemoved=o,o===null?this._removalsTail=r:o._prevRemoved=r,this._insertAfter(n,e,i),this._addToMoves(n,i),n}_moveAfter(n,e,i){return this._unlink(n),this._insertAfter(n,e,i),this._addToMoves(n,i),n}_addAfter(n,e,i){return this._insertAfter(n,e,i),this._additionsTail===null?this._additionsTail=this._additionsHead=n:this._additionsTail=this._additionsTail._nextAdded=n,n}_insertAfter(n,e,i){let r=e===null?this._itHead:e._next;return n._next=r,n._prev=e,r===null?this._itTail=n:r._prev=n,e===null?this._itHead=n:e._next=n,this._linkedRecords===null&&(this._linkedRecords=new Av),this._linkedRecords.put(n),n.currentIndex=i,n}_remove(n){return this._addToRemovals(this._unlink(n))}_unlink(n){this._linkedRecords!==null&&this._linkedRecords.remove(n);let e=n._prev,i=n._next;return e===null?this._itHead=i:e._next=i,i===null?this._itTail=e:i._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 Av),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}},QM=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 i;for(i=this._head;i!==null;i=i._nextDup)if((e===null||e<=i.currentIndex)&&Object.is(i.trackById,n))return i;return null}remove(n){let e=n._prevDup,i=n._nextDup;return e===null?this._head=i:e._nextDup=i,i===null?this._tail=e:i._prevDup=e,this._head===null}},Av=class{map=new Map;put(n){let e=n.trackById,i=this.map.get(e);i||(i=new QM,this.map.set(e,i)),i.add(n)}get(n,e){let i=n,r=this.map.get(i);return r?r.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 JF(t,n,e){let i=t.previousIndex;if(i===null)return i;let r=0;return e&&i{class t{factories;static \u0275prov=O({token:t,providedIn:"root",factory:e2});constructor(e){this.factories=e}static create(e,i){if(i!=null){let r=i.factories.slice();e=e.concat(r)}return new t(e)}static extend(e){return{provide:t,useFactory:()=>{let i=u(t,{optional:!0,skipSelf:!0});return t.create(e,i||e2())}}}find(e){let i=this.factories.find(r=>r.supports(e));if(i!=null)return i;throw new ue(901,!1)}}return t})();function a2(t){let{rootComponent:n,appProviders:e,platformProviders:i,platformRef:r}=t;oi(8);try{let o=r?.injector??Iq(i),a=[UF({}),{provide:Oo,useExisting:WF},HO,...e||[]],s=new Wp({providers:a,parent:o,debugName:"",runEnvironmentInitializers:!1});return Mq({r3Injector:s.injector,platformInjector:o,rootComponent:n})}catch(o){return Promise.reject(o)}finally{oi(9)}}function V(t){return typeof t=="boolean"?t:t!=null&&t!=="false"}function ct(t,n=NaN){return!isNaN(parseFloat(t))&&!isNaN(Number(t))?Number(t):n}var $M=Symbol("NOT_SET"),s2=new Set,Fq=De(M({},fp),{consumerIsAlwaysLive:!0,consumerAllowSignalWrites:!0,value:$M,cleanup:null,consumerMarkedDirty(){if(this.sequence.impl.executing){if(this.sequence.lastPhase===null||this.sequence.lastPhase(kl(c),c.value),c.signal[ln]=c,c.registerCleanupFn=d=>(c.cleanup??=new Set).add(d),this.nodes[s]=c,this.hooks[s]=d=>c.phaseFn(d)}}afterRun(){super.afterRun(),this.lastPhase=null}destroy(){super.destroy();for(let n of this.nodes)if(n)try{for(let e of n.cleanup??s2)e()}finally{Tl(n)}}};function l2(t,n){let e=n?.injector??u(de),i=e.get(Oo),r=e.get(pv),o=e.get(Yl,null,{optional:!0});r.impl??=e.get(_M);let a=t;typeof a=="function"&&(a={mixedReadWrite:t});let s=e.get(wd,null,{optional:!0}),l=new KM(r.impl,[a.earlyRead,a.write,a.mixedReadWrite,a.read],s?.view,i,e,o?.snapshot(null));return r.impl.register(l),l}function Mm(t,n){let e=Ka(t),i=n.elementInjector||Ku();return new Wl(e).create(i,n.projectableNodes,n.hostElement,n.environmentInjector,n.directives,n.bindings)}function c2(t){let n=Ka(t);if(!n)return null;let e=new Wl(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 m2=null;function Wo(){return m2}function XM(t){m2??=t}var lf=class{},cf=(()=>{class t{historyGo(e){throw new Error("")}static \u0275fac=function(i){return new(i||t)};static \u0275prov=O({token:t,factory:()=>u(h2),providedIn:"platform"})}return t})(),JM=new T(""),h2=(()=>{class t extends cf{_location;_history;_doc=u(ge);constructor(){super(),this._location=window.location,this._history=window.history}getBaseHrefFromDOM(){return Wo().getBaseHref(this._doc)}onPopState(e){let i=Wo().getGlobalEventTarget(this._doc,"window");return i.addEventListener("popstate",e,!1),()=>i.removeEventListener("popstate",e)}onHashChange(e){let i=Wo().getGlobalEventTarget(this._doc,"window");return i.addEventListener("hashchange",e,!1),()=>i.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,i,r){this._history.pushState(e,i,r)}replaceState(e,i,r){this._history.replaceState(e,i,r)}forward(){this._history.forward()}back(){this._history.back()}historyGo(e=0){this._history.go(e)}getState(){return this._history.state}static \u0275fac=function(i){return new(i||t)};static \u0275prov=O({token:t,factory:()=>new t,providedIn:"platform"})}return t})();function Rv(t,n){return t?n?t.endsWith("/")?n.startsWith("/")?t+n.slice(1):t+n:n.startsWith("/")?t+n:`${t}/${n}`:t:n}function d2(t){let n=t.search(/#|\?|$/);return t[n-1]==="/"?t.slice(0,n-1)+t.slice(n):t}function Da(t){return t&&t[0]!=="?"?`?${t}`:t}var Ea=(()=>{class t{historyGo(e){throw new Error("")}static \u0275fac=function(i){return new(i||t)};static \u0275prov=O({token:t,factory:()=>u(Fv),providedIn:"root"})}return t})(),Pv=new T(""),Fv=(()=>{class t extends Ea{_platformLocation;_baseHref;_removeListenerFns=[];constructor(e,i){super(),this._platformLocation=e,this._baseHref=i??this._platformLocation.getBaseHrefFromDOM()??u(ge).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 Rv(this._baseHref,e)}path(e=!1){let i=this._platformLocation.pathname+Da(this._platformLocation.search),r=this._platformLocation.hash;return r&&e?`${i}${r}`:i}pushState(e,i,r,o){let a=this.prepareExternalUrl(r+Da(o));this._platformLocation.pushState(e,i,a)}replaceState(e,i,r,o){let a=this.prepareExternalUrl(r+Da(o));this._platformLocation.replaceState(e,i,a)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}getState(){return this._platformLocation.getState()}historyGo(e=0){this._platformLocation.historyGo?.(e)}static \u0275fac=function(i){return new(i||t)(pe(cf),pe(Pv,8))};static \u0275prov=O({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),us=(()=>{class t{_subject=new z;_basePath;_locationStrategy;_urlChangeListeners=[];_urlChangeSubscription=null;constructor(e){this._locationStrategy=e;let i=this._locationStrategy.getBaseHref();this._basePath=Vq(d2(u2(i))),this._locationStrategy.onPopState(r=>{this._subject.next({url:this.path(!0),pop:!0,state:r.state,type:r.type})})}ngOnDestroy(){this._urlChangeSubscription?.unsubscribe(),this._urlChangeListeners=[]}path(e=!1){return this.normalize(this._locationStrategy.path(e))}getState(){return this._locationStrategy.getState()}isCurrentPathEqualTo(e,i=""){return this.path()==this.normalize(e+Da(i))}normalize(e){return t.stripTrailingSlash(Lq(this._basePath,u2(e)))}prepareExternalUrl(e){return e&&e[0]!=="/"&&(e="/"+e),this._locationStrategy.prepareExternalUrl(e)}go(e,i="",r=null){this._locationStrategy.pushState(r,"",e,i),this._notifyUrlChangeListeners(this.prepareExternalUrl(e+Da(i)),r)}replaceState(e,i="",r=null){this._locationStrategy.replaceState(r,"",e,i),this._notifyUrlChangeListeners(this.prepareExternalUrl(e+Da(i)),r)}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(i=>{this._notifyUrlChangeListeners(i.url,i.state)}),()=>{let i=this._urlChangeListeners.indexOf(e);this._urlChangeListeners.splice(i,1),this._urlChangeListeners.length===0&&(this._urlChangeSubscription?.unsubscribe(),this._urlChangeSubscription=null)}}_notifyUrlChangeListeners(e="",i){this._urlChangeListeners.forEach(r=>r(e,i))}subscribe(e,i,r){return this._subject.subscribe({next:e,error:i??void 0,complete:r??void 0})}static normalizeQueryParams=Da;static joinWithSlash=Rv;static stripTrailingSlash=d2;static \u0275fac=function(i){return new(i||t)(pe(Ea))};static \u0275prov=O({token:t,factory:()=>Nq(),providedIn:"root"})}return t})();function Nq(){return new us(pe(Ea))}function Lq(t,n){if(!t||!n.startsWith(t))return n;let e=n.substring(t.length);return e===""||["/",";","?","#"].includes(e[0])?e:n}function u2(t){return t.replace(/\/index.html$/,"")}function Vq(t){if(new RegExp("^(https?:)?//").test(t)){let[,e]=t.split(/\/\/[^\/]+/);return e}return t}var l1=(()=>{class t extends Ea{_platformLocation;_baseHref="";_removeListenerFns=[];constructor(e,i){super(),this._platformLocation=e,i!=null&&(this._baseHref=i)}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 i=this._platformLocation.hash??"#";return i.length>0?i.substring(1):i}prepareExternalUrl(e){let i=Rv(this._baseHref,e);return i.length>0?"#"+i:i}pushState(e,i,r,o){let a=this.prepareExternalUrl(r+Da(o))||this._platformLocation.pathname;this._platformLocation.pushState(e,i,a)}replaceState(e,i,r,o){let a=this.prepareExternalUrl(r+Da(o))||this._platformLocation.pathname;this._platformLocation.replaceState(e,i,a)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}getState(){return this._platformLocation.getState()}historyGo(e=0){this._platformLocation.historyGo?.(e)}static \u0275fac=function(i){return new(i||t)(pe(cf),pe(Pv,8))};static \u0275prov=O({token:t,factory:t.\u0275fac})}return t})(),y2={ADP:[void 0,void 0,0],AFN:[void 0,"\u060B",0],ALL:[void 0,void 0,0],AMD:[void 0,"\u058F",2],AOA:[void 0,"Kz"],ARS:[void 0,"$"],AUD:["A$","$"],AZN:[void 0,"\u20BC"],BAM:[void 0,"KM"],BBD:[void 0,"$"],BDT:[void 0,"\u09F3"],BHD:[void 0,void 0,3],BIF:[void 0,void 0,0],BMD:[void 0,"$"],BND:[void 0,"$"],BOB:[void 0,"Bs"],BRL:["R$"],BSD:[void 0,"$"],BWP:[void 0,"P"],BYN:[void 0,void 0,2],BYR:[void 0,void 0,0],BZD:[void 0,"$"],CAD:["CA$","$",2],CHF:[void 0,void 0,2],CLF:[void 0,void 0,4],CLP:[void 0,"$",0],CNY:["CN\xA5","\xA5"],COP:[void 0,"$",2],CRC:[void 0,"\u20A1",2],CUC:[void 0,"$"],CUP:[void 0,"$"],CZK:[void 0,"K\u010D",2],DJF:[void 0,void 0,0],DKK:[void 0,"kr",2],DOP:[void 0,"$"],EGP:[void 0,"E\xA3"],ESP:[void 0,"\u20A7",0],EUR:["\u20AC"],FJD:[void 0,"$"],FKP:[void 0,"\xA3"],GBP:["\xA3"],GEL:[void 0,"\u20BE"],GHS:[void 0,"GH\u20B5"],GIP:[void 0,"\xA3"],GNF:[void 0,"FG",0],GTQ:[void 0,"Q"],GYD:[void 0,"$",2],HKD:["HK$","$"],HNL:[void 0,"L"],HRK:[void 0,"kn"],HUF:[void 0,"Ft",2],IDR:[void 0,"Rp",2],ILS:["\u20AA"],INR:["\u20B9"],IQD:[void 0,void 0,0],IRR:[void 0,void 0,0],ISK:[void 0,"kr",0],ITL:[void 0,void 0,0],JMD:[void 0,"$"],JOD:[void 0,void 0,3],JPY:["\xA5",void 0,0],KHR:[void 0,"\u17DB"],KMF:[void 0,"CF",0],KPW:[void 0,"\u20A9",0],KRW:["\u20A9",void 0,0],KWD:[void 0,void 0,3],KYD:[void 0,"$"],KZT:[void 0,"\u20B8"],LAK:[void 0,"\u20AD",0],LBP:[void 0,"L\xA3",0],LKR:[void 0,"Rs"],LRD:[void 0,"$"],LTL:[void 0,"Lt"],LUF:[void 0,void 0,0],LVL:[void 0,"Ls"],LYD:[void 0,void 0,3],MGA:[void 0,"Ar",0],MGF:[void 0,void 0,0],MMK:[void 0,"K",0],MNT:[void 0,"\u20AE",2],MRO:[void 0,void 0,0],MUR:[void 0,"Rs",2],MXN:["MX$","$"],MYR:[void 0,"RM"],NAD:[void 0,"$"],NGN:[void 0,"\u20A6"],NIO:[void 0,"C$"],NOK:[void 0,"kr",2],NPR:[void 0,"Rs"],NZD:["NZ$","$"],OMR:[void 0,void 0,3],PHP:["\u20B1"],PKR:[void 0,"Rs",2],PLN:[void 0,"z\u0142"],PYG:[void 0,"\u20B2",0],RON:[void 0,"lei"],RSD:[void 0,void 0,0],RUB:[void 0,"\u20BD"],RWF:[void 0,"RF",0],SBD:[void 0,"$"],SEK:[void 0,"kr",2],SGD:[void 0,"$"],SHP:[void 0,"\xA3"],SLE:[void 0,void 0,2],SLL:[void 0,void 0,0],SOS:[void 0,void 0,0],SRD:[void 0,"$"],SSP:[void 0,"\xA3"],STD:[void 0,void 0,0],STN:[void 0,"Db"],SYP:[void 0,"\xA3",0],THB:[void 0,"\u0E3F"],TMM:[void 0,void 0,0],TND:[void 0,void 0,3],TOP:[void 0,"T$"],TRL:[void 0,void 0,0],TRY:[void 0,"\u20BA"],TTD:[void 0,"$"],TWD:["NT$","$",2],TZS:[void 0,void 0,2],UAH:[void 0,"\u20B4"],UGX:[void 0,void 0,0],USD:["$"],UYI:[void 0,void 0,0],UYU:[void 0,"$"],UYW:[void 0,void 0,4],UZS:[void 0,void 0,2],VEF:[void 0,"Bs",2],VND:["\u20AB",void 0,0],VUV:[void 0,void 0,0],XAF:["FCFA",void 0,0],XCD:["EC$","$"],XOF:["F\u202FCFA",void 0,0],XPF:["CFPF",void 0,0],XXX:["\xA4"],YER:[void 0,void 0,0],ZAR:[void 0,"R"],ZMK:[void 0,void 0,0],ZMW:[void 0,"ZK"],ZWD:[void 0,void 0,0]},Wv=(function(t){return t[t.Decimal=0]="Decimal",t[t.Percent=1]="Percent",t[t.Currency=2]="Currency",t[t.Scientific=3]="Scientific",t})(Wv||{});var gr=(function(t){return t[t.Format=0]="Format",t[t.Standalone=1]="Standalone",t})(gr||{}),hi=(function(t){return t[t.Narrow=0]="Narrow",t[t.Abbreviated=1]="Abbreviated",t[t.Wide=2]="Wide",t[t.Short=3]="Short",t})(hi||{}),Gr=(function(t){return t[t.Short=0]="Short",t[t.Medium=1]="Medium",t[t.Long=2]="Long",t[t.Full=3]="Full",t})(Gr||{}),Yn={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 x2(t){return Ir(t)[zi.LocaleId]}function C2(t,n,e){let i=Ir(t),r=[i[zi.DayPeriodsFormat],i[zi.DayPeriodsStandalone]],o=Go(r,n);return Go(o,e)}function w2(t,n,e){let i=Ir(t),r=[i[zi.DaysFormat],i[zi.DaysStandalone]],o=Go(r,n);return Go(o,e)}function D2(t,n,e){let i=Ir(t),r=[i[zi.MonthsFormat],i[zi.MonthsStandalone]],o=Go(r,n);return Go(o,e)}function E2(t,n){let i=Ir(t)[zi.Eras];return Go(i,n)}function df(t,n){let e=Ir(t);return Go(e[zi.DateFormat],n)}function uf(t,n){let e=Ir(t);return Go(e[zi.TimeFormat],n)}function mf(t,n){let i=Ir(t)[zi.DateTimeFormat];return Go(i,n)}function ka(t,n){let e=Ir(t),i=e[zi.NumberSymbols][n];if(typeof i>"u"){if(n===Yn.CurrencyDecimal)return e[zi.NumberSymbols][Yn.Decimal];if(n===Yn.CurrencyGroup)return e[zi.NumberSymbols][Yn.Group]}return i}function c1(t,n){return Ir(t)[zi.NumberFormats][n]}function Bq(t){return Ir(t)[zi.Currencies]}function M2(t){if(!t[zi.ExtraData])throw new ue(2303,!1)}function k2(t){let n=Ir(t);return M2(n),(n[zi.ExtraData][2]||[]).map(i=>typeof i=="string"?e1(i):[e1(i[0]),e1(i[1])])}function S2(t,n,e){let i=Ir(t);M2(i);let r=[i[zi.ExtraData][0],i[zi.ExtraData][1]],o=Go(r,n)||[];return Go(o,e)||[]}function Go(t,n){for(let e=n;e>-1;e--)if(typeof t[e]<"u")return t[e];throw new ue(2304,!1)}function e1(t){let[n,e]=t.split(":");return{hours:+n,minutes:+e}}function T2(t,n,e="en"){let i=Bq(e)[t]||y2[t]||[],r=i[1];return n==="narrow"&&typeof r=="string"?r:i[0]||t}var jq=2;function I2(t){let n,e=y2[t];return e&&(n=e[2]),typeof n=="number"?n:jq}var Hq=/^(\d{4,})-?(\d\d)-?(\d\d)(?:T(\d\d)(?::?(\d\d)(?::?(\d\d)(?:\.(\d+))?)?)?(Z|([+-])(\d\d):?(\d\d))?)?$/,Nv={},zq=/((?:[^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]*)/;function A2(t,n,e,i){let r=Zq(t);n=tl(e,n)||n;let a=[],s;for(;n;)if(s=zq.exec(n),s){a=a.concat(s.slice(1));let d=a.pop();if(!d)break;n=d}else{a.push(n);break}let l=r.getTimezoneOffset();i&&(l=R2(i,l),r=Kq(r,i));let c="";return a.forEach(d=>{let m=Yq(d);c+=m?m(r,e,l):d==="''"?"'":d.replace(/(^'|'$)/g,"").replace(/''/g,"'")}),c}function Hv(t,n,e){let i=new Date(0);return i.setFullYear(t,n,e),i.setHours(0,0,0),i}function tl(t,n){let e=x2(t);if(Nv[e]??={},Nv[e][n])return Nv[e][n];let i="";switch(n){case"shortDate":i=df(t,Gr.Short);break;case"mediumDate":i=df(t,Gr.Medium);break;case"longDate":i=df(t,Gr.Long);break;case"fullDate":i=df(t,Gr.Full);break;case"shortTime":i=uf(t,Gr.Short);break;case"mediumTime":i=uf(t,Gr.Medium);break;case"longTime":i=uf(t,Gr.Long);break;case"fullTime":i=uf(t,Gr.Full);break;case"short":let r=tl(t,"shortTime"),o=tl(t,"shortDate");i=Lv(mf(t,Gr.Short),[r,o]);break;case"medium":let a=tl(t,"mediumTime"),s=tl(t,"mediumDate");i=Lv(mf(t,Gr.Medium),[a,s]);break;case"long":let l=tl(t,"longTime"),c=tl(t,"longDate");i=Lv(mf(t,Gr.Long),[l,c]);break;case"full":let d=tl(t,"fullTime"),m=tl(t,"fullDate");i=Lv(mf(t,Gr.Full),[d,m]);break}return i&&(Nv[e][n]=i),i}function Lv(t,n){return n&&(t=t.replace(/\{([^}]+)}/g,function(e,i){return n!=null&&i in n?n[i]:e})),t}function Ma(t,n,e="-",i,r){let o="";(t<0||r&&t<=0)&&(r?t=-t+1:(t=-t,o=e));let a=String(t);for(;a.length0||s>-e)&&(s+=e),t===3)s===0&&e===-12&&(s=12);else if(t===6)return Uq(s,n);let l=ka(a,Yn.MinusSign);return Ma(s,n,l,i,r)}}function $q(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 ue(2301,!1)}}function Ci(t,n,e=gr.Format,i=!1){return function(r,o){return Wq(r,o,t,n,e,i)}}function Wq(t,n,e,i,r,o){switch(e){case 2:return D2(n,r,i)[t.getMonth()];case 1:return w2(n,r,i)[t.getDay()];case 0:let a=t.getHours(),s=t.getMinutes();if(o){let c=k2(n),d=S2(n,r,i),m=c.findIndex(f=>{if(Array.isArray(f)){let[b,v]=f,w=a>=b.hours&&s>=b.minutes,x=a0?Math.floor(r/60):Math.ceil(r/60);switch(t){case 0:return(r>=0?"+":"")+Ma(a,2,o)+Ma(Math.abs(r%60),2,o);case 1:return"GMT"+(r>=0?"+":"")+Ma(a,1,o);case 2:return"GMT"+(r>=0?"+":"")+Ma(a,2,o)+":"+Ma(Math.abs(r%60),2,o);case 3:return i===0?"Z":(r>=0?"+":"")+Ma(a,2,o)+":"+Ma(Math.abs(r%60),2,o);default:throw new ue(2310,!1)}}}var Gq=0,jv=4;function qq(t){let n=Hv(t,Gq,1).getDay();return Hv(t,0,1+(n<=jv?jv:jv+7)-n)}function O2(t){let n=t.getDay(),e=n===0?-3:jv-n;return Hv(t.getFullYear(),t.getMonth(),t.getDate()+e)}function t1(t,n=!1){return function(e,i){let r;if(n){let o=new Date(e.getFullYear(),e.getMonth(),1).getDay()-1,a=e.getDate();r=1+Math.floor((a+o)/7)}else{let o=O2(e),a=qq(o.getFullYear()),s=o.getTime()-a.getTime();r=1+Math.round(s/6048e5)}return Ma(r,t,ka(i,Yn.MinusSign))}}function Bv(t,n=!1){return function(e,i){let o=O2(e).getFullYear();return Ma(o,t,ka(i,Yn.MinusSign),n)}}var i1={};function Yq(t){if(i1[t])return i1[t];let n;switch(t){case"G":case"GG":case"GGG":n=Ci(3,hi.Abbreviated);break;case"GGGG":n=Ci(3,hi.Wide);break;case"GGGGG":n=Ci(3,hi.Narrow);break;case"y":n=dn(0,1,0,!1,!0);break;case"yy":n=dn(0,2,0,!0,!0);break;case"yyy":n=dn(0,3,0,!1,!0);break;case"yyyy":n=dn(0,4,0,!1,!0);break;case"Y":n=Bv(1);break;case"YY":n=Bv(2,!0);break;case"YYY":n=Bv(3);break;case"YYYY":n=Bv(4);break;case"M":case"L":n=dn(1,1,1);break;case"MM":case"LL":n=dn(1,2,1);break;case"MMM":n=Ci(2,hi.Abbreviated);break;case"MMMM":n=Ci(2,hi.Wide);break;case"MMMMM":n=Ci(2,hi.Narrow);break;case"LLL":n=Ci(2,hi.Abbreviated,gr.Standalone);break;case"LLLL":n=Ci(2,hi.Wide,gr.Standalone);break;case"LLLLL":n=Ci(2,hi.Narrow,gr.Standalone);break;case"w":n=t1(1);break;case"ww":n=t1(2);break;case"W":n=t1(1,!0);break;case"d":n=dn(2,1);break;case"dd":n=dn(2,2);break;case"c":case"cc":n=dn(7,1);break;case"ccc":n=Ci(1,hi.Abbreviated,gr.Standalone);break;case"cccc":n=Ci(1,hi.Wide,gr.Standalone);break;case"ccccc":n=Ci(1,hi.Narrow,gr.Standalone);break;case"cccccc":n=Ci(1,hi.Short,gr.Standalone);break;case"E":case"EE":case"EEE":n=Ci(1,hi.Abbreviated);break;case"EEEE":n=Ci(1,hi.Wide);break;case"EEEEE":n=Ci(1,hi.Narrow);break;case"EEEEEE":n=Ci(1,hi.Short);break;case"a":case"aa":case"aaa":n=Ci(0,hi.Abbreviated);break;case"aaaa":n=Ci(0,hi.Wide);break;case"aaaaa":n=Ci(0,hi.Narrow);break;case"b":case"bb":case"bbb":n=Ci(0,hi.Abbreviated,gr.Standalone,!0);break;case"bbbb":n=Ci(0,hi.Wide,gr.Standalone,!0);break;case"bbbbb":n=Ci(0,hi.Narrow,gr.Standalone,!0);break;case"B":case"BB":case"BBB":n=Ci(0,hi.Abbreviated,gr.Format,!0);break;case"BBBB":n=Ci(0,hi.Wide,gr.Format,!0);break;case"BBBBB":n=Ci(0,hi.Narrow,gr.Format,!0);break;case"h":n=dn(3,1,-12);break;case"hh":n=dn(3,2,-12);break;case"H":n=dn(3,1);break;case"HH":n=dn(3,2);break;case"m":n=dn(4,1);break;case"mm":n=dn(4,2);break;case"s":n=dn(5,1);break;case"ss":n=dn(5,2);break;case"S":n=dn(6,1);break;case"SS":n=dn(6,2);break;case"SSS":n=dn(6,3);break;case"Z":case"ZZ":case"ZZZ":n=Vv(0);break;case"ZZZZZ":n=Vv(3);break;case"O":case"OO":case"OOO":case"z":case"zz":case"zzz":n=Vv(1);break;case"OOOO":case"ZZZZ":case"zzzz":n=Vv(2);break;default:return null}return i1[t]=n,n}function R2(t,n){t=t.replace(/:/g,"");let e=Date.parse("Jan 01, 1970 00:00:00 "+t)/6e4;return isNaN(e)?n:e}function Qq(t,n){return t=new Date(t.getTime()),t.setMinutes(t.getMinutes()+n),t}function Kq(t,n,e){let r=t.getTimezoneOffset(),o=R2(n,r);return Qq(t,-1*(o-r))}function Zq(t){if(p2(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[r,o=1,a=1]=t.split("-").map(s=>+s);return Hv(r,o-1,a)}let e=parseFloat(t);if(!isNaN(t-e))return new Date(e);let i;if(i=t.match(Hq))return Xq(i)}let n=new Date(t);if(!p2(n))throw new ue(2311,!1);return n}function Xq(t){let n=new Date(0),e=0,i=0,r=t[8]?n.setUTCFullYear:n.setFullYear,o=t[8]?n.setUTCHours:n.setHours;t[9]&&(e=Number(t[9]+t[10]),i=Number(t[9]+t[11])),r.call(n,Number(t[1]),Number(t[2])-1,Number(t[3]));let a=Number(t[4]||0)-e,s=Number(t[5]||0)-i,l=Number(t[6]||0),c=Math.floor(parseFloat("0."+(t[7]||0))*1e3);return o.call(n,a,s,l,c),n}function p2(t){return t instanceof Date&&!isNaN(t.valueOf())}var Jq=/^(\d+)?\.((\d+)(-(\d+))?)?$/,f2=22,zv=".",hf="0",eY=";",tY=",",n1="#",g2="\xA4";function P2(t,n,e,i,r,o,a=!1){let s="",l=!1;if(!isFinite(t))s=ka(e,Yn.Infinity);else{let c=nY(t);a&&(c=iY(c));let d=n.minInt,m=n.minFrac,f=n.maxFrac;if(o){let P=o.match(Jq);if(P===null)throw new ue(2306,!1);let W=P[1],Z=P[3],K=P[5];W!=null&&(d=r1(W)),Z!=null&&(m=r1(Z)),K!=null?f=r1(K):Z!=null&&m>f&&(f=m)}rY(c,m,f);let b=c.digits,v=c.integerLen,w=c.exponent,x=[];for(l=b.every(P=>!P);v0?x=b.splice(v,b.length):(x=b,b=[0]);let D=[];for(b.length>=n.lgSize&&D.unshift(b.splice(-n.lgSize,b.length).join(""));b.length>n.gSize;)D.unshift(b.splice(-n.gSize,b.length).join(""));b.length&&D.unshift(b.join("")),s=D.join(ka(e,i)),x.length&&(s+=ka(e,r)+x.join("")),w&&(s+=ka(e,Yn.Exponential)+"+"+w)}return t<0&&!l?s=n.negPre+s+n.negSuf:s=n.posPre+s+n.posSuf,s}function F2(t,n,e,i,r){let o=c1(n,Wv.Currency),a=L2(o,ka(n,Yn.MinusSign));return a.minFrac=I2(i),a.maxFrac=a.minFrac,P2(t,a,n,Yn.CurrencyGroup,Yn.CurrencyDecimal,r).replace(g2,e).replace(g2,"").trim()}function N2(t,n,e){let i=c1(n,Wv.Decimal),r=L2(i,ka(n,Yn.MinusSign));return P2(t,r,n,Yn.Group,Yn.Decimal,e)}function L2(t,n="-"){let e={minInt:1,minFrac:0,maxFrac:0,posPre:"",posSuf:"",negPre:"",negSuf:"",gSize:0,lgSize:0},i=t.split(eY),r=i[0],o=i[1],a=r.indexOf(zv)!==-1?r.split(zv):[r.substring(0,r.lastIndexOf(hf)+1),r.substring(r.lastIndexOf(hf)+1)],s=a[0],l=a[1]||"";e.posPre=s.substring(0,s.indexOf(n1));for(let d=0;d-1&&(n=n.replace(zv,"")),(o=n.search(/e/i))>0?(r<0&&(r=o),r+=+n.slice(o+1),n=n.substring(0,o)):r<0&&(r=n.length),o=0;n.charAt(o)===hf;o++);if(o===(s=n.length))i=[0],r=1;else{for(s--;n.charAt(s)===hf;)s--;for(r-=o,i=[],a=0;o<=s;o++,a++)i[a]=Number(n.charAt(o))}return r>f2&&(i=i.splice(0,f2-1),e=r-1,r=1),{digits:i,exponent:e,integerLen:r}}function rY(t,n,e){if(n>e)throw new ue(2307,!1);let i=t.digits,r=i.length-t.integerLen,o=Math.min(Math.max(n,r),e),a=o+t.integerLen,s=i[a];if(a>0){i.splice(Math.max(t.integerLen,a));for(let m=a;m=5)if(a-1<0){for(let m=0;m>a;m--)i.unshift(0),t.integerLen++;i.unshift(1),t.integerLen++}else i[a-1]++;for(;r=c?v.pop():l=!1),f>=10?1:0},0);d&&(i.unshift(d),t.integerLen++)}function r1(t){let n=parseInt(t);if(isNaN(n))throw new ue(2305,!1);return n}var o1=/\s+/,_2=[],Pd=(()=>{class t{_ngEl;_renderer;initialClasses=_2;rawClass;stateMap=new Map;constructor(e,i){this._ngEl=e,this._renderer=i}set klass(e){this.initialClasses=e!=null?e.trim().split(o1):_2}set ngClass(e){this.rawClass=typeof e=="string"?e.trim().split(o1):e}ngDoCheck(){for(let i of this.initialClasses)this._updateState(i,!0);let e=this.rawClass;if(Array.isArray(e)||e instanceof Set)for(let i of e)this._updateState(i,!0);else if(e!=null)for(let i of Object.keys(e))this._updateState(i,!!e[i]);this._applyStateDiff()}_updateState(e,i){let r=this.stateMap.get(e);r!==void 0?(r.enabled!==i&&(r.changed=!0,r.enabled=i),r.touched=!0):this.stateMap.set(e,{enabled:i,changed:!0,touched:!0})}_applyStateDiff(){for(let e of this.stateMap){let i=e[0],r=e[1];r.changed?(this._toggleClass(i,r.enabled),r.changed=!1):r.touched||(r.enabled&&this._toggleClass(i,!1),this.stateMap.delete(i)),r.touched=!1}}_toggleClass(e,i){e=e.trim(),e.length>0&&e.split(o1).forEach(r=>{i?this._renderer.addClass(this._ngEl.nativeElement,r):this._renderer.removeClass(this._ngEl.nativeElement,r)})}static \u0275fac=function(i){return new(i||t)(_e(q),_e(je))};static \u0275dir=F({type:t,selectors:[["","ngClass",""]],inputs:{klass:[0,"class","klass"],ngClass:"ngClass"}})}return t})();var Uv=class{$implicit;ngForOf;index;count;constructor(n,e,i,r){this.$implicit=n,this.ngForOf=e,this.index=i,this.count=r}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}},qr=(()=>{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,i,r){this._viewContainer=e,this._template=i,this._differs=r}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 i=this._viewContainer;e.forEachOperation((r,o,a)=>{if(r.previousIndex==null)i.createEmbeddedView(this._template,new Uv(r.item,this._ngForOf,-1,-1),a===null?void 0:a);else if(a==null)i.remove(o===null?void 0:o);else if(o!==null){let s=i.get(o);i.move(s,a),b2(s,r)}});for(let r=0,o=i.length;r{let o=i.get(r.currentIndex);b2(o,r)})}static ngTemplateContextGuard(e,i){return!0}static \u0275fac=function(i){return new(i||t)(_e(nt),_e(te),_e(ds))};static \u0275dir=F({type:t,selectors:[["","ngFor","","ngForOf",""]],inputs:{ngForOf:"ngForOf",ngForTrackBy:"ngForTrackBy",ngForTemplate:"ngForTemplate"}})}return t})();function b2(t,n){t.context.$implicit=n.item}var li=(()=>{class t{_viewContainer;_context=new $v;_thenTemplateRef=null;_elseTemplateRef=null;_thenViewRef=null;_elseViewRef=null;constructor(e,i){this._viewContainer=e,this._thenTemplateRef=i}set ngIf(e){this._context.$implicit=this._context.ngIf=e,this._updateView()}set ngIfThen(e){v2(e,!1),this._thenTemplateRef=e,this._thenViewRef=null,this._updateView()}set ngIfElse(e){v2(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,i){return!0}static \u0275fac=function(i){return new(i||t)(_e(nt),_e(te))};static \u0275dir=F({type:t,selectors:[["","ngIf",""]],inputs:{ngIf:"ngIf",ngIfThen:"ngIfThen",ngIfElse:"ngIfElse"}})}return t})(),$v=class{$implicit=null;ngIf=null};function v2(t,n){if(t&&!t.createEmbeddedView)throw new ue(2020,!1)}var Fn=(()=>{class t{_viewContainerRef;_viewRef=null;ngTemplateOutletContext=null;ngTemplateOutlet=null;ngTemplateOutletInjector=null;constructor(e){this._viewContainerRef=e}ngOnChanges(e){if(this._shouldRecreateView(e)){let i=this._viewContainerRef;if(this._viewRef&&i.remove(i.indexOf(this._viewRef)),!this.ngTemplateOutlet){this._viewRef=null;return}let r=this._createContextForwardProxy();this._viewRef=i.createEmbeddedView(this.ngTemplateOutlet,r,{injector:this.ngTemplateOutletInjector??void 0})}}_shouldRecreateView(e){return!!e.ngTemplateOutlet||!!e.ngTemplateOutletInjector}_createContextForwardProxy(){return new Proxy({},{set:(e,i,r)=>this.ngTemplateOutletContext?Reflect.set(this.ngTemplateOutletContext,i,r):!1,get:(e,i,r)=>{if(this.ngTemplateOutletContext)return Reflect.get(this.ngTemplateOutletContext,i,r)}})}static \u0275fac=function(i){return new(i||t)(_e(nt))};static \u0275dir=F({type:t,selectors:[["","ngTemplateOutlet",""]],inputs:{ngTemplateOutletContext:"ngTemplateOutletContext",ngTemplateOutlet:"ngTemplateOutlet",ngTemplateOutletInjector:"ngTemplateOutletInjector"},features:[Ae]})}return t})();function pf(t,n){return new ue(2100,!1)}var a1=class{createSubscription(n,e,i){return Ti(()=>n.subscribe({next:e,error:i}))}dispose(n){Ti(()=>n.unsubscribe())}},s1=class{createSubscription(n,e,i){return n.then(r=>e?.(r),r=>i?.(r)),{unsubscribe:()=>{e=null,i=null}}}dispose(n){n.unsubscribe()}},oY=new s1,aY=new a1,rn=(()=>{class t{_ref;_latestValue=null;markForCheckOnValueUpdate=!0;_subscription=null;_obj=null;_strategy=null;applicationErrorHandler=u(hr);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,i=>this._updateLatestValue(e,i),i=>this.applicationErrorHandler(i))}_selectStrategy(e){if(Xs(e))return oY;if(Ev(e))return aY;throw pf(t,e)}_dispose(){this._strategy.dispose(this._subscription),this._latestValue=null,this._subscription=null,this._obj=null}_updateLatestValue(e,i){e===this._obj&&(this._latestValue=i,this.markForCheckOnValueUpdate&&this._ref?.markForCheck())}static \u0275fac=function(i){return new(i||t)(_e(ye,16))};static \u0275pipe=Wr({name:"async",type:t,pure:!1})}return t})();var sY="mediumDate",V2=new T(""),B2=new T(""),Sa=(()=>{class t{locale;defaultTimezone;defaultOptions;constructor(e,i,r){this.locale=e,this.defaultTimezone=i,this.defaultOptions=r}transform(e,i,r,o){if(e==null||e===""||e!==e)return null;try{let a=i??this.defaultOptions?.dateFormat??sY,s=r??this.defaultOptions?.timezone??this.defaultTimezone??void 0;return A2(e,a,o||this.locale,s)}catch(a){throw pf(t,a.message)}}static \u0275fac=function(i){return new(i||t)(_e(el,16),_e(V2,24),_e(B2,24))};static \u0275pipe=Wr({name:"date",type:t,pure:!0})}return t})();var ff=(()=>{class t{_locale;constructor(e){this._locale=e}transform(e,i,r){if(!j2(e))return null;r||=this._locale;try{let o=H2(e);return N2(o,r,i)}catch(o){throw pf(t,o.message)}}static \u0275fac=function(i){return new(i||t)(_e(el,16))};static \u0275pipe=Wr({name:"number",type:t,pure:!0})}return t})();var il=(()=>{class t{_locale;_defaultCurrencyCode;constructor(e,i="USD"){this._locale=e,this._defaultCurrencyCode=i}transform(e,i=this._defaultCurrencyCode,r="symbol",o,a){if(!j2(e))return null;a||=this._locale,typeof r=="boolean"&&(r=r?"symbol":"code");let s=i||this._defaultCurrencyCode;r!=="code"&&(r==="symbol"||r==="symbol-narrow"?s=T2(s,r==="symbol"?"wide":"narrow",a):s=r);try{let l=H2(e);return F2(l,a,s,i,o)}catch(l){throw pf(t,l.message)}}static \u0275fac=function(i){return new(i||t)(_e(el,16),_e(HM,16))};static \u0275pipe=Wr({name:"currency",type:t,pure:!0})}return t})();function j2(t){return!(t==null||t===""||t!==t)}function H2(t){if(typeof t=="string"&&!isNaN(Number(t)-parseFloat(t)))return Number(t);if(typeof t!="number")throw new ue(2309,!1);return t}var d1=(()=>{class t{transform(e,i,r){if(e==null)return null;if(!(typeof e=="string"||Array.isArray(e)))throw pf(t,e);return e.slice(i,r)}static \u0275fac=function(i){return new(i||t)};static \u0275pipe=Wr({name:"slice",type:t,pure:!1})}return t})();var gt=(()=>{class t{static \u0275fac=function(i){return new(i||t)};static \u0275mod=ee({type:t});static \u0275inj=J({})}return t})();function gf(t,n){n=encodeURIComponent(n);for(let e of t.split(";")){let i=e.indexOf("="),[r,o]=i==-1?[e,""]:[e.slice(0,i),e.slice(i+1)];if(r.trim()===n)return decodeURIComponent(o)}return null}var Fd=class{};var m1="browser",lY="server";function z2(t){return t===m1}function U2(t){return t===lY}var h1=(()=>{class t{static \u0275prov=O({token:t,providedIn:"root",factory:()=>new u1(u(ge),window)})}return t})(),u1=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(De(M({},e),{left:n[0],top:n[1]}))}scrollToAnchor(n,e){let i=cY(this.document,n);i&&(this.scrollToElement(i,e),i.focus())}setHistoryScrollRestoration(n){try{this.window.history.scrollRestoration=n}catch{console.warn(Ro(2400,!1))}}scrollToElement(n,e){let i=n.getBoundingClientRect(),r=i.left+this.window.pageXOffset,o=i.top+this.window.pageYOffset,a=this.offset();this.window.scrollTo(De(M({},e),{left:r-a[0],top:o-a[1]}))}};function cY(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 i=t.createTreeWalker(t.body,NodeFilter.SHOW_ELEMENT),r=i.currentNode;for(;r;){let o=r.shadowRoot;if(o){let a=o.getElementById(n)||o.querySelector(`[name="${n}"]`);if(a)return a}r=i.nextNode()}}return null}var _f=class{_doc;constructor(n){this._doc=n}manager},Gv=(()=>{class t extends _f{constructor(e){super(e)}supports(e){return!0}addEventListener(e,i,r,o){return e.addEventListener(i,r,o),()=>this.removeEventListener(e,i,r,o)}removeEventListener(e,i,r,o){return e.removeEventListener(i,r,o)}static \u0275fac=function(i){return new(i||t)(pe(ge))};static \u0275prov=O({token:t,factory:t.\u0275fac})}return t})(),Yv=new T(""),b1=(()=>{class t{_zone;_plugins;_eventNameToPlugin=new Map;constructor(e,i){this._zone=i,e.forEach(a=>{a.manager=this});let r=e.filter(a=>!(a instanceof Gv));this._plugins=r.slice().reverse();let o=e.find(a=>a instanceof Gv);o&&this._plugins.push(o)}addEventListener(e,i,r,o){return this._findPluginFor(i).addEventListener(e,i,r,o)}getZone(){return this._zone}_findPluginFor(e){let i=this._eventNameToPlugin.get(e);if(i)return i;if(i=this._plugins.find(o=>o.supports(e)),!i)throw new ue(5101,!1);return this._eventNameToPlugin.set(e,i),i}static \u0275fac=function(i){return new(i||t)(pe(Yv),pe(ae))};static \u0275prov=O({token:t,factory:t.\u0275fac})}return t})(),p1="ng-app-id";function $2(t){for(let n of t)n.remove()}function W2(t,n){let e=n.createElement("style");return e.textContent=t,e}function dY(t,n,e,i){let r=t.head?.querySelectorAll(`style[${p1}="${n}"],link[${p1}="${n}"]`);if(r)for(let o of r)o.removeAttribute(p1),o instanceof HTMLLinkElement?i.set(o.href.slice(o.href.lastIndexOf("/")+1),{usage:0,elements:[o]}):o.textContent&&e.set(o.textContent,{usage:0,elements:[o]})}function g1(t,n){let e=n.createElement("link");return e.setAttribute("rel","stylesheet"),e.setAttribute("href",t),e}var v1=(()=>{class t{doc;appId;nonce;inline=new Map;external=new Map;hosts=new Set;constructor(e,i,r,o={}){this.doc=e,this.appId=i,this.nonce=r,dY(e,i,this.inline,this.external),this.hosts.add(e.head)}addStyles(e,i){for(let r of e)this.addUsage(r,this.inline,W2);i?.forEach(r=>this.addUsage(r,this.external,g1))}removeStyles(e,i){for(let r of e)this.removeUsage(r,this.inline);i?.forEach(r=>this.removeUsage(r,this.external))}addUsage(e,i,r){let o=i.get(e);o?o.usage++:i.set(e,{usage:1,elements:[...this.hosts].map(a=>this.addElement(a,r(e,this.doc)))})}removeUsage(e,i){let r=i.get(e);r&&(r.usage--,r.usage<=0&&($2(r.elements),i.delete(e)))}ngOnDestroy(){for(let[,{elements:e}]of[...this.inline,...this.external])$2(e);this.hosts.clear()}addHost(e){this.hosts.add(e);for(let[i,{elements:r}]of this.inline)r.push(this.addElement(e,W2(i,this.doc)));for(let[i,{elements:r}]of this.external)r.push(this.addElement(e,g1(i,this.doc)))}removeHost(e){this.hosts.delete(e)}addElement(e,i){return this.nonce&&i.setAttribute("nonce",this.nonce),e.appendChild(i)}static \u0275fac=function(i){return new(i||t)(pe(ge),pe(ql),pe(gm,8),pe(Ks))};static \u0275prov=O({token:t,factory:t.\u0275fac})}return t})(),f1={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"},y1=/%COMP%/g;var q2="%COMP%",uY=`_nghost-${q2}`,mY=`_ngcontent-${q2}`,hY=!0,pY=new T("",{providedIn:"root",factory:()=>hY});function fY(t){return mY.replace(y1,t)}function gY(t){return uY.replace(y1,t)}function Y2(t,n){return n.map(e=>e.replace(y1,t))}var x1=(()=>{class t{eventManager;sharedStylesHost;appId;removeStylesOnCompDestroy;doc;ngZone;nonce;tracingService;rendererByCompId=new Map;defaultRenderer;platformIsServer;constructor(e,i,r,o,a,s,l=null,c=null){this.eventManager=e,this.sharedStylesHost=i,this.appId=r,this.removeStylesOnCompDestroy=o,this.doc=a,this.ngZone=s,this.nonce=l,this.tracingService=c,this.platformIsServer=!1,this.defaultRenderer=new bf(e,a,s,this.platformIsServer,this.tracingService)}createRenderer(e,i){if(!e||!i)return this.defaultRenderer;let r=this.getOrCreateRenderer(e,i);return r instanceof qv?r.applyToHost(e):r instanceof vf&&r.applyStyles(),r}getOrCreateRenderer(e,i){let r=this.rendererByCompId,o=r.get(i.id);if(!o){let a=this.doc,s=this.ngZone,l=this.eventManager,c=this.sharedStylesHost,d=this.removeStylesOnCompDestroy,m=this.platformIsServer,f=this.tracingService;switch(i.encapsulation){case Ys.Emulated:o=new qv(l,c,i,this.appId,d,a,s,m,f);break;case Ys.ShadowDom:return new _1(l,c,e,i,a,s,this.nonce,m,f);default:o=new vf(l,c,i,d,a,s,m,f);break}r.set(i.id,o)}return o}ngOnDestroy(){this.rendererByCompId.clear()}componentReplaced(e){this.rendererByCompId.delete(e)}static \u0275fac=function(i){return new(i||t)(pe(b1),pe(v1),pe(ql),pe(pY),pe(ge),pe(ae),pe(gm),pe(Yl,8))};static \u0275prov=O({token:t,factory:t.\u0275fac})}return t})(),bf=class{eventManager;doc;ngZone;platformIsServer;tracingService;data=Object.create(null);throwOnSyntheticProps=!0;constructor(n,e,i,r,o){this.eventManager=n,this.doc=e,this.ngZone=i,this.platformIsServer=r,this.tracingService=o}destroy(){}destroyNode=null;createElement(n,e){return e?this.doc.createElementNS(f1[e]||e,n):this.doc.createElement(n)}createComment(n){return this.doc.createComment(n)}createText(n){return this.doc.createTextNode(n)}appendChild(n,e){(G2(n)?n.content:n).appendChild(e)}insertBefore(n,e,i){n&&(G2(n)?n.content:n).insertBefore(e,i)}removeChild(n,e){e.remove()}selectRootElement(n,e){let i=typeof n=="string"?this.doc.querySelector(n):n;if(!i)throw new ue(-5104,!1);return e||(i.textContent=""),i}parentNode(n){return n.parentNode}nextSibling(n){return n.nextSibling}setAttribute(n,e,i,r){if(r){e=r+":"+e;let o=f1[r];o?n.setAttributeNS(o,e,i):n.setAttribute(e,i)}else n.setAttribute(e,i)}removeAttribute(n,e,i){if(i){let r=f1[i];r?n.removeAttributeNS(r,e):n.removeAttribute(`${i}:${e}`)}else n.removeAttribute(e)}addClass(n,e){n.classList.add(e)}removeClass(n,e){n.classList.remove(e)}setStyle(n,e,i,r){r&(os.DashCase|os.Important)?n.style.setProperty(e,i,r&os.Important?"important":""):n.style[e]=i}removeStyle(n,e,i){i&os.DashCase?n.style.removeProperty(e):n.style[e]=""}setProperty(n,e,i){n!=null&&(n[e]=i)}setValue(n,e){n.nodeValue=e}listen(n,e,i,r){if(typeof n=="string"&&(n=Wo().getGlobalEventTarget(this.doc,n),!n))throw new ue(5102,!1);let o=this.decoratePreventDefault(i);return this.tracingService?.wrapEventListener&&(o=this.tracingService.wrapEventListener(n,e,o)),this.eventManager.addEventListener(n,e,o,r)}decoratePreventDefault(n){return e=>{if(e==="__ngUnwrap__")return n;n(e)===!1&&e.preventDefault()}}};function G2(t){return t.tagName==="TEMPLATE"&&t.content!==void 0}var _1=class extends bf{sharedStylesHost;hostEl;shadowRoot;constructor(n,e,i,r,o,a,s,l,c){super(n,o,a,l,c),this.sharedStylesHost=e,this.hostEl=i,this.shadowRoot=i.attachShadow({mode:"open"}),this.sharedStylesHost.addHost(this.shadowRoot);let d=r.styles;d=Y2(r.id,d);for(let f of d){let b=document.createElement("style");s&&b.setAttribute("nonce",s),b.textContent=f,this.shadowRoot.appendChild(b)}let m=r.getExternalStyles?.();if(m)for(let f of m){let b=g1(f,o);s&&b.setAttribute("nonce",s),this.shadowRoot.appendChild(b)}}nodeOrShadowRoot(n){return n===this.hostEl?this.shadowRoot:n}appendChild(n,e){return super.appendChild(this.nodeOrShadowRoot(n),e)}insertBefore(n,e,i){return super.insertBefore(this.nodeOrShadowRoot(n),e,i)}removeChild(n,e){return super.removeChild(null,e)}parentNode(n){return this.nodeOrShadowRoot(super.parentNode(this.nodeOrShadowRoot(n)))}destroy(){this.sharedStylesHost.removeHost(this.shadowRoot)}},vf=class extends bf{sharedStylesHost;removeStylesOnCompDestroy;styles;styleUrls;constructor(n,e,i,r,o,a,s,l,c){super(n,o,a,s,l),this.sharedStylesHost=e,this.removeStylesOnCompDestroy=r;let d=i.styles;this.styles=c?Y2(c,d):d,this.styleUrls=i.getExternalStyles?.(c)}applyStyles(){this.sharedStylesHost.addStyles(this.styles,this.styleUrls)}destroy(){this.removeStylesOnCompDestroy&&kd.size===0&&this.sharedStylesHost.removeStyles(this.styles,this.styleUrls)}},qv=class extends vf{contentAttr;hostAttr;constructor(n,e,i,r,o,a,s,l,c){let d=r+"-"+i.id;super(n,e,i,o,a,s,l,c,d),this.contentAttr=fY(d),this.hostAttr=gY(d)}applyToHost(n){this.applyStyles(),this.setAttribute(n,this.hostAttr,"")}createElement(n,e){let i=super.createElement(n,e);return super.setAttribute(i,this.contentAttr,""),i}};var Qv=class t extends lf{supportsDOMEvents=!0;static makeCurrent(){XM(new t)}onAndCancel(n,e,i,r){return n.addEventListener(e,i,r),()=>{n.removeEventListener(e,i,r)}}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=_Y();return e==null?null:bY(e)}resetBaseElement(){yf=null}getUserAgent(){return window.navigator.userAgent}getCookie(n){return gf(document.cookie,n)}},yf=null;function _Y(){return yf=yf||document.head.querySelector("base"),yf?yf.getAttribute("href"):null}function bY(t){return new URL(t,document.baseURI).pathname}var vY=(()=>{class t{build(){return new XMLHttpRequest}static \u0275fac=function(i){return new(i||t)};static \u0275prov=O({token:t,factory:t.\u0275fac})}return t})(),Q2=["alt","control","meta","shift"],yY={"\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"},xY={alt:t=>t.altKey,control:t=>t.ctrlKey,meta:t=>t.metaKey,shift:t=>t.shiftKey},K2=(()=>{class t extends _f{constructor(e){super(e)}supports(e){return t.parseEventName(e)!=null}addEventListener(e,i,r,o){let a=t.parseEventName(i),s=t.eventCallback(a.fullKey,r,this.manager.getZone());return this.manager.getZone().runOutsideAngular(()=>Wo().onAndCancel(e,a.domEventName,s,o))}static parseEventName(e){let i=e.toLowerCase().split("."),r=i.shift();if(i.length===0||!(r==="keydown"||r==="keyup"))return null;let o=t._normalizeKey(i.pop()),a="",s=i.indexOf("code");if(s>-1&&(i.splice(s,1),a="code."),Q2.forEach(c=>{let d=i.indexOf(c);d>-1&&(i.splice(d,1),a+=c+".")}),a+=o,i.length!=0||o.length===0)return null;let l={};return l.domEventName=r,l.fullKey=a,l}static matchEventFullKeyCode(e,i){let r=yY[e.key]||e.key,o="";return i.indexOf("code.")>-1&&(r=e.code,o="code."),r==null||!r?!1:(r=r.toLowerCase(),r===" "?r="space":r==="."&&(r="dot"),Q2.forEach(a=>{if(a!==r){let s=xY[a];s(e)&&(o+=a+".")}}),o+=r,o===i)}static eventCallback(e,i,r){return o=>{t.matchEventFullKeyCode(o,e)&&r.runGuarded(()=>i(o))}}static _normalizeKey(e){return e==="esc"?"escape":e}static \u0275fac=function(i){return new(i||t)(pe(ge))};static \u0275prov=O({token:t,factory:t.\u0275fac})}return t})();function C1(t,n,e){let i=M({rootComponent:t,platformRef:e?.platformRef},CY(n));return a2(i)}function CY(t){return{appProviders:[...kY,...t?.providers??[]],platformProviders:MY}}function wY(){Qv.makeCurrent()}function DY(){return new Tn}function EY(){return JE(document),document}var MY=[{provide:Ks,useValue:m1},{provide:sv,useValue:wY,multi:!0},{provide:ge,useFactory:EY}];var kY=[{provide:kp,useValue:"root"},{provide:Tn,useFactory:DY},{provide:Yv,useClass:Gv,multi:!0,deps:[ge]},{provide:Yv,useClass:K2,multi:!0,deps:[ge]},x1,v1,b1,{provide:cn,useExisting:x1},{provide:Fd,useClass:vY},[]];var Tm=class{},Zl=class{},_r=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 i=e.indexOf(":");if(i>0){let r=e.slice(0,i),o=e.slice(i+1).trim();this.addHeaderEntry(r,o)}})}:typeof Headers<"u"&&n instanceof Headers?(this.headers=new Map,n.forEach((e,i)=>{this.addHeaderEntry(i,e)})):this.lazyInit=()=>{this.headers=new Map,Object.entries(n).forEach(([e,i])=>{this.setHeaderEntries(e,i)})}: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(),Array.from(n.headers.keys()).forEach(e=>{this.headers.set(e,n.headers.get(e)),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 i=n.value;if(typeof i=="string"&&(i=[i]),i.length===0)return;this.maybeSetNormalizedName(n.name,e);let r=(n.op==="a"?this.headers.get(e):void 0)||[];r.push(...i),this.headers.set(e,r);break;case"d":let o=n.value;if(!o)this.headers.delete(e),this.normalizedNames.delete(e);else{let a=this.headers.get(e);if(!a)return;a=a.filter(s=>o.indexOf(s)===-1),a.length===0?(this.headers.delete(e),this.normalizedNames.delete(e)):this.headers.set(e,a)}break}}addHeaderEntry(n,e){let i=n.toLowerCase();this.maybeSetNormalizedName(n,i),this.headers.has(i)?this.headers.get(i).push(e):this.headers.set(i,[e])}setHeaderEntries(n,e){let i=(Array.isArray(e)?e:[e]).map(o=>o.toString()),r=n.toLowerCase();this.headers.set(r,i),this.maybeSetNormalizedName(n,r)}forEach(n){this.init(),Array.from(this.normalizedNames.keys()).forEach(e=>n(this.normalizedNames.get(e),this.headers.get(e)))}};var Zv=class{encodeKey(n){return Z2(n)}encodeValue(n){return Z2(n)}decodeKey(n){return decodeURIComponent(n)}decodeValue(n){return decodeURIComponent(n)}};function SY(t,n){let e=new Map;return t.length>0&&t.replace(/^\?/,"").split("&").forEach(r=>{let o=r.indexOf("="),[a,s]=o==-1?[n.decodeKey(r),""]:[n.decodeKey(r.slice(0,o)),n.decodeValue(r.slice(o+1))],l=e.get(a)||[];l.push(s),e.set(a,l)}),e}var TY=/%(\d[a-f0-9])/gi,IY={40:"@","3A":":",24:"$","2C":",","3B":";","3D":"=","3F":"?","2F":"/"};function Z2(t){return encodeURIComponent(t).replace(TY,(n,e)=>IY[e]??n)}function Kv(t){return`${t}`}var Qn=class t{map;encoder;updates=null;cloneFrom=null;constructor(n={}){if(this.encoder=n.encoder||new Zv,n.fromString){if(n.fromObject)throw new ue(2805,!1);this.map=SY(n.fromString,this.encoder)}else n.fromObject?(this.map=new Map,Object.keys(n.fromObject).forEach(e=>{let i=n.fromObject[e],r=Array.isArray(i)?i.map(Kv):[Kv(i)];this.map.set(e,r)})):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(i=>{let r=n[i];Array.isArray(r)?r.forEach(o=>{e.push({param:i,value:o,op:"a"})}):e.push({param:i,value:r,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(i=>e+"="+this.encoder.encodeValue(i)).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(){this.map===null&&(this.map=new Map),this.cloneFrom!==null&&(this.cloneFrom.init(),this.cloneFrom.keys().forEach(n=>this.map.set(n,this.cloneFrom.map.get(n))),this.updates.forEach(n=>{switch(n.op){case"a":case"s":let e=(n.op==="a"?this.map.get(n.param):void 0)||[];e.push(Kv(n.value)),this.map.set(n.param,e);break;case"d":if(n.value!==void 0){let i=this.map.get(n.param)||[],r=i.indexOf(Kv(n.value));r!==-1&&i.splice(r,1),i.length>0?this.map.set(n.param,i):this.map.delete(n.param)}else{this.map.delete(n.param);break}}}),this.cloneFrom=this.updates=null)}};var Xv=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()}};function AY(t){switch(t){case"DELETE":case"GET":case"HEAD":case"OPTIONS":case"JSONP":return!1;default:return!0}}function X2(t){return typeof ArrayBuffer<"u"&&t instanceof ArrayBuffer}function J2(t){return typeof Blob<"u"&&t instanceof Blob}function eN(t){return typeof FormData<"u"&&t instanceof FormData}function OY(t){return typeof URLSearchParams<"u"&&t instanceof URLSearchParams}var tN="Content-Type",iN="Accept",nN="X-Request-URL",rN="text/plain",oN="application/json",RY=`${oN}, ${rN}, */*`,km=class t{url;body=null;headers;context;reportProgress=!1;withCredentials=!1;credentials;keepalive=!1;cache;priority;mode;redirect;referrer;integrity;responseType="json";method;params;urlWithParams;transferCache;timeout;constructor(n,e,i,r){this.url=e,this.method=n.toUpperCase();let o;if(AY(this.method)||r?(this.body=i!==void 0?i:null,o=r):o=i,o){if(this.reportProgress=!!o.reportProgress,this.withCredentials=!!o.withCredentials,this.keepalive=!!o.keepalive,o.responseType&&(this.responseType=o.responseType),o.headers&&(this.headers=o.headers),o.context&&(this.context=o.context),o.params&&(this.params=o.params),o.priority&&(this.priority=o.priority),o.cache&&(this.cache=o.cache),o.credentials&&(this.credentials=o.credentials),typeof o.timeout=="number"){if(o.timeout<1||!Number.isInteger(o.timeout))throw new ue(2822,"");this.timeout=o.timeout}o.mode&&(this.mode=o.mode),o.redirect&&(this.redirect=o.redirect),o.integrity&&(this.integrity=o.integrity),o.referrer&&(this.referrer=o.referrer),this.transferCache=o.transferCache}if(this.headers??=new _r,this.context??=new Xv,!this.params)this.params=new Qn,this.urlWithParams=e;else{let a=this.params.toString();if(a.length===0)this.urlWithParams=e;else{let s=e.indexOf("?"),l=s===-1?"?":sK.set(re,n.setHeaders[re]),P)),n.setParams&&(W=Object.keys(n.setParams).reduce((K,re)=>K.set(re,n.setParams[re]),W)),new t(e,i,w,{params:W,headers:P,context:Z,reportProgress:D,responseType:r,withCredentials:x,transferCache:b,keepalive:o,cache:s,priority:a,timeout:v,mode:l,redirect:c,credentials:d,referrer:m,integrity:f})}},Nd=(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})(Nd||{}),Im=class{headers;status;statusText;url;ok;type;redirected;constructor(n,e=200,i="OK"){this.headers=n.headers||new _r,this.status=n.status!==void 0?n.status:e,this.statusText=n.statusText||i,this.url=n.url||null,this.redirected=n.redirected,this.ok=this.status>=200&&this.status<300}},Jv=class t extends Im{constructor(n={}){super(n)}type=Nd.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})}},nl=class t extends Im{body;constructor(n={}){super(n),this.body=n.body!==void 0?n.body:null}type=Nd.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})}},Sm=class extends Im{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}},PY=200,FY=204;function w1(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}}var Yr=(()=>{class t{handler;constructor(e){this.handler=e}request(e,i,r={}){let o;if(e instanceof km)o=e;else{let l;r.headers instanceof _r?l=r.headers:l=new _r(r.headers);let c;r.params&&(r.params instanceof Qn?c=r.params:c=new Qn({fromObject:r.params})),o=new km(e,i,r.body!==void 0?r.body:null,{headers:l,context:r.context,params:c,reportProgress:r.reportProgress,responseType:r.responseType||"json",withCredentials:r.withCredentials,transferCache:r.transferCache,keepalive:r.keepalive,priority:r.priority,cache:r.cache,mode:r.mode,redirect:r.redirect,credentials:r.credentials,referrer:r.referrer,integrity:r.integrity,timeout:r.timeout})}let a=Q(o).pipe(Ao(l=>this.handler.handle(l)));if(e instanceof km||r.observe==="events")return a;let s=a.pipe(ce(l=>l instanceof nl));switch(r.observe||"body"){case"body":switch(o.responseType){case"arraybuffer":return s.pipe(se(l=>{if(l.body!==null&&!(l.body instanceof ArrayBuffer))throw new ue(2806,!1);return l.body}));case"blob":return s.pipe(se(l=>{if(l.body!==null&&!(l.body instanceof Blob))throw new ue(2807,!1);return l.body}));case"text":return s.pipe(se(l=>{if(l.body!==null&&typeof l.body!="string")throw new ue(2808,!1);return l.body}));case"json":default:return s.pipe(se(l=>l.body))}case"response":return s;default:throw new ue(2809,!1)}}delete(e,i={}){return this.request("DELETE",e,i)}get(e,i={}){return this.request("GET",e,i)}head(e,i={}){return this.request("HEAD",e,i)}jsonp(e,i){return this.request("JSONP",e,{params:new Qn().append(i,"JSONP_CALLBACK"),observe:"body",responseType:"json"})}options(e,i={}){return this.request("OPTIONS",e,i)}patch(e,i,r={}){return this.request("PATCH",e,w1(r,i))}post(e,i,r={}){return this.request("POST",e,w1(r,i))}put(e,i,r={}){return this.request("PUT",e,w1(r,i))}static \u0275fac=function(i){return new(i||t)(pe(Tm))};static \u0275prov=O({token:t,factory:t.\u0275fac})}return t})();var NY=new T("");function LY(t,n){return n(t)}function VY(t,n,e){return(i,r)=>In(e,()=>n(i,o=>t(o,r)))}var E1=new T(""),M1=new T(""),aN=new T(""),sN=new T("",{providedIn:"root",factory:()=>!0});var e0=(()=>{class t extends Tm{backend;injector;chain=null;pendingTasks=u(om);contributeToStability=u(sN);constructor(e,i){super(),this.backend=e,this.injector=i}handle(e){if(this.chain===null){let i=Array.from(new Set([...this.injector.get(M1),...this.injector.get(aN,[])]));this.chain=i.reduceRight((r,o)=>VY(r,o,this.injector),LY)}if(this.contributeToStability){let i=this.pendingTasks.add();return this.chain(e,r=>this.backend.handle(r)).pipe(Hr(i))}else return this.chain(e,i=>this.backend.handle(i))}static \u0275fac=function(i){return new(i||t)(pe(Zl),pe(Wt))};static \u0275prov=O({token:t,factory:t.\u0275fac})}return t})();var BY=/^\)\]\}',?\n/,jY=RegExp(`^${nN}:`,"m");function HY(t){return"responseURL"in t&&t.responseURL?t.responseURL:jY.test(t.getAllResponseHeaders())?t.getResponseHeader(nN):null}var D1=(()=>{class t{xhrFactory;constructor(e){this.xhrFactory=e}handle(e){if(e.method==="JSONP")throw new ue(-2800,!1);let i=this.xhrFactory;return Q(null).pipe($e(()=>new Fe(o=>{let a=i.build();if(a.open(e.method,e.urlWithParams),e.withCredentials&&(a.withCredentials=!0),e.headers.forEach((x,D)=>a.setRequestHeader(x,D.join(","))),e.headers.has(iN)||a.setRequestHeader(iN,RY),!e.headers.has(tN)){let x=e.detectContentTypeHeader();x!==null&&a.setRequestHeader(tN,x)}if(e.timeout&&(a.timeout=e.timeout),e.responseType){let x=e.responseType.toLowerCase();a.responseType=x!=="json"?x:"text"}let s=e.serializeBody(),l=null,c=()=>{if(l!==null)return l;let x=a.statusText||"OK",D=new _r(a.getAllResponseHeaders()),P=HY(a)||e.url;return l=new Jv({headers:D,status:a.status,statusText:x,url:P}),l},d=()=>{let{headers:x,status:D,statusText:P,url:W}=c(),Z=null;D!==FY&&(Z=typeof a.response>"u"?a.responseText:a.response),D===0&&(D=Z?PY:0);let K=D>=200&&D<300;if(e.responseType==="json"&&typeof Z=="string"){let re=Z;Z=Z.replace(BY,"");try{Z=Z!==""?JSON.parse(Z):null}catch(Ee){Z=re,K&&(K=!1,Z={error:Ee,text:Z})}}K?(o.next(new nl({body:Z,headers:x,status:D,statusText:P,url:W||void 0})),o.complete()):o.error(new Sm({error:Z,headers:x,status:D,statusText:P,url:W||void 0}))},m=x=>{let{url:D}=c(),P=new Sm({error:x,status:a.status||0,statusText:a.statusText||"Unknown Error",url:D||void 0});o.error(P)},f=m;e.timeout&&(f=x=>{let{url:D}=c(),P=new Sm({error:new DOMException("Request timed out","TimeoutError"),status:a.status||0,statusText:a.statusText||"Request timeout",url:D||void 0});o.error(P)});let b=!1,v=x=>{b||(o.next(c()),b=!0);let D={type:Nd.DownloadProgress,loaded:x.loaded};x.lengthComputable&&(D.total=x.total),e.responseType==="text"&&a.responseText&&(D.partialText=a.responseText),o.next(D)},w=x=>{let D={type:Nd.UploadProgress,loaded:x.loaded};x.lengthComputable&&(D.total=x.total),o.next(D)};return a.addEventListener("load",d),a.addEventListener("error",m),a.addEventListener("timeout",f),a.addEventListener("abort",m),e.reportProgress&&(a.addEventListener("progress",v),s!==null&&a.upload&&a.upload.addEventListener("progress",w)),a.send(s),o.next({type:Nd.Sent}),()=>{a.removeEventListener("error",m),a.removeEventListener("abort",m),a.removeEventListener("load",d),a.removeEventListener("timeout",f),e.reportProgress&&(a.removeEventListener("progress",v),s!==null&&a.upload&&a.upload.removeEventListener("progress",w)),a.readyState!==a.DONE&&a.abort()}})))}static \u0275fac=function(i){return new(i||t)(pe(Fd))};static \u0275prov=O({token:t,factory:t.\u0275fac})}return t})(),lN=new T(""),zY="XSRF-TOKEN",UY=new T("",{providedIn:"root",factory:()=>zY}),$Y="X-XSRF-TOKEN",WY=new T("",{providedIn:"root",factory:()=>$Y}),xf=class{},GY=(()=>{class t{doc;cookieName;lastCookieString="";lastToken=null;parseCount=0;constructor(e,i){this.doc=e,this.cookieName=i}getToken(){let e=this.doc.cookie||"";return e!==this.lastCookieString&&(this.parseCount++,this.lastToken=gf(e,this.cookieName),this.lastCookieString=e),this.lastToken}static \u0275fac=function(i){return new(i||t)(pe(ge),pe(UY))};static \u0275prov=O({token:t,factory:t.\u0275fac})}return t})(),qY=/^(?:https?:)?\/\//i;function YY(t,n){if(!u(lN)||t.method==="GET"||t.method==="HEAD"||qY.test(t.url))return n(t);let e=u(xf).getToken(),i=u(WY);return e!=null&&!t.headers.has(i)&&(t=t.clone({headers:t.headers.set(i,e)})),n(t)}var k1=(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})(k1||{});function QY(t,n){return{\u0275kind:t,\u0275providers:n}}function S1(...t){let n=[Yr,D1,e0,{provide:Tm,useExisting:e0},{provide:Zl,useFactory:()=>u(NY,{optional:!0})??u(D1)},{provide:M1,useValue:YY,multi:!0},{provide:lN,useValue:!0},{provide:xf,useClass:GY}];for(let e of t)n.push(...e.\u0275providers);return zr(n)}function T1(t){return QY(k1.Interceptors,t.map(n=>({provide:M1,useValue:n,multi:!0})))}var dN=(()=>{class t{_doc;constructor(e){this._doc=e}getTitle(){return this._doc.title}setTitle(e){this._doc.title=e||""}static \u0275fac=function(i){return new(i||t)(pe(ge))};static \u0275prov=O({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();var Cf=(()=>{class t{static \u0275fac=function(i){return new(i||t)};static \u0275prov=O({token:t,factory:function(i){let r=null;return i?r=new(i||t):r=pe(KY),r},providedIn:"root"})}return t})(),KY=(()=>{class t extends Cf{_doc;constructor(e){super(),this._doc=e}sanitize(e,i){if(i==null)return null;switch(e){case An.NONE:return i;case An.HTML:return ls(i,"HTML")?Ur(i):uv(this._doc,String(i)).toString();case An.STYLE:return ls(i,"Style")?Ur(i):i;case An.SCRIPT:if(ls(i,"Script"))return Ur(i);throw new ue(5200,!1);case An.URL:return ls(i,"URL")?Ur(i):Qp(String(i));case An.RESOURCE_URL:if(ls(i,"ResourceURL"))return Ur(i);throw new ue(5201,!1);default:throw new ue(5202,!1)}}bypassSecurityTrustHtml(e){return iM(e)}bypassSecurityTrustStyle(e){return nM(e)}bypassSecurityTrustScript(e){return rM(e)}bypassSecurityTrustUrl(e){return oM(e)}bypassSecurityTrustResourceUrl(e){return aM(e)}static \u0275fac=function(i){return new(i||t)(pe(ge))};static \u0275prov=O({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();var dt="primary",Ff=Symbol("RouteTitle"),F1=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 Bd(t){return new F1(t)}function bN(t,n,e){let i=e.path.split("/");if(i.length>t.length||e.pathMatch==="full"&&(n.hasChildren()||i.lengthi[o]===r)}else return t===n}function yN(t){return t.length>0?t[t.length-1]:null}function rl(t){return ji(t)?t:Xs(t)?Ot(Promise.resolve(t)):Q(t)}var XY={exact:CN,subset:wN},xN={exact:JY,subset:eQ,ignored:()=>!0};function uN(t,n,e){return XY[e.paths](t.root,n.root,e.matrixParams)&&xN[e.queryParams](t.queryParams,n.queryParams)&&!(e.fragment==="exact"&&t.fragment!==n.fragment)}function JY(t,n){return ms(t,n)}function CN(t,n,e){if(!Ld(t.segments,n.segments)||!n0(t.segments,n.segments,e)||t.numberOfChildren!==n.numberOfChildren)return!1;for(let i in n.children)if(!t.children[i]||!CN(t.children[i],n.children[i],e))return!1;return!0}function eQ(t,n){return Object.keys(n).length<=Object.keys(t).length&&Object.keys(n).every(e=>vN(t[e],n[e]))}function wN(t,n,e){return DN(t,n,n.segments,e)}function DN(t,n,e,i){if(t.segments.length>e.length){let r=t.segments.slice(0,e.length);return!(!Ld(r,e)||n.hasChildren()||!n0(r,e,i))}else if(t.segments.length===e.length){if(!Ld(t.segments,e)||!n0(t.segments,e,i))return!1;for(let r in n.children)if(!t.children[r]||!wN(t.children[r],n.children[r],i))return!1;return!0}else{let r=e.slice(0,t.segments.length),o=e.slice(t.segments.length);return!Ld(t.segments,r)||!n0(t.segments,r,i)||!t.children[dt]?!1:DN(t.children[dt],n,o,i)}}function n0(t,n,e){return n.every((i,r)=>xN[e](t[r].parameters,i.parameters))}var hs=class{root;queryParams;fragment;_queryParamMap;constructor(n=new qt([],{}),e={},i=null){this.root=n,this.queryParams=e,this.fragment=i}get queryParamMap(){return this._queryParamMap??=Bd(this.queryParams),this._queryParamMap}toString(){return nQ.serialize(this)}},qt=class{segments;children;parent=null;constructor(n,e){this.segments=n,this.children=e,Object.values(e).forEach(i=>i.parent=this)}hasChildren(){return this.numberOfChildren>0}get numberOfChildren(){return Object.keys(this.children).length}toString(){return r0(this)}},Xl=class{path;parameters;_parameterMap;constructor(n,e){this.path=n,this.parameters=e}get parameterMap(){return this._parameterMap??=Bd(this.parameters),this._parameterMap}toString(){return MN(this)}};function tQ(t,n){return Ld(t,n)&&t.every((e,i)=>ms(e.parameters,n[i].parameters))}function Ld(t,n){return t.length!==n.length?!1:t.every((e,i)=>e.path===n[i].path)}function iQ(t,n){let e=[];return Object.entries(t.children).forEach(([i,r])=>{i===dt&&(e=e.concat(n(r,i)))}),Object.entries(t.children).forEach(([i,r])=>{i!==dt&&(e=e.concat(n(r,i)))}),e}var ic=(()=>{class t{static \u0275fac=function(i){return new(i||t)};static \u0275prov=O({token:t,factory:()=>new Jl,providedIn:"root"})}return t})(),Jl=class{parse(n){let e=new V1(n);return new hs(e.parseRootSegment(),e.parseQueryParams(),e.parseFragment())}serialize(n){let e=`/${wf(n.root,!0)}`,i=aQ(n.queryParams),r=typeof n.fragment=="string"?`#${rQ(n.fragment)}`:"";return`${e}${i}${r}`}},nQ=new Jl;function r0(t){return t.segments.map(n=>MN(n)).join("/")}function wf(t,n){if(!t.hasChildren())return r0(t);if(n){let e=t.children[dt]?wf(t.children[dt],!1):"",i=[];return Object.entries(t.children).forEach(([r,o])=>{r!==dt&&i.push(`${r}:${wf(o,!1)}`)}),i.length>0?`${e}(${i.join("//")})`:e}else{let e=iQ(t,(i,r)=>r===dt?[wf(t.children[dt],!1)]:[`${r}:${wf(i,!1)}`]);return Object.keys(t.children).length===1&&t.children[dt]!=null?`${r0(t)}/${e[0]}`:`${r0(t)}/(${e.join("//")})`}}function EN(t){return encodeURIComponent(t).replace(/%40/g,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",")}function t0(t){return EN(t).replace(/%3B/gi,";")}function rQ(t){return encodeURI(t)}function L1(t){return EN(t).replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/%26/gi,"&")}function o0(t){return decodeURIComponent(t)}function mN(t){return o0(t.replace(/\+/g,"%20"))}function MN(t){return`${L1(t.path)}${oQ(t.parameters)}`}function oQ(t){return Object.entries(t).map(([n,e])=>`;${L1(n)}=${L1(e)}`).join("")}function aQ(t){let n=Object.entries(t).map(([e,i])=>Array.isArray(i)?i.map(r=>`${t0(e)}=${t0(r)}`).join("&"):`${t0(e)}=${t0(i)}`).filter(e=>e);return n.length?`?${n.join("&")}`:""}var sQ=/^[^\/()?;#]+/;function A1(t){let n=t.match(sQ);return n?n[0]:""}var lQ=/^[^\/()?;=#]+/;function cQ(t){let n=t.match(lQ);return n?n[0]:""}var dQ=/^[^=?&#]+/;function uQ(t){let n=t.match(dQ);return n?n[0]:""}var mQ=/^[^&#]+/;function hQ(t){let n=t.match(mQ);return n?n[0]:""}var V1=class{url;remaining;constructor(n){this.url=n,this.remaining=n}parseRootSegment(){return this.consumeOptional("/"),this.remaining===""||this.peekStartsWith("?")||this.peekStartsWith("#")?new qt([],{}):new qt([],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(){if(this.remaining==="")return{};this.consumeOptional("/");let n=[];for(this.peekStartsWith("(")||n.push(this.parseSegment());this.peekStartsWith("/")&&!this.peekStartsWith("//")&&!this.peekStartsWith("/(");)this.capture("/"),n.push(this.parseSegment());let e={};this.peekStartsWith("/(")&&(this.capture("/"),e=this.parseParens(!0));let i={};return this.peekStartsWith("(")&&(i=this.parseParens(!1)),(n.length>0||Object.keys(e).length>0)&&(i[dt]=new qt(n,e)),i}parseSegment(){let n=A1(this.remaining);if(n===""&&this.peekStartsWith(";"))throw new ue(4009,!1);return this.capture(n),new Xl(o0(n),this.parseMatrixParams())}parseMatrixParams(){let n={};for(;this.consumeOptional(";");)this.parseParam(n);return n}parseParam(n){let e=cQ(this.remaining);if(!e)return;this.capture(e);let i="";if(this.consumeOptional("=")){let r=A1(this.remaining);r&&(i=r,this.capture(i))}n[o0(e)]=o0(i)}parseQueryParam(n){let e=uQ(this.remaining);if(!e)return;this.capture(e);let i="";if(this.consumeOptional("=")){let a=hQ(this.remaining);a&&(i=a,this.capture(i))}let r=mN(e),o=mN(i);if(n.hasOwnProperty(r)){let a=n[r];Array.isArray(a)||(a=[a],n[r]=a),a.push(o)}else n[r]=o}parseParens(n){let e={};for(this.capture("(");!this.consumeOptional(")")&&this.remaining.length>0;){let i=A1(this.remaining),r=this.remaining[i.length];if(r!=="/"&&r!==")"&&r!==";")throw new ue(4010,!1);let o;i.indexOf(":")>-1?(o=i.slice(0,i.indexOf(":")),this.capture(o),this.capture(":")):n&&(o=dt);let a=this.parseChildren();e[o??dt]=Object.keys(a).length===1&&a[dt]?a[dt]:new qt([],a),this.consumeOptional("//")}return e}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 ue(4011,!1)}};function kN(t){return t.segments.length>0?new qt([],{[dt]:t}):t}function SN(t){let n={};for(let[i,r]of Object.entries(t.children)){let o=SN(r);if(i===dt&&o.segments.length===0&&o.hasChildren())for(let[a,s]of Object.entries(o.children))n[a]=s;else(o.segments.length>0||o.hasChildren())&&(n[i]=o)}let e=new qt(t.segments,n);return pQ(e)}function pQ(t){if(t.numberOfChildren===1&&t.children[dt]){let n=t.children[dt];return new qt(t.segments.concat(n.segments),n.children)}return t}function ec(t){return t instanceof hs}function TN(t,n,e=null,i=null){let r=IN(t);return AN(r,n,e,i)}function IN(t){let n;function e(o){let a={};for(let l of o.children){let c=e(l);a[l.outlet]=c}let s=new qt(o.url,a);return o===t&&(n=s),s}let i=e(t.root),r=kN(i);return n??r}function AN(t,n,e,i){let r=t;for(;r.parent;)r=r.parent;if(n.length===0)return O1(r,r,r,e,i);let o=fQ(n);if(o.toRoot())return O1(r,r,new qt([],{}),e,i);let a=gQ(o,r,t),s=a.processChildren?Ef(a.segmentGroup,a.index,o.commands):RN(a.segmentGroup,a.index,o.commands);return O1(r,a.segmentGroup,s,e,i)}function a0(t){return typeof t=="object"&&t!=null&&!t.outlets&&!t.segmentPath}function kf(t){return typeof t=="object"&&t!=null&&t.outlets}function O1(t,n,e,i,r){let o={};i&&Object.entries(i).forEach(([l,c])=>{o[l]=Array.isArray(c)?c.map(d=>`${d}`):`${c}`});let a;t===n?a=e:a=ON(t,n,e);let s=kN(SN(a));return new hs(s,o,r)}function ON(t,n,e){let i={};return Object.entries(t.children).forEach(([r,o])=>{o===n?i[r]=e:i[r]=ON(o,n,e)}),new qt(t.segments,i)}var s0=class{isAbsolute;numberOfDoubleDots;commands;constructor(n,e,i){if(this.isAbsolute=n,this.numberOfDoubleDots=e,this.commands=i,n&&i.length>0&&a0(i[0]))throw new ue(4003,!1);let r=i.find(kf);if(r&&r!==yN(i))throw new ue(4004,!1)}toRoot(){return this.isAbsolute&&this.commands.length===1&&this.commands[0]=="/"}};function fQ(t){if(typeof t[0]=="string"&&t.length===1&&t[0]==="/")return new s0(!0,0,t);let n=0,e=!1,i=t.reduce((r,o,a)=>{if(typeof o=="object"&&o!=null){if(o.outlets){let s={};return Object.entries(o.outlets).forEach(([l,c])=>{s[l]=typeof c=="string"?c.split("/"):c}),[...r,{outlets:s}]}if(o.segmentPath)return[...r,o.segmentPath]}return typeof o!="string"?[...r,o]:a===0?(o.split("/").forEach((s,l)=>{l==0&&s==="."||(l==0&&s===""?e=!0:s===".."?n++:s!=""&&r.push(s))}),r):[...r,o]},[]);return new s0(e,n,i)}var Rm=class{segmentGroup;processChildren;index;constructor(n,e,i){this.segmentGroup=n,this.processChildren=e,this.index=i}};function gQ(t,n,e){if(t.isAbsolute)return new Rm(n,!0,0);if(!e)return new Rm(n,!1,NaN);if(e.parent===null)return new Rm(e,!0,0);let i=a0(t.commands[0])?0:1,r=e.segments.length-1+i;return _Q(e,r,t.numberOfDoubleDots)}function _Q(t,n,e){let i=t,r=n,o=e;for(;o>r;){if(o-=r,i=i.parent,!i)throw new ue(4005,!1);r=i.segments.length}return new Rm(i,!1,r-o)}function bQ(t){return kf(t[0])?t[0].outlets:{[dt]:t}}function RN(t,n,e){if(t??=new qt([],{}),t.segments.length===0&&t.hasChildren())return Ef(t,n,e);let i=vQ(t,n,e),r=e.slice(i.commandIndex);if(i.match&&i.pathIndexo!==dt)&&t.children[dt]&&t.numberOfChildren===1&&t.children[dt].segments.length===0){let o=Ef(t.children[dt],n,e);return new qt(t.segments,o.children)}return Object.entries(i).forEach(([o,a])=>{typeof a=="string"&&(a=[a]),a!==null&&(r[o]=RN(t.children[o],n,a))}),Object.entries(t.children).forEach(([o,a])=>{i[o]===void 0&&(r[o]=a)}),new qt(t.segments,r)}}function vQ(t,n,e){let i=0,r=n,o={match:!1,pathIndex:0,commandIndex:0};for(;r=e.length)return o;let a=t.segments[r],s=e[i];if(kf(s))break;let l=`${s}`,c=i0&&l===void 0)break;if(l&&c&&typeof c=="object"&&c.outlets===void 0){if(!pN(l,c,a))return o;i+=2}else{if(!pN(l,{},a))return o;i++}r++}return{match:!0,pathIndex:r,commandIndex:i}}function B1(t,n,e){let i=t.segments.slice(0,n),r=0;for(;r{typeof i=="string"&&(i=[i]),i!==null&&(n[e]=B1(new qt([],{}),0,i))}),n}function hN(t){let n={};return Object.entries(t).forEach(([e,i])=>n[e]=`${i}`),n}function pN(t,n,e){return t==e.path&&ms(n,e.parameters)}var Pm="imperative",yn=(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})(yn||{}),go=class{id;url;constructor(n,e){this.id=n,this.url=e}},ps=class extends go{type=yn.NavigationStart;navigationTrigger;restoredState;constructor(n,e,i="imperative",r=null){super(n,e),this.navigationTrigger=i,this.restoredState=r}toString(){return`NavigationStart(id: ${this.id}, url: '${this.url}')`}},vi=class extends go{urlAfterRedirects;type=yn.NavigationEnd;constructor(n,e,i){super(n,e),this.urlAfterRedirects=i}toString(){return`NavigationEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}')`}},Or=(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})(Or||{}),Nm=(function(t){return t[t.IgnoredSameUrlNavigation=0]="IgnoredSameUrlNavigation",t[t.IgnoredByUrlHandlingStrategy=1]="IgnoredByUrlHandlingStrategy",t})(Nm||{}),qo=class extends go{reason;code;type=yn.NavigationCancel;constructor(n,e,i,r){super(n,e),this.reason=i,this.code=r}toString(){return`NavigationCancel(id: ${this.id}, url: '${this.url}')`}},fs=class extends go{reason;code;type=yn.NavigationSkipped;constructor(n,e,i,r){super(n,e),this.reason=i,this.code=r}},tc=class extends go{error;target;type=yn.NavigationError;constructor(n,e,i,r){super(n,e),this.error=i,this.target=r}toString(){return`NavigationError(id: ${this.id}, url: '${this.url}', error: ${this.error})`}},Sf=class extends go{urlAfterRedirects;state;type=yn.RoutesRecognized;constructor(n,e,i,r){super(n,e),this.urlAfterRedirects=i,this.state=r}toString(){return`RoutesRecognized(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}},l0=class extends go{urlAfterRedirects;state;type=yn.GuardsCheckStart;constructor(n,e,i,r){super(n,e),this.urlAfterRedirects=i,this.state=r}toString(){return`GuardsCheckStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}},c0=class extends go{urlAfterRedirects;state;shouldActivate;type=yn.GuardsCheckEnd;constructor(n,e,i,r,o){super(n,e),this.urlAfterRedirects=i,this.state=r,this.shouldActivate=o}toString(){return`GuardsCheckEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state}, shouldActivate: ${this.shouldActivate})`}},d0=class extends go{urlAfterRedirects;state;type=yn.ResolveStart;constructor(n,e,i,r){super(n,e),this.urlAfterRedirects=i,this.state=r}toString(){return`ResolveStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}},u0=class extends go{urlAfterRedirects;state;type=yn.ResolveEnd;constructor(n,e,i,r){super(n,e),this.urlAfterRedirects=i,this.state=r}toString(){return`ResolveEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}},m0=class{route;type=yn.RouteConfigLoadStart;constructor(n){this.route=n}toString(){return`RouteConfigLoadStart(path: ${this.route.path})`}},h0=class{route;type=yn.RouteConfigLoadEnd;constructor(n){this.route=n}toString(){return`RouteConfigLoadEnd(path: ${this.route.path})`}},p0=class{snapshot;type=yn.ChildActivationStart;constructor(n){this.snapshot=n}toString(){return`ChildActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}},f0=class{snapshot;type=yn.ChildActivationEnd;constructor(n){this.snapshot=n}toString(){return`ChildActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}},g0=class{snapshot;type=yn.ActivationStart;constructor(n){this.snapshot=n}toString(){return`ActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}},_0=class{snapshot;type=yn.ActivationEnd;constructor(n){this.snapshot=n}toString(){return`ActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}},Lm=class{routerEvent;position;anchor;type=yn.Scroll;constructor(n,e,i){this.routerEvent=n,this.position=e,this.anchor=i}toString(){let n=this.position?`${this.position[0]}, ${this.position[1]}`:null;return`Scroll(anchor: '${this.anchor}', position: '${n}')`}},Tf=class{},Vm=class{url;navigationBehaviorOptions;constructor(n,e){this.url=n,this.navigationBehaviorOptions=e}};function xQ(t){return!(t instanceof Tf)&&!(t instanceof Vm)}function CQ(t,n){return t.providers&&!t._injector&&(t._injector=vm(t.providers,n,`Route: ${t.path}`)),t._injector??n}function Ta(t){return t.outlet||dt}function wQ(t,n){let e=t.filter(i=>Ta(i)===n);return e.push(...t.filter(i=>Ta(i)!==n)),e}function Hm(t){if(!t)return null;if(t.routeConfig?._injector)return t.routeConfig._injector;for(let n=t.parent;n;n=n.parent){let e=n.routeConfig;if(e?._loadedInjector)return e._loadedInjector;if(e?._injector)return e._injector}return null}var b0=class{rootInjector;outlet=null;route=null;children;attachRef=null;get injector(){return Hm(this.route?.snapshot)??this.rootInjector}constructor(n){this.rootInjector=n,this.children=new jd(this.rootInjector)}},jd=(()=>{class t{rootInjector;contexts=new Map;constructor(e){this.rootInjector=e}onChildOutletCreated(e,i){let r=this.getOrCreateContext(e);r.outlet=i,this.contexts.set(e,r)}onChildOutletDestroyed(e){let i=this.getContext(e);i&&(i.outlet=null,i.attachRef=null)}onOutletDeactivated(){let e=this.contexts;return this.contexts=new Map,e}onOutletReAttached(e){this.contexts=e}getOrCreateContext(e){let i=this.getContext(e);return i||(i=new b0(this.rootInjector),this.contexts.set(e,i)),i}getContext(e){return this.contexts.get(e)||null}static \u0275fac=function(i){return new(i||t)(pe(Wt))};static \u0275prov=O({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),v0=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=j1(n,this._root);return e?e.children.map(i=>i.value):[]}firstChild(n){let e=j1(n,this._root);return e&&e.children.length>0?e.children[0].value:null}siblings(n){let e=H1(n,this._root);return e.length<2?[]:e[e.length-2].children.map(r=>r.value).filter(r=>r!==n)}pathFromRoot(n){return H1(n,this._root).map(e=>e.value)}};function j1(t,n){if(t===n.value)return n;for(let e of n.children){let i=j1(t,e);if(i)return i}return null}function H1(t,n){if(t===n.value)return[n];for(let e of n.children){let i=H1(t,e);if(i.length)return i.unshift(n),i}return[]}var fo=class{value;children;constructor(n,e){this.value=n,this.children=e}toString(){return`TreeNode(${this.value})`}};function Om(t){let n={};return t&&t.children.forEach(e=>n[e.value.outlet]=e),n}var If=class extends v0{snapshot;constructor(n,e){super(n),this.snapshot=e,Q1(this,n)}toString(){return this.snapshot.toString()}};function PN(t){let n=DQ(t),e=new tt([new Xl("",{})]),i=new tt({}),r=new tt({}),o=new tt({}),a=new tt(""),s=new wi(e,i,o,a,r,dt,t,n.root);return s.snapshot=n.root,new If(new fo(s,[]),n)}function DQ(t){let n={},e={},i={},o=new Vd([],n,i,"",e,dt,t,null,{});return new Af("",new fo(o,[]))}var wi=class{urlSubject;paramsSubject;queryParamsSubject;fragmentSubject;dataSubject;outlet;component;snapshot;_futureSnapshot;_routerState;_paramMap;_queryParamMap;title;url;params;queryParams;fragment;data;constructor(n,e,i,r,o,a,s,l){this.urlSubject=n,this.paramsSubject=e,this.queryParamsSubject=i,this.fragmentSubject=r,this.dataSubject=o,this.outlet=a,this.component=s,this._futureSnapshot=l,this.title=this.dataSubject?.pipe(se(c=>c[Ff]))??Q(void 0),this.url=n,this.params=e,this.queryParams=i,this.fragment=r,this.data=o}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(se(n=>Bd(n))),this._paramMap}get queryParamMap(){return this._queryParamMap??=this.queryParams.pipe(se(n=>Bd(n))),this._queryParamMap}toString(){return this.snapshot?this.snapshot.toString():`Future(${this._futureSnapshot})`}};function y0(t,n,e="emptyOnly"){let i,{routeConfig:r}=t;return n!==null&&(e==="always"||r?.path===""||!n.component&&!n.routeConfig?.loadComponent)?i={params:M(M({},n.params),t.params),data:M(M({},n.data),t.data),resolve:M(M(M(M({},t.data),n.data),r?.data),t._resolvedData)}:i={params:M({},t.params),data:M({},t.data),resolve:M(M({},t.data),t._resolvedData??{})},r&&NN(r)&&(i.resolve[Ff]=r.title),i}var Vd=class{url;params;queryParams;fragment;data;outlet;component;routeConfig;_resolve;_resolvedData;_routerState;_paramMap;_queryParamMap;get title(){return this.data?.[Ff]}constructor(n,e,i,r,o,a,s,l,c){this.url=n,this.params=e,this.queryParams=i,this.fragment=r,this.data=o,this.outlet=a,this.component=s,this.routeConfig=l,this._resolve=c}get root(){return this._routerState.root}get parent(){return this._routerState.parent(this)}get firstChild(){return this._routerState.firstChild(this)}get children(){return this._routerState.children(this)}get pathFromRoot(){return this._routerState.pathFromRoot(this)}get paramMap(){return this._paramMap??=Bd(this.params),this._paramMap}get queryParamMap(){return this._queryParamMap??=Bd(this.queryParams),this._queryParamMap}toString(){let n=this.url.map(i=>i.toString()).join("/"),e=this.routeConfig?this.routeConfig.path:"";return`Route(url:'${n}', path:'${e}')`}},Af=class extends v0{url;constructor(n,e){super(e),this.url=n,Q1(this,e)}toString(){return FN(this._root)}};function Q1(t,n){n.value._routerState=t,n.children.forEach(e=>Q1(t,e))}function FN(t){let n=t.children.length>0?` { ${t.children.map(FN).join(", ")} } `:"";return`${t.value}${n}`}function R1(t){if(t.snapshot){let n=t.snapshot,e=t._futureSnapshot;t.snapshot=e,ms(n.queryParams,e.queryParams)||t.queryParamsSubject.next(e.queryParams),n.fragment!==e.fragment&&t.fragmentSubject.next(e.fragment),ms(n.params,e.params)||t.paramsSubject.next(e.params),ZY(n.url,e.url)||t.urlSubject.next(e.url),ms(n.data,e.data)||t.dataSubject.next(e.data)}else t.snapshot=t._futureSnapshot,t.dataSubject.next(t._futureSnapshot.data)}function z1(t,n){let e=ms(t.params,n.params)&&tQ(t.url,n.url),i=!t.parent!=!n.parent;return e&&!i&&(!t.parent||z1(t.parent,n.parent))}function NN(t){return typeof t.title=="string"||t.title===null}var LN=new T(""),ol=(()=>{class t{activated=null;get activatedComponentRef(){return this.activated}_activatedRoute=null;name=dt;activateEvents=new U;deactivateEvents=new U;attachEvents=new U;detachEvents=new U;routerOutletData=ne();parentContexts=u(jd);location=u(nt);changeDetector=u(ye);inputBinder=u(Nf,{optional:!0});supportsBindingToComponentInputs=!0;ngOnChanges(e){if(e.name){let{firstChange:i,previousValue:r}=e.name;if(i)return;this.isTrackedInParentContexts(r)&&(this.deactivate(),this.parentContexts.onChildOutletDestroyed(r)),this.initializeOutletWithName()}}ngOnDestroy(){this.isTrackedInParentContexts(this.name)&&this.parentContexts.onChildOutletDestroyed(this.name),this.inputBinder?.unsubscribeFromRouteData(this)}isTrackedInParentContexts(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 ue(4012,!1);return this.activated.instance}get activatedRoute(){if(!this.activated)throw new ue(4012,!1);return this._activatedRoute}get activatedRouteData(){return this._activatedRoute?this._activatedRoute.snapshot.data:{}}detach(){if(!this.activated)throw new ue(4012,!1);this.location.detach();let e=this.activated;return this.activated=null,this._activatedRoute=null,this.detachEvents.emit(e.instance),e}attach(e,i){this.activated=e,this._activatedRoute=i,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,i){if(this.isActivated)throw new ue(4013,!1);this._activatedRoute=e;let r=this.location,a=e.snapshot.component,s=this.parentContexts.getOrCreateContext(this.name).children,l=new U1(e,s,r.injector,this.routerOutletData);this.activated=r.createComponent(a,{index:r.length,injector:l,environmentInjector:i}),this.changeDetector.markForCheck(),this.inputBinder?.bindActivatedRouteToOutletComponent(this),this.activateEvents.emit(this.activated.instance)}static \u0275fac=function(i){return new(i||t)};static \u0275dir=F({type:t,selectors:[["router-outlet"]],inputs:{name:"name",routerOutletData:[1,"routerOutletData"]},outputs:{activateEvents:"activate",deactivateEvents:"deactivate",attachEvents:"attach",detachEvents:"detach"},exportAs:["outlet"],features:[Ae]})}return t})(),U1=class{route;childContexts;parent;outletData;constructor(n,e,i,r){this.route=n,this.childContexts=e,this.parent=i,this.outletData=r}get(n,e){return n===wi?this.route:n===jd?this.childContexts:n===LN?this.outletData:this.parent.get(n,e)}},Nf=new T(""),K1=(()=>{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:i}=e,r=co([i.queryParams,i.params,i.data]).pipe($e(([o,a,s],l)=>(s=M(M(M({},o),a),s),l===0?Q(s):Promise.resolve(s)))).subscribe(o=>{if(!e.isActivated||!e.activatedComponentRef||e.activatedRoute!==i||i.component===null){this.unsubscribeFromRouteData(e);return}let a=c2(i.component);if(!a){this.unsubscribeFromRouteData(e);return}for(let{templateName:s}of a.inputs)e.activatedComponentRef.setInput(s,o[s])});this.outletDataSubscriptions.set(e,r)}static \u0275fac=function(i){return new(i||t)};static \u0275prov=O({token:t,factory:t.\u0275fac})}return t})(),Z1=(()=>{class t{static \u0275fac=function(i){return new(i||t)};static \u0275cmp=E({type:t,selectors:[["ng-component"]],exportAs:["emptyRouterOutlet"],decls:1,vars:0,template:function(i,r){i&1&&k(0,"router-outlet")},dependencies:[ol],encapsulation:2})}return t})();function X1(t){let n=t.children&&t.children.map(X1),e=n?De(M({},t),{children:n}):M({},t);return!e.component&&!e.loadComponent&&(n||e.loadChildren)&&e.outlet&&e.outlet!==dt&&(e.component=Z1),e}function EQ(t,n,e){let i=Of(t,n._root,e?e._root:void 0);return new If(i,n)}function Of(t,n,e){if(e&&t.shouldReuseRoute(n.value,e.value.snapshot)){let i=e.value;i._futureSnapshot=n.value;let r=MQ(t,n,e);return new fo(i,r)}else{if(t.shouldAttach(n.value)){let o=t.retrieve(n.value);if(o!==null){let a=o.route;return a.value._futureSnapshot=n.value,a.children=n.children.map(s=>Of(t,s)),a}}let i=kQ(n.value),r=n.children.map(o=>Of(t,o));return new fo(i,r)}}function MQ(t,n,e){return n.children.map(i=>{for(let r of e.children)if(t.shouldReuseRoute(i.value,r.value.snapshot))return Of(t,i,r);return Of(t,i)})}function kQ(t){return new wi(new tt(t.url),new tt(t.params),new tt(t.queryParams),new tt(t.fragment),new tt(t.data),t.outlet,t.component,t)}var Bm=class{redirectTo;navigationBehaviorOptions;constructor(n,e){this.redirectTo=n,this.navigationBehaviorOptions=e}},VN="ngNavigationCancelingError";function x0(t,n){let{redirectTo:e,navigationBehaviorOptions:i}=ec(n)?{redirectTo:n,navigationBehaviorOptions:void 0}:n,r=BN(!1,Or.Redirect);return r.url=e,r.navigationBehaviorOptions=i,r}function BN(t,n){let e=new Error(`NavigationCancelingError: ${t||""}`);return e[VN]=!0,e.cancellationCode=n,e}function SQ(t){return jN(t)&&ec(t.url)}function jN(t){return!!t&&t[VN]}var TQ=(t,n,e,i)=>se(r=>(new $1(n,r.targetRouterState,r.currentRouterState,e,i).activate(t),r)),$1=class{routeReuseStrategy;futureState;currState;forwardEvent;inputBindingEnabled;constructor(n,e,i,r,o){this.routeReuseStrategy=n,this.futureState=e,this.currState=i,this.forwardEvent=r,this.inputBindingEnabled=o}activate(n){let e=this.futureState._root,i=this.currState?this.currState._root:null;this.deactivateChildRoutes(e,i,n),R1(this.futureState.root),this.activateChildRoutes(e,i,n)}deactivateChildRoutes(n,e,i){let r=Om(e);n.children.forEach(o=>{let a=o.value.outlet;this.deactivateRoutes(o,r[a],i),delete r[a]}),Object.values(r).forEach(o=>{this.deactivateRouteAndItsChildren(o,i)})}deactivateRoutes(n,e,i){let r=n.value,o=e?e.value:null;if(r===o)if(r.component){let a=i.getContext(r.outlet);a&&this.deactivateChildRoutes(n,e,a.children)}else this.deactivateChildRoutes(n,e,i);else o&&this.deactivateRouteAndItsChildren(e,i)}deactivateRouteAndItsChildren(n,e){n.value.component&&this.routeReuseStrategy.shouldDetach(n.value.snapshot)?this.detachAndStoreRouteSubtree(n,e):this.deactivateRouteAndOutlet(n,e)}detachAndStoreRouteSubtree(n,e){let i=e.getContext(n.value.outlet),r=i&&n.value.component?i.children:e,o=Om(n);for(let a of Object.values(o))this.deactivateRouteAndItsChildren(a,r);if(i&&i.outlet){let a=i.outlet.detach(),s=i.children.onOutletDeactivated();this.routeReuseStrategy.store(n.value.snapshot,{componentRef:a,route:n,contexts:s})}}deactivateRouteAndOutlet(n,e){let i=e.getContext(n.value.outlet),r=i&&n.value.component?i.children:e,o=Om(n);for(let a of Object.values(o))this.deactivateRouteAndItsChildren(a,r);i&&(i.outlet&&(i.outlet.deactivate(),i.children.onOutletDeactivated()),i.attachRef=null,i.route=null)}activateChildRoutes(n,e,i){let r=Om(e);n.children.forEach(o=>{this.activateRoutes(o,r[o.value.outlet],i),this.forwardEvent(new _0(o.value.snapshot))}),n.children.length&&this.forwardEvent(new f0(n.value.snapshot))}activateRoutes(n,e,i){let r=n.value,o=e?e.value:null;if(R1(r),r===o)if(r.component){let a=i.getOrCreateContext(r.outlet);this.activateChildRoutes(n,e,a.children)}else this.activateChildRoutes(n,e,i);else if(r.component){let a=i.getOrCreateContext(r.outlet);if(this.routeReuseStrategy.shouldAttach(r.snapshot)){let s=this.routeReuseStrategy.retrieve(r.snapshot);this.routeReuseStrategy.store(r.snapshot,null),a.children.onOutletReAttached(s.contexts),a.attachRef=s.componentRef,a.route=s.route.value,a.outlet&&a.outlet.attach(s.componentRef,s.route.value),R1(s.route.value),this.activateChildRoutes(n,null,a.children)}else a.attachRef=null,a.route=r,a.outlet&&a.outlet.activateWith(r,a.injector),this.activateChildRoutes(n,null,a.children)}else this.activateChildRoutes(n,null,i)}},C0=class{path;route;constructor(n){this.path=n,this.route=this.path[this.path.length-1]}},Fm=class{component;route;constructor(n,e){this.component=n,this.route=e}};function IQ(t,n,e){let i=t._root,r=n?n._root:null;return Df(i,r,e,[i.value])}function AQ(t){let n=t.routeConfig?t.routeConfig.canActivateChild:null;return!n||n.length===0?null:{node:t,guards:n}}function zm(t,n){let e=Symbol(),i=n.get(t,e);return i===e?typeof t=="function"&&!uD(t)?t:n.get(t):i}function Df(t,n,e,i,r={canDeactivateChecks:[],canActivateChecks:[]}){let o=Om(n);return t.children.forEach(a=>{OQ(a,o[a.value.outlet],e,i.concat([a.value]),r),delete o[a.value.outlet]}),Object.entries(o).forEach(([a,s])=>Mf(s,e.getContext(a),r)),r}function OQ(t,n,e,i,r={canDeactivateChecks:[],canActivateChecks:[]}){let o=t.value,a=n?n.value:null,s=e?e.getContext(t.value.outlet):null;if(a&&o.routeConfig===a.routeConfig){let l=RQ(a,o,o.routeConfig.runGuardsAndResolvers);l?r.canActivateChecks.push(new C0(i)):(o.data=a.data,o._resolvedData=a._resolvedData),o.component?Df(t,n,s?s.children:null,i,r):Df(t,n,e,i,r),l&&s&&s.outlet&&s.outlet.isActivated&&r.canDeactivateChecks.push(new Fm(s.outlet.component,a))}else a&&Mf(n,s,r),r.canActivateChecks.push(new C0(i)),o.component?Df(t,null,s?s.children:null,i,r):Df(t,null,e,i,r);return r}function RQ(t,n,e){if(typeof e=="function")return e(t,n);switch(e){case"pathParamsChange":return!Ld(t.url,n.url);case"pathParamsOrQueryParamsChange":return!Ld(t.url,n.url)||!ms(t.queryParams,n.queryParams);case"always":return!0;case"paramsOrQueryParamsChange":return!z1(t,n)||!ms(t.queryParams,n.queryParams);case"paramsChange":default:return!z1(t,n)}}function Mf(t,n,e){let i=Om(t),r=t.value;Object.entries(i).forEach(([o,a])=>{r.component?n?Mf(a,n.children.getContext(o),e):Mf(a,null,e):Mf(a,n,e)}),r.component?n&&n.outlet&&n.outlet.isActivated?e.canDeactivateChecks.push(new Fm(n.outlet.component,r)):e.canDeactivateChecks.push(new Fm(null,r)):e.canDeactivateChecks.push(new Fm(null,r))}function Lf(t){return typeof t=="function"}function PQ(t){return typeof t=="boolean"}function FQ(t){return t&&Lf(t.canLoad)}function NQ(t){return t&&Lf(t.canActivate)}function LQ(t){return t&&Lf(t.canActivateChild)}function VQ(t){return t&&Lf(t.canDeactivate)}function BQ(t){return t&&Lf(t.canMatch)}function HN(t){return t instanceof Hs||t?.name==="EmptyError"}var i0=Symbol("INITIAL_VALUE");function jm(){return $e(t=>co(t.map(n=>n.pipe(lt(1),He(i0)))).pipe(se(n=>{for(let e of n)if(e!==!0){if(e===i0)return i0;if(e===!1||jQ(e))return e}return!0}),ce(n=>n!==i0),lt(1)))}function jQ(t){return ec(t)||t instanceof Bm}function HQ(t,n){return Mt(e=>{let{targetSnapshot:i,currentSnapshot:r,guards:{canActivateChecks:o,canDeactivateChecks:a}}=e;return a.length===0&&o.length===0?Q(De(M({},e),{guardsResult:!0})):zQ(a,i,r,t).pipe(Mt(s=>s&&PQ(s)?UQ(i,o,t,n):Q(s)),se(s=>De(M({},e),{guardsResult:s})))})}function zQ(t,n,e,i){return Ot(t).pipe(Mt(r=>YQ(r.component,r.route,e,n,i)),gn(r=>r!==!0,!0))}function UQ(t,n,e,i){return Ot(n).pipe(Ao(r=>mo(WQ(r.route.parent,i),$Q(r.route,i),qQ(t,r.path,e),GQ(t,r.route,e))),gn(r=>r!==!0,!0))}function $Q(t,n){return t!==null&&n&&n(new g0(t)),Q(!0)}function WQ(t,n){return t!==null&&n&&n(new p0(t)),Q(!0)}function GQ(t,n,e){let i=n.routeConfig?n.routeConfig.canActivate:null;if(!i||i.length===0)return Q(!0);let r=i.map(o=>kn(()=>{let a=Hm(n)??e,s=zm(o,a),l=NQ(s)?s.canActivate(n,t):In(a,()=>s(n,t));return rl(l).pipe(gn())}));return Q(r).pipe(jm())}function qQ(t,n,e){let i=n[n.length-1],o=n.slice(0,n.length-1).reverse().map(a=>AQ(a)).filter(a=>a!==null).map(a=>kn(()=>{let s=a.guards.map(l=>{let c=Hm(a.node)??e,d=zm(l,c),m=LQ(d)?d.canActivateChild(i,t):In(c,()=>d(i,t));return rl(m).pipe(gn())});return Q(s).pipe(jm())}));return Q(o).pipe(jm())}function YQ(t,n,e,i,r){let o=n&&n.routeConfig?n.routeConfig.canDeactivate:null;if(!o||o.length===0)return Q(!0);let a=o.map(s=>{let l=Hm(n)??r,c=zm(s,l),d=VQ(c)?c.canDeactivate(t,n,e,i):In(l,()=>c(t,n,e,i));return rl(d).pipe(gn())});return Q(a).pipe(jm())}function QQ(t,n,e,i){let r=n.canLoad;if(r===void 0||r.length===0)return Q(!0);let o=r.map(a=>{let s=zm(a,t),l=FQ(s)?s.canLoad(n,e):In(t,()=>s(n,e));return rl(l)});return Q(o).pipe(jm(),zN(i))}function zN(t){return Bw(Be(n=>{if(typeof n!="boolean")throw x0(t,n)}),se(n=>n===!0))}function KQ(t,n,e,i){let r=n.canMatch;if(!r||r.length===0)return Q(!0);let o=r.map(a=>{let s=zm(a,t),l=BQ(s)?s.canMatch(n,e):In(t,()=>s(n,e));return rl(l)});return Q(o).pipe(jm(),zN(i))}var Rf=class{segmentGroup;constructor(n){this.segmentGroup=n||null}},Pf=class extends Error{urlTree;constructor(n){super(),this.urlTree=n}};function Am(t){return Wn(new Rf(t))}function ZQ(t){return Wn(new ue(4e3,!1))}function XQ(t){return Wn(BN(!1,Or.GuardRejected))}var W1=class{urlSerializer;urlTree;constructor(n,e){this.urlSerializer=n,this.urlTree=e}lineralizeSegments(n,e){let i=[],r=e.root;for(;;){if(i=i.concat(r.segments),r.numberOfChildren===0)return Q(i);if(r.numberOfChildren>1||!r.children[dt])return ZQ(`${n.redirectTo}`);r=r.children[dt]}}applyRedirectCommands(n,e,i,r,o){return JQ(e,r,o).pipe(se(a=>{if(a instanceof hs)throw new Pf(a);let s=this.applyRedirectCreateUrlTree(a,this.urlSerializer.parse(a),n,i);if(a[0]==="/")throw new Pf(s);return s}))}applyRedirectCreateUrlTree(n,e,i,r){let o=this.createSegmentGroup(n,e.root,i,r);return new hs(o,this.createQueryParams(e.queryParams,this.urlTree.queryParams),e.fragment)}createQueryParams(n,e){let i={};return Object.entries(n).forEach(([r,o])=>{if(typeof o=="string"&&o[0]===":"){let s=o.substring(1);i[r]=e[s]}else i[r]=o}),i}createSegmentGroup(n,e,i,r){let o=this.createSegments(n,e.segments,i,r),a={};return Object.entries(e.children).forEach(([s,l])=>{a[s]=this.createSegmentGroup(n,l,i,r)}),new qt(o,a)}createSegments(n,e,i,r){return e.map(o=>o.path[0]===":"?this.findPosParam(n,o,r):this.findOrReturn(o,i))}findPosParam(n,e,i){let r=i[e.path.substring(1)];if(!r)throw new ue(4001,!1);return r}findOrReturn(n,e){let i=0;for(let r of e){if(r.path===n.path)return e.splice(i),r;i++}return n}};function JQ(t,n,e){if(typeof t=="string")return Q(t);let i=t,{queryParams:r,fragment:o,routeConfig:a,url:s,outlet:l,params:c,data:d,title:m}=n;return rl(In(e,()=>i({params:c,data:d,queryParams:r,fragment:o,routeConfig:a,url:s,outlet:l,title:m})))}var G1={matched:!1,consumedSegments:[],remainingSegments:[],parameters:{},positionalParamSegments:{}};function eK(t,n,e,i,r){let o=UN(t,n,e);return o.matched?(i=CQ(n,i),KQ(i,n,e,r).pipe(se(a=>a===!0?o:M({},G1)))):Q(o)}function UN(t,n,e){if(n.path==="**")return tK(e);if(n.path==="")return n.pathMatch==="full"&&(t.hasChildren()||e.length>0)?M({},G1):{matched:!0,consumedSegments:[],remainingSegments:e,parameters:{},positionalParamSegments:{}};let r=(n.matcher||bN)(e,t,n);if(!r)return M({},G1);let o={};Object.entries(r.posParams??{}).forEach(([s,l])=>{o[s]=l.path});let a=r.consumed.length>0?M(M({},o),r.consumed[r.consumed.length-1].parameters):o;return{matched:!0,consumedSegments:r.consumed,remainingSegments:e.slice(r.consumed.length),parameters:a,positionalParamSegments:r.posParams??{}}}function tK(t){return{matched:!0,parameters:t.length>0?yN(t).parameters:{},consumedSegments:t,remainingSegments:[],positionalParamSegments:{}}}function fN(t,n,e,i){return e.length>0&&rK(t,e,i)?{segmentGroup:new qt(n,nK(i,new qt(e,t.children))),slicedSegments:[]}:e.length===0&&oK(t,e,i)?{segmentGroup:new qt(t.segments,iK(t,e,i,t.children)),slicedSegments:e}:{segmentGroup:new qt(t.segments,t.children),slicedSegments:e}}function iK(t,n,e,i){let r={};for(let o of e)if(D0(t,n,o)&&!i[Ta(o)]){let a=new qt([],{});r[Ta(o)]=a}return M(M({},i),r)}function nK(t,n){let e={};e[dt]=n;for(let i of t)if(i.path===""&&Ta(i)!==dt){let r=new qt([],{});e[Ta(i)]=r}return e}function rK(t,n,e){return e.some(i=>D0(t,n,i)&&Ta(i)!==dt)}function oK(t,n,e){return e.some(i=>D0(t,n,i))}function D0(t,n,e){return(t.hasChildren()||n.length>0)&&e.pathMatch==="full"?!1:e.path===""}function aK(t,n,e){return n.length===0&&!t.children[e]}var q1=class{};function sK(t,n,e,i,r,o,a="emptyOnly"){return new Y1(t,n,e,i,r,a,o).recognize()}var lK=31,Y1=class{injector;configLoader;rootComponentType;config;urlTree;paramsInheritanceStrategy;urlSerializer;applyRedirects;absoluteRedirectCount=0;allowRedirects=!0;constructor(n,e,i,r,o,a,s){this.injector=n,this.configLoader=e,this.rootComponentType=i,this.config=r,this.urlTree=o,this.paramsInheritanceStrategy=a,this.urlSerializer=s,this.applyRedirects=new W1(this.urlSerializer,this.urlTree)}noMatchError(n){return new ue(4002,`'${n.segmentGroup}'`)}recognize(){let n=fN(this.urlTree.root,[],[],this.config).segmentGroup;return this.match(n).pipe(se(({children:e,rootSnapshot:i})=>{let r=new fo(i,e),o=new Af("",r),a=TN(i,[],this.urlTree.queryParams,this.urlTree.fragment);return a.queryParams=this.urlTree.queryParams,o.url=this.urlSerializer.serialize(a),{state:o,tree:a}}))}match(n){let e=new Vd([],Object.freeze({}),Object.freeze(M({},this.urlTree.queryParams)),this.urlTree.fragment,Object.freeze({}),dt,this.rootComponentType,null,{});return this.processSegmentGroup(this.injector,this.config,n,dt,e).pipe(se(i=>({children:i,rootSnapshot:e})),fi(i=>{if(i instanceof Pf)return this.urlTree=i.urlTree,this.match(i.urlTree.root);throw i instanceof Rf?this.noMatchError(i):i}))}processSegmentGroup(n,e,i,r,o){return i.segments.length===0&&i.hasChildren()?this.processChildren(n,e,i,o):this.processSegment(n,e,i,i.segments,r,!0,o).pipe(se(a=>a instanceof fo?[a]:[]))}processChildren(n,e,i,r){let o=[];for(let a of Object.keys(i.children))a==="primary"?o.unshift(a):o.push(a);return Ot(o).pipe(Ao(a=>{let s=i.children[a],l=wQ(e,a);return this.processSegmentGroup(n,l,s,a,r)}),Kw((a,s)=>(a.push(...s),a)),Fl(null),Qw(),Mt(a=>{if(a===null)return Am(i);let s=$N(a);return cK(s),Q(s)}))}processSegment(n,e,i,r,o,a,s){return Ot(e).pipe(Ao(l=>this.processSegmentAgainstRoute(l._injector??n,e,l,i,r,o,a,s).pipe(fi(c=>{if(c instanceof Rf)return Q(null);throw c}))),gn(l=>!!l),fi(l=>{if(HN(l))return aK(i,r,o)?Q(new q1):Am(i);throw l}))}processSegmentAgainstRoute(n,e,i,r,o,a,s,l){return Ta(i)!==a&&(a===dt||!D0(r,o,i))?Am(r):i.redirectTo===void 0?this.matchSegmentAgainstRoute(n,r,i,o,a,l):this.allowRedirects&&s?this.expandSegmentAgainstRouteUsingRedirect(n,r,e,i,o,a,l):Am(r)}expandSegmentAgainstRouteUsingRedirect(n,e,i,r,o,a,s){let{matched:l,parameters:c,consumedSegments:d,positionalParamSegments:m,remainingSegments:f}=UN(e,r,o);if(!l)return Am(e);typeof r.redirectTo=="string"&&r.redirectTo[0]==="/"&&(this.absoluteRedirectCount++,this.absoluteRedirectCount>lK&&(this.allowRedirects=!1));let b=new Vd(o,c,Object.freeze(M({},this.urlTree.queryParams)),this.urlTree.fragment,gN(r),Ta(r),r.component??r._loadedComponent??null,r,_N(r)),v=y0(b,s,this.paramsInheritanceStrategy);return b.params=Object.freeze(v.params),b.data=Object.freeze(v.data),this.applyRedirects.applyRedirectCommands(d,r.redirectTo,m,b,n).pipe($e(x=>this.applyRedirects.lineralizeSegments(r,x)),Mt(x=>this.processSegment(n,i,e,x.concat(f),a,!1,s)))}matchSegmentAgainstRoute(n,e,i,r,o,a){let s=eK(e,i,r,n,this.urlSerializer);return i.path==="**"&&(e.children={}),s.pipe($e(l=>l.matched?(n=i._injector??n,this.getChildConfig(n,i,r).pipe($e(({routes:c})=>{let d=i._loadedInjector??n,{parameters:m,consumedSegments:f,remainingSegments:b}=l,v=new Vd(f,m,Object.freeze(M({},this.urlTree.queryParams)),this.urlTree.fragment,gN(i),Ta(i),i.component??i._loadedComponent??null,i,_N(i)),w=y0(v,a,this.paramsInheritanceStrategy);v.params=Object.freeze(w.params),v.data=Object.freeze(w.data);let{segmentGroup:x,slicedSegments:D}=fN(e,f,b,c);if(D.length===0&&x.hasChildren())return this.processChildren(d,c,x,v).pipe(se(W=>new fo(v,W)));if(c.length===0&&D.length===0)return Q(new fo(v,[]));let P=Ta(i)===o;return this.processSegment(d,c,x,D,P?dt:o,!0,v).pipe(se(W=>new fo(v,W instanceof fo?[W]:[])))}))):Am(e)))}getChildConfig(n,e,i){return e.children?Q({routes:e.children,injector:n}):e.loadChildren?e._loadedRoutes!==void 0?Q({routes:e._loadedRoutes,injector:e._loadedInjector}):QQ(n,e,i,this.urlSerializer).pipe(Mt(r=>r?this.configLoader.loadChildren(n,e).pipe(Be(o=>{e._loadedRoutes=o.routes,e._loadedInjector=o.injector})):XQ(e))):Q({routes:[],injector:n})}};function cK(t){t.sort((n,e)=>n.value.outlet===dt?-1:e.value.outlet===dt?1:n.value.outlet.localeCompare(e.value.outlet))}function dK(t){let n=t.value.routeConfig;return n&&n.path===""}function $N(t){let n=[],e=new Set;for(let i of t){if(!dK(i)){n.push(i);continue}let r=n.find(o=>i.value.routeConfig===o.value.routeConfig);r!==void 0?(r.children.push(...i.children),e.add(r)):n.push(i)}for(let i of e){let r=$N(i.children);n.push(new fo(i.value,r))}return n.filter(i=>!e.has(i))}function gN(t){return t.data||{}}function _N(t){return t.resolve||{}}function uK(t,n,e,i,r,o){return Mt(a=>sK(t,n,e,i,a.extractedUrl,r,o).pipe(se(({state:s,tree:l})=>De(M({},a),{targetSnapshot:s,urlAfterRedirects:l}))))}function mK(t,n){return Mt(e=>{let{targetSnapshot:i,guards:{canActivateChecks:r}}=e;if(!r.length)return Q(e);let o=new Set(r.map(l=>l.route)),a=new Set;for(let l of o)if(!a.has(l))for(let c of WN(l))a.add(c);let s=0;return Ot(a).pipe(Ao(l=>o.has(l)?hK(l,i,t,n):(l.data=y0(l,l.parent,t).resolve,Q(void 0))),Be(()=>s++),qu(1),Mt(l=>s===a.size?Q(e):Fi))})}function WN(t){let n=t.children.map(e=>WN(e)).flat();return[t,...n]}function hK(t,n,e,i){let r=t.routeConfig,o=t._resolve;return r?.title!==void 0&&!NN(r)&&(o[Ff]=r.title),kn(()=>(t.data=y0(t,t.parent,e).resolve,pK(o,t,n,i).pipe(se(a=>(t._resolvedData=a,t.data=M(M({},t.data),a),null)))))}function pK(t,n,e,i){let r=N1(t);if(r.length===0)return Q({});let o={};return Ot(r).pipe(Mt(a=>fK(t[a],n,e,i).pipe(gn(),Be(s=>{if(s instanceof Bm)throw x0(new Jl,s);o[a]=s}))),qu(1),se(()=>o),fi(a=>HN(a)?Fi:Wn(a)))}function fK(t,n,e,i){let r=Hm(n)??i,o=zm(t,r),a=o.resolve?o.resolve(n,e):In(r,()=>o(n,e));return rl(a)}function P1(t){return $e(n=>{let e=t(n);return e?Ot(e).pipe(se(()=>n)):Q(n)})}var J1=(()=>{class t{buildTitle(e){let i,r=e.root;for(;r!==void 0;)i=this.getResolvedTitleForRoute(r)??i,r=r.children.find(o=>o.outlet===dt);return i}getResolvedTitleForRoute(e){return e.data[Ff]}static \u0275fac=function(i){return new(i||t)};static \u0275prov=O({token:t,factory:()=>u(GN),providedIn:"root"})}return t})(),GN=(()=>{class t extends J1{title;constructor(e){super(),this.title=e}updateTitle(e){let i=this.buildTitle(e);i!==void 0&&this.title.setTitle(i)}static \u0275fac=function(i){return new(i||t)(pe(dN))};static \u0275prov=O({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),nc=new T("",{providedIn:"root",factory:()=>({})}),Hd=new T(""),E0=(()=>{class t{componentLoaders=new WeakMap;childrenLoaders=new WeakMap;onLoadStartListener;onLoadEndListener;compiler=u(jM);loadComponent(e,i){if(this.componentLoaders.get(i))return this.componentLoaders.get(i);if(i._loadedComponent)return Q(i._loadedComponent);this.onLoadStartListener&&this.onLoadStartListener(i);let r=rl(In(e,()=>i.loadComponent())).pipe(se(YN),$e(QN),Be(a=>{this.onLoadEndListener&&this.onLoadEndListener(i),i._loadedComponent=a}),Hr(()=>{this.componentLoaders.delete(i)})),o=new Al(r,()=>new z).pipe(ju());return this.componentLoaders.set(i,o),o}loadChildren(e,i){if(this.childrenLoaders.get(i))return this.childrenLoaders.get(i);if(i._loadedRoutes)return Q({routes:i._loadedRoutes,injector:i._loadedInjector});this.onLoadStartListener&&this.onLoadStartListener(i);let o=qN(i,this.compiler,e,this.onLoadEndListener).pipe(Hr(()=>{this.childrenLoaders.delete(i)})),a=new Al(o,()=>new z).pipe(ju());return this.childrenLoaders.set(i,a),a}static \u0275fac=function(i){return new(i||t)};static \u0275prov=O({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();function qN(t,n,e,i){return rl(In(e,()=>t.loadChildren())).pipe(se(YN),$e(QN),Mt(r=>r instanceof wv||Array.isArray(r)?Q(r):Ot(n.compileModuleAsync(r))),se(r=>{i&&i(t);let o,a,s=!1;return Array.isArray(r)?(a=r,s=!0):(o=r.create(e).injector,a=o.get(Hd,[],{optional:!0,self:!0}).flat()),{routes:a.map(X1),injector:o}}))}function gK(t){return t&&typeof t=="object"&&"default"in t}function YN(t){return gK(t)?t.default:t}function QN(t){return Q(t)}var M0=(()=>{class t{static \u0275fac=function(i){return new(i||t)};static \u0275prov=O({token:t,factory:()=>u(_K),providedIn:"root"})}return t})(),_K=(()=>{class t{shouldProcessUrl(e){return!0}extract(e){return e}merge(e,i){return e}static \u0275fac=function(i){return new(i||t)};static \u0275prov=O({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),ek=new T(""),tk=new T("");function KN(t,n,e){let i=t.get(tk),r=t.get(ge);if(!r.startViewTransition||i.skipNextTransition)return i.skipNextTransition=!1,new Promise(c=>setTimeout(c));let o,a=new Promise(c=>{o=c}),s=r.startViewTransition(()=>(o(),bK(t)));s.ready.catch(c=>{});let{onViewTransitionCreated:l}=i;return l&&In(t,()=>l({transition:s,from:n,to:e})),a}function bK(t){return new Promise(n=>{pt({read:()=>setTimeout(n)},{injector:t})})}var ik=new T(""),Vf=(()=>{class t{currentNavigation=he(null,{equal:()=>!1});currentTransition=null;lastSuccessfulNavigation=null;events=new z;transitionAbortWithErrorSubject=new z;configLoader=u(E0);environmentInjector=u(Wt);destroyRef=u(nn);urlSerializer=u(ic);rootContexts=u(jd);location=u(us);inputBindingEnabled=u(Nf,{optional:!0})!==null;titleStrategy=u(J1);options=u(nc,{optional:!0})||{};paramsInheritanceStrategy=this.options.paramsInheritanceStrategy||"emptyOnly";urlHandlingStrategy=u(M0);createViewTransition=u(ek,{optional:!0});navigationErrorHandler=u(ik,{optional:!0});navigationId=0;get hasRequestedNavigation(){return this.navigationId!==0}transitions;afterPreactivation=()=>Q(void 0);rootComponentType=null;destroyed=!1;constructor(){let e=r=>this.events.next(new m0(r)),i=r=>this.events.next(new h0(r));this.configLoader.onLoadEndListener=i,this.configLoader.onLoadStartListener=e,this.destroyRef.onDestroy(()=>{this.destroyed=!0})}complete(){this.transitions?.complete()}handleNavigationRequest(e){let i=++this.navigationId;Ti(()=>{this.transitions?.next(De(M({},e),{extractedUrl:this.urlHandlingStrategy.extract(e.rawUrl),targetSnapshot:null,targetRouterState:null,guards:{canActivateChecks:[],canDeactivateChecks:[]},guardsResult:null,abortController:new AbortController,id:i}))})}setupNavigations(e){return this.transitions=new tt(null),this.transitions.pipe(ce(i=>i!==null),$e(i=>{let r=!1;return Q(i).pipe($e(o=>{if(this.navigationId>i.id)return this.cancelNavigationTransition(i,"",Or.SupersededByNewNavigation),Fi;this.currentTransition=i,this.currentNavigation.set({id:o.id,initialUrl:o.rawUrl,extractedUrl:o.extractedUrl,targetBrowserUrl:typeof o.extras.browserUrl=="string"?this.urlSerializer.parse(o.extras.browserUrl):o.extras.browserUrl,trigger:o.source,extras:o.extras,previousNavigation:this.lastSuccessfulNavigation?De(M({},this.lastSuccessfulNavigation),{previousNavigation:null}):null,abort:()=>o.abortController.abort()});let a=!e.navigated||this.isUpdatingInternalState()||this.isUpdatedBrowserUrl(),s=o.extras.onSameUrlNavigation??e.onSameUrlNavigation;if(!a&&s!=="reload")return this.events.next(new fs(o.id,this.urlSerializer.serialize(o.rawUrl),"",Nm.IgnoredSameUrlNavigation)),o.resolve(!1),Fi;if(this.urlHandlingStrategy.shouldProcessUrl(o.rawUrl))return Q(o).pipe($e(l=>(this.events.next(new ps(l.id,this.urlSerializer.serialize(l.extractedUrl),l.source,l.restoredState)),l.id!==this.navigationId?Fi:Promise.resolve(l))),uK(this.environmentInjector,this.configLoader,this.rootComponentType,e.config,this.urlSerializer,this.paramsInheritanceStrategy),Be(l=>{i.targetSnapshot=l.targetSnapshot,i.urlAfterRedirects=l.urlAfterRedirects,this.currentNavigation.update(d=>(d.finalUrl=l.urlAfterRedirects,d));let c=new Sf(l.id,this.urlSerializer.serialize(l.extractedUrl),this.urlSerializer.serialize(l.urlAfterRedirects),l.targetSnapshot);this.events.next(c)}));if(a&&this.urlHandlingStrategy.shouldProcessUrl(o.currentRawUrl)){let{id:l,extractedUrl:c,source:d,restoredState:m,extras:f}=o,b=new ps(l,this.urlSerializer.serialize(c),d,m);this.events.next(b);let v=PN(this.rootComponentType).snapshot;return this.currentTransition=i=De(M({},o),{targetSnapshot:v,urlAfterRedirects:c,extras:De(M({},f),{skipLocationChange:!1,replaceUrl:!1})}),this.currentNavigation.update(w=>(w.finalUrl=c,w)),Q(i)}else return this.events.next(new fs(o.id,this.urlSerializer.serialize(o.extractedUrl),"",Nm.IgnoredByUrlHandlingStrategy)),o.resolve(!1),Fi}),Be(o=>{let a=new l0(o.id,this.urlSerializer.serialize(o.extractedUrl),this.urlSerializer.serialize(o.urlAfterRedirects),o.targetSnapshot);this.events.next(a)}),se(o=>(this.currentTransition=i=De(M({},o),{guards:IQ(o.targetSnapshot,o.currentSnapshot,this.rootContexts)}),i)),HQ(this.environmentInjector,o=>this.events.next(o)),Be(o=>{if(i.guardsResult=o.guardsResult,o.guardsResult&&typeof o.guardsResult!="boolean")throw x0(this.urlSerializer,o.guardsResult);let a=new c0(o.id,this.urlSerializer.serialize(o.extractedUrl),this.urlSerializer.serialize(o.urlAfterRedirects),o.targetSnapshot,!!o.guardsResult);this.events.next(a)}),ce(o=>o.guardsResult?!0:(this.cancelNavigationTransition(o,"",Or.GuardRejected),!1)),P1(o=>{if(o.guards.canActivateChecks.length!==0)return Q(o).pipe(Be(a=>{let s=new d0(a.id,this.urlSerializer.serialize(a.extractedUrl),this.urlSerializer.serialize(a.urlAfterRedirects),a.targetSnapshot);this.events.next(s)}),$e(a=>{let s=!1;return Q(a).pipe(mK(this.paramsInheritanceStrategy,this.environmentInjector),Be({next:()=>s=!0,complete:()=>{s||this.cancelNavigationTransition(a,"",Or.NoDataFromResolver)}}))}),Be(a=>{let s=new u0(a.id,this.urlSerializer.serialize(a.extractedUrl),this.urlSerializer.serialize(a.urlAfterRedirects),a.targetSnapshot);this.events.next(s)}))}),P1(o=>{let a=s=>{let l=[];if(s.routeConfig?.loadComponent){let c=Hm(s)??this.environmentInjector;l.push(this.configLoader.loadComponent(c,s.routeConfig).pipe(Be(d=>{s.component=d}),se(()=>{})))}for(let c of s.children)l.push(...a(c));return l};return co(a(o.targetSnapshot.root)).pipe(Fl(null),lt(1))}),P1(()=>this.afterPreactivation()),$e(()=>{let{currentSnapshot:o,targetSnapshot:a}=i,s=this.createViewTransition?.(this.environmentInjector,o.root,a.root);return s?Ot(s).pipe(se(()=>i)):Q(i)}),se(o=>{let a=EQ(e.routeReuseStrategy,o.targetSnapshot,o.currentRouterState);return this.currentTransition=i=De(M({},o),{targetRouterState:a}),this.currentNavigation.update(s=>(s.targetRouterState=a,s)),i}),Be(()=>{this.events.next(new Tf)}),TQ(this.rootContexts,e.routeReuseStrategy,o=>this.events.next(o),this.inputBindingEnabled),lt(1),Te(new Fe(o=>{let a=i.abortController.signal,s=()=>o.next();return a.addEventListener("abort",s),()=>a.removeEventListener("abort",s)}).pipe(ce(()=>!r&&!i.targetRouterState),Be(()=>{this.cancelNavigationTransition(i,i.abortController.signal.reason+"",Or.Aborted)}))),Be({next:o=>{r=!0,this.lastSuccessfulNavigation=Ti(this.currentNavigation),this.events.next(new vi(o.id,this.urlSerializer.serialize(o.extractedUrl),this.urlSerializer.serialize(o.urlAfterRedirects))),this.titleStrategy?.updateTitle(o.targetRouterState.snapshot),o.resolve(!0)},complete:()=>{r=!0}}),Te(this.transitionAbortWithErrorSubject.pipe(Be(o=>{throw o}))),Hr(()=>{r||this.cancelNavigationTransition(i,"",Or.SupersededByNewNavigation),this.currentTransition?.id===i.id&&(this.currentNavigation.set(null),this.currentTransition=null)}),fi(o=>{if(this.destroyed)return i.resolve(!1),Fi;if(r=!0,jN(o))this.events.next(new qo(i.id,this.urlSerializer.serialize(i.extractedUrl),o.message,o.cancellationCode)),SQ(o)?this.events.next(new Vm(o.url,o.navigationBehaviorOptions)):i.resolve(!1);else{let a=new tc(i.id,this.urlSerializer.serialize(i.extractedUrl),o,i.targetSnapshot??void 0);try{let s=In(this.environmentInjector,()=>this.navigationErrorHandler?.(a));if(s instanceof Bm){let{message:l,cancellationCode:c}=x0(this.urlSerializer,s);this.events.next(new qo(i.id,this.urlSerializer.serialize(i.extractedUrl),l,c)),this.events.next(new Vm(s.redirectTo,s.navigationBehaviorOptions))}else throw this.events.next(a),o}catch(s){this.options.resolveNavigationPromiseOnError?i.resolve(!1):i.reject(s)}}return Fi}))}))}cancelNavigationTransition(e,i,r){let o=new qo(e.id,this.urlSerializer.serialize(e.extractedUrl),i,r);this.events.next(o),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))),i=Ti(this.currentNavigation),r=i?.targetBrowserUrl??i?.extractedUrl;return e.toString()!==r?.toString()&&!i?.extras.skipLocationChange}static \u0275fac=function(i){return new(i||t)};static \u0275prov=O({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();function vK(t){return t!==Pm}var ZN=(()=>{class t{static \u0275fac=function(i){return new(i||t)};static \u0275prov=O({token:t,factory:()=>u(yK),providedIn:"root"})}return t})(),w0=class{shouldDetach(n){return!1}store(n,e){}shouldAttach(n){return!1}retrieve(n){return null}shouldReuseRoute(n,e){return n.routeConfig===e.routeConfig}},yK=(()=>{class t extends w0{static \u0275fac=(()=>{let e;return function(r){return(e||(e=fe(t)))(r||t)}})();static \u0275prov=O({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),XN=(()=>{class t{urlSerializer=u(ic);options=u(nc,{optional:!0})||{};canceledNavigationResolution=this.options.canceledNavigationResolution||"replace";location=u(us);urlHandlingStrategy=u(M0);urlUpdateStrategy=this.options.urlUpdateStrategy||"deferred";currentUrlTree=new hs;getCurrentUrlTree(){return this.currentUrlTree}rawUrlTree=this.currentUrlTree;getRawUrlTree(){return this.rawUrlTree}createBrowserPath({finalUrl:e,initialUrl:i,targetBrowserUrl:r}){let o=e!==void 0?this.urlHandlingStrategy.merge(e,i):i,a=r??o;return a instanceof hs?this.urlSerializer.serialize(a):a}commitTransition({targetRouterState:e,finalUrl:i,initialUrl:r}){i&&e?(this.currentUrlTree=i,this.rawUrlTree=this.urlHandlingStrategy.merge(i,r),this.routerState=e):this.rawUrlTree=r}routerState=PN(null);getRouterState(){return this.routerState}stateMemento=this.createStateMemento();updateStateMemento(){this.stateMemento=this.createStateMemento()}createStateMemento(){return{rawUrlTree:this.rawUrlTree,currentUrlTree:this.currentUrlTree,routerState:this.routerState}}resetInternalState({finalUrl:e}){this.routerState=this.stateMemento.routerState,this.currentUrlTree=this.stateMemento.currentUrlTree,this.rawUrlTree=this.urlHandlingStrategy.merge(this.currentUrlTree,e??this.rawUrlTree)}static \u0275fac=function(i){return new(i||t)};static \u0275prov=O({token:t,factory:()=>u(xK),providedIn:"root"})}return t})(),xK=(()=>{class t extends XN{currentPageId=0;lastSuccessfulId=-1;restoredState(){return this.location.getState()}get browserPageId(){return this.canceledNavigationResolution!=="computed"?this.currentPageId:this.restoredState()?.\u0275routerPageId??this.currentPageId}registerNonRouterCurrentEntryChangeListener(e){return this.location.subscribe(i=>{i.type==="popstate"&&setTimeout(()=>{e(i.url,i.state,"popstate")})})}handleRouterEvent(e,i){e instanceof ps?this.updateStateMemento():e instanceof fs?this.commitTransition(i):e instanceof Sf?this.urlUpdateStrategy==="eager"&&(i.extras.skipLocationChange||this.setBrowserUrl(this.createBrowserPath(i),i)):e instanceof Tf?(this.commitTransition(i),this.urlUpdateStrategy==="deferred"&&!i.extras.skipLocationChange&&this.setBrowserUrl(this.createBrowserPath(i),i)):e instanceof qo&&e.code!==Or.SupersededByNewNavigation&&e.code!==Or.Redirect?this.restoreHistory(i):e instanceof tc?this.restoreHistory(i,!0):e instanceof vi&&(this.lastSuccessfulId=e.id,this.currentPageId=this.browserPageId)}setBrowserUrl(e,{extras:i,id:r}){let{replaceUrl:o,state:a}=i;if(this.location.isCurrentPathEqualTo(e)||o){let s=this.browserPageId,l=M(M({},a),this.generateNgRouterState(r,s));this.location.replaceState(e,"",l)}else{let s=M(M({},a),this.generateNgRouterState(r,this.browserPageId+1));this.location.go(e,"",s)}}restoreHistory(e,i=!1){if(this.canceledNavigationResolution==="computed"){let r=this.browserPageId,o=this.currentPageId-r;o!==0?this.location.historyGo(o):this.getCurrentUrlTree()===e.finalUrl&&o===0&&(this.resetInternalState(e),this.resetUrlToCurrentUrlTree())}else this.canceledNavigationResolution==="replace"&&(i&&this.resetInternalState(e),this.resetUrlToCurrentUrlTree())}resetUrlToCurrentUrlTree(){this.location.replaceState(this.urlSerializer.serialize(this.getRawUrlTree()),"",this.generateNgRouterState(this.lastSuccessfulId,this.currentPageId))}generateNgRouterState(e,i){return this.canceledNavigationResolution==="computed"?{navigationId:e,\u0275routerPageId:i}:{navigationId:e}}static \u0275fac=(()=>{let e;return function(r){return(e||(e=fe(t)))(r||t)}})();static \u0275prov=O({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();function k0(t,n){t.events.pipe(ce(e=>e instanceof vi||e instanceof qo||e instanceof tc||e instanceof fs),se(e=>e instanceof vi||e instanceof fs?0:(e instanceof qo?e.code===Or.Redirect||e.code===Or.SupersededByNewNavigation:!1)?2:1),ce(e=>e!==2),lt(1)).subscribe(()=>{n()})}var CK={paths:"exact",fragment:"ignored",matrixParams:"ignored",queryParams:"exact"},wK={paths:"subset",fragment:"ignored",matrixParams:"ignored",queryParams:"subset"},Re=(()=>{class t{get currentUrlTree(){return this.stateManager.getCurrentUrlTree()}get rawUrlTree(){return this.stateManager.getRawUrlTree()}disposed=!1;nonRouterCurrentEntryChangeSubscription;console=u(Dv);stateManager=u(XN);options=u(nc,{optional:!0})||{};pendingTasks=u(ns);urlUpdateStrategy=this.options.urlUpdateStrategy||"deferred";navigationTransitions=u(Vf);urlSerializer=u(ic);location=u(us);urlHandlingStrategy=u(M0);injector=u(Wt);_events=new z;get events(){return this._events}get routerState(){return this.stateManager.getRouterState()}navigated=!1;routeReuseStrategy=u(ZN);onSameUrlNavigation=this.options.onSameUrlNavigation||"ignore";config=u(Hd,{optional:!0})?.flat()??[];componentInputBindingEnabled=!!u(Nf,{optional:!0});currentNavigation=this.navigationTransitions.currentNavigation.asReadonly();constructor(){this.resetConfig(this.config),this.navigationTransitions.setupNavigations(this).subscribe({error:e=>{this.console.warn(e)}}),this.subscribeToNavigationEvents()}eventsSubscription=new ke;subscribeToNavigationEvents(){let e=this.navigationTransitions.events.subscribe(i=>{try{let r=this.navigationTransitions.currentTransition,o=Ti(this.navigationTransitions.currentNavigation);if(r!==null&&o!==null){if(this.stateManager.handleRouterEvent(i,o),i instanceof qo&&i.code!==Or.Redirect&&i.code!==Or.SupersededByNewNavigation)this.navigated=!0;else if(i instanceof vi)this.navigated=!0;else if(i instanceof Vm){let a=i.navigationBehaviorOptions,s=this.urlHandlingStrategy.merge(i.url,r.currentRawUrl),l=M({browserUrl:r.extras.browserUrl,info:r.extras.info,skipLocationChange:r.extras.skipLocationChange,replaceUrl:r.extras.replaceUrl||this.urlUpdateStrategy==="eager"||vK(r.source)},a);this.scheduleNavigation(s,Pm,null,l,{resolve:r.resolve,reject:r.reject,promise:r.promise})}}xQ(i)&&this._events.next(i)}catch(r){this.navigationTransitions.transitionAbortWithErrorSubject.next(r)}});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),Pm,this.stateManager.restoredState())}setUpLocationChangeListener(){this.nonRouterCurrentEntryChangeSubscription??=this.stateManager.registerNonRouterCurrentEntryChangeListener((e,i,r)=>{this.navigateToSyncWithBrowser(e,r,i)})}navigateToSyncWithBrowser(e,i,r){let o={replaceUrl:!0},a=r?.navigationId?r:null;if(r){let l=M({},r);delete l.navigationId,delete l.\u0275routerPageId,Object.keys(l).length!==0&&(o.state=l)}let s=this.parseUrl(e);this.scheduleNavigation(s,i,a,o).catch(l=>{this.disposed||this.injector.get(hr)(l)})}get url(){return this.serializeUrl(this.currentUrlTree)}getCurrentNavigation(){return Ti(this.navigationTransitions.currentNavigation)}get lastSuccessfulNavigation(){return this.navigationTransitions.lastSuccessfulNavigation}resetConfig(e){this.config=e.map(X1),this.navigated=!1}ngOnDestroy(){this.dispose()}dispose(){this._events.unsubscribe(),this.navigationTransitions.complete(),this.nonRouterCurrentEntryChangeSubscription&&(this.nonRouterCurrentEntryChangeSubscription.unsubscribe(),this.nonRouterCurrentEntryChangeSubscription=void 0),this.disposed=!0,this.eventsSubscription.unsubscribe()}createUrlTree(e,i={}){let{relativeTo:r,queryParams:o,fragment:a,queryParamsHandling:s,preserveFragment:l}=i,c=l?this.currentUrlTree.fragment:a,d=null;switch(s??this.options.defaultQueryParamsHandling){case"merge":d=M(M({},this.currentUrlTree.queryParams),o);break;case"preserve":d=this.currentUrlTree.queryParams;break;default:d=o||null}d!==null&&(d=this.removeEmptyProps(d));let m;try{let f=r?r.snapshot:this.routerState.snapshot.root;m=IN(f)}catch{(typeof e[0]!="string"||e[0][0]!=="/")&&(e=[]),m=this.currentUrlTree.root}return AN(m,e,d,c??null)}navigateByUrl(e,i={skipLocationChange:!1}){let r=ec(e)?e:this.parseUrl(e),o=this.urlHandlingStrategy.merge(r,this.rawUrlTree);return this.scheduleNavigation(o,Pm,null,i)}navigate(e,i={skipLocationChange:!1}){return DK(e),this.navigateByUrl(this.createUrlTree(e,i),i)}serializeUrl(e){return this.urlSerializer.serialize(e)}parseUrl(e){try{return this.urlSerializer.parse(e)}catch{return this.console.warn(Ro(4018,!1)),this.urlSerializer.parse("/")}}isActive(e,i){let r;if(i===!0?r=M({},CK):i===!1?r=M({},wK):r=i,ec(e))return uN(this.currentUrlTree,e,r);let o=this.parseUrl(e);return uN(this.currentUrlTree,o,r)}removeEmptyProps(e){return Object.entries(e).reduce((i,[r,o])=>(o!=null&&(i[r]=o),i),{})}scheduleNavigation(e,i,r,o,a){if(this.disposed)return Promise.resolve(!1);let s,l,c;a?(s=a.resolve,l=a.reject,c=a.promise):c=new Promise((m,f)=>{s=m,l=f});let d=this.pendingTasks.add();return k0(this,()=>{queueMicrotask(()=>this.pendingTasks.remove(d))}),this.navigationTransitions.handleNavigationRequest({source:i,restoredState:r,currentUrlTree:this.currentUrlTree,currentRawUrl:this.currentUrlTree,rawUrl:e,extras:o,resolve:s,reject:l,promise:c,currentSnapshot:this.routerState.snapshot,currentRouterState:this.routerState}),c.catch(m=>Promise.reject(m))}static \u0275fac=function(i){return new(i||t)};static \u0275prov=O({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();function DK(t){for(let n=0;n{class t{router;route;tabIndexAttribute;renderer;el;locationStrategy;reactiveHref=he(null);get href(){return Ti(this.reactiveHref)}set href(e){this.reactiveHref.set(e)}target;queryParams;fragment;queryParamsHandling;state;info;relativeTo;isAnchorElement;subscription;onChanges=new z;applicationErrorHandler=u(hr);options=u(nc,{optional:!0});constructor(e,i,r,o,a,s){this.router=e,this.route=i,this.tabIndexAttribute=r,this.renderer=o,this.el=a,this.locationStrategy=s,this.reactiveHref.set(u(new Ii("href"),{optional:!0}));let l=a.nativeElement.tagName?.toLowerCase();this.isAnchorElement=l==="a"||l==="area"||!!(typeof customElements=="object"&&customElements.get(l)?.observedAttributes?.includes?.("href")),this.isAnchorElement?this.setTabIndexIfNotOnNativeEl("0"):this.subscribeToNavigationEventsIfNecessary()}subscribeToNavigationEventsIfNecessary(){if(this.subscription!==void 0||!this.isAnchorElement)return;let e=this.preserveFragment,i=r=>r==="merge"||r==="preserve";e||=i(this.queryParamsHandling),e||=!this.queryParamsHandling&&!i(this.options?.defaultQueryParamsHandling),e&&(this.subscription=this.router.events.subscribe(r=>{r instanceof vi&&this.updateHref()}))}preserveFragment=!1;skipLocationChange=!1;replaceUrl=!1;setTabIndexIfNotOnNativeEl(e){this.tabIndexAttribute!=null||this.isAnchorElement||this.applyAttributeValue("tabindex",e)}ngOnChanges(e){this.isAnchorElement&&(this.updateHref(),this.subscribeToNavigationEventsIfNecessary()),this.onChanges.next(this)}routerLinkInput=null;set routerLink(e){e==null?(this.routerLinkInput=null,this.setTabIndexIfNotOnNativeEl(null)):(ec(e)?this.routerLinkInput=e:this.routerLinkInput=Array.isArray(e)?e:[e],this.setTabIndexIfNotOnNativeEl("0"))}onClick(e,i,r,o,a){let s=this.urlTree;if(s===null||this.isAnchorElement&&(e!==0||i||r||o||a||typeof this.target=="string"&&this.target!="_self"))return!0;let l={skipLocationChange:this.skipLocationChange,replaceUrl:this.replaceUrl,state:this.state,info:this.info};return this.router.navigateByUrl(s,l)?.catch(c=>{this.applicationErrorHandler(c)}),!this.isAnchorElement}ngOnDestroy(){this.subscription?.unsubscribe()}updateHref(){let e=this.urlTree;this.reactiveHref.set(e!==null&&this.locationStrategy?this.locationStrategy?.prepareExternalUrl(this.router.serializeUrl(e))??"":null)}applyAttributeValue(e,i){let r=this.renderer,o=this.el.nativeElement;i!==null?r.setAttribute(o,e,i):r.removeAttribute(o,e)}get urlTree(){return this.routerLinkInput===null?null:ec(this.routerLinkInput)?this.routerLinkInput:this.router.createUrlTree(this.routerLinkInput,{relativeTo:this.relativeTo!==void 0?this.relativeTo:this.route,queryParams:this.queryParams,fragment:this.fragment,queryParamsHandling:this.queryParamsHandling,preserveFragment:this.preserveFragment})}static \u0275fac=function(i){return new(i||t)(_e(Re),_e(wi),qp("tabindex"),_e(je),_e(q),_e(Ea))};static \u0275dir=F({type:t,selectors:[["","routerLink",""]],hostVars:2,hostBindings:function(i,r){i&1&&S("click",function(a){return r.onClick(a.button,a.ctrlKey,a.shiftKey,a.altKey,a.metaKey)}),i&2&&X("href",r.reactiveHref(),sM)("target",r.target)},inputs:{target:"target",queryParams:"queryParams",fragment:"fragment",queryParamsHandling:"queryParamsHandling",state:"state",info:"info",relativeTo:"relativeTo",preserveFragment:[2,"preserveFragment","preserveFragment",V],skipLocationChange:[2,"skipLocationChange","skipLocationChange",V],replaceUrl:[2,"replaceUrl","replaceUrl",V],routerLink:"routerLink"},features:[Ae]})}return t})(),zd=(()=>{class t{router;element;renderer;cdr;link;links;classes=[];routerEventsSubscription;linkInputChangesSubscription;_isActive=!1;get isActive(){return this._isActive}routerLinkActiveOptions={exact:!1};ariaCurrentWhenActive;isActiveChange=new U;constructor(e,i,r,o,a){this.router=e,this.element=i,this.renderer=r,this.cdr=o,this.link=a,this.routerEventsSubscription=e.events.subscribe(s=>{s instanceof vi&&this.update()})}ngAfterContentInit(){Q(this.links.changes,Q(null)).pipe(uo()).subscribe(e=>{this.update(),this.subscribeToEachLinkOnChanges()})}subscribeToEachLinkOnChanges(){this.linkInputChangesSubscription?.unsubscribe();let e=[...this.links.toArray(),this.link].filter(i=>!!i).map(i=>i.onChanges);this.linkInputChangesSubscription=Ot(e).pipe(uo()).subscribe(i=>{this._isActive!==this.isLinkActive(this.router)(i)&&this.update()})}set routerLinkActive(e){let i=Array.isArray(e)?e:e.split(" ");this.classes=i.filter(r=>!!r)}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(i=>{e?this.renderer.addClass(this.element.nativeElement,i):this.renderer.removeClass(this.element.nativeElement,i)}),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 i=EK(this.routerLinkActiveOptions)?this.routerLinkActiveOptions:this.routerLinkActiveOptions.exact||!1;return r=>{let o=r.urlTree;return o?e.isActive(o,i):!1}}hasActiveLinks(){let e=this.isLinkActive(this.router);return this.link&&e(this.link)||this.links.some(e)}static \u0275fac=function(i){return new(i||t)(_e(Re),_e(q),_e(je),_e(ye),_e(Nn,8))};static \u0275dir=F({type:t,selectors:[["","routerLinkActive",""]],contentQueries:function(i,r,o){if(i&1&&xe(o,Nn,5),i&2){let a;B(a=j())&&(r.links=a)}},inputs:{routerLinkActiveOptions:"routerLinkActiveOptions",ariaCurrentWhenActive:"ariaCurrentWhenActive",routerLinkActive:"routerLinkActive"},outputs:{isActiveChange:"isActiveChange"},exportAs:["routerLinkActive"],features:[Ae]})}return t})();function EK(t){return!!t.paths}var Bf=class{};var JN=(()=>{class t{router;injector;preloadingStrategy;loader;subscription;constructor(e,i,r,o){this.router=e,this.injector=i,this.preloadingStrategy=r,this.loader=o}setUpPreloading(){this.subscription=this.router.events.pipe(ce(e=>e instanceof vi),Ao(()=>this.preload())).subscribe(()=>{})}preload(){return this.processRoutes(this.injector,this.router.config)}ngOnDestroy(){this.subscription&&this.subscription.unsubscribe()}processRoutes(e,i){let r=[];for(let o of i){o.providers&&!o._injector&&(o._injector=vm(o.providers,e,`Route: ${o.path}`));let a=o._injector??e,s=o._loadedInjector??a;(o.loadChildren&&!o._loadedRoutes&&o.canLoad===void 0||o.loadComponent&&!o._loadedComponent)&&r.push(this.preloadConfig(a,o)),(o.children||o._loadedRoutes)&&r.push(this.processRoutes(s,o.children??o._loadedRoutes))}return Ot(r).pipe(uo())}preloadConfig(e,i){return this.preloadingStrategy.preload(i,()=>{let r;i.loadChildren&&i.canLoad===void 0?r=this.loader.loadChildren(e,i):r=Q(null);let o=r.pipe(Mt(a=>a===null?Q(void 0):(i._loadedRoutes=a.routes,i._loadedInjector=a.injector,this.processRoutes(a.injector??e,a.routes))));if(i.loadComponent&&!i._loadedComponent){let a=this.loader.loadComponent(e,i);return Ot([o,a]).pipe(uo())}else return o})}static \u0275fac=function(i){return new(i||t)(pe(Re),pe(Wt),pe(Bf),pe(E0))};static \u0275prov=O({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),rk=new T(""),eL=(()=>{class t{urlSerializer;transitions;viewportScroller;zone;options;routerEventsSubscription;scrollEventsSubscription;lastId=0;lastSource=Pm;restoredId=0;store={};constructor(e,i,r,o,a={}){this.urlSerializer=e,this.transitions=i,this.viewportScroller=r,this.zone=o,this.options=a,a.scrollPositionRestoration||="disabled",a.anchorScrolling||="disabled"}init(){this.options.scrollPositionRestoration!=="disabled"&&this.viewportScroller.setHistoryScrollRestoration("manual"),this.routerEventsSubscription=this.createScrollEvents(),this.scrollEventsSubscription=this.consumeScrollEvents()}createScrollEvents(){return this.transitions.events.subscribe(e=>{e instanceof ps?(this.store[this.lastId]=this.viewportScroller.getScrollPosition(),this.lastSource=e.navigationTrigger,this.restoredId=e.restoredState?e.restoredState.navigationId:0):e instanceof vi?(this.lastId=e.id,this.scheduleScrollEvent(e,this.urlSerializer.parse(e.urlAfterRedirects).fragment)):e instanceof fs&&e.code===Nm.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 Lm))return;let i={behavior:"instant"};e.position?this.options.scrollPositionRestoration==="top"?this.viewportScroller.scrollToPosition([0,0],i):this.options.scrollPositionRestoration==="enabled"&&this.viewportScroller.scrollToPosition(e.position,i):e.anchor&&this.options.anchorScrolling==="enabled"?this.viewportScroller.scrollToAnchor(e.anchor):this.options.scrollPositionRestoration!=="disabled"&&this.viewportScroller.scrollToPosition([0,0])})}scheduleScrollEvent(e,i){this.zone.runOutsideAngular(()=>fn(this,null,function*(){yield new Promise(r=>{setTimeout(r),typeof requestAnimationFrame<"u"&&requestAnimationFrame(r)}),this.zone.run(()=>{this.transitions.events.next(new Lm(e,this.lastSource==="popstate"?this.store[this.restoredId]:null,i))})}))}ngOnDestroy(){this.routerEventsSubscription?.unsubscribe(),this.scrollEventsSubscription?.unsubscribe()}static \u0275fac=function(i){Ad()};static \u0275prov=O({token:t,factory:t.\u0275fac})}return t})();function ok(t,...n){return zr([{provide:Hd,multi:!0,useValue:t},[],{provide:wi,useFactory:tL,deps:[Re]},{provide:nf,multi:!0,useFactory:iL},n.map(e=>e.\u0275providers)])}function tL(t){return t.routerState.root}function Um(t,n){return{\u0275kind:t,\u0275providers:n}}function ak(t={}){return Um(4,[{provide:rk,useFactory:()=>{let e=u(h1),i=u(ae),r=u(Vf),o=u(ic);return new eL(o,r,e,i,t)}}])}function iL(){let t=u(de);return n=>{let e=t.get(Gn);if(n!==e.components[0])return;let i=t.get(Re),r=t.get(nL);t.get(sk)===1&&i.initialNavigation(),t.get(aL,null,{optional:!0})?.setUpPreloading(),t.get(rk,null,{optional:!0})?.init(),i.resetRootComponentType(e.componentTypes[0]),r.closed||(r.next(),r.complete(),r.unsubscribe())}}var nL=new T("",{factory:()=>new z}),sk=new T("",{providedIn:"root",factory:()=>1});function rL(){let t=[{provide:lv,useValue:!0},{provide:sk,useValue:0},Ql(()=>{let n=u(de);return n.get(JM,Promise.resolve()).then(()=>new Promise(i=>{let r=n.get(Re),o=n.get(nL);k0(r,()=>{i(!0)}),n.get(Vf).afterPreactivation=()=>(i(!0),o.closed?Q(void 0):o),r.initialNavigation()}))})];return Um(2,t)}function oL(){let t=[Ql(()=>{u(Re).setUpLocationChangeListener()}),{provide:sk,useValue:2}];return Um(3,t)}var aL=new T("");function sL(t){return Um(0,[{provide:aL,useExisting:JN},{provide:Bf,useExisting:t}])}function S0(){return Um(8,[K1,{provide:Nf,useExisting:K1}])}function lL(t){cs("NgRouterViewTransitions");let n=[{provide:ek,useValue:KN},{provide:tk,useValue:M({skipNextTransition:!!t?.skipInitialTransition},t)}];return Um(9,n)}var cL=[us,{provide:ic,useClass:Jl},Re,jd,{provide:wi,useFactory:tL,deps:[Re]},E0,[]],lk=(()=>{class t{constructor(){}static forRoot(e,i){return{ngModule:t,providers:[cL,[],{provide:Hd,multi:!0,useValue:e},[],i?.errorHandler?{provide:ik,useValue:i.errorHandler}:[],{provide:nc,useValue:i||{}},i?.useHash?kK():SK(),MK(),i?.preloadingStrategy?sL(i.preloadingStrategy).\u0275providers:[],i?.initialNavigation?TK(i):[],i?.bindToComponentInputs?S0().\u0275providers:[],i?.enableViewTransitions?lL().\u0275providers:[],IK()]}}static forChild(e){return{ngModule:t,providers:[{provide:Hd,multi:!0,useValue:e}]}}static \u0275fac=function(i){return new(i||t)};static \u0275mod=ee({type:t});static \u0275inj=J({})}return t})();function MK(){return{provide:rk,useFactory:()=>{let t=u(h1),n=u(ae),e=u(nc),i=u(Vf),r=u(ic);return e.scrollOffset&&t.setOffset(e.scrollOffset),new eL(r,i,t,n,e)}}}function kK(){return{provide:Ea,useClass:l1}}function SK(){return{provide:Ea,useClass:Fv}}function TK(t){return[t.initialNavigation==="disabled"?oL().\u0275providers:[],t.initialNavigation==="enabledBlocking"?rL().\u0275providers:[]]}var nk=new T("");function IK(){return[{provide:nk,useFactory:iL},{provide:nf,multi:!0,useExisting:nk}]}var dk=class{validateSignature(n){return Promise.resolve(null)}validateAtHash(n){return Promise.resolve(!0)}},T0=class{};var jf=class{},AK=(()=>{let n=class n extends jf{now(){return Date.now()}new(){return new Date}};n.\u0275fac=(()=>{let i;return function(o){return(i||(i=fe(n)))(o||n)}})(),n.\u0275prov=O({token:n,factory:n.\u0275fac});let t=n;return t})();var I0=class{},A0=class{},OK=(()=>{let n=class n{constructor(){this.data=new Map}getItem(i){return this.data.get(i)}removeItem(i){this.data.delete(i)}setItem(i,r){this.data.set(i,r)}};n.\u0275fac=function(r){return new(r||n)},n.\u0275prov=O({token:n,factory:n.\u0275fac});let t=n;return t})();var Hf=class{constructor(n){this.type=n}},Rr=class extends Hf{constructor(n,e=null){super(n),this.info=e}},Ia=class extends Hf{constructor(n,e=null){super(n),this.info=e}},Ui=class extends Hf{constructor(n,e,i=null){super(n),this.reason=e,this.params=i}};function uL(t){let n=t.replace(/-/g,"+").replace(/_/g,"/");return decodeURIComponent(atob(n).split("").map(function(e){return"%"+("00"+e.charCodeAt(0).toString(16)).slice(-2)}).join(""))}function mL(t){return btoa(t).replace(/\+/g,"-").replace(/\//g,"_").replace(/=/g,"")}var $m=class{constructor(n){this.clientId="",this.redirectUri="",this.postLogoutRedirectUri="",this.redirectUriAsPostLogoutRedirectUriFallback=!0,this.loginUrl="",this.scope="openid profile",this.resource="",this.rngUrl="",this.oidc=!0,this.requestAccessToken=!0,this.options=null,this.issuer="",this.logoutUrl="",this.clearHashAfterLogin=!0,this.tokenEndpoint=null,this.revocationEndpoint=null,this.customTokenParameters=[],this.userinfoEndpoint=null,this.responseType="",this.showDebugInformation=!1,this.silentRefreshRedirectUri="",this.silentRefreshMessagePrefix="",this.silentRefreshShowIFrame=!1,this.siletRefreshTimeout=1e3*20,this.silentRefreshTimeout=1e3*20,this.dummyClientSecret="",this.requireHttps="remoteOnly",this.strictDiscoveryDocumentValidation=!0,this.jwks=null,this.customQueryParams=null,this.silentRefreshIFrameName="angular-oauth-oidc-silent-refresh-iframe",this.timeoutFactor=.75,this.sessionChecksEnabled=!1,this.sessionCheckIntervall=3*1e3,this.sessionCheckIFrameUrl=null,this.sessionCheckIFrameName="angular-oauth-oidc-check-session-iframe",this.disableAtHashCheck=!1,this.skipSubjectCheck=!1,this.useIdTokenHintForSilentRefresh=!1,this.skipIssuerCheck=!1,this.nonceStateSeparator=";",this.useHttpBasicAuth=!1,this.decreaseExpirationBySec=0,this.waitForTokenInMsec=0,this.disablePKCE=!1,this.preserveRequestedRoute=!1,this.disableIdTokenTimer=!1,this.checkOrigin=!1,this.openUri=e=>{location.href=e},n&&Object.assign(this,n)}},Ud=class{encodeKey(n){return encodeURIComponent(n)}encodeValue(n){return encodeURIComponent(n)}decodeKey(n){return decodeURIComponent(n)}decodeValue(n){return decodeURIComponent(n)}},O0=class{};var hL=(()=>{let n=class n{getHashFragmentParams(i){let r=i||window.location.hash;if(r=decodeURIComponent(r),r.indexOf("#")!==0)return{};let o=r.indexOf("?");return o>-1?r=r.substr(o+1):r=r.substr(1),this.parseQueryString(r)}parseQueryString(i){let r={},o,a,s,l,c,d;if(i===null)return r;let m=i.split("&");for(let f=0;f=64;){for(o=n[0],a=n[1],s=n[2],l=n[3],c=n[4],d=n[5],m=n[6],f=n[7],v=0;v<16;v++)w=i+v*4,t[v]=(e[w]&255)<<24|(e[w+1]&255)<<16|(e[w+2]&255)<<8|e[w+3]&255;for(v=16;v<64;v++)b=t[v-2],x=(b>>>17|b<<15)^(b>>>19|b<<13)^b>>>10,b=t[v-15],D=(b>>>7|b<<25)^(b>>>18|b<<14)^b>>>3,t[v]=(x+t[v-7]|0)+(D+t[v-16]|0);for(v=0;v<64;v++)x=(((c>>>6|c<<26)^(c>>>11|c<<21)^(c>>>25|c<<7))+(c&d^~c&m)|0)+(f+(PK[v]+t[v]|0)|0)|0,D=((o>>>2|o<<30)^(o>>>13|o<<19)^(o>>>22|o<<10))+(o&a^o&s^a&s)|0,f=m,m=d,d=c,c=l+x|0,l=s,s=a,a=o,o=x+D|0;n[0]+=o,n[1]+=a,n[2]+=s,n[3]+=l,n[4]+=c,n[5]+=d,n[6]+=m,n[7]+=f,i+=64,r-=64}return i}var uk=class{constructor(){this.digestLength=pL,this.blockSize=RK,this.state=new Int32Array(8),this.temp=new Int32Array(64),this.buffer=new Uint8Array(128),this.bufferLength=0,this.bytesHashed=0,this.finished=!1,this.reset()}reset(){return this.state[0]=1779033703,this.state[1]=3144134277,this.state[2]=1013904242,this.state[3]=2773480762,this.state[4]=1359893119,this.state[5]=2600822924,this.state[6]=528734635,this.state[7]=1541459225,this.bufferLength=0,this.bytesHashed=0,this.finished=!1,this}clean(){for(let n=0;n0){for(;this.bufferLength<64&&e>0;)this.buffer[this.bufferLength++]=n[i++],e--;this.bufferLength===64&&(ck(this.temp,this.state,this.buffer,0,64),this.bufferLength=0)}for(e>=64&&(i=ck(this.temp,this.state,n,i,e),e%=64);e>0;)this.buffer[this.bufferLength++]=n[i++],e--;return this}finish(n){if(!this.finished){let e=this.bytesHashed,i=this.bufferLength,r=e/536870912|0,o=e<<3,a=e%64<56?64:128;this.buffer[i]=128;for(let s=i+1;s>>24&255,this.buffer[a-7]=r>>>16&255,this.buffer[a-6]=r>>>8&255,this.buffer[a-5]=r>>>0&255,this.buffer[a-4]=o>>>24&255,this.buffer[a-3]=o>>>16&255,this.buffer[a-2]=o>>>8&255,this.buffer[a-1]=o>>>0&255,ck(this.temp,this.state,this.buffer,0,a),this.finished=!0}for(let e=0;e<8;e++)n[e*4+0]=this.state[e]>>>24&255,n[e*4+1]=this.state[e]>>>16&255,n[e*4+2]=this.state[e]>>>8&255,n[e*4+3]=this.state[e]>>>0&255;return this}digest(){let n=new Uint8Array(this.digestLength);return this.finish(n),n}_saveState(n){for(let e=0;e{let n=class n{calcHash(i,r){return fn(this,null,function*(){return LK(FK(NK(i)))})}toHashString2(i){let r="";for(let o of i)r+=String.fromCharCode(o);return r}toHashString(i){let r=new Uint8Array(i),o="";for(let a of r)o+=String.fromCharCode(a);return o}};n.\u0275fac=function(r){return new(r||n)},n.\u0275prov=O({token:n,factory:n.\u0275fac});let t=n;return t})(),Wm=(()=>{let n=class n extends $m{constructor(i,r,o,a,s,l,c,d,m,f){super(),this.ngZone=i,this.http=r,this.config=s,this.urlHelper=l,this.logger=c,this.crypto=d,this.dateTimeService=f,this.discoveryDocumentLoaded=!1,this.state="",this.eventsSubject=new z,this.discoveryDocumentLoadedSubject=new z,this.grantTypesSupported=[],this.inImplicitFlow=!1,this.saveNoncesInLocalStorage=!1,this.debug("angular-oauth2-oidc v10"),this.document=m,s||(s={}),this.discoveryDocumentLoaded$=this.discoveryDocumentLoadedSubject.asObservable(),this.events=this.eventsSubject.asObservable(),a&&(this.tokenValidationHandler=a),s&&this.configure(s);try{o?this.setStorage(o):typeof sessionStorage<"u"&&this.setStorage(sessionStorage)}catch(b){console.error("No OAuthStorage provided and cannot access default (sessionStorage).Consider providing a custom OAuthStorage implementation in your module.",b)}if(this.checkLocalStorageAccessable()){let b=window?.navigator?.userAgent;(b?.includes("MSIE ")||b?.includes("Trident"))&&(this.saveNoncesInLocalStorage=!0)}this.setupRefreshTimer()}checkLocalStorageAccessable(){if(typeof window>"u")return!1;let i="test";try{return typeof window.localStorage>"u"?!1:(localStorage.setItem(i,i),localStorage.removeItem(i),!0)}catch{return!1}}configure(i){Object.assign(this,new $m,i),this.config=Object.assign({},new $m,i),this.sessionChecksEnabled&&this.setupSessionCheck(),this.configChanged()}configChanged(){this.setupRefreshTimer()}restartSessionChecksIfStillLoggedIn(){this.hasValidIdToken()&&this.initSessionCheck()}restartRefreshTimerIfStillLoggedIn(){this.setupExpirationTimers()}setupSessionCheck(){this.events.pipe(ce(i=>i.type==="token_received")).subscribe(()=>{this.initSessionCheck()})}setupAutomaticSilentRefresh(i={},r,o=!0){let a=!0;this.clearAutomaticRefreshTimer(),this.automaticRefreshSubscription=this.events.pipe(Be(s=>{s.type==="token_received"?a=!0:s.type==="logout"&&(a=!1)}),ce(s=>s.type==="token_expires"&&(r==null||r==="any"||s.info===r)),Rt(1e3)).subscribe(()=>{a&&this.refreshInternal(i,o).catch(()=>{this.debug("Automatic silent refresh did not work")})}),this.restartRefreshTimerIfStillLoggedIn()}refreshInternal(i,r){return!this.useSilentRefresh&&this.responseType==="code"?this.refreshToken():this.silentRefresh(i,r)}loadDiscoveryDocumentAndTryLogin(i=null){return this.loadDiscoveryDocument().then(()=>this.tryLogin(i))}loadDiscoveryDocumentAndLogin(i=null){return i=i||{},this.loadDiscoveryDocumentAndTryLogin(i).then(()=>{if(!this.hasValidIdToken()||!this.hasValidAccessToken()){let r=typeof i.state=="string"?i.state:"";return this.initLoginFlow(r),!1}else return!0})}debug(...i){this.showDebugInformation&&this.logger.debug(...i)}validateUrlFromDiscoveryDocument(i){let r=[],o=this.validateUrlForHttps(i),a=this.validateUrlAgainstIssuer(i);return o||r.push("https for all urls required. Also for urls received by discovery."),a||r.push("Every url in discovery document has to start with the issuer url.Also see property strictDiscoveryDocumentValidation."),r}validateUrlForHttps(i){if(!i)return!0;let r=i.toLowerCase();return this.requireHttps===!1||(r.match(/^http:\/\/localhost($|[:/])/)||r.match(/^http:\/\/localhost($|[:/])/))&&this.requireHttps==="remoteOnly"?!0:r.startsWith("https://")}assertUrlNotNullAndCorrectProtocol(i,r){if(!i)throw new Error(`'${r}' should not be null`);if(!this.validateUrlForHttps(i))throw new Error(`'${r}' must use HTTPS (with TLS), or config value for property 'requireHttps' must be set to 'false' and allow HTTP (without TLS).`)}validateUrlAgainstIssuer(i){return!this.strictDiscoveryDocumentValidation||!i?!0:i.toLowerCase().startsWith(this.issuer.toLowerCase())}setupRefreshTimer(){if(typeof window>"u"){this.debug("timer not supported on this plattform");return}(this.hasValidIdToken()||this.hasValidAccessToken())&&(this.clearAccessTokenTimer(),this.clearIdTokenTimer(),this.setupExpirationTimers()),this.tokenReceivedSubscription&&this.tokenReceivedSubscription.unsubscribe(),this.tokenReceivedSubscription=this.events.pipe(ce(i=>i.type==="token_received")).subscribe(()=>{this.clearAccessTokenTimer(),this.clearIdTokenTimer(),this.setupExpirationTimers()})}setupExpirationTimers(){this.hasValidAccessToken()&&this.setupAccessTokenTimer(),!this.disableIdTokenTimer&&this.hasValidIdToken()&&this.setupIdTokenTimer()}setupAccessTokenTimer(){let i=this.getAccessTokenExpiration(),r=this.getAccessTokenStoredAt(),o=this.calcTimeout(r,i);this.ngZone.runOutsideAngular(()=>{this.accessTokenTimeoutSubscription=Q(new Ia("token_expires","access_token")).pipe(pa(o)).subscribe(a=>{this.ngZone.run(()=>{this.eventsSubject.next(a)})})})}setupIdTokenTimer(){let i=this.getIdTokenExpiration(),r=this.getIdTokenStoredAt(),o=this.calcTimeout(r,i);this.ngZone.runOutsideAngular(()=>{this.idTokenTimeoutSubscription=Q(new Ia("token_expires","id_token")).pipe(pa(o)).subscribe(a=>{this.ngZone.run(()=>{this.eventsSubject.next(a)})})})}stopAutomaticRefresh(){this.clearAccessTokenTimer(),this.clearIdTokenTimer(),this.clearAutomaticRefreshTimer()}clearAccessTokenTimer(){this.accessTokenTimeoutSubscription&&this.accessTokenTimeoutSubscription.unsubscribe()}clearIdTokenTimer(){this.idTokenTimeoutSubscription&&this.idTokenTimeoutSubscription.unsubscribe()}clearAutomaticRefreshTimer(){this.automaticRefreshSubscription&&this.automaticRefreshSubscription.unsubscribe()}calcTimeout(i,r){let o=this.dateTimeService.now(),a=(r-i)*this.timeoutFactor-(o-i),s=Math.max(0,a),l=2147483647;return s>l?l:s}setStorage(i){this._storage=i,this.configChanged()}loadDiscoveryDocument(i=null){return new Promise((r,o)=>{if(i||(i=this.issuer||"",i.endsWith("/")||(i+="/"),i+=".well-known/openid-configuration"),!this.validateUrlForHttps(i)){o("issuer must use HTTPS (with TLS), or config value for property 'requireHttps' must be set to 'false' and allow HTTP (without TLS).");return}this.http.get(i).subscribe(a=>{if(!this.validateDiscoveryDocument(a)){this.eventsSubject.next(new Ui("discovery_document_validation_error",null)),o("discovery_document_validation_error");return}this.loginUrl=a.authorization_endpoint,this.logoutUrl=a.end_session_endpoint||this.logoutUrl,this.grantTypesSupported=a.grant_types_supported,this.issuer=a.issuer,this.tokenEndpoint=a.token_endpoint,this.userinfoEndpoint=a.userinfo_endpoint||this.userinfoEndpoint,this.jwksUri=a.jwks_uri,this.sessionCheckIFrameUrl=a.check_session_iframe||this.sessionCheckIFrameUrl,this.discoveryDocumentLoaded=!0,this.discoveryDocumentLoadedSubject.next(a),this.revocationEndpoint=a.revocation_endpoint||this.revocationEndpoint,this.sessionChecksEnabled&&this.restartSessionChecksIfStillLoggedIn(),this.loadJwks().then(s=>{let l={discoveryDocument:a,jwks:s},c=new Rr("discovery_document_loaded",l);this.eventsSubject.next(c),r(c)}).catch(s=>{this.eventsSubject.next(new Ui("discovery_document_load_error",s)),o(s)})},a=>{this.logger.error("error loading discovery document",a),this.eventsSubject.next(new Ui("discovery_document_load_error",a)),o(a)})})}loadJwks(){return new Promise((i,r)=>{this.jwksUri?this.http.get(this.jwksUri).subscribe(o=>{this.jwks=o,i(o)},o=>{this.logger.error("error loading jwks",o),this.eventsSubject.next(new Ui("jwks_load_error",o)),r(o)}):i(null)})}validateDiscoveryDocument(i){let r;return!this.skipIssuerCheck&&i.issuer!==this.issuer?(this.logger.error("invalid issuer in discovery document","expected: "+this.issuer,"current: "+i.issuer),!1):(r=this.validateUrlFromDiscoveryDocument(i.authorization_endpoint),r.length>0?(this.logger.error("error validating authorization_endpoint in discovery document",r),!1):(r=this.validateUrlFromDiscoveryDocument(i.end_session_endpoint),r.length>0?(this.logger.error("error validating end_session_endpoint in discovery document",r),!1):(r=this.validateUrlFromDiscoveryDocument(i.token_endpoint),r.length>0&&this.logger.error("error validating token_endpoint in discovery document",r),r=this.validateUrlFromDiscoveryDocument(i.revocation_endpoint),r.length>0&&this.logger.error("error validating revocation_endpoint in discovery document",r),r=this.validateUrlFromDiscoveryDocument(i.userinfo_endpoint),r.length>0?(this.logger.error("error validating userinfo_endpoint in discovery document",r),!1):(r=this.validateUrlFromDiscoveryDocument(i.jwks_uri),r.length>0?(this.logger.error("error validating jwks_uri in discovery document",r),!1):(this.sessionChecksEnabled&&!i.check_session_iframe&&this.logger.warn("sessionChecksEnabled is activated but discovery document does not contain a check_session_iframe field"),!0)))))}fetchTokenUsingPasswordFlowAndLoadUserProfile(i,r,o=new _r){return this.fetchTokenUsingPasswordFlow(i,r,o).then(()=>this.loadUserProfile())}loadUserProfile(){if(!this.hasValidAccessToken())throw new Error("Can not load User Profile without access_token");if(!this.validateUrlForHttps(this.userinfoEndpoint))throw new Error("userinfoEndpoint must use HTTPS (with TLS), or config value for property 'requireHttps' must be set to 'false' and allow HTTP (without TLS).");return new Promise((i,r)=>{let o=new _r().set("Authorization","Bearer "+this.getAccessToken());this.http.get(this.userinfoEndpoint,{headers:o,observe:"response",responseType:"text"}).subscribe(a=>{if(this.debug("userinfo received",JSON.stringify(a)),a.headers.get("content-type").startsWith("application/json")){let s=JSON.parse(a.body),l=this.getIdentityClaims()||{};if(!this.skipSubjectCheck&&this.oidc&&(!l.sub||s.sub!==l.sub)){r(`if property oidc is true, the received user-id (sub) has to be the user-id of the user that has logged in with oidc. -if you are not using oidc but just oauth2 password flow set oidc to false`);return}s=Object.assign({},l,s),this._storage.setItem("id_token_claims_obj",JSON.stringify(s)),this.eventsSubject.next(new Rr("user_profile_loaded")),i({info:s})}else this.debug("userinfo is not JSON, treating it as JWE/JWS"),this.eventsSubject.next(new Rr("user_profile_loaded")),i(JSON.parse(a.body))},a=>{this.logger.error("error loading user info",a),this.eventsSubject.next(new Ui("user_profile_load_error",a)),r(a)})})}fetchTokenUsingPasswordFlow(i,r,o=new _r){let a={username:i,password:r};return this.fetchTokenUsingGrant("password",a,o)}fetchTokenUsingGrant(i,r,o=new _r){this.assertUrlNotNullAndCorrectProtocol(this.tokenEndpoint,"tokenEndpoint");let a=new Qn({encoder:new Ud}).set("grant_type",i).set("scope",this.scope);if(this.useHttpBasicAuth){let s=btoa(`${this.clientId}:${this.dummyClientSecret}`);o=o.set("Authorization","Basic "+s)}if(this.useHttpBasicAuth||(a=a.set("client_id",this.clientId)),!this.useHttpBasicAuth&&this.dummyClientSecret&&(a=a.set("client_secret",this.dummyClientSecret)),this.customQueryParams)for(let s of Object.getOwnPropertyNames(this.customQueryParams))a=a.set(s,this.customQueryParams[s]);for(let s of Object.keys(r))a=a.set(s,r[s]);return o=o.set("Content-Type","application/x-www-form-urlencoded"),new Promise((s,l)=>{this.http.post(this.tokenEndpoint,a,{headers:o}).subscribe(c=>{this.debug("tokenResponse",c),this.storeAccessTokenResponse(c.access_token,c.refresh_token,c.expires_in||this.fallbackAccessTokenExpirationTimeInSec,c.scope,this.extractRecognizedCustomParameters(c)),this.oidc&&c.id_token&&this.processIdToken(c.id_token,c.access_token).then(d=>{this.storeIdToken(d),s(c)}),this.eventsSubject.next(new Rr("token_received")),s(c)},c=>{this.logger.error("Error performing ${grantType} flow",c),this.eventsSubject.next(new Ui("token_error",c)),l(c)})})}refreshToken(){return this.assertUrlNotNullAndCorrectProtocol(this.tokenEndpoint,"tokenEndpoint"),new Promise((i,r)=>{let o=new Qn({encoder:new Ud}).set("grant_type","refresh_token").set("scope",this.scope).set("refresh_token",this._storage.getItem("refresh_token")),a=new _r().set("Content-Type","application/x-www-form-urlencoded");if(this.useHttpBasicAuth){let s=btoa(`${this.clientId}:${this.dummyClientSecret}`);a=a.set("Authorization","Basic "+s)}if(this.useHttpBasicAuth||(o=o.set("client_id",this.clientId)),!this.useHttpBasicAuth&&this.dummyClientSecret&&(o=o.set("client_secret",this.dummyClientSecret)),this.customQueryParams)for(let s of Object.getOwnPropertyNames(this.customQueryParams))o=o.set(s,this.customQueryParams[s]);this.http.post(this.tokenEndpoint,o,{headers:a}).pipe($e(s=>this.oidc&&s.id_token?Ot(this.processIdToken(s.id_token,s.access_token,!0)).pipe(Be(l=>this.storeIdToken(l)),se(()=>s)):Q(s))).subscribe(s=>{this.debug("refresh tokenResponse",s),this.storeAccessTokenResponse(s.access_token,s.refresh_token,s.expires_in||this.fallbackAccessTokenExpirationTimeInSec,s.scope,this.extractRecognizedCustomParameters(s)),this.eventsSubject.next(new Rr("token_received")),this.eventsSubject.next(new Rr("token_refreshed")),i(s)},s=>{this.logger.error("Error refreshing token",s),this.eventsSubject.next(new Ui("token_refresh_error",s)),r(s)})})}removeSilentRefreshEventListener(){this.silentRefreshPostMessageEventListener&&(window.removeEventListener("message",this.silentRefreshPostMessageEventListener),this.silentRefreshPostMessageEventListener=null)}setupSilentRefreshEventListener(){this.removeSilentRefreshEventListener(),this.silentRefreshPostMessageEventListener=i=>{let r=this.processMessageEventMessage(i);this.checkOrigin&&i.origin!==location.origin&&console.error("wrong origin requested silent refresh!"),this.tryLogin({customHashFragment:r,preventClearHashAfterLogin:!0,customRedirectUri:this.silentRefreshRedirectUri||this.redirectUri}).catch(o=>this.debug("tryLogin during silent refresh failed",o))},window.addEventListener("message",this.silentRefreshPostMessageEventListener)}silentRefresh(i={},r=!0){let o=this.getIdentityClaims()||{};if(this.useIdTokenHintForSilentRefresh&&this.hasValidIdToken()&&(i.id_token_hint=this.getIdToken()),!this.validateUrlForHttps(this.loginUrl))throw new Error("loginUrl must use HTTPS (with TLS), or config value for property 'requireHttps' must be set to 'false' and allow HTTP (without TLS).");if(typeof this.document>"u")throw new Error("silent refresh is not supported on this platform");let a=this.document.getElementById(this.silentRefreshIFrameName);a&&this.document.body.removeChild(a),this.silentRefreshSubject=o.sub;let s=this.document.createElement("iframe");s.id=this.silentRefreshIFrameName,this.setupSilentRefreshEventListener();let l=this.silentRefreshRedirectUri||this.redirectUri;this.createLoginUrl(null,null,l,r,i).then(f=>{s.setAttribute("src",f),this.silentRefreshShowIFrame||(s.style.display="none"),this.document.body.appendChild(s)});let c=this.events.pipe(ce(f=>f instanceof Ui),gn()),d=this.events.pipe(ce(f=>f.type==="token_received"),gn()),m=Q(new Ui("silent_refresh_timeout",null)).pipe(pa(this.silentRefreshTimeout));return Wu([c,d,m]).pipe(se(f=>{if(f instanceof Ui)throw f.type==="silent_refresh_timeout"?this.eventsSubject.next(f):(f=new Ui("silent_refresh_error",f),this.eventsSubject.next(f)),f;return f.type==="token_received"&&(f=new Rr("silently_refreshed"),this.eventsSubject.next(f)),f})).toPromise()}initImplicitFlowInPopup(i){return this.initLoginFlowInPopup(i)}initLoginFlowInPopup(i){return i=i||{},this.createLoginUrl(null,null,this.silentRefreshRedirectUri,!1,{display:"popup"}).then(r=>new Promise((o,a)=>{let l=null;i.windowRef?i.windowRef&&!i.windowRef.closed&&(l=i.windowRef,l.location.href=r):l=window.open(r,"ngx-oauth2-oidc-login",this.calculatePopupFeatures(i));let c,d=w=>{this.tryLogin({customHashFragment:w,preventClearHashAfterLogin:!0,customRedirectUri:this.silentRefreshRedirectUri}).then(()=>{f(),o(!0)},x=>{f(),a(x)})},m=()=>{(!l||l.closed)&&(f(),a(new Ui("popup_closed",{})))};l?c=window.setInterval(m,500):a(new Ui("popup_blocked",{}));let f=()=>{window.clearInterval(c),window.removeEventListener("storage",v),window.removeEventListener("message",b),l!==null&&l.close(),l=null},b=w=>{let x=this.processMessageEventMessage(w);x&&x!==null?(window.removeEventListener("storage",v),d(x)):console.log("false event firing")},v=w=>{w.key==="auth_hash"&&(window.removeEventListener("message",b),d(w.newValue))};window.addEventListener("message",b),window.addEventListener("storage",v)}))}calculatePopupFeatures(i){let r=i.height||470,o=i.width||500,a=window.screenLeft+(window.outerWidth-o)/2,s=window.screenTop+(window.outerHeight-r)/2;return`location=no,toolbar=no,width=${o},height=${r},top=${s},left=${a}`}processMessageEventMessage(i){let r="#";if(this.silentRefreshMessagePrefix&&(r+=this.silentRefreshMessagePrefix),!i||!i.data||typeof i.data!="string")return;let o=i.data;if(o.startsWith(r))return"#"+o.substr(r.length)}canPerformSessionCheck(){return this.sessionChecksEnabled?this.sessionCheckIFrameUrl?this.getSessionState()?!(typeof this.document>"u"):(console.warn("sessionChecksEnabled is activated but there is no session_state"),!1):(console.warn("sessionChecksEnabled is activated but there is no sessionCheckIFrameUrl"),!1):!1}setupSessionCheckEventListener(){this.removeSessionCheckEventListener(),this.sessionCheckEventListener=i=>{let r=i.origin.toLowerCase(),o=this.issuer.toLowerCase();if(this.debug("sessionCheckEventListener"),!o.startsWith(r)){this.debug("sessionCheckEventListener","wrong origin",r,"expected",o,"event",i);return}switch(i.data){case"unchanged":this.ngZone.run(()=>{this.handleSessionUnchanged()});break;case"changed":this.ngZone.run(()=>{this.handleSessionChange()});break;case"error":this.ngZone.run(()=>{this.handleSessionError()});break}this.debug("got info from session check inframe",i)},this.ngZone.runOutsideAngular(()=>{window.addEventListener("message",this.sessionCheckEventListener)})}handleSessionUnchanged(){this.debug("session check","session unchanged"),this.eventsSubject.next(new Ia("session_unchanged"))}handleSessionChange(){this.eventsSubject.next(new Ia("session_changed")),this.stopSessionCheckTimer(),!this.useSilentRefresh&&this.responseType==="code"?this.refreshToken().then(()=>{this.debug("token refresh after session change worked")}).catch(()=>{this.debug("token refresh did not work after session changed"),this.eventsSubject.next(new Ia("session_terminated")),this.logOut(!0)}):this.silentRefreshRedirectUri?(this.silentRefresh().catch(()=>this.debug("silent refresh failed after session changed")),this.waitForSilentRefreshAfterSessionChange()):(this.eventsSubject.next(new Ia("session_terminated")),this.logOut(!0))}waitForSilentRefreshAfterSessionChange(){this.events.pipe(ce(i=>i.type==="silently_refreshed"||i.type==="silent_refresh_timeout"||i.type==="silent_refresh_error"),gn()).subscribe(i=>{i.type!=="silently_refreshed"&&(this.debug("silent refresh did not work after session changed"),this.eventsSubject.next(new Ia("session_terminated")),this.logOut(!0))})}handleSessionError(){this.stopSessionCheckTimer(),this.eventsSubject.next(new Ia("session_error"))}removeSessionCheckEventListener(){this.sessionCheckEventListener&&(window.removeEventListener("message",this.sessionCheckEventListener),this.sessionCheckEventListener=null)}initSessionCheck(){if(!this.canPerformSessionCheck())return;let i=this.document.getElementById(this.sessionCheckIFrameName);i&&this.document.body.removeChild(i);let r=this.document.createElement("iframe");r.id=this.sessionCheckIFrameName,this.setupSessionCheckEventListener();let o=this.sessionCheckIFrameUrl;r.setAttribute("src",o),r.style.display="none",this.document.body.appendChild(r),this.startSessionCheckTimer()}startSessionCheckTimer(){this.stopSessionCheckTimer(),this.ngZone.runOutsideAngular(()=>{this.sessionCheckTimer=setInterval(this.checkSession.bind(this),this.sessionCheckIntervall)})}stopSessionCheckTimer(){this.sessionCheckTimer&&(clearInterval(this.sessionCheckTimer),this.sessionCheckTimer=null)}checkSession(){let i=this.document.getElementById(this.sessionCheckIFrameName);i||this.logger.warn("checkSession did not find iframe",this.sessionCheckIFrameName);let r=this.getSessionState();r||this.stopSessionCheckTimer();let o=this.clientId+" "+r;i.contentWindow.postMessage(o,this.issuer)}createLoginUrl(){return fn(this,arguments,function*(i="",r="",o="",a=!1,s={}){let l=this,c;o?c=o:c=this.redirectUri;let d=yield this.createAndSaveNonce();if(i?i=d+this.config.nonceStateSeparator+encodeURIComponent(i):i=d,!this.requestAccessToken&&!this.oidc)throw new Error("Either requestAccessToken or oidc or both must be true");this.config.responseType?this.responseType=this.config.responseType:this.oidc&&this.requestAccessToken?this.responseType="id_token token":this.oidc&&!this.requestAccessToken?this.responseType="id_token":this.responseType="token";let m=l.loginUrl.indexOf("?")>-1?"&":"?",f=l.scope;this.oidc&&!f.match(/(^|\s)openid($|\s)/)&&(f="openid "+f);let b=l.loginUrl+m+"response_type="+encodeURIComponent(l.responseType)+"&client_id="+encodeURIComponent(l.clientId)+"&state="+encodeURIComponent(i)+"&redirect_uri="+encodeURIComponent(c)+"&scope="+encodeURIComponent(f);if(this.responseType.includes("code")&&!this.disablePKCE){let[v,w]=yield this.createChallangeVerifierPairForPKCE();this.saveNoncesInLocalStorage&&typeof window.localStorage<"u"?localStorage.setItem("PKCE_verifier",w):this._storage.setItem("PKCE_verifier",w),b+="&code_challenge="+v,b+="&code_challenge_method=S256"}r&&(b+="&login_hint="+encodeURIComponent(r)),l.resource&&(b+="&resource="+encodeURIComponent(l.resource)),l.oidc&&(b+="&nonce="+encodeURIComponent(d)),a&&(b+="&prompt=none");for(let v of Object.keys(s))b+="&"+encodeURIComponent(v)+"="+encodeURIComponent(s[v]);if(this.customQueryParams)for(let v of Object.getOwnPropertyNames(this.customQueryParams))b+="&"+v+"="+encodeURIComponent(this.customQueryParams[v]);return b})}initImplicitFlowInternal(i="",r=""){if(this.inImplicitFlow)return;if(this.inImplicitFlow=!0,!this.validateUrlForHttps(this.loginUrl))throw new Error("loginUrl must use HTTPS (with TLS), or config value for property 'requireHttps' must be set to 'false' and allow HTTP (without TLS).");let o={},a=null;typeof r=="string"?a=r:typeof r=="object"&&(o=r),this.createLoginUrl(i,a,null,!1,o).then(this.config.openUri).catch(s=>{console.error("Error in initImplicitFlow",s),this.inImplicitFlow=!1})}initImplicitFlow(i="",r=""){this.loginUrl!==""?this.initImplicitFlowInternal(i,r):this.events.pipe(ce(o=>o.type==="discovery_document_loaded")).subscribe(()=>this.initImplicitFlowInternal(i,r))}resetImplicitFlow(){this.inImplicitFlow=!1}callOnTokenReceivedIfExists(i){let r=this;if(i.onTokenReceived){let o={idClaims:r.getIdentityClaims(),idToken:r.getIdToken(),accessToken:r.getAccessToken(),state:r.state};i.onTokenReceived(o)}}storeAccessTokenResponse(i,r,o,a,s){if(this._storage.setItem("access_token",i),a&&!Array.isArray(a)?this._storage.setItem("granted_scopes",JSON.stringify(a.split(" "))):a&&Array.isArray(a)&&this._storage.setItem("granted_scopes",JSON.stringify(a)),this._storage.setItem("access_token_stored_at",""+this.dateTimeService.now()),o){let l=o*1e3,d=this.dateTimeService.new().getTime()+l;this._storage.setItem("expires_at",""+d)}r&&this._storage.setItem("refresh_token",r),s&&s.forEach((l,c)=>{this._storage.setItem(c,l)})}tryLogin(i=null){return this.config.responseType==="code"?this.tryLoginCodeFlow(i).then(()=>!0):this.tryLoginImplicitFlow(i)}parseQueryString(i){return!i||i.length===0?{}:(i.charAt(0)==="?"&&(i=i.substr(1)),this.urlHelper.parseQueryString(i))}tryLoginCodeFlow(i=null){return fn(this,null,function*(){i=i||{};let r=i.customHashFragment?i.customHashFragment.substring(1):window.location.search,o=this.getCodePartsFromUrl(r),a=o.code,s=o.state,l=o.session_state;if(!i.preventClearHashAfterLogin){let m=location.origin+location.pathname+location.search.replace(/code=[^&$]*/,"").replace(/scope=[^&$]*/,"").replace(/state=[^&$]*/,"").replace(/session_state=[^&$]*/,"").replace(/^\?&/,"?").replace(/&$/,"").replace(/^\?$/,"").replace(/&+/g,"&").replace(/\?&/,"?").replace(/\?$/,"")+location.hash;history.replaceState(null,window.name,m)}let[c,d]=this.parseState(s);if(this.state=d,o.error){this.debug("error trying to login"),this.handleLoginError(i,o);let m=new Ui("code_error",{},o);return this.eventsSubject.next(m),Promise.reject(m)}if(!i.disableNonceCheck){if(!c)return this.saveRequestedRoute(),Promise.resolve();if(!i.disableOAuth2StateCheck&&!this.validateNonce(c)){let f=new Ui("invalid_nonce_in_state",null);return this.eventsSubject.next(f),Promise.reject(f)}}return this.storeSessionState(l),a&&(yield this.getTokenFromCode(a,i),this.restoreRequestedRoute()),Promise.resolve()})}saveRequestedRoute(){this.config.preserveRequestedRoute&&this._storage.setItem("requested_route",window.location.pathname+window.location.search)}restoreRequestedRoute(){let i=this._storage.getItem("requested_route");i&&history.replaceState(null,"",window.location.origin+i)}getCodePartsFromUrl(i){return!i||i.length===0?this.urlHelper.getHashFragmentParams():(i.charAt(0)==="?"&&(i=i.substr(1)),this.urlHelper.parseQueryString(i))}getTokenFromCode(i,r){let o=new Qn({encoder:new Ud}).set("grant_type","authorization_code").set("code",i).set("redirect_uri",r.customRedirectUri||this.redirectUri);if(!this.disablePKCE){let a;this.saveNoncesInLocalStorage&&typeof window.localStorage<"u"?a=localStorage.getItem("PKCE_verifier"):a=this._storage.getItem("PKCE_verifier"),a?o=o.set("code_verifier",a):console.warn("No PKCE verifier found in oauth storage!")}return this.fetchAndProcessToken(o,r)}fetchAndProcessToken(i,r){r=r||{},this.assertUrlNotNullAndCorrectProtocol(this.tokenEndpoint,"tokenEndpoint");let o=new _r().set("Content-Type","application/x-www-form-urlencoded");if(this.useHttpBasicAuth){let a=btoa(`${this.clientId}:${this.dummyClientSecret}`);o=o.set("Authorization","Basic "+a)}return this.useHttpBasicAuth||(i=i.set("client_id",this.clientId)),!this.useHttpBasicAuth&&this.dummyClientSecret&&(i=i.set("client_secret",this.dummyClientSecret)),new Promise((a,s)=>{if(this.customQueryParams)for(let l of Object.getOwnPropertyNames(this.customQueryParams))i=i.set(l,this.customQueryParams[l]);this.http.post(this.tokenEndpoint,i,{headers:o}).subscribe(l=>{this.debug("refresh tokenResponse",l),this.storeAccessTokenResponse(l.access_token,l.refresh_token,l.expires_in||this.fallbackAccessTokenExpirationTimeInSec,l.scope,this.extractRecognizedCustomParameters(l)),this.oidc&&l.id_token?this.processIdToken(l.id_token,l.access_token,r.disableNonceCheck).then(c=>{this.storeIdToken(c),this.eventsSubject.next(new Rr("token_received")),this.eventsSubject.next(new Rr("token_refreshed")),a(l)}).catch(c=>{this.eventsSubject.next(new Ui("token_validation_error",c)),console.error("Error validating tokens"),console.error(c),s(c)}):(this.eventsSubject.next(new Rr("token_received")),this.eventsSubject.next(new Rr("token_refreshed")),a(l))},l=>{console.error("Error getting token",l),this.eventsSubject.next(new Ui("token_error",l)),s(l)})})}tryLoginImplicitFlow(i=null){i=i||{};let r;i.customHashFragment?r=this.urlHelper.getHashFragmentParams(i.customHashFragment):r=this.urlHelper.getHashFragmentParams(),this.debug("parsed url",r);let o=r.state,[a,s]=this.parseState(o);if(this.state=s,r.error){this.debug("error trying to login"),this.handleLoginError(i,r);let f=new Ui("token_error",{},r);return this.eventsSubject.next(f),Promise.reject(f)}let l=r.access_token,c=r.id_token,d=r.session_state,m=r.scope;if(!this.requestAccessToken&&!this.oidc)return Promise.reject("Either requestAccessToken or oidc (or both) must be true.");if(this.requestAccessToken&&!l||this.requestAccessToken&&!i.disableOAuth2StateCheck&&!o||this.oidc&&!c)return Promise.resolve(!1);if(this.sessionChecksEnabled&&!d&&this.logger.warn("session checks (Session Status Change Notification) were activated in the configuration but the id_token does not contain a session_state claim"),this.requestAccessToken&&!i.disableNonceCheck&&!this.validateNonce(a)){let b=new Ui("invalid_nonce_in_state",null);return this.eventsSubject.next(b),Promise.reject(b)}return this.requestAccessToken&&this.storeAccessTokenResponse(l,null,r.expires_in||this.fallbackAccessTokenExpirationTimeInSec,m),this.oidc?this.processIdToken(c,l,i.disableNonceCheck).then(f=>i.validationHandler?i.validationHandler({accessToken:l,idClaims:f.idTokenClaims,idToken:f.idToken,state:o}).then(()=>f):f).then(f=>(this.storeIdToken(f),this.storeSessionState(d),this.clearHashAfterLogin&&!i.preventClearHashAfterLogin&&this.clearLocationHash(),this.eventsSubject.next(new Rr("token_received")),this.callOnTokenReceivedIfExists(i),this.inImplicitFlow=!1,!0)).catch(f=>(this.eventsSubject.next(new Ui("token_validation_error",f)),this.logger.error("Error validating tokens"),this.logger.error(f),Promise.reject(f))):(this.eventsSubject.next(new Rr("token_received")),this.clearHashAfterLogin&&!i.preventClearHashAfterLogin&&this.clearLocationHash(),this.callOnTokenReceivedIfExists(i),Promise.resolve(!0))}parseState(i){let r=i,o="";if(i){let a=i.indexOf(this.config.nonceStateSeparator);a>-1&&(r=i.substr(0,a),o=i.substr(a+this.config.nonceStateSeparator.length))}return[r,o]}validateNonce(i){let r;return this.saveNoncesInLocalStorage&&typeof window.localStorage<"u"?r=localStorage.getItem("nonce"):r=this._storage.getItem("nonce"),r!==i?(console.error("Validating access_token failed, wrong state/nonce.",r,i),!1):!0}storeIdToken(i){this._storage.setItem("id_token",i.idToken),this._storage.setItem("id_token_claims_obj",i.idTokenClaimsJson),this._storage.setItem("id_token_expires_at",""+i.idTokenExpiresAt),this._storage.setItem("id_token_stored_at",""+this.dateTimeService.now())}storeSessionState(i){this._storage.setItem("session_state",i)}getSessionState(){return this._storage.getItem("session_state")}handleLoginError(i,r){i.onLoginError&&i.onLoginError(r),this.clearHashAfterLogin&&!i.preventClearHashAfterLogin&&this.clearLocationHash()}getClockSkewInMsec(i=6e5){return!this.clockSkewInSec&&this.clockSkewInSec!==0?i:this.clockSkewInSec*1e3}processIdToken(i,r,o=!1){let a=i.split("."),s=this.padBase64(a[0]),l=uL(s),c=JSON.parse(l),d=this.padBase64(a[1]),m=uL(d),f=JSON.parse(m),b;if(this.saveNoncesInLocalStorage&&typeof window.localStorage<"u"?b=localStorage.getItem("nonce"):b=this._storage.getItem("nonce"),Array.isArray(f.aud)){if(f.aud.every(W=>W!==this.clientId)){let W="Wrong audience: "+f.aud.join(",");return this.logger.warn(W),Promise.reject(W)}}else if(f.aud!==this.clientId){let W="Wrong audience: "+f.aud;return this.logger.warn(W),Promise.reject(W)}if(!f.sub){let W="No sub claim in id_token";return this.logger.warn(W),Promise.reject(W)}if(this.sessionChecksEnabled&&this.silentRefreshSubject&&this.silentRefreshSubject!==f.sub){let W=`After refreshing, we got an id_token for another user (sub). Expected sub: ${this.silentRefreshSubject}, received sub: ${f.sub}`;return this.logger.warn(W),Promise.reject(W)}if(!f.iat){let W="No iat claim in id_token";return this.logger.warn(W),Promise.reject(W)}if(!this.skipIssuerCheck&&f.iss!==this.issuer){let W="Wrong issuer: "+f.iss;return this.logger.warn(W),Promise.reject(W)}if(!o&&f.nonce!==b){let W="Wrong nonce: "+f.nonce;return this.logger.warn(W),Promise.reject(W)}if(Object.prototype.hasOwnProperty.call(this,"responseType")&&(this.responseType==="code"||this.responseType==="id_token")&&(this.disableAtHashCheck=!0),!this.disableAtHashCheck&&this.requestAccessToken&&!f.at_hash){let W="An at_hash is needed!";return this.logger.warn(W),Promise.reject(W)}let v=this.dateTimeService.now(),w=f.iat*1e3,x=f.exp*1e3,D=this.getClockSkewInMsec();if(w-D>=v||x+D-this.decreaseExpirationBySec<=v){let W="Token has expired";return console.error(W),console.error({now:v,issuedAtMSec:w,expiresAtMSec:x}),Promise.reject(W)}let P={accessToken:r,idToken:i,jwks:this.jwks,idTokenClaims:f,idTokenHeader:c,loadKeys:()=>this.loadJwks()};return this.disableAtHashCheck?this.checkSignature(P).then(()=>({idToken:i,idTokenClaims:f,idTokenClaimsJson:m,idTokenHeader:c,idTokenHeaderJson:l,idTokenExpiresAt:x})):this.checkAtHash(P).then(W=>{if(!this.disableAtHashCheck&&this.requestAccessToken&&!W){let Z="Wrong at_hash";return this.logger.warn(Z),Promise.reject(Z)}return this.checkSignature(P).then(()=>{let Z=!this.disableAtHashCheck,K={idToken:i,idTokenClaims:f,idTokenClaimsJson:m,idTokenHeader:c,idTokenHeaderJson:l,idTokenExpiresAt:x};return Z?this.checkAtHash(P).then(re=>{if(this.requestAccessToken&&!re){let Ee="Wrong at_hash";return this.logger.warn(Ee),Promise.reject(Ee)}else return K}):K})})}getIdentityClaims(){let i=this._storage.getItem("id_token_claims_obj");return i?JSON.parse(i):null}getGrantedScopes(){let i=this._storage.getItem("granted_scopes");return i?JSON.parse(i):null}getIdToken(){return this._storage?this._storage.getItem("id_token"):null}padBase64(i){for(;i.length%4!==0;)i+="=";return i}getAccessToken(){return this._storage?this._storage.getItem("access_token"):null}getRefreshToken(){return this._storage?this._storage.getItem("refresh_token"):null}getAccessTokenExpiration(){return this._storage.getItem("expires_at")?parseInt(this._storage.getItem("expires_at"),10):null}getAccessTokenStoredAt(){return parseInt(this._storage.getItem("access_token_stored_at"),10)}getIdTokenStoredAt(){return parseInt(this._storage.getItem("id_token_stored_at"),10)}getIdTokenExpiration(){return this._storage.getItem("id_token_expires_at")?parseInt(this._storage.getItem("id_token_expires_at"),10):null}hasValidAccessToken(){if(this.getAccessToken()){let i=this._storage.getItem("expires_at"),r=this.dateTimeService.new();return!(i&&parseInt(i,10)-this.decreaseExpirationBySec=0&&this._storage.getItem(i)!==null?JSON.parse(this._storage.getItem(i)):null}authorizationHeader(){return"Bearer "+this.getAccessToken()}logOut(i={},r=""){let o=!1;typeof i=="boolean"&&(o=i,i={});let a=this.getIdToken();if(this._storage.removeItem("access_token"),this._storage.removeItem("id_token"),this._storage.removeItem("refresh_token"),this.saveNoncesInLocalStorage?(localStorage.removeItem("nonce"),localStorage.removeItem("PKCE_verifier")):(this._storage.removeItem("nonce"),this._storage.removeItem("PKCE_verifier")),this._storage.removeItem("expires_at"),this._storage.removeItem("id_token_claims_obj"),this._storage.removeItem("id_token_expires_at"),this._storage.removeItem("id_token_stored_at"),this._storage.removeItem("access_token_stored_at"),this._storage.removeItem("granted_scopes"),this._storage.removeItem("session_state"),this.config.customTokenParameters&&this.config.customTokenParameters.forEach(l=>this._storage.removeItem(l)),this.silentRefreshSubject=null,this.eventsSubject.next(new Ia("logout")),!this.logoutUrl||o)return;let s;if(!this.validateUrlForHttps(this.logoutUrl))throw new Error("logoutUrl must use HTTPS (with TLS), or config value for property 'requireHttps' must be set to 'false' and allow HTTP (without TLS).");if(this.logoutUrl.indexOf("{{")>-1)s=this.logoutUrl.replace(/\{\{id_token\}\}/,encodeURIComponent(a)).replace(/\{\{client_id\}\}/,encodeURIComponent(this.clientId));else{let l=new Qn({encoder:new Ud});a&&(l=l.set("id_token_hint",a));let c=this.postLogoutRedirectUri||this.redirectUriAsPostLogoutRedirectUriFallback&&this.redirectUri||"";c&&(l=l.set("post_logout_redirect_uri",c),r&&(l=l.set("state",r)));for(let d in i)l=l.set(d,i[d]);s=this.logoutUrl+(this.logoutUrl.indexOf("?")>-1?"&":"?")+l.toString()}this.config.openUri(s)}createAndSaveNonce(){let i=this;return this.createNonce().then(function(r){return i.saveNoncesInLocalStorage&&typeof window.localStorage<"u"?localStorage.setItem("nonce",r):i._storage.setItem("nonce",r),r})}ngOnDestroy(){this.clearAccessTokenTimer(),this.clearIdTokenTimer(),this.removeSilentRefreshEventListener();let i=this.document.getElementById(this.silentRefreshIFrameName);i&&i.remove(),this.stopSessionCheckTimer(),this.removeSessionCheckEventListener();let r=this.document.getElementById(this.sessionCheckIFrameName);r&&r.remove()}createNonce(){return new Promise(i=>{if(this.rngUrl)throw new Error("createNonce with rng-web-api has not been implemented so far");let r="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-._~",o=45,a="",s=typeof self>"u"?null:self.crypto||self.msCrypto;if(s){let l=new Uint8Array(o);s.getRandomValues(l),l.map||(l.map=Array.prototype.map),l=l.map(c=>r.charCodeAt(c%r.length)),a=String.fromCharCode.apply(null,l)}else for(;0o.type==="discovery_document_loaded")).subscribe(()=>this.initCodeFlowInternal(i,r))}initCodeFlowInternal(i="",r={}){if(!this.validateUrlForHttps(this.loginUrl))throw new Error("loginUrl must use HTTPS (with TLS), or config value for property 'requireHttps' must be set to 'false' and allow HTTP (without TLS).");let o={},a=null;typeof r=="string"?a=r:typeof r=="object"&&(o=r),this.createLoginUrl(i,a,null,!1,o).then(this.config.openUri).catch(s=>{console.error("Error in initAuthorizationCodeFlow"),console.error(s)})}createChallangeVerifierPairForPKCE(){return fn(this,null,function*(){if(!this.crypto)throw new Error("PKCE support for code flow needs a CryptoHander. Did you import the OAuthModule using forRoot() ?");let i=yield this.createNonce(),r=yield this.crypto.calcHash(i,"sha-256");return[mL(r),i]})}extractRecognizedCustomParameters(i){let r=new Map;return this.config.customTokenParameters&&this.config.customTokenParameters.forEach(o=>{i[o]&&r.set(o,JSON.stringify(i[o]))}),r}revokeTokenAndLogout(i={},r=!1){let o=this.revocationEndpoint,a=this.getAccessToken(),s=this.getRefreshToken();if(!a)return Promise.resolve();let l=new Qn({encoder:new Ud}),c=new _r().set("Content-Type","application/x-www-form-urlencoded");if(this.useHttpBasicAuth){let d=btoa(`${this.clientId}:${this.dummyClientSecret}`);c=c.set("Authorization","Basic "+d)}if(this.useHttpBasicAuth||(l=l.set("client_id",this.clientId)),!this.useHttpBasicAuth&&this.dummyClientSecret&&(l=l.set("client_secret",this.dummyClientSecret)),this.customQueryParams)for(let d of Object.getOwnPropertyNames(this.customQueryParams))l=l.set(d,this.customQueryParams[d]);return new Promise((d,m)=>{let f,b;if(a){let v=l.set("token",a).set("token_type_hint","access_token");f=this.http.post(o,v,{headers:c})}else f=Q(null);if(s){let v=l.set("token",s).set("token_type_hint","refresh_token");b=this.http.post(o,v,{headers:c})}else b=Q(null);r&&(f=f.pipe(fi(v=>v.status===0?Q(null):Wn(v))),b=b.pipe(fi(v=>v.status===0?Q(null):Wn(v)))),co([f,b]).subscribe(v=>{this.logOut(i),d(v),this.logger.info("Token successfully revoked")},v=>{this.logger.error("Error revoking token",v),this.eventsSubject.next(new Ui("token_revoke_error",v)),m(v)})})}clearLocationHash(){location.hash!=""&&(location.hash="")}};n.\u0275fac=function(r){return new(r||n)(pe(ae),pe(Yr),pe(A0,8),pe(O0,8),pe($m,8),pe(hL),pe(I0),pe(R0,8),pe(ge),pe(jf))},n.\u0275prov=O({token:n,factory:n.\u0275fac});let t=n;return t})(),P0=class{},mk=class{handleError(n){return Wn(n)}},BK=(()=>{let n=class n{constructor(i,r,o){this.oAuthService=i,this.errorHandler=r,this.moduleConfig=o}checkUrl(i){return this.moduleConfig.resourceServer.customUrlValidation?this.moduleConfig.resourceServer.customUrlValidation(i):this.moduleConfig.resourceServer.allowedUrls?!!this.moduleConfig.resourceServer.allowedUrls.find(r=>i.toLowerCase().startsWith(r.toLowerCase())):!0}intercept(i,r){let o=i.url.toLowerCase();return!this.moduleConfig||!this.moduleConfig.resourceServer||!this.checkUrl(o)?r.handle(i):this.moduleConfig.resourceServer.sendAccessToken?Je(Q(this.oAuthService.getAccessToken()).pipe(ce(s=>!!s)),this.oAuthService.events.pipe(ce(s=>s.type==="token_received"),Gw(this.oAuthService.waitForTokenInMsec||0),fi(()=>Q(null)),se(()=>this.oAuthService.getAccessToken()))).pipe(lt(1),Mt(s=>{if(s){let l="Bearer "+s,c=i.headers.set("Authorization",l);i=i.clone({headers:c})}return r.handle(i).pipe(fi(l=>this.errorHandler.handleError(l)))})):r.handle(i).pipe(fi(s=>this.errorHandler.handleError(s)))}};n.\u0275fac=function(r){return new(r||n)(pe(Wm),pe(P0),pe(T0,8))},n.\u0275prov=O({token:n,factory:n.\u0275fac});let t=n;return t})();function jK(){return console}function HK(){return typeof sessionStorage<"u"?sessionStorage:new OK}function fL(t=null,n=dk){return zr([Wm,hL,{provide:I0,useFactory:jK},{provide:A0,useFactory:HK},{provide:O0,useClass:n},{provide:R0,useClass:VK},{provide:P0,useClass:mk},{provide:T0,useValue:t},{provide:E1,useClass:BK,multi:!0},{provide:jf,useClass:AK}])}var zK=["mat-internal-form-field",""],UK=["*"],Gm=(()=>{class t{labelPosition;static \u0275fac=function(i){return new(i||t)};static \u0275cmp=E({type:t,selectors:[["div","mat-internal-form-field",""]],hostAttrs:[1,"mdc-form-field","mat-internal-form-field"],hostVars:2,hostBindings:function(i,r){i&2&&G("mdc-form-field--align-end",r.labelPosition==="before")},inputs:{labelPosition:"labelPosition"},attrs:zK,ngContentSelectors:UK,decls:1,vars:0,template:function(i,r){i&1&&(Me(),oe(0))},styles:[`.mat-internal-form-field{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;display:inline-flex;align-items:center;vertical-align:middle}.mat-internal-form-field>label{margin-left:0;margin-right:auto;padding-left:4px;padding-right:0;order:0}[dir=rtl] .mat-internal-form-field>label{margin-left:auto;margin-right:0;padding-left:0;padding-right:4px}.mdc-form-field--align-end>label{margin-left:auto;margin-right:0;padding-left:0;padding-right:4px;order:-1}[dir=rtl] .mdc-form-field--align-end .mdc-form-field--align-end label{margin-left:0;margin-right:auto;padding-left:4px;padding-right:0} -`],encapsulation:2,changeDetection:0})}return t})();var hk;try{hk=typeof Intl<"u"&&Intl.v8BreakIterator}catch{hk=!1}var qe=(()=>{class t{_platformId=u(Ks);isBrowser=this._platformId?z2(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||hk)&&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(i){return new(i||t)};static \u0275prov=O({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();function al(t){return Array.isArray(t)?t:[t]}var gL=new Set,$d,qm=(()=>{class t{_platform=u(qe);_nonce=u(gm,{optional:!0});_matchMedia;constructor(){this._matchMedia=this._platform.isBrowser&&window.matchMedia?window.matchMedia.bind(window):WK}matchMedia(e){return(this._platform.WEBKIT||this._platform.BLINK)&&$K(e,this._nonce),this._matchMedia(e)}static \u0275fac=function(i){return new(i||t)};static \u0275prov=O({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();function $K(t,n){if(!gL.has(t))try{$d||($d=document.createElement("style"),n&&$d.setAttribute("nonce",n),$d.setAttribute("type","text/css"),document.head.appendChild($d)),$d.sheet&&($d.sheet.insertRule(`@media ${t} {body{ }}`,0),gL.add(t))}catch(e){console.error(e)}}function WK(t){return{matches:t==="all"||t==="",media:t,addListener:()=>{},removeListener:()=>{}}}var sl=(()=>{class t{_mediaMatcher=u(qm);_zone=u(ae);_queries=new Map;_destroySubject=new z;constructor(){}ngOnDestroy(){this._destroySubject.next(),this._destroySubject.complete()}isMatched(e){return _L(al(e)).some(r=>this._registerQuery(r).mql.matches)}observe(e){let r=_L(al(e)).map(a=>this._registerQuery(a).observable),o=co(r);return o=mo(o.pipe(lt(1)),o.pipe(Ya(1),Rt(0))),o.pipe(se(a=>{let s={matches:!1,breakpoints:{}};return a.forEach(({matches:l,query:c})=>{s.matches=s.matches||l,s.breakpoints[c]=l}),s}))}_registerQuery(e){if(this._queries.has(e))return this._queries.get(e);let i=this._mediaMatcher.matchMedia(e),o={observable:new Fe(a=>{let s=l=>this._zone.run(()=>a.next(l));return i.addListener(s),()=>{i.removeListener(s)}}).pipe(He(i),se(({matches:a})=>({query:e,matches:a})),Te(this._destroySubject)),mql:i};return this._queries.set(e,o),o}static \u0275fac=function(i){return new(i||t)};static \u0275prov=O({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();function _L(t){return t.map(n=>n.split(",")).reduce((n,e)=>n.concat(e)).map(n=>n.trim())}var F0={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 GK=new T("MATERIAL_ANIMATIONS");var bL=null;function pk(){return u(GK,{optional:!0})?.animationsDisabled||u(Yp,{optional:!0})==="NoopAnimations"?"di-disabled":(bL??=u(qm).matchMedia("(prefers-reduced-motion)").matches,bL?"reduced-motion":"enabled")}function Ye(){return pk()!=="enabled"}function Wd(t){return t.buttons===0||t.detail===0}function Gd(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 fk;function vL(){if(fk==null){let t=typeof document<"u"?document.head:null;fk=!!(t&&(t.createShadowRoot||t.attachShadow))}return fk}function gk(t){if(vL()){let n=t.getRootNode?t.getRootNode():null;if(typeof ShadowRoot<"u"&&ShadowRoot&&n instanceof ShadowRoot)return n}return null}function _o(){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 Kn(t){return t.composedPath?t.composedPath()[0]:t.target}var zf;function yL(){if(zf==null&&typeof window<"u")try{window.addEventListener("test",null,Object.defineProperty({},"passive",{get:()=>zf=!0}))}finally{zf=zf||!1}return zf}function rc(t){return yL()?t:!!t.capture}function Ln(t,n=0){return N0(t)?Number(t):arguments.length===2?n:0}function N0(t){return!isNaN(parseFloat(t))&&!isNaN(Number(t))}function Pr(t){return t instanceof q?t.nativeElement:t}var xL=new T("cdk-input-modality-detector-options"),CL={ignoreKeys:[18,17,224,91,16]},wL=650,_k={passive:!0,capture:!0},DL=(()=>{class t{_platform=u(qe);_listenerCleanups;modalityDetected;modalityChanged;get mostRecentModality(){return this._modality.value}_mostRecentTarget=null;_modality=new tt(null);_options;_lastTouchMs=0;_onKeydown=e=>{this._options?.ignoreKeys?.some(i=>i===e.keyCode)||(this._modality.next("keyboard"),this._mostRecentTarget=Kn(e))};_onMousedown=e=>{Date.now()-this._lastTouchMs{if(Gd(e)){this._modality.next("keyboard");return}this._lastTouchMs=Date.now(),this._modality.next("touch"),this._mostRecentTarget=Kn(e)};constructor(){let e=u(ae),i=u(ge),r=u(xL,{optional:!0});if(this._options=M(M({},CL),r),this.modalityDetected=this._modality.pipe(Ya(1)),this.modalityChanged=this.modalityDetected.pipe(Sn()),this._platform.isBrowser){let o=u(cn).createRenderer(null,null);this._listenerCleanups=e.runOutsideAngular(()=>[o.listen(i,"keydown",this._onKeydown,_k),o.listen(i,"mousedown",this._onMousedown,_k),o.listen(i,"touchstart",this._onTouchstart,_k)])}}ngOnDestroy(){this._modality.complete(),this._listenerCleanups?.forEach(e=>e())}static \u0275fac=function(i){return new(i||t)};static \u0275prov=O({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),Uf=(function(t){return t[t.IMMEDIATE=0]="IMMEDIATE",t[t.EVENTUAL=1]="EVENTUAL",t})(Uf||{}),EL=new T("cdk-focus-monitor-default-options"),L0=rc({passive:!0,capture:!0}),Yt=(()=>{class t{_ngZone=u(ae);_platform=u(qe);_inputModalityDetector=u(DL);_origin=null;_lastFocusOrigin;_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=u(ge);_stopInputModalityDetector=new z;constructor(){let e=u(EL,{optional:!0});this._detectionMode=e?.detectionMode||Uf.IMMEDIATE}_rootNodeFocusAndBlurListener=e=>{let i=Kn(e);for(let r=i;r;r=r.parentElement)e.type==="focus"?this._onFocus(e,r):this._onBlur(e,r)};monitor(e,i=!1){let r=Pr(e);if(!this._platform.isBrowser||r.nodeType!==1)return Q();let o=gk(r)||this._document,a=this._elementInfo.get(r);if(a)return i&&(a.checkChildren=!0),a.subject;let s={checkChildren:i,subject:new z,rootNode:o};return this._elementInfo.set(r,s),this._registerGlobalListeners(s),s.subject}stopMonitoring(e){let i=Pr(e),r=this._elementInfo.get(i);r&&(r.subject.complete(),this._setClasses(i),this._elementInfo.delete(i),this._removeGlobalListeners(r))}focusVia(e,i,r){let o=Pr(e),a=this._document.activeElement;o===a?this._getClosestElementsInfo(o).forEach(([s,l])=>this._originChanged(s,i,l)):(this._setOrigin(i),typeof o.focus=="function"&&o.focus(r))}ngOnDestroy(){this._elementInfo.forEach((e,i)=>this.stopMonitoring(i))}_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===Uf.EVENTUAL||!!e?.contains(this._inputModalityDetector._mostRecentTarget)}_setClasses(e,i){e.classList.toggle("cdk-focused",!!i),e.classList.toggle("cdk-touch-focused",i==="touch"),e.classList.toggle("cdk-keyboard-focused",i==="keyboard"),e.classList.toggle("cdk-mouse-focused",i==="mouse"),e.classList.toggle("cdk-program-focused",i==="program")}_setOrigin(e,i=!1){this._ngZone.runOutsideAngular(()=>{if(this._origin=e,this._originFromTouchInteraction=e==="touch"&&i,this._detectionMode===Uf.IMMEDIATE){clearTimeout(this._originTimeoutId);let r=this._originFromTouchInteraction?wL:1;this._originTimeoutId=setTimeout(()=>this._origin=null,r)}})}_onFocus(e,i){let r=this._elementInfo.get(i),o=Kn(e);!r||!r.checkChildren&&i!==o||this._originChanged(i,this._getFocusOrigin(o),r)}_onBlur(e,i){let r=this._elementInfo.get(i);!r||r.checkChildren&&e.relatedTarget instanceof Node&&i.contains(e.relatedTarget)||(this._setClasses(i),this._emitOrigin(r,null))}_emitOrigin(e,i){e.subject.observers.length&&this._ngZone.run(()=>e.subject.next(i))}_registerGlobalListeners(e){if(!this._platform.isBrowser)return;let i=e.rootNode,r=this._rootNodeFocusListenerCount.get(i)||0;r||this._ngZone.runOutsideAngular(()=>{i.addEventListener("focus",this._rootNodeFocusAndBlurListener,L0),i.addEventListener("blur",this._rootNodeFocusAndBlurListener,L0)}),this._rootNodeFocusListenerCount.set(i,r+1),++this._monitoredElementCount===1&&(this._ngZone.runOutsideAngular(()=>{this._getWindow().addEventListener("focus",this._windowFocusListener)}),this._inputModalityDetector.modalityDetected.pipe(Te(this._stopInputModalityDetector)).subscribe(o=>{this._setOrigin(o,!0)}))}_removeGlobalListeners(e){let i=e.rootNode;if(this._rootNodeFocusListenerCount.has(i)){let r=this._rootNodeFocusListenerCount.get(i);r>1?this._rootNodeFocusListenerCount.set(i,r-1):(i.removeEventListener("focus",this._rootNodeFocusAndBlurListener,L0),i.removeEventListener("blur",this._rootNodeFocusAndBlurListener,L0),this._rootNodeFocusListenerCount.delete(i))}--this._monitoredElementCount||(this._getWindow().removeEventListener("focus",this._windowFocusListener),this._stopInputModalityDetector.next(),clearTimeout(this._windowFocusTimeoutId),clearTimeout(this._originTimeoutId))}_originChanged(e,i,r){this._setClasses(e,i),this._emitOrigin(r,i),this._lastFocusOrigin=i}_getClosestElementsInfo(e){let i=[];return this._elementInfo.forEach((r,o)=>{(o===e||r.checkChildren&&o.contains(e))&&i.push([o,r])}),i}_isLastInteractionFromInputLabel(e){let{_mostRecentTarget:i,mostRecentModality:r}=this._inputModalityDetector;if(r!=="mouse"||!i||i===e||e.nodeName!=="INPUT"&&e.nodeName!=="TEXTAREA"||e.disabled)return!1;let o=e.labels;if(o){for(let a=0;a{class t{_elementRef=u(q);_focusMonitor=u(Yt);_monitorSubscription;_focusOrigin=null;cdkFocusChange=new U;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(i=>{this._focusOrigin=i,this.cdkFocusChange.emit(i)})}ngOnDestroy(){this._focusMonitor.stopMonitoring(this._elementRef),this._monitorSubscription&&this._monitorSubscription.unsubscribe()}static \u0275fac=function(i){return new(i||t)};static \u0275dir=F({type:t,selectors:[["","cdkMonitorElementFocus",""],["","cdkMonitorSubtreeFocus",""]],outputs:{cdkFocusChange:"cdkFocusChange"},exportAs:["cdkMonitorFocus"]})}return t})();var V0=new WeakMap,ut=(()=>{class t{_appRef;_injector=u(de);_environmentInjector=u(Wt);load(e){let i=this._appRef=this._appRef||this._injector.get(Gn),r=V0.get(i);r||(r={loaders:new Set,refs:[]},V0.set(i,r),i.onDestroy(()=>{V0.get(i)?.refs.forEach(o=>o.destroy()),V0.delete(i)})),r.loaders.has(e)||(r.loaders.add(e),r.refs.push(Mm(e,{environmentInjector:this._environmentInjector})))}static \u0275fac=function(i){return new(i||t)};static \u0275prov=O({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();var Qr=(()=>{class t{static \u0275fac=function(i){return new(i||t)};static \u0275cmp=E({type:t,selectors:[["ng-component"]],exportAs:["cdkVisuallyHidden"],decls:0,vars:0,template:function(i,r){},styles:[`.cdk-visually-hidden{border:0;clip:rect(0 0 0 0);height:1px;margin:-1px;overflow:hidden;padding:0;position:absolute;width:1px;white-space:nowrap;outline:0;-webkit-appearance:none;-moz-appearance:none;left:0}[dir=rtl] .cdk-visually-hidden{left:auto;right:0} -`],encapsulation:2,changeDetection:0})}return t})();function qK(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(i){return new(i||t)};static \u0275prov=O({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),kL=(()=>{class t{_mutationObserverFactory=u(ML);_observedElements=new Map;_ngZone=u(ae);constructor(){}ngOnDestroy(){this._observedElements.forEach((e,i)=>this._cleanupObserver(i))}observe(e){let i=Pr(e);return new Fe(r=>{let a=this._observeElement(i).pipe(se(s=>s.filter(l=>!qK(l))),ce(s=>!!s.length)).subscribe(s=>{this._ngZone.run(()=>{r.next(s)})});return()=>{a.unsubscribe(),this._unobserveElement(i)}})}_observeElement(e){return this._ngZone.runOutsideAngular(()=>{if(this._observedElements.has(e))this._observedElements.get(e).count++;else{let i=new z,r=this._mutationObserverFactory.create(o=>i.next(o));r&&r.observe(e,{characterData:!0,childList:!0,subtree:!0}),this._observedElements.set(e,{observer:r,stream:i,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:i,stream:r}=this._observedElements.get(e);i&&i.disconnect(),r.complete(),this._observedElements.delete(e)}}static \u0275fac=function(i){return new(i||t)};static \u0275prov=O({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),Wf=(()=>{class t{_contentObserver=u(kL);_elementRef=u(q);event=new U;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=Ln(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(Rt(this.debounce)):e).subscribe(this.event)}_unsubscribe(){this._currentSubscription?.unsubscribe()}static \u0275fac=function(i){return new(i||t)};static \u0275dir=F({type:t,selectors:[["","cdkObserveContent",""]],inputs:{disabled:[2,"cdkObserveContentDisabled","disabled",V],debounce:"debounce"},outputs:{event:"cdkObserveContent"},exportAs:["cdkObserveContent"]})}return t})(),Ym=(()=>{class t{static \u0275fac=function(i){return new(i||t)};static \u0275mod=ee({type:t});static \u0275inj=J({providers:[ML]})}return t})();var ac=(()=>{class t{_platform=u(qe);constructor(){}isDisabled(e){return e.hasAttribute("disabled")}isVisible(e){return QK(e)&&getComputedStyle(e).visibility==="visible"}isTabbable(e){if(!this._platform.isBrowser)return!1;let i=YK(nZ(e));if(i&&(SL(i)===-1||!this.isVisible(i)))return!1;let r=e.nodeName.toLowerCase(),o=SL(e);return e.hasAttribute("contenteditable")?o!==-1:r==="iframe"||r==="object"||this._platform.WEBKIT&&this._platform.IOS&&!tZ(e)?!1:r==="audio"?e.hasAttribute("controls")?o!==-1:!1:r==="video"?o===-1?!1:o!==null?!0:this._platform.FIREFOX||e.hasAttribute("controls"):e.tabIndex>=0}isFocusable(e,i){return iZ(e)&&!this.isDisabled(e)&&(i?.ignoreVisibility||this.isVisible(e))}static \u0275fac=function(i){return new(i||t)};static \u0275prov=O({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();function YK(t){try{return t.frameElement}catch{return null}}function QK(t){return!!(t.offsetWidth||t.offsetHeight||typeof t.getClientRects=="function"&&t.getClientRects().length)}function KK(t){let n=t.nodeName.toLowerCase();return n==="input"||n==="select"||n==="button"||n==="textarea"}function ZK(t){return JK(t)&&t.type=="hidden"}function XK(t){return eZ(t)&&t.hasAttribute("href")}function JK(t){return t.nodeName.toLowerCase()=="input"}function eZ(t){return t.nodeName.toLowerCase()=="a"}function AL(t){if(!t.hasAttribute("tabindex")||t.tabIndex===void 0)return!1;let n=t.getAttribute("tabindex");return!!(n&&!isNaN(parseInt(n,10)))}function SL(t){if(!AL(t))return null;let n=parseInt(t.getAttribute("tabindex")||"",10);return isNaN(n)?-1:n}function tZ(t){let n=t.nodeName.toLowerCase(),e=n==="input"&&t.type;return e==="text"||e==="password"||n==="select"||n==="textarea"}function iZ(t){return ZK(t)?!1:KK(t)||XK(t)||t.hasAttribute("contenteditable")||AL(t)}function nZ(t){return t.ownerDocument&&t.ownerDocument.defaultView||window}var B0=class{_element;_checker;_ngZone;_document;_injector;_startAnchor;_endAnchor;_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,i,r,o=!1,a){this._element=n,this._checker=e,this._ngZone=i,this._document=r,this._injector=a,o||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 i=this._getFirstTabbableElement(e);return i?.focus(n),!!i}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 i=0;i=0;i--){let r=e[i].nodeType===this._document.ELEMENT_NODE?this._getLastTabbableElement(e[i]):null;if(r)return r}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?pt(n,{injector:this._injector}):setTimeout(n)}},Qm=(()=>{class t{_checker=u(ac);_ngZone=u(ae);_document=u(ge);_injector=u(de);constructor(){u(ut).load(Qr)}create(e,i=!1){return new B0(e,this._checker,this._ngZone,this._document,i,this._injector)}static \u0275fac=function(i){return new(i||t)};static \u0275prov=O({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),vk=(()=>{class t{_elementRef=u(q);_focusTrapFactory=u(Qm);focusTrap;_previouslyFocusedElement=null;get enabled(){return this.focusTrap?.enabled||!1}set enabled(e){this.focusTrap&&(this.focusTrap.enabled=e)}autoCapture;constructor(){u(qe).isBrowser&&(this.focusTrap=this._focusTrapFactory.create(this._elementRef.nativeElement,!0))}ngOnDestroy(){this.focusTrap?.destroy(),this._previouslyFocusedElement&&(this._previouslyFocusedElement.focus(),this._previouslyFocusedElement=null)}ngAfterContentInit(){this.focusTrap?.attachAnchors(),this.autoCapture&&this._captureFocus()}ngDoCheck(){this.focusTrap&&!this.focusTrap.hasAttached()&&this.focusTrap.attachAnchors()}ngOnChanges(e){let i=e.autoCapture;i&&!i.firstChange&&this.autoCapture&&this.focusTrap?.hasAttached()&&this._captureFocus()}_captureFocus(){this._previouslyFocusedElement=_o(),this.focusTrap?.focusInitialElementWhenReady()}static \u0275fac=function(i){return new(i||t)};static \u0275dir=F({type:t,selectors:[["","cdkTrapFocus",""]],inputs:{enabled:[2,"cdkTrapFocus","enabled",V],autoCapture:[2,"cdkTrapFocusAutoCapture","autoCapture",V]},exportAs:["cdkTrapFocus"],features:[Ae]})}return t})(),OL=new T("liveAnnouncerElement",{providedIn:"root",factory:RL});function RL(){return null}var PL=new T("LIVE_ANNOUNCER_DEFAULT_OPTIONS"),rZ=0,Gf=(()=>{class t{_ngZone=u(ae);_defaultOptions=u(PL,{optional:!0});_liveElement;_document=u(ge);_previousTimeout;_currentPromise;_currentResolve;constructor(){let e=u(OL,{optional:!0});this._liveElement=e||this._createLiveElement()}announce(e,...i){let r=this._defaultOptions,o,a;return i.length===1&&typeof i[0]=="number"?a=i[0]:[o,a]=i,this.clear(),clearTimeout(this._previousTimeout),o||(o=r&&r.politeness?r.politeness:"polite"),a==null&&r&&(a=r.duration),this._liveElement.setAttribute("aria-live",o),this._liveElement.id&&this._exposeAnnouncerToModals(this._liveElement.id),this._ngZone.runOutsideAngular(()=>(this._currentPromise||(this._currentPromise=new Promise(s=>this._currentResolve=s)),clearTimeout(this._previousTimeout),this._previousTimeout=setTimeout(()=>{this._liveElement.textContent=e,typeof a=="number"&&(this._previousTimeout=setTimeout(()=>this.clear(),a)),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",i=this._document.getElementsByClassName(e),r=this._document.createElement("div");for(let o=0;o .cdk-overlay-container [aria-modal="true"]');for(let r=0;r{class t{_platform=u(qe);_hasCheckedHighContrastMode;_document=u(ge);_breakpointSubscription;constructor(){this._breakpointSubscription=u(sl).observe("(forced-colors: active)").subscribe(()=>{this._hasCheckedHighContrastMode&&(this._hasCheckedHighContrastMode=!1,this._applyBodyHighContrastModeCssClasses())})}getHighContrastMode(){if(!this._platform.isBrowser)return oc.NONE;let e=this._document.createElement("div");e.style.backgroundColor="rgb(1,2,3)",e.style.position="absolute",this._document.body.appendChild(e);let i=this._document.defaultView||window,r=i&&i.getComputedStyle?i.getComputedStyle(e):null,o=(r&&r.backgroundColor||"").replace(/ /g,"");switch(e.remove(),o){case"rgb(0,0,0)":case"rgb(45,50,54)":case"rgb(32,32,32)":return oc.WHITE_ON_BLACK;case"rgb(255,255,255)":case"rgb(255,250,239)":return oc.BLACK_ON_WHITE}return oc.NONE}ngOnDestroy(){this._breakpointSubscription.unsubscribe()}_applyBodyHighContrastModeCssClasses(){if(!this._hasCheckedHighContrastMode&&this._platform.isBrowser&&this._document.body){let e=this._document.body.classList;e.remove(bk,TL,IL),this._hasCheckedHighContrastMode=!0;let i=this.getHighContrastMode();i===oc.BLACK_ON_WHITE?e.add(bk,TL):i===oc.WHITE_ON_BLACK&&e.add(bk,IL)}}static \u0275fac=function(i){return new(i||t)};static \u0275prov=O({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),ll=(()=>{class t{constructor(){u(j0)._applyBodyHighContrastModeCssClasses()}static \u0275fac=function(i){return new(i||t)};static \u0275mod=ee({type:t});static \u0275inj=J({imports:[Ym]})}return t})();var yk={},Ze=(()=>{class t{_appId=u(ql);getId(e){return this._appId!=="ng"&&(e+=this._appId),yk.hasOwnProperty(e)||(yk[e]=0),`${e}${yk[e]++}`}static \u0275fac=function(i){return new(i||t)};static \u0275prov=O({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();var oZ=200,H0=class{_letterKeyStream=new z;_items=[];_selectedItemIndex=-1;_pressedLetters=[];_skipPredicateFn;_selectedItem=new z;selectedItem=this._selectedItem;constructor(n,e){let i=typeof e?.debounceInterval=="number"?e.debounceInterval:oZ;e?.skipPredicate&&(this._skipPredicateFn=e.skipPredicate),this.setItems(n),this._setupKeyHandler(i)}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)),Rt(n),ce(()=>this._pressedLetters.length>0),se(()=>this._pressedLetters.join("").toLocaleUpperCase())).subscribe(e=>{for(let i=1;it[e]):t.altKey||t.shiftKey||t.ctrlKey||t.metaKey}var Km=class{_items;_activeItemIndex=he(-1);_activeItem=he(null);_wrap=!1;_typeaheadSubscription=ke.EMPTY;_itemChangesSubscription;_vertical=!0;_horizontal;_allowedModifierKeys=[];_homeAndEnd=!1;_pageUpAndDown={enabled:!1,delta:10};_effectRef;_typeahead;_skipPredicateFn=n=>n.disabled;constructor(n,e){this._items=n,n instanceof pr?this._itemChangesSubscription=n.changes.subscribe(i=>this._itemsChanged(i.toArray())):is(n)&&(this._effectRef=Ar(()=>this._itemsChanged(n()),{injector:e}))}tabOut=new z;change=new z;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 H0(e,{debounceInterval:typeof n=="number"?n:void 0,skipPredicate:i=>this._skipPredicateFn(i)}),this._typeaheadSubscription=this._typeahead.selectedItem.subscribe(i=>{this.setActiveItem(i)}),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,r=["altKey","ctrlKey","metaKey","shiftKey"].every(o=>!n[o]||this._allowedModifierKeys.indexOf(o)>-1);switch(e){case 9:this.tabOut.next();return;case 40:if(this._vertical&&r){this.setNextItemActive();break}else return;case 38:if(this._vertical&&r){this.setPreviousItemActive();break}else return;case 39:if(this._horizontal&&r){this._horizontal==="rtl"?this.setPreviousItemActive():this.setNextItemActive();break}else return;case 37:if(this._horizontal&&r){this._horizontal==="rtl"?this.setNextItemActive():this.setPreviousItemActive();break}else return;case 36:if(this._homeAndEnd&&r){this.setFirstItemActive();break}else return;case 35:if(this._homeAndEnd&&r){this.setLastItemActive();break}else return;case 33:if(this._pageUpAndDown.enabled&&r){let o=this._activeItemIndex()-this._pageUpAndDown.delta;this._setActiveItemByIndex(o>0?o:0,1);break}else return;case 34:if(this._pageUpAndDown.enabled&&r){let o=this._activeItemIndex()+this._pageUpAndDown.delta,a=this._getItemsArray().length;this._setActiveItemByIndex(o-1&&i!==this._activeItemIndex()&&(this._activeItemIndex.set(i),this._typeahead?.setCurrentSelectedItemIndex(i))}}};var qd=class extends Km{setActiveItem(n){this.activeItem&&this.activeItem.setInactiveStyles(),super.setActiveItem(n),this.activeItem&&this.activeItem.setActiveStyles()}};var bs=class extends Km{_origin="program";setFocusOrigin(n){return this._origin=n,this}setActiveItem(n){super.setActiveItem(n),this.activeItem&&this.activeItem.focus(this._origin)}};var VL=" ";function Zm(t,n,e){let i=W0(t,n);e=e.trim(),!i.some(r=>r.trim()===e)&&(i.push(e),t.setAttribute(n,i.join(VL)))}function sc(t,n,e){let i=W0(t,n);e=e.trim();let r=i.filter(o=>o!==e);r.length?t.setAttribute(n,r.join(VL)):t.removeAttribute(n)}function W0(t,n){return t.getAttribute(n)?.match(/\S+/g)??[]}var BL="cdk-describedby-message",$0="cdk-describedby-host",Ck=0,Xm=(()=>{class t{_platform=u(qe);_document=u(ge);_messageRegistry=new Map;_messagesContainer=null;_id=`${Ck++}`;constructor(){u(ut).load(Qr),this._id=u(ql)+"-"+Ck++}describe(e,i,r){if(!this._canBeDescribed(e,i))return;let o=xk(i,r);typeof i!="string"?(LL(i,this._id),this._messageRegistry.set(o,{messageElement:i,referenceCount:0})):this._messageRegistry.has(o)||this._createMessageElement(i,r),this._isElementDescribedByMessage(e,o)||this._addMessageReference(e,o)}removeDescription(e,i,r){if(!i||!this._isElementNode(e))return;let o=xk(i,r);if(this._isElementDescribedByMessage(e,o)&&this._removeMessageReference(e,o),typeof i=="string"){let a=this._messageRegistry.get(o);a&&a.referenceCount===0&&this._deleteMessageElement(o)}this._messagesContainer?.childNodes.length===0&&(this._messagesContainer.remove(),this._messagesContainer=null)}ngOnDestroy(){let e=this._document.querySelectorAll(`[${$0}="${this._id}"]`);for(let i=0;ir.indexOf(BL)!=0);e.setAttribute("aria-describedby",i.join(" "))}_addMessageReference(e,i){let r=this._messageRegistry.get(i);Zm(e,"aria-describedby",r.messageElement.id),e.setAttribute($0,this._id),r.referenceCount++}_removeMessageReference(e,i){let r=this._messageRegistry.get(i);r.referenceCount--,sc(e,"aria-describedby",r.messageElement.id),e.removeAttribute($0)}_isElementDescribedByMessage(e,i){let r=W0(e,"aria-describedby"),o=this._messageRegistry.get(i),a=o&&o.messageElement.id;return!!a&&r.indexOf(a)!=-1}_canBeDescribed(e,i){if(!this._isElementNode(e))return!1;if(i&&typeof i=="object")return!0;let r=i==null?"":`${i}`.trim(),o=e.getAttribute("aria-label");return r?!o||o.trim()!==r:!1}_isElementNode(e){return e.nodeType===this._document.ELEMENT_NODE}static \u0275fac=function(i){return new(i||t)};static \u0275prov=O({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();function xk(t,n){return typeof t=="string"?`${n||""}/${t}`:t}function LL(t,n){t.id||(t.id=`${BL}-${n}-${Ck++}`)}var aZ=new T("cdk-dir-doc",{providedIn:"root",factory:sZ});function sZ(){return u(ge)}var lZ=/^(ar|ckb|dv|he|iw|fa|nqo|ps|sd|ug|ur|yi|.*[-_](Adlm|Arab|Hebr|Nkoo|Rohg|Thaa))(?!.*[-_](Latn|Cyrl)($|-|_))($|-|_)/i;function wk(t){let n=t?.toLowerCase()||"";return n==="auto"&&typeof navigator<"u"&&navigator?.language?lZ.test(navigator.language)?"rtl":"ltr":n==="rtl"?"rtl":"ltr"}var Vt=(()=>{class t{get value(){return this.valueSignal()}valueSignal=he("ltr");change=new U;constructor(){let e=u(aZ,{optional:!0});if(e){let i=e.body?e.body.dir:null,r=e.documentElement?e.documentElement.dir:null;this.valueSignal.set(wk(i||r||"ltr"))}}ngOnDestroy(){this.change.complete()}static \u0275fac=function(i){return new(i||t)};static \u0275prov=O({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();var HL=(()=>{class t{_isInitialized=!1;_rawDir;change=new U;get dir(){return this.valueSignal()}set dir(e){let i=this.valueSignal();this.valueSignal.set(wk(e)),this._rawDir=e,i!==this.valueSignal()&&this._isInitialized&&this.change.emit(this.valueSignal())}get value(){return this.dir}valueSignal=he("ltr");ngAfterContentInit(){this._isInitialized=!0}ngOnDestroy(){this.change.complete()}static \u0275fac=function(i){return new(i||t)};static \u0275dir=F({type:t,selectors:[["","dir",""]],hostVars:1,hostBindings:function(i,r){i&2&&X("dir",r._rawDir)},inputs:{dir:"dir"},outputs:{change:"dirChange"},exportAs:["dir"],features:[Ce([{provide:Vt,useExisting:t}])]})}return t})(),vs=(()=>{class t{static \u0275fac=function(i){return new(i||t)};static \u0275mod=ee({type:t});static \u0275inj=J({})}return t})();var we=(()=>{class t{constructor(){u(j0)._applyBodyHighContrastModeCssClasses()}static \u0275fac=function(i){return new(i||t)};static \u0275mod=ee({type:t});static \u0275inj=J({imports:[vs,vs]})}return t})();var cl=class{_defaultMatcher;ngControl;_parentFormGroup;_parentForm;_stateChanges;errorState=!1;matcher;constructor(n,e,i,r,o){this._defaultMatcher=n,this.ngControl=e,this._parentFormGroup=i,this._parentForm=r,this._stateChanges=o}updateErrorState(){let n=this.errorState,e=this._parentFormGroup||this._parentForm,i=this.matcher||this._defaultMatcher,r=this.ngControl?this.ngControl.control:null,o=i?.isErrorState(r,e)??!1;o!==n&&(this.errorState=o,this._stateChanges.next())}};var ys=new T("MAT_DATE_LOCALE",{providedIn:"root",factory:dZ});function dZ(){return u(el)}var Jm="Method not implemented",Li=class{locale;_localeChanges=new z;localeChanges=this._localeChanges;setTime(n,e,i,r){throw new Error(Jm)}getHours(n){throw new Error(Jm)}getMinutes(n){throw new Error(Jm)}getSeconds(n){throw new Error(Jm)}parseTime(n,e){throw new Error(Jm)}addSeconds(n,e){throw new Error(Jm)}getValidDateOrNull(n){return this.isDateInstance(n)&&this.isValid(n)?n:null}deserialize(n){return n==null||this.isDateInstance(n)&&this.isValid(n)?n:this.invalid()}setLocale(n){this.locale=n,this._localeChanges.next()}compareDate(n,e){return this.getYear(n)-this.getYear(e)||this.getMonth(n)-this.getMonth(e)||this.getDate(n)-this.getDate(e)}compareTime(n,e){return this.getHours(n)-this.getHours(e)||this.getMinutes(n)-this.getMinutes(e)||this.getSeconds(n)-this.getSeconds(e)}sameDate(n,e){if(n&&e){let i=this.isValid(n),r=this.isValid(e);return i&&r?!this.compareDate(n,e):i==r}return n==e}sameTime(n,e){if(n&&e){let i=this.isValid(n),r=this.isValid(e);return i&&r?!this.compareTime(n,e):i==r}return n==e}clampDate(n,e,i){return e&&this.compareDate(n,e)<0?e:i&&this.compareDate(n,i)>0?i:n}},xs=new T("mat-date-formats");var dl=(()=>{class t{isErrorState(e,i){return!!(e&&e.invalid&&(e.touched||i&&i.submitted))}static \u0275fac=function(i){return new(i||t)};static \u0275prov=O({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();var Di=(()=>{class t{static \u0275fac=function(i){return new(i||t)};static \u0275cmp=E({type:t,selectors:[["structural-styles"]],decls:0,vars:0,template:function(i,r){},styles:[`.mat-focus-indicator{position:relative}.mat-focus-indicator::before{top:0;left:0;right:0;bottom:0;position:absolute;box-sizing:border-box;pointer-events:none;display:var(--mat-focus-indicator-display, none);border-width:var(--mat-focus-indicator-border-width, 3px);border-style:var(--mat-focus-indicator-border-style, solid);border-color:var(--mat-focus-indicator-border-color, transparent);border-radius:var(--mat-focus-indicator-border-radius, 4px)}.mat-focus-indicator:focus::before{content:""}@media(forced-colors: active){html{--mat-focus-indicator-display: block}} -`],encapsulation:2,changeDetection:0})}return t})();var Aa=(function(t){return t[t.NORMAL=0]="NORMAL",t[t.NEGATED=1]="NEGATED",t[t.INVERTED=2]="INVERTED",t})(Aa||{}),G0,Yd;function q0(){if(Yd==null){if(typeof document!="object"||!document||typeof Element!="function"||!Element)return Yd=!1,Yd;if(document.documentElement?.style&&"scrollBehavior"in document.documentElement.style)Yd=!0;else{let t=Element.prototype.scrollTo;t?Yd=!/\{\s*\[native code\]\s*\}/.test(t.toString()):Yd=!1}}return Yd}function eh(){if(typeof document!="object"||!document)return Aa.NORMAL;if(G0==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"),i=e.style;i.width="2px",i.height="1px",t.appendChild(e),document.body.appendChild(t),G0=Aa.NORMAL,t.scrollLeft===0&&(t.scrollLeft=1,G0=t.scrollLeft===0?Aa.NEGATED:Aa.INVERTED),t.remove()}return G0}function Dk(){return typeof __karma__<"u"&&!!__karma__||typeof jasmine<"u"&&!!jasmine||typeof jest<"u"&&!!jest||typeof Mocha<"u"&&!!Mocha}var th,zL=["color","button","checkbox","date","datetime-local","email","file","hidden","image","month","number","password","radio","range","reset","search","submit","tel","text","time","url","week"];function Ek(){if(th)return th;if(typeof document!="object"||!document)return th=new Set(zL),th;let t=document.createElement("input");return th=new Set(zL.filter(n=>(t.setAttribute("type",n),t.type===n))),th}function on(t){return t==null?"":typeof t=="string"?t:`${t}px`}function Ai(t){return t!=null&&`${t}`!="false"}function UL(t,n=/\s+/){let e=[];if(t!=null){let i=Array.isArray(t)?t:`${t}`.split(n);for(let r of i){let o=`${r}`.trim();o&&e.push(o)}}return e}var vo=(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})(vo||{}),Y0=class{_renderer;element;config;_animationForciblyDisabledThroughCss;state=vo.HIDDEN;constructor(n,e,i,r=!1){this._renderer=n,this.element=e,this.config=i,this._animationForciblyDisabledThroughCss=r}fadeOut(){this._renderer.fadeOutRipple(this)}},$L=rc({passive:!0,capture:!0}),Mk=class{_events=new Map;addHandler(n,e,i,r){let o=this._events.get(e);if(o){let a=o.get(i);a?a.add(r):o.set(i,new Set([r]))}else this._events.set(e,new Map([[i,new Set([r])]])),n.runOutsideAngular(()=>{document.addEventListener(e,this._delegateEventHandler,$L)})}removeHandler(n,e,i){let r=this._events.get(n);if(!r)return;let o=r.get(e);o&&(o.delete(i),o.size===0&&r.delete(e),r.size===0&&(this._events.delete(n),document.removeEventListener(n,this._delegateEventHandler,$L)))}_delegateEventHandler=n=>{let e=Kn(n);e&&this._events.get(n.type)?.forEach((i,r)=>{(r===e||r.contains(e))&&i.forEach(o=>o.handleEvent(n))})}},ih={enterDuration:225,exitDuration:150},uZ=800,WL=rc({passive:!0,capture:!0}),GL=["mousedown","touchstart"],qL=["mouseup","mouseleave","touchend","touchcancel"],mZ=(()=>{class t{static \u0275fac=function(i){return new(i||t)};static \u0275cmp=E({type:t,selectors:[["ng-component"]],hostAttrs:["mat-ripple-style-loader",""],decls:0,vars:0,template:function(i,r){},styles:[`.mat-ripple{overflow:hidden;position:relative}.mat-ripple:not(:empty){transform:translateZ(0)}.mat-ripple.mat-ripple-unbounded{overflow:visible}.mat-ripple-element{position:absolute;border-radius:50%;pointer-events:none;transition:opacity,transform 0ms cubic-bezier(0, 0, 0.2, 1);transform:scale3d(0, 0, 0);background-color:var(--mat-ripple-color, color-mix(in srgb, var(--mat-sys-on-surface) 10%, transparent))}@media(forced-colors: active){.mat-ripple-element{display:none}}.cdk-drag-preview .mat-ripple-element,.cdk-drag-placeholder .mat-ripple-element{display:none} -`],encapsulation:2,changeDetection:0})}return t})(),lc=class t{_target;_ngZone;_platform;_containerElement;_triggerElement;_isPointerDown=!1;_activeRipples=new Map;_mostRecentTransientRipple;_lastTouchStartEvent;_pointerUpEventsRegistered=!1;_containerRect;static _eventManager=new Mk;constructor(n,e,i,r,o){this._target=n,this._ngZone=e,this._platform=r,r.isBrowser&&(this._containerElement=Pr(i)),o&&o.get(ut).load(mZ)}fadeInRipple(n,e,i={}){let r=this._containerRect=this._containerRect||this._containerElement.getBoundingClientRect(),o=M(M({},ih),i.animation);i.centered&&(n=r.left+r.width/2,e=r.top+r.height/2);let a=i.radius||hZ(n,e,r),s=n-r.left,l=e-r.top,c=o.enterDuration,d=document.createElement("div");d.classList.add("mat-ripple-element"),d.style.left=`${s-a}px`,d.style.top=`${l-a}px`,d.style.height=`${a*2}px`,d.style.width=`${a*2}px`,i.color!=null&&(d.style.backgroundColor=i.color),d.style.transitionDuration=`${c}ms`,this._containerElement.appendChild(d);let m=window.getComputedStyle(d),f=m.transitionProperty,b=m.transitionDuration,v=f==="none"||b==="0s"||b==="0s, 0s"||r.width===0&&r.height===0,w=new Y0(this,d,i,v);d.style.transform="scale3d(1, 1, 1)",w.state=vo.FADING_IN,i.persistent||(this._mostRecentTransientRipple=w);let x=null;return!v&&(c||o.exitDuration)&&this._ngZone.runOutsideAngular(()=>{let D=()=>{x&&(x.fallbackTimer=null),clearTimeout(W),this._finishRippleTransition(w)},P=()=>this._destroyRipple(w),W=setTimeout(P,c+100);d.addEventListener("transitionend",D),d.addEventListener("transitioncancel",P),x={onTransitionEnd:D,onTransitionCancel:P,fallbackTimer:W}}),this._activeRipples.set(w,x),(v||!c)&&this._finishRippleTransition(w),w}fadeOutRipple(n){if(n.state===vo.FADING_OUT||n.state===vo.HIDDEN)return;let e=n.element,i=M(M({},ih),n.config.animation);e.style.transitionDuration=`${i.exitDuration}ms`,e.style.opacity="0",n.state=vo.FADING_OUT,(n._animationForciblyDisabledThroughCss||!i.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=Pr(n);!this._platform.isBrowser||!e||e===this._triggerElement||(this._removeTriggerEvents(),this._triggerElement=e,GL.forEach(i=>{t._eventManager.addHandler(this._ngZone,i,e,this)}))}handleEvent(n){n.type==="mousedown"?this._onMousedown(n):n.type==="touchstart"?this._onTouchStart(n):this._onPointerUp(),this._pointerUpEventsRegistered||(this._ngZone.runOutsideAngular(()=>{qL.forEach(e=>{this._triggerElement.addEventListener(e,this,WL)})}),this._pointerUpEventsRegistered=!0)}_finishRippleTransition(n){n.state===vo.FADING_IN?this._startFadeOutTransition(n):n.state===vo.FADING_OUT&&this._destroyRipple(n)}_startFadeOutTransition(n){let e=n===this._mostRecentTransientRipple,{persistent:i}=n.config;n.state=vo.VISIBLE,!i&&(!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=vo.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=Wd(n),i=this._lastTouchStartEvent&&Date.now(){let e=n.state===vo.VISIBLE||n.config.terminateOnPointerUp&&n.state===vo.FADING_IN;!n.config.persistent&&e&&n.fadeOut()}))}_getActiveRipples(){return Array.from(this._activeRipples.keys())}_removeTriggerEvents(){let n=this._triggerElement;n&&(GL.forEach(e=>t._eventManager.removeHandler(e,n,this)),this._pointerUpEventsRegistered&&(qL.forEach(e=>n.removeEventListener(e,this,WL)),this._pointerUpEventsRegistered=!1))}};function hZ(t,n,e){let i=Math.max(Math.abs(t-e.left),Math.abs(t-e.right)),r=Math.max(Math.abs(n-e.top),Math.abs(n-e.bottom));return Math.sqrt(i*i+r*r)}var Cs=new T("mat-ripple-global-options"),Vn=(()=>{class t{_elementRef=u(q);_animationsDisabled=Ye();color;unbounded;centered;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=u(ae),i=u(qe),r=u(Cs,{optional:!0}),o=u(de);this._globalOptions=r||{},this._rippleRenderer=new lc(this,e,this._elementRef,i,o)}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:M(M(M({},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,i=0,r){return typeof e=="number"?this._rippleRenderer.fadeInRipple(e,i,M(M({},this.rippleConfig),r)):this._rippleRenderer.fadeInRipple(0,0,M(M({},this.rippleConfig),e))}static \u0275fac=function(i){return new(i||t)};static \u0275dir=F({type:t,selectors:[["","mat-ripple",""],["","matRipple",""]],hostAttrs:[1,"mat-ripple"],hostVars:2,hostBindings:function(i,r){i&2&&G("mat-ripple-unbounded",r.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 yo=(()=>{class t{static \u0275fac=function(i){return new(i||t)};static \u0275mod=ee({type:t});static \u0275inj=J({imports:[we,we]})}return t})();var Qd=(()=>{class t{_animationsDisabled=Ye();state="unchecked";disabled=!1;appearance="full";constructor(){}static \u0275fac=function(i){return new(i||t)};static \u0275cmp=E({type:t,selectors:[["mat-pseudo-checkbox"]],hostAttrs:[1,"mat-pseudo-checkbox"],hostVars:12,hostBindings:function(i,r){i&2&&G("mat-pseudo-checkbox-indeterminate",r.state==="indeterminate")("mat-pseudo-checkbox-checked",r.state==="checked")("mat-pseudo-checkbox-disabled",r.disabled)("mat-pseudo-checkbox-minimal",r.appearance==="minimal")("mat-pseudo-checkbox-full",r.appearance==="full")("_mat-animation-noopable",r._animationsDisabled)},inputs:{state:"state",disabled:"disabled",appearance:"appearance"},decls:0,vars:0,template:function(i,r){},styles:[`.mat-pseudo-checkbox{border-radius:2px;cursor:pointer;display:inline-block;vertical-align:middle;box-sizing:border-box;position:relative;flex-shrink:0;transition:border-color 90ms cubic-bezier(0, 0, 0.2, 0.1),background-color 90ms cubic-bezier(0, 0, 0.2, 0.1)}.mat-pseudo-checkbox::after{position:absolute;opacity:0;content:"";border-bottom:2px solid currentColor;transition:opacity 90ms cubic-bezier(0, 0, 0.2, 0.1)}.mat-pseudo-checkbox._mat-animation-noopable{transition:none !important;animation:none !important}.mat-pseudo-checkbox._mat-animation-noopable::after{transition:none}.mat-pseudo-checkbox-disabled{cursor:default}.mat-pseudo-checkbox-indeterminate::after{left:1px;opacity:1;border-radius:2px}.mat-pseudo-checkbox-checked::after{left:1px;border-left:2px solid currentColor;transform:rotate(-45deg);opacity:1;box-sizing:content-box}.mat-pseudo-checkbox-minimal.mat-pseudo-checkbox-checked::after,.mat-pseudo-checkbox-minimal.mat-pseudo-checkbox-indeterminate::after{color:var(--mat-pseudo-checkbox-minimal-selected-checkmark-color, var(--mat-sys-primary))}.mat-pseudo-checkbox-minimal.mat-pseudo-checkbox-checked.mat-pseudo-checkbox-disabled::after,.mat-pseudo-checkbox-minimal.mat-pseudo-checkbox-indeterminate.mat-pseudo-checkbox-disabled::after{color:var(--mat-pseudo-checkbox-minimal-disabled-selected-checkmark-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent))}.mat-pseudo-checkbox-full{border-color:var(--mat-pseudo-checkbox-full-unselected-icon-color, var(--mat-sys-on-surface-variant));border-width:2px;border-style:solid}.mat-pseudo-checkbox-full.mat-pseudo-checkbox-disabled{border-color:var(--mat-pseudo-checkbox-full-disabled-unselected-icon-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent))}.mat-pseudo-checkbox-full.mat-pseudo-checkbox-checked,.mat-pseudo-checkbox-full.mat-pseudo-checkbox-indeterminate{background-color:var(--mat-pseudo-checkbox-full-selected-icon-color, var(--mat-sys-primary));border-color:rgba(0,0,0,0)}.mat-pseudo-checkbox-full.mat-pseudo-checkbox-checked::after,.mat-pseudo-checkbox-full.mat-pseudo-checkbox-indeterminate::after{color:var(--mat-pseudo-checkbox-full-selected-checkmark-color, var(--mat-sys-on-primary))}.mat-pseudo-checkbox-full.mat-pseudo-checkbox-checked.mat-pseudo-checkbox-disabled,.mat-pseudo-checkbox-full.mat-pseudo-checkbox-indeterminate.mat-pseudo-checkbox-disabled{background-color:var(--mat-pseudo-checkbox-full-disabled-selected-icon-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent))}.mat-pseudo-checkbox-full.mat-pseudo-checkbox-checked.mat-pseudo-checkbox-disabled::after,.mat-pseudo-checkbox-full.mat-pseudo-checkbox-indeterminate.mat-pseudo-checkbox-disabled::after{color:var(--mat-pseudo-checkbox-full-disabled-selected-checkmark-color, var(--mat-sys-surface))}.mat-pseudo-checkbox{width:18px;height:18px}.mat-pseudo-checkbox-minimal.mat-pseudo-checkbox-checked::after{width:14px;height:6px;transform-origin:center;top:-4.2426406871px;left:0;bottom:0;right:0;margin:auto}.mat-pseudo-checkbox-minimal.mat-pseudo-checkbox-indeterminate::after{top:8px;width:16px}.mat-pseudo-checkbox-full.mat-pseudo-checkbox-checked::after{width:10px;height:4px;transform-origin:center;top:-2.8284271247px;left:0;bottom:0;right:0;margin:auto}.mat-pseudo-checkbox-full.mat-pseudo-checkbox-indeterminate::after{top:6px;width:12px} -`],encapsulation:2,changeDetection:0})}return t})();var Q0=(()=>{class t{static \u0275fac=function(i){return new(i||t)};static \u0275mod=ee({type:t});static \u0275inj=J({imports:[we]})}return t})();var pZ=["*",[["mat-option"],["ng-container"]]],fZ=["*","mat-option, ng-container"],gZ=["text"],_Z=[[["mat-icon"]],"*"],bZ=["mat-icon","*"];function vZ(t,n){if(t&1&&k(0,"mat-pseudo-checkbox",1),t&2){let e=C();y("disabled",e.disabled)("state",e.selected?"checked":"unchecked")}}function yZ(t,n){if(t&1&&k(0,"mat-pseudo-checkbox",3),t&2){let e=C();y("disabled",e.disabled)}}function xZ(t,n){if(t&1&&(h(0,"span",4),_(1),p()),t&2){let e=C();g(),ve("(",e.group.label,")")}}var Kd=new T("MAT_OPTION_PARENT_COMPONENT"),Zd=new T("MatOptgroup"),kk=(()=>{class t{label;disabled=!1;_labelId=u(Ze).getId("mat-optgroup-label-");_inert;constructor(){let e=u(Kd,{optional:!0});this._inert=e?.inertGroups??!1}static \u0275fac=function(i){return new(i||t)};static \u0275cmp=E({type:t,selectors:[["mat-optgroup"]],hostAttrs:[1,"mat-mdc-optgroup"],hostVars:3,hostBindings:function(i,r){i&2&&X("role",r._inert?null:"group")("aria-disabled",r._inert?null:r.disabled.toString())("aria-labelledby",r._inert?null:r._labelId)},inputs:{label:"label",disabled:[2,"disabled","disabled",V]},exportAs:["matOptgroup"],features:[Ce([{provide:Zd,useExisting:t}])],ngContentSelectors:fZ,decls:5,vars:4,consts:[["role","presentation",1,"mat-mdc-optgroup-label",3,"id"],[1,"mdc-list-item__primary-text"]],template:function(i,r){i&1&&(Me(pZ),ft(0,"span",0)(1,"span",1),_(2),oe(3),vt()(),oe(4,1)),i&2&&(G("mdc-list-item--disabled",r.disabled),si("id",r._labelId),g(2),ve("",r.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));font-size:var(--mat-optgroup-label-text-size, var(--mat-sys-title-small-size));letter-spacing:var(--mat-optgroup-label-text-tracking, var(--mat-sys-title-small-tracking));font-weight:var(--mat-optgroup-label-text-weight, var(--mat-sys-title-small-weight))}.mat-mdc-optgroup-label{display:flex;position:relative;align-items:center;justify-content:flex-start;overflow:hidden;min-height:48px;padding:0 16px;outline:none}.mat-mdc-optgroup-label.mdc-list-item--disabled{opacity:.38}.mat-mdc-optgroup-label .mdc-list-item__primary-text{font-size:inherit;font-weight:inherit;letter-spacing:inherit;line-height:inherit;font-family:inherit;text-decoration:inherit;text-transform:inherit;white-space:normal;color:inherit} -`],encapsulation:2,changeDetection:0})}return t})(),nh=class{source;isUserInput;constructor(n,e=!1){this.source=n,this.isUserInput=e}},xn=(()=>{class t{_element=u(q);_changeDetectorRef=u(ye);_parent=u(Kd,{optional:!0});group=u(Zd,{optional:!0});_signalDisableRipple=!1;_selected=!1;_active=!1;_mostRecentViewValue="";get multiple(){return this._parent&&this._parent.multiple}get selected(){return this._selected}value;id=u(Ze).getId("mat-option-");get disabled(){return this.group&&this.group.disabled||this._disabled()}set disabled(e){this._disabled.set(e)}_disabled=he(!1);get disableRipple(){return this._signalDisableRipple?this._parent.disableRipple():!!this._parent?.disableRipple}get hideSingleSelectionIndicator(){return!!(this._parent&&this._parent.hideSingleSelectionIndicator)}onSelectionChange=new U;_text;_stateChanges=new z;constructor(){let e=u(ut);e.load(Di),e.load(Qr),this._signalDisableRipple=!!this._parent&&is(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,i){let r=this._getHostElement();typeof r.focus=="function"&&r.focus(i)}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)&&!Ft(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 nh(this,e))}static \u0275fac=function(i){return new(i||t)};static \u0275cmp=E({type:t,selectors:[["mat-option"]],viewQuery:function(i,r){if(i&1&&ie(gZ,7),i&2){let o;B(o=j())&&(r._text=o.first)}},hostAttrs:["role","option",1,"mat-mdc-option","mdc-list-item"],hostVars:11,hostBindings:function(i,r){i&1&&S("click",function(){return r._selectViaInteraction()})("keydown",function(a){return r._handleKeydown(a)}),i&2&&(si("id",r.id),X("aria-selected",r.selected)("aria-disabled",r.disabled.toString()),G("mdc-list-item--selected",r.selected)("mat-mdc-option-multiple",r.multiple)("mat-mdc-option-active",r.active)("mdc-list-item--disabled",r.disabled))},inputs:{value:"value",id:"id",disabled:[2,"disabled","disabled",V]},outputs:{onSelectionChange:"onSelectionChange"},exportAs:["matOption"],ngContentSelectors:bZ,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(i,r){i&1&&(Me(_Z),N(0,vZ,1,2,"mat-pseudo-checkbox",1),oe(1),h(2,"span",2,0),oe(4,1),p(),N(5,yZ,1,1,"mat-pseudo-checkbox",3),N(6,xZ,2,1,"span",4),k(7,"div",5)),i&2&&(L(r.multiple?0:-1),g(5),L(!r.multiple&&r.selected&&!r.hideSingleSelectionIndicator?5:-1),g(),L(r.group&&r.group._inert?6:-1),g(),y("matRippleTrigger",r._getHostElement())("matRippleDisabled",r.disabled||r.disableRipple))},dependencies:[Qd,Vn],styles:[`.mat-mdc-option{-webkit-user-select:none;user-select:none;-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;display:flex;position:relative;align-items:center;justify-content:flex-start;overflow:hidden;min-height:48px;padding:0 16px;cursor:pointer;-webkit-tap-highlight-color:rgba(0,0,0,0);color:var(--mat-option-label-text-color, var(--mat-sys-on-surface));font-family:var(--mat-option-label-text-font, var(--mat-sys-label-large-font));line-height:var(--mat-option-label-text-line-height, var(--mat-sys-label-large-line-height));font-size:var(--mat-option-label-text-size, var(--mat-sys-body-large-size));letter-spacing:var(--mat-option-label-text-tracking, var(--mat-sys-label-large-tracking));font-weight:var(--mat-option-label-text-weight, var(--mat-sys-body-large-weight))}.mat-mdc-option:hover:not(.mdc-list-item--disabled){background-color:var(--mat-option-hover-state-layer-color, color-mix(in srgb, var(--mat-sys-on-surface) calc(var(--mat-sys-hover-state-layer-opacity) * 100%), transparent))}.mat-mdc-option:focus.mdc-list-item,.mat-mdc-option.mat-mdc-option-active.mdc-list-item{background-color:var(--mat-option-focus-state-layer-color, color-mix(in srgb, var(--mat-sys-on-surface) calc(var(--mat-sys-focus-state-layer-opacity) * 100%), transparent));outline:0}.mat-mdc-option.mdc-list-item--selected:not(.mdc-list-item--disabled):not(.mat-mdc-option-multiple){background-color:var(--mat-option-selected-state-layer-color, var(--mat-sys-secondary-container))}.mat-mdc-option.mdc-list-item--selected:not(.mdc-list-item--disabled):not(.mat-mdc-option-multiple) .mdc-list-item__primary-text{color:var(--mat-option-selected-state-label-text-color, var(--mat-sys-on-secondary-container))}.mat-mdc-option .mat-pseudo-checkbox{--mat-pseudo-checkbox-minimal-selected-checkmark-color: var(--mat-option-selected-state-label-text-color, var(--mat-sys-on-secondary-container))}.mat-mdc-option.mdc-list-item{align-items:center;background:rgba(0,0,0,0)}.mat-mdc-option.mdc-list-item--disabled{cursor:default;pointer-events:none}.mat-mdc-option.mdc-list-item--disabled .mat-mdc-option-pseudo-checkbox,.mat-mdc-option.mdc-list-item--disabled .mdc-list-item__primary-text,.mat-mdc-option.mdc-list-item--disabled>mat-icon{opacity:.38}.mat-mdc-optgroup .mat-mdc-option:not(.mat-mdc-option-multiple){padding-left:32px}[dir=rtl] .mat-mdc-optgroup .mat-mdc-option:not(.mat-mdc-option-multiple){padding-left:16px;padding-right:32px}.mat-mdc-option .mat-icon,.mat-mdc-option .mat-pseudo-checkbox-full{margin-right:16px;flex-shrink:0}[dir=rtl] .mat-mdc-option .mat-icon,[dir=rtl] .mat-mdc-option .mat-pseudo-checkbox-full{margin-right:0;margin-left:16px}.mat-mdc-option .mat-pseudo-checkbox-minimal{margin-left:16px;flex-shrink:0}[dir=rtl] .mat-mdc-option .mat-pseudo-checkbox-minimal{margin-right:16px;margin-left:0}.mat-mdc-option .mat-mdc-option-ripple{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none}.mat-mdc-option .mdc-list-item__primary-text{white-space:normal;font-size:inherit;font-weight:inherit;letter-spacing:inherit;line-height:inherit;font-family:inherit;text-decoration:inherit;text-transform:inherit;margin-right:auto}[dir=rtl] .mat-mdc-option .mdc-list-item__primary-text{margin-right:0;margin-left:auto}@media(forced-colors: active){.mat-mdc-option.mdc-list-item--selected:not(:has(.mat-mdc-option-pseudo-checkbox))::after{content:"";position:absolute;top:50%;right:16px;transform:translateY(-50%);width:10px;height:0;border-bottom:solid 10px;border-radius:10px}[dir=rtl] .mat-mdc-option.mdc-list-item--selected:not(:has(.mat-mdc-option-pseudo-checkbox))::after{right:auto;left:16px}}.mat-mdc-option-multiple{--mat-list-list-item-selected-container-color: var(--mat-list-list-item-container-color, transparent)}.mat-mdc-option-active .mat-focus-indicator::before{content:""} -`],encapsulation:2,changeDetection:0})}return t})();function Qf(t,n,e){if(e.length){let i=n.toArray(),r=e.toArray(),o=0;for(let a=0;ae+i?Math.max(0,t-i+n):e}var rh=(()=>{class t{static \u0275fac=function(i){return new(i||t)};static \u0275mod=ee({type:t});static \u0275inj=J({imports:[yo,we,Q0,xn]})}return t})();var CZ={capture:!0},wZ=["focus","mousedown","mouseenter","touchstart"],Sk="mat-ripple-loader-uninitialized",Tk="mat-ripple-loader-class-name",YL="mat-ripple-loader-centered",K0="mat-ripple-loader-disabled",Z0=(()=>{class t{_document=u(ge);_animationsDisabled=Ye();_globalRippleOptions=u(Cs,{optional:!0});_platform=u(qe);_ngZone=u(ae);_injector=u(de);_eventCleanups;_hosts=new Map;constructor(){let e=u(cn).createRenderer(null,null);this._eventCleanups=this._ngZone.runOutsideAngular(()=>wZ.map(i=>e.listen(this._document,i,this._onInteraction,CZ)))}ngOnDestroy(){let e=this._hosts.keys();for(let i of e)this.destroyRipple(i);this._eventCleanups.forEach(i=>i())}configureRipple(e,i){e.setAttribute(Sk,this._globalRippleOptions?.namespace??""),(i.className||!e.hasAttribute(Tk))&&e.setAttribute(Tk,i.className||""),i.centered&&e.setAttribute(YL,""),i.disabled&&e.setAttribute(K0,"")}setDisabled(e,i){let r=this._hosts.get(e);r?(r.target.rippleDisabled=i,!i&&!r.hasSetUpEvents&&(r.hasSetUpEvents=!0,r.renderer.setupTriggerEvents(e))):i?e.setAttribute(K0,""):e.removeAttribute(K0)}_onInteraction=e=>{let i=Kn(e);if(i instanceof HTMLElement){let r=i.closest(`[${Sk}="${this._globalRippleOptions?.namespace??""}"]`);r&&this._createRipple(r)}};_createRipple(e){if(!this._document||this._hosts.has(e))return;e.querySelector(".mat-ripple")?.remove();let i=this._document.createElement("span");i.classList.add("mat-ripple",e.getAttribute(Tk)),e.append(i);let r=this._globalRippleOptions,o=this._animationsDisabled?0:r?.animation?.enterDuration??ih.enterDuration,a=this._animationsDisabled?0:r?.animation?.exitDuration??ih.exitDuration,s={rippleDisabled:this._animationsDisabled||r?.disabled||e.hasAttribute(K0),rippleConfig:{centered:e.hasAttribute(YL),terminateOnPointerUp:r?.terminateOnPointerUp,animation:{enterDuration:o,exitDuration:a}}},l=new lc(s,this._ngZone,i,this._platform,this._injector),c=!s.rippleDisabled;c&&l.setupTriggerEvents(e),this._hosts.set(e,{target:s,renderer:l,hasSetUpEvents:c}),e.removeAttribute(Sk)}destroyRipple(e){let i=this._hosts.get(e);i&&(i.renderer._removeTriggerEvents(),this._hosts.delete(e))}static \u0275fac=function(i){return new(i||t)};static \u0275prov=O({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();var DZ=/^\d{4}-\d{2}-\d{2}(?:T\d{2}:\d{2}:\d{2}(?:\.\d+)?(?:Z|(?:(?:\+|-)\d{2}:\d{2}))?)?$/,EZ=/^(\d?\d)[:.](\d?\d)(?:[:.](\d?\d))?\s*(AM|PM)?$/i;function Ik(t,n){let e=Array(t);for(let i=0;i{class t extends Li{useUtcForDisplay=!1;_matDateLocale=u(ys,{optional:!0});constructor(){super();let e=u(ys,{optional:!0});e!==void 0&&(this._matDateLocale=e),super.setLocale(this._matDateLocale)}getYear(e){return e.getFullYear()}getMonth(e){return e.getMonth()}getDate(e){return e.getDate()}getDayOfWeek(e){return e.getDay()}getMonthNames(e){let i=new Intl.DateTimeFormat(this.locale,{month:e,timeZone:"utc"});return Ik(12,r=>this._format(i,new Date(2017,r,1)))}getDateNames(){let e=new Intl.DateTimeFormat(this.locale,{day:"numeric",timeZone:"utc"});return Ik(31,i=>this._format(e,new Date(2017,0,i+1)))}getDayOfWeekNames(e){let i=new Intl.DateTimeFormat(this.locale,{weekday:e,timeZone:"utc"});return Ik(7,r=>this._format(i,new Date(2017,0,r+1)))}getYearName(e){let i=new Intl.DateTimeFormat(this.locale,{year:"numeric",timeZone:"utc"});return this._format(i,e)}getFirstDayOfWeek(){if(typeof Intl<"u"&&Intl.Locale){let e=new Intl.Locale(this.locale),i=(e.getWeekInfo?.()||e.weekInfo)?.firstDay??0;return i===7?0:i}return 0}getNumDaysInMonth(e){return this.getDate(this._createDateWithOverflow(this.getYear(e),this.getMonth(e)+1,0))}clone(e){return new Date(e.getTime())}createDate(e,i,r){let o=this._createDateWithOverflow(e,i,r);return o.getMonth()!=i,o}today(){return new Date}parse(e,i){return typeof e=="number"?new Date(e):e?new Date(Date.parse(e)):null}format(e,i){if(!this.isValid(e))throw Error("NativeDateAdapter: Cannot format invalid date.");let r=new Intl.DateTimeFormat(this.locale,De(M({},i),{timeZone:"utc"}));return this._format(r,e)}addCalendarYears(e,i){return this.addCalendarMonths(e,i*12)}addCalendarMonths(e,i){let r=this._createDateWithOverflow(this.getYear(e),this.getMonth(e)+i,this.getDate(e));return this.getMonth(r)!=((this.getMonth(e)+i)%12+12)%12&&(r=this._createDateWithOverflow(this.getYear(r),this.getMonth(r),0)),r}addCalendarDays(e,i){return this._createDateWithOverflow(this.getYear(e),this.getMonth(e),this.getDate(e)+i)}toIso8601(e){return[e.getUTCFullYear(),this._2digit(e.getUTCMonth()+1),this._2digit(e.getUTCDate())].join("-")}deserialize(e){if(typeof e=="string"){if(!e)return null;if(DZ.test(e)){let i=new Date(e);if(this.isValid(i))return i}}return super.deserialize(e)}isDateInstance(e){return e instanceof Date}isValid(e){return!isNaN(e.getTime())}invalid(){return new Date(NaN)}setTime(e,i,r,o){let a=this.clone(e);return a.setHours(i,r,o,0),a}getHours(e){return e.getHours()}getMinutes(e){return e.getMinutes()}getSeconds(e){return e.getSeconds()}parseTime(e,i){if(typeof e!="string")return e instanceof Date?new Date(e.getTime()):null;let r=e.trim();if(r.length===0)return null;let o=this._parseTimeString(r);if(o===null){let a=r.replace(/[^0-9:(AM|PM)]/gi,"").trim();a.length>0&&(o=this._parseTimeString(a))}return o||this.invalid()}addSeconds(e,i){return new Date(e.getTime()+i*1e3)}_createDateWithOverflow(e,i,r){let o=new Date;return o.setFullYear(e,i,r),o.setHours(0,0,0,0),o}_2digit(e){return("00"+e).slice(-2)}_format(e,i){let r=new Date;return r.setUTCFullYear(i.getFullYear(),i.getMonth(),i.getDate()),r.setUTCHours(i.getHours(),i.getMinutes(),i.getSeconds(),i.getMilliseconds()),e.format(r)}_parseTimeString(e){let i=e.toUpperCase().match(EZ);if(i){let r=parseInt(i[1]),o=parseInt(i[2]),a=i[3]==null?void 0:parseInt(i[3]),s=i[4];if(r===12?r=s==="AM"?0:r:s==="PM"&&(r+=12),Ak(r,0,23)&&Ak(o,0,59)&&(a==null||Ak(a,0,59)))return this.setTime(this.today(),r,o,a||0)}return null}static \u0275fac=function(i){return new(i||t)};static \u0275prov=O({token:t,factory:t.\u0275fac})}return t})();function Ak(t,n,e){return!isNaN(t)&&t>=n&&t<=e}var MZ={parse:{dateInput:null,timeInput:null},display:{dateInput:{year:"numeric",month:"numeric",day:"numeric"},timeInput:{hour:"numeric",minute:"numeric"},monthYearLabel:{year:"numeric",month:"short"},dateA11yLabel:{year:"numeric",month:"long",day:"numeric"},monthYearA11yLabel:{year:"numeric",month:"long"},timeOptionLabel:{hour:"numeric",minute:"numeric"}}};var KL=(()=>{class t{static \u0275fac=function(i){return new(i||t)};static \u0275mod=ee({type:t});static \u0275inj=J({providers:[kZ()]})}return t})();function kZ(t=MZ){return[{provide:Li,useClass:QL},{provide:xs,useValue:t}]}var SZ=Math.pow(10,8)*24*60*60*1e3,Pje=-SZ,X0=6048e5,XL=864e5,Xd=6e4,Jd=36e5,JL=1e3;var TZ=3600;var eV=TZ*24,Fje=eV*7,IZ=eV*365.2425,AZ=IZ/12,Nje=AZ*3,Ok=Symbol.for("constructDateFrom");function rt(t,n){return typeof t=="function"?t(n):t&&typeof t=="object"&&Ok in t?t[Ok](n):t instanceof Date?new t.constructor(n):new Date(n)}function Ie(t,n){return rt(n||t,t)}function oh(t,n,e){let i=Ie(t,e?.in);return isNaN(n)?rt(e?.in||t,NaN):(n&&i.setDate(i.getDate()+n),i)}function ah(t,n,e){let i=Ie(t,e?.in);if(isNaN(n))return rt(e?.in||t,NaN);if(!n)return i;let r=i.getDate(),o=rt(e?.in||t,i.getTime());o.setMonth(i.getMonth()+n+1,0);let a=o.getDate();return r>=a?o:(i.setFullYear(o.getFullYear(),o.getMonth(),r),i)}function J0(t,n,e){return rt(e?.in||t,+Ie(t)+n)}function tV(t,n,e){return J0(t,n*Jd,e)}var OZ={};function Yo(){return OZ}function Zn(t,n){let e=Yo(),i=n?.weekStartsOn??n?.locale?.options?.weekStartsOn??e.weekStartsOn??e.locale?.options?.weekStartsOn??0,r=Ie(t,n?.in),o=r.getDay(),a=(o=o.getTime()?i+1:e.getTime()>=s.getTime()?i:i-1}function eu(t){let n=Ie(t),e=new Date(Date.UTC(n.getFullYear(),n.getMonth(),n.getDate(),n.getHours(),n.getMinutes(),n.getSeconds(),n.getMilliseconds()));return e.setUTCFullYear(n.getFullYear()),+t-+e}function ty(t,...n){let e=rt.bind(null,t||n.find(i=>typeof i=="object"));return n.map(e)}function Rk(t,n){let e=Ie(t,n?.in);return e.setHours(0,0,0,0),e}function iV(t,n,e){let[i,r]=ty(e?.in,t,n),o=Rk(i),a=Rk(r),s=+o-eu(o),l=+a-eu(a);return Math.round((s-l)/XL)}function nV(t,n){let e=ey(t,n),i=rt(n?.in||t,0);return i.setFullYear(e,0,4),i.setHours(0,0,0,0),Oa(i)}function rV(t,n,e){let i=Ie(t,e?.in);return i.setTime(i.getTime()+n*Xd),i}function oV(t,n,e){return J0(t,n*1e3,e)}function aV(t,n,e){return ah(t,n*12,e)}function iy(t){return t instanceof Date||typeof t=="object"&&Object.prototype.toString.call(t)==="[object Date]"}function sh(t){return!(!iy(t)&&typeof t!="number"||isNaN(+Ie(t)))}function sV(t,n){let e=Ie(t,n?.in);return e.setDate(1),e.setHours(0,0,0,0),e}function lV(t,n){let e=Ie(t,n?.in);return e.setFullYear(e.getFullYear(),0,1),e.setHours(0,0,0,0),e}var RZ={lessThanXSeconds:{one:"less than a second",other:"less than {{count}} seconds"},xSeconds:{one:"1 second",other:"{{count}} seconds"},halfAMinute:"half a minute",lessThanXMinutes:{one:"less than a minute",other:"less than {{count}} minutes"},xMinutes:{one:"1 minute",other:"{{count}} minutes"},aboutXHours:{one:"about 1 hour",other:"about {{count}} hours"},xHours:{one:"1 hour",other:"{{count}} hours"},xDays:{one:"1 day",other:"{{count}} days"},aboutXWeeks:{one:"about 1 week",other:"about {{count}} weeks"},xWeeks:{one:"1 week",other:"{{count}} weeks"},aboutXMonths:{one:"about 1 month",other:"about {{count}} months"},xMonths:{one:"1 month",other:"{{count}} months"},aboutXYears:{one:"about 1 year",other:"about {{count}} years"},xYears:{one:"1 year",other:"{{count}} years"},overXYears:{one:"over 1 year",other:"over {{count}} years"},almostXYears:{one:"almost 1 year",other:"almost {{count}} years"}},cV=(t,n,e)=>{let i,r=RZ[t];return typeof r=="string"?i=r:n===1?i=r.one:i=r.other.replace("{{count}}",n.toString()),e?.addSuffix?e.comparison&&e.comparison>0?"in "+i:i+" ago":i};function Qo(t){return(n={})=>{let e=n.width?String(n.width):t.defaultWidth;return t.formats[e]||t.formats[t.defaultWidth]}}var PZ={full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},FZ={full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},NZ={full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},dV={date:Qo({formats:PZ,defaultWidth:"full"}),time:Qo({formats:FZ,defaultWidth:"full"}),dateTime:Qo({formats:NZ,defaultWidth:"full"})};var LZ={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"},uV=(t,n,e,i)=>LZ[t];function Bn(t){return(n,e)=>{let i=e?.context?String(e.context):"standalone",r;if(i==="formatting"&&t.formattingValues){let a=t.defaultFormattingWidth||t.defaultWidth,s=e?.width?String(e.width):a;r=t.formattingValues[s]||t.formattingValues[a]}else{let a=t.defaultWidth,s=e?.width?String(e.width):t.defaultWidth;r=t.values[s]||t.values[a]}let o=t.argumentCallback?t.argumentCallback(n):n;return r[o]}}var VZ={narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},BZ={narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},jZ={narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],wide:["January","February","March","April","May","June","July","August","September","October","November","December"]},HZ={narrow:["S","M","T","W","T","F","S"],short:["Su","Mo","Tu","We","Th","Fr","Sa"],abbreviated:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],wide:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},zZ={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"}},UZ={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"}},$Z=(t,n)=>{let e=Number(t),i=e%100;if(i>20||i<10)switch(i%10){case 1:return e+"st";case 2:return e+"nd";case 3:return e+"rd"}return e+"th"},mV={ordinalNumber:$Z,era:Bn({values:VZ,defaultWidth:"wide"}),quarter:Bn({values:BZ,defaultWidth:"wide",argumentCallback:t=>t-1}),month:Bn({values:jZ,defaultWidth:"wide"}),day:Bn({values:HZ,defaultWidth:"wide"}),dayPeriod:Bn({values:zZ,defaultWidth:"wide",formattingValues:UZ,defaultFormattingWidth:"wide"})};function jn(t){return(n,e={})=>{let i=e.width,r=i&&t.matchPatterns[i]||t.matchPatterns[t.defaultMatchWidth],o=n.match(r);if(!o)return null;let a=o[0],s=i&&t.parsePatterns[i]||t.parsePatterns[t.defaultParseWidth],l=Array.isArray(s)?GZ(s,m=>m.test(a)):WZ(s,m=>m.test(a)),c;c=t.valueCallback?t.valueCallback(l):l,c=e.valueCallback?e.valueCallback(c):c;let d=n.slice(a.length);return{value:c,rest:d}}}function WZ(t,n){for(let e in t)if(Object.prototype.hasOwnProperty.call(t,e)&&n(t[e]))return e}function GZ(t,n){for(let e=0;e{let i=n.match(t.matchPattern);if(!i)return null;let r=i[0],o=n.match(t.parsePattern);if(!o)return null;let a=t.valueCallback?t.valueCallback(o[0]):o[0];a=e.valueCallback?e.valueCallback(a):a;let s=n.slice(r.length);return{value:a,rest:s}}}var qZ=/^(\d+)(th|st|nd|rd)?/i,YZ=/\d+/i,QZ={narrow:/^(b|a)/i,abbreviated:/^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,wide:/^(before christ|before common era|anno domini|common era)/i},KZ={any:[/^b/i,/^(a|c)/i]},ZZ={narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},XZ={any:[/1/i,/2/i,/3/i,/4/i]},JZ={narrow:/^[jfmasond]/i,abbreviated:/^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,wide:/^(january|february|march|april|may|june|july|august|september|october|november|december)/i},eX={narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ap/i,/^may/i,/^jun/i,/^jul/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},tX={narrow:/^[smtwf]/i,short:/^(su|mo|tu|we|th|fr|sa)/i,abbreviated:/^(sun|mon|tue|wed|thu|fri|sat)/i,wide:/^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i},iX={narrow:[/^s/i,/^m/i,/^t/i,/^w/i,/^t/i,/^f/i,/^s/i],any:[/^su/i,/^m/i,/^tu/i,/^w/i,/^th/i,/^f/i,/^sa/i]},nX={narrow:/^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,any:/^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i},rX={any:{am:/^a/i,pm:/^p/i,midnight:/^mi/i,noon:/^no/i,morning:/morning/i,afternoon:/afternoon/i,evening:/evening/i,night:/night/i}},hV={ordinalNumber:lh({matchPattern:qZ,parsePattern:YZ,valueCallback:t=>parseInt(t,10)}),era:jn({matchPatterns:QZ,defaultMatchWidth:"wide",parsePatterns:KZ,defaultParseWidth:"any"}),quarter:jn({matchPatterns:ZZ,defaultMatchWidth:"wide",parsePatterns:XZ,defaultParseWidth:"any",valueCallback:t=>t+1}),month:jn({matchPatterns:JZ,defaultMatchWidth:"wide",parsePatterns:eX,defaultParseWidth:"any"}),day:jn({matchPatterns:tX,defaultMatchWidth:"wide",parsePatterns:iX,defaultParseWidth:"any"}),dayPeriod:jn({matchPatterns:nX,defaultMatchWidth:"any",parsePatterns:rX,defaultParseWidth:"any"})};var tu={code:"en-US",formatDistance:cV,formatLong:dV,formatRelative:uV,localize:mV,match:hV,options:{weekStartsOn:0,firstWeekContainsDate:1}};function pV(t,n){let e=Ie(t,n?.in);return iV(e,lV(e))+1}function ny(t,n){let e=Ie(t,n?.in),i=+Oa(e)-+nV(e);return Math.round(i/X0)+1}function ch(t,n){let e=Ie(t,n?.in),i=e.getFullYear(),r=Yo(),o=n?.firstWeekContainsDate??n?.locale?.options?.firstWeekContainsDate??r.firstWeekContainsDate??r.locale?.options?.firstWeekContainsDate??1,a=rt(n?.in||t,0);a.setFullYear(i+1,0,o),a.setHours(0,0,0,0);let s=Zn(a,n),l=rt(n?.in||t,0);l.setFullYear(i,0,o),l.setHours(0,0,0,0);let c=Zn(l,n);return+e>=+s?i+1:+e>=+c?i:i-1}function fV(t,n){let e=Yo(),i=n?.firstWeekContainsDate??n?.locale?.options?.firstWeekContainsDate??e.firstWeekContainsDate??e.locale?.options?.firstWeekContainsDate??1,r=ch(t,n),o=rt(n?.in||t,0);return o.setFullYear(r,0,i),o.setHours(0,0,0,0),Zn(o,n)}function dh(t,n){let e=Ie(t,n?.in),i=+Zn(e,n)-+fV(e,n);return Math.round(i/X0)+1}function wt(t,n){let e=t<0?"-":"",i=Math.abs(t).toString().padStart(n,"0");return e+i}var ul={y(t,n){let e=t.getFullYear(),i=e>0?e:1-e;return wt(n==="yy"?i%100:i,n.length)},M(t,n){let e=t.getMonth();return n==="M"?String(e+1):wt(e+1,2)},d(t,n){return wt(t.getDate(),n.length)},a(t,n){let e=t.getHours()/12>=1?"pm":"am";switch(n){case"a":case"aa":return e.toUpperCase();case"aaa":return e;case"aaaaa":return e[0];case"aaaa":default:return e==="am"?"a.m.":"p.m."}},h(t,n){return wt(t.getHours()%12||12,n.length)},H(t,n){return wt(t.getHours(),n.length)},m(t,n){return wt(t.getMinutes(),n.length)},s(t,n){return wt(t.getSeconds(),n.length)},S(t,n){let e=n.length,i=t.getMilliseconds(),r=Math.trunc(i*Math.pow(10,e-3));return wt(r,n.length)}};var uh={am:"am",pm:"pm",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},Pk={G:function(t,n,e){let i=t.getFullYear()>0?1:0;switch(n){case"G":case"GG":case"GGG":return e.era(i,{width:"abbreviated"});case"GGGGG":return e.era(i,{width:"narrow"});case"GGGG":default:return e.era(i,{width:"wide"})}},y:function(t,n,e){if(n==="yo"){let i=t.getFullYear(),r=i>0?i:1-i;return e.ordinalNumber(r,{unit:"year"})}return ul.y(t,n)},Y:function(t,n,e,i){let r=ch(t,i),o=r>0?r:1-r;if(n==="YY"){let a=o%100;return wt(a,2)}return n==="Yo"?e.ordinalNumber(o,{unit:"year"}):wt(o,n.length)},R:function(t,n){let e=ey(t);return wt(e,n.length)},u:function(t,n){let e=t.getFullYear();return wt(e,n.length)},Q:function(t,n,e){let i=Math.ceil((t.getMonth()+1)/3);switch(n){case"Q":return String(i);case"QQ":return wt(i,2);case"Qo":return e.ordinalNumber(i,{unit:"quarter"});case"QQQ":return e.quarter(i,{width:"abbreviated",context:"formatting"});case"QQQQQ":return e.quarter(i,{width:"narrow",context:"formatting"});case"QQQQ":default:return e.quarter(i,{width:"wide",context:"formatting"})}},q:function(t,n,e){let i=Math.ceil((t.getMonth()+1)/3);switch(n){case"q":return String(i);case"qq":return wt(i,2);case"qo":return e.ordinalNumber(i,{unit:"quarter"});case"qqq":return e.quarter(i,{width:"abbreviated",context:"standalone"});case"qqqqq":return e.quarter(i,{width:"narrow",context:"standalone"});case"qqqq":default:return e.quarter(i,{width:"wide",context:"standalone"})}},M:function(t,n,e){let i=t.getMonth();switch(n){case"M":case"MM":return ul.M(t,n);case"Mo":return e.ordinalNumber(i+1,{unit:"month"});case"MMM":return e.month(i,{width:"abbreviated",context:"formatting"});case"MMMMM":return e.month(i,{width:"narrow",context:"formatting"});case"MMMM":default:return e.month(i,{width:"wide",context:"formatting"})}},L:function(t,n,e){let i=t.getMonth();switch(n){case"L":return String(i+1);case"LL":return wt(i+1,2);case"Lo":return e.ordinalNumber(i+1,{unit:"month"});case"LLL":return e.month(i,{width:"abbreviated",context:"standalone"});case"LLLLL":return e.month(i,{width:"narrow",context:"standalone"});case"LLLL":default:return e.month(i,{width:"wide",context:"standalone"})}},w:function(t,n,e,i){let r=dh(t,i);return n==="wo"?e.ordinalNumber(r,{unit:"week"}):wt(r,n.length)},I:function(t,n,e){let i=ny(t);return n==="Io"?e.ordinalNumber(i,{unit:"week"}):wt(i,n.length)},d:function(t,n,e){return n==="do"?e.ordinalNumber(t.getDate(),{unit:"date"}):ul.d(t,n)},D:function(t,n,e){let i=pV(t);return n==="Do"?e.ordinalNumber(i,{unit:"dayOfYear"}):wt(i,n.length)},E:function(t,n,e){let i=t.getDay();switch(n){case"E":case"EE":case"EEE":return e.day(i,{width:"abbreviated",context:"formatting"});case"EEEEE":return e.day(i,{width:"narrow",context:"formatting"});case"EEEEEE":return e.day(i,{width:"short",context:"formatting"});case"EEEE":default:return e.day(i,{width:"wide",context:"formatting"})}},e:function(t,n,e,i){let r=t.getDay(),o=(r-i.weekStartsOn+8)%7||7;switch(n){case"e":return String(o);case"ee":return wt(o,2);case"eo":return e.ordinalNumber(o,{unit:"day"});case"eee":return e.day(r,{width:"abbreviated",context:"formatting"});case"eeeee":return e.day(r,{width:"narrow",context:"formatting"});case"eeeeee":return e.day(r,{width:"short",context:"formatting"});case"eeee":default:return e.day(r,{width:"wide",context:"formatting"})}},c:function(t,n,e,i){let r=t.getDay(),o=(r-i.weekStartsOn+8)%7||7;switch(n){case"c":return String(o);case"cc":return wt(o,n.length);case"co":return e.ordinalNumber(o,{unit:"day"});case"ccc":return e.day(r,{width:"abbreviated",context:"standalone"});case"ccccc":return e.day(r,{width:"narrow",context:"standalone"});case"cccccc":return e.day(r,{width:"short",context:"standalone"});case"cccc":default:return e.day(r,{width:"wide",context:"standalone"})}},i:function(t,n,e){let i=t.getDay(),r=i===0?7:i;switch(n){case"i":return String(r);case"ii":return wt(r,n.length);case"io":return e.ordinalNumber(r,{unit:"day"});case"iii":return e.day(i,{width:"abbreviated",context:"formatting"});case"iiiii":return e.day(i,{width:"narrow",context:"formatting"});case"iiiiii":return e.day(i,{width:"short",context:"formatting"});case"iiii":default:return e.day(i,{width:"wide",context:"formatting"})}},a:function(t,n,e){let r=t.getHours()/12>=1?"pm":"am";switch(n){case"a":case"aa":return e.dayPeriod(r,{width:"abbreviated",context:"formatting"});case"aaa":return e.dayPeriod(r,{width:"abbreviated",context:"formatting"}).toLowerCase();case"aaaaa":return e.dayPeriod(r,{width:"narrow",context:"formatting"});case"aaaa":default:return e.dayPeriod(r,{width:"wide",context:"formatting"})}},b:function(t,n,e){let i=t.getHours(),r;switch(i===12?r=uh.noon:i===0?r=uh.midnight:r=i/12>=1?"pm":"am",n){case"b":case"bb":return e.dayPeriod(r,{width:"abbreviated",context:"formatting"});case"bbb":return e.dayPeriod(r,{width:"abbreviated",context:"formatting"}).toLowerCase();case"bbbbb":return e.dayPeriod(r,{width:"narrow",context:"formatting"});case"bbbb":default:return e.dayPeriod(r,{width:"wide",context:"formatting"})}},B:function(t,n,e){let i=t.getHours(),r;switch(i>=17?r=uh.evening:i>=12?r=uh.afternoon:i>=4?r=uh.morning:r=uh.night,n){case"B":case"BB":case"BBB":return e.dayPeriod(r,{width:"abbreviated",context:"formatting"});case"BBBBB":return e.dayPeriod(r,{width:"narrow",context:"formatting"});case"BBBB":default:return e.dayPeriod(r,{width:"wide",context:"formatting"})}},h:function(t,n,e){if(n==="ho"){let i=t.getHours()%12;return i===0&&(i=12),e.ordinalNumber(i,{unit:"hour"})}return ul.h(t,n)},H:function(t,n,e){return n==="Ho"?e.ordinalNumber(t.getHours(),{unit:"hour"}):ul.H(t,n)},K:function(t,n,e){let i=t.getHours()%12;return n==="Ko"?e.ordinalNumber(i,{unit:"hour"}):wt(i,n.length)},k:function(t,n,e){let i=t.getHours();return i===0&&(i=24),n==="ko"?e.ordinalNumber(i,{unit:"hour"}):wt(i,n.length)},m:function(t,n,e){return n==="mo"?e.ordinalNumber(t.getMinutes(),{unit:"minute"}):ul.m(t,n)},s:function(t,n,e){return n==="so"?e.ordinalNumber(t.getSeconds(),{unit:"second"}):ul.s(t,n)},S:function(t,n){return ul.S(t,n)},X:function(t,n,e){let i=t.getTimezoneOffset();if(i===0)return"Z";switch(n){case"X":return _V(i);case"XXXX":case"XX":return iu(i);case"XXXXX":case"XXX":default:return iu(i,":")}},x:function(t,n,e){let i=t.getTimezoneOffset();switch(n){case"x":return _V(i);case"xxxx":case"xx":return iu(i);case"xxxxx":case"xxx":default:return iu(i,":")}},O:function(t,n,e){let i=t.getTimezoneOffset();switch(n){case"O":case"OO":case"OOO":return"GMT"+gV(i,":");case"OOOO":default:return"GMT"+iu(i,":")}},z:function(t,n,e){let i=t.getTimezoneOffset();switch(n){case"z":case"zz":case"zzz":return"GMT"+gV(i,":");case"zzzz":default:return"GMT"+iu(i,":")}},t:function(t,n,e){let i=Math.trunc(+t/1e3);return wt(i,n.length)},T:function(t,n,e){return wt(+t,n.length)}};function gV(t,n=""){let e=t>0?"-":"+",i=Math.abs(t),r=Math.trunc(i/60),o=i%60;return o===0?e+String(r):e+String(r)+n+wt(o,2)}function _V(t,n){return t%60===0?(t>0?"-":"+")+wt(Math.abs(t)/60,2):iu(t,n)}function iu(t,n=""){let e=t>0?"-":"+",i=Math.abs(t),r=wt(Math.trunc(i/60),2),o=wt(i%60,2);return e+r+n+o}var bV=(t,n)=>{switch(t){case"P":return n.date({width:"short"});case"PP":return n.date({width:"medium"});case"PPP":return n.date({width:"long"});case"PPPP":default:return n.date({width:"full"})}},vV=(t,n)=>{switch(t){case"p":return n.time({width:"short"});case"pp":return n.time({width:"medium"});case"ppp":return n.time({width:"long"});case"pppp":default:return n.time({width:"full"})}},oX=(t,n)=>{let e=t.match(/(P+)(p+)?/)||[],i=e[1],r=e[2];if(!r)return bV(t,n);let o;switch(i){case"P":o=n.dateTime({width:"short"});break;case"PP":o=n.dateTime({width:"medium"});break;case"PPP":o=n.dateTime({width:"long"});break;case"PPPP":default:o=n.dateTime({width:"full"});break}return o.replace("{{date}}",bV(i,n)).replace("{{time}}",vV(r,n))},Zf={p:vV,P:oX};var aX=/^D+$/,sX=/^Y+$/,lX=["D","DD","YY","YYYY"];function ry(t){return aX.test(t)}function oy(t){return sX.test(t)}function Xf(t,n,e){let i=cX(t,n,e);if(console.warn(i),lX.includes(t))throw new RangeError(i)}function cX(t,n,e){let i=t[0]==="Y"?"years":"days of the month";return`Use \`${t.toLowerCase()}\` instead of \`${t}\` (in \`${n}\`) for formatting ${i} to the input \`${e}\`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md`}var dX=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,uX=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,mX=/^'([^]*?)'?$/,hX=/''/g,pX=/[a-zA-Z]/;function yV(t,n,e){let i=Yo(),r=e?.locale??i.locale??tu,o=e?.firstWeekContainsDate??e?.locale?.options?.firstWeekContainsDate??i.firstWeekContainsDate??i.locale?.options?.firstWeekContainsDate??1,a=e?.weekStartsOn??e?.locale?.options?.weekStartsOn??i.weekStartsOn??i.locale?.options?.weekStartsOn??0,s=Ie(t,e?.in);if(!sh(s))throw new RangeError("Invalid time value");let l=n.match(uX).map(d=>{let m=d[0];if(m==="p"||m==="P"){let f=Zf[m];return f(d,r.formatLong)}return d}).join("").match(dX).map(d=>{if(d==="''")return{isToken:!1,value:"'"};let m=d[0];if(m==="'")return{isToken:!1,value:fX(d)};if(Pk[m])return{isToken:!0,value:d};if(m.match(pX))throw new RangeError("Format string contains an unescaped latin alphabet character `"+m+"`");return{isToken:!1,value:d}});r.localize.preprocessor&&(l=r.localize.preprocessor(s,l));let c={firstWeekContainsDate:o,weekStartsOn:a,locale:r};return l.map(d=>{if(!d.isToken)return d.value;let m=d.value;(!e?.useAdditionalWeekYearTokens&&oy(m)||!e?.useAdditionalDayOfYearTokens&&ry(m))&&Xf(m,n,String(t));let f=Pk[m[0]];return f(s,m,r.localize,c)}).join("")}function fX(t){let n=t.match(mX);return n?n[1].replace(hX,"'"):t}function xV(t,n){let e=Ie(t,n?.in);if(isNaN(+e))throw new RangeError("Invalid time value");let i=n?.format??"extended",r=n?.representation??"complete",o="",a="",s=i==="extended"?"-":"",l=i==="extended"?":":"";if(r!=="time"){let c=wt(e.getDate(),2),d=wt(e.getMonth()+1,2);o=`${wt(e.getFullYear(),4)}${s}${d}${s}${c}`}if(r!=="date"){let c=e.getTimezoneOffset();if(c!==0){let w=Math.abs(c),x=wt(Math.trunc(w/60),2),D=wt(w%60,2);a=`${c<0?"+":"-"}${x}:${D}`}else a="Z";let d=wt(e.getHours(),2),m=wt(e.getMinutes(),2),f=wt(e.getSeconds(),2),b=o===""?"":"T",v=[d,m,f].join(l);o=`${o}${b}${v}${a}`}return o}function CV(t,n){return Ie(t,n?.in).getDate()}function wV(t,n){return Ie(t,n?.in).getDay()}function ay(t,n){let e=Ie(t,n?.in),i=e.getFullYear(),r=e.getMonth(),o=rt(e,0);return o.setFullYear(i,r+1,0),o.setHours(0,0,0,0),o.getDate()}function DV(){return Object.assign({},Yo())}function sy(t,n){return Ie(t,n?.in).getHours()}function EV(t,n){let e=Ie(t,n?.in).getDay();return e===0?7:e}function ly(t,n){return Ie(t,n?.in).getMinutes()}function MV(t,n){return Ie(t,n?.in).getMonth()}function kV(t){return Ie(t).getSeconds()}function SV(t,n){return Ie(t,n?.in).getFullYear()}function TV(t,n){let e=gX(n)?new n(0):rt(n,0);return e.setFullYear(t.getFullYear(),t.getMonth(),t.getDate()),e.setHours(t.getHours(),t.getMinutes(),t.getSeconds(),t.getMilliseconds()),e}function gX(t){return typeof t=="function"&&t.prototype?.constructor===t}var _X=10,cy=class{subPriority=0;validate(n,e){return!0}},dy=class extends cy{constructor(n,e,i,r,o){super(),this.value=n,this.validateValue=e,this.setValue=i,this.priority=r,o&&(this.subPriority=o)}validate(n,e){return this.validateValue(n,this.value,e)}set(n,e,i){return this.setValue(n,e,this.value,i)}},uy=class extends cy{priority=_X;subPriority=-1;constructor(n,e){super(),this.context=n||(i=>rt(e,i))}set(n,e){return e.timestampIsSet?n:rt(n,TV(n,this.context))}};var Pe=class{run(n,e,i,r){let o=this.parse(n,e,i,r);return o?{setter:new dy(o.value,this.validate,this.set,this.priority,this.subPriority),rest:o.rest}:null}validate(n,e,i){return!0}};var my=class extends Pe{priority=140;parse(n,e,i){switch(e){case"G":case"GG":case"GGG":return i.era(n,{width:"abbreviated"})||i.era(n,{width:"narrow"});case"GGGGG":return i.era(n,{width:"narrow"});case"GGGG":default:return i.era(n,{width:"wide"})||i.era(n,{width:"abbreviated"})||i.era(n,{width:"narrow"})}}set(n,e,i){return e.era=i,n.setFullYear(i,0,1),n.setHours(0,0,0,0),n}incompatibleTokens=["R","u","t","T"]};var Bt={month:/^(1[0-2]|0?\d)/,date:/^(3[0-1]|[0-2]?\d)/,dayOfYear:/^(36[0-6]|3[0-5]\d|[0-2]?\d?\d)/,week:/^(5[0-3]|[0-4]?\d)/,hour23h:/^(2[0-3]|[0-1]?\d)/,hour24h:/^(2[0-4]|[0-1]?\d)/,hour11h:/^(1[0-1]|0?\d)/,hour12h:/^(1[0-2]|0?\d)/,minute:/^[0-5]?\d/,second:/^[0-5]?\d/,singleDigit:/^\d/,twoDigits:/^\d{1,2}/,threeDigits:/^\d{1,3}/,fourDigits:/^\d{1,4}/,anyDigitsSigned:/^-?\d+/,singleDigitSigned:/^-?\d/,twoDigitsSigned:/^-?\d{1,2}/,threeDigitsSigned:/^-?\d{1,3}/,fourDigitsSigned:/^-?\d{1,4}/},Ko={basicOptionalMinutes:/^([+-])(\d{2})(\d{2})?|Z/,basic:/^([+-])(\d{2})(\d{2})|Z/,basicOptionalSeconds:/^([+-])(\d{2})(\d{2})((\d{2}))?|Z/,extended:/^([+-])(\d{2}):(\d{2})|Z/,extendedOptionalSeconds:/^([+-])(\d{2}):(\d{2})(:(\d{2}))?|Z/};function ci(t,n){return t&&{value:n(t.value),rest:t.rest}}function Nt(t,n){let e=n.match(t);return e?{value:parseInt(e[0],10),rest:n.slice(e[0].length)}:null}function Zo(t,n){let e=n.match(t);if(!e)return null;if(e[0]==="Z")return{value:0,rest:n.slice(1)};let i=e[1]==="+"?1:-1,r=e[2]?parseInt(e[2],10):0,o=e[3]?parseInt(e[3],10):0,a=e[5]?parseInt(e[5],10):0;return{value:i*(r*Jd+o*Xd+a*JL),rest:n.slice(e[0].length)}}function hy(t){return Nt(Bt.anyDigitsSigned,t)}function _t(t,n){switch(t){case 1:return Nt(Bt.singleDigit,n);case 2:return Nt(Bt.twoDigits,n);case 3:return Nt(Bt.threeDigits,n);case 4:return Nt(Bt.fourDigits,n);default:return Nt(new RegExp("^\\d{1,"+t+"}"),n)}}function mh(t,n){switch(t){case 1:return Nt(Bt.singleDigitSigned,n);case 2:return Nt(Bt.twoDigitsSigned,n);case 3:return Nt(Bt.threeDigitsSigned,n);case 4:return Nt(Bt.fourDigitsSigned,n);default:return Nt(new RegExp("^-?\\d{1,"+t+"}"),n)}}function hh(t){switch(t){case"morning":return 4;case"evening":return 17;case"pm":case"noon":case"afternoon":return 12;case"am":case"midnight":case"night":default:return 0}}function py(t,n){let e=n>0,i=e?n:1-n,r;if(i<=50)r=t||100;else{let o=i+50,a=Math.trunc(o/100)*100,s=t>=o%100;r=t+a-(s?100:0)}return e?r:1-r}function fy(t){return t%400===0||t%4===0&&t%100!==0}var gy=class extends Pe{priority=130;incompatibleTokens=["Y","R","u","w","I","i","e","c","t","T"];parse(n,e,i){let r=o=>({year:o,isTwoDigitYear:e==="yy"});switch(e){case"y":return ci(_t(4,n),r);case"yo":return ci(i.ordinalNumber(n,{unit:"year"}),r);default:return ci(_t(e.length,n),r)}}validate(n,e){return e.isTwoDigitYear||e.year>0}set(n,e,i){let r=n.getFullYear();if(i.isTwoDigitYear){let a=py(i.year,r);return n.setFullYear(a,0,1),n.setHours(0,0,0,0),n}let o=!("era"in e)||e.era===1?i.year:1-i.year;return n.setFullYear(o,0,1),n.setHours(0,0,0,0),n}};var _y=class extends Pe{priority=130;parse(n,e,i){let r=o=>({year:o,isTwoDigitYear:e==="YY"});switch(e){case"Y":return ci(_t(4,n),r);case"Yo":return ci(i.ordinalNumber(n,{unit:"year"}),r);default:return ci(_t(e.length,n),r)}}validate(n,e){return e.isTwoDigitYear||e.year>0}set(n,e,i,r){let o=ch(n,r);if(i.isTwoDigitYear){let s=py(i.year,o);return n.setFullYear(s,0,r.firstWeekContainsDate),n.setHours(0,0,0,0),Zn(n,r)}let a=!("era"in e)||e.era===1?i.year:1-i.year;return n.setFullYear(a,0,r.firstWeekContainsDate),n.setHours(0,0,0,0),Zn(n,r)}incompatibleTokens=["y","R","u","Q","q","M","L","I","d","D","i","t","T"]};var by=class extends Pe{priority=130;parse(n,e){return e==="R"?mh(4,n):mh(e.length,n)}set(n,e,i){let r=rt(n,0);return r.setFullYear(i,0,4),r.setHours(0,0,0,0),Oa(r)}incompatibleTokens=["G","y","Y","u","Q","q","M","L","w","d","D","e","c","t","T"]};var vy=class extends Pe{priority=130;parse(n,e){return e==="u"?mh(4,n):mh(e.length,n)}set(n,e,i){return n.setFullYear(i,0,1),n.setHours(0,0,0,0),n}incompatibleTokens=["G","y","Y","R","w","I","i","e","c","t","T"]};var yy=class extends Pe{priority=120;parse(n,e,i){switch(e){case"Q":case"QQ":return _t(e.length,n);case"Qo":return i.ordinalNumber(n,{unit:"quarter"});case"QQQ":return i.quarter(n,{width:"abbreviated",context:"formatting"})||i.quarter(n,{width:"narrow",context:"formatting"});case"QQQQQ":return i.quarter(n,{width:"narrow",context:"formatting"});case"QQQQ":default:return i.quarter(n,{width:"wide",context:"formatting"})||i.quarter(n,{width:"abbreviated",context:"formatting"})||i.quarter(n,{width:"narrow",context:"formatting"})}}validate(n,e){return e>=1&&e<=4}set(n,e,i){return n.setMonth((i-1)*3,1),n.setHours(0,0,0,0),n}incompatibleTokens=["Y","R","q","M","L","w","I","d","D","i","e","c","t","T"]};var xy=class extends Pe{priority=120;parse(n,e,i){switch(e){case"q":case"qq":return _t(e.length,n);case"qo":return i.ordinalNumber(n,{unit:"quarter"});case"qqq":return i.quarter(n,{width:"abbreviated",context:"standalone"})||i.quarter(n,{width:"narrow",context:"standalone"});case"qqqqq":return i.quarter(n,{width:"narrow",context:"standalone"});case"qqqq":default:return i.quarter(n,{width:"wide",context:"standalone"})||i.quarter(n,{width:"abbreviated",context:"standalone"})||i.quarter(n,{width:"narrow",context:"standalone"})}}validate(n,e){return e>=1&&e<=4}set(n,e,i){return n.setMonth((i-1)*3,1),n.setHours(0,0,0,0),n}incompatibleTokens=["Y","R","Q","M","L","w","I","d","D","i","e","c","t","T"]};var Cy=class extends Pe{incompatibleTokens=["Y","R","q","Q","L","w","I","D","i","e","c","t","T"];priority=110;parse(n,e,i){let r=o=>o-1;switch(e){case"M":return ci(Nt(Bt.month,n),r);case"MM":return ci(_t(2,n),r);case"Mo":return ci(i.ordinalNumber(n,{unit:"month"}),r);case"MMM":return i.month(n,{width:"abbreviated",context:"formatting"})||i.month(n,{width:"narrow",context:"formatting"});case"MMMMM":return i.month(n,{width:"narrow",context:"formatting"});case"MMMM":default:return i.month(n,{width:"wide",context:"formatting"})||i.month(n,{width:"abbreviated",context:"formatting"})||i.month(n,{width:"narrow",context:"formatting"})}}validate(n,e){return e>=0&&e<=11}set(n,e,i){return n.setMonth(i,1),n.setHours(0,0,0,0),n}};var wy=class extends Pe{priority=110;parse(n,e,i){let r=o=>o-1;switch(e){case"L":return ci(Nt(Bt.month,n),r);case"LL":return ci(_t(2,n),r);case"Lo":return ci(i.ordinalNumber(n,{unit:"month"}),r);case"LLL":return i.month(n,{width:"abbreviated",context:"standalone"})||i.month(n,{width:"narrow",context:"standalone"});case"LLLLL":return i.month(n,{width:"narrow",context:"standalone"});case"LLLL":default:return i.month(n,{width:"wide",context:"standalone"})||i.month(n,{width:"abbreviated",context:"standalone"})||i.month(n,{width:"narrow",context:"standalone"})}}validate(n,e){return e>=0&&e<=11}set(n,e,i){return n.setMonth(i,1),n.setHours(0,0,0,0),n}incompatibleTokens=["Y","R","q","Q","M","w","I","D","i","e","c","t","T"]};function IV(t,n,e){let i=Ie(t,e?.in),r=dh(i,e)-n;return i.setDate(i.getDate()-r*7),Ie(i,e?.in)}var Dy=class extends Pe{priority=100;parse(n,e,i){switch(e){case"w":return Nt(Bt.week,n);case"wo":return i.ordinalNumber(n,{unit:"week"});default:return _t(e.length,n)}}validate(n,e){return e>=1&&e<=53}set(n,e,i,r){return Zn(IV(n,i,r),r)}incompatibleTokens=["y","R","u","q","Q","M","L","I","d","D","i","t","T"]};function AV(t,n,e){let i=Ie(t,e?.in),r=ny(i,e)-n;return i.setDate(i.getDate()-r*7),i}var Ey=class extends Pe{priority=100;parse(n,e,i){switch(e){case"I":return Nt(Bt.week,n);case"Io":return i.ordinalNumber(n,{unit:"week"});default:return _t(e.length,n)}}validate(n,e){return e>=1&&e<=53}set(n,e,i){return Oa(AV(n,i))}incompatibleTokens=["y","Y","u","q","Q","M","L","w","d","D","e","c","t","T"]};var bX=[31,28,31,30,31,30,31,31,30,31,30,31],vX=[31,29,31,30,31,30,31,31,30,31,30,31],My=class extends Pe{priority=90;subPriority=1;parse(n,e,i){switch(e){case"d":return Nt(Bt.date,n);case"do":return i.ordinalNumber(n,{unit:"date"});default:return _t(e.length,n)}}validate(n,e){let i=n.getFullYear(),r=fy(i),o=n.getMonth();return r?e>=1&&e<=vX[o]:e>=1&&e<=bX[o]}set(n,e,i){return n.setDate(i),n.setHours(0,0,0,0),n}incompatibleTokens=["Y","R","q","Q","w","I","D","i","e","c","t","T"]};var ky=class extends Pe{priority=90;subpriority=1;parse(n,e,i){switch(e){case"D":case"DD":return Nt(Bt.dayOfYear,n);case"Do":return i.ordinalNumber(n,{unit:"date"});default:return _t(e.length,n)}}validate(n,e){let i=n.getFullYear();return fy(i)?e>=1&&e<=366:e>=1&&e<=365}set(n,e,i){return n.setMonth(0,i),n.setHours(0,0,0,0),n}incompatibleTokens=["Y","R","q","Q","M","L","w","I","d","E","i","e","c","t","T"]};function ph(t,n,e){let i=Yo(),r=e?.weekStartsOn??e?.locale?.options?.weekStartsOn??i.weekStartsOn??i.locale?.options?.weekStartsOn??0,o=Ie(t,e?.in),a=o.getDay(),l=(n%7+7)%7,c=7-r,d=n<0||n>6?n-(a+c)%7:(l+c)%7-(a+c)%7;return oh(o,d,e)}var Sy=class extends Pe{priority=90;parse(n,e,i){switch(e){case"E":case"EE":case"EEE":return i.day(n,{width:"abbreviated",context:"formatting"})||i.day(n,{width:"short",context:"formatting"})||i.day(n,{width:"narrow",context:"formatting"});case"EEEEE":return i.day(n,{width:"narrow",context:"formatting"});case"EEEEEE":return i.day(n,{width:"short",context:"formatting"})||i.day(n,{width:"narrow",context:"formatting"});case"EEEE":default:return i.day(n,{width:"wide",context:"formatting"})||i.day(n,{width:"abbreviated",context:"formatting"})||i.day(n,{width:"short",context:"formatting"})||i.day(n,{width:"narrow",context:"formatting"})}}validate(n,e){return e>=0&&e<=6}set(n,e,i,r){return n=ph(n,i,r),n.setHours(0,0,0,0),n}incompatibleTokens=["D","i","e","c","t","T"]};var Ty=class extends Pe{priority=90;parse(n,e,i,r){let o=a=>{let s=Math.floor((a-1)/7)*7;return(a+r.weekStartsOn+6)%7+s};switch(e){case"e":case"ee":return ci(_t(e.length,n),o);case"eo":return ci(i.ordinalNumber(n,{unit:"day"}),o);case"eee":return i.day(n,{width:"abbreviated",context:"formatting"})||i.day(n,{width:"short",context:"formatting"})||i.day(n,{width:"narrow",context:"formatting"});case"eeeee":return i.day(n,{width:"narrow",context:"formatting"});case"eeeeee":return i.day(n,{width:"short",context:"formatting"})||i.day(n,{width:"narrow",context:"formatting"});case"eeee":default:return i.day(n,{width:"wide",context:"formatting"})||i.day(n,{width:"abbreviated",context:"formatting"})||i.day(n,{width:"short",context:"formatting"})||i.day(n,{width:"narrow",context:"formatting"})}}validate(n,e){return e>=0&&e<=6}set(n,e,i,r){return n=ph(n,i,r),n.setHours(0,0,0,0),n}incompatibleTokens=["y","R","u","q","Q","M","L","I","d","D","E","i","c","t","T"]};var Iy=class extends Pe{priority=90;parse(n,e,i,r){let o=a=>{let s=Math.floor((a-1)/7)*7;return(a+r.weekStartsOn+6)%7+s};switch(e){case"c":case"cc":return ci(_t(e.length,n),o);case"co":return ci(i.ordinalNumber(n,{unit:"day"}),o);case"ccc":return i.day(n,{width:"abbreviated",context:"standalone"})||i.day(n,{width:"short",context:"standalone"})||i.day(n,{width:"narrow",context:"standalone"});case"ccccc":return i.day(n,{width:"narrow",context:"standalone"});case"cccccc":return i.day(n,{width:"short",context:"standalone"})||i.day(n,{width:"narrow",context:"standalone"});case"cccc":default:return i.day(n,{width:"wide",context:"standalone"})||i.day(n,{width:"abbreviated",context:"standalone"})||i.day(n,{width:"short",context:"standalone"})||i.day(n,{width:"narrow",context:"standalone"})}}validate(n,e){return e>=0&&e<=6}set(n,e,i,r){return n=ph(n,i,r),n.setHours(0,0,0,0),n}incompatibleTokens=["y","R","u","q","Q","M","L","I","d","D","E","i","e","t","T"]};function OV(t,n,e){let i=Ie(t,e?.in),r=EV(i,e),o=n-r;return oh(i,o,e)}var Ay=class extends Pe{priority=90;parse(n,e,i){let r=o=>o===0?7:o;switch(e){case"i":case"ii":return _t(e.length,n);case"io":return i.ordinalNumber(n,{unit:"day"});case"iii":return ci(i.day(n,{width:"abbreviated",context:"formatting"})||i.day(n,{width:"short",context:"formatting"})||i.day(n,{width:"narrow",context:"formatting"}),r);case"iiiii":return ci(i.day(n,{width:"narrow",context:"formatting"}),r);case"iiiiii":return ci(i.day(n,{width:"short",context:"formatting"})||i.day(n,{width:"narrow",context:"formatting"}),r);case"iiii":default:return ci(i.day(n,{width:"wide",context:"formatting"})||i.day(n,{width:"abbreviated",context:"formatting"})||i.day(n,{width:"short",context:"formatting"})||i.day(n,{width:"narrow",context:"formatting"}),r)}}validate(n,e){return e>=1&&e<=7}set(n,e,i){return n=OV(n,i),n.setHours(0,0,0,0),n}incompatibleTokens=["y","Y","u","q","Q","M","L","w","d","D","E","e","c","t","T"]};var Oy=class extends Pe{priority=80;parse(n,e,i){switch(e){case"a":case"aa":case"aaa":return i.dayPeriod(n,{width:"abbreviated",context:"formatting"})||i.dayPeriod(n,{width:"narrow",context:"formatting"});case"aaaaa":return i.dayPeriod(n,{width:"narrow",context:"formatting"});case"aaaa":default:return i.dayPeriod(n,{width:"wide",context:"formatting"})||i.dayPeriod(n,{width:"abbreviated",context:"formatting"})||i.dayPeriod(n,{width:"narrow",context:"formatting"})}}set(n,e,i){return n.setHours(hh(i),0,0,0),n}incompatibleTokens=["b","B","H","k","t","T"]};var Ry=class extends Pe{priority=80;parse(n,e,i){switch(e){case"b":case"bb":case"bbb":return i.dayPeriod(n,{width:"abbreviated",context:"formatting"})||i.dayPeriod(n,{width:"narrow",context:"formatting"});case"bbbbb":return i.dayPeriod(n,{width:"narrow",context:"formatting"});case"bbbb":default:return i.dayPeriod(n,{width:"wide",context:"formatting"})||i.dayPeriod(n,{width:"abbreviated",context:"formatting"})||i.dayPeriod(n,{width:"narrow",context:"formatting"})}}set(n,e,i){return n.setHours(hh(i),0,0,0),n}incompatibleTokens=["a","B","H","k","t","T"]};var Py=class extends Pe{priority=80;parse(n,e,i){switch(e){case"B":case"BB":case"BBB":return i.dayPeriod(n,{width:"abbreviated",context:"formatting"})||i.dayPeriod(n,{width:"narrow",context:"formatting"});case"BBBBB":return i.dayPeriod(n,{width:"narrow",context:"formatting"});case"BBBB":default:return i.dayPeriod(n,{width:"wide",context:"formatting"})||i.dayPeriod(n,{width:"abbreviated",context:"formatting"})||i.dayPeriod(n,{width:"narrow",context:"formatting"})}}set(n,e,i){return n.setHours(hh(i),0,0,0),n}incompatibleTokens=["a","b","t","T"]};var Fy=class extends Pe{priority=70;parse(n,e,i){switch(e){case"h":return Nt(Bt.hour12h,n);case"ho":return i.ordinalNumber(n,{unit:"hour"});default:return _t(e.length,n)}}validate(n,e){return e>=1&&e<=12}set(n,e,i){let r=n.getHours()>=12;return r&&i<12?n.setHours(i+12,0,0,0):!r&&i===12?n.setHours(0,0,0,0):n.setHours(i,0,0,0),n}incompatibleTokens=["H","K","k","t","T"]};var Ny=class extends Pe{priority=70;parse(n,e,i){switch(e){case"H":return Nt(Bt.hour23h,n);case"Ho":return i.ordinalNumber(n,{unit:"hour"});default:return _t(e.length,n)}}validate(n,e){return e>=0&&e<=23}set(n,e,i){return n.setHours(i,0,0,0),n}incompatibleTokens=["a","b","h","K","k","t","T"]};var Ly=class extends Pe{priority=70;parse(n,e,i){switch(e){case"K":return Nt(Bt.hour11h,n);case"Ko":return i.ordinalNumber(n,{unit:"hour"});default:return _t(e.length,n)}}validate(n,e){return e>=0&&e<=11}set(n,e,i){return n.getHours()>=12&&i<12?n.setHours(i+12,0,0,0):n.setHours(i,0,0,0),n}incompatibleTokens=["h","H","k","t","T"]};var Vy=class extends Pe{priority=70;parse(n,e,i){switch(e){case"k":return Nt(Bt.hour24h,n);case"ko":return i.ordinalNumber(n,{unit:"hour"});default:return _t(e.length,n)}}validate(n,e){return e>=1&&e<=24}set(n,e,i){let r=i<=24?i%24:i;return n.setHours(r,0,0,0),n}incompatibleTokens=["a","b","h","H","K","t","T"]};var By=class extends Pe{priority=60;parse(n,e,i){switch(e){case"m":return Nt(Bt.minute,n);case"mo":return i.ordinalNumber(n,{unit:"minute"});default:return _t(e.length,n)}}validate(n,e){return e>=0&&e<=59}set(n,e,i){return n.setMinutes(i,0,0),n}incompatibleTokens=["t","T"]};var jy=class extends Pe{priority=50;parse(n,e,i){switch(e){case"s":return Nt(Bt.second,n);case"so":return i.ordinalNumber(n,{unit:"second"});default:return _t(e.length,n)}}validate(n,e){return e>=0&&e<=59}set(n,e,i){return n.setSeconds(i,0),n}incompatibleTokens=["t","T"]};var Hy=class extends Pe{priority=30;parse(n,e){let i=r=>Math.trunc(r*Math.pow(10,-e.length+3));return ci(_t(e.length,n),i)}set(n,e,i){return n.setMilliseconds(i),n}incompatibleTokens=["t","T"]};var zy=class extends Pe{priority=10;parse(n,e){switch(e){case"X":return Zo(Ko.basicOptionalMinutes,n);case"XX":return Zo(Ko.basic,n);case"XXXX":return Zo(Ko.basicOptionalSeconds,n);case"XXXXX":return Zo(Ko.extendedOptionalSeconds,n);case"XXX":default:return Zo(Ko.extended,n)}}set(n,e,i){return e.timestampIsSet?n:rt(n,n.getTime()-eu(n)-i)}incompatibleTokens=["t","T","x"]};var Uy=class extends Pe{priority=10;parse(n,e){switch(e){case"x":return Zo(Ko.basicOptionalMinutes,n);case"xx":return Zo(Ko.basic,n);case"xxxx":return Zo(Ko.basicOptionalSeconds,n);case"xxxxx":return Zo(Ko.extendedOptionalSeconds,n);case"xxx":default:return Zo(Ko.extended,n)}}set(n,e,i){return e.timestampIsSet?n:rt(n,n.getTime()-eu(n)-i)}incompatibleTokens=["t","T","X"]};var $y=class extends Pe{priority=40;parse(n){return hy(n)}set(n,e,i){return[rt(n,i*1e3),{timestampIsSet:!0}]}incompatibleTokens="*"};var Wy=class extends Pe{priority=20;parse(n){return hy(n)}set(n,e,i){return[rt(n,i),{timestampIsSet:!0}]}incompatibleTokens="*"};var RV={G:new my,y:new gy,Y:new _y,R:new by,u:new vy,Q:new yy,q:new xy,M:new Cy,L:new wy,w:new Dy,I:new Ey,d:new My,D:new ky,E:new Sy,e:new Ty,c:new Iy,i:new Ay,a:new Oy,b:new Ry,B:new Py,h:new Fy,H:new Ny,K:new Ly,k:new Vy,m:new By,s:new jy,S:new Hy,X:new zy,x:new Uy,t:new $y,T:new Wy};var yX=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,xX=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,CX=/^'([^]*?)'?$/,wX=/''/g,DX=/\S/,EX=/[a-zA-Z]/;function PV(t,n,e,i){let r=()=>rt(i?.in||e,NaN),o=DV(),a=i?.locale??o.locale??tu,s=i?.firstWeekContainsDate??i?.locale?.options?.firstWeekContainsDate??o.firstWeekContainsDate??o.locale?.options?.firstWeekContainsDate??1,l=i?.weekStartsOn??i?.locale?.options?.weekStartsOn??o.weekStartsOn??o.locale?.options?.weekStartsOn??0;if(!n)return t?r():Ie(e,i?.in);let c={firstWeekContainsDate:s,weekStartsOn:l,locale:a},d=[new uy(i?.in,e)],m=n.match(xX).map(x=>{let D=x[0];if(D in Zf){let P=Zf[D];return P(x,a.formatLong)}return x}).join("").match(yX),f=[];for(let x of m){!i?.useAdditionalWeekYearTokens&&oy(x)&&Xf(x,n,t),!i?.useAdditionalDayOfYearTokens&&ry(x)&&Xf(x,n,t);let D=x[0],P=RV[D];if(P){let{incompatibleTokens:W}=P;if(Array.isArray(W)){let K=f.find(re=>W.includes(re.token)||re.token===D);if(K)throw new RangeError(`The format string mustn't contain \`${K.fullToken}\` and \`${x}\` at the same time`)}else if(P.incompatibleTokens==="*"&&f.length>0)throw new RangeError(`The format string mustn't contain \`${x}\` and any other token at the same time`);f.push({token:D,fullToken:x});let Z=P.run(t,x,a.match,c);if(!Z)return r();d.push(Z.setter),t=Z.rest}else{if(D.match(EX))throw new RangeError("Format string contains an unescaped latin alphabet character `"+D+"`");if(x==="''"?x="'":D==="'"&&(x=MX(x)),t.indexOf(x)===0)t=t.slice(x.length);else return r()}}if(t.length>0&&DX.test(t))return r();let b=d.map(x=>x.priority).sort((x,D)=>D-x).filter((x,D,P)=>P.indexOf(x)===D).map(x=>d.filter(D=>D.priority===x).sort((D,P)=>P.subPriority-D.subPriority)).map(x=>x[0]),v=Ie(e,i?.in);if(isNaN(+v))return r();let w={};for(let x of b){if(!x.validate(v,c))return r();let D=x.set(v,w,c);Array.isArray(D)?(v=D[0],Object.assign(w,D[1])):v=D}return v}function MX(t){return t.match(CX)[1].replace(wX,"'")}function FV(t,n,e){let[i,r]=ty(e?.in,t,n);return+Zn(i,e)==+Zn(r,e)}function Nk(t,n){let e=()=>rt(n?.in,NaN),i=n?.additionalDigits??2,r=IX(t),o;if(r.date){let c=AX(r.date,i);o=OX(c.restDateString,c.year)}if(!o||isNaN(+o))return e();let a=+o,s=0,l;if(r.time&&(s=RX(r.time),isNaN(s)))return e();if(r.timezone){if(l=PX(r.timezone),isNaN(l))return e()}else{let c=new Date(a+s),d=Ie(0,n?.in);return d.setFullYear(c.getUTCFullYear(),c.getUTCMonth(),c.getUTCDate()),d.setHours(c.getUTCHours(),c.getUTCMinutes(),c.getUTCSeconds(),c.getUTCMilliseconds()),d}return Ie(a+s+l,n?.in)}var Gy={dateTimeDelimiter:/[T ]/,timeZoneDelimiter:/[Z ]/i,timezone:/([Z+-].*)$/},kX=/^-?(?:(\d{3})|(\d{2})(?:-?(\d{2}))?|W(\d{2})(?:-?(\d{1}))?|)$/,SX=/^(\d{2}(?:[.,]\d*)?)(?::?(\d{2}(?:[.,]\d*)?))?(?::?(\d{2}(?:[.,]\d*)?))?$/,TX=/^([+-])(\d{2})(?::?(\d{2}))?$/;function IX(t){let n={},e=t.split(Gy.dateTimeDelimiter),i;if(e.length>2)return n;if(/:/.test(e[0])?i=e[0]:(n.date=e[0],i=e[1],Gy.timeZoneDelimiter.test(n.date)&&(n.date=t.split(Gy.timeZoneDelimiter)[0],i=t.substr(n.date.length,t.length))),i){let r=Gy.timezone.exec(i);r?(n.time=i.replace(r[1],""),n.timezone=r[1]):n.time=i}return n}function AX(t,n){let e=new RegExp("^(?:(\\d{4}|[+-]\\d{"+(4+n)+"})|(\\d{2}|[+-]\\d{"+(2+n)+"})$)"),i=t.match(e);if(!i)return{year:NaN,restDateString:""};let r=i[1]?parseInt(i[1]):null,o=i[2]?parseInt(i[2]):null;return{year:o===null?r:o*100,restDateString:t.slice((i[1]||i[2]).length)}}function OX(t,n){if(n===null)return new Date(NaN);let e=t.match(kX);if(!e)return new Date(NaN);let i=!!e[4],r=Jf(e[1]),o=Jf(e[2])-1,a=Jf(e[3]),s=Jf(e[4]),l=Jf(e[5])-1;if(i)return BX(n,s,l)?FX(n,s,l):new Date(NaN);{let c=new Date(0);return!LX(n,o,a)||!VX(n,r)?new Date(NaN):(c.setUTCFullYear(n,o,Math.max(r,a)),c)}}function Jf(t){return t?parseInt(t):1}function RX(t){let n=t.match(SX);if(!n)return NaN;let e=Fk(n[1]),i=Fk(n[2]),r=Fk(n[3]);return jX(e,i,r)?e*Jd+i*Xd+r*1e3:NaN}function Fk(t){return t&&parseFloat(t.replace(",","."))||0}function PX(t){if(t==="Z")return 0;let n=t.match(TX);if(!n)return 0;let e=n[1]==="+"?-1:1,i=parseInt(n[2]),r=n[3]&&parseInt(n[3])||0;return HX(i,r)?e*(i*Jd+r*Xd):NaN}function FX(t,n,e){let i=new Date(0);i.setUTCFullYear(t,0,4);let r=i.getUTCDay()||7,o=(n-1)*7+e+1-r;return i.setUTCDate(i.getUTCDate()+o),i}var NX=[31,null,31,30,31,30,31,31,30,31,30,31];function NV(t){return t%400===0||t%4===0&&t%100!==0}function LX(t,n,e){return n>=0&&n<=11&&e>=1&&e<=(NX[n]||(NV(t)?29:28))}function VX(t,n){return n>=1&&n<=(NV(t)?366:365)}function BX(t,n,e){return n>=1&&n<=53&&e>=0&&e<=6}function jX(t,n,e){return t===24?n===0&&e===0:e>=0&&e<60&&n>=0&&n<60&&t>=0&&t<25}function HX(t,n){return n>=0&&n<=59}function LV(t,n,e){let i=Ie(t,e?.in),r=i.getFullYear(),o=i.getDate(),a=rt(e?.in||t,0);a.setFullYear(r,n,15),a.setHours(0,0,0,0);let s=ay(a);return i.setMonth(n,Math.min(o,s)),i}function VV(t,n,e){let i=Ie(t,e?.in);return isNaN(+i)?rt(e?.in||t,NaN):(n.year!=null&&i.setFullYear(n.year),n.month!=null&&(i=LV(i,n.month)),n.date!=null&&i.setDate(n.date),n.hours!=null&&i.setHours(n.hours),n.minutes!=null&&i.setMinutes(n.minutes),n.seconds!=null&&i.setSeconds(n.seconds),n.milliseconds!=null&&i.setMilliseconds(n.milliseconds),i)}function Lk(t,n){let e=Array(t);for(let i=0;i{class t extends Li{constructor(){super();let e=u(ys,{optional:!0});this.setLocale(e)}getYear(e){return SV(e)}getMonth(e){return MV(e)}getDate(e){return CV(e)}getDayOfWeek(e){return wV(e)}getMonthNames(e){let i=zX[e];return Lk(12,r=>this.format(new Date(2017,r,1),i))}getDateNames(){let e=typeof Intl<"u"?new Intl.DateTimeFormat(this.locale.code,{day:"numeric",timeZone:"utc"}):null;return Lk(31,i=>{if(e){let r=new Date;return r.setUTCFullYear(2017,0,i+1),r.setUTCHours(0,0,0,0),e.format(r).replace(/[\u200e\u200f]/g,"")}return i+""})}getDayOfWeekNames(e){let i=UX[e];return Lk(7,r=>this.format(new Date(2017,0,r+1),i))}getYearName(e){return this.format(e,"y")}getFirstDayOfWeek(){return this.locale.options?.weekStartsOn??0}getNumDaysInMonth(e){return ay(e)}clone(e){return new Date(e.getTime())}createDate(e,i,r){let o=new Date;return o.setFullYear(e,i,r),o.setHours(0,0,0,0),o.getMonth()!=i,o}today(){return new Date}parse(e,i){return this._parse(e,i)}format(e,i){if(!this.isValid(e))throw Error("DateFnsAdapter: Cannot format invalid date.");return yV(e,i,{locale:this.locale})}addCalendarYears(e,i){return aV(e,i)}addCalendarMonths(e,i){return ah(e,i)}addCalendarDays(e,i){return oh(e,i)}toIso8601(e){return xV(e,{representation:"date"})}deserialize(e){if(typeof e=="string"){if(!e)return null;let i=Nk(e);if(this.isValid(i))return i}return super.deserialize(e)}isDateInstance(e){return iy(e)}isValid(e){return sh(e)}invalid(){return new Date(NaN)}setTime(e,i,r,o){return VV(this.clone(e),{hours:i,minutes:r,seconds:o,milliseconds:0})}getHours(e){return sy(e)}getMinutes(e){return ly(e)}getSeconds(e){return kV(e)}parseTime(e,i){return this._parse(e,i,!1)}addSeconds(e,i){return oV(e,i)}_parse(e,i,r=!0){if(typeof e=="string"&&e.length>0){if(r){let a=Nk(e);if(this.isValid(a))return a}let o=Array.isArray(i)?i:[i];if(!i.length)throw Error("Formats array must not be empty.");for(let a of o){let s=PV(e,a,new Date,{locale:this.locale});if(this.isValid(s))return s}return this.invalid()}else{if(typeof e=="number")return new Date(e);if(e instanceof Date)return this.clone(e)}return null}static \u0275fac=function(i){return new(i||t)};static \u0275prov=O({token:t,factory:t.\u0275fac})}return t})(),$X={parse:{dateInput:"P",timeInput:"p"},display:{dateInput:"P",timeInput:"p",monthYearLabel:"LLL uuuu",dateA11yLabel:"PP",monthYearA11yLabel:"LLLL uuuu",timeOptionLabel:"p"}};function BV(t=$X){return[{provide:Li,useClass:Vk,deps:[ys]},{provide:xs,useValue:t}]}var WX=["*"];var GX=[[["","mat-card-avatar",""],["","matCardAvatar",""]],[["mat-card-title"],["mat-card-subtitle"],["","mat-card-title",""],["","mat-card-subtitle",""],["","matCardTitle",""],["","matCardSubtitle",""]],"*"],qX=["[mat-card-avatar], [matCardAvatar]",`mat-card-title, mat-card-subtitle, + `)}`:"",this.name="UnsubscriptionError",this.errors=e});function od(t,n){if(t){let e=t.indexOf(n);0<=e&&t.splice(e,1)}}var ke=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 o of e)o.remove(this);else e.remove(this);let{initialTeardown:i}=this;if(Ke(i))try{i()}catch(o){n=o instanceof F_?o.errors:[o]}let{_finalizers:r}=this;if(r){this._finalizers=null;for(let o of r)try{DA(o)}catch(a){n=n??[],a instanceof F_?n=[...n,...a.errors]:n.push(a)}}if(n)throw new F_(n)}}add(n){var e;if(n&&n!==this)if(this.closed)DA(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)&&od(e,n)}remove(n){let{_finalizers:e}=this;e&&od(e,n),n instanceof t&&n._removeParent(this)}};ke.EMPTY=(()=>{let t=new ke;return t.closed=!0,t})();var Pw=ke.EMPTY;function N_(t){return t instanceof ke||t&&"closed"in t&&Ke(t.remove)&&Ke(t.add)&&Ke(t.unsubscribe)}function DA(t){Ke(t)?t():t.unsubscribe()}var ha={onUnhandledError:null,onStoppedNotification:null,Promise:void 0,useDeprecatedSynchronousErrorHandling:!1,useDeprecatedNextContext:!1};var Lu={setTimeout(t,n,...e){let{delegate:i}=Lu;return i?.setTimeout?i.setTimeout(t,n,...e):setTimeout(t,n,...e)},clearTimeout(t){let{delegate:n}=Lu;return(n?.clearTimeout||clearTimeout)(t)},delegate:void 0};function L_(t){Lu.setTimeout(()=>{let{onUnhandledError:n}=ha;if(n)n(t);else throw t})}function ad(){}var EA=Fw("C",void 0,void 0);function MA(t){return Fw("E",void 0,t)}function kA(t){return Fw("N",t,void 0)}function Fw(t,n,e){return{kind:t,value:n,error:e}}var sd=null;function Vu(t){if(ha.useDeprecatedSynchronousErrorHandling){let n=!sd;if(n&&(sd={errorThrown:!1,error:null}),t(),n){let{errorThrown:e,error:i}=sd;if(sd=null,e)throw i}}else t()}function SA(t){ha.useDeprecatedSynchronousErrorHandling&&sd&&(sd.errorThrown=!0,sd.error=t)}var ld=class extends ke{constructor(n){super(),this.isStopped=!1,n?(this.destination=n,N_(n)&&n.add(this)):this.destination=N6}static create(n,e,i){return new Bs(n,e,i)}next(n){this.isStopped?Lw(kA(n),this):this._next(n)}error(n){this.isStopped?Lw(MA(n),this):(this.isStopped=!0,this._error(n))}complete(){this.isStopped?Lw(EA,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()}}},P6=Function.prototype.bind;function Nw(t,n){return P6.call(t,n)}var Vw=class{constructor(n){this.partialObserver=n}next(n){let{partialObserver:e}=this;if(e.next)try{e.next(n)}catch(i){V_(i)}}error(n){let{partialObserver:e}=this;if(e.error)try{e.error(n)}catch(i){V_(i)}else V_(n)}complete(){let{partialObserver:n}=this;if(n.complete)try{n.complete()}catch(e){V_(e)}}},Bs=class extends ld{constructor(n,e,i){super();let r;if(Ke(n)||!n)r={next:n??void 0,error:e??void 0,complete:i??void 0};else{let o;this&&ha.useDeprecatedNextContext?(o=Object.create(n),o.unsubscribe=()=>this.unsubscribe(),r={next:n.next&&Nw(n.next,o),error:n.error&&Nw(n.error,o),complete:n.complete&&Nw(n.complete,o)}):r=n}this.destination=new Vw(r)}};function V_(t){ha.useDeprecatedSynchronousErrorHandling?SA(t):L_(t)}function F6(t){throw t}function Lw(t,n){let{onStoppedNotification:e}=ha;e&&Lu.setTimeout(()=>e(t,n))}var N6={closed:!0,next:ad,error:F6,complete:ad};var Bu=typeof Symbol=="function"&&Symbol.observable||"@@observable";function Mr(t){return t}function Bw(...t){return jw(t)}function jw(t){return t.length===0?Mr:t.length===1?t[0]:function(e){return t.reduce((i,r)=>r(i),e)}}var Fe=(()=>{class t{constructor(e){e&&(this._subscribe=e)}lift(e){let i=new t;return i.source=this,i.operator=e,i}subscribe(e,i,r){let o=V6(e)?e:new Bs(e,i,r);return Vu(()=>{let{operator:a,source:s}=this;o.add(a?a.call(o,s):s?this._subscribe(o):this._trySubscribe(o))}),o}_trySubscribe(e){try{return this._subscribe(e)}catch(i){e.error(i)}}forEach(e,i){return i=TA(i),new i((r,o)=>{let a=new Bs({next:s=>{try{e(s)}catch(l){o(l),a.unsubscribe()}},error:o,complete:r});this.subscribe(a)})}_subscribe(e){var i;return(i=this.source)===null||i===void 0?void 0:i.subscribe(e)}[Bu](){return this}pipe(...e){return jw(e)(this)}toPromise(e){return e=TA(e),new e((i,r)=>{let o;this.subscribe(a=>o=a,a=>r(a),()=>i(o))})}}return t.create=n=>new t(n),t})();function TA(t){var n;return(n=t??ha.Promise)!==null&&n!==void 0?n:Promise}function L6(t){return t&&Ke(t.next)&&Ke(t.error)&&Ke(t.complete)}function V6(t){return t&&t instanceof ld||L6(t)&&N_(t)}function Hw(t){return Ke(t?.lift)}function Qe(t){return n=>{if(Hw(n))return n.lift(function(e){try{return t(e,this)}catch(i){this.error(i)}});throw new TypeError("Unable to lift unknown Observable type")}}function Ue(t,n,e,i,r){return new zw(t,n,e,i,r)}var zw=class extends ld{constructor(n,e,i,r,o,a){super(n),this.onFinalize=o,this.shouldUnsubscribe=a,this._next=e?function(s){try{e(s)}catch(l){n.error(l)}}:super._next,this._error=r?function(s){try{r(s)}catch(l){n.error(l)}finally{this.unsubscribe()}}:super._error,this._complete=i?function(){try{i()}catch(s){n.error(s)}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 ju(){return Qe((t,n)=>{let e=null;t._refCount++;let i=Ue(n,void 0,void 0,void 0,()=>{if(!t||t._refCount<=0||0<--t._refCount){e=null;return}let r=t._connection,o=e;e=null,r&&(!o||r===o)&&r.unsubscribe(),n.unsubscribe()});t.subscribe(i),i.closed||(e=t.connect())})}var Al=class extends Fe{constructor(n,e){super(),this.source=n,this.subjectFactory=e,this._subject=null,this._refCount=0,this._connection=null,Hw(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 ke;let e=this.getSubject();n.add(this.source.subscribe(Ue(e,void 0,()=>{this._teardown(),e.complete()},i=>{this._teardown(),e.error(i)},()=>this._teardown()))),n.closed&&(this._connection=null,n=ke.EMPTY)}return n}refCount(){return ju()(this)}};var Hu={schedule(t){let n=requestAnimationFrame,e=cancelAnimationFrame,{delegate:i}=Hu;i&&(n=i.requestAnimationFrame,e=i.cancelAnimationFrame);let r=n(o=>{e=void 0,t(o)});return new ke(()=>e?.(r))},requestAnimationFrame(...t){let{delegate:n}=Hu;return(n?.requestAnimationFrame||requestAnimationFrame)(...t)},cancelAnimationFrame(...t){let{delegate:n}=Hu;return(n?.cancelAnimationFrame||cancelAnimationFrame)(...t)},delegate:void 0};var IA=Il(t=>function(){t(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"});var z=(()=>{class t extends Fe{constructor(){super(),this.closed=!1,this.currentObservers=null,this.observers=[],this.isStopped=!1,this.hasError=!1,this.thrownError=null}lift(e){let i=new B_(this,this);return i.operator=e,i}_throwIfClosed(){if(this.closed)throw new IA}next(e){Vu(()=>{if(this._throwIfClosed(),!this.isStopped){this.currentObservers||(this.currentObservers=Array.from(this.observers));for(let i of this.currentObservers)i.next(e)}})}error(e){Vu(()=>{if(this._throwIfClosed(),!this.isStopped){this.hasError=this.isStopped=!0,this.thrownError=e;let{observers:i}=this;for(;i.length;)i.shift().error(e)}})}complete(){Vu(()=>{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:i,isStopped:r,observers:o}=this;return i||r?Pw:(this.currentObservers=null,o.push(e),new ke(()=>{this.currentObservers=null,od(o,e)}))}_checkFinalizedStatuses(e){let{hasError:i,thrownError:r,isStopped:o}=this;i?e.error(r):o&&e.complete()}asObservable(){let e=new Fe;return e.source=this,e}}return t.create=(n,e)=>new B_(n,e),t})(),B_=class extends z{constructor(n,e){super(),this.destination=n,this.source=e}next(n){var e,i;(i=(e=this.destination)===null||e===void 0?void 0:e.next)===null||i===void 0||i.call(e,n)}error(n){var e,i;(i=(e=this.destination)===null||e===void 0?void 0:e.error)===null||i===void 0||i.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,i;return(i=(e=this.source)===null||e===void 0?void 0:e.subscribe(n))!==null&&i!==void 0?i:Pw}};var tt=class extends z{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:i}=this;if(n)throw e;return this._throwIfClosed(),i}next(n){super.next(this._value=n)}};var gp={now(){return(gp.delegate||Date).now()},delegate:void 0};var $a=class extends z{constructor(n=1/0,e=1/0,i=gp){super(),this._bufferSize=n,this._windowTime=e,this._timestampProvider=i,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:i,_infiniteTimeWindow:r,_timestampProvider:o,_windowTime:a}=this;e||(i.push(n),!r&&i.push(o.now()+a)),this._trimBuffer(),super.next(n)}_subscribe(n){this._throwIfClosed(),this._trimBuffer();let e=this._innerSubscribe(n),{_infiniteTimeWindow:i,_buffer:r}=this,o=r.slice();for(let a=0;aAA(n)&&t()),n},clearImmediate(t){AA(t)}};var{setImmediate:j6,clearImmediate:H6}=OA,bp={setImmediate(...t){let{delegate:n}=bp;return(n?.setImmediate||j6)(...t)},clearImmediate(t){let{delegate:n}=bp;return(n?.clearImmediate||H6)(t)},delegate:void 0};var H_=class extends Ol{constructor(n,e){super(n,e),this.scheduler=n,this.work=e}requestAsyncId(n,e,i=0){return i!==null&&i>0?super.requestAsyncId(n,e,i):(n.actions.push(this),n._scheduled||(n._scheduled=bp.setImmediate(n.flush.bind(n,void 0))))}recycleAsyncId(n,e,i=0){var r;if(i!=null?i>0:this.delay>0)return super.recycleAsyncId(n,e,i);let{actions:o}=n;e!=null&&((r=o[o.length-1])===null||r===void 0?void 0:r.id)!==e&&(bp.clearImmediate(e),n._scheduled===e&&(n._scheduled=void 0))}};var zu=class t{constructor(n,e=t.now){this.schedulerActionCtor=n,this.now=e}schedule(n,e=0,i){return new this.schedulerActionCtor(this,n).schedule(i,e)}};zu.now=gp.now;var Rl=class extends zu{constructor(n,e=zu.now){super(n,e),this.actions=[],this._active=!1}flush(n){let{actions:e}=this;if(this._active){e.push(n);return}let i;this._active=!0;do if(i=n.execute(n.state,n.delay))break;while(n=e.shift());if(this._active=!1,i){for(;n=e.shift();)n.unsubscribe();throw i}}};var z_=class extends Rl{flush(n){this._active=!0;let e=this._scheduled;this._scheduled=void 0;let{actions:i}=this,r;n=n||i.shift();do if(r=n.execute(n.state,n.delay))break;while((n=i[0])&&n.id===e&&i.shift());if(this._active=!1,r){for(;(n=i[0])&&n.id===e&&i.shift();)n.unsubscribe();throw r}}};var U_=new z_(H_);var js=new Rl(Ol),RA=js;var $_=class extends Ol{constructor(n,e){super(n,e),this.scheduler=n,this.work=e}requestAsyncId(n,e,i=0){return i!==null&&i>0?super.requestAsyncId(n,e,i):(n.actions.push(this),n._scheduled||(n._scheduled=Hu.requestAnimationFrame(()=>n.flush(void 0))))}recycleAsyncId(n,e,i=0){var r;if(i!=null?i>0:this.delay>0)return super.recycleAsyncId(n,e,i);let{actions:o}=n;e!=null&&e===n._scheduled&&((r=o[o.length-1])===null||r===void 0?void 0:r.id)!==e&&(Hu.cancelAnimationFrame(e),n._scheduled=void 0)}};var W_=class extends Rl{flush(n){this._active=!0;let e;n?e=n.id:(e=this._scheduled,this._scheduled=void 0);let{actions:i}=this,r;n=n||i.shift();do if(r=n.execute(n.state,n.delay))break;while((n=i[0])&&n.id===e&&i.shift());if(this._active=!1,r){for(;(n=i[0])&&n.id===e&&i.shift();)n.unsubscribe();throw r}}};var G_=new W_($_);var Fi=new Fe(t=>t.complete());function q_(t){return t&&Ke(t.schedule)}function Ww(t){return t[t.length-1]}function Y_(t){return Ke(Ww(t))?t.pop():void 0}function Wa(t){return q_(Ww(t))?t.pop():void 0}function PA(t,n){return typeof Ww(t)=="number"?t.pop():n}function NA(t,n,e,i){function r(o){return o instanceof e?o:new e(function(a){a(o)})}return new(e||(e=Promise))(function(o,a){function s(d){try{c(i.next(d))}catch(m){a(m)}}function l(d){try{c(i.throw(d))}catch(m){a(m)}}function c(d){d.done?o(d.value):r(d.value).then(s,l)}c((i=i.apply(t,n||[])).next())})}function FA(t){var n=typeof Symbol=="function"&&Symbol.iterator,e=n&&t[n],i=0;if(e)return e.call(t);if(t&&typeof t.length=="number")return{next:function(){return t&&i>=t.length&&(t=void 0),{value:t&&t[i++],done:!t}}};throw new TypeError(n?"Object is not iterable.":"Symbol.iterator is not defined.")}function cd(t){return this instanceof cd?(this.v=t,this):new cd(t)}function LA(t,n,e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var i=e.apply(t,n||[]),r,o=[];return r=Object.create((typeof AsyncIterator=="function"?AsyncIterator:Object).prototype),s("next"),s("throw"),s("return",a),r[Symbol.asyncIterator]=function(){return this},r;function a(b){return function(v){return Promise.resolve(v).then(b,m)}}function s(b,v){i[b]&&(r[b]=function(w){return new Promise(function(x,D){o.push([b,w,x,D])>1||l(b,w)})},v&&(r[b]=v(r[b])))}function l(b,v){try{c(i[b](v))}catch(w){f(o[0][3],w)}}function c(b){b.value instanceof cd?Promise.resolve(b.value.v).then(d,m):f(o[0][2],b)}function d(b){l("next",b)}function m(b){l("throw",b)}function f(b,v){b(v),o.shift(),o.length&&l(o[0][0],o[0][1])}}function VA(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 FA=="function"?FA(t):t[Symbol.iterator](),e={},i("next"),i("throw"),i("return"),e[Symbol.asyncIterator]=function(){return this},e);function i(o){e[o]=t[o]&&function(a){return new Promise(function(s,l){a=t[o](a),r(s,l,a.done,a.value)})}}function r(o,a,s,l){Promise.resolve(l).then(function(c){o({value:c,done:s})},a)}}var Uu=t=>t&&typeof t.length=="number"&&typeof t!="function";function Q_(t){return Ke(t?.then)}function K_(t){return Ke(t[Bu])}function Z_(t){return Symbol.asyncIterator&&Ke(t?.[Symbol.asyncIterator])}function X_(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 z6(){return typeof Symbol!="function"||!Symbol.iterator?"@@iterator":Symbol.iterator}var J_=z6();function eb(t){return Ke(t?.[J_])}function tb(t){return LA(this,arguments,function*(){let e=t.getReader();try{for(;;){let{value:i,done:r}=yield cd(e.read());if(r)return yield cd(void 0);yield yield cd(i)}}finally{e.releaseLock()}})}function ib(t){return Ke(t?.getReader)}function At(t){if(t instanceof Fe)return t;if(t!=null){if(K_(t))return U6(t);if(Uu(t))return $6(t);if(Q_(t))return W6(t);if(Z_(t))return BA(t);if(eb(t))return G6(t);if(ib(t))return q6(t)}throw X_(t)}function U6(t){return new Fe(n=>{let e=t[Bu]();if(Ke(e.subscribe))return e.subscribe(n);throw new TypeError("Provided object does not correctly implement Symbol.observable")})}function $6(t){return new Fe(n=>{for(let e=0;e{t.then(e=>{n.closed||(n.next(e),n.complete())},e=>n.error(e)).then(null,L_)})}function G6(t){return new Fe(n=>{for(let e of t)if(n.next(e),n.closed)return;n.complete()})}function BA(t){return new Fe(n=>{Y6(t,n).catch(e=>n.error(e))})}function q6(t){return BA(tb(t))}function Y6(t,n){var e,i,r,o;return NA(this,void 0,void 0,function*(){try{for(e=VA(t);i=yield e.next(),!i.done;){let a=i.value;if(n.next(a),n.closed)return}}catch(a){r={error:a}}finally{try{i&&!i.done&&(o=e.return)&&(yield o.call(e))}finally{if(r)throw r.error}}n.complete()})}function dr(t,n,e,i=0,r=!1){let o=n.schedule(function(){e(),r?t.add(this.schedule(null,i)):this.unsubscribe()},i);if(t.add(o),!r)return o}function nb(t,n=0){return Qe((e,i)=>{e.subscribe(Ue(i,r=>dr(i,t,()=>i.next(r),n),()=>dr(i,t,()=>i.complete(),n),r=>dr(i,t,()=>i.error(r),n)))})}function rb(t,n=0){return Qe((e,i)=>{i.add(t.schedule(()=>e.subscribe(i),n))})}function jA(t,n){return At(t).pipe(rb(n),nb(n))}function HA(t,n){return At(t).pipe(rb(n),nb(n))}function zA(t,n){return new Fe(e=>{let i=0;return n.schedule(function(){i===t.length?e.complete():(e.next(t[i++]),e.closed||this.schedule())})})}function UA(t,n){return new Fe(e=>{let i;return dr(e,n,()=>{i=t[J_](),dr(e,n,()=>{let r,o;try{({value:r,done:o}=i.next())}catch(a){e.error(a);return}o?e.complete():e.next(r)},0,!0)}),()=>Ke(i?.return)&&i.return()})}function ob(t,n){if(!t)throw new Error("Iterable cannot be null");return new Fe(e=>{dr(e,n,()=>{let i=t[Symbol.asyncIterator]();dr(e,n,()=>{i.next().then(r=>{r.done?e.complete():e.next(r.value)})},0,!0)})})}function $A(t,n){return ob(tb(t),n)}function WA(t,n){if(t!=null){if(K_(t))return jA(t,n);if(Uu(t))return zA(t,n);if(Q_(t))return HA(t,n);if(Z_(t))return ob(t,n);if(eb(t))return UA(t,n);if(ib(t))return $A(t,n)}throw X_(t)}function Ot(t,n){return n?WA(t,n):At(t)}function Q(...t){let n=Wa(t);return Ot(t,n)}function Wn(t,n){let e=Ke(t)?t:()=>t,i=r=>r.error(e());return new Fe(n?r=>n.schedule(i,0,r):i)}function ji(t){return!!t&&(t instanceof Fe||Ke(t.lift)&&Ke(t.subscribe))}var Hs=Il(t=>function(){t(this),this.name="EmptyError",this.message="no elements in sequence"});function ab(t){return t instanceof Date&&!isNaN(t)}var Q6=Il(t=>function(e=null){t(this),this.message="Timeout has occurred",this.name="TimeoutError",this.info=e});function Gw(t,n){let{first:e,each:i,with:r=K6,scheduler:o=n??js,meta:a=null}=ab(t)?{first:t}:typeof t=="number"?{each:t}:t;if(e==null&&i==null)throw new TypeError("No timeout provided.");return Qe((s,l)=>{let c,d,m=null,f=0,b=v=>{d=dr(l,o,()=>{try{c.unsubscribe(),At(r({meta:a,lastValue:m,seen:f})).subscribe(l)}catch(w){l.error(w)}},v)};c=s.subscribe(Ue(l,v=>{d?.unsubscribe(),f++,l.next(m=v),i>0&&b(i)},void 0,void 0,()=>{d?.closed||d?.unsubscribe(),m=null})),!f&&b(e!=null?typeof e=="number"?e:+e-o.now():i)})}function K6(t){throw new Q6(t)}function se(t,n){return Qe((e,i)=>{let r=0;e.subscribe(Ue(i,o=>{i.next(t.call(n,o,r++))}))})}var{isArray:Z6}=Array;function X6(t,n){return Z6(n)?t(...n):t(n)}function $u(t){return se(n=>X6(t,n))}var{isArray:J6}=Array,{getPrototypeOf:e$,prototype:t$,keys:i$}=Object;function sb(t){if(t.length===1){let n=t[0];if(J6(n))return{args:n,keys:null};if(n$(n)){let e=i$(n);return{args:e.map(i=>n[i]),keys:e}}}return{args:t,keys:null}}function n$(t){return t&&typeof t=="object"&&e$(t)===t$}function lb(t,n){return t.reduce((e,i,r)=>(e[i]=n[r],e),{})}function co(...t){let n=Wa(t),e=Y_(t),{args:i,keys:r}=sb(t);if(i.length===0)return Ot([],n);let o=new Fe(r$(i,n,r?a=>lb(r,a):Mr));return e?o.pipe($u(e)):o}function r$(t,n,e=Mr){return i=>{GA(n,()=>{let{length:r}=t,o=new Array(r),a=r,s=r;for(let l=0;l{let c=Ot(t[l],n),d=!1;c.subscribe(Ue(i,m=>{o[l]=m,d||(d=!0,s--),s||i.next(e(o.slice()))},()=>{--a||i.complete()}))},i)},i)}}function GA(t,n,e){t?dr(e,t,n):n()}function qA(t,n,e,i,r,o,a,s){let l=[],c=0,d=0,m=!1,f=()=>{m&&!l.length&&!c&&n.complete()},b=w=>c{o&&n.next(w),c++;let x=!1;At(e(w,d++)).subscribe(Ue(n,D=>{r?.(D),o?b(D):n.next(D)},()=>{x=!0},void 0,()=>{if(x)try{for(c--;l.length&&cv(D)):v(D)}f()}catch(D){n.error(D)}}))};return t.subscribe(Ue(n,b,()=>{m=!0,f()})),()=>{s?.()}}function Mt(t,n,e=1/0){return Ke(n)?Mt((i,r)=>se((o,a)=>n(i,o,r,a))(At(t(i,r))),e):(typeof n=="number"&&(e=n),Qe((i,r)=>qA(i,r,t,e)))}function uo(t=1/0){return Mt(Mr,t)}function YA(){return uo(1)}function mo(...t){return YA()(Ot(t,Wa(t)))}function kn(t){return new Fe(n=>{At(t()).subscribe(n)})}function Ga(...t){let n=Y_(t),{args:e,keys:i}=sb(t),r=new Fe(o=>{let{length:a}=e;if(!a){o.complete();return}let s=new Array(a),l=a,c=a;for(let d=0;d{m||(m=!0,c--),s[d]=f},()=>l--,void 0,()=>{(!l||!m)&&(c||o.next(i?lb(i,s):s),o.complete())}))}});return n?r.pipe($u(n)):r}var o$=["addListener","removeListener"],a$=["addEventListener","removeEventListener"],s$=["on","off"];function zs(t,n,e,i){if(Ke(e)&&(i=e,e=void 0),i)return zs(t,n,e).pipe($u(i));let[r,o]=d$(t)?a$.map(a=>s=>t[a](n,s,e)):l$(t)?o$.map(QA(t,n)):c$(t)?s$.map(QA(t,n)):[];if(!r&&Uu(t))return Mt(a=>zs(a,n,e))(At(t));if(!r)throw new TypeError("Invalid event target");return new Fe(a=>{let s=(...l)=>a.next(1o(s)})}function QA(t,n){return e=>i=>t[e](n,i)}function l$(t){return Ke(t.addListener)&&Ke(t.removeListener)}function c$(t){return Ke(t.on)&&Ke(t.off)}function d$(t){return Ke(t.addEventListener)&&Ke(t.removeEventListener)}function qa(t=0,n,e=RA){let i=-1;return n!=null&&(q_(n)?e=n:i=n),new Fe(r=>{let o=ab(t)?+t-e.now():t;o<0&&(o=0);let a=0;return e.schedule(function(){r.closed||(r.next(a++),0<=i?this.schedule(void 0,i):r.complete())},o)})}function Je(...t){let n=Wa(t),e=PA(t,1/0),i=t;return i.length?i.length===1?At(i[0]):uo(e)(Ot(i,n)):Fi}var{isArray:u$}=Array;function KA(t){return t.length===1&&u$(t[0])?t[0]:t}function ce(t,n){return Qe((e,i)=>{let r=0;e.subscribe(Ue(i,o=>t.call(n,o,r++)&&i.next(o)))})}function Wu(...t){return t=KA(t),t.length===1?At(t[0]):new Fe(m$(t))}function m$(t){return n=>{let e=[];for(let i=0;e&&!n.closed&&i{if(e){for(let o=0;o{let i=!1,r=null,o=null,a=!1,s=()=>{if(o?.unsubscribe(),o=null,i){i=!1;let c=r;r=null,e.next(c)}a&&e.complete()},l=()=>{o=null,a&&e.complete()};n.subscribe(Ue(e,c=>{i=!0,r=c,o||At(t(c)).subscribe(o=Ue(e,s,l))},()=>{a=!0,(!i||!o||o.closed)&&e.complete()}))})}function Pl(t,n=js){return ZA(()=>qa(t,n))}function fi(t){return Qe((n,e)=>{let i=null,r=!1,o;i=n.subscribe(Ue(e,void 0,void 0,a=>{o=At(t(a,fi(t)(n))),i?(i.unsubscribe(),i=null,o.subscribe(e)):r=!0})),r&&(i.unsubscribe(),i=null,o.subscribe(e))})}function XA(t,n,e,i,r){return(o,a)=>{let s=e,l=n,c=0;o.subscribe(Ue(a,d=>{let m=c++;l=s?t(l,d,m):(s=!0,d),i&&a.next(l)},r&&(()=>{s&&a.next(l),a.complete()})))}}function Ao(t,n){return Ke(n)?Mt(t,n,1):Mt(t,1)}function Rt(t,n=js){return Qe((e,i)=>{let r=null,o=null,a=null,s=()=>{if(r){r.unsubscribe(),r=null;let c=o;o=null,i.next(c)}};function l(){let c=a+t,d=n.now();if(d{o=c,a=n.now(),r||(r=n.schedule(l,t),i.add(r))},()=>{s(),i.complete()},void 0,()=>{o=r=null}))})}function Fl(t){return Qe((n,e)=>{let i=!1;n.subscribe(Ue(e,r=>{i=!0,e.next(r)},()=>{i||e.next(t),e.complete()}))})}function lt(t){return t<=0?()=>Fi:Qe((n,e)=>{let i=0;n.subscribe(Ue(e,r=>{++i<=t&&(e.next(r),t<=i&&e.complete())}))})}function JA(){return Qe((t,n)=>{t.subscribe(Ue(n,ad))})}function Gu(t){return se(()=>t)}function qw(t,n){return n?e=>mo(n.pipe(lt(1),JA()),e.pipe(qw(t))):Mt((e,i)=>At(t(e,i)).pipe(lt(1),Gu(e)))}function pa(t,n=js){let e=qa(t,n);return qw(()=>e)}function Sn(t,n=Mr){return t=t??h$,Qe((e,i)=>{let r,o=!0;e.subscribe(Ue(i,a=>{let s=n(a);(o||!t(r,s))&&(o=!1,r=s,i.next(a))}))})}function h$(t,n){return t===n}function cb(t=p$){return Qe((n,e)=>{let i=!1;n.subscribe(Ue(e,r=>{i=!0,e.next(r)},()=>i?e.complete():e.error(t())))})}function p$(){return new Hs}function Yw(t,n){return Qe((e,i)=>{let r=0;e.subscribe(Ue(i,o=>{t.call(n,o,r++,e)||(i.next(!1),i.complete())},()=>{i.next(!0),i.complete()}))})}function Hr(t){return Qe((n,e)=>{try{n.subscribe(e)}finally{e.add(t)}})}function gn(t,n){let e=arguments.length>=2;return i=>i.pipe(t?ce((r,o)=>t(r,o,i)):Mr,lt(1),e?Fl(n):cb(()=>new Hs))}function qu(t){return t<=0?()=>Fi:Qe((n,e)=>{let i=[];n.subscribe(Ue(e,r=>{i.push(r),t{for(let r of i)e.next(r);e.complete()},void 0,()=>{i=null}))})}function Qw(t,n){let e=arguments.length>=2;return i=>i.pipe(t?ce((r,o)=>t(r,o,i)):Mr,qu(1),e?Fl(n):cb(()=>new Hs))}function db(){return Qe((t,n)=>{let e,i=!1;t.subscribe(Ue(n,r=>{let o=e;e=r,i&&n.next([o,r]),i=!0}))})}function Kw(t,n){return Qe(XA(t,n,arguments.length>=2,!0))}function Nl(t={}){let{connector:n=()=>new z,resetOnError:e=!0,resetOnComplete:i=!0,resetOnRefCountZero:r=!0}=t;return o=>{let a,s,l,c=0,d=!1,m=!1,f=()=>{s?.unsubscribe(),s=void 0},b=()=>{f(),a=l=void 0,d=m=!1},v=()=>{let w=a;b(),w?.unsubscribe()};return Qe((w,x)=>{c++,!m&&!d&&f();let D=l=l??n();x.add(()=>{c--,c===0&&!m&&!d&&(s=Zw(v,r))}),D.subscribe(x),!a&&c>0&&(a=new Bs({next:P=>D.next(P),error:P=>{m=!0,f(),s=Zw(b,e,P),D.error(P)},complete:()=>{d=!0,f(),s=Zw(b,i),D.complete()}}),At(w).subscribe(a))})(o)}}function Zw(t,n,...e){if(n===!0){t();return}if(n===!1)return;let i=new Bs({next:()=>{i.unsubscribe(),t()}});return At(n(...e)).subscribe(i)}function dd(t,n,e){let i,r=!1;return t&&typeof t=="object"?{bufferSize:i=1/0,windowTime:n=1/0,refCount:r=!1,scheduler:e}=t:i=t??1/0,Nl({connector:()=>new $a(i,n,e),resetOnError:!0,resetOnComplete:!1,resetOnRefCountZero:r})}function Ya(t){return ce((n,e)=>t<=e)}function He(...t){let n=Wa(t);return Qe((e,i)=>{(n?mo(t,e,n):mo(t,e)).subscribe(i)})}function $e(t,n){return Qe((e,i)=>{let r=null,o=0,a=!1,s=()=>a&&!r&&i.complete();e.subscribe(Ue(i,l=>{r?.unsubscribe();let c=0,d=o++;At(t(l,d)).subscribe(r=Ue(i,m=>i.next(n?n(l,m,d,c++):m),()=>{r=null,s()}))},()=>{a=!0,s()}))})}function Te(t){return Qe((n,e)=>{At(t).subscribe(Ue(e,()=>e.complete(),ad)),!e.closed&&n.subscribe(e)})}function Xw(t,n=!1){return Qe((e,i)=>{let r=0;e.subscribe(Ue(i,o=>{let a=t(o,r++);(a||n)&&i.next(o),!a&&i.complete()}))})}function Be(t,n,e){let i=Ke(t)||n||e?{next:t,error:n,complete:e}:t;return i?Qe((r,o)=>{var a;(a=i.subscribe)===null||a===void 0||a.call(i);let s=!0;r.subscribe(Ue(o,l=>{var c;(c=i.next)===null||c===void 0||c.call(i,l),o.next(l)},()=>{var l;s=!1,(l=i.complete)===null||l===void 0||l.call(i),o.complete()},l=>{var c;s=!1,(c=i.error)===null||c===void 0||c.call(i,l),o.error(l)},()=>{var l,c;s&&((l=i.unsubscribe)===null||l===void 0||l.call(i)),(c=i.finalize)===null||c===void 0||c.call(i)}))}):Mr}function eO(t){let n=Xe(null);try{return t()}finally{Xe(n)}}var tO=De(M({},td),{consumerIsAlwaysLive:!0,consumerAllowSignalWrites:!0,dirty:!0,kind:"effect"});function iO(t){if(t.dirty=!1,t.version>0&&!nd(t))return;t.version++;let n=Sl(t);try{t.cleanup(),t.fn()}finally{id(t,n)}}var Ll=class{full;major;minor;patch;constructor(n){this.full=n;let e=n.split(".");this.major=e[0],this.minor=e[1],this.patch=e.slice(2).join(".")}},wp=new Ll("20.3.16");var pb="https://angular.dev/best-practices/security#preventing-cross-site-scripting-xss",ue=class extends Error{code;constructor(n,e){super(Ro(n,e)),this.code=n}};function f$(t){return`NG0${Math.abs(t)}`}function Ro(t,n){return`${f$(t)}${n?": "+n:""}`}var Po=globalThis;function Qt(t){for(let n in t)if(t[n]===Qt)return n;throw Error("")}function oO(t,n){for(let e in n)n.hasOwnProperty(e)&&!t.hasOwnProperty(e)&&(t[e]=n[e])}function $s(t){if(typeof t=="string")return t;if(Array.isArray(t))return`[${t.map($s).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 i=e.indexOf(` +`);return i>=0?e.slice(0,i):e}function fb(t,n){return t?n?`${t} ${n}`:t:n||""}var g$=Qt({__forward_ref__:Qt});function Kt(t){return t.__forward_ref__=Kt,t.toString=function(){return $s(this())},t}function _n(t){return dD(t)?t():t}function dD(t){return typeof t=="function"&&t.hasOwnProperty(g$)&&t.__forward_ref__===Kt}function O(t){return{token:t.token,providedIn:t.providedIn||null,factory:t.factory,value:void 0}}function J(t){return{providers:t.providers||[],imports:t.imports||[]}}function Dp(t){return _$(t,gb)}function uD(t){return Dp(t)!==null}function _$(t,n){return t.hasOwnProperty(n)&&t[n]||null}function b$(t){let n=t?.[gb]??null;return n||null}function eD(t){return t&&t.hasOwnProperty(mb)?t[mb]:null}var gb=Qt({\u0275prov:Qt}),mb=Qt({\u0275inj:Qt}),T=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=O({token:this,providedIn:e.providedIn||"root",factory:e.factory}))}get multi(){return this}toString(){return`InjectionToken ${this._desc}`}};function mD(t){return t&&!!t.\u0275providers}var hD=Qt({\u0275cmp:Qt}),pD=Qt({\u0275dir:Qt}),fD=Qt({\u0275pipe:Qt}),gD=Qt({\u0275mod:Qt}),yp=Qt({\u0275fac:Qt}),fd=Qt({__NG_ELEMENT_ID__:Qt}),nO=Qt({__NG_ENV_ID__:Qt});function Fo(t){return typeof t=="string"?t:t==null?"":String(t)}function aO(t){return typeof t=="function"?t.name||t.toString():typeof t=="object"&&t!=null&&typeof t.type=="function"?t.type.name||t.type.toString():Fo(t)}var sO=Qt({ngErrorCode:Qt}),v$=Qt({ngErrorMessage:Qt}),y$=Qt({ngTokenPath:Qt});function _D(t,n){return lO("",-200,n)}function _b(t,n){throw new ue(-201,!1)}function lO(t,n,e){let i=new ue(n,t);return i[sO]=n,i[v$]=t,e&&(i[y$]=e),i}function x$(t){return t[sO]}var tD;function cO(){return tD}function kr(t){let n=tD;return tD=t,n}function bD(t,n,e){let i=Dp(t);if(i&&i.providedIn=="root")return i.value===void 0?i.value=i.factory():i.value;if(e&8)return null;if(n!==void 0)return n;_b(t,"Injector")}var C$={},ud=C$,iD="__NG_DI_FLAG__",nD=class{injector;constructor(n){this.injector=n}retrieve(n,e){let i=md(e)||0;try{return this.injector.get(n,i&8?null:ud,i)}catch(r){if(Fu(r))return r;throw r}}};function w$(t,n=0){let e=M_();if(e===void 0)throw new ue(-203,!1);if(e===null)return bD(t,void 0,n);{let i=D$(n),r=e.retrieve(t,i);if(Fu(r)){if(i.optional)return null;throw r}return r}}function pe(t,n=0){return(cO()||w$)(_n(t),n)}function u(t,n){return pe(t,md(n))}function md(t){return typeof t>"u"||typeof t=="number"?t:0|(t.optional&&8)|(t.host&&1)|(t.self&&2)|(t.skipSelf&&4)}function D$(t){return{optional:!!(t&8),host:!!(t&1),self:!!(t&2),skipSelf:!!(t&4)}}function rD(t){let n=[];for(let e=0;eArray.isArray(e)?bb(e,n):n(e))}function yD(t,n,e){n>=t.length?t.push(e):t.splice(n,0,e)}function Ep(t,n){return n>=t.length-1?t.pop():t.splice(n,1)[0]}function mO(t,n){let e=[];for(let i=0;in;){let o=r-2;t[r]=t[o],r--}t[n]=e,t[n+1]=i}}function Mp(t,n,e){let i=Qu(t,n);return i>=0?t[i|1]=e:(i=~i,hO(t,i,n,e)),i}function vb(t,n){let e=Qu(t,n);if(e>=0)return t[e|1]}function Qu(t,n){return M$(t,n,1)}function M$(t,n,e){let i=0,r=t.length>>e;for(;r!==i;){let o=i+(r-i>>1),a=t[o<n?r=o:i=o+1}return~(r<{e.push(a)};return bb(n,a=>{let s=a;hb(s,o,[],i)&&(r||=[],r.push(s))}),r!==void 0&&gO(r,o),e}function gO(t,n){for(let e=0;e{n(o,i)})}}function hb(t,n,e,i){if(t=_n(t),!t)return!1;let r=null,o=eD(t),a=!o&&Ka(t);if(!o&&!a){let l=t.ngModule;if(o=eD(l),o)r=l;else return!1}else{if(a&&!a.standalone)return!1;r=t}let s=i.has(r);if(a){if(s)return!1;if(i.add(r),a.dependencies){let l=typeof a.dependencies=="function"?a.dependencies():a.dependencies;for(let c of l)hb(c,n,e,i)}}else if(o){if(o.imports!=null&&!s){i.add(r);let c;try{bb(o.imports,d=>{hb(d,n,e,i)&&(c||=[],c.push(d))})}finally{}c!==void 0&&gO(c,n)}if(!s){let c=Vl(r)||(()=>new r);n({provide:r,useFactory:c,deps:ur},r),n({provide:CD,useValue:r,multi:!0},r),n({provide:Qa,useValue:()=>pe(r),multi:!0},r)}let l=o.providers;if(l!=null&&!s){let c=t;ED(l,d=>{n(d,c)})}}else return!1;return r!==t&&t.providers!==void 0}function ED(t,n){for(let e of t)mD(e)&&(e=e.\u0275providers),Array.isArray(e)?ED(e,n):n(e)}var k$=Qt({provide:String,useValue:Qt});function _O(t){return t!==null&&typeof t=="object"&&k$ in t}function S$(t){return!!(t&&t.useExisting)}function T$(t){return!!(t&&t.useFactory)}function hd(t){return typeof t=="function"}function bO(t){return!!t.useClass}var kp=new T(""),ub={},rO={},Jw;function Ku(){return Jw===void 0&&(Jw=new xp),Jw}var Wt=class{},pd=class extends Wt{parent;source;scopes;records=new Map;_ngOnDestroyHooks=new Set;_onDestroyHooks=[];get destroyed(){return this._destroyed}_destroyed=!1;injectorDefTypes;constructor(n,e,i,r){super(),this.parent=e,this.source=i,this.scopes=r,aD(n,a=>this.processProvider(a)),this.records.set(xD,Yu(void 0,this)),r.has("environment")&&this.records.set(Wt,Yu(void 0,this));let o=this.records.get(kp);o!=null&&typeof o.value=="string"&&this.scopes.add(o.value),this.injectorDefTypes=new Set(this.get(CD,ur,{self:!0}))}retrieve(n,e){let i=md(e)||0;try{return this.get(n,ud,i)}catch(r){if(Fu(r))return r;throw r}}destroy(){vp(this),this._destroyed=!0;let n=Xe(null);try{for(let i of this._ngOnDestroyHooks)i.ngOnDestroy();let e=this._onDestroyHooks;this._onDestroyHooks=[];for(let i of e)i()}finally{this.records.clear(),this._ngOnDestroyHooks.clear(),this.injectorDefTypes.clear(),Xe(n)}}onDestroy(n){return vp(this),this._onDestroyHooks.push(n),()=>this.removeOnDestroy(n)}runInContext(n){vp(this);let e=Ua(this),i=kr(void 0),r;try{return n()}finally{Ua(e),kr(i)}}get(n,e=ud,i){if(vp(this),n.hasOwnProperty(nO))return n[nO](this);let r=md(i),o,a=Ua(this),s=kr(void 0);try{if(!(r&4)){let c=this.records.get(n);if(c===void 0){let d=P$(n)&&Dp(n);d&&this.injectableDefInScope(d)?c=Yu(oD(n),ub):c=null,this.records.set(n,c)}if(c!=null)return this.hydrate(n,c,r)}let l=r&2?Ku():this.parent;return e=r&8&&e===ud?null:e,l.get(n,e)}catch(l){let c=x$(l);throw c===-200||c===-201?new ue(c,null):l}finally{kr(s),Ua(a)}}resolveInjectorInitializers(){let n=Xe(null),e=Ua(this),i=kr(void 0),r;try{let o=this.get(Qa,ur,{self:!0});for(let a of o)a()}finally{Ua(e),kr(i),Xe(n)}}toString(){let n=[],e=this.records;for(let i of e.keys())n.push($s(i));return`R3Injector[${n.join(", ")}]`}processProvider(n){n=_n(n);let e=hd(n)?n:_n(n&&n.provide),i=A$(n);if(!hd(n)&&n.multi===!0){let r=this.records.get(e);r||(r=Yu(void 0,ub,!0),r.factory=()=>rD(r.multi),this.records.set(e,r)),e=n,r.multi.push(n)}this.records.set(e,i)}hydrate(n,e,i){let r=Xe(null);try{if(e.value===rO)throw _D($s(n));return e.value===ub&&(e.value=rO,e.value=e.factory(void 0,i)),typeof e.value=="object"&&e.value&&R$(e.value)&&this._ngOnDestroyHooks.add(e.value),e.value}finally{Xe(r)}}injectableDefInScope(n){if(!n.providedIn)return!1;let e=_n(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 oD(t){let n=Dp(t),e=n!==null?n.factory:Vl(t);if(e!==null)return e;if(t instanceof T)throw new ue(204,!1);if(t instanceof Function)return I$(t);throw new ue(204,!1)}function I$(t){if(t.length>0)throw new ue(204,!1);let e=b$(t);return e!==null?()=>e.factory(t):()=>new t}function A$(t){if(_O(t))return Yu(void 0,t.useValue);{let n=MD(t);return Yu(n,ub)}}function MD(t,n,e){let i;if(hd(t)){let r=_n(t);return Vl(r)||oD(r)}else if(_O(t))i=()=>_n(t.useValue);else if(T$(t))i=()=>t.useFactory(...rD(t.deps||[]));else if(S$(t))i=(r,o)=>pe(_n(t.useExisting),o!==void 0&&o&8?8:void 0);else{let r=_n(t&&(t.useClass||t.provide));if(O$(t))i=()=>new r(...rD(t.deps));else return Vl(r)||oD(r)}return i}function vp(t){if(t.destroyed)throw new ue(205,!1)}function Yu(t,n,e=!1){return{factory:t,value:n,multi:e?[]:void 0}}function O$(t){return!!t.deps}function R$(t){return t!==null&&typeof t=="object"&&typeof t.ngOnDestroy=="function"}function P$(t){return typeof t=="function"||typeof t=="object"&&t.ngMetadataName==="InjectionToken"}function aD(t,n){for(let e of t)Array.isArray(e)?aD(e,n):e&&mD(e)?aD(e.\u0275providers,n):n(e)}function In(t,n){let e;t instanceof pd?(vp(t),e=t):e=new nD(t);let i,r=Ua(e),o=kr(void 0);try{return n()}finally{Ua(r),kr(o)}}function vO(){return cO()!==void 0||M_()!=null}var ga=0,We=1,et=2,bn=3,No=4,Sr=5,gd=6,Zu=7,qi=8,Ws=9,Za=10,ri=11,Xu=12,kD=13,_d=14,mr=15,jl=16,bd=17,Xa=18,Sp=19,SD=20,Us=21,Cb=22,Gs=23,ho=24,vd=25,yd=26,mi=27,yO=1,TD=6,Hl=7,Tp=8,xd=9,Yi=10;function Ja(t){return Array.isArray(t)&&typeof t[yO]=="object"}function _a(t){return Array.isArray(t)&&t[yO]===!0}function ID(t){return(t.flags&4)!==0}function qs(t){return t.componentOffset>-1}function Ju(t){return(t.flags&1)===1}function ba(t){return!!t.template}function em(t){return(t[et]&512)!==0}function Cd(t){return(t[et]&256)===256}var AD="svg",xO="math";function Lo(t){for(;Array.isArray(t);)t=t[ga];return t}function OD(t,n){return Lo(n[t])}function Vo(t,n){return Lo(n[t.index])}function Ip(t,n){return t.data[n]}function tm(t,n){return t[n]}function RD(t,n,e,i){e>=t.data.length&&(t.data[e]=null,t.blueprint[e]=null),n[e]=i}function Bo(t,n){let e=n[t];return Ja(e)?e:e[ga]}function CO(t){return(t[et]&4)===4}function wb(t){return(t[et]&128)===128}function wO(t){return _a(t[bn])}function po(t,n){return n==null?null:t[n]}function PD(t){t[bd]=0}function FD(t){t[et]&1024||(t[et]|=1024,wb(t)&&zl(t))}function DO(t,n){for(;t>0;)n=n[_d],t--;return n}function Ap(t){return!!(t[et]&9216||t[ho]?.dirty)}function Db(t){t[Za].changeDetectionScheduler?.notify(8),t[et]&64&&(t[et]|=1024),Ap(t)&&zl(t)}function zl(t){t[Za].changeDetectionScheduler?.notify(0);let n=Bl(t);for(;n!==null&&!(n[et]&8192||(n[et]|=8192,!wb(n)));)n=Bl(n)}function ND(t,n){if(Cd(t))throw new ue(911,!1);t[Us]===null&&(t[Us]=[]),t[Us].push(n)}function EO(t,n){if(t[Us]===null)return;let e=t[Us].indexOf(n);e!==-1&&t[Us].splice(e,1)}function Bl(t){let n=t[bn];return _a(n)?n[bn]:n}function LD(t){return t[Zu]??=[]}function VD(t){return t.cleanup??=[]}function MO(t,n,e,i){let r=LD(n);r.push(e),t.firstCreatePass&&VD(t).push(i,r.length-1)}var ht={lFrame:LO(null),bindingsEnabled:!0,skipHydrationRootTNode:null};var sD=!1;function kO(){return ht.lFrame.elementDepthCount}function SO(){ht.lFrame.elementDepthCount++}function BD(){ht.lFrame.elementDepthCount--}function Eb(){return ht.bindingsEnabled}function jD(){return ht.skipHydrationRootTNode!==null}function HD(t){return ht.skipHydrationRootTNode===t}function zD(){ht.skipHydrationRootTNode=null}function Ne(){return ht.lFrame.lView}function gi(){return ht.lFrame.tView}function I(t){return ht.lFrame.contextLView=t,t[qi]}function A(t){return ht.lFrame.contextLView=null,t}function tn(){let t=UD();for(;t!==null&&t.type===64;)t=t.parent;return t}function UD(){return ht.lFrame.currentTNode}function TO(){let t=ht.lFrame,n=t.currentTNode;return t.isParent?n:n.parent}function im(t,n){let e=ht.lFrame;e.currentTNode=t,e.isParent=n}function $D(){return ht.lFrame.isParent}function WD(){ht.lFrame.isParent=!1}function IO(){return ht.lFrame.contextLView}function GD(){return sD}function nm(t){let n=sD;return sD=t,n}function es(){let t=ht.lFrame,n=t.bindingRootIndex;return n===-1&&(n=t.bindingRootIndex=t.tView.bindingStartIndex),n}function qD(){return ht.lFrame.bindingIndex}function AO(t){return ht.lFrame.bindingIndex=t}function ts(){return ht.lFrame.bindingIndex++}function Op(t){let n=ht.lFrame,e=n.bindingIndex;return n.bindingIndex=n.bindingIndex+t,e}function OO(){return ht.lFrame.inI18n}function RO(t,n){let e=ht.lFrame;e.bindingIndex=e.bindingRootIndex=t,Mb(n)}function PO(){return ht.lFrame.currentDirectiveIndex}function Mb(t){ht.lFrame.currentDirectiveIndex=t}function FO(t){let n=ht.lFrame.currentDirectiveIndex;return n===-1?null:t[n]}function kb(){return ht.lFrame.currentQueryIndex}function Rp(t){ht.lFrame.currentQueryIndex=t}function F$(t){let n=t[We];return n.type===2?n.declTNode:n.type===1?t[Sr]:null}function YD(t,n,e){if(e&4){let r=n,o=t;for(;r=r.parent,r===null&&!(e&1);)if(r=F$(o),r===null||(o=o[_d],r.type&10))break;if(r===null)return!1;n=r,t=o}let i=ht.lFrame=NO();return i.currentTNode=n,i.lView=t,!0}function Sb(t){let n=NO(),e=t[We];ht.lFrame=n,n.currentTNode=e.firstChild,n.lView=t,n.tView=e,n.contextLView=t,n.bindingIndex=e.bindingStartIndex,n.inI18n=!1}function NO(){let t=ht.lFrame,n=t===null?null:t.child;return n===null?LO(t):n}function LO(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 VO(){let t=ht.lFrame;return ht.lFrame=t.parent,t.currentTNode=null,t.lView=null,t}var QD=VO;function Tb(){let t=VO();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 BO(t){return(ht.lFrame.contextLView=DO(t,ht.lFrame.contextLView))[qi]}function va(){return ht.lFrame.selectedIndex}function Ul(t){ht.lFrame.selectedIndex=t}function rm(){let t=ht.lFrame;return Ip(t.tView,t.selectedIndex)}function Gt(){ht.lFrame.currentNamespace=AD}function jo(){N$()}function N$(){ht.lFrame.currentNamespace=null}function jO(){return ht.lFrame.currentNamespace}var HO=!0;function Ib(){return HO}function Pp(t){HO=t}function lD(t,n=null,e=null,i){let r=KD(t,n,e,i);return r.resolveInjectorInitializers(),r}function KD(t,n=null,e=null,i,r=new Set){let o=[e||ur,xb(t)];return i=i||(typeof t=="object"?void 0:$s(t)),new pd(o,n||Ku(),i||null,r)}var de=class t{static THROW_IF_NOT_FOUND=ud;static NULL=new xp;static create(n,e){if(Array.isArray(n))return lD({name:""},e,n,"");{let i=n.name??"";return lD({name:i},n.parent,n.providers,i)}}static \u0275prov=O({token:t,providedIn:"any",factory:()=>pe(xD)});static __NG_ELEMENT_ID__=-1},ge=new T(""),nn=(()=>{class t{static __NG_ELEMENT_ID__=L$;static __NG_ENV_ID__=e=>e}return t})(),Cp=class extends nn{_lView;constructor(n){super(),this._lView=n}get destroyed(){return Cd(this._lView)}onDestroy(n){let e=this._lView;return ND(e,n),()=>EO(e,n)}};function L$(){return new Cp(Ne())}var Tn=class{_console=console;handleError(n){this._console.error("ERROR",n)}},hr=new T("",{providedIn:"root",factory:()=>{let t=u(Wt),n;return e=>{t.destroyed&&!n?setTimeout(()=>{throw e}):(n??=t.get(Tn),n.handleError(e))}}}),zO={provide:Qa,useValue:()=>void u(Tn),multi:!0},V$=new T("",{providedIn:"root",factory:()=>{let t=u(ge).defaultView;if(!t)return;let n=u(hr),e=o=>{n(o.reason),o.preventDefault()},i=o=>{o.error?n(o.error):n(new Error(o.message,{cause:o})),o.preventDefault()},r=()=>{t.addEventListener("unhandledrejection",e),t.addEventListener("error",i)};typeof Zone<"u"?Zone.root.run(r):r(),u(nn).onDestroy(()=>{t.removeEventListener("error",i),t.removeEventListener("unhandledrejection",e)})}});function ZD(){return zr([fO(()=>void u(V$))])}function is(t){return typeof t=="function"&&t[ln]!==void 0}function he(t,n){let[e,i,r]=Ow(t,n?.equal),o=e,a=o[ln];return o.set=i,o.update=r,o.asReadonly=Ab.bind(o),o}function Ab(){let t=this[ln];if(t.readonlyFn===void 0){let n=()=>this();n[ln]=t,t.readonlyFn=n}return t.readonlyFn}function XD(t){return is(t)&&typeof t.set=="function"}var wd=(()=>{class t{view;node;constructor(e,i){this.view=e,this.node=i}static __NG_ELEMENT_ID__=B$}return t})();function B$(){return new wd(Ne(),tn())}var Oo=class{},Fp=new T("",{providedIn:"root",factory:()=>!1});var JD=new T(""),eE=new T(""),ns=(()=>{class t{taskId=0;pendingTasks=new Set;destroyed=!1;pendingTask=new tt(!1);get hasPendingTasks(){return this.destroyed?!1:this.pendingTask.value}get hasPendingTasksObservable(){return this.destroyed?new Fe(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),e}has(e){return this.pendingTasks.has(e)}remove(e){this.pendingTasks.delete(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=O({token:t,providedIn:"root",factory:()=>new t})}return t})(),om=(()=>{class t{internalPendingTasks=u(ns);scheduler=u(Oo);errorHandler=u(hr);add(){let e=this.internalPendingTasks.add();return()=>{this.internalPendingTasks.has(e)&&(this.scheduler.notify(11),this.internalPendingTasks.remove(e))}}run(e){let i=this.add();e().catch(this.errorHandler).finally(i)}static \u0275prov=O({token:t,providedIn:"root",factory:()=>new t})}return t})();function Dd(...t){}var Np=(()=>{class t{static \u0275prov=O({token:t,providedIn:"root",factory:()=>new cD})}return t})(),cD=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,i=this.queues.get(e);i.has(n)&&(i.delete(n),n.dirty&&this.dirtyEffectCount--)}enqueue(n){let e=n.zone;this.queues.has(e)||this.queues.set(e,new Set);let i=this.queues.get(e);i.has(n)||i.add(n)}flush(){for(;this.dirtyEffectCount>0;){let n=!1;for(let[e,i]of this.queues)e===null?n||=this.flushQueue(i):n||=e.run(()=>this.flushQueue(i));n||(this.dirtyEffectCount=0)}}flushQueue(n){let e=!1;for(let i of n)i.dirty&&(this.dirtyEffectCount--,e=!0,i.run());return e}};function pm(t){return{toString:t}.toString()}var Ob="__parameters__";function W$(t){return function(...e){if(t){let i=t(...e);for(let r in i)this[r]=i[r]}}}function SR(t,n,e){return pm(()=>{let i=W$(n);function r(...o){if(this instanceof r)return i.apply(this,o),this;let a=new r(...o);return s.annotation=a,s;function s(l,c,d){let m=l.hasOwnProperty(Ob)?l[Ob]:Object.defineProperty(l,Ob,{value:[]})[Ob];for(;m.length<=d;)m.push(null);return(m[d]=m[d]||[]).push(a),l}}return r.prototype.ngMetadataName=t,r.annotationCls=r,r})}var ss=vD(SR("Optional"),8);var Gl=vD(SR("SkipSelf"),4);var Td=Function;function G$(t){return typeof t=="function"}var Ub=class{previousValue;currentValue;firstChange;constructor(n,e,i){this.previousValue=n,this.currentValue=e,this.firstChange=i}isFirstChange(){return this.firstChange}};function TR(t,n,e,i){n!==null?n.applyValueToInputSignal(n,i):t[e]=i}var Ae=(()=>{let t=()=>IR;return t.ngInherit=!0,t})();function IR(t){return t.type.prototype.ngOnChanges&&(t.setInput=Y$),q$}function q$(){let t=OR(this),n=t?.current;if(n){let e=t.previous;if(e===fa)t.previous=n;else for(let i in n)e[i]=n[i];t.current=null,this.ngOnChanges(n)}}function Y$(t,n,e,i,r){let o=this.declaredInputs[i],a=OR(t)||Q$(t,{previous:fa,current:null}),s=a.current||(a.current={}),l=a.previous,c=l[o];s[o]=new Ub(c&&c.currentValue,e,l===fa),TR(t,n,r,e)}var AR="__ngSimpleChanges__";function OR(t){return t[AR]||null}function Q$(t,n){return t[AR]=n}var UO=[];var oi=function(t,n=null,e){for(let i=0;i=i)break}else n[l]<0&&(t[bd]+=65536),(s>14>16&&(t[et]&3)===n&&(t[et]+=16384,$O(s,o)):$O(s,o)}var sm=-1,Md=class{factory;name;injectImpl;resolving=!1;canSeeViewProviders;multi;componentProviders;index;providerFactory;constructor(n,e,i,r){this.factory=n,this.name=r,this.canSeeViewProviders=e,this.injectImpl=i}};function X$(t){return(t.flags&8)!==0}function J$(t){return(t.flags&16)!==0}function eW(t,n,e){let i=0;for(;in){a=o-1;break}}}for(;o>16}function Wb(t,n){let e=iW(t),i=n;for(;e>0;)i=i[_d],e--;return i}var mE=!0;function Gb(t){let n=mE;return mE=t,n}var nW=256,LR=nW-1,VR=5,rW=0,rs={};function oW(t,n,e){let i;typeof e=="string"?i=e.charCodeAt(0)||0:e.hasOwnProperty(fd)&&(i=e[fd]),i==null&&(i=e[fd]=rW++);let r=i&LR,o=1<>VR)]|=o}function qb(t,n){let e=BR(t,n);if(e!==-1)return e;let i=n[We];i.firstCreatePass&&(t.injectorIndex=n.length,iE(i.data,t),iE(n,null),iE(i.blueprint,null));let r=ZE(t,n),o=t.injectorIndex;if(NR(r)){let a=$b(r),s=Wb(r,n),l=s[We].data;for(let c=0;c<8;c++)n[o+c]=s[a+c]|l[a+c]}return n[o+8]=r,o}function iE(t,n){t.push(0,0,0,0,0,0,0,0,n)}function BR(t,n){return t.injectorIndex===-1||t.parent&&t.parent.injectorIndex===t.injectorIndex||n[t.injectorIndex+8]===null?-1:t.injectorIndex}function ZE(t,n){if(t.parent&&t.parent.injectorIndex!==-1)return t.parent.injectorIndex;let e=0,i=null,r=n;for(;r!==null;){if(i=$R(r),i===null)return sm;if(e++,r=r[_d],i.injectorIndex!==-1)return i.injectorIndex|e<<16}return sm}function hE(t,n,e){oW(t,n,e)}function aW(t,n){if(n==="class")return t.classes;if(n==="style")return t.styles;let e=t.attrs;if(e){let i=e.length,r=0;for(;r>20,m=i?s:s+d,f=r?s+d:c;for(let b=m;b=l&&v.type===e)return b}if(r){let b=a[l];if(b&&ba(b)&&b.type===e)return l}return null}function Bp(t,n,e,i,r){let o=t[e],a=n.data;if(o instanceof Md){let s=o;if(s.resolving){let b=aO(a[e]);throw _D(b)}let l=Gb(s.canSeeViewProviders);s.resolving=!0;let c=a[e].type||a[e],d,m=s.injectImpl?kr(s.injectImpl):null,f=YD(t,i,0);try{o=t[e]=s.factory(void 0,r,a,t,i),n.firstCreatePass&&e>=i.directiveStart&&K$(e,a[e],n)}finally{m!==null&&kr(m),Gb(l),s.resolving=!1,QD()}}return o}function lW(t){if(typeof t=="string")return t.charCodeAt(0)||0;let n=t.hasOwnProperty(fd)?t[fd]:void 0;return typeof n=="number"?n>=0?n&LR:cW:n}function GO(t,n,e){let i=1<>VR)]&i)}function qO(t,n){return!(t&2)&&!(t&1&&n)}var Ed=class{_tNode;_lView;constructor(n,e){this._tNode=n,this._lView=e}get(n,e,i){return zR(this._tNode,this._lView,n,md(i),e)}};function cW(){return new Ed(tn(),Ne())}function fe(t){return pm(()=>{let n=t.prototype.constructor,e=n[yp]||pE(n),i=Object.prototype,r=Object.getPrototypeOf(t.prototype).constructor;for(;r&&r!==i;){let o=r[yp]||pE(r);if(o&&o!==e)return o;r=Object.getPrototypeOf(r)}return o=>new o})}function pE(t){return dD(t)?()=>{let n=pE(_n(t));return n&&n()}:Vl(t)}function dW(t,n,e,i,r){let o=t,a=n;for(;o!==null&&a!==null&&a[et]&2048&&!em(a);){let s=UR(o,a,e,i|2,rs);if(s!==rs)return s;let l=o.parent;if(!l){let c=a[SD];if(c){let d=c.get(e,rs,i);if(d!==rs)return d}l=$R(a),a=a[_d]}o=l}return r}function $R(t){let n=t[We],e=n.type;return e===2?n.declTNode:e===1?t[Sr]:null}function qp(t){return aW(tn(),t)}function uW(){return fm(tn(),Ne())}function fm(t,n){return new q(Vo(t,n))}var q=(()=>{class t{nativeElement;constructor(e){this.nativeElement=e}static __NG_ELEMENT_ID__=uW}return t})();function WR(t){return t instanceof q?t.nativeElement:t}function mW(){return this._results[Symbol.iterator]()}var pr=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 z}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 i=uO(n);(this._changesDetected=!dO(this._results,i,e))&&(this._results=i,this.length=i.length,this.last=i[this.length-1],this.first=i[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]=mW};function GR(t){return(t.flags&128)===128}var XE=(function(t){return t[t.OnPush=0]="OnPush",t[t.Default=1]="Default",t})(XE||{}),qR=new Map,hW=0;function pW(){return hW++}function fW(t){qR.set(t[Sp],t)}function fE(t){qR.delete(t[Sp])}var YO="__ngContext__";function cm(t,n){Ja(n)?(t[YO]=n[Sp],fW(n)):t[YO]=n}function YR(t){return KR(t[Xu])}function QR(t){return KR(t[No])}function KR(t){for(;t!==null&&!_a(t);)t=t[No];return t}var gE;function JE(t){gE=t}function eM(){if(gE!==void 0)return gE;if(typeof document<"u")return document;throw new ue(210,!1)}var ql=new T("",{providedIn:"root",factory:()=>gW}),gW="ng",sv=new T(""),Ks=new T("",{providedIn:"platform",factory:()=>"unknown"});var Yp=new T(""),gm=new T("",{providedIn:"root",factory:()=>eM().body?.querySelector("[ngCspNonce]")?.getAttribute("ngCspNonce")||null});var _W="h",bW="b";var ZR="r";var XR="di";var JR=!1,eP=new T("",{providedIn:"root",factory:()=>JR});var lv=new T("");var vW=(t,n,e,i)=>{};function yW(t,n,e,i){vW(t,n,e,i)}function cv(t){return(t.flags&32)===32}var xW=()=>null;function tP(t,n,e=!1){return xW(t,n,e)}function iP(t,n){let e=t.contentQueries;if(e!==null){let i=Xe(null);try{for(let r=0;rt,createScript:t=>t,createScriptURL:t=>t})}catch{}return Rb}function dv(t){return CW()?.createHTML(t)||t}var Pb;function nP(){if(Pb===void 0&&(Pb=null,Po.trustedTypes))try{Pb=Po.trustedTypes.createPolicy("angular#unsafe-bypass",{createHTML:t=>t,createScript:t=>t,createScriptURL:t=>t})}catch{}return Pb}function QO(t){return nP()?.createHTML(t)||t}function KO(t){return nP()?.createScriptURL(t)||t}var Qs=class{changingThisBreaksApplicationSecurity;constructor(n){this.changingThisBreaksApplicationSecurity=n}toString(){return`SafeValue must use [property]=binding: ${this.changingThisBreaksApplicationSecurity} (see ${pb})`}},bE=class extends Qs{getTypeName(){return"HTML"}},vE=class extends Qs{getTypeName(){return"Style"}},yE=class extends Qs{getTypeName(){return"Script"}},xE=class extends Qs{getTypeName(){return"URL"}},CE=class extends Qs{getTypeName(){return"ResourceURL"}};function Ur(t){return t instanceof Qs?t.changingThisBreaksApplicationSecurity:t}function ls(t,n){let e=rP(t);if(e!=null&&e!==n){if(e==="ResourceURL"&&n==="URL")return!0;throw new Error(`Required a safe ${n}, got a ${e} (see ${pb})`)}return e===n}function rP(t){return t instanceof Qs&&t.getTypeName()||null}function iM(t){return new bE(t)}function nM(t){return new vE(t)}function rM(t){return new yE(t)}function oM(t){return new xE(t)}function aM(t){return new CE(t)}function wW(t){let n=new DE(t);return DW()?new wE(n):n}var wE=class{inertDocumentHelper;constructor(n){this.inertDocumentHelper=n}getInertBodyElement(n){n=""+n;try{let e=new window.DOMParser().parseFromString(dv(n),"text/html").body;return e===null?this.inertDocumentHelper.getInertBodyElement(n):(e.firstChild?.remove(),e)}catch{return null}}},DE=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=dv(n),e}};function DW(){try{return!!new window.DOMParser().parseFromString(dv(""),"text/html")}catch{return!1}}var EW=/^(?!javascript:)(?:[a-z0-9+.-]+:|[^&:\/?#]*(?:[\/?#]|$))/i;function Qp(t){return t=String(t),t.match(EW)?t:"unsafe:"+t}function Zs(t){let n={};for(let e of t.split(","))n[e]=!0;return n}function Kp(...t){let n={};for(let e of t)for(let i in e)e.hasOwnProperty(i)&&(n[i]=!0);return n}var oP=Zs("area,br,col,hr,img,wbr"),aP=Zs("colgroup,dd,dt,li,p,tbody,td,tfoot,th,thead,tr"),sP=Zs("rp,rt"),MW=Kp(sP,aP),kW=Kp(aP,Zs("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")),SW=Kp(sP,Zs("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")),ZO=Kp(oP,kW,SW,MW),lP=Zs("background,cite,href,itemtype,longdesc,poster,src,xlink:href"),TW=Zs("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"),IW=Zs("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"),AW=Kp(lP,TW,IW),OW=Zs("script,style,template"),EE=class{sanitizedSomething=!1;buf=[];sanitizeChildren(n){let e=n.firstChild,i=!0,r=[];for(;e;){if(e.nodeType===Node.ELEMENT_NODE?i=this.startElement(e):e.nodeType===Node.TEXT_NODE?this.chars(e.nodeValue):this.sanitizedSomething=!0,i&&e.firstChild){r.push(e),e=FW(e);continue}for(;e;){e.nodeType===Node.ELEMENT_NODE&&this.endElement(e);let o=PW(e);if(o){e=o;break}e=r.pop()}}return this.buf.join("")}startElement(n){let e=XO(n).toLowerCase();if(!ZO.hasOwnProperty(e))return this.sanitizedSomething=!0,!OW.hasOwnProperty(e);this.buf.push("<"),this.buf.push(e);let i=n.attributes;for(let r=0;r"),!0}endElement(n){let e=XO(n).toLowerCase();ZO.hasOwnProperty(e)&&!oP.hasOwnProperty(e)&&(this.buf.push(""))}chars(n){this.buf.push(JO(n))}};function RW(t,n){return(t.compareDocumentPosition(n)&Node.DOCUMENT_POSITION_CONTAINED_BY)!==Node.DOCUMENT_POSITION_CONTAINED_BY}function PW(t){let n=t.nextSibling;if(n&&t!==n.previousSibling)throw cP(n);return n}function FW(t){let n=t.firstChild;if(n&&RW(t,n))throw cP(n);return n}function XO(t){let n=t.nodeName;return typeof n=="string"?n:"FORM"}function cP(t){return new Error(`Failed to sanitize html because the element is clobbered: ${t.outerHTML}`)}var NW=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,LW=/([^\#-~ |!])/g;function JO(t){return t.replace(/&/g,"&").replace(NW,function(n){let e=n.charCodeAt(0),i=n.charCodeAt(1);return"&#"+((e-55296)*1024+(i-56320)+65536)+";"}).replace(LW,function(n){return"&#"+n.charCodeAt(0)+";"}).replace(//g,">")}var Fb;function uv(t,n){let e=null;try{Fb=Fb||wW(t);let i=n?String(n):"";e=Fb.getInertBodyElement(i);let r=5,o=i;do{if(r===0)throw new Error("Failed to sanitize html because the input is unstable");r--,i=o,o=e.innerHTML,e=Fb.getInertBodyElement(i)}while(i!==o);let s=new EE().sanitizeChildren(eR(e)||e);return dv(s)}finally{if(e){let i=eR(e)||e;for(;i.firstChild;)i.firstChild.remove()}}}function eR(t){return"content"in t&&VW(t)?t.content:null}function VW(t){return t.nodeType===Node.ELEMENT_NODE&&t.nodeName==="TEMPLATE"}var BW=/^>|^->||--!>|)/g,HW="\u200B$1\u200B";function zW(t){return t.replace(BW,n=>n.replace(jW,HW))}function UW(t,n){return t.createText(n)}function $W(t,n,e){t.setValue(n,e)}function WW(t,n){return t.createComment(zW(n))}function dP(t,n,e){return t.createElement(n,e)}function Yb(t,n,e,i,r){t.insertBefore(n,e,i,r)}function uP(t,n,e){t.appendChild(n,e)}function tR(t,n,e,i,r){i!==null?Yb(t,n,e,i,r):uP(t,n,e)}function mP(t,n,e,i){t.removeChild(null,n,e,i)}function GW(t,n,e){t.setAttribute(n,"style",e)}function qW(t,n,e){e===""?t.removeAttribute(n,"class"):t.setAttribute(n,"class",e)}function hP(t,n,e){let{mergedAttrs:i,classes:r,styles:o}=e;i!==null&&eW(t,n,i),r!==null&&qW(t,n,r),o!==null&&GW(t,n,o)}var An=(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})(An||{});function Zp(t){let n=lM();return n?QO(n.sanitize(An.HTML,t)||""):ls(t,"HTML")?QO(Ur(t)):uv(eM(),Fo(t))}function $r(t){let n=lM();return n?n.sanitize(An.URL,t)||"":ls(t,"URL")?Ur(t):Qp(Fo(t))}function pP(t){let n=lM();if(n)return KO(n.sanitize(An.RESOURCE_URL,t)||"");if(ls(t,"ResourceURL"))return KO(Ur(t));throw new ue(904,!1)}var YW=new Set(["embed","frame","iframe","media","script"]),QW=new Set(["base","link","script"]);function KW(t,n){return n==="src"&&YW.has(t)||n==="href"&&QW.has(t)||n==="xlink:href"&&t==="script"?pP:$r}function sM(t,n,e){return KW(n,e)(t)}function lM(){let t=Ne();return t&&t[Za].sanitizer}function fP(t){return t instanceof Function?t():t}function ZW(t,n,e){let i=t.length;for(;;){let r=t.indexOf(n,e);if(r===-1)return r;if(r===0||t.charCodeAt(r-1)<=32){let o=n.length;if(r+o===i||t.charCodeAt(r+o)<=32)return r}e=r+1}}var gP="ng-template";function XW(t,n,e,i){let r=0;if(i){for(;r-1){let o;for(;++ro?m="":m=r[d+1].toLowerCase(),i&2&&c!==m){if(ya(i))return!1;a=!0}}}}return ya(i)||a}function ya(t){return(t&1)===0}function t7(t,n,e,i){if(n===null)return-1;let r=0;if(i||!e){let o=!1;for(;r-1)for(e++;e0?'="'+s+'"':"")+"]"}else i&8?r+="."+a:i&4&&(r+=" "+a);else r!==""&&!ya(a)&&(n+=iR(o,r),r=""),i=a,o=o||!ya(i);e++}return r!==""&&(n+=iR(o,r)),n}function s7(t){return t.map(a7).join(",")}function l7(t){let n=[],e=[],i=1,r=2;for(;inull),a=i;if(n&&typeof n=="object"){let l=n;r=l.next?.bind(l),o=l.error?.bind(l),a=l.complete?.bind(l)}this.__isAsync&&(o=this.wrapInTimeout(o),r&&(r=this.wrapInTimeout(r)),a&&(a=this.wrapInTimeout(a)));let s=super.subscribe({next:r,error:o,complete:a});return n instanceof ke&&n.add(s),s}wrapInTimeout(n){return e=>{let i=this.pendingTasks?.add();setTimeout(()=>{try{n(e)}finally{i!==void 0&&this.pendingTasks?.remove(i)}})}}},U=kE;function CP(t){let n,e;function i(){t=Dd;try{e!==void 0&&typeof cancelAnimationFrame=="function"&&cancelAnimationFrame(e),n!==void 0&&clearTimeout(n)}catch{}}return n=setTimeout(()=>{t(),i()}),typeof requestAnimationFrame=="function"&&(e=requestAnimationFrame(()=>{t(),i()})),()=>i()}function rR(t){return queueMicrotask(()=>t()),()=>{t=Dd}}var pM="isAngularZone",Qb=pM+"_ID",h7=0,ae=class t{hasPendingMacrotasks=!1;hasPendingMicrotasks=!1;isStable=!0;onUnstable=new U(!1);onMicrotaskEmpty=new U(!1);onStable=new U(!1);onError=new U(!1);constructor(n){let{enableLongStackTrace:e=!1,shouldCoalesceEventChangeDetection:i=!1,shouldCoalesceRunChangeDetection:r=!1,scheduleInRootZone:o=xP}=n;if(typeof Zone>"u")throw new ue(908,!1);Zone.assertZonePatched();let a=this;a._nesting=0,a._outer=a._inner=Zone.current,Zone.TaskTrackingZoneSpec&&(a._inner=a._inner.fork(new Zone.TaskTrackingZoneSpec)),e&&Zone.longStackTraceZoneSpec&&(a._inner=a._inner.fork(Zone.longStackTraceZoneSpec)),a.shouldCoalesceEventChangeDetection=!r&&i,a.shouldCoalesceRunChangeDetection=r,a.callbackScheduled=!1,a.scheduleInRootZone=o,g7(a)}static isInAngularZone(){return typeof Zone<"u"&&Zone.current.get(pM)===!0}static assertInAngularZone(){if(!t.isInAngularZone())throw new ue(909,!1)}static assertNotInAngularZone(){if(t.isInAngularZone())throw new ue(909,!1)}run(n,e,i){return this._inner.run(n,e,i)}runTask(n,e,i,r){let o=this._inner,a=o.scheduleEventTask("NgZoneEvent: "+r,n,p7,Dd,Dd);try{return o.runTask(a,e,i)}finally{o.cancelTask(a)}}runGuarded(n,e,i){return this._inner.runGuarded(n,e,i)}runOutsideAngular(n){return this._outer.run(n)}},p7={};function fM(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 f7(t){if(t.isCheckStableRunning||t.callbackScheduled)return;t.callbackScheduled=!0;function n(){CP(()=>{t.callbackScheduled=!1,SE(t),t.isCheckStableRunning=!0,fM(t),t.isCheckStableRunning=!1})}t.scheduleInRootZone?Zone.root.run(()=>{n()}):t._outer.run(()=>{n()}),SE(t)}function g7(t){let n=()=>{f7(t)},e=h7++;t._inner=t._inner.fork({name:"angular",properties:{[pM]:!0,[Qb]:e,[Qb+e]:!0},onInvokeTask:(i,r,o,a,s,l)=>{if(_7(l))return i.invokeTask(o,a,s,l);try{return oR(t),i.invokeTask(o,a,s,l)}finally{(t.shouldCoalesceEventChangeDetection&&a.type==="eventTask"||t.shouldCoalesceRunChangeDetection)&&n(),aR(t)}},onInvoke:(i,r,o,a,s,l,c)=>{try{return oR(t),i.invoke(o,a,s,l,c)}finally{t.shouldCoalesceRunChangeDetection&&!t.callbackScheduled&&!b7(l)&&n(),aR(t)}},onHasTask:(i,r,o,a)=>{i.hasTask(o,a),r===o&&(a.change=="microTask"?(t._hasPendingMicrotasks=a.microTask,SE(t),fM(t)):a.change=="macroTask"&&(t.hasPendingMacrotasks=a.macroTask))},onHandleError:(i,r,o,a)=>(i.handleError(o,a),t.runOutsideAngular(()=>t.onError.emit(a)),!1)})}function SE(t){t._hasPendingMicrotasks||(t.shouldCoalesceEventChangeDetection||t.shouldCoalesceRunChangeDetection)&&t.callbackScheduled===!0?t.hasPendingMicrotasks=!0:t.hasPendingMicrotasks=!1}function oR(t){t._nesting++,t.isStable&&(t.isStable=!1,t.onUnstable.emit(null))}function aR(t){t._nesting--,fM(t)}var jp=class{hasPendingMicrotasks=!1;hasPendingMacrotasks=!1;isStable=!0;onUnstable=new U;onMicrotaskEmpty=new U;onStable=new U;onError=new U;run(n,e,i){return n.apply(e,i)}runGuarded(n,e,i){return n.apply(e,i)}runOutsideAngular(n){return n()}runTask(n,e,i,r){return n.apply(e,i)}};function _7(t){return wP(t,"__ignore_ng_zone__")}function b7(t){return wP(t,"__scheduler_tick__")}function wP(t,n){return!Array.isArray(t)||t.length!==1?!1:t[0]?.data?.[n]===!0}var pv=(()=>{class t{impl=null;execute(){this.impl?.execute()}static \u0275prov=O({token:t,providedIn:"root",factory:()=>new t})}return t})(),gM=[0,1,2,3],_M=(()=>{class t{ngZone=u(ae);scheduler=u(Oo);errorHandler=u(Tn,{optional:!0});sequences=new Set;deferredRegistrations=new Set;executing=!1;constructor(){u(Yl,{optional:!0})}execute(){let e=this.sequences.size>0;e&&oi(16),this.executing=!0;for(let i of gM)for(let r of this.sequences)if(!(r.erroredOrDestroyed||!r.hooks[i]))try{r.pipelinedValue=this.ngZone.runOutsideAngular(()=>this.maybeTrace(()=>{let o=r.hooks[i];return o(r.pipelinedValue)},r.snapshot))}catch(o){r.erroredOrDestroyed=!0,this.errorHandler?.handleError(o)}this.executing=!1;for(let i of this.sequences)i.afterRun(),i.once&&(this.sequences.delete(i),i.destroy());for(let i of this.deferredRegistrations)this.sequences.add(i);this.deferredRegistrations.size>0&&this.scheduler.notify(7),this.deferredRegistrations.clear(),e&&oi(17)}register(e){let{view:i}=e;i!==void 0?((i[vd]??=[]).push(e),zl(i),i[et]|=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,i){return i?i.run(hv.AFTER_NEXT_RENDER,e):e()}static \u0275prov=O({token:t,providedIn:"root",factory:()=>new t})}return t})(),Hp=class{impl;hooks;view;once;snapshot;erroredOrDestroyed=!1;pipelinedValue=void 0;unregisterOnDestroy;constructor(n,e,i,r,o,a=null){this.impl=n,this.hooks=e,this.view=i,this.once=r,this.snapshot=a,this.unregisterOnDestroy=o?.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?.[vd];n&&(this.view[vd]=n.filter(e=>e!==this))}};function pt(t,n){let e=n?.injector??u(de);return cs("NgAfterNextRender"),y7(t,e,n,!0)}function v7(t){return t instanceof Function?[void 0,void 0,t,void 0]:[t.earlyRead,t.write,t.mixedReadWrite,t.read]}function y7(t,n,e,i){let r=n.get(pv);r.impl??=n.get(_M);let o=n.get(Yl,null,{optional:!0}),a=e?.manualCleanup!==!0?n.get(nn):null,s=n.get(wd,null,{optional:!0}),l=new Hp(r.impl,v7(t),s?.view,i,a,o?.snapshot(null));return r.impl.register(l),l}var DP=new T("",{providedIn:"root",factory:()=>({queue:new Set,isScheduled:!1,scheduler:null})});function EP(t,n,e){let i=t.get(DP);if(Array.isArray(n))for(let r of n)i.queue.add(r),e?.detachedLeaveAnimationFns?.push(r);else i.queue.add(n),e?.detachedLeaveAnimationFns?.push(n);i.scheduler&&i.scheduler(t)}function x7(t,n){let e=t.get(DP);if(n.detachedLeaveAnimationFns){for(let i of n.detachedLeaveAnimationFns)e.queue.delete(i);n.detachedLeaveAnimationFns=void 0}}function C7(t,n){for(let[e,i]of n)EP(t,i.animateFns)}function sR(t,n,e,i){let r=t?.[yd]?.enter;n!==null&&r&&r.has(e.index)&&C7(i,r)}function am(t,n,e,i,r,o,a,s){if(r!=null){let l,c=!1;_a(r)?l=r:Ja(r)&&(c=!0,r=r[ga]);let d=Lo(r);t===0&&i!==null?(sR(s,i,o,e),a==null?uP(n,i,d):Yb(n,i,d,a||null,!0)):t===1&&i!==null?(sR(s,i,o,e),Yb(n,i,d,a||null,!0)):t===2?lR(s,o,e,m=>{mP(n,d,c,m)}):t===3&&lR(s,o,e,()=>{n.destroyNode(d)}),l!=null&&R7(n,t,e,l,o,i,a)}}function w7(t,n){MP(t,n),n[ga]=null,n[Sr]=null}function D7(t,n,e,i,r,o){i[ga]=r,i[Sr]=n,gv(t,i,e,1,r,o)}function MP(t,n){n[Za].changeDetectionScheduler?.notify(9),gv(t,n,n[ri],2,null,null)}function E7(t){let n=t[Xu];if(!n)return nE(t[We],t);for(;n;){let e=null;if(Ja(n))e=n[Xu];else{let i=n[Yi];i&&(e=i)}if(!e){for(;n&&!n[No]&&n!==t;)Ja(n)&&nE(n[We],n),n=n[bn];n===null&&(n=t),Ja(n)&&nE(n[We],n),e=n&&n[No]}n=e}}function bM(t,n){let e=t[xd],i=e.indexOf(n);e.splice(i,1)}function fv(t,n){if(Cd(n))return;let e=n[ri];e.destroyNode&&gv(t,n,e,3,null,null),E7(n)}function nE(t,n){if(Cd(n))return;let e=Xe(null);try{n[et]&=-129,n[et]|=256,n[ho]&&Tl(n[ho]),S7(t,n),k7(t,n),n[We].type===1&&n[ri].destroy();let i=n[jl];if(i!==null&&_a(n[bn])){i!==n[bn]&&bM(i,n);let r=n[Xa];r!==null&&r.detachView(t)}fE(n)}finally{Xe(e)}}function lR(t,n,e,i){let r=t?.[yd];if(r==null||r.leave==null||!r.leave.has(n.index))return i(!1);t&&kd.add(t),EP(e,()=>{if(r.leave&&r.leave.has(n.index)){let a=r.leave.get(n.index),s=[];if(a){for(let l=0;l{t[yd].running=void 0,kd.delete(t),n(!0)});return}n(!1)}function k7(t,n){let e=t.cleanup,i=n[Zu];if(e!==null)for(let a=0;a=0?i[s]():i[-s].unsubscribe(),a+=2}else{let s=i[e[a+1]];e[a].call(s)}i!==null&&(n[Zu]=null);let r=n[Us];if(r!==null){n[Us]=null;for(let a=0;ami&&yP(t,n,mi,!1),oi(a?2:0,r,e),e(i,r)}finally{Ul(o),oi(a?3:1,r,e)}}function _v(t,n,e){B7(t,n,e),(e.flags&64)===64&&j7(t,n,e)}function _m(t,n,e=Vo){let i=n.localNames;if(i!==null){let r=n.index+1;for(let o=0;onull;function V7(t){return t==="class"?"className":t==="for"?"htmlFor":t==="formaction"?"formAction":t==="innerHtml"?"innerHTML":t==="readonly"?"readOnly":t==="tabindex"?"tabIndex":t}function OP(t,n,e,i,r,o){let a=n[We];if(yv(t,a,n,e,i)){qs(t)&&PP(n,t.index);return}t.type&3&&(e=V7(e)),RP(t,n,e,i,r,o)}function RP(t,n,e,i,r,o){if(t.type&3){let a=Vo(t,n);i=o!=null?o(i,t.value||"",e):i,r.setProperty(a,e,i)}else t.type&12}function PP(t,n){let e=Bo(n,t);e[et]&16||(e[et]|=64)}function B7(t,n,e){let i=e.directiveStart,r=e.directiveEnd;qs(e)&&u7(n,e,t.data[i+e.componentOffset]),t.firstCreatePass||qb(e,n);let o=e.initialInputs;for(let a=i;a{zl(t.lView)},consumerOnSignalRead(){this.lView[ho]=this}});function X7(t){let n=t[ho]??Object.create(J7);return n.lView=t,n}var J7=De(M({},td),{consumerIsAlwaysLive:!0,kind:"template",consumerMarkedDirty:t=>{let n=Bl(t.lView);for(;n&&!BP(n[We]);)n=Bl(n);n&&FD(n)},consumerOnSignalRead(){this.lView[ho]=this}});function BP(t){return t.type!==2}function jP(t){if(t[Gs]===null)return;let n=!0;for(;n;){let e=!1;for(let i of t[Gs])i.dirty&&(e=!0,i.zone===null||Zone.current===i.zone?i.run():i.zone.run(()=>i.run()));n=e&&!!(t[et]&8192)}}var eG=100;function HP(t,n=0){let i=t[Za].rendererFactory,r=!1;r||i.begin?.();try{tG(t,n)}finally{r||i.end?.()}}function tG(t,n){let e=GD();try{nm(!0),IE(t,n);let i=0;for(;Ap(t);){if(i===eG)throw new ue(103,!1);i++,IE(t,1)}}finally{nm(e)}}function iG(t,n,e,i){if(Cd(n))return;let r=n[et],o=!1,a=!1;Sb(n);let s=!0,l=null,c=null;o||(BP(t)?(c=Y7(n),l=Sl(c)):A_()===null?(s=!1,c=X7(n),l=Sl(c)):n[ho]&&(Tl(n[ho]),n[ho]=null));try{PD(n),AO(t.bindingStartIndex),e!==null&&AP(t,n,e,2,i);let d=(r&3)===3;if(!o)if(d){let b=t.preOrderCheckHooks;b!==null&&Vb(n,b,null)}else{let b=t.preOrderHooks;b!==null&&Bb(n,b,0,null),tE(n,0)}if(a||nG(n),jP(n),zP(n,0),t.contentQueries!==null&&iP(t,n),!o)if(d){let b=t.contentCheckHooks;b!==null&&Vb(n,b)}else{let b=t.contentHooks;b!==null&&Bb(n,b,1),tE(n,1)}oG(t,n);let m=t.components;m!==null&&$P(n,m,0);let f=t.viewQuery;if(f!==null&&_E(2,f,i),!o)if(d){let b=t.viewCheckHooks;b!==null&&Vb(n,b)}else{let b=t.viewHooks;b!==null&&Bb(n,b,2),tE(n,2)}if(t.firstUpdatePass===!0&&(t.firstUpdatePass=!1),n[Cb]){for(let b of n[Cb])b();n[Cb]=null}o||(LP(n),n[et]&=-73)}catch(d){throw o||zl(n),d}finally{c!==null&&(id(c,l),s&&K7(c)),Tb()}}function zP(t,n){for(let e=YR(t);e!==null;e=QR(e))for(let i=Yi;i0&&(t[e-1][No]=i[No]);let o=Ep(t,Yi+n);w7(i[We],i);let a=o[Xa];a!==null&&a.detachView(o[We]),i[bn]=null,i[No]=null,i[et]&=-129}return i}function aG(t,n,e,i){let r=Yi+i,o=e.length;i>0&&(e[r-1][No]=n),i-1&&(Up(n,i),Ep(e,i))}this._attachedToViewContainer=!1}fv(this._lView[We],this._lView)}onDestroy(n){ND(this._lView,n)}markForCheck(){wM(this._cdRefInjectingView||this._lView,4)}detach(){this._lView[et]&=-129}reattach(){Db(this._lView),this._lView[et]|=128}detectChanges(){this._lView[et]|=1024,HP(this._lView)}checkNoChanges(){}attachToViewContainerRef(){if(this._appRef)throw new ue(902,!1);this._attachedToViewContainer=!0}detachFromAppRef(){this._appRef=null;let n=em(this._lView),e=this._lView[jl];e!==null&&!n&&bM(e,this._lView),MP(this._lView[We],this._lView)}attachToAppRef(n){if(this._attachedToViewContainer)throw new ue(902,!1);this._appRef=n;let e=em(this._lView),i=this._lView[jl];i!==null&&!e&&YP(i,this._lView),Db(this._lView)}};var te=(()=>{class t{_declarationLView;_declarationTContainer;elementRef;static __NG_ELEMENT_ID__=sG;constructor(e,i,r){this._declarationLView=e,this._declarationTContainer=i,this.elementRef=r}get ssrId(){return this._declarationTContainer.tView?.ssrId||null}createEmbeddedView(e,i){return this.createEmbeddedViewImpl(e,i)}createEmbeddedViewImpl(e,i,r){let o=Xp(this._declarationLView,this._declarationTContainer,e,{embeddedViewInjector:i,dehydratedView:r});return new $l(o)}}return t})();function sG(){return xv(tn(),Ne())}function xv(t,n){return t.type&4?new te(n,t,fm(t,n)):null}function bm(t,n,e,i,r){let o=t.data[n];if(o===null)o=lG(t,n,e,i,r),OO()&&(o.flags|=32);else if(o.type&64){o.type=e,o.value=i,o.attrs=r;let a=TO();o.injectorIndex=a===null?-1:a.injectorIndex}return im(o,!0),o}function lG(t,n,e,i,r){let o=UD(),a=$D(),s=a?o:o&&o.parent,l=t.data[n]=dG(t,s,e,n,i,r);return cG(t,l,o,a),l}function cG(t,n,e,i){t.firstChild===null&&(t.firstChild=n),e!==null&&(i?e.child==null&&n.parent!==null&&(e.child=n):e.next===null&&(e.next=n,n.prev=e))}function dG(t,n,e,i,r,o){let a=n?n.injectorIndex:-1,s=0;return jD()&&(s|=128),{type:e,index:i,insertBeforeIndex:null,injectorIndex:a,directiveStart:-1,directiveEnd:-1,directiveStylingLast:-1,componentOffset:-1,propertyBindings:null,flags:s,providerIndexes:0,value:r,attrs:o,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}}var fIe=new RegExp(`^(\\d+)*(${bW}|${_W})*(.*)`);function uG(t){let n=t[TD]??[],i=t[bn][ri],r=[];for(let o of n)o.data[XR]!==void 0?r.push(o):mG(o,i);t[TD]=r}function mG(t,n){let e=0,i=t.firstChild;if(i){let r=t.data[ZR];for(;enull,pG=()=>null;function Kb(t,n){return hG(t,n)}function QP(t,n,e){return pG(t,n,e)}var Id=class{},Cv=class{},AE=class{resolveComponentFactory(n){throw new ue(917,!1)}},ef=class{static NULL=new AE},cn=class{},je=(()=>{class t{destroyNode=null;static __NG_ELEMENT_ID__=()=>fG()}return t})();function fG(){let t=Ne(),n=tn(),e=Bo(n.index,t);return(Ja(e)?e:t)[ri]}var KP=(()=>{class t{static \u0275prov=O({token:t,providedIn:"root",factory:()=>null})}return t})();var Hb={},OE=class{injector;parentInjector;constructor(n,e){this.injector=n,this.parentInjector=e}get(n,e,i){let r=this.injector.get(n,Hb,i);return r!==Hb||e===Hb?r:this.parentInjector.get(n,e,i)}};function Zb(t,n,e){let i=e?t.styles:null,r=e?t.classes:null,o=0;if(n!==null)for(let a=0;a0&&(e.directiveToIndex=new Map);for(let f=0;f0;){let e=t[--n];if(typeof e=="number"&&e<0)return e}return 0}function wG(t,n,e){if(e){if(n.exportAs)for(let i=0;ii(Lo(w[t.index])):t.index;rF(v,n,e,o,s,b,!1)}}return c}function kG(t){return t.startsWith("animation")||t.startsWith("transition")}function SG(t,n,e,i){let r=t.cleanup;if(r!=null)for(let o=0;ol?s[l]:null}typeof a=="string"&&(o+=2)}return null}function rF(t,n,e,i,r,o,a){let s=n.firstCreatePass?VD(n):null,l=LD(e),c=l.length;l.push(r,o),s&&s.push(i,t,c,(c+1)*(a?-1:1))}function pR(t,n,e,i,r,o){let a=n[e],s=n[We],c=s.data[e].outputs[i],m=a[c].subscribe(o);rF(t.index,s,n,r,o,m,!0)}var RE=Symbol("BINDING");var Xb=class extends ef{ngModule;constructor(n){super(),this.ngModule=n}resolveComponentFactory(n){let e=Ka(n);return new Wl(e,this.ngModule)}};function TG(t){return Object.keys(t).map(n=>{let[e,i,r]=t[n],o={propName:e,templateName:n,isSignal:(i&mv.SignalBased)!==0};return r&&(o.transform=r),o})}function IG(t){return Object.keys(t).map(n=>({propName:t[n],templateName:n}))}function AG(t,n,e){let i=n instanceof Wt?n:n?.injector;return i&&t.getStandaloneInjector!==null&&(i=t.getStandaloneInjector(i)||i),i?new OE(e,i):e}function OG(t){let n=t.get(cn,null);if(n===null)throw new ue(407,!1);let e=t.get(KP,null),i=t.get(Oo,null);return{rendererFactory:n,sanitizer:e,changeDetectionScheduler:i,ngReflect:!1}}function RG(t,n){let e=oF(t);return dP(n,e,e==="svg"?AD:e==="math"?xO:null)}function oF(t){return(t.selectors[0][0]||"div").toLowerCase()}var Wl=class extends Cv{componentDef;ngModule;selector;componentType;ngContentSelectors;isBoundToModule;cachedInputs=null;cachedOutputs=null;get inputs(){return this.cachedInputs??=TG(this.componentDef.inputs),this.cachedInputs}get outputs(){return this.cachedOutputs??=IG(this.componentDef.outputs),this.cachedOutputs}constructor(n,e){super(),this.componentDef=n,this.ngModule=e,this.componentType=n.type,this.selector=s7(n.selectors),this.ngContentSelectors=n.ngContentSelectors??[],this.isBoundToModule=!!e}create(n,e,i,r,o,a){oi(22);let s=Xe(null);try{let l=this.componentDef,c=PG(i,l,a,o),d=AG(l,r||this.ngModule,n),m=OG(d),f=m.rendererFactory.createRenderer(null,l),b=i?F7(f,i,l.encapsulation,d):RG(l,f),v=a?.some(fR)||o?.some(D=>typeof D!="function"&&D.bindings.some(fR)),w=uM(null,c,null,512|bP(l),null,null,m,f,d,null,tP(b,d,!0));w[mi]=b,Sb(w);let x=null;try{let D=DM(mi,w,2,"#host",()=>c.directiveRegistry,!0,0);hP(f,b,D),cm(b,w),_v(c,w,D),tM(c,D,w),EM(c,D),e!==void 0&&NG(D,this.ngContentSelectors,e),x=Bo(D.index,w),w[qi]=x[qi],CM(c,w,null)}catch(D){throw x!==null&&fE(x),fE(w),D}finally{oi(23),Tb()}return new Jb(this.componentType,w,!!v)}finally{Xe(s)}}};function PG(t,n,e,i){let r=t?["ng-version","20.3.16"]:l7(n.selectors[0]),o=null,a=null,s=0;if(e)for(let d of e)s+=d[RE].requiredVars,d.create&&(d.targetIdx=0,(o??=[]).push(d)),d.update&&(d.targetIdx=0,(a??=[]).push(d));if(i)for(let d=0;d{if(e&1&&t)for(let i of t)i.create();if(e&2&&n)for(let i of n)i.update()}}function fR(t){let n=t[RE].kind;return n==="input"||n==="twoWay"}var Jb=class extends Id{_rootLView;_hasInputBindings;instance;hostView;changeDetectorRef;componentType;location;previousInputValues=null;_tNode;constructor(n,e,i){super(),this._rootLView=e,this._hasInputBindings=i,this._tNode=Ip(e[We],mi),this.location=fm(this._tNode,e),this.instance=Bo(this._tNode.index,e)[qi],this.hostView=this.changeDetectorRef=new $l(e,void 0),this.componentType=n}setInput(n,e){this._hasInputBindings;let i=this._tNode;if(this.previousInputValues??=new Map,this.previousInputValues.has(n)&&Object.is(this.previousInputValues.get(n),e))return;let r=this._rootLView,o=yv(i,r[We],r,n,e);this.previousInputValues.set(n,e);let a=Bo(i.index,r);wM(a,1)}get injector(){return new Ed(this._tNode,this._rootLView)}destroy(){this.hostView.destroy()}onDestroy(n){this.hostView.onDestroy(n)}};function NG(t,n,e){let i=t.projection=[];for(let r=0;r{class t{static __NG_ELEMENT_ID__=LG}return t})();function LG(){let t=tn();return sF(t,Ne())}var VG=nt,aF=class extends VG{_lContainer;_hostTNode;_hostLView;constructor(n,e,i){super(),this._lContainer=n,this._hostTNode=e,this._hostLView=i}get element(){return fm(this._hostTNode,this._hostLView)}get injector(){return new Ed(this._hostTNode,this._hostLView)}get parentInjector(){let n=ZE(this._hostTNode,this._hostLView);if(NR(n)){let e=Wb(n,this._hostLView),i=$b(n),r=e[We].data[i+8];return new Ed(r,e)}else return new Ed(null,this._hostLView)}clear(){for(;this.length>0;)this.remove(this.length-1)}get(n){let e=gR(this._lContainer);return e!==null&&e[n]||null}get length(){return this._lContainer.length-Yi}createEmbeddedView(n,e,i){let r,o;typeof i=="number"?r=i:i!=null&&(r=i.index,o=i.injector);let a=Kb(this._lContainer,n.ssrId),s=n.createEmbeddedViewImpl(e||{},o,a);return this.insertImpl(s,r,dm(this._hostTNode,a)),s}createComponent(n,e,i,r,o,a,s){let l=n&&!G$(n),c;if(l)c=e;else{let x=e||{};c=x.index,i=x.injector,r=x.projectableNodes,o=x.environmentInjector||x.ngModuleRef,a=x.directives,s=x.bindings}let d=l?n:new Wl(Ka(n)),m=i||this.parentInjector;if(!o&&d.ngModule==null){let D=(l?m:this.parentInjector).get(Wt,null);D&&(o=D)}let f=Ka(d.componentType??{}),b=Kb(this._lContainer,f?.id??null),v=b?.firstChild??null,w=d.create(m,r,v,o,a,s);return this.insertImpl(w.hostView,c,dm(this._hostTNode,b)),w}insert(n,e){return this.insertImpl(n,e,!0)}insertImpl(n,e,i){let r=n._lView;if(wO(r)){let s=this.indexOf(n);if(s!==-1)this.detach(s);else{let l=r[bn],c=new aF(l,l[Sr],l[bn]);c.detach(c.indexOf(n))}}let o=this._adjustIndex(e),a=this._lContainer;return Jp(a,r,o,i),n.attachToViewContainerRef(),yD(rE(a),o,n),n}move(n,e){return this.insert(n,e)}indexOf(n){let e=gR(this._lContainer);return e!==null?e.indexOf(n):-1}remove(n){let e=this._adjustIndex(n,-1),i=Up(this._lContainer,e);i&&(Ep(rE(this._lContainer),e),fv(i[We],i))}detach(n){let e=this._adjustIndex(n,-1),i=Up(this._lContainer,e);return i&&Ep(rE(this._lContainer),e)!=null?new $l(i):null}_adjustIndex(n,e=0){return n??this.length+e}};function gR(t){return t[Tp]}function rE(t){return t[Tp]||(t[Tp]=[])}function sF(t,n){let e,i=n[t.index];return _a(i)?e=i:(e=WP(i,n,null,t),n[t.index]=e,mM(n,e)),jG(e,n,t,i),new aF(e,t,n)}function BG(t,n){let e=t[ri],i=e.createComment(""),r=Vo(n,t),o=e.parentNode(r);return Yb(e,o,i,e.nextSibling(r),!1),i}var jG=UG,HG=()=>!1;function zG(t,n,e){return HG(t,n,e)}function UG(t,n,e,i){if(t[Hl])return;let r;e.type&8?r=Lo(i):r=BG(n,e),t[Hl]=r}var PE=class t{queryList;matches=null;constructor(n){this.queryList=n}clone(){return new t(this.queryList)}setDirty(){this.queryList.setDirty()}},FE=class t{queries;constructor(n=[]){this.queries=n}createEmbeddedView(n){let e=n.queries;if(e!==null){let i=n.contentQueries!==null?n.contentQueries[0]:e.length,r=[];for(let o=0;o0)i.push(a[s/2]);else{let c=o[s+1],d=n[-l];for(let m=Yi;mn.trim())}function mF(t,n,e){t.queries===null&&(t.queries=new NE),t.queries.track(new LE(n,e))}function QG(t,n){let e=t.contentQueries||(t.contentQueries=[]),i=e.length?e[e.length-1]:-1;n!==i&&e.push(t.queries.length-1,n)}function SM(t,n){return t.queries.getByIndex(n)}function hF(t,n){let e=t[We],i=SM(e,n);return i.crossesNgTemplate?VE(e,t,n,[]):lF(e,t,i,n)}function TM(t,n,e){let i,r=pp(()=>{i._dirtyCounter();let o=KG(i,t);if(n&&o===void 0)throw new ue(-951,!1);return o});return i=r[ln],i._dirtyCounter=he(0),i._flatValue=void 0,r}function IM(t){return TM(!0,!1,t)}function AM(t){return TM(!0,!0,t)}function pF(t){return TM(!1,!1,t)}function fF(t,n){let e=t[ln];e._lView=Ne(),e._queryIndex=n,e._queryList=kM(e._lView,n),e._queryList.onDirty(()=>e._dirtyCounter.update(i=>i+1))}function KG(t,n){let e=t._lView,i=t._queryIndex;if(e===void 0||i===void 0||e[et]&4)return n?void 0:ur;let r=kM(e,i),o=hF(e,i);return r.reset(o,WR),n?r.first:r._changesDetected||t._flatValue===void 0?t._flatValue=r.toArray():t._flatValue}var as=class{},wv=class{};var tv=class extends as{ngModuleType;_parent;_bootstrapComponents=[];_r3Injector;instance;destroyCbs=[];componentFactoryResolver=new Xb(this);constructor(n,e,i,r=!0){super(),this.ngModuleType=n,this._parent=e;let o=wD(n);this._bootstrapComponents=fP(o.bootstrap),this._r3Injector=KD(n,e,[{provide:as,useValue:this},{provide:ef,useValue:this.componentFactoryResolver},...i],$s(n),new Set(["environment"])),r&&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)}},iv=class extends wv{moduleType;constructor(n){super(),this.moduleType=n}create(n){return new tv(this.moduleType,n,[])}};var Wp=class extends as{injector;componentFactoryResolver=new Xb(this);instance=null;constructor(n){super();let e=new pd([...n.providers,{provide:as,useValue:this},{provide:ef,useValue:this.componentFactoryResolver}],n.parent||Ku(),n.debugName,new Set(["environment"]));this.injector=e,n.runEnvironmentInitializers&&e.resolveInjectorInitializers()}destroy(){this.injector.destroy()}onDestroy(n){this.injector.onDestroy(n)}};function vm(t,n,e=null){return new Wp({providers:t,parent:n,debugName:e,runEnvironmentInitializers:!0}).injector}var ZG=(()=>{class t{_injector;cachedInjectors=new Map;constructor(e){this._injector=e}getOrCreateStandaloneInjector(e){if(!e.standalone)return null;if(!this.cachedInjectors.has(e)){let i=DD(!1,e.type),r=i.length>0?vm([i],this._injector,`Standalone[${e.type.name}]`):null;this.cachedInjectors.set(e,r)}return this.cachedInjectors.get(e)}ngOnDestroy(){try{for(let e of this.cachedInjectors.values())e!==null&&e.destroy()}finally{this.cachedInjectors.clear()}}static \u0275prov=O({token:t,providedIn:"environment",factory:()=>new t(pe(Wt))})}return t})();function E(t){return pm(()=>{let n=gF(t),e=De(M({},n),{decls:t.decls,vars:t.vars,template:t.template,consts:t.consts||null,ngContentSelectors:t.ngContentSelectors,onPush:t.changeDetection===XE.OnPush,directiveDefs:null,pipeDefs:null,dependencies:n.standalone&&t.dependencies||null,getStandaloneInjector:n.standalone?r=>r.get(ZG).getOrCreateStandaloneInjector(e):null,getExternalStyles:null,signals:t.signals??!1,data:t.data||{},encapsulation:t.encapsulation||Ys.Emulated,styles:t.styles||ur,_:null,schemas:t.schemas||null,tView:null,id:""});n.standalone&&cs("NgStandalone"),_F(e);let i=t.dependencies;return e.directiveDefs=_R(i,XG),e.pipeDefs=_R(i,pO),e.id=t9(e),e})}function XG(t){return Ka(t)||yb(t)}function ee(t){return pm(()=>({type:t.type,bootstrap:t.bootstrap||ur,declarations:t.declarations||ur,imports:t.imports||ur,exports:t.exports||ur,transitiveCompileScopes:null,schemas:t.schemas||null,id:t.id||null}))}function JG(t,n){if(t==null)return fa;let e={};for(let i in t)if(t.hasOwnProperty(i)){let r=t[i],o,a,s,l;Array.isArray(r)?(s=r[0],o=r[1],a=r[2]??o,l=r[3]||null):(o=r,a=r,s=mv.None,l=null),e[o]=[i,s,l],n[o]=a}return e}function e9(t){if(t==null)return fa;let n={};for(let e in t)t.hasOwnProperty(e)&&(n[t[e]]=e);return n}function F(t){return pm(()=>{let n=gF(t);return _F(n),n})}function Wr(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 gF(t){let n={};return{type:t.type,providersResolver:null,factory:null,hostBindings:t.hostBindings||null,hostVars:t.hostVars||0,hostAttrs:t.hostAttrs||null,contentQueries:t.contentQueries||null,declaredInputs:n,inputConfig:t.inputs||fa,exportAs:t.exportAs||null,standalone:t.standalone??!0,signals:t.signals===!0,selectors:t.selectors||ur,viewQuery:t.viewQuery||null,features:t.features||null,setInput:null,resolveHostDirectives:null,hostDirectives:null,inputs:JG(t.inputs,n),outputs:e9(t.outputs),debugInfo:null}}function _F(t){t.features?.forEach(n=>n(t))}function _R(t,n){return t?()=>{let e=typeof t=="function"?t():t,i=[];for(let r of e){let o=n(r);o!==null&&i.push(o)}return i}:null}function t9(t){let n=0,e=typeof t.consts=="function"?"":t.consts,i=[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 o of i.join("|"))n=Math.imul(31,n)+o.charCodeAt(0)<<0;return n+=2147483648,"c"+n}function i9(t){return Object.getPrototypeOf(t.prototype).constructor}function le(t){let n=i9(t.type),e=!0,i=[t];for(;n;){let r;if(ba(t))r=n.\u0275cmp||n.\u0275dir;else{if(n.\u0275cmp)throw new ue(903,!1);r=n.\u0275dir}if(r){if(e){i.push(r);let a=t;a.inputs=oE(t.inputs),a.declaredInputs=oE(t.declaredInputs),a.outputs=oE(t.outputs);let s=r.hostBindings;s&&s9(t,s);let l=r.viewQuery,c=r.contentQueries;if(l&&o9(t,l),c&&a9(t,c),n9(t,r),oO(t.outputs,r.outputs),ba(r)&&r.data.animation){let d=t.data;d.animation=(d.animation||[]).concat(r.data.animation)}}let o=r.features;if(o)for(let a=0;a=0;i--){let r=t[i];r.hostVars=n+=r.hostVars,r.hostAttrs=lm(r.hostAttrs,e=lm(e,r.hostAttrs))}}function oE(t){return t===fa?{}:t===ur?[]:t}function o9(t,n){let e=t.viewQuery;e?t.viewQuery=(i,r)=>{n(i,r),e(i,r)}:t.viewQuery=n}function a9(t,n){let e=t.contentQueries;e?t.contentQueries=(i,r,o)=>{n(i,r,o),e(i,r,o)}:t.contentQueries=n}function s9(t,n){let e=t.hostBindings;e?t.hostBindings=(i,r)=>{n(i,r),e(i,r)}:t.hostBindings=n}function ym(t){let n=e=>{let i=Array.isArray(t);e.hostDirectives===null?(e.resolveHostDirectives=l9,e.hostDirectives=i?t.map(BE):[t]):i?e.hostDirectives.unshift(...t.map(BE)):e.hostDirectives.unshift(t)};return n.ngInherit=!0,n}function l9(t){let n=[],e=!1,i=null,r=null;for(let o=0;o{class t{log(e){console.log(e)}warn(e){console.warn(e)}static \u0275fac=function(i){return new(i||t)};static \u0275prov=O({token:t,factory:t.\u0275fac,providedIn:"platform"})}return t})();var OM=new T("");function Xs(t){return!!t&&typeof t.then=="function"}function Ev(t){return!!t&&typeof t.subscribe=="function"}var RM=new T("");function Ql(t){return zr([{provide:RM,multi:!0,useValue:t}])}var PM=(()=>{class t{resolve;reject;initialized=!1;done=!1;donePromise=new Promise((e,i)=>{this.resolve=e,this.reject=i});appInits=u(RM,{optional:!0})??[];injector=u(de);constructor(){}runInitializers(){if(this.initialized)return;let e=[];for(let r of this.appInits){let o=In(this.injector,r);if(Xs(o))e.push(o);else if(Ev(o)){let a=new Promise((s,l)=>{o.subscribe({complete:s,error:l})});e.push(a)}}let i=()=>{this.done=!0,this.resolve()};Promise.all(e).then(()=>{i()}).catch(r=>{this.reject(r)}),e.length===0&&i(),this.initialized=!0}static \u0275fac=function(i){return new(i||t)};static \u0275prov=O({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),nf=new T("");function yF(){Aw(()=>{let t="";throw new ue(600,t)})}function xF(t){return t.isBoundToModule}var h9=10;var Gn=(()=>{class t{_runningTick=!1;_destroyed=!1;_destroyListeners=[];_views=[];internalErrorHandler=u(hr);afterRenderManager=u(pv);zonelessEnabled=u(Fp);rootEffectScheduler=u(Np);dirtyFlags=0;tracingSnapshot=null;allTestViews=new Set;autoDetectTestViews=new Set;includeAllTestViews=!1;afterTick=new z;get allViews(){return[...(this.includeAllTestViews?this.allTestViews:this.autoDetectTestViews).keys(),...this._views]}get destroyed(){return this._destroyed}componentTypes=[];components=[];internalPendingTask=u(ns);get isStable(){return this.internalPendingTask.hasPendingTasksObservable.pipe(se(e=>!e))}constructor(){u(Yl,{optional:!0})}whenStable(){let e;return new Promise(i=>{e=this.isStable.subscribe({next:r=>{r&&i()}})}).finally(()=>{e.unsubscribe()})}_injector=u(Wt);_rendererFactory=null;get injector(){return this._injector}bootstrap(e,i){return this.bootstrapImpl(e,i)}bootstrapImpl(e,i,r=de.NULL){return this._injector.get(ae).run(()=>{oi(10);let a=e instanceof Cv;if(!this._injector.get(PM).done){let v="";throw new ue(405,v)}let l;a?l=e:l=this._injector.get(ef).resolveComponentFactory(e),this.componentTypes.push(l.componentType);let c=xF(l)?void 0:this._injector.get(as),d=i||l.selector,m=l.create(r,[],d,c),f=m.location.nativeElement,b=m.injector.get(OM,null);return b?.registerApplication(f),m.onDestroy(()=>{this.detachView(m.hostView),Vp(this.components,m),b?.unregisterApplication(f)}),this._loadComponent(m),oi(11,m),m})}tick(){this.zonelessEnabled||(this.dirtyFlags|=1),this._tick()}_tick(){oi(12),this.tracingSnapshot!==null?this.tracingSnapshot.run(hv.CHANGE_DETECTION,this.tickImpl):this.tickImpl()}tickImpl=()=>{if(this._runningTick)throw new ue(101,!1);let e=Xe(null);try{this._runningTick=!0,this.synchronize()}finally{this._runningTick=!1,this.tracingSnapshot?.dispose(),this.tracingSnapshot=null,Xe(e),this.afterTick.next(),oi(13)}};synchronize(){this._rendererFactory===null&&!this._injector.destroyed&&(this._rendererFactory=this._injector.get(cn,null,{optional:!0}));let e=0;for(;this.dirtyFlags!==0&&e++Ap(e))){this.dirtyFlags|=2;return}else this.dirtyFlags&=-8}attachView(e){let i=e;this._views.push(i),i.attachToAppRef(this)}detachView(e){let i=e;Vp(this._views,i),i.detachFromAppRef()}_loadComponent(e){this.attachView(e.hostView);try{this.tick()}catch(r){this.internalErrorHandler(r)}this.components.push(e),this._injector.get(nf,[]).forEach(r=>r(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),()=>Vp(this._destroyListeners,e)}destroy(){if(this._destroyed)throw new ue(406,!1);let e=this._injector;e.destroy&&!e.destroyed&&e.destroy()}get viewCount(){return this._views.length}static \u0275fac=function(i){return new(i||t)};static \u0275prov=O({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();function Vp(t,n){let e=t.indexOf(n);e>-1&&t.splice(e,1)}function Kl(t,n){let e=Ne(),i=ts();if(Tr(e,i,n)){let r=gi(),o=rm();if(yv(o,r,e,t,n))qs(o)&&PP(e,o.index);else{let s=Vo(o,e);FP(e[ri],s,null,o.value,t,n,null)}}return Kl}function X(t,n,e,i){let r=Ne(),o=ts();if(Tr(r,o,n)){let a=gi(),s=rm();z7(s,r,t,n,e,i)}return X}var CIe=typeof document<"u"&&typeof document?.documentElement?.getAnimations=="function";function Mv(){return Ne()[mr][qi]}var jE=class{destroy(n){}updateValue(n,e){}swap(n,e){let i=Math.min(n,e),r=Math.max(n,e),o=this.detach(r);if(r-i>1){let a=this.detach(i);this.attach(i,o),this.attach(r,a)}else this.attach(i,o)}move(n,e){this.attach(e,this.detach(n))}};function aE(t,n,e,i,r){return t===e&&Object.is(n,i)?1:Object.is(r(t,n),r(e,i))?-1:0}function p9(t,n,e){let i,r,o=0,a=t.length-1,s=void 0;if(Array.isArray(n)){let l=n.length-1;for(;o<=a&&o<=l;){let c=t.at(o),d=n[o],m=aE(o,c,o,d,e);if(m!==0){m<0&&t.updateValue(o,d),o++;continue}let f=t.at(a),b=n[l],v=aE(a,f,l,b,e);if(v!==0){v<0&&t.updateValue(a,b),a--,l--;continue}let w=e(o,c),x=e(a,f),D=e(o,d);if(Object.is(D,x)){let P=e(l,b);Object.is(P,w)?(t.swap(o,a),t.updateValue(a,b),l--,a--):t.move(a,o),t.updateValue(o,d),o++;continue}if(i??=new nv,r??=xR(t,o,a,e),HE(t,i,o,D))t.updateValue(o,d),o++,a++;else if(r.has(D))i.set(w,t.detach(o)),a--;else{let P=t.create(o,n[o]);t.attach(o,P),o++,a++}}for(;o<=l;)yR(t,i,e,o,n[o]),o++}else if(n!=null){let l=n[Symbol.iterator](),c=l.next();for(;!c.done&&o<=a;){let d=t.at(o),m=c.value,f=aE(o,d,o,m,e);if(f!==0)f<0&&t.updateValue(o,m),o++,c=l.next();else{i??=new nv,r??=xR(t,o,a,e);let b=e(o,m);if(HE(t,i,o,b))t.updateValue(o,m),o++,a++,c=l.next();else if(!r.has(b))t.attach(o,t.create(o,m)),o++,a++,c=l.next();else{let v=e(o,d);i.set(v,t.detach(o)),a--}}}for(;!c.done;)yR(t,i,e,t.length,c.value),c=l.next()}for(;o<=a;)t.destroy(t.detach(a--));i?.forEach(l=>{t.destroy(l)})}function HE(t,n,e,i){return n!==void 0&&n.has(i)?(t.attach(e,n.get(i)),n.delete(i),!0):!1}function yR(t,n,e,i,r){if(HE(t,n,i,e(i,r)))t.updateValue(i,r);else{let o=t.create(i,r);t.attach(i,o)}}function xR(t,n,e,i){let r=new Set;for(let o=n;o<=e;o++)r.add(i(o,t.at(o)));return r}var nv=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 i=this.kvMap.get(n);this._vMap===void 0&&(this._vMap=new Map);let r=this._vMap;for(;r.has(i);)i=r.get(i);r.set(i,e)}else this.kvMap.set(n,e)}forEach(n){for(let[e,i]of this.kvMap)if(n(i,e),this._vMap!==void 0){let r=this._vMap;for(;r.has(i);)i=r.get(i),n(i,e)}}};function N(t,n,e,i,r,o,a,s){cs("NgControlFlow");let l=Ne(),c=gi(),d=po(c.consts,o);return um(l,c,t,n,e,i,r,d,256,a,s),FM}function FM(t,n,e,i,r,o,a,s){cs("NgControlFlow");let l=Ne(),c=gi(),d=po(c.consts,o);return um(l,c,t,n,e,i,r,d,512,a,s),FM}function L(t,n){cs("NgControlFlow");let e=Ne(),i=ts(),r=e[i]!==On?e[i]:-1,o=r!==-1?rv(e,mi+r):void 0,a=0;if(Tr(e,i,t)){let s=Xe(null);try{if(o!==void 0&&qP(o,a),t!==-1){let l=mi+t,c=rv(e,l),d=WE(e[We],l),m=QP(c,d,e),f=Xp(e,d,n,{dehydratedView:m});Jp(c,f,a,dm(d,m))}}finally{Xe(s)}}else if(o!==void 0){let s=GP(o,a);s!==void 0&&(s[qi]=n)}}var zE=class{lContainer;$implicit;$index;constructor(n,e,i){this.lContainer=n,this.$implicit=e,this.$index=i}get $count(){return this.lContainer.length-Yi}};function Hi(t){return t}function xm(t,n){return n}var UE=class{hasEmptyBlock;trackByFn;liveCollection;constructor(n,e,i){this.hasEmptyBlock=n,this.trackByFn=e,this.liveCollection=i}};function xt(t,n,e,i,r,o,a,s,l,c,d,m,f){cs("NgControlFlow");let b=Ne(),v=gi(),w=l!==void 0,x=Ne(),D=s?a.bind(x[mr][qi]):a,P=new UE(w,D);x[mi+t]=P,um(b,v,t+1,n,e,i,r,po(v.consts,o),256),w&&um(b,v,t+2,l,c,d,m,po(v.consts,f),512)}var $E=class extends jE{lContainer;hostLView;templateTNode;operationsCounter=void 0;needsIndexUpdate=!1;constructor(n,e,i){super(),this.lContainer=n,this.hostLView=e,this.templateTNode=i}get length(){return this.lContainer.length-Yi}at(n){return this.getLView(n)[qi].$implicit}attach(n,e){let i=e[gd];this.needsIndexUpdate||=n!==this.length,Jp(this.lContainer,e,n,dm(this.templateTNode,i)),f9(this.lContainer,n)}detach(n){return this.needsIndexUpdate||=n!==this.length-1,g9(this.lContainer,n),_9(this.lContainer,n)}create(n,e){let i=Kb(this.lContainer,this.templateTNode.tView.ssrId),r=Xp(this.hostLView,this.templateTNode,new zE(this.lContainer,e,n),{dehydratedView:i});return this.operationsCounter?.recordCreate(),r}destroy(n){fv(n[We],n),this.operationsCounter?.recordDestroy()}updateValue(n,e){this.getLView(n)[qi].$implicit=e}reset(){this.needsIndexUpdate=!1,this.operationsCounter?.reset()}updateIndexes(){if(this.needsIndexUpdate)for(let n=0;n0){let o=i[Ws];x7(o,r),kd.delete(i),r.detachedLeaveAnimationFns=void 0}}function g9(t,n){if(t.length<=Yi)return;let e=Yi+n,i=t[e],r=i?i[yd]:void 0;r&&r.leave&&r.leave.size>0&&(r.detachedLeaveAnimationFns=[])}function _9(t,n){return Up(t,n)}function b9(t,n){return GP(t,n)}function WE(t,n){return Ip(t,n)}function y(t,n,e){let i=Ne(),r=ts();if(Tr(i,r,n)){let o=gi(),a=rm();OP(a,i,t,n,i[ri],e)}return y}function GE(t,n,e,i,r){yv(n,t,e,r?"class":"style",i)}function h(t,n,e,i){let r=Ne(),o=r[We],a=t+mi,s=o.firstCreatePass?DM(a,r,2,n,xM,Eb(),e,i):o.data[a];if(bv(s,r,t,n,CF),Ju(s)){let l=r[We];_v(l,r,s),tM(l,s,r)}return i!=null&&_m(r,s),h}function p(){let t=gi(),n=tn(),e=vv(n);return t.firstCreatePass&&EM(t,e),HD(e)&&zD(),BD(),e.classesWithoutHost!=null&&X$(e)&&GE(t,e,Ne(),e.classesWithoutHost,!0),e.stylesWithoutHost!=null&&J$(e)&&GE(t,e,Ne(),e.stylesWithoutHost,!1),p}function k(t,n,e,i){return h(t,n,e,i),p(),k}function ft(t,n,e,i){let r=Ne(),o=r[We],a=t+mi,s=o.firstCreatePass?JP(a,o,2,n,e,i):o.data[a];return bv(s,r,t,n,CF),i!=null&&_m(r,s),ft}function vt(){let t=tn(),n=vv(t);return HD(n)&&zD(),BD(),vt}function ai(t,n,e,i){return ft(t,n,e,i),vt(),ai}var CF=(t,n,e,i,r)=>(Pp(!0),dP(n[ri],i,jO()));function jt(t,n,e){let i=Ne(),r=i[We],o=t+mi,a=r.firstCreatePass?DM(o,i,8,"ng-container",xM,Eb(),n,e):r.data[o];if(bv(a,i,t,"ng-container",DF),Ju(a)){let s=i[We];_v(s,i,a),tM(s,a,i)}return e!=null&&_m(i,a),jt}function Lt(){let t=gi(),n=tn(),e=vv(n);return t.firstCreatePass&&EM(t,e),Lt}function Ge(t,n,e){return jt(t,n,e),Lt(),Ge}function NM(t,n,e){let i=Ne(),r=i[We],o=t+mi,a=r.firstCreatePass?JP(o,r,8,"ng-container",n,e):r.data[o];return bv(a,i,t,"ng-container",DF),e!=null&&_m(i,a),NM}function wF(){let t=tn(),n=vv(t);return Lt}function rf(t,n,e){return NM(t,n,e),wF(),rf}var DF=(t,n,e,i,r)=>(Pp(!0),WW(n[ri],""));function Y(){return Ne()}function si(t,n,e){let i=Ne(),r=ts();if(Tr(i,r,n)){let o=gi(),a=rm();RP(a,i,t,n,i[ri],e)}return si}var Nb=void 0;function v9(t){let n=Math.floor(Math.abs(t)),e=t.toString().replace(/^[^.]*\.?/,"").length;return n===1&&e===0?1:5}var y9=["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"]],Nb,[["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"]],Nb,[["B","A"],["BC","AD"],["Before Christ","Anno Domini"]],0,[6,0],["M/d/yy","MMM d, y","MMMM d, y","EEEE, MMMM d, y"],["h:mm a","h:mm:ss a","h:mm:ss a z","h:mm:ss a zzzz"],["{1}, {0}",Nb,"{1} 'at' {0}",Nb],[".",",",";","%","+","-","E","\xD7","\u2030","\u221E","NaN",":"],["#,##0.###","#,##0%","\xA4#,##0.00","#E0"],"USD","$","US Dollar",{},"ltr",v9],sE={};function Ir(t){let n=x9(t),e=CR(n);if(e)return e;let i=n.split("-")[0];if(e=CR(i),e)return e;if(i==="en")return y9;throw new ue(701,!1)}function CR(t){return t in sE||(sE[t]=Po.ng&&Po.ng.common&&Po.ng.common.locales&&Po.ng.common.locales[t]),sE[t]}var zi=(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})(zi||{});function x9(t){return t.toLowerCase().replace(/_/g,"-")}var of="en-US",C9="USD";var w9=of;function EF(t){typeof t=="string"&&(w9=t.toLowerCase().replace(/_/g,"-"))}function S(t,n,e){let i=Ne(),r=gi(),o=tn();return MF(r,i,i[ri],o,t,n,e),S}function kv(t,n,e){let i=Ne(),r=gi(),o=tn();return(o.type&3||e)&&nF(o,r,i,e,i[ri],t,n,zb(o,i,n)),kv}function MF(t,n,e,i,r,o,a){let s=!0,l=null;if((i.type&3||a)&&(l??=zb(i,n,o),nF(i,t,n,a,e,r,o,l)&&(s=!1)),s){let c=i.outputs?.[r],d=i.hostDirectiveOutputs?.[r];if(d&&d.length)for(let m=0;m>17&32767}function M9(t){return(t&2)==2}function k9(t,n){return t&131071|n<<17}function qE(t){return t|2}function mm(t){return(t&131068)>>2}function lE(t,n){return t&-131069|n<<2}function S9(t){return(t&1)===1}function YE(t){return t|1}function T9(t,n,e,i,r,o){let a=o?n.classBindings:n.styleBindings,s=Sd(a),l=mm(a);t[i]=e;let c=!1,d;if(Array.isArray(e)){let m=e;d=m[1],(d===null||Qu(m,d)>0)&&(c=!0)}else d=e;if(r)if(l!==0){let f=Sd(t[s+1]);t[i+1]=Lb(f,s),f!==0&&(t[f+1]=lE(t[f+1],i)),t[s+1]=k9(t[s+1],i)}else t[i+1]=Lb(s,0),s!==0&&(t[s+1]=lE(t[s+1],i)),s=i;else t[i+1]=Lb(l,0),s===0?s=i:t[l+1]=lE(t[l+1],i),l=i;c&&(t[i+1]=qE(t[i+1])),wR(t,d,i,!0),wR(t,d,i,!1),I9(n,d,t,i,o),a=Lb(s,l),o?n.classBindings=a:n.styleBindings=a}function I9(t,n,e,i,r){let o=r?t.residualClasses:t.residualStyles;o!=null&&typeof n=="string"&&Qu(o,n)>=0&&(e[i+1]=YE(e[i+1]))}function wR(t,n,e,i){let r=t[e+1],o=n===null,a=i?Sd(r):mm(r),s=!1;for(;a!==0&&(s===!1||o);){let l=t[a],c=t[a+1];A9(l,n)&&(s=!0,t[a+1]=i?YE(c):qE(c)),a=i?Sd(c):mm(c)}s&&(t[e+1]=i?qE(r):YE(r))}function A9(t,n){return t===null||n==null||(Array.isArray(t)?t[1]:t)===n?!0:Array.isArray(t)&&typeof n=="string"?Qu(t,n)>=0:!1}var vn={textEnd:0,key:0,keyEnd:0,value:0,valueEnd:0};function kF(t){return t.substring(vn.key,vn.keyEnd)}function O9(t){return t.substring(vn.value,vn.valueEnd)}function R9(t){return IF(t),SF(t,hm(t,0,vn.textEnd))}function SF(t,n){let e=vn.textEnd;return e===n?-1:(n=vn.keyEnd=F9(t,vn.key=n,e),hm(t,n,e))}function P9(t){return IF(t),TF(t,hm(t,0,vn.textEnd))}function TF(t,n){let e=vn.textEnd,i=vn.key=hm(t,n,e);return e===i?-1:(i=vn.keyEnd=N9(t,i,e),i=DR(t,i,e,58),i=vn.value=hm(t,i,e),i=vn.valueEnd=L9(t,i,e),DR(t,i,e,59))}function IF(t){vn.key=0,vn.keyEnd=0,vn.value=0,vn.valueEnd=0,vn.textEnd=t.length}function hm(t,n,e){for(;n32;)n++;return n}function N9(t,n,e){let i;for(;n=65&&(i&-33)<=90||i>=48&&i<=57);)n++;return n}function DR(t,n,e,i){return n=hm(t,n,e),n32&&(s=a),o=r,r=i,i=l&-33}return s}function ER(t,n,e,i){let r=-1,o=e;for(;o=0;e=TF(n,e))FF(t,kF(n),O9(n))}function it(t){OF(W9,B9,t,!0)}function B9(t,n){for(let e=R9(n);e>=0;e=SF(n,e))Mp(t,kF(n),!0)}function AF(t,n,e,i){let r=Ne(),o=gi(),a=Op(2);if(o.firstUpdatePass&&PF(o,t,a,i),n!==On&&Tr(r,a,n)){let s=o.data[va()];NF(o,s,r,r[ri],t,r[a+1]=q9(n,e),i,a)}}function OF(t,n,e,i){let r=gi(),o=Op(2);r.firstUpdatePass&&PF(r,null,o,i);let a=Ne();if(e!==On&&Tr(a,o,e)){let s=r.data[va()];if(LF(s,i)&&!RF(r,o)){let l=i?s.classesWithoutHost:s.stylesWithoutHost;l!==null&&(e=fb(l,e||"")),GE(r,s,a,e,i)}else G9(r,s,a,a[ri],a[o+1],a[o+1]=$9(t,n,e),i,o)}}function RF(t,n){return n>=t.expandoStartIndex}function PF(t,n,e,i){let r=t.data;if(r[e+1]===null){let o=r[va()],a=RF(t,e);LF(o,i)&&n===null&&!a&&(n=!1),n=j9(r,o,n,i),T9(r,o,n,e,a,i)}}function j9(t,n,e,i){let r=FO(t),o=i?n.residualClasses:n.residualStyles;if(r===null)(i?n.classBindings:n.styleBindings)===0&&(e=cE(null,t,n,e,i),e=Gp(e,n.attrs,i),o=null);else{let a=n.directiveStylingLast;if(a===-1||t[a]!==r)if(e=cE(r,t,n,e,i),o===null){let l=H9(t,n,i);l!==void 0&&Array.isArray(l)&&(l=cE(null,t,n,l[1],i),l=Gp(l,n.attrs,i),z9(t,n,i,l))}else o=U9(t,n,i)}return o!==void 0&&(i?n.residualClasses=o:n.residualStyles=o),e}function H9(t,n,e){let i=e?n.classBindings:n.styleBindings;if(mm(i)!==0)return t[Sd(i)]}function z9(t,n,e,i){let r=e?n.classBindings:n.styleBindings;t[Sd(r)]=i}function U9(t,n,e){let i,r=n.directiveEnd;for(let o=1+n.directiveStylingLast;o0;){let l=t[r],c=Array.isArray(l),d=c?l[1]:l,m=d===null,f=e[r+1];f===On&&(f=m?ur:void 0);let b=m?vb(f,i):d===i?f:void 0;if(c&&!ov(b)&&(b=vb(l,i)),ov(b)&&(s=b,a))return s;let v=t[r+1];r=a?Sd(v):mm(v)}if(n!==null){let l=o?n.residualClasses:n.residualStyles;l!=null&&(s=vb(l,i))}return s}function ov(t){return t!==void 0}function q9(t,n){return t==null||t===""||(typeof n=="string"?t=t+n:typeof t=="object"&&(t=$s(Ur(t)))),t}function LF(t,n){return(t.flags&(n?8:16))!==0}function _(t,n=""){let e=Ne(),i=gi(),r=t+mi,o=i.firstCreatePass?bm(i,r,1,n,null):i.data[r],a=Y9(i,e,o,n,t);e[r]=a,Ib()&&vM(i,e,a,o),im(o,!1)}var Y9=(t,n,e,i,r)=>(Pp(!0),UW(n[ri],i));function VF(t,n,e,i=""){return Tr(t,ts(),e)?n+Fo(e)+i:On}function Q9(t,n,e,i,r,o=""){let a=qD(),s=$p(t,a,e,r);return Op(2),s?n+Fo(e)+i+Fo(r)+o:On}function K9(t,n,e,i,r,o,a,s=""){let l=qD(),c=iF(t,l,e,r,a);return Op(3),c?n+Fo(e)+i+Fo(r)+o+Fo(a)+s:On}function H(t){return ve("",t),H}function ve(t,n,e){let i=Ne(),r=VF(i,t,n,e);return r!==On&&LM(i,va(),r),ve}function Od(t,n,e,i,r){let o=Ne(),a=Q9(o,t,n,e,i,r);return a!==On&&LM(o,va(),a),Od}function Cm(t,n,e,i,r,o,a){let s=Ne(),l=K9(s,t,n,e,i,r,o,a);return l!==On&&LM(s,va(),l),Cm}function LM(t,n,e){let i=OD(n,t);$W(t[ri],i,e)}function zo(t,n,e){XD(n)&&(n=n());let i=Ne(),r=ts();if(Tr(i,r,n)){let o=gi(),a=rm();OP(a,i,t,n,i[ri],e)}return zo}function Ca(t,n){let e=XD(t);return e&&t.set(n),e}function Uo(t,n){let e=Ne(),i=gi(),r=tn();return MF(i,e,e[ri],r,t,n),Uo}function VM(t){return Tr(Ne(),ts(),t)?Fo(t):On}function $o(t,n,e=""){return VF(Ne(),t,n,e)}function Z9(t,n,e){let i=gi();if(i.firstCreatePass){let r=ba(t);QE(e,i.data,i.blueprint,r,!0),QE(n,i.data,i.blueprint,r,!1)}}function QE(t,n,e,i,r){if(t=_n(t),Array.isArray(t))for(let o=0;o>20;if(hd(t)||!t.multi){let b=new Md(c,r,_e,null),v=uE(l,n,r?d:d+f,m);v===-1?(hE(qb(s,a),o,l),dE(o,t,n.length),n.push(l),s.directiveStart++,s.directiveEnd++,r&&(s.providerIndexes+=1048576),e.push(b),a.push(b)):(e[v]=b,a[v]=b)}else{let b=uE(l,n,d+f,m),v=uE(l,n,d,d+f),w=b>=0&&e[b],x=v>=0&&e[v];if(r&&!x||!r&&!w){hE(qb(s,a),o,l);let D=eq(r?J9:X9,e.length,r,i,c,t);!r&&x&&(e[v].providerFactory=D),dE(o,t,n.length,0),n.push(l),s.directiveStart++,s.directiveEnd++,r&&(s.providerIndexes+=1048576),e.push(D),a.push(D)}else{let D=BF(e[r?v:b],c,!r&&i);dE(o,t,b>-1?b:v,D)}!r&&i&&x&&e[v].componentProviders++}}}function dE(t,n,e,i){let r=hd(n),o=bO(n);if(r||o){let l=(o?_n(n.useClass):n).prototype.ngOnDestroy;if(l){let c=t.destroyHooks||(t.destroyHooks=[]);if(!r&&n.multi){let d=c.indexOf(e);d===-1?c.push(e,[i,l]):c[d+1].push(i,l)}else c.push(e,l)}}}function BF(t,n,e){return e&&t.componentProviders++,t.multi.push(n)-1}function uE(t,n,e,i){for(let r=e;r{e.providersResolver=(i,r)=>Z9(i,r?r(t):t,n)}}function at(t,n,e){let i=es()+t,r=Ne();return r[i]===On?tf(r,i,e?n.call(e):n()):EG(r,i)}function Pt(t,n,e,i){return jF(Ne(),es(),t,n,e,i)}function wa(t,n,e,i,r){return HF(Ne(),es(),t,n,e,i,r)}function Rd(t,n,e,i,r,o){return zF(Ne(),es(),t,n,e,i,r,o)}function wm(t,n,e,i,r,o,a){return UF(Ne(),es(),t,n,e,i,r,o,a)}function Sv(t,n){let e=t[n];return e===On?void 0:e}function jF(t,n,e,i,r,o){let a=n+e;return Tr(t,a,r)?tf(t,a+1,o?i.call(o,r):i(r)):Sv(t,a+1)}function HF(t,n,e,i,r,o,a){let s=n+e;return $p(t,s,r,o)?tf(t,s+2,a?i.call(a,r,o):i(r,o)):Sv(t,s+2)}function zF(t,n,e,i,r,o,a,s){let l=n+e;return iF(t,l,r,o,a)?tf(t,l+3,s?i.call(s,r,o,a):i(r,o,a)):Sv(t,l+3)}function UF(t,n,e,i,r,o,a,s,l){let c=n+e;return MG(t,c,r,o,a,s)?tf(t,c+4,l?i.call(l,r,o,a,s):i(r,o,a,s)):Sv(t,c+4)}function me(t,n){let e=gi(),i,r=t+mi;e.firstCreatePass?(i=tq(n,e.pipeRegistry),e.data[r]=i,i.onDestroy&&(e.destroyHooks??=[]).push(r,i.onDestroy)):i=e.data[r];let o=i.factory||(i.factory=Vl(i.type,!0)),a,s=kr(_e);try{let l=Gb(!1),c=o();return Gb(l),RD(e,Ne(),r,c),c}finally{kr(s)}}function tq(t,n){if(n)for(let e=n.length-1;e>=0;e--){let i=n[e];if(t===i.name)return i}}function Oe(t,n,e){let i=t+mi,r=Ne(),o=tm(r,i);return Tv(r,i)?jF(r,es(),n,o.transform,e,o):o.transform(e)}function Ni(t,n,e,i){let r=t+mi,o=Ne(),a=tm(o,r);return Tv(o,r)?HF(o,es(),n,a.transform,e,i,a):a.transform(e,i)}function BM(t,n,e,i,r){let o=t+mi,a=Ne(),s=tm(a,o);return Tv(a,o)?zF(a,es(),n,s.transform,e,i,r,s):s.transform(e,i,r)}function Dm(t,n,e,i,r,o){let a=t+mi,s=Ne(),l=tm(s,a);return Tv(s,a)?UF(s,es(),n,l.transform,e,i,r,o,l):l.transform(e,i,r,o)}function Tv(t,n){return t[We].data[n].pure}function _i(t,n){return xv(t,n)}var av=class{ngModuleFactory;componentFactories;constructor(n,e){this.ngModuleFactory=n,this.componentFactories=e}},jM=(()=>{class t{compileModuleSync(e){return new iv(e)}compileModuleAsync(e){return Promise.resolve(this.compileModuleSync(e))}compileModuleAndAllComponentsSync(e){let i=this.compileModuleSync(e),r=wD(e),o=fP(r.declarations).reduce((a,s)=>{let l=Ka(s);return l&&a.push(new Wl(l)),a},[]);return new av(i,o)}compileModuleAndAllComponentsAsync(e){return Promise.resolve(this.compileModuleAndAllComponentsSync(e))}clearCache(){}clearCacheFor(e){}getModuleId(e){}static \u0275fac=function(i){return new(i||t)};static \u0275prov=O({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();var iq=(()=>{class t{zone=u(ae);changeDetectionScheduler=u(Oo);applicationRef=u(Gn);applicationErrorHandler=u(hr);_onMicrotaskEmptySubscription;initialize(){this._onMicrotaskEmptySubscription||(this._onMicrotaskEmptySubscription=this.zone.onMicrotaskEmpty.subscribe({next:()=>{this.changeDetectionScheduler.runningTick||this.zone.run(()=>{try{this.applicationRef.dirtyFlags|=1,this.applicationRef._tick()}catch(e){this.applicationErrorHandler(e)}})}}))}ngOnDestroy(){this._onMicrotaskEmptySubscription?.unsubscribe()}static \u0275fac=function(i){return new(i||t)};static \u0275prov=O({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();function $F({ngZoneFactory:t,ignoreChangesOutsideZone:n,scheduleInRootZone:e}){return t??=()=>new ae(De(M({},WF()),{scheduleInRootZone:e})),[{provide:ae,useFactory:t},{provide:Qa,multi:!0,useFactory:()=>{let i=u(iq,{optional:!0});return()=>i.initialize()}},{provide:Qa,multi:!0,useFactory:()=>{let i=u(nq);return()=>{i.initialize()}}},n===!0?{provide:JD,useValue:!0}:[],{provide:eE,useValue:e??xP},{provide:hr,useFactory:()=>{let i=u(ae),r=u(Wt),o;return a=>{i.runOutsideAngular(()=>{r.destroyed&&!o?setTimeout(()=>{throw a}):(o??=r.get(Tn),o.handleError(a))})}}}]}function WF(t){return{enableLongStackTrace:!1,shouldCoalesceEventChangeDetection:t?.eventCoalescing??!1,shouldCoalesceRunChangeDetection:t?.runCoalescing??!1}}var nq=(()=>{class t{subscription=new ke;initialized=!1;zone=u(ae);pendingTasks=u(ns);initialize(){if(this.initialized)return;this.initialized=!0;let e=null;!this.zone.isStable&&!this.zone.hasPendingMacrotasks&&!this.zone.hasPendingMicrotasks&&(e=this.pendingTasks.add()),this.zone.runOutsideAngular(()=>{this.subscription.add(this.zone.onStable.subscribe(()=>{ae.assertNotInAngularZone(),queueMicrotask(()=>{e!==null&&!this.zone.hasPendingMacrotasks&&!this.zone.hasPendingMicrotasks&&(this.pendingTasks.remove(e),e=null)})}))}),this.subscription.add(this.zone.onUnstable.subscribe(()=>{ae.assertInAngularZone(),e??=this.pendingTasks.add()}))}ngOnDestroy(){this.subscription.unsubscribe()}static \u0275fac=function(i){return new(i||t)};static \u0275prov=O({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();var GF=(()=>{class t{applicationErrorHandler=u(hr);appRef=u(Gn);taskService=u(ns);ngZone=u(ae);zonelessEnabled=u(Fp);tracing=u(Yl,{optional:!0});disableScheduling=u(JD,{optional:!0})??!1;zoneIsDefined=typeof Zone<"u"&&!!Zone.root.run;schedulerTickApplyArgs=[{data:{__scheduler_tick__:!0}}];subscriptions=new ke;angularZoneId=this.zoneIsDefined?this.ngZone._inner?.get(Qb):null;scheduleInRootZone=!this.zonelessEnabled&&this.zoneIsDefined&&(u(eE,{optional:!0})??!1);cancelScheduledCallback=null;useMicrotaskScheduler=!1;runningTick=!1;pendingRenderTaskId=null;constructor(){this.subscriptions.add(this.appRef.afterTick.subscribe(()=>{this.runningTick||this.cleanup()})),this.subscriptions.add(this.ngZone.onUnstable.subscribe(()=>{this.runningTick||this.cleanup()})),this.disableScheduling||=!this.zonelessEnabled&&(this.ngZone instanceof jp||!this.zoneIsDefined)}notify(e){if(!this.zonelessEnabled&&e===5)return;let i=!1;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,i=!0;break}case 12:{this.appRef.dirtyFlags|=16,i=!0;break}case 13:{this.appRef.dirtyFlags|=2,i=!0;break}case 11:{i=!0;break}case 9:case 8:case 7:case 10:default:this.appRef.dirtyFlags|=8}if(this.appRef.tracingSnapshot=this.tracing?.snapshot(this.appRef.tracingSnapshot)??null,!this.shouldScheduleTick(i))return;let r=this.useMicrotaskScheduler?rR:CP;this.pendingRenderTaskId=this.taskService.add(),this.scheduleInRootZone?this.cancelScheduledCallback=Zone.root.run(()=>r(()=>this.tick())):this.cancelScheduledCallback=this.ngZone.runOutsideAngular(()=>r(()=>this.tick()))}shouldScheduleTick(e){return!(this.disableScheduling&&!e||this.appRef.destroyed||this.pendingRenderTaskId!==null||this.runningTick||this.appRef._runningTick||!this.zonelessEnabled&&this.zoneIsDefined&&Zone.current.get(Qb+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(i){this.taskService.remove(e),this.applicationErrorHandler(i)}finally{this.cleanup()}this.useMicrotaskScheduler=!0,rR(()=>{this.useMicrotaskScheduler=!1,this.taskService.remove(e)})}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(i){return new(i||t)};static \u0275prov=O({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();function rq(){return typeof $localize<"u"&&$localize.locale||of}var el=new T("",{providedIn:"root",factory:()=>u(el,{optional:!0,skipSelf:!0})||rq()}),HM=new T("",{providedIn:"root",factory:()=>C9});var af=class{destroyed=!1;listeners=null;errorHandler=u(Tn,{optional:!0});destroyRef=u(nn);constructor(){this.destroyRef.onDestroy(()=>{this.destroyed=!0,this.listeners=null})}subscribe(n){if(this.destroyed)throw new ue(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(Ro(953,!1));return}if(this.listeners===null)return;let e=Xe(null);try{for(let i of this.listeners)try{i(n)}catch(r){this.errorHandler?.handleError(r)}}finally{Xe(e)}}};function UM(t){return t.destroyRef}function Ti(t){return eO(t)}function Zt(t,n){return pp(t,n?.equal)}var zM=class{[ln];constructor(n){this[ln]=n}destroy(){this[ln].destroy()}};function Ar(t,n){let e=n?.injector??u(de),i=n?.manualCleanup!==!0?e.get(nn):null,r,o=e.get(wd,null,{optional:!0}),a=e.get(Oo);return o!==null?(r=sq(o.view,a,t),i instanceof Cp&&i._lView===o.view&&(i=null)):r=lq(t,e.get(Np),a),r.injector=e,i!==null&&(r.onDestroyFn=i.onDestroy(()=>r.destroy())),new zM(r)}var qF=De(M({},tO),{cleanupFns:void 0,zone:null,onDestroyFn:Dd,run(){let t=nm(!1);try{iO(this)}finally{nm(t)}},cleanup(){if(!this.cleanupFns?.length)return;let t=Xe(null);try{for(;this.cleanupFns.length;)this.cleanupFns.pop()()}finally{this.cleanupFns=[],Xe(t)}}}),oq=De(M({},qF),{consumerMarkedDirty(){this.scheduler.schedule(this),this.notifier.notify(12)},destroy(){Tl(this),this.onDestroyFn(),this.cleanup(),this.scheduler.remove(this)}}),aq=De(M({},qF),{consumerMarkedDirty(){this.view[et]|=8192,zl(this.view),this.notifier.notify(13)},destroy(){Tl(this),this.onDestroyFn(),this.cleanup(),this.view[Gs]?.delete(this)}});function sq(t,n,e){let i=Object.create(aq);return i.view=t,i.zone=typeof Zone<"u"?Zone.current:null,i.notifier=n,i.fn=YF(i,e),t[Gs]??=new Set,t[Gs].add(i),i.consumerMarkedDirty(i),i}function lq(t,n,e){let i=Object.create(oq);return i.fn=YF(i,t),i.scheduler=n,i.notifier=e,i.zone=typeof Zone<"u"?Zone.current:null,i.scheduler.add(i),i.notifier.notify(12),i}function YF(t,n){return()=>{n(e=>(t.cleanupFns??=[]).push(e))}}var Ov=Symbol("InputSignalNode#UNSET"),n2=De(M({},fp),{transformFn:void 0,applyValueToInputSignal(t,n){rd(t,n)}});function r2(t,n){let e=Object.create(n2);e.value=t,e.transformFn=n?.transform;function i(){if(kl(e),e.value===Ov){let r=null;throw new ue(-950,r)}return e.value}return i[ln]=e,i}var Ii=class{attributeName;constructor(n){this.attributeName=n}__NG_ELEMENT_ID__=()=>qp(this.attributeName);toString(){return`HostAttributeToken ${this.attributeName}`}},ZM=new T("");ZM.__NG_ELEMENT_ID__=t=>{let n=tn();if(n===null)throw new ue(204,!1);if(n.type&2)return n.value;if(t&8)return null;throw new ue(204,!1)};function bi(t){return new af}function QF(t,n){return r2(t,n)}function Cq(t){return r2(Ov,t)}var ne=(QF.required=Cq,QF);function KF(t,n){return IM(n)}function wq(t,n){return AM(n)}var qn=(KF.required=wq,KF);function ZF(t,n){return IM(n)}function Dq(t,n){return AM(n)}var fr=(ZF.required=Dq,ZF);function o2(t,n){return pF(n)}function a2(t,n){let e=Object.create(n2),i=new af;e.value=t;function r(){return kl(e),XF(e.value),e.value}return r[ln]=e,r.asReadonly=Ab.bind(r),r.set=o=>{e.equal(e.value,o)||(rd(e,o),i.emit(o))},r.update=o=>{XF(e.value),r.set(o(e.value))},r.subscribe=i.subscribe.bind(i),r.destroyRef=i.destroyRef,r}function XF(t){if(t===Ov)throw new ue(952,!1)}function JF(t,n){return a2(t,n)}function Eq(t){return a2(Ov,t)}var Em=(JF.required=Eq,JF);var WM=new T(""),Mq=new T("");function sf(t){return!t.moduleRef}function kq(t){let n=sf(t)?t.r3Injector:t.moduleRef.injector,e=n.get(ae);return e.run(()=>{sf(t)?t.r3Injector.resolveInjectorInitializers():t.moduleRef.resolveInjectorInitializers();let i=n.get(hr),r;if(e.runOutsideAngular(()=>{r=e.onError.subscribe({next:i})}),sf(t)){let o=()=>n.destroy(),a=t.platformInjector.get(WM);a.add(o),n.onDestroy(()=>{r.unsubscribe(),a.delete(o)})}else{let o=()=>t.moduleRef.destroy(),a=t.platformInjector.get(WM);a.add(o),t.moduleRef.onDestroy(()=>{Vp(t.allPlatformModules,t.moduleRef),r.unsubscribe(),a.delete(o)})}return Tq(i,e,()=>{let o=n.get(ns),a=o.add(),s=n.get(PM);return s.runInitializers(),s.donePromise.then(()=>{let l=n.get(el,of);if(EF(l||of),!n.get(Mq,!0))return sf(t)?n.get(Gn):(t.allPlatformModules.push(t.moduleRef),t.moduleRef);if(sf(t)){let d=n.get(Gn);return t.rootComponent!==void 0&&d.bootstrap(t.rootComponent),d}else return Sq?.(t.moduleRef,t.allPlatformModules),t.moduleRef}).finally(()=>void o.remove(a))})})}var Sq;function Tq(t,n,e){try{let i=e();return Xs(i)?i.catch(r=>{throw n.runOutsideAngular(()=>t(r)),r}):i}catch(i){throw n.runOutsideAngular(()=>t(i)),i}}var Iv=null;function Iq(t=[],n){return de.create({name:n,providers:[{provide:kp,useValue:"platform"},{provide:WM,useValue:new Set([()=>Iv=null])},...t]})}function Aq(t=[]){if(Iv)return Iv;let n=Iq(t);return Iv=n,yF(),Oq(n),n}function Oq(t){let n=t.get(sv,null);In(t,()=>{n?.forEach(e=>e())})}var ye=(()=>{class t{static __NG_ELEMENT_ID__=Rq}return t})();function Rq(t){return Pq(tn(),Ne(),(t&16)===16)}function Pq(t,n,e){if(qs(t)&&!e){let i=Bo(t.index,n);return new $l(i,i)}else if(t.type&175){let i=n[mr];return new $l(i,n)}return null}var GM=class{constructor(){}supports(n){return MM(n)}create(n){return new qM(n)}},Fq=(t,n)=>n,qM=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||Fq}forEachItem(n){let e;for(e=this._itHead;e!==null;e=e._next)n(e)}forEachOperation(n){let e=this._itHead,i=this._removalsHead,r=0,o=null;for(;e||i;){let a=!i||e&&e.currentIndex{a=this._trackByFn(r,s),e===null||!Object.is(e.trackById,a)?(e=this._mismatch(e,s,a,r),i=!0):(i&&(e=this._verifyReinsertion(e,s,a,r)),Object.is(e.item,s)||this._addIdentityChange(e,s)),e=e._next,r++}),this.length=r;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,i,r){let o;return n===null?o=this._itTail:(o=n._prev,this._remove(n)),n=this._unlinkedRecords===null?null:this._unlinkedRecords.get(i,null),n!==null?(Object.is(n.item,e)||this._addIdentityChange(n,e),this._reinsertAfter(n,o,r)):(n=this._linkedRecords===null?null:this._linkedRecords.get(i,r),n!==null?(Object.is(n.item,e)||this._addIdentityChange(n,e),this._moveAfter(n,o,r)):n=this._addAfter(new YM(e,i),o,r)),n}_verifyReinsertion(n,e,i,r){let o=this._unlinkedRecords===null?null:this._unlinkedRecords.get(i,null);return o!==null?n=this._reinsertAfter(o,n._prev,r):n.currentIndex!=r&&(n.currentIndex=r,this._addToMoves(n,r)),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,i){this._unlinkedRecords!==null&&this._unlinkedRecords.remove(n);let r=n._prevRemoved,o=n._nextRemoved;return r===null?this._removalsHead=o:r._nextRemoved=o,o===null?this._removalsTail=r:o._prevRemoved=r,this._insertAfter(n,e,i),this._addToMoves(n,i),n}_moveAfter(n,e,i){return this._unlink(n),this._insertAfter(n,e,i),this._addToMoves(n,i),n}_addAfter(n,e,i){return this._insertAfter(n,e,i),this._additionsTail===null?this._additionsTail=this._additionsHead=n:this._additionsTail=this._additionsTail._nextAdded=n,n}_insertAfter(n,e,i){let r=e===null?this._itHead:e._next;return n._next=r,n._prev=e,r===null?this._itTail=n:r._prev=n,e===null?this._itHead=n:e._next=n,this._linkedRecords===null&&(this._linkedRecords=new Av),this._linkedRecords.put(n),n.currentIndex=i,n}_remove(n){return this._addToRemovals(this._unlink(n))}_unlink(n){this._linkedRecords!==null&&this._linkedRecords.remove(n);let e=n._prev,i=n._next;return e===null?this._itHead=i:e._next=i,i===null?this._itTail=e:i._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 Av),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}},QM=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 i;for(i=this._head;i!==null;i=i._nextDup)if((e===null||e<=i.currentIndex)&&Object.is(i.trackById,n))return i;return null}remove(n){let e=n._prevDup,i=n._nextDup;return e===null?this._head=i:e._nextDup=i,i===null?this._tail=e:i._prevDup=e,this._head===null}},Av=class{map=new Map;put(n){let e=n.trackById,i=this.map.get(e);i||(i=new QM,this.map.set(e,i)),i.add(n)}get(n,e){let i=n,r=this.map.get(i);return r?r.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 e2(t,n,e){let i=t.previousIndex;if(i===null)return i;let r=0;return e&&i{class t{factories;static \u0275prov=O({token:t,providedIn:"root",factory:t2});constructor(e){this.factories=e}static create(e,i){if(i!=null){let r=i.factories.slice();e=e.concat(r)}return new t(e)}static extend(e){return{provide:t,useFactory:()=>{let i=u(t,{optional:!0,skipSelf:!0});return t.create(e,i||t2())}}}find(e){let i=this.factories.find(r=>r.supports(e));if(i!=null)return i;throw new ue(901,!1)}}return t})();function s2(t){let{rootComponent:n,appProviders:e,platformProviders:i,platformRef:r}=t;oi(8);try{let o=r?.injector??Aq(i),a=[$F({}),{provide:Oo,useExisting:GF},zO,...e||[]],s=new Wp({providers:a,parent:o,debugName:"",runEnvironmentInitializers:!1});return kq({r3Injector:s.injector,platformInjector:o,rootComponent:n})}catch(o){return Promise.reject(o)}finally{oi(9)}}function V(t){return typeof t=="boolean"?t:t!=null&&t!=="false"}function ct(t,n=NaN){return!isNaN(parseFloat(t))&&!isNaN(Number(t))?Number(t):n}var $M=Symbol("NOT_SET"),l2=new Set,Nq=De(M({},fp),{consumerIsAlwaysLive:!0,consumerAllowSignalWrites:!0,value:$M,cleanup:null,consumerMarkedDirty(){if(this.sequence.impl.executing){if(this.sequence.lastPhase===null||this.sequence.lastPhase(kl(c),c.value),c.signal[ln]=c,c.registerCleanupFn=d=>(c.cleanup??=new Set).add(d),this.nodes[s]=c,this.hooks[s]=d=>c.phaseFn(d)}}afterRun(){super.afterRun(),this.lastPhase=null}destroy(){super.destroy();for(let n of this.nodes)if(n)try{for(let e of n.cleanup??l2)e()}finally{Tl(n)}}};function c2(t,n){let e=n?.injector??u(de),i=e.get(Oo),r=e.get(pv),o=e.get(Yl,null,{optional:!0});r.impl??=e.get(_M);let a=t;typeof a=="function"&&(a={mixedReadWrite:t});let s=e.get(wd,null,{optional:!0}),l=new KM(r.impl,[a.earlyRead,a.write,a.mixedReadWrite,a.read],s?.view,i,e,o?.snapshot(null));return r.impl.register(l),l}function Mm(t,n){let e=Ka(t),i=n.elementInjector||Ku();return new Wl(e).create(i,n.projectableNodes,n.hostElement,n.environmentInjector,n.directives,n.bindings)}function d2(t){let n=Ka(t);if(!n)return null;let e=new Wl(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 h2=null;function Wo(){return h2}function XM(t){h2??=t}var lf=class{},cf=(()=>{class t{historyGo(e){throw new Error("")}static \u0275fac=function(i){return new(i||t)};static \u0275prov=O({token:t,factory:()=>u(p2),providedIn:"platform"})}return t})(),JM=new T(""),p2=(()=>{class t extends cf{_location;_history;_doc=u(ge);constructor(){super(),this._location=window.location,this._history=window.history}getBaseHrefFromDOM(){return Wo().getBaseHref(this._doc)}onPopState(e){let i=Wo().getGlobalEventTarget(this._doc,"window");return i.addEventListener("popstate",e,!1),()=>i.removeEventListener("popstate",e)}onHashChange(e){let i=Wo().getGlobalEventTarget(this._doc,"window");return i.addEventListener("hashchange",e,!1),()=>i.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,i,r){this._history.pushState(e,i,r)}replaceState(e,i,r){this._history.replaceState(e,i,r)}forward(){this._history.forward()}back(){this._history.back()}historyGo(e=0){this._history.go(e)}getState(){return this._history.state}static \u0275fac=function(i){return new(i||t)};static \u0275prov=O({token:t,factory:()=>new t,providedIn:"platform"})}return t})();function Rv(t,n){return t?n?t.endsWith("/")?n.startsWith("/")?t+n.slice(1):t+n:n.startsWith("/")?t+n:`${t}/${n}`:t:n}function u2(t){let n=t.search(/#|\?|$/);return t[n-1]==="/"?t.slice(0,n-1)+t.slice(n):t}function Da(t){return t&&t[0]!=="?"?`?${t}`:t}var Ea=(()=>{class t{historyGo(e){throw new Error("")}static \u0275fac=function(i){return new(i||t)};static \u0275prov=O({token:t,factory:()=>u(Fv),providedIn:"root"})}return t})(),Pv=new T(""),Fv=(()=>{class t extends Ea{_platformLocation;_baseHref;_removeListenerFns=[];constructor(e,i){super(),this._platformLocation=e,this._baseHref=i??this._platformLocation.getBaseHrefFromDOM()??u(ge).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 Rv(this._baseHref,e)}path(e=!1){let i=this._platformLocation.pathname+Da(this._platformLocation.search),r=this._platformLocation.hash;return r&&e?`${i}${r}`:i}pushState(e,i,r,o){let a=this.prepareExternalUrl(r+Da(o));this._platformLocation.pushState(e,i,a)}replaceState(e,i,r,o){let a=this.prepareExternalUrl(r+Da(o));this._platformLocation.replaceState(e,i,a)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}getState(){return this._platformLocation.getState()}historyGo(e=0){this._platformLocation.historyGo?.(e)}static \u0275fac=function(i){return new(i||t)(pe(cf),pe(Pv,8))};static \u0275prov=O({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),us=(()=>{class t{_subject=new z;_basePath;_locationStrategy;_urlChangeListeners=[];_urlChangeSubscription=null;constructor(e){this._locationStrategy=e;let i=this._locationStrategy.getBaseHref();this._basePath=Bq(u2(m2(i))),this._locationStrategy.onPopState(r=>{this._subject.next({url:this.path(!0),pop:!0,state:r.state,type:r.type})})}ngOnDestroy(){this._urlChangeSubscription?.unsubscribe(),this._urlChangeListeners=[]}path(e=!1){return this.normalize(this._locationStrategy.path(e))}getState(){return this._locationStrategy.getState()}isCurrentPathEqualTo(e,i=""){return this.path()==this.normalize(e+Da(i))}normalize(e){return t.stripTrailingSlash(Vq(this._basePath,m2(e)))}prepareExternalUrl(e){return e&&e[0]!=="/"&&(e="/"+e),this._locationStrategy.prepareExternalUrl(e)}go(e,i="",r=null){this._locationStrategy.pushState(r,"",e,i),this._notifyUrlChangeListeners(this.prepareExternalUrl(e+Da(i)),r)}replaceState(e,i="",r=null){this._locationStrategy.replaceState(r,"",e,i),this._notifyUrlChangeListeners(this.prepareExternalUrl(e+Da(i)),r)}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(i=>{this._notifyUrlChangeListeners(i.url,i.state)}),()=>{let i=this._urlChangeListeners.indexOf(e);this._urlChangeListeners.splice(i,1),this._urlChangeListeners.length===0&&(this._urlChangeSubscription?.unsubscribe(),this._urlChangeSubscription=null)}}_notifyUrlChangeListeners(e="",i){this._urlChangeListeners.forEach(r=>r(e,i))}subscribe(e,i,r){return this._subject.subscribe({next:e,error:i??void 0,complete:r??void 0})}static normalizeQueryParams=Da;static joinWithSlash=Rv;static stripTrailingSlash=u2;static \u0275fac=function(i){return new(i||t)(pe(Ea))};static \u0275prov=O({token:t,factory:()=>Lq(),providedIn:"root"})}return t})();function Lq(){return new us(pe(Ea))}function Vq(t,n){if(!t||!n.startsWith(t))return n;let e=n.substring(t.length);return e===""||["/",";","?","#"].includes(e[0])?e:n}function m2(t){return t.replace(/\/index.html$/,"")}function Bq(t){if(new RegExp("^(https?:)?//").test(t)){let[,e]=t.split(/\/\/[^\/]+/);return e}return t}var l1=(()=>{class t extends Ea{_platformLocation;_baseHref="";_removeListenerFns=[];constructor(e,i){super(),this._platformLocation=e,i!=null&&(this._baseHref=i)}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 i=this._platformLocation.hash??"#";return i.length>0?i.substring(1):i}prepareExternalUrl(e){let i=Rv(this._baseHref,e);return i.length>0?"#"+i:i}pushState(e,i,r,o){let a=this.prepareExternalUrl(r+Da(o))||this._platformLocation.pathname;this._platformLocation.pushState(e,i,a)}replaceState(e,i,r,o){let a=this.prepareExternalUrl(r+Da(o))||this._platformLocation.pathname;this._platformLocation.replaceState(e,i,a)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}getState(){return this._platformLocation.getState()}historyGo(e=0){this._platformLocation.historyGo?.(e)}static \u0275fac=function(i){return new(i||t)(pe(cf),pe(Pv,8))};static \u0275prov=O({token:t,factory:t.\u0275fac})}return t})(),x2={ADP:[void 0,void 0,0],AFN:[void 0,"\u060B",0],ALL:[void 0,void 0,0],AMD:[void 0,"\u058F",2],AOA:[void 0,"Kz"],ARS:[void 0,"$"],AUD:["A$","$"],AZN:[void 0,"\u20BC"],BAM:[void 0,"KM"],BBD:[void 0,"$"],BDT:[void 0,"\u09F3"],BHD:[void 0,void 0,3],BIF:[void 0,void 0,0],BMD:[void 0,"$"],BND:[void 0,"$"],BOB:[void 0,"Bs"],BRL:["R$"],BSD:[void 0,"$"],BWP:[void 0,"P"],BYN:[void 0,void 0,2],BYR:[void 0,void 0,0],BZD:[void 0,"$"],CAD:["CA$","$",2],CHF:[void 0,void 0,2],CLF:[void 0,void 0,4],CLP:[void 0,"$",0],CNY:["CN\xA5","\xA5"],COP:[void 0,"$",2],CRC:[void 0,"\u20A1",2],CUC:[void 0,"$"],CUP:[void 0,"$"],CZK:[void 0,"K\u010D",2],DJF:[void 0,void 0,0],DKK:[void 0,"kr",2],DOP:[void 0,"$"],EGP:[void 0,"E\xA3"],ESP:[void 0,"\u20A7",0],EUR:["\u20AC"],FJD:[void 0,"$"],FKP:[void 0,"\xA3"],GBP:["\xA3"],GEL:[void 0,"\u20BE"],GHS:[void 0,"GH\u20B5"],GIP:[void 0,"\xA3"],GNF:[void 0,"FG",0],GTQ:[void 0,"Q"],GYD:[void 0,"$",2],HKD:["HK$","$"],HNL:[void 0,"L"],HRK:[void 0,"kn"],HUF:[void 0,"Ft",2],IDR:[void 0,"Rp",2],ILS:["\u20AA"],INR:["\u20B9"],IQD:[void 0,void 0,0],IRR:[void 0,void 0,0],ISK:[void 0,"kr",0],ITL:[void 0,void 0,0],JMD:[void 0,"$"],JOD:[void 0,void 0,3],JPY:["\xA5",void 0,0],KHR:[void 0,"\u17DB"],KMF:[void 0,"CF",0],KPW:[void 0,"\u20A9",0],KRW:["\u20A9",void 0,0],KWD:[void 0,void 0,3],KYD:[void 0,"$"],KZT:[void 0,"\u20B8"],LAK:[void 0,"\u20AD",0],LBP:[void 0,"L\xA3",0],LKR:[void 0,"Rs"],LRD:[void 0,"$"],LTL:[void 0,"Lt"],LUF:[void 0,void 0,0],LVL:[void 0,"Ls"],LYD:[void 0,void 0,3],MGA:[void 0,"Ar",0],MGF:[void 0,void 0,0],MMK:[void 0,"K",0],MNT:[void 0,"\u20AE",2],MRO:[void 0,void 0,0],MUR:[void 0,"Rs",2],MXN:["MX$","$"],MYR:[void 0,"RM"],NAD:[void 0,"$"],NGN:[void 0,"\u20A6"],NIO:[void 0,"C$"],NOK:[void 0,"kr",2],NPR:[void 0,"Rs"],NZD:["NZ$","$"],OMR:[void 0,void 0,3],PHP:["\u20B1"],PKR:[void 0,"Rs",2],PLN:[void 0,"z\u0142"],PYG:[void 0,"\u20B2",0],RON:[void 0,"lei"],RSD:[void 0,void 0,0],RUB:[void 0,"\u20BD"],RWF:[void 0,"RF",0],SBD:[void 0,"$"],SEK:[void 0,"kr",2],SGD:[void 0,"$"],SHP:[void 0,"\xA3"],SLE:[void 0,void 0,2],SLL:[void 0,void 0,0],SOS:[void 0,void 0,0],SRD:[void 0,"$"],SSP:[void 0,"\xA3"],STD:[void 0,void 0,0],STN:[void 0,"Db"],SYP:[void 0,"\xA3",0],THB:[void 0,"\u0E3F"],TMM:[void 0,void 0,0],TND:[void 0,void 0,3],TOP:[void 0,"T$"],TRL:[void 0,void 0,0],TRY:[void 0,"\u20BA"],TTD:[void 0,"$"],TWD:["NT$","$",2],TZS:[void 0,void 0,2],UAH:[void 0,"\u20B4"],UGX:[void 0,void 0,0],USD:["$"],UYI:[void 0,void 0,0],UYU:[void 0,"$"],UYW:[void 0,void 0,4],UZS:[void 0,void 0,2],VEF:[void 0,"Bs",2],VND:["\u20AB",void 0,0],VUV:[void 0,void 0,0],XAF:["FCFA",void 0,0],XCD:["EC$","$"],XOF:["F\u202FCFA",void 0,0],XPF:["CFPF",void 0,0],XXX:["\xA4"],YER:[void 0,void 0,0],ZAR:[void 0,"R"],ZMK:[void 0,void 0,0],ZMW:[void 0,"ZK"],ZWD:[void 0,void 0,0]},Wv=(function(t){return t[t.Decimal=0]="Decimal",t[t.Percent=1]="Percent",t[t.Currency=2]="Currency",t[t.Scientific=3]="Scientific",t})(Wv||{});var gr=(function(t){return t[t.Format=0]="Format",t[t.Standalone=1]="Standalone",t})(gr||{}),hi=(function(t){return t[t.Narrow=0]="Narrow",t[t.Abbreviated=1]="Abbreviated",t[t.Wide=2]="Wide",t[t.Short=3]="Short",t})(hi||{}),Gr=(function(t){return t[t.Short=0]="Short",t[t.Medium=1]="Medium",t[t.Long=2]="Long",t[t.Full=3]="Full",t})(Gr||{}),Yn={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 C2(t){return Ir(t)[zi.LocaleId]}function w2(t,n,e){let i=Ir(t),r=[i[zi.DayPeriodsFormat],i[zi.DayPeriodsStandalone]],o=Go(r,n);return Go(o,e)}function D2(t,n,e){let i=Ir(t),r=[i[zi.DaysFormat],i[zi.DaysStandalone]],o=Go(r,n);return Go(o,e)}function E2(t,n,e){let i=Ir(t),r=[i[zi.MonthsFormat],i[zi.MonthsStandalone]],o=Go(r,n);return Go(o,e)}function M2(t,n){let i=Ir(t)[zi.Eras];return Go(i,n)}function df(t,n){let e=Ir(t);return Go(e[zi.DateFormat],n)}function uf(t,n){let e=Ir(t);return Go(e[zi.TimeFormat],n)}function mf(t,n){let i=Ir(t)[zi.DateTimeFormat];return Go(i,n)}function ka(t,n){let e=Ir(t),i=e[zi.NumberSymbols][n];if(typeof i>"u"){if(n===Yn.CurrencyDecimal)return e[zi.NumberSymbols][Yn.Decimal];if(n===Yn.CurrencyGroup)return e[zi.NumberSymbols][Yn.Group]}return i}function c1(t,n){return Ir(t)[zi.NumberFormats][n]}function jq(t){return Ir(t)[zi.Currencies]}function k2(t){if(!t[zi.ExtraData])throw new ue(2303,!1)}function S2(t){let n=Ir(t);return k2(n),(n[zi.ExtraData][2]||[]).map(i=>typeof i=="string"?e1(i):[e1(i[0]),e1(i[1])])}function T2(t,n,e){let i=Ir(t);k2(i);let r=[i[zi.ExtraData][0],i[zi.ExtraData][1]],o=Go(r,n)||[];return Go(o,e)||[]}function Go(t,n){for(let e=n;e>-1;e--)if(typeof t[e]<"u")return t[e];throw new ue(2304,!1)}function e1(t){let[n,e]=t.split(":");return{hours:+n,minutes:+e}}function I2(t,n,e="en"){let i=jq(e)[t]||x2[t]||[],r=i[1];return n==="narrow"&&typeof r=="string"?r:i[0]||t}var Hq=2;function A2(t){let n,e=x2[t];return e&&(n=e[2]),typeof n=="number"?n:Hq}var zq=/^(\d{4,})-?(\d\d)-?(\d\d)(?:T(\d\d)(?::?(\d\d)(?::?(\d\d)(?:\.(\d+))?)?)?(Z|([+-])(\d\d):?(\d\d))?)?$/,Nv={},Uq=/((?:[^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]*)/;function O2(t,n,e,i){let r=Xq(t);n=tl(e,n)||n;let a=[],s;for(;n;)if(s=Uq.exec(n),s){a=a.concat(s.slice(1));let d=a.pop();if(!d)break;n=d}else{a.push(n);break}let l=r.getTimezoneOffset();i&&(l=P2(i,l),r=Zq(r,i));let c="";return a.forEach(d=>{let m=Qq(d);c+=m?m(r,e,l):d==="''"?"'":d.replace(/(^'|'$)/g,"").replace(/''/g,"'")}),c}function Hv(t,n,e){let i=new Date(0);return i.setFullYear(t,n,e),i.setHours(0,0,0),i}function tl(t,n){let e=C2(t);if(Nv[e]??={},Nv[e][n])return Nv[e][n];let i="";switch(n){case"shortDate":i=df(t,Gr.Short);break;case"mediumDate":i=df(t,Gr.Medium);break;case"longDate":i=df(t,Gr.Long);break;case"fullDate":i=df(t,Gr.Full);break;case"shortTime":i=uf(t,Gr.Short);break;case"mediumTime":i=uf(t,Gr.Medium);break;case"longTime":i=uf(t,Gr.Long);break;case"fullTime":i=uf(t,Gr.Full);break;case"short":let r=tl(t,"shortTime"),o=tl(t,"shortDate");i=Lv(mf(t,Gr.Short),[r,o]);break;case"medium":let a=tl(t,"mediumTime"),s=tl(t,"mediumDate");i=Lv(mf(t,Gr.Medium),[a,s]);break;case"long":let l=tl(t,"longTime"),c=tl(t,"longDate");i=Lv(mf(t,Gr.Long),[l,c]);break;case"full":let d=tl(t,"fullTime"),m=tl(t,"fullDate");i=Lv(mf(t,Gr.Full),[d,m]);break}return i&&(Nv[e][n]=i),i}function Lv(t,n){return n&&(t=t.replace(/\{([^}]+)}/g,function(e,i){return n!=null&&i in n?n[i]:e})),t}function Ma(t,n,e="-",i,r){let o="";(t<0||r&&t<=0)&&(r?t=-t+1:(t=-t,o=e));let a=String(t);for(;a.length0||s>-e)&&(s+=e),t===3)s===0&&e===-12&&(s=12);else if(t===6)return $q(s,n);let l=ka(a,Yn.MinusSign);return Ma(s,n,l,i,r)}}function Wq(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 ue(2301,!1)}}function Ci(t,n,e=gr.Format,i=!1){return function(r,o){return Gq(r,o,t,n,e,i)}}function Gq(t,n,e,i,r,o){switch(e){case 2:return E2(n,r,i)[t.getMonth()];case 1:return D2(n,r,i)[t.getDay()];case 0:let a=t.getHours(),s=t.getMinutes();if(o){let c=S2(n),d=T2(n,r,i),m=c.findIndex(f=>{if(Array.isArray(f)){let[b,v]=f,w=a>=b.hours&&s>=b.minutes,x=a0?Math.floor(r/60):Math.ceil(r/60);switch(t){case 0:return(r>=0?"+":"")+Ma(a,2,o)+Ma(Math.abs(r%60),2,o);case 1:return"GMT"+(r>=0?"+":"")+Ma(a,1,o);case 2:return"GMT"+(r>=0?"+":"")+Ma(a,2,o)+":"+Ma(Math.abs(r%60),2,o);case 3:return i===0?"Z":(r>=0?"+":"")+Ma(a,2,o)+":"+Ma(Math.abs(r%60),2,o);default:throw new ue(2310,!1)}}}var qq=0,jv=4;function Yq(t){let n=Hv(t,qq,1).getDay();return Hv(t,0,1+(n<=jv?jv:jv+7)-n)}function R2(t){let n=t.getDay(),e=n===0?-3:jv-n;return Hv(t.getFullYear(),t.getMonth(),t.getDate()+e)}function t1(t,n=!1){return function(e,i){let r;if(n){let o=new Date(e.getFullYear(),e.getMonth(),1).getDay()-1,a=e.getDate();r=1+Math.floor((a+o)/7)}else{let o=R2(e),a=Yq(o.getFullYear()),s=o.getTime()-a.getTime();r=1+Math.round(s/6048e5)}return Ma(r,t,ka(i,Yn.MinusSign))}}function Bv(t,n=!1){return function(e,i){let o=R2(e).getFullYear();return Ma(o,t,ka(i,Yn.MinusSign),n)}}var i1={};function Qq(t){if(i1[t])return i1[t];let n;switch(t){case"G":case"GG":case"GGG":n=Ci(3,hi.Abbreviated);break;case"GGGG":n=Ci(3,hi.Wide);break;case"GGGGG":n=Ci(3,hi.Narrow);break;case"y":n=dn(0,1,0,!1,!0);break;case"yy":n=dn(0,2,0,!0,!0);break;case"yyy":n=dn(0,3,0,!1,!0);break;case"yyyy":n=dn(0,4,0,!1,!0);break;case"Y":n=Bv(1);break;case"YY":n=Bv(2,!0);break;case"YYY":n=Bv(3);break;case"YYYY":n=Bv(4);break;case"M":case"L":n=dn(1,1,1);break;case"MM":case"LL":n=dn(1,2,1);break;case"MMM":n=Ci(2,hi.Abbreviated);break;case"MMMM":n=Ci(2,hi.Wide);break;case"MMMMM":n=Ci(2,hi.Narrow);break;case"LLL":n=Ci(2,hi.Abbreviated,gr.Standalone);break;case"LLLL":n=Ci(2,hi.Wide,gr.Standalone);break;case"LLLLL":n=Ci(2,hi.Narrow,gr.Standalone);break;case"w":n=t1(1);break;case"ww":n=t1(2);break;case"W":n=t1(1,!0);break;case"d":n=dn(2,1);break;case"dd":n=dn(2,2);break;case"c":case"cc":n=dn(7,1);break;case"ccc":n=Ci(1,hi.Abbreviated,gr.Standalone);break;case"cccc":n=Ci(1,hi.Wide,gr.Standalone);break;case"ccccc":n=Ci(1,hi.Narrow,gr.Standalone);break;case"cccccc":n=Ci(1,hi.Short,gr.Standalone);break;case"E":case"EE":case"EEE":n=Ci(1,hi.Abbreviated);break;case"EEEE":n=Ci(1,hi.Wide);break;case"EEEEE":n=Ci(1,hi.Narrow);break;case"EEEEEE":n=Ci(1,hi.Short);break;case"a":case"aa":case"aaa":n=Ci(0,hi.Abbreviated);break;case"aaaa":n=Ci(0,hi.Wide);break;case"aaaaa":n=Ci(0,hi.Narrow);break;case"b":case"bb":case"bbb":n=Ci(0,hi.Abbreviated,gr.Standalone,!0);break;case"bbbb":n=Ci(0,hi.Wide,gr.Standalone,!0);break;case"bbbbb":n=Ci(0,hi.Narrow,gr.Standalone,!0);break;case"B":case"BB":case"BBB":n=Ci(0,hi.Abbreviated,gr.Format,!0);break;case"BBBB":n=Ci(0,hi.Wide,gr.Format,!0);break;case"BBBBB":n=Ci(0,hi.Narrow,gr.Format,!0);break;case"h":n=dn(3,1,-12);break;case"hh":n=dn(3,2,-12);break;case"H":n=dn(3,1);break;case"HH":n=dn(3,2);break;case"m":n=dn(4,1);break;case"mm":n=dn(4,2);break;case"s":n=dn(5,1);break;case"ss":n=dn(5,2);break;case"S":n=dn(6,1);break;case"SS":n=dn(6,2);break;case"SSS":n=dn(6,3);break;case"Z":case"ZZ":case"ZZZ":n=Vv(0);break;case"ZZZZZ":n=Vv(3);break;case"O":case"OO":case"OOO":case"z":case"zz":case"zzz":n=Vv(1);break;case"OOOO":case"ZZZZ":case"zzzz":n=Vv(2);break;default:return null}return i1[t]=n,n}function P2(t,n){t=t.replace(/:/g,"");let e=Date.parse("Jan 01, 1970 00:00:00 "+t)/6e4;return isNaN(e)?n:e}function Kq(t,n){return t=new Date(t.getTime()),t.setMinutes(t.getMinutes()+n),t}function Zq(t,n,e){let r=t.getTimezoneOffset(),o=P2(n,r);return Kq(t,-1*(o-r))}function Xq(t){if(f2(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[r,o=1,a=1]=t.split("-").map(s=>+s);return Hv(r,o-1,a)}let e=parseFloat(t);if(!isNaN(t-e))return new Date(e);let i;if(i=t.match(zq))return Jq(i)}let n=new Date(t);if(!f2(n))throw new ue(2311,!1);return n}function Jq(t){let n=new Date(0),e=0,i=0,r=t[8]?n.setUTCFullYear:n.setFullYear,o=t[8]?n.setUTCHours:n.setHours;t[9]&&(e=Number(t[9]+t[10]),i=Number(t[9]+t[11])),r.call(n,Number(t[1]),Number(t[2])-1,Number(t[3]));let a=Number(t[4]||0)-e,s=Number(t[5]||0)-i,l=Number(t[6]||0),c=Math.floor(parseFloat("0."+(t[7]||0))*1e3);return o.call(n,a,s,l,c),n}function f2(t){return t instanceof Date&&!isNaN(t.valueOf())}var eY=/^(\d+)?\.((\d+)(-(\d+))?)?$/,g2=22,zv=".",hf="0",tY=";",iY=",",n1="#",_2="\xA4";function F2(t,n,e,i,r,o,a=!1){let s="",l=!1;if(!isFinite(t))s=ka(e,Yn.Infinity);else{let c=rY(t);a&&(c=nY(c));let d=n.minInt,m=n.minFrac,f=n.maxFrac;if(o){let P=o.match(eY);if(P===null)throw new ue(2306,!1);let W=P[1],Z=P[3],K=P[5];W!=null&&(d=r1(W)),Z!=null&&(m=r1(Z)),K!=null?f=r1(K):Z!=null&&m>f&&(f=m)}oY(c,m,f);let b=c.digits,v=c.integerLen,w=c.exponent,x=[];for(l=b.every(P=>!P);v0?x=b.splice(v,b.length):(x=b,b=[0]);let D=[];for(b.length>=n.lgSize&&D.unshift(b.splice(-n.lgSize,b.length).join(""));b.length>n.gSize;)D.unshift(b.splice(-n.gSize,b.length).join(""));b.length&&D.unshift(b.join("")),s=D.join(ka(e,i)),x.length&&(s+=ka(e,r)+x.join("")),w&&(s+=ka(e,Yn.Exponential)+"+"+w)}return t<0&&!l?s=n.negPre+s+n.negSuf:s=n.posPre+s+n.posSuf,s}function N2(t,n,e,i,r){let o=c1(n,Wv.Currency),a=V2(o,ka(n,Yn.MinusSign));return a.minFrac=A2(i),a.maxFrac=a.minFrac,F2(t,a,n,Yn.CurrencyGroup,Yn.CurrencyDecimal,r).replace(_2,e).replace(_2,"").trim()}function L2(t,n,e){let i=c1(n,Wv.Decimal),r=V2(i,ka(n,Yn.MinusSign));return F2(t,r,n,Yn.Group,Yn.Decimal,e)}function V2(t,n="-"){let e={minInt:1,minFrac:0,maxFrac:0,posPre:"",posSuf:"",negPre:"",negSuf:"",gSize:0,lgSize:0},i=t.split(tY),r=i[0],o=i[1],a=r.indexOf(zv)!==-1?r.split(zv):[r.substring(0,r.lastIndexOf(hf)+1),r.substring(r.lastIndexOf(hf)+1)],s=a[0],l=a[1]||"";e.posPre=s.substring(0,s.indexOf(n1));for(let d=0;d-1&&(n=n.replace(zv,"")),(o=n.search(/e/i))>0?(r<0&&(r=o),r+=+n.slice(o+1),n=n.substring(0,o)):r<0&&(r=n.length),o=0;n.charAt(o)===hf;o++);if(o===(s=n.length))i=[0],r=1;else{for(s--;n.charAt(s)===hf;)s--;for(r-=o,i=[],a=0;o<=s;o++,a++)i[a]=Number(n.charAt(o))}return r>g2&&(i=i.splice(0,g2-1),e=r-1,r=1),{digits:i,exponent:e,integerLen:r}}function oY(t,n,e){if(n>e)throw new ue(2307,!1);let i=t.digits,r=i.length-t.integerLen,o=Math.min(Math.max(n,r),e),a=o+t.integerLen,s=i[a];if(a>0){i.splice(Math.max(t.integerLen,a));for(let m=a;m=5)if(a-1<0){for(let m=0;m>a;m--)i.unshift(0),t.integerLen++;i.unshift(1),t.integerLen++}else i[a-1]++;for(;r=c?v.pop():l=!1),f>=10?1:0},0);d&&(i.unshift(d),t.integerLen++)}function r1(t){let n=parseInt(t);if(isNaN(n))throw new ue(2305,!1);return n}var o1=/\s+/,b2=[],Pd=(()=>{class t{_ngEl;_renderer;initialClasses=b2;rawClass;stateMap=new Map;constructor(e,i){this._ngEl=e,this._renderer=i}set klass(e){this.initialClasses=e!=null?e.trim().split(o1):b2}set ngClass(e){this.rawClass=typeof e=="string"?e.trim().split(o1):e}ngDoCheck(){for(let i of this.initialClasses)this._updateState(i,!0);let e=this.rawClass;if(Array.isArray(e)||e instanceof Set)for(let i of e)this._updateState(i,!0);else if(e!=null)for(let i of Object.keys(e))this._updateState(i,!!e[i]);this._applyStateDiff()}_updateState(e,i){let r=this.stateMap.get(e);r!==void 0?(r.enabled!==i&&(r.changed=!0,r.enabled=i),r.touched=!0):this.stateMap.set(e,{enabled:i,changed:!0,touched:!0})}_applyStateDiff(){for(let e of this.stateMap){let i=e[0],r=e[1];r.changed?(this._toggleClass(i,r.enabled),r.changed=!1):r.touched||(r.enabled&&this._toggleClass(i,!1),this.stateMap.delete(i)),r.touched=!1}}_toggleClass(e,i){e=e.trim(),e.length>0&&e.split(o1).forEach(r=>{i?this._renderer.addClass(this._ngEl.nativeElement,r):this._renderer.removeClass(this._ngEl.nativeElement,r)})}static \u0275fac=function(i){return new(i||t)(_e(q),_e(je))};static \u0275dir=F({type:t,selectors:[["","ngClass",""]],inputs:{klass:[0,"class","klass"],ngClass:"ngClass"}})}return t})();var Uv=class{$implicit;ngForOf;index;count;constructor(n,e,i,r){this.$implicit=n,this.ngForOf=e,this.index=i,this.count=r}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}},qr=(()=>{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,i,r){this._viewContainer=e,this._template=i,this._differs=r}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 i=this._viewContainer;e.forEachOperation((r,o,a)=>{if(r.previousIndex==null)i.createEmbeddedView(this._template,new Uv(r.item,this._ngForOf,-1,-1),a===null?void 0:a);else if(a==null)i.remove(o===null?void 0:o);else if(o!==null){let s=i.get(o);i.move(s,a),v2(s,r)}});for(let r=0,o=i.length;r{let o=i.get(r.currentIndex);v2(o,r)})}static ngTemplateContextGuard(e,i){return!0}static \u0275fac=function(i){return new(i||t)(_e(nt),_e(te),_e(ds))};static \u0275dir=F({type:t,selectors:[["","ngFor","","ngForOf",""]],inputs:{ngForOf:"ngForOf",ngForTrackBy:"ngForTrackBy",ngForTemplate:"ngForTemplate"}})}return t})();function v2(t,n){t.context.$implicit=n.item}var li=(()=>{class t{_viewContainer;_context=new $v;_thenTemplateRef=null;_elseTemplateRef=null;_thenViewRef=null;_elseViewRef=null;constructor(e,i){this._viewContainer=e,this._thenTemplateRef=i}set ngIf(e){this._context.$implicit=this._context.ngIf=e,this._updateView()}set ngIfThen(e){y2(e,!1),this._thenTemplateRef=e,this._thenViewRef=null,this._updateView()}set ngIfElse(e){y2(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,i){return!0}static \u0275fac=function(i){return new(i||t)(_e(nt),_e(te))};static \u0275dir=F({type:t,selectors:[["","ngIf",""]],inputs:{ngIf:"ngIf",ngIfThen:"ngIfThen",ngIfElse:"ngIfElse"}})}return t})(),$v=class{$implicit=null;ngIf=null};function y2(t,n){if(t&&!t.createEmbeddedView)throw new ue(2020,!1)}var Fn=(()=>{class t{_viewContainerRef;_viewRef=null;ngTemplateOutletContext=null;ngTemplateOutlet=null;ngTemplateOutletInjector=null;constructor(e){this._viewContainerRef=e}ngOnChanges(e){if(this._shouldRecreateView(e)){let i=this._viewContainerRef;if(this._viewRef&&i.remove(i.indexOf(this._viewRef)),!this.ngTemplateOutlet){this._viewRef=null;return}let r=this._createContextForwardProxy();this._viewRef=i.createEmbeddedView(this.ngTemplateOutlet,r,{injector:this.ngTemplateOutletInjector??void 0})}}_shouldRecreateView(e){return!!e.ngTemplateOutlet||!!e.ngTemplateOutletInjector}_createContextForwardProxy(){return new Proxy({},{set:(e,i,r)=>this.ngTemplateOutletContext?Reflect.set(this.ngTemplateOutletContext,i,r):!1,get:(e,i,r)=>{if(this.ngTemplateOutletContext)return Reflect.get(this.ngTemplateOutletContext,i,r)}})}static \u0275fac=function(i){return new(i||t)(_e(nt))};static \u0275dir=F({type:t,selectors:[["","ngTemplateOutlet",""]],inputs:{ngTemplateOutletContext:"ngTemplateOutletContext",ngTemplateOutlet:"ngTemplateOutlet",ngTemplateOutletInjector:"ngTemplateOutletInjector"},features:[Ae]})}return t})();function pf(t,n){return new ue(2100,!1)}var a1=class{createSubscription(n,e,i){return Ti(()=>n.subscribe({next:e,error:i}))}dispose(n){Ti(()=>n.unsubscribe())}},s1=class{createSubscription(n,e,i){return n.then(r=>e?.(r),r=>i?.(r)),{unsubscribe:()=>{e=null,i=null}}}dispose(n){n.unsubscribe()}},aY=new s1,sY=new a1,rn=(()=>{class t{_ref;_latestValue=null;markForCheckOnValueUpdate=!0;_subscription=null;_obj=null;_strategy=null;applicationErrorHandler=u(hr);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,i=>this._updateLatestValue(e,i),i=>this.applicationErrorHandler(i))}_selectStrategy(e){if(Xs(e))return aY;if(Ev(e))return sY;throw pf(t,e)}_dispose(){this._strategy.dispose(this._subscription),this._latestValue=null,this._subscription=null,this._obj=null}_updateLatestValue(e,i){e===this._obj&&(this._latestValue=i,this.markForCheckOnValueUpdate&&this._ref?.markForCheck())}static \u0275fac=function(i){return new(i||t)(_e(ye,16))};static \u0275pipe=Wr({name:"async",type:t,pure:!1})}return t})();var lY="mediumDate",B2=new T(""),j2=new T(""),Sa=(()=>{class t{locale;defaultTimezone;defaultOptions;constructor(e,i,r){this.locale=e,this.defaultTimezone=i,this.defaultOptions=r}transform(e,i,r,o){if(e==null||e===""||e!==e)return null;try{let a=i??this.defaultOptions?.dateFormat??lY,s=r??this.defaultOptions?.timezone??this.defaultTimezone??void 0;return O2(e,a,o||this.locale,s)}catch(a){throw pf(t,a.message)}}static \u0275fac=function(i){return new(i||t)(_e(el,16),_e(B2,24),_e(j2,24))};static \u0275pipe=Wr({name:"date",type:t,pure:!0})}return t})();var ff=(()=>{class t{_locale;constructor(e){this._locale=e}transform(e,i,r){if(!H2(e))return null;r||=this._locale;try{let o=z2(e);return L2(o,r,i)}catch(o){throw pf(t,o.message)}}static \u0275fac=function(i){return new(i||t)(_e(el,16))};static \u0275pipe=Wr({name:"number",type:t,pure:!0})}return t})();var il=(()=>{class t{_locale;_defaultCurrencyCode;constructor(e,i="USD"){this._locale=e,this._defaultCurrencyCode=i}transform(e,i=this._defaultCurrencyCode,r="symbol",o,a){if(!H2(e))return null;a||=this._locale,typeof r=="boolean"&&(r=r?"symbol":"code");let s=i||this._defaultCurrencyCode;r!=="code"&&(r==="symbol"||r==="symbol-narrow"?s=I2(s,r==="symbol"?"wide":"narrow",a):s=r);try{let l=z2(e);return N2(l,a,s,i,o)}catch(l){throw pf(t,l.message)}}static \u0275fac=function(i){return new(i||t)(_e(el,16),_e(HM,16))};static \u0275pipe=Wr({name:"currency",type:t,pure:!0})}return t})();function H2(t){return!(t==null||t===""||t!==t)}function z2(t){if(typeof t=="string"&&!isNaN(Number(t)-parseFloat(t)))return Number(t);if(typeof t!="number")throw new ue(2309,!1);return t}var d1=(()=>{class t{transform(e,i,r){if(e==null)return null;if(!(typeof e=="string"||Array.isArray(e)))throw pf(t,e);return e.slice(i,r)}static \u0275fac=function(i){return new(i||t)};static \u0275pipe=Wr({name:"slice",type:t,pure:!1})}return t})();var gt=(()=>{class t{static \u0275fac=function(i){return new(i||t)};static \u0275mod=ee({type:t});static \u0275inj=J({})}return t})();function gf(t,n){n=encodeURIComponent(n);for(let e of t.split(";")){let i=e.indexOf("="),[r,o]=i==-1?[e,""]:[e.slice(0,i),e.slice(i+1)];if(r.trim()===n)return decodeURIComponent(o)}return null}var Fd=class{};var m1="browser",cY="server";function U2(t){return t===m1}function $2(t){return t===cY}var h1=(()=>{class t{static \u0275prov=O({token:t,providedIn:"root",factory:()=>new u1(u(ge),window)})}return t})(),u1=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(De(M({},e),{left:n[0],top:n[1]}))}scrollToAnchor(n,e){let i=dY(this.document,n);i&&(this.scrollToElement(i,e),i.focus())}setHistoryScrollRestoration(n){try{this.window.history.scrollRestoration=n}catch{console.warn(Ro(2400,!1))}}scrollToElement(n,e){let i=n.getBoundingClientRect(),r=i.left+this.window.pageXOffset,o=i.top+this.window.pageYOffset,a=this.offset();this.window.scrollTo(De(M({},e),{left:r-a[0],top:o-a[1]}))}};function dY(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 i=t.createTreeWalker(t.body,NodeFilter.SHOW_ELEMENT),r=i.currentNode;for(;r;){let o=r.shadowRoot;if(o){let a=o.getElementById(n)||o.querySelector(`[name="${n}"]`);if(a)return a}r=i.nextNode()}}return null}var _f=class{_doc;constructor(n){this._doc=n}manager},Gv=(()=>{class t extends _f{constructor(e){super(e)}supports(e){return!0}addEventListener(e,i,r,o){return e.addEventListener(i,r,o),()=>this.removeEventListener(e,i,r,o)}removeEventListener(e,i,r,o){return e.removeEventListener(i,r,o)}static \u0275fac=function(i){return new(i||t)(pe(ge))};static \u0275prov=O({token:t,factory:t.\u0275fac})}return t})(),Yv=new T(""),b1=(()=>{class t{_zone;_plugins;_eventNameToPlugin=new Map;constructor(e,i){this._zone=i,e.forEach(a=>{a.manager=this});let r=e.filter(a=>!(a instanceof Gv));this._plugins=r.slice().reverse();let o=e.find(a=>a instanceof Gv);o&&this._plugins.push(o)}addEventListener(e,i,r,o){return this._findPluginFor(i).addEventListener(e,i,r,o)}getZone(){return this._zone}_findPluginFor(e){let i=this._eventNameToPlugin.get(e);if(i)return i;if(i=this._plugins.find(o=>o.supports(e)),!i)throw new ue(5101,!1);return this._eventNameToPlugin.set(e,i),i}static \u0275fac=function(i){return new(i||t)(pe(Yv),pe(ae))};static \u0275prov=O({token:t,factory:t.\u0275fac})}return t})(),p1="ng-app-id";function W2(t){for(let n of t)n.remove()}function G2(t,n){let e=n.createElement("style");return e.textContent=t,e}function uY(t,n,e,i){let r=t.head?.querySelectorAll(`style[${p1}="${n}"],link[${p1}="${n}"]`);if(r)for(let o of r)o.removeAttribute(p1),o instanceof HTMLLinkElement?i.set(o.href.slice(o.href.lastIndexOf("/")+1),{usage:0,elements:[o]}):o.textContent&&e.set(o.textContent,{usage:0,elements:[o]})}function g1(t,n){let e=n.createElement("link");return e.setAttribute("rel","stylesheet"),e.setAttribute("href",t),e}var v1=(()=>{class t{doc;appId;nonce;inline=new Map;external=new Map;hosts=new Set;constructor(e,i,r,o={}){this.doc=e,this.appId=i,this.nonce=r,uY(e,i,this.inline,this.external),this.hosts.add(e.head)}addStyles(e,i){for(let r of e)this.addUsage(r,this.inline,G2);i?.forEach(r=>this.addUsage(r,this.external,g1))}removeStyles(e,i){for(let r of e)this.removeUsage(r,this.inline);i?.forEach(r=>this.removeUsage(r,this.external))}addUsage(e,i,r){let o=i.get(e);o?o.usage++:i.set(e,{usage:1,elements:[...this.hosts].map(a=>this.addElement(a,r(e,this.doc)))})}removeUsage(e,i){let r=i.get(e);r&&(r.usage--,r.usage<=0&&(W2(r.elements),i.delete(e)))}ngOnDestroy(){for(let[,{elements:e}]of[...this.inline,...this.external])W2(e);this.hosts.clear()}addHost(e){this.hosts.add(e);for(let[i,{elements:r}]of this.inline)r.push(this.addElement(e,G2(i,this.doc)));for(let[i,{elements:r}]of this.external)r.push(this.addElement(e,g1(i,this.doc)))}removeHost(e){this.hosts.delete(e)}addElement(e,i){return this.nonce&&i.setAttribute("nonce",this.nonce),e.appendChild(i)}static \u0275fac=function(i){return new(i||t)(pe(ge),pe(ql),pe(gm,8),pe(Ks))};static \u0275prov=O({token:t,factory:t.\u0275fac})}return t})(),f1={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"},y1=/%COMP%/g;var Y2="%COMP%",mY=`_nghost-${Y2}`,hY=`_ngcontent-${Y2}`,pY=!0,fY=new T("",{providedIn:"root",factory:()=>pY});function gY(t){return hY.replace(y1,t)}function _Y(t){return mY.replace(y1,t)}function Q2(t,n){return n.map(e=>e.replace(y1,t))}var x1=(()=>{class t{eventManager;sharedStylesHost;appId;removeStylesOnCompDestroy;doc;ngZone;nonce;tracingService;rendererByCompId=new Map;defaultRenderer;platformIsServer;constructor(e,i,r,o,a,s,l=null,c=null){this.eventManager=e,this.sharedStylesHost=i,this.appId=r,this.removeStylesOnCompDestroy=o,this.doc=a,this.ngZone=s,this.nonce=l,this.tracingService=c,this.platformIsServer=!1,this.defaultRenderer=new bf(e,a,s,this.platformIsServer,this.tracingService)}createRenderer(e,i){if(!e||!i)return this.defaultRenderer;let r=this.getOrCreateRenderer(e,i);return r instanceof qv?r.applyToHost(e):r instanceof vf&&r.applyStyles(),r}getOrCreateRenderer(e,i){let r=this.rendererByCompId,o=r.get(i.id);if(!o){let a=this.doc,s=this.ngZone,l=this.eventManager,c=this.sharedStylesHost,d=this.removeStylesOnCompDestroy,m=this.platformIsServer,f=this.tracingService;switch(i.encapsulation){case Ys.Emulated:o=new qv(l,c,i,this.appId,d,a,s,m,f);break;case Ys.ShadowDom:return new _1(l,c,e,i,a,s,this.nonce,m,f);default:o=new vf(l,c,i,d,a,s,m,f);break}r.set(i.id,o)}return o}ngOnDestroy(){this.rendererByCompId.clear()}componentReplaced(e){this.rendererByCompId.delete(e)}static \u0275fac=function(i){return new(i||t)(pe(b1),pe(v1),pe(ql),pe(fY),pe(ge),pe(ae),pe(gm),pe(Yl,8))};static \u0275prov=O({token:t,factory:t.\u0275fac})}return t})(),bf=class{eventManager;doc;ngZone;platformIsServer;tracingService;data=Object.create(null);throwOnSyntheticProps=!0;constructor(n,e,i,r,o){this.eventManager=n,this.doc=e,this.ngZone=i,this.platformIsServer=r,this.tracingService=o}destroy(){}destroyNode=null;createElement(n,e){return e?this.doc.createElementNS(f1[e]||e,n):this.doc.createElement(n)}createComment(n){return this.doc.createComment(n)}createText(n){return this.doc.createTextNode(n)}appendChild(n,e){(q2(n)?n.content:n).appendChild(e)}insertBefore(n,e,i){n&&(q2(n)?n.content:n).insertBefore(e,i)}removeChild(n,e){e.remove()}selectRootElement(n,e){let i=typeof n=="string"?this.doc.querySelector(n):n;if(!i)throw new ue(-5104,!1);return e||(i.textContent=""),i}parentNode(n){return n.parentNode}nextSibling(n){return n.nextSibling}setAttribute(n,e,i,r){if(r){e=r+":"+e;let o=f1[r];o?n.setAttributeNS(o,e,i):n.setAttribute(e,i)}else n.setAttribute(e,i)}removeAttribute(n,e,i){if(i){let r=f1[i];r?n.removeAttributeNS(r,e):n.removeAttribute(`${i}:${e}`)}else n.removeAttribute(e)}addClass(n,e){n.classList.add(e)}removeClass(n,e){n.classList.remove(e)}setStyle(n,e,i,r){r&(os.DashCase|os.Important)?n.style.setProperty(e,i,r&os.Important?"important":""):n.style[e]=i}removeStyle(n,e,i){i&os.DashCase?n.style.removeProperty(e):n.style[e]=""}setProperty(n,e,i){n!=null&&(n[e]=i)}setValue(n,e){n.nodeValue=e}listen(n,e,i,r){if(typeof n=="string"&&(n=Wo().getGlobalEventTarget(this.doc,n),!n))throw new ue(5102,!1);let o=this.decoratePreventDefault(i);return this.tracingService?.wrapEventListener&&(o=this.tracingService.wrapEventListener(n,e,o)),this.eventManager.addEventListener(n,e,o,r)}decoratePreventDefault(n){return e=>{if(e==="__ngUnwrap__")return n;n(e)===!1&&e.preventDefault()}}};function q2(t){return t.tagName==="TEMPLATE"&&t.content!==void 0}var _1=class extends bf{sharedStylesHost;hostEl;shadowRoot;constructor(n,e,i,r,o,a,s,l,c){super(n,o,a,l,c),this.sharedStylesHost=e,this.hostEl=i,this.shadowRoot=i.attachShadow({mode:"open"}),this.sharedStylesHost.addHost(this.shadowRoot);let d=r.styles;d=Q2(r.id,d);for(let f of d){let b=document.createElement("style");s&&b.setAttribute("nonce",s),b.textContent=f,this.shadowRoot.appendChild(b)}let m=r.getExternalStyles?.();if(m)for(let f of m){let b=g1(f,o);s&&b.setAttribute("nonce",s),this.shadowRoot.appendChild(b)}}nodeOrShadowRoot(n){return n===this.hostEl?this.shadowRoot:n}appendChild(n,e){return super.appendChild(this.nodeOrShadowRoot(n),e)}insertBefore(n,e,i){return super.insertBefore(this.nodeOrShadowRoot(n),e,i)}removeChild(n,e){return super.removeChild(null,e)}parentNode(n){return this.nodeOrShadowRoot(super.parentNode(this.nodeOrShadowRoot(n)))}destroy(){this.sharedStylesHost.removeHost(this.shadowRoot)}},vf=class extends bf{sharedStylesHost;removeStylesOnCompDestroy;styles;styleUrls;constructor(n,e,i,r,o,a,s,l,c){super(n,o,a,s,l),this.sharedStylesHost=e,this.removeStylesOnCompDestroy=r;let d=i.styles;this.styles=c?Q2(c,d):d,this.styleUrls=i.getExternalStyles?.(c)}applyStyles(){this.sharedStylesHost.addStyles(this.styles,this.styleUrls)}destroy(){this.removeStylesOnCompDestroy&&kd.size===0&&this.sharedStylesHost.removeStyles(this.styles,this.styleUrls)}},qv=class extends vf{contentAttr;hostAttr;constructor(n,e,i,r,o,a,s,l,c){let d=r+"-"+i.id;super(n,e,i,o,a,s,l,c,d),this.contentAttr=gY(d),this.hostAttr=_Y(d)}applyToHost(n){this.applyStyles(),this.setAttribute(n,this.hostAttr,"")}createElement(n,e){let i=super.createElement(n,e);return super.setAttribute(i,this.contentAttr,""),i}};var Qv=class t extends lf{supportsDOMEvents=!0;static makeCurrent(){XM(new t)}onAndCancel(n,e,i,r){return n.addEventListener(e,i,r),()=>{n.removeEventListener(e,i,r)}}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=bY();return e==null?null:vY(e)}resetBaseElement(){yf=null}getUserAgent(){return window.navigator.userAgent}getCookie(n){return gf(document.cookie,n)}},yf=null;function bY(){return yf=yf||document.head.querySelector("base"),yf?yf.getAttribute("href"):null}function vY(t){return new URL(t,document.baseURI).pathname}var yY=(()=>{class t{build(){return new XMLHttpRequest}static \u0275fac=function(i){return new(i||t)};static \u0275prov=O({token:t,factory:t.\u0275fac})}return t})(),K2=["alt","control","meta","shift"],xY={"\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"},CY={alt:t=>t.altKey,control:t=>t.ctrlKey,meta:t=>t.metaKey,shift:t=>t.shiftKey},Z2=(()=>{class t extends _f{constructor(e){super(e)}supports(e){return t.parseEventName(e)!=null}addEventListener(e,i,r,o){let a=t.parseEventName(i),s=t.eventCallback(a.fullKey,r,this.manager.getZone());return this.manager.getZone().runOutsideAngular(()=>Wo().onAndCancel(e,a.domEventName,s,o))}static parseEventName(e){let i=e.toLowerCase().split("."),r=i.shift();if(i.length===0||!(r==="keydown"||r==="keyup"))return null;let o=t._normalizeKey(i.pop()),a="",s=i.indexOf("code");if(s>-1&&(i.splice(s,1),a="code."),K2.forEach(c=>{let d=i.indexOf(c);d>-1&&(i.splice(d,1),a+=c+".")}),a+=o,i.length!=0||o.length===0)return null;let l={};return l.domEventName=r,l.fullKey=a,l}static matchEventFullKeyCode(e,i){let r=xY[e.key]||e.key,o="";return i.indexOf("code.")>-1&&(r=e.code,o="code."),r==null||!r?!1:(r=r.toLowerCase(),r===" "?r="space":r==="."&&(r="dot"),K2.forEach(a=>{if(a!==r){let s=CY[a];s(e)&&(o+=a+".")}}),o+=r,o===i)}static eventCallback(e,i,r){return o=>{t.matchEventFullKeyCode(o,e)&&r.runGuarded(()=>i(o))}}static _normalizeKey(e){return e==="esc"?"escape":e}static \u0275fac=function(i){return new(i||t)(pe(ge))};static \u0275prov=O({token:t,factory:t.\u0275fac})}return t})();function C1(t,n,e){let i=M({rootComponent:t,platformRef:e?.platformRef},wY(n));return s2(i)}function wY(t){return{appProviders:[...SY,...t?.providers??[]],platformProviders:kY}}function DY(){Qv.makeCurrent()}function EY(){return new Tn}function MY(){return JE(document),document}var kY=[{provide:Ks,useValue:m1},{provide:sv,useValue:DY,multi:!0},{provide:ge,useFactory:MY}];var SY=[{provide:kp,useValue:"root"},{provide:Tn,useFactory:EY},{provide:Yv,useClass:Gv,multi:!0,deps:[ge]},{provide:Yv,useClass:Z2,multi:!0,deps:[ge]},x1,v1,b1,{provide:cn,useExisting:x1},{provide:Fd,useClass:yY},[]];var Tm=class{},Zl=class{},_r=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 i=e.indexOf(":");if(i>0){let r=e.slice(0,i),o=e.slice(i+1).trim();this.addHeaderEntry(r,o)}})}:typeof Headers<"u"&&n instanceof Headers?(this.headers=new Map,n.forEach((e,i)=>{this.addHeaderEntry(i,e)})):this.lazyInit=()=>{this.headers=new Map,Object.entries(n).forEach(([e,i])=>{this.setHeaderEntries(e,i)})}: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(),Array.from(n.headers.keys()).forEach(e=>{this.headers.set(e,n.headers.get(e)),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 i=n.value;if(typeof i=="string"&&(i=[i]),i.length===0)return;this.maybeSetNormalizedName(n.name,e);let r=(n.op==="a"?this.headers.get(e):void 0)||[];r.push(...i),this.headers.set(e,r);break;case"d":let o=n.value;if(!o)this.headers.delete(e),this.normalizedNames.delete(e);else{let a=this.headers.get(e);if(!a)return;a=a.filter(s=>o.indexOf(s)===-1),a.length===0?(this.headers.delete(e),this.normalizedNames.delete(e)):this.headers.set(e,a)}break}}addHeaderEntry(n,e){let i=n.toLowerCase();this.maybeSetNormalizedName(n,i),this.headers.has(i)?this.headers.get(i).push(e):this.headers.set(i,[e])}setHeaderEntries(n,e){let i=(Array.isArray(e)?e:[e]).map(o=>o.toString()),r=n.toLowerCase();this.headers.set(r,i),this.maybeSetNormalizedName(n,r)}forEach(n){this.init(),Array.from(this.normalizedNames.keys()).forEach(e=>n(this.normalizedNames.get(e),this.headers.get(e)))}};var Zv=class{encodeKey(n){return X2(n)}encodeValue(n){return X2(n)}decodeKey(n){return decodeURIComponent(n)}decodeValue(n){return decodeURIComponent(n)}};function TY(t,n){let e=new Map;return t.length>0&&t.replace(/^\?/,"").split("&").forEach(r=>{let o=r.indexOf("="),[a,s]=o==-1?[n.decodeKey(r),""]:[n.decodeKey(r.slice(0,o)),n.decodeValue(r.slice(o+1))],l=e.get(a)||[];l.push(s),e.set(a,l)}),e}var IY=/%(\d[a-f0-9])/gi,AY={40:"@","3A":":",24:"$","2C":",","3B":";","3D":"=","3F":"?","2F":"/"};function X2(t){return encodeURIComponent(t).replace(IY,(n,e)=>AY[e]??n)}function Kv(t){return`${t}`}var Qn=class t{map;encoder;updates=null;cloneFrom=null;constructor(n={}){if(this.encoder=n.encoder||new Zv,n.fromString){if(n.fromObject)throw new ue(2805,!1);this.map=TY(n.fromString,this.encoder)}else n.fromObject?(this.map=new Map,Object.keys(n.fromObject).forEach(e=>{let i=n.fromObject[e],r=Array.isArray(i)?i.map(Kv):[Kv(i)];this.map.set(e,r)})):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(i=>{let r=n[i];Array.isArray(r)?r.forEach(o=>{e.push({param:i,value:o,op:"a"})}):e.push({param:i,value:r,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(i=>e+"="+this.encoder.encodeValue(i)).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(){this.map===null&&(this.map=new Map),this.cloneFrom!==null&&(this.cloneFrom.init(),this.cloneFrom.keys().forEach(n=>this.map.set(n,this.cloneFrom.map.get(n))),this.updates.forEach(n=>{switch(n.op){case"a":case"s":let e=(n.op==="a"?this.map.get(n.param):void 0)||[];e.push(Kv(n.value)),this.map.set(n.param,e);break;case"d":if(n.value!==void 0){let i=this.map.get(n.param)||[],r=i.indexOf(Kv(n.value));r!==-1&&i.splice(r,1),i.length>0?this.map.set(n.param,i):this.map.delete(n.param)}else{this.map.delete(n.param);break}}}),this.cloneFrom=this.updates=null)}};var Xv=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()}};function OY(t){switch(t){case"DELETE":case"GET":case"HEAD":case"OPTIONS":case"JSONP":return!1;default:return!0}}function J2(t){return typeof ArrayBuffer<"u"&&t instanceof ArrayBuffer}function eN(t){return typeof Blob<"u"&&t instanceof Blob}function tN(t){return typeof FormData<"u"&&t instanceof FormData}function RY(t){return typeof URLSearchParams<"u"&&t instanceof URLSearchParams}var iN="Content-Type",nN="Accept",rN="X-Request-URL",oN="text/plain",aN="application/json",PY=`${aN}, ${oN}, */*`,km=class t{url;body=null;headers;context;reportProgress=!1;withCredentials=!1;credentials;keepalive=!1;cache;priority;mode;redirect;referrer;integrity;responseType="json";method;params;urlWithParams;transferCache;timeout;constructor(n,e,i,r){this.url=e,this.method=n.toUpperCase();let o;if(OY(this.method)||r?(this.body=i!==void 0?i:null,o=r):o=i,o){if(this.reportProgress=!!o.reportProgress,this.withCredentials=!!o.withCredentials,this.keepalive=!!o.keepalive,o.responseType&&(this.responseType=o.responseType),o.headers&&(this.headers=o.headers),o.context&&(this.context=o.context),o.params&&(this.params=o.params),o.priority&&(this.priority=o.priority),o.cache&&(this.cache=o.cache),o.credentials&&(this.credentials=o.credentials),typeof o.timeout=="number"){if(o.timeout<1||!Number.isInteger(o.timeout))throw new ue(2822,"");this.timeout=o.timeout}o.mode&&(this.mode=o.mode),o.redirect&&(this.redirect=o.redirect),o.integrity&&(this.integrity=o.integrity),o.referrer&&(this.referrer=o.referrer),this.transferCache=o.transferCache}if(this.headers??=new _r,this.context??=new Xv,!this.params)this.params=new Qn,this.urlWithParams=e;else{let a=this.params.toString();if(a.length===0)this.urlWithParams=e;else{let s=e.indexOf("?"),l=s===-1?"?":sK.set(re,n.setHeaders[re]),P)),n.setParams&&(W=Object.keys(n.setParams).reduce((K,re)=>K.set(re,n.setParams[re]),W)),new t(e,i,w,{params:W,headers:P,context:Z,reportProgress:D,responseType:r,withCredentials:x,transferCache:b,keepalive:o,cache:s,priority:a,timeout:v,mode:l,redirect:c,credentials:d,referrer:m,integrity:f})}},Nd=(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})(Nd||{}),Im=class{headers;status;statusText;url;ok;type;redirected;constructor(n,e=200,i="OK"){this.headers=n.headers||new _r,this.status=n.status!==void 0?n.status:e,this.statusText=n.statusText||i,this.url=n.url||null,this.redirected=n.redirected,this.ok=this.status>=200&&this.status<300}},Jv=class t extends Im{constructor(n={}){super(n)}type=Nd.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})}},nl=class t extends Im{body;constructor(n={}){super(n),this.body=n.body!==void 0?n.body:null}type=Nd.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})}},Sm=class extends Im{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}},FY=200,NY=204;function w1(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}}var Yr=(()=>{class t{handler;constructor(e){this.handler=e}request(e,i,r={}){let o;if(e instanceof km)o=e;else{let l;r.headers instanceof _r?l=r.headers:l=new _r(r.headers);let c;r.params&&(r.params instanceof Qn?c=r.params:c=new Qn({fromObject:r.params})),o=new km(e,i,r.body!==void 0?r.body:null,{headers:l,context:r.context,params:c,reportProgress:r.reportProgress,responseType:r.responseType||"json",withCredentials:r.withCredentials,transferCache:r.transferCache,keepalive:r.keepalive,priority:r.priority,cache:r.cache,mode:r.mode,redirect:r.redirect,credentials:r.credentials,referrer:r.referrer,integrity:r.integrity,timeout:r.timeout})}let a=Q(o).pipe(Ao(l=>this.handler.handle(l)));if(e instanceof km||r.observe==="events")return a;let s=a.pipe(ce(l=>l instanceof nl));switch(r.observe||"body"){case"body":switch(o.responseType){case"arraybuffer":return s.pipe(se(l=>{if(l.body!==null&&!(l.body instanceof ArrayBuffer))throw new ue(2806,!1);return l.body}));case"blob":return s.pipe(se(l=>{if(l.body!==null&&!(l.body instanceof Blob))throw new ue(2807,!1);return l.body}));case"text":return s.pipe(se(l=>{if(l.body!==null&&typeof l.body!="string")throw new ue(2808,!1);return l.body}));case"json":default:return s.pipe(se(l=>l.body))}case"response":return s;default:throw new ue(2809,!1)}}delete(e,i={}){return this.request("DELETE",e,i)}get(e,i={}){return this.request("GET",e,i)}head(e,i={}){return this.request("HEAD",e,i)}jsonp(e,i){return this.request("JSONP",e,{params:new Qn().append(i,"JSONP_CALLBACK"),observe:"body",responseType:"json"})}options(e,i={}){return this.request("OPTIONS",e,i)}patch(e,i,r={}){return this.request("PATCH",e,w1(r,i))}post(e,i,r={}){return this.request("POST",e,w1(r,i))}put(e,i,r={}){return this.request("PUT",e,w1(r,i))}static \u0275fac=function(i){return new(i||t)(pe(Tm))};static \u0275prov=O({token:t,factory:t.\u0275fac})}return t})();var LY=new T("");function VY(t,n){return n(t)}function BY(t,n,e){return(i,r)=>In(e,()=>n(i,o=>t(o,r)))}var E1=new T(""),M1=new T(""),sN=new T(""),lN=new T("",{providedIn:"root",factory:()=>!0});var e0=(()=>{class t extends Tm{backend;injector;chain=null;pendingTasks=u(om);contributeToStability=u(lN);constructor(e,i){super(),this.backend=e,this.injector=i}handle(e){if(this.chain===null){let i=Array.from(new Set([...this.injector.get(M1),...this.injector.get(sN,[])]));this.chain=i.reduceRight((r,o)=>BY(r,o,this.injector),VY)}if(this.contributeToStability){let i=this.pendingTasks.add();return this.chain(e,r=>this.backend.handle(r)).pipe(Hr(i))}else return this.chain(e,i=>this.backend.handle(i))}static \u0275fac=function(i){return new(i||t)(pe(Zl),pe(Wt))};static \u0275prov=O({token:t,factory:t.\u0275fac})}return t})();var jY=/^\)\]\}',?\n/,HY=RegExp(`^${rN}:`,"m");function zY(t){return"responseURL"in t&&t.responseURL?t.responseURL:HY.test(t.getAllResponseHeaders())?t.getResponseHeader(rN):null}var D1=(()=>{class t{xhrFactory;constructor(e){this.xhrFactory=e}handle(e){if(e.method==="JSONP")throw new ue(-2800,!1);let i=this.xhrFactory;return Q(null).pipe($e(()=>new Fe(o=>{let a=i.build();if(a.open(e.method,e.urlWithParams),e.withCredentials&&(a.withCredentials=!0),e.headers.forEach((x,D)=>a.setRequestHeader(x,D.join(","))),e.headers.has(nN)||a.setRequestHeader(nN,PY),!e.headers.has(iN)){let x=e.detectContentTypeHeader();x!==null&&a.setRequestHeader(iN,x)}if(e.timeout&&(a.timeout=e.timeout),e.responseType){let x=e.responseType.toLowerCase();a.responseType=x!=="json"?x:"text"}let s=e.serializeBody(),l=null,c=()=>{if(l!==null)return l;let x=a.statusText||"OK",D=new _r(a.getAllResponseHeaders()),P=zY(a)||e.url;return l=new Jv({headers:D,status:a.status,statusText:x,url:P}),l},d=()=>{let{headers:x,status:D,statusText:P,url:W}=c(),Z=null;D!==NY&&(Z=typeof a.response>"u"?a.responseText:a.response),D===0&&(D=Z?FY:0);let K=D>=200&&D<300;if(e.responseType==="json"&&typeof Z=="string"){let re=Z;Z=Z.replace(jY,"");try{Z=Z!==""?JSON.parse(Z):null}catch(Ee){Z=re,K&&(K=!1,Z={error:Ee,text:Z})}}K?(o.next(new nl({body:Z,headers:x,status:D,statusText:P,url:W||void 0})),o.complete()):o.error(new Sm({error:Z,headers:x,status:D,statusText:P,url:W||void 0}))},m=x=>{let{url:D}=c(),P=new Sm({error:x,status:a.status||0,statusText:a.statusText||"Unknown Error",url:D||void 0});o.error(P)},f=m;e.timeout&&(f=x=>{let{url:D}=c(),P=new Sm({error:new DOMException("Request timed out","TimeoutError"),status:a.status||0,statusText:a.statusText||"Request timeout",url:D||void 0});o.error(P)});let b=!1,v=x=>{b||(o.next(c()),b=!0);let D={type:Nd.DownloadProgress,loaded:x.loaded};x.lengthComputable&&(D.total=x.total),e.responseType==="text"&&a.responseText&&(D.partialText=a.responseText),o.next(D)},w=x=>{let D={type:Nd.UploadProgress,loaded:x.loaded};x.lengthComputable&&(D.total=x.total),o.next(D)};return a.addEventListener("load",d),a.addEventListener("error",m),a.addEventListener("timeout",f),a.addEventListener("abort",m),e.reportProgress&&(a.addEventListener("progress",v),s!==null&&a.upload&&a.upload.addEventListener("progress",w)),a.send(s),o.next({type:Nd.Sent}),()=>{a.removeEventListener("error",m),a.removeEventListener("abort",m),a.removeEventListener("load",d),a.removeEventListener("timeout",f),e.reportProgress&&(a.removeEventListener("progress",v),s!==null&&a.upload&&a.upload.removeEventListener("progress",w)),a.readyState!==a.DONE&&a.abort()}})))}static \u0275fac=function(i){return new(i||t)(pe(Fd))};static \u0275prov=O({token:t,factory:t.\u0275fac})}return t})(),cN=new T(""),UY="XSRF-TOKEN",$Y=new T("",{providedIn:"root",factory:()=>UY}),WY="X-XSRF-TOKEN",GY=new T("",{providedIn:"root",factory:()=>WY}),xf=class{},qY=(()=>{class t{doc;cookieName;lastCookieString="";lastToken=null;parseCount=0;constructor(e,i){this.doc=e,this.cookieName=i}getToken(){let e=this.doc.cookie||"";return e!==this.lastCookieString&&(this.parseCount++,this.lastToken=gf(e,this.cookieName),this.lastCookieString=e),this.lastToken}static \u0275fac=function(i){return new(i||t)(pe(ge),pe($Y))};static \u0275prov=O({token:t,factory:t.\u0275fac})}return t})(),YY=/^(?:https?:)?\/\//i;function QY(t,n){if(!u(cN)||t.method==="GET"||t.method==="HEAD"||YY.test(t.url))return n(t);let e=u(xf).getToken(),i=u(GY);return e!=null&&!t.headers.has(i)&&(t=t.clone({headers:t.headers.set(i,e)})),n(t)}var k1=(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})(k1||{});function KY(t,n){return{\u0275kind:t,\u0275providers:n}}function S1(...t){let n=[Yr,D1,e0,{provide:Tm,useExisting:e0},{provide:Zl,useFactory:()=>u(LY,{optional:!0})??u(D1)},{provide:M1,useValue:QY,multi:!0},{provide:cN,useValue:!0},{provide:xf,useClass:qY}];for(let e of t)n.push(...e.\u0275providers);return zr(n)}function T1(t){return KY(k1.Interceptors,t.map(n=>({provide:M1,useValue:n,multi:!0})))}var uN=(()=>{class t{_doc;constructor(e){this._doc=e}getTitle(){return this._doc.title}setTitle(e){this._doc.title=e||""}static \u0275fac=function(i){return new(i||t)(pe(ge))};static \u0275prov=O({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();var Cf=(()=>{class t{static \u0275fac=function(i){return new(i||t)};static \u0275prov=O({token:t,factory:function(i){let r=null;return i?r=new(i||t):r=pe(ZY),r},providedIn:"root"})}return t})(),ZY=(()=>{class t extends Cf{_doc;constructor(e){super(),this._doc=e}sanitize(e,i){if(i==null)return null;switch(e){case An.NONE:return i;case An.HTML:return ls(i,"HTML")?Ur(i):uv(this._doc,String(i)).toString();case An.STYLE:return ls(i,"Style")?Ur(i):i;case An.SCRIPT:if(ls(i,"Script"))return Ur(i);throw new ue(5200,!1);case An.URL:return ls(i,"URL")?Ur(i):Qp(String(i));case An.RESOURCE_URL:if(ls(i,"ResourceURL"))return Ur(i);throw new ue(5201,!1);default:throw new ue(5202,!1)}}bypassSecurityTrustHtml(e){return iM(e)}bypassSecurityTrustStyle(e){return nM(e)}bypassSecurityTrustScript(e){return rM(e)}bypassSecurityTrustUrl(e){return oM(e)}bypassSecurityTrustResourceUrl(e){return aM(e)}static \u0275fac=function(i){return new(i||t)(pe(ge))};static \u0275prov=O({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();var dt="primary",Ff=Symbol("RouteTitle"),F1=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 Bd(t){return new F1(t)}function vN(t,n,e){let i=e.path.split("/");if(i.length>t.length||e.pathMatch==="full"&&(n.hasChildren()||i.lengthi[o]===r)}else return t===n}function xN(t){return t.length>0?t[t.length-1]:null}function rl(t){return ji(t)?t:Xs(t)?Ot(Promise.resolve(t)):Q(t)}var JY={exact:wN,subset:DN},CN={exact:eQ,subset:tQ,ignored:()=>!0};function mN(t,n,e){return JY[e.paths](t.root,n.root,e.matrixParams)&&CN[e.queryParams](t.queryParams,n.queryParams)&&!(e.fragment==="exact"&&t.fragment!==n.fragment)}function eQ(t,n){return ms(t,n)}function wN(t,n,e){if(!Ld(t.segments,n.segments)||!n0(t.segments,n.segments,e)||t.numberOfChildren!==n.numberOfChildren)return!1;for(let i in n.children)if(!t.children[i]||!wN(t.children[i],n.children[i],e))return!1;return!0}function tQ(t,n){return Object.keys(n).length<=Object.keys(t).length&&Object.keys(n).every(e=>yN(t[e],n[e]))}function DN(t,n,e){return EN(t,n,n.segments,e)}function EN(t,n,e,i){if(t.segments.length>e.length){let r=t.segments.slice(0,e.length);return!(!Ld(r,e)||n.hasChildren()||!n0(r,e,i))}else if(t.segments.length===e.length){if(!Ld(t.segments,e)||!n0(t.segments,e,i))return!1;for(let r in n.children)if(!t.children[r]||!DN(t.children[r],n.children[r],i))return!1;return!0}else{let r=e.slice(0,t.segments.length),o=e.slice(t.segments.length);return!Ld(t.segments,r)||!n0(t.segments,r,i)||!t.children[dt]?!1:EN(t.children[dt],n,o,i)}}function n0(t,n,e){return n.every((i,r)=>CN[e](t[r].parameters,i.parameters))}var hs=class{root;queryParams;fragment;_queryParamMap;constructor(n=new qt([],{}),e={},i=null){this.root=n,this.queryParams=e,this.fragment=i}get queryParamMap(){return this._queryParamMap??=Bd(this.queryParams),this._queryParamMap}toString(){return rQ.serialize(this)}},qt=class{segments;children;parent=null;constructor(n,e){this.segments=n,this.children=e,Object.values(e).forEach(i=>i.parent=this)}hasChildren(){return this.numberOfChildren>0}get numberOfChildren(){return Object.keys(this.children).length}toString(){return r0(this)}},Xl=class{path;parameters;_parameterMap;constructor(n,e){this.path=n,this.parameters=e}get parameterMap(){return this._parameterMap??=Bd(this.parameters),this._parameterMap}toString(){return kN(this)}};function iQ(t,n){return Ld(t,n)&&t.every((e,i)=>ms(e.parameters,n[i].parameters))}function Ld(t,n){return t.length!==n.length?!1:t.every((e,i)=>e.path===n[i].path)}function nQ(t,n){let e=[];return Object.entries(t.children).forEach(([i,r])=>{i===dt&&(e=e.concat(n(r,i)))}),Object.entries(t.children).forEach(([i,r])=>{i!==dt&&(e=e.concat(n(r,i)))}),e}var ic=(()=>{class t{static \u0275fac=function(i){return new(i||t)};static \u0275prov=O({token:t,factory:()=>new Jl,providedIn:"root"})}return t})(),Jl=class{parse(n){let e=new V1(n);return new hs(e.parseRootSegment(),e.parseQueryParams(),e.parseFragment())}serialize(n){let e=`/${wf(n.root,!0)}`,i=sQ(n.queryParams),r=typeof n.fragment=="string"?`#${oQ(n.fragment)}`:"";return`${e}${i}${r}`}},rQ=new Jl;function r0(t){return t.segments.map(n=>kN(n)).join("/")}function wf(t,n){if(!t.hasChildren())return r0(t);if(n){let e=t.children[dt]?wf(t.children[dt],!1):"",i=[];return Object.entries(t.children).forEach(([r,o])=>{r!==dt&&i.push(`${r}:${wf(o,!1)}`)}),i.length>0?`${e}(${i.join("//")})`:e}else{let e=nQ(t,(i,r)=>r===dt?[wf(t.children[dt],!1)]:[`${r}:${wf(i,!1)}`]);return Object.keys(t.children).length===1&&t.children[dt]!=null?`${r0(t)}/${e[0]}`:`${r0(t)}/(${e.join("//")})`}}function MN(t){return encodeURIComponent(t).replace(/%40/g,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",")}function t0(t){return MN(t).replace(/%3B/gi,";")}function oQ(t){return encodeURI(t)}function L1(t){return MN(t).replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/%26/gi,"&")}function o0(t){return decodeURIComponent(t)}function hN(t){return o0(t.replace(/\+/g,"%20"))}function kN(t){return`${L1(t.path)}${aQ(t.parameters)}`}function aQ(t){return Object.entries(t).map(([n,e])=>`;${L1(n)}=${L1(e)}`).join("")}function sQ(t){let n=Object.entries(t).map(([e,i])=>Array.isArray(i)?i.map(r=>`${t0(e)}=${t0(r)}`).join("&"):`${t0(e)}=${t0(i)}`).filter(e=>e);return n.length?`?${n.join("&")}`:""}var lQ=/^[^\/()?;#]+/;function A1(t){let n=t.match(lQ);return n?n[0]:""}var cQ=/^[^\/()?;=#]+/;function dQ(t){let n=t.match(cQ);return n?n[0]:""}var uQ=/^[^=?&#]+/;function mQ(t){let n=t.match(uQ);return n?n[0]:""}var hQ=/^[^&#]+/;function pQ(t){let n=t.match(hQ);return n?n[0]:""}var V1=class{url;remaining;constructor(n){this.url=n,this.remaining=n}parseRootSegment(){return this.consumeOptional("/"),this.remaining===""||this.peekStartsWith("?")||this.peekStartsWith("#")?new qt([],{}):new qt([],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(){if(this.remaining==="")return{};this.consumeOptional("/");let n=[];for(this.peekStartsWith("(")||n.push(this.parseSegment());this.peekStartsWith("/")&&!this.peekStartsWith("//")&&!this.peekStartsWith("/(");)this.capture("/"),n.push(this.parseSegment());let e={};this.peekStartsWith("/(")&&(this.capture("/"),e=this.parseParens(!0));let i={};return this.peekStartsWith("(")&&(i=this.parseParens(!1)),(n.length>0||Object.keys(e).length>0)&&(i[dt]=new qt(n,e)),i}parseSegment(){let n=A1(this.remaining);if(n===""&&this.peekStartsWith(";"))throw new ue(4009,!1);return this.capture(n),new Xl(o0(n),this.parseMatrixParams())}parseMatrixParams(){let n={};for(;this.consumeOptional(";");)this.parseParam(n);return n}parseParam(n){let e=dQ(this.remaining);if(!e)return;this.capture(e);let i="";if(this.consumeOptional("=")){let r=A1(this.remaining);r&&(i=r,this.capture(i))}n[o0(e)]=o0(i)}parseQueryParam(n){let e=mQ(this.remaining);if(!e)return;this.capture(e);let i="";if(this.consumeOptional("=")){let a=pQ(this.remaining);a&&(i=a,this.capture(i))}let r=hN(e),o=hN(i);if(n.hasOwnProperty(r)){let a=n[r];Array.isArray(a)||(a=[a],n[r]=a),a.push(o)}else n[r]=o}parseParens(n){let e={};for(this.capture("(");!this.consumeOptional(")")&&this.remaining.length>0;){let i=A1(this.remaining),r=this.remaining[i.length];if(r!=="/"&&r!==")"&&r!==";")throw new ue(4010,!1);let o;i.indexOf(":")>-1?(o=i.slice(0,i.indexOf(":")),this.capture(o),this.capture(":")):n&&(o=dt);let a=this.parseChildren();e[o??dt]=Object.keys(a).length===1&&a[dt]?a[dt]:new qt([],a),this.consumeOptional("//")}return e}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 ue(4011,!1)}};function SN(t){return t.segments.length>0?new qt([],{[dt]:t}):t}function TN(t){let n={};for(let[i,r]of Object.entries(t.children)){let o=TN(r);if(i===dt&&o.segments.length===0&&o.hasChildren())for(let[a,s]of Object.entries(o.children))n[a]=s;else(o.segments.length>0||o.hasChildren())&&(n[i]=o)}let e=new qt(t.segments,n);return fQ(e)}function fQ(t){if(t.numberOfChildren===1&&t.children[dt]){let n=t.children[dt];return new qt(t.segments.concat(n.segments),n.children)}return t}function ec(t){return t instanceof hs}function IN(t,n,e=null,i=null){let r=AN(t);return ON(r,n,e,i)}function AN(t){let n;function e(o){let a={};for(let l of o.children){let c=e(l);a[l.outlet]=c}let s=new qt(o.url,a);return o===t&&(n=s),s}let i=e(t.root),r=SN(i);return n??r}function ON(t,n,e,i){let r=t;for(;r.parent;)r=r.parent;if(n.length===0)return O1(r,r,r,e,i);let o=gQ(n);if(o.toRoot())return O1(r,r,new qt([],{}),e,i);let a=_Q(o,r,t),s=a.processChildren?Ef(a.segmentGroup,a.index,o.commands):PN(a.segmentGroup,a.index,o.commands);return O1(r,a.segmentGroup,s,e,i)}function a0(t){return typeof t=="object"&&t!=null&&!t.outlets&&!t.segmentPath}function kf(t){return typeof t=="object"&&t!=null&&t.outlets}function O1(t,n,e,i,r){let o={};i&&Object.entries(i).forEach(([l,c])=>{o[l]=Array.isArray(c)?c.map(d=>`${d}`):`${c}`});let a;t===n?a=e:a=RN(t,n,e);let s=SN(TN(a));return new hs(s,o,r)}function RN(t,n,e){let i={};return Object.entries(t.children).forEach(([r,o])=>{o===n?i[r]=e:i[r]=RN(o,n,e)}),new qt(t.segments,i)}var s0=class{isAbsolute;numberOfDoubleDots;commands;constructor(n,e,i){if(this.isAbsolute=n,this.numberOfDoubleDots=e,this.commands=i,n&&i.length>0&&a0(i[0]))throw new ue(4003,!1);let r=i.find(kf);if(r&&r!==xN(i))throw new ue(4004,!1)}toRoot(){return this.isAbsolute&&this.commands.length===1&&this.commands[0]=="/"}};function gQ(t){if(typeof t[0]=="string"&&t.length===1&&t[0]==="/")return new s0(!0,0,t);let n=0,e=!1,i=t.reduce((r,o,a)=>{if(typeof o=="object"&&o!=null){if(o.outlets){let s={};return Object.entries(o.outlets).forEach(([l,c])=>{s[l]=typeof c=="string"?c.split("/"):c}),[...r,{outlets:s}]}if(o.segmentPath)return[...r,o.segmentPath]}return typeof o!="string"?[...r,o]:a===0?(o.split("/").forEach((s,l)=>{l==0&&s==="."||(l==0&&s===""?e=!0:s===".."?n++:s!=""&&r.push(s))}),r):[...r,o]},[]);return new s0(e,n,i)}var Rm=class{segmentGroup;processChildren;index;constructor(n,e,i){this.segmentGroup=n,this.processChildren=e,this.index=i}};function _Q(t,n,e){if(t.isAbsolute)return new Rm(n,!0,0);if(!e)return new Rm(n,!1,NaN);if(e.parent===null)return new Rm(e,!0,0);let i=a0(t.commands[0])?0:1,r=e.segments.length-1+i;return bQ(e,r,t.numberOfDoubleDots)}function bQ(t,n,e){let i=t,r=n,o=e;for(;o>r;){if(o-=r,i=i.parent,!i)throw new ue(4005,!1);r=i.segments.length}return new Rm(i,!1,r-o)}function vQ(t){return kf(t[0])?t[0].outlets:{[dt]:t}}function PN(t,n,e){if(t??=new qt([],{}),t.segments.length===0&&t.hasChildren())return Ef(t,n,e);let i=yQ(t,n,e),r=e.slice(i.commandIndex);if(i.match&&i.pathIndexo!==dt)&&t.children[dt]&&t.numberOfChildren===1&&t.children[dt].segments.length===0){let o=Ef(t.children[dt],n,e);return new qt(t.segments,o.children)}return Object.entries(i).forEach(([o,a])=>{typeof a=="string"&&(a=[a]),a!==null&&(r[o]=PN(t.children[o],n,a))}),Object.entries(t.children).forEach(([o,a])=>{i[o]===void 0&&(r[o]=a)}),new qt(t.segments,r)}}function yQ(t,n,e){let i=0,r=n,o={match:!1,pathIndex:0,commandIndex:0};for(;r=e.length)return o;let a=t.segments[r],s=e[i];if(kf(s))break;let l=`${s}`,c=i0&&l===void 0)break;if(l&&c&&typeof c=="object"&&c.outlets===void 0){if(!fN(l,c,a))return o;i+=2}else{if(!fN(l,{},a))return o;i++}r++}return{match:!0,pathIndex:r,commandIndex:i}}function B1(t,n,e){let i=t.segments.slice(0,n),r=0;for(;r{typeof i=="string"&&(i=[i]),i!==null&&(n[e]=B1(new qt([],{}),0,i))}),n}function pN(t){let n={};return Object.entries(t).forEach(([e,i])=>n[e]=`${i}`),n}function fN(t,n,e){return t==e.path&&ms(n,e.parameters)}var Pm="imperative",yn=(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})(yn||{}),go=class{id;url;constructor(n,e){this.id=n,this.url=e}},ps=class extends go{type=yn.NavigationStart;navigationTrigger;restoredState;constructor(n,e,i="imperative",r=null){super(n,e),this.navigationTrigger=i,this.restoredState=r}toString(){return`NavigationStart(id: ${this.id}, url: '${this.url}')`}},vi=class extends go{urlAfterRedirects;type=yn.NavigationEnd;constructor(n,e,i){super(n,e),this.urlAfterRedirects=i}toString(){return`NavigationEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}')`}},Or=(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})(Or||{}),Nm=(function(t){return t[t.IgnoredSameUrlNavigation=0]="IgnoredSameUrlNavigation",t[t.IgnoredByUrlHandlingStrategy=1]="IgnoredByUrlHandlingStrategy",t})(Nm||{}),qo=class extends go{reason;code;type=yn.NavigationCancel;constructor(n,e,i,r){super(n,e),this.reason=i,this.code=r}toString(){return`NavigationCancel(id: ${this.id}, url: '${this.url}')`}},fs=class extends go{reason;code;type=yn.NavigationSkipped;constructor(n,e,i,r){super(n,e),this.reason=i,this.code=r}},tc=class extends go{error;target;type=yn.NavigationError;constructor(n,e,i,r){super(n,e),this.error=i,this.target=r}toString(){return`NavigationError(id: ${this.id}, url: '${this.url}', error: ${this.error})`}},Sf=class extends go{urlAfterRedirects;state;type=yn.RoutesRecognized;constructor(n,e,i,r){super(n,e),this.urlAfterRedirects=i,this.state=r}toString(){return`RoutesRecognized(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}},l0=class extends go{urlAfterRedirects;state;type=yn.GuardsCheckStart;constructor(n,e,i,r){super(n,e),this.urlAfterRedirects=i,this.state=r}toString(){return`GuardsCheckStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}},c0=class extends go{urlAfterRedirects;state;shouldActivate;type=yn.GuardsCheckEnd;constructor(n,e,i,r,o){super(n,e),this.urlAfterRedirects=i,this.state=r,this.shouldActivate=o}toString(){return`GuardsCheckEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state}, shouldActivate: ${this.shouldActivate})`}},d0=class extends go{urlAfterRedirects;state;type=yn.ResolveStart;constructor(n,e,i,r){super(n,e),this.urlAfterRedirects=i,this.state=r}toString(){return`ResolveStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}},u0=class extends go{urlAfterRedirects;state;type=yn.ResolveEnd;constructor(n,e,i,r){super(n,e),this.urlAfterRedirects=i,this.state=r}toString(){return`ResolveEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}},m0=class{route;type=yn.RouteConfigLoadStart;constructor(n){this.route=n}toString(){return`RouteConfigLoadStart(path: ${this.route.path})`}},h0=class{route;type=yn.RouteConfigLoadEnd;constructor(n){this.route=n}toString(){return`RouteConfigLoadEnd(path: ${this.route.path})`}},p0=class{snapshot;type=yn.ChildActivationStart;constructor(n){this.snapshot=n}toString(){return`ChildActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}},f0=class{snapshot;type=yn.ChildActivationEnd;constructor(n){this.snapshot=n}toString(){return`ChildActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}},g0=class{snapshot;type=yn.ActivationStart;constructor(n){this.snapshot=n}toString(){return`ActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}},_0=class{snapshot;type=yn.ActivationEnd;constructor(n){this.snapshot=n}toString(){return`ActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}},Lm=class{routerEvent;position;anchor;type=yn.Scroll;constructor(n,e,i){this.routerEvent=n,this.position=e,this.anchor=i}toString(){let n=this.position?`${this.position[0]}, ${this.position[1]}`:null;return`Scroll(anchor: '${this.anchor}', position: '${n}')`}},Tf=class{},Vm=class{url;navigationBehaviorOptions;constructor(n,e){this.url=n,this.navigationBehaviorOptions=e}};function CQ(t){return!(t instanceof Tf)&&!(t instanceof Vm)}function wQ(t,n){return t.providers&&!t._injector&&(t._injector=vm(t.providers,n,`Route: ${t.path}`)),t._injector??n}function Ta(t){return t.outlet||dt}function DQ(t,n){let e=t.filter(i=>Ta(i)===n);return e.push(...t.filter(i=>Ta(i)!==n)),e}function Hm(t){if(!t)return null;if(t.routeConfig?._injector)return t.routeConfig._injector;for(let n=t.parent;n;n=n.parent){let e=n.routeConfig;if(e?._loadedInjector)return e._loadedInjector;if(e?._injector)return e._injector}return null}var b0=class{rootInjector;outlet=null;route=null;children;attachRef=null;get injector(){return Hm(this.route?.snapshot)??this.rootInjector}constructor(n){this.rootInjector=n,this.children=new jd(this.rootInjector)}},jd=(()=>{class t{rootInjector;contexts=new Map;constructor(e){this.rootInjector=e}onChildOutletCreated(e,i){let r=this.getOrCreateContext(e);r.outlet=i,this.contexts.set(e,r)}onChildOutletDestroyed(e){let i=this.getContext(e);i&&(i.outlet=null,i.attachRef=null)}onOutletDeactivated(){let e=this.contexts;return this.contexts=new Map,e}onOutletReAttached(e){this.contexts=e}getOrCreateContext(e){let i=this.getContext(e);return i||(i=new b0(this.rootInjector),this.contexts.set(e,i)),i}getContext(e){return this.contexts.get(e)||null}static \u0275fac=function(i){return new(i||t)(pe(Wt))};static \u0275prov=O({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),v0=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=j1(n,this._root);return e?e.children.map(i=>i.value):[]}firstChild(n){let e=j1(n,this._root);return e&&e.children.length>0?e.children[0].value:null}siblings(n){let e=H1(n,this._root);return e.length<2?[]:e[e.length-2].children.map(r=>r.value).filter(r=>r!==n)}pathFromRoot(n){return H1(n,this._root).map(e=>e.value)}};function j1(t,n){if(t===n.value)return n;for(let e of n.children){let i=j1(t,e);if(i)return i}return null}function H1(t,n){if(t===n.value)return[n];for(let e of n.children){let i=H1(t,e);if(i.length)return i.unshift(n),i}return[]}var fo=class{value;children;constructor(n,e){this.value=n,this.children=e}toString(){return`TreeNode(${this.value})`}};function Om(t){let n={};return t&&t.children.forEach(e=>n[e.value.outlet]=e),n}var If=class extends v0{snapshot;constructor(n,e){super(n),this.snapshot=e,Q1(this,n)}toString(){return this.snapshot.toString()}};function FN(t){let n=EQ(t),e=new tt([new Xl("",{})]),i=new tt({}),r=new tt({}),o=new tt({}),a=new tt(""),s=new wi(e,i,o,a,r,dt,t,n.root);return s.snapshot=n.root,new If(new fo(s,[]),n)}function EQ(t){let n={},e={},i={},o=new Vd([],n,i,"",e,dt,t,null,{});return new Af("",new fo(o,[]))}var wi=class{urlSubject;paramsSubject;queryParamsSubject;fragmentSubject;dataSubject;outlet;component;snapshot;_futureSnapshot;_routerState;_paramMap;_queryParamMap;title;url;params;queryParams;fragment;data;constructor(n,e,i,r,o,a,s,l){this.urlSubject=n,this.paramsSubject=e,this.queryParamsSubject=i,this.fragmentSubject=r,this.dataSubject=o,this.outlet=a,this.component=s,this._futureSnapshot=l,this.title=this.dataSubject?.pipe(se(c=>c[Ff]))??Q(void 0),this.url=n,this.params=e,this.queryParams=i,this.fragment=r,this.data=o}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(se(n=>Bd(n))),this._paramMap}get queryParamMap(){return this._queryParamMap??=this.queryParams.pipe(se(n=>Bd(n))),this._queryParamMap}toString(){return this.snapshot?this.snapshot.toString():`Future(${this._futureSnapshot})`}};function y0(t,n,e="emptyOnly"){let i,{routeConfig:r}=t;return n!==null&&(e==="always"||r?.path===""||!n.component&&!n.routeConfig?.loadComponent)?i={params:M(M({},n.params),t.params),data:M(M({},n.data),t.data),resolve:M(M(M(M({},t.data),n.data),r?.data),t._resolvedData)}:i={params:M({},t.params),data:M({},t.data),resolve:M(M({},t.data),t._resolvedData??{})},r&&LN(r)&&(i.resolve[Ff]=r.title),i}var Vd=class{url;params;queryParams;fragment;data;outlet;component;routeConfig;_resolve;_resolvedData;_routerState;_paramMap;_queryParamMap;get title(){return this.data?.[Ff]}constructor(n,e,i,r,o,a,s,l,c){this.url=n,this.params=e,this.queryParams=i,this.fragment=r,this.data=o,this.outlet=a,this.component=s,this.routeConfig=l,this._resolve=c}get root(){return this._routerState.root}get parent(){return this._routerState.parent(this)}get firstChild(){return this._routerState.firstChild(this)}get children(){return this._routerState.children(this)}get pathFromRoot(){return this._routerState.pathFromRoot(this)}get paramMap(){return this._paramMap??=Bd(this.params),this._paramMap}get queryParamMap(){return this._queryParamMap??=Bd(this.queryParams),this._queryParamMap}toString(){let n=this.url.map(i=>i.toString()).join("/"),e=this.routeConfig?this.routeConfig.path:"";return`Route(url:'${n}', path:'${e}')`}},Af=class extends v0{url;constructor(n,e){super(e),this.url=n,Q1(this,e)}toString(){return NN(this._root)}};function Q1(t,n){n.value._routerState=t,n.children.forEach(e=>Q1(t,e))}function NN(t){let n=t.children.length>0?` { ${t.children.map(NN).join(", ")} } `:"";return`${t.value}${n}`}function R1(t){if(t.snapshot){let n=t.snapshot,e=t._futureSnapshot;t.snapshot=e,ms(n.queryParams,e.queryParams)||t.queryParamsSubject.next(e.queryParams),n.fragment!==e.fragment&&t.fragmentSubject.next(e.fragment),ms(n.params,e.params)||t.paramsSubject.next(e.params),XY(n.url,e.url)||t.urlSubject.next(e.url),ms(n.data,e.data)||t.dataSubject.next(e.data)}else t.snapshot=t._futureSnapshot,t.dataSubject.next(t._futureSnapshot.data)}function z1(t,n){let e=ms(t.params,n.params)&&iQ(t.url,n.url),i=!t.parent!=!n.parent;return e&&!i&&(!t.parent||z1(t.parent,n.parent))}function LN(t){return typeof t.title=="string"||t.title===null}var VN=new T(""),ol=(()=>{class t{activated=null;get activatedComponentRef(){return this.activated}_activatedRoute=null;name=dt;activateEvents=new U;deactivateEvents=new U;attachEvents=new U;detachEvents=new U;routerOutletData=ne();parentContexts=u(jd);location=u(nt);changeDetector=u(ye);inputBinder=u(Nf,{optional:!0});supportsBindingToComponentInputs=!0;ngOnChanges(e){if(e.name){let{firstChange:i,previousValue:r}=e.name;if(i)return;this.isTrackedInParentContexts(r)&&(this.deactivate(),this.parentContexts.onChildOutletDestroyed(r)),this.initializeOutletWithName()}}ngOnDestroy(){this.isTrackedInParentContexts(this.name)&&this.parentContexts.onChildOutletDestroyed(this.name),this.inputBinder?.unsubscribeFromRouteData(this)}isTrackedInParentContexts(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 ue(4012,!1);return this.activated.instance}get activatedRoute(){if(!this.activated)throw new ue(4012,!1);return this._activatedRoute}get activatedRouteData(){return this._activatedRoute?this._activatedRoute.snapshot.data:{}}detach(){if(!this.activated)throw new ue(4012,!1);this.location.detach();let e=this.activated;return this.activated=null,this._activatedRoute=null,this.detachEvents.emit(e.instance),e}attach(e,i){this.activated=e,this._activatedRoute=i,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,i){if(this.isActivated)throw new ue(4013,!1);this._activatedRoute=e;let r=this.location,a=e.snapshot.component,s=this.parentContexts.getOrCreateContext(this.name).children,l=new U1(e,s,r.injector,this.routerOutletData);this.activated=r.createComponent(a,{index:r.length,injector:l,environmentInjector:i}),this.changeDetector.markForCheck(),this.inputBinder?.bindActivatedRouteToOutletComponent(this),this.activateEvents.emit(this.activated.instance)}static \u0275fac=function(i){return new(i||t)};static \u0275dir=F({type:t,selectors:[["router-outlet"]],inputs:{name:"name",routerOutletData:[1,"routerOutletData"]},outputs:{activateEvents:"activate",deactivateEvents:"deactivate",attachEvents:"attach",detachEvents:"detach"},exportAs:["outlet"],features:[Ae]})}return t})(),U1=class{route;childContexts;parent;outletData;constructor(n,e,i,r){this.route=n,this.childContexts=e,this.parent=i,this.outletData=r}get(n,e){return n===wi?this.route:n===jd?this.childContexts:n===VN?this.outletData:this.parent.get(n,e)}},Nf=new T(""),K1=(()=>{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:i}=e,r=co([i.queryParams,i.params,i.data]).pipe($e(([o,a,s],l)=>(s=M(M(M({},o),a),s),l===0?Q(s):Promise.resolve(s)))).subscribe(o=>{if(!e.isActivated||!e.activatedComponentRef||e.activatedRoute!==i||i.component===null){this.unsubscribeFromRouteData(e);return}let a=d2(i.component);if(!a){this.unsubscribeFromRouteData(e);return}for(let{templateName:s}of a.inputs)e.activatedComponentRef.setInput(s,o[s])});this.outletDataSubscriptions.set(e,r)}static \u0275fac=function(i){return new(i||t)};static \u0275prov=O({token:t,factory:t.\u0275fac})}return t})(),Z1=(()=>{class t{static \u0275fac=function(i){return new(i||t)};static \u0275cmp=E({type:t,selectors:[["ng-component"]],exportAs:["emptyRouterOutlet"],decls:1,vars:0,template:function(i,r){i&1&&k(0,"router-outlet")},dependencies:[ol],encapsulation:2})}return t})();function X1(t){let n=t.children&&t.children.map(X1),e=n?De(M({},t),{children:n}):M({},t);return!e.component&&!e.loadComponent&&(n||e.loadChildren)&&e.outlet&&e.outlet!==dt&&(e.component=Z1),e}function MQ(t,n,e){let i=Of(t,n._root,e?e._root:void 0);return new If(i,n)}function Of(t,n,e){if(e&&t.shouldReuseRoute(n.value,e.value.snapshot)){let i=e.value;i._futureSnapshot=n.value;let r=kQ(t,n,e);return new fo(i,r)}else{if(t.shouldAttach(n.value)){let o=t.retrieve(n.value);if(o!==null){let a=o.route;return a.value._futureSnapshot=n.value,a.children=n.children.map(s=>Of(t,s)),a}}let i=SQ(n.value),r=n.children.map(o=>Of(t,o));return new fo(i,r)}}function kQ(t,n,e){return n.children.map(i=>{for(let r of e.children)if(t.shouldReuseRoute(i.value,r.value.snapshot))return Of(t,i,r);return Of(t,i)})}function SQ(t){return new wi(new tt(t.url),new tt(t.params),new tt(t.queryParams),new tt(t.fragment),new tt(t.data),t.outlet,t.component,t)}var Bm=class{redirectTo;navigationBehaviorOptions;constructor(n,e){this.redirectTo=n,this.navigationBehaviorOptions=e}},BN="ngNavigationCancelingError";function x0(t,n){let{redirectTo:e,navigationBehaviorOptions:i}=ec(n)?{redirectTo:n,navigationBehaviorOptions:void 0}:n,r=jN(!1,Or.Redirect);return r.url=e,r.navigationBehaviorOptions=i,r}function jN(t,n){let e=new Error(`NavigationCancelingError: ${t||""}`);return e[BN]=!0,e.cancellationCode=n,e}function TQ(t){return HN(t)&&ec(t.url)}function HN(t){return!!t&&t[BN]}var IQ=(t,n,e,i)=>se(r=>(new $1(n,r.targetRouterState,r.currentRouterState,e,i).activate(t),r)),$1=class{routeReuseStrategy;futureState;currState;forwardEvent;inputBindingEnabled;constructor(n,e,i,r,o){this.routeReuseStrategy=n,this.futureState=e,this.currState=i,this.forwardEvent=r,this.inputBindingEnabled=o}activate(n){let e=this.futureState._root,i=this.currState?this.currState._root:null;this.deactivateChildRoutes(e,i,n),R1(this.futureState.root),this.activateChildRoutes(e,i,n)}deactivateChildRoutes(n,e,i){let r=Om(e);n.children.forEach(o=>{let a=o.value.outlet;this.deactivateRoutes(o,r[a],i),delete r[a]}),Object.values(r).forEach(o=>{this.deactivateRouteAndItsChildren(o,i)})}deactivateRoutes(n,e,i){let r=n.value,o=e?e.value:null;if(r===o)if(r.component){let a=i.getContext(r.outlet);a&&this.deactivateChildRoutes(n,e,a.children)}else this.deactivateChildRoutes(n,e,i);else o&&this.deactivateRouteAndItsChildren(e,i)}deactivateRouteAndItsChildren(n,e){n.value.component&&this.routeReuseStrategy.shouldDetach(n.value.snapshot)?this.detachAndStoreRouteSubtree(n,e):this.deactivateRouteAndOutlet(n,e)}detachAndStoreRouteSubtree(n,e){let i=e.getContext(n.value.outlet),r=i&&n.value.component?i.children:e,o=Om(n);for(let a of Object.values(o))this.deactivateRouteAndItsChildren(a,r);if(i&&i.outlet){let a=i.outlet.detach(),s=i.children.onOutletDeactivated();this.routeReuseStrategy.store(n.value.snapshot,{componentRef:a,route:n,contexts:s})}}deactivateRouteAndOutlet(n,e){let i=e.getContext(n.value.outlet),r=i&&n.value.component?i.children:e,o=Om(n);for(let a of Object.values(o))this.deactivateRouteAndItsChildren(a,r);i&&(i.outlet&&(i.outlet.deactivate(),i.children.onOutletDeactivated()),i.attachRef=null,i.route=null)}activateChildRoutes(n,e,i){let r=Om(e);n.children.forEach(o=>{this.activateRoutes(o,r[o.value.outlet],i),this.forwardEvent(new _0(o.value.snapshot))}),n.children.length&&this.forwardEvent(new f0(n.value.snapshot))}activateRoutes(n,e,i){let r=n.value,o=e?e.value:null;if(R1(r),r===o)if(r.component){let a=i.getOrCreateContext(r.outlet);this.activateChildRoutes(n,e,a.children)}else this.activateChildRoutes(n,e,i);else if(r.component){let a=i.getOrCreateContext(r.outlet);if(this.routeReuseStrategy.shouldAttach(r.snapshot)){let s=this.routeReuseStrategy.retrieve(r.snapshot);this.routeReuseStrategy.store(r.snapshot,null),a.children.onOutletReAttached(s.contexts),a.attachRef=s.componentRef,a.route=s.route.value,a.outlet&&a.outlet.attach(s.componentRef,s.route.value),R1(s.route.value),this.activateChildRoutes(n,null,a.children)}else a.attachRef=null,a.route=r,a.outlet&&a.outlet.activateWith(r,a.injector),this.activateChildRoutes(n,null,a.children)}else this.activateChildRoutes(n,null,i)}},C0=class{path;route;constructor(n){this.path=n,this.route=this.path[this.path.length-1]}},Fm=class{component;route;constructor(n,e){this.component=n,this.route=e}};function AQ(t,n,e){let i=t._root,r=n?n._root:null;return Df(i,r,e,[i.value])}function OQ(t){let n=t.routeConfig?t.routeConfig.canActivateChild:null;return!n||n.length===0?null:{node:t,guards:n}}function zm(t,n){let e=Symbol(),i=n.get(t,e);return i===e?typeof t=="function"&&!uD(t)?t:n.get(t):i}function Df(t,n,e,i,r={canDeactivateChecks:[],canActivateChecks:[]}){let o=Om(n);return t.children.forEach(a=>{RQ(a,o[a.value.outlet],e,i.concat([a.value]),r),delete o[a.value.outlet]}),Object.entries(o).forEach(([a,s])=>Mf(s,e.getContext(a),r)),r}function RQ(t,n,e,i,r={canDeactivateChecks:[],canActivateChecks:[]}){let o=t.value,a=n?n.value:null,s=e?e.getContext(t.value.outlet):null;if(a&&o.routeConfig===a.routeConfig){let l=PQ(a,o,o.routeConfig.runGuardsAndResolvers);l?r.canActivateChecks.push(new C0(i)):(o.data=a.data,o._resolvedData=a._resolvedData),o.component?Df(t,n,s?s.children:null,i,r):Df(t,n,e,i,r),l&&s&&s.outlet&&s.outlet.isActivated&&r.canDeactivateChecks.push(new Fm(s.outlet.component,a))}else a&&Mf(n,s,r),r.canActivateChecks.push(new C0(i)),o.component?Df(t,null,s?s.children:null,i,r):Df(t,null,e,i,r);return r}function PQ(t,n,e){if(typeof e=="function")return e(t,n);switch(e){case"pathParamsChange":return!Ld(t.url,n.url);case"pathParamsOrQueryParamsChange":return!Ld(t.url,n.url)||!ms(t.queryParams,n.queryParams);case"always":return!0;case"paramsOrQueryParamsChange":return!z1(t,n)||!ms(t.queryParams,n.queryParams);case"paramsChange":default:return!z1(t,n)}}function Mf(t,n,e){let i=Om(t),r=t.value;Object.entries(i).forEach(([o,a])=>{r.component?n?Mf(a,n.children.getContext(o),e):Mf(a,null,e):Mf(a,n,e)}),r.component?n&&n.outlet&&n.outlet.isActivated?e.canDeactivateChecks.push(new Fm(n.outlet.component,r)):e.canDeactivateChecks.push(new Fm(null,r)):e.canDeactivateChecks.push(new Fm(null,r))}function Lf(t){return typeof t=="function"}function FQ(t){return typeof t=="boolean"}function NQ(t){return t&&Lf(t.canLoad)}function LQ(t){return t&&Lf(t.canActivate)}function VQ(t){return t&&Lf(t.canActivateChild)}function BQ(t){return t&&Lf(t.canDeactivate)}function jQ(t){return t&&Lf(t.canMatch)}function zN(t){return t instanceof Hs||t?.name==="EmptyError"}var i0=Symbol("INITIAL_VALUE");function jm(){return $e(t=>co(t.map(n=>n.pipe(lt(1),He(i0)))).pipe(se(n=>{for(let e of n)if(e!==!0){if(e===i0)return i0;if(e===!1||HQ(e))return e}return!0}),ce(n=>n!==i0),lt(1)))}function HQ(t){return ec(t)||t instanceof Bm}function zQ(t,n){return Mt(e=>{let{targetSnapshot:i,currentSnapshot:r,guards:{canActivateChecks:o,canDeactivateChecks:a}}=e;return a.length===0&&o.length===0?Q(De(M({},e),{guardsResult:!0})):UQ(a,i,r,t).pipe(Mt(s=>s&&FQ(s)?$Q(i,o,t,n):Q(s)),se(s=>De(M({},e),{guardsResult:s})))})}function UQ(t,n,e,i){return Ot(t).pipe(Mt(r=>QQ(r.component,r.route,e,n,i)),gn(r=>r!==!0,!0))}function $Q(t,n,e,i){return Ot(n).pipe(Ao(r=>mo(GQ(r.route.parent,i),WQ(r.route,i),YQ(t,r.path,e),qQ(t,r.route,e))),gn(r=>r!==!0,!0))}function WQ(t,n){return t!==null&&n&&n(new g0(t)),Q(!0)}function GQ(t,n){return t!==null&&n&&n(new p0(t)),Q(!0)}function qQ(t,n,e){let i=n.routeConfig?n.routeConfig.canActivate:null;if(!i||i.length===0)return Q(!0);let r=i.map(o=>kn(()=>{let a=Hm(n)??e,s=zm(o,a),l=LQ(s)?s.canActivate(n,t):In(a,()=>s(n,t));return rl(l).pipe(gn())}));return Q(r).pipe(jm())}function YQ(t,n,e){let i=n[n.length-1],o=n.slice(0,n.length-1).reverse().map(a=>OQ(a)).filter(a=>a!==null).map(a=>kn(()=>{let s=a.guards.map(l=>{let c=Hm(a.node)??e,d=zm(l,c),m=VQ(d)?d.canActivateChild(i,t):In(c,()=>d(i,t));return rl(m).pipe(gn())});return Q(s).pipe(jm())}));return Q(o).pipe(jm())}function QQ(t,n,e,i,r){let o=n&&n.routeConfig?n.routeConfig.canDeactivate:null;if(!o||o.length===0)return Q(!0);let a=o.map(s=>{let l=Hm(n)??r,c=zm(s,l),d=BQ(c)?c.canDeactivate(t,n,e,i):In(l,()=>c(t,n,e,i));return rl(d).pipe(gn())});return Q(a).pipe(jm())}function KQ(t,n,e,i){let r=n.canLoad;if(r===void 0||r.length===0)return Q(!0);let o=r.map(a=>{let s=zm(a,t),l=NQ(s)?s.canLoad(n,e):In(t,()=>s(n,e));return rl(l)});return Q(o).pipe(jm(),UN(i))}function UN(t){return Bw(Be(n=>{if(typeof n!="boolean")throw x0(t,n)}),se(n=>n===!0))}function ZQ(t,n,e,i){let r=n.canMatch;if(!r||r.length===0)return Q(!0);let o=r.map(a=>{let s=zm(a,t),l=jQ(s)?s.canMatch(n,e):In(t,()=>s(n,e));return rl(l)});return Q(o).pipe(jm(),UN(i))}var Rf=class{segmentGroup;constructor(n){this.segmentGroup=n||null}},Pf=class extends Error{urlTree;constructor(n){super(),this.urlTree=n}};function Am(t){return Wn(new Rf(t))}function XQ(t){return Wn(new ue(4e3,!1))}function JQ(t){return Wn(jN(!1,Or.GuardRejected))}var W1=class{urlSerializer;urlTree;constructor(n,e){this.urlSerializer=n,this.urlTree=e}lineralizeSegments(n,e){let i=[],r=e.root;for(;;){if(i=i.concat(r.segments),r.numberOfChildren===0)return Q(i);if(r.numberOfChildren>1||!r.children[dt])return XQ(`${n.redirectTo}`);r=r.children[dt]}}applyRedirectCommands(n,e,i,r,o){return eK(e,r,o).pipe(se(a=>{if(a instanceof hs)throw new Pf(a);let s=this.applyRedirectCreateUrlTree(a,this.urlSerializer.parse(a),n,i);if(a[0]==="/")throw new Pf(s);return s}))}applyRedirectCreateUrlTree(n,e,i,r){let o=this.createSegmentGroup(n,e.root,i,r);return new hs(o,this.createQueryParams(e.queryParams,this.urlTree.queryParams),e.fragment)}createQueryParams(n,e){let i={};return Object.entries(n).forEach(([r,o])=>{if(typeof o=="string"&&o[0]===":"){let s=o.substring(1);i[r]=e[s]}else i[r]=o}),i}createSegmentGroup(n,e,i,r){let o=this.createSegments(n,e.segments,i,r),a={};return Object.entries(e.children).forEach(([s,l])=>{a[s]=this.createSegmentGroup(n,l,i,r)}),new qt(o,a)}createSegments(n,e,i,r){return e.map(o=>o.path[0]===":"?this.findPosParam(n,o,r):this.findOrReturn(o,i))}findPosParam(n,e,i){let r=i[e.path.substring(1)];if(!r)throw new ue(4001,!1);return r}findOrReturn(n,e){let i=0;for(let r of e){if(r.path===n.path)return e.splice(i),r;i++}return n}};function eK(t,n,e){if(typeof t=="string")return Q(t);let i=t,{queryParams:r,fragment:o,routeConfig:a,url:s,outlet:l,params:c,data:d,title:m}=n;return rl(In(e,()=>i({params:c,data:d,queryParams:r,fragment:o,routeConfig:a,url:s,outlet:l,title:m})))}var G1={matched:!1,consumedSegments:[],remainingSegments:[],parameters:{},positionalParamSegments:{}};function tK(t,n,e,i,r){let o=$N(t,n,e);return o.matched?(i=wQ(n,i),ZQ(i,n,e,r).pipe(se(a=>a===!0?o:M({},G1)))):Q(o)}function $N(t,n,e){if(n.path==="**")return iK(e);if(n.path==="")return n.pathMatch==="full"&&(t.hasChildren()||e.length>0)?M({},G1):{matched:!0,consumedSegments:[],remainingSegments:e,parameters:{},positionalParamSegments:{}};let r=(n.matcher||vN)(e,t,n);if(!r)return M({},G1);let o={};Object.entries(r.posParams??{}).forEach(([s,l])=>{o[s]=l.path});let a=r.consumed.length>0?M(M({},o),r.consumed[r.consumed.length-1].parameters):o;return{matched:!0,consumedSegments:r.consumed,remainingSegments:e.slice(r.consumed.length),parameters:a,positionalParamSegments:r.posParams??{}}}function iK(t){return{matched:!0,parameters:t.length>0?xN(t).parameters:{},consumedSegments:t,remainingSegments:[],positionalParamSegments:{}}}function gN(t,n,e,i){return e.length>0&&oK(t,e,i)?{segmentGroup:new qt(n,rK(i,new qt(e,t.children))),slicedSegments:[]}:e.length===0&&aK(t,e,i)?{segmentGroup:new qt(t.segments,nK(t,e,i,t.children)),slicedSegments:e}:{segmentGroup:new qt(t.segments,t.children),slicedSegments:e}}function nK(t,n,e,i){let r={};for(let o of e)if(D0(t,n,o)&&!i[Ta(o)]){let a=new qt([],{});r[Ta(o)]=a}return M(M({},i),r)}function rK(t,n){let e={};e[dt]=n;for(let i of t)if(i.path===""&&Ta(i)!==dt){let r=new qt([],{});e[Ta(i)]=r}return e}function oK(t,n,e){return e.some(i=>D0(t,n,i)&&Ta(i)!==dt)}function aK(t,n,e){return e.some(i=>D0(t,n,i))}function D0(t,n,e){return(t.hasChildren()||n.length>0)&&e.pathMatch==="full"?!1:e.path===""}function sK(t,n,e){return n.length===0&&!t.children[e]}var q1=class{};function lK(t,n,e,i,r,o,a="emptyOnly"){return new Y1(t,n,e,i,r,a,o).recognize()}var cK=31,Y1=class{injector;configLoader;rootComponentType;config;urlTree;paramsInheritanceStrategy;urlSerializer;applyRedirects;absoluteRedirectCount=0;allowRedirects=!0;constructor(n,e,i,r,o,a,s){this.injector=n,this.configLoader=e,this.rootComponentType=i,this.config=r,this.urlTree=o,this.paramsInheritanceStrategy=a,this.urlSerializer=s,this.applyRedirects=new W1(this.urlSerializer,this.urlTree)}noMatchError(n){return new ue(4002,`'${n.segmentGroup}'`)}recognize(){let n=gN(this.urlTree.root,[],[],this.config).segmentGroup;return this.match(n).pipe(se(({children:e,rootSnapshot:i})=>{let r=new fo(i,e),o=new Af("",r),a=IN(i,[],this.urlTree.queryParams,this.urlTree.fragment);return a.queryParams=this.urlTree.queryParams,o.url=this.urlSerializer.serialize(a),{state:o,tree:a}}))}match(n){let e=new Vd([],Object.freeze({}),Object.freeze(M({},this.urlTree.queryParams)),this.urlTree.fragment,Object.freeze({}),dt,this.rootComponentType,null,{});return this.processSegmentGroup(this.injector,this.config,n,dt,e).pipe(se(i=>({children:i,rootSnapshot:e})),fi(i=>{if(i instanceof Pf)return this.urlTree=i.urlTree,this.match(i.urlTree.root);throw i instanceof Rf?this.noMatchError(i):i}))}processSegmentGroup(n,e,i,r,o){return i.segments.length===0&&i.hasChildren()?this.processChildren(n,e,i,o):this.processSegment(n,e,i,i.segments,r,!0,o).pipe(se(a=>a instanceof fo?[a]:[]))}processChildren(n,e,i,r){let o=[];for(let a of Object.keys(i.children))a==="primary"?o.unshift(a):o.push(a);return Ot(o).pipe(Ao(a=>{let s=i.children[a],l=DQ(e,a);return this.processSegmentGroup(n,l,s,a,r)}),Kw((a,s)=>(a.push(...s),a)),Fl(null),Qw(),Mt(a=>{if(a===null)return Am(i);let s=WN(a);return dK(s),Q(s)}))}processSegment(n,e,i,r,o,a,s){return Ot(e).pipe(Ao(l=>this.processSegmentAgainstRoute(l._injector??n,e,l,i,r,o,a,s).pipe(fi(c=>{if(c instanceof Rf)return Q(null);throw c}))),gn(l=>!!l),fi(l=>{if(zN(l))return sK(i,r,o)?Q(new q1):Am(i);throw l}))}processSegmentAgainstRoute(n,e,i,r,o,a,s,l){return Ta(i)!==a&&(a===dt||!D0(r,o,i))?Am(r):i.redirectTo===void 0?this.matchSegmentAgainstRoute(n,r,i,o,a,l):this.allowRedirects&&s?this.expandSegmentAgainstRouteUsingRedirect(n,r,e,i,o,a,l):Am(r)}expandSegmentAgainstRouteUsingRedirect(n,e,i,r,o,a,s){let{matched:l,parameters:c,consumedSegments:d,positionalParamSegments:m,remainingSegments:f}=$N(e,r,o);if(!l)return Am(e);typeof r.redirectTo=="string"&&r.redirectTo[0]==="/"&&(this.absoluteRedirectCount++,this.absoluteRedirectCount>cK&&(this.allowRedirects=!1));let b=new Vd(o,c,Object.freeze(M({},this.urlTree.queryParams)),this.urlTree.fragment,_N(r),Ta(r),r.component??r._loadedComponent??null,r,bN(r)),v=y0(b,s,this.paramsInheritanceStrategy);return b.params=Object.freeze(v.params),b.data=Object.freeze(v.data),this.applyRedirects.applyRedirectCommands(d,r.redirectTo,m,b,n).pipe($e(x=>this.applyRedirects.lineralizeSegments(r,x)),Mt(x=>this.processSegment(n,i,e,x.concat(f),a,!1,s)))}matchSegmentAgainstRoute(n,e,i,r,o,a){let s=tK(e,i,r,n,this.urlSerializer);return i.path==="**"&&(e.children={}),s.pipe($e(l=>l.matched?(n=i._injector??n,this.getChildConfig(n,i,r).pipe($e(({routes:c})=>{let d=i._loadedInjector??n,{parameters:m,consumedSegments:f,remainingSegments:b}=l,v=new Vd(f,m,Object.freeze(M({},this.urlTree.queryParams)),this.urlTree.fragment,_N(i),Ta(i),i.component??i._loadedComponent??null,i,bN(i)),w=y0(v,a,this.paramsInheritanceStrategy);v.params=Object.freeze(w.params),v.data=Object.freeze(w.data);let{segmentGroup:x,slicedSegments:D}=gN(e,f,b,c);if(D.length===0&&x.hasChildren())return this.processChildren(d,c,x,v).pipe(se(W=>new fo(v,W)));if(c.length===0&&D.length===0)return Q(new fo(v,[]));let P=Ta(i)===o;return this.processSegment(d,c,x,D,P?dt:o,!0,v).pipe(se(W=>new fo(v,W instanceof fo?[W]:[])))}))):Am(e)))}getChildConfig(n,e,i){return e.children?Q({routes:e.children,injector:n}):e.loadChildren?e._loadedRoutes!==void 0?Q({routes:e._loadedRoutes,injector:e._loadedInjector}):KQ(n,e,i,this.urlSerializer).pipe(Mt(r=>r?this.configLoader.loadChildren(n,e).pipe(Be(o=>{e._loadedRoutes=o.routes,e._loadedInjector=o.injector})):JQ(e))):Q({routes:[],injector:n})}};function dK(t){t.sort((n,e)=>n.value.outlet===dt?-1:e.value.outlet===dt?1:n.value.outlet.localeCompare(e.value.outlet))}function uK(t){let n=t.value.routeConfig;return n&&n.path===""}function WN(t){let n=[],e=new Set;for(let i of t){if(!uK(i)){n.push(i);continue}let r=n.find(o=>i.value.routeConfig===o.value.routeConfig);r!==void 0?(r.children.push(...i.children),e.add(r)):n.push(i)}for(let i of e){let r=WN(i.children);n.push(new fo(i.value,r))}return n.filter(i=>!e.has(i))}function _N(t){return t.data||{}}function bN(t){return t.resolve||{}}function mK(t,n,e,i,r,o){return Mt(a=>lK(t,n,e,i,a.extractedUrl,r,o).pipe(se(({state:s,tree:l})=>De(M({},a),{targetSnapshot:s,urlAfterRedirects:l}))))}function hK(t,n){return Mt(e=>{let{targetSnapshot:i,guards:{canActivateChecks:r}}=e;if(!r.length)return Q(e);let o=new Set(r.map(l=>l.route)),a=new Set;for(let l of o)if(!a.has(l))for(let c of GN(l))a.add(c);let s=0;return Ot(a).pipe(Ao(l=>o.has(l)?pK(l,i,t,n):(l.data=y0(l,l.parent,t).resolve,Q(void 0))),Be(()=>s++),qu(1),Mt(l=>s===a.size?Q(e):Fi))})}function GN(t){let n=t.children.map(e=>GN(e)).flat();return[t,...n]}function pK(t,n,e,i){let r=t.routeConfig,o=t._resolve;return r?.title!==void 0&&!LN(r)&&(o[Ff]=r.title),kn(()=>(t.data=y0(t,t.parent,e).resolve,fK(o,t,n,i).pipe(se(a=>(t._resolvedData=a,t.data=M(M({},t.data),a),null)))))}function fK(t,n,e,i){let r=N1(t);if(r.length===0)return Q({});let o={};return Ot(r).pipe(Mt(a=>gK(t[a],n,e,i).pipe(gn(),Be(s=>{if(s instanceof Bm)throw x0(new Jl,s);o[a]=s}))),qu(1),se(()=>o),fi(a=>zN(a)?Fi:Wn(a)))}function gK(t,n,e,i){let r=Hm(n)??i,o=zm(t,r),a=o.resolve?o.resolve(n,e):In(r,()=>o(n,e));return rl(a)}function P1(t){return $e(n=>{let e=t(n);return e?Ot(e).pipe(se(()=>n)):Q(n)})}var J1=(()=>{class t{buildTitle(e){let i,r=e.root;for(;r!==void 0;)i=this.getResolvedTitleForRoute(r)??i,r=r.children.find(o=>o.outlet===dt);return i}getResolvedTitleForRoute(e){return e.data[Ff]}static \u0275fac=function(i){return new(i||t)};static \u0275prov=O({token:t,factory:()=>u(qN),providedIn:"root"})}return t})(),qN=(()=>{class t extends J1{title;constructor(e){super(),this.title=e}updateTitle(e){let i=this.buildTitle(e);i!==void 0&&this.title.setTitle(i)}static \u0275fac=function(i){return new(i||t)(pe(uN))};static \u0275prov=O({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),nc=new T("",{providedIn:"root",factory:()=>({})}),Hd=new T(""),E0=(()=>{class t{componentLoaders=new WeakMap;childrenLoaders=new WeakMap;onLoadStartListener;onLoadEndListener;compiler=u(jM);loadComponent(e,i){if(this.componentLoaders.get(i))return this.componentLoaders.get(i);if(i._loadedComponent)return Q(i._loadedComponent);this.onLoadStartListener&&this.onLoadStartListener(i);let r=rl(In(e,()=>i.loadComponent())).pipe(se(QN),$e(KN),Be(a=>{this.onLoadEndListener&&this.onLoadEndListener(i),i._loadedComponent=a}),Hr(()=>{this.componentLoaders.delete(i)})),o=new Al(r,()=>new z).pipe(ju());return this.componentLoaders.set(i,o),o}loadChildren(e,i){if(this.childrenLoaders.get(i))return this.childrenLoaders.get(i);if(i._loadedRoutes)return Q({routes:i._loadedRoutes,injector:i._loadedInjector});this.onLoadStartListener&&this.onLoadStartListener(i);let o=YN(i,this.compiler,e,this.onLoadEndListener).pipe(Hr(()=>{this.childrenLoaders.delete(i)})),a=new Al(o,()=>new z).pipe(ju());return this.childrenLoaders.set(i,a),a}static \u0275fac=function(i){return new(i||t)};static \u0275prov=O({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();function YN(t,n,e,i){return rl(In(e,()=>t.loadChildren())).pipe(se(QN),$e(KN),Mt(r=>r instanceof wv||Array.isArray(r)?Q(r):Ot(n.compileModuleAsync(r))),se(r=>{i&&i(t);let o,a,s=!1;return Array.isArray(r)?(a=r,s=!0):(o=r.create(e).injector,a=o.get(Hd,[],{optional:!0,self:!0}).flat()),{routes:a.map(X1),injector:o}}))}function _K(t){return t&&typeof t=="object"&&"default"in t}function QN(t){return _K(t)?t.default:t}function KN(t){return Q(t)}var M0=(()=>{class t{static \u0275fac=function(i){return new(i||t)};static \u0275prov=O({token:t,factory:()=>u(bK),providedIn:"root"})}return t})(),bK=(()=>{class t{shouldProcessUrl(e){return!0}extract(e){return e}merge(e,i){return e}static \u0275fac=function(i){return new(i||t)};static \u0275prov=O({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),ek=new T(""),tk=new T("");function ZN(t,n,e){let i=t.get(tk),r=t.get(ge);if(!r.startViewTransition||i.skipNextTransition)return i.skipNextTransition=!1,new Promise(c=>setTimeout(c));let o,a=new Promise(c=>{o=c}),s=r.startViewTransition(()=>(o(),vK(t)));s.ready.catch(c=>{});let{onViewTransitionCreated:l}=i;return l&&In(t,()=>l({transition:s,from:n,to:e})),a}function vK(t){return new Promise(n=>{pt({read:()=>setTimeout(n)},{injector:t})})}var ik=new T(""),Vf=(()=>{class t{currentNavigation=he(null,{equal:()=>!1});currentTransition=null;lastSuccessfulNavigation=null;events=new z;transitionAbortWithErrorSubject=new z;configLoader=u(E0);environmentInjector=u(Wt);destroyRef=u(nn);urlSerializer=u(ic);rootContexts=u(jd);location=u(us);inputBindingEnabled=u(Nf,{optional:!0})!==null;titleStrategy=u(J1);options=u(nc,{optional:!0})||{};paramsInheritanceStrategy=this.options.paramsInheritanceStrategy||"emptyOnly";urlHandlingStrategy=u(M0);createViewTransition=u(ek,{optional:!0});navigationErrorHandler=u(ik,{optional:!0});navigationId=0;get hasRequestedNavigation(){return this.navigationId!==0}transitions;afterPreactivation=()=>Q(void 0);rootComponentType=null;destroyed=!1;constructor(){let e=r=>this.events.next(new m0(r)),i=r=>this.events.next(new h0(r));this.configLoader.onLoadEndListener=i,this.configLoader.onLoadStartListener=e,this.destroyRef.onDestroy(()=>{this.destroyed=!0})}complete(){this.transitions?.complete()}handleNavigationRequest(e){let i=++this.navigationId;Ti(()=>{this.transitions?.next(De(M({},e),{extractedUrl:this.urlHandlingStrategy.extract(e.rawUrl),targetSnapshot:null,targetRouterState:null,guards:{canActivateChecks:[],canDeactivateChecks:[]},guardsResult:null,abortController:new AbortController,id:i}))})}setupNavigations(e){return this.transitions=new tt(null),this.transitions.pipe(ce(i=>i!==null),$e(i=>{let r=!1;return Q(i).pipe($e(o=>{if(this.navigationId>i.id)return this.cancelNavigationTransition(i,"",Or.SupersededByNewNavigation),Fi;this.currentTransition=i,this.currentNavigation.set({id:o.id,initialUrl:o.rawUrl,extractedUrl:o.extractedUrl,targetBrowserUrl:typeof o.extras.browserUrl=="string"?this.urlSerializer.parse(o.extras.browserUrl):o.extras.browserUrl,trigger:o.source,extras:o.extras,previousNavigation:this.lastSuccessfulNavigation?De(M({},this.lastSuccessfulNavigation),{previousNavigation:null}):null,abort:()=>o.abortController.abort()});let a=!e.navigated||this.isUpdatingInternalState()||this.isUpdatedBrowserUrl(),s=o.extras.onSameUrlNavigation??e.onSameUrlNavigation;if(!a&&s!=="reload")return this.events.next(new fs(o.id,this.urlSerializer.serialize(o.rawUrl),"",Nm.IgnoredSameUrlNavigation)),o.resolve(!1),Fi;if(this.urlHandlingStrategy.shouldProcessUrl(o.rawUrl))return Q(o).pipe($e(l=>(this.events.next(new ps(l.id,this.urlSerializer.serialize(l.extractedUrl),l.source,l.restoredState)),l.id!==this.navigationId?Fi:Promise.resolve(l))),mK(this.environmentInjector,this.configLoader,this.rootComponentType,e.config,this.urlSerializer,this.paramsInheritanceStrategy),Be(l=>{i.targetSnapshot=l.targetSnapshot,i.urlAfterRedirects=l.urlAfterRedirects,this.currentNavigation.update(d=>(d.finalUrl=l.urlAfterRedirects,d));let c=new Sf(l.id,this.urlSerializer.serialize(l.extractedUrl),this.urlSerializer.serialize(l.urlAfterRedirects),l.targetSnapshot);this.events.next(c)}));if(a&&this.urlHandlingStrategy.shouldProcessUrl(o.currentRawUrl)){let{id:l,extractedUrl:c,source:d,restoredState:m,extras:f}=o,b=new ps(l,this.urlSerializer.serialize(c),d,m);this.events.next(b);let v=FN(this.rootComponentType).snapshot;return this.currentTransition=i=De(M({},o),{targetSnapshot:v,urlAfterRedirects:c,extras:De(M({},f),{skipLocationChange:!1,replaceUrl:!1})}),this.currentNavigation.update(w=>(w.finalUrl=c,w)),Q(i)}else return this.events.next(new fs(o.id,this.urlSerializer.serialize(o.extractedUrl),"",Nm.IgnoredByUrlHandlingStrategy)),o.resolve(!1),Fi}),Be(o=>{let a=new l0(o.id,this.urlSerializer.serialize(o.extractedUrl),this.urlSerializer.serialize(o.urlAfterRedirects),o.targetSnapshot);this.events.next(a)}),se(o=>(this.currentTransition=i=De(M({},o),{guards:AQ(o.targetSnapshot,o.currentSnapshot,this.rootContexts)}),i)),zQ(this.environmentInjector,o=>this.events.next(o)),Be(o=>{if(i.guardsResult=o.guardsResult,o.guardsResult&&typeof o.guardsResult!="boolean")throw x0(this.urlSerializer,o.guardsResult);let a=new c0(o.id,this.urlSerializer.serialize(o.extractedUrl),this.urlSerializer.serialize(o.urlAfterRedirects),o.targetSnapshot,!!o.guardsResult);this.events.next(a)}),ce(o=>o.guardsResult?!0:(this.cancelNavigationTransition(o,"",Or.GuardRejected),!1)),P1(o=>{if(o.guards.canActivateChecks.length!==0)return Q(o).pipe(Be(a=>{let s=new d0(a.id,this.urlSerializer.serialize(a.extractedUrl),this.urlSerializer.serialize(a.urlAfterRedirects),a.targetSnapshot);this.events.next(s)}),$e(a=>{let s=!1;return Q(a).pipe(hK(this.paramsInheritanceStrategy,this.environmentInjector),Be({next:()=>s=!0,complete:()=>{s||this.cancelNavigationTransition(a,"",Or.NoDataFromResolver)}}))}),Be(a=>{let s=new u0(a.id,this.urlSerializer.serialize(a.extractedUrl),this.urlSerializer.serialize(a.urlAfterRedirects),a.targetSnapshot);this.events.next(s)}))}),P1(o=>{let a=s=>{let l=[];if(s.routeConfig?.loadComponent){let c=Hm(s)??this.environmentInjector;l.push(this.configLoader.loadComponent(c,s.routeConfig).pipe(Be(d=>{s.component=d}),se(()=>{})))}for(let c of s.children)l.push(...a(c));return l};return co(a(o.targetSnapshot.root)).pipe(Fl(null),lt(1))}),P1(()=>this.afterPreactivation()),$e(()=>{let{currentSnapshot:o,targetSnapshot:a}=i,s=this.createViewTransition?.(this.environmentInjector,o.root,a.root);return s?Ot(s).pipe(se(()=>i)):Q(i)}),se(o=>{let a=MQ(e.routeReuseStrategy,o.targetSnapshot,o.currentRouterState);return this.currentTransition=i=De(M({},o),{targetRouterState:a}),this.currentNavigation.update(s=>(s.targetRouterState=a,s)),i}),Be(()=>{this.events.next(new Tf)}),IQ(this.rootContexts,e.routeReuseStrategy,o=>this.events.next(o),this.inputBindingEnabled),lt(1),Te(new Fe(o=>{let a=i.abortController.signal,s=()=>o.next();return a.addEventListener("abort",s),()=>a.removeEventListener("abort",s)}).pipe(ce(()=>!r&&!i.targetRouterState),Be(()=>{this.cancelNavigationTransition(i,i.abortController.signal.reason+"",Or.Aborted)}))),Be({next:o=>{r=!0,this.lastSuccessfulNavigation=Ti(this.currentNavigation),this.events.next(new vi(o.id,this.urlSerializer.serialize(o.extractedUrl),this.urlSerializer.serialize(o.urlAfterRedirects))),this.titleStrategy?.updateTitle(o.targetRouterState.snapshot),o.resolve(!0)},complete:()=>{r=!0}}),Te(this.transitionAbortWithErrorSubject.pipe(Be(o=>{throw o}))),Hr(()=>{r||this.cancelNavigationTransition(i,"",Or.SupersededByNewNavigation),this.currentTransition?.id===i.id&&(this.currentNavigation.set(null),this.currentTransition=null)}),fi(o=>{if(this.destroyed)return i.resolve(!1),Fi;if(r=!0,HN(o))this.events.next(new qo(i.id,this.urlSerializer.serialize(i.extractedUrl),o.message,o.cancellationCode)),TQ(o)?this.events.next(new Vm(o.url,o.navigationBehaviorOptions)):i.resolve(!1);else{let a=new tc(i.id,this.urlSerializer.serialize(i.extractedUrl),o,i.targetSnapshot??void 0);try{let s=In(this.environmentInjector,()=>this.navigationErrorHandler?.(a));if(s instanceof Bm){let{message:l,cancellationCode:c}=x0(this.urlSerializer,s);this.events.next(new qo(i.id,this.urlSerializer.serialize(i.extractedUrl),l,c)),this.events.next(new Vm(s.redirectTo,s.navigationBehaviorOptions))}else throw this.events.next(a),o}catch(s){this.options.resolveNavigationPromiseOnError?i.resolve(!1):i.reject(s)}}return Fi}))}))}cancelNavigationTransition(e,i,r){let o=new qo(e.id,this.urlSerializer.serialize(e.extractedUrl),i,r);this.events.next(o),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))),i=Ti(this.currentNavigation),r=i?.targetBrowserUrl??i?.extractedUrl;return e.toString()!==r?.toString()&&!i?.extras.skipLocationChange}static \u0275fac=function(i){return new(i||t)};static \u0275prov=O({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();function yK(t){return t!==Pm}var XN=(()=>{class t{static \u0275fac=function(i){return new(i||t)};static \u0275prov=O({token:t,factory:()=>u(xK),providedIn:"root"})}return t})(),w0=class{shouldDetach(n){return!1}store(n,e){}shouldAttach(n){return!1}retrieve(n){return null}shouldReuseRoute(n,e){return n.routeConfig===e.routeConfig}},xK=(()=>{class t extends w0{static \u0275fac=(()=>{let e;return function(r){return(e||(e=fe(t)))(r||t)}})();static \u0275prov=O({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),JN=(()=>{class t{urlSerializer=u(ic);options=u(nc,{optional:!0})||{};canceledNavigationResolution=this.options.canceledNavigationResolution||"replace";location=u(us);urlHandlingStrategy=u(M0);urlUpdateStrategy=this.options.urlUpdateStrategy||"deferred";currentUrlTree=new hs;getCurrentUrlTree(){return this.currentUrlTree}rawUrlTree=this.currentUrlTree;getRawUrlTree(){return this.rawUrlTree}createBrowserPath({finalUrl:e,initialUrl:i,targetBrowserUrl:r}){let o=e!==void 0?this.urlHandlingStrategy.merge(e,i):i,a=r??o;return a instanceof hs?this.urlSerializer.serialize(a):a}commitTransition({targetRouterState:e,finalUrl:i,initialUrl:r}){i&&e?(this.currentUrlTree=i,this.rawUrlTree=this.urlHandlingStrategy.merge(i,r),this.routerState=e):this.rawUrlTree=r}routerState=FN(null);getRouterState(){return this.routerState}stateMemento=this.createStateMemento();updateStateMemento(){this.stateMemento=this.createStateMemento()}createStateMemento(){return{rawUrlTree:this.rawUrlTree,currentUrlTree:this.currentUrlTree,routerState:this.routerState}}resetInternalState({finalUrl:e}){this.routerState=this.stateMemento.routerState,this.currentUrlTree=this.stateMemento.currentUrlTree,this.rawUrlTree=this.urlHandlingStrategy.merge(this.currentUrlTree,e??this.rawUrlTree)}static \u0275fac=function(i){return new(i||t)};static \u0275prov=O({token:t,factory:()=>u(CK),providedIn:"root"})}return t})(),CK=(()=>{class t extends JN{currentPageId=0;lastSuccessfulId=-1;restoredState(){return this.location.getState()}get browserPageId(){return this.canceledNavigationResolution!=="computed"?this.currentPageId:this.restoredState()?.\u0275routerPageId??this.currentPageId}registerNonRouterCurrentEntryChangeListener(e){return this.location.subscribe(i=>{i.type==="popstate"&&setTimeout(()=>{e(i.url,i.state,"popstate")})})}handleRouterEvent(e,i){e instanceof ps?this.updateStateMemento():e instanceof fs?this.commitTransition(i):e instanceof Sf?this.urlUpdateStrategy==="eager"&&(i.extras.skipLocationChange||this.setBrowserUrl(this.createBrowserPath(i),i)):e instanceof Tf?(this.commitTransition(i),this.urlUpdateStrategy==="deferred"&&!i.extras.skipLocationChange&&this.setBrowserUrl(this.createBrowserPath(i),i)):e instanceof qo&&e.code!==Or.SupersededByNewNavigation&&e.code!==Or.Redirect?this.restoreHistory(i):e instanceof tc?this.restoreHistory(i,!0):e instanceof vi&&(this.lastSuccessfulId=e.id,this.currentPageId=this.browserPageId)}setBrowserUrl(e,{extras:i,id:r}){let{replaceUrl:o,state:a}=i;if(this.location.isCurrentPathEqualTo(e)||o){let s=this.browserPageId,l=M(M({},a),this.generateNgRouterState(r,s));this.location.replaceState(e,"",l)}else{let s=M(M({},a),this.generateNgRouterState(r,this.browserPageId+1));this.location.go(e,"",s)}}restoreHistory(e,i=!1){if(this.canceledNavigationResolution==="computed"){let r=this.browserPageId,o=this.currentPageId-r;o!==0?this.location.historyGo(o):this.getCurrentUrlTree()===e.finalUrl&&o===0&&(this.resetInternalState(e),this.resetUrlToCurrentUrlTree())}else this.canceledNavigationResolution==="replace"&&(i&&this.resetInternalState(e),this.resetUrlToCurrentUrlTree())}resetUrlToCurrentUrlTree(){this.location.replaceState(this.urlSerializer.serialize(this.getRawUrlTree()),"",this.generateNgRouterState(this.lastSuccessfulId,this.currentPageId))}generateNgRouterState(e,i){return this.canceledNavigationResolution==="computed"?{navigationId:e,\u0275routerPageId:i}:{navigationId:e}}static \u0275fac=(()=>{let e;return function(r){return(e||(e=fe(t)))(r||t)}})();static \u0275prov=O({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();function k0(t,n){t.events.pipe(ce(e=>e instanceof vi||e instanceof qo||e instanceof tc||e instanceof fs),se(e=>e instanceof vi||e instanceof fs?0:(e instanceof qo?e.code===Or.Redirect||e.code===Or.SupersededByNewNavigation:!1)?2:1),ce(e=>e!==2),lt(1)).subscribe(()=>{n()})}var wK={paths:"exact",fragment:"ignored",matrixParams:"ignored",queryParams:"exact"},DK={paths:"subset",fragment:"ignored",matrixParams:"ignored",queryParams:"subset"},Re=(()=>{class t{get currentUrlTree(){return this.stateManager.getCurrentUrlTree()}get rawUrlTree(){return this.stateManager.getRawUrlTree()}disposed=!1;nonRouterCurrentEntryChangeSubscription;console=u(Dv);stateManager=u(JN);options=u(nc,{optional:!0})||{};pendingTasks=u(ns);urlUpdateStrategy=this.options.urlUpdateStrategy||"deferred";navigationTransitions=u(Vf);urlSerializer=u(ic);location=u(us);urlHandlingStrategy=u(M0);injector=u(Wt);_events=new z;get events(){return this._events}get routerState(){return this.stateManager.getRouterState()}navigated=!1;routeReuseStrategy=u(XN);onSameUrlNavigation=this.options.onSameUrlNavigation||"ignore";config=u(Hd,{optional:!0})?.flat()??[];componentInputBindingEnabled=!!u(Nf,{optional:!0});currentNavigation=this.navigationTransitions.currentNavigation.asReadonly();constructor(){this.resetConfig(this.config),this.navigationTransitions.setupNavigations(this).subscribe({error:e=>{this.console.warn(e)}}),this.subscribeToNavigationEvents()}eventsSubscription=new ke;subscribeToNavigationEvents(){let e=this.navigationTransitions.events.subscribe(i=>{try{let r=this.navigationTransitions.currentTransition,o=Ti(this.navigationTransitions.currentNavigation);if(r!==null&&o!==null){if(this.stateManager.handleRouterEvent(i,o),i instanceof qo&&i.code!==Or.Redirect&&i.code!==Or.SupersededByNewNavigation)this.navigated=!0;else if(i instanceof vi)this.navigated=!0;else if(i instanceof Vm){let a=i.navigationBehaviorOptions,s=this.urlHandlingStrategy.merge(i.url,r.currentRawUrl),l=M({browserUrl:r.extras.browserUrl,info:r.extras.info,skipLocationChange:r.extras.skipLocationChange,replaceUrl:r.extras.replaceUrl||this.urlUpdateStrategy==="eager"||yK(r.source)},a);this.scheduleNavigation(s,Pm,null,l,{resolve:r.resolve,reject:r.reject,promise:r.promise})}}CQ(i)&&this._events.next(i)}catch(r){this.navigationTransitions.transitionAbortWithErrorSubject.next(r)}});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),Pm,this.stateManager.restoredState())}setUpLocationChangeListener(){this.nonRouterCurrentEntryChangeSubscription??=this.stateManager.registerNonRouterCurrentEntryChangeListener((e,i,r)=>{this.navigateToSyncWithBrowser(e,r,i)})}navigateToSyncWithBrowser(e,i,r){let o={replaceUrl:!0},a=r?.navigationId?r:null;if(r){let l=M({},r);delete l.navigationId,delete l.\u0275routerPageId,Object.keys(l).length!==0&&(o.state=l)}let s=this.parseUrl(e);this.scheduleNavigation(s,i,a,o).catch(l=>{this.disposed||this.injector.get(hr)(l)})}get url(){return this.serializeUrl(this.currentUrlTree)}getCurrentNavigation(){return Ti(this.navigationTransitions.currentNavigation)}get lastSuccessfulNavigation(){return this.navigationTransitions.lastSuccessfulNavigation}resetConfig(e){this.config=e.map(X1),this.navigated=!1}ngOnDestroy(){this.dispose()}dispose(){this._events.unsubscribe(),this.navigationTransitions.complete(),this.nonRouterCurrentEntryChangeSubscription&&(this.nonRouterCurrentEntryChangeSubscription.unsubscribe(),this.nonRouterCurrentEntryChangeSubscription=void 0),this.disposed=!0,this.eventsSubscription.unsubscribe()}createUrlTree(e,i={}){let{relativeTo:r,queryParams:o,fragment:a,queryParamsHandling:s,preserveFragment:l}=i,c=l?this.currentUrlTree.fragment:a,d=null;switch(s??this.options.defaultQueryParamsHandling){case"merge":d=M(M({},this.currentUrlTree.queryParams),o);break;case"preserve":d=this.currentUrlTree.queryParams;break;default:d=o||null}d!==null&&(d=this.removeEmptyProps(d));let m;try{let f=r?r.snapshot:this.routerState.snapshot.root;m=AN(f)}catch{(typeof e[0]!="string"||e[0][0]!=="/")&&(e=[]),m=this.currentUrlTree.root}return ON(m,e,d,c??null)}navigateByUrl(e,i={skipLocationChange:!1}){let r=ec(e)?e:this.parseUrl(e),o=this.urlHandlingStrategy.merge(r,this.rawUrlTree);return this.scheduleNavigation(o,Pm,null,i)}navigate(e,i={skipLocationChange:!1}){return EK(e),this.navigateByUrl(this.createUrlTree(e,i),i)}serializeUrl(e){return this.urlSerializer.serialize(e)}parseUrl(e){try{return this.urlSerializer.parse(e)}catch{return this.console.warn(Ro(4018,!1)),this.urlSerializer.parse("/")}}isActive(e,i){let r;if(i===!0?r=M({},wK):i===!1?r=M({},DK):r=i,ec(e))return mN(this.currentUrlTree,e,r);let o=this.parseUrl(e);return mN(this.currentUrlTree,o,r)}removeEmptyProps(e){return Object.entries(e).reduce((i,[r,o])=>(o!=null&&(i[r]=o),i),{})}scheduleNavigation(e,i,r,o,a){if(this.disposed)return Promise.resolve(!1);let s,l,c;a?(s=a.resolve,l=a.reject,c=a.promise):c=new Promise((m,f)=>{s=m,l=f});let d=this.pendingTasks.add();return k0(this,()=>{queueMicrotask(()=>this.pendingTasks.remove(d))}),this.navigationTransitions.handleNavigationRequest({source:i,restoredState:r,currentUrlTree:this.currentUrlTree,currentRawUrl:this.currentUrlTree,rawUrl:e,extras:o,resolve:s,reject:l,promise:c,currentSnapshot:this.routerState.snapshot,currentRouterState:this.routerState}),c.catch(m=>Promise.reject(m))}static \u0275fac=function(i){return new(i||t)};static \u0275prov=O({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();function EK(t){for(let n=0;n{class t{router;route;tabIndexAttribute;renderer;el;locationStrategy;reactiveHref=he(null);get href(){return Ti(this.reactiveHref)}set href(e){this.reactiveHref.set(e)}target;queryParams;fragment;queryParamsHandling;state;info;relativeTo;isAnchorElement;subscription;onChanges=new z;applicationErrorHandler=u(hr);options=u(nc,{optional:!0});constructor(e,i,r,o,a,s){this.router=e,this.route=i,this.tabIndexAttribute=r,this.renderer=o,this.el=a,this.locationStrategy=s,this.reactiveHref.set(u(new Ii("href"),{optional:!0}));let l=a.nativeElement.tagName?.toLowerCase();this.isAnchorElement=l==="a"||l==="area"||!!(typeof customElements=="object"&&customElements.get(l)?.observedAttributes?.includes?.("href")),this.isAnchorElement?this.setTabIndexIfNotOnNativeEl("0"):this.subscribeToNavigationEventsIfNecessary()}subscribeToNavigationEventsIfNecessary(){if(this.subscription!==void 0||!this.isAnchorElement)return;let e=this.preserveFragment,i=r=>r==="merge"||r==="preserve";e||=i(this.queryParamsHandling),e||=!this.queryParamsHandling&&!i(this.options?.defaultQueryParamsHandling),e&&(this.subscription=this.router.events.subscribe(r=>{r instanceof vi&&this.updateHref()}))}preserveFragment=!1;skipLocationChange=!1;replaceUrl=!1;setTabIndexIfNotOnNativeEl(e){this.tabIndexAttribute!=null||this.isAnchorElement||this.applyAttributeValue("tabindex",e)}ngOnChanges(e){this.isAnchorElement&&(this.updateHref(),this.subscribeToNavigationEventsIfNecessary()),this.onChanges.next(this)}routerLinkInput=null;set routerLink(e){e==null?(this.routerLinkInput=null,this.setTabIndexIfNotOnNativeEl(null)):(ec(e)?this.routerLinkInput=e:this.routerLinkInput=Array.isArray(e)?e:[e],this.setTabIndexIfNotOnNativeEl("0"))}onClick(e,i,r,o,a){let s=this.urlTree;if(s===null||this.isAnchorElement&&(e!==0||i||r||o||a||typeof this.target=="string"&&this.target!="_self"))return!0;let l={skipLocationChange:this.skipLocationChange,replaceUrl:this.replaceUrl,state:this.state,info:this.info};return this.router.navigateByUrl(s,l)?.catch(c=>{this.applicationErrorHandler(c)}),!this.isAnchorElement}ngOnDestroy(){this.subscription?.unsubscribe()}updateHref(){let e=this.urlTree;this.reactiveHref.set(e!==null&&this.locationStrategy?this.locationStrategy?.prepareExternalUrl(this.router.serializeUrl(e))??"":null)}applyAttributeValue(e,i){let r=this.renderer,o=this.el.nativeElement;i!==null?r.setAttribute(o,e,i):r.removeAttribute(o,e)}get urlTree(){return this.routerLinkInput===null?null:ec(this.routerLinkInput)?this.routerLinkInput:this.router.createUrlTree(this.routerLinkInput,{relativeTo:this.relativeTo!==void 0?this.relativeTo:this.route,queryParams:this.queryParams,fragment:this.fragment,queryParamsHandling:this.queryParamsHandling,preserveFragment:this.preserveFragment})}static \u0275fac=function(i){return new(i||t)(_e(Re),_e(wi),qp("tabindex"),_e(je),_e(q),_e(Ea))};static \u0275dir=F({type:t,selectors:[["","routerLink",""]],hostVars:2,hostBindings:function(i,r){i&1&&S("click",function(a){return r.onClick(a.button,a.ctrlKey,a.shiftKey,a.altKey,a.metaKey)}),i&2&&X("href",r.reactiveHref(),sM)("target",r.target)},inputs:{target:"target",queryParams:"queryParams",fragment:"fragment",queryParamsHandling:"queryParamsHandling",state:"state",info:"info",relativeTo:"relativeTo",preserveFragment:[2,"preserveFragment","preserveFragment",V],skipLocationChange:[2,"skipLocationChange","skipLocationChange",V],replaceUrl:[2,"replaceUrl","replaceUrl",V],routerLink:"routerLink"},features:[Ae]})}return t})(),zd=(()=>{class t{router;element;renderer;cdr;link;links;classes=[];routerEventsSubscription;linkInputChangesSubscription;_isActive=!1;get isActive(){return this._isActive}routerLinkActiveOptions={exact:!1};ariaCurrentWhenActive;isActiveChange=new U;constructor(e,i,r,o,a){this.router=e,this.element=i,this.renderer=r,this.cdr=o,this.link=a,this.routerEventsSubscription=e.events.subscribe(s=>{s instanceof vi&&this.update()})}ngAfterContentInit(){Q(this.links.changes,Q(null)).pipe(uo()).subscribe(e=>{this.update(),this.subscribeToEachLinkOnChanges()})}subscribeToEachLinkOnChanges(){this.linkInputChangesSubscription?.unsubscribe();let e=[...this.links.toArray(),this.link].filter(i=>!!i).map(i=>i.onChanges);this.linkInputChangesSubscription=Ot(e).pipe(uo()).subscribe(i=>{this._isActive!==this.isLinkActive(this.router)(i)&&this.update()})}set routerLinkActive(e){let i=Array.isArray(e)?e:e.split(" ");this.classes=i.filter(r=>!!r)}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(i=>{e?this.renderer.addClass(this.element.nativeElement,i):this.renderer.removeClass(this.element.nativeElement,i)}),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 i=MK(this.routerLinkActiveOptions)?this.routerLinkActiveOptions:this.routerLinkActiveOptions.exact||!1;return r=>{let o=r.urlTree;return o?e.isActive(o,i):!1}}hasActiveLinks(){let e=this.isLinkActive(this.router);return this.link&&e(this.link)||this.links.some(e)}static \u0275fac=function(i){return new(i||t)(_e(Re),_e(q),_e(je),_e(ye),_e(Nn,8))};static \u0275dir=F({type:t,selectors:[["","routerLinkActive",""]],contentQueries:function(i,r,o){if(i&1&&xe(o,Nn,5),i&2){let a;B(a=j())&&(r.links=a)}},inputs:{routerLinkActiveOptions:"routerLinkActiveOptions",ariaCurrentWhenActive:"ariaCurrentWhenActive",routerLinkActive:"routerLinkActive"},outputs:{isActiveChange:"isActiveChange"},exportAs:["routerLinkActive"],features:[Ae]})}return t})();function MK(t){return!!t.paths}var Bf=class{};var eL=(()=>{class t{router;injector;preloadingStrategy;loader;subscription;constructor(e,i,r,o){this.router=e,this.injector=i,this.preloadingStrategy=r,this.loader=o}setUpPreloading(){this.subscription=this.router.events.pipe(ce(e=>e instanceof vi),Ao(()=>this.preload())).subscribe(()=>{})}preload(){return this.processRoutes(this.injector,this.router.config)}ngOnDestroy(){this.subscription&&this.subscription.unsubscribe()}processRoutes(e,i){let r=[];for(let o of i){o.providers&&!o._injector&&(o._injector=vm(o.providers,e,`Route: ${o.path}`));let a=o._injector??e,s=o._loadedInjector??a;(o.loadChildren&&!o._loadedRoutes&&o.canLoad===void 0||o.loadComponent&&!o._loadedComponent)&&r.push(this.preloadConfig(a,o)),(o.children||o._loadedRoutes)&&r.push(this.processRoutes(s,o.children??o._loadedRoutes))}return Ot(r).pipe(uo())}preloadConfig(e,i){return this.preloadingStrategy.preload(i,()=>{let r;i.loadChildren&&i.canLoad===void 0?r=this.loader.loadChildren(e,i):r=Q(null);let o=r.pipe(Mt(a=>a===null?Q(void 0):(i._loadedRoutes=a.routes,i._loadedInjector=a.injector,this.processRoutes(a.injector??e,a.routes))));if(i.loadComponent&&!i._loadedComponent){let a=this.loader.loadComponent(e,i);return Ot([o,a]).pipe(uo())}else return o})}static \u0275fac=function(i){return new(i||t)(pe(Re),pe(Wt),pe(Bf),pe(E0))};static \u0275prov=O({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),rk=new T(""),tL=(()=>{class t{urlSerializer;transitions;viewportScroller;zone;options;routerEventsSubscription;scrollEventsSubscription;lastId=0;lastSource=Pm;restoredId=0;store={};constructor(e,i,r,o,a={}){this.urlSerializer=e,this.transitions=i,this.viewportScroller=r,this.zone=o,this.options=a,a.scrollPositionRestoration||="disabled",a.anchorScrolling||="disabled"}init(){this.options.scrollPositionRestoration!=="disabled"&&this.viewportScroller.setHistoryScrollRestoration("manual"),this.routerEventsSubscription=this.createScrollEvents(),this.scrollEventsSubscription=this.consumeScrollEvents()}createScrollEvents(){return this.transitions.events.subscribe(e=>{e instanceof ps?(this.store[this.lastId]=this.viewportScroller.getScrollPosition(),this.lastSource=e.navigationTrigger,this.restoredId=e.restoredState?e.restoredState.navigationId:0):e instanceof vi?(this.lastId=e.id,this.scheduleScrollEvent(e,this.urlSerializer.parse(e.urlAfterRedirects).fragment)):e instanceof fs&&e.code===Nm.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 Lm))return;let i={behavior:"instant"};e.position?this.options.scrollPositionRestoration==="top"?this.viewportScroller.scrollToPosition([0,0],i):this.options.scrollPositionRestoration==="enabled"&&this.viewportScroller.scrollToPosition(e.position,i):e.anchor&&this.options.anchorScrolling==="enabled"?this.viewportScroller.scrollToAnchor(e.anchor):this.options.scrollPositionRestoration!=="disabled"&&this.viewportScroller.scrollToPosition([0,0])})}scheduleScrollEvent(e,i){this.zone.runOutsideAngular(()=>fn(this,null,function*(){yield new Promise(r=>{setTimeout(r),typeof requestAnimationFrame<"u"&&requestAnimationFrame(r)}),this.zone.run(()=>{this.transitions.events.next(new Lm(e,this.lastSource==="popstate"?this.store[this.restoredId]:null,i))})}))}ngOnDestroy(){this.routerEventsSubscription?.unsubscribe(),this.scrollEventsSubscription?.unsubscribe()}static \u0275fac=function(i){Ad()};static \u0275prov=O({token:t,factory:t.\u0275fac})}return t})();function ok(t,...n){return zr([{provide:Hd,multi:!0,useValue:t},[],{provide:wi,useFactory:iL,deps:[Re]},{provide:nf,multi:!0,useFactory:nL},n.map(e=>e.\u0275providers)])}function iL(t){return t.routerState.root}function Um(t,n){return{\u0275kind:t,\u0275providers:n}}function ak(t={}){return Um(4,[{provide:rk,useFactory:()=>{let e=u(h1),i=u(ae),r=u(Vf),o=u(ic);return new tL(o,r,e,i,t)}}])}function nL(){let t=u(de);return n=>{let e=t.get(Gn);if(n!==e.components[0])return;let i=t.get(Re),r=t.get(rL);t.get(sk)===1&&i.initialNavigation(),t.get(sL,null,{optional:!0})?.setUpPreloading(),t.get(rk,null,{optional:!0})?.init(),i.resetRootComponentType(e.componentTypes[0]),r.closed||(r.next(),r.complete(),r.unsubscribe())}}var rL=new T("",{factory:()=>new z}),sk=new T("",{providedIn:"root",factory:()=>1});function oL(){let t=[{provide:lv,useValue:!0},{provide:sk,useValue:0},Ql(()=>{let n=u(de);return n.get(JM,Promise.resolve()).then(()=>new Promise(i=>{let r=n.get(Re),o=n.get(rL);k0(r,()=>{i(!0)}),n.get(Vf).afterPreactivation=()=>(i(!0),o.closed?Q(void 0):o),r.initialNavigation()}))})];return Um(2,t)}function aL(){let t=[Ql(()=>{u(Re).setUpLocationChangeListener()}),{provide:sk,useValue:2}];return Um(3,t)}var sL=new T("");function lL(t){return Um(0,[{provide:sL,useExisting:eL},{provide:Bf,useExisting:t}])}function S0(){return Um(8,[K1,{provide:Nf,useExisting:K1}])}function cL(t){cs("NgRouterViewTransitions");let n=[{provide:ek,useValue:ZN},{provide:tk,useValue:M({skipNextTransition:!!t?.skipInitialTransition},t)}];return Um(9,n)}var dL=[us,{provide:ic,useClass:Jl},Re,jd,{provide:wi,useFactory:iL,deps:[Re]},E0,[]],lk=(()=>{class t{constructor(){}static forRoot(e,i){return{ngModule:t,providers:[dL,[],{provide:Hd,multi:!0,useValue:e},[],i?.errorHandler?{provide:ik,useValue:i.errorHandler}:[],{provide:nc,useValue:i||{}},i?.useHash?SK():TK(),kK(),i?.preloadingStrategy?lL(i.preloadingStrategy).\u0275providers:[],i?.initialNavigation?IK(i):[],i?.bindToComponentInputs?S0().\u0275providers:[],i?.enableViewTransitions?cL().\u0275providers:[],AK()]}}static forChild(e){return{ngModule:t,providers:[{provide:Hd,multi:!0,useValue:e}]}}static \u0275fac=function(i){return new(i||t)};static \u0275mod=ee({type:t});static \u0275inj=J({})}return t})();function kK(){return{provide:rk,useFactory:()=>{let t=u(h1),n=u(ae),e=u(nc),i=u(Vf),r=u(ic);return e.scrollOffset&&t.setOffset(e.scrollOffset),new tL(r,i,t,n,e)}}}function SK(){return{provide:Ea,useClass:l1}}function TK(){return{provide:Ea,useClass:Fv}}function IK(t){return[t.initialNavigation==="disabled"?aL().\u0275providers:[],t.initialNavigation==="enabledBlocking"?oL().\u0275providers:[]]}var nk=new T("");function AK(){return[{provide:nk,useFactory:nL},{provide:nf,multi:!0,useExisting:nk}]}var dk=class{validateSignature(n){return Promise.resolve(null)}validateAtHash(n){return Promise.resolve(!0)}},T0=class{};var jf=class{},OK=(()=>{let n=class n extends jf{now(){return Date.now()}new(){return new Date}};n.\u0275fac=(()=>{let i;return function(o){return(i||(i=fe(n)))(o||n)}})(),n.\u0275prov=O({token:n,factory:n.\u0275fac});let t=n;return t})();var I0=class{},A0=class{},RK=(()=>{let n=class n{constructor(){this.data=new Map}getItem(i){return this.data.get(i)}removeItem(i){this.data.delete(i)}setItem(i,r){this.data.set(i,r)}};n.\u0275fac=function(r){return new(r||n)},n.\u0275prov=O({token:n,factory:n.\u0275fac});let t=n;return t})();var Hf=class{constructor(n){this.type=n}},Rr=class extends Hf{constructor(n,e=null){super(n),this.info=e}},Ia=class extends Hf{constructor(n,e=null){super(n),this.info=e}},Ui=class extends Hf{constructor(n,e,i=null){super(n),this.reason=e,this.params=i}};function mL(t){let n=t.replace(/-/g,"+").replace(/_/g,"/");return decodeURIComponent(atob(n).split("").map(function(e){return"%"+("00"+e.charCodeAt(0).toString(16)).slice(-2)}).join(""))}function hL(t){return btoa(t).replace(/\+/g,"-").replace(/\//g,"_").replace(/=/g,"")}var $m=class{constructor(n){this.clientId="",this.redirectUri="",this.postLogoutRedirectUri="",this.redirectUriAsPostLogoutRedirectUriFallback=!0,this.loginUrl="",this.scope="openid profile",this.resource="",this.rngUrl="",this.oidc=!0,this.requestAccessToken=!0,this.options=null,this.issuer="",this.logoutUrl="",this.clearHashAfterLogin=!0,this.tokenEndpoint=null,this.revocationEndpoint=null,this.customTokenParameters=[],this.userinfoEndpoint=null,this.responseType="",this.showDebugInformation=!1,this.silentRefreshRedirectUri="",this.silentRefreshMessagePrefix="",this.silentRefreshShowIFrame=!1,this.siletRefreshTimeout=1e3*20,this.silentRefreshTimeout=1e3*20,this.dummyClientSecret="",this.requireHttps="remoteOnly",this.strictDiscoveryDocumentValidation=!0,this.jwks=null,this.customQueryParams=null,this.silentRefreshIFrameName="angular-oauth-oidc-silent-refresh-iframe",this.timeoutFactor=.75,this.sessionChecksEnabled=!1,this.sessionCheckIntervall=3*1e3,this.sessionCheckIFrameUrl=null,this.sessionCheckIFrameName="angular-oauth-oidc-check-session-iframe",this.disableAtHashCheck=!1,this.skipSubjectCheck=!1,this.useIdTokenHintForSilentRefresh=!1,this.skipIssuerCheck=!1,this.nonceStateSeparator=";",this.useHttpBasicAuth=!1,this.decreaseExpirationBySec=0,this.waitForTokenInMsec=0,this.disablePKCE=!1,this.preserveRequestedRoute=!1,this.disableIdTokenTimer=!1,this.checkOrigin=!1,this.openUri=e=>{location.href=e},n&&Object.assign(this,n)}},Ud=class{encodeKey(n){return encodeURIComponent(n)}encodeValue(n){return encodeURIComponent(n)}decodeKey(n){return decodeURIComponent(n)}decodeValue(n){return decodeURIComponent(n)}},O0=class{};var pL=(()=>{let n=class n{getHashFragmentParams(i){let r=i||window.location.hash;if(r=decodeURIComponent(r),r.indexOf("#")!==0)return{};let o=r.indexOf("?");return o>-1?r=r.substr(o+1):r=r.substr(1),this.parseQueryString(r)}parseQueryString(i){let r={},o,a,s,l,c,d;if(i===null)return r;let m=i.split("&");for(let f=0;f=64;){for(o=n[0],a=n[1],s=n[2],l=n[3],c=n[4],d=n[5],m=n[6],f=n[7],v=0;v<16;v++)w=i+v*4,t[v]=(e[w]&255)<<24|(e[w+1]&255)<<16|(e[w+2]&255)<<8|e[w+3]&255;for(v=16;v<64;v++)b=t[v-2],x=(b>>>17|b<<15)^(b>>>19|b<<13)^b>>>10,b=t[v-15],D=(b>>>7|b<<25)^(b>>>18|b<<14)^b>>>3,t[v]=(x+t[v-7]|0)+(D+t[v-16]|0);for(v=0;v<64;v++)x=(((c>>>6|c<<26)^(c>>>11|c<<21)^(c>>>25|c<<7))+(c&d^~c&m)|0)+(f+(FK[v]+t[v]|0)|0)|0,D=((o>>>2|o<<30)^(o>>>13|o<<19)^(o>>>22|o<<10))+(o&a^o&s^a&s)|0,f=m,m=d,d=c,c=l+x|0,l=s,s=a,a=o,o=x+D|0;n[0]+=o,n[1]+=a,n[2]+=s,n[3]+=l,n[4]+=c,n[5]+=d,n[6]+=m,n[7]+=f,i+=64,r-=64}return i}var uk=class{constructor(){this.digestLength=fL,this.blockSize=PK,this.state=new Int32Array(8),this.temp=new Int32Array(64),this.buffer=new Uint8Array(128),this.bufferLength=0,this.bytesHashed=0,this.finished=!1,this.reset()}reset(){return this.state[0]=1779033703,this.state[1]=3144134277,this.state[2]=1013904242,this.state[3]=2773480762,this.state[4]=1359893119,this.state[5]=2600822924,this.state[6]=528734635,this.state[7]=1541459225,this.bufferLength=0,this.bytesHashed=0,this.finished=!1,this}clean(){for(let n=0;n0){for(;this.bufferLength<64&&e>0;)this.buffer[this.bufferLength++]=n[i++],e--;this.bufferLength===64&&(ck(this.temp,this.state,this.buffer,0,64),this.bufferLength=0)}for(e>=64&&(i=ck(this.temp,this.state,n,i,e),e%=64);e>0;)this.buffer[this.bufferLength++]=n[i++],e--;return this}finish(n){if(!this.finished){let e=this.bytesHashed,i=this.bufferLength,r=e/536870912|0,o=e<<3,a=e%64<56?64:128;this.buffer[i]=128;for(let s=i+1;s>>24&255,this.buffer[a-7]=r>>>16&255,this.buffer[a-6]=r>>>8&255,this.buffer[a-5]=r>>>0&255,this.buffer[a-4]=o>>>24&255,this.buffer[a-3]=o>>>16&255,this.buffer[a-2]=o>>>8&255,this.buffer[a-1]=o>>>0&255,ck(this.temp,this.state,this.buffer,0,a),this.finished=!0}for(let e=0;e<8;e++)n[e*4+0]=this.state[e]>>>24&255,n[e*4+1]=this.state[e]>>>16&255,n[e*4+2]=this.state[e]>>>8&255,n[e*4+3]=this.state[e]>>>0&255;return this}digest(){let n=new Uint8Array(this.digestLength);return this.finish(n),n}_saveState(n){for(let e=0;e{let n=class n{calcHash(i,r){return fn(this,null,function*(){return VK(NK(LK(i)))})}toHashString2(i){let r="";for(let o of i)r+=String.fromCharCode(o);return r}toHashString(i){let r=new Uint8Array(i),o="";for(let a of r)o+=String.fromCharCode(a);return o}};n.\u0275fac=function(r){return new(r||n)},n.\u0275prov=O({token:n,factory:n.\u0275fac});let t=n;return t})(),Wm=(()=>{let n=class n extends $m{constructor(i,r,o,a,s,l,c,d,m,f){super(),this.ngZone=i,this.http=r,this.config=s,this.urlHelper=l,this.logger=c,this.crypto=d,this.dateTimeService=f,this.discoveryDocumentLoaded=!1,this.state="",this.eventsSubject=new z,this.discoveryDocumentLoadedSubject=new z,this.grantTypesSupported=[],this.inImplicitFlow=!1,this.saveNoncesInLocalStorage=!1,this.debug("angular-oauth2-oidc v10"),this.document=m,s||(s={}),this.discoveryDocumentLoaded$=this.discoveryDocumentLoadedSubject.asObservable(),this.events=this.eventsSubject.asObservable(),a&&(this.tokenValidationHandler=a),s&&this.configure(s);try{o?this.setStorage(o):typeof sessionStorage<"u"&&this.setStorage(sessionStorage)}catch(b){console.error("No OAuthStorage provided and cannot access default (sessionStorage).Consider providing a custom OAuthStorage implementation in your module.",b)}if(this.checkLocalStorageAccessable()){let b=window?.navigator?.userAgent;(b?.includes("MSIE ")||b?.includes("Trident"))&&(this.saveNoncesInLocalStorage=!0)}this.setupRefreshTimer()}checkLocalStorageAccessable(){if(typeof window>"u")return!1;let i="test";try{return typeof window.localStorage>"u"?!1:(localStorage.setItem(i,i),localStorage.removeItem(i),!0)}catch{return!1}}configure(i){Object.assign(this,new $m,i),this.config=Object.assign({},new $m,i),this.sessionChecksEnabled&&this.setupSessionCheck(),this.configChanged()}configChanged(){this.setupRefreshTimer()}restartSessionChecksIfStillLoggedIn(){this.hasValidIdToken()&&this.initSessionCheck()}restartRefreshTimerIfStillLoggedIn(){this.setupExpirationTimers()}setupSessionCheck(){this.events.pipe(ce(i=>i.type==="token_received")).subscribe(()=>{this.initSessionCheck()})}setupAutomaticSilentRefresh(i={},r,o=!0){let a=!0;this.clearAutomaticRefreshTimer(),this.automaticRefreshSubscription=this.events.pipe(Be(s=>{s.type==="token_received"?a=!0:s.type==="logout"&&(a=!1)}),ce(s=>s.type==="token_expires"&&(r==null||r==="any"||s.info===r)),Rt(1e3)).subscribe(()=>{a&&this.refreshInternal(i,o).catch(()=>{this.debug("Automatic silent refresh did not work")})}),this.restartRefreshTimerIfStillLoggedIn()}refreshInternal(i,r){return!this.useSilentRefresh&&this.responseType==="code"?this.refreshToken():this.silentRefresh(i,r)}loadDiscoveryDocumentAndTryLogin(i=null){return this.loadDiscoveryDocument().then(()=>this.tryLogin(i))}loadDiscoveryDocumentAndLogin(i=null){return i=i||{},this.loadDiscoveryDocumentAndTryLogin(i).then(()=>{if(!this.hasValidIdToken()||!this.hasValidAccessToken()){let r=typeof i.state=="string"?i.state:"";return this.initLoginFlow(r),!1}else return!0})}debug(...i){this.showDebugInformation&&this.logger.debug(...i)}validateUrlFromDiscoveryDocument(i){let r=[],o=this.validateUrlForHttps(i),a=this.validateUrlAgainstIssuer(i);return o||r.push("https for all urls required. Also for urls received by discovery."),a||r.push("Every url in discovery document has to start with the issuer url.Also see property strictDiscoveryDocumentValidation."),r}validateUrlForHttps(i){if(!i)return!0;let r=i.toLowerCase();return this.requireHttps===!1||(r.match(/^http:\/\/localhost($|[:/])/)||r.match(/^http:\/\/localhost($|[:/])/))&&this.requireHttps==="remoteOnly"?!0:r.startsWith("https://")}assertUrlNotNullAndCorrectProtocol(i,r){if(!i)throw new Error(`'${r}' should not be null`);if(!this.validateUrlForHttps(i))throw new Error(`'${r}' must use HTTPS (with TLS), or config value for property 'requireHttps' must be set to 'false' and allow HTTP (without TLS).`)}validateUrlAgainstIssuer(i){return!this.strictDiscoveryDocumentValidation||!i?!0:i.toLowerCase().startsWith(this.issuer.toLowerCase())}setupRefreshTimer(){if(typeof window>"u"){this.debug("timer not supported on this plattform");return}(this.hasValidIdToken()||this.hasValidAccessToken())&&(this.clearAccessTokenTimer(),this.clearIdTokenTimer(),this.setupExpirationTimers()),this.tokenReceivedSubscription&&this.tokenReceivedSubscription.unsubscribe(),this.tokenReceivedSubscription=this.events.pipe(ce(i=>i.type==="token_received")).subscribe(()=>{this.clearAccessTokenTimer(),this.clearIdTokenTimer(),this.setupExpirationTimers()})}setupExpirationTimers(){this.hasValidAccessToken()&&this.setupAccessTokenTimer(),!this.disableIdTokenTimer&&this.hasValidIdToken()&&this.setupIdTokenTimer()}setupAccessTokenTimer(){let i=this.getAccessTokenExpiration(),r=this.getAccessTokenStoredAt(),o=this.calcTimeout(r,i);this.ngZone.runOutsideAngular(()=>{this.accessTokenTimeoutSubscription=Q(new Ia("token_expires","access_token")).pipe(pa(o)).subscribe(a=>{this.ngZone.run(()=>{this.eventsSubject.next(a)})})})}setupIdTokenTimer(){let i=this.getIdTokenExpiration(),r=this.getIdTokenStoredAt(),o=this.calcTimeout(r,i);this.ngZone.runOutsideAngular(()=>{this.idTokenTimeoutSubscription=Q(new Ia("token_expires","id_token")).pipe(pa(o)).subscribe(a=>{this.ngZone.run(()=>{this.eventsSubject.next(a)})})})}stopAutomaticRefresh(){this.clearAccessTokenTimer(),this.clearIdTokenTimer(),this.clearAutomaticRefreshTimer()}clearAccessTokenTimer(){this.accessTokenTimeoutSubscription&&this.accessTokenTimeoutSubscription.unsubscribe()}clearIdTokenTimer(){this.idTokenTimeoutSubscription&&this.idTokenTimeoutSubscription.unsubscribe()}clearAutomaticRefreshTimer(){this.automaticRefreshSubscription&&this.automaticRefreshSubscription.unsubscribe()}calcTimeout(i,r){let o=this.dateTimeService.now(),a=(r-i)*this.timeoutFactor-(o-i),s=Math.max(0,a),l=2147483647;return s>l?l:s}setStorage(i){this._storage=i,this.configChanged()}loadDiscoveryDocument(i=null){return new Promise((r,o)=>{if(i||(i=this.issuer||"",i.endsWith("/")||(i+="/"),i+=".well-known/openid-configuration"),!this.validateUrlForHttps(i)){o("issuer must use HTTPS (with TLS), or config value for property 'requireHttps' must be set to 'false' and allow HTTP (without TLS).");return}this.http.get(i).subscribe(a=>{if(!this.validateDiscoveryDocument(a)){this.eventsSubject.next(new Ui("discovery_document_validation_error",null)),o("discovery_document_validation_error");return}this.loginUrl=a.authorization_endpoint,this.logoutUrl=a.end_session_endpoint||this.logoutUrl,this.grantTypesSupported=a.grant_types_supported,this.issuer=a.issuer,this.tokenEndpoint=a.token_endpoint,this.userinfoEndpoint=a.userinfo_endpoint||this.userinfoEndpoint,this.jwksUri=a.jwks_uri,this.sessionCheckIFrameUrl=a.check_session_iframe||this.sessionCheckIFrameUrl,this.discoveryDocumentLoaded=!0,this.discoveryDocumentLoadedSubject.next(a),this.revocationEndpoint=a.revocation_endpoint||this.revocationEndpoint,this.sessionChecksEnabled&&this.restartSessionChecksIfStillLoggedIn(),this.loadJwks().then(s=>{let l={discoveryDocument:a,jwks:s},c=new Rr("discovery_document_loaded",l);this.eventsSubject.next(c),r(c)}).catch(s=>{this.eventsSubject.next(new Ui("discovery_document_load_error",s)),o(s)})},a=>{this.logger.error("error loading discovery document",a),this.eventsSubject.next(new Ui("discovery_document_load_error",a)),o(a)})})}loadJwks(){return new Promise((i,r)=>{this.jwksUri?this.http.get(this.jwksUri).subscribe(o=>{this.jwks=o,i(o)},o=>{this.logger.error("error loading jwks",o),this.eventsSubject.next(new Ui("jwks_load_error",o)),r(o)}):i(null)})}validateDiscoveryDocument(i){let r;return!this.skipIssuerCheck&&i.issuer!==this.issuer?(this.logger.error("invalid issuer in discovery document","expected: "+this.issuer,"current: "+i.issuer),!1):(r=this.validateUrlFromDiscoveryDocument(i.authorization_endpoint),r.length>0?(this.logger.error("error validating authorization_endpoint in discovery document",r),!1):(r=this.validateUrlFromDiscoveryDocument(i.end_session_endpoint),r.length>0?(this.logger.error("error validating end_session_endpoint in discovery document",r),!1):(r=this.validateUrlFromDiscoveryDocument(i.token_endpoint),r.length>0&&this.logger.error("error validating token_endpoint in discovery document",r),r=this.validateUrlFromDiscoveryDocument(i.revocation_endpoint),r.length>0&&this.logger.error("error validating revocation_endpoint in discovery document",r),r=this.validateUrlFromDiscoveryDocument(i.userinfo_endpoint),r.length>0?(this.logger.error("error validating userinfo_endpoint in discovery document",r),!1):(r=this.validateUrlFromDiscoveryDocument(i.jwks_uri),r.length>0?(this.logger.error("error validating jwks_uri in discovery document",r),!1):(this.sessionChecksEnabled&&!i.check_session_iframe&&this.logger.warn("sessionChecksEnabled is activated but discovery document does not contain a check_session_iframe field"),!0)))))}fetchTokenUsingPasswordFlowAndLoadUserProfile(i,r,o=new _r){return this.fetchTokenUsingPasswordFlow(i,r,o).then(()=>this.loadUserProfile())}loadUserProfile(){if(!this.hasValidAccessToken())throw new Error("Can not load User Profile without access_token");if(!this.validateUrlForHttps(this.userinfoEndpoint))throw new Error("userinfoEndpoint must use HTTPS (with TLS), or config value for property 'requireHttps' must be set to 'false' and allow HTTP (without TLS).");return new Promise((i,r)=>{let o=new _r().set("Authorization","Bearer "+this.getAccessToken());this.http.get(this.userinfoEndpoint,{headers:o,observe:"response",responseType:"text"}).subscribe(a=>{if(this.debug("userinfo received",JSON.stringify(a)),a.headers.get("content-type").startsWith("application/json")){let s=JSON.parse(a.body),l=this.getIdentityClaims()||{};if(!this.skipSubjectCheck&&this.oidc&&(!l.sub||s.sub!==l.sub)){r(`if property oidc is true, the received user-id (sub) has to be the user-id of the user that has logged in with oidc. +if you are not using oidc but just oauth2 password flow set oidc to false`);return}s=Object.assign({},l,s),this._storage.setItem("id_token_claims_obj",JSON.stringify(s)),this.eventsSubject.next(new Rr("user_profile_loaded")),i({info:s})}else this.debug("userinfo is not JSON, treating it as JWE/JWS"),this.eventsSubject.next(new Rr("user_profile_loaded")),i(JSON.parse(a.body))},a=>{this.logger.error("error loading user info",a),this.eventsSubject.next(new Ui("user_profile_load_error",a)),r(a)})})}fetchTokenUsingPasswordFlow(i,r,o=new _r){let a={username:i,password:r};return this.fetchTokenUsingGrant("password",a,o)}fetchTokenUsingGrant(i,r,o=new _r){this.assertUrlNotNullAndCorrectProtocol(this.tokenEndpoint,"tokenEndpoint");let a=new Qn({encoder:new Ud}).set("grant_type",i).set("scope",this.scope);if(this.useHttpBasicAuth){let s=btoa(`${this.clientId}:${this.dummyClientSecret}`);o=o.set("Authorization","Basic "+s)}if(this.useHttpBasicAuth||(a=a.set("client_id",this.clientId)),!this.useHttpBasicAuth&&this.dummyClientSecret&&(a=a.set("client_secret",this.dummyClientSecret)),this.customQueryParams)for(let s of Object.getOwnPropertyNames(this.customQueryParams))a=a.set(s,this.customQueryParams[s]);for(let s of Object.keys(r))a=a.set(s,r[s]);return o=o.set("Content-Type","application/x-www-form-urlencoded"),new Promise((s,l)=>{this.http.post(this.tokenEndpoint,a,{headers:o}).subscribe(c=>{this.debug("tokenResponse",c),this.storeAccessTokenResponse(c.access_token,c.refresh_token,c.expires_in||this.fallbackAccessTokenExpirationTimeInSec,c.scope,this.extractRecognizedCustomParameters(c)),this.oidc&&c.id_token&&this.processIdToken(c.id_token,c.access_token).then(d=>{this.storeIdToken(d),s(c)}),this.eventsSubject.next(new Rr("token_received")),s(c)},c=>{this.logger.error("Error performing ${grantType} flow",c),this.eventsSubject.next(new Ui("token_error",c)),l(c)})})}refreshToken(){return this.assertUrlNotNullAndCorrectProtocol(this.tokenEndpoint,"tokenEndpoint"),new Promise((i,r)=>{let o=new Qn({encoder:new Ud}).set("grant_type","refresh_token").set("scope",this.scope).set("refresh_token",this._storage.getItem("refresh_token")),a=new _r().set("Content-Type","application/x-www-form-urlencoded");if(this.useHttpBasicAuth){let s=btoa(`${this.clientId}:${this.dummyClientSecret}`);a=a.set("Authorization","Basic "+s)}if(this.useHttpBasicAuth||(o=o.set("client_id",this.clientId)),!this.useHttpBasicAuth&&this.dummyClientSecret&&(o=o.set("client_secret",this.dummyClientSecret)),this.customQueryParams)for(let s of Object.getOwnPropertyNames(this.customQueryParams))o=o.set(s,this.customQueryParams[s]);this.http.post(this.tokenEndpoint,o,{headers:a}).pipe($e(s=>this.oidc&&s.id_token?Ot(this.processIdToken(s.id_token,s.access_token,!0)).pipe(Be(l=>this.storeIdToken(l)),se(()=>s)):Q(s))).subscribe(s=>{this.debug("refresh tokenResponse",s),this.storeAccessTokenResponse(s.access_token,s.refresh_token,s.expires_in||this.fallbackAccessTokenExpirationTimeInSec,s.scope,this.extractRecognizedCustomParameters(s)),this.eventsSubject.next(new Rr("token_received")),this.eventsSubject.next(new Rr("token_refreshed")),i(s)},s=>{this.logger.error("Error refreshing token",s),this.eventsSubject.next(new Ui("token_refresh_error",s)),r(s)})})}removeSilentRefreshEventListener(){this.silentRefreshPostMessageEventListener&&(window.removeEventListener("message",this.silentRefreshPostMessageEventListener),this.silentRefreshPostMessageEventListener=null)}setupSilentRefreshEventListener(){this.removeSilentRefreshEventListener(),this.silentRefreshPostMessageEventListener=i=>{let r=this.processMessageEventMessage(i);this.checkOrigin&&i.origin!==location.origin&&console.error("wrong origin requested silent refresh!"),this.tryLogin({customHashFragment:r,preventClearHashAfterLogin:!0,customRedirectUri:this.silentRefreshRedirectUri||this.redirectUri}).catch(o=>this.debug("tryLogin during silent refresh failed",o))},window.addEventListener("message",this.silentRefreshPostMessageEventListener)}silentRefresh(i={},r=!0){let o=this.getIdentityClaims()||{};if(this.useIdTokenHintForSilentRefresh&&this.hasValidIdToken()&&(i.id_token_hint=this.getIdToken()),!this.validateUrlForHttps(this.loginUrl))throw new Error("loginUrl must use HTTPS (with TLS), or config value for property 'requireHttps' must be set to 'false' and allow HTTP (without TLS).");if(typeof this.document>"u")throw new Error("silent refresh is not supported on this platform");let a=this.document.getElementById(this.silentRefreshIFrameName);a&&this.document.body.removeChild(a),this.silentRefreshSubject=o.sub;let s=this.document.createElement("iframe");s.id=this.silentRefreshIFrameName,this.setupSilentRefreshEventListener();let l=this.silentRefreshRedirectUri||this.redirectUri;this.createLoginUrl(null,null,l,r,i).then(f=>{s.setAttribute("src",f),this.silentRefreshShowIFrame||(s.style.display="none"),this.document.body.appendChild(s)});let c=this.events.pipe(ce(f=>f instanceof Ui),gn()),d=this.events.pipe(ce(f=>f.type==="token_received"),gn()),m=Q(new Ui("silent_refresh_timeout",null)).pipe(pa(this.silentRefreshTimeout));return Wu([c,d,m]).pipe(se(f=>{if(f instanceof Ui)throw f.type==="silent_refresh_timeout"?this.eventsSubject.next(f):(f=new Ui("silent_refresh_error",f),this.eventsSubject.next(f)),f;return f.type==="token_received"&&(f=new Rr("silently_refreshed"),this.eventsSubject.next(f)),f})).toPromise()}initImplicitFlowInPopup(i){return this.initLoginFlowInPopup(i)}initLoginFlowInPopup(i){return i=i||{},this.createLoginUrl(null,null,this.silentRefreshRedirectUri,!1,{display:"popup"}).then(r=>new Promise((o,a)=>{let l=null;i.windowRef?i.windowRef&&!i.windowRef.closed&&(l=i.windowRef,l.location.href=r):l=window.open(r,"ngx-oauth2-oidc-login",this.calculatePopupFeatures(i));let c,d=w=>{this.tryLogin({customHashFragment:w,preventClearHashAfterLogin:!0,customRedirectUri:this.silentRefreshRedirectUri}).then(()=>{f(),o(!0)},x=>{f(),a(x)})},m=()=>{(!l||l.closed)&&(f(),a(new Ui("popup_closed",{})))};l?c=window.setInterval(m,500):a(new Ui("popup_blocked",{}));let f=()=>{window.clearInterval(c),window.removeEventListener("storage",v),window.removeEventListener("message",b),l!==null&&l.close(),l=null},b=w=>{let x=this.processMessageEventMessage(w);x&&x!==null?(window.removeEventListener("storage",v),d(x)):console.log("false event firing")},v=w=>{w.key==="auth_hash"&&(window.removeEventListener("message",b),d(w.newValue))};window.addEventListener("message",b),window.addEventListener("storage",v)}))}calculatePopupFeatures(i){let r=i.height||470,o=i.width||500,a=window.screenLeft+(window.outerWidth-o)/2,s=window.screenTop+(window.outerHeight-r)/2;return`location=no,toolbar=no,width=${o},height=${r},top=${s},left=${a}`}processMessageEventMessage(i){let r="#";if(this.silentRefreshMessagePrefix&&(r+=this.silentRefreshMessagePrefix),!i||!i.data||typeof i.data!="string")return;let o=i.data;if(o.startsWith(r))return"#"+o.substr(r.length)}canPerformSessionCheck(){return this.sessionChecksEnabled?this.sessionCheckIFrameUrl?this.getSessionState()?!(typeof this.document>"u"):(console.warn("sessionChecksEnabled is activated but there is no session_state"),!1):(console.warn("sessionChecksEnabled is activated but there is no sessionCheckIFrameUrl"),!1):!1}setupSessionCheckEventListener(){this.removeSessionCheckEventListener(),this.sessionCheckEventListener=i=>{let r=i.origin.toLowerCase(),o=this.issuer.toLowerCase();if(this.debug("sessionCheckEventListener"),!o.startsWith(r)){this.debug("sessionCheckEventListener","wrong origin",r,"expected",o,"event",i);return}switch(i.data){case"unchanged":this.ngZone.run(()=>{this.handleSessionUnchanged()});break;case"changed":this.ngZone.run(()=>{this.handleSessionChange()});break;case"error":this.ngZone.run(()=>{this.handleSessionError()});break}this.debug("got info from session check inframe",i)},this.ngZone.runOutsideAngular(()=>{window.addEventListener("message",this.sessionCheckEventListener)})}handleSessionUnchanged(){this.debug("session check","session unchanged"),this.eventsSubject.next(new Ia("session_unchanged"))}handleSessionChange(){this.eventsSubject.next(new Ia("session_changed")),this.stopSessionCheckTimer(),!this.useSilentRefresh&&this.responseType==="code"?this.refreshToken().then(()=>{this.debug("token refresh after session change worked")}).catch(()=>{this.debug("token refresh did not work after session changed"),this.eventsSubject.next(new Ia("session_terminated")),this.logOut(!0)}):this.silentRefreshRedirectUri?(this.silentRefresh().catch(()=>this.debug("silent refresh failed after session changed")),this.waitForSilentRefreshAfterSessionChange()):(this.eventsSubject.next(new Ia("session_terminated")),this.logOut(!0))}waitForSilentRefreshAfterSessionChange(){this.events.pipe(ce(i=>i.type==="silently_refreshed"||i.type==="silent_refresh_timeout"||i.type==="silent_refresh_error"),gn()).subscribe(i=>{i.type!=="silently_refreshed"&&(this.debug("silent refresh did not work after session changed"),this.eventsSubject.next(new Ia("session_terminated")),this.logOut(!0))})}handleSessionError(){this.stopSessionCheckTimer(),this.eventsSubject.next(new Ia("session_error"))}removeSessionCheckEventListener(){this.sessionCheckEventListener&&(window.removeEventListener("message",this.sessionCheckEventListener),this.sessionCheckEventListener=null)}initSessionCheck(){if(!this.canPerformSessionCheck())return;let i=this.document.getElementById(this.sessionCheckIFrameName);i&&this.document.body.removeChild(i);let r=this.document.createElement("iframe");r.id=this.sessionCheckIFrameName,this.setupSessionCheckEventListener();let o=this.sessionCheckIFrameUrl;r.setAttribute("src",o),r.style.display="none",this.document.body.appendChild(r),this.startSessionCheckTimer()}startSessionCheckTimer(){this.stopSessionCheckTimer(),this.ngZone.runOutsideAngular(()=>{this.sessionCheckTimer=setInterval(this.checkSession.bind(this),this.sessionCheckIntervall)})}stopSessionCheckTimer(){this.sessionCheckTimer&&(clearInterval(this.sessionCheckTimer),this.sessionCheckTimer=null)}checkSession(){let i=this.document.getElementById(this.sessionCheckIFrameName);i||this.logger.warn("checkSession did not find iframe",this.sessionCheckIFrameName);let r=this.getSessionState();r||this.stopSessionCheckTimer();let o=this.clientId+" "+r;i.contentWindow.postMessage(o,this.issuer)}createLoginUrl(){return fn(this,arguments,function*(i="",r="",o="",a=!1,s={}){let l=this,c;o?c=o:c=this.redirectUri;let d=yield this.createAndSaveNonce();if(i?i=d+this.config.nonceStateSeparator+encodeURIComponent(i):i=d,!this.requestAccessToken&&!this.oidc)throw new Error("Either requestAccessToken or oidc or both must be true");this.config.responseType?this.responseType=this.config.responseType:this.oidc&&this.requestAccessToken?this.responseType="id_token token":this.oidc&&!this.requestAccessToken?this.responseType="id_token":this.responseType="token";let m=l.loginUrl.indexOf("?")>-1?"&":"?",f=l.scope;this.oidc&&!f.match(/(^|\s)openid($|\s)/)&&(f="openid "+f);let b=l.loginUrl+m+"response_type="+encodeURIComponent(l.responseType)+"&client_id="+encodeURIComponent(l.clientId)+"&state="+encodeURIComponent(i)+"&redirect_uri="+encodeURIComponent(c)+"&scope="+encodeURIComponent(f);if(this.responseType.includes("code")&&!this.disablePKCE){let[v,w]=yield this.createChallangeVerifierPairForPKCE();this.saveNoncesInLocalStorage&&typeof window.localStorage<"u"?localStorage.setItem("PKCE_verifier",w):this._storage.setItem("PKCE_verifier",w),b+="&code_challenge="+v,b+="&code_challenge_method=S256"}r&&(b+="&login_hint="+encodeURIComponent(r)),l.resource&&(b+="&resource="+encodeURIComponent(l.resource)),l.oidc&&(b+="&nonce="+encodeURIComponent(d)),a&&(b+="&prompt=none");for(let v of Object.keys(s))b+="&"+encodeURIComponent(v)+"="+encodeURIComponent(s[v]);if(this.customQueryParams)for(let v of Object.getOwnPropertyNames(this.customQueryParams))b+="&"+v+"="+encodeURIComponent(this.customQueryParams[v]);return b})}initImplicitFlowInternal(i="",r=""){if(this.inImplicitFlow)return;if(this.inImplicitFlow=!0,!this.validateUrlForHttps(this.loginUrl))throw new Error("loginUrl must use HTTPS (with TLS), or config value for property 'requireHttps' must be set to 'false' and allow HTTP (without TLS).");let o={},a=null;typeof r=="string"?a=r:typeof r=="object"&&(o=r),this.createLoginUrl(i,a,null,!1,o).then(this.config.openUri).catch(s=>{console.error("Error in initImplicitFlow",s),this.inImplicitFlow=!1})}initImplicitFlow(i="",r=""){this.loginUrl!==""?this.initImplicitFlowInternal(i,r):this.events.pipe(ce(o=>o.type==="discovery_document_loaded")).subscribe(()=>this.initImplicitFlowInternal(i,r))}resetImplicitFlow(){this.inImplicitFlow=!1}callOnTokenReceivedIfExists(i){let r=this;if(i.onTokenReceived){let o={idClaims:r.getIdentityClaims(),idToken:r.getIdToken(),accessToken:r.getAccessToken(),state:r.state};i.onTokenReceived(o)}}storeAccessTokenResponse(i,r,o,a,s){if(this._storage.setItem("access_token",i),a&&!Array.isArray(a)?this._storage.setItem("granted_scopes",JSON.stringify(a.split(" "))):a&&Array.isArray(a)&&this._storage.setItem("granted_scopes",JSON.stringify(a)),this._storage.setItem("access_token_stored_at",""+this.dateTimeService.now()),o){let l=o*1e3,d=this.dateTimeService.new().getTime()+l;this._storage.setItem("expires_at",""+d)}r&&this._storage.setItem("refresh_token",r),s&&s.forEach((l,c)=>{this._storage.setItem(c,l)})}tryLogin(i=null){return this.config.responseType==="code"?this.tryLoginCodeFlow(i).then(()=>!0):this.tryLoginImplicitFlow(i)}parseQueryString(i){return!i||i.length===0?{}:(i.charAt(0)==="?"&&(i=i.substr(1)),this.urlHelper.parseQueryString(i))}tryLoginCodeFlow(i=null){return fn(this,null,function*(){i=i||{};let r=i.customHashFragment?i.customHashFragment.substring(1):window.location.search,o=this.getCodePartsFromUrl(r),a=o.code,s=o.state,l=o.session_state;if(!i.preventClearHashAfterLogin){let m=location.origin+location.pathname+location.search.replace(/code=[^&$]*/,"").replace(/scope=[^&$]*/,"").replace(/state=[^&$]*/,"").replace(/session_state=[^&$]*/,"").replace(/^\?&/,"?").replace(/&$/,"").replace(/^\?$/,"").replace(/&+/g,"&").replace(/\?&/,"?").replace(/\?$/,"")+location.hash;history.replaceState(null,window.name,m)}let[c,d]=this.parseState(s);if(this.state=d,o.error){this.debug("error trying to login"),this.handleLoginError(i,o);let m=new Ui("code_error",{},o);return this.eventsSubject.next(m),Promise.reject(m)}if(!i.disableNonceCheck){if(!c)return this.saveRequestedRoute(),Promise.resolve();if(!i.disableOAuth2StateCheck&&!this.validateNonce(c)){let f=new Ui("invalid_nonce_in_state",null);return this.eventsSubject.next(f),Promise.reject(f)}}return this.storeSessionState(l),a&&(yield this.getTokenFromCode(a,i),this.restoreRequestedRoute()),Promise.resolve()})}saveRequestedRoute(){this.config.preserveRequestedRoute&&this._storage.setItem("requested_route",window.location.pathname+window.location.search)}restoreRequestedRoute(){let i=this._storage.getItem("requested_route");i&&history.replaceState(null,"",window.location.origin+i)}getCodePartsFromUrl(i){return!i||i.length===0?this.urlHelper.getHashFragmentParams():(i.charAt(0)==="?"&&(i=i.substr(1)),this.urlHelper.parseQueryString(i))}getTokenFromCode(i,r){let o=new Qn({encoder:new Ud}).set("grant_type","authorization_code").set("code",i).set("redirect_uri",r.customRedirectUri||this.redirectUri);if(!this.disablePKCE){let a;this.saveNoncesInLocalStorage&&typeof window.localStorage<"u"?a=localStorage.getItem("PKCE_verifier"):a=this._storage.getItem("PKCE_verifier"),a?o=o.set("code_verifier",a):console.warn("No PKCE verifier found in oauth storage!")}return this.fetchAndProcessToken(o,r)}fetchAndProcessToken(i,r){r=r||{},this.assertUrlNotNullAndCorrectProtocol(this.tokenEndpoint,"tokenEndpoint");let o=new _r().set("Content-Type","application/x-www-form-urlencoded");if(this.useHttpBasicAuth){let a=btoa(`${this.clientId}:${this.dummyClientSecret}`);o=o.set("Authorization","Basic "+a)}return this.useHttpBasicAuth||(i=i.set("client_id",this.clientId)),!this.useHttpBasicAuth&&this.dummyClientSecret&&(i=i.set("client_secret",this.dummyClientSecret)),new Promise((a,s)=>{if(this.customQueryParams)for(let l of Object.getOwnPropertyNames(this.customQueryParams))i=i.set(l,this.customQueryParams[l]);this.http.post(this.tokenEndpoint,i,{headers:o}).subscribe(l=>{this.debug("refresh tokenResponse",l),this.storeAccessTokenResponse(l.access_token,l.refresh_token,l.expires_in||this.fallbackAccessTokenExpirationTimeInSec,l.scope,this.extractRecognizedCustomParameters(l)),this.oidc&&l.id_token?this.processIdToken(l.id_token,l.access_token,r.disableNonceCheck).then(c=>{this.storeIdToken(c),this.eventsSubject.next(new Rr("token_received")),this.eventsSubject.next(new Rr("token_refreshed")),a(l)}).catch(c=>{this.eventsSubject.next(new Ui("token_validation_error",c)),console.error("Error validating tokens"),console.error(c),s(c)}):(this.eventsSubject.next(new Rr("token_received")),this.eventsSubject.next(new Rr("token_refreshed")),a(l))},l=>{console.error("Error getting token",l),this.eventsSubject.next(new Ui("token_error",l)),s(l)})})}tryLoginImplicitFlow(i=null){i=i||{};let r;i.customHashFragment?r=this.urlHelper.getHashFragmentParams(i.customHashFragment):r=this.urlHelper.getHashFragmentParams(),this.debug("parsed url",r);let o=r.state,[a,s]=this.parseState(o);if(this.state=s,r.error){this.debug("error trying to login"),this.handleLoginError(i,r);let f=new Ui("token_error",{},r);return this.eventsSubject.next(f),Promise.reject(f)}let l=r.access_token,c=r.id_token,d=r.session_state,m=r.scope;if(!this.requestAccessToken&&!this.oidc)return Promise.reject("Either requestAccessToken or oidc (or both) must be true.");if(this.requestAccessToken&&!l||this.requestAccessToken&&!i.disableOAuth2StateCheck&&!o||this.oidc&&!c)return Promise.resolve(!1);if(this.sessionChecksEnabled&&!d&&this.logger.warn("session checks (Session Status Change Notification) were activated in the configuration but the id_token does not contain a session_state claim"),this.requestAccessToken&&!i.disableNonceCheck&&!this.validateNonce(a)){let b=new Ui("invalid_nonce_in_state",null);return this.eventsSubject.next(b),Promise.reject(b)}return this.requestAccessToken&&this.storeAccessTokenResponse(l,null,r.expires_in||this.fallbackAccessTokenExpirationTimeInSec,m),this.oidc?this.processIdToken(c,l,i.disableNonceCheck).then(f=>i.validationHandler?i.validationHandler({accessToken:l,idClaims:f.idTokenClaims,idToken:f.idToken,state:o}).then(()=>f):f).then(f=>(this.storeIdToken(f),this.storeSessionState(d),this.clearHashAfterLogin&&!i.preventClearHashAfterLogin&&this.clearLocationHash(),this.eventsSubject.next(new Rr("token_received")),this.callOnTokenReceivedIfExists(i),this.inImplicitFlow=!1,!0)).catch(f=>(this.eventsSubject.next(new Ui("token_validation_error",f)),this.logger.error("Error validating tokens"),this.logger.error(f),Promise.reject(f))):(this.eventsSubject.next(new Rr("token_received")),this.clearHashAfterLogin&&!i.preventClearHashAfterLogin&&this.clearLocationHash(),this.callOnTokenReceivedIfExists(i),Promise.resolve(!0))}parseState(i){let r=i,o="";if(i){let a=i.indexOf(this.config.nonceStateSeparator);a>-1&&(r=i.substr(0,a),o=i.substr(a+this.config.nonceStateSeparator.length))}return[r,o]}validateNonce(i){let r;return this.saveNoncesInLocalStorage&&typeof window.localStorage<"u"?r=localStorage.getItem("nonce"):r=this._storage.getItem("nonce"),r!==i?(console.error("Validating access_token failed, wrong state/nonce.",r,i),!1):!0}storeIdToken(i){this._storage.setItem("id_token",i.idToken),this._storage.setItem("id_token_claims_obj",i.idTokenClaimsJson),this._storage.setItem("id_token_expires_at",""+i.idTokenExpiresAt),this._storage.setItem("id_token_stored_at",""+this.dateTimeService.now())}storeSessionState(i){this._storage.setItem("session_state",i)}getSessionState(){return this._storage.getItem("session_state")}handleLoginError(i,r){i.onLoginError&&i.onLoginError(r),this.clearHashAfterLogin&&!i.preventClearHashAfterLogin&&this.clearLocationHash()}getClockSkewInMsec(i=6e5){return!this.clockSkewInSec&&this.clockSkewInSec!==0?i:this.clockSkewInSec*1e3}processIdToken(i,r,o=!1){let a=i.split("."),s=this.padBase64(a[0]),l=mL(s),c=JSON.parse(l),d=this.padBase64(a[1]),m=mL(d),f=JSON.parse(m),b;if(this.saveNoncesInLocalStorage&&typeof window.localStorage<"u"?b=localStorage.getItem("nonce"):b=this._storage.getItem("nonce"),Array.isArray(f.aud)){if(f.aud.every(W=>W!==this.clientId)){let W="Wrong audience: "+f.aud.join(",");return this.logger.warn(W),Promise.reject(W)}}else if(f.aud!==this.clientId){let W="Wrong audience: "+f.aud;return this.logger.warn(W),Promise.reject(W)}if(!f.sub){let W="No sub claim in id_token";return this.logger.warn(W),Promise.reject(W)}if(this.sessionChecksEnabled&&this.silentRefreshSubject&&this.silentRefreshSubject!==f.sub){let W=`After refreshing, we got an id_token for another user (sub). Expected sub: ${this.silentRefreshSubject}, received sub: ${f.sub}`;return this.logger.warn(W),Promise.reject(W)}if(!f.iat){let W="No iat claim in id_token";return this.logger.warn(W),Promise.reject(W)}if(!this.skipIssuerCheck&&f.iss!==this.issuer){let W="Wrong issuer: "+f.iss;return this.logger.warn(W),Promise.reject(W)}if(!o&&f.nonce!==b){let W="Wrong nonce: "+f.nonce;return this.logger.warn(W),Promise.reject(W)}if(Object.prototype.hasOwnProperty.call(this,"responseType")&&(this.responseType==="code"||this.responseType==="id_token")&&(this.disableAtHashCheck=!0),!this.disableAtHashCheck&&this.requestAccessToken&&!f.at_hash){let W="An at_hash is needed!";return this.logger.warn(W),Promise.reject(W)}let v=this.dateTimeService.now(),w=f.iat*1e3,x=f.exp*1e3,D=this.getClockSkewInMsec();if(w-D>=v||x+D-this.decreaseExpirationBySec<=v){let W="Token has expired";return console.error(W),console.error({now:v,issuedAtMSec:w,expiresAtMSec:x}),Promise.reject(W)}let P={accessToken:r,idToken:i,jwks:this.jwks,idTokenClaims:f,idTokenHeader:c,loadKeys:()=>this.loadJwks()};return this.disableAtHashCheck?this.checkSignature(P).then(()=>({idToken:i,idTokenClaims:f,idTokenClaimsJson:m,idTokenHeader:c,idTokenHeaderJson:l,idTokenExpiresAt:x})):this.checkAtHash(P).then(W=>{if(!this.disableAtHashCheck&&this.requestAccessToken&&!W){let Z="Wrong at_hash";return this.logger.warn(Z),Promise.reject(Z)}return this.checkSignature(P).then(()=>{let Z=!this.disableAtHashCheck,K={idToken:i,idTokenClaims:f,idTokenClaimsJson:m,idTokenHeader:c,idTokenHeaderJson:l,idTokenExpiresAt:x};return Z?this.checkAtHash(P).then(re=>{if(this.requestAccessToken&&!re){let Ee="Wrong at_hash";return this.logger.warn(Ee),Promise.reject(Ee)}else return K}):K})})}getIdentityClaims(){let i=this._storage.getItem("id_token_claims_obj");return i?JSON.parse(i):null}getGrantedScopes(){let i=this._storage.getItem("granted_scopes");return i?JSON.parse(i):null}getIdToken(){return this._storage?this._storage.getItem("id_token"):null}padBase64(i){for(;i.length%4!==0;)i+="=";return i}getAccessToken(){return this._storage?this._storage.getItem("access_token"):null}getRefreshToken(){return this._storage?this._storage.getItem("refresh_token"):null}getAccessTokenExpiration(){return this._storage.getItem("expires_at")?parseInt(this._storage.getItem("expires_at"),10):null}getAccessTokenStoredAt(){return parseInt(this._storage.getItem("access_token_stored_at"),10)}getIdTokenStoredAt(){return parseInt(this._storage.getItem("id_token_stored_at"),10)}getIdTokenExpiration(){return this._storage.getItem("id_token_expires_at")?parseInt(this._storage.getItem("id_token_expires_at"),10):null}hasValidAccessToken(){if(this.getAccessToken()){let i=this._storage.getItem("expires_at"),r=this.dateTimeService.new();return!(i&&parseInt(i,10)-this.decreaseExpirationBySec=0&&this._storage.getItem(i)!==null?JSON.parse(this._storage.getItem(i)):null}authorizationHeader(){return"Bearer "+this.getAccessToken()}logOut(i={},r=""){let o=!1;typeof i=="boolean"&&(o=i,i={});let a=this.getIdToken();if(this._storage.removeItem("access_token"),this._storage.removeItem("id_token"),this._storage.removeItem("refresh_token"),this.saveNoncesInLocalStorage?(localStorage.removeItem("nonce"),localStorage.removeItem("PKCE_verifier")):(this._storage.removeItem("nonce"),this._storage.removeItem("PKCE_verifier")),this._storage.removeItem("expires_at"),this._storage.removeItem("id_token_claims_obj"),this._storage.removeItem("id_token_expires_at"),this._storage.removeItem("id_token_stored_at"),this._storage.removeItem("access_token_stored_at"),this._storage.removeItem("granted_scopes"),this._storage.removeItem("session_state"),this.config.customTokenParameters&&this.config.customTokenParameters.forEach(l=>this._storage.removeItem(l)),this.silentRefreshSubject=null,this.eventsSubject.next(new Ia("logout")),!this.logoutUrl||o)return;let s;if(!this.validateUrlForHttps(this.logoutUrl))throw new Error("logoutUrl must use HTTPS (with TLS), or config value for property 'requireHttps' must be set to 'false' and allow HTTP (without TLS).");if(this.logoutUrl.indexOf("{{")>-1)s=this.logoutUrl.replace(/\{\{id_token\}\}/,encodeURIComponent(a)).replace(/\{\{client_id\}\}/,encodeURIComponent(this.clientId));else{let l=new Qn({encoder:new Ud});a&&(l=l.set("id_token_hint",a));let c=this.postLogoutRedirectUri||this.redirectUriAsPostLogoutRedirectUriFallback&&this.redirectUri||"";c&&(l=l.set("post_logout_redirect_uri",c),r&&(l=l.set("state",r)));for(let d in i)l=l.set(d,i[d]);s=this.logoutUrl+(this.logoutUrl.indexOf("?")>-1?"&":"?")+l.toString()}this.config.openUri(s)}createAndSaveNonce(){let i=this;return this.createNonce().then(function(r){return i.saveNoncesInLocalStorage&&typeof window.localStorage<"u"?localStorage.setItem("nonce",r):i._storage.setItem("nonce",r),r})}ngOnDestroy(){this.clearAccessTokenTimer(),this.clearIdTokenTimer(),this.removeSilentRefreshEventListener();let i=this.document.getElementById(this.silentRefreshIFrameName);i&&i.remove(),this.stopSessionCheckTimer(),this.removeSessionCheckEventListener();let r=this.document.getElementById(this.sessionCheckIFrameName);r&&r.remove()}createNonce(){return new Promise(i=>{if(this.rngUrl)throw new Error("createNonce with rng-web-api has not been implemented so far");let r="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-._~",o=45,a="",s=typeof self>"u"?null:self.crypto||self.msCrypto;if(s){let l=new Uint8Array(o);s.getRandomValues(l),l.map||(l.map=Array.prototype.map),l=l.map(c=>r.charCodeAt(c%r.length)),a=String.fromCharCode.apply(null,l)}else for(;0o.type==="discovery_document_loaded")).subscribe(()=>this.initCodeFlowInternal(i,r))}initCodeFlowInternal(i="",r={}){if(!this.validateUrlForHttps(this.loginUrl))throw new Error("loginUrl must use HTTPS (with TLS), or config value for property 'requireHttps' must be set to 'false' and allow HTTP (without TLS).");let o={},a=null;typeof r=="string"?a=r:typeof r=="object"&&(o=r),this.createLoginUrl(i,a,null,!1,o).then(this.config.openUri).catch(s=>{console.error("Error in initAuthorizationCodeFlow"),console.error(s)})}createChallangeVerifierPairForPKCE(){return fn(this,null,function*(){if(!this.crypto)throw new Error("PKCE support for code flow needs a CryptoHander. Did you import the OAuthModule using forRoot() ?");let i=yield this.createNonce(),r=yield this.crypto.calcHash(i,"sha-256");return[hL(r),i]})}extractRecognizedCustomParameters(i){let r=new Map;return this.config.customTokenParameters&&this.config.customTokenParameters.forEach(o=>{i[o]&&r.set(o,JSON.stringify(i[o]))}),r}revokeTokenAndLogout(i={},r=!1){let o=this.revocationEndpoint,a=this.getAccessToken(),s=this.getRefreshToken();if(!a)return Promise.resolve();let l=new Qn({encoder:new Ud}),c=new _r().set("Content-Type","application/x-www-form-urlencoded");if(this.useHttpBasicAuth){let d=btoa(`${this.clientId}:${this.dummyClientSecret}`);c=c.set("Authorization","Basic "+d)}if(this.useHttpBasicAuth||(l=l.set("client_id",this.clientId)),!this.useHttpBasicAuth&&this.dummyClientSecret&&(l=l.set("client_secret",this.dummyClientSecret)),this.customQueryParams)for(let d of Object.getOwnPropertyNames(this.customQueryParams))l=l.set(d,this.customQueryParams[d]);return new Promise((d,m)=>{let f,b;if(a){let v=l.set("token",a).set("token_type_hint","access_token");f=this.http.post(o,v,{headers:c})}else f=Q(null);if(s){let v=l.set("token",s).set("token_type_hint","refresh_token");b=this.http.post(o,v,{headers:c})}else b=Q(null);r&&(f=f.pipe(fi(v=>v.status===0?Q(null):Wn(v))),b=b.pipe(fi(v=>v.status===0?Q(null):Wn(v)))),co([f,b]).subscribe(v=>{this.logOut(i),d(v),this.logger.info("Token successfully revoked")},v=>{this.logger.error("Error revoking token",v),this.eventsSubject.next(new Ui("token_revoke_error",v)),m(v)})})}clearLocationHash(){location.hash!=""&&(location.hash="")}};n.\u0275fac=function(r){return new(r||n)(pe(ae),pe(Yr),pe(A0,8),pe(O0,8),pe($m,8),pe(pL),pe(I0),pe(R0,8),pe(ge),pe(jf))},n.\u0275prov=O({token:n,factory:n.\u0275fac});let t=n;return t})(),P0=class{},mk=class{handleError(n){return Wn(n)}},jK=(()=>{let n=class n{constructor(i,r,o){this.oAuthService=i,this.errorHandler=r,this.moduleConfig=o}checkUrl(i){return this.moduleConfig.resourceServer.customUrlValidation?this.moduleConfig.resourceServer.customUrlValidation(i):this.moduleConfig.resourceServer.allowedUrls?!!this.moduleConfig.resourceServer.allowedUrls.find(r=>i.toLowerCase().startsWith(r.toLowerCase())):!0}intercept(i,r){let o=i.url.toLowerCase();return!this.moduleConfig||!this.moduleConfig.resourceServer||!this.checkUrl(o)?r.handle(i):this.moduleConfig.resourceServer.sendAccessToken?Je(Q(this.oAuthService.getAccessToken()).pipe(ce(s=>!!s)),this.oAuthService.events.pipe(ce(s=>s.type==="token_received"),Gw(this.oAuthService.waitForTokenInMsec||0),fi(()=>Q(null)),se(()=>this.oAuthService.getAccessToken()))).pipe(lt(1),Mt(s=>{if(s){let l="Bearer "+s,c=i.headers.set("Authorization",l);i=i.clone({headers:c})}return r.handle(i).pipe(fi(l=>this.errorHandler.handleError(l)))})):r.handle(i).pipe(fi(s=>this.errorHandler.handleError(s)))}};n.\u0275fac=function(r){return new(r||n)(pe(Wm),pe(P0),pe(T0,8))},n.\u0275prov=O({token:n,factory:n.\u0275fac});let t=n;return t})();function HK(){return console}function zK(){return typeof sessionStorage<"u"?sessionStorage:new RK}function gL(t=null,n=dk){return zr([Wm,pL,{provide:I0,useFactory:HK},{provide:A0,useFactory:zK},{provide:O0,useClass:n},{provide:R0,useClass:BK},{provide:P0,useClass:mk},{provide:T0,useValue:t},{provide:E1,useClass:jK,multi:!0},{provide:jf,useClass:OK}])}var UK=["mat-internal-form-field",""],$K=["*"],Gm=(()=>{class t{labelPosition;static \u0275fac=function(i){return new(i||t)};static \u0275cmp=E({type:t,selectors:[["div","mat-internal-form-field",""]],hostAttrs:[1,"mdc-form-field","mat-internal-form-field"],hostVars:2,hostBindings:function(i,r){i&2&&G("mdc-form-field--align-end",r.labelPosition==="before")},inputs:{labelPosition:"labelPosition"},attrs:UK,ngContentSelectors:$K,decls:1,vars:0,template:function(i,r){i&1&&(Me(),oe(0))},styles:[`.mat-internal-form-field{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;display:inline-flex;align-items:center;vertical-align:middle}.mat-internal-form-field>label{margin-left:0;margin-right:auto;padding-left:4px;padding-right:0;order:0}[dir=rtl] .mat-internal-form-field>label{margin-left:auto;margin-right:0;padding-left:0;padding-right:4px}.mdc-form-field--align-end>label{margin-left:auto;margin-right:0;padding-left:0;padding-right:4px;order:-1}[dir=rtl] .mdc-form-field--align-end .mdc-form-field--align-end label{margin-left:0;margin-right:auto;padding-left:4px;padding-right:0} +`],encapsulation:2,changeDetection:0})}return t})();var hk;try{hk=typeof Intl<"u"&&Intl.v8BreakIterator}catch{hk=!1}var qe=(()=>{class t{_platformId=u(Ks);isBrowser=this._platformId?U2(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||hk)&&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(i){return new(i||t)};static \u0275prov=O({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();function al(t){return Array.isArray(t)?t:[t]}var _L=new Set,$d,qm=(()=>{class t{_platform=u(qe);_nonce=u(gm,{optional:!0});_matchMedia;constructor(){this._matchMedia=this._platform.isBrowser&&window.matchMedia?window.matchMedia.bind(window):GK}matchMedia(e){return(this._platform.WEBKIT||this._platform.BLINK)&&WK(e,this._nonce),this._matchMedia(e)}static \u0275fac=function(i){return new(i||t)};static \u0275prov=O({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();function WK(t,n){if(!_L.has(t))try{$d||($d=document.createElement("style"),n&&$d.setAttribute("nonce",n),$d.setAttribute("type","text/css"),document.head.appendChild($d)),$d.sheet&&($d.sheet.insertRule(`@media ${t} {body{ }}`,0),_L.add(t))}catch(e){console.error(e)}}function GK(t){return{matches:t==="all"||t==="",media:t,addListener:()=>{},removeListener:()=>{}}}var sl=(()=>{class t{_mediaMatcher=u(qm);_zone=u(ae);_queries=new Map;_destroySubject=new z;constructor(){}ngOnDestroy(){this._destroySubject.next(),this._destroySubject.complete()}isMatched(e){return bL(al(e)).some(r=>this._registerQuery(r).mql.matches)}observe(e){let r=bL(al(e)).map(a=>this._registerQuery(a).observable),o=co(r);return o=mo(o.pipe(lt(1)),o.pipe(Ya(1),Rt(0))),o.pipe(se(a=>{let s={matches:!1,breakpoints:{}};return a.forEach(({matches:l,query:c})=>{s.matches=s.matches||l,s.breakpoints[c]=l}),s}))}_registerQuery(e){if(this._queries.has(e))return this._queries.get(e);let i=this._mediaMatcher.matchMedia(e),o={observable:new Fe(a=>{let s=l=>this._zone.run(()=>a.next(l));return i.addListener(s),()=>{i.removeListener(s)}}).pipe(He(i),se(({matches:a})=>({query:e,matches:a})),Te(this._destroySubject)),mql:i};return this._queries.set(e,o),o}static \u0275fac=function(i){return new(i||t)};static \u0275prov=O({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();function bL(t){return t.map(n=>n.split(",")).reduce((n,e)=>n.concat(e)).map(n=>n.trim())}var F0={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 qK=new T("MATERIAL_ANIMATIONS");var vL=null;function pk(){return u(qK,{optional:!0})?.animationsDisabled||u(Yp,{optional:!0})==="NoopAnimations"?"di-disabled":(vL??=u(qm).matchMedia("(prefers-reduced-motion)").matches,vL?"reduced-motion":"enabled")}function Ye(){return pk()!=="enabled"}function Wd(t){return t.buttons===0||t.detail===0}function Gd(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 fk;function yL(){if(fk==null){let t=typeof document<"u"?document.head:null;fk=!!(t&&(t.createShadowRoot||t.attachShadow))}return fk}function gk(t){if(yL()){let n=t.getRootNode?t.getRootNode():null;if(typeof ShadowRoot<"u"&&ShadowRoot&&n instanceof ShadowRoot)return n}return null}function _o(){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 Kn(t){return t.composedPath?t.composedPath()[0]:t.target}var zf;function xL(){if(zf==null&&typeof window<"u")try{window.addEventListener("test",null,Object.defineProperty({},"passive",{get:()=>zf=!0}))}finally{zf=zf||!1}return zf}function rc(t){return xL()?t:!!t.capture}function Ln(t,n=0){return N0(t)?Number(t):arguments.length===2?n:0}function N0(t){return!isNaN(parseFloat(t))&&!isNaN(Number(t))}function Pr(t){return t instanceof q?t.nativeElement:t}var CL=new T("cdk-input-modality-detector-options"),wL={ignoreKeys:[18,17,224,91,16]},DL=650,_k={passive:!0,capture:!0},EL=(()=>{class t{_platform=u(qe);_listenerCleanups;modalityDetected;modalityChanged;get mostRecentModality(){return this._modality.value}_mostRecentTarget=null;_modality=new tt(null);_options;_lastTouchMs=0;_onKeydown=e=>{this._options?.ignoreKeys?.some(i=>i===e.keyCode)||(this._modality.next("keyboard"),this._mostRecentTarget=Kn(e))};_onMousedown=e=>{Date.now()-this._lastTouchMs{if(Gd(e)){this._modality.next("keyboard");return}this._lastTouchMs=Date.now(),this._modality.next("touch"),this._mostRecentTarget=Kn(e)};constructor(){let e=u(ae),i=u(ge),r=u(CL,{optional:!0});if(this._options=M(M({},wL),r),this.modalityDetected=this._modality.pipe(Ya(1)),this.modalityChanged=this.modalityDetected.pipe(Sn()),this._platform.isBrowser){let o=u(cn).createRenderer(null,null);this._listenerCleanups=e.runOutsideAngular(()=>[o.listen(i,"keydown",this._onKeydown,_k),o.listen(i,"mousedown",this._onMousedown,_k),o.listen(i,"touchstart",this._onTouchstart,_k)])}}ngOnDestroy(){this._modality.complete(),this._listenerCleanups?.forEach(e=>e())}static \u0275fac=function(i){return new(i||t)};static \u0275prov=O({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),Uf=(function(t){return t[t.IMMEDIATE=0]="IMMEDIATE",t[t.EVENTUAL=1]="EVENTUAL",t})(Uf||{}),ML=new T("cdk-focus-monitor-default-options"),L0=rc({passive:!0,capture:!0}),Yt=(()=>{class t{_ngZone=u(ae);_platform=u(qe);_inputModalityDetector=u(EL);_origin=null;_lastFocusOrigin;_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=u(ge);_stopInputModalityDetector=new z;constructor(){let e=u(ML,{optional:!0});this._detectionMode=e?.detectionMode||Uf.IMMEDIATE}_rootNodeFocusAndBlurListener=e=>{let i=Kn(e);for(let r=i;r;r=r.parentElement)e.type==="focus"?this._onFocus(e,r):this._onBlur(e,r)};monitor(e,i=!1){let r=Pr(e);if(!this._platform.isBrowser||r.nodeType!==1)return Q();let o=gk(r)||this._document,a=this._elementInfo.get(r);if(a)return i&&(a.checkChildren=!0),a.subject;let s={checkChildren:i,subject:new z,rootNode:o};return this._elementInfo.set(r,s),this._registerGlobalListeners(s),s.subject}stopMonitoring(e){let i=Pr(e),r=this._elementInfo.get(i);r&&(r.subject.complete(),this._setClasses(i),this._elementInfo.delete(i),this._removeGlobalListeners(r))}focusVia(e,i,r){let o=Pr(e),a=this._document.activeElement;o===a?this._getClosestElementsInfo(o).forEach(([s,l])=>this._originChanged(s,i,l)):(this._setOrigin(i),typeof o.focus=="function"&&o.focus(r))}ngOnDestroy(){this._elementInfo.forEach((e,i)=>this.stopMonitoring(i))}_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===Uf.EVENTUAL||!!e?.contains(this._inputModalityDetector._mostRecentTarget)}_setClasses(e,i){e.classList.toggle("cdk-focused",!!i),e.classList.toggle("cdk-touch-focused",i==="touch"),e.classList.toggle("cdk-keyboard-focused",i==="keyboard"),e.classList.toggle("cdk-mouse-focused",i==="mouse"),e.classList.toggle("cdk-program-focused",i==="program")}_setOrigin(e,i=!1){this._ngZone.runOutsideAngular(()=>{if(this._origin=e,this._originFromTouchInteraction=e==="touch"&&i,this._detectionMode===Uf.IMMEDIATE){clearTimeout(this._originTimeoutId);let r=this._originFromTouchInteraction?DL:1;this._originTimeoutId=setTimeout(()=>this._origin=null,r)}})}_onFocus(e,i){let r=this._elementInfo.get(i),o=Kn(e);!r||!r.checkChildren&&i!==o||this._originChanged(i,this._getFocusOrigin(o),r)}_onBlur(e,i){let r=this._elementInfo.get(i);!r||r.checkChildren&&e.relatedTarget instanceof Node&&i.contains(e.relatedTarget)||(this._setClasses(i),this._emitOrigin(r,null))}_emitOrigin(e,i){e.subject.observers.length&&this._ngZone.run(()=>e.subject.next(i))}_registerGlobalListeners(e){if(!this._platform.isBrowser)return;let i=e.rootNode,r=this._rootNodeFocusListenerCount.get(i)||0;r||this._ngZone.runOutsideAngular(()=>{i.addEventListener("focus",this._rootNodeFocusAndBlurListener,L0),i.addEventListener("blur",this._rootNodeFocusAndBlurListener,L0)}),this._rootNodeFocusListenerCount.set(i,r+1),++this._monitoredElementCount===1&&(this._ngZone.runOutsideAngular(()=>{this._getWindow().addEventListener("focus",this._windowFocusListener)}),this._inputModalityDetector.modalityDetected.pipe(Te(this._stopInputModalityDetector)).subscribe(o=>{this._setOrigin(o,!0)}))}_removeGlobalListeners(e){let i=e.rootNode;if(this._rootNodeFocusListenerCount.has(i)){let r=this._rootNodeFocusListenerCount.get(i);r>1?this._rootNodeFocusListenerCount.set(i,r-1):(i.removeEventListener("focus",this._rootNodeFocusAndBlurListener,L0),i.removeEventListener("blur",this._rootNodeFocusAndBlurListener,L0),this._rootNodeFocusListenerCount.delete(i))}--this._monitoredElementCount||(this._getWindow().removeEventListener("focus",this._windowFocusListener),this._stopInputModalityDetector.next(),clearTimeout(this._windowFocusTimeoutId),clearTimeout(this._originTimeoutId))}_originChanged(e,i,r){this._setClasses(e,i),this._emitOrigin(r,i),this._lastFocusOrigin=i}_getClosestElementsInfo(e){let i=[];return this._elementInfo.forEach((r,o)=>{(o===e||r.checkChildren&&o.contains(e))&&i.push([o,r])}),i}_isLastInteractionFromInputLabel(e){let{_mostRecentTarget:i,mostRecentModality:r}=this._inputModalityDetector;if(r!=="mouse"||!i||i===e||e.nodeName!=="INPUT"&&e.nodeName!=="TEXTAREA"||e.disabled)return!1;let o=e.labels;if(o){for(let a=0;a{class t{_elementRef=u(q);_focusMonitor=u(Yt);_monitorSubscription;_focusOrigin=null;cdkFocusChange=new U;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(i=>{this._focusOrigin=i,this.cdkFocusChange.emit(i)})}ngOnDestroy(){this._focusMonitor.stopMonitoring(this._elementRef),this._monitorSubscription&&this._monitorSubscription.unsubscribe()}static \u0275fac=function(i){return new(i||t)};static \u0275dir=F({type:t,selectors:[["","cdkMonitorElementFocus",""],["","cdkMonitorSubtreeFocus",""]],outputs:{cdkFocusChange:"cdkFocusChange"},exportAs:["cdkMonitorFocus"]})}return t})();var V0=new WeakMap,ut=(()=>{class t{_appRef;_injector=u(de);_environmentInjector=u(Wt);load(e){let i=this._appRef=this._appRef||this._injector.get(Gn),r=V0.get(i);r||(r={loaders:new Set,refs:[]},V0.set(i,r),i.onDestroy(()=>{V0.get(i)?.refs.forEach(o=>o.destroy()),V0.delete(i)})),r.loaders.has(e)||(r.loaders.add(e),r.refs.push(Mm(e,{environmentInjector:this._environmentInjector})))}static \u0275fac=function(i){return new(i||t)};static \u0275prov=O({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();var Qr=(()=>{class t{static \u0275fac=function(i){return new(i||t)};static \u0275cmp=E({type:t,selectors:[["ng-component"]],exportAs:["cdkVisuallyHidden"],decls:0,vars:0,template:function(i,r){},styles:[`.cdk-visually-hidden{border:0;clip:rect(0 0 0 0);height:1px;margin:-1px;overflow:hidden;padding:0;position:absolute;width:1px;white-space:nowrap;outline:0;-webkit-appearance:none;-moz-appearance:none;left:0}[dir=rtl] .cdk-visually-hidden{left:auto;right:0} +`],encapsulation:2,changeDetection:0})}return t})();function YK(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(i){return new(i||t)};static \u0275prov=O({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),SL=(()=>{class t{_mutationObserverFactory=u(kL);_observedElements=new Map;_ngZone=u(ae);constructor(){}ngOnDestroy(){this._observedElements.forEach((e,i)=>this._cleanupObserver(i))}observe(e){let i=Pr(e);return new Fe(r=>{let a=this._observeElement(i).pipe(se(s=>s.filter(l=>!YK(l))),ce(s=>!!s.length)).subscribe(s=>{this._ngZone.run(()=>{r.next(s)})});return()=>{a.unsubscribe(),this._unobserveElement(i)}})}_observeElement(e){return this._ngZone.runOutsideAngular(()=>{if(this._observedElements.has(e))this._observedElements.get(e).count++;else{let i=new z,r=this._mutationObserverFactory.create(o=>i.next(o));r&&r.observe(e,{characterData:!0,childList:!0,subtree:!0}),this._observedElements.set(e,{observer:r,stream:i,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:i,stream:r}=this._observedElements.get(e);i&&i.disconnect(),r.complete(),this._observedElements.delete(e)}}static \u0275fac=function(i){return new(i||t)};static \u0275prov=O({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),Wf=(()=>{class t{_contentObserver=u(SL);_elementRef=u(q);event=new U;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=Ln(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(Rt(this.debounce)):e).subscribe(this.event)}_unsubscribe(){this._currentSubscription?.unsubscribe()}static \u0275fac=function(i){return new(i||t)};static \u0275dir=F({type:t,selectors:[["","cdkObserveContent",""]],inputs:{disabled:[2,"cdkObserveContentDisabled","disabled",V],debounce:"debounce"},outputs:{event:"cdkObserveContent"},exportAs:["cdkObserveContent"]})}return t})(),Ym=(()=>{class t{static \u0275fac=function(i){return new(i||t)};static \u0275mod=ee({type:t});static \u0275inj=J({providers:[kL]})}return t})();var ac=(()=>{class t{_platform=u(qe);constructor(){}isDisabled(e){return e.hasAttribute("disabled")}isVisible(e){return KK(e)&&getComputedStyle(e).visibility==="visible"}isTabbable(e){if(!this._platform.isBrowser)return!1;let i=QK(rZ(e));if(i&&(TL(i)===-1||!this.isVisible(i)))return!1;let r=e.nodeName.toLowerCase(),o=TL(e);return e.hasAttribute("contenteditable")?o!==-1:r==="iframe"||r==="object"||this._platform.WEBKIT&&this._platform.IOS&&!iZ(e)?!1:r==="audio"?e.hasAttribute("controls")?o!==-1:!1:r==="video"?o===-1?!1:o!==null?!0:this._platform.FIREFOX||e.hasAttribute("controls"):e.tabIndex>=0}isFocusable(e,i){return nZ(e)&&!this.isDisabled(e)&&(i?.ignoreVisibility||this.isVisible(e))}static \u0275fac=function(i){return new(i||t)};static \u0275prov=O({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();function QK(t){try{return t.frameElement}catch{return null}}function KK(t){return!!(t.offsetWidth||t.offsetHeight||typeof t.getClientRects=="function"&&t.getClientRects().length)}function ZK(t){let n=t.nodeName.toLowerCase();return n==="input"||n==="select"||n==="button"||n==="textarea"}function XK(t){return eZ(t)&&t.type=="hidden"}function JK(t){return tZ(t)&&t.hasAttribute("href")}function eZ(t){return t.nodeName.toLowerCase()=="input"}function tZ(t){return t.nodeName.toLowerCase()=="a"}function OL(t){if(!t.hasAttribute("tabindex")||t.tabIndex===void 0)return!1;let n=t.getAttribute("tabindex");return!!(n&&!isNaN(parseInt(n,10)))}function TL(t){if(!OL(t))return null;let n=parseInt(t.getAttribute("tabindex")||"",10);return isNaN(n)?-1:n}function iZ(t){let n=t.nodeName.toLowerCase(),e=n==="input"&&t.type;return e==="text"||e==="password"||n==="select"||n==="textarea"}function nZ(t){return XK(t)?!1:ZK(t)||JK(t)||t.hasAttribute("contenteditable")||OL(t)}function rZ(t){return t.ownerDocument&&t.ownerDocument.defaultView||window}var B0=class{_element;_checker;_ngZone;_document;_injector;_startAnchor;_endAnchor;_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,i,r,o=!1,a){this._element=n,this._checker=e,this._ngZone=i,this._document=r,this._injector=a,o||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 i=this._getFirstTabbableElement(e);return i?.focus(n),!!i}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 i=0;i=0;i--){let r=e[i].nodeType===this._document.ELEMENT_NODE?this._getLastTabbableElement(e[i]):null;if(r)return r}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?pt(n,{injector:this._injector}):setTimeout(n)}},Qm=(()=>{class t{_checker=u(ac);_ngZone=u(ae);_document=u(ge);_injector=u(de);constructor(){u(ut).load(Qr)}create(e,i=!1){return new B0(e,this._checker,this._ngZone,this._document,i,this._injector)}static \u0275fac=function(i){return new(i||t)};static \u0275prov=O({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),vk=(()=>{class t{_elementRef=u(q);_focusTrapFactory=u(Qm);focusTrap;_previouslyFocusedElement=null;get enabled(){return this.focusTrap?.enabled||!1}set enabled(e){this.focusTrap&&(this.focusTrap.enabled=e)}autoCapture;constructor(){u(qe).isBrowser&&(this.focusTrap=this._focusTrapFactory.create(this._elementRef.nativeElement,!0))}ngOnDestroy(){this.focusTrap?.destroy(),this._previouslyFocusedElement&&(this._previouslyFocusedElement.focus(),this._previouslyFocusedElement=null)}ngAfterContentInit(){this.focusTrap?.attachAnchors(),this.autoCapture&&this._captureFocus()}ngDoCheck(){this.focusTrap&&!this.focusTrap.hasAttached()&&this.focusTrap.attachAnchors()}ngOnChanges(e){let i=e.autoCapture;i&&!i.firstChange&&this.autoCapture&&this.focusTrap?.hasAttached()&&this._captureFocus()}_captureFocus(){this._previouslyFocusedElement=_o(),this.focusTrap?.focusInitialElementWhenReady()}static \u0275fac=function(i){return new(i||t)};static \u0275dir=F({type:t,selectors:[["","cdkTrapFocus",""]],inputs:{enabled:[2,"cdkTrapFocus","enabled",V],autoCapture:[2,"cdkTrapFocusAutoCapture","autoCapture",V]},exportAs:["cdkTrapFocus"],features:[Ae]})}return t})(),RL=new T("liveAnnouncerElement",{providedIn:"root",factory:PL});function PL(){return null}var FL=new T("LIVE_ANNOUNCER_DEFAULT_OPTIONS"),oZ=0,Gf=(()=>{class t{_ngZone=u(ae);_defaultOptions=u(FL,{optional:!0});_liveElement;_document=u(ge);_previousTimeout;_currentPromise;_currentResolve;constructor(){let e=u(RL,{optional:!0});this._liveElement=e||this._createLiveElement()}announce(e,...i){let r=this._defaultOptions,o,a;return i.length===1&&typeof i[0]=="number"?a=i[0]:[o,a]=i,this.clear(),clearTimeout(this._previousTimeout),o||(o=r&&r.politeness?r.politeness:"polite"),a==null&&r&&(a=r.duration),this._liveElement.setAttribute("aria-live",o),this._liveElement.id&&this._exposeAnnouncerToModals(this._liveElement.id),this._ngZone.runOutsideAngular(()=>(this._currentPromise||(this._currentPromise=new Promise(s=>this._currentResolve=s)),clearTimeout(this._previousTimeout),this._previousTimeout=setTimeout(()=>{this._liveElement.textContent=e,typeof a=="number"&&(this._previousTimeout=setTimeout(()=>this.clear(),a)),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",i=this._document.getElementsByClassName(e),r=this._document.createElement("div");for(let o=0;o .cdk-overlay-container [aria-modal="true"]');for(let r=0;r{class t{_platform=u(qe);_hasCheckedHighContrastMode;_document=u(ge);_breakpointSubscription;constructor(){this._breakpointSubscription=u(sl).observe("(forced-colors: active)").subscribe(()=>{this._hasCheckedHighContrastMode&&(this._hasCheckedHighContrastMode=!1,this._applyBodyHighContrastModeCssClasses())})}getHighContrastMode(){if(!this._platform.isBrowser)return oc.NONE;let e=this._document.createElement("div");e.style.backgroundColor="rgb(1,2,3)",e.style.position="absolute",this._document.body.appendChild(e);let i=this._document.defaultView||window,r=i&&i.getComputedStyle?i.getComputedStyle(e):null,o=(r&&r.backgroundColor||"").replace(/ /g,"");switch(e.remove(),o){case"rgb(0,0,0)":case"rgb(45,50,54)":case"rgb(32,32,32)":return oc.WHITE_ON_BLACK;case"rgb(255,255,255)":case"rgb(255,250,239)":return oc.BLACK_ON_WHITE}return oc.NONE}ngOnDestroy(){this._breakpointSubscription.unsubscribe()}_applyBodyHighContrastModeCssClasses(){if(!this._hasCheckedHighContrastMode&&this._platform.isBrowser&&this._document.body){let e=this._document.body.classList;e.remove(bk,IL,AL),this._hasCheckedHighContrastMode=!0;let i=this.getHighContrastMode();i===oc.BLACK_ON_WHITE?e.add(bk,IL):i===oc.WHITE_ON_BLACK&&e.add(bk,AL)}}static \u0275fac=function(i){return new(i||t)};static \u0275prov=O({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),ll=(()=>{class t{constructor(){u(j0)._applyBodyHighContrastModeCssClasses()}static \u0275fac=function(i){return new(i||t)};static \u0275mod=ee({type:t});static \u0275inj=J({imports:[Ym]})}return t})();var yk={},Ze=(()=>{class t{_appId=u(ql);getId(e){return this._appId!=="ng"&&(e+=this._appId),yk.hasOwnProperty(e)||(yk[e]=0),`${e}${yk[e]++}`}static \u0275fac=function(i){return new(i||t)};static \u0275prov=O({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();var aZ=200,H0=class{_letterKeyStream=new z;_items=[];_selectedItemIndex=-1;_pressedLetters=[];_skipPredicateFn;_selectedItem=new z;selectedItem=this._selectedItem;constructor(n,e){let i=typeof e?.debounceInterval=="number"?e.debounceInterval:aZ;e?.skipPredicate&&(this._skipPredicateFn=e.skipPredicate),this.setItems(n),this._setupKeyHandler(i)}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)),Rt(n),ce(()=>this._pressedLetters.length>0),se(()=>this._pressedLetters.join("").toLocaleUpperCase())).subscribe(e=>{for(let i=1;it[e]):t.altKey||t.shiftKey||t.ctrlKey||t.metaKey}var Km=class{_items;_activeItemIndex=he(-1);_activeItem=he(null);_wrap=!1;_typeaheadSubscription=ke.EMPTY;_itemChangesSubscription;_vertical=!0;_horizontal;_allowedModifierKeys=[];_homeAndEnd=!1;_pageUpAndDown={enabled:!1,delta:10};_effectRef;_typeahead;_skipPredicateFn=n=>n.disabled;constructor(n,e){this._items=n,n instanceof pr?this._itemChangesSubscription=n.changes.subscribe(i=>this._itemsChanged(i.toArray())):is(n)&&(this._effectRef=Ar(()=>this._itemsChanged(n()),{injector:e}))}tabOut=new z;change=new z;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 H0(e,{debounceInterval:typeof n=="number"?n:void 0,skipPredicate:i=>this._skipPredicateFn(i)}),this._typeaheadSubscription=this._typeahead.selectedItem.subscribe(i=>{this.setActiveItem(i)}),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,r=["altKey","ctrlKey","metaKey","shiftKey"].every(o=>!n[o]||this._allowedModifierKeys.indexOf(o)>-1);switch(e){case 9:this.tabOut.next();return;case 40:if(this._vertical&&r){this.setNextItemActive();break}else return;case 38:if(this._vertical&&r){this.setPreviousItemActive();break}else return;case 39:if(this._horizontal&&r){this._horizontal==="rtl"?this.setPreviousItemActive():this.setNextItemActive();break}else return;case 37:if(this._horizontal&&r){this._horizontal==="rtl"?this.setNextItemActive():this.setPreviousItemActive();break}else return;case 36:if(this._homeAndEnd&&r){this.setFirstItemActive();break}else return;case 35:if(this._homeAndEnd&&r){this.setLastItemActive();break}else return;case 33:if(this._pageUpAndDown.enabled&&r){let o=this._activeItemIndex()-this._pageUpAndDown.delta;this._setActiveItemByIndex(o>0?o:0,1);break}else return;case 34:if(this._pageUpAndDown.enabled&&r){let o=this._activeItemIndex()+this._pageUpAndDown.delta,a=this._getItemsArray().length;this._setActiveItemByIndex(o-1&&i!==this._activeItemIndex()&&(this._activeItemIndex.set(i),this._typeahead?.setCurrentSelectedItemIndex(i))}}};var qd=class extends Km{setActiveItem(n){this.activeItem&&this.activeItem.setInactiveStyles(),super.setActiveItem(n),this.activeItem&&this.activeItem.setActiveStyles()}};var bs=class extends Km{_origin="program";setFocusOrigin(n){return this._origin=n,this}setActiveItem(n){super.setActiveItem(n),this.activeItem&&this.activeItem.focus(this._origin)}};var BL=" ";function Zm(t,n,e){let i=W0(t,n);e=e.trim(),!i.some(r=>r.trim()===e)&&(i.push(e),t.setAttribute(n,i.join(BL)))}function sc(t,n,e){let i=W0(t,n);e=e.trim();let r=i.filter(o=>o!==e);r.length?t.setAttribute(n,r.join(BL)):t.removeAttribute(n)}function W0(t,n){return t.getAttribute(n)?.match(/\S+/g)??[]}var jL="cdk-describedby-message",$0="cdk-describedby-host",Ck=0,Xm=(()=>{class t{_platform=u(qe);_document=u(ge);_messageRegistry=new Map;_messagesContainer=null;_id=`${Ck++}`;constructor(){u(ut).load(Qr),this._id=u(ql)+"-"+Ck++}describe(e,i,r){if(!this._canBeDescribed(e,i))return;let o=xk(i,r);typeof i!="string"?(VL(i,this._id),this._messageRegistry.set(o,{messageElement:i,referenceCount:0})):this._messageRegistry.has(o)||this._createMessageElement(i,r),this._isElementDescribedByMessage(e,o)||this._addMessageReference(e,o)}removeDescription(e,i,r){if(!i||!this._isElementNode(e))return;let o=xk(i,r);if(this._isElementDescribedByMessage(e,o)&&this._removeMessageReference(e,o),typeof i=="string"){let a=this._messageRegistry.get(o);a&&a.referenceCount===0&&this._deleteMessageElement(o)}this._messagesContainer?.childNodes.length===0&&(this._messagesContainer.remove(),this._messagesContainer=null)}ngOnDestroy(){let e=this._document.querySelectorAll(`[${$0}="${this._id}"]`);for(let i=0;ir.indexOf(jL)!=0);e.setAttribute("aria-describedby",i.join(" "))}_addMessageReference(e,i){let r=this._messageRegistry.get(i);Zm(e,"aria-describedby",r.messageElement.id),e.setAttribute($0,this._id),r.referenceCount++}_removeMessageReference(e,i){let r=this._messageRegistry.get(i);r.referenceCount--,sc(e,"aria-describedby",r.messageElement.id),e.removeAttribute($0)}_isElementDescribedByMessage(e,i){let r=W0(e,"aria-describedby"),o=this._messageRegistry.get(i),a=o&&o.messageElement.id;return!!a&&r.indexOf(a)!=-1}_canBeDescribed(e,i){if(!this._isElementNode(e))return!1;if(i&&typeof i=="object")return!0;let r=i==null?"":`${i}`.trim(),o=e.getAttribute("aria-label");return r?!o||o.trim()!==r:!1}_isElementNode(e){return e.nodeType===this._document.ELEMENT_NODE}static \u0275fac=function(i){return new(i||t)};static \u0275prov=O({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();function xk(t,n){return typeof t=="string"?`${n||""}/${t}`:t}function VL(t,n){t.id||(t.id=`${jL}-${n}-${Ck++}`)}var sZ=new T("cdk-dir-doc",{providedIn:"root",factory:lZ});function lZ(){return u(ge)}var cZ=/^(ar|ckb|dv|he|iw|fa|nqo|ps|sd|ug|ur|yi|.*[-_](Adlm|Arab|Hebr|Nkoo|Rohg|Thaa))(?!.*[-_](Latn|Cyrl)($|-|_))($|-|_)/i;function wk(t){let n=t?.toLowerCase()||"";return n==="auto"&&typeof navigator<"u"&&navigator?.language?cZ.test(navigator.language)?"rtl":"ltr":n==="rtl"?"rtl":"ltr"}var Vt=(()=>{class t{get value(){return this.valueSignal()}valueSignal=he("ltr");change=new U;constructor(){let e=u(sZ,{optional:!0});if(e){let i=e.body?e.body.dir:null,r=e.documentElement?e.documentElement.dir:null;this.valueSignal.set(wk(i||r||"ltr"))}}ngOnDestroy(){this.change.complete()}static \u0275fac=function(i){return new(i||t)};static \u0275prov=O({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();var zL=(()=>{class t{_isInitialized=!1;_rawDir;change=new U;get dir(){return this.valueSignal()}set dir(e){let i=this.valueSignal();this.valueSignal.set(wk(e)),this._rawDir=e,i!==this.valueSignal()&&this._isInitialized&&this.change.emit(this.valueSignal())}get value(){return this.dir}valueSignal=he("ltr");ngAfterContentInit(){this._isInitialized=!0}ngOnDestroy(){this.change.complete()}static \u0275fac=function(i){return new(i||t)};static \u0275dir=F({type:t,selectors:[["","dir",""]],hostVars:1,hostBindings:function(i,r){i&2&&X("dir",r._rawDir)},inputs:{dir:"dir"},outputs:{change:"dirChange"},exportAs:["dir"],features:[Ce([{provide:Vt,useExisting:t}])]})}return t})(),vs=(()=>{class t{static \u0275fac=function(i){return new(i||t)};static \u0275mod=ee({type:t});static \u0275inj=J({})}return t})();var we=(()=>{class t{constructor(){u(j0)._applyBodyHighContrastModeCssClasses()}static \u0275fac=function(i){return new(i||t)};static \u0275mod=ee({type:t});static \u0275inj=J({imports:[vs,vs]})}return t})();var cl=class{_defaultMatcher;ngControl;_parentFormGroup;_parentForm;_stateChanges;errorState=!1;matcher;constructor(n,e,i,r,o){this._defaultMatcher=n,this.ngControl=e,this._parentFormGroup=i,this._parentForm=r,this._stateChanges=o}updateErrorState(){let n=this.errorState,e=this._parentFormGroup||this._parentForm,i=this.matcher||this._defaultMatcher,r=this.ngControl?this.ngControl.control:null,o=i?.isErrorState(r,e)??!1;o!==n&&(this.errorState=o,this._stateChanges.next())}};var ys=new T("MAT_DATE_LOCALE",{providedIn:"root",factory:uZ});function uZ(){return u(el)}var Jm="Method not implemented",Li=class{locale;_localeChanges=new z;localeChanges=this._localeChanges;setTime(n,e,i,r){throw new Error(Jm)}getHours(n){throw new Error(Jm)}getMinutes(n){throw new Error(Jm)}getSeconds(n){throw new Error(Jm)}parseTime(n,e){throw new Error(Jm)}addSeconds(n,e){throw new Error(Jm)}getValidDateOrNull(n){return this.isDateInstance(n)&&this.isValid(n)?n:null}deserialize(n){return n==null||this.isDateInstance(n)&&this.isValid(n)?n:this.invalid()}setLocale(n){this.locale=n,this._localeChanges.next()}compareDate(n,e){return this.getYear(n)-this.getYear(e)||this.getMonth(n)-this.getMonth(e)||this.getDate(n)-this.getDate(e)}compareTime(n,e){return this.getHours(n)-this.getHours(e)||this.getMinutes(n)-this.getMinutes(e)||this.getSeconds(n)-this.getSeconds(e)}sameDate(n,e){if(n&&e){let i=this.isValid(n),r=this.isValid(e);return i&&r?!this.compareDate(n,e):i==r}return n==e}sameTime(n,e){if(n&&e){let i=this.isValid(n),r=this.isValid(e);return i&&r?!this.compareTime(n,e):i==r}return n==e}clampDate(n,e,i){return e&&this.compareDate(n,e)<0?e:i&&this.compareDate(n,i)>0?i:n}},xs=new T("mat-date-formats");var dl=(()=>{class t{isErrorState(e,i){return!!(e&&e.invalid&&(e.touched||i&&i.submitted))}static \u0275fac=function(i){return new(i||t)};static \u0275prov=O({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();var Di=(()=>{class t{static \u0275fac=function(i){return new(i||t)};static \u0275cmp=E({type:t,selectors:[["structural-styles"]],decls:0,vars:0,template:function(i,r){},styles:[`.mat-focus-indicator{position:relative}.mat-focus-indicator::before{top:0;left:0;right:0;bottom:0;position:absolute;box-sizing:border-box;pointer-events:none;display:var(--mat-focus-indicator-display, none);border-width:var(--mat-focus-indicator-border-width, 3px);border-style:var(--mat-focus-indicator-border-style, solid);border-color:var(--mat-focus-indicator-border-color, transparent);border-radius:var(--mat-focus-indicator-border-radius, 4px)}.mat-focus-indicator:focus::before{content:""}@media(forced-colors: active){html{--mat-focus-indicator-display: block}} +`],encapsulation:2,changeDetection:0})}return t})();var Aa=(function(t){return t[t.NORMAL=0]="NORMAL",t[t.NEGATED=1]="NEGATED",t[t.INVERTED=2]="INVERTED",t})(Aa||{}),G0,Yd;function q0(){if(Yd==null){if(typeof document!="object"||!document||typeof Element!="function"||!Element)return Yd=!1,Yd;if(document.documentElement?.style&&"scrollBehavior"in document.documentElement.style)Yd=!0;else{let t=Element.prototype.scrollTo;t?Yd=!/\{\s*\[native code\]\s*\}/.test(t.toString()):Yd=!1}}return Yd}function eh(){if(typeof document!="object"||!document)return Aa.NORMAL;if(G0==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"),i=e.style;i.width="2px",i.height="1px",t.appendChild(e),document.body.appendChild(t),G0=Aa.NORMAL,t.scrollLeft===0&&(t.scrollLeft=1,G0=t.scrollLeft===0?Aa.NEGATED:Aa.INVERTED),t.remove()}return G0}function Dk(){return typeof __karma__<"u"&&!!__karma__||typeof jasmine<"u"&&!!jasmine||typeof jest<"u"&&!!jest||typeof Mocha<"u"&&!!Mocha}var th,UL=["color","button","checkbox","date","datetime-local","email","file","hidden","image","month","number","password","radio","range","reset","search","submit","tel","text","time","url","week"];function Ek(){if(th)return th;if(typeof document!="object"||!document)return th=new Set(UL),th;let t=document.createElement("input");return th=new Set(UL.filter(n=>(t.setAttribute("type",n),t.type===n))),th}function on(t){return t==null?"":typeof t=="string"?t:`${t}px`}function Ai(t){return t!=null&&`${t}`!="false"}function $L(t,n=/\s+/){let e=[];if(t!=null){let i=Array.isArray(t)?t:`${t}`.split(n);for(let r of i){let o=`${r}`.trim();o&&e.push(o)}}return e}var vo=(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})(vo||{}),Y0=class{_renderer;element;config;_animationForciblyDisabledThroughCss;state=vo.HIDDEN;constructor(n,e,i,r=!1){this._renderer=n,this.element=e,this.config=i,this._animationForciblyDisabledThroughCss=r}fadeOut(){this._renderer.fadeOutRipple(this)}},WL=rc({passive:!0,capture:!0}),Mk=class{_events=new Map;addHandler(n,e,i,r){let o=this._events.get(e);if(o){let a=o.get(i);a?a.add(r):o.set(i,new Set([r]))}else this._events.set(e,new Map([[i,new Set([r])]])),n.runOutsideAngular(()=>{document.addEventListener(e,this._delegateEventHandler,WL)})}removeHandler(n,e,i){let r=this._events.get(n);if(!r)return;let o=r.get(e);o&&(o.delete(i),o.size===0&&r.delete(e),r.size===0&&(this._events.delete(n),document.removeEventListener(n,this._delegateEventHandler,WL)))}_delegateEventHandler=n=>{let e=Kn(n);e&&this._events.get(n.type)?.forEach((i,r)=>{(r===e||r.contains(e))&&i.forEach(o=>o.handleEvent(n))})}},ih={enterDuration:225,exitDuration:150},mZ=800,GL=rc({passive:!0,capture:!0}),qL=["mousedown","touchstart"],YL=["mouseup","mouseleave","touchend","touchcancel"],hZ=(()=>{class t{static \u0275fac=function(i){return new(i||t)};static \u0275cmp=E({type:t,selectors:[["ng-component"]],hostAttrs:["mat-ripple-style-loader",""],decls:0,vars:0,template:function(i,r){},styles:[`.mat-ripple{overflow:hidden;position:relative}.mat-ripple:not(:empty){transform:translateZ(0)}.mat-ripple.mat-ripple-unbounded{overflow:visible}.mat-ripple-element{position:absolute;border-radius:50%;pointer-events:none;transition:opacity,transform 0ms cubic-bezier(0, 0, 0.2, 1);transform:scale3d(0, 0, 0);background-color:var(--mat-ripple-color, color-mix(in srgb, var(--mat-sys-on-surface) 10%, transparent))}@media(forced-colors: active){.mat-ripple-element{display:none}}.cdk-drag-preview .mat-ripple-element,.cdk-drag-placeholder .mat-ripple-element{display:none} +`],encapsulation:2,changeDetection:0})}return t})(),lc=class t{_target;_ngZone;_platform;_containerElement;_triggerElement;_isPointerDown=!1;_activeRipples=new Map;_mostRecentTransientRipple;_lastTouchStartEvent;_pointerUpEventsRegistered=!1;_containerRect;static _eventManager=new Mk;constructor(n,e,i,r,o){this._target=n,this._ngZone=e,this._platform=r,r.isBrowser&&(this._containerElement=Pr(i)),o&&o.get(ut).load(hZ)}fadeInRipple(n,e,i={}){let r=this._containerRect=this._containerRect||this._containerElement.getBoundingClientRect(),o=M(M({},ih),i.animation);i.centered&&(n=r.left+r.width/2,e=r.top+r.height/2);let a=i.radius||pZ(n,e,r),s=n-r.left,l=e-r.top,c=o.enterDuration,d=document.createElement("div");d.classList.add("mat-ripple-element"),d.style.left=`${s-a}px`,d.style.top=`${l-a}px`,d.style.height=`${a*2}px`,d.style.width=`${a*2}px`,i.color!=null&&(d.style.backgroundColor=i.color),d.style.transitionDuration=`${c}ms`,this._containerElement.appendChild(d);let m=window.getComputedStyle(d),f=m.transitionProperty,b=m.transitionDuration,v=f==="none"||b==="0s"||b==="0s, 0s"||r.width===0&&r.height===0,w=new Y0(this,d,i,v);d.style.transform="scale3d(1, 1, 1)",w.state=vo.FADING_IN,i.persistent||(this._mostRecentTransientRipple=w);let x=null;return!v&&(c||o.exitDuration)&&this._ngZone.runOutsideAngular(()=>{let D=()=>{x&&(x.fallbackTimer=null),clearTimeout(W),this._finishRippleTransition(w)},P=()=>this._destroyRipple(w),W=setTimeout(P,c+100);d.addEventListener("transitionend",D),d.addEventListener("transitioncancel",P),x={onTransitionEnd:D,onTransitionCancel:P,fallbackTimer:W}}),this._activeRipples.set(w,x),(v||!c)&&this._finishRippleTransition(w),w}fadeOutRipple(n){if(n.state===vo.FADING_OUT||n.state===vo.HIDDEN)return;let e=n.element,i=M(M({},ih),n.config.animation);e.style.transitionDuration=`${i.exitDuration}ms`,e.style.opacity="0",n.state=vo.FADING_OUT,(n._animationForciblyDisabledThroughCss||!i.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=Pr(n);!this._platform.isBrowser||!e||e===this._triggerElement||(this._removeTriggerEvents(),this._triggerElement=e,qL.forEach(i=>{t._eventManager.addHandler(this._ngZone,i,e,this)}))}handleEvent(n){n.type==="mousedown"?this._onMousedown(n):n.type==="touchstart"?this._onTouchStart(n):this._onPointerUp(),this._pointerUpEventsRegistered||(this._ngZone.runOutsideAngular(()=>{YL.forEach(e=>{this._triggerElement.addEventListener(e,this,GL)})}),this._pointerUpEventsRegistered=!0)}_finishRippleTransition(n){n.state===vo.FADING_IN?this._startFadeOutTransition(n):n.state===vo.FADING_OUT&&this._destroyRipple(n)}_startFadeOutTransition(n){let e=n===this._mostRecentTransientRipple,{persistent:i}=n.config;n.state=vo.VISIBLE,!i&&(!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=vo.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=Wd(n),i=this._lastTouchStartEvent&&Date.now(){let e=n.state===vo.VISIBLE||n.config.terminateOnPointerUp&&n.state===vo.FADING_IN;!n.config.persistent&&e&&n.fadeOut()}))}_getActiveRipples(){return Array.from(this._activeRipples.keys())}_removeTriggerEvents(){let n=this._triggerElement;n&&(qL.forEach(e=>t._eventManager.removeHandler(e,n,this)),this._pointerUpEventsRegistered&&(YL.forEach(e=>n.removeEventListener(e,this,GL)),this._pointerUpEventsRegistered=!1))}};function pZ(t,n,e){let i=Math.max(Math.abs(t-e.left),Math.abs(t-e.right)),r=Math.max(Math.abs(n-e.top),Math.abs(n-e.bottom));return Math.sqrt(i*i+r*r)}var Cs=new T("mat-ripple-global-options"),Vn=(()=>{class t{_elementRef=u(q);_animationsDisabled=Ye();color;unbounded;centered;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=u(ae),i=u(qe),r=u(Cs,{optional:!0}),o=u(de);this._globalOptions=r||{},this._rippleRenderer=new lc(this,e,this._elementRef,i,o)}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:M(M(M({},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,i=0,r){return typeof e=="number"?this._rippleRenderer.fadeInRipple(e,i,M(M({},this.rippleConfig),r)):this._rippleRenderer.fadeInRipple(0,0,M(M({},this.rippleConfig),e))}static \u0275fac=function(i){return new(i||t)};static \u0275dir=F({type:t,selectors:[["","mat-ripple",""],["","matRipple",""]],hostAttrs:[1,"mat-ripple"],hostVars:2,hostBindings:function(i,r){i&2&&G("mat-ripple-unbounded",r.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 yo=(()=>{class t{static \u0275fac=function(i){return new(i||t)};static \u0275mod=ee({type:t});static \u0275inj=J({imports:[we,we]})}return t})();var Qd=(()=>{class t{_animationsDisabled=Ye();state="unchecked";disabled=!1;appearance="full";constructor(){}static \u0275fac=function(i){return new(i||t)};static \u0275cmp=E({type:t,selectors:[["mat-pseudo-checkbox"]],hostAttrs:[1,"mat-pseudo-checkbox"],hostVars:12,hostBindings:function(i,r){i&2&&G("mat-pseudo-checkbox-indeterminate",r.state==="indeterminate")("mat-pseudo-checkbox-checked",r.state==="checked")("mat-pseudo-checkbox-disabled",r.disabled)("mat-pseudo-checkbox-minimal",r.appearance==="minimal")("mat-pseudo-checkbox-full",r.appearance==="full")("_mat-animation-noopable",r._animationsDisabled)},inputs:{state:"state",disabled:"disabled",appearance:"appearance"},decls:0,vars:0,template:function(i,r){},styles:[`.mat-pseudo-checkbox{border-radius:2px;cursor:pointer;display:inline-block;vertical-align:middle;box-sizing:border-box;position:relative;flex-shrink:0;transition:border-color 90ms cubic-bezier(0, 0, 0.2, 0.1),background-color 90ms cubic-bezier(0, 0, 0.2, 0.1)}.mat-pseudo-checkbox::after{position:absolute;opacity:0;content:"";border-bottom:2px solid currentColor;transition:opacity 90ms cubic-bezier(0, 0, 0.2, 0.1)}.mat-pseudo-checkbox._mat-animation-noopable{transition:none !important;animation:none !important}.mat-pseudo-checkbox._mat-animation-noopable::after{transition:none}.mat-pseudo-checkbox-disabled{cursor:default}.mat-pseudo-checkbox-indeterminate::after{left:1px;opacity:1;border-radius:2px}.mat-pseudo-checkbox-checked::after{left:1px;border-left:2px solid currentColor;transform:rotate(-45deg);opacity:1;box-sizing:content-box}.mat-pseudo-checkbox-minimal.mat-pseudo-checkbox-checked::after,.mat-pseudo-checkbox-minimal.mat-pseudo-checkbox-indeterminate::after{color:var(--mat-pseudo-checkbox-minimal-selected-checkmark-color, var(--mat-sys-primary))}.mat-pseudo-checkbox-minimal.mat-pseudo-checkbox-checked.mat-pseudo-checkbox-disabled::after,.mat-pseudo-checkbox-minimal.mat-pseudo-checkbox-indeterminate.mat-pseudo-checkbox-disabled::after{color:var(--mat-pseudo-checkbox-minimal-disabled-selected-checkmark-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent))}.mat-pseudo-checkbox-full{border-color:var(--mat-pseudo-checkbox-full-unselected-icon-color, var(--mat-sys-on-surface-variant));border-width:2px;border-style:solid}.mat-pseudo-checkbox-full.mat-pseudo-checkbox-disabled{border-color:var(--mat-pseudo-checkbox-full-disabled-unselected-icon-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent))}.mat-pseudo-checkbox-full.mat-pseudo-checkbox-checked,.mat-pseudo-checkbox-full.mat-pseudo-checkbox-indeterminate{background-color:var(--mat-pseudo-checkbox-full-selected-icon-color, var(--mat-sys-primary));border-color:rgba(0,0,0,0)}.mat-pseudo-checkbox-full.mat-pseudo-checkbox-checked::after,.mat-pseudo-checkbox-full.mat-pseudo-checkbox-indeterminate::after{color:var(--mat-pseudo-checkbox-full-selected-checkmark-color, var(--mat-sys-on-primary))}.mat-pseudo-checkbox-full.mat-pseudo-checkbox-checked.mat-pseudo-checkbox-disabled,.mat-pseudo-checkbox-full.mat-pseudo-checkbox-indeterminate.mat-pseudo-checkbox-disabled{background-color:var(--mat-pseudo-checkbox-full-disabled-selected-icon-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent))}.mat-pseudo-checkbox-full.mat-pseudo-checkbox-checked.mat-pseudo-checkbox-disabled::after,.mat-pseudo-checkbox-full.mat-pseudo-checkbox-indeterminate.mat-pseudo-checkbox-disabled::after{color:var(--mat-pseudo-checkbox-full-disabled-selected-checkmark-color, var(--mat-sys-surface))}.mat-pseudo-checkbox{width:18px;height:18px}.mat-pseudo-checkbox-minimal.mat-pseudo-checkbox-checked::after{width:14px;height:6px;transform-origin:center;top:-4.2426406871px;left:0;bottom:0;right:0;margin:auto}.mat-pseudo-checkbox-minimal.mat-pseudo-checkbox-indeterminate::after{top:8px;width:16px}.mat-pseudo-checkbox-full.mat-pseudo-checkbox-checked::after{width:10px;height:4px;transform-origin:center;top:-2.8284271247px;left:0;bottom:0;right:0;margin:auto}.mat-pseudo-checkbox-full.mat-pseudo-checkbox-indeterminate::after{top:6px;width:12px} +`],encapsulation:2,changeDetection:0})}return t})();var Q0=(()=>{class t{static \u0275fac=function(i){return new(i||t)};static \u0275mod=ee({type:t});static \u0275inj=J({imports:[we]})}return t})();var fZ=["*",[["mat-option"],["ng-container"]]],gZ=["*","mat-option, ng-container"],_Z=["text"],bZ=[[["mat-icon"]],"*"],vZ=["mat-icon","*"];function yZ(t,n){if(t&1&&k(0,"mat-pseudo-checkbox",1),t&2){let e=C();y("disabled",e.disabled)("state",e.selected?"checked":"unchecked")}}function xZ(t,n){if(t&1&&k(0,"mat-pseudo-checkbox",3),t&2){let e=C();y("disabled",e.disabled)}}function CZ(t,n){if(t&1&&(h(0,"span",4),_(1),p()),t&2){let e=C();g(),ve("(",e.group.label,")")}}var Kd=new T("MAT_OPTION_PARENT_COMPONENT"),Zd=new T("MatOptgroup"),kk=(()=>{class t{label;disabled=!1;_labelId=u(Ze).getId("mat-optgroup-label-");_inert;constructor(){let e=u(Kd,{optional:!0});this._inert=e?.inertGroups??!1}static \u0275fac=function(i){return new(i||t)};static \u0275cmp=E({type:t,selectors:[["mat-optgroup"]],hostAttrs:[1,"mat-mdc-optgroup"],hostVars:3,hostBindings:function(i,r){i&2&&X("role",r._inert?null:"group")("aria-disabled",r._inert?null:r.disabled.toString())("aria-labelledby",r._inert?null:r._labelId)},inputs:{label:"label",disabled:[2,"disabled","disabled",V]},exportAs:["matOptgroup"],features:[Ce([{provide:Zd,useExisting:t}])],ngContentSelectors:gZ,decls:5,vars:4,consts:[["role","presentation",1,"mat-mdc-optgroup-label",3,"id"],[1,"mdc-list-item__primary-text"]],template:function(i,r){i&1&&(Me(fZ),ft(0,"span",0)(1,"span",1),_(2),oe(3),vt()(),oe(4,1)),i&2&&(G("mdc-list-item--disabled",r.disabled),si("id",r._labelId),g(2),ve("",r.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));font-size:var(--mat-optgroup-label-text-size, var(--mat-sys-title-small-size));letter-spacing:var(--mat-optgroup-label-text-tracking, var(--mat-sys-title-small-tracking));font-weight:var(--mat-optgroup-label-text-weight, var(--mat-sys-title-small-weight))}.mat-mdc-optgroup-label{display:flex;position:relative;align-items:center;justify-content:flex-start;overflow:hidden;min-height:48px;padding:0 16px;outline:none}.mat-mdc-optgroup-label.mdc-list-item--disabled{opacity:.38}.mat-mdc-optgroup-label .mdc-list-item__primary-text{font-size:inherit;font-weight:inherit;letter-spacing:inherit;line-height:inherit;font-family:inherit;text-decoration:inherit;text-transform:inherit;white-space:normal;color:inherit} +`],encapsulation:2,changeDetection:0})}return t})(),nh=class{source;isUserInput;constructor(n,e=!1){this.source=n,this.isUserInput=e}},xn=(()=>{class t{_element=u(q);_changeDetectorRef=u(ye);_parent=u(Kd,{optional:!0});group=u(Zd,{optional:!0});_signalDisableRipple=!1;_selected=!1;_active=!1;_mostRecentViewValue="";get multiple(){return this._parent&&this._parent.multiple}get selected(){return this._selected}value;id=u(Ze).getId("mat-option-");get disabled(){return this.group&&this.group.disabled||this._disabled()}set disabled(e){this._disabled.set(e)}_disabled=he(!1);get disableRipple(){return this._signalDisableRipple?this._parent.disableRipple():!!this._parent?.disableRipple}get hideSingleSelectionIndicator(){return!!(this._parent&&this._parent.hideSingleSelectionIndicator)}onSelectionChange=new U;_text;_stateChanges=new z;constructor(){let e=u(ut);e.load(Di),e.load(Qr),this._signalDisableRipple=!!this._parent&&is(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,i){let r=this._getHostElement();typeof r.focus=="function"&&r.focus(i)}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)&&!Ft(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 nh(this,e))}static \u0275fac=function(i){return new(i||t)};static \u0275cmp=E({type:t,selectors:[["mat-option"]],viewQuery:function(i,r){if(i&1&&ie(_Z,7),i&2){let o;B(o=j())&&(r._text=o.first)}},hostAttrs:["role","option",1,"mat-mdc-option","mdc-list-item"],hostVars:11,hostBindings:function(i,r){i&1&&S("click",function(){return r._selectViaInteraction()})("keydown",function(a){return r._handleKeydown(a)}),i&2&&(si("id",r.id),X("aria-selected",r.selected)("aria-disabled",r.disabled.toString()),G("mdc-list-item--selected",r.selected)("mat-mdc-option-multiple",r.multiple)("mat-mdc-option-active",r.active)("mdc-list-item--disabled",r.disabled))},inputs:{value:"value",id:"id",disabled:[2,"disabled","disabled",V]},outputs:{onSelectionChange:"onSelectionChange"},exportAs:["matOption"],ngContentSelectors:vZ,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(i,r){i&1&&(Me(bZ),N(0,yZ,1,2,"mat-pseudo-checkbox",1),oe(1),h(2,"span",2,0),oe(4,1),p(),N(5,xZ,1,1,"mat-pseudo-checkbox",3),N(6,CZ,2,1,"span",4),k(7,"div",5)),i&2&&(L(r.multiple?0:-1),g(5),L(!r.multiple&&r.selected&&!r.hideSingleSelectionIndicator?5:-1),g(),L(r.group&&r.group._inert?6:-1),g(),y("matRippleTrigger",r._getHostElement())("matRippleDisabled",r.disabled||r.disableRipple))},dependencies:[Qd,Vn],styles:[`.mat-mdc-option{-webkit-user-select:none;user-select:none;-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;display:flex;position:relative;align-items:center;justify-content:flex-start;overflow:hidden;min-height:48px;padding:0 16px;cursor:pointer;-webkit-tap-highlight-color:rgba(0,0,0,0);color:var(--mat-option-label-text-color, var(--mat-sys-on-surface));font-family:var(--mat-option-label-text-font, var(--mat-sys-label-large-font));line-height:var(--mat-option-label-text-line-height, var(--mat-sys-label-large-line-height));font-size:var(--mat-option-label-text-size, var(--mat-sys-body-large-size));letter-spacing:var(--mat-option-label-text-tracking, var(--mat-sys-label-large-tracking));font-weight:var(--mat-option-label-text-weight, var(--mat-sys-body-large-weight))}.mat-mdc-option:hover:not(.mdc-list-item--disabled){background-color:var(--mat-option-hover-state-layer-color, color-mix(in srgb, var(--mat-sys-on-surface) calc(var(--mat-sys-hover-state-layer-opacity) * 100%), transparent))}.mat-mdc-option:focus.mdc-list-item,.mat-mdc-option.mat-mdc-option-active.mdc-list-item{background-color:var(--mat-option-focus-state-layer-color, color-mix(in srgb, var(--mat-sys-on-surface) calc(var(--mat-sys-focus-state-layer-opacity) * 100%), transparent));outline:0}.mat-mdc-option.mdc-list-item--selected:not(.mdc-list-item--disabled):not(.mat-mdc-option-multiple){background-color:var(--mat-option-selected-state-layer-color, var(--mat-sys-secondary-container))}.mat-mdc-option.mdc-list-item--selected:not(.mdc-list-item--disabled):not(.mat-mdc-option-multiple) .mdc-list-item__primary-text{color:var(--mat-option-selected-state-label-text-color, var(--mat-sys-on-secondary-container))}.mat-mdc-option .mat-pseudo-checkbox{--mat-pseudo-checkbox-minimal-selected-checkmark-color: var(--mat-option-selected-state-label-text-color, var(--mat-sys-on-secondary-container))}.mat-mdc-option.mdc-list-item{align-items:center;background:rgba(0,0,0,0)}.mat-mdc-option.mdc-list-item--disabled{cursor:default;pointer-events:none}.mat-mdc-option.mdc-list-item--disabled .mat-mdc-option-pseudo-checkbox,.mat-mdc-option.mdc-list-item--disabled .mdc-list-item__primary-text,.mat-mdc-option.mdc-list-item--disabled>mat-icon{opacity:.38}.mat-mdc-optgroup .mat-mdc-option:not(.mat-mdc-option-multiple){padding-left:32px}[dir=rtl] .mat-mdc-optgroup .mat-mdc-option:not(.mat-mdc-option-multiple){padding-left:16px;padding-right:32px}.mat-mdc-option .mat-icon,.mat-mdc-option .mat-pseudo-checkbox-full{margin-right:16px;flex-shrink:0}[dir=rtl] .mat-mdc-option .mat-icon,[dir=rtl] .mat-mdc-option .mat-pseudo-checkbox-full{margin-right:0;margin-left:16px}.mat-mdc-option .mat-pseudo-checkbox-minimal{margin-left:16px;flex-shrink:0}[dir=rtl] .mat-mdc-option .mat-pseudo-checkbox-minimal{margin-right:16px;margin-left:0}.mat-mdc-option .mat-mdc-option-ripple{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none}.mat-mdc-option .mdc-list-item__primary-text{white-space:normal;font-size:inherit;font-weight:inherit;letter-spacing:inherit;line-height:inherit;font-family:inherit;text-decoration:inherit;text-transform:inherit;margin-right:auto}[dir=rtl] .mat-mdc-option .mdc-list-item__primary-text{margin-right:0;margin-left:auto}@media(forced-colors: active){.mat-mdc-option.mdc-list-item--selected:not(:has(.mat-mdc-option-pseudo-checkbox))::after{content:"";position:absolute;top:50%;right:16px;transform:translateY(-50%);width:10px;height:0;border-bottom:solid 10px;border-radius:10px}[dir=rtl] .mat-mdc-option.mdc-list-item--selected:not(:has(.mat-mdc-option-pseudo-checkbox))::after{right:auto;left:16px}}.mat-mdc-option-multiple{--mat-list-list-item-selected-container-color: var(--mat-list-list-item-container-color, transparent)}.mat-mdc-option-active .mat-focus-indicator::before{content:""} +`],encapsulation:2,changeDetection:0})}return t})();function Qf(t,n,e){if(e.length){let i=n.toArray(),r=e.toArray(),o=0;for(let a=0;ae+i?Math.max(0,t-i+n):e}var rh=(()=>{class t{static \u0275fac=function(i){return new(i||t)};static \u0275mod=ee({type:t});static \u0275inj=J({imports:[yo,we,Q0,xn]})}return t})();var wZ={capture:!0},DZ=["focus","mousedown","mouseenter","touchstart"],Sk="mat-ripple-loader-uninitialized",Tk="mat-ripple-loader-class-name",QL="mat-ripple-loader-centered",K0="mat-ripple-loader-disabled",Z0=(()=>{class t{_document=u(ge);_animationsDisabled=Ye();_globalRippleOptions=u(Cs,{optional:!0});_platform=u(qe);_ngZone=u(ae);_injector=u(de);_eventCleanups;_hosts=new Map;constructor(){let e=u(cn).createRenderer(null,null);this._eventCleanups=this._ngZone.runOutsideAngular(()=>DZ.map(i=>e.listen(this._document,i,this._onInteraction,wZ)))}ngOnDestroy(){let e=this._hosts.keys();for(let i of e)this.destroyRipple(i);this._eventCleanups.forEach(i=>i())}configureRipple(e,i){e.setAttribute(Sk,this._globalRippleOptions?.namespace??""),(i.className||!e.hasAttribute(Tk))&&e.setAttribute(Tk,i.className||""),i.centered&&e.setAttribute(QL,""),i.disabled&&e.setAttribute(K0,"")}setDisabled(e,i){let r=this._hosts.get(e);r?(r.target.rippleDisabled=i,!i&&!r.hasSetUpEvents&&(r.hasSetUpEvents=!0,r.renderer.setupTriggerEvents(e))):i?e.setAttribute(K0,""):e.removeAttribute(K0)}_onInteraction=e=>{let i=Kn(e);if(i instanceof HTMLElement){let r=i.closest(`[${Sk}="${this._globalRippleOptions?.namespace??""}"]`);r&&this._createRipple(r)}};_createRipple(e){if(!this._document||this._hosts.has(e))return;e.querySelector(".mat-ripple")?.remove();let i=this._document.createElement("span");i.classList.add("mat-ripple",e.getAttribute(Tk)),e.append(i);let r=this._globalRippleOptions,o=this._animationsDisabled?0:r?.animation?.enterDuration??ih.enterDuration,a=this._animationsDisabled?0:r?.animation?.exitDuration??ih.exitDuration,s={rippleDisabled:this._animationsDisabled||r?.disabled||e.hasAttribute(K0),rippleConfig:{centered:e.hasAttribute(QL),terminateOnPointerUp:r?.terminateOnPointerUp,animation:{enterDuration:o,exitDuration:a}}},l=new lc(s,this._ngZone,i,this._platform,this._injector),c=!s.rippleDisabled;c&&l.setupTriggerEvents(e),this._hosts.set(e,{target:s,renderer:l,hasSetUpEvents:c}),e.removeAttribute(Sk)}destroyRipple(e){let i=this._hosts.get(e);i&&(i.renderer._removeTriggerEvents(),this._hosts.delete(e))}static \u0275fac=function(i){return new(i||t)};static \u0275prov=O({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();var EZ=/^\d{4}-\d{2}-\d{2}(?:T\d{2}:\d{2}:\d{2}(?:\.\d+)?(?:Z|(?:(?:\+|-)\d{2}:\d{2}))?)?$/,MZ=/^(\d?\d)[:.](\d?\d)(?:[:.](\d?\d))?\s*(AM|PM)?$/i;function Ik(t,n){let e=Array(t);for(let i=0;i{class t extends Li{useUtcForDisplay=!1;_matDateLocale=u(ys,{optional:!0});constructor(){super();let e=u(ys,{optional:!0});e!==void 0&&(this._matDateLocale=e),super.setLocale(this._matDateLocale)}getYear(e){return e.getFullYear()}getMonth(e){return e.getMonth()}getDate(e){return e.getDate()}getDayOfWeek(e){return e.getDay()}getMonthNames(e){let i=new Intl.DateTimeFormat(this.locale,{month:e,timeZone:"utc"});return Ik(12,r=>this._format(i,new Date(2017,r,1)))}getDateNames(){let e=new Intl.DateTimeFormat(this.locale,{day:"numeric",timeZone:"utc"});return Ik(31,i=>this._format(e,new Date(2017,0,i+1)))}getDayOfWeekNames(e){let i=new Intl.DateTimeFormat(this.locale,{weekday:e,timeZone:"utc"});return Ik(7,r=>this._format(i,new Date(2017,0,r+1)))}getYearName(e){let i=new Intl.DateTimeFormat(this.locale,{year:"numeric",timeZone:"utc"});return this._format(i,e)}getFirstDayOfWeek(){if(typeof Intl<"u"&&Intl.Locale){let e=new Intl.Locale(this.locale),i=(e.getWeekInfo?.()||e.weekInfo)?.firstDay??0;return i===7?0:i}return 0}getNumDaysInMonth(e){return this.getDate(this._createDateWithOverflow(this.getYear(e),this.getMonth(e)+1,0))}clone(e){return new Date(e.getTime())}createDate(e,i,r){let o=this._createDateWithOverflow(e,i,r);return o.getMonth()!=i,o}today(){return new Date}parse(e,i){return typeof e=="number"?new Date(e):e?new Date(Date.parse(e)):null}format(e,i){if(!this.isValid(e))throw Error("NativeDateAdapter: Cannot format invalid date.");let r=new Intl.DateTimeFormat(this.locale,De(M({},i),{timeZone:"utc"}));return this._format(r,e)}addCalendarYears(e,i){return this.addCalendarMonths(e,i*12)}addCalendarMonths(e,i){let r=this._createDateWithOverflow(this.getYear(e),this.getMonth(e)+i,this.getDate(e));return this.getMonth(r)!=((this.getMonth(e)+i)%12+12)%12&&(r=this._createDateWithOverflow(this.getYear(r),this.getMonth(r),0)),r}addCalendarDays(e,i){return this._createDateWithOverflow(this.getYear(e),this.getMonth(e),this.getDate(e)+i)}toIso8601(e){return[e.getUTCFullYear(),this._2digit(e.getUTCMonth()+1),this._2digit(e.getUTCDate())].join("-")}deserialize(e){if(typeof e=="string"){if(!e)return null;if(EZ.test(e)){let i=new Date(e);if(this.isValid(i))return i}}return super.deserialize(e)}isDateInstance(e){return e instanceof Date}isValid(e){return!isNaN(e.getTime())}invalid(){return new Date(NaN)}setTime(e,i,r,o){let a=this.clone(e);return a.setHours(i,r,o,0),a}getHours(e){return e.getHours()}getMinutes(e){return e.getMinutes()}getSeconds(e){return e.getSeconds()}parseTime(e,i){if(typeof e!="string")return e instanceof Date?new Date(e.getTime()):null;let r=e.trim();if(r.length===0)return null;let o=this._parseTimeString(r);if(o===null){let a=r.replace(/[^0-9:(AM|PM)]/gi,"").trim();a.length>0&&(o=this._parseTimeString(a))}return o||this.invalid()}addSeconds(e,i){return new Date(e.getTime()+i*1e3)}_createDateWithOverflow(e,i,r){let o=new Date;return o.setFullYear(e,i,r),o.setHours(0,0,0,0),o}_2digit(e){return("00"+e).slice(-2)}_format(e,i){let r=new Date;return r.setUTCFullYear(i.getFullYear(),i.getMonth(),i.getDate()),r.setUTCHours(i.getHours(),i.getMinutes(),i.getSeconds(),i.getMilliseconds()),e.format(r)}_parseTimeString(e){let i=e.toUpperCase().match(MZ);if(i){let r=parseInt(i[1]),o=parseInt(i[2]),a=i[3]==null?void 0:parseInt(i[3]),s=i[4];if(r===12?r=s==="AM"?0:r:s==="PM"&&(r+=12),Ak(r,0,23)&&Ak(o,0,59)&&(a==null||Ak(a,0,59)))return this.setTime(this.today(),r,o,a||0)}return null}static \u0275fac=function(i){return new(i||t)};static \u0275prov=O({token:t,factory:t.\u0275fac})}return t})();function Ak(t,n,e){return!isNaN(t)&&t>=n&&t<=e}var kZ={parse:{dateInput:null,timeInput:null},display:{dateInput:{year:"numeric",month:"numeric",day:"numeric"},timeInput:{hour:"numeric",minute:"numeric"},monthYearLabel:{year:"numeric",month:"short"},dateA11yLabel:{year:"numeric",month:"long",day:"numeric"},monthYearA11yLabel:{year:"numeric",month:"long"},timeOptionLabel:{hour:"numeric",minute:"numeric"}}};var ZL=(()=>{class t{static \u0275fac=function(i){return new(i||t)};static \u0275mod=ee({type:t});static \u0275inj=J({providers:[SZ()]})}return t})();function SZ(t=kZ){return[{provide:Li,useClass:KL},{provide:xs,useValue:t}]}var TZ=Math.pow(10,8)*24*60*60*1e3,Fje=-TZ,X0=6048e5,JL=864e5,Xd=6e4,Jd=36e5,eV=1e3;var IZ=3600;var tV=IZ*24,Nje=tV*7,AZ=tV*365.2425,OZ=AZ/12,Lje=OZ*3,Ok=Symbol.for("constructDateFrom");function rt(t,n){return typeof t=="function"?t(n):t&&typeof t=="object"&&Ok in t?t[Ok](n):t instanceof Date?new t.constructor(n):new Date(n)}function Ie(t,n){return rt(n||t,t)}function oh(t,n,e){let i=Ie(t,e?.in);return isNaN(n)?rt(e?.in||t,NaN):(n&&i.setDate(i.getDate()+n),i)}function ah(t,n,e){let i=Ie(t,e?.in);if(isNaN(n))return rt(e?.in||t,NaN);if(!n)return i;let r=i.getDate(),o=rt(e?.in||t,i.getTime());o.setMonth(i.getMonth()+n+1,0);let a=o.getDate();return r>=a?o:(i.setFullYear(o.getFullYear(),o.getMonth(),r),i)}function J0(t,n,e){return rt(e?.in||t,+Ie(t)+n)}function iV(t,n,e){return J0(t,n*Jd,e)}var RZ={};function Yo(){return RZ}function Zn(t,n){let e=Yo(),i=n?.weekStartsOn??n?.locale?.options?.weekStartsOn??e.weekStartsOn??e.locale?.options?.weekStartsOn??0,r=Ie(t,n?.in),o=r.getDay(),a=(o=o.getTime()?i+1:e.getTime()>=s.getTime()?i:i-1}function eu(t){let n=Ie(t),e=new Date(Date.UTC(n.getFullYear(),n.getMonth(),n.getDate(),n.getHours(),n.getMinutes(),n.getSeconds(),n.getMilliseconds()));return e.setUTCFullYear(n.getFullYear()),+t-+e}function ty(t,...n){let e=rt.bind(null,t||n.find(i=>typeof i=="object"));return n.map(e)}function Rk(t,n){let e=Ie(t,n?.in);return e.setHours(0,0,0,0),e}function nV(t,n,e){let[i,r]=ty(e?.in,t,n),o=Rk(i),a=Rk(r),s=+o-eu(o),l=+a-eu(a);return Math.round((s-l)/JL)}function rV(t,n){let e=ey(t,n),i=rt(n?.in||t,0);return i.setFullYear(e,0,4),i.setHours(0,0,0,0),Oa(i)}function oV(t,n,e){let i=Ie(t,e?.in);return i.setTime(i.getTime()+n*Xd),i}function aV(t,n,e){return J0(t,n*1e3,e)}function sV(t,n,e){return ah(t,n*12,e)}function iy(t){return t instanceof Date||typeof t=="object"&&Object.prototype.toString.call(t)==="[object Date]"}function sh(t){return!(!iy(t)&&typeof t!="number"||isNaN(+Ie(t)))}function lV(t,n){let e=Ie(t,n?.in);return e.setDate(1),e.setHours(0,0,0,0),e}function cV(t,n){let e=Ie(t,n?.in);return e.setFullYear(e.getFullYear(),0,1),e.setHours(0,0,0,0),e}var PZ={lessThanXSeconds:{one:"less than a second",other:"less than {{count}} seconds"},xSeconds:{one:"1 second",other:"{{count}} seconds"},halfAMinute:"half a minute",lessThanXMinutes:{one:"less than a minute",other:"less than {{count}} minutes"},xMinutes:{one:"1 minute",other:"{{count}} minutes"},aboutXHours:{one:"about 1 hour",other:"about {{count}} hours"},xHours:{one:"1 hour",other:"{{count}} hours"},xDays:{one:"1 day",other:"{{count}} days"},aboutXWeeks:{one:"about 1 week",other:"about {{count}} weeks"},xWeeks:{one:"1 week",other:"{{count}} weeks"},aboutXMonths:{one:"about 1 month",other:"about {{count}} months"},xMonths:{one:"1 month",other:"{{count}} months"},aboutXYears:{one:"about 1 year",other:"about {{count}} years"},xYears:{one:"1 year",other:"{{count}} years"},overXYears:{one:"over 1 year",other:"over {{count}} years"},almostXYears:{one:"almost 1 year",other:"almost {{count}} years"}},dV=(t,n,e)=>{let i,r=PZ[t];return typeof r=="string"?i=r:n===1?i=r.one:i=r.other.replace("{{count}}",n.toString()),e?.addSuffix?e.comparison&&e.comparison>0?"in "+i:i+" ago":i};function Qo(t){return(n={})=>{let e=n.width?String(n.width):t.defaultWidth;return t.formats[e]||t.formats[t.defaultWidth]}}var FZ={full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},NZ={full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},LZ={full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},uV={date:Qo({formats:FZ,defaultWidth:"full"}),time:Qo({formats:NZ,defaultWidth:"full"}),dateTime:Qo({formats:LZ,defaultWidth:"full"})};var VZ={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"},mV=(t,n,e,i)=>VZ[t];function Bn(t){return(n,e)=>{let i=e?.context?String(e.context):"standalone",r;if(i==="formatting"&&t.formattingValues){let a=t.defaultFormattingWidth||t.defaultWidth,s=e?.width?String(e.width):a;r=t.formattingValues[s]||t.formattingValues[a]}else{let a=t.defaultWidth,s=e?.width?String(e.width):t.defaultWidth;r=t.values[s]||t.values[a]}let o=t.argumentCallback?t.argumentCallback(n):n;return r[o]}}var BZ={narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},jZ={narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},HZ={narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],wide:["January","February","March","April","May","June","July","August","September","October","November","December"]},zZ={narrow:["S","M","T","W","T","F","S"],short:["Su","Mo","Tu","We","Th","Fr","Sa"],abbreviated:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],wide:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},UZ={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"}},$Z={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"}},WZ=(t,n)=>{let e=Number(t),i=e%100;if(i>20||i<10)switch(i%10){case 1:return e+"st";case 2:return e+"nd";case 3:return e+"rd"}return e+"th"},hV={ordinalNumber:WZ,era:Bn({values:BZ,defaultWidth:"wide"}),quarter:Bn({values:jZ,defaultWidth:"wide",argumentCallback:t=>t-1}),month:Bn({values:HZ,defaultWidth:"wide"}),day:Bn({values:zZ,defaultWidth:"wide"}),dayPeriod:Bn({values:UZ,defaultWidth:"wide",formattingValues:$Z,defaultFormattingWidth:"wide"})};function jn(t){return(n,e={})=>{let i=e.width,r=i&&t.matchPatterns[i]||t.matchPatterns[t.defaultMatchWidth],o=n.match(r);if(!o)return null;let a=o[0],s=i&&t.parsePatterns[i]||t.parsePatterns[t.defaultParseWidth],l=Array.isArray(s)?qZ(s,m=>m.test(a)):GZ(s,m=>m.test(a)),c;c=t.valueCallback?t.valueCallback(l):l,c=e.valueCallback?e.valueCallback(c):c;let d=n.slice(a.length);return{value:c,rest:d}}}function GZ(t,n){for(let e in t)if(Object.prototype.hasOwnProperty.call(t,e)&&n(t[e]))return e}function qZ(t,n){for(let e=0;e{let i=n.match(t.matchPattern);if(!i)return null;let r=i[0],o=n.match(t.parsePattern);if(!o)return null;let a=t.valueCallback?t.valueCallback(o[0]):o[0];a=e.valueCallback?e.valueCallback(a):a;let s=n.slice(r.length);return{value:a,rest:s}}}var YZ=/^(\d+)(th|st|nd|rd)?/i,QZ=/\d+/i,KZ={narrow:/^(b|a)/i,abbreviated:/^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,wide:/^(before christ|before common era|anno domini|common era)/i},ZZ={any:[/^b/i,/^(a|c)/i]},XZ={narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},JZ={any:[/1/i,/2/i,/3/i,/4/i]},eX={narrow:/^[jfmasond]/i,abbreviated:/^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,wide:/^(january|february|march|april|may|june|july|august|september|october|november|december)/i},tX={narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ap/i,/^may/i,/^jun/i,/^jul/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},iX={narrow:/^[smtwf]/i,short:/^(su|mo|tu|we|th|fr|sa)/i,abbreviated:/^(sun|mon|tue|wed|thu|fri|sat)/i,wide:/^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i},nX={narrow:[/^s/i,/^m/i,/^t/i,/^w/i,/^t/i,/^f/i,/^s/i],any:[/^su/i,/^m/i,/^tu/i,/^w/i,/^th/i,/^f/i,/^sa/i]},rX={narrow:/^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,any:/^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i},oX={any:{am:/^a/i,pm:/^p/i,midnight:/^mi/i,noon:/^no/i,morning:/morning/i,afternoon:/afternoon/i,evening:/evening/i,night:/night/i}},pV={ordinalNumber:lh({matchPattern:YZ,parsePattern:QZ,valueCallback:t=>parseInt(t,10)}),era:jn({matchPatterns:KZ,defaultMatchWidth:"wide",parsePatterns:ZZ,defaultParseWidth:"any"}),quarter:jn({matchPatterns:XZ,defaultMatchWidth:"wide",parsePatterns:JZ,defaultParseWidth:"any",valueCallback:t=>t+1}),month:jn({matchPatterns:eX,defaultMatchWidth:"wide",parsePatterns:tX,defaultParseWidth:"any"}),day:jn({matchPatterns:iX,defaultMatchWidth:"wide",parsePatterns:nX,defaultParseWidth:"any"}),dayPeriod:jn({matchPatterns:rX,defaultMatchWidth:"any",parsePatterns:oX,defaultParseWidth:"any"})};var tu={code:"en-US",formatDistance:dV,formatLong:uV,formatRelative:mV,localize:hV,match:pV,options:{weekStartsOn:0,firstWeekContainsDate:1}};function fV(t,n){let e=Ie(t,n?.in);return nV(e,cV(e))+1}function ny(t,n){let e=Ie(t,n?.in),i=+Oa(e)-+rV(e);return Math.round(i/X0)+1}function ch(t,n){let e=Ie(t,n?.in),i=e.getFullYear(),r=Yo(),o=n?.firstWeekContainsDate??n?.locale?.options?.firstWeekContainsDate??r.firstWeekContainsDate??r.locale?.options?.firstWeekContainsDate??1,a=rt(n?.in||t,0);a.setFullYear(i+1,0,o),a.setHours(0,0,0,0);let s=Zn(a,n),l=rt(n?.in||t,0);l.setFullYear(i,0,o),l.setHours(0,0,0,0);let c=Zn(l,n);return+e>=+s?i+1:+e>=+c?i:i-1}function gV(t,n){let e=Yo(),i=n?.firstWeekContainsDate??n?.locale?.options?.firstWeekContainsDate??e.firstWeekContainsDate??e.locale?.options?.firstWeekContainsDate??1,r=ch(t,n),o=rt(n?.in||t,0);return o.setFullYear(r,0,i),o.setHours(0,0,0,0),Zn(o,n)}function dh(t,n){let e=Ie(t,n?.in),i=+Zn(e,n)-+gV(e,n);return Math.round(i/X0)+1}function wt(t,n){let e=t<0?"-":"",i=Math.abs(t).toString().padStart(n,"0");return e+i}var ul={y(t,n){let e=t.getFullYear(),i=e>0?e:1-e;return wt(n==="yy"?i%100:i,n.length)},M(t,n){let e=t.getMonth();return n==="M"?String(e+1):wt(e+1,2)},d(t,n){return wt(t.getDate(),n.length)},a(t,n){let e=t.getHours()/12>=1?"pm":"am";switch(n){case"a":case"aa":return e.toUpperCase();case"aaa":return e;case"aaaaa":return e[0];case"aaaa":default:return e==="am"?"a.m.":"p.m."}},h(t,n){return wt(t.getHours()%12||12,n.length)},H(t,n){return wt(t.getHours(),n.length)},m(t,n){return wt(t.getMinutes(),n.length)},s(t,n){return wt(t.getSeconds(),n.length)},S(t,n){let e=n.length,i=t.getMilliseconds(),r=Math.trunc(i*Math.pow(10,e-3));return wt(r,n.length)}};var uh={am:"am",pm:"pm",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},Pk={G:function(t,n,e){let i=t.getFullYear()>0?1:0;switch(n){case"G":case"GG":case"GGG":return e.era(i,{width:"abbreviated"});case"GGGGG":return e.era(i,{width:"narrow"});case"GGGG":default:return e.era(i,{width:"wide"})}},y:function(t,n,e){if(n==="yo"){let i=t.getFullYear(),r=i>0?i:1-i;return e.ordinalNumber(r,{unit:"year"})}return ul.y(t,n)},Y:function(t,n,e,i){let r=ch(t,i),o=r>0?r:1-r;if(n==="YY"){let a=o%100;return wt(a,2)}return n==="Yo"?e.ordinalNumber(o,{unit:"year"}):wt(o,n.length)},R:function(t,n){let e=ey(t);return wt(e,n.length)},u:function(t,n){let e=t.getFullYear();return wt(e,n.length)},Q:function(t,n,e){let i=Math.ceil((t.getMonth()+1)/3);switch(n){case"Q":return String(i);case"QQ":return wt(i,2);case"Qo":return e.ordinalNumber(i,{unit:"quarter"});case"QQQ":return e.quarter(i,{width:"abbreviated",context:"formatting"});case"QQQQQ":return e.quarter(i,{width:"narrow",context:"formatting"});case"QQQQ":default:return e.quarter(i,{width:"wide",context:"formatting"})}},q:function(t,n,e){let i=Math.ceil((t.getMonth()+1)/3);switch(n){case"q":return String(i);case"qq":return wt(i,2);case"qo":return e.ordinalNumber(i,{unit:"quarter"});case"qqq":return e.quarter(i,{width:"abbreviated",context:"standalone"});case"qqqqq":return e.quarter(i,{width:"narrow",context:"standalone"});case"qqqq":default:return e.quarter(i,{width:"wide",context:"standalone"})}},M:function(t,n,e){let i=t.getMonth();switch(n){case"M":case"MM":return ul.M(t,n);case"Mo":return e.ordinalNumber(i+1,{unit:"month"});case"MMM":return e.month(i,{width:"abbreviated",context:"formatting"});case"MMMMM":return e.month(i,{width:"narrow",context:"formatting"});case"MMMM":default:return e.month(i,{width:"wide",context:"formatting"})}},L:function(t,n,e){let i=t.getMonth();switch(n){case"L":return String(i+1);case"LL":return wt(i+1,2);case"Lo":return e.ordinalNumber(i+1,{unit:"month"});case"LLL":return e.month(i,{width:"abbreviated",context:"standalone"});case"LLLLL":return e.month(i,{width:"narrow",context:"standalone"});case"LLLL":default:return e.month(i,{width:"wide",context:"standalone"})}},w:function(t,n,e,i){let r=dh(t,i);return n==="wo"?e.ordinalNumber(r,{unit:"week"}):wt(r,n.length)},I:function(t,n,e){let i=ny(t);return n==="Io"?e.ordinalNumber(i,{unit:"week"}):wt(i,n.length)},d:function(t,n,e){return n==="do"?e.ordinalNumber(t.getDate(),{unit:"date"}):ul.d(t,n)},D:function(t,n,e){let i=fV(t);return n==="Do"?e.ordinalNumber(i,{unit:"dayOfYear"}):wt(i,n.length)},E:function(t,n,e){let i=t.getDay();switch(n){case"E":case"EE":case"EEE":return e.day(i,{width:"abbreviated",context:"formatting"});case"EEEEE":return e.day(i,{width:"narrow",context:"formatting"});case"EEEEEE":return e.day(i,{width:"short",context:"formatting"});case"EEEE":default:return e.day(i,{width:"wide",context:"formatting"})}},e:function(t,n,e,i){let r=t.getDay(),o=(r-i.weekStartsOn+8)%7||7;switch(n){case"e":return String(o);case"ee":return wt(o,2);case"eo":return e.ordinalNumber(o,{unit:"day"});case"eee":return e.day(r,{width:"abbreviated",context:"formatting"});case"eeeee":return e.day(r,{width:"narrow",context:"formatting"});case"eeeeee":return e.day(r,{width:"short",context:"formatting"});case"eeee":default:return e.day(r,{width:"wide",context:"formatting"})}},c:function(t,n,e,i){let r=t.getDay(),o=(r-i.weekStartsOn+8)%7||7;switch(n){case"c":return String(o);case"cc":return wt(o,n.length);case"co":return e.ordinalNumber(o,{unit:"day"});case"ccc":return e.day(r,{width:"abbreviated",context:"standalone"});case"ccccc":return e.day(r,{width:"narrow",context:"standalone"});case"cccccc":return e.day(r,{width:"short",context:"standalone"});case"cccc":default:return e.day(r,{width:"wide",context:"standalone"})}},i:function(t,n,e){let i=t.getDay(),r=i===0?7:i;switch(n){case"i":return String(r);case"ii":return wt(r,n.length);case"io":return e.ordinalNumber(r,{unit:"day"});case"iii":return e.day(i,{width:"abbreviated",context:"formatting"});case"iiiii":return e.day(i,{width:"narrow",context:"formatting"});case"iiiiii":return e.day(i,{width:"short",context:"formatting"});case"iiii":default:return e.day(i,{width:"wide",context:"formatting"})}},a:function(t,n,e){let r=t.getHours()/12>=1?"pm":"am";switch(n){case"a":case"aa":return e.dayPeriod(r,{width:"abbreviated",context:"formatting"});case"aaa":return e.dayPeriod(r,{width:"abbreviated",context:"formatting"}).toLowerCase();case"aaaaa":return e.dayPeriod(r,{width:"narrow",context:"formatting"});case"aaaa":default:return e.dayPeriod(r,{width:"wide",context:"formatting"})}},b:function(t,n,e){let i=t.getHours(),r;switch(i===12?r=uh.noon:i===0?r=uh.midnight:r=i/12>=1?"pm":"am",n){case"b":case"bb":return e.dayPeriod(r,{width:"abbreviated",context:"formatting"});case"bbb":return e.dayPeriod(r,{width:"abbreviated",context:"formatting"}).toLowerCase();case"bbbbb":return e.dayPeriod(r,{width:"narrow",context:"formatting"});case"bbbb":default:return e.dayPeriod(r,{width:"wide",context:"formatting"})}},B:function(t,n,e){let i=t.getHours(),r;switch(i>=17?r=uh.evening:i>=12?r=uh.afternoon:i>=4?r=uh.morning:r=uh.night,n){case"B":case"BB":case"BBB":return e.dayPeriod(r,{width:"abbreviated",context:"formatting"});case"BBBBB":return e.dayPeriod(r,{width:"narrow",context:"formatting"});case"BBBB":default:return e.dayPeriod(r,{width:"wide",context:"formatting"})}},h:function(t,n,e){if(n==="ho"){let i=t.getHours()%12;return i===0&&(i=12),e.ordinalNumber(i,{unit:"hour"})}return ul.h(t,n)},H:function(t,n,e){return n==="Ho"?e.ordinalNumber(t.getHours(),{unit:"hour"}):ul.H(t,n)},K:function(t,n,e){let i=t.getHours()%12;return n==="Ko"?e.ordinalNumber(i,{unit:"hour"}):wt(i,n.length)},k:function(t,n,e){let i=t.getHours();return i===0&&(i=24),n==="ko"?e.ordinalNumber(i,{unit:"hour"}):wt(i,n.length)},m:function(t,n,e){return n==="mo"?e.ordinalNumber(t.getMinutes(),{unit:"minute"}):ul.m(t,n)},s:function(t,n,e){return n==="so"?e.ordinalNumber(t.getSeconds(),{unit:"second"}):ul.s(t,n)},S:function(t,n){return ul.S(t,n)},X:function(t,n,e){let i=t.getTimezoneOffset();if(i===0)return"Z";switch(n){case"X":return bV(i);case"XXXX":case"XX":return iu(i);case"XXXXX":case"XXX":default:return iu(i,":")}},x:function(t,n,e){let i=t.getTimezoneOffset();switch(n){case"x":return bV(i);case"xxxx":case"xx":return iu(i);case"xxxxx":case"xxx":default:return iu(i,":")}},O:function(t,n,e){let i=t.getTimezoneOffset();switch(n){case"O":case"OO":case"OOO":return"GMT"+_V(i,":");case"OOOO":default:return"GMT"+iu(i,":")}},z:function(t,n,e){let i=t.getTimezoneOffset();switch(n){case"z":case"zz":case"zzz":return"GMT"+_V(i,":");case"zzzz":default:return"GMT"+iu(i,":")}},t:function(t,n,e){let i=Math.trunc(+t/1e3);return wt(i,n.length)},T:function(t,n,e){return wt(+t,n.length)}};function _V(t,n=""){let e=t>0?"-":"+",i=Math.abs(t),r=Math.trunc(i/60),o=i%60;return o===0?e+String(r):e+String(r)+n+wt(o,2)}function bV(t,n){return t%60===0?(t>0?"-":"+")+wt(Math.abs(t)/60,2):iu(t,n)}function iu(t,n=""){let e=t>0?"-":"+",i=Math.abs(t),r=wt(Math.trunc(i/60),2),o=wt(i%60,2);return e+r+n+o}var vV=(t,n)=>{switch(t){case"P":return n.date({width:"short"});case"PP":return n.date({width:"medium"});case"PPP":return n.date({width:"long"});case"PPPP":default:return n.date({width:"full"})}},yV=(t,n)=>{switch(t){case"p":return n.time({width:"short"});case"pp":return n.time({width:"medium"});case"ppp":return n.time({width:"long"});case"pppp":default:return n.time({width:"full"})}},aX=(t,n)=>{let e=t.match(/(P+)(p+)?/)||[],i=e[1],r=e[2];if(!r)return vV(t,n);let o;switch(i){case"P":o=n.dateTime({width:"short"});break;case"PP":o=n.dateTime({width:"medium"});break;case"PPP":o=n.dateTime({width:"long"});break;case"PPPP":default:o=n.dateTime({width:"full"});break}return o.replace("{{date}}",vV(i,n)).replace("{{time}}",yV(r,n))},Zf={p:yV,P:aX};var sX=/^D+$/,lX=/^Y+$/,cX=["D","DD","YY","YYYY"];function ry(t){return sX.test(t)}function oy(t){return lX.test(t)}function Xf(t,n,e){let i=dX(t,n,e);if(console.warn(i),cX.includes(t))throw new RangeError(i)}function dX(t,n,e){let i=t[0]==="Y"?"years":"days of the month";return`Use \`${t.toLowerCase()}\` instead of \`${t}\` (in \`${n}\`) for formatting ${i} to the input \`${e}\`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md`}var uX=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,mX=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,hX=/^'([^]*?)'?$/,pX=/''/g,fX=/[a-zA-Z]/;function xV(t,n,e){let i=Yo(),r=e?.locale??i.locale??tu,o=e?.firstWeekContainsDate??e?.locale?.options?.firstWeekContainsDate??i.firstWeekContainsDate??i.locale?.options?.firstWeekContainsDate??1,a=e?.weekStartsOn??e?.locale?.options?.weekStartsOn??i.weekStartsOn??i.locale?.options?.weekStartsOn??0,s=Ie(t,e?.in);if(!sh(s))throw new RangeError("Invalid time value");let l=n.match(mX).map(d=>{let m=d[0];if(m==="p"||m==="P"){let f=Zf[m];return f(d,r.formatLong)}return d}).join("").match(uX).map(d=>{if(d==="''")return{isToken:!1,value:"'"};let m=d[0];if(m==="'")return{isToken:!1,value:gX(d)};if(Pk[m])return{isToken:!0,value:d};if(m.match(fX))throw new RangeError("Format string contains an unescaped latin alphabet character `"+m+"`");return{isToken:!1,value:d}});r.localize.preprocessor&&(l=r.localize.preprocessor(s,l));let c={firstWeekContainsDate:o,weekStartsOn:a,locale:r};return l.map(d=>{if(!d.isToken)return d.value;let m=d.value;(!e?.useAdditionalWeekYearTokens&&oy(m)||!e?.useAdditionalDayOfYearTokens&&ry(m))&&Xf(m,n,String(t));let f=Pk[m[0]];return f(s,m,r.localize,c)}).join("")}function gX(t){let n=t.match(hX);return n?n[1].replace(pX,"'"):t}function CV(t,n){let e=Ie(t,n?.in);if(isNaN(+e))throw new RangeError("Invalid time value");let i=n?.format??"extended",r=n?.representation??"complete",o="",a="",s=i==="extended"?"-":"",l=i==="extended"?":":"";if(r!=="time"){let c=wt(e.getDate(),2),d=wt(e.getMonth()+1,2);o=`${wt(e.getFullYear(),4)}${s}${d}${s}${c}`}if(r!=="date"){let c=e.getTimezoneOffset();if(c!==0){let w=Math.abs(c),x=wt(Math.trunc(w/60),2),D=wt(w%60,2);a=`${c<0?"+":"-"}${x}:${D}`}else a="Z";let d=wt(e.getHours(),2),m=wt(e.getMinutes(),2),f=wt(e.getSeconds(),2),b=o===""?"":"T",v=[d,m,f].join(l);o=`${o}${b}${v}${a}`}return o}function wV(t,n){return Ie(t,n?.in).getDate()}function DV(t,n){return Ie(t,n?.in).getDay()}function ay(t,n){let e=Ie(t,n?.in),i=e.getFullYear(),r=e.getMonth(),o=rt(e,0);return o.setFullYear(i,r+1,0),o.setHours(0,0,0,0),o.getDate()}function EV(){return Object.assign({},Yo())}function sy(t,n){return Ie(t,n?.in).getHours()}function MV(t,n){let e=Ie(t,n?.in).getDay();return e===0?7:e}function ly(t,n){return Ie(t,n?.in).getMinutes()}function kV(t,n){return Ie(t,n?.in).getMonth()}function SV(t){return Ie(t).getSeconds()}function TV(t,n){return Ie(t,n?.in).getFullYear()}function IV(t,n){let e=_X(n)?new n(0):rt(n,0);return e.setFullYear(t.getFullYear(),t.getMonth(),t.getDate()),e.setHours(t.getHours(),t.getMinutes(),t.getSeconds(),t.getMilliseconds()),e}function _X(t){return typeof t=="function"&&t.prototype?.constructor===t}var bX=10,cy=class{subPriority=0;validate(n,e){return!0}},dy=class extends cy{constructor(n,e,i,r,o){super(),this.value=n,this.validateValue=e,this.setValue=i,this.priority=r,o&&(this.subPriority=o)}validate(n,e){return this.validateValue(n,this.value,e)}set(n,e,i){return this.setValue(n,e,this.value,i)}},uy=class extends cy{priority=bX;subPriority=-1;constructor(n,e){super(),this.context=n||(i=>rt(e,i))}set(n,e){return e.timestampIsSet?n:rt(n,IV(n,this.context))}};var Pe=class{run(n,e,i,r){let o=this.parse(n,e,i,r);return o?{setter:new dy(o.value,this.validate,this.set,this.priority,this.subPriority),rest:o.rest}:null}validate(n,e,i){return!0}};var my=class extends Pe{priority=140;parse(n,e,i){switch(e){case"G":case"GG":case"GGG":return i.era(n,{width:"abbreviated"})||i.era(n,{width:"narrow"});case"GGGGG":return i.era(n,{width:"narrow"});case"GGGG":default:return i.era(n,{width:"wide"})||i.era(n,{width:"abbreviated"})||i.era(n,{width:"narrow"})}}set(n,e,i){return e.era=i,n.setFullYear(i,0,1),n.setHours(0,0,0,0),n}incompatibleTokens=["R","u","t","T"]};var Bt={month:/^(1[0-2]|0?\d)/,date:/^(3[0-1]|[0-2]?\d)/,dayOfYear:/^(36[0-6]|3[0-5]\d|[0-2]?\d?\d)/,week:/^(5[0-3]|[0-4]?\d)/,hour23h:/^(2[0-3]|[0-1]?\d)/,hour24h:/^(2[0-4]|[0-1]?\d)/,hour11h:/^(1[0-1]|0?\d)/,hour12h:/^(1[0-2]|0?\d)/,minute:/^[0-5]?\d/,second:/^[0-5]?\d/,singleDigit:/^\d/,twoDigits:/^\d{1,2}/,threeDigits:/^\d{1,3}/,fourDigits:/^\d{1,4}/,anyDigitsSigned:/^-?\d+/,singleDigitSigned:/^-?\d/,twoDigitsSigned:/^-?\d{1,2}/,threeDigitsSigned:/^-?\d{1,3}/,fourDigitsSigned:/^-?\d{1,4}/},Ko={basicOptionalMinutes:/^([+-])(\d{2})(\d{2})?|Z/,basic:/^([+-])(\d{2})(\d{2})|Z/,basicOptionalSeconds:/^([+-])(\d{2})(\d{2})((\d{2}))?|Z/,extended:/^([+-])(\d{2}):(\d{2})|Z/,extendedOptionalSeconds:/^([+-])(\d{2}):(\d{2})(:(\d{2}))?|Z/};function ci(t,n){return t&&{value:n(t.value),rest:t.rest}}function Nt(t,n){let e=n.match(t);return e?{value:parseInt(e[0],10),rest:n.slice(e[0].length)}:null}function Zo(t,n){let e=n.match(t);if(!e)return null;if(e[0]==="Z")return{value:0,rest:n.slice(1)};let i=e[1]==="+"?1:-1,r=e[2]?parseInt(e[2],10):0,o=e[3]?parseInt(e[3],10):0,a=e[5]?parseInt(e[5],10):0;return{value:i*(r*Jd+o*Xd+a*eV),rest:n.slice(e[0].length)}}function hy(t){return Nt(Bt.anyDigitsSigned,t)}function _t(t,n){switch(t){case 1:return Nt(Bt.singleDigit,n);case 2:return Nt(Bt.twoDigits,n);case 3:return Nt(Bt.threeDigits,n);case 4:return Nt(Bt.fourDigits,n);default:return Nt(new RegExp("^\\d{1,"+t+"}"),n)}}function mh(t,n){switch(t){case 1:return Nt(Bt.singleDigitSigned,n);case 2:return Nt(Bt.twoDigitsSigned,n);case 3:return Nt(Bt.threeDigitsSigned,n);case 4:return Nt(Bt.fourDigitsSigned,n);default:return Nt(new RegExp("^-?\\d{1,"+t+"}"),n)}}function hh(t){switch(t){case"morning":return 4;case"evening":return 17;case"pm":case"noon":case"afternoon":return 12;case"am":case"midnight":case"night":default:return 0}}function py(t,n){let e=n>0,i=e?n:1-n,r;if(i<=50)r=t||100;else{let o=i+50,a=Math.trunc(o/100)*100,s=t>=o%100;r=t+a-(s?100:0)}return e?r:1-r}function fy(t){return t%400===0||t%4===0&&t%100!==0}var gy=class extends Pe{priority=130;incompatibleTokens=["Y","R","u","w","I","i","e","c","t","T"];parse(n,e,i){let r=o=>({year:o,isTwoDigitYear:e==="yy"});switch(e){case"y":return ci(_t(4,n),r);case"yo":return ci(i.ordinalNumber(n,{unit:"year"}),r);default:return ci(_t(e.length,n),r)}}validate(n,e){return e.isTwoDigitYear||e.year>0}set(n,e,i){let r=n.getFullYear();if(i.isTwoDigitYear){let a=py(i.year,r);return n.setFullYear(a,0,1),n.setHours(0,0,0,0),n}let o=!("era"in e)||e.era===1?i.year:1-i.year;return n.setFullYear(o,0,1),n.setHours(0,0,0,0),n}};var _y=class extends Pe{priority=130;parse(n,e,i){let r=o=>({year:o,isTwoDigitYear:e==="YY"});switch(e){case"Y":return ci(_t(4,n),r);case"Yo":return ci(i.ordinalNumber(n,{unit:"year"}),r);default:return ci(_t(e.length,n),r)}}validate(n,e){return e.isTwoDigitYear||e.year>0}set(n,e,i,r){let o=ch(n,r);if(i.isTwoDigitYear){let s=py(i.year,o);return n.setFullYear(s,0,r.firstWeekContainsDate),n.setHours(0,0,0,0),Zn(n,r)}let a=!("era"in e)||e.era===1?i.year:1-i.year;return n.setFullYear(a,0,r.firstWeekContainsDate),n.setHours(0,0,0,0),Zn(n,r)}incompatibleTokens=["y","R","u","Q","q","M","L","I","d","D","i","t","T"]};var by=class extends Pe{priority=130;parse(n,e){return e==="R"?mh(4,n):mh(e.length,n)}set(n,e,i){let r=rt(n,0);return r.setFullYear(i,0,4),r.setHours(0,0,0,0),Oa(r)}incompatibleTokens=["G","y","Y","u","Q","q","M","L","w","d","D","e","c","t","T"]};var vy=class extends Pe{priority=130;parse(n,e){return e==="u"?mh(4,n):mh(e.length,n)}set(n,e,i){return n.setFullYear(i,0,1),n.setHours(0,0,0,0),n}incompatibleTokens=["G","y","Y","R","w","I","i","e","c","t","T"]};var yy=class extends Pe{priority=120;parse(n,e,i){switch(e){case"Q":case"QQ":return _t(e.length,n);case"Qo":return i.ordinalNumber(n,{unit:"quarter"});case"QQQ":return i.quarter(n,{width:"abbreviated",context:"formatting"})||i.quarter(n,{width:"narrow",context:"formatting"});case"QQQQQ":return i.quarter(n,{width:"narrow",context:"formatting"});case"QQQQ":default:return i.quarter(n,{width:"wide",context:"formatting"})||i.quarter(n,{width:"abbreviated",context:"formatting"})||i.quarter(n,{width:"narrow",context:"formatting"})}}validate(n,e){return e>=1&&e<=4}set(n,e,i){return n.setMonth((i-1)*3,1),n.setHours(0,0,0,0),n}incompatibleTokens=["Y","R","q","M","L","w","I","d","D","i","e","c","t","T"]};var xy=class extends Pe{priority=120;parse(n,e,i){switch(e){case"q":case"qq":return _t(e.length,n);case"qo":return i.ordinalNumber(n,{unit:"quarter"});case"qqq":return i.quarter(n,{width:"abbreviated",context:"standalone"})||i.quarter(n,{width:"narrow",context:"standalone"});case"qqqqq":return i.quarter(n,{width:"narrow",context:"standalone"});case"qqqq":default:return i.quarter(n,{width:"wide",context:"standalone"})||i.quarter(n,{width:"abbreviated",context:"standalone"})||i.quarter(n,{width:"narrow",context:"standalone"})}}validate(n,e){return e>=1&&e<=4}set(n,e,i){return n.setMonth((i-1)*3,1),n.setHours(0,0,0,0),n}incompatibleTokens=["Y","R","Q","M","L","w","I","d","D","i","e","c","t","T"]};var Cy=class extends Pe{incompatibleTokens=["Y","R","q","Q","L","w","I","D","i","e","c","t","T"];priority=110;parse(n,e,i){let r=o=>o-1;switch(e){case"M":return ci(Nt(Bt.month,n),r);case"MM":return ci(_t(2,n),r);case"Mo":return ci(i.ordinalNumber(n,{unit:"month"}),r);case"MMM":return i.month(n,{width:"abbreviated",context:"formatting"})||i.month(n,{width:"narrow",context:"formatting"});case"MMMMM":return i.month(n,{width:"narrow",context:"formatting"});case"MMMM":default:return i.month(n,{width:"wide",context:"formatting"})||i.month(n,{width:"abbreviated",context:"formatting"})||i.month(n,{width:"narrow",context:"formatting"})}}validate(n,e){return e>=0&&e<=11}set(n,e,i){return n.setMonth(i,1),n.setHours(0,0,0,0),n}};var wy=class extends Pe{priority=110;parse(n,e,i){let r=o=>o-1;switch(e){case"L":return ci(Nt(Bt.month,n),r);case"LL":return ci(_t(2,n),r);case"Lo":return ci(i.ordinalNumber(n,{unit:"month"}),r);case"LLL":return i.month(n,{width:"abbreviated",context:"standalone"})||i.month(n,{width:"narrow",context:"standalone"});case"LLLLL":return i.month(n,{width:"narrow",context:"standalone"});case"LLLL":default:return i.month(n,{width:"wide",context:"standalone"})||i.month(n,{width:"abbreviated",context:"standalone"})||i.month(n,{width:"narrow",context:"standalone"})}}validate(n,e){return e>=0&&e<=11}set(n,e,i){return n.setMonth(i,1),n.setHours(0,0,0,0),n}incompatibleTokens=["Y","R","q","Q","M","w","I","D","i","e","c","t","T"]};function AV(t,n,e){let i=Ie(t,e?.in),r=dh(i,e)-n;return i.setDate(i.getDate()-r*7),Ie(i,e?.in)}var Dy=class extends Pe{priority=100;parse(n,e,i){switch(e){case"w":return Nt(Bt.week,n);case"wo":return i.ordinalNumber(n,{unit:"week"});default:return _t(e.length,n)}}validate(n,e){return e>=1&&e<=53}set(n,e,i,r){return Zn(AV(n,i,r),r)}incompatibleTokens=["y","R","u","q","Q","M","L","I","d","D","i","t","T"]};function OV(t,n,e){let i=Ie(t,e?.in),r=ny(i,e)-n;return i.setDate(i.getDate()-r*7),i}var Ey=class extends Pe{priority=100;parse(n,e,i){switch(e){case"I":return Nt(Bt.week,n);case"Io":return i.ordinalNumber(n,{unit:"week"});default:return _t(e.length,n)}}validate(n,e){return e>=1&&e<=53}set(n,e,i){return Oa(OV(n,i))}incompatibleTokens=["y","Y","u","q","Q","M","L","w","d","D","e","c","t","T"]};var vX=[31,28,31,30,31,30,31,31,30,31,30,31],yX=[31,29,31,30,31,30,31,31,30,31,30,31],My=class extends Pe{priority=90;subPriority=1;parse(n,e,i){switch(e){case"d":return Nt(Bt.date,n);case"do":return i.ordinalNumber(n,{unit:"date"});default:return _t(e.length,n)}}validate(n,e){let i=n.getFullYear(),r=fy(i),o=n.getMonth();return r?e>=1&&e<=yX[o]:e>=1&&e<=vX[o]}set(n,e,i){return n.setDate(i),n.setHours(0,0,0,0),n}incompatibleTokens=["Y","R","q","Q","w","I","D","i","e","c","t","T"]};var ky=class extends Pe{priority=90;subpriority=1;parse(n,e,i){switch(e){case"D":case"DD":return Nt(Bt.dayOfYear,n);case"Do":return i.ordinalNumber(n,{unit:"date"});default:return _t(e.length,n)}}validate(n,e){let i=n.getFullYear();return fy(i)?e>=1&&e<=366:e>=1&&e<=365}set(n,e,i){return n.setMonth(0,i),n.setHours(0,0,0,0),n}incompatibleTokens=["Y","R","q","Q","M","L","w","I","d","E","i","e","c","t","T"]};function ph(t,n,e){let i=Yo(),r=e?.weekStartsOn??e?.locale?.options?.weekStartsOn??i.weekStartsOn??i.locale?.options?.weekStartsOn??0,o=Ie(t,e?.in),a=o.getDay(),l=(n%7+7)%7,c=7-r,d=n<0||n>6?n-(a+c)%7:(l+c)%7-(a+c)%7;return oh(o,d,e)}var Sy=class extends Pe{priority=90;parse(n,e,i){switch(e){case"E":case"EE":case"EEE":return i.day(n,{width:"abbreviated",context:"formatting"})||i.day(n,{width:"short",context:"formatting"})||i.day(n,{width:"narrow",context:"formatting"});case"EEEEE":return i.day(n,{width:"narrow",context:"formatting"});case"EEEEEE":return i.day(n,{width:"short",context:"formatting"})||i.day(n,{width:"narrow",context:"formatting"});case"EEEE":default:return i.day(n,{width:"wide",context:"formatting"})||i.day(n,{width:"abbreviated",context:"formatting"})||i.day(n,{width:"short",context:"formatting"})||i.day(n,{width:"narrow",context:"formatting"})}}validate(n,e){return e>=0&&e<=6}set(n,e,i,r){return n=ph(n,i,r),n.setHours(0,0,0,0),n}incompatibleTokens=["D","i","e","c","t","T"]};var Ty=class extends Pe{priority=90;parse(n,e,i,r){let o=a=>{let s=Math.floor((a-1)/7)*7;return(a+r.weekStartsOn+6)%7+s};switch(e){case"e":case"ee":return ci(_t(e.length,n),o);case"eo":return ci(i.ordinalNumber(n,{unit:"day"}),o);case"eee":return i.day(n,{width:"abbreviated",context:"formatting"})||i.day(n,{width:"short",context:"formatting"})||i.day(n,{width:"narrow",context:"formatting"});case"eeeee":return i.day(n,{width:"narrow",context:"formatting"});case"eeeeee":return i.day(n,{width:"short",context:"formatting"})||i.day(n,{width:"narrow",context:"formatting"});case"eeee":default:return i.day(n,{width:"wide",context:"formatting"})||i.day(n,{width:"abbreviated",context:"formatting"})||i.day(n,{width:"short",context:"formatting"})||i.day(n,{width:"narrow",context:"formatting"})}}validate(n,e){return e>=0&&e<=6}set(n,e,i,r){return n=ph(n,i,r),n.setHours(0,0,0,0),n}incompatibleTokens=["y","R","u","q","Q","M","L","I","d","D","E","i","c","t","T"]};var Iy=class extends Pe{priority=90;parse(n,e,i,r){let o=a=>{let s=Math.floor((a-1)/7)*7;return(a+r.weekStartsOn+6)%7+s};switch(e){case"c":case"cc":return ci(_t(e.length,n),o);case"co":return ci(i.ordinalNumber(n,{unit:"day"}),o);case"ccc":return i.day(n,{width:"abbreviated",context:"standalone"})||i.day(n,{width:"short",context:"standalone"})||i.day(n,{width:"narrow",context:"standalone"});case"ccccc":return i.day(n,{width:"narrow",context:"standalone"});case"cccccc":return i.day(n,{width:"short",context:"standalone"})||i.day(n,{width:"narrow",context:"standalone"});case"cccc":default:return i.day(n,{width:"wide",context:"standalone"})||i.day(n,{width:"abbreviated",context:"standalone"})||i.day(n,{width:"short",context:"standalone"})||i.day(n,{width:"narrow",context:"standalone"})}}validate(n,e){return e>=0&&e<=6}set(n,e,i,r){return n=ph(n,i,r),n.setHours(0,0,0,0),n}incompatibleTokens=["y","R","u","q","Q","M","L","I","d","D","E","i","e","t","T"]};function RV(t,n,e){let i=Ie(t,e?.in),r=MV(i,e),o=n-r;return oh(i,o,e)}var Ay=class extends Pe{priority=90;parse(n,e,i){let r=o=>o===0?7:o;switch(e){case"i":case"ii":return _t(e.length,n);case"io":return i.ordinalNumber(n,{unit:"day"});case"iii":return ci(i.day(n,{width:"abbreviated",context:"formatting"})||i.day(n,{width:"short",context:"formatting"})||i.day(n,{width:"narrow",context:"formatting"}),r);case"iiiii":return ci(i.day(n,{width:"narrow",context:"formatting"}),r);case"iiiiii":return ci(i.day(n,{width:"short",context:"formatting"})||i.day(n,{width:"narrow",context:"formatting"}),r);case"iiii":default:return ci(i.day(n,{width:"wide",context:"formatting"})||i.day(n,{width:"abbreviated",context:"formatting"})||i.day(n,{width:"short",context:"formatting"})||i.day(n,{width:"narrow",context:"formatting"}),r)}}validate(n,e){return e>=1&&e<=7}set(n,e,i){return n=RV(n,i),n.setHours(0,0,0,0),n}incompatibleTokens=["y","Y","u","q","Q","M","L","w","d","D","E","e","c","t","T"]};var Oy=class extends Pe{priority=80;parse(n,e,i){switch(e){case"a":case"aa":case"aaa":return i.dayPeriod(n,{width:"abbreviated",context:"formatting"})||i.dayPeriod(n,{width:"narrow",context:"formatting"});case"aaaaa":return i.dayPeriod(n,{width:"narrow",context:"formatting"});case"aaaa":default:return i.dayPeriod(n,{width:"wide",context:"formatting"})||i.dayPeriod(n,{width:"abbreviated",context:"formatting"})||i.dayPeriod(n,{width:"narrow",context:"formatting"})}}set(n,e,i){return n.setHours(hh(i),0,0,0),n}incompatibleTokens=["b","B","H","k","t","T"]};var Ry=class extends Pe{priority=80;parse(n,e,i){switch(e){case"b":case"bb":case"bbb":return i.dayPeriod(n,{width:"abbreviated",context:"formatting"})||i.dayPeriod(n,{width:"narrow",context:"formatting"});case"bbbbb":return i.dayPeriod(n,{width:"narrow",context:"formatting"});case"bbbb":default:return i.dayPeriod(n,{width:"wide",context:"formatting"})||i.dayPeriod(n,{width:"abbreviated",context:"formatting"})||i.dayPeriod(n,{width:"narrow",context:"formatting"})}}set(n,e,i){return n.setHours(hh(i),0,0,0),n}incompatibleTokens=["a","B","H","k","t","T"]};var Py=class extends Pe{priority=80;parse(n,e,i){switch(e){case"B":case"BB":case"BBB":return i.dayPeriod(n,{width:"abbreviated",context:"formatting"})||i.dayPeriod(n,{width:"narrow",context:"formatting"});case"BBBBB":return i.dayPeriod(n,{width:"narrow",context:"formatting"});case"BBBB":default:return i.dayPeriod(n,{width:"wide",context:"formatting"})||i.dayPeriod(n,{width:"abbreviated",context:"formatting"})||i.dayPeriod(n,{width:"narrow",context:"formatting"})}}set(n,e,i){return n.setHours(hh(i),0,0,0),n}incompatibleTokens=["a","b","t","T"]};var Fy=class extends Pe{priority=70;parse(n,e,i){switch(e){case"h":return Nt(Bt.hour12h,n);case"ho":return i.ordinalNumber(n,{unit:"hour"});default:return _t(e.length,n)}}validate(n,e){return e>=1&&e<=12}set(n,e,i){let r=n.getHours()>=12;return r&&i<12?n.setHours(i+12,0,0,0):!r&&i===12?n.setHours(0,0,0,0):n.setHours(i,0,0,0),n}incompatibleTokens=["H","K","k","t","T"]};var Ny=class extends Pe{priority=70;parse(n,e,i){switch(e){case"H":return Nt(Bt.hour23h,n);case"Ho":return i.ordinalNumber(n,{unit:"hour"});default:return _t(e.length,n)}}validate(n,e){return e>=0&&e<=23}set(n,e,i){return n.setHours(i,0,0,0),n}incompatibleTokens=["a","b","h","K","k","t","T"]};var Ly=class extends Pe{priority=70;parse(n,e,i){switch(e){case"K":return Nt(Bt.hour11h,n);case"Ko":return i.ordinalNumber(n,{unit:"hour"});default:return _t(e.length,n)}}validate(n,e){return e>=0&&e<=11}set(n,e,i){return n.getHours()>=12&&i<12?n.setHours(i+12,0,0,0):n.setHours(i,0,0,0),n}incompatibleTokens=["h","H","k","t","T"]};var Vy=class extends Pe{priority=70;parse(n,e,i){switch(e){case"k":return Nt(Bt.hour24h,n);case"ko":return i.ordinalNumber(n,{unit:"hour"});default:return _t(e.length,n)}}validate(n,e){return e>=1&&e<=24}set(n,e,i){let r=i<=24?i%24:i;return n.setHours(r,0,0,0),n}incompatibleTokens=["a","b","h","H","K","t","T"]};var By=class extends Pe{priority=60;parse(n,e,i){switch(e){case"m":return Nt(Bt.minute,n);case"mo":return i.ordinalNumber(n,{unit:"minute"});default:return _t(e.length,n)}}validate(n,e){return e>=0&&e<=59}set(n,e,i){return n.setMinutes(i,0,0),n}incompatibleTokens=["t","T"]};var jy=class extends Pe{priority=50;parse(n,e,i){switch(e){case"s":return Nt(Bt.second,n);case"so":return i.ordinalNumber(n,{unit:"second"});default:return _t(e.length,n)}}validate(n,e){return e>=0&&e<=59}set(n,e,i){return n.setSeconds(i,0),n}incompatibleTokens=["t","T"]};var Hy=class extends Pe{priority=30;parse(n,e){let i=r=>Math.trunc(r*Math.pow(10,-e.length+3));return ci(_t(e.length,n),i)}set(n,e,i){return n.setMilliseconds(i),n}incompatibleTokens=["t","T"]};var zy=class extends Pe{priority=10;parse(n,e){switch(e){case"X":return Zo(Ko.basicOptionalMinutes,n);case"XX":return Zo(Ko.basic,n);case"XXXX":return Zo(Ko.basicOptionalSeconds,n);case"XXXXX":return Zo(Ko.extendedOptionalSeconds,n);case"XXX":default:return Zo(Ko.extended,n)}}set(n,e,i){return e.timestampIsSet?n:rt(n,n.getTime()-eu(n)-i)}incompatibleTokens=["t","T","x"]};var Uy=class extends Pe{priority=10;parse(n,e){switch(e){case"x":return Zo(Ko.basicOptionalMinutes,n);case"xx":return Zo(Ko.basic,n);case"xxxx":return Zo(Ko.basicOptionalSeconds,n);case"xxxxx":return Zo(Ko.extendedOptionalSeconds,n);case"xxx":default:return Zo(Ko.extended,n)}}set(n,e,i){return e.timestampIsSet?n:rt(n,n.getTime()-eu(n)-i)}incompatibleTokens=["t","T","X"]};var $y=class extends Pe{priority=40;parse(n){return hy(n)}set(n,e,i){return[rt(n,i*1e3),{timestampIsSet:!0}]}incompatibleTokens="*"};var Wy=class extends Pe{priority=20;parse(n){return hy(n)}set(n,e,i){return[rt(n,i),{timestampIsSet:!0}]}incompatibleTokens="*"};var PV={G:new my,y:new gy,Y:new _y,R:new by,u:new vy,Q:new yy,q:new xy,M:new Cy,L:new wy,w:new Dy,I:new Ey,d:new My,D:new ky,E:new Sy,e:new Ty,c:new Iy,i:new Ay,a:new Oy,b:new Ry,B:new Py,h:new Fy,H:new Ny,K:new Ly,k:new Vy,m:new By,s:new jy,S:new Hy,X:new zy,x:new Uy,t:new $y,T:new Wy};var xX=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,CX=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,wX=/^'([^]*?)'?$/,DX=/''/g,EX=/\S/,MX=/[a-zA-Z]/;function FV(t,n,e,i){let r=()=>rt(i?.in||e,NaN),o=EV(),a=i?.locale??o.locale??tu,s=i?.firstWeekContainsDate??i?.locale?.options?.firstWeekContainsDate??o.firstWeekContainsDate??o.locale?.options?.firstWeekContainsDate??1,l=i?.weekStartsOn??i?.locale?.options?.weekStartsOn??o.weekStartsOn??o.locale?.options?.weekStartsOn??0;if(!n)return t?r():Ie(e,i?.in);let c={firstWeekContainsDate:s,weekStartsOn:l,locale:a},d=[new uy(i?.in,e)],m=n.match(CX).map(x=>{let D=x[0];if(D in Zf){let P=Zf[D];return P(x,a.formatLong)}return x}).join("").match(xX),f=[];for(let x of m){!i?.useAdditionalWeekYearTokens&&oy(x)&&Xf(x,n,t),!i?.useAdditionalDayOfYearTokens&&ry(x)&&Xf(x,n,t);let D=x[0],P=PV[D];if(P){let{incompatibleTokens:W}=P;if(Array.isArray(W)){let K=f.find(re=>W.includes(re.token)||re.token===D);if(K)throw new RangeError(`The format string mustn't contain \`${K.fullToken}\` and \`${x}\` at the same time`)}else if(P.incompatibleTokens==="*"&&f.length>0)throw new RangeError(`The format string mustn't contain \`${x}\` and any other token at the same time`);f.push({token:D,fullToken:x});let Z=P.run(t,x,a.match,c);if(!Z)return r();d.push(Z.setter),t=Z.rest}else{if(D.match(MX))throw new RangeError("Format string contains an unescaped latin alphabet character `"+D+"`");if(x==="''"?x="'":D==="'"&&(x=kX(x)),t.indexOf(x)===0)t=t.slice(x.length);else return r()}}if(t.length>0&&EX.test(t))return r();let b=d.map(x=>x.priority).sort((x,D)=>D-x).filter((x,D,P)=>P.indexOf(x)===D).map(x=>d.filter(D=>D.priority===x).sort((D,P)=>P.subPriority-D.subPriority)).map(x=>x[0]),v=Ie(e,i?.in);if(isNaN(+v))return r();let w={};for(let x of b){if(!x.validate(v,c))return r();let D=x.set(v,w,c);Array.isArray(D)?(v=D[0],Object.assign(w,D[1])):v=D}return v}function kX(t){return t.match(wX)[1].replace(DX,"'")}function NV(t,n,e){let[i,r]=ty(e?.in,t,n);return+Zn(i,e)==+Zn(r,e)}function Nk(t,n){let e=()=>rt(n?.in,NaN),i=n?.additionalDigits??2,r=AX(t),o;if(r.date){let c=OX(r.date,i);o=RX(c.restDateString,c.year)}if(!o||isNaN(+o))return e();let a=+o,s=0,l;if(r.time&&(s=PX(r.time),isNaN(s)))return e();if(r.timezone){if(l=FX(r.timezone),isNaN(l))return e()}else{let c=new Date(a+s),d=Ie(0,n?.in);return d.setFullYear(c.getUTCFullYear(),c.getUTCMonth(),c.getUTCDate()),d.setHours(c.getUTCHours(),c.getUTCMinutes(),c.getUTCSeconds(),c.getUTCMilliseconds()),d}return Ie(a+s+l,n?.in)}var Gy={dateTimeDelimiter:/[T ]/,timeZoneDelimiter:/[Z ]/i,timezone:/([Z+-].*)$/},SX=/^-?(?:(\d{3})|(\d{2})(?:-?(\d{2}))?|W(\d{2})(?:-?(\d{1}))?|)$/,TX=/^(\d{2}(?:[.,]\d*)?)(?::?(\d{2}(?:[.,]\d*)?))?(?::?(\d{2}(?:[.,]\d*)?))?$/,IX=/^([+-])(\d{2})(?::?(\d{2}))?$/;function AX(t){let n={},e=t.split(Gy.dateTimeDelimiter),i;if(e.length>2)return n;if(/:/.test(e[0])?i=e[0]:(n.date=e[0],i=e[1],Gy.timeZoneDelimiter.test(n.date)&&(n.date=t.split(Gy.timeZoneDelimiter)[0],i=t.substr(n.date.length,t.length))),i){let r=Gy.timezone.exec(i);r?(n.time=i.replace(r[1],""),n.timezone=r[1]):n.time=i}return n}function OX(t,n){let e=new RegExp("^(?:(\\d{4}|[+-]\\d{"+(4+n)+"})|(\\d{2}|[+-]\\d{"+(2+n)+"})$)"),i=t.match(e);if(!i)return{year:NaN,restDateString:""};let r=i[1]?parseInt(i[1]):null,o=i[2]?parseInt(i[2]):null;return{year:o===null?r:o*100,restDateString:t.slice((i[1]||i[2]).length)}}function RX(t,n){if(n===null)return new Date(NaN);let e=t.match(SX);if(!e)return new Date(NaN);let i=!!e[4],r=Jf(e[1]),o=Jf(e[2])-1,a=Jf(e[3]),s=Jf(e[4]),l=Jf(e[5])-1;if(i)return jX(n,s,l)?NX(n,s,l):new Date(NaN);{let c=new Date(0);return!VX(n,o,a)||!BX(n,r)?new Date(NaN):(c.setUTCFullYear(n,o,Math.max(r,a)),c)}}function Jf(t){return t?parseInt(t):1}function PX(t){let n=t.match(TX);if(!n)return NaN;let e=Fk(n[1]),i=Fk(n[2]),r=Fk(n[3]);return HX(e,i,r)?e*Jd+i*Xd+r*1e3:NaN}function Fk(t){return t&&parseFloat(t.replace(",","."))||0}function FX(t){if(t==="Z")return 0;let n=t.match(IX);if(!n)return 0;let e=n[1]==="+"?-1:1,i=parseInt(n[2]),r=n[3]&&parseInt(n[3])||0;return zX(i,r)?e*(i*Jd+r*Xd):NaN}function NX(t,n,e){let i=new Date(0);i.setUTCFullYear(t,0,4);let r=i.getUTCDay()||7,o=(n-1)*7+e+1-r;return i.setUTCDate(i.getUTCDate()+o),i}var LX=[31,null,31,30,31,30,31,31,30,31,30,31];function LV(t){return t%400===0||t%4===0&&t%100!==0}function VX(t,n,e){return n>=0&&n<=11&&e>=1&&e<=(LX[n]||(LV(t)?29:28))}function BX(t,n){return n>=1&&n<=(LV(t)?366:365)}function jX(t,n,e){return n>=1&&n<=53&&e>=0&&e<=6}function HX(t,n,e){return t===24?n===0&&e===0:e>=0&&e<60&&n>=0&&n<60&&t>=0&&t<25}function zX(t,n){return n>=0&&n<=59}function VV(t,n,e){let i=Ie(t,e?.in),r=i.getFullYear(),o=i.getDate(),a=rt(e?.in||t,0);a.setFullYear(r,n,15),a.setHours(0,0,0,0);let s=ay(a);return i.setMonth(n,Math.min(o,s)),i}function BV(t,n,e){let i=Ie(t,e?.in);return isNaN(+i)?rt(e?.in||t,NaN):(n.year!=null&&i.setFullYear(n.year),n.month!=null&&(i=VV(i,n.month)),n.date!=null&&i.setDate(n.date),n.hours!=null&&i.setHours(n.hours),n.minutes!=null&&i.setMinutes(n.minutes),n.seconds!=null&&i.setSeconds(n.seconds),n.milliseconds!=null&&i.setMilliseconds(n.milliseconds),i)}function Lk(t,n){let e=Array(t);for(let i=0;i{class t extends Li{constructor(){super();let e=u(ys,{optional:!0});this.setLocale(e)}getYear(e){return TV(e)}getMonth(e){return kV(e)}getDate(e){return wV(e)}getDayOfWeek(e){return DV(e)}getMonthNames(e){let i=UX[e];return Lk(12,r=>this.format(new Date(2017,r,1),i))}getDateNames(){let e=typeof Intl<"u"?new Intl.DateTimeFormat(this.locale.code,{day:"numeric",timeZone:"utc"}):null;return Lk(31,i=>{if(e){let r=new Date;return r.setUTCFullYear(2017,0,i+1),r.setUTCHours(0,0,0,0),e.format(r).replace(/[\u200e\u200f]/g,"")}return i+""})}getDayOfWeekNames(e){let i=$X[e];return Lk(7,r=>this.format(new Date(2017,0,r+1),i))}getYearName(e){return this.format(e,"y")}getFirstDayOfWeek(){return this.locale.options?.weekStartsOn??0}getNumDaysInMonth(e){return ay(e)}clone(e){return new Date(e.getTime())}createDate(e,i,r){let o=new Date;return o.setFullYear(e,i,r),o.setHours(0,0,0,0),o.getMonth()!=i,o}today(){return new Date}parse(e,i){return this._parse(e,i)}format(e,i){if(!this.isValid(e))throw Error("DateFnsAdapter: Cannot format invalid date.");return xV(e,i,{locale:this.locale})}addCalendarYears(e,i){return sV(e,i)}addCalendarMonths(e,i){return ah(e,i)}addCalendarDays(e,i){return oh(e,i)}toIso8601(e){return CV(e,{representation:"date"})}deserialize(e){if(typeof e=="string"){if(!e)return null;let i=Nk(e);if(this.isValid(i))return i}return super.deserialize(e)}isDateInstance(e){return iy(e)}isValid(e){return sh(e)}invalid(){return new Date(NaN)}setTime(e,i,r,o){return BV(this.clone(e),{hours:i,minutes:r,seconds:o,milliseconds:0})}getHours(e){return sy(e)}getMinutes(e){return ly(e)}getSeconds(e){return SV(e)}parseTime(e,i){return this._parse(e,i,!1)}addSeconds(e,i){return aV(e,i)}_parse(e,i,r=!0){if(typeof e=="string"&&e.length>0){if(r){let a=Nk(e);if(this.isValid(a))return a}let o=Array.isArray(i)?i:[i];if(!i.length)throw Error("Formats array must not be empty.");for(let a of o){let s=FV(e,a,new Date,{locale:this.locale});if(this.isValid(s))return s}return this.invalid()}else{if(typeof e=="number")return new Date(e);if(e instanceof Date)return this.clone(e)}return null}static \u0275fac=function(i){return new(i||t)};static \u0275prov=O({token:t,factory:t.\u0275fac})}return t})(),WX={parse:{dateInput:"P",timeInput:"p"},display:{dateInput:"P",timeInput:"p",monthYearLabel:"LLL uuuu",dateA11yLabel:"PP",monthYearA11yLabel:"LLLL uuuu",timeOptionLabel:"p"}};function jV(t=WX){return[{provide:Li,useClass:Vk,deps:[ys]},{provide:xs,useValue:t}]}var GX=["*"];var qX=[[["","mat-card-avatar",""],["","matCardAvatar",""]],[["mat-card-title"],["mat-card-subtitle"],["","mat-card-title",""],["","mat-card-subtitle",""],["","matCardTitle",""],["","matCardSubtitle",""]],"*"],YX=["[mat-card-avatar], [matCardAvatar]",`mat-card-title, mat-card-subtitle, [mat-card-title], [mat-card-subtitle], - [matCardTitle], [matCardSubtitle]`,"*"],Bk=new T("MAT_CARD_CONFIG"),zt=(()=>{class t{appearance;constructor(){let e=u(Bk,{optional:!0});this.appearance=e?.appearance||"raised"}static \u0275fac=function(i){return new(i||t)};static \u0275cmp=E({type:t,selectors:[["mat-card"]],hostAttrs:[1,"mat-mdc-card","mdc-card"],hostVars:8,hostBindings:function(i,r){i&2&&G("mat-mdc-card-outlined",r.appearance==="outlined")("mdc-card--outlined",r.appearance==="outlined")("mat-mdc-card-filled",r.appearance==="filled")("mdc-card--filled",r.appearance==="filled")},inputs:{appearance:"appearance"},exportAs:["matCard"],ngContentSelectors:WX,decls:1,vars:0,template:function(i,r){i&1&&(Me(),oe(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 rgba(0,0,0,0);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 t})(),Xt=(()=>{class t{static \u0275fac=function(i){return new(i||t)};static \u0275dir=F({type:t,selectors:[["mat-card-title"],["","mat-card-title",""],["","matCardTitle",""]],hostAttrs:[1,"mat-mdc-card-title"]})}return t})();var Ut=(()=>{class t{static \u0275fac=function(i){return new(i||t)};static \u0275dir=F({type:t,selectors:[["mat-card-content"]],hostAttrs:[1,"mat-mdc-card-content"]})}return t})(),jV=(()=>{class t{static \u0275fac=function(i){return new(i||t)};static \u0275dir=F({type:t,selectors:[["mat-card-subtitle"],["","mat-card-subtitle",""],["","matCardSubtitle",""]],hostAttrs:[1,"mat-mdc-card-subtitle"]})}return t})();var Jt=(()=>{class t{static \u0275fac=function(i){return new(i||t)};static \u0275cmp=E({type:t,selectors:[["mat-card-header"]],hostAttrs:[1,"mat-mdc-card-header"],ngContentSelectors:qX,decls:4,vars:0,consts:[[1,"mat-mdc-card-header-text"]],template:function(i,r){i&1&&(Me(GX),oe(0),ft(1,"div",0),oe(2,1),vt(),oe(3,2))},encapsulation:2,changeDetection:0})}return t})();var HV=(()=>{class t{static \u0275fac=function(i){return new(i||t)};static \u0275dir=F({type:t,selectors:[["","mat-card-avatar",""],["","matCardAvatar",""]],hostAttrs:[1,"mat-mdc-card-avatar"]})}return t})();var $t=(()=>{class t{static \u0275fac=function(i){return new(i||t)};static \u0275mod=ee({type:t});static \u0275inj=J({imports:[we,we]})}return t})();var jk=class{_box;_destroyed=new z;_resizeSubject=new z;_resizeObserver;_elementObservables=new Map;constructor(n){this._box=n,typeof ResizeObserver<"u"&&(this._resizeObserver=new ResizeObserver(e=>this._resizeSubject.next(e)))}observe(n){return this._elementObservables.has(n)||this._elementObservables.set(n,new Fe(e=>{let i=this._resizeSubject.subscribe(e);return this._resizeObserver?.observe(n,{box:this._box}),()=>{this._resizeObserver?.unobserve(n),i.unsubscribe(),this._elementObservables.delete(n)}}).pipe(ce(e=>e.some(i=>i.target===n)),dd({bufferSize:1,refCount:!0}),Te(this._destroyed))),this._elementObservables.get(n)}destroy(){this._destroyed.next(),this._destroyed.complete(),this._resizeSubject.complete(),this._elementObservables.clear()}},qy=(()=>{class t{_cleanupErrorListener;_observers=new Map;_ngZone=u(ae);constructor(){typeof ResizeObserver<"u"}ngOnDestroy(){for(let[,e]of this._observers)e.destroy();this._observers.clear(),this._cleanupErrorListener?.()}observe(e,i){let r=i?.box||"content-box";return this._observers.has(r)||this._observers.set(r,new jk(r)),this._observers.get(r).observe(e)}static \u0275fac=function(i){return new(i||t)};static \u0275prov=O({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();var YX=["notch"],QX=["matFormFieldNotchedOutline",""],KX=["*"],zV=["iconPrefixContainer"],UV=["textPrefixContainer"],$V=["iconSuffixContainer"],WV=["textSuffixContainer"],ZX=["textField"],XX=["*",[["mat-label"]],[["","matPrefix",""],["","matIconPrefix",""]],[["","matTextPrefix",""]],[["","matTextSuffix",""]],[["","matSuffix",""],["","matIconSuffix",""]],[["mat-error"],["","matError",""]],[["mat-hint",3,"align","end"]],[["mat-hint","align","end"]]],JX=["*","mat-label","[matPrefix], [matIconPrefix]","[matTextPrefix]","[matTextSuffix]","[matSuffix], [matIconSuffix]","mat-error, [matError]","mat-hint:not([align='end'])","mat-hint[align='end']"];function eJ(t,n){t&1&&k(0,"span",21)}function tJ(t,n){if(t&1&&(h(0,"label",20),oe(1,1),N(2,eJ,1,0,"span",21),p()),t&2){let e=C(2);y("floating",e._shouldLabelFloat())("monitorResize",e._hasOutline())("id",e._labelId),X("for",e._control.disableAutomaticLabeling?null:e._control.id),g(2),L(!e.hideRequiredMarker&&e._control.required?2:-1)}}function iJ(t,n){if(t&1&&N(0,tJ,3,5,"label",20),t&2){let e=C();L(e._hasFloatingLabel()?0:-1)}}function nJ(t,n){t&1&&k(0,"div",7)}function rJ(t,n){}function oJ(t,n){if(t&1&&R(0,rJ,0,0,"ng-template",13),t&2){C(2);let e=Se(1);y("ngTemplateOutlet",e)}}function aJ(t,n){if(t&1&&(h(0,"div",9),N(1,oJ,1,1,null,13),p()),t&2){let e=C();y("matFormFieldNotchedOutlineOpen",e._shouldLabelFloat()),g(),L(e._forceDisplayInfixLabel()?-1:1)}}function sJ(t,n){t&1&&(h(0,"div",10,2),oe(2,2),p())}function lJ(t,n){t&1&&(h(0,"div",11,3),oe(2,3),p())}function cJ(t,n){}function dJ(t,n){if(t&1&&R(0,cJ,0,0,"ng-template",13),t&2){C();let e=Se(1);y("ngTemplateOutlet",e)}}function uJ(t,n){t&1&&(h(0,"div",14,4),oe(2,4),p())}function mJ(t,n){t&1&&(h(0,"div",15,5),oe(2,5),p())}function hJ(t,n){t&1&&k(0,"div",16)}function pJ(t,n){t&1&&(h(0,"div",18),oe(1,6),p())}function fJ(t,n){if(t&1&&(h(0,"mat-hint",22),_(1),p()),t&2){let e=C(2);y("id",e._hintLabelId),g(),H(e.hintLabel)}}function gJ(t,n){if(t&1&&(h(0,"div",19),N(1,fJ,2,2,"mat-hint",22),oe(2,7),k(3,"div",23),oe(4,8),p()),t&2){let e=C();g(),L(e.hintLabel?1:-1)}}var sn=(()=>{class t{static \u0275fac=function(i){return new(i||t)};static \u0275dir=F({type:t,selectors:[["mat-label"]]})}return t})(),Hk=new T("MatError"),xo=(()=>{class t{id=u(Ze).getId("mat-mdc-error-");constructor(){}static \u0275fac=function(i){return new(i||t)};static \u0275dir=F({type:t,selectors:[["mat-error"],["","matError",""]],hostAttrs:[1,"mat-mdc-form-field-error","mat-mdc-form-field-bottom-align"],hostVars:1,hostBindings:function(i,r){i&2&&si("id",r.id)},inputs:{id:"id"},features:[Ce([{provide:Hk,useExisting:t}])]})}return t})(),eg=(()=>{class t{align="start";id=u(Ze).getId("mat-mdc-hint-");static \u0275fac=function(i){return new(i||t)};static \u0275dir=F({type:t,selectors:[["mat-hint"]],hostAttrs:[1,"mat-mdc-form-field-hint","mat-mdc-form-field-bottom-align"],hostVars:4,hostBindings:function(i,r){i&2&&(si("id",r.id),X("align",null),G("mat-mdc-form-field-hint-end",r.align==="end"))},inputs:{align:"align",id:"id"}})}return t})(),zk=new T("MatPrefix"),nu=(()=>{class t{set _isTextSelector(e){this._isText=!0}_isText=!1;static \u0275fac=function(i){return new(i||t)};static \u0275dir=F({type:t,selectors:[["","matPrefix",""],["","matIconPrefix",""],["","matTextPrefix",""]],inputs:{_isTextSelector:[0,"matTextPrefix","_isTextSelector"]},features:[Ce([{provide:zk,useExisting:t}])]})}return t})(),Uk=new T("MatSuffix"),ru=(()=>{class t{set _isTextSelector(e){this._isText=!0}_isText=!1;static \u0275fac=function(i){return new(i||t)};static \u0275dir=F({type:t,selectors:[["","matSuffix",""],["","matIconSuffix",""],["","matTextSuffix",""]],inputs:{_isTextSelector:[0,"matTextSuffix","_isTextSelector"]},features:[Ce([{provide:Uk,useExisting:t}])]})}return t})(),XV=new T("FloatingLabelParent"),GV=(()=>{class t{_elementRef=u(q);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=u(qy);_ngZone=u(ae);_parent=u(XV);_resizeSubscription=new ke;constructor(){}ngOnDestroy(){this._resizeSubscription.unsubscribe()}getWidth(){return _J(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(i){return new(i||t)};static \u0275dir=F({type:t,selectors:[["label","matFormFieldFloatingLabel",""]],hostAttrs:[1,"mdc-floating-label","mat-mdc-floating-label"],hostVars:2,hostBindings:function(i,r){i&2&&G("mdc-floating-label--float-above",r.floating)},inputs:{floating:"floating",monitorResize:"monitorResize"}})}return t})();function _J(t){let n=t;if(n.offsetParent!==null)return n.scrollWidth;let e=n.cloneNode(!0);e.style.setProperty("position","absolute"),e.style.setProperty("transform","translate(-9999px, -9999px)"),document.documentElement.appendChild(e);let i=e.scrollWidth;return e.remove(),i}var qV="mdc-line-ripple--active",Yy="mdc-line-ripple--deactivating",YV=(()=>{class t{_elementRef=u(q);_cleanupTransitionEnd;constructor(){let e=u(ae),i=u(je);e.runOutsideAngular(()=>{this._cleanupTransitionEnd=i.listen(this._elementRef.nativeElement,"transitionend",this._handleTransitionEnd)})}activate(){let e=this._elementRef.nativeElement.classList;e.remove(Yy),e.add(qV)}deactivate(){this._elementRef.nativeElement.classList.add(Yy)}_handleTransitionEnd=e=>{let i=this._elementRef.nativeElement.classList,r=i.contains(Yy);e.propertyName==="opacity"&&r&&i.remove(qV,Yy)};ngOnDestroy(){this._cleanupTransitionEnd()}static \u0275fac=function(i){return new(i||t)};static \u0275dir=F({type:t,selectors:[["div","matFormFieldLineRipple",""]],hostAttrs:[1,"mdc-line-ripple"]})}return t})(),QV=(()=>{class t{_elementRef=u(q);_ngZone=u(ae);open=!1;_notch;ngAfterViewInit(){let e=this._elementRef.nativeElement,i=e.querySelector(".mdc-floating-label");i?(e.classList.add("mdc-notched-outline--upgraded"),typeof requestAnimationFrame=="function"&&(i.style.transitionDuration="0s",this._ngZone.runOutsideAngular(()=>{requestAnimationFrame(()=>i.style.transitionDuration="")}))):e.classList.add("mdc-notched-outline--no-label")}_setNotchWidth(e){let i=this._notch.nativeElement;!this.open||!e?i.style.width="":i.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(i){return new(i||t)};static \u0275cmp=E({type:t,selectors:[["div","matFormFieldNotchedOutline",""]],viewQuery:function(i,r){if(i&1&&ie(YX,5),i&2){let o;B(o=j())&&(r._notch=o.first)}},hostAttrs:[1,"mdc-notched-outline"],hostVars:2,hostBindings:function(i,r){i&2&&G("mdc-notched-outline--notched",r.open)},inputs:{open:[0,"matFormFieldNotchedOutlineOpen","open"]},attrs:QX,ngContentSelectors:KX,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(i,r){i&1&&(Me(),ai(0,"div",1),ft(1,"div",2,0),oe(3),vt(),ai(4,"div",3))},encapsulation:2,changeDetection:0})}return t})(),Ra=(()=>{class t{value;stateChanges;id;placeholder;ngControl;focused;empty;shouldLabelFloat;required;disabled;errorState;controlType;autofilled;userAriaDescribedBy;disableAutomaticLabeling;describedByIds;static \u0275fac=function(i){return new(i||t)};static \u0275dir=F({type:t})}return t})();var Xo=new T("MatFormField"),JV=new T("MAT_FORM_FIELD_DEFAULT_OPTIONS"),KV="fill",bJ="auto",ZV="fixed",vJ="translateY(-50%)",Oi=(()=>{class t{_elementRef=u(q);_changeDetectorRef=u(ye);_platform=u(qe);_idGenerator=u(Ze);_ngZone=u(ae);_defaults=u(JV,{optional:!0});_currentDirection;_textField;_iconPrefixContainer;_textPrefixContainer;_iconSuffixContainer;_textSuffixContainer;_floatingLabel;_notchedOutline;_lineRipple;_iconPrefixContainerSignal=qn("iconPrefixContainer");_textPrefixContainerSignal=qn("textPrefixContainer");_iconSuffixContainerSignal=qn("iconSuffixContainer");_textSuffixContainerSignal=qn("textSuffixContainer");_prefixSuffixContainers=Zt(()=>[this._iconPrefixContainerSignal(),this._textPrefixContainerSignal(),this._iconSuffixContainerSignal(),this._textSuffixContainerSignal()].map(e=>e?.nativeElement).filter(e=>e!==void 0));_formFieldControl;_prefixChildren;_suffixChildren;_errorChildren;_hintChildren;_labelChild=fr(sn);get hideRequiredMarker(){return this._hideRequiredMarker}set hideRequiredMarker(e){this._hideRequiredMarker=Ai(e)}_hideRequiredMarker=!1;color="primary";get floatLabel(){return this._floatLabel||this._defaults?.floatLabel||bJ}set floatLabel(e){e!==this._floatLabel&&(this._floatLabel=e,this._changeDetectorRef.markForCheck())}_floatLabel;get appearance(){return this._appearanceSignal()}set appearance(e){let i=e||this._defaults?.appearance||KV;this._appearanceSignal.set(i)}_appearanceSignal=he(KV);get subscriptSizing(){return this._subscriptSizing||this._defaults?.subscriptSizing||ZV}set subscriptSizing(e){this._subscriptSizing=e||this._defaults?.subscriptSizing||ZV}_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 z;_isFocused=null;_explicitFormFieldControl;_previousControl=null;_previousControlValidatorFn=null;_stateChanges;_valueChanges;_describedByChanges;_outlineLabelOffsetResizeObserver=null;_animationsDisabled=Ye();constructor(){let e=this._defaults,i=u(Vt);e&&(e.appearance&&(this.appearance=e.appearance),this._hideRequiredMarker=!!e?.hideRequiredMarker,e.color&&(this.color=e.color)),Ar(()=>this._currentDirection=i.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=Zt(()=>this._hasFloatingLabel()?this._labelId:null);getConnectedOverlayOrigin(){return this._textField||this._elementRef}_animateAndLockLabel(){this._hasFloatingLabel()&&(this.floatLabel="always")}_initializeControl(e){let i=this._control,r="mat-mdc-form-field-type-";e&&this._elementRef.nativeElement.classList.remove(r+e.controlType),i.controlType&&this._elementRef.nativeElement.classList.add(r+i.controlType),this._stateChanges?.unsubscribe(),this._stateChanges=i.stateChanges.subscribe(()=>{this._updateFocusState(),this._changeDetectorRef.markForCheck()}),this._describedByChanges?.unsubscribe(),this._describedByChanges=i.stateChanges.pipe(He([void 0,void 0]),se(()=>[i.errorState,i.userAriaDescribedBy]),db(),ce(([[o,a],[s,l]])=>o!==s||a!==l)).subscribe(()=>this._syncDescribedByIds()),this._valueChanges?.unsubscribe(),i.ngControl&&i.ngControl.valueChanges&&(this._valueChanges=i.ngControl.valueChanges.pipe(Te(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(),Je(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(){l2({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=Zt(()=>!!this._labelChild());_shouldLabelFloat(){return this._hasFloatingLabel()?this._control.shouldLabelFloat||this._shouldAlwaysFloat():!1}_shouldForward(e){let i=this._control?this._control.ngControl:null;return i&&i[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 o=this._hintChildren?this._hintChildren.find(s=>s.align==="start"):null,a=this._hintChildren?this._hintChildren.find(s=>s.align==="end"):null;o?e.push(o.id):this._hintLabel&&e.push(this._hintLabelId),a&&e.push(a.id)}else this._errorChildren&&e.push(...this._errorChildren.map(o=>o.id));let i=this._control.describedByIds,r;if(i){let o=this._describedByIds||e;r=e.concat(i.filter(a=>a&&!o.includes(a)))}else r=e;this._control.setDescribedByIds(r),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,i=this._textPrefixContainer?.nativeElement,r=this._iconSuffixContainer?.nativeElement,o=this._textSuffixContainer?.nativeElement,a=e?.getBoundingClientRect().width??0,s=i?.getBoundingClientRect().width??0,l=r?.getBoundingClientRect().width??0,c=o?.getBoundingClientRect().width??0,d=this._currentDirection==="rtl"?"-1":"1",m=`${a+s}px`,b=`calc(${d} * (${m} + var(--mat-mdc-form-field-label-offset-x, 0px)))`,v=`var(--mat-mdc-form-field-label-transform, ${vJ} translateX(${b}))`,w=a+s+l+c;return[v,w]}_writeOutlinedLabelStyles(e){if(e!==null){let[i,r]=e;this._floatingLabel&&(this._floatingLabel.element.style.transform=i),r!==null&&this._notchedOutline?._setMaxWidth(r)}}_isAttachedToDom(){let e=this._elementRef.nativeElement;if(e.getRootNode){let i=e.getRootNode();return i&&i!==e}return document.documentElement.contains(e)}static \u0275fac=function(i){return new(i||t)};static \u0275cmp=E({type:t,selectors:[["mat-form-field"]],contentQueries:function(i,r,o){if(i&1&&(Rn(o,r._labelChild,sn,5),xe(o,Ra,5),xe(o,zk,5),xe(o,Uk,5),xe(o,Hk,5),xe(o,eg,5)),i&2){Ho();let a;B(a=j())&&(r._formFieldControl=a.first),B(a=j())&&(r._prefixChildren=a),B(a=j())&&(r._suffixChildren=a),B(a=j())&&(r._errorChildren=a),B(a=j())&&(r._hintChildren=a)}},viewQuery:function(i,r){if(i&1&&(Pn(r._iconPrefixContainerSignal,zV,5),Pn(r._textPrefixContainerSignal,UV,5),Pn(r._iconSuffixContainerSignal,$V,5),Pn(r._textSuffixContainerSignal,WV,5),ie(ZX,5),ie(zV,5),ie(UV,5),ie($V,5),ie(WV,5),ie(GV,5),ie(QV,5),ie(YV,5)),i&2){Ho(4);let o;B(o=j())&&(r._textField=o.first),B(o=j())&&(r._iconPrefixContainer=o.first),B(o=j())&&(r._textPrefixContainer=o.first),B(o=j())&&(r._iconSuffixContainer=o.first),B(o=j())&&(r._textSuffixContainer=o.first),B(o=j())&&(r._floatingLabel=o.first),B(o=j())&&(r._notchedOutline=o.first),B(o=j())&&(r._lineRipple=o.first)}},hostAttrs:[1,"mat-mdc-form-field"],hostVars:38,hostBindings:function(i,r){i&2&&G("mat-mdc-form-field-label-always-float",r._shouldAlwaysFloat())("mat-mdc-form-field-has-icon-prefix",r._hasIconPrefix)("mat-mdc-form-field-has-icon-suffix",r._hasIconSuffix)("mat-form-field-invalid",r._control.errorState)("mat-form-field-disabled",r._control.disabled)("mat-form-field-autofilled",r._control.autofilled)("mat-form-field-appearance-fill",r.appearance=="fill")("mat-form-field-appearance-outline",r.appearance=="outline")("mat-form-field-hide-placeholder",r._hasFloatingLabel()&&!r._shouldLabelFloat())("mat-primary",r.color!=="accent"&&r.color!=="warn")("mat-accent",r.color==="accent")("mat-warn",r.color==="warn")("ng-untouched",r._shouldForward("untouched"))("ng-touched",r._shouldForward("touched"))("ng-pristine",r._shouldForward("pristine"))("ng-dirty",r._shouldForward("dirty"))("ng-valid",r._shouldForward("valid"))("ng-invalid",r._shouldForward("invalid"))("ng-pending",r._shouldForward("pending"))},inputs:{hideRequiredMarker:"hideRequiredMarker",color:"color",floatLabel:"floatLabel",appearance:"appearance",subscriptSizing:"subscriptSizing",hintLabel:"hintLabel"},exportAs:["matFormField"],features:[Ce([{provide:Xo,useExisting:t},{provide:XV,useExisting:t}])],ngContentSelectors:JX,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(i,r){if(i&1){let o=Y();Me(XX),R(0,iJ,1,1,"ng-template",null,0,_i),h(2,"div",6,1),S("click",function(s){return I(o),A(r._control.onContainerClick(s))}),N(4,nJ,1,0,"div",7),h(5,"div",8),N(6,aJ,2,2,"div",9),N(7,sJ,3,0,"div",10),N(8,lJ,3,0,"div",11),h(9,"div",12),N(10,dJ,1,1,null,13),oe(11),p(),N(12,uJ,3,0,"div",14),N(13,mJ,3,0,"div",15),p(),N(14,hJ,1,0,"div",16),p(),h(15,"div",17),N(16,pJ,2,0,"div",18)(17,gJ,5,1,"div",19),p()}if(i&2){let o;g(2),G("mdc-text-field--filled",!r._hasOutline())("mdc-text-field--outlined",r._hasOutline())("mdc-text-field--no-label",!r._hasFloatingLabel())("mdc-text-field--disabled",r._control.disabled)("mdc-text-field--invalid",r._control.errorState),g(2),L(!r._hasOutline()&&!r._control.disabled?4:-1),g(2),L(r._hasOutline()?6:-1),g(),L(r._hasIconPrefix?7:-1),g(),L(r._hasTextPrefix?8:-1),g(2),L(!r._hasOutline()||r._forceDisplayInfixLabel()?10:-1),g(2),L(r._hasTextSuffix?12:-1),g(),L(r._hasIconSuffix?13:-1),g(),L(r._hasOutline()?-1:14),g(),G("mat-mdc-form-field-subscript-dynamic-size",r.subscriptSizing==="dynamic");let a=r._getSubscriptMessageType();g(),L((o=a)==="error"?16:o==="hint"?17:-1)}},dependencies:[GV,QV,Fn,YV,eg],styles:[`.mdc-text-field{display:inline-flex;align-items:baseline;padding:0 16px;position:relative;box-sizing:border-box;overflow:hidden;will-change:opacity,transform,color;border-top-left-radius:4px;border-top-right-radius:4px;border-bottom-right-radius:0;border-bottom-left-radius:0}.mdc-text-field__input{width:100%;min-width:0;border:none;border-radius:0;background:none;padding:0;-moz-appearance:none;-webkit-appearance:none;height:28px}.mdc-text-field__input::-webkit-calendar-picker-indicator,.mdc-text-field__input::-webkit-search-cancel-button{display:none}.mdc-text-field__input::-ms-clear{display:none}.mdc-text-field__input:focus{outline:none}.mdc-text-field__input:invalid{box-shadow:none}.mdc-text-field__input::placeholder{opacity:0}.mdc-text-field__input::-moz-placeholder{opacity:0}.mdc-text-field__input::-webkit-input-placeholder{opacity:0}.mdc-text-field__input:-ms-input-placeholder{opacity:0}.mdc-text-field--no-label .mdc-text-field__input::placeholder,.mdc-text-field--focused .mdc-text-field__input::placeholder{opacity:1}.mdc-text-field--no-label .mdc-text-field__input::-moz-placeholder,.mdc-text-field--focused .mdc-text-field__input::-moz-placeholder{opacity:1}.mdc-text-field--no-label .mdc-text-field__input::-webkit-input-placeholder,.mdc-text-field--focused .mdc-text-field__input::-webkit-input-placeholder{opacity:1}.mdc-text-field--no-label .mdc-text-field__input:-ms-input-placeholder,.mdc-text-field--focused .mdc-text-field__input:-ms-input-placeholder{opacity:1}.mdc-text-field--disabled:not(.mdc-text-field--no-label) .mdc-text-field__input.mat-mdc-input-disabled-interactive::placeholder{opacity:0}.mdc-text-field--disabled:not(.mdc-text-field--no-label) .mdc-text-field__input.mat-mdc-input-disabled-interactive::-moz-placeholder{opacity:0}.mdc-text-field--disabled:not(.mdc-text-field--no-label) .mdc-text-field__input.mat-mdc-input-disabled-interactive::-webkit-input-placeholder{opacity:0}.mdc-text-field--disabled:not(.mdc-text-field--no-label) .mdc-text-field__input.mat-mdc-input-disabled-interactive:-ms-input-placeholder{opacity:0}.mdc-text-field--outlined .mdc-text-field__input,.mdc-text-field--filled.mdc-text-field--no-label .mdc-text-field__input{height:100%}.mdc-text-field--outlined .mdc-text-field__input{display:flex;border:none !important;background-color:rgba(0,0,0,0)}.mdc-text-field--disabled .mdc-text-field__input{pointer-events:auto}.mdc-text-field--filled:not(.mdc-text-field--disabled) .mdc-text-field__input{color:var(--mat-form-field-filled-input-text-color, var(--mat-sys-on-surface));caret-color:var(--mat-form-field-filled-caret-color, var(--mat-sys-primary))}.mdc-text-field--filled:not(.mdc-text-field--disabled) .mdc-text-field__input::placeholder{color:var(--mat-form-field-filled-input-text-placeholder-color, var(--mat-sys-on-surface-variant))}.mdc-text-field--filled:not(.mdc-text-field--disabled) .mdc-text-field__input::-moz-placeholder{color:var(--mat-form-field-filled-input-text-placeholder-color, var(--mat-sys-on-surface-variant))}.mdc-text-field--filled:not(.mdc-text-field--disabled) .mdc-text-field__input::-webkit-input-placeholder{color:var(--mat-form-field-filled-input-text-placeholder-color, var(--mat-sys-on-surface-variant))}.mdc-text-field--filled:not(.mdc-text-field--disabled) .mdc-text-field__input:-ms-input-placeholder{color:var(--mat-form-field-filled-input-text-placeholder-color, var(--mat-sys-on-surface-variant))}.mdc-text-field--outlined:not(.mdc-text-field--disabled) .mdc-text-field__input{color:var(--mat-form-field-outlined-input-text-color, var(--mat-sys-on-surface));caret-color:var(--mat-form-field-outlined-caret-color, var(--mat-sys-primary))}.mdc-text-field--outlined:not(.mdc-text-field--disabled) .mdc-text-field__input::placeholder{color:var(--mat-form-field-outlined-input-text-placeholder-color, var(--mat-sys-on-surface-variant))}.mdc-text-field--outlined:not(.mdc-text-field--disabled) .mdc-text-field__input::-moz-placeholder{color:var(--mat-form-field-outlined-input-text-placeholder-color, var(--mat-sys-on-surface-variant))}.mdc-text-field--outlined:not(.mdc-text-field--disabled) .mdc-text-field__input::-webkit-input-placeholder{color:var(--mat-form-field-outlined-input-text-placeholder-color, var(--mat-sys-on-surface-variant))}.mdc-text-field--outlined:not(.mdc-text-field--disabled) .mdc-text-field__input:-ms-input-placeholder{color:var(--mat-form-field-outlined-input-text-placeholder-color, var(--mat-sys-on-surface-variant))}.mdc-text-field--filled.mdc-text-field--invalid:not(.mdc-text-field--disabled) .mdc-text-field__input{caret-color:var(--mat-form-field-filled-error-caret-color, var(--mat-sys-error))}.mdc-text-field--outlined.mdc-text-field--invalid:not(.mdc-text-field--disabled) .mdc-text-field__input{caret-color:var(--mat-form-field-outlined-error-caret-color, var(--mat-sys-error))}.mdc-text-field--filled.mdc-text-field--disabled .mdc-text-field__input{color:var(--mat-form-field-filled-disabled-input-text-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent))}.mdc-text-field--outlined.mdc-text-field--disabled .mdc-text-field__input{color:var(--mat-form-field-outlined-disabled-input-text-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent))}@media(forced-colors: active){.mdc-text-field--disabled .mdc-text-field__input{background-color:Window}}.mdc-text-field--filled{height:56px;border-bottom-right-radius:0;border-bottom-left-radius:0;border-top-left-radius:var(--mat-form-field-filled-container-shape, var(--mat-sys-corner-extra-small));border-top-right-radius:var(--mat-form-field-filled-container-shape, var(--mat-sys-corner-extra-small))}.mdc-text-field--filled:not(.mdc-text-field--disabled){background-color:var(--mat-form-field-filled-container-color, var(--mat-sys-surface-variant))}.mdc-text-field--filled.mdc-text-field--disabled{background-color:var(--mat-form-field-filled-disabled-container-color, color-mix(in srgb, var(--mat-sys-on-surface) 4%, transparent))}.mdc-text-field--outlined{height:56px;overflow:visible;padding-right:max(16px,var(--mat-form-field-outlined-container-shape, var(--mat-sys-corner-extra-small)));padding-left:max(16px,var(--mat-form-field-outlined-container-shape, var(--mat-sys-corner-extra-small)) + 4px)}[dir=rtl] .mdc-text-field--outlined{padding-right:max(16px,var(--mat-form-field-outlined-container-shape, var(--mat-sys-corner-extra-small)) + 4px);padding-left:max(16px,var(--mat-form-field-outlined-container-shape, var(--mat-sys-corner-extra-small)))}.mdc-floating-label{position:absolute;left:0;transform-origin:left top;line-height:1.15rem;text-align:left;text-overflow:ellipsis;white-space:nowrap;cursor:text;overflow:hidden;will-change:transform}[dir=rtl] .mdc-floating-label{right:0;left:auto;transform-origin:right top;text-align:right}.mdc-text-field .mdc-floating-label{top:50%;transform:translateY(-50%);pointer-events:none}.mdc-notched-outline .mdc-floating-label{display:inline-block;position:relative;max-width:100%}.mdc-text-field--outlined .mdc-floating-label{left:4px;right:auto}[dir=rtl] .mdc-text-field--outlined .mdc-floating-label{left:auto;right:4px}.mdc-text-field--filled .mdc-floating-label{left:16px;right:auto}[dir=rtl] .mdc-text-field--filled .mdc-floating-label{left:auto;right:16px}.mdc-text-field--disabled .mdc-floating-label{cursor:default}@media(forced-colors: active){.mdc-text-field--disabled .mdc-floating-label{z-index:1}}.mdc-text-field--filled.mdc-text-field--no-label .mdc-floating-label{display:none}.mdc-text-field--filled:not(.mdc-text-field--disabled) .mdc-floating-label{color:var(--mat-form-field-filled-label-text-color, var(--mat-sys-on-surface-variant))}.mdc-text-field--filled:not(.mdc-text-field--disabled).mdc-text-field--focused .mdc-floating-label{color:var(--mat-form-field-filled-focus-label-text-color, var(--mat-sys-primary))}.mdc-text-field--filled:not(.mdc-text-field--disabled):not(.mdc-text-field--focused):hover .mdc-floating-label{color:var(--mat-form-field-filled-hover-label-text-color, var(--mat-sys-on-surface-variant))}.mdc-text-field--filled.mdc-text-field--disabled .mdc-floating-label{color:var(--mat-form-field-filled-disabled-label-text-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent))}.mdc-text-field--filled:not(.mdc-text-field--disabled).mdc-text-field--invalid .mdc-floating-label{color:var(--mat-form-field-filled-error-label-text-color, var(--mat-sys-error))}.mdc-text-field--filled:not(.mdc-text-field--disabled).mdc-text-field--invalid.mdc-text-field--focused .mdc-floating-label{color:var(--mat-form-field-filled-error-focus-label-text-color, var(--mat-sys-error))}.mdc-text-field--filled:not(.mdc-text-field--disabled).mdc-text-field--invalid:not(.mdc-text-field--disabled):hover .mdc-floating-label{color:var(--mat-form-field-filled-error-hover-label-text-color, var(--mat-sys-on-error-container))}.mdc-text-field--filled .mdc-floating-label{font-family:var(--mat-form-field-filled-label-text-font, var(--mat-sys-body-large-font));font-size:var(--mat-form-field-filled-label-text-size, var(--mat-sys-body-large-size));font-weight:var(--mat-form-field-filled-label-text-weight, var(--mat-sys-body-large-weight));letter-spacing:var(--mat-form-field-filled-label-text-tracking, var(--mat-sys-body-large-tracking))}.mdc-text-field--outlined:not(.mdc-text-field--disabled) .mdc-floating-label{color:var(--mat-form-field-outlined-label-text-color, var(--mat-sys-on-surface-variant))}.mdc-text-field--outlined:not(.mdc-text-field--disabled).mdc-text-field--focused .mdc-floating-label{color:var(--mat-form-field-outlined-focus-label-text-color, var(--mat-sys-primary))}.mdc-text-field--outlined:not(.mdc-text-field--disabled):not(.mdc-text-field--focused):hover .mdc-floating-label{color:var(--mat-form-field-outlined-hover-label-text-color, var(--mat-sys-on-surface))}.mdc-text-field--outlined.mdc-text-field--disabled .mdc-floating-label{color:var(--mat-form-field-outlined-disabled-label-text-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent))}.mdc-text-field--outlined:not(.mdc-text-field--disabled).mdc-text-field--invalid .mdc-floating-label{color:var(--mat-form-field-outlined-error-label-text-color, var(--mat-sys-error))}.mdc-text-field--outlined:not(.mdc-text-field--disabled).mdc-text-field--invalid.mdc-text-field--focused .mdc-floating-label{color:var(--mat-form-field-outlined-error-focus-label-text-color, var(--mat-sys-error))}.mdc-text-field--outlined:not(.mdc-text-field--disabled).mdc-text-field--invalid:not(.mdc-text-field--disabled):hover .mdc-floating-label{color:var(--mat-form-field-outlined-error-hover-label-text-color, var(--mat-sys-on-error-container))}.mdc-text-field--outlined .mdc-floating-label{font-family:var(--mat-form-field-outlined-label-text-font, var(--mat-sys-body-large-font));font-size:var(--mat-form-field-outlined-label-text-size, var(--mat-sys-body-large-size));font-weight:var(--mat-form-field-outlined-label-text-weight, var(--mat-sys-body-large-weight));letter-spacing:var(--mat-form-field-outlined-label-text-tracking, var(--mat-sys-body-large-tracking))}.mdc-floating-label--float-above{cursor:auto;transform:translateY(-106%) scale(0.75)}.mdc-text-field--filled .mdc-floating-label--float-above{transform:translateY(-106%) scale(0.75)}.mdc-text-field--outlined .mdc-floating-label--float-above{transform:translateY(-37.25px) scale(1);font-size:.75rem}.mdc-notched-outline .mdc-floating-label--float-above{text-overflow:clip}.mdc-notched-outline--upgraded .mdc-floating-label--float-above{max-width:133.3333333333%}.mdc-text-field--outlined.mdc-notched-outline--upgraded .mdc-floating-label--float-above,.mdc-text-field--outlined .mdc-notched-outline--upgraded .mdc-floating-label--float-above{transform:translateY(-34.75px) scale(0.75)}.mdc-text-field--outlined.mdc-notched-outline--upgraded .mdc-floating-label--float-above,.mdc-text-field--outlined .mdc-notched-outline--upgraded .mdc-floating-label--float-above{font-size:1rem}.mdc-floating-label--required:not(.mdc-floating-label--hide-required-marker)::after{margin-left:1px;margin-right:0;content:"*"}[dir=rtl] .mdc-floating-label--required:not(.mdc-floating-label--hide-required-marker)::after{margin-left:0;margin-right:1px}.mdc-notched-outline{display:flex;position:absolute;top:0;right:0;left:0;box-sizing:border-box;width:100%;max-width:100%;height:100%;text-align:left;pointer-events:none}[dir=rtl] .mdc-notched-outline{text-align:right}.mdc-text-field--outlined .mdc-notched-outline{z-index:1}.mat-mdc-notch-piece{box-sizing:border-box;height:100%;pointer-events:none;border-top:1px solid;border-bottom:1px solid}.mdc-text-field--focused .mat-mdc-notch-piece{border-width:2px}.mdc-text-field--outlined:not(.mdc-text-field--disabled) .mat-mdc-notch-piece{border-color:var(--mat-form-field-outlined-outline-color, var(--mat-sys-outline));border-width:var(--mat-form-field-outlined-outline-width, 1px)}.mdc-text-field--outlined:not(.mdc-text-field--disabled):not(.mdc-text-field--focused):hover .mat-mdc-notch-piece{border-color:var(--mat-form-field-outlined-hover-outline-color, var(--mat-sys-on-surface))}.mdc-text-field--outlined:not(.mdc-text-field--disabled).mdc-text-field--focused .mat-mdc-notch-piece{border-color:var(--mat-form-field-outlined-focus-outline-color, var(--mat-sys-primary))}.mdc-text-field--outlined.mdc-text-field--disabled .mat-mdc-notch-piece{border-color:var(--mat-form-field-outlined-disabled-outline-color, color-mix(in srgb, var(--mat-sys-on-surface) 12%, transparent))}.mdc-text-field--outlined:not(.mdc-text-field--disabled).mdc-text-field--invalid .mat-mdc-notch-piece{border-color:var(--mat-form-field-outlined-error-outline-color, var(--mat-sys-error))}.mdc-text-field--outlined:not(.mdc-text-field--disabled).mdc-text-field--invalid:not(.mdc-text-field--focused):hover .mdc-notched-outline .mat-mdc-notch-piece{border-color:var(--mat-form-field-outlined-error-hover-outline-color, var(--mat-sys-on-error-container))}.mdc-text-field--outlined:not(.mdc-text-field--disabled).mdc-text-field--invalid.mdc-text-field--focused .mat-mdc-notch-piece{border-color:var(--mat-form-field-outlined-error-focus-outline-color, var(--mat-sys-error))}.mdc-text-field--outlined:not(.mdc-text-field--disabled).mdc-text-field--focused .mdc-notched-outline .mat-mdc-notch-piece{border-width:var(--mat-form-field-outlined-focus-outline-width, 2px)}.mdc-notched-outline__leading{border-left:1px solid;border-right:none;border-top-right-radius:0;border-bottom-right-radius:0;border-top-left-radius:var(--mat-form-field-outlined-container-shape, var(--mat-sys-corner-extra-small));border-bottom-left-radius:var(--mat-form-field-outlined-container-shape, var(--mat-sys-corner-extra-small))}.mdc-text-field--outlined .mdc-notched-outline .mdc-notched-outline__leading{width:max(12px,var(--mat-form-field-outlined-container-shape, var(--mat-sys-corner-extra-small)))}[dir=rtl] .mdc-notched-outline__leading{border-left:none;border-right:1px solid;border-bottom-left-radius:0;border-top-left-radius:0;border-top-right-radius:var(--mat-form-field-outlined-container-shape, var(--mat-sys-corner-extra-small));border-bottom-right-radius:var(--mat-form-field-outlined-container-shape, var(--mat-sys-corner-extra-small))}.mdc-notched-outline__trailing{flex-grow:1;border-left:none;border-right:1px solid;border-top-left-radius:0;border-bottom-left-radius:0;border-top-right-radius:var(--mat-form-field-outlined-container-shape, var(--mat-sys-corner-extra-small));border-bottom-right-radius:var(--mat-form-field-outlined-container-shape, var(--mat-sys-corner-extra-small))}[dir=rtl] .mdc-notched-outline__trailing{border-left:1px solid;border-right:none;border-top-right-radius:0;border-bottom-right-radius:0;border-top-left-radius:var(--mat-form-field-outlined-container-shape, var(--mat-sys-corner-extra-small));border-bottom-left-radius:var(--mat-form-field-outlined-container-shape, var(--mat-sys-corner-extra-small))}.mdc-notched-outline__notch{flex:0 0 auto;width:auto}.mdc-text-field--outlined .mdc-notched-outline .mdc-notched-outline__notch{max-width:min(var(--mat-form-field-notch-max-width, 100%),calc(100% - max(12px, var(--mat-form-field-outlined-container-shape, var(--mat-sys-corner-extra-small))) * 2))}.mdc-text-field--outlined .mdc-notched-outline--notched .mdc-notched-outline__notch{max-width:min(100%,calc(100% - max(12px, var(--mat-form-field-outlined-container-shape, var(--mat-sys-corner-extra-small))) * 2))}.mdc-text-field--outlined .mdc-notched-outline--notched .mdc-notched-outline__notch{padding-top:1px}.mdc-text-field--focused.mdc-text-field--outlined .mdc-notched-outline--notched .mdc-notched-outline__notch{padding-top:2px}.mdc-notched-outline--notched .mdc-notched-outline__notch{padding-left:0;padding-right:8px;border-top:none}[dir=rtl] .mdc-notched-outline--notched .mdc-notched-outline__notch{padding-left:8px;padding-right:0}.mdc-notched-outline--no-label .mdc-notched-outline__notch{display:none}.mdc-line-ripple::before,.mdc-line-ripple::after{position:absolute;bottom:0;left:0;width:100%;border-bottom-style:solid;content:""}.mdc-line-ripple::before{z-index:1;border-bottom-width:var(--mat-form-field-filled-active-indicator-height, 1px)}.mdc-text-field--filled:not(.mdc-text-field--disabled) .mdc-line-ripple::before{border-bottom-color:var(--mat-form-field-filled-active-indicator-color, var(--mat-sys-on-surface-variant))}.mdc-text-field--filled:not(.mdc-text-field--disabled):not(.mdc-text-field--focused):hover .mdc-line-ripple::before{border-bottom-color:var(--mat-form-field-filled-hover-active-indicator-color, var(--mat-sys-on-surface))}.mdc-text-field--filled.mdc-text-field--disabled .mdc-line-ripple::before{border-bottom-color:var(--mat-form-field-filled-disabled-active-indicator-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent))}.mdc-text-field--filled:not(.mdc-text-field--disabled).mdc-text-field--invalid .mdc-line-ripple::before{border-bottom-color:var(--mat-form-field-filled-error-active-indicator-color, var(--mat-sys-error))}.mdc-text-field--filled:not(.mdc-text-field--disabled).mdc-text-field--invalid:not(.mdc-text-field--focused):hover .mdc-line-ripple::before{border-bottom-color:var(--mat-form-field-filled-error-hover-active-indicator-color, var(--mat-sys-on-error-container))}.mdc-line-ripple::after{transform:scaleX(0);opacity:0;z-index:2}.mdc-text-field--filled .mdc-line-ripple::after{border-bottom-width:var(--mat-form-field-filled-focus-active-indicator-height, 2px)}.mdc-text-field--filled:not(.mdc-text-field--disabled) .mdc-line-ripple::after{border-bottom-color:var(--mat-form-field-filled-focus-active-indicator-color, var(--mat-sys-primary))}.mdc-text-field--filled.mdc-text-field--invalid:not(.mdc-text-field--disabled) .mdc-line-ripple::after{border-bottom-color:var(--mat-form-field-filled-error-focus-active-indicator-color, var(--mat-sys-error))}.mdc-line-ripple--active::after{transform:scaleX(1);opacity:1}.mdc-line-ripple--deactivating::after{opacity:0}.mdc-text-field--disabled{pointer-events:none}.mat-mdc-form-field-textarea-control{vertical-align:middle;resize:vertical;box-sizing:border-box;height:auto;margin:0;padding:0;border:none;overflow:auto}.mat-mdc-form-field-input-control.mat-mdc-form-field-input-control{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;font:inherit;letter-spacing:inherit;text-decoration:inherit;text-transform:inherit;border:none}.mat-mdc-form-field .mat-mdc-floating-label.mdc-floating-label{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;line-height:normal;pointer-events:all;will-change:auto}.mat-mdc-form-field:not(.mat-form-field-disabled) .mat-mdc-floating-label.mdc-floating-label{cursor:inherit}.mdc-text-field--no-label:not(.mdc-text-field--textarea) .mat-mdc-form-field-input-control.mdc-text-field__input,.mat-mdc-text-field-wrapper .mat-mdc-form-field-input-control{height:auto}.mat-mdc-text-field-wrapper .mat-mdc-form-field-input-control.mdc-text-field__input[type=color]{height:23px}.mat-mdc-text-field-wrapper{height:auto;flex:auto;will-change:auto}.mat-mdc-form-field-has-icon-prefix .mat-mdc-text-field-wrapper{padding-left:0;--mat-mdc-form-field-label-offset-x: -16px}.mat-mdc-form-field-has-icon-suffix .mat-mdc-text-field-wrapper{padding-right:0}[dir=rtl] .mat-mdc-text-field-wrapper{padding-left:16px;padding-right:16px}[dir=rtl] .mat-mdc-form-field-has-icon-suffix .mat-mdc-text-field-wrapper{padding-left:0}[dir=rtl] .mat-mdc-form-field-has-icon-prefix .mat-mdc-text-field-wrapper{padding-right:0}.mat-form-field-disabled .mdc-text-field__input::placeholder{color:var(--mat-form-field-disabled-input-text-placeholder-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent))}.mat-form-field-disabled .mdc-text-field__input::-moz-placeholder{color:var(--mat-form-field-disabled-input-text-placeholder-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent))}.mat-form-field-disabled .mdc-text-field__input::-webkit-input-placeholder{color:var(--mat-form-field-disabled-input-text-placeholder-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent))}.mat-form-field-disabled .mdc-text-field__input:-ms-input-placeholder{color:var(--mat-form-field-disabled-input-text-placeholder-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent))}.mat-mdc-form-field-label-always-float .mdc-text-field__input::placeholder{transition-delay:40ms;transition-duration:110ms;opacity:1}.mat-mdc-text-field-wrapper .mat-mdc-form-field-infix .mat-mdc-floating-label{left:auto;right:auto}.mat-mdc-text-field-wrapper.mdc-text-field--outlined .mdc-text-field__input{display:inline-block}.mat-mdc-form-field .mat-mdc-text-field-wrapper.mdc-text-field .mdc-notched-outline__notch{padding-top:0}.mat-mdc-form-field.mat-mdc-form-field.mat-mdc-form-field.mat-mdc-form-field.mat-mdc-form-field.mat-mdc-form-field .mdc-notched-outline__notch{border-left:1px solid rgba(0,0,0,0)}[dir=rtl] .mat-mdc-form-field.mat-mdc-form-field.mat-mdc-form-field.mat-mdc-form-field.mat-mdc-form-field.mat-mdc-form-field .mdc-notched-outline__notch{border-left:none;border-right:1px solid rgba(0,0,0,0)}.mat-mdc-form-field-infix{min-height:var(--mat-form-field-container-height, 56px);padding-top:var(--mat-form-field-filled-with-label-container-padding-top, 24px);padding-bottom:var(--mat-form-field-filled-with-label-container-padding-bottom, 8px)}.mdc-text-field--outlined .mat-mdc-form-field-infix,.mdc-text-field--no-label .mat-mdc-form-field-infix{padding-top:var(--mat-form-field-container-vertical-padding, 16px);padding-bottom:var(--mat-form-field-container-vertical-padding, 16px)}.mat-mdc-text-field-wrapper .mat-mdc-form-field-flex .mat-mdc-floating-label{top:calc(var(--mat-form-field-container-height, 56px)/2)}.mdc-text-field--filled .mat-mdc-floating-label{display:var(--mat-form-field-filled-label-display, block)}.mat-mdc-text-field-wrapper.mdc-text-field--outlined .mdc-notched-outline--upgraded .mdc-floating-label--float-above{--mat-mdc-form-field-label-transform: translateY(calc(calc(6.75px + var(--mat-form-field-container-height, 56px) / 2) * -1)) scale(var(--mat-mdc-form-field-floating-label-scale, 0.75));transform:var(--mat-mdc-form-field-label-transform)}@keyframes _mat-form-field-subscript-animation{from{opacity:0;transform:translateY(-5px)}to{opacity:1;transform:translateY(0)}}.mat-mdc-form-field-subscript-wrapper{box-sizing:border-box;width:100%;position:relative}.mat-mdc-form-field-hint-wrapper,.mat-mdc-form-field-error-wrapper{position:absolute;top:0;left:0;right:0;padding:0 16px;opacity:1;transform:translateY(0);animation:_mat-form-field-subscript-animation 0ms cubic-bezier(0.55, 0, 0.55, 0.2)}.mat-mdc-form-field-subscript-dynamic-size .mat-mdc-form-field-hint-wrapper,.mat-mdc-form-field-subscript-dynamic-size .mat-mdc-form-field-error-wrapper{position:static}.mat-mdc-form-field-bottom-align::before{content:"";display:inline-block;height:16px}.mat-mdc-form-field-bottom-align.mat-mdc-form-field-subscript-dynamic-size::before{content:unset}.mat-mdc-form-field-hint-end{order:1}.mat-mdc-form-field-hint-wrapper{display:flex}.mat-mdc-form-field-hint-spacer{flex:1 0 1em}.mat-mdc-form-field-error{display:block;color:var(--mat-form-field-error-text-color, var(--mat-sys-error))}.mat-mdc-form-field-subscript-wrapper,.mat-mdc-form-field-bottom-align::before{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;font-family:var(--mat-form-field-subscript-text-font, var(--mat-sys-body-small-font));line-height:var(--mat-form-field-subscript-text-line-height, var(--mat-sys-body-small-line-height));font-size:var(--mat-form-field-subscript-text-size, var(--mat-sys-body-small-size));letter-spacing:var(--mat-form-field-subscript-text-tracking, var(--mat-sys-body-small-tracking));font-weight:var(--mat-form-field-subscript-text-weight, var(--mat-sys-body-small-weight))}.mat-mdc-form-field-focus-overlay{top:0;left:0;right:0;bottom:0;position:absolute;opacity:0;pointer-events:none;background-color:var(--mat-form-field-state-layer-color, var(--mat-sys-on-surface))}.mat-mdc-text-field-wrapper:hover .mat-mdc-form-field-focus-overlay{opacity:var(--mat-form-field-hover-state-layer-opacity, var(--mat-sys-hover-state-layer-opacity))}.mat-mdc-form-field.mat-focused .mat-mdc-form-field-focus-overlay{opacity:var(--mat-form-field-focus-state-layer-opacity, 0)}select.mat-mdc-form-field-input-control{-moz-appearance:none;-webkit-appearance:none;background-color:rgba(0,0,0,0);display:inline-flex;box-sizing:border-box}select.mat-mdc-form-field-input-control:not(:disabled){cursor:pointer}select.mat-mdc-form-field-input-control:not(.mat-mdc-native-select-inline) option{color:var(--mat-form-field-select-option-text-color, var(--mat-sys-neutral10))}select.mat-mdc-form-field-input-control:not(.mat-mdc-native-select-inline) option:disabled{color:var(--mat-form-field-select-disabled-option-text-color, color-mix(in srgb, var(--mat-sys-neutral10) 38%, transparent))}.mat-mdc-form-field-type-mat-native-select .mat-mdc-form-field-infix::after{content:"";width:0;height:0;border-left:5px solid rgba(0,0,0,0);border-right:5px solid rgba(0,0,0,0);border-top:5px solid;position:absolute;right:0;top:50%;margin-top:-2.5px;pointer-events:none;color:var(--mat-form-field-enabled-select-arrow-color, var(--mat-sys-on-surface-variant))}[dir=rtl] .mat-mdc-form-field-type-mat-native-select .mat-mdc-form-field-infix::after{right:auto;left:0}.mat-mdc-form-field-type-mat-native-select.mat-focused .mat-mdc-form-field-infix::after{color:var(--mat-form-field-focus-select-arrow-color, var(--mat-sys-primary))}.mat-mdc-form-field-type-mat-native-select.mat-form-field-disabled .mat-mdc-form-field-infix::after{color:var(--mat-form-field-disabled-select-arrow-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent))}.mat-mdc-form-field-type-mat-native-select .mat-mdc-form-field-input-control{padding-right:15px}[dir=rtl] .mat-mdc-form-field-type-mat-native-select .mat-mdc-form-field-input-control{padding-right:0;padding-left:15px}@media(forced-colors: active){.mat-form-field-appearance-fill .mat-mdc-text-field-wrapper{outline:solid 1px}}@media(forced-colors: active){.mat-form-field-appearance-fill.mat-form-field-disabled .mat-mdc-text-field-wrapper{outline-color:GrayText}}@media(forced-colors: active){.mat-form-field-appearance-fill.mat-focused .mat-mdc-text-field-wrapper{outline:dashed 3px}}@media(forced-colors: active){.mat-mdc-form-field.mat-focused .mdc-notched-outline{border:dashed 3px}}.mat-mdc-form-field-input-control[type=date],.mat-mdc-form-field-input-control[type=datetime],.mat-mdc-form-field-input-control[type=datetime-local],.mat-mdc-form-field-input-control[type=month],.mat-mdc-form-field-input-control[type=week],.mat-mdc-form-field-input-control[type=time]{line-height:1}.mat-mdc-form-field-input-control::-webkit-datetime-edit{line-height:1;padding:0;margin-bottom:-2px}.mat-mdc-form-field{--mat-mdc-form-field-floating-label-scale: 0.75;display:inline-flex;flex-direction:column;min-width:0;text-align:left;-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;font-family:var(--mat-form-field-container-text-font, var(--mat-sys-body-large-font));line-height:var(--mat-form-field-container-text-line-height, var(--mat-sys-body-large-line-height));font-size:var(--mat-form-field-container-text-size, var(--mat-sys-body-large-size));letter-spacing:var(--mat-form-field-container-text-tracking, var(--mat-sys-body-large-tracking));font-weight:var(--mat-form-field-container-text-weight, var(--mat-sys-body-large-weight))}.mat-mdc-form-field .mdc-text-field--outlined .mdc-floating-label--float-above{font-size:calc(var(--mat-form-field-outlined-label-text-populated-size)*var(--mat-mdc-form-field-floating-label-scale))}.mat-mdc-form-field .mdc-text-field--outlined .mdc-notched-outline--upgraded .mdc-floating-label--float-above{font-size:var(--mat-form-field-outlined-label-text-populated-size)}[dir=rtl] .mat-mdc-form-field{text-align:right}.mat-mdc-form-field-flex{display:inline-flex;align-items:baseline;box-sizing:border-box;width:100%}.mat-mdc-text-field-wrapper{width:100%;z-index:0}.mat-mdc-form-field-icon-prefix,.mat-mdc-form-field-icon-suffix{align-self:center;line-height:0;pointer-events:auto;position:relative;z-index:1}.mat-mdc-form-field-icon-prefix>.mat-icon,.mat-mdc-form-field-icon-suffix>.mat-icon{padding:0 12px;box-sizing:content-box}.mat-mdc-form-field-icon-prefix{color:var(--mat-form-field-leading-icon-color, var(--mat-sys-on-surface-variant))}.mat-form-field-disabled .mat-mdc-form-field-icon-prefix{color:var(--mat-form-field-disabled-leading-icon-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent))}.mat-mdc-form-field-icon-suffix{color:var(--mat-form-field-trailing-icon-color, var(--mat-sys-on-surface-variant))}.mat-form-field-disabled .mat-mdc-form-field-icon-suffix{color:var(--mat-form-field-disabled-trailing-icon-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent))}.mat-form-field-invalid .mat-mdc-form-field-icon-suffix{color:var(--mat-form-field-error-trailing-icon-color, var(--mat-sys-error))}.mat-form-field-invalid:not(.mat-focused):not(.mat-form-field-disabled) .mat-mdc-text-field-wrapper:hover .mat-mdc-form-field-icon-suffix{color:var(--mat-form-field-error-hover-trailing-icon-color, var(--mat-sys-on-error-container))}.mat-form-field-invalid.mat-focused .mat-mdc-text-field-wrapper .mat-mdc-form-field-icon-suffix{color:var(--mat-form-field-error-focus-trailing-icon-color, var(--mat-sys-error))}.mat-mdc-form-field-icon-prefix,[dir=rtl] .mat-mdc-form-field-icon-suffix{padding:0 4px 0 0}.mat-mdc-form-field-icon-suffix,[dir=rtl] .mat-mdc-form-field-icon-prefix{padding:0 0 0 4px}.mat-mdc-form-field-subscript-wrapper .mat-icon,.mat-mdc-form-field label .mat-icon{width:1em;height:1em;font-size:inherit}.mat-mdc-form-field-infix{flex:auto;min-width:0;width:180px;position:relative;box-sizing:border-box}.mat-mdc-form-field-infix:has(textarea[cols]){width:auto}.mat-mdc-form-field .mdc-notched-outline__notch{margin-left:-1px;-webkit-clip-path:inset(-9em -999em -9em 1px);clip-path:inset(-9em -999em -9em 1px)}[dir=rtl] .mat-mdc-form-field .mdc-notched-outline__notch{margin-left:0;margin-right:-1px;-webkit-clip-path:inset(-9em 1px -9em -999em);clip-path:inset(-9em 1px -9em -999em)}.mat-mdc-form-field.mat-form-field-animations-enabled .mdc-floating-label{transition:transform 150ms cubic-bezier(0.4, 0, 0.2, 1),color 150ms cubic-bezier(0.4, 0, 0.2, 1)}.mat-mdc-form-field.mat-form-field-animations-enabled .mdc-text-field__input{transition:opacity 150ms cubic-bezier(0.4, 0, 0.2, 1)}.mat-mdc-form-field.mat-form-field-animations-enabled .mdc-text-field__input::placeholder{transition:opacity 67ms cubic-bezier(0.4, 0, 0.2, 1)}.mat-mdc-form-field.mat-form-field-animations-enabled .mdc-text-field__input::-moz-placeholder{transition:opacity 67ms cubic-bezier(0.4, 0, 0.2, 1)}.mat-mdc-form-field.mat-form-field-animations-enabled .mdc-text-field__input::-webkit-input-placeholder{transition:opacity 67ms cubic-bezier(0.4, 0, 0.2, 1)}.mat-mdc-form-field.mat-form-field-animations-enabled .mdc-text-field__input:-ms-input-placeholder{transition:opacity 67ms cubic-bezier(0.4, 0, 0.2, 1)}.mat-mdc-form-field.mat-form-field-animations-enabled.mdc-text-field--no-label .mdc-text-field__input::placeholder,.mat-mdc-form-field.mat-form-field-animations-enabled.mdc-text-field--focused .mdc-text-field__input::placeholder{transition-delay:40ms;transition-duration:110ms}.mat-mdc-form-field.mat-form-field-animations-enabled.mdc-text-field--no-label .mdc-text-field__input::-moz-placeholder,.mat-mdc-form-field.mat-form-field-animations-enabled.mdc-text-field--focused .mdc-text-field__input::-moz-placeholder{transition-delay:40ms;transition-duration:110ms}.mat-mdc-form-field.mat-form-field-animations-enabled.mdc-text-field--no-label .mdc-text-field__input::-webkit-input-placeholder,.mat-mdc-form-field.mat-form-field-animations-enabled.mdc-text-field--focused .mdc-text-field__input::-webkit-input-placeholder{transition-delay:40ms;transition-duration:110ms}.mat-mdc-form-field.mat-form-field-animations-enabled.mdc-text-field--no-label .mdc-text-field__input:-ms-input-placeholder,.mat-mdc-form-field.mat-form-field-animations-enabled.mdc-text-field--focused .mdc-text-field__input:-ms-input-placeholder{transition-delay:40ms;transition-duration:110ms}.mat-mdc-form-field.mat-form-field-animations-enabled .mdc-text-field--filled:not(.mdc-ripple-upgraded):focus .mdc-text-field__ripple::before{transition-duration:75ms}.mat-mdc-form-field.mat-form-field-animations-enabled .mdc-line-ripple::after{transition:transform 180ms cubic-bezier(0.4, 0, 0.2, 1),opacity 180ms cubic-bezier(0.4, 0, 0.2, 1)}.mat-mdc-form-field.mat-form-field-animations-enabled .mat-mdc-form-field-hint-wrapper,.mat-mdc-form-field.mat-form-field-animations-enabled .mat-mdc-form-field-error-wrapper{animation-duration:300ms}.mdc-notched-outline .mdc-floating-label{max-width:calc(100% + 1px)}.mdc-notched-outline--upgraded .mdc-floating-label--float-above{max-width:calc(133.3333333333% + 1px)} -`],encapsulation:2,changeDetection:0})}return t})();var tg=class{};function ig(t){return t&&typeof t.connect=="function"&&!(t instanceof Al)}var cc=(function(t){return t[t.REPLACED=0]="REPLACED",t[t.INSERTED=1]="INSERTED",t[t.MOVED=2]="MOVED",t[t.REMOVED=3]="REMOVED",t})(cc||{}),fh=new T("_ViewRepeater");var yJ=20,ws=(()=>{class t{_ngZone=u(ae);_platform=u(qe);_renderer=u(cn).createRenderer(null,null);_cleanupGlobalListener;constructor(){}_scrolled=new z;_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 i=this.scrollContainers.get(e);i&&(i.unsubscribe(),this.scrollContainers.delete(e))}scrolled(e=yJ){return this._platform.isBrowser?new Fe(i=>{this._cleanupGlobalListener||(this._cleanupGlobalListener=this._ngZone.runOutsideAngular(()=>this._renderer.listen("document","scroll",()=>this._scrolled.next())));let r=e>0?this._scrolled.pipe(Pl(e)).subscribe(i):this._scrolled.subscribe(i);return this._scrolledCount++,()=>{r.unsubscribe(),this._scrolledCount--,this._scrolledCount||(this._cleanupGlobalListener?.(),this._cleanupGlobalListener=void 0)}}):Q()}ngOnDestroy(){this._cleanupGlobalListener?.(),this._cleanupGlobalListener=void 0,this.scrollContainers.forEach((e,i)=>this.deregister(i)),this._scrolled.complete()}ancestorScrolled(e,i){let r=this.getAncestorScrollContainers(e);return this.scrolled(i).pipe(ce(o=>!o||r.indexOf(o)>-1))}getAncestorScrollContainers(e){let i=[];return this.scrollContainers.forEach((r,o)=>{this._scrollableContainsElement(o,e)&&i.push(o)}),i}_scrollableContainsElement(e,i){let r=Pr(i),o=e.getElementRef().nativeElement;do if(r==o)return!0;while(r=r.parentElement);return!1}static \u0275fac=function(i){return new(i||t)};static \u0275prov=O({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),Pa=(()=>{class t{elementRef=u(q);scrollDispatcher=u(ws);ngZone=u(ae);dir=u(Vt,{optional:!0});_scrollElement=this.elementRef.nativeElement;_destroyed=new z;_renderer=u(je);_cleanupScroll;_elementScrolled=new z;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 i=this.elementRef.nativeElement,r=this.dir&&this.dir.value=="rtl";e.left==null&&(e.left=r?e.end:e.start),e.right==null&&(e.right=r?e.start:e.end),e.bottom!=null&&(e.top=i.scrollHeight-i.clientHeight-e.bottom),r&&eh()!=Aa.NORMAL?(e.left!=null&&(e.right=i.scrollWidth-i.clientWidth-e.left),eh()==Aa.INVERTED?e.left=e.right:eh()==Aa.NEGATED&&(e.left=e.right?-e.right:e.right)):e.right!=null&&(e.left=i.scrollWidth-i.clientWidth-e.right),this._applyScrollToOptions(e)}_applyScrollToOptions(e){let i=this.elementRef.nativeElement;q0()?i.scrollTo(e):(e.top!=null&&(i.scrollTop=e.top),e.left!=null&&(i.scrollLeft=e.left))}measureScrollOffset(e){let i="left",r="right",o=this.elementRef.nativeElement;if(e=="top")return o.scrollTop;if(e=="bottom")return o.scrollHeight-o.clientHeight-o.scrollTop;let a=this.dir&&this.dir.value=="rtl";return e=="start"?e=a?r:i:e=="end"&&(e=a?i:r),a&&eh()==Aa.INVERTED?e==i?o.scrollWidth-o.clientWidth-o.scrollLeft:o.scrollLeft:a&&eh()==Aa.NEGATED?e==i?o.scrollLeft+o.scrollWidth-o.clientWidth:-o.scrollLeft:e==i?o.scrollLeft:o.scrollWidth-o.clientWidth-o.scrollLeft}static \u0275fac=function(i){return new(i||t)};static \u0275dir=F({type:t,selectors:[["","cdk-scrollable",""],["","cdkScrollable",""]]})}return t})(),xJ=20,Xn=(()=>{class t{_platform=u(qe);_listeners;_viewportSize;_change=new z;_document=u(ge);constructor(){let e=u(ae),i=u(cn).createRenderer(null,null);e.runOutsideAngular(()=>{if(this._platform.isBrowser){let r=o=>this._change.next(o);this._listeners=[i.listen("window","resize",r),i.listen("window","orientationchange",r)]}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:i,height:r}=this.getViewportSize();return{top:e.top,left:e.left,bottom:e.top+r,right:e.left+i,height:r,width:i}}getViewportScrollPosition(){if(!this._platform.isBrowser)return{top:0,left:0};let e=this._document,i=this._getWindow(),r=e.documentElement,o=r.getBoundingClientRect(),a=-o.top||e.body.scrollTop||i.scrollY||r.scrollTop||0,s=-o.left||e.body.scrollLeft||i.scrollX||r.scrollLeft||0;return{top:a,left:s}}change(e=xJ){return e>0?this._change.pipe(Pl(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(i){return new(i||t)};static \u0275prov=O({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();var vr=(()=>{class t{static \u0275fac=function(i){return new(i||t)};static \u0275mod=ee({type:t});static \u0275inj=J({})}return t})(),ng=(()=>{class t{static \u0275fac=function(i){return new(i||t)};static \u0275mod=ee({type:t});static \u0275inj=J({imports:[vs,vr,vs,vr]})}return t})();var rg=class{_attachedHost;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}},Zr=class extends rg{component;viewContainerRef;injector;projectableNodes;constructor(n,e,i,r){super(),this.component=n,this.viewContainerRef=e,this.injector=i,this.projectableNodes=r}},Cn=class extends rg{templateRef;viewContainerRef;context;injector;constructor(n,e,i,r){super(),this.templateRef=n,this.viewContainerRef=e,this.context=i,this.injector=r}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()}},$k=class extends rg{element;constructor(n){super(),this.element=n instanceof q?n.nativeElement:n}},dc=class{_attachedPortal;_disposeFn;_isDisposed=!1;hasAttached(){return!!this._attachedPortal}attach(n){if(n instanceof Zr)return this._attachedPortal=n,this.attachComponentPortal(n);if(n instanceof Cn)return this._attachedPortal=n,this.attachTemplatePortal(n);if(this.attachDomPortal&&n instanceof $k)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)}},og=class extends dc{outletElement;_appRef;_defaultInjector;constructor(n,e,i){super(),this.outletElement=n,this._appRef=e,this._defaultInjector=i}attachComponentPortal(n){let e;if(n.viewContainerRef){let i=n.injector||n.viewContainerRef.injector,r=i.get(as,null,{optional:!0})||void 0;e=n.viewContainerRef.createComponent(n.component,{index:n.viewContainerRef.length,injector:i,ngModuleRef:r,projectableNodes:n.projectableNodes||void 0}),this.setDisposeFn(()=>e.destroy())}else{let i=this._appRef,r=n.injector||this._defaultInjector||de.NULL,o=r.get(Wt,i.injector);e=Mm(n.component,{elementInjector:r,environmentInjector:o,projectableNodes:n.projectableNodes||void 0}),i.attachView(e.hostView),this.setDisposeFn(()=>{i.viewCount>0&&i.detachView(e.hostView),e.destroy()})}return this.outletElement.appendChild(this._getComponentRootNode(e)),this._attachedPortal=n,e}attachTemplatePortal(n){let e=n.viewContainerRef,i=e.createEmbeddedView(n.templateRef,n.context,{injector:n.injector});return i.rootNodes.forEach(r=>this.outletElement.appendChild(r)),i.detectChanges(),this.setDisposeFn(()=>{let r=e.indexOf(i);r!==-1&&e.remove(r)}),this._attachedPortal=n,i}attachDomPortal=n=>{let e=n.element;e.parentNode;let i=this.outletElement.ownerDocument.createComment("dom-portal");e.parentNode.insertBefore(i,e),this.outletElement.appendChild(e),this._attachedPortal=n,super.setDisposeFn(()=>{i.parentNode&&i.parentNode.replaceChild(e,i)})};dispose(){super.dispose(),this.outletElement.remove()}_getComponentRootNode(n){return n.hostView.rootNodes[0]}},eB=(()=>{class t extends Cn{constructor(){let e=u(te),i=u(nt);super(e,i)}static \u0275fac=function(i){return new(i||t)};static \u0275dir=F({type:t,selectors:[["","cdkPortal",""]],exportAs:["cdkPortal"],features:[le]})}return t})();var yr=(()=>{class t extends dc{_moduleRef=u(as,{optional:!0});_document=u(ge);_viewContainerRef=u(nt);_isInitialized=!1;_attachedRef;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 U;get attachedRef(){return this._attachedRef}ngOnInit(){this._isInitialized=!0}ngOnDestroy(){super.dispose(),this._attachedRef=this._attachedPortal=null}attachComponentPortal(e){e.setAttachedHost(this);let i=e.viewContainerRef!=null?e.viewContainerRef:this._viewContainerRef,r=i.createComponent(e.component,{index:i.length,injector:e.injector||i.injector,projectableNodes:e.projectableNodes||void 0,ngModuleRef:this._moduleRef||void 0});return i!==this._viewContainerRef&&this._getRootNode().appendChild(r.hostView.rootNodes[0]),super.setDisposeFn(()=>r.destroy()),this._attachedPortal=e,this._attachedRef=r,this.attached.emit(r),r}attachTemplatePortal(e){e.setAttachedHost(this);let i=this._viewContainerRef.createEmbeddedView(e.templateRef,e.context,{injector:e.injector});return super.setDisposeFn(()=>this._viewContainerRef.clear()),this._attachedPortal=e,this._attachedRef=i,this.attached.emit(i),i}attachDomPortal=e=>{let i=e.element;i.parentNode;let r=this._document.createComment("dom-portal");e.setAttachedHost(this),i.parentNode.insertBefore(r,i),this._getRootNode().appendChild(i),this._attachedPortal=e,super.setDisposeFn(()=>{r.parentNode&&r.parentNode.replaceChild(i,r)})};_getRootNode(){let e=this._viewContainerRef.element.nativeElement;return e.nodeType===e.ELEMENT_NODE?e:e.parentNode}static \u0275fac=function(i){return new(i||t)};static \u0275dir=F({type:t,selectors:[["","cdkPortalOutlet",""]],inputs:{portal:[0,"cdkPortalOutlet","portal"]},outputs:{attached:"attached"},exportAs:["cdkPortalOutlet"],features:[le]})}return t})();var Co=(()=>{class t{static \u0275fac=function(i){return new(i||t)};static \u0275mod=ee({type:t});static \u0275inj=J({})}return t})();var tB=q0();function uc(t){return new Qy(t.get(Xn),t.get(ge))}var Qy=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=on(-this._previousScrollPosition.left),n.style.top=on(-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,i=n.style,r=e.style,o=i.scrollBehavior||"",a=r.scrollBehavior||"";this._isEnabled=!1,i.left=this._previousHTMLStyles.left,i.top=this._previousHTMLStyles.top,n.classList.remove("cdk-global-scrollblock"),tB&&(i.scrollBehavior=r.scrollBehavior="auto"),window.scroll(this._previousScrollPosition.left,this._previousScrollPosition.top),tB&&(i.scrollBehavior=o,r.scrollBehavior=a)}}_canBeEnabled(){if(this._document.documentElement.classList.contains("cdk-global-scrollblock")||this._isEnabled)return!1;let e=this._document.documentElement,i=this._viewportRuler.getViewportSize();return e.scrollHeight>i.height||e.scrollWidth>i.width}};function lB(t,n){return new Ky(t.get(ws),t.get(ae),t.get(Xn),n)}var Ky=class{_scrollDispatcher;_ngZone;_viewportRuler;_config;_scrollSubscription=null;_overlayRef;_initialScrollPosition;constructor(n,e,i,r){this._scrollDispatcher=n,this._ngZone=e,this._viewportRuler=i,this._config=r}attach(n){this._overlayRef,this._overlayRef=n}enable(){if(this._scrollSubscription)return;let n=this._scrollDispatcher.scrolled(0).pipe(ce(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 ag=class{enable(){}disable(){}attach(){}};function Wk(t,n){return n.some(e=>{let i=t.bottome.bottom,o=t.righte.right;return i||r||o||a})}function iB(t,n){return n.some(e=>{let i=t.tope.bottom,o=t.lefte.right;return i||r||o||a})}function wn(t,n){return new Zy(t.get(ws),t.get(Xn),t.get(ae),n)}var Zy=class{_scrollDispatcher;_viewportRuler;_ngZone;_config;_scrollSubscription=null;_overlayRef;constructor(n,e,i,r){this._scrollDispatcher=n,this._viewportRuler=e,this._ngZone=i,this._config=r}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:i,height:r}=this._viewportRuler.getViewportSize();Wk(e,[{width:i,height:r,bottom:r,right:i,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}},cB=(()=>{class t{_injector=u(de);constructor(){}noop=()=>new ag;close=e=>lB(this._injector,e);block=()=>uc(this._injector);reposition=e=>wn(this._injector,e);static \u0275fac=function(i){return new(i||t)};static \u0275prov=O({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),Fr=class{positionStrategy;scrollStrategy=new ag;panelClass="";hasBackdrop=!1;backdropClass="cdk-overlay-dark-backdrop";disableAnimations;width;height;minWidth;minHeight;maxWidth;maxHeight;direction;disposeOnNavigation=!1;constructor(n){if(n){let e=Object.keys(n);for(let i of e)n[i]!==void 0&&(this[i]=n[i])}}};var Xy=class{connectionPair;scrollableViewProperties;constructor(n,e){this.connectionPair=n,this.scrollableViewProperties=e}};var dB=(()=>{class t{_attachedOverlays=[];_document=u(ge);_isAttached;constructor(){}ngOnDestroy(){this.detach()}add(e){this.remove(e),this._attachedOverlays.push(e)}remove(e){let i=this._attachedOverlays.indexOf(e);i>-1&&this._attachedOverlays.splice(i,1),this._attachedOverlays.length===0&&this.detach()}static \u0275fac=function(i){return new(i||t)};static \u0275prov=O({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),uB=(()=>{class t extends dB{_ngZone=u(ae);_renderer=u(cn).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 i=this._attachedOverlays;for(let r=i.length-1;r>-1;r--)if(i[r]._keydownEvents.observers.length>0){this._ngZone.run(()=>i[r]._keydownEvents.next(e));break}};static \u0275fac=(()=>{let e;return function(r){return(e||(e=fe(t)))(r||t)}})();static \u0275prov=O({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),mB=(()=>{class t extends dB{_platform=u(qe);_ngZone=u(ae);_renderer=u(cn).createRenderer(null,null);_cursorOriginalValue;_cursorStyleIsSet=!1;_pointerDownEventTarget;_cleanups;add(e){if(super.add(e),!this._isAttached){let i=this._document.body,r={capture:!0},o=this._renderer;this._cleanups=this._ngZone.runOutsideAngular(()=>[o.listen(i,"pointerdown",this._pointerDownListener,r),o.listen(i,"click",this._clickListener,r),o.listen(i,"auxclick",this._clickListener,r),o.listen(i,"contextmenu",this._clickListener,r)]),this._platform.IOS&&!this._cursorStyleIsSet&&(this._cursorOriginalValue=i.style.cursor,i.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=Kn(e)};_clickListener=e=>{let i=Kn(e),r=e.type==="click"&&this._pointerDownEventTarget?this._pointerDownEventTarget:i;this._pointerDownEventTarget=null;let o=this._attachedOverlays.slice();for(let a=o.length-1;a>-1;a--){let s=o[a];if(s._outsidePointerEvents.observers.length<1||!s.hasAttached())continue;if(nB(s.overlayElement,i)||nB(s.overlayElement,r))break;let l=s._outsidePointerEvents;this._ngZone?this._ngZone.run(()=>l.next(e)):l.next(e)}};static \u0275fac=(()=>{let e;return function(r){return(e||(e=fe(t)))(r||t)}})();static \u0275prov=O({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();function nB(t,n){let e=typeof ShadowRoot<"u"&&ShadowRoot,i=n;for(;i;){if(i===t)return!0;i=e&&i instanceof ShadowRoot?i.host:i.parentNode}return!1}var hB=(()=>{class t{static \u0275fac=function(i){return new(i||t)};static \u0275cmp=E({type:t,selectors:[["ng-component"]],hostAttrs:["cdk-overlay-style-loader",""],decls:0,vars:0,template:function(i,r){},styles:[`.cdk-overlay-container,.cdk-global-overlay-wrapper{pointer-events:none;top:0;left:0;height:100%;width:100%}.cdk-overlay-container{position:fixed}@layer cdk-overlay{.cdk-overlay-container{z-index:1000}}.cdk-overlay-container:empty{display:none}.cdk-global-overlay-wrapper{display:flex;position:absolute}@layer cdk-overlay{.cdk-global-overlay-wrapper{z-index:1000}}.cdk-overlay-pane{position:absolute;pointer-events:auto;box-sizing:border-box;display:flex;max-width:100%;max-height:100%}@layer cdk-overlay{.cdk-overlay-pane{z-index:1000}}.cdk-overlay-backdrop{position:absolute;top:0;bottom:0;left:0;right:0;pointer-events:auto;-webkit-tap-highlight-color:rgba(0,0,0,0);opacity:0;touch-action:manipulation}@layer cdk-overlay{.cdk-overlay-backdrop{z-index:1000;transition:opacity 400ms cubic-bezier(0.25, 0.8, 0.25, 1)}}@media(prefers-reduced-motion){.cdk-overlay-backdrop{transition-duration:1ms}}.cdk-overlay-backdrop-showing{opacity:1}@media(forced-colors: active){.cdk-overlay-backdrop-showing{opacity:.6}}@layer cdk-overlay{.cdk-overlay-dark-backdrop{background:rgba(0,0,0,.32)}}.cdk-overlay-transparent-backdrop{transition:visibility 1ms linear,opacity 1ms linear;visibility:hidden;opacity:1}.cdk-overlay-transparent-backdrop.cdk-overlay-backdrop-showing,.cdk-high-contrast-active .cdk-overlay-transparent-backdrop{opacity:0;visibility:visible}.cdk-overlay-backdrop-noop-animation{transition:none}.cdk-overlay-connected-position-bounding-box{position:absolute;display:flex;flex-direction:column;min-width:1px;min-height:1px}@layer cdk-overlay{.cdk-overlay-connected-position-bounding-box{z-index:1000}}.cdk-global-scrollblock{position:fixed;width:100%;overflow-y:scroll} -`],encapsulation:2,changeDetection:0})}return t})(),ex=(()=>{class t{_platform=u(qe);_containerElement;_document=u(ge);_styleLoader=u(ut);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||Dk()){let r=this._document.querySelectorAll(`.${e}[platform="server"], .${e}[platform="test"]`);for(let o=0;o{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()}},gh=class{_portalOutlet;_host;_pane;_config;_ngZone;_keyboardDispatcher;_document;_location;_outsideClickDispatcher;_animationsDisabled;_injector;_renderer;_backdropClick=new z;_attachments=new z;_detachments=new z;_positionStrategy;_scrollStrategy;_locationChanges=ke.EMPTY;_backdropRef=null;_detachContentMutationObserver;_detachContentAfterRenderRef;_previousHostParent;_keydownEvents=new z;_outsidePointerEvents=new z;_afterNextRenderRef;constructor(n,e,i,r,o,a,s,l,c,d=!1,m,f){this._portalOutlet=n,this._host=e,this._pane=i,this._config=r,this._ngZone=o,this._keyboardDispatcher=a,this._document=s,this._location=l,this._outsideClickDispatcher=c,this._animationsDisabled=d,this._injector=m,this._renderer=f,r.scrollStrategy&&(this._scrollStrategy=r.scrollStrategy,this._scrollStrategy.attach(this)),this._positionStrategy=r.positionStrategy}get overlayElement(){return this._pane}get backdropElement(){return this._backdropRef?.element||null}get hostElement(){return this._host}attach(n){!this._host.parentElement&&this._previousHostParent&&this._previousHostParent.appendChild(this._host);let e=this._portalOutlet.attach(n);return this._positionStrategy&&this._positionStrategy.attach(this),this._updateStackingOrder(),this._updateElementSize(),this._updateElementDirection(),this._scrollStrategy&&this._scrollStrategy.enable(),this._afterNextRenderRef?.destroy(),this._afterNextRenderRef=pt(()=>{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(){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()}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=M(M({},this._config),n),this._updateElementSize()}setDirection(n){this._config=De(M({},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=on(this._config.width),n.height=on(this._config.height),n.minWidth=on(this._config.minWidth),n.minHeight=on(this._config.minHeight),n.maxWidth=on(this._config.maxWidth),n.maxHeight=on(this._config.maxHeight)}_togglePointerEvents(n){this._pane.style.pointerEvents=n?"":"none"}_attachBackdrop(){let n="cdk-overlay-backdrop-showing";this._backdropRef?.dispose(),this._backdropRef=new Gk(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._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._host.nextSibling&&this._host.parentNode.appendChild(this._host)}detachBackdrop(){this._animationsDisabled?(this._backdropRef?.dispose(),this._backdropRef=null):this._backdropRef?.detach()}_toggleClasses(n,e,i){let r=al(e||[]).filter(o=>!!o);r.length&&(i?n.classList.add(...r):n.classList.remove(...r))}_detachContentWhenEmpty(){let n=!1;try{this._detachContentAfterRenderRef=pt(()=>{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?.()}},rB="cdk-overlay-connected-position-bounding-box",wJ=/([A-Za-z%]+)$/;function Fa(t,n){return new _h(n,t.get(Xn),t.get(ge),t.get(qe),t.get(ex))}var _h=class{_viewportRuler;_document;_platform;_overlayContainer;_overlayRef;_isInitialRender;_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;_boundingBox;_lastPosition;_lastScrollVisibility;_positionChanges=new z;_resizeSubscription=ke.EMPTY;_offsetX=0;_offsetY=0;_transformOriginSelector;_appliedPanelClasses=[];_previousPushAmount;positionChanges=this._positionChanges;get positions(){return this._preferredPositions}constructor(n,e,i,r,o){this._viewportRuler=e,this._document=i,this._platform=r,this._overlayContainer=o,this.setOrigin(n)}attach(n){this._overlayRef&&this._overlayRef,this._validatePositions(),n.hostElement.classList.add(rB),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._overlayContainer.getContainerElement().getBoundingClientRect();let n=this._originRect,e=this._overlayRect,i=this._viewportRect,r=this._containerRect,o=[],a;for(let s of this._preferredPositions){let l=this._getOriginPoint(n,r,s),c=this._getOverlayPoint(l,e,s),d=this._getOverlayFit(c,e,i,s);if(d.isCompletelyWithinViewport){this._isPushed=!1,this._applyPosition(s,l);return}if(this._canFitWithFlexibleDimensions(d,c,i)){o.push({position:s,origin:l,overlayRect:e,boundingBoxRect:this._calculateBoundingBoxRect(l,s)});continue}(!a||a.overlayFit.visibleAreal&&(l=d,s=c)}this._isPushed=!1,this._applyPosition(s.position,s.origin);return}if(this._canPush){this._isPushed=!0,this._applyPosition(a.position,a.originPoint);return}this._applyPosition(a.position,a.originPoint)}detach(){this._clearPanelClasses(),this._lastPosition=null,this._previousPushAmount=null,this._resizeSubscription.unsubscribe()}dispose(){this._isDisposed||(this._boundingBox&&ou(this._boundingBox.style,{top:"",left:"",right:"",bottom:"",height:"",width:"",alignItems:"",justifyContent:""}),this._pane&&this._resetOverlayElementStyles(),this._overlayRef&&this._overlayRef.hostElement.classList.remove(rB),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;if(n){this._originRect=this._getOriginRect(),this._overlayRect=this._pane.getBoundingClientRect(),this._viewportRect=this._getNarrowedViewportRect(),this._containerRect=this._overlayContainer.getContainerElement().getBoundingClientRect();let e=this._getOriginPoint(this._originRect,this._containerRect,n);this._applyPosition(n,e)}else 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}_getOriginPoint(n,e,i){let r;if(i.originX=="center")r=n.left+n.width/2;else{let a=this._isRtl()?n.right:n.left,s=this._isRtl()?n.left:n.right;r=i.originX=="start"?a:s}e.left<0&&(r-=e.left);let o;return i.originY=="center"?o=n.top+n.height/2:o=i.originY=="top"?n.top:n.bottom,e.top<0&&(o-=e.top),{x:r,y:o}}_getOverlayPoint(n,e,i){let r;i.overlayX=="center"?r=-e.width/2:i.overlayX==="start"?r=this._isRtl()?-e.width:0:r=this._isRtl()?0:-e.width;let o;return i.overlayY=="center"?o=-e.height/2:o=i.overlayY=="top"?0:-e.height,{x:n.x+r,y:n.y+o}}_getOverlayFit(n,e,i,r){let o=aB(e),{x:a,y:s}=n,l=this._getOffset(r,"x"),c=this._getOffset(r,"y");l&&(a+=l),c&&(s+=c);let d=0-a,m=a+o.width-i.width,f=0-s,b=s+o.height-i.height,v=this._subtractOverflows(o.width,d,m),w=this._subtractOverflows(o.height,f,b),x=v*w;return{visibleArea:x,isCompletelyWithinViewport:o.width*o.height===x,fitsInViewportVertically:w===o.height,fitsInViewportHorizontally:v==o.width}}_canFitWithFlexibleDimensions(n,e,i){if(this._hasFlexibleDimensions){let r=i.bottom-e.y,o=i.right-e.x,a=oB(this._overlayRef.getConfig().minHeight),s=oB(this._overlayRef.getConfig().minWidth),l=n.fitsInViewportVertically||a!=null&&a<=r,c=n.fitsInViewportHorizontally||s!=null&&s<=o;return l&&c}return!1}_pushOverlayOnScreen(n,e,i){if(this._previousPushAmount&&this._positionLocked)return{x:n.x+this._previousPushAmount.x,y:n.y+this._previousPushAmount.y};let r=aB(e),o=this._viewportRect,a=Math.max(n.x+r.width-o.width,0),s=Math.max(n.y+r.height-o.height,0),l=Math.max(o.top-i.top-n.y,0),c=Math.max(o.left-i.left-n.x,0),d=0,m=0;return r.width<=o.width?d=c||-a:d=n.xv&&!this._isInitialRender&&!this._growAfterOpen&&(a=n.y-v/2)}let l=e.overlayX==="start"&&!r||e.overlayX==="end"&&r,c=e.overlayX==="end"&&!r||e.overlayX==="start"&&r,d,m,f;if(c)f=i.width-n.x+this._viewportMargin*2,d=n.x-this._viewportMargin;else if(l)m=n.x,d=i.right-n.x;else{let b=Math.min(i.right-n.x+i.left,n.x),v=this._lastBoundingBoxSize.width;d=b*2,m=n.x-b,d>v&&!this._isInitialRender&&!this._growAfterOpen&&(m=n.x-v/2)}return{top:a,left:m,bottom:s,right:f,width:d,height:o}}_setBoundingBoxStyles(n,e){let i=this._calculateBoundingBoxRect(n,e);!this._isInitialRender&&!this._growAfterOpen&&(i.height=Math.min(i.height,this._lastBoundingBoxSize.height),i.width=Math.min(i.width,this._lastBoundingBoxSize.width));let r={};if(this._hasExactPosition())r.top=r.left="0",r.bottom=r.right=r.maxHeight=r.maxWidth="",r.width=r.height="100%";else{let o=this._overlayRef.getConfig().maxHeight,a=this._overlayRef.getConfig().maxWidth;r.height=on(i.height),r.top=on(i.top),r.bottom=on(i.bottom),r.width=on(i.width),r.left=on(i.left),r.right=on(i.right),e.overlayX==="center"?r.alignItems="center":r.alignItems=e.overlayX==="end"?"flex-end":"flex-start",e.overlayY==="center"?r.justifyContent="center":r.justifyContent=e.overlayY==="bottom"?"flex-end":"flex-start",o&&(r.maxHeight=on(o)),a&&(r.maxWidth=on(a))}this._lastBoundingBoxSize=i,ou(this._boundingBox.style,r)}_resetBoundingBoxStyles(){ou(this._boundingBox.style,{top:"0",left:"0",right:"0",bottom:"0",height:"",width:"",alignItems:"",justifyContent:""})}_resetOverlayElementStyles(){ou(this._pane.style,{top:"",left:"",bottom:"",right:"",position:"",transform:""})}_setOverlayElementStyles(n,e){let i={},r=this._hasExactPosition(),o=this._hasFlexibleDimensions,a=this._overlayRef.getConfig();if(r){let d=this._viewportRuler.getViewportScrollPosition();ou(i,this._getExactOverlayY(e,n,d)),ou(i,this._getExactOverlayX(e,n,d))}else i.position="static";let s="",l=this._getOffset(e,"x"),c=this._getOffset(e,"y");l&&(s+=`translateX(${l}px) `),c&&(s+=`translateY(${c}px)`),i.transform=s.trim(),a.maxHeight&&(r?i.maxHeight=on(a.maxHeight):o&&(i.maxHeight="")),a.maxWidth&&(r?i.maxWidth=on(a.maxWidth):o&&(i.maxWidth="")),ou(this._pane.style,i)}_getExactOverlayY(n,e,i){let r={top:"",bottom:""},o=this._getOverlayPoint(e,this._overlayRect,n);if(this._isPushed&&(o=this._pushOverlayOnScreen(o,this._overlayRect,i)),n.overlayY==="bottom"){let a=this._document.documentElement.clientHeight;r.bottom=`${a-(o.y+this._overlayRect.height)}px`}else r.top=on(o.y);return r}_getExactOverlayX(n,e,i){let r={left:"",right:""},o=this._getOverlayPoint(e,this._overlayRect,n);this._isPushed&&(o=this._pushOverlayOnScreen(o,this._overlayRect,i));let a;if(this._isRtl()?a=n.overlayX==="end"?"left":"right":a=n.overlayX==="end"?"right":"left",a==="right"){let s=this._document.documentElement.clientWidth;r.right=`${s-(o.x+this._overlayRect.width)}px`}else r.left=on(o.x);return r}_getScrollVisibility(){let n=this._getOriginRect(),e=this._pane.getBoundingClientRect(),i=this._scrollables.map(r=>r.getElementRef().nativeElement.getBoundingClientRect());return{isOriginClipped:iB(n,i),isOriginOutsideView:Wk(n,i),isOverlayClipped:iB(e,i),isOverlayOutsideView:Wk(e,i)}}_subtractOverflows(n,...e){return e.reduce((i,r)=>i-Math.max(r,0),n)}_getNarrowedViewportRect(){let n=this._document.documentElement.clientWidth,e=this._document.documentElement.clientHeight,i=this._viewportRuler.getViewportScrollPosition();return{top:i.top+this._viewportMargin,left:i.left+this._viewportMargin,right:i.left+n-this._viewportMargin,bottom:i.top+e-this._viewportMargin,width:n-2*this._viewportMargin,height:e-2*this._viewportMargin}}_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&&al(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=[])}_getOriginRect(){let n=this._origin;if(n instanceof q)return n.nativeElement.getBoundingClientRect();if(n instanceof Element)return n.getBoundingClientRect();let e=n.width||0,i=n.height||0;return{top:n.y,bottom:n.y+i,left:n.x,right:n.x+e,height:i,width:e}}};function ou(t,n){for(let e in n)n.hasOwnProperty(e)&&(t[e]=n[e]);return t}function oB(t){if(typeof t!="number"&&t!=null){let[n,e]=t.split(wJ);return!e||e==="px"?parseFloat(n):null}return t||null}function aB(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 DJ(t,n){return t===n?!0:t.isOriginClipped===n.isOriginClipped&&t.isOriginOutsideView===n.isOriginOutsideView&&t.isOverlayClipped===n.isOverlayClipped&&t.isOverlayOutsideView===n.isOverlayOutsideView}var sB="cdk-global-overlay-wrapper";function Ds(t){return new Jy}var Jy=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(sB),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,i=this._overlayRef.getConfig(),{width:r,height:o,maxWidth:a,maxHeight:s}=i,l=(r==="100%"||r==="100vw")&&(!a||a==="100%"||a==="100vw"),c=(o==="100%"||o==="100vh")&&(!s||s==="100%"||s==="100vh"),d=this._xPosition,m=this._xOffset,f=this._overlayRef.getConfig().direction==="rtl",b="",v="",w="";l?w="flex-start":d==="center"?(w="center",f?v=m:b=m):f?d==="left"||d==="end"?(w="flex-end",b=m):(d==="right"||d==="start")&&(w="flex-start",v=m):d==="left"||d==="start"?(w="flex-start",b=m):(d==="right"||d==="end")&&(w="flex-end",v=m),n.position=this._cssPosition,n.marginLeft=l?"0":b,n.marginTop=c?"0":this._topOffset,n.marginBottom=this._bottomOffset,n.marginRight=l?"0":v,e.justifyContent=w,e.alignItems=c?"flex-start":this._alignItems}dispose(){if(this._isDisposed||!this._overlayRef)return;let n=this._overlayRef.overlayElement.style,e=this._overlayRef.hostElement,i=e.style;e.classList.remove(sB),i.justifyContent=i.alignItems=n.marginTop=n.marginBottom=n.marginLeft=n.marginRight=n.position="",this._overlayRef=null,this._isDisposed=!0}},pB=(()=>{class t{_injector=u(de);constructor(){}global(){return Ds()}flexibleConnectedTo(e){return Fa(this._injector,e)}static \u0275fac=function(i){return new(i||t)};static \u0275prov=O({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();function Nr(t,n){t.get(ut).load(hB);let e=t.get(ex),i=t.get(ge),r=t.get(Ze),o=t.get(Gn),a=t.get(Vt),s=i.createElement("div"),l=i.createElement("div");l.id=r.getId("cdk-overlay-"),l.classList.add("cdk-overlay-pane"),s.appendChild(l),e.getContainerElement().appendChild(s);let c=new og(l,o,t),d=new Fr(n),m=t.get(je,null,{optional:!0})||t.get(cn).createRenderer(null,null);return d.direction=d.direction||a.value,new gh(c,s,l,d,t.get(ae),t.get(uB),i,t.get(us),t.get(mB),n?.disableAnimations??t.get(Yp,null,{optional:!0})==="NoopAnimations",t.get(Wt),m)}var fB=(()=>{class t{scrollStrategies=u(cB);_positionBuilder=u(pB);_injector=u(de);constructor(){}create(e){return Nr(this._injector,e)}position(){return this._positionBuilder}static \u0275fac=function(i){return new(i||t)};static \u0275prov=O({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),EJ=[{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"}],gB=new T("cdk-connected-overlay-scroll-strategy",{providedIn:"root",factory:()=>{let t=u(de);return()=>wn(t)}}),bh=(()=>{class t{elementRef=u(q);constructor(){}static \u0275fac=function(i){return new(i||t)};static \u0275dir=F({type:t,selectors:[["","cdk-overlay-origin",""],["","overlay-origin",""],["","cdkOverlayOrigin",""]],exportAs:["cdkOverlayOrigin"]})}return t})(),tx=(()=>{class t{_dir=u(Vt,{optional:!0});_injector=u(de);_overlayRef;_templatePortal;_backdropSubscription=ke.EMPTY;_attachSubscription=ke.EMPTY;_detachSubscription=ke.EMPTY;_positionSubscription=ke.EMPTY;_offsetX;_offsetY;_position;_scrollStrategyFactory=u(gB);_disposeOnNavigation=!1;_ngZone=u(ae);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;get disposeOnNavigation(){return this._disposeOnNavigation}set disposeOnNavigation(e){this._disposeOnNavigation=e}backdropClick=new U;positionChange=new U;attach=new U;detach=new U;overlayKeydown=new U;overlayOutsideClick=new U;constructor(){let e=u(te),i=u(nt);this._templatePortal=new Cn(e,i),this.scrollStrategy=this._scrollStrategyFactory()}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.width,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=EJ);let e=this._overlayRef=Nr(this._injector,this._buildConfig());this._attachSubscription=e.attachments().subscribe(()=>this.attach.emit()),this._detachSubscription=e.detachments().subscribe(()=>this.detach.emit()),e.keydownEvents().subscribe(i=>{this.overlayKeydown.next(i),i.keyCode===27&&!this.disableClose&&!Ft(i)&&(i.preventDefault(),this.detachOverlay())}),this._overlayRef.outsidePointerEvents().subscribe(i=>{let r=this._getOriginElement(),o=Kn(i);(!r||r!==o&&!r.contains(o))&&this.overlayOutsideClick.next(i)})}_buildConfig(){let e=this._position=this.positionStrategy||this._createPositionStrategy(),i=new Fr({direction:this._dir||"ltr",positionStrategy:e,scrollStrategy:this.scrollStrategy,hasBackdrop:this.hasBackdrop,disposeOnNavigation:this.disposeOnNavigation});return(this.width||this.width===0)&&(i.width=this.width),(this.height||this.height===0)&&(i.height=this.height),(this.minWidth||this.minWidth===0)&&(i.minWidth=this.minWidth),(this.minHeight||this.minHeight===0)&&(i.minHeight=this.minHeight),this.backdropClass&&(i.backdropClass=this.backdropClass),this.panelClass&&(i.panelClass=this.panelClass),i}_updatePositionStrategy(e){let i=this.positions.map(r=>({originX:r.originX,originY:r.originY,overlayX:r.overlayX,overlayY:r.overlayY,offsetX:r.offsetX||this.offsetX,offsetY:r.offsetY||this.offsetY,panelClass:r.panelClass||void 0}));return e.setOrigin(this._getOrigin()).withPositions(i).withFlexibleDimensions(this.flexibleDimensions).withPush(this.push).withGrowAfterOpen(this.growAfterOpen).withViewportMargin(this.viewportMargin).withLockedPosition(this.lockPosition).withTransformOriginOn(this.transformOriginSelector)}_createPositionStrategy(){let e=Fa(this._injector,this._getOrigin());return this._updatePositionStrategy(e),e}_getOrigin(){return this.origin instanceof bh?this.origin.elementRef:this.origin}_getOriginElement(){return this.origin instanceof bh?this.origin.elementRef.nativeElement:this.origin instanceof q?this.origin.nativeElement:typeof Element<"u"&&this.origin instanceof Element?this.origin:null}attachOverlay(){this._overlayRef?this._overlayRef.getConfig().hasBackdrop=this.hasBackdrop:this._createOverlay(),this._overlayRef.hasAttached()||this._overlayRef.attach(this._templatePortal),this.hasBackdrop?this._backdropSubscription=this._overlayRef.backdropClick().subscribe(e=>{this.backdropClick.emit(e)}):this._backdropSubscription.unsubscribe(),this._positionSubscription.unsubscribe(),this.positionChange.observers.length>0&&(this._positionSubscription=this._position.positionChanges.pipe(Xw(()=>this.positionChange.observers.length>0)).subscribe(e=>{this._ngZone.run(()=>this.positionChange.emit(e)),this.positionChange.observers.length===0&&this._positionSubscription.unsubscribe()})),this.open=!0}detachOverlay(){this._overlayRef?.detach(),this._backdropSubscription.unsubscribe(),this._positionSubscription.unsubscribe(),this.open=!1}static \u0275fac=function(i){return new(i||t)};static \u0275dir=F({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",V],lockPosition:[2,"cdkConnectedOverlayLockPosition","lockPosition",V],flexibleDimensions:[2,"cdkConnectedOverlayFlexibleDimensions","flexibleDimensions",V],growAfterOpen:[2,"cdkConnectedOverlayGrowAfterOpen","growAfterOpen",V],push:[2,"cdkConnectedOverlayPush","push",V],disposeOnNavigation:[2,"cdkConnectedOverlayDisposeOnNavigation","disposeOnNavigation",V]},outputs:{backdropClick:"backdropClick",positionChange:"positionChange",attach:"attach",detach:"detach",overlayKeydown:"overlayKeydown",overlayOutsideClick:"overlayOutsideClick"},exportAs:["cdkConnectedOverlay"],features:[Ae]})}return t})();function MJ(t){let n=u(de);return()=>wn(n)}var kJ={provide:gB,useFactory:MJ},er=(()=>{class t{static \u0275fac=function(i){return new(i||t)};static \u0275mod=ee({type:t});static \u0275inj=J({providers:[fB,kJ],imports:[vs,Co,ng,ng]})}return t})();var au=(()=>{class t{_listeners=[];notify(e,i){for(let r of this._listeners)r(e,i)}listen(e){return this._listeners.push(e),()=>{this._listeners=this._listeners.filter(i=>e!==i)}}ngOnDestroy(){this._listeners=[]}static \u0275fac=function(i){return new(i||t)};static \u0275prov=O({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();var su=class{applyChanges(n,e,i,r,o){n.forEachOperation((a,s,l)=>{let c,d;if(a.previousIndex==null){let m=i(a,s,l);c=e.createEmbeddedView(m.templateRef,m.context,m.index),d=cc.INSERTED}else l==null?(e.remove(s),d=cc.REMOVED):(c=e.get(s),e.move(c,l),d=cc.MOVED);o&&o({context:c?.context,operation:d,record:a})})}detach(){}};var sg=class{_multiple;_emitChanges;compareWith;_selection=new Set;_deselectedToEmit=[];_selectedToEmit=[];_selected;get selected(){return this._selected||(this._selected=Array.from(this._selection.values())),this._selected}changed=new z;constructor(n=!1,e,i=!0,r){this._multiple=n,this._emitChanges=i,this.compareWith=r,e&&e.length&&(n?e.forEach(o=>this._markSelected(o)):this._markSelected(e[0]),this._selectedToEmit.length=0)}select(...n){this._verifyValueAssignment(n),n.forEach(i=>this._markSelected(i));let e=this._hasQueuedChanges();return this._emitChangeEvent(),e}deselect(...n){this._verifyValueAssignment(n),n.forEach(i=>this._unmarkSelected(i));let e=this._hasQueuedChanges();return this._emitChangeEvent(),e}setSelection(...n){this._verifyValueAssignment(n);let e=this.selected,i=new Set(n.map(o=>this._getConcreteValue(o)));n.forEach(o=>this._markSelected(o)),e.filter(o=>!i.has(this._getConcreteValue(o,i))).forEach(o=>this._unmarkSelected(o));let r=this._hasQueuedChanges();return this._emitChangeEvent(),r}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 i of e)if(this.compareWith(n,i))return i;return n}else return n}};var EB=(()=>{class t{_renderer;_elementRef;onChange=e=>{};onTouched=()=>{};constructor(e,i){this._renderer=e,this._elementRef=i}setProperty(e,i){this._renderer.setProperty(this._elementRef.nativeElement,e,i)}registerOnTouched(e){this.onTouched=e}registerOnChange(e){this.onChange=e}setDisabledState(e){this.setProperty("disabled",e)}static \u0275fac=function(i){return new(i||t)(_e(je),_e(q))};static \u0275dir=F({type:t})}return t})(),MB=(()=>{class t extends EB{static \u0275fac=(()=>{let e;return function(r){return(e||(e=fe(t)))(r||t)}})();static \u0275dir=F({type:t,features:[le]})}return t})(),tr=new T("");var SJ={provide:tr,useExisting:Kt(()=>Qi),multi:!0};function TJ(){let t=Wo()?Wo().getUserAgent():"";return/android (\d+)/.test(t.toLowerCase())}var IJ=new T(""),Qi=(()=>{class t extends EB{_compositionMode;_composing=!1;constructor(e,i,r){super(e,i),this._compositionMode=r,this._compositionMode==null&&(this._compositionMode=!TJ())}writeValue(e){let i=e??"";this.setProperty("value",i)}_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(i){return new(i||t)(_e(je),_e(q),_e(IJ,8))};static \u0275dir=F({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(i,r){i&1&&S("input",function(a){return r._handleInput(a.target.value)})("blur",function(){return r.onTouched()})("compositionstart",function(){return r._compositionStart()})("compositionend",function(a){return r._compositionEnd(a.target.value)})},standalone:!1,features:[Ce([SJ]),le]})}return t})();function Qk(t){return t==null||Kk(t)===0}function Kk(t){return t==null?null:Array.isArray(t)||typeof t=="string"?t.length:t instanceof Set?t.size:null}var ea=new T(""),fg=new T(""),AJ=/^(?=.{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])?)*$/,Le=class{static min(n){return OJ(n)}static max(n){return RJ(n)}static required(n){return kB(n)}static requiredTrue(n){return PJ(n)}static email(n){return FJ(n)}static minLength(n){return NJ(n)}static maxLength(n){return LJ(n)}static pattern(n){return VJ(n)}static nullValidator(n){return nx()}static compose(n){return RB(n)}static composeAsync(n){return PB(n)}};function OJ(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 kB(t){return Qk(t.value)?{required:!0}:null}function PJ(t){return t.value===!0?null:{required:!0}}function FJ(t){return Qk(t.value)||AJ.test(t.value)?null:{email:!0}}function NJ(t){return n=>{let e=n.value?.length??Kk(n.value);return e===null||e===0?null:e{let e=n.value?.length??Kk(n.value);return e!==null&&e>t?{maxlength:{requiredLength:t,actualLength:e}}:null}}function VJ(t){if(!t)return nx;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),i=>{if(Qk(i.value))return null;let r=i.value;return n.test(r)?null:{pattern:{requiredPattern:e,actualValue:r}}}}function nx(t){return null}function SB(t){return t!=null}function TB(t){return Xs(t)?Ot(t):t}function IB(t){let n={};return t.forEach(e=>{n=e!=null?M(M({},n),e):n}),Object.keys(n).length===0?null:n}function AB(t,n){return n.map(e=>e(t))}function BJ(t){return!t.validate}function OB(t){return t.map(n=>BJ(n)?n:e=>n.validate(e))}function RB(t){if(!t)return null;let n=t.filter(SB);return n.length==0?null:function(e){return IB(AB(e,n))}}function Zk(t){return t!=null?RB(OB(t)):null}function PB(t){if(!t)return null;let n=t.filter(SB);return n.length==0?null:function(e){let i=AB(e,n).map(TB);return Ga(i).pipe(se(IB))}}function Xk(t){return t!=null?PB(OB(t)):null}function bB(t,n){return t===null?[n]:Array.isArray(t)?[...t,n]:[t,n]}function FB(t){return t._rawValidators}function NB(t){return t._rawAsyncValidators}function qk(t){return t?Array.isArray(t)?t:[t]:[]}function rx(t,n){return Array.isArray(t)?t.includes(n):t===n}function vB(t,n){let e=qk(n);return qk(t).forEach(r=>{rx(e,r)||e.push(r)}),e}function yB(t,n){return qk(n).filter(e=>!rx(t,e))}var ox=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=Zk(this._rawValidators)}_setAsyncValidators(n){this._rawAsyncValidators=n||[],this._composedAsyncValidatorFn=Xk(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&&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}},Es=class extends ox{name;get formDirective(){return null}get path(){return null}},Hn=class extends ox{_parent=null;name=null;valueAccessor=null},ax=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}},jJ={"[class.ng-untouched]":"isUntouched","[class.ng-touched]":"isTouched","[class.ng-pristine]":"isPristine","[class.ng-dirty]":"isDirty","[class.ng-valid]":"isValid","[class.ng-invalid]":"isInvalid","[class.ng-pending]":"isPending"},BWe=De(M({},jJ),{"[class.ng-submitted]":"isSubmitted"}),ei=(()=>{class t extends ax{constructor(e){super(e)}static \u0275fac=function(i){return new(i||t)(_e(Hn,2))};static \u0275dir=F({type:t,selectors:[["","formControlName",""],["","ngModel",""],["","formControl",""]],hostVars:14,hostBindings:function(i,r){i&2&&G("ng-untouched",r.isUntouched)("ng-touched",r.isTouched)("ng-pristine",r.isPristine)("ng-dirty",r.isDirty)("ng-valid",r.isValid)("ng-invalid",r.isInvalid)("ng-pending",r.isPending)},standalone:!1,features:[le]})}return t})(),Xr=(()=>{class t extends ax{constructor(e){super(e)}static \u0275fac=function(i){return new(i||t)(_e(Es,10))};static \u0275dir=F({type:t,selectors:[["","formGroupName",""],["","formArrayName",""],["","ngModelGroup",""],["","formGroup",""],["form",3,"ngNoForm",""],["","ngForm",""]],hostVars:16,hostBindings:function(i,r){i&2&&G("ng-untouched",r.isUntouched)("ng-touched",r.isTouched)("ng-pristine",r.isPristine)("ng-dirty",r.isDirty)("ng-valid",r.isValid)("ng-invalid",r.isInvalid)("ng-pending",r.isPending)("ng-submitted",r.isSubmitted)},standalone:!1,features:[le]})}return t})();var lg="VALID",ix="INVALID",vh="PENDING",cg="DISABLED",mc=class{},sx=class extends mc{value;source;constructor(n,e){super(),this.value=n,this.source=e}},ug=class extends mc{pristine;source;constructor(n,e){super(),this.pristine=n,this.source=e}},mg=class extends mc{touched;source;constructor(n,e){super(),this.touched=n,this.source=e}},yh=class extends mc{status;source;constructor(n,e){super(),this.status=n,this.source=e}},lx=class extends mc{source;constructor(n){super(),this.source=n}},hg=class extends mc{source;constructor(n){super(),this.source=n}};function Jk(t){return(hx(t)?t.validators:t)||null}function HJ(t){return Array.isArray(t)?Zk(t):t||null}function eS(t,n){return(hx(n)?n.asyncValidators:t)||null}function zJ(t){return Array.isArray(t)?Xk(t):t||null}function hx(t){return t!=null&&!Array.isArray(t)&&typeof t=="object"}function LB(t,n,e){let i=t.controls;if(!(n?Object.keys(i):i).length)throw new ue(1e3,"");if(!i[e])throw new ue(1001,"")}function VB(t,n,e){t._forEachChild((i,r)=>{if(e[r]===void 0)throw new ue(1002,"")})}var hc=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 Ti(this.statusReactive)}set status(n){Ti(()=>this.statusReactive.set(n))}_status=Zt(()=>this.statusReactive());statusReactive=he(void 0);get valid(){return this.status===lg}get invalid(){return this.status===ix}get pending(){return this.status==vh}get disabled(){return this.status===cg}get enabled(){return this.status!==cg}errors;get pristine(){return Ti(this.pristineReactive)}set pristine(n){Ti(()=>this.pristineReactive.set(n))}_pristine=Zt(()=>this.pristineReactive());pristineReactive=he(!0);get dirty(){return!this.pristine}get touched(){return Ti(this.touchedReactive)}set touched(n){Ti(()=>this.touchedReactive.set(n))}_touched=Zt(()=>this.touchedReactive());touchedReactive=he(!1);get untouched(){return!this.touched}_events=new z;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(vB(n,this._rawValidators))}addAsyncValidators(n){this.setAsyncValidators(vB(n,this._rawAsyncValidators))}removeValidators(n){this.setValidators(yB(n,this._rawValidators))}removeAsyncValidators(n){this.setAsyncValidators(yB(n,this._rawAsyncValidators))}hasValidator(n){return rx(this._rawValidators,n)}hasAsyncValidator(n){return rx(this._rawAsyncValidators,n)}clearValidators(){this.validator=null}clearAsyncValidators(){this.asyncValidator=null}markAsTouched(n={}){let e=this.touched===!1;this.touched=!0;let i=n.sourceControl??this;this._parent&&!n.onlySelf&&this._parent.markAsTouched(De(M({},n),{sourceControl:i})),e&&n.emitEvent!==!1&&this._events.next(new mg(!0,i))}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 i=n.sourceControl??this;this._forEachChild(r=>{r.markAsUntouched({onlySelf:!0,emitEvent:n.emitEvent,sourceControl:i})}),this._parent&&!n.onlySelf&&this._parent._updateTouched(n,i),e&&n.emitEvent!==!1&&this._events.next(new mg(!1,i))}markAsDirty(n={}){let e=this.pristine===!0;this.pristine=!1;let i=n.sourceControl??this;this._parent&&!n.onlySelf&&this._parent.markAsDirty(De(M({},n),{sourceControl:i})),e&&n.emitEvent!==!1&&this._events.next(new ug(!1,i))}markAsPristine(n={}){let e=this.pristine===!1;this.pristine=!0,this._pendingDirty=!1;let i=n.sourceControl??this;this._forEachChild(r=>{r.markAsPristine({onlySelf:!0,emitEvent:n.emitEvent})}),this._parent&&!n.onlySelf&&this._parent._updatePristine(n,i),e&&n.emitEvent!==!1&&this._events.next(new ug(!0,i))}markAsPending(n={}){this.status=vh;let e=n.sourceControl??this;n.emitEvent!==!1&&(this._events.next(new yh(this.status,e)),this.statusChanges.emit(this.status)),this._parent&&!n.onlySelf&&this._parent.markAsPending(De(M({},n),{sourceControl:e}))}disable(n={}){let e=this._parentMarkedDirty(n.onlySelf);this.status=cg,this.errors=null,this._forEachChild(r=>{r.disable(De(M({},n),{onlySelf:!0}))}),this._updateValue();let i=n.sourceControl??this;n.emitEvent!==!1&&(this._events.next(new sx(this.value,i)),this._events.next(new yh(this.status,i)),this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._updateAncestors(De(M({},n),{skipPristineCheck:e}),this),this._onDisabledChange.forEach(r=>r(!0))}enable(n={}){let e=this._parentMarkedDirty(n.onlySelf);this.status=lg,this._forEachChild(i=>{i.enable(De(M({},n),{onlySelf:!0}))}),this.updateValueAndValidity({onlySelf:!0,emitEvent:n.emitEvent}),this._updateAncestors(De(M({},n),{skipPristineCheck:e}),this),this._onDisabledChange.forEach(i=>i(!1))}_updateAncestors(n,e){this._parent&&!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 i=this._cancelExistingSubscription();this.errors=this._runValidator(),this.status=this._calculateStatus(),(this.status===lg||this.status===vh)&&this._runAsyncValidator(i,n.emitEvent)}let e=n.sourceControl??this;n.emitEvent!==!1&&(this._events.next(new sx(this.value,e)),this._events.next(new yh(this.status,e)),this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._parent&&!n.onlySelf&&this._parent.updateValueAndValidity(De(M({},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()?cg:lg}_runValidator(){return this.validator?this.validator(this):null}_runAsyncValidator(n,e){if(this.asyncValidator){this.status=vh,this._hasOwnPendingAsyncValidator={emitEvent:e!==!1,shouldHaveEmitted:n!==!1};let i=TB(this.asyncValidator(this));this._asyncValidationSubscription=i.subscribe(r=>{this._hasOwnPendingAsyncValidator=null,this.setErrors(r,{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((i,r)=>i&&i._find(r),this)}getError(n,e){let i=e?this.get(e):this;return i&&i.errors?i.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,i){this.status=this._calculateStatus(),n&&this.statusChanges.emit(this.status),(n||i)&&this._events.next(new yh(this.status,e)),this._parent&&this._parent._updateControlsErrors(n,e,i)}_initObservables(){this.valueChanges=new U,this.statusChanges=new U}_calculateStatus(){return this._allControlsDisabled()?cg:this.errors?ix:this._hasOwnPendingAsyncValidator||this._anyControlsHaveStatus(vh)?vh:this._anyControlsHaveStatus(ix)?ix:lg}_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 i=!this._anyControlsDirty(),r=this.pristine!==i;this.pristine=i,this._parent&&!n.onlySelf&&this._parent._updatePristine(n,e),r&&this._events.next(new ug(this.pristine,e))}_updateTouched(n={},e){this.touched=this._anyControlsTouched(),this._events.next(new mg(this.touched,e)),this._parent&&!n.onlySelf&&this._parent._updateTouched(n,e)}_onDisabledChange=[];_registerOnCollectionChange(n){this._onCollectionChange=n}_setUpdateStrategy(n){hx(n)&&n.updateOn!=null&&(this._updateOn=n.updateOn)}_parentMarkedDirty(n){let e=this._parent&&this._parent.dirty;return!n&&!!e&&!this._parent._anyControlsDirty()}_find(n){return null}_assignValidators(n){this._rawValidators=Array.isArray(n)?n.slice():n,this._composedValidatorFn=HJ(this._rawValidators)}_assignAsyncValidators(n){this._rawAsyncValidators=Array.isArray(n)?n.slice():n,this._composedAsyncValidatorFn=zJ(this._rawAsyncValidators)}},lu=class extends hc{constructor(n,e,i){super(Jk(e),eS(i,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,i={}){this.registerControl(n,e),this.updateValueAndValidity({emitEvent:i.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,i={}){this.controls[n]&&this.controls[n]._registerOnCollectionChange(()=>{}),delete this.controls[n],e&&this.registerControl(n,e),this.updateValueAndValidity({emitEvent:i.emitEvent}),this._onCollectionChange()}contains(n){return this.controls.hasOwnProperty(n)&&this.controls[n].enabled}setValue(n,e={}){VB(this,!0,n),Object.keys(n).forEach(i=>{LB(this,!0,i),this.controls[i].setValue(n[i],{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e)}patchValue(n,e={}){n!=null&&(Object.keys(n).forEach(i=>{let r=this.controls[i];r&&r.patchValue(n[i],{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e))}reset(n={},e={}){this._forEachChild((i,r)=>{i.reset(n?n[r]:null,{onlySelf:!0,emitEvent:e.emitEvent})}),this._updatePristine(e,this),this._updateTouched(e,this),this.updateValueAndValidity(e),e?.emitEvent!==!1&&this._events.next(new hg(this))}getRawValue(){return this._reduceChildren({},(n,e,i)=>(n[i]=e.getRawValue(),n))}_syncPendingControls(){let n=this._reduceChildren(!1,(e,i)=>i._syncPendingControls()?!0:e);return n&&this.updateValueAndValidity({onlySelf:!0}),n}_forEachChild(n){Object.keys(this.controls).forEach(e=>{let i=this.controls[e];i&&n(i,e)})}_setUpControls(){this._forEachChild(n=>{n.setParent(this),n._registerOnCollectionChange(this._onCollectionChange)})}_updateValue(){this.value=this._reduceValue()}_anyControls(n){for(let[e,i]of Object.entries(this.controls))if(this.contains(e)&&n(i))return!0;return!1}_reduceValue(){let n={};return this._reduceChildren(n,(e,i,r)=>((i.enabled||this.disabled)&&(e[r]=i.value),e))}_reduceChildren(n,e){let i=n;return this._forEachChild((r,o)=>{i=e(i,r,o)}),i}_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 px=lu;var Yk=class extends lu{};var xh=new T("",{providedIn:"root",factory:()=>fx}),fx="always";function BB(t,n){return[...n.path,t]}function pg(t,n,e=fx){tS(t,n),n.valueAccessor.writeValue(t.value),(t.disabled||e==="always")&&n.valueAccessor.setDisabledState?.(t.disabled),$J(t,n),GJ(t,n),WJ(t,n),UJ(t,n)}function cx(t,n,e=!0){let i=()=>{};n.valueAccessor&&(n.valueAccessor.registerOnChange(i),n.valueAccessor.registerOnTouched(i)),ux(t,n),t&&(n._invokeOnDestroyCallbacks(),t._registerOnCollectionChange(()=>{}))}function dx(t,n){t.forEach(e=>{e.registerOnValidatorChange&&e.registerOnValidatorChange(n)})}function UJ(t,n){if(n.valueAccessor.setDisabledState){let e=i=>{n.valueAccessor.setDisabledState(i)};t.registerOnDisabledChange(e),n._registerOnDestroy(()=>{t._unregisterOnDisabledChange(e)})}}function tS(t,n){let e=FB(t);n.validator!==null?t.setValidators(bB(e,n.validator)):typeof e=="function"&&t.setValidators([e]);let i=NB(t);n.asyncValidator!==null?t.setAsyncValidators(bB(i,n.asyncValidator)):typeof i=="function"&&t.setAsyncValidators([i]);let r=()=>t.updateValueAndValidity();dx(n._rawValidators,r),dx(n._rawAsyncValidators,r)}function ux(t,n){let e=!1;if(t!==null){if(n.validator!==null){let r=FB(t);if(Array.isArray(r)&&r.length>0){let o=r.filter(a=>a!==n.validator);o.length!==r.length&&(e=!0,t.setValidators(o))}}if(n.asyncValidator!==null){let r=NB(t);if(Array.isArray(r)&&r.length>0){let o=r.filter(a=>a!==n.asyncValidator);o.length!==r.length&&(e=!0,t.setAsyncValidators(o))}}}let i=()=>{};return dx(n._rawValidators,i),dx(n._rawAsyncValidators,i),e}function $J(t,n){n.valueAccessor.registerOnChange(e=>{t._pendingValue=e,t._pendingChange=!0,t._pendingDirty=!0,t.updateOn==="change"&&jB(t,n)})}function WJ(t,n){n.valueAccessor.registerOnTouched(()=>{t._pendingTouched=!0,t.updateOn==="blur"&&t._pendingChange&&jB(t,n),t.updateOn!=="submit"&&t.markAsTouched()})}function jB(t,n){t._pendingDirty&&t.markAsDirty(),t.setValue(t._pendingValue,{emitModelToViewChange:!1}),n.viewToModelUpdate(t._pendingValue),t._pendingChange=!1}function GJ(t,n){let e=(i,r)=>{n.valueAccessor.writeValue(i),r&&n.viewToModelUpdate(i)};t.registerOnChange(e),n._registerOnDestroy(()=>{t._unregisterOnChange(e)})}function HB(t,n){t==null,tS(t,n)}function qJ(t,n){return ux(t,n)}function iS(t,n){if(!t.hasOwnProperty("model"))return!1;let e=t.model;return e.isFirstChange()?!0:!Object.is(n,e.currentValue)}function YJ(t){return Object.getPrototypeOf(t.constructor)===MB}function zB(t,n){t._syncPendingControls(),n.forEach(e=>{let i=e.control;i.updateOn==="submit"&&i._pendingChange&&(e.viewToModelUpdate(i._pendingValue),i._pendingChange=!1)})}function nS(t,n){if(!n)return null;Array.isArray(n);let e,i,r;return n.forEach(o=>{o.constructor===Qi?e=o:YJ(o)?i=o:r=o}),r||i||e||null}function QJ(t,n){let e=t.indexOf(n);e>-1&&t.splice(e,1)}var KJ={provide:Es,useExisting:Kt(()=>pc)},dg=Promise.resolve(),pc=(()=>{class t extends Es{callSetDisabledState;get submitted(){return Ti(this.submittedReactive)}_submitted=Zt(()=>this.submittedReactive());submittedReactive=he(!1);_directives=new Set;form;ngSubmit=new U;options;constructor(e,i,r){super(),this.callSetDisabledState=r,this.form=new lu({},Zk(e),Xk(i))}ngAfterViewInit(){this._setUpdateStrategy()}get formDirective(){return this}get control(){return this.form}get path(){return[]}get controls(){return this.form.controls}addControl(e){dg.then(()=>{let i=this._findContainer(e.path);e.control=i.registerControl(e.name,e.control),pg(e.control,e,this.callSetDisabledState),e.control.updateValueAndValidity({emitEvent:!1}),this._directives.add(e)})}getControl(e){return this.form.get(e.path)}removeControl(e){dg.then(()=>{let i=this._findContainer(e.path);i&&i.removeControl(e.name),this._directives.delete(e)})}addFormGroup(e){dg.then(()=>{let i=this._findContainer(e.path),r=new lu({});HB(r,e),i.registerControl(e.name,r),r.updateValueAndValidity({emitEvent:!1})})}removeFormGroup(e){dg.then(()=>{let i=this._findContainer(e.path);i&&i.removeControl(e.name)})}getFormGroup(e){return this.form.get(e.path)}updateModel(e,i){dg.then(()=>{this.form.get(e.path).setValue(i)})}setValue(e){this.control.setValue(e)}onSubmit(e){return this.submittedReactive.set(!0),zB(this.form,this._directives),this.ngSubmit.emit(e),this.form._events.next(new lx(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(i){return new(i||t)(_e(ea,10),_e(fg,10),_e(xh,8))};static \u0275dir=F({type:t,selectors:[["form",3,"ngNoForm","",3,"formGroup",""],["ng-form"],["","ngForm",""]],hostBindings:function(i,r){i&1&&S("submit",function(a){return r.onSubmit(a)})("reset",function(){return r.onReset()})},inputs:{options:[0,"ngFormOptions","options"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],standalone:!1,features:[Ce([KJ]),le]})}return t})();function xB(t,n){let e=t.indexOf(n);e>-1&&t.splice(e,1)}function CB(t){return typeof t=="object"&&t!==null&&Object.keys(t).length===2&&"value"in t&&"disabled"in t}var Jo=class extends hc{defaultValue=null;_onChange=[];_pendingValue;_pendingChange=!1;constructor(n=null,e,i){super(Jk(e),eS(i,e)),this._applyFormState(n),this._setUpdateStrategy(e),this._initObservables(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator}),hx(e)&&(e.nonNullable||e.initialValueIsDefault)&&(CB(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(i=>i(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),this._pendingChange=!1,e?.emitEvent!==!1&&this._events.next(new hg(this))}_updateValue(){}_anyControls(n){return!1}_allControlsDisabled(){return this.disabled}registerOnChange(n){this._onChange.push(n)}_unregisterOnChange(n){xB(this._onChange,n)}registerOnDisabledChange(n){this._onDisabledChange.push(n)}_unregisterOnDisabledChange(n){xB(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){CB(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}},UB=Jo,ZJ=t=>t instanceof Jo;var XJ={provide:Hn,useExisting:Kt(()=>gg)},wB=Promise.resolve(),gg=(()=>{class t extends Hn{_changeDetectorRef;callSetDisabledState;control=new Jo;static ngAcceptInputType_isDisabled;_registered=!1;viewModel;name="";isDisabled;model;options;update=new U;constructor(e,i,r,o,a,s){super(),this._changeDetectorRef=a,this.callSetDisabledState=s,this._parent=e,this._setValidators(i),this._setAsyncValidators(r),this.valueAccessor=nS(this,o)}ngOnChanges(e){if(this._checkForErrors(),!this._registered||"name"in e){if(this._registered&&(this._checkName(),this.formDirective)){let i=e.name.previousValue;this.formDirective.removeControl({name:i,path:this._getPath(i)})}this._setUpControl()}"isDisabled"in e&&this._updateDisabled(e),iS(e,this.viewModel)&&(this._updateValue(this.model),this.viewModel=this.model)}ngOnDestroy(){this.formDirective&&this.formDirective.removeControl(this)}get path(){return this._getPath(this.name)}get formDirective(){return this._parent?this._parent.formDirective:null}viewToModelUpdate(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(){pg(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){wB.then(()=>{this.control.setValue(e,{emitViewToModelChange:!1}),this._changeDetectorRef?.markForCheck()})}_updateDisabled(e){let i=e.isDisabled.currentValue,r=i!==0&&V(i);wB.then(()=>{r&&!this.control.disabled?this.control.disable():!r&&this.control.disabled&&this.control.enable(),this._changeDetectorRef?.markForCheck()})}_getPath(e){return this._parent?BB(e,this._parent):[e]}static \u0275fac=function(i){return new(i||t)(_e(Es,9),_e(ea,10),_e(fg,10),_e(tr,10),_e(ye,8),_e(xh,8))};static \u0275dir=F({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:[Ce([XJ]),le,Ae]})}return t})();var Jr=(()=>{class t{static \u0275fac=function(i){return new(i||t)};static \u0275dir=F({type:t,selectors:[["form",3,"ngNoForm","",3,"ngNativeValidate",""]],hostAttrs:["novalidate",""],standalone:!1})}return t})(),JJ={provide:tr,useExisting:Kt(()=>cu),multi:!0},cu=(()=>{class t extends MB{writeValue(e){let i=e??"";this.setProperty("value",i)}registerOnChange(e){this.onChange=i=>{e(i==""?null:parseFloat(i))}}static \u0275fac=(()=>{let e;return function(r){return(e||(e=fe(t)))(r||t)}})();static \u0275dir=F({type:t,selectors:[["input","type","number","formControlName",""],["input","type","number","formControl",""],["input","type","number","ngModel",""]],hostBindings:function(i,r){i&1&&S("input",function(a){return r.onChange(a.target.value)})("blur",function(){return r.onTouched()})},standalone:!1,features:[Ce([JJ]),le]})}return t})();var rS=new T(""),eee={provide:Hn,useExisting:Kt(()=>wo)},wo=(()=>{class t extends Hn{_ngModelWarningConfig;callSetDisabledState;viewModel;form;set isDisabled(e){}model;update=new U;static _ngModelWarningSentOnce=!1;_ngModelWarningSent=!1;constructor(e,i,r,o,a){super(),this._ngModelWarningConfig=o,this.callSetDisabledState=a,this._setValidators(e),this._setAsyncValidators(i),this.valueAccessor=nS(this,r)}ngOnChanges(e){if(this._isControlChanged(e)){let i=e.form.previousValue;i&&cx(i,this,!1),pg(this.form,this,this.callSetDisabledState),this.form.updateValueAndValidity({emitEvent:!1})}iS(e,this.viewModel)&&(this.form.setValue(this.model),this.viewModel=this.model)}ngOnDestroy(){this.form&&cx(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(i){return new(i||t)(_e(ea,10),_e(fg,10),_e(tr,10),_e(rS,8),_e(xh,8))};static \u0275dir=F({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:[Ce([eee]),le,Ae]})}return t})(),tee={provide:Es,useExisting:Kt(()=>Ki)},Ki=(()=>{class t extends Es{callSetDisabledState;get submitted(){return Ti(this._submittedReactive)}set submitted(e){this._submittedReactive.set(e)}_submitted=Zt(()=>this._submittedReactive());_submittedReactive=he(!1);_oldForm;_onCollectionChange=()=>this._updateDomValue();directives=[];form=null;ngSubmit=new U;constructor(e,i,r){super(),this.callSetDisabledState=r,this._setValidators(e),this._setAsyncValidators(i)}ngOnChanges(e){e.hasOwnProperty("form")&&(this._updateValidators(),this._updateDomValue(),this._updateRegistrations(),this._oldForm=this.form)}ngOnDestroy(){this.form&&(ux(this.form,this),this.form._onCollectionChange===this._onCollectionChange&&this.form._registerOnCollectionChange(()=>{}))}get formDirective(){return this}get control(){return this.form}get path(){return[]}addControl(e){let i=this.form.get(e.path);return pg(i,e,this.callSetDisabledState),i.updateValueAndValidity({emitEvent:!1}),this.directives.push(e),i}getControl(e){return this.form.get(e.path)}removeControl(e){cx(e.control||null,e,!1),QJ(this.directives,e)}addFormGroup(e){this._setUpFormContainer(e)}removeFormGroup(e){this._cleanUpFormContainer(e)}getFormGroup(e){return this.form.get(e.path)}addFormArray(e){this._setUpFormContainer(e)}removeFormArray(e){this._cleanUpFormContainer(e)}getFormArray(e){return this.form.get(e.path)}updateModel(e,i){this.form.get(e.path).setValue(i)}onSubmit(e){return this._submittedReactive.set(!0),zB(this.form,this.directives),this.ngSubmit.emit(e),this.form._events.next(new lx(this.control)),e?.target?.method==="dialog"}onReset(){this.resetForm()}resetForm(e=void 0,i={}){this.form.reset(e,i),this._submittedReactive.set(!1)}_updateDomValue(){this.directives.forEach(e=>{let i=e.control,r=this.form.get(e.path);i!==r&&(cx(i||null,e),ZJ(r)&&(pg(r,e,this.callSetDisabledState),e.control=r))}),this.form._updateTreeValidity({emitEvent:!1})}_setUpFormContainer(e){let i=this.form.get(e.path);HB(i,e),i.updateValueAndValidity({emitEvent:!1})}_cleanUpFormContainer(e){if(this.form){let i=this.form.get(e.path);i&&qJ(i,e)&&i.updateValueAndValidity({emitEvent:!1})}}_updateRegistrations(){this.form._registerOnCollectionChange(this._onCollectionChange),this._oldForm&&this._oldForm._registerOnCollectionChange(()=>{})}_updateValidators(){tS(this.form,this),this._oldForm&&ux(this._oldForm,this)}static \u0275fac=function(i){return new(i||t)(_e(ea,10),_e(fg,10),_e(xh,8))};static \u0275dir=F({type:t,selectors:[["","formGroup",""]],hostBindings:function(i,r){i&1&&S("submit",function(a){return r.onSubmit(a)})("reset",function(){return r.onReset()})},inputs:{form:[0,"formGroup","form"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],standalone:!1,features:[Ce([tee]),le,Ae]})}return t})();var iee={provide:Hn,useExisting:Kt(()=>Lr)},Lr=(()=>{class t extends Hn{_ngModelWarningConfig;_added=!1;viewModel;control;name=null;set isDisabled(e){}model;update=new U;static _ngModelWarningSentOnce=!1;_ngModelWarningSent=!1;constructor(e,i,r,o,a){super(),this._ngModelWarningConfig=a,this._parent=e,this._setValidators(i),this._setAsyncValidators(r),this.valueAccessor=nS(this,o)}ngOnChanges(e){this._added||this._setUpControl(),iS(e,this.viewModel)&&(this.viewModel=this.model,this.formDirective.updateModel(this,this.model))}ngOnDestroy(){this.formDirective&&this.formDirective.removeControl(this)}viewToModelUpdate(e){this.viewModel=e,this.update.emit(e)}get path(){return BB(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(i){return new(i||t)(_e(Es,13),_e(ea,10),_e(fg,10),_e(tr,10),_e(rS,8))};static \u0275dir=F({type:t,selectors:[["","formControlName",""]],inputs:{name:[0,"formControlName","name"],isDisabled:[0,"disabled","isDisabled"],model:[0,"ngModel","model"]},outputs:{update:"ngModelChange"},standalone:!1,features:[Ce([iee]),le,Ae]})}return t})();var nee=(()=>{class t{_validator=nx;_onChange;_enabled;ngOnChanges(e){if(this.inputName in e){let i=this.normalizeInput(e[this.inputName].currentValue);this._enabled=this.enabled(i),this._validator=this._enabled?this.createValidator(i):nx,this._onChange&&this._onChange()}}validate(e){return this._validator(e)}registerOnValidatorChange(e){this._onChange=e}enabled(e){return e!=null}static \u0275fac=function(i){return new(i||t)};static \u0275dir=F({type:t,features:[Ae]})}return t})();var ree={provide:ea,useExisting:Kt(()=>Do),multi:!0};var Do=(()=>{class t extends nee{required;inputName="required";normalizeInput=V;createValidator=e=>kB;enabled(e){return e}static \u0275fac=(()=>{let e;return function(r){return(e||(e=fe(t)))(r||t)}})();static \u0275dir=F({type:t,selectors:[["","required","","formControlName","",3,"type","checkbox"],["","required","","formControl","",3,"type","checkbox"],["","required","","ngModel","",3,"type","checkbox"]],hostVars:1,hostBindings:function(i,r){i&2&&X("required",r._enabled?"":null)},inputs:{required:"required"},standalone:!1,features:[Ce([ree]),le]})}return t})();var $B=(()=>{class t{static \u0275fac=function(i){return new(i||t)};static \u0275mod=ee({type:t});static \u0275inj=J({})}return t})(),mx=class extends hc{constructor(n,e,i){super(Jk(e),eS(i,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(i=>{this.controls.push(i),this._registerControl(i)}):(this.controls.push(n),this._registerControl(n)),this.updateValueAndValidity({emitEvent:e.emitEvent}),this._onCollectionChange()}insert(n,e,i={}){this.controls.splice(n,0,e),this._registerControl(e),this.updateValueAndValidity({emitEvent:i.emitEvent})}removeAt(n,e={}){let i=this._adjustIndex(n);i<0&&(i=0),this.controls[i]&&this.controls[i]._registerOnCollectionChange(()=>{}),this.controls.splice(i,1),this.updateValueAndValidity({emitEvent:e.emitEvent})}setControl(n,e,i={}){let r=this._adjustIndex(n);r<0&&(r=0),this.controls[r]&&this.controls[r]._registerOnCollectionChange(()=>{}),this.controls.splice(r,1),e&&(this.controls.splice(r,0,e),this._registerControl(e)),this.updateValueAndValidity({emitEvent:i.emitEvent}),this._onCollectionChange()}get length(){return this.controls.length}setValue(n,e={}){VB(this,!1,n),n.forEach((i,r)=>{LB(this,!1,r),this.at(r).setValue(i,{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e)}patchValue(n,e={}){n!=null&&(n.forEach((i,r)=>{this.at(r)&&this.at(r).patchValue(i,{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e))}reset(n=[],e={}){this._forEachChild((i,r)=>{i.reset(n[r],{onlySelf:!0,emitEvent:e.emitEvent})}),this._updatePristine(e,this),this._updateTouched(e,this),this.updateValueAndValidity(e),e?.emitEvent!==!1&&this._events.next(new hg(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,i)=>i._syncPendingControls()?!0:e,!1);return n&&this.updateValueAndValidity({onlySelf:!0}),n}_forEachChild(n){this.controls.forEach((e,i)=>{n(e,i)})}_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}},oS=mx;function DB(t){return!!t&&(t.asyncValidators!==void 0||t.validators!==void 0||t.updateOn!==void 0)}var eo=(()=>{class t{useNonNullable=!1;get nonNullable(){let e=new t;return e.useNonNullable=!0,e}group(e,i=null){let r=this._reduceControls(e),o={};return DB(i)?o=i:i!==null&&(o.validators=i.validator,o.asyncValidators=i.asyncValidator),new lu(r,o)}record(e,i=null){let r=this._reduceControls(e);return new Yk(r,i)}control(e,i,r){let o={};return this.useNonNullable?(DB(i)?o=i:(o.validators=i,o.asyncValidators=r),new Jo(e,De(M({},o),{nonNullable:!0}))):new Jo(e,i,r)}array(e,i,r){let o=e.map(a=>this._createControl(a));return new mx(o,i,r)}_reduceControls(e){let i={};return Object.keys(e).forEach(r=>{i[r]=this._createControl(e[r])}),i}_createControl(e){if(e instanceof Jo)return e;if(e instanceof hc)return e;if(Array.isArray(e)){let i=e[0],r=e.length>1?e[1]:null,o=e.length>2?e[2]:null;return this.control(i,r,o)}else return this.control(e)}static \u0275fac=function(i){return new(i||t)};static \u0275prov=O({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();var du=(()=>{class t{static withConfig(e){return{ngModule:t,providers:[{provide:xh,useValue:e.callSetDisabledState??fx}]}}static \u0275fac=function(i){return new(i||t)};static \u0275mod=ee({type:t});static \u0275inj=J({imports:[$B]})}return t})(),zn=(()=>{class t{static withConfig(e){return{ngModule:t,providers:[{provide:rS,useValue:e.warnOnNgModelWithFormControl??"always"},{provide:xh,useValue:e.callSetDisabledState??fx}]}}static \u0275fac=function(i){return new(i||t)};static \u0275mod=ee({type:t});static \u0275inj=J({imports:[$B]})}return t})();var $i=(()=>{class t{static \u0275fac=function(i){return new(i||t)};static \u0275mod=ee({type:t});static \u0275inj=J({imports:[we,Ym,Oi,we]})}return t})();var oee=["trigger"],aee=["panel"],see=[[["mat-select-trigger"]],"*"],lee=["mat-select-trigger","*"];function cee(t,n){if(t&1&&(h(0,"span",4),_(1),p()),t&2){let e=C();g(),H(e.placeholder)}}function dee(t,n){t&1&&oe(0)}function uee(t,n){if(t&1&&(h(0,"span",11),_(1),p()),t&2){let e=C(2);g(),H(e.triggerValue)}}function mee(t,n){if(t&1&&(h(0,"span",5),N(1,dee,1,0)(2,uee,2,1,"span",11),p()),t&2){let e=C();g(),L(e.customTrigger?1:2)}}function hee(t,n){if(t&1){let e=Y();h(0,"div",12,1),S("keydown",function(r){I(e);let o=C();return A(o._handleKeydown(r))}),oe(2,1),p()}if(t&2){let e=C();it($o("mat-mdc-select-panel mdc-menu-surface mdc-menu-surface--open ",e._getPanelTheme())),G("mat-select-panel-animations-enabled",!e._animationsDisabled),y("ngClass",e.panelClass),X("id",e.id+"-panel")("aria-multiselectable",e.multiple)("aria-label",e.ariaLabel||null)("aria-labelledby",e._getPanelAriaLabelledby())}}var aS=new T("mat-select-scroll-strategy",{providedIn:"root",factory:()=>{let t=u(de);return()=>wn(t)}});function WB(t){let n=u(de);return()=>wn(n)}var GB=new T("MAT_SELECT_CONFIG"),qB={provide:aS,deps:[],useFactory:WB},YB=new T("MatSelectTrigger"),gx=class{source;value;constructor(n,e){this.source=n,this.value=e}},Na=(()=>{class t{_viewportRuler=u(Xn);_changeDetectorRef=u(ye);_elementRef=u(q);_dir=u(Vt,{optional:!0});_idGenerator=u(Ze);_renderer=u(je);_parentFormField=u(Xo,{optional:!0});ngControl=u(Hn,{self:!0,optional:!0});_liveAnnouncer=u(Gf);_defaultOptions=u(GB,{optional:!0});_animationsDisabled=Ye();_initialized=new z;_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 i=this.options.toArray()[e];if(i){let r=this.panel.nativeElement,o=Qf(e,this.options,this.optionGroups),a=i._getHostElement();e===0&&o===1?r.scrollTop=0:r.scrollTop=Kf(a.offsetTop,a.offsetHeight,r.scrollTop,r.offsetHeight)}}_positioningSettled(){this._scrollOptionIntoView(this._keyManager.activeItemIndex||0)}_getChangeEvent(e){return new gx(this,e)}_scrollStrategyFactory=u(aS);_panelOpen=!1;_compareWith=(e,i)=>e===i;_uid=this._idGenerator.getId("mat-select-");_triggerAriaLabelledBy=null;_previousControl;_destroy=new z;_errorStateTracker;stateChanges=new z;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=he(!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(Le.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=kn(()=>{let e=this.options;return e?e.changes.pipe(He(e),$e(()=>Je(...e.map(i=>i.onSelectionChange)))):this._initialized.pipe($e(()=>this.optionSelectionChanges))});openedChange=new U;_openedStream=this.openedChange.pipe(ce(e=>e),se(()=>{}));_closedStream=this.openedChange.pipe(ce(e=>!e),se(()=>{}));selectionChange=new U;valueChange=new U;constructor(){let e=u(dl),i=u(pc,{optional:!0}),r=u(Ki,{optional:!0}),o=u(new Ii("tabindex"),{optional:!0});this.ngControl&&(this.ngControl.valueAccessor=this),this._defaultOptions?.typeaheadDebounceInterval!=null&&(this.typeaheadDebounceInterval=this._defaultOptions.typeaheadDebounceInterval),this._errorStateTracker=new cl(e,this.ngControl,r,i,this.stateChanges),this._scrollStrategy=this._scrollStrategyFactory(),this.tabIndex=o==null?0:parseInt(o)||0,this.id=this.id}ngOnInit(){this._selectionModel=new sg(this.multiple),this.stateChanges.next(),this._viewportRuler.change().pipe(Te(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(Te(this._destroy)).subscribe(e=>{e.added.forEach(i=>i.select()),e.removed.forEach(i=>i.deselect())}),this.options.changes.pipe(He(null),Te(this._destroy)).subscribe(()=>{this._resetOptions(),this._initializeSelection()})}ngDoCheck(){let e=this._getTriggerAriaLabelledby(),i=this.ngControl;if(e!==this._triggerAriaLabelledBy){let r=this._elementRef.nativeElement;this._triggerAriaLabelledBy=e,e?r.setAttribute("aria-labelledby",e):r.removeAttribute("aria-labelledby")}i&&(this._previousControl!==i.control&&(this._previousControl!==void 0&&i.disabled!==null&&i.disabled!==this.disabled&&(this.disabled=i.disabled),this._previousControl=i.control),this.updateErrorState())}ngOnChanges(e){(e.disabled||e.userAriaDescribedBy)&&this.stateChanges.next(),e.typeaheadDebounceInterval&&this._keyManager&&this._keyManager.withTypeAhead(this.typeaheadDebounceInterval)}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(lt(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 i=`${this.id}-panel`;this._trackedModal&&sc(this._trackedModal,"aria-owns",i),Zm(e,"aria-owns",i),this._trackedModal=e}_clearFromModal(){if(!this._trackedModal)return;let e=`${this.id}-panel`;sc(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=()=>{i(),clearTimeout(r),this._cleanupDetach=void 0};let e=this.panel.nativeElement,i=this._renderer.listen(e,"animationend",o=>{o.animationName==="_mat-select-exit"&&(this._cleanupDetach?.(),this._detachOverlay())}),r=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(i=>i.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 i=e.keyCode,r=i===40||i===38||i===37||i===39,o=i===13||i===32,a=this._keyManager;if(!a.isTyping()&&o&&!Ft(e)||(this.multiple||e.altKey)&&r)e.preventDefault(),this.open();else if(!this.multiple){let s=this.selected;a.onKeydown(e);let l=this.selected;l&&s!==l&&this._liveAnnouncer.announce(l.viewValue,1e4)}}_handleOpenKeydown(e){let i=this._keyManager,r=e.keyCode,o=r===40||r===38,a=i.isTyping();if(o&&e.altKey)e.preventDefault(),this.close();else if(!a&&(r===13||r===32)&&i.activeItem&&!Ft(e))e.preventDefault(),i.activeItem._selectViaInteraction();else if(!a&&this._multiple&&r===65&&e.ctrlKey){e.preventDefault();let s=this.options.some(l=>!l.disabled&&!l.selected);this.options.forEach(l=>{l.disabled||(s?l.select():l.deselect())})}else{let s=i.activeItemIndex;i.onKeydown(e),this._multiple&&o&&e.shiftKey&&i.activeItem&&i.activeItemIndex!==s&&i.activeItem._selectViaInteraction()}}_handleOverlayKeydown(e){e.keyCode===27&&!Ft(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())}_getPanelTheme(){return this._parentFormField?`mat-${this._parentFormField.color}`:""}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(i=>i.setInactiveStyles()),this._selectionModel.clear(),this.multiple&&e)Array.isArray(e),e.forEach(i=>this._selectOptionByValue(i)),this._sortValues();else{let i=this._selectOptionByValue(e);i?this._keyManager.updateActiveItem(i):this.panelOpen||this._keyManager.updateActiveItem(-1)}this._changeDetectorRef.markForCheck()}_selectOptionByValue(e){let i=this.options.find(r=>{if(this._selectionModel.isSelected(r))return!1;try{return(r.value!=null||this.canSelectNullableOptions)&&this._compareWith(r.value,e)}catch{return!1}});return i&&this._selectionModel.select(i),i}_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 bh?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 qd(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=Je(this.options.changes,this._destroy);this.optionSelectionChanges.pipe(Te(e)).subscribe(i=>{this._onSelect(i.source,i.isUserInput),i.isUserInput&&!this.multiple&&this._panelOpen&&(this.close(),this.focus())}),Je(...this.options.map(i=>i._stateChanges)).pipe(Te(e)).subscribe(()=>{this._changeDetectorRef.detectChanges(),this.stateChanges.next()})}_onSelect(e,i){let r=this._selectionModel.isSelected(e);!this.canSelectNullableOptions&&e.value==null&&!this._multiple?(e.deselect(),this._selectionModel.clear(),this.value!=null&&this._propagateChanges(e.value)):(r!==e.selected&&(e.selected?this._selectionModel.select(e):this._selectionModel.deselect(e)),i&&this._keyManager.setActiveItem(e),this.multiple&&(this._sortValues(),i&&this.focus())),r!==this._selectionModel.isSelected(e)&&this._propagateChanges(),this.stateChanges.next()}_sortValues(){if(this.multiple){let e=this.options.toArray();this._selectionModel.sort((i,r)=>this.sortComparator?this.sortComparator(i,r,e):e.indexOf(i)-e.indexOf(r)),this.stateChanges.next()}}_propagateChanges(e){let i;this.multiple?i=this.selected.map(r=>r.value):i=this.selected?this.selected.value:e,this._value=i,this.valueChange.emit(i),this._onChange(i),this.selectionChange.emit(this._getChangeEvent(i)),this._changeDetectorRef.markForCheck()}_highlightCorrectOption(){if(this._keyManager)if(this.empty){let e=-1;for(let i=0;i0&&!!this._overlayDir}focus(e){this._elementRef.nativeElement.focus(e)}_getPanelAriaLabelledby(){if(this.ariaLabel)return null;let e=this._parentFormField?.getLabelId()||null,i=e?e+" ":"";return this.ariaLabelledby?i+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){e.length?this._elementRef.nativeElement.setAttribute("aria-describedby",e.join(" ")):this._elementRef.nativeElement.removeAttribute("aria-describedby")}onContainerClick(){this.focus(),this.open()}get shouldLabelFloat(){return this.panelOpen||!this.empty||this.focused&&!!this.placeholder}static \u0275fac=function(i){return new(i||t)};static \u0275cmp=E({type:t,selectors:[["mat-select"]],contentQueries:function(i,r,o){if(i&1&&(xe(o,YB,5),xe(o,xn,5),xe(o,Zd,5)),i&2){let a;B(a=j())&&(r.customTrigger=a.first),B(a=j())&&(r.options=a),B(a=j())&&(r.optionGroups=a)}},viewQuery:function(i,r){if(i&1&&(ie(oee,5),ie(aee,5),ie(tx,5)),i&2){let o;B(o=j())&&(r.trigger=o.first),B(o=j())&&(r.panel=o.first),B(o=j())&&(r._overlayDir=o.first)}},hostAttrs:["role","combobox","aria-haspopup","listbox",1,"mat-mdc-select"],hostVars:21,hostBindings:function(i,r){i&1&&S("keydown",function(a){return r._handleKeydown(a)})("focus",function(){return r._onFocus()})("blur",function(){return r._onBlur()}),i&2&&(X("id",r.id)("tabindex",r.disabled?-1:r.tabIndex)("aria-controls",r.panelOpen?r.id+"-panel":null)("aria-expanded",r.panelOpen)("aria-label",r.ariaLabel||null)("aria-required",r.required.toString())("aria-disabled",r.disabled.toString())("aria-invalid",r.errorState)("aria-activedescendant",r._getAriaActiveDescendant()),G("mat-mdc-select-disabled",r.disabled)("mat-mdc-select-invalid",r.errorState)("mat-mdc-select-required",r.required)("mat-mdc-select-empty",r.empty)("mat-mdc-select-multiple",r.multiple)("mat-select-open",r.panelOpen))},inputs:{userAriaDescribedBy:[0,"aria-describedby","userAriaDescribedBy"],panelClass:"panelClass",disabled:[2,"disabled","disabled",V],disableRipple:[2,"disableRipple","disableRipple",V],tabIndex:[2,"tabIndex","tabIndex",e=>e==null?0:ct(e)],hideSingleSelectionIndicator:[2,"hideSingleSelectionIndicator","hideSingleSelectionIndicator",V],placeholder:"placeholder",required:[2,"required","required",V],multiple:[2,"multiple","multiple",V],disableOptionCentering:[2,"disableOptionCentering","disableOptionCentering",V],compareWith:"compareWith",value:"value",ariaLabel:[0,"aria-label","ariaLabel"],ariaLabelledby:[0,"aria-labelledby","ariaLabelledby"],errorStateMatcher:"errorStateMatcher",typeaheadDebounceInterval:[2,"typeaheadDebounceInterval","typeaheadDebounceInterval",ct],sortComparator:"sortComparator",id:"id",panelWidth:"panelWidth",canSelectNullableOptions:[2,"canSelectNullableOptions","canSelectNullableOptions",V]},outputs:{openedChange:"openedChange",_openedStream:"opened",_closedStream:"closed",selectionChange:"selectionChange",valueChange:"valueChange"},exportAs:["matSelect"],features:[Ce([{provide:Ra,useExisting:t},{provide:Kd,useExisting:t}]),Ae],ngContentSelectors:lee,decls:11,vars:9,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","","cdkConnectedOverlayLockPosition","","cdkConnectedOverlayHasBackdrop","","cdkConnectedOverlayBackdropClass","cdk-overlay-transparent-backdrop",3,"detach","backdropClick","overlayKeydown","cdkConnectedOverlayDisableClose","cdkConnectedOverlayPanelClass","cdkConnectedOverlayScrollStrategy","cdkConnectedOverlayOrigin","cdkConnectedOverlayPositions","cdkConnectedOverlayWidth","cdkConnectedOverlayFlexibleDimensions"],[1,"mat-mdc-select-min-line"],["role","listbox","tabindex","-1",3,"keydown","ngClass"]],template:function(i,r){if(i&1){let o=Y();Me(see),h(0,"div",2,0),S("click",function(){return I(o),A(r.open())}),h(3,"div",3),N(4,cee,2,1,"span",4)(5,mee,3,1,"span",5),p(),h(6,"div",6)(7,"div",7),Gt(),h(8,"svg",8),k(9,"path",9),p()()()(),R(10,hee,3,10,"ng-template",10),S("detach",function(){return I(o),A(r.close())})("backdropClick",function(){return I(o),A(r.close())})("overlayKeydown",function(s){return I(o),A(r._handleOverlayKeydown(s))})}if(i&2){let o=Se(1);g(3),X("id",r._valueId),g(),L(r.empty?4:5),g(6),y("cdkConnectedOverlayDisableClose",!0)("cdkConnectedOverlayPanelClass",r._overlayPanelClass)("cdkConnectedOverlayScrollStrategy",r._scrollStrategy)("cdkConnectedOverlayOrigin",r._preferredOverlayOrigin||o)("cdkConnectedOverlayPositions",r._positions)("cdkConnectedOverlayWidth",r._overlayWidth)("cdkConnectedOverlayFlexibleDimensions",!0)}},dependencies:[bh,tx,Pd],styles:[`@keyframes _mat-select-enter{from{opacity:0;transform:scaleY(0.8)}to{opacity:1;transform:none}}@keyframes _mat-select-exit{from{opacity:1}to{opacity:0}}.mat-mdc-select{display:inline-block;width:100%;outline:none;-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;color:var(--mat-select-enabled-trigger-text-color, var(--mat-sys-on-surface));font-family:var(--mat-select-trigger-text-font, var(--mat-sys-body-large-font));line-height:var(--mat-select-trigger-text-line-height, var(--mat-sys-body-large-line-height));font-size:var(--mat-select-trigger-text-size, var(--mat-sys-body-large-size));font-weight:var(--mat-select-trigger-text-weight, var(--mat-sys-body-large-weight));letter-spacing:var(--mat-select-trigger-text-tracking, var(--mat-sys-body-large-tracking))}div.mat-mdc-select-panel{box-shadow:var(--mat-select-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-mdc-select-disabled{color:var(--mat-select-disabled-trigger-text-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent))}.mat-mdc-select-disabled .mat-mdc-select-placeholder{color:var(--mat-select-disabled-trigger-text-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent))}.mat-mdc-select-trigger{display:inline-flex;align-items:center;cursor:pointer;position:relative;box-sizing:border-box;width:100%}.mat-mdc-select-disabled .mat-mdc-select-trigger{-webkit-user-select:none;user-select:none;cursor:default}.mat-mdc-select-value{width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.mat-mdc-select-value-text{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.mat-mdc-select-arrow-wrapper{height:24px;flex-shrink:0;display:inline-flex;align-items:center}.mat-form-field-appearance-fill .mdc-text-field--no-label .mat-mdc-select-arrow-wrapper{transform:none}.mat-mdc-form-field .mat-mdc-select.mat-mdc-select-invalid .mat-mdc-select-arrow,.mat-form-field-invalid:not(.mat-form-field-disabled) .mat-mdc-form-field-infix::after{color:var(--mat-select-invalid-arrow-color, var(--mat-sys-error))}.mat-mdc-select-arrow{width:10px;height:5px;position:relative;color:var(--mat-select-enabled-arrow-color, var(--mat-sys-on-surface-variant))}.mat-mdc-form-field.mat-focused .mat-mdc-select-arrow{color:var(--mat-select-focused-arrow-color, var(--mat-sys-primary))}.mat-mdc-form-field .mat-mdc-select.mat-mdc-select-disabled .mat-mdc-select-arrow{color:var(--mat-select-disabled-arrow-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent))}.mat-select-open .mat-mdc-select-arrow{transform:rotate(180deg)}.mat-form-field-animations-enabled .mat-mdc-select-arrow{transition:transform 80ms linear}.mat-mdc-select-arrow svg{fill:currentColor;position:absolute;top:50%;left:50%;transform:translate(-50%, -50%)}@media(forced-colors: active){.mat-mdc-select-arrow svg{fill:CanvasText}.mat-mdc-select-disabled .mat-mdc-select-arrow svg{fill:GrayText}}div.mat-mdc-select-panel{width:100%;max-height:275px;outline:0;overflow:auto;padding:8px 0;border-radius:4px;box-sizing:border-box;position:relative;background-color:var(--mat-select-panel-background-color, var(--mat-sys-surface-container))}@media(forced-colors: active){div.mat-mdc-select-panel{outline:solid 1px}}.cdk-overlay-pane:not(.mat-mdc-select-panel-above) div.mat-mdc-select-panel{border-top-left-radius:0;border-top-right-radius:0;transform-origin:top center}.mat-mdc-select-panel-above div.mat-mdc-select-panel{border-bottom-left-radius:0;border-bottom-right-radius:0;transform-origin:bottom center}.mat-select-panel-animations-enabled{animation:_mat-select-enter 120ms cubic-bezier(0, 0, 0.2, 1)}.mat-select-panel-animations-enabled.mat-select-panel-exit{animation:_mat-select-exit 100ms linear}.mat-mdc-select-placeholder{transition:color 400ms 133.3333333333ms cubic-bezier(0.25, 0.8, 0.25, 1);color:var(--mat-select-placeholder-text-color, var(--mat-sys-on-surface-variant))}.mat-mdc-form-field:not(.mat-form-field-animations-enabled) .mat-mdc-select-placeholder,._mat-animation-noopable .mat-mdc-select-placeholder{transition:none}.mat-form-field-hide-placeholder .mat-mdc-select-placeholder{color:rgba(0,0,0,0);-webkit-text-fill-color:rgba(0,0,0,0);transition:none;display:block}.mat-mdc-form-field-type-mat-select:not(.mat-form-field-disabled) .mat-mdc-text-field-wrapper{cursor:pointer}.mat-mdc-form-field-type-mat-select.mat-form-field-appearance-fill .mat-mdc-floating-label{max-width:calc(100% - 18px)}.mat-mdc-form-field-type-mat-select.mat-form-field-appearance-fill .mdc-floating-label--float-above{max-width:calc(100%/0.75 - 24px)}.mat-mdc-form-field-type-mat-select.mat-form-field-appearance-outline .mdc-notched-outline__notch{max-width:calc(100% - 60px)}.mat-mdc-form-field-type-mat-select.mat-form-field-appearance-outline .mdc-text-field--label-floating .mdc-notched-outline__notch{max-width:calc(100% - 24px)}.mat-mdc-select-min-line:empty::before{content:" ";white-space:pre;width:1px;display:inline-block;visibility:hidden}.mat-form-field-appearance-fill .mat-mdc-select-arrow-wrapper{transform:var(--mat-select-arrow-transform, translateY(-8px))} -`],encapsulation:2,changeDetection:0})}return t})();var fc=(()=>{class t{static \u0275fac=function(i){return new(i||t)};static \u0275mod=ee({type:t});static \u0275inj=J({providers:[qB],imports:[er,rh,we,vr,$i,rh,we]})}return t})();var pee=["mat-icon-button",""],fee=["*"],gee=new T("MAT_BUTTON_CONFIG");function QB(t){return t==null?void 0:ct(t)}var sS=(()=>{class t{_elementRef=u(q);_ngZone=u(ae);_animationsDisabled=Ye();_config=u(gee,{optional:!0});_focusMonitor=u(Yt);_cleanupClick;_renderer=u(je);_rippleLoader=u(Z0);_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(){u(ut).load(Di);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",i){e?this._focusMonitor.focusVia(this._elementRef.nativeElement,e,i):this._elementRef.nativeElement.focus(i)}_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(i){return new(i||t)};static \u0275dir=F({type:t,hostAttrs:[1,"mat-mdc-button-base"],hostVars:13,hostBindings:function(i,r){i&2&&(X("disabled",r._getDisabledAttribute())("aria-disabled",r._getAriaDisabled())("tabindex",r._getTabIndex()),it(r.color?"mat-"+r.color:""),G("mat-mdc-button-disabled",r.disabled)("mat-mdc-button-disabled-interactive",r.disabledInteractive)("mat-unthemed",!r.color)("_mat-animation-noopable",r._animationsDisabled))},inputs:{color:"color",disableRipple:[2,"disableRipple","disableRipple",V],disabled:[2,"disabled","disabled",V],ariaDisabled:[2,"aria-disabled","ariaDisabled",V],disabledInteractive:[2,"disabledInteractive","disabledInteractive",V],tabIndex:[2,"tabIndex","tabIndex",QB],_tabindex:[2,"tabindex","_tabindex",QB]}})}return t})(),ti=(()=>{class t extends sS{constructor(){super(),this._rippleLoader.configureRipple(this._elementRef.nativeElement,{centered:!0})}static \u0275fac=function(i){return new(i||t)};static \u0275cmp=E({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:[le],attrs:pee,ngContentSelectors:fee,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(i,r){i&1&&(Me(),ai(0,"span",0),oe(1),ai(2,"span",1)(3,"span",2))},styles:[`.mat-mdc-icon-button{-webkit-user-select:none;user-select:none;display:inline-block;position:relative;box-sizing:border-box;border:none;outline:none;background-color:rgba(0,0,0,0);fill:currentColor;text-decoration:none;cursor:pointer;z-index:0;overflow:visible;border-radius:var(--mat-icon-button-container-shape, var(--mat-sys-corner-full, 50%));flex-shrink:0;text-align:center;width:var(--mat-icon-button-state-layer-size, 40px);height:var(--mat-icon-button-state-layer-size, 40px);padding:calc(calc(var(--mat-icon-button-state-layer-size, 40px) - var(--mat-icon-button-icon-size, 24px)) / 2);font-size:var(--mat-icon-button-icon-size, 24px);color:var(--mat-icon-button-icon-color, var(--mat-sys-on-surface-variant));-webkit-tap-highlight-color:rgba(0,0,0,0)}.mat-mdc-icon-button .mat-mdc-button-ripple,.mat-mdc-icon-button .mat-mdc-button-persistent-ripple,.mat-mdc-icon-button .mat-mdc-button-persistent-ripple::before{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none;border-radius:inherit}.mat-mdc-icon-button .mat-mdc-button-ripple{overflow:hidden}.mat-mdc-icon-button .mat-mdc-button-persistent-ripple::before{content:"";opacity:0}.mat-mdc-icon-button .mdc-button__label,.mat-mdc-icon-button .mat-icon{z-index:1;position:relative}.mat-mdc-icon-button .mat-focus-indicator{top:0;left:0;right:0;bottom:0;position:absolute;border-radius:inherit}.mat-mdc-icon-button:focus>.mat-focus-indicator::before{content:"";border-radius:inherit}.mat-mdc-icon-button .mat-ripple-element{background-color:var(--mat-icon-button-ripple-color, color-mix(in srgb, var(--mat-sys-on-surface-variant) calc(var(--mat-sys-pressed-state-layer-opacity) * 100%), transparent))}.mat-mdc-icon-button .mat-mdc-button-persistent-ripple::before{background-color:var(--mat-icon-button-state-layer-color, var(--mat-sys-on-surface-variant))}.mat-mdc-icon-button.mat-mdc-button-disabled .mat-mdc-button-persistent-ripple::before{background-color:var(--mat-icon-button-disabled-state-layer-color, var(--mat-sys-on-surface-variant))}.mat-mdc-icon-button:hover>.mat-mdc-button-persistent-ripple::before{opacity:var(--mat-icon-button-hover-state-layer-opacity, var(--mat-sys-hover-state-layer-opacity))}.mat-mdc-icon-button.cdk-program-focused>.mat-mdc-button-persistent-ripple::before,.mat-mdc-icon-button.cdk-keyboard-focused>.mat-mdc-button-persistent-ripple::before,.mat-mdc-icon-button.mat-mdc-button-disabled-interactive:focus>.mat-mdc-button-persistent-ripple::before{opacity:var(--mat-icon-button-focus-state-layer-opacity, var(--mat-sys-focus-state-layer-opacity))}.mat-mdc-icon-button:active>.mat-mdc-button-persistent-ripple::before{opacity:var(--mat-icon-button-pressed-state-layer-opacity, var(--mat-sys-pressed-state-layer-opacity))}.mat-mdc-icon-button .mat-mdc-button-touch-target{position:absolute;top:50%;height:var(--mat-icon-button-touch-target-size, 48px);display:var(--mat-icon-button-touch-target-display, block);left:50%;width:var(--mat-icon-button-touch-target-size, 48px);transform:translate(-50%, -50%)}.mat-mdc-icon-button._mat-animation-noopable{transition:none !important;animation:none !important}.mat-mdc-icon-button[disabled],.mat-mdc-icon-button.mat-mdc-button-disabled{cursor:default;pointer-events:none;color:var(--mat-icon-button-disabled-icon-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent))}.mat-mdc-icon-button.mat-mdc-button-disabled-interactive{pointer-events:auto}.mat-mdc-icon-button img,.mat-mdc-icon-button svg{width:var(--mat-icon-button-icon-size, 24px);height:var(--mat-icon-button-icon-size, 24px);vertical-align:baseline}.mat-mdc-icon-button .mat-mdc-button-persistent-ripple{border-radius:var(--mat-icon-button-container-shape, var(--mat-sys-corner-full, 50%))}.mat-mdc-icon-button[hidden]{display:none}.mat-mdc-icon-button.mat-unthemed:not(.mdc-ripple-upgraded):focus::before,.mat-mdc-icon-button.mat-primary:not(.mdc-ripple-upgraded):focus::before,.mat-mdc-icon-button.mat-accent:not(.mdc-ripple-upgraded):focus::before,.mat-mdc-icon-button.mat-warn:not(.mdc-ripple-upgraded):focus::before{background:rgba(0,0,0,0);opacity:1} + [matCardTitle], [matCardSubtitle]`,"*"],Bk=new T("MAT_CARD_CONFIG"),zt=(()=>{class t{appearance;constructor(){let e=u(Bk,{optional:!0});this.appearance=e?.appearance||"raised"}static \u0275fac=function(i){return new(i||t)};static \u0275cmp=E({type:t,selectors:[["mat-card"]],hostAttrs:[1,"mat-mdc-card","mdc-card"],hostVars:8,hostBindings:function(i,r){i&2&&G("mat-mdc-card-outlined",r.appearance==="outlined")("mdc-card--outlined",r.appearance==="outlined")("mat-mdc-card-filled",r.appearance==="filled")("mdc-card--filled",r.appearance==="filled")},inputs:{appearance:"appearance"},exportAs:["matCard"],ngContentSelectors:GX,decls:1,vars:0,template:function(i,r){i&1&&(Me(),oe(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 rgba(0,0,0,0);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 t})(),Xt=(()=>{class t{static \u0275fac=function(i){return new(i||t)};static \u0275dir=F({type:t,selectors:[["mat-card-title"],["","mat-card-title",""],["","matCardTitle",""]],hostAttrs:[1,"mat-mdc-card-title"]})}return t})();var Ut=(()=>{class t{static \u0275fac=function(i){return new(i||t)};static \u0275dir=F({type:t,selectors:[["mat-card-content"]],hostAttrs:[1,"mat-mdc-card-content"]})}return t})(),HV=(()=>{class t{static \u0275fac=function(i){return new(i||t)};static \u0275dir=F({type:t,selectors:[["mat-card-subtitle"],["","mat-card-subtitle",""],["","matCardSubtitle",""]],hostAttrs:[1,"mat-mdc-card-subtitle"]})}return t})();var Jt=(()=>{class t{static \u0275fac=function(i){return new(i||t)};static \u0275cmp=E({type:t,selectors:[["mat-card-header"]],hostAttrs:[1,"mat-mdc-card-header"],ngContentSelectors:YX,decls:4,vars:0,consts:[[1,"mat-mdc-card-header-text"]],template:function(i,r){i&1&&(Me(qX),oe(0),ft(1,"div",0),oe(2,1),vt(),oe(3,2))},encapsulation:2,changeDetection:0})}return t})();var zV=(()=>{class t{static \u0275fac=function(i){return new(i||t)};static \u0275dir=F({type:t,selectors:[["","mat-card-avatar",""],["","matCardAvatar",""]],hostAttrs:[1,"mat-mdc-card-avatar"]})}return t})();var $t=(()=>{class t{static \u0275fac=function(i){return new(i||t)};static \u0275mod=ee({type:t});static \u0275inj=J({imports:[we,we]})}return t})();var jk=class{_box;_destroyed=new z;_resizeSubject=new z;_resizeObserver;_elementObservables=new Map;constructor(n){this._box=n,typeof ResizeObserver<"u"&&(this._resizeObserver=new ResizeObserver(e=>this._resizeSubject.next(e)))}observe(n){return this._elementObservables.has(n)||this._elementObservables.set(n,new Fe(e=>{let i=this._resizeSubject.subscribe(e);return this._resizeObserver?.observe(n,{box:this._box}),()=>{this._resizeObserver?.unobserve(n),i.unsubscribe(),this._elementObservables.delete(n)}}).pipe(ce(e=>e.some(i=>i.target===n)),dd({bufferSize:1,refCount:!0}),Te(this._destroyed))),this._elementObservables.get(n)}destroy(){this._destroyed.next(),this._destroyed.complete(),this._resizeSubject.complete(),this._elementObservables.clear()}},qy=(()=>{class t{_cleanupErrorListener;_observers=new Map;_ngZone=u(ae);constructor(){typeof ResizeObserver<"u"}ngOnDestroy(){for(let[,e]of this._observers)e.destroy();this._observers.clear(),this._cleanupErrorListener?.()}observe(e,i){let r=i?.box||"content-box";return this._observers.has(r)||this._observers.set(r,new jk(r)),this._observers.get(r).observe(e)}static \u0275fac=function(i){return new(i||t)};static \u0275prov=O({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();var QX=["notch"],KX=["matFormFieldNotchedOutline",""],ZX=["*"],UV=["iconPrefixContainer"],$V=["textPrefixContainer"],WV=["iconSuffixContainer"],GV=["textSuffixContainer"],XX=["textField"],JX=["*",[["mat-label"]],[["","matPrefix",""],["","matIconPrefix",""]],[["","matTextPrefix",""]],[["","matTextSuffix",""]],[["","matSuffix",""],["","matIconSuffix",""]],[["mat-error"],["","matError",""]],[["mat-hint",3,"align","end"]],[["mat-hint","align","end"]]],eJ=["*","mat-label","[matPrefix], [matIconPrefix]","[matTextPrefix]","[matTextSuffix]","[matSuffix], [matIconSuffix]","mat-error, [matError]","mat-hint:not([align='end'])","mat-hint[align='end']"];function tJ(t,n){t&1&&k(0,"span",21)}function iJ(t,n){if(t&1&&(h(0,"label",20),oe(1,1),N(2,tJ,1,0,"span",21),p()),t&2){let e=C(2);y("floating",e._shouldLabelFloat())("monitorResize",e._hasOutline())("id",e._labelId),X("for",e._control.disableAutomaticLabeling?null:e._control.id),g(2),L(!e.hideRequiredMarker&&e._control.required?2:-1)}}function nJ(t,n){if(t&1&&N(0,iJ,3,5,"label",20),t&2){let e=C();L(e._hasFloatingLabel()?0:-1)}}function rJ(t,n){t&1&&k(0,"div",7)}function oJ(t,n){}function aJ(t,n){if(t&1&&R(0,oJ,0,0,"ng-template",13),t&2){C(2);let e=Se(1);y("ngTemplateOutlet",e)}}function sJ(t,n){if(t&1&&(h(0,"div",9),N(1,aJ,1,1,null,13),p()),t&2){let e=C();y("matFormFieldNotchedOutlineOpen",e._shouldLabelFloat()),g(),L(e._forceDisplayInfixLabel()?-1:1)}}function lJ(t,n){t&1&&(h(0,"div",10,2),oe(2,2),p())}function cJ(t,n){t&1&&(h(0,"div",11,3),oe(2,3),p())}function dJ(t,n){}function uJ(t,n){if(t&1&&R(0,dJ,0,0,"ng-template",13),t&2){C();let e=Se(1);y("ngTemplateOutlet",e)}}function mJ(t,n){t&1&&(h(0,"div",14,4),oe(2,4),p())}function hJ(t,n){t&1&&(h(0,"div",15,5),oe(2,5),p())}function pJ(t,n){t&1&&k(0,"div",16)}function fJ(t,n){t&1&&(h(0,"div",18),oe(1,6),p())}function gJ(t,n){if(t&1&&(h(0,"mat-hint",22),_(1),p()),t&2){let e=C(2);y("id",e._hintLabelId),g(),H(e.hintLabel)}}function _J(t,n){if(t&1&&(h(0,"div",19),N(1,gJ,2,2,"mat-hint",22),oe(2,7),k(3,"div",23),oe(4,8),p()),t&2){let e=C();g(),L(e.hintLabel?1:-1)}}var sn=(()=>{class t{static \u0275fac=function(i){return new(i||t)};static \u0275dir=F({type:t,selectors:[["mat-label"]]})}return t})(),Hk=new T("MatError"),xo=(()=>{class t{id=u(Ze).getId("mat-mdc-error-");constructor(){}static \u0275fac=function(i){return new(i||t)};static \u0275dir=F({type:t,selectors:[["mat-error"],["","matError",""]],hostAttrs:[1,"mat-mdc-form-field-error","mat-mdc-form-field-bottom-align"],hostVars:1,hostBindings:function(i,r){i&2&&si("id",r.id)},inputs:{id:"id"},features:[Ce([{provide:Hk,useExisting:t}])]})}return t})(),eg=(()=>{class t{align="start";id=u(Ze).getId("mat-mdc-hint-");static \u0275fac=function(i){return new(i||t)};static \u0275dir=F({type:t,selectors:[["mat-hint"]],hostAttrs:[1,"mat-mdc-form-field-hint","mat-mdc-form-field-bottom-align"],hostVars:4,hostBindings:function(i,r){i&2&&(si("id",r.id),X("align",null),G("mat-mdc-form-field-hint-end",r.align==="end"))},inputs:{align:"align",id:"id"}})}return t})(),zk=new T("MatPrefix"),nu=(()=>{class t{set _isTextSelector(e){this._isText=!0}_isText=!1;static \u0275fac=function(i){return new(i||t)};static \u0275dir=F({type:t,selectors:[["","matPrefix",""],["","matIconPrefix",""],["","matTextPrefix",""]],inputs:{_isTextSelector:[0,"matTextPrefix","_isTextSelector"]},features:[Ce([{provide:zk,useExisting:t}])]})}return t})(),Uk=new T("MatSuffix"),ru=(()=>{class t{set _isTextSelector(e){this._isText=!0}_isText=!1;static \u0275fac=function(i){return new(i||t)};static \u0275dir=F({type:t,selectors:[["","matSuffix",""],["","matIconSuffix",""],["","matTextSuffix",""]],inputs:{_isTextSelector:[0,"matTextSuffix","_isTextSelector"]},features:[Ce([{provide:Uk,useExisting:t}])]})}return t})(),JV=new T("FloatingLabelParent"),qV=(()=>{class t{_elementRef=u(q);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=u(qy);_ngZone=u(ae);_parent=u(JV);_resizeSubscription=new ke;constructor(){}ngOnDestroy(){this._resizeSubscription.unsubscribe()}getWidth(){return bJ(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(i){return new(i||t)};static \u0275dir=F({type:t,selectors:[["label","matFormFieldFloatingLabel",""]],hostAttrs:[1,"mdc-floating-label","mat-mdc-floating-label"],hostVars:2,hostBindings:function(i,r){i&2&&G("mdc-floating-label--float-above",r.floating)},inputs:{floating:"floating",monitorResize:"monitorResize"}})}return t})();function bJ(t){let n=t;if(n.offsetParent!==null)return n.scrollWidth;let e=n.cloneNode(!0);e.style.setProperty("position","absolute"),e.style.setProperty("transform","translate(-9999px, -9999px)"),document.documentElement.appendChild(e);let i=e.scrollWidth;return e.remove(),i}var YV="mdc-line-ripple--active",Yy="mdc-line-ripple--deactivating",QV=(()=>{class t{_elementRef=u(q);_cleanupTransitionEnd;constructor(){let e=u(ae),i=u(je);e.runOutsideAngular(()=>{this._cleanupTransitionEnd=i.listen(this._elementRef.nativeElement,"transitionend",this._handleTransitionEnd)})}activate(){let e=this._elementRef.nativeElement.classList;e.remove(Yy),e.add(YV)}deactivate(){this._elementRef.nativeElement.classList.add(Yy)}_handleTransitionEnd=e=>{let i=this._elementRef.nativeElement.classList,r=i.contains(Yy);e.propertyName==="opacity"&&r&&i.remove(YV,Yy)};ngOnDestroy(){this._cleanupTransitionEnd()}static \u0275fac=function(i){return new(i||t)};static \u0275dir=F({type:t,selectors:[["div","matFormFieldLineRipple",""]],hostAttrs:[1,"mdc-line-ripple"]})}return t})(),KV=(()=>{class t{_elementRef=u(q);_ngZone=u(ae);open=!1;_notch;ngAfterViewInit(){let e=this._elementRef.nativeElement,i=e.querySelector(".mdc-floating-label");i?(e.classList.add("mdc-notched-outline--upgraded"),typeof requestAnimationFrame=="function"&&(i.style.transitionDuration="0s",this._ngZone.runOutsideAngular(()=>{requestAnimationFrame(()=>i.style.transitionDuration="")}))):e.classList.add("mdc-notched-outline--no-label")}_setNotchWidth(e){let i=this._notch.nativeElement;!this.open||!e?i.style.width="":i.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(i){return new(i||t)};static \u0275cmp=E({type:t,selectors:[["div","matFormFieldNotchedOutline",""]],viewQuery:function(i,r){if(i&1&&ie(QX,5),i&2){let o;B(o=j())&&(r._notch=o.first)}},hostAttrs:[1,"mdc-notched-outline"],hostVars:2,hostBindings:function(i,r){i&2&&G("mdc-notched-outline--notched",r.open)},inputs:{open:[0,"matFormFieldNotchedOutlineOpen","open"]},attrs:KX,ngContentSelectors:ZX,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(i,r){i&1&&(Me(),ai(0,"div",1),ft(1,"div",2,0),oe(3),vt(),ai(4,"div",3))},encapsulation:2,changeDetection:0})}return t})(),Ra=(()=>{class t{value;stateChanges;id;placeholder;ngControl;focused;empty;shouldLabelFloat;required;disabled;errorState;controlType;autofilled;userAriaDescribedBy;disableAutomaticLabeling;describedByIds;static \u0275fac=function(i){return new(i||t)};static \u0275dir=F({type:t})}return t})();var Xo=new T("MatFormField"),eB=new T("MAT_FORM_FIELD_DEFAULT_OPTIONS"),ZV="fill",vJ="auto",XV="fixed",yJ="translateY(-50%)",Oi=(()=>{class t{_elementRef=u(q);_changeDetectorRef=u(ye);_platform=u(qe);_idGenerator=u(Ze);_ngZone=u(ae);_defaults=u(eB,{optional:!0});_currentDirection;_textField;_iconPrefixContainer;_textPrefixContainer;_iconSuffixContainer;_textSuffixContainer;_floatingLabel;_notchedOutline;_lineRipple;_iconPrefixContainerSignal=qn("iconPrefixContainer");_textPrefixContainerSignal=qn("textPrefixContainer");_iconSuffixContainerSignal=qn("iconSuffixContainer");_textSuffixContainerSignal=qn("textSuffixContainer");_prefixSuffixContainers=Zt(()=>[this._iconPrefixContainerSignal(),this._textPrefixContainerSignal(),this._iconSuffixContainerSignal(),this._textSuffixContainerSignal()].map(e=>e?.nativeElement).filter(e=>e!==void 0));_formFieldControl;_prefixChildren;_suffixChildren;_errorChildren;_hintChildren;_labelChild=fr(sn);get hideRequiredMarker(){return this._hideRequiredMarker}set hideRequiredMarker(e){this._hideRequiredMarker=Ai(e)}_hideRequiredMarker=!1;color="primary";get floatLabel(){return this._floatLabel||this._defaults?.floatLabel||vJ}set floatLabel(e){e!==this._floatLabel&&(this._floatLabel=e,this._changeDetectorRef.markForCheck())}_floatLabel;get appearance(){return this._appearanceSignal()}set appearance(e){let i=e||this._defaults?.appearance||ZV;this._appearanceSignal.set(i)}_appearanceSignal=he(ZV);get subscriptSizing(){return this._subscriptSizing||this._defaults?.subscriptSizing||XV}set subscriptSizing(e){this._subscriptSizing=e||this._defaults?.subscriptSizing||XV}_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 z;_isFocused=null;_explicitFormFieldControl;_previousControl=null;_previousControlValidatorFn=null;_stateChanges;_valueChanges;_describedByChanges;_outlineLabelOffsetResizeObserver=null;_animationsDisabled=Ye();constructor(){let e=this._defaults,i=u(Vt);e&&(e.appearance&&(this.appearance=e.appearance),this._hideRequiredMarker=!!e?.hideRequiredMarker,e.color&&(this.color=e.color)),Ar(()=>this._currentDirection=i.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=Zt(()=>this._hasFloatingLabel()?this._labelId:null);getConnectedOverlayOrigin(){return this._textField||this._elementRef}_animateAndLockLabel(){this._hasFloatingLabel()&&(this.floatLabel="always")}_initializeControl(e){let i=this._control,r="mat-mdc-form-field-type-";e&&this._elementRef.nativeElement.classList.remove(r+e.controlType),i.controlType&&this._elementRef.nativeElement.classList.add(r+i.controlType),this._stateChanges?.unsubscribe(),this._stateChanges=i.stateChanges.subscribe(()=>{this._updateFocusState(),this._changeDetectorRef.markForCheck()}),this._describedByChanges?.unsubscribe(),this._describedByChanges=i.stateChanges.pipe(He([void 0,void 0]),se(()=>[i.errorState,i.userAriaDescribedBy]),db(),ce(([[o,a],[s,l]])=>o!==s||a!==l)).subscribe(()=>this._syncDescribedByIds()),this._valueChanges?.unsubscribe(),i.ngControl&&i.ngControl.valueChanges&&(this._valueChanges=i.ngControl.valueChanges.pipe(Te(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(),Je(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(){c2({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=Zt(()=>!!this._labelChild());_shouldLabelFloat(){return this._hasFloatingLabel()?this._control.shouldLabelFloat||this._shouldAlwaysFloat():!1}_shouldForward(e){let i=this._control?this._control.ngControl:null;return i&&i[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 o=this._hintChildren?this._hintChildren.find(s=>s.align==="start"):null,a=this._hintChildren?this._hintChildren.find(s=>s.align==="end"):null;o?e.push(o.id):this._hintLabel&&e.push(this._hintLabelId),a&&e.push(a.id)}else this._errorChildren&&e.push(...this._errorChildren.map(o=>o.id));let i=this._control.describedByIds,r;if(i){let o=this._describedByIds||e;r=e.concat(i.filter(a=>a&&!o.includes(a)))}else r=e;this._control.setDescribedByIds(r),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,i=this._textPrefixContainer?.nativeElement,r=this._iconSuffixContainer?.nativeElement,o=this._textSuffixContainer?.nativeElement,a=e?.getBoundingClientRect().width??0,s=i?.getBoundingClientRect().width??0,l=r?.getBoundingClientRect().width??0,c=o?.getBoundingClientRect().width??0,d=this._currentDirection==="rtl"?"-1":"1",m=`${a+s}px`,b=`calc(${d} * (${m} + var(--mat-mdc-form-field-label-offset-x, 0px)))`,v=`var(--mat-mdc-form-field-label-transform, ${yJ} translateX(${b}))`,w=a+s+l+c;return[v,w]}_writeOutlinedLabelStyles(e){if(e!==null){let[i,r]=e;this._floatingLabel&&(this._floatingLabel.element.style.transform=i),r!==null&&this._notchedOutline?._setMaxWidth(r)}}_isAttachedToDom(){let e=this._elementRef.nativeElement;if(e.getRootNode){let i=e.getRootNode();return i&&i!==e}return document.documentElement.contains(e)}static \u0275fac=function(i){return new(i||t)};static \u0275cmp=E({type:t,selectors:[["mat-form-field"]],contentQueries:function(i,r,o){if(i&1&&(Rn(o,r._labelChild,sn,5),xe(o,Ra,5),xe(o,zk,5),xe(o,Uk,5),xe(o,Hk,5),xe(o,eg,5)),i&2){Ho();let a;B(a=j())&&(r._formFieldControl=a.first),B(a=j())&&(r._prefixChildren=a),B(a=j())&&(r._suffixChildren=a),B(a=j())&&(r._errorChildren=a),B(a=j())&&(r._hintChildren=a)}},viewQuery:function(i,r){if(i&1&&(Pn(r._iconPrefixContainerSignal,UV,5),Pn(r._textPrefixContainerSignal,$V,5),Pn(r._iconSuffixContainerSignal,WV,5),Pn(r._textSuffixContainerSignal,GV,5),ie(XX,5),ie(UV,5),ie($V,5),ie(WV,5),ie(GV,5),ie(qV,5),ie(KV,5),ie(QV,5)),i&2){Ho(4);let o;B(o=j())&&(r._textField=o.first),B(o=j())&&(r._iconPrefixContainer=o.first),B(o=j())&&(r._textPrefixContainer=o.first),B(o=j())&&(r._iconSuffixContainer=o.first),B(o=j())&&(r._textSuffixContainer=o.first),B(o=j())&&(r._floatingLabel=o.first),B(o=j())&&(r._notchedOutline=o.first),B(o=j())&&(r._lineRipple=o.first)}},hostAttrs:[1,"mat-mdc-form-field"],hostVars:38,hostBindings:function(i,r){i&2&&G("mat-mdc-form-field-label-always-float",r._shouldAlwaysFloat())("mat-mdc-form-field-has-icon-prefix",r._hasIconPrefix)("mat-mdc-form-field-has-icon-suffix",r._hasIconSuffix)("mat-form-field-invalid",r._control.errorState)("mat-form-field-disabled",r._control.disabled)("mat-form-field-autofilled",r._control.autofilled)("mat-form-field-appearance-fill",r.appearance=="fill")("mat-form-field-appearance-outline",r.appearance=="outline")("mat-form-field-hide-placeholder",r._hasFloatingLabel()&&!r._shouldLabelFloat())("mat-primary",r.color!=="accent"&&r.color!=="warn")("mat-accent",r.color==="accent")("mat-warn",r.color==="warn")("ng-untouched",r._shouldForward("untouched"))("ng-touched",r._shouldForward("touched"))("ng-pristine",r._shouldForward("pristine"))("ng-dirty",r._shouldForward("dirty"))("ng-valid",r._shouldForward("valid"))("ng-invalid",r._shouldForward("invalid"))("ng-pending",r._shouldForward("pending"))},inputs:{hideRequiredMarker:"hideRequiredMarker",color:"color",floatLabel:"floatLabel",appearance:"appearance",subscriptSizing:"subscriptSizing",hintLabel:"hintLabel"},exportAs:["matFormField"],features:[Ce([{provide:Xo,useExisting:t},{provide:JV,useExisting:t}])],ngContentSelectors:eJ,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(i,r){if(i&1){let o=Y();Me(JX),R(0,nJ,1,1,"ng-template",null,0,_i),h(2,"div",6,1),S("click",function(s){return I(o),A(r._control.onContainerClick(s))}),N(4,rJ,1,0,"div",7),h(5,"div",8),N(6,sJ,2,2,"div",9),N(7,lJ,3,0,"div",10),N(8,cJ,3,0,"div",11),h(9,"div",12),N(10,uJ,1,1,null,13),oe(11),p(),N(12,mJ,3,0,"div",14),N(13,hJ,3,0,"div",15),p(),N(14,pJ,1,0,"div",16),p(),h(15,"div",17),N(16,fJ,2,0,"div",18)(17,_J,5,1,"div",19),p()}if(i&2){let o;g(2),G("mdc-text-field--filled",!r._hasOutline())("mdc-text-field--outlined",r._hasOutline())("mdc-text-field--no-label",!r._hasFloatingLabel())("mdc-text-field--disabled",r._control.disabled)("mdc-text-field--invalid",r._control.errorState),g(2),L(!r._hasOutline()&&!r._control.disabled?4:-1),g(2),L(r._hasOutline()?6:-1),g(),L(r._hasIconPrefix?7:-1),g(),L(r._hasTextPrefix?8:-1),g(2),L(!r._hasOutline()||r._forceDisplayInfixLabel()?10:-1),g(2),L(r._hasTextSuffix?12:-1),g(),L(r._hasIconSuffix?13:-1),g(),L(r._hasOutline()?-1:14),g(),G("mat-mdc-form-field-subscript-dynamic-size",r.subscriptSizing==="dynamic");let a=r._getSubscriptMessageType();g(),L((o=a)==="error"?16:o==="hint"?17:-1)}},dependencies:[qV,KV,Fn,QV,eg],styles:[`.mdc-text-field{display:inline-flex;align-items:baseline;padding:0 16px;position:relative;box-sizing:border-box;overflow:hidden;will-change:opacity,transform,color;border-top-left-radius:4px;border-top-right-radius:4px;border-bottom-right-radius:0;border-bottom-left-radius:0}.mdc-text-field__input{width:100%;min-width:0;border:none;border-radius:0;background:none;padding:0;-moz-appearance:none;-webkit-appearance:none;height:28px}.mdc-text-field__input::-webkit-calendar-picker-indicator,.mdc-text-field__input::-webkit-search-cancel-button{display:none}.mdc-text-field__input::-ms-clear{display:none}.mdc-text-field__input:focus{outline:none}.mdc-text-field__input:invalid{box-shadow:none}.mdc-text-field__input::placeholder{opacity:0}.mdc-text-field__input::-moz-placeholder{opacity:0}.mdc-text-field__input::-webkit-input-placeholder{opacity:0}.mdc-text-field__input:-ms-input-placeholder{opacity:0}.mdc-text-field--no-label .mdc-text-field__input::placeholder,.mdc-text-field--focused .mdc-text-field__input::placeholder{opacity:1}.mdc-text-field--no-label .mdc-text-field__input::-moz-placeholder,.mdc-text-field--focused .mdc-text-field__input::-moz-placeholder{opacity:1}.mdc-text-field--no-label .mdc-text-field__input::-webkit-input-placeholder,.mdc-text-field--focused .mdc-text-field__input::-webkit-input-placeholder{opacity:1}.mdc-text-field--no-label .mdc-text-field__input:-ms-input-placeholder,.mdc-text-field--focused .mdc-text-field__input:-ms-input-placeholder{opacity:1}.mdc-text-field--disabled:not(.mdc-text-field--no-label) .mdc-text-field__input.mat-mdc-input-disabled-interactive::placeholder{opacity:0}.mdc-text-field--disabled:not(.mdc-text-field--no-label) .mdc-text-field__input.mat-mdc-input-disabled-interactive::-moz-placeholder{opacity:0}.mdc-text-field--disabled:not(.mdc-text-field--no-label) .mdc-text-field__input.mat-mdc-input-disabled-interactive::-webkit-input-placeholder{opacity:0}.mdc-text-field--disabled:not(.mdc-text-field--no-label) .mdc-text-field__input.mat-mdc-input-disabled-interactive:-ms-input-placeholder{opacity:0}.mdc-text-field--outlined .mdc-text-field__input,.mdc-text-field--filled.mdc-text-field--no-label .mdc-text-field__input{height:100%}.mdc-text-field--outlined .mdc-text-field__input{display:flex;border:none !important;background-color:rgba(0,0,0,0)}.mdc-text-field--disabled .mdc-text-field__input{pointer-events:auto}.mdc-text-field--filled:not(.mdc-text-field--disabled) .mdc-text-field__input{color:var(--mat-form-field-filled-input-text-color, var(--mat-sys-on-surface));caret-color:var(--mat-form-field-filled-caret-color, var(--mat-sys-primary))}.mdc-text-field--filled:not(.mdc-text-field--disabled) .mdc-text-field__input::placeholder{color:var(--mat-form-field-filled-input-text-placeholder-color, var(--mat-sys-on-surface-variant))}.mdc-text-field--filled:not(.mdc-text-field--disabled) .mdc-text-field__input::-moz-placeholder{color:var(--mat-form-field-filled-input-text-placeholder-color, var(--mat-sys-on-surface-variant))}.mdc-text-field--filled:not(.mdc-text-field--disabled) .mdc-text-field__input::-webkit-input-placeholder{color:var(--mat-form-field-filled-input-text-placeholder-color, var(--mat-sys-on-surface-variant))}.mdc-text-field--filled:not(.mdc-text-field--disabled) .mdc-text-field__input:-ms-input-placeholder{color:var(--mat-form-field-filled-input-text-placeholder-color, var(--mat-sys-on-surface-variant))}.mdc-text-field--outlined:not(.mdc-text-field--disabled) .mdc-text-field__input{color:var(--mat-form-field-outlined-input-text-color, var(--mat-sys-on-surface));caret-color:var(--mat-form-field-outlined-caret-color, var(--mat-sys-primary))}.mdc-text-field--outlined:not(.mdc-text-field--disabled) .mdc-text-field__input::placeholder{color:var(--mat-form-field-outlined-input-text-placeholder-color, var(--mat-sys-on-surface-variant))}.mdc-text-field--outlined:not(.mdc-text-field--disabled) .mdc-text-field__input::-moz-placeholder{color:var(--mat-form-field-outlined-input-text-placeholder-color, var(--mat-sys-on-surface-variant))}.mdc-text-field--outlined:not(.mdc-text-field--disabled) .mdc-text-field__input::-webkit-input-placeholder{color:var(--mat-form-field-outlined-input-text-placeholder-color, var(--mat-sys-on-surface-variant))}.mdc-text-field--outlined:not(.mdc-text-field--disabled) .mdc-text-field__input:-ms-input-placeholder{color:var(--mat-form-field-outlined-input-text-placeholder-color, var(--mat-sys-on-surface-variant))}.mdc-text-field--filled.mdc-text-field--invalid:not(.mdc-text-field--disabled) .mdc-text-field__input{caret-color:var(--mat-form-field-filled-error-caret-color, var(--mat-sys-error))}.mdc-text-field--outlined.mdc-text-field--invalid:not(.mdc-text-field--disabled) .mdc-text-field__input{caret-color:var(--mat-form-field-outlined-error-caret-color, var(--mat-sys-error))}.mdc-text-field--filled.mdc-text-field--disabled .mdc-text-field__input{color:var(--mat-form-field-filled-disabled-input-text-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent))}.mdc-text-field--outlined.mdc-text-field--disabled .mdc-text-field__input{color:var(--mat-form-field-outlined-disabled-input-text-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent))}@media(forced-colors: active){.mdc-text-field--disabled .mdc-text-field__input{background-color:Window}}.mdc-text-field--filled{height:56px;border-bottom-right-radius:0;border-bottom-left-radius:0;border-top-left-radius:var(--mat-form-field-filled-container-shape, var(--mat-sys-corner-extra-small));border-top-right-radius:var(--mat-form-field-filled-container-shape, var(--mat-sys-corner-extra-small))}.mdc-text-field--filled:not(.mdc-text-field--disabled){background-color:var(--mat-form-field-filled-container-color, var(--mat-sys-surface-variant))}.mdc-text-field--filled.mdc-text-field--disabled{background-color:var(--mat-form-field-filled-disabled-container-color, color-mix(in srgb, var(--mat-sys-on-surface) 4%, transparent))}.mdc-text-field--outlined{height:56px;overflow:visible;padding-right:max(16px,var(--mat-form-field-outlined-container-shape, var(--mat-sys-corner-extra-small)));padding-left:max(16px,var(--mat-form-field-outlined-container-shape, var(--mat-sys-corner-extra-small)) + 4px)}[dir=rtl] .mdc-text-field--outlined{padding-right:max(16px,var(--mat-form-field-outlined-container-shape, var(--mat-sys-corner-extra-small)) + 4px);padding-left:max(16px,var(--mat-form-field-outlined-container-shape, var(--mat-sys-corner-extra-small)))}.mdc-floating-label{position:absolute;left:0;transform-origin:left top;line-height:1.15rem;text-align:left;text-overflow:ellipsis;white-space:nowrap;cursor:text;overflow:hidden;will-change:transform}[dir=rtl] .mdc-floating-label{right:0;left:auto;transform-origin:right top;text-align:right}.mdc-text-field .mdc-floating-label{top:50%;transform:translateY(-50%);pointer-events:none}.mdc-notched-outline .mdc-floating-label{display:inline-block;position:relative;max-width:100%}.mdc-text-field--outlined .mdc-floating-label{left:4px;right:auto}[dir=rtl] .mdc-text-field--outlined .mdc-floating-label{left:auto;right:4px}.mdc-text-field--filled .mdc-floating-label{left:16px;right:auto}[dir=rtl] .mdc-text-field--filled .mdc-floating-label{left:auto;right:16px}.mdc-text-field--disabled .mdc-floating-label{cursor:default}@media(forced-colors: active){.mdc-text-field--disabled .mdc-floating-label{z-index:1}}.mdc-text-field--filled.mdc-text-field--no-label .mdc-floating-label{display:none}.mdc-text-field--filled:not(.mdc-text-field--disabled) .mdc-floating-label{color:var(--mat-form-field-filled-label-text-color, var(--mat-sys-on-surface-variant))}.mdc-text-field--filled:not(.mdc-text-field--disabled).mdc-text-field--focused .mdc-floating-label{color:var(--mat-form-field-filled-focus-label-text-color, var(--mat-sys-primary))}.mdc-text-field--filled:not(.mdc-text-field--disabled):not(.mdc-text-field--focused):hover .mdc-floating-label{color:var(--mat-form-field-filled-hover-label-text-color, var(--mat-sys-on-surface-variant))}.mdc-text-field--filled.mdc-text-field--disabled .mdc-floating-label{color:var(--mat-form-field-filled-disabled-label-text-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent))}.mdc-text-field--filled:not(.mdc-text-field--disabled).mdc-text-field--invalid .mdc-floating-label{color:var(--mat-form-field-filled-error-label-text-color, var(--mat-sys-error))}.mdc-text-field--filled:not(.mdc-text-field--disabled).mdc-text-field--invalid.mdc-text-field--focused .mdc-floating-label{color:var(--mat-form-field-filled-error-focus-label-text-color, var(--mat-sys-error))}.mdc-text-field--filled:not(.mdc-text-field--disabled).mdc-text-field--invalid:not(.mdc-text-field--disabled):hover .mdc-floating-label{color:var(--mat-form-field-filled-error-hover-label-text-color, var(--mat-sys-on-error-container))}.mdc-text-field--filled .mdc-floating-label{font-family:var(--mat-form-field-filled-label-text-font, var(--mat-sys-body-large-font));font-size:var(--mat-form-field-filled-label-text-size, var(--mat-sys-body-large-size));font-weight:var(--mat-form-field-filled-label-text-weight, var(--mat-sys-body-large-weight));letter-spacing:var(--mat-form-field-filled-label-text-tracking, var(--mat-sys-body-large-tracking))}.mdc-text-field--outlined:not(.mdc-text-field--disabled) .mdc-floating-label{color:var(--mat-form-field-outlined-label-text-color, var(--mat-sys-on-surface-variant))}.mdc-text-field--outlined:not(.mdc-text-field--disabled).mdc-text-field--focused .mdc-floating-label{color:var(--mat-form-field-outlined-focus-label-text-color, var(--mat-sys-primary))}.mdc-text-field--outlined:not(.mdc-text-field--disabled):not(.mdc-text-field--focused):hover .mdc-floating-label{color:var(--mat-form-field-outlined-hover-label-text-color, var(--mat-sys-on-surface))}.mdc-text-field--outlined.mdc-text-field--disabled .mdc-floating-label{color:var(--mat-form-field-outlined-disabled-label-text-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent))}.mdc-text-field--outlined:not(.mdc-text-field--disabled).mdc-text-field--invalid .mdc-floating-label{color:var(--mat-form-field-outlined-error-label-text-color, var(--mat-sys-error))}.mdc-text-field--outlined:not(.mdc-text-field--disabled).mdc-text-field--invalid.mdc-text-field--focused .mdc-floating-label{color:var(--mat-form-field-outlined-error-focus-label-text-color, var(--mat-sys-error))}.mdc-text-field--outlined:not(.mdc-text-field--disabled).mdc-text-field--invalid:not(.mdc-text-field--disabled):hover .mdc-floating-label{color:var(--mat-form-field-outlined-error-hover-label-text-color, var(--mat-sys-on-error-container))}.mdc-text-field--outlined .mdc-floating-label{font-family:var(--mat-form-field-outlined-label-text-font, var(--mat-sys-body-large-font));font-size:var(--mat-form-field-outlined-label-text-size, var(--mat-sys-body-large-size));font-weight:var(--mat-form-field-outlined-label-text-weight, var(--mat-sys-body-large-weight));letter-spacing:var(--mat-form-field-outlined-label-text-tracking, var(--mat-sys-body-large-tracking))}.mdc-floating-label--float-above{cursor:auto;transform:translateY(-106%) scale(0.75)}.mdc-text-field--filled .mdc-floating-label--float-above{transform:translateY(-106%) scale(0.75)}.mdc-text-field--outlined .mdc-floating-label--float-above{transform:translateY(-37.25px) scale(1);font-size:.75rem}.mdc-notched-outline .mdc-floating-label--float-above{text-overflow:clip}.mdc-notched-outline--upgraded .mdc-floating-label--float-above{max-width:133.3333333333%}.mdc-text-field--outlined.mdc-notched-outline--upgraded .mdc-floating-label--float-above,.mdc-text-field--outlined .mdc-notched-outline--upgraded .mdc-floating-label--float-above{transform:translateY(-34.75px) scale(0.75)}.mdc-text-field--outlined.mdc-notched-outline--upgraded .mdc-floating-label--float-above,.mdc-text-field--outlined .mdc-notched-outline--upgraded .mdc-floating-label--float-above{font-size:1rem}.mdc-floating-label--required:not(.mdc-floating-label--hide-required-marker)::after{margin-left:1px;margin-right:0;content:"*"}[dir=rtl] .mdc-floating-label--required:not(.mdc-floating-label--hide-required-marker)::after{margin-left:0;margin-right:1px}.mdc-notched-outline{display:flex;position:absolute;top:0;right:0;left:0;box-sizing:border-box;width:100%;max-width:100%;height:100%;text-align:left;pointer-events:none}[dir=rtl] .mdc-notched-outline{text-align:right}.mdc-text-field--outlined .mdc-notched-outline{z-index:1}.mat-mdc-notch-piece{box-sizing:border-box;height:100%;pointer-events:none;border-top:1px solid;border-bottom:1px solid}.mdc-text-field--focused .mat-mdc-notch-piece{border-width:2px}.mdc-text-field--outlined:not(.mdc-text-field--disabled) .mat-mdc-notch-piece{border-color:var(--mat-form-field-outlined-outline-color, var(--mat-sys-outline));border-width:var(--mat-form-field-outlined-outline-width, 1px)}.mdc-text-field--outlined:not(.mdc-text-field--disabled):not(.mdc-text-field--focused):hover .mat-mdc-notch-piece{border-color:var(--mat-form-field-outlined-hover-outline-color, var(--mat-sys-on-surface))}.mdc-text-field--outlined:not(.mdc-text-field--disabled).mdc-text-field--focused .mat-mdc-notch-piece{border-color:var(--mat-form-field-outlined-focus-outline-color, var(--mat-sys-primary))}.mdc-text-field--outlined.mdc-text-field--disabled .mat-mdc-notch-piece{border-color:var(--mat-form-field-outlined-disabled-outline-color, color-mix(in srgb, var(--mat-sys-on-surface) 12%, transparent))}.mdc-text-field--outlined:not(.mdc-text-field--disabled).mdc-text-field--invalid .mat-mdc-notch-piece{border-color:var(--mat-form-field-outlined-error-outline-color, var(--mat-sys-error))}.mdc-text-field--outlined:not(.mdc-text-field--disabled).mdc-text-field--invalid:not(.mdc-text-field--focused):hover .mdc-notched-outline .mat-mdc-notch-piece{border-color:var(--mat-form-field-outlined-error-hover-outline-color, var(--mat-sys-on-error-container))}.mdc-text-field--outlined:not(.mdc-text-field--disabled).mdc-text-field--invalid.mdc-text-field--focused .mat-mdc-notch-piece{border-color:var(--mat-form-field-outlined-error-focus-outline-color, var(--mat-sys-error))}.mdc-text-field--outlined:not(.mdc-text-field--disabled).mdc-text-field--focused .mdc-notched-outline .mat-mdc-notch-piece{border-width:var(--mat-form-field-outlined-focus-outline-width, 2px)}.mdc-notched-outline__leading{border-left:1px solid;border-right:none;border-top-right-radius:0;border-bottom-right-radius:0;border-top-left-radius:var(--mat-form-field-outlined-container-shape, var(--mat-sys-corner-extra-small));border-bottom-left-radius:var(--mat-form-field-outlined-container-shape, var(--mat-sys-corner-extra-small))}.mdc-text-field--outlined .mdc-notched-outline .mdc-notched-outline__leading{width:max(12px,var(--mat-form-field-outlined-container-shape, var(--mat-sys-corner-extra-small)))}[dir=rtl] .mdc-notched-outline__leading{border-left:none;border-right:1px solid;border-bottom-left-radius:0;border-top-left-radius:0;border-top-right-radius:var(--mat-form-field-outlined-container-shape, var(--mat-sys-corner-extra-small));border-bottom-right-radius:var(--mat-form-field-outlined-container-shape, var(--mat-sys-corner-extra-small))}.mdc-notched-outline__trailing{flex-grow:1;border-left:none;border-right:1px solid;border-top-left-radius:0;border-bottom-left-radius:0;border-top-right-radius:var(--mat-form-field-outlined-container-shape, var(--mat-sys-corner-extra-small));border-bottom-right-radius:var(--mat-form-field-outlined-container-shape, var(--mat-sys-corner-extra-small))}[dir=rtl] .mdc-notched-outline__trailing{border-left:1px solid;border-right:none;border-top-right-radius:0;border-bottom-right-radius:0;border-top-left-radius:var(--mat-form-field-outlined-container-shape, var(--mat-sys-corner-extra-small));border-bottom-left-radius:var(--mat-form-field-outlined-container-shape, var(--mat-sys-corner-extra-small))}.mdc-notched-outline__notch{flex:0 0 auto;width:auto}.mdc-text-field--outlined .mdc-notched-outline .mdc-notched-outline__notch{max-width:min(var(--mat-form-field-notch-max-width, 100%),calc(100% - max(12px, var(--mat-form-field-outlined-container-shape, var(--mat-sys-corner-extra-small))) * 2))}.mdc-text-field--outlined .mdc-notched-outline--notched .mdc-notched-outline__notch{max-width:min(100%,calc(100% - max(12px, var(--mat-form-field-outlined-container-shape, var(--mat-sys-corner-extra-small))) * 2))}.mdc-text-field--outlined .mdc-notched-outline--notched .mdc-notched-outline__notch{padding-top:1px}.mdc-text-field--focused.mdc-text-field--outlined .mdc-notched-outline--notched .mdc-notched-outline__notch{padding-top:2px}.mdc-notched-outline--notched .mdc-notched-outline__notch{padding-left:0;padding-right:8px;border-top:none}[dir=rtl] .mdc-notched-outline--notched .mdc-notched-outline__notch{padding-left:8px;padding-right:0}.mdc-notched-outline--no-label .mdc-notched-outline__notch{display:none}.mdc-line-ripple::before,.mdc-line-ripple::after{position:absolute;bottom:0;left:0;width:100%;border-bottom-style:solid;content:""}.mdc-line-ripple::before{z-index:1;border-bottom-width:var(--mat-form-field-filled-active-indicator-height, 1px)}.mdc-text-field--filled:not(.mdc-text-field--disabled) .mdc-line-ripple::before{border-bottom-color:var(--mat-form-field-filled-active-indicator-color, var(--mat-sys-on-surface-variant))}.mdc-text-field--filled:not(.mdc-text-field--disabled):not(.mdc-text-field--focused):hover .mdc-line-ripple::before{border-bottom-color:var(--mat-form-field-filled-hover-active-indicator-color, var(--mat-sys-on-surface))}.mdc-text-field--filled.mdc-text-field--disabled .mdc-line-ripple::before{border-bottom-color:var(--mat-form-field-filled-disabled-active-indicator-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent))}.mdc-text-field--filled:not(.mdc-text-field--disabled).mdc-text-field--invalid .mdc-line-ripple::before{border-bottom-color:var(--mat-form-field-filled-error-active-indicator-color, var(--mat-sys-error))}.mdc-text-field--filled:not(.mdc-text-field--disabled).mdc-text-field--invalid:not(.mdc-text-field--focused):hover .mdc-line-ripple::before{border-bottom-color:var(--mat-form-field-filled-error-hover-active-indicator-color, var(--mat-sys-on-error-container))}.mdc-line-ripple::after{transform:scaleX(0);opacity:0;z-index:2}.mdc-text-field--filled .mdc-line-ripple::after{border-bottom-width:var(--mat-form-field-filled-focus-active-indicator-height, 2px)}.mdc-text-field--filled:not(.mdc-text-field--disabled) .mdc-line-ripple::after{border-bottom-color:var(--mat-form-field-filled-focus-active-indicator-color, var(--mat-sys-primary))}.mdc-text-field--filled.mdc-text-field--invalid:not(.mdc-text-field--disabled) .mdc-line-ripple::after{border-bottom-color:var(--mat-form-field-filled-error-focus-active-indicator-color, var(--mat-sys-error))}.mdc-line-ripple--active::after{transform:scaleX(1);opacity:1}.mdc-line-ripple--deactivating::after{opacity:0}.mdc-text-field--disabled{pointer-events:none}.mat-mdc-form-field-textarea-control{vertical-align:middle;resize:vertical;box-sizing:border-box;height:auto;margin:0;padding:0;border:none;overflow:auto}.mat-mdc-form-field-input-control.mat-mdc-form-field-input-control{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;font:inherit;letter-spacing:inherit;text-decoration:inherit;text-transform:inherit;border:none}.mat-mdc-form-field .mat-mdc-floating-label.mdc-floating-label{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;line-height:normal;pointer-events:all;will-change:auto}.mat-mdc-form-field:not(.mat-form-field-disabled) .mat-mdc-floating-label.mdc-floating-label{cursor:inherit}.mdc-text-field--no-label:not(.mdc-text-field--textarea) .mat-mdc-form-field-input-control.mdc-text-field__input,.mat-mdc-text-field-wrapper .mat-mdc-form-field-input-control{height:auto}.mat-mdc-text-field-wrapper .mat-mdc-form-field-input-control.mdc-text-field__input[type=color]{height:23px}.mat-mdc-text-field-wrapper{height:auto;flex:auto;will-change:auto}.mat-mdc-form-field-has-icon-prefix .mat-mdc-text-field-wrapper{padding-left:0;--mat-mdc-form-field-label-offset-x: -16px}.mat-mdc-form-field-has-icon-suffix .mat-mdc-text-field-wrapper{padding-right:0}[dir=rtl] .mat-mdc-text-field-wrapper{padding-left:16px;padding-right:16px}[dir=rtl] .mat-mdc-form-field-has-icon-suffix .mat-mdc-text-field-wrapper{padding-left:0}[dir=rtl] .mat-mdc-form-field-has-icon-prefix .mat-mdc-text-field-wrapper{padding-right:0}.mat-form-field-disabled .mdc-text-field__input::placeholder{color:var(--mat-form-field-disabled-input-text-placeholder-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent))}.mat-form-field-disabled .mdc-text-field__input::-moz-placeholder{color:var(--mat-form-field-disabled-input-text-placeholder-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent))}.mat-form-field-disabled .mdc-text-field__input::-webkit-input-placeholder{color:var(--mat-form-field-disabled-input-text-placeholder-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent))}.mat-form-field-disabled .mdc-text-field__input:-ms-input-placeholder{color:var(--mat-form-field-disabled-input-text-placeholder-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent))}.mat-mdc-form-field-label-always-float .mdc-text-field__input::placeholder{transition-delay:40ms;transition-duration:110ms;opacity:1}.mat-mdc-text-field-wrapper .mat-mdc-form-field-infix .mat-mdc-floating-label{left:auto;right:auto}.mat-mdc-text-field-wrapper.mdc-text-field--outlined .mdc-text-field__input{display:inline-block}.mat-mdc-form-field .mat-mdc-text-field-wrapper.mdc-text-field .mdc-notched-outline__notch{padding-top:0}.mat-mdc-form-field.mat-mdc-form-field.mat-mdc-form-field.mat-mdc-form-field.mat-mdc-form-field.mat-mdc-form-field .mdc-notched-outline__notch{border-left:1px solid rgba(0,0,0,0)}[dir=rtl] .mat-mdc-form-field.mat-mdc-form-field.mat-mdc-form-field.mat-mdc-form-field.mat-mdc-form-field.mat-mdc-form-field .mdc-notched-outline__notch{border-left:none;border-right:1px solid rgba(0,0,0,0)}.mat-mdc-form-field-infix{min-height:var(--mat-form-field-container-height, 56px);padding-top:var(--mat-form-field-filled-with-label-container-padding-top, 24px);padding-bottom:var(--mat-form-field-filled-with-label-container-padding-bottom, 8px)}.mdc-text-field--outlined .mat-mdc-form-field-infix,.mdc-text-field--no-label .mat-mdc-form-field-infix{padding-top:var(--mat-form-field-container-vertical-padding, 16px);padding-bottom:var(--mat-form-field-container-vertical-padding, 16px)}.mat-mdc-text-field-wrapper .mat-mdc-form-field-flex .mat-mdc-floating-label{top:calc(var(--mat-form-field-container-height, 56px)/2)}.mdc-text-field--filled .mat-mdc-floating-label{display:var(--mat-form-field-filled-label-display, block)}.mat-mdc-text-field-wrapper.mdc-text-field--outlined .mdc-notched-outline--upgraded .mdc-floating-label--float-above{--mat-mdc-form-field-label-transform: translateY(calc(calc(6.75px + var(--mat-form-field-container-height, 56px) / 2) * -1)) scale(var(--mat-mdc-form-field-floating-label-scale, 0.75));transform:var(--mat-mdc-form-field-label-transform)}@keyframes _mat-form-field-subscript-animation{from{opacity:0;transform:translateY(-5px)}to{opacity:1;transform:translateY(0)}}.mat-mdc-form-field-subscript-wrapper{box-sizing:border-box;width:100%;position:relative}.mat-mdc-form-field-hint-wrapper,.mat-mdc-form-field-error-wrapper{position:absolute;top:0;left:0;right:0;padding:0 16px;opacity:1;transform:translateY(0);animation:_mat-form-field-subscript-animation 0ms cubic-bezier(0.55, 0, 0.55, 0.2)}.mat-mdc-form-field-subscript-dynamic-size .mat-mdc-form-field-hint-wrapper,.mat-mdc-form-field-subscript-dynamic-size .mat-mdc-form-field-error-wrapper{position:static}.mat-mdc-form-field-bottom-align::before{content:"";display:inline-block;height:16px}.mat-mdc-form-field-bottom-align.mat-mdc-form-field-subscript-dynamic-size::before{content:unset}.mat-mdc-form-field-hint-end{order:1}.mat-mdc-form-field-hint-wrapper{display:flex}.mat-mdc-form-field-hint-spacer{flex:1 0 1em}.mat-mdc-form-field-error{display:block;color:var(--mat-form-field-error-text-color, var(--mat-sys-error))}.mat-mdc-form-field-subscript-wrapper,.mat-mdc-form-field-bottom-align::before{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;font-family:var(--mat-form-field-subscript-text-font, var(--mat-sys-body-small-font));line-height:var(--mat-form-field-subscript-text-line-height, var(--mat-sys-body-small-line-height));font-size:var(--mat-form-field-subscript-text-size, var(--mat-sys-body-small-size));letter-spacing:var(--mat-form-field-subscript-text-tracking, var(--mat-sys-body-small-tracking));font-weight:var(--mat-form-field-subscript-text-weight, var(--mat-sys-body-small-weight))}.mat-mdc-form-field-focus-overlay{top:0;left:0;right:0;bottom:0;position:absolute;opacity:0;pointer-events:none;background-color:var(--mat-form-field-state-layer-color, var(--mat-sys-on-surface))}.mat-mdc-text-field-wrapper:hover .mat-mdc-form-field-focus-overlay{opacity:var(--mat-form-field-hover-state-layer-opacity, var(--mat-sys-hover-state-layer-opacity))}.mat-mdc-form-field.mat-focused .mat-mdc-form-field-focus-overlay{opacity:var(--mat-form-field-focus-state-layer-opacity, 0)}select.mat-mdc-form-field-input-control{-moz-appearance:none;-webkit-appearance:none;background-color:rgba(0,0,0,0);display:inline-flex;box-sizing:border-box}select.mat-mdc-form-field-input-control:not(:disabled){cursor:pointer}select.mat-mdc-form-field-input-control:not(.mat-mdc-native-select-inline) option{color:var(--mat-form-field-select-option-text-color, var(--mat-sys-neutral10))}select.mat-mdc-form-field-input-control:not(.mat-mdc-native-select-inline) option:disabled{color:var(--mat-form-field-select-disabled-option-text-color, color-mix(in srgb, var(--mat-sys-neutral10) 38%, transparent))}.mat-mdc-form-field-type-mat-native-select .mat-mdc-form-field-infix::after{content:"";width:0;height:0;border-left:5px solid rgba(0,0,0,0);border-right:5px solid rgba(0,0,0,0);border-top:5px solid;position:absolute;right:0;top:50%;margin-top:-2.5px;pointer-events:none;color:var(--mat-form-field-enabled-select-arrow-color, var(--mat-sys-on-surface-variant))}[dir=rtl] .mat-mdc-form-field-type-mat-native-select .mat-mdc-form-field-infix::after{right:auto;left:0}.mat-mdc-form-field-type-mat-native-select.mat-focused .mat-mdc-form-field-infix::after{color:var(--mat-form-field-focus-select-arrow-color, var(--mat-sys-primary))}.mat-mdc-form-field-type-mat-native-select.mat-form-field-disabled .mat-mdc-form-field-infix::after{color:var(--mat-form-field-disabled-select-arrow-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent))}.mat-mdc-form-field-type-mat-native-select .mat-mdc-form-field-input-control{padding-right:15px}[dir=rtl] .mat-mdc-form-field-type-mat-native-select .mat-mdc-form-field-input-control{padding-right:0;padding-left:15px}@media(forced-colors: active){.mat-form-field-appearance-fill .mat-mdc-text-field-wrapper{outline:solid 1px}}@media(forced-colors: active){.mat-form-field-appearance-fill.mat-form-field-disabled .mat-mdc-text-field-wrapper{outline-color:GrayText}}@media(forced-colors: active){.mat-form-field-appearance-fill.mat-focused .mat-mdc-text-field-wrapper{outline:dashed 3px}}@media(forced-colors: active){.mat-mdc-form-field.mat-focused .mdc-notched-outline{border:dashed 3px}}.mat-mdc-form-field-input-control[type=date],.mat-mdc-form-field-input-control[type=datetime],.mat-mdc-form-field-input-control[type=datetime-local],.mat-mdc-form-field-input-control[type=month],.mat-mdc-form-field-input-control[type=week],.mat-mdc-form-field-input-control[type=time]{line-height:1}.mat-mdc-form-field-input-control::-webkit-datetime-edit{line-height:1;padding:0;margin-bottom:-2px}.mat-mdc-form-field{--mat-mdc-form-field-floating-label-scale: 0.75;display:inline-flex;flex-direction:column;min-width:0;text-align:left;-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;font-family:var(--mat-form-field-container-text-font, var(--mat-sys-body-large-font));line-height:var(--mat-form-field-container-text-line-height, var(--mat-sys-body-large-line-height));font-size:var(--mat-form-field-container-text-size, var(--mat-sys-body-large-size));letter-spacing:var(--mat-form-field-container-text-tracking, var(--mat-sys-body-large-tracking));font-weight:var(--mat-form-field-container-text-weight, var(--mat-sys-body-large-weight))}.mat-mdc-form-field .mdc-text-field--outlined .mdc-floating-label--float-above{font-size:calc(var(--mat-form-field-outlined-label-text-populated-size)*var(--mat-mdc-form-field-floating-label-scale))}.mat-mdc-form-field .mdc-text-field--outlined .mdc-notched-outline--upgraded .mdc-floating-label--float-above{font-size:var(--mat-form-field-outlined-label-text-populated-size)}[dir=rtl] .mat-mdc-form-field{text-align:right}.mat-mdc-form-field-flex{display:inline-flex;align-items:baseline;box-sizing:border-box;width:100%}.mat-mdc-text-field-wrapper{width:100%;z-index:0}.mat-mdc-form-field-icon-prefix,.mat-mdc-form-field-icon-suffix{align-self:center;line-height:0;pointer-events:auto;position:relative;z-index:1}.mat-mdc-form-field-icon-prefix>.mat-icon,.mat-mdc-form-field-icon-suffix>.mat-icon{padding:0 12px;box-sizing:content-box}.mat-mdc-form-field-icon-prefix{color:var(--mat-form-field-leading-icon-color, var(--mat-sys-on-surface-variant))}.mat-form-field-disabled .mat-mdc-form-field-icon-prefix{color:var(--mat-form-field-disabled-leading-icon-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent))}.mat-mdc-form-field-icon-suffix{color:var(--mat-form-field-trailing-icon-color, var(--mat-sys-on-surface-variant))}.mat-form-field-disabled .mat-mdc-form-field-icon-suffix{color:var(--mat-form-field-disabled-trailing-icon-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent))}.mat-form-field-invalid .mat-mdc-form-field-icon-suffix{color:var(--mat-form-field-error-trailing-icon-color, var(--mat-sys-error))}.mat-form-field-invalid:not(.mat-focused):not(.mat-form-field-disabled) .mat-mdc-text-field-wrapper:hover .mat-mdc-form-field-icon-suffix{color:var(--mat-form-field-error-hover-trailing-icon-color, var(--mat-sys-on-error-container))}.mat-form-field-invalid.mat-focused .mat-mdc-text-field-wrapper .mat-mdc-form-field-icon-suffix{color:var(--mat-form-field-error-focus-trailing-icon-color, var(--mat-sys-error))}.mat-mdc-form-field-icon-prefix,[dir=rtl] .mat-mdc-form-field-icon-suffix{padding:0 4px 0 0}.mat-mdc-form-field-icon-suffix,[dir=rtl] .mat-mdc-form-field-icon-prefix{padding:0 0 0 4px}.mat-mdc-form-field-subscript-wrapper .mat-icon,.mat-mdc-form-field label .mat-icon{width:1em;height:1em;font-size:inherit}.mat-mdc-form-field-infix{flex:auto;min-width:0;width:180px;position:relative;box-sizing:border-box}.mat-mdc-form-field-infix:has(textarea[cols]){width:auto}.mat-mdc-form-field .mdc-notched-outline__notch{margin-left:-1px;-webkit-clip-path:inset(-9em -999em -9em 1px);clip-path:inset(-9em -999em -9em 1px)}[dir=rtl] .mat-mdc-form-field .mdc-notched-outline__notch{margin-left:0;margin-right:-1px;-webkit-clip-path:inset(-9em 1px -9em -999em);clip-path:inset(-9em 1px -9em -999em)}.mat-mdc-form-field.mat-form-field-animations-enabled .mdc-floating-label{transition:transform 150ms cubic-bezier(0.4, 0, 0.2, 1),color 150ms cubic-bezier(0.4, 0, 0.2, 1)}.mat-mdc-form-field.mat-form-field-animations-enabled .mdc-text-field__input{transition:opacity 150ms cubic-bezier(0.4, 0, 0.2, 1)}.mat-mdc-form-field.mat-form-field-animations-enabled .mdc-text-field__input::placeholder{transition:opacity 67ms cubic-bezier(0.4, 0, 0.2, 1)}.mat-mdc-form-field.mat-form-field-animations-enabled .mdc-text-field__input::-moz-placeholder{transition:opacity 67ms cubic-bezier(0.4, 0, 0.2, 1)}.mat-mdc-form-field.mat-form-field-animations-enabled .mdc-text-field__input::-webkit-input-placeholder{transition:opacity 67ms cubic-bezier(0.4, 0, 0.2, 1)}.mat-mdc-form-field.mat-form-field-animations-enabled .mdc-text-field__input:-ms-input-placeholder{transition:opacity 67ms cubic-bezier(0.4, 0, 0.2, 1)}.mat-mdc-form-field.mat-form-field-animations-enabled.mdc-text-field--no-label .mdc-text-field__input::placeholder,.mat-mdc-form-field.mat-form-field-animations-enabled.mdc-text-field--focused .mdc-text-field__input::placeholder{transition-delay:40ms;transition-duration:110ms}.mat-mdc-form-field.mat-form-field-animations-enabled.mdc-text-field--no-label .mdc-text-field__input::-moz-placeholder,.mat-mdc-form-field.mat-form-field-animations-enabled.mdc-text-field--focused .mdc-text-field__input::-moz-placeholder{transition-delay:40ms;transition-duration:110ms}.mat-mdc-form-field.mat-form-field-animations-enabled.mdc-text-field--no-label .mdc-text-field__input::-webkit-input-placeholder,.mat-mdc-form-field.mat-form-field-animations-enabled.mdc-text-field--focused .mdc-text-field__input::-webkit-input-placeholder{transition-delay:40ms;transition-duration:110ms}.mat-mdc-form-field.mat-form-field-animations-enabled.mdc-text-field--no-label .mdc-text-field__input:-ms-input-placeholder,.mat-mdc-form-field.mat-form-field-animations-enabled.mdc-text-field--focused .mdc-text-field__input:-ms-input-placeholder{transition-delay:40ms;transition-duration:110ms}.mat-mdc-form-field.mat-form-field-animations-enabled .mdc-text-field--filled:not(.mdc-ripple-upgraded):focus .mdc-text-field__ripple::before{transition-duration:75ms}.mat-mdc-form-field.mat-form-field-animations-enabled .mdc-line-ripple::after{transition:transform 180ms cubic-bezier(0.4, 0, 0.2, 1),opacity 180ms cubic-bezier(0.4, 0, 0.2, 1)}.mat-mdc-form-field.mat-form-field-animations-enabled .mat-mdc-form-field-hint-wrapper,.mat-mdc-form-field.mat-form-field-animations-enabled .mat-mdc-form-field-error-wrapper{animation-duration:300ms}.mdc-notched-outline .mdc-floating-label{max-width:calc(100% + 1px)}.mdc-notched-outline--upgraded .mdc-floating-label--float-above{max-width:calc(133.3333333333% + 1px)} +`],encapsulation:2,changeDetection:0})}return t})();var tg=class{};function ig(t){return t&&typeof t.connect=="function"&&!(t instanceof Al)}var cc=(function(t){return t[t.REPLACED=0]="REPLACED",t[t.INSERTED=1]="INSERTED",t[t.MOVED=2]="MOVED",t[t.REMOVED=3]="REMOVED",t})(cc||{}),fh=new T("_ViewRepeater");var xJ=20,ws=(()=>{class t{_ngZone=u(ae);_platform=u(qe);_renderer=u(cn).createRenderer(null,null);_cleanupGlobalListener;constructor(){}_scrolled=new z;_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 i=this.scrollContainers.get(e);i&&(i.unsubscribe(),this.scrollContainers.delete(e))}scrolled(e=xJ){return this._platform.isBrowser?new Fe(i=>{this._cleanupGlobalListener||(this._cleanupGlobalListener=this._ngZone.runOutsideAngular(()=>this._renderer.listen("document","scroll",()=>this._scrolled.next())));let r=e>0?this._scrolled.pipe(Pl(e)).subscribe(i):this._scrolled.subscribe(i);return this._scrolledCount++,()=>{r.unsubscribe(),this._scrolledCount--,this._scrolledCount||(this._cleanupGlobalListener?.(),this._cleanupGlobalListener=void 0)}}):Q()}ngOnDestroy(){this._cleanupGlobalListener?.(),this._cleanupGlobalListener=void 0,this.scrollContainers.forEach((e,i)=>this.deregister(i)),this._scrolled.complete()}ancestorScrolled(e,i){let r=this.getAncestorScrollContainers(e);return this.scrolled(i).pipe(ce(o=>!o||r.indexOf(o)>-1))}getAncestorScrollContainers(e){let i=[];return this.scrollContainers.forEach((r,o)=>{this._scrollableContainsElement(o,e)&&i.push(o)}),i}_scrollableContainsElement(e,i){let r=Pr(i),o=e.getElementRef().nativeElement;do if(r==o)return!0;while(r=r.parentElement);return!1}static \u0275fac=function(i){return new(i||t)};static \u0275prov=O({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),Pa=(()=>{class t{elementRef=u(q);scrollDispatcher=u(ws);ngZone=u(ae);dir=u(Vt,{optional:!0});_scrollElement=this.elementRef.nativeElement;_destroyed=new z;_renderer=u(je);_cleanupScroll;_elementScrolled=new z;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 i=this.elementRef.nativeElement,r=this.dir&&this.dir.value=="rtl";e.left==null&&(e.left=r?e.end:e.start),e.right==null&&(e.right=r?e.start:e.end),e.bottom!=null&&(e.top=i.scrollHeight-i.clientHeight-e.bottom),r&&eh()!=Aa.NORMAL?(e.left!=null&&(e.right=i.scrollWidth-i.clientWidth-e.left),eh()==Aa.INVERTED?e.left=e.right:eh()==Aa.NEGATED&&(e.left=e.right?-e.right:e.right)):e.right!=null&&(e.left=i.scrollWidth-i.clientWidth-e.right),this._applyScrollToOptions(e)}_applyScrollToOptions(e){let i=this.elementRef.nativeElement;q0()?i.scrollTo(e):(e.top!=null&&(i.scrollTop=e.top),e.left!=null&&(i.scrollLeft=e.left))}measureScrollOffset(e){let i="left",r="right",o=this.elementRef.nativeElement;if(e=="top")return o.scrollTop;if(e=="bottom")return o.scrollHeight-o.clientHeight-o.scrollTop;let a=this.dir&&this.dir.value=="rtl";return e=="start"?e=a?r:i:e=="end"&&(e=a?i:r),a&&eh()==Aa.INVERTED?e==i?o.scrollWidth-o.clientWidth-o.scrollLeft:o.scrollLeft:a&&eh()==Aa.NEGATED?e==i?o.scrollLeft+o.scrollWidth-o.clientWidth:-o.scrollLeft:e==i?o.scrollLeft:o.scrollWidth-o.clientWidth-o.scrollLeft}static \u0275fac=function(i){return new(i||t)};static \u0275dir=F({type:t,selectors:[["","cdk-scrollable",""],["","cdkScrollable",""]]})}return t})(),CJ=20,Xn=(()=>{class t{_platform=u(qe);_listeners;_viewportSize;_change=new z;_document=u(ge);constructor(){let e=u(ae),i=u(cn).createRenderer(null,null);e.runOutsideAngular(()=>{if(this._platform.isBrowser){let r=o=>this._change.next(o);this._listeners=[i.listen("window","resize",r),i.listen("window","orientationchange",r)]}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:i,height:r}=this.getViewportSize();return{top:e.top,left:e.left,bottom:e.top+r,right:e.left+i,height:r,width:i}}getViewportScrollPosition(){if(!this._platform.isBrowser)return{top:0,left:0};let e=this._document,i=this._getWindow(),r=e.documentElement,o=r.getBoundingClientRect(),a=-o.top||e.body.scrollTop||i.scrollY||r.scrollTop||0,s=-o.left||e.body.scrollLeft||i.scrollX||r.scrollLeft||0;return{top:a,left:s}}change(e=CJ){return e>0?this._change.pipe(Pl(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(i){return new(i||t)};static \u0275prov=O({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();var vr=(()=>{class t{static \u0275fac=function(i){return new(i||t)};static \u0275mod=ee({type:t});static \u0275inj=J({})}return t})(),ng=(()=>{class t{static \u0275fac=function(i){return new(i||t)};static \u0275mod=ee({type:t});static \u0275inj=J({imports:[vs,vr,vs,vr]})}return t})();var rg=class{_attachedHost;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}},Zr=class extends rg{component;viewContainerRef;injector;projectableNodes;constructor(n,e,i,r){super(),this.component=n,this.viewContainerRef=e,this.injector=i,this.projectableNodes=r}},Cn=class extends rg{templateRef;viewContainerRef;context;injector;constructor(n,e,i,r){super(),this.templateRef=n,this.viewContainerRef=e,this.context=i,this.injector=r}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()}},$k=class extends rg{element;constructor(n){super(),this.element=n instanceof q?n.nativeElement:n}},dc=class{_attachedPortal;_disposeFn;_isDisposed=!1;hasAttached(){return!!this._attachedPortal}attach(n){if(n instanceof Zr)return this._attachedPortal=n,this.attachComponentPortal(n);if(n instanceof Cn)return this._attachedPortal=n,this.attachTemplatePortal(n);if(this.attachDomPortal&&n instanceof $k)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)}},og=class extends dc{outletElement;_appRef;_defaultInjector;constructor(n,e,i){super(),this.outletElement=n,this._appRef=e,this._defaultInjector=i}attachComponentPortal(n){let e;if(n.viewContainerRef){let i=n.injector||n.viewContainerRef.injector,r=i.get(as,null,{optional:!0})||void 0;e=n.viewContainerRef.createComponent(n.component,{index:n.viewContainerRef.length,injector:i,ngModuleRef:r,projectableNodes:n.projectableNodes||void 0}),this.setDisposeFn(()=>e.destroy())}else{let i=this._appRef,r=n.injector||this._defaultInjector||de.NULL,o=r.get(Wt,i.injector);e=Mm(n.component,{elementInjector:r,environmentInjector:o,projectableNodes:n.projectableNodes||void 0}),i.attachView(e.hostView),this.setDisposeFn(()=>{i.viewCount>0&&i.detachView(e.hostView),e.destroy()})}return this.outletElement.appendChild(this._getComponentRootNode(e)),this._attachedPortal=n,e}attachTemplatePortal(n){let e=n.viewContainerRef,i=e.createEmbeddedView(n.templateRef,n.context,{injector:n.injector});return i.rootNodes.forEach(r=>this.outletElement.appendChild(r)),i.detectChanges(),this.setDisposeFn(()=>{let r=e.indexOf(i);r!==-1&&e.remove(r)}),this._attachedPortal=n,i}attachDomPortal=n=>{let e=n.element;e.parentNode;let i=this.outletElement.ownerDocument.createComment("dom-portal");e.parentNode.insertBefore(i,e),this.outletElement.appendChild(e),this._attachedPortal=n,super.setDisposeFn(()=>{i.parentNode&&i.parentNode.replaceChild(e,i)})};dispose(){super.dispose(),this.outletElement.remove()}_getComponentRootNode(n){return n.hostView.rootNodes[0]}},tB=(()=>{class t extends Cn{constructor(){let e=u(te),i=u(nt);super(e,i)}static \u0275fac=function(i){return new(i||t)};static \u0275dir=F({type:t,selectors:[["","cdkPortal",""]],exportAs:["cdkPortal"],features:[le]})}return t})();var yr=(()=>{class t extends dc{_moduleRef=u(as,{optional:!0});_document=u(ge);_viewContainerRef=u(nt);_isInitialized=!1;_attachedRef;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 U;get attachedRef(){return this._attachedRef}ngOnInit(){this._isInitialized=!0}ngOnDestroy(){super.dispose(),this._attachedRef=this._attachedPortal=null}attachComponentPortal(e){e.setAttachedHost(this);let i=e.viewContainerRef!=null?e.viewContainerRef:this._viewContainerRef,r=i.createComponent(e.component,{index:i.length,injector:e.injector||i.injector,projectableNodes:e.projectableNodes||void 0,ngModuleRef:this._moduleRef||void 0});return i!==this._viewContainerRef&&this._getRootNode().appendChild(r.hostView.rootNodes[0]),super.setDisposeFn(()=>r.destroy()),this._attachedPortal=e,this._attachedRef=r,this.attached.emit(r),r}attachTemplatePortal(e){e.setAttachedHost(this);let i=this._viewContainerRef.createEmbeddedView(e.templateRef,e.context,{injector:e.injector});return super.setDisposeFn(()=>this._viewContainerRef.clear()),this._attachedPortal=e,this._attachedRef=i,this.attached.emit(i),i}attachDomPortal=e=>{let i=e.element;i.parentNode;let r=this._document.createComment("dom-portal");e.setAttachedHost(this),i.parentNode.insertBefore(r,i),this._getRootNode().appendChild(i),this._attachedPortal=e,super.setDisposeFn(()=>{r.parentNode&&r.parentNode.replaceChild(i,r)})};_getRootNode(){let e=this._viewContainerRef.element.nativeElement;return e.nodeType===e.ELEMENT_NODE?e:e.parentNode}static \u0275fac=function(i){return new(i||t)};static \u0275dir=F({type:t,selectors:[["","cdkPortalOutlet",""]],inputs:{portal:[0,"cdkPortalOutlet","portal"]},outputs:{attached:"attached"},exportAs:["cdkPortalOutlet"],features:[le]})}return t})();var Co=(()=>{class t{static \u0275fac=function(i){return new(i||t)};static \u0275mod=ee({type:t});static \u0275inj=J({})}return t})();var iB=q0();function uc(t){return new Qy(t.get(Xn),t.get(ge))}var Qy=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=on(-this._previousScrollPosition.left),n.style.top=on(-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,i=n.style,r=e.style,o=i.scrollBehavior||"",a=r.scrollBehavior||"";this._isEnabled=!1,i.left=this._previousHTMLStyles.left,i.top=this._previousHTMLStyles.top,n.classList.remove("cdk-global-scrollblock"),iB&&(i.scrollBehavior=r.scrollBehavior="auto"),window.scroll(this._previousScrollPosition.left,this._previousScrollPosition.top),iB&&(i.scrollBehavior=o,r.scrollBehavior=a)}}_canBeEnabled(){if(this._document.documentElement.classList.contains("cdk-global-scrollblock")||this._isEnabled)return!1;let e=this._document.documentElement,i=this._viewportRuler.getViewportSize();return e.scrollHeight>i.height||e.scrollWidth>i.width}};function cB(t,n){return new Ky(t.get(ws),t.get(ae),t.get(Xn),n)}var Ky=class{_scrollDispatcher;_ngZone;_viewportRuler;_config;_scrollSubscription=null;_overlayRef;_initialScrollPosition;constructor(n,e,i,r){this._scrollDispatcher=n,this._ngZone=e,this._viewportRuler=i,this._config=r}attach(n){this._overlayRef,this._overlayRef=n}enable(){if(this._scrollSubscription)return;let n=this._scrollDispatcher.scrolled(0).pipe(ce(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 ag=class{enable(){}disable(){}attach(){}};function Wk(t,n){return n.some(e=>{let i=t.bottome.bottom,o=t.righte.right;return i||r||o||a})}function nB(t,n){return n.some(e=>{let i=t.tope.bottom,o=t.lefte.right;return i||r||o||a})}function wn(t,n){return new Zy(t.get(ws),t.get(Xn),t.get(ae),n)}var Zy=class{_scrollDispatcher;_viewportRuler;_ngZone;_config;_scrollSubscription=null;_overlayRef;constructor(n,e,i,r){this._scrollDispatcher=n,this._viewportRuler=e,this._ngZone=i,this._config=r}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:i,height:r}=this._viewportRuler.getViewportSize();Wk(e,[{width:i,height:r,bottom:r,right:i,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}},dB=(()=>{class t{_injector=u(de);constructor(){}noop=()=>new ag;close=e=>cB(this._injector,e);block=()=>uc(this._injector);reposition=e=>wn(this._injector,e);static \u0275fac=function(i){return new(i||t)};static \u0275prov=O({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),Fr=class{positionStrategy;scrollStrategy=new ag;panelClass="";hasBackdrop=!1;backdropClass="cdk-overlay-dark-backdrop";disableAnimations;width;height;minWidth;minHeight;maxWidth;maxHeight;direction;disposeOnNavigation=!1;constructor(n){if(n){let e=Object.keys(n);for(let i of e)n[i]!==void 0&&(this[i]=n[i])}}};var Xy=class{connectionPair;scrollableViewProperties;constructor(n,e){this.connectionPair=n,this.scrollableViewProperties=e}};var uB=(()=>{class t{_attachedOverlays=[];_document=u(ge);_isAttached;constructor(){}ngOnDestroy(){this.detach()}add(e){this.remove(e),this._attachedOverlays.push(e)}remove(e){let i=this._attachedOverlays.indexOf(e);i>-1&&this._attachedOverlays.splice(i,1),this._attachedOverlays.length===0&&this.detach()}static \u0275fac=function(i){return new(i||t)};static \u0275prov=O({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),mB=(()=>{class t extends uB{_ngZone=u(ae);_renderer=u(cn).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 i=this._attachedOverlays;for(let r=i.length-1;r>-1;r--)if(i[r]._keydownEvents.observers.length>0){this._ngZone.run(()=>i[r]._keydownEvents.next(e));break}};static \u0275fac=(()=>{let e;return function(r){return(e||(e=fe(t)))(r||t)}})();static \u0275prov=O({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),hB=(()=>{class t extends uB{_platform=u(qe);_ngZone=u(ae);_renderer=u(cn).createRenderer(null,null);_cursorOriginalValue;_cursorStyleIsSet=!1;_pointerDownEventTarget;_cleanups;add(e){if(super.add(e),!this._isAttached){let i=this._document.body,r={capture:!0},o=this._renderer;this._cleanups=this._ngZone.runOutsideAngular(()=>[o.listen(i,"pointerdown",this._pointerDownListener,r),o.listen(i,"click",this._clickListener,r),o.listen(i,"auxclick",this._clickListener,r),o.listen(i,"contextmenu",this._clickListener,r)]),this._platform.IOS&&!this._cursorStyleIsSet&&(this._cursorOriginalValue=i.style.cursor,i.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=Kn(e)};_clickListener=e=>{let i=Kn(e),r=e.type==="click"&&this._pointerDownEventTarget?this._pointerDownEventTarget:i;this._pointerDownEventTarget=null;let o=this._attachedOverlays.slice();for(let a=o.length-1;a>-1;a--){let s=o[a];if(s._outsidePointerEvents.observers.length<1||!s.hasAttached())continue;if(rB(s.overlayElement,i)||rB(s.overlayElement,r))break;let l=s._outsidePointerEvents;this._ngZone?this._ngZone.run(()=>l.next(e)):l.next(e)}};static \u0275fac=(()=>{let e;return function(r){return(e||(e=fe(t)))(r||t)}})();static \u0275prov=O({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();function rB(t,n){let e=typeof ShadowRoot<"u"&&ShadowRoot,i=n;for(;i;){if(i===t)return!0;i=e&&i instanceof ShadowRoot?i.host:i.parentNode}return!1}var pB=(()=>{class t{static \u0275fac=function(i){return new(i||t)};static \u0275cmp=E({type:t,selectors:[["ng-component"]],hostAttrs:["cdk-overlay-style-loader",""],decls:0,vars:0,template:function(i,r){},styles:[`.cdk-overlay-container,.cdk-global-overlay-wrapper{pointer-events:none;top:0;left:0;height:100%;width:100%}.cdk-overlay-container{position:fixed}@layer cdk-overlay{.cdk-overlay-container{z-index:1000}}.cdk-overlay-container:empty{display:none}.cdk-global-overlay-wrapper{display:flex;position:absolute}@layer cdk-overlay{.cdk-global-overlay-wrapper{z-index:1000}}.cdk-overlay-pane{position:absolute;pointer-events:auto;box-sizing:border-box;display:flex;max-width:100%;max-height:100%}@layer cdk-overlay{.cdk-overlay-pane{z-index:1000}}.cdk-overlay-backdrop{position:absolute;top:0;bottom:0;left:0;right:0;pointer-events:auto;-webkit-tap-highlight-color:rgba(0,0,0,0);opacity:0;touch-action:manipulation}@layer cdk-overlay{.cdk-overlay-backdrop{z-index:1000;transition:opacity 400ms cubic-bezier(0.25, 0.8, 0.25, 1)}}@media(prefers-reduced-motion){.cdk-overlay-backdrop{transition-duration:1ms}}.cdk-overlay-backdrop-showing{opacity:1}@media(forced-colors: active){.cdk-overlay-backdrop-showing{opacity:.6}}@layer cdk-overlay{.cdk-overlay-dark-backdrop{background:rgba(0,0,0,.32)}}.cdk-overlay-transparent-backdrop{transition:visibility 1ms linear,opacity 1ms linear;visibility:hidden;opacity:1}.cdk-overlay-transparent-backdrop.cdk-overlay-backdrop-showing,.cdk-high-contrast-active .cdk-overlay-transparent-backdrop{opacity:0;visibility:visible}.cdk-overlay-backdrop-noop-animation{transition:none}.cdk-overlay-connected-position-bounding-box{position:absolute;display:flex;flex-direction:column;min-width:1px;min-height:1px}@layer cdk-overlay{.cdk-overlay-connected-position-bounding-box{z-index:1000}}.cdk-global-scrollblock{position:fixed;width:100%;overflow-y:scroll} +`],encapsulation:2,changeDetection:0})}return t})(),ex=(()=>{class t{_platform=u(qe);_containerElement;_document=u(ge);_styleLoader=u(ut);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||Dk()){let r=this._document.querySelectorAll(`.${e}[platform="server"], .${e}[platform="test"]`);for(let o=0;o{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()}},gh=class{_portalOutlet;_host;_pane;_config;_ngZone;_keyboardDispatcher;_document;_location;_outsideClickDispatcher;_animationsDisabled;_injector;_renderer;_backdropClick=new z;_attachments=new z;_detachments=new z;_positionStrategy;_scrollStrategy;_locationChanges=ke.EMPTY;_backdropRef=null;_detachContentMutationObserver;_detachContentAfterRenderRef;_previousHostParent;_keydownEvents=new z;_outsidePointerEvents=new z;_afterNextRenderRef;constructor(n,e,i,r,o,a,s,l,c,d=!1,m,f){this._portalOutlet=n,this._host=e,this._pane=i,this._config=r,this._ngZone=o,this._keyboardDispatcher=a,this._document=s,this._location=l,this._outsideClickDispatcher=c,this._animationsDisabled=d,this._injector=m,this._renderer=f,r.scrollStrategy&&(this._scrollStrategy=r.scrollStrategy,this._scrollStrategy.attach(this)),this._positionStrategy=r.positionStrategy}get overlayElement(){return this._pane}get backdropElement(){return this._backdropRef?.element||null}get hostElement(){return this._host}attach(n){!this._host.parentElement&&this._previousHostParent&&this._previousHostParent.appendChild(this._host);let e=this._portalOutlet.attach(n);return this._positionStrategy&&this._positionStrategy.attach(this),this._updateStackingOrder(),this._updateElementSize(),this._updateElementDirection(),this._scrollStrategy&&this._scrollStrategy.enable(),this._afterNextRenderRef?.destroy(),this._afterNextRenderRef=pt(()=>{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(){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()}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=M(M({},this._config),n),this._updateElementSize()}setDirection(n){this._config=De(M({},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=on(this._config.width),n.height=on(this._config.height),n.minWidth=on(this._config.minWidth),n.minHeight=on(this._config.minHeight),n.maxWidth=on(this._config.maxWidth),n.maxHeight=on(this._config.maxHeight)}_togglePointerEvents(n){this._pane.style.pointerEvents=n?"":"none"}_attachBackdrop(){let n="cdk-overlay-backdrop-showing";this._backdropRef?.dispose(),this._backdropRef=new Gk(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._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._host.nextSibling&&this._host.parentNode.appendChild(this._host)}detachBackdrop(){this._animationsDisabled?(this._backdropRef?.dispose(),this._backdropRef=null):this._backdropRef?.detach()}_toggleClasses(n,e,i){let r=al(e||[]).filter(o=>!!o);r.length&&(i?n.classList.add(...r):n.classList.remove(...r))}_detachContentWhenEmpty(){let n=!1;try{this._detachContentAfterRenderRef=pt(()=>{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?.()}},oB="cdk-overlay-connected-position-bounding-box",DJ=/([A-Za-z%]+)$/;function Fa(t,n){return new _h(n,t.get(Xn),t.get(ge),t.get(qe),t.get(ex))}var _h=class{_viewportRuler;_document;_platform;_overlayContainer;_overlayRef;_isInitialRender;_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;_boundingBox;_lastPosition;_lastScrollVisibility;_positionChanges=new z;_resizeSubscription=ke.EMPTY;_offsetX=0;_offsetY=0;_transformOriginSelector;_appliedPanelClasses=[];_previousPushAmount;positionChanges=this._positionChanges;get positions(){return this._preferredPositions}constructor(n,e,i,r,o){this._viewportRuler=e,this._document=i,this._platform=r,this._overlayContainer=o,this.setOrigin(n)}attach(n){this._overlayRef&&this._overlayRef,this._validatePositions(),n.hostElement.classList.add(oB),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._overlayContainer.getContainerElement().getBoundingClientRect();let n=this._originRect,e=this._overlayRect,i=this._viewportRect,r=this._containerRect,o=[],a;for(let s of this._preferredPositions){let l=this._getOriginPoint(n,r,s),c=this._getOverlayPoint(l,e,s),d=this._getOverlayFit(c,e,i,s);if(d.isCompletelyWithinViewport){this._isPushed=!1,this._applyPosition(s,l);return}if(this._canFitWithFlexibleDimensions(d,c,i)){o.push({position:s,origin:l,overlayRect:e,boundingBoxRect:this._calculateBoundingBoxRect(l,s)});continue}(!a||a.overlayFit.visibleAreal&&(l=d,s=c)}this._isPushed=!1,this._applyPosition(s.position,s.origin);return}if(this._canPush){this._isPushed=!0,this._applyPosition(a.position,a.originPoint);return}this._applyPosition(a.position,a.originPoint)}detach(){this._clearPanelClasses(),this._lastPosition=null,this._previousPushAmount=null,this._resizeSubscription.unsubscribe()}dispose(){this._isDisposed||(this._boundingBox&&ou(this._boundingBox.style,{top:"",left:"",right:"",bottom:"",height:"",width:"",alignItems:"",justifyContent:""}),this._pane&&this._resetOverlayElementStyles(),this._overlayRef&&this._overlayRef.hostElement.classList.remove(oB),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;if(n){this._originRect=this._getOriginRect(),this._overlayRect=this._pane.getBoundingClientRect(),this._viewportRect=this._getNarrowedViewportRect(),this._containerRect=this._overlayContainer.getContainerElement().getBoundingClientRect();let e=this._getOriginPoint(this._originRect,this._containerRect,n);this._applyPosition(n,e)}else 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}_getOriginPoint(n,e,i){let r;if(i.originX=="center")r=n.left+n.width/2;else{let a=this._isRtl()?n.right:n.left,s=this._isRtl()?n.left:n.right;r=i.originX=="start"?a:s}e.left<0&&(r-=e.left);let o;return i.originY=="center"?o=n.top+n.height/2:o=i.originY=="top"?n.top:n.bottom,e.top<0&&(o-=e.top),{x:r,y:o}}_getOverlayPoint(n,e,i){let r;i.overlayX=="center"?r=-e.width/2:i.overlayX==="start"?r=this._isRtl()?-e.width:0:r=this._isRtl()?0:-e.width;let o;return i.overlayY=="center"?o=-e.height/2:o=i.overlayY=="top"?0:-e.height,{x:n.x+r,y:n.y+o}}_getOverlayFit(n,e,i,r){let o=sB(e),{x:a,y:s}=n,l=this._getOffset(r,"x"),c=this._getOffset(r,"y");l&&(a+=l),c&&(s+=c);let d=0-a,m=a+o.width-i.width,f=0-s,b=s+o.height-i.height,v=this._subtractOverflows(o.width,d,m),w=this._subtractOverflows(o.height,f,b),x=v*w;return{visibleArea:x,isCompletelyWithinViewport:o.width*o.height===x,fitsInViewportVertically:w===o.height,fitsInViewportHorizontally:v==o.width}}_canFitWithFlexibleDimensions(n,e,i){if(this._hasFlexibleDimensions){let r=i.bottom-e.y,o=i.right-e.x,a=aB(this._overlayRef.getConfig().minHeight),s=aB(this._overlayRef.getConfig().minWidth),l=n.fitsInViewportVertically||a!=null&&a<=r,c=n.fitsInViewportHorizontally||s!=null&&s<=o;return l&&c}return!1}_pushOverlayOnScreen(n,e,i){if(this._previousPushAmount&&this._positionLocked)return{x:n.x+this._previousPushAmount.x,y:n.y+this._previousPushAmount.y};let r=sB(e),o=this._viewportRect,a=Math.max(n.x+r.width-o.width,0),s=Math.max(n.y+r.height-o.height,0),l=Math.max(o.top-i.top-n.y,0),c=Math.max(o.left-i.left-n.x,0),d=0,m=0;return r.width<=o.width?d=c||-a:d=n.xv&&!this._isInitialRender&&!this._growAfterOpen&&(a=n.y-v/2)}let l=e.overlayX==="start"&&!r||e.overlayX==="end"&&r,c=e.overlayX==="end"&&!r||e.overlayX==="start"&&r,d,m,f;if(c)f=i.width-n.x+this._viewportMargin*2,d=n.x-this._viewportMargin;else if(l)m=n.x,d=i.right-n.x;else{let b=Math.min(i.right-n.x+i.left,n.x),v=this._lastBoundingBoxSize.width;d=b*2,m=n.x-b,d>v&&!this._isInitialRender&&!this._growAfterOpen&&(m=n.x-v/2)}return{top:a,left:m,bottom:s,right:f,width:d,height:o}}_setBoundingBoxStyles(n,e){let i=this._calculateBoundingBoxRect(n,e);!this._isInitialRender&&!this._growAfterOpen&&(i.height=Math.min(i.height,this._lastBoundingBoxSize.height),i.width=Math.min(i.width,this._lastBoundingBoxSize.width));let r={};if(this._hasExactPosition())r.top=r.left="0",r.bottom=r.right=r.maxHeight=r.maxWidth="",r.width=r.height="100%";else{let o=this._overlayRef.getConfig().maxHeight,a=this._overlayRef.getConfig().maxWidth;r.height=on(i.height),r.top=on(i.top),r.bottom=on(i.bottom),r.width=on(i.width),r.left=on(i.left),r.right=on(i.right),e.overlayX==="center"?r.alignItems="center":r.alignItems=e.overlayX==="end"?"flex-end":"flex-start",e.overlayY==="center"?r.justifyContent="center":r.justifyContent=e.overlayY==="bottom"?"flex-end":"flex-start",o&&(r.maxHeight=on(o)),a&&(r.maxWidth=on(a))}this._lastBoundingBoxSize=i,ou(this._boundingBox.style,r)}_resetBoundingBoxStyles(){ou(this._boundingBox.style,{top:"0",left:"0",right:"0",bottom:"0",height:"",width:"",alignItems:"",justifyContent:""})}_resetOverlayElementStyles(){ou(this._pane.style,{top:"",left:"",bottom:"",right:"",position:"",transform:""})}_setOverlayElementStyles(n,e){let i={},r=this._hasExactPosition(),o=this._hasFlexibleDimensions,a=this._overlayRef.getConfig();if(r){let d=this._viewportRuler.getViewportScrollPosition();ou(i,this._getExactOverlayY(e,n,d)),ou(i,this._getExactOverlayX(e,n,d))}else i.position="static";let s="",l=this._getOffset(e,"x"),c=this._getOffset(e,"y");l&&(s+=`translateX(${l}px) `),c&&(s+=`translateY(${c}px)`),i.transform=s.trim(),a.maxHeight&&(r?i.maxHeight=on(a.maxHeight):o&&(i.maxHeight="")),a.maxWidth&&(r?i.maxWidth=on(a.maxWidth):o&&(i.maxWidth="")),ou(this._pane.style,i)}_getExactOverlayY(n,e,i){let r={top:"",bottom:""},o=this._getOverlayPoint(e,this._overlayRect,n);if(this._isPushed&&(o=this._pushOverlayOnScreen(o,this._overlayRect,i)),n.overlayY==="bottom"){let a=this._document.documentElement.clientHeight;r.bottom=`${a-(o.y+this._overlayRect.height)}px`}else r.top=on(o.y);return r}_getExactOverlayX(n,e,i){let r={left:"",right:""},o=this._getOverlayPoint(e,this._overlayRect,n);this._isPushed&&(o=this._pushOverlayOnScreen(o,this._overlayRect,i));let a;if(this._isRtl()?a=n.overlayX==="end"?"left":"right":a=n.overlayX==="end"?"right":"left",a==="right"){let s=this._document.documentElement.clientWidth;r.right=`${s-(o.x+this._overlayRect.width)}px`}else r.left=on(o.x);return r}_getScrollVisibility(){let n=this._getOriginRect(),e=this._pane.getBoundingClientRect(),i=this._scrollables.map(r=>r.getElementRef().nativeElement.getBoundingClientRect());return{isOriginClipped:nB(n,i),isOriginOutsideView:Wk(n,i),isOverlayClipped:nB(e,i),isOverlayOutsideView:Wk(e,i)}}_subtractOverflows(n,...e){return e.reduce((i,r)=>i-Math.max(r,0),n)}_getNarrowedViewportRect(){let n=this._document.documentElement.clientWidth,e=this._document.documentElement.clientHeight,i=this._viewportRuler.getViewportScrollPosition();return{top:i.top+this._viewportMargin,left:i.left+this._viewportMargin,right:i.left+n-this._viewportMargin,bottom:i.top+e-this._viewportMargin,width:n-2*this._viewportMargin,height:e-2*this._viewportMargin}}_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&&al(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=[])}_getOriginRect(){let n=this._origin;if(n instanceof q)return n.nativeElement.getBoundingClientRect();if(n instanceof Element)return n.getBoundingClientRect();let e=n.width||0,i=n.height||0;return{top:n.y,bottom:n.y+i,left:n.x,right:n.x+e,height:i,width:e}}};function ou(t,n){for(let e in n)n.hasOwnProperty(e)&&(t[e]=n[e]);return t}function aB(t){if(typeof t!="number"&&t!=null){let[n,e]=t.split(DJ);return!e||e==="px"?parseFloat(n):null}return t||null}function sB(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 EJ(t,n){return t===n?!0:t.isOriginClipped===n.isOriginClipped&&t.isOriginOutsideView===n.isOriginOutsideView&&t.isOverlayClipped===n.isOverlayClipped&&t.isOverlayOutsideView===n.isOverlayOutsideView}var lB="cdk-global-overlay-wrapper";function Ds(t){return new Jy}var Jy=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(lB),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,i=this._overlayRef.getConfig(),{width:r,height:o,maxWidth:a,maxHeight:s}=i,l=(r==="100%"||r==="100vw")&&(!a||a==="100%"||a==="100vw"),c=(o==="100%"||o==="100vh")&&(!s||s==="100%"||s==="100vh"),d=this._xPosition,m=this._xOffset,f=this._overlayRef.getConfig().direction==="rtl",b="",v="",w="";l?w="flex-start":d==="center"?(w="center",f?v=m:b=m):f?d==="left"||d==="end"?(w="flex-end",b=m):(d==="right"||d==="start")&&(w="flex-start",v=m):d==="left"||d==="start"?(w="flex-start",b=m):(d==="right"||d==="end")&&(w="flex-end",v=m),n.position=this._cssPosition,n.marginLeft=l?"0":b,n.marginTop=c?"0":this._topOffset,n.marginBottom=this._bottomOffset,n.marginRight=l?"0":v,e.justifyContent=w,e.alignItems=c?"flex-start":this._alignItems}dispose(){if(this._isDisposed||!this._overlayRef)return;let n=this._overlayRef.overlayElement.style,e=this._overlayRef.hostElement,i=e.style;e.classList.remove(lB),i.justifyContent=i.alignItems=n.marginTop=n.marginBottom=n.marginLeft=n.marginRight=n.position="",this._overlayRef=null,this._isDisposed=!0}},fB=(()=>{class t{_injector=u(de);constructor(){}global(){return Ds()}flexibleConnectedTo(e){return Fa(this._injector,e)}static \u0275fac=function(i){return new(i||t)};static \u0275prov=O({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();function Nr(t,n){t.get(ut).load(pB);let e=t.get(ex),i=t.get(ge),r=t.get(Ze),o=t.get(Gn),a=t.get(Vt),s=i.createElement("div"),l=i.createElement("div");l.id=r.getId("cdk-overlay-"),l.classList.add("cdk-overlay-pane"),s.appendChild(l),e.getContainerElement().appendChild(s);let c=new og(l,o,t),d=new Fr(n),m=t.get(je,null,{optional:!0})||t.get(cn).createRenderer(null,null);return d.direction=d.direction||a.value,new gh(c,s,l,d,t.get(ae),t.get(mB),i,t.get(us),t.get(hB),n?.disableAnimations??t.get(Yp,null,{optional:!0})==="NoopAnimations",t.get(Wt),m)}var gB=(()=>{class t{scrollStrategies=u(dB);_positionBuilder=u(fB);_injector=u(de);constructor(){}create(e){return Nr(this._injector,e)}position(){return this._positionBuilder}static \u0275fac=function(i){return new(i||t)};static \u0275prov=O({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),MJ=[{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"}],_B=new T("cdk-connected-overlay-scroll-strategy",{providedIn:"root",factory:()=>{let t=u(de);return()=>wn(t)}}),bh=(()=>{class t{elementRef=u(q);constructor(){}static \u0275fac=function(i){return new(i||t)};static \u0275dir=F({type:t,selectors:[["","cdk-overlay-origin",""],["","overlay-origin",""],["","cdkOverlayOrigin",""]],exportAs:["cdkOverlayOrigin"]})}return t})(),tx=(()=>{class t{_dir=u(Vt,{optional:!0});_injector=u(de);_overlayRef;_templatePortal;_backdropSubscription=ke.EMPTY;_attachSubscription=ke.EMPTY;_detachSubscription=ke.EMPTY;_positionSubscription=ke.EMPTY;_offsetX;_offsetY;_position;_scrollStrategyFactory=u(_B);_disposeOnNavigation=!1;_ngZone=u(ae);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;get disposeOnNavigation(){return this._disposeOnNavigation}set disposeOnNavigation(e){this._disposeOnNavigation=e}backdropClick=new U;positionChange=new U;attach=new U;detach=new U;overlayKeydown=new U;overlayOutsideClick=new U;constructor(){let e=u(te),i=u(nt);this._templatePortal=new Cn(e,i),this.scrollStrategy=this._scrollStrategyFactory()}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.width,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=MJ);let e=this._overlayRef=Nr(this._injector,this._buildConfig());this._attachSubscription=e.attachments().subscribe(()=>this.attach.emit()),this._detachSubscription=e.detachments().subscribe(()=>this.detach.emit()),e.keydownEvents().subscribe(i=>{this.overlayKeydown.next(i),i.keyCode===27&&!this.disableClose&&!Ft(i)&&(i.preventDefault(),this.detachOverlay())}),this._overlayRef.outsidePointerEvents().subscribe(i=>{let r=this._getOriginElement(),o=Kn(i);(!r||r!==o&&!r.contains(o))&&this.overlayOutsideClick.next(i)})}_buildConfig(){let e=this._position=this.positionStrategy||this._createPositionStrategy(),i=new Fr({direction:this._dir||"ltr",positionStrategy:e,scrollStrategy:this.scrollStrategy,hasBackdrop:this.hasBackdrop,disposeOnNavigation:this.disposeOnNavigation});return(this.width||this.width===0)&&(i.width=this.width),(this.height||this.height===0)&&(i.height=this.height),(this.minWidth||this.minWidth===0)&&(i.minWidth=this.minWidth),(this.minHeight||this.minHeight===0)&&(i.minHeight=this.minHeight),this.backdropClass&&(i.backdropClass=this.backdropClass),this.panelClass&&(i.panelClass=this.panelClass),i}_updatePositionStrategy(e){let i=this.positions.map(r=>({originX:r.originX,originY:r.originY,overlayX:r.overlayX,overlayY:r.overlayY,offsetX:r.offsetX||this.offsetX,offsetY:r.offsetY||this.offsetY,panelClass:r.panelClass||void 0}));return e.setOrigin(this._getOrigin()).withPositions(i).withFlexibleDimensions(this.flexibleDimensions).withPush(this.push).withGrowAfterOpen(this.growAfterOpen).withViewportMargin(this.viewportMargin).withLockedPosition(this.lockPosition).withTransformOriginOn(this.transformOriginSelector)}_createPositionStrategy(){let e=Fa(this._injector,this._getOrigin());return this._updatePositionStrategy(e),e}_getOrigin(){return this.origin instanceof bh?this.origin.elementRef:this.origin}_getOriginElement(){return this.origin instanceof bh?this.origin.elementRef.nativeElement:this.origin instanceof q?this.origin.nativeElement:typeof Element<"u"&&this.origin instanceof Element?this.origin:null}attachOverlay(){this._overlayRef?this._overlayRef.getConfig().hasBackdrop=this.hasBackdrop:this._createOverlay(),this._overlayRef.hasAttached()||this._overlayRef.attach(this._templatePortal),this.hasBackdrop?this._backdropSubscription=this._overlayRef.backdropClick().subscribe(e=>{this.backdropClick.emit(e)}):this._backdropSubscription.unsubscribe(),this._positionSubscription.unsubscribe(),this.positionChange.observers.length>0&&(this._positionSubscription=this._position.positionChanges.pipe(Xw(()=>this.positionChange.observers.length>0)).subscribe(e=>{this._ngZone.run(()=>this.positionChange.emit(e)),this.positionChange.observers.length===0&&this._positionSubscription.unsubscribe()})),this.open=!0}detachOverlay(){this._overlayRef?.detach(),this._backdropSubscription.unsubscribe(),this._positionSubscription.unsubscribe(),this.open=!1}static \u0275fac=function(i){return new(i||t)};static \u0275dir=F({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",V],lockPosition:[2,"cdkConnectedOverlayLockPosition","lockPosition",V],flexibleDimensions:[2,"cdkConnectedOverlayFlexibleDimensions","flexibleDimensions",V],growAfterOpen:[2,"cdkConnectedOverlayGrowAfterOpen","growAfterOpen",V],push:[2,"cdkConnectedOverlayPush","push",V],disposeOnNavigation:[2,"cdkConnectedOverlayDisposeOnNavigation","disposeOnNavigation",V]},outputs:{backdropClick:"backdropClick",positionChange:"positionChange",attach:"attach",detach:"detach",overlayKeydown:"overlayKeydown",overlayOutsideClick:"overlayOutsideClick"},exportAs:["cdkConnectedOverlay"],features:[Ae]})}return t})();function kJ(t){let n=u(de);return()=>wn(n)}var SJ={provide:_B,useFactory:kJ},er=(()=>{class t{static \u0275fac=function(i){return new(i||t)};static \u0275mod=ee({type:t});static \u0275inj=J({providers:[gB,SJ],imports:[vs,Co,ng,ng]})}return t})();var au=(()=>{class t{_listeners=[];notify(e,i){for(let r of this._listeners)r(e,i)}listen(e){return this._listeners.push(e),()=>{this._listeners=this._listeners.filter(i=>e!==i)}}ngOnDestroy(){this._listeners=[]}static \u0275fac=function(i){return new(i||t)};static \u0275prov=O({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();var su=class{applyChanges(n,e,i,r,o){n.forEachOperation((a,s,l)=>{let c,d;if(a.previousIndex==null){let m=i(a,s,l);c=e.createEmbeddedView(m.templateRef,m.context,m.index),d=cc.INSERTED}else l==null?(e.remove(s),d=cc.REMOVED):(c=e.get(s),e.move(c,l),d=cc.MOVED);o&&o({context:c?.context,operation:d,record:a})})}detach(){}};var sg=class{_multiple;_emitChanges;compareWith;_selection=new Set;_deselectedToEmit=[];_selectedToEmit=[];_selected;get selected(){return this._selected||(this._selected=Array.from(this._selection.values())),this._selected}changed=new z;constructor(n=!1,e,i=!0,r){this._multiple=n,this._emitChanges=i,this.compareWith=r,e&&e.length&&(n?e.forEach(o=>this._markSelected(o)):this._markSelected(e[0]),this._selectedToEmit.length=0)}select(...n){this._verifyValueAssignment(n),n.forEach(i=>this._markSelected(i));let e=this._hasQueuedChanges();return this._emitChangeEvent(),e}deselect(...n){this._verifyValueAssignment(n),n.forEach(i=>this._unmarkSelected(i));let e=this._hasQueuedChanges();return this._emitChangeEvent(),e}setSelection(...n){this._verifyValueAssignment(n);let e=this.selected,i=new Set(n.map(o=>this._getConcreteValue(o)));n.forEach(o=>this._markSelected(o)),e.filter(o=>!i.has(this._getConcreteValue(o,i))).forEach(o=>this._unmarkSelected(o));let r=this._hasQueuedChanges();return this._emitChangeEvent(),r}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 i of e)if(this.compareWith(n,i))return i;return n}else return n}};var MB=(()=>{class t{_renderer;_elementRef;onChange=e=>{};onTouched=()=>{};constructor(e,i){this._renderer=e,this._elementRef=i}setProperty(e,i){this._renderer.setProperty(this._elementRef.nativeElement,e,i)}registerOnTouched(e){this.onTouched=e}registerOnChange(e){this.onChange=e}setDisabledState(e){this.setProperty("disabled",e)}static \u0275fac=function(i){return new(i||t)(_e(je),_e(q))};static \u0275dir=F({type:t})}return t})(),kB=(()=>{class t extends MB{static \u0275fac=(()=>{let e;return function(r){return(e||(e=fe(t)))(r||t)}})();static \u0275dir=F({type:t,features:[le]})}return t})(),tr=new T("");var TJ={provide:tr,useExisting:Kt(()=>Qi),multi:!0};function IJ(){let t=Wo()?Wo().getUserAgent():"";return/android (\d+)/.test(t.toLowerCase())}var AJ=new T(""),Qi=(()=>{class t extends MB{_compositionMode;_composing=!1;constructor(e,i,r){super(e,i),this._compositionMode=r,this._compositionMode==null&&(this._compositionMode=!IJ())}writeValue(e){let i=e??"";this.setProperty("value",i)}_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(i){return new(i||t)(_e(je),_e(q),_e(AJ,8))};static \u0275dir=F({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(i,r){i&1&&S("input",function(a){return r._handleInput(a.target.value)})("blur",function(){return r.onTouched()})("compositionstart",function(){return r._compositionStart()})("compositionend",function(a){return r._compositionEnd(a.target.value)})},standalone:!1,features:[Ce([TJ]),le]})}return t})();function Qk(t){return t==null||Kk(t)===0}function Kk(t){return t==null?null:Array.isArray(t)||typeof t=="string"?t.length:t instanceof Set?t.size:null}var ea=new T(""),fg=new T(""),OJ=/^(?=.{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])?)*$/,Le=class{static min(n){return RJ(n)}static max(n){return PJ(n)}static required(n){return SB(n)}static requiredTrue(n){return FJ(n)}static email(n){return NJ(n)}static minLength(n){return LJ(n)}static maxLength(n){return VJ(n)}static pattern(n){return BJ(n)}static nullValidator(n){return nx()}static compose(n){return PB(n)}static composeAsync(n){return FB(n)}};function RJ(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 SB(t){return Qk(t.value)?{required:!0}:null}function FJ(t){return t.value===!0?null:{required:!0}}function NJ(t){return Qk(t.value)||OJ.test(t.value)?null:{email:!0}}function LJ(t){return n=>{let e=n.value?.length??Kk(n.value);return e===null||e===0?null:e{let e=n.value?.length??Kk(n.value);return e!==null&&e>t?{maxlength:{requiredLength:t,actualLength:e}}:null}}function BJ(t){if(!t)return nx;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),i=>{if(Qk(i.value))return null;let r=i.value;return n.test(r)?null:{pattern:{requiredPattern:e,actualValue:r}}}}function nx(t){return null}function TB(t){return t!=null}function IB(t){return Xs(t)?Ot(t):t}function AB(t){let n={};return t.forEach(e=>{n=e!=null?M(M({},n),e):n}),Object.keys(n).length===0?null:n}function OB(t,n){return n.map(e=>e(t))}function jJ(t){return!t.validate}function RB(t){return t.map(n=>jJ(n)?n:e=>n.validate(e))}function PB(t){if(!t)return null;let n=t.filter(TB);return n.length==0?null:function(e){return AB(OB(e,n))}}function Zk(t){return t!=null?PB(RB(t)):null}function FB(t){if(!t)return null;let n=t.filter(TB);return n.length==0?null:function(e){let i=OB(e,n).map(IB);return Ga(i).pipe(se(AB))}}function Xk(t){return t!=null?FB(RB(t)):null}function vB(t,n){return t===null?[n]:Array.isArray(t)?[...t,n]:[t,n]}function NB(t){return t._rawValidators}function LB(t){return t._rawAsyncValidators}function qk(t){return t?Array.isArray(t)?t:[t]:[]}function rx(t,n){return Array.isArray(t)?t.includes(n):t===n}function yB(t,n){let e=qk(n);return qk(t).forEach(r=>{rx(e,r)||e.push(r)}),e}function xB(t,n){return qk(n).filter(e=>!rx(t,e))}var ox=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=Zk(this._rawValidators)}_setAsyncValidators(n){this._rawAsyncValidators=n||[],this._composedAsyncValidatorFn=Xk(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&&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}},Es=class extends ox{name;get formDirective(){return null}get path(){return null}},Hn=class extends ox{_parent=null;name=null;valueAccessor=null},ax=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}},HJ={"[class.ng-untouched]":"isUntouched","[class.ng-touched]":"isTouched","[class.ng-pristine]":"isPristine","[class.ng-dirty]":"isDirty","[class.ng-valid]":"isValid","[class.ng-invalid]":"isInvalid","[class.ng-pending]":"isPending"},jWe=De(M({},HJ),{"[class.ng-submitted]":"isSubmitted"}),ei=(()=>{class t extends ax{constructor(e){super(e)}static \u0275fac=function(i){return new(i||t)(_e(Hn,2))};static \u0275dir=F({type:t,selectors:[["","formControlName",""],["","ngModel",""],["","formControl",""]],hostVars:14,hostBindings:function(i,r){i&2&&G("ng-untouched",r.isUntouched)("ng-touched",r.isTouched)("ng-pristine",r.isPristine)("ng-dirty",r.isDirty)("ng-valid",r.isValid)("ng-invalid",r.isInvalid)("ng-pending",r.isPending)},standalone:!1,features:[le]})}return t})(),Xr=(()=>{class t extends ax{constructor(e){super(e)}static \u0275fac=function(i){return new(i||t)(_e(Es,10))};static \u0275dir=F({type:t,selectors:[["","formGroupName",""],["","formArrayName",""],["","ngModelGroup",""],["","formGroup",""],["form",3,"ngNoForm",""],["","ngForm",""]],hostVars:16,hostBindings:function(i,r){i&2&&G("ng-untouched",r.isUntouched)("ng-touched",r.isTouched)("ng-pristine",r.isPristine)("ng-dirty",r.isDirty)("ng-valid",r.isValid)("ng-invalid",r.isInvalid)("ng-pending",r.isPending)("ng-submitted",r.isSubmitted)},standalone:!1,features:[le]})}return t})();var lg="VALID",ix="INVALID",vh="PENDING",cg="DISABLED",mc=class{},sx=class extends mc{value;source;constructor(n,e){super(),this.value=n,this.source=e}},ug=class extends mc{pristine;source;constructor(n,e){super(),this.pristine=n,this.source=e}},mg=class extends mc{touched;source;constructor(n,e){super(),this.touched=n,this.source=e}},yh=class extends mc{status;source;constructor(n,e){super(),this.status=n,this.source=e}},lx=class extends mc{source;constructor(n){super(),this.source=n}},hg=class extends mc{source;constructor(n){super(),this.source=n}};function Jk(t){return(hx(t)?t.validators:t)||null}function zJ(t){return Array.isArray(t)?Zk(t):t||null}function eS(t,n){return(hx(n)?n.asyncValidators:t)||null}function UJ(t){return Array.isArray(t)?Xk(t):t||null}function hx(t){return t!=null&&!Array.isArray(t)&&typeof t=="object"}function VB(t,n,e){let i=t.controls;if(!(n?Object.keys(i):i).length)throw new ue(1e3,"");if(!i[e])throw new ue(1001,"")}function BB(t,n,e){t._forEachChild((i,r)=>{if(e[r]===void 0)throw new ue(1002,"")})}var hc=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 Ti(this.statusReactive)}set status(n){Ti(()=>this.statusReactive.set(n))}_status=Zt(()=>this.statusReactive());statusReactive=he(void 0);get valid(){return this.status===lg}get invalid(){return this.status===ix}get pending(){return this.status==vh}get disabled(){return this.status===cg}get enabled(){return this.status!==cg}errors;get pristine(){return Ti(this.pristineReactive)}set pristine(n){Ti(()=>this.pristineReactive.set(n))}_pristine=Zt(()=>this.pristineReactive());pristineReactive=he(!0);get dirty(){return!this.pristine}get touched(){return Ti(this.touchedReactive)}set touched(n){Ti(()=>this.touchedReactive.set(n))}_touched=Zt(()=>this.touchedReactive());touchedReactive=he(!1);get untouched(){return!this.touched}_events=new z;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(yB(n,this._rawValidators))}addAsyncValidators(n){this.setAsyncValidators(yB(n,this._rawAsyncValidators))}removeValidators(n){this.setValidators(xB(n,this._rawValidators))}removeAsyncValidators(n){this.setAsyncValidators(xB(n,this._rawAsyncValidators))}hasValidator(n){return rx(this._rawValidators,n)}hasAsyncValidator(n){return rx(this._rawAsyncValidators,n)}clearValidators(){this.validator=null}clearAsyncValidators(){this.asyncValidator=null}markAsTouched(n={}){let e=this.touched===!1;this.touched=!0;let i=n.sourceControl??this;this._parent&&!n.onlySelf&&this._parent.markAsTouched(De(M({},n),{sourceControl:i})),e&&n.emitEvent!==!1&&this._events.next(new mg(!0,i))}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 i=n.sourceControl??this;this._forEachChild(r=>{r.markAsUntouched({onlySelf:!0,emitEvent:n.emitEvent,sourceControl:i})}),this._parent&&!n.onlySelf&&this._parent._updateTouched(n,i),e&&n.emitEvent!==!1&&this._events.next(new mg(!1,i))}markAsDirty(n={}){let e=this.pristine===!0;this.pristine=!1;let i=n.sourceControl??this;this._parent&&!n.onlySelf&&this._parent.markAsDirty(De(M({},n),{sourceControl:i})),e&&n.emitEvent!==!1&&this._events.next(new ug(!1,i))}markAsPristine(n={}){let e=this.pristine===!1;this.pristine=!0,this._pendingDirty=!1;let i=n.sourceControl??this;this._forEachChild(r=>{r.markAsPristine({onlySelf:!0,emitEvent:n.emitEvent})}),this._parent&&!n.onlySelf&&this._parent._updatePristine(n,i),e&&n.emitEvent!==!1&&this._events.next(new ug(!0,i))}markAsPending(n={}){this.status=vh;let e=n.sourceControl??this;n.emitEvent!==!1&&(this._events.next(new yh(this.status,e)),this.statusChanges.emit(this.status)),this._parent&&!n.onlySelf&&this._parent.markAsPending(De(M({},n),{sourceControl:e}))}disable(n={}){let e=this._parentMarkedDirty(n.onlySelf);this.status=cg,this.errors=null,this._forEachChild(r=>{r.disable(De(M({},n),{onlySelf:!0}))}),this._updateValue();let i=n.sourceControl??this;n.emitEvent!==!1&&(this._events.next(new sx(this.value,i)),this._events.next(new yh(this.status,i)),this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._updateAncestors(De(M({},n),{skipPristineCheck:e}),this),this._onDisabledChange.forEach(r=>r(!0))}enable(n={}){let e=this._parentMarkedDirty(n.onlySelf);this.status=lg,this._forEachChild(i=>{i.enable(De(M({},n),{onlySelf:!0}))}),this.updateValueAndValidity({onlySelf:!0,emitEvent:n.emitEvent}),this._updateAncestors(De(M({},n),{skipPristineCheck:e}),this),this._onDisabledChange.forEach(i=>i(!1))}_updateAncestors(n,e){this._parent&&!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 i=this._cancelExistingSubscription();this.errors=this._runValidator(),this.status=this._calculateStatus(),(this.status===lg||this.status===vh)&&this._runAsyncValidator(i,n.emitEvent)}let e=n.sourceControl??this;n.emitEvent!==!1&&(this._events.next(new sx(this.value,e)),this._events.next(new yh(this.status,e)),this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._parent&&!n.onlySelf&&this._parent.updateValueAndValidity(De(M({},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()?cg:lg}_runValidator(){return this.validator?this.validator(this):null}_runAsyncValidator(n,e){if(this.asyncValidator){this.status=vh,this._hasOwnPendingAsyncValidator={emitEvent:e!==!1,shouldHaveEmitted:n!==!1};let i=IB(this.asyncValidator(this));this._asyncValidationSubscription=i.subscribe(r=>{this._hasOwnPendingAsyncValidator=null,this.setErrors(r,{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((i,r)=>i&&i._find(r),this)}getError(n,e){let i=e?this.get(e):this;return i&&i.errors?i.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,i){this.status=this._calculateStatus(),n&&this.statusChanges.emit(this.status),(n||i)&&this._events.next(new yh(this.status,e)),this._parent&&this._parent._updateControlsErrors(n,e,i)}_initObservables(){this.valueChanges=new U,this.statusChanges=new U}_calculateStatus(){return this._allControlsDisabled()?cg:this.errors?ix:this._hasOwnPendingAsyncValidator||this._anyControlsHaveStatus(vh)?vh:this._anyControlsHaveStatus(ix)?ix:lg}_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 i=!this._anyControlsDirty(),r=this.pristine!==i;this.pristine=i,this._parent&&!n.onlySelf&&this._parent._updatePristine(n,e),r&&this._events.next(new ug(this.pristine,e))}_updateTouched(n={},e){this.touched=this._anyControlsTouched(),this._events.next(new mg(this.touched,e)),this._parent&&!n.onlySelf&&this._parent._updateTouched(n,e)}_onDisabledChange=[];_registerOnCollectionChange(n){this._onCollectionChange=n}_setUpdateStrategy(n){hx(n)&&n.updateOn!=null&&(this._updateOn=n.updateOn)}_parentMarkedDirty(n){let e=this._parent&&this._parent.dirty;return!n&&!!e&&!this._parent._anyControlsDirty()}_find(n){return null}_assignValidators(n){this._rawValidators=Array.isArray(n)?n.slice():n,this._composedValidatorFn=zJ(this._rawValidators)}_assignAsyncValidators(n){this._rawAsyncValidators=Array.isArray(n)?n.slice():n,this._composedAsyncValidatorFn=UJ(this._rawAsyncValidators)}},lu=class extends hc{constructor(n,e,i){super(Jk(e),eS(i,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,i={}){this.registerControl(n,e),this.updateValueAndValidity({emitEvent:i.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,i={}){this.controls[n]&&this.controls[n]._registerOnCollectionChange(()=>{}),delete this.controls[n],e&&this.registerControl(n,e),this.updateValueAndValidity({emitEvent:i.emitEvent}),this._onCollectionChange()}contains(n){return this.controls.hasOwnProperty(n)&&this.controls[n].enabled}setValue(n,e={}){BB(this,!0,n),Object.keys(n).forEach(i=>{VB(this,!0,i),this.controls[i].setValue(n[i],{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e)}patchValue(n,e={}){n!=null&&(Object.keys(n).forEach(i=>{let r=this.controls[i];r&&r.patchValue(n[i],{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e))}reset(n={},e={}){this._forEachChild((i,r)=>{i.reset(n?n[r]:null,{onlySelf:!0,emitEvent:e.emitEvent})}),this._updatePristine(e,this),this._updateTouched(e,this),this.updateValueAndValidity(e),e?.emitEvent!==!1&&this._events.next(new hg(this))}getRawValue(){return this._reduceChildren({},(n,e,i)=>(n[i]=e.getRawValue(),n))}_syncPendingControls(){let n=this._reduceChildren(!1,(e,i)=>i._syncPendingControls()?!0:e);return n&&this.updateValueAndValidity({onlySelf:!0}),n}_forEachChild(n){Object.keys(this.controls).forEach(e=>{let i=this.controls[e];i&&n(i,e)})}_setUpControls(){this._forEachChild(n=>{n.setParent(this),n._registerOnCollectionChange(this._onCollectionChange)})}_updateValue(){this.value=this._reduceValue()}_anyControls(n){for(let[e,i]of Object.entries(this.controls))if(this.contains(e)&&n(i))return!0;return!1}_reduceValue(){let n={};return this._reduceChildren(n,(e,i,r)=>((i.enabled||this.disabled)&&(e[r]=i.value),e))}_reduceChildren(n,e){let i=n;return this._forEachChild((r,o)=>{i=e(i,r,o)}),i}_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 px=lu;var Yk=class extends lu{};var xh=new T("",{providedIn:"root",factory:()=>fx}),fx="always";function jB(t,n){return[...n.path,t]}function pg(t,n,e=fx){tS(t,n),n.valueAccessor.writeValue(t.value),(t.disabled||e==="always")&&n.valueAccessor.setDisabledState?.(t.disabled),WJ(t,n),qJ(t,n),GJ(t,n),$J(t,n)}function cx(t,n,e=!0){let i=()=>{};n.valueAccessor&&(n.valueAccessor.registerOnChange(i),n.valueAccessor.registerOnTouched(i)),ux(t,n),t&&(n._invokeOnDestroyCallbacks(),t._registerOnCollectionChange(()=>{}))}function dx(t,n){t.forEach(e=>{e.registerOnValidatorChange&&e.registerOnValidatorChange(n)})}function $J(t,n){if(n.valueAccessor.setDisabledState){let e=i=>{n.valueAccessor.setDisabledState(i)};t.registerOnDisabledChange(e),n._registerOnDestroy(()=>{t._unregisterOnDisabledChange(e)})}}function tS(t,n){let e=NB(t);n.validator!==null?t.setValidators(vB(e,n.validator)):typeof e=="function"&&t.setValidators([e]);let i=LB(t);n.asyncValidator!==null?t.setAsyncValidators(vB(i,n.asyncValidator)):typeof i=="function"&&t.setAsyncValidators([i]);let r=()=>t.updateValueAndValidity();dx(n._rawValidators,r),dx(n._rawAsyncValidators,r)}function ux(t,n){let e=!1;if(t!==null){if(n.validator!==null){let r=NB(t);if(Array.isArray(r)&&r.length>0){let o=r.filter(a=>a!==n.validator);o.length!==r.length&&(e=!0,t.setValidators(o))}}if(n.asyncValidator!==null){let r=LB(t);if(Array.isArray(r)&&r.length>0){let o=r.filter(a=>a!==n.asyncValidator);o.length!==r.length&&(e=!0,t.setAsyncValidators(o))}}}let i=()=>{};return dx(n._rawValidators,i),dx(n._rawAsyncValidators,i),e}function WJ(t,n){n.valueAccessor.registerOnChange(e=>{t._pendingValue=e,t._pendingChange=!0,t._pendingDirty=!0,t.updateOn==="change"&&HB(t,n)})}function GJ(t,n){n.valueAccessor.registerOnTouched(()=>{t._pendingTouched=!0,t.updateOn==="blur"&&t._pendingChange&&HB(t,n),t.updateOn!=="submit"&&t.markAsTouched()})}function HB(t,n){t._pendingDirty&&t.markAsDirty(),t.setValue(t._pendingValue,{emitModelToViewChange:!1}),n.viewToModelUpdate(t._pendingValue),t._pendingChange=!1}function qJ(t,n){let e=(i,r)=>{n.valueAccessor.writeValue(i),r&&n.viewToModelUpdate(i)};t.registerOnChange(e),n._registerOnDestroy(()=>{t._unregisterOnChange(e)})}function zB(t,n){t==null,tS(t,n)}function YJ(t,n){return ux(t,n)}function iS(t,n){if(!t.hasOwnProperty("model"))return!1;let e=t.model;return e.isFirstChange()?!0:!Object.is(n,e.currentValue)}function QJ(t){return Object.getPrototypeOf(t.constructor)===kB}function UB(t,n){t._syncPendingControls(),n.forEach(e=>{let i=e.control;i.updateOn==="submit"&&i._pendingChange&&(e.viewToModelUpdate(i._pendingValue),i._pendingChange=!1)})}function nS(t,n){if(!n)return null;Array.isArray(n);let e,i,r;return n.forEach(o=>{o.constructor===Qi?e=o:QJ(o)?i=o:r=o}),r||i||e||null}function KJ(t,n){let e=t.indexOf(n);e>-1&&t.splice(e,1)}var ZJ={provide:Es,useExisting:Kt(()=>pc)},dg=Promise.resolve(),pc=(()=>{class t extends Es{callSetDisabledState;get submitted(){return Ti(this.submittedReactive)}_submitted=Zt(()=>this.submittedReactive());submittedReactive=he(!1);_directives=new Set;form;ngSubmit=new U;options;constructor(e,i,r){super(),this.callSetDisabledState=r,this.form=new lu({},Zk(e),Xk(i))}ngAfterViewInit(){this._setUpdateStrategy()}get formDirective(){return this}get control(){return this.form}get path(){return[]}get controls(){return this.form.controls}addControl(e){dg.then(()=>{let i=this._findContainer(e.path);e.control=i.registerControl(e.name,e.control),pg(e.control,e,this.callSetDisabledState),e.control.updateValueAndValidity({emitEvent:!1}),this._directives.add(e)})}getControl(e){return this.form.get(e.path)}removeControl(e){dg.then(()=>{let i=this._findContainer(e.path);i&&i.removeControl(e.name),this._directives.delete(e)})}addFormGroup(e){dg.then(()=>{let i=this._findContainer(e.path),r=new lu({});zB(r,e),i.registerControl(e.name,r),r.updateValueAndValidity({emitEvent:!1})})}removeFormGroup(e){dg.then(()=>{let i=this._findContainer(e.path);i&&i.removeControl(e.name)})}getFormGroup(e){return this.form.get(e.path)}updateModel(e,i){dg.then(()=>{this.form.get(e.path).setValue(i)})}setValue(e){this.control.setValue(e)}onSubmit(e){return this.submittedReactive.set(!0),UB(this.form,this._directives),this.ngSubmit.emit(e),this.form._events.next(new lx(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(i){return new(i||t)(_e(ea,10),_e(fg,10),_e(xh,8))};static \u0275dir=F({type:t,selectors:[["form",3,"ngNoForm","",3,"formGroup",""],["ng-form"],["","ngForm",""]],hostBindings:function(i,r){i&1&&S("submit",function(a){return r.onSubmit(a)})("reset",function(){return r.onReset()})},inputs:{options:[0,"ngFormOptions","options"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],standalone:!1,features:[Ce([ZJ]),le]})}return t})();function CB(t,n){let e=t.indexOf(n);e>-1&&t.splice(e,1)}function wB(t){return typeof t=="object"&&t!==null&&Object.keys(t).length===2&&"value"in t&&"disabled"in t}var Jo=class extends hc{defaultValue=null;_onChange=[];_pendingValue;_pendingChange=!1;constructor(n=null,e,i){super(Jk(e),eS(i,e)),this._applyFormState(n),this._setUpdateStrategy(e),this._initObservables(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator}),hx(e)&&(e.nonNullable||e.initialValueIsDefault)&&(wB(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(i=>i(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),this._pendingChange=!1,e?.emitEvent!==!1&&this._events.next(new hg(this))}_updateValue(){}_anyControls(n){return!1}_allControlsDisabled(){return this.disabled}registerOnChange(n){this._onChange.push(n)}_unregisterOnChange(n){CB(this._onChange,n)}registerOnDisabledChange(n){this._onDisabledChange.push(n)}_unregisterOnDisabledChange(n){CB(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){wB(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}},$B=Jo,XJ=t=>t instanceof Jo;var JJ={provide:Hn,useExisting:Kt(()=>gg)},DB=Promise.resolve(),gg=(()=>{class t extends Hn{_changeDetectorRef;callSetDisabledState;control=new Jo;static ngAcceptInputType_isDisabled;_registered=!1;viewModel;name="";isDisabled;model;options;update=new U;constructor(e,i,r,o,a,s){super(),this._changeDetectorRef=a,this.callSetDisabledState=s,this._parent=e,this._setValidators(i),this._setAsyncValidators(r),this.valueAccessor=nS(this,o)}ngOnChanges(e){if(this._checkForErrors(),!this._registered||"name"in e){if(this._registered&&(this._checkName(),this.formDirective)){let i=e.name.previousValue;this.formDirective.removeControl({name:i,path:this._getPath(i)})}this._setUpControl()}"isDisabled"in e&&this._updateDisabled(e),iS(e,this.viewModel)&&(this._updateValue(this.model),this.viewModel=this.model)}ngOnDestroy(){this.formDirective&&this.formDirective.removeControl(this)}get path(){return this._getPath(this.name)}get formDirective(){return this._parent?this._parent.formDirective:null}viewToModelUpdate(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(){pg(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){DB.then(()=>{this.control.setValue(e,{emitViewToModelChange:!1}),this._changeDetectorRef?.markForCheck()})}_updateDisabled(e){let i=e.isDisabled.currentValue,r=i!==0&&V(i);DB.then(()=>{r&&!this.control.disabled?this.control.disable():!r&&this.control.disabled&&this.control.enable(),this._changeDetectorRef?.markForCheck()})}_getPath(e){return this._parent?jB(e,this._parent):[e]}static \u0275fac=function(i){return new(i||t)(_e(Es,9),_e(ea,10),_e(fg,10),_e(tr,10),_e(ye,8),_e(xh,8))};static \u0275dir=F({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:[Ce([JJ]),le,Ae]})}return t})();var Jr=(()=>{class t{static \u0275fac=function(i){return new(i||t)};static \u0275dir=F({type:t,selectors:[["form",3,"ngNoForm","",3,"ngNativeValidate",""]],hostAttrs:["novalidate",""],standalone:!1})}return t})(),eee={provide:tr,useExisting:Kt(()=>cu),multi:!0},cu=(()=>{class t extends kB{writeValue(e){let i=e??"";this.setProperty("value",i)}registerOnChange(e){this.onChange=i=>{e(i==""?null:parseFloat(i))}}static \u0275fac=(()=>{let e;return function(r){return(e||(e=fe(t)))(r||t)}})();static \u0275dir=F({type:t,selectors:[["input","type","number","formControlName",""],["input","type","number","formControl",""],["input","type","number","ngModel",""]],hostBindings:function(i,r){i&1&&S("input",function(a){return r.onChange(a.target.value)})("blur",function(){return r.onTouched()})},standalone:!1,features:[Ce([eee]),le]})}return t})();var rS=new T(""),tee={provide:Hn,useExisting:Kt(()=>wo)},wo=(()=>{class t extends Hn{_ngModelWarningConfig;callSetDisabledState;viewModel;form;set isDisabled(e){}model;update=new U;static _ngModelWarningSentOnce=!1;_ngModelWarningSent=!1;constructor(e,i,r,o,a){super(),this._ngModelWarningConfig=o,this.callSetDisabledState=a,this._setValidators(e),this._setAsyncValidators(i),this.valueAccessor=nS(this,r)}ngOnChanges(e){if(this._isControlChanged(e)){let i=e.form.previousValue;i&&cx(i,this,!1),pg(this.form,this,this.callSetDisabledState),this.form.updateValueAndValidity({emitEvent:!1})}iS(e,this.viewModel)&&(this.form.setValue(this.model),this.viewModel=this.model)}ngOnDestroy(){this.form&&cx(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(i){return new(i||t)(_e(ea,10),_e(fg,10),_e(tr,10),_e(rS,8),_e(xh,8))};static \u0275dir=F({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:[Ce([tee]),le,Ae]})}return t})(),iee={provide:Es,useExisting:Kt(()=>Ki)},Ki=(()=>{class t extends Es{callSetDisabledState;get submitted(){return Ti(this._submittedReactive)}set submitted(e){this._submittedReactive.set(e)}_submitted=Zt(()=>this._submittedReactive());_submittedReactive=he(!1);_oldForm;_onCollectionChange=()=>this._updateDomValue();directives=[];form=null;ngSubmit=new U;constructor(e,i,r){super(),this.callSetDisabledState=r,this._setValidators(e),this._setAsyncValidators(i)}ngOnChanges(e){e.hasOwnProperty("form")&&(this._updateValidators(),this._updateDomValue(),this._updateRegistrations(),this._oldForm=this.form)}ngOnDestroy(){this.form&&(ux(this.form,this),this.form._onCollectionChange===this._onCollectionChange&&this.form._registerOnCollectionChange(()=>{}))}get formDirective(){return this}get control(){return this.form}get path(){return[]}addControl(e){let i=this.form.get(e.path);return pg(i,e,this.callSetDisabledState),i.updateValueAndValidity({emitEvent:!1}),this.directives.push(e),i}getControl(e){return this.form.get(e.path)}removeControl(e){cx(e.control||null,e,!1),KJ(this.directives,e)}addFormGroup(e){this._setUpFormContainer(e)}removeFormGroup(e){this._cleanUpFormContainer(e)}getFormGroup(e){return this.form.get(e.path)}addFormArray(e){this._setUpFormContainer(e)}removeFormArray(e){this._cleanUpFormContainer(e)}getFormArray(e){return this.form.get(e.path)}updateModel(e,i){this.form.get(e.path).setValue(i)}onSubmit(e){return this._submittedReactive.set(!0),UB(this.form,this.directives),this.ngSubmit.emit(e),this.form._events.next(new lx(this.control)),e?.target?.method==="dialog"}onReset(){this.resetForm()}resetForm(e=void 0,i={}){this.form.reset(e,i),this._submittedReactive.set(!1)}_updateDomValue(){this.directives.forEach(e=>{let i=e.control,r=this.form.get(e.path);i!==r&&(cx(i||null,e),XJ(r)&&(pg(r,e,this.callSetDisabledState),e.control=r))}),this.form._updateTreeValidity({emitEvent:!1})}_setUpFormContainer(e){let i=this.form.get(e.path);zB(i,e),i.updateValueAndValidity({emitEvent:!1})}_cleanUpFormContainer(e){if(this.form){let i=this.form.get(e.path);i&&YJ(i,e)&&i.updateValueAndValidity({emitEvent:!1})}}_updateRegistrations(){this.form._registerOnCollectionChange(this._onCollectionChange),this._oldForm&&this._oldForm._registerOnCollectionChange(()=>{})}_updateValidators(){tS(this.form,this),this._oldForm&&ux(this._oldForm,this)}static \u0275fac=function(i){return new(i||t)(_e(ea,10),_e(fg,10),_e(xh,8))};static \u0275dir=F({type:t,selectors:[["","formGroup",""]],hostBindings:function(i,r){i&1&&S("submit",function(a){return r.onSubmit(a)})("reset",function(){return r.onReset()})},inputs:{form:[0,"formGroup","form"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],standalone:!1,features:[Ce([iee]),le,Ae]})}return t})();var nee={provide:Hn,useExisting:Kt(()=>Lr)},Lr=(()=>{class t extends Hn{_ngModelWarningConfig;_added=!1;viewModel;control;name=null;set isDisabled(e){}model;update=new U;static _ngModelWarningSentOnce=!1;_ngModelWarningSent=!1;constructor(e,i,r,o,a){super(),this._ngModelWarningConfig=a,this._parent=e,this._setValidators(i),this._setAsyncValidators(r),this.valueAccessor=nS(this,o)}ngOnChanges(e){this._added||this._setUpControl(),iS(e,this.viewModel)&&(this.viewModel=this.model,this.formDirective.updateModel(this,this.model))}ngOnDestroy(){this.formDirective&&this.formDirective.removeControl(this)}viewToModelUpdate(e){this.viewModel=e,this.update.emit(e)}get path(){return jB(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(i){return new(i||t)(_e(Es,13),_e(ea,10),_e(fg,10),_e(tr,10),_e(rS,8))};static \u0275dir=F({type:t,selectors:[["","formControlName",""]],inputs:{name:[0,"formControlName","name"],isDisabled:[0,"disabled","isDisabled"],model:[0,"ngModel","model"]},outputs:{update:"ngModelChange"},standalone:!1,features:[Ce([nee]),le,Ae]})}return t})();var ree=(()=>{class t{_validator=nx;_onChange;_enabled;ngOnChanges(e){if(this.inputName in e){let i=this.normalizeInput(e[this.inputName].currentValue);this._enabled=this.enabled(i),this._validator=this._enabled?this.createValidator(i):nx,this._onChange&&this._onChange()}}validate(e){return this._validator(e)}registerOnValidatorChange(e){this._onChange=e}enabled(e){return e!=null}static \u0275fac=function(i){return new(i||t)};static \u0275dir=F({type:t,features:[Ae]})}return t})();var oee={provide:ea,useExisting:Kt(()=>Do),multi:!0};var Do=(()=>{class t extends ree{required;inputName="required";normalizeInput=V;createValidator=e=>SB;enabled(e){return e}static \u0275fac=(()=>{let e;return function(r){return(e||(e=fe(t)))(r||t)}})();static \u0275dir=F({type:t,selectors:[["","required","","formControlName","",3,"type","checkbox"],["","required","","formControl","",3,"type","checkbox"],["","required","","ngModel","",3,"type","checkbox"]],hostVars:1,hostBindings:function(i,r){i&2&&X("required",r._enabled?"":null)},inputs:{required:"required"},standalone:!1,features:[Ce([oee]),le]})}return t})();var WB=(()=>{class t{static \u0275fac=function(i){return new(i||t)};static \u0275mod=ee({type:t});static \u0275inj=J({})}return t})(),mx=class extends hc{constructor(n,e,i){super(Jk(e),eS(i,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(i=>{this.controls.push(i),this._registerControl(i)}):(this.controls.push(n),this._registerControl(n)),this.updateValueAndValidity({emitEvent:e.emitEvent}),this._onCollectionChange()}insert(n,e,i={}){this.controls.splice(n,0,e),this._registerControl(e),this.updateValueAndValidity({emitEvent:i.emitEvent})}removeAt(n,e={}){let i=this._adjustIndex(n);i<0&&(i=0),this.controls[i]&&this.controls[i]._registerOnCollectionChange(()=>{}),this.controls.splice(i,1),this.updateValueAndValidity({emitEvent:e.emitEvent})}setControl(n,e,i={}){let r=this._adjustIndex(n);r<0&&(r=0),this.controls[r]&&this.controls[r]._registerOnCollectionChange(()=>{}),this.controls.splice(r,1),e&&(this.controls.splice(r,0,e),this._registerControl(e)),this.updateValueAndValidity({emitEvent:i.emitEvent}),this._onCollectionChange()}get length(){return this.controls.length}setValue(n,e={}){BB(this,!1,n),n.forEach((i,r)=>{VB(this,!1,r),this.at(r).setValue(i,{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e)}patchValue(n,e={}){n!=null&&(n.forEach((i,r)=>{this.at(r)&&this.at(r).patchValue(i,{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e))}reset(n=[],e={}){this._forEachChild((i,r)=>{i.reset(n[r],{onlySelf:!0,emitEvent:e.emitEvent})}),this._updatePristine(e,this),this._updateTouched(e,this),this.updateValueAndValidity(e),e?.emitEvent!==!1&&this._events.next(new hg(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,i)=>i._syncPendingControls()?!0:e,!1);return n&&this.updateValueAndValidity({onlySelf:!0}),n}_forEachChild(n){this.controls.forEach((e,i)=>{n(e,i)})}_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}},oS=mx;function EB(t){return!!t&&(t.asyncValidators!==void 0||t.validators!==void 0||t.updateOn!==void 0)}var eo=(()=>{class t{useNonNullable=!1;get nonNullable(){let e=new t;return e.useNonNullable=!0,e}group(e,i=null){let r=this._reduceControls(e),o={};return EB(i)?o=i:i!==null&&(o.validators=i.validator,o.asyncValidators=i.asyncValidator),new lu(r,o)}record(e,i=null){let r=this._reduceControls(e);return new Yk(r,i)}control(e,i,r){let o={};return this.useNonNullable?(EB(i)?o=i:(o.validators=i,o.asyncValidators=r),new Jo(e,De(M({},o),{nonNullable:!0}))):new Jo(e,i,r)}array(e,i,r){let o=e.map(a=>this._createControl(a));return new mx(o,i,r)}_reduceControls(e){let i={};return Object.keys(e).forEach(r=>{i[r]=this._createControl(e[r])}),i}_createControl(e){if(e instanceof Jo)return e;if(e instanceof hc)return e;if(Array.isArray(e)){let i=e[0],r=e.length>1?e[1]:null,o=e.length>2?e[2]:null;return this.control(i,r,o)}else return this.control(e)}static \u0275fac=function(i){return new(i||t)};static \u0275prov=O({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();var du=(()=>{class t{static withConfig(e){return{ngModule:t,providers:[{provide:xh,useValue:e.callSetDisabledState??fx}]}}static \u0275fac=function(i){return new(i||t)};static \u0275mod=ee({type:t});static \u0275inj=J({imports:[WB]})}return t})(),zn=(()=>{class t{static withConfig(e){return{ngModule:t,providers:[{provide:rS,useValue:e.warnOnNgModelWithFormControl??"always"},{provide:xh,useValue:e.callSetDisabledState??fx}]}}static \u0275fac=function(i){return new(i||t)};static \u0275mod=ee({type:t});static \u0275inj=J({imports:[WB]})}return t})();var $i=(()=>{class t{static \u0275fac=function(i){return new(i||t)};static \u0275mod=ee({type:t});static \u0275inj=J({imports:[we,Ym,Oi,we]})}return t})();var aee=["trigger"],see=["panel"],lee=[[["mat-select-trigger"]],"*"],cee=["mat-select-trigger","*"];function dee(t,n){if(t&1&&(h(0,"span",4),_(1),p()),t&2){let e=C();g(),H(e.placeholder)}}function uee(t,n){t&1&&oe(0)}function mee(t,n){if(t&1&&(h(0,"span",11),_(1),p()),t&2){let e=C(2);g(),H(e.triggerValue)}}function hee(t,n){if(t&1&&(h(0,"span",5),N(1,uee,1,0)(2,mee,2,1,"span",11),p()),t&2){let e=C();g(),L(e.customTrigger?1:2)}}function pee(t,n){if(t&1){let e=Y();h(0,"div",12,1),S("keydown",function(r){I(e);let o=C();return A(o._handleKeydown(r))}),oe(2,1),p()}if(t&2){let e=C();it($o("mat-mdc-select-panel mdc-menu-surface mdc-menu-surface--open ",e._getPanelTheme())),G("mat-select-panel-animations-enabled",!e._animationsDisabled),y("ngClass",e.panelClass),X("id",e.id+"-panel")("aria-multiselectable",e.multiple)("aria-label",e.ariaLabel||null)("aria-labelledby",e._getPanelAriaLabelledby())}}var aS=new T("mat-select-scroll-strategy",{providedIn:"root",factory:()=>{let t=u(de);return()=>wn(t)}});function GB(t){let n=u(de);return()=>wn(n)}var qB=new T("MAT_SELECT_CONFIG"),YB={provide:aS,deps:[],useFactory:GB},QB=new T("MatSelectTrigger"),gx=class{source;value;constructor(n,e){this.source=n,this.value=e}},Na=(()=>{class t{_viewportRuler=u(Xn);_changeDetectorRef=u(ye);_elementRef=u(q);_dir=u(Vt,{optional:!0});_idGenerator=u(Ze);_renderer=u(je);_parentFormField=u(Xo,{optional:!0});ngControl=u(Hn,{self:!0,optional:!0});_liveAnnouncer=u(Gf);_defaultOptions=u(qB,{optional:!0});_animationsDisabled=Ye();_initialized=new z;_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 i=this.options.toArray()[e];if(i){let r=this.panel.nativeElement,o=Qf(e,this.options,this.optionGroups),a=i._getHostElement();e===0&&o===1?r.scrollTop=0:r.scrollTop=Kf(a.offsetTop,a.offsetHeight,r.scrollTop,r.offsetHeight)}}_positioningSettled(){this._scrollOptionIntoView(this._keyManager.activeItemIndex||0)}_getChangeEvent(e){return new gx(this,e)}_scrollStrategyFactory=u(aS);_panelOpen=!1;_compareWith=(e,i)=>e===i;_uid=this._idGenerator.getId("mat-select-");_triggerAriaLabelledBy=null;_previousControl;_destroy=new z;_errorStateTracker;stateChanges=new z;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=he(!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(Le.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=kn(()=>{let e=this.options;return e?e.changes.pipe(He(e),$e(()=>Je(...e.map(i=>i.onSelectionChange)))):this._initialized.pipe($e(()=>this.optionSelectionChanges))});openedChange=new U;_openedStream=this.openedChange.pipe(ce(e=>e),se(()=>{}));_closedStream=this.openedChange.pipe(ce(e=>!e),se(()=>{}));selectionChange=new U;valueChange=new U;constructor(){let e=u(dl),i=u(pc,{optional:!0}),r=u(Ki,{optional:!0}),o=u(new Ii("tabindex"),{optional:!0});this.ngControl&&(this.ngControl.valueAccessor=this),this._defaultOptions?.typeaheadDebounceInterval!=null&&(this.typeaheadDebounceInterval=this._defaultOptions.typeaheadDebounceInterval),this._errorStateTracker=new cl(e,this.ngControl,r,i,this.stateChanges),this._scrollStrategy=this._scrollStrategyFactory(),this.tabIndex=o==null?0:parseInt(o)||0,this.id=this.id}ngOnInit(){this._selectionModel=new sg(this.multiple),this.stateChanges.next(),this._viewportRuler.change().pipe(Te(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(Te(this._destroy)).subscribe(e=>{e.added.forEach(i=>i.select()),e.removed.forEach(i=>i.deselect())}),this.options.changes.pipe(He(null),Te(this._destroy)).subscribe(()=>{this._resetOptions(),this._initializeSelection()})}ngDoCheck(){let e=this._getTriggerAriaLabelledby(),i=this.ngControl;if(e!==this._triggerAriaLabelledBy){let r=this._elementRef.nativeElement;this._triggerAriaLabelledBy=e,e?r.setAttribute("aria-labelledby",e):r.removeAttribute("aria-labelledby")}i&&(this._previousControl!==i.control&&(this._previousControl!==void 0&&i.disabled!==null&&i.disabled!==this.disabled&&(this.disabled=i.disabled),this._previousControl=i.control),this.updateErrorState())}ngOnChanges(e){(e.disabled||e.userAriaDescribedBy)&&this.stateChanges.next(),e.typeaheadDebounceInterval&&this._keyManager&&this._keyManager.withTypeAhead(this.typeaheadDebounceInterval)}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(lt(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 i=`${this.id}-panel`;this._trackedModal&&sc(this._trackedModal,"aria-owns",i),Zm(e,"aria-owns",i),this._trackedModal=e}_clearFromModal(){if(!this._trackedModal)return;let e=`${this.id}-panel`;sc(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=()=>{i(),clearTimeout(r),this._cleanupDetach=void 0};let e=this.panel.nativeElement,i=this._renderer.listen(e,"animationend",o=>{o.animationName==="_mat-select-exit"&&(this._cleanupDetach?.(),this._detachOverlay())}),r=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(i=>i.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 i=e.keyCode,r=i===40||i===38||i===37||i===39,o=i===13||i===32,a=this._keyManager;if(!a.isTyping()&&o&&!Ft(e)||(this.multiple||e.altKey)&&r)e.preventDefault(),this.open();else if(!this.multiple){let s=this.selected;a.onKeydown(e);let l=this.selected;l&&s!==l&&this._liveAnnouncer.announce(l.viewValue,1e4)}}_handleOpenKeydown(e){let i=this._keyManager,r=e.keyCode,o=r===40||r===38,a=i.isTyping();if(o&&e.altKey)e.preventDefault(),this.close();else if(!a&&(r===13||r===32)&&i.activeItem&&!Ft(e))e.preventDefault(),i.activeItem._selectViaInteraction();else if(!a&&this._multiple&&r===65&&e.ctrlKey){e.preventDefault();let s=this.options.some(l=>!l.disabled&&!l.selected);this.options.forEach(l=>{l.disabled||(s?l.select():l.deselect())})}else{let s=i.activeItemIndex;i.onKeydown(e),this._multiple&&o&&e.shiftKey&&i.activeItem&&i.activeItemIndex!==s&&i.activeItem._selectViaInteraction()}}_handleOverlayKeydown(e){e.keyCode===27&&!Ft(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())}_getPanelTheme(){return this._parentFormField?`mat-${this._parentFormField.color}`:""}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(i=>i.setInactiveStyles()),this._selectionModel.clear(),this.multiple&&e)Array.isArray(e),e.forEach(i=>this._selectOptionByValue(i)),this._sortValues();else{let i=this._selectOptionByValue(e);i?this._keyManager.updateActiveItem(i):this.panelOpen||this._keyManager.updateActiveItem(-1)}this._changeDetectorRef.markForCheck()}_selectOptionByValue(e){let i=this.options.find(r=>{if(this._selectionModel.isSelected(r))return!1;try{return(r.value!=null||this.canSelectNullableOptions)&&this._compareWith(r.value,e)}catch{return!1}});return i&&this._selectionModel.select(i),i}_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 bh?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 qd(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=Je(this.options.changes,this._destroy);this.optionSelectionChanges.pipe(Te(e)).subscribe(i=>{this._onSelect(i.source,i.isUserInput),i.isUserInput&&!this.multiple&&this._panelOpen&&(this.close(),this.focus())}),Je(...this.options.map(i=>i._stateChanges)).pipe(Te(e)).subscribe(()=>{this._changeDetectorRef.detectChanges(),this.stateChanges.next()})}_onSelect(e,i){let r=this._selectionModel.isSelected(e);!this.canSelectNullableOptions&&e.value==null&&!this._multiple?(e.deselect(),this._selectionModel.clear(),this.value!=null&&this._propagateChanges(e.value)):(r!==e.selected&&(e.selected?this._selectionModel.select(e):this._selectionModel.deselect(e)),i&&this._keyManager.setActiveItem(e),this.multiple&&(this._sortValues(),i&&this.focus())),r!==this._selectionModel.isSelected(e)&&this._propagateChanges(),this.stateChanges.next()}_sortValues(){if(this.multiple){let e=this.options.toArray();this._selectionModel.sort((i,r)=>this.sortComparator?this.sortComparator(i,r,e):e.indexOf(i)-e.indexOf(r)),this.stateChanges.next()}}_propagateChanges(e){let i;this.multiple?i=this.selected.map(r=>r.value):i=this.selected?this.selected.value:e,this._value=i,this.valueChange.emit(i),this._onChange(i),this.selectionChange.emit(this._getChangeEvent(i)),this._changeDetectorRef.markForCheck()}_highlightCorrectOption(){if(this._keyManager)if(this.empty){let e=-1;for(let i=0;i0&&!!this._overlayDir}focus(e){this._elementRef.nativeElement.focus(e)}_getPanelAriaLabelledby(){if(this.ariaLabel)return null;let e=this._parentFormField?.getLabelId()||null,i=e?e+" ":"";return this.ariaLabelledby?i+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){e.length?this._elementRef.nativeElement.setAttribute("aria-describedby",e.join(" ")):this._elementRef.nativeElement.removeAttribute("aria-describedby")}onContainerClick(){this.focus(),this.open()}get shouldLabelFloat(){return this.panelOpen||!this.empty||this.focused&&!!this.placeholder}static \u0275fac=function(i){return new(i||t)};static \u0275cmp=E({type:t,selectors:[["mat-select"]],contentQueries:function(i,r,o){if(i&1&&(xe(o,QB,5),xe(o,xn,5),xe(o,Zd,5)),i&2){let a;B(a=j())&&(r.customTrigger=a.first),B(a=j())&&(r.options=a),B(a=j())&&(r.optionGroups=a)}},viewQuery:function(i,r){if(i&1&&(ie(aee,5),ie(see,5),ie(tx,5)),i&2){let o;B(o=j())&&(r.trigger=o.first),B(o=j())&&(r.panel=o.first),B(o=j())&&(r._overlayDir=o.first)}},hostAttrs:["role","combobox","aria-haspopup","listbox",1,"mat-mdc-select"],hostVars:21,hostBindings:function(i,r){i&1&&S("keydown",function(a){return r._handleKeydown(a)})("focus",function(){return r._onFocus()})("blur",function(){return r._onBlur()}),i&2&&(X("id",r.id)("tabindex",r.disabled?-1:r.tabIndex)("aria-controls",r.panelOpen?r.id+"-panel":null)("aria-expanded",r.panelOpen)("aria-label",r.ariaLabel||null)("aria-required",r.required.toString())("aria-disabled",r.disabled.toString())("aria-invalid",r.errorState)("aria-activedescendant",r._getAriaActiveDescendant()),G("mat-mdc-select-disabled",r.disabled)("mat-mdc-select-invalid",r.errorState)("mat-mdc-select-required",r.required)("mat-mdc-select-empty",r.empty)("mat-mdc-select-multiple",r.multiple)("mat-select-open",r.panelOpen))},inputs:{userAriaDescribedBy:[0,"aria-describedby","userAriaDescribedBy"],panelClass:"panelClass",disabled:[2,"disabled","disabled",V],disableRipple:[2,"disableRipple","disableRipple",V],tabIndex:[2,"tabIndex","tabIndex",e=>e==null?0:ct(e)],hideSingleSelectionIndicator:[2,"hideSingleSelectionIndicator","hideSingleSelectionIndicator",V],placeholder:"placeholder",required:[2,"required","required",V],multiple:[2,"multiple","multiple",V],disableOptionCentering:[2,"disableOptionCentering","disableOptionCentering",V],compareWith:"compareWith",value:"value",ariaLabel:[0,"aria-label","ariaLabel"],ariaLabelledby:[0,"aria-labelledby","ariaLabelledby"],errorStateMatcher:"errorStateMatcher",typeaheadDebounceInterval:[2,"typeaheadDebounceInterval","typeaheadDebounceInterval",ct],sortComparator:"sortComparator",id:"id",panelWidth:"panelWidth",canSelectNullableOptions:[2,"canSelectNullableOptions","canSelectNullableOptions",V]},outputs:{openedChange:"openedChange",_openedStream:"opened",_closedStream:"closed",selectionChange:"selectionChange",valueChange:"valueChange"},exportAs:["matSelect"],features:[Ce([{provide:Ra,useExisting:t},{provide:Kd,useExisting:t}]),Ae],ngContentSelectors:cee,decls:11,vars:9,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","","cdkConnectedOverlayLockPosition","","cdkConnectedOverlayHasBackdrop","","cdkConnectedOverlayBackdropClass","cdk-overlay-transparent-backdrop",3,"detach","backdropClick","overlayKeydown","cdkConnectedOverlayDisableClose","cdkConnectedOverlayPanelClass","cdkConnectedOverlayScrollStrategy","cdkConnectedOverlayOrigin","cdkConnectedOverlayPositions","cdkConnectedOverlayWidth","cdkConnectedOverlayFlexibleDimensions"],[1,"mat-mdc-select-min-line"],["role","listbox","tabindex","-1",3,"keydown","ngClass"]],template:function(i,r){if(i&1){let o=Y();Me(lee),h(0,"div",2,0),S("click",function(){return I(o),A(r.open())}),h(3,"div",3),N(4,dee,2,1,"span",4)(5,hee,3,1,"span",5),p(),h(6,"div",6)(7,"div",7),Gt(),h(8,"svg",8),k(9,"path",9),p()()()(),R(10,pee,3,10,"ng-template",10),S("detach",function(){return I(o),A(r.close())})("backdropClick",function(){return I(o),A(r.close())})("overlayKeydown",function(s){return I(o),A(r._handleOverlayKeydown(s))})}if(i&2){let o=Se(1);g(3),X("id",r._valueId),g(),L(r.empty?4:5),g(6),y("cdkConnectedOverlayDisableClose",!0)("cdkConnectedOverlayPanelClass",r._overlayPanelClass)("cdkConnectedOverlayScrollStrategy",r._scrollStrategy)("cdkConnectedOverlayOrigin",r._preferredOverlayOrigin||o)("cdkConnectedOverlayPositions",r._positions)("cdkConnectedOverlayWidth",r._overlayWidth)("cdkConnectedOverlayFlexibleDimensions",!0)}},dependencies:[bh,tx,Pd],styles:[`@keyframes _mat-select-enter{from{opacity:0;transform:scaleY(0.8)}to{opacity:1;transform:none}}@keyframes _mat-select-exit{from{opacity:1}to{opacity:0}}.mat-mdc-select{display:inline-block;width:100%;outline:none;-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;color:var(--mat-select-enabled-trigger-text-color, var(--mat-sys-on-surface));font-family:var(--mat-select-trigger-text-font, var(--mat-sys-body-large-font));line-height:var(--mat-select-trigger-text-line-height, var(--mat-sys-body-large-line-height));font-size:var(--mat-select-trigger-text-size, var(--mat-sys-body-large-size));font-weight:var(--mat-select-trigger-text-weight, var(--mat-sys-body-large-weight));letter-spacing:var(--mat-select-trigger-text-tracking, var(--mat-sys-body-large-tracking))}div.mat-mdc-select-panel{box-shadow:var(--mat-select-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-mdc-select-disabled{color:var(--mat-select-disabled-trigger-text-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent))}.mat-mdc-select-disabled .mat-mdc-select-placeholder{color:var(--mat-select-disabled-trigger-text-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent))}.mat-mdc-select-trigger{display:inline-flex;align-items:center;cursor:pointer;position:relative;box-sizing:border-box;width:100%}.mat-mdc-select-disabled .mat-mdc-select-trigger{-webkit-user-select:none;user-select:none;cursor:default}.mat-mdc-select-value{width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.mat-mdc-select-value-text{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.mat-mdc-select-arrow-wrapper{height:24px;flex-shrink:0;display:inline-flex;align-items:center}.mat-form-field-appearance-fill .mdc-text-field--no-label .mat-mdc-select-arrow-wrapper{transform:none}.mat-mdc-form-field .mat-mdc-select.mat-mdc-select-invalid .mat-mdc-select-arrow,.mat-form-field-invalid:not(.mat-form-field-disabled) .mat-mdc-form-field-infix::after{color:var(--mat-select-invalid-arrow-color, var(--mat-sys-error))}.mat-mdc-select-arrow{width:10px;height:5px;position:relative;color:var(--mat-select-enabled-arrow-color, var(--mat-sys-on-surface-variant))}.mat-mdc-form-field.mat-focused .mat-mdc-select-arrow{color:var(--mat-select-focused-arrow-color, var(--mat-sys-primary))}.mat-mdc-form-field .mat-mdc-select.mat-mdc-select-disabled .mat-mdc-select-arrow{color:var(--mat-select-disabled-arrow-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent))}.mat-select-open .mat-mdc-select-arrow{transform:rotate(180deg)}.mat-form-field-animations-enabled .mat-mdc-select-arrow{transition:transform 80ms linear}.mat-mdc-select-arrow svg{fill:currentColor;position:absolute;top:50%;left:50%;transform:translate(-50%, -50%)}@media(forced-colors: active){.mat-mdc-select-arrow svg{fill:CanvasText}.mat-mdc-select-disabled .mat-mdc-select-arrow svg{fill:GrayText}}div.mat-mdc-select-panel{width:100%;max-height:275px;outline:0;overflow:auto;padding:8px 0;border-radius:4px;box-sizing:border-box;position:relative;background-color:var(--mat-select-panel-background-color, var(--mat-sys-surface-container))}@media(forced-colors: active){div.mat-mdc-select-panel{outline:solid 1px}}.cdk-overlay-pane:not(.mat-mdc-select-panel-above) div.mat-mdc-select-panel{border-top-left-radius:0;border-top-right-radius:0;transform-origin:top center}.mat-mdc-select-panel-above div.mat-mdc-select-panel{border-bottom-left-radius:0;border-bottom-right-radius:0;transform-origin:bottom center}.mat-select-panel-animations-enabled{animation:_mat-select-enter 120ms cubic-bezier(0, 0, 0.2, 1)}.mat-select-panel-animations-enabled.mat-select-panel-exit{animation:_mat-select-exit 100ms linear}.mat-mdc-select-placeholder{transition:color 400ms 133.3333333333ms cubic-bezier(0.25, 0.8, 0.25, 1);color:var(--mat-select-placeholder-text-color, var(--mat-sys-on-surface-variant))}.mat-mdc-form-field:not(.mat-form-field-animations-enabled) .mat-mdc-select-placeholder,._mat-animation-noopable .mat-mdc-select-placeholder{transition:none}.mat-form-field-hide-placeholder .mat-mdc-select-placeholder{color:rgba(0,0,0,0);-webkit-text-fill-color:rgba(0,0,0,0);transition:none;display:block}.mat-mdc-form-field-type-mat-select:not(.mat-form-field-disabled) .mat-mdc-text-field-wrapper{cursor:pointer}.mat-mdc-form-field-type-mat-select.mat-form-field-appearance-fill .mat-mdc-floating-label{max-width:calc(100% - 18px)}.mat-mdc-form-field-type-mat-select.mat-form-field-appearance-fill .mdc-floating-label--float-above{max-width:calc(100%/0.75 - 24px)}.mat-mdc-form-field-type-mat-select.mat-form-field-appearance-outline .mdc-notched-outline__notch{max-width:calc(100% - 60px)}.mat-mdc-form-field-type-mat-select.mat-form-field-appearance-outline .mdc-text-field--label-floating .mdc-notched-outline__notch{max-width:calc(100% - 24px)}.mat-mdc-select-min-line:empty::before{content:" ";white-space:pre;width:1px;display:inline-block;visibility:hidden}.mat-form-field-appearance-fill .mat-mdc-select-arrow-wrapper{transform:var(--mat-select-arrow-transform, translateY(-8px))} +`],encapsulation:2,changeDetection:0})}return t})();var fc=(()=>{class t{static \u0275fac=function(i){return new(i||t)};static \u0275mod=ee({type:t});static \u0275inj=J({providers:[YB],imports:[er,rh,we,vr,$i,rh,we]})}return t})();var fee=["mat-icon-button",""],gee=["*"],_ee=new T("MAT_BUTTON_CONFIG");function KB(t){return t==null?void 0:ct(t)}var sS=(()=>{class t{_elementRef=u(q);_ngZone=u(ae);_animationsDisabled=Ye();_config=u(_ee,{optional:!0});_focusMonitor=u(Yt);_cleanupClick;_renderer=u(je);_rippleLoader=u(Z0);_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(){u(ut).load(Di);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",i){e?this._focusMonitor.focusVia(this._elementRef.nativeElement,e,i):this._elementRef.nativeElement.focus(i)}_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(i){return new(i||t)};static \u0275dir=F({type:t,hostAttrs:[1,"mat-mdc-button-base"],hostVars:13,hostBindings:function(i,r){i&2&&(X("disabled",r._getDisabledAttribute())("aria-disabled",r._getAriaDisabled())("tabindex",r._getTabIndex()),it(r.color?"mat-"+r.color:""),G("mat-mdc-button-disabled",r.disabled)("mat-mdc-button-disabled-interactive",r.disabledInteractive)("mat-unthemed",!r.color)("_mat-animation-noopable",r._animationsDisabled))},inputs:{color:"color",disableRipple:[2,"disableRipple","disableRipple",V],disabled:[2,"disabled","disabled",V],ariaDisabled:[2,"aria-disabled","ariaDisabled",V],disabledInteractive:[2,"disabledInteractive","disabledInteractive",V],tabIndex:[2,"tabIndex","tabIndex",KB],_tabindex:[2,"tabindex","_tabindex",KB]}})}return t})(),ti=(()=>{class t extends sS{constructor(){super(),this._rippleLoader.configureRipple(this._elementRef.nativeElement,{centered:!0})}static \u0275fac=function(i){return new(i||t)};static \u0275cmp=E({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:[le],attrs:fee,ngContentSelectors:gee,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(i,r){i&1&&(Me(),ai(0,"span",0),oe(1),ai(2,"span",1)(3,"span",2))},styles:[`.mat-mdc-icon-button{-webkit-user-select:none;user-select:none;display:inline-block;position:relative;box-sizing:border-box;border:none;outline:none;background-color:rgba(0,0,0,0);fill:currentColor;text-decoration:none;cursor:pointer;z-index:0;overflow:visible;border-radius:var(--mat-icon-button-container-shape, var(--mat-sys-corner-full, 50%));flex-shrink:0;text-align:center;width:var(--mat-icon-button-state-layer-size, 40px);height:var(--mat-icon-button-state-layer-size, 40px);padding:calc(calc(var(--mat-icon-button-state-layer-size, 40px) - var(--mat-icon-button-icon-size, 24px)) / 2);font-size:var(--mat-icon-button-icon-size, 24px);color:var(--mat-icon-button-icon-color, var(--mat-sys-on-surface-variant));-webkit-tap-highlight-color:rgba(0,0,0,0)}.mat-mdc-icon-button .mat-mdc-button-ripple,.mat-mdc-icon-button .mat-mdc-button-persistent-ripple,.mat-mdc-icon-button .mat-mdc-button-persistent-ripple::before{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none;border-radius:inherit}.mat-mdc-icon-button .mat-mdc-button-ripple{overflow:hidden}.mat-mdc-icon-button .mat-mdc-button-persistent-ripple::before{content:"";opacity:0}.mat-mdc-icon-button .mdc-button__label,.mat-mdc-icon-button .mat-icon{z-index:1;position:relative}.mat-mdc-icon-button .mat-focus-indicator{top:0;left:0;right:0;bottom:0;position:absolute;border-radius:inherit}.mat-mdc-icon-button:focus>.mat-focus-indicator::before{content:"";border-radius:inherit}.mat-mdc-icon-button .mat-ripple-element{background-color:var(--mat-icon-button-ripple-color, color-mix(in srgb, var(--mat-sys-on-surface-variant) calc(var(--mat-sys-pressed-state-layer-opacity) * 100%), transparent))}.mat-mdc-icon-button .mat-mdc-button-persistent-ripple::before{background-color:var(--mat-icon-button-state-layer-color, var(--mat-sys-on-surface-variant))}.mat-mdc-icon-button.mat-mdc-button-disabled .mat-mdc-button-persistent-ripple::before{background-color:var(--mat-icon-button-disabled-state-layer-color, var(--mat-sys-on-surface-variant))}.mat-mdc-icon-button:hover>.mat-mdc-button-persistent-ripple::before{opacity:var(--mat-icon-button-hover-state-layer-opacity, var(--mat-sys-hover-state-layer-opacity))}.mat-mdc-icon-button.cdk-program-focused>.mat-mdc-button-persistent-ripple::before,.mat-mdc-icon-button.cdk-keyboard-focused>.mat-mdc-button-persistent-ripple::before,.mat-mdc-icon-button.mat-mdc-button-disabled-interactive:focus>.mat-mdc-button-persistent-ripple::before{opacity:var(--mat-icon-button-focus-state-layer-opacity, var(--mat-sys-focus-state-layer-opacity))}.mat-mdc-icon-button:active>.mat-mdc-button-persistent-ripple::before{opacity:var(--mat-icon-button-pressed-state-layer-opacity, var(--mat-sys-pressed-state-layer-opacity))}.mat-mdc-icon-button .mat-mdc-button-touch-target{position:absolute;top:50%;height:var(--mat-icon-button-touch-target-size, 48px);display:var(--mat-icon-button-touch-target-display, block);left:50%;width:var(--mat-icon-button-touch-target-size, 48px);transform:translate(-50%, -50%)}.mat-mdc-icon-button._mat-animation-noopable{transition:none !important;animation:none !important}.mat-mdc-icon-button[disabled],.mat-mdc-icon-button.mat-mdc-button-disabled{cursor:default;pointer-events:none;color:var(--mat-icon-button-disabled-icon-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent))}.mat-mdc-icon-button.mat-mdc-button-disabled-interactive{pointer-events:auto}.mat-mdc-icon-button img,.mat-mdc-icon-button svg{width:var(--mat-icon-button-icon-size, 24px);height:var(--mat-icon-button-icon-size, 24px);vertical-align:baseline}.mat-mdc-icon-button .mat-mdc-button-persistent-ripple{border-radius:var(--mat-icon-button-container-shape, var(--mat-sys-corner-full, 50%))}.mat-mdc-icon-button[hidden]{display:none}.mat-mdc-icon-button.mat-unthemed:not(.mdc-ripple-upgraded):focus::before,.mat-mdc-icon-button.mat-primary:not(.mdc-ripple-upgraded):focus::before,.mat-mdc-icon-button.mat-accent:not(.mdc-ripple-upgraded):focus::before,.mat-mdc-icon-button.mat-warn:not(.mdc-ripple-upgraded):focus::before{background:rgba(0,0,0,0);opacity:1} `,`@media(forced-colors: active){.mat-mdc-button:not(.mdc-button--outlined),.mat-mdc-unelevated-button:not(.mdc-button--outlined),.mat-mdc-raised-button:not(.mdc-button--outlined),.mat-mdc-outlined-button:not(.mdc-button--outlined),.mat-mdc-button-base.mat-tonal-button,.mat-mdc-icon-button.mat-mdc-icon-button,.mat-mdc-outlined-button .mdc-button__ripple{outline:solid 1px}} -`],encapsulation:2,changeDetection:0})}return t})();var _ee=["tooltip"],lS=20;var cS=new T("mat-tooltip-scroll-strategy",{providedIn:"root",factory:()=>{let t=u(de);return()=>wn(t,{scrollThrottle:lS})}});function XB(t){let n=u(de);return()=>wn(n,{scrollThrottle:lS})}var dS={provide:cS,deps:[],useFactory:XB};function JB(){return{showDelay:0,hideDelay:0,touchendHideDelay:1500}}var e3=new T("mat-tooltip-default-options",{providedIn:"root",factory:JB});var KB="tooltip-panel",ZB=rc({passive:!0}),bee=8,vee=8,yee=24,xee=200,Eo=(()=>{class t{_elementRef=u(q);_ngZone=u(ae);_platform=u(qe);_ariaDescriber=u(Xm);_focusMonitor=u(Yt);_dir=u(Vt);_injector=u(de);_viewContainerRef=u(nt);_animationsDisabled=Ye();_defaultOptions=u(e3,{optional:!0});_overlayRef;_tooltipInstance;_overlayPanelClass;_portal;_position="below";_positionAtOrigin=!1;_disabled=!1;_tooltipClass;_viewInitialized=!1;_pointerExitEventsInitialized=!1;_tooltipComponent=t3;_viewportMargin=8;_currentPosition;_cssClassPrefix="mat-mdc";_ariaDescriptionPending;_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=Ai(e),this._detach(),this._overlayRef=null}get disabled(){return this._disabled}set disabled(e){let i=Ai(e);this._disabled!==i&&(this._disabled=i,i?this.hide(0):this._setupPointerEnterEventsIfNeeded(),this._syncAriaDescription(this.message))}get showDelay(){return this._showDelay}set showDelay(e){this._showDelay=Ln(e)}_showDelay;get hideDelay(){return this._hideDelay}set hideDelay(e){this._hideDelay=Ln(e),this._tooltipInstance&&(this._tooltipInstance._mouseLeaveHideDelay=this._hideDelay)}_hideDelay;touchGestures="auto";get message(){return this._message}set message(e){let i=this._message;this._message=e!=null?String(e).trim():"",!this._message&&this._isTooltipVisible()?this.hide(0):(this._setupPointerEnterEventsIfNeeded(),this._updateTooltipMessage()),this._syncAriaDescription(i)}_message="";get tooltipClass(){return this._tooltipClass}set tooltipClass(e){this._tooltipClass=e,this._tooltipInstance&&this._setTooltipClass(this._tooltipClass)}_passiveListeners=[];_touchstartTimeout=null;_destroyed=new z;_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=bee}ngAfterViewInit(){this._viewInitialized=!0,this._setupPointerEnterEventsIfNeeded(),this._focusMonitor.monitor(this._elementRef).pipe(Te(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._passiveListeners.forEach(([i,r])=>{e.removeEventListener(i,r,ZB)}),this._passiveListeners.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,i){if(this.disabled||!this.message||this._isTooltipVisible()){this._tooltipInstance?._cancelPendingAnimations();return}let r=this._createOverlay(i);this._detach(),this._portal=this._portal||new Zr(this._tooltipComponent,this._viewContainerRef);let o=this._tooltipInstance=r.attach(this._portal).instance;o._triggerElement=this._elementRef.nativeElement,o._mouseLeaveHideDelay=this._hideDelay,o.afterHidden().pipe(Te(this._destroyed)).subscribe(()=>this._detach()),this._setTooltipClass(this._tooltipClass),this._updateTooltipMessage(),o.show(e)}hide(e=this.hideDelay){let i=this._tooltipInstance;i&&(i.isVisible()?i.hide(e):(i._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 a=this._overlayRef.getConfig().positionStrategy;if((!this.positionAtOrigin||!e)&&a._origin instanceof q)return this._overlayRef;this._detach()}let i=this._injector.get(ws).getAncestorScrollContainers(this._elementRef),r=`${this._cssClassPrefix}-${KB}`,o=Fa(this._injector,this.positionAtOrigin?e||this._elementRef:this._elementRef).withTransformOriginOn(`.${this._cssClassPrefix}-tooltip`).withFlexibleDimensions(!1).withViewportMargin(this._viewportMargin).withScrollableContainers(i);return o.positionChanges.pipe(Te(this._destroyed)).subscribe(a=>{this._updateCurrentPositionClass(a.connectionPair),this._tooltipInstance&&a.scrollableViewProperties.isOverlayClipped&&this._tooltipInstance.isVisible()&&this._ngZone.run(()=>this.hide(0))}),this._overlayRef=Nr(this._injector,{direction:this._dir,positionStrategy:o,panelClass:this._overlayPanelClass?[...this._overlayPanelClass,r]:r,scrollStrategy:this._injector.get(cS)(),disableAnimations:this._animationsDisabled}),this._updatePosition(this._overlayRef),this._overlayRef.detachments().pipe(Te(this._destroyed)).subscribe(()=>this._detach()),this._overlayRef.outsidePointerEvents().pipe(Te(this._destroyed)).subscribe(()=>this._tooltipInstance?._handleBodyInteraction()),this._overlayRef.keydownEvents().pipe(Te(this._destroyed)).subscribe(a=>{this._isTooltipVisible()&&a.keyCode===27&&!Ft(a)&&(a.preventDefault(),a.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(Te(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 i=e.getConfig().positionStrategy,r=this._getOrigin(),o=this._getOverlayPosition();i.withPositions([this._addOffset(M(M({},r.main),o.main)),this._addOffset(M(M({},r.fallback),o.fallback))])}_addOffset(e){let i=vee,r=!this._dir||this._dir.value=="ltr";return e.originY==="top"?e.offsetY=-i:e.originY==="bottom"?e.offsetY=i:e.originX==="start"?e.offsetX=r?-i:i:e.originX==="end"&&(e.offsetX=r?i:-i),e}_getOrigin(){let e=!this._dir||this._dir.value=="ltr",i=this.position,r;i=="above"||i=="below"?r={originX:"center",originY:i=="above"?"top":"bottom"}:i=="before"||i=="left"&&e||i=="right"&&!e?r={originX:"start",originY:"center"}:(i=="after"||i=="right"&&e||i=="left"&&!e)&&(r={originX:"end",originY:"center"});let{x:o,y:a}=this._invertPosition(r.originX,r.originY);return{main:r,fallback:{originX:o,originY:a}}}_getOverlayPosition(){let e=!this._dir||this._dir.value=="ltr",i=this.position,r;i=="above"?r={overlayX:"center",overlayY:"bottom"}:i=="below"?r={overlayX:"center",overlayY:"top"}:i=="before"||i=="left"&&e||i=="right"&&!e?r={overlayX:"end",overlayY:"center"}:(i=="after"||i=="right"&&e||i=="left"&&!e)&&(r={overlayX:"start",overlayY:"center"});let{x:o,y:a}=this._invertPosition(r.overlayX,r.overlayY);return{main:r,fallback:{overlayX:o,overlayY:a}}}_updateTooltipMessage(){this._tooltipInstance&&(this._tooltipInstance.message=this.message,this._tooltipInstance._markForCheck(),pt(()=>{this._tooltipInstance&&this._overlayRef.updatePosition()},{injector:this._injector}))}_setTooltipClass(e){this._tooltipInstance&&(this._tooltipInstance.tooltipClass=e,this._tooltipInstance._markForCheck())}_invertPosition(e,i){return this.position==="above"||this.position==="below"?i==="top"?i="bottom":i==="bottom"&&(i="top"):e==="end"?e="start":e==="start"&&(e="end"),{x:e,y:i}}_updateCurrentPositionClass(e){let{overlayY:i,originX:r,originY:o}=e,a;if(i==="center"?this._dir&&this._dir.value==="rtl"?a=r==="end"?"left":"right":a=r==="start"?"left":"right":a=i==="bottom"&&o==="top"?"above":"below",a!==this._currentPosition){let s=this._overlayRef;if(s){let l=`${this._cssClassPrefix}-${KB}-`;s.removePanelClass(l+this._currentPosition),s.addPanelClass(l+a)}this._currentPosition=a}}_setupPointerEnterEventsIfNeeded(){this._disabled||!this.message||!this._viewInitialized||this._passiveListeners.length||(this._platformSupportsMouseEvents()?this._passiveListeners.push(["mouseenter",e=>{this._setupPointerExitEventsIfNeeded();let i;e.x!==void 0&&e.y!==void 0&&(i=e),this.show(void 0,i)}]):this.touchGestures!=="off"&&(this._disableNativeGesturesIfNecessary(),this._passiveListeners.push(["touchstart",e=>{let i=e.targetTouches?.[0],r=i?{x:i.clientX,y:i.clientY}:void 0;this._setupPointerExitEventsIfNeeded(),this._touchstartTimeout&&clearTimeout(this._touchstartTimeout);let o=500;this._touchstartTimeout=setTimeout(()=>{this._touchstartTimeout=null,this.show(void 0,r)},this._defaultOptions?.touchLongPressShowDelay??o)}])),this._addListeners(this._passiveListeners))}_setupPointerExitEventsIfNeeded(){if(this._pointerExitEventsInitialized)return;this._pointerExitEventsInitialized=!0;let e=[];if(this._platformSupportsMouseEvents())e.push(["mouseleave",i=>{let r=i.relatedTarget;(!r||!this._overlayRef?.overlayElement.contains(r))&&this.hide()}],["wheel",i=>this._wheelListener(i)]);else if(this.touchGestures!=="off"){this._disableNativeGesturesIfNecessary();let i=()=>{this._touchstartTimeout&&clearTimeout(this._touchstartTimeout),this.hide(this._defaultOptions?.touchendHideDelay)};e.push(["touchend",i],["touchcancel",i])}this._addListeners(e),this._passiveListeners.push(...e)}_addListeners(e){e.forEach(([i,r])=>{this._elementRef.nativeElement.addEventListener(i,r,ZB)})}_platformSupportsMouseEvents(){return!this._platform.IOS&&!this._platform.ANDROID}_wheelListener(e){if(this._isTooltipVisible()){let i=this._injector.get(ge).elementFromPoint(e.clientX,e.clientY),r=this._elementRef.nativeElement;i!==r&&!r.contains(i)&&this.hide()}}_disableNativeGesturesIfNecessary(){let e=this.touchGestures;if(e!=="off"){let i=this._elementRef.nativeElement,r=i.style;(e==="on"||i.nodeName!=="INPUT"&&i.nodeName!=="TEXTAREA")&&(r.userSelect=r.msUserSelect=r.webkitUserSelect=r.MozUserSelect="none"),(e==="on"||!i.draggable)&&(r.webkitUserDrag="none"),r.touchAction="none",r.webkitTapHighlightColor="transparent"}}_syncAriaDescription(e){this._ariaDescriptionPending||(this._ariaDescriptionPending=!0,this._ariaDescriber.removeDescription(this._elementRef.nativeElement,e,"tooltip"),this._isDestroyed||pt({write:()=>{this._ariaDescriptionPending=!1,this.message&&!this.disabled&&this._ariaDescriber.describe(this._elementRef.nativeElement,this.message,"tooltip")}},{injector:this._injector}))}static \u0275fac=function(i){return new(i||t)};static \u0275dir=F({type:t,selectors:[["","matTooltip",""]],hostAttrs:[1,"mat-mdc-tooltip-trigger"],hostVars:2,hostBindings:function(i,r){i&2&&G("mat-mdc-tooltip-disabled",r.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 t})(),t3=(()=>{class t{_changeDetectorRef=u(ye);_elementRef=u(q);_isMultiline=!1;message;tooltipClass;_showTimeoutId;_hideTimeoutId;_triggerElement;_mouseLeaveHideDelay;_animationsDisabled=Ye();_tooltip;_closeOnInteraction=!1;_isVisible=!1;_onHide=new z;_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>yee&&e.width>=xee}_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 i=this._tooltip.nativeElement,r=this._showAnimation,o=this._hideAnimation;if(i.classList.remove(e?o:r),i.classList.add(e?r:o),this._isVisible!==e&&(this._isVisible=e,this._changeDetectorRef.markForCheck()),e&&!this._animationsDisabled&&typeof getComputedStyle=="function"){let a=getComputedStyle(i);(a.getPropertyValue("animation-duration")==="0s"||a.getPropertyValue("animation-name")==="none")&&(this._animationsDisabled=!0)}e&&this._onShow(),this._animationsDisabled&&(i.classList.add("_mat-animation-noopable"),this._finalizeAnimation(e))}static \u0275fac=function(i){return new(i||t)};static \u0275cmp=E({type:t,selectors:[["mat-tooltip-component"]],viewQuery:function(i,r){if(i&1&&ie(_ee,7),i&2){let o;B(o=j())&&(r._tooltip=o.first)}},hostAttrs:["aria-hidden","true"],hostBindings:function(i,r){i&1&&S("mouseleave",function(a){return r._handleMouseLeave(a)})},decls:4,vars:4,consts:[["tooltip",""],[1,"mdc-tooltip","mat-mdc-tooltip",3,"animationend","ngClass"],[1,"mat-mdc-tooltip-surface","mdc-tooltip__surface"]],template:function(i,r){if(i&1){let o=Y();h(0,"div",1,0),S("animationend",function(s){return I(o),A(r._handleAnimationEnd(s))}),h(2,"div",2),_(3),p()()}i&2&&(G("mdc-tooltip--multiline",r._isMultiline),y("ngClass",r.tooltipClass),g(3),H(r.message))},dependencies:[Pd],styles:[`.mat-mdc-tooltip{position:relative;transform:scale(0);display:inline-flex}.mat-mdc-tooltip::before{content:"";top:0;right:0;bottom:0;left:0;z-index:-1;position:absolute}.mat-mdc-tooltip-panel-below .mat-mdc-tooltip::before{top:-8px}.mat-mdc-tooltip-panel-above .mat-mdc-tooltip::before{bottom:-8px}.mat-mdc-tooltip-panel-right .mat-mdc-tooltip::before{left:-8px}.mat-mdc-tooltip-panel-left .mat-mdc-tooltip::before{right:-8px}.mat-mdc-tooltip._mat-animation-noopable{animation:none;transform:scale(1)}.mat-mdc-tooltip-surface{word-break:normal;overflow-wrap:anywhere;padding:4px 8px;min-width:40px;max-width:200px;min-height:24px;max-height:40vh;box-sizing:border-box;overflow:hidden;text-align:center;will-change:transform,opacity;background-color:var(--mat-tooltip-container-color, var(--mat-sys-inverse-surface));color:var(--mat-tooltip-supporting-text-color, var(--mat-sys-inverse-on-surface));border-radius:var(--mat-tooltip-container-shape, var(--mat-sys-corner-extra-small));font-family:var(--mat-tooltip-supporting-text-font, var(--mat-sys-body-small-font));font-size:var(--mat-tooltip-supporting-text-size, var(--mat-sys-body-small-size));font-weight:var(--mat-tooltip-supporting-text-weight, var(--mat-sys-body-small-weight));line-height:var(--mat-tooltip-supporting-text-line-height, var(--mat-sys-body-small-line-height));letter-spacing:var(--mat-tooltip-supporting-text-tracking, var(--mat-sys-body-small-tracking))}.mat-mdc-tooltip-surface::before{position:absolute;box-sizing:border-box;width:100%;height:100%;top:0;left:0;border:1px solid rgba(0,0,0,0);border-radius:inherit;content:"";pointer-events:none}.mdc-tooltip--multiline .mat-mdc-tooltip-surface{text-align:left}[dir=rtl] .mdc-tooltip--multiline .mat-mdc-tooltip-surface{text-align:right}.mat-mdc-tooltip-panel{line-height:normal}.mat-mdc-tooltip-panel.mat-mdc-tooltip-panel-non-interactive{pointer-events:none}@keyframes mat-mdc-tooltip-show{0%{opacity:0;transform:scale(0.8)}100%{opacity:1;transform:scale(1)}}@keyframes mat-mdc-tooltip-hide{0%{opacity:1;transform:scale(1)}100%{opacity:0;transform:scale(0.8)}}.mat-mdc-tooltip-show{animation:mat-mdc-tooltip-show 150ms cubic-bezier(0, 0, 0.2, 1) forwards}.mat-mdc-tooltip-hide{animation:mat-mdc-tooltip-hide 75ms cubic-bezier(0.4, 0, 1, 1) forwards} -`],encapsulation:2,changeDetection:0})}return t})();var Br=(()=>{class t{static \u0275fac=function(i){return new(i||t)};static \u0275mod=ee({type:t});static \u0275inj=J({providers:[dS],imports:[ll,er,we,we,vr]})}return t})();var Cee=["matButton",""],wee=[[["",8,"material-icons",3,"iconPositionEnd",""],["mat-icon",3,"iconPositionEnd",""],["","matButtonIcon","",3,"iconPositionEnd",""]],"*",[["","iconPositionEnd","",8,"material-icons"],["mat-icon","iconPositionEnd",""],["","matButtonIcon","","iconPositionEnd",""]]],Dee=[".material-icons:not([iconPositionEnd]), mat-icon:not([iconPositionEnd]), [matButtonIcon]:not([iconPositionEnd])","*",".material-icons[iconPositionEnd], mat-icon[iconPositionEnd], [matButtonIcon][iconPositionEnd]"];var i3=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"]]]),kt=(()=>{class t extends sS{get appearance(){return this._appearance}set appearance(e){this.setAppearance(e||this._config?.defaultAppearance||"text")}_appearance=null;constructor(){super();let e=Eee(this._elementRef.nativeElement);e&&this.setAppearance(e)}setAppearance(e){if(e===this._appearance)return;let i=this._elementRef.nativeElement.classList,r=this._appearance?i3.get(this._appearance):null,o=i3.get(e);r&&i.remove(...r),i.add(...o),this._appearance=e}static \u0275fac=function(i){return new(i||t)};static \u0275cmp=E({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:[le],attrs:Cee,ngContentSelectors:Dee,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(i,r){i&1&&(Me(wee),ai(0,"span",0),oe(1),ft(2,"span",1),oe(3,1),vt(),oe(4,2),ai(5,"span",2)(6,"span",3)),i&2&&G("mdc-button__ripple",!r._isFab)("mdc-fab__ripple",r._isFab)},styles:[`.mat-mdc-button-base{text-decoration:none}.mat-mdc-button-base .mat-icon{min-height:fit-content;flex-shrink:0}.mdc-button{-webkit-user-select:none;user-select:none;position:relative;display:inline-flex;align-items:center;justify-content:center;box-sizing:border-box;min-width:64px;border:none;outline:none;line-height:inherit;-webkit-appearance:none;overflow:visible;vertical-align:middle;background:rgba(0,0,0,0);padding:0 8px}.mdc-button::-moz-focus-inner{padding:0;border:0}.mdc-button:active{outline:none}.mdc-button:hover{cursor:pointer}.mdc-button:disabled{cursor:default;pointer-events:none}.mdc-button[hidden]{display:none}.mdc-button .mdc-button__label{position:relative}.mat-mdc-button{padding:0 var(--mat-button-text-horizontal-padding, 12px);height:var(--mat-button-text-container-height, 40px);font-family:var(--mat-button-text-label-text-font, var(--mat-sys-label-large-font));font-size:var(--mat-button-text-label-text-size, var(--mat-sys-label-large-size));letter-spacing:var(--mat-button-text-label-text-tracking, var(--mat-sys-label-large-tracking));text-transform:var(--mat-button-text-label-text-transform);font-weight:var(--mat-button-text-label-text-weight, var(--mat-sys-label-large-weight))}.mat-mdc-button,.mat-mdc-button .mdc-button__ripple{border-radius:var(--mat-button-text-container-shape, var(--mat-sys-corner-full))}.mat-mdc-button:not(:disabled){color:var(--mat-button-text-label-text-color, var(--mat-sys-primary))}.mat-mdc-button[disabled],.mat-mdc-button.mat-mdc-button-disabled{cursor:default;pointer-events:none;color:var(--mat-button-text-disabled-label-text-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent))}.mat-mdc-button.mat-mdc-button-disabled-interactive{pointer-events:auto}.mat-mdc-button:has(.material-icons,mat-icon,[matButtonIcon]){padding:0 var(--mat-button-text-with-icon-horizontal-padding, 16px)}.mat-mdc-button>.mat-icon{margin-right:var(--mat-button-text-icon-spacing, 8px);margin-left:var(--mat-button-text-icon-offset, -4px)}[dir=rtl] .mat-mdc-button>.mat-icon{margin-right:var(--mat-button-text-icon-offset, -4px);margin-left:var(--mat-button-text-icon-spacing, 8px)}.mat-mdc-button .mdc-button__label+.mat-icon{margin-right:var(--mat-button-text-icon-offset, -4px);margin-left:var(--mat-button-text-icon-spacing, 8px)}[dir=rtl] .mat-mdc-button .mdc-button__label+.mat-icon{margin-right:var(--mat-button-text-icon-spacing, 8px);margin-left:var(--mat-button-text-icon-offset, -4px)}.mat-mdc-button .mat-ripple-element{background-color:var(--mat-button-text-ripple-color, color-mix(in srgb, var(--mat-sys-primary) calc(var(--mat-sys-pressed-state-layer-opacity) * 100%), transparent))}.mat-mdc-button .mat-mdc-button-persistent-ripple::before{background-color:var(--mat-button-text-state-layer-color, var(--mat-sys-primary))}.mat-mdc-button.mat-mdc-button-disabled .mat-mdc-button-persistent-ripple::before{background-color:var(--mat-button-text-disabled-state-layer-color, var(--mat-sys-on-surface-variant))}.mat-mdc-button:hover>.mat-mdc-button-persistent-ripple::before{opacity:var(--mat-button-text-hover-state-layer-opacity, var(--mat-sys-hover-state-layer-opacity))}.mat-mdc-button.cdk-program-focused>.mat-mdc-button-persistent-ripple::before,.mat-mdc-button.cdk-keyboard-focused>.mat-mdc-button-persistent-ripple::before,.mat-mdc-button.mat-mdc-button-disabled-interactive:focus>.mat-mdc-button-persistent-ripple::before{opacity:var(--mat-button-text-focus-state-layer-opacity, var(--mat-sys-focus-state-layer-opacity))}.mat-mdc-button:active>.mat-mdc-button-persistent-ripple::before{opacity:var(--mat-button-text-pressed-state-layer-opacity, var(--mat-sys-pressed-state-layer-opacity))}.mat-mdc-button .mat-mdc-button-touch-target{position:absolute;top:50%;height:var(--mat-button-text-touch-target-size, 48px);display:var(--mat-button-text-touch-target-display, block);left:0;right:0;transform:translateY(-50%)}.mat-mdc-unelevated-button{transition:box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);height:var(--mat-button-filled-container-height, 40px);font-family:var(--mat-button-filled-label-text-font, var(--mat-sys-label-large-font));font-size:var(--mat-button-filled-label-text-size, var(--mat-sys-label-large-size));letter-spacing:var(--mat-button-filled-label-text-tracking, var(--mat-sys-label-large-tracking));text-transform:var(--mat-button-filled-label-text-transform);font-weight:var(--mat-button-filled-label-text-weight, var(--mat-sys-label-large-weight));padding:0 var(--mat-button-filled-horizontal-padding, 24px)}.mat-mdc-unelevated-button>.mat-icon{margin-right:var(--mat-button-filled-icon-spacing, 8px);margin-left:var(--mat-button-filled-icon-offset, -8px)}[dir=rtl] .mat-mdc-unelevated-button>.mat-icon{margin-right:var(--mat-button-filled-icon-offset, -8px);margin-left:var(--mat-button-filled-icon-spacing, 8px)}.mat-mdc-unelevated-button .mdc-button__label+.mat-icon{margin-right:var(--mat-button-filled-icon-offset, -8px);margin-left:var(--mat-button-filled-icon-spacing, 8px)}[dir=rtl] .mat-mdc-unelevated-button .mdc-button__label+.mat-icon{margin-right:var(--mat-button-filled-icon-spacing, 8px);margin-left:var(--mat-button-filled-icon-offset, -8px)}.mat-mdc-unelevated-button .mat-ripple-element{background-color:var(--mat-button-filled-ripple-color, color-mix(in srgb, var(--mat-sys-on-primary) calc(var(--mat-sys-pressed-state-layer-opacity) * 100%), transparent))}.mat-mdc-unelevated-button .mat-mdc-button-persistent-ripple::before{background-color:var(--mat-button-filled-state-layer-color, var(--mat-sys-on-primary))}.mat-mdc-unelevated-button.mat-mdc-button-disabled .mat-mdc-button-persistent-ripple::before{background-color:var(--mat-button-filled-disabled-state-layer-color, var(--mat-sys-on-surface-variant))}.mat-mdc-unelevated-button:hover>.mat-mdc-button-persistent-ripple::before{opacity:var(--mat-button-filled-hover-state-layer-opacity, var(--mat-sys-hover-state-layer-opacity))}.mat-mdc-unelevated-button.cdk-program-focused>.mat-mdc-button-persistent-ripple::before,.mat-mdc-unelevated-button.cdk-keyboard-focused>.mat-mdc-button-persistent-ripple::before,.mat-mdc-unelevated-button.mat-mdc-button-disabled-interactive:focus>.mat-mdc-button-persistent-ripple::before{opacity:var(--mat-button-filled-focus-state-layer-opacity, var(--mat-sys-focus-state-layer-opacity))}.mat-mdc-unelevated-button:active>.mat-mdc-button-persistent-ripple::before{opacity:var(--mat-button-filled-pressed-state-layer-opacity, var(--mat-sys-pressed-state-layer-opacity))}.mat-mdc-unelevated-button .mat-mdc-button-touch-target{position:absolute;top:50%;height:var(--mat-button-filled-touch-target-size, 48px);display:var(--mat-button-filled-touch-target-display, block);left:0;right:0;transform:translateY(-50%)}.mat-mdc-unelevated-button:not(:disabled){color:var(--mat-button-filled-label-text-color, var(--mat-sys-on-primary));background-color:var(--mat-button-filled-container-color, var(--mat-sys-primary))}.mat-mdc-unelevated-button,.mat-mdc-unelevated-button .mdc-button__ripple{border-radius:var(--mat-button-filled-container-shape, var(--mat-sys-corner-full))}.mat-mdc-unelevated-button[disabled],.mat-mdc-unelevated-button.mat-mdc-button-disabled{cursor:default;pointer-events:none;color:var(--mat-button-filled-disabled-label-text-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent));background-color:var(--mat-button-filled-disabled-container-color, color-mix(in srgb, var(--mat-sys-on-surface) 12%, transparent))}.mat-mdc-unelevated-button.mat-mdc-button-disabled-interactive{pointer-events:auto}.mat-mdc-raised-button{transition:box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);box-shadow:var(--mat-button-protected-container-elevation-shadow, var(--mat-sys-level1));height:var(--mat-button-protected-container-height, 40px);font-family:var(--mat-button-protected-label-text-font, var(--mat-sys-label-large-font));font-size:var(--mat-button-protected-label-text-size, var(--mat-sys-label-large-size));letter-spacing:var(--mat-button-protected-label-text-tracking, var(--mat-sys-label-large-tracking));text-transform:var(--mat-button-protected-label-text-transform);font-weight:var(--mat-button-protected-label-text-weight, var(--mat-sys-label-large-weight));padding:0 var(--mat-button-protected-horizontal-padding, 24px)}.mat-mdc-raised-button>.mat-icon{margin-right:var(--mat-button-protected-icon-spacing, 8px);margin-left:var(--mat-button-protected-icon-offset, -8px)}[dir=rtl] .mat-mdc-raised-button>.mat-icon{margin-right:var(--mat-button-protected-icon-offset, -8px);margin-left:var(--mat-button-protected-icon-spacing, 8px)}.mat-mdc-raised-button .mdc-button__label+.mat-icon{margin-right:var(--mat-button-protected-icon-offset, -8px);margin-left:var(--mat-button-protected-icon-spacing, 8px)}[dir=rtl] .mat-mdc-raised-button .mdc-button__label+.mat-icon{margin-right:var(--mat-button-protected-icon-spacing, 8px);margin-left:var(--mat-button-protected-icon-offset, -8px)}.mat-mdc-raised-button .mat-ripple-element{background-color:var(--mat-button-protected-ripple-color, color-mix(in srgb, var(--mat-sys-primary) calc(var(--mat-sys-pressed-state-layer-opacity) * 100%), transparent))}.mat-mdc-raised-button .mat-mdc-button-persistent-ripple::before{background-color:var(--mat-button-protected-state-layer-color, var(--mat-sys-primary))}.mat-mdc-raised-button.mat-mdc-button-disabled .mat-mdc-button-persistent-ripple::before{background-color:var(--mat-button-protected-disabled-state-layer-color, var(--mat-sys-on-surface-variant))}.mat-mdc-raised-button:hover>.mat-mdc-button-persistent-ripple::before{opacity:var(--mat-button-protected-hover-state-layer-opacity, var(--mat-sys-hover-state-layer-opacity))}.mat-mdc-raised-button.cdk-program-focused>.mat-mdc-button-persistent-ripple::before,.mat-mdc-raised-button.cdk-keyboard-focused>.mat-mdc-button-persistent-ripple::before,.mat-mdc-raised-button.mat-mdc-button-disabled-interactive:focus>.mat-mdc-button-persistent-ripple::before{opacity:var(--mat-button-protected-focus-state-layer-opacity, var(--mat-sys-focus-state-layer-opacity))}.mat-mdc-raised-button:active>.mat-mdc-button-persistent-ripple::before{opacity:var(--mat-button-protected-pressed-state-layer-opacity, var(--mat-sys-pressed-state-layer-opacity))}.mat-mdc-raised-button .mat-mdc-button-touch-target{position:absolute;top:50%;height:var(--mat-button-protected-touch-target-size, 48px);display:var(--mat-button-protected-touch-target-display, block);left:0;right:0;transform:translateY(-50%)}.mat-mdc-raised-button:not(:disabled){color:var(--mat-button-protected-label-text-color, var(--mat-sys-primary));background-color:var(--mat-button-protected-container-color, var(--mat-sys-surface))}.mat-mdc-raised-button,.mat-mdc-raised-button .mdc-button__ripple{border-radius:var(--mat-button-protected-container-shape, var(--mat-sys-corner-full))}.mat-mdc-raised-button:hover{box-shadow:var(--mat-button-protected-hover-container-elevation-shadow, var(--mat-sys-level2))}.mat-mdc-raised-button:focus{box-shadow:var(--mat-button-protected-focus-container-elevation-shadow, var(--mat-sys-level1))}.mat-mdc-raised-button:active,.mat-mdc-raised-button:focus:active{box-shadow:var(--mat-button-protected-pressed-container-elevation-shadow, var(--mat-sys-level1))}.mat-mdc-raised-button[disabled],.mat-mdc-raised-button.mat-mdc-button-disabled{cursor:default;pointer-events:none;color:var(--mat-button-protected-disabled-label-text-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent));background-color:var(--mat-button-protected-disabled-container-color, color-mix(in srgb, var(--mat-sys-on-surface) 12%, transparent))}.mat-mdc-raised-button[disabled].mat-mdc-button-disabled,.mat-mdc-raised-button.mat-mdc-button-disabled.mat-mdc-button-disabled{box-shadow:var(--mat-button-protected-disabled-container-elevation-shadow, var(--mat-sys-level0))}.mat-mdc-raised-button.mat-mdc-button-disabled-interactive{pointer-events:auto}.mat-mdc-outlined-button{border-style:solid;transition:border 280ms cubic-bezier(0.4, 0, 0.2, 1);height:var(--mat-button-outlined-container-height, 40px);font-family:var(--mat-button-outlined-label-text-font, var(--mat-sys-label-large-font));font-size:var(--mat-button-outlined-label-text-size, var(--mat-sys-label-large-size));letter-spacing:var(--mat-button-outlined-label-text-tracking, var(--mat-sys-label-large-tracking));text-transform:var(--mat-button-outlined-label-text-transform);font-weight:var(--mat-button-outlined-label-text-weight, var(--mat-sys-label-large-weight));border-radius:var(--mat-button-outlined-container-shape, var(--mat-sys-corner-full));border-width:var(--mat-button-outlined-outline-width, 1px);padding:0 var(--mat-button-outlined-horizontal-padding, 24px)}.mat-mdc-outlined-button>.mat-icon{margin-right:var(--mat-button-outlined-icon-spacing, 8px);margin-left:var(--mat-button-outlined-icon-offset, -8px)}[dir=rtl] .mat-mdc-outlined-button>.mat-icon{margin-right:var(--mat-button-outlined-icon-offset, -8px);margin-left:var(--mat-button-outlined-icon-spacing, 8px)}.mat-mdc-outlined-button .mdc-button__label+.mat-icon{margin-right:var(--mat-button-outlined-icon-offset, -8px);margin-left:var(--mat-button-outlined-icon-spacing, 8px)}[dir=rtl] .mat-mdc-outlined-button .mdc-button__label+.mat-icon{margin-right:var(--mat-button-outlined-icon-spacing, 8px);margin-left:var(--mat-button-outlined-icon-offset, -8px)}.mat-mdc-outlined-button .mat-ripple-element{background-color:var(--mat-button-outlined-ripple-color, color-mix(in srgb, var(--mat-sys-primary) calc(var(--mat-sys-pressed-state-layer-opacity) * 100%), transparent))}.mat-mdc-outlined-button .mat-mdc-button-persistent-ripple::before{background-color:var(--mat-button-outlined-state-layer-color, var(--mat-sys-primary))}.mat-mdc-outlined-button.mat-mdc-button-disabled .mat-mdc-button-persistent-ripple::before{background-color:var(--mat-button-outlined-disabled-state-layer-color, var(--mat-sys-on-surface-variant))}.mat-mdc-outlined-button:hover>.mat-mdc-button-persistent-ripple::before{opacity:var(--mat-button-outlined-hover-state-layer-opacity, var(--mat-sys-hover-state-layer-opacity))}.mat-mdc-outlined-button.cdk-program-focused>.mat-mdc-button-persistent-ripple::before,.mat-mdc-outlined-button.cdk-keyboard-focused>.mat-mdc-button-persistent-ripple::before,.mat-mdc-outlined-button.mat-mdc-button-disabled-interactive:focus>.mat-mdc-button-persistent-ripple::before{opacity:var(--mat-button-outlined-focus-state-layer-opacity, var(--mat-sys-focus-state-layer-opacity))}.mat-mdc-outlined-button:active>.mat-mdc-button-persistent-ripple::before{opacity:var(--mat-button-outlined-pressed-state-layer-opacity, var(--mat-sys-pressed-state-layer-opacity))}.mat-mdc-outlined-button .mat-mdc-button-touch-target{position:absolute;top:50%;height:var(--mat-button-outlined-touch-target-size, 48px);display:var(--mat-button-outlined-touch-target-display, block);left:0;right:0;transform:translateY(-50%)}.mat-mdc-outlined-button:not(:disabled){color:var(--mat-button-outlined-label-text-color, var(--mat-sys-primary));border-color:var(--mat-button-outlined-outline-color, var(--mat-sys-outline))}.mat-mdc-outlined-button[disabled],.mat-mdc-outlined-button.mat-mdc-button-disabled{cursor:default;pointer-events:none;color:var(--mat-button-outlined-disabled-label-text-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent));border-color:var(--mat-button-outlined-disabled-outline-color, color-mix(in srgb, var(--mat-sys-on-surface) 12%, transparent))}.mat-mdc-outlined-button.mat-mdc-button-disabled-interactive{pointer-events:auto}.mat-tonal-button{transition:box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);height:var(--mat-button-tonal-container-height, 40px);font-family:var(--mat-button-tonal-label-text-font, var(--mat-sys-label-large-font));font-size:var(--mat-button-tonal-label-text-size, var(--mat-sys-label-large-size));letter-spacing:var(--mat-button-tonal-label-text-tracking, var(--mat-sys-label-large-tracking));text-transform:var(--mat-button-tonal-label-text-transform);font-weight:var(--mat-button-tonal-label-text-weight, var(--mat-sys-label-large-weight));padding:0 var(--mat-button-tonal-horizontal-padding, 24px)}.mat-tonal-button:not(:disabled){color:var(--mat-button-tonal-label-text-color, var(--mat-sys-on-secondary-container));background-color:var(--mat-button-tonal-container-color, var(--mat-sys-secondary-container))}.mat-tonal-button,.mat-tonal-button .mdc-button__ripple{border-radius:var(--mat-button-tonal-container-shape, var(--mat-sys-corner-full))}.mat-tonal-button[disabled],.mat-tonal-button.mat-mdc-button-disabled{cursor:default;pointer-events:none;color:var(--mat-button-tonal-disabled-label-text-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent));background-color:var(--mat-button-tonal-disabled-container-color, color-mix(in srgb, var(--mat-sys-on-surface) 12%, transparent))}.mat-tonal-button.mat-mdc-button-disabled-interactive{pointer-events:auto}.mat-tonal-button>.mat-icon{margin-right:var(--mat-button-tonal-icon-spacing, 8px);margin-left:var(--mat-button-tonal-icon-offset, -8px)}[dir=rtl] .mat-tonal-button>.mat-icon{margin-right:var(--mat-button-tonal-icon-offset, -8px);margin-left:var(--mat-button-tonal-icon-spacing, 8px)}.mat-tonal-button .mdc-button__label+.mat-icon{margin-right:var(--mat-button-tonal-icon-offset, -8px);margin-left:var(--mat-button-tonal-icon-spacing, 8px)}[dir=rtl] .mat-tonal-button .mdc-button__label+.mat-icon{margin-right:var(--mat-button-tonal-icon-spacing, 8px);margin-left:var(--mat-button-tonal-icon-offset, -8px)}.mat-tonal-button .mat-ripple-element{background-color:var(--mat-button-tonal-ripple-color, color-mix(in srgb, var(--mat-sys-on-secondary-container) calc(var(--mat-sys-pressed-state-layer-opacity) * 100%), transparent))}.mat-tonal-button .mat-mdc-button-persistent-ripple::before{background-color:var(--mat-button-tonal-state-layer-color, var(--mat-sys-on-secondary-container))}.mat-tonal-button.mat-mdc-button-disabled .mat-mdc-button-persistent-ripple::before{background-color:var(--mat-button-tonal-disabled-state-layer-color, var(--mat-sys-on-surface-variant))}.mat-tonal-button:hover>.mat-mdc-button-persistent-ripple::before{opacity:var(--mat-button-tonal-hover-state-layer-opacity, var(--mat-sys-hover-state-layer-opacity))}.mat-tonal-button.cdk-program-focused>.mat-mdc-button-persistent-ripple::before,.mat-tonal-button.cdk-keyboard-focused>.mat-mdc-button-persistent-ripple::before,.mat-tonal-button.mat-mdc-button-disabled-interactive:focus>.mat-mdc-button-persistent-ripple::before{opacity:var(--mat-button-tonal-focus-state-layer-opacity, var(--mat-sys-focus-state-layer-opacity))}.mat-tonal-button:active>.mat-mdc-button-persistent-ripple::before{opacity:var(--mat-button-tonal-pressed-state-layer-opacity, var(--mat-sys-pressed-state-layer-opacity))}.mat-tonal-button .mat-mdc-button-touch-target{position:absolute;top:50%;height:var(--mat-button-tonal-touch-target-size, 48px);display:var(--mat-button-tonal-touch-target-display, block);left:0;right:0;transform:translateY(-50%)}.mat-mdc-button,.mat-mdc-unelevated-button,.mat-mdc-raised-button,.mat-mdc-outlined-button,.mat-tonal-button{-webkit-tap-highlight-color:rgba(0,0,0,0)}.mat-mdc-button .mat-mdc-button-ripple,.mat-mdc-button .mat-mdc-button-persistent-ripple,.mat-mdc-button .mat-mdc-button-persistent-ripple::before,.mat-mdc-unelevated-button .mat-mdc-button-ripple,.mat-mdc-unelevated-button .mat-mdc-button-persistent-ripple,.mat-mdc-unelevated-button .mat-mdc-button-persistent-ripple::before,.mat-mdc-raised-button .mat-mdc-button-ripple,.mat-mdc-raised-button .mat-mdc-button-persistent-ripple,.mat-mdc-raised-button .mat-mdc-button-persistent-ripple::before,.mat-mdc-outlined-button .mat-mdc-button-ripple,.mat-mdc-outlined-button .mat-mdc-button-persistent-ripple,.mat-mdc-outlined-button .mat-mdc-button-persistent-ripple::before,.mat-tonal-button .mat-mdc-button-ripple,.mat-tonal-button .mat-mdc-button-persistent-ripple,.mat-tonal-button .mat-mdc-button-persistent-ripple::before{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none;border-radius:inherit}.mat-mdc-button .mat-mdc-button-ripple,.mat-mdc-unelevated-button .mat-mdc-button-ripple,.mat-mdc-raised-button .mat-mdc-button-ripple,.mat-mdc-outlined-button .mat-mdc-button-ripple,.mat-tonal-button .mat-mdc-button-ripple{overflow:hidden}.mat-mdc-button .mat-mdc-button-persistent-ripple::before,.mat-mdc-unelevated-button .mat-mdc-button-persistent-ripple::before,.mat-mdc-raised-button .mat-mdc-button-persistent-ripple::before,.mat-mdc-outlined-button .mat-mdc-button-persistent-ripple::before,.mat-tonal-button .mat-mdc-button-persistent-ripple::before{content:"";opacity:0}.mat-mdc-button .mdc-button__label,.mat-mdc-button .mat-icon,.mat-mdc-unelevated-button .mdc-button__label,.mat-mdc-unelevated-button .mat-icon,.mat-mdc-raised-button .mdc-button__label,.mat-mdc-raised-button .mat-icon,.mat-mdc-outlined-button .mdc-button__label,.mat-mdc-outlined-button .mat-icon,.mat-tonal-button .mdc-button__label,.mat-tonal-button .mat-icon{z-index:1;position:relative}.mat-mdc-button .mat-focus-indicator,.mat-mdc-unelevated-button .mat-focus-indicator,.mat-mdc-raised-button .mat-focus-indicator,.mat-mdc-outlined-button .mat-focus-indicator,.mat-tonal-button .mat-focus-indicator{top:0;left:0;right:0;bottom:0;position:absolute;border-radius:inherit}.mat-mdc-button:focus>.mat-focus-indicator::before,.mat-mdc-unelevated-button:focus>.mat-focus-indicator::before,.mat-mdc-raised-button:focus>.mat-focus-indicator::before,.mat-mdc-outlined-button:focus>.mat-focus-indicator::before,.mat-tonal-button:focus>.mat-focus-indicator::before{content:"";border-radius:inherit}.mat-mdc-button._mat-animation-noopable,.mat-mdc-unelevated-button._mat-animation-noopable,.mat-mdc-raised-button._mat-animation-noopable,.mat-mdc-outlined-button._mat-animation-noopable,.mat-tonal-button._mat-animation-noopable{transition:none !important;animation:none !important}.mat-mdc-button>.mat-icon,.mat-mdc-unelevated-button>.mat-icon,.mat-mdc-raised-button>.mat-icon,.mat-mdc-outlined-button>.mat-icon,.mat-tonal-button>.mat-icon{display:inline-block;position:relative;vertical-align:top;font-size:1.125rem;height:1.125rem;width:1.125rem}.mat-mdc-outlined-button .mat-mdc-button-ripple,.mat-mdc-outlined-button .mdc-button__ripple{top:-1px;left:-1px;bottom:-1px;right:-1px}.mat-mdc-unelevated-button .mat-focus-indicator::before,.mat-tonal-button .mat-focus-indicator::before,.mat-mdc-raised-button .mat-focus-indicator::before{margin:calc(calc(var(--mat-focus-indicator-border-width, 3px) + 2px)*-1)}.mat-mdc-outlined-button .mat-focus-indicator::before{margin:calc(calc(var(--mat-focus-indicator-border-width, 3px) + 3px)*-1)} +`],encapsulation:2,changeDetection:0})}return t})();var bee=["tooltip"],lS=20;var cS=new T("mat-tooltip-scroll-strategy",{providedIn:"root",factory:()=>{let t=u(de);return()=>wn(t,{scrollThrottle:lS})}});function JB(t){let n=u(de);return()=>wn(n,{scrollThrottle:lS})}var dS={provide:cS,deps:[],useFactory:JB};function e3(){return{showDelay:0,hideDelay:0,touchendHideDelay:1500}}var t3=new T("mat-tooltip-default-options",{providedIn:"root",factory:e3});var ZB="tooltip-panel",XB=rc({passive:!0}),vee=8,yee=8,xee=24,Cee=200,Eo=(()=>{class t{_elementRef=u(q);_ngZone=u(ae);_platform=u(qe);_ariaDescriber=u(Xm);_focusMonitor=u(Yt);_dir=u(Vt);_injector=u(de);_viewContainerRef=u(nt);_animationsDisabled=Ye();_defaultOptions=u(t3,{optional:!0});_overlayRef;_tooltipInstance;_overlayPanelClass;_portal;_position="below";_positionAtOrigin=!1;_disabled=!1;_tooltipClass;_viewInitialized=!1;_pointerExitEventsInitialized=!1;_tooltipComponent=i3;_viewportMargin=8;_currentPosition;_cssClassPrefix="mat-mdc";_ariaDescriptionPending;_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=Ai(e),this._detach(),this._overlayRef=null}get disabled(){return this._disabled}set disabled(e){let i=Ai(e);this._disabled!==i&&(this._disabled=i,i?this.hide(0):this._setupPointerEnterEventsIfNeeded(),this._syncAriaDescription(this.message))}get showDelay(){return this._showDelay}set showDelay(e){this._showDelay=Ln(e)}_showDelay;get hideDelay(){return this._hideDelay}set hideDelay(e){this._hideDelay=Ln(e),this._tooltipInstance&&(this._tooltipInstance._mouseLeaveHideDelay=this._hideDelay)}_hideDelay;touchGestures="auto";get message(){return this._message}set message(e){let i=this._message;this._message=e!=null?String(e).trim():"",!this._message&&this._isTooltipVisible()?this.hide(0):(this._setupPointerEnterEventsIfNeeded(),this._updateTooltipMessage()),this._syncAriaDescription(i)}_message="";get tooltipClass(){return this._tooltipClass}set tooltipClass(e){this._tooltipClass=e,this._tooltipInstance&&this._setTooltipClass(this._tooltipClass)}_passiveListeners=[];_touchstartTimeout=null;_destroyed=new z;_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=vee}ngAfterViewInit(){this._viewInitialized=!0,this._setupPointerEnterEventsIfNeeded(),this._focusMonitor.monitor(this._elementRef).pipe(Te(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._passiveListeners.forEach(([i,r])=>{e.removeEventListener(i,r,XB)}),this._passiveListeners.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,i){if(this.disabled||!this.message||this._isTooltipVisible()){this._tooltipInstance?._cancelPendingAnimations();return}let r=this._createOverlay(i);this._detach(),this._portal=this._portal||new Zr(this._tooltipComponent,this._viewContainerRef);let o=this._tooltipInstance=r.attach(this._portal).instance;o._triggerElement=this._elementRef.nativeElement,o._mouseLeaveHideDelay=this._hideDelay,o.afterHidden().pipe(Te(this._destroyed)).subscribe(()=>this._detach()),this._setTooltipClass(this._tooltipClass),this._updateTooltipMessage(),o.show(e)}hide(e=this.hideDelay){let i=this._tooltipInstance;i&&(i.isVisible()?i.hide(e):(i._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 a=this._overlayRef.getConfig().positionStrategy;if((!this.positionAtOrigin||!e)&&a._origin instanceof q)return this._overlayRef;this._detach()}let i=this._injector.get(ws).getAncestorScrollContainers(this._elementRef),r=`${this._cssClassPrefix}-${ZB}`,o=Fa(this._injector,this.positionAtOrigin?e||this._elementRef:this._elementRef).withTransformOriginOn(`.${this._cssClassPrefix}-tooltip`).withFlexibleDimensions(!1).withViewportMargin(this._viewportMargin).withScrollableContainers(i);return o.positionChanges.pipe(Te(this._destroyed)).subscribe(a=>{this._updateCurrentPositionClass(a.connectionPair),this._tooltipInstance&&a.scrollableViewProperties.isOverlayClipped&&this._tooltipInstance.isVisible()&&this._ngZone.run(()=>this.hide(0))}),this._overlayRef=Nr(this._injector,{direction:this._dir,positionStrategy:o,panelClass:this._overlayPanelClass?[...this._overlayPanelClass,r]:r,scrollStrategy:this._injector.get(cS)(),disableAnimations:this._animationsDisabled}),this._updatePosition(this._overlayRef),this._overlayRef.detachments().pipe(Te(this._destroyed)).subscribe(()=>this._detach()),this._overlayRef.outsidePointerEvents().pipe(Te(this._destroyed)).subscribe(()=>this._tooltipInstance?._handleBodyInteraction()),this._overlayRef.keydownEvents().pipe(Te(this._destroyed)).subscribe(a=>{this._isTooltipVisible()&&a.keyCode===27&&!Ft(a)&&(a.preventDefault(),a.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(Te(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 i=e.getConfig().positionStrategy,r=this._getOrigin(),o=this._getOverlayPosition();i.withPositions([this._addOffset(M(M({},r.main),o.main)),this._addOffset(M(M({},r.fallback),o.fallback))])}_addOffset(e){let i=yee,r=!this._dir||this._dir.value=="ltr";return e.originY==="top"?e.offsetY=-i:e.originY==="bottom"?e.offsetY=i:e.originX==="start"?e.offsetX=r?-i:i:e.originX==="end"&&(e.offsetX=r?i:-i),e}_getOrigin(){let e=!this._dir||this._dir.value=="ltr",i=this.position,r;i=="above"||i=="below"?r={originX:"center",originY:i=="above"?"top":"bottom"}:i=="before"||i=="left"&&e||i=="right"&&!e?r={originX:"start",originY:"center"}:(i=="after"||i=="right"&&e||i=="left"&&!e)&&(r={originX:"end",originY:"center"});let{x:o,y:a}=this._invertPosition(r.originX,r.originY);return{main:r,fallback:{originX:o,originY:a}}}_getOverlayPosition(){let e=!this._dir||this._dir.value=="ltr",i=this.position,r;i=="above"?r={overlayX:"center",overlayY:"bottom"}:i=="below"?r={overlayX:"center",overlayY:"top"}:i=="before"||i=="left"&&e||i=="right"&&!e?r={overlayX:"end",overlayY:"center"}:(i=="after"||i=="right"&&e||i=="left"&&!e)&&(r={overlayX:"start",overlayY:"center"});let{x:o,y:a}=this._invertPosition(r.overlayX,r.overlayY);return{main:r,fallback:{overlayX:o,overlayY:a}}}_updateTooltipMessage(){this._tooltipInstance&&(this._tooltipInstance.message=this.message,this._tooltipInstance._markForCheck(),pt(()=>{this._tooltipInstance&&this._overlayRef.updatePosition()},{injector:this._injector}))}_setTooltipClass(e){this._tooltipInstance&&(this._tooltipInstance.tooltipClass=e,this._tooltipInstance._markForCheck())}_invertPosition(e,i){return this.position==="above"||this.position==="below"?i==="top"?i="bottom":i==="bottom"&&(i="top"):e==="end"?e="start":e==="start"&&(e="end"),{x:e,y:i}}_updateCurrentPositionClass(e){let{overlayY:i,originX:r,originY:o}=e,a;if(i==="center"?this._dir&&this._dir.value==="rtl"?a=r==="end"?"left":"right":a=r==="start"?"left":"right":a=i==="bottom"&&o==="top"?"above":"below",a!==this._currentPosition){let s=this._overlayRef;if(s){let l=`${this._cssClassPrefix}-${ZB}-`;s.removePanelClass(l+this._currentPosition),s.addPanelClass(l+a)}this._currentPosition=a}}_setupPointerEnterEventsIfNeeded(){this._disabled||!this.message||!this._viewInitialized||this._passiveListeners.length||(this._platformSupportsMouseEvents()?this._passiveListeners.push(["mouseenter",e=>{this._setupPointerExitEventsIfNeeded();let i;e.x!==void 0&&e.y!==void 0&&(i=e),this.show(void 0,i)}]):this.touchGestures!=="off"&&(this._disableNativeGesturesIfNecessary(),this._passiveListeners.push(["touchstart",e=>{let i=e.targetTouches?.[0],r=i?{x:i.clientX,y:i.clientY}:void 0;this._setupPointerExitEventsIfNeeded(),this._touchstartTimeout&&clearTimeout(this._touchstartTimeout);let o=500;this._touchstartTimeout=setTimeout(()=>{this._touchstartTimeout=null,this.show(void 0,r)},this._defaultOptions?.touchLongPressShowDelay??o)}])),this._addListeners(this._passiveListeners))}_setupPointerExitEventsIfNeeded(){if(this._pointerExitEventsInitialized)return;this._pointerExitEventsInitialized=!0;let e=[];if(this._platformSupportsMouseEvents())e.push(["mouseleave",i=>{let r=i.relatedTarget;(!r||!this._overlayRef?.overlayElement.contains(r))&&this.hide()}],["wheel",i=>this._wheelListener(i)]);else if(this.touchGestures!=="off"){this._disableNativeGesturesIfNecessary();let i=()=>{this._touchstartTimeout&&clearTimeout(this._touchstartTimeout),this.hide(this._defaultOptions?.touchendHideDelay)};e.push(["touchend",i],["touchcancel",i])}this._addListeners(e),this._passiveListeners.push(...e)}_addListeners(e){e.forEach(([i,r])=>{this._elementRef.nativeElement.addEventListener(i,r,XB)})}_platformSupportsMouseEvents(){return!this._platform.IOS&&!this._platform.ANDROID}_wheelListener(e){if(this._isTooltipVisible()){let i=this._injector.get(ge).elementFromPoint(e.clientX,e.clientY),r=this._elementRef.nativeElement;i!==r&&!r.contains(i)&&this.hide()}}_disableNativeGesturesIfNecessary(){let e=this.touchGestures;if(e!=="off"){let i=this._elementRef.nativeElement,r=i.style;(e==="on"||i.nodeName!=="INPUT"&&i.nodeName!=="TEXTAREA")&&(r.userSelect=r.msUserSelect=r.webkitUserSelect=r.MozUserSelect="none"),(e==="on"||!i.draggable)&&(r.webkitUserDrag="none"),r.touchAction="none",r.webkitTapHighlightColor="transparent"}}_syncAriaDescription(e){this._ariaDescriptionPending||(this._ariaDescriptionPending=!0,this._ariaDescriber.removeDescription(this._elementRef.nativeElement,e,"tooltip"),this._isDestroyed||pt({write:()=>{this._ariaDescriptionPending=!1,this.message&&!this.disabled&&this._ariaDescriber.describe(this._elementRef.nativeElement,this.message,"tooltip")}},{injector:this._injector}))}static \u0275fac=function(i){return new(i||t)};static \u0275dir=F({type:t,selectors:[["","matTooltip",""]],hostAttrs:[1,"mat-mdc-tooltip-trigger"],hostVars:2,hostBindings:function(i,r){i&2&&G("mat-mdc-tooltip-disabled",r.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 t})(),i3=(()=>{class t{_changeDetectorRef=u(ye);_elementRef=u(q);_isMultiline=!1;message;tooltipClass;_showTimeoutId;_hideTimeoutId;_triggerElement;_mouseLeaveHideDelay;_animationsDisabled=Ye();_tooltip;_closeOnInteraction=!1;_isVisible=!1;_onHide=new z;_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>xee&&e.width>=Cee}_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 i=this._tooltip.nativeElement,r=this._showAnimation,o=this._hideAnimation;if(i.classList.remove(e?o:r),i.classList.add(e?r:o),this._isVisible!==e&&(this._isVisible=e,this._changeDetectorRef.markForCheck()),e&&!this._animationsDisabled&&typeof getComputedStyle=="function"){let a=getComputedStyle(i);(a.getPropertyValue("animation-duration")==="0s"||a.getPropertyValue("animation-name")==="none")&&(this._animationsDisabled=!0)}e&&this._onShow(),this._animationsDisabled&&(i.classList.add("_mat-animation-noopable"),this._finalizeAnimation(e))}static \u0275fac=function(i){return new(i||t)};static \u0275cmp=E({type:t,selectors:[["mat-tooltip-component"]],viewQuery:function(i,r){if(i&1&&ie(bee,7),i&2){let o;B(o=j())&&(r._tooltip=o.first)}},hostAttrs:["aria-hidden","true"],hostBindings:function(i,r){i&1&&S("mouseleave",function(a){return r._handleMouseLeave(a)})},decls:4,vars:4,consts:[["tooltip",""],[1,"mdc-tooltip","mat-mdc-tooltip",3,"animationend","ngClass"],[1,"mat-mdc-tooltip-surface","mdc-tooltip__surface"]],template:function(i,r){if(i&1){let o=Y();h(0,"div",1,0),S("animationend",function(s){return I(o),A(r._handleAnimationEnd(s))}),h(2,"div",2),_(3),p()()}i&2&&(G("mdc-tooltip--multiline",r._isMultiline),y("ngClass",r.tooltipClass),g(3),H(r.message))},dependencies:[Pd],styles:[`.mat-mdc-tooltip{position:relative;transform:scale(0);display:inline-flex}.mat-mdc-tooltip::before{content:"";top:0;right:0;bottom:0;left:0;z-index:-1;position:absolute}.mat-mdc-tooltip-panel-below .mat-mdc-tooltip::before{top:-8px}.mat-mdc-tooltip-panel-above .mat-mdc-tooltip::before{bottom:-8px}.mat-mdc-tooltip-panel-right .mat-mdc-tooltip::before{left:-8px}.mat-mdc-tooltip-panel-left .mat-mdc-tooltip::before{right:-8px}.mat-mdc-tooltip._mat-animation-noopable{animation:none;transform:scale(1)}.mat-mdc-tooltip-surface{word-break:normal;overflow-wrap:anywhere;padding:4px 8px;min-width:40px;max-width:200px;min-height:24px;max-height:40vh;box-sizing:border-box;overflow:hidden;text-align:center;will-change:transform,opacity;background-color:var(--mat-tooltip-container-color, var(--mat-sys-inverse-surface));color:var(--mat-tooltip-supporting-text-color, var(--mat-sys-inverse-on-surface));border-radius:var(--mat-tooltip-container-shape, var(--mat-sys-corner-extra-small));font-family:var(--mat-tooltip-supporting-text-font, var(--mat-sys-body-small-font));font-size:var(--mat-tooltip-supporting-text-size, var(--mat-sys-body-small-size));font-weight:var(--mat-tooltip-supporting-text-weight, var(--mat-sys-body-small-weight));line-height:var(--mat-tooltip-supporting-text-line-height, var(--mat-sys-body-small-line-height));letter-spacing:var(--mat-tooltip-supporting-text-tracking, var(--mat-sys-body-small-tracking))}.mat-mdc-tooltip-surface::before{position:absolute;box-sizing:border-box;width:100%;height:100%;top:0;left:0;border:1px solid rgba(0,0,0,0);border-radius:inherit;content:"";pointer-events:none}.mdc-tooltip--multiline .mat-mdc-tooltip-surface{text-align:left}[dir=rtl] .mdc-tooltip--multiline .mat-mdc-tooltip-surface{text-align:right}.mat-mdc-tooltip-panel{line-height:normal}.mat-mdc-tooltip-panel.mat-mdc-tooltip-panel-non-interactive{pointer-events:none}@keyframes mat-mdc-tooltip-show{0%{opacity:0;transform:scale(0.8)}100%{opacity:1;transform:scale(1)}}@keyframes mat-mdc-tooltip-hide{0%{opacity:1;transform:scale(1)}100%{opacity:0;transform:scale(0.8)}}.mat-mdc-tooltip-show{animation:mat-mdc-tooltip-show 150ms cubic-bezier(0, 0, 0.2, 1) forwards}.mat-mdc-tooltip-hide{animation:mat-mdc-tooltip-hide 75ms cubic-bezier(0.4, 0, 1, 1) forwards} +`],encapsulation:2,changeDetection:0})}return t})();var Br=(()=>{class t{static \u0275fac=function(i){return new(i||t)};static \u0275mod=ee({type:t});static \u0275inj=J({providers:[dS],imports:[ll,er,we,we,vr]})}return t})();var wee=["matButton",""],Dee=[[["",8,"material-icons",3,"iconPositionEnd",""],["mat-icon",3,"iconPositionEnd",""],["","matButtonIcon","",3,"iconPositionEnd",""]],"*",[["","iconPositionEnd","",8,"material-icons"],["mat-icon","iconPositionEnd",""],["","matButtonIcon","","iconPositionEnd",""]]],Eee=[".material-icons:not([iconPositionEnd]), mat-icon:not([iconPositionEnd]), [matButtonIcon]:not([iconPositionEnd])","*",".material-icons[iconPositionEnd], mat-icon[iconPositionEnd], [matButtonIcon][iconPositionEnd]"];var n3=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"]]]),kt=(()=>{class t extends sS{get appearance(){return this._appearance}set appearance(e){this.setAppearance(e||this._config?.defaultAppearance||"text")}_appearance=null;constructor(){super();let e=Mee(this._elementRef.nativeElement);e&&this.setAppearance(e)}setAppearance(e){if(e===this._appearance)return;let i=this._elementRef.nativeElement.classList,r=this._appearance?n3.get(this._appearance):null,o=n3.get(e);r&&i.remove(...r),i.add(...o),this._appearance=e}static \u0275fac=function(i){return new(i||t)};static \u0275cmp=E({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:[le],attrs:wee,ngContentSelectors:Eee,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(i,r){i&1&&(Me(Dee),ai(0,"span",0),oe(1),ft(2,"span",1),oe(3,1),vt(),oe(4,2),ai(5,"span",2)(6,"span",3)),i&2&&G("mdc-button__ripple",!r._isFab)("mdc-fab__ripple",r._isFab)},styles:[`.mat-mdc-button-base{text-decoration:none}.mat-mdc-button-base .mat-icon{min-height:fit-content;flex-shrink:0}.mdc-button{-webkit-user-select:none;user-select:none;position:relative;display:inline-flex;align-items:center;justify-content:center;box-sizing:border-box;min-width:64px;border:none;outline:none;line-height:inherit;-webkit-appearance:none;overflow:visible;vertical-align:middle;background:rgba(0,0,0,0);padding:0 8px}.mdc-button::-moz-focus-inner{padding:0;border:0}.mdc-button:active{outline:none}.mdc-button:hover{cursor:pointer}.mdc-button:disabled{cursor:default;pointer-events:none}.mdc-button[hidden]{display:none}.mdc-button .mdc-button__label{position:relative}.mat-mdc-button{padding:0 var(--mat-button-text-horizontal-padding, 12px);height:var(--mat-button-text-container-height, 40px);font-family:var(--mat-button-text-label-text-font, var(--mat-sys-label-large-font));font-size:var(--mat-button-text-label-text-size, var(--mat-sys-label-large-size));letter-spacing:var(--mat-button-text-label-text-tracking, var(--mat-sys-label-large-tracking));text-transform:var(--mat-button-text-label-text-transform);font-weight:var(--mat-button-text-label-text-weight, var(--mat-sys-label-large-weight))}.mat-mdc-button,.mat-mdc-button .mdc-button__ripple{border-radius:var(--mat-button-text-container-shape, var(--mat-sys-corner-full))}.mat-mdc-button:not(:disabled){color:var(--mat-button-text-label-text-color, var(--mat-sys-primary))}.mat-mdc-button[disabled],.mat-mdc-button.mat-mdc-button-disabled{cursor:default;pointer-events:none;color:var(--mat-button-text-disabled-label-text-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent))}.mat-mdc-button.mat-mdc-button-disabled-interactive{pointer-events:auto}.mat-mdc-button:has(.material-icons,mat-icon,[matButtonIcon]){padding:0 var(--mat-button-text-with-icon-horizontal-padding, 16px)}.mat-mdc-button>.mat-icon{margin-right:var(--mat-button-text-icon-spacing, 8px);margin-left:var(--mat-button-text-icon-offset, -4px)}[dir=rtl] .mat-mdc-button>.mat-icon{margin-right:var(--mat-button-text-icon-offset, -4px);margin-left:var(--mat-button-text-icon-spacing, 8px)}.mat-mdc-button .mdc-button__label+.mat-icon{margin-right:var(--mat-button-text-icon-offset, -4px);margin-left:var(--mat-button-text-icon-spacing, 8px)}[dir=rtl] .mat-mdc-button .mdc-button__label+.mat-icon{margin-right:var(--mat-button-text-icon-spacing, 8px);margin-left:var(--mat-button-text-icon-offset, -4px)}.mat-mdc-button .mat-ripple-element{background-color:var(--mat-button-text-ripple-color, color-mix(in srgb, var(--mat-sys-primary) calc(var(--mat-sys-pressed-state-layer-opacity) * 100%), transparent))}.mat-mdc-button .mat-mdc-button-persistent-ripple::before{background-color:var(--mat-button-text-state-layer-color, var(--mat-sys-primary))}.mat-mdc-button.mat-mdc-button-disabled .mat-mdc-button-persistent-ripple::before{background-color:var(--mat-button-text-disabled-state-layer-color, var(--mat-sys-on-surface-variant))}.mat-mdc-button:hover>.mat-mdc-button-persistent-ripple::before{opacity:var(--mat-button-text-hover-state-layer-opacity, var(--mat-sys-hover-state-layer-opacity))}.mat-mdc-button.cdk-program-focused>.mat-mdc-button-persistent-ripple::before,.mat-mdc-button.cdk-keyboard-focused>.mat-mdc-button-persistent-ripple::before,.mat-mdc-button.mat-mdc-button-disabled-interactive:focus>.mat-mdc-button-persistent-ripple::before{opacity:var(--mat-button-text-focus-state-layer-opacity, var(--mat-sys-focus-state-layer-opacity))}.mat-mdc-button:active>.mat-mdc-button-persistent-ripple::before{opacity:var(--mat-button-text-pressed-state-layer-opacity, var(--mat-sys-pressed-state-layer-opacity))}.mat-mdc-button .mat-mdc-button-touch-target{position:absolute;top:50%;height:var(--mat-button-text-touch-target-size, 48px);display:var(--mat-button-text-touch-target-display, block);left:0;right:0;transform:translateY(-50%)}.mat-mdc-unelevated-button{transition:box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);height:var(--mat-button-filled-container-height, 40px);font-family:var(--mat-button-filled-label-text-font, var(--mat-sys-label-large-font));font-size:var(--mat-button-filled-label-text-size, var(--mat-sys-label-large-size));letter-spacing:var(--mat-button-filled-label-text-tracking, var(--mat-sys-label-large-tracking));text-transform:var(--mat-button-filled-label-text-transform);font-weight:var(--mat-button-filled-label-text-weight, var(--mat-sys-label-large-weight));padding:0 var(--mat-button-filled-horizontal-padding, 24px)}.mat-mdc-unelevated-button>.mat-icon{margin-right:var(--mat-button-filled-icon-spacing, 8px);margin-left:var(--mat-button-filled-icon-offset, -8px)}[dir=rtl] .mat-mdc-unelevated-button>.mat-icon{margin-right:var(--mat-button-filled-icon-offset, -8px);margin-left:var(--mat-button-filled-icon-spacing, 8px)}.mat-mdc-unelevated-button .mdc-button__label+.mat-icon{margin-right:var(--mat-button-filled-icon-offset, -8px);margin-left:var(--mat-button-filled-icon-spacing, 8px)}[dir=rtl] .mat-mdc-unelevated-button .mdc-button__label+.mat-icon{margin-right:var(--mat-button-filled-icon-spacing, 8px);margin-left:var(--mat-button-filled-icon-offset, -8px)}.mat-mdc-unelevated-button .mat-ripple-element{background-color:var(--mat-button-filled-ripple-color, color-mix(in srgb, var(--mat-sys-on-primary) calc(var(--mat-sys-pressed-state-layer-opacity) * 100%), transparent))}.mat-mdc-unelevated-button .mat-mdc-button-persistent-ripple::before{background-color:var(--mat-button-filled-state-layer-color, var(--mat-sys-on-primary))}.mat-mdc-unelevated-button.mat-mdc-button-disabled .mat-mdc-button-persistent-ripple::before{background-color:var(--mat-button-filled-disabled-state-layer-color, var(--mat-sys-on-surface-variant))}.mat-mdc-unelevated-button:hover>.mat-mdc-button-persistent-ripple::before{opacity:var(--mat-button-filled-hover-state-layer-opacity, var(--mat-sys-hover-state-layer-opacity))}.mat-mdc-unelevated-button.cdk-program-focused>.mat-mdc-button-persistent-ripple::before,.mat-mdc-unelevated-button.cdk-keyboard-focused>.mat-mdc-button-persistent-ripple::before,.mat-mdc-unelevated-button.mat-mdc-button-disabled-interactive:focus>.mat-mdc-button-persistent-ripple::before{opacity:var(--mat-button-filled-focus-state-layer-opacity, var(--mat-sys-focus-state-layer-opacity))}.mat-mdc-unelevated-button:active>.mat-mdc-button-persistent-ripple::before{opacity:var(--mat-button-filled-pressed-state-layer-opacity, var(--mat-sys-pressed-state-layer-opacity))}.mat-mdc-unelevated-button .mat-mdc-button-touch-target{position:absolute;top:50%;height:var(--mat-button-filled-touch-target-size, 48px);display:var(--mat-button-filled-touch-target-display, block);left:0;right:0;transform:translateY(-50%)}.mat-mdc-unelevated-button:not(:disabled){color:var(--mat-button-filled-label-text-color, var(--mat-sys-on-primary));background-color:var(--mat-button-filled-container-color, var(--mat-sys-primary))}.mat-mdc-unelevated-button,.mat-mdc-unelevated-button .mdc-button__ripple{border-radius:var(--mat-button-filled-container-shape, var(--mat-sys-corner-full))}.mat-mdc-unelevated-button[disabled],.mat-mdc-unelevated-button.mat-mdc-button-disabled{cursor:default;pointer-events:none;color:var(--mat-button-filled-disabled-label-text-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent));background-color:var(--mat-button-filled-disabled-container-color, color-mix(in srgb, var(--mat-sys-on-surface) 12%, transparent))}.mat-mdc-unelevated-button.mat-mdc-button-disabled-interactive{pointer-events:auto}.mat-mdc-raised-button{transition:box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);box-shadow:var(--mat-button-protected-container-elevation-shadow, var(--mat-sys-level1));height:var(--mat-button-protected-container-height, 40px);font-family:var(--mat-button-protected-label-text-font, var(--mat-sys-label-large-font));font-size:var(--mat-button-protected-label-text-size, var(--mat-sys-label-large-size));letter-spacing:var(--mat-button-protected-label-text-tracking, var(--mat-sys-label-large-tracking));text-transform:var(--mat-button-protected-label-text-transform);font-weight:var(--mat-button-protected-label-text-weight, var(--mat-sys-label-large-weight));padding:0 var(--mat-button-protected-horizontal-padding, 24px)}.mat-mdc-raised-button>.mat-icon{margin-right:var(--mat-button-protected-icon-spacing, 8px);margin-left:var(--mat-button-protected-icon-offset, -8px)}[dir=rtl] .mat-mdc-raised-button>.mat-icon{margin-right:var(--mat-button-protected-icon-offset, -8px);margin-left:var(--mat-button-protected-icon-spacing, 8px)}.mat-mdc-raised-button .mdc-button__label+.mat-icon{margin-right:var(--mat-button-protected-icon-offset, -8px);margin-left:var(--mat-button-protected-icon-spacing, 8px)}[dir=rtl] .mat-mdc-raised-button .mdc-button__label+.mat-icon{margin-right:var(--mat-button-protected-icon-spacing, 8px);margin-left:var(--mat-button-protected-icon-offset, -8px)}.mat-mdc-raised-button .mat-ripple-element{background-color:var(--mat-button-protected-ripple-color, color-mix(in srgb, var(--mat-sys-primary) calc(var(--mat-sys-pressed-state-layer-opacity) * 100%), transparent))}.mat-mdc-raised-button .mat-mdc-button-persistent-ripple::before{background-color:var(--mat-button-protected-state-layer-color, var(--mat-sys-primary))}.mat-mdc-raised-button.mat-mdc-button-disabled .mat-mdc-button-persistent-ripple::before{background-color:var(--mat-button-protected-disabled-state-layer-color, var(--mat-sys-on-surface-variant))}.mat-mdc-raised-button:hover>.mat-mdc-button-persistent-ripple::before{opacity:var(--mat-button-protected-hover-state-layer-opacity, var(--mat-sys-hover-state-layer-opacity))}.mat-mdc-raised-button.cdk-program-focused>.mat-mdc-button-persistent-ripple::before,.mat-mdc-raised-button.cdk-keyboard-focused>.mat-mdc-button-persistent-ripple::before,.mat-mdc-raised-button.mat-mdc-button-disabled-interactive:focus>.mat-mdc-button-persistent-ripple::before{opacity:var(--mat-button-protected-focus-state-layer-opacity, var(--mat-sys-focus-state-layer-opacity))}.mat-mdc-raised-button:active>.mat-mdc-button-persistent-ripple::before{opacity:var(--mat-button-protected-pressed-state-layer-opacity, var(--mat-sys-pressed-state-layer-opacity))}.mat-mdc-raised-button .mat-mdc-button-touch-target{position:absolute;top:50%;height:var(--mat-button-protected-touch-target-size, 48px);display:var(--mat-button-protected-touch-target-display, block);left:0;right:0;transform:translateY(-50%)}.mat-mdc-raised-button:not(:disabled){color:var(--mat-button-protected-label-text-color, var(--mat-sys-primary));background-color:var(--mat-button-protected-container-color, var(--mat-sys-surface))}.mat-mdc-raised-button,.mat-mdc-raised-button .mdc-button__ripple{border-radius:var(--mat-button-protected-container-shape, var(--mat-sys-corner-full))}.mat-mdc-raised-button:hover{box-shadow:var(--mat-button-protected-hover-container-elevation-shadow, var(--mat-sys-level2))}.mat-mdc-raised-button:focus{box-shadow:var(--mat-button-protected-focus-container-elevation-shadow, var(--mat-sys-level1))}.mat-mdc-raised-button:active,.mat-mdc-raised-button:focus:active{box-shadow:var(--mat-button-protected-pressed-container-elevation-shadow, var(--mat-sys-level1))}.mat-mdc-raised-button[disabled],.mat-mdc-raised-button.mat-mdc-button-disabled{cursor:default;pointer-events:none;color:var(--mat-button-protected-disabled-label-text-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent));background-color:var(--mat-button-protected-disabled-container-color, color-mix(in srgb, var(--mat-sys-on-surface) 12%, transparent))}.mat-mdc-raised-button[disabled].mat-mdc-button-disabled,.mat-mdc-raised-button.mat-mdc-button-disabled.mat-mdc-button-disabled{box-shadow:var(--mat-button-protected-disabled-container-elevation-shadow, var(--mat-sys-level0))}.mat-mdc-raised-button.mat-mdc-button-disabled-interactive{pointer-events:auto}.mat-mdc-outlined-button{border-style:solid;transition:border 280ms cubic-bezier(0.4, 0, 0.2, 1);height:var(--mat-button-outlined-container-height, 40px);font-family:var(--mat-button-outlined-label-text-font, var(--mat-sys-label-large-font));font-size:var(--mat-button-outlined-label-text-size, var(--mat-sys-label-large-size));letter-spacing:var(--mat-button-outlined-label-text-tracking, var(--mat-sys-label-large-tracking));text-transform:var(--mat-button-outlined-label-text-transform);font-weight:var(--mat-button-outlined-label-text-weight, var(--mat-sys-label-large-weight));border-radius:var(--mat-button-outlined-container-shape, var(--mat-sys-corner-full));border-width:var(--mat-button-outlined-outline-width, 1px);padding:0 var(--mat-button-outlined-horizontal-padding, 24px)}.mat-mdc-outlined-button>.mat-icon{margin-right:var(--mat-button-outlined-icon-spacing, 8px);margin-left:var(--mat-button-outlined-icon-offset, -8px)}[dir=rtl] .mat-mdc-outlined-button>.mat-icon{margin-right:var(--mat-button-outlined-icon-offset, -8px);margin-left:var(--mat-button-outlined-icon-spacing, 8px)}.mat-mdc-outlined-button .mdc-button__label+.mat-icon{margin-right:var(--mat-button-outlined-icon-offset, -8px);margin-left:var(--mat-button-outlined-icon-spacing, 8px)}[dir=rtl] .mat-mdc-outlined-button .mdc-button__label+.mat-icon{margin-right:var(--mat-button-outlined-icon-spacing, 8px);margin-left:var(--mat-button-outlined-icon-offset, -8px)}.mat-mdc-outlined-button .mat-ripple-element{background-color:var(--mat-button-outlined-ripple-color, color-mix(in srgb, var(--mat-sys-primary) calc(var(--mat-sys-pressed-state-layer-opacity) * 100%), transparent))}.mat-mdc-outlined-button .mat-mdc-button-persistent-ripple::before{background-color:var(--mat-button-outlined-state-layer-color, var(--mat-sys-primary))}.mat-mdc-outlined-button.mat-mdc-button-disabled .mat-mdc-button-persistent-ripple::before{background-color:var(--mat-button-outlined-disabled-state-layer-color, var(--mat-sys-on-surface-variant))}.mat-mdc-outlined-button:hover>.mat-mdc-button-persistent-ripple::before{opacity:var(--mat-button-outlined-hover-state-layer-opacity, var(--mat-sys-hover-state-layer-opacity))}.mat-mdc-outlined-button.cdk-program-focused>.mat-mdc-button-persistent-ripple::before,.mat-mdc-outlined-button.cdk-keyboard-focused>.mat-mdc-button-persistent-ripple::before,.mat-mdc-outlined-button.mat-mdc-button-disabled-interactive:focus>.mat-mdc-button-persistent-ripple::before{opacity:var(--mat-button-outlined-focus-state-layer-opacity, var(--mat-sys-focus-state-layer-opacity))}.mat-mdc-outlined-button:active>.mat-mdc-button-persistent-ripple::before{opacity:var(--mat-button-outlined-pressed-state-layer-opacity, var(--mat-sys-pressed-state-layer-opacity))}.mat-mdc-outlined-button .mat-mdc-button-touch-target{position:absolute;top:50%;height:var(--mat-button-outlined-touch-target-size, 48px);display:var(--mat-button-outlined-touch-target-display, block);left:0;right:0;transform:translateY(-50%)}.mat-mdc-outlined-button:not(:disabled){color:var(--mat-button-outlined-label-text-color, var(--mat-sys-primary));border-color:var(--mat-button-outlined-outline-color, var(--mat-sys-outline))}.mat-mdc-outlined-button[disabled],.mat-mdc-outlined-button.mat-mdc-button-disabled{cursor:default;pointer-events:none;color:var(--mat-button-outlined-disabled-label-text-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent));border-color:var(--mat-button-outlined-disabled-outline-color, color-mix(in srgb, var(--mat-sys-on-surface) 12%, transparent))}.mat-mdc-outlined-button.mat-mdc-button-disabled-interactive{pointer-events:auto}.mat-tonal-button{transition:box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);height:var(--mat-button-tonal-container-height, 40px);font-family:var(--mat-button-tonal-label-text-font, var(--mat-sys-label-large-font));font-size:var(--mat-button-tonal-label-text-size, var(--mat-sys-label-large-size));letter-spacing:var(--mat-button-tonal-label-text-tracking, var(--mat-sys-label-large-tracking));text-transform:var(--mat-button-tonal-label-text-transform);font-weight:var(--mat-button-tonal-label-text-weight, var(--mat-sys-label-large-weight));padding:0 var(--mat-button-tonal-horizontal-padding, 24px)}.mat-tonal-button:not(:disabled){color:var(--mat-button-tonal-label-text-color, var(--mat-sys-on-secondary-container));background-color:var(--mat-button-tonal-container-color, var(--mat-sys-secondary-container))}.mat-tonal-button,.mat-tonal-button .mdc-button__ripple{border-radius:var(--mat-button-tonal-container-shape, var(--mat-sys-corner-full))}.mat-tonal-button[disabled],.mat-tonal-button.mat-mdc-button-disabled{cursor:default;pointer-events:none;color:var(--mat-button-tonal-disabled-label-text-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent));background-color:var(--mat-button-tonal-disabled-container-color, color-mix(in srgb, var(--mat-sys-on-surface) 12%, transparent))}.mat-tonal-button.mat-mdc-button-disabled-interactive{pointer-events:auto}.mat-tonal-button>.mat-icon{margin-right:var(--mat-button-tonal-icon-spacing, 8px);margin-left:var(--mat-button-tonal-icon-offset, -8px)}[dir=rtl] .mat-tonal-button>.mat-icon{margin-right:var(--mat-button-tonal-icon-offset, -8px);margin-left:var(--mat-button-tonal-icon-spacing, 8px)}.mat-tonal-button .mdc-button__label+.mat-icon{margin-right:var(--mat-button-tonal-icon-offset, -8px);margin-left:var(--mat-button-tonal-icon-spacing, 8px)}[dir=rtl] .mat-tonal-button .mdc-button__label+.mat-icon{margin-right:var(--mat-button-tonal-icon-spacing, 8px);margin-left:var(--mat-button-tonal-icon-offset, -8px)}.mat-tonal-button .mat-ripple-element{background-color:var(--mat-button-tonal-ripple-color, color-mix(in srgb, var(--mat-sys-on-secondary-container) calc(var(--mat-sys-pressed-state-layer-opacity) * 100%), transparent))}.mat-tonal-button .mat-mdc-button-persistent-ripple::before{background-color:var(--mat-button-tonal-state-layer-color, var(--mat-sys-on-secondary-container))}.mat-tonal-button.mat-mdc-button-disabled .mat-mdc-button-persistent-ripple::before{background-color:var(--mat-button-tonal-disabled-state-layer-color, var(--mat-sys-on-surface-variant))}.mat-tonal-button:hover>.mat-mdc-button-persistent-ripple::before{opacity:var(--mat-button-tonal-hover-state-layer-opacity, var(--mat-sys-hover-state-layer-opacity))}.mat-tonal-button.cdk-program-focused>.mat-mdc-button-persistent-ripple::before,.mat-tonal-button.cdk-keyboard-focused>.mat-mdc-button-persistent-ripple::before,.mat-tonal-button.mat-mdc-button-disabled-interactive:focus>.mat-mdc-button-persistent-ripple::before{opacity:var(--mat-button-tonal-focus-state-layer-opacity, var(--mat-sys-focus-state-layer-opacity))}.mat-tonal-button:active>.mat-mdc-button-persistent-ripple::before{opacity:var(--mat-button-tonal-pressed-state-layer-opacity, var(--mat-sys-pressed-state-layer-opacity))}.mat-tonal-button .mat-mdc-button-touch-target{position:absolute;top:50%;height:var(--mat-button-tonal-touch-target-size, 48px);display:var(--mat-button-tonal-touch-target-display, block);left:0;right:0;transform:translateY(-50%)}.mat-mdc-button,.mat-mdc-unelevated-button,.mat-mdc-raised-button,.mat-mdc-outlined-button,.mat-tonal-button{-webkit-tap-highlight-color:rgba(0,0,0,0)}.mat-mdc-button .mat-mdc-button-ripple,.mat-mdc-button .mat-mdc-button-persistent-ripple,.mat-mdc-button .mat-mdc-button-persistent-ripple::before,.mat-mdc-unelevated-button .mat-mdc-button-ripple,.mat-mdc-unelevated-button .mat-mdc-button-persistent-ripple,.mat-mdc-unelevated-button .mat-mdc-button-persistent-ripple::before,.mat-mdc-raised-button .mat-mdc-button-ripple,.mat-mdc-raised-button .mat-mdc-button-persistent-ripple,.mat-mdc-raised-button .mat-mdc-button-persistent-ripple::before,.mat-mdc-outlined-button .mat-mdc-button-ripple,.mat-mdc-outlined-button .mat-mdc-button-persistent-ripple,.mat-mdc-outlined-button .mat-mdc-button-persistent-ripple::before,.mat-tonal-button .mat-mdc-button-ripple,.mat-tonal-button .mat-mdc-button-persistent-ripple,.mat-tonal-button .mat-mdc-button-persistent-ripple::before{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none;border-radius:inherit}.mat-mdc-button .mat-mdc-button-ripple,.mat-mdc-unelevated-button .mat-mdc-button-ripple,.mat-mdc-raised-button .mat-mdc-button-ripple,.mat-mdc-outlined-button .mat-mdc-button-ripple,.mat-tonal-button .mat-mdc-button-ripple{overflow:hidden}.mat-mdc-button .mat-mdc-button-persistent-ripple::before,.mat-mdc-unelevated-button .mat-mdc-button-persistent-ripple::before,.mat-mdc-raised-button .mat-mdc-button-persistent-ripple::before,.mat-mdc-outlined-button .mat-mdc-button-persistent-ripple::before,.mat-tonal-button .mat-mdc-button-persistent-ripple::before{content:"";opacity:0}.mat-mdc-button .mdc-button__label,.mat-mdc-button .mat-icon,.mat-mdc-unelevated-button .mdc-button__label,.mat-mdc-unelevated-button .mat-icon,.mat-mdc-raised-button .mdc-button__label,.mat-mdc-raised-button .mat-icon,.mat-mdc-outlined-button .mdc-button__label,.mat-mdc-outlined-button .mat-icon,.mat-tonal-button .mdc-button__label,.mat-tonal-button .mat-icon{z-index:1;position:relative}.mat-mdc-button .mat-focus-indicator,.mat-mdc-unelevated-button .mat-focus-indicator,.mat-mdc-raised-button .mat-focus-indicator,.mat-mdc-outlined-button .mat-focus-indicator,.mat-tonal-button .mat-focus-indicator{top:0;left:0;right:0;bottom:0;position:absolute;border-radius:inherit}.mat-mdc-button:focus>.mat-focus-indicator::before,.mat-mdc-unelevated-button:focus>.mat-focus-indicator::before,.mat-mdc-raised-button:focus>.mat-focus-indicator::before,.mat-mdc-outlined-button:focus>.mat-focus-indicator::before,.mat-tonal-button:focus>.mat-focus-indicator::before{content:"";border-radius:inherit}.mat-mdc-button._mat-animation-noopable,.mat-mdc-unelevated-button._mat-animation-noopable,.mat-mdc-raised-button._mat-animation-noopable,.mat-mdc-outlined-button._mat-animation-noopable,.mat-tonal-button._mat-animation-noopable{transition:none !important;animation:none !important}.mat-mdc-button>.mat-icon,.mat-mdc-unelevated-button>.mat-icon,.mat-mdc-raised-button>.mat-icon,.mat-mdc-outlined-button>.mat-icon,.mat-tonal-button>.mat-icon{display:inline-block;position:relative;vertical-align:top;font-size:1.125rem;height:1.125rem;width:1.125rem}.mat-mdc-outlined-button .mat-mdc-button-ripple,.mat-mdc-outlined-button .mdc-button__ripple{top:-1px;left:-1px;bottom:-1px;right:-1px}.mat-mdc-unelevated-button .mat-focus-indicator::before,.mat-tonal-button .mat-focus-indicator::before,.mat-mdc-raised-button .mat-focus-indicator::before{margin:calc(calc(var(--mat-focus-indicator-border-width, 3px) + 2px)*-1)}.mat-mdc-outlined-button .mat-focus-indicator::before{margin:calc(calc(var(--mat-focus-indicator-border-width, 3px) + 3px)*-1)} `,`@media(forced-colors: active){.mat-mdc-button:not(.mdc-button--outlined),.mat-mdc-unelevated-button:not(.mdc-button--outlined),.mat-mdc-raised-button:not(.mdc-button--outlined),.mat-mdc-outlined-button:not(.mdc-button--outlined),.mat-mdc-button-base.mat-tonal-button,.mat-mdc-icon-button.mat-mdc-icon-button,.mat-mdc-outlined-button .mdc-button__ripple{outline:solid 1px}} -`],encapsulation:2,changeDetection:0})}return t})();function Eee(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 ze=(()=>{class t{static \u0275fac=function(i){return new(i||t)};static \u0275mod=ee({type:t});static \u0275inj=J({imports:[we,yo,we]})}return t})();function Mee(t,n){if(t&1&&(h(0,"mat-option",17),_(1),p()),t&2){let e=n.$implicit;y("value",e),g(),ve(" ",e," ")}}function kee(t,n){if(t&1){let e=Y();h(0,"mat-form-field",14)(1,"mat-select",16,0),S("selectionChange",function(r){I(e);let o=C(2);return A(o._changePageSize(r.value))}),xt(3,Mee,2,2,"mat-option",17,xm),p(),h(5,"div",18),S("click",function(){I(e);let r=Se(2);return A(r.open())}),p()()}if(t&2){let e=C(2);y("appearance",e._formFieldAppearance)("color",e.color),g(),y("value",e.pageSize)("disabled",e.disabled),Kl("aria-labelledby",e._pageSizeLabelId),y("panelClass",e.selectConfig.panelClass||"")("disableOptionCentering",e.selectConfig.disableOptionCentering),g(2),Ct(e._displayedPageSizeOptions)}}function See(t,n){if(t&1&&(h(0,"div",15),_(1),p()),t&2){let e=C(2);g(),H(e.pageSize)}}function Tee(t,n){if(t&1&&(h(0,"div",3)(1,"div",13),_(2),p(),N(3,kee,6,7,"mat-form-field",14),N(4,See,2,1,"div",15),p()),t&2){let e=C();g(),X("id",e._pageSizeLabelId),g(),ve(" ",e._intl.itemsPerPageLabel," "),g(),L(e._displayedPageSizeOptions.length>1?3:-1),g(),L(e._displayedPageSizeOptions.length<=1?4:-1)}}function Iee(t,n){if(t&1){let e=Y();h(0,"button",19),S("click",function(){I(e);let r=C();return A(r._buttonClicked(0,r._previousButtonsDisabled()))}),Gt(),h(1,"svg",8),k(2,"path",20),p()()}if(t&2){let e=C();y("matTooltip",e._intl.firstPageLabel)("matTooltipDisabled",e._previousButtonsDisabled())("disabled",e._previousButtonsDisabled())("tabindex",e._previousButtonsDisabled()?-1:null),X("aria-label",e._intl.firstPageLabel)}}function Aee(t,n){if(t&1){let e=Y();h(0,"button",21),S("click",function(){I(e);let r=C();return A(r._buttonClicked(r.getNumberOfPages()-1,r._nextButtonsDisabled()))}),Gt(),h(1,"svg",8),k(2,"path",22),p()()}if(t&2){let e=C();y("matTooltip",e._intl.lastPageLabel)("matTooltipDisabled",e._nextButtonsDisabled())("disabled",e._nextButtonsDisabled())("tabindex",e._nextButtonsDisabled()?-1:null),X("aria-label",e._intl.lastPageLabel)}}var gc=(()=>{class t{changes=new z;itemsPerPageLabel="Items per page:";nextPageLabel="Next page";previousPageLabel="Previous page";firstPageLabel="First page";lastPageLabel="Last page";getRangeLabel=(e,i,r)=>{if(r==0||i==0)return`0 of ${r}`;r=Math.max(r,0);let o=e*i,a=o{class t{_intl=u(gc);_changeDetectorRef=u(ye);_formFieldAppearance;_pageSizeLabelId=u(Ze).getId("mat-paginator-page-size-label-");_intlChanges;_isInitialized=!1;_initializedStream=new $a(1);color;get pageIndex(){return this._pageIndex}set pageIndex(e){this._pageIndex=Math.max(e||0,0),this._changeDetectorRef.markForCheck()}_pageIndex=0;get length(){return this._length}set length(e){this._length=e||0,this._changeDetectorRef.markForCheck()}_length=0;get pageSize(){return this._pageSize}set pageSize(e){this._pageSize=Math.max(e||0,0),this._updateDisplayedPageSizeOptions()}_pageSize;get pageSizeOptions(){return this._pageSizeOptions}set pageSizeOptions(e){this._pageSizeOptions=(e||[]).map(i=>ct(i,0)),this._updateDisplayedPageSizeOptions()}_pageSizeOptions=[];hidePageSize=!1;showFirstLastButtons=!1;selectConfig={};disabled=!1;page=new U;_displayedPageSizeOptions;initialized=this._initializedStream;constructor(){let e=this._intl,i=u(Fee,{optional:!0});if(this._intlChanges=e.changes.subscribe(()=>this._changeDetectorRef.markForCheck()),i){let{pageSize:r,pageSizeOptions:o,hidePageSize:a,showFirstLastButtons:s}=i;r!=null&&(this._pageSize=r),o!=null&&(this._pageSizeOptions=o),a!=null&&(this.hidePageSize=a),s!=null&&(this.showFirstLastButtons=s)}this._formFieldAppearance=i?.formFieldAppearance||"outline"}ngOnInit(){this._isInitialized=!0,this._updateDisplayedPageSizeOptions(),this._initializedStream.next()}ngOnDestroy(){this._initializedStream.complete(),this._intlChanges.unsubscribe()}nextPage(){this.hasNextPage()&&this._navigate(this.pageIndex+1)}previousPage(){this.hasPreviousPage()&&this._navigate(this.pageIndex-1)}firstPage(){this.hasPreviousPage()&&this._navigate(0)}lastPage(){this.hasNextPage()&&this._navigate(this.getNumberOfPages()-1)}hasPreviousPage(){return this.pageIndex>=1&&this.pageSize!=0}hasNextPage(){let e=this.getNumberOfPages()-1;return this.pageIndexe-i),this._changeDetectorRef.markForCheck())}_emitPageEvent(e){this.page.emit({previousPageIndex:e,pageIndex:this.pageIndex,pageSize:this.pageSize,length:this.length})}_navigate(e){let i=this.pageIndex;e!==i&&(this.pageIndex=e,this._emitPageEvent(i))}_buttonClicked(e,i){i||this._navigate(e)}static \u0275fac=function(i){return new(i||t)};static \u0275cmp=E({type:t,selectors:[["mat-paginator"]],hostAttrs:["role","group",1,"mat-mdc-paginator"],inputs:{color:"color",pageIndex:[2,"pageIndex","pageIndex",ct],length:[2,"length","length",ct],pageSize:[2,"pageSize","pageSize",ct],pageSizeOptions:"pageSizeOptions",hidePageSize:[2,"hidePageSize","hidePageSize",V],showFirstLastButtons:[2,"showFirstLastButtons","showFirstLastButtons",V],selectConfig:"selectConfig",disabled:[2,"disabled","disabled",V]},outputs:{page:"page"},exportAs:["matPaginator"],decls:14,vars:14,consts:[["selectRef",""],[1,"mat-mdc-paginator-outer-container"],[1,"mat-mdc-paginator-container"],[1,"mat-mdc-paginator-page-size"],[1,"mat-mdc-paginator-range-actions"],["aria-live","polite",1,"mat-mdc-paginator-range-label"],["matIconButton","","type","button","matTooltipPosition","above","disabledInteractive","",1,"mat-mdc-paginator-navigation-first",3,"matTooltip","matTooltipDisabled","disabled","tabindex"],["matIconButton","","type","button","matTooltipPosition","above","disabledInteractive","",1,"mat-mdc-paginator-navigation-previous",3,"click","matTooltip","matTooltipDisabled","disabled","tabindex"],["viewBox","0 0 24 24","focusable","false","aria-hidden","true",1,"mat-mdc-paginator-icon"],["d","M15.41 7.41L14 6l-6 6 6 6 1.41-1.41L10.83 12z"],["matIconButton","","type","button","matTooltipPosition","above","disabledInteractive","",1,"mat-mdc-paginator-navigation-next",3,"click","matTooltip","matTooltipDisabled","disabled","tabindex"],["d","M10 6L8.59 7.41 13.17 12l-4.58 4.59L10 18l6-6z"],["matIconButton","","type","button","matTooltipPosition","above","disabledInteractive","",1,"mat-mdc-paginator-navigation-last",3,"matTooltip","matTooltipDisabled","disabled","tabindex"],[1,"mat-mdc-paginator-page-size-label"],[1,"mat-mdc-paginator-page-size-select",3,"appearance","color"],[1,"mat-mdc-paginator-page-size-value"],["hideSingleSelectionIndicator","",3,"selectionChange","value","disabled","aria-labelledby","panelClass","disableOptionCentering"],[3,"value"],[1,"mat-mdc-paginator-touch-target",3,"click"],["matIconButton","","type","button","matTooltipPosition","above","disabledInteractive","",1,"mat-mdc-paginator-navigation-first",3,"click","matTooltip","matTooltipDisabled","disabled","tabindex"],["d","M18.41 16.59L13.82 12l4.59-4.59L17 6l-6 6 6 6zM6 6h2v12H6z"],["matIconButton","","type","button","matTooltipPosition","above","disabledInteractive","",1,"mat-mdc-paginator-navigation-last",3,"click","matTooltip","matTooltipDisabled","disabled","tabindex"],["d","M5.59 7.41L10.18 12l-4.59 4.59L7 18l6-6-6-6zM16 6h2v12h-2z"]],template:function(i,r){i&1&&(h(0,"div",1)(1,"div",2),N(2,Tee,5,4,"div",3),h(3,"div",4)(4,"div",5),_(5),p(),N(6,Iee,3,5,"button",6),h(7,"button",7),S("click",function(){return r._buttonClicked(r.pageIndex-1,r._previousButtonsDisabled())}),Gt(),h(8,"svg",8),k(9,"path",9),p()(),jo(),h(10,"button",10),S("click",function(){return r._buttonClicked(r.pageIndex+1,r._nextButtonsDisabled())}),Gt(),h(11,"svg",8),k(12,"path",11),p()(),N(13,Aee,3,5,"button",12),p()()()),i&2&&(g(2),L(r.hidePageSize?-1:2),g(3),ve(" ",r._intl.getRangeLabel(r.pageIndex,r.pageSize,r.length)," "),g(),L(r.showFirstLastButtons?6:-1),g(),y("matTooltip",r._intl.previousPageLabel)("matTooltipDisabled",r._previousButtonsDisabled())("disabled",r._previousButtonsDisabled())("tabindex",r._previousButtonsDisabled()?-1:null),X("aria-label",r._intl.previousPageLabel),g(3),y("matTooltip",r._intl.nextPageLabel)("matTooltipDisabled",r._nextButtonsDisabled())("disabled",r._nextButtonsDisabled())("tabindex",r._nextButtonsDisabled()?-1:null),X("aria-label",r._intl.nextPageLabel),g(3),L(r.showFirstLastButtons?13:-1))},dependencies:[Oi,Na,xn,ti,Eo],styles:[`.mat-mdc-paginator{display:block;-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;color:var(--mat-paginator-container-text-color, var(--mat-sys-on-surface));background-color:var(--mat-paginator-container-background-color, var(--mat-sys-surface));font-family:var(--mat-paginator-container-text-font, var(--mat-sys-body-small-font));line-height:var(--mat-paginator-container-text-line-height, var(--mat-sys-body-small-line-height));font-size:var(--mat-paginator-container-text-size, var(--mat-sys-body-small-size));font-weight:var(--mat-paginator-container-text-weight, var(--mat-sys-body-small-weight));letter-spacing:var(--mat-paginator-container-text-tracking, var(--mat-sys-body-small-tracking));--mat-form-field-container-height: var(--mat-paginator-form-field-container-height, 40px);--mat-form-field-container-vertical-padding: var(--mat-paginator-form-field-container-vertical-padding, 8px)}.mat-mdc-paginator .mat-mdc-select-value{font-size:var(--mat-paginator-select-trigger-text-size, var(--mat-sys-body-small-size))}.mat-mdc-paginator .mat-mdc-form-field-subscript-wrapper{display:none}.mat-mdc-paginator .mat-mdc-select{line-height:1.5}.mat-mdc-paginator-outer-container{display:flex}.mat-mdc-paginator-container{display:flex;align-items:center;justify-content:flex-end;padding:0 8px;flex-wrap:wrap;width:100%;min-height:var(--mat-paginator-container-size, 56px)}.mat-mdc-paginator-page-size{display:flex;align-items:baseline;margin-right:8px}[dir=rtl] .mat-mdc-paginator-page-size{margin-right:0;margin-left:8px}.mat-mdc-paginator-page-size-label{margin:0 4px}.mat-mdc-paginator-page-size-select{margin:0 4px;width:var(--mat-paginator-page-size-select-width, 84px)}.mat-mdc-paginator-range-label{margin:0 32px 0 24px}.mat-mdc-paginator-range-actions{display:flex;align-items:center}.mat-mdc-paginator-icon{display:inline-block;width:28px;fill:var(--mat-paginator-enabled-icon-color, var(--mat-sys-on-surface-variant))}.mat-mdc-icon-button[aria-disabled] .mat-mdc-paginator-icon{fill:var(--mat-paginator-disabled-icon-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent))}[dir=rtl] .mat-mdc-paginator-icon{transform:rotate(180deg)}@media(forced-colors: active){.mat-mdc-icon-button[aria-disabled] .mat-mdc-paginator-icon,.mat-mdc-paginator-icon{fill:currentColor}.mat-mdc-paginator-range-actions .mat-mdc-icon-button{outline:solid 1px}.mat-mdc-paginator-range-actions .mat-mdc-icon-button[aria-disabled]{color:GrayText}}.mat-mdc-paginator-touch-target{display:var(--mat-paginator-touch-target-display, block);position:absolute;top:50%;left:50%;width:var(--mat-paginator-page-size-select-width, 84px);height:var(--mat-paginator-page-size-select-touch-target-height, 48px);background-color:rgba(0,0,0,0);transform:translate(-50%, -50%);cursor:pointer} -`],encapsulation:2,changeDetection:0})}return t})(),_c=(()=>{class t{static \u0275fac=function(i){return new(i||t)};static \u0275mod=ee({type:t});static \u0275inj=J({providers:[Ree],imports:[ze,fc,Br,ir]})}return t})();var _g=class extends Li{constructor(){super(...arguments),this._delegate=u(Li)}getValidDateOrNull(n){return this.isDateInstance(n)&&this.isValid(n)?n:null}compareDatetime(n,e,i=!0){return this.compareDate(n,e)||this.getHour(n)-this.getHour(e)||i&&this.getMinute(n)-this.getMinute(e)}sameDatetime(n,e){if(n&&e){let i=this.isValid(n),r=this.isValid(e);return i&&r?!this.compareDatetime(n,e):i===r}return n===e}sameYear(n,e){return n&&e&&this.getYear(n)===this.getYear(e)}sameDay(n,e){return n&&e&&this.getDate(n)===this.getDate(e)&&this.sameMonthAndYear(n,e)}sameHour(n,e){return n&&e&&this.getHour(n)===this.getHour(e)&&this.sameDay(n,e)}sameMinute(n,e){return n&&e&&this.getMinute(n)===this.getMinute(e)&&this.sameHour(n,e)}sameMonthAndYear(n,e){if(n&&e){let i=this.isValid(n),r=this.isValid(e);return i&&r?!(this.getYear(n)-this.getYear(e)||this.getMonth(n)-this.getMonth(e)):i===r}return n===e}clone(n){return this._delegate.clone(n)}addCalendarYears(n,e){return this._delegate.addCalendarYears(n,e)}addCalendarMonths(n,e){return this._delegate.addCalendarMonths(n,e)}addCalendarDays(n,e){return this._delegate.addCalendarDays(n,e)}getYear(n){return this._delegate.getYear(n)}getMonth(n){return this._delegate.getMonth(n)}getDate(n){return this._delegate.getDate(n)}getDayOfWeek(n){return this._delegate.getDayOfWeek(n)}getMonthNames(n){return this._delegate.getMonthNames(n)}getDateNames(){return this._delegate.getDateNames()}getDayOfWeekNames(n){return this._delegate.getDayOfWeekNames(n)}getYearName(n){return this._delegate.getYearName(n)}getFirstDayOfWeek(){return this._delegate.getFirstDayOfWeek()}getNumDaysInMonth(n){return this._delegate.getNumDaysInMonth(n)}createDate(n,e,i){return this._delegate.createDate(n,e,i)}today(){return this._delegate.today()}parse(n,e){return this._delegate.parse(n,e)}format(n,e){return this._delegate.format(n,e)}toIso8601(n){return this._delegate.toIso8601(n)}isDateInstance(n){return this._delegate.isDateInstance(n)}isValid(n){return this._delegate.isValid(n)}invalid(){return this._delegate.invalid()}clampDate(n,e,i){return e&&this.compareDatetime(n,e)<0?e:i&&this.compareDatetime(n,i)>0?i:n}},n3=new T("mtx-datetime-formats"),HGe=r3(24,t=>String(t)),zGe=r3(60,t=>String(t));function r3(t,n){let e=Array(t);for(let i=0;i{let n=class n{transform(i){return ji(i)?i:Q(i)}};n.\u0275fac=function(r){return new(r||n)},n.\u0275pipe=Wr({name:"toObservable",type:n,pure:!0});let t=n;return t})();var a3=(()=>{let n=class n{};n.\u0275fac=function(r){return new(r||n)},n.\u0275mod=ee({type:n}),n.\u0275inj=J({imports:[gt]});let t=n;return t})();function s3(t,n){let e=Array(t);for(let i=0;i{let n=class n extends _g{constructor(){super();let i=u(ys,{optional:!0});this.setLocale(i)}setLocale(i){super.setLocale(i)}getHour(i){return sy(i)}getMinute(i){return ly(i)}isInNextMonth(i,r){let o=this.getDateInNextMonth(i);return super.sameMonthAndYear(o,r)}getWeek(i,r){return dh(i,{weekStartsOn:r})}createDatetime(i,r,o,a,s){if(r<0||r>11)throw Error(`Invalid month index "${r}". Month index has to be between 0 and 11.`);if(o<1)throw Error(`Invalid date "${o}". Date has to be greater than 0.`);if(a<0||a>23)throw Error(`Invalid hour "${a}". Hour has to be between 0 and 23.`);if(s<0||s>59)throw Error(`Invalid minute "${s}". Minute has to be between 0 and 59.`);let l=new Date(i,r,o,a,s);if(!sh(l))throw Error(`Invalid date "${o}" for month with index "${r}".`);return l}getFirstDateOfMonth(i){return sV(i)}getHourNames(){return s3(24,i=>i.toLocaleString(this.locale))}getMinuteNames(){return s3(60,i=>i.toLocaleString(this.locale))}addCalendarHours(i,r){return tV(i,r)}addCalendarMinutes(i,r){return rV(i,r)}deserialize(i){return this._delegate.deserialize(i)}getDateInNextMonth(i){return ah(i,1)}};n.\u0275fac=function(r){return new(r||n)},n.\u0275prov=O({token:n,factory:n.\u0275fac});let t=n;return t})(),Vee={parse:{dateInput:"P",monthInput:"LLLL",yearInput:"yyyy",datetimeInput:"P p",timeInput:"p"},display:{dateInput:"P",monthInput:"LLLL",yearInput:"yyyy",datetimeInput:"P p",timeInput:"p",monthYearLabel:"yyyy",dateA11yLabel:"LLLL dd, yyyy",monthYearA11yLabel:"MMMM yyyy",popupHeaderDateLabel:"ccc, dd LLL"}};function l3(t=Vee){return[{provide:Li,useClass:Vk,deps:[ys]},{provide:_g,useClass:Lee},{provide:n3,useValue:t}]}var Bee=["container"];function jee(t,n){}function Hee(t,n){}var zee=["*"];function Uee(t,n){if(t&1&&k(0,"formly-field",0),t&2){let e=n.$implicit;y("field",e)}}var c3=["fieldComponent"];function $ee(t,n,e){if(n.id)return n.id;let i=n.type;return!i&&n.template&&(i="template"),i instanceof Td&&(i=i.prototype.constructor.name),[t,i,n.key,e].join("_")}function mn(t){return!bc(t.key)&&t.key!==""&&(!Array.isArray(t.key)||t.key.length>0)}function uu(t){if(!mn(t))return[];if(t._keyPath?.key!==t.key){let n=[];if(typeof t.key=="string"){let e=t.key.indexOf("[")===-1?t.key:t.key.replace(/\[(\w+)\]/g,".$1");n=e.indexOf(".")!==-1?e.split("."):[e]}else Array.isArray(t.key)?n=t.key.slice(0):n=[`${t.key}`];nr(t,"_keyPath",{key:t.key,path:n})}return t._keyPath.path.slice(0)}var _S=["required","pattern","minLength","maxLength","min","max"];function bg(t,n){let e=uu(t);if(e.length===0)return;let i=t;for(;i.parent;)i=i.parent,e=[...uu(i),...e];if(n===void 0&&t.resetOnHide){let r=e.pop(),o=e.reduce((a,s)=>a[s]||{},i.model);delete o[r];return}Wee(i.model,e,n)}function Wee(t,n,e){for(let i=0;i{for(let i in e)bc(t[i])||Gee(t[i])?t[i]=vc(e[i]):qee(t[i],e[i])&&Ch(t[i],e[i])}),t}function bc(t){return t==null}function bx(t){return t===void 0}function Gee(t){return t===""}function uS(t){return typeof t=="function"}function qee(t,n){return La(t)&&La(n)&&Object.getPrototypeOf(t)===Object.getPrototypeOf(n)&&!(Array.isArray(t)||Array.isArray(n))}function La(t){return t!=null&&typeof t=="object"}function Yee(t){return!!t&&typeof t.then=="function"}function vc(t){if(!La(t)||ji(t)||t instanceof te||t.changingThisBreaksApplicationSecurity||["RegExp","FileList","File","Blob"].indexOf(t.constructor?.name)!==-1)return t;if(t instanceof Set)return new Set(t);if(t instanceof Map)return new Map(t);if(t instanceof Uint8Array)return new Uint8Array(t);if(t instanceof Uint16Array)return new Uint16Array(t);if(t instanceof Uint32Array)return new Uint32Array(t);if(t._isAMomentObject&&uS(t.clone))return t.clone();if(t instanceof hc)return null;if(t instanceof Date)return new Date(t.getTime());if(Array.isArray(t))return t.slice(0).map(i=>vc(i));let n=Object.getPrototypeOf(t),e=Object.create(n);return e=Object.setPrototypeOf(e,n),Object.keys(t).reduce((i,r)=>{let o=Object.getOwnPropertyDescriptor(t,r);return o.get?Object.defineProperty(i,r,o):i[r]=vc(t[r]),i},e)}function nr(t,n,e){Object.defineProperty(t,n,{enumerable:!1,writable:!0,configurable:!0}),t[n]=e}function d3(t,n,e){let i=[],r=()=>{i.forEach(a=>a()),i=[]},o=Wi(t,n,({firstChange:a,currentValue:s})=>{!a&&e(),r(),La(s)&&s.constructor.name==="Object"&&Object.keys(s).forEach(l=>{i.push(d3(t,[...n,l],e))})});return()=>{o.unsubscribe(),r()}}function Wi(t,n,e){t._observers||nr(t,"_observers",{});let i=t;for(let s=0;s=1&&La(i))){let{enumerable:s}=Object.getOwnPropertyDescriptor(i,r)||{enumerable:!0};Object.defineProperty(i,r,{enumerable:s,configurable:!0,get:()=>a.value,set:l=>{if(l!==a.value){let c=a.value;a.value=l,a.onChange.forEach(d=>d({previousValue:c,currentValue:l,firstChange:!1}))}}})}return{setValue(s,l=!0){if(s===a.value)return;let c=a.value;a.value=s,a.onChange.forEach(d=>{d!==e&&l&&d({previousValue:c,currentValue:s,firstChange:!1})})},unsubscribe(){a.onChange=a.onChange.filter(s=>s!==e),a.onChange.length===0&&delete t._observers[o]}}}function u3(t,n){if(n=Array.isArray(n)?n.join("."):n,!!t.fieldGroup)for(let e=0,i=t.fieldGroup.length;e{n instanceof Id?n.injector.get(ye).markForCheck():n.markForCheck()})}function Qee(t){let n=i=>i.hide||i.expressions?.hide||i.hideExpression,e=!t.resetOnHide||!n(t);if(!n(t)&&t.resetOnHide){let i=t.parent;for(;i&&!n(i);)i=i.parent;e=!i||!n(i)}return!e}function m3(){return+wp.major>18||+wp.major>=18&&+wp.minor>=1}function Kee(t,n){try{return Function(...n,`return ${t};`)}catch(e){console.error(e)}}function Zee(t,n,e){return typeof t=="function"?t.apply(n,e):!!t}function Xee(t,n=!1){let e=t.formControl,i=e._fields?e._fields.indexOf(t):-1;i!==-1&&e._fields.splice(i,1);let r=e.parent;if(!r)return;let o={emitEvent:n};if(r instanceof oS){let a=r.controls.findIndex(s=>s===e);a!==-1&&r.removeAt(a,o)}else if(r instanceof px){let a=uu(t),s=a[a.length-1];r.get([s])===e&&r.removeControl(s,o)}e.setParent(null)}function Jee(t){return t.formControl?t.formControl:t.shareFormControl===!1?null:t.form?.get(uu(t))}function h3(t,n,e=!1){if(n=n||t.formControl,n._fields||nr(n,"_fields",[]),n._fields.indexOf(t)===-1&&n._fields.push(t),!t.formControl&&n){nr(t,"formControl",n),n.setValidators(null),n.setAsyncValidators(null),t.props.disabled=!!t.props.disabled;let s=Wi(t,["props","disabled"],({firstChange:l,currentValue:c})=>{l||(c?t.formControl.disable():t.formControl.enable())});n instanceof Jo&&n.registerOnDisabledChange(s.setValue)}if(!t.form||!mn(t))return;let i=t.form,r=uu(t),o=mu(t);!(bc(n.value)&&bc(o))&&n.value!==o&&n instanceof Jo&&n.patchValue(o);for(let s=0;s{nr(n,"_hide",!!i),(!r||r&&i===!0)&&(n.props.hidden=i,n.options._hiddenFieldsForCheck.push({field:n}))}),n.hideExpression&&Wi(n,["hideExpression"],({currentValue:i})=>{n._expressions.hide=this.parseExpressions(n,"hide",typeof i=="boolean"?()=>i:i)});let e=(i,r)=>{typeof r=="string"||uS(r)?n._expressions[i]=this.parseExpressions(n,i,r):r instanceof Fe&&(n._expressions[i]={value$:r.pipe(Be(o=>{this.evalExpr(n,i,o),n.options._detectChanges(n)}))})};n.expressions=n.expressions||{};for(let i of Object.keys(n.expressions))Wi(n,["expressions",i],({currentValue:r})=>{e(i,uS(r)?(...o)=>r(n,o[3]):r)});n.expressionProperties=n.expressionProperties||{};for(let i of Object.keys(n.expressionProperties))Wi(n,["expressionProperties",i],({currentValue:r})=>e(i,r))}postPopulate(n){if(!n.parent&&!n.options.checkExpressions){let e=!1;n.options.checkExpressions=(i,r)=>{if(e)return;e=!0;let o=this.checkExpressions(i,r),a=n.options;a._hiddenFieldsForCheck.sort(s=>s.field.hide?-1:1).forEach(s=>this.changeHideState(s.field,s.field.hide??s.default,!r)),a._hiddenFieldsForCheck=[],o&&this.checkExpressions(n),e=!1}}}parseExpressions(n,e,i){let r;if(n.parent&&["hide","props.disabled"].includes(e)){let a=s=>e==="hide"?s.hide:s.props.disabled;r=()=>{let s=n.parent;for(;s.parent&&!a(s);)s=s.parent;return a(s)}}i=i||(()=>!1),typeof i=="string"&&(i=Kee(i,["model","formState","field"]));let o;return{callback:a=>{try{let s=Zee(r?(...l)=>r(n)||i(...l):i,{field:n},[n.model,n.options.formState,n,a]);return a||o!==s&&(!La(s)||ji(s)||JSON.stringify(s)!==JSON.stringify(o))?(o=s,this.evalExpr(n,e,s),!0):!1}catch(s){throw s.message=`[Formly Error] [Expression "${e}"] ${s.message}`,s}}}}checkExpressions(n,e=!1){if(!n)return!1;let i=!1;if(n._expressions)for(let r of Object.keys(n._expressions))n._expressions[r].callback?.(e)&&(i=!0);return n.fieldGroup?.forEach(r=>this.checkExpressions(r,e)&&(i=!0)),i}changeDisabledState(n,e){n.fieldGroup&&n.fieldGroup.filter(i=>!i._expressions.hasOwnProperty("props.disabled")).forEach(i=>this.changeDisabledState(i,e)),mn(n)&&n.props.disabled!==e&&(n.props.disabled=e)}changeHideState(n,e,i){if(n.fieldGroup&&n.fieldGroup.filter(r=>r&&!r._expressions.hide).forEach(r=>this.changeHideState(r,e,i)),n.formControl&&mn(n)){nr(n,"_hide",!!(e||n.hide));let r=n.formControl;r._fields?.length>1&&vg(r),e===!0&&(!r._fields||r._fields.every(o=>!!o._hide))?(Xee(n,!0),i&&n.resetOnHide&&(bg(n,void 0),n.formControl.reset({value:void 0,disabled:n.formControl.disabled}),n.options.fieldChanges.next({value:void 0,field:n,type:"valueChanges"}),n.fieldGroup&&n.formControl instanceof oS&&(n.fieldGroup.length=0))):e===!1&&(n.resetOnHide&&!bx(n.defaultValue)&&bx(mu(n))&&bg(n,n.defaultValue),h3(n,void 0,!0),n.resetOnHide&&n.fieldArray&&n.fieldGroup?.length!==n.model?.length&&n.options.build(n))}n.options.fieldChanges&&n.options.fieldChanges.next({field:n,type:"hidden",value:e})}evalExpr(n,e,i){if(e.indexOf("model.")===0){let r=e.replace(/^model\./,""),o=n.fieldGroup?n:n.parent,a=n?.key===r?n.formControl:n.form.get(r);!a&&n.get(r)&&(a=n.get(r).formControl),bg({key:r,parent:o,model:n.model},i),a&&!(bc(a.value)&&bc(i))&&a.value!==i&&a.patchValue(i)}else{try{let r=n,o=this._evalExpressionPath(n,e),a=o.length-1;for(let s=0;sr).forEach(r=>{let o=r.match(/['|"](.*?)['|"]/);o?i.push(o[1]):i.push(...r.split(".").filter(a=>a))}),n._expressions[e]&&(n._expressions[e].paths=i),i}},pS=class{constructor(n){this.config=n,this.formId=0}prePopulate(n){let e=n.parent;this.initRootOptions(n),this.initFieldProps(n),e&&(Object.defineProperty(n,"options",{get:()=>e.options,configurable:!0}),Object.defineProperty(n,"model",{get:()=>mn(n)&&n.fieldGroup?mu(n):e.model,configurable:!0})),Object.defineProperty(n,"get",{value:i=>u3(n,i),configurable:!0}),this.getFieldComponentInstance(n).prePopulate?.(n)}onPopulate(n){this.initFieldOptions(n),this.getFieldComponentInstance(n).onPopulate?.(n),n.fieldGroup&&n.fieldGroup.forEach((e,i)=>{e&&(Object.defineProperty(e,"parent",{get:()=>n,configurable:!0}),Object.defineProperty(e,"index",{get:()=>i,configurable:!0})),this.formId++})}postPopulate(n){this.getFieldComponentInstance(n).postPopulate?.(n)}initFieldProps(n){n.props??=n.templateOptions,Object.defineProperty(n,"templateOptions",{get:()=>n.props,set:e=>n.props=e,configurable:!0})}initRootOptions(n){if(n.parent)return;let e=n.options;n.options.formState=n.options.formState||{},e.showError||(e.showError=this.config.extras.showError),e.fieldChanges||nr(e,"fieldChanges",new z),e._hiddenFieldsForCheck||(e._hiddenFieldsForCheck=[]),e._detectChanges=i=>{i._componentRefs&&mS(i),i.fieldGroup?.forEach(r=>r&&e._detectChanges(r))},e.detectChanges=i=>{i.options.checkExpressions?.(i),e._detectChanges(i)},e.resetModel=i=>{i=vc(i??e._initialModel),n.model&&(Object.keys(n.model).forEach(r=>delete n.model[r]),Object.assign(n.model,i||{})),m3()||Wi(e,["parentForm","submitted"]).setValue(!1,!1),e.build(n),n.form.reset(n.model)},e.updateInitialValue=i=>e._initialModel=vc(i??n.model),n.options.updateInitialValue()}initFieldOptions(n){Ch(n,{id:$ee(`formly_${this.formId}`,n,n.index),hooks:{},modelOptions:{},validation:{messages:{}},props:!n.type||!mn(n)?{}:{label:"",placeholder:"",disabled:!1}}),this.config.extras.resetFieldOnHide&&n.resetOnHide!==!1&&(n.resetOnHide=!0),n.type!=="formly-template"&&(n.template||n.expressions?.template||n.expressionProperties?.template)&&(n.type="formly-template"),!n.type&&n.fieldGroup&&(n.type="formly-group"),n.type&&this.config.getMergedField(n),mn(n)&&!bx(n.defaultValue)&&bx(mu(n))&&!Qee(n)&&bg(n,n.defaultValue),n.wrappers=n.wrappers||[]}getFieldComponentInstance(n){let e=()=>{let i=this.config.resolveFieldTypeRef(n),r=n._componentRefs?.slice(-1)[0];return r instanceof Id&&r?.componentType===i?.componentType&&(i=r),i?.instance};return n._proxyInstance||nr(n,"_proxyInstance",new Proxy({},{get:(i,r)=>e()?.[r],set:(i,r,o)=>e()[r]=o})),n._proxyInstance}},fS=class{prePopulate(n){this.root||(this.root=n),n.parent&&Object.defineProperty(n,"form",{get:()=>n.parent.formControl,configurable:!0})}onPopulate(n){n.hasOwnProperty("fieldGroup")&&!mn(n)?nr(n,"formControl",n.form):this.addFormControl(n)}postPopulate(n){if(this.root!==n)return;if(this.root=null,this.setValidators(n)&&n.parent){let i=n.parent;for(;i;)(mn(i)||!i.parent)&&vg(i.formControl,!0),i=i.parent}}addFormControl(n){let e=Jee(n);if(!n.fieldArray){if(e){if(e instanceof Jo){let i=mn(n)?mu(n):n.defaultValue;e.defaultValue=i}}else{let i={updateOn:n.modelOptions.updateOn};if(n.fieldGroup)e=new px({},i);else{let r=mn(n)?mu(n):n.defaultValue;e=new UB({value:r,disabled:!!n.props.disabled},De(M({},i),{initialValueIsDefault:!0}))}}h3(n,e)}}setValidators(n,e=!1){e===!1&&mn(n)&&n.props?.disabled&&(e=!0);let i=!1;if(n.fieldGroup?.forEach(r=>r&&this.setValidators(r,e)&&(i=!0)),mn(n)||!n.parent||!mn(n)&&!n.fieldGroup){let{formControl:r}=n;if(r&&(mn(n)&&r instanceof Jo&&(e&&r.enabled&&(r.disable({emitEvent:!1,onlySelf:!0}),i=!0),!e&&r.disabled&&(r.enable({emitEvent:!1,onlySelf:!0}),i=!0)),r.validator===null&&this.hasValidators(n,"_validators")&&(r.setValidators(()=>{let o=Le.compose(this.mergeValidators(n,"_validators"));return o?o(r):null}),i=!0),r.asyncValidator===null&&this.hasValidators(n,"_asyncValidators")&&(r.setAsyncValidators(()=>{let o=Le.composeAsync(this.mergeValidators(n,"_asyncValidators"));return o?o(r):Q(null)}),i=!0),i)){vg(r,!0);let o=r.parent;for(let a=1;a1&&i._fields.some(r=>r[e].length>0)||n[e].length>0?!0:n.fieldGroup?.some(r=>r?.fieldGroup&&!mn(r)&&this.hasValidators(r,e))}mergeValidators(n,e){let i=[],r=n.formControl;return r?._fields?.length>1?r._fields.filter(o=>!o._hide).forEach(o=>i.push(...o[e])):n[e]&&i.push(...n[e]),n.fieldGroup&&n.fieldGroup.filter(o=>o?.fieldGroup&&!mn(o)).forEach(o=>i.push(...this.mergeValidators(o,e))),i}},gS=class{constructor(n){this.config=n}onPopulate(n){this.initFieldValidation(n,"validators"),this.initFieldValidation(n,"asyncValidators")}initFieldValidation(n,e){let i=[];if(e==="validators"&&!(n.hasOwnProperty("fieldGroup")&&!mn(n))&&i.push(this.getPredefinedFieldValidation(n)),n[e])for(let r of Object.keys(n[e]))r==="validation"?i.push(...n[e].validation.map(o=>this.wrapNgValidatorFn(n,o))):i.push(this.wrapNgValidatorFn(n,n[e][r],r));nr(n,"_"+e,i)}getPredefinedFieldValidation(n){let e=[];return _S.forEach(i=>Wi(n,["props",i],({currentValue:r,firstChange:o})=>{e=e.filter(a=>a!==i),i==="required"&&r!=null&&typeof r!="boolean"&&console.warn(`Formly: Invalid prop 'required' of type '${typeof r}', expected 'boolean' (Field:${n.key}).`),r!=null&&r!==!1&&e.push(i),!o&&n.formControl&&vg(n.formControl)})),i=>e.length===0?null:Le.compose(e.map(r=>()=>{let o=n.props[r];switch(r){case"required":return Le.required(i);case"pattern":return Le.pattern(o)(i);case"minLength":let a=Le.minLength(o)(i),s=this.config.getValidatorMessage("minlength")||n.validation?.messages?.minlength?"minlength":"minLength";return a?{[s]:a.minlength}:null;case"maxLength":let l=Le.maxLength(o)(i),c=this.config.getValidatorMessage("maxlength")||n.validation?.messages?.maxlength?"maxlength":"maxLength";return l?{[c]:l.maxlength}:null;case"min":return Le.min(o)(i);case"max":return Le.max(o)(i);default:return null}}))(i)}wrapNgValidatorFn(n,e,i){let r;if(typeof e=="string"&&(r=vc(this.config.getValidator(e))),typeof e=="object"&&e.name&&(r=vc(this.config.getValidator(e.name)),e.options&&(r.options=e.options)),typeof e=="object"&&e.expression){let o=e,{expression:a}=o,s=ed(o,["expression"]);r={name:i,validation:a,options:Object.keys(s).length>0?s:null}}return typeof e=="function"&&(r={name:i,validation:e}),a=>{let s=r.validation(a,n,r.options);return Yee(s)?s.then(l=>this.handleResult(n,i?!!l:l,r)):ji(s)?s.pipe(se(l=>this.handleResult(n,i?!!l:l,r))):this.handleResult(n,i?!!s:s,r)}}handleResult(n,e,{name:i,options:r}){typeof e=="boolean"&&(e=e?null:{[i]:r||!0});let o=n.formControl;return o?._childrenErrors?.[i]?.(),La(e)&&Object.keys(e).forEach(a=>{let s=e[a].errorPath?e[a].errorPath:r?.errorPath,l=s?n.formControl.get(s):null;if(l){let c=e[a],{errorPath:d}=c,m=ed(c,["errorPath"]);l.setErrors(De(M({},l.errors||{}),{[a]:m})),!o._childrenErrors&&nr(o,"_childrenErrors",{}),o._childrenErrors[a]=()=>{let v=l.errors||{},{[a]:f}=v,b=ed(v,[pA(a)]);l.setErrors(Object.keys(b).length===0?null:b)}}}),e}},xg=(()=>{let n=class n{constructor(){this.field={}}set _formlyControls(i){let r=this.field;r._localFields=i.map(o=>o.control._fields||[]).flat().filter(o=>o.formControl!==this.field.formControl)}get model(){return this.field.model}get form(){return this.field.form}get options(){return this.field.options}get key(){return this.field.key}get formControl(){return this.field.formControl}get props(){return this.field.props||{}}get to(){return this.props}get showError(){return this.options.showError(this)}get id(){return this.field.id}get formState(){return this.options?.formState||{}}};n.\u0275fac=function(r){return new(r||n)},n.\u0275dir=F({type:n,viewQuery:function(r,o){if(r&1&&ie(Hn,5),r&2){let a;B(a=j())&&(o._formlyControls=a)}},inputs:{field:"field"},standalone:!1});let t=n;return t})(),ete=(()=>{let n=class n extends xg{get template(){return this.field&&this.field.template!==this.innerHtml.template&&(this.innerHtml={template:this.field.template,content:this.props.safeHtml?this.sanitizer.bypassSecurityTrustHtml(this.field.template):this.field.template}),this.innerHtml.content}constructor(i){super(),this.sanitizer=i,this.innerHtml={}}};n.\u0275fac=function(r){return new(r||n)(_e(Cf))},n.\u0275cmp=E({type:n,selectors:[["formly-template"]],standalone:!1,features:[le],decls:1,vars:1,consts:[[3,"innerHtml"]],template:function(r,o){r&1&&k(0,"div",0),r&2&&y("innerHtml",o.template,Zp)},encapsulation:2,changeDetection:0});let t=n;return t})(),bS=(()=>{let n=class n{constructor(){this.types={},this.validators={},this.wrappers={},this.messages={},this.extras={checkExpressionOn:"modelChange",lazyRender:!0,resetFieldOnHide:!0,renderFormlyFieldElement:!0,showError(i){return i.formControl?.invalid&&(i.formControl?.touched||i.options.parentForm?.submitted||!!i.field.validation?.show)}},this.extensions={},this.presets={},this.extensionsByPriority={},this.componentRefs={}}addConfig(i){if(Array.isArray(i)){i.forEach(r=>this.addConfig(r));return}i.types&&i.types.forEach(r=>this.setType(r)),i.validators&&i.validators.forEach(r=>this.setValidator(r)),i.wrappers&&i.wrappers.forEach(r=>this.setWrapper(r)),i.validationMessages&&i.validationMessages.forEach(r=>this.addValidatorMessage(r.name,r.message)),i.extensions&&this.setSortedExtensions(i.extensions),i.extras&&(this.extras=M(M({},this.extras),i.extras)),i.presets&&(this.presets=M(M({},this.presets),i.presets.reduce((r,o)=>De(M({},r),{[o.name]:o.config}),{})))}setType(i){Array.isArray(i)?i.forEach(r=>this.setType(r)):(this.types[i.name]||(this.types[i.name]={name:i.name}),["component","extends","defaultOptions","wrappers"].forEach(r=>{i.hasOwnProperty(r)&&(this.types[i.name][r]=i[r])}))}getType(i,r=!1){if(i instanceof Td)return{component:i,name:i.prototype.constructor.name};if(!this.types[i]){if(r)throw new Error(`[Formly Error] The type "${i}" could not be found. Please make sure that is registered through the FormlyModule declaration.`);return null}return this.mergeExtendedType(i),this.types[i]}getMergedField(i={}){let r=this.getType(i.type);if(!r)return;r.defaultOptions&&Ch(i,r.defaultOptions);let o=r.extends&&this.getType(r.extends).defaultOptions;o&&Ch(i,o),i?.optionsTypes&&i.optionsTypes.forEach(s=>{let l=this.getType(s).defaultOptions;l&&Ch(i,l)});let a=this.resolveFieldTypeRef(i);a?.instance?.defaultOptions&&Ch(i,a.instance.defaultOptions),!i.wrappers&&r.wrappers&&(i.wrappers=[...r.wrappers])}resolveFieldTypeRef(i={}){let r=this.getType(i.type);if(!r||!r.component)return null;if(!this.componentRefs[r.name]){let{_viewContainerRef:o,_injector:a}=i.options;if(!o||!a)return null;let s=o.createComponent(r.component,{injector:a});this.componentRefs[r.name]=s;try{s.destroy()}catch(l){console.error(`An error occurred while destroying the Formly component type "${i.type}"`,l)}}return this.componentRefs[r.name]}clearRefs(){this.componentRefs={}}setWrapper(i){this.wrappers[i.name]=i,i.types&&i.types.forEach(r=>{this.setTypeWrapper(r,i.name)})}getWrapper(i){if(i instanceof Td)return{component:i,name:i.prototype.constructor.name};if(!this.wrappers[i])throw new Error(`[Formly Error] The wrapper "${i}" could not be found. Please make sure that is registered through the FormlyModule declaration.`);return this.wrappers[i]}setTypeWrapper(i,r){this.types[i]||(this.types[i]={}),this.types[i].wrappers||(this.types[i].wrappers=[]),this.types[i].wrappers.indexOf(r)===-1&&this.types[i].wrappers.push(r)}setValidator(i){this.validators[i.name]=i}getValidator(i){if(!this.validators[i])throw new Error(`[Formly Error] The validator "${i}" could not be found. Please make sure that is registered through the FormlyModule declaration.`);return this.validators[i]}addValidatorMessage(i,r){this.messages[i]=r}getValidatorMessage(i){return this.messages[i]}setSortedExtensions(i){i.forEach(r=>{let o=r.priority??1;this.extensionsByPriority[o]=De(M({},this.extensionsByPriority[o]),{[r.name]:r.extension})}),this.extensions=Object.keys(this.extensionsByPriority).map(Number).sort((r,o)=>r-o).reduce((r,o)=>M(M({},r),this.extensionsByPriority[o]),{})}mergeExtendedType(i){if(!this.types[i].extends)return;let r=this.getType(this.types[i].extends);this.types[i].component||(this.types[i].component=r.component),this.types[i].wrappers||(this.types[i].wrappers=r.wrappers)}};n.\u0275fac=function(r){return new(r||n)},n.\u0275prov=O({token:n,factory:n.\u0275fac,providedIn:"root"});let t=n;return t})();var tte=(()=>{let n=class n{};n.\u0275fac=function(r){return new(r||n)},n.\u0275prov=O({token:n,factory:n.\u0275fac});let t=n;return t})(),ite=(()=>{let n=class n{get containerRef(){return this.config.extras.renderFormlyFieldElement?this.viewContainerRef:this.hostContainerRef}get elementRef(){return this.config.extras.renderFormlyFieldElement?this._elementRef:this.componentRefs?.[0]instanceof Id?this.componentRefs[0].location:null}constructor(i,r,o,a,s){this.config=i,this.renderer=r,this._elementRef=o,this.hostContainerRef=a,this.form=s,this.hostObservers=[],this.componentRefs=[],this.hooksObservers=[],this.detectFieldBuild=!1,this.valueChangesUnsubscribe=()=>{}}ngAfterContentInit(){this.triggerHook("afterContentInit")}ngAfterViewInit(){this.triggerHook("afterViewInit")}ngDoCheck(){this.detectFieldBuild&&this.field&&this.field.options&&this.render()}ngOnInit(){this.triggerHook("onInit")}ngOnChanges(i){this.triggerHook("onChanges",i)}ngOnDestroy(){this.resetRefs(this.field),this.hostObservers.forEach(i=>i.unsubscribe()),this.hooksObservers.forEach(i=>i()),this.valueChangesUnsubscribe(),this.triggerHook("onDestroy")}renderField(i,r,o=[]){if(this.containerRef===i&&(this.resetRefs(this.field),this.containerRef.clear(),o=this.field?.wrappers),o?.length>0){let[a,...s]=o,{component:l}=this.config.getWrapper(a),c=i.createComponent(l);this.attachComponentRef(c,r),Wi(c.instance,["fieldComponent"],({currentValue:d,previousValue:m,firstChange:f})=>{if(d){if(m&&m._lContainer===d._lContainer)return;let b=m?m.detach():null;b&&!b.destroyed?d.insert(b):this.renderField(d,r,s),!f&&c.changeDetectorRef.detectChanges()}})}else if(r?.type){let a=this.form?.templates?.find(l=>l.name===r.type),s;if(a)s=i.createEmbeddedView(a.ref,{$implicit:r});else{let{component:l}=this.config.getType(r.type,!0);s=i.createComponent(l)}this.attachComponentRef(s,r)}}triggerHook(i,r){if((i==="onInit"||i==="onChanges"&&r.field&&!r.field.firstChange)&&(this.valueChangesUnsubscribe(),this.valueChangesUnsubscribe=this.fieldChanges(this.field)),this.field?.hooks?.[i]&&(!r||r.field)){let o=this.field.hooks[i](this.field);if(ji(o)&&["onInit","afterContentInit","afterViewInit"].indexOf(i)!==-1){let a=o.subscribe();this.hooksObservers.push(()=>a.unsubscribe())}}i==="onChanges"&&r.field&&(this.resetRefs(r.field.previousValue),this.render())}attachComponentRef(i,r){this.componentRefs.push(i),r._componentRefs.push(i),i instanceof Id&&Object.assign(i.instance,{field:r})}render(){if(this.field){if(!this.field.options){this.detectFieldBuild=!0;return}if(this.detectFieldBuild=!1,this.hostObservers.forEach(i=>i.unsubscribe()),this.hostObservers=[Wi(this.field,["hide"],({firstChange:i,currentValue:r})=>{let o=this.containerRef;this.config.extras.lazyRender===!1?(i&&this.renderField(o,this.field),(!i||i&&r)&&this.elementRef&&this.renderer.setStyle(this.elementRef.nativeElement,"display",r?"none":"")):r?(o.clear(),this.field.className&&this.renderer.removeAttribute(this.elementRef.nativeElement,"class")):(this.renderField(o,this.field),this.field.className&&this.renderer.setAttribute(this.elementRef.nativeElement,"class",this.field.className)),!i&&this.field.options.detectChanges(this.field)}),Wi(this.field,["className"],({firstChange:i,currentValue:r})=>{(!i||i&&r)&&(!this.config.extras.lazyRender||this.field.hide!==!0)&&this.elementRef&&this.renderer.setAttribute(this.elementRef.nativeElement,"class",r)})],!m3())["touched","pristine","status"].forEach(i=>this.hostObservers.push(Wi(this.field,["formControl",i],({firstChange:r})=>!r&&mS(this.field))));else if(this.field.formControl){let i=this.field.formControl.events.subscribe(()=>mS(this.field));this.hostObservers.push(i)}}}resetRefs(i){i&&(i._localFields?i._localFields=[]:nr(this.field,"_localFields",[]),i._componentRefs?i._componentRefs=i._componentRefs.filter(r=>this.componentRefs.indexOf(r)===-1):nr(this.field,"_componentRefs",[])),this.componentRefs=[]}fieldChanges(i){if(!i)return()=>{};let r=d3(i,["props"],()=>i.options.detectChanges(i)),o=[()=>{r()}];for(let s of Object.keys(i._expressions||{})){let l=Wi(i,["_expressions",s],({currentValue:c,previousValue:d})=>{d?.subscription&&(d.subscription.unsubscribe(),d.subscription=null),ji(c.value$)&&(c.subscription=c.value$.subscribe())});o.push(()=>{i._expressions[s]?.subscription&&i._expressions[s].subscription.unsubscribe(),l.unsubscribe()})}for(let s of[["focus"],["template"],["fieldGroupClassName"],["validation","show"]]){let l=Wi(i,s,({firstChange:c})=>!c&&i.options.detectChanges(i));o.push(()=>l.unsubscribe())}if(i.formControl&&!i.fieldGroup){let s=i.formControl,l=s.valueChanges.pipe(se(f=>(i.parsers?.map(b=>f=b(f,i)),Object.is(f,i.formControl.value)||i.formControl.setValue(f),f)),Sn((f,b)=>!(f!==b||Array.isArray(f)||La(f))));s.value!==mu(i)&&(l=l.pipe(He(s.value)));let{updateOn:c,debounce:d}=i.modelOptions;(!c||c==="change")&&d?.default>0&&(l=l.pipe(Rt(d.default)));let m=l.subscribe(f=>{s._fields?.length>1&&s instanceof Jo&&s.patchValue(f,{emitEvent:!1,onlySelf:!0}),mn(i)&&bg(i,f),i.options.fieldChanges.next({value:f,field:i,type:"valueChanges"})});o.push(()=>m.unsubscribe())}let a=[];return Wi(i,["_localFields"],({currentValue:s})=>{a.forEach(l=>l()),a=(s||[]).map(l=>this.fieldChanges(l))}),()=>{o.forEach(s=>s()),a.forEach(s=>s())}}};n.\u0275fac=function(r){return new(r||n)(_e(bS),_e(je),_e(q),_e(nt),_e(tte,8))},n.\u0275cmp=E({type:n,selectors:[["formly-field"]],viewQuery:function(r,o){if(r&1&&ie(Bee,7,nt),r&2){let a;B(a=j())&&(o.viewContainerRef=a.first)}},inputs:{field:"field"},features:[Ae],decls:2,vars:0,consts:[["container",""]],template:function(r,o){r&1&&xa(0,jee,0,0,"ng-template",null,0,_i)},styles:["[_nghost-%COMP%]:empty{display:none}"]});let t=n;return t})(),nte=(()=>{let n=class n extends ite{};n.\u0275fac=(()=>{let i;return function(o){return(i||(i=fe(n)))(o||n)}})(),n.\u0275cmp=E({type:n,selectors:[["formly-field"]],standalone:!1,features:[le],decls:2,vars:0,consts:[["container",""]],template:function(r,o){r&1&&R(0,Hee,0,0,"ng-template",null,0,_i)},styles:["[_nghost-%COMP%]:empty{display:none}"]});let t=n;return t})(),rte=(()=>{let n=class n extends xg{};n.\u0275fac=(()=>{let i;return function(o){return(i||(i=fe(n)))(o||n)}})(),n.\u0275cmp=E({type:n,selectors:[["formly-group"]],hostVars:2,hostBindings:function(r,o){r&2&&it(o.field.fieldGroupClassName||"")},standalone:!1,features:[le],ngContentSelectors:zee,decls:3,vars:0,consts:[[3,"field"]],template:function(r,o){r&1&&(Me(),xt(0,Uee,1,1,"formly-field",0,Hi),oe(2)),r&2&&Ct(o.field.fieldGroup)},dependencies:[nte],encapsulation:2,changeDetection:0});let t=n;return t})(),yg=new T("FORMLY_CONFIG");function ote(t){return{types:[{name:"formly-group",component:rte},{name:"formly-template",component:ete}],extensions:[{name:"core",extension:new pS(t),priority:-250},{name:"field-validation",extension:new gS(t),priority:-200},{name:"field-form",extension:new fS,priority:-150},{name:"field-expression",extension:new hS,priority:-100}]}}var p3=(t=[])=>[{provide:yg,multi:!0,useFactory:ote,deps:[bS]},ate(t)],ate=(t=[])=>({provide:yg,multi:!0,useFactory:()=>{let n=u(yg,{skipSelf:!0,optional:!0});return n?(n.push(t),n):t}});var ste=(()=>{let n=class n{get props(){return this.field.props||{}}get fieldAttrElements(){return this.field?._elementRefs||[]}constructor(i,r,o){this.renderer=i,this.elementRef=r,this.uiAttributesCache={},this.uiEvents={listeners:[],events:["click","keyup","keydown","keypress","focus","blur","change","wheel"],callback:(a,s)=>{switch(a){case"focus":return this.onFocus(s);case"blur":return this.onBlur(s);case"change":return this.onChange(s);default:return this.props[a](this.field,s)}}},this.document=o}ngOnChanges(i){i.field&&(this.field.name&&this.setAttribute("name",this.field.name),this.uiEvents.listeners.forEach(r=>r()),this.uiEvents.events.forEach(r=>{(this.props?.[r]||["focus","blur","change"].indexOf(r)!==-1)&&this.uiEvents.listeners.push(this.renderer.listen(this.elementRef.nativeElement,r,o=>this.uiEvents.callback(r,o)))}),this.props?.attributes&&Wi(this.field,["props","attributes"],({currentValue:r,previousValue:o})=>{o&&Object.keys(o).forEach(a=>this.removeAttribute(a)),r&&Object.keys(r).forEach(a=>{r[a]!=null&&this.setAttribute(a,r[a])})}),this.detachElementRef(i.field.previousValue),this.attachElementRef(i.field.currentValue),this.fieldAttrElements.length===1&&(!this.id&&this.field.id&&this.setAttribute("id",this.field.id),this.focusObserver=Wi(this.field,["focus"],({currentValue:r})=>{this.toggleFocus(r)}))),i.id&&this.setAttribute("id",this.id)}ngDoCheck(){if(!this.uiAttributes){let i=this.elementRef.nativeElement;this.uiAttributes=[..._S,"tabindex","placeholder","readonly","disabled","step"].filter(r=>!i.hasAttribute||!i.hasAttribute(r))}for(let i=0;ii()),this.detachElementRef(this.field),this.focusObserver?.unsubscribe()}toggleFocus(i){let r=this.fieldAttrElements?this.fieldAttrElements[0]:null;if(!r||!r.nativeElement.focus)return;let o=!!this.document.activeElement&&this.fieldAttrElements.some(({nativeElement:a})=>this.document.activeElement===a||a.contains(this.document.activeElement));i&&!o?Promise.resolve().then(()=>r.nativeElement.focus()):!i&&o&&Promise.resolve().then(()=>r.nativeElement.blur())}onFocus(i){this.focusObserver?.setValue(!0),this.props.focus?.(this.field,i)}onBlur(i){this.focusObserver?.setValue(!1),this.props.blur?.(this.field,i)}onHostChange(i){i instanceof Event||this.onChange(i)}onChange(i){this.props.change?.(this.field,i),this.field.formControl?.markAsDirty()}attachElementRef(i){i&&(i._elementRefs?.indexOf(this.elementRef)===-1?i._elementRefs.push(this.elementRef):nr(i,"_elementRefs",[this.elementRef]))}detachElementRef(i){let r=i?._elementRefs?this.fieldAttrElements.indexOf(this.elementRef):-1;r!==-1&&i._elementRefs.splice(r,1)}setAttribute(i,r){this.renderer.setAttribute(this.elementRef.nativeElement,i,r)}removeAttribute(i){this.renderer.removeAttribute(this.elementRef.nativeElement,i)}};n.\u0275fac=function(r){return new(r||n)(_e(je),_e(q),_e(ge))},n.\u0275dir=F({type:n,selectors:[["","formlyAttributes",""]],hostBindings:function(r,o){r&1&&S("change",function(s){return o.onHostChange(s)})},inputs:{field:[0,"formlyAttributes","field"],id:"id"},features:[Ae]});let t=n;return t})(),ta=(()=>{let n=class n extends ste{};n.\u0275fac=(()=>{let i;return function(o){return(i||(i=fe(n)))(o||n)}})(),n.\u0275dir=F({type:n,selectors:[["","formlyAttributes",""]],hostBindings:function(r,o){r&1&&S("change",function(s){return o.onHostChange(s)})},standalone:!1,features:[le]});let t=n;return t})(),lte=(()=>{let n=class n{constructor(i){this.config=i}ngOnChanges(){let i=_S.map(r=>`templateOptions.${r}`);this.errorMessage$=Je(this.field.formControl.statusChanges,this.field.options?this.field.options.fieldChanges.pipe(ce(({field:r,type:o,property:a})=>r===this.field&&o==="expressionChanges"&&(a.indexOf("validation")!==-1||i.indexOf(a)!==-1))):Q(null)).pipe(He(null),$e(()=>ji(this.errorMessage)?this.errorMessage:Q(this.errorMessage)))}get errorMessage(){let i=this.field.formControl;for(let r in i.errors)if(i.errors.hasOwnProperty(r)){let o=this.config.getValidatorMessage(r);if(La(i.errors[r])){if(i.errors[r].errorPath)return;i.errors[r].message&&(o=i.errors[r].message)}return this.field.validation?.messages?.[r]&&(o=this.field.validation.messages[r]),this.field.validators?.[r]?.message&&(o=this.field.validators[r].message),this.field.asyncValidators?.[r]?.message&&(o=this.field.asyncValidators[r].message),typeof o=="function"?o(i.errors[r],this.field):o}}};n.\u0275fac=function(r){return new(r||n)(_e(bS))},n.\u0275cmp=E({type:n,selectors:[["formly-validation-message"]],inputs:{field:"field"},features:[Ae],decls:2,vars:3,template:function(r,o){r&1&&(_(0),me(1,"async")),r&2&&H(Oe(1,1,o.errorMessage$))},dependencies:[rn],encapsulation:2,changeDetection:0});let t=n;return t})(),f3=(()=>{let n=class n extends lte{};n.\u0275fac=(()=>{let i;return function(o){return(i||(i=fe(n)))(o||n)}})(),n.\u0275cmp=E({type:n,selectors:[["formly-validation-message"]],standalone:!1,features:[le],decls:2,vars:3,template:function(r,o){r&1&&(_(0),me(1,"async")),r&2&&H(Oe(1,1,o.errorMessage$))},dependencies:[rn],encapsulation:2,changeDetection:0});let t=n;return t})();var Cg=(()=>{let n=class n extends xg{set _formlyControls(i){}set _staticContent(i){this.fieldComponent=i}};n.\u0275fac=(()=>{let i;return function(o){return(i||(i=fe(n)))(o||n)}})(),n.\u0275dir=F({type:n,viewQuery:function(r,o){if(r&1&&(ie(c3,5,nt),ie(c3,7,nt)),r&2){let a;B(a=j())&&(o.fieldComponent=a.first),B(a=j())&&(o._staticContent=a.first)}},standalone:!1,features:[le]});let t=n;return t})();var wg=t=>({field:t}),_3=t=>({content:t});function cte(t,n){t&1&&(h(0,"span",9),_(1,"*"),p())}function dte(t,n){if(t&1&&(h(0,"mat-label"),_(1),N(2,cte,2,0,"span",9),p()),t&2){let e=C();g(),ve(" ",e.props.label," "),g(),L(e.props.required&&e.props.hideRequiredMarker!==!0?2:-1)}}function ute(t,n){if(t&1&&Ge(0,3),t&2){let e=C();y("ngTemplateOutlet",e.props.textPrefix)("ngTemplateOutletContext",Pt(2,wg,e.field))}}function mte(t,n){if(t&1&&Ge(0,4),t&2){let e=C();y("ngTemplateOutlet",e.props.prefix)("ngTemplateOutletContext",Pt(2,wg,e.field))}}function hte(t,n){if(t&1&&Ge(0,5),t&2){let e=C();y("ngTemplateOutlet",e.props.textSuffix)("ngTemplateOutletContext",Pt(2,wg,e.field))}}function pte(t,n){if(t&1&&Ge(0,6),t&2){let e=C();y("ngTemplateOutlet",e.props.suffix)("ngTemplateOutletContext",Pt(2,wg,e.field))}}function fte(t,n){if(t&1&&(h(0,"mat-hint"),Ge(1,10),p()),t&2){C();let e=Se(13);g(),y("ngTemplateOutlet",e)("ngTemplateOutletContext",Pt(2,_3,n))}}function gte(t,n){if(t&1&&(h(0,"mat-hint",8),Ge(1,10),p()),t&2){C();let e=Se(13);g(),y("ngTemplateOutlet",e)("ngTemplateOutletContext",Pt(2,_3,n))}}function _te(t,n){if(t&1&&(jt(0),_(1),Lt()),t&2){let e=C().content;g(),H(e)}}function bte(t,n){if(t&1&&Ge(0,10),t&2){let e=C().content,i=C();y("ngTemplateOutlet",e)("ngTemplateOutletContext",Pt(2,wg,i.field))}}function vte(t,n){if(t&1&&N(0,_te,2,1,"ng-container")(1,bte,1,4,"ng-container",10),t&2){let e=n.content;L(e.createEmbeddedView?1:0)}}var yte=["matPrefix"],xte=["matTextPrefix"],Cte=["matSuffix"],wte=["matTextSuffix"],Dte=(()=>{let n=class n extends Cg{constructor(i,r,o){super(),this.renderer=i,this.elementRef=r,this.focusMonitor=o}ngOnInit(){nr(this.field,"_formField",this.formField),this.focusMonitor.monitor(this.elementRef,!0).subscribe(i=>{!i&&this.field.focus&&(this.field.focus=!1)})}ngAfterViewInit(){if(this.formField.appearance!=="outline"&&this.props.hideFieldUnderline===!0){let i=this.formField._elementRef.nativeElement.querySelector(".mat-form-field-underline");i&&this.renderer.removeChild(i.parentNode,i)}}ngOnDestroy(){delete this.field._formField,this.focusMonitor.stopMonitoring(this.elementRef)}};n.\u0275fac=function(r){return new(r||n)(_e(je),_e(q),_e(Yt))},n.\u0275cmp=E({type:n,selectors:[["formly-wrapper-mat-form-field"]],viewQuery:function(r,o){if(r&1&&ie(Oi,7),r&2){let a;B(a=j())&&(o.formField=a.first)}},standalone:!1,features:[le],decls:14,vars:13,consts:[["fieldComponent",""],["stringOrTemplate",""],[3,"hideRequiredMarker","floatLabel","appearance","subscriptSizing","color"],["matTextPrefix","",3,"ngTemplateOutlet","ngTemplateOutletContext"],["matPrefix","",3,"ngTemplateOutlet","ngTemplateOutletContext"],["matTextSuffix","",3,"ngTemplateOutlet","ngTemplateOutletContext"],["matSuffix","",3,"ngTemplateOutlet","ngTemplateOutletContext"],[3,"field"],["align","end"],["aria-hidden","true",1,"mat-form-field-required-marker","mat-mdc-form-field-required-marker"],[3,"ngTemplateOutlet","ngTemplateOutletContext"]],template:function(r,o){if(r&1&&(h(0,"mat-form-field",2),Ge(1,null,0),N(3,dte,3,2,"mat-label"),N(4,ute,1,4,"ng-container",3),N(5,mte,1,4,"ng-container",4),N(6,hte,1,4,"ng-container",5),N(7,pte,1,4,"ng-container",6),h(8,"mat-error"),k(9,"formly-validation-message",7),p(),N(10,fte,2,4,"mat-hint"),N(11,gte,2,4,"mat-hint",8),p(),R(12,vte,2,1,"ng-template",null,1,_i)),r&2){let a,s;y("hideRequiredMarker",!0)("floatLabel",o.props.floatLabel)("appearance",o.props.appearance)("subscriptSizing",o.props.subscriptSizing)("color",o.props.color??"primary"),g(3),L(o.props.label&&o.props.hideLabel!==!0?3:-1),g(),L(o.props.textPrefix?4:-1),g(),L(o.props.prefix?5:-1),g(),L(o.props.textSuffix?6:-1),g(),L(o.props.suffix?7:-1),g(2),y("field",o.field),g(),L((a=o.props.description||o.props.hintStart)?10:-1,a),g(),L((s=o.props.hintEnd)?11:-1,s)}},dependencies:[Fn,Oi,sn,eg,xo,nu,ru,f3],styles:[`formly-wrapper-mat-form-field .mat-mdc-form-field,formly-wrapper-mat-form-field .mat-form-field{width:100%} -`],encapsulation:2});let t=n;return t})();function b3(){return{wrappers:[{name:"form-field",component:Dte}]}}var to=(()=>{let n=class n extends xg{constructor(){super(...arguments),this.errorStateMatcher={isErrorState:()=>this.field&&this.showError},this.stateChanges=new z,this._errorState=!1,this._focused=!1}set matPrefix(i){i&&(this.props.prefix=i)}set matTextPrefix(i){i&&(this.props.textPrefix=i)}set matSuffix(i){i&&(this.props.suffix=i)}set matTextSuffix(i){i&&(this.props.textSuffix=i)}set _controls(i){this.attachControl(i.length===1?i.first:this)}ngOnDestroy(){delete this.formField?._control,this.stateChanges.complete()}setDescribedByIds(i){}onContainerClick(i){this.field.focus=!0,this.stateChanges.next()}get errorState(){let i=this.options.showError(this);return i!==this._errorState&&(this._errorState=i,this.stateChanges.next()),i}get controlType(){if(this.props.type)return this.props.type;let i=this.field.type;return i instanceof Td?i.prototype.constructor.name:i}get focused(){let i=!!this.field.focus&&!this.disabled;return i!==this._focused&&(this._focused=i,this.stateChanges.next()),i}get disabled(){return!!this.props.disabled}get required(){return!!this.props.required}get placeholder(){return this.props.placeholder||""}get shouldPlaceholderFloat(){return this.shouldLabelFloat}get value(){return this.formControl?.value}set value(i){this.formControl?.patchValue(i)}get ngControl(){return this.formControl}get empty(){return this.value==null||this.value===""}get shouldLabelFloat(){return this.focused||!this.empty}get formField(){return this.field?._formField}attachControl(i){if(this.formField&&i!==this.formField._control){this.formField._control=i;let r=i?.ngControl;r?.valueAccessor?.hasOwnProperty("_formField")&&(r.valueAccessor._formField=this.formField),r?.valueAccessor?.hasOwnProperty("_parentFormField")&&(r.valueAccessor._parentFormField=this.formField),["prefix","suffix","textPrefix","textSuffix"].forEach(a=>Wi(this.field,["props",a],({currentValue:s})=>s&&Promise.resolve().then(()=>{this.options.detectChanges(this.field)})));let o=i.setDescribedByIds.bind(i);i.setDescribedByIds=a=>{setTimeout(()=>o(a))}}}};n.\u0275fac=(()=>{let i;return function(o){return(i||(i=fe(n)))(o||n)}})(),n.\u0275dir=F({type:n,viewQuery:function(r,o){if(r&1&&(ie(yte,5),ie(xte,5),ie(Cte,5),ie(wte,5),ie(Ra,5)),r&2){let a;B(a=j())&&(o.matPrefix=a.first),B(a=j())&&(o.matTextPrefix=a.first),B(a=j())&&(o.matSuffix=a.first),B(a=j())&&(o.matTextSuffix=a.first),B(a=j())&&(o._controls=a)}},standalone:!1,features:[le]});let t=n;return t})();var v3=(()=>{class t{static \u0275fac=function(i){return new(i||t)};static \u0275cmp=E({type:t,selectors:[["ng-component"]],hostAttrs:["cdk-text-field-style-loader",""],decls:0,vars:0,template:function(i,r){},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 t})(),Ete={passive:!0},y3=(()=>{class t{_platform=u(qe);_ngZone=u(ae);_renderer=u(cn).createRenderer(null,null);_styleLoader=u(ut);_monitoredElements=new Map;constructor(){}monitor(e){if(!this._platform.isBrowser)return Fi;this._styleLoader.load(v3);let i=Pr(e),r=this._monitoredElements.get(i);if(r)return r.subject;let o=new z,a="cdk-text-field-autofilled",s=c=>{c.animationName==="cdk-text-field-autofill-start"&&!i.classList.contains(a)?(i.classList.add(a),this._ngZone.run(()=>o.next({target:c.target,isAutofilled:!0}))):c.animationName==="cdk-text-field-autofill-end"&&i.classList.contains(a)&&(i.classList.remove(a),this._ngZone.run(()=>o.next({target:c.target,isAutofilled:!1})))},l=this._ngZone.runOutsideAngular(()=>(i.classList.add("cdk-text-field-autofill-monitored"),this._renderer.listen(i,"animationstart",s,Ete)));return this._monitoredElements.set(i,{subject:o,unlisten:l}),o}stopMonitoring(e){let i=Pr(e),r=this._monitoredElements.get(i);r&&(r.unlisten(),r.subject.complete(),i.classList.remove("cdk-text-field-autofill-monitored"),i.classList.remove("cdk-text-field-autofilled"),this._monitoredElements.delete(i))}ngOnDestroy(){this._monitoredElements.forEach((e,i)=>this.stopMonitoring(i))}static \u0275fac=function(i){return new(i||t)};static \u0275prov=O({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();var x3=(()=>{class t{_elementRef=u(q);_platform=u(qe);_ngZone=u(ae);_renderer=u(je);_resizeEvents=new z;_previousValue;_initialHeight;_destroyed=new z;_listenerCleanups;_minRows;_maxRows;_enabled=!0;_previousMinRows=-1;_textareaElement;get minRows(){return this._minRows}set minRows(e){this._minRows=Ln(e),this._setMinHeight()}get maxRows(){return this._maxRows}set maxRows(e){this._maxRows=Ln(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=u(ge);_hasFocus;_isViewInited=!1;constructor(){u(ut).load(v3),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(Pl(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),i=e.style;e.rows=1,i.position="absolute",i.visibility="hidden",i.border="none",i.padding="0",i.height="",i.minHeight="",i.maxHeight="",i.top=i.bottom=i.left=i.right="auto",i.overflow="hidden",this._textareaElement.parentNode.appendChild(e),this._cachedLineHeight=e.clientHeight,e.remove(),this._setMinHeight(),this._setMaxHeight()}_measureScrollHeight(){let e=this._textareaElement,i=e.style.marginBottom||"",r=this._platform.FIREFOX,o=r&&this._hasFocus,a=r?"cdk-textarea-autosize-measuring-firefox":"cdk-textarea-autosize-measuring";o&&(e.style.marginBottom=`${e.clientHeight}px`),e.classList.add(a);let s=e.scrollHeight-4;return e.classList.remove(a),o&&(e.style.marginBottom=i),s}_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 i=this._elementRef.nativeElement,r=i.value;if(!e&&this._minRows===this._previousMinRows&&r===this._previousValue)return;let o=this._measureScrollHeight(),a=Math.max(o,this._cachedPlaceholderHeight||0);i.style.height=`${a}px`,this._ngZone.runOutsideAngular(()=>{typeof requestAnimationFrame<"u"?requestAnimationFrame(()=>this._scrollToCaretPosition(i)):setTimeout(()=>this._scrollToCaretPosition(i))}),this._previousValue=r,this._previousMinRows=this._minRows}reset(){this._initialHeight!==void 0&&(this._textareaElement.style.height=this._initialHeight)}_noopInputHandler(){}_scrollToCaretPosition(e){let{selectionStart:i,selectionEnd:r}=e;!this._destroyed.isStopped&&this._hasFocus&&e.setSelectionRange(i,r)}static \u0275fac=function(i){return new(i||t)};static \u0275dir=F({type:t,selectors:[["textarea","cdkTextareaAutosize",""]],hostAttrs:["rows","1",1,"cdk-textarea-autosize"],hostBindings:function(i,r){i&1&&S("input",function(){return r._noopInputHandler()})},inputs:{minRows:[0,"cdkAutosizeMinRows","minRows"],maxRows:[0,"cdkAutosizeMaxRows","maxRows"],enabled:[2,"cdkTextareaAutosize","enabled",V],placeholder:"placeholder"},exportAs:["cdkTextareaAutosize"]})}return t})(),C3=(()=>{class t{static \u0275fac=function(i){return new(i||t)};static \u0275mod=ee({type:t});static \u0275inj=J({})}return t})();var wh=new T("MAT_INPUT_VALUE_ACCESSOR");var kte=["button","checkbox","file","hidden","image","radio","range","reset","submit"],Ste=new T("MAT_INPUT_CONFIG"),hn=(()=>{class t{_elementRef=u(q);_platform=u(qe);ngControl=u(Hn,{optional:!0,self:!0});_autofillMonitor=u(y3);_ngZone=u(ae);_formField=u(Xo,{optional:!0});_renderer=u(je);_uid=u(Ze).getId("mat-input-");_previousNativeValue;_inputValueAccessor;_signalBasedValueAccessor;_previousPlaceholder;_errorStateTracker;_config=u(Ste,{optional:!0});_cleanupIosKeyup;_cleanupWebkitWheel;_isServer;_isNativeSelect;_isTextarea;_isInFormField;focused=!1;stateChanges=new z;controlType="mat-input";autofilled=!1;get disabled(){return this._disabled}set disabled(e){this._disabled=Ai(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(Le.required)??!1}set required(e){this._required=Ai(e)}_required;get type(){return this._type}set type(e){this._type=e||"text",this._validateType(),!this._isTextarea&&Ek().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=Ai(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=>Ek().has(e));constructor(){let e=u(pc,{optional:!0}),i=u(Ki,{optional:!0}),r=u(dl),o=u(wh,{optional:!0,self:!0}),a=this._elementRef.nativeElement,s=a.nodeName.toLowerCase();o?is(o.value)?this._signalBasedValueAccessor=o:this._inputValueAccessor=o:this._inputValueAccessor=a,this._previousNativeValue=this.value,this.id=this.id,this._platform.IOS&&this._ngZone.runOutsideAngular(()=>{this._cleanupIosKeyup=this._renderer.listen(a,"keyup",this._iOSKeyupListener)}),this._errorStateTracker=new cl(r,this.ngControl,i,e,this.stateChanges),this._isServer=!this._platform.isBrowser,this._isNativeSelect=s==="select",this._isTextarea=s==="textarea",this._isInFormField=!!this._formField,this.disabledInteractive=this._config?.disabledInteractive||!1,this._isNativeSelect&&(this.controlType=a.multiple?"mat-native-select-multiple":"mat-native-select"),this._signalBasedValueAccessor&&Ar(()=>{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 i=this._elementRef.nativeElement;i.type==="number"?(i.type="text",i.setSelectionRange(0,0),i.type="number"):i.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 i=this._elementRef.nativeElement;this._previousPlaceholder=e,e?i.setAttribute("placeholder",e):i.removeAttribute("placeholder")}}_getPlaceholder(){return this.placeholder||null}_validateType(){kte.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,i=e.options[0];return this.focused||e.multiple||!this.empty||!!(e.selectedIndex>-1&&i&&i.label)}else return this.focused&&!this.disabled||!this.empty}get describedByIds(){return this._elementRef.nativeElement.getAttribute("aria-describedby")?.split(" ")||[]}setDescribedByIds(e){let i=this._elementRef.nativeElement;e.length?i.setAttribute("aria-describedby",e.join(" ")):i.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 i=e.target;!i.value&&i.selectionStart===0&&i.selectionEnd===0&&(i.setSelectionRange(1,1),i.setSelectionRange(0,0))};_getReadonlyAttribute(){return this._isNativeSelect?null:this.readonly||this.disabled&&this.disabledInteractive?"true":null}static \u0275fac=function(i){return new(i||t)};static \u0275dir=F({type:t,selectors:[["input","matInput",""],["textarea","matInput",""],["select","matNativeControl",""],["input","matNativeControl",""],["textarea","matNativeControl",""]],hostAttrs:[1,"mat-mdc-input-element"],hostVars:21,hostBindings:function(i,r){i&1&&S("focus",function(){return r._focusChanged(!0)})("blur",function(){return r._focusChanged(!1)})("input",function(){return r._onInput()}),i&2&&(si("id",r.id)("disabled",r.disabled&&!r.disabledInteractive)("required",r.required),X("name",r.name||null)("readonly",r._getReadonlyAttribute())("aria-disabled",r.disabled&&r.disabledInteractive?"true":null)("aria-invalid",r.empty&&r.required?null:r.errorState)("aria-required",r.required)("id",r.id),G("mat-input-server",r._isServer)("mat-mdc-form-field-textarea-control",r._isInFormField&&r._isTextarea)("mat-mdc-form-field-input-control",r._isInFormField)("mat-mdc-input-disabled-interactive",r.disabledInteractive)("mdc-text-field__input",r._isInFormField)("mat-mdc-native-select-inline",r._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",V]},exportAs:["matInput"],features:[Ce([{provide:Ra,useExisting:t}]),Ae]})}return t})(),rr=(()=>{class t{static \u0275fac=function(i){return new(i||t)};static \u0275mod=ee({type:t});static \u0275inj=J({imports:[we,$i,$i,C3,we]})}return t})();function Tte(t,n){if(t&1&&k(0,"input",0),t&2){let e=C();y("id",e.id)("name",e.field.name)("type",e.type||"text")("readonly",e.props.readonly)("required",e.required)("errorStateMatcher",e.errorStateMatcher)("formControl",e.formControl)("formlyAttributes",e.field)("tabIndex",e.props.tabindex)("placeholder",e.props.placeholder)}}function Ite(t,n){if(t&1&&k(0,"input",1),t&2){let e=C();y("id",e.id)("name",e.field.name)("readonly",e.props.readonly)("required",e.required)("errorStateMatcher",e.errorStateMatcher)("formControl",e.formControl)("formlyAttributes",e.field)("tabIndex",e.props.tabindex)("placeholder",e.props.placeholder)}}var Ate=(()=>{let n=class n extends to{get type(){return this.props.type||"text"}};n.\u0275fac=(()=>{let i;return function(o){return(i||(i=fe(n)))(o||n)}})(),n.\u0275cmp=E({type:n,selectors:[["formly-field-mat-input"]],standalone:!1,features:[le],decls:2,vars:1,consts:[["matInput","",3,"id","name","type","readonly","required","errorStateMatcher","formControl","formlyAttributes","tabIndex","placeholder"],["matInput","","type","number",3,"id","name","readonly","required","errorStateMatcher","formControl","formlyAttributes","tabIndex","placeholder"]],template:function(r,o){r&1&&N(0,Tte,1,10,"input",0)(1,Ite,1,9,"input",1),r&2&&L(o.type!=="number"?0:1)},dependencies:[Qi,cu,ei,Do,wo,hn,ta],encapsulation:2,changeDetection:0});let t=n;return t})();function w3(){return{types:[{name:"input",component:Ate,wrappers:["form-field"]},{name:"string",extends:"input"},{name:"number",extends:"input",defaultOptions:{props:{type:"number"}}},{name:"integer",extends:"input",defaultOptions:{props:{type:"number"}}}]}}var Ote=(()=>{let n=class n extends to{constructor(){super(...arguments),this.defaultOptions={props:{cols:1,rows:1}}}};n.\u0275fac=(()=>{let i;return function(o){return(i||(i=fe(n)))(o||n)}})(),n.\u0275cmp=E({type:n,selectors:[["formly-field-mat-textarea"]],standalone:!1,features:[Ce([{provide:wh,useExisting:n}]),le],decls:1,vars:16,consts:[["matInput","",3,"id","name","readonly","required","formControl","errorStateMatcher","cols","rows","formlyAttributes","placeholder","tabindex","cdkTextareaAutosize","cdkAutosizeMinRows","cdkAutosizeMaxRows"]],template:function(r,o){r&1&&k(0,"textarea",0),r&2&&(G("cdk-textarea-autosize",o.props.autosize),y("id",o.id)("name",o.field.name)("readonly",o.props.readonly)("required",o.required)("formControl",o.formControl)("errorStateMatcher",o.errorStateMatcher)("cols",o.props.cols)("rows",o.props.rows)("formlyAttributes",o.field)("placeholder",o.props.placeholder)("tabindex",o.props.tabindex)("cdkTextareaAutosize",o.props.autosize)("cdkAutosizeMinRows",o.props.autosizeMinRows)("cdkAutosizeMaxRows",o.props.autosizeMaxRows))},dependencies:[Qi,ei,Do,wo,hn,x3,ta],encapsulation:2,changeDetection:0});let t=n;return t})();function D3(){return{types:[{name:"textarea",component:Ote,wrappers:["form-field"]}]}}var Rte=["input"],Pte=["formField"],Fte=["*"],vx=class{source;value;constructor(n,e){this.source=n,this.value=e}},Nte={provide:tr,useExisting:Kt(()=>Dg),multi:!0},E3=new T("MatRadioGroup"),Lte=new T("mat-radio-default-options",{providedIn:"root",factory:Vte});function Vte(){return{color:"accent",disabledInteractive:!1}}var Dg=(()=>{class t{_changeDetector=u(ye);_value=null;_name=u(Ze).getId("mat-radio-group-");_selected=null;_isInitialized=!1;_labelPosition="after";_disabled=!1;_required=!1;_buttonChanges;_controlValueAccessorChangeFn=()=>{};onTouched=()=>{};change=new U;_radios;color;get name(){return this._name}set name(e){this._name=e,this._updateRadioButtonNames()}get labelPosition(){return this._labelPosition}set labelPosition(e){this._labelPosition=e==="before"?"before":"after",this._markRadiosForCheck()}get value(){return this._value}set value(e){this._value!==e&&(this._value=e,this._updateSelectedRadioFromValue(),this._checkSelectedRadioButton())}_checkSelectedRadioButton(){this._selected&&!this._selected.checked&&(this._selected.checked=!0)}get selected(){return this._selected}set selected(e){this._selected=e,this.value=e?e.value:null,this._checkSelectedRadioButton()}get disabled(){return this._disabled}set disabled(e){this._disabled=e,this._markRadiosForCheck()}get required(){return this._required}set required(e){this._required=e,this._markRadiosForCheck()}get disabledInteractive(){return this._disabledInteractive}set disabledInteractive(e){this._disabledInteractive=e,this._markRadiosForCheck()}_disabledInteractive=!1;constructor(){}ngAfterContentInit(){this._isInitialized=!0,this._buttonChanges=this._radios.changes.subscribe(()=>{this.selected&&!this._radios.find(e=>e===this.selected)&&(this._selected=null)})}ngOnDestroy(){this._buttonChanges?.unsubscribe()}_touch(){this.onTouched&&this.onTouched()}_updateRadioButtonNames(){this._radios&&this._radios.forEach(e=>{e.name=this.name,e._markForCheck()})}_updateSelectedRadioFromValue(){let e=this._selected!==null&&this._selected.value===this._value;this._radios&&!e&&(this._selected=null,this._radios.forEach(i=>{i.checked=this.value===i.value,i.checked&&(this._selected=i)}))}_emitChangeEvent(){this._isInitialized&&this.change.emit(new vx(this._selected,this._value))}_markRadiosForCheck(){this._radios&&this._radios.forEach(e=>e._markForCheck())}writeValue(e){this.value=e,this._changeDetector.markForCheck()}registerOnChange(e){this._controlValueAccessorChangeFn=e}registerOnTouched(e){this.onTouched=e}setDisabledState(e){this.disabled=e,this._changeDetector.markForCheck()}static \u0275fac=function(i){return new(i||t)};static \u0275dir=F({type:t,selectors:[["mat-radio-group"]],contentQueries:function(i,r,o){if(i&1&&xe(o,vS,5),i&2){let a;B(a=j())&&(r._radios=a)}},hostAttrs:["role","radiogroup",1,"mat-mdc-radio-group"],inputs:{color:"color",name:"name",labelPosition:"labelPosition",value:"value",selected:"selected",disabled:[2,"disabled","disabled",V],required:[2,"required","required",V],disabledInteractive:[2,"disabledInteractive","disabledInteractive",V]},outputs:{change:"change"},exportAs:["matRadioGroup"],features:[Ce([Nte,{provide:E3,useExisting:t}])]})}return t})(),vS=(()=>{class t{_elementRef=u(q);_changeDetector=u(ye);_focusMonitor=u(Yt);_radioDispatcher=u(au);_defaultOptions=u(Lte,{optional:!0});_ngZone=u(ae);_renderer=u(je);_uniqueId=u(Ze).getId("mat-radio-");_cleanupClick;id=this._uniqueId;name;ariaLabel;ariaLabelledby;ariaDescribedby;disableRipple=!1;tabIndex=0;get checked(){return this._checked}set checked(e){this._checked!==e&&(this._checked=e,e&&this.radioGroup&&this.radioGroup.value!==this.value?this.radioGroup.selected=this:!e&&this.radioGroup&&this.radioGroup.value===this.value&&(this.radioGroup.selected=null),e&&this._radioDispatcher.notify(this.id,this.name),this._changeDetector.markForCheck())}get value(){return this._value}set value(e){this._value!==e&&(this._value=e,this.radioGroup!==null&&(this.checked||(this.checked=this.radioGroup.value===e),this.checked&&(this.radioGroup.selected=this)))}get labelPosition(){return this._labelPosition||this.radioGroup&&this.radioGroup.labelPosition||"after"}set labelPosition(e){this._labelPosition=e}_labelPosition;get disabled(){return this._disabled||this.radioGroup!==null&&this.radioGroup.disabled}set disabled(e){this._setDisabled(e)}get required(){return this._required||this.radioGroup&&this.radioGroup.required}set required(e){e!==this._required&&this._changeDetector.markForCheck(),this._required=e}get color(){return this._color||this.radioGroup&&this.radioGroup.color||this._defaultOptions&&this._defaultOptions.color||"accent"}set color(e){this._color=e}_color;get disabledInteractive(){return this._disabledInteractive||this.radioGroup!==null&&this.radioGroup.disabledInteractive}set disabledInteractive(e){this._disabledInteractive=e}_disabledInteractive;change=new U;radioGroup;get inputId(){return`${this.id||this._uniqueId}-input`}_checked=!1;_disabled;_required;_value=null;_removeUniqueSelectionListener=()=>{};_previousTabIndex;_inputElement;_rippleTrigger;_noopAnimations=Ye();_injector=u(de);constructor(){u(ut).load(Di);let e=u(E3,{optional:!0}),i=u(new Ii("tabindex"),{optional:!0});this.radioGroup=e,this._disabledInteractive=this._defaultOptions?.disabledInteractive??!1,i&&(this.tabIndex=ct(i,0))}focus(e,i){i?this._focusMonitor.focusVia(this._inputElement,i,e):this._inputElement.nativeElement.focus(e)}_markForCheck(){this._changeDetector.markForCheck()}ngOnInit(){this.radioGroup&&(this.checked=this.radioGroup.value===this._value,this.checked&&(this.radioGroup.selected=this),this.name=this.radioGroup.name),this._removeUniqueSelectionListener=this._radioDispatcher.listen((e,i)=>{e!==this.id&&i===this.name&&(this.checked=!1)})}ngDoCheck(){this._updateTabIndex()}ngAfterViewInit(){this._updateTabIndex(),this._focusMonitor.monitor(this._elementRef,!0).subscribe(e=>{!e&&this.radioGroup&&this.radioGroup._touch()}),this._ngZone.runOutsideAngular(()=>{this._cleanupClick=this._renderer.listen(this._inputElement.nativeElement,"click",this._onInputClick)})}ngOnDestroy(){this._cleanupClick?.(),this._focusMonitor.stopMonitoring(this._elementRef),this._removeUniqueSelectionListener()}_emitChangeEvent(){this.change.emit(new vx(this,this._value))}_isRippleDisabled(){return this.disableRipple||this.disabled}_onInputInteraction(e){if(e.stopPropagation(),!this.checked&&!this.disabled){let i=this.radioGroup&&this.value!==this.radioGroup.value;this.checked=!0,this._emitChangeEvent(),this.radioGroup&&(this.radioGroup._controlValueAccessorChangeFn(this.value),i&&this.radioGroup._emitChangeEvent())}}_onTouchTargetClick(e){this._onInputInteraction(e),(!this.disabled||this.disabledInteractive)&&this._inputElement?.nativeElement.focus()}_setDisabled(e){this._disabled!==e&&(this._disabled=e,this._changeDetector.markForCheck())}_onInputClick=e=>{this.disabled&&this.disabledInteractive&&e.preventDefault()};_updateTabIndex(){let e=this.radioGroup,i;if(!e||!e.selected||this.disabled?i=this.tabIndex:i=e.selected===this?this.tabIndex:-1,i!==this._previousTabIndex){let r=this._inputElement?.nativeElement;r&&(r.setAttribute("tabindex",i+""),this._previousTabIndex=i,pt(()=>{queueMicrotask(()=>{e&&e.selected&&e.selected!==this&&document.activeElement===r&&(e.selected?._inputElement.nativeElement.focus(),document.activeElement===r&&this._inputElement.nativeElement.blur())})},{injector:this._injector}))}}static \u0275fac=function(i){return new(i||t)};static \u0275cmp=E({type:t,selectors:[["mat-radio-button"]],viewQuery:function(i,r){if(i&1&&(ie(Rte,5),ie(Pte,7,q)),i&2){let o;B(o=j())&&(r._inputElement=o.first),B(o=j())&&(r._rippleTrigger=o.first)}},hostAttrs:[1,"mat-mdc-radio-button"],hostVars:19,hostBindings:function(i,r){i&1&&S("focus",function(){return r._inputElement.nativeElement.focus()}),i&2&&(X("id",r.id)("tabindex",null)("aria-label",null)("aria-labelledby",null)("aria-describedby",null),G("mat-primary",r.color==="primary")("mat-accent",r.color==="accent")("mat-warn",r.color==="warn")("mat-mdc-radio-checked",r.checked)("mat-mdc-radio-disabled",r.disabled)("mat-mdc-radio-disabled-interactive",r.disabledInteractive)("_mat-animation-noopable",r._noopAnimations))},inputs:{id:"id",name:"name",ariaLabel:[0,"aria-label","ariaLabel"],ariaLabelledby:[0,"aria-labelledby","ariaLabelledby"],ariaDescribedby:[0,"aria-describedby","ariaDescribedby"],disableRipple:[2,"disableRipple","disableRipple",V],tabIndex:[2,"tabIndex","tabIndex",e=>e==null?0:ct(e)],checked:[2,"checked","checked",V],value:"value",labelPosition:"labelPosition",disabled:[2,"disabled","disabled",V],required:[2,"required","required",V],color:"color",disabledInteractive:[2,"disabledInteractive","disabledInteractive",V]},outputs:{change:"change"},exportAs:["matRadioButton"],ngContentSelectors:Fte,decls:13,vars:17,consts:[["formField",""],["input",""],["mat-internal-form-field","",3,"labelPosition"],[1,"mdc-radio"],[1,"mat-mdc-radio-touch-target",3,"click"],["type","radio","aria-invalid","false",1,"mdc-radio__native-control",3,"change","id","checked","disabled","required"],[1,"mdc-radio__background"],[1,"mdc-radio__outer-circle"],[1,"mdc-radio__inner-circle"],["mat-ripple","",1,"mat-radio-ripple","mat-focus-indicator",3,"matRippleTrigger","matRippleDisabled","matRippleCentered"],[1,"mat-ripple-element","mat-radio-persistent-ripple"],[1,"mdc-label",3,"for"]],template:function(i,r){if(i&1){let o=Y();Me(),h(0,"div",2,0)(2,"div",3)(3,"div",4),S("click",function(s){return I(o),A(r._onTouchTargetClick(s))}),p(),h(4,"input",5,1),S("change",function(s){return I(o),A(r._onInputInteraction(s))}),p(),h(6,"div",6),k(7,"div",7)(8,"div",8),p(),h(9,"div",9),k(10,"div",10),p()(),h(11,"label",11),oe(12),p()()}i&2&&(y("labelPosition",r.labelPosition),g(2),G("mdc-radio--disabled",r.disabled),g(2),y("id",r.inputId)("checked",r.checked)("disabled",r.disabled&&!r.disabledInteractive)("required",r.required),X("name",r.name)("value",r.value)("aria-label",r.ariaLabel)("aria-labelledby",r.ariaLabelledby)("aria-describedby",r.ariaDescribedby)("aria-disabled",r.disabled&&r.disabledInteractive?"true":null),g(5),y("matRippleTrigger",r._rippleTrigger.nativeElement)("matRippleDisabled",r._isRippleDisabled())("matRippleCentered",!0),g(2),y("for",r.inputId))},dependencies:[Vn,Gm],styles:[`.mat-mdc-radio-button{-webkit-tap-highlight-color:rgba(0,0,0,0)}.mat-mdc-radio-button .mdc-radio{display:inline-block;position:relative;flex:0 0 auto;box-sizing:content-box;width:20px;height:20px;cursor:pointer;will-change:opacity,transform,border-color,color;padding:calc((var(--mat-radio-state-layer-size, 40px) - 20px)/2)}.mat-mdc-radio-button .mdc-radio:hover>.mdc-radio__native-control:not([disabled]):not(:focus)~.mdc-radio__background::before{opacity:.04;transform:scale(1)}.mat-mdc-radio-button .mdc-radio:hover>.mdc-radio__native-control:not([disabled])~.mdc-radio__background>.mdc-radio__outer-circle{border-color:var(--mat-radio-unselected-hover-icon-color, var(--mat-sys-on-surface))}.mat-mdc-radio-button .mdc-radio:hover>.mdc-radio__native-control:enabled:checked+.mdc-radio__background>.mdc-radio__outer-circle{border-color:var(--mat-radio-selected-hover-icon-color, var(--mat-sys-primary))}.mat-mdc-radio-button .mdc-radio:hover>.mdc-radio__native-control:enabled:checked+.mdc-radio__background>.mdc-radio__inner-circle{background-color:var(--mat-radio-selected-hover-icon-color, var(--mat-sys-primary, currentColor))}.mat-mdc-radio-button .mdc-radio:active>.mdc-radio__native-control:enabled:not(:checked)+.mdc-radio__background>.mdc-radio__outer-circle{border-color:var(--mat-radio-unselected-pressed-icon-color, var(--mat-sys-on-surface))}.mat-mdc-radio-button .mdc-radio:active>.mdc-radio__native-control:enabled:checked+.mdc-radio__background>.mdc-radio__outer-circle{border-color:var(--mat-radio-selected-pressed-icon-color, var(--mat-sys-primary))}.mat-mdc-radio-button .mdc-radio:active>.mdc-radio__native-control:enabled:checked+.mdc-radio__background>.mdc-radio__inner-circle{background-color:var(--mat-radio-selected-pressed-icon-color, var(--mat-sys-primary, currentColor))}.mat-mdc-radio-button .mdc-radio__background{display:inline-block;position:relative;box-sizing:border-box;width:20px;height:20px}.mat-mdc-radio-button .mdc-radio__background::before{position:absolute;transform:scale(0, 0);border-radius:50%;opacity:0;pointer-events:none;content:"";transition:opacity 90ms cubic-bezier(0.4, 0, 0.6, 1),transform 90ms cubic-bezier(0.4, 0, 0.6, 1);width:var(--mat-radio-state-layer-size, 40px);height:var(--mat-radio-state-layer-size, 40px);top:calc(-1*(var(--mat-radio-state-layer-size, 40px) - 20px)/2);left:calc(-1*(var(--mat-radio-state-layer-size, 40px) - 20px)/2)}.mat-mdc-radio-button .mdc-radio__outer-circle{position:absolute;top:0;left:0;box-sizing:border-box;width:100%;height:100%;border-width:2px;border-style:solid;border-radius:50%;transition:border-color 90ms cubic-bezier(0.4, 0, 0.6, 1)}.mat-mdc-radio-button .mdc-radio__inner-circle{position:absolute;top:0;left:0;box-sizing:border-box;width:100%;height:100%;transform:scale(0);border-radius:50%;transition:transform 90ms cubic-bezier(0.4, 0, 0.6, 1),background-color 90ms cubic-bezier(0.4, 0, 0.6, 1)}@media(forced-colors: active){.mat-mdc-radio-button .mdc-radio__inner-circle{background-color:CanvasText !important}}.mat-mdc-radio-button .mdc-radio__native-control{position:absolute;margin:0;padding:0;opacity:0;top:0;right:0;left:0;cursor:inherit;z-index:1;width:var(--mat-radio-state-layer-size, 40px);height:var(--mat-radio-state-layer-size, 40px)}.mat-mdc-radio-button .mdc-radio__native-control:checked+.mdc-radio__background,.mat-mdc-radio-button .mdc-radio__native-control:disabled+.mdc-radio__background{transition:opacity 90ms cubic-bezier(0, 0, 0.2, 1),transform 90ms cubic-bezier(0, 0, 0.2, 1)}.mat-mdc-radio-button .mdc-radio__native-control:checked+.mdc-radio__background>.mdc-radio__outer-circle,.mat-mdc-radio-button .mdc-radio__native-control:disabled+.mdc-radio__background>.mdc-radio__outer-circle{transition:border-color 90ms cubic-bezier(0, 0, 0.2, 1)}.mat-mdc-radio-button .mdc-radio__native-control:checked+.mdc-radio__background>.mdc-radio__inner-circle,.mat-mdc-radio-button .mdc-radio__native-control:disabled+.mdc-radio__background>.mdc-radio__inner-circle{transition:transform 90ms cubic-bezier(0, 0, 0.2, 1),background-color 90ms cubic-bezier(0, 0, 0.2, 1)}.mat-mdc-radio-button .mdc-radio__native-control:focus+.mdc-radio__background::before{transform:scale(1);opacity:.12;transition:opacity 90ms cubic-bezier(0, 0, 0.2, 1),transform 90ms cubic-bezier(0, 0, 0.2, 1)}.mat-mdc-radio-button .mdc-radio__native-control:disabled:not(:checked)+.mdc-radio__background>.mdc-radio__outer-circle{border-color:var(--mat-radio-disabled-unselected-icon-color, var(--mat-sys-on-surface));opacity:var(--mat-radio-disabled-unselected-icon-opacity, 0.38)}.mat-mdc-radio-button .mdc-radio__native-control:disabled+.mdc-radio__background{cursor:default}.mat-mdc-radio-button .mdc-radio__native-control:disabled+.mdc-radio__background>.mdc-radio__outer-circle{border-color:var(--mat-radio-disabled-selected-icon-color, var(--mat-sys-on-surface));opacity:var(--mat-radio-disabled-selected-icon-opacity, 0.38)}.mat-mdc-radio-button .mdc-radio__native-control:disabled+.mdc-radio__background>.mdc-radio__inner-circle{background-color:var(--mat-radio-disabled-selected-icon-color, var(--mat-sys-on-surface, currentColor));opacity:var(--mat-radio-disabled-selected-icon-opacity, 0.38)}.mat-mdc-radio-button .mdc-radio__native-control:enabled:not(:checked)+.mdc-radio__background>.mdc-radio__outer-circle{border-color:var(--mat-radio-unselected-icon-color, var(--mat-sys-on-surface-variant))}.mat-mdc-radio-button .mdc-radio__native-control:enabled:checked+.mdc-radio__background>.mdc-radio__outer-circle{border-color:var(--mat-radio-selected-icon-color, var(--mat-sys-primary))}.mat-mdc-radio-button .mdc-radio__native-control:enabled:checked+.mdc-radio__background>.mdc-radio__inner-circle{background-color:var(--mat-radio-selected-icon-color, var(--mat-sys-primary, currentColor))}.mat-mdc-radio-button .mdc-radio__native-control:enabled:focus:checked+.mdc-radio__background>.mdc-radio__outer-circle{border-color:var(--mat-radio-selected-focus-icon-color, var(--mat-sys-primary))}.mat-mdc-radio-button .mdc-radio__native-control:enabled:focus:checked+.mdc-radio__background>.mdc-radio__inner-circle{background-color:var(--mat-radio-selected-focus-icon-color, var(--mat-sys-primary, currentColor))}.mat-mdc-radio-button .mdc-radio__native-control:checked+.mdc-radio__background>.mdc-radio__inner-circle{transform:scale(0.5);transition:transform 90ms cubic-bezier(0, 0, 0.2, 1),background-color 90ms cubic-bezier(0, 0, 0.2, 1)}.mat-mdc-radio-button.mat-mdc-radio-disabled-interactive .mdc-radio--disabled{pointer-events:auto}.mat-mdc-radio-button.mat-mdc-radio-disabled-interactive .mdc-radio--disabled .mdc-radio__native-control:not(:checked)+.mdc-radio__background>.mdc-radio__outer-circle{border-color:var(--mat-radio-disabled-unselected-icon-color, var(--mat-sys-on-surface));opacity:var(--mat-radio-disabled-unselected-icon-opacity, 0.38)}.mat-mdc-radio-button.mat-mdc-radio-disabled-interactive .mdc-radio--disabled:hover .mdc-radio__native-control:checked+.mdc-radio__background>.mdc-radio__outer-circle,.mat-mdc-radio-button.mat-mdc-radio-disabled-interactive .mdc-radio--disabled .mdc-radio__native-control:checked:focus+.mdc-radio__background>.mdc-radio__outer-circle,.mat-mdc-radio-button.mat-mdc-radio-disabled-interactive .mdc-radio--disabled .mdc-radio__native-control+.mdc-radio__background>.mdc-radio__outer-circle{border-color:var(--mat-radio-disabled-selected-icon-color, var(--mat-sys-on-surface));opacity:var(--mat-radio-disabled-selected-icon-opacity, 0.38)}.mat-mdc-radio-button.mat-mdc-radio-disabled-interactive .mdc-radio--disabled:hover .mdc-radio__native-control:checked+.mdc-radio__background>.mdc-radio__inner-circle,.mat-mdc-radio-button.mat-mdc-radio-disabled-interactive .mdc-radio--disabled .mdc-radio__native-control:checked:focus+.mdc-radio__background>.mdc-radio__inner-circle,.mat-mdc-radio-button.mat-mdc-radio-disabled-interactive .mdc-radio--disabled .mdc-radio__native-control+.mdc-radio__background>.mdc-radio__inner-circle{background-color:var(--mat-radio-disabled-selected-icon-color, var(--mat-sys-on-surface, currentColor));opacity:var(--mat-radio-disabled-selected-icon-opacity, 0.38)}.mat-mdc-radio-button._mat-animation-noopable .mdc-radio__background::before,.mat-mdc-radio-button._mat-animation-noopable .mdc-radio__outer-circle,.mat-mdc-radio-button._mat-animation-noopable .mdc-radio__inner-circle{transition:none !important}.mat-mdc-radio-button label{cursor:pointer}.mat-mdc-radio-button .mdc-radio__background::before{background-color:var(--mat-radio-ripple-color, var(--mat-sys-on-surface))}.mat-mdc-radio-button.mat-mdc-radio-checked .mat-ripple-element,.mat-mdc-radio-button.mat-mdc-radio-checked .mdc-radio__background::before{background-color:var(--mat-radio-checked-ripple-color, var(--mat-sys-primary))}.mat-mdc-radio-button.mat-mdc-radio-disabled-interactive .mdc-radio--disabled .mat-ripple-element,.mat-mdc-radio-button.mat-mdc-radio-disabled-interactive .mdc-radio--disabled .mdc-radio__background::before{background-color:var(--mat-radio-ripple-color, var(--mat-sys-on-surface))}.mat-mdc-radio-button .mat-internal-form-field{color:var(--mat-radio-label-text-color, var(--mat-sys-on-surface));font-family:var(--mat-radio-label-text-font, var(--mat-sys-body-medium-font));line-height:var(--mat-radio-label-text-line-height, var(--mat-sys-body-medium-line-height));font-size:var(--mat-radio-label-text-size, var(--mat-sys-body-medium-size));letter-spacing:var(--mat-radio-label-text-tracking, var(--mat-sys-body-medium-tracking));font-weight:var(--mat-radio-label-text-weight, var(--mat-sys-body-medium-weight))}.mat-mdc-radio-button .mdc-radio--disabled+label{color:var(--mat-radio-disabled-label-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent))}.mat-mdc-radio-button .mat-radio-ripple{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none;border-radius:50%}.mat-mdc-radio-button .mat-radio-ripple>.mat-ripple-element{opacity:.14}.mat-mdc-radio-button .mat-radio-ripple::before{border-radius:50%}.mat-mdc-radio-button .mdc-radio>.mdc-radio__native-control:focus:enabled:not(:checked)~.mdc-radio__background>.mdc-radio__outer-circle{border-color:var(--mat-radio-unselected-focus-icon-color, var(--mat-sys-on-surface))}.mat-mdc-radio-button.cdk-focused .mat-focus-indicator::before{content:""}.mat-mdc-radio-disabled{cursor:default;pointer-events:none}.mat-mdc-radio-disabled.mat-mdc-radio-disabled-interactive{pointer-events:auto}.mat-mdc-radio-touch-target{position:absolute;top:50%;left:50%;height:var(--mat-radio-touch-target-size, 48px);width:var(--mat-radio-touch-target-size, 48px);transform:translate(-50%, -50%);display:var(--mat-radio-touch-target-display, block)}[dir=rtl] .mat-mdc-radio-touch-target{left:auto;right:50%;transform:translate(50%, -50%)} -`],encapsulation:2,changeDetection:0})}return t})();var jte=(()=>{let n=class n{transform(i,r){return i instanceof Fe?this.dispose():i=this.observableOf(i,r),i.pipe(se(o=>this.transformOptions(o,r)))}ngOnDestroy(){this.dispose()}transformOptions(i,r){let o=this.transformSelectProps(r),a=[],s={};return i?.forEach(l=>{let c=this.transformOption(l,o);if(c.group){let d=s[c.label];d===void 0?s[c.label]=a.push(c)-1:c.group.forEach(m=>a[d].group.push(m))}else a.push(c)}),a}transformOption(i,r){let o=r.groupProp(i);return Array.isArray(o)?{label:r.labelProp(i),group:o.map(a=>this.transformOption(a,r))}:(i={label:r.labelProp(i),value:r.valueProp(i),disabled:!!r.disabledProp(i)},o?{label:o,group:[i]}:i)}transformSelectProps(i){let r=i?.props||i?.templateOptions||{},o=a=>typeof a=="function"?a:s=>s[a];return{groupProp:o(r.groupProp||"group"),labelProp:o(r.labelProp||"label"),valueProp:o(r.valueProp||"value"),disabledProp:o(r.disabledProp||"disabled")}}dispose(){this._options&&(this._options.complete(),this._options=null),this._subscription&&(this._subscription.unsubscribe(),this._subscription=null)}observableOf(i,r){return this.dispose(),r&&r.options&&r.options.fieldChanges&&(this._subscription=r.options.fieldChanges.pipe(ce(({property:o,type:a,field:s})=>a==="expressionChanges"&&(o.indexOf("templateOptions.options")===0||o.indexOf("props.options")===0)&&s===r&&Array.isArray(s.props.options)&&!!this._options),Be(()=>this._options.next(r.props.options))).subscribe()),this._options=new tt(i),this._options.asObservable()}};n.\u0275fac=function(r){return new(r||n)},n.\u0275pipe=Wr({name:"formlySelectOptions",type:n,pure:!0});let t=n;return t})(),Eh=(()=>{let n=class n extends jte{};n.\u0275fac=(()=>{let i;return function(o){return(i||(i=fe(n)))(o||n)}})(),n.\u0275pipe=Wr({name:"formlySelectOptions",type:n,pure:!0,standalone:!1});let t=n;return t})();function Hte(t,n){if(t&1&&(h(0,"mat-radio-button",1),_(1),p()),t&2){let e=n.$implicit,i=n.$index,r=C();y("id",r.id+"_"+i)("color",r.props.color)("labelPosition",r.props.labelPosition)("disabled",e.disabled)("value",e.value),g(),ve(" ",e.label," ")}}var zte=(()=>{let n=class n extends to{constructor(){super(...arguments),this.defaultOptions={props:{hideFieldUnderline:!0,floatLabel:"always",tabindex:-1}}}ngAfterViewInit(){this.focusObserver=Wi(this.field,["focus"],({currentValue:i})=>{this.props.tabindex===-1&&i&&this.radioGroup._radios.length>0&&setTimeout(()=>{(this.radioGroup.selected?this.radioGroup.selected:this.radioGroup._radios.first).focus()})})}onContainerClick(){}ngOnDestroy(){super.ngOnDestroy(),this.focusObserver&&this.focusObserver.unsubscribe()}};n.\u0275fac=(()=>{let i;return function(o){return(i||(i=fe(n)))(o||n)}})(),n.\u0275cmp=E({type:n,selectors:[["formly-field-mat-radio"]],viewQuery:function(r,o){if(r&1&&ie(Dg,7),r&2){let a;B(a=j())&&(o.radioGroup=a.first)}},standalone:!1,features:[le],decls:5,vars:9,consts:[[3,"formControl","formlyAttributes","required","tabindex"],[3,"id","color","labelPosition","disabled","value"]],template:function(r,o){r&1&&(h(0,"mat-radio-group",0),xt(1,Hte,2,6,"mat-radio-button",1,Hi),me(3,"formlySelectOptions"),me(4,"async"),p()),r&2&&(y("formControl",o.formControl)("formlyAttributes",o.field)("required",o.required)("tabindex",o.props.tabindex),g(),Ct(Oe(4,7,Ni(3,4,o.props.options,o.field))))},dependencies:[ei,Do,wo,Dg,vS,ta,rn,Eh],encapsulation:2,changeDetection:0});let t=n;return t})();function M3(){return{types:[{name:"radio",component:zte,wrappers:["form-field"]}]}}var Ute=["input"],$te=["label"],Wte=["*"],Gte=new T("mat-checkbox-default-options",{providedIn:"root",factory:S3});function S3(){return{color:"accent",clickAction:"check-indeterminate",disabledInteractive:!1}}var xr=(function(t){return t[t.Init=0]="Init",t[t.Checked=1]="Checked",t[t.Unchecked=2]="Unchecked",t[t.Indeterminate=3]="Indeterminate",t})(xr||{}),xS=class{source;checked},k3=S3(),Va=(()=>{class t{_elementRef=u(q);_changeDetectorRef=u(ye);_ngZone=u(ae);_animationsDisabled=Ye();_options=u(Gte,{optional:!0});focus(){this._inputElement.nativeElement.focus()}_createChangeEvent(e){let i=new xS;return i.source=this,i.checked=e,i}_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;labelPosition="after";name=null;change=new U;indeterminateChange=new U;value;disableRipple;_inputElement;_labelElement;tabIndex;color;disabledInteractive;_onTouched=()=>{};_currentAnimationClass="";_currentCheckState=xr.Init;_controlValueAccessorChangeFn=()=>{};_validatorChangeFn=()=>{};constructor(){u(ut).load(Di);let e=u(new Ii("tabindex"),{optional:!0});this._options=this._options||k3,this.color=this._options.color||k3.color,this.tabIndex=e==null?0:parseInt(e)||0,this.id=this._uniqueId=u(Ze).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 i=e!=this._indeterminate();this._indeterminate.set(e),i&&(e?this._transitionCheckState(xr.Indeterminate):this._transitionCheckState(this.checked?xr.Checked:xr.Unchecked),this.indeterminateChange.emit(e)),this._syncIndeterminate(e)}_indeterminate=he(!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 i=this._currentCheckState,r=this._getAnimationTargetElement();if(!(i===e||!r)&&(this._currentAnimationClass&&r.classList.remove(this._currentAnimationClass),this._currentAnimationClass=this._getAnimationClassForCheckStateTransition(i,e),this._currentCheckState=e,this._currentAnimationClass.length>0)){r.classList.add(this._currentAnimationClass);let o=this._currentAnimationClass;this._ngZone.runOutsideAngular(()=>{setTimeout(()=>{r.classList.remove(o)},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?xr.Checked:xr.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,i){if(this._animationsDisabled)return"";switch(e){case xr.Init:if(i===xr.Checked)return this._animationClasses.uncheckedToChecked;if(i==xr.Indeterminate)return this._checked?this._animationClasses.checkedToIndeterminate:this._animationClasses.uncheckedToIndeterminate;break;case xr.Unchecked:return i===xr.Checked?this._animationClasses.uncheckedToChecked:this._animationClasses.uncheckedToIndeterminate;case xr.Checked:return i===xr.Unchecked?this._animationClasses.checkedToUnchecked:this._animationClasses.checkedToIndeterminate;case xr.Indeterminate:return i===xr.Checked?this._animationClasses.indeterminateToChecked:this._animationClasses.indeterminateToUnchecked}return""}_syncIndeterminate(e){let i=this._inputElement;i&&(i.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(i){return new(i||t)};static \u0275cmp=E({type:t,selectors:[["mat-checkbox"]],viewQuery:function(i,r){if(i&1&&(ie(Ute,5),ie($te,5)),i&2){let o;B(o=j())&&(r._inputElement=o.first),B(o=j())&&(r._labelElement=o.first)}},hostAttrs:[1,"mat-mdc-checkbox"],hostVars:16,hostBindings:function(i,r){i&2&&(si("id",r.id),X("tabindex",null)("aria-label",null)("aria-labelledby",null),it(r.color?"mat-"+r.color:"mat-accent"),G("_mat-animation-noopable",r._animationsDisabled)("mdc-checkbox--disabled",r.disabled)("mat-mdc-checkbox-disabled",r.disabled)("mat-mdc-checkbox-checked",r.checked)("mat-mdc-checkbox-disabled-interactive",r.disabledInteractive))},inputs:{ariaLabel:[0,"aria-label","ariaLabel"],ariaLabelledby:[0,"aria-labelledby","ariaLabelledby"],ariaDescribedby:[0,"aria-describedby","ariaDescribedby"],ariaExpanded:[2,"aria-expanded","ariaExpanded",V],ariaControls:[0,"aria-controls","ariaControls"],ariaOwns:[0,"aria-owns","ariaOwns"],id:"id",required:[2,"required","required",V],labelPosition:"labelPosition",name:"name",value:"value",disableRipple:[2,"disableRipple","disableRipple",V],tabIndex:[2,"tabIndex","tabIndex",e=>e==null?void 0:ct(e)],color:"color",disabledInteractive:[2,"disabledInteractive","disabledInteractive",V],checked:[2,"checked","checked",V],disabled:[2,"disabled","disabled",V],indeterminate:[2,"indeterminate","indeterminate",V]},outputs:{change:"change",indeterminateChange:"indeterminateChange"},exportAs:["matCheckbox"],features:[Ce([{provide:tr,useExisting:Kt(()=>t),multi:!0},{provide:ea,useExisting:t,multi:!0}]),Ae],ngContentSelectors:Wte,decls:15,vars:23,consts:[["checkbox",""],["input",""],["label",""],["mat-internal-form-field","",3,"click","labelPosition"],[1,"mdc-checkbox"],[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"],[1,"mdc-checkbox__ripple"],[1,"mdc-checkbox__background"],["focusable","false","viewBox","0 0 24 24","aria-hidden","true",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","",1,"mat-mdc-checkbox-ripple","mat-focus-indicator",3,"matRippleTrigger","matRippleDisabled","matRippleCentered"],[1,"mdc-label",3,"for"]],template:function(i,r){if(i&1){let o=Y();Me(),h(0,"div",3),S("click",function(s){return I(o),A(r._preventBubblingFromLabel(s))}),h(1,"div",4,0)(3,"div",5),S("click",function(){return I(o),A(r._onTouchTargetClick())}),p(),h(4,"input",6,1),S("blur",function(){return I(o),A(r._onBlur())})("click",function(){return I(o),A(r._onInputClick())})("change",function(s){return I(o),A(r._onInteractionEvent(s))}),p(),k(6,"div",7),h(7,"div",8),Gt(),h(8,"svg",9),k(9,"path",10),p(),jo(),k(10,"div",11),p(),k(11,"div",12),p(),h(12,"label",13,2),oe(14),p()()}if(i&2){let o=Se(2);y("labelPosition",r.labelPosition),g(4),G("mdc-checkbox--selected",r.checked),y("checked",r.checked)("indeterminate",r.indeterminate)("disabled",r.disabled&&!r.disabledInteractive)("id",r.inputId)("required",r.required)("tabIndex",r.disabled&&!r.disabledInteractive?-1:r.tabIndex),X("aria-label",r.ariaLabel||null)("aria-labelledby",r.ariaLabelledby)("aria-describedby",r.ariaDescribedby)("aria-checked",r.indeterminate?"mixed":null)("aria-controls",r.ariaControls)("aria-disabled",r.disabled&&r.disabledInteractive?!0:null)("aria-expanded",r.ariaExpanded)("aria-owns",r.ariaOwns)("name",r.name)("value",r.value),g(7),y("matRippleTrigger",o)("matRippleDisabled",r.disableRipple||r.disabled)("matRippleCentered",!0),g(),y("for",r.inputId)}},dependencies:[Vn,Gm],styles:[`.mdc-checkbox{display:inline-block;position:relative;flex:0 0 18px;box-sizing:content-box;width:18px;height:18px;line-height:0;white-space:nowrap;cursor:pointer;vertical-align:bottom;padding:calc((var(--mat-checkbox-state-layer-size, 40px) - 18px)/2);margin:calc((var(--mat-checkbox-state-layer-size, 40px) - var(--mat-checkbox-state-layer-size, 40px))/2)}.mdc-checkbox:hover>.mdc-checkbox__ripple{opacity:var(--mat-checkbox-unselected-hover-state-layer-opacity, var(--mat-sys-hover-state-layer-opacity));background-color:var(--mat-checkbox-unselected-hover-state-layer-color, var(--mat-sys-on-surface))}.mdc-checkbox:hover>.mat-mdc-checkbox-ripple>.mat-ripple-element{background-color:var(--mat-checkbox-unselected-hover-state-layer-color, var(--mat-sys-on-surface))}.mdc-checkbox .mdc-checkbox__native-control:focus+.mdc-checkbox__ripple{opacity:var(--mat-checkbox-unselected-focus-state-layer-opacity, var(--mat-sys-focus-state-layer-opacity));background-color:var(--mat-checkbox-unselected-focus-state-layer-color, var(--mat-sys-on-surface))}.mdc-checkbox .mdc-checkbox__native-control:focus~.mat-mdc-checkbox-ripple .mat-ripple-element{background-color:var(--mat-checkbox-unselected-focus-state-layer-color, var(--mat-sys-on-surface))}.mdc-checkbox:active>.mdc-checkbox__native-control+.mdc-checkbox__ripple{opacity:var(--mat-checkbox-unselected-pressed-state-layer-opacity, var(--mat-sys-pressed-state-layer-opacity));background-color:var(--mat-checkbox-unselected-pressed-state-layer-color, var(--mat-sys-primary))}.mdc-checkbox:active>.mdc-checkbox__native-control~.mat-mdc-checkbox-ripple .mat-ripple-element{background-color:var(--mat-checkbox-unselected-pressed-state-layer-color, var(--mat-sys-primary))}.mdc-checkbox:hover .mdc-checkbox__native-control:checked+.mdc-checkbox__ripple{opacity:var(--mat-checkbox-selected-hover-state-layer-opacity, var(--mat-sys-hover-state-layer-opacity));background-color:var(--mat-checkbox-selected-hover-state-layer-color, var(--mat-sys-primary))}.mdc-checkbox:hover .mdc-checkbox__native-control:checked~.mat-mdc-checkbox-ripple .mat-ripple-element{background-color:var(--mat-checkbox-selected-hover-state-layer-color, var(--mat-sys-primary))}.mdc-checkbox .mdc-checkbox__native-control:focus:checked+.mdc-checkbox__ripple{opacity:var(--mat-checkbox-selected-focus-state-layer-opacity, var(--mat-sys-focus-state-layer-opacity));background-color:var(--mat-checkbox-selected-focus-state-layer-color, var(--mat-sys-primary))}.mdc-checkbox .mdc-checkbox__native-control:focus:checked~.mat-mdc-checkbox-ripple .mat-ripple-element{background-color:var(--mat-checkbox-selected-focus-state-layer-color, var(--mat-sys-primary))}.mdc-checkbox:active>.mdc-checkbox__native-control:checked+.mdc-checkbox__ripple{opacity:var(--mat-checkbox-selected-pressed-state-layer-opacity, var(--mat-sys-pressed-state-layer-opacity));background-color:var(--mat-checkbox-selected-pressed-state-layer-color, var(--mat-sys-on-surface))}.mdc-checkbox:active>.mdc-checkbox__native-control:checked~.mat-mdc-checkbox-ripple .mat-ripple-element{background-color:var(--mat-checkbox-selected-pressed-state-layer-color, var(--mat-sys-on-surface))}.mdc-checkbox--disabled.mat-mdc-checkbox-disabled-interactive .mdc-checkbox .mdc-checkbox__native-control~.mat-mdc-checkbox-ripple .mat-ripple-element,.mdc-checkbox--disabled.mat-mdc-checkbox-disabled-interactive .mdc-checkbox .mdc-checkbox__native-control+.mdc-checkbox__ripple{background-color:var(--mat-checkbox-unselected-hover-state-layer-color, var(--mat-sys-on-surface))}.mdc-checkbox .mdc-checkbox__native-control{position:absolute;margin:0;padding:0;opacity:0;cursor:inherit;z-index:1;width:var(--mat-checkbox-state-layer-size, 40px);height:var(--mat-checkbox-state-layer-size, 40px);top:calc((var(--mat-checkbox-state-layer-size, 40px) - var(--mat-checkbox-state-layer-size, 40px))/2);right:calc((var(--mat-checkbox-state-layer-size, 40px) - var(--mat-checkbox-state-layer-size, 40px))/2);left:calc((var(--mat-checkbox-state-layer-size, 40px) - var(--mat-checkbox-state-layer-size, 40px))/2)}.mdc-checkbox--disabled{cursor:default;pointer-events:none}.mdc-checkbox__background{display:inline-flex;position:absolute;align-items:center;justify-content:center;box-sizing:border-box;width:18px;height:18px;border:2px solid currentColor;border-radius:2px;background-color:rgba(0,0,0,0);pointer-events:none;will-change:background-color,border-color;transition:background-color 90ms cubic-bezier(0.4, 0, 0.6, 1),border-color 90ms cubic-bezier(0.4, 0, 0.6, 1);-webkit-print-color-adjust:exact;color-adjust:exact;border-color:var(--mat-checkbox-unselected-icon-color, var(--mat-sys-on-surface-variant));top:calc((var(--mat-checkbox-state-layer-size, 40px) - 18px)/2);left:calc((var(--mat-checkbox-state-layer-size, 40px) - 18px)/2)}.mdc-checkbox__native-control:enabled:checked~.mdc-checkbox__background,.mdc-checkbox__native-control:enabled:indeterminate~.mdc-checkbox__background{border-color:var(--mat-checkbox-selected-icon-color, var(--mat-sys-primary));background-color:var(--mat-checkbox-selected-icon-color, var(--mat-sys-primary))}.mdc-checkbox--disabled .mdc-checkbox__background{border-color:var(--mat-checkbox-disabled-unselected-icon-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent))}@media(forced-colors: active){.mdc-checkbox--disabled .mdc-checkbox__background{border-color:GrayText}}.mdc-checkbox__native-control:disabled:checked~.mdc-checkbox__background,.mdc-checkbox__native-control:disabled:indeterminate~.mdc-checkbox__background{background-color:var(--mat-checkbox-disabled-selected-icon-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent));border-color:rgba(0,0,0,0)}@media(forced-colors: active){.mdc-checkbox__native-control:disabled:checked~.mdc-checkbox__background,.mdc-checkbox__native-control:disabled:indeterminate~.mdc-checkbox__background{border-color:GrayText}}.mdc-checkbox:hover>.mdc-checkbox__native-control:not(:checked)~.mdc-checkbox__background,.mdc-checkbox:hover>.mdc-checkbox__native-control:not(:indeterminate)~.mdc-checkbox__background{border-color:var(--mat-checkbox-unselected-hover-icon-color, var(--mat-sys-on-surface));background-color:rgba(0,0,0,0)}.mdc-checkbox:hover>.mdc-checkbox__native-control:checked~.mdc-checkbox__background,.mdc-checkbox:hover>.mdc-checkbox__native-control:indeterminate~.mdc-checkbox__background{border-color:var(--mat-checkbox-selected-hover-icon-color, var(--mat-sys-primary));background-color:var(--mat-checkbox-selected-hover-icon-color, var(--mat-sys-primary))}.mdc-checkbox__native-control:focus:focus:not(:checked)~.mdc-checkbox__background,.mdc-checkbox__native-control:focus:focus:not(:indeterminate)~.mdc-checkbox__background{border-color:var(--mat-checkbox-unselected-focus-icon-color, var(--mat-sys-on-surface))}.mdc-checkbox__native-control:focus:focus:checked~.mdc-checkbox__background,.mdc-checkbox__native-control:focus:focus:indeterminate~.mdc-checkbox__background{border-color:var(--mat-checkbox-selected-focus-icon-color, var(--mat-sys-primary));background-color:var(--mat-checkbox-selected-focus-icon-color, var(--mat-sys-primary))}.mdc-checkbox--disabled.mat-mdc-checkbox-disabled-interactive .mdc-checkbox:hover>.mdc-checkbox__native-control~.mdc-checkbox__background,.mdc-checkbox--disabled.mat-mdc-checkbox-disabled-interactive .mdc-checkbox .mdc-checkbox__native-control:focus~.mdc-checkbox__background,.mdc-checkbox--disabled.mat-mdc-checkbox-disabled-interactive .mdc-checkbox__background{border-color:var(--mat-checkbox-disabled-unselected-icon-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent))}@media(forced-colors: active){.mdc-checkbox--disabled.mat-mdc-checkbox-disabled-interactive .mdc-checkbox:hover>.mdc-checkbox__native-control~.mdc-checkbox__background,.mdc-checkbox--disabled.mat-mdc-checkbox-disabled-interactive .mdc-checkbox .mdc-checkbox__native-control:focus~.mdc-checkbox__background,.mdc-checkbox--disabled.mat-mdc-checkbox-disabled-interactive .mdc-checkbox__background{border-color:GrayText}}.mdc-checkbox--disabled.mat-mdc-checkbox-disabled-interactive .mdc-checkbox__native-control:checked~.mdc-checkbox__background,.mdc-checkbox--disabled.mat-mdc-checkbox-disabled-interactive .mdc-checkbox__native-control:indeterminate~.mdc-checkbox__background{background-color:var(--mat-checkbox-disabled-selected-icon-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent));border-color:rgba(0,0,0,0)}.mdc-checkbox__checkmark{position:absolute;top:0;right:0;bottom:0;left:0;width:100%;opacity:0;transition:opacity 180ms cubic-bezier(0.4, 0, 0.6, 1);color:var(--mat-checkbox-selected-checkmark-color, var(--mat-sys-on-primary))}@media(forced-colors: active){.mdc-checkbox__checkmark{color:CanvasText}}.mdc-checkbox--disabled .mdc-checkbox__checkmark,.mdc-checkbox--disabled.mat-mdc-checkbox-disabled-interactive .mdc-checkbox__checkmark{color:var(--mat-checkbox-disabled-selected-checkmark-color, var(--mat-sys-surface))}@media(forced-colors: active){.mdc-checkbox--disabled .mdc-checkbox__checkmark,.mdc-checkbox--disabled.mat-mdc-checkbox-disabled-interactive .mdc-checkbox__checkmark{color:GrayText}}.mdc-checkbox__checkmark-path{transition:stroke-dashoffset 180ms cubic-bezier(0.4, 0, 0.6, 1);stroke:currentColor;stroke-width:3.12px;stroke-dashoffset:29.7833385;stroke-dasharray:29.7833385}.mdc-checkbox__mixedmark{width:100%;height:0;transform:scaleX(0) rotate(0deg);border-width:1px;border-style:solid;opacity:0;transition:opacity 90ms cubic-bezier(0.4, 0, 0.6, 1),transform 90ms cubic-bezier(0.4, 0, 0.6, 1);border-color:var(--mat-checkbox-selected-checkmark-color, var(--mat-sys-on-primary))}@media(forced-colors: active){.mdc-checkbox__mixedmark{margin:0 1px}}.mdc-checkbox--disabled .mdc-checkbox__mixedmark,.mdc-checkbox--disabled.mat-mdc-checkbox-disabled-interactive .mdc-checkbox__mixedmark{border-color:var(--mat-checkbox-disabled-selected-checkmark-color, var(--mat-sys-surface))}@media(forced-colors: active){.mdc-checkbox--disabled .mdc-checkbox__mixedmark,.mdc-checkbox--disabled.mat-mdc-checkbox-disabled-interactive .mdc-checkbox__mixedmark{border-color:GrayText}}.mdc-checkbox--anim-unchecked-checked .mdc-checkbox__background,.mdc-checkbox--anim-unchecked-indeterminate .mdc-checkbox__background,.mdc-checkbox--anim-checked-unchecked .mdc-checkbox__background,.mdc-checkbox--anim-indeterminate-unchecked .mdc-checkbox__background{animation-duration:180ms;animation-timing-function:linear}.mdc-checkbox--anim-unchecked-checked .mdc-checkbox__checkmark-path{animation:mdc-checkbox-unchecked-checked-checkmark-path 180ms linear;transition:none}.mdc-checkbox--anim-unchecked-indeterminate .mdc-checkbox__mixedmark{animation:mdc-checkbox-unchecked-indeterminate-mixedmark 90ms linear;transition:none}.mdc-checkbox--anim-checked-unchecked .mdc-checkbox__checkmark-path{animation:mdc-checkbox-checked-unchecked-checkmark-path 90ms linear;transition:none}.mdc-checkbox--anim-checked-indeterminate .mdc-checkbox__checkmark{animation:mdc-checkbox-checked-indeterminate-checkmark 90ms linear;transition:none}.mdc-checkbox--anim-checked-indeterminate .mdc-checkbox__mixedmark{animation:mdc-checkbox-checked-indeterminate-mixedmark 90ms linear;transition:none}.mdc-checkbox--anim-indeterminate-checked .mdc-checkbox__checkmark{animation:mdc-checkbox-indeterminate-checked-checkmark 500ms linear;transition:none}.mdc-checkbox--anim-indeterminate-checked .mdc-checkbox__mixedmark{animation:mdc-checkbox-indeterminate-checked-mixedmark 500ms linear;transition:none}.mdc-checkbox--anim-indeterminate-unchecked .mdc-checkbox__mixedmark{animation:mdc-checkbox-indeterminate-unchecked-mixedmark 300ms linear;transition:none}.mdc-checkbox__native-control:checked~.mdc-checkbox__background,.mdc-checkbox__native-control:indeterminate~.mdc-checkbox__background{transition:border-color 90ms cubic-bezier(0, 0, 0.2, 1),background-color 90ms cubic-bezier(0, 0, 0.2, 1)}.mdc-checkbox__native-control:checked~.mdc-checkbox__background>.mdc-checkbox__checkmark>.mdc-checkbox__checkmark-path,.mdc-checkbox__native-control:indeterminate~.mdc-checkbox__background>.mdc-checkbox__checkmark>.mdc-checkbox__checkmark-path{stroke-dashoffset:0}.mdc-checkbox__native-control:checked~.mdc-checkbox__background>.mdc-checkbox__checkmark{transition:opacity 180ms cubic-bezier(0, 0, 0.2, 1),transform 180ms cubic-bezier(0, 0, 0.2, 1);opacity:1}.mdc-checkbox__native-control:checked~.mdc-checkbox__background>.mdc-checkbox__mixedmark{transform:scaleX(1) rotate(-45deg)}.mdc-checkbox__native-control:indeterminate~.mdc-checkbox__background>.mdc-checkbox__checkmark{transform:rotate(45deg);opacity:0;transition:opacity 90ms cubic-bezier(0.4, 0, 0.6, 1),transform 90ms cubic-bezier(0.4, 0, 0.6, 1)}.mdc-checkbox__native-control:indeterminate~.mdc-checkbox__background>.mdc-checkbox__mixedmark{transform:scaleX(1) rotate(0deg);opacity:1}@keyframes mdc-checkbox-unchecked-checked-checkmark-path{0%,50%{stroke-dashoffset:29.7833385}50%{animation-timing-function:cubic-bezier(0, 0, 0.2, 1)}100%{stroke-dashoffset:0}}@keyframes mdc-checkbox-unchecked-indeterminate-mixedmark{0%,68.2%{transform:scaleX(0)}68.2%{animation-timing-function:cubic-bezier(0, 0, 0, 1)}100%{transform:scaleX(1)}}@keyframes mdc-checkbox-checked-unchecked-checkmark-path{from{animation-timing-function:cubic-bezier(0.4, 0, 1, 1);opacity:1;stroke-dashoffset:0}to{opacity:0;stroke-dashoffset:-29.7833385}}@keyframes mdc-checkbox-checked-indeterminate-checkmark{from{animation-timing-function:cubic-bezier(0, 0, 0.2, 1);transform:rotate(0deg);opacity:1}to{transform:rotate(45deg);opacity:0}}@keyframes mdc-checkbox-indeterminate-checked-checkmark{from{animation-timing-function:cubic-bezier(0.14, 0, 0, 1);transform:rotate(45deg);opacity:0}to{transform:rotate(360deg);opacity:1}}@keyframes mdc-checkbox-checked-indeterminate-mixedmark{from{animation-timing-function:cubic-bezier(0, 0, 0.2, 1);transform:rotate(-45deg);opacity:0}to{transform:rotate(0deg);opacity:1}}@keyframes mdc-checkbox-indeterminate-checked-mixedmark{from{animation-timing-function:cubic-bezier(0.14, 0, 0, 1);transform:rotate(0deg);opacity:1}to{transform:rotate(315deg);opacity:0}}@keyframes mdc-checkbox-indeterminate-unchecked-mixedmark{0%{animation-timing-function:linear;transform:scaleX(1);opacity:1}32.8%,100%{transform:scaleX(0);opacity:0}}.mat-mdc-checkbox{display:inline-block;position:relative;-webkit-tap-highlight-color:rgba(0,0,0,0)}.mat-mdc-checkbox._mat-animation-noopable>.mat-internal-form-field>.mdc-checkbox>.mat-mdc-checkbox-touch-target,.mat-mdc-checkbox._mat-animation-noopable>.mat-internal-form-field>.mdc-checkbox>.mdc-checkbox__native-control,.mat-mdc-checkbox._mat-animation-noopable>.mat-internal-form-field>.mdc-checkbox>.mdc-checkbox__ripple,.mat-mdc-checkbox._mat-animation-noopable>.mat-internal-form-field>.mdc-checkbox>.mat-mdc-checkbox-ripple::before,.mat-mdc-checkbox._mat-animation-noopable>.mat-internal-form-field>.mdc-checkbox>.mdc-checkbox__background,.mat-mdc-checkbox._mat-animation-noopable>.mat-internal-form-field>.mdc-checkbox>.mdc-checkbox__background>.mdc-checkbox__checkmark,.mat-mdc-checkbox._mat-animation-noopable>.mat-internal-form-field>.mdc-checkbox>.mdc-checkbox__background>.mdc-checkbox__checkmark>.mdc-checkbox__checkmark-path,.mat-mdc-checkbox._mat-animation-noopable>.mat-internal-form-field>.mdc-checkbox>.mdc-checkbox__background>.mdc-checkbox__mixedmark{transition:none !important;animation:none !important}.mat-mdc-checkbox label{cursor:pointer}.mat-mdc-checkbox .mat-internal-form-field{color:var(--mat-checkbox-label-text-color, var(--mat-sys-on-surface));font-family:var(--mat-checkbox-label-text-font, var(--mat-sys-body-medium-font));line-height:var(--mat-checkbox-label-text-line-height, var(--mat-sys-body-medium-line-height));font-size:var(--mat-checkbox-label-text-size, var(--mat-sys-body-medium-size));letter-spacing:var(--mat-checkbox-label-text-tracking, var(--mat-sys-body-medium-tracking));font-weight:var(--mat-checkbox-label-text-weight, var(--mat-sys-body-medium-weight))}.mat-mdc-checkbox.mat-mdc-checkbox-disabled.mat-mdc-checkbox-disabled-interactive{pointer-events:auto}.mat-mdc-checkbox.mat-mdc-checkbox-disabled.mat-mdc-checkbox-disabled-interactive input{cursor:default}.mat-mdc-checkbox.mat-mdc-checkbox-disabled label{cursor:default;color:var(--mat-checkbox-disabled-label-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent))}@media(forced-colors: active){.mat-mdc-checkbox.mat-mdc-checkbox-disabled label{color:GrayText}}.mat-mdc-checkbox label:empty{display:none}.mat-mdc-checkbox .mdc-checkbox__ripple{opacity:0}.mat-mdc-checkbox .mat-mdc-checkbox-ripple,.mdc-checkbox__ripple{top:0;left:0;right:0;bottom:0;position:absolute;border-radius:50%;pointer-events:none}.mat-mdc-checkbox .mat-mdc-checkbox-ripple:not(:empty),.mdc-checkbox__ripple:not(:empty){transform:translateZ(0)}.mat-mdc-checkbox-ripple .mat-ripple-element{opacity:.1}.mat-mdc-checkbox-touch-target{position:absolute;top:50%;left:50%;height:var(--mat-checkbox-touch-target-size, 48px);width:var(--mat-checkbox-touch-target-size, 48px);transform:translate(-50%, -50%);display:var(--mat-checkbox-touch-target-display, block)}.mat-mdc-checkbox .mat-mdc-checkbox-ripple::before{border-radius:50%}.mdc-checkbox__native-control:focus~.mat-focus-indicator::before{content:""} -`],encapsulation:2,changeDetection:0})}return t})(),yx=(()=>{class t{static \u0275fac=function(i){return new(i||t)};static \u0275mod=ee({type:t});static \u0275inj=J({imports:[Va,we,we]})}return t})();function qte(t,n){t&1&&(h(0,"span",1),_(1,"*"),p())}var Yte=(()=>{let n=class n extends to{constructor(i,r){super(),this.renderer=i,this.focusMonitor=r,this.defaultOptions={props:{hideFieldUnderline:!0,indeterminate:!0,floatLabel:"always",hideLabel:!0,color:"accent"}}}onContainerClick(i){this.checkbox.focus(),super.onContainerClick(i)}ngAfterViewInit(){this.checkbox&&this.focusMonitor.monitor(this.checkbox._inputElement,!0).subscribe(i=>{this.field.focus=!!i,this.stateChanges.next(),i?this.props.focus&&this.props.focus(this.field):this.props.blur&&this.props.blur(this.field)})}ngAfterViewChecked(){if(this.required!==this._required&&this.checkbox&&this.checkbox._inputElement){this._required=this.required;let i=this.checkbox._inputElement.nativeElement;this.required?this.renderer.setAttribute(i,"required","required"):this.renderer.removeAttribute(i,"required")}}ngOnDestroy(){super.ngOnDestroy(),this.checkbox&&this.focusMonitor.stopMonitoring(this.checkbox._inputElement)}};n.\u0275fac=function(r){return new(r||n)(_e(je),_e(Yt))},n.\u0275cmp=E({type:n,selectors:[["formly-field-mat-checkbox"]],viewQuery:function(r,o){if(r&1&&ie(Va,7),r&2){let a;B(a=j())&&(o.checkbox=a.first)}},standalone:!1,features:[le],decls:3,vars:10,consts:[[3,"formControl","id","name","formlyAttributes","tabIndex","indeterminate","color","labelPosition"],["aria-hidden","true",1,"mat-form-field-required-marker","mat-mdc-form-field-required-marker"]],template:function(r,o){r&1&&(h(0,"mat-checkbox",0),_(1),N(2,qte,2,0,"span",1),p()),r&2&&(y("formControl",o.formControl)("id",o.id)("name",o.field.name)("formlyAttributes",o.field)("tabIndex",o.props.tabindex)("indeterminate",o.props.indeterminate&&o.formControl.value==null)("color",o.props.color)("labelPosition",o.props.labelPosition),g(),ve(" ",o.props.label," "),g(),L(o.props.required&&o.props.hideRequiredMarker!==!0?2:-1))},dependencies:[ei,wo,Va,ta],encapsulation:2,changeDetection:0});let t=n;return t})();function T3(){return{types:[{name:"checkbox",component:Yte,wrappers:["form-field"]},{name:"boolean",extends:"checkbox"}]}}function Qte(t,n){if(t&1){let e=Y();h(0,"mat-checkbox",1),S("change",function(r){let o=I(e).$implicit,a=C();return A(a.onChange(o.value,r.checked))}),_(1),p()}if(t&2){let e=n.$implicit,i=n.$index,r=C();y("id",r.id+"_"+i)("formlyAttributes",r.field)("tabIndex",r.props.tabindex)("color",r.props.color)("labelPosition",r.props.labelPosition)("checked",r.isChecked(e))("disabled",r.formControl.disabled||e.disabled),g(),ve(" ",e.label," ")}}var Kte=(()=>{let n=class n extends to{constructor(){super(...arguments),this.defaultOptions={props:{hideFieldUnderline:!0,floatLabel:"always",color:"accent"}}}onChange(i,r){this.formControl.markAsDirty(),this.props.type==="array"?this.formControl.patchValue(r?[...this.formControl.value||[],i]:[...this.formControl.value||[]].filter(o=>o!==i)):this.formControl.patchValue(De(M({},this.formControl.value),{[i]:r})),this.formControl.markAsTouched()}onContainerClick(){}isChecked(i){let r=this.formControl.value;return r&&(this.props.type==="array"?r.indexOf(i.value)!==-1:r[i.value])}};n.\u0275fac=(()=>{let i;return function(o){return(i||(i=fe(n)))(o||n)}})(),n.\u0275cmp=E({type:n,selectors:[["formly-field-mat-multicheckbox"]],viewQuery:function(r,o){if(r&1&&ie(Va,5),r&2){let a;B(a=j())&&(o.checkboxes=a)}},hostVars:1,hostBindings:function(r,o){r&2&&si("id",o.id)},standalone:!1,features:[le],decls:4,vars:5,consts:[[3,"id","formlyAttributes","tabIndex","color","labelPosition","checked","disabled"],[3,"change","id","formlyAttributes","tabIndex","color","labelPosition","checked","disabled"]],template:function(r,o){r&1&&(xt(0,Qte,2,8,"mat-checkbox",0,Hi),me(2,"formlySelectOptions"),me(3,"async")),r&2&&Ct(Oe(3,3,Ni(2,0,o.props.options,o.field)))},dependencies:[Va,ta,rn,Eh],encapsulation:2,changeDetection:0});let t=n;return t})();function I3(){return{types:[{name:"multicheckbox",component:Kte,wrappers:["form-field"]}]}}var Zte=t=>({selectOptions:t});function Xte(t,n){if(t&1){let e=Y();h(0,"mat-option",2),S("click",function(){let r=I(e).selectOptions,o=C();return A(o.toggleSelectAll(r))}),k(1,"mat-pseudo-checkbox",3),_(2),p()}if(t&2){let e=n.selectOptions,i=C();g(),y("state",i.getSelectAllState(e)),g(),ve(" ",i.props.selectAllOption," ")}}function Jte(t,n){if(t&1&&Ge(0,4),t&2){let e=C();C();let i=Se(1);y("ngTemplateOutlet",i)("ngTemplateOutletContext",Pt(2,Zte,e))}}function eie(t,n){if(t&1&&(h(0,"mat-option",6),_(1),p()),t&2){let e=n.$implicit;y("value",e.value)("disabled",e.disabled),g(),ve(" ",e.label," ")}}function tie(t,n){if(t&1&&(h(0,"mat-optgroup",5),xt(1,eie,2,3,"mat-option",6,Hi),p()),t&2){let e=C().$implicit;y("label",e.label),g(),Ct(e.group)}}function iie(t,n){if(t&1&&(h(0,"mat-option",6),_(1),p()),t&2){let e=C().$implicit;y("value",e.value)("disabled",e.disabled),g(),H(e.label)}}function nie(t,n){if(t&1&&N(0,tie,3,1,"mat-optgroup",5)(1,iie,2,3,"mat-option",6),t&2){let e=n.$implicit;L(e.group?0:1)}}function rie(t,n){if(t&1&&(N(0,Jte,1,4,"ng-container",4),xt(1,nie,2,1,null,null,Hi)),t&2){let e=C();L(e.props.multiple&&e.props.selectAllOption?0:-1),g(),Ct(n)}}var oie=(()=>{let n=class n extends to{constructor(){super(...arguments),this.defaultOptions={props:{compareWith(i,r){return i===r}}}}set select(i){Wi(i,["_parentFormField","_textField"],({currentValue:r})=>{r&&(i._preferredOverlayOrigin=i._parentFormField.getConnectedOverlayOrigin())})}getSelectAllState(i){return this.empty||this.value.length===0?null:this.value.length!==this.getSelectAllValue(i).length?"indeterminate":"checked"}toggleSelectAll(i){let r=this.getSelectAllValue(i);this.formControl.markAsDirty(),this.formControl.setValue(!this.value||this.value.length!==r.length?r:[])}change(i){this.props.change?.(this.field,i)}_getAriaLabelledby(){return this.props.attributes?.["aria-labelledby"]?this.props.attributes["aria-labelledby"]:this.formField?._labelId}_getAriaLabel(){return this.props.attributes?.["aria-label"]}getSelectAllValue(i){if(!this.selectAllValue||i!==this.selectAllValue.options){let r=[];i.forEach(o=>o.group?r.push(...o.group):r.push(o)),this.selectAllValue={options:i,value:r.filter(o=>!o.disabled).map(o=>o.value)}}return this.selectAllValue.value}};n.\u0275fac=(()=>{let i;return function(o){return(i||(i=fe(n)))(o||n)}})(),n.\u0275cmp=E({type:n,selectors:[["formly-field-mat-select"]],viewQuery:function(r,o){if(r&1&&ie(Na,7),r&2){let a;B(a=j())&&(o.select=a.first)}},standalone:!1,features:[le],decls:6,vars:20,consts:[["selectAll",""],[3,"selectionChange","id","formControl","formlyAttributes","placeholder","tabIndex","required","compareWith","multiple","errorStateMatcher","aria-label","aria-labelledby","disableOptionCentering","typeaheadDebounceInterval","panelClass"],[3,"click"],[1,"mat-option-pseudo-checkbox",3,"state"],[3,"ngTemplateOutlet","ngTemplateOutletContext"],[3,"label"],[3,"value","disabled"]],template:function(r,o){if(r&1){let a=Y();R(0,Xte,3,2,"ng-template",null,0,_i),h(2,"mat-select",1),S("selectionChange",function(l){return I(a),A(o.change(l))}),N(3,rie,3,1),me(4,"formlySelectOptions"),me(5,"async"),p()}if(r&2){let a;g(2),y("id",o.id)("formControl",o.formControl)("formlyAttributes",o.field)("placeholder",o.props.placeholder)("tabIndex",o.props.tabindex)("required",o.required)("compareWith",o.props.compareWith)("multiple",o.props.multiple)("errorStateMatcher",o.errorStateMatcher),Kl("aria-label",o._getAriaLabel())("aria-labelledby",o._getAriaLabelledby()),y("disableOptionCentering",o.props.disableOptionCentering)("typeaheadDebounceInterval",o.props.typeaheadDebounceInterval)("panelClass",o.props.panelClass),g(),L((a=Oe(5,18,Ni(4,15,o.props.options,o.field)))?3:-1,a)}},dependencies:[Fn,ei,Do,wo,Na,xn,kk,Qd,ta,rn,Eh],encapsulation:2,changeDetection:0});let t=n;return t})();function A3(){return{types:[{name:"select",component:oie,wrappers:["form-field"]},{name:"enum",extends:"select"}]}}function O3(){return[b3(),w3(),D3(),M3(),T3(),I3(),A3()]}var kg=class{},P3=(()=>{class t{handle(e){return e.key}static \u0275fac=function(i){return new(i||t)};static \u0275prov=O({token:t,factory:t.\u0275fac})}return t})(),Mh=class{},F3=(()=>{class t extends Mh{compile(e,i){return e}compileTranslations(e,i){return e}static \u0275fac=(()=>{let e;return function(r){return(e||(e=fe(t)))(r||t)}})();static \u0275prov=O({token:t,factory:t.\u0275fac})}return t})(),yc=class{},N3=(()=>{class t extends yc{getTranslation(e){return Q({})}static \u0275fac=(()=>{let e;return function(r){return(e||(e=fe(t)))(r||t)}})();static \u0275prov=O({token:t,factory:t.\u0275fac})}return t})();function Sg(t,n){if(t===n)return!0;if(t===null||n===null)return!1;if(t!==t&&n!==n)return!0;let e=typeof t,i=typeof n,r;if(e==i&&e=="object")if(Array.isArray(t)){if(!Array.isArray(n))return!1;if((r=t.length)==n.length){for(let o=0;oxx(n));if(hl(t)){let n={};return Object.keys(t).forEach(e=>{n[e]=xx(t[e])}),n}else return t}function kS(t,n){if(!Mg(t))return xx(n);let e=xx(t);return Mg(e)&&Mg(n)&&Object.keys(n).forEach(i=>{hl(n[i])?i in t?e[i]=kS(t[i],n[i]):Object.assign(e,{[i]:n[i]}):Object.assign(e,{[i]:n[i]})}),e}function L3(t,n){let e=n.split(".");n="";do{n+=e.shift();let i=!e.length;if(Mo(t)){if(hl(t)&&R3(t[n])&&(hl(t[n])||pu(t[n])||i)){t=t[n],n="";continue}if(pu(t)){let r=parseInt(n,10);if(R3(t[r])&&(hl(t[r])||pu(t[r])||i)){t=t[r],n="";continue}}}if(i){t=void 0;continue}n+="."}while(e.length);return t}function sie(t,n,e){return kS(t,lie(n,e))}function lie(t,n){return t.split(".").reduceRight((e,i)=>({[i]:e}),n)}var kh=class{},V3=(()=>{class t extends kh{templateMatcher=/{{\s?([^{}\s]*)\s?}}/g;interpolate(e,i){if(Tg(e))return this.interpolateString(e,i);if(aie(e))return this.interpolateFunction(e,i)}interpolateFunction(e,i){return e(i)}interpolateString(e,i){return i?e.replace(this.templateMatcher,(r,o)=>{let a=this.getInterpolationReplacement(i,o);return a!==void 0?a:r}):e}getInterpolationReplacement(e,i){return this.formatValue(L3(e,i))}formatValue(e){if(Tg(e))return e;if(typeof e=="number"||typeof e=="boolean")return e.toString();if(e===null)return"null";if(pu(e))return e.join(", ");if(Mg(e))return typeof e.toString=="function"&&e.toString!==Object.prototype.toString?e.toString():JSON.stringify(e)}static \u0275fac=(()=>{let e;return function(r){return(e||(e=fe(t)))(r||t)}})();static \u0275prov=O({token:t,factory:t.\u0275fac})}return t})(),DS=(()=>{class t{_onTranslationChange=new z;_onLangChange=new z;_onFallbackLangChange=new z;fallbackLang=null;currentLang;translations={};languages=[];getTranslations(e){return this.translations[e]}setTranslations(e,i,r){this.translations[e]=r&&this.hasTranslationFor(e)?kS(this.translations[e],i):i,this.addLanguages([e]),this._onTranslationChange.next({lang:e,translations:this.getTranslations(e)})}getLanguages(){return this.languages}getCurrentLang(){return this.currentLang}getFallbackLang(){return this.fallbackLang}setFallbackLang(e,i=!0){this.fallbackLang=e,i&&this._onFallbackLangChange.next({lang:e,translations:this.translations[e]})}setCurrentLang(e,i=!0){this.currentLang=e,i&&this._onLangChange.next({lang:e,translations:this.translations[e]})}get onTranslationChange(){return this._onTranslationChange.asObservable()}get onLangChange(){return this._onLangChange.asObservable()}get onFallbackLangChange(){return this._onFallbackLangChange.asObservable()}addLanguages(e){this.languages=Array.from(new Set([...this.languages,...e]))}hasTranslationFor(e){return typeof this.translations[e]<"u"}deleteTranslations(e){delete this.translations[e]}getTranslation(e){let i=this.getValue(this.currentLang,e);return i===void 0&&this.fallbackLang!=null&&this.fallbackLang!==this.currentLang&&(i=this.getValue(this.fallbackLang,e)),i}getValue(e,i){return L3(this.getTranslations(e),i)}static \u0275fac=function(i){return new(i||t)};static \u0275prov=O({token:t,factory:t.\u0275fac})}return t})(),ES=new T("TRANSLATE_CONFIG"),Eg=t=>ji(t)?t:Q(t);var ia=(()=>{class t{loadingTranslations;pending=!1;_translationRequests={};lastUseLanguage=null;currentLoader=u(yc);compiler=u(Mh);parser=u(kh);missingTranslationHandler=u(kg);store=u(DS);extend=!1;get onTranslationChange(){return this.store.onTranslationChange}get onLangChange(){return this.store.onLangChange}get onFallbackLangChange(){return this.store.onFallbackLangChange}get onDefaultLangChange(){return this.store.onFallbackLangChange}constructor(){let e=M({extend:!1,fallbackLang:null},u(ES,{optional:!0}));e.lang&&this.use(e.lang),e.fallbackLang&&this.setFallbackLang(e.fallbackLang),e.extend&&(this.extend=!0)}setFallbackLang(e){this.getFallbackLang()||this.store.setFallbackLang(e,!1);let i=this.loadOrExtendLanguage(e);return ji(i)?(i.pipe(lt(1)).subscribe({next:()=>{this.store.setFallbackLang(e)},error:()=>{}}),i):(this.store.setFallbackLang(e),Q(this.store.getTranslations(e)))}use(e){this.lastUseLanguage=e,this.getCurrentLang()||this.store.setCurrentLang(e,!1);let i=this.loadOrExtendLanguage(e);return ji(i)?(i.pipe(lt(1)).subscribe({next:()=>{this.changeLang(e)},error:()=>{}}),i):(this.changeLang(e),Q(this.store.getTranslations(e)))}loadOrExtendLanguage(e){if(!this.store.hasTranslationFor(e)||this.extend)return this._translationRequests[e]=this._translationRequests[e]||this.loadAndCompileTranslations(e),this._translationRequests[e]}changeLang(e){e===this.lastUseLanguage&&this.store.setCurrentLang(e)}getCurrentLang(){return this.store.getCurrentLang()}loadAndCompileTranslations(e){this.pending=!0;let i=this.currentLoader.getTranslation(e).pipe(dd(1),lt(1));return this.loadingTranslations=i.pipe(se(r=>this.compiler.compileTranslations(r,e)),dd(1),lt(1)),this.loadingTranslations.subscribe({next:r=>{this.store.setTranslations(e,r,this.extend),this.pending=!1},error:r=>{this.pending=!1}}),i}setTranslation(e,i,r=!1){let o=this.compiler.compileTranslations(i,e);this.store.setTranslations(e,o,r||this.extend)}getLangs(){return this.store.getLanguages()}addLangs(e){this.store.addLanguages(e)}getParsedResultForKey(e,i){let r=this.getTextToInterpolate(e);if(Mo(r))return this.runInterpolation(r,i);let o=this.missingTranslationHandler.handle(M({key:e,translateService:this},i!==void 0&&{interpolateParams:i}));return o!==void 0?o:e}getFallbackLang(){return this.store.getFallbackLang()}getTextToInterpolate(e){return this.store.getTranslation(e)}runInterpolation(e,i){if(Mo(e))return pu(e)?this.runInterpolationOnArray(e,i):hl(e)?this.runInterpolationOnDict(e,i):this.parser.interpolate(e,i)}runInterpolationOnArray(e,i){return e.map(r=>this.runInterpolation(r,i))}runInterpolationOnDict(e,i){let r={};for(let o in e){let a=this.runInterpolation(e[o],i);a!==void 0&&(r[o]=a)}return r}getParsedResult(e,i){return e instanceof Array?this.getParsedResultForArray(e,i):this.getParsedResultForKey(e,i)}getParsedResultForArray(e,i){let r={},o=!1;for(let s of e)r[s]=this.getParsedResultForKey(s,i),o=o||ji(r[s]);if(!o)return r;let a=e.map(s=>Eg(r[s]));return Ga(a).pipe(se(s=>{let l={};return s.forEach((c,d)=>{l[e[d]]=c}),l}))}get(e,i){if(!Mo(e)||!e.length)throw new Error('Parameter "key" is required and cannot be empty');return this.pending?this.loadingTranslations.pipe(Ao(()=>Eg(this.getParsedResult(e,i)))):Eg(this.getParsedResult(e,i))}getStreamOnTranslationChange(e,i){if(!Mo(e)||!e.length)throw new Error('Parameter "key" is required and cannot be empty');return mo(kn(()=>this.get(e,i)),this.onTranslationChange.pipe($e(()=>{let r=this.getParsedResult(e,i);return Eg(r)})))}stream(e,i){if(!Mo(e)||!e.length)throw new Error('Parameter "key" required');return mo(kn(()=>this.get(e,i)),this.onLangChange.pipe($e(()=>{let r=this.getParsedResult(e,i);return Eg(r)})))}instant(e,i){if(!Mo(e)||e.length===0)throw new Error('Parameter "key" is required and cannot be empty');let r=this.getParsedResult(e,i);return ji(r)?Array.isArray(e)?e.reduce((o,a)=>(o[a]=a,o),{}):e:r}set(e,i,r=this.getCurrentLang()){this.store.setTranslations(r,sie(this.store.getTranslations(r),e,Tg(i)?this.compiler.compile(i,r):this.compiler.compileTranslations(i,r)),!1)}reloadLang(e){return this.resetLang(e),this.loadAndCompileTranslations(e)}resetLang(e){delete this._translationRequests[e],this.store.deleteTranslations(e)}static getBrowserLang(){if(typeof window>"u"||!window.navigator)return;let e=this.getBrowserCultureLang();return e?e.split(/[-_]/)[0]:void 0}static getBrowserCultureLang(){if(!(typeof window>"u"||typeof window.navigator>"u"))return window.navigator.languages?window.navigator.languages[0]:window.navigator.language||window.navigator.browserLanguage||window.navigator.userLanguage}getBrowserLang(){return t.getBrowserLang()}getBrowserCultureLang(){return t.getBrowserCultureLang()}get defaultLang(){return this.getFallbackLang()}get currentLang(){return this.store.getCurrentLang()}get langs(){return this.store.getLanguages()}setDefaultLang(e){return this.setFallbackLang(e)}getDefaultLang(){return this.getFallbackLang()}static \u0275fac=function(i){return new(i||t)};static \u0275prov=O({token:t,factory:t.\u0275fac})}return t})(),B3=(()=>{class t{translateService=u(ia);element=u(q);_ref=u(ye);key;lastParams;currentParams;onLangChangeSub;onFallbackLangChangeSub;onTranslationChangeSub;set translate(e){e&&(this.key=e,this.checkNodes())}set translateParams(e){Sg(this.currentParams,e)||(this.currentParams=e,this.checkNodes(!0))}constructor(){this.onTranslationChangeSub||(this.onTranslationChangeSub=this.translateService.onTranslationChange.subscribe(e=>{e.lang===this.translateService.currentLang&&this.checkNodes(!0,e.translations)})),this.onLangChangeSub||(this.onLangChangeSub=this.translateService.onLangChange.subscribe(e=>{this.checkNodes(!0,e.translations)})),this.onFallbackLangChangeSub||(this.onFallbackLangChangeSub=this.translateService.onFallbackLangChange.subscribe(e=>{this.checkNodes(!0)}))}ngAfterViewChecked(){this.checkNodes()}checkNodes(e=!1,i){let r=this.element.nativeElement.childNodes;r.length||(this.setContent(this.element.nativeElement,this.key),r=this.element.nativeElement.childNodes),r.forEach(o=>{let a=o;if(a.nodeType===3){let s;if(e&&(a.lastKey=null),Mo(a.lookupKey))s=a.lookupKey;else if(this.key)s=this.key;else{let l=this.getContent(a),c=l.trim();c.length&&(a.lookupKey=c,l!==a.currentValue?(s=c,a.originalContent=l||a.originalContent):a.originalContent&&(s=a.originalContent.trim()))}this.updateValue(s,a,i)}})}updateValue(e,i,r){if(e){if(i.lastKey===e&&this.lastParams===this.currentParams)return;this.lastParams=this.currentParams;let o=a=>{(a!==e||!i.lastKey)&&(i.lastKey=e),i.originalContent||(i.originalContent=this.getContent(i)),Tg(a)?i.currentValue=a:Mo(a)?i.currentValue=JSON.stringify(a):i.currentValue=i.originalContent||e,this.setContent(i,this.key?i.currentValue:i.originalContent.replace(e,i.currentValue)),this._ref.markForCheck()};if(Mo(r)){let a=this.translateService.getParsedResult(e,this.currentParams);ji(a)?a.subscribe({next:o}):o(a)}else this.translateService.get(e,this.currentParams).subscribe(o)}}getContent(e){return Mo(e.textContent)?e.textContent:e.data}setContent(e,i){Mo(e.textContent)?e.textContent=i:e.data=i}ngOnDestroy(){this.onLangChangeSub&&this.onLangChangeSub.unsubscribe(),this.onFallbackLangChangeSub&&this.onFallbackLangChangeSub.unsubscribe(),this.onTranslationChangeSub&&this.onTranslationChangeSub.unsubscribe()}static \u0275fac=function(i){return new(i||t)};static \u0275dir=F({type:t,selectors:[["","translate",""],["","ngx-translate",""]],inputs:{translate:"translate",translateParams:"translateParams"}})}return t})(),Cr=(()=>{class t{translate=u(ia);_ref=u(ye);value="";lastKey=null;lastParams=[];onTranslationChange;onLangChange;onFallbackLangChange;updateValue(e,i,r){let o=a=>{this.value=a!==void 0?a:e,this.lastKey=e,this._ref.markForCheck()};if(r){let a=this.translate.getParsedResult(e,i);ji(a)?a.subscribe(o):o(a)}this.translate.get(e,i).subscribe(o)}transform(e,...i){if(!e||!e.length)return e;if(Sg(e,this.lastKey)&&Sg(i,this.lastParams))return this.value;let r;if(Mo(i[0])&&i.length)if(Tg(i[0])&&i[0].length){let o=i[0].replace(/(')?([a-zA-Z0-9_]+)(')?(\s)?:/g,'"$2":').replace(/:(\s)?(')(.*?)(')/g,':"$3"');try{r=JSON.parse(o)}catch(a){throw new SyntaxError(`Wrong parameter in TranslatePipe. Expected a valid Object, received: ${i[0]}`)}}else hl(i[0])&&(r=i[0]);return this.lastKey=e,this.lastParams=i,this.updateValue(e,r),this._dispose(),this.onTranslationChange||(this.onTranslationChange=this.translate.onTranslationChange.subscribe(o=>{(this.lastKey&&o.lang===this.translate.getCurrentLang()||o.lang===this.translate.getFallbackLang())&&(this.lastKey=null,this.updateValue(e,r,o.translations))})),this.onLangChange||(this.onLangChange=this.translate.onLangChange.subscribe(o=>{this.lastKey&&(this.lastKey=null,this.updateValue(e,r,o.translations))})),this.onFallbackLangChange||(this.onFallbackLangChange=this.translate.onFallbackLangChange.subscribe(()=>{this.lastKey&&(this.lastKey=null,this.updateValue(e,r))})),this.value}_dispose(){typeof this.onTranslationChange<"u"&&(this.onTranslationChange.unsubscribe(),this.onTranslationChange=void 0),typeof this.onLangChange<"u"&&(this.onLangChange.unsubscribe(),this.onLangChange=void 0),typeof this.onFallbackLangChange<"u"&&(this.onFallbackLangChange.unsubscribe(),this.onFallbackLangChange=void 0)}ngOnDestroy(){this._dispose()}static \u0275fac=function(i){return new(i||t)};static \u0275pipe=Wr({name:"translate",type:t,pure:!1});static \u0275prov=O({token:t,factory:t.\u0275fac})}return t})();function j3(t){return{provide:yc,useClass:t}}function H3(t){return{provide:Mh,useClass:t}}function z3(t){return{provide:kh,useClass:t}}function U3(t){return{provide:kg,useClass:t}}function $3(t={}){return MS(M({compiler:H3(F3),parser:z3(V3),loader:j3(N3),missingTranslationHandler:U3(P3)},t),!0)}function MS(t={},n){let e=[];t.loader&&e.push(t.loader),t.compiler&&e.push(t.compiler),t.parser&&e.push(t.parser),t.missingTranslationHandler&&e.push(t.missingTranslationHandler),n&&e.push(DS),(t.useDefaultLang||t.defaultLanguage)&&(console.warn("The `useDefaultLang` and `defaultLanguage` options are deprecated. Please use `fallbackLang` instead."),t.useDefaultLang===!0&&t.defaultLanguage&&(t.fallbackLang=t.defaultLanguage));let i={fallbackLang:t.fallbackLang??null,lang:t.lang,extend:t.extend??!1};return e.push({provide:ES,useValue:i}),e.push({provide:ia,useClass:ia,deps:[DS,yc,Mh,kh,kg,ES]}),e}var wr=(()=>{class t{static forRoot(e={}){return{ngModule:t,providers:[...MS(M({compiler:H3(F3),parser:z3(V3),loader:j3(N3),missingTranslationHandler:U3(P3)},e),!0)]}}static forChild(e={}){return{ngModule:t,providers:[...MS(e,e.isolate??!1)]}}static \u0275fac=function(i){return new(i||t)};static \u0275mod=ee({type:t});static \u0275inj=J({})}return t})();var SS=new T("TRANSLATE_HTTP_LOADER_CONFIG"),cie=(()=>{class t{http;config;constructor(){this.config=M({prefix:"/assets/i18n/",suffix:".json",enforceLoading:!1,useHttpBackend:!1},u(SS)),this.http=this.config.useHttpBackend?new Yr(u(Zl)):u(Yr)}getTranslation(e){let i=this.config.enforceLoading?`?enforceLoading=${Date.now()}`:"";return this.http.get(`${this.config.prefix}${e}${this.config.suffix}${i}`)}static \u0275fac=function(i){return new(i||t)};static \u0275prov=O({token:t,factory:t.\u0275fac})}return t})();function W3(t={}){let n=t.useHttpBackend??!1;return[{provide:SS,useValue:t},{provide:yc,useClass:cie,deps:[n?Zl:Yr,SS]}]}var TS=class{constructor(n){this.options=n,n.vcr?this.ref=n.vcr.createComponent(n.component,{index:n.vcr.length,injector:n.injector||n.vcr.injector}):(this.ref=Mm(n.component,{elementInjector:n.injector,environmentInjector:n.environmentInjector}),n.appRef.attachView(this.ref.hostView))}setInput(n,e){return this.ref.setInput(n,e),this}setInputs(n){return Object.keys(n).forEach(e=>{this.ref.setInput(e,n[e])}),this}detectChanges(){return this.ref.hostView.detectChanges(),this}updateContext(n){return this.options.contextSignal?.set(n),this}appendTo(n){return n.appendChild(this.getElement()),this}removeFrom(n){return n.removeChild(this.getElement()),this}getRawContent(){return this.getElement().outerHTML}getElement(){return this.ref.location.nativeElement}destroy(){this.ref.destroy(),!this.options.vcr&&this.options.appRef.detachView(this.ref.hostView),this.ref=null}};function Ig(t){return t instanceof te}function gu(t){return typeof t=="function"}function G3(t){return typeof t=="string"}var IS=class{constructor(n){this.args=n,this.args.vcr?(this.ref=this.args.vcr.createEmbeddedView(this.args.tpl,this.args.context||{},{injector:n.injector}),this.ref.detectChanges()):(this.ref=this.args.tpl.createEmbeddedView(this.args.context||{},n.injector),this.ref.detectChanges(),this.args.appRef.attachView(this.ref))}detectChanges(){return this.ref.detectChanges(),this}getElement(){let n=this.ref.rootNodes;return n.length===1&&n[0]===Node.ELEMENT_NODE?this.element=n[0]:(this.element=document.createElement("div"),this.element.append(...n)),this.element}destroy(){this.ref.rootNodes[0]!==1&&(this.element?.parentNode.removeChild(this.element),this.element=null),this.args.vcr||this.args.appRef.detachView(this.ref),this.ref.destroy(),this.ref=null}updateContext(n){return Object.assign(this.ref.context,n),this}},AS=class{constructor(n){this.value=n}getElement(){return this.value}detectChanges(){return this}updateContext(){return this}destroy(){}},die=new T("Component context"),OS=(()=>{let n=class n{constructor(){this.injector=u(de),this.appRef=u(Gn),this.environmentInjector=u(Wt)}createComponent(i,r={}){let o=r.injector??this.injector,a;return r.context&&(a=he(r.context),o=de.create({providers:[{provide:die,useValue:a.asReadonly()}],parent:o})),new TS({component:i,vcr:r.vcr,injector:o,appRef:this.appRef,environmentInjector:r.environmentInjector||this.environmentInjector,contextSignal:a})}createTemplate(i,r={}){return new IS({vcr:r.vcr,appRef:this.appRef,tpl:i,context:r.context,injector:r.injector})}createView(i,r={}){if(Ig(i))return this.createTemplate(i,r);if(gu(i))return this.createComponent(i,r);if(G3(i))return new AS(i);throw"Type of content is not supported"}};n.\u0275fac=function(r){return new(r||n)},n.\u0275prov=O({token:n,factory:n.\u0275fac,providedIn:"root"});let t=n;return t})();var uie=(()=>{let n=class n{constructor(){this.content=ne()}};n.\u0275fac=function(r){return new(r||n)},n.\u0275cmp=E({type:n,selectors:[["dynamic-view"]],inputs:{content:[1,"content"]},decls:1,vars:1,consts:[[3,"innerHTML"]],template:function(r,o){r&1&&ai(0,"div",0),r&2&&si("innerHTML",o.content(),Zp)},encapsulation:2});let t=n;return t})(),Cx=(()=>{let n=class n{constructor(){this.view=ne(void 0,{alias:"dynamicView"}),this.injector=ne(void 0,{alias:"dynamicViewInjector"}),this.context=ne(void 0,{alias:"dynamicViewContext"}),this.inputs=ne(void 0,{alias:"dynamicViewInputs"}),this.defaultTpl=u(te),this.vcr=u(nt),this.viewService=u(OS)}ngOnInit(){this.resolveContentType()}ngOnChanges(i){let r=i.view&&!i.view.isFirstChange(),o=i.context&&!i.context.isFirstChange(),a=i.inputs&&!i.inputs.isFirstChange();r?this.resolveContentType():o?this.viewRef.updateContext(this.context()):gu(this.view())&&a&&this.viewRef.setInputs(this.inputs()||{})}resolveContentType(){this.viewRef?.destroy();let i=this.view(),r=this.injector(),o=this.context();if(G3(i))(this.viewRef=this.viewService.createComponent(uie,{vcr:this.vcr,injector:r})).setInput("content",i).detectChanges();else if(gu(i)){this.viewRef=this.viewService.createComponent(i,{vcr:this.vcr,injector:r??this.vcr.injector,context:o});let a=this.inputs();a&&this.viewRef.setInputs(a)}else this.viewRef=this.viewService.createView(i||this.defaultTpl,{vcr:this.vcr,injector:r??this.vcr.injector,context:o})}ngOnDestroy(){this.viewRef?.destroy()}};n.\u0275fac=function(r){return new(r||n)},n.\u0275dir=F({type:n,selectors:[["","dynamicView",""]],inputs:{view:[1,"dynamicView","view"],injector:[1,"dynamicViewInjector","injector"],context:[1,"dynamicViewContext","context"],inputs:[1,"dynamicViewInputs","inputs"]},features:[Ae]});let t=n;return t})();function mie(t,n){if(t&1&&(_(0,` +`],encapsulation:2,changeDetection:0})}return t})();function Mee(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 ze=(()=>{class t{static \u0275fac=function(i){return new(i||t)};static \u0275mod=ee({type:t});static \u0275inj=J({imports:[we,yo,we]})}return t})();function kee(t,n){if(t&1&&(h(0,"mat-option",17),_(1),p()),t&2){let e=n.$implicit;y("value",e),g(),ve(" ",e," ")}}function See(t,n){if(t&1){let e=Y();h(0,"mat-form-field",14)(1,"mat-select",16,0),S("selectionChange",function(r){I(e);let o=C(2);return A(o._changePageSize(r.value))}),xt(3,kee,2,2,"mat-option",17,xm),p(),h(5,"div",18),S("click",function(){I(e);let r=Se(2);return A(r.open())}),p()()}if(t&2){let e=C(2);y("appearance",e._formFieldAppearance)("color",e.color),g(),y("value",e.pageSize)("disabled",e.disabled),Kl("aria-labelledby",e._pageSizeLabelId),y("panelClass",e.selectConfig.panelClass||"")("disableOptionCentering",e.selectConfig.disableOptionCentering),g(2),Ct(e._displayedPageSizeOptions)}}function Tee(t,n){if(t&1&&(h(0,"div",15),_(1),p()),t&2){let e=C(2);g(),H(e.pageSize)}}function Iee(t,n){if(t&1&&(h(0,"div",3)(1,"div",13),_(2),p(),N(3,See,6,7,"mat-form-field",14),N(4,Tee,2,1,"div",15),p()),t&2){let e=C();g(),X("id",e._pageSizeLabelId),g(),ve(" ",e._intl.itemsPerPageLabel," "),g(),L(e._displayedPageSizeOptions.length>1?3:-1),g(),L(e._displayedPageSizeOptions.length<=1?4:-1)}}function Aee(t,n){if(t&1){let e=Y();h(0,"button",19),S("click",function(){I(e);let r=C();return A(r._buttonClicked(0,r._previousButtonsDisabled()))}),Gt(),h(1,"svg",8),k(2,"path",20),p()()}if(t&2){let e=C();y("matTooltip",e._intl.firstPageLabel)("matTooltipDisabled",e._previousButtonsDisabled())("disabled",e._previousButtonsDisabled())("tabindex",e._previousButtonsDisabled()?-1:null),X("aria-label",e._intl.firstPageLabel)}}function Oee(t,n){if(t&1){let e=Y();h(0,"button",21),S("click",function(){I(e);let r=C();return A(r._buttonClicked(r.getNumberOfPages()-1,r._nextButtonsDisabled()))}),Gt(),h(1,"svg",8),k(2,"path",22),p()()}if(t&2){let e=C();y("matTooltip",e._intl.lastPageLabel)("matTooltipDisabled",e._nextButtonsDisabled())("disabled",e._nextButtonsDisabled())("tabindex",e._nextButtonsDisabled()?-1:null),X("aria-label",e._intl.lastPageLabel)}}var gc=(()=>{class t{changes=new z;itemsPerPageLabel="Items per page:";nextPageLabel="Next page";previousPageLabel="Previous page";firstPageLabel="First page";lastPageLabel="Last page";getRangeLabel=(e,i,r)=>{if(r==0||i==0)return`0 of ${r}`;r=Math.max(r,0);let o=e*i,a=o{class t{_intl=u(gc);_changeDetectorRef=u(ye);_formFieldAppearance;_pageSizeLabelId=u(Ze).getId("mat-paginator-page-size-label-");_intlChanges;_isInitialized=!1;_initializedStream=new $a(1);color;get pageIndex(){return this._pageIndex}set pageIndex(e){this._pageIndex=Math.max(e||0,0),this._changeDetectorRef.markForCheck()}_pageIndex=0;get length(){return this._length}set length(e){this._length=e||0,this._changeDetectorRef.markForCheck()}_length=0;get pageSize(){return this._pageSize}set pageSize(e){this._pageSize=Math.max(e||0,0),this._updateDisplayedPageSizeOptions()}_pageSize;get pageSizeOptions(){return this._pageSizeOptions}set pageSizeOptions(e){this._pageSizeOptions=(e||[]).map(i=>ct(i,0)),this._updateDisplayedPageSizeOptions()}_pageSizeOptions=[];hidePageSize=!1;showFirstLastButtons=!1;selectConfig={};disabled=!1;page=new U;_displayedPageSizeOptions;initialized=this._initializedStream;constructor(){let e=this._intl,i=u(Nee,{optional:!0});if(this._intlChanges=e.changes.subscribe(()=>this._changeDetectorRef.markForCheck()),i){let{pageSize:r,pageSizeOptions:o,hidePageSize:a,showFirstLastButtons:s}=i;r!=null&&(this._pageSize=r),o!=null&&(this._pageSizeOptions=o),a!=null&&(this.hidePageSize=a),s!=null&&(this.showFirstLastButtons=s)}this._formFieldAppearance=i?.formFieldAppearance||"outline"}ngOnInit(){this._isInitialized=!0,this._updateDisplayedPageSizeOptions(),this._initializedStream.next()}ngOnDestroy(){this._initializedStream.complete(),this._intlChanges.unsubscribe()}nextPage(){this.hasNextPage()&&this._navigate(this.pageIndex+1)}previousPage(){this.hasPreviousPage()&&this._navigate(this.pageIndex-1)}firstPage(){this.hasPreviousPage()&&this._navigate(0)}lastPage(){this.hasNextPage()&&this._navigate(this.getNumberOfPages()-1)}hasPreviousPage(){return this.pageIndex>=1&&this.pageSize!=0}hasNextPage(){let e=this.getNumberOfPages()-1;return this.pageIndexe-i),this._changeDetectorRef.markForCheck())}_emitPageEvent(e){this.page.emit({previousPageIndex:e,pageIndex:this.pageIndex,pageSize:this.pageSize,length:this.length})}_navigate(e){let i=this.pageIndex;e!==i&&(this.pageIndex=e,this._emitPageEvent(i))}_buttonClicked(e,i){i||this._navigate(e)}static \u0275fac=function(i){return new(i||t)};static \u0275cmp=E({type:t,selectors:[["mat-paginator"]],hostAttrs:["role","group",1,"mat-mdc-paginator"],inputs:{color:"color",pageIndex:[2,"pageIndex","pageIndex",ct],length:[2,"length","length",ct],pageSize:[2,"pageSize","pageSize",ct],pageSizeOptions:"pageSizeOptions",hidePageSize:[2,"hidePageSize","hidePageSize",V],showFirstLastButtons:[2,"showFirstLastButtons","showFirstLastButtons",V],selectConfig:"selectConfig",disabled:[2,"disabled","disabled",V]},outputs:{page:"page"},exportAs:["matPaginator"],decls:14,vars:14,consts:[["selectRef",""],[1,"mat-mdc-paginator-outer-container"],[1,"mat-mdc-paginator-container"],[1,"mat-mdc-paginator-page-size"],[1,"mat-mdc-paginator-range-actions"],["aria-live","polite",1,"mat-mdc-paginator-range-label"],["matIconButton","","type","button","matTooltipPosition","above","disabledInteractive","",1,"mat-mdc-paginator-navigation-first",3,"matTooltip","matTooltipDisabled","disabled","tabindex"],["matIconButton","","type","button","matTooltipPosition","above","disabledInteractive","",1,"mat-mdc-paginator-navigation-previous",3,"click","matTooltip","matTooltipDisabled","disabled","tabindex"],["viewBox","0 0 24 24","focusable","false","aria-hidden","true",1,"mat-mdc-paginator-icon"],["d","M15.41 7.41L14 6l-6 6 6 6 1.41-1.41L10.83 12z"],["matIconButton","","type","button","matTooltipPosition","above","disabledInteractive","",1,"mat-mdc-paginator-navigation-next",3,"click","matTooltip","matTooltipDisabled","disabled","tabindex"],["d","M10 6L8.59 7.41 13.17 12l-4.58 4.59L10 18l6-6z"],["matIconButton","","type","button","matTooltipPosition","above","disabledInteractive","",1,"mat-mdc-paginator-navigation-last",3,"matTooltip","matTooltipDisabled","disabled","tabindex"],[1,"mat-mdc-paginator-page-size-label"],[1,"mat-mdc-paginator-page-size-select",3,"appearance","color"],[1,"mat-mdc-paginator-page-size-value"],["hideSingleSelectionIndicator","",3,"selectionChange","value","disabled","aria-labelledby","panelClass","disableOptionCentering"],[3,"value"],[1,"mat-mdc-paginator-touch-target",3,"click"],["matIconButton","","type","button","matTooltipPosition","above","disabledInteractive","",1,"mat-mdc-paginator-navigation-first",3,"click","matTooltip","matTooltipDisabled","disabled","tabindex"],["d","M18.41 16.59L13.82 12l4.59-4.59L17 6l-6 6 6 6zM6 6h2v12H6z"],["matIconButton","","type","button","matTooltipPosition","above","disabledInteractive","",1,"mat-mdc-paginator-navigation-last",3,"click","matTooltip","matTooltipDisabled","disabled","tabindex"],["d","M5.59 7.41L10.18 12l-4.59 4.59L7 18l6-6-6-6zM16 6h2v12h-2z"]],template:function(i,r){i&1&&(h(0,"div",1)(1,"div",2),N(2,Iee,5,4,"div",3),h(3,"div",4)(4,"div",5),_(5),p(),N(6,Aee,3,5,"button",6),h(7,"button",7),S("click",function(){return r._buttonClicked(r.pageIndex-1,r._previousButtonsDisabled())}),Gt(),h(8,"svg",8),k(9,"path",9),p()(),jo(),h(10,"button",10),S("click",function(){return r._buttonClicked(r.pageIndex+1,r._nextButtonsDisabled())}),Gt(),h(11,"svg",8),k(12,"path",11),p()(),N(13,Oee,3,5,"button",12),p()()()),i&2&&(g(2),L(r.hidePageSize?-1:2),g(3),ve(" ",r._intl.getRangeLabel(r.pageIndex,r.pageSize,r.length)," "),g(),L(r.showFirstLastButtons?6:-1),g(),y("matTooltip",r._intl.previousPageLabel)("matTooltipDisabled",r._previousButtonsDisabled())("disabled",r._previousButtonsDisabled())("tabindex",r._previousButtonsDisabled()?-1:null),X("aria-label",r._intl.previousPageLabel),g(3),y("matTooltip",r._intl.nextPageLabel)("matTooltipDisabled",r._nextButtonsDisabled())("disabled",r._nextButtonsDisabled())("tabindex",r._nextButtonsDisabled()?-1:null),X("aria-label",r._intl.nextPageLabel),g(3),L(r.showFirstLastButtons?13:-1))},dependencies:[Oi,Na,xn,ti,Eo],styles:[`.mat-mdc-paginator{display:block;-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;color:var(--mat-paginator-container-text-color, var(--mat-sys-on-surface));background-color:var(--mat-paginator-container-background-color, var(--mat-sys-surface));font-family:var(--mat-paginator-container-text-font, var(--mat-sys-body-small-font));line-height:var(--mat-paginator-container-text-line-height, var(--mat-sys-body-small-line-height));font-size:var(--mat-paginator-container-text-size, var(--mat-sys-body-small-size));font-weight:var(--mat-paginator-container-text-weight, var(--mat-sys-body-small-weight));letter-spacing:var(--mat-paginator-container-text-tracking, var(--mat-sys-body-small-tracking));--mat-form-field-container-height: var(--mat-paginator-form-field-container-height, 40px);--mat-form-field-container-vertical-padding: var(--mat-paginator-form-field-container-vertical-padding, 8px)}.mat-mdc-paginator .mat-mdc-select-value{font-size:var(--mat-paginator-select-trigger-text-size, var(--mat-sys-body-small-size))}.mat-mdc-paginator .mat-mdc-form-field-subscript-wrapper{display:none}.mat-mdc-paginator .mat-mdc-select{line-height:1.5}.mat-mdc-paginator-outer-container{display:flex}.mat-mdc-paginator-container{display:flex;align-items:center;justify-content:flex-end;padding:0 8px;flex-wrap:wrap;width:100%;min-height:var(--mat-paginator-container-size, 56px)}.mat-mdc-paginator-page-size{display:flex;align-items:baseline;margin-right:8px}[dir=rtl] .mat-mdc-paginator-page-size{margin-right:0;margin-left:8px}.mat-mdc-paginator-page-size-label{margin:0 4px}.mat-mdc-paginator-page-size-select{margin:0 4px;width:var(--mat-paginator-page-size-select-width, 84px)}.mat-mdc-paginator-range-label{margin:0 32px 0 24px}.mat-mdc-paginator-range-actions{display:flex;align-items:center}.mat-mdc-paginator-icon{display:inline-block;width:28px;fill:var(--mat-paginator-enabled-icon-color, var(--mat-sys-on-surface-variant))}.mat-mdc-icon-button[aria-disabled] .mat-mdc-paginator-icon{fill:var(--mat-paginator-disabled-icon-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent))}[dir=rtl] .mat-mdc-paginator-icon{transform:rotate(180deg)}@media(forced-colors: active){.mat-mdc-icon-button[aria-disabled] .mat-mdc-paginator-icon,.mat-mdc-paginator-icon{fill:currentColor}.mat-mdc-paginator-range-actions .mat-mdc-icon-button{outline:solid 1px}.mat-mdc-paginator-range-actions .mat-mdc-icon-button[aria-disabled]{color:GrayText}}.mat-mdc-paginator-touch-target{display:var(--mat-paginator-touch-target-display, block);position:absolute;top:50%;left:50%;width:var(--mat-paginator-page-size-select-width, 84px);height:var(--mat-paginator-page-size-select-touch-target-height, 48px);background-color:rgba(0,0,0,0);transform:translate(-50%, -50%);cursor:pointer} +`],encapsulation:2,changeDetection:0})}return t})(),_c=(()=>{class t{static \u0275fac=function(i){return new(i||t)};static \u0275mod=ee({type:t});static \u0275inj=J({providers:[Pee],imports:[ze,fc,Br,ir]})}return t})();var _g=class extends Li{constructor(){super(...arguments),this._delegate=u(Li)}getValidDateOrNull(n){return this.isDateInstance(n)&&this.isValid(n)?n:null}compareDatetime(n,e,i=!0){return this.compareDate(n,e)||this.getHour(n)-this.getHour(e)||i&&this.getMinute(n)-this.getMinute(e)}sameDatetime(n,e){if(n&&e){let i=this.isValid(n),r=this.isValid(e);return i&&r?!this.compareDatetime(n,e):i===r}return n===e}sameYear(n,e){return n&&e&&this.getYear(n)===this.getYear(e)}sameDay(n,e){return n&&e&&this.getDate(n)===this.getDate(e)&&this.sameMonthAndYear(n,e)}sameHour(n,e){return n&&e&&this.getHour(n)===this.getHour(e)&&this.sameDay(n,e)}sameMinute(n,e){return n&&e&&this.getMinute(n)===this.getMinute(e)&&this.sameHour(n,e)}sameMonthAndYear(n,e){if(n&&e){let i=this.isValid(n),r=this.isValid(e);return i&&r?!(this.getYear(n)-this.getYear(e)||this.getMonth(n)-this.getMonth(e)):i===r}return n===e}clone(n){return this._delegate.clone(n)}addCalendarYears(n,e){return this._delegate.addCalendarYears(n,e)}addCalendarMonths(n,e){return this._delegate.addCalendarMonths(n,e)}addCalendarDays(n,e){return this._delegate.addCalendarDays(n,e)}getYear(n){return this._delegate.getYear(n)}getMonth(n){return this._delegate.getMonth(n)}getDate(n){return this._delegate.getDate(n)}getDayOfWeek(n){return this._delegate.getDayOfWeek(n)}getMonthNames(n){return this._delegate.getMonthNames(n)}getDateNames(){return this._delegate.getDateNames()}getDayOfWeekNames(n){return this._delegate.getDayOfWeekNames(n)}getYearName(n){return this._delegate.getYearName(n)}getFirstDayOfWeek(){return this._delegate.getFirstDayOfWeek()}getNumDaysInMonth(n){return this._delegate.getNumDaysInMonth(n)}createDate(n,e,i){return this._delegate.createDate(n,e,i)}today(){return this._delegate.today()}parse(n,e){return this._delegate.parse(n,e)}format(n,e){return this._delegate.format(n,e)}toIso8601(n){return this._delegate.toIso8601(n)}isDateInstance(n){return this._delegate.isDateInstance(n)}isValid(n){return this._delegate.isValid(n)}invalid(){return this._delegate.invalid()}clampDate(n,e,i){return e&&this.compareDatetime(n,e)<0?e:i&&this.compareDatetime(n,i)>0?i:n}},r3=new T("mtx-datetime-formats"),zGe=o3(24,t=>String(t)),UGe=o3(60,t=>String(t));function o3(t,n){let e=Array(t);for(let i=0;i{let n=class n{transform(i){return ji(i)?i:Q(i)}};n.\u0275fac=function(r){return new(r||n)},n.\u0275pipe=Wr({name:"toObservable",type:n,pure:!0});let t=n;return t})();var s3=(()=>{let n=class n{};n.\u0275fac=function(r){return new(r||n)},n.\u0275mod=ee({type:n}),n.\u0275inj=J({imports:[gt]});let t=n;return t})();function l3(t,n){let e=Array(t);for(let i=0;i{let n=class n extends _g{constructor(){super();let i=u(ys,{optional:!0});this.setLocale(i)}setLocale(i){super.setLocale(i)}getHour(i){return sy(i)}getMinute(i){return ly(i)}isInNextMonth(i,r){let o=this.getDateInNextMonth(i);return super.sameMonthAndYear(o,r)}getWeek(i,r){return dh(i,{weekStartsOn:r})}createDatetime(i,r,o,a,s){if(r<0||r>11)throw Error(`Invalid month index "${r}". Month index has to be between 0 and 11.`);if(o<1)throw Error(`Invalid date "${o}". Date has to be greater than 0.`);if(a<0||a>23)throw Error(`Invalid hour "${a}". Hour has to be between 0 and 23.`);if(s<0||s>59)throw Error(`Invalid minute "${s}". Minute has to be between 0 and 59.`);let l=new Date(i,r,o,a,s);if(!sh(l))throw Error(`Invalid date "${o}" for month with index "${r}".`);return l}getFirstDateOfMonth(i){return lV(i)}getHourNames(){return l3(24,i=>i.toLocaleString(this.locale))}getMinuteNames(){return l3(60,i=>i.toLocaleString(this.locale))}addCalendarHours(i,r){return iV(i,r)}addCalendarMinutes(i,r){return oV(i,r)}deserialize(i){return this._delegate.deserialize(i)}getDateInNextMonth(i){return ah(i,1)}};n.\u0275fac=function(r){return new(r||n)},n.\u0275prov=O({token:n,factory:n.\u0275fac});let t=n;return t})(),Bee={parse:{dateInput:"P",monthInput:"LLLL",yearInput:"yyyy",datetimeInput:"P p",timeInput:"p"},display:{dateInput:"P",monthInput:"LLLL",yearInput:"yyyy",datetimeInput:"P p",timeInput:"p",monthYearLabel:"yyyy",dateA11yLabel:"LLLL dd, yyyy",monthYearA11yLabel:"MMMM yyyy",popupHeaderDateLabel:"ccc, dd LLL"}};function c3(t=Bee){return[{provide:Li,useClass:Vk,deps:[ys]},{provide:_g,useClass:Vee},{provide:r3,useValue:t}]}var jee=["container"];function Hee(t,n){}function zee(t,n){}var Uee=["*"];function $ee(t,n){if(t&1&&k(0,"formly-field",0),t&2){let e=n.$implicit;y("field",e)}}var d3=["fieldComponent"];function Wee(t,n,e){if(n.id)return n.id;let i=n.type;return!i&&n.template&&(i="template"),i instanceof Td&&(i=i.prototype.constructor.name),[t,i,n.key,e].join("_")}function mn(t){return!bc(t.key)&&t.key!==""&&(!Array.isArray(t.key)||t.key.length>0)}function uu(t){if(!mn(t))return[];if(t._keyPath?.key!==t.key){let n=[];if(typeof t.key=="string"){let e=t.key.indexOf("[")===-1?t.key:t.key.replace(/\[(\w+)\]/g,".$1");n=e.indexOf(".")!==-1?e.split("."):[e]}else Array.isArray(t.key)?n=t.key.slice(0):n=[`${t.key}`];nr(t,"_keyPath",{key:t.key,path:n})}return t._keyPath.path.slice(0)}var _S=["required","pattern","minLength","maxLength","min","max"];function bg(t,n){let e=uu(t);if(e.length===0)return;let i=t;for(;i.parent;)i=i.parent,e=[...uu(i),...e];if(n===void 0&&t.resetOnHide){let r=e.pop(),o=e.reduce((a,s)=>a[s]||{},i.model);delete o[r];return}Gee(i.model,e,n)}function Gee(t,n,e){for(let i=0;i{for(let i in e)bc(t[i])||qee(t[i])?t[i]=vc(e[i]):Yee(t[i],e[i])&&Ch(t[i],e[i])}),t}function bc(t){return t==null}function bx(t){return t===void 0}function qee(t){return t===""}function uS(t){return typeof t=="function"}function Yee(t,n){return La(t)&&La(n)&&Object.getPrototypeOf(t)===Object.getPrototypeOf(n)&&!(Array.isArray(t)||Array.isArray(n))}function La(t){return t!=null&&typeof t=="object"}function Qee(t){return!!t&&typeof t.then=="function"}function vc(t){if(!La(t)||ji(t)||t instanceof te||t.changingThisBreaksApplicationSecurity||["RegExp","FileList","File","Blob"].indexOf(t.constructor?.name)!==-1)return t;if(t instanceof Set)return new Set(t);if(t instanceof Map)return new Map(t);if(t instanceof Uint8Array)return new Uint8Array(t);if(t instanceof Uint16Array)return new Uint16Array(t);if(t instanceof Uint32Array)return new Uint32Array(t);if(t._isAMomentObject&&uS(t.clone))return t.clone();if(t instanceof hc)return null;if(t instanceof Date)return new Date(t.getTime());if(Array.isArray(t))return t.slice(0).map(i=>vc(i));let n=Object.getPrototypeOf(t),e=Object.create(n);return e=Object.setPrototypeOf(e,n),Object.keys(t).reduce((i,r)=>{let o=Object.getOwnPropertyDescriptor(t,r);return o.get?Object.defineProperty(i,r,o):i[r]=vc(t[r]),i},e)}function nr(t,n,e){Object.defineProperty(t,n,{enumerable:!1,writable:!0,configurable:!0}),t[n]=e}function u3(t,n,e){let i=[],r=()=>{i.forEach(a=>a()),i=[]},o=Wi(t,n,({firstChange:a,currentValue:s})=>{!a&&e(),r(),La(s)&&s.constructor.name==="Object"&&Object.keys(s).forEach(l=>{i.push(u3(t,[...n,l],e))})});return()=>{o.unsubscribe(),r()}}function Wi(t,n,e){t._observers||nr(t,"_observers",{});let i=t;for(let s=0;s=1&&La(i))){let{enumerable:s}=Object.getOwnPropertyDescriptor(i,r)||{enumerable:!0};Object.defineProperty(i,r,{enumerable:s,configurable:!0,get:()=>a.value,set:l=>{if(l!==a.value){let c=a.value;a.value=l,a.onChange.forEach(d=>d({previousValue:c,currentValue:l,firstChange:!1}))}}})}return{setValue(s,l=!0){if(s===a.value)return;let c=a.value;a.value=s,a.onChange.forEach(d=>{d!==e&&l&&d({previousValue:c,currentValue:s,firstChange:!1})})},unsubscribe(){a.onChange=a.onChange.filter(s=>s!==e),a.onChange.length===0&&delete t._observers[o]}}}function m3(t,n){if(n=Array.isArray(n)?n.join("."):n,!!t.fieldGroup)for(let e=0,i=t.fieldGroup.length;e{n instanceof Id?n.injector.get(ye).markForCheck():n.markForCheck()})}function Kee(t){let n=i=>i.hide||i.expressions?.hide||i.hideExpression,e=!t.resetOnHide||!n(t);if(!n(t)&&t.resetOnHide){let i=t.parent;for(;i&&!n(i);)i=i.parent;e=!i||!n(i)}return!e}function h3(){return+wp.major>18||+wp.major>=18&&+wp.minor>=1}function Zee(t,n){try{return Function(...n,`return ${t};`)}catch(e){console.error(e)}}function Xee(t,n,e){return typeof t=="function"?t.apply(n,e):!!t}function Jee(t,n=!1){let e=t.formControl,i=e._fields?e._fields.indexOf(t):-1;i!==-1&&e._fields.splice(i,1);let r=e.parent;if(!r)return;let o={emitEvent:n};if(r instanceof oS){let a=r.controls.findIndex(s=>s===e);a!==-1&&r.removeAt(a,o)}else if(r instanceof px){let a=uu(t),s=a[a.length-1];r.get([s])===e&&r.removeControl(s,o)}e.setParent(null)}function ete(t){return t.formControl?t.formControl:t.shareFormControl===!1?null:t.form?.get(uu(t))}function p3(t,n,e=!1){if(n=n||t.formControl,n._fields||nr(n,"_fields",[]),n._fields.indexOf(t)===-1&&n._fields.push(t),!t.formControl&&n){nr(t,"formControl",n),n.setValidators(null),n.setAsyncValidators(null),t.props.disabled=!!t.props.disabled;let s=Wi(t,["props","disabled"],({firstChange:l,currentValue:c})=>{l||(c?t.formControl.disable():t.formControl.enable())});n instanceof Jo&&n.registerOnDisabledChange(s.setValue)}if(!t.form||!mn(t))return;let i=t.form,r=uu(t),o=mu(t);!(bc(n.value)&&bc(o))&&n.value!==o&&n instanceof Jo&&n.patchValue(o);for(let s=0;s{nr(n,"_hide",!!i),(!r||r&&i===!0)&&(n.props.hidden=i,n.options._hiddenFieldsForCheck.push({field:n}))}),n.hideExpression&&Wi(n,["hideExpression"],({currentValue:i})=>{n._expressions.hide=this.parseExpressions(n,"hide",typeof i=="boolean"?()=>i:i)});let e=(i,r)=>{typeof r=="string"||uS(r)?n._expressions[i]=this.parseExpressions(n,i,r):r instanceof Fe&&(n._expressions[i]={value$:r.pipe(Be(o=>{this.evalExpr(n,i,o),n.options._detectChanges(n)}))})};n.expressions=n.expressions||{};for(let i of Object.keys(n.expressions))Wi(n,["expressions",i],({currentValue:r})=>{e(i,uS(r)?(...o)=>r(n,o[3]):r)});n.expressionProperties=n.expressionProperties||{};for(let i of Object.keys(n.expressionProperties))Wi(n,["expressionProperties",i],({currentValue:r})=>e(i,r))}postPopulate(n){if(!n.parent&&!n.options.checkExpressions){let e=!1;n.options.checkExpressions=(i,r)=>{if(e)return;e=!0;let o=this.checkExpressions(i,r),a=n.options;a._hiddenFieldsForCheck.sort(s=>s.field.hide?-1:1).forEach(s=>this.changeHideState(s.field,s.field.hide??s.default,!r)),a._hiddenFieldsForCheck=[],o&&this.checkExpressions(n),e=!1}}}parseExpressions(n,e,i){let r;if(n.parent&&["hide","props.disabled"].includes(e)){let a=s=>e==="hide"?s.hide:s.props.disabled;r=()=>{let s=n.parent;for(;s.parent&&!a(s);)s=s.parent;return a(s)}}i=i||(()=>!1),typeof i=="string"&&(i=Zee(i,["model","formState","field"]));let o;return{callback:a=>{try{let s=Xee(r?(...l)=>r(n)||i(...l):i,{field:n},[n.model,n.options.formState,n,a]);return a||o!==s&&(!La(s)||ji(s)||JSON.stringify(s)!==JSON.stringify(o))?(o=s,this.evalExpr(n,e,s),!0):!1}catch(s){throw s.message=`[Formly Error] [Expression "${e}"] ${s.message}`,s}}}}checkExpressions(n,e=!1){if(!n)return!1;let i=!1;if(n._expressions)for(let r of Object.keys(n._expressions))n._expressions[r].callback?.(e)&&(i=!0);return n.fieldGroup?.forEach(r=>this.checkExpressions(r,e)&&(i=!0)),i}changeDisabledState(n,e){n.fieldGroup&&n.fieldGroup.filter(i=>!i._expressions.hasOwnProperty("props.disabled")).forEach(i=>this.changeDisabledState(i,e)),mn(n)&&n.props.disabled!==e&&(n.props.disabled=e)}changeHideState(n,e,i){if(n.fieldGroup&&n.fieldGroup.filter(r=>r&&!r._expressions.hide).forEach(r=>this.changeHideState(r,e,i)),n.formControl&&mn(n)){nr(n,"_hide",!!(e||n.hide));let r=n.formControl;r._fields?.length>1&&vg(r),e===!0&&(!r._fields||r._fields.every(o=>!!o._hide))?(Jee(n,!0),i&&n.resetOnHide&&(bg(n,void 0),n.formControl.reset({value:void 0,disabled:n.formControl.disabled}),n.options.fieldChanges.next({value:void 0,field:n,type:"valueChanges"}),n.fieldGroup&&n.formControl instanceof oS&&(n.fieldGroup.length=0))):e===!1&&(n.resetOnHide&&!bx(n.defaultValue)&&bx(mu(n))&&bg(n,n.defaultValue),p3(n,void 0,!0),n.resetOnHide&&n.fieldArray&&n.fieldGroup?.length!==n.model?.length&&n.options.build(n))}n.options.fieldChanges&&n.options.fieldChanges.next({field:n,type:"hidden",value:e})}evalExpr(n,e,i){if(e.indexOf("model.")===0){let r=e.replace(/^model\./,""),o=n.fieldGroup?n:n.parent,a=n?.key===r?n.formControl:n.form.get(r);!a&&n.get(r)&&(a=n.get(r).formControl),bg({key:r,parent:o,model:n.model},i),a&&!(bc(a.value)&&bc(i))&&a.value!==i&&a.patchValue(i)}else{try{let r=n,o=this._evalExpressionPath(n,e),a=o.length-1;for(let s=0;sr).forEach(r=>{let o=r.match(/['|"](.*?)['|"]/);o?i.push(o[1]):i.push(...r.split(".").filter(a=>a))}),n._expressions[e]&&(n._expressions[e].paths=i),i}},pS=class{constructor(n){this.config=n,this.formId=0}prePopulate(n){let e=n.parent;this.initRootOptions(n),this.initFieldProps(n),e&&(Object.defineProperty(n,"options",{get:()=>e.options,configurable:!0}),Object.defineProperty(n,"model",{get:()=>mn(n)&&n.fieldGroup?mu(n):e.model,configurable:!0})),Object.defineProperty(n,"get",{value:i=>m3(n,i),configurable:!0}),this.getFieldComponentInstance(n).prePopulate?.(n)}onPopulate(n){this.initFieldOptions(n),this.getFieldComponentInstance(n).onPopulate?.(n),n.fieldGroup&&n.fieldGroup.forEach((e,i)=>{e&&(Object.defineProperty(e,"parent",{get:()=>n,configurable:!0}),Object.defineProperty(e,"index",{get:()=>i,configurable:!0})),this.formId++})}postPopulate(n){this.getFieldComponentInstance(n).postPopulate?.(n)}initFieldProps(n){n.props??=n.templateOptions,Object.defineProperty(n,"templateOptions",{get:()=>n.props,set:e=>n.props=e,configurable:!0})}initRootOptions(n){if(n.parent)return;let e=n.options;n.options.formState=n.options.formState||{},e.showError||(e.showError=this.config.extras.showError),e.fieldChanges||nr(e,"fieldChanges",new z),e._hiddenFieldsForCheck||(e._hiddenFieldsForCheck=[]),e._detectChanges=i=>{i._componentRefs&&mS(i),i.fieldGroup?.forEach(r=>r&&e._detectChanges(r))},e.detectChanges=i=>{i.options.checkExpressions?.(i),e._detectChanges(i)},e.resetModel=i=>{i=vc(i??e._initialModel),n.model&&(Object.keys(n.model).forEach(r=>delete n.model[r]),Object.assign(n.model,i||{})),h3()||Wi(e,["parentForm","submitted"]).setValue(!1,!1),e.build(n),n.form.reset(n.model)},e.updateInitialValue=i=>e._initialModel=vc(i??n.model),n.options.updateInitialValue()}initFieldOptions(n){Ch(n,{id:Wee(`formly_${this.formId}`,n,n.index),hooks:{},modelOptions:{},validation:{messages:{}},props:!n.type||!mn(n)?{}:{label:"",placeholder:"",disabled:!1}}),this.config.extras.resetFieldOnHide&&n.resetOnHide!==!1&&(n.resetOnHide=!0),n.type!=="formly-template"&&(n.template||n.expressions?.template||n.expressionProperties?.template)&&(n.type="formly-template"),!n.type&&n.fieldGroup&&(n.type="formly-group"),n.type&&this.config.getMergedField(n),mn(n)&&!bx(n.defaultValue)&&bx(mu(n))&&!Kee(n)&&bg(n,n.defaultValue),n.wrappers=n.wrappers||[]}getFieldComponentInstance(n){let e=()=>{let i=this.config.resolveFieldTypeRef(n),r=n._componentRefs?.slice(-1)[0];return r instanceof Id&&r?.componentType===i?.componentType&&(i=r),i?.instance};return n._proxyInstance||nr(n,"_proxyInstance",new Proxy({},{get:(i,r)=>e()?.[r],set:(i,r,o)=>e()[r]=o})),n._proxyInstance}},fS=class{prePopulate(n){this.root||(this.root=n),n.parent&&Object.defineProperty(n,"form",{get:()=>n.parent.formControl,configurable:!0})}onPopulate(n){n.hasOwnProperty("fieldGroup")&&!mn(n)?nr(n,"formControl",n.form):this.addFormControl(n)}postPopulate(n){if(this.root!==n)return;if(this.root=null,this.setValidators(n)&&n.parent){let i=n.parent;for(;i;)(mn(i)||!i.parent)&&vg(i.formControl,!0),i=i.parent}}addFormControl(n){let e=ete(n);if(!n.fieldArray){if(e){if(e instanceof Jo){let i=mn(n)?mu(n):n.defaultValue;e.defaultValue=i}}else{let i={updateOn:n.modelOptions.updateOn};if(n.fieldGroup)e=new px({},i);else{let r=mn(n)?mu(n):n.defaultValue;e=new $B({value:r,disabled:!!n.props.disabled},De(M({},i),{initialValueIsDefault:!0}))}}p3(n,e)}}setValidators(n,e=!1){e===!1&&mn(n)&&n.props?.disabled&&(e=!0);let i=!1;if(n.fieldGroup?.forEach(r=>r&&this.setValidators(r,e)&&(i=!0)),mn(n)||!n.parent||!mn(n)&&!n.fieldGroup){let{formControl:r}=n;if(r&&(mn(n)&&r instanceof Jo&&(e&&r.enabled&&(r.disable({emitEvent:!1,onlySelf:!0}),i=!0),!e&&r.disabled&&(r.enable({emitEvent:!1,onlySelf:!0}),i=!0)),r.validator===null&&this.hasValidators(n,"_validators")&&(r.setValidators(()=>{let o=Le.compose(this.mergeValidators(n,"_validators"));return o?o(r):null}),i=!0),r.asyncValidator===null&&this.hasValidators(n,"_asyncValidators")&&(r.setAsyncValidators(()=>{let o=Le.composeAsync(this.mergeValidators(n,"_asyncValidators"));return o?o(r):Q(null)}),i=!0),i)){vg(r,!0);let o=r.parent;for(let a=1;a1&&i._fields.some(r=>r[e].length>0)||n[e].length>0?!0:n.fieldGroup?.some(r=>r?.fieldGroup&&!mn(r)&&this.hasValidators(r,e))}mergeValidators(n,e){let i=[],r=n.formControl;return r?._fields?.length>1?r._fields.filter(o=>!o._hide).forEach(o=>i.push(...o[e])):n[e]&&i.push(...n[e]),n.fieldGroup&&n.fieldGroup.filter(o=>o?.fieldGroup&&!mn(o)).forEach(o=>i.push(...this.mergeValidators(o,e))),i}},gS=class{constructor(n){this.config=n}onPopulate(n){this.initFieldValidation(n,"validators"),this.initFieldValidation(n,"asyncValidators")}initFieldValidation(n,e){let i=[];if(e==="validators"&&!(n.hasOwnProperty("fieldGroup")&&!mn(n))&&i.push(this.getPredefinedFieldValidation(n)),n[e])for(let r of Object.keys(n[e]))r==="validation"?i.push(...n[e].validation.map(o=>this.wrapNgValidatorFn(n,o))):i.push(this.wrapNgValidatorFn(n,n[e][r],r));nr(n,"_"+e,i)}getPredefinedFieldValidation(n){let e=[];return _S.forEach(i=>Wi(n,["props",i],({currentValue:r,firstChange:o})=>{e=e.filter(a=>a!==i),i==="required"&&r!=null&&typeof r!="boolean"&&console.warn(`Formly: Invalid prop 'required' of type '${typeof r}', expected 'boolean' (Field:${n.key}).`),r!=null&&r!==!1&&e.push(i),!o&&n.formControl&&vg(n.formControl)})),i=>e.length===0?null:Le.compose(e.map(r=>()=>{let o=n.props[r];switch(r){case"required":return Le.required(i);case"pattern":return Le.pattern(o)(i);case"minLength":let a=Le.minLength(o)(i),s=this.config.getValidatorMessage("minlength")||n.validation?.messages?.minlength?"minlength":"minLength";return a?{[s]:a.minlength}:null;case"maxLength":let l=Le.maxLength(o)(i),c=this.config.getValidatorMessage("maxlength")||n.validation?.messages?.maxlength?"maxlength":"maxLength";return l?{[c]:l.maxlength}:null;case"min":return Le.min(o)(i);case"max":return Le.max(o)(i);default:return null}}))(i)}wrapNgValidatorFn(n,e,i){let r;if(typeof e=="string"&&(r=vc(this.config.getValidator(e))),typeof e=="object"&&e.name&&(r=vc(this.config.getValidator(e.name)),e.options&&(r.options=e.options)),typeof e=="object"&&e.expression){let o=e,{expression:a}=o,s=ed(o,["expression"]);r={name:i,validation:a,options:Object.keys(s).length>0?s:null}}return typeof e=="function"&&(r={name:i,validation:e}),a=>{let s=r.validation(a,n,r.options);return Qee(s)?s.then(l=>this.handleResult(n,i?!!l:l,r)):ji(s)?s.pipe(se(l=>this.handleResult(n,i?!!l:l,r))):this.handleResult(n,i?!!s:s,r)}}handleResult(n,e,{name:i,options:r}){typeof e=="boolean"&&(e=e?null:{[i]:r||!0});let o=n.formControl;return o?._childrenErrors?.[i]?.(),La(e)&&Object.keys(e).forEach(a=>{let s=e[a].errorPath?e[a].errorPath:r?.errorPath,l=s?n.formControl.get(s):null;if(l){let c=e[a],{errorPath:d}=c,m=ed(c,["errorPath"]);l.setErrors(De(M({},l.errors||{}),{[a]:m})),!o._childrenErrors&&nr(o,"_childrenErrors",{}),o._childrenErrors[a]=()=>{let v=l.errors||{},{[a]:f}=v,b=ed(v,[fA(a)]);l.setErrors(Object.keys(b).length===0?null:b)}}}),e}},xg=(()=>{let n=class n{constructor(){this.field={}}set _formlyControls(i){let r=this.field;r._localFields=i.map(o=>o.control._fields||[]).flat().filter(o=>o.formControl!==this.field.formControl)}get model(){return this.field.model}get form(){return this.field.form}get options(){return this.field.options}get key(){return this.field.key}get formControl(){return this.field.formControl}get props(){return this.field.props||{}}get to(){return this.props}get showError(){return this.options.showError(this)}get id(){return this.field.id}get formState(){return this.options?.formState||{}}};n.\u0275fac=function(r){return new(r||n)},n.\u0275dir=F({type:n,viewQuery:function(r,o){if(r&1&&ie(Hn,5),r&2){let a;B(a=j())&&(o._formlyControls=a)}},inputs:{field:"field"},standalone:!1});let t=n;return t})(),tte=(()=>{let n=class n extends xg{get template(){return this.field&&this.field.template!==this.innerHtml.template&&(this.innerHtml={template:this.field.template,content:this.props.safeHtml?this.sanitizer.bypassSecurityTrustHtml(this.field.template):this.field.template}),this.innerHtml.content}constructor(i){super(),this.sanitizer=i,this.innerHtml={}}};n.\u0275fac=function(r){return new(r||n)(_e(Cf))},n.\u0275cmp=E({type:n,selectors:[["formly-template"]],standalone:!1,features:[le],decls:1,vars:1,consts:[[3,"innerHtml"]],template:function(r,o){r&1&&k(0,"div",0),r&2&&y("innerHtml",o.template,Zp)},encapsulation:2,changeDetection:0});let t=n;return t})(),bS=(()=>{let n=class n{constructor(){this.types={},this.validators={},this.wrappers={},this.messages={},this.extras={checkExpressionOn:"modelChange",lazyRender:!0,resetFieldOnHide:!0,renderFormlyFieldElement:!0,showError(i){return i.formControl?.invalid&&(i.formControl?.touched||i.options.parentForm?.submitted||!!i.field.validation?.show)}},this.extensions={},this.presets={},this.extensionsByPriority={},this.componentRefs={}}addConfig(i){if(Array.isArray(i)){i.forEach(r=>this.addConfig(r));return}i.types&&i.types.forEach(r=>this.setType(r)),i.validators&&i.validators.forEach(r=>this.setValidator(r)),i.wrappers&&i.wrappers.forEach(r=>this.setWrapper(r)),i.validationMessages&&i.validationMessages.forEach(r=>this.addValidatorMessage(r.name,r.message)),i.extensions&&this.setSortedExtensions(i.extensions),i.extras&&(this.extras=M(M({},this.extras),i.extras)),i.presets&&(this.presets=M(M({},this.presets),i.presets.reduce((r,o)=>De(M({},r),{[o.name]:o.config}),{})))}setType(i){Array.isArray(i)?i.forEach(r=>this.setType(r)):(this.types[i.name]||(this.types[i.name]={name:i.name}),["component","extends","defaultOptions","wrappers"].forEach(r=>{i.hasOwnProperty(r)&&(this.types[i.name][r]=i[r])}))}getType(i,r=!1){if(i instanceof Td)return{component:i,name:i.prototype.constructor.name};if(!this.types[i]){if(r)throw new Error(`[Formly Error] The type "${i}" could not be found. Please make sure that is registered through the FormlyModule declaration.`);return null}return this.mergeExtendedType(i),this.types[i]}getMergedField(i={}){let r=this.getType(i.type);if(!r)return;r.defaultOptions&&Ch(i,r.defaultOptions);let o=r.extends&&this.getType(r.extends).defaultOptions;o&&Ch(i,o),i?.optionsTypes&&i.optionsTypes.forEach(s=>{let l=this.getType(s).defaultOptions;l&&Ch(i,l)});let a=this.resolveFieldTypeRef(i);a?.instance?.defaultOptions&&Ch(i,a.instance.defaultOptions),!i.wrappers&&r.wrappers&&(i.wrappers=[...r.wrappers])}resolveFieldTypeRef(i={}){let r=this.getType(i.type);if(!r||!r.component)return null;if(!this.componentRefs[r.name]){let{_viewContainerRef:o,_injector:a}=i.options;if(!o||!a)return null;let s=o.createComponent(r.component,{injector:a});this.componentRefs[r.name]=s;try{s.destroy()}catch(l){console.error(`An error occurred while destroying the Formly component type "${i.type}"`,l)}}return this.componentRefs[r.name]}clearRefs(){this.componentRefs={}}setWrapper(i){this.wrappers[i.name]=i,i.types&&i.types.forEach(r=>{this.setTypeWrapper(r,i.name)})}getWrapper(i){if(i instanceof Td)return{component:i,name:i.prototype.constructor.name};if(!this.wrappers[i])throw new Error(`[Formly Error] The wrapper "${i}" could not be found. Please make sure that is registered through the FormlyModule declaration.`);return this.wrappers[i]}setTypeWrapper(i,r){this.types[i]||(this.types[i]={}),this.types[i].wrappers||(this.types[i].wrappers=[]),this.types[i].wrappers.indexOf(r)===-1&&this.types[i].wrappers.push(r)}setValidator(i){this.validators[i.name]=i}getValidator(i){if(!this.validators[i])throw new Error(`[Formly Error] The validator "${i}" could not be found. Please make sure that is registered through the FormlyModule declaration.`);return this.validators[i]}addValidatorMessage(i,r){this.messages[i]=r}getValidatorMessage(i){return this.messages[i]}setSortedExtensions(i){i.forEach(r=>{let o=r.priority??1;this.extensionsByPriority[o]=De(M({},this.extensionsByPriority[o]),{[r.name]:r.extension})}),this.extensions=Object.keys(this.extensionsByPriority).map(Number).sort((r,o)=>r-o).reduce((r,o)=>M(M({},r),this.extensionsByPriority[o]),{})}mergeExtendedType(i){if(!this.types[i].extends)return;let r=this.getType(this.types[i].extends);this.types[i].component||(this.types[i].component=r.component),this.types[i].wrappers||(this.types[i].wrappers=r.wrappers)}};n.\u0275fac=function(r){return new(r||n)},n.\u0275prov=O({token:n,factory:n.\u0275fac,providedIn:"root"});let t=n;return t})();var ite=(()=>{let n=class n{};n.\u0275fac=function(r){return new(r||n)},n.\u0275prov=O({token:n,factory:n.\u0275fac});let t=n;return t})(),nte=(()=>{let n=class n{get containerRef(){return this.config.extras.renderFormlyFieldElement?this.viewContainerRef:this.hostContainerRef}get elementRef(){return this.config.extras.renderFormlyFieldElement?this._elementRef:this.componentRefs?.[0]instanceof Id?this.componentRefs[0].location:null}constructor(i,r,o,a,s){this.config=i,this.renderer=r,this._elementRef=o,this.hostContainerRef=a,this.form=s,this.hostObservers=[],this.componentRefs=[],this.hooksObservers=[],this.detectFieldBuild=!1,this.valueChangesUnsubscribe=()=>{}}ngAfterContentInit(){this.triggerHook("afterContentInit")}ngAfterViewInit(){this.triggerHook("afterViewInit")}ngDoCheck(){this.detectFieldBuild&&this.field&&this.field.options&&this.render()}ngOnInit(){this.triggerHook("onInit")}ngOnChanges(i){this.triggerHook("onChanges",i)}ngOnDestroy(){this.resetRefs(this.field),this.hostObservers.forEach(i=>i.unsubscribe()),this.hooksObservers.forEach(i=>i()),this.valueChangesUnsubscribe(),this.triggerHook("onDestroy")}renderField(i,r,o=[]){if(this.containerRef===i&&(this.resetRefs(this.field),this.containerRef.clear(),o=this.field?.wrappers),o?.length>0){let[a,...s]=o,{component:l}=this.config.getWrapper(a),c=i.createComponent(l);this.attachComponentRef(c,r),Wi(c.instance,["fieldComponent"],({currentValue:d,previousValue:m,firstChange:f})=>{if(d){if(m&&m._lContainer===d._lContainer)return;let b=m?m.detach():null;b&&!b.destroyed?d.insert(b):this.renderField(d,r,s),!f&&c.changeDetectorRef.detectChanges()}})}else if(r?.type){let a=this.form?.templates?.find(l=>l.name===r.type),s;if(a)s=i.createEmbeddedView(a.ref,{$implicit:r});else{let{component:l}=this.config.getType(r.type,!0);s=i.createComponent(l)}this.attachComponentRef(s,r)}}triggerHook(i,r){if((i==="onInit"||i==="onChanges"&&r.field&&!r.field.firstChange)&&(this.valueChangesUnsubscribe(),this.valueChangesUnsubscribe=this.fieldChanges(this.field)),this.field?.hooks?.[i]&&(!r||r.field)){let o=this.field.hooks[i](this.field);if(ji(o)&&["onInit","afterContentInit","afterViewInit"].indexOf(i)!==-1){let a=o.subscribe();this.hooksObservers.push(()=>a.unsubscribe())}}i==="onChanges"&&r.field&&(this.resetRefs(r.field.previousValue),this.render())}attachComponentRef(i,r){this.componentRefs.push(i),r._componentRefs.push(i),i instanceof Id&&Object.assign(i.instance,{field:r})}render(){if(this.field){if(!this.field.options){this.detectFieldBuild=!0;return}if(this.detectFieldBuild=!1,this.hostObservers.forEach(i=>i.unsubscribe()),this.hostObservers=[Wi(this.field,["hide"],({firstChange:i,currentValue:r})=>{let o=this.containerRef;this.config.extras.lazyRender===!1?(i&&this.renderField(o,this.field),(!i||i&&r)&&this.elementRef&&this.renderer.setStyle(this.elementRef.nativeElement,"display",r?"none":"")):r?(o.clear(),this.field.className&&this.renderer.removeAttribute(this.elementRef.nativeElement,"class")):(this.renderField(o,this.field),this.field.className&&this.renderer.setAttribute(this.elementRef.nativeElement,"class",this.field.className)),!i&&this.field.options.detectChanges(this.field)}),Wi(this.field,["className"],({firstChange:i,currentValue:r})=>{(!i||i&&r)&&(!this.config.extras.lazyRender||this.field.hide!==!0)&&this.elementRef&&this.renderer.setAttribute(this.elementRef.nativeElement,"class",r)})],!h3())["touched","pristine","status"].forEach(i=>this.hostObservers.push(Wi(this.field,["formControl",i],({firstChange:r})=>!r&&mS(this.field))));else if(this.field.formControl){let i=this.field.formControl.events.subscribe(()=>mS(this.field));this.hostObservers.push(i)}}}resetRefs(i){i&&(i._localFields?i._localFields=[]:nr(this.field,"_localFields",[]),i._componentRefs?i._componentRefs=i._componentRefs.filter(r=>this.componentRefs.indexOf(r)===-1):nr(this.field,"_componentRefs",[])),this.componentRefs=[]}fieldChanges(i){if(!i)return()=>{};let r=u3(i,["props"],()=>i.options.detectChanges(i)),o=[()=>{r()}];for(let s of Object.keys(i._expressions||{})){let l=Wi(i,["_expressions",s],({currentValue:c,previousValue:d})=>{d?.subscription&&(d.subscription.unsubscribe(),d.subscription=null),ji(c.value$)&&(c.subscription=c.value$.subscribe())});o.push(()=>{i._expressions[s]?.subscription&&i._expressions[s].subscription.unsubscribe(),l.unsubscribe()})}for(let s of[["focus"],["template"],["fieldGroupClassName"],["validation","show"]]){let l=Wi(i,s,({firstChange:c})=>!c&&i.options.detectChanges(i));o.push(()=>l.unsubscribe())}if(i.formControl&&!i.fieldGroup){let s=i.formControl,l=s.valueChanges.pipe(se(f=>(i.parsers?.map(b=>f=b(f,i)),Object.is(f,i.formControl.value)||i.formControl.setValue(f),f)),Sn((f,b)=>!(f!==b||Array.isArray(f)||La(f))));s.value!==mu(i)&&(l=l.pipe(He(s.value)));let{updateOn:c,debounce:d}=i.modelOptions;(!c||c==="change")&&d?.default>0&&(l=l.pipe(Rt(d.default)));let m=l.subscribe(f=>{s._fields?.length>1&&s instanceof Jo&&s.patchValue(f,{emitEvent:!1,onlySelf:!0}),mn(i)&&bg(i,f),i.options.fieldChanges.next({value:f,field:i,type:"valueChanges"})});o.push(()=>m.unsubscribe())}let a=[];return Wi(i,["_localFields"],({currentValue:s})=>{a.forEach(l=>l()),a=(s||[]).map(l=>this.fieldChanges(l))}),()=>{o.forEach(s=>s()),a.forEach(s=>s())}}};n.\u0275fac=function(r){return new(r||n)(_e(bS),_e(je),_e(q),_e(nt),_e(ite,8))},n.\u0275cmp=E({type:n,selectors:[["formly-field"]],viewQuery:function(r,o){if(r&1&&ie(jee,7,nt),r&2){let a;B(a=j())&&(o.viewContainerRef=a.first)}},inputs:{field:"field"},features:[Ae],decls:2,vars:0,consts:[["container",""]],template:function(r,o){r&1&&xa(0,Hee,0,0,"ng-template",null,0,_i)},styles:["[_nghost-%COMP%]:empty{display:none}"]});let t=n;return t})(),rte=(()=>{let n=class n extends nte{};n.\u0275fac=(()=>{let i;return function(o){return(i||(i=fe(n)))(o||n)}})(),n.\u0275cmp=E({type:n,selectors:[["formly-field"]],standalone:!1,features:[le],decls:2,vars:0,consts:[["container",""]],template:function(r,o){r&1&&R(0,zee,0,0,"ng-template",null,0,_i)},styles:["[_nghost-%COMP%]:empty{display:none}"]});let t=n;return t})(),ote=(()=>{let n=class n extends xg{};n.\u0275fac=(()=>{let i;return function(o){return(i||(i=fe(n)))(o||n)}})(),n.\u0275cmp=E({type:n,selectors:[["formly-group"]],hostVars:2,hostBindings:function(r,o){r&2&&it(o.field.fieldGroupClassName||"")},standalone:!1,features:[le],ngContentSelectors:Uee,decls:3,vars:0,consts:[[3,"field"]],template:function(r,o){r&1&&(Me(),xt(0,$ee,1,1,"formly-field",0,Hi),oe(2)),r&2&&Ct(o.field.fieldGroup)},dependencies:[rte],encapsulation:2,changeDetection:0});let t=n;return t})(),yg=new T("FORMLY_CONFIG");function ate(t){return{types:[{name:"formly-group",component:ote},{name:"formly-template",component:tte}],extensions:[{name:"core",extension:new pS(t),priority:-250},{name:"field-validation",extension:new gS(t),priority:-200},{name:"field-form",extension:new fS,priority:-150},{name:"field-expression",extension:new hS,priority:-100}]}}var f3=(t=[])=>[{provide:yg,multi:!0,useFactory:ate,deps:[bS]},ste(t)],ste=(t=[])=>({provide:yg,multi:!0,useFactory:()=>{let n=u(yg,{skipSelf:!0,optional:!0});return n?(n.push(t),n):t}});var lte=(()=>{let n=class n{get props(){return this.field.props||{}}get fieldAttrElements(){return this.field?._elementRefs||[]}constructor(i,r,o){this.renderer=i,this.elementRef=r,this.uiAttributesCache={},this.uiEvents={listeners:[],events:["click","keyup","keydown","keypress","focus","blur","change","wheel"],callback:(a,s)=>{switch(a){case"focus":return this.onFocus(s);case"blur":return this.onBlur(s);case"change":return this.onChange(s);default:return this.props[a](this.field,s)}}},this.document=o}ngOnChanges(i){i.field&&(this.field.name&&this.setAttribute("name",this.field.name),this.uiEvents.listeners.forEach(r=>r()),this.uiEvents.events.forEach(r=>{(this.props?.[r]||["focus","blur","change"].indexOf(r)!==-1)&&this.uiEvents.listeners.push(this.renderer.listen(this.elementRef.nativeElement,r,o=>this.uiEvents.callback(r,o)))}),this.props?.attributes&&Wi(this.field,["props","attributes"],({currentValue:r,previousValue:o})=>{o&&Object.keys(o).forEach(a=>this.removeAttribute(a)),r&&Object.keys(r).forEach(a=>{r[a]!=null&&this.setAttribute(a,r[a])})}),this.detachElementRef(i.field.previousValue),this.attachElementRef(i.field.currentValue),this.fieldAttrElements.length===1&&(!this.id&&this.field.id&&this.setAttribute("id",this.field.id),this.focusObserver=Wi(this.field,["focus"],({currentValue:r})=>{this.toggleFocus(r)}))),i.id&&this.setAttribute("id",this.id)}ngDoCheck(){if(!this.uiAttributes){let i=this.elementRef.nativeElement;this.uiAttributes=[..._S,"tabindex","placeholder","readonly","disabled","step"].filter(r=>!i.hasAttribute||!i.hasAttribute(r))}for(let i=0;ii()),this.detachElementRef(this.field),this.focusObserver?.unsubscribe()}toggleFocus(i){let r=this.fieldAttrElements?this.fieldAttrElements[0]:null;if(!r||!r.nativeElement.focus)return;let o=!!this.document.activeElement&&this.fieldAttrElements.some(({nativeElement:a})=>this.document.activeElement===a||a.contains(this.document.activeElement));i&&!o?Promise.resolve().then(()=>r.nativeElement.focus()):!i&&o&&Promise.resolve().then(()=>r.nativeElement.blur())}onFocus(i){this.focusObserver?.setValue(!0),this.props.focus?.(this.field,i)}onBlur(i){this.focusObserver?.setValue(!1),this.props.blur?.(this.field,i)}onHostChange(i){i instanceof Event||this.onChange(i)}onChange(i){this.props.change?.(this.field,i),this.field.formControl?.markAsDirty()}attachElementRef(i){i&&(i._elementRefs?.indexOf(this.elementRef)===-1?i._elementRefs.push(this.elementRef):nr(i,"_elementRefs",[this.elementRef]))}detachElementRef(i){let r=i?._elementRefs?this.fieldAttrElements.indexOf(this.elementRef):-1;r!==-1&&i._elementRefs.splice(r,1)}setAttribute(i,r){this.renderer.setAttribute(this.elementRef.nativeElement,i,r)}removeAttribute(i){this.renderer.removeAttribute(this.elementRef.nativeElement,i)}};n.\u0275fac=function(r){return new(r||n)(_e(je),_e(q),_e(ge))},n.\u0275dir=F({type:n,selectors:[["","formlyAttributes",""]],hostBindings:function(r,o){r&1&&S("change",function(s){return o.onHostChange(s)})},inputs:{field:[0,"formlyAttributes","field"],id:"id"},features:[Ae]});let t=n;return t})(),ta=(()=>{let n=class n extends lte{};n.\u0275fac=(()=>{let i;return function(o){return(i||(i=fe(n)))(o||n)}})(),n.\u0275dir=F({type:n,selectors:[["","formlyAttributes",""]],hostBindings:function(r,o){r&1&&S("change",function(s){return o.onHostChange(s)})},standalone:!1,features:[le]});let t=n;return t})(),cte=(()=>{let n=class n{constructor(i){this.config=i}ngOnChanges(){let i=_S.map(r=>`templateOptions.${r}`);this.errorMessage$=Je(this.field.formControl.statusChanges,this.field.options?this.field.options.fieldChanges.pipe(ce(({field:r,type:o,property:a})=>r===this.field&&o==="expressionChanges"&&(a.indexOf("validation")!==-1||i.indexOf(a)!==-1))):Q(null)).pipe(He(null),$e(()=>ji(this.errorMessage)?this.errorMessage:Q(this.errorMessage)))}get errorMessage(){let i=this.field.formControl;for(let r in i.errors)if(i.errors.hasOwnProperty(r)){let o=this.config.getValidatorMessage(r);if(La(i.errors[r])){if(i.errors[r].errorPath)return;i.errors[r].message&&(o=i.errors[r].message)}return this.field.validation?.messages?.[r]&&(o=this.field.validation.messages[r]),this.field.validators?.[r]?.message&&(o=this.field.validators[r].message),this.field.asyncValidators?.[r]?.message&&(o=this.field.asyncValidators[r].message),typeof o=="function"?o(i.errors[r],this.field):o}}};n.\u0275fac=function(r){return new(r||n)(_e(bS))},n.\u0275cmp=E({type:n,selectors:[["formly-validation-message"]],inputs:{field:"field"},features:[Ae],decls:2,vars:3,template:function(r,o){r&1&&(_(0),me(1,"async")),r&2&&H(Oe(1,1,o.errorMessage$))},dependencies:[rn],encapsulation:2,changeDetection:0});let t=n;return t})(),g3=(()=>{let n=class n extends cte{};n.\u0275fac=(()=>{let i;return function(o){return(i||(i=fe(n)))(o||n)}})(),n.\u0275cmp=E({type:n,selectors:[["formly-validation-message"]],standalone:!1,features:[le],decls:2,vars:3,template:function(r,o){r&1&&(_(0),me(1,"async")),r&2&&H(Oe(1,1,o.errorMessage$))},dependencies:[rn],encapsulation:2,changeDetection:0});let t=n;return t})();var Cg=(()=>{let n=class n extends xg{set _formlyControls(i){}set _staticContent(i){this.fieldComponent=i}};n.\u0275fac=(()=>{let i;return function(o){return(i||(i=fe(n)))(o||n)}})(),n.\u0275dir=F({type:n,viewQuery:function(r,o){if(r&1&&(ie(d3,5,nt),ie(d3,7,nt)),r&2){let a;B(a=j())&&(o.fieldComponent=a.first),B(a=j())&&(o._staticContent=a.first)}},standalone:!1,features:[le]});let t=n;return t})();var wg=t=>({field:t}),b3=t=>({content:t});function dte(t,n){t&1&&(h(0,"span",9),_(1,"*"),p())}function ute(t,n){if(t&1&&(h(0,"mat-label"),_(1),N(2,dte,2,0,"span",9),p()),t&2){let e=C();g(),ve(" ",e.props.label," "),g(),L(e.props.required&&e.props.hideRequiredMarker!==!0?2:-1)}}function mte(t,n){if(t&1&&Ge(0,3),t&2){let e=C();y("ngTemplateOutlet",e.props.textPrefix)("ngTemplateOutletContext",Pt(2,wg,e.field))}}function hte(t,n){if(t&1&&Ge(0,4),t&2){let e=C();y("ngTemplateOutlet",e.props.prefix)("ngTemplateOutletContext",Pt(2,wg,e.field))}}function pte(t,n){if(t&1&&Ge(0,5),t&2){let e=C();y("ngTemplateOutlet",e.props.textSuffix)("ngTemplateOutletContext",Pt(2,wg,e.field))}}function fte(t,n){if(t&1&&Ge(0,6),t&2){let e=C();y("ngTemplateOutlet",e.props.suffix)("ngTemplateOutletContext",Pt(2,wg,e.field))}}function gte(t,n){if(t&1&&(h(0,"mat-hint"),Ge(1,10),p()),t&2){C();let e=Se(13);g(),y("ngTemplateOutlet",e)("ngTemplateOutletContext",Pt(2,b3,n))}}function _te(t,n){if(t&1&&(h(0,"mat-hint",8),Ge(1,10),p()),t&2){C();let e=Se(13);g(),y("ngTemplateOutlet",e)("ngTemplateOutletContext",Pt(2,b3,n))}}function bte(t,n){if(t&1&&(jt(0),_(1),Lt()),t&2){let e=C().content;g(),H(e)}}function vte(t,n){if(t&1&&Ge(0,10),t&2){let e=C().content,i=C();y("ngTemplateOutlet",e)("ngTemplateOutletContext",Pt(2,wg,i.field))}}function yte(t,n){if(t&1&&N(0,bte,2,1,"ng-container")(1,vte,1,4,"ng-container",10),t&2){let e=n.content;L(e.createEmbeddedView?1:0)}}var xte=["matPrefix"],Cte=["matTextPrefix"],wte=["matSuffix"],Dte=["matTextSuffix"],Ete=(()=>{let n=class n extends Cg{constructor(i,r,o){super(),this.renderer=i,this.elementRef=r,this.focusMonitor=o}ngOnInit(){nr(this.field,"_formField",this.formField),this.focusMonitor.monitor(this.elementRef,!0).subscribe(i=>{!i&&this.field.focus&&(this.field.focus=!1)})}ngAfterViewInit(){if(this.formField.appearance!=="outline"&&this.props.hideFieldUnderline===!0){let i=this.formField._elementRef.nativeElement.querySelector(".mat-form-field-underline");i&&this.renderer.removeChild(i.parentNode,i)}}ngOnDestroy(){delete this.field._formField,this.focusMonitor.stopMonitoring(this.elementRef)}};n.\u0275fac=function(r){return new(r||n)(_e(je),_e(q),_e(Yt))},n.\u0275cmp=E({type:n,selectors:[["formly-wrapper-mat-form-field"]],viewQuery:function(r,o){if(r&1&&ie(Oi,7),r&2){let a;B(a=j())&&(o.formField=a.first)}},standalone:!1,features:[le],decls:14,vars:13,consts:[["fieldComponent",""],["stringOrTemplate",""],[3,"hideRequiredMarker","floatLabel","appearance","subscriptSizing","color"],["matTextPrefix","",3,"ngTemplateOutlet","ngTemplateOutletContext"],["matPrefix","",3,"ngTemplateOutlet","ngTemplateOutletContext"],["matTextSuffix","",3,"ngTemplateOutlet","ngTemplateOutletContext"],["matSuffix","",3,"ngTemplateOutlet","ngTemplateOutletContext"],[3,"field"],["align","end"],["aria-hidden","true",1,"mat-form-field-required-marker","mat-mdc-form-field-required-marker"],[3,"ngTemplateOutlet","ngTemplateOutletContext"]],template:function(r,o){if(r&1&&(h(0,"mat-form-field",2),Ge(1,null,0),N(3,ute,3,2,"mat-label"),N(4,mte,1,4,"ng-container",3),N(5,hte,1,4,"ng-container",4),N(6,pte,1,4,"ng-container",5),N(7,fte,1,4,"ng-container",6),h(8,"mat-error"),k(9,"formly-validation-message",7),p(),N(10,gte,2,4,"mat-hint"),N(11,_te,2,4,"mat-hint",8),p(),R(12,yte,2,1,"ng-template",null,1,_i)),r&2){let a,s;y("hideRequiredMarker",!0)("floatLabel",o.props.floatLabel)("appearance",o.props.appearance)("subscriptSizing",o.props.subscriptSizing)("color",o.props.color??"primary"),g(3),L(o.props.label&&o.props.hideLabel!==!0?3:-1),g(),L(o.props.textPrefix?4:-1),g(),L(o.props.prefix?5:-1),g(),L(o.props.textSuffix?6:-1),g(),L(o.props.suffix?7:-1),g(2),y("field",o.field),g(),L((a=o.props.description||o.props.hintStart)?10:-1,a),g(),L((s=o.props.hintEnd)?11:-1,s)}},dependencies:[Fn,Oi,sn,eg,xo,nu,ru,g3],styles:[`formly-wrapper-mat-form-field .mat-mdc-form-field,formly-wrapper-mat-form-field .mat-form-field{width:100%} +`],encapsulation:2});let t=n;return t})();function v3(){return{wrappers:[{name:"form-field",component:Ete}]}}var to=(()=>{let n=class n extends xg{constructor(){super(...arguments),this.errorStateMatcher={isErrorState:()=>this.field&&this.showError},this.stateChanges=new z,this._errorState=!1,this._focused=!1}set matPrefix(i){i&&(this.props.prefix=i)}set matTextPrefix(i){i&&(this.props.textPrefix=i)}set matSuffix(i){i&&(this.props.suffix=i)}set matTextSuffix(i){i&&(this.props.textSuffix=i)}set _controls(i){this.attachControl(i.length===1?i.first:this)}ngOnDestroy(){delete this.formField?._control,this.stateChanges.complete()}setDescribedByIds(i){}onContainerClick(i){this.field.focus=!0,this.stateChanges.next()}get errorState(){let i=this.options.showError(this);return i!==this._errorState&&(this._errorState=i,this.stateChanges.next()),i}get controlType(){if(this.props.type)return this.props.type;let i=this.field.type;return i instanceof Td?i.prototype.constructor.name:i}get focused(){let i=!!this.field.focus&&!this.disabled;return i!==this._focused&&(this._focused=i,this.stateChanges.next()),i}get disabled(){return!!this.props.disabled}get required(){return!!this.props.required}get placeholder(){return this.props.placeholder||""}get shouldPlaceholderFloat(){return this.shouldLabelFloat}get value(){return this.formControl?.value}set value(i){this.formControl?.patchValue(i)}get ngControl(){return this.formControl}get empty(){return this.value==null||this.value===""}get shouldLabelFloat(){return this.focused||!this.empty}get formField(){return this.field?._formField}attachControl(i){if(this.formField&&i!==this.formField._control){this.formField._control=i;let r=i?.ngControl;r?.valueAccessor?.hasOwnProperty("_formField")&&(r.valueAccessor._formField=this.formField),r?.valueAccessor?.hasOwnProperty("_parentFormField")&&(r.valueAccessor._parentFormField=this.formField),["prefix","suffix","textPrefix","textSuffix"].forEach(a=>Wi(this.field,["props",a],({currentValue:s})=>s&&Promise.resolve().then(()=>{this.options.detectChanges(this.field)})));let o=i.setDescribedByIds.bind(i);i.setDescribedByIds=a=>{setTimeout(()=>o(a))}}}};n.\u0275fac=(()=>{let i;return function(o){return(i||(i=fe(n)))(o||n)}})(),n.\u0275dir=F({type:n,viewQuery:function(r,o){if(r&1&&(ie(xte,5),ie(Cte,5),ie(wte,5),ie(Dte,5),ie(Ra,5)),r&2){let a;B(a=j())&&(o.matPrefix=a.first),B(a=j())&&(o.matTextPrefix=a.first),B(a=j())&&(o.matSuffix=a.first),B(a=j())&&(o.matTextSuffix=a.first),B(a=j())&&(o._controls=a)}},standalone:!1,features:[le]});let t=n;return t})();var y3=(()=>{class t{static \u0275fac=function(i){return new(i||t)};static \u0275cmp=E({type:t,selectors:[["ng-component"]],hostAttrs:["cdk-text-field-style-loader",""],decls:0,vars:0,template:function(i,r){},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 t})(),Mte={passive:!0},x3=(()=>{class t{_platform=u(qe);_ngZone=u(ae);_renderer=u(cn).createRenderer(null,null);_styleLoader=u(ut);_monitoredElements=new Map;constructor(){}monitor(e){if(!this._platform.isBrowser)return Fi;this._styleLoader.load(y3);let i=Pr(e),r=this._monitoredElements.get(i);if(r)return r.subject;let o=new z,a="cdk-text-field-autofilled",s=c=>{c.animationName==="cdk-text-field-autofill-start"&&!i.classList.contains(a)?(i.classList.add(a),this._ngZone.run(()=>o.next({target:c.target,isAutofilled:!0}))):c.animationName==="cdk-text-field-autofill-end"&&i.classList.contains(a)&&(i.classList.remove(a),this._ngZone.run(()=>o.next({target:c.target,isAutofilled:!1})))},l=this._ngZone.runOutsideAngular(()=>(i.classList.add("cdk-text-field-autofill-monitored"),this._renderer.listen(i,"animationstart",s,Mte)));return this._monitoredElements.set(i,{subject:o,unlisten:l}),o}stopMonitoring(e){let i=Pr(e),r=this._monitoredElements.get(i);r&&(r.unlisten(),r.subject.complete(),i.classList.remove("cdk-text-field-autofill-monitored"),i.classList.remove("cdk-text-field-autofilled"),this._monitoredElements.delete(i))}ngOnDestroy(){this._monitoredElements.forEach((e,i)=>this.stopMonitoring(i))}static \u0275fac=function(i){return new(i||t)};static \u0275prov=O({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();var C3=(()=>{class t{_elementRef=u(q);_platform=u(qe);_ngZone=u(ae);_renderer=u(je);_resizeEvents=new z;_previousValue;_initialHeight;_destroyed=new z;_listenerCleanups;_minRows;_maxRows;_enabled=!0;_previousMinRows=-1;_textareaElement;get minRows(){return this._minRows}set minRows(e){this._minRows=Ln(e),this._setMinHeight()}get maxRows(){return this._maxRows}set maxRows(e){this._maxRows=Ln(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=u(ge);_hasFocus;_isViewInited=!1;constructor(){u(ut).load(y3),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(Pl(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),i=e.style;e.rows=1,i.position="absolute",i.visibility="hidden",i.border="none",i.padding="0",i.height="",i.minHeight="",i.maxHeight="",i.top=i.bottom=i.left=i.right="auto",i.overflow="hidden",this._textareaElement.parentNode.appendChild(e),this._cachedLineHeight=e.clientHeight,e.remove(),this._setMinHeight(),this._setMaxHeight()}_measureScrollHeight(){let e=this._textareaElement,i=e.style.marginBottom||"",r=this._platform.FIREFOX,o=r&&this._hasFocus,a=r?"cdk-textarea-autosize-measuring-firefox":"cdk-textarea-autosize-measuring";o&&(e.style.marginBottom=`${e.clientHeight}px`),e.classList.add(a);let s=e.scrollHeight-4;return e.classList.remove(a),o&&(e.style.marginBottom=i),s}_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 i=this._elementRef.nativeElement,r=i.value;if(!e&&this._minRows===this._previousMinRows&&r===this._previousValue)return;let o=this._measureScrollHeight(),a=Math.max(o,this._cachedPlaceholderHeight||0);i.style.height=`${a}px`,this._ngZone.runOutsideAngular(()=>{typeof requestAnimationFrame<"u"?requestAnimationFrame(()=>this._scrollToCaretPosition(i)):setTimeout(()=>this._scrollToCaretPosition(i))}),this._previousValue=r,this._previousMinRows=this._minRows}reset(){this._initialHeight!==void 0&&(this._textareaElement.style.height=this._initialHeight)}_noopInputHandler(){}_scrollToCaretPosition(e){let{selectionStart:i,selectionEnd:r}=e;!this._destroyed.isStopped&&this._hasFocus&&e.setSelectionRange(i,r)}static \u0275fac=function(i){return new(i||t)};static \u0275dir=F({type:t,selectors:[["textarea","cdkTextareaAutosize",""]],hostAttrs:["rows","1",1,"cdk-textarea-autosize"],hostBindings:function(i,r){i&1&&S("input",function(){return r._noopInputHandler()})},inputs:{minRows:[0,"cdkAutosizeMinRows","minRows"],maxRows:[0,"cdkAutosizeMaxRows","maxRows"],enabled:[2,"cdkTextareaAutosize","enabled",V],placeholder:"placeholder"},exportAs:["cdkTextareaAutosize"]})}return t})(),w3=(()=>{class t{static \u0275fac=function(i){return new(i||t)};static \u0275mod=ee({type:t});static \u0275inj=J({})}return t})();var wh=new T("MAT_INPUT_VALUE_ACCESSOR");var Ste=["button","checkbox","file","hidden","image","radio","range","reset","submit"],Tte=new T("MAT_INPUT_CONFIG"),hn=(()=>{class t{_elementRef=u(q);_platform=u(qe);ngControl=u(Hn,{optional:!0,self:!0});_autofillMonitor=u(x3);_ngZone=u(ae);_formField=u(Xo,{optional:!0});_renderer=u(je);_uid=u(Ze).getId("mat-input-");_previousNativeValue;_inputValueAccessor;_signalBasedValueAccessor;_previousPlaceholder;_errorStateTracker;_config=u(Tte,{optional:!0});_cleanupIosKeyup;_cleanupWebkitWheel;_isServer;_isNativeSelect;_isTextarea;_isInFormField;focused=!1;stateChanges=new z;controlType="mat-input";autofilled=!1;get disabled(){return this._disabled}set disabled(e){this._disabled=Ai(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(Le.required)??!1}set required(e){this._required=Ai(e)}_required;get type(){return this._type}set type(e){this._type=e||"text",this._validateType(),!this._isTextarea&&Ek().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=Ai(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=>Ek().has(e));constructor(){let e=u(pc,{optional:!0}),i=u(Ki,{optional:!0}),r=u(dl),o=u(wh,{optional:!0,self:!0}),a=this._elementRef.nativeElement,s=a.nodeName.toLowerCase();o?is(o.value)?this._signalBasedValueAccessor=o:this._inputValueAccessor=o:this._inputValueAccessor=a,this._previousNativeValue=this.value,this.id=this.id,this._platform.IOS&&this._ngZone.runOutsideAngular(()=>{this._cleanupIosKeyup=this._renderer.listen(a,"keyup",this._iOSKeyupListener)}),this._errorStateTracker=new cl(r,this.ngControl,i,e,this.stateChanges),this._isServer=!this._platform.isBrowser,this._isNativeSelect=s==="select",this._isTextarea=s==="textarea",this._isInFormField=!!this._formField,this.disabledInteractive=this._config?.disabledInteractive||!1,this._isNativeSelect&&(this.controlType=a.multiple?"mat-native-select-multiple":"mat-native-select"),this._signalBasedValueAccessor&&Ar(()=>{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 i=this._elementRef.nativeElement;i.type==="number"?(i.type="text",i.setSelectionRange(0,0),i.type="number"):i.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 i=this._elementRef.nativeElement;this._previousPlaceholder=e,e?i.setAttribute("placeholder",e):i.removeAttribute("placeholder")}}_getPlaceholder(){return this.placeholder||null}_validateType(){Ste.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,i=e.options[0];return this.focused||e.multiple||!this.empty||!!(e.selectedIndex>-1&&i&&i.label)}else return this.focused&&!this.disabled||!this.empty}get describedByIds(){return this._elementRef.nativeElement.getAttribute("aria-describedby")?.split(" ")||[]}setDescribedByIds(e){let i=this._elementRef.nativeElement;e.length?i.setAttribute("aria-describedby",e.join(" ")):i.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 i=e.target;!i.value&&i.selectionStart===0&&i.selectionEnd===0&&(i.setSelectionRange(1,1),i.setSelectionRange(0,0))};_getReadonlyAttribute(){return this._isNativeSelect?null:this.readonly||this.disabled&&this.disabledInteractive?"true":null}static \u0275fac=function(i){return new(i||t)};static \u0275dir=F({type:t,selectors:[["input","matInput",""],["textarea","matInput",""],["select","matNativeControl",""],["input","matNativeControl",""],["textarea","matNativeControl",""]],hostAttrs:[1,"mat-mdc-input-element"],hostVars:21,hostBindings:function(i,r){i&1&&S("focus",function(){return r._focusChanged(!0)})("blur",function(){return r._focusChanged(!1)})("input",function(){return r._onInput()}),i&2&&(si("id",r.id)("disabled",r.disabled&&!r.disabledInteractive)("required",r.required),X("name",r.name||null)("readonly",r._getReadonlyAttribute())("aria-disabled",r.disabled&&r.disabledInteractive?"true":null)("aria-invalid",r.empty&&r.required?null:r.errorState)("aria-required",r.required)("id",r.id),G("mat-input-server",r._isServer)("mat-mdc-form-field-textarea-control",r._isInFormField&&r._isTextarea)("mat-mdc-form-field-input-control",r._isInFormField)("mat-mdc-input-disabled-interactive",r.disabledInteractive)("mdc-text-field__input",r._isInFormField)("mat-mdc-native-select-inline",r._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",V]},exportAs:["matInput"],features:[Ce([{provide:Ra,useExisting:t}]),Ae]})}return t})(),rr=(()=>{class t{static \u0275fac=function(i){return new(i||t)};static \u0275mod=ee({type:t});static \u0275inj=J({imports:[we,$i,$i,w3,we]})}return t})();function Ite(t,n){if(t&1&&k(0,"input",0),t&2){let e=C();y("id",e.id)("name",e.field.name)("type",e.type||"text")("readonly",e.props.readonly)("required",e.required)("errorStateMatcher",e.errorStateMatcher)("formControl",e.formControl)("formlyAttributes",e.field)("tabIndex",e.props.tabindex)("placeholder",e.props.placeholder)}}function Ate(t,n){if(t&1&&k(0,"input",1),t&2){let e=C();y("id",e.id)("name",e.field.name)("readonly",e.props.readonly)("required",e.required)("errorStateMatcher",e.errorStateMatcher)("formControl",e.formControl)("formlyAttributes",e.field)("tabIndex",e.props.tabindex)("placeholder",e.props.placeholder)}}var Ote=(()=>{let n=class n extends to{get type(){return this.props.type||"text"}};n.\u0275fac=(()=>{let i;return function(o){return(i||(i=fe(n)))(o||n)}})(),n.\u0275cmp=E({type:n,selectors:[["formly-field-mat-input"]],standalone:!1,features:[le],decls:2,vars:1,consts:[["matInput","",3,"id","name","type","readonly","required","errorStateMatcher","formControl","formlyAttributes","tabIndex","placeholder"],["matInput","","type","number",3,"id","name","readonly","required","errorStateMatcher","formControl","formlyAttributes","tabIndex","placeholder"]],template:function(r,o){r&1&&N(0,Ite,1,10,"input",0)(1,Ate,1,9,"input",1),r&2&&L(o.type!=="number"?0:1)},dependencies:[Qi,cu,ei,Do,wo,hn,ta],encapsulation:2,changeDetection:0});let t=n;return t})();function D3(){return{types:[{name:"input",component:Ote,wrappers:["form-field"]},{name:"string",extends:"input"},{name:"number",extends:"input",defaultOptions:{props:{type:"number"}}},{name:"integer",extends:"input",defaultOptions:{props:{type:"number"}}}]}}var Rte=(()=>{let n=class n extends to{constructor(){super(...arguments),this.defaultOptions={props:{cols:1,rows:1}}}};n.\u0275fac=(()=>{let i;return function(o){return(i||(i=fe(n)))(o||n)}})(),n.\u0275cmp=E({type:n,selectors:[["formly-field-mat-textarea"]],standalone:!1,features:[Ce([{provide:wh,useExisting:n}]),le],decls:1,vars:16,consts:[["matInput","",3,"id","name","readonly","required","formControl","errorStateMatcher","cols","rows","formlyAttributes","placeholder","tabindex","cdkTextareaAutosize","cdkAutosizeMinRows","cdkAutosizeMaxRows"]],template:function(r,o){r&1&&k(0,"textarea",0),r&2&&(G("cdk-textarea-autosize",o.props.autosize),y("id",o.id)("name",o.field.name)("readonly",o.props.readonly)("required",o.required)("formControl",o.formControl)("errorStateMatcher",o.errorStateMatcher)("cols",o.props.cols)("rows",o.props.rows)("formlyAttributes",o.field)("placeholder",o.props.placeholder)("tabindex",o.props.tabindex)("cdkTextareaAutosize",o.props.autosize)("cdkAutosizeMinRows",o.props.autosizeMinRows)("cdkAutosizeMaxRows",o.props.autosizeMaxRows))},dependencies:[Qi,ei,Do,wo,hn,C3,ta],encapsulation:2,changeDetection:0});let t=n;return t})();function E3(){return{types:[{name:"textarea",component:Rte,wrappers:["form-field"]}]}}var Pte=["input"],Fte=["formField"],Nte=["*"],vx=class{source;value;constructor(n,e){this.source=n,this.value=e}},Lte={provide:tr,useExisting:Kt(()=>Dg),multi:!0},M3=new T("MatRadioGroup"),Vte=new T("mat-radio-default-options",{providedIn:"root",factory:Bte});function Bte(){return{color:"accent",disabledInteractive:!1}}var Dg=(()=>{class t{_changeDetector=u(ye);_value=null;_name=u(Ze).getId("mat-radio-group-");_selected=null;_isInitialized=!1;_labelPosition="after";_disabled=!1;_required=!1;_buttonChanges;_controlValueAccessorChangeFn=()=>{};onTouched=()=>{};change=new U;_radios;color;get name(){return this._name}set name(e){this._name=e,this._updateRadioButtonNames()}get labelPosition(){return this._labelPosition}set labelPosition(e){this._labelPosition=e==="before"?"before":"after",this._markRadiosForCheck()}get value(){return this._value}set value(e){this._value!==e&&(this._value=e,this._updateSelectedRadioFromValue(),this._checkSelectedRadioButton())}_checkSelectedRadioButton(){this._selected&&!this._selected.checked&&(this._selected.checked=!0)}get selected(){return this._selected}set selected(e){this._selected=e,this.value=e?e.value:null,this._checkSelectedRadioButton()}get disabled(){return this._disabled}set disabled(e){this._disabled=e,this._markRadiosForCheck()}get required(){return this._required}set required(e){this._required=e,this._markRadiosForCheck()}get disabledInteractive(){return this._disabledInteractive}set disabledInteractive(e){this._disabledInteractive=e,this._markRadiosForCheck()}_disabledInteractive=!1;constructor(){}ngAfterContentInit(){this._isInitialized=!0,this._buttonChanges=this._radios.changes.subscribe(()=>{this.selected&&!this._radios.find(e=>e===this.selected)&&(this._selected=null)})}ngOnDestroy(){this._buttonChanges?.unsubscribe()}_touch(){this.onTouched&&this.onTouched()}_updateRadioButtonNames(){this._radios&&this._radios.forEach(e=>{e.name=this.name,e._markForCheck()})}_updateSelectedRadioFromValue(){let e=this._selected!==null&&this._selected.value===this._value;this._radios&&!e&&(this._selected=null,this._radios.forEach(i=>{i.checked=this.value===i.value,i.checked&&(this._selected=i)}))}_emitChangeEvent(){this._isInitialized&&this.change.emit(new vx(this._selected,this._value))}_markRadiosForCheck(){this._radios&&this._radios.forEach(e=>e._markForCheck())}writeValue(e){this.value=e,this._changeDetector.markForCheck()}registerOnChange(e){this._controlValueAccessorChangeFn=e}registerOnTouched(e){this.onTouched=e}setDisabledState(e){this.disabled=e,this._changeDetector.markForCheck()}static \u0275fac=function(i){return new(i||t)};static \u0275dir=F({type:t,selectors:[["mat-radio-group"]],contentQueries:function(i,r,o){if(i&1&&xe(o,vS,5),i&2){let a;B(a=j())&&(r._radios=a)}},hostAttrs:["role","radiogroup",1,"mat-mdc-radio-group"],inputs:{color:"color",name:"name",labelPosition:"labelPosition",value:"value",selected:"selected",disabled:[2,"disabled","disabled",V],required:[2,"required","required",V],disabledInteractive:[2,"disabledInteractive","disabledInteractive",V]},outputs:{change:"change"},exportAs:["matRadioGroup"],features:[Ce([Lte,{provide:M3,useExisting:t}])]})}return t})(),vS=(()=>{class t{_elementRef=u(q);_changeDetector=u(ye);_focusMonitor=u(Yt);_radioDispatcher=u(au);_defaultOptions=u(Vte,{optional:!0});_ngZone=u(ae);_renderer=u(je);_uniqueId=u(Ze).getId("mat-radio-");_cleanupClick;id=this._uniqueId;name;ariaLabel;ariaLabelledby;ariaDescribedby;disableRipple=!1;tabIndex=0;get checked(){return this._checked}set checked(e){this._checked!==e&&(this._checked=e,e&&this.radioGroup&&this.radioGroup.value!==this.value?this.radioGroup.selected=this:!e&&this.radioGroup&&this.radioGroup.value===this.value&&(this.radioGroup.selected=null),e&&this._radioDispatcher.notify(this.id,this.name),this._changeDetector.markForCheck())}get value(){return this._value}set value(e){this._value!==e&&(this._value=e,this.radioGroup!==null&&(this.checked||(this.checked=this.radioGroup.value===e),this.checked&&(this.radioGroup.selected=this)))}get labelPosition(){return this._labelPosition||this.radioGroup&&this.radioGroup.labelPosition||"after"}set labelPosition(e){this._labelPosition=e}_labelPosition;get disabled(){return this._disabled||this.radioGroup!==null&&this.radioGroup.disabled}set disabled(e){this._setDisabled(e)}get required(){return this._required||this.radioGroup&&this.radioGroup.required}set required(e){e!==this._required&&this._changeDetector.markForCheck(),this._required=e}get color(){return this._color||this.radioGroup&&this.radioGroup.color||this._defaultOptions&&this._defaultOptions.color||"accent"}set color(e){this._color=e}_color;get disabledInteractive(){return this._disabledInteractive||this.radioGroup!==null&&this.radioGroup.disabledInteractive}set disabledInteractive(e){this._disabledInteractive=e}_disabledInteractive;change=new U;radioGroup;get inputId(){return`${this.id||this._uniqueId}-input`}_checked=!1;_disabled;_required;_value=null;_removeUniqueSelectionListener=()=>{};_previousTabIndex;_inputElement;_rippleTrigger;_noopAnimations=Ye();_injector=u(de);constructor(){u(ut).load(Di);let e=u(M3,{optional:!0}),i=u(new Ii("tabindex"),{optional:!0});this.radioGroup=e,this._disabledInteractive=this._defaultOptions?.disabledInteractive??!1,i&&(this.tabIndex=ct(i,0))}focus(e,i){i?this._focusMonitor.focusVia(this._inputElement,i,e):this._inputElement.nativeElement.focus(e)}_markForCheck(){this._changeDetector.markForCheck()}ngOnInit(){this.radioGroup&&(this.checked=this.radioGroup.value===this._value,this.checked&&(this.radioGroup.selected=this),this.name=this.radioGroup.name),this._removeUniqueSelectionListener=this._radioDispatcher.listen((e,i)=>{e!==this.id&&i===this.name&&(this.checked=!1)})}ngDoCheck(){this._updateTabIndex()}ngAfterViewInit(){this._updateTabIndex(),this._focusMonitor.monitor(this._elementRef,!0).subscribe(e=>{!e&&this.radioGroup&&this.radioGroup._touch()}),this._ngZone.runOutsideAngular(()=>{this._cleanupClick=this._renderer.listen(this._inputElement.nativeElement,"click",this._onInputClick)})}ngOnDestroy(){this._cleanupClick?.(),this._focusMonitor.stopMonitoring(this._elementRef),this._removeUniqueSelectionListener()}_emitChangeEvent(){this.change.emit(new vx(this,this._value))}_isRippleDisabled(){return this.disableRipple||this.disabled}_onInputInteraction(e){if(e.stopPropagation(),!this.checked&&!this.disabled){let i=this.radioGroup&&this.value!==this.radioGroup.value;this.checked=!0,this._emitChangeEvent(),this.radioGroup&&(this.radioGroup._controlValueAccessorChangeFn(this.value),i&&this.radioGroup._emitChangeEvent())}}_onTouchTargetClick(e){this._onInputInteraction(e),(!this.disabled||this.disabledInteractive)&&this._inputElement?.nativeElement.focus()}_setDisabled(e){this._disabled!==e&&(this._disabled=e,this._changeDetector.markForCheck())}_onInputClick=e=>{this.disabled&&this.disabledInteractive&&e.preventDefault()};_updateTabIndex(){let e=this.radioGroup,i;if(!e||!e.selected||this.disabled?i=this.tabIndex:i=e.selected===this?this.tabIndex:-1,i!==this._previousTabIndex){let r=this._inputElement?.nativeElement;r&&(r.setAttribute("tabindex",i+""),this._previousTabIndex=i,pt(()=>{queueMicrotask(()=>{e&&e.selected&&e.selected!==this&&document.activeElement===r&&(e.selected?._inputElement.nativeElement.focus(),document.activeElement===r&&this._inputElement.nativeElement.blur())})},{injector:this._injector}))}}static \u0275fac=function(i){return new(i||t)};static \u0275cmp=E({type:t,selectors:[["mat-radio-button"]],viewQuery:function(i,r){if(i&1&&(ie(Pte,5),ie(Fte,7,q)),i&2){let o;B(o=j())&&(r._inputElement=o.first),B(o=j())&&(r._rippleTrigger=o.first)}},hostAttrs:[1,"mat-mdc-radio-button"],hostVars:19,hostBindings:function(i,r){i&1&&S("focus",function(){return r._inputElement.nativeElement.focus()}),i&2&&(X("id",r.id)("tabindex",null)("aria-label",null)("aria-labelledby",null)("aria-describedby",null),G("mat-primary",r.color==="primary")("mat-accent",r.color==="accent")("mat-warn",r.color==="warn")("mat-mdc-radio-checked",r.checked)("mat-mdc-radio-disabled",r.disabled)("mat-mdc-radio-disabled-interactive",r.disabledInteractive)("_mat-animation-noopable",r._noopAnimations))},inputs:{id:"id",name:"name",ariaLabel:[0,"aria-label","ariaLabel"],ariaLabelledby:[0,"aria-labelledby","ariaLabelledby"],ariaDescribedby:[0,"aria-describedby","ariaDescribedby"],disableRipple:[2,"disableRipple","disableRipple",V],tabIndex:[2,"tabIndex","tabIndex",e=>e==null?0:ct(e)],checked:[2,"checked","checked",V],value:"value",labelPosition:"labelPosition",disabled:[2,"disabled","disabled",V],required:[2,"required","required",V],color:"color",disabledInteractive:[2,"disabledInteractive","disabledInteractive",V]},outputs:{change:"change"},exportAs:["matRadioButton"],ngContentSelectors:Nte,decls:13,vars:17,consts:[["formField",""],["input",""],["mat-internal-form-field","",3,"labelPosition"],[1,"mdc-radio"],[1,"mat-mdc-radio-touch-target",3,"click"],["type","radio","aria-invalid","false",1,"mdc-radio__native-control",3,"change","id","checked","disabled","required"],[1,"mdc-radio__background"],[1,"mdc-radio__outer-circle"],[1,"mdc-radio__inner-circle"],["mat-ripple","",1,"mat-radio-ripple","mat-focus-indicator",3,"matRippleTrigger","matRippleDisabled","matRippleCentered"],[1,"mat-ripple-element","mat-radio-persistent-ripple"],[1,"mdc-label",3,"for"]],template:function(i,r){if(i&1){let o=Y();Me(),h(0,"div",2,0)(2,"div",3)(3,"div",4),S("click",function(s){return I(o),A(r._onTouchTargetClick(s))}),p(),h(4,"input",5,1),S("change",function(s){return I(o),A(r._onInputInteraction(s))}),p(),h(6,"div",6),k(7,"div",7)(8,"div",8),p(),h(9,"div",9),k(10,"div",10),p()(),h(11,"label",11),oe(12),p()()}i&2&&(y("labelPosition",r.labelPosition),g(2),G("mdc-radio--disabled",r.disabled),g(2),y("id",r.inputId)("checked",r.checked)("disabled",r.disabled&&!r.disabledInteractive)("required",r.required),X("name",r.name)("value",r.value)("aria-label",r.ariaLabel)("aria-labelledby",r.ariaLabelledby)("aria-describedby",r.ariaDescribedby)("aria-disabled",r.disabled&&r.disabledInteractive?"true":null),g(5),y("matRippleTrigger",r._rippleTrigger.nativeElement)("matRippleDisabled",r._isRippleDisabled())("matRippleCentered",!0),g(2),y("for",r.inputId))},dependencies:[Vn,Gm],styles:[`.mat-mdc-radio-button{-webkit-tap-highlight-color:rgba(0,0,0,0)}.mat-mdc-radio-button .mdc-radio{display:inline-block;position:relative;flex:0 0 auto;box-sizing:content-box;width:20px;height:20px;cursor:pointer;will-change:opacity,transform,border-color,color;padding:calc((var(--mat-radio-state-layer-size, 40px) - 20px)/2)}.mat-mdc-radio-button .mdc-radio:hover>.mdc-radio__native-control:not([disabled]):not(:focus)~.mdc-radio__background::before{opacity:.04;transform:scale(1)}.mat-mdc-radio-button .mdc-radio:hover>.mdc-radio__native-control:not([disabled])~.mdc-radio__background>.mdc-radio__outer-circle{border-color:var(--mat-radio-unselected-hover-icon-color, var(--mat-sys-on-surface))}.mat-mdc-radio-button .mdc-radio:hover>.mdc-radio__native-control:enabled:checked+.mdc-radio__background>.mdc-radio__outer-circle{border-color:var(--mat-radio-selected-hover-icon-color, var(--mat-sys-primary))}.mat-mdc-radio-button .mdc-radio:hover>.mdc-radio__native-control:enabled:checked+.mdc-radio__background>.mdc-radio__inner-circle{background-color:var(--mat-radio-selected-hover-icon-color, var(--mat-sys-primary, currentColor))}.mat-mdc-radio-button .mdc-radio:active>.mdc-radio__native-control:enabled:not(:checked)+.mdc-radio__background>.mdc-radio__outer-circle{border-color:var(--mat-radio-unselected-pressed-icon-color, var(--mat-sys-on-surface))}.mat-mdc-radio-button .mdc-radio:active>.mdc-radio__native-control:enabled:checked+.mdc-radio__background>.mdc-radio__outer-circle{border-color:var(--mat-radio-selected-pressed-icon-color, var(--mat-sys-primary))}.mat-mdc-radio-button .mdc-radio:active>.mdc-radio__native-control:enabled:checked+.mdc-radio__background>.mdc-radio__inner-circle{background-color:var(--mat-radio-selected-pressed-icon-color, var(--mat-sys-primary, currentColor))}.mat-mdc-radio-button .mdc-radio__background{display:inline-block;position:relative;box-sizing:border-box;width:20px;height:20px}.mat-mdc-radio-button .mdc-radio__background::before{position:absolute;transform:scale(0, 0);border-radius:50%;opacity:0;pointer-events:none;content:"";transition:opacity 90ms cubic-bezier(0.4, 0, 0.6, 1),transform 90ms cubic-bezier(0.4, 0, 0.6, 1);width:var(--mat-radio-state-layer-size, 40px);height:var(--mat-radio-state-layer-size, 40px);top:calc(-1*(var(--mat-radio-state-layer-size, 40px) - 20px)/2);left:calc(-1*(var(--mat-radio-state-layer-size, 40px) - 20px)/2)}.mat-mdc-radio-button .mdc-radio__outer-circle{position:absolute;top:0;left:0;box-sizing:border-box;width:100%;height:100%;border-width:2px;border-style:solid;border-radius:50%;transition:border-color 90ms cubic-bezier(0.4, 0, 0.6, 1)}.mat-mdc-radio-button .mdc-radio__inner-circle{position:absolute;top:0;left:0;box-sizing:border-box;width:100%;height:100%;transform:scale(0);border-radius:50%;transition:transform 90ms cubic-bezier(0.4, 0, 0.6, 1),background-color 90ms cubic-bezier(0.4, 0, 0.6, 1)}@media(forced-colors: active){.mat-mdc-radio-button .mdc-radio__inner-circle{background-color:CanvasText !important}}.mat-mdc-radio-button .mdc-radio__native-control{position:absolute;margin:0;padding:0;opacity:0;top:0;right:0;left:0;cursor:inherit;z-index:1;width:var(--mat-radio-state-layer-size, 40px);height:var(--mat-radio-state-layer-size, 40px)}.mat-mdc-radio-button .mdc-radio__native-control:checked+.mdc-radio__background,.mat-mdc-radio-button .mdc-radio__native-control:disabled+.mdc-radio__background{transition:opacity 90ms cubic-bezier(0, 0, 0.2, 1),transform 90ms cubic-bezier(0, 0, 0.2, 1)}.mat-mdc-radio-button .mdc-radio__native-control:checked+.mdc-radio__background>.mdc-radio__outer-circle,.mat-mdc-radio-button .mdc-radio__native-control:disabled+.mdc-radio__background>.mdc-radio__outer-circle{transition:border-color 90ms cubic-bezier(0, 0, 0.2, 1)}.mat-mdc-radio-button .mdc-radio__native-control:checked+.mdc-radio__background>.mdc-radio__inner-circle,.mat-mdc-radio-button .mdc-radio__native-control:disabled+.mdc-radio__background>.mdc-radio__inner-circle{transition:transform 90ms cubic-bezier(0, 0, 0.2, 1),background-color 90ms cubic-bezier(0, 0, 0.2, 1)}.mat-mdc-radio-button .mdc-radio__native-control:focus+.mdc-radio__background::before{transform:scale(1);opacity:.12;transition:opacity 90ms cubic-bezier(0, 0, 0.2, 1),transform 90ms cubic-bezier(0, 0, 0.2, 1)}.mat-mdc-radio-button .mdc-radio__native-control:disabled:not(:checked)+.mdc-radio__background>.mdc-radio__outer-circle{border-color:var(--mat-radio-disabled-unselected-icon-color, var(--mat-sys-on-surface));opacity:var(--mat-radio-disabled-unselected-icon-opacity, 0.38)}.mat-mdc-radio-button .mdc-radio__native-control:disabled+.mdc-radio__background{cursor:default}.mat-mdc-radio-button .mdc-radio__native-control:disabled+.mdc-radio__background>.mdc-radio__outer-circle{border-color:var(--mat-radio-disabled-selected-icon-color, var(--mat-sys-on-surface));opacity:var(--mat-radio-disabled-selected-icon-opacity, 0.38)}.mat-mdc-radio-button .mdc-radio__native-control:disabled+.mdc-radio__background>.mdc-radio__inner-circle{background-color:var(--mat-radio-disabled-selected-icon-color, var(--mat-sys-on-surface, currentColor));opacity:var(--mat-radio-disabled-selected-icon-opacity, 0.38)}.mat-mdc-radio-button .mdc-radio__native-control:enabled:not(:checked)+.mdc-radio__background>.mdc-radio__outer-circle{border-color:var(--mat-radio-unselected-icon-color, var(--mat-sys-on-surface-variant))}.mat-mdc-radio-button .mdc-radio__native-control:enabled:checked+.mdc-radio__background>.mdc-radio__outer-circle{border-color:var(--mat-radio-selected-icon-color, var(--mat-sys-primary))}.mat-mdc-radio-button .mdc-radio__native-control:enabled:checked+.mdc-radio__background>.mdc-radio__inner-circle{background-color:var(--mat-radio-selected-icon-color, var(--mat-sys-primary, currentColor))}.mat-mdc-radio-button .mdc-radio__native-control:enabled:focus:checked+.mdc-radio__background>.mdc-radio__outer-circle{border-color:var(--mat-radio-selected-focus-icon-color, var(--mat-sys-primary))}.mat-mdc-radio-button .mdc-radio__native-control:enabled:focus:checked+.mdc-radio__background>.mdc-radio__inner-circle{background-color:var(--mat-radio-selected-focus-icon-color, var(--mat-sys-primary, currentColor))}.mat-mdc-radio-button .mdc-radio__native-control:checked+.mdc-radio__background>.mdc-radio__inner-circle{transform:scale(0.5);transition:transform 90ms cubic-bezier(0, 0, 0.2, 1),background-color 90ms cubic-bezier(0, 0, 0.2, 1)}.mat-mdc-radio-button.mat-mdc-radio-disabled-interactive .mdc-radio--disabled{pointer-events:auto}.mat-mdc-radio-button.mat-mdc-radio-disabled-interactive .mdc-radio--disabled .mdc-radio__native-control:not(:checked)+.mdc-radio__background>.mdc-radio__outer-circle{border-color:var(--mat-radio-disabled-unselected-icon-color, var(--mat-sys-on-surface));opacity:var(--mat-radio-disabled-unselected-icon-opacity, 0.38)}.mat-mdc-radio-button.mat-mdc-radio-disabled-interactive .mdc-radio--disabled:hover .mdc-radio__native-control:checked+.mdc-radio__background>.mdc-radio__outer-circle,.mat-mdc-radio-button.mat-mdc-radio-disabled-interactive .mdc-radio--disabled .mdc-radio__native-control:checked:focus+.mdc-radio__background>.mdc-radio__outer-circle,.mat-mdc-radio-button.mat-mdc-radio-disabled-interactive .mdc-radio--disabled .mdc-radio__native-control+.mdc-radio__background>.mdc-radio__outer-circle{border-color:var(--mat-radio-disabled-selected-icon-color, var(--mat-sys-on-surface));opacity:var(--mat-radio-disabled-selected-icon-opacity, 0.38)}.mat-mdc-radio-button.mat-mdc-radio-disabled-interactive .mdc-radio--disabled:hover .mdc-radio__native-control:checked+.mdc-radio__background>.mdc-radio__inner-circle,.mat-mdc-radio-button.mat-mdc-radio-disabled-interactive .mdc-radio--disabled .mdc-radio__native-control:checked:focus+.mdc-radio__background>.mdc-radio__inner-circle,.mat-mdc-radio-button.mat-mdc-radio-disabled-interactive .mdc-radio--disabled .mdc-radio__native-control+.mdc-radio__background>.mdc-radio__inner-circle{background-color:var(--mat-radio-disabled-selected-icon-color, var(--mat-sys-on-surface, currentColor));opacity:var(--mat-radio-disabled-selected-icon-opacity, 0.38)}.mat-mdc-radio-button._mat-animation-noopable .mdc-radio__background::before,.mat-mdc-radio-button._mat-animation-noopable .mdc-radio__outer-circle,.mat-mdc-radio-button._mat-animation-noopable .mdc-radio__inner-circle{transition:none !important}.mat-mdc-radio-button label{cursor:pointer}.mat-mdc-radio-button .mdc-radio__background::before{background-color:var(--mat-radio-ripple-color, var(--mat-sys-on-surface))}.mat-mdc-radio-button.mat-mdc-radio-checked .mat-ripple-element,.mat-mdc-radio-button.mat-mdc-radio-checked .mdc-radio__background::before{background-color:var(--mat-radio-checked-ripple-color, var(--mat-sys-primary))}.mat-mdc-radio-button.mat-mdc-radio-disabled-interactive .mdc-radio--disabled .mat-ripple-element,.mat-mdc-radio-button.mat-mdc-radio-disabled-interactive .mdc-radio--disabled .mdc-radio__background::before{background-color:var(--mat-radio-ripple-color, var(--mat-sys-on-surface))}.mat-mdc-radio-button .mat-internal-form-field{color:var(--mat-radio-label-text-color, var(--mat-sys-on-surface));font-family:var(--mat-radio-label-text-font, var(--mat-sys-body-medium-font));line-height:var(--mat-radio-label-text-line-height, var(--mat-sys-body-medium-line-height));font-size:var(--mat-radio-label-text-size, var(--mat-sys-body-medium-size));letter-spacing:var(--mat-radio-label-text-tracking, var(--mat-sys-body-medium-tracking));font-weight:var(--mat-radio-label-text-weight, var(--mat-sys-body-medium-weight))}.mat-mdc-radio-button .mdc-radio--disabled+label{color:var(--mat-radio-disabled-label-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent))}.mat-mdc-radio-button .mat-radio-ripple{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none;border-radius:50%}.mat-mdc-radio-button .mat-radio-ripple>.mat-ripple-element{opacity:.14}.mat-mdc-radio-button .mat-radio-ripple::before{border-radius:50%}.mat-mdc-radio-button .mdc-radio>.mdc-radio__native-control:focus:enabled:not(:checked)~.mdc-radio__background>.mdc-radio__outer-circle{border-color:var(--mat-radio-unselected-focus-icon-color, var(--mat-sys-on-surface))}.mat-mdc-radio-button.cdk-focused .mat-focus-indicator::before{content:""}.mat-mdc-radio-disabled{cursor:default;pointer-events:none}.mat-mdc-radio-disabled.mat-mdc-radio-disabled-interactive{pointer-events:auto}.mat-mdc-radio-touch-target{position:absolute;top:50%;left:50%;height:var(--mat-radio-touch-target-size, 48px);width:var(--mat-radio-touch-target-size, 48px);transform:translate(-50%, -50%);display:var(--mat-radio-touch-target-display, block)}[dir=rtl] .mat-mdc-radio-touch-target{left:auto;right:50%;transform:translate(50%, -50%)} +`],encapsulation:2,changeDetection:0})}return t})();var Hte=(()=>{let n=class n{transform(i,r){return i instanceof Fe?this.dispose():i=this.observableOf(i,r),i.pipe(se(o=>this.transformOptions(o,r)))}ngOnDestroy(){this.dispose()}transformOptions(i,r){let o=this.transformSelectProps(r),a=[],s={};return i?.forEach(l=>{let c=this.transformOption(l,o);if(c.group){let d=s[c.label];d===void 0?s[c.label]=a.push(c)-1:c.group.forEach(m=>a[d].group.push(m))}else a.push(c)}),a}transformOption(i,r){let o=r.groupProp(i);return Array.isArray(o)?{label:r.labelProp(i),group:o.map(a=>this.transformOption(a,r))}:(i={label:r.labelProp(i),value:r.valueProp(i),disabled:!!r.disabledProp(i)},o?{label:o,group:[i]}:i)}transformSelectProps(i){let r=i?.props||i?.templateOptions||{},o=a=>typeof a=="function"?a:s=>s[a];return{groupProp:o(r.groupProp||"group"),labelProp:o(r.labelProp||"label"),valueProp:o(r.valueProp||"value"),disabledProp:o(r.disabledProp||"disabled")}}dispose(){this._options&&(this._options.complete(),this._options=null),this._subscription&&(this._subscription.unsubscribe(),this._subscription=null)}observableOf(i,r){return this.dispose(),r&&r.options&&r.options.fieldChanges&&(this._subscription=r.options.fieldChanges.pipe(ce(({property:o,type:a,field:s})=>a==="expressionChanges"&&(o.indexOf("templateOptions.options")===0||o.indexOf("props.options")===0)&&s===r&&Array.isArray(s.props.options)&&!!this._options),Be(()=>this._options.next(r.props.options))).subscribe()),this._options=new tt(i),this._options.asObservable()}};n.\u0275fac=function(r){return new(r||n)},n.\u0275pipe=Wr({name:"formlySelectOptions",type:n,pure:!0});let t=n;return t})(),Eh=(()=>{let n=class n extends Hte{};n.\u0275fac=(()=>{let i;return function(o){return(i||(i=fe(n)))(o||n)}})(),n.\u0275pipe=Wr({name:"formlySelectOptions",type:n,pure:!0,standalone:!1});let t=n;return t})();function zte(t,n){if(t&1&&(h(0,"mat-radio-button",1),_(1),p()),t&2){let e=n.$implicit,i=n.$index,r=C();y("id",r.id+"_"+i)("color",r.props.color)("labelPosition",r.props.labelPosition)("disabled",e.disabled)("value",e.value),g(),ve(" ",e.label," ")}}var Ute=(()=>{let n=class n extends to{constructor(){super(...arguments),this.defaultOptions={props:{hideFieldUnderline:!0,floatLabel:"always",tabindex:-1}}}ngAfterViewInit(){this.focusObserver=Wi(this.field,["focus"],({currentValue:i})=>{this.props.tabindex===-1&&i&&this.radioGroup._radios.length>0&&setTimeout(()=>{(this.radioGroup.selected?this.radioGroup.selected:this.radioGroup._radios.first).focus()})})}onContainerClick(){}ngOnDestroy(){super.ngOnDestroy(),this.focusObserver&&this.focusObserver.unsubscribe()}};n.\u0275fac=(()=>{let i;return function(o){return(i||(i=fe(n)))(o||n)}})(),n.\u0275cmp=E({type:n,selectors:[["formly-field-mat-radio"]],viewQuery:function(r,o){if(r&1&&ie(Dg,7),r&2){let a;B(a=j())&&(o.radioGroup=a.first)}},standalone:!1,features:[le],decls:5,vars:9,consts:[[3,"formControl","formlyAttributes","required","tabindex"],[3,"id","color","labelPosition","disabled","value"]],template:function(r,o){r&1&&(h(0,"mat-radio-group",0),xt(1,zte,2,6,"mat-radio-button",1,Hi),me(3,"formlySelectOptions"),me(4,"async"),p()),r&2&&(y("formControl",o.formControl)("formlyAttributes",o.field)("required",o.required)("tabindex",o.props.tabindex),g(),Ct(Oe(4,7,Ni(3,4,o.props.options,o.field))))},dependencies:[ei,Do,wo,Dg,vS,ta,rn,Eh],encapsulation:2,changeDetection:0});let t=n;return t})();function k3(){return{types:[{name:"radio",component:Ute,wrappers:["form-field"]}]}}var $te=["input"],Wte=["label"],Gte=["*"],qte=new T("mat-checkbox-default-options",{providedIn:"root",factory:T3});function T3(){return{color:"accent",clickAction:"check-indeterminate",disabledInteractive:!1}}var xr=(function(t){return t[t.Init=0]="Init",t[t.Checked=1]="Checked",t[t.Unchecked=2]="Unchecked",t[t.Indeterminate=3]="Indeterminate",t})(xr||{}),xS=class{source;checked},S3=T3(),Va=(()=>{class t{_elementRef=u(q);_changeDetectorRef=u(ye);_ngZone=u(ae);_animationsDisabled=Ye();_options=u(qte,{optional:!0});focus(){this._inputElement.nativeElement.focus()}_createChangeEvent(e){let i=new xS;return i.source=this,i.checked=e,i}_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;labelPosition="after";name=null;change=new U;indeterminateChange=new U;value;disableRipple;_inputElement;_labelElement;tabIndex;color;disabledInteractive;_onTouched=()=>{};_currentAnimationClass="";_currentCheckState=xr.Init;_controlValueAccessorChangeFn=()=>{};_validatorChangeFn=()=>{};constructor(){u(ut).load(Di);let e=u(new Ii("tabindex"),{optional:!0});this._options=this._options||S3,this.color=this._options.color||S3.color,this.tabIndex=e==null?0:parseInt(e)||0,this.id=this._uniqueId=u(Ze).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 i=e!=this._indeterminate();this._indeterminate.set(e),i&&(e?this._transitionCheckState(xr.Indeterminate):this._transitionCheckState(this.checked?xr.Checked:xr.Unchecked),this.indeterminateChange.emit(e)),this._syncIndeterminate(e)}_indeterminate=he(!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 i=this._currentCheckState,r=this._getAnimationTargetElement();if(!(i===e||!r)&&(this._currentAnimationClass&&r.classList.remove(this._currentAnimationClass),this._currentAnimationClass=this._getAnimationClassForCheckStateTransition(i,e),this._currentCheckState=e,this._currentAnimationClass.length>0)){r.classList.add(this._currentAnimationClass);let o=this._currentAnimationClass;this._ngZone.runOutsideAngular(()=>{setTimeout(()=>{r.classList.remove(o)},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?xr.Checked:xr.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,i){if(this._animationsDisabled)return"";switch(e){case xr.Init:if(i===xr.Checked)return this._animationClasses.uncheckedToChecked;if(i==xr.Indeterminate)return this._checked?this._animationClasses.checkedToIndeterminate:this._animationClasses.uncheckedToIndeterminate;break;case xr.Unchecked:return i===xr.Checked?this._animationClasses.uncheckedToChecked:this._animationClasses.uncheckedToIndeterminate;case xr.Checked:return i===xr.Unchecked?this._animationClasses.checkedToUnchecked:this._animationClasses.checkedToIndeterminate;case xr.Indeterminate:return i===xr.Checked?this._animationClasses.indeterminateToChecked:this._animationClasses.indeterminateToUnchecked}return""}_syncIndeterminate(e){let i=this._inputElement;i&&(i.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(i){return new(i||t)};static \u0275cmp=E({type:t,selectors:[["mat-checkbox"]],viewQuery:function(i,r){if(i&1&&(ie($te,5),ie(Wte,5)),i&2){let o;B(o=j())&&(r._inputElement=o.first),B(o=j())&&(r._labelElement=o.first)}},hostAttrs:[1,"mat-mdc-checkbox"],hostVars:16,hostBindings:function(i,r){i&2&&(si("id",r.id),X("tabindex",null)("aria-label",null)("aria-labelledby",null),it(r.color?"mat-"+r.color:"mat-accent"),G("_mat-animation-noopable",r._animationsDisabled)("mdc-checkbox--disabled",r.disabled)("mat-mdc-checkbox-disabled",r.disabled)("mat-mdc-checkbox-checked",r.checked)("mat-mdc-checkbox-disabled-interactive",r.disabledInteractive))},inputs:{ariaLabel:[0,"aria-label","ariaLabel"],ariaLabelledby:[0,"aria-labelledby","ariaLabelledby"],ariaDescribedby:[0,"aria-describedby","ariaDescribedby"],ariaExpanded:[2,"aria-expanded","ariaExpanded",V],ariaControls:[0,"aria-controls","ariaControls"],ariaOwns:[0,"aria-owns","ariaOwns"],id:"id",required:[2,"required","required",V],labelPosition:"labelPosition",name:"name",value:"value",disableRipple:[2,"disableRipple","disableRipple",V],tabIndex:[2,"tabIndex","tabIndex",e=>e==null?void 0:ct(e)],color:"color",disabledInteractive:[2,"disabledInteractive","disabledInteractive",V],checked:[2,"checked","checked",V],disabled:[2,"disabled","disabled",V],indeterminate:[2,"indeterminate","indeterminate",V]},outputs:{change:"change",indeterminateChange:"indeterminateChange"},exportAs:["matCheckbox"],features:[Ce([{provide:tr,useExisting:Kt(()=>t),multi:!0},{provide:ea,useExisting:t,multi:!0}]),Ae],ngContentSelectors:Gte,decls:15,vars:23,consts:[["checkbox",""],["input",""],["label",""],["mat-internal-form-field","",3,"click","labelPosition"],[1,"mdc-checkbox"],[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"],[1,"mdc-checkbox__ripple"],[1,"mdc-checkbox__background"],["focusable","false","viewBox","0 0 24 24","aria-hidden","true",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","",1,"mat-mdc-checkbox-ripple","mat-focus-indicator",3,"matRippleTrigger","matRippleDisabled","matRippleCentered"],[1,"mdc-label",3,"for"]],template:function(i,r){if(i&1){let o=Y();Me(),h(0,"div",3),S("click",function(s){return I(o),A(r._preventBubblingFromLabel(s))}),h(1,"div",4,0)(3,"div",5),S("click",function(){return I(o),A(r._onTouchTargetClick())}),p(),h(4,"input",6,1),S("blur",function(){return I(o),A(r._onBlur())})("click",function(){return I(o),A(r._onInputClick())})("change",function(s){return I(o),A(r._onInteractionEvent(s))}),p(),k(6,"div",7),h(7,"div",8),Gt(),h(8,"svg",9),k(9,"path",10),p(),jo(),k(10,"div",11),p(),k(11,"div",12),p(),h(12,"label",13,2),oe(14),p()()}if(i&2){let o=Se(2);y("labelPosition",r.labelPosition),g(4),G("mdc-checkbox--selected",r.checked),y("checked",r.checked)("indeterminate",r.indeterminate)("disabled",r.disabled&&!r.disabledInteractive)("id",r.inputId)("required",r.required)("tabIndex",r.disabled&&!r.disabledInteractive?-1:r.tabIndex),X("aria-label",r.ariaLabel||null)("aria-labelledby",r.ariaLabelledby)("aria-describedby",r.ariaDescribedby)("aria-checked",r.indeterminate?"mixed":null)("aria-controls",r.ariaControls)("aria-disabled",r.disabled&&r.disabledInteractive?!0:null)("aria-expanded",r.ariaExpanded)("aria-owns",r.ariaOwns)("name",r.name)("value",r.value),g(7),y("matRippleTrigger",o)("matRippleDisabled",r.disableRipple||r.disabled)("matRippleCentered",!0),g(),y("for",r.inputId)}},dependencies:[Vn,Gm],styles:[`.mdc-checkbox{display:inline-block;position:relative;flex:0 0 18px;box-sizing:content-box;width:18px;height:18px;line-height:0;white-space:nowrap;cursor:pointer;vertical-align:bottom;padding:calc((var(--mat-checkbox-state-layer-size, 40px) - 18px)/2);margin:calc((var(--mat-checkbox-state-layer-size, 40px) - var(--mat-checkbox-state-layer-size, 40px))/2)}.mdc-checkbox:hover>.mdc-checkbox__ripple{opacity:var(--mat-checkbox-unselected-hover-state-layer-opacity, var(--mat-sys-hover-state-layer-opacity));background-color:var(--mat-checkbox-unselected-hover-state-layer-color, var(--mat-sys-on-surface))}.mdc-checkbox:hover>.mat-mdc-checkbox-ripple>.mat-ripple-element{background-color:var(--mat-checkbox-unselected-hover-state-layer-color, var(--mat-sys-on-surface))}.mdc-checkbox .mdc-checkbox__native-control:focus+.mdc-checkbox__ripple{opacity:var(--mat-checkbox-unselected-focus-state-layer-opacity, var(--mat-sys-focus-state-layer-opacity));background-color:var(--mat-checkbox-unselected-focus-state-layer-color, var(--mat-sys-on-surface))}.mdc-checkbox .mdc-checkbox__native-control:focus~.mat-mdc-checkbox-ripple .mat-ripple-element{background-color:var(--mat-checkbox-unselected-focus-state-layer-color, var(--mat-sys-on-surface))}.mdc-checkbox:active>.mdc-checkbox__native-control+.mdc-checkbox__ripple{opacity:var(--mat-checkbox-unselected-pressed-state-layer-opacity, var(--mat-sys-pressed-state-layer-opacity));background-color:var(--mat-checkbox-unselected-pressed-state-layer-color, var(--mat-sys-primary))}.mdc-checkbox:active>.mdc-checkbox__native-control~.mat-mdc-checkbox-ripple .mat-ripple-element{background-color:var(--mat-checkbox-unselected-pressed-state-layer-color, var(--mat-sys-primary))}.mdc-checkbox:hover .mdc-checkbox__native-control:checked+.mdc-checkbox__ripple{opacity:var(--mat-checkbox-selected-hover-state-layer-opacity, var(--mat-sys-hover-state-layer-opacity));background-color:var(--mat-checkbox-selected-hover-state-layer-color, var(--mat-sys-primary))}.mdc-checkbox:hover .mdc-checkbox__native-control:checked~.mat-mdc-checkbox-ripple .mat-ripple-element{background-color:var(--mat-checkbox-selected-hover-state-layer-color, var(--mat-sys-primary))}.mdc-checkbox .mdc-checkbox__native-control:focus:checked+.mdc-checkbox__ripple{opacity:var(--mat-checkbox-selected-focus-state-layer-opacity, var(--mat-sys-focus-state-layer-opacity));background-color:var(--mat-checkbox-selected-focus-state-layer-color, var(--mat-sys-primary))}.mdc-checkbox .mdc-checkbox__native-control:focus:checked~.mat-mdc-checkbox-ripple .mat-ripple-element{background-color:var(--mat-checkbox-selected-focus-state-layer-color, var(--mat-sys-primary))}.mdc-checkbox:active>.mdc-checkbox__native-control:checked+.mdc-checkbox__ripple{opacity:var(--mat-checkbox-selected-pressed-state-layer-opacity, var(--mat-sys-pressed-state-layer-opacity));background-color:var(--mat-checkbox-selected-pressed-state-layer-color, var(--mat-sys-on-surface))}.mdc-checkbox:active>.mdc-checkbox__native-control:checked~.mat-mdc-checkbox-ripple .mat-ripple-element{background-color:var(--mat-checkbox-selected-pressed-state-layer-color, var(--mat-sys-on-surface))}.mdc-checkbox--disabled.mat-mdc-checkbox-disabled-interactive .mdc-checkbox .mdc-checkbox__native-control~.mat-mdc-checkbox-ripple .mat-ripple-element,.mdc-checkbox--disabled.mat-mdc-checkbox-disabled-interactive .mdc-checkbox .mdc-checkbox__native-control+.mdc-checkbox__ripple{background-color:var(--mat-checkbox-unselected-hover-state-layer-color, var(--mat-sys-on-surface))}.mdc-checkbox .mdc-checkbox__native-control{position:absolute;margin:0;padding:0;opacity:0;cursor:inherit;z-index:1;width:var(--mat-checkbox-state-layer-size, 40px);height:var(--mat-checkbox-state-layer-size, 40px);top:calc((var(--mat-checkbox-state-layer-size, 40px) - var(--mat-checkbox-state-layer-size, 40px))/2);right:calc((var(--mat-checkbox-state-layer-size, 40px) - var(--mat-checkbox-state-layer-size, 40px))/2);left:calc((var(--mat-checkbox-state-layer-size, 40px) - var(--mat-checkbox-state-layer-size, 40px))/2)}.mdc-checkbox--disabled{cursor:default;pointer-events:none}.mdc-checkbox__background{display:inline-flex;position:absolute;align-items:center;justify-content:center;box-sizing:border-box;width:18px;height:18px;border:2px solid currentColor;border-radius:2px;background-color:rgba(0,0,0,0);pointer-events:none;will-change:background-color,border-color;transition:background-color 90ms cubic-bezier(0.4, 0, 0.6, 1),border-color 90ms cubic-bezier(0.4, 0, 0.6, 1);-webkit-print-color-adjust:exact;color-adjust:exact;border-color:var(--mat-checkbox-unselected-icon-color, var(--mat-sys-on-surface-variant));top:calc((var(--mat-checkbox-state-layer-size, 40px) - 18px)/2);left:calc((var(--mat-checkbox-state-layer-size, 40px) - 18px)/2)}.mdc-checkbox__native-control:enabled:checked~.mdc-checkbox__background,.mdc-checkbox__native-control:enabled:indeterminate~.mdc-checkbox__background{border-color:var(--mat-checkbox-selected-icon-color, var(--mat-sys-primary));background-color:var(--mat-checkbox-selected-icon-color, var(--mat-sys-primary))}.mdc-checkbox--disabled .mdc-checkbox__background{border-color:var(--mat-checkbox-disabled-unselected-icon-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent))}@media(forced-colors: active){.mdc-checkbox--disabled .mdc-checkbox__background{border-color:GrayText}}.mdc-checkbox__native-control:disabled:checked~.mdc-checkbox__background,.mdc-checkbox__native-control:disabled:indeterminate~.mdc-checkbox__background{background-color:var(--mat-checkbox-disabled-selected-icon-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent));border-color:rgba(0,0,0,0)}@media(forced-colors: active){.mdc-checkbox__native-control:disabled:checked~.mdc-checkbox__background,.mdc-checkbox__native-control:disabled:indeterminate~.mdc-checkbox__background{border-color:GrayText}}.mdc-checkbox:hover>.mdc-checkbox__native-control:not(:checked)~.mdc-checkbox__background,.mdc-checkbox:hover>.mdc-checkbox__native-control:not(:indeterminate)~.mdc-checkbox__background{border-color:var(--mat-checkbox-unselected-hover-icon-color, var(--mat-sys-on-surface));background-color:rgba(0,0,0,0)}.mdc-checkbox:hover>.mdc-checkbox__native-control:checked~.mdc-checkbox__background,.mdc-checkbox:hover>.mdc-checkbox__native-control:indeterminate~.mdc-checkbox__background{border-color:var(--mat-checkbox-selected-hover-icon-color, var(--mat-sys-primary));background-color:var(--mat-checkbox-selected-hover-icon-color, var(--mat-sys-primary))}.mdc-checkbox__native-control:focus:focus:not(:checked)~.mdc-checkbox__background,.mdc-checkbox__native-control:focus:focus:not(:indeterminate)~.mdc-checkbox__background{border-color:var(--mat-checkbox-unselected-focus-icon-color, var(--mat-sys-on-surface))}.mdc-checkbox__native-control:focus:focus:checked~.mdc-checkbox__background,.mdc-checkbox__native-control:focus:focus:indeterminate~.mdc-checkbox__background{border-color:var(--mat-checkbox-selected-focus-icon-color, var(--mat-sys-primary));background-color:var(--mat-checkbox-selected-focus-icon-color, var(--mat-sys-primary))}.mdc-checkbox--disabled.mat-mdc-checkbox-disabled-interactive .mdc-checkbox:hover>.mdc-checkbox__native-control~.mdc-checkbox__background,.mdc-checkbox--disabled.mat-mdc-checkbox-disabled-interactive .mdc-checkbox .mdc-checkbox__native-control:focus~.mdc-checkbox__background,.mdc-checkbox--disabled.mat-mdc-checkbox-disabled-interactive .mdc-checkbox__background{border-color:var(--mat-checkbox-disabled-unselected-icon-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent))}@media(forced-colors: active){.mdc-checkbox--disabled.mat-mdc-checkbox-disabled-interactive .mdc-checkbox:hover>.mdc-checkbox__native-control~.mdc-checkbox__background,.mdc-checkbox--disabled.mat-mdc-checkbox-disabled-interactive .mdc-checkbox .mdc-checkbox__native-control:focus~.mdc-checkbox__background,.mdc-checkbox--disabled.mat-mdc-checkbox-disabled-interactive .mdc-checkbox__background{border-color:GrayText}}.mdc-checkbox--disabled.mat-mdc-checkbox-disabled-interactive .mdc-checkbox__native-control:checked~.mdc-checkbox__background,.mdc-checkbox--disabled.mat-mdc-checkbox-disabled-interactive .mdc-checkbox__native-control:indeterminate~.mdc-checkbox__background{background-color:var(--mat-checkbox-disabled-selected-icon-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent));border-color:rgba(0,0,0,0)}.mdc-checkbox__checkmark{position:absolute;top:0;right:0;bottom:0;left:0;width:100%;opacity:0;transition:opacity 180ms cubic-bezier(0.4, 0, 0.6, 1);color:var(--mat-checkbox-selected-checkmark-color, var(--mat-sys-on-primary))}@media(forced-colors: active){.mdc-checkbox__checkmark{color:CanvasText}}.mdc-checkbox--disabled .mdc-checkbox__checkmark,.mdc-checkbox--disabled.mat-mdc-checkbox-disabled-interactive .mdc-checkbox__checkmark{color:var(--mat-checkbox-disabled-selected-checkmark-color, var(--mat-sys-surface))}@media(forced-colors: active){.mdc-checkbox--disabled .mdc-checkbox__checkmark,.mdc-checkbox--disabled.mat-mdc-checkbox-disabled-interactive .mdc-checkbox__checkmark{color:GrayText}}.mdc-checkbox__checkmark-path{transition:stroke-dashoffset 180ms cubic-bezier(0.4, 0, 0.6, 1);stroke:currentColor;stroke-width:3.12px;stroke-dashoffset:29.7833385;stroke-dasharray:29.7833385}.mdc-checkbox__mixedmark{width:100%;height:0;transform:scaleX(0) rotate(0deg);border-width:1px;border-style:solid;opacity:0;transition:opacity 90ms cubic-bezier(0.4, 0, 0.6, 1),transform 90ms cubic-bezier(0.4, 0, 0.6, 1);border-color:var(--mat-checkbox-selected-checkmark-color, var(--mat-sys-on-primary))}@media(forced-colors: active){.mdc-checkbox__mixedmark{margin:0 1px}}.mdc-checkbox--disabled .mdc-checkbox__mixedmark,.mdc-checkbox--disabled.mat-mdc-checkbox-disabled-interactive .mdc-checkbox__mixedmark{border-color:var(--mat-checkbox-disabled-selected-checkmark-color, var(--mat-sys-surface))}@media(forced-colors: active){.mdc-checkbox--disabled .mdc-checkbox__mixedmark,.mdc-checkbox--disabled.mat-mdc-checkbox-disabled-interactive .mdc-checkbox__mixedmark{border-color:GrayText}}.mdc-checkbox--anim-unchecked-checked .mdc-checkbox__background,.mdc-checkbox--anim-unchecked-indeterminate .mdc-checkbox__background,.mdc-checkbox--anim-checked-unchecked .mdc-checkbox__background,.mdc-checkbox--anim-indeterminate-unchecked .mdc-checkbox__background{animation-duration:180ms;animation-timing-function:linear}.mdc-checkbox--anim-unchecked-checked .mdc-checkbox__checkmark-path{animation:mdc-checkbox-unchecked-checked-checkmark-path 180ms linear;transition:none}.mdc-checkbox--anim-unchecked-indeterminate .mdc-checkbox__mixedmark{animation:mdc-checkbox-unchecked-indeterminate-mixedmark 90ms linear;transition:none}.mdc-checkbox--anim-checked-unchecked .mdc-checkbox__checkmark-path{animation:mdc-checkbox-checked-unchecked-checkmark-path 90ms linear;transition:none}.mdc-checkbox--anim-checked-indeterminate .mdc-checkbox__checkmark{animation:mdc-checkbox-checked-indeterminate-checkmark 90ms linear;transition:none}.mdc-checkbox--anim-checked-indeterminate .mdc-checkbox__mixedmark{animation:mdc-checkbox-checked-indeterminate-mixedmark 90ms linear;transition:none}.mdc-checkbox--anim-indeterminate-checked .mdc-checkbox__checkmark{animation:mdc-checkbox-indeterminate-checked-checkmark 500ms linear;transition:none}.mdc-checkbox--anim-indeterminate-checked .mdc-checkbox__mixedmark{animation:mdc-checkbox-indeterminate-checked-mixedmark 500ms linear;transition:none}.mdc-checkbox--anim-indeterminate-unchecked .mdc-checkbox__mixedmark{animation:mdc-checkbox-indeterminate-unchecked-mixedmark 300ms linear;transition:none}.mdc-checkbox__native-control:checked~.mdc-checkbox__background,.mdc-checkbox__native-control:indeterminate~.mdc-checkbox__background{transition:border-color 90ms cubic-bezier(0, 0, 0.2, 1),background-color 90ms cubic-bezier(0, 0, 0.2, 1)}.mdc-checkbox__native-control:checked~.mdc-checkbox__background>.mdc-checkbox__checkmark>.mdc-checkbox__checkmark-path,.mdc-checkbox__native-control:indeterminate~.mdc-checkbox__background>.mdc-checkbox__checkmark>.mdc-checkbox__checkmark-path{stroke-dashoffset:0}.mdc-checkbox__native-control:checked~.mdc-checkbox__background>.mdc-checkbox__checkmark{transition:opacity 180ms cubic-bezier(0, 0, 0.2, 1),transform 180ms cubic-bezier(0, 0, 0.2, 1);opacity:1}.mdc-checkbox__native-control:checked~.mdc-checkbox__background>.mdc-checkbox__mixedmark{transform:scaleX(1) rotate(-45deg)}.mdc-checkbox__native-control:indeterminate~.mdc-checkbox__background>.mdc-checkbox__checkmark{transform:rotate(45deg);opacity:0;transition:opacity 90ms cubic-bezier(0.4, 0, 0.6, 1),transform 90ms cubic-bezier(0.4, 0, 0.6, 1)}.mdc-checkbox__native-control:indeterminate~.mdc-checkbox__background>.mdc-checkbox__mixedmark{transform:scaleX(1) rotate(0deg);opacity:1}@keyframes mdc-checkbox-unchecked-checked-checkmark-path{0%,50%{stroke-dashoffset:29.7833385}50%{animation-timing-function:cubic-bezier(0, 0, 0.2, 1)}100%{stroke-dashoffset:0}}@keyframes mdc-checkbox-unchecked-indeterminate-mixedmark{0%,68.2%{transform:scaleX(0)}68.2%{animation-timing-function:cubic-bezier(0, 0, 0, 1)}100%{transform:scaleX(1)}}@keyframes mdc-checkbox-checked-unchecked-checkmark-path{from{animation-timing-function:cubic-bezier(0.4, 0, 1, 1);opacity:1;stroke-dashoffset:0}to{opacity:0;stroke-dashoffset:-29.7833385}}@keyframes mdc-checkbox-checked-indeterminate-checkmark{from{animation-timing-function:cubic-bezier(0, 0, 0.2, 1);transform:rotate(0deg);opacity:1}to{transform:rotate(45deg);opacity:0}}@keyframes mdc-checkbox-indeterminate-checked-checkmark{from{animation-timing-function:cubic-bezier(0.14, 0, 0, 1);transform:rotate(45deg);opacity:0}to{transform:rotate(360deg);opacity:1}}@keyframes mdc-checkbox-checked-indeterminate-mixedmark{from{animation-timing-function:cubic-bezier(0, 0, 0.2, 1);transform:rotate(-45deg);opacity:0}to{transform:rotate(0deg);opacity:1}}@keyframes mdc-checkbox-indeterminate-checked-mixedmark{from{animation-timing-function:cubic-bezier(0.14, 0, 0, 1);transform:rotate(0deg);opacity:1}to{transform:rotate(315deg);opacity:0}}@keyframes mdc-checkbox-indeterminate-unchecked-mixedmark{0%{animation-timing-function:linear;transform:scaleX(1);opacity:1}32.8%,100%{transform:scaleX(0);opacity:0}}.mat-mdc-checkbox{display:inline-block;position:relative;-webkit-tap-highlight-color:rgba(0,0,0,0)}.mat-mdc-checkbox._mat-animation-noopable>.mat-internal-form-field>.mdc-checkbox>.mat-mdc-checkbox-touch-target,.mat-mdc-checkbox._mat-animation-noopable>.mat-internal-form-field>.mdc-checkbox>.mdc-checkbox__native-control,.mat-mdc-checkbox._mat-animation-noopable>.mat-internal-form-field>.mdc-checkbox>.mdc-checkbox__ripple,.mat-mdc-checkbox._mat-animation-noopable>.mat-internal-form-field>.mdc-checkbox>.mat-mdc-checkbox-ripple::before,.mat-mdc-checkbox._mat-animation-noopable>.mat-internal-form-field>.mdc-checkbox>.mdc-checkbox__background,.mat-mdc-checkbox._mat-animation-noopable>.mat-internal-form-field>.mdc-checkbox>.mdc-checkbox__background>.mdc-checkbox__checkmark,.mat-mdc-checkbox._mat-animation-noopable>.mat-internal-form-field>.mdc-checkbox>.mdc-checkbox__background>.mdc-checkbox__checkmark>.mdc-checkbox__checkmark-path,.mat-mdc-checkbox._mat-animation-noopable>.mat-internal-form-field>.mdc-checkbox>.mdc-checkbox__background>.mdc-checkbox__mixedmark{transition:none !important;animation:none !important}.mat-mdc-checkbox label{cursor:pointer}.mat-mdc-checkbox .mat-internal-form-field{color:var(--mat-checkbox-label-text-color, var(--mat-sys-on-surface));font-family:var(--mat-checkbox-label-text-font, var(--mat-sys-body-medium-font));line-height:var(--mat-checkbox-label-text-line-height, var(--mat-sys-body-medium-line-height));font-size:var(--mat-checkbox-label-text-size, var(--mat-sys-body-medium-size));letter-spacing:var(--mat-checkbox-label-text-tracking, var(--mat-sys-body-medium-tracking));font-weight:var(--mat-checkbox-label-text-weight, var(--mat-sys-body-medium-weight))}.mat-mdc-checkbox.mat-mdc-checkbox-disabled.mat-mdc-checkbox-disabled-interactive{pointer-events:auto}.mat-mdc-checkbox.mat-mdc-checkbox-disabled.mat-mdc-checkbox-disabled-interactive input{cursor:default}.mat-mdc-checkbox.mat-mdc-checkbox-disabled label{cursor:default;color:var(--mat-checkbox-disabled-label-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent))}@media(forced-colors: active){.mat-mdc-checkbox.mat-mdc-checkbox-disabled label{color:GrayText}}.mat-mdc-checkbox label:empty{display:none}.mat-mdc-checkbox .mdc-checkbox__ripple{opacity:0}.mat-mdc-checkbox .mat-mdc-checkbox-ripple,.mdc-checkbox__ripple{top:0;left:0;right:0;bottom:0;position:absolute;border-radius:50%;pointer-events:none}.mat-mdc-checkbox .mat-mdc-checkbox-ripple:not(:empty),.mdc-checkbox__ripple:not(:empty){transform:translateZ(0)}.mat-mdc-checkbox-ripple .mat-ripple-element{opacity:.1}.mat-mdc-checkbox-touch-target{position:absolute;top:50%;left:50%;height:var(--mat-checkbox-touch-target-size, 48px);width:var(--mat-checkbox-touch-target-size, 48px);transform:translate(-50%, -50%);display:var(--mat-checkbox-touch-target-display, block)}.mat-mdc-checkbox .mat-mdc-checkbox-ripple::before{border-radius:50%}.mdc-checkbox__native-control:focus~.mat-focus-indicator::before{content:""} +`],encapsulation:2,changeDetection:0})}return t})(),yx=(()=>{class t{static \u0275fac=function(i){return new(i||t)};static \u0275mod=ee({type:t});static \u0275inj=J({imports:[Va,we,we]})}return t})();function Yte(t,n){t&1&&(h(0,"span",1),_(1,"*"),p())}var Qte=(()=>{let n=class n extends to{constructor(i,r){super(),this.renderer=i,this.focusMonitor=r,this.defaultOptions={props:{hideFieldUnderline:!0,indeterminate:!0,floatLabel:"always",hideLabel:!0,color:"accent"}}}onContainerClick(i){this.checkbox.focus(),super.onContainerClick(i)}ngAfterViewInit(){this.checkbox&&this.focusMonitor.monitor(this.checkbox._inputElement,!0).subscribe(i=>{this.field.focus=!!i,this.stateChanges.next(),i?this.props.focus&&this.props.focus(this.field):this.props.blur&&this.props.blur(this.field)})}ngAfterViewChecked(){if(this.required!==this._required&&this.checkbox&&this.checkbox._inputElement){this._required=this.required;let i=this.checkbox._inputElement.nativeElement;this.required?this.renderer.setAttribute(i,"required","required"):this.renderer.removeAttribute(i,"required")}}ngOnDestroy(){super.ngOnDestroy(),this.checkbox&&this.focusMonitor.stopMonitoring(this.checkbox._inputElement)}};n.\u0275fac=function(r){return new(r||n)(_e(je),_e(Yt))},n.\u0275cmp=E({type:n,selectors:[["formly-field-mat-checkbox"]],viewQuery:function(r,o){if(r&1&&ie(Va,7),r&2){let a;B(a=j())&&(o.checkbox=a.first)}},standalone:!1,features:[le],decls:3,vars:10,consts:[[3,"formControl","id","name","formlyAttributes","tabIndex","indeterminate","color","labelPosition"],["aria-hidden","true",1,"mat-form-field-required-marker","mat-mdc-form-field-required-marker"]],template:function(r,o){r&1&&(h(0,"mat-checkbox",0),_(1),N(2,Yte,2,0,"span",1),p()),r&2&&(y("formControl",o.formControl)("id",o.id)("name",o.field.name)("formlyAttributes",o.field)("tabIndex",o.props.tabindex)("indeterminate",o.props.indeterminate&&o.formControl.value==null)("color",o.props.color)("labelPosition",o.props.labelPosition),g(),ve(" ",o.props.label," "),g(),L(o.props.required&&o.props.hideRequiredMarker!==!0?2:-1))},dependencies:[ei,wo,Va,ta],encapsulation:2,changeDetection:0});let t=n;return t})();function I3(){return{types:[{name:"checkbox",component:Qte,wrappers:["form-field"]},{name:"boolean",extends:"checkbox"}]}}function Kte(t,n){if(t&1){let e=Y();h(0,"mat-checkbox",1),S("change",function(r){let o=I(e).$implicit,a=C();return A(a.onChange(o.value,r.checked))}),_(1),p()}if(t&2){let e=n.$implicit,i=n.$index,r=C();y("id",r.id+"_"+i)("formlyAttributes",r.field)("tabIndex",r.props.tabindex)("color",r.props.color)("labelPosition",r.props.labelPosition)("checked",r.isChecked(e))("disabled",r.formControl.disabled||e.disabled),g(),ve(" ",e.label," ")}}var Zte=(()=>{let n=class n extends to{constructor(){super(...arguments),this.defaultOptions={props:{hideFieldUnderline:!0,floatLabel:"always",color:"accent"}}}onChange(i,r){this.formControl.markAsDirty(),this.props.type==="array"?this.formControl.patchValue(r?[...this.formControl.value||[],i]:[...this.formControl.value||[]].filter(o=>o!==i)):this.formControl.patchValue(De(M({},this.formControl.value),{[i]:r})),this.formControl.markAsTouched()}onContainerClick(){}isChecked(i){let r=this.formControl.value;return r&&(this.props.type==="array"?r.indexOf(i.value)!==-1:r[i.value])}};n.\u0275fac=(()=>{let i;return function(o){return(i||(i=fe(n)))(o||n)}})(),n.\u0275cmp=E({type:n,selectors:[["formly-field-mat-multicheckbox"]],viewQuery:function(r,o){if(r&1&&ie(Va,5),r&2){let a;B(a=j())&&(o.checkboxes=a)}},hostVars:1,hostBindings:function(r,o){r&2&&si("id",o.id)},standalone:!1,features:[le],decls:4,vars:5,consts:[[3,"id","formlyAttributes","tabIndex","color","labelPosition","checked","disabled"],[3,"change","id","formlyAttributes","tabIndex","color","labelPosition","checked","disabled"]],template:function(r,o){r&1&&(xt(0,Kte,2,8,"mat-checkbox",0,Hi),me(2,"formlySelectOptions"),me(3,"async")),r&2&&Ct(Oe(3,3,Ni(2,0,o.props.options,o.field)))},dependencies:[Va,ta,rn,Eh],encapsulation:2,changeDetection:0});let t=n;return t})();function A3(){return{types:[{name:"multicheckbox",component:Zte,wrappers:["form-field"]}]}}var Xte=t=>({selectOptions:t});function Jte(t,n){if(t&1){let e=Y();h(0,"mat-option",2),S("click",function(){let r=I(e).selectOptions,o=C();return A(o.toggleSelectAll(r))}),k(1,"mat-pseudo-checkbox",3),_(2),p()}if(t&2){let e=n.selectOptions,i=C();g(),y("state",i.getSelectAllState(e)),g(),ve(" ",i.props.selectAllOption," ")}}function eie(t,n){if(t&1&&Ge(0,4),t&2){let e=C();C();let i=Se(1);y("ngTemplateOutlet",i)("ngTemplateOutletContext",Pt(2,Xte,e))}}function tie(t,n){if(t&1&&(h(0,"mat-option",6),_(1),p()),t&2){let e=n.$implicit;y("value",e.value)("disabled",e.disabled),g(),ve(" ",e.label," ")}}function iie(t,n){if(t&1&&(h(0,"mat-optgroup",5),xt(1,tie,2,3,"mat-option",6,Hi),p()),t&2){let e=C().$implicit;y("label",e.label),g(),Ct(e.group)}}function nie(t,n){if(t&1&&(h(0,"mat-option",6),_(1),p()),t&2){let e=C().$implicit;y("value",e.value)("disabled",e.disabled),g(),H(e.label)}}function rie(t,n){if(t&1&&N(0,iie,3,1,"mat-optgroup",5)(1,nie,2,3,"mat-option",6),t&2){let e=n.$implicit;L(e.group?0:1)}}function oie(t,n){if(t&1&&(N(0,eie,1,4,"ng-container",4),xt(1,rie,2,1,null,null,Hi)),t&2){let e=C();L(e.props.multiple&&e.props.selectAllOption?0:-1),g(),Ct(n)}}var aie=(()=>{let n=class n extends to{constructor(){super(...arguments),this.defaultOptions={props:{compareWith(i,r){return i===r}}}}set select(i){Wi(i,["_parentFormField","_textField"],({currentValue:r})=>{r&&(i._preferredOverlayOrigin=i._parentFormField.getConnectedOverlayOrigin())})}getSelectAllState(i){return this.empty||this.value.length===0?null:this.value.length!==this.getSelectAllValue(i).length?"indeterminate":"checked"}toggleSelectAll(i){let r=this.getSelectAllValue(i);this.formControl.markAsDirty(),this.formControl.setValue(!this.value||this.value.length!==r.length?r:[])}change(i){this.props.change?.(this.field,i)}_getAriaLabelledby(){return this.props.attributes?.["aria-labelledby"]?this.props.attributes["aria-labelledby"]:this.formField?._labelId}_getAriaLabel(){return this.props.attributes?.["aria-label"]}getSelectAllValue(i){if(!this.selectAllValue||i!==this.selectAllValue.options){let r=[];i.forEach(o=>o.group?r.push(...o.group):r.push(o)),this.selectAllValue={options:i,value:r.filter(o=>!o.disabled).map(o=>o.value)}}return this.selectAllValue.value}};n.\u0275fac=(()=>{let i;return function(o){return(i||(i=fe(n)))(o||n)}})(),n.\u0275cmp=E({type:n,selectors:[["formly-field-mat-select"]],viewQuery:function(r,o){if(r&1&&ie(Na,7),r&2){let a;B(a=j())&&(o.select=a.first)}},standalone:!1,features:[le],decls:6,vars:20,consts:[["selectAll",""],[3,"selectionChange","id","formControl","formlyAttributes","placeholder","tabIndex","required","compareWith","multiple","errorStateMatcher","aria-label","aria-labelledby","disableOptionCentering","typeaheadDebounceInterval","panelClass"],[3,"click"],[1,"mat-option-pseudo-checkbox",3,"state"],[3,"ngTemplateOutlet","ngTemplateOutletContext"],[3,"label"],[3,"value","disabled"]],template:function(r,o){if(r&1){let a=Y();R(0,Jte,3,2,"ng-template",null,0,_i),h(2,"mat-select",1),S("selectionChange",function(l){return I(a),A(o.change(l))}),N(3,oie,3,1),me(4,"formlySelectOptions"),me(5,"async"),p()}if(r&2){let a;g(2),y("id",o.id)("formControl",o.formControl)("formlyAttributes",o.field)("placeholder",o.props.placeholder)("tabIndex",o.props.tabindex)("required",o.required)("compareWith",o.props.compareWith)("multiple",o.props.multiple)("errorStateMatcher",o.errorStateMatcher),Kl("aria-label",o._getAriaLabel())("aria-labelledby",o._getAriaLabelledby()),y("disableOptionCentering",o.props.disableOptionCentering)("typeaheadDebounceInterval",o.props.typeaheadDebounceInterval)("panelClass",o.props.panelClass),g(),L((a=Oe(5,18,Ni(4,15,o.props.options,o.field)))?3:-1,a)}},dependencies:[Fn,ei,Do,wo,Na,xn,kk,Qd,ta,rn,Eh],encapsulation:2,changeDetection:0});let t=n;return t})();function O3(){return{types:[{name:"select",component:aie,wrappers:["form-field"]},{name:"enum",extends:"select"}]}}function R3(){return[v3(),D3(),E3(),k3(),I3(),A3(),O3()]}var kg=class{},F3=(()=>{class t{handle(e){return e.key}static \u0275fac=function(i){return new(i||t)};static \u0275prov=O({token:t,factory:t.\u0275fac})}return t})(),Mh=class{},N3=(()=>{class t extends Mh{compile(e,i){return e}compileTranslations(e,i){return e}static \u0275fac=(()=>{let e;return function(r){return(e||(e=fe(t)))(r||t)}})();static \u0275prov=O({token:t,factory:t.\u0275fac})}return t})(),yc=class{},L3=(()=>{class t extends yc{getTranslation(e){return Q({})}static \u0275fac=(()=>{let e;return function(r){return(e||(e=fe(t)))(r||t)}})();static \u0275prov=O({token:t,factory:t.\u0275fac})}return t})();function Sg(t,n){if(t===n)return!0;if(t===null||n===null)return!1;if(t!==t&&n!==n)return!0;let e=typeof t,i=typeof n,r;if(e==i&&e=="object")if(Array.isArray(t)){if(!Array.isArray(n))return!1;if((r=t.length)==n.length){for(let o=0;oxx(n));if(hl(t)){let n={};return Object.keys(t).forEach(e=>{n[e]=xx(t[e])}),n}else return t}function kS(t,n){if(!Mg(t))return xx(n);let e=xx(t);return Mg(e)&&Mg(n)&&Object.keys(n).forEach(i=>{hl(n[i])?i in t?e[i]=kS(t[i],n[i]):Object.assign(e,{[i]:n[i]}):Object.assign(e,{[i]:n[i]})}),e}function V3(t,n){let e=n.split(".");n="";do{n+=e.shift();let i=!e.length;if(Mo(t)){if(hl(t)&&P3(t[n])&&(hl(t[n])||pu(t[n])||i)){t=t[n],n="";continue}if(pu(t)){let r=parseInt(n,10);if(P3(t[r])&&(hl(t[r])||pu(t[r])||i)){t=t[r],n="";continue}}}if(i){t=void 0;continue}n+="."}while(e.length);return t}function lie(t,n,e){return kS(t,cie(n,e))}function cie(t,n){return t.split(".").reduceRight((e,i)=>({[i]:e}),n)}var kh=class{},B3=(()=>{class t extends kh{templateMatcher=/{{\s?([^{}\s]*)\s?}}/g;interpolate(e,i){if(Tg(e))return this.interpolateString(e,i);if(sie(e))return this.interpolateFunction(e,i)}interpolateFunction(e,i){return e(i)}interpolateString(e,i){return i?e.replace(this.templateMatcher,(r,o)=>{let a=this.getInterpolationReplacement(i,o);return a!==void 0?a:r}):e}getInterpolationReplacement(e,i){return this.formatValue(V3(e,i))}formatValue(e){if(Tg(e))return e;if(typeof e=="number"||typeof e=="boolean")return e.toString();if(e===null)return"null";if(pu(e))return e.join(", ");if(Mg(e))return typeof e.toString=="function"&&e.toString!==Object.prototype.toString?e.toString():JSON.stringify(e)}static \u0275fac=(()=>{let e;return function(r){return(e||(e=fe(t)))(r||t)}})();static \u0275prov=O({token:t,factory:t.\u0275fac})}return t})(),DS=(()=>{class t{_onTranslationChange=new z;_onLangChange=new z;_onFallbackLangChange=new z;fallbackLang=null;currentLang;translations={};languages=[];getTranslations(e){return this.translations[e]}setTranslations(e,i,r){this.translations[e]=r&&this.hasTranslationFor(e)?kS(this.translations[e],i):i,this.addLanguages([e]),this._onTranslationChange.next({lang:e,translations:this.getTranslations(e)})}getLanguages(){return this.languages}getCurrentLang(){return this.currentLang}getFallbackLang(){return this.fallbackLang}setFallbackLang(e,i=!0){this.fallbackLang=e,i&&this._onFallbackLangChange.next({lang:e,translations:this.translations[e]})}setCurrentLang(e,i=!0){this.currentLang=e,i&&this._onLangChange.next({lang:e,translations:this.translations[e]})}get onTranslationChange(){return this._onTranslationChange.asObservable()}get onLangChange(){return this._onLangChange.asObservable()}get onFallbackLangChange(){return this._onFallbackLangChange.asObservable()}addLanguages(e){this.languages=Array.from(new Set([...this.languages,...e]))}hasTranslationFor(e){return typeof this.translations[e]<"u"}deleteTranslations(e){delete this.translations[e]}getTranslation(e){let i=this.getValue(this.currentLang,e);return i===void 0&&this.fallbackLang!=null&&this.fallbackLang!==this.currentLang&&(i=this.getValue(this.fallbackLang,e)),i}getValue(e,i){return V3(this.getTranslations(e),i)}static \u0275fac=function(i){return new(i||t)};static \u0275prov=O({token:t,factory:t.\u0275fac})}return t})(),ES=new T("TRANSLATE_CONFIG"),Eg=t=>ji(t)?t:Q(t);var ia=(()=>{class t{loadingTranslations;pending=!1;_translationRequests={};lastUseLanguage=null;currentLoader=u(yc);compiler=u(Mh);parser=u(kh);missingTranslationHandler=u(kg);store=u(DS);extend=!1;get onTranslationChange(){return this.store.onTranslationChange}get onLangChange(){return this.store.onLangChange}get onFallbackLangChange(){return this.store.onFallbackLangChange}get onDefaultLangChange(){return this.store.onFallbackLangChange}constructor(){let e=M({extend:!1,fallbackLang:null},u(ES,{optional:!0}));e.lang&&this.use(e.lang),e.fallbackLang&&this.setFallbackLang(e.fallbackLang),e.extend&&(this.extend=!0)}setFallbackLang(e){this.getFallbackLang()||this.store.setFallbackLang(e,!1);let i=this.loadOrExtendLanguage(e);return ji(i)?(i.pipe(lt(1)).subscribe({next:()=>{this.store.setFallbackLang(e)},error:()=>{}}),i):(this.store.setFallbackLang(e),Q(this.store.getTranslations(e)))}use(e){this.lastUseLanguage=e,this.getCurrentLang()||this.store.setCurrentLang(e,!1);let i=this.loadOrExtendLanguage(e);return ji(i)?(i.pipe(lt(1)).subscribe({next:()=>{this.changeLang(e)},error:()=>{}}),i):(this.changeLang(e),Q(this.store.getTranslations(e)))}loadOrExtendLanguage(e){if(!this.store.hasTranslationFor(e)||this.extend)return this._translationRequests[e]=this._translationRequests[e]||this.loadAndCompileTranslations(e),this._translationRequests[e]}changeLang(e){e===this.lastUseLanguage&&this.store.setCurrentLang(e)}getCurrentLang(){return this.store.getCurrentLang()}loadAndCompileTranslations(e){this.pending=!0;let i=this.currentLoader.getTranslation(e).pipe(dd(1),lt(1));return this.loadingTranslations=i.pipe(se(r=>this.compiler.compileTranslations(r,e)),dd(1),lt(1)),this.loadingTranslations.subscribe({next:r=>{this.store.setTranslations(e,r,this.extend),this.pending=!1},error:r=>{this.pending=!1}}),i}setTranslation(e,i,r=!1){let o=this.compiler.compileTranslations(i,e);this.store.setTranslations(e,o,r||this.extend)}getLangs(){return this.store.getLanguages()}addLangs(e){this.store.addLanguages(e)}getParsedResultForKey(e,i){let r=this.getTextToInterpolate(e);if(Mo(r))return this.runInterpolation(r,i);let o=this.missingTranslationHandler.handle(M({key:e,translateService:this},i!==void 0&&{interpolateParams:i}));return o!==void 0?o:e}getFallbackLang(){return this.store.getFallbackLang()}getTextToInterpolate(e){return this.store.getTranslation(e)}runInterpolation(e,i){if(Mo(e))return pu(e)?this.runInterpolationOnArray(e,i):hl(e)?this.runInterpolationOnDict(e,i):this.parser.interpolate(e,i)}runInterpolationOnArray(e,i){return e.map(r=>this.runInterpolation(r,i))}runInterpolationOnDict(e,i){let r={};for(let o in e){let a=this.runInterpolation(e[o],i);a!==void 0&&(r[o]=a)}return r}getParsedResult(e,i){return e instanceof Array?this.getParsedResultForArray(e,i):this.getParsedResultForKey(e,i)}getParsedResultForArray(e,i){let r={},o=!1;for(let s of e)r[s]=this.getParsedResultForKey(s,i),o=o||ji(r[s]);if(!o)return r;let a=e.map(s=>Eg(r[s]));return Ga(a).pipe(se(s=>{let l={};return s.forEach((c,d)=>{l[e[d]]=c}),l}))}get(e,i){if(!Mo(e)||!e.length)throw new Error('Parameter "key" is required and cannot be empty');return this.pending?this.loadingTranslations.pipe(Ao(()=>Eg(this.getParsedResult(e,i)))):Eg(this.getParsedResult(e,i))}getStreamOnTranslationChange(e,i){if(!Mo(e)||!e.length)throw new Error('Parameter "key" is required and cannot be empty');return mo(kn(()=>this.get(e,i)),this.onTranslationChange.pipe($e(()=>{let r=this.getParsedResult(e,i);return Eg(r)})))}stream(e,i){if(!Mo(e)||!e.length)throw new Error('Parameter "key" required');return mo(kn(()=>this.get(e,i)),this.onLangChange.pipe($e(()=>{let r=this.getParsedResult(e,i);return Eg(r)})))}instant(e,i){if(!Mo(e)||e.length===0)throw new Error('Parameter "key" is required and cannot be empty');let r=this.getParsedResult(e,i);return ji(r)?Array.isArray(e)?e.reduce((o,a)=>(o[a]=a,o),{}):e:r}set(e,i,r=this.getCurrentLang()){this.store.setTranslations(r,lie(this.store.getTranslations(r),e,Tg(i)?this.compiler.compile(i,r):this.compiler.compileTranslations(i,r)),!1)}reloadLang(e){return this.resetLang(e),this.loadAndCompileTranslations(e)}resetLang(e){delete this._translationRequests[e],this.store.deleteTranslations(e)}static getBrowserLang(){if(typeof window>"u"||!window.navigator)return;let e=this.getBrowserCultureLang();return e?e.split(/[-_]/)[0]:void 0}static getBrowserCultureLang(){if(!(typeof window>"u"||typeof window.navigator>"u"))return window.navigator.languages?window.navigator.languages[0]:window.navigator.language||window.navigator.browserLanguage||window.navigator.userLanguage}getBrowserLang(){return t.getBrowserLang()}getBrowserCultureLang(){return t.getBrowserCultureLang()}get defaultLang(){return this.getFallbackLang()}get currentLang(){return this.store.getCurrentLang()}get langs(){return this.store.getLanguages()}setDefaultLang(e){return this.setFallbackLang(e)}getDefaultLang(){return this.getFallbackLang()}static \u0275fac=function(i){return new(i||t)};static \u0275prov=O({token:t,factory:t.\u0275fac})}return t})(),j3=(()=>{class t{translateService=u(ia);element=u(q);_ref=u(ye);key;lastParams;currentParams;onLangChangeSub;onFallbackLangChangeSub;onTranslationChangeSub;set translate(e){e&&(this.key=e,this.checkNodes())}set translateParams(e){Sg(this.currentParams,e)||(this.currentParams=e,this.checkNodes(!0))}constructor(){this.onTranslationChangeSub||(this.onTranslationChangeSub=this.translateService.onTranslationChange.subscribe(e=>{e.lang===this.translateService.currentLang&&this.checkNodes(!0,e.translations)})),this.onLangChangeSub||(this.onLangChangeSub=this.translateService.onLangChange.subscribe(e=>{this.checkNodes(!0,e.translations)})),this.onFallbackLangChangeSub||(this.onFallbackLangChangeSub=this.translateService.onFallbackLangChange.subscribe(e=>{this.checkNodes(!0)}))}ngAfterViewChecked(){this.checkNodes()}checkNodes(e=!1,i){let r=this.element.nativeElement.childNodes;r.length||(this.setContent(this.element.nativeElement,this.key),r=this.element.nativeElement.childNodes),r.forEach(o=>{let a=o;if(a.nodeType===3){let s;if(e&&(a.lastKey=null),Mo(a.lookupKey))s=a.lookupKey;else if(this.key)s=this.key;else{let l=this.getContent(a),c=l.trim();c.length&&(a.lookupKey=c,l!==a.currentValue?(s=c,a.originalContent=l||a.originalContent):a.originalContent&&(s=a.originalContent.trim()))}this.updateValue(s,a,i)}})}updateValue(e,i,r){if(e){if(i.lastKey===e&&this.lastParams===this.currentParams)return;this.lastParams=this.currentParams;let o=a=>{(a!==e||!i.lastKey)&&(i.lastKey=e),i.originalContent||(i.originalContent=this.getContent(i)),Tg(a)?i.currentValue=a:Mo(a)?i.currentValue=JSON.stringify(a):i.currentValue=i.originalContent||e,this.setContent(i,this.key?i.currentValue:i.originalContent.replace(e,i.currentValue)),this._ref.markForCheck()};if(Mo(r)){let a=this.translateService.getParsedResult(e,this.currentParams);ji(a)?a.subscribe({next:o}):o(a)}else this.translateService.get(e,this.currentParams).subscribe(o)}}getContent(e){return Mo(e.textContent)?e.textContent:e.data}setContent(e,i){Mo(e.textContent)?e.textContent=i:e.data=i}ngOnDestroy(){this.onLangChangeSub&&this.onLangChangeSub.unsubscribe(),this.onFallbackLangChangeSub&&this.onFallbackLangChangeSub.unsubscribe(),this.onTranslationChangeSub&&this.onTranslationChangeSub.unsubscribe()}static \u0275fac=function(i){return new(i||t)};static \u0275dir=F({type:t,selectors:[["","translate",""],["","ngx-translate",""]],inputs:{translate:"translate",translateParams:"translateParams"}})}return t})(),Cr=(()=>{class t{translate=u(ia);_ref=u(ye);value="";lastKey=null;lastParams=[];onTranslationChange;onLangChange;onFallbackLangChange;updateValue(e,i,r){let o=a=>{this.value=a!==void 0?a:e,this.lastKey=e,this._ref.markForCheck()};if(r){let a=this.translate.getParsedResult(e,i);ji(a)?a.subscribe(o):o(a)}this.translate.get(e,i).subscribe(o)}transform(e,...i){if(!e||!e.length)return e;if(Sg(e,this.lastKey)&&Sg(i,this.lastParams))return this.value;let r;if(Mo(i[0])&&i.length)if(Tg(i[0])&&i[0].length){let o=i[0].replace(/(')?([a-zA-Z0-9_]+)(')?(\s)?:/g,'"$2":').replace(/:(\s)?(')(.*?)(')/g,':"$3"');try{r=JSON.parse(o)}catch(a){throw new SyntaxError(`Wrong parameter in TranslatePipe. Expected a valid Object, received: ${i[0]}`)}}else hl(i[0])&&(r=i[0]);return this.lastKey=e,this.lastParams=i,this.updateValue(e,r),this._dispose(),this.onTranslationChange||(this.onTranslationChange=this.translate.onTranslationChange.subscribe(o=>{(this.lastKey&&o.lang===this.translate.getCurrentLang()||o.lang===this.translate.getFallbackLang())&&(this.lastKey=null,this.updateValue(e,r,o.translations))})),this.onLangChange||(this.onLangChange=this.translate.onLangChange.subscribe(o=>{this.lastKey&&(this.lastKey=null,this.updateValue(e,r,o.translations))})),this.onFallbackLangChange||(this.onFallbackLangChange=this.translate.onFallbackLangChange.subscribe(()=>{this.lastKey&&(this.lastKey=null,this.updateValue(e,r))})),this.value}_dispose(){typeof this.onTranslationChange<"u"&&(this.onTranslationChange.unsubscribe(),this.onTranslationChange=void 0),typeof this.onLangChange<"u"&&(this.onLangChange.unsubscribe(),this.onLangChange=void 0),typeof this.onFallbackLangChange<"u"&&(this.onFallbackLangChange.unsubscribe(),this.onFallbackLangChange=void 0)}ngOnDestroy(){this._dispose()}static \u0275fac=function(i){return new(i||t)};static \u0275pipe=Wr({name:"translate",type:t,pure:!1});static \u0275prov=O({token:t,factory:t.\u0275fac})}return t})();function H3(t){return{provide:yc,useClass:t}}function z3(t){return{provide:Mh,useClass:t}}function U3(t){return{provide:kh,useClass:t}}function $3(t){return{provide:kg,useClass:t}}function W3(t={}){return MS(M({compiler:z3(N3),parser:U3(B3),loader:H3(L3),missingTranslationHandler:$3(F3)},t),!0)}function MS(t={},n){let e=[];t.loader&&e.push(t.loader),t.compiler&&e.push(t.compiler),t.parser&&e.push(t.parser),t.missingTranslationHandler&&e.push(t.missingTranslationHandler),n&&e.push(DS),(t.useDefaultLang||t.defaultLanguage)&&(console.warn("The `useDefaultLang` and `defaultLanguage` options are deprecated. Please use `fallbackLang` instead."),t.useDefaultLang===!0&&t.defaultLanguage&&(t.fallbackLang=t.defaultLanguage));let i={fallbackLang:t.fallbackLang??null,lang:t.lang,extend:t.extend??!1};return e.push({provide:ES,useValue:i}),e.push({provide:ia,useClass:ia,deps:[DS,yc,Mh,kh,kg,ES]}),e}var wr=(()=>{class t{static forRoot(e={}){return{ngModule:t,providers:[...MS(M({compiler:z3(N3),parser:U3(B3),loader:H3(L3),missingTranslationHandler:$3(F3)},e),!0)]}}static forChild(e={}){return{ngModule:t,providers:[...MS(e,e.isolate??!1)]}}static \u0275fac=function(i){return new(i||t)};static \u0275mod=ee({type:t});static \u0275inj=J({})}return t})();var SS=new T("TRANSLATE_HTTP_LOADER_CONFIG"),die=(()=>{class t{http;config;constructor(){this.config=M({prefix:"/assets/i18n/",suffix:".json",enforceLoading:!1,useHttpBackend:!1},u(SS)),this.http=this.config.useHttpBackend?new Yr(u(Zl)):u(Yr)}getTranslation(e){let i=this.config.enforceLoading?`?enforceLoading=${Date.now()}`:"";return this.http.get(`${this.config.prefix}${e}${this.config.suffix}${i}`)}static \u0275fac=function(i){return new(i||t)};static \u0275prov=O({token:t,factory:t.\u0275fac})}return t})();function G3(t={}){let n=t.useHttpBackend??!1;return[{provide:SS,useValue:t},{provide:yc,useClass:die,deps:[n?Zl:Yr,SS]}]}var TS=class{constructor(n){this.options=n,n.vcr?this.ref=n.vcr.createComponent(n.component,{index:n.vcr.length,injector:n.injector||n.vcr.injector}):(this.ref=Mm(n.component,{elementInjector:n.injector,environmentInjector:n.environmentInjector}),n.appRef.attachView(this.ref.hostView))}setInput(n,e){return this.ref.setInput(n,e),this}setInputs(n){return Object.keys(n).forEach(e=>{this.ref.setInput(e,n[e])}),this}detectChanges(){return this.ref.hostView.detectChanges(),this}updateContext(n){return this.options.contextSignal?.set(n),this}appendTo(n){return n.appendChild(this.getElement()),this}removeFrom(n){return n.removeChild(this.getElement()),this}getRawContent(){return this.getElement().outerHTML}getElement(){return this.ref.location.nativeElement}destroy(){this.ref.destroy(),!this.options.vcr&&this.options.appRef.detachView(this.ref.hostView),this.ref=null}};function Ig(t){return t instanceof te}function gu(t){return typeof t=="function"}function q3(t){return typeof t=="string"}var IS=class{constructor(n){this.args=n,this.args.vcr?(this.ref=this.args.vcr.createEmbeddedView(this.args.tpl,this.args.context||{},{injector:n.injector}),this.ref.detectChanges()):(this.ref=this.args.tpl.createEmbeddedView(this.args.context||{},n.injector),this.ref.detectChanges(),this.args.appRef.attachView(this.ref))}detectChanges(){return this.ref.detectChanges(),this}getElement(){let n=this.ref.rootNodes;return n.length===1&&n[0]===Node.ELEMENT_NODE?this.element=n[0]:(this.element=document.createElement("div"),this.element.append(...n)),this.element}destroy(){this.ref.rootNodes[0]!==1&&(this.element?.parentNode.removeChild(this.element),this.element=null),this.args.vcr||this.args.appRef.detachView(this.ref),this.ref.destroy(),this.ref=null}updateContext(n){return Object.assign(this.ref.context,n),this}},AS=class{constructor(n){this.value=n}getElement(){return this.value}detectChanges(){return this}updateContext(){return this}destroy(){}},uie=new T("Component context"),OS=(()=>{let n=class n{constructor(){this.injector=u(de),this.appRef=u(Gn),this.environmentInjector=u(Wt)}createComponent(i,r={}){let o=r.injector??this.injector,a;return r.context&&(a=he(r.context),o=de.create({providers:[{provide:uie,useValue:a.asReadonly()}],parent:o})),new TS({component:i,vcr:r.vcr,injector:o,appRef:this.appRef,environmentInjector:r.environmentInjector||this.environmentInjector,contextSignal:a})}createTemplate(i,r={}){return new IS({vcr:r.vcr,appRef:this.appRef,tpl:i,context:r.context,injector:r.injector})}createView(i,r={}){if(Ig(i))return this.createTemplate(i,r);if(gu(i))return this.createComponent(i,r);if(q3(i))return new AS(i);throw"Type of content is not supported"}};n.\u0275fac=function(r){return new(r||n)},n.\u0275prov=O({token:n,factory:n.\u0275fac,providedIn:"root"});let t=n;return t})();var mie=(()=>{let n=class n{constructor(){this.content=ne()}};n.\u0275fac=function(r){return new(r||n)},n.\u0275cmp=E({type:n,selectors:[["dynamic-view"]],inputs:{content:[1,"content"]},decls:1,vars:1,consts:[[3,"innerHTML"]],template:function(r,o){r&1&&ai(0,"div",0),r&2&&si("innerHTML",o.content(),Zp)},encapsulation:2});let t=n;return t})(),Cx=(()=>{let n=class n{constructor(){this.view=ne(void 0,{alias:"dynamicView"}),this.injector=ne(void 0,{alias:"dynamicViewInjector"}),this.context=ne(void 0,{alias:"dynamicViewContext"}),this.inputs=ne(void 0,{alias:"dynamicViewInputs"}),this.defaultTpl=u(te),this.vcr=u(nt),this.viewService=u(OS)}ngOnInit(){this.resolveContentType()}ngOnChanges(i){let r=i.view&&!i.view.isFirstChange(),o=i.context&&!i.context.isFirstChange(),a=i.inputs&&!i.inputs.isFirstChange();r?this.resolveContentType():o?this.viewRef.updateContext(this.context()):gu(this.view())&&a&&this.viewRef.setInputs(this.inputs()||{})}resolveContentType(){this.viewRef?.destroy();let i=this.view(),r=this.injector(),o=this.context();if(q3(i))(this.viewRef=this.viewService.createComponent(mie,{vcr:this.vcr,injector:r})).setInput("content",i).detectChanges();else if(gu(i)){this.viewRef=this.viewService.createComponent(i,{vcr:this.vcr,injector:r??this.vcr.injector,context:o});let a=this.inputs();a&&this.viewRef.setInputs(a)}else this.viewRef=this.viewService.createView(i||this.defaultTpl,{vcr:this.vcr,injector:r??this.vcr.injector,context:o})}ngOnDestroy(){this.viewRef?.destroy()}};n.\u0275fac=function(r){return new(r||n)},n.\u0275dir=F({type:n,selectors:[["","dynamicView",""]],inputs:{view:[1,"dynamicView","view"],injector:[1,"dynamicViewInjector","injector"],context:[1,"dynamicViewContext","context"],inputs:[1,"dynamicViewInputs","inputs"]},features:[Ae]});let t=n;return t})();function hie(t,n){if(t&1&&(_(0,` `),k(1,"hot-toast-loader",1),_(2,` - `)),t&2){let e=C(2);g(),y("theme",e.theme)}}function hie(t,n){if(t&1&&(_(0,` + `)),t&2){let e=C(2);g(),y("theme",e.theme)}}function pie(t,n){if(t&1&&(_(0,` `),h(1,"div"),_(2,` `),k(3,"hot-toast-error",1),_(4,` `),p(),_(5,` - `)),t&2){let e=C(3);g(3),y("theme",e.theme)}}function pie(t,n){if(t&1&&(_(0,` + `)),t&2){let e=C(3);g(3),y("theme",e.theme)}}function fie(t,n){if(t&1&&(_(0,` `),h(1,"div"),_(2,` `),k(3,"hot-toast-checkmark",1),_(4,` `),p(),_(5,` - `)),t&2){let e=C(3);g(3),y("theme",e.theme)}}function fie(t,n){if(t&1&&(_(0,` + `)),t&2){let e=C(3);g(3),y("theme",e.theme)}}function gie(t,n){if(t&1&&(_(0,` `),h(1,"div"),_(2,` `),k(3,"hot-toast-warning",1),_(4,` `),p(),_(5,` - `)),t&2){let e=C(3);g(3),y("theme",e.theme)}}function gie(t,n){if(t&1&&(_(0,` + `)),t&2){let e=C(3);g(3),y("theme",e.theme)}}function _ie(t,n){if(t&1&&(_(0,` `),h(1,"div"),_(2,` `),k(3,"hot-toast-info",1),_(4,` `),p(),_(5,` - `)),t&2){let e=C(3);g(3),y("theme",e.theme)}}function _ie(t,n){if(t&1&&(_(0,` + `)),t&2){let e=C(3);g(3),y("theme",e.theme)}}function bie(t,n){if(t&1&&(_(0,` `),h(1,"div",2),_(2,` `),h(3,"div"),_(4,` - `),N(5,hie,6,1)(6,pie,6,1)(7,fie,6,1)(8,gie,6,1),_(9,` + `),N(5,pie,6,1)(6,fie,6,1)(7,gie,6,1)(8,_ie,6,1),_(9,` `),p(),_(10,` `),p(),_(11,` - `)),t&2){let e,i=C(2);g(5),L((e=i.type)==="error"?5:e==="success"?6:e==="warning"?7:e==="info"?8:-1)}}function bie(t,n){if(t&1&&(_(0,` + `)),t&2){let e,i=C(2);g(5),L((e=i.type)==="error"?5:e==="success"?6:e==="warning"?7:e==="info"?8:-1)}}function vie(t,n){if(t&1&&(_(0,` `),h(1,"div",0),_(2,` - `),N(3,mie,3,1),N(4,_ie,12,1),p(),_(5,` -`)),t&2){let e=C();g(3),L(e.type==="loading"?3:-1),g(),L(e.type!=="loading"?4:-1)}}function vie(t,n){t&1&&Ge(0)}var K3=["hotToastBarBase"];function yie(t,n){if(t&1&&(_(0,` + `),N(3,hie,3,1),N(4,bie,12,1),p(),_(5,` +`)),t&2){let e=C();g(3),L(e.type==="loading"?3:-1),g(),L(e.type!=="loading"?4:-1)}}function yie(t,n){t&1&&Ge(0)}var Z3=["hotToastBarBase"];function xie(t,n){if(t&1&&(_(0,` `),h(1,"hot-toast-animated-icon",7),_(2),p(),_(3,` - `)),t&2){let e=C(2);g(),y("iconTheme",e.toast.iconTheme),g(),H(e.toast.icon)}}function xie(t,n){t&1&&Ge(0)}function Cie(t,n){if(t&1&&(_(0,` + `)),t&2){let e=C(2);g(),y("iconTheme",e.toast.iconTheme),g(),H(e.toast.icon)}}function Cie(t,n){t&1&&Ge(0)}function wie(t,n){if(t&1&&(_(0,` `),h(1,"div"),_(2,` - `),R(3,xie,1,0,"ng-container",8),_(4,` + `),R(3,Cie,1,0,"ng-container",8),_(4,` `),p(),_(5,` - `)),t&2){let e=C(2);g(3),y("dynamicView",e.toast.icon)}}function wie(t,n){if(t&1&&(_(0," "),N(1,yie,4,2)(2,Cie,6,1)),t&2){let e=C();g(),L(e.isIconString?1:2)}}function Die(t,n){if(t&1&&(_(0,` + `)),t&2){let e=C(2);g(3),y("dynamicView",e.toast.icon)}}function Die(t,n){if(t&1&&(_(0," "),N(1,xie,4,2)(2,wie,6,1)),t&2){let e=C();g(),L(e.isIconString?1:2)}}function Eie(t,n){if(t&1&&(_(0,` `),k(1,"hot-toast-indicator",9),_(2,` - `)),t&2){let e=C();g(),y("theme",e.toast.iconTheme)("type",e.toast.type)}}function Eie(t,n){t&1&&Ge(0)}function Mie(t,n){if(t&1){let e=Y();_(0,` + `)),t&2){let e=C();g(),y("theme",e.toast.iconTheme)("type",e.toast.type)}}function Mie(t,n){t&1&&Ge(0)}function kie(t,n){if(t&1){let e=Y();_(0,` `),h(1,"button",10),S("click",function(){I(e);let r=C();return A(r.close())}),p(),_(2,` - `)}if(t&2){let e=C();g(),Js(e.toast.closeStyle)}}var kie=(t,n)=>n.id;function Sie(t,n){if(t&1&&(_(0,` + `)}if(t&2){let e=C();g(),Js(e.toast.closeStyle)}}var Sie=(t,n)=>n.id;function Tie(t,n){if(t&1&&(_(0,` `),k(1,"hot-toast-animated-icon",7),_(2,` - `)),t&2){let e=C(2);g(),y("iconTheme",e.toast.iconTheme)("icon",e.toast.icon)}}function Tie(t,n){t&1&&Ge(0)}function Iie(t,n){if(t&1&&(_(0,` + `)),t&2){let e=C(2);g(),y("iconTheme",e.toast.iconTheme)("icon",e.toast.icon)}}function Iie(t,n){t&1&&Ge(0)}function Aie(t,n){if(t&1&&(_(0,` `),h(1,"div"),_(2,` - `),R(3,Tie,1,0,"ng-container",8),_(4,` + `),R(3,Iie,1,0,"ng-container",8),_(4,` `),p(),_(5,` - `)),t&2){let e=C(2);g(3),y("dynamicView",e.toast.icon)}}function Aie(t,n){if(t&1&&(_(0," "),N(1,Sie,3,2)(2,Iie,6,1)),t&2){let e=C();g(),L(e.isIconString?1:2)}}function Oie(t,n){if(t&1&&(_(0,` + `)),t&2){let e=C(2);g(3),y("dynamicView",e.toast.icon)}}function Oie(t,n){if(t&1&&(_(0," "),N(1,Tie,3,2)(2,Aie,6,1)),t&2){let e=C();g(),L(e.isIconString?1:2)}}function Rie(t,n){if(t&1&&(_(0,` `),k(1,"hot-toast-indicator",9),_(2,` - `)),t&2){let e=C();g(),y("theme",e.toast.iconTheme)("type",e.toast.type)}}function Rie(t,n){t&1&&Ge(0)}function Pie(t,n){if(t&1){let e=Y();_(0,` + `)),t&2){let e=C();g(),y("theme",e.toast.iconTheme)("type",e.toast.type)}}function Pie(t,n){t&1&&Ge(0)}function Fie(t,n){if(t&1){let e=Y();_(0,` `),h(1,"button",10),S("click",function(){I(e);let r=C();return A(r.toggleToastGroup())}),p(),_(2,` - `)}if(t&2){let e=C();g(),Js(e.toast.group.btnStyle),G("expanded",e.isExpanded),X("aria-label",e.isExpanded?"Collapse":"Expand")}}function Fie(t,n){if(t&1){let e=Y();_(0,` + `)}if(t&2){let e=C();g(),Js(e.toast.group.btnStyle),G("expanded",e.isExpanded),X("aria-label",e.isExpanded?"Collapse":"Expand")}}function Nie(t,n){if(t&1){let e=Y();_(0,` `),h(1,"button",11),S("click",function(){I(e);let r=C();return A(r.close())}),p(),_(2,` - `)}if(t&2){let e=C();g(),Js(e.toast.closeStyle)}}function Nie(t,n){if(t&1){let e=Y();_(0,` + `)}if(t&2){let e=C();g(),Js(e.toast.closeStyle)}}function Lie(t,n){if(t&1){let e=Y();_(0,` `),h(1,"hot-toast-group-item",13),S("height",function(r){let o=I(e).$implicit,a=C(2);return A(a.updateHeight(r,o))})("beforeClosed",function(){let r=I(e).$implicit,o=C(2);return A(o.beforeClosedGroupItem(r))})("afterClosed",function(r){I(e);let o=C(2);return A(o.afterClosedGroupItem(r))}),p(),_(2,` - `)}if(t&2){let e=n.$implicit,i=n.$index,r=C(2);g(),y("toast",e)("offset",r.calculateOffset(e.id))("toastRef",r.toastRef.groupRefs[i])("toastsAfter",(e.autoClose?r.groupChildrenToasts.length:r.visibleToasts.length)-1-i)("defaultConfig",r.defaultConfig)("isShowingAllToasts",r.isShowingAllToasts)}}function Lie(t,n){if(t&1&&(_(0,` + `)}if(t&2){let e=n.$implicit,i=n.$index,r=C(2);g(),y("toast",e)("offset",r.calculateOffset(e.id))("toastRef",r.toastRef.groupRefs[i])("toastsAfter",(e.autoClose?r.groupChildrenToasts.length:r.visibleToasts.length)-1-i)("defaultConfig",r.defaultConfig)("isShowingAllToasts",r.isShowingAllToasts)}}function Vie(t,n){if(t&1&&(_(0,` `),h(1,"div",12),_(2,` - `),xt(3,Nie,3,6,null,null,kie),p(),_(5,` - `)),t&2){let e=C();g(),it(e.toast.group==null?null:e.toast.group.className),Dt("--hot-toast-group-height",e.groupHeight+"px"),g(2),Ct(e.groupChildrenToasts)}}function Vie(t,n){t&1&&_(0,` - `)}function Bie(t,n){if(t&1){let e=Y();_(0,` + `),xt(3,Lie,3,6,null,null,Sie),p(),_(5,` + `)),t&2){let e=C();g(),it(e.toast.group==null?null:e.toast.group.className),Dt("--hot-toast-group-height",e.groupHeight+"px"),g(2),Ct(e.groupChildrenToasts)}}function Bie(t,n){t&1&&_(0,` + `)}function jie(t,n){if(t&1){let e=Y();_(0,` `),h(1,"hot-toast",2),S("showAllToasts",function(r){I(e);let o=C(2);return A(o.showAllToasts(r))})("height",function(r){I(e);let o=C().$implicit,a=C();return A(a.updateHeight(r,o))})("beforeClosed",function(){I(e);let r=C().$implicit,o=C();return A(o.beforeClosed(r))})("afterClosed",function(r){I(e);let o=C(2);return A(o.afterClosed(r))})("toggleGroup",function(r){I(e);let o=C(2);return A(o.toggleGroup(r))}),p(),_(2,` - `)}if(t&2){let e=C(),i=e.$implicit,r=e.$index,o=C();g(),y("toast",i)("offset",o.calculateOffset(i.id,i.position))("toastRef",o.toastRefs[r])("toastsAfter",(i.autoClose?o.toasts.length:o.getVisibleToasts(i.position).length)-1-r)("defaultConfig",o.defaultConfig)("isShowingAllToasts",o.isShowingAllToasts)}}function jie(t,n){if(t&1&&(_(0,` - `),N(1,Vie,1,0)(2,Bie,3,6)),t&2){let e=n.$implicit;g(),L(e.group!=null&&e.group.parent?1:2)}}var q3={blank:4e3,error:4e3,success:4e3,loading:3e4,warning:4e3,info:4e3},Sh=800,wx=350,Hie=8,PS=.05,zie=1,Ag=class{constructor(n){this.toast=n,this.groupRefs=[],this.groupExpanded=!1,this._onClosed=new z,this._onGroupToggle=new z}set data(n){this.toast.data=n}get data(){return this.toast.data}set dispose(n){this._dispose=n}getToast(){return this.toast}appendTo(n,e){let{dispose:i,updateMessage:r,updateToast:o,afterClosed:a,afterGroupToggled:s,afterGroupRefsAttached:l}=n.addToast(this,e);return this.dispose=i,this.updateMessage=r,this.updateToast=o,this.afterClosed=Wu(this._onClosed.asObservable(),a),this.afterGroupToggled=Wu(this._onGroupToggle.asObservable(),s),this.afterGroupRefsAttached=l,this}close(n={dismissedByAction:!1}){this.groupRefs.forEach(e=>e.close()),this._dispose(),this._onClosed.next({dismissedByAction:n.dismissedByAction,id:this.toast.id}),this._onClosed.complete()}toggleGroup(n={byAction:!1}){this.groupExpanded=!this.groupExpanded,this._onGroupToggle.next({byAction:n.byAction,id:this.toast.id,event:this.groupExpanded?"expand":"collapse"})}show(){this.toast.visible=!0}},Dx=(t,n,e)=>{t.setStyle(n,"animation",e)},Uie=(()=>{let n=class n{};n.\u0275fac=function(r){return new(r||n)},n.\u0275cmp=E({type:n,selectors:[["hot-toast-loader"]],inputs:{theme:"theme"},decls:2,vars:4,consts:[[1,"hot-toast-loader-icon"]],template:function(r,o){r&1&&(ai(0,"div",0),_(1,` -`)),r&2&&Dt("border-color",o.theme==null?null:o.theme.primary)("border-right-color",o.theme==null?null:o.theme.secondary)},encapsulation:2,changeDetection:0});let t=n;return t})(),$ie=(()=>{let n=class n{};n.\u0275fac=function(r){return new(r||n)},n.\u0275cmp=E({type:n,selectors:[["hot-toast-error"]],inputs:{theme:"theme"},decls:2,vars:4,consts:[[1,"hot-toast-error-icon"]],template:function(r,o){r&1&&(ai(0,"div",0),_(1,` -`)),r&2&&Dt("--error-primary",o.theme==null?null:o.theme.primary)("--error-secondary",o.theme==null?null:o.theme.secondary)},encapsulation:2,changeDetection:0});let t=n;return t})(),Wie=(()=>{let n=class n{};n.\u0275fac=function(r){return new(r||n)},n.\u0275cmp=E({type:n,selectors:[["hot-toast-checkmark"]],inputs:{theme:"theme"},decls:2,vars:4,consts:[[1,"hot-toast-checkmark-icon"]],template:function(r,o){r&1&&(ai(0,"div",0),_(1,` -`)),r&2&&Dt("--check-primary",o.theme==null?null:o.theme.primary)("--check-secondary",o.theme==null?null:o.theme.secondary)},encapsulation:2,changeDetection:0});let t=n;return t})(),Gie=(()=>{let n=class n{};n.\u0275fac=function(r){return new(r||n)},n.\u0275cmp=E({type:n,selectors:[["hot-toast-warning"]],inputs:{theme:"theme"},decls:2,vars:4,consts:[[1,"hot-toast-warning-icon"]],template:function(r,o){r&1&&(ai(0,"div",0),_(1,` -`)),r&2&&Dt("--warn-primary",o.theme==null?null:o.theme.primary)("--warn-secondary",o.theme==null?null:o.theme.secondary)},encapsulation:2,changeDetection:0});let t=n;return t})(),qie=(()=>{let n=class n{};n.\u0275fac=function(r){return new(r||n)},n.\u0275cmp=E({type:n,selectors:[["hot-toast-info"]],inputs:{theme:"theme"},decls:2,vars:4,consts:[[1,"hot-toast-info-icon"]],template:function(r,o){r&1&&(ai(0,"div",0),_(1,` -`)),r&2&&Dt("--info-primary",o.theme==null?null:o.theme.primary)("--info-secondary",o.theme==null?null:o.theme.secondary)},encapsulation:2,changeDetection:0});let t=n;return t})(),Z3=(()=>{let n=class n{};n.\u0275fac=function(r){return new(r||n)},n.\u0275cmp=E({type:n,selectors:[["hot-toast-indicator"]],inputs:{theme:"theme",type:"type"},decls:1,vars:1,consts:[[1,"hot-toast-indicator-wrapper"],[3,"theme"],[1,"hot-toast-status-wrapper"]],template:function(r,o){r&1&&N(0,bie,6,2),r&2&&L(o.type!=="blank"?0:-1)},dependencies:[Uie,$ie,Wie,Gie,qie],encapsulation:2,changeDetection:0});let t=n;return t})(),X3=(()=>{let n=class n{};n.\u0275fac=function(r){return new(r||n)},n.\u0275cmp=E({type:n,selectors:[["hot-toast-animated-icon"]],inputs:{iconTheme:"iconTheme",icon:"icon"},decls:5,vars:3,consts:[[1,"hot-toast-animated-icon"],[4,"dynamicView"]],template:function(r,o){r&1&&(h(0,"div",0),_(1,` - `),R(2,vie,1,0,"ng-container",1),_(3,` + `)}if(t&2){let e=C(),i=e.$implicit,r=e.$index,o=C();g(),y("toast",i)("offset",o.calculateOffset(i.id,i.position))("toastRef",o.toastRefs[r])("toastsAfter",(i.autoClose?o.toasts.length:o.getVisibleToasts(i.position).length)-1-r)("defaultConfig",o.defaultConfig)("isShowingAllToasts",o.isShowingAllToasts)}}function Hie(t,n){if(t&1&&(_(0,` + `),N(1,Bie,1,0)(2,jie,3,6)),t&2){let e=n.$implicit;g(),L(e.group!=null&&e.group.parent?1:2)}}var Y3={blank:4e3,error:4e3,success:4e3,loading:3e4,warning:4e3,info:4e3},Sh=800,wx=350,zie=8,PS=.05,Uie=1,Ag=class{constructor(n){this.toast=n,this.groupRefs=[],this.groupExpanded=!1,this._onClosed=new z,this._onGroupToggle=new z}set data(n){this.toast.data=n}get data(){return this.toast.data}set dispose(n){this._dispose=n}getToast(){return this.toast}appendTo(n,e){let{dispose:i,updateMessage:r,updateToast:o,afterClosed:a,afterGroupToggled:s,afterGroupRefsAttached:l}=n.addToast(this,e);return this.dispose=i,this.updateMessage=r,this.updateToast=o,this.afterClosed=Wu(this._onClosed.asObservable(),a),this.afterGroupToggled=Wu(this._onGroupToggle.asObservable(),s),this.afterGroupRefsAttached=l,this}close(n={dismissedByAction:!1}){this.groupRefs.forEach(e=>e.close()),this._dispose(),this._onClosed.next({dismissedByAction:n.dismissedByAction,id:this.toast.id}),this._onClosed.complete()}toggleGroup(n={byAction:!1}){this.groupExpanded=!this.groupExpanded,this._onGroupToggle.next({byAction:n.byAction,id:this.toast.id,event:this.groupExpanded?"expand":"collapse"})}show(){this.toast.visible=!0}},Dx=(t,n,e)=>{t.setStyle(n,"animation",e)},$ie=(()=>{let n=class n{};n.\u0275fac=function(r){return new(r||n)},n.\u0275cmp=E({type:n,selectors:[["hot-toast-loader"]],inputs:{theme:"theme"},decls:2,vars:4,consts:[[1,"hot-toast-loader-icon"]],template:function(r,o){r&1&&(ai(0,"div",0),_(1,` +`)),r&2&&Dt("border-color",o.theme==null?null:o.theme.primary)("border-right-color",o.theme==null?null:o.theme.secondary)},encapsulation:2,changeDetection:0});let t=n;return t})(),Wie=(()=>{let n=class n{};n.\u0275fac=function(r){return new(r||n)},n.\u0275cmp=E({type:n,selectors:[["hot-toast-error"]],inputs:{theme:"theme"},decls:2,vars:4,consts:[[1,"hot-toast-error-icon"]],template:function(r,o){r&1&&(ai(0,"div",0),_(1,` +`)),r&2&&Dt("--error-primary",o.theme==null?null:o.theme.primary)("--error-secondary",o.theme==null?null:o.theme.secondary)},encapsulation:2,changeDetection:0});let t=n;return t})(),Gie=(()=>{let n=class n{};n.\u0275fac=function(r){return new(r||n)},n.\u0275cmp=E({type:n,selectors:[["hot-toast-checkmark"]],inputs:{theme:"theme"},decls:2,vars:4,consts:[[1,"hot-toast-checkmark-icon"]],template:function(r,o){r&1&&(ai(0,"div",0),_(1,` +`)),r&2&&Dt("--check-primary",o.theme==null?null:o.theme.primary)("--check-secondary",o.theme==null?null:o.theme.secondary)},encapsulation:2,changeDetection:0});let t=n;return t})(),qie=(()=>{let n=class n{};n.\u0275fac=function(r){return new(r||n)},n.\u0275cmp=E({type:n,selectors:[["hot-toast-warning"]],inputs:{theme:"theme"},decls:2,vars:4,consts:[[1,"hot-toast-warning-icon"]],template:function(r,o){r&1&&(ai(0,"div",0),_(1,` +`)),r&2&&Dt("--warn-primary",o.theme==null?null:o.theme.primary)("--warn-secondary",o.theme==null?null:o.theme.secondary)},encapsulation:2,changeDetection:0});let t=n;return t})(),Yie=(()=>{let n=class n{};n.\u0275fac=function(r){return new(r||n)},n.\u0275cmp=E({type:n,selectors:[["hot-toast-info"]],inputs:{theme:"theme"},decls:2,vars:4,consts:[[1,"hot-toast-info-icon"]],template:function(r,o){r&1&&(ai(0,"div",0),_(1,` +`)),r&2&&Dt("--info-primary",o.theme==null?null:o.theme.primary)("--info-secondary",o.theme==null?null:o.theme.secondary)},encapsulation:2,changeDetection:0});let t=n;return t})(),X3=(()=>{let n=class n{};n.\u0275fac=function(r){return new(r||n)},n.\u0275cmp=E({type:n,selectors:[["hot-toast-indicator"]],inputs:{theme:"theme",type:"type"},decls:1,vars:1,consts:[[1,"hot-toast-indicator-wrapper"],[3,"theme"],[1,"hot-toast-status-wrapper"]],template:function(r,o){r&1&&N(0,vie,6,2),r&2&&L(o.type!=="blank"?0:-1)},dependencies:[$ie,Wie,Gie,qie,Yie],encapsulation:2,changeDetection:0});let t=n;return t})(),J3=(()=>{let n=class n{};n.\u0275fac=function(r){return new(r||n)},n.\u0275cmp=E({type:n,selectors:[["hot-toast-animated-icon"]],inputs:{iconTheme:"iconTheme",icon:"icon"},decls:5,vars:3,consts:[[1,"hot-toast-animated-icon"],[4,"dynamicView"]],template:function(r,o){r&1&&(h(0,"div",0),_(1,` + `),R(2,yie,1,0,"ng-container",1),_(3,` `),p(),_(4,` -`)),r&2&&(Dt("color",o.iconTheme==null?null:o.iconTheme.primary),g(2),y("dynamicView",o.icon))},dependencies:[Cx],encapsulation:2,changeDetection:0});let t=n;return t})(),Yie=(()=>{let n=class n{constructor(){this.offset=0,this._toastsAfter=0,this.isShowingAllToasts=!1,this.height=new U,this.beforeClosed=new U,this.afterClosed=new U,this.showAllToasts=new U,this.toggleGroup=new U,this.isManualClose=!1,this.toastBarBaseStylesSignal=he({}),this.unlisteners=[],this.softClosed=!1,this.injector=u(de),this.renderer=u(je),this.ngZone=u(ae),this.cdr=u(ye)}set toast(i){this._toast=i;let r=this.toastBarBaseStylesSignal(),o=M({},i.style);if(r.animation?.includes("hotToastExitAnimation"))o.animation=r.animation;else{let s=`hotToastEnterAnimation${i.position.includes("top")?"Negative":"Positive"} ${wx}ms cubic-bezier(0.21, 1.02, 0.73, 1) forwards`;o.animation=s}this.toastBarBaseStylesSignal.set(o)}get toast(){return this._toast}get toastsAfter(){return this._toastsAfter}set toastsAfter(i){this._toastsAfter=i}get toastBarBaseHeight(){return this.toastBarBase.nativeElement.offsetHeight}get scale(){return this.defaultConfig.stacking!=="vertical"&&!this.isShowingAllToasts?this.toastsAfter*-PS+1:1}get translateY(){return this.offset*(this.top?1:-1)+"px"}get exitAnimationDelay(){return this.toast.duration+"ms"}get top(){return this.toast.position.includes("top")}get containerPositionStyle(){let i=this.top?{top:0}:{bottom:0},r="translateY(var(--hot-toast-translate-y)) scale(var(--hot-toast-scale))",o=this.toast.position.includes("left")?{left:0}:this.toast.position.includes("right")?{right:0}:{left:0,right:0,justifyContent:"center"};return M(M({transform:r},i),o)}get isIconString(){return typeof this.toast.icon=="string"}get groupChildrenToastRefs(){return this.toastRef.groupRefs.filter(i=>!!i)}set groupChildrenToastRefs(i){this.toastRef.groupRefs=i}get groupChildrenToasts(){return this.groupChildrenToastRefs.map(i=>i.getToast())}get groupHeight(){return this.visibleToasts.map(i=>i.height).reduce((i,r)=>i+r,0)}get isExpanded(){return this.toastRef.groupExpanded}ngOnChanges(i){i.toast&&!i.toast.firstChange&&i.toast.currentValue?.message&&requestAnimationFrame(()=>{this.height.emit(this.toastBarBase.nativeElement.offsetHeight)})}ngOnInit(){Ig(this.toast.message)&&(this.context={$implicit:this.toastRef}),gu(this.toast.message)&&(this.toastComponentInjector=de.create({providers:[{provide:Ag,useValue:this.toastRef}],parent:this.toast.injector||this.injector}));let i=this.toastBarBase.nativeElement;this.ngZone.runOutsideAngular(()=>{this.unlisteners.push(this.renderer.listen(i,"animationstart",r=>{this.isExitAnimation(r)&&this.ngZone.run(()=>{this.renderer.setStyle(i,"pointer-events","none"),this.renderer.setStyle(i.parentElement,"pointer-events","none"),this.beforeClosed.emit()})}),this.renderer.listen(i,"animationend",r=>{this.isEnterAnimation(r)&&this.ngZone.run(()=>{if(this.toast.autoClose){let o=`hotToastExitAnimation${this.top?"Negative":"Positive"} ${Sh}ms forwards cubic-bezier(0.06, 0.71, 0.55, 1) var(--hot-toast-exit-animation-delay) var(--hot-toast-exit-animation-state)`;this.toastBarBaseStylesSignal.set(De(M({},this.toast.style),{animation:o}))}}),this.isExitAnimation(r)&&this.ngZone.run(()=>this.afterClosed.emit({dismissedByAction:this.isManualClose,id:this.toast.id}))}))})}ngAfterViewInit(){let i=this.toastBarBase.nativeElement;requestAnimationFrame(()=>{this.height.emit(i.offsetHeight)}),this.setToastAttributes()}softClose(){let i=`hotToastExitSoftAnimation${this.top?"Negative":"Positive"} ${Sh}ms forwards cubic-bezier(0.06, 0.71, 0.55, 1)`,r=this.toastBarBase.nativeElement;Dx(this.renderer,r,i),this.softClosed=!0}softOpen(){let i=`hotToastEnterSoftAnimation${top?"Negative":"Positive"} ${wx}ms cubic-bezier(0.21, 1.02, 0.73, 1) forwards`,r=this.toastBarBase.nativeElement;Dx(this.renderer,r,i),this.softClosed=!1}close(){this.isManualClose=!0,this.cdr.markForCheck();let i=`hotToastExitAnimation${this.top?"Negative":"Positive"} ${Sh}ms forwards cubic-bezier(0.06, 0.71, 0.55, 1)`;this.toastBarBaseStylesSignal.set(De(M({},this.toast.style),{animation:i}))}handleMouseEnter(){this.showAllToasts.emit(!0)}handleMouseLeave(){this.showAllToasts.emit(!1)}ngOnDestroy(){for(this.close();this.unlisteners.length;)this.unlisteners.pop()()}isExitAnimation(i){return i.animationName.includes("hotToastExitAnimation")}isEnterAnimation(i){return i.animationName.includes("hotToastEnterAnimation")}setToastAttributes(){let i=this.toast.attributes;for(let[r,o]of Object.entries(i))this.renderer.setAttribute(this.toastBarBase.nativeElement,r,o)}get visibleToasts(){return this.groupChildrenToasts.filter(i=>i.visible)}};n.\u0275fac=function(r){return new(r||n)},n.\u0275cmp=E({type:n,selectors:[["hot-toast-group-item"]],viewQuery:function(r,o){if(r&1&&ie(K3,7),r&2){let a;B(a=j())&&(o.toastBarBase=a.first)}},inputs:{toast:"toast",offset:"offset",defaultConfig:"defaultConfig",toastRef:"toastRef",toastsAfter:"toastsAfter",isShowingAllToasts:"isShowingAllToasts"},outputs:{height:"height",beforeClosed:"beforeClosed",afterClosed:"afterClosed",showAllToasts:"showAllToasts",toggleGroup:"toggleGroup"},features:[Ae],decls:21,vars:25,consts:[["hotToastBarBase",""],[1,"hot-toast-bar-base-container"],[1,"hot-toast-bar-base-wrapper",3,"mouseenter","mouseleave"],[1,"hot-toast-bar-base"],["aria-hidden","true",1,"hot-toast-icon"],[1,"hot-toast-message"],[4,"dynamicView","dynamicViewContext","dynamicViewInjector"],[3,"iconTheme"],[4,"dynamicView"],[3,"theme","type"],["type","button","aria-label","Close",1,"hot-toast-close-btn",3,"click"]],template:function(r,o){if(r&1){let a=Y();h(0,"div",1),_(1,` +`)),r&2&&(Dt("color",o.iconTheme==null?null:o.iconTheme.primary),g(2),y("dynamicView",o.icon))},dependencies:[Cx],encapsulation:2,changeDetection:0});let t=n;return t})(),Qie=(()=>{let n=class n{constructor(){this.offset=0,this._toastsAfter=0,this.isShowingAllToasts=!1,this.height=new U,this.beforeClosed=new U,this.afterClosed=new U,this.showAllToasts=new U,this.toggleGroup=new U,this.isManualClose=!1,this.toastBarBaseStylesSignal=he({}),this.unlisteners=[],this.softClosed=!1,this.injector=u(de),this.renderer=u(je),this.ngZone=u(ae),this.cdr=u(ye)}set toast(i){this._toast=i;let r=this.toastBarBaseStylesSignal(),o=M({},i.style);if(r.animation?.includes("hotToastExitAnimation"))o.animation=r.animation;else{let s=`hotToastEnterAnimation${i.position.includes("top")?"Negative":"Positive"} ${wx}ms cubic-bezier(0.21, 1.02, 0.73, 1) forwards`;o.animation=s}this.toastBarBaseStylesSignal.set(o)}get toast(){return this._toast}get toastsAfter(){return this._toastsAfter}set toastsAfter(i){this._toastsAfter=i}get toastBarBaseHeight(){return this.toastBarBase.nativeElement.offsetHeight}get scale(){return this.defaultConfig.stacking!=="vertical"&&!this.isShowingAllToasts?this.toastsAfter*-PS+1:1}get translateY(){return this.offset*(this.top?1:-1)+"px"}get exitAnimationDelay(){return this.toast.duration+"ms"}get top(){return this.toast.position.includes("top")}get containerPositionStyle(){let i=this.top?{top:0}:{bottom:0},r="translateY(var(--hot-toast-translate-y)) scale(var(--hot-toast-scale))",o=this.toast.position.includes("left")?{left:0}:this.toast.position.includes("right")?{right:0}:{left:0,right:0,justifyContent:"center"};return M(M({transform:r},i),o)}get isIconString(){return typeof this.toast.icon=="string"}get groupChildrenToastRefs(){return this.toastRef.groupRefs.filter(i=>!!i)}set groupChildrenToastRefs(i){this.toastRef.groupRefs=i}get groupChildrenToasts(){return this.groupChildrenToastRefs.map(i=>i.getToast())}get groupHeight(){return this.visibleToasts.map(i=>i.height).reduce((i,r)=>i+r,0)}get isExpanded(){return this.toastRef.groupExpanded}ngOnChanges(i){i.toast&&!i.toast.firstChange&&i.toast.currentValue?.message&&requestAnimationFrame(()=>{this.height.emit(this.toastBarBase.nativeElement.offsetHeight)})}ngOnInit(){Ig(this.toast.message)&&(this.context={$implicit:this.toastRef}),gu(this.toast.message)&&(this.toastComponentInjector=de.create({providers:[{provide:Ag,useValue:this.toastRef}],parent:this.toast.injector||this.injector}));let i=this.toastBarBase.nativeElement;this.ngZone.runOutsideAngular(()=>{this.unlisteners.push(this.renderer.listen(i,"animationstart",r=>{this.isExitAnimation(r)&&this.ngZone.run(()=>{this.renderer.setStyle(i,"pointer-events","none"),this.renderer.setStyle(i.parentElement,"pointer-events","none"),this.beforeClosed.emit()})}),this.renderer.listen(i,"animationend",r=>{this.isEnterAnimation(r)&&this.ngZone.run(()=>{if(this.toast.autoClose){let o=`hotToastExitAnimation${this.top?"Negative":"Positive"} ${Sh}ms forwards cubic-bezier(0.06, 0.71, 0.55, 1) var(--hot-toast-exit-animation-delay) var(--hot-toast-exit-animation-state)`;this.toastBarBaseStylesSignal.set(De(M({},this.toast.style),{animation:o}))}}),this.isExitAnimation(r)&&this.ngZone.run(()=>this.afterClosed.emit({dismissedByAction:this.isManualClose,id:this.toast.id}))}))})}ngAfterViewInit(){let i=this.toastBarBase.nativeElement;requestAnimationFrame(()=>{this.height.emit(i.offsetHeight)}),this.setToastAttributes()}softClose(){let i=`hotToastExitSoftAnimation${this.top?"Negative":"Positive"} ${Sh}ms forwards cubic-bezier(0.06, 0.71, 0.55, 1)`,r=this.toastBarBase.nativeElement;Dx(this.renderer,r,i),this.softClosed=!0}softOpen(){let i=`hotToastEnterSoftAnimation${top?"Negative":"Positive"} ${wx}ms cubic-bezier(0.21, 1.02, 0.73, 1) forwards`,r=this.toastBarBase.nativeElement;Dx(this.renderer,r,i),this.softClosed=!1}close(){this.isManualClose=!0,this.cdr.markForCheck();let i=`hotToastExitAnimation${this.top?"Negative":"Positive"} ${Sh}ms forwards cubic-bezier(0.06, 0.71, 0.55, 1)`;this.toastBarBaseStylesSignal.set(De(M({},this.toast.style),{animation:i}))}handleMouseEnter(){this.showAllToasts.emit(!0)}handleMouseLeave(){this.showAllToasts.emit(!1)}ngOnDestroy(){for(this.close();this.unlisteners.length;)this.unlisteners.pop()()}isExitAnimation(i){return i.animationName.includes("hotToastExitAnimation")}isEnterAnimation(i){return i.animationName.includes("hotToastEnterAnimation")}setToastAttributes(){let i=this.toast.attributes;for(let[r,o]of Object.entries(i))this.renderer.setAttribute(this.toastBarBase.nativeElement,r,o)}get visibleToasts(){return this.groupChildrenToasts.filter(i=>i.visible)}};n.\u0275fac=function(r){return new(r||n)},n.\u0275cmp=E({type:n,selectors:[["hot-toast-group-item"]],viewQuery:function(r,o){if(r&1&&ie(Z3,7),r&2){let a;B(a=j())&&(o.toastBarBase=a.first)}},inputs:{toast:"toast",offset:"offset",defaultConfig:"defaultConfig",toastRef:"toastRef",toastsAfter:"toastsAfter",isShowingAllToasts:"isShowingAllToasts"},outputs:{height:"height",beforeClosed:"beforeClosed",afterClosed:"afterClosed",showAllToasts:"showAllToasts",toggleGroup:"toggleGroup"},features:[Ae],decls:21,vars:25,consts:[["hotToastBarBase",""],[1,"hot-toast-bar-base-container"],[1,"hot-toast-bar-base-wrapper",3,"mouseenter","mouseleave"],[1,"hot-toast-bar-base"],["aria-hidden","true",1,"hot-toast-icon"],[1,"hot-toast-message"],[4,"dynamicView","dynamicViewContext","dynamicViewInjector"],[3,"iconTheme"],[4,"dynamicView"],[3,"theme","type"],["type","button","aria-label","Close",1,"hot-toast-close-btn",3,"click"]],template:function(r,o){if(r&1){let a=Y();h(0,"div",1),_(1,` `),h(2,"div",2),S("mouseenter",function(){return I(a),A(o.handleMouseEnter())})("mouseleave",function(){return I(a),A(o.handleMouseLeave())}),_(3,` `),h(4,"div",3,0),_(6,` `),h(7,"div",4),_(8,` - `),N(9,wie,3,1)(10,Die,3,2),p(),_(11,` + `),N(9,Die,3,1)(10,Eie,3,2),p(),_(11,` `),h(12,"div",5),_(13,` - `),R(14,Eie,1,0,"ng-container",6),_(15,` + `),R(14,Mie,1,0,"ng-container",6),_(15,` `),p(),_(16,` - `),N(17,Mie,3,2),p(),_(18,` + `),N(17,kie,3,2),p(),_(18,` `),p(),_(19,` `),p(),_(20,` -`)}r&2&&(Js(o.containerPositionStyle),it("hot-toast-theme-"+o.toast.theme),Dt("--hot-toast-scale",o.scale)("--hot-toast-translate-y",o.translateY),g(4),Js(o.toastBarBaseStylesSignal()),it(o.toast.className),Dt("--hot-toast-animation-state",o.isManualClose?"running":"paused")("--hot-toast-exit-animation-state",o.isShowingAllToasts?"paused":"running")("--hot-toast-exit-animation-delay",o.exitAnimationDelay),X("aria-live",o.toast.ariaLive)("role",o.toast.role),g(5),L(o.toast.icon!==void 0?9:10),g(5),y("dynamicView",o.toast.message)("dynamicViewContext",o.context)("dynamicViewInjector",o.toastComponentInjector),g(3),L(o.toast.dismissible?17:-1))},dependencies:[X3,Z3,Cx],encapsulation:2,changeDetection:0});let t=n;return t})(),Y3=(()=>{let n=class n{constructor(){this.offset=0,this._toastsAfter=0,this.isShowingAllToasts=!1,this.height=new U,this.beforeClosed=new U,this.afterClosed=new U,this.showAllToasts=new U,this.toggleGroup=new U,this.isManualClose=!1,this.isExpanded=!1,this.toastBarBaseStylesSignal=he({}),this.unlisteners=[],this.softClosed=!1,this.groupRefs=[],this.injector=u(de),this.renderer=u(je),this.ngZone=u(ae),this.cdr=u(ye)}set toast(i){this._toast=i;let r=this.toastBarBaseStylesSignal(),o=M({},i.style);if(r.animation?.includes("hotToastExitAnimation"))o.animation=r.animation;else{let s=`hotToastEnterAnimation${i.position.includes("top")?"Negative":"Positive"} ${wx}ms cubic-bezier(0.21, 1.02, 0.73, 1) forwards`;o.animation=s}this.toastBarBaseStylesSignal.set(o)}get toast(){return this._toast}get toastsAfter(){return this._toastsAfter}set toastsAfter(i){this._toastsAfter=i,this.defaultConfig?.visibleToasts>0&&(this.toast.autoClose||(i>=this.defaultConfig?.visibleToasts?this.softClose():this.softClosed&&this.softOpen()))}get toastBarBaseHeight(){return this.toastBarBase.nativeElement.offsetHeight}get scale(){return this.defaultConfig.stacking!=="vertical"&&!this.isShowingAllToasts?this.toastsAfter*-PS+1:1}get translateY(){return this.offset*(this.top?1:-1)+"px"}get exitAnimationDelay(){return this.toast.duration+"ms"}get top(){return this.toast.position.includes("top")}get containerPositionStyle(){let i=this.top?{top:0}:{bottom:0},r="translateY(var(--hot-toast-translate-y)) scale(var(--hot-toast-scale))",o=this.toast.position.includes("left")?{left:0}:this.toast.position.includes("right")?{right:0}:{left:0,right:0,justifyContent:"center"};return M(M({transform:r},i),o)}get isIconString(){return typeof this.toast.icon=="string"}get groupChildrenToastRefs(){return this.groupRefs.filter(i=>!!i)}set groupChildrenToastRefs(i){this.groupRefs=i,this.toastRef.groupRefs=i}get groupChildrenToasts(){return this.groupChildrenToastRefs.map(i=>i.getToast())}get groupHeight(){return this.visibleToasts.slice(-this.defaultConfig.visibleToasts).map(i=>i.height).reduce((i,r)=>i+r,0)}get visibleToasts(){return this.groupChildrenToasts.filter(i=>i.visible)}ngDoCheck(){this.toastRef.groupRefs.length!==this.groupRefs.length&&(this.groupRefs=this.toastRef.groupRefs.slice(),this.cdr.markForCheck(),this.emiHeightWithGroup(this.isExpanded)),this.toastRef.groupExpanded!==this.isExpanded&&(this.isExpanded=this.toastRef.groupExpanded,this.cdr.markForCheck(),this.emiHeightWithGroup(this.isExpanded))}ngOnChanges(i){i.toast&&!i.toast.firstChange&&i.toast.currentValue?.message&&this.emiHeightWithGroup(this.isExpanded)}ngOnInit(){Ig(this.toast.message)&&(this.context={$implicit:this.toastRef}),gu(this.toast.message)&&(this.toastComponentInjector=de.create({providers:[{provide:Ag,useValue:this.toastRef}],parent:this.toast.injector||this.injector}));let i=this.toastBarBase.nativeElement;this.ngZone.runOutsideAngular(()=>{this.unlisteners.push(this.renderer.listen(i,"animationstart",r=>{this.isExitAnimation(r)&&this.ngZone.run(()=>{this.renderer.setStyle(i,"pointer-events","none"),this.renderer.setStyle(i.parentElement,"pointer-events","none"),this.beforeClosed.emit()})}),this.renderer.listen(i,"animationend",r=>{this.isEnterAnimation(r)&&this.ngZone.run(()=>{if(this.toast.autoClose){let o=`hotToastExitAnimation${this.top?"Negative":"Positive"} ${Sh}ms forwards cubic-bezier(0.06, 0.71, 0.55, 1) var(--hot-toast-exit-animation-delay) var(--hot-toast-exit-animation-state)`;this.toastBarBaseStylesSignal.set(De(M({},this.toast.style),{animation:o}))}}),this.isExitAnimation(r)&&this.ngZone.run(()=>this.afterClosed.emit({dismissedByAction:this.isManualClose,id:this.toast.id}))}))})}ngAfterViewInit(){let i=this.toastBarBase.nativeElement;requestAnimationFrame(()=>{this.height.emit(i.offsetHeight)}),this.setToastAttributes()}softClose(){let i=`hotToastExitSoftAnimation${this.top?"Negative":"Positive"} ${Sh}ms forwards cubic-bezier(0.06, 0.71, 0.55, 1)`,r=this.toastBarBase.nativeElement;Dx(this.renderer,r,i),this.softClosed=!0,this.isExpanded&&this.toggleToastGroup()}softOpen(){let i=`hotToastEnterSoftAnimation${top?"Negative":"Positive"} ${wx}ms cubic-bezier(0.21, 1.02, 0.73, 1) forwards`,r=this.toastBarBase.nativeElement;Dx(this.renderer,r,i),this.softClosed=!1}close(){this.isManualClose=!0,this.cdr.markForCheck();let i=`hotToastExitAnimation${this.top?"Negative":"Positive"} ${Sh}ms forwards cubic-bezier(0.06, 0.71, 0.55, 1)`;this.toastBarBaseStylesSignal.set(De(M({},this.toast.style),{animation:i}))}handleMouseEnter(){this.showAllToasts.emit(!0)}handleMouseLeave(){this.showAllToasts.emit(!1)}ngOnDestroy(){for(this.close();this.unlisteners.length;)this.unlisteners.pop()()}isExitAnimation(i){return i.animationName.includes("hotToastExitAnimation")}isEnterAnimation(i){return i.animationName.includes("hotToastEnterAnimation")}setToastAttributes(){let i=this.toast.attributes;for(let[r,o]of Object.entries(i))this.renderer.setAttribute(this.toastBarBase.nativeElement,r,o)}calculateOffset(i){let r=this.visibleToasts,o=r.findIndex(s=>s.id===i);return o!==-1?r.slice(...this.defaultConfig.reverseOrder?[o+1]:[0,o]).reduce((s,l,c)=>this.defaultConfig.visibleToasts!==0&&co.id===i.id)>-1&&(this.groupChildrenToastRefs=this.groupChildrenToastRefs.filter(o=>o.getToast().id!==i.id),this.cdr.markForCheck())}toggleToastGroup(){let i=this.isExpanded?"collapse":"expand";this.toggleGroup.emit({byAction:!0,event:i,id:this.toast.id}),this.emiHeightWithGroup(i==="expand")}emiHeightWithGroup(i){requestAnimationFrame(i?()=>{this.height.emit(this.toastBarBase.nativeElement.offsetHeight+this.groupHeight)}:()=>{this.height.emit(this.toastBarBase.nativeElement.offsetHeight)})}};n.\u0275fac=function(r){return new(r||n)},n.\u0275cmp=E({type:n,selectors:[["hot-toast"]],viewQuery:function(r,o){if(r&1&&ie(K3,7),r&2){let a;B(a=j())&&(o.toastBarBase=a.first)}},inputs:{toast:"toast",offset:"offset",defaultConfig:"defaultConfig",toastRef:"toastRef",toastsAfter:"toastsAfter",isShowingAllToasts:"isShowingAllToasts"},outputs:{height:"height",beforeClosed:"beforeClosed",afterClosed:"afterClosed",showAllToasts:"showAllToasts",toggleGroup:"toggleGroup"},features:[Ae],decls:23,vars:29,consts:[["hotToastBarBase",""],[1,"hot-toast-bar-base-container"],[1,"hot-toast-bar-base-wrapper",3,"mouseenter","mouseleave"],[1,"hot-toast-bar-base"],["aria-hidden","true",1,"hot-toast-icon"],[1,"hot-toast-message"],[4,"dynamicView","dynamicViewContext","dynamicViewInjector"],[3,"iconTheme","icon"],[4,"dynamicView"],[3,"theme","type"],["type","button",1,"hot-toast-group-btn",3,"click"],["type","button","aria-label","Close",1,"hot-toast-close-btn",3,"click"],["role","list",1,"hot-toast-bar-base-group"],[3,"height","beforeClosed","afterClosed","toast","offset","toastRef","toastsAfter","defaultConfig","isShowingAllToasts"]],template:function(r,o){if(r&1){let a=Y();h(0,"div",1),_(1,` +`)}r&2&&(Js(o.containerPositionStyle),it("hot-toast-theme-"+o.toast.theme),Dt("--hot-toast-scale",o.scale)("--hot-toast-translate-y",o.translateY),g(4),Js(o.toastBarBaseStylesSignal()),it(o.toast.className),Dt("--hot-toast-animation-state",o.isManualClose?"running":"paused")("--hot-toast-exit-animation-state",o.isShowingAllToasts?"paused":"running")("--hot-toast-exit-animation-delay",o.exitAnimationDelay),X("aria-live",o.toast.ariaLive)("role",o.toast.role),g(5),L(o.toast.icon!==void 0?9:10),g(5),y("dynamicView",o.toast.message)("dynamicViewContext",o.context)("dynamicViewInjector",o.toastComponentInjector),g(3),L(o.toast.dismissible?17:-1))},dependencies:[J3,X3,Cx],encapsulation:2,changeDetection:0});let t=n;return t})(),Q3=(()=>{let n=class n{constructor(){this.offset=0,this._toastsAfter=0,this.isShowingAllToasts=!1,this.height=new U,this.beforeClosed=new U,this.afterClosed=new U,this.showAllToasts=new U,this.toggleGroup=new U,this.isManualClose=!1,this.isExpanded=!1,this.toastBarBaseStylesSignal=he({}),this.unlisteners=[],this.softClosed=!1,this.groupRefs=[],this.injector=u(de),this.renderer=u(je),this.ngZone=u(ae),this.cdr=u(ye)}set toast(i){this._toast=i;let r=this.toastBarBaseStylesSignal(),o=M({},i.style);if(r.animation?.includes("hotToastExitAnimation"))o.animation=r.animation;else{let s=`hotToastEnterAnimation${i.position.includes("top")?"Negative":"Positive"} ${wx}ms cubic-bezier(0.21, 1.02, 0.73, 1) forwards`;o.animation=s}this.toastBarBaseStylesSignal.set(o)}get toast(){return this._toast}get toastsAfter(){return this._toastsAfter}set toastsAfter(i){this._toastsAfter=i,this.defaultConfig?.visibleToasts>0&&(this.toast.autoClose||(i>=this.defaultConfig?.visibleToasts?this.softClose():this.softClosed&&this.softOpen()))}get toastBarBaseHeight(){return this.toastBarBase.nativeElement.offsetHeight}get scale(){return this.defaultConfig.stacking!=="vertical"&&!this.isShowingAllToasts?this.toastsAfter*-PS+1:1}get translateY(){return this.offset*(this.top?1:-1)+"px"}get exitAnimationDelay(){return this.toast.duration+"ms"}get top(){return this.toast.position.includes("top")}get containerPositionStyle(){let i=this.top?{top:0}:{bottom:0},r="translateY(var(--hot-toast-translate-y)) scale(var(--hot-toast-scale))",o=this.toast.position.includes("left")?{left:0}:this.toast.position.includes("right")?{right:0}:{left:0,right:0,justifyContent:"center"};return M(M({transform:r},i),o)}get isIconString(){return typeof this.toast.icon=="string"}get groupChildrenToastRefs(){return this.groupRefs.filter(i=>!!i)}set groupChildrenToastRefs(i){this.groupRefs=i,this.toastRef.groupRefs=i}get groupChildrenToasts(){return this.groupChildrenToastRefs.map(i=>i.getToast())}get groupHeight(){return this.visibleToasts.slice(-this.defaultConfig.visibleToasts).map(i=>i.height).reduce((i,r)=>i+r,0)}get visibleToasts(){return this.groupChildrenToasts.filter(i=>i.visible)}ngDoCheck(){this.toastRef.groupRefs.length!==this.groupRefs.length&&(this.groupRefs=this.toastRef.groupRefs.slice(),this.cdr.markForCheck(),this.emiHeightWithGroup(this.isExpanded)),this.toastRef.groupExpanded!==this.isExpanded&&(this.isExpanded=this.toastRef.groupExpanded,this.cdr.markForCheck(),this.emiHeightWithGroup(this.isExpanded))}ngOnChanges(i){i.toast&&!i.toast.firstChange&&i.toast.currentValue?.message&&this.emiHeightWithGroup(this.isExpanded)}ngOnInit(){Ig(this.toast.message)&&(this.context={$implicit:this.toastRef}),gu(this.toast.message)&&(this.toastComponentInjector=de.create({providers:[{provide:Ag,useValue:this.toastRef}],parent:this.toast.injector||this.injector}));let i=this.toastBarBase.nativeElement;this.ngZone.runOutsideAngular(()=>{this.unlisteners.push(this.renderer.listen(i,"animationstart",r=>{this.isExitAnimation(r)&&this.ngZone.run(()=>{this.renderer.setStyle(i,"pointer-events","none"),this.renderer.setStyle(i.parentElement,"pointer-events","none"),this.beforeClosed.emit()})}),this.renderer.listen(i,"animationend",r=>{this.isEnterAnimation(r)&&this.ngZone.run(()=>{if(this.toast.autoClose){let o=`hotToastExitAnimation${this.top?"Negative":"Positive"} ${Sh}ms forwards cubic-bezier(0.06, 0.71, 0.55, 1) var(--hot-toast-exit-animation-delay) var(--hot-toast-exit-animation-state)`;this.toastBarBaseStylesSignal.set(De(M({},this.toast.style),{animation:o}))}}),this.isExitAnimation(r)&&this.ngZone.run(()=>this.afterClosed.emit({dismissedByAction:this.isManualClose,id:this.toast.id}))}))})}ngAfterViewInit(){let i=this.toastBarBase.nativeElement;requestAnimationFrame(()=>{this.height.emit(i.offsetHeight)}),this.setToastAttributes()}softClose(){let i=`hotToastExitSoftAnimation${this.top?"Negative":"Positive"} ${Sh}ms forwards cubic-bezier(0.06, 0.71, 0.55, 1)`,r=this.toastBarBase.nativeElement;Dx(this.renderer,r,i),this.softClosed=!0,this.isExpanded&&this.toggleToastGroup()}softOpen(){let i=`hotToastEnterSoftAnimation${top?"Negative":"Positive"} ${wx}ms cubic-bezier(0.21, 1.02, 0.73, 1) forwards`,r=this.toastBarBase.nativeElement;Dx(this.renderer,r,i),this.softClosed=!1}close(){this.isManualClose=!0,this.cdr.markForCheck();let i=`hotToastExitAnimation${this.top?"Negative":"Positive"} ${Sh}ms forwards cubic-bezier(0.06, 0.71, 0.55, 1)`;this.toastBarBaseStylesSignal.set(De(M({},this.toast.style),{animation:i}))}handleMouseEnter(){this.showAllToasts.emit(!0)}handleMouseLeave(){this.showAllToasts.emit(!1)}ngOnDestroy(){for(this.close();this.unlisteners.length;)this.unlisteners.pop()()}isExitAnimation(i){return i.animationName.includes("hotToastExitAnimation")}isEnterAnimation(i){return i.animationName.includes("hotToastEnterAnimation")}setToastAttributes(){let i=this.toast.attributes;for(let[r,o]of Object.entries(i))this.renderer.setAttribute(this.toastBarBase.nativeElement,r,o)}calculateOffset(i){let r=this.visibleToasts,o=r.findIndex(s=>s.id===i);return o!==-1?r.slice(...this.defaultConfig.reverseOrder?[o+1]:[0,o]).reduce((s,l,c)=>this.defaultConfig.visibleToasts!==0&&co.id===i.id)>-1&&(this.groupChildrenToastRefs=this.groupChildrenToastRefs.filter(o=>o.getToast().id!==i.id),this.cdr.markForCheck())}toggleToastGroup(){let i=this.isExpanded?"collapse":"expand";this.toggleGroup.emit({byAction:!0,event:i,id:this.toast.id}),this.emiHeightWithGroup(i==="expand")}emiHeightWithGroup(i){requestAnimationFrame(i?()=>{this.height.emit(this.toastBarBase.nativeElement.offsetHeight+this.groupHeight)}:()=>{this.height.emit(this.toastBarBase.nativeElement.offsetHeight)})}};n.\u0275fac=function(r){return new(r||n)},n.\u0275cmp=E({type:n,selectors:[["hot-toast"]],viewQuery:function(r,o){if(r&1&&ie(Z3,7),r&2){let a;B(a=j())&&(o.toastBarBase=a.first)}},inputs:{toast:"toast",offset:"offset",defaultConfig:"defaultConfig",toastRef:"toastRef",toastsAfter:"toastsAfter",isShowingAllToasts:"isShowingAllToasts"},outputs:{height:"height",beforeClosed:"beforeClosed",afterClosed:"afterClosed",showAllToasts:"showAllToasts",toggleGroup:"toggleGroup"},features:[Ae],decls:23,vars:29,consts:[["hotToastBarBase",""],[1,"hot-toast-bar-base-container"],[1,"hot-toast-bar-base-wrapper",3,"mouseenter","mouseleave"],[1,"hot-toast-bar-base"],["aria-hidden","true",1,"hot-toast-icon"],[1,"hot-toast-message"],[4,"dynamicView","dynamicViewContext","dynamicViewInjector"],[3,"iconTheme","icon"],[4,"dynamicView"],[3,"theme","type"],["type","button",1,"hot-toast-group-btn",3,"click"],["type","button","aria-label","Close",1,"hot-toast-close-btn",3,"click"],["role","list",1,"hot-toast-bar-base-group"],[3,"height","beforeClosed","afterClosed","toast","offset","toastRef","toastsAfter","defaultConfig","isShowingAllToasts"]],template:function(r,o){if(r&1){let a=Y();h(0,"div",1),_(1,` `),h(2,"div",2),S("mouseenter",function(){return I(a),A(o.handleMouseEnter())})("mouseleave",function(){return I(a),A(o.handleMouseLeave())}),_(3,` `),h(4,"div",3,0),_(6,` `),h(7,"div",4),_(8,` - `),N(9,Aie,3,1)(10,Oie,3,2),p(),_(11,` + `),N(9,Oie,3,1)(10,Rie,3,2),p(),_(11,` `),h(12,"div",5),_(13,` - `),R(14,Rie,1,0,"ng-container",6),_(15,` + `),R(14,Pie,1,0,"ng-container",6),_(15,` `),p(),_(16,` - `),N(17,Pie,3,5),N(18,Fie,3,2),p(),_(19,` + `),N(17,Fie,3,5),N(18,Nie,3,2),p(),_(19,` - `),N(20,Lie,6,4),p(),_(21,` + `),N(20,Vie,6,4),p(),_(21,` `),p(),_(22,` -`)}r&2&&(Js(o.containerPositionStyle),it("hot-toast-theme-"+o.toast.theme),Dt("--hot-toast-scale",o.scale)("--hot-toast-translate-y",o.translateY),g(2),G("expanded",o.isExpanded),g(2),Js(o.toastBarBaseStylesSignal()),it(o.toast.className),Dt("--hot-toast-animation-state",o.isManualClose?"running":"paused")("--hot-toast-exit-animation-state",o.isShowingAllToasts?"paused":"running")("--hot-toast-exit-animation-delay",o.exitAnimationDelay),X("aria-live",o.toast.ariaLive)("role",o.toast.role),g(5),L(o.toast.icon!==void 0?9:10),g(5),y("dynamicView",o.toast.message)("dynamicViewContext",o.context)("dynamicViewInjector",o.toastComponentInjector),g(3),L(o.toast.group!=null&&o.toast.group.expandAndCollapsible&&(o.toast.group!=null&&o.toast.group.children)&&o.visibleToasts.length>0?17:-1),g(),L(o.toast.dismissible?18:-1),g(2),L(o.toast.visible?20:-1))},dependencies:[Cx,Z3,X3,Yie],encapsulation:2,changeDetection:0});let t=n;return t})(),Q3=(()=>{let n=class n{constructor(){this.toasts=[],this.toastRefs=[],this.isShowingAllToasts=!1,this._onClosed=new z,this._onGroupToggle=new z,this._onGroupRefAttached=new z,this.onClosed$=this._onClosed.asObservable(),this.onGroupToggle$=this._onGroupToggle.asObservable(),this.onGroupRefAttached$=this._onGroupRefAttached.asObservable(),this.cdr=u(ye),this.toastService=u(Rg)}trackById(i,r){return r.id}getVisibleToasts(i){return this.unGroupedToasts.filter(r=>r.visible&&r.position===i)}get unGroupedToasts(){return this.toasts.filter(i=>i.group?.parent===void 0||i.group?.children===void 0||i.group?.children.length===0)}calculateOffset(i,r){let o=this.getVisibleToasts(r),a=o.findIndex(l=>l.id===i);return a!==-1?o.slice(...this.defaultConfig.reverseOrder?[a+1]:[0,a]).reduce((l,c,d)=>{let m=o.length-1-d;return this.defaultConfig.visibleToasts!==0&&dthis.defaultConfig.visibleToasts&&this.toasts.slice(0,this.toasts.length-this.defaultConfig.visibleToasts).forEach(s=>{s.autoClose&&this.closeToast(s.id)}),this.cdr.markForCheck(),this.attachGroupRefs(o,i,r),{dispose:()=>{this.closeToast(o.id)},updateMessage:a=>{o.message=a,this.updateToasts(o),this.cdr.markForCheck()},updateToast:a=>{this.updateToasts(o,a),this.cdr.markForCheck()},afterClosed:this.getAfterClosed(o),afterGroupToggled:this.getAfterGroupToggled(o),afterGroupRefsAttached:this.getAfterGroupRefsAttached(o).pipe(se(a=>a.groupRefs))}}attachGroupRefs(i,r,o){return fn(this,null,function*(){let a=[];if(i.group){if(i.group.children){a=yield this.createGroupRefs(i,r);let s=this.toastRefs.findIndex(l=>l.getToast().id===i.id);s>-1&&(this.toastRefs[s].groupRefs=a,this.cdr.markForCheck(),this._onGroupRefAttached.next({groupRefs:a,id:i.id}))}else if(i.group.parent&&!o){let l=i.group.parent.getToast(),c=this.toastRefs.findIndex(m=>m.getToast().id===l.id),d=this.toasts.findIndex(m=>m.id===l.id);if(c>-1&&d>-1){this.toastRefs[c].groupRefs.push(r);let m=this.toasts[c].group??{},f=this.toasts[c].group?.children??[];f.push({options:De(M({},i),{type:i.type,message:i.message})}),m.children=f,this.toasts[c].group=M({},m),this.cdr.markForCheck(),this._onGroupRefAttached.next({groupRefs:a,id:l.id})}}}})}createGroupRefs(i,r){return new Promise(a=>{let l=i.group.children.map(c=>new Promise(d=>{c.options.group={parent:r},setTimeout(()=>{try{let m=this.toastService.show(c.options.message,c.options,!0);d(m)}catch(m){console.error("Error creating toast",m),d(null)}})}));Promise.all(l).then(c=>a(c))})}closeToast(i){if(i){let r=this.hotToastComponentList.find(o=>o.toast.id===i);r&&(r.close(),this.cdr.markForCheck())}else this.hotToastComponentList.forEach(r=>r.close()),this.cdr.markForCheck()}beforeClosed(i){i.visible=!1,this.cdr.markForCheck()}afterClosed(i){this.toasts.findIndex(o=>o.id===i.id)>-1&&(this._onClosed.next(i),this.toasts=this.toasts.filter(o=>o.id!==i.id),this.toastRefs=this.toastRefs.filter(o=>o.getToast().id!==i.id),this.cdr.markForCheck())}toggleGroup(i){let r=this.toastRefs.findIndex(o=>o.getToast().id===i.id);r>-1&&(this._onGroupToggle.next(i),this.toastRefs[r].groupExpanded=i.event==="expand",this.cdr.markForCheck())}hasToast(i){return this.toasts.findIndex(r=>r.id===i)>-1}showAllToasts(i){this.isShowingAllToasts=i}getAfterClosed(i){return this.onClosed$.pipe(ce(r=>r.id===i.id))}getAfterGroupToggled(i){return this.onGroupToggle$.pipe(ce(r=>r.id===i.id))}getAfterGroupRefsAttached(i){return this.onGroupRefAttached$.pipe(ce(r=>r.id===i.id))}updateToasts(i,r){this.toasts=this.toasts.map(o=>M(M({},o),o.id===i.id&&M(M({},i),r))),this.cdr.markForCheck()}};n.\u0275fac=function(r){return new(r||n)},n.\u0275cmp=E({type:n,selectors:[["hot-toast-container"]],viewQuery:function(r,o){if(r&1&&ie(Y3,5),r&2){let a;B(a=j())&&(o.hotToastComponentList=a)}},inputs:{defaultConfig:"defaultConfig"},decls:11,vars:0,consts:[[1,"hot-toast-container-overlay"],[1,"hot-toast-container-wrapper"],[3,"showAllToasts","height","beforeClosed","afterClosed","toggleGroup","toast","offset","toastRef","toastsAfter","defaultConfig","isShowingAllToasts"]],template:function(r,o){r&1&&(h(0,"div",0),_(1,` +`)}r&2&&(Js(o.containerPositionStyle),it("hot-toast-theme-"+o.toast.theme),Dt("--hot-toast-scale",o.scale)("--hot-toast-translate-y",o.translateY),g(2),G("expanded",o.isExpanded),g(2),Js(o.toastBarBaseStylesSignal()),it(o.toast.className),Dt("--hot-toast-animation-state",o.isManualClose?"running":"paused")("--hot-toast-exit-animation-state",o.isShowingAllToasts?"paused":"running")("--hot-toast-exit-animation-delay",o.exitAnimationDelay),X("aria-live",o.toast.ariaLive)("role",o.toast.role),g(5),L(o.toast.icon!==void 0?9:10),g(5),y("dynamicView",o.toast.message)("dynamicViewContext",o.context)("dynamicViewInjector",o.toastComponentInjector),g(3),L(o.toast.group!=null&&o.toast.group.expandAndCollapsible&&(o.toast.group!=null&&o.toast.group.children)&&o.visibleToasts.length>0?17:-1),g(),L(o.toast.dismissible?18:-1),g(2),L(o.toast.visible?20:-1))},dependencies:[Cx,X3,J3,Qie],encapsulation:2,changeDetection:0});let t=n;return t})(),K3=(()=>{let n=class n{constructor(){this.toasts=[],this.toastRefs=[],this.isShowingAllToasts=!1,this._onClosed=new z,this._onGroupToggle=new z,this._onGroupRefAttached=new z,this.onClosed$=this._onClosed.asObservable(),this.onGroupToggle$=this._onGroupToggle.asObservable(),this.onGroupRefAttached$=this._onGroupRefAttached.asObservable(),this.cdr=u(ye),this.toastService=u(Rg)}trackById(i,r){return r.id}getVisibleToasts(i){return this.unGroupedToasts.filter(r=>r.visible&&r.position===i)}get unGroupedToasts(){return this.toasts.filter(i=>i.group?.parent===void 0||i.group?.children===void 0||i.group?.children.length===0)}calculateOffset(i,r){let o=this.getVisibleToasts(r),a=o.findIndex(l=>l.id===i);return a!==-1?o.slice(...this.defaultConfig.reverseOrder?[a+1]:[0,a]).reduce((l,c,d)=>{let m=o.length-1-d;return this.defaultConfig.visibleToasts!==0&&dthis.defaultConfig.visibleToasts&&this.toasts.slice(0,this.toasts.length-this.defaultConfig.visibleToasts).forEach(s=>{s.autoClose&&this.closeToast(s.id)}),this.cdr.markForCheck(),this.attachGroupRefs(o,i,r),{dispose:()=>{this.closeToast(o.id)},updateMessage:a=>{o.message=a,this.updateToasts(o),this.cdr.markForCheck()},updateToast:a=>{this.updateToasts(o,a),this.cdr.markForCheck()},afterClosed:this.getAfterClosed(o),afterGroupToggled:this.getAfterGroupToggled(o),afterGroupRefsAttached:this.getAfterGroupRefsAttached(o).pipe(se(a=>a.groupRefs))}}attachGroupRefs(i,r,o){return fn(this,null,function*(){let a=[];if(i.group){if(i.group.children){a=yield this.createGroupRefs(i,r);let s=this.toastRefs.findIndex(l=>l.getToast().id===i.id);s>-1&&(this.toastRefs[s].groupRefs=a,this.cdr.markForCheck(),this._onGroupRefAttached.next({groupRefs:a,id:i.id}))}else if(i.group.parent&&!o){let l=i.group.parent.getToast(),c=this.toastRefs.findIndex(m=>m.getToast().id===l.id),d=this.toasts.findIndex(m=>m.id===l.id);if(c>-1&&d>-1){this.toastRefs[c].groupRefs.push(r);let m=this.toasts[c].group??{},f=this.toasts[c].group?.children??[];f.push({options:De(M({},i),{type:i.type,message:i.message})}),m.children=f,this.toasts[c].group=M({},m),this.cdr.markForCheck(),this._onGroupRefAttached.next({groupRefs:a,id:l.id})}}}})}createGroupRefs(i,r){return new Promise(a=>{let l=i.group.children.map(c=>new Promise(d=>{c.options.group={parent:r},setTimeout(()=>{try{let m=this.toastService.show(c.options.message,c.options,!0);d(m)}catch(m){console.error("Error creating toast",m),d(null)}})}));Promise.all(l).then(c=>a(c))})}closeToast(i){if(i){let r=this.hotToastComponentList.find(o=>o.toast.id===i);r&&(r.close(),this.cdr.markForCheck())}else this.hotToastComponentList.forEach(r=>r.close()),this.cdr.markForCheck()}beforeClosed(i){i.visible=!1,this.cdr.markForCheck()}afterClosed(i){this.toasts.findIndex(o=>o.id===i.id)>-1&&(this._onClosed.next(i),this.toasts=this.toasts.filter(o=>o.id!==i.id),this.toastRefs=this.toastRefs.filter(o=>o.getToast().id!==i.id),this.cdr.markForCheck())}toggleGroup(i){let r=this.toastRefs.findIndex(o=>o.getToast().id===i.id);r>-1&&(this._onGroupToggle.next(i),this.toastRefs[r].groupExpanded=i.event==="expand",this.cdr.markForCheck())}hasToast(i){return this.toasts.findIndex(r=>r.id===i)>-1}showAllToasts(i){this.isShowingAllToasts=i}getAfterClosed(i){return this.onClosed$.pipe(ce(r=>r.id===i.id))}getAfterGroupToggled(i){return this.onGroupToggle$.pipe(ce(r=>r.id===i.id))}getAfterGroupRefsAttached(i){return this.onGroupRefAttached$.pipe(ce(r=>r.id===i.id))}updateToasts(i,r){this.toasts=this.toasts.map(o=>M(M({},o),o.id===i.id&&M(M({},i),r))),this.cdr.markForCheck()}};n.\u0275fac=function(r){return new(r||n)},n.\u0275cmp=E({type:n,selectors:[["hot-toast-container"]],viewQuery:function(r,o){if(r&1&&ie(Q3,5),r&2){let a;B(a=j())&&(o.hotToastComponentList=a)}},inputs:{defaultConfig:"defaultConfig"},decls:11,vars:0,consts:[[1,"hot-toast-container-overlay"],[1,"hot-toast-container-wrapper"],[3,"showAllToasts","height","beforeClosed","afterClosed","toggleGroup","toast","offset","toastRef","toastsAfter","defaultConfig","isShowingAllToasts"]],template:function(r,o){r&1&&(h(0,"div",0),_(1,` `),h(2,"div",1),_(3,` `),h(4,"div"),_(5,` - `),xt(6,jie,3,1,null,null,o.trackById,!0),p(),_(8,` + `),xt(6,Hie,3,1,null,null,o.trackById,!0),p(),_(8,` `),p(),_(9,` `),p(),_(10,` -`)),r&2&&(g(6),Ct(o.toasts))},dependencies:[Y3],styles:[".hot-toast-container-overlay[_ngcontent-%COMP%]{position:fixed;z-index:var(--hot-toast-container-overlay-z-index, 9999);inset:0;pointer-events:none}.hot-toast-container-wrapper[_ngcontent-%COMP%]{position:relative;height:100%}"],changeDetection:0});let t=n;return t})(),Og=class{constructor(){this.reverseOrder=!1,this.visibleToasts=5,this.stacking="vertical",this.ariaLive="polite",this.role="status",this.position="top-center",this.autoClose=!0,this.theme="toast",this.attributes={},this.info={content:""},this.success={content:""},this.error={content:""},this.loading={content:""},this.blank={content:""},this.warning={content:""}}},Qie=t=>typeof t=="function",Kie=t=>typeof t=="function"&&!!t.\u0275cmp,Zie=(t,n)=>Kie(t)?t:Qie(t)?t(n):t,RS=class{constructor(){this.storage="local",this.key="ngxpert/hototast-${id}",this.count=1,this.enabled=!1}},Xie=new T("HOT_TOAST_CONTAINER_TOKEN"),Rg=(()=>{let n=class n{constructor(){this._isInitialized=!1,this._defaultGlobalConfig=new Og,this._defaultPersistConfig=new RS,this._viewService=u(OS),this._platformId=u(Ks),this._globalConfig=u(Og,{optional:!0}),this._container=u(Xie,{optional:!0}),this._globalConfig&&(this._defaultGlobalConfig=M(M({},this._defaultGlobalConfig),this._globalConfig))}get defaultConfig(){return this._defaultGlobalConfig}set defaultConfig(i){this._defaultGlobalConfig=M(M({},this._defaultGlobalConfig),i),this._componentRef&&this._componentRef.setInput("defaultConfig",this._defaultGlobalConfig)}show(i,r,o){return this.createToast({message:i||this._defaultGlobalConfig.blank.content,type:r?.type??"blank",options:M(M({},this._defaultGlobalConfig),r),skipAttachToParent:o})}error(i,r){return this.createToast({message:i||this._defaultGlobalConfig.error.content,type:"error",options:M(M(M({},this._defaultGlobalConfig),this._defaultGlobalConfig?.error),r)})}success(i,r){return this.createToast({message:i||this._defaultGlobalConfig.success.content,type:"success",options:M(M(M({},this._defaultGlobalConfig),this._defaultGlobalConfig?.success),r)})}loading(i,r){return this.createToast({message:i||this._defaultGlobalConfig.loading.content,type:"loading",options:M(M(M({},this._defaultGlobalConfig),this._defaultGlobalConfig?.loading),r)})}warning(i,r){return this.createToast({message:i||this._defaultGlobalConfig.warning.content,type:"warning",options:M(M(M({},this._defaultGlobalConfig),this._defaultGlobalConfig?.warning),r)})}info(i,r){return this.createToast({message:i||this._defaultGlobalConfig.info.content,type:"info",options:M(M(M({},this._defaultGlobalConfig),this._defaultGlobalConfig?.info),r)})}observe(i){return r=>{let o,a=0,s=i.loading??this._defaultGlobalConfig.loading?.content,l=i.success??this._defaultGlobalConfig.success?.content,c=i.error??this._defaultGlobalConfig.error?.content;return kn(()=>(s&&(o=this.createLoadingToast(s),a=Date.now()),r.pipe(Be(M(M({},l&&{next:d=>{o=this.createOrUpdateToast(i,d,o,"success",a===0?a:Date.now()-a)}}),c&&{error:d=>{o=this.createOrUpdateToast(i,d,o,"error",a===0?a:Date.now()-a)}})))))}}close(i){this._componentRef&&this._componentRef.ref.instance.closeToast(i)}init(){if(!U2(this._platformId))if(this._container){let i=document.querySelector(this._container);i||(console.warn(`No container element found for selector: ${this._container}, using document.body instead as toast container.`),i=document.body),this._componentRef=this._viewService.createComponent(Q3).setInput("defaultConfig",this._defaultGlobalConfig).appendTo(i)}else this._componentRef=this._viewService.createComponent(Q3).setInput("defaultConfig",this._defaultGlobalConfig).appendTo(document.body)}createOrUpdateToast(i,r,o,a,s){try{let l=null,c={};if({content:l,options:c}=this.getContentAndOptions(a,i[a]||(this._defaultGlobalConfig[a]?this._defaultGlobalConfig[a].content:"")),l=Zie(l,r),o){c.data&&(o.data=c.data),o.updateMessage(l);let d=M(M({type:a,duration:s+q3[a]},c),c.duration&&{duration:s+c.duration});o.updateToast(d)}else this.createToast({message:l,type:a,options:c});return o}catch(l){console.error(l)}}createToast({message:i,type:r,options:o,observableMessages:a,skipAttachToParent:s}){this._isInitialized||(this._isInitialized=!0,this.init());let l=o?.id??`toast-${n.nextId++}`;if(!this.isDuplicate(l)&&(!o.persist?.enabled||o.persist?.enabled&&this.handleStorageValue(l,o))){let c=M({ariaLive:o?.ariaLive??"polite",createdAt:Date.now(),duration:o?.duration??q3[r],id:l,message:i,role:o?.role??"status",type:r,visible:!0,observableMessages:a??void 0},o);return new Ag(c).appendTo(this._componentRef.ref.instance,s)}}isDuplicate(i){return this._componentRef.ref.instance.hasToast(i)}handleStorageValue(i,r){let o=1,a=M(M({},this._defaultPersistConfig),r.persist),s=a.storage==="local"?localStorage:sessionStorage,l=a.key.replace(/\${id}/g,i),c=s.getItem(l);return c?(c=parseInt(c,10),c>0?o=c-1:o=c):o=a.count,s.setItem(l,o.toString()),o}getContentAndOptions(i,r){var s;let o,a=M(M({},this._defaultGlobalConfig),this._defaultGlobalConfig[i]);if(typeof r=="string"||Ig(r)||gu(r))o=r;else{let l;s=r,{content:o}=s,l=ed(s,["content"]),a=M(M({},a),l)}return{content:o,options:a}}createLoadingToast(i){let r=null,o={};return{content:r,options:o}=this.getContentAndOptions("loading",i),this.loading(r,o)}};n.nextId=0,n.\u0275fac=function(r){return new(r||n)},n.\u0275prov=O({token:n,factory:n.\u0275fac,providedIn:"root"});let t=n;return t})();function J3(t){return zr([{provide:Og,useValue:t}])}var Mx={REMOVE:"remove",SHOW:"show"},tj=(()=>{let n=class n{constructor(){this.strategiesSource=new tt({}),this.strategies$=this.strategiesSource.asObservable()}};n.\u0275fac=function(r){return new(r||n)},n.\u0275prov=O({token:n,factory:n.\u0275fac});let t=n;return t})(),NS=new T("USE_CONFIGURATION_STORE"),LS=(()=>{let n=class n{constructor(i=!1,r){this.isolate=i,this.configurationStore=r,this.strategiesSource=this.isolate?new tt({}):this.configurationStore.strategiesSource,this.strategies$=this.strategiesSource.asObservable(),this.onAuthorisedDefaultStrategy=this.isolate?void 0:this.configurationStore.onAuthorisedDefaultStrategy,this.onUnAuthorisedDefaultStrategy=this.isolate?void 0:this.configurationStore.onUnAuthorisedDefaultStrategy}setDefaultOnAuthorizedStrategy(i){this.isolate?this.onAuthorisedDefaultStrategy=this.getDefinedStrategy(i):(this.configurationStore.onAuthorisedDefaultStrategy=this.getDefinedStrategy(i),this.onAuthorisedDefaultStrategy=this.configurationStore.onAuthorisedDefaultStrategy)}setDefaultOnUnauthorizedStrategy(i){this.isolate?this.onUnAuthorisedDefaultStrategy=this.getDefinedStrategy(i):(this.configurationStore.onUnAuthorisedDefaultStrategy=this.getDefinedStrategy(i),this.onUnAuthorisedDefaultStrategy=this.configurationStore.onUnAuthorisedDefaultStrategy)}addPermissionStrategy(i,r){this.strategiesSource.value[i]=r}getStrategy(i){return this.strategiesSource.value[i]}getAllStrategies(){return this.strategiesSource.value}getDefinedStrategy(i){if(this.strategiesSource.value[i]||this.isPredefinedStrategy(i))return i;throw new Error(`No ' ${i} ' strategy is found please define one`)}isPredefinedStrategy(i){return i===Mx.SHOW||i===Mx.REMOVE}};n.\u0275fac=function(r){return new(r||n)(pe(NS),pe(tj))},n.\u0275prov=O({token:n,factory:n.\u0275fac});let t=n;return t})();function io(t){return typeof t=="function"}function FS(t){if(Object.prototype.toString.call(t)!=="[object Object]")return!1;{let n=Object.getPrototypeOf(t);return n===null||n===Object.prototype}}function ij(t){return!!t&&typeof t=="string"}function kx(t){return typeof t=="boolean"}function Jie(t){return Object.prototype.toString.call(t)==="[object Promise]"}function Ex(t){return Array.isArray(t)?t.length>0:!!t}function Sx(t){return ij(t)?[t]:t}var nj=(()=>{let n=class n{constructor(){this.permissionsSource=new tt({}),this.permissions$=this.permissionsSource.asObservable()}};n.\u0275fac=function(r){return new(r||n)},n.\u0275prov=O({token:n,factory:n.\u0275fac});let t=n;return t})(),VS=new T("USE_PERMISSIONS_STORE"),_u=(()=>{let n=class n{constructor(i=!1,r){this.isolate=i,this.permissionsStore=r,this.permissionsSource=this.isolate?new tt({}):this.permissionsStore.permissionsSource,this.permissions$=this.permissionsSource.asObservable()}flushPermissions(){this.permissionsSource.next({})}hasPermission(i){return!i||Array.isArray(i)&&i.length===0?Promise.resolve(!0):(i=Sx(i),this.hasArrayPermission(i))}loadPermissions(i,r){let o=i.reduce((a,s)=>this.reducePermission(a,s,r),{});this.permissionsSource.next(o)}addPermission(i,r){if(Array.isArray(i)){let o=i.reduce((a,s)=>this.reducePermission(a,s,r),this.permissionsSource.value);this.permissionsSource.next(o)}else{let o=this.reducePermission(this.permissionsSource.value,i,r);this.permissionsSource.next(o)}}removePermission(i){let r=M({},this.permissionsSource.value);delete r[i],this.permissionsSource.next(r)}getPermission(i){return this.permissionsSource.value[i]}getPermissions(){return this.permissionsSource.value}reducePermission(i,r,o){return o&&io(o)?De(M({},i),{[r]:{name:r,validationFunction:o}}):De(M({},i),{[r]:{name:r}})}hasArrayPermission(i){let r=i.map(o=>{if(this.hasPermissionValidationFunction(o)){let a=this.permissionsSource.value[o].validationFunction,s=M({},this.permissionsSource.value);return Q(null).pipe(se(()=>a(o,s)),$e(l=>kx(l)?Q(l):l),fi(()=>Q(!1)))}return Q(!!this.permissionsSource.value[o])});return Ot(r).pipe(uo(),gn(o=>o!==!1,!1),se(o=>o!==!1)).toPromise().then(o=>o)}hasPermissionValidationFunction(i){return!!this.permissionsSource.value[i]&&!!this.permissionsSource.value[i].validationFunction&&io(this.permissionsSource.value[i].validationFunction)}};n.\u0275fac=function(r){return new(r||n)(pe(VS),pe(nj))},n.\u0275prov=O({token:n,factory:n.\u0275fac});let t=n;return t})(),Tx=class{constructor(){this.rolesSource=new tt({}),this.roles$=this.rolesSource.asObservable()}},BS=new T("USE_ROLES_STORE"),Th=(()=>{let n=class n{constructor(i=!1,r,o){this.isolate=i,this.rolesStore=r,this.permissionsService=o,this.rolesSource=this.isolate?new tt({}):this.rolesStore.rolesSource,this.roles$=this.rolesSource.asObservable()}addRole(i,r){let o=De(M({},this.rolesSource.value),{[i]:{name:i,validationFunction:r}});this.rolesSource.next(o)}addRoleWithPermissions(i,r){this.permissionsService.addPermission(r),this.addRole(i,r)}addRoles(i){Object.keys(i).forEach((r,o)=>{this.addRole(r,i[r])})}addRolesWithPermissions(i){Object.keys(i).forEach((r,o)=>{this.addRoleWithPermissions(r,i[r])})}flushRoles(){this.rolesSource.next({})}flushRolesAndPermissions(){this.flushRoles(),this.permissionsService.flushPermissions()}removeRole(i){let r=M({},this.rolesSource.value);delete r[i],this.rolesSource.next(r)}getRoles(){return this.rolesSource.value}getRole(i){return this.rolesSource.value[i]}hasOnlyRoles(i){return!i||Array.isArray(i)&&i.length===0?Promise.resolve(!0):(i=Sx(i),Promise.all([this.hasRoleKey(i),this.hasRolePermission(this.rolesSource.value,i)]).then(([o,a])=>o||a))}hasRoleKey(i){let r=i.map(o=>{if(!!this.rolesSource.value[o]&&!!this.rolesSource.value[o].validationFunction&&io(this.rolesSource.value[o].validationFunction)&&!Jie(this.rolesSource.value[o].validationFunction)){let s=this.rolesSource.value[o].validationFunction,l=M({},this.rolesSource.value);return Q(null).pipe(se(()=>s(o,l)),$e(c=>kx(c)?Q(c):c),fi(()=>Q(!1)))}return Q(!1)});return Ot(r).pipe(uo(),gn(o=>o!==!1,!1),se(o=>o!==!1)).toPromise().then(o=>o)}hasRolePermission(i,r){return Ot(r).pipe(Mt(o=>i[o]&&Array.isArray(i[o].validationFunction)?Ot(i[o].validationFunction).pipe(Mt(a=>this.permissionsService.hasPermission(a)),Yw(a=>a===!0)):Q(!1)),gn(o=>o===!0,!1)).toPromise()}};n.\u0275fac=function(r){return new(r||n)(pe(BS),pe(Tx),pe(_u))},n.\u0275prov=O({token:n,factory:n.\u0275fac});let t=n;return t})(),Ih=(()=>{let n=class n{constructor(){this.permissionsAuthorized=new U,this.permissionsUnauthorized=new U,this.firstMergeUnusedRun=1,this.permissionsService=u(_u),this.configurationService=u(LS),this.rolesService=u(Th),this.viewContainer=u(nt),this.changeDetector=u(ye),this.templateRef=u(te)}ngOnInit(){this.viewContainer.clear(),this.initPermissionSubscription=this.validateExceptOnlyPermissions()}ngOnChanges(i){let r=i.ngxPermissionsOnly,o=i.ngxPermissionsExcept;if(r||o){if(r&&r.firstChange||o&&o.firstChange)return;Je(this.permissionsService.permissions$,this.rolesService.roles$).pipe(Ya(this.firstMergeUnusedRun),lt(1)).subscribe(()=>{if(Ex(this.ngxPermissionsExcept)){this.validateExceptAndOnlyPermissions();return}if(Ex(this.ngxPermissionsOnly)){this.validateOnlyPermissions();return}this.handleAuthorisedPermission(this.getAuthorisedTemplates())})}}ngOnDestroy(){this.initPermissionSubscription&&this.initPermissionSubscription.unsubscribe()}validateExceptOnlyPermissions(){return Je(this.permissionsService.permissions$,this.rolesService.roles$).pipe(Ya(this.firstMergeUnusedRun)).subscribe(()=>{if(Ex(this.ngxPermissionsExcept)){this.validateExceptAndOnlyPermissions();return}if(Ex(this.ngxPermissionsOnly)){this.validateOnlyPermissions();return}this.handleAuthorisedPermission(this.getAuthorisedTemplates())})}validateExceptAndOnlyPermissions(){Promise.all([this.permissionsService.hasPermission(this.ngxPermissionsExcept),this.rolesService.hasOnlyRoles(this.ngxPermissionsExcept)]).then(([i,r])=>{if(i||r){this.handleUnauthorisedPermission(this.ngxPermissionsExceptElse||this.ngxPermissionsElse);return}if(this.ngxPermissionsOnly)throw!1;this.handleAuthorisedPermission(this.ngxPermissionsExceptThen||this.ngxPermissionsThen||this.templateRef)}).catch(()=>{this.ngxPermissionsOnly?this.validateOnlyPermissions():this.handleAuthorisedPermission(this.ngxPermissionsExceptThen||this.ngxPermissionsThen||this.templateRef)})}validateOnlyPermissions(){Promise.all([this.permissionsService.hasPermission(this.ngxPermissionsOnly),this.rolesService.hasOnlyRoles(this.ngxPermissionsOnly)]).then(([i,r])=>{i||r?this.handleAuthorisedPermission(this.ngxPermissionsOnlyThen||this.ngxPermissionsThen||this.templateRef):this.handleUnauthorisedPermission(this.ngxPermissionsOnlyElse||this.ngxPermissionsElse)}).catch(()=>{this.handleUnauthorisedPermission(this.ngxPermissionsOnlyElse||this.ngxPermissionsElse)})}handleUnauthorisedPermission(i){if(!(kx(this.currentAuthorizedState)&&!this.currentAuthorizedState)){if(this.currentAuthorizedState=!1,this.permissionsUnauthorized.emit(),this.getUnAuthorizedStrategyInput()){this.applyStrategyAccordingToStrategyType(this.getUnAuthorizedStrategyInput());return}this.configurationService.onUnAuthorisedDefaultStrategy&&!this.elseBlockDefined()?this.applyStrategy(this.configurationService.onUnAuthorisedDefaultStrategy):this.showTemplateBlockInView(i)}}handleAuthorisedPermission(i){if(!(kx(this.currentAuthorizedState)&&this.currentAuthorizedState)){if(this.currentAuthorizedState=!0,this.permissionsAuthorized.emit(),this.getAuthorizedStrategyInput()){this.applyStrategyAccordingToStrategyType(this.getAuthorizedStrategyInput());return}this.configurationService.onAuthorisedDefaultStrategy&&!this.thenBlockDefined()?this.applyStrategy(this.configurationService.onAuthorisedDefaultStrategy):this.showTemplateBlockInView(i)}}applyStrategyAccordingToStrategyType(i){if(ij(i)){this.applyStrategy(i);return}if(io(i)){this.showTemplateBlockInView(this.templateRef),i(this.templateRef);return}}showTemplateBlockInView(i){this.viewContainer.clear(),i&&(this.viewContainer.createEmbeddedView(i),this.changeDetector.markForCheck())}getAuthorisedTemplates(){return this.ngxPermissionsOnlyThen||this.ngxPermissionsExceptThen||this.ngxPermissionsThen||this.templateRef}elseBlockDefined(){return!!this.ngxPermissionsExceptElse||!!this.ngxPermissionsElse}thenBlockDefined(){return!!this.ngxPermissionsExceptThen||!!this.ngxPermissionsThen}getAuthorizedStrategyInput(){return this.ngxPermissionsOnlyAuthorisedStrategy||this.ngxPermissionsExceptAuthorisedStrategy||this.ngxPermissionsAuthorisedStrategy}getUnAuthorizedStrategyInput(){return this.ngxPermissionsOnlyUnauthorisedStrategy||this.ngxPermissionsExceptUnauthorisedStrategy||this.ngxPermissionsUnauthorisedStrategy}applyStrategy(i){if(i===Mx.SHOW){this.showTemplateBlockInView(this.templateRef);return}if(i===Mx.REMOVE){this.viewContainer.clear();return}let r=this.configurationService.getStrategy(i);this.showTemplateBlockInView(this.templateRef),r(this.templateRef)}};n.\u0275fac=function(r){return new(r||n)},n.\u0275dir=F({type:n,selectors:[["","ngxPermissionsOnly",""],["","ngxPermissionsExcept",""]],inputs:{ngxPermissionsOnly:"ngxPermissionsOnly",ngxPermissionsOnlyThen:"ngxPermissionsOnlyThen",ngxPermissionsOnlyElse:"ngxPermissionsOnlyElse",ngxPermissionsExcept:"ngxPermissionsExcept",ngxPermissionsExceptElse:"ngxPermissionsExceptElse",ngxPermissionsExceptThen:"ngxPermissionsExceptThen",ngxPermissionsThen:"ngxPermissionsThen",ngxPermissionsElse:"ngxPermissionsElse",ngxPermissionsOnlyAuthorisedStrategy:"ngxPermissionsOnlyAuthorisedStrategy",ngxPermissionsOnlyUnauthorisedStrategy:"ngxPermissionsOnlyUnauthorisedStrategy",ngxPermissionsExceptUnauthorisedStrategy:"ngxPermissionsExceptUnauthorisedStrategy",ngxPermissionsExceptAuthorisedStrategy:"ngxPermissionsExceptAuthorisedStrategy",ngxPermissionsUnauthorisedStrategy:"ngxPermissionsUnauthorisedStrategy",ngxPermissionsAuthorisedStrategy:"ngxPermissionsAuthorisedStrategy"},outputs:{permissionsAuthorized:"permissionsAuthorized",permissionsUnauthorized:"permissionsUnauthorized"},standalone:!1,features:[Ae]});let t=n;return t})(),ene="default";var ej=(()=>{let n=class n{constructor(i,r,o){this.permissionsService=i,this.rolesService=r,this.router=o}canActivate(i,r){return this.hasPermissions(i,r)}canActivateChild(i,r){return this.hasPermissions(i,r)}canLoad(i){return this.hasPermissions(i)}canMatch(i){return this.hasPermissions(i)}hasPermissions(i,r){let o=i&&i.data?i.data.permissions:{},a=this.transformPermission(o,i,r);return this.isParameterAvailable(a.except)?this.passingExceptPermissionsValidation(a,i,r):this.isParameterAvailable(a.only)?this.passingOnlyPermissionsValidation(a,i,r):!0}transformPermission(i,r,o){let a=io(i.only)?i.only(r,o):Sx(i.only),s=io(i.except)?i.except(r,o):Sx(i.except),l=i.redirectTo;return{only:a,except:s,redirectTo:l}}isParameterAvailable(i){return!!i&&i.length>0}passingExceptPermissionsValidation(i,r,o){if(i.redirectTo&&(io(i.redirectTo)||FS(i.redirectTo)&&!this.isRedirectionWithParameters(i.redirectTo))){let a="";return Ot(i.except).pipe(Mt(s=>Ga([this.permissionsService.hasPermission(s),this.rolesService.hasOnlyRoles(s)]).pipe(Be(l=>{l.every(d=>d===!1)||(a=s)}))),gn(s=>s.some(l=>l===!0),!1),Mt(s=>a?(this.handleRedirectOfFailedPermission(i,a,r,o),Q(!1)):!s&&i.only?this.onlyRedirectCheck(i,r,o):Q(!s))).toPromise()}return Promise.all([this.permissionsService.hasPermission(i.except),this.rolesService.hasOnlyRoles(i.except)]).then(([a,s])=>a||s?(i.redirectTo&&this.redirectToAnotherRoute(i.redirectTo,r,o),!1):i.only?this.checkOnlyPermissions(i,r,o):!0)}redirectToAnotherRoute(i,r,o,a){let s=io(i)?i(a,r,o):i;if(this.isRedirectionWithParameters(s)){s.navigationCommands=this.transformNavigationCommands(s.navigationCommands,r,o),s.navigationExtras=this.transformNavigationExtras(s.navigationExtras,r,o),this.router.navigate(s.navigationCommands,s.navigationExtras);return}Array.isArray(s)?this.router.navigate(s):this.router.navigate([s])}isRedirectionWithParameters(i){return FS(i)&&(!!i.navigationCommands||!!i.navigationExtras)}transformNavigationCommands(i,r,o){return io(i)?i(r,o):i}transformNavigationExtras(i,r,o){return io(i)?i(r,o):i}onlyRedirectCheck(i,r,o){let a="";return Ot(i.only).pipe(Mt(s=>Ga([this.permissionsService.hasPermission(s),this.rolesService.hasOnlyRoles(s)]).pipe(Be(l=>{l.every(d=>d===!1)&&(a=s)}))),gn(s=>io(i.redirectTo)?s.some(l=>l===!0):s.every(l=>l===!1),!1),Mt(s=>io(i.redirectTo)?s?Q(!0):(this.handleRedirectOfFailedPermission(i,a,r,o),Q(!1)):(a&&this.handleRedirectOfFailedPermission(i,a,r,o),Q(!s)))).toPromise()}handleRedirectOfFailedPermission(i,r,o,a){this.isFailedPermissionPropertyOfRedirectTo(i,r)?this.redirectToAnotherRoute(i.redirectTo[r],o,a,r):io(i.redirectTo)?this.redirectToAnotherRoute(i.redirectTo,o,a,r):this.redirectToAnotherRoute(i.redirectTo[ene],o,a,r)}isFailedPermissionPropertyOfRedirectTo(i,r){return!!i.redirectTo&&i.redirectTo[r]}checkOnlyPermissions(i,r,o){let a=M({},i);return Promise.all([this.permissionsService.hasPermission(a.only),this.rolesService.hasOnlyRoles(a.only)]).then(([s,l])=>s||l?!0:(a.redirectTo&&this.redirectToAnotherRoute(a.redirectTo,r,o),!1))}passingOnlyPermissionsValidation(i,r,o){return io(i.redirectTo)||FS(i.redirectTo)&&!this.isRedirectionWithParameters(i.redirectTo)?this.onlyRedirectCheck(i,r,o):this.checkOnlyPermissions(i,r,o)}};n.\u0275fac=function(r){return new(r||n)(pe(_u),pe(Th),pe(Re))},n.\u0275prov=O({token:n,factory:n.\u0275fac});let t=n;return t})();var xc=(()=>{let n=class n{static forRoot(i={}){return{ngModule:n,providers:[nj,Tx,tj,_u,ej,Th,LS,{provide:VS,useValue:i.permissionsIsolate},{provide:BS,useValue:i.rolesIsolate},{provide:NS,useValue:i.configurationIsolate}]}}static forChild(i={}){return{ngModule:n,providers:[{provide:VS,useValue:i.permissionsIsolate},{provide:BS,useValue:i.rolesIsolate},{provide:NS,useValue:i.configurationIsolate},LS,_u,Th,ej]}}};n.\u0275fac=function(r){return new(r||n)},n.\u0275mod=ee({type:n}),n.\u0275inj=J({});let t=n;return t})();function Ng(t){return t+.5|0}var Cc=(t,n,e)=>Math.max(Math.min(t,e),n);function Pg(t){return Cc(Ng(t*2.55),0,255)}function wc(t){return Cc(Ng(t*255),0,255)}function pl(t){return Cc(Ng(t/2.55)/100,0,1)}function rj(t){return Cc(Ng(t*100),0,100)}var na={0:0,1:1,2:2,3:3,4:4,5:5,6:6,7:7,8:8,9:9,A:10,B:11,C:12,D:13,E:14,F:15,a:10,b:11,c:12,d:13,e:14,f:15},zS=[..."0123456789ABCDEF"],tne=t=>zS[t&15],ine=t=>zS[(t&240)>>4]+zS[t&15],Ix=t=>(t&240)>>4===(t&15),nne=t=>Ix(t.r)&&Ix(t.g)&&Ix(t.b)&&Ix(t.a);function rne(t){var n=t.length,e;return t[0]==="#"&&(n===4||n===5?e={r:255&na[t[1]]*17,g:255&na[t[2]]*17,b:255&na[t[3]]*17,a:n===5?na[t[4]]*17:255}:(n===7||n===9)&&(e={r:na[t[1]]<<4|na[t[2]],g:na[t[3]]<<4|na[t[4]],b:na[t[5]]<<4|na[t[6]],a:n===9?na[t[7]]<<4|na[t[8]]:255})),e}var one=(t,n)=>t<255?n(t):"";function ane(t){var n=nne(t)?tne:ine;return t?"#"+n(t.r)+n(t.g)+n(t.b)+one(t.a,n):void 0}var sne=/^(hsla?|hwb|hsv)\(\s*([-+.e\d]+)(?:deg)?[\s,]+([-+.e\d]+)%[\s,]+([-+.e\d]+)%(?:[\s,]+([-+.e\d]+)(%)?)?\s*\)$/;function lj(t,n,e){let i=n*Math.min(e,1-e),r=(o,a=(o+t/30)%12)=>e-i*Math.max(Math.min(a-3,9-a,1),-1);return[r(0),r(8),r(4)]}function lne(t,n,e){let i=(r,o=(r+t/60)%6)=>e-e*n*Math.max(Math.min(o,4-o,1),0);return[i(5),i(3),i(1)]}function cne(t,n,e){let i=lj(t,1,.5),r;for(n+e>1&&(r=1/(n+e),n*=r,e*=r),r=0;r<3;r++)i[r]*=1-n-e,i[r]+=n;return i}function dne(t,n,e,i,r){return t===r?(n-e)/i+(n.5?d/(2-o-a):d/(o+a),l=dne(e,i,r,d,o),l=l*60+.5),[l|0,c||0,s]}function $S(t,n,e,i){return(Array.isArray(n)?t(n[0],n[1],n[2]):t(n,e,i)).map(wc)}function WS(t,n,e){return $S(lj,t,n,e)}function une(t,n,e){return $S(cne,t,n,e)}function mne(t,n,e){return $S(lne,t,n,e)}function cj(t){return(t%360+360)%360}function hne(t){let n=sne.exec(t),e=255,i;if(!n)return;n[5]!==i&&(e=n[6]?Pg(+n[5]):wc(+n[5]));let r=cj(+n[2]),o=+n[3]/100,a=+n[4]/100;return n[1]==="hwb"?i=une(r,o,a):n[1]==="hsv"?i=mne(r,o,a):i=WS(r,o,a),{r:i[0],g:i[1],b:i[2],a:e}}function pne(t,n){var e=US(t);e[0]=cj(e[0]+n),e=WS(e),t.r=e[0],t.g=e[1],t.b=e[2]}function fne(t){if(!t)return;let n=US(t),e=n[0],i=rj(n[1]),r=rj(n[2]);return t.a<255?`hsla(${e}, ${i}%, ${r}%, ${pl(t.a)})`:`hsl(${e}, ${i}%, ${r}%)`}var oj={x:"dark",Z:"light",Y:"re",X:"blu",W:"gr",V:"medium",U:"slate",A:"ee",T:"ol",S:"or",B:"ra",C:"lateg",D:"ights",R:"in",Q:"turquois",E:"hi",P:"ro",O:"al",N:"le",M:"de",L:"yello",F:"en",K:"ch",G:"arks",H:"ea",I:"ightg",J:"wh"},aj={OiceXe:"f0f8ff",antiquewEte:"faebd7",aqua:"ffff",aquamarRe:"7fffd4",azuY:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"0",blanKedOmond:"ffebcd",Xe:"ff",XeviTet:"8a2be2",bPwn:"a52a2a",burlywood:"deb887",caMtXe:"5f9ea0",KartYuse:"7fff00",KocTate:"d2691e",cSO:"ff7f50",cSnflowerXe:"6495ed",cSnsilk:"fff8dc",crimson:"dc143c",cyan:"ffff",xXe:"8b",xcyan:"8b8b",xgTMnPd:"b8860b",xWay:"a9a9a9",xgYF:"6400",xgYy:"a9a9a9",xkhaki:"bdb76b",xmagFta:"8b008b",xTivegYF:"556b2f",xSange:"ff8c00",xScEd:"9932cc",xYd:"8b0000",xsOmon:"e9967a",xsHgYF:"8fbc8f",xUXe:"483d8b",xUWay:"2f4f4f",xUgYy:"2f4f4f",xQe:"ced1",xviTet:"9400d3",dAppRk:"ff1493",dApskyXe:"bfff",dimWay:"696969",dimgYy:"696969",dodgerXe:"1e90ff",fiYbrick:"b22222",flSOwEte:"fffaf0",foYstWAn:"228b22",fuKsia:"ff00ff",gaRsbSo:"dcdcdc",ghostwEte:"f8f8ff",gTd:"ffd700",gTMnPd:"daa520",Way:"808080",gYF:"8000",gYFLw:"adff2f",gYy:"808080",honeyMw:"f0fff0",hotpRk:"ff69b4",RdianYd:"cd5c5c",Rdigo:"4b0082",ivSy:"fffff0",khaki:"f0e68c",lavFMr:"e6e6fa",lavFMrXsh:"fff0f5",lawngYF:"7cfc00",NmoncEffon:"fffacd",ZXe:"add8e6",ZcSO:"f08080",Zcyan:"e0ffff",ZgTMnPdLw:"fafad2",ZWay:"d3d3d3",ZgYF:"90ee90",ZgYy:"d3d3d3",ZpRk:"ffb6c1",ZsOmon:"ffa07a",ZsHgYF:"20b2aa",ZskyXe:"87cefa",ZUWay:"778899",ZUgYy:"778899",ZstAlXe:"b0c4de",ZLw:"ffffe0",lime:"ff00",limegYF:"32cd32",lRF:"faf0e6",magFta:"ff00ff",maPon:"800000",VaquamarRe:"66cdaa",VXe:"cd",VScEd:"ba55d3",VpurpN:"9370db",VsHgYF:"3cb371",VUXe:"7b68ee",VsprRggYF:"fa9a",VQe:"48d1cc",VviTetYd:"c71585",midnightXe:"191970",mRtcYam:"f5fffa",mistyPse:"ffe4e1",moccasR:"ffe4b5",navajowEte:"ffdead",navy:"80",Tdlace:"fdf5e6",Tive:"808000",TivedBb:"6b8e23",Sange:"ffa500",SangeYd:"ff4500",ScEd:"da70d6",pOegTMnPd:"eee8aa",pOegYF:"98fb98",pOeQe:"afeeee",pOeviTetYd:"db7093",papayawEp:"ffefd5",pHKpuff:"ffdab9",peru:"cd853f",pRk:"ffc0cb",plum:"dda0dd",powMrXe:"b0e0e6",purpN:"800080",YbeccapurpN:"663399",Yd:"ff0000",Psybrown:"bc8f8f",PyOXe:"4169e1",saddNbPwn:"8b4513",sOmon:"fa8072",sandybPwn:"f4a460",sHgYF:"2e8b57",sHshell:"fff5ee",siFna:"a0522d",silver:"c0c0c0",skyXe:"87ceeb",UXe:"6a5acd",UWay:"708090",UgYy:"708090",snow:"fffafa",sprRggYF:"ff7f",stAlXe:"4682b4",tan:"d2b48c",teO:"8080",tEstN:"d8bfd8",tomato:"ff6347",Qe:"40e0d0",viTet:"ee82ee",JHt:"f5deb3",wEte:"ffffff",wEtesmoke:"f5f5f5",Lw:"ffff00",LwgYF:"9acd32"};function gne(){let t={},n=Object.keys(aj),e=Object.keys(oj),i,r,o,a,s;for(i=0;i>16&255,o>>8&255,o&255]}return t}var Ax;function _ne(t){Ax||(Ax=gne(),Ax.transparent=[0,0,0,0]);let n=Ax[t.toLowerCase()];return n&&{r:n[0],g:n[1],b:n[2],a:n.length===4?n[3]:255}}var bne=/^rgba?\(\s*([-+.\d]+)(%)?[\s,]+([-+.e\d]+)(%)?[\s,]+([-+.e\d]+)(%)?(?:[\s,/]+([-+.e\d]+)(%)?)?\s*\)$/;function vne(t){let n=bne.exec(t),e=255,i,r,o;if(n){if(n[7]!==i){let a=+n[7];e=n[8]?Pg(a):Cc(a*255,0,255)}return i=+n[1],r=+n[3],o=+n[5],i=255&(n[2]?Pg(i):Cc(i,0,255)),r=255&(n[4]?Pg(r):Cc(r,0,255)),o=255&(n[6]?Pg(o):Cc(o,0,255)),{r:i,g:r,b:o,a:e}}}function yne(t){return t&&(t.a<255?`rgba(${t.r}, ${t.g}, ${t.b}, ${pl(t.a)})`:`rgb(${t.r}, ${t.g}, ${t.b})`)}var HS=t=>t<=.0031308?t*12.92:Math.pow(t,1/2.4)*1.055-.055,Ah=t=>t<=.04045?t/12.92:Math.pow((t+.055)/1.055,2.4);function xne(t,n,e){let i=Ah(pl(t.r)),r=Ah(pl(t.g)),o=Ah(pl(t.b));return{r:wc(HS(i+e*(Ah(pl(n.r))-i))),g:wc(HS(r+e*(Ah(pl(n.g))-r))),b:wc(HS(o+e*(Ah(pl(n.b))-o))),a:t.a+e*(n.a-t.a)}}function Ox(t,n,e){if(t){let i=US(t);i[n]=Math.max(0,Math.min(i[n]+i[n]*e,n===0?360:1)),i=WS(i),t.r=i[0],t.g=i[1],t.b=i[2]}}function dj(t,n){return t&&Object.assign(n||{},t)}function sj(t){var n={r:0,g:0,b:0,a:255};return Array.isArray(t)?t.length>=3&&(n={r:t[0],g:t[1],b:t[2],a:255},t.length>3&&(n.a=wc(t[3]))):(n=dj(t,{r:0,g:0,b:0,a:1}),n.a=wc(n.a)),n}function Cne(t){return t.charAt(0)==="r"?vne(t):hne(t)}var Fg=class t{constructor(n){if(n instanceof t)return n;let e=typeof n,i;e==="object"?i=sj(n):e==="string"&&(i=rne(n)||_ne(n)||Cne(n)),this._rgb=i,this._valid=!!i}get valid(){return this._valid}get rgb(){var n=dj(this._rgb);return n&&(n.a=pl(n.a)),n}set rgb(n){this._rgb=sj(n)}rgbString(){return this._valid?yne(this._rgb):void 0}hexString(){return this._valid?ane(this._rgb):void 0}hslString(){return this._valid?fne(this._rgb):void 0}mix(n,e){if(n){let i=this.rgb,r=n.rgb,o,a=e===o?.5:e,s=2*a-1,l=i.a-r.a,c=((s*l===-1?s:(s+l)/(1+s*l))+1)/2;o=1-c,i.r=255&c*i.r+o*r.r+.5,i.g=255&c*i.g+o*r.g+.5,i.b=255&c*i.b+o*r.b+.5,i.a=a*i.a+(1-a)*r.a,this.rgb=i}return this}interpolate(n,e){return n&&(this._rgb=xne(this._rgb,n._rgb,e)),this}clone(){return new t(this.rgb)}alpha(n){return this._rgb.a=wc(n),this}clearer(n){let e=this._rgb;return e.a*=1-n,this}greyscale(){let n=this._rgb,e=Ng(n.r*.3+n.g*.59+n.b*.11);return n.r=n.g=n.b=e,this}opaquer(n){let e=this._rgb;return e.a*=1+n,this}negate(){let n=this._rgb;return n.r=255-n.r,n.g=255-n.g,n.b=255-n.b,this}lighten(n){return Ox(this._rgb,2,n),this}darken(n){return Ox(this._rgb,2,-n),this}saturate(n){return Ox(this._rgb,1,n),this}desaturate(n){return Ox(this._rgb,1,-n),this}rotate(n){return pne(this._rgb,n),this}};function Ts(){}var xj=(()=>{let t=0;return()=>t++})();function Et(t){return t==null}function Ei(t){if(Array.isArray&&Array.isArray(t))return!0;let n=Object.prototype.toString.call(t);return n.slice(0,7)==="[object"&&n.slice(-6)==="Array]"}function St(t){return t!==null&&Object.prototype.toString.call(t)==="[object Object]"}function Gi(t){return(typeof t=="number"||t instanceof Number)&&isFinite(+t)}function no(t,n){return Gi(t)?t:n}function st(t,n){return typeof t>"u"?n:t}var Cj=(t,n)=>typeof t=="string"&&t.endsWith("%")?parseFloat(t)/100:+t/n,QS=(t,n)=>typeof t=="string"&&t.endsWith("%")?parseFloat(t)/100*n:+t;function yi(t,n,e){if(t&&typeof t.call=="function")return t.apply(e,n)}function ii(t,n,e,i){let r,o,a;if(Ei(t))if(o=t.length,i)for(r=o-1;r>=0;r--)n.call(e,t[r],r);else for(r=0;rt,x:t=>t.x,y:t=>t.y};function Ene(t){let n=t.split("."),e=[],i="";for(let r of n)i+=r,i.endsWith("\\")?i=i.slice(0,-1)+".":(e.push(i),i="");return e}function Mne(t){let n=Ene(t);return e=>{for(let i of n){if(i==="")break;e=e&&e[i]}return e}}function _l(t,n){return(uj[n]||(uj[n]=Mne(n)))(t)}function jx(t){return t.charAt(0).toUpperCase()+t.slice(1)}var Nh=t=>typeof t<"u",fl=t=>typeof t=="function",KS=(t,n)=>{if(t.size!==n.size)return!1;for(let e of t)if(!n.has(e))return!1;return!0};function Dj(t){return t.type==="mouseup"||t.type==="click"||t.type==="contextmenu"}var Ht=Math.PI,Mi=2*Ht,kne=Mi+Ht,Lx=Number.POSITIVE_INFINITY,Sne=Ht/180,Zi=Ht/2,bu=Ht/4,mj=Ht*2/3,gl=Math.log10,Ba=Math.sign;function Lh(t,n,e){return Math.abs(t-n)r-o).pop(),n}function Tne(t){return typeof t=="symbol"||typeof t=="object"&&t!==null&&!(Symbol.toPrimitive in t||"toString"in t||"valueOf"in t)}function xu(t){return!Tne(t)&&!isNaN(parseFloat(t))&&isFinite(t)}function Mj(t,n){let e=Math.round(t);return e-n<=t&&e+n>=t}function XS(t,n,e){let i,r,o;for(i=0,r=t.length;il&&c=Math.min(n,e)-i&&t<=Math.max(n,e)+i}function zx(t,n,e){e=e||(a=>t[a]1;)o=r+i>>1,e(o)?r=o:i=o;return{lo:r,hi:i}}var ks=(t,n,e,i)=>zx(t,e,i?r=>{let o=t[r][n];return ot[r][n]zx(t,e,i=>t[i][n]>=e);function Tj(t,n,e){let i=0,r=t.length;for(;ii&&t[r-1]>e;)r--;return i>0||r{let i="_onData"+jx(e),r=t[e];Object.defineProperty(t,e,{configurable:!0,enumerable:!1,value(...o){let a=r.apply(this,o);return t._chartjs.listeners.forEach(s=>{typeof s[i]=="function"&&s[i](...o)}),a}})})}function tT(t,n){let e=t._chartjs;if(!e)return;let i=e.listeners,r=i.indexOf(n);r!==-1&&i.splice(r,1),!(i.length>0)&&(Ij.forEach(o=>{delete t[o]}),delete t._chartjs)}function iT(t){let n=new Set(t);return n.size===t.length?t:Array.from(n)}var nT=(function(){return typeof window>"u"?function(t){return t()}:window.requestAnimationFrame})();function rT(t,n){let e=[],i=!1;return function(...r){e=r,i||(i=!0,nT.call(window,()=>{i=!1,t.apply(n,e)}))}}function Oj(t,n){let e;return function(...i){return n?(clearTimeout(e),e=setTimeout(t,n,i)):t.apply(this,i),n}}var Ux=t=>t==="start"?"left":t==="end"?"right":"center",ar=(t,n,e)=>t==="start"?n:t==="end"?e:(n+e)/2,Rj=(t,n,e,i)=>t===(i?"left":"right")?e:t==="center"?(n+e)/2:n;function oT(t,n,e){let i=n.length,r=0,o=i;if(t._sorted){let{iScale:a,vScale:s,_parsed:l}=t,c=t.dataset&&t.dataset.options?t.dataset.options.spanGaps:null,d=a.axis,{min:m,max:f,minDefined:b,maxDefined:v}=a.getUserBounds();if(b){if(r=Math.min(ks(l,d,m).lo,e?i:ks(n,d,a.getPixelForValue(m)).lo),c){let w=l.slice(0,r+1).reverse().findIndex(x=>!Et(x[s.axis]));r-=Math.max(0,w)}r=Dn(r,0,i-1)}if(v){let w=Math.max(ks(l,a.axis,f,!0).hi+1,e?0:ks(n,d,a.getPixelForValue(f),!0).hi+1);if(c){let x=l.slice(w-1).findIndex(D=>!Et(D[s.axis]));w+=Math.max(0,x)}o=Dn(w,r,i)-r}else o=i-r}return{start:r,count:o}}function aT(t){let{xScale:n,yScale:e,_scaleRanges:i}=t,r={xmin:n.min,xmax:n.max,ymin:e.min,ymax:e.max};if(!i)return t._scaleRanges=r,!0;let o=i.xmin!==n.min||i.xmax!==n.max||i.ymin!==e.min||i.ymax!==e.max;return Object.assign(i,r),o}var Rx=t=>t===0||t===1,hj=(t,n,e)=>-(Math.pow(2,10*(t-=1))*Math.sin((t-n)*Mi/e)),pj=(t,n,e)=>Math.pow(2,-10*t)*Math.sin((t-n)*Mi/e)+1,Oh={linear:t=>t,easeInQuad:t=>t*t,easeOutQuad:t=>-t*(t-2),easeInOutQuad:t=>(t/=.5)<1?.5*t*t:-.5*(--t*(t-2)-1),easeInCubic:t=>t*t*t,easeOutCubic:t=>(t-=1)*t*t+1,easeInOutCubic:t=>(t/=.5)<1?.5*t*t*t:.5*((t-=2)*t*t+2),easeInQuart:t=>t*t*t*t,easeOutQuart:t=>-((t-=1)*t*t*t-1),easeInOutQuart:t=>(t/=.5)<1?.5*t*t*t*t:-.5*((t-=2)*t*t*t-2),easeInQuint:t=>t*t*t*t*t,easeOutQuint:t=>(t-=1)*t*t*t*t+1,easeInOutQuint:t=>(t/=.5)<1?.5*t*t*t*t*t:.5*((t-=2)*t*t*t*t+2),easeInSine:t=>-Math.cos(t*Zi)+1,easeOutSine:t=>Math.sin(t*Zi),easeInOutSine:t=>-.5*(Math.cos(Ht*t)-1),easeInExpo:t=>t===0?0:Math.pow(2,10*(t-1)),easeOutExpo:t=>t===1?1:-Math.pow(2,-10*t)+1,easeInOutExpo:t=>Rx(t)?t:t<.5?.5*Math.pow(2,10*(t*2-1)):.5*(-Math.pow(2,-10*(t*2-1))+2),easeInCirc:t=>t>=1?t:-(Math.sqrt(1-t*t)-1),easeOutCirc:t=>Math.sqrt(1-(t-=1)*t),easeInOutCirc:t=>(t/=.5)<1?-.5*(Math.sqrt(1-t*t)-1):.5*(Math.sqrt(1-(t-=2)*t)+1),easeInElastic:t=>Rx(t)?t:hj(t,.075,.3),easeOutElastic:t=>Rx(t)?t:pj(t,.075,.3),easeInOutElastic(t){return Rx(t)?t:t<.5?.5*hj(t*2,.1125,.45):.5+.5*pj(t*2-1,.1125,.45)},easeInBack(t){return t*t*((1.70158+1)*t-1.70158)},easeOutBack(t){return(t-=1)*t*((1.70158+1)*t+1.70158)+1},easeInOutBack(t){let n=1.70158;return(t/=.5)<1?.5*(t*t*(((n*=1.525)+1)*t-n)):.5*((t-=2)*t*(((n*=1.525)+1)*t+n)+2)},easeInBounce:t=>1-Oh.easeOutBounce(1-t),easeOutBounce(t){return t<1/2.75?7.5625*t*t:t<2/2.75?7.5625*(t-=1.5/2.75)*t+.75:t<2.5/2.75?7.5625*(t-=2.25/2.75)*t+.9375:7.5625*(t-=2.625/2.75)*t+.984375},easeInOutBounce:t=>t<.5?Oh.easeInBounce(t*2)*.5:Oh.easeOutBounce(t*2-1)*.5+.5};function sT(t){if(t&&typeof t=="object"){let n=t.toString();return n==="[object CanvasPattern]"||n==="[object CanvasGradient]"}return!1}function lT(t){return sT(t)?t:new Fg(t)}function GS(t){return sT(t)?t:new Fg(t).saturate(.5).darken(.1).hexString()}var Ane=["x","y","borderWidth","radius","tension"],One=["color","borderColor","backgroundColor"];function Rne(t){t.set("animation",{delay:void 0,duration:1e3,easing:"easeOutQuart",fn:void 0,from:void 0,loop:void 0,to:void 0,type:void 0}),t.describe("animation",{_fallback:!1,_indexable:!1,_scriptable:n=>n!=="onProgress"&&n!=="onComplete"&&n!=="fn"}),t.set("animations",{colors:{type:"color",properties:One},numbers:{type:"number",properties:Ane}}),t.describe("animations",{_fallback:"animation"}),t.set("transitions",{active:{animation:{duration:400}},resize:{animation:{duration:0}},show:{animations:{colors:{from:"transparent"},visible:{type:"boolean",duration:0}}},hide:{animations:{colors:{to:"transparent"},visible:{type:"boolean",easing:"linear",fn:n=>n|0}}}})}function Pne(t){t.set("layout",{autoPadding:!0,padding:{top:0,right:0,bottom:0,left:0}})}var fj=new Map;function Fne(t,n){n=n||{};let e=t+JSON.stringify(n),i=fj.get(e);return i||(i=new Intl.NumberFormat(t,n),fj.set(e,i)),i}function Bh(t,n,e){return Fne(n,e).format(t)}var Pj={values(t){return Ei(t)?t:""+t},numeric(t,n,e){if(t===0)return"0";let i=this.chart.options.locale,r,o=t;if(e.length>1){let c=Math.max(Math.abs(e[0].value),Math.abs(e[e.length-1].value));(c<1e-4||c>1e15)&&(r="scientific"),o=Nne(t,e)}let a=gl(Math.abs(o)),s=isNaN(a)?1:Math.max(Math.min(-1*Math.floor(a),20),0),l={notation:r,minimumFractionDigits:s,maximumFractionDigits:s};return Object.assign(l,this.options.ticks.format),Bh(t,i,l)},logarithmic(t,n,e){if(t===0)return"0";let i=e[n].significand||t/Math.pow(10,Math.floor(gl(t)));return[1,2,3,5,10,15].includes(i)||n>.8*e.length?Pj.numeric.call(this,t,n,e):""}};function Nne(t,n){let e=n.length>3?n[2].value-n[1].value:n[1].value-n[0].value;return Math.abs(e)>=1&&t!==Math.floor(t)&&(e=t-Math.floor(t)),e}var jg={formatters:Pj};function Lne(t){t.set("scale",{display:!0,offset:!1,reverse:!1,beginAtZero:!1,bounds:"ticks",clip:!0,grace:0,grid:{display:!0,lineWidth:1,drawOnChartArea:!0,drawTicks:!0,tickLength:8,tickWidth:(n,e)=>e.lineWidth,tickColor:(n,e)=>e.color,offset:!1},border:{display:!0,dash:[],dashOffset:0,width:1},title:{display:!1,text:"",padding:{top:4,bottom:4}},ticks:{minRotation:0,maxRotation:50,mirror:!1,textStrokeWidth:0,textStrokeColor:"",padding:3,display:!0,autoSkip:!0,autoSkipPadding:3,labelOffset:0,callback:jg.formatters.values,minor:{},major:{},align:"center",crossAlign:"near",showLabelBackdrop:!1,backdropColor:"rgba(255, 255, 255, 0.75)",backdropPadding:2}}),t.route("scale.ticks","color","","color"),t.route("scale.grid","color","","borderColor"),t.route("scale.border","color","","borderColor"),t.route("scale.title","color","","color"),t.describe("scale",{_fallback:!1,_scriptable:n=>!n.startsWith("before")&&!n.startsWith("after")&&n!=="callback"&&n!=="parser",_indexable:n=>n!=="borderDash"&&n!=="tickBorderDash"&&n!=="dash"}),t.describe("scales",{_fallback:"scale"}),t.describe("scale.ticks",{_scriptable:n=>n!=="backdropPadding"&&n!=="callback",_indexable:n=>n!=="backdropPadding"})}var Mc=Object.create(null),$x=Object.create(null);function Lg(t,n){if(!n)return t;let e=n.split(".");for(let i=0,r=e.length;ii.chart.platform.getDevicePixelRatio(),this.elements={},this.events=["mousemove","mouseout","click","touchstart","touchmove"],this.font={family:"'Helvetica Neue', 'Helvetica', 'Arial', sans-serif",size:12,style:"normal",lineHeight:1.2,weight:null},this.hover={},this.hoverBackgroundColor=(i,r)=>GS(r.backgroundColor),this.hoverBorderColor=(i,r)=>GS(r.borderColor),this.hoverColor=(i,r)=>GS(r.color),this.indexAxis="x",this.interaction={mode:"nearest",intersect:!0,includeInvisible:!1},this.maintainAspectRatio=!0,this.onHover=null,this.onClick=null,this.parsing=!0,this.plugins={},this.responsive=!0,this.scale=void 0,this.scales={},this.showLine=!0,this.drawActiveElementsOnTop=!0,this.describe(n),this.apply(e)}set(n,e){return qS(this,n,e)}get(n){return Lg(this,n)}describe(n,e){return qS($x,n,e)}override(n,e){return qS(Mc,n,e)}route(n,e,i,r){let o=Lg(this,n),a=Lg(this,i),s="_"+e;Object.defineProperties(o,{[s]:{value:o[e],writable:!0},[e]:{enumerable:!0,get(){let l=this[s],c=a[r];return St(l)?Object.assign({},c,l):st(l,c)},set(l){this[s]=l}}})}apply(n){n.forEach(e=>e(this))}},xi=new YS({_scriptable:t=>!t.startsWith("on"),_indexable:t=>t!=="events",hover:{_fallback:"interaction"},interaction:{_scriptable:!1,_indexable:!1}},[Rne,Pne,Lne]);function Vne(t){return!t||Et(t.size)||Et(t.family)?null:(t.style?t.style+" ":"")+(t.weight?t.weight+" ":"")+t.size+"px "+t.family}function Vg(t,n,e,i,r){let o=n[r];return o||(o=n[r]=t.measureText(r).width,e.push(r)),o>i&&(i=o),i}function Fj(t,n,e,i){i=i||{};let r=i.data=i.data||{},o=i.garbageCollect=i.garbageCollect||[];i.font!==n&&(r=i.data={},o=i.garbageCollect=[],i.font=n),t.save(),t.font=n;let a=0,s=e.length,l,c,d,m,f;for(l=0;le.length){for(l=0;l0&&t.stroke()}}function Ss(t,n,e){return e=e||.5,!n||t&&t.x>n.left-e&&t.xn.top-e&&t.y0&&o.strokeColor!=="",l,c;for(t.save(),t.font=r.string,Bne(t,o),l=0;l+t||0;function Gx(t,n){let e={},i=St(n),r=i?Object.keys(n):n,o=St(t)?i?a=>st(t[a],t[n[a]]):a=>t[a]:()=>t;for(let a of r)e[a]=Wne(o(a));return e}function uT(t){return Gx(t,{top:"y",right:"x",bottom:"y",left:"x"})}function Tc(t){return Gx(t,["topLeft","topRight","bottomLeft","bottomRight"])}function sr(t){let n=uT(t);return n.width=n.left+n.right,n.height=n.top+n.bottom,n}function pn(t,n){t=t||{},n=n||xi.font;let e=st(t.size,n.size);typeof e=="string"&&(e=parseInt(e,10));let i=st(t.style,n.style);i&&!(""+i).match(Une)&&(console.warn('Invalid font style specified: "'+i+'"'),i=void 0);let r={family:st(t.family,n.family),lineHeight:$ne(st(t.lineHeight,n.lineHeight),e),size:e,style:i,weight:st(t.weight,n.weight),string:""};return r.string=Vne(r),r}function Hh(t,n,e,i){let r=!0,o,a,s;for(o=0,a=t.length;oe&&s===0?0:s+l;return{min:a(i,-Math.abs(o)),max:a(r,o)}}function bl(t,n){return Object.assign(Object.create(t),n)}function qx(t,n=[""],e,i,r=()=>t[0]){let o=e||t;typeof i>"u"&&(i=Hj("_fallback",t));let a={[Symbol.toStringTag]:"Object",_cacheable:!0,_scopes:t,_rootScopes:o,_fallback:i,_getTarget:r,override:s=>qx([s,...t],n,o,i)};return new Proxy(a,{deleteProperty(s,l){return delete s[l],delete s._keys,delete t[0][l],!0},get(s,l){return Bj(s,l,()=>Jne(l,n,t,s))},getOwnPropertyDescriptor(s,l){return Reflect.getOwnPropertyDescriptor(s._scopes[0],l)},getPrototypeOf(){return Reflect.getPrototypeOf(t[0])},has(s,l){return _j(s).includes(l)},ownKeys(s){return _j(s)},set(s,l,c){let d=s._storage||(s._storage=r());return s[l]=d[l]=c,delete s._keys,!0}})}function yu(t,n,e,i){let r={_cacheable:!1,_proxy:t,_context:n,_subProxy:e,_stack:new Set,_descriptors:mT(t,i),setContext:o=>yu(t,o,e,i),override:o=>yu(t.override(o),n,e,i)};return new Proxy(r,{deleteProperty(o,a){return delete o[a],delete t[a],!0},get(o,a,s){return Bj(o,a,()=>qne(o,a,s))},getOwnPropertyDescriptor(o,a){return o._descriptors.allKeys?Reflect.has(t,a)?{enumerable:!0,configurable:!0}:void 0:Reflect.getOwnPropertyDescriptor(t,a)},getPrototypeOf(){return Reflect.getPrototypeOf(t)},has(o,a){return Reflect.has(t,a)},ownKeys(){return Reflect.ownKeys(t)},set(o,a,s){return t[a]=s,delete o[a],!0}})}function mT(t,n={scriptable:!0,indexable:!0}){let{_scriptable:e=n.scriptable,_indexable:i=n.indexable,_allKeys:r=n.allKeys}=t;return{allKeys:r,scriptable:e,indexable:i,isScriptable:fl(e)?e:()=>e,isIndexable:fl(i)?i:()=>i}}var Gne=(t,n)=>t?t+jx(n):n,hT=(t,n)=>St(n)&&t!=="adapters"&&(Object.getPrototypeOf(n)===null||n.constructor===Object);function Bj(t,n,e){if(Object.prototype.hasOwnProperty.call(t,n)||n==="constructor")return t[n];let i=e();return t[n]=i,i}function qne(t,n,e){let{_proxy:i,_context:r,_subProxy:o,_descriptors:a}=t,s=i[n];return fl(s)&&a.isScriptable(n)&&(s=Yne(n,s,t,e)),Ei(s)&&s.length&&(s=Qne(n,s,t,a.isIndexable)),hT(n,s)&&(s=yu(s,r,o&&o[n],a)),s}function Yne(t,n,e,i){let{_proxy:r,_context:o,_subProxy:a,_stack:s}=e;if(s.has(t))throw new Error("Recursion detected: "+Array.from(s).join("->")+"->"+t);s.add(t);let l=n(o,a||i);return s.delete(t),hT(t,l)&&(l=pT(r._scopes,r,t,l)),l}function Qne(t,n,e,i){let{_proxy:r,_context:o,_subProxy:a,_descriptors:s}=e;if(typeof o.index<"u"&&i(t))return n[o.index%n.length];if(St(n[0])){let l=n,c=r._scopes.filter(d=>d!==l);n=[];for(let d of l){let m=pT(c,r,t,d);n.push(yu(m,o,a&&a[t],s))}}return n}function jj(t,n,e){return fl(t)?t(n,e):t}var Kne=(t,n)=>t===!0?n:typeof t=="string"?_l(n,t):void 0;function Zne(t,n,e,i,r){for(let o of n){let a=Kne(e,o);if(a){t.add(a);let s=jj(a._fallback,e,r);if(typeof s<"u"&&s!==e&&s!==i)return s}else if(a===!1&&typeof i<"u"&&e!==i)return null}return!1}function pT(t,n,e,i){let r=n._rootScopes,o=jj(n._fallback,e,i),a=[...t,...r],s=new Set;s.add(i);let l=gj(s,a,e,o||e,i);return l===null||typeof o<"u"&&o!==e&&(l=gj(s,a,o,l,i),l===null)?!1:qx(Array.from(s),[""],r,o,()=>Xne(n,e,i))}function gj(t,n,e,i,r){for(;e;)e=Zne(t,n,e,i,r);return e}function Xne(t,n,e){let i=t._getTarget();n in i||(i[n]={});let r=i[n];return Ei(r)&&St(e)?e:r||{}}function Jne(t,n,e,i){let r;for(let o of n)if(r=Hj(Gne(o,t),e),typeof r<"u")return hT(t,r)?pT(e,i,t,r):r}function Hj(t,n){for(let e of n){if(!e)continue;let i=e[t];if(typeof i<"u")return i}}function _j(t){let n=t._keys;return n||(n=t._keys=ere(t._scopes)),n}function ere(t){let n=new Set;for(let e of t)for(let i of Object.keys(e).filter(r=>!r.startsWith("_")))n.add(i);return Array.from(n)}function fT(t,n,e,i){let{iScale:r}=t,{key:o="r"}=this._parsing,a=new Array(i),s,l,c,d;for(s=0,l=i;snt==="x"?"y":"x";function ire(t,n,e,i){let r=t.skip?n:t,o=n,a=e.skip?n:e,s=Vx(o,r),l=Vx(a,o),c=s/(s+l),d=l/(s+l);c=isNaN(c)?0:c,d=isNaN(d)?0:d;let m=i*c,f=i*d;return{previous:{x:o.x-m*(a.x-r.x),y:o.y-m*(a.y-r.y)},next:{x:o.x+f*(a.x-r.x),y:o.y+f*(a.y-r.y)}}}function nre(t,n,e){let i=t.length,r,o,a,s,l,c=Ph(t,0);for(let d=0;d!c.skip)),n.cubicInterpolationMode==="monotone")ore(t,r);else{let c=i?t[t.length-1]:t[0];for(o=0,a=t.length;ot.ownerDocument.defaultView.getComputedStyle(t,null);function sre(t,n){return Kx(t).getPropertyValue(n)}var lre=["top","right","bottom","left"];function vu(t,n,e){let i={};e=e?"-"+e:"";for(let r=0;r<4;r++){let o=lre[r];i[o]=parseFloat(t[n+"-"+o+e])||0}return i.width=i.left+i.right,i.height=i.top+i.bottom,i}var cre=(t,n,e)=>(t>0||n>0)&&(!e||!e.shadowRoot);function dre(t,n){let e=t.touches,i=e&&e.length?e[0]:t,{offsetX:r,offsetY:o}=i,a=!1,s,l;if(cre(r,o,t.target))s=r,l=o;else{let c=n.getBoundingClientRect();s=i.clientX-c.left,l=i.clientY-c.top,a=!0}return{x:s,y:l,box:a}}function Ic(t,n){if("native"in t)return t;let{canvas:e,currentDevicePixelRatio:i}=n,r=Kx(e),o=r.boxSizing==="border-box",a=vu(r,"padding"),s=vu(r,"border","width"),{x:l,y:c,box:d}=dre(t,e),m=a.left+(d&&s.left),f=a.top+(d&&s.top),{width:b,height:v}=n;return o&&(b-=a.width+s.width,v-=a.height+s.height),{x:Math.round((l-m)/b*e.width/i),y:Math.round((c-f)/v*e.height/i)}}function ure(t,n,e){let i,r;if(n===void 0||e===void 0){let o=t&&Qx(t);if(!o)n=t.clientWidth,e=t.clientHeight;else{let a=o.getBoundingClientRect(),s=Kx(o),l=vu(s,"border","width"),c=vu(s,"padding");n=a.width-c.width-l.width,e=a.height-c.height-l.height,i=Bx(s.maxWidth,o,"clientWidth"),r=Bx(s.maxHeight,o,"clientHeight")}}return{width:n,height:e,maxWidth:i||Lx,maxHeight:r||Lx}}var Ec=t=>Math.round(t*10)/10;function $j(t,n,e,i){let r=Kx(t),o=vu(r,"margin"),a=Bx(r.maxWidth,t,"clientWidth")||Lx,s=Bx(r.maxHeight,t,"clientHeight")||Lx,l=ure(t,n,e),{width:c,height:d}=l;if(r.boxSizing==="content-box"){let f=vu(r,"border","width"),b=vu(r,"padding");c-=b.width+f.width,d-=b.height+f.height}return c=Math.max(0,c-o.width),d=Math.max(0,i?c/i:d-o.height),c=Ec(Math.min(c,a,l.maxWidth)),d=Ec(Math.min(d,s,l.maxHeight)),c&&!d&&(d=Ec(c/2)),(n!==void 0||e!==void 0)&&i&&l.height&&d>l.height&&(d=l.height,c=Ec(Math.floor(d*i))),{width:c,height:d}}function gT(t,n,e){let i=n||1,r=Ec(t.height*i),o=Ec(t.width*i);t.height=Ec(t.height),t.width=Ec(t.width);let a=t.canvas;return a.style&&(e||!a.style.height&&!a.style.width)&&(a.style.height=`${t.height}px`,a.style.width=`${t.width}px`),t.currentDevicePixelRatio!==i||a.height!==r||a.width!==o?(t.currentDevicePixelRatio=i,a.height=r,a.width=o,t.ctx.setTransform(i,0,0,i,0,0),!0):!1}var Wj=(function(){let t=!1;try{let n={get passive(){return t=!0,!1}};Yx()&&(window.addEventListener("test",null,n),window.removeEventListener("test",null,n))}catch{}return t})();function _T(t,n){let e=sre(t,n),i=e&&e.match(/^(\d+)(\.\d+)?px$/);return i?+i[1]:void 0}function Dc(t,n,e,i){return{x:t.x+e*(n.x-t.x),y:t.y+e*(n.y-t.y)}}function Gj(t,n,e,i){return{x:t.x+e*(n.x-t.x),y:i==="middle"?e<.5?t.y:n.y:i==="after"?e<1?t.y:n.y:e>0?n.y:t.y}}function qj(t,n,e,i){let r={x:t.cp2x,y:t.cp2y},o={x:n.cp1x,y:n.cp1y},a=Dc(t,r,e),s=Dc(r,o,e),l=Dc(o,n,e),c=Dc(a,s,e),d=Dc(s,l,e);return Dc(c,d,e)}var mre=function(t,n){return{x(e){return t+t+n-e},setWidth(e){n=e},textAlign(e){return e==="center"?e:e==="right"?"left":"right"},xPlus(e,i){return e-i},leftForLtr(e,i){return e-i}}},hre=function(){return{x(t){return t},setWidth(t){},textAlign(t){return t},xPlus(t,n){return t+n},leftForLtr(t,n){return t}}};function Cu(t,n,e){return t?mre(n,e):hre()}function bT(t,n){let e,i;(n==="ltr"||n==="rtl")&&(e=t.canvas.style,i=[e.getPropertyValue("direction"),e.getPropertyPriority("direction")],e.setProperty("direction",n,"important"),t.prevTextDirection=i)}function vT(t,n){n!==void 0&&(delete t.prevTextDirection,t.canvas.style.setProperty("direction",n[0],n[1]))}function Yj(t){return t==="angle"?{between:Vh,compare:Ine,normalize:or}:{between:Is,compare:(n,e)=>n-e,normalize:n=>n}}function bj({start:t,end:n,count:e,loop:i,style:r}){return{start:t%e,end:n%e,loop:i&&(n-t+1)%e===0,style:r}}function pre(t,n,e){let{property:i,start:r,end:o}=e,{between:a,normalize:s}=Yj(i),l=n.length,{start:c,end:d,loop:m}=t,f,b;if(m){for(c+=l,d+=l,f=0,b=l;fl(r,W,D)&&s(r,W)!==0,K=()=>s(o,D)===0||l(o,W,D),re=()=>w||Z(),Ee=()=>!w||K();for(let be=d,Ve=d;be<=m;++be)P=n[be%a],!P.skip&&(D=c(P[i]),D!==W&&(w=l(D,r,o),x===null&&re()&&(x=s(D,r)===0?be:Ve),x!==null&&Ee()&&(v.push(bj({start:x,end:be,loop:f,count:a,style:b})),x=null),Ve=be,W=D));return x!==null&&v.push(bj({start:x,end:m,loop:f,count:a,style:b})),v}function xT(t,n){let e=[],i=t.segments;for(let r=0;rr&&t[o%n].skip;)o--;return o%=n,{start:r,end:o}}function gre(t,n,e,i){let r=t.length,o=[],a=n,s=t[n],l;for(l=n+1;l<=e;++l){let c=t[l%r];c.skip||c.stop?s.skip||(i=!1,o.push({start:n%r,end:(l-1)%r,loop:i}),n=a=c.stop?l:null):(a=l,s.skip&&(n=l)),s=c}return a!==null&&o.push({start:n%r,end:a%r,loop:i}),o}function Qj(t,n){let e=t.points,i=t.options.spanGaps,r=e.length;if(!r)return[];let o=!!t._loop,{start:a,end:s}=fre(e,r,o,i);if(i===!0)return vj(t,[{start:a,end:s,loop:o}],e,n);let l=ss({chart:n,initial:e.initial,numSteps:a,currentStep:Math.min(i-e.start,a)}))}_refresh(){this._request||(this._running=!0,this._request=nT.call(window,()=>{this._update(),this._request=null,this._running&&this._refresh()}))}_update(n=Date.now()){let e=0;this._charts.forEach((i,r)=>{if(!i.running||!i.items.length)return;let o=i.items,a=o.length-1,s=!1,l;for(;a>=0;--a)l=o[a],l._active?(l._total>i.duration&&(i.duration=l._total),l.tick(n),s=!0):(o[a]=o[o.length-1],o.pop());s&&(r.draw(),this._notify(r,i,n,"progress")),o.length||(i.running=!1,this._notify(r,i,n,"complete"),i.initial=!1),e+=o.length}),this._lastDate=n,e===0&&(this._running=!1)}_getAnims(n){let e=this._charts,i=e.get(n);return i||(i={running:!1,initial:!0,items:[],listeners:{complete:[],progress:[]}},e.set(n,i)),i}listen(n,e,i){this._getAnims(n).listeners[e].push(i)}add(n,e){!e||!e.length||this._getAnims(n).items.push(...e)}has(n){return this._getAnims(n).items.length>0}start(n){let e=this._charts.get(n);e&&(e.running=!0,e.start=Date.now(),e.duration=e.items.reduce((i,r)=>Math.max(i,r._duration),0),this._refresh())}running(n){if(!this._running)return!1;let e=this._charts.get(n);return!(!e||!e.running||!e.items.length)}stop(n){let e=this._charts.get(n);if(!e||!e.items.length)return;let i=e.items,r=i.length-1;for(;r>=0;--r)i[r].cancel();e.items=[],this._notify(n,e,Date.now(),"complete")}remove(n){return this._charts.delete(n)}},vl=new PT,Kj="transparent",yre={boolean(t,n,e){return e>.5?n:t},color(t,n,e){let i=lT(t||Kj),r=i.valid&&lT(n||Kj);return r&&r.valid?r.mix(i,e).hexString():n},number(t,n,e){return t+(n-t)*e}},FT=class{constructor(n,e,i,r){let o=e[i];r=Hh([n.to,r,o,n.from]);let a=Hh([n.from,o,r]);this._active=!0,this._fn=n.fn||yre[n.type||typeof a],this._easing=Oh[n.easing]||Oh.linear,this._start=Math.floor(Date.now()+(n.delay||0)),this._duration=this._total=Math.floor(n.duration),this._loop=!!n.loop,this._target=e,this._prop=i,this._from=a,this._to=r,this._promises=void 0}active(){return this._active}update(n,e,i){if(this._active){this._notify(!1);let r=this._target[this._prop],o=i-this._start,a=this._duration-o;this._start=i,this._duration=Math.floor(Math.max(a,n.duration)),this._total+=o,this._loop=!!n.loop,this._to=Hh([n.to,e,r,n.from]),this._from=Hh([n.from,r,e])}}cancel(){this._active&&(this.tick(Date.now()),this._active=!1,this._notify(!1))}tick(n){let e=n-this._start,i=this._duration,r=this._prop,o=this._from,a=this._loop,s=this._to,l;if(this._active=o!==s&&(a||e1?2-l:l,l=this._easing(Math.min(1,Math.max(0,l))),this._target[r]=this._fn(o,s,l)}wait(){let n=this._promises||(this._promises=[]);return new Promise((e,i)=>{n.push({res:e,rej:i})})}_notify(n){let e=n?"res":"rej",i=this._promises||[];for(let r=0;r{let o=n[r];if(!St(o))return;let a={};for(let s of e)a[s]=o[s];(Ei(o.properties)&&o.properties||[r]).forEach(s=>{(s===r||!i.has(s))&&i.set(s,a)})})}_animateOptions(n,e){let i=e.options,r=Cre(n,i);if(!r)return[];let o=this._createAnimations(r,i);return i.$shared&&xre(n.options.$animations,i).then(()=>{n.options=i},()=>{}),o}_createAnimations(n,e){let i=this._properties,r=[],o=n.$animations||(n.$animations={}),a=Object.keys(e),s=Date.now(),l;for(l=a.length-1;l>=0;--l){let c=a[l];if(c.charAt(0)==="$")continue;if(c==="options"){r.push(...this._animateOptions(n,e));continue}let d=e[c],m=o[c],f=i.get(c);if(m)if(f&&m.active()){m.update(f,d,s);continue}else m.cancel();if(!f||!f.duration){n[c]=d;continue}o[c]=m=new FT(f,n,c,d),r.push(m)}return r}update(n,e){if(this._properties.size===0){Object.assign(n,e);return}let i=this._createAnimations(n,e);if(i.length)return vl.add(this._chart,i),!0}};function xre(t,n){let e=[],i=Object.keys(n);for(let r=0;r0||!e&&o<0)return r.index}return null}function e4(t,n){let{chart:e,_cachedMeta:i}=t,r=e._stacks||(e._stacks={}),{iScale:o,vScale:a,index:s}=i,l=o.axis,c=a.axis,d=Mre(o,a,i),m=n.length,f;for(let b=0;be[i].axis===n).shift()}function Tre(t,n){return bl(t,{active:!1,dataset:void 0,datasetIndex:n,index:n,mode:"default",type:"dataset"})}function Ire(t,n,e){return bl(t,{active:!1,dataIndex:n,parsed:void 0,raw:void 0,element:e,index:n,mode:"default",type:"data"})}function Ug(t,n){let e=t.controller.index,i=t.vScale&&t.vScale.axis;if(i){n=n||t._parsed;for(let r of n){let o=r._stacks;if(!o||o[i]===void 0||o[i][e]===void 0)return;delete o[i][e],o[i]._visualValues!==void 0&&o[i]._visualValues[e]!==void 0&&delete o[i]._visualValues[e]}}}var ET=t=>t==="reset"||t==="none",t4=(t,n)=>n?t:Object.assign({},t),Are=(t,n,e)=>t&&!n.hidden&&n._stacked&&{keys:K4(e,!0),values:null},Oc=(()=>{class t{static defaults={};static datasetElementType=null;static dataElementType=null;constructor(e,i){this.chart=e,this._ctx=e.ctx,this.index=i,this._cachedDataOpts={},this._cachedMeta=this.getMeta(),this._type=this._cachedMeta.type,this.options=void 0,this._parsing=!1,this._data=void 0,this._objectData=void 0,this._sharedOptions=void 0,this._drawStart=void 0,this._drawCount=void 0,this.enableOptionSharing=!1,this.supportsDecimation=!1,this.$context=void 0,this._syncList=[],this.datasetElementType=new.target.datasetElementType,this.dataElementType=new.target.dataElementType,this.initialize()}initialize(){let e=this._cachedMeta;this.configure(),this.linkScales(),e._stacked=wT(e.vScale,e),this.addElements(),this.options.fill&&!this.chart.isPluginEnabled("filler")&&console.warn("Tried to use the 'fill' option without the 'Filler' plugin enabled. Please import and register the 'Filler' plugin and make sure it is not disabled in the options")}updateIndex(e){this.index!==e&&Ug(this._cachedMeta),this.index=e}linkScales(){let e=this.chart,i=this._cachedMeta,r=this.getDataset(),o=(f,b,v,w)=>f==="x"?b:f==="r"?w:v,a=i.xAxisID=st(r.xAxisID,DT(e,"x")),s=i.yAxisID=st(r.yAxisID,DT(e,"y")),l=i.rAxisID=st(r.rAxisID,DT(e,"r")),c=i.indexAxis,d=i.iAxisID=o(c,a,s,l),m=i.vAxisID=o(c,s,a,l);i.xScale=this.getScaleForId(a),i.yScale=this.getScaleForId(s),i.rScale=this.getScaleForId(l),i.iScale=this.getScaleForId(d),i.vScale=this.getScaleForId(m)}getDataset(){return this.chart.data.datasets[this.index]}getMeta(){return this.chart.getDatasetMeta(this.index)}getScaleForId(e){return this.chart.scales[e]}_getOtherScale(e){let i=this._cachedMeta;return e===i.iScale?i.vScale:i.iScale}reset(){this._update("reset")}_destroy(){let e=this._cachedMeta;this._data&&tT(this._data,this),e._stacked&&Ug(e)}_dataCheck(){let e=this.getDataset(),i=e.data||(e.data=[]),r=this._data;if(St(i)){let o=this._cachedMeta;this._data=Ere(i,o)}else if(r!==i){if(r){tT(r,this);let o=this._cachedMeta;Ug(o),o._parsed=[]}i&&Object.isExtensible(i)&&Aj(i,this),this._syncList=[],this._data=i}}addElements(){let e=this._cachedMeta;this._dataCheck(),this.datasetElementType&&(e.dataset=new this.datasetElementType)}buildOrUpdateElements(e){let i=this._cachedMeta,r=this.getDataset(),o=!1;this._dataCheck();let a=i._stacked;i._stacked=wT(i.vScale,i),i.stack!==r.stack&&(o=!0,Ug(i),i.stack=r.stack),this._resyncElements(e),(o||a!==i._stacked)&&(e4(this,i._parsed),i._stacked=wT(i.vScale,i))}configure(){let e=this.chart.config,i=e.datasetScopeKeys(this._type),r=e.getOptionScopes(this.getDataset(),i,!0);this.options=e.createResolver(r,this.getContext()),this._parsing=this.options.parsing,this._cachedDataOpts={}}parse(e,i){let{_cachedMeta:r,_data:o}=this,{iScale:a,_stacked:s}=r,l=a.axis,c=e===0&&i===o.length?!0:r._sorted,d=e>0&&r._parsed[e-1],m,f,b;if(this._parsing===!1)r._parsed=o,r._sorted=!0,b=o;else{Ei(o[e])?b=this.parseArrayData(r,o,e,i):St(o[e])?b=this.parseObjectData(r,o,e,i):b=this.parsePrimitiveData(r,o,e,i);let v=()=>f[l]===null||d&&f[l]x||f=0;--b)if(!w()){this.updateRangeFromParsed(d,e,v,c);break}}return d}getAllParsedValues(e){let i=this._cachedMeta._parsed,r=[],o,a,s;for(o=0,a=i.length;o=0&&ethis.getContext(r,o,i),x=d.resolveNamedOptions(b,v,w,f);return x.$shared&&(x.$shared=c,a[s]=Object.freeze(t4(x,c))),x}_resolveAnimations(e,i,r){let o=this.chart,a=this._cachedDataOpts,s=`animation-${i}`,l=a[s];if(l)return l;let c;if(o.options.animation!==!1){let m=this.chart.config,f=m.datasetAnimationScopeKeys(this._type,i),b=m.getOptionScopes(this.getDataset(),f);c=m.createResolver(b,this.getContext(e,r,i))}let d=new oC(o,c&&c.animations);return c&&c._cacheable&&(a[s]=Object.freeze(d)),d}getSharedOptions(e){if(e.$shared)return this._sharedOptions||(this._sharedOptions=Object.assign({},e))}includeOptions(e,i){return!i||ET(e)||this.chart._animationsDisabled}_getSharedOptions(e,i){let r=this.resolveDataElementOptions(e,i),o=this._sharedOptions,a=this.getSharedOptions(r),s=this.includeOptions(i,a)||a!==o;return this.updateSharedOptions(a,i,r),{sharedOptions:a,includeOptions:s}}updateElement(e,i,r,o){ET(o)?Object.assign(e,r):this._resolveAnimations(i,o).update(e,r)}updateSharedOptions(e,i,r){e&&!ET(i)&&this._resolveAnimations(void 0,i).update(e,r)}_setStyle(e,i,r,o){e.active=o;let a=this.getStyle(i,o);this._resolveAnimations(i,r,o).update(e,{options:!o&&this.getSharedOptions(a)||a})}removeHoverStyle(e,i,r){this._setStyle(e,r,"active",!1)}setHoverStyle(e,i,r){this._setStyle(e,r,"active",!0)}_removeDatasetHoverStyle(){let e=this._cachedMeta.dataset;e&&this._setStyle(e,void 0,"active",!1)}_setDatasetHoverStyle(){let e=this._cachedMeta.dataset;e&&this._setStyle(e,void 0,"active",!0)}_resyncElements(e){let i=this._data,r=this._cachedMeta.data;for(let[l,c,d]of this._syncList)this[l](c,d);this._syncList=[];let o=r.length,a=i.length,s=Math.min(a,o);s&&this.parse(0,s),a>o?this._insertElements(o,a-o,e):a{for(d.length+=i,l=d.length-1;l>=s;l--)d[l]=d[l-i]};for(c(a),l=e;lr-o))}return t._cache.$bar}function Rre(t){let n=t.iScale,e=Ore(n,t.type),i=n._length,r,o,a,s,l=()=>{a===32767||a===-32768||(Nh(s)&&(i=Math.min(i,Math.abs(a-s)||i)),s=a)};for(r=0,o=e.length;r0?r[t-1]:null,s=tMath.abs(s)&&(l=s,c=a),n[e.axis]=c,n._custom={barStart:l,barEnd:c,start:r,end:o,min:a,max:s}}function Z4(t,n,e,i){return Ei(t)?Nre(t,n,e,i):n[e.axis]=e.parse(t,i),n}function i4(t,n,e,i){let r=t.iScale,o=t.vScale,a=r.getLabels(),s=r===o,l=[],c,d,m,f;for(c=e,d=e+i;c=e?1:-1)}function Vre(t){let n,e,i,r,o;return t.horizontal?(n=t.base>t.x,e="left",i="right"):(n=t.base{class t extends Oc{static id="bar";static defaults={datasetElementType:!1,dataElementType:"bar",categoryPercentage:.8,barPercentage:.9,grouped:!0,animations:{numbers:{type:"number",properties:["x","y","base","width","height"]}}};static overrides={scales:{_index_:{type:"category",offset:!0,grid:{offset:!0}},_value_:{type:"linear",beginAtZero:!0}}};parsePrimitiveData(e,i,r,o){return i4(e,i,r,o)}parseArrayData(e,i,r,o){return i4(e,i,r,o)}parseObjectData(e,i,r,o){let{iScale:a,vScale:s}=e,{xAxisKey:l="x",yAxisKey:c="y"}=this._parsing,d=a.axis==="x"?l:c,m=s.axis==="x"?l:c,f=[],b,v,w,x;for(b=r,v=r+o;bm.controller.options.grouped),a=r.options.stacked,s=[],l=this._cachedMeta.controller.getParsed(i),c=l&&l[r.axis],d=m=>{let f=m._parsed.find(v=>v[r.axis]===c),b=f&&f[m.vScale.axis];if(Et(b)||isNaN(b))return!0};for(let m of o)if(!(i!==void 0&&d(m))&&((a===!1||s.indexOf(m.stack)===-1||a===void 0&&m.stack===void 0)&&s.push(m.stack),m.index===e))break;return s.length||s.push(void 0),s}_getStackCount(e){return this._getStacks(void 0,e).length}_getAxisCount(){return this._getAxis().length}getFirstScaleIdForIndexAxis(){let e=this.chart.scales,i=this.chart.options.indexAxis;return Object.keys(e).filter(r=>e[r].axis===i).shift()}_getAxis(){let e={},i=this.getFirstScaleIdForIndexAxis();for(let r of this.chart.data.datasets)e[st(this.chart.options.indexAxis==="x"?r.xAxisID:r.yAxisID,i)]=!0;return Object.keys(e)}_getStackIndex(e,i,r){let o=this._getStacks(e,r),a=i!==void 0?o.indexOf(i):-1;return a===-1?o.length-1:a}_getRuler(){let e=this.options,i=this._cachedMeta,r=i.iScale,o=[],a,s;for(a=0,s=i.data.length;a{class t extends Oc{static id="bubble";static defaults={datasetElementType:!1,dataElementType:"point",animations:{numbers:{type:"number",properties:["x","y","borderWidth","radius"]}}};static overrides={scales:{x:{type:"linear"},y:{type:"linear"}}};initialize(){this.enableOptionSharing=!0,super.initialize()}parsePrimitiveData(e,i,r,o){let a=super.parsePrimitiveData(e,i,r,o);for(let s=0;s=0;--r)i=Math.max(i,e[r].size(this.resolveDataElementOptions(r))/2);return i>0&&i}getLabelAndValue(e){let i=this._cachedMeta,r=this.chart.data.labels||[],{xScale:o,yScale:a}=i,s=this.getParsed(e),l=o.getLabelForValue(s.x),c=a.getLabelForValue(s.y),d=s._custom;return{label:r[e]||"",value:"("+l+", "+c+(d?", "+d:"")+")"}}update(e){let i=this._cachedMeta.data;this.updateElements(i,0,i.length,e)}updateElements(e,i,r,o){let a=o==="reset",{iScale:s,vScale:l}=this._cachedMeta,{sharedOptions:c,includeOptions:d}=this._getSharedOptions(i,o),m=s.axis,f=l.axis;for(let b=i;bVh(W,s,l,!0)?1:Math.max(Z,Z*e,K,K*e),v=(W,Z,K)=>Vh(W,s,l,!0)?-1:Math.min(Z,Z*e,K,K*e),w=b(0,c,m),x=b(Zi,d,f),D=v(Ht,c,m),P=v(Ht+Zi,d,f);i=(w-D)/2,r=(x-P)/2,o=-(w+D)/2,a=-(x+P)/2}return{ratioX:i,ratioY:r,offsetX:o,offsetY:a}}var tI=(()=>{class t extends Oc{static id="doughnut";static defaults={datasetElementType:!1,dataElementType:"arc",animation:{animateRotate:!0,animateScale:!1},animations:{numbers:{type:"number",properties:["circumference","endAngle","innerRadius","outerRadius","startAngle","x","y","offset","borderWidth","spacing"]}},cutout:"50%",rotation:0,circumference:360,radius:"100%",spacing:0,indexAxis:"r"};static descriptors={_scriptable:e=>e!=="spacing",_indexable:e=>e!=="spacing"&&!e.startsWith("borderDash")&&!e.startsWith("hoverBorderDash")};static overrides={aspectRatio:1,plugins:{legend:{labels:{generateLabels(e){let i=e.data,{labels:{pointStyle:r,textAlign:o,color:a,useBorderRadius:s,borderRadius:l}}=e.legend.options;return i.labels.length&&i.datasets.length?i.labels.map((c,d)=>{let f=e.getDatasetMeta(0).controller.getStyle(d);return{text:c,fillStyle:f.backgroundColor,fontColor:a,hidden:!e.getDataVisibility(d),lineDash:f.borderDash,lineDashOffset:f.borderDashOffset,lineJoin:f.borderJoinStyle,lineWidth:f.borderWidth,strokeStyle:f.borderColor,textAlign:o,pointStyle:r,borderRadius:s&&(l||f.borderRadius),index:d}}):[]}},onClick(e,i,r){r.chart.toggleDataVisibility(i.index),r.chart.update()}}}};constructor(e,i){super(e,i),this.enableOptionSharing=!0,this.innerRadius=void 0,this.outerRadius=void 0,this.offsetX=void 0,this.offsetY=void 0}linkScales(){}parse(e,i){let r=this.getDataset().data,o=this._cachedMeta;if(this._parsing===!1)o._parsed=r;else{let a=c=>+r[c];if(St(r[e])){let{key:c="value"}=this._parsing;a=d=>+_l(r[d],c)}let s,l;for(s=e,l=e+i;s0&&!isNaN(e)?Mi*(Math.abs(e)/i):0}getLabelAndValue(e){let i=this._cachedMeta,r=this.chart,o=r.data.labels||[],a=Bh(i._parsed[e],r.options.locale);return{label:o[e]||"",value:a}}getMaxBorderWidth(e){let i=0,r=this.chart,o,a,s,l,c;if(!e){for(o=0,a=r.data.datasets.length;o{class t extends Oc{static id="line";static defaults={datasetElementType:"line",dataElementType:"point",showLine:!0,spanGaps:!1};static overrides={scales:{_index_:{type:"category"},_value_:{type:"linear"}}};initialize(){this.enableOptionSharing=!0,this.supportsDecimation=!0,super.initialize()}update(e){let i=this._cachedMeta,{dataset:r,data:o=[],_dataset:a}=i,s=this.chart._animationsDisabled,{start:l,count:c}=oT(i,o,s);this._drawStart=l,this._drawCount=c,aT(i)&&(l=0,c=o.length),r._chart=this.chart,r._datasetIndex=this.index,r._decimated=!!a._decimated,r.points=o;let d=this.resolveDatasetElementOptions(e);this.options.showLine||(d.borderWidth=0),d.segment=this.options.segment,this.updateElement(r,void 0,{animated:!s,options:d},e),this.updateElements(o,l,c,e)}updateElements(e,i,r,o){let a=o==="reset",{iScale:s,vScale:l,_stacked:c,_dataset:d}=this._cachedMeta,{sharedOptions:m,includeOptions:f}=this._getSharedOptions(i,o),b=s.axis,v=l.axis,{spanGaps:w,segment:x}=this.options,D=xu(w)?w:Number.POSITIVE_INFINITY,P=this.chart._animationsDisabled||a||o==="none",W=i+r,Z=e.length,K=i>0&&this.getParsed(i-1);for(let re=0;re=W){be.skip=!0;continue}let Ve=this.getParsed(re),yt=Et(Ve[v]),bt=be[b]=s.getPixelForValue(Ve[b],re),It=be[v]=a||yt?l.getBasePixel():l.getPixelForValue(c?this.applyStack(l,Ve,c):Ve[v],re);be.skip=isNaN(bt)||isNaN(It)||yt,be.stop=re>0&&Math.abs(Ve[b]-K[b])>D,x&&(be.parsed=Ve,be.raw=d.data[re]),f&&(be.options=m||this.resolveDataElementOptions(re,Ee.active?"active":o)),P||this.updateElement(Ee,re,be,o),K=Ve}}getMaxOverflow(){let e=this._cachedMeta,i=e.dataset,r=i.options&&i.options.borderWidth||0,o=e.data||[];if(!o.length)return r;let a=o[0].size(this.resolveDataElementOptions(0)),s=o[o.length-1].size(this.resolveDataElementOptions(o.length-1));return Math.max(r,a,s)/2}draw(){let e=this._cachedMeta;e.dataset.updateControlPoints(this.chart.chartArea,e.iScale.axis),super.draw()}}return t})(),X4=(()=>{class t extends Oc{static id="polarArea";static defaults={dataElementType:"arc",animation:{animateRotate:!0,animateScale:!0},animations:{numbers:{type:"number",properties:["x","y","startAngle","endAngle","innerRadius","outerRadius"]}},indexAxis:"r",startAngle:0};static overrides={aspectRatio:1,plugins:{legend:{labels:{generateLabels(e){let i=e.data;if(i.labels.length&&i.datasets.length){let{labels:{pointStyle:r,color:o}}=e.legend.options;return i.labels.map((a,s)=>{let c=e.getDatasetMeta(0).controller.getStyle(s);return{text:a,fillStyle:c.backgroundColor,strokeStyle:c.borderColor,fontColor:o,lineWidth:c.borderWidth,pointStyle:r,hidden:!e.getDataVisibility(s),index:s}})}return[]}},onClick(e,i,r){r.chart.toggleDataVisibility(i.index),r.chart.update()}}},scales:{r:{type:"radialLinear",angleLines:{display:!1},beginAtZero:!0,grid:{circular:!0},pointLabels:{display:!1},startAngle:0}}};constructor(e,i){super(e,i),this.innerRadius=void 0,this.outerRadius=void 0}getLabelAndValue(e){let i=this._cachedMeta,r=this.chart,o=r.data.labels||[],a=Bh(i._parsed[e].r,r.options.locale);return{label:o[e]||"",value:a}}parseObjectData(e,i,r,o){return fT.bind(this)(e,i,r,o)}update(e){let i=this._cachedMeta.data;this._updateRadius(),this.updateElements(i,0,i.length,e)}getMinMax(){let e=this._cachedMeta,i={min:Number.POSITIVE_INFINITY,max:Number.NEGATIVE_INFINITY};return e.data.forEach((r,o)=>{let a=this.getParsed(o).r;!isNaN(a)&&this.chart.getDataVisibility(o)&&(ai.max&&(i.max=a))}),i}_updateRadius(){let e=this.chart,i=e.chartArea,r=e.options,o=Math.min(i.right-i.left,i.bottom-i.top),a=Math.max(o/2,0),s=Math.max(r.cutoutPercentage?a/100*r.cutoutPercentage:1,0),l=(a-s)/e.getVisibleDatasetCount();this.outerRadius=a-l*this.index,this.innerRadius=this.outerRadius-l}updateElements(e,i,r,o){let a=o==="reset",s=this.chart,c=s.options.animation,d=this._cachedMeta.rScale,m=d.xCenter,f=d.yCenter,b=d.getIndexAngle(0)-.5*Ht,v=b,w,x=360/this.countVisibleElements();for(w=0;w{!isNaN(this.getParsed(o).r)&&this.chart.getDataVisibility(o)&&i++}),i}_computeAngle(e,i,r){return this.chart.getDataVisibility(e)?ra(this.resolveDataElementOptions(e,i).angle||r):0}}return t})(),Gre=(()=>{class t extends tI{static id="pie";static defaults={cutout:0,rotation:0,circumference:360,radius:"100%"}}return t})(),qre=(()=>{class t extends Oc{static id="radar";static defaults={datasetElementType:"line",dataElementType:"point",indexAxis:"r",showLine:!0,elements:{line:{fill:"start"}}};static overrides={aspectRatio:1,scales:{r:{type:"radialLinear"}}};getLabelAndValue(e){let i=this._cachedMeta.vScale,r=this.getParsed(e);return{label:i.getLabels()[e],value:""+i.getLabelForValue(r[i.axis])}}parseObjectData(e,i,r,o){return fT.bind(this)(e,i,r,o)}update(e){let i=this._cachedMeta,r=i.dataset,o=i.data||[],a=i.iScale.getLabels();if(r.points=o,e!=="resize"){let s=this.resolveDatasetElementOptions(e);this.options.showLine||(s.borderWidth=0);let l={_loop:!0,_fullLoop:a.length===o.length,options:s};this.updateElement(r,void 0,l,e)}this.updateElements(o,0,o.length,e)}updateElements(e,i,r,o){let a=this._cachedMeta.rScale,s=o==="reset";for(let l=i;l{class t extends Oc{static id="scatter";static defaults={datasetElementType:!1,dataElementType:"point",showLine:!1,fill:!1};static overrides={interaction:{mode:"point"},scales:{x:{type:"linear"},y:{type:"linear"}}};getLabelAndValue(e){let i=this._cachedMeta,r=this.chart.data.labels||[],{xScale:o,yScale:a}=i,s=this.getParsed(e),l=o.getLabelForValue(s.x),c=a.getLabelForValue(s.y);return{label:r[e]||"",value:"("+l+", "+c+")"}}update(e){let i=this._cachedMeta,{data:r=[]}=i,o=this.chart._animationsDisabled,{start:a,count:s}=oT(i,r,o);if(this._drawStart=a,this._drawCount=s,aT(i)&&(a=0,s=r.length),this.options.showLine){this.datasetElementType||this.addElements();let{dataset:l,_dataset:c}=i;l._chart=this.chart,l._datasetIndex=this.index,l._decimated=!!c._decimated,l.points=r;let d=this.resolveDatasetElementOptions(e);d.segment=this.options.segment,this.updateElement(l,void 0,{animated:!o,options:d},e)}else this.datasetElementType&&(delete i.dataset,this.datasetElementType=!1);this.updateElements(r,a,s,e)}addElements(){let{showLine:e}=this.options;!this.datasetElementType&&e&&(this.datasetElementType=this.chart.registry.getElement("line")),super.addElements()}updateElements(e,i,r,o){let a=o==="reset",{iScale:s,vScale:l,_stacked:c,_dataset:d}=this._cachedMeta,m=this.resolveDataElementOptions(i,o),f=this.getSharedOptions(m),b=this.includeOptions(o,f),v=s.axis,w=l.axis,{spanGaps:x,segment:D}=this.options,P=xu(x)?x:Number.POSITIVE_INFINITY,W=this.chart._animationsDisabled||a||o==="none",Z=i>0&&this.getParsed(i-1);for(let K=i;K0&&Math.abs(Ee[v]-Z[v])>P,D&&(be.parsed=Ee,be.raw=d.data[K]),b&&(be.options=f||this.resolveDataElementOptions(K,re.active?"active":o)),W||this.updateElement(re,K,be,o),Z=Ee}this.updateSharedOptions(f,o,m)}getMaxOverflow(){let e=this._cachedMeta,i=e.data||[];if(!this.options.showLine){let l=0;for(let c=i.length-1;c>=0;--c)l=Math.max(l,i[c].size(this.resolveDataElementOptions(c))/2);return l>0&&l}let r=e.dataset,o=r.options&&r.options.borderWidth||0;if(!i.length)return o;let a=i[0].size(this.resolveDataElementOptions(0)),s=i[i.length-1].size(this.resolveDataElementOptions(i.length-1));return Math.max(o,a,s)/2}}return t})(),Qre=Object.freeze({__proto__:null,BarController:zre,BubbleController:Ure,DoughnutController:tI,LineController:Wre,PieController:Gre,PolarAreaController:X4,RadarController:qre,ScatterController:Yre});function wu(){throw new Error("This method is not implemented: Check that a complete date adapter is provided.")}var NT=class t{static override(n){Object.assign(t.prototype,n)}options;constructor(n){this.options=n||{}}init(){}formats(){return wu()}parse(){return wu()}format(){return wu()}add(){return wu()}diff(){return wu()}startOf(){return wu()}endOf(){return wu()}},Kre={_date:NT};function Zre(t,n,e,i){let{controller:r,data:o,_sorted:a}=t,s=r._cachedMeta.iScale,l=t.dataset&&t.dataset.options?t.dataset.options.spanGaps:null;if(s&&n===s.axis&&n!=="r"&&a&&o.length){let c=s._reversePixels?Sj:ks;if(i){if(r._sharedOptions){let d=o[0],m=typeof d.getRange=="function"&&d.getRange(n);if(m){let f=c(o,n,e-m),b=c(o,n,e+m);return{lo:f.lo,hi:b.hi}}}}else{let d=c(o,n,e);if(l){let{vScale:m}=r._cachedMeta,{_parsed:f}=t,b=f.slice(0,d.lo+1).reverse().findIndex(w=>!Et(w[m.axis]));d.lo-=Math.max(0,b);let v=f.slice(d.hi).findIndex(w=>!Et(w[m.axis]));d.hi+=Math.max(0,v)}return d}}return{lo:0,hi:o.length-1}}function Jg(t,n,e,i,r){let o=t.getSortedVisibleDatasetMetas(),a=e[n];for(let s=0,l=o.length;s{l[a]&&l[a](n[e],r)&&(o.push({element:l,datasetIndex:c,index:d}),s=s||l.inRange(n.x,n.y,r))}),i&&!s?[]:o}var toe={evaluateInteractionItems:Jg,modes:{index(t,n,e,i){let r=Ic(n,t),o=e.axis||"x",a=e.includeInvisible||!1,s=e.intersect?kT(t,r,o,i,a):ST(t,r,o,!1,i,a),l=[];return s.length?(t.getSortedVisibleDatasetMetas().forEach(c=>{let d=s[0].index,m=c.data[d];m&&!m.skip&&l.push({element:m,datasetIndex:c.index,index:d})}),l):[]},dataset(t,n,e,i){let r=Ic(n,t),o=e.axis||"xy",a=e.includeInvisible||!1,s=e.intersect?kT(t,r,o,i,a):ST(t,r,o,!1,i,a);if(s.length>0){let l=s[0].datasetIndex,c=t.getDatasetMeta(l).data;s=[];for(let d=0;de.pos===n)}function a4(t,n){return t.filter(e=>J4.indexOf(e.pos)===-1&&e.box.axis===n)}function Wg(t,n){return t.sort((e,i)=>{let r=n?i:e,o=n?e:i;return r.weight===o.weight?r.index-o.index:r.weight-o.weight})}function ioe(t){let n=[],e,i,r,o,a,s;for(e=0,i=(t||[]).length;ec.box.fullSize),!0),i=Wg($g(n,"left"),!0),r=Wg($g(n,"right")),o=Wg($g(n,"top"),!0),a=Wg($g(n,"bottom")),s=a4(n,"x"),l=a4(n,"y");return{fullSize:e,leftAndTop:i.concat(o),rightAndBottom:r.concat(l).concat(a).concat(s),chartArea:$g(n,"chartArea"),vertical:i.concat(r).concat(l),horizontal:o.concat(a).concat(s)}}function s4(t,n,e,i){return Math.max(t[e],n[e])+Math.max(t[i],n[i])}function eH(t,n){t.top=Math.max(t.top,n.top),t.left=Math.max(t.left,n.left),t.bottom=Math.max(t.bottom,n.bottom),t.right=Math.max(t.right,n.right)}function aoe(t,n,e,i){let{pos:r,box:o}=e,a=t.maxPadding;if(!St(r)){e.size&&(t[r]-=e.size);let m=i[e.stack]||{size:0,count:1};m.size=Math.max(m.size,e.horizontal?o.height:o.width),e.size=m.size/m.count,t[r]+=e.size}o.getPadding&&eH(a,o.getPadding());let s=Math.max(0,n.outerWidth-s4(a,t,"left","right")),l=Math.max(0,n.outerHeight-s4(a,t,"top","bottom")),c=s!==t.w,d=l!==t.h;return t.w=s,t.h=l,e.horizontal?{same:c,other:d}:{same:d,other:c}}function soe(t){let n=t.maxPadding;function e(i){let r=Math.max(n[i]-t[i],0);return t[i]+=r,r}t.y+=e("top"),t.x+=e("left"),e("right"),e("bottom")}function loe(t,n){let e=n.maxPadding;function i(r){let o={left:0,top:0,right:0,bottom:0};return r.forEach(a=>{o[a]=Math.max(n[a],e[a])}),o}return i(t?["left","right"]:["top","bottom"])}function Yg(t,n,e,i){let r=[],o,a,s,l,c,d;for(o=0,a=t.length,c=0;o{typeof w.beforeLayout=="function"&&w.beforeLayout()});let d=l.reduce((w,x)=>x.box.options&&x.box.options.display===!1?w:w+1,0)||1,m=Object.freeze({outerWidth:n,outerHeight:e,padding:r,availableWidth:o,availableHeight:a,vBoxMaxWidth:o/2/d,hBoxMaxHeight:a/2}),f=Object.assign({},r);eH(f,sr(i));let b=Object.assign({maxPadding:f,w:o,h:a,x:r.left,y:r.top},r),v=roe(l.concat(c),m);Yg(s.fullSize,b,m,v),Yg(l,b,m,v),Yg(c,b,m,v)&&Yg(l,b,m,v),soe(b),l4(s.leftAndTop,b,m,v),b.x+=b.w,b.y+=b.h,l4(s.rightAndBottom,b,m,v),t.chartArea={left:b.left,top:b.top,right:b.left+b.w,bottom:b.top+b.h,height:b.h,width:b.w},ii(s.chartArea,w=>{let x=w.box;Object.assign(x,t.chartArea),x.update(b.w,b.h,{left:0,top:0,right:0,bottom:0})})}},aC=class{acquireContext(n,e){}releaseContext(n){return!1}addEventListener(n,e,i){}removeEventListener(n,e,i){}getDevicePixelRatio(){return 1}getMaximumSize(n,e,i,r){return e=Math.max(0,e||n.width),i=i||n.height,{width:e,height:Math.max(0,r?Math.floor(e/r):i)}}isAttached(n){return!0}updateConfig(n){}},LT=class extends aC{acquireContext(n){return n&&n.getContext&&n.getContext("2d")||null}updateConfig(n){n.options.animation=!1}},nC="$chartjs",coe={touchstart:"mousedown",touchmove:"mousemove",touchend:"mouseup",pointerenter:"mouseenter",pointerdown:"mousedown",pointermove:"mousemove",pointerup:"mouseup",pointerleave:"mouseout",pointerout:"mouseout"},c4=t=>t===null||t==="";function doe(t,n){let e=t.style,i=t.getAttribute("height"),r=t.getAttribute("width");if(t[nC]={initial:{height:i,width:r,style:{display:e.display,height:e.height,width:e.width}}},e.display=e.display||"block",e.boxSizing=e.boxSizing||"border-box",c4(r)){let o=_T(t,"width");o!==void 0&&(t.width=o)}if(c4(i))if(t.style.height==="")t.height=t.width/(n||2);else{let o=_T(t,"height");o!==void 0&&(t.height=o)}return t}var tH=Wj?{passive:!0}:!1;function uoe(t,n,e){t&&t.addEventListener(n,e,tH)}function moe(t,n,e){t&&t.canvas&&t.canvas.removeEventListener(n,e,tH)}function hoe(t,n){let e=coe[t.type]||t.type,{x:i,y:r}=Ic(t,n);return{type:e,chart:n,native:t,x:i!==void 0?i:null,y:r!==void 0?r:null}}function sC(t,n){for(let e of t)if(e===n||e.contains(n))return!0}function poe(t,n,e){let i=t.canvas,r=new MutationObserver(o=>{let a=!1;for(let s of o)a=a||sC(s.addedNodes,i),a=a&&!sC(s.removedNodes,i);a&&e()});return r.observe(document,{childList:!0,subtree:!0}),r}function foe(t,n,e){let i=t.canvas,r=new MutationObserver(o=>{let a=!1;for(let s of o)a=a||sC(s.removedNodes,i),a=a&&!sC(s.addedNodes,i);a&&e()});return r.observe(document,{childList:!0,subtree:!0}),r}var Kg=new Map,d4=0;function iH(){let t=window.devicePixelRatio;t!==d4&&(d4=t,Kg.forEach((n,e)=>{e.currentDevicePixelRatio!==t&&n()}))}function goe(t,n){Kg.size||window.addEventListener("resize",iH),Kg.set(t,n)}function _oe(t){Kg.delete(t),Kg.size||window.removeEventListener("resize",iH)}function boe(t,n,e){let i=t.canvas,r=i&&Qx(i);if(!r)return;let o=rT((s,l)=>{let c=r.clientWidth;e(s,l),c{let l=s[0],c=l.contentRect.width,d=l.contentRect.height;c===0&&d===0||o(c,d)});return a.observe(r),goe(t,o),a}function TT(t,n,e){e&&e.disconnect(),n==="resize"&&_oe(t)}function voe(t,n,e){let i=t.canvas,r=rT(o=>{t.ctx!==null&&e(hoe(o,t))},t);return uoe(i,n,r),r}var VT=class extends aC{acquireContext(n,e){let i=n&&n.getContext&&n.getContext("2d");return i&&i.canvas===n?(doe(n,e),i):null}releaseContext(n){let e=n.canvas;if(!e[nC])return!1;let i=e[nC].initial;["height","width"].forEach(o=>{let a=i[o];Et(a)?e.removeAttribute(o):e.setAttribute(o,a)});let r=i.style||{};return Object.keys(r).forEach(o=>{e.style[o]=r[o]}),e.width=e.width,delete e[nC],!0}addEventListener(n,e,i){this.removeEventListener(n,e);let r=n.$proxies||(n.$proxies={}),a={attach:poe,detach:foe,resize:boe}[e]||voe;r[e]=a(n,e,i)}removeEventListener(n,e){let i=n.$proxies||(n.$proxies={}),r=i[e];if(!r)return;({attach:TT,detach:TT,resize:TT}[e]||moe)(n,e,r),i[e]=void 0}getDevicePixelRatio(){return window.devicePixelRatio}getMaximumSize(n,e,i,r){return $j(n,e,i,r)}isAttached(n){let e=n&&Qx(n);return!!(e&&e.isConnected)}};function yoe(t){return!Yx()||typeof OffscreenCanvas<"u"&&t instanceof OffscreenCanvas?LT:VT}var ja=class{static defaults={};static defaultRoutes=void 0;x;y;active=!1;options;$animations;tooltipPosition(n){let{x:e,y:i}=this.getProps(["x","y"],n);return{x:e,y:i}}hasValue(){return xu(this.x)&&xu(this.y)}getProps(n,e){let i=this.$animations;if(!e||!i)return this;let r={};return n.forEach(o=>{r[o]=i[o]&&i[o].active()?i[o]._to:this[o]}),r}};function xoe(t,n){let e=t.options.ticks,i=Coe(t),r=Math.min(e.maxTicksLimit||i,i),o=e.major.enabled?Doe(n):[],a=o.length,s=o[0],l=o[a-1],c=[];if(a>r)return Eoe(n,c,o,a/r),c;let d=woe(o,n,r);if(a>0){let m,f,b=a>1?Math.round((l-s)/(a-1)):null;for(Xx(n,c,d,Et(b)?0:s-b,s),m=0,f=a-1;mr)return l}return Math.max(r,1)}function Doe(t){let n=[],e,i;for(e=0,i=t.length;et==="left"?"right":t==="right"?"left":t,u4=(t,n,e)=>n==="top"||n==="left"?t[n]+e:t[n]-e,m4=(t,n)=>Math.min(n||t,t);function h4(t,n){let e=[],i=t.length/n,r=t.length,o=0;for(;oa+s)))return l}function Toe(t,n){ii(t,e=>{let i=e.gc,r=i.length/2,o;if(r>n){for(o=0;oi?i:e,i=r&&e>i?e:i,{min:no(e,no(i,e)),max:no(i,no(e,i))}}getPadding(){return{left:this.paddingLeft||0,top:this.paddingTop||0,right:this.paddingRight||0,bottom:this.paddingBottom||0}}getTicks(){return this.ticks}getLabels(){let n=this.chart.data;return this.options.labels||(this.isHorizontal()?n.xLabels:n.yLabels)||n.labels||[]}getLabelItems(n=this.chart.chartArea){return this._labelItems||(this._labelItems=this._computeLabelItems(n))}beforeLayout(){this._cache={},this._dataLimitsCached=!1}beforeUpdate(){yi(this.options.beforeUpdate,[this])}update(n,e,i){let{beginAtZero:r,grace:o,ticks:a}=this.options,s=a.sampleSize;this.beforeUpdate(),this.maxWidth=n,this.maxHeight=e,this._margins=i=Object.assign({left:0,right:0,top:0,bottom:0},i),this.ticks=null,this._labelSizes=null,this._gridLineItems=null,this._labelItems=null,this.beforeSetDimensions(),this.setDimensions(),this.afterSetDimensions(),this._maxLength=this.isHorizontal()?this.width+i.left+i.right:this.height+i.top+i.bottom,this._dataLimitsCached||(this.beforeDataLimits(),this.determineDataLimits(),this.afterDataLimits(),this._range=Vj(this,o,r),this._dataLimitsCached=!0),this.beforeBuildTicks(),this.ticks=this.buildTicks()||[],this.afterBuildTicks();let l=s=o||i<=1||!this.isHorizontal()){this.labelRotation=r;return}let d=this._getLabelSizes(),m=d.widest.width,f=d.highest.height,b=Dn(this.chart.width-m,0,this.maxWidth);s=n.offset?this.maxWidth/i:b/(i-1),m+6>s&&(s=b/(i-(n.offset?.5:1)),l=this.maxHeight-Gg(n.grid)-e.padding-p4(n.title,this.chart.options.font),c=Math.sqrt(m*m+f*f),a=Hx(Math.min(Math.asin(Dn((d.highest.height+6)/s,-1,1)),Math.asin(Dn(l/c,-1,1))-Math.asin(Dn(f/c,-1,1)))),a=Math.max(r,Math.min(o,a))),this.labelRotation=a}afterCalculateLabelRotation(){yi(this.options.afterCalculateLabelRotation,[this])}afterAutoSkip(){}beforeFit(){yi(this.options.beforeFit,[this])}fit(){let n={width:0,height:0},{chart:e,options:{ticks:i,title:r,grid:o}}=this,a=this._isVisible(),s=this.isHorizontal();if(a){let l=p4(r,e.options.font);if(s?(n.width=this.maxWidth,n.height=Gg(o)+l):(n.height=this.maxHeight,n.width=Gg(o)+l),i.display&&this.ticks.length){let{first:c,last:d,widest:m,highest:f}=this._getLabelSizes(),b=i.padding*2,v=ra(this.labelRotation),w=Math.cos(v),x=Math.sin(v);if(s){let D=i.mirror?0:x*m.width+w*f.height;n.height=Math.min(this.maxHeight,n.height+D+b)}else{let D=i.mirror?0:w*m.width+x*f.height;n.width=Math.min(this.maxWidth,n.width+D+b)}this._calculatePadding(c,d,x,w)}}this._handleMargins(),s?(this.width=this._length=e.width-this._margins.left-this._margins.right,this.height=n.height):(this.width=n.width,this.height=this._length=e.height-this._margins.top-this._margins.bottom)}_calculatePadding(n,e,i,r){let{ticks:{align:o,padding:a},position:s}=this.options,l=this.labelRotation!==0,c=s!=="top"&&this.axis==="x";if(this.isHorizontal()){let d=this.getPixelForTick(0)-this.left,m=this.right-this.getPixelForTick(this.ticks.length-1),f=0,b=0;l?c?(f=r*n.width,b=i*e.height):(f=i*n.height,b=r*e.width):o==="start"?b=e.width:o==="end"?f=n.width:o!=="inner"&&(f=n.width/2,b=e.width/2),this.paddingLeft=Math.max((f-d+a)*this.width/(this.width-d),0),this.paddingRight=Math.max((b-m+a)*this.width/(this.width-m),0)}else{let d=e.height/2,m=n.height/2;o==="start"?(d=0,m=n.height):o==="end"&&(d=e.height,m=0),this.paddingTop=d+a,this.paddingBottom=m+a}}_handleMargins(){this._margins&&(this._margins.left=Math.max(this.paddingLeft,this._margins.left),this._margins.top=Math.max(this.paddingTop,this._margins.top),this._margins.right=Math.max(this.paddingRight,this._margins.right),this._margins.bottom=Math.max(this.paddingBottom,this._margins.bottom))}afterFit(){yi(this.options.afterFit,[this])}isHorizontal(){let{axis:n,position:e}=this.options;return e==="top"||e==="bottom"||n==="x"}isFullSize(){return this.options.fullSize}_convertTicksToLabels(n){this.beforeTickToLabelConversion(),this.generateTickLabels(n);let e,i;for(e=0,i=n.length;e({width:a[Ve]||0,height:s[Ve]||0});return{first:be(0),last:be(e-1),widest:be(re),highest:be(Ee),widths:a,heights:s}}getLabelForValue(n){return n}getPixelForValue(n,e){return NaN}getValueForPixel(n){}getPixelForTick(n){let e=this.ticks;return n<0||n>e.length-1?null:this.getPixelForValue(e[n].value)}getPixelForDecimal(n){this._reversePixels&&(n=1-n);let e=this._startPixel+n*this._length;return kj(this._alignToPixels?kc(this.chart,e,0):e)}getDecimalForPixel(n){let e=(n-this._startPixel)/this._length;return this._reversePixels?1-e:e}getBasePixel(){return this.getPixelForValue(this.getBaseValue())}getBaseValue(){let{min:n,max:e}=this;return n<0&&e<0?e:n>0&&e>0?n:0}getContext(n){let e=this.ticks||[];if(n>=0&&ns*r?s/i:l/r:l*r0}_computeGridLineItems(n){let e=this.axis,i=this.chart,r=this.options,{grid:o,position:a,border:s}=r,l=o.offset,c=this.isHorizontal(),m=this.ticks.length+(l?1:0),f=Gg(o),b=[],v=s.setContext(this.getContext()),w=v.display?v.width:0,x=w/2,D=function(Pi){return kc(i,Pi,w)},P,W,Z,K,re,Ee,be,Ve,yt,bt,It,$n;if(a==="top")P=D(this.bottom),Ee=this.bottom-f,Ve=P-x,bt=D(n.top)+x,$n=n.bottom;else if(a==="bottom")P=D(this.top),bt=n.top,$n=D(n.bottom)-x,Ee=P+x,Ve=this.top+f;else if(a==="left")P=D(this.right),re=this.right-f,be=P-x,yt=D(n.left)+x,It=n.right;else if(a==="right")P=D(this.left),yt=n.left,It=D(n.right)-x,re=P+x,be=this.left+f;else if(e==="x"){if(a==="center")P=D((n.top+n.bottom)/2+.5);else if(St(a)){let Pi=Object.keys(a)[0],en=a[Pi];P=D(this.chart.scales[Pi].getPixelForValue(en))}bt=n.top,$n=n.bottom,Ee=P+x,Ve=Ee+f}else if(e==="y"){if(a==="center")P=D((n.left+n.right)/2);else if(St(a)){let Pi=Object.keys(a)[0],en=a[Pi];P=D(this.chart.scales[Pi].getPixelForValue(en))}re=P-x,be=re-f,yt=n.left,It=n.right}let lo=st(r.ticks.maxTicksLimit,m),ui=Math.max(1,Math.ceil(m/lo));for(W=0;W0&&(Jc-=Xc/2);break}D_={left:Jc,top:mp,width:Xc+Pu.width,height:up+Pu.height,color:ui.backdropColor}}x.push({label:Z,font:Ve,textOffset:It,options:{rotation:w,color:en,strokeColor:ma,strokeWidth:lr,textAlign:Ru,textBaseline:$n,translation:[K,re],backdrop:D_}})}return x}_getXAxisLabelAlignment(){let{position:n,ticks:e}=this.options;if(-ra(this.labelRotation))return n==="top"?"left":"right";let r="center";return e.align==="start"?r="left":e.align==="end"?r="right":e.align==="inner"&&(r="inner"),r}_getYAxisLabelAlignment(n){let{position:e,ticks:{crossAlign:i,mirror:r,padding:o}}=this.options,a=this._getLabelSizes(),s=n+o,l=a.widest.width,c,d;return e==="left"?r?(d=this.right+o,i==="near"?c="left":i==="center"?(c="center",d+=l/2):(c="right",d+=l)):(d=this.right-s,i==="near"?c="right":i==="center"?(c="center",d-=l/2):(c="left",d=this.left)):e==="right"?r?(d=this.left+o,i==="near"?c="right":i==="center"?(c="center",d-=l/2):(c="left",d-=l)):(d=this.left+s,i==="near"?c="left":i==="center"?(c="center",d+=l/2):(c="right",d=this.right)):c="right",{textAlign:c,x:d}}_computeLabelArea(){if(this.options.ticks.mirror)return;let n=this.chart,e=this.options.position;if(e==="left"||e==="right")return{top:0,left:this.left,bottom:n.height,right:this.right};if(e==="top"||e==="bottom")return{top:this.top,left:0,bottom:this.bottom,right:n.width}}drawBackground(){let{ctx:n,options:{backgroundColor:e},left:i,top:r,width:o,height:a}=this;e&&(n.save(),n.fillStyle=e,n.fillRect(i,r,o,a),n.restore())}getLineWidthForValue(n){let e=this.options.grid;if(!this._isVisible()||!e.display)return 0;let r=this.ticks.findIndex(o=>o.value===n);return r>=0?e.setContext(this.getContext(r)).lineWidth:0}drawGrid(n){let e=this.options.grid,i=this.ctx,r=this._gridLineItems||(this._gridLineItems=this._computeGridLineItems(n)),o,a,s=(l,c,d)=>{!d.width||!d.color||(i.save(),i.lineWidth=d.width,i.strokeStyle=d.color,i.setLineDash(d.borderDash||[]),i.lineDashOffset=d.borderDashOffset,i.beginPath(),i.moveTo(l.x,l.y),i.lineTo(c.x,c.y),i.stroke(),i.restore())};if(e.display)for(o=0,a=r.length;o{this.draw(o)}}]:[{z:i,draw:o=>{this.drawBackground(),this.drawGrid(o),this.drawTitle()}},{z:r,draw:()=>{this.drawBorder()}},{z:e,draw:o=>{this.drawLabels(o)}}]}getMatchingVisibleMetas(n){let e=this.chart.getSortedVisibleDatasetMetas(),i=this.axis+"AxisID",r=[],o,a;for(o=0,a=e.length;o{let i=e.split("."),r=i.pop(),o=[t].concat(i).join("."),a=n[e].split("."),s=a.pop(),l=a.join(".");xi.route(o,r,l,s)})}function Noe(t){return"id"in t&&"defaults"in t}var BT=class{constructor(){this.controllers=new Uh(Oc,"datasets",!0),this.elements=new Uh(ja,"elements"),this.plugins=new Uh(Object,"plugins"),this.scales=new Uh(Eu,"scales"),this._typedRegistries=[this.controllers,this.scales,this.elements]}add(...n){this._each("register",n)}remove(...n){this._each("unregister",n)}addControllers(...n){this._each("register",n,this.controllers)}addElements(...n){this._each("register",n,this.elements)}addPlugins(...n){this._each("register",n,this.plugins)}addScales(...n){this._each("register",n,this.scales)}getController(n){return this._get(n,this.controllers,"controller")}getElement(n){return this._get(n,this.elements,"element")}getPlugin(n){return this._get(n,this.plugins,"plugin")}getScale(n){return this._get(n,this.scales,"scale")}removeControllers(...n){this._each("unregister",n,this.controllers)}removeElements(...n){this._each("unregister",n,this.elements)}removePlugins(...n){this._each("unregister",n,this.plugins)}removeScales(...n){this._each("unregister",n,this.scales)}_each(n,e,i){[...e].forEach(r=>{let o=i||this._getRegistryForType(r);i||o.isForType(r)||o===this.plugins&&r.id?this._exec(n,o,r):ii(r,a=>{let s=i||this._getRegistryForType(a);this._exec(n,s,a)})})}_exec(n,e,i){let r=jx(n);yi(i["before"+r],[],i),e[n](i),yi(i["after"+r],[],i)}_getRegistryForType(n){for(let e=0;eo.filter(s=>!a.some(l=>s.plugin.id===l.plugin.id));this._notify(r(e,i),n,"stop"),this._notify(r(i,e),n,"start")}};function Loe(t){let n={},e=[],i=Object.keys(Os.plugins.items);for(let o=0;o1&&f4(t[0].toLowerCase());if(i)return i}throw new Error(`Cannot determine type of '${t}' axis. Please provide 'axis' or 'position' option.`)}function g4(t,n,e){if(e[n+"AxisID"]===t)return{axis:n}}function $oe(t,n){if(n.data&&n.data.datasets){let e=n.data.datasets.filter(i=>i.xAxisID===t||i.yAxisID===t);if(e.length)return g4(t,"x",e[0])||g4(t,"y",e[0])}return{}}function Woe(t,n){let e=Mc[t.type]||{scales:{}},i=n.scales||{},r=HT(t.type,n),o=Object.create(null);return Object.keys(i).forEach(a=>{let s=i[a];if(!St(s))return console.error(`Invalid scale configuration for scale: ${a}`);if(s._proxy)return console.warn(`Ignoring resolver passed as options for scale: ${a}`);let l=zT(a,s,$oe(a,t),xi.scales[s.type]),c=zoe(l,r),d=e.scales||{};o[a]=Fh(Object.create(null),[{axis:l},s,d[l],d[c]])}),t.data.datasets.forEach(a=>{let s=a.type||t.type,l=a.indexAxis||HT(s,n),d=(Mc[s]||{}).scales||{};Object.keys(d).forEach(m=>{let f=Hoe(m,l),b=a[f+"AxisID"]||f;o[b]=o[b]||Object.create(null),Fh(o[b],[{axis:f},i[b],d[m]])})}),Object.keys(o).forEach(a=>{let s=o[a];Fh(s,[xi.scales[s.type],xi.scale])}),o}function nH(t){let n=t.options||(t.options={});n.plugins=st(n.plugins,{}),n.scales=Woe(t,n)}function rH(t){return t=t||{},t.datasets=t.datasets||[],t.labels=t.labels||[],t}function Goe(t){return t=t||{},t.data=rH(t.data),nH(t),t}var _4=new Map,oH=new Set;function Jx(t,n){let e=_4.get(t);return e||(e=n(),_4.set(t,e),oH.add(e)),e}var qg=(t,n,e)=>{let i=_l(n,e);i!==void 0&&t.add(i)},UT=class{constructor(n){this._config=Goe(n),this._scopeCache=new Map,this._resolverCache=new Map}get platform(){return this._config.platform}get type(){return this._config.type}set type(n){this._config.type=n}get data(){return this._config.data}set data(n){this._config.data=rH(n)}get options(){return this._config.options}set options(n){this._config.options=n}get plugins(){return this._config.plugins}update(){let n=this._config;this.clearCache(),nH(n)}clearCache(){this._scopeCache.clear(),this._resolverCache.clear()}datasetScopeKeys(n){return Jx(n,()=>[[`datasets.${n}`,""]])}datasetAnimationScopeKeys(n,e){return Jx(`${n}.transition.${e}`,()=>[[`datasets.${n}.transitions.${e}`,`transitions.${e}`],[`datasets.${n}`,""]])}datasetElementScopeKeys(n,e){return Jx(`${n}-${e}`,()=>[[`datasets.${n}.elements.${e}`,`datasets.${n}`,`elements.${e}`,""]])}pluginScopeKeys(n){let e=n.id,i=this.type;return Jx(`${i}-plugin-${e}`,()=>[[`plugins.${e}`,...n.additionalOptionScopes||[]]])}_cachedScopes(n,e){let i=this._scopeCache,r=i.get(n);return(!r||e)&&(r=new Map,i.set(n,r)),r}getOptionScopes(n,e,i){let{options:r,type:o}=this,a=this._cachedScopes(n,i),s=a.get(e);if(s)return s;let l=new Set;e.forEach(d=>{n&&(l.add(n),d.forEach(m=>qg(l,n,m))),d.forEach(m=>qg(l,r,m)),d.forEach(m=>qg(l,Mc[o]||{},m)),d.forEach(m=>qg(l,xi,m)),d.forEach(m=>qg(l,$x,m))});let c=Array.from(l);return c.length===0&&c.push(Object.create(null)),oH.has(e)&&a.set(e,c),c}chartOptionScopes(){let{options:n,type:e}=this;return[n,Mc[e]||{},xi.datasets[e]||{},{type:e},xi,$x]}resolveNamedOptions(n,e,i,r=[""]){let o={$shared:!0},{resolver:a,subPrefixes:s}=b4(this._resolverCache,n,r),l=a;if(Yoe(a,e)){o.$shared=!1,i=fl(i)?i():i;let c=this.createResolver(n,i,s);l=yu(a,i,c)}for(let c of e)o[c]=l[c];return o}createResolver(n,e,i=[""],r){let{resolver:o}=b4(this._resolverCache,n,i);return St(e)?yu(o,e,void 0,r):o}};function b4(t,n,e){let i=t.get(n);i||(i=new Map,t.set(n,i));let r=e.join(),o=i.get(r);return o||(o={resolver:qx(n,e),subPrefixes:e.filter(s=>!s.toLowerCase().includes("hover"))},i.set(r,o)),o}var qoe=t=>St(t)&&Object.getOwnPropertyNames(t).some(n=>fl(t[n]));function Yoe(t,n){let{isScriptable:e,isIndexable:i}=mT(t);for(let r of n){let o=e(r),a=i(r),s=(a||o)&&t[r];if(o&&(fl(s)||qoe(s))||a&&Ei(s))return!0}return!1}var Qoe="4.5.1",Koe=["top","bottom","left","right","chartArea"];function v4(t,n){return t==="top"||t==="bottom"||Koe.indexOf(t)===-1&&n==="x"}function y4(t,n){return function(e,i){return e[t]===i[t]?e[n]-i[n]:e[t]-i[t]}}function x4(t){let n=t.chart,e=n.options.animation;n.notifyPlugins("afterRender"),yi(e&&e.onComplete,[t],n)}function Zoe(t){let n=t.chart,e=n.options.animation;yi(e&&e.onProgress,[t],n)}function aH(t){return Yx()&&typeof t=="string"?t=document.getElementById(t):t&&t.length&&(t=t[0]),t&&t.canvas&&(t=t.canvas),t}var rC={},C4=t=>{let n=aH(t);return Object.values(rC).filter(e=>e.canvas===n).pop()};function Xoe(t,n,e){let i=Object.keys(t);for(let r of i){let o=+r;if(o>=n){let a=t[r];delete t[r],(e>0||o>n)&&(t[o+e]=a)}}}function Joe(t,n,e,i){return!e||t.type==="mouseout"?null:i?n:t}var uC=(()=>{class t{static defaults=xi;static instances=rC;static overrides=Mc;static registry=Os;static version=Qoe;static getChart=C4;static register(...e){Os.add(...e),w4()}static unregister(...e){Os.remove(...e),w4()}constructor(e,i){let r=this.config=new UT(i),o=aH(e),a=C4(o);if(a)throw new Error("Canvas is already in use. Chart with ID '"+a.id+"' must be destroyed before the canvas with ID '"+a.canvas.id+"' can be reused.");let s=r.createResolver(r.chartOptionScopes(),this.getContext());this.platform=new(r.platform||yoe(o)),this.platform.updateConfig(r);let l=this.platform.acquireContext(o,s.aspectRatio),c=l&&l.canvas,d=c&&c.height,m=c&&c.width;if(this.id=xj(),this.ctx=l,this.canvas=c,this.width=m,this.height=d,this._options=s,this._aspectRatio=this.aspectRatio,this._layers=[],this._metasets=[],this._stacks=void 0,this.boxes=[],this.currentDevicePixelRatio=void 0,this.chartArea=void 0,this._active=[],this._lastEvent=void 0,this._listeners={},this._responsiveListeners=void 0,this._sortedMetasets=[],this.scales={},this._plugins=new jT,this.$proxies={},this._hiddenIndices={},this.attached=!1,this._animationsDisabled=void 0,this.$context=void 0,this._doResize=Oj(f=>this.update(f),s.resizeDelay||0),this._dataChanges=[],rC[this.id]=this,!l||!c){console.error("Failed to create chart: can't acquire context from the given item");return}vl.listen(this,"complete",x4),vl.listen(this,"progress",Zoe),this._initialize(),this.attached&&this.update()}get aspectRatio(){let{options:{aspectRatio:e,maintainAspectRatio:i},width:r,height:o,_aspectRatio:a}=this;return Et(e)?i&&a?a:o?r/o:null:e}get data(){return this.config.data}set data(e){this.config.data=e}get options(){return this._options}set options(e){this.config.options=e}get registry(){return Os}_initialize(){return this.notifyPlugins("beforeInit"),this.options.responsive?this.resize():gT(this,this.options.devicePixelRatio),this.bindEvents(),this.notifyPlugins("afterInit"),this}clear(){return cT(this.canvas,this.ctx),this}stop(){return vl.stop(this),this}resize(e,i){vl.running(this)?this._resizeBeforeDraw={width:e,height:i}:this._resize(e,i)}_resize(e,i){let r=this.options,o=this.canvas,a=r.maintainAspectRatio&&this.aspectRatio,s=this.platform.getMaximumSize(o,e,i,a),l=r.devicePixelRatio||this.platform.getDevicePixelRatio(),c=this.width?"resize":"attach";this.width=s.width,this.height=s.height,this._aspectRatio=this.aspectRatio,gT(this,l,!0)&&(this.notifyPlugins("resize",{size:s}),yi(r.onResize,[this,s],this),this.attached&&this._doResize(c)&&this.render())}ensureScalesHaveIDs(){let i=this.options.scales||{};ii(i,(r,o)=>{r.id=o})}buildOrUpdateScales(){let e=this.options,i=e.scales,r=this.scales,o=Object.keys(r).reduce((s,l)=>(s[l]=!1,s),{}),a=[];i&&(a=a.concat(Object.keys(i).map(s=>{let l=i[s],c=zT(s,l),d=c==="r",m=c==="x";return{options:l,dposition:d?"chartArea":m?"bottom":"left",dtype:d?"radialLinear":m?"category":"linear"}}))),ii(a,s=>{let l=s.options,c=l.id,d=zT(c,l),m=st(l.type,s.dtype);(l.position===void 0||v4(l.position,d)!==v4(s.dposition))&&(l.position=s.dposition),o[c]=!0;let f=null;if(c in r&&r[c].type===m)f=r[c];else{let b=Os.getScale(m);f=new b({id:c,type:m,ctx:this.ctx,chart:this}),r[f.id]=f}f.init(l,e)}),ii(o,(s,l)=>{s||delete r[l]}),ii(r,s=>{Dr.configure(this,s,s.options),Dr.addBox(this,s)})}_updateMetasets(){let e=this._metasets,i=this.data.datasets.length,r=e.length;if(e.sort((o,a)=>o.index-a.index),r>i){for(let o=i;oi.length&&delete this._stacks,e.forEach((r,o)=>{i.filter(a=>a===r._dataset).length===0&&this._destroyDatasetMeta(o)})}buildOrUpdateControllers(){let e=[],i=this.data.datasets,r,o;for(this._removeUnreferencedMetasets(),r=0,o=i.length;r{this.getDatasetMeta(i).controller.reset()},this)}reset(){this._resetElements(),this.notifyPlugins("reset")}update(e){let i=this.config;i.update();let r=this._options=i.createResolver(i.chartOptionScopes(),this.getContext()),o=this._animationsDisabled=!r.animation;if(this._updateScales(),this._checkEventBindings(),this._updateHiddenIndices(),this._plugins.invalidate(),this.notifyPlugins("beforeUpdate",{mode:e,cancelable:!0})===!1)return;let a=this.buildOrUpdateControllers();this.notifyPlugins("beforeElementsUpdate");let s=0;for(let d=0,m=this.data.datasets.length;d{d.reset()}),this._updateDatasets(e),this.notifyPlugins("afterUpdate",{mode:e}),this._layers.sort(y4("z","_idx"));let{_active:l,_lastEvent:c}=this;c?this._eventHandler(c,!0):l.length&&this._updateHoverStyles(l,l,!0),this.render()}_updateScales(){ii(this.scales,e=>{Dr.removeBox(this,e)}),this.ensureScalesHaveIDs(),this.buildOrUpdateScales()}_checkEventBindings(){let e=this.options,i=new Set(Object.keys(this._listeners)),r=new Set(e.events);(!KS(i,r)||!!this._responsiveListeners!==e.responsive)&&(this.unbindEvents(),this.bindEvents())}_updateHiddenIndices(){let{_hiddenIndices:e}=this,i=this._getUniformDataChanges()||[];for(let{method:r,start:o,count:a}of i){let s=r==="_removeElements"?-a:a;Xoe(e,o,s)}}_getUniformDataChanges(){let e=this._dataChanges;if(!e||!e.length)return;this._dataChanges=[];let i=this.data.datasets.length,r=a=>new Set(e.filter(s=>s[0]===a).map((s,l)=>l+","+s.splice(1).join(","))),o=r(0);for(let a=1;aa.split(",")).map(a=>({method:a[1],start:+a[2],count:+a[3]}))}_updateLayout(e){if(this.notifyPlugins("beforeLayout",{cancelable:!0})===!1)return;Dr.update(this,this.width,this.height,e);let i=this.chartArea,r=i.width<=0||i.height<=0;this._layers=[],ii(this.boxes,o=>{r&&o.position==="chartArea"||(o.configure&&o.configure(),this._layers.push(...o._layers()))},this),this._layers.forEach((o,a)=>{o._idx=a}),this.notifyPlugins("afterLayout")}_updateDatasets(e){if(this.notifyPlugins("beforeDatasetsUpdate",{mode:e,cancelable:!0})!==!1){for(let i=0,r=this.data.datasets.length;i=0;--i)this._drawDataset(e[i]);this.notifyPlugins("afterDatasetsDraw")}_drawDataset(e){let i=this.ctx,r={meta:e,index:e.index,cancelable:!0},o=CT(this,e);this.notifyPlugins("beforeDatasetDraw",r)!==!1&&(o&&Hg(i,o),e.controller.draw(),o&&zg(i),r.cancelable=!1,this.notifyPlugins("afterDatasetDraw",r))}isPointInArea(e){return Ss(e,this.chartArea,this._minPadding)}getElementsAtEventForMode(e,i,r,o){let a=toe.modes[i];return typeof a=="function"?a(this,e,r,o):[]}getDatasetMeta(e){let i=this.data.datasets[e],r=this._metasets,o=r.filter(a=>a&&a._dataset===i).pop();return o||(o={type:null,data:[],dataset:null,controller:null,hidden:null,xAxisID:null,yAxisID:null,order:i&&i.order||0,index:e,_dataset:i,_parsed:[],_sorted:!1},r.push(o)),o}getContext(){return this.$context||(this.$context=bl(null,{chart:this,type:"chart"}))}getVisibleDatasetCount(){return this.getSortedVisibleDatasetMetas().length}isDatasetVisible(e){let i=this.data.datasets[e];if(!i)return!1;let r=this.getDatasetMeta(e);return typeof r.hidden=="boolean"?!r.hidden:!i.hidden}setDatasetVisibility(e,i){let r=this.getDatasetMeta(e);r.hidden=!i}toggleDataVisibility(e){this._hiddenIndices[e]=!this._hiddenIndices[e]}getDataVisibility(e){return!this._hiddenIndices[e]}_updateVisibility(e,i,r){let o=r?"show":"hide",a=this.getDatasetMeta(e),s=a.controller._resolveAnimations(void 0,o);Nh(i)?(a.data[i].hidden=!r,this.update()):(this.setDatasetVisibility(e,r),s.update(a,{visible:r}),this.update(l=>l.datasetIndex===e?o:void 0))}hide(e,i){this._updateVisibility(e,i,!1)}show(e,i){this._updateVisibility(e,i,!0)}_destroyDatasetMeta(e){let i=this._metasets[e];i&&i.controller&&i.controller._destroy(),delete this._metasets[e]}_stop(){let e,i;for(this.stop(),vl.remove(this),e=0,i=this.data.datasets.length;e{i.addEventListener(this,a,s),e[a]=s},o=(a,s,l)=>{a.offsetX=s,a.offsetY=l,this._eventHandler(a)};ii(this.options.events,a=>r(a,o))}bindResponsiveEvents(){this._responsiveListeners||(this._responsiveListeners={});let e=this._responsiveListeners,i=this.platform,r=(c,d)=>{i.addEventListener(this,c,d),e[c]=d},o=(c,d)=>{e[c]&&(i.removeEventListener(this,c,d),delete e[c])},a=(c,d)=>{this.canvas&&this.resize(c,d)},s,l=()=>{o("attach",l),this.attached=!0,this.resize(),r("resize",a),r("detach",s)};s=()=>{this.attached=!1,o("resize",a),this._stop(),this._resize(0,0),r("attach",l)},i.isAttached(this.canvas)?l():s()}unbindEvents(){ii(this._listeners,(e,i)=>{this.platform.removeEventListener(this,i,e)}),this._listeners={},ii(this._responsiveListeners,(e,i)=>{this.platform.removeEventListener(this,i,e)}),this._responsiveListeners=void 0}updateHoverStyle(e,i,r){let o=r?"set":"remove",a,s,l,c;for(i==="dataset"&&(a=this.getDatasetMeta(e[0].datasetIndex),a.controller["_"+o+"DatasetHoverStyle"]()),l=0,c=e.length;l{let l=this.getDatasetMeta(a);if(!l)throw new Error("No dataset found at index "+a);return{datasetIndex:a,element:l.data[s],index:s}});!Bg(r,i)&&(this._active=r,this._lastEvent=null,this._updateHoverStyles(r,i))}notifyPlugins(e,i,r){return this._plugins.notify(this,e,i,r)}isPluginEnabled(e){return this._plugins._cache.filter(i=>i.plugin.id===e).length===1}_updateHoverStyles(e,i,r){let o=this.options.hover,a=(c,d)=>c.filter(m=>!d.some(f=>m.datasetIndex===f.datasetIndex&&m.index===f.index)),s=a(i,e),l=r?e:a(e,i);s.length&&this.updateHoverStyle(s,o.mode,!1),l.length&&o.mode&&this.updateHoverStyle(l,o.mode,!0)}_eventHandler(e,i){let r={event:e,replay:i,cancelable:!0,inChartArea:this.isPointInArea(e)},o=s=>(s.options.events||this.options.events).includes(e.native.type);if(this.notifyPlugins("beforeEvent",r,o)===!1)return;let a=this._handleEvent(e,i,r.inChartArea);return r.cancelable=!1,this.notifyPlugins("afterEvent",r,o),(a||r.changed)&&this.render(),this}_handleEvent(e,i,r){let{_active:o=[],options:a}=this,s=i,l=this._getActiveElements(e,o,r,s),c=Dj(e),d=Joe(e,this._lastEvent,r,c);r&&(this._lastEvent=null,yi(a.onHover,[e,l,this],this),c&&yi(a.onClick,[e,l,this],this));let m=!Bg(l,o);return(m||i)&&(this._active=l,this._updateHoverStyles(l,o,i)),this._lastEvent=d,m}_getActiveElements(e,i,r,o){if(e.type==="mouseout")return[];if(!r)return i;let a=this.options.hover;return this.getElementsAtEventForMode(e,a.mode,a,o)}}return t})();function w4(){return ii(uC.instances,t=>t._plugins.invalidate())}function eae(t,n,e){let{startAngle:i,x:r,y:o,outerRadius:a,innerRadius:s,options:l}=n,{borderWidth:c,borderJoinStyle:d}=l,m=Math.min(c/a,or(i-e));if(t.beginPath(),t.arc(r,o,a-c/2,i+m/2,e-m/2),s>0){let f=Math.min(c/s,or(i-e));t.arc(r,o,s+c/2,e-f/2,i+f/2,!0)}else{let f=Math.min(c/2,a*or(i-e));if(d==="round")t.arc(r,o,f,e-Ht/2,i+Ht/2,!0);else if(d==="bevel"){let b=2*f*f,v=-b*Math.cos(e+Ht/2)+r,w=-b*Math.sin(e+Ht/2)+o,x=b*Math.cos(i+Ht/2)+r,D=b*Math.sin(i+Ht/2)+o;t.lineTo(v,w),t.lineTo(x,D)}}t.closePath(),t.moveTo(0,0),t.rect(0,0,t.canvas.width,t.canvas.height),t.clip("evenodd")}function tae(t,n,e){let{startAngle:i,pixelMargin:r,x:o,y:a,outerRadius:s,innerRadius:l}=n,c=r/s;t.beginPath(),t.arc(o,a,s,i-c,e+c),l>r?(c=r/l,t.arc(o,a,l,e+c,i-c,!0)):t.arc(o,a,r,e+Zi,i-Zi),t.closePath(),t.clip()}function iae(t){return Gx(t,["outerStart","outerEnd","innerStart","innerEnd"])}function nae(t,n,e,i){let r=iae(t.options.borderRadius),o=(e-n)/2,a=Math.min(o,i*n/2),s=l=>{let c=(e-Math.min(o,l))*i/2;return Dn(l,0,Math.min(o,c))};return{outerStart:s(r.outerStart),outerEnd:s(r.outerEnd),innerStart:Dn(r.innerStart,0,a),innerEnd:Dn(r.innerEnd,0,a)}}function zh(t,n,e,i){return{x:e+t*Math.cos(n),y:i+t*Math.sin(n)}}function lC(t,n,e,i,r,o){let{x:a,y:s,startAngle:l,pixelMargin:c,innerRadius:d}=n,m=Math.max(n.outerRadius+i+e-c,0),f=d>0?d+i+e+c:0,b=0,v=r-l;if(i){let ui=d>0?d-i:0,Pi=m>0?m-i:0,en=(ui+Pi)/2,ma=en!==0?v*en/(en+i):v;b=(v-ma)/2}let w=Math.max(.001,v*m-e/Ht)/m,x=(v-w)/2,D=l+x+b,P=r-x-b,{outerStart:W,outerEnd:Z,innerStart:K,innerEnd:re}=nae(n,f,m,P-D),Ee=m-W,be=m-Z,Ve=D+W/Ee,yt=P-Z/be,bt=f+K,It=f+re,$n=D+K/bt,lo=P-re/It;if(t.beginPath(),o){let ui=(Ve+yt)/2;if(t.arc(a,s,m,Ve,ui),t.arc(a,s,m,ui,yt),Z>0){let lr=zh(be,yt,a,s);t.arc(lr.x,lr.y,Z,yt,P+Zi)}let Pi=zh(It,P,a,s);if(t.lineTo(Pi.x,Pi.y),re>0){let lr=zh(It,lo,a,s);t.arc(lr.x,lr.y,re,P+Zi,lo+Math.PI)}let en=(P-re/f+(D+K/f))/2;if(t.arc(a,s,f,P-re/f,en,!0),t.arc(a,s,f,en,D+K/f,!0),K>0){let lr=zh(bt,$n,a,s);t.arc(lr.x,lr.y,K,$n+Math.PI,D-Zi)}let ma=zh(Ee,D,a,s);if(t.lineTo(ma.x,ma.y),W>0){let lr=zh(Ee,Ve,a,s);t.arc(lr.x,lr.y,W,D-Zi,Ve)}}else{t.moveTo(a,s);let ui=Math.cos(Ve)*m+a,Pi=Math.sin(Ve)*m+s;t.lineTo(ui,Pi);let en=Math.cos(yt)*m+a,ma=Math.sin(yt)*m+s;t.lineTo(en,ma)}t.closePath()}function rae(t,n,e,i,r){let{fullCircles:o,startAngle:a,circumference:s}=n,l=n.endAngle;if(o){lC(t,n,e,i,l,r);for(let c=0;c=Ht&&b===0&&d!=="miter"&&eae(t,n,w),o||(lC(t,n,e,i,w,r),t.stroke())}var $T=class extends ja{static id="arc";static defaults={borderAlign:"center",borderColor:"#fff",borderDash:[],borderDashOffset:0,borderJoinStyle:void 0,borderRadius:0,borderWidth:2,offset:0,spacing:0,angle:void 0,circular:!0,selfJoin:!1};static defaultRoutes={backgroundColor:"backgroundColor"};static descriptors={_scriptable:!0,_indexable:n=>n!=="borderDash"};circumference;endAngle;fullCircles;innerRadius;outerRadius;pixelMargin;startAngle;constructor(n){super(),this.options=void 0,this.circumference=void 0,this.startAngle=void 0,this.endAngle=void 0,this.innerRadius=void 0,this.outerRadius=void 0,this.pixelMargin=0,this.fullCircles=0,n&&Object.assign(this,n)}inRange(n,e,i){let r=this.getProps(["x","y"],i),{angle:o,distance:a}=eT(r,{x:n,y:e}),{startAngle:s,endAngle:l,innerRadius:c,outerRadius:d,circumference:m}=this.getProps(["startAngle","endAngle","innerRadius","outerRadius","circumference"],i),f=(this.options.spacing+this.options.borderWidth)/2,b=st(m,l-s),v=Vh(o,s,l)&&s!==l,w=b>=Mi||v,x=Is(a,c+f,d+f);return w&&x}getCenterPoint(n){let{x:e,y:i,startAngle:r,endAngle:o,innerRadius:a,outerRadius:s}=this.getProps(["x","y","startAngle","endAngle","innerRadius","outerRadius"],n),{offset:l,spacing:c}=this.options,d=(r+o)/2,m=(a+s+c+l)/2;return{x:e+Math.cos(d)*m,y:i+Math.sin(d)*m}}tooltipPosition(n){return this.getCenterPoint(n)}draw(n){let{options:e,circumference:i}=this,r=(e.offset||0)/4,o=(e.spacing||0)/2,a=e.circular;if(this.pixelMargin=e.borderAlign==="inner"?.33:0,this.fullCircles=i>Mi?Math.floor(i/Mi):0,i===0||this.innerRadius<0||this.outerRadius<0)return;n.save();let s=(this.startAngle+this.endAngle)/2;n.translate(Math.cos(s)*r,Math.sin(s)*r);let l=1-Math.sin(Math.min(Ht,i||0)),c=r*l;n.fillStyle=e.backgroundColor,n.strokeStyle=e.borderColor,rae(n,this,c,o,a),oae(n,this,c,o,a),n.restore()}};function sH(t,n,e=n){t.lineCap=st(e.borderCapStyle,n.borderCapStyle),t.setLineDash(st(e.borderDash,n.borderDash)),t.lineDashOffset=st(e.borderDashOffset,n.borderDashOffset),t.lineJoin=st(e.borderJoinStyle,n.borderJoinStyle),t.lineWidth=st(e.borderWidth,n.borderWidth),t.strokeStyle=st(e.borderColor,n.borderColor)}function aae(t,n,e){t.lineTo(e.x,e.y)}function sae(t){return t.stepped?Nj:t.tension||t.cubicInterpolationMode==="monotone"?Lj:aae}function lH(t,n,e={}){let i=t.length,{start:r=0,end:o=i-1}=e,{start:a,end:s}=n,l=Math.max(r,a),c=Math.min(o,s),d=rs&&o>s;return{count:i,start:l,loop:n.loop,ilen:c(a+(c?s-Z:Z))%o,W=()=>{w!==x&&(t.lineTo(d,x),t.lineTo(d,w),t.lineTo(d,D))};for(l&&(b=r[P(0)],t.moveTo(b.x,b.y)),f=0;f<=s;++f){if(b=r[P(f)],b.skip)continue;let Z=b.x,K=b.y,re=Z|0;re===v?(Kx&&(x=K),d=(m*d+Z)/++m):(W(),t.lineTo(Z,K),v=re,m=0,w=x=K),D=K}W()}function WT(t){let n=t.options,e=n.borderDash&&n.borderDash.length;return!t._decimated&&!t._loop&&!n.tension&&n.cubicInterpolationMode!=="monotone"&&!n.stepped&&!e?cae:lae}function dae(t){return t.stepped?Gj:t.tension||t.cubicInterpolationMode==="monotone"?qj:Dc}function uae(t,n,e,i){let r=n._path;r||(r=n._path=new Path2D,n.path(r,e,i)&&r.closePath()),sH(t,n.options),t.stroke(r)}function mae(t,n,e,i){let{segments:r,options:o}=n,a=WT(n);for(let s of r)sH(t,o,s.style),t.beginPath(),a(t,n,s,{start:e,end:e+i-1})&&t.closePath(),t.stroke()}var hae=typeof Path2D=="function";function pae(t,n,e,i){hae&&!n.options.segment?uae(t,n,e,i):mae(t,n,e,i)}var mC=(()=>{class t extends ja{static id="line";static defaults={borderCapStyle:"butt",borderDash:[],borderDashOffset:0,borderJoinStyle:"miter",borderWidth:3,capBezierPoints:!0,cubicInterpolationMode:"default",fill:!1,spanGaps:!1,stepped:!1,tension:0};static defaultRoutes={backgroundColor:"backgroundColor",borderColor:"borderColor"};static descriptors={_scriptable:!0,_indexable:e=>e!=="borderDash"&&e!=="fill"};constructor(e){super(),this.animated=!0,this.options=void 0,this._chart=void 0,this._loop=void 0,this._fullLoop=void 0,this._path=void 0,this._points=void 0,this._segments=void 0,this._decimated=!1,this._pointsUpdated=!1,this._datasetIndex=void 0,e&&Object.assign(this,e)}updateControlPoints(e,i){let r=this.options;if((r.tension||r.cubicInterpolationMode==="monotone")&&!r.stepped&&!this._pointsUpdated){let o=r.spanGaps?this._loop:this._fullLoop;Uj(this._points,r,e,o,i),this._pointsUpdated=!0}}set points(e){this._points=e,delete this._segments,delete this._path,this._pointsUpdated=!1}get points(){return this._points}get segments(){return this._segments||(this._segments=Qj(this,this.options.segment))}first(){let e=this.segments,i=this.points;return e.length&&i[e[0].start]}last(){let e=this.segments,i=this.points,r=e.length;return r&&i[e[r-1].end]}interpolate(e,i){let r=this.options,o=e[i],a=this.points,s=xT(this,{property:i,start:o,end:o});if(!s.length)return;let l=[],c=dae(r),d,m;for(d=0,m=s.length;d{class t extends ja{static id="point";parsed;skip;stop;static defaults={borderWidth:1,hitRadius:1,hoverBorderWidth:1,hoverRadius:4,pointStyle:"circle",radius:3,rotation:0};static defaultRoutes={backgroundColor:"backgroundColor",borderColor:"borderColor"};constructor(e){super(),this.options=void 0,this.parsed=void 0,this.skip=void 0,this.stop=void 0,e&&Object.assign(this,e)}inRange(e,i,r){let o=this.options,{x:a,y:s}=this.getProps(["x","y"],r);return Math.pow(e-a,2)+Math.pow(i-s,2)t.replace("rgb(","rgba(").replace(")",", 0.5)"));function dH(t){return qT[t%qT.length]}function uH(t){return E4[t%E4.length]}function Cae(t,n){return t.borderColor=dH(n),t.backgroundColor=uH(n),++n}function wae(t,n){return t.backgroundColor=t.data.map(()=>dH(n++)),n}function Dae(t,n){return t.backgroundColor=t.data.map(()=>uH(n++)),n}function Eae(t){let n=0;return(e,i)=>{let r=t.getDatasetMeta(i).controller;r instanceof tI?n=wae(e,n):r instanceof X4?n=Dae(e,n):r&&(n=Cae(e,n))}}function M4(t){let n;for(n in t)if(t[n].borderColor||t[n].backgroundColor)return!0;return!1}function Mae(t){return t&&(t.borderColor||t.backgroundColor)}function kae(){return xi.borderColor!=="rgba(0,0,0,0.1)"||xi.backgroundColor!=="rgba(0,0,0,0.1)"}var Sae={id:"colors",defaults:{enabled:!0,forceOverride:!1},beforeLayout(t,n,e){if(!e.enabled)return;let{data:{datasets:i},options:r}=t.config,{elements:o}=r,a=M4(i)||Mae(r)||o&&M4(o)||kae();if(!e.forceOverride&&a)return;let s=Eae(t);i.forEach(s)}};function Tae(t,n,e,i,r){let o=r.samples||i;if(o>=e)return t.slice(n,n+e);let a=[],s=(e-2)/(o-2),l=0,c=n+e-1,d=n,m,f,b,v,w;for(a[l++]=t[d],m=0;mb&&(b=v,f=t[P],w=P);a[l++]=f,d=w}return a[l++]=t[c],a}function Iae(t,n,e,i){let r=0,o=0,a,s,l,c,d,m,f,b,v,w,x=[],D=n+e-1,P=t[n].x,Z=t[D].x-P;for(a=n;aw&&(w=c,f=a),r=(o*r+s.x)/++o;else{let re=a-1;if(!Et(m)&&!Et(f)){let Ee=Math.min(m,f),be=Math.max(m,f);Ee!==b&&Ee!==re&&x.push(De(M({},t[Ee]),{x:r})),be!==b&&be!==re&&x.push(De(M({},t[be]),{x:r}))}a>0&&re!==b&&x.push(t[re]),x.push(s),d=K,o=0,v=w=c,m=f=b=a}}return x}function mH(t){if(t._decimated){let n=t._data;delete t._decimated,delete t._data,Object.defineProperty(t,"data",{configurable:!0,enumerable:!0,writable:!0,value:n})}}function k4(t){t.data.datasets.forEach(n=>{mH(n)})}function Aae(t,n){let e=n.length,i=0,r,{iScale:o}=t,{min:a,max:s,minDefined:l,maxDefined:c}=o.getUserBounds();return l&&(i=Dn(ks(n,o.axis,a).lo,0,e-1)),c?r=Dn(ks(n,o.axis,s).hi+1,i,e)-i:r=e-i,{start:i,count:r}}var Oae={id:"decimation",defaults:{algorithm:"min-max",enabled:!1},beforeElementsUpdate:(t,n,e)=>{if(!e.enabled){k4(t);return}let i=t.width;t.data.datasets.forEach((r,o)=>{let{_data:a,indexAxis:s}=r,l=t.getDatasetMeta(o),c=a||r.data;if(Hh([s,t.options.indexAxis])==="y"||!l.controller.supportsDecimation)return;let d=t.scales[l.xAxisID];if(d.type!=="linear"&&d.type!=="time"||t.options.parsing)return;let{start:m,count:f}=Aae(l,c),b=e.threshold||4*i;if(f<=b){mH(r);return}Et(a)&&(r._data=c,delete r.data,Object.defineProperty(r,"data",{configurable:!0,enumerable:!0,get:function(){return this._decimated},set:function(w){this._data=w}}));let v;switch(e.algorithm){case"lttb":v=Tae(c,m,f,i,e);break;case"min-max":v=Iae(c,m,f,i);break;default:throw new Error(`Unsupported decimation algorithm '${e.algorithm}'`)}r._decimated=v})},destroy(t){k4(t)}};function Rae(t,n,e){let i=t.segments,r=t.points,o=n.points,a=[];for(let s of i){let{start:l,end:c}=s;c=hC(l,c,r);let d=YT(e,r[l],r[c],s.loop);if(!n.segments){a.push({source:s,target:d,start:r[l],end:r[c]});continue}let m=xT(n,d);for(let f of m){let b=YT(e,o[f.start],o[f.end],f.loop),v=yT(s,r,b);for(let w of v)a.push({source:w,target:f,start:{[e]:S4(d,b,"start",Math.max)},end:{[e]:S4(d,b,"end",Math.min)}})}}return a}function YT(t,n,e,i){if(i)return;let r=n[t],o=e[t];return t==="angle"&&(r=or(r),o=or(o)),{property:t,start:r,end:o}}function Pae(t,n){let{x:e=null,y:i=null}=t||{},r=n.points,o=[];return n.segments.forEach(({start:a,end:s})=>{s=hC(a,s,r);let l=r[a],c=r[s];i!==null?(o.push({x:l.x,y:i}),o.push({x:c.x,y:i})):e!==null&&(o.push({x:e,y:l.y}),o.push({x:e,y:c.y}))}),o}function hC(t,n,e){for(;n>t;n--){let i=e[n];if(!isNaN(i.x)&&!isNaN(i.y))break}return n}function S4(t,n,e,i){return t&&n?i(t[e],n[e]):t?t[e]:n?n[e]:0}function hH(t,n){let e=[],i=!1;return Ei(t)?(i=!0,e=t):e=Pae(t,n),e.length?new mC({points:e,options:{tension:0},_loop:i,_fullLoop:i}):null}function T4(t){return t&&t.fill!==!1}function Fae(t,n,e){let r=t[n].fill,o=[n],a;if(!e)return r;for(;r!==!1&&o.indexOf(r)===-1;){if(!Gi(r))return r;if(a=t[r],!a)return!1;if(a.visible)return r;o.push(r),r=a.fill}return!1}function Nae(t,n,e){let i=jae(t);if(St(i))return isNaN(i.value)?!1:i;let r=parseFloat(i);return Gi(r)&&Math.floor(r)===r?Lae(i[0],n,r,e):["origin","start","end","stack","shape"].indexOf(i)>=0&&i}function Lae(t,n,e,i){return(t==="-"||t==="+")&&(e=n+e),e===n||e<0||e>=i?!1:e}function Vae(t,n){let e=null;return t==="start"?e=n.bottom:t==="end"?e=n.top:St(t)?e=n.getPixelForValue(t.value):n.getBasePixel&&(e=n.getBasePixel()),e}function Bae(t,n,e){let i;return t==="start"?i=e:t==="end"?i=n.options.reverse?n.min:n.max:St(t)?i=t.value:i=n.getBaseValue(),i}function jae(t){let n=t.options,e=n.fill,i=st(e&&e.target,e);return i===void 0&&(i=!!n.backgroundColor),i===!1||i===null?!1:i===!0?"origin":i}function Hae(t){let{scale:n,index:e,line:i}=t,r=[],o=i.segments,a=i.points,s=zae(n,e);s.push(hH({x:null,y:n.bottom},i));for(let l=0;l=0;--a){let s=r[a].$filler;s&&(s.line.updateControlPoints(o,s.axis),i&&s.fill&&OT(t.ctx,s,o))}},beforeDatasetsDraw(t,n,e){if(e.drawTime!=="beforeDatasetsDraw")return;let i=t.getSortedVisibleDatasetMetas();for(let r=i.length-1;r>=0;--r){let o=i[r].$filler;T4(o)&&OT(t.ctx,o,t.chartArea)}},beforeDatasetDraw(t,n,e){let i=n.meta.$filler;!T4(i)||e.drawTime!=="beforeDatasetDraw"||OT(t.ctx,i,t.chartArea)},defaults:{propagate:!0,drawTime:"beforeDatasetDraw"}},R4=(t,n)=>{let{boxHeight:e=n,boxWidth:i=n}=t;return t.usePointStyle&&(e=Math.min(e,n),i=t.pointStyleWidth||Math.min(i,n)),{boxWidth:i,boxHeight:e,itemHeight:Math.max(n,e)}},Jae=(t,n)=>t!==null&&n!==null&&t.datasetIndex===n.datasetIndex&&t.index===n.index,dC=class extends ja{constructor(n){super(),this._added=!1,this.legendHitBoxes=[],this._hoveredItem=null,this.doughnutMode=!1,this.chart=n.chart,this.options=n.options,this.ctx=n.ctx,this.legendItems=void 0,this.columnSizes=void 0,this.lineWidths=void 0,this.maxHeight=void 0,this.maxWidth=void 0,this.top=void 0,this.bottom=void 0,this.left=void 0,this.right=void 0,this.height=void 0,this.width=void 0,this._margins=void 0,this.position=void 0,this.weight=void 0,this.fullSize=void 0}update(n,e,i){this.maxWidth=n,this.maxHeight=e,this._margins=i,this.setDimensions(),this.buildLabels(),this.fit()}setDimensions(){this.isHorizontal()?(this.width=this.maxWidth,this.left=this._margins.left,this.right=this.width):(this.height=this.maxHeight,this.top=this._margins.top,this.bottom=this.height)}buildLabels(){let n=this.options.labels||{},e=yi(n.generateLabels,[this.chart],this)||[];n.filter&&(e=e.filter(i=>n.filter(i,this.chart.data))),n.sort&&(e=e.sort((i,r)=>n.sort(i,r,this.chart.data))),this.options.reverse&&e.reverse(),this.legendItems=e}fit(){let{options:n,ctx:e}=this;if(!n.display){this.width=this.height=0;return}let i=n.labels,r=pn(i.font),o=r.size,a=this._computeTitleHeight(),{boxWidth:s,itemHeight:l}=R4(i,o),c,d;e.font=r.string,this.isHorizontal()?(c=this.maxWidth,d=this._fitRows(a,o,s,l)+10):(d=this.maxHeight,c=this._fitCols(a,r,s,l)+10),this.width=Math.min(c,n.maxWidth||this.maxWidth),this.height=Math.min(d,n.maxHeight||this.maxHeight)}_fitRows(n,e,i,r){let{ctx:o,maxWidth:a,options:{labels:{padding:s}}}=this,l=this.legendHitBoxes=[],c=this.lineWidths=[0],d=r+s,m=n;o.textAlign="left",o.textBaseline="middle";let f=-1,b=-d;return this.legendItems.forEach((v,w)=>{let x=i+e/2+o.measureText(v.text).width;(w===0||c[c.length-1]+x+2*s>a)&&(m+=d,c[c.length-(w>0?0:1)]=0,b+=d,f++),l[w]={left:0,top:b,row:f,width:x,height:r},c[c.length-1]+=x+s}),m}_fitCols(n,e,i,r){let{ctx:o,maxHeight:a,options:{labels:{padding:s}}}=this,l=this.legendHitBoxes=[],c=this.columnSizes=[],d=a-n,m=s,f=0,b=0,v=0,w=0;return this.legendItems.forEach((x,D)=>{let{itemWidth:P,itemHeight:W}=ese(i,e,o,x,r);D>0&&b+W+2*s>d&&(m+=f+s,c.push({width:f,height:b}),v+=f+s,w++,f=b=0),l[D]={left:v,top:b,col:w,width:P,height:W},f=Math.max(f,P),b+=W+s}),m+=f,c.push({width:f,height:b}),m}adjustHitBoxes(){if(!this.options.display)return;let n=this._computeTitleHeight(),{legendHitBoxes:e,options:{align:i,labels:{padding:r},rtl:o}}=this,a=Cu(o,this.left,this.width);if(this.isHorizontal()){let s=0,l=ar(i,this.left+r,this.right-this.lineWidths[s]);for(let c of e)s!==c.row&&(s=c.row,l=ar(i,this.left+r,this.right-this.lineWidths[s])),c.top+=this.top+n+r,c.left=a.leftForLtr(a.x(l),c.width),l+=c.width+r}else{let s=0,l=ar(i,this.top+n+r,this.bottom-this.columnSizes[s].height);for(let c of e)c.col!==s&&(s=c.col,l=ar(i,this.top+n+r,this.bottom-this.columnSizes[s].height)),c.top=l,c.left+=this.left+r,c.left=a.leftForLtr(a.x(c.left),c.width),l+=c.height+r}}isHorizontal(){return this.options.position==="top"||this.options.position==="bottom"}draw(){if(this.options.display){let n=this.ctx;Hg(n,this),this._draw(),zg(n)}}_draw(){let{options:n,columnSizes:e,lineWidths:i,ctx:r}=this,{align:o,labels:a}=n,s=xi.color,l=Cu(n.rtl,this.left,this.width),c=pn(a.font),{padding:d}=a,m=c.size,f=m/2,b;this.drawTitle(),r.textAlign=l.textAlign("left"),r.textBaseline="middle",r.lineWidth=.5,r.font=c.string;let{boxWidth:v,boxHeight:w,itemHeight:x}=R4(a,m),D=function(re,Ee,be){if(isNaN(v)||v<=0||isNaN(w)||w<0)return;r.save();let Ve=st(be.lineWidth,1);if(r.fillStyle=st(be.fillStyle,s),r.lineCap=st(be.lineCap,"butt"),r.lineDashOffset=st(be.lineDashOffset,0),r.lineJoin=st(be.lineJoin,"miter"),r.lineWidth=Ve,r.strokeStyle=st(be.strokeStyle,s),r.setLineDash(st(be.lineDash,[])),a.usePointStyle){let yt={radius:w*Math.SQRT2/2,pointStyle:be.pointStyle,rotation:be.rotation,borderWidth:Ve},bt=l.xPlus(re,v/2),It=Ee+f;dT(r,yt,bt,It,a.pointStyleWidth&&v)}else{let yt=Ee+Math.max((m-w)/2,0),bt=l.leftForLtr(re,v),It=Tc(be.borderRadius);r.beginPath(),Object.values(It).some($n=>$n!==0)?jh(r,{x:bt,y:yt,w:v,h:w,radius:It}):r.rect(bt,yt,v,w),r.fill(),Ve!==0&&r.stroke()}r.restore()},P=function(re,Ee,be){Sc(r,be.text,re,Ee+x/2,c,{strikethrough:be.hidden,textAlign:l.textAlign(be.textAlign)})},W=this.isHorizontal(),Z=this._computeTitleHeight();W?b={x:ar(o,this.left+d,this.right-i[0]),y:this.top+d+Z,line:0}:b={x:this.left+d,y:ar(o,this.top+Z+d,this.bottom-e[0].height),line:0},bT(this.ctx,n.textDirection);let K=x+d;this.legendItems.forEach((re,Ee)=>{r.strokeStyle=re.fontColor,r.fillStyle=re.fontColor;let be=r.measureText(re.text).width,Ve=l.textAlign(re.textAlign||(re.textAlign=a.textAlign)),yt=v+f+be,bt=b.x,It=b.y;l.setWidth(this.width),W?Ee>0&&bt+yt+d>this.right&&(It=b.y+=K,b.line++,bt=b.x=ar(o,this.left+d,this.right-i[b.line])):Ee>0&&It+K>this.bottom&&(bt=b.x=bt+e[b.line].width+d,b.line++,It=b.y=ar(o,this.top+Z+d,this.bottom-e[b.line].height));let $n=l.x(bt);if(D($n,It,re),bt=Rj(Ve,bt+v+f,W?bt+yt:this.right,n.rtl),P(l.x(bt),It,re),W)b.x+=yt+d;else if(typeof re.text!="string"){let lo=c.lineHeight;b.y+=pH(re,lo)+d}else b.y+=K}),vT(this.ctx,n.textDirection)}drawTitle(){let n=this.options,e=n.title,i=pn(e.font),r=sr(e.padding);if(!e.display)return;let o=Cu(n.rtl,this.left,this.width),a=this.ctx,s=e.position,l=i.size/2,c=r.top+l,d,m=this.left,f=this.width;if(this.isHorizontal())f=Math.max(...this.lineWidths),d=this.top+c,m=ar(n.align,m,this.right-f);else{let v=this.columnSizes.reduce((w,x)=>Math.max(w,x.height),0);d=c+ar(n.align,this.top,this.bottom-v-n.labels.padding-this._computeTitleHeight())}let b=ar(s,m,m+f);a.textAlign=o.textAlign(Ux(s)),a.textBaseline="middle",a.strokeStyle=e.color,a.fillStyle=e.color,a.font=i.string,Sc(a,e.text,b,d,i)}_computeTitleHeight(){let n=this.options.title,e=pn(n.font),i=sr(n.padding);return n.display?e.lineHeight+i.height:0}_getLegendItemAt(n,e){let i,r,o;if(Is(n,this.left,this.right)&&Is(e,this.top,this.bottom)){for(o=this.legendHitBoxes,i=0;io.length>a.length?o:a)),n+e.size/2+i.measureText(r).width}function ise(t,n,e){let i=t;return typeof n.text!="string"&&(i=pH(n,e)),i}function pH(t,n){let e=t.text?t.text.length:0;return n*e}function nse(t,n){return!!((t==="mousemove"||t==="mouseout")&&(n.onHover||n.onLeave)||n.onClick&&(t==="click"||t==="mouseup"))}var rse={id:"legend",_element:dC,start(t,n,e){let i=t.legend=new dC({ctx:t.ctx,options:e,chart:t});Dr.configure(t,i,e),Dr.addBox(t,i)},stop(t){Dr.removeBox(t,t.legend),delete t.legend},beforeUpdate(t,n,e){let i=t.legend;Dr.configure(t,i,e),i.options=e},afterUpdate(t){let n=t.legend;n.buildLabels(),n.adjustHitBoxes()},afterEvent(t,n){n.replay||t.legend.handleEvent(n.event)},defaults:{display:!0,position:"top",align:"center",fullSize:!0,reverse:!1,weight:1e3,onClick(t,n,e){let i=n.datasetIndex,r=e.chart;r.isDatasetVisible(i)?(r.hide(i),n.hidden=!0):(r.show(i),n.hidden=!1)},onHover:null,onLeave:null,labels:{color:t=>t.chart.options.color,boxWidth:40,padding:10,generateLabels(t){let n=t.data.datasets,{labels:{usePointStyle:e,pointStyle:i,textAlign:r,color:o,useBorderRadius:a,borderRadius:s}}=t.legend.options;return t._getSortedDatasetMetas().map(l=>{let c=l.controller.getStyle(e?0:void 0),d=sr(c.borderWidth);return{text:n[l.index].label,fillStyle:c.backgroundColor,fontColor:o,hidden:!l.visible,lineCap:c.borderCapStyle,lineDash:c.borderDash,lineDashOffset:c.borderDashOffset,lineJoin:c.borderJoinStyle,lineWidth:(d.width+d.height)/4,strokeStyle:c.borderColor,pointStyle:i||c.pointStyle,rotation:c.rotation,textAlign:r||c.textAlign,borderRadius:a&&(s||c.borderRadius),datasetIndex:l.index}},this)}},title:{color:t=>t.chart.options.color,display:!1,position:"center",text:""}},descriptors:{_scriptable:t=>!t.startsWith("on"),labels:{_scriptable:t=>!["generateLabels","filter","sort"].includes(t)}}},Zg=class extends ja{constructor(n){super(),this.chart=n.chart,this.options=n.options,this.ctx=n.ctx,this._padding=void 0,this.top=void 0,this.bottom=void 0,this.left=void 0,this.right=void 0,this.width=void 0,this.height=void 0,this.position=void 0,this.weight=void 0,this.fullSize=void 0}update(n,e){let i=this.options;if(this.left=0,this.top=0,!i.display){this.width=this.height=this.right=this.bottom=0;return}this.width=this.right=n,this.height=this.bottom=e;let r=Ei(i.text)?i.text.length:1;this._padding=sr(i.padding);let o=r*pn(i.font).lineHeight+this._padding.height;this.isHorizontal()?this.height=o:this.width=o}isHorizontal(){let n=this.options.position;return n==="top"||n==="bottom"}_drawArgs(n){let{top:e,left:i,bottom:r,right:o,options:a}=this,s=a.align,l=0,c,d,m;return this.isHorizontal()?(d=ar(s,i,o),m=e+n,c=o-i):(a.position==="left"?(d=i+n,m=ar(s,r,e),l=Ht*-.5):(d=o-n,m=ar(s,e,r),l=Ht*.5),c=r-e),{titleX:d,titleY:m,maxWidth:c,rotation:l}}draw(){let n=this.ctx,e=this.options;if(!e.display)return;let i=pn(e.font),o=i.lineHeight/2+this._padding.top,{titleX:a,titleY:s,maxWidth:l,rotation:c}=this._drawArgs(o);Sc(n,e.text,0,0,i,{color:e.color,maxWidth:l,rotation:c,textAlign:Ux(e.align),textBaseline:"middle",translation:[a,s]})}};function ose(t,n){let e=new Zg({ctx:t.ctx,options:n,chart:t});Dr.configure(t,e,n),Dr.addBox(t,e),t.titleBlock=e}var ase={id:"title",_element:Zg,start(t,n,e){ose(t,e)},stop(t){let n=t.titleBlock;Dr.removeBox(t,n),delete t.titleBlock},beforeUpdate(t,n,e){let i=t.titleBlock;Dr.configure(t,i,e),i.options=e},defaults:{align:"center",display:!1,font:{weight:"bold"},fullSize:!0,padding:10,position:"top",text:"",weight:2e3},defaultRoutes:{color:"color"},descriptors:{_scriptable:!0,_indexable:!1}},eC=new WeakMap,sse={id:"subtitle",start(t,n,e){let i=new Zg({ctx:t.ctx,options:e,chart:t});Dr.configure(t,i,e),Dr.addBox(t,i),eC.set(t,i)},stop(t){Dr.removeBox(t,eC.get(t)),eC.delete(t)},beforeUpdate(t,n,e){let i=eC.get(t);Dr.configure(t,i,e),i.options=e},defaults:{align:"center",display:!1,font:{weight:"normal"},fullSize:!0,padding:0,position:"top",text:"",weight:1500},defaultRoutes:{color:"color"},descriptors:{_scriptable:!0,_indexable:!1}},Qg={average(t){if(!t.length)return!1;let n,e,i=new Set,r=0,o=0;for(n=0,e=t.length;ns+l)/i.size,y:r/o}},nearest(t,n){if(!t.length)return!1;let e=n.x,i=n.y,r=Number.POSITIVE_INFINITY,o,a,s;for(o=0,a=t.length;otypeof t=="function",Zie=t=>typeof t=="function"&&!!t.\u0275cmp,Xie=(t,n)=>Zie(t)?t:Kie(t)?t(n):t,RS=class{constructor(){this.storage="local",this.key="ngxpert/hototast-${id}",this.count=1,this.enabled=!1}},Jie=new T("HOT_TOAST_CONTAINER_TOKEN"),Rg=(()=>{let n=class n{constructor(){this._isInitialized=!1,this._defaultGlobalConfig=new Og,this._defaultPersistConfig=new RS,this._viewService=u(OS),this._platformId=u(Ks),this._globalConfig=u(Og,{optional:!0}),this._container=u(Jie,{optional:!0}),this._globalConfig&&(this._defaultGlobalConfig=M(M({},this._defaultGlobalConfig),this._globalConfig))}get defaultConfig(){return this._defaultGlobalConfig}set defaultConfig(i){this._defaultGlobalConfig=M(M({},this._defaultGlobalConfig),i),this._componentRef&&this._componentRef.setInput("defaultConfig",this._defaultGlobalConfig)}show(i,r,o){return this.createToast({message:i||this._defaultGlobalConfig.blank.content,type:r?.type??"blank",options:M(M({},this._defaultGlobalConfig),r),skipAttachToParent:o})}error(i,r){return this.createToast({message:i||this._defaultGlobalConfig.error.content,type:"error",options:M(M(M({},this._defaultGlobalConfig),this._defaultGlobalConfig?.error),r)})}success(i,r){return this.createToast({message:i||this._defaultGlobalConfig.success.content,type:"success",options:M(M(M({},this._defaultGlobalConfig),this._defaultGlobalConfig?.success),r)})}loading(i,r){return this.createToast({message:i||this._defaultGlobalConfig.loading.content,type:"loading",options:M(M(M({},this._defaultGlobalConfig),this._defaultGlobalConfig?.loading),r)})}warning(i,r){return this.createToast({message:i||this._defaultGlobalConfig.warning.content,type:"warning",options:M(M(M({},this._defaultGlobalConfig),this._defaultGlobalConfig?.warning),r)})}info(i,r){return this.createToast({message:i||this._defaultGlobalConfig.info.content,type:"info",options:M(M(M({},this._defaultGlobalConfig),this._defaultGlobalConfig?.info),r)})}observe(i){return r=>{let o,a=0,s=i.loading??this._defaultGlobalConfig.loading?.content,l=i.success??this._defaultGlobalConfig.success?.content,c=i.error??this._defaultGlobalConfig.error?.content;return kn(()=>(s&&(o=this.createLoadingToast(s),a=Date.now()),r.pipe(Be(M(M({},l&&{next:d=>{o=this.createOrUpdateToast(i,d,o,"success",a===0?a:Date.now()-a)}}),c&&{error:d=>{o=this.createOrUpdateToast(i,d,o,"error",a===0?a:Date.now()-a)}})))))}}close(i){this._componentRef&&this._componentRef.ref.instance.closeToast(i)}init(){if(!$2(this._platformId))if(this._container){let i=document.querySelector(this._container);i||(console.warn(`No container element found for selector: ${this._container}, using document.body instead as toast container.`),i=document.body),this._componentRef=this._viewService.createComponent(K3).setInput("defaultConfig",this._defaultGlobalConfig).appendTo(i)}else this._componentRef=this._viewService.createComponent(K3).setInput("defaultConfig",this._defaultGlobalConfig).appendTo(document.body)}createOrUpdateToast(i,r,o,a,s){try{let l=null,c={};if({content:l,options:c}=this.getContentAndOptions(a,i[a]||(this._defaultGlobalConfig[a]?this._defaultGlobalConfig[a].content:"")),l=Xie(l,r),o){c.data&&(o.data=c.data),o.updateMessage(l);let d=M(M({type:a,duration:s+Y3[a]},c),c.duration&&{duration:s+c.duration});o.updateToast(d)}else this.createToast({message:l,type:a,options:c});return o}catch(l){console.error(l)}}createToast({message:i,type:r,options:o,observableMessages:a,skipAttachToParent:s}){this._isInitialized||(this._isInitialized=!0,this.init());let l=o?.id??`toast-${n.nextId++}`;if(!this.isDuplicate(l)&&(!o.persist?.enabled||o.persist?.enabled&&this.handleStorageValue(l,o))){let c=M({ariaLive:o?.ariaLive??"polite",createdAt:Date.now(),duration:o?.duration??Y3[r],id:l,message:i,role:o?.role??"status",type:r,visible:!0,observableMessages:a??void 0},o);return new Ag(c).appendTo(this._componentRef.ref.instance,s)}}isDuplicate(i){return this._componentRef.ref.instance.hasToast(i)}handleStorageValue(i,r){let o=1,a=M(M({},this._defaultPersistConfig),r.persist),s=a.storage==="local"?localStorage:sessionStorage,l=a.key.replace(/\${id}/g,i),c=s.getItem(l);return c?(c=parseInt(c,10),c>0?o=c-1:o=c):o=a.count,s.setItem(l,o.toString()),o}getContentAndOptions(i,r){var s;let o,a=M(M({},this._defaultGlobalConfig),this._defaultGlobalConfig[i]);if(typeof r=="string"||Ig(r)||gu(r))o=r;else{let l;s=r,{content:o}=s,l=ed(s,["content"]),a=M(M({},a),l)}return{content:o,options:a}}createLoadingToast(i){let r=null,o={};return{content:r,options:o}=this.getContentAndOptions("loading",i),this.loading(r,o)}};n.nextId=0,n.\u0275fac=function(r){return new(r||n)},n.\u0275prov=O({token:n,factory:n.\u0275fac,providedIn:"root"});let t=n;return t})();function ej(t){return zr([{provide:Og,useValue:t}])}var Mx={REMOVE:"remove",SHOW:"show"},ij=(()=>{let n=class n{constructor(){this.strategiesSource=new tt({}),this.strategies$=this.strategiesSource.asObservable()}};n.\u0275fac=function(r){return new(r||n)},n.\u0275prov=O({token:n,factory:n.\u0275fac});let t=n;return t})(),NS=new T("USE_CONFIGURATION_STORE"),LS=(()=>{let n=class n{constructor(i=!1,r){this.isolate=i,this.configurationStore=r,this.strategiesSource=this.isolate?new tt({}):this.configurationStore.strategiesSource,this.strategies$=this.strategiesSource.asObservable(),this.onAuthorisedDefaultStrategy=this.isolate?void 0:this.configurationStore.onAuthorisedDefaultStrategy,this.onUnAuthorisedDefaultStrategy=this.isolate?void 0:this.configurationStore.onUnAuthorisedDefaultStrategy}setDefaultOnAuthorizedStrategy(i){this.isolate?this.onAuthorisedDefaultStrategy=this.getDefinedStrategy(i):(this.configurationStore.onAuthorisedDefaultStrategy=this.getDefinedStrategy(i),this.onAuthorisedDefaultStrategy=this.configurationStore.onAuthorisedDefaultStrategy)}setDefaultOnUnauthorizedStrategy(i){this.isolate?this.onUnAuthorisedDefaultStrategy=this.getDefinedStrategy(i):(this.configurationStore.onUnAuthorisedDefaultStrategy=this.getDefinedStrategy(i),this.onUnAuthorisedDefaultStrategy=this.configurationStore.onUnAuthorisedDefaultStrategy)}addPermissionStrategy(i,r){this.strategiesSource.value[i]=r}getStrategy(i){return this.strategiesSource.value[i]}getAllStrategies(){return this.strategiesSource.value}getDefinedStrategy(i){if(this.strategiesSource.value[i]||this.isPredefinedStrategy(i))return i;throw new Error(`No ' ${i} ' strategy is found please define one`)}isPredefinedStrategy(i){return i===Mx.SHOW||i===Mx.REMOVE}};n.\u0275fac=function(r){return new(r||n)(pe(NS),pe(ij))},n.\u0275prov=O({token:n,factory:n.\u0275fac});let t=n;return t})();function io(t){return typeof t=="function"}function FS(t){if(Object.prototype.toString.call(t)!=="[object Object]")return!1;{let n=Object.getPrototypeOf(t);return n===null||n===Object.prototype}}function nj(t){return!!t&&typeof t=="string"}function kx(t){return typeof t=="boolean"}function ene(t){return Object.prototype.toString.call(t)==="[object Promise]"}function Ex(t){return Array.isArray(t)?t.length>0:!!t}function Sx(t){return nj(t)?[t]:t}var rj=(()=>{let n=class n{constructor(){this.permissionsSource=new tt({}),this.permissions$=this.permissionsSource.asObservable()}};n.\u0275fac=function(r){return new(r||n)},n.\u0275prov=O({token:n,factory:n.\u0275fac});let t=n;return t})(),VS=new T("USE_PERMISSIONS_STORE"),_u=(()=>{let n=class n{constructor(i=!1,r){this.isolate=i,this.permissionsStore=r,this.permissionsSource=this.isolate?new tt({}):this.permissionsStore.permissionsSource,this.permissions$=this.permissionsSource.asObservable()}flushPermissions(){this.permissionsSource.next({})}hasPermission(i){return!i||Array.isArray(i)&&i.length===0?Promise.resolve(!0):(i=Sx(i),this.hasArrayPermission(i))}loadPermissions(i,r){let o=i.reduce((a,s)=>this.reducePermission(a,s,r),{});this.permissionsSource.next(o)}addPermission(i,r){if(Array.isArray(i)){let o=i.reduce((a,s)=>this.reducePermission(a,s,r),this.permissionsSource.value);this.permissionsSource.next(o)}else{let o=this.reducePermission(this.permissionsSource.value,i,r);this.permissionsSource.next(o)}}removePermission(i){let r=M({},this.permissionsSource.value);delete r[i],this.permissionsSource.next(r)}getPermission(i){return this.permissionsSource.value[i]}getPermissions(){return this.permissionsSource.value}reducePermission(i,r,o){return o&&io(o)?De(M({},i),{[r]:{name:r,validationFunction:o}}):De(M({},i),{[r]:{name:r}})}hasArrayPermission(i){let r=i.map(o=>{if(this.hasPermissionValidationFunction(o)){let a=this.permissionsSource.value[o].validationFunction,s=M({},this.permissionsSource.value);return Q(null).pipe(se(()=>a(o,s)),$e(l=>kx(l)?Q(l):l),fi(()=>Q(!1)))}return Q(!!this.permissionsSource.value[o])});return Ot(r).pipe(uo(),gn(o=>o!==!1,!1),se(o=>o!==!1)).toPromise().then(o=>o)}hasPermissionValidationFunction(i){return!!this.permissionsSource.value[i]&&!!this.permissionsSource.value[i].validationFunction&&io(this.permissionsSource.value[i].validationFunction)}};n.\u0275fac=function(r){return new(r||n)(pe(VS),pe(rj))},n.\u0275prov=O({token:n,factory:n.\u0275fac});let t=n;return t})(),Tx=class{constructor(){this.rolesSource=new tt({}),this.roles$=this.rolesSource.asObservable()}},BS=new T("USE_ROLES_STORE"),Th=(()=>{let n=class n{constructor(i=!1,r,o){this.isolate=i,this.rolesStore=r,this.permissionsService=o,this.rolesSource=this.isolate?new tt({}):this.rolesStore.rolesSource,this.roles$=this.rolesSource.asObservable()}addRole(i,r){let o=De(M({},this.rolesSource.value),{[i]:{name:i,validationFunction:r}});this.rolesSource.next(o)}addRoleWithPermissions(i,r){this.permissionsService.addPermission(r),this.addRole(i,r)}addRoles(i){Object.keys(i).forEach((r,o)=>{this.addRole(r,i[r])})}addRolesWithPermissions(i){Object.keys(i).forEach((r,o)=>{this.addRoleWithPermissions(r,i[r])})}flushRoles(){this.rolesSource.next({})}flushRolesAndPermissions(){this.flushRoles(),this.permissionsService.flushPermissions()}removeRole(i){let r=M({},this.rolesSource.value);delete r[i],this.rolesSource.next(r)}getRoles(){return this.rolesSource.value}getRole(i){return this.rolesSource.value[i]}hasOnlyRoles(i){return!i||Array.isArray(i)&&i.length===0?Promise.resolve(!0):(i=Sx(i),Promise.all([this.hasRoleKey(i),this.hasRolePermission(this.rolesSource.value,i)]).then(([o,a])=>o||a))}hasRoleKey(i){let r=i.map(o=>{if(!!this.rolesSource.value[o]&&!!this.rolesSource.value[o].validationFunction&&io(this.rolesSource.value[o].validationFunction)&&!ene(this.rolesSource.value[o].validationFunction)){let s=this.rolesSource.value[o].validationFunction,l=M({},this.rolesSource.value);return Q(null).pipe(se(()=>s(o,l)),$e(c=>kx(c)?Q(c):c),fi(()=>Q(!1)))}return Q(!1)});return Ot(r).pipe(uo(),gn(o=>o!==!1,!1),se(o=>o!==!1)).toPromise().then(o=>o)}hasRolePermission(i,r){return Ot(r).pipe(Mt(o=>i[o]&&Array.isArray(i[o].validationFunction)?Ot(i[o].validationFunction).pipe(Mt(a=>this.permissionsService.hasPermission(a)),Yw(a=>a===!0)):Q(!1)),gn(o=>o===!0,!1)).toPromise()}};n.\u0275fac=function(r){return new(r||n)(pe(BS),pe(Tx),pe(_u))},n.\u0275prov=O({token:n,factory:n.\u0275fac});let t=n;return t})(),Ih=(()=>{let n=class n{constructor(){this.permissionsAuthorized=new U,this.permissionsUnauthorized=new U,this.firstMergeUnusedRun=1,this.permissionsService=u(_u),this.configurationService=u(LS),this.rolesService=u(Th),this.viewContainer=u(nt),this.changeDetector=u(ye),this.templateRef=u(te)}ngOnInit(){this.viewContainer.clear(),this.initPermissionSubscription=this.validateExceptOnlyPermissions()}ngOnChanges(i){let r=i.ngxPermissionsOnly,o=i.ngxPermissionsExcept;if(r||o){if(r&&r.firstChange||o&&o.firstChange)return;Je(this.permissionsService.permissions$,this.rolesService.roles$).pipe(Ya(this.firstMergeUnusedRun),lt(1)).subscribe(()=>{if(Ex(this.ngxPermissionsExcept)){this.validateExceptAndOnlyPermissions();return}if(Ex(this.ngxPermissionsOnly)){this.validateOnlyPermissions();return}this.handleAuthorisedPermission(this.getAuthorisedTemplates())})}}ngOnDestroy(){this.initPermissionSubscription&&this.initPermissionSubscription.unsubscribe()}validateExceptOnlyPermissions(){return Je(this.permissionsService.permissions$,this.rolesService.roles$).pipe(Ya(this.firstMergeUnusedRun)).subscribe(()=>{if(Ex(this.ngxPermissionsExcept)){this.validateExceptAndOnlyPermissions();return}if(Ex(this.ngxPermissionsOnly)){this.validateOnlyPermissions();return}this.handleAuthorisedPermission(this.getAuthorisedTemplates())})}validateExceptAndOnlyPermissions(){Promise.all([this.permissionsService.hasPermission(this.ngxPermissionsExcept),this.rolesService.hasOnlyRoles(this.ngxPermissionsExcept)]).then(([i,r])=>{if(i||r){this.handleUnauthorisedPermission(this.ngxPermissionsExceptElse||this.ngxPermissionsElse);return}if(this.ngxPermissionsOnly)throw!1;this.handleAuthorisedPermission(this.ngxPermissionsExceptThen||this.ngxPermissionsThen||this.templateRef)}).catch(()=>{this.ngxPermissionsOnly?this.validateOnlyPermissions():this.handleAuthorisedPermission(this.ngxPermissionsExceptThen||this.ngxPermissionsThen||this.templateRef)})}validateOnlyPermissions(){Promise.all([this.permissionsService.hasPermission(this.ngxPermissionsOnly),this.rolesService.hasOnlyRoles(this.ngxPermissionsOnly)]).then(([i,r])=>{i||r?this.handleAuthorisedPermission(this.ngxPermissionsOnlyThen||this.ngxPermissionsThen||this.templateRef):this.handleUnauthorisedPermission(this.ngxPermissionsOnlyElse||this.ngxPermissionsElse)}).catch(()=>{this.handleUnauthorisedPermission(this.ngxPermissionsOnlyElse||this.ngxPermissionsElse)})}handleUnauthorisedPermission(i){if(!(kx(this.currentAuthorizedState)&&!this.currentAuthorizedState)){if(this.currentAuthorizedState=!1,this.permissionsUnauthorized.emit(),this.getUnAuthorizedStrategyInput()){this.applyStrategyAccordingToStrategyType(this.getUnAuthorizedStrategyInput());return}this.configurationService.onUnAuthorisedDefaultStrategy&&!this.elseBlockDefined()?this.applyStrategy(this.configurationService.onUnAuthorisedDefaultStrategy):this.showTemplateBlockInView(i)}}handleAuthorisedPermission(i){if(!(kx(this.currentAuthorizedState)&&this.currentAuthorizedState)){if(this.currentAuthorizedState=!0,this.permissionsAuthorized.emit(),this.getAuthorizedStrategyInput()){this.applyStrategyAccordingToStrategyType(this.getAuthorizedStrategyInput());return}this.configurationService.onAuthorisedDefaultStrategy&&!this.thenBlockDefined()?this.applyStrategy(this.configurationService.onAuthorisedDefaultStrategy):this.showTemplateBlockInView(i)}}applyStrategyAccordingToStrategyType(i){if(nj(i)){this.applyStrategy(i);return}if(io(i)){this.showTemplateBlockInView(this.templateRef),i(this.templateRef);return}}showTemplateBlockInView(i){this.viewContainer.clear(),i&&(this.viewContainer.createEmbeddedView(i),this.changeDetector.markForCheck())}getAuthorisedTemplates(){return this.ngxPermissionsOnlyThen||this.ngxPermissionsExceptThen||this.ngxPermissionsThen||this.templateRef}elseBlockDefined(){return!!this.ngxPermissionsExceptElse||!!this.ngxPermissionsElse}thenBlockDefined(){return!!this.ngxPermissionsExceptThen||!!this.ngxPermissionsThen}getAuthorizedStrategyInput(){return this.ngxPermissionsOnlyAuthorisedStrategy||this.ngxPermissionsExceptAuthorisedStrategy||this.ngxPermissionsAuthorisedStrategy}getUnAuthorizedStrategyInput(){return this.ngxPermissionsOnlyUnauthorisedStrategy||this.ngxPermissionsExceptUnauthorisedStrategy||this.ngxPermissionsUnauthorisedStrategy}applyStrategy(i){if(i===Mx.SHOW){this.showTemplateBlockInView(this.templateRef);return}if(i===Mx.REMOVE){this.viewContainer.clear();return}let r=this.configurationService.getStrategy(i);this.showTemplateBlockInView(this.templateRef),r(this.templateRef)}};n.\u0275fac=function(r){return new(r||n)},n.\u0275dir=F({type:n,selectors:[["","ngxPermissionsOnly",""],["","ngxPermissionsExcept",""]],inputs:{ngxPermissionsOnly:"ngxPermissionsOnly",ngxPermissionsOnlyThen:"ngxPermissionsOnlyThen",ngxPermissionsOnlyElse:"ngxPermissionsOnlyElse",ngxPermissionsExcept:"ngxPermissionsExcept",ngxPermissionsExceptElse:"ngxPermissionsExceptElse",ngxPermissionsExceptThen:"ngxPermissionsExceptThen",ngxPermissionsThen:"ngxPermissionsThen",ngxPermissionsElse:"ngxPermissionsElse",ngxPermissionsOnlyAuthorisedStrategy:"ngxPermissionsOnlyAuthorisedStrategy",ngxPermissionsOnlyUnauthorisedStrategy:"ngxPermissionsOnlyUnauthorisedStrategy",ngxPermissionsExceptUnauthorisedStrategy:"ngxPermissionsExceptUnauthorisedStrategy",ngxPermissionsExceptAuthorisedStrategy:"ngxPermissionsExceptAuthorisedStrategy",ngxPermissionsUnauthorisedStrategy:"ngxPermissionsUnauthorisedStrategy",ngxPermissionsAuthorisedStrategy:"ngxPermissionsAuthorisedStrategy"},outputs:{permissionsAuthorized:"permissionsAuthorized",permissionsUnauthorized:"permissionsUnauthorized"},standalone:!1,features:[Ae]});let t=n;return t})(),tne="default";var tj=(()=>{let n=class n{constructor(i,r,o){this.permissionsService=i,this.rolesService=r,this.router=o}canActivate(i,r){return this.hasPermissions(i,r)}canActivateChild(i,r){return this.hasPermissions(i,r)}canLoad(i){return this.hasPermissions(i)}canMatch(i){return this.hasPermissions(i)}hasPermissions(i,r){let o=i&&i.data?i.data.permissions:{},a=this.transformPermission(o,i,r);return this.isParameterAvailable(a.except)?this.passingExceptPermissionsValidation(a,i,r):this.isParameterAvailable(a.only)?this.passingOnlyPermissionsValidation(a,i,r):!0}transformPermission(i,r,o){let a=io(i.only)?i.only(r,o):Sx(i.only),s=io(i.except)?i.except(r,o):Sx(i.except),l=i.redirectTo;return{only:a,except:s,redirectTo:l}}isParameterAvailable(i){return!!i&&i.length>0}passingExceptPermissionsValidation(i,r,o){if(i.redirectTo&&(io(i.redirectTo)||FS(i.redirectTo)&&!this.isRedirectionWithParameters(i.redirectTo))){let a="";return Ot(i.except).pipe(Mt(s=>Ga([this.permissionsService.hasPermission(s),this.rolesService.hasOnlyRoles(s)]).pipe(Be(l=>{l.every(d=>d===!1)||(a=s)}))),gn(s=>s.some(l=>l===!0),!1),Mt(s=>a?(this.handleRedirectOfFailedPermission(i,a,r,o),Q(!1)):!s&&i.only?this.onlyRedirectCheck(i,r,o):Q(!s))).toPromise()}return Promise.all([this.permissionsService.hasPermission(i.except),this.rolesService.hasOnlyRoles(i.except)]).then(([a,s])=>a||s?(i.redirectTo&&this.redirectToAnotherRoute(i.redirectTo,r,o),!1):i.only?this.checkOnlyPermissions(i,r,o):!0)}redirectToAnotherRoute(i,r,o,a){let s=io(i)?i(a,r,o):i;if(this.isRedirectionWithParameters(s)){s.navigationCommands=this.transformNavigationCommands(s.navigationCommands,r,o),s.navigationExtras=this.transformNavigationExtras(s.navigationExtras,r,o),this.router.navigate(s.navigationCommands,s.navigationExtras);return}Array.isArray(s)?this.router.navigate(s):this.router.navigate([s])}isRedirectionWithParameters(i){return FS(i)&&(!!i.navigationCommands||!!i.navigationExtras)}transformNavigationCommands(i,r,o){return io(i)?i(r,o):i}transformNavigationExtras(i,r,o){return io(i)?i(r,o):i}onlyRedirectCheck(i,r,o){let a="";return Ot(i.only).pipe(Mt(s=>Ga([this.permissionsService.hasPermission(s),this.rolesService.hasOnlyRoles(s)]).pipe(Be(l=>{l.every(d=>d===!1)&&(a=s)}))),gn(s=>io(i.redirectTo)?s.some(l=>l===!0):s.every(l=>l===!1),!1),Mt(s=>io(i.redirectTo)?s?Q(!0):(this.handleRedirectOfFailedPermission(i,a,r,o),Q(!1)):(a&&this.handleRedirectOfFailedPermission(i,a,r,o),Q(!s)))).toPromise()}handleRedirectOfFailedPermission(i,r,o,a){this.isFailedPermissionPropertyOfRedirectTo(i,r)?this.redirectToAnotherRoute(i.redirectTo[r],o,a,r):io(i.redirectTo)?this.redirectToAnotherRoute(i.redirectTo,o,a,r):this.redirectToAnotherRoute(i.redirectTo[tne],o,a,r)}isFailedPermissionPropertyOfRedirectTo(i,r){return!!i.redirectTo&&i.redirectTo[r]}checkOnlyPermissions(i,r,o){let a=M({},i);return Promise.all([this.permissionsService.hasPermission(a.only),this.rolesService.hasOnlyRoles(a.only)]).then(([s,l])=>s||l?!0:(a.redirectTo&&this.redirectToAnotherRoute(a.redirectTo,r,o),!1))}passingOnlyPermissionsValidation(i,r,o){return io(i.redirectTo)||FS(i.redirectTo)&&!this.isRedirectionWithParameters(i.redirectTo)?this.onlyRedirectCheck(i,r,o):this.checkOnlyPermissions(i,r,o)}};n.\u0275fac=function(r){return new(r||n)(pe(_u),pe(Th),pe(Re))},n.\u0275prov=O({token:n,factory:n.\u0275fac});let t=n;return t})();var xc=(()=>{let n=class n{static forRoot(i={}){return{ngModule:n,providers:[rj,Tx,ij,_u,tj,Th,LS,{provide:VS,useValue:i.permissionsIsolate},{provide:BS,useValue:i.rolesIsolate},{provide:NS,useValue:i.configurationIsolate}]}}static forChild(i={}){return{ngModule:n,providers:[{provide:VS,useValue:i.permissionsIsolate},{provide:BS,useValue:i.rolesIsolate},{provide:NS,useValue:i.configurationIsolate},LS,_u,Th,tj]}}};n.\u0275fac=function(r){return new(r||n)},n.\u0275mod=ee({type:n}),n.\u0275inj=J({});let t=n;return t})();function Ng(t){return t+.5|0}var Cc=(t,n,e)=>Math.max(Math.min(t,e),n);function Pg(t){return Cc(Ng(t*2.55),0,255)}function wc(t){return Cc(Ng(t*255),0,255)}function pl(t){return Cc(Ng(t/2.55)/100,0,1)}function oj(t){return Cc(Ng(t*100),0,100)}var na={0:0,1:1,2:2,3:3,4:4,5:5,6:6,7:7,8:8,9:9,A:10,B:11,C:12,D:13,E:14,F:15,a:10,b:11,c:12,d:13,e:14,f:15},zS=[..."0123456789ABCDEF"],ine=t=>zS[t&15],nne=t=>zS[(t&240)>>4]+zS[t&15],Ix=t=>(t&240)>>4===(t&15),rne=t=>Ix(t.r)&&Ix(t.g)&&Ix(t.b)&&Ix(t.a);function one(t){var n=t.length,e;return t[0]==="#"&&(n===4||n===5?e={r:255&na[t[1]]*17,g:255&na[t[2]]*17,b:255&na[t[3]]*17,a:n===5?na[t[4]]*17:255}:(n===7||n===9)&&(e={r:na[t[1]]<<4|na[t[2]],g:na[t[3]]<<4|na[t[4]],b:na[t[5]]<<4|na[t[6]],a:n===9?na[t[7]]<<4|na[t[8]]:255})),e}var ane=(t,n)=>t<255?n(t):"";function sne(t){var n=rne(t)?ine:nne;return t?"#"+n(t.r)+n(t.g)+n(t.b)+ane(t.a,n):void 0}var lne=/^(hsla?|hwb|hsv)\(\s*([-+.e\d]+)(?:deg)?[\s,]+([-+.e\d]+)%[\s,]+([-+.e\d]+)%(?:[\s,]+([-+.e\d]+)(%)?)?\s*\)$/;function cj(t,n,e){let i=n*Math.min(e,1-e),r=(o,a=(o+t/30)%12)=>e-i*Math.max(Math.min(a-3,9-a,1),-1);return[r(0),r(8),r(4)]}function cne(t,n,e){let i=(r,o=(r+t/60)%6)=>e-e*n*Math.max(Math.min(o,4-o,1),0);return[i(5),i(3),i(1)]}function dne(t,n,e){let i=cj(t,1,.5),r;for(n+e>1&&(r=1/(n+e),n*=r,e*=r),r=0;r<3;r++)i[r]*=1-n-e,i[r]+=n;return i}function une(t,n,e,i,r){return t===r?(n-e)/i+(n.5?d/(2-o-a):d/(o+a),l=une(e,i,r,d,o),l=l*60+.5),[l|0,c||0,s]}function $S(t,n,e,i){return(Array.isArray(n)?t(n[0],n[1],n[2]):t(n,e,i)).map(wc)}function WS(t,n,e){return $S(cj,t,n,e)}function mne(t,n,e){return $S(dne,t,n,e)}function hne(t,n,e){return $S(cne,t,n,e)}function dj(t){return(t%360+360)%360}function pne(t){let n=lne.exec(t),e=255,i;if(!n)return;n[5]!==i&&(e=n[6]?Pg(+n[5]):wc(+n[5]));let r=dj(+n[2]),o=+n[3]/100,a=+n[4]/100;return n[1]==="hwb"?i=mne(r,o,a):n[1]==="hsv"?i=hne(r,o,a):i=WS(r,o,a),{r:i[0],g:i[1],b:i[2],a:e}}function fne(t,n){var e=US(t);e[0]=dj(e[0]+n),e=WS(e),t.r=e[0],t.g=e[1],t.b=e[2]}function gne(t){if(!t)return;let n=US(t),e=n[0],i=oj(n[1]),r=oj(n[2]);return t.a<255?`hsla(${e}, ${i}%, ${r}%, ${pl(t.a)})`:`hsl(${e}, ${i}%, ${r}%)`}var aj={x:"dark",Z:"light",Y:"re",X:"blu",W:"gr",V:"medium",U:"slate",A:"ee",T:"ol",S:"or",B:"ra",C:"lateg",D:"ights",R:"in",Q:"turquois",E:"hi",P:"ro",O:"al",N:"le",M:"de",L:"yello",F:"en",K:"ch",G:"arks",H:"ea",I:"ightg",J:"wh"},sj={OiceXe:"f0f8ff",antiquewEte:"faebd7",aqua:"ffff",aquamarRe:"7fffd4",azuY:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"0",blanKedOmond:"ffebcd",Xe:"ff",XeviTet:"8a2be2",bPwn:"a52a2a",burlywood:"deb887",caMtXe:"5f9ea0",KartYuse:"7fff00",KocTate:"d2691e",cSO:"ff7f50",cSnflowerXe:"6495ed",cSnsilk:"fff8dc",crimson:"dc143c",cyan:"ffff",xXe:"8b",xcyan:"8b8b",xgTMnPd:"b8860b",xWay:"a9a9a9",xgYF:"6400",xgYy:"a9a9a9",xkhaki:"bdb76b",xmagFta:"8b008b",xTivegYF:"556b2f",xSange:"ff8c00",xScEd:"9932cc",xYd:"8b0000",xsOmon:"e9967a",xsHgYF:"8fbc8f",xUXe:"483d8b",xUWay:"2f4f4f",xUgYy:"2f4f4f",xQe:"ced1",xviTet:"9400d3",dAppRk:"ff1493",dApskyXe:"bfff",dimWay:"696969",dimgYy:"696969",dodgerXe:"1e90ff",fiYbrick:"b22222",flSOwEte:"fffaf0",foYstWAn:"228b22",fuKsia:"ff00ff",gaRsbSo:"dcdcdc",ghostwEte:"f8f8ff",gTd:"ffd700",gTMnPd:"daa520",Way:"808080",gYF:"8000",gYFLw:"adff2f",gYy:"808080",honeyMw:"f0fff0",hotpRk:"ff69b4",RdianYd:"cd5c5c",Rdigo:"4b0082",ivSy:"fffff0",khaki:"f0e68c",lavFMr:"e6e6fa",lavFMrXsh:"fff0f5",lawngYF:"7cfc00",NmoncEffon:"fffacd",ZXe:"add8e6",ZcSO:"f08080",Zcyan:"e0ffff",ZgTMnPdLw:"fafad2",ZWay:"d3d3d3",ZgYF:"90ee90",ZgYy:"d3d3d3",ZpRk:"ffb6c1",ZsOmon:"ffa07a",ZsHgYF:"20b2aa",ZskyXe:"87cefa",ZUWay:"778899",ZUgYy:"778899",ZstAlXe:"b0c4de",ZLw:"ffffe0",lime:"ff00",limegYF:"32cd32",lRF:"faf0e6",magFta:"ff00ff",maPon:"800000",VaquamarRe:"66cdaa",VXe:"cd",VScEd:"ba55d3",VpurpN:"9370db",VsHgYF:"3cb371",VUXe:"7b68ee",VsprRggYF:"fa9a",VQe:"48d1cc",VviTetYd:"c71585",midnightXe:"191970",mRtcYam:"f5fffa",mistyPse:"ffe4e1",moccasR:"ffe4b5",navajowEte:"ffdead",navy:"80",Tdlace:"fdf5e6",Tive:"808000",TivedBb:"6b8e23",Sange:"ffa500",SangeYd:"ff4500",ScEd:"da70d6",pOegTMnPd:"eee8aa",pOegYF:"98fb98",pOeQe:"afeeee",pOeviTetYd:"db7093",papayawEp:"ffefd5",pHKpuff:"ffdab9",peru:"cd853f",pRk:"ffc0cb",plum:"dda0dd",powMrXe:"b0e0e6",purpN:"800080",YbeccapurpN:"663399",Yd:"ff0000",Psybrown:"bc8f8f",PyOXe:"4169e1",saddNbPwn:"8b4513",sOmon:"fa8072",sandybPwn:"f4a460",sHgYF:"2e8b57",sHshell:"fff5ee",siFna:"a0522d",silver:"c0c0c0",skyXe:"87ceeb",UXe:"6a5acd",UWay:"708090",UgYy:"708090",snow:"fffafa",sprRggYF:"ff7f",stAlXe:"4682b4",tan:"d2b48c",teO:"8080",tEstN:"d8bfd8",tomato:"ff6347",Qe:"40e0d0",viTet:"ee82ee",JHt:"f5deb3",wEte:"ffffff",wEtesmoke:"f5f5f5",Lw:"ffff00",LwgYF:"9acd32"};function _ne(){let t={},n=Object.keys(sj),e=Object.keys(aj),i,r,o,a,s;for(i=0;i>16&255,o>>8&255,o&255]}return t}var Ax;function bne(t){Ax||(Ax=_ne(),Ax.transparent=[0,0,0,0]);let n=Ax[t.toLowerCase()];return n&&{r:n[0],g:n[1],b:n[2],a:n.length===4?n[3]:255}}var vne=/^rgba?\(\s*([-+.\d]+)(%)?[\s,]+([-+.e\d]+)(%)?[\s,]+([-+.e\d]+)(%)?(?:[\s,/]+([-+.e\d]+)(%)?)?\s*\)$/;function yne(t){let n=vne.exec(t),e=255,i,r,o;if(n){if(n[7]!==i){let a=+n[7];e=n[8]?Pg(a):Cc(a*255,0,255)}return i=+n[1],r=+n[3],o=+n[5],i=255&(n[2]?Pg(i):Cc(i,0,255)),r=255&(n[4]?Pg(r):Cc(r,0,255)),o=255&(n[6]?Pg(o):Cc(o,0,255)),{r:i,g:r,b:o,a:e}}}function xne(t){return t&&(t.a<255?`rgba(${t.r}, ${t.g}, ${t.b}, ${pl(t.a)})`:`rgb(${t.r}, ${t.g}, ${t.b})`)}var HS=t=>t<=.0031308?t*12.92:Math.pow(t,1/2.4)*1.055-.055,Ah=t=>t<=.04045?t/12.92:Math.pow((t+.055)/1.055,2.4);function Cne(t,n,e){let i=Ah(pl(t.r)),r=Ah(pl(t.g)),o=Ah(pl(t.b));return{r:wc(HS(i+e*(Ah(pl(n.r))-i))),g:wc(HS(r+e*(Ah(pl(n.g))-r))),b:wc(HS(o+e*(Ah(pl(n.b))-o))),a:t.a+e*(n.a-t.a)}}function Ox(t,n,e){if(t){let i=US(t);i[n]=Math.max(0,Math.min(i[n]+i[n]*e,n===0?360:1)),i=WS(i),t.r=i[0],t.g=i[1],t.b=i[2]}}function uj(t,n){return t&&Object.assign(n||{},t)}function lj(t){var n={r:0,g:0,b:0,a:255};return Array.isArray(t)?t.length>=3&&(n={r:t[0],g:t[1],b:t[2],a:255},t.length>3&&(n.a=wc(t[3]))):(n=uj(t,{r:0,g:0,b:0,a:1}),n.a=wc(n.a)),n}function wne(t){return t.charAt(0)==="r"?yne(t):pne(t)}var Fg=class t{constructor(n){if(n instanceof t)return n;let e=typeof n,i;e==="object"?i=lj(n):e==="string"&&(i=one(n)||bne(n)||wne(n)),this._rgb=i,this._valid=!!i}get valid(){return this._valid}get rgb(){var n=uj(this._rgb);return n&&(n.a=pl(n.a)),n}set rgb(n){this._rgb=lj(n)}rgbString(){return this._valid?xne(this._rgb):void 0}hexString(){return this._valid?sne(this._rgb):void 0}hslString(){return this._valid?gne(this._rgb):void 0}mix(n,e){if(n){let i=this.rgb,r=n.rgb,o,a=e===o?.5:e,s=2*a-1,l=i.a-r.a,c=((s*l===-1?s:(s+l)/(1+s*l))+1)/2;o=1-c,i.r=255&c*i.r+o*r.r+.5,i.g=255&c*i.g+o*r.g+.5,i.b=255&c*i.b+o*r.b+.5,i.a=a*i.a+(1-a)*r.a,this.rgb=i}return this}interpolate(n,e){return n&&(this._rgb=Cne(this._rgb,n._rgb,e)),this}clone(){return new t(this.rgb)}alpha(n){return this._rgb.a=wc(n),this}clearer(n){let e=this._rgb;return e.a*=1-n,this}greyscale(){let n=this._rgb,e=Ng(n.r*.3+n.g*.59+n.b*.11);return n.r=n.g=n.b=e,this}opaquer(n){let e=this._rgb;return e.a*=1+n,this}negate(){let n=this._rgb;return n.r=255-n.r,n.g=255-n.g,n.b=255-n.b,this}lighten(n){return Ox(this._rgb,2,n),this}darken(n){return Ox(this._rgb,2,-n),this}saturate(n){return Ox(this._rgb,1,n),this}desaturate(n){return Ox(this._rgb,1,-n),this}rotate(n){return fne(this._rgb,n),this}};function Ts(){}var Cj=(()=>{let t=0;return()=>t++})();function Et(t){return t==null}function Ei(t){if(Array.isArray&&Array.isArray(t))return!0;let n=Object.prototype.toString.call(t);return n.slice(0,7)==="[object"&&n.slice(-6)==="Array]"}function St(t){return t!==null&&Object.prototype.toString.call(t)==="[object Object]"}function Gi(t){return(typeof t=="number"||t instanceof Number)&&isFinite(+t)}function no(t,n){return Gi(t)?t:n}function st(t,n){return typeof t>"u"?n:t}var wj=(t,n)=>typeof t=="string"&&t.endsWith("%")?parseFloat(t)/100:+t/n,QS=(t,n)=>typeof t=="string"&&t.endsWith("%")?parseFloat(t)/100*n:+t;function yi(t,n,e){if(t&&typeof t.call=="function")return t.apply(e,n)}function ii(t,n,e,i){let r,o,a;if(Ei(t))if(o=t.length,i)for(r=o-1;r>=0;r--)n.call(e,t[r],r);else for(r=0;rt,x:t=>t.x,y:t=>t.y};function Mne(t){let n=t.split("."),e=[],i="";for(let r of n)i+=r,i.endsWith("\\")?i=i.slice(0,-1)+".":(e.push(i),i="");return e}function kne(t){let n=Mne(t);return e=>{for(let i of n){if(i==="")break;e=e&&e[i]}return e}}function _l(t,n){return(mj[n]||(mj[n]=kne(n)))(t)}function jx(t){return t.charAt(0).toUpperCase()+t.slice(1)}var Nh=t=>typeof t<"u",fl=t=>typeof t=="function",KS=(t,n)=>{if(t.size!==n.size)return!1;for(let e of t)if(!n.has(e))return!1;return!0};function Ej(t){return t.type==="mouseup"||t.type==="click"||t.type==="contextmenu"}var Ht=Math.PI,Mi=2*Ht,Sne=Mi+Ht,Lx=Number.POSITIVE_INFINITY,Tne=Ht/180,Zi=Ht/2,bu=Ht/4,hj=Ht*2/3,gl=Math.log10,Ba=Math.sign;function Lh(t,n,e){return Math.abs(t-n)r-o).pop(),n}function Ine(t){return typeof t=="symbol"||typeof t=="object"&&t!==null&&!(Symbol.toPrimitive in t||"toString"in t||"valueOf"in t)}function xu(t){return!Ine(t)&&!isNaN(parseFloat(t))&&isFinite(t)}function kj(t,n){let e=Math.round(t);return e-n<=t&&e+n>=t}function XS(t,n,e){let i,r,o;for(i=0,r=t.length;il&&c=Math.min(n,e)-i&&t<=Math.max(n,e)+i}function zx(t,n,e){e=e||(a=>t[a]1;)o=r+i>>1,e(o)?r=o:i=o;return{lo:r,hi:i}}var ks=(t,n,e,i)=>zx(t,e,i?r=>{let o=t[r][n];return ot[r][n]zx(t,e,i=>t[i][n]>=e);function Ij(t,n,e){let i=0,r=t.length;for(;ii&&t[r-1]>e;)r--;return i>0||r{let i="_onData"+jx(e),r=t[e];Object.defineProperty(t,e,{configurable:!0,enumerable:!1,value(...o){let a=r.apply(this,o);return t._chartjs.listeners.forEach(s=>{typeof s[i]=="function"&&s[i](...o)}),a}})})}function tT(t,n){let e=t._chartjs;if(!e)return;let i=e.listeners,r=i.indexOf(n);r!==-1&&i.splice(r,1),!(i.length>0)&&(Aj.forEach(o=>{delete t[o]}),delete t._chartjs)}function iT(t){let n=new Set(t);return n.size===t.length?t:Array.from(n)}var nT=(function(){return typeof window>"u"?function(t){return t()}:window.requestAnimationFrame})();function rT(t,n){let e=[],i=!1;return function(...r){e=r,i||(i=!0,nT.call(window,()=>{i=!1,t.apply(n,e)}))}}function Rj(t,n){let e;return function(...i){return n?(clearTimeout(e),e=setTimeout(t,n,i)):t.apply(this,i),n}}var Ux=t=>t==="start"?"left":t==="end"?"right":"center",ar=(t,n,e)=>t==="start"?n:t==="end"?e:(n+e)/2,Pj=(t,n,e,i)=>t===(i?"left":"right")?e:t==="center"?(n+e)/2:n;function oT(t,n,e){let i=n.length,r=0,o=i;if(t._sorted){let{iScale:a,vScale:s,_parsed:l}=t,c=t.dataset&&t.dataset.options?t.dataset.options.spanGaps:null,d=a.axis,{min:m,max:f,minDefined:b,maxDefined:v}=a.getUserBounds();if(b){if(r=Math.min(ks(l,d,m).lo,e?i:ks(n,d,a.getPixelForValue(m)).lo),c){let w=l.slice(0,r+1).reverse().findIndex(x=>!Et(x[s.axis]));r-=Math.max(0,w)}r=Dn(r,0,i-1)}if(v){let w=Math.max(ks(l,a.axis,f,!0).hi+1,e?0:ks(n,d,a.getPixelForValue(f),!0).hi+1);if(c){let x=l.slice(w-1).findIndex(D=>!Et(D[s.axis]));w+=Math.max(0,x)}o=Dn(w,r,i)-r}else o=i-r}return{start:r,count:o}}function aT(t){let{xScale:n,yScale:e,_scaleRanges:i}=t,r={xmin:n.min,xmax:n.max,ymin:e.min,ymax:e.max};if(!i)return t._scaleRanges=r,!0;let o=i.xmin!==n.min||i.xmax!==n.max||i.ymin!==e.min||i.ymax!==e.max;return Object.assign(i,r),o}var Rx=t=>t===0||t===1,pj=(t,n,e)=>-(Math.pow(2,10*(t-=1))*Math.sin((t-n)*Mi/e)),fj=(t,n,e)=>Math.pow(2,-10*t)*Math.sin((t-n)*Mi/e)+1,Oh={linear:t=>t,easeInQuad:t=>t*t,easeOutQuad:t=>-t*(t-2),easeInOutQuad:t=>(t/=.5)<1?.5*t*t:-.5*(--t*(t-2)-1),easeInCubic:t=>t*t*t,easeOutCubic:t=>(t-=1)*t*t+1,easeInOutCubic:t=>(t/=.5)<1?.5*t*t*t:.5*((t-=2)*t*t+2),easeInQuart:t=>t*t*t*t,easeOutQuart:t=>-((t-=1)*t*t*t-1),easeInOutQuart:t=>(t/=.5)<1?.5*t*t*t*t:-.5*((t-=2)*t*t*t-2),easeInQuint:t=>t*t*t*t*t,easeOutQuint:t=>(t-=1)*t*t*t*t+1,easeInOutQuint:t=>(t/=.5)<1?.5*t*t*t*t*t:.5*((t-=2)*t*t*t*t+2),easeInSine:t=>-Math.cos(t*Zi)+1,easeOutSine:t=>Math.sin(t*Zi),easeInOutSine:t=>-.5*(Math.cos(Ht*t)-1),easeInExpo:t=>t===0?0:Math.pow(2,10*(t-1)),easeOutExpo:t=>t===1?1:-Math.pow(2,-10*t)+1,easeInOutExpo:t=>Rx(t)?t:t<.5?.5*Math.pow(2,10*(t*2-1)):.5*(-Math.pow(2,-10*(t*2-1))+2),easeInCirc:t=>t>=1?t:-(Math.sqrt(1-t*t)-1),easeOutCirc:t=>Math.sqrt(1-(t-=1)*t),easeInOutCirc:t=>(t/=.5)<1?-.5*(Math.sqrt(1-t*t)-1):.5*(Math.sqrt(1-(t-=2)*t)+1),easeInElastic:t=>Rx(t)?t:pj(t,.075,.3),easeOutElastic:t=>Rx(t)?t:fj(t,.075,.3),easeInOutElastic(t){return Rx(t)?t:t<.5?.5*pj(t*2,.1125,.45):.5+.5*fj(t*2-1,.1125,.45)},easeInBack(t){return t*t*((1.70158+1)*t-1.70158)},easeOutBack(t){return(t-=1)*t*((1.70158+1)*t+1.70158)+1},easeInOutBack(t){let n=1.70158;return(t/=.5)<1?.5*(t*t*(((n*=1.525)+1)*t-n)):.5*((t-=2)*t*(((n*=1.525)+1)*t+n)+2)},easeInBounce:t=>1-Oh.easeOutBounce(1-t),easeOutBounce(t){return t<1/2.75?7.5625*t*t:t<2/2.75?7.5625*(t-=1.5/2.75)*t+.75:t<2.5/2.75?7.5625*(t-=2.25/2.75)*t+.9375:7.5625*(t-=2.625/2.75)*t+.984375},easeInOutBounce:t=>t<.5?Oh.easeInBounce(t*2)*.5:Oh.easeOutBounce(t*2-1)*.5+.5};function sT(t){if(t&&typeof t=="object"){let n=t.toString();return n==="[object CanvasPattern]"||n==="[object CanvasGradient]"}return!1}function lT(t){return sT(t)?t:new Fg(t)}function GS(t){return sT(t)?t:new Fg(t).saturate(.5).darken(.1).hexString()}var One=["x","y","borderWidth","radius","tension"],Rne=["color","borderColor","backgroundColor"];function Pne(t){t.set("animation",{delay:void 0,duration:1e3,easing:"easeOutQuart",fn:void 0,from:void 0,loop:void 0,to:void 0,type:void 0}),t.describe("animation",{_fallback:!1,_indexable:!1,_scriptable:n=>n!=="onProgress"&&n!=="onComplete"&&n!=="fn"}),t.set("animations",{colors:{type:"color",properties:Rne},numbers:{type:"number",properties:One}}),t.describe("animations",{_fallback:"animation"}),t.set("transitions",{active:{animation:{duration:400}},resize:{animation:{duration:0}},show:{animations:{colors:{from:"transparent"},visible:{type:"boolean",duration:0}}},hide:{animations:{colors:{to:"transparent"},visible:{type:"boolean",easing:"linear",fn:n=>n|0}}}})}function Fne(t){t.set("layout",{autoPadding:!0,padding:{top:0,right:0,bottom:0,left:0}})}var gj=new Map;function Nne(t,n){n=n||{};let e=t+JSON.stringify(n),i=gj.get(e);return i||(i=new Intl.NumberFormat(t,n),gj.set(e,i)),i}function Bh(t,n,e){return Nne(n,e).format(t)}var Fj={values(t){return Ei(t)?t:""+t},numeric(t,n,e){if(t===0)return"0";let i=this.chart.options.locale,r,o=t;if(e.length>1){let c=Math.max(Math.abs(e[0].value),Math.abs(e[e.length-1].value));(c<1e-4||c>1e15)&&(r="scientific"),o=Lne(t,e)}let a=gl(Math.abs(o)),s=isNaN(a)?1:Math.max(Math.min(-1*Math.floor(a),20),0),l={notation:r,minimumFractionDigits:s,maximumFractionDigits:s};return Object.assign(l,this.options.ticks.format),Bh(t,i,l)},logarithmic(t,n,e){if(t===0)return"0";let i=e[n].significand||t/Math.pow(10,Math.floor(gl(t)));return[1,2,3,5,10,15].includes(i)||n>.8*e.length?Fj.numeric.call(this,t,n,e):""}};function Lne(t,n){let e=n.length>3?n[2].value-n[1].value:n[1].value-n[0].value;return Math.abs(e)>=1&&t!==Math.floor(t)&&(e=t-Math.floor(t)),e}var jg={formatters:Fj};function Vne(t){t.set("scale",{display:!0,offset:!1,reverse:!1,beginAtZero:!1,bounds:"ticks",clip:!0,grace:0,grid:{display:!0,lineWidth:1,drawOnChartArea:!0,drawTicks:!0,tickLength:8,tickWidth:(n,e)=>e.lineWidth,tickColor:(n,e)=>e.color,offset:!1},border:{display:!0,dash:[],dashOffset:0,width:1},title:{display:!1,text:"",padding:{top:4,bottom:4}},ticks:{minRotation:0,maxRotation:50,mirror:!1,textStrokeWidth:0,textStrokeColor:"",padding:3,display:!0,autoSkip:!0,autoSkipPadding:3,labelOffset:0,callback:jg.formatters.values,minor:{},major:{},align:"center",crossAlign:"near",showLabelBackdrop:!1,backdropColor:"rgba(255, 255, 255, 0.75)",backdropPadding:2}}),t.route("scale.ticks","color","","color"),t.route("scale.grid","color","","borderColor"),t.route("scale.border","color","","borderColor"),t.route("scale.title","color","","color"),t.describe("scale",{_fallback:!1,_scriptable:n=>!n.startsWith("before")&&!n.startsWith("after")&&n!=="callback"&&n!=="parser",_indexable:n=>n!=="borderDash"&&n!=="tickBorderDash"&&n!=="dash"}),t.describe("scales",{_fallback:"scale"}),t.describe("scale.ticks",{_scriptable:n=>n!=="backdropPadding"&&n!=="callback",_indexable:n=>n!=="backdropPadding"})}var Mc=Object.create(null),$x=Object.create(null);function Lg(t,n){if(!n)return t;let e=n.split(".");for(let i=0,r=e.length;ii.chart.platform.getDevicePixelRatio(),this.elements={},this.events=["mousemove","mouseout","click","touchstart","touchmove"],this.font={family:"'Helvetica Neue', 'Helvetica', 'Arial', sans-serif",size:12,style:"normal",lineHeight:1.2,weight:null},this.hover={},this.hoverBackgroundColor=(i,r)=>GS(r.backgroundColor),this.hoverBorderColor=(i,r)=>GS(r.borderColor),this.hoverColor=(i,r)=>GS(r.color),this.indexAxis="x",this.interaction={mode:"nearest",intersect:!0,includeInvisible:!1},this.maintainAspectRatio=!0,this.onHover=null,this.onClick=null,this.parsing=!0,this.plugins={},this.responsive=!0,this.scale=void 0,this.scales={},this.showLine=!0,this.drawActiveElementsOnTop=!0,this.describe(n),this.apply(e)}set(n,e){return qS(this,n,e)}get(n){return Lg(this,n)}describe(n,e){return qS($x,n,e)}override(n,e){return qS(Mc,n,e)}route(n,e,i,r){let o=Lg(this,n),a=Lg(this,i),s="_"+e;Object.defineProperties(o,{[s]:{value:o[e],writable:!0},[e]:{enumerable:!0,get(){let l=this[s],c=a[r];return St(l)?Object.assign({},c,l):st(l,c)},set(l){this[s]=l}}})}apply(n){n.forEach(e=>e(this))}},xi=new YS({_scriptable:t=>!t.startsWith("on"),_indexable:t=>t!=="events",hover:{_fallback:"interaction"},interaction:{_scriptable:!1,_indexable:!1}},[Pne,Fne,Vne]);function Bne(t){return!t||Et(t.size)||Et(t.family)?null:(t.style?t.style+" ":"")+(t.weight?t.weight+" ":"")+t.size+"px "+t.family}function Vg(t,n,e,i,r){let o=n[r];return o||(o=n[r]=t.measureText(r).width,e.push(r)),o>i&&(i=o),i}function Nj(t,n,e,i){i=i||{};let r=i.data=i.data||{},o=i.garbageCollect=i.garbageCollect||[];i.font!==n&&(r=i.data={},o=i.garbageCollect=[],i.font=n),t.save(),t.font=n;let a=0,s=e.length,l,c,d,m,f;for(l=0;le.length){for(l=0;l0&&t.stroke()}}function Ss(t,n,e){return e=e||.5,!n||t&&t.x>n.left-e&&t.xn.top-e&&t.y0&&o.strokeColor!=="",l,c;for(t.save(),t.font=r.string,jne(t,o),l=0;l+t||0;function Gx(t,n){let e={},i=St(n),r=i?Object.keys(n):n,o=St(t)?i?a=>st(t[a],t[n[a]]):a=>t[a]:()=>t;for(let a of r)e[a]=Gne(o(a));return e}function uT(t){return Gx(t,{top:"y",right:"x",bottom:"y",left:"x"})}function Tc(t){return Gx(t,["topLeft","topRight","bottomLeft","bottomRight"])}function sr(t){let n=uT(t);return n.width=n.left+n.right,n.height=n.top+n.bottom,n}function pn(t,n){t=t||{},n=n||xi.font;let e=st(t.size,n.size);typeof e=="string"&&(e=parseInt(e,10));let i=st(t.style,n.style);i&&!(""+i).match($ne)&&(console.warn('Invalid font style specified: "'+i+'"'),i=void 0);let r={family:st(t.family,n.family),lineHeight:Wne(st(t.lineHeight,n.lineHeight),e),size:e,style:i,weight:st(t.weight,n.weight),string:""};return r.string=Bne(r),r}function Hh(t,n,e,i){let r=!0,o,a,s;for(o=0,a=t.length;oe&&s===0?0:s+l;return{min:a(i,-Math.abs(o)),max:a(r,o)}}function bl(t,n){return Object.assign(Object.create(t),n)}function qx(t,n=[""],e,i,r=()=>t[0]){let o=e||t;typeof i>"u"&&(i=zj("_fallback",t));let a={[Symbol.toStringTag]:"Object",_cacheable:!0,_scopes:t,_rootScopes:o,_fallback:i,_getTarget:r,override:s=>qx([s,...t],n,o,i)};return new Proxy(a,{deleteProperty(s,l){return delete s[l],delete s._keys,delete t[0][l],!0},get(s,l){return jj(s,l,()=>ere(l,n,t,s))},getOwnPropertyDescriptor(s,l){return Reflect.getOwnPropertyDescriptor(s._scopes[0],l)},getPrototypeOf(){return Reflect.getPrototypeOf(t[0])},has(s,l){return bj(s).includes(l)},ownKeys(s){return bj(s)},set(s,l,c){let d=s._storage||(s._storage=r());return s[l]=d[l]=c,delete s._keys,!0}})}function yu(t,n,e,i){let r={_cacheable:!1,_proxy:t,_context:n,_subProxy:e,_stack:new Set,_descriptors:mT(t,i),setContext:o=>yu(t,o,e,i),override:o=>yu(t.override(o),n,e,i)};return new Proxy(r,{deleteProperty(o,a){return delete o[a],delete t[a],!0},get(o,a,s){return jj(o,a,()=>Yne(o,a,s))},getOwnPropertyDescriptor(o,a){return o._descriptors.allKeys?Reflect.has(t,a)?{enumerable:!0,configurable:!0}:void 0:Reflect.getOwnPropertyDescriptor(t,a)},getPrototypeOf(){return Reflect.getPrototypeOf(t)},has(o,a){return Reflect.has(t,a)},ownKeys(){return Reflect.ownKeys(t)},set(o,a,s){return t[a]=s,delete o[a],!0}})}function mT(t,n={scriptable:!0,indexable:!0}){let{_scriptable:e=n.scriptable,_indexable:i=n.indexable,_allKeys:r=n.allKeys}=t;return{allKeys:r,scriptable:e,indexable:i,isScriptable:fl(e)?e:()=>e,isIndexable:fl(i)?i:()=>i}}var qne=(t,n)=>t?t+jx(n):n,hT=(t,n)=>St(n)&&t!=="adapters"&&(Object.getPrototypeOf(n)===null||n.constructor===Object);function jj(t,n,e){if(Object.prototype.hasOwnProperty.call(t,n)||n==="constructor")return t[n];let i=e();return t[n]=i,i}function Yne(t,n,e){let{_proxy:i,_context:r,_subProxy:o,_descriptors:a}=t,s=i[n];return fl(s)&&a.isScriptable(n)&&(s=Qne(n,s,t,e)),Ei(s)&&s.length&&(s=Kne(n,s,t,a.isIndexable)),hT(n,s)&&(s=yu(s,r,o&&o[n],a)),s}function Qne(t,n,e,i){let{_proxy:r,_context:o,_subProxy:a,_stack:s}=e;if(s.has(t))throw new Error("Recursion detected: "+Array.from(s).join("->")+"->"+t);s.add(t);let l=n(o,a||i);return s.delete(t),hT(t,l)&&(l=pT(r._scopes,r,t,l)),l}function Kne(t,n,e,i){let{_proxy:r,_context:o,_subProxy:a,_descriptors:s}=e;if(typeof o.index<"u"&&i(t))return n[o.index%n.length];if(St(n[0])){let l=n,c=r._scopes.filter(d=>d!==l);n=[];for(let d of l){let m=pT(c,r,t,d);n.push(yu(m,o,a&&a[t],s))}}return n}function Hj(t,n,e){return fl(t)?t(n,e):t}var Zne=(t,n)=>t===!0?n:typeof t=="string"?_l(n,t):void 0;function Xne(t,n,e,i,r){for(let o of n){let a=Zne(e,o);if(a){t.add(a);let s=Hj(a._fallback,e,r);if(typeof s<"u"&&s!==e&&s!==i)return s}else if(a===!1&&typeof i<"u"&&e!==i)return null}return!1}function pT(t,n,e,i){let r=n._rootScopes,o=Hj(n._fallback,e,i),a=[...t,...r],s=new Set;s.add(i);let l=_j(s,a,e,o||e,i);return l===null||typeof o<"u"&&o!==e&&(l=_j(s,a,o,l,i),l===null)?!1:qx(Array.from(s),[""],r,o,()=>Jne(n,e,i))}function _j(t,n,e,i,r){for(;e;)e=Xne(t,n,e,i,r);return e}function Jne(t,n,e){let i=t._getTarget();n in i||(i[n]={});let r=i[n];return Ei(r)&&St(e)?e:r||{}}function ere(t,n,e,i){let r;for(let o of n)if(r=zj(qne(o,t),e),typeof r<"u")return hT(t,r)?pT(e,i,t,r):r}function zj(t,n){for(let e of n){if(!e)continue;let i=e[t];if(typeof i<"u")return i}}function bj(t){let n=t._keys;return n||(n=t._keys=tre(t._scopes)),n}function tre(t){let n=new Set;for(let e of t)for(let i of Object.keys(e).filter(r=>!r.startsWith("_")))n.add(i);return Array.from(n)}function fT(t,n,e,i){let{iScale:r}=t,{key:o="r"}=this._parsing,a=new Array(i),s,l,c,d;for(s=0,l=i;snt==="x"?"y":"x";function nre(t,n,e,i){let r=t.skip?n:t,o=n,a=e.skip?n:e,s=Vx(o,r),l=Vx(a,o),c=s/(s+l),d=l/(s+l);c=isNaN(c)?0:c,d=isNaN(d)?0:d;let m=i*c,f=i*d;return{previous:{x:o.x-m*(a.x-r.x),y:o.y-m*(a.y-r.y)},next:{x:o.x+f*(a.x-r.x),y:o.y+f*(a.y-r.y)}}}function rre(t,n,e){let i=t.length,r,o,a,s,l,c=Ph(t,0);for(let d=0;d!c.skip)),n.cubicInterpolationMode==="monotone")are(t,r);else{let c=i?t[t.length-1]:t[0];for(o=0,a=t.length;ot.ownerDocument.defaultView.getComputedStyle(t,null);function lre(t,n){return Kx(t).getPropertyValue(n)}var cre=["top","right","bottom","left"];function vu(t,n,e){let i={};e=e?"-"+e:"";for(let r=0;r<4;r++){let o=cre[r];i[o]=parseFloat(t[n+"-"+o+e])||0}return i.width=i.left+i.right,i.height=i.top+i.bottom,i}var dre=(t,n,e)=>(t>0||n>0)&&(!e||!e.shadowRoot);function ure(t,n){let e=t.touches,i=e&&e.length?e[0]:t,{offsetX:r,offsetY:o}=i,a=!1,s,l;if(dre(r,o,t.target))s=r,l=o;else{let c=n.getBoundingClientRect();s=i.clientX-c.left,l=i.clientY-c.top,a=!0}return{x:s,y:l,box:a}}function Ic(t,n){if("native"in t)return t;let{canvas:e,currentDevicePixelRatio:i}=n,r=Kx(e),o=r.boxSizing==="border-box",a=vu(r,"padding"),s=vu(r,"border","width"),{x:l,y:c,box:d}=ure(t,e),m=a.left+(d&&s.left),f=a.top+(d&&s.top),{width:b,height:v}=n;return o&&(b-=a.width+s.width,v-=a.height+s.height),{x:Math.round((l-m)/b*e.width/i),y:Math.round((c-f)/v*e.height/i)}}function mre(t,n,e){let i,r;if(n===void 0||e===void 0){let o=t&&Qx(t);if(!o)n=t.clientWidth,e=t.clientHeight;else{let a=o.getBoundingClientRect(),s=Kx(o),l=vu(s,"border","width"),c=vu(s,"padding");n=a.width-c.width-l.width,e=a.height-c.height-l.height,i=Bx(s.maxWidth,o,"clientWidth"),r=Bx(s.maxHeight,o,"clientHeight")}}return{width:n,height:e,maxWidth:i||Lx,maxHeight:r||Lx}}var Ec=t=>Math.round(t*10)/10;function Wj(t,n,e,i){let r=Kx(t),o=vu(r,"margin"),a=Bx(r.maxWidth,t,"clientWidth")||Lx,s=Bx(r.maxHeight,t,"clientHeight")||Lx,l=mre(t,n,e),{width:c,height:d}=l;if(r.boxSizing==="content-box"){let f=vu(r,"border","width"),b=vu(r,"padding");c-=b.width+f.width,d-=b.height+f.height}return c=Math.max(0,c-o.width),d=Math.max(0,i?c/i:d-o.height),c=Ec(Math.min(c,a,l.maxWidth)),d=Ec(Math.min(d,s,l.maxHeight)),c&&!d&&(d=Ec(c/2)),(n!==void 0||e!==void 0)&&i&&l.height&&d>l.height&&(d=l.height,c=Ec(Math.floor(d*i))),{width:c,height:d}}function gT(t,n,e){let i=n||1,r=Ec(t.height*i),o=Ec(t.width*i);t.height=Ec(t.height),t.width=Ec(t.width);let a=t.canvas;return a.style&&(e||!a.style.height&&!a.style.width)&&(a.style.height=`${t.height}px`,a.style.width=`${t.width}px`),t.currentDevicePixelRatio!==i||a.height!==r||a.width!==o?(t.currentDevicePixelRatio=i,a.height=r,a.width=o,t.ctx.setTransform(i,0,0,i,0,0),!0):!1}var Gj=(function(){let t=!1;try{let n={get passive(){return t=!0,!1}};Yx()&&(window.addEventListener("test",null,n),window.removeEventListener("test",null,n))}catch{}return t})();function _T(t,n){let e=lre(t,n),i=e&&e.match(/^(\d+)(\.\d+)?px$/);return i?+i[1]:void 0}function Dc(t,n,e,i){return{x:t.x+e*(n.x-t.x),y:t.y+e*(n.y-t.y)}}function qj(t,n,e,i){return{x:t.x+e*(n.x-t.x),y:i==="middle"?e<.5?t.y:n.y:i==="after"?e<1?t.y:n.y:e>0?n.y:t.y}}function Yj(t,n,e,i){let r={x:t.cp2x,y:t.cp2y},o={x:n.cp1x,y:n.cp1y},a=Dc(t,r,e),s=Dc(r,o,e),l=Dc(o,n,e),c=Dc(a,s,e),d=Dc(s,l,e);return Dc(c,d,e)}var hre=function(t,n){return{x(e){return t+t+n-e},setWidth(e){n=e},textAlign(e){return e==="center"?e:e==="right"?"left":"right"},xPlus(e,i){return e-i},leftForLtr(e,i){return e-i}}},pre=function(){return{x(t){return t},setWidth(t){},textAlign(t){return t},xPlus(t,n){return t+n},leftForLtr(t,n){return t}}};function Cu(t,n,e){return t?hre(n,e):pre()}function bT(t,n){let e,i;(n==="ltr"||n==="rtl")&&(e=t.canvas.style,i=[e.getPropertyValue("direction"),e.getPropertyPriority("direction")],e.setProperty("direction",n,"important"),t.prevTextDirection=i)}function vT(t,n){n!==void 0&&(delete t.prevTextDirection,t.canvas.style.setProperty("direction",n[0],n[1]))}function Qj(t){return t==="angle"?{between:Vh,compare:Ane,normalize:or}:{between:Is,compare:(n,e)=>n-e,normalize:n=>n}}function vj({start:t,end:n,count:e,loop:i,style:r}){return{start:t%e,end:n%e,loop:i&&(n-t+1)%e===0,style:r}}function fre(t,n,e){let{property:i,start:r,end:o}=e,{between:a,normalize:s}=Qj(i),l=n.length,{start:c,end:d,loop:m}=t,f,b;if(m){for(c+=l,d+=l,f=0,b=l;fl(r,W,D)&&s(r,W)!==0,K=()=>s(o,D)===0||l(o,W,D),re=()=>w||Z(),Ee=()=>!w||K();for(let be=d,Ve=d;be<=m;++be)P=n[be%a],!P.skip&&(D=c(P[i]),D!==W&&(w=l(D,r,o),x===null&&re()&&(x=s(D,r)===0?be:Ve),x!==null&&Ee()&&(v.push(vj({start:x,end:be,loop:f,count:a,style:b})),x=null),Ve=be,W=D));return x!==null&&v.push(vj({start:x,end:m,loop:f,count:a,style:b})),v}function xT(t,n){let e=[],i=t.segments;for(let r=0;rr&&t[o%n].skip;)o--;return o%=n,{start:r,end:o}}function _re(t,n,e,i){let r=t.length,o=[],a=n,s=t[n],l;for(l=n+1;l<=e;++l){let c=t[l%r];c.skip||c.stop?s.skip||(i=!1,o.push({start:n%r,end:(l-1)%r,loop:i}),n=a=c.stop?l:null):(a=l,s.skip&&(n=l)),s=c}return a!==null&&o.push({start:n%r,end:a%r,loop:i}),o}function Kj(t,n){let e=t.points,i=t.options.spanGaps,r=e.length;if(!r)return[];let o=!!t._loop,{start:a,end:s}=gre(e,r,o,i);if(i===!0)return yj(t,[{start:a,end:s,loop:o}],e,n);let l=ss({chart:n,initial:e.initial,numSteps:a,currentStep:Math.min(i-e.start,a)}))}_refresh(){this._request||(this._running=!0,this._request=nT.call(window,()=>{this._update(),this._request=null,this._running&&this._refresh()}))}_update(n=Date.now()){let e=0;this._charts.forEach((i,r)=>{if(!i.running||!i.items.length)return;let o=i.items,a=o.length-1,s=!1,l;for(;a>=0;--a)l=o[a],l._active?(l._total>i.duration&&(i.duration=l._total),l.tick(n),s=!0):(o[a]=o[o.length-1],o.pop());s&&(r.draw(),this._notify(r,i,n,"progress")),o.length||(i.running=!1,this._notify(r,i,n,"complete"),i.initial=!1),e+=o.length}),this._lastDate=n,e===0&&(this._running=!1)}_getAnims(n){let e=this._charts,i=e.get(n);return i||(i={running:!1,initial:!0,items:[],listeners:{complete:[],progress:[]}},e.set(n,i)),i}listen(n,e,i){this._getAnims(n).listeners[e].push(i)}add(n,e){!e||!e.length||this._getAnims(n).items.push(...e)}has(n){return this._getAnims(n).items.length>0}start(n){let e=this._charts.get(n);e&&(e.running=!0,e.start=Date.now(),e.duration=e.items.reduce((i,r)=>Math.max(i,r._duration),0),this._refresh())}running(n){if(!this._running)return!1;let e=this._charts.get(n);return!(!e||!e.running||!e.items.length)}stop(n){let e=this._charts.get(n);if(!e||!e.items.length)return;let i=e.items,r=i.length-1;for(;r>=0;--r)i[r].cancel();e.items=[],this._notify(n,e,Date.now(),"complete")}remove(n){return this._charts.delete(n)}},vl=new PT,Zj="transparent",xre={boolean(t,n,e){return e>.5?n:t},color(t,n,e){let i=lT(t||Zj),r=i.valid&&lT(n||Zj);return r&&r.valid?r.mix(i,e).hexString():n},number(t,n,e){return t+(n-t)*e}},FT=class{constructor(n,e,i,r){let o=e[i];r=Hh([n.to,r,o,n.from]);let a=Hh([n.from,o,r]);this._active=!0,this._fn=n.fn||xre[n.type||typeof a],this._easing=Oh[n.easing]||Oh.linear,this._start=Math.floor(Date.now()+(n.delay||0)),this._duration=this._total=Math.floor(n.duration),this._loop=!!n.loop,this._target=e,this._prop=i,this._from=a,this._to=r,this._promises=void 0}active(){return this._active}update(n,e,i){if(this._active){this._notify(!1);let r=this._target[this._prop],o=i-this._start,a=this._duration-o;this._start=i,this._duration=Math.floor(Math.max(a,n.duration)),this._total+=o,this._loop=!!n.loop,this._to=Hh([n.to,e,r,n.from]),this._from=Hh([n.from,r,e])}}cancel(){this._active&&(this.tick(Date.now()),this._active=!1,this._notify(!1))}tick(n){let e=n-this._start,i=this._duration,r=this._prop,o=this._from,a=this._loop,s=this._to,l;if(this._active=o!==s&&(a||e1?2-l:l,l=this._easing(Math.min(1,Math.max(0,l))),this._target[r]=this._fn(o,s,l)}wait(){let n=this._promises||(this._promises=[]);return new Promise((e,i)=>{n.push({res:e,rej:i})})}_notify(n){let e=n?"res":"rej",i=this._promises||[];for(let r=0;r{let o=n[r];if(!St(o))return;let a={};for(let s of e)a[s]=o[s];(Ei(o.properties)&&o.properties||[r]).forEach(s=>{(s===r||!i.has(s))&&i.set(s,a)})})}_animateOptions(n,e){let i=e.options,r=wre(n,i);if(!r)return[];let o=this._createAnimations(r,i);return i.$shared&&Cre(n.options.$animations,i).then(()=>{n.options=i},()=>{}),o}_createAnimations(n,e){let i=this._properties,r=[],o=n.$animations||(n.$animations={}),a=Object.keys(e),s=Date.now(),l;for(l=a.length-1;l>=0;--l){let c=a[l];if(c.charAt(0)==="$")continue;if(c==="options"){r.push(...this._animateOptions(n,e));continue}let d=e[c],m=o[c],f=i.get(c);if(m)if(f&&m.active()){m.update(f,d,s);continue}else m.cancel();if(!f||!f.duration){n[c]=d;continue}o[c]=m=new FT(f,n,c,d),r.push(m)}return r}update(n,e){if(this._properties.size===0){Object.assign(n,e);return}let i=this._createAnimations(n,e);if(i.length)return vl.add(this._chart,i),!0}};function Cre(t,n){let e=[],i=Object.keys(n);for(let r=0;r0||!e&&o<0)return r.index}return null}function t4(t,n){let{chart:e,_cachedMeta:i}=t,r=e._stacks||(e._stacks={}),{iScale:o,vScale:a,index:s}=i,l=o.axis,c=a.axis,d=kre(o,a,i),m=n.length,f;for(let b=0;be[i].axis===n).shift()}function Ire(t,n){return bl(t,{active:!1,dataset:void 0,datasetIndex:n,index:n,mode:"default",type:"dataset"})}function Are(t,n,e){return bl(t,{active:!1,dataIndex:n,parsed:void 0,raw:void 0,element:e,index:n,mode:"default",type:"data"})}function Ug(t,n){let e=t.controller.index,i=t.vScale&&t.vScale.axis;if(i){n=n||t._parsed;for(let r of n){let o=r._stacks;if(!o||o[i]===void 0||o[i][e]===void 0)return;delete o[i][e],o[i]._visualValues!==void 0&&o[i]._visualValues[e]!==void 0&&delete o[i]._visualValues[e]}}}var ET=t=>t==="reset"||t==="none",i4=(t,n)=>n?t:Object.assign({},t),Ore=(t,n,e)=>t&&!n.hidden&&n._stacked&&{keys:Z4(e,!0),values:null},Oc=(()=>{class t{static defaults={};static datasetElementType=null;static dataElementType=null;constructor(e,i){this.chart=e,this._ctx=e.ctx,this.index=i,this._cachedDataOpts={},this._cachedMeta=this.getMeta(),this._type=this._cachedMeta.type,this.options=void 0,this._parsing=!1,this._data=void 0,this._objectData=void 0,this._sharedOptions=void 0,this._drawStart=void 0,this._drawCount=void 0,this.enableOptionSharing=!1,this.supportsDecimation=!1,this.$context=void 0,this._syncList=[],this.datasetElementType=new.target.datasetElementType,this.dataElementType=new.target.dataElementType,this.initialize()}initialize(){let e=this._cachedMeta;this.configure(),this.linkScales(),e._stacked=wT(e.vScale,e),this.addElements(),this.options.fill&&!this.chart.isPluginEnabled("filler")&&console.warn("Tried to use the 'fill' option without the 'Filler' plugin enabled. Please import and register the 'Filler' plugin and make sure it is not disabled in the options")}updateIndex(e){this.index!==e&&Ug(this._cachedMeta),this.index=e}linkScales(){let e=this.chart,i=this._cachedMeta,r=this.getDataset(),o=(f,b,v,w)=>f==="x"?b:f==="r"?w:v,a=i.xAxisID=st(r.xAxisID,DT(e,"x")),s=i.yAxisID=st(r.yAxisID,DT(e,"y")),l=i.rAxisID=st(r.rAxisID,DT(e,"r")),c=i.indexAxis,d=i.iAxisID=o(c,a,s,l),m=i.vAxisID=o(c,s,a,l);i.xScale=this.getScaleForId(a),i.yScale=this.getScaleForId(s),i.rScale=this.getScaleForId(l),i.iScale=this.getScaleForId(d),i.vScale=this.getScaleForId(m)}getDataset(){return this.chart.data.datasets[this.index]}getMeta(){return this.chart.getDatasetMeta(this.index)}getScaleForId(e){return this.chart.scales[e]}_getOtherScale(e){let i=this._cachedMeta;return e===i.iScale?i.vScale:i.iScale}reset(){this._update("reset")}_destroy(){let e=this._cachedMeta;this._data&&tT(this._data,this),e._stacked&&Ug(e)}_dataCheck(){let e=this.getDataset(),i=e.data||(e.data=[]),r=this._data;if(St(i)){let o=this._cachedMeta;this._data=Mre(i,o)}else if(r!==i){if(r){tT(r,this);let o=this._cachedMeta;Ug(o),o._parsed=[]}i&&Object.isExtensible(i)&&Oj(i,this),this._syncList=[],this._data=i}}addElements(){let e=this._cachedMeta;this._dataCheck(),this.datasetElementType&&(e.dataset=new this.datasetElementType)}buildOrUpdateElements(e){let i=this._cachedMeta,r=this.getDataset(),o=!1;this._dataCheck();let a=i._stacked;i._stacked=wT(i.vScale,i),i.stack!==r.stack&&(o=!0,Ug(i),i.stack=r.stack),this._resyncElements(e),(o||a!==i._stacked)&&(t4(this,i._parsed),i._stacked=wT(i.vScale,i))}configure(){let e=this.chart.config,i=e.datasetScopeKeys(this._type),r=e.getOptionScopes(this.getDataset(),i,!0);this.options=e.createResolver(r,this.getContext()),this._parsing=this.options.parsing,this._cachedDataOpts={}}parse(e,i){let{_cachedMeta:r,_data:o}=this,{iScale:a,_stacked:s}=r,l=a.axis,c=e===0&&i===o.length?!0:r._sorted,d=e>0&&r._parsed[e-1],m,f,b;if(this._parsing===!1)r._parsed=o,r._sorted=!0,b=o;else{Ei(o[e])?b=this.parseArrayData(r,o,e,i):St(o[e])?b=this.parseObjectData(r,o,e,i):b=this.parsePrimitiveData(r,o,e,i);let v=()=>f[l]===null||d&&f[l]x||f=0;--b)if(!w()){this.updateRangeFromParsed(d,e,v,c);break}}return d}getAllParsedValues(e){let i=this._cachedMeta._parsed,r=[],o,a,s;for(o=0,a=i.length;o=0&&ethis.getContext(r,o,i),x=d.resolveNamedOptions(b,v,w,f);return x.$shared&&(x.$shared=c,a[s]=Object.freeze(i4(x,c))),x}_resolveAnimations(e,i,r){let o=this.chart,a=this._cachedDataOpts,s=`animation-${i}`,l=a[s];if(l)return l;let c;if(o.options.animation!==!1){let m=this.chart.config,f=m.datasetAnimationScopeKeys(this._type,i),b=m.getOptionScopes(this.getDataset(),f);c=m.createResolver(b,this.getContext(e,r,i))}let d=new oC(o,c&&c.animations);return c&&c._cacheable&&(a[s]=Object.freeze(d)),d}getSharedOptions(e){if(e.$shared)return this._sharedOptions||(this._sharedOptions=Object.assign({},e))}includeOptions(e,i){return!i||ET(e)||this.chart._animationsDisabled}_getSharedOptions(e,i){let r=this.resolveDataElementOptions(e,i),o=this._sharedOptions,a=this.getSharedOptions(r),s=this.includeOptions(i,a)||a!==o;return this.updateSharedOptions(a,i,r),{sharedOptions:a,includeOptions:s}}updateElement(e,i,r,o){ET(o)?Object.assign(e,r):this._resolveAnimations(i,o).update(e,r)}updateSharedOptions(e,i,r){e&&!ET(i)&&this._resolveAnimations(void 0,i).update(e,r)}_setStyle(e,i,r,o){e.active=o;let a=this.getStyle(i,o);this._resolveAnimations(i,r,o).update(e,{options:!o&&this.getSharedOptions(a)||a})}removeHoverStyle(e,i,r){this._setStyle(e,r,"active",!1)}setHoverStyle(e,i,r){this._setStyle(e,r,"active",!0)}_removeDatasetHoverStyle(){let e=this._cachedMeta.dataset;e&&this._setStyle(e,void 0,"active",!1)}_setDatasetHoverStyle(){let e=this._cachedMeta.dataset;e&&this._setStyle(e,void 0,"active",!0)}_resyncElements(e){let i=this._data,r=this._cachedMeta.data;for(let[l,c,d]of this._syncList)this[l](c,d);this._syncList=[];let o=r.length,a=i.length,s=Math.min(a,o);s&&this.parse(0,s),a>o?this._insertElements(o,a-o,e):a{for(d.length+=i,l=d.length-1;l>=s;l--)d[l]=d[l-i]};for(c(a),l=e;lr-o))}return t._cache.$bar}function Pre(t){let n=t.iScale,e=Rre(n,t.type),i=n._length,r,o,a,s,l=()=>{a===32767||a===-32768||(Nh(s)&&(i=Math.min(i,Math.abs(a-s)||i)),s=a)};for(r=0,o=e.length;r0?r[t-1]:null,s=tMath.abs(s)&&(l=s,c=a),n[e.axis]=c,n._custom={barStart:l,barEnd:c,start:r,end:o,min:a,max:s}}function X4(t,n,e,i){return Ei(t)?Lre(t,n,e,i):n[e.axis]=e.parse(t,i),n}function n4(t,n,e,i){let r=t.iScale,o=t.vScale,a=r.getLabels(),s=r===o,l=[],c,d,m,f;for(c=e,d=e+i;c=e?1:-1)}function Bre(t){let n,e,i,r,o;return t.horizontal?(n=t.base>t.x,e="left",i="right"):(n=t.base{class t extends Oc{static id="bar";static defaults={datasetElementType:!1,dataElementType:"bar",categoryPercentage:.8,barPercentage:.9,grouped:!0,animations:{numbers:{type:"number",properties:["x","y","base","width","height"]}}};static overrides={scales:{_index_:{type:"category",offset:!0,grid:{offset:!0}},_value_:{type:"linear",beginAtZero:!0}}};parsePrimitiveData(e,i,r,o){return n4(e,i,r,o)}parseArrayData(e,i,r,o){return n4(e,i,r,o)}parseObjectData(e,i,r,o){let{iScale:a,vScale:s}=e,{xAxisKey:l="x",yAxisKey:c="y"}=this._parsing,d=a.axis==="x"?l:c,m=s.axis==="x"?l:c,f=[],b,v,w,x;for(b=r,v=r+o;bm.controller.options.grouped),a=r.options.stacked,s=[],l=this._cachedMeta.controller.getParsed(i),c=l&&l[r.axis],d=m=>{let f=m._parsed.find(v=>v[r.axis]===c),b=f&&f[m.vScale.axis];if(Et(b)||isNaN(b))return!0};for(let m of o)if(!(i!==void 0&&d(m))&&((a===!1||s.indexOf(m.stack)===-1||a===void 0&&m.stack===void 0)&&s.push(m.stack),m.index===e))break;return s.length||s.push(void 0),s}_getStackCount(e){return this._getStacks(void 0,e).length}_getAxisCount(){return this._getAxis().length}getFirstScaleIdForIndexAxis(){let e=this.chart.scales,i=this.chart.options.indexAxis;return Object.keys(e).filter(r=>e[r].axis===i).shift()}_getAxis(){let e={},i=this.getFirstScaleIdForIndexAxis();for(let r of this.chart.data.datasets)e[st(this.chart.options.indexAxis==="x"?r.xAxisID:r.yAxisID,i)]=!0;return Object.keys(e)}_getStackIndex(e,i,r){let o=this._getStacks(e,r),a=i!==void 0?o.indexOf(i):-1;return a===-1?o.length-1:a}_getRuler(){let e=this.options,i=this._cachedMeta,r=i.iScale,o=[],a,s;for(a=0,s=i.data.length;a{class t extends Oc{static id="bubble";static defaults={datasetElementType:!1,dataElementType:"point",animations:{numbers:{type:"number",properties:["x","y","borderWidth","radius"]}}};static overrides={scales:{x:{type:"linear"},y:{type:"linear"}}};initialize(){this.enableOptionSharing=!0,super.initialize()}parsePrimitiveData(e,i,r,o){let a=super.parsePrimitiveData(e,i,r,o);for(let s=0;s=0;--r)i=Math.max(i,e[r].size(this.resolveDataElementOptions(r))/2);return i>0&&i}getLabelAndValue(e){let i=this._cachedMeta,r=this.chart.data.labels||[],{xScale:o,yScale:a}=i,s=this.getParsed(e),l=o.getLabelForValue(s.x),c=a.getLabelForValue(s.y),d=s._custom;return{label:r[e]||"",value:"("+l+", "+c+(d?", "+d:"")+")"}}update(e){let i=this._cachedMeta.data;this.updateElements(i,0,i.length,e)}updateElements(e,i,r,o){let a=o==="reset",{iScale:s,vScale:l}=this._cachedMeta,{sharedOptions:c,includeOptions:d}=this._getSharedOptions(i,o),m=s.axis,f=l.axis;for(let b=i;bVh(W,s,l,!0)?1:Math.max(Z,Z*e,K,K*e),v=(W,Z,K)=>Vh(W,s,l,!0)?-1:Math.min(Z,Z*e,K,K*e),w=b(0,c,m),x=b(Zi,d,f),D=v(Ht,c,m),P=v(Ht+Zi,d,f);i=(w-D)/2,r=(x-P)/2,o=-(w+D)/2,a=-(x+P)/2}return{ratioX:i,ratioY:r,offsetX:o,offsetY:a}}var tI=(()=>{class t extends Oc{static id="doughnut";static defaults={datasetElementType:!1,dataElementType:"arc",animation:{animateRotate:!0,animateScale:!1},animations:{numbers:{type:"number",properties:["circumference","endAngle","innerRadius","outerRadius","startAngle","x","y","offset","borderWidth","spacing"]}},cutout:"50%",rotation:0,circumference:360,radius:"100%",spacing:0,indexAxis:"r"};static descriptors={_scriptable:e=>e!=="spacing",_indexable:e=>e!=="spacing"&&!e.startsWith("borderDash")&&!e.startsWith("hoverBorderDash")};static overrides={aspectRatio:1,plugins:{legend:{labels:{generateLabels(e){let i=e.data,{labels:{pointStyle:r,textAlign:o,color:a,useBorderRadius:s,borderRadius:l}}=e.legend.options;return i.labels.length&&i.datasets.length?i.labels.map((c,d)=>{let f=e.getDatasetMeta(0).controller.getStyle(d);return{text:c,fillStyle:f.backgroundColor,fontColor:a,hidden:!e.getDataVisibility(d),lineDash:f.borderDash,lineDashOffset:f.borderDashOffset,lineJoin:f.borderJoinStyle,lineWidth:f.borderWidth,strokeStyle:f.borderColor,textAlign:o,pointStyle:r,borderRadius:s&&(l||f.borderRadius),index:d}}):[]}},onClick(e,i,r){r.chart.toggleDataVisibility(i.index),r.chart.update()}}}};constructor(e,i){super(e,i),this.enableOptionSharing=!0,this.innerRadius=void 0,this.outerRadius=void 0,this.offsetX=void 0,this.offsetY=void 0}linkScales(){}parse(e,i){let r=this.getDataset().data,o=this._cachedMeta;if(this._parsing===!1)o._parsed=r;else{let a=c=>+r[c];if(St(r[e])){let{key:c="value"}=this._parsing;a=d=>+_l(r[d],c)}let s,l;for(s=e,l=e+i;s0&&!isNaN(e)?Mi*(Math.abs(e)/i):0}getLabelAndValue(e){let i=this._cachedMeta,r=this.chart,o=r.data.labels||[],a=Bh(i._parsed[e],r.options.locale);return{label:o[e]||"",value:a}}getMaxBorderWidth(e){let i=0,r=this.chart,o,a,s,l,c;if(!e){for(o=0,a=r.data.datasets.length;o{class t extends Oc{static id="line";static defaults={datasetElementType:"line",dataElementType:"point",showLine:!0,spanGaps:!1};static overrides={scales:{_index_:{type:"category"},_value_:{type:"linear"}}};initialize(){this.enableOptionSharing=!0,this.supportsDecimation=!0,super.initialize()}update(e){let i=this._cachedMeta,{dataset:r,data:o=[],_dataset:a}=i,s=this.chart._animationsDisabled,{start:l,count:c}=oT(i,o,s);this._drawStart=l,this._drawCount=c,aT(i)&&(l=0,c=o.length),r._chart=this.chart,r._datasetIndex=this.index,r._decimated=!!a._decimated,r.points=o;let d=this.resolveDatasetElementOptions(e);this.options.showLine||(d.borderWidth=0),d.segment=this.options.segment,this.updateElement(r,void 0,{animated:!s,options:d},e),this.updateElements(o,l,c,e)}updateElements(e,i,r,o){let a=o==="reset",{iScale:s,vScale:l,_stacked:c,_dataset:d}=this._cachedMeta,{sharedOptions:m,includeOptions:f}=this._getSharedOptions(i,o),b=s.axis,v=l.axis,{spanGaps:w,segment:x}=this.options,D=xu(w)?w:Number.POSITIVE_INFINITY,P=this.chart._animationsDisabled||a||o==="none",W=i+r,Z=e.length,K=i>0&&this.getParsed(i-1);for(let re=0;re=W){be.skip=!0;continue}let Ve=this.getParsed(re),yt=Et(Ve[v]),bt=be[b]=s.getPixelForValue(Ve[b],re),It=be[v]=a||yt?l.getBasePixel():l.getPixelForValue(c?this.applyStack(l,Ve,c):Ve[v],re);be.skip=isNaN(bt)||isNaN(It)||yt,be.stop=re>0&&Math.abs(Ve[b]-K[b])>D,x&&(be.parsed=Ve,be.raw=d.data[re]),f&&(be.options=m||this.resolveDataElementOptions(re,Ee.active?"active":o)),P||this.updateElement(Ee,re,be,o),K=Ve}}getMaxOverflow(){let e=this._cachedMeta,i=e.dataset,r=i.options&&i.options.borderWidth||0,o=e.data||[];if(!o.length)return r;let a=o[0].size(this.resolveDataElementOptions(0)),s=o[o.length-1].size(this.resolveDataElementOptions(o.length-1));return Math.max(r,a,s)/2}draw(){let e=this._cachedMeta;e.dataset.updateControlPoints(this.chart.chartArea,e.iScale.axis),super.draw()}}return t})(),J4=(()=>{class t extends Oc{static id="polarArea";static defaults={dataElementType:"arc",animation:{animateRotate:!0,animateScale:!0},animations:{numbers:{type:"number",properties:["x","y","startAngle","endAngle","innerRadius","outerRadius"]}},indexAxis:"r",startAngle:0};static overrides={aspectRatio:1,plugins:{legend:{labels:{generateLabels(e){let i=e.data;if(i.labels.length&&i.datasets.length){let{labels:{pointStyle:r,color:o}}=e.legend.options;return i.labels.map((a,s)=>{let c=e.getDatasetMeta(0).controller.getStyle(s);return{text:a,fillStyle:c.backgroundColor,strokeStyle:c.borderColor,fontColor:o,lineWidth:c.borderWidth,pointStyle:r,hidden:!e.getDataVisibility(s),index:s}})}return[]}},onClick(e,i,r){r.chart.toggleDataVisibility(i.index),r.chart.update()}}},scales:{r:{type:"radialLinear",angleLines:{display:!1},beginAtZero:!0,grid:{circular:!0},pointLabels:{display:!1},startAngle:0}}};constructor(e,i){super(e,i),this.innerRadius=void 0,this.outerRadius=void 0}getLabelAndValue(e){let i=this._cachedMeta,r=this.chart,o=r.data.labels||[],a=Bh(i._parsed[e].r,r.options.locale);return{label:o[e]||"",value:a}}parseObjectData(e,i,r,o){return fT.bind(this)(e,i,r,o)}update(e){let i=this._cachedMeta.data;this._updateRadius(),this.updateElements(i,0,i.length,e)}getMinMax(){let e=this._cachedMeta,i={min:Number.POSITIVE_INFINITY,max:Number.NEGATIVE_INFINITY};return e.data.forEach((r,o)=>{let a=this.getParsed(o).r;!isNaN(a)&&this.chart.getDataVisibility(o)&&(ai.max&&(i.max=a))}),i}_updateRadius(){let e=this.chart,i=e.chartArea,r=e.options,o=Math.min(i.right-i.left,i.bottom-i.top),a=Math.max(o/2,0),s=Math.max(r.cutoutPercentage?a/100*r.cutoutPercentage:1,0),l=(a-s)/e.getVisibleDatasetCount();this.outerRadius=a-l*this.index,this.innerRadius=this.outerRadius-l}updateElements(e,i,r,o){let a=o==="reset",s=this.chart,c=s.options.animation,d=this._cachedMeta.rScale,m=d.xCenter,f=d.yCenter,b=d.getIndexAngle(0)-.5*Ht,v=b,w,x=360/this.countVisibleElements();for(w=0;w{!isNaN(this.getParsed(o).r)&&this.chart.getDataVisibility(o)&&i++}),i}_computeAngle(e,i,r){return this.chart.getDataVisibility(e)?ra(this.resolveDataElementOptions(e,i).angle||r):0}}return t})(),qre=(()=>{class t extends tI{static id="pie";static defaults={cutout:0,rotation:0,circumference:360,radius:"100%"}}return t})(),Yre=(()=>{class t extends Oc{static id="radar";static defaults={datasetElementType:"line",dataElementType:"point",indexAxis:"r",showLine:!0,elements:{line:{fill:"start"}}};static overrides={aspectRatio:1,scales:{r:{type:"radialLinear"}}};getLabelAndValue(e){let i=this._cachedMeta.vScale,r=this.getParsed(e);return{label:i.getLabels()[e],value:""+i.getLabelForValue(r[i.axis])}}parseObjectData(e,i,r,o){return fT.bind(this)(e,i,r,o)}update(e){let i=this._cachedMeta,r=i.dataset,o=i.data||[],a=i.iScale.getLabels();if(r.points=o,e!=="resize"){let s=this.resolveDatasetElementOptions(e);this.options.showLine||(s.borderWidth=0);let l={_loop:!0,_fullLoop:a.length===o.length,options:s};this.updateElement(r,void 0,l,e)}this.updateElements(o,0,o.length,e)}updateElements(e,i,r,o){let a=this._cachedMeta.rScale,s=o==="reset";for(let l=i;l{class t extends Oc{static id="scatter";static defaults={datasetElementType:!1,dataElementType:"point",showLine:!1,fill:!1};static overrides={interaction:{mode:"point"},scales:{x:{type:"linear"},y:{type:"linear"}}};getLabelAndValue(e){let i=this._cachedMeta,r=this.chart.data.labels||[],{xScale:o,yScale:a}=i,s=this.getParsed(e),l=o.getLabelForValue(s.x),c=a.getLabelForValue(s.y);return{label:r[e]||"",value:"("+l+", "+c+")"}}update(e){let i=this._cachedMeta,{data:r=[]}=i,o=this.chart._animationsDisabled,{start:a,count:s}=oT(i,r,o);if(this._drawStart=a,this._drawCount=s,aT(i)&&(a=0,s=r.length),this.options.showLine){this.datasetElementType||this.addElements();let{dataset:l,_dataset:c}=i;l._chart=this.chart,l._datasetIndex=this.index,l._decimated=!!c._decimated,l.points=r;let d=this.resolveDatasetElementOptions(e);d.segment=this.options.segment,this.updateElement(l,void 0,{animated:!o,options:d},e)}else this.datasetElementType&&(delete i.dataset,this.datasetElementType=!1);this.updateElements(r,a,s,e)}addElements(){let{showLine:e}=this.options;!this.datasetElementType&&e&&(this.datasetElementType=this.chart.registry.getElement("line")),super.addElements()}updateElements(e,i,r,o){let a=o==="reset",{iScale:s,vScale:l,_stacked:c,_dataset:d}=this._cachedMeta,m=this.resolveDataElementOptions(i,o),f=this.getSharedOptions(m),b=this.includeOptions(o,f),v=s.axis,w=l.axis,{spanGaps:x,segment:D}=this.options,P=xu(x)?x:Number.POSITIVE_INFINITY,W=this.chart._animationsDisabled||a||o==="none",Z=i>0&&this.getParsed(i-1);for(let K=i;K0&&Math.abs(Ee[v]-Z[v])>P,D&&(be.parsed=Ee,be.raw=d.data[K]),b&&(be.options=f||this.resolveDataElementOptions(K,re.active?"active":o)),W||this.updateElement(re,K,be,o),Z=Ee}this.updateSharedOptions(f,o,m)}getMaxOverflow(){let e=this._cachedMeta,i=e.data||[];if(!this.options.showLine){let l=0;for(let c=i.length-1;c>=0;--c)l=Math.max(l,i[c].size(this.resolveDataElementOptions(c))/2);return l>0&&l}let r=e.dataset,o=r.options&&r.options.borderWidth||0;if(!i.length)return o;let a=i[0].size(this.resolveDataElementOptions(0)),s=i[i.length-1].size(this.resolveDataElementOptions(i.length-1));return Math.max(o,a,s)/2}}return t})(),Kre=Object.freeze({__proto__:null,BarController:Ure,BubbleController:$re,DoughnutController:tI,LineController:Gre,PieController:qre,PolarAreaController:J4,RadarController:Yre,ScatterController:Qre});function wu(){throw new Error("This method is not implemented: Check that a complete date adapter is provided.")}var NT=class t{static override(n){Object.assign(t.prototype,n)}options;constructor(n){this.options=n||{}}init(){}formats(){return wu()}parse(){return wu()}format(){return wu()}add(){return wu()}diff(){return wu()}startOf(){return wu()}endOf(){return wu()}},Zre={_date:NT};function Xre(t,n,e,i){let{controller:r,data:o,_sorted:a}=t,s=r._cachedMeta.iScale,l=t.dataset&&t.dataset.options?t.dataset.options.spanGaps:null;if(s&&n===s.axis&&n!=="r"&&a&&o.length){let c=s._reversePixels?Tj:ks;if(i){if(r._sharedOptions){let d=o[0],m=typeof d.getRange=="function"&&d.getRange(n);if(m){let f=c(o,n,e-m),b=c(o,n,e+m);return{lo:f.lo,hi:b.hi}}}}else{let d=c(o,n,e);if(l){let{vScale:m}=r._cachedMeta,{_parsed:f}=t,b=f.slice(0,d.lo+1).reverse().findIndex(w=>!Et(w[m.axis]));d.lo-=Math.max(0,b);let v=f.slice(d.hi).findIndex(w=>!Et(w[m.axis]));d.hi+=Math.max(0,v)}return d}}return{lo:0,hi:o.length-1}}function Jg(t,n,e,i,r){let o=t.getSortedVisibleDatasetMetas(),a=e[n];for(let s=0,l=o.length;s{l[a]&&l[a](n[e],r)&&(o.push({element:l,datasetIndex:c,index:d}),s=s||l.inRange(n.x,n.y,r))}),i&&!s?[]:o}var ioe={evaluateInteractionItems:Jg,modes:{index(t,n,e,i){let r=Ic(n,t),o=e.axis||"x",a=e.includeInvisible||!1,s=e.intersect?kT(t,r,o,i,a):ST(t,r,o,!1,i,a),l=[];return s.length?(t.getSortedVisibleDatasetMetas().forEach(c=>{let d=s[0].index,m=c.data[d];m&&!m.skip&&l.push({element:m,datasetIndex:c.index,index:d})}),l):[]},dataset(t,n,e,i){let r=Ic(n,t),o=e.axis||"xy",a=e.includeInvisible||!1,s=e.intersect?kT(t,r,o,i,a):ST(t,r,o,!1,i,a);if(s.length>0){let l=s[0].datasetIndex,c=t.getDatasetMeta(l).data;s=[];for(let d=0;de.pos===n)}function s4(t,n){return t.filter(e=>eH.indexOf(e.pos)===-1&&e.box.axis===n)}function Wg(t,n){return t.sort((e,i)=>{let r=n?i:e,o=n?e:i;return r.weight===o.weight?r.index-o.index:r.weight-o.weight})}function noe(t){let n=[],e,i,r,o,a,s;for(e=0,i=(t||[]).length;ec.box.fullSize),!0),i=Wg($g(n,"left"),!0),r=Wg($g(n,"right")),o=Wg($g(n,"top"),!0),a=Wg($g(n,"bottom")),s=s4(n,"x"),l=s4(n,"y");return{fullSize:e,leftAndTop:i.concat(o),rightAndBottom:r.concat(l).concat(a).concat(s),chartArea:$g(n,"chartArea"),vertical:i.concat(r).concat(l),horizontal:o.concat(a).concat(s)}}function l4(t,n,e,i){return Math.max(t[e],n[e])+Math.max(t[i],n[i])}function tH(t,n){t.top=Math.max(t.top,n.top),t.left=Math.max(t.left,n.left),t.bottom=Math.max(t.bottom,n.bottom),t.right=Math.max(t.right,n.right)}function soe(t,n,e,i){let{pos:r,box:o}=e,a=t.maxPadding;if(!St(r)){e.size&&(t[r]-=e.size);let m=i[e.stack]||{size:0,count:1};m.size=Math.max(m.size,e.horizontal?o.height:o.width),e.size=m.size/m.count,t[r]+=e.size}o.getPadding&&tH(a,o.getPadding());let s=Math.max(0,n.outerWidth-l4(a,t,"left","right")),l=Math.max(0,n.outerHeight-l4(a,t,"top","bottom")),c=s!==t.w,d=l!==t.h;return t.w=s,t.h=l,e.horizontal?{same:c,other:d}:{same:d,other:c}}function loe(t){let n=t.maxPadding;function e(i){let r=Math.max(n[i]-t[i],0);return t[i]+=r,r}t.y+=e("top"),t.x+=e("left"),e("right"),e("bottom")}function coe(t,n){let e=n.maxPadding;function i(r){let o={left:0,top:0,right:0,bottom:0};return r.forEach(a=>{o[a]=Math.max(n[a],e[a])}),o}return i(t?["left","right"]:["top","bottom"])}function Yg(t,n,e,i){let r=[],o,a,s,l,c,d;for(o=0,a=t.length,c=0;o{typeof w.beforeLayout=="function"&&w.beforeLayout()});let d=l.reduce((w,x)=>x.box.options&&x.box.options.display===!1?w:w+1,0)||1,m=Object.freeze({outerWidth:n,outerHeight:e,padding:r,availableWidth:o,availableHeight:a,vBoxMaxWidth:o/2/d,hBoxMaxHeight:a/2}),f=Object.assign({},r);tH(f,sr(i));let b=Object.assign({maxPadding:f,w:o,h:a,x:r.left,y:r.top},r),v=ooe(l.concat(c),m);Yg(s.fullSize,b,m,v),Yg(l,b,m,v),Yg(c,b,m,v)&&Yg(l,b,m,v),loe(b),c4(s.leftAndTop,b,m,v),b.x+=b.w,b.y+=b.h,c4(s.rightAndBottom,b,m,v),t.chartArea={left:b.left,top:b.top,right:b.left+b.w,bottom:b.top+b.h,height:b.h,width:b.w},ii(s.chartArea,w=>{let x=w.box;Object.assign(x,t.chartArea),x.update(b.w,b.h,{left:0,top:0,right:0,bottom:0})})}},aC=class{acquireContext(n,e){}releaseContext(n){return!1}addEventListener(n,e,i){}removeEventListener(n,e,i){}getDevicePixelRatio(){return 1}getMaximumSize(n,e,i,r){return e=Math.max(0,e||n.width),i=i||n.height,{width:e,height:Math.max(0,r?Math.floor(e/r):i)}}isAttached(n){return!0}updateConfig(n){}},LT=class extends aC{acquireContext(n){return n&&n.getContext&&n.getContext("2d")||null}updateConfig(n){n.options.animation=!1}},nC="$chartjs",doe={touchstart:"mousedown",touchmove:"mousemove",touchend:"mouseup",pointerenter:"mouseenter",pointerdown:"mousedown",pointermove:"mousemove",pointerup:"mouseup",pointerleave:"mouseout",pointerout:"mouseout"},d4=t=>t===null||t==="";function uoe(t,n){let e=t.style,i=t.getAttribute("height"),r=t.getAttribute("width");if(t[nC]={initial:{height:i,width:r,style:{display:e.display,height:e.height,width:e.width}}},e.display=e.display||"block",e.boxSizing=e.boxSizing||"border-box",d4(r)){let o=_T(t,"width");o!==void 0&&(t.width=o)}if(d4(i))if(t.style.height==="")t.height=t.width/(n||2);else{let o=_T(t,"height");o!==void 0&&(t.height=o)}return t}var iH=Gj?{passive:!0}:!1;function moe(t,n,e){t&&t.addEventListener(n,e,iH)}function hoe(t,n,e){t&&t.canvas&&t.canvas.removeEventListener(n,e,iH)}function poe(t,n){let e=doe[t.type]||t.type,{x:i,y:r}=Ic(t,n);return{type:e,chart:n,native:t,x:i!==void 0?i:null,y:r!==void 0?r:null}}function sC(t,n){for(let e of t)if(e===n||e.contains(n))return!0}function foe(t,n,e){let i=t.canvas,r=new MutationObserver(o=>{let a=!1;for(let s of o)a=a||sC(s.addedNodes,i),a=a&&!sC(s.removedNodes,i);a&&e()});return r.observe(document,{childList:!0,subtree:!0}),r}function goe(t,n,e){let i=t.canvas,r=new MutationObserver(o=>{let a=!1;for(let s of o)a=a||sC(s.removedNodes,i),a=a&&!sC(s.addedNodes,i);a&&e()});return r.observe(document,{childList:!0,subtree:!0}),r}var Kg=new Map,u4=0;function nH(){let t=window.devicePixelRatio;t!==u4&&(u4=t,Kg.forEach((n,e)=>{e.currentDevicePixelRatio!==t&&n()}))}function _oe(t,n){Kg.size||window.addEventListener("resize",nH),Kg.set(t,n)}function boe(t){Kg.delete(t),Kg.size||window.removeEventListener("resize",nH)}function voe(t,n,e){let i=t.canvas,r=i&&Qx(i);if(!r)return;let o=rT((s,l)=>{let c=r.clientWidth;e(s,l),c{let l=s[0],c=l.contentRect.width,d=l.contentRect.height;c===0&&d===0||o(c,d)});return a.observe(r),_oe(t,o),a}function TT(t,n,e){e&&e.disconnect(),n==="resize"&&boe(t)}function yoe(t,n,e){let i=t.canvas,r=rT(o=>{t.ctx!==null&&e(poe(o,t))},t);return moe(i,n,r),r}var VT=class extends aC{acquireContext(n,e){let i=n&&n.getContext&&n.getContext("2d");return i&&i.canvas===n?(uoe(n,e),i):null}releaseContext(n){let e=n.canvas;if(!e[nC])return!1;let i=e[nC].initial;["height","width"].forEach(o=>{let a=i[o];Et(a)?e.removeAttribute(o):e.setAttribute(o,a)});let r=i.style||{};return Object.keys(r).forEach(o=>{e.style[o]=r[o]}),e.width=e.width,delete e[nC],!0}addEventListener(n,e,i){this.removeEventListener(n,e);let r=n.$proxies||(n.$proxies={}),a={attach:foe,detach:goe,resize:voe}[e]||yoe;r[e]=a(n,e,i)}removeEventListener(n,e){let i=n.$proxies||(n.$proxies={}),r=i[e];if(!r)return;({attach:TT,detach:TT,resize:TT}[e]||hoe)(n,e,r),i[e]=void 0}getDevicePixelRatio(){return window.devicePixelRatio}getMaximumSize(n,e,i,r){return Wj(n,e,i,r)}isAttached(n){let e=n&&Qx(n);return!!(e&&e.isConnected)}};function xoe(t){return!Yx()||typeof OffscreenCanvas<"u"&&t instanceof OffscreenCanvas?LT:VT}var ja=class{static defaults={};static defaultRoutes=void 0;x;y;active=!1;options;$animations;tooltipPosition(n){let{x:e,y:i}=this.getProps(["x","y"],n);return{x:e,y:i}}hasValue(){return xu(this.x)&&xu(this.y)}getProps(n,e){let i=this.$animations;if(!e||!i)return this;let r={};return n.forEach(o=>{r[o]=i[o]&&i[o].active()?i[o]._to:this[o]}),r}};function Coe(t,n){let e=t.options.ticks,i=woe(t),r=Math.min(e.maxTicksLimit||i,i),o=e.major.enabled?Eoe(n):[],a=o.length,s=o[0],l=o[a-1],c=[];if(a>r)return Moe(n,c,o,a/r),c;let d=Doe(o,n,r);if(a>0){let m,f,b=a>1?Math.round((l-s)/(a-1)):null;for(Xx(n,c,d,Et(b)?0:s-b,s),m=0,f=a-1;mr)return l}return Math.max(r,1)}function Eoe(t){let n=[],e,i;for(e=0,i=t.length;et==="left"?"right":t==="right"?"left":t,m4=(t,n,e)=>n==="top"||n==="left"?t[n]+e:t[n]-e,h4=(t,n)=>Math.min(n||t,t);function p4(t,n){let e=[],i=t.length/n,r=t.length,o=0;for(;oa+s)))return l}function Ioe(t,n){ii(t,e=>{let i=e.gc,r=i.length/2,o;if(r>n){for(o=0;oi?i:e,i=r&&e>i?e:i,{min:no(e,no(i,e)),max:no(i,no(e,i))}}getPadding(){return{left:this.paddingLeft||0,top:this.paddingTop||0,right:this.paddingRight||0,bottom:this.paddingBottom||0}}getTicks(){return this.ticks}getLabels(){let n=this.chart.data;return this.options.labels||(this.isHorizontal()?n.xLabels:n.yLabels)||n.labels||[]}getLabelItems(n=this.chart.chartArea){return this._labelItems||(this._labelItems=this._computeLabelItems(n))}beforeLayout(){this._cache={},this._dataLimitsCached=!1}beforeUpdate(){yi(this.options.beforeUpdate,[this])}update(n,e,i){let{beginAtZero:r,grace:o,ticks:a}=this.options,s=a.sampleSize;this.beforeUpdate(),this.maxWidth=n,this.maxHeight=e,this._margins=i=Object.assign({left:0,right:0,top:0,bottom:0},i),this.ticks=null,this._labelSizes=null,this._gridLineItems=null,this._labelItems=null,this.beforeSetDimensions(),this.setDimensions(),this.afterSetDimensions(),this._maxLength=this.isHorizontal()?this.width+i.left+i.right:this.height+i.top+i.bottom,this._dataLimitsCached||(this.beforeDataLimits(),this.determineDataLimits(),this.afterDataLimits(),this._range=Bj(this,o,r),this._dataLimitsCached=!0),this.beforeBuildTicks(),this.ticks=this.buildTicks()||[],this.afterBuildTicks();let l=s=o||i<=1||!this.isHorizontal()){this.labelRotation=r;return}let d=this._getLabelSizes(),m=d.widest.width,f=d.highest.height,b=Dn(this.chart.width-m,0,this.maxWidth);s=n.offset?this.maxWidth/i:b/(i-1),m+6>s&&(s=b/(i-(n.offset?.5:1)),l=this.maxHeight-Gg(n.grid)-e.padding-f4(n.title,this.chart.options.font),c=Math.sqrt(m*m+f*f),a=Hx(Math.min(Math.asin(Dn((d.highest.height+6)/s,-1,1)),Math.asin(Dn(l/c,-1,1))-Math.asin(Dn(f/c,-1,1)))),a=Math.max(r,Math.min(o,a))),this.labelRotation=a}afterCalculateLabelRotation(){yi(this.options.afterCalculateLabelRotation,[this])}afterAutoSkip(){}beforeFit(){yi(this.options.beforeFit,[this])}fit(){let n={width:0,height:0},{chart:e,options:{ticks:i,title:r,grid:o}}=this,a=this._isVisible(),s=this.isHorizontal();if(a){let l=f4(r,e.options.font);if(s?(n.width=this.maxWidth,n.height=Gg(o)+l):(n.height=this.maxHeight,n.width=Gg(o)+l),i.display&&this.ticks.length){let{first:c,last:d,widest:m,highest:f}=this._getLabelSizes(),b=i.padding*2,v=ra(this.labelRotation),w=Math.cos(v),x=Math.sin(v);if(s){let D=i.mirror?0:x*m.width+w*f.height;n.height=Math.min(this.maxHeight,n.height+D+b)}else{let D=i.mirror?0:w*m.width+x*f.height;n.width=Math.min(this.maxWidth,n.width+D+b)}this._calculatePadding(c,d,x,w)}}this._handleMargins(),s?(this.width=this._length=e.width-this._margins.left-this._margins.right,this.height=n.height):(this.width=n.width,this.height=this._length=e.height-this._margins.top-this._margins.bottom)}_calculatePadding(n,e,i,r){let{ticks:{align:o,padding:a},position:s}=this.options,l=this.labelRotation!==0,c=s!=="top"&&this.axis==="x";if(this.isHorizontal()){let d=this.getPixelForTick(0)-this.left,m=this.right-this.getPixelForTick(this.ticks.length-1),f=0,b=0;l?c?(f=r*n.width,b=i*e.height):(f=i*n.height,b=r*e.width):o==="start"?b=e.width:o==="end"?f=n.width:o!=="inner"&&(f=n.width/2,b=e.width/2),this.paddingLeft=Math.max((f-d+a)*this.width/(this.width-d),0),this.paddingRight=Math.max((b-m+a)*this.width/(this.width-m),0)}else{let d=e.height/2,m=n.height/2;o==="start"?(d=0,m=n.height):o==="end"&&(d=e.height,m=0),this.paddingTop=d+a,this.paddingBottom=m+a}}_handleMargins(){this._margins&&(this._margins.left=Math.max(this.paddingLeft,this._margins.left),this._margins.top=Math.max(this.paddingTop,this._margins.top),this._margins.right=Math.max(this.paddingRight,this._margins.right),this._margins.bottom=Math.max(this.paddingBottom,this._margins.bottom))}afterFit(){yi(this.options.afterFit,[this])}isHorizontal(){let{axis:n,position:e}=this.options;return e==="top"||e==="bottom"||n==="x"}isFullSize(){return this.options.fullSize}_convertTicksToLabels(n){this.beforeTickToLabelConversion(),this.generateTickLabels(n);let e,i;for(e=0,i=n.length;e({width:a[Ve]||0,height:s[Ve]||0});return{first:be(0),last:be(e-1),widest:be(re),highest:be(Ee),widths:a,heights:s}}getLabelForValue(n){return n}getPixelForValue(n,e){return NaN}getValueForPixel(n){}getPixelForTick(n){let e=this.ticks;return n<0||n>e.length-1?null:this.getPixelForValue(e[n].value)}getPixelForDecimal(n){this._reversePixels&&(n=1-n);let e=this._startPixel+n*this._length;return Sj(this._alignToPixels?kc(this.chart,e,0):e)}getDecimalForPixel(n){let e=(n-this._startPixel)/this._length;return this._reversePixels?1-e:e}getBasePixel(){return this.getPixelForValue(this.getBaseValue())}getBaseValue(){let{min:n,max:e}=this;return n<0&&e<0?e:n>0&&e>0?n:0}getContext(n){let e=this.ticks||[];if(n>=0&&ns*r?s/i:l/r:l*r0}_computeGridLineItems(n){let e=this.axis,i=this.chart,r=this.options,{grid:o,position:a,border:s}=r,l=o.offset,c=this.isHorizontal(),m=this.ticks.length+(l?1:0),f=Gg(o),b=[],v=s.setContext(this.getContext()),w=v.display?v.width:0,x=w/2,D=function(Pi){return kc(i,Pi,w)},P,W,Z,K,re,Ee,be,Ve,yt,bt,It,$n;if(a==="top")P=D(this.bottom),Ee=this.bottom-f,Ve=P-x,bt=D(n.top)+x,$n=n.bottom;else if(a==="bottom")P=D(this.top),bt=n.top,$n=D(n.bottom)-x,Ee=P+x,Ve=this.top+f;else if(a==="left")P=D(this.right),re=this.right-f,be=P-x,yt=D(n.left)+x,It=n.right;else if(a==="right")P=D(this.left),yt=n.left,It=D(n.right)-x,re=P+x,be=this.left+f;else if(e==="x"){if(a==="center")P=D((n.top+n.bottom)/2+.5);else if(St(a)){let Pi=Object.keys(a)[0],en=a[Pi];P=D(this.chart.scales[Pi].getPixelForValue(en))}bt=n.top,$n=n.bottom,Ee=P+x,Ve=Ee+f}else if(e==="y"){if(a==="center")P=D((n.left+n.right)/2);else if(St(a)){let Pi=Object.keys(a)[0],en=a[Pi];P=D(this.chart.scales[Pi].getPixelForValue(en))}re=P-x,be=re-f,yt=n.left,It=n.right}let lo=st(r.ticks.maxTicksLimit,m),ui=Math.max(1,Math.ceil(m/lo));for(W=0;W0&&(Jc-=Xc/2);break}D_={left:Jc,top:mp,width:Xc+Pu.width,height:up+Pu.height,color:ui.backdropColor}}x.push({label:Z,font:Ve,textOffset:It,options:{rotation:w,color:en,strokeColor:ma,strokeWidth:lr,textAlign:Ru,textBaseline:$n,translation:[K,re],backdrop:D_}})}return x}_getXAxisLabelAlignment(){let{position:n,ticks:e}=this.options;if(-ra(this.labelRotation))return n==="top"?"left":"right";let r="center";return e.align==="start"?r="left":e.align==="end"?r="right":e.align==="inner"&&(r="inner"),r}_getYAxisLabelAlignment(n){let{position:e,ticks:{crossAlign:i,mirror:r,padding:o}}=this.options,a=this._getLabelSizes(),s=n+o,l=a.widest.width,c,d;return e==="left"?r?(d=this.right+o,i==="near"?c="left":i==="center"?(c="center",d+=l/2):(c="right",d+=l)):(d=this.right-s,i==="near"?c="right":i==="center"?(c="center",d-=l/2):(c="left",d=this.left)):e==="right"?r?(d=this.left+o,i==="near"?c="right":i==="center"?(c="center",d-=l/2):(c="left",d-=l)):(d=this.left+s,i==="near"?c="left":i==="center"?(c="center",d+=l/2):(c="right",d=this.right)):c="right",{textAlign:c,x:d}}_computeLabelArea(){if(this.options.ticks.mirror)return;let n=this.chart,e=this.options.position;if(e==="left"||e==="right")return{top:0,left:this.left,bottom:n.height,right:this.right};if(e==="top"||e==="bottom")return{top:this.top,left:0,bottom:this.bottom,right:n.width}}drawBackground(){let{ctx:n,options:{backgroundColor:e},left:i,top:r,width:o,height:a}=this;e&&(n.save(),n.fillStyle=e,n.fillRect(i,r,o,a),n.restore())}getLineWidthForValue(n){let e=this.options.grid;if(!this._isVisible()||!e.display)return 0;let r=this.ticks.findIndex(o=>o.value===n);return r>=0?e.setContext(this.getContext(r)).lineWidth:0}drawGrid(n){let e=this.options.grid,i=this.ctx,r=this._gridLineItems||(this._gridLineItems=this._computeGridLineItems(n)),o,a,s=(l,c,d)=>{!d.width||!d.color||(i.save(),i.lineWidth=d.width,i.strokeStyle=d.color,i.setLineDash(d.borderDash||[]),i.lineDashOffset=d.borderDashOffset,i.beginPath(),i.moveTo(l.x,l.y),i.lineTo(c.x,c.y),i.stroke(),i.restore())};if(e.display)for(o=0,a=r.length;o{this.draw(o)}}]:[{z:i,draw:o=>{this.drawBackground(),this.drawGrid(o),this.drawTitle()}},{z:r,draw:()=>{this.drawBorder()}},{z:e,draw:o=>{this.drawLabels(o)}}]}getMatchingVisibleMetas(n){let e=this.chart.getSortedVisibleDatasetMetas(),i=this.axis+"AxisID",r=[],o,a;for(o=0,a=e.length;o{let i=e.split("."),r=i.pop(),o=[t].concat(i).join("."),a=n[e].split("."),s=a.pop(),l=a.join(".");xi.route(o,r,l,s)})}function Loe(t){return"id"in t&&"defaults"in t}var BT=class{constructor(){this.controllers=new Uh(Oc,"datasets",!0),this.elements=new Uh(ja,"elements"),this.plugins=new Uh(Object,"plugins"),this.scales=new Uh(Eu,"scales"),this._typedRegistries=[this.controllers,this.scales,this.elements]}add(...n){this._each("register",n)}remove(...n){this._each("unregister",n)}addControllers(...n){this._each("register",n,this.controllers)}addElements(...n){this._each("register",n,this.elements)}addPlugins(...n){this._each("register",n,this.plugins)}addScales(...n){this._each("register",n,this.scales)}getController(n){return this._get(n,this.controllers,"controller")}getElement(n){return this._get(n,this.elements,"element")}getPlugin(n){return this._get(n,this.plugins,"plugin")}getScale(n){return this._get(n,this.scales,"scale")}removeControllers(...n){this._each("unregister",n,this.controllers)}removeElements(...n){this._each("unregister",n,this.elements)}removePlugins(...n){this._each("unregister",n,this.plugins)}removeScales(...n){this._each("unregister",n,this.scales)}_each(n,e,i){[...e].forEach(r=>{let o=i||this._getRegistryForType(r);i||o.isForType(r)||o===this.plugins&&r.id?this._exec(n,o,r):ii(r,a=>{let s=i||this._getRegistryForType(a);this._exec(n,s,a)})})}_exec(n,e,i){let r=jx(n);yi(i["before"+r],[],i),e[n](i),yi(i["after"+r],[],i)}_getRegistryForType(n){for(let e=0;eo.filter(s=>!a.some(l=>s.plugin.id===l.plugin.id));this._notify(r(e,i),n,"stop"),this._notify(r(i,e),n,"start")}};function Voe(t){let n={},e=[],i=Object.keys(Os.plugins.items);for(let o=0;o1&&g4(t[0].toLowerCase());if(i)return i}throw new Error(`Cannot determine type of '${t}' axis. Please provide 'axis' or 'position' option.`)}function _4(t,n,e){if(e[n+"AxisID"]===t)return{axis:n}}function Woe(t,n){if(n.data&&n.data.datasets){let e=n.data.datasets.filter(i=>i.xAxisID===t||i.yAxisID===t);if(e.length)return _4(t,"x",e[0])||_4(t,"y",e[0])}return{}}function Goe(t,n){let e=Mc[t.type]||{scales:{}},i=n.scales||{},r=HT(t.type,n),o=Object.create(null);return Object.keys(i).forEach(a=>{let s=i[a];if(!St(s))return console.error(`Invalid scale configuration for scale: ${a}`);if(s._proxy)return console.warn(`Ignoring resolver passed as options for scale: ${a}`);let l=zT(a,s,Woe(a,t),xi.scales[s.type]),c=Uoe(l,r),d=e.scales||{};o[a]=Fh(Object.create(null),[{axis:l},s,d[l],d[c]])}),t.data.datasets.forEach(a=>{let s=a.type||t.type,l=a.indexAxis||HT(s,n),d=(Mc[s]||{}).scales||{};Object.keys(d).forEach(m=>{let f=zoe(m,l),b=a[f+"AxisID"]||f;o[b]=o[b]||Object.create(null),Fh(o[b],[{axis:f},i[b],d[m]])})}),Object.keys(o).forEach(a=>{let s=o[a];Fh(s,[xi.scales[s.type],xi.scale])}),o}function rH(t){let n=t.options||(t.options={});n.plugins=st(n.plugins,{}),n.scales=Goe(t,n)}function oH(t){return t=t||{},t.datasets=t.datasets||[],t.labels=t.labels||[],t}function qoe(t){return t=t||{},t.data=oH(t.data),rH(t),t}var b4=new Map,aH=new Set;function Jx(t,n){let e=b4.get(t);return e||(e=n(),b4.set(t,e),aH.add(e)),e}var qg=(t,n,e)=>{let i=_l(n,e);i!==void 0&&t.add(i)},UT=class{constructor(n){this._config=qoe(n),this._scopeCache=new Map,this._resolverCache=new Map}get platform(){return this._config.platform}get type(){return this._config.type}set type(n){this._config.type=n}get data(){return this._config.data}set data(n){this._config.data=oH(n)}get options(){return this._config.options}set options(n){this._config.options=n}get plugins(){return this._config.plugins}update(){let n=this._config;this.clearCache(),rH(n)}clearCache(){this._scopeCache.clear(),this._resolverCache.clear()}datasetScopeKeys(n){return Jx(n,()=>[[`datasets.${n}`,""]])}datasetAnimationScopeKeys(n,e){return Jx(`${n}.transition.${e}`,()=>[[`datasets.${n}.transitions.${e}`,`transitions.${e}`],[`datasets.${n}`,""]])}datasetElementScopeKeys(n,e){return Jx(`${n}-${e}`,()=>[[`datasets.${n}.elements.${e}`,`datasets.${n}`,`elements.${e}`,""]])}pluginScopeKeys(n){let e=n.id,i=this.type;return Jx(`${i}-plugin-${e}`,()=>[[`plugins.${e}`,...n.additionalOptionScopes||[]]])}_cachedScopes(n,e){let i=this._scopeCache,r=i.get(n);return(!r||e)&&(r=new Map,i.set(n,r)),r}getOptionScopes(n,e,i){let{options:r,type:o}=this,a=this._cachedScopes(n,i),s=a.get(e);if(s)return s;let l=new Set;e.forEach(d=>{n&&(l.add(n),d.forEach(m=>qg(l,n,m))),d.forEach(m=>qg(l,r,m)),d.forEach(m=>qg(l,Mc[o]||{},m)),d.forEach(m=>qg(l,xi,m)),d.forEach(m=>qg(l,$x,m))});let c=Array.from(l);return c.length===0&&c.push(Object.create(null)),aH.has(e)&&a.set(e,c),c}chartOptionScopes(){let{options:n,type:e}=this;return[n,Mc[e]||{},xi.datasets[e]||{},{type:e},xi,$x]}resolveNamedOptions(n,e,i,r=[""]){let o={$shared:!0},{resolver:a,subPrefixes:s}=v4(this._resolverCache,n,r),l=a;if(Qoe(a,e)){o.$shared=!1,i=fl(i)?i():i;let c=this.createResolver(n,i,s);l=yu(a,i,c)}for(let c of e)o[c]=l[c];return o}createResolver(n,e,i=[""],r){let{resolver:o}=v4(this._resolverCache,n,i);return St(e)?yu(o,e,void 0,r):o}};function v4(t,n,e){let i=t.get(n);i||(i=new Map,t.set(n,i));let r=e.join(),o=i.get(r);return o||(o={resolver:qx(n,e),subPrefixes:e.filter(s=>!s.toLowerCase().includes("hover"))},i.set(r,o)),o}var Yoe=t=>St(t)&&Object.getOwnPropertyNames(t).some(n=>fl(t[n]));function Qoe(t,n){let{isScriptable:e,isIndexable:i}=mT(t);for(let r of n){let o=e(r),a=i(r),s=(a||o)&&t[r];if(o&&(fl(s)||Yoe(s))||a&&Ei(s))return!0}return!1}var Koe="4.5.1",Zoe=["top","bottom","left","right","chartArea"];function y4(t,n){return t==="top"||t==="bottom"||Zoe.indexOf(t)===-1&&n==="x"}function x4(t,n){return function(e,i){return e[t]===i[t]?e[n]-i[n]:e[t]-i[t]}}function C4(t){let n=t.chart,e=n.options.animation;n.notifyPlugins("afterRender"),yi(e&&e.onComplete,[t],n)}function Xoe(t){let n=t.chart,e=n.options.animation;yi(e&&e.onProgress,[t],n)}function sH(t){return Yx()&&typeof t=="string"?t=document.getElementById(t):t&&t.length&&(t=t[0]),t&&t.canvas&&(t=t.canvas),t}var rC={},w4=t=>{let n=sH(t);return Object.values(rC).filter(e=>e.canvas===n).pop()};function Joe(t,n,e){let i=Object.keys(t);for(let r of i){let o=+r;if(o>=n){let a=t[r];delete t[r],(e>0||o>n)&&(t[o+e]=a)}}}function eae(t,n,e,i){return!e||t.type==="mouseout"?null:i?n:t}var uC=(()=>{class t{static defaults=xi;static instances=rC;static overrides=Mc;static registry=Os;static version=Koe;static getChart=w4;static register(...e){Os.add(...e),D4()}static unregister(...e){Os.remove(...e),D4()}constructor(e,i){let r=this.config=new UT(i),o=sH(e),a=w4(o);if(a)throw new Error("Canvas is already in use. Chart with ID '"+a.id+"' must be destroyed before the canvas with ID '"+a.canvas.id+"' can be reused.");let s=r.createResolver(r.chartOptionScopes(),this.getContext());this.platform=new(r.platform||xoe(o)),this.platform.updateConfig(r);let l=this.platform.acquireContext(o,s.aspectRatio),c=l&&l.canvas,d=c&&c.height,m=c&&c.width;if(this.id=Cj(),this.ctx=l,this.canvas=c,this.width=m,this.height=d,this._options=s,this._aspectRatio=this.aspectRatio,this._layers=[],this._metasets=[],this._stacks=void 0,this.boxes=[],this.currentDevicePixelRatio=void 0,this.chartArea=void 0,this._active=[],this._lastEvent=void 0,this._listeners={},this._responsiveListeners=void 0,this._sortedMetasets=[],this.scales={},this._plugins=new jT,this.$proxies={},this._hiddenIndices={},this.attached=!1,this._animationsDisabled=void 0,this.$context=void 0,this._doResize=Rj(f=>this.update(f),s.resizeDelay||0),this._dataChanges=[],rC[this.id]=this,!l||!c){console.error("Failed to create chart: can't acquire context from the given item");return}vl.listen(this,"complete",C4),vl.listen(this,"progress",Xoe),this._initialize(),this.attached&&this.update()}get aspectRatio(){let{options:{aspectRatio:e,maintainAspectRatio:i},width:r,height:o,_aspectRatio:a}=this;return Et(e)?i&&a?a:o?r/o:null:e}get data(){return this.config.data}set data(e){this.config.data=e}get options(){return this._options}set options(e){this.config.options=e}get registry(){return Os}_initialize(){return this.notifyPlugins("beforeInit"),this.options.responsive?this.resize():gT(this,this.options.devicePixelRatio),this.bindEvents(),this.notifyPlugins("afterInit"),this}clear(){return cT(this.canvas,this.ctx),this}stop(){return vl.stop(this),this}resize(e,i){vl.running(this)?this._resizeBeforeDraw={width:e,height:i}:this._resize(e,i)}_resize(e,i){let r=this.options,o=this.canvas,a=r.maintainAspectRatio&&this.aspectRatio,s=this.platform.getMaximumSize(o,e,i,a),l=r.devicePixelRatio||this.platform.getDevicePixelRatio(),c=this.width?"resize":"attach";this.width=s.width,this.height=s.height,this._aspectRatio=this.aspectRatio,gT(this,l,!0)&&(this.notifyPlugins("resize",{size:s}),yi(r.onResize,[this,s],this),this.attached&&this._doResize(c)&&this.render())}ensureScalesHaveIDs(){let i=this.options.scales||{};ii(i,(r,o)=>{r.id=o})}buildOrUpdateScales(){let e=this.options,i=e.scales,r=this.scales,o=Object.keys(r).reduce((s,l)=>(s[l]=!1,s),{}),a=[];i&&(a=a.concat(Object.keys(i).map(s=>{let l=i[s],c=zT(s,l),d=c==="r",m=c==="x";return{options:l,dposition:d?"chartArea":m?"bottom":"left",dtype:d?"radialLinear":m?"category":"linear"}}))),ii(a,s=>{let l=s.options,c=l.id,d=zT(c,l),m=st(l.type,s.dtype);(l.position===void 0||y4(l.position,d)!==y4(s.dposition))&&(l.position=s.dposition),o[c]=!0;let f=null;if(c in r&&r[c].type===m)f=r[c];else{let b=Os.getScale(m);f=new b({id:c,type:m,ctx:this.ctx,chart:this}),r[f.id]=f}f.init(l,e)}),ii(o,(s,l)=>{s||delete r[l]}),ii(r,s=>{Dr.configure(this,s,s.options),Dr.addBox(this,s)})}_updateMetasets(){let e=this._metasets,i=this.data.datasets.length,r=e.length;if(e.sort((o,a)=>o.index-a.index),r>i){for(let o=i;oi.length&&delete this._stacks,e.forEach((r,o)=>{i.filter(a=>a===r._dataset).length===0&&this._destroyDatasetMeta(o)})}buildOrUpdateControllers(){let e=[],i=this.data.datasets,r,o;for(this._removeUnreferencedMetasets(),r=0,o=i.length;r{this.getDatasetMeta(i).controller.reset()},this)}reset(){this._resetElements(),this.notifyPlugins("reset")}update(e){let i=this.config;i.update();let r=this._options=i.createResolver(i.chartOptionScopes(),this.getContext()),o=this._animationsDisabled=!r.animation;if(this._updateScales(),this._checkEventBindings(),this._updateHiddenIndices(),this._plugins.invalidate(),this.notifyPlugins("beforeUpdate",{mode:e,cancelable:!0})===!1)return;let a=this.buildOrUpdateControllers();this.notifyPlugins("beforeElementsUpdate");let s=0;for(let d=0,m=this.data.datasets.length;d{d.reset()}),this._updateDatasets(e),this.notifyPlugins("afterUpdate",{mode:e}),this._layers.sort(x4("z","_idx"));let{_active:l,_lastEvent:c}=this;c?this._eventHandler(c,!0):l.length&&this._updateHoverStyles(l,l,!0),this.render()}_updateScales(){ii(this.scales,e=>{Dr.removeBox(this,e)}),this.ensureScalesHaveIDs(),this.buildOrUpdateScales()}_checkEventBindings(){let e=this.options,i=new Set(Object.keys(this._listeners)),r=new Set(e.events);(!KS(i,r)||!!this._responsiveListeners!==e.responsive)&&(this.unbindEvents(),this.bindEvents())}_updateHiddenIndices(){let{_hiddenIndices:e}=this,i=this._getUniformDataChanges()||[];for(let{method:r,start:o,count:a}of i){let s=r==="_removeElements"?-a:a;Joe(e,o,s)}}_getUniformDataChanges(){let e=this._dataChanges;if(!e||!e.length)return;this._dataChanges=[];let i=this.data.datasets.length,r=a=>new Set(e.filter(s=>s[0]===a).map((s,l)=>l+","+s.splice(1).join(","))),o=r(0);for(let a=1;aa.split(",")).map(a=>({method:a[1],start:+a[2],count:+a[3]}))}_updateLayout(e){if(this.notifyPlugins("beforeLayout",{cancelable:!0})===!1)return;Dr.update(this,this.width,this.height,e);let i=this.chartArea,r=i.width<=0||i.height<=0;this._layers=[],ii(this.boxes,o=>{r&&o.position==="chartArea"||(o.configure&&o.configure(),this._layers.push(...o._layers()))},this),this._layers.forEach((o,a)=>{o._idx=a}),this.notifyPlugins("afterLayout")}_updateDatasets(e){if(this.notifyPlugins("beforeDatasetsUpdate",{mode:e,cancelable:!0})!==!1){for(let i=0,r=this.data.datasets.length;i=0;--i)this._drawDataset(e[i]);this.notifyPlugins("afterDatasetsDraw")}_drawDataset(e){let i=this.ctx,r={meta:e,index:e.index,cancelable:!0},o=CT(this,e);this.notifyPlugins("beforeDatasetDraw",r)!==!1&&(o&&Hg(i,o),e.controller.draw(),o&&zg(i),r.cancelable=!1,this.notifyPlugins("afterDatasetDraw",r))}isPointInArea(e){return Ss(e,this.chartArea,this._minPadding)}getElementsAtEventForMode(e,i,r,o){let a=ioe.modes[i];return typeof a=="function"?a(this,e,r,o):[]}getDatasetMeta(e){let i=this.data.datasets[e],r=this._metasets,o=r.filter(a=>a&&a._dataset===i).pop();return o||(o={type:null,data:[],dataset:null,controller:null,hidden:null,xAxisID:null,yAxisID:null,order:i&&i.order||0,index:e,_dataset:i,_parsed:[],_sorted:!1},r.push(o)),o}getContext(){return this.$context||(this.$context=bl(null,{chart:this,type:"chart"}))}getVisibleDatasetCount(){return this.getSortedVisibleDatasetMetas().length}isDatasetVisible(e){let i=this.data.datasets[e];if(!i)return!1;let r=this.getDatasetMeta(e);return typeof r.hidden=="boolean"?!r.hidden:!i.hidden}setDatasetVisibility(e,i){let r=this.getDatasetMeta(e);r.hidden=!i}toggleDataVisibility(e){this._hiddenIndices[e]=!this._hiddenIndices[e]}getDataVisibility(e){return!this._hiddenIndices[e]}_updateVisibility(e,i,r){let o=r?"show":"hide",a=this.getDatasetMeta(e),s=a.controller._resolveAnimations(void 0,o);Nh(i)?(a.data[i].hidden=!r,this.update()):(this.setDatasetVisibility(e,r),s.update(a,{visible:r}),this.update(l=>l.datasetIndex===e?o:void 0))}hide(e,i){this._updateVisibility(e,i,!1)}show(e,i){this._updateVisibility(e,i,!0)}_destroyDatasetMeta(e){let i=this._metasets[e];i&&i.controller&&i.controller._destroy(),delete this._metasets[e]}_stop(){let e,i;for(this.stop(),vl.remove(this),e=0,i=this.data.datasets.length;e{i.addEventListener(this,a,s),e[a]=s},o=(a,s,l)=>{a.offsetX=s,a.offsetY=l,this._eventHandler(a)};ii(this.options.events,a=>r(a,o))}bindResponsiveEvents(){this._responsiveListeners||(this._responsiveListeners={});let e=this._responsiveListeners,i=this.platform,r=(c,d)=>{i.addEventListener(this,c,d),e[c]=d},o=(c,d)=>{e[c]&&(i.removeEventListener(this,c,d),delete e[c])},a=(c,d)=>{this.canvas&&this.resize(c,d)},s,l=()=>{o("attach",l),this.attached=!0,this.resize(),r("resize",a),r("detach",s)};s=()=>{this.attached=!1,o("resize",a),this._stop(),this._resize(0,0),r("attach",l)},i.isAttached(this.canvas)?l():s()}unbindEvents(){ii(this._listeners,(e,i)=>{this.platform.removeEventListener(this,i,e)}),this._listeners={},ii(this._responsiveListeners,(e,i)=>{this.platform.removeEventListener(this,i,e)}),this._responsiveListeners=void 0}updateHoverStyle(e,i,r){let o=r?"set":"remove",a,s,l,c;for(i==="dataset"&&(a=this.getDatasetMeta(e[0].datasetIndex),a.controller["_"+o+"DatasetHoverStyle"]()),l=0,c=e.length;l{let l=this.getDatasetMeta(a);if(!l)throw new Error("No dataset found at index "+a);return{datasetIndex:a,element:l.data[s],index:s}});!Bg(r,i)&&(this._active=r,this._lastEvent=null,this._updateHoverStyles(r,i))}notifyPlugins(e,i,r){return this._plugins.notify(this,e,i,r)}isPluginEnabled(e){return this._plugins._cache.filter(i=>i.plugin.id===e).length===1}_updateHoverStyles(e,i,r){let o=this.options.hover,a=(c,d)=>c.filter(m=>!d.some(f=>m.datasetIndex===f.datasetIndex&&m.index===f.index)),s=a(i,e),l=r?e:a(e,i);s.length&&this.updateHoverStyle(s,o.mode,!1),l.length&&o.mode&&this.updateHoverStyle(l,o.mode,!0)}_eventHandler(e,i){let r={event:e,replay:i,cancelable:!0,inChartArea:this.isPointInArea(e)},o=s=>(s.options.events||this.options.events).includes(e.native.type);if(this.notifyPlugins("beforeEvent",r,o)===!1)return;let a=this._handleEvent(e,i,r.inChartArea);return r.cancelable=!1,this.notifyPlugins("afterEvent",r,o),(a||r.changed)&&this.render(),this}_handleEvent(e,i,r){let{_active:o=[],options:a}=this,s=i,l=this._getActiveElements(e,o,r,s),c=Ej(e),d=eae(e,this._lastEvent,r,c);r&&(this._lastEvent=null,yi(a.onHover,[e,l,this],this),c&&yi(a.onClick,[e,l,this],this));let m=!Bg(l,o);return(m||i)&&(this._active=l,this._updateHoverStyles(l,o,i)),this._lastEvent=d,m}_getActiveElements(e,i,r,o){if(e.type==="mouseout")return[];if(!r)return i;let a=this.options.hover;return this.getElementsAtEventForMode(e,a.mode,a,o)}}return t})();function D4(){return ii(uC.instances,t=>t._plugins.invalidate())}function tae(t,n,e){let{startAngle:i,x:r,y:o,outerRadius:a,innerRadius:s,options:l}=n,{borderWidth:c,borderJoinStyle:d}=l,m=Math.min(c/a,or(i-e));if(t.beginPath(),t.arc(r,o,a-c/2,i+m/2,e-m/2),s>0){let f=Math.min(c/s,or(i-e));t.arc(r,o,s+c/2,e-f/2,i+f/2,!0)}else{let f=Math.min(c/2,a*or(i-e));if(d==="round")t.arc(r,o,f,e-Ht/2,i+Ht/2,!0);else if(d==="bevel"){let b=2*f*f,v=-b*Math.cos(e+Ht/2)+r,w=-b*Math.sin(e+Ht/2)+o,x=b*Math.cos(i+Ht/2)+r,D=b*Math.sin(i+Ht/2)+o;t.lineTo(v,w),t.lineTo(x,D)}}t.closePath(),t.moveTo(0,0),t.rect(0,0,t.canvas.width,t.canvas.height),t.clip("evenodd")}function iae(t,n,e){let{startAngle:i,pixelMargin:r,x:o,y:a,outerRadius:s,innerRadius:l}=n,c=r/s;t.beginPath(),t.arc(o,a,s,i-c,e+c),l>r?(c=r/l,t.arc(o,a,l,e+c,i-c,!0)):t.arc(o,a,r,e+Zi,i-Zi),t.closePath(),t.clip()}function nae(t){return Gx(t,["outerStart","outerEnd","innerStart","innerEnd"])}function rae(t,n,e,i){let r=nae(t.options.borderRadius),o=(e-n)/2,a=Math.min(o,i*n/2),s=l=>{let c=(e-Math.min(o,l))*i/2;return Dn(l,0,Math.min(o,c))};return{outerStart:s(r.outerStart),outerEnd:s(r.outerEnd),innerStart:Dn(r.innerStart,0,a),innerEnd:Dn(r.innerEnd,0,a)}}function zh(t,n,e,i){return{x:e+t*Math.cos(n),y:i+t*Math.sin(n)}}function lC(t,n,e,i,r,o){let{x:a,y:s,startAngle:l,pixelMargin:c,innerRadius:d}=n,m=Math.max(n.outerRadius+i+e-c,0),f=d>0?d+i+e+c:0,b=0,v=r-l;if(i){let ui=d>0?d-i:0,Pi=m>0?m-i:0,en=(ui+Pi)/2,ma=en!==0?v*en/(en+i):v;b=(v-ma)/2}let w=Math.max(.001,v*m-e/Ht)/m,x=(v-w)/2,D=l+x+b,P=r-x-b,{outerStart:W,outerEnd:Z,innerStart:K,innerEnd:re}=rae(n,f,m,P-D),Ee=m-W,be=m-Z,Ve=D+W/Ee,yt=P-Z/be,bt=f+K,It=f+re,$n=D+K/bt,lo=P-re/It;if(t.beginPath(),o){let ui=(Ve+yt)/2;if(t.arc(a,s,m,Ve,ui),t.arc(a,s,m,ui,yt),Z>0){let lr=zh(be,yt,a,s);t.arc(lr.x,lr.y,Z,yt,P+Zi)}let Pi=zh(It,P,a,s);if(t.lineTo(Pi.x,Pi.y),re>0){let lr=zh(It,lo,a,s);t.arc(lr.x,lr.y,re,P+Zi,lo+Math.PI)}let en=(P-re/f+(D+K/f))/2;if(t.arc(a,s,f,P-re/f,en,!0),t.arc(a,s,f,en,D+K/f,!0),K>0){let lr=zh(bt,$n,a,s);t.arc(lr.x,lr.y,K,$n+Math.PI,D-Zi)}let ma=zh(Ee,D,a,s);if(t.lineTo(ma.x,ma.y),W>0){let lr=zh(Ee,Ve,a,s);t.arc(lr.x,lr.y,W,D-Zi,Ve)}}else{t.moveTo(a,s);let ui=Math.cos(Ve)*m+a,Pi=Math.sin(Ve)*m+s;t.lineTo(ui,Pi);let en=Math.cos(yt)*m+a,ma=Math.sin(yt)*m+s;t.lineTo(en,ma)}t.closePath()}function oae(t,n,e,i,r){let{fullCircles:o,startAngle:a,circumference:s}=n,l=n.endAngle;if(o){lC(t,n,e,i,l,r);for(let c=0;c=Ht&&b===0&&d!=="miter"&&tae(t,n,w),o||(lC(t,n,e,i,w,r),t.stroke())}var $T=class extends ja{static id="arc";static defaults={borderAlign:"center",borderColor:"#fff",borderDash:[],borderDashOffset:0,borderJoinStyle:void 0,borderRadius:0,borderWidth:2,offset:0,spacing:0,angle:void 0,circular:!0,selfJoin:!1};static defaultRoutes={backgroundColor:"backgroundColor"};static descriptors={_scriptable:!0,_indexable:n=>n!=="borderDash"};circumference;endAngle;fullCircles;innerRadius;outerRadius;pixelMargin;startAngle;constructor(n){super(),this.options=void 0,this.circumference=void 0,this.startAngle=void 0,this.endAngle=void 0,this.innerRadius=void 0,this.outerRadius=void 0,this.pixelMargin=0,this.fullCircles=0,n&&Object.assign(this,n)}inRange(n,e,i){let r=this.getProps(["x","y"],i),{angle:o,distance:a}=eT(r,{x:n,y:e}),{startAngle:s,endAngle:l,innerRadius:c,outerRadius:d,circumference:m}=this.getProps(["startAngle","endAngle","innerRadius","outerRadius","circumference"],i),f=(this.options.spacing+this.options.borderWidth)/2,b=st(m,l-s),v=Vh(o,s,l)&&s!==l,w=b>=Mi||v,x=Is(a,c+f,d+f);return w&&x}getCenterPoint(n){let{x:e,y:i,startAngle:r,endAngle:o,innerRadius:a,outerRadius:s}=this.getProps(["x","y","startAngle","endAngle","innerRadius","outerRadius"],n),{offset:l,spacing:c}=this.options,d=(r+o)/2,m=(a+s+c+l)/2;return{x:e+Math.cos(d)*m,y:i+Math.sin(d)*m}}tooltipPosition(n){return this.getCenterPoint(n)}draw(n){let{options:e,circumference:i}=this,r=(e.offset||0)/4,o=(e.spacing||0)/2,a=e.circular;if(this.pixelMargin=e.borderAlign==="inner"?.33:0,this.fullCircles=i>Mi?Math.floor(i/Mi):0,i===0||this.innerRadius<0||this.outerRadius<0)return;n.save();let s=(this.startAngle+this.endAngle)/2;n.translate(Math.cos(s)*r,Math.sin(s)*r);let l=1-Math.sin(Math.min(Ht,i||0)),c=r*l;n.fillStyle=e.backgroundColor,n.strokeStyle=e.borderColor,oae(n,this,c,o,a),aae(n,this,c,o,a),n.restore()}};function lH(t,n,e=n){t.lineCap=st(e.borderCapStyle,n.borderCapStyle),t.setLineDash(st(e.borderDash,n.borderDash)),t.lineDashOffset=st(e.borderDashOffset,n.borderDashOffset),t.lineJoin=st(e.borderJoinStyle,n.borderJoinStyle),t.lineWidth=st(e.borderWidth,n.borderWidth),t.strokeStyle=st(e.borderColor,n.borderColor)}function sae(t,n,e){t.lineTo(e.x,e.y)}function lae(t){return t.stepped?Lj:t.tension||t.cubicInterpolationMode==="monotone"?Vj:sae}function cH(t,n,e={}){let i=t.length,{start:r=0,end:o=i-1}=e,{start:a,end:s}=n,l=Math.max(r,a),c=Math.min(o,s),d=rs&&o>s;return{count:i,start:l,loop:n.loop,ilen:c(a+(c?s-Z:Z))%o,W=()=>{w!==x&&(t.lineTo(d,x),t.lineTo(d,w),t.lineTo(d,D))};for(l&&(b=r[P(0)],t.moveTo(b.x,b.y)),f=0;f<=s;++f){if(b=r[P(f)],b.skip)continue;let Z=b.x,K=b.y,re=Z|0;re===v?(Kx&&(x=K),d=(m*d+Z)/++m):(W(),t.lineTo(Z,K),v=re,m=0,w=x=K),D=K}W()}function WT(t){let n=t.options,e=n.borderDash&&n.borderDash.length;return!t._decimated&&!t._loop&&!n.tension&&n.cubicInterpolationMode!=="monotone"&&!n.stepped&&!e?dae:cae}function uae(t){return t.stepped?qj:t.tension||t.cubicInterpolationMode==="monotone"?Yj:Dc}function mae(t,n,e,i){let r=n._path;r||(r=n._path=new Path2D,n.path(r,e,i)&&r.closePath()),lH(t,n.options),t.stroke(r)}function hae(t,n,e,i){let{segments:r,options:o}=n,a=WT(n);for(let s of r)lH(t,o,s.style),t.beginPath(),a(t,n,s,{start:e,end:e+i-1})&&t.closePath(),t.stroke()}var pae=typeof Path2D=="function";function fae(t,n,e,i){pae&&!n.options.segment?mae(t,n,e,i):hae(t,n,e,i)}var mC=(()=>{class t extends ja{static id="line";static defaults={borderCapStyle:"butt",borderDash:[],borderDashOffset:0,borderJoinStyle:"miter",borderWidth:3,capBezierPoints:!0,cubicInterpolationMode:"default",fill:!1,spanGaps:!1,stepped:!1,tension:0};static defaultRoutes={backgroundColor:"backgroundColor",borderColor:"borderColor"};static descriptors={_scriptable:!0,_indexable:e=>e!=="borderDash"&&e!=="fill"};constructor(e){super(),this.animated=!0,this.options=void 0,this._chart=void 0,this._loop=void 0,this._fullLoop=void 0,this._path=void 0,this._points=void 0,this._segments=void 0,this._decimated=!1,this._pointsUpdated=!1,this._datasetIndex=void 0,e&&Object.assign(this,e)}updateControlPoints(e,i){let r=this.options;if((r.tension||r.cubicInterpolationMode==="monotone")&&!r.stepped&&!this._pointsUpdated){let o=r.spanGaps?this._loop:this._fullLoop;$j(this._points,r,e,o,i),this._pointsUpdated=!0}}set points(e){this._points=e,delete this._segments,delete this._path,this._pointsUpdated=!1}get points(){return this._points}get segments(){return this._segments||(this._segments=Kj(this,this.options.segment))}first(){let e=this.segments,i=this.points;return e.length&&i[e[0].start]}last(){let e=this.segments,i=this.points,r=e.length;return r&&i[e[r-1].end]}interpolate(e,i){let r=this.options,o=e[i],a=this.points,s=xT(this,{property:i,start:o,end:o});if(!s.length)return;let l=[],c=uae(r),d,m;for(d=0,m=s.length;d{class t extends ja{static id="point";parsed;skip;stop;static defaults={borderWidth:1,hitRadius:1,hoverBorderWidth:1,hoverRadius:4,pointStyle:"circle",radius:3,rotation:0};static defaultRoutes={backgroundColor:"backgroundColor",borderColor:"borderColor"};constructor(e){super(),this.options=void 0,this.parsed=void 0,this.skip=void 0,this.stop=void 0,e&&Object.assign(this,e)}inRange(e,i,r){let o=this.options,{x:a,y:s}=this.getProps(["x","y"],r);return Math.pow(e-a,2)+Math.pow(i-s,2)t.replace("rgb(","rgba(").replace(")",", 0.5)"));function uH(t){return qT[t%qT.length]}function mH(t){return M4[t%M4.length]}function wae(t,n){return t.borderColor=uH(n),t.backgroundColor=mH(n),++n}function Dae(t,n){return t.backgroundColor=t.data.map(()=>uH(n++)),n}function Eae(t,n){return t.backgroundColor=t.data.map(()=>mH(n++)),n}function Mae(t){let n=0;return(e,i)=>{let r=t.getDatasetMeta(i).controller;r instanceof tI?n=Dae(e,n):r instanceof J4?n=Eae(e,n):r&&(n=wae(e,n))}}function k4(t){let n;for(n in t)if(t[n].borderColor||t[n].backgroundColor)return!0;return!1}function kae(t){return t&&(t.borderColor||t.backgroundColor)}function Sae(){return xi.borderColor!=="rgba(0,0,0,0.1)"||xi.backgroundColor!=="rgba(0,0,0,0.1)"}var Tae={id:"colors",defaults:{enabled:!0,forceOverride:!1},beforeLayout(t,n,e){if(!e.enabled)return;let{data:{datasets:i},options:r}=t.config,{elements:o}=r,a=k4(i)||kae(r)||o&&k4(o)||Sae();if(!e.forceOverride&&a)return;let s=Mae(t);i.forEach(s)}};function Iae(t,n,e,i,r){let o=r.samples||i;if(o>=e)return t.slice(n,n+e);let a=[],s=(e-2)/(o-2),l=0,c=n+e-1,d=n,m,f,b,v,w;for(a[l++]=t[d],m=0;mb&&(b=v,f=t[P],w=P);a[l++]=f,d=w}return a[l++]=t[c],a}function Aae(t,n,e,i){let r=0,o=0,a,s,l,c,d,m,f,b,v,w,x=[],D=n+e-1,P=t[n].x,Z=t[D].x-P;for(a=n;aw&&(w=c,f=a),r=(o*r+s.x)/++o;else{let re=a-1;if(!Et(m)&&!Et(f)){let Ee=Math.min(m,f),be=Math.max(m,f);Ee!==b&&Ee!==re&&x.push(De(M({},t[Ee]),{x:r})),be!==b&&be!==re&&x.push(De(M({},t[be]),{x:r}))}a>0&&re!==b&&x.push(t[re]),x.push(s),d=K,o=0,v=w=c,m=f=b=a}}return x}function hH(t){if(t._decimated){let n=t._data;delete t._decimated,delete t._data,Object.defineProperty(t,"data",{configurable:!0,enumerable:!0,writable:!0,value:n})}}function S4(t){t.data.datasets.forEach(n=>{hH(n)})}function Oae(t,n){let e=n.length,i=0,r,{iScale:o}=t,{min:a,max:s,minDefined:l,maxDefined:c}=o.getUserBounds();return l&&(i=Dn(ks(n,o.axis,a).lo,0,e-1)),c?r=Dn(ks(n,o.axis,s).hi+1,i,e)-i:r=e-i,{start:i,count:r}}var Rae={id:"decimation",defaults:{algorithm:"min-max",enabled:!1},beforeElementsUpdate:(t,n,e)=>{if(!e.enabled){S4(t);return}let i=t.width;t.data.datasets.forEach((r,o)=>{let{_data:a,indexAxis:s}=r,l=t.getDatasetMeta(o),c=a||r.data;if(Hh([s,t.options.indexAxis])==="y"||!l.controller.supportsDecimation)return;let d=t.scales[l.xAxisID];if(d.type!=="linear"&&d.type!=="time"||t.options.parsing)return;let{start:m,count:f}=Oae(l,c),b=e.threshold||4*i;if(f<=b){hH(r);return}Et(a)&&(r._data=c,delete r.data,Object.defineProperty(r,"data",{configurable:!0,enumerable:!0,get:function(){return this._decimated},set:function(w){this._data=w}}));let v;switch(e.algorithm){case"lttb":v=Iae(c,m,f,i,e);break;case"min-max":v=Aae(c,m,f,i);break;default:throw new Error(`Unsupported decimation algorithm '${e.algorithm}'`)}r._decimated=v})},destroy(t){S4(t)}};function Pae(t,n,e){let i=t.segments,r=t.points,o=n.points,a=[];for(let s of i){let{start:l,end:c}=s;c=hC(l,c,r);let d=YT(e,r[l],r[c],s.loop);if(!n.segments){a.push({source:s,target:d,start:r[l],end:r[c]});continue}let m=xT(n,d);for(let f of m){let b=YT(e,o[f.start],o[f.end],f.loop),v=yT(s,r,b);for(let w of v)a.push({source:w,target:f,start:{[e]:T4(d,b,"start",Math.max)},end:{[e]:T4(d,b,"end",Math.min)}})}}return a}function YT(t,n,e,i){if(i)return;let r=n[t],o=e[t];return t==="angle"&&(r=or(r),o=or(o)),{property:t,start:r,end:o}}function Fae(t,n){let{x:e=null,y:i=null}=t||{},r=n.points,o=[];return n.segments.forEach(({start:a,end:s})=>{s=hC(a,s,r);let l=r[a],c=r[s];i!==null?(o.push({x:l.x,y:i}),o.push({x:c.x,y:i})):e!==null&&(o.push({x:e,y:l.y}),o.push({x:e,y:c.y}))}),o}function hC(t,n,e){for(;n>t;n--){let i=e[n];if(!isNaN(i.x)&&!isNaN(i.y))break}return n}function T4(t,n,e,i){return t&&n?i(t[e],n[e]):t?t[e]:n?n[e]:0}function pH(t,n){let e=[],i=!1;return Ei(t)?(i=!0,e=t):e=Fae(t,n),e.length?new mC({points:e,options:{tension:0},_loop:i,_fullLoop:i}):null}function I4(t){return t&&t.fill!==!1}function Nae(t,n,e){let r=t[n].fill,o=[n],a;if(!e)return r;for(;r!==!1&&o.indexOf(r)===-1;){if(!Gi(r))return r;if(a=t[r],!a)return!1;if(a.visible)return r;o.push(r),r=a.fill}return!1}function Lae(t,n,e){let i=Hae(t);if(St(i))return isNaN(i.value)?!1:i;let r=parseFloat(i);return Gi(r)&&Math.floor(r)===r?Vae(i[0],n,r,e):["origin","start","end","stack","shape"].indexOf(i)>=0&&i}function Vae(t,n,e,i){return(t==="-"||t==="+")&&(e=n+e),e===n||e<0||e>=i?!1:e}function Bae(t,n){let e=null;return t==="start"?e=n.bottom:t==="end"?e=n.top:St(t)?e=n.getPixelForValue(t.value):n.getBasePixel&&(e=n.getBasePixel()),e}function jae(t,n,e){let i;return t==="start"?i=e:t==="end"?i=n.options.reverse?n.min:n.max:St(t)?i=t.value:i=n.getBaseValue(),i}function Hae(t){let n=t.options,e=n.fill,i=st(e&&e.target,e);return i===void 0&&(i=!!n.backgroundColor),i===!1||i===null?!1:i===!0?"origin":i}function zae(t){let{scale:n,index:e,line:i}=t,r=[],o=i.segments,a=i.points,s=Uae(n,e);s.push(pH({x:null,y:n.bottom},i));for(let l=0;l=0;--a){let s=r[a].$filler;s&&(s.line.updateControlPoints(o,s.axis),i&&s.fill&&OT(t.ctx,s,o))}},beforeDatasetsDraw(t,n,e){if(e.drawTime!=="beforeDatasetsDraw")return;let i=t.getSortedVisibleDatasetMetas();for(let r=i.length-1;r>=0;--r){let o=i[r].$filler;I4(o)&&OT(t.ctx,o,t.chartArea)}},beforeDatasetDraw(t,n,e){let i=n.meta.$filler;!I4(i)||e.drawTime!=="beforeDatasetDraw"||OT(t.ctx,i,t.chartArea)},defaults:{propagate:!0,drawTime:"beforeDatasetDraw"}},P4=(t,n)=>{let{boxHeight:e=n,boxWidth:i=n}=t;return t.usePointStyle&&(e=Math.min(e,n),i=t.pointStyleWidth||Math.min(i,n)),{boxWidth:i,boxHeight:e,itemHeight:Math.max(n,e)}},ese=(t,n)=>t!==null&&n!==null&&t.datasetIndex===n.datasetIndex&&t.index===n.index,dC=class extends ja{constructor(n){super(),this._added=!1,this.legendHitBoxes=[],this._hoveredItem=null,this.doughnutMode=!1,this.chart=n.chart,this.options=n.options,this.ctx=n.ctx,this.legendItems=void 0,this.columnSizes=void 0,this.lineWidths=void 0,this.maxHeight=void 0,this.maxWidth=void 0,this.top=void 0,this.bottom=void 0,this.left=void 0,this.right=void 0,this.height=void 0,this.width=void 0,this._margins=void 0,this.position=void 0,this.weight=void 0,this.fullSize=void 0}update(n,e,i){this.maxWidth=n,this.maxHeight=e,this._margins=i,this.setDimensions(),this.buildLabels(),this.fit()}setDimensions(){this.isHorizontal()?(this.width=this.maxWidth,this.left=this._margins.left,this.right=this.width):(this.height=this.maxHeight,this.top=this._margins.top,this.bottom=this.height)}buildLabels(){let n=this.options.labels||{},e=yi(n.generateLabels,[this.chart],this)||[];n.filter&&(e=e.filter(i=>n.filter(i,this.chart.data))),n.sort&&(e=e.sort((i,r)=>n.sort(i,r,this.chart.data))),this.options.reverse&&e.reverse(),this.legendItems=e}fit(){let{options:n,ctx:e}=this;if(!n.display){this.width=this.height=0;return}let i=n.labels,r=pn(i.font),o=r.size,a=this._computeTitleHeight(),{boxWidth:s,itemHeight:l}=P4(i,o),c,d;e.font=r.string,this.isHorizontal()?(c=this.maxWidth,d=this._fitRows(a,o,s,l)+10):(d=this.maxHeight,c=this._fitCols(a,r,s,l)+10),this.width=Math.min(c,n.maxWidth||this.maxWidth),this.height=Math.min(d,n.maxHeight||this.maxHeight)}_fitRows(n,e,i,r){let{ctx:o,maxWidth:a,options:{labels:{padding:s}}}=this,l=this.legendHitBoxes=[],c=this.lineWidths=[0],d=r+s,m=n;o.textAlign="left",o.textBaseline="middle";let f=-1,b=-d;return this.legendItems.forEach((v,w)=>{let x=i+e/2+o.measureText(v.text).width;(w===0||c[c.length-1]+x+2*s>a)&&(m+=d,c[c.length-(w>0?0:1)]=0,b+=d,f++),l[w]={left:0,top:b,row:f,width:x,height:r},c[c.length-1]+=x+s}),m}_fitCols(n,e,i,r){let{ctx:o,maxHeight:a,options:{labels:{padding:s}}}=this,l=this.legendHitBoxes=[],c=this.columnSizes=[],d=a-n,m=s,f=0,b=0,v=0,w=0;return this.legendItems.forEach((x,D)=>{let{itemWidth:P,itemHeight:W}=tse(i,e,o,x,r);D>0&&b+W+2*s>d&&(m+=f+s,c.push({width:f,height:b}),v+=f+s,w++,f=b=0),l[D]={left:v,top:b,col:w,width:P,height:W},f=Math.max(f,P),b+=W+s}),m+=f,c.push({width:f,height:b}),m}adjustHitBoxes(){if(!this.options.display)return;let n=this._computeTitleHeight(),{legendHitBoxes:e,options:{align:i,labels:{padding:r},rtl:o}}=this,a=Cu(o,this.left,this.width);if(this.isHorizontal()){let s=0,l=ar(i,this.left+r,this.right-this.lineWidths[s]);for(let c of e)s!==c.row&&(s=c.row,l=ar(i,this.left+r,this.right-this.lineWidths[s])),c.top+=this.top+n+r,c.left=a.leftForLtr(a.x(l),c.width),l+=c.width+r}else{let s=0,l=ar(i,this.top+n+r,this.bottom-this.columnSizes[s].height);for(let c of e)c.col!==s&&(s=c.col,l=ar(i,this.top+n+r,this.bottom-this.columnSizes[s].height)),c.top=l,c.left+=this.left+r,c.left=a.leftForLtr(a.x(c.left),c.width),l+=c.height+r}}isHorizontal(){return this.options.position==="top"||this.options.position==="bottom"}draw(){if(this.options.display){let n=this.ctx;Hg(n,this),this._draw(),zg(n)}}_draw(){let{options:n,columnSizes:e,lineWidths:i,ctx:r}=this,{align:o,labels:a}=n,s=xi.color,l=Cu(n.rtl,this.left,this.width),c=pn(a.font),{padding:d}=a,m=c.size,f=m/2,b;this.drawTitle(),r.textAlign=l.textAlign("left"),r.textBaseline="middle",r.lineWidth=.5,r.font=c.string;let{boxWidth:v,boxHeight:w,itemHeight:x}=P4(a,m),D=function(re,Ee,be){if(isNaN(v)||v<=0||isNaN(w)||w<0)return;r.save();let Ve=st(be.lineWidth,1);if(r.fillStyle=st(be.fillStyle,s),r.lineCap=st(be.lineCap,"butt"),r.lineDashOffset=st(be.lineDashOffset,0),r.lineJoin=st(be.lineJoin,"miter"),r.lineWidth=Ve,r.strokeStyle=st(be.strokeStyle,s),r.setLineDash(st(be.lineDash,[])),a.usePointStyle){let yt={radius:w*Math.SQRT2/2,pointStyle:be.pointStyle,rotation:be.rotation,borderWidth:Ve},bt=l.xPlus(re,v/2),It=Ee+f;dT(r,yt,bt,It,a.pointStyleWidth&&v)}else{let yt=Ee+Math.max((m-w)/2,0),bt=l.leftForLtr(re,v),It=Tc(be.borderRadius);r.beginPath(),Object.values(It).some($n=>$n!==0)?jh(r,{x:bt,y:yt,w:v,h:w,radius:It}):r.rect(bt,yt,v,w),r.fill(),Ve!==0&&r.stroke()}r.restore()},P=function(re,Ee,be){Sc(r,be.text,re,Ee+x/2,c,{strikethrough:be.hidden,textAlign:l.textAlign(be.textAlign)})},W=this.isHorizontal(),Z=this._computeTitleHeight();W?b={x:ar(o,this.left+d,this.right-i[0]),y:this.top+d+Z,line:0}:b={x:this.left+d,y:ar(o,this.top+Z+d,this.bottom-e[0].height),line:0},bT(this.ctx,n.textDirection);let K=x+d;this.legendItems.forEach((re,Ee)=>{r.strokeStyle=re.fontColor,r.fillStyle=re.fontColor;let be=r.measureText(re.text).width,Ve=l.textAlign(re.textAlign||(re.textAlign=a.textAlign)),yt=v+f+be,bt=b.x,It=b.y;l.setWidth(this.width),W?Ee>0&&bt+yt+d>this.right&&(It=b.y+=K,b.line++,bt=b.x=ar(o,this.left+d,this.right-i[b.line])):Ee>0&&It+K>this.bottom&&(bt=b.x=bt+e[b.line].width+d,b.line++,It=b.y=ar(o,this.top+Z+d,this.bottom-e[b.line].height));let $n=l.x(bt);if(D($n,It,re),bt=Pj(Ve,bt+v+f,W?bt+yt:this.right,n.rtl),P(l.x(bt),It,re),W)b.x+=yt+d;else if(typeof re.text!="string"){let lo=c.lineHeight;b.y+=fH(re,lo)+d}else b.y+=K}),vT(this.ctx,n.textDirection)}drawTitle(){let n=this.options,e=n.title,i=pn(e.font),r=sr(e.padding);if(!e.display)return;let o=Cu(n.rtl,this.left,this.width),a=this.ctx,s=e.position,l=i.size/2,c=r.top+l,d,m=this.left,f=this.width;if(this.isHorizontal())f=Math.max(...this.lineWidths),d=this.top+c,m=ar(n.align,m,this.right-f);else{let v=this.columnSizes.reduce((w,x)=>Math.max(w,x.height),0);d=c+ar(n.align,this.top,this.bottom-v-n.labels.padding-this._computeTitleHeight())}let b=ar(s,m,m+f);a.textAlign=o.textAlign(Ux(s)),a.textBaseline="middle",a.strokeStyle=e.color,a.fillStyle=e.color,a.font=i.string,Sc(a,e.text,b,d,i)}_computeTitleHeight(){let n=this.options.title,e=pn(n.font),i=sr(n.padding);return n.display?e.lineHeight+i.height:0}_getLegendItemAt(n,e){let i,r,o;if(Is(n,this.left,this.right)&&Is(e,this.top,this.bottom)){for(o=this.legendHitBoxes,i=0;io.length>a.length?o:a)),n+e.size/2+i.measureText(r).width}function nse(t,n,e){let i=t;return typeof n.text!="string"&&(i=fH(n,e)),i}function fH(t,n){let e=t.text?t.text.length:0;return n*e}function rse(t,n){return!!((t==="mousemove"||t==="mouseout")&&(n.onHover||n.onLeave)||n.onClick&&(t==="click"||t==="mouseup"))}var ose={id:"legend",_element:dC,start(t,n,e){let i=t.legend=new dC({ctx:t.ctx,options:e,chart:t});Dr.configure(t,i,e),Dr.addBox(t,i)},stop(t){Dr.removeBox(t,t.legend),delete t.legend},beforeUpdate(t,n,e){let i=t.legend;Dr.configure(t,i,e),i.options=e},afterUpdate(t){let n=t.legend;n.buildLabels(),n.adjustHitBoxes()},afterEvent(t,n){n.replay||t.legend.handleEvent(n.event)},defaults:{display:!0,position:"top",align:"center",fullSize:!0,reverse:!1,weight:1e3,onClick(t,n,e){let i=n.datasetIndex,r=e.chart;r.isDatasetVisible(i)?(r.hide(i),n.hidden=!0):(r.show(i),n.hidden=!1)},onHover:null,onLeave:null,labels:{color:t=>t.chart.options.color,boxWidth:40,padding:10,generateLabels(t){let n=t.data.datasets,{labels:{usePointStyle:e,pointStyle:i,textAlign:r,color:o,useBorderRadius:a,borderRadius:s}}=t.legend.options;return t._getSortedDatasetMetas().map(l=>{let c=l.controller.getStyle(e?0:void 0),d=sr(c.borderWidth);return{text:n[l.index].label,fillStyle:c.backgroundColor,fontColor:o,hidden:!l.visible,lineCap:c.borderCapStyle,lineDash:c.borderDash,lineDashOffset:c.borderDashOffset,lineJoin:c.borderJoinStyle,lineWidth:(d.width+d.height)/4,strokeStyle:c.borderColor,pointStyle:i||c.pointStyle,rotation:c.rotation,textAlign:r||c.textAlign,borderRadius:a&&(s||c.borderRadius),datasetIndex:l.index}},this)}},title:{color:t=>t.chart.options.color,display:!1,position:"center",text:""}},descriptors:{_scriptable:t=>!t.startsWith("on"),labels:{_scriptable:t=>!["generateLabels","filter","sort"].includes(t)}}},Zg=class extends ja{constructor(n){super(),this.chart=n.chart,this.options=n.options,this.ctx=n.ctx,this._padding=void 0,this.top=void 0,this.bottom=void 0,this.left=void 0,this.right=void 0,this.width=void 0,this.height=void 0,this.position=void 0,this.weight=void 0,this.fullSize=void 0}update(n,e){let i=this.options;if(this.left=0,this.top=0,!i.display){this.width=this.height=this.right=this.bottom=0;return}this.width=this.right=n,this.height=this.bottom=e;let r=Ei(i.text)?i.text.length:1;this._padding=sr(i.padding);let o=r*pn(i.font).lineHeight+this._padding.height;this.isHorizontal()?this.height=o:this.width=o}isHorizontal(){let n=this.options.position;return n==="top"||n==="bottom"}_drawArgs(n){let{top:e,left:i,bottom:r,right:o,options:a}=this,s=a.align,l=0,c,d,m;return this.isHorizontal()?(d=ar(s,i,o),m=e+n,c=o-i):(a.position==="left"?(d=i+n,m=ar(s,r,e),l=Ht*-.5):(d=o-n,m=ar(s,e,r),l=Ht*.5),c=r-e),{titleX:d,titleY:m,maxWidth:c,rotation:l}}draw(){let n=this.ctx,e=this.options;if(!e.display)return;let i=pn(e.font),o=i.lineHeight/2+this._padding.top,{titleX:a,titleY:s,maxWidth:l,rotation:c}=this._drawArgs(o);Sc(n,e.text,0,0,i,{color:e.color,maxWidth:l,rotation:c,textAlign:Ux(e.align),textBaseline:"middle",translation:[a,s]})}};function ase(t,n){let e=new Zg({ctx:t.ctx,options:n,chart:t});Dr.configure(t,e,n),Dr.addBox(t,e),t.titleBlock=e}var sse={id:"title",_element:Zg,start(t,n,e){ase(t,e)},stop(t){let n=t.titleBlock;Dr.removeBox(t,n),delete t.titleBlock},beforeUpdate(t,n,e){let i=t.titleBlock;Dr.configure(t,i,e),i.options=e},defaults:{align:"center",display:!1,font:{weight:"bold"},fullSize:!0,padding:10,position:"top",text:"",weight:2e3},defaultRoutes:{color:"color"},descriptors:{_scriptable:!0,_indexable:!1}},eC=new WeakMap,lse={id:"subtitle",start(t,n,e){let i=new Zg({ctx:t.ctx,options:e,chart:t});Dr.configure(t,i,e),Dr.addBox(t,i),eC.set(t,i)},stop(t){Dr.removeBox(t,eC.get(t)),eC.delete(t)},beforeUpdate(t,n,e){let i=eC.get(t);Dr.configure(t,i,e),i.options=e},defaults:{align:"center",display:!1,font:{weight:"normal"},fullSize:!0,padding:0,position:"top",text:"",weight:1500},defaultRoutes:{color:"color"},descriptors:{_scriptable:!0,_indexable:!1}},Qg={average(t){if(!t.length)return!1;let n,e,i=new Set,r=0,o=0;for(n=0,e=t.length;ns+l)/i.size,y:r/o}},nearest(t,n){if(!t.length)return!1;let e=n.x,i=n.y,r=Number.POSITIVE_INFINITY,o,a,s;for(o=0,a=t.length;o-1?t.split(` -`):t}function lse(t,n){let{element:e,datasetIndex:i,index:r}=n,o=t.getDatasetMeta(i).controller,{label:a,value:s}=o.getLabelAndValue(r);return{chart:t,label:a,parsed:o.getParsed(r),raw:t.data.datasets[i].data[r],formattedValue:s,dataset:o.getDataset(),dataIndex:r,datasetIndex:i,element:e}}function P4(t,n){let e=t.chart.ctx,{body:i,footer:r,title:o}=t,{boxWidth:a,boxHeight:s}=n,l=pn(n.bodyFont),c=pn(n.titleFont),d=pn(n.footerFont),m=o.length,f=r.length,b=i.length,v=sr(n.padding),w=v.height,x=0,D=i.reduce((Z,K)=>Z+K.before.length+K.lines.length+K.after.length,0);if(D+=t.beforeBody.length+t.afterBody.length,m&&(w+=m*c.lineHeight+(m-1)*n.titleSpacing+n.titleMarginBottom),D){let Z=n.displayColors?Math.max(s,l.lineHeight):l.lineHeight;w+=b*Z+(D-b)*l.lineHeight+(D-1)*n.bodySpacing}f&&(w+=n.footerMarginTop+f*d.lineHeight+(f-1)*n.footerSpacing);let P=0,W=function(Z){x=Math.max(x,e.measureText(Z).width+P)};return e.save(),e.font=c.string,ii(t.title,W),e.font=l.string,ii(t.beforeBody.concat(t.afterBody),W),P=n.displayColors?a+2+n.boxPadding:0,ii(i,Z=>{ii(Z.before,W),ii(Z.lines,W),ii(Z.after,W)}),P=0,e.font=d.string,ii(t.footer,W),e.restore(),x+=v.width,{width:x,height:w}}function cse(t,n){let{y:e,height:i}=n;return et.height-i/2?"bottom":"center"}function dse(t,n,e,i){let{x:r,width:o}=i,a=e.caretSize+e.caretPadding;if(t==="left"&&r+o+a>n.width||t==="right"&&r-o-a<0)return!0}function use(t,n,e,i){let{x:r,width:o}=e,{width:a,chartArea:{left:s,right:l}}=t,c="center";return i==="center"?c=r<=(s+l)/2?"left":"right":r<=o/2?c="left":r>=a-o/2&&(c="right"),dse(c,t,n,e)&&(c="center"),c}function F4(t,n,e){let i=e.yAlign||n.yAlign||cse(t,e);return{xAlign:e.xAlign||n.xAlign||use(t,n,e,i),yAlign:i}}function mse(t,n){let{x:e,width:i}=t;return n==="right"?e-=i:n==="center"&&(e-=i/2),e}function hse(t,n,e){let{y:i,height:r}=t;return n==="top"?i+=e:n==="bottom"?i-=r+e:i-=r/2,i}function N4(t,n,e,i){let{caretSize:r,caretPadding:o,cornerRadius:a}=t,{xAlign:s,yAlign:l}=e,c=r+o,{topLeft:d,topRight:m,bottomLeft:f,bottomRight:b}=Tc(a),v=mse(n,s),w=hse(n,l,c);return l==="center"?s==="left"?v+=c:s==="right"&&(v-=c):s==="left"?v-=Math.max(d,f)+r:s==="right"&&(v+=Math.max(m,b)+r),{x:Dn(v,0,i.width-n.width),y:Dn(w,0,i.height-n.height)}}function tC(t,n,e){let i=sr(e.padding);return n==="center"?t.x+t.width/2:n==="right"?t.x+t.width-i.right:t.x+i.left}function L4(t){return As([],yl(t))}function pse(t,n,e){return bl(t,{tooltip:n,tooltipItems:e,type:"tooltip"})}function V4(t,n){let e=n&&n.dataset&&n.dataset.tooltip&&n.dataset.tooltip.callbacks;return e?t.override(e):t}var fH={beforeTitle:Ts,title(t){if(t.length>0){let n=t[0],e=n.chart.data.labels,i=e?e.length:0;if(this&&this.options&&this.options.mode==="dataset")return n.dataset.label||"";if(n.label)return n.label;if(i>0&&n.dataIndex"u"?fH[n].call(e,i):r}var B4=(()=>{class t extends ja{static positioners=Qg;constructor(e){super(),this.opacity=0,this._active=[],this._eventPosition=void 0,this._size=void 0,this._cachedAnimations=void 0,this._tooltipItems=[],this.$animations=void 0,this.$context=void 0,this.chart=e.chart,this.options=e.options,this.dataPoints=void 0,this.title=void 0,this.beforeBody=void 0,this.body=void 0,this.afterBody=void 0,this.footer=void 0,this.xAlign=void 0,this.yAlign=void 0,this.x=void 0,this.y=void 0,this.height=void 0,this.width=void 0,this.caretX=void 0,this.caretY=void 0,this.labelColors=void 0,this.labelPointStyles=void 0,this.labelTextColors=void 0}initialize(e){this.options=e,this._cachedAnimations=void 0,this.$context=void 0}_resolveAnimations(){let e=this._cachedAnimations;if(e)return e;let i=this.chart,r=this.options.setContext(this.getContext()),o=r.enabled&&i.options.animation&&r.animations,a=new oC(this.chart,o);return o._cacheable&&(this._cachedAnimations=Object.freeze(a)),a}getContext(){return this.$context||(this.$context=pse(this.chart.getContext(),this,this._tooltipItems))}getTitle(e,i){let{callbacks:r}=i,o=ro(r,"beforeTitle",this,e),a=ro(r,"title",this,e),s=ro(r,"afterTitle",this,e),l=[];return l=As(l,yl(o)),l=As(l,yl(a)),l=As(l,yl(s)),l}getBeforeBody(e,i){return L4(ro(i.callbacks,"beforeBody",this,e))}getBody(e,i){let{callbacks:r}=i,o=[];return ii(e,a=>{let s={before:[],lines:[],after:[]},l=V4(r,a);As(s.before,yl(ro(l,"beforeLabel",this,a))),As(s.lines,ro(l,"label",this,a)),As(s.after,yl(ro(l,"afterLabel",this,a))),o.push(s)}),o}getAfterBody(e,i){return L4(ro(i.callbacks,"afterBody",this,e))}getFooter(e,i){let{callbacks:r}=i,o=ro(r,"beforeFooter",this,e),a=ro(r,"footer",this,e),s=ro(r,"afterFooter",this,e),l=[];return l=As(l,yl(o)),l=As(l,yl(a)),l=As(l,yl(s)),l}_createItems(e){let i=this._active,r=this.chart.data,o=[],a=[],s=[],l=[],c,d;for(c=0,d=i.length;ce.filter(m,f,b,r))),e.itemSort&&(l=l.sort((m,f)=>e.itemSort(m,f,r))),ii(l,m=>{let f=V4(e.callbacks,m);o.push(ro(f,"labelColor",this,m)),a.push(ro(f,"labelPointStyle",this,m)),s.push(ro(f,"labelTextColor",this,m))}),this.labelColors=o,this.labelPointStyles=a,this.labelTextColors=s,this.dataPoints=l,l}update(e,i){let r=this.options.setContext(this.getContext()),o=this._active,a,s=[];if(!o.length)this.opacity!==0&&(a={opacity:0});else{let l=Qg[r.position].call(this,o,this._eventPosition);s=this._createItems(r),this.title=this.getTitle(s,r),this.beforeBody=this.getBeforeBody(s,r),this.body=this.getBody(s,r),this.afterBody=this.getAfterBody(s,r),this.footer=this.getFooter(s,r);let c=this._size=P4(this,r),d=Object.assign({},l,c),m=F4(this.chart,r,d),f=N4(r,d,m,this.chart);this.xAlign=m.xAlign,this.yAlign=m.yAlign,a={opacity:1,x:f.x,y:f.y,width:c.width,height:c.height,caretX:l.x,caretY:l.y}}this._tooltipItems=s,this.$context=void 0,a&&this._resolveAnimations().update(this,a),e&&r.external&&r.external.call(this,{chart:this.chart,tooltip:this,replay:i})}drawCaret(e,i,r,o){let a=this.getCaretPosition(e,r,o);i.lineTo(a.x1,a.y1),i.lineTo(a.x2,a.y2),i.lineTo(a.x3,a.y3)}getCaretPosition(e,i,r){let{xAlign:o,yAlign:a}=this,{caretSize:s,cornerRadius:l}=r,{topLeft:c,topRight:d,bottomLeft:m,bottomRight:f}=Tc(l),{x:b,y:v}=e,{width:w,height:x}=i,D,P,W,Z,K,re;return a==="center"?(K=v+x/2,o==="left"?(D=b,P=D-s,Z=K+s,re=K-s):(D=b+w,P=D+s,Z=K-s,re=K+s),W=D):(o==="left"?P=b+Math.max(c,m)+s:o==="right"?P=b+w-Math.max(d,f)-s:P=this.caretX,a==="top"?(Z=v,K=Z-s,D=P-s,W=P+s):(Z=v+x,K=Z+s,D=P+s,W=P-s),re=Z),{x1:D,x2:P,x3:W,y1:Z,y2:K,y3:re}}drawTitle(e,i,r){let o=this.title,a=o.length,s,l,c;if(a){let d=Cu(r.rtl,this.x,this.width);for(e.x=tC(this,r.titleAlign,r),i.textAlign=d.textAlign(r.titleAlign),i.textBaseline="middle",s=pn(r.titleFont),l=r.titleSpacing,i.fillStyle=r.titleColor,i.font=s.string,c=0;cW!==0)?(e.beginPath(),e.fillStyle=a.multiKeyBackground,jh(e,{x,y:w,w:d,h:c,radius:P}),e.fill(),e.stroke(),e.fillStyle=s.backgroundColor,e.beginPath(),jh(e,{x:D,y:w+1,w:d-2,h:c-2,radius:P}),e.fill()):(e.fillStyle=a.multiKeyBackground,e.fillRect(x,w,d,c),e.strokeRect(x,w,d,c),e.fillStyle=s.backgroundColor,e.fillRect(D,w+1,d-2,c-2))}e.fillStyle=this.labelTextColors[r]}drawBody(e,i,r){let{body:o}=this,{bodySpacing:a,bodyAlign:s,displayColors:l,boxHeight:c,boxWidth:d,boxPadding:m}=r,f=pn(r.bodyFont),b=f.lineHeight,v=0,w=Cu(r.rtl,this.x,this.width),x=function(Ve){i.fillText(Ve,w.x(e.x+v),e.y+b/2),e.y+=b+a},D=w.textAlign(s),P,W,Z,K,re,Ee,be;for(i.textAlign=s,i.textBaseline="middle",i.font=f.string,e.x=tC(this,D,r),i.fillStyle=r.bodyColor,ii(this.beforeBody,x),v=l&&D!=="right"?s==="center"?d/2+m:d+2+m:0,K=0,Ee=o.length;K0&&i.stroke()}_updateAnimationTarget(e){let i=this.chart,r=this.$animations,o=r&&r.x,a=r&&r.y;if(o||a){let s=Qg[e.position].call(this,this._active,this._eventPosition);if(!s)return;let l=this._size=P4(this,e),c=Object.assign({},s,this._size),d=F4(i,e,c),m=N4(e,c,d,i);(o._to!==m.x||a._to!==m.y)&&(this.xAlign=d.xAlign,this.yAlign=d.yAlign,this.width=l.width,this.height=l.height,this.caretX=s.x,this.caretY=s.y,this._resolveAnimations().update(this,m))}}_willRender(){return!!this.opacity}draw(e){let i=this.options.setContext(this.getContext()),r=this.opacity;if(!r)return;this._updateAnimationTarget(i);let o={width:this.width,height:this.height},a={x:this.x,y:this.y};r=Math.abs(r)<.001?0:r;let s=sr(i.padding),l=this.title.length||this.beforeBody.length||this.body.length||this.afterBody.length||this.footer.length;i.enabled&&l&&(e.save(),e.globalAlpha=r,this.drawBackground(a,e,o,i),bT(e,i.textDirection),a.y+=s.top,this.drawTitle(a,e,i),this.drawBody(a,e,i),this.drawFooter(a,e,i),vT(e,i.textDirection),e.restore())}getActiveElements(){return this._active||[]}setActiveElements(e,i){let r=this._active,o=e.map(({datasetIndex:l,index:c})=>{let d=this.chart.getDatasetMeta(l);if(!d)throw new Error("Cannot find a dataset at index "+l);return{datasetIndex:l,element:d.data[c],index:c}}),a=!Bg(r,o),s=this._positionChanged(o,i);(a||s)&&(this._active=o,this._eventPosition=i,this._ignoreReplayEvents=!0,this.update(!0))}handleEvent(e,i,r=!0){if(i&&this._ignoreReplayEvents)return!1;this._ignoreReplayEvents=!1;let o=this.options,a=this._active||[],s=this._getActiveElements(e,a,i,r),l=this._positionChanged(s,e),c=i||!Bg(s,a)||l;return c&&(this._active=s,(o.enabled||o.external)&&(this._eventPosition={x:e.x,y:e.y},this.update(!0,i))),c}_getActiveElements(e,i,r,o){let a=this.options;if(e.type==="mouseout")return[];if(!o)return i.filter(l=>this.chart.data.datasets[l.datasetIndex]&&this.chart.getDatasetMeta(l.datasetIndex).controller.getParsed(l.index)!==void 0);let s=this.chart.getElementsAtEventForMode(e,a.mode,a,r);return a.reverse&&s.reverse(),s}_positionChanged(e,i){let{caretX:r,caretY:o,options:a}=this,s=Qg[a.position].call(this,e,i);return s!==!1&&(r!==s.x||o!==s.y)}}return t})(),fse={id:"tooltip",_element:B4,positioners:Qg,afterInit(t,n,e){e&&(t.tooltip=new B4({chart:t,options:e}))},beforeUpdate(t,n,e){t.tooltip&&t.tooltip.initialize(e)},reset(t,n,e){t.tooltip&&t.tooltip.initialize(e)},afterDraw(t){let n=t.tooltip;if(n&&n._willRender()){let e={tooltip:n};if(t.notifyPlugins("beforeTooltipDraw",De(M({},e),{cancelable:!0}))===!1)return;n.draw(t.ctx),t.notifyPlugins("afterTooltipDraw",e)}},afterEvent(t,n){if(t.tooltip){let e=n.replay;t.tooltip.handleEvent(n.event,e,n.inChartArea)&&(n.changed=!0)}},defaults:{enabled:!0,external:null,position:"average",backgroundColor:"rgba(0,0,0,0.8)",titleColor:"#fff",titleFont:{weight:"bold"},titleSpacing:2,titleMarginBottom:6,titleAlign:"left",bodyColor:"#fff",bodySpacing:2,bodyFont:{},bodyAlign:"left",footerColor:"#fff",footerSpacing:2,footerMarginTop:6,footerFont:{weight:"bold"},footerAlign:"left",padding:6,caretPadding:2,caretSize:5,cornerRadius:6,boxHeight:(t,n)=>n.bodyFont.size,boxWidth:(t,n)=>n.bodyFont.size,multiKeyBackground:"#fff",displayColors:!0,boxPadding:0,borderColor:"rgba(0,0,0,0)",borderWidth:0,animation:{duration:400,easing:"easeOutQuart"},animations:{numbers:{type:"number",properties:["x","y","width","height","caretX","caretY"]},opacity:{easing:"linear",duration:200}},callbacks:fH},defaultRoutes:{bodyFont:"font",footerFont:"font",titleFont:"font"},descriptors:{_scriptable:t=>t!=="filter"&&t!=="itemSort"&&t!=="external",_indexable:!1,callbacks:{_scriptable:!1,_indexable:!1},animation:{_fallback:!1},animations:{_fallback:"animation"}},additionalOptionScopes:["interaction"]},gse=Object.freeze({__proto__:null,Colors:Sae,Decimation:Oae,Filler:Xae,Legend:rse,SubTitle:sse,Title:ase,Tooltip:fse}),_se=(t,n,e,i)=>(typeof n=="string"?(e=t.push(n)-1,i.unshift({index:e,label:n})):isNaN(n)&&(e=null),e);function bse(t,n,e,i){let r=t.indexOf(n);if(r===-1)return _se(t,n,e,i);let o=t.lastIndexOf(n);return r!==o?e:r}var vse=(t,n)=>t===null?null:Dn(Math.round(t),0,n);function j4(t){let n=this.getLabels();return t>=0&&t{class t extends Eu{static id="category";static defaults={ticks:{callback:j4}};constructor(e){super(e),this._startValue=void 0,this._valueRange=0,this._addedLabels=[]}init(e){let i=this._addedLabels;if(i.length){let r=this.getLabels();for(let{index:o,label:a}of i)r[o]===a&&r.splice(o,1);this._addedLabels=[]}super.init(e)}parse(e,i){if(Et(e))return null;let r=this.getLabels();return i=isFinite(i)&&r[i]===e?i:bse(r,e,st(i,e),this._addedLabels),vse(i,r.length-1)}determineDataLimits(){let{minDefined:e,maxDefined:i}=this.getUserBounds(),{min:r,max:o}=this.getMinMax(!0);this.options.bounds==="ticks"&&(e||(r=0),i||(o=this.getLabels().length-1)),this.min=r,this.max=o}buildTicks(){let e=this.min,i=this.max,r=this.options.offset,o=[],a=this.getLabels();a=e===0&&i===a.length-1?a:a.slice(e,i+1),this._valueRange=Math.max(a.length-(r?0:1),1),this._startValue=this.min-(r?.5:0);for(let s=e;s<=i;s++)o.push({value:s});return o}getLabelForValue(e){return j4.call(this,e)}configure(){super.configure(),this.isHorizontal()||(this._reversePixels=!this._reversePixels)}getPixelForValue(e){return typeof e!="number"&&(e=this.parse(e)),e===null?NaN:this.getPixelForDecimal((e-this._startValue)/this._valueRange)}getPixelForTick(e){let i=this.ticks;return e<0||e>i.length-1?null:this.getPixelForValue(i[e].value)}getValueForPixel(e){return Math.round(this._startValue+this.getDecimalForPixel(e)*this._valueRange)}getBasePixel(){return this.bottom}}return t})();function xse(t,n){let e=[],{bounds:r,step:o,min:a,max:s,precision:l,count:c,maxTicks:d,maxDigits:m,includeBounds:f}=t,b=o||1,v=d-1,{min:w,max:x}=n,D=!Et(a),P=!Et(s),W=!Et(c),Z=(x-w)/(m+1),K=ZS((x-w)/v/b)*b,re,Ee,be,Ve;if(K<1e-14&&!D&&!P)return[{value:w},{value:x}];Ve=Math.ceil(x/K)-Math.floor(w/K),Ve>v&&(K=ZS(Ve*K/v/b)*b),Et(l)||(re=Math.pow(10,l),K=Math.ceil(K*re)/re),r==="ticks"?(Ee=Math.floor(w/K)*K,be=Math.ceil(x/K)*K):(Ee=w,be=x),D&&P&&o&&Mj((s-a)/o,K/1e3)?(Ve=Math.round(Math.min((s-a)/K,d)),K=(s-a)/Ve,Ee=a,be=s):W?(Ee=D?a:Ee,be=P?s:be,Ve=c-1,K=(be-Ee)/Ve):(Ve=(be-Ee)/K,Lh(Ve,Math.round(Ve),K/1e3)?Ve=Math.round(Ve):Ve=Math.ceil(Ve));let yt=Math.max(JS(K),JS(Ee));re=Math.pow(10,Et(l)?yt:l),Ee=Math.round(Ee*re)/re,be=Math.round(be*re)/re;let bt=0;for(D&&(f&&Ee!==a?(e.push({value:a}),Ees)break;e.push({value:It})}return P&&f&&be!==s?e.length&&Lh(e[e.length-1].value,s,H4(s,Z,t))?e[e.length-1].value=s:e.push({value:s}):(!P||be===s)&&e.push({value:be}),e}function H4(t,n,{horizontal:e,minRotation:i}){let r=ra(i),o=(e?Math.sin(r):Math.cos(r))||.001,a=.75*n*(""+t).length;return Math.min(n/o,a)}var $h=class extends Eu{constructor(n){super(n),this.start=void 0,this.end=void 0,this._startValue=void 0,this._endValue=void 0,this._valueRange=0}parse(n,e){return Et(n)||(typeof n=="number"||n instanceof Number)&&!isFinite(+n)?null:+n}handleTickRangeOptions(){let{beginAtZero:n}=this.options,{minDefined:e,maxDefined:i}=this.getUserBounds(),{min:r,max:o}=this,a=l=>r=e?r:l,s=l=>o=i?o:l;if(n){let l=Ba(r),c=Ba(o);l<0&&c<0?s(0):l>0&&c>0&&a(0)}if(r===o){let l=o===0?1:Math.abs(o*.05);s(o+l),n||a(r-l)}this.min=r,this.max=o}getTickLimit(){let n=this.options.ticks,{maxTicksLimit:e,stepSize:i}=n,r;return i?(r=Math.ceil(this.max/i)-Math.floor(this.min/i)+1,r>1e3&&(console.warn(`scales.${this.id}.ticks.stepSize: ${i} would result generating up to ${r} ticks. Limiting to 1000.`),r=1e3)):(r=this.computeTickLimit(),e=e||11),e&&(r=Math.min(e,r)),r}computeTickLimit(){return Number.POSITIVE_INFINITY}buildTicks(){let n=this.options,e=n.ticks,i=this.getTickLimit();i=Math.max(2,i);let r={maxTicks:i,bounds:n.bounds,min:n.min,max:n.max,precision:e.precision,step:e.stepSize,count:e.count,maxDigits:this._maxDigits(),horizontal:this.isHorizontal(),minRotation:e.minRotation||0,includeBounds:e.includeBounds!==!1},o=this._range||this,a=xse(r,o);return n.bounds==="ticks"&&XS(a,this,"value"),n.reverse?(a.reverse(),this.start=this.max,this.end=this.min):(this.start=this.min,this.end=this.max),a}configure(){let n=this.ticks,e=this.min,i=this.max;if(super.configure(),this.options.offset&&n.length){let r=(i-e)/Math.max(n.length-1,1)/2;e-=r,i+=r}this._startValue=e,this._endValue=i,this._valueRange=i-e}getLabelForValue(n){return Bh(n,this.chart.options.locale,this.options.ticks.format)}},QT=class extends $h{static id="linear";static defaults={ticks:{callback:jg.formatters.numeric}};determineDataLimits(){let{min:n,max:e}=this.getMinMax(!0);this.min=Gi(n)?n:0,this.max=Gi(e)?e:1,this.handleTickRangeOptions()}computeTickLimit(){let n=this.isHorizontal(),e=n?this.width:this.height,i=ra(this.options.ticks.minRotation),r=(n?Math.sin(i):Math.cos(i))||.001,o=this._resolveTickFontOptions(0);return Math.ceil(e/Math.min(40,o.lineHeight/r))}getPixelForValue(n){return n===null?NaN:this.getPixelForDecimal((n-this._startValue)/this._valueRange)}getValueForPixel(n){return this._startValue+this.getDecimalForPixel(n)*this._valueRange}},Xg=t=>Math.floor(gl(t)),Du=(t,n)=>Math.pow(10,Xg(t)+n);function z4(t){return t/Math.pow(10,Xg(t))===1}function U4(t,n,e){let i=Math.pow(10,e),r=Math.floor(t/i);return Math.ceil(n/i)-r}function Cse(t,n){let e=n-t,i=Xg(e);for(;U4(t,n,i)>10;)i++;for(;U4(t,n,i)<10;)i--;return Math.min(i,Xg(t))}function wse(t,{min:n,max:e}){n=no(t.min,n);let i=[],r=Xg(n),o=Cse(n,e),a=o<0?Math.pow(10,Math.abs(o)):1,s=Math.pow(10,o),l=r>o?Math.pow(10,r):0,c=Math.round((n-l)*a)/a,d=Math.floor((n-l)/s/10)*s*10,m=Math.floor((c-d)/Math.pow(10,o)),f=no(t.min,Math.round((l+d+m*Math.pow(10,o))*a)/a);for(;f=10?m=m<15?15:20:m++,m>=20&&(o++,m=2,a=o>=0?1:a),f=Math.round((l+d+m*Math.pow(10,o))*a)/a;let b=no(t.max,f);return i.push({value:b,major:z4(b),significand:m}),i}var KT=class extends Eu{static id="logarithmic";static defaults={ticks:{callback:jg.formatters.logarithmic,major:{enabled:!0}}};constructor(n){super(n),this.start=void 0,this.end=void 0,this._startValue=void 0,this._valueRange=0}parse(n,e){let i=$h.prototype.parse.apply(this,[n,e]);if(i===0){this._zero=!0;return}return Gi(i)&&i>0?i:null}determineDataLimits(){let{min:n,max:e}=this.getMinMax(!0);this.min=Gi(n)?Math.max(0,n):null,this.max=Gi(e)?Math.max(0,e):null,this.options.beginAtZero&&(this._zero=!0),this._zero&&this.min!==this._suggestedMin&&!Gi(this._userMin)&&(this.min=n===Du(this.min,0)?Du(this.min,-1):Du(this.min,0)),this.handleTickRangeOptions()}handleTickRangeOptions(){let{minDefined:n,maxDefined:e}=this.getUserBounds(),i=this.min,r=this.max,o=s=>i=n?i:s,a=s=>r=e?r:s;i===r&&(i<=0?(o(1),a(10)):(o(Du(i,-1)),a(Du(r,1)))),i<=0&&o(Du(r,-1)),r<=0&&a(Du(i,1)),this.min=i,this.max=r}buildTicks(){let n=this.options,e={min:this._userMin,max:this._userMax},i=wse(e,this);return n.bounds==="ticks"&&XS(i,this,"value"),n.reverse?(i.reverse(),this.start=this.max,this.end=this.min):(this.start=this.min,this.end=this.max),i}getLabelForValue(n){return n===void 0?"0":Bh(n,this.chart.options.locale,this.options.ticks.format)}configure(){let n=this.min;super.configure(),this._startValue=gl(n),this._valueRange=gl(this.max)-gl(n)}getPixelForValue(n){return(n===void 0||n===0)&&(n=this.min),n===null||isNaN(n)?NaN:this.getPixelForDecimal(n===this.min?0:(gl(n)-this._startValue)/this._valueRange)}getValueForPixel(n){let e=this.getDecimalForPixel(n);return Math.pow(10,this._startValue+e*this._valueRange)}};function ZT(t){let n=t.ticks;if(n.display&&t.display){let e=sr(n.backdropPadding);return st(n.font&&n.font.size,xi.font.size)+e.height}return 0}function Dse(t,n,e){return e=Ei(e)?e:[e],{w:Fj(t,n.string,e),h:e.length*n.lineHeight}}function $4(t,n,e,i,r){return t===i||t===r?{start:n-e/2,end:n+e/2}:tr?{start:n-e,end:n}:{start:n,end:n+e}}function Ese(t){let n={l:t.left+t._padding.left,r:t.right-t._padding.right,t:t.top+t._padding.top,b:t.bottom-t._padding.bottom},e=Object.assign({},n),i=[],r=[],o=t._pointLabels.length,a=t.options.pointLabels,s=a.centerPointLabels?Ht/o:0;for(let l=0;ln.r&&(s=(i.end-n.r)/o,t.r=Math.max(t.r,n.r+s)),r.startn.b&&(l=(r.end-n.b)/a,t.b=Math.max(t.b,n.b+l))}function kse(t,n,e){let i=t.drawingArea,{extra:r,additionalAngle:o,padding:a,size:s}=e,l=t.getPointPosition(n,i+r+a,o),c=Math.round(Hx(or(l.angle+Zi))),d=Ose(l.y,s.h,c),m=Ise(c),f=Ase(l.x,s.w,m);return{visible:!0,x:l.x,y:d,textAlign:m,left:f,top:d,right:f+s.w,bottom:d+s.h}}function Sse(t,n){if(!n)return!0;let{left:e,top:i,right:r,bottom:o}=t;return!(Ss({x:e,y:i},n)||Ss({x:e,y:o},n)||Ss({x:r,y:i},n)||Ss({x:r,y:o},n))}function Tse(t,n,e){let i=[],r=t._pointLabels.length,o=t.options,{centerPointLabels:a,display:s}=o.pointLabels,l={extra:ZT(o)/2,additionalAngle:a?Ht/r:0},c;for(let d=0;d270||e<90)&&(t-=n),t}function Rse(t,n,e){let{left:i,top:r,right:o,bottom:a}=e,{backdropColor:s}=n;if(!Et(s)){let l=Tc(n.borderRadius),c=sr(n.backdropPadding);t.fillStyle=s;let d=i-c.left,m=r-c.top,f=o-i+c.width,b=a-r+c.height;Object.values(l).some(v=>v!==0)?(t.beginPath(),jh(t,{x:d,y:m,w:f,h:b,radius:l}),t.fill()):t.fillRect(d,m,f,b)}}function Pse(t,n){let{ctx:e,options:{pointLabels:i}}=t;for(let r=n-1;r>=0;r--){let o=t._pointLabelItems[r];if(!o.visible)continue;let a=i.setContext(t.getPointLabelContext(r));Rse(e,a,o);let s=pn(a.font),{x:l,y:c,textAlign:d}=o;Sc(e,t._pointLabels[r],l,c+s.lineHeight/2,s,{color:a.color,textAlign:d,textBaseline:"middle"})}}function gH(t,n,e,i){let{ctx:r}=t;if(e)r.arc(t.xCenter,t.yCenter,n,0,Mi);else{let o=t.getPointPosition(0,n);r.moveTo(o.x,o.y);for(let a=1;a{let r=yi(this.options.pointLabels.callback,[e,i],this);return r||r===0?r:""}).filter((e,i)=>this.chart.getDataVisibility(i))}fit(){let n=this.options;n.display&&n.pointLabels.display?Ese(this):this.setCenterPoint(0,0,0,0)}setCenterPoint(n,e,i,r){this.xCenter+=Math.floor((n-e)/2),this.yCenter+=Math.floor((i-r)/2),this.drawingArea-=Math.min(this.drawingArea/2,Math.max(n,e,i,r))}getIndexAngle(n){let e=Mi/(this._pointLabels.length||1),i=this.options.startAngle||0;return or(n*e+ra(i))}getDistanceFromCenterForValue(n){if(Et(n))return NaN;let e=this.drawingArea/(this.max-this.min);return this.options.reverse?(this.max-n)*e:(n-this.min)*e}getValueForDistanceFromCenter(n){if(Et(n))return NaN;let e=n/(this.drawingArea/(this.max-this.min));return this.options.reverse?this.max-e:this.min+e}getPointLabelContext(n){let e=this._pointLabels||[];if(n>=0&&n{if(m!==0||m===0&&this.min<0){l=this.getDistanceFromCenterForValue(d.value);let f=this.getContext(m),b=r.setContext(f),v=o.setContext(f);Fse(this,b,l,a,v)}}),i.display){for(n.save(),s=a-1;s>=0;s--){let d=i.setContext(this.getPointLabelContext(s)),{color:m,lineWidth:f}=d;!f||!m||(n.lineWidth=f,n.strokeStyle=m,n.setLineDash(d.borderDash),n.lineDashOffset=d.borderDashOffset,l=this.getDistanceFromCenterForValue(e.reverse?this.min:this.max),c=this.getPointPosition(s,l),n.beginPath(),n.moveTo(this.xCenter,this.yCenter),n.lineTo(c.x,c.y),n.stroke())}n.restore()}}drawBorder(){}drawLabels(){let n=this.ctx,e=this.options,i=e.ticks;if(!i.display)return;let r=this.getIndexAngle(0),o,a;n.save(),n.translate(this.xCenter,this.yCenter),n.rotate(r),n.textAlign="center",n.textBaseline="middle",this.ticks.forEach((s,l)=>{if(l===0&&this.min>=0&&!e.reverse)return;let c=i.setContext(this.getContext(l)),d=pn(c.font);if(o=this.getDistanceFromCenterForValue(this.ticks[l].value),c.showLabelBackdrop){n.font=d.string,a=n.measureText(s.label).width,n.fillStyle=c.backdropColor;let m=sr(c.backdropPadding);n.fillRect(-a/2-m.left,-o-d.size/2-m.top,a+m.width,d.size+m.height)}Sc(n,s.label,0,-o,d,{color:c.color,strokeColor:c.textStrokeColor,strokeWidth:c.textStrokeWidth})}),n.restore()}drawTitle(){}},pC={millisecond:{common:!0,size:1,steps:1e3},second:{common:!0,size:1e3,steps:60},minute:{common:!0,size:6e4,steps:60},hour:{common:!0,size:36e5,steps:24},day:{common:!0,size:864e5,steps:30},week:{common:!1,size:6048e5,steps:4},month:{common:!0,size:2628e6,steps:12},quarter:{common:!1,size:7884e6,steps:4},year:{common:!0,size:3154e7}},oo=Object.keys(pC);function W4(t,n){return t-n}function G4(t,n){if(Et(n))return null;let e=t._adapter,{parser:i,round:r,isoWeekday:o}=t._parseOpts,a=n;return typeof i=="function"&&(a=i(a)),Gi(a)||(a=typeof i=="string"?e.parse(a,i):e.parse(a)),a===null?null:(r&&(a=r==="week"&&(xu(o)||o===!0)?e.startOf(a,"isoWeek",o):e.startOf(a,r)),+a)}function q4(t,n,e,i){let r=oo.length;for(let o=oo.indexOf(t);o=oo.indexOf(e);o--){let a=oo[o];if(pC[a].common&&t._adapter.diff(r,i,a)>=n-1)return a}return oo[e?oo.indexOf(e):0]}function Vse(t){for(let n=oo.indexOf(t)+1,e=oo.length;n=n?e[i]:e[r];t[o]=!0}}function Bse(t,n,e,i){let r=t._adapter,o=+r.startOf(n[0].value,i),a=n[n.length-1].value,s,l;for(s=o;s<=a;s=+r.add(s,1,i))l=e[s],l>=0&&(n[l].major=!0);return n}function Q4(t,n,e){let i=[],r={},o=n.length,a,s;for(a=0;a{class t extends Eu{static id="time";static defaults={bounds:"data",adapters:{},time:{parser:!1,unit:!1,round:!1,isoWeekday:!1,minUnit:"millisecond",displayFormats:{}},ticks:{source:"auto",callback:!1,major:{enabled:!1}}};constructor(e){super(e),this._cache={data:[],labels:[],all:[]},this._unit="day",this._majorUnit=void 0,this._offsets={},this._normalized=!1,this._parseOpts=void 0}init(e,i={}){let r=e.time||(e.time={}),o=this._adapter=new Kre._date(e.adapters.date);o.init(i),Fh(r.displayFormats,o.formats()),this._parseOpts={parser:r.parser,round:r.round,isoWeekday:r.isoWeekday},super.init(e),this._normalized=i.normalized}parse(e,i){return e===void 0?null:G4(this,e)}beforeLayout(){super.beforeLayout(),this._cache={data:[],labels:[],all:[]}}determineDataLimits(){let e=this.options,i=this._adapter,r=e.time.unit||"day",{min:o,max:a,minDefined:s,maxDefined:l}=this.getUserBounds();function c(d){!s&&!isNaN(d.min)&&(o=Math.min(o,d.min)),!l&&!isNaN(d.max)&&(a=Math.max(a,d.max))}(!s||!l)&&(c(this._getLabelBounds()),(e.bounds!=="ticks"||e.ticks.source!=="labels")&&c(this.getMinMax(!1))),o=Gi(o)&&!isNaN(o)?o:+i.startOf(Date.now(),r),a=Gi(a)&&!isNaN(a)?a:+i.endOf(Date.now(),r)+1,this.min=Math.min(o,a-1),this.max=Math.max(o+1,a)}_getLabelBounds(){let e=this.getLabelTimestamps(),i=Number.POSITIVE_INFINITY,r=Number.NEGATIVE_INFINITY;return e.length&&(i=e[0],r=e[e.length-1]),{min:i,max:r}}buildTicks(){let e=this.options,i=e.time,r=e.ticks,o=r.source==="labels"?this.getLabelTimestamps():this._generate();e.bounds==="ticks"&&o.length&&(this.min=this._userMin||o[0],this.max=this._userMax||o[o.length-1]);let a=this.min,s=this.max,l=Tj(o,a,s);return this._unit=i.unit||(r.autoSkip?q4(i.minUnit,this.min,this.max,this._getLabelCapacity(a)):Lse(this,l.length,i.minUnit,this.min,this.max)),this._majorUnit=!r.major.enabled||this._unit==="year"?void 0:Vse(this._unit),this.initOffsets(o),e.reverse&&l.reverse(),Q4(this,l,this._majorUnit)}afterAutoSkip(){this.options.offsetAfterAutoskip&&this.initOffsets(this.ticks.map(e=>+e.value))}initOffsets(e=[]){let i=0,r=0,o,a;this.options.offset&&e.length&&(o=this.getDecimalForValue(e[0]),e.length===1?i=1-o:i=(this.getDecimalForValue(e[1])-o)/2,a=this.getDecimalForValue(e[e.length-1]),e.length===1?r=a:r=(a-this.getDecimalForValue(e[e.length-2]))/2);let s=e.length<3?.5:.25;i=Dn(i,0,s),r=Dn(r,0,s),this._offsets={start:i,end:r,factor:1/(i+1+r)}}_generate(){let e=this._adapter,i=this.min,r=this.max,o=this.options,a=o.time,s=a.unit||q4(a.minUnit,i,r,this._getLabelCapacity(i)),l=st(o.ticks.stepSize,1),c=s==="week"?a.isoWeekday:!1,d=xu(c)||c===!0,m={},f=i,b,v;if(d&&(f=+e.startOf(f,"isoWeek",c)),f=+e.startOf(f,d?"day":s),e.diff(r,i,s)>1e5*l)throw new Error(i+" and "+r+" are too far apart with stepSize of "+l+" "+s);let w=o.ticks.source==="data"&&this.getDataTimestamps();for(b=f,v=0;b+x)}getLabelForValue(e){let i=this._adapter,r=this.options.time;return r.tooltipFormat?i.format(e,r.tooltipFormat):i.format(e,r.displayFormats.datetime)}format(e,i){let o=this.options.time.displayFormats,a=this._unit,s=i||o[a];return this._adapter.format(e,s)}_tickFormatFunction(e,i,r,o){let a=this.options,s=a.ticks.callback;if(s)return yi(s,[e,i,r],this);let l=a.time.displayFormats,c=this._unit,d=this._majorUnit,m=c&&l[c],f=d&&l[d],b=r[i],v=d&&f&&b&&b.major;return this._adapter.format(e,o||(v?f:m))}generateTickLabels(e){let i,r,o;for(i=0,r=e.length;i0?l:1}getDataTimestamps(){let e=this._cache.data||[],i,r;if(e.length)return e;let o=this.getMatchingVisibleMetas();if(this._normalized&&o.length)return this._cache.data=o[0].controller.getAllParsedValues(this);for(i=0,r=o.length;i=t[i].pos&&n<=t[r].pos&&({lo:i,hi:r}=ks(t,"pos",n)),{pos:o,time:s}=t[i],{pos:a,time:l}=t[r]):(n>=t[i].time&&n<=t[r].time&&({lo:i,hi:r}=ks(t,"time",n)),{time:o,pos:s}=t[i],{time:a,pos:l}=t[r]);let c=a-o;return c?s+(l-s)*(n-o)/c:s}var eI=class extends JT{static id="timeseries";static defaults=JT.defaults;constructor(n){super(n),this._table=[],this._minPos=void 0,this._tableRange=void 0}initOffsets(){let n=this._getTimestampsForTable(),e=this._table=this.buildLookupTable(n);this._minPos=iC(e,this.min),this._tableRange=iC(e,this.max)-this._minPos,super.initOffsets(n)}buildLookupTable(n){let{min:e,max:i}=this,r=[],o=[],a,s,l,c,d;for(a=0,s=n.length;a=e&&c<=i&&r.push(c);if(r.length<2)return[{time:e,pos:0},{time:i,pos:1}];for(a=0,s=r.length;ar-o)}_getTimestampsForTable(){let n=this._cache.all||[];if(n.length)return n;let e=this.getDataTimestamps(),i=this.getLabelTimestamps();return e.length&&i.length?n=this.normalize(e.concat(i)):n=e.length?e:i,n=this._cache.all=n,n}getDecimalForValue(n){return(iC(this._table,n)-this._minPos)/this._tableRange}getValueForPixel(n){let e=this._offsets,i=this.getDecimalForPixel(n)/e.factor-e.end;return iC(this._table,i*this._tableRange+this._minPos,!0)}},jse=Object.freeze({__proto__:null,CategoryScale:yse,LinearScale:QT,LogarithmicScale:KT,RadialLinearScale:XT,TimeScale:JT,TimeSeriesScale:eI}),_H=[Qre,xae,gse,jse];var Hse=typeof global=="object"&&global&&global.Object===Object&&global,fC=Hse;var zse=typeof self=="object"&&self&&self.Object===Object&&self,Use=fC||zse||Function("return this")(),oa=Use;var $se=oa.Symbol,Wh=$se;var bH=Object.prototype,Wse=bH.hasOwnProperty,Gse=bH.toString,e_=Wh?Wh.toStringTag:void 0;function qse(t){var n=Wse.call(t,e_),e=t[e_];try{t[e_]=void 0;var i=!0}catch{}var r=Gse.call(t);return i&&(n?t[e_]=e:delete t[e_]),r}var vH=qse;var Yse=Object.prototype,Qse=Yse.toString;function Kse(t){return Qse.call(t)}var yH=Kse;var Zse="[object Null]",Xse="[object Undefined]",xH=Wh?Wh.toStringTag:void 0;function Jse(t){return t==null?t===void 0?Xse:Zse:xH&&xH in Object(t)?vH(t):yH(t)}var Rc=Jse;function ele(t){return t!=null&&typeof t=="object"}var Rs=ele;var tle=Array.isArray,t_=tle;function ile(t){var n=typeof t;return t!=null&&(n=="object"||n=="function")}var ao=ile;function nle(t){return t}var gC=nle;var rle="[object AsyncFunction]",ole="[object Function]",ale="[object GeneratorFunction]",sle="[object Proxy]";function lle(t){if(!ao(t))return!1;var n=Rc(t);return n==ole||n==ale||n==rle||n==sle}var Gh=lle;var cle=oa["__core-js_shared__"],_C=cle;var CH=(function(){var t=/[^.]+$/.exec(_C&&_C.keys&&_C.keys.IE_PROTO||"");return t?"Symbol(src)_1."+t:""})();function dle(t){return!!CH&&CH in t}var wH=dle;var ule=Function.prototype,mle=ule.toString;function hle(t){if(t!=null){try{return mle.call(t)}catch{}try{return t+""}catch{}}return""}var DH=hle;var ple=/[\\^$.*+?()[\]{}|]/g,fle=/^\[object .+?Constructor\]$/,gle=Function.prototype,_le=Object.prototype,ble=gle.toString,vle=_le.hasOwnProperty,yle=RegExp("^"+ble.call(vle).replace(ple,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function xle(t){if(!ao(t)||wH(t))return!1;var n=Gh(t)?yle:fle;return n.test(DH(t))}var EH=xle;function Cle(t,n){return t?.[n]}var MH=Cle;function wle(t,n){var e=MH(t,n);return EH(e)?e:void 0}var qh=wle;var kH=Object.create,Dle=(function(){function t(){}return function(n){if(!ao(n))return{};if(kH)return kH(n);t.prototype=n;var e=new t;return t.prototype=void 0,e}})(),SH=Dle;function Ele(t,n,e){switch(e.length){case 0:return t.call(n);case 1:return t.call(n,e[0]);case 2:return t.call(n,e[0],e[1]);case 3:return t.call(n,e[0],e[1],e[2])}return t.apply(n,e)}var TH=Ele;function Mle(t,n){var e=-1,i=t.length;for(n||(n=Array(i));++e0){if(++n>=kle)return arguments[0]}else n=0;return t.apply(void 0,arguments)}}var AH=Ile;function Ale(t){return function(){return t}}var OH=Ale;var Ole=(function(){try{var t=qh(Object,"defineProperty");return t({},"",{}),t}catch{}})(),Yh=Ole;var Rle=Yh?function(t,n){return Yh(t,"toString",{configurable:!0,enumerable:!1,value:OH(n),writable:!0})}:gC,RH=Rle;var Ple=AH(RH),PH=Ple;var Fle=9007199254740991,Nle=/^(?:0|[1-9]\d*)$/;function Lle(t,n){var e=typeof t;return n=n??Fle,!!n&&(e=="number"||e!="symbol"&&Nle.test(t))&&t>-1&&t%1==0&&t-1&&t%1==0&&t<=Gle}var vC=qle;function Yle(t){return t!=null&&vC(t.length)&&!Gh(t)}var Kh=Yle;function Qle(t,n,e){if(!ao(e))return!1;var i=typeof n;return(i=="number"?Kh(e)&&bC(n,e.length):i=="string"&&n in e)?Pc(e[n],t):!1}var jH=Qle;function Kle(t){return BH(function(n,e){var i=-1,r=e.length,o=r>1?e[r-1]:void 0,a=r>2?e[2]:void 0;for(o=t.length>3&&typeof o=="function"?(r--,o):void 0,a&&jH(e[0],e[1],a)&&(o=r<3?void 0:o,r=1),n=Object(n);++i-1}var d5=ude;function mde(t,n){var e=this.__data__,i=Fc(e,t);return i<0?(++this.size,e.push([t,n])):e[i][1]=n,this}var u5=mde;function Xh(t){var n=-1,e=t==null?0:t.length;for(this.clear();++n{let n=class n{constructor(){this.colorschemesOptions=new tt(void 0)}setColorschemesOptions(i){this.pColorschemesOptions=i,this.colorschemesOptions.next(i)}getColorschemesOptions(){return this.pColorschemesOptions}};n.\u0275fac=function(r){return new(r||n)},n.\u0275prov=O({token:n,factory:n.\u0275fac,providedIn:"root"});let t=n;return t})(),W5=(()=>{let n=class n{constructor(i,r,o,a){this.zone=r,this.themeService=o,this.type="bar",this.plugins=[],this.chartClick=new U,this.chartHover=new U,this.subs=[],this.themeOverrides={},a?.registerables&&uC.register(...a.registerables),a?.defaults&&xi.set(a.defaults),this.ctx=i.nativeElement.getContext("2d"),this.subs.push(this.themeService.colorschemesOptions.pipe(Sn()).subscribe(s=>this.themeChanged(s)))}ngOnChanges(i){let r=["type"],o=Object.getOwnPropertyNames(i);if(o.some(a=>r.includes(a))||o.every(a=>i[a].isFirstChange()))this.render();else{let a=this.getChartConfiguration();this.chart&&(Object.assign(this.chart.config.data,a.data),this.chart.config.plugins&&Object.assign(this.chart.config.plugins,a.plugins),this.chart.config.options&&Object.assign(this.chart.config.options,a.options)),this.update()}}ngOnDestroy(){this.chart&&(this.chart.destroy(),this.chart=void 0),this.subs.forEach(i=>i.unsubscribe())}render(){return this.chart&&this.chart.destroy(),this.zone.runOutsideAngular(()=>this.chart=new uC(this.ctx,this.getChartConfiguration()))}update(i){this.chart&&this.zone.runOutsideAngular(()=>this.chart?.update(i))}hideDataset(i,r){this.chart&&(this.chart.getDatasetMeta(i).hidden=r,this.update())}isDatasetHidden(i){return this.chart?.getDatasetMeta(i)?.hidden}toBase64Image(){return this.chart?.toBase64Image()}themeChanged(i){this.themeOverrides=i,this.chart&&(this.chart.config.options&&Object.assign(this.chart.config.options,this.getChartOptions()),this.update())}getChartOptions(){return MC({onHover:(i,r)=>{!this.chartHover.observed&&!this.chartHover.observers?.length||this.zone.run(()=>this.chartHover.emit({event:i,active:r}))},onClick:(i,r)=>{!this.chartClick.observed&&!this.chartClick.observers?.length||this.zone.run(()=>this.chartClick.emit({event:i,active:r}))}},this.themeOverrides,this.options,{plugins:{legend:{display:this.legend}}})}getChartConfiguration(){return{type:this.type,data:this.getChartData(),options:this.getChartOptions(),plugins:this.plugins}}getChartData(){return this.data?this.data:{labels:this.labels||[],datasets:this.datasets||[]}}};n.\u0275fac=function(r){return new(r||n)(_e(q),_e(ae),_e(Yde),_e(z5,8))},n.\u0275dir=F({type:n,selectors:[["canvas","baseChart",""]],inputs:{type:"type",legend:"legend",data:"data",options:"options",plugins:"plugins",labels:"labels",datasets:"datasets"},outputs:{chartClick:"chartClick",chartHover:"chartHover"},exportAs:["base-chart"],features:[Ae]});let t=n;return t})();var ko={production:!0,baseUrl:"",useHash:!1,apiUrl:"https://app-talent-api-dev.azurewebsites.net/api/v1",identityServerUrl:"https://app-talent-ids-dev.azurewebsites.net",clientId:"TalentManagement",scope:"openid profile email roles app.api.talentmanagement.read app.api.talentmanagement.write",allowAnonymousAccess:!1};var G5={issuer:ko.identityServerUrl,redirectUri:window.location.origin+"/callback",postLogoutRedirectUri:window.location.origin,clientId:ko.clientId,scope:ko.scope,responseType:"code",showDebugInformation:!ko.production,useSilentRefresh:!0,silentRefreshRedirectUri:window.location.origin+"/silent-refresh.html",silentRefreshTimeout:5e3,timeoutFactor:.75,sessionChecksEnabled:!0,clearHashAfterLogin:!0,strictDiscoveryDocumentValidation:!1,skipIssuerCheck:!ko.production,requireHttps:ko.production,requestAccessToken:!0,dummyClientSecret:void 0,customQueryParams:{}};var Tt=(()=>{let n=class n{constructor(){this.oauthService=u(Wm),this.router=u(Re),this.isAuthenticatedSubject=new tt(!1),this.isAuthenticated$=this.isAuthenticatedSubject.asObservable(),this.userInfoSubject=new tt(null),this.userInfo$=this.userInfoSubject.asObservable(),this.permissionsChangeSubject=new z,this.permissionsChange$=this.permissionsChangeSubject.asObservable(),this.configureOAuth()}configureOAuth(){this.oauthService.configure(G5),this.oauthService.events.pipe(ce(i=>i.type==="token_received")).subscribe(()=>{this.handleSuccessfulLogin()}),this.oauthService.events.pipe(ce(i=>i.type==="token_error"||i.type==="token_refresh_error")).subscribe(()=>{console.error("Token error occurred")}),this.oauthService.setupAutomaticSilentRefresh()}initAuth(){return fn(this,null,function*(){try{return yield this.oauthService.loadDiscoveryDocument(),yield this.oauthService.tryLogin(),this.oauthService.hasValidAccessToken()?(yield this.handleSuccessfulLogin(),!0):!1}catch(i){return console.error("Error during authentication initialization:",i),!1}})}login(i){i?this.oauthService.initCodeFlow(i):this.oauthService.initCodeFlow()}logout(){this.oauthService.logOut(),this.isAuthenticatedSubject.next(!1),this.userInfoSubject.next(null),this.permissionsChangeSubject.next()}handleSuccessfulLogin(){return fn(this,null,function*(){try{let i=this.oauthService.getIdentityClaims();this.userInfoSubject.next(i),this.isAuthenticatedSubject.next(!0),this.permissionsChangeSubject.next()}catch(i){console.error("Error loading user info:",i)}})}isAuthenticated(){return this.oauthService.hasValidAccessToken()}getAccessToken(){return this.oauthService.getAccessToken()}getUserInfo(){return this.userInfoSubject.value}getUserRoles(){let i=this.oauthService.getIdentityClaims();if(!i)return[];let r=i.role;return Array.isArray(r)?r:typeof r=="string"?[r]:[]}hasRole(i){return this.getUserRoles().includes(i)}isEmployee(){return this.hasRole("Employee")}isManager(){return this.hasRole("Manager")}isHRAdmin(){return this.hasRole("HRAdmin")}hasAnyRole(i){let r=this.getUserRoles();return i.some(o=>r.includes(o))}getUserDisplayName(){let i=this.getUserInfo();return i?.name||i?.email||"User"}};n.\u0275fac=function(r){return new(r||n)},n.\u0275prov=O({token:n,factory:n.\u0275fac,providedIn:"root"});let t=n;return t})();var sI=(t,n)=>{let e=u(Tt);return ko.allowAnonymousAccess||e.isAuthenticated()?!0:(e.login(n?.url),!1)};var a_=t=>{let n=u(Tt),e=u(Re);return n.isAuthenticated()?n.isManager()||n.isHRAdmin()?!0:(e.navigate(["/403"]),!1):(n.login(),!1)},s_=t=>{let n=u(Tt),e=u(Re);return n.isAuthenticated()?n.isHRAdmin()?!0:(e.navigate(["/403"]),!1):(n.login(),!1)};var so=(()=>{let n=class n{constructor(){this.menu$=new tt([])}getAll(){return this.menu$.asObservable()}change(){return this.menu$.pipe(Nl())}set(i){return this.menu$.next(i),this.menu$.asObservable()}add(i){let r=this.menu$.value;r.push(i),this.menu$.next(r)}reset(){this.menu$.next([])}buildRoute(i){let r="";return i.forEach(o=>{o&&o.trim()&&(r+="/"+o.replace(/^\/+|\/+$/g,""))}),r}getItemName(i){return this.getLevel(i)[i.length-1]}isLeafItem(i){let r=i.route===void 0,o=i.children===void 0,a=!o&&i.children?.length===0;return r||o||a}deepClone(i){return JSON.parse(JSON.stringify(i))}isJsonObjEqual(i,r){return JSON.stringify(i)===JSON.stringify(r)}isRouteEqual(i,r){return r=this.deepClone(r),r=r.filter(o=>o!==""),this.isJsonObjEqual(i,r)}getLevel(i){let r=[];return this.menu$.value.forEach(o=>{let a=[{item:o,parentNamePathList:[],realRouteArr:[]}];for(;a.length>0;){let s=[];for(let l of a){let c=l.item,d=this.deepClone(l.parentNamePathList).concat(c.name),m=this.deepClone(l.realRouteArr).concat(c.route);if(this.isRouteEqual(i,m)){r=d;break}if(!this.isLeafItem(c)){let f=c.children?.map(b=>({item:b,parentNamePathList:d,realRouteArr:m}));s=s.concat(f)}}a=s}}),r}addNamespace(i,r){i.forEach(o=>{o.name=`${r}.${o.name}`,o.children&&o.children.length>0&&this.addNamespace(o.children,o.name)})}};n.\u0275fac=function(r){return new(r||n)},n.\u0275prov=O({token:n,factory:n.\u0275fac,providedIn:"root"});let t=n;return t})();var kC;function Qde(){if(kC===void 0&&(kC=null,typeof window<"u")){let t=window;t.trustedTypes!==void 0&&(kC=t.trustedTypes.createPolicy("angular#components",{createHTML:n=>n}))}return kC}function l_(t){return Qde()?.createHTML(t)||t}function q5(t){return Error(`Unable to find icon with the name "${t}"`)}function Kde(){return Error("Could not find HttpClient for use with Angular Material icons. Please add provideHttpClient() to your providers.")}function Y5(t){return Error(`The URL provided to MatIconRegistry was not trusted as a resource URL via Angular's DomSanitizer. Attempted URL was "${t}".`)}function Q5(t){return Error(`The literal provided to MatIconRegistry was not trusted as safe HTML by Angular's DomSanitizer. Attempted literal was "${t}".`)}var Cl=class{url;svgText;options;svgElement;constructor(n,e,i){this.url=n,this.svgText=e,this.options=i}},Z5=(()=>{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,i,r,o){this._httpClient=e,this._sanitizer=i,this._errorHandler=o,this._document=r}addSvgIcon(e,i,r){return this.addSvgIconInNamespace("",e,i,r)}addSvgIconLiteral(e,i,r){return this.addSvgIconLiteralInNamespace("",e,i,r)}addSvgIconInNamespace(e,i,r,o){return this._addSvgIconConfig(e,i,new Cl(r,null,o))}addSvgIconResolver(e){return this._resolvers.push(e),this}addSvgIconLiteralInNamespace(e,i,r,o){let a=this._sanitizer.sanitize(An.HTML,r);if(!a)throw Q5(r);let s=l_(a);return this._addSvgIconConfig(e,i,new Cl("",s,o))}addSvgIconSet(e,i){return this.addSvgIconSetInNamespace("",e,i)}addSvgIconSetLiteral(e,i){return this.addSvgIconSetLiteralInNamespace("",e,i)}addSvgIconSetInNamespace(e,i,r){return this._addSvgIconSetConfig(e,new Cl(i,null,r))}addSvgIconSetLiteralInNamespace(e,i,r){let o=this._sanitizer.sanitize(An.HTML,i);if(!o)throw Q5(i);let a=l_(o);return this._addSvgIconSetConfig(e,new Cl("",a,r))}registerFontClassAlias(e,i=e){return this._fontCssClassesByAlias.set(e,i),this}classNameForFontAlias(e){return this._fontCssClassesByAlias.get(e)||e}setDefaultFontSetClass(...e){return this._defaultFontSetClass=e,this}getDefaultFontSetClass(){return this._defaultFontSetClass}getSvgIconFromUrl(e){let i=this._sanitizer.sanitize(An.RESOURCE_URL,e);if(!i)throw Y5(e);let r=this._cachedIconsByUrl.get(i);return r?Q(SC(r)):this._loadSvgIconFromConfig(new Cl(e,null)).pipe(Be(o=>this._cachedIconsByUrl.set(i,o)),se(o=>SC(o)))}getNamedSvgIcon(e,i=""){let r=K5(i,e),o=this._svgIconConfigs.get(r);if(o)return this._getSvgFromConfig(o);if(o=this._getIconConfigFromResolvers(i,e),o)return this._svgIconConfigs.set(r,o),this._getSvgFromConfig(o);let a=this._iconSetConfigs.get(i);return a?this._getSvgFromIconSetConfigs(e,a):Wn(q5(r))}ngOnDestroy(){this._resolvers=[],this._svgIconConfigs.clear(),this._iconSetConfigs.clear(),this._cachedIconsByUrl.clear()}_getSvgFromConfig(e){return e.svgText?Q(SC(this._svgElementFromConfig(e))):this._loadSvgIconFromConfig(e).pipe(se(i=>SC(i)))}_getSvgFromIconSetConfigs(e,i){let r=this._extractIconWithNameFromAnySet(e,i);if(r)return Q(r);let o=i.filter(a=>!a.svgText).map(a=>this._loadSvgIconSetFromConfig(a).pipe(fi(s=>{let c=`Loading icon set URL: ${this._sanitizer.sanitize(An.RESOURCE_URL,a.url)} failed: ${s.message}`;return this._errorHandler.handleError(new Error(c)),Q(null)})));return Ga(o).pipe(se(()=>{let a=this._extractIconWithNameFromAnySet(e,i);if(!a)throw q5(e);return a}))}_extractIconWithNameFromAnySet(e,i){for(let r=i.length-1;r>=0;r--){let o=i[r];if(o.svgText&&o.svgText.toString().indexOf(e)>-1){let a=this._svgElementFromConfig(o),s=this._extractSvgIconFromSet(a,e,o.options);if(s)return s}}return null}_loadSvgIconFromConfig(e){return this._fetchIcon(e).pipe(Be(i=>e.svgText=i),se(()=>this._svgElementFromConfig(e)))}_loadSvgIconSetFromConfig(e){return e.svgText?Q(null):this._fetchIcon(e).pipe(Be(i=>e.svgText=i))}_extractSvgIconFromSet(e,i,r){let o=e.querySelector(`[id="${i}"]`);if(!o)return null;let a=o.cloneNode(!0);if(a.removeAttribute("id"),a.nodeName.toLowerCase()==="svg")return this._setSvgAttributes(a,r);if(a.nodeName.toLowerCase()==="symbol")return this._setSvgAttributes(this._toSvgElement(a),r);let s=this._svgElementFromString(l_(""));return s.appendChild(a),this._setSvgAttributes(s,r)}_svgElementFromString(e){let i=this._document.createElement("DIV");i.innerHTML=e;let r=i.querySelector("svg");if(!r)throw Error(" tag not found");return r}_toSvgElement(e){let i=this._svgElementFromString(l_("")),r=e.attributes;for(let o=0;ol_(c)),Hr(()=>this._inProgressUrlFetches.delete(a)),Nl());return this._inProgressUrlFetches.set(a,l),l}_addSvgIconConfig(e,i,r){return this._svgIconConfigs.set(K5(e,i),r),this}_addSvgIconSetConfig(e,i){let r=this._iconSetConfigs.get(e);return r?r.push(i):this._iconSetConfigs.set(e,[i]),this}_svgElementFromConfig(e){if(!e.svgElement){let i=this._svgElementFromString(e.svgText);this._setSvgAttributes(i,e.options),e.svgElement=i}return e.svgElement}_getIconConfigFromResolvers(e,i){for(let r=0;rn?n.pathname+n.search:""}}var X5=["clip-path","color-profile","src","cursor","fill","filter","marker","marker-start","marker-mid","marker-end","mask","stroke"],iue=X5.map(t=>`[${t}]`).join(", "),nue=/^url\(['"]?#(.*?)['"]?\)$/,mt=(()=>{class t{_elementRef=u(q);_iconRegistry=u(Z5);_location=u(eue);_errorHandler=u(Tn);_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 i=this._cleanupFontValue(e);i!==this._fontSet&&(this._fontSet=i,this._updateFontIconClasses())}_fontSet;get fontIcon(){return this._fontIcon}set fontIcon(e){let i=this._cleanupFontValue(e);i!==this._fontIcon&&(this._fontIcon=i,this._updateFontIconClasses())}_fontIcon;_previousFontSetClass=[];_previousFontIconClass;_svgName;_svgNamespace;_previousPath;_elementsWithExternalReferences;_currentIconFetch=ke.EMPTY;constructor(){let e=u(new Ii("aria-hidden"),{optional:!0}),i=u(Jde,{optional:!0});i&&(i.color&&(this.color=this._defaultColor=i.color),i.fontSet&&(this.fontSet=i.fontSet)),e||this._elementRef.nativeElement.setAttribute("aria-hidden","true")}_splitIconName(e){if(!e)return["",""];let i=e.split(":");switch(i.length){case 1:return["",i[0]];case 2:return i;default:throw Error(`Invalid icon name: "${e}"`)}}ngOnInit(){this._updateFontIconClasses()}ngAfterViewChecked(){let e=this._elementsWithExternalReferences;if(e&&e.size){let i=this._location.getPathname();i!==this._previousPath&&(this._previousPath=i,this._prependPathToReferences(i))}}ngOnDestroy(){this._currentIconFetch.unsubscribe(),this._elementsWithExternalReferences&&this._elementsWithExternalReferences.clear()}_usingFontIcon(){return!this.svgIcon}_setSvgElement(e){this._clearSvgElement();let i=this._location.getPathname();this._previousPath=i,this._cacheChildrenWithExternalReferences(e),this._prependPathToReferences(i),this._elementRef.nativeElement.appendChild(e)}_clearSvgElement(){let e=this._elementRef.nativeElement,i=e.childNodes.length;for(this._elementsWithExternalReferences&&this._elementsWithExternalReferences.clear();i--;){let r=e.childNodes[i];(r.nodeType!==1||r.nodeName.toLowerCase()==="svg")&&r.remove()}}_updateFontIconClasses(){if(!this._usingFontIcon())return;let e=this._elementRef.nativeElement,i=(this.fontSet?this._iconRegistry.classNameForFontAlias(this.fontSet).split(/ +/):this._iconRegistry.getDefaultFontSetClass()).filter(r=>r.length>0);this._previousFontSetClass.forEach(r=>e.classList.remove(r)),i.forEach(r=>e.classList.add(r)),this._previousFontSetClass=i,this.fontIcon!==this._previousFontIconClass&&!i.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 i=this._elementsWithExternalReferences;i&&i.forEach((r,o)=>{r.forEach(a=>{o.setAttribute(a.name,`url('${e}#${a.value}')`)})})}_cacheChildrenWithExternalReferences(e){let i=e.querySelectorAll(iue),r=this._elementsWithExternalReferences=this._elementsWithExternalReferences||new Map;for(let o=0;o{let s=i[o],l=s.getAttribute(a),c=l?l.match(nue):null;if(c){let d=r.get(s);d||(d=[],r.set(s,d)),d.push({name:a,value:c[1]})}})}_updateSvgIcon(e){if(this._svgNamespace=null,this._svgName=null,this._currentIconFetch.unsubscribe(),e){let[i,r]=this._splitIconName(e);i&&(this._svgNamespace=i),r&&(this._svgName=r),this._currentIconFetch=this._iconRegistry.getNamedSvgIcon(r,i).pipe(lt(1)).subscribe(o=>this._setSvgElement(o),o=>{let a=`Error retrieving icon ${i}:${r}! ${o.message}`;this._errorHandler.handleError(new Error(a))})}}static \u0275fac=function(i){return new(i||t)};static \u0275cmp=E({type:t,selectors:[["mat-icon"]],hostAttrs:["role","img",1,"mat-icon","notranslate"],hostVars:10,hostBindings:function(i,r){i&2&&(X("data-mat-icon-type",r._usingFontIcon()?"font":"svg")("data-mat-icon-name",r._svgName||r.fontIcon)("data-mat-icon-namespace",r._svgNamespace||r.fontSet)("fontIcon",r._usingFontIcon()?r.fontIcon:null),it(r.color?"mat-"+r.color:""),G("mat-icon-inline",r.inline)("mat-icon-no-color",r.color!=="primary"&&r.color!=="accent"&&r.color!=="warn"))},inputs:{color:"color",inline:[2,"inline","inline",V],svgIcon:"svgIcon",fontSet:"fontSet",fontIcon:"fontIcon"},exportAs:["matIcon"],ngContentSelectors:Xde,decls:1,vars:0,template:function(i,r){i&1&&(Me(),oe(0))},styles:[`mat-icon,mat-icon.mat-primary,mat-icon.mat-accent,mat-icon.mat-warn{color:var(--mat-icon-color, inherit)}.mat-icon{-webkit-user-select:none;user-select:none;background-repeat:no-repeat;display:inline-block;fill:currentColor;height:24px;width:24px;overflow:hidden}.mat-icon.mat-icon-inline{font-size:inherit;height:inherit;line-height:inherit;width:inherit}.mat-icon.mat-ligature-font[fontIcon]::before{content:attr(fontIcon)}[dir=rtl] .mat-icon-rtl-mirror{transform:scale(-1, 1)}.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-prefix .mat-icon,.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-suffix .mat-icon{display:block}.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-prefix .mat-icon-button .mat-icon,.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})(),ot=(()=>{class t{static \u0275fac=function(i){return new(i||t)};static \u0275mod=ee({type:t});static \u0275inj=J({imports:[we,we]})}return t})();function rue(t,n){if(t&1&&(h(0,"a",3),_(1),p()),t&2){let e=C().$implicit;g(),H(e)}}function oue(t,n){if(t&1&&(h(0,"mat-icon",4),_(1,"chevron_right"),p(),h(2,"span"),_(3),me(4,"translate"),p()),t&2){let e=C().$implicit;g(3),H(Oe(4,1,e))}}function aue(t,n){if(t&1&&(h(0,"li",2),N(1,rue,2,1,"a",3),N(2,oue,5,3),p()),t&2){let e=n.$index;g(),L(e===0?1:-1),g(),L(e!==0?2:-1)}}var J5=(()=>{let n=class n{constructor(){this.router=u(Re),this.menu=u(so),this.nav=ne([]),this.navItems=[]}ngOnInit(){this.router.events.pipe(ce(i=>i instanceof vi),He(this.router)).subscribe(()=>{this.genBreadcrumb()})}genBreadcrumb(){let i=this.router.url.slice(1).split("/");this.nav().length>0?this.navItems=[...this.nav()]:(this.navItems=this.menu.getLevel(i),this.navItems.unshift("home"))}};n.\u0275fac=function(r){return new(r||n)},n.\u0275cmp=E({type:n,selectors:[["breadcrumb"]],inputs:{nav:[1,"nav"]},decls:4,vars:0,consts:[["aria-label","breadcrumb"],[1,"matero-breadcrumb"],[1,"matero-breadcrumb-item"],["href","#",1,"link"],[1,"chevron"]],template:function(r,o){r&1&&(h(0,"nav",0)(1,"ol",1),xt(2,aue,3,2,"li",2,Hi),p()()),r&2&&(g(2),Ct(o.navItems))},dependencies:[ot,mt,wr,Cr],styles:[`.matero-breadcrumb{display:flex;flex-wrap:wrap;padding:0;margin-bottom:1rem;font-size:.875rem;list-style:none}.matero-breadcrumb-item{line-height:1.125rem;text-transform:capitalize}.matero-breadcrumb-item>*{vertical-align:middle}.matero-breadcrumb-item>a.link{color:currentColor;text-decoration:none}.matero-breadcrumb-item>a.link:hover{color:currentColor;text-decoration:underline}.matero-breadcrumb-item>.chevron{width:1.125rem;height:1.125rem;font-size:1.125rem;-webkit-user-select:none;user-select:none} -`],encapsulation:2});let t=n;return t})();function sue(t,n){}var Vc=class{viewContainerRef;injector;id;role="dialog";panelClass="";hasBackdrop=!0;backdropClass="";disableClose=!1;closePredicate;width="";height="";minWidth;minHeight;maxWidth;maxHeight;positionStrategy;data=null;direction;ariaDescribedBy=null;ariaLabelledBy=null;ariaLabel=null;ariaModal=!1;autoFocus="first-tabbable";restoreFocus=!0;scrollStrategy;closeOnNavigation=!0;closeOnDestroy=!0;closeOnOverlayDetachments=!0;disableAnimations=!1;providers;container;templateContext};var cI=(()=>{class t extends dc{_elementRef=u(q);_focusTrapFactory=u(Qm);_config;_interactivityChecker=u(ac);_ngZone=u(ae);_focusMonitor=u(Yt);_renderer=u(je);_changeDetectorRef=u(ye);_injector=u(de);_platform=u(qe);_document=u(ge);_portalOutlet;_focusTrapped=new z;_focusTrap=null;_elementFocusedBeforeDialogWasOpened=null;_closeInteractionType=null;_ariaLabelledByQueue=[];_isDestroyed=!1;constructor(){super(),this._config=u(Vc,{optional:!0})||new Vc,this._config.ariaLabelledBy&&this._ariaLabelledByQueue.push(this._config.ariaLabelledBy)}_addAriaLabelledBy(e){this._ariaLabelledByQueue.push(e),this._changeDetectorRef.markForCheck()}_removeAriaLabelledBy(e){let i=this._ariaLabelledByQueue.indexOf(e);i>-1&&(this._ariaLabelledByQueue.splice(i,1),this._changeDetectorRef.markForCheck())}_contentAttached(){this._initializeFocusTrap(),this._captureInitialFocus()}_captureInitialFocus(){this._trapFocus()}ngOnDestroy(){this._focusTrapped.complete(),this._isDestroyed=!0,this._restoreFocus()}attachComponentPortal(e){this._portalOutlet.hasAttached();let i=this._portalOutlet.attachComponentPortal(e);return this._contentAttached(),i}attachTemplatePortal(e){this._portalOutlet.hasAttached();let i=this._portalOutlet.attachTemplatePortal(e);return this._contentAttached(),i}attachDomPortal=e=>{this._portalOutlet.hasAttached();let i=this._portalOutlet.attachDomPortal(e);return this._contentAttached(),i};_recaptureFocus(){this._containsFocus()||this._trapFocus()}_forceFocus(e,i){this._interactivityChecker.isFocusable(e)||(e.tabIndex=-1,this._ngZone.runOutsideAngular(()=>{let r=()=>{o(),a(),e.removeAttribute("tabindex")},o=this._renderer.listen(e,"blur",r),a=this._renderer.listen(e,"mousedown",r)})),e.focus(i)}_focusByCssSelector(e,i){let r=this._elementRef.nativeElement.querySelector(e);r&&this._forceFocus(r,i)}_trapFocus(e){this._isDestroyed||pt(()=>{let i=this._elementRef.nativeElement;switch(this._config.autoFocus){case!1:case"dialog":this._containsFocus()||i.focus(e);break;case!0:case"first-tabbable":this._focusTrap?.focusInitialElement(e)||this._focusDialogContainer(e);break;case"first-heading":this._focusByCssSelector('h1, h2, h3, h4, h5, h6, [role="heading"]',e);break;default:this._focusByCssSelector(this._config.autoFocus,e);break}this._focusTrapped.next()},{injector:this._injector})}_restoreFocus(){let e=this._config.restoreFocus,i=null;if(typeof e=="string"?i=this._document.querySelector(e):typeof e=="boolean"?i=e?this._elementFocusedBeforeDialogWasOpened:null:e&&(i=e),this._config.restoreFocus&&i&&typeof i.focus=="function"){let r=_o(),o=this._elementRef.nativeElement;(!r||r===this._document.body||r===o||o.contains(r))&&(this._focusMonitor?(this._focusMonitor.focusVia(i,this._closeInteractionType),this._closeInteractionType=null):i.focus())}this._focusTrap&&this._focusTrap.destroy()}_focusDialogContainer(e){this._elementRef.nativeElement.focus?.(e)}_containsFocus(){let e=this._elementRef.nativeElement,i=_o();return e===i||e.contains(i)}_initializeFocusTrap(){this._platform.isBrowser&&(this._focusTrap=this._focusTrapFactory.create(this._elementRef.nativeElement),this._document&&(this._elementFocusedBeforeDialogWasOpened=_o()))}static \u0275fac=function(i){return new(i||t)};static \u0275cmp=E({type:t,selectors:[["cdk-dialog-container"]],viewQuery:function(i,r){if(i&1&&ie(yr,7),i&2){let o;B(o=j())&&(r._portalOutlet=o.first)}},hostAttrs:["tabindex","-1",1,"cdk-dialog-container"],hostVars:6,hostBindings:function(i,r){i&2&&X("id",r._config.id||null)("role",r._config.role)("aria-modal",r._config.ariaModal)("aria-labelledby",r._config.ariaLabel?null:r._ariaLabelledByQueue[0])("aria-label",r._config.ariaLabel)("aria-describedby",r._config.ariaDescribedBy||null)},features:[le],decls:1,vars:0,consts:[["cdkPortalOutlet",""]],template:function(i,r){i&1&&R(0,sue,0,0,"ng-template",0)},dependencies:[yr],styles:[`.cdk-dialog-container{display:block;width:100%;height:100%;min-height:inherit;max-height:inherit} -`],encapsulation:2})}return t})(),c_=class{overlayRef;config;componentInstance;componentRef;containerInstance;disableClose;closed=new z;backdropClick;keydownEvents;outsidePointerEvents;id;_detachSubscription;constructor(n,e){this.overlayRef=n,this.config=e,this.disableClose=e.disableClose,this.backdropClick=n.backdropClick(),this.keydownEvents=n.keydownEvents(),this.outsidePointerEvents=n.outsidePointerEvents(),this.id=e.id,this.keydownEvents.subscribe(i=>{i.keyCode===27&&!this.disableClose&&!Ft(i)&&(i.preventDefault(),this.close(void 0,{focusOrigin:"keyboard"}))}),this.backdropClick.subscribe(()=>{!this.disableClose&&this._canClose()?this.close(void 0,{focusOrigin:"mouse"}):this.containerInstance._recaptureFocus?.()}),this._detachSubscription=n.detachments().subscribe(()=>{e.closeOnOverlayDetachments!==!1&&this.close()})}close(n,e){if(this._canClose(n)){let i=this.closed;this.containerInstance._closeInteractionType=e?.focusOrigin||"program",this._detachSubscription.unsubscribe(),this.overlayRef.dispose(),i.next(n),i.complete(),this.componentInstance=this.containerInstance=null}}updatePosition(){return this.overlayRef.updatePosition(),this}updateSize(n="",e=""){return this.overlayRef.updateSize({width:n,height:e}),this}addPanelClass(n){return this.overlayRef.addPanelClass(n),this}removePanelClass(n){return this.overlayRef.removePanelClass(n),this}_canClose(n){let e=this.config;return!!this.containerInstance&&(!e.closePredicate||e.closePredicate(n,e,this.componentInstance))}},lue=new T("DialogScrollStrategy",{providedIn:"root",factory:()=>{let t=u(de);return()=>uc(t)}}),cue=new T("DialogData"),due=new T("DefaultDialogConfig");function uue(t){let n=he(t),e=new U;return{valueSignal:n,get value(){return n()},change:e,ngOnDestroy(){e.complete()}}}var dI=(()=>{class t{_injector=u(de);_defaultOptions=u(due,{optional:!0});_parentDialog=u(t,{optional:!0,skipSelf:!0});_overlayContainer=u(ex);_idGenerator=u(Ze);_openDialogsAtThisLevel=[];_afterAllClosedAtThisLevel=new z;_afterOpenedAtThisLevel=new z;_ariaHiddenElements=new Map;_scrollStrategy=u(lue);get openDialogs(){return this._parentDialog?this._parentDialog.openDialogs:this._openDialogsAtThisLevel}get afterOpened(){return this._parentDialog?this._parentDialog.afterOpened:this._afterOpenedAtThisLevel}afterAllClosed=kn(()=>this.openDialogs.length?this._getAfterAllClosed():this._getAfterAllClosed().pipe(He(void 0)));constructor(){}open(e,i){let r=this._defaultOptions||new Vc;i=M(M({},r),i),i.id=i.id||this._idGenerator.getId("cdk-dialog-"),i.id&&this.getDialogById(i.id);let o=this._getOverlayConfig(i),a=Nr(this._injector,o),s=new c_(a,i),l=this._attachContainer(a,s,i);if(s.containerInstance=l,!this.openDialogs.length){let c=this._overlayContainer.getContainerElement();l._focusTrapped?l._focusTrapped.pipe(lt(1)).subscribe(()=>{this._hideNonDialogContentFromAssistiveTechnology(c)}):this._hideNonDialogContentFromAssistiveTechnology(c)}return this._attachDialogContent(e,s,l,i),this.openDialogs.push(s),s.closed.subscribe(()=>this._removeOpenDialog(s,!0)),this.afterOpened.next(s),s}closeAll(){lI(this.openDialogs,e=>e.close())}getDialogById(e){return this.openDialogs.find(i=>i.id===e)}ngOnDestroy(){lI(this._openDialogsAtThisLevel,e=>{e.config.closeOnDestroy===!1&&this._removeOpenDialog(e,!1)}),lI(this._openDialogsAtThisLevel,e=>e.close()),this._afterAllClosedAtThisLevel.complete(),this._afterOpenedAtThisLevel.complete(),this._openDialogsAtThisLevel=[]}_getOverlayConfig(e){let i=new Fr({positionStrategy:e.positionStrategy||Ds().centerHorizontally().centerVertically(),scrollStrategy:e.scrollStrategy||this._scrollStrategy(),panelClass:e.panelClass,hasBackdrop:e.hasBackdrop,direction:e.direction,minWidth:e.minWidth,minHeight:e.minHeight,maxWidth:e.maxWidth,maxHeight:e.maxHeight,width:e.width,height:e.height,disposeOnNavigation:e.closeOnNavigation,disableAnimations:e.disableAnimations});return e.backdropClass&&(i.backdropClass=e.backdropClass),i}_attachContainer(e,i,r){let o=r.injector||r.viewContainerRef?.injector,a=[{provide:Vc,useValue:r},{provide:c_,useValue:i},{provide:gh,useValue:e}],s;r.container?typeof r.container=="function"?s=r.container:(s=r.container.type,a.push(...r.container.providers(r))):s=cI;let l=new Zr(s,r.viewContainerRef,de.create({parent:o||this._injector,providers:a}));return e.attach(l).instance}_attachDialogContent(e,i,r,o){if(e instanceof te){let a=this._createInjector(o,i,r,void 0),s={$implicit:o.data,dialogRef:i};o.templateContext&&(s=M(M({},s),typeof o.templateContext=="function"?o.templateContext():o.templateContext)),r.attachTemplatePortal(new Cn(e,null,s,a))}else{let a=this._createInjector(o,i,r,this._injector),s=r.attachComponentPortal(new Zr(e,o.viewContainerRef,a));i.componentRef=s,i.componentInstance=s.instance}}_createInjector(e,i,r,o){let a=e.injector||e.viewContainerRef?.injector,s=[{provide:cue,useValue:e.data},{provide:c_,useValue:i}];return e.providers&&(typeof e.providers=="function"?s.push(...e.providers(i,e,r)):s.push(...e.providers)),e.direction&&(!a||!a.get(Vt,null,{optional:!0}))&&s.push({provide:Vt,useValue:uue(e.direction)}),de.create({parent:a||o,providers:s})}_removeOpenDialog(e,i){let r=this.openDialogs.indexOf(e);r>-1&&(this.openDialogs.splice(r,1),this.openDialogs.length||(this._ariaHiddenElements.forEach((o,a)=>{o?a.setAttribute("aria-hidden",o):a.removeAttribute("aria-hidden")}),this._ariaHiddenElements.clear(),i&&this._getAfterAllClosed().next()))}_hideNonDialogContentFromAssistiveTechnology(e){if(e.parentElement){let i=e.parentElement.children;for(let r=i.length-1;r>-1;r--){let o=i[r];o!==e&&o.nodeName!=="SCRIPT"&&o.nodeName!=="STYLE"&&!o.hasAttribute("aria-live")&&(this._ariaHiddenElements.set(o,o.getAttribute("aria-hidden")),o.setAttribute("aria-hidden","true"))}}}_getAfterAllClosed(){let e=this._parentDialog;return e?e._getAfterAllClosed():this._afterAllClosedAtThisLevel}static \u0275fac=function(i){return new(i||t)};static \u0275prov=O({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();function lI(t,n){let e=t.length;for(;e--;)n(t[e])}var ez=(()=>{class t{static \u0275fac=function(i){return new(i||t)};static \u0275mod=ee({type:t});static \u0275inj=J({providers:[dI],imports:[er,Co,ll,Co]})}return t})();function mue(t,n){}var u_=class{viewContainerRef;injector;id;role="dialog";panelClass="";hasBackdrop=!0;backdropClass="";disableClose=!1;closePredicate;width="";height="";minWidth;minHeight;maxWidth;maxHeight;position;data=null;direction;ariaDescribedBy=null;ariaLabelledBy=null;ariaLabel=null;ariaModal=!1;autoFocus="first-tabbable";restoreFocus=!0;delayFocusTrap=!0;scrollStrategy;closeOnNavigation=!0;enterAnimationDuration;exitAnimationDuration},uI="mdc-dialog--open",tz="mdc-dialog--opening",iz="mdc-dialog--closing",hue=150,pue=75,oz=(()=>{class t extends cI{_animationStateChanged=new U;_animationsEnabled=!Ye();_actionSectionCount=0;_hostElement=this._elementRef.nativeElement;_enterAnimationDuration=this._animationsEnabled?rz(this._config.enterAnimationDuration)??hue:0;_exitAnimationDuration=this._animationsEnabled?rz(this._config.exitAnimationDuration)??pue:0;_animationTimer=null;_contentAttached(){super._contentAttached(),this._startOpenAnimation()}_startOpenAnimation(){this._animationStateChanged.emit({state:"opening",totalTime:this._enterAnimationDuration}),this._animationsEnabled?(this._hostElement.style.setProperty(nz,`${this._enterAnimationDuration}ms`),this._requestAnimationFrame(()=>this._hostElement.classList.add(tz,uI)),this._waitForAnimationToComplete(this._enterAnimationDuration,this._finishDialogOpen)):(this._hostElement.classList.add(uI),Promise.resolve().then(()=>this._finishDialogOpen()))}_startExitAnimation(){this._animationStateChanged.emit({state:"closing",totalTime:this._exitAnimationDuration}),this._hostElement.classList.remove(uI),this._animationsEnabled?(this._hostElement.style.setProperty(nz,`${this._exitAnimationDuration}ms`),this._requestAnimationFrame(()=>this._hostElement.classList.add(iz)),this._waitForAnimationToComplete(this._exitAnimationDuration,this._finishDialogClose)):Promise.resolve().then(()=>this._finishDialogClose())}_updateActionSectionCount(e){this._actionSectionCount+=e,this._changeDetectorRef.markForCheck()}_finishDialogOpen=()=>{this._clearAnimationClasses(),this._openAnimationDone(this._enterAnimationDuration)};_finishDialogClose=()=>{this._clearAnimationClasses(),this._animationStateChanged.emit({state:"closed",totalTime:this._exitAnimationDuration})};_clearAnimationClasses(){this._hostElement.classList.remove(tz,iz)}_waitForAnimationToComplete(e,i){this._animationTimer!==null&&clearTimeout(this._animationTimer),this._animationTimer=setTimeout(i,e)}_requestAnimationFrame(e){this._ngZone.runOutsideAngular(()=>{typeof requestAnimationFrame=="function"?requestAnimationFrame(e):e()})}_captureInitialFocus(){this._config.delayFocusTrap||this._trapFocus()}_openAnimationDone(e){this._config.delayFocusTrap&&this._trapFocus(),this._animationStateChanged.next({state:"opened",totalTime:e})}ngOnDestroy(){super.ngOnDestroy(),this._animationTimer!==null&&clearTimeout(this._animationTimer)}attachComponentPortal(e){let i=super.attachComponentPortal(e);return i.location.nativeElement.classList.add("mat-mdc-dialog-component-host"),i}static \u0275fac=(()=>{let e;return function(r){return(e||(e=fe(t)))(r||t)}})();static \u0275cmp=E({type:t,selectors:[["mat-dialog-container"]],hostAttrs:["tabindex","-1",1,"mat-mdc-dialog-container","mdc-dialog"],hostVars:10,hostBindings:function(i,r){i&2&&(si("id",r._config.id),X("aria-modal",r._config.ariaModal)("role",r._config.role)("aria-labelledby",r._config.ariaLabel?null:r._ariaLabelledByQueue[0])("aria-label",r._config.ariaLabel)("aria-describedby",r._config.ariaDescribedBy||null),G("_mat-animation-noopable",!r._animationsEnabled)("mat-mdc-dialog-container-with-actions",r._actionSectionCount>0))},features:[le],decls:3,vars:0,consts:[[1,"mat-mdc-dialog-inner-container","mdc-dialog__container"],[1,"mat-mdc-dialog-surface","mdc-dialog__surface"],["cdkPortalOutlet",""]],template:function(i,r){i&1&&(h(0,"div",0)(1,"div",1),R(2,mue,0,0,"ng-template",2),p()())},dependencies:[yr],styles:[`.mat-mdc-dialog-container{width:100%;height:100%;display:block;box-sizing:border-box;max-height:inherit;min-height:inherit;min-width:inherit;max-width:inherit;outline:0}.cdk-overlay-pane.mat-mdc-dialog-panel{max-width:var(--mat-dialog-container-max-width, 560px);min-width:var(--mat-dialog-container-min-width, 280px)}@media(max-width: 599px){.cdk-overlay-pane.mat-mdc-dialog-panel{max-width:var(--mat-dialog-container-small-max-width, calc(100vw - 32px))}}.mat-mdc-dialog-inner-container{display:flex;flex-direction:row;align-items:center;justify-content:space-around;box-sizing:border-box;height:100%;opacity:0;transition:opacity linear var(--mat-dialog-transition-duration, 0ms);max-height:inherit;min-height:inherit;min-width:inherit;max-width:inherit}.mdc-dialog--closing .mat-mdc-dialog-inner-container{transition:opacity 75ms linear;transform:none}.mdc-dialog--open .mat-mdc-dialog-inner-container{opacity:1}._mat-animation-noopable .mat-mdc-dialog-inner-container{transition:none}.mat-mdc-dialog-surface{display:flex;flex-direction:column;flex-grow:0;flex-shrink:0;box-sizing:border-box;width:100%;height:100%;position:relative;overflow-y:auto;outline:0;transform:scale(0.8);transition:transform var(--mat-dialog-transition-duration, 0ms) cubic-bezier(0, 0, 0.2, 1);max-height:inherit;min-height:inherit;min-width:inherit;max-width:inherit;box-shadow:var(--mat-dialog-container-elevation-shadow, none);border-radius:var(--mat-dialog-container-shape, var(--mat-sys-corner-extra-large, 4px));background-color:var(--mat-dialog-container-color, var(--mat-sys-surface, white))}[dir=rtl] .mat-mdc-dialog-surface{text-align:right}.mdc-dialog--open .mat-mdc-dialog-surface,.mdc-dialog--closing .mat-mdc-dialog-surface{transform:none}._mat-animation-noopable .mat-mdc-dialog-surface{transition:none}.mat-mdc-dialog-surface::before{position:absolute;box-sizing:border-box;width:100%;height:100%;top:0;left:0;border:2px solid rgba(0,0,0,0);border-radius:inherit;content:"";pointer-events:none}.mat-mdc-dialog-title{display:block;position:relative;flex-shrink:0;box-sizing:border-box;margin:0 0 1px;padding:var(--mat-dialog-headline-padding, 6px 24px 13px)}.mat-mdc-dialog-title::before{display:inline-block;width:0;height:40px;content:"";vertical-align:0}[dir=rtl] .mat-mdc-dialog-title{text-align:right}.mat-mdc-dialog-container .mat-mdc-dialog-title{color:var(--mat-dialog-subhead-color, var(--mat-sys-on-surface, rgba(0, 0, 0, 0.87)));font-family:var(--mat-dialog-subhead-font, var(--mat-sys-headline-small-font, inherit));line-height:var(--mat-dialog-subhead-line-height, var(--mat-sys-headline-small-line-height, 1.5rem));font-size:var(--mat-dialog-subhead-size, var(--mat-sys-headline-small-size, 1rem));font-weight:var(--mat-dialog-subhead-weight, var(--mat-sys-headline-small-weight, 400));letter-spacing:var(--mat-dialog-subhead-tracking, var(--mat-sys-headline-small-tracking, 0.03125em))}.mat-mdc-dialog-content{display:block;flex-grow:1;box-sizing:border-box;margin:0;overflow:auto;max-height:65vh}.mat-mdc-dialog-content>:first-child{margin-top:0}.mat-mdc-dialog-content>:last-child{margin-bottom:0}.mat-mdc-dialog-container .mat-mdc-dialog-content{color:var(--mat-dialog-supporting-text-color, var(--mat-sys-on-surface-variant, rgba(0, 0, 0, 0.6)));font-family:var(--mat-dialog-supporting-text-font, var(--mat-sys-body-medium-font, inherit));line-height:var(--mat-dialog-supporting-text-line-height, var(--mat-sys-body-medium-line-height, 1.5rem));font-size:var(--mat-dialog-supporting-text-size, var(--mat-sys-body-medium-size, 1rem));font-weight:var(--mat-dialog-supporting-text-weight, var(--mat-sys-body-medium-weight, 400));letter-spacing:var(--mat-dialog-supporting-text-tracking, var(--mat-sys-body-medium-tracking, 0.03125em))}.mat-mdc-dialog-container .mat-mdc-dialog-content{padding:var(--mat-dialog-content-padding, 20px 24px)}.mat-mdc-dialog-container-with-actions .mat-mdc-dialog-content{padding:var(--mat-dialog-with-actions-content-padding, 20px 24px 0)}.mat-mdc-dialog-container .mat-mdc-dialog-title+.mat-mdc-dialog-content{padding-top:0}.mat-mdc-dialog-actions{display:flex;position:relative;flex-shrink:0;flex-wrap:wrap;align-items:center;box-sizing:border-box;min-height:52px;margin:0;border-top:1px solid rgba(0,0,0,0);padding:var(--mat-dialog-actions-padding, 16px 24px);justify-content:var(--mat-dialog-actions-alignment, flex-end)}@media(forced-colors: active){.mat-mdc-dialog-actions{border-top-color:CanvasText}}.mat-mdc-dialog-actions.mat-mdc-dialog-actions-align-start,.mat-mdc-dialog-actions[align=start]{justify-content:start}.mat-mdc-dialog-actions.mat-mdc-dialog-actions-align-center,.mat-mdc-dialog-actions[align=center]{justify-content:center}.mat-mdc-dialog-actions.mat-mdc-dialog-actions-align-end,.mat-mdc-dialog-actions[align=end]{justify-content:flex-end}.mat-mdc-dialog-actions .mat-button-base+.mat-button-base,.mat-mdc-dialog-actions .mat-mdc-button-base+.mat-mdc-button-base{margin-left:8px}[dir=rtl] .mat-mdc-dialog-actions .mat-button-base+.mat-button-base,[dir=rtl] .mat-mdc-dialog-actions .mat-mdc-button-base+.mat-mdc-button-base{margin-left:0;margin-right:8px}.mat-mdc-dialog-component-host{display:contents} -`],encapsulation:2})}return t})(),nz="--mat-dialog-transition-duration";function rz(t){return t==null?null:typeof t=="number"?t:t.endsWith("ms")?Ln(t.substring(0,t.length-2)):t.endsWith("s")?Ln(t.substring(0,t.length-1))*1e3:t==="0"?0:null}var d_=(function(t){return t[t.OPEN=0]="OPEN",t[t.CLOSING=1]="CLOSING",t[t.CLOSED=2]="CLOSED",t})(d_||{}),Mu=class{_ref;_config;_containerInstance;componentInstance;componentRef;disableClose;id;_afterOpened=new z;_beforeClosed=new z;_result;_closeFallbackTimeout;_state=d_.OPEN;_closeInteractionType;constructor(n,e,i){this._ref=n,this._config=e,this._containerInstance=i,this.disableClose=e.disableClose,this.id=n.id,n.addPanelClass("mat-mdc-dialog-panel"),i._animationStateChanged.pipe(ce(r=>r.state==="opened"),lt(1)).subscribe(()=>{this._afterOpened.next(),this._afterOpened.complete()}),i._animationStateChanged.pipe(ce(r=>r.state==="closed"),lt(1)).subscribe(()=>{clearTimeout(this._closeFallbackTimeout),this._finishDialogClose()}),n.overlayRef.detachments().subscribe(()=>{this._beforeClosed.next(this._result),this._beforeClosed.complete(),this._finishDialogClose()}),Je(this.backdropClick(),this.keydownEvents().pipe(ce(r=>r.keyCode===27&&!this.disableClose&&!Ft(r)))).subscribe(r=>{this.disableClose||(r.preventDefault(),az(this,r.type==="keydown"?"keyboard":"mouse"))})}close(n){let e=this._config.closePredicate;e&&!e(n,this._config,this.componentInstance)||(this._result=n,this._containerInstance._animationStateChanged.pipe(ce(i=>i.state==="closing"),lt(1)).subscribe(i=>{this._beforeClosed.next(n),this._beforeClosed.complete(),this._ref.overlayRef.detachBackdrop(),this._closeFallbackTimeout=setTimeout(()=>this._finishDialogClose(),i.totalTime+100)}),this._state=d_.CLOSING,this._containerInstance._startExitAnimation())}afterOpened(){return this._afterOpened}afterClosed(){return this._ref.closed}beforeClosed(){return this._beforeClosed}backdropClick(){return this._ref.backdropClick}keydownEvents(){return this._ref.keydownEvents}updatePosition(n){let e=this._ref.config.positionStrategy;return n&&(n.left||n.right)?n.left?e.left(n.left):e.right(n.right):e.centerHorizontally(),n&&(n.top||n.bottom)?n.top?e.top(n.top):e.bottom(n.bottom):e.centerVertically(),this._ref.updatePosition(),this}updateSize(n="",e=""){return this._ref.updateSize(n,e),this}addPanelClass(n){return this._ref.addPanelClass(n),this}removePanelClass(n){return this._ref.removePanelClass(n),this}getState(){return this._state}_finishDialogClose(){this._state=d_.CLOSED,this._ref.close(this._result,{focusOrigin:this._closeInteractionType}),this.componentInstance=null}};function az(t,n,e){return t._closeInteractionType=n,t.close(e)}var TC=new T("MatMdcDialogData"),sz=new T("mat-mdc-dialog-default-options"),lz=new T("mat-mdc-dialog-scroll-strategy",{providedIn:"root",factory:()=>{let t=u(de);return()=>uc(t)}}),En=(()=>{class t{_defaultOptions=u(sz,{optional:!0});_scrollStrategy=u(lz);_parentDialog=u(t,{optional:!0,skipSelf:!0});_idGenerator=u(Ze);_injector=u(de);_dialog=u(dI);_animationsDisabled=Ye();_openDialogsAtThisLevel=[];_afterAllClosedAtThisLevel=new z;_afterOpenedAtThisLevel=new z;dialogConfigClass=u_;_dialogRefConstructor;_dialogContainerType;_dialogDataToken;get openDialogs(){return this._parentDialog?this._parentDialog.openDialogs:this._openDialogsAtThisLevel}get afterOpened(){return this._parentDialog?this._parentDialog.afterOpened:this._afterOpenedAtThisLevel}_getAfterAllClosed(){let e=this._parentDialog;return e?e._getAfterAllClosed():this._afterAllClosedAtThisLevel}afterAllClosed=kn(()=>this.openDialogs.length?this._getAfterAllClosed():this._getAfterAllClosed().pipe(He(void 0)));constructor(){this._dialogRefConstructor=Mu,this._dialogContainerType=oz,this._dialogDataToken=TC}open(e,i){let r;i=M(M({},this._defaultOptions||new u_),i),i.id=i.id||this._idGenerator.getId("mat-mdc-dialog-"),i.scrollStrategy=i.scrollStrategy||this._scrollStrategy();let o=this._dialog.open(e,De(M({},i),{positionStrategy:Ds(this._injector).centerHorizontally().centerVertically(),disableClose:!0,closePredicate:void 0,closeOnDestroy:!1,closeOnOverlayDetachments:!1,disableAnimations:this._animationsDisabled||i.enterAnimationDuration?.toLocaleString()==="0"||i.exitAnimationDuration?.toString()==="0",container:{type:this._dialogContainerType,providers:()=>[{provide:this.dialogConfigClass,useValue:i},{provide:Vc,useValue:i}]},templateContext:()=>({dialogRef:r}),providers:(a,s,l)=>(r=new this._dialogRefConstructor(a,i,l),r.updatePosition(i?.position),[{provide:this._dialogContainerType,useValue:l},{provide:this._dialogDataToken,useValue:s.data},{provide:this._dialogRefConstructor,useValue:r}])}));return r.componentRef=o.componentRef,r.componentInstance=o.componentInstance,this.openDialogs.push(r),this.afterOpened.next(r),r.afterClosed().subscribe(()=>{let a=this.openDialogs.indexOf(r);a>-1&&(this.openDialogs.splice(a,1),this.openDialogs.length||this._getAfterAllClosed().next())}),r}closeAll(){this._closeDialogs(this.openDialogs)}getDialogById(e){return this.openDialogs.find(i=>i.id===e)}ngOnDestroy(){this._closeDialogs(this._openDialogsAtThisLevel),this._afterAllClosedAtThisLevel.complete(),this._afterOpenedAtThisLevel.complete()}_closeDialogs(e){let i=e.length;for(;i--;)e[i].close()}static \u0275fac=function(i){return new(i||t)};static \u0275prov=O({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();var cz=(()=>{class t{_dialogRef=u(Mu,{optional:!0});_elementRef=u(q);_dialog=u(En);constructor(){}ngOnInit(){this._dialogRef||(this._dialogRef=fue(this._elementRef,this._dialog.openDialogs)),this._dialogRef&&Promise.resolve().then(()=>{this._onAdd()})}ngOnDestroy(){this._dialogRef?._containerInstance&&Promise.resolve().then(()=>{this._onRemove()})}static \u0275fac=function(i){return new(i||t)};static \u0275dir=F({type:t})}return t})(),mI=(()=>{class t extends cz{id=u(Ze).getId("mat-mdc-dialog-title-");_onAdd(){this._dialogRef._containerInstance?._addAriaLabelledBy?.(this.id)}_onRemove(){this._dialogRef?._containerInstance?._removeAriaLabelledBy?.(this.id)}static \u0275fac=(()=>{let e;return function(r){return(e||(e=fe(t)))(r||t)}})();static \u0275dir=F({type:t,selectors:[["","mat-dialog-title",""],["","matDialogTitle",""]],hostAttrs:[1,"mat-mdc-dialog-title","mdc-dialog__title"],hostVars:1,hostBindings:function(i,r){i&2&&si("id",r.id)},inputs:{id:"id"},exportAs:["matDialogTitle"],features:[le]})}return t})(),hI=(()=>{class t{static \u0275fac=function(i){return new(i||t)};static \u0275dir=F({type:t,selectors:[["","mat-dialog-content",""],["mat-dialog-content"],["","matDialogContent",""]],hostAttrs:[1,"mat-mdc-dialog-content","mdc-dialog__content"],features:[ym([Pa])]})}return t})(),pI=(()=>{class t extends cz{align;_onAdd(){this._dialogRef._containerInstance?._updateActionSectionCount?.(1)}_onRemove(){this._dialogRef._containerInstance?._updateActionSectionCount?.(-1)}static \u0275fac=(()=>{let e;return function(r){return(e||(e=fe(t)))(r||t)}})();static \u0275dir=F({type:t,selectors:[["","mat-dialog-actions",""],["mat-dialog-actions"],["","matDialogActions",""]],hostAttrs:[1,"mat-mdc-dialog-actions","mdc-dialog__actions"],hostVars:6,hostBindings:function(i,r){i&2&&G("mat-mdc-dialog-actions-align-start",r.align==="start")("mat-mdc-dialog-actions-align-center",r.align==="center")("mat-mdc-dialog-actions-align-end",r.align==="end")},inputs:{align:"align"},features:[le]})}return t})();function fue(t,n){let e=t.nativeElement.parentElement;for(;e&&!e.classList.contains("mat-mdc-dialog-container");)e=e.parentElement;return e?n.find(i=>i.id===e.id):null}var Mn=(()=>{class t{static \u0275fac=function(i){return new(i||t)};static \u0275mod=ee({type:t});static \u0275inj=J({providers:[En],imports:[ez,er,Co,we,we]})}return t})();var Er=(()=>{let n=class n{constructor(){this.dialogRef=u(Mu),this.data=u(TC)}confirm(){this.dialogRef.close(!0)}cancel(){this.dialogRef.close(!1)}};n.\u0275fac=function(r){return new(r||n)},n.\u0275cmp=E({type:n,selectors:[["app-confirm-dialog"]],decls:12,vars:4,consts:[["mat-dialog-title",""],["color","warn",2,"vertical-align","middle","margin-right","8px"],["align","end"],["mat-button","",3,"click"],["mat-raised-button","","color","warn","cdkFocusInitial","",3,"click"]],template:function(r,o){r&1&&(h(0,"h2",0)(1,"mat-icon",1),_(2,"warning"),p(),_(3),p(),h(4,"mat-dialog-content")(5,"p"),_(6),p()(),h(7,"mat-dialog-actions",2)(8,"button",3),S("click",function(){return o.cancel()}),_(9),p(),h(10,"button",4),S("click",function(){return o.confirm()}),_(11),p()()),r&2&&(g(3),ve(" ",o.data.title,` -`),g(3),H(o.data.message),g(3),ve(" ",o.data.cancelText||"Cancel"," "),g(2),ve(" ",o.data.confirmText||"Delete"," "))},dependencies:[Mn,mI,pI,hI,ze,kt,ot,mt],encapsulation:2});let t=n;return t})();function _ue(t,n){if(t&1&&(h(0,"div",2),_(1),p()),t&2){let e=C();g(),H(e.title())}}function bue(t,n){if(t&1&&(h(0,"div",3),_(1),p()),t&2){let e=C();g(),H(e.message())}}var tp=(()=>{let n=class n{constructor(){this.code=ne(""),this.title=ne(""),this.message=ne("")}};n.\u0275fac=function(r){return new(r||n)},n.\u0275cmp=E({type:n,selectors:[["error-code"]],inputs:{code:[1,"code"],title:[1,"title"],message:[1,"message"]},decls:8,vars:3,consts:[[1,"matero-error-wrap"],[1,"matero-error-code"],[1,"matero-error-title"],[1,"matero-error-message"],["matButton","elevated","color","primary","routerLink","/"]],template:function(r,o){r&1&&(h(0,"div",0)(1,"div",1),_(2),p(),N(3,_ue,2,1,"div",2),N(4,bue,2,1,"div",3),h(5,"div")(6,"a",4),_(7,"Back to Home"),p()()()),r&2&&(g(2),H(o.code()),g(),L(o.title()?3:-1),g(),L(o.message()?4:-1))},dependencies:[Nn,ze,kt],styles:[`.matero-error-wrap{text-align:center}.matero-error-code{padding:1.25rem 0;font-size:10rem;text-shadow:.1325825215rem .1325825215rem 0 rgba(0,0,0,.028575),.2651650429rem .2651650429rem 0 rgba(0,0,0,.02715),.3977475644rem .3977475644rem 0 rgba(0,0,0,.025725),.5303300859rem .5303300859rem 0 rgba(0,0,0,.0243),.6629126074rem .6629126074rem 0 rgba(0,0,0,.022875),.7954951288rem .7954951288rem 0 rgba(0,0,0,.02145),.9280776503rem .9280776503rem 0 rgba(0,0,0,.020025),1.0606601718rem 1.0606601718rem 0 rgba(0,0,0,.0186),1.1932426933rem 1.1932426933rem 0 rgba(0,0,0,.017175),1.3258252147rem 1.3258252147rem 0 rgba(0,0,0,.01575),1.4584077362rem 1.4584077362rem 0 rgba(0,0,0,.014325),1.5909902577rem 1.5909902577rem 0 rgba(0,0,0,.0129),1.7235727791rem 1.7235727791rem 0 rgba(0,0,0,.011475),1.8561553006rem 1.8561553006rem 0 rgba(0,0,0,.01005),1.9887378221rem 1.9887378221rem 0 rgba(0,0,0,.008625),2.1213203436rem 2.1213203436rem 0 rgba(0,0,0,.0072),2.253902865rem 2.253902865rem 0 rgba(0,0,0,.005775),2.3864853865rem 2.3864853865rem 0 rgba(0,0,0,.00435),2.519067908rem 2.519067908rem 0 rgba(0,0,0,.002925),2.6516504294rem 2.6516504294rem 0 rgba(0,0,0,.0015)}.matero-error-title{margin:0 0 1rem;font-size:1.25rem;font-weight:500;line-height:2rem}.matero-error-message{margin:0 0 1rem;font-size:1rem;font-weight:400;line-height:1.75rem} -`],encapsulation:2});let t=n;return t})();function vue(t,n){if(t&1&&k(0,"breadcrumb",2),t&2){let e=C();y("nav",e.nav())}}var ni=(()=>{let n=class n{constructor(){this.router=u(Re),this.menu=u(so),this.title=ne(""),this.subtitle=ne(""),this.nav=ne([]),this.hideBreadcrumb=ne(!1,{transform:V}),this.titleName=Zt(()=>{let i=this.router.url.slice(1).split("/"),r=this.menu.getLevel(i);return this.title()||r[r.length-1]})}};n.\u0275fac=function(r){return new(r||n)},n.\u0275cmp=E({type:n,selectors:[["page-header"]],hostAttrs:[1,"matero-page-header"],inputs:{title:[1,"title"],subtitle:[1,"subtitle"],nav:[1,"nav"],hideBreadcrumb:[1,"hideBreadcrumb"]},decls:7,vars:5,consts:[[1,"matero-page-header-inner"],[1,"matero-page-title"],[3,"nav"]],template:function(r,o){r&1&&(h(0,"div",0)(1,"h1",1),_(2),me(3,"translate"),h(4,"small"),_(5),p()(),N(6,vue,1,1,"breadcrumb",2),p()),r&2&&(g(2),ve(" ",Oe(3,3,o.titleName())," "),g(3),H(o.subtitle()),g(),L(o.hideBreadcrumb()?-1:6))},dependencies:[J5,wr,Cr],styles:[`.matero-page-header{display:block;padding:1rem;margin-bottom:1rem;color:#ffffffde;background-color:#0074e9;border-radius:var(--mat-sys-corner-medium)}.matero-page-header .matero-breadcrumb{margin-top:.5rem;margin-bottom:0}.matero-page-title{margin:0;font-size:1.5rem;font-weight:400} -`],encapsulation:2});let t=n;return t})();var dz=(()=>{let n=class n{constructor(){this.change=new U,this.valueSignal=he("ltr")}get value(){return this.valueSignal()}set value(i){this.valueSignal.set(i),this.change.next(i)}ngOnDestroy(){this.change.complete()}};n.\u0275fac=function(r){return new(r||n)},n.\u0275prov=O({token:n,factory:n.\u0275fac,providedIn:"root"});let t=n;return t})();var uz=(()=>{let n=class n{constructor(){this.messages=[]}add(i){this.messages.push(i)}clear(){this.messages=[]}};n.\u0275fac=function(r){return new(r||n)},n.\u0275prov=O({token:n,factory:n.\u0275fac,providedIn:"root"});let t=n;return t})();var mz=(()=>{let n=class n{get(i){return JSON.parse(localStorage.getItem(i)||"{}")||{}}set(i,r){return localStorage.setItem(i,JSON.stringify(r)),!0}has(i){return!!localStorage.getItem(i)}remove(i){localStorage.removeItem(i)}clear(){localStorage.clear()}};n.\u0275fac=function(r){return new(r||n)},n.\u0275prov=O({token:n,factory:n.\u0275fac,providedIn:"root"});let t=n;return t})();var hz=(()=>{let n=class n{constructor(){this.translate=u(ia),this.paginatorIntl=new gc,this.translate.onLangChange.subscribe(i=>this.getPaginatorIntl())}getPaginatorIntl(){return this.paginatorIntl.itemsPerPageLabel=this.translate.instant("paginator.items_per_page_label"),this.paginatorIntl.previousPageLabel=this.translate.instant("paginator.previous_page_label"),this.paginatorIntl.nextPageLabel=this.translate.instant("paginator.next_page_label"),this.paginatorIntl.firstPageLabel=this.translate.instant("paginator.first_page_label"),this.paginatorIntl.lastPageLabel=this.translate.instant("paginator.last_page_label"),this.paginatorIntl.getRangeLabel=this.getRangeLabel.bind(this),this.paginatorIntl.changes.next(),this.paginatorIntl}getRangeLabel(i,r,o){if(o===0||r===0)return this.translate.instant("paginator.range_page_label_1",{length:o});o=Math.max(o,0);let a=i*r,s=a{if(t.destroyed){e.next();return}return t.onDestroy(e.next.bind(e))});return e=>e.pipe(Te(n))}function pz(t){let n=UM(t);return new Fe(e=>{let i=n?.onDestroy(()=>e.complete()),r=t.subscribe(o=>e.next(o));return()=>{r.unsubscribe(),i?.()}})}var yue=["content"],xue=["scroll"],Cue=["padding"],_z=["*"],m_=t=>({searchTerm:t});function wue(t,n){if(t&1&&(h(0,"div",3),Ge(1,6),p()),t&2){let e=C();g(),y("ngTemplateOutlet",e.headerTemplate())("ngTemplateOutletContext",Pt(2,m_,e.filterValue()))}}function Due(t,n){if(t&1&&(h(0,"div",5),Ge(1,6),p()),t&2){let e=C();g(),y("ngTemplateOutlet",e.footerTemplate())("ngTemplateOutletContext",Pt(2,m_,e.filterValue()))}}var Eue=["searchInput"],Mue=["clearButton"],kue=(t,n,e)=>({item:t,clear:n,label:e}),Sue=(t,n)=>({items:t,clear:n}),Tue=(t,n,e,i)=>({item:t,item$:n,index:e,searchTerm:i});function Iue(t,n){if(t&1&&(h(0,"div",20),_(1),p()),t&2){let e=C(2);g(),H(e.placeholder()??e.config.placeholder)}}function Aue(t,n){}function Oue(t,n){if(t&1&&R(0,Iue,2,1,"ng-template",null,1,_i)(2,Aue,0,0,"ng-template",19),t&2){let e=Se(1),i=C();g(2),y("ngTemplateOutlet",i.placeholderTemplate()||e)}}function Rue(t,n){if(t&1){let e=Y();h(0,"span",23),S("click",function(){I(e);let r=C().$implicit,o=C(2);return A(o.unselect(r))}),_(1,"\xD7"),p(),k(2,"span",24)}if(t&2){let e=C().$implicit,i=C(2);g(2),y("ngItemLabel",e.label)("escape",i.escapeHTML)}}function Pue(t,n){}function Fue(t,n){if(t&1&&(h(0,"div",22),R(1,Rue,3,2,"ng-template",null,2,_i)(3,Pue,0,0,"ng-template",12),p()),t&2){let e=n.$implicit,i=Se(2),r=C(2);G("ng-value-disabled",e.disabled),g(3),y("ngTemplateOutlet",r.labelTemplate()||i)("ngTemplateOutletContext",Rd(4,kue,e.value,r.clearItem,e.label))}}function Nue(t,n){if(t&1&&xt(0,Fue,4,8,"div",21,Mv().trackByOption,!0),t&2){let e=C();Ct(e.selectedItems)}}function Lue(t,n){}function Vue(t,n){if(t&1&&R(0,Lue,0,0,"ng-template",12),t&2){let e=C();y("ngTemplateOutlet",e.multiLabelTemplate())("ngTemplateOutletContext",wa(2,Sue,e.selectedValues,e.clearItem))}}function Bue(t,n){t&1&&k(0,"div",25)}function jue(t,n){}function Hue(t,n){if(t&1&&R(0,Bue,1,0,"ng-template",null,3,_i)(2,jue,0,0,"ng-template",19),t&2){let e=Se(1),i=C();g(2),y("ngTemplateOutlet",i.loadingSpinnerTemplate()||e)}}function zue(t,n){if(t&1&&Ge(0,19),t&2){let e=C(2);y("ngTemplateOutlet",e.clearButtonTemplate())}}function Uue(t,n){if(t&1){let e=Y();h(0,"span",27,4),S("click",function(r){I(e);let o=C(2);return A(o.handleClearClick(r))}),h(2,"span",28),_(3,"\xD7"),p()()}if(t&2){let e=C(2);y("title",VM(e.clearAllText()||e.config.clearAllText)),X("tabindex",e.tabFocusOnClear()?0:-1)}}function $ue(t,n){if(t&1&&N(0,zue,1,1,"ng-container",19)(1,Uue,4,3,"span",26),t&2){let e=C();L(e.clearButtonTemplate()?0:1)}}function Wue(t,n){if(t&1&&k(0,"span",33),t&2){let e=C().$implicit,i=C(2);y("ngItemLabel",e.label)("escape",i.escapeHTML)}}function Gue(t,n){}function que(t,n){if(t&1){let e=Y();h(0,"div",32),S("click",function(){let r=I(e).$implicit,o=C(2);return A(o.toggleItem(r))})("mouseover",function(){let r=I(e).$implicit,o=C(2);return A(o.onItemHover(r))}),R(1,Wue,1,2,"ng-template",null,5,_i)(3,Gue,0,0,"ng-template",12),p()}if(t&2){let e=n.$implicit,i=Se(2),r=C(2);G("ng-option-disabled",e.disabled)("ng-option-selected",e.selected)("ng-optgroup",e.children)("ng-option",!e.children)("ng-option-child",!!e.parent)("ng-option-marked",e===r.itemsList.markedItem),X("role",e.children?"group":"option")("aria-selected",e.selected)("id",e==null?null:e.htmlId)("aria-setsize",r.itemsList.filteredItems.length)("aria-posinset",e.index+1),g(3),y("ngTemplateOutlet",e.children?r.optgroupTemplate()||i:r.optionTemplate()||i)("ngTemplateOutletContext",wm(19,Tue,e.value,e,e.index,r.searchTerm))}}function Yue(t,n){if(t&1&&(h(0,"span")(1,"span",35),_(2),p(),_(3),p()),t&2){let e=C(3);g(2),H(e.addTagText()||e.config.addTagText),g(),ve('"',e.searchTerm,'"')}}function Que(t,n){}function Kue(t,n){if(t&1){let e=Y();h(0,"div",34),S("mouseover",function(){I(e);let r=C(2);return A(r.itemsList.unmarkItem())})("click",function(){I(e);let r=C(2);return A(r.selectTag())}),R(1,Yue,4,2,"ng-template",null,6,_i)(3,Que,0,0,"ng-template",12),p()}if(t&2){let e=Se(2),i=C(2);G("ng-option-marked",!i.itemsList.markedItem),g(3),y("ngTemplateOutlet",i.tagTemplate()||e)("ngTemplateOutletContext",Pt(4,m_,i.searchTerm))}}function Zue(t,n){if(t&1&&(h(0,"div",36),_(1),p()),t&2){let e=C(3);g(),H(e.notFoundText()??e.config.notFoundText)}}function Xue(t,n){}function Jue(t,n){if(t&1&&R(0,Zue,2,1,"ng-template",null,7,_i)(2,Xue,0,0,"ng-template",12),t&2){let e=Se(1),i=C(2);g(2),y("ngTemplateOutlet",i.notFoundTemplate()||e)("ngTemplateOutletContext",Pt(2,m_,i.searchTerm))}}function eme(t,n){if(t&1&&(h(0,"div",36),_(1),p()),t&2){let e=C(3);g(),H(e.typeToSearchText()||e.config.typeToSearchText)}}function tme(t,n){}function ime(t,n){if(t&1&&R(0,eme,2,1,"ng-template",null,8,_i)(2,tme,0,0,"ng-template",19),t&2){let e=Se(1),i=C(2);g(2),y("ngTemplateOutlet",i.typeToSearchTemplate()||e)}}function nme(t,n){if(t&1&&(h(0,"div",36),_(1),p()),t&2){let e=C(3);g(),H(e.loadingText()||e.config.loadingText)}}function rme(t,n){}function ome(t,n){if(t&1&&R(0,nme,2,1,"ng-template",null,9,_i)(2,rme,0,0,"ng-template",12),t&2){let e=Se(1),i=C(2);g(2),y("ngTemplateOutlet",i.loadingTextTemplate()||e)("ngTemplateOutletContext",Pt(2,m_,i.searchTerm))}}function ame(t,n){if(t&1){let e=Y();h(0,"ng-dropdown-panel",29),S("update",function(r){I(e);let o=C();return A(o.viewPortItems=r)})("scroll",function(r){I(e);let o=C();return A(o.scroll.emit(r))})("scrollToEnd",function(r){I(e);let o=C();return A(o.scrollToEnd.emit(r))})("outsideClick",function(){I(e);let r=C();return A(r.close())}),jt(1),xt(2,que,4,24,"div",30,Mv().trackByOption,!0),N(4,Kue,4,6,"div",31),Lt(),N(5,Jue,3,4),N(6,ime,3,1),N(7,ome,3,4),p()}if(t&2){let e=C(),i=e.appendTo()||e.config.appendTo;it(i?e.ngClass()?e.ngClass():e.classes:null),G("ng-select-multiple",e.multiple()),y("virtualScroll",e.virtualScroll()??!e.config.disableVirtualScroll??!1)("bufferAmount",e.bufferAmount())("appendTo",i)("position",e.dropdownPosition())("outsideClickEvent",e.outsideClickEvent())("headerTemplate",e.headerTemplate())("footerTemplate",e.footerTemplate())("filterValue",e.searchTerm)("items",e.itemsList.filteredItems)("showAddTag",e.showAddTag)("markedItem",e.itemsList.markedItem)("id",e.dropdownId)("ariaLabelDropdown",e.ariaLabelDropdown()),g(2),Ct(e.viewPortItems),g(2),L(e.showAddTag?4:-1),g(),L(e.showNoItemsFound()?5:-1),g(),L(e.showTypeToSearch()?6:-1),g(),L(e.loading()&&e.itemsList.filteredItems.length===0?7:-1)}}function sme(t,n){if(t&1&&_(0),t&2){let e=C();ve(" ",e.notFoundText()??e.config.notFoundText," ")}}var bz=/[&<>"']/g,lme=RegExp(bz.source),cme={"&":"&","<":"<",">":">",'"':""","'":"'"};function dme(t){return t&&lme.test(t)?t.replace(bz,n=>cme[n]):t}function Ji(t){return t!=null}function Su(t){return typeof t=="object"&&Ji(t)}function ume(t){return t instanceof Promise}function AC(t){return t instanceof Function}var mme=(()=>{let n=class n{constructor(){this.element=u(q),this.ngItemLabel=ne(),this.escape=ne(!0),Ar(()=>{this.element.nativeElement.innerHTML=this.escape()?dme(this.ngItemLabel()):this.ngItemLabel()})}};n.\u0275fac=function(r){return new(r||n)},n.\u0275dir=F({type:n,selectors:[["","ngItemLabel",""]],inputs:{ngItemLabel:[1,"ngItemLabel"],escape:[1,"escape"]}});let t=n;return t})(),OC=(()=>{let n=class n{constructor(){this.template=u(te)}};n.\u0275fac=function(r){return new(r||n)},n.\u0275dir=F({type:n,selectors:[["","ng-option-tmp",""]]});let t=n;return t})(),RC=(()=>{let n=class n{constructor(){this.template=u(te)}};n.\u0275fac=function(r){return new(r||n)},n.\u0275dir=F({type:n,selectors:[["","ng-optgroup-tmp",""]]});let t=n;return t})(),PC=(()=>{let n=class n{constructor(){this.template=u(te)}};n.\u0275fac=function(r){return new(r||n)},n.\u0275dir=F({type:n,selectors:[["","ng-label-tmp",""]]});let t=n;return t})(),FC=(()=>{let n=class n{constructor(){this.template=u(te)}};n.\u0275fac=function(r){return new(r||n)},n.\u0275dir=F({type:n,selectors:[["","ng-multi-label-tmp",""]]});let t=n;return t})(),NC=(()=>{let n=class n{constructor(){this.template=u(te)}};n.\u0275fac=function(r){return new(r||n)},n.\u0275dir=F({type:n,selectors:[["","ng-header-tmp",""]]});let t=n;return t})(),LC=(()=>{let n=class n{constructor(){this.template=u(te)}};n.\u0275fac=function(r){return new(r||n)},n.\u0275dir=F({type:n,selectors:[["","ng-footer-tmp",""]]});let t=n;return t})(),VC=(()=>{let n=class n{constructor(){this.template=u(te)}};n.\u0275fac=function(r){return new(r||n)},n.\u0275dir=F({type:n,selectors:[["","ng-notfound-tmp",""]]});let t=n;return t})(),BC=(()=>{let n=class n{constructor(){this.template=u(te)}};n.\u0275fac=function(r){return new(r||n)},n.\u0275dir=F({type:n,selectors:[["","ng-placeholder-tmp",""]]});let t=n;return t})(),jC=(()=>{let n=class n{constructor(){this.template=u(te)}};n.\u0275fac=function(r){return new(r||n)},n.\u0275dir=F({type:n,selectors:[["","ng-typetosearch-tmp",""]]});let t=n;return t})(),HC=(()=>{let n=class n{constructor(){this.template=u(te)}};n.\u0275fac=function(r){return new(r||n)},n.\u0275dir=F({type:n,selectors:[["","ng-loadingtext-tmp",""]]});let t=n;return t})(),zC=(()=>{let n=class n{constructor(){this.template=u(te)}};n.\u0275fac=function(r){return new(r||n)},n.\u0275dir=F({type:n,selectors:[["","ng-tag-tmp",""]]});let t=n;return t})(),UC=(()=>{let n=class n{constructor(){this.template=u(te)}};n.\u0275fac=function(r){return new(r||n)},n.\u0275dir=F({type:n,selectors:[["","ng-loadingspinner-tmp",""]]});let t=n;return t})(),$C=(()=>{let n=class n{constructor(){this.template=u(te)}};n.\u0275fac=function(r){return new(r||n)},n.\u0275dir=F({type:n,selectors:[["","ng-clearbutton-tmp",""]]});let t=n;return t})(),hme=(()=>{let n=class n{constructor(){this.fixedPlaceholder=!0,this.notFoundText="No items found",this.typeToSearchText="Type to search",this.addTagText="Add item",this.loadingText="Loading...",this.clearAllText="Clear all",this.disableVirtualScroll=!0,this.openOnEnter=!0,this.appearance="underline",this.tabFocusOnClear=!0,this.outsideClickEvent="click"}};n.\u0275fac=function(r){return new(r||n)},n.\u0275prov=O({token:n,factory:n.\u0275fac,providedIn:"root"});let t=n;return t})(),pme=(()=>{let n=class n{warn(i){console.warn(i)}};n.\u0275fac=function(r){return new(r||n)},n.\u0275prov=O({token:n,factory:n.\u0275fac,providedIn:"root"});let t=n;return t})();function vz(){return"axxxxxxxxxxx".replace(/[x]/g,()=>(Math.random()*16|0).toString(16))}var fme={"\u24B6":"A",\uFF21:"A",\u00C0:"A",\u00C1:"A",\u00C2:"A",\u1EA6:"A",\u1EA4:"A",\u1EAA:"A",\u1EA8:"A",\u00C3:"A",\u0100:"A",\u0102:"A",\u1EB0:"A",\u1EAE:"A",\u1EB4:"A",\u1EB2:"A",\u0226:"A",\u01E0:"A",\u00C4:"A",\u01DE:"A",\u1EA2:"A",\u00C5:"A",\u01FA:"A",\u01CD:"A",\u0200:"A",\u0202:"A",\u1EA0:"A",\u1EAC:"A",\u1EB6:"A",\u1E00:"A",\u0104:"A","\u023A":"A","\u2C6F":"A","\uA732":"AA",\u00C6:"AE",\u01FC:"AE",\u01E2:"AE","\uA734":"AO","\uA736":"AU","\uA738":"AV","\uA73A":"AV","\uA73C":"AY","\u24B7":"B",\uFF22:"B",\u1E02:"B",\u1E04:"B",\u1E06:"B","\u0243":"B",\u0182:"B",\u0181:"B","\u24B8":"C",\uFF23:"C",\u0106:"C",\u0108:"C",\u010A:"C",\u010C:"C",\u00C7:"C",\u1E08:"C",\u0187:"C","\u023B":"C","\uA73E":"C","\u24B9":"D",\uFF24:"D",\u1E0A:"D",\u010E:"D",\u1E0C:"D",\u1E10:"D",\u1E12:"D",\u1E0E:"D",\u0110:"D",\u018B:"D",\u018A:"D",\u0189:"D","\uA779":"D",\u01F1:"DZ",\u01C4:"DZ",\u01F2:"Dz",\u01C5:"Dz","\u24BA":"E",\uFF25:"E",\u00C8:"E",\u00C9:"E",\u00CA:"E",\u1EC0:"E",\u1EBE:"E",\u1EC4:"E",\u1EC2:"E",\u1EBC:"E",\u0112:"E",\u1E14:"E",\u1E16:"E",\u0114:"E",\u0116:"E",\u00CB:"E",\u1EBA:"E",\u011A:"E",\u0204:"E",\u0206:"E",\u1EB8:"E",\u1EC6:"E",\u0228:"E",\u1E1C:"E",\u0118:"E",\u1E18:"E",\u1E1A:"E",\u0190:"E",\u018E:"E","\u24BB":"F",\uFF26:"F",\u1E1E:"F",\u0191:"F","\uA77B":"F","\u24BC":"G",\uFF27:"G",\u01F4:"G",\u011C:"G",\u1E20:"G",\u011E:"G",\u0120:"G",\u01E6:"G",\u0122:"G",\u01E4:"G",\u0193:"G","\uA7A0":"G","\uA77D":"G","\uA77E":"G","\u24BD":"H",\uFF28:"H",\u0124:"H",\u1E22:"H",\u1E26:"H",\u021E:"H",\u1E24:"H",\u1E28:"H",\u1E2A:"H",\u0126:"H","\u2C67":"H","\u2C75":"H","\uA78D":"H","\u24BE":"I",\uFF29:"I",\u00CC:"I",\u00CD:"I",\u00CE:"I",\u0128:"I",\u012A:"I",\u012C:"I",\u0130:"I",\u00CF:"I",\u1E2E:"I",\u1EC8:"I",\u01CF:"I",\u0208:"I",\u020A:"I",\u1ECA:"I",\u012E:"I",\u1E2C:"I",\u0197:"I","\u24BF":"J",\uFF2A:"J",\u0134:"J","\u0248":"J","\u24C0":"K",\uFF2B:"K",\u1E30:"K",\u01E8:"K",\u1E32:"K",\u0136:"K",\u1E34:"K",\u0198:"K","\u2C69":"K","\uA740":"K","\uA742":"K","\uA744":"K","\uA7A2":"K","\u24C1":"L",\uFF2C:"L",\u013F:"L",\u0139:"L",\u013D:"L",\u1E36:"L",\u1E38:"L",\u013B:"L",\u1E3C:"L",\u1E3A:"L",\u0141:"L","\u023D":"L","\u2C62":"L","\u2C60":"L","\uA748":"L","\uA746":"L","\uA780":"L",\u01C7:"LJ",\u01C8:"Lj","\u24C2":"M",\uFF2D:"M",\u1E3E:"M",\u1E40:"M",\u1E42:"M","\u2C6E":"M",\u019C:"M","\u24C3":"N",\uFF2E:"N",\u01F8:"N",\u0143:"N",\u00D1:"N",\u1E44:"N",\u0147:"N",\u1E46:"N",\u0145:"N",\u1E4A:"N",\u1E48:"N","\u0220":"N",\u019D:"N","\uA790":"N","\uA7A4":"N",\u01CA:"NJ",\u01CB:"Nj","\u24C4":"O",\uFF2F:"O",\u00D2:"O",\u00D3:"O",\u00D4:"O",\u1ED2:"O",\u1ED0:"O",\u1ED6:"O",\u1ED4:"O",\u00D5:"O",\u1E4C:"O",\u022C:"O",\u1E4E:"O",\u014C:"O",\u1E50:"O",\u1E52:"O",\u014E:"O",\u022E:"O",\u0230:"O",\u00D6:"O",\u022A:"O",\u1ECE:"O",\u0150:"O",\u01D1:"O",\u020C:"O",\u020E:"O",\u01A0:"O",\u1EDC:"O",\u1EDA:"O",\u1EE0:"O",\u1EDE:"O",\u1EE2:"O",\u1ECC:"O",\u1ED8:"O",\u01EA:"O",\u01EC:"O",\u00D8:"O",\u01FE:"O",\u0186:"O",\u019F:"O","\uA74A":"O","\uA74C":"O",\u01A2:"OI","\uA74E":"OO",\u0222:"OU","\u24C5":"P",\uFF30:"P",\u1E54:"P",\u1E56:"P",\u01A4:"P","\u2C63":"P","\uA750":"P","\uA752":"P","\uA754":"P","\u24C6":"Q",\uFF31:"Q","\uA756":"Q","\uA758":"Q","\u024A":"Q","\u24C7":"R",\uFF32:"R",\u0154:"R",\u1E58:"R",\u0158:"R",\u0210:"R",\u0212:"R",\u1E5A:"R",\u1E5C:"R",\u0156:"R",\u1E5E:"R","\u024C":"R","\u2C64":"R","\uA75A":"R","\uA7A6":"R","\uA782":"R","\u24C8":"S",\uFF33:"S","\u1E9E":"S",\u015A:"S",\u1E64:"S",\u015C:"S",\u1E60:"S",\u0160:"S",\u1E66:"S",\u1E62:"S",\u1E68:"S",\u0218:"S",\u015E:"S","\u2C7E":"S","\uA7A8":"S","\uA784":"S","\u24C9":"T",\uFF34:"T",\u1E6A:"T",\u0164:"T",\u1E6C:"T",\u021A:"T",\u0162:"T",\u1E70:"T",\u1E6E:"T",\u0166:"T",\u01AC:"T",\u01AE:"T","\u023E":"T","\uA786":"T","\uA728":"TZ","\u24CA":"U",\uFF35:"U",\u00D9:"U",\u00DA:"U",\u00DB:"U",\u0168:"U",\u1E78:"U",\u016A:"U",\u1E7A:"U",\u016C:"U",\u00DC:"U",\u01DB:"U",\u01D7:"U",\u01D5:"U",\u01D9:"U",\u1EE6:"U",\u016E:"U",\u0170:"U",\u01D3:"U",\u0214:"U",\u0216:"U",\u01AF:"U",\u1EEA:"U",\u1EE8:"U",\u1EEE:"U",\u1EEC:"U",\u1EF0:"U",\u1EE4:"U",\u1E72:"U",\u0172:"U",\u1E76:"U",\u1E74:"U","\u0244":"U","\u24CB":"V",\uFF36:"V",\u1E7C:"V",\u1E7E:"V",\u01B2:"V","\uA75E":"V","\u0245":"V","\uA760":"VY","\u24CC":"W",\uFF37:"W",\u1E80:"W",\u1E82:"W",\u0174:"W",\u1E86:"W",\u1E84:"W",\u1E88:"W","\u2C72":"W","\u24CD":"X",\uFF38:"X",\u1E8A:"X",\u1E8C:"X","\u24CE":"Y",\uFF39:"Y",\u1EF2:"Y",\u00DD:"Y",\u0176:"Y",\u1EF8:"Y",\u0232:"Y",\u1E8E:"Y",\u0178:"Y",\u1EF6:"Y",\u1EF4:"Y",\u01B3:"Y","\u024E":"Y","\u1EFE":"Y","\u24CF":"Z",\uFF3A:"Z",\u0179:"Z",\u1E90:"Z",\u017B:"Z",\u017D:"Z",\u1E92:"Z",\u1E94:"Z",\u01B5:"Z",\u0224:"Z","\u2C7F":"Z","\u2C6B":"Z","\uA762":"Z","\u24D0":"a",\uFF41:"a",\u1E9A:"a",\u00E0:"a",\u00E1:"a",\u00E2:"a",\u1EA7:"a",\u1EA5:"a",\u1EAB:"a",\u1EA9:"a",\u00E3:"a",\u0101:"a",\u0103:"a",\u1EB1:"a",\u1EAF:"a",\u1EB5:"a",\u1EB3:"a",\u0227:"a",\u01E1:"a",\u00E4:"a",\u01DF:"a",\u1EA3:"a",\u00E5:"a",\u01FB:"a",\u01CE:"a",\u0201:"a",\u0203:"a",\u1EA1:"a",\u1EAD:"a",\u1EB7:"a",\u1E01:"a",\u0105:"a","\u2C65":"a",\u0250:"a","\uA733":"aa",\u00E6:"ae",\u01FD:"ae",\u01E3:"ae","\uA735":"ao","\uA737":"au","\uA739":"av","\uA73B":"av","\uA73D":"ay","\u24D1":"b",\uFF42:"b",\u1E03:"b",\u1E05:"b",\u1E07:"b",\u0180:"b",\u0183:"b",\u0253:"b","\u24D2":"c",\uFF43:"c",\u0107:"c",\u0109:"c",\u010B:"c",\u010D:"c",\u00E7:"c",\u1E09:"c",\u0188:"c","\u023C":"c","\uA73F":"c","\u2184":"c","\u24D3":"d",\uFF44:"d",\u1E0B:"d",\u010F:"d",\u1E0D:"d",\u1E11:"d",\u1E13:"d",\u1E0F:"d",\u0111:"d",\u018C:"d",\u0256:"d",\u0257:"d","\uA77A":"d",\u01F3:"dz",\u01C6:"dz","\u24D4":"e",\uFF45:"e",\u00E8:"e",\u00E9:"e",\u00EA:"e",\u1EC1:"e",\u1EBF:"e",\u1EC5:"e",\u1EC3:"e",\u1EBD:"e",\u0113:"e",\u1E15:"e",\u1E17:"e",\u0115:"e",\u0117:"e",\u00EB:"e",\u1EBB:"e",\u011B:"e",\u0205:"e",\u0207:"e",\u1EB9:"e",\u1EC7:"e",\u0229:"e",\u1E1D:"e",\u0119:"e",\u1E19:"e",\u1E1B:"e","\u0247":"e",\u025B:"e",\u01DD:"e","\u24D5":"f",\uFF46:"f",\u1E1F:"f",\u0192:"f","\uA77C":"f","\u24D6":"g",\uFF47:"g",\u01F5:"g",\u011D:"g",\u1E21:"g",\u011F:"g",\u0121:"g",\u01E7:"g",\u0123:"g",\u01E5:"g",\u0260:"g","\uA7A1":"g","\u1D79":"g","\uA77F":"g","\u24D7":"h",\uFF48:"h",\u0125:"h",\u1E23:"h",\u1E27:"h",\u021F:"h",\u1E25:"h",\u1E29:"h",\u1E2B:"h",\u1E96:"h",\u0127:"h","\u2C68":"h","\u2C76":"h",\u0265:"h",\u0195:"hv","\u24D8":"i",\uFF49:"i",\u00EC:"i",\u00ED:"i",\u00EE:"i",\u0129:"i",\u012B:"i",\u012D:"i",\u00EF:"i",\u1E2F:"i",\u1EC9:"i",\u01D0:"i",\u0209:"i",\u020B:"i",\u1ECB:"i",\u012F:"i",\u1E2D:"i",\u0268:"i",\u0131:"i","\u24D9":"j",\uFF4A:"j",\u0135:"j",\u01F0:"j","\u0249":"j","\u24DA":"k",\uFF4B:"k",\u1E31:"k",\u01E9:"k",\u1E33:"k",\u0137:"k",\u1E35:"k",\u0199:"k","\u2C6A":"k","\uA741":"k","\uA743":"k","\uA745":"k","\uA7A3":"k","\u24DB":"l",\uFF4C:"l",\u0140:"l",\u013A:"l",\u013E:"l",\u1E37:"l",\u1E39:"l",\u013C:"l",\u1E3D:"l",\u1E3B:"l",\u017F:"l",\u0142:"l",\u019A:"l",\u026B:"l","\u2C61":"l","\uA749":"l","\uA781":"l","\uA747":"l",\u01C9:"lj","\u24DC":"m",\uFF4D:"m",\u1E3F:"m",\u1E41:"m",\u1E43:"m",\u0271:"m",\u026F:"m","\u24DD":"n",\uFF4E:"n",\u01F9:"n",\u0144:"n",\u00F1:"n",\u1E45:"n",\u0148:"n",\u1E47:"n",\u0146:"n",\u1E4B:"n",\u1E49:"n",\u019E:"n",\u0272:"n",\u0149:"n","\uA791":"n","\uA7A5":"n",\u01CC:"nj","\u24DE":"o",\uFF4F:"o",\u00F2:"o",\u00F3:"o",\u00F4:"o",\u1ED3:"o",\u1ED1:"o",\u1ED7:"o",\u1ED5:"o",\u00F5:"o",\u1E4D:"o",\u022D:"o",\u1E4F:"o",\u014D:"o",\u1E51:"o",\u1E53:"o",\u014F:"o",\u022F:"o",\u0231:"o",\u00F6:"o",\u022B:"o",\u1ECF:"o",\u0151:"o",\u01D2:"o",\u020D:"o",\u020F:"o",\u01A1:"o",\u1EDD:"o",\u1EDB:"o",\u1EE1:"o",\u1EDF:"o",\u1EE3:"o",\u1ECD:"o",\u1ED9:"o",\u01EB:"o",\u01ED:"o",\u00F8:"o",\u01FF:"o",\u0254:"o","\uA74B":"o","\uA74D":"o",\u0275:"o",\u01A3:"oi",\u0223:"ou","\uA74F":"oo","\u24DF":"p",\uFF50:"p",\u1E55:"p",\u1E57:"p",\u01A5:"p","\u1D7D":"p","\uA751":"p","\uA753":"p","\uA755":"p","\u24E0":"q",\uFF51:"q","\u024B":"q","\uA757":"q","\uA759":"q","\u24E1":"r",\uFF52:"r",\u0155:"r",\u1E59:"r",\u0159:"r",\u0211:"r",\u0213:"r",\u1E5B:"r",\u1E5D:"r",\u0157:"r",\u1E5F:"r","\u024D":"r",\u027D:"r","\uA75B":"r","\uA7A7":"r","\uA783":"r","\u24E2":"s",\uFF53:"s",\u00DF:"s",\u015B:"s",\u1E65:"s",\u015D:"s",\u1E61:"s",\u0161:"s",\u1E67:"s",\u1E63:"s",\u1E69:"s",\u0219:"s",\u015F:"s","\u023F":"s","\uA7A9":"s","\uA785":"s",\u1E9B:"s","\u24E3":"t",\uFF54:"t",\u1E6B:"t",\u1E97:"t",\u0165:"t",\u1E6D:"t",\u021B:"t",\u0163:"t",\u1E71:"t",\u1E6F:"t",\u0167:"t",\u01AD:"t",\u0288:"t","\u2C66":"t","\uA787":"t","\uA729":"tz","\u24E4":"u",\uFF55:"u",\u00F9:"u",\u00FA:"u",\u00FB:"u",\u0169:"u",\u1E79:"u",\u016B:"u",\u1E7B:"u",\u016D:"u",\u00FC:"u",\u01DC:"u",\u01D8:"u",\u01D6:"u",\u01DA:"u",\u1EE7:"u",\u016F:"u",\u0171:"u",\u01D4:"u",\u0215:"u",\u0217:"u",\u01B0:"u",\u1EEB:"u",\u1EE9:"u",\u1EEF:"u",\u1EED:"u",\u1EF1:"u",\u1EE5:"u",\u1E73:"u",\u0173:"u",\u1E77:"u",\u1E75:"u",\u0289:"u","\u24E5":"v",\uFF56:"v",\u1E7D:"v",\u1E7F:"v",\u028B:"v","\uA75F":"v",\u028C:"v","\uA761":"vy","\u24E6":"w",\uFF57:"w",\u1E81:"w",\u1E83:"w",\u0175:"w",\u1E87:"w",\u1E85:"w",\u1E98:"w",\u1E89:"w","\u2C73":"w","\u24E7":"x",\uFF58:"x",\u1E8B:"x",\u1E8D:"x","\u24E8":"y",\uFF59:"y",\u1EF3:"y",\u00FD:"y",\u0177:"y",\u1EF9:"y",\u0233:"y",\u1E8F:"y",\u00FF:"y",\u1EF7:"y",\u1E99:"y",\u1EF5:"y",\u01B4:"y","\u024F":"y","\u1EFF":"y","\u24E9":"z",\uFF5A:"z",\u017A:"z",\u1E91:"z",\u017C:"z",\u017E:"z",\u1E93:"z",\u1E95:"z",\u01B6:"z",\u0225:"z","\u0240":"z","\u2C6C":"z","\uA763":"z",\u0386:"\u0391",\u0388:"\u0395",\u0389:"\u0397",\u038A:"\u0399",\u03AA:"\u0399",\u038C:"\u039F",\u038E:"\u03A5",\u03AB:"\u03A5",\u038F:"\u03A9",\u03AC:"\u03B1",\u03AD:"\u03B5",\u03AE:"\u03B7",\u03AF:"\u03B9",\u03CA:"\u03B9",\u0390:"\u03B9",\u03CC:"\u03BF",\u03CD:"\u03C5",\u03CB:"\u03C5",\u03B0:"\u03C5",\u03C9:"\u03C9",\u03C2:"\u03C3"};function IC(t){let n=e=>fme[e]||e;return t.replace(/[^\u0000-\u007E]/g,n)}var gI=class{constructor(n,e){this._ngSelect=n,this._selectionModel=e,this._items=[],this._filteredItems=[],this._markedIndex=-1}get items(){return this._items}get filteredItems(){return this._filteredItems}get markedIndex(){return this._markedIndex}get selectedItems(){return this._selectionModel.value}get markedItem(){return this._filteredItems[this._markedIndex]}get noItemsToSelect(){return this._ngSelect.hideSelected()&&this._items.length===this.selectedItems.length}get maxItemsSelected(){return this._ngSelect.multiple()&&this._ngSelect.maxSelectedItems()<=this.selectedItems.length}get lastSelectedItem(){let n=this.selectedItems.length-1;for(;n>=0;n--){let e=this.selectedItems[n];if(!e.disabled)return e}return null}setItems(n){this._items=n.map((i,r)=>this.mapItem(i,r));let e=this._ngSelect.groupBy();e?(this._groups=this._groupBy(this._items,e),this._items=this._flatten(this._groups)):(this._groups=new Map,this._groups.set(void 0,this._items)),this._filteredItems=[...this._items]}select(n){if(n.selected||this.maxItemsSelected)return;let e=this._ngSelect.multiple();e||this.clearSelected(),this._selectionModel.select(n,e,this._ngSelect.selectableGroupAsModel()),this._ngSelect.hideSelected()&&this._hideSelected(n)}unselect(n){if(!n.selected)return;let e=this._ngSelect.multiple();this._selectionModel.unselect(n,e),this._ngSelect.hideSelected()&&Ji(n.index)&&e&&this._showSelected(n)}findItem(n){let e;return this._ngSelect.compareWith()?e=i=>this._ngSelect.compareWith()(i.value,n):this._ngSelect.bindValue()?e=i=>!i.children&&this.resolveNested(i.value,this._ngSelect.bindValue())===n:e=i=>i.value===n||!i.children&&i.label&&i.label===this.resolveNested(n,this._ngSelect.bindLabel()),this._items.find(i=>e(i))}addItem(n){let e=this.mapItem(n,this._items.length);return this._items.push(e),this._filteredItems.push(e),e}clearSelected(n=!1){this._selectionModel.clear(n),this._items.forEach(e=>{e.selected=n&&e.selected&&e.disabled,e.marked=!1}),this._ngSelect.hideSelected()&&this.resetFilteredItems()}findByLabel(n){return n=IC(n).toLocaleLowerCase(),this.filteredItems.find(e=>IC(e.label).toLocaleLowerCase().substr(0,n.length)===n)}filter(n){if(!n){this.resetFilteredItems();return}this._filteredItems=[],n=this._ngSelect.searchFn()?n:IC(n).toLocaleLowerCase();let e=this._ngSelect.searchFn()||this._defaultSearchFn,i=this._ngSelect.hideSelected();for(let r of Array.from(this._groups.keys())){let o=[];for(let a of this._groups.get(r)){if(i&&(a.parent&&a.parent.selected||a.selected))continue;let s=this._ngSelect.searchFn()?a.value:a;e(n,s)&&o.push(a)}if(o.length>0){let[a]=o.slice(-1);if(a.parent){let s=this._items.find(l=>l===a.parent);this._filteredItems.push(s)}this._filteredItems.push(...o)}}}resetFilteredItems(){this._filteredItems.length!==this._items.length&&(this._ngSelect.hideSelected()&&this.selectedItems.length>0?this._filteredItems=this._items.filter(n=>!n.selected):this._filteredItems=this._items)}unmarkItem(){this._markedIndex=-1}markNextItem(){this._stepToItem(1)}markPreviousItem(){this._stepToItem(-1)}markItem(n){this._markedIndex=this._filteredItems.indexOf(n)}markSelectedOrDefault(n){if(this._filteredItems.length===0)return;let e=this._getLastMarkedIndex();e>-1?this._markedIndex=e:this._markedIndex=n?this.filteredItems.findIndex(i=>!i.disabled):-1}resolveNested(n,e){if(!Su(n))return n;if(e.indexOf(".")===-1)return n[e];{let i=e.split("."),r=n;for(let o=0,a=i.length;othis._ngSelect.compareWith()(o.value,e.value));else{let o=i?this.resolveNested(e.value,i):e.value;r=Ji(o)?this.findItem(o):null}this._selectionModel.unselect(e,n),this._selectionModel.select(r||e,n,this._ngSelect.selectableGroupAsModel())}this._ngSelect.hideSelected()&&(this._filteredItems=this.filteredItems.filter(e=>this.selectedItems.indexOf(e)===-1))}_showSelected(n){if(this._filteredItems.push(n),n.parent){let e=n.parent;this._filteredItems.find(r=>r===e)||this._filteredItems.push(e)}else if(n.children)for(let e of n.children)e.selected=!1,this._filteredItems.push(e);this._filteredItems=[...this._filteredItems.sort((e,i)=>e.index-i.index)]}_hideSelected(n){this._filteredItems=this._filteredItems.filter(e=>e!==n),n.parent?n.parent.children.every(i=>i.selected)&&(this._filteredItems=this._filteredItems.filter(i=>i!==n.parent)):n.children&&(this._filteredItems=this.filteredItems.filter(e=>e.parent!==n))}_defaultSearchFn(n,e){return IC(e.label).toLocaleLowerCase().indexOf(n)>-1}_getNextItemIndex(n){return n>0?this._markedIndex>=this._filteredItems.length-1?0:this._markedIndex+1:this._markedIndex<=0?this._filteredItems.length-1:this._markedIndex-1}_stepToItem(n){this._filteredItems.length===0||this._filteredItems.every(e=>e.disabled)||(this._markedIndex=this._getNextItemIndex(n),this.markedItem.disabled&&this._stepToItem(n))}_getLastMarkedIndex(){if(this._ngSelect.hideSelected()||this._markedIndex>-1&&this.markedItem===void 0)return-1;let n=this._filteredItems.indexOf(this.lastSelectedItem);return this.lastSelectedItem&&n<0?-1:Math.max(this.markedIndex,n)}_groupBy(n,e){let i=new Map;if(n.length===0)return i;if(Array.isArray(n[0].value[e])){for(let a of n){let s=(a.value[e]||[]).map((l,c)=>this.mapItem(l,c));i.set(a,s)}return i}let r=AC(this._ngSelect.groupBy()),o=a=>{let s=r?e(a.value):a.value[e];return Ji(s)?s:void 0};for(let a of n){let s=o(a),l=i.get(s);l?l.push(a):i.set(s,[a])}return i}_flatten(n){let e=AC(this._ngSelect.groupBy()),i=[];for(let r of Array.from(n.keys())){let o=i.length;if(r===void 0){let m=n.get(void 0)||[];i.push(...m.map(f=>(f.index=o++,f)));continue}let a=Su(r),s={label:a?"":String(r),children:void 0,parent:null,index:o++,disabled:!this._ngSelect.selectableGroup(),htmlId:vz()},l=e?this._ngSelect.bindLabel():this._ngSelect.groupBy(),c=this._ngSelect.groupValue()||(()=>a?r.value:{[l]:r}),d=n.get(r).map(m=>(m.parent=s,m.children=void 0,m.index=o++,m));s.children=d,s.value=c(r,d.map(m=>m.value)),i.push(s),i.push(...d)}return i}},yz=(()=>{let n=class n{constructor(){this._dimensions={itemHeight:0,panelHeight:0,itemsPerViewport:0}}get dimensions(){return this._dimensions}calculateItems(i,r,o){let a=this._dimensions,s=a.itemHeight*r,c=Math.max(0,i)/s*r,d=Math.min(r,Math.ceil(c)+(a.itemsPerViewport+1)),f=Math.max(0,d-a.itemsPerViewport),b=Math.min(f,Math.floor(c)),v=a.itemHeight*Math.ceil(b)-a.itemHeight*Math.min(b,o);return v=isNaN(v)?0:v,b=isNaN(b)?-1:b,d=isNaN(d)?-1:d,b-=o,b=Math.max(0,b),d+=o,d=Math.min(r,d),{topPadding:v,scrollHeight:s,start:b,end:d}}setDimensions(i,r){let o=Math.max(1,Math.floor(r/i));this._dimensions={itemHeight:i,panelHeight:r,itemsPerViewport:o}}getScrollTo(i,r,o){let{panelHeight:a}=this.dimensions,s=i+r,l=o,c=l+a;return a>=s&&o===i?null:s>c?l+s-c:i<=l?i:null}};n.\u0275fac=function(r){return new(r||n)},n.\u0275prov=O({token:n,factory:n.\u0275fac});let t=n;return t})(),fz=["top","right","bottom","left"],gme=typeof requestAnimationFrame<"u"?G_:U_,fI=(()=>{let n=class n{get currentPosition(){return this._currentPosition}get itemsLength(){return this._itemsLength}set itemsLength(i){i!==this._itemsLength&&(this._itemsLength=i,this._onItemsLengthChanged())}get _startOffset(){if(this.markedItem()){let{itemHeight:i,panelHeight:r}=this._panelService.dimensions,o=this.markedItem().index*i;return r>o?0:o}return 0}constructor(){this._renderer=u(je),this._zone=u(ae),this._panelService=u(yz),this._document=u(ge,{optional:!0}),this._destroyRef=u(nn),this._dropdown=u(q).nativeElement,this.items=ne([]),this.showAddTag=ne(!1,{transform:V}),this.markedItem=ne(void 0),this.position=ne("auto"),this.appendTo=ne(void 0),this.bufferAmount=ne(void 0),this.virtualScroll=ne(!1,{transform:V}),this.headerTemplate=ne(void 0),this.footerTemplate=ne(void 0),this.filterValue=ne(null),this.ariaLabelDropdown=ne(null),this.outsideClickEvent=ne("click"),this.update=bi(),this.scroll=bi(),this.scrollToEnd=bi(),this.outsideClick=bi(),this.contentElementRef=qn("content",{read:q}),this.scrollElementRef=qn("scroll",{read:q}),this.paddingElementRef=qn("padding",{read:q}),this._virtualPadding=Zt(()=>this.paddingElementRef()?.nativeElement),this._scrollablePanel=Zt(()=>this.scrollElementRef()?.nativeElement),this._contentPanel=Zt(()=>this.contentElementRef()?.nativeElement),this._scrollToEndFired=!1,this._updateScrollHeight=!1,this._lastScrollPosition=0,this._destroyRef.onDestroy(()=>{this.appendTo()&&this._renderer.removeChild(this._dropdown.parentNode,this._dropdown)})}ngOnInit(){this._select=this._dropdown.parentElement,this._handleScroll(),this._handleOutsideClick(),this._appendDropdown(),this._setupMousedownListener()}ngOnChanges(i){if(i.items){let r=i.items;this._onItemsOrShowAddTagChange(r.currentValue,this.showAddTag(),r.firstChange)}if(i.showAddTag){let r=i.showAddTag;this._onItemsOrShowAddTagChange(this.items(),r.currentValue,r.firstChange)}}scrollTo(i,r=!1){if(!i)return;let o=this.items().indexOf(i);if(o<0||o>=this.itemsLength)return;let a;if(this.virtualScroll()){let s=this._panelService.dimensions.itemHeight;a=this._panelService.getScrollTo(o*s,s,this._lastScrollPosition)}else{let s=this._dropdown.querySelector(`#${i.htmlId}`),l=r?s.offsetTop:this._lastScrollPosition;a=this._panelService.getScrollTo(s.offsetTop,s.clientHeight,l)}Ji(a)&&(this._scrollablePanel().scrollTop=a)}scrollToTag(){let i=this._scrollablePanel();i.scrollTop=i.scrollHeight-i.clientHeight}adjustPosition(){this._updateYPosition()}_handleDropdownPosition(){this._currentPosition=this._calculateCurrentPosition(this._dropdown),fz.includes(this._currentPosition)?this._updateDropdownClass(this._currentPosition):this._updateDropdownClass("bottom"),this.appendTo()&&this._updateYPosition(),this._dropdown.style.opacity="1"}_updateDropdownClass(i){fz.forEach(o=>{let a=`ng-select-${o}`;this._renderer.removeClass(this._dropdown,a),this._renderer.removeClass(this._select,a)});let r=`ng-select-${i}`;this._renderer.addClass(this._dropdown,r),this._renderer.addClass(this._select,r)}_handleScroll(){this._zone.runOutsideAngular(()=>{this._scrollablePanel()&&zs(this._scrollablePanel(),"scroll").pipe(ku(this._destroyRef),Pl(0,gme)).subscribe(i=>{let r=i.target;r&&"scrollTop"in r&&this._onContentScrolled(r.scrollTop)})})}_handleOutsideClick(){this._document&&this._zone.runOutsideAngular(()=>{zs(this._document,this.outsideClickEvent(),{capture:!0}).pipe(ku(this._destroyRef)).subscribe(i=>this._checkToClose(i))})}_checkToClose(i){if(this._select.contains(i.target)||this._dropdown.contains(i.target))return;let r=i.path||i.composedPath&&i.composedPath();i.target&&i.target.shadowRoot&&r&&r[0]&&this._select.contains(r[0])||this._zone.run(()=>this.outsideClick.emit())}_onItemsOrShowAddTagChange(i=[],r,o){this._scrollToEndFired=!1,this.itemsLength=i.length,r&&i.length&&this.itemsLength++,this.virtualScroll()?this._updateItemsRange(o):(this._setVirtualHeight(),this._updateItems(o))}_updateItems(i){this.update.emit(this.items()),i!==!1&&this._zone.runOutsideAngular(()=>{Promise.resolve().then(()=>{let r=this._scrollablePanel().clientHeight;this._panelService.setDimensions(0,r),this._handleDropdownPosition(),this.scrollTo(this.markedItem(),i)})})}_updateItemsRange(i){this._zone.runOutsideAngular(()=>{this._measureDimensions().then(()=>{i?(this._renderItemsRange(this._startOffset),this._handleDropdownPosition()):this._renderItemsRange()})})}_onContentScrolled(i){this.virtualScroll()&&this._renderItemsRange(i),this._lastScrollPosition=i,this._fireScrollToEnd(i)}_updateVirtualHeight(i){this._updateScrollHeight&&(this._virtualPadding().style.height=`${i}px`,this._updateScrollHeight=!1)}_setVirtualHeight(){this._virtualPadding()&&(this._virtualPadding().style.height="0px")}_onItemsLengthChanged(){this._updateScrollHeight=!0}_renderItemsRange(i=null){if(i&&this._lastScrollPosition===i)return;i=i||this._scrollablePanel().scrollTop;let r=this._panelService.calculateItems(i,this.itemsLength,this.bufferAmount());this._updateVirtualHeight(r.scrollHeight),this._contentPanel().style.transform=`translateY(${r.topPadding}px)`,this._zone.run(()=>{this.update.emit(this.items().slice(r.start,r.end)),this.scroll.emit({start:r.start,end:r.end})}),Ji(i)&&this._lastScrollPosition===0&&(this._scrollablePanel().scrollTop=i,this._lastScrollPosition=i)}_measureDimensions(){if(this._panelService.dimensions.itemHeight>0||this.itemsLength===0)return Promise.resolve(this._panelService.dimensions);let[i]=this.items();return this.update.emit([i]),Promise.resolve().then(()=>{let o=this._dropdown.querySelector(`#${i.htmlId}`).clientHeight;this._virtualPadding().style.height=`${o*this.itemsLength}px`;let a=this._scrollablePanel().clientHeight;return this._panelService.setDimensions(o,a),this._panelService.dimensions})}_fireScrollToEnd(i){if(this._scrollToEndFired||i===0)return;let r=this.virtualScroll()?this._virtualPadding():this._contentPanel();i+this._dropdown.clientHeight>=r.clientHeight-1&&(this._zone.run(()=>this.scrollToEnd.emit()),this._scrollToEndFired=!0)}_calculateCurrentPosition(i){let r=this.position();if(r!=="auto")return r;let o=this._select.getBoundingClientRect(),a=document.documentElement.scrollTop||document.body.scrollTop,s=o.top+window.pageYOffset,l=o.height,c=i.getBoundingClientRect().height;return s+l+c>a+document.documentElement.clientHeight?"top":"bottom"}_appendDropdown(){if(this.appendTo()){if(this._parent=this._dropdown.shadowRoot?this._dropdown.shadowRoot.querySelector(this.appendTo()):document.querySelector(this.appendTo()),!this._parent)throw new Error(`appendTo selector ${this.appendTo()} did not found any parent element`);this._updateXPosition(),this._parent.appendChild(this._dropdown)}}_updateXPosition(){let i=this._select.getBoundingClientRect(),r=this._parent.getBoundingClientRect(),o=document.documentElement.dir==="rtl",a=i.left-r.left;if(o){let s=r.right-i.right;this._dropdown.style.right=s+"px",this._dropdown.style.left="auto"}else this._dropdown.style.left=a+"px",this._dropdown.style.right="auto";this._dropdown.style.width=i.width+"px",this._dropdown.style.minWidth=i.width+"px"}_updateYPosition(){let i=this._select.getBoundingClientRect(),r=this._parent.getBoundingClientRect(),o=i.height;if(this._currentPosition==="top"){let a=r.bottom-i.bottom;this._dropdown.style.bottom=a+o+"px",this._dropdown.style.top="auto"}else if(this._currentPosition==="bottom"){let a=i.top-r.top;this._dropdown.style.top=a+o+"px",this._dropdown.style.bottom="auto"}}_setupMousedownListener(){this._zone.runOutsideAngular(()=>{zs(this._dropdown,"mousedown").pipe(ku(this._destroyRef)).subscribe(i=>{i.target.tagName!=="INPUT"&&i.preventDefault()})})}};n.\u0275fac=function(r){return new(r||n)},n.\u0275cmp=E({type:n,selectors:[["ng-dropdown-panel"]],viewQuery:function(r,o){r&1&&(Pn(o.contentElementRef,yue,5,q),Pn(o.scrollElementRef,xue,5,q),Pn(o.paddingElementRef,Cue,5,q)),r&2&&Ho(3)},inputs:{items:[1,"items"],showAddTag:[1,"showAddTag"],markedItem:[1,"markedItem"],position:[1,"position"],appendTo:[1,"appendTo"],bufferAmount:[1,"bufferAmount"],virtualScroll:[1,"virtualScroll"],headerTemplate:[1,"headerTemplate"],footerTemplate:[1,"footerTemplate"],filterValue:[1,"filterValue"],ariaLabelDropdown:[1,"ariaLabelDropdown"],outsideClickEvent:[1,"outsideClickEvent"]},outputs:{update:"update",scroll:"scroll",scrollToEnd:"scrollToEnd",outsideClick:"outsideClick"},features:[Ae],ngContentSelectors:_z,decls:9,vars:7,consts:[["scroll",""],["padding",""],["content",""],[1,"ng-dropdown-header"],["role","listbox",1,"ng-dropdown-panel-items","scroll-host"],[1,"ng-dropdown-footer"],[3,"ngTemplateOutlet","ngTemplateOutletContext"]],template:function(r,o){r&1&&(Me(),N(0,wue,2,4,"div",3),h(1,"div",4,0),k(3,"div",null,1),h(5,"div",null,2),oe(7),p()(),N(8,Due,2,4,"div",5)),r&2&&(L(o.headerTemplate()?0:-1),g(),X("aria-label",o.ariaLabelDropdown()),g(2),G("total-padding",o.virtualScroll()),g(2),G("scrollable-content",o.virtualScroll()&&o.items().length),g(3),L(o.footerTemplate()?8:-1))},dependencies:[Fn],encapsulation:2,changeDetection:0});let t=n;return t})(),gz=(()=>{let n=class n{constructor(){this.value=ne(),this.disabled=ne(!1,{transform:V}),this.elementRef=u(q),this.label=he(""),pt(()=>{let i=(this.elementRef.nativeElement.innerHTML||"").trim();i!==this.label()&&this.label.set(i)})}};n.\u0275fac=function(r){return new(r||n)},n.\u0275cmp=E({type:n,selectors:[["ng-option"]],inputs:{value:[1,"value"],disabled:[1,"disabled"]},ngContentSelectors:_z,decls:1,vars:0,template:function(r,o){r&1&&(Me(),oe(0))},encapsulation:2,changeDetection:0});let t=n;return t})(),Ps=(function(t){return t.Tab="Tab",t.Enter="Enter",t.Esc="Escape",t.Space=" ",t.ArrowUp="ArrowUp",t.ArrowDown="ArrowDown",t.Backspace="Backspace",t})(Ps||{});function xz(){return new _I}var _I=class{constructor(){this._selected=[]}get value(){return this._selected}select(n,e,i){if(n.selected=!0,(!n.children||!e&&i)&&this._selected.push(n),e)if(n.parent){let r=n.parent.children.length,o=n.parent.children.filter(a=>a.selected).length;n.parent.selected=r===o}else n.children&&(this._setChildrenSelectedState(n.children,!0),this._removeChildren(n),i&&this._activeChildren(n)?this._selected=[...this._selected.filter(r=>r.parent!==n),n]:this._selected=[...this._selected,...n.children.filter(r=>!r.disabled)])}unselect(n,e){if(this._selected=this._selected.filter(i=>i!==n),n.selected=!1,e)if(n.parent&&n.parent.selected){let i=n.parent.children;this._removeParent(n.parent),this._removeChildren(n.parent),this._selected.push(...i.filter(r=>r!==n&&!r.disabled)),n.parent.selected=!1}else n.children&&(this._setChildrenSelectedState(n.children,!1),this._removeChildren(n))}clear(n){this._selected=n?this._selected.filter(e=>e.disabled):[]}_setChildrenSelectedState(n,e){for(let i of n)i.disabled||(i.selected=e)}_removeChildren(n){this._selected=[...this._selected.filter(e=>e.parent!==n),...n.children.filter(e=>e.parent===n&&e.disabled&&e.selected)]}_removeParent(n){this._selected=this._selected.filter(e=>e!==n)}_activeChildren(n){return n.children.every(e=>!e.disabled||e.selected)}},Cz=new T("ng-select-selection-model"),wz=(()=>{let n=class n{constructor(){this.classes=u(new Ii("class"),{optional:!0}),this.config=u(hme),this._cd=u(ye),this._console=u(pme),this._destroyRef=u(nn),this._disabled=he(!1),this.ariaLabelDropdown=ne("Options List"),this.ariaLabel=ne(void 0),this.markFirst=ne(!0,{transform:V}),this.placeholder=ne(this.config.placeholder),this.fixedPlaceholder=ne(!0),this.notFoundText=ne(void 0),this.typeToSearchText=ne(void 0),this.preventToggleOnRightClick=ne(!1),this.addTagText=ne(void 0),this.loadingText=ne(void 0),this.clearAllText=ne(void 0),this.dropdownPosition=ne("auto"),this.appendTo=ne(void 0),this.outsideClickEvent=ne(this.config.outsideClickEvent),this.loading=ne(!1,{transform:V}),this.closeOnSelect=ne(!0,{transform:V}),this.hideSelected=ne(!1,{transform:V}),this.selectOnTab=ne(!1,{transform:V}),this.openOnEnter=ne(void 0,{transform:V}),this.maxSelectedItems=ne(void 0,{transform:ct}),this.groupBy=ne(void 0),this.groupValue=ne(void 0),this.bufferAmount=ne(4,{transform:ct}),this.virtualScroll=ne(void 0,{transform:V}),this.selectableGroup=ne(!1,{transform:V}),this.tabFocusOnClearButton=ne(),this.selectableGroupAsModel=ne(!0,{transform:V}),this.searchFn=ne(null),this.trackByFn=ne(null),this.clearOnBackspace=ne(!0,{transform:V}),this.labelForId=ne(null),this.inputAttrs=ne({}),this.tabIndex=ne(void 0,{transform:ct}),this.readonly=ne(!1,{transform:V}),this.searchWhileComposing=ne(!0,{transform:V}),this.minTermLength=ne(0,{transform:ct}),this.editableSearchTerm=ne(!1,{transform:V}),this.ngClass=ne(null),this.typeahead=ne(void 0),this.multiple=ne(!1,{transform:V}),this.addTag=ne(!1),this.searchable=ne(!0,{transform:V}),this.clearable=ne(!0,{transform:V}),this.deselectOnClick=ne(),this.clearSearchOnAdd=ne(void 0),this.compareWith=ne(void 0,{transform:a=>{if(a!=null&&!AC(a))throw Error("`compareWith` must be a function.");return a}}),this.keyDownFn=ne(a=>!0),this.bindLabel=Em(void 0),this.bindValue=Em(void 0),this.appearance=Em(void 0),this.isOpen=Em(!1),this.items=Em([]),this.blurEvent=bi({alias:"blur"}),this.focusEvent=bi({alias:"focus"}),this.changeEvent=bi({alias:"change"}),this.openEvent=bi({alias:"open"}),this.closeEvent=bi({alias:"close"}),this.searchEvent=bi({alias:"search"}),this.clearEvent=bi({alias:"clear"}),this.addEvent=bi({alias:"add"}),this.removeEvent=bi({alias:"remove"}),this.scroll=bi({alias:"scroll"}),this.scrollToEnd=bi({alias:"scrollToEnd"}),this.disabled=Zt(()=>this.readonly()||this._disabled()),this.clearSearchOnAddValue=Zt(()=>Ji(this.clearSearchOnAdd())?this.clearSearchOnAdd():Ji(this.config.clearSearchOnAdd)?this.config.clearSearchOnAdd:this.closeOnSelect()),this.deselectOnClickValue=Zt(()=>Ji(this.deselectOnClick())?this.deselectOnClick():Ji(this.config.deselectOnClick)?this.config.deselectOnClick:this.multiple()),this.optionTemplate=fr(OC,{read:te}),this.optgroupTemplate=fr(RC,{read:te}),this.labelTemplate=fr(PC,{read:te}),this.multiLabelTemplate=fr(FC,{read:te}),this.headerTemplate=fr(NC,{read:te}),this.footerTemplate=fr(LC,{read:te}),this.notFoundTemplate=fr(VC,{read:te}),this.placeholderTemplate=fr(BC,{read:te}),this.typeToSearchTemplate=fr(jC,{read:te}),this.loadingTextTemplate=fr(HC,{read:te}),this.tagTemplate=fr(zC,{read:te}),this.loadingSpinnerTemplate=fr(UC,{read:te}),this.clearButtonTemplate=fr($C,{read:te}),this.ngOptions=r2(gz,{descendants:!0}),this.dropdownPanel=qn(Kt(()=>fI)),this.searchInput=qn("searchInput"),this.clearButton=qn("clearButton"),this.dropdownId=vz(),this.escapeHTML=!0,this.viewPortItems=[],this.tabFocusOnClear=he(!0),this.autoFocus=u(new Ii("autofocus"),{optional:!0}),this._defaultLabel="label",this._editableSearchTerm=Zt(()=>this.editableSearchTerm()&&!this.multiple()),this._injector=u(de),this._isComposing=!1,this._keyPress$=new z,this._pressedKeys=[],this._searchTerm=he(null),this._validTerm=Zt(()=>{let a=this._searchTerm()?.trim();return a&&a.length>=this.minTermLength()}),this.clearItem=a=>{let s=this.selectedItems.find(l=>l.value===a);this.unselect(s)},this.trackByOption=(a,s)=>this.trackByFn()?this.trackByFn()(s.value):s,this._onChange=a=>{},this._onTouched=()=>{};let i=this.config,r=u(Cz,{optional:!0}),o=u(q);this._mergeGlobalConfig(i),this.itemsList=new gI(this,r?r():xz()),this.element=o.nativeElement}get filtered(){return!!this.searchTerm&&this.searchable()||this._isComposing}get focused(){return this._focused}get searchTerm(){return this._searchTerm()}get selectedItems(){return this.itemsList.selectedItems}get selectedValues(){return this.selectedItems.map(i=>i.value)}get hasValue(){return this.selectedItems.length>0}get currentPanelPosition(){if(this.dropdownPanel())return this.dropdownPanel().currentPosition}get showAddTag(){if(!this._validTerm())return!1;let i=this.searchTerm.toLowerCase().trim();return this.addTag()&&!this.itemsList.filteredItems.some(r=>r.label.toLowerCase()===i)&&(!this.hideSelected()&&this.isOpen()||!this.selectedItems.some(r=>r.label.toLowerCase()===i))&&!this.loading()}ngOnInit(){this._handleKeyPresses(),this._setInputAttributes()}ngOnChanges(i){i.multiple&&this.itemsList.clearSelected(),i.items&&(this._itemsAreUsed=!0,this._setItems(i.items.currentValue||[])),i.isOpen&&(this._manualOpen=Ji(i.isOpen.currentValue)),i.groupBy&&(i.items||this._setItems([...this.items()])),i.inputAttrs&&this._setInputAttributes(),this._setTabFocusOnClear()}ngAfterViewInit(){this._itemsAreUsed||(this.escapeHTML=!1,this._setItemsFromNgOptions()),Ji(this.autoFocus)&&this.focus()}handleKeyDown(i){let r=i.key;if(Object.values(Ps).includes(r)){if(this.keyDownFn()(i)===!1)return;this.handleKeyCode(i)}else r&&r.length===1&&this._keyPress$.next(r.toLocaleLowerCase())}handleKeyCode(i){let r=i.target;this.clearButton()&&this.clearButton().nativeElement===r?this.handleKeyCodeClear(i):this.handleKeyCodeInput(i)}handleKeyCodeInput(i){switch(i.key){case Ps.ArrowDown:this._handleArrowDown(i);break;case Ps.ArrowUp:this._handleArrowUp(i);break;case Ps.Space:this._handleSpace(i);break;case Ps.Enter:this._handleEnter(i);break;case Ps.Tab:this._handleTab(i);break;case Ps.Esc:this.close(),i.preventDefault();break;case Ps.Backspace:this._handleBackspace();break}}handleKeyCodeClear(i){switch(i.key){case Ps.Enter:this.handleClearClick(),i.preventDefault();break}}handleMousedown(i){if(this.disabled())return;if(this.preventToggleOnRightClick()&&i.button===2)return!1;let r=i.target;if(r.tagName!=="INPUT"&&i.preventDefault(),!r.classList.contains("ng-clear-wrapper")){if(r.classList.contains("ng-arrow-wrapper")){this.handleArrowClick();return}r.classList.contains("ng-value-icon")||(this._focused||this.focus(),this.searchable()?this.open():this.toggle())}}handleArrowClick(){this.isOpen()?this.close():this.open()}handleClearClick(i){this.hasValue&&(this.itemsList.clearSelected(!0),this._updateNgModel()),this._clearSearch(),this.focus(),this.clearEvent.emit(),this._onSelectionChanged()}clearModel(){this.clearable()&&(this.itemsList.clearSelected(),this._updateNgModel())}writeValue(i){this.itemsList.clearSelected(),this._handleWriteValue(i),this._editableSearchTerm()&&this._setSearchTermFromItems(),this._cd.markForCheck()}registerOnChange(i){this._onChange=i}registerOnTouched(i){this._onTouched=i}setDisabledState(i){this._disabled.set(i),this._cd.markForCheck()}toggle(){this.isOpen()?this.close():this.open()}open(){this.disabled()||this.isOpen()||this._manualOpen||!this.typeahead()?.observed&&!this.addTag()&&this.itemsList.noItemsToSelect||(this.isOpen.set(!0),this.itemsList.markSelectedOrDefault(this.markFirst()),this.openEvent.emit(),this.searchTerm||this.focus(),this.detectChanges())}close(){!this.isOpen()||this._manualOpen||(this.isOpen.set(!1),this._isComposing=!1,this._editableSearchTerm()?this.itemsList.resetFilteredItems():this._clearSearch(),this.itemsList.unmarkItem(),this._onTouched(),this.closeEvent.emit(),this._cd.markForCheck())}toggleItem(i){!i||i.disabled||this.disabled()||(this.deselectOnClickValue()&&i.selected?this.unselect(i):this.select(i),this._editableSearchTerm()&&this._setSearchTermFromItems())}select(i){i.selected||(this.itemsList.select(i),this.clearSearchOnAddValue()&&!this._editableSearchTerm()&&this._clearSearch(),this._updateNgModel(),this.multiple()&&this.addEvent.emit(i.value)),(this.closeOnSelect()||this.itemsList.noItemsToSelect)&&this.close(),this._onSelectionChanged()}focus(){this.searchInput().nativeElement.focus()}blur(){this.searchInput().nativeElement.blur()}unselect(i){i&&(this.itemsList.unselect(i),this.focus(),this._updateNgModel(),this.removeEvent.emit(i.value),this._onSelectionChanged())}selectTag(){let i;AC(this.addTag())?i=this.addTag()(this.searchTerm):i=this._primitive?this.searchTerm:{[this.bindLabel()]:this.searchTerm};let r=o=>this.typeahead()?.observed||!this.isOpen()?this.itemsList.mapItem(o,null):this.itemsList.addItem(o);ume(i)?i.then(o=>this.select(r(o))).catch(()=>{}):i&&this.select(r(i))}showClear(){return this.clearable()&&(this.hasValue||this.searchTerm)&&!this.disabled()}focusOnClear(){this.blur(),this.clearButton()&&this.clearButton().nativeElement.focus()}showNoItemsFound(){let i=this.itemsList.filteredItems.length===0;return(i&&!this.typeahead()?.observed&&!this.loading()||i&&this.typeahead()?.observed&&this._validTerm()&&!this.loading())&&!this.showAddTag}showTypeToSearch(){return this.itemsList.filteredItems.length===0&&this.typeahead()?.observed&&!this._validTerm()&&!this.loading()}onCompositionStart(){this._isComposing=!0}onCompositionEnd(i){this._isComposing=!1,!this.searchWhileComposing()&&this.filter(i)}filter(i){this._isComposing&&!this.searchWhileComposing()||(this._searchTerm.set(i),this.typeahead()?.observed&&(this._validTerm()||this.minTermLength()===0)&&this.typeahead().next(i),this.typeahead()?.observed||(this.itemsList.filter(i),this.isOpen()&&this.itemsList.markSelectedOrDefault(this.markFirst())),this.searchEvent.emit({term:i,items:this.itemsList.filteredItems.map(r=>r.value)}),this.open())}onInputFocus(i){this._focused||(this._editableSearchTerm()&&this._setSearchTermFromItems(),this.element.classList.add("ng-select-focused"),this.focusEvent.emit(i),this._focused=!0)}onInputBlur(i){this.element.classList.remove("ng-select-focused"),this.blurEvent.emit(i),!this.isOpen()&&!this.disabled()&&this._onTouched(),this._editableSearchTerm()&&this._setSearchTermFromItems(),this._focused=!1}onItemHover(i){i.disabled||this.itemsList.markItem(i)}detectChanges(){this._cd.destroyed||this._cd.detectChanges()}_setSearchTermFromItems(){let i=this.selectedItems?.[0];this._searchTerm.set(i?.label??null)}_setItems(i){let r=i[0];this.bindLabel.set(this.bindLabel()||this._defaultLabel),this._primitive=Ji(r)?!Su(r):this._primitive||this.bindLabel()===this._defaultLabel,this.itemsList.setItems(i),i.length>0&&this.hasValue&&this.itemsList.mapSelectedItems(),this.isOpen()&&Ji(this.searchTerm)&&!this.typeahead()?.observed&&this.itemsList.filter(this.searchTerm),(this.typeahead()?.observed||this.isOpen())&&this.itemsList.markSelectedOrDefault(this.markFirst())}_setItemsFromNgOptions(){Ar(()=>{let i=this.ngOptions();this.bindLabel.set(this._defaultLabel);let r=i.map(o=>({$ngOptionValue:o.value(),$ngOptionLabel:o.elementRef.nativeElement.innerHTML,disabled:o.disabled()}))??[];this.items.set(r),this.itemsList.setItems(r),this.hasValue&&this.itemsList.mapSelectedItems(),this._cd.detectChanges(),i.map(o=>({option:o,item:this.itemsList.findItem(o.value())})).filter(({item:o})=>Ji(o)).forEach(({option:o,item:a})=>{a.disabled=o.disabled(),a.label=o.label()||a.label})},{injector:this._injector})}_isValidWriteValue(i){if(!Ji(i)||this.multiple()&&i===""||Array.isArray(i)&&i.length===0)return!1;let r=o=>!Ji(this.compareWith())&&Su(o)&&this.bindValue()?(this._console.warn(`Setting object(${JSON.stringify(o)}) as your model with bindValue is not allowed unless [compareWith] is used.`),!1):!0;return this.multiple()?Array.isArray(i)?i.every(o=>r(o)):(this._console.warn("Multiple select ngModel should be array."),!1):r(i)}_handleWriteValue(i){if(!this._isValidWriteValue(i))return;let r=o=>{let a=this.itemsList.findItem(o);if(a)this.itemsList.select(a);else{let s=Su(o),l=!s&&!this.bindValue();s||l?this.itemsList.select(this.itemsList.mapItem(o,null)):this.bindValue()&&(a={[this.bindLabel()]:null,[this.bindValue()]:o},this.itemsList.select(this.itemsList.mapItem(a,null)))}};this.multiple()?i.forEach(o=>r(o)):r(i)}_handleKeyPresses(){this.searchable()||this._keyPress$.pipe(ku(this._destroyRef),Be(i=>this._pressedKeys.push(i)),Rt(200),ce(()=>this._pressedKeys.length>0),se(()=>this._pressedKeys.join(""))).subscribe(i=>{let r=this.itemsList.findByLabel(i);r&&(this.isOpen()?(this.itemsList.markItem(r),this._scrollToMarked(),this._cd.markForCheck()):this.select(r)),this._pressedKeys=[]})}_setInputAttributes(){let i=this.searchInput().nativeElement,r=M({type:"text",autocorrect:"off",autocapitalize:"off",autocomplete:"off","aria-controls":this.dropdownId},this.inputAttrs());for(let o of Object.keys(r))i.setAttribute(o,r[o])}_setTabFocusOnClear(){this.tabFocusOnClear.set(Ji(this.tabFocusOnClearButton())?!!this.tabFocusOnClearButton():this.config.tabFocusOnClear)}_updateNgModel(){let i=[];for(let o of this.selectedItems)if(this.bindValue()){let a=null;if(o.children){let s=this.groupValue()?this.bindValue():this.groupBy();a=o.value[s||this.groupBy()]}else a=this.itemsList.resolveNested(o.value,this.bindValue());i.push(a)}else i.push(o.value);let r=this.selectedItems.map(o=>o.value);this.multiple()?(this._onChange(i),this.changeEvent.emit(r)):(this._onChange(Ji(i[0])?i[0]:null),this.changeEvent.emit(r[0])),this._cd.markForCheck()}_clearSearch(){this.searchTerm&&(this._changeSearch(null),this.itemsList.resetFilteredItems())}_changeSearch(i){this._searchTerm.set(i),this.typeahead()?.observed&&this.typeahead().next(i)}_scrollToMarked(){!this.isOpen()||!this.dropdownPanel()||this.dropdownPanel().scrollTo(this.itemsList.markedItem)}_scrollToTag(){!this.isOpen()||!this.dropdownPanel()||this.dropdownPanel().scrollToTag()}_onSelectionChanged(){let i=this.appendTo()??this.config.appendTo;this.isOpen()&&this.deselectOnClickValue()&&i&&(this._cd.detectChanges(),this.dropdownPanel().adjustPosition())}_handleTab(i){if(this.isOpen()===!1){if(this.showClear()&&!i.shiftKey&&this.tabFocusOnClear())this.focusOnClear(),i.preventDefault();else if(!this.addTag())return}this.selectOnTab()?this.itemsList.markedItem?(this.toggleItem(this.itemsList.markedItem),i.preventDefault()):this.showAddTag?(this.selectTag(),i.preventDefault()):this.close():this.close()}_handleEnter(i){let r=this.openOnEnter()??this.config.openOnEnter;if(this.isOpen()||this._manualOpen)this.itemsList.markedItem?this.toggleItem(this.itemsList.markedItem):this.showAddTag&&this.selectTag();else if(r)this.open();else return;i.preventDefault()}_handleSpace(i){this.isOpen()||this._manualOpen||(this.open(),i.preventDefault())}_handleArrowDown(i){this._nextItemIsTag(1)?(this.itemsList.unmarkItem(),this._scrollToTag()):(this.itemsList.markNextItem(),this._scrollToMarked()),this.open(),i.preventDefault()}_handleArrowUp(i){this.isOpen()&&(this._nextItemIsTag(-1)?(this.itemsList.unmarkItem(),this._scrollToTag()):(this.itemsList.markPreviousItem(),this._scrollToMarked()),i.preventDefault())}_nextItemIsTag(i){let r=this.itemsList.markedIndex+i;return this.addTag()&&this.searchTerm&&this.itemsList.markedItem&&(r<0||r===this.itemsList.filteredItems.length)}_handleBackspace(){this.searchTerm||!this.clearable()||!this.clearOnBackspace()||!this.hasValue||(this.multiple()?this.unselect(this.itemsList.lastSelectedItem):this.clearModel())}_mergeGlobalConfig(i){this.bindValue.set(this.bindValue()||i.bindValue),this.bindLabel.set(this.bindLabel()||i.bindLabel),this.appearance.set(this.appearance()||i.appearance),this._setTabFocusOnClear()}getVirtualScroll(i){return Ji(this.virtualScroll)?this.virtualScroll():this.isVirtualScrollDisabled(i)}isVirtualScrollDisabled(i){return Ji(i.disableVirtualScroll)?!i.disableVirtualScroll:!1}};n.\u0275fac=function(r){return new(r||n)},n.\u0275cmp=E({type:n,selectors:[["ng-select"]],contentQueries:function(r,o,a){r&1&&(Rn(a,o.optionTemplate,OC,5,te),Rn(a,o.optgroupTemplate,RC,5,te),Rn(a,o.labelTemplate,PC,5,te),Rn(a,o.multiLabelTemplate,FC,5,te),Rn(a,o.headerTemplate,NC,5,te),Rn(a,o.footerTemplate,LC,5,te),Rn(a,o.notFoundTemplate,VC,5,te),Rn(a,o.placeholderTemplate,BC,5,te),Rn(a,o.typeToSearchTemplate,jC,5,te),Rn(a,o.loadingTextTemplate,HC,5,te),Rn(a,o.tagTemplate,zC,5,te),Rn(a,o.loadingSpinnerTemplate,UC,5,te),Rn(a,o.clearButtonTemplate,$C,5,te),Rn(a,o.ngOptions,gz,5)),r&2&&Ho(14)},viewQuery:function(r,o){r&1&&(Pn(o.dropdownPanel,fI,5),Pn(o.searchInput,Eue,5),Pn(o.clearButton,Mue,5)),r&2&&Ho(3)},hostVars:20,hostBindings:function(r,o){r&1&&S("keydown",function(s){return o.handleKeyDown(s)}),r&2&&G("ng-select",!0)("ng-select-single",!o.multiple())("ng-select-typeahead",o.typeahead())("ng-select-multiple",o.multiple())("ng-select-taggable",o.addTag())("ng-select-searchable",o.searchable())("ng-select-clearable",o.clearable())("ng-select-opened",o.isOpen())("ng-select-filtered",o.filtered)("ng-select-disabled",o.disabled())},inputs:{ariaLabelDropdown:[1,"ariaLabelDropdown"],ariaLabel:[1,"ariaLabel"],markFirst:[1,"markFirst"],placeholder:[1,"placeholder"],fixedPlaceholder:[1,"fixedPlaceholder"],notFoundText:[1,"notFoundText"],typeToSearchText:[1,"typeToSearchText"],preventToggleOnRightClick:[1,"preventToggleOnRightClick"],addTagText:[1,"addTagText"],loadingText:[1,"loadingText"],clearAllText:[1,"clearAllText"],dropdownPosition:[1,"dropdownPosition"],appendTo:[1,"appendTo"],outsideClickEvent:[1,"outsideClickEvent"],loading:[1,"loading"],closeOnSelect:[1,"closeOnSelect"],hideSelected:[1,"hideSelected"],selectOnTab:[1,"selectOnTab"],openOnEnter:[1,"openOnEnter"],maxSelectedItems:[1,"maxSelectedItems"],groupBy:[1,"groupBy"],groupValue:[1,"groupValue"],bufferAmount:[1,"bufferAmount"],virtualScroll:[1,"virtualScroll"],selectableGroup:[1,"selectableGroup"],tabFocusOnClearButton:[1,"tabFocusOnClearButton"],selectableGroupAsModel:[1,"selectableGroupAsModel"],searchFn:[1,"searchFn"],trackByFn:[1,"trackByFn"],clearOnBackspace:[1,"clearOnBackspace"],labelForId:[1,"labelForId"],inputAttrs:[1,"inputAttrs"],tabIndex:[1,"tabIndex"],readonly:[1,"readonly"],searchWhileComposing:[1,"searchWhileComposing"],minTermLength:[1,"minTermLength"],editableSearchTerm:[1,"editableSearchTerm"],ngClass:[1,"ngClass"],typeahead:[1,"typeahead"],multiple:[1,"multiple"],addTag:[1,"addTag"],searchable:[1,"searchable"],clearable:[1,"clearable"],deselectOnClick:[1,"deselectOnClick"],clearSearchOnAdd:[1,"clearSearchOnAdd"],compareWith:[1,"compareWith"],keyDownFn:[1,"keyDownFn"],bindLabel:[1,"bindLabel"],bindValue:[1,"bindValue"],appearance:[1,"appearance"],isOpen:[1,"isOpen"],items:[1,"items"]},outputs:{bindLabel:"bindLabelChange",bindValue:"bindValueChange",appearance:"appearanceChange",isOpen:"isOpenChange",items:"itemsChange",blurEvent:"blur",focusEvent:"focus",changeEvent:"change",openEvent:"open",closeEvent:"close",searchEvent:"search",clearEvent:"clear",addEvent:"add",removeEvent:"remove",scroll:"scroll",scrollToEnd:"scrollToEnd"},exportAs:["ngSelect"],features:[Ce([{provide:tr,useExisting:Kt(()=>n),multi:!0},yz]),Ae],decls:15,vars:20,consts:[["searchInput",""],["defaultPlaceholderTemplate",""],["defaultLabelTemplate",""],["defaultLoadingSpinnerTemplate",""],["clearButton",""],["defaultOptionTemplate",""],["defaultTagTemplate",""],["defaultNotFoundTemplate",""],["defaultTypeToSearchTemplate",""],["defaultLoadingTextTemplate",""],[1,"ng-select-container",3,"mousedown"],[1,"ng-value-container"],[3,"ngTemplateOutlet","ngTemplateOutletContext"],[1,"ng-input"],["aria-autocomplete","list","role","combobox",3,"blur","change","compositionend","compositionstart","focus","input","disabled","readOnly","value"],[1,"ng-arrow-wrapper"],[1,"ng-arrow"],[1,"ng-dropdown-panel",3,"virtualScroll","bufferAmount","appendTo","position","outsideClickEvent","headerTemplate","footerTemplate","filterValue","items","showAddTag","markedItem","ng-select-multiple","class","id","ariaLabelDropdown"],["aria-atomic","true","aria-live","polite","role","status",1,"ng-visually-hidden"],[3,"ngTemplateOutlet"],[1,"ng-placeholder"],[1,"ng-value",3,"ng-value-disabled"],[1,"ng-value"],["aria-hidden","true",1,"ng-value-icon","left",3,"click"],[1,"ng-value-label",3,"ngItemLabel","escape"],[1,"ng-spinner-loader"],["role","button","tabindex","0",1,"ng-clear-wrapper",3,"title"],["role","button","tabindex","0",1,"ng-clear-wrapper",3,"click","title"],["aria-hidden","true",1,"ng-clear"],[1,"ng-dropdown-panel",3,"update","scroll","scrollToEnd","outsideClick","virtualScroll","bufferAmount","appendTo","position","outsideClickEvent","headerTemplate","footerTemplate","filterValue","items","showAddTag","markedItem","id","ariaLabelDropdown"],[1,"ng-option",3,"ng-option-disabled","ng-option-selected","ng-optgroup","ng-option","ng-option-child","ng-option-marked"],["role","option",1,"ng-option",3,"ng-option-marked"],[1,"ng-option",3,"click","mouseover"],[1,"ng-option-label",3,"ngItemLabel","escape"],["role","option",1,"ng-option",3,"mouseover","click"],[1,"ng-tag-label"],[1,"ng-option","ng-option-disabled"]],template:function(r,o){if(r&1){let a=Y();h(0,"div",10),S("mousedown",function(l){return I(a),A(o.handleMousedown(l))}),h(1,"div",11),N(2,Oue,3,1),N(3,Nue,2,0),N(4,Vue,1,5,null,12),h(5,"div",13)(6,"input",14,0),S("blur",function(l){return I(a),A(o.onInputBlur(l))})("change",function(l){return I(a),A(l.stopPropagation())})("compositionend",function(){I(a);let l=Se(7);return A(o.onCompositionEnd(l.value))})("compositionstart",function(){return I(a),A(o.onCompositionStart())})("focus",function(l){return I(a),A(o.onInputFocus(l))})("input",function(){I(a);let l=Se(7);return A(o.filter(l.value))}),p()()(),N(8,Hue,3,1),N(9,$ue,2,1),h(10,"span",15),k(11,"span",16),p()(),N(12,ame,8,21,"ng-dropdown-panel",17),h(13,"div",18),N(14,sme,1,1),p()}r&2&&(G("ng-appearance-outline",o.appearance()==="outline")("ng-has-value",o.hasValue),g(2),L(o.selectedItems.length===0&&!o.searchTerm||(o.fixedPlaceholder()??o.config.fixedPlaceholder)?2:-1),g(),L((!o.multiLabelTemplate()||!o.multiple())&&o.selectedItems.length>0?3:-1),g(),L(o.multiple()&&o.multiLabelTemplate()&&o.selectedValues.length>0?4:-1),g(2),y("disabled",o.disabled())("readOnly",!o.searchable()||o.itemsList.maxItemsSelected)("value",o.searchTerm??""),X("aria-activedescendant",o.isOpen()?o.itemsList==null||o.itemsList.markedItem==null?null:o.itemsList.markedItem.htmlId:null)("aria-controls",o.isOpen()?o.dropdownId:null)("aria-expanded",o.isOpen())("aria-label",o.ariaLabel())("id",o.labelForId())("tabindex",o.tabIndex()),g(2),L(o.loading()?8:-1),g(),L(o.showClear()?9:-1),g(3),L(o.isOpen()?12:-1),g(2),L(o.isOpen()&&o.showNoItemsFound()?14:-1))},dependencies:[Fn,mme,fI],styles:[`@charset "UTF-8";.ng-select{position:relative;display:block;-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box}.ng-select div,.ng-select input,.ng-select span{-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box}.ng-select [hidden]{display:none}.ng-select.ng-select-searchable .ng-select-container .ng-value-container .ng-input{opacity:1}.ng-select.ng-select-opened .ng-select-container{z-index:1001}.ng-select.ng-select-disabled .ng-select-container .ng-value-container .ng-placeholder,.ng-select.ng-select-disabled .ng-select-container .ng-value-container .ng-value{-webkit-user-select:none;user-select:none;cursor:default}.ng-select.ng-select-disabled .ng-arrow-wrapper{cursor:default}.ng-select.ng-select-filtered .ng-placeholder{display:none}.ng-select .ng-select-container{cursor:default;display:flex;outline:none;overflow:hidden;position:relative;width:100%}.ng-select .ng-select-container .ng-value-container{display:flex;flex:1}.ng-select .ng-select-container .ng-value-container .ng-input{opacity:0}.ng-select .ng-select-container .ng-value-container .ng-input>input{box-sizing:content-box;background:none transparent;border:0 none;box-shadow:none;outline:none;padding:0;cursor:default;width:100%}.ng-select .ng-select-container .ng-value-container .ng-input>input::-ms-clear{display:none}.ng-select .ng-select-container .ng-value-container .ng-input>input[readonly]{-webkit-user-select:unset;user-select:unset;width:0;padding:0}.ng-select.ng-select-single.ng-select-filtered .ng-select-container .ng-value-container .ng-value{visibility:hidden}.ng-select.ng-select-single .ng-select-container .ng-value-container,.ng-select.ng-select-single .ng-select-container .ng-value-container .ng-value{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.ng-select.ng-select-single .ng-select-container .ng-value-container .ng-value .ng-value-icon{display:none}.ng-select.ng-select-single .ng-select-container .ng-value-container .ng-input{position:absolute;left:0;width:100%}.ng-select.ng-select-multiple.ng-select-disabled>.ng-select-container .ng-value-container .ng-value .ng-value-icon{display:none}.ng-select.ng-select-multiple .ng-select-container .ng-value-container{flex-wrap:wrap}.ng-select.ng-select-multiple .ng-select-container .ng-value-container .ng-placeholder{position:absolute}.ng-select.ng-select-multiple .ng-select-container .ng-value-container .ng-value{white-space:nowrap}.ng-select.ng-select-multiple .ng-select-container .ng-value-container .ng-value.ng-value-disabled .ng-value-icon{display:none}.ng-select.ng-select-multiple .ng-select-container .ng-value-container .ng-value .ng-value-icon{cursor:pointer}.ng-select.ng-select-multiple .ng-select-container .ng-value-container .ng-input{flex:1;z-index:2}.ng-select.ng-select-multiple .ng-select-container .ng-value-container .ng-placeholder{z-index:1}.ng-select .ng-clear-wrapper{cursor:pointer;position:relative;width:17px;-webkit-user-select:none;user-select:none}.ng-select .ng-clear-wrapper .ng-clear{display:inline-block;font-size:18px;line-height:1;pointer-events:none}.ng-select .ng-spinner-loader{border-radius:50%;width:17px;height:17px;margin-right:5px;font-size:10px;position:relative;text-indent:-9999em;border-top:2px solid rgba(66,66,66,.2);border-right:2px solid rgba(66,66,66,.2);border-bottom:2px solid rgba(66,66,66,.2);border-left:2px solid #424242;transform:translateZ(0);animation:load8 .8s infinite linear}.ng-select .ng-spinner-loader:after{border-radius:50%;width:17px;height:17px}@-webkit-keyframes load8{0%{-webkit-transform:rotate(0deg);transform:rotate(0)}to{-webkit-transform:rotate(360deg);transform:rotate(360deg)}}@keyframes load8{0%{-webkit-transform:rotate(0deg);transform:rotate(0)}to{-webkit-transform:rotate(360deg);transform:rotate(360deg)}}.ng-select .ng-arrow-wrapper{cursor:pointer;position:relative;text-align:center;-webkit-user-select:none;user-select:none}.ng-select .ng-arrow-wrapper .ng-arrow{pointer-events:none;display:inline-block;height:0;width:0;position:relative}.ng-dropdown-panel{box-sizing:border-box;position:absolute;opacity:0;width:100%;z-index:1050;-webkit-overflow-scrolling:touch}.ng-dropdown-panel .ng-dropdown-panel-items{display:block;height:auto;-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box;max-height:240px;overflow-y:auto}.ng-dropdown-panel .ng-dropdown-panel-items .ng-optgroup{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.ng-dropdown-panel .ng-dropdown-panel-items .ng-option{box-sizing:border-box;cursor:pointer;display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.ng-dropdown-panel .ng-dropdown-panel-items .ng-option .ng-option-label:empty:before{content:"\\200b"}.ng-dropdown-panel .ng-dropdown-panel-items .ng-option .highlighted{font-weight:700;text-decoration:underline}.ng-dropdown-panel .ng-dropdown-panel-items .ng-option.disabled{cursor:default}.ng-dropdown-panel .scroll-host{overflow:hidden;overflow-y:auto;position:relative;display:block;-webkit-overflow-scrolling:touch}.ng-dropdown-panel .scrollable-content{top:0;left:0;width:100%;height:100%;position:absolute}.ng-dropdown-panel .total-padding{width:1px;opacity:0}.ng-visually-hidden{position:absolute!important;width:1px;height:1px;margin:-1px;padding:0;overflow:hidden;clip:rect(0 0 0 0);border:0;white-space:nowrap} -`],encapsulation:2,changeDetection:0});let t=n;return t})(),bI=(()=>{let n=class n{};n.\u0275fac=function(r){return new(r||n)},n.\u0275mod=ee({type:n}),n.\u0275inj=J({providers:_me()});let t=n;return t})();function _me(){return[{provide:Cz,useValue:xz}]}var vme=["*"],yme=["ngSelect"],xme=()=>({standalone:!0}),Ez=(t,n,e,i)=>({item:t,item$:n,index:e,searchTerm:i}),Cme=(t,n,e)=>({item:t,clear:n,label:e}),wme=(t,n)=>({items:t,clear:n}),vI=t=>({searchTerm:t});function Dme(t,n){}function Eme(t,n){if(t&1&&R(0,Dme,0,0,"ng-template",15),t&2){let e=n.item,i=n.item$,r=n.index,o=n.searchTerm,a=C(2);y("ngTemplateOutlet",a.optionTemplate)("ngTemplateOutletContext",wm(2,Ez,e,i,r,o))}}function Mme(t,n){t&1&&R(0,Eme,1,7,"ng-template",2)}function kme(t,n){}function Sme(t,n){if(t&1&&R(0,kme,0,0,"ng-template",15),t&2){let e=n.item,i=n.item$,r=n.index,o=n.searchTerm,a=C(2);y("ngTemplateOutlet",a.optgroupTemplate)("ngTemplateOutletContext",wm(2,Ez,e,i,r,o))}}function Tme(t,n){t&1&&R(0,Sme,1,7,"ng-template",3)}function Ime(t,n){}function Ame(t,n){if(t&1&&R(0,Ime,0,0,"ng-template",15),t&2){let e=n.item,i=n.clear,r=n.label,o=C(2);y("ngTemplateOutlet",o.labelTemplate)("ngTemplateOutletContext",Rd(2,Cme,e,i,r))}}function Ome(t,n){t&1&&R(0,Ame,1,6,"ng-template",4)}function Rme(t,n){}function Pme(t,n){if(t&1&&R(0,Rme,0,0,"ng-template",15),t&2){let e=n.items,i=n.clear,r=C(2);y("ngTemplateOutlet",r.multiLabelTemplate)("ngTemplateOutletContext",wa(2,wme,e,i))}}function Fme(t,n){t&1&&R(0,Pme,1,5,"ng-template",5)}function Nme(t,n){}function Lme(t,n){if(t&1&&R(0,Nme,0,0,"ng-template",16),t&2){let e=C(2);y("ngTemplateOutlet",e.headerTemplate)}}function Vme(t,n){t&1&&R(0,Lme,1,1,"ng-template",6)}function Bme(t,n){}function jme(t,n){if(t&1&&R(0,Bme,0,0,"ng-template",16),t&2){let e=C(2);y("ngTemplateOutlet",e.footerTemplate)}}function Hme(t,n){t&1&&R(0,jme,1,1,"ng-template",7)}function zme(t,n){}function Ume(t,n){if(t&1&&R(0,zme,0,0,"ng-template",15),t&2){let e=n.searchTerm,i=C(2);y("ngTemplateOutlet",i.notFoundTemplate)("ngTemplateOutletContext",Pt(2,vI,e))}}function $me(t,n){t&1&&R(0,Ume,1,4,"ng-template",8)}function Wme(t,n){}function Gme(t,n){if(t&1&&R(0,Wme,0,0,"ng-template",16),t&2){let e=C(2);y("ngTemplateOutlet",e.typeToSearchTemplate)}}function qme(t,n){t&1&&R(0,Gme,1,1,"ng-template",9)}function Yme(t,n){}function Qme(t,n){if(t&1&&R(0,Yme,0,0,"ng-template",15),t&2){let e=n.searchTerm,i=C(2);y("ngTemplateOutlet",i.loadingTextTemplate)("ngTemplateOutletContext",Pt(2,vI,e))}}function Kme(t,n){t&1&&R(0,Qme,1,4,"ng-template",10)}function Zme(t,n){}function Xme(t,n){if(t&1&&R(0,Zme,0,0,"ng-template",15),t&2){let e=n.searchTerm,i=C(2);y("ngTemplateOutlet",i.tagTemplate)("ngTemplateOutletContext",Pt(2,vI,e))}}function Jme(t,n){t&1&&R(0,Xme,1,4,"ng-template",11)}function ehe(t,n){}function the(t,n){if(t&1&&R(0,ehe,0,0,"ng-template",16),t&2){let e=C(2);y("ngTemplateOutlet",e.loadingSpinnerTemplate)}}function ihe(t,n){t&1&&R(0,the,1,1,"ng-template",12)}function nhe(t,n){}function rhe(t,n){if(t&1&&R(0,nhe,0,0,"ng-template",16),t&2){let e=C(2);y("ngTemplateOutlet",e.placeholderTemplate)}}function ohe(t,n){t&1&&R(0,rhe,1,1,"ng-template",13)}function ahe(t,n){}function she(t,n){if(t&1&&R(0,ahe,0,0,"ng-template",16),t&2){let e=C(2);y("ngTemplateOutlet",e.clearbuttonTemplate)}}function lhe(t,n){t&1&&R(0,she,1,1,"ng-template",14)}var che=(()=>{let n=class n{constructor(){this.elementRef=u(q),this.disabled=!1,this.stateChange$=new z}get label(){return(this.elementRef.nativeElement.textContent||"").trim()}ngOnChanges(i){i.disabled&&this.stateChange$.next({value:this.value,disabled:this.disabled})}ngAfterViewChecked(){this.label!==this._previousLabel&&(this._previousLabel=this.label,this.stateChange$.next({value:this.value,disabled:this.disabled,label:this.elementRef.nativeElement.innerHTML}))}ngOnDestroy(){this.stateChange$.complete()}};n.\u0275fac=function(r){return new(r||n)},n.\u0275cmp=E({type:n,selectors:[["mtx-option"]],inputs:{value:"value",disabled:[2,"disabled","disabled",V]},exportAs:["mtxOption"],features:[Ae],ngContentSelectors:vme,decls:1,vars:0,template:function(r,o){r&1&&(Me(),oe(0))},encapsulation:2,changeDetection:0});let t=n;return t})(),dhe=(()=>{let n=class n{constructor(){this._defaultOptions=u(Mz,{optional:!0}),this.changes=new z,this.placeholder=this._defaultOptions?.placeholder,this.notFoundText=this._defaultOptions?.notFoundText??"No items found",this.typeToSearchText=this._defaultOptions?.typeToSearchText??"Type to search",this.addTagText=this._defaultOptions?.addTagText??"Add item",this.loadingText=this._defaultOptions?.loadingText??"Loading...",this.clearAllText=this._defaultOptions?.clearAllText??"Clear all"}};n.\u0275fac=function(r){return new(r||n)},n.\u0275prov=O({token:n,factory:n.\u0275fac,providedIn:"root"});let t=n;return t})(),uhe=(()=>{let n=class n{constructor(){this.template=u(te)}};n.\u0275fac=function(r){return new(r||n)},n.\u0275dir=F({type:n,selectors:[["","ng-option-tmp",""]]});let t=n;return t})(),mhe=(()=>{let n=class n{constructor(){this.template=u(te)}};n.\u0275fac=function(r){return new(r||n)},n.\u0275dir=F({type:n,selectors:[["","ng-optgroup-tmp",""]]});let t=n;return t})(),hhe=(()=>{let n=class n{constructor(){this.template=u(te)}};n.\u0275fac=function(r){return new(r||n)},n.\u0275dir=F({type:n,selectors:[["","ng-label-tmp",""]]});let t=n;return t})(),phe=(()=>{let n=class n{constructor(){this.template=u(te)}};n.\u0275fac=function(r){return new(r||n)},n.\u0275dir=F({type:n,selectors:[["","ng-multi-label-tmp",""]]});let t=n;return t})(),fhe=(()=>{let n=class n{constructor(){this.template=u(te)}};n.\u0275fac=function(r){return new(r||n)},n.\u0275dir=F({type:n,selectors:[["","ng-header-tmp",""]]});let t=n;return t})(),ghe=(()=>{let n=class n{constructor(){this.template=u(te)}};n.\u0275fac=function(r){return new(r||n)},n.\u0275dir=F({type:n,selectors:[["","ng-footer-tmp",""]]});let t=n;return t})(),_he=(()=>{let n=class n{constructor(){this.template=u(te)}};n.\u0275fac=function(r){return new(r||n)},n.\u0275dir=F({type:n,selectors:[["","ng-notfound-tmp",""]]});let t=n;return t})(),bhe=(()=>{let n=class n{constructor(){this.template=u(te)}};n.\u0275fac=function(r){return new(r||n)},n.\u0275dir=F({type:n,selectors:[["","ng-typetosearch-tmp",""]]});let t=n;return t})(),vhe=(()=>{let n=class n{constructor(){this.template=u(te)}};n.\u0275fac=function(r){return new(r||n)},n.\u0275dir=F({type:n,selectors:[["","ng-loadingtext-tmp",""]]});let t=n;return t})(),yhe=(()=>{let n=class n{constructor(){this.template=u(te)}};n.\u0275fac=function(r){return new(r||n)},n.\u0275dir=F({type:n,selectors:[["","ng-tag-tmp",""]]});let t=n;return t})(),xhe=(()=>{let n=class n{constructor(){this.template=u(te)}};n.\u0275fac=function(r){return new(r||n)},n.\u0275dir=F({type:n,selectors:[["","ng-loadingspinner-tmp",""]]});let t=n;return t})(),Che=(()=>{let n=class n{constructor(){this.template=u(te)}};n.\u0275fac=function(r){return new(r||n)},n.\u0275dir=F({type:n,selectors:[["","ng-placeholder-tmp",""]]});let t=n;return t})(),whe=(()=>{let n=class n{constructor(){this.template=u(te)}};n.\u0275fac=function(r){return new(r||n)},n.\u0275dir=F({type:n,selectors:[["","ng-clearbutton-tmp",""]]});let t=n;return t})(),Mz=new T("mtx-select-default-options"),Dz=0,yI=(()=>{let n=class n{get clearSearchOnAdd(){return this._clearSearchOnAdd??this.closeOnSelect}set clearSearchOnAdd(i){this._clearSearchOnAdd=i}get items(){return this._items}set items(i){this._itemsAreUsed=!0,this._items=i}get value(){return this._value}set value(i){this._assignValue(i)&&this._onChange(i)}get id(){return this._id}set id(i){this._id=i||this._uid,this.stateChanges.next()}get placeholder(){return this._placeholder}set placeholder(i){this._placeholder=i,this.stateChanges.next()}get focused(){return this._focused}get empty(){return this.value==null||Array.isArray(this.value)&&this.value.length===0}get shouldLabelFloat(){return this.focused||!this.empty}get required(){return this._required??this.ngControl?.control?.hasValidator(Le.required)??!1}set required(i){this._required=i,this.stateChanges.next()}get errorStateMatcher(){return this._errorStateTracker.matcher}set errorStateMatcher(i){this._errorStateTracker.matcher=i}get panelOpen(){return!!this.ngSelect.isOpen}get errorState(){return this._errorStateTracker.errorState}set errorState(i){this._errorStateTracker.errorState=i}constructor(){this._intl=u(dhe),this._changeDetectorRef=u(ye),this._elementRef=u(q),this._focusMonitor=u(Yt),this.ngControl=u(Hn,{optional:!0,self:!0}),this._parentFormField=u(Xo,{optional:!0}),this._defaultOptions=u(Mz,{optional:!0}),this._document=u(ge),this.addTag=!1,this.appearance="underline",this.appendTo=this._defaultOptions?.appendTo??"body",this.bindLabel=this._defaultOptions?.bindLabel,this.bindValue=this._defaultOptions?.bindValue,this.closeOnSelect=!0,this.clearable=!0,this.clearOnBackspace=!0,this.dropdownPosition="auto",this.bufferAmount=4,this.selectableGroup=!1,this.selectableGroupAsModel=!0,this.hideSelected=!1,this.loading=!1,this.labelForId=null,this.markFirst=!0,this.multiple=!1,this.searchable=!0,this.readonly=!1,this.searchFn=null,this.searchWhileComposing=!0,this.selectOnTab=!1,this.trackByFn=null,this.inputAttrs={},this.openOnEnter=this._defaultOptions?.openOnEnter??!0,this.minTermLength=0,this.editableSearchTerm=!1,this.keyDownFn=l=>!0,this.virtualScroll=this._defaultOptions?.virtualScroll??!1,this.fixedPlaceholder=this._defaultOptions?.fixedPlaceholder??!1,this.deselectOnClick=this._defaultOptions?.deselectOnClick??!1,this.blurEvent=new U,this.focusEvent=new U,this.changeEvent=new U,this.openEvent=new U,this.closeEvent=new U,this.searchEvent=new U,this.clearEvent=new U,this.addEvent=new U,this.removeEvent=new U,this.scroll=new U,this.scrollToEnd=new U,this._clearSearchOnAdd=this._defaultOptions?.clearSearchOnAdd,this._items=[],this._itemsAreUsed=!1,this._destroy$=new z,this._value=null,this.stateChanges=new z,this._uid=`mtx-select-${Dz++}`,this._focused=!1,this.disabled=!1,this.ariaLabel="",this.ariaLabelledby=null,this._ariaDescribedby=null,this.controlType="mtx-select",this._onChange=()=>{},this._onTouched=()=>{},this._valueId=`mtx-select-value-${Dz++}`,this._intlChangesSubscription=ke.EMPTY;let i=this._focusMonitor,r=u(dl),o=u(pc,{optional:!0}),a=u(Ki,{optional:!0}),s=this.ngControl;this._intlChangesSubscription=this._intl.changes.subscribe(()=>{this._changeDetectorRef.detectChanges()}),i.monitor(this._elementRef,!0).subscribe(l=>{this._focused&&!l&&this._onTouched(),this._focused=!!l,this.stateChanges.next()}),this.ngControl&&(this.ngControl.valueAccessor=this),this._errorStateTracker=new cl(r,s,a,o,this.stateChanges),this.id=this.id}ngOnInit(){this.compareWith&&(this.ngSelect.compareWith=this.compareWith)}ngAfterViewInit(){this._itemsAreUsed||(this.ngSelect.escapeHTML=!1,this._setItemsFromMtxOptions())}ngDoCheck(){if(this.ngControl){let i=this.ngControl;this._previousControl!==i.control&&(this._previousControl!==void 0&&i.disabled!==null&&i.disabled!==this.disabled&&(this.disabled=i.disabled),this._previousControl=i.control),this.updateErrorState()}}ngOnDestroy(){this._destroy$.next(),this._destroy$.complete(),this.stateChanges.complete(),this._focusMonitor.stopMonitoring(this._elementRef),this._intlChangesSubscription.unsubscribe()}_getAriaLabelledby(){if(this.ariaLabel)return null;let i=this._parentFormField?.getLabelId(),r=(i?i+" ":"")+this._valueId;return this.ariaLabelledby&&(r+=" "+this.ariaLabelledby),r}setDescribedByIds(i){this._ariaDescribedby=i.length?i.join(" "):null}setDisabledState(i){this.disabled=i,this._changeDetectorRef.markForCheck(),this.stateChanges.next()}onContainerClick(i){i.target.classList.contains("ng-arrow-wrapper")||(this.focus(),this.open())}writeValue(i){this._assignValue(i)}registerOnChange(i){this._onChange=i}registerOnTouched(i){this._onTouched=i}updateErrorState(){this._errorStateTracker.updateErrorState()}_assignValue(i){return i!==this._value||this.multiple&&Array.isArray(i)?(this._value=i,this._changeDetectorRef.markForCheck(),!0):!1}_setItemsFromMtxOptions(){let i=o=>{this.items=o.map(a=>({$ngOptionValue:a.value,$ngOptionLabel:a.elementRef.nativeElement.innerHTML,disabled:a.disabled})),this.ngSelect.itemsList.setItems(this.items),this.ngSelect.hasValue&&this.ngSelect.itemsList.mapSelectedItems(),this.ngSelect.detectChanges()},r=()=>{let o=Je(this.mtxOptions.changes,this._destroy$);Je(...this.mtxOptions.map(a=>a.stateChange$)).pipe(Te(o)).subscribe(a=>{let s=this.ngSelect.itemsList.findItem(a.value);s.disabled=a.disabled,s.label=a.label||s.label,this.ngSelect.detectChanges()})};this.mtxOptions.changes.pipe(He(this.mtxOptions),Te(this._destroy$)).subscribe(o=>{i(o),r()})}open(){this.ngSelect.open()}close(){this.ngSelect.close()}focus(){this.ngSelect.focus()}blur(){this.ngSelect.blur()}openChange(){this.openEvent.emit(),setTimeout(()=>{this._document.getElementById(this.ngSelect.dropdownId)?.classList.add("mat-"+this._parentFormField?.color)})}};n.\u0275fac=function(r){return new(r||n)},n.\u0275cmp=E({type:n,selectors:[["mtx-select"]],contentQueries:function(r,o,a){if(r&1&&(xe(a,uhe,5,te),xe(a,mhe,5,te),xe(a,hhe,5,te),xe(a,phe,5,te),xe(a,fhe,5,te),xe(a,ghe,5,te),xe(a,_he,5,te),xe(a,bhe,5,te),xe(a,vhe,5,te),xe(a,yhe,5,te),xe(a,xhe,5,te),xe(a,Che,5,te),xe(a,whe,5,te),xe(a,che,5)),r&2){let s;B(s=j())&&(o.optionTemplate=s.first),B(s=j())&&(o.optgroupTemplate=s.first),B(s=j())&&(o.labelTemplate=s.first),B(s=j())&&(o.multiLabelTemplate=s.first),B(s=j())&&(o.headerTemplate=s.first),B(s=j())&&(o.footerTemplate=s.first),B(s=j())&&(o.notFoundTemplate=s.first),B(s=j())&&(o.typeToSearchTemplate=s.first),B(s=j())&&(o.loadingTextTemplate=s.first),B(s=j())&&(o.tagTemplate=s.first),B(s=j())&&(o.loadingSpinnerTemplate=s.first),B(s=j())&&(o.placeholderTemplate=s.first),B(s=j())&&(o.clearbuttonTemplate=s.first),B(s=j())&&(o.mtxOptions=s)}},viewQuery:function(r,o){if(r&1&&ie(yme,7),r&2){let a;B(a=j())&&(o.ngSelect=a.first)}},hostAttrs:["role","combobox","aria-autocomplete","none",1,"mtx-select"],hostVars:20,hostBindings:function(r,o){r&2&&(X("id",o.id)("aria-expanded",o.panelOpen)("aria-label",o.ariaLabel||null)("aria-labelledby",o._getAriaLabelledby())("aria-describedby",o._ariaDescribedby||null)("aria-required",o.required.toString())("aria-disabled",o.disabled.toString())("aria-invalid",o.errorState),G("mtx-select-floating",o.shouldLabelFloat)("mtx-select-disabled",o.disabled)("mtx-select-invalid",o.errorState)("mtx-select-required",o.required)("mtx-select-empty",o.empty)("mtx-select-multiple",o.multiple))},inputs:{addTag:"addTag",addTagText:"addTagText",appearance:"appearance",appendTo:"appendTo",bindLabel:"bindLabel",bindValue:"bindValue",closeOnSelect:[2,"closeOnSelect","closeOnSelect",V],clearAllText:"clearAllText",clearable:[2,"clearable","clearable",V],clearOnBackspace:[2,"clearOnBackspace","clearOnBackspace",V],compareWith:"compareWith",dropdownPosition:"dropdownPosition",groupBy:"groupBy",groupValue:"groupValue",bufferAmount:"bufferAmount",selectableGroup:[2,"selectableGroup","selectableGroup",V],selectableGroupAsModel:[2,"selectableGroupAsModel","selectableGroupAsModel",V],hideSelected:[2,"hideSelected","hideSelected",V],loading:[2,"loading","loading",V],loadingText:"loadingText",labelForId:"labelForId",markFirst:[2,"markFirst","markFirst",V],maxSelectedItems:"maxSelectedItems",multiple:[2,"multiple","multiple",V],notFoundText:"notFoundText",searchable:[2,"searchable","searchable",V],readonly:[2,"readonly","readonly",V],searchFn:"searchFn",searchWhileComposing:[2,"searchWhileComposing","searchWhileComposing",V],selectOnTab:[2,"selectOnTab","selectOnTab",V],trackByFn:"trackByFn",inputAttrs:"inputAttrs",tabIndex:"tabIndex",openOnEnter:[2,"openOnEnter","openOnEnter",V],minTermLength:"minTermLength",editableSearchTerm:[2,"editableSearchTerm","editableSearchTerm",V],keyDownFn:"keyDownFn",virtualScroll:[2,"virtualScroll","virtualScroll",V],typeToSearchText:"typeToSearchText",typeahead:"typeahead",isOpen:"isOpen",fixedPlaceholder:[2,"fixedPlaceholder","fixedPlaceholder",V],deselectOnClick:[2,"deselectOnClick","deselectOnClick",V],clearSearchOnAdd:"clearSearchOnAdd",items:"items",value:"value",id:"id",placeholder:"placeholder",disabled:[2,"disabled","disabled",V],required:[2,"required","required",V],errorStateMatcher:"errorStateMatcher",ariaLabel:[0,"aria-label","ariaLabel"],ariaLabelledby:[0,"aria-labelledby","ariaLabelledby"]},outputs:{blurEvent:"blur",focusEvent:"focus",changeEvent:"change",openEvent:"open",closeEvent:"close",searchEvent:"search",clearEvent:"clear",addEvent:"add",removeEvent:"remove",scroll:"scroll",scrollToEnd:"scrollToEnd"},exportAs:["mtxSelect"],features:[Ce([{provide:Ra,useExisting:n}])],decls:15,vars:63,consts:[["ngSelect",""],[3,"ngModelChange","blur","focus","change","open","close","search","clear","add","remove","scroll","scrollToEnd","ngModel","ngModelOptions","placeholder","items","addTag","addTagText","appendTo","appearance","bindLabel","bindValue","closeOnSelect","clearAllText","clearable","clearOnBackspace","dropdownPosition","groupBy","groupValue","bufferAmount","hideSelected","isOpen","inputAttrs","loading","loadingText","labelForId","markFirst","maxSelectedItems","multiple","notFoundText","readonly","typeahead","typeToSearchText","trackByFn","searchable","searchFn","searchWhileComposing","clearSearchOnAdd","selectableGroup","selectableGroupAsModel","selectOnTab","tabIndex","openOnEnter","minTermLength","editableSearchTerm","keyDownFn","virtualScroll","fixedPlaceholder","deselectOnClick"],["ng-option-tmp",""],["ng-optgroup-tmp",""],["ng-label-tmp",""],["ng-multi-label-tmp",""],["ng-header-tmp",""],["ng-footer-tmp",""],["ng-notfound-tmp",""],["ng-typetosearch-tmp",""],["ng-loadingtext-tmp",""],["ng-tag-tmp",""],["ng-loadingspinner-tmp",""],["ng-placeholder-tmp",""],["ng-clearbutton-tmp",""],[3,"ngTemplateOutlet","ngTemplateOutletContext"],[3,"ngTemplateOutlet"]],template:function(r,o){if(r&1){let a=Y();h(0,"ng-select",1,0),Uo("ngModelChange",function(l){return I(a),Ca(o.value,l)||(o.value=l),A(l)}),S("blur",function(l){return I(a),A(o.blurEvent.emit(l))})("focus",function(l){return I(a),A(o.focusEvent.emit(l))})("change",function(l){return I(a),A(o.changeEvent.emit(l))})("open",function(){return I(a),A(o.openChange())})("close",function(){return I(a),A(o.closeEvent.emit())})("search",function(l){return I(a),A(o.searchEvent.emit(l))})("clear",function(l){return I(a),A(o.clearEvent.emit(l))})("add",function(l){return I(a),A(o.addEvent.emit(l))})("remove",function(l){return I(a),A(o.removeEvent.emit(l))})("scroll",function(l){return I(a),A(o.scroll.emit(l))})("scrollToEnd",function(){return I(a),A(o.scrollToEnd.emit())}),N(2,Mme,1,0,null,2),N(3,Tme,1,0,null,3),N(4,Ome,1,0,null,4),N(5,Fme,1,0,null,5),N(6,Vme,1,0,null,6),N(7,Hme,1,0,null,7),N(8,$me,1,0,null,8),N(9,qme,1,0,null,9),N(10,Kme,1,0,null,10),N(11,Jme,1,0,null,11),N(12,ihe,1,0,null,12),N(13,ohe,1,0,null,13),N(14,lhe,1,0,null,14),p()}r&2&&(G("ng-select-invalid",o.errorState),zo("ngModel",o.value),y("ngModelOptions",at(62,xme))("placeholder",o.placeholder||o._intl.placeholder)("items",o.items)("addTag",o.addTag)("addTagText",o.addTagText||o._intl.addTagText)("appendTo",o.appendTo)("appearance",o.appearance)("bindLabel",o.bindLabel)("bindValue",o.bindValue)("closeOnSelect",o.closeOnSelect)("clearAllText",o.clearAllText||o._intl.clearAllText)("clearable",o.clearable)("clearOnBackspace",o.clearOnBackspace)("dropdownPosition",o.dropdownPosition)("groupBy",o.groupBy)("groupValue",o.groupValue)("bufferAmount",o.bufferAmount)("hideSelected",o.hideSelected)("isOpen",o.isOpen)("inputAttrs",o.inputAttrs)("loading",o.loading)("loadingText",o.loadingText||o._intl.loadingText)("labelForId",o.labelForId)("markFirst",o.markFirst)("maxSelectedItems",o.maxSelectedItems)("multiple",o.multiple)("notFoundText",o.notFoundText||o._intl.notFoundText)("readonly",o.readonly||o.disabled)("typeahead",o.typeahead)("typeToSearchText",o.typeToSearchText||o._intl.typeToSearchText)("trackByFn",o.trackByFn)("searchable",o.searchable)("searchFn",o.searchFn)("searchWhileComposing",o.searchWhileComposing)("clearSearchOnAdd",o.clearSearchOnAdd)("selectableGroup",o.selectableGroup)("selectableGroupAsModel",o.selectableGroupAsModel)("selectOnTab",o.selectOnTab)("tabIndex",o.tabIndex)("openOnEnter",o.openOnEnter)("minTermLength",o.minTermLength)("editableSearchTerm",o.editableSearchTerm)("keyDownFn",o.keyDownFn)("virtualScroll",o.virtualScroll)("fixedPlaceholder",o.fixedPlaceholder)("deselectOnClick",o.deselectOnClick),g(2),L(o.optionTemplate?2:-1),g(),L(o.optgroupTemplate?3:-1),g(),L(o.labelTemplate?4:-1),g(),L(o.multiLabelTemplate?5:-1),g(),L(o.headerTemplate?6:-1),g(),L(o.footerTemplate?7:-1),g(),L(o.notFoundTemplate?8:-1),g(),L(o.typeToSearchTemplate?9:-1),g(),L(o.loadingTextTemplate?10:-1),g(),L(o.tagTemplate?11:-1),g(),L(o.loadingSpinnerTemplate?12:-1),g(),L(o.placeholderTemplate?13:-1),g(),L(o.clearbuttonTemplate?14:-1))},dependencies:[bI,wz,RC,OC,PC,FC,NC,LC,BC,VC,jC,HC,zC,UC,$C,du,ei,gg,Fn],styles:[`.ng-select{padding:var(--mat-form-field-filled-with-label-container-padding-top, 24px) 16px var(--mat-form-field-filled-with-label-container-padding-bottom, 8px);margin:calc(var(--mat-form-field-filled-with-label-container-padding-top, 24px) * -1) -16px calc(var(--mat-form-field-filled-with-label-container-padding-bottom, 8px) * -1)}.mdc-text-field--outlined .ng-select,.mdc-text-field--no-label .ng-select{padding-top:var(--mat-form-field-container-vertical-padding, 16px);padding-bottom:var(--mat-form-field-container-vertical-padding, 16px);margin-top:calc(var(--mat-form-field-container-vertical-padding, 16px) * -1);margin-bottom:calc(var(--mat-form-field-container-vertical-padding, 16px) * -1)}.ng-select .ng-select-container{align-items:center;color:var(--mtx-select-container-text-color, var(--mat-sys-on-surface))}.ng-select .ng-select-container .ng-value-container{align-items:center;gap:4px}.ng-select .ng-select-container .ng-value-container .ng-input>input{height:var(--mat-form-field-container-text-line-height, var(--mat-sys-body-large-line-height));color:inherit;font:inherit}.ng-select .ng-select-container .ng-clear-wrapper{display:inline-flex;justify-content:center;align-items:center;width:24px;height:var(--mat-form-field-container-text-line-height, var(--mat-sys-body-large-line-height))}.ng-select .ng-placeholder{transition:opacity .2s;opacity:1;color:var(--mtx-select-placeholder-text-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent))}.mat-form-field-hide-placeholder .ng-select .ng-placeholder{opacity:0}.ng-select .ng-has-value .ng-placeholder{display:none}.ng-select .ng-clear-wrapper{color:var(--mtx-select-clear-icon-color, var(--mat-sys-on-surface))}.ng-select .ng-clear-wrapper:hover .ng-clear{color:var(--mtx-select-clear-icon-hover-color, var(--mat-sys-error))}.ng-select.ng-select-disabled .ng-value{color:var(--mtx-select-disabled-text-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent))}.ng-select.ng-select-opened .ng-arrow-wrapper .ng-arrow{top:-2px;border-width:0 5px 5px}.ng-select.ng-select-single.ng-select-filtered .ng-placeholder{display:initial;visibility:hidden}.ng-select.ng-select-multiple .ng-select-container .ng-value-container .ng-value{display:inline-flex;align-items:center;height:var(--mat-form-field-container-text-line-height, var(--mat-sys-body-large-line-height));padding:0 calc((var(--mat-form-field-container-text-line-height, var(--mat-sys-body-large-line-height)) - 16px) / 2);border-radius:9999px;font-size:.875em;background-color:var(--mtx-select-multiple-value-background-color, transparent);border:1px solid var(--mtx-select-multiple-value-outline-color, var(--mat-sys-outline))}.ng-select.ng-select-multiple .ng-select-container .ng-value-container .ng-value.ng-value-disabled{opacity:.4}.ng-select.ng-select-multiple .ng-select-container .ng-value-container .ng-value .ng-value-label{display:inline-block;margin:0 4px;line-height:16px}.ng-select.ng-select-multiple .ng-select-container .ng-value-container .ng-value .ng-value-icon{width:16px;height:16px;line-height:16px;border-radius:50%;text-align:center}.ng-select.ng-select-multiple .ng-select-container .ng-value-container .ng-value .ng-value-icon:hover{background-color:var(--mtx-select-multiple-value-icon-hover-background-color, var(--mat-sys-outline-variant))}.ng-select.ng-select-multiple.ng-select-disabled .ng-select-container .ng-value-container .ng-value{border-color:var(--mtx-select-multiple-value-disabled-outline-color, color-mix(in srgb, var(--mat-sys-outline) 38%, transparent))}.ng-select .ng-arrow-wrapper{width:10px}.ng-select .ng-arrow{border-width:5px 5px 2px;border-style:solid;border-color:var(--mtx-select-enabled-arrow-color, var(--mat-sys-on-surface)) transparent transparent}.ng-select.ng-select-disabled .ng-arrow{border-color:var(--mtx-select-disabled-arrow-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent)) transparent transparent}.ng-select.ng-select-invalid .ng-arrow{border-color:var(--mtx-select-invalid-arrow-color, var(--mat-sys-error)) transparent transparent}.ng-select.ng-select-opened .ng-arrow{border-color:transparent transparent var(--mtx-select-enabled-arrow-color, var(--mat-sys-on-surface))}.ng-select.ng-select-opened.ng-select-invalid .ng-arrow{border-color:transparent transparent var(--mtx-select-invalid-arrow-color, var(--mat-sys-error))}.ng-dropdown-panel{background-color:var(--mtx-select-panel-background-color, var(--mat-sys-surface-container))}.ng-dropdown-panel.ng-select-bottom{top:100%;border-bottom-left-radius:var(--mtx-select-container-shape, var(--mat-sys-corner-extra-small));border-bottom-right-radius:var(--mtx-select-container-shape, var(--mat-sys-corner-extra-small));box-shadow:var(--mtx-select-container-elevation-shadow, 0px 3px 1px -2px rgba(0, 0, 0, .2), 0px 2px 2px 0px rgba(0, 0, 0, .14), 0px 1px 5px 0px rgba(0, 0, 0, .12))}.ng-dropdown-panel.ng-select-top{bottom:100%;border-top-left-radius:var(--mtx-select-container-shape, var(--mat-sys-corner-extra-small));border-top-right-radius:var(--mtx-select-container-shape, var(--mat-sys-corner-extra-small));box-shadow:var(--mtx-select-container-elevation-shadow, 0px 3px 1px -2px rgba(0, 0, 0, .2), 0px 2px 2px 0px rgba(0, 0, 0, .14), 0px 1px 5px 0px rgba(0, 0, 0, .12))}.ng-dropdown-panel .ng-dropdown-header,.ng-dropdown-panel .ng-dropdown-footer{padding:14px 16px}.ng-dropdown-panel .ng-dropdown-header{border-bottom:1px solid var(--mtx-select-panel-divider-color, var(--mat-sys-outline))}.ng-dropdown-panel .ng-dropdown-footer{border-top:1px solid var(--mtx-select-panel-divider-color, var(--mat-sys-outline))}.ng-dropdown-panel .ng-dropdown-panel-items .ng-optgroup{padding:14px 16px;font-weight:500;-webkit-user-select:none;user-select:none;cursor:pointer;color:var(--mtx-select-optgroup-label-text-color, var(--mat-sys-on-surface))}.ng-dropdown-panel .ng-dropdown-panel-items .ng-optgroup.ng-option-disabled{cursor:default}.ng-dropdown-panel .ng-dropdown-panel-items .ng-optgroup.ng-option-marked{background-color:var(--mtx-select-option-hover-state-background-color, color-mix(in srgb, var(--mat-sys-on-surface) calc(var(--mat-sys-hover-state-layer-opacity) * 100%), transparent))}.ng-dropdown-panel .ng-dropdown-panel-items .ng-optgroup.ng-option-selected{background-color:var(--mtx-select-option-selected-state-background-color, var(--mat-sys-secondary-container));color:var(--mtx-select-option-selected-state-text-color, var(--mat-sys-on-surface))}.ng-dropdown-panel .ng-dropdown-panel-items .ng-option{position:relative;padding:14px 16px;text-overflow:ellipsis;text-decoration:none;text-align:left;white-space:nowrap;overflow:hidden;color:var(--mtx-select-option-label-text-color, var(--mat-sys-on-surface))}.ng-dropdown-panel .ng-dropdown-panel-items .ng-option.ng-option-marked{background-color:var(--mtx-select-option-hover-state-background-color, color-mix(in srgb, var(--mat-sys-on-surface) calc(var(--mat-sys-hover-state-layer-opacity) * 100%), transparent))}.ng-dropdown-panel .ng-dropdown-panel-items .ng-option.ng-option-selected{background-color:var(--mtx-select-option-selected-state-background-color, var(--mat-sys-secondary-container));color:var(--mtx-select-option-selected-state-text-color, var(--mat-sys-on-surface))}.ng-dropdown-panel .ng-dropdown-panel-items .ng-option.ng-option-disabled{color:var(--mtx-select-option-disabled-state-text-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent))}[dir=rtl] .ng-dropdown-panel .ng-dropdown-panel-items .ng-option{text-align:right}.ng-dropdown-panel .ng-dropdown-panel-items .ng-option.ng-option-child{padding-left:32px}[dir=rtl] .ng-dropdown-panel .ng-dropdown-panel-items .ng-option.ng-option-child{padding-right:32px;padding-left:0}.ng-dropdown-panel .ng-dropdown-panel-items .ng-option .ng-tag-label{margin-right:6px;font-size:80%}[dir=rtl] .ng-dropdown-panel .ng-dropdown-panel-items .ng-option .ng-tag-label{margin-left:6px;margin-right:0} -`],encapsulation:2,changeDetection:0});let t=n;return t})(),kz=(()=>{let n=class n{};n.\u0275fac=function(r){return new(r||n)},n.\u0275mod=ee({type:n}),n.\u0275inj=J({imports:[gt,du,zn,bI,yI]});let t=n;return t})();var Sz=(()=>{let n=class n extends to{get bindLabel(){return typeof this.props.labelProp=="string"?this.props.labelProp:""}get bindValue(){return typeof this.props.valueProp=="string"?this.props.valueProp:void 0}};n.\u0275fac=(()=>{let i;return function(o){return(i||(i=fe(n)))(o||n)}})(),n.\u0275cmp=E({type:n,selectors:[["formly-field-combobox"]],features:[le],decls:4,vars:13,consts:[["select",""],[3,"formControl","items","bindLabel","bindValue","multiple","placeholder","required","closeOnSelect","compareWith"]],template:function(r,o){r&1&&(k(0,"mtx-select",1,0),me(2,"toObservable"),me(3,"async")),r&2&&y("formControl",o.formControl)("items",Oe(3,11,Oe(2,9,o.props.options)))("bindLabel",o.bindLabel)("bindValue",o.bindValue)("multiple",o.props.multiple)("placeholder",o.props.placeholder)("required",o.props.required)("closeOnSelect",!o.props.multiple)("compareWith",o.props.compareWith)},dependencies:[zn,ei,Do,wo,kz,yI,a3,rn,o3],encapsulation:2});let t=n;return t})();var Tz=(()=>{let n=class n extends Cg{};n.\u0275fac=(()=>{let i;return function(o){return(i||(i=fe(n)))(o||n)}})(),n.\u0275cmp=E({type:n,selectors:[["formly-wrapper-card"]],features:[le],decls:8,vars:1,consts:[["fieldComponent",""],[1,"card"],[1,"card-header"],[1,"card-body"]],template:function(r,o){r&1&&(ft(0,"div",1)(1,"h3",2),_(2,"Its time to party"),vt(),ft(3,"h3",2),_(4),vt(),ft(5,"div",3),rf(6,null,0),vt()()),r&2&&(g(4),H(o.props.label))},encapsulation:2});let t=n;return t})(),Iz=(()=>{let n=class n extends Cg{};n.\u0275fac=(()=>{let i;return function(o){return(i||(i=fe(n)))(o||n)}})(),n.\u0275cmp=E({type:n,selectors:[["formly-wrapper-div"]],features:[le],decls:3,vars:0,consts:[["fieldComponent",""]],template:function(r,o){r&1&&(ft(0,"div"),rf(1,null,0),vt())},encapsulation:2});let t=n;return t})();function Az(t){return{types:[{name:"combobox",component:Sz,wrappers:["form-field"]}],wrappers:[{name:"card",component:Tz},{name:"div",component:Iz}],validators:[],validationMessages:[{name:"required",message:(n,e)=>t.stream("validation.required")},{name:"min",message:(n,e)=>t.stream("validation.min",{number:e.props?.min})},{name:"max",message:(n,e)=>t.stream("validation.max",{number:e.props?.max})},{name:"minLength",message:(n,e)=>t.stream("validation.min_length",{number:e.props?.minLength})},{name:"maxLength",message:(n,e)=>t.stream("validation.max_length",{number:e.props?.maxLength})}]}}var Ehe={lessThanXSeconds:{one:"\u4E0D\u5230 1 \u79D2",other:"\u4E0D\u5230 {{count}} \u79D2"},xSeconds:{one:"1 \u79D2",other:"{{count}} \u79D2"},halfAMinute:"\u534A\u5206\u949F",lessThanXMinutes:{one:"\u4E0D\u5230 1 \u5206\u949F",other:"\u4E0D\u5230 {{count}} \u5206\u949F"},xMinutes:{one:"1 \u5206\u949F",other:"{{count}} \u5206\u949F"},xHours:{one:"1 \u5C0F\u65F6",other:"{{count}} \u5C0F\u65F6"},aboutXHours:{one:"\u5927\u7EA6 1 \u5C0F\u65F6",other:"\u5927\u7EA6 {{count}} \u5C0F\u65F6"},xDays:{one:"1 \u5929",other:"{{count}} \u5929"},aboutXWeeks:{one:"\u5927\u7EA6 1 \u4E2A\u661F\u671F",other:"\u5927\u7EA6 {{count}} \u4E2A\u661F\u671F"},xWeeks:{one:"1 \u4E2A\u661F\u671F",other:"{{count}} \u4E2A\u661F\u671F"},aboutXMonths:{one:"\u5927\u7EA6 1 \u4E2A\u6708",other:"\u5927\u7EA6 {{count}} \u4E2A\u6708"},xMonths:{one:"1 \u4E2A\u6708",other:"{{count}} \u4E2A\u6708"},aboutXYears:{one:"\u5927\u7EA6 1 \u5E74",other:"\u5927\u7EA6 {{count}} \u5E74"},xYears:{one:"1 \u5E74",other:"{{count}} \u5E74"},overXYears:{one:"\u8D85\u8FC7 1 \u5E74",other:"\u8D85\u8FC7 {{count}} \u5E74"},almostXYears:{one:"\u5C06\u8FD1 1 \u5E74",other:"\u5C06\u8FD1 {{count}} \u5E74"}},Oz=(t,n,e)=>{let i,r=Ehe[t];return typeof r=="string"?i=r:n===1?i=r.one:i=r.other.replace("{{count}}",String(n)),e?.addSuffix?e.comparison&&e.comparison>0?i+"\u5185":i+"\u524D":i};var Mhe={full:"y'\u5E74'M'\u6708'd'\u65E5' EEEE",long:"y'\u5E74'M'\u6708'd'\u65E5'",medium:"yyyy-MM-dd",short:"yy-MM-dd"},khe={full:"zzzz a h:mm:ss",long:"z a h:mm:ss",medium:"a h:mm:ss",short:"a h:mm"},She={full:"{{date}} {{time}}",long:"{{date}} {{time}}",medium:"{{date}} {{time}}",short:"{{date}} {{time}}"},Rz={date:Qo({formats:Mhe,defaultWidth:"full"}),time:Qo({formats:khe,defaultWidth:"full"}),dateTime:Qo({formats:She,defaultWidth:"full"})};function Pz(t,n,e){let i="eeee p";return FV(t,n,e)?i:t.getTime()>n.getTime()?"'\u4E0B\u4E2A'"+i:"'\u4E0A\u4E2A'"+i}var The={lastWeek:Pz,yesterday:"'\u6628\u5929' p",today:"'\u4ECA\u5929' p",tomorrow:"'\u660E\u5929' p",nextWeek:Pz,other:"PP p"},Fz=(t,n,e,i)=>{let r=The[t];return typeof r=="function"?r(n,e,i):r};var Ihe={narrow:["\u524D","\u516C\u5143"],abbreviated:["\u524D","\u516C\u5143"],wide:["\u516C\u5143\u524D","\u516C\u5143"]},Ahe={narrow:["1","2","3","4"],abbreviated:["\u7B2C\u4E00\u5B63","\u7B2C\u4E8C\u5B63","\u7B2C\u4E09\u5B63","\u7B2C\u56DB\u5B63"],wide:["\u7B2C\u4E00\u5B63\u5EA6","\u7B2C\u4E8C\u5B63\u5EA6","\u7B2C\u4E09\u5B63\u5EA6","\u7B2C\u56DB\u5B63\u5EA6"]},Ohe={narrow:["\u4E00","\u4E8C","\u4E09","\u56DB","\u4E94","\u516D","\u4E03","\u516B","\u4E5D","\u5341","\u5341\u4E00","\u5341\u4E8C"],abbreviated:["1\u6708","2\u6708","3\u6708","4\u6708","5\u6708","6\u6708","7\u6708","8\u6708","9\u6708","10\u6708","11\u6708","12\u6708"],wide:["\u4E00\u6708","\u4E8C\u6708","\u4E09\u6708","\u56DB\u6708","\u4E94\u6708","\u516D\u6708","\u4E03\u6708","\u516B\u6708","\u4E5D\u6708","\u5341\u6708","\u5341\u4E00\u6708","\u5341\u4E8C\u6708"]},Rhe={narrow:["\u65E5","\u4E00","\u4E8C","\u4E09","\u56DB","\u4E94","\u516D"],short:["\u65E5","\u4E00","\u4E8C","\u4E09","\u56DB","\u4E94","\u516D"],abbreviated:["\u5468\u65E5","\u5468\u4E00","\u5468\u4E8C","\u5468\u4E09","\u5468\u56DB","\u5468\u4E94","\u5468\u516D"],wide:["\u661F\u671F\u65E5","\u661F\u671F\u4E00","\u661F\u671F\u4E8C","\u661F\u671F\u4E09","\u661F\u671F\u56DB","\u661F\u671F\u4E94","\u661F\u671F\u516D"]},Phe={narrow:{am:"\u4E0A",pm:"\u4E0B",midnight:"\u51CC\u6668",noon:"\u5348",morning:"\u65E9",afternoon:"\u4E0B\u5348",evening:"\u665A",night:"\u591C"},abbreviated:{am:"\u4E0A\u5348",pm:"\u4E0B\u5348",midnight:"\u51CC\u6668",noon:"\u4E2D\u5348",morning:"\u65E9\u6668",afternoon:"\u4E2D\u5348",evening:"\u665A\u4E0A",night:"\u591C\u95F4"},wide:{am:"\u4E0A\u5348",pm:"\u4E0B\u5348",midnight:"\u51CC\u6668",noon:"\u4E2D\u5348",morning:"\u65E9\u6668",afternoon:"\u4E2D\u5348",evening:"\u665A\u4E0A",night:"\u591C\u95F4"}},Fhe={narrow:{am:"\u4E0A",pm:"\u4E0B",midnight:"\u51CC\u6668",noon:"\u5348",morning:"\u65E9",afternoon:"\u4E0B\u5348",evening:"\u665A",night:"\u591C"},abbreviated:{am:"\u4E0A\u5348",pm:"\u4E0B\u5348",midnight:"\u51CC\u6668",noon:"\u4E2D\u5348",morning:"\u65E9\u6668",afternoon:"\u4E2D\u5348",evening:"\u665A\u4E0A",night:"\u591C\u95F4"},wide:{am:"\u4E0A\u5348",pm:"\u4E0B\u5348",midnight:"\u51CC\u6668",noon:"\u4E2D\u5348",morning:"\u65E9\u6668",afternoon:"\u4E2D\u5348",evening:"\u665A\u4E0A",night:"\u591C\u95F4"}},Nhe=(t,n)=>{let e=Number(t);switch(n?.unit){case"date":return e.toString()+"\u65E5";case"hour":return e.toString()+"\u65F6";case"minute":return e.toString()+"\u5206";case"second":return e.toString()+"\u79D2";default:return"\u7B2C "+e.toString()}},Nz={ordinalNumber:Nhe,era:Bn({values:Ihe,defaultWidth:"wide"}),quarter:Bn({values:Ahe,defaultWidth:"wide",argumentCallback:t=>t-1}),month:Bn({values:Ohe,defaultWidth:"wide"}),day:Bn({values:Rhe,defaultWidth:"wide"}),dayPeriod:Bn({values:Phe,defaultWidth:"wide",formattingValues:Fhe,defaultFormattingWidth:"wide"})};var Lhe=/^(第\s*)?\d+(日|时|分|秒)?/i,Vhe=/\d+/i,Bhe={narrow:/^(前)/i,abbreviated:/^(前)/i,wide:/^(公元前|公元)/i},jhe={any:[/^(前)/i,/^(公元)/i]},Hhe={narrow:/^[1234]/i,abbreviated:/^第[一二三四]刻/i,wide:/^第[一二三四]刻钟/i},zhe={any:[/(1|一)/i,/(2|二)/i,/(3|三)/i,/(4|四)/i]},Uhe={narrow:/^(一|二|三|四|五|六|七|八|九|十[二一])/i,abbreviated:/^(一|二|三|四|五|六|七|八|九|十[二一]|\d|1[12])月/i,wide:/^(一|二|三|四|五|六|七|八|九|十[二一])月/i},$he={narrow:[/^一/i,/^二/i,/^三/i,/^四/i,/^五/i,/^六/i,/^七/i,/^八/i,/^九/i,/^十(?!(一|二))/i,/^十一/i,/^十二/i],any:[/^一|1/i,/^二|2/i,/^三|3/i,/^四|4/i,/^五|5/i,/^六|6/i,/^七|7/i,/^八|8/i,/^九|9/i,/^十(?!(一|二))|10/i,/^十一|11/i,/^十二|12/i]},Whe={narrow:/^[一二三四五六日]/i,short:/^[一二三四五六日]/i,abbreviated:/^周[一二三四五六日]/i,wide:/^星期[一二三四五六日]/i},Ghe={any:[/日/i,/一/i,/二/i,/三/i,/四/i,/五/i,/六/i]},qhe={any:/^(上午?|下午?|午夜|[中正]午|早上?|下午|晚上?|凌晨|)/i},Yhe={any:{am:/^上午?/i,pm:/^下午?/i,midnight:/^午夜/i,noon:/^[中正]午/i,morning:/^早上/i,afternoon:/^下午/i,evening:/^晚上?/i,night:/^凌晨/i}},Lz={ordinalNumber:lh({matchPattern:Lhe,parsePattern:Vhe,valueCallback:t=>parseInt(t,10)}),era:jn({matchPatterns:Bhe,defaultMatchWidth:"wide",parsePatterns:jhe,defaultParseWidth:"any"}),quarter:jn({matchPatterns:Hhe,defaultMatchWidth:"wide",parsePatterns:zhe,defaultParseWidth:"any",valueCallback:t=>t+1}),month:jn({matchPatterns:Uhe,defaultMatchWidth:"wide",parsePatterns:$he,defaultParseWidth:"any"}),day:jn({matchPatterns:Whe,defaultMatchWidth:"wide",parsePatterns:Ghe,defaultParseWidth:"any"}),dayPeriod:jn({matchPatterns:qhe,defaultMatchWidth:"any",parsePatterns:Yhe,defaultParseWidth:"any"})};var Vz={code:"zh-CN",formatDistance:Oz,formatLong:Rz,formatRelative:Fz,localize:Nz,match:Lz,options:{weekStartsOn:1,firstWeekContainsDate:4}};var Qhe={lessThanXSeconds:{one:"\u5C11\u65BC 1 \u79D2",other:"\u5C11\u65BC {{count}} \u79D2"},xSeconds:{one:"1 \u79D2",other:"{{count}} \u79D2"},halfAMinute:"\u534A\u5206\u9418",lessThanXMinutes:{one:"\u5C11\u65BC 1 \u5206\u9418",other:"\u5C11\u65BC {{count}} \u5206\u9418"},xMinutes:{one:"1 \u5206\u9418",other:"{{count}} \u5206\u9418"},xHours:{one:"1 \u5C0F\u6642",other:"{{count}} \u5C0F\u6642"},aboutXHours:{one:"\u5927\u7D04 1 \u5C0F\u6642",other:"\u5927\u7D04 {{count}} \u5C0F\u6642"},xDays:{one:"1 \u5929",other:"{{count}} \u5929"},aboutXWeeks:{one:"\u5927\u7D04 1 \u500B\u661F\u671F",other:"\u5927\u7D04 {{count}} \u500B\u661F\u671F"},xWeeks:{one:"1 \u500B\u661F\u671F",other:"{{count}} \u500B\u661F\u671F"},aboutXMonths:{one:"\u5927\u7D04 1 \u500B\u6708",other:"\u5927\u7D04 {{count}} \u500B\u6708"},xMonths:{one:"1 \u500B\u6708",other:"{{count}} \u500B\u6708"},aboutXYears:{one:"\u5927\u7D04 1 \u5E74",other:"\u5927\u7D04 {{count}} \u5E74"},xYears:{one:"1 \u5E74",other:"{{count}} \u5E74"},overXYears:{one:"\u8D85\u904E 1 \u5E74",other:"\u8D85\u904E {{count}} \u5E74"},almostXYears:{one:"\u5C07\u8FD1 1 \u5E74",other:"\u5C07\u8FD1 {{count}} \u5E74"}},Bz=(t,n,e)=>{let i,r=Qhe[t];return typeof r=="string"?i=r:n===1?i=r.one:i=r.other.replace("{{count}}",String(n)),e?.addSuffix?e.comparison&&e.comparison>0?i+"\u5167":i+"\u524D":i};var Khe={full:"y'\u5E74'M'\u6708'd'\u65E5' EEEE",long:"y'\u5E74'M'\u6708'd'\u65E5'",medium:"yyyy-MM-dd",short:"yy-MM-dd"},Zhe={full:"zzzz a h:mm:ss",long:"z a h:mm:ss",medium:"a h:mm:ss",short:"a h:mm"},Xhe={full:"{{date}} {{time}}",long:"{{date}} {{time}}",medium:"{{date}} {{time}}",short:"{{date}} {{time}}"},jz={date:Qo({formats:Khe,defaultWidth:"full"}),time:Qo({formats:Zhe,defaultWidth:"full"}),dateTime:Qo({formats:Xhe,defaultWidth:"full"})};var Jhe={lastWeek:"'\u4E0A\u500B'eeee p",yesterday:"'\u6628\u5929' p",today:"'\u4ECA\u5929' p",tomorrow:"'\u660E\u5929' p",nextWeek:"'\u4E0B\u500B'eeee p",other:"P"},Hz=(t,n,e,i)=>Jhe[t];var epe={narrow:["\u524D","\u516C\u5143"],abbreviated:["\u524D","\u516C\u5143"],wide:["\u516C\u5143\u524D","\u516C\u5143"]},tpe={narrow:["1","2","3","4"],abbreviated:["\u7B2C\u4E00\u523B","\u7B2C\u4E8C\u523B","\u7B2C\u4E09\u523B","\u7B2C\u56DB\u523B"],wide:["\u7B2C\u4E00\u523B\u9418","\u7B2C\u4E8C\u523B\u9418","\u7B2C\u4E09\u523B\u9418","\u7B2C\u56DB\u523B\u9418"]},ipe={narrow:["\u4E00","\u4E8C","\u4E09","\u56DB","\u4E94","\u516D","\u4E03","\u516B","\u4E5D","\u5341","\u5341\u4E00","\u5341\u4E8C"],abbreviated:["1\u6708","2\u6708","3\u6708","4\u6708","5\u6708","6\u6708","7\u6708","8\u6708","9\u6708","10\u6708","11\u6708","12\u6708"],wide:["\u4E00\u6708","\u4E8C\u6708","\u4E09\u6708","\u56DB\u6708","\u4E94\u6708","\u516D\u6708","\u4E03\u6708","\u516B\u6708","\u4E5D\u6708","\u5341\u6708","\u5341\u4E00\u6708","\u5341\u4E8C\u6708"]},npe={narrow:["\u65E5","\u4E00","\u4E8C","\u4E09","\u56DB","\u4E94","\u516D"],short:["\u65E5","\u4E00","\u4E8C","\u4E09","\u56DB","\u4E94","\u516D"],abbreviated:["\u9031\u65E5","\u9031\u4E00","\u9031\u4E8C","\u9031\u4E09","\u9031\u56DB","\u9031\u4E94","\u9031\u516D"],wide:["\u661F\u671F\u65E5","\u661F\u671F\u4E00","\u661F\u671F\u4E8C","\u661F\u671F\u4E09","\u661F\u671F\u56DB","\u661F\u671F\u4E94","\u661F\u671F\u516D"]},rpe={narrow:{am:"\u4E0A",pm:"\u4E0B",midnight:"\u51CC\u6668",noon:"\u5348",morning:"\u65E9",afternoon:"\u4E0B\u5348",evening:"\u665A",night:"\u591C"},abbreviated:{am:"\u4E0A\u5348",pm:"\u4E0B\u5348",midnight:"\u51CC\u6668",noon:"\u4E2D\u5348",morning:"\u65E9\u6668",afternoon:"\u4E2D\u5348",evening:"\u665A\u4E0A",night:"\u591C\u9593"},wide:{am:"\u4E0A\u5348",pm:"\u4E0B\u5348",midnight:"\u51CC\u6668",noon:"\u4E2D\u5348",morning:"\u65E9\u6668",afternoon:"\u4E2D\u5348",evening:"\u665A\u4E0A",night:"\u591C\u9593"}},ope={narrow:{am:"\u4E0A",pm:"\u4E0B",midnight:"\u51CC\u6668",noon:"\u5348",morning:"\u65E9",afternoon:"\u4E0B\u5348",evening:"\u665A",night:"\u591C"},abbreviated:{am:"\u4E0A\u5348",pm:"\u4E0B\u5348",midnight:"\u51CC\u6668",noon:"\u4E2D\u5348",morning:"\u65E9\u6668",afternoon:"\u4E2D\u5348",evening:"\u665A\u4E0A",night:"\u591C\u9593"},wide:{am:"\u4E0A\u5348",pm:"\u4E0B\u5348",midnight:"\u51CC\u6668",noon:"\u4E2D\u5348",morning:"\u65E9\u6668",afternoon:"\u4E2D\u5348",evening:"\u665A\u4E0A",night:"\u591C\u9593"}},ape=(t,n)=>{let e=Number(t);switch(n?.unit){case"date":return e+"\u65E5";case"hour":return e+"\u6642";case"minute":return e+"\u5206";case"second":return e+"\u79D2";default:return"\u7B2C "+e}},zz={ordinalNumber:ape,era:Bn({values:epe,defaultWidth:"wide"}),quarter:Bn({values:tpe,defaultWidth:"wide",argumentCallback:t=>t-1}),month:Bn({values:ipe,defaultWidth:"wide"}),day:Bn({values:npe,defaultWidth:"wide"}),dayPeriod:Bn({values:rpe,defaultWidth:"wide",formattingValues:ope,defaultFormattingWidth:"wide"})};var spe=/^(第\s*)?\d+(日|時|分|秒)?/i,lpe=/\d+/i,cpe={narrow:/^(前)/i,abbreviated:/^(前)/i,wide:/^(公元前|公元)/i},dpe={any:[/^(前)/i,/^(公元)/i]},upe={narrow:/^[1234]/i,abbreviated:/^第[一二三四]刻/i,wide:/^第[一二三四]刻鐘/i},mpe={any:[/(1|一)/i,/(2|二)/i,/(3|三)/i,/(4|四)/i]},hpe={narrow:/^(一|二|三|四|五|六|七|八|九|十[二一])/i,abbreviated:/^(一|二|三|四|五|六|七|八|九|十[二一]|\d|1[12])月/i,wide:/^(一|二|三|四|五|六|七|八|九|十[二一])月/i},ppe={narrow:[/^一/i,/^二/i,/^三/i,/^四/i,/^五/i,/^六/i,/^七/i,/^八/i,/^九/i,/^十(?!(一|二))/i,/^十一/i,/^十二/i],any:[/^一|1/i,/^二|2/i,/^三|3/i,/^四|4/i,/^五|5/i,/^六|6/i,/^七|7/i,/^八|8/i,/^九|9/i,/^十(?!(一|二))|10/i,/^十一|11/i,/^十二|12/i]},fpe={narrow:/^[一二三四五六日]/i,short:/^[一二三四五六日]/i,abbreviated:/^週[一二三四五六日]/i,wide:/^星期[一二三四五六日]/i},gpe={any:[/日/i,/一/i,/二/i,/三/i,/四/i,/五/i,/六/i]},_pe={any:/^(上午?|下午?|午夜|[中正]午|早上?|下午|晚上?|凌晨)/i},bpe={any:{am:/^上午?/i,pm:/^下午?/i,midnight:/^午夜/i,noon:/^[中正]午/i,morning:/^早上/i,afternoon:/^下午/i,evening:/^晚上?/i,night:/^凌晨/i}},Uz={ordinalNumber:lh({matchPattern:spe,parsePattern:lpe,valueCallback:t=>parseInt(t,10)}),era:jn({matchPatterns:cpe,defaultMatchWidth:"wide",parsePatterns:dpe,defaultParseWidth:"any"}),quarter:jn({matchPatterns:upe,defaultMatchWidth:"wide",parsePatterns:mpe,defaultParseWidth:"any",valueCallback:t=>t+1}),month:jn({matchPatterns:hpe,defaultMatchWidth:"wide",parsePatterns:ppe,defaultParseWidth:"any"}),day:jn({matchPatterns:fpe,defaultMatchWidth:"wide",parsePatterns:gpe,defaultParseWidth:"any"}),dayPeriod:jn({matchPatterns:_pe,defaultMatchWidth:"any",parsePatterns:bpe,defaultParseWidth:"any"})};var $z={code:"zh-TW",formatDistance:Bz,formatLong:jz,formatRelative:Hz,localize:zz,match:Uz,options:{weekStartsOn:1,firstWeekContainsDate:4}};var xI={navPos:"side",theme:"auto",dir:"ltr",showHeader:!0,headerPos:"fixed",showUserPanel:!0,sidenavOpened:!0,sidenavCollapsed:!1,language:"auto"};var aa=(()=>{let n=class n{get notify(){return this.notify$.asObservable()}constructor(){this.key="ng-matero-settings",this.document=u(ge),this.translate=u(ia),this.store=u(mz),this.mediaMatcher=u(qm),this.dir=u(dz),this.notify$=new tt({}),this.htmlElement=this.document.querySelector("html"),this.storedOptions=this.store.get(this.key),this.options=Object.assign(xI,this.storedOptions),this.languages=["en-US","zh-CN","zh-TW"],this.localeMap={"en-US":tu,"zh-CN":Vz,"zh-TW":$z},this.translate.addLangs(this.languages)}reset(){this.store.remove(this.key)}setOptions(i){this.options=Object.assign(xI,this.options,i),this.store.set(this.key,this.options),this.notify$.next(this.options)}setDirection(i){i&&this.setOptions({dir:i}),this.dir.value=this.options.dir,this.htmlElement.dir=this.options.dir}getThemeColor(){return this.options.theme==="auto"&&this.mediaMatcher.matchMedia("(prefers-color-scheme)").media!=="not all"?this.mediaMatcher.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light":this.options.theme}setTheme(i){i&&this.setOptions({theme:i}),this.getThemeColor()==="dark"?this.htmlElement.classList.add("theme-dark"):this.htmlElement.classList.remove("theme-dark")}getTranslateLang(){if(this.options.language==="auto"){let i=navigator.language;return this.languages.includes(i)?i:"en-US"}return this.options.language}setLanguage(i){i&&this.setOptions({language:i}),this.translate.use(this.getTranslateLang())}getLocale(){return this.localeMap[this.getTranslateLang()]}};n.\u0275fac=function(r){return new(r||n)},n.\u0275prov=O({token:n,factory:n.\u0275fac,providedIn:"root"});let t=n;return t})();var Wz=(()=>{let n=class n{constructor(){this.http=u(Yr),this.oidcAuth=u(Tt),this.menuService=u(so),this.permissonsService=u(_u),this.rolesService=u(Th),this.oidcAuth.permissionsChange$.subscribe(()=>{console.log("StartupService: Permission change event received, refreshing permissions"),this.setPermissions()})}load(){return new Promise((i,r)=>{this.http.get("data/menu.json").pipe(Be(o=>this.setMenu(o.menu))).subscribe({next:()=>{this.setPermissions(),i()},error:o=>{console.error("Error loading menu:",o),this.setPermissions(),i()}})})}setMenu(i){this.menuService.addNamespace(i,"menu"),this.menuService.set(i)}setPermissions(){let i=this.oidcAuth.getUserRoles();console.log("StartupService: User roles from token:",i);let r=["canAdd","canDelete","canEdit","canRead"];this.rolesService.flushRoles(),i.length>0?(this.permissonsService.loadPermissions(r),console.log("StartupService: Loaded permissions:",r),i.includes("HRAdmin")&&(this.rolesService.addRoles({HRAdmin:r}),console.log("StartupService: Added HRAdmin role with permissions:",r)),i.includes("Manager")&&(this.rolesService.addRoles({Manager:r}),console.log("StartupService: Added Manager role with permissions:",r)),i.includes("Employee")&&(this.rolesService.addRoles({Employee:["canRead"]}),console.log("StartupService: Added Employee role with canRead permission"))):(console.log("StartupService: No roles found - setting Guest permissions"),this.permissonsService.loadPermissions(["canRead"]),this.rolesService.addRoles({Guest:["canRead"]}))}};n.\u0275fac=function(r){return new(r||n)},n.\u0275prov=O({token:n,factory:n.\u0275fac,providedIn:"root"});let t=n;return t})();var Gz=(()=>{let n=class n{constructor(){this.document=u(ge),this.selector="globalLoader"}getElement(){return this.document.getElementById(this.selector)}hide(){let i=this.getElement();i&&(i.addEventListener("transitionend",()=>{i.className="global-loader-hidden"}),i.classList.contains("global-loader-hidden")||(i.className+=" global-loader-fade-out"))}};n.\u0275fac=function(r){return new(r||n)},n.\u0275prov=O({token:n,factory:n.\u0275fac,providedIn:"root"});let t=n;return t})();var qz=(()=>{let n=class n{constructor(){this.translate=u(ia),this.settings=u(aa)}load(){return new Promise(i=>{let r=this.settings.getTranslateLang();this.translate.setFallbackLang(r),this.translate.use(r).subscribe({next:()=>console.log(`Successfully initialized '${r}' language.'`),error:()=>console.error(`Problem with '${r}' language initialization.'`),complete:()=>i()})})}};n.\u0275fac=function(r){return new(r||n)},n.\u0275prov=O({token:n,factory:n.\u0275fac,providedIn:"root"});let t=n;return t})();function Yz(t,n){return n(t)}var CI=new T("BASE_URL");function vpe(t){return new RegExp("^http(s)?://","i").test(t)}function Qz(t,n){let e=u(CI,{optional:!0}),i=o=>e&&vpe(o),r=o=>[e?.replace(/\/$/g,""),o.replace(/^\.?\//,"")].filter(a=>a).join("/");return i(t.url)===!1?n(t.clone({url:r(t.url)})):n(t)}function Kz(t,n){let e=u(aa);return n(t.clone({headers:t.headers.append("Accept-Language",e.getTranslateLang())}))}function Zz(t,n){let e=u(Rg);return t.url.includes("/api/")?n(t).pipe(Mt(i=>{if(i instanceof nl){let r=i.body;if(r&&"code"in r&&r.code!==0)return r.msg&&e.error(r.msg),Wn(()=>[])}return Q(i)})):n(t)}var h_=(function(t){return t[t.UNAUTHORIZED=401]="UNAUTHORIZED",t[t.FORBIDDEN=403]="FORBIDDEN",t[t.NOT_FOUND=404]="NOT_FOUND",t[t.INTERNAL_SERVER_ERROR=500]="INTERNAL_SERVER_ERROR",t})(h_||{});function Xz(t,n){let e=u(Re),i=u(Rg),r=[h_.FORBIDDEN,h_.NOT_FOUND,h_.INTERNAL_SERVER_ERROR],o=a=>a.error?.message?a.error.message:a.error?.msg?a.error.msg:a.status===0?"Network error - please check your connection":`${a.status} ${a.statusText}`;return n(t).pipe(fi(a=>a.status===0?(console.warn("Network error (possible CORS issue):",a),Wn(()=>a)):(r.includes(a.status)?e.navigateByUrl(`/${a.status}`,{skipLocationChange:!0}):(console.error("ERROR",a),i.error(o(a)),a.status===h_.UNAUTHORIZED&&console.warn("Unauthorized access - authentication required")),Wn(()=>a))))}function Jz(t,n){let e=u(uz),i=Date.now(),r;return n(t).pipe(Be({next:o=>r=o instanceof nl?"succeeded":"",error:o=>r="failed"}),Hr(()=>{let o=Date.now()-i,a=`${t.method} "${t.urlWithParams}" ${r} in ${o} ms.`;e.add(a)}))}var e8=[Yz,Qz,Kz,Zz,Xz,Jz];var qC=["*"],ype=["content"],xpe=[[["mat-drawer"]],[["mat-drawer-content"]],"*"],Cpe=["mat-drawer","mat-drawer-content","*"];function wpe(t,n){if(t&1){let e=Y();h(0,"div",1),S("click",function(){I(e);let r=C();return A(r._onBackdropClicked())}),p()}if(t&2){let e=C();G("mat-drawer-shown",e._isShowingBackdrop())}}function Dpe(t,n){t&1&&(h(0,"mat-drawer-content"),oe(1,2),p())}var Epe=[[["mat-sidenav"]],[["mat-sidenav-content"]],"*"],Mpe=["mat-sidenav","mat-sidenav-content","*"];function kpe(t,n){if(t&1){let e=Y();h(0,"div",1),S("click",function(){I(e);let r=C();return A(r._onBackdropClicked())}),p()}if(t&2){let e=C();G("mat-drawer-shown",e._isShowingBackdrop())}}function Spe(t,n){t&1&&(h(0,"mat-sidenav-content"),oe(1,2),p())}var Tpe=`.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:.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} -`;var Ipe=new T("MAT_DRAWER_DEFAULT_AUTOSIZE",{providedIn:"root",factory:Ape}),EI=new T("MAT_DRAWER_CONTAINER");function Ape(){return!1}var WC=(()=>{class t extends Pa{_platform=u(qe);_changeDetectorRef=u(ye);_container=u(DI);constructor(){let e=u(q),i=u(ws),r=u(ae);super(e,i,r)}ngAfterContentInit(){this._container._contentMarginChanges.subscribe(()=>{this._changeDetectorRef.markForCheck()})}_shouldBeHidden(){if(this._platform.isBrowser)return!1;let{start:e,end:i}=this._container;return e!=null&&e.mode!=="over"&&e.opened||i!=null&&i.mode!=="over"&&i.opened}static \u0275fac=function(i){return new(i||t)};static \u0275cmp=E({type:t,selectors:[["mat-drawer-content"]],hostAttrs:[1,"mat-drawer-content"],hostVars:6,hostBindings:function(i,r){i&2&&(Dt("margin-left",r._container._contentMargins.left,"px")("margin-right",r._container._contentMargins.right,"px"),G("mat-drawer-content-hidden",r._shouldBeHidden()))},features:[Ce([{provide:Pa,useExisting:t}]),le],ngContentSelectors:qC,decls:1,vars:0,template:function(i,r){i&1&&(Me(),oe(0))},encapsulation:2,changeDetection:0})}return t})(),wI=(()=>{class t{_elementRef=u(q);_focusTrapFactory=u(Qm);_focusMonitor=u(Yt);_platform=u(qe);_ngZone=u(ae);_renderer=u(je);_interactivityChecker=u(ac);_doc=u(ge);_container=u(EI,{optional:!0});_focusTrap=null;_elementFocusedBeforeDrawerWasOpened=null;_eventCleanups;_isAttached;_anchor;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=Ai(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=Ai(e)),this._autoFocus=e}_autoFocus;get opened(){return this._opened()}set opened(e){this.toggle(Ai(e))}_opened=he(!1);_openedVia;_animationStarted=new z;_animationEnd=new z;openedChange=new U(!0);_openedStream=this.openedChange.pipe(ce(e=>e),se(()=>{}));openedStart=this._animationStarted.pipe(ce(()=>this.opened),Gu(void 0));_closedStream=this.openedChange.pipe(ce(e=>!e),se(()=>{}));closedStart=this._animationStarted.pipe(ce(()=>!this.opened),Gu(void 0));_destroyed=new z;onPositionChanged=new U;_content;_modeChanged=new z;_injector=u(de);_changeDetectorRef=u(ye);constructor(){this.openedChange.pipe(Te(this._destroyed)).subscribe(e=>{e?(this._elementFocusedBeforeDrawerWasOpened=this._doc.activeElement,this._takeFocus()):this._isFocusWithinDrawer()&&this._restoreFocus(this._openedVia||"program")}),this._ngZone.runOutsideAngular(()=>{let e=this._elementRef.nativeElement;zs(e,"keydown").pipe(ce(i=>i.keyCode===27&&!this.disableClose&&!Ft(i)),Te(this._destroyed)).subscribe(i=>this._ngZone.run(()=>{this.close(),i.stopPropagation(),i.preventDefault()})),this._eventCleanups=[this._renderer.listen(e,"transitionrun",this._handleTransitionEvent),this._renderer.listen(e,"transitionend",this._handleTransitionEvent),this._renderer.listen(e,"transitioncancel",this._handleTransitionEvent)]}),this._animationEnd.subscribe(()=>{this.openedChange.emit(this.opened)})}_forceFocus(e,i){this._interactivityChecker.isFocusable(e)||(e.tabIndex=-1,this._ngZone.runOutsideAngular(()=>{let r=()=>{o(),a(),e.removeAttribute("tabindex")},o=this._renderer.listen(e,"blur",r),a=this._renderer.listen(e,"mousedown",r)})),e.focus(i)}_focusByCssSelector(e,i){let r=this._elementRef.nativeElement.querySelector(e);r&&this._forceFocus(r,i)}_takeFocus(){if(!this._focusTrap)return;let e=this._elementRef.nativeElement;switch(this.autoFocus){case!1:case"dialog":return;case!0:case"first-tabbable":pt(()=>{!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,i){e&&i&&(this._openedVia=i);let r=this._setOpen(e,!e&&this._isFocusWithinDrawer(),this._openedVia||"program");return e||(this._openedVia=null),r}_setOpen(e,i,r){return e===this.opened?Promise.resolve(e?"open":"close"):(this._opened.set(e),this._container?._transitionsEnabled?this._setIsAnimating(!0):setTimeout(()=>{this._animationStarted.next(),this._animationEnd.next()}),this._elementRef.nativeElement.classList.toggle("mat-drawer-opened",e),!e&&i&&this._restoreFocus(r),this._changeDetectorRef.markForCheck(),this._updateFocusTrapState(),new Promise(o=>{this.openedChange.pipe(lt(1)).subscribe(a=>o(a?"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._container?.hasBackdrop&&this.opened)}_updatePositionInParent(e){if(!this._platform.isBrowser)return;let i=this._elementRef.nativeElement,r=i.parentNode;e==="end"?(this._anchor||(this._anchor=this._doc.createComment("mat-drawer-anchor"),r.insertBefore(this._anchor,i)),r.appendChild(i)):this._anchor&&this._anchor.parentNode.insertBefore(i,this._anchor)}_handleTransitionEvent=e=>{let i=this._elementRef.nativeElement;e.target===i&&this._ngZone.run(()=>{e.type==="transitionrun"?this._animationStarted.next(e):(e.type==="transitionend"&&this._setIsAnimating(!1),this._animationEnd.next(e))})};static \u0275fac=function(i){return new(i||t)};static \u0275cmp=E({type:t,selectors:[["mat-drawer"]],viewQuery:function(i,r){if(i&1&&ie(ype,5),i&2){let o;B(o=j())&&(r._content=o.first)}},hostAttrs:[1,"mat-drawer"],hostVars:12,hostBindings:function(i,r){i&2&&(X("align",null)("tabIndex",r.mode!=="side"?"-1":null),Dt("visibility",!r._container&&!r.opened?"hidden":null),G("mat-drawer-end",r.position==="end")("mat-drawer-over",r.mode==="over")("mat-drawer-push",r.mode==="push")("mat-drawer-side",r.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:qC,decls:3,vars:0,consts:[["content",""],["cdkScrollable","",1,"mat-drawer-inner-container"]],template:function(i,r){i&1&&(Me(),h(0,"div",1,0),oe(2),p())},dependencies:[Pa],encapsulation:2,changeDetection:0})}return t})(),DI=(()=>{class t{_dir=u(Vt,{optional:!0});_element=u(q);_ngZone=u(ae);_changeDetectorRef=u(ye);_animationDisabled=Ye();_transitionsEnabled=!1;_allDrawers;_drawers=new pr;_content;_userContent;get start(){return this._start}get end(){return this._end}get autosize(){return this._autosize}set autosize(e){this._autosize=Ai(e)}_autosize=u(Ipe);get hasBackdrop(){return this._drawerHasBackdrop(this._start)||this._drawerHasBackdrop(this._end)}set hasBackdrop(e){this._backdropOverride=e==null?null:Ai(e)}_backdropOverride;backdropClick=new U;_start;_end;_left;_right;_destroyed=new z;_doCheckSubject=new z;_contentMargins={left:null,right:null};_contentMarginChanges=new z;get scrollable(){return this._userContent||this._content}_injector=u(de);constructor(){let e=u(qe),i=u(Xn);this._dir?.change.pipe(Te(this._destroyed)).subscribe(()=>{this._validateDrawers(),this.updateContentMargins()}),i.change().pipe(Te(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(He(this._allDrawers),Te(this._destroyed)).subscribe(e=>{this._drawers.reset(e.filter(i=>!i._container||i._container===this)),this._drawers.notifyOnChanges()}),this._drawers.changes.pipe(He(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(Rt(10),Te(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,i=0;if(this._left&&this._left.opened){if(this._left.mode=="side")e+=this._left._getWidth();else if(this._left.mode=="push"){let r=this._left._getWidth();e+=r,i-=r}}if(this._right&&this._right.opened){if(this._right.mode=="side")i+=this._right._getWidth();else if(this._right.mode=="push"){let r=this._right._getWidth();i+=r,e-=r}}e=e||null,i=i||null,(e!==this._contentMargins.left||i!==this._contentMargins.right)&&(this._contentMargins={left:e,right:i},this._ngZone.run(()=>this._contentMarginChanges.next(this._contentMargins)))}ngDoCheck(){this._autosize&&this._isPushed()&&this._ngZone.runOutsideAngular(()=>this._doCheckSubject.next())}_watchDrawerToggle(e){e._animationStarted.pipe(Te(this._drawers.changes)).subscribe(()=>{this.updateContentMargins(),this._changeDetectorRef.markForCheck()}),e.mode!=="side"&&e.openedChange.pipe(Te(this._drawers.changes)).subscribe(()=>this._setContainerClass(e.opened))}_watchDrawerPosition(e){e.onPositionChanged.pipe(Te(this._drawers.changes)).subscribe(()=>{pt({read:()=>this._validateDrawers()},{injector:this._injector})})}_watchDrawerMode(e){e._modeChanged.pipe(Te(Je(this._drawers.changes,this._destroyed))).subscribe(()=>{this.updateContentMargins(),this._changeDetectorRef.markForCheck()})}_setContainerClass(e){let i=this._element.nativeElement.classList,r="mat-drawer-container-has-open";e?i.add(r):i.remove(r)}_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(i){return new(i||t)};static \u0275cmp=E({type:t,selectors:[["mat-drawer-container"]],contentQueries:function(i,r,o){if(i&1&&(xe(o,WC,5),xe(o,wI,5)),i&2){let a;B(a=j())&&(r._content=a.first),B(a=j())&&(r._allDrawers=a)}},viewQuery:function(i,r){if(i&1&&ie(WC,5),i&2){let o;B(o=j())&&(r._userContent=o.first)}},hostAttrs:[1,"mat-drawer-container"],hostVars:2,hostBindings:function(i,r){i&2&&G("mat-drawer-container-explicit-backdrop",r._backdropOverride)},inputs:{autosize:"autosize",hasBackdrop:"hasBackdrop"},outputs:{backdropClick:"backdropClick"},exportAs:["matDrawerContainer"],features:[Ce([{provide:EI,useExisting:t}])],ngContentSelectors:Cpe,decls:4,vars:2,consts:[[1,"mat-drawer-backdrop",3,"mat-drawer-shown"],[1,"mat-drawer-backdrop",3,"click"]],template:function(i,r){i&1&&(Me(xpe),N(0,wpe,1,2,"div",0),oe(1),oe(2,1),N(3,Dpe,2,0,"mat-drawer-content")),i&2&&(L(r.hasBackdrop?0:-1),g(3),L(r._content?-1:3))},dependencies:[WC],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:.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 t})(),GC=(()=>{class t extends WC{static \u0275fac=(()=>{let e;return function(r){return(e||(e=fe(t)))(r||t)}})();static \u0275cmp=E({type:t,selectors:[["mat-sidenav-content"]],hostAttrs:[1,"mat-drawer-content","mat-sidenav-content"],features:[Ce([{provide:Pa,useExisting:t}]),le],ngContentSelectors:qC,decls:1,vars:0,template:function(i,r){i&1&&(Me(),oe(0))},encapsulation:2,changeDetection:0})}return t})(),MI=(()=>{class t extends wI{get fixedInViewport(){return this._fixedInViewport}set fixedInViewport(e){this._fixedInViewport=Ai(e)}_fixedInViewport=!1;get fixedTopGap(){return this._fixedTopGap}set fixedTopGap(e){this._fixedTopGap=Ln(e)}_fixedTopGap=0;get fixedBottomGap(){return this._fixedBottomGap}set fixedBottomGap(e){this._fixedBottomGap=Ln(e)}_fixedBottomGap=0;static \u0275fac=(()=>{let e;return function(r){return(e||(e=fe(t)))(r||t)}})();static \u0275cmp=E({type:t,selectors:[["mat-sidenav"]],hostAttrs:[1,"mat-drawer","mat-sidenav"],hostVars:16,hostBindings:function(i,r){i&2&&(X("tabIndex",r.mode!=="side"?"-1":null)("align",null),Dt("top",r.fixedInViewport?r.fixedTopGap:null,"px")("bottom",r.fixedInViewport?r.fixedBottomGap:null,"px"),G("mat-drawer-end",r.position==="end")("mat-drawer-over",r.mode==="over")("mat-drawer-push",r.mode==="push")("mat-drawer-side",r.mode==="side")("mat-sidenav-fixed",r.fixedInViewport))},inputs:{fixedInViewport:"fixedInViewport",fixedTopGap:"fixedTopGap",fixedBottomGap:"fixedBottomGap"},exportAs:["matSidenav"],features:[Ce([{provide:wI,useExisting:t}]),le],ngContentSelectors:qC,decls:3,vars:0,consts:[["content",""],["cdkScrollable","",1,"mat-drawer-inner-container"]],template:function(i,r){i&1&&(Me(),h(0,"div",1,0),oe(2),p())},dependencies:[Pa],encapsulation:2,changeDetection:0})}return t})(),t8=(()=>{class t extends DI{_allDrawers=void 0;_content=void 0;static \u0275fac=(()=>{let e;return function(r){return(e||(e=fe(t)))(r||t)}})();static \u0275cmp=E({type:t,selectors:[["mat-sidenav-container"]],contentQueries:function(i,r,o){if(i&1&&(xe(o,GC,5),xe(o,MI,5)),i&2){let a;B(a=j())&&(r._content=a.first),B(a=j())&&(r._allDrawers=a)}},hostAttrs:[1,"mat-drawer-container","mat-sidenav-container"],hostVars:2,hostBindings:function(i,r){i&2&&G("mat-drawer-container-explicit-backdrop",r._backdropOverride)},exportAs:["matSidenavContainer"],features:[Ce([{provide:EI,useExisting:t},{provide:DI,useExisting:t}]),le],ngContentSelectors:Mpe,decls:4,vars:2,consts:[[1,"mat-drawer-backdrop",3,"mat-drawer-shown"],[1,"mat-drawer-backdrop",3,"click"]],template:function(i,r){i&1&&(Me(Epe),N(0,kpe,1,2,"div",0),oe(1),oe(2,1),N(3,Spe,2,0,"mat-sidenav-content")),i&2&&(L(r.hasBackdrop?0:-1),g(3),L(r._content?-1:3))},dependencies:[GC],styles:[Tpe],encapsulation:2,changeDetection:0})}return t})(),i8=(()=>{class t{static \u0275fac=function(i){return new(i||t)};static \u0275mod=ee({type:t});static \u0275inj=J({imports:[we,vr,vr,we]})}return t})();function Rpe(t,n){t&1&&ai(0,"div",3)}function Ppe(t,n){t&1&&(ft(0,"div",4),ai(1,"div",5),vt())}var Fpe={min:8,max:100,speed:200,debounceTime:0,trickleSpeed:300,fadeOutSpeed:50,relative:!1,flat:!1,spinner:!1,direction:"ltr+",spinnerPosition:"right",trickleFunc:t=>t>=0&&t<20?10:t>=20&&t<50?4:t>=50&&t<80?2:t>=80&&t<99?.5:0},n8=new T("NG_PROGRESS_OPTIONS",{providedIn:"root",factory:()=>Fpe});var YC=(function(t){return t.START="START",t.COMPLETE="COMPLETE",t})(YC||{});function Npe(t){let n=ct(t)||0;return n<100&&n>=0?n:0}function Lpe(t){let n=ct(t)||100;return n>0&&n<=100?n:100}var QC=(()=>{let n=class n{constructor(){this.defaultOptions=u(n8),this.min=ne(this.defaultOptions.min,{transform:Npe}),this.max=ne(this.defaultOptions.max,{transform:Lpe}),this.speed=ne(this.defaultOptions.speed,{transform:ct}),this.trickleSpeed=ne(this.defaultOptions.trickleSpeed,{transform:ct}),this.fadeOutSpeed=ne(this.defaultOptions.fadeOutSpeed,{transform:ct}),this.debounceTime=ne(this.defaultOptions.debounceTime,{transform:ct}),this.trickleFunc=ne(this.defaultOptions.trickleFunc),this.config=Zt(()=>({max:this.max(),min:this.min(),speed:this.speed(),trickleSpeed:this.trickleSpeed(),fadeOutSpeed:this.fadeOutSpeed(),trickleFunc:this.trickleFunc(),debounceTime:this.debounceTime()})),this._progress=he(0),this._active=he(!1),this.active=Zt(()=>this._active()),this.progress=Zt(()=>this._progress()),this.started=bi(),this.completed=bi(),this._trigger=new tt(null);let i;Ar(r=>{let o=this.config();Ti(()=>{i=this._trigger.pipe(ce(a=>!!a),$e(a=>a===YC.START?qa(o.debounceTime).pipe($e(()=>this.onTrickling(o))):this.onComplete(o))).subscribe(),r(()=>i?.unsubscribe())})})}start(){this.started.emit(),this._trigger.next(YC.START),this._active.set(!0)}complete(){this._trigger.next(YC.COMPLETE)}inc(i){let r=this.progress();this.active()?(typeof i!="number"&&(i=this.config().trickleFunc(r)),this.set(r+i)):this.start()}set(i){this._active.set(!0),this._progress.set(this.clamp(i))}clamp(i){return Math.max(this.config().min,Math.min(this.config().max,i))}onTrickling(i){return this.active()||this.set(i.min),qa(0,i.trickleSpeed).pipe(Be(()=>this.inc()))}onComplete(i){return this.active()?(this.completed.emit(),Q({}).pipe(Be(()=>this._progress.set(100)),pa(i.speed+140),Be(()=>this._active.set(!1)),pa(i.fadeOutSpeed),Hr(()=>this._progress.set(0)),Te(pz(this.started)))):Fi}};n.\u0275fac=function(r){return new(r||n)},n.\u0275dir=F({type:n,selectors:[["","ngProgressRef",""]],inputs:{min:[1,"min"],max:[1,"max"],speed:[1,"speed"],trickleSpeed:[1,"trickleSpeed"],fadeOutSpeed:[1,"fadeOutSpeed"],debounceTime:[1,"debounceTime"],trickleFunc:[1,"trickleFunc"]},outputs:{started:"started",completed:"completed"},exportAs:["ngProgressRef"]});let t=n;return t})(),r8=(()=>{let n=class n{constructor(){this.config=u(n8),this.progressRef=u(QC,{host:!0,self:!0}),this.flat=ne(this.config.flat,{transform:V}),this.spinner=ne(this.config.spinner,{transform:V}),this.relative=ne(this.config.relative,{transform:V}),this.spinnerPosition=ne(this.config.spinnerPosition),this.direction=ne(this.config.direction),this.progressTransform=Zt(()=>`translate3d(${this.progressRef.progress()}%,0,0)`)}};n.\u0275fac=function(r){return new(r||n)},n.\u0275cmp=E({type:n,selectors:[["ng-progress"]],hostAttrs:["role","progressbar"],hostVars:12,hostBindings:function(r,o){r&2&&(X("spinnerPosition",o.spinnerPosition())("direction",o.direction()),Dt("--_ng-progress-speed",o.progressRef.speed()+"ms")("--_ng-progress-fade-out-speed",o.progressRef.fadeOutSpeed()+"ms"),G("ng-progress-bar",!0)("ng-progress-bar-active",o.progressRef.active())("ng-progress-bar-relative",o.relative()))},inputs:{flat:[1,"flat"],spinner:[1,"spinner"],relative:[1,"relative"],spinnerPosition:[1,"spinnerPosition"],direction:[1,"direction"]},exportAs:["ngProgress"],features:[ym([{directive:QC,inputs:["min","min","max","max","speed","speed","trickleSpeed","trickleSpeed","fadeOutSpeed","fadeOutSpeed","debounceTime","debounceTime"],outputs:["started","started","completed","completed"]}])],decls:5,vars:4,consts:[[1,"ng-progress-bar-wrapper"],[1,"ng-bar-placeholder"],[1,"ng-bar"],[1,"ng-meteor"],[1,"ng-spinner"],[1,"ng-spinner-icon"]],template:function(r,o){r&1&&(ft(0,"div",0)(1,"div",1)(2,"div",2),N(3,Rpe,1,0,"div",3),vt()(),N(4,Ppe,2,0,"div",4),vt()),r&2&&(g(2),Dt("transform",o.progressTransform()),g(),L(o.flat()?-1:3),g(),L(o.spinner()?4:-1))},styles:['[_nghost-%COMP%]{--_ng-progress-thickness: var(--ng-progress-thickness, 2);--_ng-progress-thickness-px: calc(var(--_ng-progress-thickness) * 1px);--_ng-progress-thickness-add-one: calc(var(--_ng-progress-thickness) + 1);--_ng-progress-meteor-position-px: calc(var(--_ng-progress-thickness-add-one) * -1px);--_ng-progress-color: var(--ng-progress-color, #1B95E0);--_ng-progress-holder-color: var(--ng-progress-holder-color, transparent);--_ng-progress-ease: var(--ng-progress-ease, linear);--_ng-progress-spinner-thickness: var(--ng-progress-spinner-thickness, 2);--_ng-progress-spinner-thickness-px: calc(var(--_ng-progress-spinner-thickness) * 1px);--_ng-progress-spinner-spacing: var(--ng-progress-spinner-spacing, 15);--_ng-progress-spinner-spacing-px: calc(var(--_ng-progress-spinner-spacing) * 1px);--_ng-progress-spinner-size: var(--ng-progress-spinner-size, 18);--_ng-progress-spinner-size-px: calc(var(--_ng-progress-spinner-size) * 1px);--_ng-progress-spinner-speed: var(--ng-progress-spinner-speed, .25s);z-index:999999;pointer-events:none}.ng-progress-bar-active[_nghost-%COMP%] .ng-progress-bar-wrapper[_ngcontent-%COMP%]{filter:alpha(opacity=100);opacity:1;transition:none}.ng-progress-bar-active[_nghost-%COMP%] .ng-bar[_ngcontent-%COMP%]{transition:all var(--_ng-progress-speed) var(--_ng-progress-ease)}.ng-progress-bar-relative[_nghost-%COMP%] .ng-progress-bar-wrapper[_ngcontent-%COMP%]{position:relative}[direction="ltr+"][_nghost-%COMP%] .ng-meteor[_ngcontent-%COMP%], [direction=ltr-][_nghost-%COMP%] .ng-meteor[_ngcontent-%COMP%]{rotate:calc(var(--_ng-progress-thickness-add-one) * 1deg)}[direction="ltr+"][_nghost-%COMP%] .ng-bar[_ngcontent-%COMP%], [direction="rtl+"][_nghost-%COMP%] .ng-bar[_ngcontent-%COMP%]{margin-left:-100%}[direction="ltr+"][_nghost-%COMP%] .ng-meteor[_ngcontent-%COMP%], [direction="rtl+"][_nghost-%COMP%] .ng-meteor[_ngcontent-%COMP%]{right:0}[direction="ltr+"][_nghost-%COMP%] .ng-meteor[_ngcontent-%COMP%], [direction=rtl-][_nghost-%COMP%] .ng-meteor[_ngcontent-%COMP%]{top:var(--_ng-progress-meteor-position-px)}[direction=ltr-][_nghost-%COMP%] .ng-meteor[_ngcontent-%COMP%], [direction="rtl+"][_nghost-%COMP%] .ng-meteor[_ngcontent-%COMP%]{bottom:var(--_ng-progress-meteor-position-px)}[direction=ltr-][_nghost-%COMP%] .ng-bar-placeholder[_ngcontent-%COMP%], [direction="rtl+"][_nghost-%COMP%] .ng-bar-placeholder[_ngcontent-%COMP%]{transform:rotate(180deg)}[direction=ltr-][_nghost-%COMP%] .ng-spinner-icon[_ngcontent-%COMP%], [direction="rtl+"][_nghost-%COMP%] .ng-spinner-icon[_ngcontent-%COMP%]{animation-direction:reverse}[direction="rtl+"][_nghost-%COMP%] .ng-meteor[_ngcontent-%COMP%], [direction=rtl-][_nghost-%COMP%] .ng-meteor[_ngcontent-%COMP%]{rotate:calc(var(--_ng-progress-thickness-add-one) * -1deg)}[_nghost-%COMP%] .ng-spinner[_ngcontent-%COMP%]{top:var(--_ng-progress-spinner-spacing-px)}[spinnerPosition=left][_nghost-%COMP%] .ng-spinner[_ngcontent-%COMP%]{left:var(--_ng-progress-spinner-spacing-px)}[spinnerPosition=right][_nghost-%COMP%] .ng-spinner[_ngcontent-%COMP%]{right:var(--_ng-progress-spinner-spacing-px)}.ng-progress-bar-wrapper[_ngcontent-%COMP%]{position:fixed;z-index:999999;top:0;left:0;width:100%;transform:scale(1);filter:alpha(opacity=0);opacity:0;transition:opacity var(--_ng-progress-fade-out-speed) linear}.ng-bar-placeholder[_ngcontent-%COMP%]{position:absolute;height:var(--_ng-progress-thickness-px);width:100%}.ng-bar[_ngcontent-%COMP%]{width:100%;height:100%;transform:translate(-100%,0,0);background:var(--_ng-progress-color)}.ng-meteor[_ngcontent-%COMP%]{display:block;position:absolute;width:100px;height:100%;opacity:1;box-shadow:0 0 10px var(--_ng-progress-color),0 0 5px var(--_ng-progress-color)}.ng-spinner[_ngcontent-%COMP%]{position:absolute;display:block;z-index:1031;top:10px}.ng-spinner-icon[_ngcontent-%COMP%]{box-sizing:border-box;animation:_ngcontent-%COMP%_spinner-animation var(--_ng-progress-spinner-speed) linear infinite;border-style:solid;border-color:transparent;border-radius:50%;border-top-color:var(--_ng-progress-color);border-left-color:var(--_ng-progress-color);width:var(--_ng-progress-spinner-size-px);height:var(--_ng-progress-spinner-size-px);border-width:var(--_ng-progress-spinner-thickness-px)}@keyframes _ngcontent-%COMP%_spinner-animation{0%{transform:rotate(0)}to{transform:rotate(360deg)}}'],changeDetection:0});let t=n;return t})();var Vpe={minDuration:0,startEvents:[ps],completeEvents:[vi,qo,tc]},Bpe=new T("NG_PROGRESS_ROUTER_OPTIONS",{providedIn:"root",factory:()=>Vpe});function o8(t,n){return n.some(e=>t instanceof e)}var jpe=(()=>{let n=class n{constructor(){this.router=u(Re),this.config=u(Bpe),this.progressRef=u(QC,{host:!0,self:!0});let i;this.router.events.pipe(ce(r=>o8(r,[...this.config.startEvents,...this.config.completeEvents])),se(r=>o8(r,this.config.startEvents)),Be(r=>{clearTimeout(i),r?this.progressRef.start():i=setTimeout(()=>{this.progressRef.complete()},this.config.minDuration)}),ku()).subscribe()}};n.\u0275fac=function(r){return new(r||n)},n.\u0275dir=F({type:n});let t=n;return t})(),a8=(()=>{let n=class n extends jpe{};n.\u0275fac=(()=>{let i;return function(o){return(i||(i=fe(n)))(o||n)}})(),n.\u0275dir=F({type:n,selectors:[["ng-progress","ngProgressRouter",""]],features:[le]});let t=n;return t})();var Hpe=["*",[["mat-toolbar-row"]]],zpe=["*","mat-toolbar-row"],Upe=(()=>{class t{static \u0275fac=function(i){return new(i||t)};static \u0275dir=F({type:t,selectors:[["mat-toolbar-row"]],hostAttrs:[1,"mat-toolbar-row"],exportAs:["matToolbarRow"]})}return t})(),KC=(()=>{class t{_elementRef=u(q);_platform=u(qe);_document=u(ge);color;_toolbarRows;constructor(){}ngAfterViewInit(){this._platform.isBrowser&&(this._checkToolbarMixedModes(),this._toolbarRows.changes.subscribe(()=>this._checkToolbarMixedModes()))}_checkToolbarMixedModes(){this._toolbarRows.length}static \u0275fac=function(i){return new(i||t)};static \u0275cmp=E({type:t,selectors:[["mat-toolbar"]],contentQueries:function(i,r,o){if(i&1&&xe(o,Upe,5),i&2){let a;B(a=j())&&(r._toolbarRows=a)}},hostAttrs:[1,"mat-toolbar"],hostVars:6,hostBindings:function(i,r){i&2&&(it(r.color?"mat-"+r.color:""),G("mat-toolbar-multiple-rows",r._toolbarRows.length>0)("mat-toolbar-single-row",r._toolbarRows.length===0))},inputs:{color:"color"},exportAs:["matToolbar"],ngContentSelectors:zpe,decls:2,vars:0,template:function(i,r){i&1&&(Me(Hpe),oe(0),oe(1,1))},styles:[`.mat-toolbar{background:var(--mat-toolbar-container-background-color, var(--mat-sys-surface));color:var(--mat-toolbar-container-text-color, var(--mat-sys-on-surface))}.mat-toolbar,.mat-toolbar h1,.mat-toolbar h2,.mat-toolbar h3,.mat-toolbar h4,.mat-toolbar h5,.mat-toolbar h6{font-family:var(--mat-toolbar-title-text-font, var(--mat-sys-title-large-font));font-size:var(--mat-toolbar-title-text-size, var(--mat-sys-title-large-size));line-height:var(--mat-toolbar-title-text-line-height, var(--mat-sys-title-large-line-height));font-weight:var(--mat-toolbar-title-text-weight, var(--mat-sys-title-large-weight));letter-spacing:var(--mat-toolbar-title-text-tracking, var(--mat-sys-title-large-tracking));margin:0}@media(forced-colors: active){.mat-toolbar{outline:solid 1px}}.mat-toolbar .mat-form-field-underline,.mat-toolbar .mat-form-field-ripple,.mat-toolbar .mat-focused .mat-form-field-ripple{background-color:currentColor}.mat-toolbar .mat-form-field-label,.mat-toolbar .mat-focused .mat-form-field-label,.mat-toolbar .mat-select-value,.mat-toolbar .mat-select-arrow,.mat-toolbar .mat-form-field.mat-focused .mat-select-arrow{color:inherit}.mat-toolbar .mat-input-element{caret-color:currentColor}.mat-toolbar .mat-mdc-button-base.mat-mdc-button-base.mat-unthemed{--mat-button-text-label-text-color: var(--mat-toolbar-container-text-color, var(--mat-sys-on-surface));--mat-button-outlined-label-text-color: var(--mat-toolbar-container-text-color, var(--mat-sys-on-surface))}.mat-toolbar-row,.mat-toolbar-single-row{display:flex;box-sizing:border-box;padding:0 16px;width:100%;flex-direction:row;align-items:center;white-space:nowrap;height:var(--mat-toolbar-standard-height, 64px)}@media(max-width: 599px){.mat-toolbar-row,.mat-toolbar-single-row{height:var(--mat-toolbar-mobile-height, 56px)}}.mat-toolbar-multiple-rows{display:flex;box-sizing:border-box;flex-direction:column;width:100%;min-height:var(--mat-toolbar-standard-height, 64px)}@media(max-width: 599px){.mat-toolbar-multiple-rows{min-height:var(--mat-toolbar-mobile-height, 56px)}} -`],encapsulation:2,changeDetection:0})}return t})();var ZC=(()=>{class t{static \u0275fac=function(i){return new(i||t)};static \u0275mod=ee({type:t});static \u0275inj=J({imports:[we,we]})}return t})();var l8=[["requestFullscreen","exitFullscreen","fullscreenElement","fullscreenEnabled","fullscreenchange","fullscreenerror"],["webkitRequestFullscreen","webkitExitFullscreen","webkitFullscreenElement","webkitFullscreenEnabled","webkitfullscreenchange","webkitfullscreenerror"],["webkitRequestFullScreen","webkitCancelFullScreen","webkitCurrentFullScreenElement","webkitCancelFullScreen","webkitfullscreenchange","webkitfullscreenerror"],["mozRequestFullScreen","mozCancelFullScreen","mozFullScreenElement","mozFullScreenEnabled","mozfullscreenchange","mozfullscreenerror"],["msRequestFullscreen","msExitFullscreen","msFullscreenElement","msFullscreenEnabled","MSFullscreenChange","MSFullscreenError"]],wl=(()=>{if(typeof document>"u")return!1;let t=l8[0],n={};for(let e of l8)if(e?.[1]in document){for(let[r,o]of e.entries())n[t[r]]=o;return n}return!1})(),c8={change:wl.fullscreenchange,error:wl.fullscreenerror},So={request(t=document.documentElement,n){return new Promise((e,i)=>{let r=()=>{So.off("change",r),e()};So.on("change",r);let o=t[wl.requestFullscreen](n);o instanceof Promise&&o.then(r).catch(i)})},exit(){return new Promise((t,n)=>{if(!So.isFullscreen){t();return}let e=()=>{So.off("change",e),t()};So.on("change",e);let i=document[wl.exitFullscreen]();i instanceof Promise&&i.then(e).catch(n)})},toggle(t,n){return So.isFullscreen?So.exit():So.request(t,n)},onchange(t){So.on("change",t)},onerror(t){So.on("error",t)},on(t,n){let e=c8[t];e&&document.addEventListener(e,n,!1)},off(t,n){let e=c8[t];e&&document.removeEventListener(e,n,!1)},raw:wl};Object.defineProperties(So,{isFullscreen:{get:()=>!!document[wl.fullscreenElement]},element:{enumerable:!0,get:()=>document[wl.fullscreenElement]??void 0},isEnabled:{enumerable:!0,get:()=>!!document[wl.fullscreenEnabled]}});wl||(So={isEnabled:!1});var kI=So;function $pe(t,n){t&1&&(ft(0,"span",2),_(1,"Talent Management"),vt())}var XC=(()=>{let n=class n{constructor(){this.showName=ne(!0)}};n.\u0275fac=function(r){return new(r||n)},n.\u0275cmp=E({type:n,selectors:[["app-branding"]],inputs:{showName:[1,"showName"]},decls:3,vars:1,consts:[["href","/",1,"branding"],["src","images/matero.png","alt","logo",1,"branding-logo"],[1,"branding-name"]],template:function(r,o){r&1&&(ft(0,"a",0),ai(1,"img",1),N(2,$pe,2,0,"span",2),vt()),r&2&&(g(2),L(o.showName()?2:-1))},styles:[".branding[_ngcontent-%COMP%]{display:flex;align-items:center;margin:0 .5rem;text-decoration:none;white-space:nowrap;color:inherit;border-radius:50rem}.branding-logo[_ngcontent-%COMP%]{width:2rem;height:2rem;border-radius:50rem}.branding-name[_ngcontent-%COMP%]{margin:0 .5rem;font-size:1rem;font-weight:500}"]});let t=n;return t})();var d8=(()=>{let n=class n{};n.\u0275fac=function(r){return new(r||n)},n.\u0275cmp=E({type:n,selectors:[["app-github-button"]],decls:3,vars:0,consts:[["matIconButton","","href","https://github.com/ng-matero/ng-matero","target","_blank"],["viewBox","0 0 16 16"],["fill","currentColor","d",`M7.999,0.431c-4.285,0-7.76,3.474-7.76,7.761 c0,3.428,2.223,6.337,5.307,7.363c0.388, +`):t}function cse(t,n){let{element:e,datasetIndex:i,index:r}=n,o=t.getDatasetMeta(i).controller,{label:a,value:s}=o.getLabelAndValue(r);return{chart:t,label:a,parsed:o.getParsed(r),raw:t.data.datasets[i].data[r],formattedValue:s,dataset:o.getDataset(),dataIndex:r,datasetIndex:i,element:e}}function F4(t,n){let e=t.chart.ctx,{body:i,footer:r,title:o}=t,{boxWidth:a,boxHeight:s}=n,l=pn(n.bodyFont),c=pn(n.titleFont),d=pn(n.footerFont),m=o.length,f=r.length,b=i.length,v=sr(n.padding),w=v.height,x=0,D=i.reduce((Z,K)=>Z+K.before.length+K.lines.length+K.after.length,0);if(D+=t.beforeBody.length+t.afterBody.length,m&&(w+=m*c.lineHeight+(m-1)*n.titleSpacing+n.titleMarginBottom),D){let Z=n.displayColors?Math.max(s,l.lineHeight):l.lineHeight;w+=b*Z+(D-b)*l.lineHeight+(D-1)*n.bodySpacing}f&&(w+=n.footerMarginTop+f*d.lineHeight+(f-1)*n.footerSpacing);let P=0,W=function(Z){x=Math.max(x,e.measureText(Z).width+P)};return e.save(),e.font=c.string,ii(t.title,W),e.font=l.string,ii(t.beforeBody.concat(t.afterBody),W),P=n.displayColors?a+2+n.boxPadding:0,ii(i,Z=>{ii(Z.before,W),ii(Z.lines,W),ii(Z.after,W)}),P=0,e.font=d.string,ii(t.footer,W),e.restore(),x+=v.width,{width:x,height:w}}function dse(t,n){let{y:e,height:i}=n;return et.height-i/2?"bottom":"center"}function use(t,n,e,i){let{x:r,width:o}=i,a=e.caretSize+e.caretPadding;if(t==="left"&&r+o+a>n.width||t==="right"&&r-o-a<0)return!0}function mse(t,n,e,i){let{x:r,width:o}=e,{width:a,chartArea:{left:s,right:l}}=t,c="center";return i==="center"?c=r<=(s+l)/2?"left":"right":r<=o/2?c="left":r>=a-o/2&&(c="right"),use(c,t,n,e)&&(c="center"),c}function N4(t,n,e){let i=e.yAlign||n.yAlign||dse(t,e);return{xAlign:e.xAlign||n.xAlign||mse(t,n,e,i),yAlign:i}}function hse(t,n){let{x:e,width:i}=t;return n==="right"?e-=i:n==="center"&&(e-=i/2),e}function pse(t,n,e){let{y:i,height:r}=t;return n==="top"?i+=e:n==="bottom"?i-=r+e:i-=r/2,i}function L4(t,n,e,i){let{caretSize:r,caretPadding:o,cornerRadius:a}=t,{xAlign:s,yAlign:l}=e,c=r+o,{topLeft:d,topRight:m,bottomLeft:f,bottomRight:b}=Tc(a),v=hse(n,s),w=pse(n,l,c);return l==="center"?s==="left"?v+=c:s==="right"&&(v-=c):s==="left"?v-=Math.max(d,f)+r:s==="right"&&(v+=Math.max(m,b)+r),{x:Dn(v,0,i.width-n.width),y:Dn(w,0,i.height-n.height)}}function tC(t,n,e){let i=sr(e.padding);return n==="center"?t.x+t.width/2:n==="right"?t.x+t.width-i.right:t.x+i.left}function V4(t){return As([],yl(t))}function fse(t,n,e){return bl(t,{tooltip:n,tooltipItems:e,type:"tooltip"})}function B4(t,n){let e=n&&n.dataset&&n.dataset.tooltip&&n.dataset.tooltip.callbacks;return e?t.override(e):t}var gH={beforeTitle:Ts,title(t){if(t.length>0){let n=t[0],e=n.chart.data.labels,i=e?e.length:0;if(this&&this.options&&this.options.mode==="dataset")return n.dataset.label||"";if(n.label)return n.label;if(i>0&&n.dataIndex"u"?gH[n].call(e,i):r}var j4=(()=>{class t extends ja{static positioners=Qg;constructor(e){super(),this.opacity=0,this._active=[],this._eventPosition=void 0,this._size=void 0,this._cachedAnimations=void 0,this._tooltipItems=[],this.$animations=void 0,this.$context=void 0,this.chart=e.chart,this.options=e.options,this.dataPoints=void 0,this.title=void 0,this.beforeBody=void 0,this.body=void 0,this.afterBody=void 0,this.footer=void 0,this.xAlign=void 0,this.yAlign=void 0,this.x=void 0,this.y=void 0,this.height=void 0,this.width=void 0,this.caretX=void 0,this.caretY=void 0,this.labelColors=void 0,this.labelPointStyles=void 0,this.labelTextColors=void 0}initialize(e){this.options=e,this._cachedAnimations=void 0,this.$context=void 0}_resolveAnimations(){let e=this._cachedAnimations;if(e)return e;let i=this.chart,r=this.options.setContext(this.getContext()),o=r.enabled&&i.options.animation&&r.animations,a=new oC(this.chart,o);return o._cacheable&&(this._cachedAnimations=Object.freeze(a)),a}getContext(){return this.$context||(this.$context=fse(this.chart.getContext(),this,this._tooltipItems))}getTitle(e,i){let{callbacks:r}=i,o=ro(r,"beforeTitle",this,e),a=ro(r,"title",this,e),s=ro(r,"afterTitle",this,e),l=[];return l=As(l,yl(o)),l=As(l,yl(a)),l=As(l,yl(s)),l}getBeforeBody(e,i){return V4(ro(i.callbacks,"beforeBody",this,e))}getBody(e,i){let{callbacks:r}=i,o=[];return ii(e,a=>{let s={before:[],lines:[],after:[]},l=B4(r,a);As(s.before,yl(ro(l,"beforeLabel",this,a))),As(s.lines,ro(l,"label",this,a)),As(s.after,yl(ro(l,"afterLabel",this,a))),o.push(s)}),o}getAfterBody(e,i){return V4(ro(i.callbacks,"afterBody",this,e))}getFooter(e,i){let{callbacks:r}=i,o=ro(r,"beforeFooter",this,e),a=ro(r,"footer",this,e),s=ro(r,"afterFooter",this,e),l=[];return l=As(l,yl(o)),l=As(l,yl(a)),l=As(l,yl(s)),l}_createItems(e){let i=this._active,r=this.chart.data,o=[],a=[],s=[],l=[],c,d;for(c=0,d=i.length;ce.filter(m,f,b,r))),e.itemSort&&(l=l.sort((m,f)=>e.itemSort(m,f,r))),ii(l,m=>{let f=B4(e.callbacks,m);o.push(ro(f,"labelColor",this,m)),a.push(ro(f,"labelPointStyle",this,m)),s.push(ro(f,"labelTextColor",this,m))}),this.labelColors=o,this.labelPointStyles=a,this.labelTextColors=s,this.dataPoints=l,l}update(e,i){let r=this.options.setContext(this.getContext()),o=this._active,a,s=[];if(!o.length)this.opacity!==0&&(a={opacity:0});else{let l=Qg[r.position].call(this,o,this._eventPosition);s=this._createItems(r),this.title=this.getTitle(s,r),this.beforeBody=this.getBeforeBody(s,r),this.body=this.getBody(s,r),this.afterBody=this.getAfterBody(s,r),this.footer=this.getFooter(s,r);let c=this._size=F4(this,r),d=Object.assign({},l,c),m=N4(this.chart,r,d),f=L4(r,d,m,this.chart);this.xAlign=m.xAlign,this.yAlign=m.yAlign,a={opacity:1,x:f.x,y:f.y,width:c.width,height:c.height,caretX:l.x,caretY:l.y}}this._tooltipItems=s,this.$context=void 0,a&&this._resolveAnimations().update(this,a),e&&r.external&&r.external.call(this,{chart:this.chart,tooltip:this,replay:i})}drawCaret(e,i,r,o){let a=this.getCaretPosition(e,r,o);i.lineTo(a.x1,a.y1),i.lineTo(a.x2,a.y2),i.lineTo(a.x3,a.y3)}getCaretPosition(e,i,r){let{xAlign:o,yAlign:a}=this,{caretSize:s,cornerRadius:l}=r,{topLeft:c,topRight:d,bottomLeft:m,bottomRight:f}=Tc(l),{x:b,y:v}=e,{width:w,height:x}=i,D,P,W,Z,K,re;return a==="center"?(K=v+x/2,o==="left"?(D=b,P=D-s,Z=K+s,re=K-s):(D=b+w,P=D+s,Z=K-s,re=K+s),W=D):(o==="left"?P=b+Math.max(c,m)+s:o==="right"?P=b+w-Math.max(d,f)-s:P=this.caretX,a==="top"?(Z=v,K=Z-s,D=P-s,W=P+s):(Z=v+x,K=Z+s,D=P+s,W=P-s),re=Z),{x1:D,x2:P,x3:W,y1:Z,y2:K,y3:re}}drawTitle(e,i,r){let o=this.title,a=o.length,s,l,c;if(a){let d=Cu(r.rtl,this.x,this.width);for(e.x=tC(this,r.titleAlign,r),i.textAlign=d.textAlign(r.titleAlign),i.textBaseline="middle",s=pn(r.titleFont),l=r.titleSpacing,i.fillStyle=r.titleColor,i.font=s.string,c=0;cW!==0)?(e.beginPath(),e.fillStyle=a.multiKeyBackground,jh(e,{x,y:w,w:d,h:c,radius:P}),e.fill(),e.stroke(),e.fillStyle=s.backgroundColor,e.beginPath(),jh(e,{x:D,y:w+1,w:d-2,h:c-2,radius:P}),e.fill()):(e.fillStyle=a.multiKeyBackground,e.fillRect(x,w,d,c),e.strokeRect(x,w,d,c),e.fillStyle=s.backgroundColor,e.fillRect(D,w+1,d-2,c-2))}e.fillStyle=this.labelTextColors[r]}drawBody(e,i,r){let{body:o}=this,{bodySpacing:a,bodyAlign:s,displayColors:l,boxHeight:c,boxWidth:d,boxPadding:m}=r,f=pn(r.bodyFont),b=f.lineHeight,v=0,w=Cu(r.rtl,this.x,this.width),x=function(Ve){i.fillText(Ve,w.x(e.x+v),e.y+b/2),e.y+=b+a},D=w.textAlign(s),P,W,Z,K,re,Ee,be;for(i.textAlign=s,i.textBaseline="middle",i.font=f.string,e.x=tC(this,D,r),i.fillStyle=r.bodyColor,ii(this.beforeBody,x),v=l&&D!=="right"?s==="center"?d/2+m:d+2+m:0,K=0,Ee=o.length;K0&&i.stroke()}_updateAnimationTarget(e){let i=this.chart,r=this.$animations,o=r&&r.x,a=r&&r.y;if(o||a){let s=Qg[e.position].call(this,this._active,this._eventPosition);if(!s)return;let l=this._size=F4(this,e),c=Object.assign({},s,this._size),d=N4(i,e,c),m=L4(e,c,d,i);(o._to!==m.x||a._to!==m.y)&&(this.xAlign=d.xAlign,this.yAlign=d.yAlign,this.width=l.width,this.height=l.height,this.caretX=s.x,this.caretY=s.y,this._resolveAnimations().update(this,m))}}_willRender(){return!!this.opacity}draw(e){let i=this.options.setContext(this.getContext()),r=this.opacity;if(!r)return;this._updateAnimationTarget(i);let o={width:this.width,height:this.height},a={x:this.x,y:this.y};r=Math.abs(r)<.001?0:r;let s=sr(i.padding),l=this.title.length||this.beforeBody.length||this.body.length||this.afterBody.length||this.footer.length;i.enabled&&l&&(e.save(),e.globalAlpha=r,this.drawBackground(a,e,o,i),bT(e,i.textDirection),a.y+=s.top,this.drawTitle(a,e,i),this.drawBody(a,e,i),this.drawFooter(a,e,i),vT(e,i.textDirection),e.restore())}getActiveElements(){return this._active||[]}setActiveElements(e,i){let r=this._active,o=e.map(({datasetIndex:l,index:c})=>{let d=this.chart.getDatasetMeta(l);if(!d)throw new Error("Cannot find a dataset at index "+l);return{datasetIndex:l,element:d.data[c],index:c}}),a=!Bg(r,o),s=this._positionChanged(o,i);(a||s)&&(this._active=o,this._eventPosition=i,this._ignoreReplayEvents=!0,this.update(!0))}handleEvent(e,i,r=!0){if(i&&this._ignoreReplayEvents)return!1;this._ignoreReplayEvents=!1;let o=this.options,a=this._active||[],s=this._getActiveElements(e,a,i,r),l=this._positionChanged(s,e),c=i||!Bg(s,a)||l;return c&&(this._active=s,(o.enabled||o.external)&&(this._eventPosition={x:e.x,y:e.y},this.update(!0,i))),c}_getActiveElements(e,i,r,o){let a=this.options;if(e.type==="mouseout")return[];if(!o)return i.filter(l=>this.chart.data.datasets[l.datasetIndex]&&this.chart.getDatasetMeta(l.datasetIndex).controller.getParsed(l.index)!==void 0);let s=this.chart.getElementsAtEventForMode(e,a.mode,a,r);return a.reverse&&s.reverse(),s}_positionChanged(e,i){let{caretX:r,caretY:o,options:a}=this,s=Qg[a.position].call(this,e,i);return s!==!1&&(r!==s.x||o!==s.y)}}return t})(),gse={id:"tooltip",_element:j4,positioners:Qg,afterInit(t,n,e){e&&(t.tooltip=new j4({chart:t,options:e}))},beforeUpdate(t,n,e){t.tooltip&&t.tooltip.initialize(e)},reset(t,n,e){t.tooltip&&t.tooltip.initialize(e)},afterDraw(t){let n=t.tooltip;if(n&&n._willRender()){let e={tooltip:n};if(t.notifyPlugins("beforeTooltipDraw",De(M({},e),{cancelable:!0}))===!1)return;n.draw(t.ctx),t.notifyPlugins("afterTooltipDraw",e)}},afterEvent(t,n){if(t.tooltip){let e=n.replay;t.tooltip.handleEvent(n.event,e,n.inChartArea)&&(n.changed=!0)}},defaults:{enabled:!0,external:null,position:"average",backgroundColor:"rgba(0,0,0,0.8)",titleColor:"#fff",titleFont:{weight:"bold"},titleSpacing:2,titleMarginBottom:6,titleAlign:"left",bodyColor:"#fff",bodySpacing:2,bodyFont:{},bodyAlign:"left",footerColor:"#fff",footerSpacing:2,footerMarginTop:6,footerFont:{weight:"bold"},footerAlign:"left",padding:6,caretPadding:2,caretSize:5,cornerRadius:6,boxHeight:(t,n)=>n.bodyFont.size,boxWidth:(t,n)=>n.bodyFont.size,multiKeyBackground:"#fff",displayColors:!0,boxPadding:0,borderColor:"rgba(0,0,0,0)",borderWidth:0,animation:{duration:400,easing:"easeOutQuart"},animations:{numbers:{type:"number",properties:["x","y","width","height","caretX","caretY"]},opacity:{easing:"linear",duration:200}},callbacks:gH},defaultRoutes:{bodyFont:"font",footerFont:"font",titleFont:"font"},descriptors:{_scriptable:t=>t!=="filter"&&t!=="itemSort"&&t!=="external",_indexable:!1,callbacks:{_scriptable:!1,_indexable:!1},animation:{_fallback:!1},animations:{_fallback:"animation"}},additionalOptionScopes:["interaction"]},_se=Object.freeze({__proto__:null,Colors:Tae,Decimation:Rae,Filler:Jae,Legend:ose,SubTitle:lse,Title:sse,Tooltip:gse}),bse=(t,n,e,i)=>(typeof n=="string"?(e=t.push(n)-1,i.unshift({index:e,label:n})):isNaN(n)&&(e=null),e);function vse(t,n,e,i){let r=t.indexOf(n);if(r===-1)return bse(t,n,e,i);let o=t.lastIndexOf(n);return r!==o?e:r}var yse=(t,n)=>t===null?null:Dn(Math.round(t),0,n);function H4(t){let n=this.getLabels();return t>=0&&t{class t extends Eu{static id="category";static defaults={ticks:{callback:H4}};constructor(e){super(e),this._startValue=void 0,this._valueRange=0,this._addedLabels=[]}init(e){let i=this._addedLabels;if(i.length){let r=this.getLabels();for(let{index:o,label:a}of i)r[o]===a&&r.splice(o,1);this._addedLabels=[]}super.init(e)}parse(e,i){if(Et(e))return null;let r=this.getLabels();return i=isFinite(i)&&r[i]===e?i:vse(r,e,st(i,e),this._addedLabels),yse(i,r.length-1)}determineDataLimits(){let{minDefined:e,maxDefined:i}=this.getUserBounds(),{min:r,max:o}=this.getMinMax(!0);this.options.bounds==="ticks"&&(e||(r=0),i||(o=this.getLabels().length-1)),this.min=r,this.max=o}buildTicks(){let e=this.min,i=this.max,r=this.options.offset,o=[],a=this.getLabels();a=e===0&&i===a.length-1?a:a.slice(e,i+1),this._valueRange=Math.max(a.length-(r?0:1),1),this._startValue=this.min-(r?.5:0);for(let s=e;s<=i;s++)o.push({value:s});return o}getLabelForValue(e){return H4.call(this,e)}configure(){super.configure(),this.isHorizontal()||(this._reversePixels=!this._reversePixels)}getPixelForValue(e){return typeof e!="number"&&(e=this.parse(e)),e===null?NaN:this.getPixelForDecimal((e-this._startValue)/this._valueRange)}getPixelForTick(e){let i=this.ticks;return e<0||e>i.length-1?null:this.getPixelForValue(i[e].value)}getValueForPixel(e){return Math.round(this._startValue+this.getDecimalForPixel(e)*this._valueRange)}getBasePixel(){return this.bottom}}return t})();function Cse(t,n){let e=[],{bounds:r,step:o,min:a,max:s,precision:l,count:c,maxTicks:d,maxDigits:m,includeBounds:f}=t,b=o||1,v=d-1,{min:w,max:x}=n,D=!Et(a),P=!Et(s),W=!Et(c),Z=(x-w)/(m+1),K=ZS((x-w)/v/b)*b,re,Ee,be,Ve;if(K<1e-14&&!D&&!P)return[{value:w},{value:x}];Ve=Math.ceil(x/K)-Math.floor(w/K),Ve>v&&(K=ZS(Ve*K/v/b)*b),Et(l)||(re=Math.pow(10,l),K=Math.ceil(K*re)/re),r==="ticks"?(Ee=Math.floor(w/K)*K,be=Math.ceil(x/K)*K):(Ee=w,be=x),D&&P&&o&&kj((s-a)/o,K/1e3)?(Ve=Math.round(Math.min((s-a)/K,d)),K=(s-a)/Ve,Ee=a,be=s):W?(Ee=D?a:Ee,be=P?s:be,Ve=c-1,K=(be-Ee)/Ve):(Ve=(be-Ee)/K,Lh(Ve,Math.round(Ve),K/1e3)?Ve=Math.round(Ve):Ve=Math.ceil(Ve));let yt=Math.max(JS(K),JS(Ee));re=Math.pow(10,Et(l)?yt:l),Ee=Math.round(Ee*re)/re,be=Math.round(be*re)/re;let bt=0;for(D&&(f&&Ee!==a?(e.push({value:a}),Ees)break;e.push({value:It})}return P&&f&&be!==s?e.length&&Lh(e[e.length-1].value,s,z4(s,Z,t))?e[e.length-1].value=s:e.push({value:s}):(!P||be===s)&&e.push({value:be}),e}function z4(t,n,{horizontal:e,minRotation:i}){let r=ra(i),o=(e?Math.sin(r):Math.cos(r))||.001,a=.75*n*(""+t).length;return Math.min(n/o,a)}var $h=class extends Eu{constructor(n){super(n),this.start=void 0,this.end=void 0,this._startValue=void 0,this._endValue=void 0,this._valueRange=0}parse(n,e){return Et(n)||(typeof n=="number"||n instanceof Number)&&!isFinite(+n)?null:+n}handleTickRangeOptions(){let{beginAtZero:n}=this.options,{minDefined:e,maxDefined:i}=this.getUserBounds(),{min:r,max:o}=this,a=l=>r=e?r:l,s=l=>o=i?o:l;if(n){let l=Ba(r),c=Ba(o);l<0&&c<0?s(0):l>0&&c>0&&a(0)}if(r===o){let l=o===0?1:Math.abs(o*.05);s(o+l),n||a(r-l)}this.min=r,this.max=o}getTickLimit(){let n=this.options.ticks,{maxTicksLimit:e,stepSize:i}=n,r;return i?(r=Math.ceil(this.max/i)-Math.floor(this.min/i)+1,r>1e3&&(console.warn(`scales.${this.id}.ticks.stepSize: ${i} would result generating up to ${r} ticks. Limiting to 1000.`),r=1e3)):(r=this.computeTickLimit(),e=e||11),e&&(r=Math.min(e,r)),r}computeTickLimit(){return Number.POSITIVE_INFINITY}buildTicks(){let n=this.options,e=n.ticks,i=this.getTickLimit();i=Math.max(2,i);let r={maxTicks:i,bounds:n.bounds,min:n.min,max:n.max,precision:e.precision,step:e.stepSize,count:e.count,maxDigits:this._maxDigits(),horizontal:this.isHorizontal(),minRotation:e.minRotation||0,includeBounds:e.includeBounds!==!1},o=this._range||this,a=Cse(r,o);return n.bounds==="ticks"&&XS(a,this,"value"),n.reverse?(a.reverse(),this.start=this.max,this.end=this.min):(this.start=this.min,this.end=this.max),a}configure(){let n=this.ticks,e=this.min,i=this.max;if(super.configure(),this.options.offset&&n.length){let r=(i-e)/Math.max(n.length-1,1)/2;e-=r,i+=r}this._startValue=e,this._endValue=i,this._valueRange=i-e}getLabelForValue(n){return Bh(n,this.chart.options.locale,this.options.ticks.format)}},QT=class extends $h{static id="linear";static defaults={ticks:{callback:jg.formatters.numeric}};determineDataLimits(){let{min:n,max:e}=this.getMinMax(!0);this.min=Gi(n)?n:0,this.max=Gi(e)?e:1,this.handleTickRangeOptions()}computeTickLimit(){let n=this.isHorizontal(),e=n?this.width:this.height,i=ra(this.options.ticks.minRotation),r=(n?Math.sin(i):Math.cos(i))||.001,o=this._resolveTickFontOptions(0);return Math.ceil(e/Math.min(40,o.lineHeight/r))}getPixelForValue(n){return n===null?NaN:this.getPixelForDecimal((n-this._startValue)/this._valueRange)}getValueForPixel(n){return this._startValue+this.getDecimalForPixel(n)*this._valueRange}},Xg=t=>Math.floor(gl(t)),Du=(t,n)=>Math.pow(10,Xg(t)+n);function U4(t){return t/Math.pow(10,Xg(t))===1}function $4(t,n,e){let i=Math.pow(10,e),r=Math.floor(t/i);return Math.ceil(n/i)-r}function wse(t,n){let e=n-t,i=Xg(e);for(;$4(t,n,i)>10;)i++;for(;$4(t,n,i)<10;)i--;return Math.min(i,Xg(t))}function Dse(t,{min:n,max:e}){n=no(t.min,n);let i=[],r=Xg(n),o=wse(n,e),a=o<0?Math.pow(10,Math.abs(o)):1,s=Math.pow(10,o),l=r>o?Math.pow(10,r):0,c=Math.round((n-l)*a)/a,d=Math.floor((n-l)/s/10)*s*10,m=Math.floor((c-d)/Math.pow(10,o)),f=no(t.min,Math.round((l+d+m*Math.pow(10,o))*a)/a);for(;f=10?m=m<15?15:20:m++,m>=20&&(o++,m=2,a=o>=0?1:a),f=Math.round((l+d+m*Math.pow(10,o))*a)/a;let b=no(t.max,f);return i.push({value:b,major:U4(b),significand:m}),i}var KT=class extends Eu{static id="logarithmic";static defaults={ticks:{callback:jg.formatters.logarithmic,major:{enabled:!0}}};constructor(n){super(n),this.start=void 0,this.end=void 0,this._startValue=void 0,this._valueRange=0}parse(n,e){let i=$h.prototype.parse.apply(this,[n,e]);if(i===0){this._zero=!0;return}return Gi(i)&&i>0?i:null}determineDataLimits(){let{min:n,max:e}=this.getMinMax(!0);this.min=Gi(n)?Math.max(0,n):null,this.max=Gi(e)?Math.max(0,e):null,this.options.beginAtZero&&(this._zero=!0),this._zero&&this.min!==this._suggestedMin&&!Gi(this._userMin)&&(this.min=n===Du(this.min,0)?Du(this.min,-1):Du(this.min,0)),this.handleTickRangeOptions()}handleTickRangeOptions(){let{minDefined:n,maxDefined:e}=this.getUserBounds(),i=this.min,r=this.max,o=s=>i=n?i:s,a=s=>r=e?r:s;i===r&&(i<=0?(o(1),a(10)):(o(Du(i,-1)),a(Du(r,1)))),i<=0&&o(Du(r,-1)),r<=0&&a(Du(i,1)),this.min=i,this.max=r}buildTicks(){let n=this.options,e={min:this._userMin,max:this._userMax},i=Dse(e,this);return n.bounds==="ticks"&&XS(i,this,"value"),n.reverse?(i.reverse(),this.start=this.max,this.end=this.min):(this.start=this.min,this.end=this.max),i}getLabelForValue(n){return n===void 0?"0":Bh(n,this.chart.options.locale,this.options.ticks.format)}configure(){let n=this.min;super.configure(),this._startValue=gl(n),this._valueRange=gl(this.max)-gl(n)}getPixelForValue(n){return(n===void 0||n===0)&&(n=this.min),n===null||isNaN(n)?NaN:this.getPixelForDecimal(n===this.min?0:(gl(n)-this._startValue)/this._valueRange)}getValueForPixel(n){let e=this.getDecimalForPixel(n);return Math.pow(10,this._startValue+e*this._valueRange)}};function ZT(t){let n=t.ticks;if(n.display&&t.display){let e=sr(n.backdropPadding);return st(n.font&&n.font.size,xi.font.size)+e.height}return 0}function Ese(t,n,e){return e=Ei(e)?e:[e],{w:Nj(t,n.string,e),h:e.length*n.lineHeight}}function W4(t,n,e,i,r){return t===i||t===r?{start:n-e/2,end:n+e/2}:tr?{start:n-e,end:n}:{start:n,end:n+e}}function Mse(t){let n={l:t.left+t._padding.left,r:t.right-t._padding.right,t:t.top+t._padding.top,b:t.bottom-t._padding.bottom},e=Object.assign({},n),i=[],r=[],o=t._pointLabels.length,a=t.options.pointLabels,s=a.centerPointLabels?Ht/o:0;for(let l=0;ln.r&&(s=(i.end-n.r)/o,t.r=Math.max(t.r,n.r+s)),r.startn.b&&(l=(r.end-n.b)/a,t.b=Math.max(t.b,n.b+l))}function Sse(t,n,e){let i=t.drawingArea,{extra:r,additionalAngle:o,padding:a,size:s}=e,l=t.getPointPosition(n,i+r+a,o),c=Math.round(Hx(or(l.angle+Zi))),d=Rse(l.y,s.h,c),m=Ase(c),f=Ose(l.x,s.w,m);return{visible:!0,x:l.x,y:d,textAlign:m,left:f,top:d,right:f+s.w,bottom:d+s.h}}function Tse(t,n){if(!n)return!0;let{left:e,top:i,right:r,bottom:o}=t;return!(Ss({x:e,y:i},n)||Ss({x:e,y:o},n)||Ss({x:r,y:i},n)||Ss({x:r,y:o},n))}function Ise(t,n,e){let i=[],r=t._pointLabels.length,o=t.options,{centerPointLabels:a,display:s}=o.pointLabels,l={extra:ZT(o)/2,additionalAngle:a?Ht/r:0},c;for(let d=0;d270||e<90)&&(t-=n),t}function Pse(t,n,e){let{left:i,top:r,right:o,bottom:a}=e,{backdropColor:s}=n;if(!Et(s)){let l=Tc(n.borderRadius),c=sr(n.backdropPadding);t.fillStyle=s;let d=i-c.left,m=r-c.top,f=o-i+c.width,b=a-r+c.height;Object.values(l).some(v=>v!==0)?(t.beginPath(),jh(t,{x:d,y:m,w:f,h:b,radius:l}),t.fill()):t.fillRect(d,m,f,b)}}function Fse(t,n){let{ctx:e,options:{pointLabels:i}}=t;for(let r=n-1;r>=0;r--){let o=t._pointLabelItems[r];if(!o.visible)continue;let a=i.setContext(t.getPointLabelContext(r));Pse(e,a,o);let s=pn(a.font),{x:l,y:c,textAlign:d}=o;Sc(e,t._pointLabels[r],l,c+s.lineHeight/2,s,{color:a.color,textAlign:d,textBaseline:"middle"})}}function _H(t,n,e,i){let{ctx:r}=t;if(e)r.arc(t.xCenter,t.yCenter,n,0,Mi);else{let o=t.getPointPosition(0,n);r.moveTo(o.x,o.y);for(let a=1;a{let r=yi(this.options.pointLabels.callback,[e,i],this);return r||r===0?r:""}).filter((e,i)=>this.chart.getDataVisibility(i))}fit(){let n=this.options;n.display&&n.pointLabels.display?Mse(this):this.setCenterPoint(0,0,0,0)}setCenterPoint(n,e,i,r){this.xCenter+=Math.floor((n-e)/2),this.yCenter+=Math.floor((i-r)/2),this.drawingArea-=Math.min(this.drawingArea/2,Math.max(n,e,i,r))}getIndexAngle(n){let e=Mi/(this._pointLabels.length||1),i=this.options.startAngle||0;return or(n*e+ra(i))}getDistanceFromCenterForValue(n){if(Et(n))return NaN;let e=this.drawingArea/(this.max-this.min);return this.options.reverse?(this.max-n)*e:(n-this.min)*e}getValueForDistanceFromCenter(n){if(Et(n))return NaN;let e=n/(this.drawingArea/(this.max-this.min));return this.options.reverse?this.max-e:this.min+e}getPointLabelContext(n){let e=this._pointLabels||[];if(n>=0&&n{if(m!==0||m===0&&this.min<0){l=this.getDistanceFromCenterForValue(d.value);let f=this.getContext(m),b=r.setContext(f),v=o.setContext(f);Nse(this,b,l,a,v)}}),i.display){for(n.save(),s=a-1;s>=0;s--){let d=i.setContext(this.getPointLabelContext(s)),{color:m,lineWidth:f}=d;!f||!m||(n.lineWidth=f,n.strokeStyle=m,n.setLineDash(d.borderDash),n.lineDashOffset=d.borderDashOffset,l=this.getDistanceFromCenterForValue(e.reverse?this.min:this.max),c=this.getPointPosition(s,l),n.beginPath(),n.moveTo(this.xCenter,this.yCenter),n.lineTo(c.x,c.y),n.stroke())}n.restore()}}drawBorder(){}drawLabels(){let n=this.ctx,e=this.options,i=e.ticks;if(!i.display)return;let r=this.getIndexAngle(0),o,a;n.save(),n.translate(this.xCenter,this.yCenter),n.rotate(r),n.textAlign="center",n.textBaseline="middle",this.ticks.forEach((s,l)=>{if(l===0&&this.min>=0&&!e.reverse)return;let c=i.setContext(this.getContext(l)),d=pn(c.font);if(o=this.getDistanceFromCenterForValue(this.ticks[l].value),c.showLabelBackdrop){n.font=d.string,a=n.measureText(s.label).width,n.fillStyle=c.backdropColor;let m=sr(c.backdropPadding);n.fillRect(-a/2-m.left,-o-d.size/2-m.top,a+m.width,d.size+m.height)}Sc(n,s.label,0,-o,d,{color:c.color,strokeColor:c.textStrokeColor,strokeWidth:c.textStrokeWidth})}),n.restore()}drawTitle(){}},pC={millisecond:{common:!0,size:1,steps:1e3},second:{common:!0,size:1e3,steps:60},minute:{common:!0,size:6e4,steps:60},hour:{common:!0,size:36e5,steps:24},day:{common:!0,size:864e5,steps:30},week:{common:!1,size:6048e5,steps:4},month:{common:!0,size:2628e6,steps:12},quarter:{common:!1,size:7884e6,steps:4},year:{common:!0,size:3154e7}},oo=Object.keys(pC);function G4(t,n){return t-n}function q4(t,n){if(Et(n))return null;let e=t._adapter,{parser:i,round:r,isoWeekday:o}=t._parseOpts,a=n;return typeof i=="function"&&(a=i(a)),Gi(a)||(a=typeof i=="string"?e.parse(a,i):e.parse(a)),a===null?null:(r&&(a=r==="week"&&(xu(o)||o===!0)?e.startOf(a,"isoWeek",o):e.startOf(a,r)),+a)}function Y4(t,n,e,i){let r=oo.length;for(let o=oo.indexOf(t);o=oo.indexOf(e);o--){let a=oo[o];if(pC[a].common&&t._adapter.diff(r,i,a)>=n-1)return a}return oo[e?oo.indexOf(e):0]}function Bse(t){for(let n=oo.indexOf(t)+1,e=oo.length;n=n?e[i]:e[r];t[o]=!0}}function jse(t,n,e,i){let r=t._adapter,o=+r.startOf(n[0].value,i),a=n[n.length-1].value,s,l;for(s=o;s<=a;s=+r.add(s,1,i))l=e[s],l>=0&&(n[l].major=!0);return n}function K4(t,n,e){let i=[],r={},o=n.length,a,s;for(a=0;a{class t extends Eu{static id="time";static defaults={bounds:"data",adapters:{},time:{parser:!1,unit:!1,round:!1,isoWeekday:!1,minUnit:"millisecond",displayFormats:{}},ticks:{source:"auto",callback:!1,major:{enabled:!1}}};constructor(e){super(e),this._cache={data:[],labels:[],all:[]},this._unit="day",this._majorUnit=void 0,this._offsets={},this._normalized=!1,this._parseOpts=void 0}init(e,i={}){let r=e.time||(e.time={}),o=this._adapter=new Zre._date(e.adapters.date);o.init(i),Fh(r.displayFormats,o.formats()),this._parseOpts={parser:r.parser,round:r.round,isoWeekday:r.isoWeekday},super.init(e),this._normalized=i.normalized}parse(e,i){return e===void 0?null:q4(this,e)}beforeLayout(){super.beforeLayout(),this._cache={data:[],labels:[],all:[]}}determineDataLimits(){let e=this.options,i=this._adapter,r=e.time.unit||"day",{min:o,max:a,minDefined:s,maxDefined:l}=this.getUserBounds();function c(d){!s&&!isNaN(d.min)&&(o=Math.min(o,d.min)),!l&&!isNaN(d.max)&&(a=Math.max(a,d.max))}(!s||!l)&&(c(this._getLabelBounds()),(e.bounds!=="ticks"||e.ticks.source!=="labels")&&c(this.getMinMax(!1))),o=Gi(o)&&!isNaN(o)?o:+i.startOf(Date.now(),r),a=Gi(a)&&!isNaN(a)?a:+i.endOf(Date.now(),r)+1,this.min=Math.min(o,a-1),this.max=Math.max(o+1,a)}_getLabelBounds(){let e=this.getLabelTimestamps(),i=Number.POSITIVE_INFINITY,r=Number.NEGATIVE_INFINITY;return e.length&&(i=e[0],r=e[e.length-1]),{min:i,max:r}}buildTicks(){let e=this.options,i=e.time,r=e.ticks,o=r.source==="labels"?this.getLabelTimestamps():this._generate();e.bounds==="ticks"&&o.length&&(this.min=this._userMin||o[0],this.max=this._userMax||o[o.length-1]);let a=this.min,s=this.max,l=Ij(o,a,s);return this._unit=i.unit||(r.autoSkip?Y4(i.minUnit,this.min,this.max,this._getLabelCapacity(a)):Vse(this,l.length,i.minUnit,this.min,this.max)),this._majorUnit=!r.major.enabled||this._unit==="year"?void 0:Bse(this._unit),this.initOffsets(o),e.reverse&&l.reverse(),K4(this,l,this._majorUnit)}afterAutoSkip(){this.options.offsetAfterAutoskip&&this.initOffsets(this.ticks.map(e=>+e.value))}initOffsets(e=[]){let i=0,r=0,o,a;this.options.offset&&e.length&&(o=this.getDecimalForValue(e[0]),e.length===1?i=1-o:i=(this.getDecimalForValue(e[1])-o)/2,a=this.getDecimalForValue(e[e.length-1]),e.length===1?r=a:r=(a-this.getDecimalForValue(e[e.length-2]))/2);let s=e.length<3?.5:.25;i=Dn(i,0,s),r=Dn(r,0,s),this._offsets={start:i,end:r,factor:1/(i+1+r)}}_generate(){let e=this._adapter,i=this.min,r=this.max,o=this.options,a=o.time,s=a.unit||Y4(a.minUnit,i,r,this._getLabelCapacity(i)),l=st(o.ticks.stepSize,1),c=s==="week"?a.isoWeekday:!1,d=xu(c)||c===!0,m={},f=i,b,v;if(d&&(f=+e.startOf(f,"isoWeek",c)),f=+e.startOf(f,d?"day":s),e.diff(r,i,s)>1e5*l)throw new Error(i+" and "+r+" are too far apart with stepSize of "+l+" "+s);let w=o.ticks.source==="data"&&this.getDataTimestamps();for(b=f,v=0;b+x)}getLabelForValue(e){let i=this._adapter,r=this.options.time;return r.tooltipFormat?i.format(e,r.tooltipFormat):i.format(e,r.displayFormats.datetime)}format(e,i){let o=this.options.time.displayFormats,a=this._unit,s=i||o[a];return this._adapter.format(e,s)}_tickFormatFunction(e,i,r,o){let a=this.options,s=a.ticks.callback;if(s)return yi(s,[e,i,r],this);let l=a.time.displayFormats,c=this._unit,d=this._majorUnit,m=c&&l[c],f=d&&l[d],b=r[i],v=d&&f&&b&&b.major;return this._adapter.format(e,o||(v?f:m))}generateTickLabels(e){let i,r,o;for(i=0,r=e.length;i0?l:1}getDataTimestamps(){let e=this._cache.data||[],i,r;if(e.length)return e;let o=this.getMatchingVisibleMetas();if(this._normalized&&o.length)return this._cache.data=o[0].controller.getAllParsedValues(this);for(i=0,r=o.length;i=t[i].pos&&n<=t[r].pos&&({lo:i,hi:r}=ks(t,"pos",n)),{pos:o,time:s}=t[i],{pos:a,time:l}=t[r]):(n>=t[i].time&&n<=t[r].time&&({lo:i,hi:r}=ks(t,"time",n)),{time:o,pos:s}=t[i],{time:a,pos:l}=t[r]);let c=a-o;return c?s+(l-s)*(n-o)/c:s}var eI=class extends JT{static id="timeseries";static defaults=JT.defaults;constructor(n){super(n),this._table=[],this._minPos=void 0,this._tableRange=void 0}initOffsets(){let n=this._getTimestampsForTable(),e=this._table=this.buildLookupTable(n);this._minPos=iC(e,this.min),this._tableRange=iC(e,this.max)-this._minPos,super.initOffsets(n)}buildLookupTable(n){let{min:e,max:i}=this,r=[],o=[],a,s,l,c,d;for(a=0,s=n.length;a=e&&c<=i&&r.push(c);if(r.length<2)return[{time:e,pos:0},{time:i,pos:1}];for(a=0,s=r.length;ar-o)}_getTimestampsForTable(){let n=this._cache.all||[];if(n.length)return n;let e=this.getDataTimestamps(),i=this.getLabelTimestamps();return e.length&&i.length?n=this.normalize(e.concat(i)):n=e.length?e:i,n=this._cache.all=n,n}getDecimalForValue(n){return(iC(this._table,n)-this._minPos)/this._tableRange}getValueForPixel(n){let e=this._offsets,i=this.getDecimalForPixel(n)/e.factor-e.end;return iC(this._table,i*this._tableRange+this._minPos,!0)}},Hse=Object.freeze({__proto__:null,CategoryScale:xse,LinearScale:QT,LogarithmicScale:KT,RadialLinearScale:XT,TimeScale:JT,TimeSeriesScale:eI}),bH=[Kre,Cae,_se,Hse];var zse=typeof global=="object"&&global&&global.Object===Object&&global,fC=zse;var Use=typeof self=="object"&&self&&self.Object===Object&&self,$se=fC||Use||Function("return this")(),oa=$se;var Wse=oa.Symbol,Wh=Wse;var vH=Object.prototype,Gse=vH.hasOwnProperty,qse=vH.toString,e_=Wh?Wh.toStringTag:void 0;function Yse(t){var n=Gse.call(t,e_),e=t[e_];try{t[e_]=void 0;var i=!0}catch{}var r=qse.call(t);return i&&(n?t[e_]=e:delete t[e_]),r}var yH=Yse;var Qse=Object.prototype,Kse=Qse.toString;function Zse(t){return Kse.call(t)}var xH=Zse;var Xse="[object Null]",Jse="[object Undefined]",CH=Wh?Wh.toStringTag:void 0;function ele(t){return t==null?t===void 0?Jse:Xse:CH&&CH in Object(t)?yH(t):xH(t)}var Rc=ele;function tle(t){return t!=null&&typeof t=="object"}var Rs=tle;var ile=Array.isArray,t_=ile;function nle(t){var n=typeof t;return t!=null&&(n=="object"||n=="function")}var ao=nle;function rle(t){return t}var gC=rle;var ole="[object AsyncFunction]",ale="[object Function]",sle="[object GeneratorFunction]",lle="[object Proxy]";function cle(t){if(!ao(t))return!1;var n=Rc(t);return n==ale||n==sle||n==ole||n==lle}var Gh=cle;var dle=oa["__core-js_shared__"],_C=dle;var wH=(function(){var t=/[^.]+$/.exec(_C&&_C.keys&&_C.keys.IE_PROTO||"");return t?"Symbol(src)_1."+t:""})();function ule(t){return!!wH&&wH in t}var DH=ule;var mle=Function.prototype,hle=mle.toString;function ple(t){if(t!=null){try{return hle.call(t)}catch{}try{return t+""}catch{}}return""}var EH=ple;var fle=/[\\^$.*+?()[\]{}|]/g,gle=/^\[object .+?Constructor\]$/,_le=Function.prototype,ble=Object.prototype,vle=_le.toString,yle=ble.hasOwnProperty,xle=RegExp("^"+vle.call(yle).replace(fle,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function Cle(t){if(!ao(t)||DH(t))return!1;var n=Gh(t)?xle:gle;return n.test(EH(t))}var MH=Cle;function wle(t,n){return t?.[n]}var kH=wle;function Dle(t,n){var e=kH(t,n);return MH(e)?e:void 0}var qh=Dle;var SH=Object.create,Ele=(function(){function t(){}return function(n){if(!ao(n))return{};if(SH)return SH(n);t.prototype=n;var e=new t;return t.prototype=void 0,e}})(),TH=Ele;function Mle(t,n,e){switch(e.length){case 0:return t.call(n);case 1:return t.call(n,e[0]);case 2:return t.call(n,e[0],e[1]);case 3:return t.call(n,e[0],e[1],e[2])}return t.apply(n,e)}var IH=Mle;function kle(t,n){var e=-1,i=t.length;for(n||(n=Array(i));++e0){if(++n>=Sle)return arguments[0]}else n=0;return t.apply(void 0,arguments)}}var OH=Ale;function Ole(t){return function(){return t}}var RH=Ole;var Rle=(function(){try{var t=qh(Object,"defineProperty");return t({},"",{}),t}catch{}})(),Yh=Rle;var Ple=Yh?function(t,n){return Yh(t,"toString",{configurable:!0,enumerable:!1,value:RH(n),writable:!0})}:gC,PH=Ple;var Fle=OH(PH),FH=Fle;var Nle=9007199254740991,Lle=/^(?:0|[1-9]\d*)$/;function Vle(t,n){var e=typeof t;return n=n??Nle,!!n&&(e=="number"||e!="symbol"&&Lle.test(t))&&t>-1&&t%1==0&&t-1&&t%1==0&&t<=qle}var vC=Yle;function Qle(t){return t!=null&&vC(t.length)&&!Gh(t)}var Kh=Qle;function Kle(t,n,e){if(!ao(e))return!1;var i=typeof n;return(i=="number"?Kh(e)&&bC(n,e.length):i=="string"&&n in e)?Pc(e[n],t):!1}var HH=Kle;function Zle(t){return jH(function(n,e){var i=-1,r=e.length,o=r>1?e[r-1]:void 0,a=r>2?e[2]:void 0;for(o=t.length>3&&typeof o=="function"?(r--,o):void 0,a&&HH(e[0],e[1],a)&&(o=r<3?void 0:o,r=1),n=Object(n);++i-1}var u5=mde;function hde(t,n){var e=this.__data__,i=Fc(e,t);return i<0?(++this.size,e.push([t,n])):e[i][1]=n,this}var m5=hde;function Xh(t){var n=-1,e=t==null?0:t.length;for(this.clear();++n{let n=class n{constructor(){this.colorschemesOptions=new tt(void 0)}setColorschemesOptions(i){this.pColorschemesOptions=i,this.colorschemesOptions.next(i)}getColorschemesOptions(){return this.pColorschemesOptions}};n.\u0275fac=function(r){return new(r||n)},n.\u0275prov=O({token:n,factory:n.\u0275fac,providedIn:"root"});let t=n;return t})(),G5=(()=>{let n=class n{constructor(i,r,o,a){this.zone=r,this.themeService=o,this.type="bar",this.plugins=[],this.chartClick=new U,this.chartHover=new U,this.subs=[],this.themeOverrides={},a?.registerables&&uC.register(...a.registerables),a?.defaults&&xi.set(a.defaults),this.ctx=i.nativeElement.getContext("2d"),this.subs.push(this.themeService.colorschemesOptions.pipe(Sn()).subscribe(s=>this.themeChanged(s)))}ngOnChanges(i){let r=["type"],o=Object.getOwnPropertyNames(i);if(o.some(a=>r.includes(a))||o.every(a=>i[a].isFirstChange()))this.render();else{let a=this.getChartConfiguration();this.chart&&(Object.assign(this.chart.config.data,a.data),this.chart.config.plugins&&Object.assign(this.chart.config.plugins,a.plugins),this.chart.config.options&&Object.assign(this.chart.config.options,a.options)),this.update()}}ngOnDestroy(){this.chart&&(this.chart.destroy(),this.chart=void 0),this.subs.forEach(i=>i.unsubscribe())}render(){return this.chart&&this.chart.destroy(),this.zone.runOutsideAngular(()=>this.chart=new uC(this.ctx,this.getChartConfiguration()))}update(i){this.chart&&this.zone.runOutsideAngular(()=>this.chart?.update(i))}hideDataset(i,r){this.chart&&(this.chart.getDatasetMeta(i).hidden=r,this.update())}isDatasetHidden(i){return this.chart?.getDatasetMeta(i)?.hidden}toBase64Image(){return this.chart?.toBase64Image()}themeChanged(i){this.themeOverrides=i,this.chart&&(this.chart.config.options&&Object.assign(this.chart.config.options,this.getChartOptions()),this.update())}getChartOptions(){return MC({onHover:(i,r)=>{!this.chartHover.observed&&!this.chartHover.observers?.length||this.zone.run(()=>this.chartHover.emit({event:i,active:r}))},onClick:(i,r)=>{!this.chartClick.observed&&!this.chartClick.observers?.length||this.zone.run(()=>this.chartClick.emit({event:i,active:r}))}},this.themeOverrides,this.options,{plugins:{legend:{display:this.legend}}})}getChartConfiguration(){return{type:this.type,data:this.getChartData(),options:this.getChartOptions(),plugins:this.plugins}}getChartData(){return this.data?this.data:{labels:this.labels||[],datasets:this.datasets||[]}}};n.\u0275fac=function(r){return new(r||n)(_e(q),_e(ae),_e(Qde),_e(U5,8))},n.\u0275dir=F({type:n,selectors:[["canvas","baseChart",""]],inputs:{type:"type",legend:"legend",data:"data",options:"options",plugins:"plugins",labels:"labels",datasets:"datasets"},outputs:{chartClick:"chartClick",chartHover:"chartHover"},exportAs:["base-chart"],features:[Ae]});let t=n;return t})();var ko={production:!0,baseUrl:"",useHash:!1,apiUrl:"https://app-talent-api-dev.azurewebsites.net/api/v1",identityServerUrl:"https://app-talent-ids-dev.azurewebsites.net",clientId:"TalentManagement",scope:"openid profile email roles app.api.talentmanagement.read app.api.talentmanagement.write",allowAnonymousAccess:!1};var sI=document.baseURI.endsWith("/")?document.baseURI.slice(0,-1):document.baseURI,q5={issuer:ko.identityServerUrl,redirectUri:sI+"/callback",postLogoutRedirectUri:sI,clientId:ko.clientId,scope:ko.scope,responseType:"code",showDebugInformation:!ko.production,useSilentRefresh:!0,silentRefreshRedirectUri:sI+"/silent-refresh.html",silentRefreshTimeout:5e3,timeoutFactor:.75,sessionChecksEnabled:!0,clearHashAfterLogin:!0,strictDiscoveryDocumentValidation:!1,skipIssuerCheck:!ko.production,requireHttps:ko.production,requestAccessToken:!0,dummyClientSecret:void 0,customQueryParams:{}};var Tt=(()=>{let n=class n{constructor(){this.oauthService=u(Wm),this.router=u(Re),this.isAuthenticatedSubject=new tt(!1),this.isAuthenticated$=this.isAuthenticatedSubject.asObservable(),this.userInfoSubject=new tt(null),this.userInfo$=this.userInfoSubject.asObservable(),this.permissionsChangeSubject=new z,this.permissionsChange$=this.permissionsChangeSubject.asObservable(),this.configureOAuth()}configureOAuth(){this.oauthService.configure(q5),this.oauthService.events.pipe(ce(i=>i.type==="token_received")).subscribe(()=>{this.handleSuccessfulLogin()}),this.oauthService.events.pipe(ce(i=>i.type==="token_error"||i.type==="token_refresh_error")).subscribe(()=>{console.error("Token error occurred")}),this.oauthService.setupAutomaticSilentRefresh()}initAuth(){return fn(this,null,function*(){try{return yield this.oauthService.loadDiscoveryDocument(),yield this.oauthService.tryLogin(),this.oauthService.hasValidAccessToken()?(yield this.handleSuccessfulLogin(),!0):!1}catch(i){return console.error("Error during authentication initialization:",i),!1}})}login(i){i?this.oauthService.initCodeFlow(i):this.oauthService.initCodeFlow()}logout(){this.oauthService.logOut(),this.isAuthenticatedSubject.next(!1),this.userInfoSubject.next(null),this.permissionsChangeSubject.next()}handleSuccessfulLogin(){return fn(this,null,function*(){try{let i=this.oauthService.getIdentityClaims();this.userInfoSubject.next(i),this.isAuthenticatedSubject.next(!0),this.permissionsChangeSubject.next()}catch(i){console.error("Error loading user info:",i)}})}isAuthenticated(){return this.oauthService.hasValidAccessToken()}getAccessToken(){return this.oauthService.getAccessToken()}getUserInfo(){return this.userInfoSubject.value}getUserRoles(){let i=this.oauthService.getIdentityClaims();if(!i)return[];let r=i.role;return Array.isArray(r)?r:typeof r=="string"?[r]:[]}hasRole(i){return this.getUserRoles().includes(i)}isEmployee(){return this.hasRole("Employee")}isManager(){return this.hasRole("Manager")}isHRAdmin(){return this.hasRole("HRAdmin")}hasAnyRole(i){let r=this.getUserRoles();return i.some(o=>r.includes(o))}getUserDisplayName(){let i=this.getUserInfo();return i?.name||i?.email||"User"}};n.\u0275fac=function(r){return new(r||n)},n.\u0275prov=O({token:n,factory:n.\u0275fac,providedIn:"root"});let t=n;return t})();var lI=(t,n)=>{let e=u(Tt);return ko.allowAnonymousAccess||e.isAuthenticated()?!0:(e.login(n?.url),!1)};var a_=t=>{let n=u(Tt),e=u(Re);return n.isAuthenticated()?n.isManager()||n.isHRAdmin()?!0:(e.navigate(["/403"]),!1):(n.login(),!1)},s_=t=>{let n=u(Tt),e=u(Re);return n.isAuthenticated()?n.isHRAdmin()?!0:(e.navigate(["/403"]),!1):(n.login(),!1)};var so=(()=>{let n=class n{constructor(){this.menu$=new tt([])}getAll(){return this.menu$.asObservable()}change(){return this.menu$.pipe(Nl())}set(i){return this.menu$.next(i),this.menu$.asObservable()}add(i){let r=this.menu$.value;r.push(i),this.menu$.next(r)}reset(){this.menu$.next([])}buildRoute(i){let r="";return i.forEach(o=>{o&&o.trim()&&(r+="/"+o.replace(/^\/+|\/+$/g,""))}),r}getItemName(i){return this.getLevel(i)[i.length-1]}isLeafItem(i){let r=i.route===void 0,o=i.children===void 0,a=!o&&i.children?.length===0;return r||o||a}deepClone(i){return JSON.parse(JSON.stringify(i))}isJsonObjEqual(i,r){return JSON.stringify(i)===JSON.stringify(r)}isRouteEqual(i,r){return r=this.deepClone(r),r=r.filter(o=>o!==""),this.isJsonObjEqual(i,r)}getLevel(i){let r=[];return this.menu$.value.forEach(o=>{let a=[{item:o,parentNamePathList:[],realRouteArr:[]}];for(;a.length>0;){let s=[];for(let l of a){let c=l.item,d=this.deepClone(l.parentNamePathList).concat(c.name),m=this.deepClone(l.realRouteArr).concat(c.route);if(this.isRouteEqual(i,m)){r=d;break}if(!this.isLeafItem(c)){let f=c.children?.map(b=>({item:b,parentNamePathList:d,realRouteArr:m}));s=s.concat(f)}}a=s}}),r}addNamespace(i,r){i.forEach(o=>{o.name=`${r}.${o.name}`,o.children&&o.children.length>0&&this.addNamespace(o.children,o.name)})}};n.\u0275fac=function(r){return new(r||n)},n.\u0275prov=O({token:n,factory:n.\u0275fac,providedIn:"root"});let t=n;return t})();var kC;function Kde(){if(kC===void 0&&(kC=null,typeof window<"u")){let t=window;t.trustedTypes!==void 0&&(kC=t.trustedTypes.createPolicy("angular#components",{createHTML:n=>n}))}return kC}function l_(t){return Kde()?.createHTML(t)||t}function Y5(t){return Error(`Unable to find icon with the name "${t}"`)}function Zde(){return Error("Could not find HttpClient for use with Angular Material icons. Please add provideHttpClient() to your providers.")}function Q5(t){return Error(`The URL provided to MatIconRegistry was not trusted as a resource URL via Angular's DomSanitizer. Attempted URL was "${t}".`)}function K5(t){return Error(`The literal provided to MatIconRegistry was not trusted as safe HTML by Angular's DomSanitizer. Attempted literal was "${t}".`)}var Cl=class{url;svgText;options;svgElement;constructor(n,e,i){this.url=n,this.svgText=e,this.options=i}},X5=(()=>{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,i,r,o){this._httpClient=e,this._sanitizer=i,this._errorHandler=o,this._document=r}addSvgIcon(e,i,r){return this.addSvgIconInNamespace("",e,i,r)}addSvgIconLiteral(e,i,r){return this.addSvgIconLiteralInNamespace("",e,i,r)}addSvgIconInNamespace(e,i,r,o){return this._addSvgIconConfig(e,i,new Cl(r,null,o))}addSvgIconResolver(e){return this._resolvers.push(e),this}addSvgIconLiteralInNamespace(e,i,r,o){let a=this._sanitizer.sanitize(An.HTML,r);if(!a)throw K5(r);let s=l_(a);return this._addSvgIconConfig(e,i,new Cl("",s,o))}addSvgIconSet(e,i){return this.addSvgIconSetInNamespace("",e,i)}addSvgIconSetLiteral(e,i){return this.addSvgIconSetLiteralInNamespace("",e,i)}addSvgIconSetInNamespace(e,i,r){return this._addSvgIconSetConfig(e,new Cl(i,null,r))}addSvgIconSetLiteralInNamespace(e,i,r){let o=this._sanitizer.sanitize(An.HTML,i);if(!o)throw K5(i);let a=l_(o);return this._addSvgIconSetConfig(e,new Cl("",a,r))}registerFontClassAlias(e,i=e){return this._fontCssClassesByAlias.set(e,i),this}classNameForFontAlias(e){return this._fontCssClassesByAlias.get(e)||e}setDefaultFontSetClass(...e){return this._defaultFontSetClass=e,this}getDefaultFontSetClass(){return this._defaultFontSetClass}getSvgIconFromUrl(e){let i=this._sanitizer.sanitize(An.RESOURCE_URL,e);if(!i)throw Q5(e);let r=this._cachedIconsByUrl.get(i);return r?Q(SC(r)):this._loadSvgIconFromConfig(new Cl(e,null)).pipe(Be(o=>this._cachedIconsByUrl.set(i,o)),se(o=>SC(o)))}getNamedSvgIcon(e,i=""){let r=Z5(i,e),o=this._svgIconConfigs.get(r);if(o)return this._getSvgFromConfig(o);if(o=this._getIconConfigFromResolvers(i,e),o)return this._svgIconConfigs.set(r,o),this._getSvgFromConfig(o);let a=this._iconSetConfigs.get(i);return a?this._getSvgFromIconSetConfigs(e,a):Wn(Y5(r))}ngOnDestroy(){this._resolvers=[],this._svgIconConfigs.clear(),this._iconSetConfigs.clear(),this._cachedIconsByUrl.clear()}_getSvgFromConfig(e){return e.svgText?Q(SC(this._svgElementFromConfig(e))):this._loadSvgIconFromConfig(e).pipe(se(i=>SC(i)))}_getSvgFromIconSetConfigs(e,i){let r=this._extractIconWithNameFromAnySet(e,i);if(r)return Q(r);let o=i.filter(a=>!a.svgText).map(a=>this._loadSvgIconSetFromConfig(a).pipe(fi(s=>{let c=`Loading icon set URL: ${this._sanitizer.sanitize(An.RESOURCE_URL,a.url)} failed: ${s.message}`;return this._errorHandler.handleError(new Error(c)),Q(null)})));return Ga(o).pipe(se(()=>{let a=this._extractIconWithNameFromAnySet(e,i);if(!a)throw Y5(e);return a}))}_extractIconWithNameFromAnySet(e,i){for(let r=i.length-1;r>=0;r--){let o=i[r];if(o.svgText&&o.svgText.toString().indexOf(e)>-1){let a=this._svgElementFromConfig(o),s=this._extractSvgIconFromSet(a,e,o.options);if(s)return s}}return null}_loadSvgIconFromConfig(e){return this._fetchIcon(e).pipe(Be(i=>e.svgText=i),se(()=>this._svgElementFromConfig(e)))}_loadSvgIconSetFromConfig(e){return e.svgText?Q(null):this._fetchIcon(e).pipe(Be(i=>e.svgText=i))}_extractSvgIconFromSet(e,i,r){let o=e.querySelector(`[id="${i}"]`);if(!o)return null;let a=o.cloneNode(!0);if(a.removeAttribute("id"),a.nodeName.toLowerCase()==="svg")return this._setSvgAttributes(a,r);if(a.nodeName.toLowerCase()==="symbol")return this._setSvgAttributes(this._toSvgElement(a),r);let s=this._svgElementFromString(l_(""));return s.appendChild(a),this._setSvgAttributes(s,r)}_svgElementFromString(e){let i=this._document.createElement("DIV");i.innerHTML=e;let r=i.querySelector("svg");if(!r)throw Error(" tag not found");return r}_toSvgElement(e){let i=this._svgElementFromString(l_("")),r=e.attributes;for(let o=0;ol_(c)),Hr(()=>this._inProgressUrlFetches.delete(a)),Nl());return this._inProgressUrlFetches.set(a,l),l}_addSvgIconConfig(e,i,r){return this._svgIconConfigs.set(Z5(e,i),r),this}_addSvgIconSetConfig(e,i){let r=this._iconSetConfigs.get(e);return r?r.push(i):this._iconSetConfigs.set(e,[i]),this}_svgElementFromConfig(e){if(!e.svgElement){let i=this._svgElementFromString(e.svgText);this._setSvgAttributes(i,e.options),e.svgElement=i}return e.svgElement}_getIconConfigFromResolvers(e,i){for(let r=0;rn?n.pathname+n.search:""}}var J5=["clip-path","color-profile","src","cursor","fill","filter","marker","marker-start","marker-mid","marker-end","mask","stroke"],nue=J5.map(t=>`[${t}]`).join(", "),rue=/^url\(['"]?#(.*?)['"]?\)$/,mt=(()=>{class t{_elementRef=u(q);_iconRegistry=u(X5);_location=u(tue);_errorHandler=u(Tn);_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 i=this._cleanupFontValue(e);i!==this._fontSet&&(this._fontSet=i,this._updateFontIconClasses())}_fontSet;get fontIcon(){return this._fontIcon}set fontIcon(e){let i=this._cleanupFontValue(e);i!==this._fontIcon&&(this._fontIcon=i,this._updateFontIconClasses())}_fontIcon;_previousFontSetClass=[];_previousFontIconClass;_svgName;_svgNamespace;_previousPath;_elementsWithExternalReferences;_currentIconFetch=ke.EMPTY;constructor(){let e=u(new Ii("aria-hidden"),{optional:!0}),i=u(eue,{optional:!0});i&&(i.color&&(this.color=this._defaultColor=i.color),i.fontSet&&(this.fontSet=i.fontSet)),e||this._elementRef.nativeElement.setAttribute("aria-hidden","true")}_splitIconName(e){if(!e)return["",""];let i=e.split(":");switch(i.length){case 1:return["",i[0]];case 2:return i;default:throw Error(`Invalid icon name: "${e}"`)}}ngOnInit(){this._updateFontIconClasses()}ngAfterViewChecked(){let e=this._elementsWithExternalReferences;if(e&&e.size){let i=this._location.getPathname();i!==this._previousPath&&(this._previousPath=i,this._prependPathToReferences(i))}}ngOnDestroy(){this._currentIconFetch.unsubscribe(),this._elementsWithExternalReferences&&this._elementsWithExternalReferences.clear()}_usingFontIcon(){return!this.svgIcon}_setSvgElement(e){this._clearSvgElement();let i=this._location.getPathname();this._previousPath=i,this._cacheChildrenWithExternalReferences(e),this._prependPathToReferences(i),this._elementRef.nativeElement.appendChild(e)}_clearSvgElement(){let e=this._elementRef.nativeElement,i=e.childNodes.length;for(this._elementsWithExternalReferences&&this._elementsWithExternalReferences.clear();i--;){let r=e.childNodes[i];(r.nodeType!==1||r.nodeName.toLowerCase()==="svg")&&r.remove()}}_updateFontIconClasses(){if(!this._usingFontIcon())return;let e=this._elementRef.nativeElement,i=(this.fontSet?this._iconRegistry.classNameForFontAlias(this.fontSet).split(/ +/):this._iconRegistry.getDefaultFontSetClass()).filter(r=>r.length>0);this._previousFontSetClass.forEach(r=>e.classList.remove(r)),i.forEach(r=>e.classList.add(r)),this._previousFontSetClass=i,this.fontIcon!==this._previousFontIconClass&&!i.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 i=this._elementsWithExternalReferences;i&&i.forEach((r,o)=>{r.forEach(a=>{o.setAttribute(a.name,`url('${e}#${a.value}')`)})})}_cacheChildrenWithExternalReferences(e){let i=e.querySelectorAll(nue),r=this._elementsWithExternalReferences=this._elementsWithExternalReferences||new Map;for(let o=0;o{let s=i[o],l=s.getAttribute(a),c=l?l.match(rue):null;if(c){let d=r.get(s);d||(d=[],r.set(s,d)),d.push({name:a,value:c[1]})}})}_updateSvgIcon(e){if(this._svgNamespace=null,this._svgName=null,this._currentIconFetch.unsubscribe(),e){let[i,r]=this._splitIconName(e);i&&(this._svgNamespace=i),r&&(this._svgName=r),this._currentIconFetch=this._iconRegistry.getNamedSvgIcon(r,i).pipe(lt(1)).subscribe(o=>this._setSvgElement(o),o=>{let a=`Error retrieving icon ${i}:${r}! ${o.message}`;this._errorHandler.handleError(new Error(a))})}}static \u0275fac=function(i){return new(i||t)};static \u0275cmp=E({type:t,selectors:[["mat-icon"]],hostAttrs:["role","img",1,"mat-icon","notranslate"],hostVars:10,hostBindings:function(i,r){i&2&&(X("data-mat-icon-type",r._usingFontIcon()?"font":"svg")("data-mat-icon-name",r._svgName||r.fontIcon)("data-mat-icon-namespace",r._svgNamespace||r.fontSet)("fontIcon",r._usingFontIcon()?r.fontIcon:null),it(r.color?"mat-"+r.color:""),G("mat-icon-inline",r.inline)("mat-icon-no-color",r.color!=="primary"&&r.color!=="accent"&&r.color!=="warn"))},inputs:{color:"color",inline:[2,"inline","inline",V],svgIcon:"svgIcon",fontSet:"fontSet",fontIcon:"fontIcon"},exportAs:["matIcon"],ngContentSelectors:Jde,decls:1,vars:0,template:function(i,r){i&1&&(Me(),oe(0))},styles:[`mat-icon,mat-icon.mat-primary,mat-icon.mat-accent,mat-icon.mat-warn{color:var(--mat-icon-color, inherit)}.mat-icon{-webkit-user-select:none;user-select:none;background-repeat:no-repeat;display:inline-block;fill:currentColor;height:24px;width:24px;overflow:hidden}.mat-icon.mat-icon-inline{font-size:inherit;height:inherit;line-height:inherit;width:inherit}.mat-icon.mat-ligature-font[fontIcon]::before{content:attr(fontIcon)}[dir=rtl] .mat-icon-rtl-mirror{transform:scale(-1, 1)}.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-prefix .mat-icon,.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-suffix .mat-icon{display:block}.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-prefix .mat-icon-button .mat-icon,.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})(),ot=(()=>{class t{static \u0275fac=function(i){return new(i||t)};static \u0275mod=ee({type:t});static \u0275inj=J({imports:[we,we]})}return t})();function oue(t,n){if(t&1&&(h(0,"a",3),_(1),p()),t&2){let e=C().$implicit;g(),H(e)}}function aue(t,n){if(t&1&&(h(0,"mat-icon",4),_(1,"chevron_right"),p(),h(2,"span"),_(3),me(4,"translate"),p()),t&2){let e=C().$implicit;g(3),H(Oe(4,1,e))}}function sue(t,n){if(t&1&&(h(0,"li",2),N(1,oue,2,1,"a",3),N(2,aue,5,3),p()),t&2){let e=n.$index;g(),L(e===0?1:-1),g(),L(e!==0?2:-1)}}var ez=(()=>{let n=class n{constructor(){this.router=u(Re),this.menu=u(so),this.nav=ne([]),this.navItems=[]}ngOnInit(){this.router.events.pipe(ce(i=>i instanceof vi),He(this.router)).subscribe(()=>{this.genBreadcrumb()})}genBreadcrumb(){let i=this.router.url.slice(1).split("/");this.nav().length>0?this.navItems=[...this.nav()]:(this.navItems=this.menu.getLevel(i),this.navItems.unshift("home"))}};n.\u0275fac=function(r){return new(r||n)},n.\u0275cmp=E({type:n,selectors:[["breadcrumb"]],inputs:{nav:[1,"nav"]},decls:4,vars:0,consts:[["aria-label","breadcrumb"],[1,"matero-breadcrumb"],[1,"matero-breadcrumb-item"],["href","#",1,"link"],[1,"chevron"]],template:function(r,o){r&1&&(h(0,"nav",0)(1,"ol",1),xt(2,sue,3,2,"li",2,Hi),p()()),r&2&&(g(2),Ct(o.navItems))},dependencies:[ot,mt,wr,Cr],styles:[`.matero-breadcrumb{display:flex;flex-wrap:wrap;padding:0;margin-bottom:1rem;font-size:.875rem;list-style:none}.matero-breadcrumb-item{line-height:1.125rem;text-transform:capitalize}.matero-breadcrumb-item>*{vertical-align:middle}.matero-breadcrumb-item>a.link{color:currentColor;text-decoration:none}.matero-breadcrumb-item>a.link:hover{color:currentColor;text-decoration:underline}.matero-breadcrumb-item>.chevron{width:1.125rem;height:1.125rem;font-size:1.125rem;-webkit-user-select:none;user-select:none} +`],encapsulation:2});let t=n;return t})();function lue(t,n){}var Vc=class{viewContainerRef;injector;id;role="dialog";panelClass="";hasBackdrop=!0;backdropClass="";disableClose=!1;closePredicate;width="";height="";minWidth;minHeight;maxWidth;maxHeight;positionStrategy;data=null;direction;ariaDescribedBy=null;ariaLabelledBy=null;ariaLabel=null;ariaModal=!1;autoFocus="first-tabbable";restoreFocus=!0;scrollStrategy;closeOnNavigation=!0;closeOnDestroy=!0;closeOnOverlayDetachments=!0;disableAnimations=!1;providers;container;templateContext};var dI=(()=>{class t extends dc{_elementRef=u(q);_focusTrapFactory=u(Qm);_config;_interactivityChecker=u(ac);_ngZone=u(ae);_focusMonitor=u(Yt);_renderer=u(je);_changeDetectorRef=u(ye);_injector=u(de);_platform=u(qe);_document=u(ge);_portalOutlet;_focusTrapped=new z;_focusTrap=null;_elementFocusedBeforeDialogWasOpened=null;_closeInteractionType=null;_ariaLabelledByQueue=[];_isDestroyed=!1;constructor(){super(),this._config=u(Vc,{optional:!0})||new Vc,this._config.ariaLabelledBy&&this._ariaLabelledByQueue.push(this._config.ariaLabelledBy)}_addAriaLabelledBy(e){this._ariaLabelledByQueue.push(e),this._changeDetectorRef.markForCheck()}_removeAriaLabelledBy(e){let i=this._ariaLabelledByQueue.indexOf(e);i>-1&&(this._ariaLabelledByQueue.splice(i,1),this._changeDetectorRef.markForCheck())}_contentAttached(){this._initializeFocusTrap(),this._captureInitialFocus()}_captureInitialFocus(){this._trapFocus()}ngOnDestroy(){this._focusTrapped.complete(),this._isDestroyed=!0,this._restoreFocus()}attachComponentPortal(e){this._portalOutlet.hasAttached();let i=this._portalOutlet.attachComponentPortal(e);return this._contentAttached(),i}attachTemplatePortal(e){this._portalOutlet.hasAttached();let i=this._portalOutlet.attachTemplatePortal(e);return this._contentAttached(),i}attachDomPortal=e=>{this._portalOutlet.hasAttached();let i=this._portalOutlet.attachDomPortal(e);return this._contentAttached(),i};_recaptureFocus(){this._containsFocus()||this._trapFocus()}_forceFocus(e,i){this._interactivityChecker.isFocusable(e)||(e.tabIndex=-1,this._ngZone.runOutsideAngular(()=>{let r=()=>{o(),a(),e.removeAttribute("tabindex")},o=this._renderer.listen(e,"blur",r),a=this._renderer.listen(e,"mousedown",r)})),e.focus(i)}_focusByCssSelector(e,i){let r=this._elementRef.nativeElement.querySelector(e);r&&this._forceFocus(r,i)}_trapFocus(e){this._isDestroyed||pt(()=>{let i=this._elementRef.nativeElement;switch(this._config.autoFocus){case!1:case"dialog":this._containsFocus()||i.focus(e);break;case!0:case"first-tabbable":this._focusTrap?.focusInitialElement(e)||this._focusDialogContainer(e);break;case"first-heading":this._focusByCssSelector('h1, h2, h3, h4, h5, h6, [role="heading"]',e);break;default:this._focusByCssSelector(this._config.autoFocus,e);break}this._focusTrapped.next()},{injector:this._injector})}_restoreFocus(){let e=this._config.restoreFocus,i=null;if(typeof e=="string"?i=this._document.querySelector(e):typeof e=="boolean"?i=e?this._elementFocusedBeforeDialogWasOpened:null:e&&(i=e),this._config.restoreFocus&&i&&typeof i.focus=="function"){let r=_o(),o=this._elementRef.nativeElement;(!r||r===this._document.body||r===o||o.contains(r))&&(this._focusMonitor?(this._focusMonitor.focusVia(i,this._closeInteractionType),this._closeInteractionType=null):i.focus())}this._focusTrap&&this._focusTrap.destroy()}_focusDialogContainer(e){this._elementRef.nativeElement.focus?.(e)}_containsFocus(){let e=this._elementRef.nativeElement,i=_o();return e===i||e.contains(i)}_initializeFocusTrap(){this._platform.isBrowser&&(this._focusTrap=this._focusTrapFactory.create(this._elementRef.nativeElement),this._document&&(this._elementFocusedBeforeDialogWasOpened=_o()))}static \u0275fac=function(i){return new(i||t)};static \u0275cmp=E({type:t,selectors:[["cdk-dialog-container"]],viewQuery:function(i,r){if(i&1&&ie(yr,7),i&2){let o;B(o=j())&&(r._portalOutlet=o.first)}},hostAttrs:["tabindex","-1",1,"cdk-dialog-container"],hostVars:6,hostBindings:function(i,r){i&2&&X("id",r._config.id||null)("role",r._config.role)("aria-modal",r._config.ariaModal)("aria-labelledby",r._config.ariaLabel?null:r._ariaLabelledByQueue[0])("aria-label",r._config.ariaLabel)("aria-describedby",r._config.ariaDescribedBy||null)},features:[le],decls:1,vars:0,consts:[["cdkPortalOutlet",""]],template:function(i,r){i&1&&R(0,lue,0,0,"ng-template",0)},dependencies:[yr],styles:[`.cdk-dialog-container{display:block;width:100%;height:100%;min-height:inherit;max-height:inherit} +`],encapsulation:2})}return t})(),c_=class{overlayRef;config;componentInstance;componentRef;containerInstance;disableClose;closed=new z;backdropClick;keydownEvents;outsidePointerEvents;id;_detachSubscription;constructor(n,e){this.overlayRef=n,this.config=e,this.disableClose=e.disableClose,this.backdropClick=n.backdropClick(),this.keydownEvents=n.keydownEvents(),this.outsidePointerEvents=n.outsidePointerEvents(),this.id=e.id,this.keydownEvents.subscribe(i=>{i.keyCode===27&&!this.disableClose&&!Ft(i)&&(i.preventDefault(),this.close(void 0,{focusOrigin:"keyboard"}))}),this.backdropClick.subscribe(()=>{!this.disableClose&&this._canClose()?this.close(void 0,{focusOrigin:"mouse"}):this.containerInstance._recaptureFocus?.()}),this._detachSubscription=n.detachments().subscribe(()=>{e.closeOnOverlayDetachments!==!1&&this.close()})}close(n,e){if(this._canClose(n)){let i=this.closed;this.containerInstance._closeInteractionType=e?.focusOrigin||"program",this._detachSubscription.unsubscribe(),this.overlayRef.dispose(),i.next(n),i.complete(),this.componentInstance=this.containerInstance=null}}updatePosition(){return this.overlayRef.updatePosition(),this}updateSize(n="",e=""){return this.overlayRef.updateSize({width:n,height:e}),this}addPanelClass(n){return this.overlayRef.addPanelClass(n),this}removePanelClass(n){return this.overlayRef.removePanelClass(n),this}_canClose(n){let e=this.config;return!!this.containerInstance&&(!e.closePredicate||e.closePredicate(n,e,this.componentInstance))}},cue=new T("DialogScrollStrategy",{providedIn:"root",factory:()=>{let t=u(de);return()=>uc(t)}}),due=new T("DialogData"),uue=new T("DefaultDialogConfig");function mue(t){let n=he(t),e=new U;return{valueSignal:n,get value(){return n()},change:e,ngOnDestroy(){e.complete()}}}var uI=(()=>{class t{_injector=u(de);_defaultOptions=u(uue,{optional:!0});_parentDialog=u(t,{optional:!0,skipSelf:!0});_overlayContainer=u(ex);_idGenerator=u(Ze);_openDialogsAtThisLevel=[];_afterAllClosedAtThisLevel=new z;_afterOpenedAtThisLevel=new z;_ariaHiddenElements=new Map;_scrollStrategy=u(cue);get openDialogs(){return this._parentDialog?this._parentDialog.openDialogs:this._openDialogsAtThisLevel}get afterOpened(){return this._parentDialog?this._parentDialog.afterOpened:this._afterOpenedAtThisLevel}afterAllClosed=kn(()=>this.openDialogs.length?this._getAfterAllClosed():this._getAfterAllClosed().pipe(He(void 0)));constructor(){}open(e,i){let r=this._defaultOptions||new Vc;i=M(M({},r),i),i.id=i.id||this._idGenerator.getId("cdk-dialog-"),i.id&&this.getDialogById(i.id);let o=this._getOverlayConfig(i),a=Nr(this._injector,o),s=new c_(a,i),l=this._attachContainer(a,s,i);if(s.containerInstance=l,!this.openDialogs.length){let c=this._overlayContainer.getContainerElement();l._focusTrapped?l._focusTrapped.pipe(lt(1)).subscribe(()=>{this._hideNonDialogContentFromAssistiveTechnology(c)}):this._hideNonDialogContentFromAssistiveTechnology(c)}return this._attachDialogContent(e,s,l,i),this.openDialogs.push(s),s.closed.subscribe(()=>this._removeOpenDialog(s,!0)),this.afterOpened.next(s),s}closeAll(){cI(this.openDialogs,e=>e.close())}getDialogById(e){return this.openDialogs.find(i=>i.id===e)}ngOnDestroy(){cI(this._openDialogsAtThisLevel,e=>{e.config.closeOnDestroy===!1&&this._removeOpenDialog(e,!1)}),cI(this._openDialogsAtThisLevel,e=>e.close()),this._afterAllClosedAtThisLevel.complete(),this._afterOpenedAtThisLevel.complete(),this._openDialogsAtThisLevel=[]}_getOverlayConfig(e){let i=new Fr({positionStrategy:e.positionStrategy||Ds().centerHorizontally().centerVertically(),scrollStrategy:e.scrollStrategy||this._scrollStrategy(),panelClass:e.panelClass,hasBackdrop:e.hasBackdrop,direction:e.direction,minWidth:e.minWidth,minHeight:e.minHeight,maxWidth:e.maxWidth,maxHeight:e.maxHeight,width:e.width,height:e.height,disposeOnNavigation:e.closeOnNavigation,disableAnimations:e.disableAnimations});return e.backdropClass&&(i.backdropClass=e.backdropClass),i}_attachContainer(e,i,r){let o=r.injector||r.viewContainerRef?.injector,a=[{provide:Vc,useValue:r},{provide:c_,useValue:i},{provide:gh,useValue:e}],s;r.container?typeof r.container=="function"?s=r.container:(s=r.container.type,a.push(...r.container.providers(r))):s=dI;let l=new Zr(s,r.viewContainerRef,de.create({parent:o||this._injector,providers:a}));return e.attach(l).instance}_attachDialogContent(e,i,r,o){if(e instanceof te){let a=this._createInjector(o,i,r,void 0),s={$implicit:o.data,dialogRef:i};o.templateContext&&(s=M(M({},s),typeof o.templateContext=="function"?o.templateContext():o.templateContext)),r.attachTemplatePortal(new Cn(e,null,s,a))}else{let a=this._createInjector(o,i,r,this._injector),s=r.attachComponentPortal(new Zr(e,o.viewContainerRef,a));i.componentRef=s,i.componentInstance=s.instance}}_createInjector(e,i,r,o){let a=e.injector||e.viewContainerRef?.injector,s=[{provide:due,useValue:e.data},{provide:c_,useValue:i}];return e.providers&&(typeof e.providers=="function"?s.push(...e.providers(i,e,r)):s.push(...e.providers)),e.direction&&(!a||!a.get(Vt,null,{optional:!0}))&&s.push({provide:Vt,useValue:mue(e.direction)}),de.create({parent:a||o,providers:s})}_removeOpenDialog(e,i){let r=this.openDialogs.indexOf(e);r>-1&&(this.openDialogs.splice(r,1),this.openDialogs.length||(this._ariaHiddenElements.forEach((o,a)=>{o?a.setAttribute("aria-hidden",o):a.removeAttribute("aria-hidden")}),this._ariaHiddenElements.clear(),i&&this._getAfterAllClosed().next()))}_hideNonDialogContentFromAssistiveTechnology(e){if(e.parentElement){let i=e.parentElement.children;for(let r=i.length-1;r>-1;r--){let o=i[r];o!==e&&o.nodeName!=="SCRIPT"&&o.nodeName!=="STYLE"&&!o.hasAttribute("aria-live")&&(this._ariaHiddenElements.set(o,o.getAttribute("aria-hidden")),o.setAttribute("aria-hidden","true"))}}}_getAfterAllClosed(){let e=this._parentDialog;return e?e._getAfterAllClosed():this._afterAllClosedAtThisLevel}static \u0275fac=function(i){return new(i||t)};static \u0275prov=O({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();function cI(t,n){let e=t.length;for(;e--;)n(t[e])}var tz=(()=>{class t{static \u0275fac=function(i){return new(i||t)};static \u0275mod=ee({type:t});static \u0275inj=J({providers:[uI],imports:[er,Co,ll,Co]})}return t})();function hue(t,n){}var u_=class{viewContainerRef;injector;id;role="dialog";panelClass="";hasBackdrop=!0;backdropClass="";disableClose=!1;closePredicate;width="";height="";minWidth;minHeight;maxWidth;maxHeight;position;data=null;direction;ariaDescribedBy=null;ariaLabelledBy=null;ariaLabel=null;ariaModal=!1;autoFocus="first-tabbable";restoreFocus=!0;delayFocusTrap=!0;scrollStrategy;closeOnNavigation=!0;enterAnimationDuration;exitAnimationDuration},mI="mdc-dialog--open",iz="mdc-dialog--opening",nz="mdc-dialog--closing",pue=150,fue=75,az=(()=>{class t extends dI{_animationStateChanged=new U;_animationsEnabled=!Ye();_actionSectionCount=0;_hostElement=this._elementRef.nativeElement;_enterAnimationDuration=this._animationsEnabled?oz(this._config.enterAnimationDuration)??pue:0;_exitAnimationDuration=this._animationsEnabled?oz(this._config.exitAnimationDuration)??fue:0;_animationTimer=null;_contentAttached(){super._contentAttached(),this._startOpenAnimation()}_startOpenAnimation(){this._animationStateChanged.emit({state:"opening",totalTime:this._enterAnimationDuration}),this._animationsEnabled?(this._hostElement.style.setProperty(rz,`${this._enterAnimationDuration}ms`),this._requestAnimationFrame(()=>this._hostElement.classList.add(iz,mI)),this._waitForAnimationToComplete(this._enterAnimationDuration,this._finishDialogOpen)):(this._hostElement.classList.add(mI),Promise.resolve().then(()=>this._finishDialogOpen()))}_startExitAnimation(){this._animationStateChanged.emit({state:"closing",totalTime:this._exitAnimationDuration}),this._hostElement.classList.remove(mI),this._animationsEnabled?(this._hostElement.style.setProperty(rz,`${this._exitAnimationDuration}ms`),this._requestAnimationFrame(()=>this._hostElement.classList.add(nz)),this._waitForAnimationToComplete(this._exitAnimationDuration,this._finishDialogClose)):Promise.resolve().then(()=>this._finishDialogClose())}_updateActionSectionCount(e){this._actionSectionCount+=e,this._changeDetectorRef.markForCheck()}_finishDialogOpen=()=>{this._clearAnimationClasses(),this._openAnimationDone(this._enterAnimationDuration)};_finishDialogClose=()=>{this._clearAnimationClasses(),this._animationStateChanged.emit({state:"closed",totalTime:this._exitAnimationDuration})};_clearAnimationClasses(){this._hostElement.classList.remove(iz,nz)}_waitForAnimationToComplete(e,i){this._animationTimer!==null&&clearTimeout(this._animationTimer),this._animationTimer=setTimeout(i,e)}_requestAnimationFrame(e){this._ngZone.runOutsideAngular(()=>{typeof requestAnimationFrame=="function"?requestAnimationFrame(e):e()})}_captureInitialFocus(){this._config.delayFocusTrap||this._trapFocus()}_openAnimationDone(e){this._config.delayFocusTrap&&this._trapFocus(),this._animationStateChanged.next({state:"opened",totalTime:e})}ngOnDestroy(){super.ngOnDestroy(),this._animationTimer!==null&&clearTimeout(this._animationTimer)}attachComponentPortal(e){let i=super.attachComponentPortal(e);return i.location.nativeElement.classList.add("mat-mdc-dialog-component-host"),i}static \u0275fac=(()=>{let e;return function(r){return(e||(e=fe(t)))(r||t)}})();static \u0275cmp=E({type:t,selectors:[["mat-dialog-container"]],hostAttrs:["tabindex","-1",1,"mat-mdc-dialog-container","mdc-dialog"],hostVars:10,hostBindings:function(i,r){i&2&&(si("id",r._config.id),X("aria-modal",r._config.ariaModal)("role",r._config.role)("aria-labelledby",r._config.ariaLabel?null:r._ariaLabelledByQueue[0])("aria-label",r._config.ariaLabel)("aria-describedby",r._config.ariaDescribedBy||null),G("_mat-animation-noopable",!r._animationsEnabled)("mat-mdc-dialog-container-with-actions",r._actionSectionCount>0))},features:[le],decls:3,vars:0,consts:[[1,"mat-mdc-dialog-inner-container","mdc-dialog__container"],[1,"mat-mdc-dialog-surface","mdc-dialog__surface"],["cdkPortalOutlet",""]],template:function(i,r){i&1&&(h(0,"div",0)(1,"div",1),R(2,hue,0,0,"ng-template",2),p()())},dependencies:[yr],styles:[`.mat-mdc-dialog-container{width:100%;height:100%;display:block;box-sizing:border-box;max-height:inherit;min-height:inherit;min-width:inherit;max-width:inherit;outline:0}.cdk-overlay-pane.mat-mdc-dialog-panel{max-width:var(--mat-dialog-container-max-width, 560px);min-width:var(--mat-dialog-container-min-width, 280px)}@media(max-width: 599px){.cdk-overlay-pane.mat-mdc-dialog-panel{max-width:var(--mat-dialog-container-small-max-width, calc(100vw - 32px))}}.mat-mdc-dialog-inner-container{display:flex;flex-direction:row;align-items:center;justify-content:space-around;box-sizing:border-box;height:100%;opacity:0;transition:opacity linear var(--mat-dialog-transition-duration, 0ms);max-height:inherit;min-height:inherit;min-width:inherit;max-width:inherit}.mdc-dialog--closing .mat-mdc-dialog-inner-container{transition:opacity 75ms linear;transform:none}.mdc-dialog--open .mat-mdc-dialog-inner-container{opacity:1}._mat-animation-noopable .mat-mdc-dialog-inner-container{transition:none}.mat-mdc-dialog-surface{display:flex;flex-direction:column;flex-grow:0;flex-shrink:0;box-sizing:border-box;width:100%;height:100%;position:relative;overflow-y:auto;outline:0;transform:scale(0.8);transition:transform var(--mat-dialog-transition-duration, 0ms) cubic-bezier(0, 0, 0.2, 1);max-height:inherit;min-height:inherit;min-width:inherit;max-width:inherit;box-shadow:var(--mat-dialog-container-elevation-shadow, none);border-radius:var(--mat-dialog-container-shape, var(--mat-sys-corner-extra-large, 4px));background-color:var(--mat-dialog-container-color, var(--mat-sys-surface, white))}[dir=rtl] .mat-mdc-dialog-surface{text-align:right}.mdc-dialog--open .mat-mdc-dialog-surface,.mdc-dialog--closing .mat-mdc-dialog-surface{transform:none}._mat-animation-noopable .mat-mdc-dialog-surface{transition:none}.mat-mdc-dialog-surface::before{position:absolute;box-sizing:border-box;width:100%;height:100%;top:0;left:0;border:2px solid rgba(0,0,0,0);border-radius:inherit;content:"";pointer-events:none}.mat-mdc-dialog-title{display:block;position:relative;flex-shrink:0;box-sizing:border-box;margin:0 0 1px;padding:var(--mat-dialog-headline-padding, 6px 24px 13px)}.mat-mdc-dialog-title::before{display:inline-block;width:0;height:40px;content:"";vertical-align:0}[dir=rtl] .mat-mdc-dialog-title{text-align:right}.mat-mdc-dialog-container .mat-mdc-dialog-title{color:var(--mat-dialog-subhead-color, var(--mat-sys-on-surface, rgba(0, 0, 0, 0.87)));font-family:var(--mat-dialog-subhead-font, var(--mat-sys-headline-small-font, inherit));line-height:var(--mat-dialog-subhead-line-height, var(--mat-sys-headline-small-line-height, 1.5rem));font-size:var(--mat-dialog-subhead-size, var(--mat-sys-headline-small-size, 1rem));font-weight:var(--mat-dialog-subhead-weight, var(--mat-sys-headline-small-weight, 400));letter-spacing:var(--mat-dialog-subhead-tracking, var(--mat-sys-headline-small-tracking, 0.03125em))}.mat-mdc-dialog-content{display:block;flex-grow:1;box-sizing:border-box;margin:0;overflow:auto;max-height:65vh}.mat-mdc-dialog-content>:first-child{margin-top:0}.mat-mdc-dialog-content>:last-child{margin-bottom:0}.mat-mdc-dialog-container .mat-mdc-dialog-content{color:var(--mat-dialog-supporting-text-color, var(--mat-sys-on-surface-variant, rgba(0, 0, 0, 0.6)));font-family:var(--mat-dialog-supporting-text-font, var(--mat-sys-body-medium-font, inherit));line-height:var(--mat-dialog-supporting-text-line-height, var(--mat-sys-body-medium-line-height, 1.5rem));font-size:var(--mat-dialog-supporting-text-size, var(--mat-sys-body-medium-size, 1rem));font-weight:var(--mat-dialog-supporting-text-weight, var(--mat-sys-body-medium-weight, 400));letter-spacing:var(--mat-dialog-supporting-text-tracking, var(--mat-sys-body-medium-tracking, 0.03125em))}.mat-mdc-dialog-container .mat-mdc-dialog-content{padding:var(--mat-dialog-content-padding, 20px 24px)}.mat-mdc-dialog-container-with-actions .mat-mdc-dialog-content{padding:var(--mat-dialog-with-actions-content-padding, 20px 24px 0)}.mat-mdc-dialog-container .mat-mdc-dialog-title+.mat-mdc-dialog-content{padding-top:0}.mat-mdc-dialog-actions{display:flex;position:relative;flex-shrink:0;flex-wrap:wrap;align-items:center;box-sizing:border-box;min-height:52px;margin:0;border-top:1px solid rgba(0,0,0,0);padding:var(--mat-dialog-actions-padding, 16px 24px);justify-content:var(--mat-dialog-actions-alignment, flex-end)}@media(forced-colors: active){.mat-mdc-dialog-actions{border-top-color:CanvasText}}.mat-mdc-dialog-actions.mat-mdc-dialog-actions-align-start,.mat-mdc-dialog-actions[align=start]{justify-content:start}.mat-mdc-dialog-actions.mat-mdc-dialog-actions-align-center,.mat-mdc-dialog-actions[align=center]{justify-content:center}.mat-mdc-dialog-actions.mat-mdc-dialog-actions-align-end,.mat-mdc-dialog-actions[align=end]{justify-content:flex-end}.mat-mdc-dialog-actions .mat-button-base+.mat-button-base,.mat-mdc-dialog-actions .mat-mdc-button-base+.mat-mdc-button-base{margin-left:8px}[dir=rtl] .mat-mdc-dialog-actions .mat-button-base+.mat-button-base,[dir=rtl] .mat-mdc-dialog-actions .mat-mdc-button-base+.mat-mdc-button-base{margin-left:0;margin-right:8px}.mat-mdc-dialog-component-host{display:contents} +`],encapsulation:2})}return t})(),rz="--mat-dialog-transition-duration";function oz(t){return t==null?null:typeof t=="number"?t:t.endsWith("ms")?Ln(t.substring(0,t.length-2)):t.endsWith("s")?Ln(t.substring(0,t.length-1))*1e3:t==="0"?0:null}var d_=(function(t){return t[t.OPEN=0]="OPEN",t[t.CLOSING=1]="CLOSING",t[t.CLOSED=2]="CLOSED",t})(d_||{}),Mu=class{_ref;_config;_containerInstance;componentInstance;componentRef;disableClose;id;_afterOpened=new z;_beforeClosed=new z;_result;_closeFallbackTimeout;_state=d_.OPEN;_closeInteractionType;constructor(n,e,i){this._ref=n,this._config=e,this._containerInstance=i,this.disableClose=e.disableClose,this.id=n.id,n.addPanelClass("mat-mdc-dialog-panel"),i._animationStateChanged.pipe(ce(r=>r.state==="opened"),lt(1)).subscribe(()=>{this._afterOpened.next(),this._afterOpened.complete()}),i._animationStateChanged.pipe(ce(r=>r.state==="closed"),lt(1)).subscribe(()=>{clearTimeout(this._closeFallbackTimeout),this._finishDialogClose()}),n.overlayRef.detachments().subscribe(()=>{this._beforeClosed.next(this._result),this._beforeClosed.complete(),this._finishDialogClose()}),Je(this.backdropClick(),this.keydownEvents().pipe(ce(r=>r.keyCode===27&&!this.disableClose&&!Ft(r)))).subscribe(r=>{this.disableClose||(r.preventDefault(),sz(this,r.type==="keydown"?"keyboard":"mouse"))})}close(n){let e=this._config.closePredicate;e&&!e(n,this._config,this.componentInstance)||(this._result=n,this._containerInstance._animationStateChanged.pipe(ce(i=>i.state==="closing"),lt(1)).subscribe(i=>{this._beforeClosed.next(n),this._beforeClosed.complete(),this._ref.overlayRef.detachBackdrop(),this._closeFallbackTimeout=setTimeout(()=>this._finishDialogClose(),i.totalTime+100)}),this._state=d_.CLOSING,this._containerInstance._startExitAnimation())}afterOpened(){return this._afterOpened}afterClosed(){return this._ref.closed}beforeClosed(){return this._beforeClosed}backdropClick(){return this._ref.backdropClick}keydownEvents(){return this._ref.keydownEvents}updatePosition(n){let e=this._ref.config.positionStrategy;return n&&(n.left||n.right)?n.left?e.left(n.left):e.right(n.right):e.centerHorizontally(),n&&(n.top||n.bottom)?n.top?e.top(n.top):e.bottom(n.bottom):e.centerVertically(),this._ref.updatePosition(),this}updateSize(n="",e=""){return this._ref.updateSize(n,e),this}addPanelClass(n){return this._ref.addPanelClass(n),this}removePanelClass(n){return this._ref.removePanelClass(n),this}getState(){return this._state}_finishDialogClose(){this._state=d_.CLOSED,this._ref.close(this._result,{focusOrigin:this._closeInteractionType}),this.componentInstance=null}};function sz(t,n,e){return t._closeInteractionType=n,t.close(e)}var TC=new T("MatMdcDialogData"),lz=new T("mat-mdc-dialog-default-options"),cz=new T("mat-mdc-dialog-scroll-strategy",{providedIn:"root",factory:()=>{let t=u(de);return()=>uc(t)}}),En=(()=>{class t{_defaultOptions=u(lz,{optional:!0});_scrollStrategy=u(cz);_parentDialog=u(t,{optional:!0,skipSelf:!0});_idGenerator=u(Ze);_injector=u(de);_dialog=u(uI);_animationsDisabled=Ye();_openDialogsAtThisLevel=[];_afterAllClosedAtThisLevel=new z;_afterOpenedAtThisLevel=new z;dialogConfigClass=u_;_dialogRefConstructor;_dialogContainerType;_dialogDataToken;get openDialogs(){return this._parentDialog?this._parentDialog.openDialogs:this._openDialogsAtThisLevel}get afterOpened(){return this._parentDialog?this._parentDialog.afterOpened:this._afterOpenedAtThisLevel}_getAfterAllClosed(){let e=this._parentDialog;return e?e._getAfterAllClosed():this._afterAllClosedAtThisLevel}afterAllClosed=kn(()=>this.openDialogs.length?this._getAfterAllClosed():this._getAfterAllClosed().pipe(He(void 0)));constructor(){this._dialogRefConstructor=Mu,this._dialogContainerType=az,this._dialogDataToken=TC}open(e,i){let r;i=M(M({},this._defaultOptions||new u_),i),i.id=i.id||this._idGenerator.getId("mat-mdc-dialog-"),i.scrollStrategy=i.scrollStrategy||this._scrollStrategy();let o=this._dialog.open(e,De(M({},i),{positionStrategy:Ds(this._injector).centerHorizontally().centerVertically(),disableClose:!0,closePredicate:void 0,closeOnDestroy:!1,closeOnOverlayDetachments:!1,disableAnimations:this._animationsDisabled||i.enterAnimationDuration?.toLocaleString()==="0"||i.exitAnimationDuration?.toString()==="0",container:{type:this._dialogContainerType,providers:()=>[{provide:this.dialogConfigClass,useValue:i},{provide:Vc,useValue:i}]},templateContext:()=>({dialogRef:r}),providers:(a,s,l)=>(r=new this._dialogRefConstructor(a,i,l),r.updatePosition(i?.position),[{provide:this._dialogContainerType,useValue:l},{provide:this._dialogDataToken,useValue:s.data},{provide:this._dialogRefConstructor,useValue:r}])}));return r.componentRef=o.componentRef,r.componentInstance=o.componentInstance,this.openDialogs.push(r),this.afterOpened.next(r),r.afterClosed().subscribe(()=>{let a=this.openDialogs.indexOf(r);a>-1&&(this.openDialogs.splice(a,1),this.openDialogs.length||this._getAfterAllClosed().next())}),r}closeAll(){this._closeDialogs(this.openDialogs)}getDialogById(e){return this.openDialogs.find(i=>i.id===e)}ngOnDestroy(){this._closeDialogs(this._openDialogsAtThisLevel),this._afterAllClosedAtThisLevel.complete(),this._afterOpenedAtThisLevel.complete()}_closeDialogs(e){let i=e.length;for(;i--;)e[i].close()}static \u0275fac=function(i){return new(i||t)};static \u0275prov=O({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();var dz=(()=>{class t{_dialogRef=u(Mu,{optional:!0});_elementRef=u(q);_dialog=u(En);constructor(){}ngOnInit(){this._dialogRef||(this._dialogRef=gue(this._elementRef,this._dialog.openDialogs)),this._dialogRef&&Promise.resolve().then(()=>{this._onAdd()})}ngOnDestroy(){this._dialogRef?._containerInstance&&Promise.resolve().then(()=>{this._onRemove()})}static \u0275fac=function(i){return new(i||t)};static \u0275dir=F({type:t})}return t})(),hI=(()=>{class t extends dz{id=u(Ze).getId("mat-mdc-dialog-title-");_onAdd(){this._dialogRef._containerInstance?._addAriaLabelledBy?.(this.id)}_onRemove(){this._dialogRef?._containerInstance?._removeAriaLabelledBy?.(this.id)}static \u0275fac=(()=>{let e;return function(r){return(e||(e=fe(t)))(r||t)}})();static \u0275dir=F({type:t,selectors:[["","mat-dialog-title",""],["","matDialogTitle",""]],hostAttrs:[1,"mat-mdc-dialog-title","mdc-dialog__title"],hostVars:1,hostBindings:function(i,r){i&2&&si("id",r.id)},inputs:{id:"id"},exportAs:["matDialogTitle"],features:[le]})}return t})(),pI=(()=>{class t{static \u0275fac=function(i){return new(i||t)};static \u0275dir=F({type:t,selectors:[["","mat-dialog-content",""],["mat-dialog-content"],["","matDialogContent",""]],hostAttrs:[1,"mat-mdc-dialog-content","mdc-dialog__content"],features:[ym([Pa])]})}return t})(),fI=(()=>{class t extends dz{align;_onAdd(){this._dialogRef._containerInstance?._updateActionSectionCount?.(1)}_onRemove(){this._dialogRef._containerInstance?._updateActionSectionCount?.(-1)}static \u0275fac=(()=>{let e;return function(r){return(e||(e=fe(t)))(r||t)}})();static \u0275dir=F({type:t,selectors:[["","mat-dialog-actions",""],["mat-dialog-actions"],["","matDialogActions",""]],hostAttrs:[1,"mat-mdc-dialog-actions","mdc-dialog__actions"],hostVars:6,hostBindings:function(i,r){i&2&&G("mat-mdc-dialog-actions-align-start",r.align==="start")("mat-mdc-dialog-actions-align-center",r.align==="center")("mat-mdc-dialog-actions-align-end",r.align==="end")},inputs:{align:"align"},features:[le]})}return t})();function gue(t,n){let e=t.nativeElement.parentElement;for(;e&&!e.classList.contains("mat-mdc-dialog-container");)e=e.parentElement;return e?n.find(i=>i.id===e.id):null}var Mn=(()=>{class t{static \u0275fac=function(i){return new(i||t)};static \u0275mod=ee({type:t});static \u0275inj=J({providers:[En],imports:[tz,er,Co,we,we]})}return t})();var Er=(()=>{let n=class n{constructor(){this.dialogRef=u(Mu),this.data=u(TC)}confirm(){this.dialogRef.close(!0)}cancel(){this.dialogRef.close(!1)}};n.\u0275fac=function(r){return new(r||n)},n.\u0275cmp=E({type:n,selectors:[["app-confirm-dialog"]],decls:12,vars:4,consts:[["mat-dialog-title",""],["color","warn",2,"vertical-align","middle","margin-right","8px"],["align","end"],["mat-button","",3,"click"],["mat-raised-button","","color","warn","cdkFocusInitial","",3,"click"]],template:function(r,o){r&1&&(h(0,"h2",0)(1,"mat-icon",1),_(2,"warning"),p(),_(3),p(),h(4,"mat-dialog-content")(5,"p"),_(6),p()(),h(7,"mat-dialog-actions",2)(8,"button",3),S("click",function(){return o.cancel()}),_(9),p(),h(10,"button",4),S("click",function(){return o.confirm()}),_(11),p()()),r&2&&(g(3),ve(" ",o.data.title,` +`),g(3),H(o.data.message),g(3),ve(" ",o.data.cancelText||"Cancel"," "),g(2),ve(" ",o.data.confirmText||"Delete"," "))},dependencies:[Mn,hI,fI,pI,ze,kt,ot,mt],encapsulation:2});let t=n;return t})();function bue(t,n){if(t&1&&(h(0,"div",2),_(1),p()),t&2){let e=C();g(),H(e.title())}}function vue(t,n){if(t&1&&(h(0,"div",3),_(1),p()),t&2){let e=C();g(),H(e.message())}}var tp=(()=>{let n=class n{constructor(){this.code=ne(""),this.title=ne(""),this.message=ne("")}};n.\u0275fac=function(r){return new(r||n)},n.\u0275cmp=E({type:n,selectors:[["error-code"]],inputs:{code:[1,"code"],title:[1,"title"],message:[1,"message"]},decls:8,vars:3,consts:[[1,"matero-error-wrap"],[1,"matero-error-code"],[1,"matero-error-title"],[1,"matero-error-message"],["matButton","elevated","color","primary","routerLink","/"]],template:function(r,o){r&1&&(h(0,"div",0)(1,"div",1),_(2),p(),N(3,bue,2,1,"div",2),N(4,vue,2,1,"div",3),h(5,"div")(6,"a",4),_(7,"Back to Home"),p()()()),r&2&&(g(2),H(o.code()),g(),L(o.title()?3:-1),g(),L(o.message()?4:-1))},dependencies:[Nn,ze,kt],styles:[`.matero-error-wrap{text-align:center}.matero-error-code{padding:1.25rem 0;font-size:10rem;text-shadow:.1325825215rem .1325825215rem 0 rgba(0,0,0,.028575),.2651650429rem .2651650429rem 0 rgba(0,0,0,.02715),.3977475644rem .3977475644rem 0 rgba(0,0,0,.025725),.5303300859rem .5303300859rem 0 rgba(0,0,0,.0243),.6629126074rem .6629126074rem 0 rgba(0,0,0,.022875),.7954951288rem .7954951288rem 0 rgba(0,0,0,.02145),.9280776503rem .9280776503rem 0 rgba(0,0,0,.020025),1.0606601718rem 1.0606601718rem 0 rgba(0,0,0,.0186),1.1932426933rem 1.1932426933rem 0 rgba(0,0,0,.017175),1.3258252147rem 1.3258252147rem 0 rgba(0,0,0,.01575),1.4584077362rem 1.4584077362rem 0 rgba(0,0,0,.014325),1.5909902577rem 1.5909902577rem 0 rgba(0,0,0,.0129),1.7235727791rem 1.7235727791rem 0 rgba(0,0,0,.011475),1.8561553006rem 1.8561553006rem 0 rgba(0,0,0,.01005),1.9887378221rem 1.9887378221rem 0 rgba(0,0,0,.008625),2.1213203436rem 2.1213203436rem 0 rgba(0,0,0,.0072),2.253902865rem 2.253902865rem 0 rgba(0,0,0,.005775),2.3864853865rem 2.3864853865rem 0 rgba(0,0,0,.00435),2.519067908rem 2.519067908rem 0 rgba(0,0,0,.002925),2.6516504294rem 2.6516504294rem 0 rgba(0,0,0,.0015)}.matero-error-title{margin:0 0 1rem;font-size:1.25rem;font-weight:500;line-height:2rem}.matero-error-message{margin:0 0 1rem;font-size:1rem;font-weight:400;line-height:1.75rem} +`],encapsulation:2});let t=n;return t})();function yue(t,n){if(t&1&&k(0,"breadcrumb",2),t&2){let e=C();y("nav",e.nav())}}var ni=(()=>{let n=class n{constructor(){this.router=u(Re),this.menu=u(so),this.title=ne(""),this.subtitle=ne(""),this.nav=ne([]),this.hideBreadcrumb=ne(!1,{transform:V}),this.titleName=Zt(()=>{let i=this.router.url.slice(1).split("/"),r=this.menu.getLevel(i);return this.title()||r[r.length-1]})}};n.\u0275fac=function(r){return new(r||n)},n.\u0275cmp=E({type:n,selectors:[["page-header"]],hostAttrs:[1,"matero-page-header"],inputs:{title:[1,"title"],subtitle:[1,"subtitle"],nav:[1,"nav"],hideBreadcrumb:[1,"hideBreadcrumb"]},decls:7,vars:5,consts:[[1,"matero-page-header-inner"],[1,"matero-page-title"],[3,"nav"]],template:function(r,o){r&1&&(h(0,"div",0)(1,"h1",1),_(2),me(3,"translate"),h(4,"small"),_(5),p()(),N(6,yue,1,1,"breadcrumb",2),p()),r&2&&(g(2),ve(" ",Oe(3,3,o.titleName())," "),g(3),H(o.subtitle()),g(),L(o.hideBreadcrumb()?-1:6))},dependencies:[ez,wr,Cr],styles:[`.matero-page-header{display:block;padding:1rem;margin-bottom:1rem;color:#ffffffde;background-color:#0074e9;border-radius:var(--mat-sys-corner-medium)}.matero-page-header .matero-breadcrumb{margin-top:.5rem;margin-bottom:0}.matero-page-title{margin:0;font-size:1.5rem;font-weight:400} +`],encapsulation:2});let t=n;return t})();var uz=(()=>{let n=class n{constructor(){this.change=new U,this.valueSignal=he("ltr")}get value(){return this.valueSignal()}set value(i){this.valueSignal.set(i),this.change.next(i)}ngOnDestroy(){this.change.complete()}};n.\u0275fac=function(r){return new(r||n)},n.\u0275prov=O({token:n,factory:n.\u0275fac,providedIn:"root"});let t=n;return t})();var mz=(()=>{let n=class n{constructor(){this.messages=[]}add(i){this.messages.push(i)}clear(){this.messages=[]}};n.\u0275fac=function(r){return new(r||n)},n.\u0275prov=O({token:n,factory:n.\u0275fac,providedIn:"root"});let t=n;return t})();var hz=(()=>{let n=class n{get(i){return JSON.parse(localStorage.getItem(i)||"{}")||{}}set(i,r){return localStorage.setItem(i,JSON.stringify(r)),!0}has(i){return!!localStorage.getItem(i)}remove(i){localStorage.removeItem(i)}clear(){localStorage.clear()}};n.\u0275fac=function(r){return new(r||n)},n.\u0275prov=O({token:n,factory:n.\u0275fac,providedIn:"root"});let t=n;return t})();var pz=(()=>{let n=class n{constructor(){this.translate=u(ia),this.paginatorIntl=new gc,this.translate.onLangChange.subscribe(i=>this.getPaginatorIntl())}getPaginatorIntl(){return this.paginatorIntl.itemsPerPageLabel=this.translate.instant("paginator.items_per_page_label"),this.paginatorIntl.previousPageLabel=this.translate.instant("paginator.previous_page_label"),this.paginatorIntl.nextPageLabel=this.translate.instant("paginator.next_page_label"),this.paginatorIntl.firstPageLabel=this.translate.instant("paginator.first_page_label"),this.paginatorIntl.lastPageLabel=this.translate.instant("paginator.last_page_label"),this.paginatorIntl.getRangeLabel=this.getRangeLabel.bind(this),this.paginatorIntl.changes.next(),this.paginatorIntl}getRangeLabel(i,r,o){if(o===0||r===0)return this.translate.instant("paginator.range_page_label_1",{length:o});o=Math.max(o,0);let a=i*r,s=a{if(t.destroyed){e.next();return}return t.onDestroy(e.next.bind(e))});return e=>e.pipe(Te(n))}function fz(t){let n=UM(t);return new Fe(e=>{let i=n?.onDestroy(()=>e.complete()),r=t.subscribe(o=>e.next(o));return()=>{r.unsubscribe(),i?.()}})}var xue=["content"],Cue=["scroll"],wue=["padding"],bz=["*"],m_=t=>({searchTerm:t});function Due(t,n){if(t&1&&(h(0,"div",3),Ge(1,6),p()),t&2){let e=C();g(),y("ngTemplateOutlet",e.headerTemplate())("ngTemplateOutletContext",Pt(2,m_,e.filterValue()))}}function Eue(t,n){if(t&1&&(h(0,"div",5),Ge(1,6),p()),t&2){let e=C();g(),y("ngTemplateOutlet",e.footerTemplate())("ngTemplateOutletContext",Pt(2,m_,e.filterValue()))}}var Mue=["searchInput"],kue=["clearButton"],Sue=(t,n,e)=>({item:t,clear:n,label:e}),Tue=(t,n)=>({items:t,clear:n}),Iue=(t,n,e,i)=>({item:t,item$:n,index:e,searchTerm:i});function Aue(t,n){if(t&1&&(h(0,"div",20),_(1),p()),t&2){let e=C(2);g(),H(e.placeholder()??e.config.placeholder)}}function Oue(t,n){}function Rue(t,n){if(t&1&&R(0,Aue,2,1,"ng-template",null,1,_i)(2,Oue,0,0,"ng-template",19),t&2){let e=Se(1),i=C();g(2),y("ngTemplateOutlet",i.placeholderTemplate()||e)}}function Pue(t,n){if(t&1){let e=Y();h(0,"span",23),S("click",function(){I(e);let r=C().$implicit,o=C(2);return A(o.unselect(r))}),_(1,"\xD7"),p(),k(2,"span",24)}if(t&2){let e=C().$implicit,i=C(2);g(2),y("ngItemLabel",e.label)("escape",i.escapeHTML)}}function Fue(t,n){}function Nue(t,n){if(t&1&&(h(0,"div",22),R(1,Pue,3,2,"ng-template",null,2,_i)(3,Fue,0,0,"ng-template",12),p()),t&2){let e=n.$implicit,i=Se(2),r=C(2);G("ng-value-disabled",e.disabled),g(3),y("ngTemplateOutlet",r.labelTemplate()||i)("ngTemplateOutletContext",Rd(4,Sue,e.value,r.clearItem,e.label))}}function Lue(t,n){if(t&1&&xt(0,Nue,4,8,"div",21,Mv().trackByOption,!0),t&2){let e=C();Ct(e.selectedItems)}}function Vue(t,n){}function Bue(t,n){if(t&1&&R(0,Vue,0,0,"ng-template",12),t&2){let e=C();y("ngTemplateOutlet",e.multiLabelTemplate())("ngTemplateOutletContext",wa(2,Tue,e.selectedValues,e.clearItem))}}function jue(t,n){t&1&&k(0,"div",25)}function Hue(t,n){}function zue(t,n){if(t&1&&R(0,jue,1,0,"ng-template",null,3,_i)(2,Hue,0,0,"ng-template",19),t&2){let e=Se(1),i=C();g(2),y("ngTemplateOutlet",i.loadingSpinnerTemplate()||e)}}function Uue(t,n){if(t&1&&Ge(0,19),t&2){let e=C(2);y("ngTemplateOutlet",e.clearButtonTemplate())}}function $ue(t,n){if(t&1){let e=Y();h(0,"span",27,4),S("click",function(r){I(e);let o=C(2);return A(o.handleClearClick(r))}),h(2,"span",28),_(3,"\xD7"),p()()}if(t&2){let e=C(2);y("title",VM(e.clearAllText()||e.config.clearAllText)),X("tabindex",e.tabFocusOnClear()?0:-1)}}function Wue(t,n){if(t&1&&N(0,Uue,1,1,"ng-container",19)(1,$ue,4,3,"span",26),t&2){let e=C();L(e.clearButtonTemplate()?0:1)}}function Gue(t,n){if(t&1&&k(0,"span",33),t&2){let e=C().$implicit,i=C(2);y("ngItemLabel",e.label)("escape",i.escapeHTML)}}function que(t,n){}function Yue(t,n){if(t&1){let e=Y();h(0,"div",32),S("click",function(){let r=I(e).$implicit,o=C(2);return A(o.toggleItem(r))})("mouseover",function(){let r=I(e).$implicit,o=C(2);return A(o.onItemHover(r))}),R(1,Gue,1,2,"ng-template",null,5,_i)(3,que,0,0,"ng-template",12),p()}if(t&2){let e=n.$implicit,i=Se(2),r=C(2);G("ng-option-disabled",e.disabled)("ng-option-selected",e.selected)("ng-optgroup",e.children)("ng-option",!e.children)("ng-option-child",!!e.parent)("ng-option-marked",e===r.itemsList.markedItem),X("role",e.children?"group":"option")("aria-selected",e.selected)("id",e==null?null:e.htmlId)("aria-setsize",r.itemsList.filteredItems.length)("aria-posinset",e.index+1),g(3),y("ngTemplateOutlet",e.children?r.optgroupTemplate()||i:r.optionTemplate()||i)("ngTemplateOutletContext",wm(19,Iue,e.value,e,e.index,r.searchTerm))}}function Que(t,n){if(t&1&&(h(0,"span")(1,"span",35),_(2),p(),_(3),p()),t&2){let e=C(3);g(2),H(e.addTagText()||e.config.addTagText),g(),ve('"',e.searchTerm,'"')}}function Kue(t,n){}function Zue(t,n){if(t&1){let e=Y();h(0,"div",34),S("mouseover",function(){I(e);let r=C(2);return A(r.itemsList.unmarkItem())})("click",function(){I(e);let r=C(2);return A(r.selectTag())}),R(1,Que,4,2,"ng-template",null,6,_i)(3,Kue,0,0,"ng-template",12),p()}if(t&2){let e=Se(2),i=C(2);G("ng-option-marked",!i.itemsList.markedItem),g(3),y("ngTemplateOutlet",i.tagTemplate()||e)("ngTemplateOutletContext",Pt(4,m_,i.searchTerm))}}function Xue(t,n){if(t&1&&(h(0,"div",36),_(1),p()),t&2){let e=C(3);g(),H(e.notFoundText()??e.config.notFoundText)}}function Jue(t,n){}function eme(t,n){if(t&1&&R(0,Xue,2,1,"ng-template",null,7,_i)(2,Jue,0,0,"ng-template",12),t&2){let e=Se(1),i=C(2);g(2),y("ngTemplateOutlet",i.notFoundTemplate()||e)("ngTemplateOutletContext",Pt(2,m_,i.searchTerm))}}function tme(t,n){if(t&1&&(h(0,"div",36),_(1),p()),t&2){let e=C(3);g(),H(e.typeToSearchText()||e.config.typeToSearchText)}}function ime(t,n){}function nme(t,n){if(t&1&&R(0,tme,2,1,"ng-template",null,8,_i)(2,ime,0,0,"ng-template",19),t&2){let e=Se(1),i=C(2);g(2),y("ngTemplateOutlet",i.typeToSearchTemplate()||e)}}function rme(t,n){if(t&1&&(h(0,"div",36),_(1),p()),t&2){let e=C(3);g(),H(e.loadingText()||e.config.loadingText)}}function ome(t,n){}function ame(t,n){if(t&1&&R(0,rme,2,1,"ng-template",null,9,_i)(2,ome,0,0,"ng-template",12),t&2){let e=Se(1),i=C(2);g(2),y("ngTemplateOutlet",i.loadingTextTemplate()||e)("ngTemplateOutletContext",Pt(2,m_,i.searchTerm))}}function sme(t,n){if(t&1){let e=Y();h(0,"ng-dropdown-panel",29),S("update",function(r){I(e);let o=C();return A(o.viewPortItems=r)})("scroll",function(r){I(e);let o=C();return A(o.scroll.emit(r))})("scrollToEnd",function(r){I(e);let o=C();return A(o.scrollToEnd.emit(r))})("outsideClick",function(){I(e);let r=C();return A(r.close())}),jt(1),xt(2,Yue,4,24,"div",30,Mv().trackByOption,!0),N(4,Zue,4,6,"div",31),Lt(),N(5,eme,3,4),N(6,nme,3,1),N(7,ame,3,4),p()}if(t&2){let e=C(),i=e.appendTo()||e.config.appendTo;it(i?e.ngClass()?e.ngClass():e.classes:null),G("ng-select-multiple",e.multiple()),y("virtualScroll",e.virtualScroll()??!e.config.disableVirtualScroll??!1)("bufferAmount",e.bufferAmount())("appendTo",i)("position",e.dropdownPosition())("outsideClickEvent",e.outsideClickEvent())("headerTemplate",e.headerTemplate())("footerTemplate",e.footerTemplate())("filterValue",e.searchTerm)("items",e.itemsList.filteredItems)("showAddTag",e.showAddTag)("markedItem",e.itemsList.markedItem)("id",e.dropdownId)("ariaLabelDropdown",e.ariaLabelDropdown()),g(2),Ct(e.viewPortItems),g(2),L(e.showAddTag?4:-1),g(),L(e.showNoItemsFound()?5:-1),g(),L(e.showTypeToSearch()?6:-1),g(),L(e.loading()&&e.itemsList.filteredItems.length===0?7:-1)}}function lme(t,n){if(t&1&&_(0),t&2){let e=C();ve(" ",e.notFoundText()??e.config.notFoundText," ")}}var vz=/[&<>"']/g,cme=RegExp(vz.source),dme={"&":"&","<":"<",">":">",'"':""","'":"'"};function ume(t){return t&&cme.test(t)?t.replace(vz,n=>dme[n]):t}function Ji(t){return t!=null}function Su(t){return typeof t=="object"&&Ji(t)}function mme(t){return t instanceof Promise}function AC(t){return t instanceof Function}var hme=(()=>{let n=class n{constructor(){this.element=u(q),this.ngItemLabel=ne(),this.escape=ne(!0),Ar(()=>{this.element.nativeElement.innerHTML=this.escape()?ume(this.ngItemLabel()):this.ngItemLabel()})}};n.\u0275fac=function(r){return new(r||n)},n.\u0275dir=F({type:n,selectors:[["","ngItemLabel",""]],inputs:{ngItemLabel:[1,"ngItemLabel"],escape:[1,"escape"]}});let t=n;return t})(),OC=(()=>{let n=class n{constructor(){this.template=u(te)}};n.\u0275fac=function(r){return new(r||n)},n.\u0275dir=F({type:n,selectors:[["","ng-option-tmp",""]]});let t=n;return t})(),RC=(()=>{let n=class n{constructor(){this.template=u(te)}};n.\u0275fac=function(r){return new(r||n)},n.\u0275dir=F({type:n,selectors:[["","ng-optgroup-tmp",""]]});let t=n;return t})(),PC=(()=>{let n=class n{constructor(){this.template=u(te)}};n.\u0275fac=function(r){return new(r||n)},n.\u0275dir=F({type:n,selectors:[["","ng-label-tmp",""]]});let t=n;return t})(),FC=(()=>{let n=class n{constructor(){this.template=u(te)}};n.\u0275fac=function(r){return new(r||n)},n.\u0275dir=F({type:n,selectors:[["","ng-multi-label-tmp",""]]});let t=n;return t})(),NC=(()=>{let n=class n{constructor(){this.template=u(te)}};n.\u0275fac=function(r){return new(r||n)},n.\u0275dir=F({type:n,selectors:[["","ng-header-tmp",""]]});let t=n;return t})(),LC=(()=>{let n=class n{constructor(){this.template=u(te)}};n.\u0275fac=function(r){return new(r||n)},n.\u0275dir=F({type:n,selectors:[["","ng-footer-tmp",""]]});let t=n;return t})(),VC=(()=>{let n=class n{constructor(){this.template=u(te)}};n.\u0275fac=function(r){return new(r||n)},n.\u0275dir=F({type:n,selectors:[["","ng-notfound-tmp",""]]});let t=n;return t})(),BC=(()=>{let n=class n{constructor(){this.template=u(te)}};n.\u0275fac=function(r){return new(r||n)},n.\u0275dir=F({type:n,selectors:[["","ng-placeholder-tmp",""]]});let t=n;return t})(),jC=(()=>{let n=class n{constructor(){this.template=u(te)}};n.\u0275fac=function(r){return new(r||n)},n.\u0275dir=F({type:n,selectors:[["","ng-typetosearch-tmp",""]]});let t=n;return t})(),HC=(()=>{let n=class n{constructor(){this.template=u(te)}};n.\u0275fac=function(r){return new(r||n)},n.\u0275dir=F({type:n,selectors:[["","ng-loadingtext-tmp",""]]});let t=n;return t})(),zC=(()=>{let n=class n{constructor(){this.template=u(te)}};n.\u0275fac=function(r){return new(r||n)},n.\u0275dir=F({type:n,selectors:[["","ng-tag-tmp",""]]});let t=n;return t})(),UC=(()=>{let n=class n{constructor(){this.template=u(te)}};n.\u0275fac=function(r){return new(r||n)},n.\u0275dir=F({type:n,selectors:[["","ng-loadingspinner-tmp",""]]});let t=n;return t})(),$C=(()=>{let n=class n{constructor(){this.template=u(te)}};n.\u0275fac=function(r){return new(r||n)},n.\u0275dir=F({type:n,selectors:[["","ng-clearbutton-tmp",""]]});let t=n;return t})(),pme=(()=>{let n=class n{constructor(){this.fixedPlaceholder=!0,this.notFoundText="No items found",this.typeToSearchText="Type to search",this.addTagText="Add item",this.loadingText="Loading...",this.clearAllText="Clear all",this.disableVirtualScroll=!0,this.openOnEnter=!0,this.appearance="underline",this.tabFocusOnClear=!0,this.outsideClickEvent="click"}};n.\u0275fac=function(r){return new(r||n)},n.\u0275prov=O({token:n,factory:n.\u0275fac,providedIn:"root"});let t=n;return t})(),fme=(()=>{let n=class n{warn(i){console.warn(i)}};n.\u0275fac=function(r){return new(r||n)},n.\u0275prov=O({token:n,factory:n.\u0275fac,providedIn:"root"});let t=n;return t})();function yz(){return"axxxxxxxxxxx".replace(/[x]/g,()=>(Math.random()*16|0).toString(16))}var gme={"\u24B6":"A",\uFF21:"A",\u00C0:"A",\u00C1:"A",\u00C2:"A",\u1EA6:"A",\u1EA4:"A",\u1EAA:"A",\u1EA8:"A",\u00C3:"A",\u0100:"A",\u0102:"A",\u1EB0:"A",\u1EAE:"A",\u1EB4:"A",\u1EB2:"A",\u0226:"A",\u01E0:"A",\u00C4:"A",\u01DE:"A",\u1EA2:"A",\u00C5:"A",\u01FA:"A",\u01CD:"A",\u0200:"A",\u0202:"A",\u1EA0:"A",\u1EAC:"A",\u1EB6:"A",\u1E00:"A",\u0104:"A","\u023A":"A","\u2C6F":"A","\uA732":"AA",\u00C6:"AE",\u01FC:"AE",\u01E2:"AE","\uA734":"AO","\uA736":"AU","\uA738":"AV","\uA73A":"AV","\uA73C":"AY","\u24B7":"B",\uFF22:"B",\u1E02:"B",\u1E04:"B",\u1E06:"B","\u0243":"B",\u0182:"B",\u0181:"B","\u24B8":"C",\uFF23:"C",\u0106:"C",\u0108:"C",\u010A:"C",\u010C:"C",\u00C7:"C",\u1E08:"C",\u0187:"C","\u023B":"C","\uA73E":"C","\u24B9":"D",\uFF24:"D",\u1E0A:"D",\u010E:"D",\u1E0C:"D",\u1E10:"D",\u1E12:"D",\u1E0E:"D",\u0110:"D",\u018B:"D",\u018A:"D",\u0189:"D","\uA779":"D",\u01F1:"DZ",\u01C4:"DZ",\u01F2:"Dz",\u01C5:"Dz","\u24BA":"E",\uFF25:"E",\u00C8:"E",\u00C9:"E",\u00CA:"E",\u1EC0:"E",\u1EBE:"E",\u1EC4:"E",\u1EC2:"E",\u1EBC:"E",\u0112:"E",\u1E14:"E",\u1E16:"E",\u0114:"E",\u0116:"E",\u00CB:"E",\u1EBA:"E",\u011A:"E",\u0204:"E",\u0206:"E",\u1EB8:"E",\u1EC6:"E",\u0228:"E",\u1E1C:"E",\u0118:"E",\u1E18:"E",\u1E1A:"E",\u0190:"E",\u018E:"E","\u24BB":"F",\uFF26:"F",\u1E1E:"F",\u0191:"F","\uA77B":"F","\u24BC":"G",\uFF27:"G",\u01F4:"G",\u011C:"G",\u1E20:"G",\u011E:"G",\u0120:"G",\u01E6:"G",\u0122:"G",\u01E4:"G",\u0193:"G","\uA7A0":"G","\uA77D":"G","\uA77E":"G","\u24BD":"H",\uFF28:"H",\u0124:"H",\u1E22:"H",\u1E26:"H",\u021E:"H",\u1E24:"H",\u1E28:"H",\u1E2A:"H",\u0126:"H","\u2C67":"H","\u2C75":"H","\uA78D":"H","\u24BE":"I",\uFF29:"I",\u00CC:"I",\u00CD:"I",\u00CE:"I",\u0128:"I",\u012A:"I",\u012C:"I",\u0130:"I",\u00CF:"I",\u1E2E:"I",\u1EC8:"I",\u01CF:"I",\u0208:"I",\u020A:"I",\u1ECA:"I",\u012E:"I",\u1E2C:"I",\u0197:"I","\u24BF":"J",\uFF2A:"J",\u0134:"J","\u0248":"J","\u24C0":"K",\uFF2B:"K",\u1E30:"K",\u01E8:"K",\u1E32:"K",\u0136:"K",\u1E34:"K",\u0198:"K","\u2C69":"K","\uA740":"K","\uA742":"K","\uA744":"K","\uA7A2":"K","\u24C1":"L",\uFF2C:"L",\u013F:"L",\u0139:"L",\u013D:"L",\u1E36:"L",\u1E38:"L",\u013B:"L",\u1E3C:"L",\u1E3A:"L",\u0141:"L","\u023D":"L","\u2C62":"L","\u2C60":"L","\uA748":"L","\uA746":"L","\uA780":"L",\u01C7:"LJ",\u01C8:"Lj","\u24C2":"M",\uFF2D:"M",\u1E3E:"M",\u1E40:"M",\u1E42:"M","\u2C6E":"M",\u019C:"M","\u24C3":"N",\uFF2E:"N",\u01F8:"N",\u0143:"N",\u00D1:"N",\u1E44:"N",\u0147:"N",\u1E46:"N",\u0145:"N",\u1E4A:"N",\u1E48:"N","\u0220":"N",\u019D:"N","\uA790":"N","\uA7A4":"N",\u01CA:"NJ",\u01CB:"Nj","\u24C4":"O",\uFF2F:"O",\u00D2:"O",\u00D3:"O",\u00D4:"O",\u1ED2:"O",\u1ED0:"O",\u1ED6:"O",\u1ED4:"O",\u00D5:"O",\u1E4C:"O",\u022C:"O",\u1E4E:"O",\u014C:"O",\u1E50:"O",\u1E52:"O",\u014E:"O",\u022E:"O",\u0230:"O",\u00D6:"O",\u022A:"O",\u1ECE:"O",\u0150:"O",\u01D1:"O",\u020C:"O",\u020E:"O",\u01A0:"O",\u1EDC:"O",\u1EDA:"O",\u1EE0:"O",\u1EDE:"O",\u1EE2:"O",\u1ECC:"O",\u1ED8:"O",\u01EA:"O",\u01EC:"O",\u00D8:"O",\u01FE:"O",\u0186:"O",\u019F:"O","\uA74A":"O","\uA74C":"O",\u01A2:"OI","\uA74E":"OO",\u0222:"OU","\u24C5":"P",\uFF30:"P",\u1E54:"P",\u1E56:"P",\u01A4:"P","\u2C63":"P","\uA750":"P","\uA752":"P","\uA754":"P","\u24C6":"Q",\uFF31:"Q","\uA756":"Q","\uA758":"Q","\u024A":"Q","\u24C7":"R",\uFF32:"R",\u0154:"R",\u1E58:"R",\u0158:"R",\u0210:"R",\u0212:"R",\u1E5A:"R",\u1E5C:"R",\u0156:"R",\u1E5E:"R","\u024C":"R","\u2C64":"R","\uA75A":"R","\uA7A6":"R","\uA782":"R","\u24C8":"S",\uFF33:"S","\u1E9E":"S",\u015A:"S",\u1E64:"S",\u015C:"S",\u1E60:"S",\u0160:"S",\u1E66:"S",\u1E62:"S",\u1E68:"S",\u0218:"S",\u015E:"S","\u2C7E":"S","\uA7A8":"S","\uA784":"S","\u24C9":"T",\uFF34:"T",\u1E6A:"T",\u0164:"T",\u1E6C:"T",\u021A:"T",\u0162:"T",\u1E70:"T",\u1E6E:"T",\u0166:"T",\u01AC:"T",\u01AE:"T","\u023E":"T","\uA786":"T","\uA728":"TZ","\u24CA":"U",\uFF35:"U",\u00D9:"U",\u00DA:"U",\u00DB:"U",\u0168:"U",\u1E78:"U",\u016A:"U",\u1E7A:"U",\u016C:"U",\u00DC:"U",\u01DB:"U",\u01D7:"U",\u01D5:"U",\u01D9:"U",\u1EE6:"U",\u016E:"U",\u0170:"U",\u01D3:"U",\u0214:"U",\u0216:"U",\u01AF:"U",\u1EEA:"U",\u1EE8:"U",\u1EEE:"U",\u1EEC:"U",\u1EF0:"U",\u1EE4:"U",\u1E72:"U",\u0172:"U",\u1E76:"U",\u1E74:"U","\u0244":"U","\u24CB":"V",\uFF36:"V",\u1E7C:"V",\u1E7E:"V",\u01B2:"V","\uA75E":"V","\u0245":"V","\uA760":"VY","\u24CC":"W",\uFF37:"W",\u1E80:"W",\u1E82:"W",\u0174:"W",\u1E86:"W",\u1E84:"W",\u1E88:"W","\u2C72":"W","\u24CD":"X",\uFF38:"X",\u1E8A:"X",\u1E8C:"X","\u24CE":"Y",\uFF39:"Y",\u1EF2:"Y",\u00DD:"Y",\u0176:"Y",\u1EF8:"Y",\u0232:"Y",\u1E8E:"Y",\u0178:"Y",\u1EF6:"Y",\u1EF4:"Y",\u01B3:"Y","\u024E":"Y","\u1EFE":"Y","\u24CF":"Z",\uFF3A:"Z",\u0179:"Z",\u1E90:"Z",\u017B:"Z",\u017D:"Z",\u1E92:"Z",\u1E94:"Z",\u01B5:"Z",\u0224:"Z","\u2C7F":"Z","\u2C6B":"Z","\uA762":"Z","\u24D0":"a",\uFF41:"a",\u1E9A:"a",\u00E0:"a",\u00E1:"a",\u00E2:"a",\u1EA7:"a",\u1EA5:"a",\u1EAB:"a",\u1EA9:"a",\u00E3:"a",\u0101:"a",\u0103:"a",\u1EB1:"a",\u1EAF:"a",\u1EB5:"a",\u1EB3:"a",\u0227:"a",\u01E1:"a",\u00E4:"a",\u01DF:"a",\u1EA3:"a",\u00E5:"a",\u01FB:"a",\u01CE:"a",\u0201:"a",\u0203:"a",\u1EA1:"a",\u1EAD:"a",\u1EB7:"a",\u1E01:"a",\u0105:"a","\u2C65":"a",\u0250:"a","\uA733":"aa",\u00E6:"ae",\u01FD:"ae",\u01E3:"ae","\uA735":"ao","\uA737":"au","\uA739":"av","\uA73B":"av","\uA73D":"ay","\u24D1":"b",\uFF42:"b",\u1E03:"b",\u1E05:"b",\u1E07:"b",\u0180:"b",\u0183:"b",\u0253:"b","\u24D2":"c",\uFF43:"c",\u0107:"c",\u0109:"c",\u010B:"c",\u010D:"c",\u00E7:"c",\u1E09:"c",\u0188:"c","\u023C":"c","\uA73F":"c","\u2184":"c","\u24D3":"d",\uFF44:"d",\u1E0B:"d",\u010F:"d",\u1E0D:"d",\u1E11:"d",\u1E13:"d",\u1E0F:"d",\u0111:"d",\u018C:"d",\u0256:"d",\u0257:"d","\uA77A":"d",\u01F3:"dz",\u01C6:"dz","\u24D4":"e",\uFF45:"e",\u00E8:"e",\u00E9:"e",\u00EA:"e",\u1EC1:"e",\u1EBF:"e",\u1EC5:"e",\u1EC3:"e",\u1EBD:"e",\u0113:"e",\u1E15:"e",\u1E17:"e",\u0115:"e",\u0117:"e",\u00EB:"e",\u1EBB:"e",\u011B:"e",\u0205:"e",\u0207:"e",\u1EB9:"e",\u1EC7:"e",\u0229:"e",\u1E1D:"e",\u0119:"e",\u1E19:"e",\u1E1B:"e","\u0247":"e",\u025B:"e",\u01DD:"e","\u24D5":"f",\uFF46:"f",\u1E1F:"f",\u0192:"f","\uA77C":"f","\u24D6":"g",\uFF47:"g",\u01F5:"g",\u011D:"g",\u1E21:"g",\u011F:"g",\u0121:"g",\u01E7:"g",\u0123:"g",\u01E5:"g",\u0260:"g","\uA7A1":"g","\u1D79":"g","\uA77F":"g","\u24D7":"h",\uFF48:"h",\u0125:"h",\u1E23:"h",\u1E27:"h",\u021F:"h",\u1E25:"h",\u1E29:"h",\u1E2B:"h",\u1E96:"h",\u0127:"h","\u2C68":"h","\u2C76":"h",\u0265:"h",\u0195:"hv","\u24D8":"i",\uFF49:"i",\u00EC:"i",\u00ED:"i",\u00EE:"i",\u0129:"i",\u012B:"i",\u012D:"i",\u00EF:"i",\u1E2F:"i",\u1EC9:"i",\u01D0:"i",\u0209:"i",\u020B:"i",\u1ECB:"i",\u012F:"i",\u1E2D:"i",\u0268:"i",\u0131:"i","\u24D9":"j",\uFF4A:"j",\u0135:"j",\u01F0:"j","\u0249":"j","\u24DA":"k",\uFF4B:"k",\u1E31:"k",\u01E9:"k",\u1E33:"k",\u0137:"k",\u1E35:"k",\u0199:"k","\u2C6A":"k","\uA741":"k","\uA743":"k","\uA745":"k","\uA7A3":"k","\u24DB":"l",\uFF4C:"l",\u0140:"l",\u013A:"l",\u013E:"l",\u1E37:"l",\u1E39:"l",\u013C:"l",\u1E3D:"l",\u1E3B:"l",\u017F:"l",\u0142:"l",\u019A:"l",\u026B:"l","\u2C61":"l","\uA749":"l","\uA781":"l","\uA747":"l",\u01C9:"lj","\u24DC":"m",\uFF4D:"m",\u1E3F:"m",\u1E41:"m",\u1E43:"m",\u0271:"m",\u026F:"m","\u24DD":"n",\uFF4E:"n",\u01F9:"n",\u0144:"n",\u00F1:"n",\u1E45:"n",\u0148:"n",\u1E47:"n",\u0146:"n",\u1E4B:"n",\u1E49:"n",\u019E:"n",\u0272:"n",\u0149:"n","\uA791":"n","\uA7A5":"n",\u01CC:"nj","\u24DE":"o",\uFF4F:"o",\u00F2:"o",\u00F3:"o",\u00F4:"o",\u1ED3:"o",\u1ED1:"o",\u1ED7:"o",\u1ED5:"o",\u00F5:"o",\u1E4D:"o",\u022D:"o",\u1E4F:"o",\u014D:"o",\u1E51:"o",\u1E53:"o",\u014F:"o",\u022F:"o",\u0231:"o",\u00F6:"o",\u022B:"o",\u1ECF:"o",\u0151:"o",\u01D2:"o",\u020D:"o",\u020F:"o",\u01A1:"o",\u1EDD:"o",\u1EDB:"o",\u1EE1:"o",\u1EDF:"o",\u1EE3:"o",\u1ECD:"o",\u1ED9:"o",\u01EB:"o",\u01ED:"o",\u00F8:"o",\u01FF:"o",\u0254:"o","\uA74B":"o","\uA74D":"o",\u0275:"o",\u01A3:"oi",\u0223:"ou","\uA74F":"oo","\u24DF":"p",\uFF50:"p",\u1E55:"p",\u1E57:"p",\u01A5:"p","\u1D7D":"p","\uA751":"p","\uA753":"p","\uA755":"p","\u24E0":"q",\uFF51:"q","\u024B":"q","\uA757":"q","\uA759":"q","\u24E1":"r",\uFF52:"r",\u0155:"r",\u1E59:"r",\u0159:"r",\u0211:"r",\u0213:"r",\u1E5B:"r",\u1E5D:"r",\u0157:"r",\u1E5F:"r","\u024D":"r",\u027D:"r","\uA75B":"r","\uA7A7":"r","\uA783":"r","\u24E2":"s",\uFF53:"s",\u00DF:"s",\u015B:"s",\u1E65:"s",\u015D:"s",\u1E61:"s",\u0161:"s",\u1E67:"s",\u1E63:"s",\u1E69:"s",\u0219:"s",\u015F:"s","\u023F":"s","\uA7A9":"s","\uA785":"s",\u1E9B:"s","\u24E3":"t",\uFF54:"t",\u1E6B:"t",\u1E97:"t",\u0165:"t",\u1E6D:"t",\u021B:"t",\u0163:"t",\u1E71:"t",\u1E6F:"t",\u0167:"t",\u01AD:"t",\u0288:"t","\u2C66":"t","\uA787":"t","\uA729":"tz","\u24E4":"u",\uFF55:"u",\u00F9:"u",\u00FA:"u",\u00FB:"u",\u0169:"u",\u1E79:"u",\u016B:"u",\u1E7B:"u",\u016D:"u",\u00FC:"u",\u01DC:"u",\u01D8:"u",\u01D6:"u",\u01DA:"u",\u1EE7:"u",\u016F:"u",\u0171:"u",\u01D4:"u",\u0215:"u",\u0217:"u",\u01B0:"u",\u1EEB:"u",\u1EE9:"u",\u1EEF:"u",\u1EED:"u",\u1EF1:"u",\u1EE5:"u",\u1E73:"u",\u0173:"u",\u1E77:"u",\u1E75:"u",\u0289:"u","\u24E5":"v",\uFF56:"v",\u1E7D:"v",\u1E7F:"v",\u028B:"v","\uA75F":"v",\u028C:"v","\uA761":"vy","\u24E6":"w",\uFF57:"w",\u1E81:"w",\u1E83:"w",\u0175:"w",\u1E87:"w",\u1E85:"w",\u1E98:"w",\u1E89:"w","\u2C73":"w","\u24E7":"x",\uFF58:"x",\u1E8B:"x",\u1E8D:"x","\u24E8":"y",\uFF59:"y",\u1EF3:"y",\u00FD:"y",\u0177:"y",\u1EF9:"y",\u0233:"y",\u1E8F:"y",\u00FF:"y",\u1EF7:"y",\u1E99:"y",\u1EF5:"y",\u01B4:"y","\u024F":"y","\u1EFF":"y","\u24E9":"z",\uFF5A:"z",\u017A:"z",\u1E91:"z",\u017C:"z",\u017E:"z",\u1E93:"z",\u1E95:"z",\u01B6:"z",\u0225:"z","\u0240":"z","\u2C6C":"z","\uA763":"z",\u0386:"\u0391",\u0388:"\u0395",\u0389:"\u0397",\u038A:"\u0399",\u03AA:"\u0399",\u038C:"\u039F",\u038E:"\u03A5",\u03AB:"\u03A5",\u038F:"\u03A9",\u03AC:"\u03B1",\u03AD:"\u03B5",\u03AE:"\u03B7",\u03AF:"\u03B9",\u03CA:"\u03B9",\u0390:"\u03B9",\u03CC:"\u03BF",\u03CD:"\u03C5",\u03CB:"\u03C5",\u03B0:"\u03C5",\u03C9:"\u03C9",\u03C2:"\u03C3"};function IC(t){let n=e=>gme[e]||e;return t.replace(/[^\u0000-\u007E]/g,n)}var _I=class{constructor(n,e){this._ngSelect=n,this._selectionModel=e,this._items=[],this._filteredItems=[],this._markedIndex=-1}get items(){return this._items}get filteredItems(){return this._filteredItems}get markedIndex(){return this._markedIndex}get selectedItems(){return this._selectionModel.value}get markedItem(){return this._filteredItems[this._markedIndex]}get noItemsToSelect(){return this._ngSelect.hideSelected()&&this._items.length===this.selectedItems.length}get maxItemsSelected(){return this._ngSelect.multiple()&&this._ngSelect.maxSelectedItems()<=this.selectedItems.length}get lastSelectedItem(){let n=this.selectedItems.length-1;for(;n>=0;n--){let e=this.selectedItems[n];if(!e.disabled)return e}return null}setItems(n){this._items=n.map((i,r)=>this.mapItem(i,r));let e=this._ngSelect.groupBy();e?(this._groups=this._groupBy(this._items,e),this._items=this._flatten(this._groups)):(this._groups=new Map,this._groups.set(void 0,this._items)),this._filteredItems=[...this._items]}select(n){if(n.selected||this.maxItemsSelected)return;let e=this._ngSelect.multiple();e||this.clearSelected(),this._selectionModel.select(n,e,this._ngSelect.selectableGroupAsModel()),this._ngSelect.hideSelected()&&this._hideSelected(n)}unselect(n){if(!n.selected)return;let e=this._ngSelect.multiple();this._selectionModel.unselect(n,e),this._ngSelect.hideSelected()&&Ji(n.index)&&e&&this._showSelected(n)}findItem(n){let e;return this._ngSelect.compareWith()?e=i=>this._ngSelect.compareWith()(i.value,n):this._ngSelect.bindValue()?e=i=>!i.children&&this.resolveNested(i.value,this._ngSelect.bindValue())===n:e=i=>i.value===n||!i.children&&i.label&&i.label===this.resolveNested(n,this._ngSelect.bindLabel()),this._items.find(i=>e(i))}addItem(n){let e=this.mapItem(n,this._items.length);return this._items.push(e),this._filteredItems.push(e),e}clearSelected(n=!1){this._selectionModel.clear(n),this._items.forEach(e=>{e.selected=n&&e.selected&&e.disabled,e.marked=!1}),this._ngSelect.hideSelected()&&this.resetFilteredItems()}findByLabel(n){return n=IC(n).toLocaleLowerCase(),this.filteredItems.find(e=>IC(e.label).toLocaleLowerCase().substr(0,n.length)===n)}filter(n){if(!n){this.resetFilteredItems();return}this._filteredItems=[],n=this._ngSelect.searchFn()?n:IC(n).toLocaleLowerCase();let e=this._ngSelect.searchFn()||this._defaultSearchFn,i=this._ngSelect.hideSelected();for(let r of Array.from(this._groups.keys())){let o=[];for(let a of this._groups.get(r)){if(i&&(a.parent&&a.parent.selected||a.selected))continue;let s=this._ngSelect.searchFn()?a.value:a;e(n,s)&&o.push(a)}if(o.length>0){let[a]=o.slice(-1);if(a.parent){let s=this._items.find(l=>l===a.parent);this._filteredItems.push(s)}this._filteredItems.push(...o)}}}resetFilteredItems(){this._filteredItems.length!==this._items.length&&(this._ngSelect.hideSelected()&&this.selectedItems.length>0?this._filteredItems=this._items.filter(n=>!n.selected):this._filteredItems=this._items)}unmarkItem(){this._markedIndex=-1}markNextItem(){this._stepToItem(1)}markPreviousItem(){this._stepToItem(-1)}markItem(n){this._markedIndex=this._filteredItems.indexOf(n)}markSelectedOrDefault(n){if(this._filteredItems.length===0)return;let e=this._getLastMarkedIndex();e>-1?this._markedIndex=e:this._markedIndex=n?this.filteredItems.findIndex(i=>!i.disabled):-1}resolveNested(n,e){if(!Su(n))return n;if(e.indexOf(".")===-1)return n[e];{let i=e.split("."),r=n;for(let o=0,a=i.length;othis._ngSelect.compareWith()(o.value,e.value));else{let o=i?this.resolveNested(e.value,i):e.value;r=Ji(o)?this.findItem(o):null}this._selectionModel.unselect(e,n),this._selectionModel.select(r||e,n,this._ngSelect.selectableGroupAsModel())}this._ngSelect.hideSelected()&&(this._filteredItems=this.filteredItems.filter(e=>this.selectedItems.indexOf(e)===-1))}_showSelected(n){if(this._filteredItems.push(n),n.parent){let e=n.parent;this._filteredItems.find(r=>r===e)||this._filteredItems.push(e)}else if(n.children)for(let e of n.children)e.selected=!1,this._filteredItems.push(e);this._filteredItems=[...this._filteredItems.sort((e,i)=>e.index-i.index)]}_hideSelected(n){this._filteredItems=this._filteredItems.filter(e=>e!==n),n.parent?n.parent.children.every(i=>i.selected)&&(this._filteredItems=this._filteredItems.filter(i=>i!==n.parent)):n.children&&(this._filteredItems=this.filteredItems.filter(e=>e.parent!==n))}_defaultSearchFn(n,e){return IC(e.label).toLocaleLowerCase().indexOf(n)>-1}_getNextItemIndex(n){return n>0?this._markedIndex>=this._filteredItems.length-1?0:this._markedIndex+1:this._markedIndex<=0?this._filteredItems.length-1:this._markedIndex-1}_stepToItem(n){this._filteredItems.length===0||this._filteredItems.every(e=>e.disabled)||(this._markedIndex=this._getNextItemIndex(n),this.markedItem.disabled&&this._stepToItem(n))}_getLastMarkedIndex(){if(this._ngSelect.hideSelected()||this._markedIndex>-1&&this.markedItem===void 0)return-1;let n=this._filteredItems.indexOf(this.lastSelectedItem);return this.lastSelectedItem&&n<0?-1:Math.max(this.markedIndex,n)}_groupBy(n,e){let i=new Map;if(n.length===0)return i;if(Array.isArray(n[0].value[e])){for(let a of n){let s=(a.value[e]||[]).map((l,c)=>this.mapItem(l,c));i.set(a,s)}return i}let r=AC(this._ngSelect.groupBy()),o=a=>{let s=r?e(a.value):a.value[e];return Ji(s)?s:void 0};for(let a of n){let s=o(a),l=i.get(s);l?l.push(a):i.set(s,[a])}return i}_flatten(n){let e=AC(this._ngSelect.groupBy()),i=[];for(let r of Array.from(n.keys())){let o=i.length;if(r===void 0){let m=n.get(void 0)||[];i.push(...m.map(f=>(f.index=o++,f)));continue}let a=Su(r),s={label:a?"":String(r),children:void 0,parent:null,index:o++,disabled:!this._ngSelect.selectableGroup(),htmlId:yz()},l=e?this._ngSelect.bindLabel():this._ngSelect.groupBy(),c=this._ngSelect.groupValue()||(()=>a?r.value:{[l]:r}),d=n.get(r).map(m=>(m.parent=s,m.children=void 0,m.index=o++,m));s.children=d,s.value=c(r,d.map(m=>m.value)),i.push(s),i.push(...d)}return i}},xz=(()=>{let n=class n{constructor(){this._dimensions={itemHeight:0,panelHeight:0,itemsPerViewport:0}}get dimensions(){return this._dimensions}calculateItems(i,r,o){let a=this._dimensions,s=a.itemHeight*r,c=Math.max(0,i)/s*r,d=Math.min(r,Math.ceil(c)+(a.itemsPerViewport+1)),f=Math.max(0,d-a.itemsPerViewport),b=Math.min(f,Math.floor(c)),v=a.itemHeight*Math.ceil(b)-a.itemHeight*Math.min(b,o);return v=isNaN(v)?0:v,b=isNaN(b)?-1:b,d=isNaN(d)?-1:d,b-=o,b=Math.max(0,b),d+=o,d=Math.min(r,d),{topPadding:v,scrollHeight:s,start:b,end:d}}setDimensions(i,r){let o=Math.max(1,Math.floor(r/i));this._dimensions={itemHeight:i,panelHeight:r,itemsPerViewport:o}}getScrollTo(i,r,o){let{panelHeight:a}=this.dimensions,s=i+r,l=o,c=l+a;return a>=s&&o===i?null:s>c?l+s-c:i<=l?i:null}};n.\u0275fac=function(r){return new(r||n)},n.\u0275prov=O({token:n,factory:n.\u0275fac});let t=n;return t})(),gz=["top","right","bottom","left"],_me=typeof requestAnimationFrame<"u"?G_:U_,gI=(()=>{let n=class n{get currentPosition(){return this._currentPosition}get itemsLength(){return this._itemsLength}set itemsLength(i){i!==this._itemsLength&&(this._itemsLength=i,this._onItemsLengthChanged())}get _startOffset(){if(this.markedItem()){let{itemHeight:i,panelHeight:r}=this._panelService.dimensions,o=this.markedItem().index*i;return r>o?0:o}return 0}constructor(){this._renderer=u(je),this._zone=u(ae),this._panelService=u(xz),this._document=u(ge,{optional:!0}),this._destroyRef=u(nn),this._dropdown=u(q).nativeElement,this.items=ne([]),this.showAddTag=ne(!1,{transform:V}),this.markedItem=ne(void 0),this.position=ne("auto"),this.appendTo=ne(void 0),this.bufferAmount=ne(void 0),this.virtualScroll=ne(!1,{transform:V}),this.headerTemplate=ne(void 0),this.footerTemplate=ne(void 0),this.filterValue=ne(null),this.ariaLabelDropdown=ne(null),this.outsideClickEvent=ne("click"),this.update=bi(),this.scroll=bi(),this.scrollToEnd=bi(),this.outsideClick=bi(),this.contentElementRef=qn("content",{read:q}),this.scrollElementRef=qn("scroll",{read:q}),this.paddingElementRef=qn("padding",{read:q}),this._virtualPadding=Zt(()=>this.paddingElementRef()?.nativeElement),this._scrollablePanel=Zt(()=>this.scrollElementRef()?.nativeElement),this._contentPanel=Zt(()=>this.contentElementRef()?.nativeElement),this._scrollToEndFired=!1,this._updateScrollHeight=!1,this._lastScrollPosition=0,this._destroyRef.onDestroy(()=>{this.appendTo()&&this._renderer.removeChild(this._dropdown.parentNode,this._dropdown)})}ngOnInit(){this._select=this._dropdown.parentElement,this._handleScroll(),this._handleOutsideClick(),this._appendDropdown(),this._setupMousedownListener()}ngOnChanges(i){if(i.items){let r=i.items;this._onItemsOrShowAddTagChange(r.currentValue,this.showAddTag(),r.firstChange)}if(i.showAddTag){let r=i.showAddTag;this._onItemsOrShowAddTagChange(this.items(),r.currentValue,r.firstChange)}}scrollTo(i,r=!1){if(!i)return;let o=this.items().indexOf(i);if(o<0||o>=this.itemsLength)return;let a;if(this.virtualScroll()){let s=this._panelService.dimensions.itemHeight;a=this._panelService.getScrollTo(o*s,s,this._lastScrollPosition)}else{let s=this._dropdown.querySelector(`#${i.htmlId}`),l=r?s.offsetTop:this._lastScrollPosition;a=this._panelService.getScrollTo(s.offsetTop,s.clientHeight,l)}Ji(a)&&(this._scrollablePanel().scrollTop=a)}scrollToTag(){let i=this._scrollablePanel();i.scrollTop=i.scrollHeight-i.clientHeight}adjustPosition(){this._updateYPosition()}_handleDropdownPosition(){this._currentPosition=this._calculateCurrentPosition(this._dropdown),gz.includes(this._currentPosition)?this._updateDropdownClass(this._currentPosition):this._updateDropdownClass("bottom"),this.appendTo()&&this._updateYPosition(),this._dropdown.style.opacity="1"}_updateDropdownClass(i){gz.forEach(o=>{let a=`ng-select-${o}`;this._renderer.removeClass(this._dropdown,a),this._renderer.removeClass(this._select,a)});let r=`ng-select-${i}`;this._renderer.addClass(this._dropdown,r),this._renderer.addClass(this._select,r)}_handleScroll(){this._zone.runOutsideAngular(()=>{this._scrollablePanel()&&zs(this._scrollablePanel(),"scroll").pipe(ku(this._destroyRef),Pl(0,_me)).subscribe(i=>{let r=i.target;r&&"scrollTop"in r&&this._onContentScrolled(r.scrollTop)})})}_handleOutsideClick(){this._document&&this._zone.runOutsideAngular(()=>{zs(this._document,this.outsideClickEvent(),{capture:!0}).pipe(ku(this._destroyRef)).subscribe(i=>this._checkToClose(i))})}_checkToClose(i){if(this._select.contains(i.target)||this._dropdown.contains(i.target))return;let r=i.path||i.composedPath&&i.composedPath();i.target&&i.target.shadowRoot&&r&&r[0]&&this._select.contains(r[0])||this._zone.run(()=>this.outsideClick.emit())}_onItemsOrShowAddTagChange(i=[],r,o){this._scrollToEndFired=!1,this.itemsLength=i.length,r&&i.length&&this.itemsLength++,this.virtualScroll()?this._updateItemsRange(o):(this._setVirtualHeight(),this._updateItems(o))}_updateItems(i){this.update.emit(this.items()),i!==!1&&this._zone.runOutsideAngular(()=>{Promise.resolve().then(()=>{let r=this._scrollablePanel().clientHeight;this._panelService.setDimensions(0,r),this._handleDropdownPosition(),this.scrollTo(this.markedItem(),i)})})}_updateItemsRange(i){this._zone.runOutsideAngular(()=>{this._measureDimensions().then(()=>{i?(this._renderItemsRange(this._startOffset),this._handleDropdownPosition()):this._renderItemsRange()})})}_onContentScrolled(i){this.virtualScroll()&&this._renderItemsRange(i),this._lastScrollPosition=i,this._fireScrollToEnd(i)}_updateVirtualHeight(i){this._updateScrollHeight&&(this._virtualPadding().style.height=`${i}px`,this._updateScrollHeight=!1)}_setVirtualHeight(){this._virtualPadding()&&(this._virtualPadding().style.height="0px")}_onItemsLengthChanged(){this._updateScrollHeight=!0}_renderItemsRange(i=null){if(i&&this._lastScrollPosition===i)return;i=i||this._scrollablePanel().scrollTop;let r=this._panelService.calculateItems(i,this.itemsLength,this.bufferAmount());this._updateVirtualHeight(r.scrollHeight),this._contentPanel().style.transform=`translateY(${r.topPadding}px)`,this._zone.run(()=>{this.update.emit(this.items().slice(r.start,r.end)),this.scroll.emit({start:r.start,end:r.end})}),Ji(i)&&this._lastScrollPosition===0&&(this._scrollablePanel().scrollTop=i,this._lastScrollPosition=i)}_measureDimensions(){if(this._panelService.dimensions.itemHeight>0||this.itemsLength===0)return Promise.resolve(this._panelService.dimensions);let[i]=this.items();return this.update.emit([i]),Promise.resolve().then(()=>{let o=this._dropdown.querySelector(`#${i.htmlId}`).clientHeight;this._virtualPadding().style.height=`${o*this.itemsLength}px`;let a=this._scrollablePanel().clientHeight;return this._panelService.setDimensions(o,a),this._panelService.dimensions})}_fireScrollToEnd(i){if(this._scrollToEndFired||i===0)return;let r=this.virtualScroll()?this._virtualPadding():this._contentPanel();i+this._dropdown.clientHeight>=r.clientHeight-1&&(this._zone.run(()=>this.scrollToEnd.emit()),this._scrollToEndFired=!0)}_calculateCurrentPosition(i){let r=this.position();if(r!=="auto")return r;let o=this._select.getBoundingClientRect(),a=document.documentElement.scrollTop||document.body.scrollTop,s=o.top+window.pageYOffset,l=o.height,c=i.getBoundingClientRect().height;return s+l+c>a+document.documentElement.clientHeight?"top":"bottom"}_appendDropdown(){if(this.appendTo()){if(this._parent=this._dropdown.shadowRoot?this._dropdown.shadowRoot.querySelector(this.appendTo()):document.querySelector(this.appendTo()),!this._parent)throw new Error(`appendTo selector ${this.appendTo()} did not found any parent element`);this._updateXPosition(),this._parent.appendChild(this._dropdown)}}_updateXPosition(){let i=this._select.getBoundingClientRect(),r=this._parent.getBoundingClientRect(),o=document.documentElement.dir==="rtl",a=i.left-r.left;if(o){let s=r.right-i.right;this._dropdown.style.right=s+"px",this._dropdown.style.left="auto"}else this._dropdown.style.left=a+"px",this._dropdown.style.right="auto";this._dropdown.style.width=i.width+"px",this._dropdown.style.minWidth=i.width+"px"}_updateYPosition(){let i=this._select.getBoundingClientRect(),r=this._parent.getBoundingClientRect(),o=i.height;if(this._currentPosition==="top"){let a=r.bottom-i.bottom;this._dropdown.style.bottom=a+o+"px",this._dropdown.style.top="auto"}else if(this._currentPosition==="bottom"){let a=i.top-r.top;this._dropdown.style.top=a+o+"px",this._dropdown.style.bottom="auto"}}_setupMousedownListener(){this._zone.runOutsideAngular(()=>{zs(this._dropdown,"mousedown").pipe(ku(this._destroyRef)).subscribe(i=>{i.target.tagName!=="INPUT"&&i.preventDefault()})})}};n.\u0275fac=function(r){return new(r||n)},n.\u0275cmp=E({type:n,selectors:[["ng-dropdown-panel"]],viewQuery:function(r,o){r&1&&(Pn(o.contentElementRef,xue,5,q),Pn(o.scrollElementRef,Cue,5,q),Pn(o.paddingElementRef,wue,5,q)),r&2&&Ho(3)},inputs:{items:[1,"items"],showAddTag:[1,"showAddTag"],markedItem:[1,"markedItem"],position:[1,"position"],appendTo:[1,"appendTo"],bufferAmount:[1,"bufferAmount"],virtualScroll:[1,"virtualScroll"],headerTemplate:[1,"headerTemplate"],footerTemplate:[1,"footerTemplate"],filterValue:[1,"filterValue"],ariaLabelDropdown:[1,"ariaLabelDropdown"],outsideClickEvent:[1,"outsideClickEvent"]},outputs:{update:"update",scroll:"scroll",scrollToEnd:"scrollToEnd",outsideClick:"outsideClick"},features:[Ae],ngContentSelectors:bz,decls:9,vars:7,consts:[["scroll",""],["padding",""],["content",""],[1,"ng-dropdown-header"],["role","listbox",1,"ng-dropdown-panel-items","scroll-host"],[1,"ng-dropdown-footer"],[3,"ngTemplateOutlet","ngTemplateOutletContext"]],template:function(r,o){r&1&&(Me(),N(0,Due,2,4,"div",3),h(1,"div",4,0),k(3,"div",null,1),h(5,"div",null,2),oe(7),p()(),N(8,Eue,2,4,"div",5)),r&2&&(L(o.headerTemplate()?0:-1),g(),X("aria-label",o.ariaLabelDropdown()),g(2),G("total-padding",o.virtualScroll()),g(2),G("scrollable-content",o.virtualScroll()&&o.items().length),g(3),L(o.footerTemplate()?8:-1))},dependencies:[Fn],encapsulation:2,changeDetection:0});let t=n;return t})(),_z=(()=>{let n=class n{constructor(){this.value=ne(),this.disabled=ne(!1,{transform:V}),this.elementRef=u(q),this.label=he(""),pt(()=>{let i=(this.elementRef.nativeElement.innerHTML||"").trim();i!==this.label()&&this.label.set(i)})}};n.\u0275fac=function(r){return new(r||n)},n.\u0275cmp=E({type:n,selectors:[["ng-option"]],inputs:{value:[1,"value"],disabled:[1,"disabled"]},ngContentSelectors:bz,decls:1,vars:0,template:function(r,o){r&1&&(Me(),oe(0))},encapsulation:2,changeDetection:0});let t=n;return t})(),Ps=(function(t){return t.Tab="Tab",t.Enter="Enter",t.Esc="Escape",t.Space=" ",t.ArrowUp="ArrowUp",t.ArrowDown="ArrowDown",t.Backspace="Backspace",t})(Ps||{});function Cz(){return new bI}var bI=class{constructor(){this._selected=[]}get value(){return this._selected}select(n,e,i){if(n.selected=!0,(!n.children||!e&&i)&&this._selected.push(n),e)if(n.parent){let r=n.parent.children.length,o=n.parent.children.filter(a=>a.selected).length;n.parent.selected=r===o}else n.children&&(this._setChildrenSelectedState(n.children,!0),this._removeChildren(n),i&&this._activeChildren(n)?this._selected=[...this._selected.filter(r=>r.parent!==n),n]:this._selected=[...this._selected,...n.children.filter(r=>!r.disabled)])}unselect(n,e){if(this._selected=this._selected.filter(i=>i!==n),n.selected=!1,e)if(n.parent&&n.parent.selected){let i=n.parent.children;this._removeParent(n.parent),this._removeChildren(n.parent),this._selected.push(...i.filter(r=>r!==n&&!r.disabled)),n.parent.selected=!1}else n.children&&(this._setChildrenSelectedState(n.children,!1),this._removeChildren(n))}clear(n){this._selected=n?this._selected.filter(e=>e.disabled):[]}_setChildrenSelectedState(n,e){for(let i of n)i.disabled||(i.selected=e)}_removeChildren(n){this._selected=[...this._selected.filter(e=>e.parent!==n),...n.children.filter(e=>e.parent===n&&e.disabled&&e.selected)]}_removeParent(n){this._selected=this._selected.filter(e=>e!==n)}_activeChildren(n){return n.children.every(e=>!e.disabled||e.selected)}},wz=new T("ng-select-selection-model"),Dz=(()=>{let n=class n{constructor(){this.classes=u(new Ii("class"),{optional:!0}),this.config=u(pme),this._cd=u(ye),this._console=u(fme),this._destroyRef=u(nn),this._disabled=he(!1),this.ariaLabelDropdown=ne("Options List"),this.ariaLabel=ne(void 0),this.markFirst=ne(!0,{transform:V}),this.placeholder=ne(this.config.placeholder),this.fixedPlaceholder=ne(!0),this.notFoundText=ne(void 0),this.typeToSearchText=ne(void 0),this.preventToggleOnRightClick=ne(!1),this.addTagText=ne(void 0),this.loadingText=ne(void 0),this.clearAllText=ne(void 0),this.dropdownPosition=ne("auto"),this.appendTo=ne(void 0),this.outsideClickEvent=ne(this.config.outsideClickEvent),this.loading=ne(!1,{transform:V}),this.closeOnSelect=ne(!0,{transform:V}),this.hideSelected=ne(!1,{transform:V}),this.selectOnTab=ne(!1,{transform:V}),this.openOnEnter=ne(void 0,{transform:V}),this.maxSelectedItems=ne(void 0,{transform:ct}),this.groupBy=ne(void 0),this.groupValue=ne(void 0),this.bufferAmount=ne(4,{transform:ct}),this.virtualScroll=ne(void 0,{transform:V}),this.selectableGroup=ne(!1,{transform:V}),this.tabFocusOnClearButton=ne(),this.selectableGroupAsModel=ne(!0,{transform:V}),this.searchFn=ne(null),this.trackByFn=ne(null),this.clearOnBackspace=ne(!0,{transform:V}),this.labelForId=ne(null),this.inputAttrs=ne({}),this.tabIndex=ne(void 0,{transform:ct}),this.readonly=ne(!1,{transform:V}),this.searchWhileComposing=ne(!0,{transform:V}),this.minTermLength=ne(0,{transform:ct}),this.editableSearchTerm=ne(!1,{transform:V}),this.ngClass=ne(null),this.typeahead=ne(void 0),this.multiple=ne(!1,{transform:V}),this.addTag=ne(!1),this.searchable=ne(!0,{transform:V}),this.clearable=ne(!0,{transform:V}),this.deselectOnClick=ne(),this.clearSearchOnAdd=ne(void 0),this.compareWith=ne(void 0,{transform:a=>{if(a!=null&&!AC(a))throw Error("`compareWith` must be a function.");return a}}),this.keyDownFn=ne(a=>!0),this.bindLabel=Em(void 0),this.bindValue=Em(void 0),this.appearance=Em(void 0),this.isOpen=Em(!1),this.items=Em([]),this.blurEvent=bi({alias:"blur"}),this.focusEvent=bi({alias:"focus"}),this.changeEvent=bi({alias:"change"}),this.openEvent=bi({alias:"open"}),this.closeEvent=bi({alias:"close"}),this.searchEvent=bi({alias:"search"}),this.clearEvent=bi({alias:"clear"}),this.addEvent=bi({alias:"add"}),this.removeEvent=bi({alias:"remove"}),this.scroll=bi({alias:"scroll"}),this.scrollToEnd=bi({alias:"scrollToEnd"}),this.disabled=Zt(()=>this.readonly()||this._disabled()),this.clearSearchOnAddValue=Zt(()=>Ji(this.clearSearchOnAdd())?this.clearSearchOnAdd():Ji(this.config.clearSearchOnAdd)?this.config.clearSearchOnAdd:this.closeOnSelect()),this.deselectOnClickValue=Zt(()=>Ji(this.deselectOnClick())?this.deselectOnClick():Ji(this.config.deselectOnClick)?this.config.deselectOnClick:this.multiple()),this.optionTemplate=fr(OC,{read:te}),this.optgroupTemplate=fr(RC,{read:te}),this.labelTemplate=fr(PC,{read:te}),this.multiLabelTemplate=fr(FC,{read:te}),this.headerTemplate=fr(NC,{read:te}),this.footerTemplate=fr(LC,{read:te}),this.notFoundTemplate=fr(VC,{read:te}),this.placeholderTemplate=fr(BC,{read:te}),this.typeToSearchTemplate=fr(jC,{read:te}),this.loadingTextTemplate=fr(HC,{read:te}),this.tagTemplate=fr(zC,{read:te}),this.loadingSpinnerTemplate=fr(UC,{read:te}),this.clearButtonTemplate=fr($C,{read:te}),this.ngOptions=o2(_z,{descendants:!0}),this.dropdownPanel=qn(Kt(()=>gI)),this.searchInput=qn("searchInput"),this.clearButton=qn("clearButton"),this.dropdownId=yz(),this.escapeHTML=!0,this.viewPortItems=[],this.tabFocusOnClear=he(!0),this.autoFocus=u(new Ii("autofocus"),{optional:!0}),this._defaultLabel="label",this._editableSearchTerm=Zt(()=>this.editableSearchTerm()&&!this.multiple()),this._injector=u(de),this._isComposing=!1,this._keyPress$=new z,this._pressedKeys=[],this._searchTerm=he(null),this._validTerm=Zt(()=>{let a=this._searchTerm()?.trim();return a&&a.length>=this.minTermLength()}),this.clearItem=a=>{let s=this.selectedItems.find(l=>l.value===a);this.unselect(s)},this.trackByOption=(a,s)=>this.trackByFn()?this.trackByFn()(s.value):s,this._onChange=a=>{},this._onTouched=()=>{};let i=this.config,r=u(wz,{optional:!0}),o=u(q);this._mergeGlobalConfig(i),this.itemsList=new _I(this,r?r():Cz()),this.element=o.nativeElement}get filtered(){return!!this.searchTerm&&this.searchable()||this._isComposing}get focused(){return this._focused}get searchTerm(){return this._searchTerm()}get selectedItems(){return this.itemsList.selectedItems}get selectedValues(){return this.selectedItems.map(i=>i.value)}get hasValue(){return this.selectedItems.length>0}get currentPanelPosition(){if(this.dropdownPanel())return this.dropdownPanel().currentPosition}get showAddTag(){if(!this._validTerm())return!1;let i=this.searchTerm.toLowerCase().trim();return this.addTag()&&!this.itemsList.filteredItems.some(r=>r.label.toLowerCase()===i)&&(!this.hideSelected()&&this.isOpen()||!this.selectedItems.some(r=>r.label.toLowerCase()===i))&&!this.loading()}ngOnInit(){this._handleKeyPresses(),this._setInputAttributes()}ngOnChanges(i){i.multiple&&this.itemsList.clearSelected(),i.items&&(this._itemsAreUsed=!0,this._setItems(i.items.currentValue||[])),i.isOpen&&(this._manualOpen=Ji(i.isOpen.currentValue)),i.groupBy&&(i.items||this._setItems([...this.items()])),i.inputAttrs&&this._setInputAttributes(),this._setTabFocusOnClear()}ngAfterViewInit(){this._itemsAreUsed||(this.escapeHTML=!1,this._setItemsFromNgOptions()),Ji(this.autoFocus)&&this.focus()}handleKeyDown(i){let r=i.key;if(Object.values(Ps).includes(r)){if(this.keyDownFn()(i)===!1)return;this.handleKeyCode(i)}else r&&r.length===1&&this._keyPress$.next(r.toLocaleLowerCase())}handleKeyCode(i){let r=i.target;this.clearButton()&&this.clearButton().nativeElement===r?this.handleKeyCodeClear(i):this.handleKeyCodeInput(i)}handleKeyCodeInput(i){switch(i.key){case Ps.ArrowDown:this._handleArrowDown(i);break;case Ps.ArrowUp:this._handleArrowUp(i);break;case Ps.Space:this._handleSpace(i);break;case Ps.Enter:this._handleEnter(i);break;case Ps.Tab:this._handleTab(i);break;case Ps.Esc:this.close(),i.preventDefault();break;case Ps.Backspace:this._handleBackspace();break}}handleKeyCodeClear(i){switch(i.key){case Ps.Enter:this.handleClearClick(),i.preventDefault();break}}handleMousedown(i){if(this.disabled())return;if(this.preventToggleOnRightClick()&&i.button===2)return!1;let r=i.target;if(r.tagName!=="INPUT"&&i.preventDefault(),!r.classList.contains("ng-clear-wrapper")){if(r.classList.contains("ng-arrow-wrapper")){this.handleArrowClick();return}r.classList.contains("ng-value-icon")||(this._focused||this.focus(),this.searchable()?this.open():this.toggle())}}handleArrowClick(){this.isOpen()?this.close():this.open()}handleClearClick(i){this.hasValue&&(this.itemsList.clearSelected(!0),this._updateNgModel()),this._clearSearch(),this.focus(),this.clearEvent.emit(),this._onSelectionChanged()}clearModel(){this.clearable()&&(this.itemsList.clearSelected(),this._updateNgModel())}writeValue(i){this.itemsList.clearSelected(),this._handleWriteValue(i),this._editableSearchTerm()&&this._setSearchTermFromItems(),this._cd.markForCheck()}registerOnChange(i){this._onChange=i}registerOnTouched(i){this._onTouched=i}setDisabledState(i){this._disabled.set(i),this._cd.markForCheck()}toggle(){this.isOpen()?this.close():this.open()}open(){this.disabled()||this.isOpen()||this._manualOpen||!this.typeahead()?.observed&&!this.addTag()&&this.itemsList.noItemsToSelect||(this.isOpen.set(!0),this.itemsList.markSelectedOrDefault(this.markFirst()),this.openEvent.emit(),this.searchTerm||this.focus(),this.detectChanges())}close(){!this.isOpen()||this._manualOpen||(this.isOpen.set(!1),this._isComposing=!1,this._editableSearchTerm()?this.itemsList.resetFilteredItems():this._clearSearch(),this.itemsList.unmarkItem(),this._onTouched(),this.closeEvent.emit(),this._cd.markForCheck())}toggleItem(i){!i||i.disabled||this.disabled()||(this.deselectOnClickValue()&&i.selected?this.unselect(i):this.select(i),this._editableSearchTerm()&&this._setSearchTermFromItems())}select(i){i.selected||(this.itemsList.select(i),this.clearSearchOnAddValue()&&!this._editableSearchTerm()&&this._clearSearch(),this._updateNgModel(),this.multiple()&&this.addEvent.emit(i.value)),(this.closeOnSelect()||this.itemsList.noItemsToSelect)&&this.close(),this._onSelectionChanged()}focus(){this.searchInput().nativeElement.focus()}blur(){this.searchInput().nativeElement.blur()}unselect(i){i&&(this.itemsList.unselect(i),this.focus(),this._updateNgModel(),this.removeEvent.emit(i.value),this._onSelectionChanged())}selectTag(){let i;AC(this.addTag())?i=this.addTag()(this.searchTerm):i=this._primitive?this.searchTerm:{[this.bindLabel()]:this.searchTerm};let r=o=>this.typeahead()?.observed||!this.isOpen()?this.itemsList.mapItem(o,null):this.itemsList.addItem(o);mme(i)?i.then(o=>this.select(r(o))).catch(()=>{}):i&&this.select(r(i))}showClear(){return this.clearable()&&(this.hasValue||this.searchTerm)&&!this.disabled()}focusOnClear(){this.blur(),this.clearButton()&&this.clearButton().nativeElement.focus()}showNoItemsFound(){let i=this.itemsList.filteredItems.length===0;return(i&&!this.typeahead()?.observed&&!this.loading()||i&&this.typeahead()?.observed&&this._validTerm()&&!this.loading())&&!this.showAddTag}showTypeToSearch(){return this.itemsList.filteredItems.length===0&&this.typeahead()?.observed&&!this._validTerm()&&!this.loading()}onCompositionStart(){this._isComposing=!0}onCompositionEnd(i){this._isComposing=!1,!this.searchWhileComposing()&&this.filter(i)}filter(i){this._isComposing&&!this.searchWhileComposing()||(this._searchTerm.set(i),this.typeahead()?.observed&&(this._validTerm()||this.minTermLength()===0)&&this.typeahead().next(i),this.typeahead()?.observed||(this.itemsList.filter(i),this.isOpen()&&this.itemsList.markSelectedOrDefault(this.markFirst())),this.searchEvent.emit({term:i,items:this.itemsList.filteredItems.map(r=>r.value)}),this.open())}onInputFocus(i){this._focused||(this._editableSearchTerm()&&this._setSearchTermFromItems(),this.element.classList.add("ng-select-focused"),this.focusEvent.emit(i),this._focused=!0)}onInputBlur(i){this.element.classList.remove("ng-select-focused"),this.blurEvent.emit(i),!this.isOpen()&&!this.disabled()&&this._onTouched(),this._editableSearchTerm()&&this._setSearchTermFromItems(),this._focused=!1}onItemHover(i){i.disabled||this.itemsList.markItem(i)}detectChanges(){this._cd.destroyed||this._cd.detectChanges()}_setSearchTermFromItems(){let i=this.selectedItems?.[0];this._searchTerm.set(i?.label??null)}_setItems(i){let r=i[0];this.bindLabel.set(this.bindLabel()||this._defaultLabel),this._primitive=Ji(r)?!Su(r):this._primitive||this.bindLabel()===this._defaultLabel,this.itemsList.setItems(i),i.length>0&&this.hasValue&&this.itemsList.mapSelectedItems(),this.isOpen()&&Ji(this.searchTerm)&&!this.typeahead()?.observed&&this.itemsList.filter(this.searchTerm),(this.typeahead()?.observed||this.isOpen())&&this.itemsList.markSelectedOrDefault(this.markFirst())}_setItemsFromNgOptions(){Ar(()=>{let i=this.ngOptions();this.bindLabel.set(this._defaultLabel);let r=i.map(o=>({$ngOptionValue:o.value(),$ngOptionLabel:o.elementRef.nativeElement.innerHTML,disabled:o.disabled()}))??[];this.items.set(r),this.itemsList.setItems(r),this.hasValue&&this.itemsList.mapSelectedItems(),this._cd.detectChanges(),i.map(o=>({option:o,item:this.itemsList.findItem(o.value())})).filter(({item:o})=>Ji(o)).forEach(({option:o,item:a})=>{a.disabled=o.disabled(),a.label=o.label()||a.label})},{injector:this._injector})}_isValidWriteValue(i){if(!Ji(i)||this.multiple()&&i===""||Array.isArray(i)&&i.length===0)return!1;let r=o=>!Ji(this.compareWith())&&Su(o)&&this.bindValue()?(this._console.warn(`Setting object(${JSON.stringify(o)}) as your model with bindValue is not allowed unless [compareWith] is used.`),!1):!0;return this.multiple()?Array.isArray(i)?i.every(o=>r(o)):(this._console.warn("Multiple select ngModel should be array."),!1):r(i)}_handleWriteValue(i){if(!this._isValidWriteValue(i))return;let r=o=>{let a=this.itemsList.findItem(o);if(a)this.itemsList.select(a);else{let s=Su(o),l=!s&&!this.bindValue();s||l?this.itemsList.select(this.itemsList.mapItem(o,null)):this.bindValue()&&(a={[this.bindLabel()]:null,[this.bindValue()]:o},this.itemsList.select(this.itemsList.mapItem(a,null)))}};this.multiple()?i.forEach(o=>r(o)):r(i)}_handleKeyPresses(){this.searchable()||this._keyPress$.pipe(ku(this._destroyRef),Be(i=>this._pressedKeys.push(i)),Rt(200),ce(()=>this._pressedKeys.length>0),se(()=>this._pressedKeys.join(""))).subscribe(i=>{let r=this.itemsList.findByLabel(i);r&&(this.isOpen()?(this.itemsList.markItem(r),this._scrollToMarked(),this._cd.markForCheck()):this.select(r)),this._pressedKeys=[]})}_setInputAttributes(){let i=this.searchInput().nativeElement,r=M({type:"text",autocorrect:"off",autocapitalize:"off",autocomplete:"off","aria-controls":this.dropdownId},this.inputAttrs());for(let o of Object.keys(r))i.setAttribute(o,r[o])}_setTabFocusOnClear(){this.tabFocusOnClear.set(Ji(this.tabFocusOnClearButton())?!!this.tabFocusOnClearButton():this.config.tabFocusOnClear)}_updateNgModel(){let i=[];for(let o of this.selectedItems)if(this.bindValue()){let a=null;if(o.children){let s=this.groupValue()?this.bindValue():this.groupBy();a=o.value[s||this.groupBy()]}else a=this.itemsList.resolveNested(o.value,this.bindValue());i.push(a)}else i.push(o.value);let r=this.selectedItems.map(o=>o.value);this.multiple()?(this._onChange(i),this.changeEvent.emit(r)):(this._onChange(Ji(i[0])?i[0]:null),this.changeEvent.emit(r[0])),this._cd.markForCheck()}_clearSearch(){this.searchTerm&&(this._changeSearch(null),this.itemsList.resetFilteredItems())}_changeSearch(i){this._searchTerm.set(i),this.typeahead()?.observed&&this.typeahead().next(i)}_scrollToMarked(){!this.isOpen()||!this.dropdownPanel()||this.dropdownPanel().scrollTo(this.itemsList.markedItem)}_scrollToTag(){!this.isOpen()||!this.dropdownPanel()||this.dropdownPanel().scrollToTag()}_onSelectionChanged(){let i=this.appendTo()??this.config.appendTo;this.isOpen()&&this.deselectOnClickValue()&&i&&(this._cd.detectChanges(),this.dropdownPanel().adjustPosition())}_handleTab(i){if(this.isOpen()===!1){if(this.showClear()&&!i.shiftKey&&this.tabFocusOnClear())this.focusOnClear(),i.preventDefault();else if(!this.addTag())return}this.selectOnTab()?this.itemsList.markedItem?(this.toggleItem(this.itemsList.markedItem),i.preventDefault()):this.showAddTag?(this.selectTag(),i.preventDefault()):this.close():this.close()}_handleEnter(i){let r=this.openOnEnter()??this.config.openOnEnter;if(this.isOpen()||this._manualOpen)this.itemsList.markedItem?this.toggleItem(this.itemsList.markedItem):this.showAddTag&&this.selectTag();else if(r)this.open();else return;i.preventDefault()}_handleSpace(i){this.isOpen()||this._manualOpen||(this.open(),i.preventDefault())}_handleArrowDown(i){this._nextItemIsTag(1)?(this.itemsList.unmarkItem(),this._scrollToTag()):(this.itemsList.markNextItem(),this._scrollToMarked()),this.open(),i.preventDefault()}_handleArrowUp(i){this.isOpen()&&(this._nextItemIsTag(-1)?(this.itemsList.unmarkItem(),this._scrollToTag()):(this.itemsList.markPreviousItem(),this._scrollToMarked()),i.preventDefault())}_nextItemIsTag(i){let r=this.itemsList.markedIndex+i;return this.addTag()&&this.searchTerm&&this.itemsList.markedItem&&(r<0||r===this.itemsList.filteredItems.length)}_handleBackspace(){this.searchTerm||!this.clearable()||!this.clearOnBackspace()||!this.hasValue||(this.multiple()?this.unselect(this.itemsList.lastSelectedItem):this.clearModel())}_mergeGlobalConfig(i){this.bindValue.set(this.bindValue()||i.bindValue),this.bindLabel.set(this.bindLabel()||i.bindLabel),this.appearance.set(this.appearance()||i.appearance),this._setTabFocusOnClear()}getVirtualScroll(i){return Ji(this.virtualScroll)?this.virtualScroll():this.isVirtualScrollDisabled(i)}isVirtualScrollDisabled(i){return Ji(i.disableVirtualScroll)?!i.disableVirtualScroll:!1}};n.\u0275fac=function(r){return new(r||n)},n.\u0275cmp=E({type:n,selectors:[["ng-select"]],contentQueries:function(r,o,a){r&1&&(Rn(a,o.optionTemplate,OC,5,te),Rn(a,o.optgroupTemplate,RC,5,te),Rn(a,o.labelTemplate,PC,5,te),Rn(a,o.multiLabelTemplate,FC,5,te),Rn(a,o.headerTemplate,NC,5,te),Rn(a,o.footerTemplate,LC,5,te),Rn(a,o.notFoundTemplate,VC,5,te),Rn(a,o.placeholderTemplate,BC,5,te),Rn(a,o.typeToSearchTemplate,jC,5,te),Rn(a,o.loadingTextTemplate,HC,5,te),Rn(a,o.tagTemplate,zC,5,te),Rn(a,o.loadingSpinnerTemplate,UC,5,te),Rn(a,o.clearButtonTemplate,$C,5,te),Rn(a,o.ngOptions,_z,5)),r&2&&Ho(14)},viewQuery:function(r,o){r&1&&(Pn(o.dropdownPanel,gI,5),Pn(o.searchInput,Mue,5),Pn(o.clearButton,kue,5)),r&2&&Ho(3)},hostVars:20,hostBindings:function(r,o){r&1&&S("keydown",function(s){return o.handleKeyDown(s)}),r&2&&G("ng-select",!0)("ng-select-single",!o.multiple())("ng-select-typeahead",o.typeahead())("ng-select-multiple",o.multiple())("ng-select-taggable",o.addTag())("ng-select-searchable",o.searchable())("ng-select-clearable",o.clearable())("ng-select-opened",o.isOpen())("ng-select-filtered",o.filtered)("ng-select-disabled",o.disabled())},inputs:{ariaLabelDropdown:[1,"ariaLabelDropdown"],ariaLabel:[1,"ariaLabel"],markFirst:[1,"markFirst"],placeholder:[1,"placeholder"],fixedPlaceholder:[1,"fixedPlaceholder"],notFoundText:[1,"notFoundText"],typeToSearchText:[1,"typeToSearchText"],preventToggleOnRightClick:[1,"preventToggleOnRightClick"],addTagText:[1,"addTagText"],loadingText:[1,"loadingText"],clearAllText:[1,"clearAllText"],dropdownPosition:[1,"dropdownPosition"],appendTo:[1,"appendTo"],outsideClickEvent:[1,"outsideClickEvent"],loading:[1,"loading"],closeOnSelect:[1,"closeOnSelect"],hideSelected:[1,"hideSelected"],selectOnTab:[1,"selectOnTab"],openOnEnter:[1,"openOnEnter"],maxSelectedItems:[1,"maxSelectedItems"],groupBy:[1,"groupBy"],groupValue:[1,"groupValue"],bufferAmount:[1,"bufferAmount"],virtualScroll:[1,"virtualScroll"],selectableGroup:[1,"selectableGroup"],tabFocusOnClearButton:[1,"tabFocusOnClearButton"],selectableGroupAsModel:[1,"selectableGroupAsModel"],searchFn:[1,"searchFn"],trackByFn:[1,"trackByFn"],clearOnBackspace:[1,"clearOnBackspace"],labelForId:[1,"labelForId"],inputAttrs:[1,"inputAttrs"],tabIndex:[1,"tabIndex"],readonly:[1,"readonly"],searchWhileComposing:[1,"searchWhileComposing"],minTermLength:[1,"minTermLength"],editableSearchTerm:[1,"editableSearchTerm"],ngClass:[1,"ngClass"],typeahead:[1,"typeahead"],multiple:[1,"multiple"],addTag:[1,"addTag"],searchable:[1,"searchable"],clearable:[1,"clearable"],deselectOnClick:[1,"deselectOnClick"],clearSearchOnAdd:[1,"clearSearchOnAdd"],compareWith:[1,"compareWith"],keyDownFn:[1,"keyDownFn"],bindLabel:[1,"bindLabel"],bindValue:[1,"bindValue"],appearance:[1,"appearance"],isOpen:[1,"isOpen"],items:[1,"items"]},outputs:{bindLabel:"bindLabelChange",bindValue:"bindValueChange",appearance:"appearanceChange",isOpen:"isOpenChange",items:"itemsChange",blurEvent:"blur",focusEvent:"focus",changeEvent:"change",openEvent:"open",closeEvent:"close",searchEvent:"search",clearEvent:"clear",addEvent:"add",removeEvent:"remove",scroll:"scroll",scrollToEnd:"scrollToEnd"},exportAs:["ngSelect"],features:[Ce([{provide:tr,useExisting:Kt(()=>n),multi:!0},xz]),Ae],decls:15,vars:20,consts:[["searchInput",""],["defaultPlaceholderTemplate",""],["defaultLabelTemplate",""],["defaultLoadingSpinnerTemplate",""],["clearButton",""],["defaultOptionTemplate",""],["defaultTagTemplate",""],["defaultNotFoundTemplate",""],["defaultTypeToSearchTemplate",""],["defaultLoadingTextTemplate",""],[1,"ng-select-container",3,"mousedown"],[1,"ng-value-container"],[3,"ngTemplateOutlet","ngTemplateOutletContext"],[1,"ng-input"],["aria-autocomplete","list","role","combobox",3,"blur","change","compositionend","compositionstart","focus","input","disabled","readOnly","value"],[1,"ng-arrow-wrapper"],[1,"ng-arrow"],[1,"ng-dropdown-panel",3,"virtualScroll","bufferAmount","appendTo","position","outsideClickEvent","headerTemplate","footerTemplate","filterValue","items","showAddTag","markedItem","ng-select-multiple","class","id","ariaLabelDropdown"],["aria-atomic","true","aria-live","polite","role","status",1,"ng-visually-hidden"],[3,"ngTemplateOutlet"],[1,"ng-placeholder"],[1,"ng-value",3,"ng-value-disabled"],[1,"ng-value"],["aria-hidden","true",1,"ng-value-icon","left",3,"click"],[1,"ng-value-label",3,"ngItemLabel","escape"],[1,"ng-spinner-loader"],["role","button","tabindex","0",1,"ng-clear-wrapper",3,"title"],["role","button","tabindex","0",1,"ng-clear-wrapper",3,"click","title"],["aria-hidden","true",1,"ng-clear"],[1,"ng-dropdown-panel",3,"update","scroll","scrollToEnd","outsideClick","virtualScroll","bufferAmount","appendTo","position","outsideClickEvent","headerTemplate","footerTemplate","filterValue","items","showAddTag","markedItem","id","ariaLabelDropdown"],[1,"ng-option",3,"ng-option-disabled","ng-option-selected","ng-optgroup","ng-option","ng-option-child","ng-option-marked"],["role","option",1,"ng-option",3,"ng-option-marked"],[1,"ng-option",3,"click","mouseover"],[1,"ng-option-label",3,"ngItemLabel","escape"],["role","option",1,"ng-option",3,"mouseover","click"],[1,"ng-tag-label"],[1,"ng-option","ng-option-disabled"]],template:function(r,o){if(r&1){let a=Y();h(0,"div",10),S("mousedown",function(l){return I(a),A(o.handleMousedown(l))}),h(1,"div",11),N(2,Rue,3,1),N(3,Lue,2,0),N(4,Bue,1,5,null,12),h(5,"div",13)(6,"input",14,0),S("blur",function(l){return I(a),A(o.onInputBlur(l))})("change",function(l){return I(a),A(l.stopPropagation())})("compositionend",function(){I(a);let l=Se(7);return A(o.onCompositionEnd(l.value))})("compositionstart",function(){return I(a),A(o.onCompositionStart())})("focus",function(l){return I(a),A(o.onInputFocus(l))})("input",function(){I(a);let l=Se(7);return A(o.filter(l.value))}),p()()(),N(8,zue,3,1),N(9,Wue,2,1),h(10,"span",15),k(11,"span",16),p()(),N(12,sme,8,21,"ng-dropdown-panel",17),h(13,"div",18),N(14,lme,1,1),p()}r&2&&(G("ng-appearance-outline",o.appearance()==="outline")("ng-has-value",o.hasValue),g(2),L(o.selectedItems.length===0&&!o.searchTerm||(o.fixedPlaceholder()??o.config.fixedPlaceholder)?2:-1),g(),L((!o.multiLabelTemplate()||!o.multiple())&&o.selectedItems.length>0?3:-1),g(),L(o.multiple()&&o.multiLabelTemplate()&&o.selectedValues.length>0?4:-1),g(2),y("disabled",o.disabled())("readOnly",!o.searchable()||o.itemsList.maxItemsSelected)("value",o.searchTerm??""),X("aria-activedescendant",o.isOpen()?o.itemsList==null||o.itemsList.markedItem==null?null:o.itemsList.markedItem.htmlId:null)("aria-controls",o.isOpen()?o.dropdownId:null)("aria-expanded",o.isOpen())("aria-label",o.ariaLabel())("id",o.labelForId())("tabindex",o.tabIndex()),g(2),L(o.loading()?8:-1),g(),L(o.showClear()?9:-1),g(3),L(o.isOpen()?12:-1),g(2),L(o.isOpen()&&o.showNoItemsFound()?14:-1))},dependencies:[Fn,hme,gI],styles:[`@charset "UTF-8";.ng-select{position:relative;display:block;-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box}.ng-select div,.ng-select input,.ng-select span{-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box}.ng-select [hidden]{display:none}.ng-select.ng-select-searchable .ng-select-container .ng-value-container .ng-input{opacity:1}.ng-select.ng-select-opened .ng-select-container{z-index:1001}.ng-select.ng-select-disabled .ng-select-container .ng-value-container .ng-placeholder,.ng-select.ng-select-disabled .ng-select-container .ng-value-container .ng-value{-webkit-user-select:none;user-select:none;cursor:default}.ng-select.ng-select-disabled .ng-arrow-wrapper{cursor:default}.ng-select.ng-select-filtered .ng-placeholder{display:none}.ng-select .ng-select-container{cursor:default;display:flex;outline:none;overflow:hidden;position:relative;width:100%}.ng-select .ng-select-container .ng-value-container{display:flex;flex:1}.ng-select .ng-select-container .ng-value-container .ng-input{opacity:0}.ng-select .ng-select-container .ng-value-container .ng-input>input{box-sizing:content-box;background:none transparent;border:0 none;box-shadow:none;outline:none;padding:0;cursor:default;width:100%}.ng-select .ng-select-container .ng-value-container .ng-input>input::-ms-clear{display:none}.ng-select .ng-select-container .ng-value-container .ng-input>input[readonly]{-webkit-user-select:unset;user-select:unset;width:0;padding:0}.ng-select.ng-select-single.ng-select-filtered .ng-select-container .ng-value-container .ng-value{visibility:hidden}.ng-select.ng-select-single .ng-select-container .ng-value-container,.ng-select.ng-select-single .ng-select-container .ng-value-container .ng-value{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.ng-select.ng-select-single .ng-select-container .ng-value-container .ng-value .ng-value-icon{display:none}.ng-select.ng-select-single .ng-select-container .ng-value-container .ng-input{position:absolute;left:0;width:100%}.ng-select.ng-select-multiple.ng-select-disabled>.ng-select-container .ng-value-container .ng-value .ng-value-icon{display:none}.ng-select.ng-select-multiple .ng-select-container .ng-value-container{flex-wrap:wrap}.ng-select.ng-select-multiple .ng-select-container .ng-value-container .ng-placeholder{position:absolute}.ng-select.ng-select-multiple .ng-select-container .ng-value-container .ng-value{white-space:nowrap}.ng-select.ng-select-multiple .ng-select-container .ng-value-container .ng-value.ng-value-disabled .ng-value-icon{display:none}.ng-select.ng-select-multiple .ng-select-container .ng-value-container .ng-value .ng-value-icon{cursor:pointer}.ng-select.ng-select-multiple .ng-select-container .ng-value-container .ng-input{flex:1;z-index:2}.ng-select.ng-select-multiple .ng-select-container .ng-value-container .ng-placeholder{z-index:1}.ng-select .ng-clear-wrapper{cursor:pointer;position:relative;width:17px;-webkit-user-select:none;user-select:none}.ng-select .ng-clear-wrapper .ng-clear{display:inline-block;font-size:18px;line-height:1;pointer-events:none}.ng-select .ng-spinner-loader{border-radius:50%;width:17px;height:17px;margin-right:5px;font-size:10px;position:relative;text-indent:-9999em;border-top:2px solid rgba(66,66,66,.2);border-right:2px solid rgba(66,66,66,.2);border-bottom:2px solid rgba(66,66,66,.2);border-left:2px solid #424242;transform:translateZ(0);animation:load8 .8s infinite linear}.ng-select .ng-spinner-loader:after{border-radius:50%;width:17px;height:17px}@-webkit-keyframes load8{0%{-webkit-transform:rotate(0deg);transform:rotate(0)}to{-webkit-transform:rotate(360deg);transform:rotate(360deg)}}@keyframes load8{0%{-webkit-transform:rotate(0deg);transform:rotate(0)}to{-webkit-transform:rotate(360deg);transform:rotate(360deg)}}.ng-select .ng-arrow-wrapper{cursor:pointer;position:relative;text-align:center;-webkit-user-select:none;user-select:none}.ng-select .ng-arrow-wrapper .ng-arrow{pointer-events:none;display:inline-block;height:0;width:0;position:relative}.ng-dropdown-panel{box-sizing:border-box;position:absolute;opacity:0;width:100%;z-index:1050;-webkit-overflow-scrolling:touch}.ng-dropdown-panel .ng-dropdown-panel-items{display:block;height:auto;-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box;max-height:240px;overflow-y:auto}.ng-dropdown-panel .ng-dropdown-panel-items .ng-optgroup{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.ng-dropdown-panel .ng-dropdown-panel-items .ng-option{box-sizing:border-box;cursor:pointer;display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.ng-dropdown-panel .ng-dropdown-panel-items .ng-option .ng-option-label:empty:before{content:"\\200b"}.ng-dropdown-panel .ng-dropdown-panel-items .ng-option .highlighted{font-weight:700;text-decoration:underline}.ng-dropdown-panel .ng-dropdown-panel-items .ng-option.disabled{cursor:default}.ng-dropdown-panel .scroll-host{overflow:hidden;overflow-y:auto;position:relative;display:block;-webkit-overflow-scrolling:touch}.ng-dropdown-panel .scrollable-content{top:0;left:0;width:100%;height:100%;position:absolute}.ng-dropdown-panel .total-padding{width:1px;opacity:0}.ng-visually-hidden{position:absolute!important;width:1px;height:1px;margin:-1px;padding:0;overflow:hidden;clip:rect(0 0 0 0);border:0;white-space:nowrap} +`],encapsulation:2,changeDetection:0});let t=n;return t})(),vI=(()=>{let n=class n{};n.\u0275fac=function(r){return new(r||n)},n.\u0275mod=ee({type:n}),n.\u0275inj=J({providers:bme()});let t=n;return t})();function bme(){return[{provide:wz,useValue:Cz}]}var yme=["*"],xme=["ngSelect"],Cme=()=>({standalone:!0}),Mz=(t,n,e,i)=>({item:t,item$:n,index:e,searchTerm:i}),wme=(t,n,e)=>({item:t,clear:n,label:e}),Dme=(t,n)=>({items:t,clear:n}),yI=t=>({searchTerm:t});function Eme(t,n){}function Mme(t,n){if(t&1&&R(0,Eme,0,0,"ng-template",15),t&2){let e=n.item,i=n.item$,r=n.index,o=n.searchTerm,a=C(2);y("ngTemplateOutlet",a.optionTemplate)("ngTemplateOutletContext",wm(2,Mz,e,i,r,o))}}function kme(t,n){t&1&&R(0,Mme,1,7,"ng-template",2)}function Sme(t,n){}function Tme(t,n){if(t&1&&R(0,Sme,0,0,"ng-template",15),t&2){let e=n.item,i=n.item$,r=n.index,o=n.searchTerm,a=C(2);y("ngTemplateOutlet",a.optgroupTemplate)("ngTemplateOutletContext",wm(2,Mz,e,i,r,o))}}function Ime(t,n){t&1&&R(0,Tme,1,7,"ng-template",3)}function Ame(t,n){}function Ome(t,n){if(t&1&&R(0,Ame,0,0,"ng-template",15),t&2){let e=n.item,i=n.clear,r=n.label,o=C(2);y("ngTemplateOutlet",o.labelTemplate)("ngTemplateOutletContext",Rd(2,wme,e,i,r))}}function Rme(t,n){t&1&&R(0,Ome,1,6,"ng-template",4)}function Pme(t,n){}function Fme(t,n){if(t&1&&R(0,Pme,0,0,"ng-template",15),t&2){let e=n.items,i=n.clear,r=C(2);y("ngTemplateOutlet",r.multiLabelTemplate)("ngTemplateOutletContext",wa(2,Dme,e,i))}}function Nme(t,n){t&1&&R(0,Fme,1,5,"ng-template",5)}function Lme(t,n){}function Vme(t,n){if(t&1&&R(0,Lme,0,0,"ng-template",16),t&2){let e=C(2);y("ngTemplateOutlet",e.headerTemplate)}}function Bme(t,n){t&1&&R(0,Vme,1,1,"ng-template",6)}function jme(t,n){}function Hme(t,n){if(t&1&&R(0,jme,0,0,"ng-template",16),t&2){let e=C(2);y("ngTemplateOutlet",e.footerTemplate)}}function zme(t,n){t&1&&R(0,Hme,1,1,"ng-template",7)}function Ume(t,n){}function $me(t,n){if(t&1&&R(0,Ume,0,0,"ng-template",15),t&2){let e=n.searchTerm,i=C(2);y("ngTemplateOutlet",i.notFoundTemplate)("ngTemplateOutletContext",Pt(2,yI,e))}}function Wme(t,n){t&1&&R(0,$me,1,4,"ng-template",8)}function Gme(t,n){}function qme(t,n){if(t&1&&R(0,Gme,0,0,"ng-template",16),t&2){let e=C(2);y("ngTemplateOutlet",e.typeToSearchTemplate)}}function Yme(t,n){t&1&&R(0,qme,1,1,"ng-template",9)}function Qme(t,n){}function Kme(t,n){if(t&1&&R(0,Qme,0,0,"ng-template",15),t&2){let e=n.searchTerm,i=C(2);y("ngTemplateOutlet",i.loadingTextTemplate)("ngTemplateOutletContext",Pt(2,yI,e))}}function Zme(t,n){t&1&&R(0,Kme,1,4,"ng-template",10)}function Xme(t,n){}function Jme(t,n){if(t&1&&R(0,Xme,0,0,"ng-template",15),t&2){let e=n.searchTerm,i=C(2);y("ngTemplateOutlet",i.tagTemplate)("ngTemplateOutletContext",Pt(2,yI,e))}}function ehe(t,n){t&1&&R(0,Jme,1,4,"ng-template",11)}function the(t,n){}function ihe(t,n){if(t&1&&R(0,the,0,0,"ng-template",16),t&2){let e=C(2);y("ngTemplateOutlet",e.loadingSpinnerTemplate)}}function nhe(t,n){t&1&&R(0,ihe,1,1,"ng-template",12)}function rhe(t,n){}function ohe(t,n){if(t&1&&R(0,rhe,0,0,"ng-template",16),t&2){let e=C(2);y("ngTemplateOutlet",e.placeholderTemplate)}}function ahe(t,n){t&1&&R(0,ohe,1,1,"ng-template",13)}function she(t,n){}function lhe(t,n){if(t&1&&R(0,she,0,0,"ng-template",16),t&2){let e=C(2);y("ngTemplateOutlet",e.clearbuttonTemplate)}}function che(t,n){t&1&&R(0,lhe,1,1,"ng-template",14)}var dhe=(()=>{let n=class n{constructor(){this.elementRef=u(q),this.disabled=!1,this.stateChange$=new z}get label(){return(this.elementRef.nativeElement.textContent||"").trim()}ngOnChanges(i){i.disabled&&this.stateChange$.next({value:this.value,disabled:this.disabled})}ngAfterViewChecked(){this.label!==this._previousLabel&&(this._previousLabel=this.label,this.stateChange$.next({value:this.value,disabled:this.disabled,label:this.elementRef.nativeElement.innerHTML}))}ngOnDestroy(){this.stateChange$.complete()}};n.\u0275fac=function(r){return new(r||n)},n.\u0275cmp=E({type:n,selectors:[["mtx-option"]],inputs:{value:"value",disabled:[2,"disabled","disabled",V]},exportAs:["mtxOption"],features:[Ae],ngContentSelectors:yme,decls:1,vars:0,template:function(r,o){r&1&&(Me(),oe(0))},encapsulation:2,changeDetection:0});let t=n;return t})(),uhe=(()=>{let n=class n{constructor(){this._defaultOptions=u(kz,{optional:!0}),this.changes=new z,this.placeholder=this._defaultOptions?.placeholder,this.notFoundText=this._defaultOptions?.notFoundText??"No items found",this.typeToSearchText=this._defaultOptions?.typeToSearchText??"Type to search",this.addTagText=this._defaultOptions?.addTagText??"Add item",this.loadingText=this._defaultOptions?.loadingText??"Loading...",this.clearAllText=this._defaultOptions?.clearAllText??"Clear all"}};n.\u0275fac=function(r){return new(r||n)},n.\u0275prov=O({token:n,factory:n.\u0275fac,providedIn:"root"});let t=n;return t})(),mhe=(()=>{let n=class n{constructor(){this.template=u(te)}};n.\u0275fac=function(r){return new(r||n)},n.\u0275dir=F({type:n,selectors:[["","ng-option-tmp",""]]});let t=n;return t})(),hhe=(()=>{let n=class n{constructor(){this.template=u(te)}};n.\u0275fac=function(r){return new(r||n)},n.\u0275dir=F({type:n,selectors:[["","ng-optgroup-tmp",""]]});let t=n;return t})(),phe=(()=>{let n=class n{constructor(){this.template=u(te)}};n.\u0275fac=function(r){return new(r||n)},n.\u0275dir=F({type:n,selectors:[["","ng-label-tmp",""]]});let t=n;return t})(),fhe=(()=>{let n=class n{constructor(){this.template=u(te)}};n.\u0275fac=function(r){return new(r||n)},n.\u0275dir=F({type:n,selectors:[["","ng-multi-label-tmp",""]]});let t=n;return t})(),ghe=(()=>{let n=class n{constructor(){this.template=u(te)}};n.\u0275fac=function(r){return new(r||n)},n.\u0275dir=F({type:n,selectors:[["","ng-header-tmp",""]]});let t=n;return t})(),_he=(()=>{let n=class n{constructor(){this.template=u(te)}};n.\u0275fac=function(r){return new(r||n)},n.\u0275dir=F({type:n,selectors:[["","ng-footer-tmp",""]]});let t=n;return t})(),bhe=(()=>{let n=class n{constructor(){this.template=u(te)}};n.\u0275fac=function(r){return new(r||n)},n.\u0275dir=F({type:n,selectors:[["","ng-notfound-tmp",""]]});let t=n;return t})(),vhe=(()=>{let n=class n{constructor(){this.template=u(te)}};n.\u0275fac=function(r){return new(r||n)},n.\u0275dir=F({type:n,selectors:[["","ng-typetosearch-tmp",""]]});let t=n;return t})(),yhe=(()=>{let n=class n{constructor(){this.template=u(te)}};n.\u0275fac=function(r){return new(r||n)},n.\u0275dir=F({type:n,selectors:[["","ng-loadingtext-tmp",""]]});let t=n;return t})(),xhe=(()=>{let n=class n{constructor(){this.template=u(te)}};n.\u0275fac=function(r){return new(r||n)},n.\u0275dir=F({type:n,selectors:[["","ng-tag-tmp",""]]});let t=n;return t})(),Che=(()=>{let n=class n{constructor(){this.template=u(te)}};n.\u0275fac=function(r){return new(r||n)},n.\u0275dir=F({type:n,selectors:[["","ng-loadingspinner-tmp",""]]});let t=n;return t})(),whe=(()=>{let n=class n{constructor(){this.template=u(te)}};n.\u0275fac=function(r){return new(r||n)},n.\u0275dir=F({type:n,selectors:[["","ng-placeholder-tmp",""]]});let t=n;return t})(),Dhe=(()=>{let n=class n{constructor(){this.template=u(te)}};n.\u0275fac=function(r){return new(r||n)},n.\u0275dir=F({type:n,selectors:[["","ng-clearbutton-tmp",""]]});let t=n;return t})(),kz=new T("mtx-select-default-options"),Ez=0,xI=(()=>{let n=class n{get clearSearchOnAdd(){return this._clearSearchOnAdd??this.closeOnSelect}set clearSearchOnAdd(i){this._clearSearchOnAdd=i}get items(){return this._items}set items(i){this._itemsAreUsed=!0,this._items=i}get value(){return this._value}set value(i){this._assignValue(i)&&this._onChange(i)}get id(){return this._id}set id(i){this._id=i||this._uid,this.stateChanges.next()}get placeholder(){return this._placeholder}set placeholder(i){this._placeholder=i,this.stateChanges.next()}get focused(){return this._focused}get empty(){return this.value==null||Array.isArray(this.value)&&this.value.length===0}get shouldLabelFloat(){return this.focused||!this.empty}get required(){return this._required??this.ngControl?.control?.hasValidator(Le.required)??!1}set required(i){this._required=i,this.stateChanges.next()}get errorStateMatcher(){return this._errorStateTracker.matcher}set errorStateMatcher(i){this._errorStateTracker.matcher=i}get panelOpen(){return!!this.ngSelect.isOpen}get errorState(){return this._errorStateTracker.errorState}set errorState(i){this._errorStateTracker.errorState=i}constructor(){this._intl=u(uhe),this._changeDetectorRef=u(ye),this._elementRef=u(q),this._focusMonitor=u(Yt),this.ngControl=u(Hn,{optional:!0,self:!0}),this._parentFormField=u(Xo,{optional:!0}),this._defaultOptions=u(kz,{optional:!0}),this._document=u(ge),this.addTag=!1,this.appearance="underline",this.appendTo=this._defaultOptions?.appendTo??"body",this.bindLabel=this._defaultOptions?.bindLabel,this.bindValue=this._defaultOptions?.bindValue,this.closeOnSelect=!0,this.clearable=!0,this.clearOnBackspace=!0,this.dropdownPosition="auto",this.bufferAmount=4,this.selectableGroup=!1,this.selectableGroupAsModel=!0,this.hideSelected=!1,this.loading=!1,this.labelForId=null,this.markFirst=!0,this.multiple=!1,this.searchable=!0,this.readonly=!1,this.searchFn=null,this.searchWhileComposing=!0,this.selectOnTab=!1,this.trackByFn=null,this.inputAttrs={},this.openOnEnter=this._defaultOptions?.openOnEnter??!0,this.minTermLength=0,this.editableSearchTerm=!1,this.keyDownFn=l=>!0,this.virtualScroll=this._defaultOptions?.virtualScroll??!1,this.fixedPlaceholder=this._defaultOptions?.fixedPlaceholder??!1,this.deselectOnClick=this._defaultOptions?.deselectOnClick??!1,this.blurEvent=new U,this.focusEvent=new U,this.changeEvent=new U,this.openEvent=new U,this.closeEvent=new U,this.searchEvent=new U,this.clearEvent=new U,this.addEvent=new U,this.removeEvent=new U,this.scroll=new U,this.scrollToEnd=new U,this._clearSearchOnAdd=this._defaultOptions?.clearSearchOnAdd,this._items=[],this._itemsAreUsed=!1,this._destroy$=new z,this._value=null,this.stateChanges=new z,this._uid=`mtx-select-${Ez++}`,this._focused=!1,this.disabled=!1,this.ariaLabel="",this.ariaLabelledby=null,this._ariaDescribedby=null,this.controlType="mtx-select",this._onChange=()=>{},this._onTouched=()=>{},this._valueId=`mtx-select-value-${Ez++}`,this._intlChangesSubscription=ke.EMPTY;let i=this._focusMonitor,r=u(dl),o=u(pc,{optional:!0}),a=u(Ki,{optional:!0}),s=this.ngControl;this._intlChangesSubscription=this._intl.changes.subscribe(()=>{this._changeDetectorRef.detectChanges()}),i.monitor(this._elementRef,!0).subscribe(l=>{this._focused&&!l&&this._onTouched(),this._focused=!!l,this.stateChanges.next()}),this.ngControl&&(this.ngControl.valueAccessor=this),this._errorStateTracker=new cl(r,s,a,o,this.stateChanges),this.id=this.id}ngOnInit(){this.compareWith&&(this.ngSelect.compareWith=this.compareWith)}ngAfterViewInit(){this._itemsAreUsed||(this.ngSelect.escapeHTML=!1,this._setItemsFromMtxOptions())}ngDoCheck(){if(this.ngControl){let i=this.ngControl;this._previousControl!==i.control&&(this._previousControl!==void 0&&i.disabled!==null&&i.disabled!==this.disabled&&(this.disabled=i.disabled),this._previousControl=i.control),this.updateErrorState()}}ngOnDestroy(){this._destroy$.next(),this._destroy$.complete(),this.stateChanges.complete(),this._focusMonitor.stopMonitoring(this._elementRef),this._intlChangesSubscription.unsubscribe()}_getAriaLabelledby(){if(this.ariaLabel)return null;let i=this._parentFormField?.getLabelId(),r=(i?i+" ":"")+this._valueId;return this.ariaLabelledby&&(r+=" "+this.ariaLabelledby),r}setDescribedByIds(i){this._ariaDescribedby=i.length?i.join(" "):null}setDisabledState(i){this.disabled=i,this._changeDetectorRef.markForCheck(),this.stateChanges.next()}onContainerClick(i){i.target.classList.contains("ng-arrow-wrapper")||(this.focus(),this.open())}writeValue(i){this._assignValue(i)}registerOnChange(i){this._onChange=i}registerOnTouched(i){this._onTouched=i}updateErrorState(){this._errorStateTracker.updateErrorState()}_assignValue(i){return i!==this._value||this.multiple&&Array.isArray(i)?(this._value=i,this._changeDetectorRef.markForCheck(),!0):!1}_setItemsFromMtxOptions(){let i=o=>{this.items=o.map(a=>({$ngOptionValue:a.value,$ngOptionLabel:a.elementRef.nativeElement.innerHTML,disabled:a.disabled})),this.ngSelect.itemsList.setItems(this.items),this.ngSelect.hasValue&&this.ngSelect.itemsList.mapSelectedItems(),this.ngSelect.detectChanges()},r=()=>{let o=Je(this.mtxOptions.changes,this._destroy$);Je(...this.mtxOptions.map(a=>a.stateChange$)).pipe(Te(o)).subscribe(a=>{let s=this.ngSelect.itemsList.findItem(a.value);s.disabled=a.disabled,s.label=a.label||s.label,this.ngSelect.detectChanges()})};this.mtxOptions.changes.pipe(He(this.mtxOptions),Te(this._destroy$)).subscribe(o=>{i(o),r()})}open(){this.ngSelect.open()}close(){this.ngSelect.close()}focus(){this.ngSelect.focus()}blur(){this.ngSelect.blur()}openChange(){this.openEvent.emit(),setTimeout(()=>{this._document.getElementById(this.ngSelect.dropdownId)?.classList.add("mat-"+this._parentFormField?.color)})}};n.\u0275fac=function(r){return new(r||n)},n.\u0275cmp=E({type:n,selectors:[["mtx-select"]],contentQueries:function(r,o,a){if(r&1&&(xe(a,mhe,5,te),xe(a,hhe,5,te),xe(a,phe,5,te),xe(a,fhe,5,te),xe(a,ghe,5,te),xe(a,_he,5,te),xe(a,bhe,5,te),xe(a,vhe,5,te),xe(a,yhe,5,te),xe(a,xhe,5,te),xe(a,Che,5,te),xe(a,whe,5,te),xe(a,Dhe,5,te),xe(a,dhe,5)),r&2){let s;B(s=j())&&(o.optionTemplate=s.first),B(s=j())&&(o.optgroupTemplate=s.first),B(s=j())&&(o.labelTemplate=s.first),B(s=j())&&(o.multiLabelTemplate=s.first),B(s=j())&&(o.headerTemplate=s.first),B(s=j())&&(o.footerTemplate=s.first),B(s=j())&&(o.notFoundTemplate=s.first),B(s=j())&&(o.typeToSearchTemplate=s.first),B(s=j())&&(o.loadingTextTemplate=s.first),B(s=j())&&(o.tagTemplate=s.first),B(s=j())&&(o.loadingSpinnerTemplate=s.first),B(s=j())&&(o.placeholderTemplate=s.first),B(s=j())&&(o.clearbuttonTemplate=s.first),B(s=j())&&(o.mtxOptions=s)}},viewQuery:function(r,o){if(r&1&&ie(xme,7),r&2){let a;B(a=j())&&(o.ngSelect=a.first)}},hostAttrs:["role","combobox","aria-autocomplete","none",1,"mtx-select"],hostVars:20,hostBindings:function(r,o){r&2&&(X("id",o.id)("aria-expanded",o.panelOpen)("aria-label",o.ariaLabel||null)("aria-labelledby",o._getAriaLabelledby())("aria-describedby",o._ariaDescribedby||null)("aria-required",o.required.toString())("aria-disabled",o.disabled.toString())("aria-invalid",o.errorState),G("mtx-select-floating",o.shouldLabelFloat)("mtx-select-disabled",o.disabled)("mtx-select-invalid",o.errorState)("mtx-select-required",o.required)("mtx-select-empty",o.empty)("mtx-select-multiple",o.multiple))},inputs:{addTag:"addTag",addTagText:"addTagText",appearance:"appearance",appendTo:"appendTo",bindLabel:"bindLabel",bindValue:"bindValue",closeOnSelect:[2,"closeOnSelect","closeOnSelect",V],clearAllText:"clearAllText",clearable:[2,"clearable","clearable",V],clearOnBackspace:[2,"clearOnBackspace","clearOnBackspace",V],compareWith:"compareWith",dropdownPosition:"dropdownPosition",groupBy:"groupBy",groupValue:"groupValue",bufferAmount:"bufferAmount",selectableGroup:[2,"selectableGroup","selectableGroup",V],selectableGroupAsModel:[2,"selectableGroupAsModel","selectableGroupAsModel",V],hideSelected:[2,"hideSelected","hideSelected",V],loading:[2,"loading","loading",V],loadingText:"loadingText",labelForId:"labelForId",markFirst:[2,"markFirst","markFirst",V],maxSelectedItems:"maxSelectedItems",multiple:[2,"multiple","multiple",V],notFoundText:"notFoundText",searchable:[2,"searchable","searchable",V],readonly:[2,"readonly","readonly",V],searchFn:"searchFn",searchWhileComposing:[2,"searchWhileComposing","searchWhileComposing",V],selectOnTab:[2,"selectOnTab","selectOnTab",V],trackByFn:"trackByFn",inputAttrs:"inputAttrs",tabIndex:"tabIndex",openOnEnter:[2,"openOnEnter","openOnEnter",V],minTermLength:"minTermLength",editableSearchTerm:[2,"editableSearchTerm","editableSearchTerm",V],keyDownFn:"keyDownFn",virtualScroll:[2,"virtualScroll","virtualScroll",V],typeToSearchText:"typeToSearchText",typeahead:"typeahead",isOpen:"isOpen",fixedPlaceholder:[2,"fixedPlaceholder","fixedPlaceholder",V],deselectOnClick:[2,"deselectOnClick","deselectOnClick",V],clearSearchOnAdd:"clearSearchOnAdd",items:"items",value:"value",id:"id",placeholder:"placeholder",disabled:[2,"disabled","disabled",V],required:[2,"required","required",V],errorStateMatcher:"errorStateMatcher",ariaLabel:[0,"aria-label","ariaLabel"],ariaLabelledby:[0,"aria-labelledby","ariaLabelledby"]},outputs:{blurEvent:"blur",focusEvent:"focus",changeEvent:"change",openEvent:"open",closeEvent:"close",searchEvent:"search",clearEvent:"clear",addEvent:"add",removeEvent:"remove",scroll:"scroll",scrollToEnd:"scrollToEnd"},exportAs:["mtxSelect"],features:[Ce([{provide:Ra,useExisting:n}])],decls:15,vars:63,consts:[["ngSelect",""],[3,"ngModelChange","blur","focus","change","open","close","search","clear","add","remove","scroll","scrollToEnd","ngModel","ngModelOptions","placeholder","items","addTag","addTagText","appendTo","appearance","bindLabel","bindValue","closeOnSelect","clearAllText","clearable","clearOnBackspace","dropdownPosition","groupBy","groupValue","bufferAmount","hideSelected","isOpen","inputAttrs","loading","loadingText","labelForId","markFirst","maxSelectedItems","multiple","notFoundText","readonly","typeahead","typeToSearchText","trackByFn","searchable","searchFn","searchWhileComposing","clearSearchOnAdd","selectableGroup","selectableGroupAsModel","selectOnTab","tabIndex","openOnEnter","minTermLength","editableSearchTerm","keyDownFn","virtualScroll","fixedPlaceholder","deselectOnClick"],["ng-option-tmp",""],["ng-optgroup-tmp",""],["ng-label-tmp",""],["ng-multi-label-tmp",""],["ng-header-tmp",""],["ng-footer-tmp",""],["ng-notfound-tmp",""],["ng-typetosearch-tmp",""],["ng-loadingtext-tmp",""],["ng-tag-tmp",""],["ng-loadingspinner-tmp",""],["ng-placeholder-tmp",""],["ng-clearbutton-tmp",""],[3,"ngTemplateOutlet","ngTemplateOutletContext"],[3,"ngTemplateOutlet"]],template:function(r,o){if(r&1){let a=Y();h(0,"ng-select",1,0),Uo("ngModelChange",function(l){return I(a),Ca(o.value,l)||(o.value=l),A(l)}),S("blur",function(l){return I(a),A(o.blurEvent.emit(l))})("focus",function(l){return I(a),A(o.focusEvent.emit(l))})("change",function(l){return I(a),A(o.changeEvent.emit(l))})("open",function(){return I(a),A(o.openChange())})("close",function(){return I(a),A(o.closeEvent.emit())})("search",function(l){return I(a),A(o.searchEvent.emit(l))})("clear",function(l){return I(a),A(o.clearEvent.emit(l))})("add",function(l){return I(a),A(o.addEvent.emit(l))})("remove",function(l){return I(a),A(o.removeEvent.emit(l))})("scroll",function(l){return I(a),A(o.scroll.emit(l))})("scrollToEnd",function(){return I(a),A(o.scrollToEnd.emit())}),N(2,kme,1,0,null,2),N(3,Ime,1,0,null,3),N(4,Rme,1,0,null,4),N(5,Nme,1,0,null,5),N(6,Bme,1,0,null,6),N(7,zme,1,0,null,7),N(8,Wme,1,0,null,8),N(9,Yme,1,0,null,9),N(10,Zme,1,0,null,10),N(11,ehe,1,0,null,11),N(12,nhe,1,0,null,12),N(13,ahe,1,0,null,13),N(14,che,1,0,null,14),p()}r&2&&(G("ng-select-invalid",o.errorState),zo("ngModel",o.value),y("ngModelOptions",at(62,Cme))("placeholder",o.placeholder||o._intl.placeholder)("items",o.items)("addTag",o.addTag)("addTagText",o.addTagText||o._intl.addTagText)("appendTo",o.appendTo)("appearance",o.appearance)("bindLabel",o.bindLabel)("bindValue",o.bindValue)("closeOnSelect",o.closeOnSelect)("clearAllText",o.clearAllText||o._intl.clearAllText)("clearable",o.clearable)("clearOnBackspace",o.clearOnBackspace)("dropdownPosition",o.dropdownPosition)("groupBy",o.groupBy)("groupValue",o.groupValue)("bufferAmount",o.bufferAmount)("hideSelected",o.hideSelected)("isOpen",o.isOpen)("inputAttrs",o.inputAttrs)("loading",o.loading)("loadingText",o.loadingText||o._intl.loadingText)("labelForId",o.labelForId)("markFirst",o.markFirst)("maxSelectedItems",o.maxSelectedItems)("multiple",o.multiple)("notFoundText",o.notFoundText||o._intl.notFoundText)("readonly",o.readonly||o.disabled)("typeahead",o.typeahead)("typeToSearchText",o.typeToSearchText||o._intl.typeToSearchText)("trackByFn",o.trackByFn)("searchable",o.searchable)("searchFn",o.searchFn)("searchWhileComposing",o.searchWhileComposing)("clearSearchOnAdd",o.clearSearchOnAdd)("selectableGroup",o.selectableGroup)("selectableGroupAsModel",o.selectableGroupAsModel)("selectOnTab",o.selectOnTab)("tabIndex",o.tabIndex)("openOnEnter",o.openOnEnter)("minTermLength",o.minTermLength)("editableSearchTerm",o.editableSearchTerm)("keyDownFn",o.keyDownFn)("virtualScroll",o.virtualScroll)("fixedPlaceholder",o.fixedPlaceholder)("deselectOnClick",o.deselectOnClick),g(2),L(o.optionTemplate?2:-1),g(),L(o.optgroupTemplate?3:-1),g(),L(o.labelTemplate?4:-1),g(),L(o.multiLabelTemplate?5:-1),g(),L(o.headerTemplate?6:-1),g(),L(o.footerTemplate?7:-1),g(),L(o.notFoundTemplate?8:-1),g(),L(o.typeToSearchTemplate?9:-1),g(),L(o.loadingTextTemplate?10:-1),g(),L(o.tagTemplate?11:-1),g(),L(o.loadingSpinnerTemplate?12:-1),g(),L(o.placeholderTemplate?13:-1),g(),L(o.clearbuttonTemplate?14:-1))},dependencies:[vI,Dz,RC,OC,PC,FC,NC,LC,BC,VC,jC,HC,zC,UC,$C,du,ei,gg,Fn],styles:[`.ng-select{padding:var(--mat-form-field-filled-with-label-container-padding-top, 24px) 16px var(--mat-form-field-filled-with-label-container-padding-bottom, 8px);margin:calc(var(--mat-form-field-filled-with-label-container-padding-top, 24px) * -1) -16px calc(var(--mat-form-field-filled-with-label-container-padding-bottom, 8px) * -1)}.mdc-text-field--outlined .ng-select,.mdc-text-field--no-label .ng-select{padding-top:var(--mat-form-field-container-vertical-padding, 16px);padding-bottom:var(--mat-form-field-container-vertical-padding, 16px);margin-top:calc(var(--mat-form-field-container-vertical-padding, 16px) * -1);margin-bottom:calc(var(--mat-form-field-container-vertical-padding, 16px) * -1)}.ng-select .ng-select-container{align-items:center;color:var(--mtx-select-container-text-color, var(--mat-sys-on-surface))}.ng-select .ng-select-container .ng-value-container{align-items:center;gap:4px}.ng-select .ng-select-container .ng-value-container .ng-input>input{height:var(--mat-form-field-container-text-line-height, var(--mat-sys-body-large-line-height));color:inherit;font:inherit}.ng-select .ng-select-container .ng-clear-wrapper{display:inline-flex;justify-content:center;align-items:center;width:24px;height:var(--mat-form-field-container-text-line-height, var(--mat-sys-body-large-line-height))}.ng-select .ng-placeholder{transition:opacity .2s;opacity:1;color:var(--mtx-select-placeholder-text-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent))}.mat-form-field-hide-placeholder .ng-select .ng-placeholder{opacity:0}.ng-select .ng-has-value .ng-placeholder{display:none}.ng-select .ng-clear-wrapper{color:var(--mtx-select-clear-icon-color, var(--mat-sys-on-surface))}.ng-select .ng-clear-wrapper:hover .ng-clear{color:var(--mtx-select-clear-icon-hover-color, var(--mat-sys-error))}.ng-select.ng-select-disabled .ng-value{color:var(--mtx-select-disabled-text-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent))}.ng-select.ng-select-opened .ng-arrow-wrapper .ng-arrow{top:-2px;border-width:0 5px 5px}.ng-select.ng-select-single.ng-select-filtered .ng-placeholder{display:initial;visibility:hidden}.ng-select.ng-select-multiple .ng-select-container .ng-value-container .ng-value{display:inline-flex;align-items:center;height:var(--mat-form-field-container-text-line-height, var(--mat-sys-body-large-line-height));padding:0 calc((var(--mat-form-field-container-text-line-height, var(--mat-sys-body-large-line-height)) - 16px) / 2);border-radius:9999px;font-size:.875em;background-color:var(--mtx-select-multiple-value-background-color, transparent);border:1px solid var(--mtx-select-multiple-value-outline-color, var(--mat-sys-outline))}.ng-select.ng-select-multiple .ng-select-container .ng-value-container .ng-value.ng-value-disabled{opacity:.4}.ng-select.ng-select-multiple .ng-select-container .ng-value-container .ng-value .ng-value-label{display:inline-block;margin:0 4px;line-height:16px}.ng-select.ng-select-multiple .ng-select-container .ng-value-container .ng-value .ng-value-icon{width:16px;height:16px;line-height:16px;border-radius:50%;text-align:center}.ng-select.ng-select-multiple .ng-select-container .ng-value-container .ng-value .ng-value-icon:hover{background-color:var(--mtx-select-multiple-value-icon-hover-background-color, var(--mat-sys-outline-variant))}.ng-select.ng-select-multiple.ng-select-disabled .ng-select-container .ng-value-container .ng-value{border-color:var(--mtx-select-multiple-value-disabled-outline-color, color-mix(in srgb, var(--mat-sys-outline) 38%, transparent))}.ng-select .ng-arrow-wrapper{width:10px}.ng-select .ng-arrow{border-width:5px 5px 2px;border-style:solid;border-color:var(--mtx-select-enabled-arrow-color, var(--mat-sys-on-surface)) transparent transparent}.ng-select.ng-select-disabled .ng-arrow{border-color:var(--mtx-select-disabled-arrow-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent)) transparent transparent}.ng-select.ng-select-invalid .ng-arrow{border-color:var(--mtx-select-invalid-arrow-color, var(--mat-sys-error)) transparent transparent}.ng-select.ng-select-opened .ng-arrow{border-color:transparent transparent var(--mtx-select-enabled-arrow-color, var(--mat-sys-on-surface))}.ng-select.ng-select-opened.ng-select-invalid .ng-arrow{border-color:transparent transparent var(--mtx-select-invalid-arrow-color, var(--mat-sys-error))}.ng-dropdown-panel{background-color:var(--mtx-select-panel-background-color, var(--mat-sys-surface-container))}.ng-dropdown-panel.ng-select-bottom{top:100%;border-bottom-left-radius:var(--mtx-select-container-shape, var(--mat-sys-corner-extra-small));border-bottom-right-radius:var(--mtx-select-container-shape, var(--mat-sys-corner-extra-small));box-shadow:var(--mtx-select-container-elevation-shadow, 0px 3px 1px -2px rgba(0, 0, 0, .2), 0px 2px 2px 0px rgba(0, 0, 0, .14), 0px 1px 5px 0px rgba(0, 0, 0, .12))}.ng-dropdown-panel.ng-select-top{bottom:100%;border-top-left-radius:var(--mtx-select-container-shape, var(--mat-sys-corner-extra-small));border-top-right-radius:var(--mtx-select-container-shape, var(--mat-sys-corner-extra-small));box-shadow:var(--mtx-select-container-elevation-shadow, 0px 3px 1px -2px rgba(0, 0, 0, .2), 0px 2px 2px 0px rgba(0, 0, 0, .14), 0px 1px 5px 0px rgba(0, 0, 0, .12))}.ng-dropdown-panel .ng-dropdown-header,.ng-dropdown-panel .ng-dropdown-footer{padding:14px 16px}.ng-dropdown-panel .ng-dropdown-header{border-bottom:1px solid var(--mtx-select-panel-divider-color, var(--mat-sys-outline))}.ng-dropdown-panel .ng-dropdown-footer{border-top:1px solid var(--mtx-select-panel-divider-color, var(--mat-sys-outline))}.ng-dropdown-panel .ng-dropdown-panel-items .ng-optgroup{padding:14px 16px;font-weight:500;-webkit-user-select:none;user-select:none;cursor:pointer;color:var(--mtx-select-optgroup-label-text-color, var(--mat-sys-on-surface))}.ng-dropdown-panel .ng-dropdown-panel-items .ng-optgroup.ng-option-disabled{cursor:default}.ng-dropdown-panel .ng-dropdown-panel-items .ng-optgroup.ng-option-marked{background-color:var(--mtx-select-option-hover-state-background-color, color-mix(in srgb, var(--mat-sys-on-surface) calc(var(--mat-sys-hover-state-layer-opacity) * 100%), transparent))}.ng-dropdown-panel .ng-dropdown-panel-items .ng-optgroup.ng-option-selected{background-color:var(--mtx-select-option-selected-state-background-color, var(--mat-sys-secondary-container));color:var(--mtx-select-option-selected-state-text-color, var(--mat-sys-on-surface))}.ng-dropdown-panel .ng-dropdown-panel-items .ng-option{position:relative;padding:14px 16px;text-overflow:ellipsis;text-decoration:none;text-align:left;white-space:nowrap;overflow:hidden;color:var(--mtx-select-option-label-text-color, var(--mat-sys-on-surface))}.ng-dropdown-panel .ng-dropdown-panel-items .ng-option.ng-option-marked{background-color:var(--mtx-select-option-hover-state-background-color, color-mix(in srgb, var(--mat-sys-on-surface) calc(var(--mat-sys-hover-state-layer-opacity) * 100%), transparent))}.ng-dropdown-panel .ng-dropdown-panel-items .ng-option.ng-option-selected{background-color:var(--mtx-select-option-selected-state-background-color, var(--mat-sys-secondary-container));color:var(--mtx-select-option-selected-state-text-color, var(--mat-sys-on-surface))}.ng-dropdown-panel .ng-dropdown-panel-items .ng-option.ng-option-disabled{color:var(--mtx-select-option-disabled-state-text-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent))}[dir=rtl] .ng-dropdown-panel .ng-dropdown-panel-items .ng-option{text-align:right}.ng-dropdown-panel .ng-dropdown-panel-items .ng-option.ng-option-child{padding-left:32px}[dir=rtl] .ng-dropdown-panel .ng-dropdown-panel-items .ng-option.ng-option-child{padding-right:32px;padding-left:0}.ng-dropdown-panel .ng-dropdown-panel-items .ng-option .ng-tag-label{margin-right:6px;font-size:80%}[dir=rtl] .ng-dropdown-panel .ng-dropdown-panel-items .ng-option .ng-tag-label{margin-left:6px;margin-right:0} +`],encapsulation:2,changeDetection:0});let t=n;return t})(),Sz=(()=>{let n=class n{};n.\u0275fac=function(r){return new(r||n)},n.\u0275mod=ee({type:n}),n.\u0275inj=J({imports:[gt,du,zn,vI,xI]});let t=n;return t})();var Tz=(()=>{let n=class n extends to{get bindLabel(){return typeof this.props.labelProp=="string"?this.props.labelProp:""}get bindValue(){return typeof this.props.valueProp=="string"?this.props.valueProp:void 0}};n.\u0275fac=(()=>{let i;return function(o){return(i||(i=fe(n)))(o||n)}})(),n.\u0275cmp=E({type:n,selectors:[["formly-field-combobox"]],features:[le],decls:4,vars:13,consts:[["select",""],[3,"formControl","items","bindLabel","bindValue","multiple","placeholder","required","closeOnSelect","compareWith"]],template:function(r,o){r&1&&(k(0,"mtx-select",1,0),me(2,"toObservable"),me(3,"async")),r&2&&y("formControl",o.formControl)("items",Oe(3,11,Oe(2,9,o.props.options)))("bindLabel",o.bindLabel)("bindValue",o.bindValue)("multiple",o.props.multiple)("placeholder",o.props.placeholder)("required",o.props.required)("closeOnSelect",!o.props.multiple)("compareWith",o.props.compareWith)},dependencies:[zn,ei,Do,wo,Sz,xI,s3,rn,a3],encapsulation:2});let t=n;return t})();var Iz=(()=>{let n=class n extends Cg{};n.\u0275fac=(()=>{let i;return function(o){return(i||(i=fe(n)))(o||n)}})(),n.\u0275cmp=E({type:n,selectors:[["formly-wrapper-card"]],features:[le],decls:8,vars:1,consts:[["fieldComponent",""],[1,"card"],[1,"card-header"],[1,"card-body"]],template:function(r,o){r&1&&(ft(0,"div",1)(1,"h3",2),_(2,"Its time to party"),vt(),ft(3,"h3",2),_(4),vt(),ft(5,"div",3),rf(6,null,0),vt()()),r&2&&(g(4),H(o.props.label))},encapsulation:2});let t=n;return t})(),Az=(()=>{let n=class n extends Cg{};n.\u0275fac=(()=>{let i;return function(o){return(i||(i=fe(n)))(o||n)}})(),n.\u0275cmp=E({type:n,selectors:[["formly-wrapper-div"]],features:[le],decls:3,vars:0,consts:[["fieldComponent",""]],template:function(r,o){r&1&&(ft(0,"div"),rf(1,null,0),vt())},encapsulation:2});let t=n;return t})();function Oz(t){return{types:[{name:"combobox",component:Tz,wrappers:["form-field"]}],wrappers:[{name:"card",component:Iz},{name:"div",component:Az}],validators:[],validationMessages:[{name:"required",message:(n,e)=>t.stream("validation.required")},{name:"min",message:(n,e)=>t.stream("validation.min",{number:e.props?.min})},{name:"max",message:(n,e)=>t.stream("validation.max",{number:e.props?.max})},{name:"minLength",message:(n,e)=>t.stream("validation.min_length",{number:e.props?.minLength})},{name:"maxLength",message:(n,e)=>t.stream("validation.max_length",{number:e.props?.maxLength})}]}}var Mhe={lessThanXSeconds:{one:"\u4E0D\u5230 1 \u79D2",other:"\u4E0D\u5230 {{count}} \u79D2"},xSeconds:{one:"1 \u79D2",other:"{{count}} \u79D2"},halfAMinute:"\u534A\u5206\u949F",lessThanXMinutes:{one:"\u4E0D\u5230 1 \u5206\u949F",other:"\u4E0D\u5230 {{count}} \u5206\u949F"},xMinutes:{one:"1 \u5206\u949F",other:"{{count}} \u5206\u949F"},xHours:{one:"1 \u5C0F\u65F6",other:"{{count}} \u5C0F\u65F6"},aboutXHours:{one:"\u5927\u7EA6 1 \u5C0F\u65F6",other:"\u5927\u7EA6 {{count}} \u5C0F\u65F6"},xDays:{one:"1 \u5929",other:"{{count}} \u5929"},aboutXWeeks:{one:"\u5927\u7EA6 1 \u4E2A\u661F\u671F",other:"\u5927\u7EA6 {{count}} \u4E2A\u661F\u671F"},xWeeks:{one:"1 \u4E2A\u661F\u671F",other:"{{count}} \u4E2A\u661F\u671F"},aboutXMonths:{one:"\u5927\u7EA6 1 \u4E2A\u6708",other:"\u5927\u7EA6 {{count}} \u4E2A\u6708"},xMonths:{one:"1 \u4E2A\u6708",other:"{{count}} \u4E2A\u6708"},aboutXYears:{one:"\u5927\u7EA6 1 \u5E74",other:"\u5927\u7EA6 {{count}} \u5E74"},xYears:{one:"1 \u5E74",other:"{{count}} \u5E74"},overXYears:{one:"\u8D85\u8FC7 1 \u5E74",other:"\u8D85\u8FC7 {{count}} \u5E74"},almostXYears:{one:"\u5C06\u8FD1 1 \u5E74",other:"\u5C06\u8FD1 {{count}} \u5E74"}},Rz=(t,n,e)=>{let i,r=Mhe[t];return typeof r=="string"?i=r:n===1?i=r.one:i=r.other.replace("{{count}}",String(n)),e?.addSuffix?e.comparison&&e.comparison>0?i+"\u5185":i+"\u524D":i};var khe={full:"y'\u5E74'M'\u6708'd'\u65E5' EEEE",long:"y'\u5E74'M'\u6708'd'\u65E5'",medium:"yyyy-MM-dd",short:"yy-MM-dd"},She={full:"zzzz a h:mm:ss",long:"z a h:mm:ss",medium:"a h:mm:ss",short:"a h:mm"},The={full:"{{date}} {{time}}",long:"{{date}} {{time}}",medium:"{{date}} {{time}}",short:"{{date}} {{time}}"},Pz={date:Qo({formats:khe,defaultWidth:"full"}),time:Qo({formats:She,defaultWidth:"full"}),dateTime:Qo({formats:The,defaultWidth:"full"})};function Fz(t,n,e){let i="eeee p";return NV(t,n,e)?i:t.getTime()>n.getTime()?"'\u4E0B\u4E2A'"+i:"'\u4E0A\u4E2A'"+i}var Ihe={lastWeek:Fz,yesterday:"'\u6628\u5929' p",today:"'\u4ECA\u5929' p",tomorrow:"'\u660E\u5929' p",nextWeek:Fz,other:"PP p"},Nz=(t,n,e,i)=>{let r=Ihe[t];return typeof r=="function"?r(n,e,i):r};var Ahe={narrow:["\u524D","\u516C\u5143"],abbreviated:["\u524D","\u516C\u5143"],wide:["\u516C\u5143\u524D","\u516C\u5143"]},Ohe={narrow:["1","2","3","4"],abbreviated:["\u7B2C\u4E00\u5B63","\u7B2C\u4E8C\u5B63","\u7B2C\u4E09\u5B63","\u7B2C\u56DB\u5B63"],wide:["\u7B2C\u4E00\u5B63\u5EA6","\u7B2C\u4E8C\u5B63\u5EA6","\u7B2C\u4E09\u5B63\u5EA6","\u7B2C\u56DB\u5B63\u5EA6"]},Rhe={narrow:["\u4E00","\u4E8C","\u4E09","\u56DB","\u4E94","\u516D","\u4E03","\u516B","\u4E5D","\u5341","\u5341\u4E00","\u5341\u4E8C"],abbreviated:["1\u6708","2\u6708","3\u6708","4\u6708","5\u6708","6\u6708","7\u6708","8\u6708","9\u6708","10\u6708","11\u6708","12\u6708"],wide:["\u4E00\u6708","\u4E8C\u6708","\u4E09\u6708","\u56DB\u6708","\u4E94\u6708","\u516D\u6708","\u4E03\u6708","\u516B\u6708","\u4E5D\u6708","\u5341\u6708","\u5341\u4E00\u6708","\u5341\u4E8C\u6708"]},Phe={narrow:["\u65E5","\u4E00","\u4E8C","\u4E09","\u56DB","\u4E94","\u516D"],short:["\u65E5","\u4E00","\u4E8C","\u4E09","\u56DB","\u4E94","\u516D"],abbreviated:["\u5468\u65E5","\u5468\u4E00","\u5468\u4E8C","\u5468\u4E09","\u5468\u56DB","\u5468\u4E94","\u5468\u516D"],wide:["\u661F\u671F\u65E5","\u661F\u671F\u4E00","\u661F\u671F\u4E8C","\u661F\u671F\u4E09","\u661F\u671F\u56DB","\u661F\u671F\u4E94","\u661F\u671F\u516D"]},Fhe={narrow:{am:"\u4E0A",pm:"\u4E0B",midnight:"\u51CC\u6668",noon:"\u5348",morning:"\u65E9",afternoon:"\u4E0B\u5348",evening:"\u665A",night:"\u591C"},abbreviated:{am:"\u4E0A\u5348",pm:"\u4E0B\u5348",midnight:"\u51CC\u6668",noon:"\u4E2D\u5348",morning:"\u65E9\u6668",afternoon:"\u4E2D\u5348",evening:"\u665A\u4E0A",night:"\u591C\u95F4"},wide:{am:"\u4E0A\u5348",pm:"\u4E0B\u5348",midnight:"\u51CC\u6668",noon:"\u4E2D\u5348",morning:"\u65E9\u6668",afternoon:"\u4E2D\u5348",evening:"\u665A\u4E0A",night:"\u591C\u95F4"}},Nhe={narrow:{am:"\u4E0A",pm:"\u4E0B",midnight:"\u51CC\u6668",noon:"\u5348",morning:"\u65E9",afternoon:"\u4E0B\u5348",evening:"\u665A",night:"\u591C"},abbreviated:{am:"\u4E0A\u5348",pm:"\u4E0B\u5348",midnight:"\u51CC\u6668",noon:"\u4E2D\u5348",morning:"\u65E9\u6668",afternoon:"\u4E2D\u5348",evening:"\u665A\u4E0A",night:"\u591C\u95F4"},wide:{am:"\u4E0A\u5348",pm:"\u4E0B\u5348",midnight:"\u51CC\u6668",noon:"\u4E2D\u5348",morning:"\u65E9\u6668",afternoon:"\u4E2D\u5348",evening:"\u665A\u4E0A",night:"\u591C\u95F4"}},Lhe=(t,n)=>{let e=Number(t);switch(n?.unit){case"date":return e.toString()+"\u65E5";case"hour":return e.toString()+"\u65F6";case"minute":return e.toString()+"\u5206";case"second":return e.toString()+"\u79D2";default:return"\u7B2C "+e.toString()}},Lz={ordinalNumber:Lhe,era:Bn({values:Ahe,defaultWidth:"wide"}),quarter:Bn({values:Ohe,defaultWidth:"wide",argumentCallback:t=>t-1}),month:Bn({values:Rhe,defaultWidth:"wide"}),day:Bn({values:Phe,defaultWidth:"wide"}),dayPeriod:Bn({values:Fhe,defaultWidth:"wide",formattingValues:Nhe,defaultFormattingWidth:"wide"})};var Vhe=/^(第\s*)?\d+(日|时|分|秒)?/i,Bhe=/\d+/i,jhe={narrow:/^(前)/i,abbreviated:/^(前)/i,wide:/^(公元前|公元)/i},Hhe={any:[/^(前)/i,/^(公元)/i]},zhe={narrow:/^[1234]/i,abbreviated:/^第[一二三四]刻/i,wide:/^第[一二三四]刻钟/i},Uhe={any:[/(1|一)/i,/(2|二)/i,/(3|三)/i,/(4|四)/i]},$he={narrow:/^(一|二|三|四|五|六|七|八|九|十[二一])/i,abbreviated:/^(一|二|三|四|五|六|七|八|九|十[二一]|\d|1[12])月/i,wide:/^(一|二|三|四|五|六|七|八|九|十[二一])月/i},Whe={narrow:[/^一/i,/^二/i,/^三/i,/^四/i,/^五/i,/^六/i,/^七/i,/^八/i,/^九/i,/^十(?!(一|二))/i,/^十一/i,/^十二/i],any:[/^一|1/i,/^二|2/i,/^三|3/i,/^四|4/i,/^五|5/i,/^六|6/i,/^七|7/i,/^八|8/i,/^九|9/i,/^十(?!(一|二))|10/i,/^十一|11/i,/^十二|12/i]},Ghe={narrow:/^[一二三四五六日]/i,short:/^[一二三四五六日]/i,abbreviated:/^周[一二三四五六日]/i,wide:/^星期[一二三四五六日]/i},qhe={any:[/日/i,/一/i,/二/i,/三/i,/四/i,/五/i,/六/i]},Yhe={any:/^(上午?|下午?|午夜|[中正]午|早上?|下午|晚上?|凌晨|)/i},Qhe={any:{am:/^上午?/i,pm:/^下午?/i,midnight:/^午夜/i,noon:/^[中正]午/i,morning:/^早上/i,afternoon:/^下午/i,evening:/^晚上?/i,night:/^凌晨/i}},Vz={ordinalNumber:lh({matchPattern:Vhe,parsePattern:Bhe,valueCallback:t=>parseInt(t,10)}),era:jn({matchPatterns:jhe,defaultMatchWidth:"wide",parsePatterns:Hhe,defaultParseWidth:"any"}),quarter:jn({matchPatterns:zhe,defaultMatchWidth:"wide",parsePatterns:Uhe,defaultParseWidth:"any",valueCallback:t=>t+1}),month:jn({matchPatterns:$he,defaultMatchWidth:"wide",parsePatterns:Whe,defaultParseWidth:"any"}),day:jn({matchPatterns:Ghe,defaultMatchWidth:"wide",parsePatterns:qhe,defaultParseWidth:"any"}),dayPeriod:jn({matchPatterns:Yhe,defaultMatchWidth:"any",parsePatterns:Qhe,defaultParseWidth:"any"})};var Bz={code:"zh-CN",formatDistance:Rz,formatLong:Pz,formatRelative:Nz,localize:Lz,match:Vz,options:{weekStartsOn:1,firstWeekContainsDate:4}};var Khe={lessThanXSeconds:{one:"\u5C11\u65BC 1 \u79D2",other:"\u5C11\u65BC {{count}} \u79D2"},xSeconds:{one:"1 \u79D2",other:"{{count}} \u79D2"},halfAMinute:"\u534A\u5206\u9418",lessThanXMinutes:{one:"\u5C11\u65BC 1 \u5206\u9418",other:"\u5C11\u65BC {{count}} \u5206\u9418"},xMinutes:{one:"1 \u5206\u9418",other:"{{count}} \u5206\u9418"},xHours:{one:"1 \u5C0F\u6642",other:"{{count}} \u5C0F\u6642"},aboutXHours:{one:"\u5927\u7D04 1 \u5C0F\u6642",other:"\u5927\u7D04 {{count}} \u5C0F\u6642"},xDays:{one:"1 \u5929",other:"{{count}} \u5929"},aboutXWeeks:{one:"\u5927\u7D04 1 \u500B\u661F\u671F",other:"\u5927\u7D04 {{count}} \u500B\u661F\u671F"},xWeeks:{one:"1 \u500B\u661F\u671F",other:"{{count}} \u500B\u661F\u671F"},aboutXMonths:{one:"\u5927\u7D04 1 \u500B\u6708",other:"\u5927\u7D04 {{count}} \u500B\u6708"},xMonths:{one:"1 \u500B\u6708",other:"{{count}} \u500B\u6708"},aboutXYears:{one:"\u5927\u7D04 1 \u5E74",other:"\u5927\u7D04 {{count}} \u5E74"},xYears:{one:"1 \u5E74",other:"{{count}} \u5E74"},overXYears:{one:"\u8D85\u904E 1 \u5E74",other:"\u8D85\u904E {{count}} \u5E74"},almostXYears:{one:"\u5C07\u8FD1 1 \u5E74",other:"\u5C07\u8FD1 {{count}} \u5E74"}},jz=(t,n,e)=>{let i,r=Khe[t];return typeof r=="string"?i=r:n===1?i=r.one:i=r.other.replace("{{count}}",String(n)),e?.addSuffix?e.comparison&&e.comparison>0?i+"\u5167":i+"\u524D":i};var Zhe={full:"y'\u5E74'M'\u6708'd'\u65E5' EEEE",long:"y'\u5E74'M'\u6708'd'\u65E5'",medium:"yyyy-MM-dd",short:"yy-MM-dd"},Xhe={full:"zzzz a h:mm:ss",long:"z a h:mm:ss",medium:"a h:mm:ss",short:"a h:mm"},Jhe={full:"{{date}} {{time}}",long:"{{date}} {{time}}",medium:"{{date}} {{time}}",short:"{{date}} {{time}}"},Hz={date:Qo({formats:Zhe,defaultWidth:"full"}),time:Qo({formats:Xhe,defaultWidth:"full"}),dateTime:Qo({formats:Jhe,defaultWidth:"full"})};var epe={lastWeek:"'\u4E0A\u500B'eeee p",yesterday:"'\u6628\u5929' p",today:"'\u4ECA\u5929' p",tomorrow:"'\u660E\u5929' p",nextWeek:"'\u4E0B\u500B'eeee p",other:"P"},zz=(t,n,e,i)=>epe[t];var tpe={narrow:["\u524D","\u516C\u5143"],abbreviated:["\u524D","\u516C\u5143"],wide:["\u516C\u5143\u524D","\u516C\u5143"]},ipe={narrow:["1","2","3","4"],abbreviated:["\u7B2C\u4E00\u523B","\u7B2C\u4E8C\u523B","\u7B2C\u4E09\u523B","\u7B2C\u56DB\u523B"],wide:["\u7B2C\u4E00\u523B\u9418","\u7B2C\u4E8C\u523B\u9418","\u7B2C\u4E09\u523B\u9418","\u7B2C\u56DB\u523B\u9418"]},npe={narrow:["\u4E00","\u4E8C","\u4E09","\u56DB","\u4E94","\u516D","\u4E03","\u516B","\u4E5D","\u5341","\u5341\u4E00","\u5341\u4E8C"],abbreviated:["1\u6708","2\u6708","3\u6708","4\u6708","5\u6708","6\u6708","7\u6708","8\u6708","9\u6708","10\u6708","11\u6708","12\u6708"],wide:["\u4E00\u6708","\u4E8C\u6708","\u4E09\u6708","\u56DB\u6708","\u4E94\u6708","\u516D\u6708","\u4E03\u6708","\u516B\u6708","\u4E5D\u6708","\u5341\u6708","\u5341\u4E00\u6708","\u5341\u4E8C\u6708"]},rpe={narrow:["\u65E5","\u4E00","\u4E8C","\u4E09","\u56DB","\u4E94","\u516D"],short:["\u65E5","\u4E00","\u4E8C","\u4E09","\u56DB","\u4E94","\u516D"],abbreviated:["\u9031\u65E5","\u9031\u4E00","\u9031\u4E8C","\u9031\u4E09","\u9031\u56DB","\u9031\u4E94","\u9031\u516D"],wide:["\u661F\u671F\u65E5","\u661F\u671F\u4E00","\u661F\u671F\u4E8C","\u661F\u671F\u4E09","\u661F\u671F\u56DB","\u661F\u671F\u4E94","\u661F\u671F\u516D"]},ope={narrow:{am:"\u4E0A",pm:"\u4E0B",midnight:"\u51CC\u6668",noon:"\u5348",morning:"\u65E9",afternoon:"\u4E0B\u5348",evening:"\u665A",night:"\u591C"},abbreviated:{am:"\u4E0A\u5348",pm:"\u4E0B\u5348",midnight:"\u51CC\u6668",noon:"\u4E2D\u5348",morning:"\u65E9\u6668",afternoon:"\u4E2D\u5348",evening:"\u665A\u4E0A",night:"\u591C\u9593"},wide:{am:"\u4E0A\u5348",pm:"\u4E0B\u5348",midnight:"\u51CC\u6668",noon:"\u4E2D\u5348",morning:"\u65E9\u6668",afternoon:"\u4E2D\u5348",evening:"\u665A\u4E0A",night:"\u591C\u9593"}},ape={narrow:{am:"\u4E0A",pm:"\u4E0B",midnight:"\u51CC\u6668",noon:"\u5348",morning:"\u65E9",afternoon:"\u4E0B\u5348",evening:"\u665A",night:"\u591C"},abbreviated:{am:"\u4E0A\u5348",pm:"\u4E0B\u5348",midnight:"\u51CC\u6668",noon:"\u4E2D\u5348",morning:"\u65E9\u6668",afternoon:"\u4E2D\u5348",evening:"\u665A\u4E0A",night:"\u591C\u9593"},wide:{am:"\u4E0A\u5348",pm:"\u4E0B\u5348",midnight:"\u51CC\u6668",noon:"\u4E2D\u5348",morning:"\u65E9\u6668",afternoon:"\u4E2D\u5348",evening:"\u665A\u4E0A",night:"\u591C\u9593"}},spe=(t,n)=>{let e=Number(t);switch(n?.unit){case"date":return e+"\u65E5";case"hour":return e+"\u6642";case"minute":return e+"\u5206";case"second":return e+"\u79D2";default:return"\u7B2C "+e}},Uz={ordinalNumber:spe,era:Bn({values:tpe,defaultWidth:"wide"}),quarter:Bn({values:ipe,defaultWidth:"wide",argumentCallback:t=>t-1}),month:Bn({values:npe,defaultWidth:"wide"}),day:Bn({values:rpe,defaultWidth:"wide"}),dayPeriod:Bn({values:ope,defaultWidth:"wide",formattingValues:ape,defaultFormattingWidth:"wide"})};var lpe=/^(第\s*)?\d+(日|時|分|秒)?/i,cpe=/\d+/i,dpe={narrow:/^(前)/i,abbreviated:/^(前)/i,wide:/^(公元前|公元)/i},upe={any:[/^(前)/i,/^(公元)/i]},mpe={narrow:/^[1234]/i,abbreviated:/^第[一二三四]刻/i,wide:/^第[一二三四]刻鐘/i},hpe={any:[/(1|一)/i,/(2|二)/i,/(3|三)/i,/(4|四)/i]},ppe={narrow:/^(一|二|三|四|五|六|七|八|九|十[二一])/i,abbreviated:/^(一|二|三|四|五|六|七|八|九|十[二一]|\d|1[12])月/i,wide:/^(一|二|三|四|五|六|七|八|九|十[二一])月/i},fpe={narrow:[/^一/i,/^二/i,/^三/i,/^四/i,/^五/i,/^六/i,/^七/i,/^八/i,/^九/i,/^十(?!(一|二))/i,/^十一/i,/^十二/i],any:[/^一|1/i,/^二|2/i,/^三|3/i,/^四|4/i,/^五|5/i,/^六|6/i,/^七|7/i,/^八|8/i,/^九|9/i,/^十(?!(一|二))|10/i,/^十一|11/i,/^十二|12/i]},gpe={narrow:/^[一二三四五六日]/i,short:/^[一二三四五六日]/i,abbreviated:/^週[一二三四五六日]/i,wide:/^星期[一二三四五六日]/i},_pe={any:[/日/i,/一/i,/二/i,/三/i,/四/i,/五/i,/六/i]},bpe={any:/^(上午?|下午?|午夜|[中正]午|早上?|下午|晚上?|凌晨)/i},vpe={any:{am:/^上午?/i,pm:/^下午?/i,midnight:/^午夜/i,noon:/^[中正]午/i,morning:/^早上/i,afternoon:/^下午/i,evening:/^晚上?/i,night:/^凌晨/i}},$z={ordinalNumber:lh({matchPattern:lpe,parsePattern:cpe,valueCallback:t=>parseInt(t,10)}),era:jn({matchPatterns:dpe,defaultMatchWidth:"wide",parsePatterns:upe,defaultParseWidth:"any"}),quarter:jn({matchPatterns:mpe,defaultMatchWidth:"wide",parsePatterns:hpe,defaultParseWidth:"any",valueCallback:t=>t+1}),month:jn({matchPatterns:ppe,defaultMatchWidth:"wide",parsePatterns:fpe,defaultParseWidth:"any"}),day:jn({matchPatterns:gpe,defaultMatchWidth:"wide",parsePatterns:_pe,defaultParseWidth:"any"}),dayPeriod:jn({matchPatterns:bpe,defaultMatchWidth:"any",parsePatterns:vpe,defaultParseWidth:"any"})};var Wz={code:"zh-TW",formatDistance:jz,formatLong:Hz,formatRelative:zz,localize:Uz,match:$z,options:{weekStartsOn:1,firstWeekContainsDate:4}};var CI={navPos:"side",theme:"auto",dir:"ltr",showHeader:!0,headerPos:"fixed",showUserPanel:!0,sidenavOpened:!0,sidenavCollapsed:!1,language:"auto"};var aa=(()=>{let n=class n{get notify(){return this.notify$.asObservable()}constructor(){this.key="ng-matero-settings",this.document=u(ge),this.translate=u(ia),this.store=u(hz),this.mediaMatcher=u(qm),this.dir=u(uz),this.notify$=new tt({}),this.htmlElement=this.document.querySelector("html"),this.storedOptions=this.store.get(this.key),this.options=Object.assign(CI,this.storedOptions),this.languages=["en-US","zh-CN","zh-TW"],this.localeMap={"en-US":tu,"zh-CN":Bz,"zh-TW":Wz},this.translate.addLangs(this.languages)}reset(){this.store.remove(this.key)}setOptions(i){this.options=Object.assign(CI,this.options,i),this.store.set(this.key,this.options),this.notify$.next(this.options)}setDirection(i){i&&this.setOptions({dir:i}),this.dir.value=this.options.dir,this.htmlElement.dir=this.options.dir}getThemeColor(){return this.options.theme==="auto"&&this.mediaMatcher.matchMedia("(prefers-color-scheme)").media!=="not all"?this.mediaMatcher.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light":this.options.theme}setTheme(i){i&&this.setOptions({theme:i}),this.getThemeColor()==="dark"?this.htmlElement.classList.add("theme-dark"):this.htmlElement.classList.remove("theme-dark")}getTranslateLang(){if(this.options.language==="auto"){let i=navigator.language;return this.languages.includes(i)?i:"en-US"}return this.options.language}setLanguage(i){i&&this.setOptions({language:i}),this.translate.use(this.getTranslateLang())}getLocale(){return this.localeMap[this.getTranslateLang()]}};n.\u0275fac=function(r){return new(r||n)},n.\u0275prov=O({token:n,factory:n.\u0275fac,providedIn:"root"});let t=n;return t})();var Gz=(()=>{let n=class n{constructor(){this.http=u(Yr),this.oidcAuth=u(Tt),this.menuService=u(so),this.permissonsService=u(_u),this.rolesService=u(Th),this.oidcAuth.permissionsChange$.subscribe(()=>{console.log("StartupService: Permission change event received, refreshing permissions"),this.setPermissions()})}load(){return new Promise((i,r)=>{this.http.get("data/menu.json").pipe(Be(o=>this.setMenu(o.menu))).subscribe({next:()=>{this.setPermissions(),i()},error:o=>{console.error("Error loading menu:",o),this.setPermissions(),i()}})})}setMenu(i){this.menuService.addNamespace(i,"menu"),this.menuService.set(i)}setPermissions(){let i=this.oidcAuth.getUserRoles();console.log("StartupService: User roles from token:",i);let r=["canAdd","canDelete","canEdit","canRead"];this.rolesService.flushRoles(),i.length>0?(this.permissonsService.loadPermissions(r),console.log("StartupService: Loaded permissions:",r),i.includes("HRAdmin")&&(this.rolesService.addRoles({HRAdmin:r}),console.log("StartupService: Added HRAdmin role with permissions:",r)),i.includes("Manager")&&(this.rolesService.addRoles({Manager:r}),console.log("StartupService: Added Manager role with permissions:",r)),i.includes("Employee")&&(this.rolesService.addRoles({Employee:["canRead"]}),console.log("StartupService: Added Employee role with canRead permission"))):(console.log("StartupService: No roles found - setting Guest permissions"),this.permissonsService.loadPermissions(["canRead"]),this.rolesService.addRoles({Guest:["canRead"]}))}};n.\u0275fac=function(r){return new(r||n)},n.\u0275prov=O({token:n,factory:n.\u0275fac,providedIn:"root"});let t=n;return t})();var qz=(()=>{let n=class n{constructor(){this.document=u(ge),this.selector="globalLoader"}getElement(){return this.document.getElementById(this.selector)}hide(){let i=this.getElement();i&&(i.addEventListener("transitionend",()=>{i.className="global-loader-hidden"}),i.classList.contains("global-loader-hidden")||(i.className+=" global-loader-fade-out"))}};n.\u0275fac=function(r){return new(r||n)},n.\u0275prov=O({token:n,factory:n.\u0275fac,providedIn:"root"});let t=n;return t})();var Yz=(()=>{let n=class n{constructor(){this.translate=u(ia),this.settings=u(aa)}load(){return new Promise(i=>{let r=this.settings.getTranslateLang();this.translate.setFallbackLang(r),this.translate.use(r).subscribe({next:()=>console.log(`Successfully initialized '${r}' language.'`),error:()=>console.error(`Problem with '${r}' language initialization.'`),complete:()=>i()})})}};n.\u0275fac=function(r){return new(r||n)},n.\u0275prov=O({token:n,factory:n.\u0275fac,providedIn:"root"});let t=n;return t})();function Qz(t,n){return n(t)}var wI=new T("BASE_URL");function ype(t){return new RegExp("^http(s)?://","i").test(t)}function Kz(t,n){let e=u(wI,{optional:!0}),i=o=>e&&ype(o),r=o=>[e?.replace(/\/$/g,""),o.replace(/^\.?\//,"")].filter(a=>a).join("/");return i(t.url)===!1?n(t.clone({url:r(t.url)})):n(t)}function Zz(t,n){let e=u(aa);return n(t.clone({headers:t.headers.append("Accept-Language",e.getTranslateLang())}))}function Xz(t,n){let e=u(Rg);return t.url.includes("/api/")?n(t).pipe(Mt(i=>{if(i instanceof nl){let r=i.body;if(r&&"code"in r&&r.code!==0)return r.msg&&e.error(r.msg),Wn(()=>[])}return Q(i)})):n(t)}var h_=(function(t){return t[t.UNAUTHORIZED=401]="UNAUTHORIZED",t[t.FORBIDDEN=403]="FORBIDDEN",t[t.NOT_FOUND=404]="NOT_FOUND",t[t.INTERNAL_SERVER_ERROR=500]="INTERNAL_SERVER_ERROR",t})(h_||{});function Jz(t,n){let e=u(Re),i=u(Rg),r=[h_.FORBIDDEN,h_.NOT_FOUND,h_.INTERNAL_SERVER_ERROR],o=a=>a.error?.message?a.error.message:a.error?.msg?a.error.msg:a.status===0?"Network error - please check your connection":`${a.status} ${a.statusText}`;return n(t).pipe(fi(a=>a.status===0?(console.warn("Network error (possible CORS issue):",a),Wn(()=>a)):(r.includes(a.status)?e.navigateByUrl(`/${a.status}`,{skipLocationChange:!0}):(console.error("ERROR",a),i.error(o(a)),a.status===h_.UNAUTHORIZED&&console.warn("Unauthorized access - authentication required")),Wn(()=>a))))}function e8(t,n){let e=u(mz),i=Date.now(),r;return n(t).pipe(Be({next:o=>r=o instanceof nl?"succeeded":"",error:o=>r="failed"}),Hr(()=>{let o=Date.now()-i,a=`${t.method} "${t.urlWithParams}" ${r} in ${o} ms.`;e.add(a)}))}var t8=[Qz,Kz,Zz,Xz,Jz,e8];var qC=["*"],xpe=["content"],Cpe=[[["mat-drawer"]],[["mat-drawer-content"]],"*"],wpe=["mat-drawer","mat-drawer-content","*"];function Dpe(t,n){if(t&1){let e=Y();h(0,"div",1),S("click",function(){I(e);let r=C();return A(r._onBackdropClicked())}),p()}if(t&2){let e=C();G("mat-drawer-shown",e._isShowingBackdrop())}}function Epe(t,n){t&1&&(h(0,"mat-drawer-content"),oe(1,2),p())}var Mpe=[[["mat-sidenav"]],[["mat-sidenav-content"]],"*"],kpe=["mat-sidenav","mat-sidenav-content","*"];function Spe(t,n){if(t&1){let e=Y();h(0,"div",1),S("click",function(){I(e);let r=C();return A(r._onBackdropClicked())}),p()}if(t&2){let e=C();G("mat-drawer-shown",e._isShowingBackdrop())}}function Tpe(t,n){t&1&&(h(0,"mat-sidenav-content"),oe(1,2),p())}var Ipe=`.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:.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} +`;var Ape=new T("MAT_DRAWER_DEFAULT_AUTOSIZE",{providedIn:"root",factory:Ope}),MI=new T("MAT_DRAWER_CONTAINER");function Ope(){return!1}var WC=(()=>{class t extends Pa{_platform=u(qe);_changeDetectorRef=u(ye);_container=u(EI);constructor(){let e=u(q),i=u(ws),r=u(ae);super(e,i,r)}ngAfterContentInit(){this._container._contentMarginChanges.subscribe(()=>{this._changeDetectorRef.markForCheck()})}_shouldBeHidden(){if(this._platform.isBrowser)return!1;let{start:e,end:i}=this._container;return e!=null&&e.mode!=="over"&&e.opened||i!=null&&i.mode!=="over"&&i.opened}static \u0275fac=function(i){return new(i||t)};static \u0275cmp=E({type:t,selectors:[["mat-drawer-content"]],hostAttrs:[1,"mat-drawer-content"],hostVars:6,hostBindings:function(i,r){i&2&&(Dt("margin-left",r._container._contentMargins.left,"px")("margin-right",r._container._contentMargins.right,"px"),G("mat-drawer-content-hidden",r._shouldBeHidden()))},features:[Ce([{provide:Pa,useExisting:t}]),le],ngContentSelectors:qC,decls:1,vars:0,template:function(i,r){i&1&&(Me(),oe(0))},encapsulation:2,changeDetection:0})}return t})(),DI=(()=>{class t{_elementRef=u(q);_focusTrapFactory=u(Qm);_focusMonitor=u(Yt);_platform=u(qe);_ngZone=u(ae);_renderer=u(je);_interactivityChecker=u(ac);_doc=u(ge);_container=u(MI,{optional:!0});_focusTrap=null;_elementFocusedBeforeDrawerWasOpened=null;_eventCleanups;_isAttached;_anchor;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=Ai(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=Ai(e)),this._autoFocus=e}_autoFocus;get opened(){return this._opened()}set opened(e){this.toggle(Ai(e))}_opened=he(!1);_openedVia;_animationStarted=new z;_animationEnd=new z;openedChange=new U(!0);_openedStream=this.openedChange.pipe(ce(e=>e),se(()=>{}));openedStart=this._animationStarted.pipe(ce(()=>this.opened),Gu(void 0));_closedStream=this.openedChange.pipe(ce(e=>!e),se(()=>{}));closedStart=this._animationStarted.pipe(ce(()=>!this.opened),Gu(void 0));_destroyed=new z;onPositionChanged=new U;_content;_modeChanged=new z;_injector=u(de);_changeDetectorRef=u(ye);constructor(){this.openedChange.pipe(Te(this._destroyed)).subscribe(e=>{e?(this._elementFocusedBeforeDrawerWasOpened=this._doc.activeElement,this._takeFocus()):this._isFocusWithinDrawer()&&this._restoreFocus(this._openedVia||"program")}),this._ngZone.runOutsideAngular(()=>{let e=this._elementRef.nativeElement;zs(e,"keydown").pipe(ce(i=>i.keyCode===27&&!this.disableClose&&!Ft(i)),Te(this._destroyed)).subscribe(i=>this._ngZone.run(()=>{this.close(),i.stopPropagation(),i.preventDefault()})),this._eventCleanups=[this._renderer.listen(e,"transitionrun",this._handleTransitionEvent),this._renderer.listen(e,"transitionend",this._handleTransitionEvent),this._renderer.listen(e,"transitioncancel",this._handleTransitionEvent)]}),this._animationEnd.subscribe(()=>{this.openedChange.emit(this.opened)})}_forceFocus(e,i){this._interactivityChecker.isFocusable(e)||(e.tabIndex=-1,this._ngZone.runOutsideAngular(()=>{let r=()=>{o(),a(),e.removeAttribute("tabindex")},o=this._renderer.listen(e,"blur",r),a=this._renderer.listen(e,"mousedown",r)})),e.focus(i)}_focusByCssSelector(e,i){let r=this._elementRef.nativeElement.querySelector(e);r&&this._forceFocus(r,i)}_takeFocus(){if(!this._focusTrap)return;let e=this._elementRef.nativeElement;switch(this.autoFocus){case!1:case"dialog":return;case!0:case"first-tabbable":pt(()=>{!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,i){e&&i&&(this._openedVia=i);let r=this._setOpen(e,!e&&this._isFocusWithinDrawer(),this._openedVia||"program");return e||(this._openedVia=null),r}_setOpen(e,i,r){return e===this.opened?Promise.resolve(e?"open":"close"):(this._opened.set(e),this._container?._transitionsEnabled?this._setIsAnimating(!0):setTimeout(()=>{this._animationStarted.next(),this._animationEnd.next()}),this._elementRef.nativeElement.classList.toggle("mat-drawer-opened",e),!e&&i&&this._restoreFocus(r),this._changeDetectorRef.markForCheck(),this._updateFocusTrapState(),new Promise(o=>{this.openedChange.pipe(lt(1)).subscribe(a=>o(a?"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._container?.hasBackdrop&&this.opened)}_updatePositionInParent(e){if(!this._platform.isBrowser)return;let i=this._elementRef.nativeElement,r=i.parentNode;e==="end"?(this._anchor||(this._anchor=this._doc.createComment("mat-drawer-anchor"),r.insertBefore(this._anchor,i)),r.appendChild(i)):this._anchor&&this._anchor.parentNode.insertBefore(i,this._anchor)}_handleTransitionEvent=e=>{let i=this._elementRef.nativeElement;e.target===i&&this._ngZone.run(()=>{e.type==="transitionrun"?this._animationStarted.next(e):(e.type==="transitionend"&&this._setIsAnimating(!1),this._animationEnd.next(e))})};static \u0275fac=function(i){return new(i||t)};static \u0275cmp=E({type:t,selectors:[["mat-drawer"]],viewQuery:function(i,r){if(i&1&&ie(xpe,5),i&2){let o;B(o=j())&&(r._content=o.first)}},hostAttrs:[1,"mat-drawer"],hostVars:12,hostBindings:function(i,r){i&2&&(X("align",null)("tabIndex",r.mode!=="side"?"-1":null),Dt("visibility",!r._container&&!r.opened?"hidden":null),G("mat-drawer-end",r.position==="end")("mat-drawer-over",r.mode==="over")("mat-drawer-push",r.mode==="push")("mat-drawer-side",r.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:qC,decls:3,vars:0,consts:[["content",""],["cdkScrollable","",1,"mat-drawer-inner-container"]],template:function(i,r){i&1&&(Me(),h(0,"div",1,0),oe(2),p())},dependencies:[Pa],encapsulation:2,changeDetection:0})}return t})(),EI=(()=>{class t{_dir=u(Vt,{optional:!0});_element=u(q);_ngZone=u(ae);_changeDetectorRef=u(ye);_animationDisabled=Ye();_transitionsEnabled=!1;_allDrawers;_drawers=new pr;_content;_userContent;get start(){return this._start}get end(){return this._end}get autosize(){return this._autosize}set autosize(e){this._autosize=Ai(e)}_autosize=u(Ape);get hasBackdrop(){return this._drawerHasBackdrop(this._start)||this._drawerHasBackdrop(this._end)}set hasBackdrop(e){this._backdropOverride=e==null?null:Ai(e)}_backdropOverride;backdropClick=new U;_start;_end;_left;_right;_destroyed=new z;_doCheckSubject=new z;_contentMargins={left:null,right:null};_contentMarginChanges=new z;get scrollable(){return this._userContent||this._content}_injector=u(de);constructor(){let e=u(qe),i=u(Xn);this._dir?.change.pipe(Te(this._destroyed)).subscribe(()=>{this._validateDrawers(),this.updateContentMargins()}),i.change().pipe(Te(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(He(this._allDrawers),Te(this._destroyed)).subscribe(e=>{this._drawers.reset(e.filter(i=>!i._container||i._container===this)),this._drawers.notifyOnChanges()}),this._drawers.changes.pipe(He(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(Rt(10),Te(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,i=0;if(this._left&&this._left.opened){if(this._left.mode=="side")e+=this._left._getWidth();else if(this._left.mode=="push"){let r=this._left._getWidth();e+=r,i-=r}}if(this._right&&this._right.opened){if(this._right.mode=="side")i+=this._right._getWidth();else if(this._right.mode=="push"){let r=this._right._getWidth();i+=r,e-=r}}e=e||null,i=i||null,(e!==this._contentMargins.left||i!==this._contentMargins.right)&&(this._contentMargins={left:e,right:i},this._ngZone.run(()=>this._contentMarginChanges.next(this._contentMargins)))}ngDoCheck(){this._autosize&&this._isPushed()&&this._ngZone.runOutsideAngular(()=>this._doCheckSubject.next())}_watchDrawerToggle(e){e._animationStarted.pipe(Te(this._drawers.changes)).subscribe(()=>{this.updateContentMargins(),this._changeDetectorRef.markForCheck()}),e.mode!=="side"&&e.openedChange.pipe(Te(this._drawers.changes)).subscribe(()=>this._setContainerClass(e.opened))}_watchDrawerPosition(e){e.onPositionChanged.pipe(Te(this._drawers.changes)).subscribe(()=>{pt({read:()=>this._validateDrawers()},{injector:this._injector})})}_watchDrawerMode(e){e._modeChanged.pipe(Te(Je(this._drawers.changes,this._destroyed))).subscribe(()=>{this.updateContentMargins(),this._changeDetectorRef.markForCheck()})}_setContainerClass(e){let i=this._element.nativeElement.classList,r="mat-drawer-container-has-open";e?i.add(r):i.remove(r)}_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(i){return new(i||t)};static \u0275cmp=E({type:t,selectors:[["mat-drawer-container"]],contentQueries:function(i,r,o){if(i&1&&(xe(o,WC,5),xe(o,DI,5)),i&2){let a;B(a=j())&&(r._content=a.first),B(a=j())&&(r._allDrawers=a)}},viewQuery:function(i,r){if(i&1&&ie(WC,5),i&2){let o;B(o=j())&&(r._userContent=o.first)}},hostAttrs:[1,"mat-drawer-container"],hostVars:2,hostBindings:function(i,r){i&2&&G("mat-drawer-container-explicit-backdrop",r._backdropOverride)},inputs:{autosize:"autosize",hasBackdrop:"hasBackdrop"},outputs:{backdropClick:"backdropClick"},exportAs:["matDrawerContainer"],features:[Ce([{provide:MI,useExisting:t}])],ngContentSelectors:wpe,decls:4,vars:2,consts:[[1,"mat-drawer-backdrop",3,"mat-drawer-shown"],[1,"mat-drawer-backdrop",3,"click"]],template:function(i,r){i&1&&(Me(Cpe),N(0,Dpe,1,2,"div",0),oe(1),oe(2,1),N(3,Epe,2,0,"mat-drawer-content")),i&2&&(L(r.hasBackdrop?0:-1),g(3),L(r._content?-1:3))},dependencies:[WC],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:.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 t})(),GC=(()=>{class t extends WC{static \u0275fac=(()=>{let e;return function(r){return(e||(e=fe(t)))(r||t)}})();static \u0275cmp=E({type:t,selectors:[["mat-sidenav-content"]],hostAttrs:[1,"mat-drawer-content","mat-sidenav-content"],features:[Ce([{provide:Pa,useExisting:t}]),le],ngContentSelectors:qC,decls:1,vars:0,template:function(i,r){i&1&&(Me(),oe(0))},encapsulation:2,changeDetection:0})}return t})(),kI=(()=>{class t extends DI{get fixedInViewport(){return this._fixedInViewport}set fixedInViewport(e){this._fixedInViewport=Ai(e)}_fixedInViewport=!1;get fixedTopGap(){return this._fixedTopGap}set fixedTopGap(e){this._fixedTopGap=Ln(e)}_fixedTopGap=0;get fixedBottomGap(){return this._fixedBottomGap}set fixedBottomGap(e){this._fixedBottomGap=Ln(e)}_fixedBottomGap=0;static \u0275fac=(()=>{let e;return function(r){return(e||(e=fe(t)))(r||t)}})();static \u0275cmp=E({type:t,selectors:[["mat-sidenav"]],hostAttrs:[1,"mat-drawer","mat-sidenav"],hostVars:16,hostBindings:function(i,r){i&2&&(X("tabIndex",r.mode!=="side"?"-1":null)("align",null),Dt("top",r.fixedInViewport?r.fixedTopGap:null,"px")("bottom",r.fixedInViewport?r.fixedBottomGap:null,"px"),G("mat-drawer-end",r.position==="end")("mat-drawer-over",r.mode==="over")("mat-drawer-push",r.mode==="push")("mat-drawer-side",r.mode==="side")("mat-sidenav-fixed",r.fixedInViewport))},inputs:{fixedInViewport:"fixedInViewport",fixedTopGap:"fixedTopGap",fixedBottomGap:"fixedBottomGap"},exportAs:["matSidenav"],features:[Ce([{provide:DI,useExisting:t}]),le],ngContentSelectors:qC,decls:3,vars:0,consts:[["content",""],["cdkScrollable","",1,"mat-drawer-inner-container"]],template:function(i,r){i&1&&(Me(),h(0,"div",1,0),oe(2),p())},dependencies:[Pa],encapsulation:2,changeDetection:0})}return t})(),i8=(()=>{class t extends EI{_allDrawers=void 0;_content=void 0;static \u0275fac=(()=>{let e;return function(r){return(e||(e=fe(t)))(r||t)}})();static \u0275cmp=E({type:t,selectors:[["mat-sidenav-container"]],contentQueries:function(i,r,o){if(i&1&&(xe(o,GC,5),xe(o,kI,5)),i&2){let a;B(a=j())&&(r._content=a.first),B(a=j())&&(r._allDrawers=a)}},hostAttrs:[1,"mat-drawer-container","mat-sidenav-container"],hostVars:2,hostBindings:function(i,r){i&2&&G("mat-drawer-container-explicit-backdrop",r._backdropOverride)},exportAs:["matSidenavContainer"],features:[Ce([{provide:MI,useExisting:t},{provide:EI,useExisting:t}]),le],ngContentSelectors:kpe,decls:4,vars:2,consts:[[1,"mat-drawer-backdrop",3,"mat-drawer-shown"],[1,"mat-drawer-backdrop",3,"click"]],template:function(i,r){i&1&&(Me(Mpe),N(0,Spe,1,2,"div",0),oe(1),oe(2,1),N(3,Tpe,2,0,"mat-sidenav-content")),i&2&&(L(r.hasBackdrop?0:-1),g(3),L(r._content?-1:3))},dependencies:[GC],styles:[Ipe],encapsulation:2,changeDetection:0})}return t})(),n8=(()=>{class t{static \u0275fac=function(i){return new(i||t)};static \u0275mod=ee({type:t});static \u0275inj=J({imports:[we,vr,vr,we]})}return t})();function Ppe(t,n){t&1&&ai(0,"div",3)}function Fpe(t,n){t&1&&(ft(0,"div",4),ai(1,"div",5),vt())}var Npe={min:8,max:100,speed:200,debounceTime:0,trickleSpeed:300,fadeOutSpeed:50,relative:!1,flat:!1,spinner:!1,direction:"ltr+",spinnerPosition:"right",trickleFunc:t=>t>=0&&t<20?10:t>=20&&t<50?4:t>=50&&t<80?2:t>=80&&t<99?.5:0},r8=new T("NG_PROGRESS_OPTIONS",{providedIn:"root",factory:()=>Npe});var YC=(function(t){return t.START="START",t.COMPLETE="COMPLETE",t})(YC||{});function Lpe(t){let n=ct(t)||0;return n<100&&n>=0?n:0}function Vpe(t){let n=ct(t)||100;return n>0&&n<=100?n:100}var QC=(()=>{let n=class n{constructor(){this.defaultOptions=u(r8),this.min=ne(this.defaultOptions.min,{transform:Lpe}),this.max=ne(this.defaultOptions.max,{transform:Vpe}),this.speed=ne(this.defaultOptions.speed,{transform:ct}),this.trickleSpeed=ne(this.defaultOptions.trickleSpeed,{transform:ct}),this.fadeOutSpeed=ne(this.defaultOptions.fadeOutSpeed,{transform:ct}),this.debounceTime=ne(this.defaultOptions.debounceTime,{transform:ct}),this.trickleFunc=ne(this.defaultOptions.trickleFunc),this.config=Zt(()=>({max:this.max(),min:this.min(),speed:this.speed(),trickleSpeed:this.trickleSpeed(),fadeOutSpeed:this.fadeOutSpeed(),trickleFunc:this.trickleFunc(),debounceTime:this.debounceTime()})),this._progress=he(0),this._active=he(!1),this.active=Zt(()=>this._active()),this.progress=Zt(()=>this._progress()),this.started=bi(),this.completed=bi(),this._trigger=new tt(null);let i;Ar(r=>{let o=this.config();Ti(()=>{i=this._trigger.pipe(ce(a=>!!a),$e(a=>a===YC.START?qa(o.debounceTime).pipe($e(()=>this.onTrickling(o))):this.onComplete(o))).subscribe(),r(()=>i?.unsubscribe())})})}start(){this.started.emit(),this._trigger.next(YC.START),this._active.set(!0)}complete(){this._trigger.next(YC.COMPLETE)}inc(i){let r=this.progress();this.active()?(typeof i!="number"&&(i=this.config().trickleFunc(r)),this.set(r+i)):this.start()}set(i){this._active.set(!0),this._progress.set(this.clamp(i))}clamp(i){return Math.max(this.config().min,Math.min(this.config().max,i))}onTrickling(i){return this.active()||this.set(i.min),qa(0,i.trickleSpeed).pipe(Be(()=>this.inc()))}onComplete(i){return this.active()?(this.completed.emit(),Q({}).pipe(Be(()=>this._progress.set(100)),pa(i.speed+140),Be(()=>this._active.set(!1)),pa(i.fadeOutSpeed),Hr(()=>this._progress.set(0)),Te(fz(this.started)))):Fi}};n.\u0275fac=function(r){return new(r||n)},n.\u0275dir=F({type:n,selectors:[["","ngProgressRef",""]],inputs:{min:[1,"min"],max:[1,"max"],speed:[1,"speed"],trickleSpeed:[1,"trickleSpeed"],fadeOutSpeed:[1,"fadeOutSpeed"],debounceTime:[1,"debounceTime"],trickleFunc:[1,"trickleFunc"]},outputs:{started:"started",completed:"completed"},exportAs:["ngProgressRef"]});let t=n;return t})(),o8=(()=>{let n=class n{constructor(){this.config=u(r8),this.progressRef=u(QC,{host:!0,self:!0}),this.flat=ne(this.config.flat,{transform:V}),this.spinner=ne(this.config.spinner,{transform:V}),this.relative=ne(this.config.relative,{transform:V}),this.spinnerPosition=ne(this.config.spinnerPosition),this.direction=ne(this.config.direction),this.progressTransform=Zt(()=>`translate3d(${this.progressRef.progress()}%,0,0)`)}};n.\u0275fac=function(r){return new(r||n)},n.\u0275cmp=E({type:n,selectors:[["ng-progress"]],hostAttrs:["role","progressbar"],hostVars:12,hostBindings:function(r,o){r&2&&(X("spinnerPosition",o.spinnerPosition())("direction",o.direction()),Dt("--_ng-progress-speed",o.progressRef.speed()+"ms")("--_ng-progress-fade-out-speed",o.progressRef.fadeOutSpeed()+"ms"),G("ng-progress-bar",!0)("ng-progress-bar-active",o.progressRef.active())("ng-progress-bar-relative",o.relative()))},inputs:{flat:[1,"flat"],spinner:[1,"spinner"],relative:[1,"relative"],spinnerPosition:[1,"spinnerPosition"],direction:[1,"direction"]},exportAs:["ngProgress"],features:[ym([{directive:QC,inputs:["min","min","max","max","speed","speed","trickleSpeed","trickleSpeed","fadeOutSpeed","fadeOutSpeed","debounceTime","debounceTime"],outputs:["started","started","completed","completed"]}])],decls:5,vars:4,consts:[[1,"ng-progress-bar-wrapper"],[1,"ng-bar-placeholder"],[1,"ng-bar"],[1,"ng-meteor"],[1,"ng-spinner"],[1,"ng-spinner-icon"]],template:function(r,o){r&1&&(ft(0,"div",0)(1,"div",1)(2,"div",2),N(3,Ppe,1,0,"div",3),vt()(),N(4,Fpe,2,0,"div",4),vt()),r&2&&(g(2),Dt("transform",o.progressTransform()),g(),L(o.flat()?-1:3),g(),L(o.spinner()?4:-1))},styles:['[_nghost-%COMP%]{--_ng-progress-thickness: var(--ng-progress-thickness, 2);--_ng-progress-thickness-px: calc(var(--_ng-progress-thickness) * 1px);--_ng-progress-thickness-add-one: calc(var(--_ng-progress-thickness) + 1);--_ng-progress-meteor-position-px: calc(var(--_ng-progress-thickness-add-one) * -1px);--_ng-progress-color: var(--ng-progress-color, #1B95E0);--_ng-progress-holder-color: var(--ng-progress-holder-color, transparent);--_ng-progress-ease: var(--ng-progress-ease, linear);--_ng-progress-spinner-thickness: var(--ng-progress-spinner-thickness, 2);--_ng-progress-spinner-thickness-px: calc(var(--_ng-progress-spinner-thickness) * 1px);--_ng-progress-spinner-spacing: var(--ng-progress-spinner-spacing, 15);--_ng-progress-spinner-spacing-px: calc(var(--_ng-progress-spinner-spacing) * 1px);--_ng-progress-spinner-size: var(--ng-progress-spinner-size, 18);--_ng-progress-spinner-size-px: calc(var(--_ng-progress-spinner-size) * 1px);--_ng-progress-spinner-speed: var(--ng-progress-spinner-speed, .25s);z-index:999999;pointer-events:none}.ng-progress-bar-active[_nghost-%COMP%] .ng-progress-bar-wrapper[_ngcontent-%COMP%]{filter:alpha(opacity=100);opacity:1;transition:none}.ng-progress-bar-active[_nghost-%COMP%] .ng-bar[_ngcontent-%COMP%]{transition:all var(--_ng-progress-speed) var(--_ng-progress-ease)}.ng-progress-bar-relative[_nghost-%COMP%] .ng-progress-bar-wrapper[_ngcontent-%COMP%]{position:relative}[direction="ltr+"][_nghost-%COMP%] .ng-meteor[_ngcontent-%COMP%], [direction=ltr-][_nghost-%COMP%] .ng-meteor[_ngcontent-%COMP%]{rotate:calc(var(--_ng-progress-thickness-add-one) * 1deg)}[direction="ltr+"][_nghost-%COMP%] .ng-bar[_ngcontent-%COMP%], [direction="rtl+"][_nghost-%COMP%] .ng-bar[_ngcontent-%COMP%]{margin-left:-100%}[direction="ltr+"][_nghost-%COMP%] .ng-meteor[_ngcontent-%COMP%], [direction="rtl+"][_nghost-%COMP%] .ng-meteor[_ngcontent-%COMP%]{right:0}[direction="ltr+"][_nghost-%COMP%] .ng-meteor[_ngcontent-%COMP%], [direction=rtl-][_nghost-%COMP%] .ng-meteor[_ngcontent-%COMP%]{top:var(--_ng-progress-meteor-position-px)}[direction=ltr-][_nghost-%COMP%] .ng-meteor[_ngcontent-%COMP%], [direction="rtl+"][_nghost-%COMP%] .ng-meteor[_ngcontent-%COMP%]{bottom:var(--_ng-progress-meteor-position-px)}[direction=ltr-][_nghost-%COMP%] .ng-bar-placeholder[_ngcontent-%COMP%], [direction="rtl+"][_nghost-%COMP%] .ng-bar-placeholder[_ngcontent-%COMP%]{transform:rotate(180deg)}[direction=ltr-][_nghost-%COMP%] .ng-spinner-icon[_ngcontent-%COMP%], [direction="rtl+"][_nghost-%COMP%] .ng-spinner-icon[_ngcontent-%COMP%]{animation-direction:reverse}[direction="rtl+"][_nghost-%COMP%] .ng-meteor[_ngcontent-%COMP%], [direction=rtl-][_nghost-%COMP%] .ng-meteor[_ngcontent-%COMP%]{rotate:calc(var(--_ng-progress-thickness-add-one) * -1deg)}[_nghost-%COMP%] .ng-spinner[_ngcontent-%COMP%]{top:var(--_ng-progress-spinner-spacing-px)}[spinnerPosition=left][_nghost-%COMP%] .ng-spinner[_ngcontent-%COMP%]{left:var(--_ng-progress-spinner-spacing-px)}[spinnerPosition=right][_nghost-%COMP%] .ng-spinner[_ngcontent-%COMP%]{right:var(--_ng-progress-spinner-spacing-px)}.ng-progress-bar-wrapper[_ngcontent-%COMP%]{position:fixed;z-index:999999;top:0;left:0;width:100%;transform:scale(1);filter:alpha(opacity=0);opacity:0;transition:opacity var(--_ng-progress-fade-out-speed) linear}.ng-bar-placeholder[_ngcontent-%COMP%]{position:absolute;height:var(--_ng-progress-thickness-px);width:100%}.ng-bar[_ngcontent-%COMP%]{width:100%;height:100%;transform:translate(-100%,0,0);background:var(--_ng-progress-color)}.ng-meteor[_ngcontent-%COMP%]{display:block;position:absolute;width:100px;height:100%;opacity:1;box-shadow:0 0 10px var(--_ng-progress-color),0 0 5px var(--_ng-progress-color)}.ng-spinner[_ngcontent-%COMP%]{position:absolute;display:block;z-index:1031;top:10px}.ng-spinner-icon[_ngcontent-%COMP%]{box-sizing:border-box;animation:_ngcontent-%COMP%_spinner-animation var(--_ng-progress-spinner-speed) linear infinite;border-style:solid;border-color:transparent;border-radius:50%;border-top-color:var(--_ng-progress-color);border-left-color:var(--_ng-progress-color);width:var(--_ng-progress-spinner-size-px);height:var(--_ng-progress-spinner-size-px);border-width:var(--_ng-progress-spinner-thickness-px)}@keyframes _ngcontent-%COMP%_spinner-animation{0%{transform:rotate(0)}to{transform:rotate(360deg)}}'],changeDetection:0});let t=n;return t})();var Bpe={minDuration:0,startEvents:[ps],completeEvents:[vi,qo,tc]},jpe=new T("NG_PROGRESS_ROUTER_OPTIONS",{providedIn:"root",factory:()=>Bpe});function a8(t,n){return n.some(e=>t instanceof e)}var Hpe=(()=>{let n=class n{constructor(){this.router=u(Re),this.config=u(jpe),this.progressRef=u(QC,{host:!0,self:!0});let i;this.router.events.pipe(ce(r=>a8(r,[...this.config.startEvents,...this.config.completeEvents])),se(r=>a8(r,this.config.startEvents)),Be(r=>{clearTimeout(i),r?this.progressRef.start():i=setTimeout(()=>{this.progressRef.complete()},this.config.minDuration)}),ku()).subscribe()}};n.\u0275fac=function(r){return new(r||n)},n.\u0275dir=F({type:n});let t=n;return t})(),s8=(()=>{let n=class n extends Hpe{};n.\u0275fac=(()=>{let i;return function(o){return(i||(i=fe(n)))(o||n)}})(),n.\u0275dir=F({type:n,selectors:[["ng-progress","ngProgressRouter",""]],features:[le]});let t=n;return t})();var zpe=["*",[["mat-toolbar-row"]]],Upe=["*","mat-toolbar-row"],$pe=(()=>{class t{static \u0275fac=function(i){return new(i||t)};static \u0275dir=F({type:t,selectors:[["mat-toolbar-row"]],hostAttrs:[1,"mat-toolbar-row"],exportAs:["matToolbarRow"]})}return t})(),KC=(()=>{class t{_elementRef=u(q);_platform=u(qe);_document=u(ge);color;_toolbarRows;constructor(){}ngAfterViewInit(){this._platform.isBrowser&&(this._checkToolbarMixedModes(),this._toolbarRows.changes.subscribe(()=>this._checkToolbarMixedModes()))}_checkToolbarMixedModes(){this._toolbarRows.length}static \u0275fac=function(i){return new(i||t)};static \u0275cmp=E({type:t,selectors:[["mat-toolbar"]],contentQueries:function(i,r,o){if(i&1&&xe(o,$pe,5),i&2){let a;B(a=j())&&(r._toolbarRows=a)}},hostAttrs:[1,"mat-toolbar"],hostVars:6,hostBindings:function(i,r){i&2&&(it(r.color?"mat-"+r.color:""),G("mat-toolbar-multiple-rows",r._toolbarRows.length>0)("mat-toolbar-single-row",r._toolbarRows.length===0))},inputs:{color:"color"},exportAs:["matToolbar"],ngContentSelectors:Upe,decls:2,vars:0,template:function(i,r){i&1&&(Me(zpe),oe(0),oe(1,1))},styles:[`.mat-toolbar{background:var(--mat-toolbar-container-background-color, var(--mat-sys-surface));color:var(--mat-toolbar-container-text-color, var(--mat-sys-on-surface))}.mat-toolbar,.mat-toolbar h1,.mat-toolbar h2,.mat-toolbar h3,.mat-toolbar h4,.mat-toolbar h5,.mat-toolbar h6{font-family:var(--mat-toolbar-title-text-font, var(--mat-sys-title-large-font));font-size:var(--mat-toolbar-title-text-size, var(--mat-sys-title-large-size));line-height:var(--mat-toolbar-title-text-line-height, var(--mat-sys-title-large-line-height));font-weight:var(--mat-toolbar-title-text-weight, var(--mat-sys-title-large-weight));letter-spacing:var(--mat-toolbar-title-text-tracking, var(--mat-sys-title-large-tracking));margin:0}@media(forced-colors: active){.mat-toolbar{outline:solid 1px}}.mat-toolbar .mat-form-field-underline,.mat-toolbar .mat-form-field-ripple,.mat-toolbar .mat-focused .mat-form-field-ripple{background-color:currentColor}.mat-toolbar .mat-form-field-label,.mat-toolbar .mat-focused .mat-form-field-label,.mat-toolbar .mat-select-value,.mat-toolbar .mat-select-arrow,.mat-toolbar .mat-form-field.mat-focused .mat-select-arrow{color:inherit}.mat-toolbar .mat-input-element{caret-color:currentColor}.mat-toolbar .mat-mdc-button-base.mat-mdc-button-base.mat-unthemed{--mat-button-text-label-text-color: var(--mat-toolbar-container-text-color, var(--mat-sys-on-surface));--mat-button-outlined-label-text-color: var(--mat-toolbar-container-text-color, var(--mat-sys-on-surface))}.mat-toolbar-row,.mat-toolbar-single-row{display:flex;box-sizing:border-box;padding:0 16px;width:100%;flex-direction:row;align-items:center;white-space:nowrap;height:var(--mat-toolbar-standard-height, 64px)}@media(max-width: 599px){.mat-toolbar-row,.mat-toolbar-single-row{height:var(--mat-toolbar-mobile-height, 56px)}}.mat-toolbar-multiple-rows{display:flex;box-sizing:border-box;flex-direction:column;width:100%;min-height:var(--mat-toolbar-standard-height, 64px)}@media(max-width: 599px){.mat-toolbar-multiple-rows{min-height:var(--mat-toolbar-mobile-height, 56px)}} +`],encapsulation:2,changeDetection:0})}return t})();var ZC=(()=>{class t{static \u0275fac=function(i){return new(i||t)};static \u0275mod=ee({type:t});static \u0275inj=J({imports:[we,we]})}return t})();var c8=[["requestFullscreen","exitFullscreen","fullscreenElement","fullscreenEnabled","fullscreenchange","fullscreenerror"],["webkitRequestFullscreen","webkitExitFullscreen","webkitFullscreenElement","webkitFullscreenEnabled","webkitfullscreenchange","webkitfullscreenerror"],["webkitRequestFullScreen","webkitCancelFullScreen","webkitCurrentFullScreenElement","webkitCancelFullScreen","webkitfullscreenchange","webkitfullscreenerror"],["mozRequestFullScreen","mozCancelFullScreen","mozFullScreenElement","mozFullScreenEnabled","mozfullscreenchange","mozfullscreenerror"],["msRequestFullscreen","msExitFullscreen","msFullscreenElement","msFullscreenEnabled","MSFullscreenChange","MSFullscreenError"]],wl=(()=>{if(typeof document>"u")return!1;let t=c8[0],n={};for(let e of c8)if(e?.[1]in document){for(let[r,o]of e.entries())n[t[r]]=o;return n}return!1})(),d8={change:wl.fullscreenchange,error:wl.fullscreenerror},So={request(t=document.documentElement,n){return new Promise((e,i)=>{let r=()=>{So.off("change",r),e()};So.on("change",r);let o=t[wl.requestFullscreen](n);o instanceof Promise&&o.then(r).catch(i)})},exit(){return new Promise((t,n)=>{if(!So.isFullscreen){t();return}let e=()=>{So.off("change",e),t()};So.on("change",e);let i=document[wl.exitFullscreen]();i instanceof Promise&&i.then(e).catch(n)})},toggle(t,n){return So.isFullscreen?So.exit():So.request(t,n)},onchange(t){So.on("change",t)},onerror(t){So.on("error",t)},on(t,n){let e=d8[t];e&&document.addEventListener(e,n,!1)},off(t,n){let e=d8[t];e&&document.removeEventListener(e,n,!1)},raw:wl};Object.defineProperties(So,{isFullscreen:{get:()=>!!document[wl.fullscreenElement]},element:{enumerable:!0,get:()=>document[wl.fullscreenElement]??void 0},isEnabled:{enumerable:!0,get:()=>!!document[wl.fullscreenEnabled]}});wl||(So={isEnabled:!1});var SI=So;function Wpe(t,n){t&1&&(ft(0,"span",2),_(1,"Talent Management"),vt())}var XC=(()=>{let n=class n{constructor(){this.showName=ne(!0)}};n.\u0275fac=function(r){return new(r||n)},n.\u0275cmp=E({type:n,selectors:[["app-branding"]],inputs:{showName:[1,"showName"]},decls:3,vars:1,consts:[["href","/",1,"branding"],["src","images/matero.png","alt","logo",1,"branding-logo"],[1,"branding-name"]],template:function(r,o){r&1&&(ft(0,"a",0),ai(1,"img",1),N(2,Wpe,2,0,"span",2),vt()),r&2&&(g(2),L(o.showName()?2:-1))},styles:[".branding[_ngcontent-%COMP%]{display:flex;align-items:center;margin:0 .5rem;text-decoration:none;white-space:nowrap;color:inherit;border-radius:50rem}.branding-logo[_ngcontent-%COMP%]{width:2rem;height:2rem;border-radius:50rem}.branding-name[_ngcontent-%COMP%]{margin:0 .5rem;font-size:1rem;font-weight:500}"]});let t=n;return t})();var u8=(()=>{let n=class n{};n.\u0275fac=function(r){return new(r||n)},n.\u0275cmp=E({type:n,selectors:[["app-github-button"]],decls:3,vars:0,consts:[["matIconButton","","href","https://github.com/ng-matero/ng-matero","target","_blank"],["viewBox","0 0 16 16"],["fill","currentColor","d",`M7.999,0.431c-4.285,0-7.76,3.474-7.76,7.761 c0,3.428,2.223,6.337,5.307,7.363c0.388, 0.071,0.53-0.168,0.53-0.374c0-0.184-0.007-0.672-0.01-1.32 c-2.159, 0.469-2.614-1.04-2.614-1.04c-0.353-0.896-0.862-1.135-0.862-1.135c-0.705-0.481, 0.053-0.472,0.053-0.472 c0.779,0.055,1.189,0.8,1.189,0.8c0.692,1.186,1.816,0.843,2.258, @@ -147,43 +147,43 @@ if you are not using oidc but just oauth2 password flow set oidc to false`);retu 0.261 c1.482-1.004,2.132-0.796,2.132-0.796c0.423,1.068,0.157,1.857,0.077,2.054c0.497, 0.542,0.798,1.235,0.798,2.082 c0,2.981-1.814,3.637-3.543,3.829c0.279,0.24,0.527,0.713, 0.527,1.437c0,1.037-0.01,1.874-0.01,2.129 c0,0.208,0.14,0.449,0.534,0.373c3.081-1.028, - 5.302-3.935,5.302-7.362C15.76,3.906,12.285,0.431,7.999,0.431z`]],template:function(r,o){r&1&&(h(0,"a",0),Gt(),h(1,"svg",1),k(2,"path",2),p()())},dependencies:[ze,ti],encapsulation:2});let t=n;return t})();var u8="mat-badge-content",Wpe=(()=>{class t{static \u0275fac=function(i){return new(i||t)};static \u0275cmp=E({type:t,selectors:[["ng-component"]],decls:0,vars:0,template:function(i,r){},styles:[`.mat-badge{position:relative}.mat-badge.mat-badge{overflow:visible}.mat-badge-content{position:absolute;text-align:center;display:inline-block;transition:transform 200ms ease-in-out;transform:scale(0.6);overflow:hidden;white-space:nowrap;text-overflow:ellipsis;box-sizing:border-box;pointer-events:none;background-color:var(--mat-badge-background-color, var(--mat-sys-error));color:var(--mat-badge-text-color, var(--mat-sys-on-error));font-family:var(--mat-badge-text-font, var(--mat-sys-label-small-font));font-weight:var(--mat-badge-text-weight, var(--mat-sys-label-small-weight));border-radius:var(--mat-badge-container-shape, var(--mat-sys-corner-full))}.mat-badge-above .mat-badge-content{bottom:100%}.mat-badge-below .mat-badge-content{top:100%}.mat-badge-before .mat-badge-content{right:100%}[dir=rtl] .mat-badge-before .mat-badge-content{right:auto;left:100%}.mat-badge-after .mat-badge-content{left:100%}[dir=rtl] .mat-badge-after .mat-badge-content{left:auto;right:100%}@media(forced-colors: active){.mat-badge-content{outline:solid 1px;border-radius:0}}.mat-badge-disabled .mat-badge-content{background-color:var(--mat-badge-disabled-state-background-color, color-mix(in srgb, var(--mat-sys-error) 38%, transparent));color:var(--mat-badge-disabled-state-text-color, var(--mat-sys-on-error))}.mat-badge-hidden .mat-badge-content{display:none}.ng-animate-disabled .mat-badge-content,.mat-badge-content._mat-animation-noopable{transition:none}.mat-badge-content.mat-badge-active{transform:none}.mat-badge-small .mat-badge-content{width:var(--mat-badge-legacy-small-size-container-size, unset);height:var(--mat-badge-legacy-small-size-container-size, unset);min-width:var(--mat-badge-small-size-container-size, 6px);min-height:var(--mat-badge-small-size-container-size, 6px);line-height:var(--mat-badge-small-size-line-height, 6px);padding:var(--mat-badge-small-size-container-padding, 0);font-size:var(--mat-badge-small-size-text-size, 0);margin:var(--mat-badge-small-size-container-offset, -6px 0)}.mat-badge-small.mat-badge-overlap .mat-badge-content{margin:var(--mat-badge-small-size-container-overlap-offset, -6px)}.mat-badge-medium .mat-badge-content{width:var(--mat-badge-legacy-container-size, unset);height:var(--mat-badge-legacy-container-size, unset);min-width:var(--mat-badge-container-size, 16px);min-height:var(--mat-badge-container-size, 16px);line-height:var(--mat-badge-line-height, 16px);padding:var(--mat-badge-container-padding, 0 4px);font-size:var(--mat-badge-text-size, var(--mat-sys-label-small-size));margin:var(--mat-badge-container-offset, -12px 0)}.mat-badge-medium.mat-badge-overlap .mat-badge-content{margin:var(--mat-badge-container-overlap-offset, -12px)}.mat-badge-large .mat-badge-content{width:var(--mat-badge-legacy-large-size-container-size, unset);height:var(--mat-badge-legacy-large-size-container-size, unset);min-width:var(--mat-badge-large-size-container-size, 16px);min-height:var(--mat-badge-large-size-container-size, 16px);line-height:var(--mat-badge-large-size-line-height, 16px);padding:var(--mat-badge-large-size-container-padding, 0 4px);font-size:var(--mat-badge-large-size-text-size, var(--mat-sys-label-small-size));margin:var(--mat-badge-large-size-container-offset, -12px 0)}.mat-badge-large.mat-badge-overlap .mat-badge-content{margin:var(--mat-badge-large-size-container-overlap-offset, -12px)} -`],encapsulation:2,changeDetection:0})}return t})(),m8=(()=>{class t{_ngZone=u(ae);_elementRef=u(q);_ariaDescriber=u(Xm);_renderer=u(je);_animationsDisabled=Ye();_idGenerator=u(Ze);get color(){return this._color}set color(e){this._setColor(e),this._color=e}_color="primary";overlap=!0;disabled;position="above after";get content(){return this._content}set content(e){this._updateRenderedContent(e)}_content;get description(){return this._description}set description(e){this._updateDescription(e)}_description;size="medium";hidden;_badgeElement;_inlineBadgeDescription;_isInitialized=!1;_interactivityChecker=u(ac);_document=u(ge);constructor(){let e=u(ut);e.load(Wpe),e.load(Qr)}isAbove(){return this.position.indexOf("below")===-1}isAfter(){return this.position.indexOf("before")===-1}getBadgeElement(){return this._badgeElement}ngOnInit(){this._clearExistingBadges(),this.content&&!this._badgeElement&&(this._badgeElement=this._createBadgeElement(),this._updateRenderedContent(this.content)),this._isInitialized=!0}ngOnDestroy(){this._renderer.destroyNode&&(this._renderer.destroyNode(this._badgeElement),this._inlineBadgeDescription?.remove()),this._ariaDescriber.removeDescription(this._elementRef.nativeElement,this.description)}_isHostInteractive(){return this._interactivityChecker.isFocusable(this._elementRef.nativeElement,{ignoreVisibility:!0})}_createBadgeElement(){let e=this._renderer.createElement("span"),i="mat-badge-active";return e.setAttribute("id",this._idGenerator.getId("mat-badge-content-")),e.setAttribute("aria-hidden","true"),e.classList.add(u8),this._animationsDisabled&&e.classList.add("_mat-animation-noopable"),this._elementRef.nativeElement.appendChild(e),typeof requestAnimationFrame=="function"&&!this._animationsDisabled?this._ngZone.runOutsideAngular(()=>{requestAnimationFrame(()=>{e.classList.add(i)})}):e.classList.add(i),e}_updateRenderedContent(e){let i=`${e??""}`.trim();this._isInitialized&&i&&!this._badgeElement&&(this._badgeElement=this._createBadgeElement()),this._badgeElement&&(this._badgeElement.textContent=i),this._content=i}_updateDescription(e){this._ariaDescriber.removeDescription(this._elementRef.nativeElement,this.description),(!e||this._isHostInteractive())&&this._removeInlineDescription(),this._description=e,this._isHostInteractive()?this._ariaDescriber.describe(this._elementRef.nativeElement,e):this._updateInlineDescription()}_updateInlineDescription(){this._inlineBadgeDescription||(this._inlineBadgeDescription=this._document.createElement("span"),this._inlineBadgeDescription.classList.add("cdk-visually-hidden")),this._inlineBadgeDescription.textContent=this.description,this._badgeElement?.appendChild(this._inlineBadgeDescription)}_removeInlineDescription(){this._inlineBadgeDescription?.remove(),this._inlineBadgeDescription=void 0}_setColor(e){let i=this._elementRef.nativeElement.classList;i.remove(`mat-badge-${this._color}`),e&&i.add(`mat-badge-${e}`)}_clearExistingBadges(){let e=this._elementRef.nativeElement.querySelectorAll(`:scope > .${u8}`);for(let i of Array.from(e))i!==this._badgeElement&&i.remove()}static \u0275fac=function(i){return new(i||t)};static \u0275dir=F({type:t,selectors:[["","matBadge",""]],hostAttrs:[1,"mat-badge"],hostVars:20,hostBindings:function(i,r){i&2&&G("mat-badge-overlap",r.overlap)("mat-badge-above",r.isAbove())("mat-badge-below",!r.isAbove())("mat-badge-before",!r.isAfter())("mat-badge-after",r.isAfter())("mat-badge-small",r.size==="small")("mat-badge-medium",r.size==="medium")("mat-badge-large",r.size==="large")("mat-badge-hidden",r.hidden||!r.content)("mat-badge-disabled",r.disabled)},inputs:{color:[0,"matBadgeColor","color"],overlap:[2,"matBadgeOverlap","overlap",V],disabled:[2,"matBadgeDisabled","disabled",V],position:[0,"matBadgePosition","position"],content:[0,"matBadge","content"],description:[0,"matBadgeDescription","description"],size:[0,"matBadgeSize","size"],hidden:[2,"matBadgeHidden","hidden",V]}})}return t})(),h8=(()=>{class t{static \u0275fac=function(i){return new(i||t)};static \u0275mod=ee({type:t});static \u0275inj=J({imports:[ll,we,we]})}return t})();var Ha=(()=>{class t{get vertical(){return this._vertical}set vertical(e){this._vertical=Ai(e)}_vertical=!1;get inset(){return this._inset}set inset(e){this._inset=Ai(e)}_inset=!1;static \u0275fac=function(i){return new(i||t)};static \u0275cmp=E({type:t,selectors:[["mat-divider"]],hostAttrs:["role","separator",1,"mat-divider"],hostVars:7,hostBindings:function(i,r){i&2&&(X("aria-orientation",r.vertical?"vertical":"horizontal"),G("mat-divider-vertical",r.vertical)("mat-divider-horizontal",!r.vertical)("mat-divider-inset",r.inset))},inputs:{vertical:"vertical",inset:"inset"},decls:0,vars:0,template:function(i,r){},styles:[`.mat-divider{display:block;margin:0;border-top-style:solid;border-top-color:var(--mat-divider-color, var(--mat-sys-outline-variant));border-top-width:var(--mat-divider-width, 1px)}.mat-divider.mat-divider-vertical{border-top:0;border-right-style:solid;border-right-color:var(--mat-divider-color, var(--mat-sys-outline-variant));border-right-width:var(--mat-divider-width, 1px)}.mat-divider.mat-divider-inset{margin-left:80px}[dir=rtl] .mat-divider.mat-divider-inset{margin-left:auto;margin-right:80px} -`],encapsulation:2,changeDetection:0})}return t})(),sa=(()=>{class t{static \u0275fac=function(i){return new(i||t)};static \u0275mod=ee({type:t});static \u0275inj=J({imports:[we,we]})}return t})();var p8=["*"],f8=`.mdc-list{margin:0;padding:8px 0;list-style-type:none}.mdc-list:focus{outline:none}.mdc-list-item{display:flex;position:relative;justify-content:flex-start;overflow:hidden;padding:0;align-items:stretch;cursor:pointer;padding-left:16px;padding-right:16px;background-color:var(--mat-list-list-item-container-color, transparent);border-radius:var(--mat-list-list-item-container-shape, var(--mat-sys-corner-none))}.mdc-list-item.mdc-list-item--selected{background-color:var(--mat-list-list-item-selected-container-color)}.mdc-list-item:focus{outline:0}.mdc-list-item.mdc-list-item--disabled{cursor:auto}.mdc-list-item.mdc-list-item--with-one-line{height:var(--mat-list-list-item-one-line-container-height, 48px)}.mdc-list-item.mdc-list-item--with-one-line .mdc-list-item__start{align-self:center;margin-top:0}.mdc-list-item.mdc-list-item--with-one-line .mdc-list-item__end{align-self:center;margin-top:0}.mdc-list-item.mdc-list-item--with-two-lines{height:var(--mat-list-list-item-two-line-container-height, 64px)}.mdc-list-item.mdc-list-item--with-two-lines .mdc-list-item__start{align-self:flex-start;margin-top:16px}.mdc-list-item.mdc-list-item--with-two-lines .mdc-list-item__end{align-self:center;margin-top:0}.mdc-list-item.mdc-list-item--with-three-lines{height:var(--mat-list-list-item-three-line-container-height, 88px)}.mdc-list-item.mdc-list-item--with-three-lines .mdc-list-item__start{align-self:flex-start;margin-top:16px}.mdc-list-item.mdc-list-item--with-three-lines .mdc-list-item__end{align-self:flex-start;margin-top:16px}.mdc-list-item.mdc-list-item--selected::before,.mdc-list-item.mdc-list-item--selected:focus::before,.mdc-list-item:not(.mdc-list-item--selected):focus::before{position:absolute;box-sizing:border-box;width:100%;height:100%;top:0;left:0;content:"";pointer-events:none}a.mdc-list-item{color:inherit;text-decoration:none}.mdc-list-item__start{fill:currentColor;flex-shrink:0;pointer-events:none}.mdc-list-item--with-leading-icon .mdc-list-item__start{color:var(--mat-list-list-item-leading-icon-color, var(--mat-sys-on-surface-variant));width:var(--mat-list-list-item-leading-icon-size, 24px);height:var(--mat-list-list-item-leading-icon-size, 24px);margin-left:16px;margin-right:32px}[dir=rtl] .mdc-list-item--with-leading-icon .mdc-list-item__start{margin-left:32px;margin-right:16px}.mdc-list-item--with-leading-icon:hover .mdc-list-item__start{color:var(--mat-list-list-item-hover-leading-icon-color)}.mdc-list-item--with-leading-avatar .mdc-list-item__start{width:var(--mat-list-list-item-leading-avatar-size, 40px);height:var(--mat-list-list-item-leading-avatar-size, 40px);margin-left:16px;margin-right:16px;border-radius:50%}.mdc-list-item--with-leading-avatar .mdc-list-item__start,[dir=rtl] .mdc-list-item--with-leading-avatar .mdc-list-item__start{margin-left:16px;margin-right:16px;border-radius:50%}.mdc-list-item__end{flex-shrink:0;pointer-events:none}.mdc-list-item--with-trailing-meta .mdc-list-item__end{font-family:var(--mat-list-list-item-trailing-supporting-text-font, var(--mat-sys-label-small-font));line-height:var(--mat-list-list-item-trailing-supporting-text-line-height, var(--mat-sys-label-small-line-height));font-size:var(--mat-list-list-item-trailing-supporting-text-size, var(--mat-sys-label-small-size));font-weight:var(--mat-list-list-item-trailing-supporting-text-weight, var(--mat-sys-label-small-weight));letter-spacing:var(--mat-list-list-item-trailing-supporting-text-tracking, var(--mat-sys-label-small-tracking))}.mdc-list-item--with-trailing-icon .mdc-list-item__end{color:var(--mat-list-list-item-trailing-icon-color, var(--mat-sys-on-surface-variant));width:var(--mat-list-list-item-trailing-icon-size, 24px);height:var(--mat-list-list-item-trailing-icon-size, 24px)}.mdc-list-item--with-trailing-icon:hover .mdc-list-item__end{color:var(--mat-list-list-item-hover-trailing-icon-color)}.mdc-list-item.mdc-list-item--with-trailing-meta .mdc-list-item__end{color:var(--mat-list-list-item-trailing-supporting-text-color, var(--mat-sys-on-surface-variant))}.mdc-list-item--selected.mdc-list-item--with-trailing-icon .mdc-list-item__end{color:var(--mat-list-list-item-selected-trailing-icon-color, var(--mat-sys-primary))}.mdc-list-item__content{text-overflow:ellipsis;white-space:nowrap;overflow:hidden;align-self:center;flex:1;pointer-events:none}.mdc-list-item--with-two-lines .mdc-list-item__content,.mdc-list-item--with-three-lines .mdc-list-item__content{align-self:stretch}.mdc-list-item__primary-text{text-overflow:ellipsis;white-space:nowrap;overflow:hidden;color:var(--mat-list-list-item-label-text-color, var(--mat-sys-on-surface));font-family:var(--mat-list-list-item-label-text-font, var(--mat-sys-body-large-font));line-height:var(--mat-list-list-item-label-text-line-height, var(--mat-sys-body-large-line-height));font-size:var(--mat-list-list-item-label-text-size, var(--mat-sys-body-large-size));font-weight:var(--mat-list-list-item-label-text-weight, var(--mat-sys-body-large-weight));letter-spacing:var(--mat-list-list-item-label-text-tracking, var(--mat-sys-body-large-tracking))}.mdc-list-item:hover .mdc-list-item__primary-text{color:var(--mat-list-list-item-hover-label-text-color, var(--mat-sys-on-surface))}.mdc-list-item:focus .mdc-list-item__primary-text{color:var(--mat-list-list-item-focus-label-text-color, var(--mat-sys-on-surface))}.mdc-list-item--with-two-lines .mdc-list-item__primary-text,.mdc-list-item--with-three-lines .mdc-list-item__primary-text{display:block;margin-top:0;line-height:normal;margin-bottom:-20px}.mdc-list-item--with-two-lines .mdc-list-item__primary-text::before,.mdc-list-item--with-three-lines .mdc-list-item__primary-text::before{display:inline-block;width:0;height:28px;content:"";vertical-align:0}.mdc-list-item--with-two-lines .mdc-list-item__primary-text::after,.mdc-list-item--with-three-lines .mdc-list-item__primary-text::after{display:inline-block;width:0;height:20px;content:"";vertical-align:-20px}.mdc-list-item__secondary-text{text-overflow:ellipsis;white-space:nowrap;overflow:hidden;display:block;margin-top:0;color:var(--mat-list-list-item-supporting-text-color, var(--mat-sys-on-surface-variant));font-family:var(--mat-list-list-item-supporting-text-font, var(--mat-sys-body-medium-font));line-height:var(--mat-list-list-item-supporting-text-line-height, var(--mat-sys-body-medium-line-height));font-size:var(--mat-list-list-item-supporting-text-size, var(--mat-sys-body-medium-size));font-weight:var(--mat-list-list-item-supporting-text-weight, var(--mat-sys-body-medium-weight));letter-spacing:var(--mat-list-list-item-supporting-text-tracking, var(--mat-sys-body-medium-tracking))}.mdc-list-item__secondary-text::before{display:inline-block;width:0;height:20px;content:"";vertical-align:0}.mdc-list-item--with-three-lines .mdc-list-item__secondary-text{white-space:normal;line-height:20px}.mdc-list-item--with-overline .mdc-list-item__secondary-text{white-space:nowrap;line-height:auto}.mdc-list-item--with-leading-radio.mdc-list-item,.mdc-list-item--with-leading-checkbox.mdc-list-item,.mdc-list-item--with-leading-icon.mdc-list-item,.mdc-list-item--with-leading-avatar.mdc-list-item{padding-left:0;padding-right:16px}[dir=rtl] .mdc-list-item--with-leading-radio.mdc-list-item,[dir=rtl] .mdc-list-item--with-leading-checkbox.mdc-list-item,[dir=rtl] .mdc-list-item--with-leading-icon.mdc-list-item,[dir=rtl] .mdc-list-item--with-leading-avatar.mdc-list-item{padding-left:16px;padding-right:0}.mdc-list-item--with-leading-radio.mdc-list-item--with-two-lines .mdc-list-item__primary-text,.mdc-list-item--with-leading-checkbox.mdc-list-item--with-two-lines .mdc-list-item__primary-text,.mdc-list-item--with-leading-icon.mdc-list-item--with-two-lines .mdc-list-item__primary-text,.mdc-list-item--with-leading-avatar.mdc-list-item--with-two-lines .mdc-list-item__primary-text{display:block;margin-top:0;line-height:normal;margin-bottom:-20px}.mdc-list-item--with-leading-radio.mdc-list-item--with-two-lines .mdc-list-item__primary-text::before,.mdc-list-item--with-leading-checkbox.mdc-list-item--with-two-lines .mdc-list-item__primary-text::before,.mdc-list-item--with-leading-icon.mdc-list-item--with-two-lines .mdc-list-item__primary-text::before,.mdc-list-item--with-leading-avatar.mdc-list-item--with-two-lines .mdc-list-item__primary-text::before{display:inline-block;width:0;height:32px;content:"";vertical-align:0}.mdc-list-item--with-leading-radio.mdc-list-item--with-two-lines .mdc-list-item__primary-text::after,.mdc-list-item--with-leading-checkbox.mdc-list-item--with-two-lines .mdc-list-item__primary-text::after,.mdc-list-item--with-leading-icon.mdc-list-item--with-two-lines .mdc-list-item__primary-text::after,.mdc-list-item--with-leading-avatar.mdc-list-item--with-two-lines .mdc-list-item__primary-text::after{display:inline-block;width:0;height:20px;content:"";vertical-align:-20px}.mdc-list-item--with-leading-radio.mdc-list-item--with-two-lines.mdc-list-item--with-trailing-meta .mdc-list-item__end,.mdc-list-item--with-leading-checkbox.mdc-list-item--with-two-lines.mdc-list-item--with-trailing-meta .mdc-list-item__end,.mdc-list-item--with-leading-icon.mdc-list-item--with-two-lines.mdc-list-item--with-trailing-meta .mdc-list-item__end,.mdc-list-item--with-leading-avatar.mdc-list-item--with-two-lines.mdc-list-item--with-trailing-meta .mdc-list-item__end{display:block;margin-top:0;line-height:normal}.mdc-list-item--with-leading-radio.mdc-list-item--with-two-lines.mdc-list-item--with-trailing-meta .mdc-list-item__end::before,.mdc-list-item--with-leading-checkbox.mdc-list-item--with-two-lines.mdc-list-item--with-trailing-meta .mdc-list-item__end::before,.mdc-list-item--with-leading-icon.mdc-list-item--with-two-lines.mdc-list-item--with-trailing-meta .mdc-list-item__end::before,.mdc-list-item--with-leading-avatar.mdc-list-item--with-two-lines.mdc-list-item--with-trailing-meta .mdc-list-item__end::before{display:inline-block;width:0;height:32px;content:"";vertical-align:0}.mdc-list-item--with-trailing-icon.mdc-list-item,[dir=rtl] .mdc-list-item--with-trailing-icon.mdc-list-item{padding-left:0;padding-right:0}.mdc-list-item--with-trailing-icon .mdc-list-item__end{margin-left:16px;margin-right:16px}.mdc-list-item--with-trailing-meta.mdc-list-item{padding-left:16px;padding-right:0}[dir=rtl] .mdc-list-item--with-trailing-meta.mdc-list-item{padding-left:0;padding-right:16px}.mdc-list-item--with-trailing-meta .mdc-list-item__end{-webkit-user-select:none;user-select:none;margin-left:28px;margin-right:16px}[dir=rtl] .mdc-list-item--with-trailing-meta .mdc-list-item__end{margin-left:16px;margin-right:28px}.mdc-list-item--with-trailing-meta.mdc-list-item--with-three-lines .mdc-list-item__end,.mdc-list-item--with-trailing-meta.mdc-list-item--with-two-lines .mdc-list-item__end{display:block;line-height:normal;align-self:flex-start;margin-top:0}.mdc-list-item--with-trailing-meta.mdc-list-item--with-three-lines .mdc-list-item__end::before,.mdc-list-item--with-trailing-meta.mdc-list-item--with-two-lines .mdc-list-item__end::before{display:inline-block;width:0;height:28px;content:"";vertical-align:0}.mdc-list-item--with-leading-radio .mdc-list-item__start,.mdc-list-item--with-leading-checkbox .mdc-list-item__start{margin-left:8px;margin-right:24px}[dir=rtl] .mdc-list-item--with-leading-radio .mdc-list-item__start,[dir=rtl] .mdc-list-item--with-leading-checkbox .mdc-list-item__start{margin-left:24px;margin-right:8px}.mdc-list-item--with-leading-radio.mdc-list-item--with-two-lines .mdc-list-item__start,.mdc-list-item--with-leading-checkbox.mdc-list-item--with-two-lines .mdc-list-item__start{align-self:flex-start;margin-top:8px}.mdc-list-item--with-trailing-radio.mdc-list-item,.mdc-list-item--with-trailing-checkbox.mdc-list-item{padding-left:16px;padding-right:0}[dir=rtl] .mdc-list-item--with-trailing-radio.mdc-list-item,[dir=rtl] .mdc-list-item--with-trailing-checkbox.mdc-list-item{padding-left:0;padding-right:16px}.mdc-list-item--with-trailing-radio.mdc-list-item--with-leading-icon,.mdc-list-item--with-trailing-radio.mdc-list-item--with-leading-avatar,.mdc-list-item--with-trailing-checkbox.mdc-list-item--with-leading-icon,.mdc-list-item--with-trailing-checkbox.mdc-list-item--with-leading-avatar{padding-left:0}[dir=rtl] .mdc-list-item--with-trailing-radio.mdc-list-item--with-leading-icon,[dir=rtl] .mdc-list-item--with-trailing-radio.mdc-list-item--with-leading-avatar,[dir=rtl] .mdc-list-item--with-trailing-checkbox.mdc-list-item--with-leading-icon,[dir=rtl] .mdc-list-item--with-trailing-checkbox.mdc-list-item--with-leading-avatar{padding-right:0}.mdc-list-item--with-trailing-radio .mdc-list-item__end,.mdc-list-item--with-trailing-checkbox .mdc-list-item__end{margin-left:24px;margin-right:8px}[dir=rtl] .mdc-list-item--with-trailing-radio .mdc-list-item__end,[dir=rtl] .mdc-list-item--with-trailing-checkbox .mdc-list-item__end{margin-left:8px;margin-right:24px}.mdc-list-item--with-trailing-radio.mdc-list-item--with-three-lines .mdc-list-item__end,.mdc-list-item--with-trailing-checkbox.mdc-list-item--with-three-lines .mdc-list-item__end{align-self:flex-start;margin-top:8px}.mdc-list-group__subheader{margin:.75rem 16px}.mdc-list-item--disabled .mdc-list-item__start,.mdc-list-item--disabled .mdc-list-item__content,.mdc-list-item--disabled .mdc-list-item__end{opacity:1}.mdc-list-item--disabled .mdc-list-item__primary-text,.mdc-list-item--disabled .mdc-list-item__secondary-text{opacity:var(--mat-list-list-item-disabled-label-text-opacity, 0.3)}.mdc-list-item--disabled.mdc-list-item--with-leading-icon .mdc-list-item__start{color:var(--mat-list-list-item-disabled-leading-icon-color, var(--mat-sys-on-surface));opacity:var(--mat-list-list-item-disabled-leading-icon-opacity, 0.38)}.mdc-list-item--disabled.mdc-list-item--with-trailing-icon .mdc-list-item__end{color:var(--mat-list-list-item-disabled-trailing-icon-color, var(--mat-sys-on-surface));opacity:var(--mat-list-list-item-disabled-trailing-icon-opacity, 0.38)}.mat-mdc-list-item.mat-mdc-list-item-both-leading-and-trailing,[dir=rtl] .mat-mdc-list-item.mat-mdc-list-item-both-leading-and-trailing{padding-left:0;padding-right:0}.mdc-list-item.mdc-list-item--disabled .mdc-list-item__primary-text{color:var(--mat-list-list-item-disabled-label-text-color, var(--mat-sys-on-surface))}.mdc-list-item:hover::before{background-color:var(--mat-list-list-item-hover-state-layer-color, var(--mat-sys-on-surface));opacity:var(--mat-list-list-item-hover-state-layer-opacity, var(--mat-sys-hover-state-layer-opacity))}.mdc-list-item.mdc-list-item--disabled::before{background-color:var(--mat-list-list-item-disabled-state-layer-color, var(--mat-sys-on-surface));opacity:var(--mat-list-list-item-disabled-state-layer-opacity, var(--mat-sys-focus-state-layer-opacity))}.mdc-list-item:focus::before{background-color:var(--mat-list-list-item-focus-state-layer-color, var(--mat-sys-on-surface));opacity:var(--mat-list-list-item-focus-state-layer-opacity, var(--mat-sys-focus-state-layer-opacity))}.mdc-list-item--disabled .mdc-radio,.mdc-list-item--disabled .mdc-checkbox{opacity:var(--mat-list-list-item-disabled-label-text-opacity, 0.3)}.mdc-list-item--with-leading-avatar .mat-mdc-list-item-avatar{border-radius:var(--mat-list-list-item-leading-avatar-shape, var(--mat-sys-corner-full));background-color:var(--mat-list-list-item-leading-avatar-color, var(--mat-sys-primary-container))}.mat-mdc-list-item-icon{font-size:var(--mat-list-list-item-leading-icon-size, 24px)}@media(forced-colors: active){a.mdc-list-item--activated::after{content:"";position:absolute;top:50%;right:16px;transform:translateY(-50%);width:10px;height:0;border-bottom:solid 10px;border-radius:10px}a.mdc-list-item--activated [dir=rtl]::after{right:auto;left:16px}}.mat-mdc-list-base{display:block}.mat-mdc-list-base .mdc-list-item__start,.mat-mdc-list-base .mdc-list-item__end,.mat-mdc-list-base .mdc-list-item__content{pointer-events:auto}.mat-mdc-list-item,.mat-mdc-list-option{width:100%;box-sizing:border-box;-webkit-tap-highlight-color:rgba(0,0,0,0)}.mat-mdc-list-item:not(.mat-mdc-list-item-interactive),.mat-mdc-list-option:not(.mat-mdc-list-item-interactive){cursor:default}.mat-mdc-list-item .mat-divider-inset,.mat-mdc-list-option .mat-divider-inset{position:absolute;left:0;right:0;bottom:0}.mat-mdc-list-item .mat-mdc-list-item-avatar~.mat-divider-inset,.mat-mdc-list-option .mat-mdc-list-item-avatar~.mat-divider-inset{margin-left:72px}[dir=rtl] .mat-mdc-list-item .mat-mdc-list-item-avatar~.mat-divider-inset,[dir=rtl] .mat-mdc-list-option .mat-mdc-list-item-avatar~.mat-divider-inset{margin-right:72px}.mat-mdc-list-item-interactive::before{top:0;left:0;right:0;bottom:0;position:absolute;content:"";opacity:0;pointer-events:none;border-radius:inherit}.mat-mdc-list-item>.mat-focus-indicator{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none}.mat-mdc-list-item:focus>.mat-focus-indicator::before{content:""}.mat-mdc-list-item.mdc-list-item--with-three-lines .mat-mdc-list-item-line.mdc-list-item__secondary-text{white-space:nowrap;line-height:normal}.mat-mdc-list-item.mdc-list-item--with-three-lines .mat-mdc-list-item-unscoped-content.mdc-list-item__secondary-text{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2}mat-action-list button{background:none;color:inherit;border:none;font:inherit;outline:inherit;-webkit-tap-highlight-color:rgba(0,0,0,0);text-align:start}mat-action-list button::-moz-focus-inner{border:0}.mdc-list-item--with-leading-icon .mdc-list-item__start{margin-inline-start:var(--mat-list-list-item-leading-icon-start-space, 16px);margin-inline-end:var(--mat-list-list-item-leading-icon-end-space, 16px)}.mat-mdc-nav-list .mat-mdc-list-item{border-radius:var(--mat-list-active-indicator-shape, var(--mat-sys-corner-full));--mat-focus-indicator-border-radius: var(--mat-list-active-indicator-shape, var(--mat-sys-corner-full))}.mat-mdc-nav-list .mat-mdc-list-item.mdc-list-item--activated{background-color:var(--mat-list-active-indicator-color, var(--mat-sys-secondary-container))} -`,qpe=["unscopedContent"],Ype=["text"],Qpe=[[["","matListItemAvatar",""],["","matListItemIcon",""]],[["","matListItemTitle",""]],[["","matListItemLine",""]],"*",[["","matListItemMeta",""]],[["mat-divider"]]],Kpe=["[matListItemAvatar],[matListItemIcon]","[matListItemTitle]","[matListItemLine]","*","[matListItemMeta]","mat-divider"];var Zpe=new T("ListOption"),Dl=(()=>{class t{_elementRef=u(q);constructor(){}static \u0275fac=function(i){return new(i||t)};static \u0275dir=F({type:t,selectors:[["","matListItemTitle",""]],hostAttrs:[1,"mat-mdc-list-item-title","mdc-list-item__primary-text"]})}return t})(),Tu=(()=>{class t{_elementRef=u(q);constructor(){}static \u0275fac=function(i){return new(i||t)};static \u0275dir=F({type:t,selectors:[["","matListItemLine",""]],hostAttrs:[1,"mat-mdc-list-item-line","mdc-list-item__secondary-text"]})}return t})(),SI=(()=>{class t{static \u0275fac=function(i){return new(i||t)};static \u0275dir=F({type:t,selectors:[["","matListItemMeta",""]],hostAttrs:[1,"mat-mdc-list-item-meta","mdc-list-item__end"]})}return t})(),g8=(()=>{class t{_listOption=u(Zpe,{optional:!0});constructor(){}_isAlignedAtStart(){return!this._listOption||this._listOption?._getTogglePosition()==="after"}static \u0275fac=function(i){return new(i||t)};static \u0275dir=F({type:t,hostVars:4,hostBindings:function(i,r){i&2&&G("mdc-list-item__start",r._isAlignedAtStart())("mdc-list-item__end",!r._isAlignedAtStart())}})}return t})(),Xpe=(()=>{class t extends g8{static \u0275fac=(()=>{let e;return function(r){return(e||(e=fe(t)))(r||t)}})();static \u0275dir=F({type:t,selectors:[["","matListItemAvatar",""]],hostAttrs:[1,"mat-mdc-list-item-avatar"],features:[le]})}return t})(),f_=(()=>{class t extends g8{static \u0275fac=(()=>{let e;return function(r){return(e||(e=fe(t)))(r||t)}})();static \u0275dir=F({type:t,selectors:[["","matListItemIcon",""]],hostAttrs:[1,"mat-mdc-list-item-icon"],features:[le]})}return t})(),Jpe=new T("MAT_LIST_CONFIG"),p_=(()=>{class t{_isNonInteractive=!0;get disableRipple(){return this._disableRipple}set disableRipple(e){this._disableRipple=Ai(e)}_disableRipple=!1;get disabled(){return this._disabled()}set disabled(e){this._disabled.set(Ai(e))}_disabled=he(!1);_defaultOptions=u(Jpe,{optional:!0});static \u0275fac=function(i){return new(i||t)};static \u0275dir=F({type:t,hostVars:1,hostBindings:function(i,r){i&2&&X("aria-disabled",r.disabled)},inputs:{disableRipple:"disableRipple",disabled:"disabled"}})}return t})(),efe=(()=>{class t{_elementRef=u(q);_ngZone=u(ae);_listBase=u(p_,{optional:!0});_platform=u(qe);_hostElement;_isButtonElement;_noopAnimations=Ye();_avatars;_icons;set lines(e){this._explicitLines=Ln(e,null),this._updateItemLines(!1)}_explicitLines=null;get disableRipple(){return this.disabled||this._disableRipple||this._noopAnimations||!!this._listBase?.disableRipple}set disableRipple(e){this._disableRipple=Ai(e)}_disableRipple=!1;get disabled(){return this._disabled()||!!this._listBase?.disabled}set disabled(e){this._disabled.set(Ai(e))}_disabled=he(!1);_subscriptions=new ke;_rippleRenderer=null;_hasUnscopedTextContent=!1;rippleConfig;get rippleDisabled(){return this.disableRipple||!!this.rippleConfig.disabled}constructor(){u(ut).load(Di);let e=u(Cs,{optional:!0});this.rippleConfig=e||{},this._hostElement=this._elementRef.nativeElement,this._isButtonElement=this._hostElement.nodeName.toLowerCase()==="button",this._listBase&&!this._listBase._isNonInteractive&&this._initInteractiveListItem(),this._isButtonElement&&!this._hostElement.hasAttribute("type")&&this._hostElement.setAttribute("type","button")}ngAfterViewInit(){this._monitorProjectedLinesAndTitle(),this._updateItemLines(!0)}ngOnDestroy(){this._subscriptions.unsubscribe(),this._rippleRenderer!==null&&this._rippleRenderer._removeTriggerEvents()}_hasIconOrAvatar(){return!!(this._avatars.length||this._icons.length)}_initInteractiveListItem(){this._hostElement.classList.add("mat-mdc-list-item-interactive"),this._rippleRenderer=new lc(this,this._ngZone,this._hostElement,this._platform,u(de)),this._rippleRenderer.setupTriggerEvents(this._hostElement)}_monitorProjectedLinesAndTitle(){this._ngZone.runOutsideAngular(()=>{this._subscriptions.add(Je(this._lines.changes,this._titles.changes).subscribe(()=>this._updateItemLines(!1)))})}_updateItemLines(e){if(!this._lines||!this._titles||!this._unscopedContent)return;e&&this._checkDomForUnscopedTextContent();let i=this._explicitLines??this._inferLinesFromContent(),r=this._unscopedContent.nativeElement;if(this._hostElement.classList.toggle("mat-mdc-list-item-single-line",i<=1),this._hostElement.classList.toggle("mdc-list-item--with-one-line",i<=1),this._hostElement.classList.toggle("mdc-list-item--with-two-lines",i===2),this._hostElement.classList.toggle("mdc-list-item--with-three-lines",i===3),this._hasUnscopedTextContent){let o=this._titles.length===0&&i===1;r.classList.toggle("mdc-list-item__primary-text",o),r.classList.toggle("mdc-list-item__secondary-text",!o)}else r.classList.remove("mdc-list-item__primary-text"),r.classList.remove("mdc-list-item__secondary-text")}_inferLinesFromContent(){let e=this._titles.length+this._lines.length;return this._hasUnscopedTextContent&&(e+=1),e}_checkDomForUnscopedTextContent(){this._hasUnscopedTextContent=Array.from(this._unscopedContent.nativeElement.childNodes).filter(e=>e.nodeType!==e.COMMENT_NODE).some(e=>!!(e.textContent&&e.textContent.trim()))}static \u0275fac=function(i){return new(i||t)};static \u0275dir=F({type:t,contentQueries:function(i,r,o){if(i&1&&(xe(o,Xpe,4),xe(o,f_,4)),i&2){let a;B(a=j())&&(r._avatars=a),B(a=j())&&(r._icons=a)}},hostVars:4,hostBindings:function(i,r){i&2&&(X("aria-disabled",r.disabled)("disabled",r._isButtonElement&&r.disabled||null),G("mdc-list-item--disabled",r.disabled))},inputs:{lines:"lines",disableRipple:"disableRipple",disabled:"disabled"}})}return t})();var Fs=(()=>{class t extends p_{static \u0275fac=(()=>{let e;return function(r){return(e||(e=fe(t)))(r||t)}})();static \u0275cmp=E({type:t,selectors:[["mat-list"]],hostAttrs:[1,"mat-mdc-list","mat-mdc-list-base","mdc-list"],exportAs:["matList"],features:[Ce([{provide:p_,useExisting:t}]),le],ngContentSelectors:p8,decls:1,vars:0,template:function(i,r){i&1&&(Me(),oe(0))},styles:[f8],encapsulation:2,changeDetection:0})}return t})(),la=(()=>{class t extends efe{_lines;_titles;_meta;_unscopedContent;_itemText;get activated(){return this._activated}set activated(e){this._activated=Ai(e)}_activated=!1;_getAriaCurrent(){return this._hostElement.nodeName==="A"&&this._activated?"page":null}_hasBothLeadingAndTrailing(){return this._meta.length!==0&&(this._avatars.length!==0||this._icons.length!==0)}static \u0275fac=(()=>{let e;return function(r){return(e||(e=fe(t)))(r||t)}})();static \u0275cmp=E({type:t,selectors:[["mat-list-item"],["a","mat-list-item",""],["button","mat-list-item",""]],contentQueries:function(i,r,o){if(i&1&&(xe(o,Tu,5),xe(o,Dl,5),xe(o,SI,5)),i&2){let a;B(a=j())&&(r._lines=a),B(a=j())&&(r._titles=a),B(a=j())&&(r._meta=a)}},viewQuery:function(i,r){if(i&1&&(ie(qpe,5),ie(Ype,5)),i&2){let o;B(o=j())&&(r._unscopedContent=o.first),B(o=j())&&(r._itemText=o.first)}},hostAttrs:[1,"mat-mdc-list-item","mdc-list-item"],hostVars:13,hostBindings:function(i,r){i&2&&(X("aria-current",r._getAriaCurrent()),G("mdc-list-item--activated",r.activated)("mdc-list-item--with-leading-avatar",r._avatars.length!==0)("mdc-list-item--with-leading-icon",r._icons.length!==0)("mdc-list-item--with-trailing-meta",r._meta.length!==0)("mat-mdc-list-item-both-leading-and-trailing",r._hasBothLeadingAndTrailing())("_mat-animation-noopable",r._noopAnimations))},inputs:{activated:"activated"},exportAs:["matListItem"],features:[le],ngContentSelectors:Kpe,decls:10,vars:0,consts:[["unscopedContent",""],[1,"mdc-list-item__content"],[1,"mat-mdc-list-item-unscoped-content",3,"cdkObserveContent"],[1,"mat-focus-indicator"]],template:function(i,r){if(i&1){let o=Y();Me(Qpe),oe(0),h(1,"span",1),oe(2,1),oe(3,2),h(4,"span",2,0),S("cdkObserveContent",function(){return I(o),A(r._updateItemLines(!0))}),oe(6,3),p()(),oe(7,4),oe(8,5),k(9,"div",3)}},dependencies:[Wf],encapsulation:2,changeDetection:0})}return t})();var _8=(()=>{class t extends p_{_isNonInteractive=!1;static \u0275fac=(()=>{let e;return function(r){return(e||(e=fe(t)))(r||t)}})();static \u0275cmp=E({type:t,selectors:[["mat-nav-list"]],hostAttrs:["role","navigation",1,"mat-mdc-nav-list","mat-mdc-list-base","mdc-list"],exportAs:["matNavList"],features:[Ce([{provide:p_,useExisting:t}]),le],ngContentSelectors:p8,decls:1,vars:0,template:function(i,r){i&1&&(Me(),oe(0))},styles:[f8],encapsulation:2,changeDetection:0})}return t})();var ca=(()=>{class t{static \u0275fac=function(i){return new(i||t)};static \u0275mod=ee({type:t});static \u0275inj=J({imports:[Ym,we,yo,Q0,sa]})}return t})();var tfe=["mat-menu-item",""],ife=[[["mat-icon"],["","matMenuItemIcon",""]],"*"],nfe=["mat-icon, [matMenuItemIcon]","*"];function rfe(t,n){t&1&&(Gt(),h(0,"svg",2),k(1,"polygon",3),p())}var ofe=["*"];function afe(t,n){if(t&1){let e=Y();ft(0,"div",0),kv("click",function(){I(e);let r=C();return A(r.closed.emit("click"))})("animationstart",function(r){I(e);let o=C();return A(o._onAnimationStart(r.animationName))})("animationend",function(r){I(e);let o=C();return A(o._onAnimationDone(r.animationName))})("animationcancel",function(r){I(e);let o=C();return A(o._onAnimationDone(r.animationName))}),ft(1,"div",1),oe(2),vt()()}if(t&2){let e=C();it(e._classList),G("mat-menu-panel-animations-disabled",e._animationsDisabled)("mat-menu-panel-exit-animation",e._panelAnimationState==="void")("mat-menu-panel-animating",e._isAnimating()),si("id",e.panelId),X("aria-label",e.ariaLabel||null)("aria-labelledby",e.ariaLabelledby||null)("aria-describedby",e.ariaDescribedby||null)}}var II=new T("MAT_MENU_PANEL"),El=(()=>{class t{_elementRef=u(q);_document=u(ge);_focusMonitor=u(Yt);_parentMenu=u(II,{optional:!0});_changeDetectorRef=u(ye);role="menuitem";disabled=!1;disableRipple=!1;_hovered=new z;_focused=new z;_highlighted=!1;_triggersSubmenu=!1;constructor(){u(ut).load(Di),this._parentMenu?.addItem?.(this)}focus(e,i){this._focusMonitor&&e?this._focusMonitor.focusVia(this._getHostElement(),e,i):this._getHostElement().focus(i),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),i=e.querySelectorAll("mat-icon, .material-icons");for(let r=0;r{class t{_elementRef=u(q);_changeDetectorRef=u(ye);_injector=u(de);_keyManager;_xPosition;_yPosition;_firstItemFocusRef;_exitFallbackTimeout;_animationsDisabled=Ye();_allItems;_directDescendantItems=new pr;_classList={};_panelAnimationState="void";_animationDone=new z;_isAnimating=he(!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;hasBackdrop;set panelClass(e){let i=this._previousPanelClass,r=M({},this._classList);i&&i.length&&i.split(" ").forEach(o=>{r[o]=!1}),this._previousPanelClass=e,e&&e.length&&(e.split(" ").forEach(o=>{r[o]=!0}),this._elementRef.nativeElement.className=""),this._classList=r}_previousPanelClass;get classList(){return this.panelClass}set classList(e){this.panelClass=e}closed=new U;close=this.closed;panelId=u(Ze).getId("mat-menu-panel-");constructor(){let e=u(lfe);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 bs(this._directDescendantItems).withWrap().withTypeAhead().withHomeAndEnd(),this._keyManager.tabOut.subscribe(()=>this.closed.emit("tab")),this._directDescendantItems.changes.pipe(He(this._directDescendantItems),$e(e=>Je(...e.map(i=>i._focused)))).subscribe(e=>this._keyManager.updateActiveItem(e)),this._directDescendantItems.changes.subscribe(e=>{let i=this._keyManager;if(this._panelAnimationState==="enter"&&i.activeItem?._hasFocus()){let r=e.toArray(),o=Math.max(0,Math.min(r.length-1,i.activeItemIndex||0));r[o]&&!r[o].disabled?i.setActiveItem(o):i.setNextItemActive()}})}ngOnDestroy(){this._keyManager?.destroy(),this._directDescendantItems.destroy(),this.closed.complete(),this._firstItemFocusRef?.destroy(),clearTimeout(this._exitFallbackTimeout)}_hovered(){return this._directDescendantItems.changes.pipe(He(this._directDescendantItems),$e(i=>Je(...i.map(r=>r._hovered))))}addItem(e){}removeItem(e){}_handleKeydown(e){let i=e.keyCode,r=this._keyManager;switch(i){case 27:Ft(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:(i===38||i===40)&&r.setFocusOrigin("keyboard"),r.onKeydown(e);return}}focusFirstItem(e="program"){this._firstItemFocusRef?.destroy(),this._firstItemFocusRef=pt(()=>{let i=this._resolvePanel();if(!i||!i.contains(document.activeElement)){let r=this._keyManager;r.setFocusOrigin(e).setFirstItemActive(),!r.activeItem&&i&&i.focus()}},{injector:this._injector})}resetActiveItem(){this._keyManager.setActiveItem(-1)}setElevation(e){}setPositionClasses(e=this.xPosition,i=this.yPosition){this._classList=De(M({},this._classList),{"mat-menu-before":e==="before","mat-menu-after":e==="after","mat-menu-above":i==="above","mat-menu-below":i==="below"}),this._changeDetectorRef.markForCheck()}_onAnimationDone(e){let i=e===JC;(i||e===TI)&&(i&&(clearTimeout(this._exitFallbackTimeout),this._exitFallbackTimeout=void 0),this._animationDone.next(i?"void":"enter"),this._isAnimating.set(!1))}_onAnimationStart(e){(e===TI||e===JC)&&this._isAnimating.set(!0)}_setIsOpen(e){if(this._panelAnimationState=e?"enter":"void",e){if(this._keyManager.activeItemIndex===0){let i=this._resolvePanel();i&&(i.scrollTop=0)}}else this._animationsDisabled||(this._exitFallbackTimeout=setTimeout(()=>this._onAnimationDone(JC),200));this._animationsDisabled&&setTimeout(()=>{this._onAnimationDone(e?TI:JC)}),this._changeDetectorRef.markForCheck()}_updateDirectDescendants(){this._allItems.changes.pipe(He(this._allItems)).subscribe(e=>{this._directDescendantItems.reset(e.filter(i=>i._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(i){return new(i||t)};static \u0275cmp=E({type:t,selectors:[["mat-menu"]],contentQueries:function(i,r,o){if(i&1&&(xe(o,sfe,5),xe(o,El,5),xe(o,El,4)),i&2){let a;B(a=j())&&(r.lazyContent=a.first),B(a=j())&&(r._allItems=a),B(a=j())&&(r.items=a)}},viewQuery:function(i,r){if(i&1&&ie(te,5),i&2){let o;B(o=j())&&(r.templateRef=o.first)}},hostVars:3,hostBindings:function(i,r){i&2&&X("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",V],hasBackdrop:[2,"hasBackdrop","hasBackdrop",e=>e==null?null:V(e)],panelClass:[0,"class","panelClass"],classList:"classList"},outputs:{closed:"closed",close:"close"},exportAs:["matMenu"],features:[Ce([{provide:II,useExisting:t}])],ngContentSelectors:ofe,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(i,r){i&1&&(Me(),xa(0,afe,3,12,"ng-template"))},styles:[`mat-menu{display:none}.mat-mdc-menu-content{margin:0;padding:8px 0;outline:0}.mat-mdc-menu-content,.mat-mdc-menu-content .mat-mdc-menu-item .mat-mdc-menu-item-text{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;flex:1;white-space:normal;font-family:var(--mat-menu-item-label-text-font, var(--mat-sys-label-large-font));line-height:var(--mat-menu-item-label-text-line-height, var(--mat-sys-label-large-line-height));font-size:var(--mat-menu-item-label-text-size, var(--mat-sys-label-large-size));letter-spacing:var(--mat-menu-item-label-text-tracking, var(--mat-sys-label-large-tracking));font-weight:var(--mat-menu-item-label-text-weight, var(--mat-sys-label-large-weight))}@keyframes _mat-menu-enter{from{opacity:0;transform:scale(0.8)}to{opacity:1;transform:none}}@keyframes _mat-menu-exit{from{opacity:1}to{opacity:0}}.mat-mdc-menu-panel{min-width:112px;max-width:280px;overflow:auto;box-sizing:border-box;outline:0;animation:_mat-menu-enter 120ms cubic-bezier(0, 0, 0.2, 1);border-radius:var(--mat-menu-container-shape, var(--mat-sys-corner-extra-small));background-color:var(--mat-menu-container-color, var(--mat-sys-surface-container));box-shadow:var(--mat-menu-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));will-change:transform,opacity}.mat-mdc-menu-panel.mat-menu-panel-exit-animation{animation:_mat-menu-exit 100ms 25ms linear forwards}.mat-mdc-menu-panel.mat-menu-panel-animations-disabled{animation:none}.mat-mdc-menu-panel.mat-menu-panel-animating{pointer-events:none}.mat-mdc-menu-panel.mat-menu-panel-animating:has(.mat-mdc-menu-content:empty){display:none}@media(forced-colors: active){.mat-mdc-menu-panel{outline:solid 1px}}.mat-mdc-menu-panel .mat-divider{color:var(--mat-menu-divider-color, var(--mat-sys-surface-variant));margin-bottom:var(--mat-menu-divider-bottom-spacing, 8px);margin-top:var(--mat-menu-divider-top-spacing, 8px)}.mat-mdc-menu-item{display:flex;position:relative;align-items:center;justify-content:flex-start;overflow:hidden;padding:0;cursor:pointer;width:100%;text-align:left;box-sizing:border-box;color:inherit;font-size:inherit;background:none;text-decoration:none;margin:0;min-height:48px;padding-left:var(--mat-menu-item-leading-spacing, 12px);padding-right:var(--mat-menu-item-trailing-spacing, 12px);-webkit-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:rgba(0,0,0,0)}.mat-mdc-menu-item::-moz-focus-inner{border:0}[dir=rtl] .mat-mdc-menu-item{padding-left:var(--mat-menu-item-trailing-spacing, 12px);padding-right:var(--mat-menu-item-leading-spacing, 12px)}.mat-mdc-menu-item:has(.material-icons,mat-icon,[matButtonIcon]){padding-left:var(--mat-menu-item-with-icon-leading-spacing, 12px);padding-right:var(--mat-menu-item-with-icon-trailing-spacing, 12px)}[dir=rtl] .mat-mdc-menu-item:has(.material-icons,mat-icon,[matButtonIcon]){padding-left:var(--mat-menu-item-with-icon-trailing-spacing, 12px);padding-right:var(--mat-menu-item-with-icon-leading-spacing, 12px)}.mat-mdc-menu-item,.mat-mdc-menu-item:visited,.mat-mdc-menu-item:link{color:var(--mat-menu-item-label-text-color, var(--mat-sys-on-surface))}.mat-mdc-menu-item .mat-icon-no-color,.mat-mdc-menu-item .mat-mdc-menu-submenu-icon{color:var(--mat-menu-item-icon-color, var(--mat-sys-on-surface-variant))}.mat-mdc-menu-item[disabled]{cursor:default;opacity:.38}.mat-mdc-menu-item[disabled]::after{display:block;position:absolute;content:"";top:0;left:0;bottom:0;right:0}.mat-mdc-menu-item:focus{outline:0}.mat-mdc-menu-item .mat-icon{flex-shrink:0;margin-right:var(--mat-menu-item-spacing, 12px);height:var(--mat-menu-item-icon-size, 24px);width:var(--mat-menu-item-icon-size, 24px)}[dir=rtl] .mat-mdc-menu-item{text-align:right}[dir=rtl] .mat-mdc-menu-item .mat-icon{margin-right:0;margin-left:var(--mat-menu-item-spacing, 12px)}.mat-mdc-menu-item:not([disabled]):hover{background-color:var(--mat-menu-item-hover-state-layer-color, color-mix(in srgb, var(--mat-sys-on-surface) calc(var(--mat-sys-hover-state-layer-opacity) * 100%), transparent))}.mat-mdc-menu-item:not([disabled]).cdk-program-focused,.mat-mdc-menu-item:not([disabled]).cdk-keyboard-focused,.mat-mdc-menu-item:not([disabled]).mat-mdc-menu-item-highlighted{background-color:var(--mat-menu-item-focus-state-layer-color, color-mix(in srgb, var(--mat-sys-on-surface) calc(var(--mat-sys-focus-state-layer-opacity) * 100%), transparent))}@media(forced-colors: active){.mat-mdc-menu-item{margin-top:1px}}.mat-mdc-menu-submenu-icon{width:var(--mat-menu-item-icon-size, 24px);height:10px;fill:currentColor;padding-left:var(--mat-menu-item-spacing, 12px)}[dir=rtl] .mat-mdc-menu-submenu-icon{padding-right:var(--mat-menu-item-spacing, 12px);padding-left:0}[dir=rtl] .mat-mdc-menu-submenu-icon polygon{transform:scaleX(-1);transform-origin:center}@media(forced-colors: active){.mat-mdc-menu-submenu-icon{fill:CanvasText}}.mat-mdc-menu-item .mat-mdc-menu-ripple{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none} -`],encapsulation:2,changeDetection:0})}return t})(),b8=new T("mat-menu-scroll-strategy",{providedIn:"root",factory:()=>{let t=u(de);return()=>wn(t)}});function dfe(t){let n=u(de);return()=>wn(n)}var ufe={provide:b8,deps:[],useFactory:dfe};var ip=new WeakMap,mfe=(()=>{class t{_canHaveBackdrop;_element=u(q);_viewContainerRef=u(nt);_menuItemInstance=u(El,{optional:!0,self:!0});_dir=u(Vt,{optional:!0});_focusMonitor=u(Yt);_ngZone=u(ae);_injector=u(de);_scrollStrategy=u(b8);_changeDetectorRef=u(ye);_animationsDisabled=Ye();_portal;_overlayRef=null;_menuOpen=!1;_closingActionsSubscription=ke.EMPTY;_menuCloseSubscription=ke.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(i=>{this._destroyMenu(i),(i==="click"||i==="tab")&&this._parentMaterialMenu&&this._parentMaterialMenu.closed.emit(i)})),this._menuItemInstance?._setTriggersSubmenu(this._triggersSubmenu()))}_menuInternal;constructor(e){this._canHaveBackdrop=e;let i=u(II,{optional:!0});this._parentMaterialMenu=i instanceof jr?i:void 0}ngOnDestroy(){this._menu&&this._ownsMenu(this._menu)&&ip.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){let i=this._menu;if(this._menuOpen||!i)return;this._pendingRemoval?.unsubscribe();let r=ip.get(i);ip.set(i,this),r&&r!==this&&r._closeMenu();let o=this._createOverlay(i),a=o.getConfig(),s=a.positionStrategy;this._setPosition(i,s),this._canHaveBackdrop?a.hasBackdrop=i.hasBackdrop==null?!this._triggersSubmenu():i.hasBackdrop:a.hasBackdrop=!1,o.hasAttached()||(o.attach(this._getPortal(i)),i.lazyContent?.attach(this.menuData)),this._closingActionsSubscription=this._menuClosingActions().subscribe(()=>this._closeMenu()),i.parentMenu=this._triggersSubmenu()?this._parentMaterialMenu:void 0,i.direction=this.dir,e&&i.focusFirstItem(this._openedBy||"program"),this._setIsMenuOpen(!0),i instanceof jr&&(i._setIsOpen(!0),i._directDescendantItems.changes.pipe(Te(i.close)).subscribe(()=>{s.withLockedPosition(!1).reapplyLastPosition(),s.withLockedPosition(!0)}))}focus(e,i){this._focusMonitor&&e?this._focusMonitor.focusVia(this._element,e,i):this._element.nativeElement.focus(i)}_destroyMenu(e){let i=this._overlayRef,r=this._menu;!i||!this.menuOpen||(this._closingActionsSubscription.unsubscribe(),this._pendingRemoval?.unsubscribe(),r instanceof jr&&this._ownsMenu(r)?(this._pendingRemoval=r._animationDone.pipe(lt(1)).subscribe(()=>{i.detach(),ip.has(r)||r.lazyContent?.detach()}),r._setIsOpen(!1)):(i.detach(),r?.lazyContent?.detach()),r&&this._ownsMenu(r)&&ip.delete(r),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 i=this._getOverlayConfig(e);this._subscribeToPositions(e,i.positionStrategy),this._overlayRef=Nr(this._injector,i),this._overlayRef.keydownEvents().subscribe(r=>{this._menu instanceof jr&&this._menu._handleKeydown(r)})}return this._overlayRef}_getOverlayConfig(e){return new Fr({positionStrategy:Fa(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,i){e.setPositionClasses&&i.positionChanges.subscribe(r=>{this._ngZone.run(()=>{let o=r.connectionPair.overlayX==="start"?"after":"before",a=r.connectionPair.overlayY==="top"?"below":"above";e.setPositionClasses(o,a)})})}_setPosition(e,i){let[r,o]=e.xPosition==="before"?["end","start"]:["start","end"],[a,s]=e.yPosition==="above"?["bottom","top"]:["top","bottom"],[l,c]=[a,s],[d,m]=[r,o],f=0;if(this._triggersSubmenu()){if(m=r=e.xPosition==="before"?"start":"end",o=d=r==="end"?"start":"end",this._parentMaterialMenu){if(this._parentInnerPadding==null){let b=this._parentMaterialMenu.items.first;this._parentInnerPadding=b?b._getHostElement().offsetTop:0}f=a==="bottom"?this._parentInnerPadding:-this._parentInnerPadding}}else e.overlapTrigger||(l=a==="top"?"bottom":"top",c=s==="top"?"bottom":"top");i.withPositions([{originX:r,originY:l,overlayX:d,overlayY:a,offsetY:f},{originX:o,originY:l,overlayX:m,overlayY:a,offsetY:f},{originX:r,originY:c,overlayX:d,overlayY:s,offsetY:-f},{originX:o,originY:c,overlayX:m,overlayY:s,offsetY:-f}])}_menuClosingActions(){let e=this._getOutsideClickStream(this._overlayRef),i=this._overlayRef.detachments(),r=this._parentMaterialMenu?this._parentMaterialMenu.closed:Q(),o=this._parentMaterialMenu?this._parentMaterialMenu._hovered().pipe(ce(a=>this._menuOpen&&a!==this._menuItemInstance)):Q();return Je(e,r,o,i)}_getPortal(e){return(!this._portal||this._portal.templateRef!==e.templateRef)&&(this._portal=new Cn(e.templateRef,this._viewContainerRef)),this._portal}_ownsMenu(e){return ip.get(e)===this}static \u0275fac=function(i){Ad()};static \u0275dir=F({type:t})}return t})(),Ns=(()=>{class t extends mfe{_cleanupTouchstart;_hoverSubscription=ke.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 U;onMenuOpen=this.menuOpened;menuClosed=new U;onMenuClose=this.menuClosed;constructor(){super(!0);let e=u(je);this._cleanupTouchstart=e.listen(this._element.nativeElement,"touchstart",i=>{Gd(i)||(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){Wd(e)||(this._openedBy=e.button===0?"mouse":void 0,this.triggersSubmenu()&&e.preventDefault())}_handleKeydown(e){let i=e.keyCode;(i===13||i===32)&&(this._openedBy="keyboard"),this.triggersSubmenu()&&(i===39&&this.dir==="ltr"||i===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(i){return new(i||t)};static \u0275dir=F({type:t,selectors:[["","mat-menu-trigger-for",""],["","matMenuTriggerFor",""]],hostAttrs:[1,"mat-mdc-menu-trigger"],hostVars:3,hostBindings:function(i,r){i&1&&S("click",function(a){return r._handleClick(a)})("mousedown",function(a){return r._handleMousedown(a)})("keydown",function(a){return r._handleKeydown(a)}),i&2&&X("aria-haspopup",r.menu?"menu":null)("aria-expanded",r.menuOpen)("aria-controls",r.menuOpen?r.menu==null?null:r.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:[le]})}return t})();var Ls=(()=>{class t{static \u0275fac=function(i){return new(i||t)};static \u0275mod=ee({type:t});static \u0275inj=J({providers:[ufe],imports:[yo,we,er,vr,we]})}return t})(),v8={transformMenu:{type:7,name:"transformMenu",definitions:[{type:0,name:"void",styles:{type:6,styles:{opacity:0,transform:"scale(0.8)"},offset:null}},{type:1,expr:"void => enter",animation:{type:4,styles:{type:6,styles:{opacity:1,transform:"scale(1)"},offset:null},timings:"120ms cubic-bezier(0, 0, 0.2, 1)"},options:null},{type:1,expr:"* => void",animation:{type:4,styles:{type:6,styles:{opacity:0},offset:null},timings:"100ms 25ms linear"},options:null}],options:{}},fadeInItems:{type:7,name:"fadeInItems",definitions:[{type:0,name:"showing",styles:{type:6,styles:{opacity:1},offset:null}},{type:1,expr:"void => *",animation:[{type:6,styles:{opacity:0},offset:null},{type:4,styles:null,timings:"400ms 100ms cubic-bezier(0.55, 0, 0.55, 0.2)"}],options:null}],options:{}}},dlt=v8.fadeInItems,ult=v8.transformMenu;function hfe(t,n){if(t&1&&(h(0,"mat-list-item")(1,"mat-icon",3),_(2,"info"),p(),h(3,"a",4),_(4),p()()),t&2){let e=n.$implicit;g(4),H(e)}}var y8=(()=>{let n=class n{constructor(){this.messages=["Server Error Reports 1","Server Error Reports 2","Server Error Reports 3"]}};n.\u0275fac=function(r){return new(r||n)},n.\u0275cmp=E({type:n,selectors:[["app-notification"]],decls:8,vars:1,consts:[["menu","matMenu"],["matIconButton","",3,"matMenuTriggerFor"],["matBadge","5","matBadgeColor","warn","aria-hidden","false"],["matListItemIcon","",1,"m-x-16"],["matListItemTitle","","href","#"]],template:function(r,o){if(r&1&&(h(0,"button",1)(1,"mat-icon",2),_(2,"notifications"),p()(),h(3,"mat-menu",null,0)(5,"mat-nav-list"),xt(6,hfe,5,1,"mat-list-item",null,Hi),p()()),r&2){let a=Se(4);y("matMenuTriggerFor",a),g(6),Ct(o.messages)}},dependencies:[h8,m8,ze,ti,ot,mt,ca,_8,la,f_,Dl,Ls,jr,Ns],styles:["[_nghost-%COMP%] .mat-badge-content{--mat-badge-background-color: #ef0000;--mat-badge-text-color: #fff}"]});let t=n;return t})();var pfe=(t,n)=>n.value;function ffe(t,n){t&1&&k(0,"mat-pseudo-checkbox",5)}function gfe(t,n){if(t&1){let e=Y();h(0,"button",3),S("click",function(){let r=I(e).$implicit,o=C();return A(o.changeLang(r.value))}),h(1,"span",4),_(2),me(3,"translate"),N(4,ffe,1,0,"mat-pseudo-checkbox",5),p()()}if(t&2){let e=n.$implicit,i=C();g(2),ve(" ",Oe(3,2,e.name)," "),g(2),L(e.value===i.options.language?4:-1)}}var x8=(()=>{let n=class n{constructor(){this.settings=u(aa),this.options=this.settings.options,this.langs=[{value:"en-US",name:"en_us"},{value:"zh-CN",name:"zh_cn"},{value:"zh-TW",name:"zh_tw"},{value:"auto",name:"system"}]}changeLang(i){this.settings.setLanguage(i)}};n.\u0275fac=function(r){return new(r||n)},n.\u0275cmp=E({type:n,selectors:[["app-translate"]],decls:7,vars:1,consts:[["menu","matMenu"],["matIconButton","",3,"matMenuTriggerFor"],["mat-menu-item",""],["mat-menu-item","",3,"click"],[1,"d-flex","justify-content-between","gap-8"],["state","checked","appearance","minimal"]],template:function(r,o){if(r&1&&(h(0,"button",1)(1,"mat-icon"),_(2,"translate"),p()(),h(3,"mat-menu",null,0),xt(5,gfe,5,4,"button",2,pfe),p()),r&2){let a=Se(4);y("matMenuTriggerFor",a),g(5),Ct(o.langs)}},dependencies:[ze,ti,ot,mt,Ls,jr,El,Ns,Qd,Cr],encapsulation:2});let t=n;return t})();function _fe(t,n){t&1&&(h(0,"button",8)(1,"mat-icon"),_(2,"account_circle"),p(),h(3,"span"),_(4),me(5,"translate"),p()(),h(6,"button",9)(7,"mat-icon"),_(8,"edit"),p(),h(9,"span"),_(10),me(11,"translate"),p()()),t&2&&(g(4),H(Oe(5,2,"profile")),g(6),H(Oe(11,4,"edit_profile")))}function bfe(t,n){if(t&1){let e=Y();h(0,"button",6),S("click",function(){I(e);let r=C();return A(r.logout())}),h(1,"mat-icon"),_(2,"exit_to_app"),p(),h(3,"span"),_(4),me(5,"translate"),p()()}t&2&&(g(4),H(Oe(5,1,"logout")))}function vfe(t,n){if(t&1){let e=Y();h(0,"button",6),S("click",function(){I(e);let r=C();return A(r.login())}),h(1,"mat-icon"),_(2,"login"),p(),h(3,"span"),_(4),me(5,"translate"),p()()}t&2&&(g(4),H(Oe(5,1,"login")))}var C8=(()=>{let n=class n{constructor(){this.oidcAuth=u(Tt),this.router=u(Re),this.settings=u(aa),this.userName="Guest",this.userEmail="",this.userRoles="Anonymous User"}ngOnInit(){this.updateUserInfo(),this.authSubscription=this.oidcAuth.isAuthenticated$.subscribe(()=>{this.updateUserInfo()})}ngOnDestroy(){this.authSubscription?.unsubscribe()}updateUserInfo(){if(!this.oidcAuth.isAuthenticated()){this.userName="Guest",this.userEmail="",this.userRoles="Anonymous User";return}let i=this.oidcAuth.getUserInfo();console.log("UserButton: User info:",i),console.log("UserButton: Available claims:",i?Object.keys(i):"null"),this.userName=i?.name||i?.preferred_username||i?.given_name||i?.["http://schemas.xmlsoap.org/ws/2005/05/identity/claims/name"]||i?.sub||"User",this.userEmail=i?.email||i?.["http://schemas.xmlsoap.org/ws/2005/05/identity/claims/emailaddress"]||"";let r=this.oidcAuth.getUserRoles();this.userRoles=r.length>0?r.join(", "):"No roles",console.log("UserButton: Set userName to:",this.userName,"email to:",this.userEmail,"roles:",this.userRoles)}isAuthenticated(){return this.oidcAuth.isAuthenticated()}login(){this.oidcAuth.login()}logout(){this.oidcAuth.logout(),this.router.navigateByUrl("/dashboard")}restore(){this.settings.reset(),window.location.reload()}};n.\u0275fac=function(r){return new(r||n)},n.\u0275cmp=E({type:n,selectors:[["app-user"]],decls:22,vars:9,consts:[["menu","matMenu"],["matIconButton","",1,"user-button",3,"matMenuTriggerFor"],[1,"user-info"],[1,"user-name"],[1,"user-email"],[1,"user-roles"],["mat-menu-item","",3,"click"],["mat-menu-item",""],["routerLink","/profile/overview","mat-menu-item",""],["routerLink","/profile/settings","mat-menu-item",""]],template:function(r,o){if(r&1){let a=Y();h(0,"button",1)(1,"mat-icon"),_(2,"account_circle"),p()(),h(3,"mat-menu",null,0)(5,"div",2)(6,"div",3),_(7),p(),h(8,"div",4),_(9),p(),h(10,"div",5),_(11),p()(),k(12,"mat-divider"),N(13,_fe,12,6),h(14,"button",6),S("click",function(){return I(a),A(o.restore())}),h(15,"mat-icon"),_(16,"restore"),p(),h(17,"span"),_(18),me(19,"translate"),p()(),N(20,bfe,6,3,"button",7)(21,vfe,6,3,"button",7),p()}if(r&2){let a=Se(4);y("matMenuTriggerFor",a),g(7),H(o.userName),g(2),H(o.userEmail),g(2),H(o.userRoles),g(2),L(o.isAuthenticated()?13:-1),g(5),H(Oe(19,7,"restore_defaults")),g(2),L(o.isAuthenticated()?20:21)}},dependencies:[gt,Nn,ze,ti,ot,mt,Ls,jr,El,Ns,sa,Ha,wr,Cr],styles:["[_nghost-%COMP%]{display:inline-block}.user-button[_ngcontent-%COMP%]{display:inline-flex!important}.user-info[_ngcontent-%COMP%]{padding:16px;max-width:250px}.user-info[_ngcontent-%COMP%] .user-name[_ngcontent-%COMP%]{font-weight:500;font-size:14px;margin-bottom:4px}.user-info[_ngcontent-%COMP%] .user-email[_ngcontent-%COMP%]{font-size:12px;color:#0009;margin-bottom:4px}.user-info[_ngcontent-%COMP%] .user-roles[_ngcontent-%COMP%]{font-size:11px;color:#00000080;font-style:italic}"]});let t=n;return t})();function yfe(t,n){if(t&1){let e=Y();h(0,"button",4),S("click",function(){I(e);let r=C();return A(r.toggleSidenav.emit())}),h(1,"mat-icon"),_(2,"menu"),p()()}}function xfe(t,n){t&1&&k(0,"app-branding")}var w8=(()=>{let n=class n{constructor(){this.showToggle=ne(!0),this.showBranding=ne(!1),this.toggleSidenav=bi(),this.toggleSidenavNotice=bi()}toggleFullscreen(){kI.isEnabled&&kI.toggle()}};n.\u0275fac=function(r){return new(r||n)},n.\u0275cmp=E({type:n,selectors:[["app-header"]],hostAttrs:[1,"matero-header"],inputs:{showToggle:[1,"showToggle"],showBranding:[1,"showBranding"]},outputs:{toggleSidenav:"toggleSidenav",toggleSidenavNotice:"toggleSidenavNotice"},decls:17,vars:2,consts:[["matIconButton",""],[1,"flex-fill"],["matIconButton","",1,"hide-small",3,"click"],[1,"hide-small"],["matIconButton","",3,"click"]],template:function(r,o){r&1&&(h(0,"mat-toolbar"),N(1,yfe,3,0,"button",0),N(2,xfe,1,0,"app-branding"),k(3,"span",1)(4,"app-github-button"),h(5,"button",0)(6,"mat-icon"),_(7,"search"),p()(),k(8,"app-translate"),h(9,"button",2),S("click",function(){return o.toggleFullscreen()}),h(10,"mat-icon"),_(11,"fullscreen"),p()(),k(12,"app-notification",3)(13,"app-user"),h(14,"button",2),S("click",function(){return o.toggleSidenavNotice.emit()}),h(15,"mat-icon"),_(16,"list"),p()()()),r&2&&(g(),L(o.showToggle()?1:-1),g(),L(o.showBranding()?2:-1))},dependencies:[ZC,KC,ze,ti,ot,mt,XC,d8,y8,x8,C8],styles:[`.matero-header{--mat-toolbar-container-background-color: transparent;position:relative;z-index:200;display:block;background-color:var(--header-background-color);-webkit-backdrop-filter:blur(8px);backdrop-filter:blur(8px)} -`],encapsulation:2});let t=n;return t})();var np=["*"];function Cfe(t,n){t&1&&oe(0)}var k8=["tabListContainer"],S8=["tabList"],T8=["tabListInner"],I8=["nextPaginator"],A8=["previousPaginator"],wfe=["content"];function Dfe(t,n){}var Efe=["tabBodyWrapper"],Mfe=["tabHeader"];function kfe(t,n){}function Sfe(t,n){if(t&1&&R(0,kfe,0,0,"ng-template",12),t&2){let e=C().$implicit;y("cdkPortalOutlet",e.templateLabel)}}function Tfe(t,n){if(t&1&&_(0),t&2){let e=C().$implicit;H(e.textLabel)}}function Ife(t,n){if(t&1){let e=Y();h(0,"div",7,2),S("click",function(){let r=I(e),o=r.$implicit,a=r.$index,s=C(),l=Se(1);return A(s._handleClick(o,l,a))})("cdkFocusChange",function(r){let o=I(e).$index,a=C();return A(a._tabFocusChanged(r,o))}),k(2,"span",8)(3,"div",9),h(4,"span",10)(5,"span",11),N(6,Sfe,1,1,null,12)(7,Tfe,1,1),p()()()}if(t&2){let e=n.$implicit,i=n.$index,r=Se(1),o=C();it(e.labelClass),G("mdc-tab--active",o.selectedIndex===i),y("id",o._getTabLabelId(e,i))("disabled",e.disabled)("fitInkBarToContent",o.fitInkBarToContent),X("tabIndex",o._getTabIndex(i))("aria-posinset",i+1)("aria-setsize",o._tabs.length)("aria-controls",o._getTabContentId(i))("aria-selected",o.selectedIndex===i)("aria-label",e.ariaLabel||null)("aria-labelledby",!e.ariaLabel&&e.ariaLabelledby?e.ariaLabelledby:null),g(3),y("matRippleTrigger",r)("matRippleDisabled",e.disabled||o.disableRipple),g(3),L(e.templateLabel?6:7)}}function Afe(t,n){t&1&&oe(0)}function Ofe(t,n){if(t&1){let e=Y();h(0,"mat-tab-body",13),S("_onCentered",function(){I(e);let r=C();return A(r._removeTabBodyWrapperHeight())})("_onCentering",function(r){I(e);let o=C();return A(o._setTabBodyWrapperHeight(r))})("_beforeCentering",function(r){I(e);let o=C();return A(o._bodyCentered(r))}),p()}if(t&2){let e=n.$implicit,i=n.$index,r=C();it(e.bodyClass),y("id",r._getTabContentId(i))("content",e.content)("position",e.position)("animationDuration",r.animationDuration)("preserveContent",r.preserveContent),X("tabindex",r.contentTabIndex!=null&&r.selectedIndex===i?r.contentTabIndex:null)("aria-labelledby",r._getTabLabelId(e,i))("aria-hidden",r.selectedIndex!==i)}}var Rfe=["mat-tab-nav-bar",""],Pfe=["mat-tab-link",""],Ffe=new T("MatTabContent"),Nfe=(()=>{class t{template=u(te);constructor(){}static \u0275fac=function(i){return new(i||t)};static \u0275dir=F({type:t,selectors:[["","matTabContent",""]],features:[Ce([{provide:Ffe,useExisting:t}])]})}return t})(),Lfe=new T("MatTabLabel"),O8=new T("MAT_TAB"),Vfe=(()=>{class t extends eB{_closestTab=u(O8,{optional:!0});static \u0275fac=(()=>{let e;return function(r){return(e||(e=fe(t)))(r||t)}})();static \u0275dir=F({type:t,selectors:[["","mat-tab-label",""],["","matTabLabel",""]],features:[Ce([{provide:Lfe,useExisting:t}]),le]})}return t})(),R8=new T("MAT_TAB_GROUP"),__=(()=>{class t{_viewContainerRef=u(nt);_closestTabGroup=u(R8,{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 z;position=null;origin=null;isActive=!1;constructor(){u(ut).load(Di)}ngOnChanges(e){(e.hasOwnProperty("textLabel")||e.hasOwnProperty("disabled"))&&this._stateChanges.next()}ngOnDestroy(){this._stateChanges.complete()}ngOnInit(){this._contentPortal=new Cn(this._explicitContent||this._implicitContent,this._viewContainerRef)}_setTemplateLabelInput(e){e&&e._closestTab===this&&(this._templateLabel=e)}static \u0275fac=function(i){return new(i||t)};static \u0275cmp=E({type:t,selectors:[["mat-tab"]],contentQueries:function(i,r,o){if(i&1&&(xe(o,Vfe,5),xe(o,Nfe,7,te)),i&2){let a;B(a=j())&&(r.templateLabel=a.first),B(a=j())&&(r._explicitContent=a.first)}},viewQuery:function(i,r){if(i&1&&ie(te,7),i&2){let o;B(o=j())&&(r._implicitContent=o.first)}},hostAttrs:["hidden",""],hostVars:1,hostBindings:function(i,r){i&2&&X("id",null)},inputs:{disabled:[2,"disabled","disabled",V],textLabel:[0,"label","textLabel"],ariaLabel:[0,"aria-label","ariaLabel"],ariaLabelledby:[0,"aria-labelledby","ariaLabelledby"],labelClass:"labelClass",bodyClass:"bodyClass",id:"id"},exportAs:["matTab"],features:[Ce([{provide:O8,useExisting:t}]),Ae],ngContentSelectors:np,decls:1,vars:0,template:function(i,r){i&1&&(Me(),xa(0,Cfe,1,0,"ng-template"))},encapsulation:2})}return t})(),AI="mdc-tab-indicator--active",D8="mdc-tab-indicator--no-transition",ew=class{_items;_currentItem;constructor(n){this._items=n}hide(){this._items.forEach(n=>n.deactivateInkBar()),this._currentItem=void 0}alignToElement(n){let e=this._items.find(r=>r.elementRef.nativeElement===n),i=this._currentItem;if(e!==i&&(i?.deactivateInkBar(),e)){let r=i?.elementRef.nativeElement.getBoundingClientRect?.();e.activateInkBar(r),this._currentItem=e}}},P8=(()=>{class t{_elementRef=u(q);_inkBarElement;_inkBarContentElement;_fitToContent=!1;get fitInkBarToContent(){return this._fitToContent}set fitInkBarToContent(e){this._fitToContent!==e&&(this._fitToContent=e,this._inkBarElement&&this._appendInkBarElement())}activateInkBar(e){let i=this._elementRef.nativeElement;if(!e||!i.getBoundingClientRect||!this._inkBarContentElement){i.classList.add(AI);return}let r=i.getBoundingClientRect(),o=e.width/r.width,a=e.left-r.left;i.classList.add(D8),this._inkBarContentElement.style.setProperty("transform",`translateX(${a}px) scaleX(${o})`),i.getBoundingClientRect(),i.classList.remove(D8),i.classList.add(AI),this._inkBarContentElement.style.setProperty("transform","")}deactivateInkBar(){this._elementRef.nativeElement.classList.remove(AI)}ngOnInit(){this._createInkBarElement()}ngOnDestroy(){this._inkBarElement?.remove(),this._inkBarElement=this._inkBarContentElement=null}_createInkBarElement(){let e=this._elementRef.nativeElement.ownerDocument||document,i=this._inkBarElement=e.createElement("span"),r=this._inkBarContentElement=e.createElement("span");i.className="mdc-tab-indicator",r.className="mdc-tab-indicator__content mdc-tab-indicator__content--underline",i.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(i){return new(i||t)};static \u0275dir=F({type:t,inputs:{fitInkBarToContent:[2,"fitInkBarToContent","fitInkBarToContent",V]}})}return t})();var F8=(()=>{class t extends P8{elementRef=u(q);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(r){return(e||(e=fe(t)))(r||t)}})();static \u0275dir=F({type:t,selectors:[["","matTabLabelWrapper",""]],hostVars:3,hostBindings:function(i,r){i&2&&(X("aria-disabled",!!r.disabled),G("mat-mdc-tab-disabled",r.disabled))},inputs:{disabled:[2,"disabled","disabled",V]},features:[le]})}return t})(),E8={passive:!0},Bfe=650,jfe=100,N8=(()=>{class t{_elementRef=u(q);_changeDetectorRef=u(ye);_viewportRuler=u(Xn);_dir=u(Vt,{optional:!0});_ngZone=u(ae);_platform=u(qe);_sharedResizeObserver=u(qy);_injector=u(de);_renderer=u(je);_animationsDisabled=Ye();_eventCleanups;_scrollDistance=0;_selectedIndexChanged=!1;_destroyed=new z;_showPaginationControls=!1;_disableScrollAfter=!0;_disableScrollBefore=!0;_tabLabelCount;_scrollDistanceChanged;_keyManager;_currentTextContent;_stopScrolling=new z;disablePagination=!1;get selectedIndex(){return this._selectedIndex}set selectedIndex(e){let i=isNaN(e)?0:e;this._selectedIndex!=i&&(this._selectedIndexChanged=!0,this._selectedIndex=i,this._keyManager&&this._keyManager.updateActiveItem(i))}_selectedIndex=0;selectFocusedIndex=new U;indexFocused=new U;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"),E8),this._renderer.listen(this._nextPaginator.nativeElement,"touchstart",()=>this._handlePaginatorPress("after"),E8))}ngAfterContentInit(){let e=this._dir?this._dir.change:Q("ltr"),i=this._sharedResizeObserver.observe(this._elementRef.nativeElement).pipe(Rt(32),Te(this._destroyed)),r=this._viewportRuler.change(150).pipe(Te(this._destroyed)),o=()=>{this.updatePagination(),this._alignInkBarToSelectedTab()};this._keyManager=new bs(this._items).withHorizontalOrientation(this._getLayoutDirection()).withHomeAndEnd().withWrap().skipPredicate(()=>!1),this._keyManager.updateActiveItem(Math.max(this._selectedIndex,0)),pt(o,{injector:this._injector}),Je(e,r,i,this._items.changes,this._itemsResized()).pipe(Te(this._destroyed)).subscribe(()=>{this._ngZone.run(()=>{Promise.resolve().then(()=>{this._scrollDistance=Math.max(0,Math.min(this._getMaxScrollDistance(),this._scrollDistance)),o()})}),this._keyManager?.withHorizontalOrientation(this._getLayoutDirection())}),this._keyManager.change.subscribe(a=>{this.indexFocused.emit(a),this._setTabFocus(a)})}_itemsResized(){return typeof ResizeObserver!="function"?Fi:this._items.changes.pipe(He(this._items),$e(e=>new Fe(i=>this._ngZone.runOutsideAngular(()=>{let r=new ResizeObserver(o=>i.next(o));return e.forEach(o=>r.observe(o.elementRef.nativeElement)),()=>{r.disconnect()}}))),Ya(1),ce(e=>e.some(i=>i.contentRect.width>0&&i.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(!Ft(e))switch(e.keyCode){case 13:case 32:if(this.focusIndex!==this.selectedIndex){let i=this._items.get(this.focusIndex);i&&!i.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 i=this._tabListContainer.nativeElement;this._getLayoutDirection()=="ltr"?i.scrollLeft=0:i.scrollLeft=i.scrollWidth-i.offsetWidth}}_getLayoutDirection(){return this._dir&&this._dir.value==="rtl"?"rtl":"ltr"}_updateTabScrollPosition(){if(this.disablePagination)return;let e=this.scrollDistance,i=this._getLayoutDirection()==="ltr"?-e:e;this._tabList.nativeElement.style.transform=`translateX(${Math.round(i)}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 i=this._tabListContainer.nativeElement.offsetWidth,r=(e=="before"?-1:1)*i/3;return this._scrollTo(this._scrollDistance+r)}_handlePaginatorClick(e){this._stopInterval(),this._scrollHeader(e)}_scrollToLabel(e){if(this.disablePagination)return;let i=this._items?this._items.toArray()[e]:null;if(!i)return;let r=this._tabListContainer.nativeElement.offsetWidth,{offsetLeft:o,offsetWidth:a}=i.elementRef.nativeElement,s,l;this._getLayoutDirection()=="ltr"?(s=o,l=s+a):(l=this._tabListInner.nativeElement.offsetWidth-o,s=l-a);let c=this.scrollDistance,d=this.scrollDistance+r;sd&&(this.scrollDistance+=Math.min(l-d,s-c))}_checkPaginationEnabled(){if(this.disablePagination)this._showPaginationControls=!1;else{let e=this._tabListInner.nativeElement.scrollWidth,i=this._elementRef.nativeElement.offsetWidth,r=e-i>=5;r||(this.scrollDistance=0),r!==this._showPaginationControls&&(this._showPaginationControls=r,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,i=this._tabListContainer.nativeElement.offsetWidth;return e-i||0}_alignInkBarToSelectedTab(){let e=this._items&&this._items.length?this._items.toArray()[this.selectedIndex]:null,i=e?e.elementRef.nativeElement:null;i?this._inkBar.alignToElement(i):this._inkBar.hide()}_stopInterval(){this._stopScrolling.next()}_handlePaginatorPress(e,i){i&&i.button!=null&&i.button!==0||(this._stopInterval(),qa(Bfe,jfe).pipe(Te(Je(this._stopScrolling,this._destroyed))).subscribe(()=>{let{maxScrollDistance:r,distance:o}=this._scrollHeader(e);(o===0||o>=r)&&this._stopInterval()}))}_scrollTo(e){if(this.disablePagination)return{maxScrollDistance:0,distance:0};let i=this._getMaxScrollDistance();return this._scrollDistance=Math.max(0,Math.min(i,e)),this._scrollDistanceChanged=!0,this._checkScrollingControls(),{maxScrollDistance:i,distance:this._scrollDistance}}static \u0275fac=function(i){return new(i||t)};static \u0275dir=F({type:t,inputs:{disablePagination:[2,"disablePagination","disablePagination",V],selectedIndex:[2,"selectedIndex","selectedIndex",ct]},outputs:{selectFocusedIndex:"selectFocusedIndex",indexFocused:"indexFocused"}})}return t})(),Hfe=(()=>{class t extends N8{_items;_tabListContainer;_tabList;_tabListInner;_nextPaginator;_previousPaginator;_inkBar;ariaLabel;ariaLabelledby;disableRipple=!1;ngAfterContentInit(){this._inkBar=new ew(this._items),super.ngAfterContentInit()}_itemSelected(e){e.preventDefault()}static \u0275fac=(()=>{let e;return function(r){return(e||(e=fe(t)))(r||t)}})();static \u0275cmp=E({type:t,selectors:[["mat-tab-header"]],contentQueries:function(i,r,o){if(i&1&&xe(o,F8,4),i&2){let a;B(a=j())&&(r._items=a)}},viewQuery:function(i,r){if(i&1&&(ie(k8,7),ie(S8,7),ie(T8,7),ie(I8,5),ie(A8,5)),i&2){let o;B(o=j())&&(r._tabListContainer=o.first),B(o=j())&&(r._tabList=o.first),B(o=j())&&(r._tabListInner=o.first),B(o=j())&&(r._nextPaginator=o.first),B(o=j())&&(r._previousPaginator=o.first)}},hostAttrs:[1,"mat-mdc-tab-header"],hostVars:4,hostBindings:function(i,r){i&2&&G("mat-mdc-tab-header-pagination-controls-enabled",r._showPaginationControls)("mat-mdc-tab-header-rtl",r._getLayoutDirection()=="rtl")},inputs:{ariaLabel:[0,"aria-label","ariaLabel"],ariaLabelledby:[0,"aria-labelledby","ariaLabelledby"],disableRipple:[2,"disableRipple","disableRipple",V]},features:[le],ngContentSelectors:np,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(i,r){if(i&1){let o=Y();Me(),h(0,"div",5,0),S("click",function(){return I(o),A(r._handlePaginatorClick("before"))})("mousedown",function(s){return I(o),A(r._handlePaginatorPress("before",s))})("touchend",function(){return I(o),A(r._stopInterval())}),k(2,"div",6),p(),h(3,"div",7,1),S("keydown",function(s){return I(o),A(r._handleKeydown(s))}),h(5,"div",8,2),S("cdkObserveContent",function(){return I(o),A(r._onContentChanges())}),h(7,"div",9,3),oe(9),p()()(),h(10,"div",10,4),S("mousedown",function(s){return I(o),A(r._handlePaginatorPress("after",s))})("click",function(){return I(o),A(r._handlePaginatorClick("after"))})("touchend",function(){return I(o),A(r._stopInterval())}),k(12,"div",6),p()}i&2&&(G("mat-mdc-tab-header-pagination-disabled",r._disableScrollBefore),y("matRippleDisabled",r._disableScrollBefore||r.disableRipple),g(3),G("_mat-animation-noopable",r._animationsDisabled),g(2),X("aria-label",r.ariaLabel||null)("aria-labelledby",r.ariaLabelledby||null),g(5),G("mat-mdc-tab-header-pagination-disabled",r._disableScrollAfter),y("matRippleDisabled",r._disableScrollAfter||r.disableRipple))},dependencies:[Vn,Wf],styles:[`.mat-mdc-tab-header{display:flex;overflow:hidden;position:relative;flex-shrink:0}.mdc-tab-indicator .mdc-tab-indicator__content{transition-duration:var(--mat-tab-animation-duration, 250ms)}.mat-mdc-tab-header-pagination{-webkit-user-select:none;user-select:none;position:relative;display:none;justify-content:center;align-items:center;min-width:32px;cursor:pointer;z-index:2;-webkit-tap-highlight-color:rgba(0,0,0,0);touch-action:none;box-sizing:content-box;outline:0}.mat-mdc-tab-header-pagination::-moz-focus-inner{border:0}.mat-mdc-tab-header-pagination .mat-ripple-element{opacity:.12;background-color:var(--mat-tab-inactive-ripple-color, var(--mat-sys-on-surface))}.mat-mdc-tab-header-pagination-controls-enabled .mat-mdc-tab-header-pagination{display:flex}.mat-mdc-tab-header-pagination-before,.mat-mdc-tab-header-rtl .mat-mdc-tab-header-pagination-after{padding-left:4px}.mat-mdc-tab-header-pagination-before .mat-mdc-tab-header-pagination-chevron,.mat-mdc-tab-header-rtl .mat-mdc-tab-header-pagination-after .mat-mdc-tab-header-pagination-chevron{transform:rotate(-135deg)}.mat-mdc-tab-header-rtl .mat-mdc-tab-header-pagination-before,.mat-mdc-tab-header-pagination-after{padding-right:4px}.mat-mdc-tab-header-rtl .mat-mdc-tab-header-pagination-before .mat-mdc-tab-header-pagination-chevron,.mat-mdc-tab-header-pagination-after .mat-mdc-tab-header-pagination-chevron{transform:rotate(45deg)}.mat-mdc-tab-header-pagination-chevron{border-style:solid;border-width:2px 2px 0 0;height:8px;width:8px;border-color:var(--mat-tab-pagination-icon-color, var(--mat-sys-on-surface))}.mat-mdc-tab-header-pagination-disabled{box-shadow:none;cursor:default;pointer-events:none}.mat-mdc-tab-header-pagination-disabled .mat-mdc-tab-header-pagination-chevron{opacity:.4}.mat-mdc-tab-list{flex-grow:1;position:relative;transition:transform 500ms cubic-bezier(0.35, 0, 0.25, 1)}._mat-animation-noopable .mat-mdc-tab-list{transition:none}.mat-mdc-tab-label-container{display:flex;flex-grow:1;overflow:hidden;z-index:1;border-bottom-style:solid;border-bottom-width:var(--mat-tab-divider-height, 1px);border-bottom-color:var(--mat-tab-divider-color, var(--mat-sys-surface-variant))}.mat-mdc-tab-group-inverted-header .mat-mdc-tab-label-container{border-bottom:none;border-top-style:solid;border-top-width:var(--mat-tab-divider-height, 1px);border-top-color:var(--mat-tab-divider-color, var(--mat-sys-surface-variant))}.mat-mdc-tab-labels{display:flex;flex:1 0 auto}[mat-align-tabs=center]>.mat-mdc-tab-header .mat-mdc-tab-labels{justify-content:center}[mat-align-tabs=end]>.mat-mdc-tab-header .mat-mdc-tab-labels{justify-content:flex-end}.cdk-drop-list .mat-mdc-tab-labels,.mat-mdc-tab-labels.cdk-drop-list{min-height:var(--mat-tab-container-height, 48px)}.mat-mdc-tab::before{margin:5px}@media(forced-colors: active){.mat-mdc-tab[aria-disabled=true]{color:GrayText}} -`],encapsulation:2})}return t})(),L8=new T("MAT_TABS_CONFIG"),M8=(()=>{class t extends yr{_host=u(OI);_ngZone=u(ae);_centeringSub=ke.EMPTY;_leavingSub=ke.EMPTY;constructor(){super()}ngOnInit(){super.ngOnInit(),this._centeringSub=this._host._beforeCentering.pipe(He(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(i){return new(i||t)};static \u0275dir=F({type:t,selectors:[["","matTabBodyHost",""]],features:[le]})}return t})(),OI=(()=>{class t{_elementRef=u(q);_dir=u(Vt,{optional:!0});_ngZone=u(ae);_injector=u(de);_renderer=u(je);_diAnimationsDisabled=Ye();_eventCleanups;_initialized;_fallbackTimer;_positionIndex;_dirChangeSubscription=ke.EMPTY;_position;_previousPosition;_onCentering=new U;_beforeCentering=new U;_afterLeavingCenter=new U;_onCentered=new U(!0);_portalHost;_contentElement;_content;animationDuration="500ms";preserveContent=!1;set position(e){this._positionIndex=e,this._computePositionAnimationState()}constructor(){if(this._dir){let e=u(ye);this._dirChangeSubscription=this._dir.change.subscribe(i=>{this._computePositionAnimationState(i),e.markForCheck()})}}ngOnInit(){this._bindTransitionEvents(),this._position==="center"&&(this._setActiveClass(!0),pt(()=>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,i=r=>{r.target===this._contentElement?.nativeElement&&(this._elementRef.nativeElement.classList.remove("mat-tab-body-animating"),r.type==="transitionend"&&this._transitionDone())};this._eventCleanups=[this._renderer.listen(e,"transitionstart",r=>{r.target===this._contentElement?.nativeElement&&(this._elementRef.nativeElement.classList.add("mat-tab-body-animating"),this._transitionStarted())}),this._renderer.listen(e,"transitionend",i),this._renderer.listen(e,"transitioncancel",i)]})}_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(),pt(()=>this._transitionDone(),{injector:this._injector})}_animationsDisabled(){return this._diAnimationsDisabled||this.animationDuration==="0ms"||this.animationDuration==="0s"}static \u0275fac=function(i){return new(i||t)};static \u0275cmp=E({type:t,selectors:[["mat-tab-body"]],viewQuery:function(i,r){if(i&1&&(ie(M8,5),ie(wfe,5)),i&2){let o;B(o=j())&&(r._portalHost=o.first),B(o=j())&&(r._contentElement=o.first)}},hostAttrs:[1,"mat-mdc-tab-body"],hostVars:1,hostBindings:function(i,r){i&2&&X("inert",r._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(i,r){i&1&&(h(0,"div",1,0),R(2,Dfe,0,0,"ng-template",2),p()),i&2&&G("mat-tab-body-content-left",r._position==="left")("mat-tab-body-content-right",r._position==="right")("mat-tab-body-content-can-animate",r._position==="center"||r._previousPosition==="center")},dependencies:[M8,Pa],styles:[`.mat-mdc-tab-body{top:0;left:0;right:0;bottom:0;position:absolute;display:block;overflow:hidden;outline:0;flex-basis:100%}.mat-mdc-tab-body.mat-mdc-tab-body-active{position:relative;overflow-x:hidden;overflow-y:auto;z-index:1;flex-grow:1}.mat-mdc-tab-group.mat-mdc-tab-group-dynamic-height .mat-mdc-tab-body.mat-mdc-tab-body-active{overflow-y:hidden}.mat-mdc-tab-body-content{height:100%;overflow:auto;transform:none;visibility:hidden}.mat-tab-body-animating>.mat-mdc-tab-body-content,.mat-mdc-tab-body-active>.mat-mdc-tab-body-content{visibility:visible}.mat-tab-body-animating>.mat-mdc-tab-body-content{min-height:1px}.mat-mdc-tab-group-dynamic-height .mat-mdc-tab-body-content{overflow:hidden}.mat-tab-body-content-can-animate{transition:transform var(--mat-tab-animation-duration) 1ms cubic-bezier(0.35, 0, 0.25, 1)}.mat-mdc-tab-body-wrapper._mat-animation-noopable .mat-tab-body-content-can-animate{transition:none}.mat-tab-body-content-left{transform:translate3d(-100%, 0, 0)}.mat-tab-body-content-right{transform:translate3d(100%, 0, 0)} -`],encapsulation:2})}return t})(),tw=(()=>{class t{_elementRef=u(q);_changeDetectorRef=u(ye);_ngZone=u(ae);_tabsSubscription=ke.EMPTY;_tabLabelSubscription=ke.EMPTY;_tabBodySubscription=ke.EMPTY;_diAnimationsDisabled=Ye();_allTabs;_tabBodies;_tabBodyWrapper;_tabHeader;_tabs=new pr;_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 i=e+"";this._animationDuration=/^\d+$/.test(i)?e+"ms":i}_animationDuration;get contentTabIndex(){return this._contentTabIndex}set contentTabIndex(e){this._contentTabIndex=isNaN(e)?null:e}_contentTabIndex;disablePagination=!1;disableRipple=!1;preserveContent=!1;get backgroundColor(){return this._backgroundColor}set backgroundColor(e){let i=this._elementRef.nativeElement.classList;i.remove("mat-tabs-with-background",`mat-background-${this.backgroundColor}`),e&&i.add("mat-tabs-with-background",`mat-background-${e}`),this._backgroundColor=e}_backgroundColor;ariaLabel;ariaLabelledby;selectedIndexChange=new U;focusChange=new U;animationDone=new U;selectedTabChange=new U(!0);_groupId;_isServer=!u(qe).isBrowser;constructor(){let e=u(L8,{optional:!0});this._groupId=u(Ze).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 i=this._selectedIndex==null;if(!i){this.selectedTabChange.emit(this._createChangeEvent(e));let r=this._tabBodyWrapper.nativeElement;r.style.minHeight=r.clientHeight+"px"}Promise.resolve().then(()=>{this._tabs.forEach((r,o)=>r.isActive=o===e),i||(this.selectedIndexChange.emit(e),this._tabBodyWrapper.nativeElement.style.minHeight="")})}this._tabs.forEach((i,r)=>{i.position=r-e,this._selectedIndex!=null&&i.position==0&&!i.origin&&(i.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 i=this._tabs.toArray(),r;for(let o=0;o{i[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(He(this._allTabs)).subscribe(e=>{this._tabs.reset(e.filter(i=>i._closestTabGroup===this||!i._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 i=this._tabHeader;i&&(i.focusIndex=e)}_focusChanged(e){this._lastFocusedTabIndex=e,this.focusChange.emit(this._createChangeEvent(e))}_createChangeEvent(e){let i=new RI;return i.index=e,this._tabs&&this._tabs.length&&(i.tab=this._tabs.toArray()[e]),i}_subscribeToTabLabels(){this._tabLabelSubscription&&this._tabLabelSubscription.unsubscribe(),this._tabLabelSubscription=Je(...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,i){return e.id||`${this._groupId}-label-${i}`}_getTabContentId(e){return`${this._groupId}-content-${e}`}_setTabBodyWrapperHeight(e){if(!this.dynamicHeight||!this._tabBodyWrapperHeight){this._tabBodyWrapperHeight=e;return}let i=this._tabBodyWrapper.nativeElement;i.style.height=this._tabBodyWrapperHeight+"px",this._tabBodyWrapper.nativeElement.offsetHeight&&(i.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,i,r){i.focusIndex=r,e.disabled||(this.selectedIndex=r)}_getTabIndex(e){let i=this._lastFocusedTabIndex??this.selectedIndex;return e===i?0:-1}_tabFocusChanged(e,i){e&&e!=="mouse"&&e!=="touch"&&(this._tabHeader.focusIndex=i)}_bodyCentered(e){e&&this._tabBodies?.forEach((i,r)=>i._setActiveClass(r===this._selectedIndex))}_animationsDisabled(){return this._diAnimationsDisabled||this.animationDuration==="0"||this.animationDuration==="0ms"}static \u0275fac=function(i){return new(i||t)};static \u0275cmp=E({type:t,selectors:[["mat-tab-group"]],contentQueries:function(i,r,o){if(i&1&&xe(o,__,5),i&2){let a;B(a=j())&&(r._allTabs=a)}},viewQuery:function(i,r){if(i&1&&(ie(Efe,5),ie(Mfe,5),ie(OI,5)),i&2){let o;B(o=j())&&(r._tabBodyWrapper=o.first),B(o=j())&&(r._tabHeader=o.first),B(o=j())&&(r._tabBodies=o)}},hostAttrs:[1,"mat-mdc-tab-group"],hostVars:11,hostBindings:function(i,r){i&2&&(X("mat-align-tabs",r.alignTabs),it("mat-"+(r.color||"primary")),Dt("--mat-tab-animation-duration",r.animationDuration),G("mat-mdc-tab-group-dynamic-height",r.dynamicHeight)("mat-mdc-tab-group-inverted-header",r.headerPosition==="below")("mat-mdc-tab-group-stretch-tabs",r.stretchTabs))},inputs:{color:"color",fitInkBarToContent:[2,"fitInkBarToContent","fitInkBarToContent",V],stretchTabs:[2,"mat-stretch-tabs","stretchTabs",V],alignTabs:[0,"mat-align-tabs","alignTabs"],dynamicHeight:[2,"dynamicHeight","dynamicHeight",V],selectedIndex:[2,"selectedIndex","selectedIndex",ct],headerPosition:"headerPosition",animationDuration:"animationDuration",contentTabIndex:[2,"contentTabIndex","contentTabIndex",ct],disablePagination:[2,"disablePagination","disablePagination",V],disableRipple:[2,"disableRipple","disableRipple",V],preserveContent:[2,"preserveContent","preserveContent",V],backgroundColor:"backgroundColor",ariaLabel:[0,"aria-label","ariaLabel"],ariaLabelledby:[0,"aria-labelledby","ariaLabelledby"]},outputs:{selectedIndexChange:"selectedIndexChange",focusChange:"focusChange",animationDone:"animationDone",selectedTabChange:"selectedTabChange"},exportAs:["matTabGroup"],features:[Ce([{provide:R8,useExisting:t}])],ngContentSelectors:np,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(i,r){if(i&1){let o=Y();Me(),h(0,"mat-tab-header",3,0),S("indexFocused",function(s){return I(o),A(r._focusChanged(s))})("selectFocusedIndex",function(s){return I(o),A(r.selectedIndex=s)}),xt(2,Ife,8,17,"div",4,xm),p(),N(4,Afe,1,0),h(5,"div",5,1),xt(7,Ofe,1,10,"mat-tab-body",6,xm),p()}i&2&&(y("selectedIndex",r.selectedIndex||0)("disableRipple",r.disableRipple)("disablePagination",r.disablePagination),Kl("aria-label",r.ariaLabel)("aria-labelledby",r.ariaLabelledby),g(2),Ct(r._tabs),g(2),L(r._isServer?4:-1),g(),G("_mat-animation-noopable",r._animationsDisabled()),g(2),Ct(r._tabs))},dependencies:[Hfe,F8,$f,Vn,yr,OI],styles:[`.mdc-tab{min-width:90px;padding:0 24px;display:flex;flex:1 0 auto;justify-content:center;box-sizing:border-box;border:none;outline:none;text-align:center;white-space:nowrap;cursor:pointer;z-index:1;touch-action:manipulation}.mdc-tab__content{display:flex;align-items:center;justify-content:center;height:inherit;pointer-events:none}.mdc-tab__text-label{transition:150ms color linear;display:inline-block;line-height:1;z-index:2}.mdc-tab--active .mdc-tab__text-label{transition-delay:100ms}._mat-animation-noopable .mdc-tab__text-label{transition:none}.mdc-tab-indicator{display:flex;position:absolute;top:0;left:0;justify-content:center;width:100%;height:100%;pointer-events:none;z-index:1}.mdc-tab-indicator__content{transition:var(--mat-tab-animation-duration, 250ms) transform cubic-bezier(0.4, 0, 0.2, 1);transform-origin:left;opacity:0}.mdc-tab-indicator__content--underline{align-self:flex-end;box-sizing:border-box;width:100%;border-top-style:solid}.mdc-tab-indicator--active .mdc-tab-indicator__content{opacity:1}._mat-animation-noopable .mdc-tab-indicator__content,.mdc-tab-indicator--no-transition .mdc-tab-indicator__content{transition:none}.mat-mdc-tab-ripple.mat-mdc-tab-ripple{position:absolute;top:0;left:0;bottom:0;right:0;pointer-events:none}.mat-mdc-tab{-webkit-tap-highlight-color:rgba(0,0,0,0);-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;text-decoration:none;background:none;height:var(--mat-tab-container-height, 48px);font-family:var(--mat-tab-label-text-font, var(--mat-sys-title-small-font));font-size:var(--mat-tab-label-text-size, var(--mat-sys-title-small-size));letter-spacing:var(--mat-tab-label-text-tracking, var(--mat-sys-title-small-tracking));line-height:var(--mat-tab-label-text-line-height, var(--mat-sys-title-small-line-height));font-weight:var(--mat-tab-label-text-weight, var(--mat-sys-title-small-weight))}.mat-mdc-tab.mdc-tab{flex-grow:0}.mat-mdc-tab .mdc-tab-indicator__content--underline{border-color:var(--mat-tab-active-indicator-color, var(--mat-sys-primary));border-top-width:var(--mat-tab-active-indicator-height, 2px);border-radius:var(--mat-tab-active-indicator-shape, 0)}.mat-mdc-tab:hover .mdc-tab__text-label{color:var(--mat-tab-inactive-hover-label-text-color, var(--mat-sys-on-surface))}.mat-mdc-tab:focus .mdc-tab__text-label{color:var(--mat-tab-inactive-focus-label-text-color, var(--mat-sys-on-surface))}.mat-mdc-tab.mdc-tab--active .mdc-tab__text-label{color:var(--mat-tab-active-label-text-color, var(--mat-sys-on-surface))}.mat-mdc-tab.mdc-tab--active .mdc-tab__ripple::before,.mat-mdc-tab.mdc-tab--active .mat-ripple-element{background-color:var(--mat-tab-active-ripple-color, var(--mat-sys-on-surface))}.mat-mdc-tab.mdc-tab--active:hover .mdc-tab__text-label{color:var(--mat-tab-active-hover-label-text-color, var(--mat-sys-on-surface))}.mat-mdc-tab.mdc-tab--active:hover .mdc-tab-indicator__content--underline{border-color:var(--mat-tab-active-hover-indicator-color, var(--mat-sys-primary))}.mat-mdc-tab.mdc-tab--active:focus .mdc-tab__text-label{color:var(--mat-tab-active-focus-label-text-color, var(--mat-sys-on-surface))}.mat-mdc-tab.mdc-tab--active:focus .mdc-tab-indicator__content--underline{border-color:var(--mat-tab-active-focus-indicator-color, var(--mat-sys-primary))}.mat-mdc-tab.mat-mdc-tab-disabled{opacity:.4;pointer-events:none}.mat-mdc-tab.mat-mdc-tab-disabled .mdc-tab__content{pointer-events:none}.mat-mdc-tab.mat-mdc-tab-disabled .mdc-tab__ripple::before,.mat-mdc-tab.mat-mdc-tab-disabled .mat-ripple-element{background-color:var(--mat-tab-disabled-ripple-color, var(--mat-sys-on-surface-variant))}.mat-mdc-tab .mdc-tab__ripple::before{content:"";display:block;position:absolute;top:0;left:0;right:0;bottom:0;opacity:0;pointer-events:none;background-color:var(--mat-tab-inactive-ripple-color, var(--mat-sys-on-surface))}.mat-mdc-tab .mdc-tab__text-label{color:var(--mat-tab-inactive-label-text-color, var(--mat-sys-on-surface));display:inline-flex;align-items:center}.mat-mdc-tab .mdc-tab__content{position:relative;pointer-events:auto}.mat-mdc-tab:hover .mdc-tab__ripple::before{opacity:.04}.mat-mdc-tab.cdk-program-focused .mdc-tab__ripple::before,.mat-mdc-tab.cdk-keyboard-focused .mdc-tab__ripple::before{opacity:.12}.mat-mdc-tab .mat-ripple-element{opacity:.12;background-color:var(--mat-tab-inactive-ripple-color, var(--mat-sys-on-surface))}.mat-mdc-tab-group.mat-mdc-tab-group-stretch-tabs>.mat-mdc-tab-header .mat-mdc-tab{flex-grow:1}.mat-mdc-tab-group{display:flex;flex-direction:column;max-width:100%}.mat-mdc-tab-group.mat-tabs-with-background>.mat-mdc-tab-header,.mat-mdc-tab-group.mat-tabs-with-background>.mat-mdc-tab-header-pagination{background-color:var(--mat-tab-background-color)}.mat-mdc-tab-group.mat-tabs-with-background.mat-primary>.mat-mdc-tab-header .mat-mdc-tab .mdc-tab__text-label{color:var(--mat-tab-foreground-color)}.mat-mdc-tab-group.mat-tabs-with-background.mat-primary>.mat-mdc-tab-header .mdc-tab-indicator__content--underline{border-color:var(--mat-tab-foreground-color)}.mat-mdc-tab-group.mat-tabs-with-background:not(.mat-primary)>.mat-mdc-tab-header .mat-mdc-tab:not(.mdc-tab--active) .mdc-tab__text-label{color:var(--mat-tab-foreground-color)}.mat-mdc-tab-group.mat-tabs-with-background:not(.mat-primary)>.mat-mdc-tab-header .mat-mdc-tab:not(.mdc-tab--active) .mdc-tab-indicator__content--underline{border-color:var(--mat-tab-foreground-color)}.mat-mdc-tab-group.mat-tabs-with-background>.mat-mdc-tab-header .mat-mdc-tab-header-pagination-chevron,.mat-mdc-tab-group.mat-tabs-with-background>.mat-mdc-tab-header .mat-focus-indicator::before,.mat-mdc-tab-group.mat-tabs-with-background>.mat-mdc-tab-header-pagination .mat-mdc-tab-header-pagination-chevron,.mat-mdc-tab-group.mat-tabs-with-background>.mat-mdc-tab-header-pagination .mat-focus-indicator::before{border-color:var(--mat-tab-foreground-color)}.mat-mdc-tab-group.mat-tabs-with-background>.mat-mdc-tab-header .mat-ripple-element,.mat-mdc-tab-group.mat-tabs-with-background>.mat-mdc-tab-header .mdc-tab__ripple::before,.mat-mdc-tab-group.mat-tabs-with-background>.mat-mdc-tab-header-pagination .mat-ripple-element,.mat-mdc-tab-group.mat-tabs-with-background>.mat-mdc-tab-header-pagination .mdc-tab__ripple::before{background-color:var(--mat-tab-foreground-color)}.mat-mdc-tab-group.mat-tabs-with-background>.mat-mdc-tab-header .mat-mdc-tab-header-pagination-chevron,.mat-mdc-tab-group.mat-tabs-with-background>.mat-mdc-tab-header-pagination .mat-mdc-tab-header-pagination-chevron{color:var(--mat-tab-foreground-color)}.mat-mdc-tab-group.mat-mdc-tab-group-inverted-header{flex-direction:column-reverse}.mat-mdc-tab-group.mat-mdc-tab-group-inverted-header .mdc-tab-indicator__content--underline{align-self:flex-start}.mat-mdc-tab-body-wrapper{position:relative;overflow:hidden;display:flex;transition:height 500ms cubic-bezier(0.35, 0, 0.25, 1)}.mat-mdc-tab-body-wrapper._mat-animation-noopable{transition:none !important;animation:none !important} -`],encapsulation:2})}return t})(),RI=class{index;tab},PI=(()=>{class t extends N8{_focusedItem=he(null);get fitInkBarToContent(){return this._fitInkBarToContent.value}set fitInkBarToContent(e){this._fitInkBarToContent.next(e),this._changeDetectorRef.markForCheck()}_fitInkBarToContent=new tt(!1);stretchTabs=!0;get animationDuration(){return this._animationDuration}set animationDuration(e){let i=e+"";this._animationDuration=/^\d+$/.test(i)?e+"ms":i}_animationDuration;_items;get backgroundColor(){return this._backgroundColor}set backgroundColor(e){let i=this._elementRef.nativeElement.classList;i.remove("mat-tabs-with-background",`mat-background-${this.backgroundColor}`),e&&i.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=he(!1);color="primary";tabPanel;_tabListContainer;_tabList;_tabListInner;_nextPaginator;_previousPaginator;_inkBar;constructor(){let e=u(L8,{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 ew(this._items),this._items.changes.pipe(He(null),Te(this._destroyed)).subscribe(()=>this.updateActiveLink()),super.ngAfterContentInit(),this._keyManager.change.pipe(He(null),Te(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 i=0;i.mat-mdc-tab-link-container .mat-mdc-tab-links{justify-content:center}[mat-align-tabs=end]>.mat-mdc-tab-link-container .mat-mdc-tab-links{justify-content:flex-end}.cdk-drop-list .mat-mdc-tab-links,.mat-mdc-tab-links.cdk-drop-list{min-height:var(--mat-tab-container-height, 48px)}.mat-mdc-tab-link-container{display:flex;flex-grow:1;overflow:hidden;z-index:1;border-bottom-style:solid;border-bottom-width:var(--mat-tab-divider-height, 1px);border-bottom-color:var(--mat-tab-divider-color, var(--mat-sys-surface-variant))}.mat-mdc-tab-nav-bar.mat-tabs-with-background>.mat-mdc-tab-link-container,.mat-mdc-tab-nav-bar.mat-tabs-with-background>.mat-mdc-tab-header-pagination{background-color:var(--mat-tab-background-color)}.mat-mdc-tab-nav-bar.mat-tabs-with-background.mat-primary>.mat-mdc-tab-link-container .mat-mdc-tab-link .mdc-tab__text-label{color:var(--mat-tab-foreground-color)}.mat-mdc-tab-nav-bar.mat-tabs-with-background.mat-primary>.mat-mdc-tab-link-container .mdc-tab-indicator__content--underline{border-color:var(--mat-tab-foreground-color)}.mat-mdc-tab-nav-bar.mat-tabs-with-background:not(.mat-primary)>.mat-mdc-tab-link-container .mat-mdc-tab-link:not(.mdc-tab--active) .mdc-tab__text-label{color:var(--mat-tab-foreground-color)}.mat-mdc-tab-nav-bar.mat-tabs-with-background:not(.mat-primary)>.mat-mdc-tab-link-container .mat-mdc-tab-link:not(.mdc-tab--active) .mdc-tab-indicator__content--underline{border-color:var(--mat-tab-foreground-color)}.mat-mdc-tab-nav-bar.mat-tabs-with-background>.mat-mdc-tab-link-container .mat-mdc-tab-header-pagination-chevron,.mat-mdc-tab-nav-bar.mat-tabs-with-background>.mat-mdc-tab-link-container .mat-focus-indicator::before,.mat-mdc-tab-nav-bar.mat-tabs-with-background>.mat-mdc-tab-header-pagination .mat-mdc-tab-header-pagination-chevron,.mat-mdc-tab-nav-bar.mat-tabs-with-background>.mat-mdc-tab-header-pagination .mat-focus-indicator::before{border-color:var(--mat-tab-foreground-color)}.mat-mdc-tab-nav-bar.mat-tabs-with-background>.mat-mdc-tab-link-container .mat-ripple-element,.mat-mdc-tab-nav-bar.mat-tabs-with-background>.mat-mdc-tab-link-container .mdc-tab__ripple::before,.mat-mdc-tab-nav-bar.mat-tabs-with-background>.mat-mdc-tab-header-pagination .mat-ripple-element,.mat-mdc-tab-nav-bar.mat-tabs-with-background>.mat-mdc-tab-header-pagination .mdc-tab__ripple::before{background-color:var(--mat-tab-foreground-color)}.mat-mdc-tab-nav-bar.mat-tabs-with-background>.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 t})(),zfe=(()=>{class t extends P8{_tabNavBar=u(PI);elementRef=u(q);_focusMonitor=u(Yt);_destroyed=new z;_isActive=!1;_tabIndex=Zt(()=>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=he(!1);tabIndex=0;rippleConfig;get rippleDisabled(){return this.disabled||this.disableRipple||this._tabNavBar.disableRipple||!!this.rippleConfig.disabled}id=u(Ze).getId("mat-tab-link-");constructor(){super(),u(ut).load(Di);let e=u(Cs,{optional:!0}),i=u(new Ii("tabindex"),{optional:!0});this.rippleConfig=e||{},this.tabIndex=i==null?0:parseInt(i)||0,Ye()&&(this.rippleConfig.animation={enterDuration:0,exitDuration:0}),this._tabNavBar._fitInkBarToContent.pipe(Te(this._destroyed)).subscribe(r=>{this.fitInkBarToContent=r})}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(i){return new(i||t)};static \u0275cmp=E({type:t,selectors:[["","mat-tab-link",""],["","matTabLink",""]],hostAttrs:[1,"mdc-tab","mat-mdc-tab-link","mat-focus-indicator"],hostVars:11,hostBindings:function(i,r){i&1&&S("focus",function(){return r._handleFocus()})("keydown",function(a){return r._handleKeydown(a)}),i&2&&(X("aria-controls",r._getAriaControls())("aria-current",r._getAriaCurrent())("aria-disabled",r.disabled)("aria-selected",r._getAriaSelected())("id",r.id)("tabIndex",r._tabIndex())("role",r._getRole()),G("mat-mdc-tab-disabled",r.disabled)("mdc-tab--active",r.active))},inputs:{active:[2,"active","active",V],disabled:[2,"disabled","disabled",V],disableRipple:[2,"disableRipple","disableRipple",V],tabIndex:[2,"tabIndex","tabIndex",e=>e==null?0:ct(e)],id:"id"},exportAs:["matTabLink"],features:[le],attrs:Pfe,ngContentSelectors:np,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(i,r){i&1&&(Me(),k(0,"span",0)(1,"div",1),h(2,"span",2)(3,"span",3),oe(4),p()()),i&2&&(g(),y("matRippleTrigger",r.elementRef.nativeElement)("matRippleDisabled",r.rippleDisabled))},dependencies:[Vn],styles:[`.mat-mdc-tab-link{-webkit-tap-highlight-color:rgba(0,0,0,0);-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;text-decoration:none;background:none;height:var(--mat-tab-container-height, 48px);font-family:var(--mat-tab-label-text-font, var(--mat-sys-title-small-font));font-size:var(--mat-tab-label-text-size, var(--mat-sys-title-small-size));letter-spacing:var(--mat-tab-label-text-tracking, var(--mat-sys-title-small-tracking));line-height:var(--mat-tab-label-text-line-height, var(--mat-sys-title-small-line-height));font-weight:var(--mat-tab-label-text-weight, var(--mat-sys-title-small-weight))}.mat-mdc-tab-link.mdc-tab{flex-grow:0}.mat-mdc-tab-link .mdc-tab-indicator__content--underline{border-color:var(--mat-tab-active-indicator-color, var(--mat-sys-primary));border-top-width:var(--mat-tab-active-indicator-height, 2px);border-radius:var(--mat-tab-active-indicator-shape, 0)}.mat-mdc-tab-link:hover .mdc-tab__text-label{color:var(--mat-tab-inactive-hover-label-text-color, var(--mat-sys-on-surface))}.mat-mdc-tab-link:focus .mdc-tab__text-label{color:var(--mat-tab-inactive-focus-label-text-color, var(--mat-sys-on-surface))}.mat-mdc-tab-link.mdc-tab--active .mdc-tab__text-label{color:var(--mat-tab-active-label-text-color, var(--mat-sys-on-surface))}.mat-mdc-tab-link.mdc-tab--active .mdc-tab__ripple::before,.mat-mdc-tab-link.mdc-tab--active .mat-ripple-element{background-color:var(--mat-tab-active-ripple-color, var(--mat-sys-on-surface))}.mat-mdc-tab-link.mdc-tab--active:hover .mdc-tab__text-label{color:var(--mat-tab-active-hover-label-text-color, var(--mat-sys-on-surface))}.mat-mdc-tab-link.mdc-tab--active:hover .mdc-tab-indicator__content--underline{border-color:var(--mat-tab-active-hover-indicator-color, var(--mat-sys-primary))}.mat-mdc-tab-link.mdc-tab--active:focus .mdc-tab__text-label{color:var(--mat-tab-active-focus-label-text-color, var(--mat-sys-on-surface))}.mat-mdc-tab-link.mdc-tab--active:focus .mdc-tab-indicator__content--underline{border-color:var(--mat-tab-active-focus-indicator-color, var(--mat-sys-primary))}.mat-mdc-tab-link.mat-mdc-tab-disabled{opacity:.4;pointer-events:none}.mat-mdc-tab-link.mat-mdc-tab-disabled .mdc-tab__content{pointer-events:none}.mat-mdc-tab-link.mat-mdc-tab-disabled .mdc-tab__ripple::before,.mat-mdc-tab-link.mat-mdc-tab-disabled .mat-ripple-element{background-color:var(--mat-tab-disabled-ripple-color, var(--mat-sys-on-surface-variant))}.mat-mdc-tab-link .mdc-tab__ripple::before{content:"";display:block;position:absolute;top:0;left:0;right:0;bottom:0;opacity:0;pointer-events:none;background-color:var(--mat-tab-inactive-ripple-color, var(--mat-sys-on-surface))}.mat-mdc-tab-link .mdc-tab__text-label{color:var(--mat-tab-inactive-label-text-color, var(--mat-sys-on-surface));display:inline-flex;align-items:center}.mat-mdc-tab-link .mdc-tab__content{position:relative;pointer-events:auto}.mat-mdc-tab-link:hover .mdc-tab__ripple::before{opacity:.04}.mat-mdc-tab-link.cdk-program-focused .mdc-tab__ripple::before,.mat-mdc-tab-link.cdk-keyboard-focused .mdc-tab__ripple::before{opacity:.12}.mat-mdc-tab-link .mat-ripple-element{opacity:.12;background-color:var(--mat-tab-inactive-ripple-color, var(--mat-sys-on-surface))}.mat-mdc-tab-header.mat-mdc-tab-nav-bar-stretch-tabs .mat-mdc-tab-link{flex-grow:1}.mat-mdc-tab-link::before{margin:5px}@media(max-width: 599px){.mat-mdc-tab-link{min-width:72px}} -`],encapsulation:2,changeDetection:0})}return t})(),V8=(()=>{class t{id=u(Ze).getId("mat-tab-nav-panel-");_activeTabId;static \u0275fac=function(i){return new(i||t)};static \u0275cmp=E({type:t,selectors:[["mat-tab-nav-panel"]],hostAttrs:["role","tabpanel",1,"mat-mdc-tab-nav-panel"],hostVars:2,hostBindings:function(i,r){i&2&&X("aria-labelledby",r._activeTabId)("id",r.id)},inputs:{id:"id"},exportAs:["matTabNavPanel"],ngContentSelectors:np,decls:1,vars:0,template:function(i,r){i&1&&(Me(),oe(0))},encapsulation:2,changeDetection:0})}return t})(),rp=(()=>{class t{static \u0275fac=function(i){return new(i||t)};static \u0275mod=ee({type:t});static \u0275inj=J({imports:[we,we]})}return t})();function Ufe(t,n){if(t&1&&(h(0,"div",1)(1,"div"),_(2),p(),h(3,"div",2)(4,"div",3),_(5),p(),h(6,"div",4),_(7),p()()()),t&2){let e=n.$implicit;g(),it($o("d-flex align-items-center justify-content-center r-12 ",e.color)),Dt("width",3,"rem")("height",3,"rem"),g(),ve(" ",e.icon," "),g(3),H(e.title),g(2),H(e.content)}}function $fe(t,n){if(t&1&&(h(0,"mat-tab",0),xt(1,Ufe,8,10,"div",1,Hi),p()),t&2){let e=n.$implicit;y("label",e.label),g(),Ct(e.messages)}}var B8=(()=>{let n=class n{constructor(){this.tabs=[{label:"Today",messages:[{icon:"\u{1F514}",color:"bg-red-95",title:"General Meeting for update",content:"You can use the Dashboard to explore how many new users download reports daily and monthly."},{icon:"\u{1F4E2}",color:"bg-azure-95",title:"Widgets update",content:"We've made some updates to the emendable widget which we think you are going to love."},{icon:"\u23F3",color:"bg-violet-95",title:"Coming soon new features",content:"More new features are coming soon, so stay patient!"}]},{label:"Notifications",messages:[{icon:"\u{1F4E9}",color:"bg-magenta-95",title:"Weekly reports are available",content:"Please go to the notification center to check your reports."}]}]}};n.\u0275fac=function(r){return new(r||n)},n.\u0275cmp=E({type:n,selectors:[["app-sidebar-notice"]],hostAttrs:[1,"matero-sidebar-notice"],decls:3,vars:0,consts:[[3,"label"],[1,"d-flex","align-items-center","gap-16","p-16","m-b-16","b-1","r-12"],[1,"flex-grow-1","w-0"],[1,"f-w-600"],[1,"f-s-14"]],template:function(r,o){r&1&&(h(0,"mat-tab-group"),xt(1,$fe,3,1,"mat-tab",0,Hi),p()),r&2&&(g(),Ct(o.tabs))},dependencies:[rp,__,tw],styles:[`.matero-sidebar-notice{display:block;height:100%}.matero-sidebar-notice .mat-mdc-tab-group{height:100%}.matero-sidebar-notice .mat-mdc-tab-body-wrapper{flex:1}.matero-sidebar-notice .mat-mdc-tab-body-content{padding:1rem} -`],encapsulation:2});let t=n;return t})();var Wfe=["switch"],Gfe=["*"];function qfe(t,n){t&1&&(h(0,"span",11),Gt(),h(1,"svg",13),k(2,"path",14),p(),h(3,"svg",15),k(4,"path",16),p()())}var Yfe=new T("mat-slide-toggle-default-options",{providedIn:"root",factory:()=>({disableToggleValue:!1,hideIcon:!1,disabledInteractive:!1})}),iw=class{source;checked;constructor(n,e){this.source=n,this.checked=e}},NI=(()=>{class t{_elementRef=u(q);_focusMonitor=u(Yt);_changeDetectorRef=u(ye);defaults=u(Yfe);_onChange=e=>{};_onTouched=()=>{};_validatorOnChange=()=>{};_uniqueId;_checked=!1;_createChangeEvent(e){return new iw(this,e)}_labelId;get buttonId(){return`${this.id||this._uniqueId}-button`}_switchElement;focus(){this._switchElement.nativeElement.focus()}_noopAnimations=Ye();_focused;name=null;id;labelPosition="after";ariaLabel=null;ariaLabelledby=null;ariaDescribedby;required;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 U;toggleChange=new U;get inputId(){return`${this.id||this._uniqueId}-input`}constructor(){u(ut).load(Di);let e=u(new Ii("tabindex"),{optional:!0}),i=this.defaults;this.tabIndex=e==null?0:parseInt(e)||0,this.color=i.color||"accent",this.id=this._uniqueId=u(Ze).getId("mat-mdc-slide-toggle-"),this.hideIcon=i.hideIcon??!1,this.disabledInteractive=i.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 iw(this,this.checked))))}_getAriaLabelledBy(){return this.ariaLabelledby?this.ariaLabelledby:this.ariaLabel?null:this._labelId}static \u0275fac=function(i){return new(i||t)};static \u0275cmp=E({type:t,selectors:[["mat-slide-toggle"]],viewQuery:function(i,r){if(i&1&&ie(Wfe,5),i&2){let o;B(o=j())&&(r._switchElement=o.first)}},hostAttrs:[1,"mat-mdc-slide-toggle"],hostVars:13,hostBindings:function(i,r){i&2&&(si("id",r.id),X("tabindex",null)("aria-label",null)("name",null)("aria-labelledby",null),it(r.color?"mat-"+r.color:""),G("mat-mdc-slide-toggle-focused",r._focused)("mat-mdc-slide-toggle-checked",r.checked)("_mat-animation-noopable",r._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",V],color:"color",disabled:[2,"disabled","disabled",V],disableRipple:[2,"disableRipple","disableRipple",V],tabIndex:[2,"tabIndex","tabIndex",e=>e==null?0:ct(e)],checked:[2,"checked","checked",V],hideIcon:[2,"hideIcon","hideIcon",V],disabledInteractive:[2,"disabledInteractive","disabledInteractive",V]},outputs:{change:"change",toggleChange:"toggleChange"},exportAs:["matSlideToggle"],features:[Ce([{provide:tr,useExisting:Kt(()=>t),multi:!0},{provide:ea,useExisting:t,multi:!0}]),Ae],ngContentSelectors:Gfe,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(i,r){if(i&1){let o=Y();Me(),h(0,"div",1)(1,"button",2,0),S("click",function(){return I(o),A(r._handleClick())}),k(3,"div",3)(4,"span",4),h(5,"span",5)(6,"span",6)(7,"span",7),k(8,"span",8),p(),h(9,"span",9),k(10,"span",10),p(),N(11,qfe,5,0,"span",11),p()()(),h(12,"label",12),S("click",function(s){return I(o),A(s.stopPropagation())}),oe(13),p()()}if(i&2){let o=Se(2);y("labelPosition",r.labelPosition),g(),G("mdc-switch--selected",r.checked)("mdc-switch--unselected",!r.checked)("mdc-switch--checked",r.checked)("mdc-switch--disabled",r.disabled)("mat-mdc-slide-toggle-disabled-interactive",r.disabledInteractive),y("tabIndex",r.disabled&&!r.disabledInteractive?-1:r.tabIndex)("disabled",r.disabled&&!r.disabledInteractive),X("id",r.buttonId)("name",r.name)("aria-label",r.ariaLabel)("aria-labelledby",r._getAriaLabelledBy())("aria-describedby",r.ariaDescribedby)("aria-required",r.required||null)("aria-checked",r.checked)("aria-disabled",r.disabled&&r.disabledInteractive?"true":null),g(9),y("matRippleTrigger",o)("matRippleDisabled",r.disableRipple||r.disabled)("matRippleCentered",!0),g(),L(r.hideIcon?-1:11),g(),y("for",r.buttonId),X("id",r._labelId)}},dependencies:[Vn,Gm],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 rgba(0,0,0,0);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 rgba(0,0,0,0);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:rgba(0,0,0,0);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:.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-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 t})(),j8=(()=>{class t{static \u0275fac=function(i){return new(i||t)};static \u0275mod=ee({type:t});static \u0275inj=J({imports:[NI,we,we]})}return t})();var nw=(()=>{let n=class n{constructor(){this.router=u(Re),this.menu=u(so),this.navItems=[],this.router.events.pipe(ce(i=>i instanceof vi)).subscribe(()=>this.checkOpenedItems()),this.menu.change().pipe(Rt(10)).subscribe(()=>{setTimeout(()=>this.checkOpenedItems())})}addItem(i){this.navItems.push(i)}removeItem(i){let r=this.navItems.indexOf(i);r!==-1&&this.navItems.splice(r,1)}closeOtherItems(i){this.navItems.forEach(r=>{r!==i&&r.setExpanded(!1)})}checkOpenedItems(){this.navItems.forEach(i=>{let r=i.route();r&&this.router.url.split("/").includes(r)&&(i.setExpanded(!0),this.closeOtherItems(i))})}};n.\u0275fac=function(r){return new(r||n)},n.\u0275dir=F({type:n,selectors:[["","navAccordion",""]],exportAs:["navAccordion"]});let t=n;return t})();var rw=(()=>{let n=class n{constructor(){this.nav=u(nw),this.route=ne(""),this.expanded=he(!1)}ngOnInit(){this.nav.addItem(this)}ngOnDestroy(){this.nav.removeItem(this)}toggle(){this.expanded.update(i=>!i),this.expanded()&&this.nav.closeOtherItems(this)}setExpanded(i){this.expanded()!==i&&this.expanded.set(i)}};n.\u0275fac=function(r){return new(r||n)},n.\u0275dir=F({type:n,selectors:[["","navAccordionItem",""]],hostVars:2,hostBindings:function(r,o){r&2&&G("expanded",o.expanded())},inputs:{route:[1,"route"]},exportAs:["navAccordionItem"]});let t=n;return t})();var H8=(()=>{let n=class n{constructor(){this.navItem=u(rw)}onClick(){this.navItem.toggle()}};n.\u0275fac=function(r){return new(r||n)},n.\u0275dir=F({type:n,selectors:[["","navAccordionToggle",""]],hostBindings:function(r,o){r&1&&S("click",function(){return o.onClick()})},exportAs:["navAccordionToggle"]});let t=n;return t})();var Kfe=()=>[],Zfe=(t,n)=>({menuList:t,parentRoute:n,level:0}),z8=t=>[t],ow=(t,n)=>({item:t,level:n}),Xfe=(t,n,e)=>({menuList:t,parentRoute:n,level:e});function Jfe(t,n){if(t&1&&(h(0,"a",6),Ge(1,2),p()),t&2){let e=C(2).$implicit,i=C(),r=i.parentRoute,o=i.level,a=C(),s=Se(5);y("routerLink",a.menu.buildRoute(r.concat(Pt(3,z8,e.route)))),g(),y("ngTemplateOutlet",s)("ngTemplateOutletContext",wa(5,ow,e,o))}}function ege(t,n){if(t&1&&(h(0,"a",7),Ge(1,2),p()),t&2){let e=C(2).$implicit,i=C().level;C();let r=Se(5);y("href",e.route,$r),g(),y("ngTemplateOutlet",r)("ngTemplateOutletContext",wa(3,ow,e,i))}}function tge(t,n){if(t&1&&(h(0,"a",8),Ge(1,2),p()),t&2){let e=C(2).$implicit,i=C().level;C();let r=Se(5);y("href",e.route,$r),g(),y("ngTemplateOutlet",r)("ngTemplateOutletContext",wa(3,ow,e,i))}}function ige(t,n){if(t&1&&(h(0,"button",9),Ge(1,2),p(),Ge(2,2)),t&2){let e=C(2).$implicit,i=C(),r=i.parentRoute,o=i.level;C();let a=Se(3),s=Se(5);g(),y("ngTemplateOutlet",s)("ngTemplateOutletContext",wa(4,ow,e,o)),g(),y("ngTemplateOutlet",a)("ngTemplateOutletContext",Rd(9,Xfe,e.children,r.concat(Pt(7,z8,e.route)),o+1))}}function nge(t,n){if(t&1&&(h(0,"li",5),N(1,Jfe,2,8,"a",6),N(2,ege,2,6,"a",7),N(3,tge,2,6,"a",8),N(4,ige,3,13),p()),t&2){let e=C().$implicit;y("route",e.route),g(),L(e.type==="link"?1:-1),g(),L(e.type==="extLink"?2:-1),g(),L(e.type==="extTabLink"?3:-1),g(),L(e.type==="sub"?4:-1)}}function rge(t,n){if(t&1&&R(0,nge,5,5,"ng-template",4),t&2){let e=n.$implicit;y("ngxPermissionsOnly",e.permissions==null?null:e.permissions.only)("ngxPermissionsExcept",e.permissions==null?null:e.permissions.except)}}function oge(t,n){if(t&1&&(h(0,"ul",3),xt(1,rge,1,2,null,4,Hi),p()),t&2){let e=n.menuList,i=n.level;it($o("matero-sidemenu level-",i)),G("submenu",i>0),g(),Ct(e)}}function age(t,n){if(t&1&&(h(0,"mat-icon",14),_(1),p()),t&2){let e=C(),i=e.item,r=e.level;G("submenu-icon",r>0),g(),H(i.icon)}}function sge(t,n){if(t&1&&(h(0,"span",14),_(1),me(2,"translate"),me(3,"slice"),p()),t&2){let e=C(),i=e.item,r=e.level;G("submenu-icon",r>0),g(),ve(" ",BM(3,5,Oe(2,3,i.name),0,1)," ")}}function lge(t,n){if(t&1&&(h(0,"span"),_(1),p()),t&2){let e=C().item;it($o("menu-label bg-",e.label.color)),g(),H(e.label.value)}}function cge(t,n){if(t&1&&(h(0,"span"),_(1),p()),t&2){let e=C().item;it($o("menu-badge bg-",e.badge.color)),g(),H(e.badge.value)}}function dge(t,n){if(t&1&&(h(0,"mat-icon",13),_(1),p()),t&2){let e=C().item;g(),H(e.type==="sub"?"arrow_drop_down":"launch")}}function uge(t,n){if(t&1&&(N(0,age,2,3,"mat-icon",10)(1,sge,4,9,"span",10),h(2,"span",11),_(3),me(4,"translate"),p(),N(5,lge,2,4,"span",12),N(6,cge,2,4,"span",12),N(7,dge,2,1,"mat-icon",13)),t&2){let e=n.item;L(e.icon?0:1),g(3),H(Oe(4,5,e.name)),g(2),L(e.label?5:-1),g(),L(e.badge?6:-1),g(),L(e.type!=="link"?7:-1)}}var U8=(()=>{let n=class n{constructor(){this.menu=u(so)}};n.\u0275fac=function(r){return new(r||n)},n.\u0275cmp=E({type:n,selectors:[["app-sidemenu"]],decls:6,vars:8,consts:[["menuTpl",""],["linkTypeTpl",""],[3,"ngTemplateOutlet","ngTemplateOutletContext"],["navAccordion",""],[3,"ngxPermissionsOnly","ngxPermissionsExcept"],["navAccordionItem","","routerLinkActive","active",1,"menu-item",3,"route"],["matRipple","",1,"menu-heading",3,"routerLink"],["matRipple","",1,"menu-heading",3,"href"],["target","_blank","matRipple","",1,"menu-heading",3,"href"],["navAccordionToggle","","matRipple","",1,"menu-heading","menu-toggle"],[1,"menu-icon",3,"submenu-icon"],[1,"menu-name"],[3,"class"],[1,"menu-caret"],[1,"menu-icon"]],template:function(r,o){if(r&1&&(Ge(0,2),me(1,"async"),R(2,oge,3,5,"ng-template",null,0,_i)(4,uge,8,7,"ng-template",null,1,_i)),r&2){let a=Se(3);y("ngTemplateOutlet",a)("ngTemplateOutletContext",wa(5,Zfe,Oe(1,2,o.menu.getAll()),at(4,Kfe)))}},dependencies:[Fn,Nn,zd,xc,Ih,ot,mt,yo,Vn,wr,nw,rw,H8,rn,d1,Cr],styles:[`.matero-sidemenu{padding:0;margin:0;list-style:none}.matero-sidemenu .menu-item{overflow:hidden;border-radius:1.5rem;transition:background 225ms cubic-bezier(.4,0,.2,1)}.matero-sidemenu .menu-item>.submenu{visibility:hidden;height:0;transition:all 225ms cubic-bezier(.4,0,.2,1)}.matero-sidemenu .menu-item>.menu-heading:hover,.matero-sidemenu .menu-item>.menu-heading:focus{background-color:var(--sidemenu-heading-hover-background-color)}.matero-sidemenu .menu-item.active>.menu-heading{color:var(--sidemenu-active-heading-text-color);background-color:var(--sidemenu-active-heading-background-color)}.matero-sidemenu .menu-item.active>.menu-heading:hover,.matero-sidemenu .menu-item.active>.menu-heading:focus{background-color:var(--sidemenu-active-heading-hover-background-color)}.matero-sidemenu .menu-item.expanded{background-color:var(--sidemenu-expanded-background-color)}.matero-sidemenu .menu-item.expanded>.submenu{visibility:visible;height:auto;height:calc-size(auto,size)}.matero-sidemenu .menu-item.expanded>.menu-toggle>.menu-caret{transform:rotate(-180deg)}.matero-sidemenu .menu-item:has(.active)>.menu-heading{color:var(--sidemenu-active-heading-text-color)}.matero-sidemenu .menu-heading{position:relative;display:flex;align-items:center;width:calc(var(--sidenav-width) - 1rem);padding:.75rem;font-size:inherit;color:inherit;text-decoration:none;cursor:pointer;outline:none;background-color:transparent;border:none;border-radius:1.5rem}.matero-sidemenu .menu-icon{width:1.5rem;height:1.5rem;margin-right:.75rem;font-size:1.25rem;line-height:1.5rem;text-align:center}[dir=rtl] .matero-sidemenu .menu-icon{margin-right:0;margin-left:.75rem}.matero-sidemenu .menu-icon.submenu-icon{position:absolute;left:.75rem;width:1.5rem;height:1.5rem;font-size:1rem;line-height:1.5rem;opacity:0}[dir=rtl] .matero-sidemenu .menu-icon.submenu-icon{right:.75rem;left:0}.matero-sidemenu .menu-caret{display:block;width:1.5rem;height:1.5rem;font-size:1.5rem;line-height:1.5rem;text-align:center;transition:transform .4s cubic-bezier(.25,.8,.25,1)}.matero-sidemenu .menu-name{flex:1;overflow:hidden;text-overflow:ellipsis;text-align:initial}.matero-sidemenu .menu-icon,.matero-sidemenu .menu-name,.matero-sidemenu .menu-label,.matero-sidemenu .menu-badge{transition:opacity .4s cubic-bezier(.25,.8,.25,1)}.matero-sidemenu .menu-label,.matero-sidemenu .menu-badge{padding:.25rem .5rem;font-size:.75rem;font-weight:700;line-height:1;color:#fff;background-color:#757575;border-radius:.375rem}.matero-sidemenu .menu-badge{border-radius:50rem}.matero-sidemenu.level-1>li>.menu-heading{padding-left:3rem}[dir=rtl] .matero-sidemenu.level-1>li>.menu-heading{padding-right:3rem;padding-left:1rem}.matero-sidemenu.level-2>li>.menu-heading{padding-left:4rem}[dir=rtl] .matero-sidemenu.level-2>li>.menu-heading{padding-right:4rem;padding-left:1rem}.matero-sidemenu.level-2 [class^=level-]>li>.menu-heading{padding-left:5rem}[dir=rtl] .matero-sidemenu.level-2 [class^=level-]>li>.menu-heading{padding-right:5rem;padding-left:1rem} -`],encapsulation:2});let t=n;return t})();var $8=(()=>{let n=class n{constructor(){this.oidcAuth=u(Tt),this.userName="Guest",this.userEmail="Anonymous"}ngOnInit(){this.updateUserInfo(),this.authSubscription=this.oidcAuth.isAuthenticated$.subscribe(i=>{console.log("UserPanel: Auth state changed:",i),this.updateUserInfo()})}ngOnDestroy(){this.authSubscription?.unsubscribe()}updateUserInfo(){let i=this.oidcAuth.isAuthenticated();if(console.log("UserPanel: Updating user info, isAuthenticated:",i),!i){this.userName="Guest",this.userEmail="Anonymous";return}let r=this.oidcAuth.getUserInfo();console.log("UserPanel: User info from service:",r),console.log("UserPanel: Available claims:",r?Object.keys(r):"null"),this.userName=r?.name||r?.preferred_username||r?.given_name||r?.["http://schemas.xmlsoap.org/ws/2005/05/identity/claims/name"]||r?.sub||"User",this.userEmail=r?.email||r?.["http://schemas.xmlsoap.org/ws/2005/05/identity/claims/emailaddress"]||"",console.log("UserPanel: Set userName to:",this.userName,"email to:",this.userEmail)}};n.\u0275fac=function(r){return new(r||n)},n.\u0275cmp=E({type:n,selectors:[["app-user-panel"]],decls:8,vars:4,consts:[[1,"matero-user-panel"],[1,"matero-user-panel-avatar"],[1,"matero-user-panel-info"]],template:function(r,o){r&1&&(h(0,"div",0)(1,"mat-icon",1),_(2,"account_circle"),p(),h(3,"div",2)(4,"h4"),_(5),p(),h(6,"h5"),_(7),p()()()),r&2&&(G("authenticated",o.oidcAuth.isAuthenticated()),g(5),H(o.userName),g(2),H(o.userEmail))},dependencies:[gt,ze,ot,mt,Br,wr],styles:[`.matero-user-panel{display:flex;align-items:center;padding:.75rem;margin-bottom:.75rem;cursor:pointer;outline:none;background-color:var(--user-panel-background-color);border-radius:.75rem}.matero-user-panel:hover,.matero-user-panel:focus{background-color:var(--user-panel-hover-background-color)}.matero-user-panel-avatar{width:3rem;height:3rem;font-size:3rem;border-radius:50rem;color:#0000008a;transform-origin:0 1.5rem;transition:transform .4s cubic-bezier(.25,.8,.25,1)}[dir=rtl] .matero-user-panel-avatar{transform-origin:3rem 1.5rem}.matero-user-panel-info{flex:1;width:0;margin-left:.75rem;opacity:1;transition:opacity .4s cubic-bezier(.25,.8,.25,1)}[dir=rtl] .matero-user-panel-info{margin-right:.75rem;margin-left:0}.matero-user-panel-info h4,.matero-user-panel-info h5{margin:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.matero-user-panel-info h4{margin-bottom:4px;font-size:1rem;font-weight:500}.matero-user-panel-info h5{font-size:.75rem;font-weight:400} -`],encapsulation:2});let t=n;return t})();function mge(t,n){if(t&1){let e=Y();h(0,"mat-slide-toggle",6),S("change",function(){I(e);let r=C(2);return A(r.toggleCollapsed.emit())}),p()}if(t&2){let e=C(2);y("checked",e.toggleChecked())}}function hge(t,n){if(t&1){let e=Y();h(0,"button",7),S("click",function(){I(e);let r=C(2);return A(r.closeSidenav.emit())}),h(1,"mat-icon"),_(2,"close"),p()()}}function pge(t,n){if(t&1&&(h(0,"div",0)(1,"mat-toolbar"),k(2,"app-branding",2)(3,"span",3),N(4,mge,1,1,"mat-slide-toggle",4)(5,hge,3,0,"button",5),p()()),t&2){let e=C();g(2),y("showName",!e.toggleChecked()),g(2),L(e.showToggle()?4:5)}}function fge(t,n){t&1&&k(0,"app-user-panel")}var W8=(()=>{let n=class n{constructor(){this.showToggle=ne(!0),this.showUser=ne(!0),this.showHeader=ne(!0),this.toggleChecked=ne(!1),this.toggleCollapsed=bi(),this.closeSidenav=bi()}};n.\u0275fac=function(r){return new(r||n)},n.\u0275cmp=E({type:n,selectors:[["app-sidebar"]],inputs:{showToggle:[1,"showToggle"],showUser:[1,"showUser"],showHeader:[1,"showHeader"],toggleChecked:[1,"toggleChecked"]},outputs:{toggleCollapsed:"toggleCollapsed",closeSidenav:"closeSidenav"},decls:4,vars:2,consts:[[1,"matero-sidebar-header"],[1,"matero-sidebar-main"],[3,"showName"],[1,"flex-fill"],["hideIcon","",3,"checked"],["mat-icon-button",""],["hideIcon","",3,"change","checked"],["mat-icon-button","",3,"click"]],template:function(r,o){r&1&&(N(0,pge,6,2,"div",0),h(1,"div",1),N(2,fge,1,0,"app-user-panel"),k(3,"app-sidemenu"),p()),r&2&&(L(o.showHeader()?0:-1),g(2),L(o.showUser()?2:-1))},dependencies:[j8,NI,ot,mt,ze,ti,ZC,KC,XC,U8,$8],styles:[`.matero-sidebar-header{overflow:hidden}.matero-sidebar-header mat-toolbar{width:var(--sidenav-width);padding:0 .5rem}.matero-sidebar-header mat-slide-toggle .mdc-label{display:none}.matero-sidebar-main{height:calc(100% - var(--mat-toolbar-standard-height));padding:0 .5rem .5rem;overflow:auto;scrollbar-width:none}@media (max-width: 599px){.matero-sidebar-main{height:calc(100% - var(--mat-toolbar-mobile-height))}} -`],encapsulation:2});let t=n;return t})();var G8=t=>[t],gge=()=>[];function _ge(t,n){if(t&1){let e=Y();h(0,"a",8,0),S("click",function(){I(e);let r=Se(1),o=C(3);return A(o.onRouterLinkClick(r))}),_(2),me(3,"translate"),p()}if(t&2){let e=C(2).$implicit,i=C();y("routerLink",i.menu.buildRoute(i.parentRoute().concat(Pt(4,G8,e.route)))),g(2),ve(" ",Oe(3,2,e.name)," ")}}function bge(t,n){if(t&1&&(h(0,"a",5)(1,"span",9),_(2),me(3,"translate"),p(),h(4,"mat-icon"),_(5,"launch"),p()()),t&2){let e=C(2).$implicit;y("href",e.route,$r),g(2),H(Oe(3,2,e.name))}}function vge(t,n){if(t&1&&(h(0,"a",6)(1,"span",9),_(2),me(3,"translate"),p(),h(4,"mat-icon"),_(5,"launch"),p()()),t&2){let e=C(2).$implicit;y("href",e.route,$r),g(2),H(Oe(3,2,e.name))}}function yge(t,n){if(t&1){let e=Y();h(0,"button",10),_(1),me(2,"translate"),h(3,"app-topmenu-panel",11,1),S("routeChange",function(r){I(e);let o=C(2).$implicit,a=C();return A(a.onRouteChange(r,o))}),p()()}if(t&2){let e=Se(4),i=C(2).$implicit,r=C();G("active",i.active==null?null:i.active()),y("matMenuTriggerFor",e.menuPanel()),g(),ve(" ",Oe(2,7,i.name)," "),g(2),y("items",i.children||at(9,gge))("parentRoute",r.parentRoute().concat(Pt(10,G8,i.route)))("level",r.level()+1)}}function xge(t,n){if(t&1&&(N(0,_ge,4,6,"a",4),N(1,bge,6,4,"a",5),N(2,vge,6,4,"a",6),N(3,yge,5,12,"button",7)),t&2){let e=C().$implicit;L(e.type==="link"?0:-1),g(),L(e.type==="extLink"?1:-1),g(),L(e.type==="extTabLink"?2:-1),g(),L(e.type==="sub"?3:-1)}}function Cge(t,n){if(t&1&&R(0,xge,4,4,"ng-template",3),t&2){let e=n.$implicit;y("ngxPermissionsOnly",e.permissions==null?null:e.permissions.only)("ngxPermissionsExcept",e.permissions==null?null:e.permissions.except)}}var q8=(()=>{let n=class n{constructor(){this.router=u(Re),this.menu=u(so),this.menuPanel=qn.required(jr),this.items=ne([]),this.parentRoute=ne([]),this.level=ne(1),this.routeChange=bi(),this.routerSubscription=this.router.events.pipe(ce(i=>i instanceof vi)).subscribe(i=>{this.items().map(r=>r.active?.set(!1))})}ngOnInit(){this.items().forEach(i=>{i.active=he(this.checkRoute(i))})}ngOnDestroy(){this.routerSubscription.unsubscribe()}checkRoute(i){return i.route?this.router.url.split("/").includes(i.route):this.checkChildRoute(i.children)}checkChildRoute(i=[]){return i.some(r=>this.router.url.split("/").includes(r.route)?!0:(!r.route&&r.children&&this.checkChildRoute(r.children),!1))}onRouterLinkClick(i){this.routeChange.emit(i)}onRouteChange(i,r){this.routeChange.emit(i),this.routerSubscription.unsubscribe(),this.routerSubscription=this.router.events.pipe(ce(o=>o instanceof vi),Be(()=>{this.items().filter(a=>a!=r).map(a=>a.active?.set(!1))}),Rt(10),Be(()=>{r.active?.set(i.isActive)})).subscribe()}};n.\u0275fac=function(r){return new(r||n)},n.\u0275cmp=E({type:n,selectors:[["app-topmenu-panel"]],viewQuery:function(r,o){r&1&&Pn(o.menuPanel,jr,5),r&2&&Ho()},inputs:{items:[1,"items"],parentRoute:[1,"parentRoute"],level:[1,"level"]},outputs:{routeChange:"routeChange"},decls:3,vars:0,consts:[["rla","routerLinkActive"],["submenu",""],[1,"matero-topmenu-panel"],[3,"ngxPermissionsOnly","ngxPermissionsExcept"],["mat-menu-item","","routerLinkActive","active",3,"routerLink"],["mat-menu-item","",3,"href"],["mat-menu-item","","target","_blank",3,"href"],["mat-menu-item","",3,"matMenuTriggerFor","active"],["mat-menu-item","","routerLinkActive","active",3,"click","routerLink"],[1,"menu-name"],["mat-menu-item","",3,"matMenuTriggerFor"],[3,"routeChange","items","parentRoute","level"]],template:function(r,o){r&1&&(h(0,"mat-menu",2),xt(1,Cge,1,2,null,3,Hi),p()),r&2&&(g(),Ct(o.items()))},dependencies:[n,Nn,zd,ot,mt,Ls,jr,El,Ns,xc,Ih,wr,Cr],encapsulation:2});let t=n;return t})();var Y8=t=>[t],sw=t=>({item:t}),wge=()=>[];function Dge(t,n){if(t&1&&(h(0,"a",5),Ge(1,9),p()),t&2){let e=C(2).$implicit,i=C(),r=Se(7);y("routerLink",i.menu.buildRoute(Pt(3,Y8,e.route))),g(),y("ngTemplateOutlet",r)("ngTemplateOutletContext",Pt(5,sw,e))}}function Ege(t,n){if(t&1&&(h(0,"a",6),Ge(1,9),p()),t&2){let e=C(2).$implicit;C();let i=Se(7);y("href",e.route,$r),g(),y("ngTemplateOutlet",i)("ngTemplateOutletContext",Pt(3,sw,e))}}function Mge(t,n){if(t&1&&(h(0,"a",7),Ge(1,9),p()),t&2){let e=C(2).$implicit;C();let i=Se(7);y("href",e.route,$r),g(),y("ngTemplateOutlet",i)("ngTemplateOutletContext",Pt(3,sw,e))}}function kge(t,n){if(t&1){let e=Y();h(0,"button",10),Ge(1,9),h(2,"app-topmenu-panel",11,2),S("routeChange",function(r){I(e);let o=C(2).$implicit,a=C();return A(a.onRouteChange(r,o))}),p()()}if(t&2){let e=Se(3),i=C(2).$implicit;C();let r=Se(7);G("active",i.active==null?null:i.active()),y("matMenuTriggerFor",e.menuPanel()),g(),y("ngTemplateOutlet",r)("ngTemplateOutletContext",Pt(8,sw,i)),g(),y("items",i.children||at(10,wge))("parentRoute",Pt(11,Y8,i.route))("level",1)}}function Sge(t,n){if(t&1&&(N(0,Dge,2,7,"a",5),N(1,Ege,2,5,"a",6),N(2,Mge,2,5,"a",7),N(3,kge,4,13,"button",8)),t&2){let e=C().$implicit;L(e.type==="link"?0:-1),g(),L(e.type==="extLink"?1:-1),g(),L(e.type==="extTabLink"?2:-1),g(),L(e.type==="sub"?3:-1)}}function Tge(t,n){if(t&1&&R(0,Sge,4,4,"ng-template",4),t&2){let e=n.$implicit;y("ngxPermissionsOnly",e.permissions==null?null:e.permissions.only)("ngxPermissionsExcept",e.permissions==null?null:e.permissions.except)}}function Ige(t,n){if(t&1&&(h(0,"span"),_(1),p()),t&2){let e=C().item;it($o("menu-label bg-",e.label.color)),g(),H(e.label.value)}}function Age(t,n){if(t&1&&(h(0,"span"),_(1),p()),t&2){let e=C().item;it($o("menu-badge bg-",e.badge.color)),g(),H(e.badge.value)}}function Oge(t,n){if(t&1&&(h(0,"mat-icon",15),_(1),p()),t&2){let e=C().item;g(),H(e.type==="sub"?"arrow_drop_down":"launch")}}function Rge(t,n){if(t&1&&(h(0,"mat-icon",12),_(1),p(),h(2,"span",13),_(3),me(4,"translate"),p(),N(5,Ige,2,4,"span",14),N(6,Age,2,4,"span",14),N(7,Oge,2,1,"mat-icon",15)),t&2){let e=n.item;g(),H(e.icon),g(2),H(Oe(4,5,e.name)),g(2),L(e.label?5:-1),g(),L(e.badge?6:-1),g(),L(e.type!=="link"?7:-1)}}var Q8=(()=>{let n=class n{constructor(){this.router=u(Re),this.menu=u(so),this.menuList=[],this.menuSubscription=this.menu.getAll().subscribe(i=>{this.menuList=i.map(r=>{let o=this.router.url.split("/").includes(r.route);return r.active=he(o),r})}),this.routerSubscription=this.router.events.pipe(ce(i=>i instanceof vi)).subscribe(i=>{this.menuList.map(r=>r.active?.set(!1))})}ngOnDestroy(){this.menuSubscription.unsubscribe(),this.routerSubscription.unsubscribe()}onRouteChange(i,r){this.routerSubscription.unsubscribe(),this.routerSubscription=this.router.events.pipe(ce(o=>o instanceof vi),Be(()=>{this.menuList.filter(o=>o!=r).map(o=>o.active?.set(!1))}),Rt(10),Be(()=>{r.active?.set(i.isActive)})).subscribe()}};n.\u0275fac=function(r){return new(r||n)},n.\u0275cmp=E({type:n,selectors:[["app-topmenu"]],hostAttrs:[1,"matero-topmenu"],decls:8,vars:3,consts:[["tabPanel",""],["linkTypeTpl",""],["submenu",""],["mat-tab-nav-bar","",3,"tabPanel"],[3,"ngxPermissionsOnly","ngxPermissionsExcept"],["matButton","","routerLinkActive","active",3,"routerLink"],["matButton","",3,"href"],["matButton","","target","_blank",3,"href"],["matButton","",3,"matMenuTriggerFor","active"],[3,"ngTemplateOutlet","ngTemplateOutletContext"],["matButton","",3,"matMenuTriggerFor"],[3,"routeChange","items","parentRoute","level"],[1,"menu-icon"],[1,"menu-name"],[3,"class"],[1,"menu-caret"]],template:function(r,o){if(r&1&&(h(0,"nav",3),xt(1,Tge,1,2,null,4,Hi),me(3,"async"),p(),k(4,"mat-tab-nav-panel",null,0),R(6,Rge,8,7,"ng-template",null,1,_i)),r&2){let a=Se(5);y("tabPanel",a),g(),Ct(Oe(3,1,o.menu.getAll()))}},dependencies:[Fn,Nn,zd,ze,kt,ot,mt,Ls,Ns,rp,PI,V8,xc,Ih,wr,q8,rn,Cr],styles:[`.matero-topmenu{--mat-tab-divider-height: 0;--mat-button-text-label-text-color: var(--topmenu-text-color);position:sticky;z-index:200;display:block;padding:.5rem;background-color:var(--topmenu-background-color);-webkit-backdrop-filter:blur(8px);backdrop-filter:blur(8px)}.matero-topmenu .mat-mdc-button{padding:0 1rem;white-space:nowrap}.matero-topmenu .mat-mdc-button.active{background-color:var(--topmenu-item-active-background-color)}.matero-topmenu .menu-icon,.matero-topmenu .menu-caret,.matero-topmenu .menu-name{vertical-align:middle}.matero-topmenu .mat-icon.menu-icon{width:1.125rem;height:1.125rem;margin-right:.5rem;font-size:1.125rem;line-height:1.125rem}[dir=rtl] .matero-topmenu .mat-icon.menu-icon{margin-right:auto;margin-left:.5rem}.matero-topmenu .mat-icon.menu-caret{margin-right:-.5rem}[dir=rtl] .matero-topmenu .mat-icon.menu-caret{margin-right:auto;margin-left:-.5rem}.matero-topmenu .menu-label,.matero-topmenu .menu-badge{padding:.25rem .5rem;margin-left:.5rem;font-size:.75rem;font-weight:700;line-height:1;color:#fff;background-color:#757575;border-radius:.375rem}[dir=rtl] .matero-topmenu .menu-label,[dir=rtl] .matero-topmenu .menu-badge{margin-right:.5rem;margin-left:auto}.matero-topmenu .menu-badge{border-radius:50rem}.matero-topmenu .mat-tab-nav-bar,.matero-topmenu .mat-tab-header{border-bottom:none}.matero-topmenu-panel .mat-mdc-menu-item.active{color:var(--topmenu-dropdown-item-active-text-color)} -`],encapsulation:2});let t=n;return t})();var Pge=["sidenav"],Fge=["content"];function Nge(t,n){if(t&1){let e=Y();h(0,"app-header",13),S("toggleSidenav",function(){I(e),C();let r=Se(5);return A(r.toggle())})("toggleSidenavNotice",function(){I(e),C();let r=Se(8);return A(r.toggle())}),p()}t&2&&y("showBranding",!0)}function Lge(t,n){if(t&1){let e=Y();h(0,"app-header",14),S("toggleSidenav",function(){I(e),C();let r=Se(5);return A(r.toggle())})("toggleSidenavNotice",function(){I(e),C();let r=Se(8);return A(r.toggle())}),p()}if(t&2){let e=C();y("showToggle",!e.options.sidenavCollapsed&&e.options.navPos!=="top")("showBranding",e.options.navPos==="top")}}function Vge(t,n){t&1&&k(0,"app-topmenu")}var K8="screen and (max-width: 599px)",Z8="screen and (min-width: 600px) and (max-width: 959px)",X8="screen and (min-width: 960px)",J8=(()=>{let n=class n{get themeColor(){return this.settings.getThemeColor()}get isOver(){return this.isMobileScreen}get contentWidthFix(){return this.isContentWidthFixed&&this.options.navPos==="side"&&this.options.sidenavOpened&&!this.isOver}get collapsedWidthFix(){return this.isCollapsedWidthFixed&&(this.options.navPos==="top"||this.options.sidenavOpened&&this.isOver)}constructor(){this.sidenav=qn.required("sidenav"),this.content=qn.required("content"),this.breakpointObserver=u(sl),this.router=u(Re),this.settings=u(aa),this.options=this.settings.options,this.isMobileScreen=!1,this.isContentWidthFixed=!0,this.isCollapsedWidthFixed=!1,this.layoutChangesSubscription=ke.EMPTY,this.layoutChangesSubscription=this.breakpointObserver.observe([K8,Z8,X8]).subscribe(i=>{this.options.sidenavOpened=!0,this.isMobileScreen=i.breakpoints[K8],this.options.sidenavCollapsed=i.breakpoints[Z8],this.isContentWidthFixed=i.breakpoints[X8]}),this.router.events.pipe(ce(i=>i instanceof vi)).subscribe(i=>{this.isOver&&this.sidenav().close(),this.content().scrollTo({top:0})})}ngOnDestroy(){this.layoutChangesSubscription.unsubscribe()}toggleCollapsed(){this.isContentWidthFixed=!1,this.options.sidenavCollapsed=!this.options.sidenavCollapsed,this.resetCollapsedState()}resetCollapsedState(i=400){setTimeout(()=>{this.settings.setOptions(this.options)},i)}onSidenavClosedStart(){this.isContentWidthFixed=!1}onSidenavOpenedChange(i){this.isCollapsedWidthFixed=!this.isOver,this.options.sidenavOpened=i,this.settings.setOptions(this.options)}updateOptions(i){this.options=i,this.settings.setOptions(i),this.settings.setDirection(),this.settings.setTheme()}};n.\u0275fac=function(r){return new(r||n)},n.\u0275cmp=E({type:n,selectors:[["app-admin-layout"]],viewQuery:function(r,o){r&1&&(Pn(o.sidenav,Pge,5),Pn(o.content,Fge,5)),r&2&&Ho(2)},hostVars:4,hostBindings:function(r,o){r&2&&G("matero-content-width-fix",o.contentWidthFix)("matero-sidenav-collapsed-fix",o.collapsedWidthFix)},decls:16,vars:20,consts:[["sidenav",""],["sidenavNotice",""],["content",""],[1,"matero-container-wrap",3,"dir"],["ngProgressRouter",""],[3,"showBranding"],["autosize","","autoFocus","",1,"matero-container"],[1,"matero-sidenav",3,"openedChange","closedStart","mode","opened"],[3,"toggleCollapsed","closeSidenav","showToggle","showUser","showHeader","toggleChecked"],["position","end","mode","over"],[1,"matero-content"],[3,"showToggle","showBranding"],[1,"matero-page-content"],[3,"toggleSidenav","toggleSidenavNotice","showBranding"],[3,"toggleSidenav","toggleSidenavNotice","showToggle","showBranding"]],template:function(r,o){if(r&1){let a=Y();h(0,"div",3),k(1,"ng-progress",4),N(2,Nge,1,1,"app-header",5),h(3,"mat-sidenav-container",6)(4,"mat-sidenav",7,0),S("openedChange",function(l){return I(a),A(o.onSidenavOpenedChange(l))})("closedStart",function(){return I(a),A(o.onSidenavClosedStart())}),h(6,"app-sidebar",8),S("toggleCollapsed",function(){return I(a),A(o.toggleCollapsed())})("closeSidenav",function(){I(a);let l=Se(5);return A(l.close())}),p()(),h(7,"mat-sidenav",9,1),k(9,"app-sidebar-notice"),p(),h(10,"mat-sidenav-content",10,2),N(12,Lge,1,2,"app-header",11),N(13,Vge,1,0,"app-topmenu"),h(14,"main",12),k(15,"router-outlet"),p()()()()}r&2&&(G("matero-sidenav-collapsed",o.options.sidenavCollapsed&&o.options.navPos!=="top")("matero-navbar-side",o.options.navPos==="side")("matero-navbar-top",o.options.navPos==="top")("matero-header-above",o.options.headerPos==="above")("matero-header-fixed",o.options.headerPos==="fixed"),y("dir",o.options.dir),g(2),L(o.options.showHeader&&o.options.headerPos==="above"?2:-1),g(2),y("mode",o.isOver?"over":"side")("opened",o.options.navPos==="side"&&o.options.sidenavOpened&&!o.isOver),g(2),y("showToggle",!o.isOver)("showUser",!!o.options.showUserPanel)("showHeader",o.options.headerPos!=="above")("toggleChecked",!!o.options.sidenavCollapsed),g(6),L(o.options.showHeader&&o.options.headerPos!=="above"?12:-1),g(),L(o.options.navPos==="top"?13:-1))},dependencies:[ol,vs,HL,i8,MI,t8,GC,r8,a8,w8,Q8,W8,B8],styles:[`.matero-container-wrap,.matero-container{--mat-sidenav-content-background-color: transparent;height:100%}.matero-sidenav{--mat-sidenav-container-width: var(--sidenav-width);position:absolute;overflow-x:hidden;border-width:0!important;transition-property:transform,width!important}.matero-header-above .matero-container{height:calc(100% - var(--mat-toolbar-standard-height))!important}@media (max-width: 599px){.matero-header-above .matero-container{height:calc(100% - var(--mat-toolbar-mobile-height))!important}}.matero-header-above .matero-sidebar-main{height:100%!important;padding-top:.5rem}.matero-sidenav-collapsed .matero-sidenav,.matero-sidenav-collapsed-fix .matero-sidenav{width:var(--sidenav-collapsed-width)}.matero-sidenav-collapsed .matero-sidenav .menu-name,.matero-sidenav-collapsed .matero-sidenav .menu-label,.matero-sidenav-collapsed .matero-sidenav .menu-badge,.matero-sidenav-collapsed .matero-sidenav .menu-caret,.matero-sidenav-collapsed .matero-sidenav .matero-user-panel-info,.matero-sidenav-collapsed-fix .matero-sidenav .menu-name,.matero-sidenav-collapsed-fix .matero-sidenav .menu-label,.matero-sidenav-collapsed-fix .matero-sidenav .menu-badge,.matero-sidenav-collapsed-fix .matero-sidenav .menu-caret,.matero-sidenav-collapsed-fix .matero-sidenav .matero-user-panel-info{opacity:0}.matero-sidenav-collapsed .matero-sidenav .menu-icon.submenu-icon,.matero-sidenav-collapsed-fix .matero-sidenav .menu-icon.submenu-icon{opacity:1}.matero-sidenav-collapsed .matero-sidenav .matero-user-panel-avatar,.matero-sidenav-collapsed-fix .matero-sidenav .matero-user-panel-avatar{transform:scale(.5)}.matero-sidenav-collapsed .matero-sidenav:hover,.matero-sidenav-collapsed-fix .matero-sidenav:hover{width:var(--sidenav-width)}.matero-sidenav-collapsed .matero-sidenav:hover .menu-name,.matero-sidenav-collapsed .matero-sidenav:hover .menu-label,.matero-sidenav-collapsed .matero-sidenav:hover .menu-badge,.matero-sidenav-collapsed .matero-sidenav:hover .menu-caret,.matero-sidenav-collapsed .matero-sidenav:hover .matero-user-panel-info,.matero-sidenav-collapsed-fix .matero-sidenav:hover .menu-name,.matero-sidenav-collapsed-fix .matero-sidenav:hover .menu-label,.matero-sidenav-collapsed-fix .matero-sidenav:hover .menu-badge,.matero-sidenav-collapsed-fix .matero-sidenav:hover .menu-caret,.matero-sidenav-collapsed-fix .matero-sidenav:hover .matero-user-panel-info{opacity:1}.matero-sidenav-collapsed .matero-sidenav:hover .menu-icon.submenu-icon,.matero-sidenav-collapsed-fix .matero-sidenav:hover .menu-icon.submenu-icon{opacity:0}.matero-sidenav-collapsed .matero-sidenav:hover .matero-user-panel-avatar,.matero-sidenav-collapsed-fix .matero-sidenav:hover .matero-user-panel-avatar{transform:scale(1)}.matero-sidenav-collapsed .matero-content{margin-left:var(--sidenav-collapsed-width)!important}[dir=rtl] .matero-sidenav-collapsed .matero-content,.matero-sidenav-collapsed[dir=rtl] .matero-content{margin-right:var(--sidenav-collapsed-width)!important;margin-left:auto!important}.matero-navbar-top .matero-topmenu{top:0}.matero-navbar-top .matero-branding{margin-left:1rem}[dir=rtl] .matero-navbar-top .matero-branding{margin-right:1rem;margin-left:auto}.matero-header-fixed .matero-header{position:sticky;top:0}.matero-header-fixed .matero-topmenu{top:var(--mat-toolbar-standard-height)}@media (max-width: 599px){.matero-header-fixed .matero-topmenu{top:var(--mat-toolbar-mobile-height)}}.matero-content-width-fix .matero-content{margin-left:var(--sidenav-width)!important}[dir=rtl] .matero-content-width-fix .matero-content{margin-right:var(--sidenav-width)!important;margin-left:auto!important}.matero-page-content{position:relative;padding:var(--gutter)}.matero-header+.matero-page-content,.matero-header-above .matero-page-content,.matero-navbar-top .matero-page-content{padding-top:0} -`],encapsulation:2});let t=n;return t})();var eU=(()=>{let n=class n{};n.\u0275fac=function(r){return new(r||n)},n.\u0275cmp=E({type:n,selectors:[["app-auth-layout"]],decls:2,vars:0,consts:[[1,"matero-auth-container"]],template:function(r,o){r&1&&(h(0,"div",0),k(1,"router-outlet"),p())},dependencies:[ol],styles:[`.matero-auth-container{position:relative;display:flex;justify-content:center;min-height:100%;background-image:radial-gradient(at 97% 21%,hsla(125,98%,72%,.3) 0,transparent 50%),radial-gradient(at 52% 99%,hsla(354,98%,61%,.3) 0,transparent 50%),radial-gradient(at 10% 29%,hsla(256,96%,67%,.3) 0,transparent 50%),radial-gradient(at 97% 96%,hsla(38,60%,74%,.3) 0,transparent 50%),radial-gradient(at 33% 50%,hsla(222,67%,73%,.3) 0,transparent 50%),radial-gradient(at 79% 53%,hsla(343,68%,79%,.3) 0,transparent 50%)} -`],encapsulation:2});let t=n;return t})();var Bge=["determinateSpinner"];function jge(t,n){if(t&1&&(Gt(),h(0,"svg",11),k(1,"circle",12),p()),t&2){let e=C();X("viewBox",e._viewBox()),g(),Dt("stroke-dasharray",e._strokeCircumference(),"px")("stroke-dashoffset",e._strokeCircumference()/2,"px")("stroke-width",e._circleStrokeWidth(),"%"),X("r",e._circleRadius())}}var Hge=new T("mat-progress-spinner-default-options",{providedIn:"root",factory:zge});function zge(){return{diameter:tU}}var tU=100,Uge=10,ki=(()=>{class t{_elementRef=u(q);_noopAnimations;get color(){return this._color||this._defaultColor}set color(e){this._color=e}_color;_defaultColor="primary";_determinateCircle;constructor(){let e=u(Hge),i=pk(),r=this._elementRef.nativeElement;this._noopAnimations=i==="di-disabled"&&!!e&&!e._forceAnimations,this.mode=r.nodeName.toLowerCase()==="mat-spinner"?"indeterminate":"determinate",!this._noopAnimations&&i==="reduced-motion"&&r.classList.add("mat-progress-spinner-reduced-motion"),e&&(e.color&&(this.color=this._defaultColor=e.color),e.diameter&&(this.diameter=e.diameter),e.strokeWidth&&(this.strokeWidth=e.strokeWidth))}mode;get value(){return this.mode==="determinate"?this._value:0}set value(e){this._value=Math.max(0,Math.min(100,e||0))}_value=0;get diameter(){return this._diameter}set diameter(e){this._diameter=e||0}_diameter=tU;get strokeWidth(){return this._strokeWidth??this.diameter/10}set strokeWidth(e){this._strokeWidth=e||0}_strokeWidth;_circleRadius(){return(this.diameter-Uge)/2}_viewBox(){let e=this._circleRadius()*2+this.strokeWidth;return`0 0 ${e} ${e}`}_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(i){return new(i||t)};static \u0275cmp=E({type:t,selectors:[["mat-progress-spinner"],["mat-spinner"]],viewQuery:function(i,r){if(i&1&&ie(Bge,5),i&2){let o;B(o=j())&&(r._determinateCircle=o.first)}},hostAttrs:["role","progressbar","tabindex","-1",1,"mat-mdc-progress-spinner","mdc-circular-progress"],hostVars:18,hostBindings:function(i,r){i&2&&(X("aria-valuemin",0)("aria-valuemax",100)("aria-valuenow",r.mode==="determinate"?r.value:null)("mode",r.mode),it("mat-"+r.color),Dt("width",r.diameter,"px")("height",r.diameter,"px")("--mat-progress-spinner-size",r.diameter+"px")("--mat-progress-spinner-active-indicator-width",r.diameter+"px"),G("_mat-animation-noopable",r._noopAnimations)("mdc-circular-progress--indeterminate",r.mode==="indeterminate"))},inputs:{color:"color",mode:"mode",value:[2,"value","value",ct],diameter:[2,"diameter","diameter",ct],strokeWidth:[2,"strokeWidth","strokeWidth",ct]},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(i,r){if(i&1&&(R(0,jge,2,8,"ng-template",null,0,_i),h(2,"div",2,1),Gt(),h(4,"svg",3),k(5,"circle",4),p()(),jo(),h(6,"div",5)(7,"div",6)(8,"div",7),Ge(9,8),p(),h(10,"div",9),Ge(11,8),p(),h(12,"div",10),Ge(13,8),p()()()),i&2){let o=Se(1);g(4),X("viewBox",r._viewBox()),g(),Dt("stroke-dasharray",r._strokeCircumference(),"px")("stroke-dashoffset",r._strokeDashOffset(),"px")("stroke-width",r._circleStrokeWidth(),"%"),X("r",r._circleRadius()),g(4),y("ngTemplateOutlet",o),g(2),y("ngTemplateOutlet",o),g(2),y("ngTemplateOutlet",o)}},dependencies:[Fn],styles:[`.mat-mdc-progress-spinner{--mat-progress-spinner-animation-multiplier: 1;display:block;overflow:hidden;line-height:0;position:relative;direction:ltr;transition:opacity 250ms cubic-bezier(0.4, 0, 0.6, 1)}.mat-mdc-progress-spinner circle{stroke-width:var(--mat-progress-spinner-active-indicator-width, 4px)}.mat-mdc-progress-spinner._mat-animation-noopable,.mat-mdc-progress-spinner._mat-animation-noopable .mdc-circular-progress__determinate-circle{transition:none !important}.mat-mdc-progress-spinner._mat-animation-noopable .mdc-circular-progress__indeterminate-circle-graphic,.mat-mdc-progress-spinner._mat-animation-noopable .mdc-circular-progress__spinner-layer,.mat-mdc-progress-spinner._mat-animation-noopable .mdc-circular-progress__indeterminate-container{animation:none !important}.mat-mdc-progress-spinner._mat-animation-noopable .mdc-circular-progress__indeterminate-container circle{stroke-dasharray:0 !important}@media(forced-colors: active){.mat-mdc-progress-spinner .mdc-circular-progress__indeterminate-circle-graphic,.mat-mdc-progress-spinner .mdc-circular-progress__determinate-circle{stroke:currentColor;stroke:CanvasText}}.mat-progress-spinner-reduced-motion{--mat-progress-spinner-animation-multiplier: 1.25}.mdc-circular-progress__determinate-container,.mdc-circular-progress__indeterminate-circle-graphic,.mdc-circular-progress__indeterminate-container,.mdc-circular-progress__spinner-layer{position:absolute;width:100%;height:100%}.mdc-circular-progress__determinate-container{transform:rotate(-90deg)}.mdc-circular-progress--indeterminate .mdc-circular-progress__determinate-container{opacity:0}.mdc-circular-progress__indeterminate-container{font-size:0;letter-spacing:0;white-space:nowrap;opacity:0}.mdc-circular-progress--indeterminate .mdc-circular-progress__indeterminate-container{opacity:1;animation:mdc-circular-progress-container-rotate calc(1568.2352941176ms*var(--mat-progress-spinner-animation-multiplier)) linear infinite}.mdc-circular-progress__determinate-circle-graphic,.mdc-circular-progress__indeterminate-circle-graphic{fill:rgba(0,0,0,0)}.mat-mdc-progress-spinner .mdc-circular-progress__determinate-circle,.mat-mdc-progress-spinner .mdc-circular-progress__indeterminate-circle-graphic{stroke:var(--mat-progress-spinner-active-indicator-color, var(--mat-sys-primary))}@media(forced-colors: active){.mat-mdc-progress-spinner .mdc-circular-progress__determinate-circle,.mat-mdc-progress-spinner .mdc-circular-progress__indeterminate-circle-graphic{stroke:CanvasText}}.mdc-circular-progress__determinate-circle{transition:stroke-dashoffset 500ms cubic-bezier(0, 0, 0.2, 1)}.mdc-circular-progress__gap-patch{position:absolute;top:0;left:47.5%;box-sizing:border-box;width:5%;height:100%;overflow:hidden}.mdc-circular-progress__gap-patch .mdc-circular-progress__indeterminate-circle-graphic{left:-900%;width:2000%;transform:rotate(180deg)}.mdc-circular-progress__circle-clipper .mdc-circular-progress__indeterminate-circle-graphic{width:200%}.mdc-circular-progress__circle-right .mdc-circular-progress__indeterminate-circle-graphic{left:-100%}.mdc-circular-progress--indeterminate .mdc-circular-progress__circle-left .mdc-circular-progress__indeterminate-circle-graphic{animation:mdc-circular-progress-left-spin calc(1333ms*var(--mat-progress-spinner-animation-multiplier)) cubic-bezier(0.4, 0, 0.2, 1) infinite both}.mdc-circular-progress--indeterminate .mdc-circular-progress__circle-right .mdc-circular-progress__indeterminate-circle-graphic{animation:mdc-circular-progress-right-spin calc(1333ms*var(--mat-progress-spinner-animation-multiplier)) cubic-bezier(0.4, 0, 0.2, 1) infinite both}.mdc-circular-progress__circle-clipper{display:inline-flex;position:relative;width:50%;height:100%;overflow:hidden}.mdc-circular-progress--indeterminate .mdc-circular-progress__spinner-layer{animation:mdc-circular-progress-spinner-layer-rotate calc(5332ms*var(--mat-progress-spinner-animation-multiplier)) cubic-bezier(0.4, 0, 0.2, 1) infinite both}@keyframes mdc-circular-progress-container-rotate{to{transform:rotate(360deg)}}@keyframes mdc-circular-progress-spinner-layer-rotate{12.5%{transform:rotate(135deg)}25%{transform:rotate(270deg)}37.5%{transform:rotate(405deg)}50%{transform:rotate(540deg)}62.5%{transform:rotate(675deg)}75%{transform:rotate(810deg)}87.5%{transform:rotate(945deg)}100%{transform:rotate(1080deg)}}@keyframes mdc-circular-progress-left-spin{from{transform:rotate(265deg)}50%{transform:rotate(130deg)}to{transform:rotate(265deg)}}@keyframes mdc-circular-progress-right-spin{from{transform:rotate(-265deg)}50%{transform:rotate(-130deg)}to{transform:rotate(-265deg)}} -`],encapsulation:2,changeDetection:0})}return t})();var Si=(()=>{class t{static \u0275fac=function(i){return new(i||t)};static \u0275mod=ee({type:t});static \u0275inj=J({imports:[we]})}return t})();function $ge(t,n){if(t&1){let e=Y();h(0,"div",1)(1,"button",2),S("click",function(){I(e);let r=C();return A(r.action())}),_(2),p()()}if(t&2){let e=C();g(2),ve(" ",e.data.action," ")}}var Wge=["label"];function Gge(t,n){}var qge=Math.pow(2,31)-1,b_=class{_overlayRef;instance;containerInstance;_afterDismissed=new z;_afterOpened=new z;_onAction=new z;_durationTimeoutId;_dismissedByAction=!1;constructor(n,e){this._overlayRef=e,this.containerInstance=n,n._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(n){this._durationTimeoutId=setTimeout(()=>this.dismiss(),Math.min(n,qge))}_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}},iU=new T("MatSnackBarData"),op=class{politeness="polite";announcementMessage="";viewContainerRef;duration=0;panelClass;direction;data=null;horizontalPosition="center";verticalPosition="bottom"},Yge=(()=>{class t{static \u0275fac=function(i){return new(i||t)};static \u0275dir=F({type:t,selectors:[["","matSnackBarLabel",""]],hostAttrs:[1,"mat-mdc-snack-bar-label","mdc-snackbar__label"]})}return t})(),Qge=(()=>{class t{static \u0275fac=function(i){return new(i||t)};static \u0275dir=F({type:t,selectors:[["","matSnackBarActions",""]],hostAttrs:[1,"mat-mdc-snack-bar-actions","mdc-snackbar__actions"]})}return t})(),Kge=(()=>{class t{static \u0275fac=function(i){return new(i||t)};static \u0275dir=F({type:t,selectors:[["","matSnackBarAction",""]],hostAttrs:[1,"mat-mdc-snack-bar-action","mdc-snackbar__action"]})}return t})(),nU=(()=>{class t{snackBarRef=u(b_);data=u(iU);constructor(){}action(){this.snackBarRef.dismissWithAction()}get hasAction(){return!!this.data.action}static \u0275fac=function(i){return new(i||t)};static \u0275cmp=E({type:t,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(i,r){i&1&&(h(0,"div",0),_(1),p(),N(2,$ge,3,1,"div",1)),i&2&&(g(),ve(" ",r.data.message,` -`),g(),L(r.hasAction?2:-1))},dependencies:[kt,Yge,Qge,Kge],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 t})(),LI="_mat-snack-bar-enter",VI="_mat-snack-bar-exit",Zge=(()=>{class t extends dc{_ngZone=u(ae);_elementRef=u(q);_changeDetectorRef=u(ye);_platform=u(qe);_animationsDisabled=Ye();snackBarConfig=u(op);_document=u(ge);_trackedModals=new Set;_enterFallback;_exitFallback;_injector=u(de);_announceDelay=150;_announceTimeoutId;_destroyed=!1;_portalOutlet;_onAnnounce=new z;_onExit=new z;_onEnter=new z;_animationState="void";_live;_label;_role;_liveElementId=u(Ze).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 i=this._portalOutlet.attachComponentPortal(e);return this._afterPortalAttached(),i}attachTemplatePortal(e){this._assertNotAttached();let i=this._portalOutlet.attachTemplatePortal(e);return this._afterPortalAttached(),i}attachDomPortal=e=>{this._assertNotAttached();let i=this._portalOutlet.attachDomPortal(e);return this._afterPortalAttached(),i};onAnimationEnd(e){e===VI?this._completeExit():e===LI&&(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?pt(()=>{this._ngZone.run(()=>queueMicrotask(()=>this.onAnimationEnd(LI)))},{injector:this._injector}):(clearTimeout(this._enterFallback),this._enterFallback=setTimeout(()=>{this._elementRef.nativeElement.classList.add("mat-snack-bar-fallback-visible"),this.onAnimationEnd(LI)},200)))}exit(){return this._destroyed?Q(void 0):(this._ngZone.run(()=>{this._animationState="hidden",this._changeDetectorRef.markForCheck(),this._elementRef.nativeElement.setAttribute("mat-exit",""),clearTimeout(this._announceTimeoutId),this._animationsDisabled?pt(()=>{this._ngZone.run(()=>queueMicrotask(()=>this.onAnimationEnd(VI)))},{injector:this._injector}):(clearTimeout(this._exitFallback),this._exitFallback=setTimeout(()=>this.onAnimationEnd(VI),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,i=this.snackBarConfig.panelClass;i&&(Array.isArray(i)?i.forEach(a=>e.classList.add(a)):e.classList.add(i)),this._exposeToModals();let r=this._label.nativeElement,o="mdc-snackbar__label";r.classList.toggle(o,!r.querySelector(`.${o}`))}_exposeToModals(){let e=this._liveElementId,i=this._document.querySelectorAll('body > .cdk-overlay-container [aria-modal="true"]');for(let r=0;r{let i=e.getAttribute("aria-owns");if(i){let r=i.replace(this._liveElementId,"").trim();r.length>0?e.setAttribute("aria-owns",r):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,i=e.querySelector("[aria-hidden]"),r=e.querySelector("[aria-live]");if(i&&r){let o=null;this._platform.isBrowser&&document.activeElement instanceof HTMLElement&&i.contains(document.activeElement)&&(o=document.activeElement),i.removeAttribute("aria-hidden"),r.appendChild(i),o?.focus(),this._onAnnounce.next(),this._onAnnounce.complete()}},this._announceDelay)})}static \u0275fac=function(i){return new(i||t)};static \u0275cmp=E({type:t,selectors:[["mat-snack-bar-container"]],viewQuery:function(i,r){if(i&1&&(ie(yr,7),ie(Wge,7)),i&2){let o;B(o=j())&&(r._portalOutlet=o.first),B(o=j())&&(r._label=o.first)}},hostAttrs:[1,"mdc-snackbar","mat-mdc-snack-bar-container"],hostVars:6,hostBindings:function(i,r){i&1&&S("animationend",function(a){return r.onAnimationEnd(a.animationName)})("animationcancel",function(a){return r.onAnimationEnd(a.animationName)}),i&2&&G("mat-snack-bar-container-enter",r._animationState==="visible")("mat-snack-bar-container-exit",r._animationState==="hidden")("mat-snack-bar-container-animations-enabled",!r._animationsDisabled)},features:[le],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(i,r){i&1&&(h(0,"div",1)(1,"div",2,0)(3,"div",3),R(4,Gge,0,0,"ng-template",4),p(),k(5,"div"),p()()),i&2&&(g(5),X("aria-live",r._live)("role",r._role)("id",r._liveElementId))},dependencies:[yr],styles:[`@keyframes _mat-snack-bar-enter{from{transform:scale(0.8);opacity:0}to{transform:scale(1);opacity:1}}@keyframes _mat-snack-bar-exit{from{opacity:1}to{opacity:0}}.mat-mdc-snack-bar-container{display:flex;align-items:center;justify-content:center;box-sizing:border-box;-webkit-tap-highlight-color:rgba(0,0,0,0);margin:8px}.mat-mdc-snack-bar-handset .mat-mdc-snack-bar-container{width:100vw}.mat-snack-bar-container-animations-enabled{opacity:0}.mat-snack-bar-container-animations-enabled.mat-snack-bar-fallback-visible{opacity:1}.mat-snack-bar-container-animations-enabled.mat-snack-bar-container-enter{animation:_mat-snack-bar-enter 150ms cubic-bezier(0, 0, 0.2, 1) forwards}.mat-snack-bar-container-animations-enabled.mat-snack-bar-container-exit{animation:_mat-snack-bar-exit 75ms cubic-bezier(0.4, 0, 1, 1) forwards}.mat-mdc-snackbar-surface{box-shadow:0px 3px 5px -1px rgba(0, 0, 0, 0.2), 0px 6px 10px 0px rgba(0, 0, 0, 0.14), 0px 1px 18px 0px rgba(0, 0, 0, 0.12);display:flex;align-items:center;justify-content:flex-start;box-sizing:border-box;padding-left:0;padding-right:8px}[dir=rtl] .mat-mdc-snackbar-surface{padding-right:0;padding-left:8px}.mat-mdc-snack-bar-container .mat-mdc-snackbar-surface{min-width:344px;max-width:672px}.mat-mdc-snack-bar-handset .mat-mdc-snackbar-surface{width:100%;min-width:0}@media(forced-colors: active){.mat-mdc-snackbar-surface{outline:solid 1px}}.mat-mdc-snack-bar-container .mat-mdc-snackbar-surface{color:var(--mat-snack-bar-supporting-text-color, var(--mat-sys-inverse-on-surface));border-radius:var(--mat-snack-bar-container-shape, var(--mat-sys-corner-extra-small));background-color:var(--mat-snack-bar-container-color, var(--mat-sys-inverse-surface))}.mdc-snackbar__label{width:100%;flex-grow:1;box-sizing:border-box;margin:0;padding:14px 8px 14px 16px}[dir=rtl] .mdc-snackbar__label{padding-left:8px;padding-right:16px}.mat-mdc-snack-bar-container .mdc-snackbar__label{font-family:var(--mat-snack-bar-supporting-text-font, var(--mat-sys-body-medium-font));font-size:var(--mat-snack-bar-supporting-text-size, var(--mat-sys-body-medium-size));font-weight:var(--mat-snack-bar-supporting-text-weight, var(--mat-sys-body-medium-weight));line-height:var(--mat-snack-bar-supporting-text-line-height, var(--mat-sys-body-medium-line-height))}.mat-mdc-snack-bar-actions{display:flex;flex-shrink:0;align-items:center;box-sizing:border-box}.mat-mdc-snack-bar-handset,.mat-mdc-snack-bar-container,.mat-mdc-snack-bar-label{flex:1 1 auto}.mat-mdc-snack-bar-container .mat-mdc-button.mat-mdc-snack-bar-action:not(:disabled){--mat-button-text-state-layer-color: currentColor;--mat-button-text-ripple-color: currentColor}.mat-mdc-snack-bar-container .mat-mdc-button.mat-mdc-snack-bar-action:not(:disabled).mat-unthemed{color:var(--mat-snack-bar-button-color, var(--mat-sys-inverse-primary))}.mat-mdc-snack-bar-container .mat-mdc-button.mat-mdc-snack-bar-action:not(:disabled) .mat-ripple-element{opacity:.1} -`],encapsulation:2})}return t})();function Xge(){return new op}var Jge=new T("mat-snack-bar-default-options",{providedIn:"root",factory:Xge}),di=(()=>{class t{_live=u(Gf);_injector=u(de);_breakpointObserver=u(sl);_parentSnackBar=u(t,{optional:!0,skipSelf:!0});_defaultConfig=u(Jge);_animationsDisabled=Ye();_snackBarRefAtThisLevel=null;simpleSnackBarComponent=nU;snackBarContainerComponent=Zge;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,i){return this._attach(e,i)}openFromTemplate(e,i){return this._attach(e,i)}open(e,i="",r){let o=M(M({},this._defaultConfig),r);return o.data={message:e,action:i},o.announcementMessage===e&&(o.announcementMessage=void 0),this.openFromComponent(this.simpleSnackBarComponent,o)}dismiss(){this._openedSnackBarRef&&this._openedSnackBarRef.dismiss()}ngOnDestroy(){this._snackBarRefAtThisLevel&&this._snackBarRefAtThisLevel.dismiss()}_attachSnackBarContainer(e,i){let r=i&&i.viewContainerRef&&i.viewContainerRef.injector,o=de.create({parent:r||this._injector,providers:[{provide:op,useValue:i}]}),a=new Zr(this.snackBarContainerComponent,i.viewContainerRef,o),s=e.attach(a);return s.instance.snackBarConfig=i,s.instance}_attach(e,i){let r=M(M(M({},new op),this._defaultConfig),i),o=this._createOverlay(r),a=this._attachSnackBarContainer(o,r),s=new b_(a,o);if(e instanceof te){let l=new Cn(e,null,{$implicit:r.data,snackBarRef:s});s.instance=a.attachTemplatePortal(l)}else{let l=this._createInjector(r,s),c=new Zr(e,void 0,l),d=a.attachComponentPortal(c);s.instance=d.instance}return this._breakpointObserver.observe(F0.HandsetPortrait).pipe(Te(o.detachments())).subscribe(l=>{o.overlayElement.classList.toggle(this.handsetCssClass,l.matches)}),r.announcementMessage&&a._onAnnounce.subscribe(()=>{this._live.announce(r.announcementMessage,r.politeness)}),this._animateSnackBar(s,r),this._openedSnackBarRef=s,this._openedSnackBarRef}_animateSnackBar(e,i){e.afterDismissed().subscribe(()=>{this._openedSnackBarRef==e&&(this._openedSnackBarRef=null),i.announcementMessage&&this._live.clear()}),i.duration&&i.duration>0&&e.afterOpened().subscribe(()=>e._dismissAfter(i.duration)),this._openedSnackBarRef?(this._openedSnackBarRef.afterDismissed().subscribe(()=>{e.containerInstance.enter()}),this._openedSnackBarRef.dismiss()):e.containerInstance.enter()}_createOverlay(e){let i=new Fr;i.direction=e.direction;let r=Ds(this._injector),o=e.direction==="rtl",a=e.horizontalPosition==="left"||e.horizontalPosition==="start"&&!o||e.horizontalPosition==="end"&&o,s=!a&&e.horizontalPosition!=="center";return a?r.left("0"):s?r.right("0"):r.centerHorizontally(),e.verticalPosition==="top"?r.top("0"):r.bottom("0"),i.positionStrategy=r,i.disableAnimations=this._animationsDisabled,Nr(this._injector,i)}_createInjector(e,i){let r=e&&e.viewContainerRef&&e.viewContainerRef.injector;return de.create({parent:r||this._injector,providers:[{provide:b_,useValue:i},{provide:iU,useValue:e.data}]})}static \u0275fac=function(i){return new(i||t)};static \u0275prov=O({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();var pi=(()=>{class t{static \u0275fac=function(i){return new(i||t)};static \u0275mod=ee({type:t});static \u0275inj=J({providers:[di],imports:[er,Co,ze,we,nU,we]})}return t})();var Un=(()=>{let n=class n{constructor(){this.authService=u(Tt),this.templateRef=u(te),this.viewContainer=u(nt)}set appHasRole(i){this.updateView(i)}ngOnInit(){this.subscription=this.authService.isAuthenticated$.subscribe(()=>{let i=this.roles;i&&this.updateView(i)})}ngOnDestroy(){this.subscription?.unsubscribe()}updateView(i){this.roles=i,this.viewContainer.clear(),this.checkRole(i)&&this.viewContainer.createEmbeddedView(this.templateRef)}checkRole(i){return this.authService.isAuthenticated()?typeof i=="string"?this.authService.hasRole(i):Array.isArray(i)?this.authService.hasAnyRole(i):!1:!1}};n.\u0275fac=function(r){return new(r||n)},n.\u0275dir=F({type:n,selectors:[["","appHasRole",""]],inputs:{appHasRole:"appHasRole"}});let t=n;return t})();var da=class{constructor(){this.http=u(Yr),this.apiUrl=ko.apiUrl}getAll(n){let e=this.buildHttpParams(n);return this.http.get(`${this.apiUrl}/${this.endpoint}`,{params:e}).pipe(se(i=>i.value))}getAllPaged(n){let e=this.buildHttpParams(n);return this.http.get(`${this.apiUrl}/${this.endpoint}`,{params:e})}getById(n){return this.http.get(`${this.apiUrl}/${this.endpoint}/${n}`).pipe(se(e=>e.value))}create(n){return this.http.post(`${this.apiUrl}/${this.endpoint}`,n).pipe(se(e=>e&&"value"in e&&typeof e.value=="string"?{id:e.value}:e))}update(n,e){return this.http.put(`${this.apiUrl}/${this.endpoint}/${n}`,e)}delete(n){return this.http.delete(`${this.apiUrl}/${this.endpoint}/${n}`)}buildHttpParams(n){let e=new Qn;return n&&Object.keys(n).forEach(i=>{let r=n[i];r!=null&&(e=e.set(i,r.toString()))}),e}};var rU=(()=>{let n=class n extends da{constructor(){super(...arguments),this.endpoint="Dashboard"}getDashboardMetrics(){return this.http.get(`${this.apiUrl}/${this.endpoint}/Metrics`).pipe(se(i=>{if(i.isSuccess&&i.value)return i.value;throw new Error(i.message||"Failed to load dashboard metrics")}))}};n.\u0275fac=(()=>{let i;return function(o){return(i||(i=fe(n)))(o||n)}})(),n.\u0275prov=O({token:n,factory:n.\u0275fac,providedIn:"root"});let t=n;return t})();var Vs=(()=>{let n=class n extends da{constructor(){super(...arguments),this.endpoint="Departments"}createDepartment(i){return this.create(i)}updateDepartment(i){return this.update(i.id,i)}};n.\u0275fac=(()=>{let i;return function(o){return(i||(i=fe(n)))(o||n)}})(),n.\u0275prov=O({token:n,factory:n.\u0275fac,providedIn:"root"});let t=n;return t})();var ap=(()=>{let n=class n extends da{constructor(){super(...arguments),this.endpoint="Employees"}createEmployee(i){return this.create(i)}updateEmployee(i){return this.update(i.id,i)}};n.\u0275fac=(()=>{let i;return function(o){return(i||(i=fe(n)))(o||n)}})(),n.\u0275prov=O({token:n,factory:n.\u0275fac,providedIn:"root"});let t=n;return t})();var Bc=(()=>{let n=class n extends da{constructor(){super(...arguments),this.endpoint="Positions"}createPosition(i){return this.create(i)}updatePosition(i){return this.update(i.id,i)}getAllPaged(i){let r=this.buildHttpParams(i);return this.http.get(`${this.apiUrl}/${this.endpoint}`,{params:r})}addMockPositions(i){return this.http.post(`${this.apiUrl}/${this.endpoint}/AddMock`,i)}};n.\u0275fac=(()=>{let i;return function(o){return(i||(i=fe(n)))(o||n)}})(),n.\u0275prov=O({token:n,factory:n.\u0275fac,providedIn:"root"});let t=n;return t})();var jc=(()=>{let n=class n extends da{constructor(){super(...arguments),this.endpoint="SalaryRanges"}createSalaryRange(i){return this.create(i)}updateSalaryRange(i){return this.update(i.id,i)}};n.\u0275fac=(()=>{let i;return function(o){return(i||(i=fe(n)))(o||n)}})(),n.\u0275prov=O({token:n,factory:n.\u0275fac,providedIn:"root"});let t=n;return t})();var oU=(()=>{let n=class n{decodeToken(i){if(!i)return null;try{let r=i.split(".");if(r.length!==3)return console.warn("Invalid JWT token format"),null;let o=this.decodeBase64Url(r[0]),a=this.decodeBase64Url(r[1]),s=r[2],l=JSON.parse(a),c=l.iat?new Date(l.iat*1e3):void 0,d=l.exp?new Date(l.exp*1e3):void 0,m=new Date,f=d?d24){let s=Math.floor(o/24);return`Expires in ${s} day${s>1?"s":""}`}else return o>0?`Expires in ${o}h ${a}m`:a>0?`Expires in ${a}m`:"Expires soon"}};n.\u0275fac=function(r){return new(r||n)},n.\u0275prov=O({token:n,factory:n.\u0275fac,providedIn:"root"});let t=n;return t})();var e_e=()=>["HRAdmin","Manager"],aU=()=>["HRAdmin"];function t_e(t,n){t&1&&(h(0,"div",3),k(1,"mat-spinner"),p())}function i_e(t,n){if(t&1&&(h(0,"div",21),k(1,"canvas",22),p()),t&2){let e=C(2);g(),y("data",e.departmentChartData)("options",e.departmentChartOptions)}}function n_e(t,n){t&1&&(h(0,"div",23)(1,"mat-icon"),_(2,"pie_chart"),p(),h(3,"p"),_(4,"No department data available"),p()())}function r_e(t,n){if(t&1&&(h(0,"div",21),k(1,"canvas",24),p()),t&2){let e=C(2);g(),y("data",e.positionChartData)("options",e.positionChartOptions)}}function o_e(t,n){t&1&&(h(0,"div",23)(1,"mat-icon"),_(2,"bar_chart"),p(),h(3,"p"),_(4,"No position data available"),p()())}function a_e(t,n){if(t&1&&(h(0,"div",21),k(1,"canvas",25),p()),t&2){let e=C(2);g(),y("data",e.genderChartData)("options",e.genderChartOptions)}}function s_e(t,n){t&1&&(h(0,"div",23)(1,"mat-icon"),_(2,"donut_large"),p(),h(3,"p"),_(4,"No gender data available"),p()())}function l_e(t,n){if(t&1&&(h(0,"div",21),k(1,"canvas",24),p()),t&2){let e=C(2);g(),y("data",e.salaryChartData)("options",e.salaryChartOptions)}}function c_e(t,n){t&1&&(h(0,"div",23)(1,"mat-icon"),_(2,"bar_chart"),p(),h(3,"p"),_(4,"No salary range data available"),p()())}function d_e(t,n){if(t&1){let e=Y();h(0,"mat-list-item",27),S("click",function(){let r=I(e).$implicit,o=C(3);return A(o.navigateToEmployee(r.id))}),h(1,"mat-icon",28),_(2,"person"),p(),h(3,"div",29),_(4),p(),h(5,"div",30),_(6),p(),h(7,"div",31),_(8),me(9,"date"),p()()}if(t&2){let e=n.$implicit;g(4),H(e.fullName),g(2),Od("",e.positionTitle," \u2022 ",e.departmentName),g(2),H(Ni(9,4,e.createdAt,"MMM d, y"))}}function u_e(t,n){if(t&1&&(h(0,"mat-list"),R(1,d_e,10,7,"mat-list-item",26),p()),t&2){let e=C(2);g(),y("ngForOf",e.metrics.recentEmployees)}}function m_e(t,n){t&1&&(h(0,"div",23)(1,"mat-icon"),_(2,"people_outline"),p(),h(3,"p"),_(4,"No recent employees"),p()())}function h_e(t,n){if(t&1){let e=Y();h(0,"button",36),S("click",function(){I(e);let r=C(3);return A(r.navigateToAddDepartment())}),h(1,"mat-icon"),_(2,"add_business"),p(),_(3," Add Department "),p()}}function p_e(t,n){if(t&1){let e=Y();h(0,"button",36),S("click",function(){I(e);let r=C(3);return A(r.navigateToAddPosition())}),h(1,"mat-icon"),_(2,"work_outline"),p(),_(3," Add Position "),p()}}function f_e(t,n){if(t&1){let e=Y();h(0,"div",32)(1,"mat-card")(2,"mat-card-header")(3,"mat-card-title"),_(4,"Quick Actions"),p()(),h(5,"mat-card-content")(6,"div",33)(7,"button",34),S("click",function(){I(e);let r=C(2);return A(r.navigateToAddEmployee())}),h(8,"mat-icon"),_(9,"person_add"),p(),_(10," Add Employee "),p(),R(11,h_e,4,0,"button",35)(12,p_e,4,0,"button",35),p()()()()}t&2&&(g(11),y("appHasRole",at(2,aU)),g(),y("appHasRole",at(3,aU)))}function g_e(t,n){if(t&1){let e=Y();h(0,"div",4)(1,"div",5)(2,"mat-card",6)(3,"mat-card-content")(4,"div",7)(5,"mat-icon"),_(6,"people"),p()(),h(7,"div",8),_(8),p(),h(9,"div",9),_(10,"Total Employees"),p()()(),h(11,"mat-card",6)(12,"mat-card-content")(13,"div",7)(14,"mat-icon"),_(15,"business"),p()(),h(16,"div",8),_(17),p(),h(18,"div",9),_(19,"Departments"),p()()(),h(20,"mat-card",6)(21,"mat-card-content")(22,"div",7)(23,"mat-icon"),_(24,"work"),p()(),h(25,"div",8),_(26),p(),h(27,"div",9),_(28,"Positions"),p()()(),h(29,"mat-card",6)(30,"mat-card-content")(31,"div",7)(32,"mat-icon"),_(33,"attach_money"),p()(),h(34,"div",8),_(35),p(),h(36,"div",9),_(37,"Salary Ranges"),p()()()(),h(38,"div",10)(39,"mat-card",11)(40,"mat-card-content")(41,"div",12)(42,"mat-icon"),_(43,"person_add"),p()(),h(44,"div",8),_(45),p(),h(46,"div",9),_(47,"New Hires This Month"),p()()(),h(48,"mat-card",11)(49,"mat-card-content")(50,"div",12)(51,"mat-icon"),_(52,"payments"),p()(),h(53,"div",8),_(54),me(55,"currency"),p(),h(56,"div",9),_(57,"Average Salary"),p()()()(),h(58,"div",13)(59,"mat-card",14)(60,"mat-card-header")(61,"mat-card-title"),_(62,"Employees by Department"),p()(),h(63,"mat-card-content"),R(64,i_e,2,2,"div",15)(65,n_e,5,0,"div",16),p()(),h(66,"mat-card",14)(67,"mat-card-header")(68,"mat-card-title"),_(69,"Top 10 Positions"),p()(),h(70,"mat-card-content"),R(71,r_e,2,2,"div",15)(72,o_e,5,0,"div",16),p()()(),h(73,"div",13)(74,"mat-card",14)(75,"mat-card-header")(76,"mat-card-title"),_(77,"Gender Distribution"),p()(),h(78,"mat-card-content"),R(79,a_e,2,2,"div",15)(80,s_e,5,0,"div",16),p()(),h(81,"mat-card",14)(82,"mat-card-header")(83,"mat-card-title"),_(84,"Salary Range Distribution"),p()(),h(85,"mat-card-content"),R(86,l_e,2,2,"div",15)(87,c_e,5,0,"div",16),p()()(),h(88,"div",17)(89,"mat-card")(90,"mat-card-header")(91,"mat-card-title"),_(92,"Recent Employees"),p(),h(93,"button",18),S("click",function(){I(e);let r=C();return A(r.navigateToEmployees())}),_(94," View All "),h(95,"mat-icon"),_(96,"arrow_forward"),p()()(),h(97,"mat-card-content"),R(98,u_e,2,1,"mat-list",19)(99,m_e,5,0,"div",16),p()()(),R(100,f_e,13,4,"div",20),p()}if(t&2){let e=C();g(8),H(e.metrics.totalEmployees),g(9),H(e.metrics.totalDepartments),g(9),H(e.metrics.totalPositions),g(9),H(e.metrics.totalSalaryRanges),g(10),H(e.metrics.newHiresThisMonth),g(9),H(Dm(55,17,e.metrics.averageSalary,"USD","symbol","1.0-0")),g(10),y("ngIf",e.departmentChartData),g(),y("ngIf",!e.departmentChartData),g(6),y("ngIf",e.positionChartData),g(),y("ngIf",!e.positionChartData),g(7),y("ngIf",e.genderChartData),g(),y("ngIf",!e.genderChartData),g(6),y("ngIf",e.salaryChartData),g(),y("ngIf",!e.salaryChartData),g(11),y("ngIf",e.metrics.recentEmployees&&e.metrics.recentEmployees.length>0),g(),y("ngIf",!e.metrics.recentEmployees||e.metrics.recentEmployees.length===0),g(),y("appHasRole",at(22,e_e))}}function __e(t,n){if(t&1){let e=Y();h(0,"div",37)(1,"mat-card")(2,"mat-card-content")(3,"div",23)(4,"mat-icon"),_(5,"error_outline"),p(),h(6,"p"),_(7,"Unable to load dashboard data"),p(),h(8,"button",34),S("click",function(){I(e);let r=C();return A(r.loadDashboardMetrics())}),h(9,"mat-icon"),_(10,"refresh"),p(),_(11," Retry "),p()()()()()}}var sU=(()=>{let n=class n{constructor(){this.dashboardService=u(rU),this.router=u(Re),this.snackBar=u(di),this.loading=!0,this.metrics=null,this.departmentChartData=null,this.departmentChartOptions={responsive:!0,maintainAspectRatio:!1,plugins:{legend:{position:"bottom"},tooltip:{callbacks:{label:i=>{let r=i.label||"",o=i.parsed||0;return`${r}: ${o} employees`}}}}},this.positionChartData=null,this.positionChartOptions={responsive:!0,maintainAspectRatio:!1,indexAxis:"y",plugins:{legend:{display:!1},tooltip:{callbacks:{label:i=>`${i.parsed.x} employees`}}},scales:{x:{beginAtZero:!0,ticks:{precision:0}}}},this.genderChartData=null,this.genderChartOptions={responsive:!0,maintainAspectRatio:!1,plugins:{legend:{position:"bottom"},tooltip:{callbacks:{label:i=>{let r=i.label||"",o=i.parsed||0;return`${r}: ${o} employees`}}}}},this.salaryChartData=null,this.salaryChartOptions={responsive:!0,maintainAspectRatio:!1,plugins:{legend:{display:!1},tooltip:{callbacks:{label:i=>`${i.parsed.y} employees`}}},scales:{y:{beginAtZero:!0,ticks:{precision:0}}}}}ngOnInit(){this.loadDashboardMetrics()}loadDashboardMetrics(){this.loading=!0,this.dashboardService.getDashboardMetrics().subscribe({next:i=>{this.metrics=i,this.prepareCharts(i),this.loading=!1},error:i=>{console.error("Error loading dashboard metrics:",i),this.showMessage("Error loading dashboard data"),this.loading=!1}})}prepareCharts(i){this.prepareDepartmentChart(i.employeesByDepartment),this.preparePositionChart(i.employeesByPosition),this.prepareGenderChart(i.genderDistribution),this.prepareSalaryChart(i.employeesBySalaryRange)}prepareDepartmentChart(i){if(!i||i.length===0){this.departmentChartData=null;return}this.departmentChartData={labels:i.map(r=>r.departmentName),datasets:[{data:i.map(r=>r.employeeCount),backgroundColor:["#FF6384","#36A2EB","#FFCE56","#4BC0C0","#9966FF","#FF9F40","#FF6384","#C9CBCF"]}]}}preparePositionChart(i){if(!i||i.length===0){this.positionChartData=null;return}this.positionChartData={labels:i.map(r=>r.positionTitle),datasets:[{label:"Employees",data:i.map(r=>r.employeeCount),backgroundColor:"#36A2EB"}]}}prepareGenderChart(i){if(!i){this.genderChartData=null;return}this.genderChartData={labels:["Male","Female"],datasets:[{data:[i.male,i.female],backgroundColor:["#36A2EB","#FF6384"]}]}}prepareSalaryChart(i){if(!i||i.length===0){this.salaryChartData=null;return}this.salaryChartData={labels:i.map(r=>r.rangeName),datasets:[{label:"Employees",data:i.map(r=>r.employeeCount),backgroundColor:"#4BC0C0"}]}}navigateToAddEmployee(){this.router.navigate(["/employees/create"])}navigateToAddDepartment(){this.router.navigate(["/departments/create"])}navigateToAddPosition(){this.router.navigate(["/positions/create"])}navigateToEmployees(){this.router.navigate(["/employees"])}navigateToEmployee(i){this.router.navigate(["/employees",i])}showMessage(i){this.snackBar.open(i,"Close",{duration:3e3,horizontalPosition:"end",verticalPosition:"top"})}};n.\u0275fac=function(r){return new(r||n)},n.\u0275cmp=E({type:n,selectors:[["app-dashboard"]],decls:4,vars:3,consts:[["class","loading-spinner",4,"ngIf"],["class","dashboard-container",4,"ngIf"],["class","error-state",4,"ngIf"],[1,"loading-spinner"],[1,"dashboard-container"],[1,"metrics-row"],[1,"metric-card"],[1,"metric-icon"],[1,"metric-value"],[1,"metric-label"],[1,"secondary-metrics-row"],[1,"metric-card","secondary"],[1,"metric-icon","secondary"],[1,"charts-row"],[1,"chart-card"],["class","chart-container",4,"ngIf"],["class","no-data",4,"ngIf"],[1,"activity-row"],["mat-button","","color","primary",3,"click"],[4,"ngIf"],["class","actions-row",4,"appHasRole"],[1,"chart-container"],["baseChart","","type","pie",3,"data","options"],[1,"no-data"],["baseChart","","type","bar",3,"data","options"],["baseChart","","type","doughnut",3,"data","options"],["class","clickable-item",3,"click",4,"ngFor","ngForOf"],[1,"clickable-item",3,"click"],["matListItemIcon",""],["matListItemTitle",""],["matListItemLine",""],["matListItemMeta",""],[1,"actions-row"],[1,"action-buttons"],["mat-raised-button","","color","primary",3,"click"],["mat-raised-button","","color","accent",3,"click",4,"appHasRole"],["mat-raised-button","","color","accent",3,"click"],[1,"error-state"]],template:function(r,o){r&1&&(k(0,"page-header"),R(1,t_e,2,0,"div",0)(2,g_e,101,23,"div",1)(3,__e,12,0,"div",2)),r&2&&(g(),y("ngIf",o.loading),g(),y("ngIf",!o.loading&&o.metrics),g(),y("ngIf",!o.loading&&!o.metrics))},dependencies:[gt,qr,li,$t,zt,Ut,Jt,Xt,ot,mt,ze,kt,Si,ki,ca,Fs,la,f_,Tu,Dl,SI,pi,W5,ni,Un,il,Sa],styles:[".loading-spinner[_ngcontent-%COMP%]{display:flex;justify-content:center;align-items:center;min-height:400px}.dashboard-container[_ngcontent-%COMP%]{padding:16px;max-width:1400px;margin:0 auto}.metrics-row[_ngcontent-%COMP%], .secondary-metrics-row[_ngcontent-%COMP%]{display:grid;grid-template-columns:repeat(auto-fit,minmax(200px,1fr));gap:16px;margin-bottom:24px}@media (max-width: 768px){.metrics-row[_ngcontent-%COMP%], .secondary-metrics-row[_ngcontent-%COMP%]{grid-template-columns:repeat(2,1fr)}}@media (max-width: 480px){.metrics-row[_ngcontent-%COMP%], .secondary-metrics-row[_ngcontent-%COMP%]{grid-template-columns:1fr}}.secondary-metrics-row[_ngcontent-%COMP%]{grid-template-columns:repeat(auto-fit,minmax(250px,1fr))}.metric-card[_ngcontent-%COMP%] mat-card-content[_ngcontent-%COMP%]{padding:24px!important;text-align:center}.metric-card[_ngcontent-%COMP%] .metric-icon[_ngcontent-%COMP%]{display:inline-flex;align-items:center;justify-content:center;width:64px;height:64px;border-radius:50%;background-color:#3f51b51a;margin-bottom:16px}.metric-card[_ngcontent-%COMP%] .metric-icon[_ngcontent-%COMP%] mat-icon[_ngcontent-%COMP%]{font-size:32px;width:32px;height:32px;color:#3f51b5}.metric-card[_ngcontent-%COMP%] .metric-icon.secondary[_ngcontent-%COMP%]{background-color:#ff98001a}.metric-card[_ngcontent-%COMP%] .metric-icon.secondary[_ngcontent-%COMP%] mat-icon[_ngcontent-%COMP%]{color:#ff9800}.metric-card[_ngcontent-%COMP%] .metric-value[_ngcontent-%COMP%]{font-size:32px;font-weight:600;color:#000000de;margin-bottom:8px;line-height:1.2}.metric-card[_ngcontent-%COMP%] .metric-label[_ngcontent-%COMP%]{font-size:14px;color:#0009;text-transform:uppercase;letter-spacing:.5px}.metric-card[_ngcontent-%COMP%]:hover{box-shadow:0 4px 8px #00000026;transition:box-shadow .3s ease}.charts-row[_ngcontent-%COMP%]{display:grid;grid-template-columns:repeat(auto-fit,minmax(400px,1fr));gap:24px;margin-bottom:24px}@media (max-width: 900px){.charts-row[_ngcontent-%COMP%]{grid-template-columns:1fr}}.chart-card[_ngcontent-%COMP%] mat-card-header[_ngcontent-%COMP%]{padding:16px 16px 0;margin-bottom:16px}.chart-card[_ngcontent-%COMP%] mat-card-header[_ngcontent-%COMP%] mat-card-title[_ngcontent-%COMP%]{font-size:18px;font-weight:500;margin:0}.chart-card[_ngcontent-%COMP%] mat-card-content[_ngcontent-%COMP%]{padding:0 16px 16px}.chart-card[_ngcontent-%COMP%] .chart-container[_ngcontent-%COMP%]{position:relative;height:300px;width:100%}.chart-card[_ngcontent-%COMP%] .no-data[_ngcontent-%COMP%]{display:flex;flex-direction:column;align-items:center;justify-content:center;min-height:300px;color:#00000061}.chart-card[_ngcontent-%COMP%] .no-data[_ngcontent-%COMP%] mat-icon[_ngcontent-%COMP%]{font-size:48px;width:48px;height:48px;margin-bottom:12px}.chart-card[_ngcontent-%COMP%] .no-data[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{margin:0;font-size:14px}.activity-row[_ngcontent-%COMP%]{margin-bottom:24px}.activity-row[_ngcontent-%COMP%] mat-card-header[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:space-between;padding:16px;border-bottom:1px solid rgba(0,0,0,.12)}.activity-row[_ngcontent-%COMP%] mat-card-header[_ngcontent-%COMP%] mat-card-title[_ngcontent-%COMP%]{font-size:18px;font-weight:500;margin:0}.activity-row[_ngcontent-%COMP%] mat-card-header[_ngcontent-%COMP%] button[_ngcontent-%COMP%] mat-icon[_ngcontent-%COMP%]{margin-left:4px;font-size:18px;width:18px;height:18px}.activity-row[_ngcontent-%COMP%] mat-card-content[_ngcontent-%COMP%]{padding:0}.activity-row[_ngcontent-%COMP%] mat-list[_ngcontent-%COMP%]{padding:0}.activity-row[_ngcontent-%COMP%] mat-list-item[_ngcontent-%COMP%]{height:auto;padding:12px 16px;cursor:pointer;transition:background-color .2s ease}.activity-row[_ngcontent-%COMP%] mat-list-item[_ngcontent-%COMP%]:hover{background-color:#0000000a}.activity-row[_ngcontent-%COMP%] mat-list-item[_ngcontent-%COMP%]:not(:last-child){border-bottom:1px solid rgba(0,0,0,.08)}.activity-row[_ngcontent-%COMP%] mat-list-item[_ngcontent-%COMP%] mat-icon[_ngcontent-%COMP%]{color:#0000008a}.activity-row[_ngcontent-%COMP%] .clickable-item[_ngcontent-%COMP%]{cursor:pointer}.activity-row[_ngcontent-%COMP%] .no-data[_ngcontent-%COMP%]{display:flex;flex-direction:column;align-items:center;justify-content:center;padding:48px 16px;color:#00000061}.activity-row[_ngcontent-%COMP%] .no-data[_ngcontent-%COMP%] mat-icon[_ngcontent-%COMP%]{font-size:48px;width:48px;height:48px;margin-bottom:12px}.activity-row[_ngcontent-%COMP%] .no-data[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{margin:0;font-size:14px}.actions-row[_ngcontent-%COMP%]{margin-bottom:24px}.actions-row[_ngcontent-%COMP%] mat-card-header[_ngcontent-%COMP%]{padding:16px;border-bottom:1px solid rgba(0,0,0,.12)}.actions-row[_ngcontent-%COMP%] mat-card-header[_ngcontent-%COMP%] mat-card-title[_ngcontent-%COMP%]{font-size:18px;font-weight:500;margin:0}.actions-row[_ngcontent-%COMP%] mat-card-content[_ngcontent-%COMP%]{padding:24px 16px}.actions-row[_ngcontent-%COMP%] .action-buttons[_ngcontent-%COMP%]{display:flex;gap:12px;flex-wrap:wrap}.actions-row[_ngcontent-%COMP%] .action-buttons[_ngcontent-%COMP%] button[_ngcontent-%COMP%] mat-icon[_ngcontent-%COMP%]{margin-right:8px}@media (max-width: 600px){.actions-row[_ngcontent-%COMP%] .action-buttons[_ngcontent-%COMP%]{flex-direction:column}.actions-row[_ngcontent-%COMP%] .action-buttons[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{width:100%}}.error-state[_ngcontent-%COMP%]{padding:16px}.error-state[_ngcontent-%COMP%] mat-card[_ngcontent-%COMP%]{max-width:600px;margin:0 auto}.error-state[_ngcontent-%COMP%] .no-data[_ngcontent-%COMP%]{display:flex;flex-direction:column;align-items:center;justify-content:center;padding:48px 16px;color:#0000008a}.error-state[_ngcontent-%COMP%] .no-data[_ngcontent-%COMP%] mat-icon[_ngcontent-%COMP%]{font-size:64px;width:64px;height:64px;margin-bottom:16px;color:#f44336}.error-state[_ngcontent-%COMP%] .no-data[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{margin:0 0 24px;font-size:16px}.error-state[_ngcontent-%COMP%] .no-data[_ngcontent-%COMP%] button[_ngcontent-%COMP%] mat-icon[_ngcontent-%COMP%]{margin-right:8px;font-size:20px;width:20px;height:20px}@media (max-width: 1200px){.dashboard-container[_ngcontent-%COMP%]{padding:12px}.charts-row[_ngcontent-%COMP%]{gap:16px}}@media (max-width: 768px){.metric-card[_ngcontent-%COMP%] mat-card-content[_ngcontent-%COMP%]{padding:16px!important}.metric-card[_ngcontent-%COMP%] .metric-icon[_ngcontent-%COMP%]{width:56px;height:56px}.metric-card[_ngcontent-%COMP%] .metric-icon[_ngcontent-%COMP%] mat-icon[_ngcontent-%COMP%]{font-size:28px;width:28px;height:28px}.metric-card[_ngcontent-%COMP%] .metric-value[_ngcontent-%COMP%]{font-size:28px}.metric-card[_ngcontent-%COMP%] .metric-label[_ngcontent-%COMP%]{font-size:12px}.chart-card[_ngcontent-%COMP%] .chart-container[_ngcontent-%COMP%]{height:250px}}@media (max-width: 480px){.dashboard-container[_ngcontent-%COMP%]{padding:8px}.metrics-row[_ngcontent-%COMP%], .secondary-metrics-row[_ngcontent-%COMP%], .charts-row[_ngcontent-%COMP%]{gap:12px;margin-bottom:16px}.metric-card[_ngcontent-%COMP%] .metric-value[_ngcontent-%COMP%]{font-size:24px}.chart-card[_ngcontent-%COMP%] .chart-container[_ngcontent-%COMP%]{height:200px}}"]});let t=n;return t})();var lU=(()=>{let n=class n{};n.\u0275fac=function(r){return new(r||n)},n.\u0275cmp=E({type:n,selectors:[["app-error-403"]],decls:1,vars:0,consts:[["code","403","title","Permission denied!","message","You do not have permission to access the requested data."]],template:function(r,o){r&1&&k(0,"error-code",0)},dependencies:[tp],encapsulation:2});let t=n;return t})();var cU=(()=>{let n=class n{};n.\u0275fac=function(r){return new(r||n)},n.\u0275cmp=E({type:n,selectors:[["app-error-404"]],decls:1,vars:0,consts:[["code","404","title","Page not found!","message","This is not the web page you are looking for."]],template:function(r,o){r&1&&k(0,"error-code",0)},dependencies:[tp],encapsulation:2});let t=n;return t})();var dU=(()=>{let n=class n{};n.\u0275fac=function(r){return new(r||n)},n.\u0275cmp=E({type:n,selectors:[["app-error-500"]],decls:1,vars:0,consts:[["code","500","title","Server went wrong!","message","Just kidding, looks like we have an internal issue, please try refreshing."]],template:function(r,o){r&1&&k(0,"error-code",0)},dependencies:[tp],encapsulation:2});let t=n;return t})();var b_e=t=>({value:t});function v_e(t,n){t&1&&(h(0,"mat-error")(1,"span"),_(2),me(3,"translate"),p()()),t&2&&(g(2),H(Oe(3,1,"validation.required")))}function y_e(t,n){t&1&&(h(0,"mat-error")(1,"span"),_(2),me(3,"translate"),p()()),t&2&&(g(2),H(Oe(3,1,"validation.required")))}function x_e(t,n){t&1&&(h(0,"mat-error")(1,"span"),_(2),me(3,"translate"),p()()),t&2&&(g(2),H(Oe(3,1,"validation.required")))}function C_e(t,n){t&1&&(h(0,"mat-error",8),me(1,"translate"),h(2,"span"),_(3),p()()),t&2&&(y("translateParams",Pt(4,b_e,Oe(1,2,"login.password"))),g(3),H("validation.inconsistent"))}var uU=(()=>{let n=class n{constructor(){this.fb=u(eo),this.registerForm=this.fb.nonNullable.group({username:["",[Le.required]],password:["",[Le.required]],confirmPassword:["",[Le.required]]},{validators:[this.matchValidator("password","confirmPassword")]})}matchValidator(i,r){return o=>{let a=o.get(i),s=o.get(r);return s.errors&&!s.errors.mismatch?null:a.value!==s.value?(s.setErrors({mismatch:!0}),{mismatch:!0}):(s.setErrors(null),null)}}};n.\u0275fac=function(r){return new(r||n)},n.\u0275cmp=E({type:n,selectors:[["app-register"]],decls:43,vars:32,consts:[[1,"d-flex","w-full","h-full"],[1,"m-auto",2,"max-width","380px"],[1,"m-b-24"],[1,"form-field-full",3,"formGroup"],["appearance","outline"],["matInput","","formControlName","username","required",""],["matInput","","type","password","formControlName","password","required",""],["matInput","","type","password","formControlName","confirmPassword","required",""],["translate","",3,"translateParams"],["matButton","filled",1,"w-full","m-y-16"],["routerLink","/auth/login"]],template:function(r,o){if(r&1&&(h(0,"div",0)(1,"mat-card",1)(2,"mat-card-header",2)(3,"mat-card-title"),_(4),me(5,"translate"),k(6,"br"),_(7),me(8,"translate"),p()(),h(9,"mat-card-content")(10,"form",3)(11,"mat-form-field",4)(12,"mat-label"),_(13),me(14,"translate"),p(),k(15,"input",5),N(16,v_e,4,3,"mat-error"),p(),h(17,"mat-form-field",4)(18,"mat-label"),_(19),me(20,"translate"),p(),k(21,"input",6),N(22,y_e,4,3,"mat-error"),p(),h(23,"mat-form-field",4)(24,"mat-label"),_(25),me(26,"translate"),p(),k(27,"input",7),N(28,x_e,4,3,"mat-error"),N(29,C_e,4,6,"mat-error",8),p(),h(30,"mat-checkbox"),_(31),me(32,"translate"),p(),h(33,"button",9),_(34),me(35,"translate"),p(),h(36,"div")(37,"span"),_(38),me(39,"translate"),p(),h(40,"a",10),_(41),me(42,"translate"),p()()()()()()),r&2){let a,s,l,c;g(4),ve(" ",Oe(5,14,"register_welcome"),", "),g(3),ve(" ",Oe(8,16,"register_title")," "),g(3),y("formGroup",o.registerForm),g(3),H(Oe(14,18,"username")),g(3),L((a=o.registerForm.get("username"))!=null&&a.invalid?16:-1),g(3),H(Oe(20,20,"password")),g(3),L((s=o.registerForm.get("password"))!=null&&s.invalid?22:-1),g(3),H(Oe(26,22,"confirm_password")),g(3),L((l=o.registerForm.get("confirmPassword"))!=null&&l.hasError("required")?28:-1),g(),L((c=o.registerForm.get("confirmPassword"))!=null&&c.hasError("mismatch")?29:-1),g(2),H(Oe(32,24,"read_and_agree")),g(3),H(Oe(35,26,"register")),g(4),ve("",Oe(39,28,"have_an_account"),"?"),g(3),H(Oe(42,30,"login"))}},dependencies:[Nn,du,Jr,Qi,ei,Xr,Do,zn,Ki,Lr,ze,kt,$t,zt,Ut,Jt,Xt,yx,Va,$i,Oi,sn,xo,rr,hn,wr,B3,Cr],encapsulation:2});let t=n;return t})();var mU=(()=>{let n=class n{constructor(){this.authService=u(Tt),this.router=u(Re)}ngOnInit(){return fn(this,null,function*(){try{(yield this.authService.initAuth())?this.router.navigate(["/dashboard"]):(console.warn("Authentication callback failed, redirecting to dashboard as guest"),this.router.navigate(["/dashboard"]))}catch(i){console.error("Error processing callback:",i),this.router.navigate(["/dashboard"])}})}};n.\u0275fac=function(r){return new(r||n)},n.\u0275cmp=E({type:n,selectors:[["app-callback"]],decls:5,vars:0,consts:[[1,"callback-container"]],template:function(r,o){r&1&&(ft(0,"div",0)(1,"h2"),_(2,"Processing login..."),vt(),ft(3,"p"),_(4,"Please wait while we complete your authentication."),vt()())},styles:[".callback-container[_ngcontent-%COMP%]{display:flex;flex-direction:column;align-items:center;justify-content:center;height:100vh;text-align:center}"]});let t=n;return t})();var w_e=[[["caption"]],[["colgroup"],["col"]],"*"],D_e=["caption","colgroup, col","*"];function E_e(t,n){t&1&&oe(0,2)}function M_e(t,n){t&1&&(h(0,"thead",0),Ge(1,1),p(),h(2,"tbody",0),Ge(3,2)(4,3),p(),h(5,"tfoot",0),Ge(6,4),p())}function k_e(t,n){t&1&&Ge(0,1)(1,2)(2,3)(3,4)}var za=new T("CDK_TABLE");var uw=(()=>{class t{template=u(te);constructor(){}static \u0275fac=function(i){return new(i||t)};static \u0275dir=F({type:t,selectors:[["","cdkCellDef",""]]})}return t})(),mw=(()=>{class t{template=u(te);constructor(){}static \u0275fac=function(i){return new(i||t)};static \u0275dir=F({type:t,selectors:[["","cdkHeaderCellDef",""]]})}return t})(),fU=(()=>{class t{template=u(te);constructor(){}static \u0275fac=function(i){return new(i||t)};static \u0275dir=F({type:t,selectors:[["","cdkFooterCellDef",""]]})}return t})(),sp=(()=>{class t{_table=u(za,{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(i){return new(i||t)};static \u0275dir=F({type:t,selectors:[["","cdkColumnDef",""]],contentQueries:function(i,r,o){if(i&1&&(xe(o,uw,5),xe(o,mw,5),xe(o,fU,5)),i&2){let a;B(a=j())&&(r.cell=a.first),B(a=j())&&(r.headerCell=a.first),B(a=j())&&(r.footerCell=a.first)}},inputs:{name:[0,"cdkColumnDef","name"],sticky:[2,"sticky","sticky",V],stickyEnd:[2,"stickyEnd","stickyEnd",V]},features:[Ce([{provide:"MAT_SORT_HEADER_COLUMN_DEF",useExisting:t}])]})}return t})(),cw=class{constructor(n,e){e.nativeElement.classList.add(...n._columnCssClassName)}},gU=(()=>{class t extends cw{constructor(){super(u(sp),u(q))}static \u0275fac=function(i){return new(i||t)};static \u0275dir=F({type:t,selectors:[["cdk-header-cell"],["th","cdk-header-cell",""]],hostAttrs:["role","columnheader",1,"cdk-header-cell"],features:[le]})}return t})();var _U=(()=>{class t extends cw{constructor(){let e=u(sp),i=u(q);super(e,i);let r=e._table?._getCellRole();r&&i.nativeElement.setAttribute("role",r)}static \u0275fac=function(i){return new(i||t)};static \u0275dir=F({type:t,selectors:[["cdk-cell"],["td","cdk-cell",""]],hostAttrs:[1,"cdk-cell"],features:[le]})}return t})();var jI=(()=>{class t{template=u(te);_differs=u(ds);columns;_columnsDiffer;constructor(){}ngOnChanges(e){if(!this._columnsDiffer){let i=e.columns&&e.columns.currentValue||[];this._columnsDiffer=this._differs.find(i).create(),this._columnsDiffer.diff(i)}}getColumnsDiff(){return this._columnsDiffer.diff(this.columns)}extractCellTemplate(e){return this instanceof v_?e.headerCell.template:this instanceof HI?e.footerCell.template:e.cell.template}static \u0275fac=function(i){return new(i||t)};static \u0275dir=F({type:t,features:[Ae]})}return t})(),v_=(()=>{class t extends jI{_table=u(za,{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(u(te),u(ds))}ngOnChanges(e){super.ngOnChanges(e)}hasStickyChanged(){let e=this._hasStickyChanged;return this.resetStickyChanged(),e}resetStickyChanged(){this._hasStickyChanged=!1}static \u0275fac=function(i){return new(i||t)};static \u0275dir=F({type:t,selectors:[["","cdkHeaderRowDef",""]],inputs:{columns:[0,"cdkHeaderRowDef","columns"],sticky:[2,"cdkHeaderRowDefSticky","sticky",V]},features:[le,Ae]})}return t})(),HI=(()=>{class t extends jI{_table=u(za,{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(u(te),u(ds))}ngOnChanges(e){super.ngOnChanges(e)}hasStickyChanged(){let e=this._hasStickyChanged;return this.resetStickyChanged(),e}resetStickyChanged(){this._hasStickyChanged=!1}static \u0275fac=function(i){return new(i||t)};static \u0275dir=F({type:t,selectors:[["","cdkFooterRowDef",""]],inputs:{columns:[0,"cdkFooterRowDef","columns"],sticky:[2,"cdkFooterRowDefSticky","sticky",V]},features:[le,Ae]})}return t})(),hw=(()=>{class t extends jI{_table=u(za,{optional:!0});when;constructor(){super(u(te),u(ds))}static \u0275fac=function(i){return new(i||t)};static \u0275dir=F({type:t,selectors:[["","cdkRowDef",""]],inputs:{columns:[0,"cdkRowDefColumns","columns"],when:[0,"cdkRowDefWhen","when"]},features:[le]})}return t})(),Au=(()=>{class t{_viewContainer=u(nt);cells;context;static mostRecentCellOutlet=null;constructor(){t.mostRecentCellOutlet=this}ngOnDestroy(){t.mostRecentCellOutlet===this&&(t.mostRecentCellOutlet=null)}static \u0275fac=function(i){return new(i||t)};static \u0275dir=F({type:t,selectors:[["","cdkCellOutlet",""]]})}return t})(),zI=(()=>{class t{static \u0275fac=function(i){return new(i||t)};static \u0275cmp=E({type:t,selectors:[["cdk-header-row"],["tr","cdk-header-row",""]],hostAttrs:["role","row",1,"cdk-header-row"],decls:1,vars:0,consts:[["cdkCellOutlet",""]],template:function(i,r){i&1&&Ge(0,0)},dependencies:[Au],encapsulation:2})}return t})();var UI=(()=>{class t{static \u0275fac=function(i){return new(i||t)};static \u0275cmp=E({type:t,selectors:[["cdk-row"],["tr","cdk-row",""]],hostAttrs:["role","row",1,"cdk-row"],decls:1,vars:0,consts:[["cdkCellOutlet",""]],template:function(i,r){i&1&&Ge(0,0)},dependencies:[Au],encapsulation:2})}return t})(),pw=(()=>{class t{templateRef=u(te);_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(i){return new(i||t)};static \u0275dir=F({type:t,selectors:[["ng-template","cdkNoDataRow",""]]})}return t})(),hU=["top","bottom","left","right"],BI=class{_isNativeHtmlTable;_stickCellCss;_isBrowser;_needsPositionStickyOnElement;direction;_positionListener;_tableInjector;_elemSizeCache=new WeakMap;_resizeObserver=globalThis?.ResizeObserver?new globalThis.ResizeObserver(n=>this._updateCachedSizes(n)):null;_updatedStickyColumnsParamsToReplay=[];_stickyColumnsReplayTimeout=null;_cachedCellWidths=[];_borderCellCss;_destroyed=!1;constructor(n,e,i=!0,r=!0,o,a,s){this._isNativeHtmlTable=n,this._stickCellCss=e,this._isBrowser=i,this._needsPositionStickyOnElement=r,this.direction=o,this._positionListener=a,this._tableInjector=s,this._borderCellCss={top:`${e}-border-elem-top`,bottom:`${e}-border-elem-bottom`,left:`${e}-border-elem-left`,right:`${e}-border-elem-right`}}clearStickyPositioning(n,e){(e.includes("left")||e.includes("right"))&&this._removeFromStickyColumnReplayQueue(n);let i=[];for(let r of n)r.nodeType===r.ELEMENT_NODE&&i.push(r,...Array.from(r.children));pt({write:()=>{for(let r of i)this._removeStickyStyle(r,e)}},{injector:this._tableInjector})}updateStickyColumns(n,e,i,r=!0,o=!0){if(!n.length||!this._isBrowser||!(e.some(x=>x)||i.some(x=>x))){this._positionListener?.stickyColumnsUpdated({sizes:[]}),this._positionListener?.stickyEndColumnsUpdated({sizes:[]});return}let a=n[0],s=a.children.length,l=this.direction==="rtl",c=l?"right":"left",d=l?"left":"right",m=e.lastIndexOf(!0),f=i.indexOf(!0),b,v,w;o&&this._updateStickyColumnReplayQueue({rows:[...n],stickyStartStates:[...e],stickyEndStates:[...i]}),pt({earlyRead:()=>{b=this._getCellWidths(a,r),v=this._getStickyStartColumnPositions(b,e),w=this._getStickyEndColumnPositions(b,i)},write:()=>{for(let x of n)for(let D=0;D!!x)&&(this._positionListener.stickyColumnsUpdated({sizes:m===-1?[]:b.slice(0,m+1).map((x,D)=>e[D]?x:null)}),this._positionListener.stickyEndColumnsUpdated({sizes:f===-1?[]:b.slice(f).map((x,D)=>i[D+f]?x:null).reverse()}))}},{injector:this._tableInjector})}stickRows(n,e,i){if(!this._isBrowser)return;let r=i==="bottom"?n.slice().reverse():n,o=i==="bottom"?e.slice().reverse():e,a=[],s=[],l=[];pt({earlyRead:()=>{for(let c=0,d=0;c{let c=o.lastIndexOf(!0);for(let d=0;d{let i=n.querySelector("tfoot");i&&(e.some(r=>!r)?this._removeStickyStyle(i,["bottom"]):this._addStickyStyle(i,"bottom",0,!1))}},{injector:this._tableInjector})}destroy(){this._stickyColumnsReplayTimeout&&clearTimeout(this._stickyColumnsReplayTimeout),this._resizeObserver?.disconnect(),this._destroyed=!0}_removeStickyStyle(n,e){if(!n.classList.contains(this._stickCellCss))return;for(let r of e)n.style[r]="",n.classList.remove(this._borderCellCss[r]);hU.some(r=>e.indexOf(r)===-1&&n.style[r])?n.style.zIndex=this._getCalculatedZIndex(n):(n.style.zIndex="",this._needsPositionStickyOnElement&&(n.style.position=""),n.classList.remove(this._stickCellCss))}_addStickyStyle(n,e,i,r){n.classList.add(this._stickCellCss),r&&n.classList.add(this._borderCellCss[e]),n.style[e]=`${i}px`,n.style.zIndex=this._getCalculatedZIndex(n),this._needsPositionStickyOnElement&&(n.style.cssText+="position: -webkit-sticky; position: sticky; ")}_getCalculatedZIndex(n){let e={top:100,bottom:10,left:1,right:1},i=0;for(let r of hU)n.style[r]&&(i+=e[r]);return i?`${i}`:""}_getCellWidths(n,e=!0){if(!e&&this._cachedCellWidths.length)return this._cachedCellWidths;let i=[],r=n.children;for(let o=0;o0;o--)e[o]&&(i[o]=r,r+=n[o]);return i}_retrieveElementSize(n){let e=this._elemSizeCache.get(n);if(e)return e;let i=n.getBoundingClientRect(),r={width:i.width,height:i.height};return this._resizeObserver&&(this._elemSizeCache.set(n,r),this._resizeObserver.observe(n,{box:"border-box"})),r}_updateStickyColumnReplayQueue(n){this._removeFromStickyColumnReplayQueue(n.rows),this._stickyColumnsReplayTimeout||this._updatedStickyColumnsParamsToReplay.push(n)}_removeFromStickyColumnReplayQueue(n){let e=new Set(n);for(let i of this._updatedStickyColumnsParamsToReplay)i.rows=i.rows.filter(r=>!e.has(r));this._updatedStickyColumnsParamsToReplay=this._updatedStickyColumnsParamsToReplay.filter(i=>!!i.rows.length)}_updateCachedSizes(n){let e=!1;for(let i of n){let r=i.borderBoxSize?.length?{width:i.borderBoxSize[0].inlineSize,height:i.borderBoxSize[0].blockSize}:{width:i.contentRect.width,height:i.contentRect.height};r.width!==this._elemSizeCache.get(i.target)?.width&&S_e(i.target)&&(e=!0),this._elemSizeCache.set(i.target,r)}e&&this._updatedStickyColumnsParamsToReplay.length&&(this._stickyColumnsReplayTimeout&&clearTimeout(this._stickyColumnsReplayTimeout),this._stickyColumnsReplayTimeout=setTimeout(()=>{if(!this._destroyed){for(let i of this._updatedStickyColumnsParamsToReplay)this.updateStickyColumns(i.rows,i.stickyStartStates,i.stickyEndStates,!0,!1);this._updatedStickyColumnsParamsToReplay=[],this._stickyColumnsReplayTimeout=null}},0))}};function S_e(t){return["cdk-cell","cdk-header-cell","cdk-footer-cell"].some(n=>t.classList.contains(n))}var dw=new T("CDK_SPL");var $I=(()=>{class t{viewContainer=u(nt);elementRef=u(q);constructor(){let e=u(za);e._rowOutlet=this,e._outletAssigned()}static \u0275fac=function(i){return new(i||t)};static \u0275dir=F({type:t,selectors:[["","rowOutlet",""]]})}return t})(),WI=(()=>{class t{viewContainer=u(nt);elementRef=u(q);constructor(){let e=u(za);e._headerRowOutlet=this,e._outletAssigned()}static \u0275fac=function(i){return new(i||t)};static \u0275dir=F({type:t,selectors:[["","headerRowOutlet",""]]})}return t})(),GI=(()=>{class t{viewContainer=u(nt);elementRef=u(q);constructor(){let e=u(za);e._footerRowOutlet=this,e._outletAssigned()}static \u0275fac=function(i){return new(i||t)};static \u0275dir=F({type:t,selectors:[["","footerRowOutlet",""]]})}return t})(),qI=(()=>{class t{viewContainer=u(nt);elementRef=u(q);constructor(){let e=u(za);e._noDataRowOutlet=this,e._outletAssigned()}static \u0275fac=function(i){return new(i||t)};static \u0275dir=F({type:t,selectors:[["","noDataRowOutlet",""]]})}return t})(),YI=(()=>{class t{_differs=u(ds);_changeDetectorRef=u(ye);_elementRef=u(q);_dir=u(Vt,{optional:!0});_platform=u(qe);_viewRepeater=u(fh);_viewportRuler=u(Xn);_stickyPositioningListener=u(dw,{optional:!0,skipSelf:!0});_document=u(ge);_data;_onDestroy=new z;_renderRows;_renderChangeSubscription;_columnDefsByName=new Map;_rowDefs;_headerRowDefs;_footerRowDefs;_dataDiffer;_defaultRowDef;_customColumnDefs=new Set;_customRowDefs=new Set;_customHeaderRowDefs=new Set;_customFooterRowDefs=new Set;_customNoDataRow;_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;_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)}_dataSource;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._fixedLayout}set fixedLayout(e){this._fixedLayout=e,this._forceRecalculateCellWidths=!0,this._stickyColumnStylesNeedReset=!0}_fixedLayout=!1;contentChanged=new U;viewChange=new tt({start:0,end:Number.MAX_VALUE});_rowOutlet;_headerRowOutlet;_footerRowOutlet;_noDataRowOutlet;_contentColumnDefs;_contentRowDefs;_contentHeaderRowDefs;_contentFooterRowDefs;_noDataRow;_injector=u(de);constructor(){u(new Ii("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((i,r)=>this.trackBy?this.trackBy(r.dataIndex,r.data):r)}ngOnInit(){this._setupStickyStyler(),this._viewportRuler.change().pipe(Te(this._onDestroy)).subscribe(()=>{this._forceRecalculateCellWidths=!0})}ngAfterContentInit(){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._onDestroy.next(),this._onDestroy.complete(),ig(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 i=this._rowOutlet.viewContainer;this._viewRepeater.applyChanges(e,i,(r,o,a)=>this._getEmbeddedViewArgs(r.item,a),r=>r.item.data,r=>{r.operation===cc.INSERTED&&r.context&&this._renderCellTemplateForItem(r.record.item.rowDef,r.context)}),this._updateRowIndexContext(),e.forEachIdentityChange(r=>{let o=i.get(r.currentIndex);o.context.$implicit=r.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 r=pU(this._headerRowOutlet,"thead");r&&(r.style.display=e.length?"":"none")}let i=this._headerRowDefs.map(r=>r.sticky);this._stickyStyler.clearStickyPositioning(e,["top"]),this._stickyStyler.stickRows(e,i,"top"),this._headerRowDefs.forEach(r=>r.resetStickyChanged())}updateStickyFooterRowStyles(){let e=this._getRenderedRows(this._footerRowOutlet);if(this._isNativeHtmlTable){let r=pU(this._footerRowOutlet,"tfoot");r&&(r.style.display=e.length?"":"none")}let i=this._footerRowDefs.map(r=>r.sticky);this._stickyStyler.clearStickyPositioning(e,["bottom"]),this._stickyStyler.stickRows(e,i,"bottom"),this._stickyStyler.updateStickyFooterContainer(this._elementRef.nativeElement,i),this._footerRowDefs.forEach(r=>r.resetStickyChanged())}updateStickyColumnStyles(){let e=this._getRenderedRows(this._headerRowOutlet),i=this._getRenderedRows(this._rowOutlet),r=this._getRenderedRows(this._footerRowOutlet);(this._isNativeHtmlTable&&!this._fixedLayout||this._stickyColumnStylesNeedReset)&&(this._stickyStyler.clearStickyPositioning([...e,...i,...r],["left","right"]),this._stickyColumnStylesNeedReset=!1),e.forEach((o,a)=>{this._addStickyColumnStyles([o],this._headerRowDefs[a])}),this._rowDefs.forEach(o=>{let a=[];for(let s=0;s{this._addStickyColumnStyles([o],this._footerRowDefs[a])}),Array.from(this._columnDefsByName.values()).forEach(o=>o.resetStickyChanged())}_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 i=this._renderUpdatedColumns()||this._headerRowDefChanged||this._footerRowDefChanged;this._stickyColumnStylesNeedReset=this._stickyColumnStylesNeedReset||i,this._forceRecalculateCellWidths=i,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(){let e=[],i=this._cachedRenderRowsMap;if(this._cachedRenderRowsMap=new Map,!this._data)return e;for(let r=0;r{let s=r&&r.has(a)?r.get(a):[];if(s.length){let l=s.shift();return l.dataIndex=i,l}else return{data:e,rowDef:a,dataIndex:i}})}_cacheColumnDefs(){this._columnDefsByName.clear(),lw(this._getOwnDefs(this._contentColumnDefs),this._customColumnDefs).forEach(i=>{this._columnDefsByName.has(i.name),this._columnDefsByName.set(i.name,i)})}_cacheRowDefs(){this._headerRowDefs=lw(this._getOwnDefs(this._contentHeaderRowDefs),this._customHeaderRowDefs),this._footerRowDefs=lw(this._getOwnDefs(this._contentFooterRowDefs),this._customFooterRowDefs),this._rowDefs=lw(this._getOwnDefs(this._contentRowDefs),this._customRowDefs);let e=this._rowDefs.filter(i=>!i.when);!this.multiTemplateDataRows&&e.length>1,this._defaultRowDef=e[0]}_renderUpdatedColumns(){let e=(a,s)=>{let l=!!s.getColumnsDiff();return a||l},i=this._rowDefs.reduce(e,!1);i&&this._forceRenderDataRows();let r=this._headerRowDefs.reduce(e,!1);r&&this._forceRenderHeaderRows();let o=this._footerRowDefs.reduce(e,!1);return o&&this._forceRenderFooterRows(),i||r||o}_switchDataSource(e){this._data=[],ig(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;ig(this.dataSource)?e=this.dataSource.connect(this):ji(this.dataSource)?e=this.dataSource:Array.isArray(this.dataSource)&&(e=Q(this.dataSource)),this._renderChangeSubscription=e.pipe(Te(this._onDestroy)).subscribe(i=>{this._data=i||[],this.renderRows()})}_forceRenderHeaderRows(){this._headerRowOutlet.viewContainer.length>0&&this._headerRowOutlet.viewContainer.clear(),this._headerRowDefs.forEach((e,i)=>this._renderRow(this._headerRowOutlet,e,i)),this.updateStickyHeaderRowStyles()}_forceRenderFooterRows(){this._footerRowOutlet.viewContainer.length>0&&this._footerRowOutlet.viewContainer.clear(),this._footerRowDefs.forEach((e,i)=>this._renderRow(this._footerRowOutlet,e,i)),this.updateStickyFooterRowStyles()}_addStickyColumnStyles(e,i){let r=Array.from(i?.columns||[]).map(s=>{let l=this._columnDefsByName.get(s);return l}),o=r.map(s=>s.sticky),a=r.map(s=>s.stickyEnd);this._stickyStyler.updateStickyColumns(e,o,a,!this._fixedLayout||this._forceRecalculateCellWidths)}_getRenderedRows(e){let i=[];for(let r=0;r!o.when||o.when(i,e));else{let o=this._rowDefs.find(a=>a.when&&a.when(i,e))||this._defaultRowDef;o&&r.push(o)}return r.length,r}_getEmbeddedViewArgs(e,i){let r=e.rowDef,o={$implicit:e.data};return{templateRef:r.template,context:o,index:i}}_renderRow(e,i,r,o={}){let a=e.viewContainer.createEmbeddedView(i.template,o,r);return this._renderCellTemplateForItem(i,o),a}_renderCellTemplateForItem(e,i){for(let r of this._getCellTemplates(e))Au.mostRecentCellOutlet&&Au.mostRecentCellOutlet._viewContainer.createEmbeddedView(r,i);this._changeDetectorRef.markForCheck()}_updateRowIndexContext(){let e=this._rowOutlet.viewContainer;for(let i=0,r=e.length;i{let r=this._columnDefsByName.get(i);return e.extractCellTemplate(r)})}_forceRenderDataRows(){this._dataDiffer.diff([]),this._rowOutlet.viewContainer.clear(),this.renderRows()}_checkStickyStates(){let e=(i,r)=>i||r.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";this._stickyStyler=new BI(this._isNativeHtmlTable,this.stickyCssClass,this._platform.isBrowser,this.needsPositionStickyOnElement,e,this._stickyPositioningListener,this._injector),(this._dir?this._dir.change:Q()).pipe(Te(this._onDestroy)).subscribe(i=>{this._stickyStyler.direction=i,this.updateStickyColumnStyles()})}_getOwnDefs(e){return e.filter(i=>!i._table||i._table===this)}_updateNoDataRow(){let e=this._customNoDataRow||this._noDataRow;if(!e)return;let i=this._rowOutlet.viewContainer.length===0;if(i===this._isShowingNoDataRow)return;let r=this._noDataRowOutlet.viewContainer;if(i){let o=r.createEmbeddedView(e.templateRef),a=o.rootNodes[0];if(o.rootNodes.length===1&&a?.nodeType===this._document.ELEMENT_NODE){a.setAttribute("role","row"),a.classList.add(...e._contentClassNames);let s=a.querySelectorAll(e._cellSelector);for(let l=0;l{class t{static \u0275fac=function(i){return new(i||t)};static \u0275mod=ee({type:t});static \u0275inj=J({imports:[ng]})}return t})();var T_e=[[["caption"]],[["colgroup"],["col"]],"*"],I_e=["caption","colgroup, col","*"];function A_e(t,n){t&1&&oe(0,2)}function O_e(t,n){t&1&&(h(0,"thead",0),Ge(1,1),p(),h(2,"tbody",2),Ge(3,3)(4,4),p(),h(5,"tfoot",0),Ge(6,5),p())}function R_e(t,n){t&1&&Ge(0,1)(1,3)(2,4)(3,5)}var Hc=(()=>{class t extends YI{stickyCssClass="mat-mdc-table-sticky";needsPositionStickyOnElement=!1;static \u0275fac=(()=>{let e;return function(r){return(e||(e=fe(t)))(r||t)}})();static \u0275cmp=E({type:t,selectors:[["mat-table"],["table","mat-table",""]],hostAttrs:[1,"mat-mdc-table","mdc-data-table__table"],hostVars:2,hostBindings:function(i,r){i&2&&G("mdc-table-fixed-layout",r.fixedLayout)},exportAs:["matTable"],features:[Ce([{provide:YI,useExisting:t},{provide:za,useExisting:t},{provide:fh,useClass:su},{provide:dw,useValue:null}]),le],ngContentSelectors:I_e,decls:5,vars:2,consts:[["role","rowgroup"],["headerRowOutlet",""],["role","rowgroup",1,"mdc-data-table__content"],["rowOutlet",""],["noDataRowOutlet",""],["footerRowOutlet",""]],template:function(i,r){i&1&&(Me(T_e),oe(0),oe(1,1),N(2,A_e,1,0),N(3,O_e,7,0)(4,R_e,4,0)),i&2&&(g(2),L(r._isServer?2:-1),g(),L(r._isNativeHtmlTable?3:4))},dependencies:[WI,$I,qI,GI],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))}.mdc-data-table__cell{box-sizing:border-box;overflow:hidden;text-align:left;text-overflow:ellipsis}[dir=rtl] .mdc-data-table__cell{text-align:right}.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:left}[dir=rtl] .mat-mdc-header-cell{text-align:right}.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 t})(),zc=(()=>{class t extends uw{static \u0275fac=(()=>{let e;return function(r){return(e||(e=fe(t)))(r||t)}})();static \u0275dir=F({type:t,selectors:[["","matCellDef",""]],features:[Ce([{provide:uw,useExisting:t}]),le]})}return t})(),Uc=(()=>{class t extends mw{static \u0275fac=(()=>{let e;return function(r){return(e||(e=fe(t)))(r||t)}})();static \u0275dir=F({type:t,selectors:[["","matHeaderCellDef",""]],features:[Ce([{provide:mw,useExisting:t}]),le]})}return t})();var $c=(()=>{class t extends sp{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(r){return(e||(e=fe(t)))(r||t)}})();static \u0275dir=F({type:t,selectors:[["","matColumnDef",""]],inputs:{name:[0,"matColumnDef","name"]},features:[Ce([{provide:sp,useExisting:t},{provide:"MAT_SORT_HEADER_COLUMN_DEF",useExisting:t}]),le]})}return t})(),Wc=(()=>{class t extends gU{static \u0275fac=(()=>{let e;return function(r){return(e||(e=fe(t)))(r||t)}})();static \u0275dir=F({type:t,selectors:[["mat-header-cell"],["th","mat-header-cell",""]],hostAttrs:["role","columnheader",1,"mat-mdc-header-cell","mdc-data-table__header-cell"],features:[le]})}return t})();var Gc=(()=>{class t extends _U{static \u0275fac=(()=>{let e;return function(r){return(e||(e=fe(t)))(r||t)}})();static \u0275dir=F({type:t,selectors:[["mat-cell"],["td","mat-cell",""]],hostAttrs:[1,"mat-mdc-cell","mdc-data-table__cell"],features:[le]})}return t})();var qc=(()=>{class t extends v_{static \u0275fac=(()=>{let e;return function(r){return(e||(e=fe(t)))(r||t)}})();static \u0275dir=F({type:t,selectors:[["","matHeaderRowDef",""]],inputs:{columns:[0,"matHeaderRowDef","columns"],sticky:[2,"matHeaderRowDefSticky","sticky",V]},features:[Ce([{provide:v_,useExisting:t}]),le]})}return t})();var Yc=(()=>{class t extends hw{static \u0275fac=(()=>{let e;return function(r){return(e||(e=fe(t)))(r||t)}})();static \u0275dir=F({type:t,selectors:[["","matRowDef",""]],inputs:{columns:[0,"matRowDefColumns","columns"],when:[0,"matRowDefWhen","when"]},features:[Ce([{provide:hw,useExisting:t}]),le]})}return t})(),Qc=(()=>{class t extends zI{static \u0275fac=(()=>{let e;return function(r){return(e||(e=fe(t)))(r||t)}})();static \u0275cmp=E({type:t,selectors:[["mat-header-row"],["tr","mat-header-row",""]],hostAttrs:["role","row",1,"mat-mdc-header-row","mdc-data-table__header-row"],exportAs:["matHeaderRow"],features:[Ce([{provide:zI,useExisting:t}]),le],decls:1,vars:0,consts:[["cdkCellOutlet",""]],template:function(i,r){i&1&&Ge(0,0)},dependencies:[Au],encapsulation:2})}return t})();var Kc=(()=>{class t extends UI{static \u0275fac=(()=>{let e;return function(r){return(e||(e=fe(t)))(r||t)}})();static \u0275cmp=E({type:t,selectors:[["mat-row"],["tr","mat-row",""]],hostAttrs:["role","row",1,"mat-mdc-row","mdc-data-table__row"],exportAs:["matRow"],features:[Ce([{provide:UI,useExisting:t}]),le],decls:1,vars:0,consts:[["cdkCellOutlet",""]],template:function(i,r){i&1&&Ge(0,0)},dependencies:[Au],encapsulation:2})}return t})(),gw=(()=>{class t extends pw{_cellSelector="td, mat-cell, [mat-cell], .mat-cell";constructor(){super(),this._contentClassNames.push("mat-mdc-no-data-row","mat-mdc-row","mdc-data-table__row"),this._cellClassNames.push("mat-mdc-cell","mdc-data-table__cell","mat-no-data-cell")}static \u0275fac=function(i){return new(i||t)};static \u0275dir=F({type:t,selectors:[["ng-template","matNoDataRow",""]],features:[Ce([{provide:pw,useExisting:t}]),le]})}return t})();var Zc=(()=>{class t{static \u0275fac=function(i){return new(i||t)};static \u0275mod=ee({type:t});static \u0275inj=J({imports:[we,bU,we]})}return t})(),P_e=9007199254740991,fw=class extends tg{_data;_renderData=new tt([]);_filter=new tt("");_internalPageChanges=new z;_renderChangesSubscription=null;filteredData;get data(){return this._data.value}set data(n){n=Array.isArray(n)?n:[],this._data.next(n),this._renderChangesSubscription||this._filterData(n)}get filter(){return this._filter.value}set filter(n){this._filter.next(n),this._renderChangesSubscription||this._filterData(this.data)}get sort(){return this._sort}set sort(n){this._sort=n,this._updateChangeSubscription()}_sort;get paginator(){return this._paginator}set paginator(n){this._paginator=n,this._updateChangeSubscription()}_paginator;sortingDataAccessor=(n,e)=>{let i=n[e];if(N0(i)){let r=Number(i);return r{let i=e.active,r=e.direction;return!i||r==""?n:n.sort((o,a)=>{let s=this.sortingDataAccessor(o,i),l=this.sortingDataAccessor(a,i),c=typeof s,d=typeof l;c!==d&&(c==="number"&&(s+=""),d==="number"&&(l+=""));let m=0;return s!=null&&l!=null?s>l?m=1:s{let i=e.trim().toLowerCase();return Object.values(n).some(r=>`${r}`.toLowerCase().includes(i))};constructor(n=[]){super(),this._data=new tt(n),this._updateChangeSubscription()}_updateChangeSubscription(){let n=this._sort?Je(this._sort.sortChange,this._sort.initialized):Q(null),e=this._paginator?Je(this._paginator.page,this._internalPageChanges,this._paginator.initialized):Q(null),i=this._data,r=co([i,this._filter]).pipe(se(([s])=>this._filterData(s))),o=co([r,n]).pipe(se(([s])=>this._orderData(s))),a=co([o,e]).pipe(se(([s])=>this._pageData(s)));this._renderChangesSubscription?.unsubscribe(),this._renderChangesSubscription=a.subscribe(s=>this._renderData.next(s))}_filterData(n){return this.filteredData=this.filter==null||this.filter===""?n:n.filter(e=>this.filterPredicate(e,this.filter)),this.paginator&&this._updatePaginator(this.filteredData.length),this.filteredData}_orderData(n){return this.sort?this.sortData(n.slice(),this.sort):n}_pageData(n){if(!this.paginator)return n;let e=this.paginator.pageIndex*this.paginator.pageSize;return n.slice(e,e+this.paginator.pageSize)}_updatePaginator(n){Promise.resolve().then(()=>{let e=this.paginator;if(e&&(e.length=n,e.pageIndex>0)){let i=Math.ceil(e.length/e.pageSize)-1||0,r=Math.min(e.pageIndex,i);r!==e.pageIndex&&(e.pageIndex=r,this._internalPageChanges.next())}})}connect(){return this._renderChangesSubscription||this._updateChangeSubscription(),this._renderData}disconnect(){this._renderChangesSubscription?.unsubscribe(),this._renderChangesSubscription=null}};var F_e=["panel"],N_e=["*"];function L_e(t,n){if(t&1&&(ft(0,"div",1,0),oe(2),vt()),t&2){let e=n.id,i=C();it(i._classList),G("mat-mdc-autocomplete-visible",i.showPanel)("mat-mdc-autocomplete-hidden",!i.showPanel)("mat-autocomplete-panel-animations-enabled",!i._animationsDisabled)("mat-primary",i._color==="primary")("mat-accent",i._color==="accent")("mat-warn",i._color==="warn"),si("id",i.id),X("aria-label",i.ariaLabel||null)("aria-labelledby",i._getPanelAriaLabelledby(e))}}var QI=class{source;option;constructor(n,e){this.source=n,this.option=e}},vU=new T("mat-autocomplete-default-options",{providedIn:"root",factory:V_e});function V_e(){return{autoActiveFirstOption:!1,autoSelectActiveOption:!1,hideSingleSelectionIndicator:!1,requireSelection:!1,hasBackdrop:!1}}var bw=(()=>{class t{_changeDetectorRef=u(ye);_elementRef=u(q);_defaults=u(vU);_animationsDisabled=Ye();_activeOptionChanges=ke.EMPTY;_keyManager;showPanel=!1;get isOpen(){return this._isOpen&&this.showPanel}_isOpen=!1;_latestOpeningTrigger;_setColor(e){this._color=e,this._changeDetectorRef.markForCheck()}_color;template;panel;options;optionGroups;ariaLabel;ariaLabelledby;displayWith=null;autoActiveFirstOption;autoSelectActiveOption;requireSelection;panelWidth;disableRipple;optionSelected=new U;opened=new U;closed=new U;optionActivated=new U;set classList(e){this._classList=e,this._elementRef.nativeElement.className=""}_classList;get hideSingleSelectionIndicator(){return this._hideSingleSelectionIndicator}set hideSingleSelectionIndicator(e){this._hideSingleSelectionIndicator=e,this._syncParentProperties()}_hideSingleSelectionIndicator;_syncParentProperties(){if(this.options)for(let e of this.options)e._changeDetectorRef.markForCheck()}id=u(Ze).getId("mat-autocomplete-");inertGroups;constructor(){let e=u(qe);this.inertGroups=e?.SAFARI||!1,this.autoActiveFirstOption=!!this._defaults.autoActiveFirstOption,this.autoSelectActiveOption=!!this._defaults.autoSelectActiveOption,this.requireSelection=!!this._defaults.requireSelection,this._hideSingleSelectionIndicator=this._defaults.hideSingleSelectionIndicator??!1}ngAfterContentInit(){this._keyManager=new qd(this.options).withWrap().skipPredicate(this._skipPredicate),this._activeOptionChanges=this._keyManager.change.subscribe(e=>{this.isOpen&&this.optionActivated.emit({source:this,option:this.options.toArray()[e]||null})}),this._setVisibility()}ngOnDestroy(){this._keyManager?.destroy(),this._activeOptionChanges.unsubscribe()}_setScrollTop(e){this.panel&&(this.panel.nativeElement.scrollTop=e)}_getScrollTop(){return this.panel?this.panel.nativeElement.scrollTop:0}_setVisibility(){this.showPanel=!!this.options?.length,this._changeDetectorRef.markForCheck()}_emitSelectEvent(e){let i=new QI(this,e);this.optionSelected.emit(i)}_getPanelAriaLabelledby(e){if(this.ariaLabel)return null;let i=e?e+" ":"";return this.ariaLabelledby?i+this.ariaLabelledby:e}_skipPredicate(){return!1}static \u0275fac=function(i){return new(i||t)};static \u0275cmp=E({type:t,selectors:[["mat-autocomplete"]],contentQueries:function(i,r,o){if(i&1&&(xe(o,xn,5),xe(o,Zd,5)),i&2){let a;B(a=j())&&(r.options=a),B(a=j())&&(r.optionGroups=a)}},viewQuery:function(i,r){if(i&1&&(ie(te,7),ie(F_e,5)),i&2){let o;B(o=j())&&(r.template=o.first),B(o=j())&&(r.panel=o.first)}},hostAttrs:[1,"mat-mdc-autocomplete"],inputs:{ariaLabel:[0,"aria-label","ariaLabel"],ariaLabelledby:[0,"aria-labelledby","ariaLabelledby"],displayWith:"displayWith",autoActiveFirstOption:[2,"autoActiveFirstOption","autoActiveFirstOption",V],autoSelectActiveOption:[2,"autoSelectActiveOption","autoSelectActiveOption",V],requireSelection:[2,"requireSelection","requireSelection",V],panelWidth:"panelWidth",disableRipple:[2,"disableRipple","disableRipple",V],classList:[0,"class","classList"],hideSingleSelectionIndicator:[2,"hideSingleSelectionIndicator","hideSingleSelectionIndicator",V]},outputs:{optionSelected:"optionSelected",opened:"opened",closed:"closed",optionActivated:"optionActivated"},exportAs:["matAutocomplete"],features:[Ce([{provide:Kd,useExisting:t}])],ngContentSelectors:N_e,decls:1,vars:0,consts:[["panel",""],["role","listbox",1,"mat-mdc-autocomplete-panel","mdc-menu-surface","mdc-menu-surface--open",3,"id"]],template:function(i,r){i&1&&(Me(),xa(0,L_e,3,17,"ng-template"))},styles:[`div.mat-mdc-autocomplete-panel{width:100%;max-height:256px;visibility:hidden;transform-origin:center top;overflow:auto;padding:8px 0;box-sizing:border-box;position:relative;border-radius:var(--mat-autocomplete-container-shape, var(--mat-sys-corner-extra-small));box-shadow:var(--mat-autocomplete-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));background-color:var(--mat-autocomplete-background-color, var(--mat-sys-surface-container))}@media(forced-colors: active){div.mat-mdc-autocomplete-panel{outline:solid 1px}}.cdk-overlay-pane:not(.mat-mdc-autocomplete-panel-above) div.mat-mdc-autocomplete-panel{border-top-left-radius:0;border-top-right-radius:0}.mat-mdc-autocomplete-panel-above div.mat-mdc-autocomplete-panel{border-bottom-left-radius:0;border-bottom-right-radius:0;transform-origin:center bottom}div.mat-mdc-autocomplete-panel.mat-mdc-autocomplete-visible{visibility:visible}div.mat-mdc-autocomplete-panel.mat-mdc-autocomplete-hidden{visibility:hidden;pointer-events:none}@keyframes _mat-autocomplete-enter{from{opacity:0;transform:scaleY(0.8)}to{opacity:1;transform:none}}.mat-autocomplete-panel-animations-enabled{animation:_mat-autocomplete-enter 120ms cubic-bezier(0, 0, 0.2, 1)}mat-autocomplete{display:none} -`],encapsulation:2,changeDetection:0})}return t})();var B_e={provide:tr,useExisting:Kt(()=>y_),multi:!0};var yU=new T("mat-autocomplete-scroll-strategy",{providedIn:"root",factory:()=>{let t=u(de);return()=>wn(t)}});function j_e(t){let n=u(de);return()=>wn(n)}var H_e={provide:yU,deps:[],useFactory:j_e},y_=(()=>{class t{_environmentInjector=u(Wt);_element=u(q);_injector=u(de);_viewContainerRef=u(nt);_zone=u(ae);_changeDetectorRef=u(ye);_dir=u(Vt,{optional:!0});_formField=u(Xo,{optional:!0,host:!0});_viewportRuler=u(Xn);_scrollStrategy=u(yU);_renderer=u(je);_animationsDisabled=Ye();_defaults=u(vU,{optional:!0});_overlayRef;_portal;_componentDestroyed=!1;_initialized=new z;_keydownSubscription;_outsideClickSubscription;_cleanupWindowBlur;_previousValue;_valueOnAttach;_valueOnLastKeydown;_positionStrategy;_manuallyFloatingLabel=!1;_closingActionsSubscription;_viewportSubscription=ke.EMPTY;_breakpointObserver=u(sl);_handsetLandscapeSubscription=ke.EMPTY;_canOpenOnNextFocus=!0;_valueBeforeAutoSelection;_pendingAutoselectedOption;_closeKeyEventStream=new z;_overlayPanelClass=al(this._defaults?.overlayPanelClass||[]);_windowBlurHandler=()=>{this._canOpenOnNextFocus=this.panelOpen||!this._hasFocus()};_onChange=()=>{};_onTouched=()=>{};autocomplete;position="auto";connectedTo;autocompleteAttribute="off";autocompleteDisabled;constructor(){}_aboveClass="mat-mdc-autocomplete-panel-above";ngAfterViewInit(){this._initialized.next(),this._initialized.complete(),this._cleanupWindowBlur=this._renderer.listen("window","blur",this._windowBlurHandler)}ngOnChanges(e){e.position&&this._positionStrategy&&(this._setStrategyPositions(this._positionStrategy),this.panelOpen&&this._overlayRef.updatePosition())}ngOnDestroy(){this._cleanupWindowBlur?.(),this._handsetLandscapeSubscription.unsubscribe(),this._viewportSubscription.unsubscribe(),this._componentDestroyed=!0,this._destroyPanel(),this._closeKeyEventStream.complete(),this._clearFromModal()}get panelOpen(){return this._overlayAttached&&this.autocomplete.showPanel}_overlayAttached=!1;openPanel(){this._openPanelInternal()}closePanel(){this._resetLabel(),this._overlayAttached&&(this.panelOpen&&this._zone.run(()=>{this.autocomplete.closed.emit()}),this.autocomplete._latestOpeningTrigger===this&&(this.autocomplete._isOpen=!1,this.autocomplete._latestOpeningTrigger=null),this._overlayAttached=!1,this._pendingAutoselectedOption=null,this._overlayRef&&this._overlayRef.hasAttached()&&(this._overlayRef.detach(),this._closingActionsSubscription.unsubscribe()),this._updatePanelState(),this._componentDestroyed||this._changeDetectorRef.detectChanges(),this._trackedModal&&sc(this._trackedModal,"aria-owns",this.autocomplete.id))}updatePosition(){this._overlayAttached&&this._overlayRef.updatePosition()}get panelClosingActions(){return Je(this.optionSelections,this.autocomplete._keyManager.tabOut.pipe(ce(()=>this._overlayAttached)),this._closeKeyEventStream,this._getOutsideClickStream(),this._overlayRef?this._overlayRef.detachments().pipe(ce(()=>this._overlayAttached)):Q()).pipe(se(e=>e instanceof nh?e:null))}optionSelections=kn(()=>{let e=this.autocomplete?this.autocomplete.options:null;return e?e.changes.pipe(He(e),$e(()=>Je(...e.map(i=>i.onSelectionChange)))):this._initialized.pipe($e(()=>this.optionSelections))});get activeOption(){return this.autocomplete&&this.autocomplete._keyManager?this.autocomplete._keyManager.activeItem:null}_getOutsideClickStream(){return new Fe(e=>{let i=o=>{let a=Kn(o),s=this._formField?this._formField.getConnectedOverlayOrigin().nativeElement:null,l=this.connectedTo?this.connectedTo.elementRef.nativeElement:null;this._overlayAttached&&a!==this._element.nativeElement&&!this._hasFocus()&&(!s||!s.contains(a))&&(!l||!l.contains(a))&&this._overlayRef&&!this._overlayRef.overlayElement.contains(a)&&e.next(o)},r=[this._renderer.listen("document","click",i),this._renderer.listen("document","auxclick",i),this._renderer.listen("document","touchend",i)];return()=>{r.forEach(o=>o())}})}writeValue(e){Promise.resolve(null).then(()=>this._assignOptionValue(e))}registerOnChange(e){this._onChange=e}registerOnTouched(e){this._onTouched=e}setDisabledState(e){this._element.nativeElement.disabled=e}_handleKeydown(e){let i=e,r=i.keyCode,o=Ft(i);if(r===27&&!o&&i.preventDefault(),this._valueOnLastKeydown=this._element.nativeElement.value,this.activeOption&&r===13&&this.panelOpen&&!o)this.activeOption._selectViaInteraction(),this._resetActiveItem(),i.preventDefault();else if(this.autocomplete){let a=this.autocomplete._keyManager.activeItem,s=r===38||r===40;r===9||s&&!o&&this.panelOpen?this.autocomplete._keyManager.onKeydown(i):s&&this._canOpen()&&this._openPanelInternal(this._valueOnLastKeydown),(s||this.autocomplete._keyManager.activeItem!==a)&&(this._scrollToOption(this.autocomplete._keyManager.activeItemIndex||0),this.autocomplete.autoSelectActiveOption&&this.activeOption&&(this._pendingAutoselectedOption||(this._valueBeforeAutoSelection=this._valueOnLastKeydown),this._pendingAutoselectedOption=this.activeOption,this._assignOptionValue(this.activeOption.value)))}}_handleInput(e){let i=e.target,r=i.value;if(i.type==="number"&&(r=r==""?null:parseFloat(r)),this._previousValue!==r){if(this._previousValue=r,this._pendingAutoselectedOption=null,(!this.autocomplete||!this.autocomplete.requireSelection)&&this._onChange(r),!r)this._clearPreviousSelectedOption(null,!1);else if(this.panelOpen&&!this.autocomplete.requireSelection){let o=this.autocomplete.options?.find(a=>a.selected);if(o){let a=this._getDisplayValue(o.value);r!==a&&o.deselect(!1)}}if(this._canOpen()&&this._hasFocus()){let o=this._valueOnLastKeydown??this._element.nativeElement.value;this._valueOnLastKeydown=null,this._openPanelInternal(o)}}}_handleFocus(){this._canOpenOnNextFocus?this._canOpen()&&(this._previousValue=this._element.nativeElement.value,this._attachOverlay(this._previousValue),this._floatLabel(!0)):this._canOpenOnNextFocus=!0}_handleClick(){this._canOpen()&&!this.panelOpen&&this._openPanelInternal()}_hasFocus(){return _o()===this._element.nativeElement}_floatLabel(e=!1){this._formField&&this._formField.floatLabel==="auto"&&(e?this._formField._animateAndLockLabel():this._formField.floatLabel="always",this._manuallyFloatingLabel=!0)}_resetLabel(){this._manuallyFloatingLabel&&(this._formField&&(this._formField.floatLabel="auto"),this._manuallyFloatingLabel=!1)}_subscribeToClosingActions(){let e=new Fe(r=>{pt(()=>{r.next()},{injector:this._environmentInjector})}),i=this.autocomplete.options?.changes.pipe(Be(()=>this._positionStrategy.reapplyLastPosition()),pa(0))??Q();return Je(e,i).pipe($e(()=>this._zone.run(()=>{let r=this.panelOpen;return this._resetActiveItem(),this._updatePanelState(),this._changeDetectorRef.detectChanges(),this.panelOpen&&this._overlayRef.updatePosition(),r!==this.panelOpen&&(this.panelOpen?this._emitOpened():this.autocomplete.closed.emit()),this.panelClosingActions})),lt(1)).subscribe(r=>this._setValueAndClose(r))}_emitOpened(){this.autocomplete.opened.emit()}_destroyPanel(){this._overlayRef&&(this.closePanel(),this._overlayRef.dispose(),this._overlayRef=null)}_getDisplayValue(e){let i=this.autocomplete;return i&&i.displayWith?i.displayWith(e):e}_assignOptionValue(e){let i=this._getDisplayValue(e);e==null&&this._clearPreviousSelectedOption(null,!1),this._updateNativeInputValue(i??"")}_updateNativeInputValue(e){this._formField?this._formField._control.value=e:this._element.nativeElement.value=e,this._previousValue=e}_setValueAndClose(e){let i=this.autocomplete,r=e?e.source:this._pendingAutoselectedOption;r?(this._clearPreviousSelectedOption(r),this._assignOptionValue(r.value),this._onChange(r.value),i._emitSelectEvent(r),this._element.nativeElement.focus()):i.requireSelection&&this._element.nativeElement.value!==this._valueOnAttach&&(this._clearPreviousSelectedOption(null),this._assignOptionValue(null),this._onChange(null)),this.closePanel()}_clearPreviousSelectedOption(e,i){this.autocomplete?.options?.forEach(r=>{r!==e&&r.selected&&r.deselect(i)})}_openPanelInternal(e=this._element.nativeElement.value){if(this._attachOverlay(e),this._floatLabel(),this._trackedModal){let i=this.autocomplete.id;Zm(this._trackedModal,"aria-owns",i)}}_attachOverlay(e){this.autocomplete;let i=this._overlayRef;i?(this._positionStrategy.setOrigin(this._getConnectedElement()),i.updateSize({width:this._getPanelWidth()})):(this._portal=new Cn(this.autocomplete.template,this._viewContainerRef,{id:this._formField?.getLabelId()}),i=Nr(this._injector,this._getOverlayConfig()),this._overlayRef=i,this._viewportSubscription=this._viewportRuler.change().subscribe(()=>{this.panelOpen&&i&&i.updateSize({width:this._getPanelWidth()})}),this._handsetLandscapeSubscription=this._breakpointObserver.observe(F0.HandsetLandscape).subscribe(o=>{o.matches?this._positionStrategy.withFlexibleDimensions(!0).withGrowAfterOpen(!0).withViewportMargin(8):this._positionStrategy.withFlexibleDimensions(!1).withGrowAfterOpen(!1).withViewportMargin(0)})),i&&!i.hasAttached()&&(i.attach(this._portal),this._valueOnAttach=e,this._valueOnLastKeydown=null,this._closingActionsSubscription=this._subscribeToClosingActions());let r=this.panelOpen;this.autocomplete._isOpen=this._overlayAttached=!0,this.autocomplete._latestOpeningTrigger=this,this.autocomplete._setColor(this._formField?.color),this._updatePanelState(),this._applyModalPanelOwnership(),this.panelOpen&&r!==this.panelOpen&&this._emitOpened()}_handlePanelKeydown=e=>{(e.keyCode===27&&!Ft(e)||e.keyCode===38&&Ft(e,"altKey"))&&(this._pendingAutoselectedOption&&(this._updateNativeInputValue(this._valueBeforeAutoSelection??""),this._pendingAutoselectedOption=null),this._closeKeyEventStream.next(),this._resetActiveItem(),e.stopPropagation(),e.preventDefault())};_updatePanelState(){if(this.autocomplete._setVisibility(),this.panelOpen){let e=this._overlayRef;this._keydownSubscription||(this._keydownSubscription=e.keydownEvents().subscribe(this._handlePanelKeydown)),this._outsideClickSubscription||(this._outsideClickSubscription=e.outsidePointerEvents().subscribe())}else this._keydownSubscription?.unsubscribe(),this._outsideClickSubscription?.unsubscribe(),this._keydownSubscription=this._outsideClickSubscription=null}_getOverlayConfig(){return new Fr({positionStrategy:this._getOverlayPosition(),scrollStrategy:this._scrollStrategy(),width:this._getPanelWidth(),direction:this._dir??void 0,hasBackdrop:this._defaults?.hasBackdrop,backdropClass:this._defaults?.backdropClass||"cdk-overlay-transparent-backdrop",panelClass:this._overlayPanelClass,disableAnimations:this._animationsDisabled})}_getOverlayPosition(){let e=Fa(this._injector,this._getConnectedElement()).withFlexibleDimensions(!1).withPush(!1);return this._setStrategyPositions(e),this._positionStrategy=e,e}_setStrategyPositions(e){let i=[{originX:"start",originY:"bottom",overlayX:"start",overlayY:"top"},{originX:"end",originY:"bottom",overlayX:"end",overlayY:"top"}],r=this._aboveClass,o=[{originX:"start",originY:"top",overlayX:"start",overlayY:"bottom",panelClass:r},{originX:"end",originY:"top",overlayX:"end",overlayY:"bottom",panelClass:r}],a;this.position==="above"?a=o:this.position==="below"?a=i:a=[...i,...o],e.withPositions(a)}_getConnectedElement(){return this.connectedTo?this.connectedTo.elementRef:this._formField?this._formField.getConnectedOverlayOrigin():this._element}_getPanelWidth(){return this.autocomplete.panelWidth||this._getHostWidth()}_getHostWidth(){return this._getConnectedElement().nativeElement.getBoundingClientRect().width}_resetActiveItem(){let e=this.autocomplete;if(e.autoActiveFirstOption){let i=-1;for(let r=0;r .cdk-overlay-container [aria-modal="true"]');if(!e)return;let i=this.autocomplete.id;this._trackedModal&&sc(this._trackedModal,"aria-owns",i),Zm(e,"aria-owns",i),this._trackedModal=e}_clearFromModal(){if(this._trackedModal){let e=this.autocomplete.id;sc(this._trackedModal,"aria-owns",e),this._trackedModal=null}}static \u0275fac=function(i){return new(i||t)};static \u0275dir=F({type:t,selectors:[["input","matAutocomplete",""],["textarea","matAutocomplete",""]],hostAttrs:[1,"mat-mdc-autocomplete-trigger"],hostVars:7,hostBindings:function(i,r){i&1&&S("focusin",function(){return r._handleFocus()})("blur",function(){return r._onTouched()})("input",function(a){return r._handleInput(a)})("keydown",function(a){return r._handleKeydown(a)})("click",function(){return r._handleClick()}),i&2&&X("autocomplete",r.autocompleteAttribute)("role",r.autocompleteDisabled?null:"combobox")("aria-autocomplete",r.autocompleteDisabled?null:"list")("aria-activedescendant",r.panelOpen&&r.activeOption?r.activeOption.id:null)("aria-expanded",r.autocompleteDisabled?null:r.panelOpen.toString())("aria-controls",r.autocompleteDisabled||!r.panelOpen||r.autocomplete==null?null:r.autocomplete.id)("aria-haspopup",r.autocompleteDisabled?null:"listbox")},inputs:{autocomplete:[0,"matAutocomplete","autocomplete"],position:[0,"matAutocompletePosition","position"],connectedTo:[0,"matAutocompleteConnectedTo","connectedTo"],autocompleteAttribute:[0,"autocomplete","autocompleteAttribute"],autocompleteDisabled:[2,"matAutocompleteDisabled","autocompleteDisabled",V]},exportAs:["matAutocompleteTrigger"],features:[Ce([B_e]),Ae]})}return t})(),vw=(()=>{class t{static \u0275fac=function(i){return new(i||t)};static \u0275mod=ee({type:t});static \u0275inj=J({providers:[H_e],imports:[er,rh,we,vr,rh,we]})}return t})();var xU=()=>["HRAdmin","Manager"],z_e=()=>[5,10,25,50,100],U_e=()=>["HRAdmin"];function $_e(t,n){if(t&1){let e=Y();h(0,"button",22),S("click",function(){I(e);let r=C();return A(r.createEmployee())}),h(1,"mat-icon"),_(2,"add"),p(),_(3," Add Employee "),p()}}function W_e(t,n){if(t&1&&(h(0,"mat-option",23),_(1),p()),t&2){let e=n.$implicit;y("value",e),g(),ve(" ",e," ")}}function G_e(t,n){if(t&1&&(h(0,"mat-option",23),_(1),p()),t&2){let e=n.$implicit;y("value",e),g(),ve(" ",e," ")}}function q_e(t,n){if(t&1&&(h(0,"mat-option",23),_(1),p()),t&2){let e=n.$implicit;y("value",e),g(),ve(" ",e," ")}}function Y_e(t,n){if(t&1&&(h(0,"mat-option",23),_(1),p()),t&2){let e=n.$implicit;y("value",e),g(),ve(" ",e," ")}}function Q_e(t,n){if(t&1&&(h(0,"mat-option",23),_(1),p()),t&2){let e=n.$implicit;y("value",e),g(),ve(" ",e," ")}}function K_e(t,n){t&1&&(h(0,"div",24),k(1,"mat-spinner"),p())}function Z_e(t,n){t&1&&(h(0,"th",37),_(1,"Employee #"),p())}function X_e(t,n){if(t&1&&(h(0,"td",38),_(1),p()),t&2){let e=n.$implicit;g(),H(e.employeeNumber)}}function J_e(t,n){t&1&&(h(0,"th",37),_(1,"Name"),p())}function ebe(t,n){if(t&1&&(h(0,"td",38),_(1),p()),t&2){let e=n.$implicit,i=C(2);g(),H(i.getFullName(e))}}function tbe(t,n){t&1&&(h(0,"th",37),_(1,"Email"),p())}function ibe(t,n){if(t&1&&(h(0,"td",38),_(1),p()),t&2){let e=n.$implicit;g(),H(e.email)}}function nbe(t,n){t&1&&(h(0,"th",37),_(1,"Phone"),p())}function rbe(t,n){if(t&1&&(h(0,"td",38),_(1),p()),t&2){let e=n.$implicit;g(),H(e.phoneNumber||e.phone||"-")}}function obe(t,n){t&1&&(h(0,"th",37),_(1,"Position"),p())}function abe(t,n){if(t&1&&(h(0,"td",38),_(1),p()),t&2){let e=n.$implicit;g(),H(e.positionTitle||(e.position==null?null:e.position.positionTitle)||"-")}}function sbe(t,n){t&1&&(h(0,"th",37),_(1,"Actions"),p())}function lbe(t,n){if(t&1){let e=Y();h(0,"button",43),S("click",function(){I(e);let r=C().$implicit,o=C(2);return A(o.editEmployee(r))}),h(1,"mat-icon"),_(2,"edit"),p()()}}function cbe(t,n){if(t&1){let e=Y();h(0,"button",44),S("click",function(){I(e);let r=C().$implicit,o=C(2);return A(o.deleteEmployee(r))}),h(1,"mat-icon"),_(2,"delete"),p()()}}function dbe(t,n){if(t&1){let e=Y();h(0,"td",38)(1,"div",39)(2,"button",40),S("click",function(){let r=I(e).$implicit,o=C(2);return A(o.viewEmployee(r))}),h(3,"mat-icon"),_(4,"visibility"),p()(),R(5,lbe,3,0,"button",41)(6,cbe,3,0,"button",42),p()()}t&2&&(g(5),y("appHasRole",at(2,xU)),g(),y("appHasRole",at(3,U_e)))}function ube(t,n){t&1&&k(0,"tr",45)}function mbe(t,n){t&1&&k(0,"tr",46)}function hbe(t,n){if(t&1&&(h(0,"tr",47)(1,"td",48)(2,"div",49)(3,"mat-icon"),_(4,"info"),p(),h(5,"p"),_(6,"No employees found"),p()()()()),t&2){let e=C(2);g(),X("colspan",e.displayedColumns.length)}}function pbe(t,n){if(t&1&&(h(0,"table",25),jt(1,26),R(2,Z_e,2,0,"th",27)(3,X_e,2,1,"td",28),Lt(),jt(4,29),R(5,J_e,2,0,"th",27)(6,ebe,2,1,"td",28),Lt(),jt(7,30),R(8,tbe,2,0,"th",27)(9,ibe,2,1,"td",28),Lt(),jt(10,31),R(11,nbe,2,0,"th",27)(12,rbe,2,1,"td",28),Lt(),jt(13,32),R(14,obe,2,0,"th",27)(15,abe,2,1,"td",28),Lt(),jt(16,33),R(17,sbe,2,0,"th",27)(18,dbe,7,4,"td",28),Lt(),R(19,ube,1,0,"tr",34)(20,mbe,1,0,"tr",35)(21,hbe,7,1,"tr",36),p()),t&2){let e=C();y("dataSource",e.employees),g(19),y("matHeaderRowDef",e.displayedColumns),g(),y("matRowDefColumns",e.displayedColumns),g(),y("ngIf",e.employees.length===0)}}var CU=(()=>{let n=class n{constructor(){this.employeeService=u(ap),this.authService=u(Tt),this.router=u(Re),this.fb=u(eo),this.snackBar=u(di),this.dialog=u(En),this.employees=[],this.loading=!1,this.totalCount=0,this.pageSize=10,this.pageNumber=1,this.destroy$=new z,this.displayedColumns=["employeeNumber","name","email","phone","positionTitle","actions"]}ngOnInit(){this.initSearchForm(),this.setupAutocomplete(),this.setupAutoSubmit(),this.loadEmployees()}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete()}initSearchForm(){this.searchForm=this.fb.group({FirstName:[""],LastName:[""],Email:[""],EmployeeNumber:[""],PositionTitle:[""]})}setupAutocomplete(){this.filteredEmployeeNumbers$=this.searchForm.get("EmployeeNumber").valueChanges.pipe(He(""),Rt(300),Sn(),$e(i=>this.getAutocompleteOptions("EmployeeNumber",i))),this.filteredFirstNames$=this.searchForm.get("FirstName").valueChanges.pipe(He(""),Rt(300),Sn(),$e(i=>this.getAutocompleteOptions("FirstName",i))),this.filteredLastNames$=this.searchForm.get("LastName").valueChanges.pipe(He(""),Rt(300),Sn(),$e(i=>this.getAutocompleteOptions("LastName",i))),this.filteredEmails$=this.searchForm.get("Email").valueChanges.pipe(He(""),Rt(300),Sn(),$e(i=>this.getAutocompleteOptions("Email",i))),this.filteredPositionTitles$=this.searchForm.get("PositionTitle").valueChanges.pipe(He(""),Rt(300),Sn(),$e(i=>this.getAutocompleteOptions("PositionTitle",i)))}setupAutoSubmit(){this.searchForm.valueChanges.pipe(Rt(500),Sn((i,r)=>JSON.stringify(i)===JSON.stringify(r)),Te(this.destroy$)).subscribe(()=>{this.pageNumber=1,this.loadEmployees()})}getAutocompleteOptions(i,r){if(!r||r.length<2)return Q([]);let o={PageNumber:1,PageSize:10,[i]:r};return this.employeeService.getAllPaged(o).pipe(se(a=>{let s={EmployeeNumber:c=>c.employeeNumber,FirstName:c=>c.firstName,LastName:c=>c.lastName,Email:c=>c.email,PositionTitle:c=>c.positionTitle||""};return a.value.map(c=>s[i](c)).filter((c,d,m)=>c&&m.indexOf(c)===d)}),fi(()=>Q([])))}loadEmployees(){this.loading=!0;let i=M({PageNumber:this.pageNumber,PageSize:this.pageSize},this.searchForm.value);Object.keys(i).forEach(r=>{(i[r]===""||i[r]===null||i[r]===void 0)&&delete i[r]}),this.employeeService.getAllPaged(i).subscribe({next:r=>{this.employees=r.value,this.totalCount=r.recordsTotal,this.loading=!1},error:r=>{console.error("Error loading employees:",r),this.loading=!1}})}onClearSearch(){this.searchForm.reset(),this.pageNumber=1,this.paginator&&(this.paginator.pageIndex=0),this.loadEmployees()}onPageChange(i){this.pageSize=i.pageSize,this.pageNumber=i.pageIndex+1,this.loadEmployees()}getFullName(i){return[i.prefix,i.firstName,i.middleName,i.lastName].filter(Boolean).join(" ")}viewEmployee(i){this.router.navigate(["/employees",i.id])}editEmployee(i){this.router.navigate(["/employees","edit",i.id])}deleteEmployee(i){let r=this.getFullName(i);this.dialog.open(Er,{width:"400px",data:{title:"Delete Employee",message:`Are you sure you want to delete ${r}? This action cannot be undone.`,confirmText:"Delete",cancelText:"Cancel"}}).afterClosed().subscribe(a=>{a&&this.employeeService.delete(i.id).subscribe({next:()=>{this.snackBar.open(`${r} has been deleted.`,"Close",{duration:3e3,horizontalPosition:"end",verticalPosition:"top"}),this.loadEmployees()},error:s=>{console.error("Error deleting employee:",s),this.snackBar.open("Failed to delete employee. Please try again.","Close",{duration:4e3,horizontalPosition:"end",verticalPosition:"top"})}})})}createEmployee(){this.router.navigate(["/employees","create"])}canEdit(){return this.authService.isHRAdmin()||this.authService.isManager()}canDelete(){return this.authService.isHRAdmin()}canCreate(){return this.authService.isHRAdmin()||this.authService.isManager()}};n.\u0275fac=function(r){return new(r||n)},n.\u0275cmp=E({type:n,selectors:[["app-employee-list"]],viewQuery:function(r,o){if(r&1&&ie(ir,5),r&2){let a;B(a=j())&&(o.paginator=a.first)}},decls:59,vars:30,consts:[["autoEmployeeNumber","matAutocomplete"],["autoFirstName","matAutocomplete"],["autoLastName","matAutocomplete"],["autoEmail","matAutocomplete"],["autoPositionTitle","matAutocomplete"],[1,"flex-spacer"],["mat-raised-button","","color","primary",3,"click",4,"appHasRole"],[1,"search-form",3,"formGroup"],[1,"search-row"],["appearance","outline"],["matInput","","formControlName","EmployeeNumber",3,"matAutocomplete"],[3,"value",4,"ngFor","ngForOf"],["matInput","","formControlName","FirstName",3,"matAutocomplete"],["matInput","","formControlName","LastName",3,"matAutocomplete"],["matInput","","formControlName","Email",3,"matAutocomplete"],["matInput","","formControlName","PositionTitle",3,"matAutocomplete"],[1,"search-buttons"],["mat-raised-button","","color","accent","type","button",3,"click"],[1,"table-container"],["class","loading-spinner",4,"ngIf"],["mat-table","","class","employee-table",3,"dataSource",4,"ngIf"],["showFirstLastButtons","",3,"page","length","pageSize","pageSizeOptions","pageIndex"],["mat-raised-button","","color","primary",3,"click"],[3,"value"],[1,"loading-spinner"],["mat-table","",1,"employee-table",3,"dataSource"],["matColumnDef","employeeNumber"],["mat-header-cell","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","name"],["matColumnDef","email"],["matColumnDef","phone"],["matColumnDef","positionTitle"],["matColumnDef","actions"],["mat-header-row","",4,"matHeaderRowDef"],["mat-row","",4,"matRowDef","matRowDefColumns"],["class","mat-row",4,"ngIf"],["mat-header-cell",""],["mat-cell",""],[1,"action-buttons"],["mat-icon-button","","color","primary","matTooltip","View Details",3,"click"],["mat-icon-button","","color","accent","matTooltip","Edit Employee",3,"click",4,"appHasRole"],["mat-icon-button","","color","warn","matTooltip","Delete Employee",3,"click",4,"appHasRole"],["mat-icon-button","","color","accent","matTooltip","Edit Employee",3,"click"],["mat-icon-button","","color","warn","matTooltip","Delete Employee",3,"click"],["mat-header-row",""],["mat-row",""],[1,"mat-row"],[1,"mat-cell"],[1,"no-data"]],template:function(r,o){if(r&1){let a=Y();k(0,"page-header"),h(1,"mat-card")(2,"mat-card-header")(3,"mat-card-title"),_(4,"Employee Directory"),p(),k(5,"div",5),R(6,$_e,4,0,"button",6),p(),h(7,"mat-card-content")(8,"form",7)(9,"div",8)(10,"mat-form-field",9)(11,"mat-label"),_(12,"Employee Number"),p(),k(13,"input",10),h(14,"mat-autocomplete",null,0),R(16,W_e,2,2,"mat-option",11),me(17,"async"),p()(),h(18,"mat-form-field",9)(19,"mat-label"),_(20,"First Name"),p(),k(21,"input",12),h(22,"mat-autocomplete",null,1),R(24,G_e,2,2,"mat-option",11),me(25,"async"),p()(),h(26,"mat-form-field",9)(27,"mat-label"),_(28,"Last Name"),p(),k(29,"input",13),h(30,"mat-autocomplete",null,2),R(32,q_e,2,2,"mat-option",11),me(33,"async"),p()(),h(34,"mat-form-field",9)(35,"mat-label"),_(36,"Email"),p(),k(37,"input",14),h(38,"mat-autocomplete",null,3),R(40,Y_e,2,2,"mat-option",11),me(41,"async"),p()(),h(42,"mat-form-field",9)(43,"mat-label"),_(44,"Position Title"),p(),k(45,"input",15),h(46,"mat-autocomplete",null,4),R(48,Q_e,2,2,"mat-option",11),me(49,"async"),p()(),h(50,"div",16)(51,"button",17),S("click",function(){return I(a),A(o.onClearSearch())}),h(52,"mat-icon"),_(53,"clear"),p(),_(54," Clear Filters "),p()()()(),h(55,"div",18),R(56,K_e,2,0,"div",19)(57,pbe,22,4,"table",20),p(),h(58,"mat-paginator",21),S("page",function(l){return I(a),A(o.onPageChange(l))}),p()()()}if(r&2){let a=Se(15),s=Se(23),l=Se(31),c=Se(39),d=Se(47);g(6),y("appHasRole",at(28,xU)),g(2),y("formGroup",o.searchForm),g(5),y("matAutocomplete",a),g(3),y("ngForOf",Oe(17,18,o.filteredEmployeeNumbers$)),g(5),y("matAutocomplete",s),g(3),y("ngForOf",Oe(25,20,o.filteredFirstNames$)),g(5),y("matAutocomplete",l),g(3),y("ngForOf",Oe(33,22,o.filteredLastNames$)),g(5),y("matAutocomplete",c),g(3),y("ngForOf",Oe(41,24,o.filteredEmails$)),g(5),y("matAutocomplete",d),g(3),y("ngForOf",Oe(49,26,o.filteredPositionTitles$)),g(8),y("ngIf",o.loading),g(),y("ngIf",!o.loading),g(),y("length",o.totalCount)("pageSize",o.pageSize)("pageSizeOptions",at(29,z_e))("pageIndex",o.pageNumber-1)}},dependencies:[gt,qr,li,zn,Jr,Qi,ei,Xr,Ki,Lr,ze,kt,ti,$t,zt,Ut,Jt,Xt,ot,mt,rr,hn,Oi,sn,$i,Zc,Hc,Uc,qc,$c,zc,Yc,Wc,Gc,Qc,Kc,_c,ir,Si,ki,Br,Eo,vw,bw,xn,y_,pi,Mn,ni,Un,rn],styles:["mat-card[_ngcontent-%COMP%]{margin:16px}mat-card-header[_ngcontent-%COMP%]{display:flex;align-items:center;margin-bottom:16px;padding:16px;border-bottom:1px solid rgba(0,0,0,.12)}mat-card-header[_ngcontent-%COMP%] mat-card-title[_ngcontent-%COMP%]{font-size:20px;font-weight:500;margin:0}mat-card-header[_ngcontent-%COMP%] .flex-spacer[_ngcontent-%COMP%]{flex:1 1 auto}mat-card-header[_ngcontent-%COMP%] button[_ngcontent-%COMP%] mat-icon[_ngcontent-%COMP%]{margin-right:4px}mat-card-content[_ngcontent-%COMP%]{padding:0}.search-form[_ngcontent-%COMP%]{padding:16px;background-color:#f5f5f5;margin-bottom:0}.search-form[_ngcontent-%COMP%] .search-row[_ngcontent-%COMP%]{display:grid;grid-template-columns:repeat(auto-fit,minmax(180px,1fr));gap:16px;align-items:start}.search-form[_ngcontent-%COMP%] .search-row[_ngcontent-%COMP%] mat-form-field[_ngcontent-%COMP%]{width:100%}.search-form[_ngcontent-%COMP%] .search-row[_ngcontent-%COMP%] .search-buttons[_ngcontent-%COMP%]{display:flex;gap:8px;align-items:center}.search-form[_ngcontent-%COMP%] .search-row[_ngcontent-%COMP%] .search-buttons[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{white-space:nowrap}.search-form[_ngcontent-%COMP%] .search-row[_ngcontent-%COMP%] .search-buttons[_ngcontent-%COMP%] button[_ngcontent-%COMP%] mat-icon[_ngcontent-%COMP%]{margin-right:4px}.table-container[_ngcontent-%COMP%]{position:relative;min-height:300px;overflow-x:auto}.loading-spinner[_ngcontent-%COMP%]{display:flex;justify-content:center;align-items:center;min-height:300px}.employee-table[_ngcontent-%COMP%]{width:100%}.employee-table[_ngcontent-%COMP%] th[_ngcontent-%COMP%]{font-weight:600;font-size:14px;color:#000000de}.employee-table[_ngcontent-%COMP%] td[_ngcontent-%COMP%]{font-size:14px;color:#000000de}.employee-table[_ngcontent-%COMP%] .mat-column-employeeNumber[_ngcontent-%COMP%]{width:120px}.employee-table[_ngcontent-%COMP%] .mat-column-name[_ngcontent-%COMP%], .employee-table[_ngcontent-%COMP%] .mat-column-email[_ngcontent-%COMP%]{min-width:200px}.employee-table[_ngcontent-%COMP%] .mat-column-phone[_ngcontent-%COMP%]{width:150px}.employee-table[_ngcontent-%COMP%] .mat-column-positionTitle[_ngcontent-%COMP%]{min-width:200px}.employee-table[_ngcontent-%COMP%] .mat-column-actions[_ngcontent-%COMP%]{width:120px;text-align:right}.employee-table[_ngcontent-%COMP%] .mat-column-actions[_ngcontent-%COMP%] .action-buttons[_ngcontent-%COMP%]{display:flex;justify-content:flex-end;align-items:center;gap:4px}.no-data[_ngcontent-%COMP%]{display:flex;flex-direction:column;align-items:center;justify-content:center;padding:48px 16px;color:#0000008a}.no-data[_ngcontent-%COMP%] mat-icon[_ngcontent-%COMP%]{font-size:48px;width:48px;height:48px;margin-bottom:16px}.no-data[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{margin:0;font-size:16px}mat-paginator[_ngcontent-%COMP%]{border-top:1px solid rgba(0,0,0,.12)}"]});let t=n;return t})();var Ou=(function(t){return t[t.Male=0]="Male",t[t.Female=1]="Female",t})(Ou||{});var fbe=()=>["HRAdmin","Manager"],gbe=()=>["HRAdmin"];function _be(t,n){t&1&&(h(0,"div",2),k(1,"mat-spinner"),p())}function bbe(t,n){if(t&1){let e=Y();h(0,"button",14),S("click",function(){I(e);let r=C(2);return A(r.editEmployee())}),h(1,"mat-icon"),_(2,"edit"),p(),_(3," Edit "),p()}}function vbe(t,n){if(t&1){let e=Y();h(0,"button",15),S("click",function(){I(e);let r=C(2);return A(r.deleteEmployee())}),h(1,"mat-icon"),_(2,"delete"),p(),_(3," Delete "),p()}}function ybe(t,n){if(t&1&&(h(0,"mat-list-item")(1,"span",10),_(2,"Address"),p(),h(3,"span",11),_(4),p()()),t&2){let e=C(2);g(4),H(e.employee.address)}}function xbe(t,n){if(t&1&&(h(0,"mat-list-item")(1,"span",10),_(2,"Hire Date"),p(),h(3,"span",11),_(4),me(5,"date"),p()()),t&2){let e=C(2);g(4),H(Oe(5,1,e.employee.hireDate))}}function Cbe(t,n){if(t&1&&(h(0,"mat-list-item")(1,"span",10),_(2,"Salary Range"),p(),h(3,"span",11),_(4),me(5,"number"),me(6,"number"),p()()),t&2){let e=C(2);g(4),Cm(" ",e.employee.salaryRange.name," ($",Oe(5,3,e.employee.salaryRange.minSalary)," - $",Oe(6,5,e.employee.salaryRange.maxSalary),") ")}}function wbe(t,n){if(t&1&&(h(0,"mat-list-item")(1,"span",10),_(2,"Created"),p(),h(3,"span",11),_(4),me(5,"date"),p()()),t&2){let e=C(3);g(4),H(Ni(5,1,e.employee.createdAt,"medium"))}}function Dbe(t,n){if(t&1&&(h(0,"mat-list-item")(1,"span",10),_(2,"Last Modified"),p(),h(3,"span",11),_(4),me(5,"date"),p()()),t&2){let e=C(3);g(4),H(Ni(5,1,e.employee.lastModifiedAt,"medium"))}}function Ebe(t,n){if(t&1&&(h(0,"div",9)(1,"h3"),_(2,"Audit Information"),p(),k(3,"mat-divider"),h(4,"mat-list"),R(5,wbe,6,4,"mat-list-item",1)(6,Dbe,6,4,"mat-list-item",1),p()()),t&2){let e=C(2);g(5),y("ngIf",e.employee.createdAt),g(),y("ngIf",e.employee.lastModifiedAt)}}function Mbe(t,n){if(t&1){let e=Y();h(0,"mat-card")(1,"mat-card-header")(2,"mat-card-title"),_(3),p(),k(4,"div",3),h(5,"div",4)(6,"button",5),S("click",function(){I(e);let r=C();return A(r.goBack())}),h(7,"mat-icon"),_(8,"arrow_back"),p(),_(9," Back to List "),p(),R(10,bbe,4,0,"button",6)(11,vbe,4,0,"button",7),p()(),h(12,"mat-card-content")(13,"div",8)(14,"div",9)(15,"h3"),_(16,"Personal Information"),p(),k(17,"mat-divider"),h(18,"mat-list")(19,"mat-list-item")(20,"span",10),_(21,"Employee Number"),p(),h(22,"span",11),_(23),p()(),h(24,"mat-list-item")(25,"span",10),_(26,"Full Name"),p(),h(27,"span",11),_(28),p()(),h(29,"mat-list-item")(30,"span",10),_(31,"Date of Birth"),p(),h(32,"span",11),_(33),me(34,"date"),p()(),h(35,"mat-list-item")(36,"span",10),_(37,"Gender"),p(),h(38,"span",11),_(39),p()()()(),h(40,"div",9)(41,"h3"),_(42,"Contact Information"),p(),k(43,"mat-divider"),h(44,"mat-list")(45,"mat-list-item")(46,"span",10),_(47,"Email"),p(),h(48,"span",11)(49,"a",12),_(50),p()()(),h(51,"mat-list-item")(52,"span",10),_(53,"Phone Number"),p(),h(54,"span",11)(55,"a",12),_(56),p()()(),R(57,ybe,5,1,"mat-list-item",1),p()(),h(58,"div",9)(59,"h3"),_(60,"Employment Information"),p(),k(61,"mat-divider"),h(62,"mat-list"),R(63,xbe,6,3,"mat-list-item",1),h(64,"mat-list-item")(65,"span",10),_(66,"Salary"),p(),h(67,"span",11),_(68),me(69,"currency"),p()(),h(70,"mat-list-item")(71,"span",10),_(72,"Department"),p(),h(73,"span",11),_(74),p()(),h(75,"mat-list-item")(76,"span",10),_(77,"Position"),p(),h(78,"span",11),_(79),p()(),R(80,Cbe,7,7,"mat-list-item",1),p()(),R(81,Ebe,7,2,"div",13),p()()()}if(t&2){let e=C();g(3),H(e.getFullName()),g(7),y("appHasRole",at(22,fbe)),g(),y("appHasRole",at(23,gbe)),g(12),H(e.employee.employeeNumber),g(5),H(e.getFullName()),g(5),H(Oe(34,18,e.employee.dateOfBirth||e.employee.birthday)),g(6),H(e.getGenderLabel(e.employee.gender)),g(10),y("href","mailto:"+e.employee.email,$r),g(),H(e.employee.email),g(5),y("href","tel:"+(e.employee.phoneNumber||e.employee.phone),$r),g(),H(e.employee.phoneNumber||e.employee.phone),g(),y("ngIf",e.employee.address),g(6),y("ngIf",e.employee.hireDate),g(5),H(Oe(69,20,e.employee.salary)),g(6),H(e.employee.departmentName||(e.employee.department==null?null:e.employee.department.name)||"N/A"),g(5),H(e.employee.positionTitle||(e.employee.position==null?null:e.employee.position.positionTitle)||"N/A"),g(),y("ngIf",e.employee.salaryRange),g(),y("ngIf",e.employee.createdAt||e.employee.lastModifiedAt)}}function kbe(t,n){if(t&1){let e=Y();h(0,"mat-card")(1,"mat-card-content")(2,"div",16)(3,"mat-icon"),_(4,"error"),p(),h(5,"p"),_(6,"Employee not found"),p(),h(7,"button",17),S("click",function(){I(e);let r=C();return A(r.goBack())}),_(8," Go Back "),p()()()()}}var wU=(()=>{let n=class n{constructor(){this.employeeService=u(ap),this.authService=u(Tt),this.router=u(Re),this.route=u(wi),this.snackBar=u(di),this.dialog=u(En),this.loading=!1}ngOnInit(){let i=this.route.snapshot.paramMap.get("id");i&&this.loadEmployee(i)}loadEmployee(i){this.loading=!0,this.employeeService.getById(i).subscribe({next:r=>{this.employee=r,this.loading=!1},error:r=>{console.error("Error loading employee:",r),this.loading=!1,this.router.navigate(["/employees"])}})}getFullName(){return this.employee?[this.employee.prefix,this.employee.firstName,this.employee.middleName,this.employee.lastName,this.employee.suffix].filter(Boolean).join(" "):""}getGenderLabel(i){return i===Ou.Male?"Male":"Female"}editEmployee(){this.employee&&this.router.navigate(["/employees","edit",this.employee.id])}deleteEmployee(){if(!this.employee)return;let i=this.getFullName();this.dialog.open(Er,{width:"400px",data:{title:"Delete Employee",message:`Are you sure you want to delete ${i}? This action cannot be undone.`,confirmText:"Delete",cancelText:"Cancel"}}).afterClosed().subscribe(o=>{o&&this.employeeService.delete(this.employee.id).subscribe({next:()=>{let a=this.snackBar.open(`${i} has been deleted.`,"Close",{duration:3e3,horizontalPosition:"end",verticalPosition:"top"});a.afterDismissed().subscribe(()=>this.router.navigate(["/employees"])),a.onAction().subscribe(()=>this.router.navigate(["/employees"]))},error:a=>{console.error("Error deleting employee:",a),this.snackBar.open("Failed to delete employee. Please try again.","Close",{duration:4e3,horizontalPosition:"end",verticalPosition:"top"})}})})}goBack(){this.router.navigate(["/employees"])}canEdit(){return this.authService.isHRAdmin()||this.authService.isManager()}canDelete(){return this.authService.isHRAdmin()}};n.\u0275fac=function(r){return new(r||n)},n.\u0275cmp=E({type:n,selectors:[["app-employee-detail"]],decls:4,vars:3,consts:[["class","loading-spinner",4,"ngIf"],[4,"ngIf"],[1,"loading-spinner"],[1,"flex-spacer"],[1,"header-actions"],["mat-stroked-button","",3,"click"],["mat-raised-button","","color","accent",3,"click",4,"appHasRole"],["mat-raised-button","","color","warn",3,"click",4,"appHasRole"],[1,"detail-container"],[1,"detail-section"],["matListItemTitle",""],["matListItemLine",""],[3,"href"],["class","detail-section",4,"ngIf"],["mat-raised-button","","color","accent",3,"click"],["mat-raised-button","","color","warn",3,"click"],[1,"no-data"],["mat-raised-button","","color","primary",3,"click"]],template:function(r,o){r&1&&(k(0,"page-header"),R(1,_be,2,0,"div",0)(2,Mbe,82,24,"mat-card",1)(3,kbe,9,0,"mat-card",1)),r&2&&(g(),y("ngIf",o.loading),g(),y("ngIf",!o.loading&&o.employee),g(),y("ngIf",!o.loading&&!o.employee))},dependencies:[gt,li,ze,kt,$t,zt,Ut,Jt,Xt,ot,mt,Si,ki,sa,Ha,ca,Fs,la,Tu,Dl,pi,Mn,ni,Un,ff,il,Sa],styles:[".loading-spinner[_ngcontent-%COMP%]{display:flex;justify-content:center;align-items:center;min-height:400px}mat-card[_ngcontent-%COMP%]{margin:16px;max-width:1200px}mat-card-header[_ngcontent-%COMP%]{display:flex;align-items:center;padding:16px;border-bottom:1px solid rgba(0,0,0,.12)}mat-card-header[_ngcontent-%COMP%] mat-card-title[_ngcontent-%COMP%]{font-size:24px;font-weight:500;margin:0}mat-card-header[_ngcontent-%COMP%] .flex-spacer[_ngcontent-%COMP%]{flex:1 1 auto}mat-card-header[_ngcontent-%COMP%] .header-actions[_ngcontent-%COMP%]{display:flex;gap:12px}mat-card-header[_ngcontent-%COMP%] .header-actions[_ngcontent-%COMP%] button[_ngcontent-%COMP%] mat-icon[_ngcontent-%COMP%]{margin-right:4px}mat-card-content[_ngcontent-%COMP%]{padding:24px}.detail-container[_ngcontent-%COMP%]{display:grid;grid-template-columns:1fr 1fr;gap:24px}@media (max-width: 768px){.detail-container[_ngcontent-%COMP%]{grid-template-columns:1fr}}.detail-section[_ngcontent-%COMP%] h3[_ngcontent-%COMP%]{font-size:16px;font-weight:500;margin:0 0 8px;color:#000000de}.detail-section[_ngcontent-%COMP%] mat-divider[_ngcontent-%COMP%]{margin-bottom:16px}.detail-section[_ngcontent-%COMP%] mat-list[_ngcontent-%COMP%]{padding:0}.detail-section[_ngcontent-%COMP%] mat-list-item[_ngcontent-%COMP%]{height:auto;min-height:48px;padding:8px 0}.detail-section[_ngcontent-%COMP%] mat-list-item[_ngcontent-%COMP%] span[matListItemTitle][_ngcontent-%COMP%]{font-weight:500;color:#0009;font-size:12px;text-transform:uppercase;letter-spacing:.5px}.detail-section[_ngcontent-%COMP%] mat-list-item[_ngcontent-%COMP%] span[matListItemLine][_ngcontent-%COMP%]{font-size:14px;color:#000000de;margin-top:4px;white-space:normal;word-break:break-word}.detail-section[_ngcontent-%COMP%] mat-list-item[_ngcontent-%COMP%] span[matListItemLine][_ngcontent-%COMP%] a[_ngcontent-%COMP%]{color:#1976d2;text-decoration:none}.detail-section[_ngcontent-%COMP%] mat-list-item[_ngcontent-%COMP%] span[matListItemLine][_ngcontent-%COMP%] a[_ngcontent-%COMP%]:hover{text-decoration:underline}.no-data[_ngcontent-%COMP%]{display:flex;flex-direction:column;align-items:center;justify-content:center;padding:48px 16px;color:#0000008a}.no-data[_ngcontent-%COMP%] mat-icon[_ngcontent-%COMP%]{font-size:64px;width:64px;height:64px;margin-bottom:16px;color:#f44336}.no-data[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{margin:0 0 24px;font-size:18px}"]});let t=n;return t})();var Tbe=["mat-calendar-body",""];function Ibe(t,n){return this._trackRow(n)}var IU=(t,n)=>n.id;function Abe(t,n){if(t&1&&(h(0,"tr",0)(1,"td",3),_(2),p()()),t&2){let e=C();g(),Dt("padding-top",e._cellPadding)("padding-bottom",e._cellPadding),X("colspan",e.numCols),g(),ve(" ",e.label," ")}}function Obe(t,n){if(t&1&&(h(0,"td",3),_(1),p()),t&2){let e=C(2);Dt("padding-top",e._cellPadding)("padding-bottom",e._cellPadding),X("colspan",e._firstRowOffset),g(),ve(" ",e._firstRowOffset>=e.labelMinRequiredCells?e.label:""," ")}}function Rbe(t,n){if(t&1){let e=Y();h(0,"td",6)(1,"button",7),S("click",function(r){let o=I(e).$implicit,a=C(2);return A(a._cellClicked(o,r))})("focus",function(r){let o=I(e).$implicit,a=C(2);return A(a._emitActiveDateChange(o,r))}),h(2,"span",8),_(3),p(),k(4,"span",9),p()()}if(t&2){let e=n.$implicit,i=n.$index,r=C().$index,o=C();Dt("width",o._cellWidth)("padding-top",o._cellPadding)("padding-bottom",o._cellPadding),X("data-mat-row",r)("data-mat-col",i),g(),G("mat-calendar-body-disabled",!e.enabled)("mat-calendar-body-active",o._isActiveCell(r,i))("mat-calendar-body-range-start",o._isRangeStart(e.compareValue))("mat-calendar-body-range-end",o._isRangeEnd(e.compareValue))("mat-calendar-body-in-range",o._isInRange(e.compareValue))("mat-calendar-body-comparison-bridge-start",o._isComparisonBridgeStart(e.compareValue,r,i))("mat-calendar-body-comparison-bridge-end",o._isComparisonBridgeEnd(e.compareValue,r,i))("mat-calendar-body-comparison-start",o._isComparisonStart(e.compareValue))("mat-calendar-body-comparison-end",o._isComparisonEnd(e.compareValue))("mat-calendar-body-in-comparison-range",o._isInComparisonRange(e.compareValue))("mat-calendar-body-preview-start",o._isPreviewStart(e.compareValue))("mat-calendar-body-preview-end",o._isPreviewEnd(e.compareValue))("mat-calendar-body-in-preview",o._isInPreview(e.compareValue)),y("ngClass",e.cssClasses)("tabindex",o._isActiveCell(r,i)?0:-1),X("aria-label",e.ariaLabel)("aria-disabled",!e.enabled||null)("aria-pressed",o._isSelected(e.compareValue))("aria-current",o.todayValue===e.compareValue?"date":null)("aria-describedby",o._getDescribedby(e.compareValue)),g(),G("mat-calendar-body-selected",o._isSelected(e.compareValue))("mat-calendar-body-comparison-identical",o._isComparisonIdentical(e.compareValue))("mat-calendar-body-today",o.todayValue===e.compareValue),g(),ve(" ",e.displayValue," ")}}function Pbe(t,n){if(t&1&&(h(0,"tr",1),N(1,Obe,2,6,"td",4),xt(2,Rbe,5,48,"td",5,IU),p()),t&2){let e=n.$implicit,i=n.$index,r=C();g(),L(i===0&&r._firstRowOffset?1:-1),g(),Ct(e)}}function Fbe(t,n){if(t&1&&(h(0,"th",2)(1,"span",6),_(2),p(),h(3,"span",3),_(4),p()()),t&2){let e=n.$implicit;g(2),H(e.long),g(2),H(e.narrow)}}var Nbe=["*"];function Lbe(t,n){}function Vbe(t,n){if(t&1){let e=Y();h(0,"mat-month-view",4),Uo("activeDateChange",function(r){I(e);let o=C();return Ca(o.activeDate,r)||(o.activeDate=r),A(r)}),S("_userSelection",function(r){I(e);let o=C();return A(o._dateSelected(r))})("dragStarted",function(r){I(e);let o=C();return A(o._dragStarted(r))})("dragEnded",function(r){I(e);let o=C();return A(o._dragEnded(r))}),p()}if(t&2){let e=C();zo("activeDate",e.activeDate),y("selected",e.selected)("dateFilter",e.dateFilter)("maxDate",e.maxDate)("minDate",e.minDate)("dateClass",e.dateClass)("comparisonStart",e.comparisonStart)("comparisonEnd",e.comparisonEnd)("startDateAccessibleName",e.startDateAccessibleName)("endDateAccessibleName",e.endDateAccessibleName)("activeDrag",e._activeDrag)}}function Bbe(t,n){if(t&1){let e=Y();h(0,"mat-year-view",5),Uo("activeDateChange",function(r){I(e);let o=C();return Ca(o.activeDate,r)||(o.activeDate=r),A(r)}),S("monthSelected",function(r){I(e);let o=C();return A(o._monthSelectedInYearView(r))})("selectedChange",function(r){I(e);let o=C();return A(o._goToDateInView(r,"month"))}),p()}if(t&2){let e=C();zo("activeDate",e.activeDate),y("selected",e.selected)("dateFilter",e.dateFilter)("maxDate",e.maxDate)("minDate",e.minDate)("dateClass",e.dateClass)}}function jbe(t,n){if(t&1){let e=Y();h(0,"mat-multi-year-view",6),Uo("activeDateChange",function(r){I(e);let o=C();return Ca(o.activeDate,r)||(o.activeDate=r),A(r)}),S("yearSelected",function(r){I(e);let o=C();return A(o._yearSelectedInMultiYearView(r))})("selectedChange",function(r){I(e);let o=C();return A(o._goToDateInView(r,"year"))}),p()}if(t&2){let e=C();zo("activeDate",e.activeDate),y("selected",e.selected)("dateFilter",e.dateFilter)("maxDate",e.maxDate)("minDate",e.minDate)("dateClass",e.dateClass)}}function Hbe(t,n){}var zbe=["button"],Ube=[[["","matDatepickerToggleIcon",""]]],$be=["[matDatepickerToggleIcon]"];function Wbe(t,n){t&1&&(Gt(),h(0,"svg",2),k(1,"path",3),p())}var dp=(()=>{class t{changes=new z;calendarLabel="Calendar";openCalendarLabel="Open calendar";closeCalendarLabel="Close calendar";prevMonthLabel="Previous month";nextMonthLabel="Next month";prevYearLabel="Previous year";nextYearLabel="Next year";prevMultiYearLabel="Previous 24 years";nextMultiYearLabel="Next 24 years";switchToMonthViewLabel="Choose date";switchToMultiYearViewLabel="Choose month and year";startDateLabel="Start date";endDateLabel="End date";comparisonDateLabel="Comparison range";formatYearRange(e,i){return`${e} \u2013 ${i}`}formatYearRangeLabel(e,i){return`${e} to ${i}`}static \u0275fac=function(i){return new(i||t)};static \u0275prov=O({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),Gbe=0,C_=class{value;displayValue;ariaLabel;enabled;cssClasses;compareValue;rawValue;id=Gbe++;constructor(n,e,i,r,o={},a=n,s){this.value=n,this.displayValue=e,this.ariaLabel=i,this.enabled=r,this.cssClasses=o,this.compareValue=a,this.rawValue=s}},qbe={passive:!1,capture:!0},xw={passive:!0,capture:!0},DU={passive:!0},cp=(()=>{class t{_elementRef=u(q);_ngZone=u(ae);_platform=u(qe);_intl=u(dp);_eventCleanups;_skipNextFocus;_focusActiveCellAfterViewChecked=!1;label;rows;todayValue;startValue;endValue;labelMinRequiredCells;numCols=7;activeCell=0;ngAfterViewChecked(){this._focusActiveCellAfterViewChecked&&(this._focusActiveCell(),this._focusActiveCellAfterViewChecked=!1)}isRange=!1;cellAspectRatio=1;comparisonStart;comparisonEnd;previewStart=null;previewEnd=null;startDateAccessibleName;endDateAccessibleName;selectedValueChange=new U;previewChange=new U;activeDateChange=new U;dragStarted=new U;dragEnded=new U;_firstRowOffset;_cellPadding;_cellWidth;_startDateLabelId;_endDateLabelId;_comparisonStartDateLabelId;_comparisonEndDateLabelId;_didDragSinceMouseDown=!1;_injector=u(de);comparisonDateAccessibleName=this._intl.comparisonDateLabel;_trackRow=e=>e;constructor(){let e=u(je),i=u(Ze);this._startDateLabelId=i.getId("mat-calendar-body-start-"),this._endDateLabelId=i.getId("mat-calendar-body-end-"),this._comparisonStartDateLabelId=i.getId("mat-calendar-body-comparison-start-"),this._comparisonEndDateLabelId=i.getId("mat-calendar-body-comparison-end-"),u(ut).load(Di),this._ngZone.runOutsideAngular(()=>{let r=this._elementRef.nativeElement,o=[e.listen(r,"touchmove",this._touchmoveHandler,qbe),e.listen(r,"mouseenter",this._enterHandler,xw),e.listen(r,"focus",this._enterHandler,xw),e.listen(r,"mouseleave",this._leaveHandler,xw),e.listen(r,"blur",this._leaveHandler,xw),e.listen(r,"mousedown",this._mousedownHandler,DU),e.listen(r,"touchstart",this._mousedownHandler,DU)];this._platform.isBrowser&&o.push(e.listen("window","mouseup",this._mouseupHandler),e.listen("window","touchend",this._touchendHandler)),this._eventCleanups=o})}_cellClicked(e,i){this._didDragSinceMouseDown||e.enabled&&this.selectedValueChange.emit({value:e.value,event:i})}_emitActiveDateChange(e,i){e.enabled&&this.activeDateChange.emit({value:e.value,event:i})}_isSelected(e){return this.startValue===e||this.endValue===e}ngOnChanges(e){let i=e.numCols,{rows:r,numCols:o}=this;(e.rows||i)&&(this._firstRowOffset=r&&r.length&&r[0].length?o-r[0].length:0),(e.cellAspectRatio||i||!this._cellPadding)&&(this._cellPadding=`${50*this.cellAspectRatio/o}%`),(i||!this._cellWidth)&&(this._cellWidth=`${100/o}%`)}ngOnDestroy(){this._eventCleanups.forEach(e=>e())}_isActiveCell(e,i){let r=e*this.numCols+i;return e&&(r-=this._firstRowOffset),r==this.activeCell}_focusActiveCell(e=!0){pt(()=>{setTimeout(()=>{let i=this._elementRef.nativeElement.querySelector(".mat-calendar-body-active");i&&(e||(this._skipNextFocus=!0),i.focus())})},{injector:this._injector})}_scheduleFocusActiveCellAfterViewChecked(){this._focusActiveCellAfterViewChecked=!0}_isRangeStart(e){return XI(e,this.startValue,this.endValue)}_isRangeEnd(e){return JI(e,this.startValue,this.endValue)}_isInRange(e){return eA(e,this.startValue,this.endValue,this.isRange)}_isComparisonStart(e){return XI(e,this.comparisonStart,this.comparisonEnd)}_isComparisonBridgeStart(e,i,r){if(!this._isComparisonStart(e)||this._isRangeStart(e)||!this._isInRange(e))return!1;let o=this.rows[i][r-1];if(!o){let a=this.rows[i-1];o=a&&a[a.length-1]}return o&&!this._isRangeEnd(o.compareValue)}_isComparisonBridgeEnd(e,i,r){if(!this._isComparisonEnd(e)||this._isRangeEnd(e)||!this._isInRange(e))return!1;let o=this.rows[i][r+1];if(!o){let a=this.rows[i+1];o=a&&a[0]}return o&&!this._isRangeStart(o.compareValue)}_isComparisonEnd(e){return JI(e,this.comparisonStart,this.comparisonEnd)}_isInComparisonRange(e){return eA(e,this.comparisonStart,this.comparisonEnd,this.isRange)}_isComparisonIdentical(e){return this.comparisonStart===this.comparisonEnd&&e===this.comparisonStart}_isPreviewStart(e){return XI(e,this.previewStart,this.previewEnd)}_isPreviewEnd(e){return JI(e,this.previewStart,this.previewEnd)}_isInPreview(e){return eA(e,this.previewStart,this.previewEnd,this.isRange)}_getDescribedby(e){if(!this.isRange)return null;if(this.startValue===e&&this.endValue===e)return`${this._startDateLabelId} ${this._endDateLabelId}`;if(this.startValue===e)return this._startDateLabelId;if(this.endValue===e)return this._endDateLabelId;if(this.comparisonStart!==null&&this.comparisonEnd!==null){if(e===this.comparisonStart&&e===this.comparisonEnd)return`${this._comparisonStartDateLabelId} ${this._comparisonEndDateLabelId}`;if(e===this.comparisonStart)return this._comparisonStartDateLabelId;if(e===this.comparisonEnd)return this._comparisonEndDateLabelId}return null}_enterHandler=e=>{if(this._skipNextFocus&&e.type==="focus"){this._skipNextFocus=!1;return}if(e.target&&this.isRange){let i=this._getCellFromElement(e.target);i&&this._ngZone.run(()=>this.previewChange.emit({value:i.enabled?i:null,event:e}))}};_touchmoveHandler=e=>{if(!this.isRange)return;let i=EU(e),r=i?this._getCellFromElement(i):null;i!==e.target&&(this._didDragSinceMouseDown=!0),ZI(e.target)&&e.preventDefault(),this._ngZone.run(()=>this.previewChange.emit({value:r?.enabled?r:null,event:e}))};_leaveHandler=e=>{this.previewEnd!==null&&this.isRange&&(e.type!=="blur"&&(this._didDragSinceMouseDown=!0),e.target&&this._getCellFromElement(e.target)&&!(e.relatedTarget&&this._getCellFromElement(e.relatedTarget))&&this._ngZone.run(()=>this.previewChange.emit({value:null,event:e})))};_mousedownHandler=e=>{if(!this.isRange)return;this._didDragSinceMouseDown=!1;let i=e.target&&this._getCellFromElement(e.target);!i||!this._isInRange(i.compareValue)||this._ngZone.run(()=>{this.dragStarted.emit({value:i.rawValue,event:e})})};_mouseupHandler=e=>{if(!this.isRange)return;let i=ZI(e.target);if(!i){this._ngZone.run(()=>{this.dragEnded.emit({value:null,event:e})});return}i.closest(".mat-calendar-body")===this._elementRef.nativeElement&&this._ngZone.run(()=>{let r=this._getCellFromElement(i);this.dragEnded.emit({value:r?.rawValue??null,event:e})})};_touchendHandler=e=>{let i=EU(e);i&&this._mouseupHandler({target:i})};_getCellFromElement(e){let i=ZI(e);if(i){let r=i.getAttribute("data-mat-row"),o=i.getAttribute("data-mat-col");if(r&&o)return this.rows[parseInt(r)]?.[parseInt(o)]||null}return null}static \u0275fac=function(i){return new(i||t)};static \u0275cmp=E({type:t,selectors:[["","mat-calendar-body",""]],hostAttrs:[1,"mat-calendar-body"],inputs:{label:"label",rows:"rows",todayValue:"todayValue",startValue:"startValue",endValue:"endValue",labelMinRequiredCells:"labelMinRequiredCells",numCols:"numCols",activeCell:"activeCell",isRange:"isRange",cellAspectRatio:"cellAspectRatio",comparisonStart:"comparisonStart",comparisonEnd:"comparisonEnd",previewStart:"previewStart",previewEnd:"previewEnd",startDateAccessibleName:"startDateAccessibleName",endDateAccessibleName:"endDateAccessibleName"},outputs:{selectedValueChange:"selectedValueChange",previewChange:"previewChange",activeDateChange:"activeDateChange",dragStarted:"dragStarted",dragEnded:"dragEnded"},exportAs:["matCalendarBody"],features:[Ae],attrs:Tbe,decls:11,vars:11,consts:[["aria-hidden","true"],["role","row"],[1,"mat-calendar-body-hidden-label",3,"id"],[1,"mat-calendar-body-label"],[1,"mat-calendar-body-label",3,"paddingTop","paddingBottom"],["role","gridcell",1,"mat-calendar-body-cell-container",3,"width","paddingTop","paddingBottom"],["role","gridcell",1,"mat-calendar-body-cell-container"],["type","button",1,"mat-calendar-body-cell",3,"click","focus","ngClass","tabindex"],[1,"mat-calendar-body-cell-content","mat-focus-indicator"],["aria-hidden","true",1,"mat-calendar-body-cell-preview"]],template:function(i,r){i&1&&(N(0,Abe,3,6,"tr",0),xt(1,Pbe,4,1,"tr",1,Ibe,!0),h(3,"span",2),_(4),p(),h(5,"span",2),_(6),p(),h(7,"span",2),_(8),p(),h(9,"span",2),_(10),p()),i&2&&(L(r._firstRowOffset{class t{static \u0275fac=function(i){return new(i||t)};static \u0275cmp=E({type:t,selectors:[["ng-component"]],decls:0,vars:0,template:function(i,r){},styles:[`.mat-badge{position:relative}.mat-badge.mat-badge{overflow:visible}.mat-badge-content{position:absolute;text-align:center;display:inline-block;transition:transform 200ms ease-in-out;transform:scale(0.6);overflow:hidden;white-space:nowrap;text-overflow:ellipsis;box-sizing:border-box;pointer-events:none;background-color:var(--mat-badge-background-color, var(--mat-sys-error));color:var(--mat-badge-text-color, var(--mat-sys-on-error));font-family:var(--mat-badge-text-font, var(--mat-sys-label-small-font));font-weight:var(--mat-badge-text-weight, var(--mat-sys-label-small-weight));border-radius:var(--mat-badge-container-shape, var(--mat-sys-corner-full))}.mat-badge-above .mat-badge-content{bottom:100%}.mat-badge-below .mat-badge-content{top:100%}.mat-badge-before .mat-badge-content{right:100%}[dir=rtl] .mat-badge-before .mat-badge-content{right:auto;left:100%}.mat-badge-after .mat-badge-content{left:100%}[dir=rtl] .mat-badge-after .mat-badge-content{left:auto;right:100%}@media(forced-colors: active){.mat-badge-content{outline:solid 1px;border-radius:0}}.mat-badge-disabled .mat-badge-content{background-color:var(--mat-badge-disabled-state-background-color, color-mix(in srgb, var(--mat-sys-error) 38%, transparent));color:var(--mat-badge-disabled-state-text-color, var(--mat-sys-on-error))}.mat-badge-hidden .mat-badge-content{display:none}.ng-animate-disabled .mat-badge-content,.mat-badge-content._mat-animation-noopable{transition:none}.mat-badge-content.mat-badge-active{transform:none}.mat-badge-small .mat-badge-content{width:var(--mat-badge-legacy-small-size-container-size, unset);height:var(--mat-badge-legacy-small-size-container-size, unset);min-width:var(--mat-badge-small-size-container-size, 6px);min-height:var(--mat-badge-small-size-container-size, 6px);line-height:var(--mat-badge-small-size-line-height, 6px);padding:var(--mat-badge-small-size-container-padding, 0);font-size:var(--mat-badge-small-size-text-size, 0);margin:var(--mat-badge-small-size-container-offset, -6px 0)}.mat-badge-small.mat-badge-overlap .mat-badge-content{margin:var(--mat-badge-small-size-container-overlap-offset, -6px)}.mat-badge-medium .mat-badge-content{width:var(--mat-badge-legacy-container-size, unset);height:var(--mat-badge-legacy-container-size, unset);min-width:var(--mat-badge-container-size, 16px);min-height:var(--mat-badge-container-size, 16px);line-height:var(--mat-badge-line-height, 16px);padding:var(--mat-badge-container-padding, 0 4px);font-size:var(--mat-badge-text-size, var(--mat-sys-label-small-size));margin:var(--mat-badge-container-offset, -12px 0)}.mat-badge-medium.mat-badge-overlap .mat-badge-content{margin:var(--mat-badge-container-overlap-offset, -12px)}.mat-badge-large .mat-badge-content{width:var(--mat-badge-legacy-large-size-container-size, unset);height:var(--mat-badge-legacy-large-size-container-size, unset);min-width:var(--mat-badge-large-size-container-size, 16px);min-height:var(--mat-badge-large-size-container-size, 16px);line-height:var(--mat-badge-large-size-line-height, 16px);padding:var(--mat-badge-large-size-container-padding, 0 4px);font-size:var(--mat-badge-large-size-text-size, var(--mat-sys-label-small-size));margin:var(--mat-badge-large-size-container-offset, -12px 0)}.mat-badge-large.mat-badge-overlap .mat-badge-content{margin:var(--mat-badge-large-size-container-overlap-offset, -12px)} +`],encapsulation:2,changeDetection:0})}return t})(),h8=(()=>{class t{_ngZone=u(ae);_elementRef=u(q);_ariaDescriber=u(Xm);_renderer=u(je);_animationsDisabled=Ye();_idGenerator=u(Ze);get color(){return this._color}set color(e){this._setColor(e),this._color=e}_color="primary";overlap=!0;disabled;position="above after";get content(){return this._content}set content(e){this._updateRenderedContent(e)}_content;get description(){return this._description}set description(e){this._updateDescription(e)}_description;size="medium";hidden;_badgeElement;_inlineBadgeDescription;_isInitialized=!1;_interactivityChecker=u(ac);_document=u(ge);constructor(){let e=u(ut);e.load(Gpe),e.load(Qr)}isAbove(){return this.position.indexOf("below")===-1}isAfter(){return this.position.indexOf("before")===-1}getBadgeElement(){return this._badgeElement}ngOnInit(){this._clearExistingBadges(),this.content&&!this._badgeElement&&(this._badgeElement=this._createBadgeElement(),this._updateRenderedContent(this.content)),this._isInitialized=!0}ngOnDestroy(){this._renderer.destroyNode&&(this._renderer.destroyNode(this._badgeElement),this._inlineBadgeDescription?.remove()),this._ariaDescriber.removeDescription(this._elementRef.nativeElement,this.description)}_isHostInteractive(){return this._interactivityChecker.isFocusable(this._elementRef.nativeElement,{ignoreVisibility:!0})}_createBadgeElement(){let e=this._renderer.createElement("span"),i="mat-badge-active";return e.setAttribute("id",this._idGenerator.getId("mat-badge-content-")),e.setAttribute("aria-hidden","true"),e.classList.add(m8),this._animationsDisabled&&e.classList.add("_mat-animation-noopable"),this._elementRef.nativeElement.appendChild(e),typeof requestAnimationFrame=="function"&&!this._animationsDisabled?this._ngZone.runOutsideAngular(()=>{requestAnimationFrame(()=>{e.classList.add(i)})}):e.classList.add(i),e}_updateRenderedContent(e){let i=`${e??""}`.trim();this._isInitialized&&i&&!this._badgeElement&&(this._badgeElement=this._createBadgeElement()),this._badgeElement&&(this._badgeElement.textContent=i),this._content=i}_updateDescription(e){this._ariaDescriber.removeDescription(this._elementRef.nativeElement,this.description),(!e||this._isHostInteractive())&&this._removeInlineDescription(),this._description=e,this._isHostInteractive()?this._ariaDescriber.describe(this._elementRef.nativeElement,e):this._updateInlineDescription()}_updateInlineDescription(){this._inlineBadgeDescription||(this._inlineBadgeDescription=this._document.createElement("span"),this._inlineBadgeDescription.classList.add("cdk-visually-hidden")),this._inlineBadgeDescription.textContent=this.description,this._badgeElement?.appendChild(this._inlineBadgeDescription)}_removeInlineDescription(){this._inlineBadgeDescription?.remove(),this._inlineBadgeDescription=void 0}_setColor(e){let i=this._elementRef.nativeElement.classList;i.remove(`mat-badge-${this._color}`),e&&i.add(`mat-badge-${e}`)}_clearExistingBadges(){let e=this._elementRef.nativeElement.querySelectorAll(`:scope > .${m8}`);for(let i of Array.from(e))i!==this._badgeElement&&i.remove()}static \u0275fac=function(i){return new(i||t)};static \u0275dir=F({type:t,selectors:[["","matBadge",""]],hostAttrs:[1,"mat-badge"],hostVars:20,hostBindings:function(i,r){i&2&&G("mat-badge-overlap",r.overlap)("mat-badge-above",r.isAbove())("mat-badge-below",!r.isAbove())("mat-badge-before",!r.isAfter())("mat-badge-after",r.isAfter())("mat-badge-small",r.size==="small")("mat-badge-medium",r.size==="medium")("mat-badge-large",r.size==="large")("mat-badge-hidden",r.hidden||!r.content)("mat-badge-disabled",r.disabled)},inputs:{color:[0,"matBadgeColor","color"],overlap:[2,"matBadgeOverlap","overlap",V],disabled:[2,"matBadgeDisabled","disabled",V],position:[0,"matBadgePosition","position"],content:[0,"matBadge","content"],description:[0,"matBadgeDescription","description"],size:[0,"matBadgeSize","size"],hidden:[2,"matBadgeHidden","hidden",V]}})}return t})(),p8=(()=>{class t{static \u0275fac=function(i){return new(i||t)};static \u0275mod=ee({type:t});static \u0275inj=J({imports:[ll,we,we]})}return t})();var Ha=(()=>{class t{get vertical(){return this._vertical}set vertical(e){this._vertical=Ai(e)}_vertical=!1;get inset(){return this._inset}set inset(e){this._inset=Ai(e)}_inset=!1;static \u0275fac=function(i){return new(i||t)};static \u0275cmp=E({type:t,selectors:[["mat-divider"]],hostAttrs:["role","separator",1,"mat-divider"],hostVars:7,hostBindings:function(i,r){i&2&&(X("aria-orientation",r.vertical?"vertical":"horizontal"),G("mat-divider-vertical",r.vertical)("mat-divider-horizontal",!r.vertical)("mat-divider-inset",r.inset))},inputs:{vertical:"vertical",inset:"inset"},decls:0,vars:0,template:function(i,r){},styles:[`.mat-divider{display:block;margin:0;border-top-style:solid;border-top-color:var(--mat-divider-color, var(--mat-sys-outline-variant));border-top-width:var(--mat-divider-width, 1px)}.mat-divider.mat-divider-vertical{border-top:0;border-right-style:solid;border-right-color:var(--mat-divider-color, var(--mat-sys-outline-variant));border-right-width:var(--mat-divider-width, 1px)}.mat-divider.mat-divider-inset{margin-left:80px}[dir=rtl] .mat-divider.mat-divider-inset{margin-left:auto;margin-right:80px} +`],encapsulation:2,changeDetection:0})}return t})(),sa=(()=>{class t{static \u0275fac=function(i){return new(i||t)};static \u0275mod=ee({type:t});static \u0275inj=J({imports:[we,we]})}return t})();var f8=["*"],g8=`.mdc-list{margin:0;padding:8px 0;list-style-type:none}.mdc-list:focus{outline:none}.mdc-list-item{display:flex;position:relative;justify-content:flex-start;overflow:hidden;padding:0;align-items:stretch;cursor:pointer;padding-left:16px;padding-right:16px;background-color:var(--mat-list-list-item-container-color, transparent);border-radius:var(--mat-list-list-item-container-shape, var(--mat-sys-corner-none))}.mdc-list-item.mdc-list-item--selected{background-color:var(--mat-list-list-item-selected-container-color)}.mdc-list-item:focus{outline:0}.mdc-list-item.mdc-list-item--disabled{cursor:auto}.mdc-list-item.mdc-list-item--with-one-line{height:var(--mat-list-list-item-one-line-container-height, 48px)}.mdc-list-item.mdc-list-item--with-one-line .mdc-list-item__start{align-self:center;margin-top:0}.mdc-list-item.mdc-list-item--with-one-line .mdc-list-item__end{align-self:center;margin-top:0}.mdc-list-item.mdc-list-item--with-two-lines{height:var(--mat-list-list-item-two-line-container-height, 64px)}.mdc-list-item.mdc-list-item--with-two-lines .mdc-list-item__start{align-self:flex-start;margin-top:16px}.mdc-list-item.mdc-list-item--with-two-lines .mdc-list-item__end{align-self:center;margin-top:0}.mdc-list-item.mdc-list-item--with-three-lines{height:var(--mat-list-list-item-three-line-container-height, 88px)}.mdc-list-item.mdc-list-item--with-three-lines .mdc-list-item__start{align-self:flex-start;margin-top:16px}.mdc-list-item.mdc-list-item--with-three-lines .mdc-list-item__end{align-self:flex-start;margin-top:16px}.mdc-list-item.mdc-list-item--selected::before,.mdc-list-item.mdc-list-item--selected:focus::before,.mdc-list-item:not(.mdc-list-item--selected):focus::before{position:absolute;box-sizing:border-box;width:100%;height:100%;top:0;left:0;content:"";pointer-events:none}a.mdc-list-item{color:inherit;text-decoration:none}.mdc-list-item__start{fill:currentColor;flex-shrink:0;pointer-events:none}.mdc-list-item--with-leading-icon .mdc-list-item__start{color:var(--mat-list-list-item-leading-icon-color, var(--mat-sys-on-surface-variant));width:var(--mat-list-list-item-leading-icon-size, 24px);height:var(--mat-list-list-item-leading-icon-size, 24px);margin-left:16px;margin-right:32px}[dir=rtl] .mdc-list-item--with-leading-icon .mdc-list-item__start{margin-left:32px;margin-right:16px}.mdc-list-item--with-leading-icon:hover .mdc-list-item__start{color:var(--mat-list-list-item-hover-leading-icon-color)}.mdc-list-item--with-leading-avatar .mdc-list-item__start{width:var(--mat-list-list-item-leading-avatar-size, 40px);height:var(--mat-list-list-item-leading-avatar-size, 40px);margin-left:16px;margin-right:16px;border-radius:50%}.mdc-list-item--with-leading-avatar .mdc-list-item__start,[dir=rtl] .mdc-list-item--with-leading-avatar .mdc-list-item__start{margin-left:16px;margin-right:16px;border-radius:50%}.mdc-list-item__end{flex-shrink:0;pointer-events:none}.mdc-list-item--with-trailing-meta .mdc-list-item__end{font-family:var(--mat-list-list-item-trailing-supporting-text-font, var(--mat-sys-label-small-font));line-height:var(--mat-list-list-item-trailing-supporting-text-line-height, var(--mat-sys-label-small-line-height));font-size:var(--mat-list-list-item-trailing-supporting-text-size, var(--mat-sys-label-small-size));font-weight:var(--mat-list-list-item-trailing-supporting-text-weight, var(--mat-sys-label-small-weight));letter-spacing:var(--mat-list-list-item-trailing-supporting-text-tracking, var(--mat-sys-label-small-tracking))}.mdc-list-item--with-trailing-icon .mdc-list-item__end{color:var(--mat-list-list-item-trailing-icon-color, var(--mat-sys-on-surface-variant));width:var(--mat-list-list-item-trailing-icon-size, 24px);height:var(--mat-list-list-item-trailing-icon-size, 24px)}.mdc-list-item--with-trailing-icon:hover .mdc-list-item__end{color:var(--mat-list-list-item-hover-trailing-icon-color)}.mdc-list-item.mdc-list-item--with-trailing-meta .mdc-list-item__end{color:var(--mat-list-list-item-trailing-supporting-text-color, var(--mat-sys-on-surface-variant))}.mdc-list-item--selected.mdc-list-item--with-trailing-icon .mdc-list-item__end{color:var(--mat-list-list-item-selected-trailing-icon-color, var(--mat-sys-primary))}.mdc-list-item__content{text-overflow:ellipsis;white-space:nowrap;overflow:hidden;align-self:center;flex:1;pointer-events:none}.mdc-list-item--with-two-lines .mdc-list-item__content,.mdc-list-item--with-three-lines .mdc-list-item__content{align-self:stretch}.mdc-list-item__primary-text{text-overflow:ellipsis;white-space:nowrap;overflow:hidden;color:var(--mat-list-list-item-label-text-color, var(--mat-sys-on-surface));font-family:var(--mat-list-list-item-label-text-font, var(--mat-sys-body-large-font));line-height:var(--mat-list-list-item-label-text-line-height, var(--mat-sys-body-large-line-height));font-size:var(--mat-list-list-item-label-text-size, var(--mat-sys-body-large-size));font-weight:var(--mat-list-list-item-label-text-weight, var(--mat-sys-body-large-weight));letter-spacing:var(--mat-list-list-item-label-text-tracking, var(--mat-sys-body-large-tracking))}.mdc-list-item:hover .mdc-list-item__primary-text{color:var(--mat-list-list-item-hover-label-text-color, var(--mat-sys-on-surface))}.mdc-list-item:focus .mdc-list-item__primary-text{color:var(--mat-list-list-item-focus-label-text-color, var(--mat-sys-on-surface))}.mdc-list-item--with-two-lines .mdc-list-item__primary-text,.mdc-list-item--with-three-lines .mdc-list-item__primary-text{display:block;margin-top:0;line-height:normal;margin-bottom:-20px}.mdc-list-item--with-two-lines .mdc-list-item__primary-text::before,.mdc-list-item--with-three-lines .mdc-list-item__primary-text::before{display:inline-block;width:0;height:28px;content:"";vertical-align:0}.mdc-list-item--with-two-lines .mdc-list-item__primary-text::after,.mdc-list-item--with-three-lines .mdc-list-item__primary-text::after{display:inline-block;width:0;height:20px;content:"";vertical-align:-20px}.mdc-list-item__secondary-text{text-overflow:ellipsis;white-space:nowrap;overflow:hidden;display:block;margin-top:0;color:var(--mat-list-list-item-supporting-text-color, var(--mat-sys-on-surface-variant));font-family:var(--mat-list-list-item-supporting-text-font, var(--mat-sys-body-medium-font));line-height:var(--mat-list-list-item-supporting-text-line-height, var(--mat-sys-body-medium-line-height));font-size:var(--mat-list-list-item-supporting-text-size, var(--mat-sys-body-medium-size));font-weight:var(--mat-list-list-item-supporting-text-weight, var(--mat-sys-body-medium-weight));letter-spacing:var(--mat-list-list-item-supporting-text-tracking, var(--mat-sys-body-medium-tracking))}.mdc-list-item__secondary-text::before{display:inline-block;width:0;height:20px;content:"";vertical-align:0}.mdc-list-item--with-three-lines .mdc-list-item__secondary-text{white-space:normal;line-height:20px}.mdc-list-item--with-overline .mdc-list-item__secondary-text{white-space:nowrap;line-height:auto}.mdc-list-item--with-leading-radio.mdc-list-item,.mdc-list-item--with-leading-checkbox.mdc-list-item,.mdc-list-item--with-leading-icon.mdc-list-item,.mdc-list-item--with-leading-avatar.mdc-list-item{padding-left:0;padding-right:16px}[dir=rtl] .mdc-list-item--with-leading-radio.mdc-list-item,[dir=rtl] .mdc-list-item--with-leading-checkbox.mdc-list-item,[dir=rtl] .mdc-list-item--with-leading-icon.mdc-list-item,[dir=rtl] .mdc-list-item--with-leading-avatar.mdc-list-item{padding-left:16px;padding-right:0}.mdc-list-item--with-leading-radio.mdc-list-item--with-two-lines .mdc-list-item__primary-text,.mdc-list-item--with-leading-checkbox.mdc-list-item--with-two-lines .mdc-list-item__primary-text,.mdc-list-item--with-leading-icon.mdc-list-item--with-two-lines .mdc-list-item__primary-text,.mdc-list-item--with-leading-avatar.mdc-list-item--with-two-lines .mdc-list-item__primary-text{display:block;margin-top:0;line-height:normal;margin-bottom:-20px}.mdc-list-item--with-leading-radio.mdc-list-item--with-two-lines .mdc-list-item__primary-text::before,.mdc-list-item--with-leading-checkbox.mdc-list-item--with-two-lines .mdc-list-item__primary-text::before,.mdc-list-item--with-leading-icon.mdc-list-item--with-two-lines .mdc-list-item__primary-text::before,.mdc-list-item--with-leading-avatar.mdc-list-item--with-two-lines .mdc-list-item__primary-text::before{display:inline-block;width:0;height:32px;content:"";vertical-align:0}.mdc-list-item--with-leading-radio.mdc-list-item--with-two-lines .mdc-list-item__primary-text::after,.mdc-list-item--with-leading-checkbox.mdc-list-item--with-two-lines .mdc-list-item__primary-text::after,.mdc-list-item--with-leading-icon.mdc-list-item--with-two-lines .mdc-list-item__primary-text::after,.mdc-list-item--with-leading-avatar.mdc-list-item--with-two-lines .mdc-list-item__primary-text::after{display:inline-block;width:0;height:20px;content:"";vertical-align:-20px}.mdc-list-item--with-leading-radio.mdc-list-item--with-two-lines.mdc-list-item--with-trailing-meta .mdc-list-item__end,.mdc-list-item--with-leading-checkbox.mdc-list-item--with-two-lines.mdc-list-item--with-trailing-meta .mdc-list-item__end,.mdc-list-item--with-leading-icon.mdc-list-item--with-two-lines.mdc-list-item--with-trailing-meta .mdc-list-item__end,.mdc-list-item--with-leading-avatar.mdc-list-item--with-two-lines.mdc-list-item--with-trailing-meta .mdc-list-item__end{display:block;margin-top:0;line-height:normal}.mdc-list-item--with-leading-radio.mdc-list-item--with-two-lines.mdc-list-item--with-trailing-meta .mdc-list-item__end::before,.mdc-list-item--with-leading-checkbox.mdc-list-item--with-two-lines.mdc-list-item--with-trailing-meta .mdc-list-item__end::before,.mdc-list-item--with-leading-icon.mdc-list-item--with-two-lines.mdc-list-item--with-trailing-meta .mdc-list-item__end::before,.mdc-list-item--with-leading-avatar.mdc-list-item--with-two-lines.mdc-list-item--with-trailing-meta .mdc-list-item__end::before{display:inline-block;width:0;height:32px;content:"";vertical-align:0}.mdc-list-item--with-trailing-icon.mdc-list-item,[dir=rtl] .mdc-list-item--with-trailing-icon.mdc-list-item{padding-left:0;padding-right:0}.mdc-list-item--with-trailing-icon .mdc-list-item__end{margin-left:16px;margin-right:16px}.mdc-list-item--with-trailing-meta.mdc-list-item{padding-left:16px;padding-right:0}[dir=rtl] .mdc-list-item--with-trailing-meta.mdc-list-item{padding-left:0;padding-right:16px}.mdc-list-item--with-trailing-meta .mdc-list-item__end{-webkit-user-select:none;user-select:none;margin-left:28px;margin-right:16px}[dir=rtl] .mdc-list-item--with-trailing-meta .mdc-list-item__end{margin-left:16px;margin-right:28px}.mdc-list-item--with-trailing-meta.mdc-list-item--with-three-lines .mdc-list-item__end,.mdc-list-item--with-trailing-meta.mdc-list-item--with-two-lines .mdc-list-item__end{display:block;line-height:normal;align-self:flex-start;margin-top:0}.mdc-list-item--with-trailing-meta.mdc-list-item--with-three-lines .mdc-list-item__end::before,.mdc-list-item--with-trailing-meta.mdc-list-item--with-two-lines .mdc-list-item__end::before{display:inline-block;width:0;height:28px;content:"";vertical-align:0}.mdc-list-item--with-leading-radio .mdc-list-item__start,.mdc-list-item--with-leading-checkbox .mdc-list-item__start{margin-left:8px;margin-right:24px}[dir=rtl] .mdc-list-item--with-leading-radio .mdc-list-item__start,[dir=rtl] .mdc-list-item--with-leading-checkbox .mdc-list-item__start{margin-left:24px;margin-right:8px}.mdc-list-item--with-leading-radio.mdc-list-item--with-two-lines .mdc-list-item__start,.mdc-list-item--with-leading-checkbox.mdc-list-item--with-two-lines .mdc-list-item__start{align-self:flex-start;margin-top:8px}.mdc-list-item--with-trailing-radio.mdc-list-item,.mdc-list-item--with-trailing-checkbox.mdc-list-item{padding-left:16px;padding-right:0}[dir=rtl] .mdc-list-item--with-trailing-radio.mdc-list-item,[dir=rtl] .mdc-list-item--with-trailing-checkbox.mdc-list-item{padding-left:0;padding-right:16px}.mdc-list-item--with-trailing-radio.mdc-list-item--with-leading-icon,.mdc-list-item--with-trailing-radio.mdc-list-item--with-leading-avatar,.mdc-list-item--with-trailing-checkbox.mdc-list-item--with-leading-icon,.mdc-list-item--with-trailing-checkbox.mdc-list-item--with-leading-avatar{padding-left:0}[dir=rtl] .mdc-list-item--with-trailing-radio.mdc-list-item--with-leading-icon,[dir=rtl] .mdc-list-item--with-trailing-radio.mdc-list-item--with-leading-avatar,[dir=rtl] .mdc-list-item--with-trailing-checkbox.mdc-list-item--with-leading-icon,[dir=rtl] .mdc-list-item--with-trailing-checkbox.mdc-list-item--with-leading-avatar{padding-right:0}.mdc-list-item--with-trailing-radio .mdc-list-item__end,.mdc-list-item--with-trailing-checkbox .mdc-list-item__end{margin-left:24px;margin-right:8px}[dir=rtl] .mdc-list-item--with-trailing-radio .mdc-list-item__end,[dir=rtl] .mdc-list-item--with-trailing-checkbox .mdc-list-item__end{margin-left:8px;margin-right:24px}.mdc-list-item--with-trailing-radio.mdc-list-item--with-three-lines .mdc-list-item__end,.mdc-list-item--with-trailing-checkbox.mdc-list-item--with-three-lines .mdc-list-item__end{align-self:flex-start;margin-top:8px}.mdc-list-group__subheader{margin:.75rem 16px}.mdc-list-item--disabled .mdc-list-item__start,.mdc-list-item--disabled .mdc-list-item__content,.mdc-list-item--disabled .mdc-list-item__end{opacity:1}.mdc-list-item--disabled .mdc-list-item__primary-text,.mdc-list-item--disabled .mdc-list-item__secondary-text{opacity:var(--mat-list-list-item-disabled-label-text-opacity, 0.3)}.mdc-list-item--disabled.mdc-list-item--with-leading-icon .mdc-list-item__start{color:var(--mat-list-list-item-disabled-leading-icon-color, var(--mat-sys-on-surface));opacity:var(--mat-list-list-item-disabled-leading-icon-opacity, 0.38)}.mdc-list-item--disabled.mdc-list-item--with-trailing-icon .mdc-list-item__end{color:var(--mat-list-list-item-disabled-trailing-icon-color, var(--mat-sys-on-surface));opacity:var(--mat-list-list-item-disabled-trailing-icon-opacity, 0.38)}.mat-mdc-list-item.mat-mdc-list-item-both-leading-and-trailing,[dir=rtl] .mat-mdc-list-item.mat-mdc-list-item-both-leading-and-trailing{padding-left:0;padding-right:0}.mdc-list-item.mdc-list-item--disabled .mdc-list-item__primary-text{color:var(--mat-list-list-item-disabled-label-text-color, var(--mat-sys-on-surface))}.mdc-list-item:hover::before{background-color:var(--mat-list-list-item-hover-state-layer-color, var(--mat-sys-on-surface));opacity:var(--mat-list-list-item-hover-state-layer-opacity, var(--mat-sys-hover-state-layer-opacity))}.mdc-list-item.mdc-list-item--disabled::before{background-color:var(--mat-list-list-item-disabled-state-layer-color, var(--mat-sys-on-surface));opacity:var(--mat-list-list-item-disabled-state-layer-opacity, var(--mat-sys-focus-state-layer-opacity))}.mdc-list-item:focus::before{background-color:var(--mat-list-list-item-focus-state-layer-color, var(--mat-sys-on-surface));opacity:var(--mat-list-list-item-focus-state-layer-opacity, var(--mat-sys-focus-state-layer-opacity))}.mdc-list-item--disabled .mdc-radio,.mdc-list-item--disabled .mdc-checkbox{opacity:var(--mat-list-list-item-disabled-label-text-opacity, 0.3)}.mdc-list-item--with-leading-avatar .mat-mdc-list-item-avatar{border-radius:var(--mat-list-list-item-leading-avatar-shape, var(--mat-sys-corner-full));background-color:var(--mat-list-list-item-leading-avatar-color, var(--mat-sys-primary-container))}.mat-mdc-list-item-icon{font-size:var(--mat-list-list-item-leading-icon-size, 24px)}@media(forced-colors: active){a.mdc-list-item--activated::after{content:"";position:absolute;top:50%;right:16px;transform:translateY(-50%);width:10px;height:0;border-bottom:solid 10px;border-radius:10px}a.mdc-list-item--activated [dir=rtl]::after{right:auto;left:16px}}.mat-mdc-list-base{display:block}.mat-mdc-list-base .mdc-list-item__start,.mat-mdc-list-base .mdc-list-item__end,.mat-mdc-list-base .mdc-list-item__content{pointer-events:auto}.mat-mdc-list-item,.mat-mdc-list-option{width:100%;box-sizing:border-box;-webkit-tap-highlight-color:rgba(0,0,0,0)}.mat-mdc-list-item:not(.mat-mdc-list-item-interactive),.mat-mdc-list-option:not(.mat-mdc-list-item-interactive){cursor:default}.mat-mdc-list-item .mat-divider-inset,.mat-mdc-list-option .mat-divider-inset{position:absolute;left:0;right:0;bottom:0}.mat-mdc-list-item .mat-mdc-list-item-avatar~.mat-divider-inset,.mat-mdc-list-option .mat-mdc-list-item-avatar~.mat-divider-inset{margin-left:72px}[dir=rtl] .mat-mdc-list-item .mat-mdc-list-item-avatar~.mat-divider-inset,[dir=rtl] .mat-mdc-list-option .mat-mdc-list-item-avatar~.mat-divider-inset{margin-right:72px}.mat-mdc-list-item-interactive::before{top:0;left:0;right:0;bottom:0;position:absolute;content:"";opacity:0;pointer-events:none;border-radius:inherit}.mat-mdc-list-item>.mat-focus-indicator{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none}.mat-mdc-list-item:focus>.mat-focus-indicator::before{content:""}.mat-mdc-list-item.mdc-list-item--with-three-lines .mat-mdc-list-item-line.mdc-list-item__secondary-text{white-space:nowrap;line-height:normal}.mat-mdc-list-item.mdc-list-item--with-three-lines .mat-mdc-list-item-unscoped-content.mdc-list-item__secondary-text{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2}mat-action-list button{background:none;color:inherit;border:none;font:inherit;outline:inherit;-webkit-tap-highlight-color:rgba(0,0,0,0);text-align:start}mat-action-list button::-moz-focus-inner{border:0}.mdc-list-item--with-leading-icon .mdc-list-item__start{margin-inline-start:var(--mat-list-list-item-leading-icon-start-space, 16px);margin-inline-end:var(--mat-list-list-item-leading-icon-end-space, 16px)}.mat-mdc-nav-list .mat-mdc-list-item{border-radius:var(--mat-list-active-indicator-shape, var(--mat-sys-corner-full));--mat-focus-indicator-border-radius: var(--mat-list-active-indicator-shape, var(--mat-sys-corner-full))}.mat-mdc-nav-list .mat-mdc-list-item.mdc-list-item--activated{background-color:var(--mat-list-active-indicator-color, var(--mat-sys-secondary-container))} +`,Ype=["unscopedContent"],Qpe=["text"],Kpe=[[["","matListItemAvatar",""],["","matListItemIcon",""]],[["","matListItemTitle",""]],[["","matListItemLine",""]],"*",[["","matListItemMeta",""]],[["mat-divider"]]],Zpe=["[matListItemAvatar],[matListItemIcon]","[matListItemTitle]","[matListItemLine]","*","[matListItemMeta]","mat-divider"];var Xpe=new T("ListOption"),Dl=(()=>{class t{_elementRef=u(q);constructor(){}static \u0275fac=function(i){return new(i||t)};static \u0275dir=F({type:t,selectors:[["","matListItemTitle",""]],hostAttrs:[1,"mat-mdc-list-item-title","mdc-list-item__primary-text"]})}return t})(),Tu=(()=>{class t{_elementRef=u(q);constructor(){}static \u0275fac=function(i){return new(i||t)};static \u0275dir=F({type:t,selectors:[["","matListItemLine",""]],hostAttrs:[1,"mat-mdc-list-item-line","mdc-list-item__secondary-text"]})}return t})(),TI=(()=>{class t{static \u0275fac=function(i){return new(i||t)};static \u0275dir=F({type:t,selectors:[["","matListItemMeta",""]],hostAttrs:[1,"mat-mdc-list-item-meta","mdc-list-item__end"]})}return t})(),_8=(()=>{class t{_listOption=u(Xpe,{optional:!0});constructor(){}_isAlignedAtStart(){return!this._listOption||this._listOption?._getTogglePosition()==="after"}static \u0275fac=function(i){return new(i||t)};static \u0275dir=F({type:t,hostVars:4,hostBindings:function(i,r){i&2&&G("mdc-list-item__start",r._isAlignedAtStart())("mdc-list-item__end",!r._isAlignedAtStart())}})}return t})(),Jpe=(()=>{class t extends _8{static \u0275fac=(()=>{let e;return function(r){return(e||(e=fe(t)))(r||t)}})();static \u0275dir=F({type:t,selectors:[["","matListItemAvatar",""]],hostAttrs:[1,"mat-mdc-list-item-avatar"],features:[le]})}return t})(),f_=(()=>{class t extends _8{static \u0275fac=(()=>{let e;return function(r){return(e||(e=fe(t)))(r||t)}})();static \u0275dir=F({type:t,selectors:[["","matListItemIcon",""]],hostAttrs:[1,"mat-mdc-list-item-icon"],features:[le]})}return t})(),efe=new T("MAT_LIST_CONFIG"),p_=(()=>{class t{_isNonInteractive=!0;get disableRipple(){return this._disableRipple}set disableRipple(e){this._disableRipple=Ai(e)}_disableRipple=!1;get disabled(){return this._disabled()}set disabled(e){this._disabled.set(Ai(e))}_disabled=he(!1);_defaultOptions=u(efe,{optional:!0});static \u0275fac=function(i){return new(i||t)};static \u0275dir=F({type:t,hostVars:1,hostBindings:function(i,r){i&2&&X("aria-disabled",r.disabled)},inputs:{disableRipple:"disableRipple",disabled:"disabled"}})}return t})(),tfe=(()=>{class t{_elementRef=u(q);_ngZone=u(ae);_listBase=u(p_,{optional:!0});_platform=u(qe);_hostElement;_isButtonElement;_noopAnimations=Ye();_avatars;_icons;set lines(e){this._explicitLines=Ln(e,null),this._updateItemLines(!1)}_explicitLines=null;get disableRipple(){return this.disabled||this._disableRipple||this._noopAnimations||!!this._listBase?.disableRipple}set disableRipple(e){this._disableRipple=Ai(e)}_disableRipple=!1;get disabled(){return this._disabled()||!!this._listBase?.disabled}set disabled(e){this._disabled.set(Ai(e))}_disabled=he(!1);_subscriptions=new ke;_rippleRenderer=null;_hasUnscopedTextContent=!1;rippleConfig;get rippleDisabled(){return this.disableRipple||!!this.rippleConfig.disabled}constructor(){u(ut).load(Di);let e=u(Cs,{optional:!0});this.rippleConfig=e||{},this._hostElement=this._elementRef.nativeElement,this._isButtonElement=this._hostElement.nodeName.toLowerCase()==="button",this._listBase&&!this._listBase._isNonInteractive&&this._initInteractiveListItem(),this._isButtonElement&&!this._hostElement.hasAttribute("type")&&this._hostElement.setAttribute("type","button")}ngAfterViewInit(){this._monitorProjectedLinesAndTitle(),this._updateItemLines(!0)}ngOnDestroy(){this._subscriptions.unsubscribe(),this._rippleRenderer!==null&&this._rippleRenderer._removeTriggerEvents()}_hasIconOrAvatar(){return!!(this._avatars.length||this._icons.length)}_initInteractiveListItem(){this._hostElement.classList.add("mat-mdc-list-item-interactive"),this._rippleRenderer=new lc(this,this._ngZone,this._hostElement,this._platform,u(de)),this._rippleRenderer.setupTriggerEvents(this._hostElement)}_monitorProjectedLinesAndTitle(){this._ngZone.runOutsideAngular(()=>{this._subscriptions.add(Je(this._lines.changes,this._titles.changes).subscribe(()=>this._updateItemLines(!1)))})}_updateItemLines(e){if(!this._lines||!this._titles||!this._unscopedContent)return;e&&this._checkDomForUnscopedTextContent();let i=this._explicitLines??this._inferLinesFromContent(),r=this._unscopedContent.nativeElement;if(this._hostElement.classList.toggle("mat-mdc-list-item-single-line",i<=1),this._hostElement.classList.toggle("mdc-list-item--with-one-line",i<=1),this._hostElement.classList.toggle("mdc-list-item--with-two-lines",i===2),this._hostElement.classList.toggle("mdc-list-item--with-three-lines",i===3),this._hasUnscopedTextContent){let o=this._titles.length===0&&i===1;r.classList.toggle("mdc-list-item__primary-text",o),r.classList.toggle("mdc-list-item__secondary-text",!o)}else r.classList.remove("mdc-list-item__primary-text"),r.classList.remove("mdc-list-item__secondary-text")}_inferLinesFromContent(){let e=this._titles.length+this._lines.length;return this._hasUnscopedTextContent&&(e+=1),e}_checkDomForUnscopedTextContent(){this._hasUnscopedTextContent=Array.from(this._unscopedContent.nativeElement.childNodes).filter(e=>e.nodeType!==e.COMMENT_NODE).some(e=>!!(e.textContent&&e.textContent.trim()))}static \u0275fac=function(i){return new(i||t)};static \u0275dir=F({type:t,contentQueries:function(i,r,o){if(i&1&&(xe(o,Jpe,4),xe(o,f_,4)),i&2){let a;B(a=j())&&(r._avatars=a),B(a=j())&&(r._icons=a)}},hostVars:4,hostBindings:function(i,r){i&2&&(X("aria-disabled",r.disabled)("disabled",r._isButtonElement&&r.disabled||null),G("mdc-list-item--disabled",r.disabled))},inputs:{lines:"lines",disableRipple:"disableRipple",disabled:"disabled"}})}return t})();var Fs=(()=>{class t extends p_{static \u0275fac=(()=>{let e;return function(r){return(e||(e=fe(t)))(r||t)}})();static \u0275cmp=E({type:t,selectors:[["mat-list"]],hostAttrs:[1,"mat-mdc-list","mat-mdc-list-base","mdc-list"],exportAs:["matList"],features:[Ce([{provide:p_,useExisting:t}]),le],ngContentSelectors:f8,decls:1,vars:0,template:function(i,r){i&1&&(Me(),oe(0))},styles:[g8],encapsulation:2,changeDetection:0})}return t})(),la=(()=>{class t extends tfe{_lines;_titles;_meta;_unscopedContent;_itemText;get activated(){return this._activated}set activated(e){this._activated=Ai(e)}_activated=!1;_getAriaCurrent(){return this._hostElement.nodeName==="A"&&this._activated?"page":null}_hasBothLeadingAndTrailing(){return this._meta.length!==0&&(this._avatars.length!==0||this._icons.length!==0)}static \u0275fac=(()=>{let e;return function(r){return(e||(e=fe(t)))(r||t)}})();static \u0275cmp=E({type:t,selectors:[["mat-list-item"],["a","mat-list-item",""],["button","mat-list-item",""]],contentQueries:function(i,r,o){if(i&1&&(xe(o,Tu,5),xe(o,Dl,5),xe(o,TI,5)),i&2){let a;B(a=j())&&(r._lines=a),B(a=j())&&(r._titles=a),B(a=j())&&(r._meta=a)}},viewQuery:function(i,r){if(i&1&&(ie(Ype,5),ie(Qpe,5)),i&2){let o;B(o=j())&&(r._unscopedContent=o.first),B(o=j())&&(r._itemText=o.first)}},hostAttrs:[1,"mat-mdc-list-item","mdc-list-item"],hostVars:13,hostBindings:function(i,r){i&2&&(X("aria-current",r._getAriaCurrent()),G("mdc-list-item--activated",r.activated)("mdc-list-item--with-leading-avatar",r._avatars.length!==0)("mdc-list-item--with-leading-icon",r._icons.length!==0)("mdc-list-item--with-trailing-meta",r._meta.length!==0)("mat-mdc-list-item-both-leading-and-trailing",r._hasBothLeadingAndTrailing())("_mat-animation-noopable",r._noopAnimations))},inputs:{activated:"activated"},exportAs:["matListItem"],features:[le],ngContentSelectors:Zpe,decls:10,vars:0,consts:[["unscopedContent",""],[1,"mdc-list-item__content"],[1,"mat-mdc-list-item-unscoped-content",3,"cdkObserveContent"],[1,"mat-focus-indicator"]],template:function(i,r){if(i&1){let o=Y();Me(Kpe),oe(0),h(1,"span",1),oe(2,1),oe(3,2),h(4,"span",2,0),S("cdkObserveContent",function(){return I(o),A(r._updateItemLines(!0))}),oe(6,3),p()(),oe(7,4),oe(8,5),k(9,"div",3)}},dependencies:[Wf],encapsulation:2,changeDetection:0})}return t})();var b8=(()=>{class t extends p_{_isNonInteractive=!1;static \u0275fac=(()=>{let e;return function(r){return(e||(e=fe(t)))(r||t)}})();static \u0275cmp=E({type:t,selectors:[["mat-nav-list"]],hostAttrs:["role","navigation",1,"mat-mdc-nav-list","mat-mdc-list-base","mdc-list"],exportAs:["matNavList"],features:[Ce([{provide:p_,useExisting:t}]),le],ngContentSelectors:f8,decls:1,vars:0,template:function(i,r){i&1&&(Me(),oe(0))},styles:[g8],encapsulation:2,changeDetection:0})}return t})();var ca=(()=>{class t{static \u0275fac=function(i){return new(i||t)};static \u0275mod=ee({type:t});static \u0275inj=J({imports:[Ym,we,yo,Q0,sa]})}return t})();var ife=["mat-menu-item",""],nfe=[[["mat-icon"],["","matMenuItemIcon",""]],"*"],rfe=["mat-icon, [matMenuItemIcon]","*"];function ofe(t,n){t&1&&(Gt(),h(0,"svg",2),k(1,"polygon",3),p())}var afe=["*"];function sfe(t,n){if(t&1){let e=Y();ft(0,"div",0),kv("click",function(){I(e);let r=C();return A(r.closed.emit("click"))})("animationstart",function(r){I(e);let o=C();return A(o._onAnimationStart(r.animationName))})("animationend",function(r){I(e);let o=C();return A(o._onAnimationDone(r.animationName))})("animationcancel",function(r){I(e);let o=C();return A(o._onAnimationDone(r.animationName))}),ft(1,"div",1),oe(2),vt()()}if(t&2){let e=C();it(e._classList),G("mat-menu-panel-animations-disabled",e._animationsDisabled)("mat-menu-panel-exit-animation",e._panelAnimationState==="void")("mat-menu-panel-animating",e._isAnimating()),si("id",e.panelId),X("aria-label",e.ariaLabel||null)("aria-labelledby",e.ariaLabelledby||null)("aria-describedby",e.ariaDescribedby||null)}}var AI=new T("MAT_MENU_PANEL"),El=(()=>{class t{_elementRef=u(q);_document=u(ge);_focusMonitor=u(Yt);_parentMenu=u(AI,{optional:!0});_changeDetectorRef=u(ye);role="menuitem";disabled=!1;disableRipple=!1;_hovered=new z;_focused=new z;_highlighted=!1;_triggersSubmenu=!1;constructor(){u(ut).load(Di),this._parentMenu?.addItem?.(this)}focus(e,i){this._focusMonitor&&e?this._focusMonitor.focusVia(this._getHostElement(),e,i):this._getHostElement().focus(i),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),i=e.querySelectorAll("mat-icon, .material-icons");for(let r=0;r{class t{_elementRef=u(q);_changeDetectorRef=u(ye);_injector=u(de);_keyManager;_xPosition;_yPosition;_firstItemFocusRef;_exitFallbackTimeout;_animationsDisabled=Ye();_allItems;_directDescendantItems=new pr;_classList={};_panelAnimationState="void";_animationDone=new z;_isAnimating=he(!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;hasBackdrop;set panelClass(e){let i=this._previousPanelClass,r=M({},this._classList);i&&i.length&&i.split(" ").forEach(o=>{r[o]=!1}),this._previousPanelClass=e,e&&e.length&&(e.split(" ").forEach(o=>{r[o]=!0}),this._elementRef.nativeElement.className=""),this._classList=r}_previousPanelClass;get classList(){return this.panelClass}set classList(e){this.panelClass=e}closed=new U;close=this.closed;panelId=u(Ze).getId("mat-menu-panel-");constructor(){let e=u(cfe);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 bs(this._directDescendantItems).withWrap().withTypeAhead().withHomeAndEnd(),this._keyManager.tabOut.subscribe(()=>this.closed.emit("tab")),this._directDescendantItems.changes.pipe(He(this._directDescendantItems),$e(e=>Je(...e.map(i=>i._focused)))).subscribe(e=>this._keyManager.updateActiveItem(e)),this._directDescendantItems.changes.subscribe(e=>{let i=this._keyManager;if(this._panelAnimationState==="enter"&&i.activeItem?._hasFocus()){let r=e.toArray(),o=Math.max(0,Math.min(r.length-1,i.activeItemIndex||0));r[o]&&!r[o].disabled?i.setActiveItem(o):i.setNextItemActive()}})}ngOnDestroy(){this._keyManager?.destroy(),this._directDescendantItems.destroy(),this.closed.complete(),this._firstItemFocusRef?.destroy(),clearTimeout(this._exitFallbackTimeout)}_hovered(){return this._directDescendantItems.changes.pipe(He(this._directDescendantItems),$e(i=>Je(...i.map(r=>r._hovered))))}addItem(e){}removeItem(e){}_handleKeydown(e){let i=e.keyCode,r=this._keyManager;switch(i){case 27:Ft(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:(i===38||i===40)&&r.setFocusOrigin("keyboard"),r.onKeydown(e);return}}focusFirstItem(e="program"){this._firstItemFocusRef?.destroy(),this._firstItemFocusRef=pt(()=>{let i=this._resolvePanel();if(!i||!i.contains(document.activeElement)){let r=this._keyManager;r.setFocusOrigin(e).setFirstItemActive(),!r.activeItem&&i&&i.focus()}},{injector:this._injector})}resetActiveItem(){this._keyManager.setActiveItem(-1)}setElevation(e){}setPositionClasses(e=this.xPosition,i=this.yPosition){this._classList=De(M({},this._classList),{"mat-menu-before":e==="before","mat-menu-after":e==="after","mat-menu-above":i==="above","mat-menu-below":i==="below"}),this._changeDetectorRef.markForCheck()}_onAnimationDone(e){let i=e===JC;(i||e===II)&&(i&&(clearTimeout(this._exitFallbackTimeout),this._exitFallbackTimeout=void 0),this._animationDone.next(i?"void":"enter"),this._isAnimating.set(!1))}_onAnimationStart(e){(e===II||e===JC)&&this._isAnimating.set(!0)}_setIsOpen(e){if(this._panelAnimationState=e?"enter":"void",e){if(this._keyManager.activeItemIndex===0){let i=this._resolvePanel();i&&(i.scrollTop=0)}}else this._animationsDisabled||(this._exitFallbackTimeout=setTimeout(()=>this._onAnimationDone(JC),200));this._animationsDisabled&&setTimeout(()=>{this._onAnimationDone(e?II:JC)}),this._changeDetectorRef.markForCheck()}_updateDirectDescendants(){this._allItems.changes.pipe(He(this._allItems)).subscribe(e=>{this._directDescendantItems.reset(e.filter(i=>i._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(i){return new(i||t)};static \u0275cmp=E({type:t,selectors:[["mat-menu"]],contentQueries:function(i,r,o){if(i&1&&(xe(o,lfe,5),xe(o,El,5),xe(o,El,4)),i&2){let a;B(a=j())&&(r.lazyContent=a.first),B(a=j())&&(r._allItems=a),B(a=j())&&(r.items=a)}},viewQuery:function(i,r){if(i&1&&ie(te,5),i&2){let o;B(o=j())&&(r.templateRef=o.first)}},hostVars:3,hostBindings:function(i,r){i&2&&X("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",V],hasBackdrop:[2,"hasBackdrop","hasBackdrop",e=>e==null?null:V(e)],panelClass:[0,"class","panelClass"],classList:"classList"},outputs:{closed:"closed",close:"close"},exportAs:["matMenu"],features:[Ce([{provide:AI,useExisting:t}])],ngContentSelectors:afe,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(i,r){i&1&&(Me(),xa(0,sfe,3,12,"ng-template"))},styles:[`mat-menu{display:none}.mat-mdc-menu-content{margin:0;padding:8px 0;outline:0}.mat-mdc-menu-content,.mat-mdc-menu-content .mat-mdc-menu-item .mat-mdc-menu-item-text{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;flex:1;white-space:normal;font-family:var(--mat-menu-item-label-text-font, var(--mat-sys-label-large-font));line-height:var(--mat-menu-item-label-text-line-height, var(--mat-sys-label-large-line-height));font-size:var(--mat-menu-item-label-text-size, var(--mat-sys-label-large-size));letter-spacing:var(--mat-menu-item-label-text-tracking, var(--mat-sys-label-large-tracking));font-weight:var(--mat-menu-item-label-text-weight, var(--mat-sys-label-large-weight))}@keyframes _mat-menu-enter{from{opacity:0;transform:scale(0.8)}to{opacity:1;transform:none}}@keyframes _mat-menu-exit{from{opacity:1}to{opacity:0}}.mat-mdc-menu-panel{min-width:112px;max-width:280px;overflow:auto;box-sizing:border-box;outline:0;animation:_mat-menu-enter 120ms cubic-bezier(0, 0, 0.2, 1);border-radius:var(--mat-menu-container-shape, var(--mat-sys-corner-extra-small));background-color:var(--mat-menu-container-color, var(--mat-sys-surface-container));box-shadow:var(--mat-menu-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));will-change:transform,opacity}.mat-mdc-menu-panel.mat-menu-panel-exit-animation{animation:_mat-menu-exit 100ms 25ms linear forwards}.mat-mdc-menu-panel.mat-menu-panel-animations-disabled{animation:none}.mat-mdc-menu-panel.mat-menu-panel-animating{pointer-events:none}.mat-mdc-menu-panel.mat-menu-panel-animating:has(.mat-mdc-menu-content:empty){display:none}@media(forced-colors: active){.mat-mdc-menu-panel{outline:solid 1px}}.mat-mdc-menu-panel .mat-divider{color:var(--mat-menu-divider-color, var(--mat-sys-surface-variant));margin-bottom:var(--mat-menu-divider-bottom-spacing, 8px);margin-top:var(--mat-menu-divider-top-spacing, 8px)}.mat-mdc-menu-item{display:flex;position:relative;align-items:center;justify-content:flex-start;overflow:hidden;padding:0;cursor:pointer;width:100%;text-align:left;box-sizing:border-box;color:inherit;font-size:inherit;background:none;text-decoration:none;margin:0;min-height:48px;padding-left:var(--mat-menu-item-leading-spacing, 12px);padding-right:var(--mat-menu-item-trailing-spacing, 12px);-webkit-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:rgba(0,0,0,0)}.mat-mdc-menu-item::-moz-focus-inner{border:0}[dir=rtl] .mat-mdc-menu-item{padding-left:var(--mat-menu-item-trailing-spacing, 12px);padding-right:var(--mat-menu-item-leading-spacing, 12px)}.mat-mdc-menu-item:has(.material-icons,mat-icon,[matButtonIcon]){padding-left:var(--mat-menu-item-with-icon-leading-spacing, 12px);padding-right:var(--mat-menu-item-with-icon-trailing-spacing, 12px)}[dir=rtl] .mat-mdc-menu-item:has(.material-icons,mat-icon,[matButtonIcon]){padding-left:var(--mat-menu-item-with-icon-trailing-spacing, 12px);padding-right:var(--mat-menu-item-with-icon-leading-spacing, 12px)}.mat-mdc-menu-item,.mat-mdc-menu-item:visited,.mat-mdc-menu-item:link{color:var(--mat-menu-item-label-text-color, var(--mat-sys-on-surface))}.mat-mdc-menu-item .mat-icon-no-color,.mat-mdc-menu-item .mat-mdc-menu-submenu-icon{color:var(--mat-menu-item-icon-color, var(--mat-sys-on-surface-variant))}.mat-mdc-menu-item[disabled]{cursor:default;opacity:.38}.mat-mdc-menu-item[disabled]::after{display:block;position:absolute;content:"";top:0;left:0;bottom:0;right:0}.mat-mdc-menu-item:focus{outline:0}.mat-mdc-menu-item .mat-icon{flex-shrink:0;margin-right:var(--mat-menu-item-spacing, 12px);height:var(--mat-menu-item-icon-size, 24px);width:var(--mat-menu-item-icon-size, 24px)}[dir=rtl] .mat-mdc-menu-item{text-align:right}[dir=rtl] .mat-mdc-menu-item .mat-icon{margin-right:0;margin-left:var(--mat-menu-item-spacing, 12px)}.mat-mdc-menu-item:not([disabled]):hover{background-color:var(--mat-menu-item-hover-state-layer-color, color-mix(in srgb, var(--mat-sys-on-surface) calc(var(--mat-sys-hover-state-layer-opacity) * 100%), transparent))}.mat-mdc-menu-item:not([disabled]).cdk-program-focused,.mat-mdc-menu-item:not([disabled]).cdk-keyboard-focused,.mat-mdc-menu-item:not([disabled]).mat-mdc-menu-item-highlighted{background-color:var(--mat-menu-item-focus-state-layer-color, color-mix(in srgb, var(--mat-sys-on-surface) calc(var(--mat-sys-focus-state-layer-opacity) * 100%), transparent))}@media(forced-colors: active){.mat-mdc-menu-item{margin-top:1px}}.mat-mdc-menu-submenu-icon{width:var(--mat-menu-item-icon-size, 24px);height:10px;fill:currentColor;padding-left:var(--mat-menu-item-spacing, 12px)}[dir=rtl] .mat-mdc-menu-submenu-icon{padding-right:var(--mat-menu-item-spacing, 12px);padding-left:0}[dir=rtl] .mat-mdc-menu-submenu-icon polygon{transform:scaleX(-1);transform-origin:center}@media(forced-colors: active){.mat-mdc-menu-submenu-icon{fill:CanvasText}}.mat-mdc-menu-item .mat-mdc-menu-ripple{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none} +`],encapsulation:2,changeDetection:0})}return t})(),v8=new T("mat-menu-scroll-strategy",{providedIn:"root",factory:()=>{let t=u(de);return()=>wn(t)}});function ufe(t){let n=u(de);return()=>wn(n)}var mfe={provide:v8,deps:[],useFactory:ufe};var ip=new WeakMap,hfe=(()=>{class t{_canHaveBackdrop;_element=u(q);_viewContainerRef=u(nt);_menuItemInstance=u(El,{optional:!0,self:!0});_dir=u(Vt,{optional:!0});_focusMonitor=u(Yt);_ngZone=u(ae);_injector=u(de);_scrollStrategy=u(v8);_changeDetectorRef=u(ye);_animationsDisabled=Ye();_portal;_overlayRef=null;_menuOpen=!1;_closingActionsSubscription=ke.EMPTY;_menuCloseSubscription=ke.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(i=>{this._destroyMenu(i),(i==="click"||i==="tab")&&this._parentMaterialMenu&&this._parentMaterialMenu.closed.emit(i)})),this._menuItemInstance?._setTriggersSubmenu(this._triggersSubmenu()))}_menuInternal;constructor(e){this._canHaveBackdrop=e;let i=u(AI,{optional:!0});this._parentMaterialMenu=i instanceof jr?i:void 0}ngOnDestroy(){this._menu&&this._ownsMenu(this._menu)&&ip.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){let i=this._menu;if(this._menuOpen||!i)return;this._pendingRemoval?.unsubscribe();let r=ip.get(i);ip.set(i,this),r&&r!==this&&r._closeMenu();let o=this._createOverlay(i),a=o.getConfig(),s=a.positionStrategy;this._setPosition(i,s),this._canHaveBackdrop?a.hasBackdrop=i.hasBackdrop==null?!this._triggersSubmenu():i.hasBackdrop:a.hasBackdrop=!1,o.hasAttached()||(o.attach(this._getPortal(i)),i.lazyContent?.attach(this.menuData)),this._closingActionsSubscription=this._menuClosingActions().subscribe(()=>this._closeMenu()),i.parentMenu=this._triggersSubmenu()?this._parentMaterialMenu:void 0,i.direction=this.dir,e&&i.focusFirstItem(this._openedBy||"program"),this._setIsMenuOpen(!0),i instanceof jr&&(i._setIsOpen(!0),i._directDescendantItems.changes.pipe(Te(i.close)).subscribe(()=>{s.withLockedPosition(!1).reapplyLastPosition(),s.withLockedPosition(!0)}))}focus(e,i){this._focusMonitor&&e?this._focusMonitor.focusVia(this._element,e,i):this._element.nativeElement.focus(i)}_destroyMenu(e){let i=this._overlayRef,r=this._menu;!i||!this.menuOpen||(this._closingActionsSubscription.unsubscribe(),this._pendingRemoval?.unsubscribe(),r instanceof jr&&this._ownsMenu(r)?(this._pendingRemoval=r._animationDone.pipe(lt(1)).subscribe(()=>{i.detach(),ip.has(r)||r.lazyContent?.detach()}),r._setIsOpen(!1)):(i.detach(),r?.lazyContent?.detach()),r&&this._ownsMenu(r)&&ip.delete(r),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 i=this._getOverlayConfig(e);this._subscribeToPositions(e,i.positionStrategy),this._overlayRef=Nr(this._injector,i),this._overlayRef.keydownEvents().subscribe(r=>{this._menu instanceof jr&&this._menu._handleKeydown(r)})}return this._overlayRef}_getOverlayConfig(e){return new Fr({positionStrategy:Fa(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,i){e.setPositionClasses&&i.positionChanges.subscribe(r=>{this._ngZone.run(()=>{let o=r.connectionPair.overlayX==="start"?"after":"before",a=r.connectionPair.overlayY==="top"?"below":"above";e.setPositionClasses(o,a)})})}_setPosition(e,i){let[r,o]=e.xPosition==="before"?["end","start"]:["start","end"],[a,s]=e.yPosition==="above"?["bottom","top"]:["top","bottom"],[l,c]=[a,s],[d,m]=[r,o],f=0;if(this._triggersSubmenu()){if(m=r=e.xPosition==="before"?"start":"end",o=d=r==="end"?"start":"end",this._parentMaterialMenu){if(this._parentInnerPadding==null){let b=this._parentMaterialMenu.items.first;this._parentInnerPadding=b?b._getHostElement().offsetTop:0}f=a==="bottom"?this._parentInnerPadding:-this._parentInnerPadding}}else e.overlapTrigger||(l=a==="top"?"bottom":"top",c=s==="top"?"bottom":"top");i.withPositions([{originX:r,originY:l,overlayX:d,overlayY:a,offsetY:f},{originX:o,originY:l,overlayX:m,overlayY:a,offsetY:f},{originX:r,originY:c,overlayX:d,overlayY:s,offsetY:-f},{originX:o,originY:c,overlayX:m,overlayY:s,offsetY:-f}])}_menuClosingActions(){let e=this._getOutsideClickStream(this._overlayRef),i=this._overlayRef.detachments(),r=this._parentMaterialMenu?this._parentMaterialMenu.closed:Q(),o=this._parentMaterialMenu?this._parentMaterialMenu._hovered().pipe(ce(a=>this._menuOpen&&a!==this._menuItemInstance)):Q();return Je(e,r,o,i)}_getPortal(e){return(!this._portal||this._portal.templateRef!==e.templateRef)&&(this._portal=new Cn(e.templateRef,this._viewContainerRef)),this._portal}_ownsMenu(e){return ip.get(e)===this}static \u0275fac=function(i){Ad()};static \u0275dir=F({type:t})}return t})(),Ns=(()=>{class t extends hfe{_cleanupTouchstart;_hoverSubscription=ke.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 U;onMenuOpen=this.menuOpened;menuClosed=new U;onMenuClose=this.menuClosed;constructor(){super(!0);let e=u(je);this._cleanupTouchstart=e.listen(this._element.nativeElement,"touchstart",i=>{Gd(i)||(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){Wd(e)||(this._openedBy=e.button===0?"mouse":void 0,this.triggersSubmenu()&&e.preventDefault())}_handleKeydown(e){let i=e.keyCode;(i===13||i===32)&&(this._openedBy="keyboard"),this.triggersSubmenu()&&(i===39&&this.dir==="ltr"||i===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(i){return new(i||t)};static \u0275dir=F({type:t,selectors:[["","mat-menu-trigger-for",""],["","matMenuTriggerFor",""]],hostAttrs:[1,"mat-mdc-menu-trigger"],hostVars:3,hostBindings:function(i,r){i&1&&S("click",function(a){return r._handleClick(a)})("mousedown",function(a){return r._handleMousedown(a)})("keydown",function(a){return r._handleKeydown(a)}),i&2&&X("aria-haspopup",r.menu?"menu":null)("aria-expanded",r.menuOpen)("aria-controls",r.menuOpen?r.menu==null?null:r.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:[le]})}return t})();var Ls=(()=>{class t{static \u0275fac=function(i){return new(i||t)};static \u0275mod=ee({type:t});static \u0275inj=J({providers:[mfe],imports:[yo,we,er,vr,we]})}return t})(),y8={transformMenu:{type:7,name:"transformMenu",definitions:[{type:0,name:"void",styles:{type:6,styles:{opacity:0,transform:"scale(0.8)"},offset:null}},{type:1,expr:"void => enter",animation:{type:4,styles:{type:6,styles:{opacity:1,transform:"scale(1)"},offset:null},timings:"120ms cubic-bezier(0, 0, 0.2, 1)"},options:null},{type:1,expr:"* => void",animation:{type:4,styles:{type:6,styles:{opacity:0},offset:null},timings:"100ms 25ms linear"},options:null}],options:{}},fadeInItems:{type:7,name:"fadeInItems",definitions:[{type:0,name:"showing",styles:{type:6,styles:{opacity:1},offset:null}},{type:1,expr:"void => *",animation:[{type:6,styles:{opacity:0},offset:null},{type:4,styles:null,timings:"400ms 100ms cubic-bezier(0.55, 0, 0.55, 0.2)"}],options:null}],options:{}}},ult=y8.fadeInItems,mlt=y8.transformMenu;function pfe(t,n){if(t&1&&(h(0,"mat-list-item")(1,"mat-icon",3),_(2,"info"),p(),h(3,"a",4),_(4),p()()),t&2){let e=n.$implicit;g(4),H(e)}}var x8=(()=>{let n=class n{constructor(){this.messages=["Server Error Reports 1","Server Error Reports 2","Server Error Reports 3"]}};n.\u0275fac=function(r){return new(r||n)},n.\u0275cmp=E({type:n,selectors:[["app-notification"]],decls:8,vars:1,consts:[["menu","matMenu"],["matIconButton","",3,"matMenuTriggerFor"],["matBadge","5","matBadgeColor","warn","aria-hidden","false"],["matListItemIcon","",1,"m-x-16"],["matListItemTitle","","href","#"]],template:function(r,o){if(r&1&&(h(0,"button",1)(1,"mat-icon",2),_(2,"notifications"),p()(),h(3,"mat-menu",null,0)(5,"mat-nav-list"),xt(6,pfe,5,1,"mat-list-item",null,Hi),p()()),r&2){let a=Se(4);y("matMenuTriggerFor",a),g(6),Ct(o.messages)}},dependencies:[p8,h8,ze,ti,ot,mt,ca,b8,la,f_,Dl,Ls,jr,Ns],styles:["[_nghost-%COMP%] .mat-badge-content{--mat-badge-background-color: #ef0000;--mat-badge-text-color: #fff}"]});let t=n;return t})();var ffe=(t,n)=>n.value;function gfe(t,n){t&1&&k(0,"mat-pseudo-checkbox",5)}function _fe(t,n){if(t&1){let e=Y();h(0,"button",3),S("click",function(){let r=I(e).$implicit,o=C();return A(o.changeLang(r.value))}),h(1,"span",4),_(2),me(3,"translate"),N(4,gfe,1,0,"mat-pseudo-checkbox",5),p()()}if(t&2){let e=n.$implicit,i=C();g(2),ve(" ",Oe(3,2,e.name)," "),g(2),L(e.value===i.options.language?4:-1)}}var C8=(()=>{let n=class n{constructor(){this.settings=u(aa),this.options=this.settings.options,this.langs=[{value:"en-US",name:"en_us"},{value:"zh-CN",name:"zh_cn"},{value:"zh-TW",name:"zh_tw"},{value:"auto",name:"system"}]}changeLang(i){this.settings.setLanguage(i)}};n.\u0275fac=function(r){return new(r||n)},n.\u0275cmp=E({type:n,selectors:[["app-translate"]],decls:7,vars:1,consts:[["menu","matMenu"],["matIconButton","",3,"matMenuTriggerFor"],["mat-menu-item",""],["mat-menu-item","",3,"click"],[1,"d-flex","justify-content-between","gap-8"],["state","checked","appearance","minimal"]],template:function(r,o){if(r&1&&(h(0,"button",1)(1,"mat-icon"),_(2,"translate"),p()(),h(3,"mat-menu",null,0),xt(5,_fe,5,4,"button",2,ffe),p()),r&2){let a=Se(4);y("matMenuTriggerFor",a),g(5),Ct(o.langs)}},dependencies:[ze,ti,ot,mt,Ls,jr,El,Ns,Qd,Cr],encapsulation:2});let t=n;return t})();function bfe(t,n){t&1&&(h(0,"button",8)(1,"mat-icon"),_(2,"account_circle"),p(),h(3,"span"),_(4),me(5,"translate"),p()(),h(6,"button",9)(7,"mat-icon"),_(8,"edit"),p(),h(9,"span"),_(10),me(11,"translate"),p()()),t&2&&(g(4),H(Oe(5,2,"profile")),g(6),H(Oe(11,4,"edit_profile")))}function vfe(t,n){if(t&1){let e=Y();h(0,"button",6),S("click",function(){I(e);let r=C();return A(r.logout())}),h(1,"mat-icon"),_(2,"exit_to_app"),p(),h(3,"span"),_(4),me(5,"translate"),p()()}t&2&&(g(4),H(Oe(5,1,"logout")))}function yfe(t,n){if(t&1){let e=Y();h(0,"button",6),S("click",function(){I(e);let r=C();return A(r.login())}),h(1,"mat-icon"),_(2,"login"),p(),h(3,"span"),_(4),me(5,"translate"),p()()}t&2&&(g(4),H(Oe(5,1,"login")))}var w8=(()=>{let n=class n{constructor(){this.oidcAuth=u(Tt),this.router=u(Re),this.settings=u(aa),this.userName="Guest",this.userEmail="",this.userRoles="Anonymous User"}ngOnInit(){this.updateUserInfo(),this.authSubscription=this.oidcAuth.isAuthenticated$.subscribe(()=>{this.updateUserInfo()})}ngOnDestroy(){this.authSubscription?.unsubscribe()}updateUserInfo(){if(!this.oidcAuth.isAuthenticated()){this.userName="Guest",this.userEmail="",this.userRoles="Anonymous User";return}let i=this.oidcAuth.getUserInfo();console.log("UserButton: User info:",i),console.log("UserButton: Available claims:",i?Object.keys(i):"null"),this.userName=i?.name||i?.preferred_username||i?.given_name||i?.["http://schemas.xmlsoap.org/ws/2005/05/identity/claims/name"]||i?.sub||"User",this.userEmail=i?.email||i?.["http://schemas.xmlsoap.org/ws/2005/05/identity/claims/emailaddress"]||"";let r=this.oidcAuth.getUserRoles();this.userRoles=r.length>0?r.join(", "):"No roles",console.log("UserButton: Set userName to:",this.userName,"email to:",this.userEmail,"roles:",this.userRoles)}isAuthenticated(){return this.oidcAuth.isAuthenticated()}login(){this.oidcAuth.login()}logout(){this.oidcAuth.logout(),this.router.navigateByUrl("/dashboard")}restore(){this.settings.reset(),window.location.reload()}};n.\u0275fac=function(r){return new(r||n)},n.\u0275cmp=E({type:n,selectors:[["app-user"]],decls:22,vars:9,consts:[["menu","matMenu"],["matIconButton","",1,"user-button",3,"matMenuTriggerFor"],[1,"user-info"],[1,"user-name"],[1,"user-email"],[1,"user-roles"],["mat-menu-item","",3,"click"],["mat-menu-item",""],["routerLink","/profile/overview","mat-menu-item",""],["routerLink","/profile/settings","mat-menu-item",""]],template:function(r,o){if(r&1){let a=Y();h(0,"button",1)(1,"mat-icon"),_(2,"account_circle"),p()(),h(3,"mat-menu",null,0)(5,"div",2)(6,"div",3),_(7),p(),h(8,"div",4),_(9),p(),h(10,"div",5),_(11),p()(),k(12,"mat-divider"),N(13,bfe,12,6),h(14,"button",6),S("click",function(){return I(a),A(o.restore())}),h(15,"mat-icon"),_(16,"restore"),p(),h(17,"span"),_(18),me(19,"translate"),p()(),N(20,vfe,6,3,"button",7)(21,yfe,6,3,"button",7),p()}if(r&2){let a=Se(4);y("matMenuTriggerFor",a),g(7),H(o.userName),g(2),H(o.userEmail),g(2),H(o.userRoles),g(2),L(o.isAuthenticated()?13:-1),g(5),H(Oe(19,7,"restore_defaults")),g(2),L(o.isAuthenticated()?20:21)}},dependencies:[gt,Nn,ze,ti,ot,mt,Ls,jr,El,Ns,sa,Ha,wr,Cr],styles:["[_nghost-%COMP%]{display:inline-block}.user-button[_ngcontent-%COMP%]{display:inline-flex!important}.user-info[_ngcontent-%COMP%]{padding:16px;max-width:250px}.user-info[_ngcontent-%COMP%] .user-name[_ngcontent-%COMP%]{font-weight:500;font-size:14px;margin-bottom:4px}.user-info[_ngcontent-%COMP%] .user-email[_ngcontent-%COMP%]{font-size:12px;color:#0009;margin-bottom:4px}.user-info[_ngcontent-%COMP%] .user-roles[_ngcontent-%COMP%]{font-size:11px;color:#00000080;font-style:italic}"]});let t=n;return t})();function xfe(t,n){if(t&1){let e=Y();h(0,"button",4),S("click",function(){I(e);let r=C();return A(r.toggleSidenav.emit())}),h(1,"mat-icon"),_(2,"menu"),p()()}}function Cfe(t,n){t&1&&k(0,"app-branding")}var D8=(()=>{let n=class n{constructor(){this.showToggle=ne(!0),this.showBranding=ne(!1),this.toggleSidenav=bi(),this.toggleSidenavNotice=bi()}toggleFullscreen(){SI.isEnabled&&SI.toggle()}};n.\u0275fac=function(r){return new(r||n)},n.\u0275cmp=E({type:n,selectors:[["app-header"]],hostAttrs:[1,"matero-header"],inputs:{showToggle:[1,"showToggle"],showBranding:[1,"showBranding"]},outputs:{toggleSidenav:"toggleSidenav",toggleSidenavNotice:"toggleSidenavNotice"},decls:17,vars:2,consts:[["matIconButton",""],[1,"flex-fill"],["matIconButton","",1,"hide-small",3,"click"],[1,"hide-small"],["matIconButton","",3,"click"]],template:function(r,o){r&1&&(h(0,"mat-toolbar"),N(1,xfe,3,0,"button",0),N(2,Cfe,1,0,"app-branding"),k(3,"span",1)(4,"app-github-button"),h(5,"button",0)(6,"mat-icon"),_(7,"search"),p()(),k(8,"app-translate"),h(9,"button",2),S("click",function(){return o.toggleFullscreen()}),h(10,"mat-icon"),_(11,"fullscreen"),p()(),k(12,"app-notification",3)(13,"app-user"),h(14,"button",2),S("click",function(){return o.toggleSidenavNotice.emit()}),h(15,"mat-icon"),_(16,"list"),p()()()),r&2&&(g(),L(o.showToggle()?1:-1),g(),L(o.showBranding()?2:-1))},dependencies:[ZC,KC,ze,ti,ot,mt,XC,u8,x8,C8,w8],styles:[`.matero-header{--mat-toolbar-container-background-color: transparent;position:relative;z-index:200;display:block;background-color:var(--header-background-color);-webkit-backdrop-filter:blur(8px);backdrop-filter:blur(8px)} +`],encapsulation:2});let t=n;return t})();var np=["*"];function wfe(t,n){t&1&&oe(0)}var S8=["tabListContainer"],T8=["tabList"],I8=["tabListInner"],A8=["nextPaginator"],O8=["previousPaginator"],Dfe=["content"];function Efe(t,n){}var Mfe=["tabBodyWrapper"],kfe=["tabHeader"];function Sfe(t,n){}function Tfe(t,n){if(t&1&&R(0,Sfe,0,0,"ng-template",12),t&2){let e=C().$implicit;y("cdkPortalOutlet",e.templateLabel)}}function Ife(t,n){if(t&1&&_(0),t&2){let e=C().$implicit;H(e.textLabel)}}function Afe(t,n){if(t&1){let e=Y();h(0,"div",7,2),S("click",function(){let r=I(e),o=r.$implicit,a=r.$index,s=C(),l=Se(1);return A(s._handleClick(o,l,a))})("cdkFocusChange",function(r){let o=I(e).$index,a=C();return A(a._tabFocusChanged(r,o))}),k(2,"span",8)(3,"div",9),h(4,"span",10)(5,"span",11),N(6,Tfe,1,1,null,12)(7,Ife,1,1),p()()()}if(t&2){let e=n.$implicit,i=n.$index,r=Se(1),o=C();it(e.labelClass),G("mdc-tab--active",o.selectedIndex===i),y("id",o._getTabLabelId(e,i))("disabled",e.disabled)("fitInkBarToContent",o.fitInkBarToContent),X("tabIndex",o._getTabIndex(i))("aria-posinset",i+1)("aria-setsize",o._tabs.length)("aria-controls",o._getTabContentId(i))("aria-selected",o.selectedIndex===i)("aria-label",e.ariaLabel||null)("aria-labelledby",!e.ariaLabel&&e.ariaLabelledby?e.ariaLabelledby:null),g(3),y("matRippleTrigger",r)("matRippleDisabled",e.disabled||o.disableRipple),g(3),L(e.templateLabel?6:7)}}function Ofe(t,n){t&1&&oe(0)}function Rfe(t,n){if(t&1){let e=Y();h(0,"mat-tab-body",13),S("_onCentered",function(){I(e);let r=C();return A(r._removeTabBodyWrapperHeight())})("_onCentering",function(r){I(e);let o=C();return A(o._setTabBodyWrapperHeight(r))})("_beforeCentering",function(r){I(e);let o=C();return A(o._bodyCentered(r))}),p()}if(t&2){let e=n.$implicit,i=n.$index,r=C();it(e.bodyClass),y("id",r._getTabContentId(i))("content",e.content)("position",e.position)("animationDuration",r.animationDuration)("preserveContent",r.preserveContent),X("tabindex",r.contentTabIndex!=null&&r.selectedIndex===i?r.contentTabIndex:null)("aria-labelledby",r._getTabLabelId(e,i))("aria-hidden",r.selectedIndex!==i)}}var Pfe=["mat-tab-nav-bar",""],Ffe=["mat-tab-link",""],Nfe=new T("MatTabContent"),Lfe=(()=>{class t{template=u(te);constructor(){}static \u0275fac=function(i){return new(i||t)};static \u0275dir=F({type:t,selectors:[["","matTabContent",""]],features:[Ce([{provide:Nfe,useExisting:t}])]})}return t})(),Vfe=new T("MatTabLabel"),R8=new T("MAT_TAB"),Bfe=(()=>{class t extends tB{_closestTab=u(R8,{optional:!0});static \u0275fac=(()=>{let e;return function(r){return(e||(e=fe(t)))(r||t)}})();static \u0275dir=F({type:t,selectors:[["","mat-tab-label",""],["","matTabLabel",""]],features:[Ce([{provide:Vfe,useExisting:t}]),le]})}return t})(),P8=new T("MAT_TAB_GROUP"),__=(()=>{class t{_viewContainerRef=u(nt);_closestTabGroup=u(P8,{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 z;position=null;origin=null;isActive=!1;constructor(){u(ut).load(Di)}ngOnChanges(e){(e.hasOwnProperty("textLabel")||e.hasOwnProperty("disabled"))&&this._stateChanges.next()}ngOnDestroy(){this._stateChanges.complete()}ngOnInit(){this._contentPortal=new Cn(this._explicitContent||this._implicitContent,this._viewContainerRef)}_setTemplateLabelInput(e){e&&e._closestTab===this&&(this._templateLabel=e)}static \u0275fac=function(i){return new(i||t)};static \u0275cmp=E({type:t,selectors:[["mat-tab"]],contentQueries:function(i,r,o){if(i&1&&(xe(o,Bfe,5),xe(o,Lfe,7,te)),i&2){let a;B(a=j())&&(r.templateLabel=a.first),B(a=j())&&(r._explicitContent=a.first)}},viewQuery:function(i,r){if(i&1&&ie(te,7),i&2){let o;B(o=j())&&(r._implicitContent=o.first)}},hostAttrs:["hidden",""],hostVars:1,hostBindings:function(i,r){i&2&&X("id",null)},inputs:{disabled:[2,"disabled","disabled",V],textLabel:[0,"label","textLabel"],ariaLabel:[0,"aria-label","ariaLabel"],ariaLabelledby:[0,"aria-labelledby","ariaLabelledby"],labelClass:"labelClass",bodyClass:"bodyClass",id:"id"},exportAs:["matTab"],features:[Ce([{provide:R8,useExisting:t}]),Ae],ngContentSelectors:np,decls:1,vars:0,template:function(i,r){i&1&&(Me(),xa(0,wfe,1,0,"ng-template"))},encapsulation:2})}return t})(),OI="mdc-tab-indicator--active",E8="mdc-tab-indicator--no-transition",ew=class{_items;_currentItem;constructor(n){this._items=n}hide(){this._items.forEach(n=>n.deactivateInkBar()),this._currentItem=void 0}alignToElement(n){let e=this._items.find(r=>r.elementRef.nativeElement===n),i=this._currentItem;if(e!==i&&(i?.deactivateInkBar(),e)){let r=i?.elementRef.nativeElement.getBoundingClientRect?.();e.activateInkBar(r),this._currentItem=e}}},F8=(()=>{class t{_elementRef=u(q);_inkBarElement;_inkBarContentElement;_fitToContent=!1;get fitInkBarToContent(){return this._fitToContent}set fitInkBarToContent(e){this._fitToContent!==e&&(this._fitToContent=e,this._inkBarElement&&this._appendInkBarElement())}activateInkBar(e){let i=this._elementRef.nativeElement;if(!e||!i.getBoundingClientRect||!this._inkBarContentElement){i.classList.add(OI);return}let r=i.getBoundingClientRect(),o=e.width/r.width,a=e.left-r.left;i.classList.add(E8),this._inkBarContentElement.style.setProperty("transform",`translateX(${a}px) scaleX(${o})`),i.getBoundingClientRect(),i.classList.remove(E8),i.classList.add(OI),this._inkBarContentElement.style.setProperty("transform","")}deactivateInkBar(){this._elementRef.nativeElement.classList.remove(OI)}ngOnInit(){this._createInkBarElement()}ngOnDestroy(){this._inkBarElement?.remove(),this._inkBarElement=this._inkBarContentElement=null}_createInkBarElement(){let e=this._elementRef.nativeElement.ownerDocument||document,i=this._inkBarElement=e.createElement("span"),r=this._inkBarContentElement=e.createElement("span");i.className="mdc-tab-indicator",r.className="mdc-tab-indicator__content mdc-tab-indicator__content--underline",i.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(i){return new(i||t)};static \u0275dir=F({type:t,inputs:{fitInkBarToContent:[2,"fitInkBarToContent","fitInkBarToContent",V]}})}return t})();var N8=(()=>{class t extends F8{elementRef=u(q);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(r){return(e||(e=fe(t)))(r||t)}})();static \u0275dir=F({type:t,selectors:[["","matTabLabelWrapper",""]],hostVars:3,hostBindings:function(i,r){i&2&&(X("aria-disabled",!!r.disabled),G("mat-mdc-tab-disabled",r.disabled))},inputs:{disabled:[2,"disabled","disabled",V]},features:[le]})}return t})(),M8={passive:!0},jfe=650,Hfe=100,L8=(()=>{class t{_elementRef=u(q);_changeDetectorRef=u(ye);_viewportRuler=u(Xn);_dir=u(Vt,{optional:!0});_ngZone=u(ae);_platform=u(qe);_sharedResizeObserver=u(qy);_injector=u(de);_renderer=u(je);_animationsDisabled=Ye();_eventCleanups;_scrollDistance=0;_selectedIndexChanged=!1;_destroyed=new z;_showPaginationControls=!1;_disableScrollAfter=!0;_disableScrollBefore=!0;_tabLabelCount;_scrollDistanceChanged;_keyManager;_currentTextContent;_stopScrolling=new z;disablePagination=!1;get selectedIndex(){return this._selectedIndex}set selectedIndex(e){let i=isNaN(e)?0:e;this._selectedIndex!=i&&(this._selectedIndexChanged=!0,this._selectedIndex=i,this._keyManager&&this._keyManager.updateActiveItem(i))}_selectedIndex=0;selectFocusedIndex=new U;indexFocused=new U;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"),M8),this._renderer.listen(this._nextPaginator.nativeElement,"touchstart",()=>this._handlePaginatorPress("after"),M8))}ngAfterContentInit(){let e=this._dir?this._dir.change:Q("ltr"),i=this._sharedResizeObserver.observe(this._elementRef.nativeElement).pipe(Rt(32),Te(this._destroyed)),r=this._viewportRuler.change(150).pipe(Te(this._destroyed)),o=()=>{this.updatePagination(),this._alignInkBarToSelectedTab()};this._keyManager=new bs(this._items).withHorizontalOrientation(this._getLayoutDirection()).withHomeAndEnd().withWrap().skipPredicate(()=>!1),this._keyManager.updateActiveItem(Math.max(this._selectedIndex,0)),pt(o,{injector:this._injector}),Je(e,r,i,this._items.changes,this._itemsResized()).pipe(Te(this._destroyed)).subscribe(()=>{this._ngZone.run(()=>{Promise.resolve().then(()=>{this._scrollDistance=Math.max(0,Math.min(this._getMaxScrollDistance(),this._scrollDistance)),o()})}),this._keyManager?.withHorizontalOrientation(this._getLayoutDirection())}),this._keyManager.change.subscribe(a=>{this.indexFocused.emit(a),this._setTabFocus(a)})}_itemsResized(){return typeof ResizeObserver!="function"?Fi:this._items.changes.pipe(He(this._items),$e(e=>new Fe(i=>this._ngZone.runOutsideAngular(()=>{let r=new ResizeObserver(o=>i.next(o));return e.forEach(o=>r.observe(o.elementRef.nativeElement)),()=>{r.disconnect()}}))),Ya(1),ce(e=>e.some(i=>i.contentRect.width>0&&i.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(!Ft(e))switch(e.keyCode){case 13:case 32:if(this.focusIndex!==this.selectedIndex){let i=this._items.get(this.focusIndex);i&&!i.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 i=this._tabListContainer.nativeElement;this._getLayoutDirection()=="ltr"?i.scrollLeft=0:i.scrollLeft=i.scrollWidth-i.offsetWidth}}_getLayoutDirection(){return this._dir&&this._dir.value==="rtl"?"rtl":"ltr"}_updateTabScrollPosition(){if(this.disablePagination)return;let e=this.scrollDistance,i=this._getLayoutDirection()==="ltr"?-e:e;this._tabList.nativeElement.style.transform=`translateX(${Math.round(i)}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 i=this._tabListContainer.nativeElement.offsetWidth,r=(e=="before"?-1:1)*i/3;return this._scrollTo(this._scrollDistance+r)}_handlePaginatorClick(e){this._stopInterval(),this._scrollHeader(e)}_scrollToLabel(e){if(this.disablePagination)return;let i=this._items?this._items.toArray()[e]:null;if(!i)return;let r=this._tabListContainer.nativeElement.offsetWidth,{offsetLeft:o,offsetWidth:a}=i.elementRef.nativeElement,s,l;this._getLayoutDirection()=="ltr"?(s=o,l=s+a):(l=this._tabListInner.nativeElement.offsetWidth-o,s=l-a);let c=this.scrollDistance,d=this.scrollDistance+r;sd&&(this.scrollDistance+=Math.min(l-d,s-c))}_checkPaginationEnabled(){if(this.disablePagination)this._showPaginationControls=!1;else{let e=this._tabListInner.nativeElement.scrollWidth,i=this._elementRef.nativeElement.offsetWidth,r=e-i>=5;r||(this.scrollDistance=0),r!==this._showPaginationControls&&(this._showPaginationControls=r,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,i=this._tabListContainer.nativeElement.offsetWidth;return e-i||0}_alignInkBarToSelectedTab(){let e=this._items&&this._items.length?this._items.toArray()[this.selectedIndex]:null,i=e?e.elementRef.nativeElement:null;i?this._inkBar.alignToElement(i):this._inkBar.hide()}_stopInterval(){this._stopScrolling.next()}_handlePaginatorPress(e,i){i&&i.button!=null&&i.button!==0||(this._stopInterval(),qa(jfe,Hfe).pipe(Te(Je(this._stopScrolling,this._destroyed))).subscribe(()=>{let{maxScrollDistance:r,distance:o}=this._scrollHeader(e);(o===0||o>=r)&&this._stopInterval()}))}_scrollTo(e){if(this.disablePagination)return{maxScrollDistance:0,distance:0};let i=this._getMaxScrollDistance();return this._scrollDistance=Math.max(0,Math.min(i,e)),this._scrollDistanceChanged=!0,this._checkScrollingControls(),{maxScrollDistance:i,distance:this._scrollDistance}}static \u0275fac=function(i){return new(i||t)};static \u0275dir=F({type:t,inputs:{disablePagination:[2,"disablePagination","disablePagination",V],selectedIndex:[2,"selectedIndex","selectedIndex",ct]},outputs:{selectFocusedIndex:"selectFocusedIndex",indexFocused:"indexFocused"}})}return t})(),zfe=(()=>{class t extends L8{_items;_tabListContainer;_tabList;_tabListInner;_nextPaginator;_previousPaginator;_inkBar;ariaLabel;ariaLabelledby;disableRipple=!1;ngAfterContentInit(){this._inkBar=new ew(this._items),super.ngAfterContentInit()}_itemSelected(e){e.preventDefault()}static \u0275fac=(()=>{let e;return function(r){return(e||(e=fe(t)))(r||t)}})();static \u0275cmp=E({type:t,selectors:[["mat-tab-header"]],contentQueries:function(i,r,o){if(i&1&&xe(o,N8,4),i&2){let a;B(a=j())&&(r._items=a)}},viewQuery:function(i,r){if(i&1&&(ie(S8,7),ie(T8,7),ie(I8,7),ie(A8,5),ie(O8,5)),i&2){let o;B(o=j())&&(r._tabListContainer=o.first),B(o=j())&&(r._tabList=o.first),B(o=j())&&(r._tabListInner=o.first),B(o=j())&&(r._nextPaginator=o.first),B(o=j())&&(r._previousPaginator=o.first)}},hostAttrs:[1,"mat-mdc-tab-header"],hostVars:4,hostBindings:function(i,r){i&2&&G("mat-mdc-tab-header-pagination-controls-enabled",r._showPaginationControls)("mat-mdc-tab-header-rtl",r._getLayoutDirection()=="rtl")},inputs:{ariaLabel:[0,"aria-label","ariaLabel"],ariaLabelledby:[0,"aria-labelledby","ariaLabelledby"],disableRipple:[2,"disableRipple","disableRipple",V]},features:[le],ngContentSelectors:np,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(i,r){if(i&1){let o=Y();Me(),h(0,"div",5,0),S("click",function(){return I(o),A(r._handlePaginatorClick("before"))})("mousedown",function(s){return I(o),A(r._handlePaginatorPress("before",s))})("touchend",function(){return I(o),A(r._stopInterval())}),k(2,"div",6),p(),h(3,"div",7,1),S("keydown",function(s){return I(o),A(r._handleKeydown(s))}),h(5,"div",8,2),S("cdkObserveContent",function(){return I(o),A(r._onContentChanges())}),h(7,"div",9,3),oe(9),p()()(),h(10,"div",10,4),S("mousedown",function(s){return I(o),A(r._handlePaginatorPress("after",s))})("click",function(){return I(o),A(r._handlePaginatorClick("after"))})("touchend",function(){return I(o),A(r._stopInterval())}),k(12,"div",6),p()}i&2&&(G("mat-mdc-tab-header-pagination-disabled",r._disableScrollBefore),y("matRippleDisabled",r._disableScrollBefore||r.disableRipple),g(3),G("_mat-animation-noopable",r._animationsDisabled),g(2),X("aria-label",r.ariaLabel||null)("aria-labelledby",r.ariaLabelledby||null),g(5),G("mat-mdc-tab-header-pagination-disabled",r._disableScrollAfter),y("matRippleDisabled",r._disableScrollAfter||r.disableRipple))},dependencies:[Vn,Wf],styles:[`.mat-mdc-tab-header{display:flex;overflow:hidden;position:relative;flex-shrink:0}.mdc-tab-indicator .mdc-tab-indicator__content{transition-duration:var(--mat-tab-animation-duration, 250ms)}.mat-mdc-tab-header-pagination{-webkit-user-select:none;user-select:none;position:relative;display:none;justify-content:center;align-items:center;min-width:32px;cursor:pointer;z-index:2;-webkit-tap-highlight-color:rgba(0,0,0,0);touch-action:none;box-sizing:content-box;outline:0}.mat-mdc-tab-header-pagination::-moz-focus-inner{border:0}.mat-mdc-tab-header-pagination .mat-ripple-element{opacity:.12;background-color:var(--mat-tab-inactive-ripple-color, var(--mat-sys-on-surface))}.mat-mdc-tab-header-pagination-controls-enabled .mat-mdc-tab-header-pagination{display:flex}.mat-mdc-tab-header-pagination-before,.mat-mdc-tab-header-rtl .mat-mdc-tab-header-pagination-after{padding-left:4px}.mat-mdc-tab-header-pagination-before .mat-mdc-tab-header-pagination-chevron,.mat-mdc-tab-header-rtl .mat-mdc-tab-header-pagination-after .mat-mdc-tab-header-pagination-chevron{transform:rotate(-135deg)}.mat-mdc-tab-header-rtl .mat-mdc-tab-header-pagination-before,.mat-mdc-tab-header-pagination-after{padding-right:4px}.mat-mdc-tab-header-rtl .mat-mdc-tab-header-pagination-before .mat-mdc-tab-header-pagination-chevron,.mat-mdc-tab-header-pagination-after .mat-mdc-tab-header-pagination-chevron{transform:rotate(45deg)}.mat-mdc-tab-header-pagination-chevron{border-style:solid;border-width:2px 2px 0 0;height:8px;width:8px;border-color:var(--mat-tab-pagination-icon-color, var(--mat-sys-on-surface))}.mat-mdc-tab-header-pagination-disabled{box-shadow:none;cursor:default;pointer-events:none}.mat-mdc-tab-header-pagination-disabled .mat-mdc-tab-header-pagination-chevron{opacity:.4}.mat-mdc-tab-list{flex-grow:1;position:relative;transition:transform 500ms cubic-bezier(0.35, 0, 0.25, 1)}._mat-animation-noopable .mat-mdc-tab-list{transition:none}.mat-mdc-tab-label-container{display:flex;flex-grow:1;overflow:hidden;z-index:1;border-bottom-style:solid;border-bottom-width:var(--mat-tab-divider-height, 1px);border-bottom-color:var(--mat-tab-divider-color, var(--mat-sys-surface-variant))}.mat-mdc-tab-group-inverted-header .mat-mdc-tab-label-container{border-bottom:none;border-top-style:solid;border-top-width:var(--mat-tab-divider-height, 1px);border-top-color:var(--mat-tab-divider-color, var(--mat-sys-surface-variant))}.mat-mdc-tab-labels{display:flex;flex:1 0 auto}[mat-align-tabs=center]>.mat-mdc-tab-header .mat-mdc-tab-labels{justify-content:center}[mat-align-tabs=end]>.mat-mdc-tab-header .mat-mdc-tab-labels{justify-content:flex-end}.cdk-drop-list .mat-mdc-tab-labels,.mat-mdc-tab-labels.cdk-drop-list{min-height:var(--mat-tab-container-height, 48px)}.mat-mdc-tab::before{margin:5px}@media(forced-colors: active){.mat-mdc-tab[aria-disabled=true]{color:GrayText}} +`],encapsulation:2})}return t})(),V8=new T("MAT_TABS_CONFIG"),k8=(()=>{class t extends yr{_host=u(RI);_ngZone=u(ae);_centeringSub=ke.EMPTY;_leavingSub=ke.EMPTY;constructor(){super()}ngOnInit(){super.ngOnInit(),this._centeringSub=this._host._beforeCentering.pipe(He(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(i){return new(i||t)};static \u0275dir=F({type:t,selectors:[["","matTabBodyHost",""]],features:[le]})}return t})(),RI=(()=>{class t{_elementRef=u(q);_dir=u(Vt,{optional:!0});_ngZone=u(ae);_injector=u(de);_renderer=u(je);_diAnimationsDisabled=Ye();_eventCleanups;_initialized;_fallbackTimer;_positionIndex;_dirChangeSubscription=ke.EMPTY;_position;_previousPosition;_onCentering=new U;_beforeCentering=new U;_afterLeavingCenter=new U;_onCentered=new U(!0);_portalHost;_contentElement;_content;animationDuration="500ms";preserveContent=!1;set position(e){this._positionIndex=e,this._computePositionAnimationState()}constructor(){if(this._dir){let e=u(ye);this._dirChangeSubscription=this._dir.change.subscribe(i=>{this._computePositionAnimationState(i),e.markForCheck()})}}ngOnInit(){this._bindTransitionEvents(),this._position==="center"&&(this._setActiveClass(!0),pt(()=>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,i=r=>{r.target===this._contentElement?.nativeElement&&(this._elementRef.nativeElement.classList.remove("mat-tab-body-animating"),r.type==="transitionend"&&this._transitionDone())};this._eventCleanups=[this._renderer.listen(e,"transitionstart",r=>{r.target===this._contentElement?.nativeElement&&(this._elementRef.nativeElement.classList.add("mat-tab-body-animating"),this._transitionStarted())}),this._renderer.listen(e,"transitionend",i),this._renderer.listen(e,"transitioncancel",i)]})}_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(),pt(()=>this._transitionDone(),{injector:this._injector})}_animationsDisabled(){return this._diAnimationsDisabled||this.animationDuration==="0ms"||this.animationDuration==="0s"}static \u0275fac=function(i){return new(i||t)};static \u0275cmp=E({type:t,selectors:[["mat-tab-body"]],viewQuery:function(i,r){if(i&1&&(ie(k8,5),ie(Dfe,5)),i&2){let o;B(o=j())&&(r._portalHost=o.first),B(o=j())&&(r._contentElement=o.first)}},hostAttrs:[1,"mat-mdc-tab-body"],hostVars:1,hostBindings:function(i,r){i&2&&X("inert",r._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(i,r){i&1&&(h(0,"div",1,0),R(2,Efe,0,0,"ng-template",2),p()),i&2&&G("mat-tab-body-content-left",r._position==="left")("mat-tab-body-content-right",r._position==="right")("mat-tab-body-content-can-animate",r._position==="center"||r._previousPosition==="center")},dependencies:[k8,Pa],styles:[`.mat-mdc-tab-body{top:0;left:0;right:0;bottom:0;position:absolute;display:block;overflow:hidden;outline:0;flex-basis:100%}.mat-mdc-tab-body.mat-mdc-tab-body-active{position:relative;overflow-x:hidden;overflow-y:auto;z-index:1;flex-grow:1}.mat-mdc-tab-group.mat-mdc-tab-group-dynamic-height .mat-mdc-tab-body.mat-mdc-tab-body-active{overflow-y:hidden}.mat-mdc-tab-body-content{height:100%;overflow:auto;transform:none;visibility:hidden}.mat-tab-body-animating>.mat-mdc-tab-body-content,.mat-mdc-tab-body-active>.mat-mdc-tab-body-content{visibility:visible}.mat-tab-body-animating>.mat-mdc-tab-body-content{min-height:1px}.mat-mdc-tab-group-dynamic-height .mat-mdc-tab-body-content{overflow:hidden}.mat-tab-body-content-can-animate{transition:transform var(--mat-tab-animation-duration) 1ms cubic-bezier(0.35, 0, 0.25, 1)}.mat-mdc-tab-body-wrapper._mat-animation-noopable .mat-tab-body-content-can-animate{transition:none}.mat-tab-body-content-left{transform:translate3d(-100%, 0, 0)}.mat-tab-body-content-right{transform:translate3d(100%, 0, 0)} +`],encapsulation:2})}return t})(),tw=(()=>{class t{_elementRef=u(q);_changeDetectorRef=u(ye);_ngZone=u(ae);_tabsSubscription=ke.EMPTY;_tabLabelSubscription=ke.EMPTY;_tabBodySubscription=ke.EMPTY;_diAnimationsDisabled=Ye();_allTabs;_tabBodies;_tabBodyWrapper;_tabHeader;_tabs=new pr;_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 i=e+"";this._animationDuration=/^\d+$/.test(i)?e+"ms":i}_animationDuration;get contentTabIndex(){return this._contentTabIndex}set contentTabIndex(e){this._contentTabIndex=isNaN(e)?null:e}_contentTabIndex;disablePagination=!1;disableRipple=!1;preserveContent=!1;get backgroundColor(){return this._backgroundColor}set backgroundColor(e){let i=this._elementRef.nativeElement.classList;i.remove("mat-tabs-with-background",`mat-background-${this.backgroundColor}`),e&&i.add("mat-tabs-with-background",`mat-background-${e}`),this._backgroundColor=e}_backgroundColor;ariaLabel;ariaLabelledby;selectedIndexChange=new U;focusChange=new U;animationDone=new U;selectedTabChange=new U(!0);_groupId;_isServer=!u(qe).isBrowser;constructor(){let e=u(V8,{optional:!0});this._groupId=u(Ze).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 i=this._selectedIndex==null;if(!i){this.selectedTabChange.emit(this._createChangeEvent(e));let r=this._tabBodyWrapper.nativeElement;r.style.minHeight=r.clientHeight+"px"}Promise.resolve().then(()=>{this._tabs.forEach((r,o)=>r.isActive=o===e),i||(this.selectedIndexChange.emit(e),this._tabBodyWrapper.nativeElement.style.minHeight="")})}this._tabs.forEach((i,r)=>{i.position=r-e,this._selectedIndex!=null&&i.position==0&&!i.origin&&(i.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 i=this._tabs.toArray(),r;for(let o=0;o{i[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(He(this._allTabs)).subscribe(e=>{this._tabs.reset(e.filter(i=>i._closestTabGroup===this||!i._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 i=this._tabHeader;i&&(i.focusIndex=e)}_focusChanged(e){this._lastFocusedTabIndex=e,this.focusChange.emit(this._createChangeEvent(e))}_createChangeEvent(e){let i=new PI;return i.index=e,this._tabs&&this._tabs.length&&(i.tab=this._tabs.toArray()[e]),i}_subscribeToTabLabels(){this._tabLabelSubscription&&this._tabLabelSubscription.unsubscribe(),this._tabLabelSubscription=Je(...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,i){return e.id||`${this._groupId}-label-${i}`}_getTabContentId(e){return`${this._groupId}-content-${e}`}_setTabBodyWrapperHeight(e){if(!this.dynamicHeight||!this._tabBodyWrapperHeight){this._tabBodyWrapperHeight=e;return}let i=this._tabBodyWrapper.nativeElement;i.style.height=this._tabBodyWrapperHeight+"px",this._tabBodyWrapper.nativeElement.offsetHeight&&(i.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,i,r){i.focusIndex=r,e.disabled||(this.selectedIndex=r)}_getTabIndex(e){let i=this._lastFocusedTabIndex??this.selectedIndex;return e===i?0:-1}_tabFocusChanged(e,i){e&&e!=="mouse"&&e!=="touch"&&(this._tabHeader.focusIndex=i)}_bodyCentered(e){e&&this._tabBodies?.forEach((i,r)=>i._setActiveClass(r===this._selectedIndex))}_animationsDisabled(){return this._diAnimationsDisabled||this.animationDuration==="0"||this.animationDuration==="0ms"}static \u0275fac=function(i){return new(i||t)};static \u0275cmp=E({type:t,selectors:[["mat-tab-group"]],contentQueries:function(i,r,o){if(i&1&&xe(o,__,5),i&2){let a;B(a=j())&&(r._allTabs=a)}},viewQuery:function(i,r){if(i&1&&(ie(Mfe,5),ie(kfe,5),ie(RI,5)),i&2){let o;B(o=j())&&(r._tabBodyWrapper=o.first),B(o=j())&&(r._tabHeader=o.first),B(o=j())&&(r._tabBodies=o)}},hostAttrs:[1,"mat-mdc-tab-group"],hostVars:11,hostBindings:function(i,r){i&2&&(X("mat-align-tabs",r.alignTabs),it("mat-"+(r.color||"primary")),Dt("--mat-tab-animation-duration",r.animationDuration),G("mat-mdc-tab-group-dynamic-height",r.dynamicHeight)("mat-mdc-tab-group-inverted-header",r.headerPosition==="below")("mat-mdc-tab-group-stretch-tabs",r.stretchTabs))},inputs:{color:"color",fitInkBarToContent:[2,"fitInkBarToContent","fitInkBarToContent",V],stretchTabs:[2,"mat-stretch-tabs","stretchTabs",V],alignTabs:[0,"mat-align-tabs","alignTabs"],dynamicHeight:[2,"dynamicHeight","dynamicHeight",V],selectedIndex:[2,"selectedIndex","selectedIndex",ct],headerPosition:"headerPosition",animationDuration:"animationDuration",contentTabIndex:[2,"contentTabIndex","contentTabIndex",ct],disablePagination:[2,"disablePagination","disablePagination",V],disableRipple:[2,"disableRipple","disableRipple",V],preserveContent:[2,"preserveContent","preserveContent",V],backgroundColor:"backgroundColor",ariaLabel:[0,"aria-label","ariaLabel"],ariaLabelledby:[0,"aria-labelledby","ariaLabelledby"]},outputs:{selectedIndexChange:"selectedIndexChange",focusChange:"focusChange",animationDone:"animationDone",selectedTabChange:"selectedTabChange"},exportAs:["matTabGroup"],features:[Ce([{provide:P8,useExisting:t}])],ngContentSelectors:np,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(i,r){if(i&1){let o=Y();Me(),h(0,"mat-tab-header",3,0),S("indexFocused",function(s){return I(o),A(r._focusChanged(s))})("selectFocusedIndex",function(s){return I(o),A(r.selectedIndex=s)}),xt(2,Afe,8,17,"div",4,xm),p(),N(4,Ofe,1,0),h(5,"div",5,1),xt(7,Rfe,1,10,"mat-tab-body",6,xm),p()}i&2&&(y("selectedIndex",r.selectedIndex||0)("disableRipple",r.disableRipple)("disablePagination",r.disablePagination),Kl("aria-label",r.ariaLabel)("aria-labelledby",r.ariaLabelledby),g(2),Ct(r._tabs),g(2),L(r._isServer?4:-1),g(),G("_mat-animation-noopable",r._animationsDisabled()),g(2),Ct(r._tabs))},dependencies:[zfe,N8,$f,Vn,yr,RI],styles:[`.mdc-tab{min-width:90px;padding:0 24px;display:flex;flex:1 0 auto;justify-content:center;box-sizing:border-box;border:none;outline:none;text-align:center;white-space:nowrap;cursor:pointer;z-index:1;touch-action:manipulation}.mdc-tab__content{display:flex;align-items:center;justify-content:center;height:inherit;pointer-events:none}.mdc-tab__text-label{transition:150ms color linear;display:inline-block;line-height:1;z-index:2}.mdc-tab--active .mdc-tab__text-label{transition-delay:100ms}._mat-animation-noopable .mdc-tab__text-label{transition:none}.mdc-tab-indicator{display:flex;position:absolute;top:0;left:0;justify-content:center;width:100%;height:100%;pointer-events:none;z-index:1}.mdc-tab-indicator__content{transition:var(--mat-tab-animation-duration, 250ms) transform cubic-bezier(0.4, 0, 0.2, 1);transform-origin:left;opacity:0}.mdc-tab-indicator__content--underline{align-self:flex-end;box-sizing:border-box;width:100%;border-top-style:solid}.mdc-tab-indicator--active .mdc-tab-indicator__content{opacity:1}._mat-animation-noopable .mdc-tab-indicator__content,.mdc-tab-indicator--no-transition .mdc-tab-indicator__content{transition:none}.mat-mdc-tab-ripple.mat-mdc-tab-ripple{position:absolute;top:0;left:0;bottom:0;right:0;pointer-events:none}.mat-mdc-tab{-webkit-tap-highlight-color:rgba(0,0,0,0);-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;text-decoration:none;background:none;height:var(--mat-tab-container-height, 48px);font-family:var(--mat-tab-label-text-font, var(--mat-sys-title-small-font));font-size:var(--mat-tab-label-text-size, var(--mat-sys-title-small-size));letter-spacing:var(--mat-tab-label-text-tracking, var(--mat-sys-title-small-tracking));line-height:var(--mat-tab-label-text-line-height, var(--mat-sys-title-small-line-height));font-weight:var(--mat-tab-label-text-weight, var(--mat-sys-title-small-weight))}.mat-mdc-tab.mdc-tab{flex-grow:0}.mat-mdc-tab .mdc-tab-indicator__content--underline{border-color:var(--mat-tab-active-indicator-color, var(--mat-sys-primary));border-top-width:var(--mat-tab-active-indicator-height, 2px);border-radius:var(--mat-tab-active-indicator-shape, 0)}.mat-mdc-tab:hover .mdc-tab__text-label{color:var(--mat-tab-inactive-hover-label-text-color, var(--mat-sys-on-surface))}.mat-mdc-tab:focus .mdc-tab__text-label{color:var(--mat-tab-inactive-focus-label-text-color, var(--mat-sys-on-surface))}.mat-mdc-tab.mdc-tab--active .mdc-tab__text-label{color:var(--mat-tab-active-label-text-color, var(--mat-sys-on-surface))}.mat-mdc-tab.mdc-tab--active .mdc-tab__ripple::before,.mat-mdc-tab.mdc-tab--active .mat-ripple-element{background-color:var(--mat-tab-active-ripple-color, var(--mat-sys-on-surface))}.mat-mdc-tab.mdc-tab--active:hover .mdc-tab__text-label{color:var(--mat-tab-active-hover-label-text-color, var(--mat-sys-on-surface))}.mat-mdc-tab.mdc-tab--active:hover .mdc-tab-indicator__content--underline{border-color:var(--mat-tab-active-hover-indicator-color, var(--mat-sys-primary))}.mat-mdc-tab.mdc-tab--active:focus .mdc-tab__text-label{color:var(--mat-tab-active-focus-label-text-color, var(--mat-sys-on-surface))}.mat-mdc-tab.mdc-tab--active:focus .mdc-tab-indicator__content--underline{border-color:var(--mat-tab-active-focus-indicator-color, var(--mat-sys-primary))}.mat-mdc-tab.mat-mdc-tab-disabled{opacity:.4;pointer-events:none}.mat-mdc-tab.mat-mdc-tab-disabled .mdc-tab__content{pointer-events:none}.mat-mdc-tab.mat-mdc-tab-disabled .mdc-tab__ripple::before,.mat-mdc-tab.mat-mdc-tab-disabled .mat-ripple-element{background-color:var(--mat-tab-disabled-ripple-color, var(--mat-sys-on-surface-variant))}.mat-mdc-tab .mdc-tab__ripple::before{content:"";display:block;position:absolute;top:0;left:0;right:0;bottom:0;opacity:0;pointer-events:none;background-color:var(--mat-tab-inactive-ripple-color, var(--mat-sys-on-surface))}.mat-mdc-tab .mdc-tab__text-label{color:var(--mat-tab-inactive-label-text-color, var(--mat-sys-on-surface));display:inline-flex;align-items:center}.mat-mdc-tab .mdc-tab__content{position:relative;pointer-events:auto}.mat-mdc-tab:hover .mdc-tab__ripple::before{opacity:.04}.mat-mdc-tab.cdk-program-focused .mdc-tab__ripple::before,.mat-mdc-tab.cdk-keyboard-focused .mdc-tab__ripple::before{opacity:.12}.mat-mdc-tab .mat-ripple-element{opacity:.12;background-color:var(--mat-tab-inactive-ripple-color, var(--mat-sys-on-surface))}.mat-mdc-tab-group.mat-mdc-tab-group-stretch-tabs>.mat-mdc-tab-header .mat-mdc-tab{flex-grow:1}.mat-mdc-tab-group{display:flex;flex-direction:column;max-width:100%}.mat-mdc-tab-group.mat-tabs-with-background>.mat-mdc-tab-header,.mat-mdc-tab-group.mat-tabs-with-background>.mat-mdc-tab-header-pagination{background-color:var(--mat-tab-background-color)}.mat-mdc-tab-group.mat-tabs-with-background.mat-primary>.mat-mdc-tab-header .mat-mdc-tab .mdc-tab__text-label{color:var(--mat-tab-foreground-color)}.mat-mdc-tab-group.mat-tabs-with-background.mat-primary>.mat-mdc-tab-header .mdc-tab-indicator__content--underline{border-color:var(--mat-tab-foreground-color)}.mat-mdc-tab-group.mat-tabs-with-background:not(.mat-primary)>.mat-mdc-tab-header .mat-mdc-tab:not(.mdc-tab--active) .mdc-tab__text-label{color:var(--mat-tab-foreground-color)}.mat-mdc-tab-group.mat-tabs-with-background:not(.mat-primary)>.mat-mdc-tab-header .mat-mdc-tab:not(.mdc-tab--active) .mdc-tab-indicator__content--underline{border-color:var(--mat-tab-foreground-color)}.mat-mdc-tab-group.mat-tabs-with-background>.mat-mdc-tab-header .mat-mdc-tab-header-pagination-chevron,.mat-mdc-tab-group.mat-tabs-with-background>.mat-mdc-tab-header .mat-focus-indicator::before,.mat-mdc-tab-group.mat-tabs-with-background>.mat-mdc-tab-header-pagination .mat-mdc-tab-header-pagination-chevron,.mat-mdc-tab-group.mat-tabs-with-background>.mat-mdc-tab-header-pagination .mat-focus-indicator::before{border-color:var(--mat-tab-foreground-color)}.mat-mdc-tab-group.mat-tabs-with-background>.mat-mdc-tab-header .mat-ripple-element,.mat-mdc-tab-group.mat-tabs-with-background>.mat-mdc-tab-header .mdc-tab__ripple::before,.mat-mdc-tab-group.mat-tabs-with-background>.mat-mdc-tab-header-pagination .mat-ripple-element,.mat-mdc-tab-group.mat-tabs-with-background>.mat-mdc-tab-header-pagination .mdc-tab__ripple::before{background-color:var(--mat-tab-foreground-color)}.mat-mdc-tab-group.mat-tabs-with-background>.mat-mdc-tab-header .mat-mdc-tab-header-pagination-chevron,.mat-mdc-tab-group.mat-tabs-with-background>.mat-mdc-tab-header-pagination .mat-mdc-tab-header-pagination-chevron{color:var(--mat-tab-foreground-color)}.mat-mdc-tab-group.mat-mdc-tab-group-inverted-header{flex-direction:column-reverse}.mat-mdc-tab-group.mat-mdc-tab-group-inverted-header .mdc-tab-indicator__content--underline{align-self:flex-start}.mat-mdc-tab-body-wrapper{position:relative;overflow:hidden;display:flex;transition:height 500ms cubic-bezier(0.35, 0, 0.25, 1)}.mat-mdc-tab-body-wrapper._mat-animation-noopable{transition:none !important;animation:none !important} +`],encapsulation:2})}return t})(),PI=class{index;tab},FI=(()=>{class t extends L8{_focusedItem=he(null);get fitInkBarToContent(){return this._fitInkBarToContent.value}set fitInkBarToContent(e){this._fitInkBarToContent.next(e),this._changeDetectorRef.markForCheck()}_fitInkBarToContent=new tt(!1);stretchTabs=!0;get animationDuration(){return this._animationDuration}set animationDuration(e){let i=e+"";this._animationDuration=/^\d+$/.test(i)?e+"ms":i}_animationDuration;_items;get backgroundColor(){return this._backgroundColor}set backgroundColor(e){let i=this._elementRef.nativeElement.classList;i.remove("mat-tabs-with-background",`mat-background-${this.backgroundColor}`),e&&i.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=he(!1);color="primary";tabPanel;_tabListContainer;_tabList;_tabListInner;_nextPaginator;_previousPaginator;_inkBar;constructor(){let e=u(V8,{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 ew(this._items),this._items.changes.pipe(He(null),Te(this._destroyed)).subscribe(()=>this.updateActiveLink()),super.ngAfterContentInit(),this._keyManager.change.pipe(He(null),Te(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 i=0;i.mat-mdc-tab-link-container .mat-mdc-tab-links{justify-content:center}[mat-align-tabs=end]>.mat-mdc-tab-link-container .mat-mdc-tab-links{justify-content:flex-end}.cdk-drop-list .mat-mdc-tab-links,.mat-mdc-tab-links.cdk-drop-list{min-height:var(--mat-tab-container-height, 48px)}.mat-mdc-tab-link-container{display:flex;flex-grow:1;overflow:hidden;z-index:1;border-bottom-style:solid;border-bottom-width:var(--mat-tab-divider-height, 1px);border-bottom-color:var(--mat-tab-divider-color, var(--mat-sys-surface-variant))}.mat-mdc-tab-nav-bar.mat-tabs-with-background>.mat-mdc-tab-link-container,.mat-mdc-tab-nav-bar.mat-tabs-with-background>.mat-mdc-tab-header-pagination{background-color:var(--mat-tab-background-color)}.mat-mdc-tab-nav-bar.mat-tabs-with-background.mat-primary>.mat-mdc-tab-link-container .mat-mdc-tab-link .mdc-tab__text-label{color:var(--mat-tab-foreground-color)}.mat-mdc-tab-nav-bar.mat-tabs-with-background.mat-primary>.mat-mdc-tab-link-container .mdc-tab-indicator__content--underline{border-color:var(--mat-tab-foreground-color)}.mat-mdc-tab-nav-bar.mat-tabs-with-background:not(.mat-primary)>.mat-mdc-tab-link-container .mat-mdc-tab-link:not(.mdc-tab--active) .mdc-tab__text-label{color:var(--mat-tab-foreground-color)}.mat-mdc-tab-nav-bar.mat-tabs-with-background:not(.mat-primary)>.mat-mdc-tab-link-container .mat-mdc-tab-link:not(.mdc-tab--active) .mdc-tab-indicator__content--underline{border-color:var(--mat-tab-foreground-color)}.mat-mdc-tab-nav-bar.mat-tabs-with-background>.mat-mdc-tab-link-container .mat-mdc-tab-header-pagination-chevron,.mat-mdc-tab-nav-bar.mat-tabs-with-background>.mat-mdc-tab-link-container .mat-focus-indicator::before,.mat-mdc-tab-nav-bar.mat-tabs-with-background>.mat-mdc-tab-header-pagination .mat-mdc-tab-header-pagination-chevron,.mat-mdc-tab-nav-bar.mat-tabs-with-background>.mat-mdc-tab-header-pagination .mat-focus-indicator::before{border-color:var(--mat-tab-foreground-color)}.mat-mdc-tab-nav-bar.mat-tabs-with-background>.mat-mdc-tab-link-container .mat-ripple-element,.mat-mdc-tab-nav-bar.mat-tabs-with-background>.mat-mdc-tab-link-container .mdc-tab__ripple::before,.mat-mdc-tab-nav-bar.mat-tabs-with-background>.mat-mdc-tab-header-pagination .mat-ripple-element,.mat-mdc-tab-nav-bar.mat-tabs-with-background>.mat-mdc-tab-header-pagination .mdc-tab__ripple::before{background-color:var(--mat-tab-foreground-color)}.mat-mdc-tab-nav-bar.mat-tabs-with-background>.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 t})(),Ufe=(()=>{class t extends F8{_tabNavBar=u(FI);elementRef=u(q);_focusMonitor=u(Yt);_destroyed=new z;_isActive=!1;_tabIndex=Zt(()=>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=he(!1);tabIndex=0;rippleConfig;get rippleDisabled(){return this.disabled||this.disableRipple||this._tabNavBar.disableRipple||!!this.rippleConfig.disabled}id=u(Ze).getId("mat-tab-link-");constructor(){super(),u(ut).load(Di);let e=u(Cs,{optional:!0}),i=u(new Ii("tabindex"),{optional:!0});this.rippleConfig=e||{},this.tabIndex=i==null?0:parseInt(i)||0,Ye()&&(this.rippleConfig.animation={enterDuration:0,exitDuration:0}),this._tabNavBar._fitInkBarToContent.pipe(Te(this._destroyed)).subscribe(r=>{this.fitInkBarToContent=r})}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(i){return new(i||t)};static \u0275cmp=E({type:t,selectors:[["","mat-tab-link",""],["","matTabLink",""]],hostAttrs:[1,"mdc-tab","mat-mdc-tab-link","mat-focus-indicator"],hostVars:11,hostBindings:function(i,r){i&1&&S("focus",function(){return r._handleFocus()})("keydown",function(a){return r._handleKeydown(a)}),i&2&&(X("aria-controls",r._getAriaControls())("aria-current",r._getAriaCurrent())("aria-disabled",r.disabled)("aria-selected",r._getAriaSelected())("id",r.id)("tabIndex",r._tabIndex())("role",r._getRole()),G("mat-mdc-tab-disabled",r.disabled)("mdc-tab--active",r.active))},inputs:{active:[2,"active","active",V],disabled:[2,"disabled","disabled",V],disableRipple:[2,"disableRipple","disableRipple",V],tabIndex:[2,"tabIndex","tabIndex",e=>e==null?0:ct(e)],id:"id"},exportAs:["matTabLink"],features:[le],attrs:Ffe,ngContentSelectors:np,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(i,r){i&1&&(Me(),k(0,"span",0)(1,"div",1),h(2,"span",2)(3,"span",3),oe(4),p()()),i&2&&(g(),y("matRippleTrigger",r.elementRef.nativeElement)("matRippleDisabled",r.rippleDisabled))},dependencies:[Vn],styles:[`.mat-mdc-tab-link{-webkit-tap-highlight-color:rgba(0,0,0,0);-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;text-decoration:none;background:none;height:var(--mat-tab-container-height, 48px);font-family:var(--mat-tab-label-text-font, var(--mat-sys-title-small-font));font-size:var(--mat-tab-label-text-size, var(--mat-sys-title-small-size));letter-spacing:var(--mat-tab-label-text-tracking, var(--mat-sys-title-small-tracking));line-height:var(--mat-tab-label-text-line-height, var(--mat-sys-title-small-line-height));font-weight:var(--mat-tab-label-text-weight, var(--mat-sys-title-small-weight))}.mat-mdc-tab-link.mdc-tab{flex-grow:0}.mat-mdc-tab-link .mdc-tab-indicator__content--underline{border-color:var(--mat-tab-active-indicator-color, var(--mat-sys-primary));border-top-width:var(--mat-tab-active-indicator-height, 2px);border-radius:var(--mat-tab-active-indicator-shape, 0)}.mat-mdc-tab-link:hover .mdc-tab__text-label{color:var(--mat-tab-inactive-hover-label-text-color, var(--mat-sys-on-surface))}.mat-mdc-tab-link:focus .mdc-tab__text-label{color:var(--mat-tab-inactive-focus-label-text-color, var(--mat-sys-on-surface))}.mat-mdc-tab-link.mdc-tab--active .mdc-tab__text-label{color:var(--mat-tab-active-label-text-color, var(--mat-sys-on-surface))}.mat-mdc-tab-link.mdc-tab--active .mdc-tab__ripple::before,.mat-mdc-tab-link.mdc-tab--active .mat-ripple-element{background-color:var(--mat-tab-active-ripple-color, var(--mat-sys-on-surface))}.mat-mdc-tab-link.mdc-tab--active:hover .mdc-tab__text-label{color:var(--mat-tab-active-hover-label-text-color, var(--mat-sys-on-surface))}.mat-mdc-tab-link.mdc-tab--active:hover .mdc-tab-indicator__content--underline{border-color:var(--mat-tab-active-hover-indicator-color, var(--mat-sys-primary))}.mat-mdc-tab-link.mdc-tab--active:focus .mdc-tab__text-label{color:var(--mat-tab-active-focus-label-text-color, var(--mat-sys-on-surface))}.mat-mdc-tab-link.mdc-tab--active:focus .mdc-tab-indicator__content--underline{border-color:var(--mat-tab-active-focus-indicator-color, var(--mat-sys-primary))}.mat-mdc-tab-link.mat-mdc-tab-disabled{opacity:.4;pointer-events:none}.mat-mdc-tab-link.mat-mdc-tab-disabled .mdc-tab__content{pointer-events:none}.mat-mdc-tab-link.mat-mdc-tab-disabled .mdc-tab__ripple::before,.mat-mdc-tab-link.mat-mdc-tab-disabled .mat-ripple-element{background-color:var(--mat-tab-disabled-ripple-color, var(--mat-sys-on-surface-variant))}.mat-mdc-tab-link .mdc-tab__ripple::before{content:"";display:block;position:absolute;top:0;left:0;right:0;bottom:0;opacity:0;pointer-events:none;background-color:var(--mat-tab-inactive-ripple-color, var(--mat-sys-on-surface))}.mat-mdc-tab-link .mdc-tab__text-label{color:var(--mat-tab-inactive-label-text-color, var(--mat-sys-on-surface));display:inline-flex;align-items:center}.mat-mdc-tab-link .mdc-tab__content{position:relative;pointer-events:auto}.mat-mdc-tab-link:hover .mdc-tab__ripple::before{opacity:.04}.mat-mdc-tab-link.cdk-program-focused .mdc-tab__ripple::before,.mat-mdc-tab-link.cdk-keyboard-focused .mdc-tab__ripple::before{opacity:.12}.mat-mdc-tab-link .mat-ripple-element{opacity:.12;background-color:var(--mat-tab-inactive-ripple-color, var(--mat-sys-on-surface))}.mat-mdc-tab-header.mat-mdc-tab-nav-bar-stretch-tabs .mat-mdc-tab-link{flex-grow:1}.mat-mdc-tab-link::before{margin:5px}@media(max-width: 599px){.mat-mdc-tab-link{min-width:72px}} +`],encapsulation:2,changeDetection:0})}return t})(),B8=(()=>{class t{id=u(Ze).getId("mat-tab-nav-panel-");_activeTabId;static \u0275fac=function(i){return new(i||t)};static \u0275cmp=E({type:t,selectors:[["mat-tab-nav-panel"]],hostAttrs:["role","tabpanel",1,"mat-mdc-tab-nav-panel"],hostVars:2,hostBindings:function(i,r){i&2&&X("aria-labelledby",r._activeTabId)("id",r.id)},inputs:{id:"id"},exportAs:["matTabNavPanel"],ngContentSelectors:np,decls:1,vars:0,template:function(i,r){i&1&&(Me(),oe(0))},encapsulation:2,changeDetection:0})}return t})(),rp=(()=>{class t{static \u0275fac=function(i){return new(i||t)};static \u0275mod=ee({type:t});static \u0275inj=J({imports:[we,we]})}return t})();function $fe(t,n){if(t&1&&(h(0,"div",1)(1,"div"),_(2),p(),h(3,"div",2)(4,"div",3),_(5),p(),h(6,"div",4),_(7),p()()()),t&2){let e=n.$implicit;g(),it($o("d-flex align-items-center justify-content-center r-12 ",e.color)),Dt("width",3,"rem")("height",3,"rem"),g(),ve(" ",e.icon," "),g(3),H(e.title),g(2),H(e.content)}}function Wfe(t,n){if(t&1&&(h(0,"mat-tab",0),xt(1,$fe,8,10,"div",1,Hi),p()),t&2){let e=n.$implicit;y("label",e.label),g(),Ct(e.messages)}}var j8=(()=>{let n=class n{constructor(){this.tabs=[{label:"Today",messages:[{icon:"\u{1F514}",color:"bg-red-95",title:"General Meeting for update",content:"You can use the Dashboard to explore how many new users download reports daily and monthly."},{icon:"\u{1F4E2}",color:"bg-azure-95",title:"Widgets update",content:"We've made some updates to the emendable widget which we think you are going to love."},{icon:"\u23F3",color:"bg-violet-95",title:"Coming soon new features",content:"More new features are coming soon, so stay patient!"}]},{label:"Notifications",messages:[{icon:"\u{1F4E9}",color:"bg-magenta-95",title:"Weekly reports are available",content:"Please go to the notification center to check your reports."}]}]}};n.\u0275fac=function(r){return new(r||n)},n.\u0275cmp=E({type:n,selectors:[["app-sidebar-notice"]],hostAttrs:[1,"matero-sidebar-notice"],decls:3,vars:0,consts:[[3,"label"],[1,"d-flex","align-items-center","gap-16","p-16","m-b-16","b-1","r-12"],[1,"flex-grow-1","w-0"],[1,"f-w-600"],[1,"f-s-14"]],template:function(r,o){r&1&&(h(0,"mat-tab-group"),xt(1,Wfe,3,1,"mat-tab",0,Hi),p()),r&2&&(g(),Ct(o.tabs))},dependencies:[rp,__,tw],styles:[`.matero-sidebar-notice{display:block;height:100%}.matero-sidebar-notice .mat-mdc-tab-group{height:100%}.matero-sidebar-notice .mat-mdc-tab-body-wrapper{flex:1}.matero-sidebar-notice .mat-mdc-tab-body-content{padding:1rem} +`],encapsulation:2});let t=n;return t})();var Gfe=["switch"],qfe=["*"];function Yfe(t,n){t&1&&(h(0,"span",11),Gt(),h(1,"svg",13),k(2,"path",14),p(),h(3,"svg",15),k(4,"path",16),p()())}var Qfe=new T("mat-slide-toggle-default-options",{providedIn:"root",factory:()=>({disableToggleValue:!1,hideIcon:!1,disabledInteractive:!1})}),iw=class{source;checked;constructor(n,e){this.source=n,this.checked=e}},LI=(()=>{class t{_elementRef=u(q);_focusMonitor=u(Yt);_changeDetectorRef=u(ye);defaults=u(Qfe);_onChange=e=>{};_onTouched=()=>{};_validatorOnChange=()=>{};_uniqueId;_checked=!1;_createChangeEvent(e){return new iw(this,e)}_labelId;get buttonId(){return`${this.id||this._uniqueId}-button`}_switchElement;focus(){this._switchElement.nativeElement.focus()}_noopAnimations=Ye();_focused;name=null;id;labelPosition="after";ariaLabel=null;ariaLabelledby=null;ariaDescribedby;required;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 U;toggleChange=new U;get inputId(){return`${this.id||this._uniqueId}-input`}constructor(){u(ut).load(Di);let e=u(new Ii("tabindex"),{optional:!0}),i=this.defaults;this.tabIndex=e==null?0:parseInt(e)||0,this.color=i.color||"accent",this.id=this._uniqueId=u(Ze).getId("mat-mdc-slide-toggle-"),this.hideIcon=i.hideIcon??!1,this.disabledInteractive=i.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 iw(this,this.checked))))}_getAriaLabelledBy(){return this.ariaLabelledby?this.ariaLabelledby:this.ariaLabel?null:this._labelId}static \u0275fac=function(i){return new(i||t)};static \u0275cmp=E({type:t,selectors:[["mat-slide-toggle"]],viewQuery:function(i,r){if(i&1&&ie(Gfe,5),i&2){let o;B(o=j())&&(r._switchElement=o.first)}},hostAttrs:[1,"mat-mdc-slide-toggle"],hostVars:13,hostBindings:function(i,r){i&2&&(si("id",r.id),X("tabindex",null)("aria-label",null)("name",null)("aria-labelledby",null),it(r.color?"mat-"+r.color:""),G("mat-mdc-slide-toggle-focused",r._focused)("mat-mdc-slide-toggle-checked",r.checked)("_mat-animation-noopable",r._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",V],color:"color",disabled:[2,"disabled","disabled",V],disableRipple:[2,"disableRipple","disableRipple",V],tabIndex:[2,"tabIndex","tabIndex",e=>e==null?0:ct(e)],checked:[2,"checked","checked",V],hideIcon:[2,"hideIcon","hideIcon",V],disabledInteractive:[2,"disabledInteractive","disabledInteractive",V]},outputs:{change:"change",toggleChange:"toggleChange"},exportAs:["matSlideToggle"],features:[Ce([{provide:tr,useExisting:Kt(()=>t),multi:!0},{provide:ea,useExisting:t,multi:!0}]),Ae],ngContentSelectors:qfe,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(i,r){if(i&1){let o=Y();Me(),h(0,"div",1)(1,"button",2,0),S("click",function(){return I(o),A(r._handleClick())}),k(3,"div",3)(4,"span",4),h(5,"span",5)(6,"span",6)(7,"span",7),k(8,"span",8),p(),h(9,"span",9),k(10,"span",10),p(),N(11,Yfe,5,0,"span",11),p()()(),h(12,"label",12),S("click",function(s){return I(o),A(s.stopPropagation())}),oe(13),p()()}if(i&2){let o=Se(2);y("labelPosition",r.labelPosition),g(),G("mdc-switch--selected",r.checked)("mdc-switch--unselected",!r.checked)("mdc-switch--checked",r.checked)("mdc-switch--disabled",r.disabled)("mat-mdc-slide-toggle-disabled-interactive",r.disabledInteractive),y("tabIndex",r.disabled&&!r.disabledInteractive?-1:r.tabIndex)("disabled",r.disabled&&!r.disabledInteractive),X("id",r.buttonId)("name",r.name)("aria-label",r.ariaLabel)("aria-labelledby",r._getAriaLabelledBy())("aria-describedby",r.ariaDescribedby)("aria-required",r.required||null)("aria-checked",r.checked)("aria-disabled",r.disabled&&r.disabledInteractive?"true":null),g(9),y("matRippleTrigger",o)("matRippleDisabled",r.disableRipple||r.disabled)("matRippleCentered",!0),g(),L(r.hideIcon?-1:11),g(),y("for",r.buttonId),X("id",r._labelId)}},dependencies:[Vn,Gm],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 rgba(0,0,0,0);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 rgba(0,0,0,0);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:rgba(0,0,0,0);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:.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-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 t})(),H8=(()=>{class t{static \u0275fac=function(i){return new(i||t)};static \u0275mod=ee({type:t});static \u0275inj=J({imports:[LI,we,we]})}return t})();var nw=(()=>{let n=class n{constructor(){this.router=u(Re),this.menu=u(so),this.navItems=[],this.router.events.pipe(ce(i=>i instanceof vi)).subscribe(()=>this.checkOpenedItems()),this.menu.change().pipe(Rt(10)).subscribe(()=>{setTimeout(()=>this.checkOpenedItems())})}addItem(i){this.navItems.push(i)}removeItem(i){let r=this.navItems.indexOf(i);r!==-1&&this.navItems.splice(r,1)}closeOtherItems(i){this.navItems.forEach(r=>{r!==i&&r.setExpanded(!1)})}checkOpenedItems(){this.navItems.forEach(i=>{let r=i.route();r&&this.router.url.split("/").includes(r)&&(i.setExpanded(!0),this.closeOtherItems(i))})}};n.\u0275fac=function(r){return new(r||n)},n.\u0275dir=F({type:n,selectors:[["","navAccordion",""]],exportAs:["navAccordion"]});let t=n;return t})();var rw=(()=>{let n=class n{constructor(){this.nav=u(nw),this.route=ne(""),this.expanded=he(!1)}ngOnInit(){this.nav.addItem(this)}ngOnDestroy(){this.nav.removeItem(this)}toggle(){this.expanded.update(i=>!i),this.expanded()&&this.nav.closeOtherItems(this)}setExpanded(i){this.expanded()!==i&&this.expanded.set(i)}};n.\u0275fac=function(r){return new(r||n)},n.\u0275dir=F({type:n,selectors:[["","navAccordionItem",""]],hostVars:2,hostBindings:function(r,o){r&2&&G("expanded",o.expanded())},inputs:{route:[1,"route"]},exportAs:["navAccordionItem"]});let t=n;return t})();var z8=(()=>{let n=class n{constructor(){this.navItem=u(rw)}onClick(){this.navItem.toggle()}};n.\u0275fac=function(r){return new(r||n)},n.\u0275dir=F({type:n,selectors:[["","navAccordionToggle",""]],hostBindings:function(r,o){r&1&&S("click",function(){return o.onClick()})},exportAs:["navAccordionToggle"]});let t=n;return t})();var Zfe=()=>[],Xfe=(t,n)=>({menuList:t,parentRoute:n,level:0}),U8=t=>[t],ow=(t,n)=>({item:t,level:n}),Jfe=(t,n,e)=>({menuList:t,parentRoute:n,level:e});function ege(t,n){if(t&1&&(h(0,"a",6),Ge(1,2),p()),t&2){let e=C(2).$implicit,i=C(),r=i.parentRoute,o=i.level,a=C(),s=Se(5);y("routerLink",a.menu.buildRoute(r.concat(Pt(3,U8,e.route)))),g(),y("ngTemplateOutlet",s)("ngTemplateOutletContext",wa(5,ow,e,o))}}function tge(t,n){if(t&1&&(h(0,"a",7),Ge(1,2),p()),t&2){let e=C(2).$implicit,i=C().level;C();let r=Se(5);y("href",e.route,$r),g(),y("ngTemplateOutlet",r)("ngTemplateOutletContext",wa(3,ow,e,i))}}function ige(t,n){if(t&1&&(h(0,"a",8),Ge(1,2),p()),t&2){let e=C(2).$implicit,i=C().level;C();let r=Se(5);y("href",e.route,$r),g(),y("ngTemplateOutlet",r)("ngTemplateOutletContext",wa(3,ow,e,i))}}function nge(t,n){if(t&1&&(h(0,"button",9),Ge(1,2),p(),Ge(2,2)),t&2){let e=C(2).$implicit,i=C(),r=i.parentRoute,o=i.level;C();let a=Se(3),s=Se(5);g(),y("ngTemplateOutlet",s)("ngTemplateOutletContext",wa(4,ow,e,o)),g(),y("ngTemplateOutlet",a)("ngTemplateOutletContext",Rd(9,Jfe,e.children,r.concat(Pt(7,U8,e.route)),o+1))}}function rge(t,n){if(t&1&&(h(0,"li",5),N(1,ege,2,8,"a",6),N(2,tge,2,6,"a",7),N(3,ige,2,6,"a",8),N(4,nge,3,13),p()),t&2){let e=C().$implicit;y("route",e.route),g(),L(e.type==="link"?1:-1),g(),L(e.type==="extLink"?2:-1),g(),L(e.type==="extTabLink"?3:-1),g(),L(e.type==="sub"?4:-1)}}function oge(t,n){if(t&1&&R(0,rge,5,5,"ng-template",4),t&2){let e=n.$implicit;y("ngxPermissionsOnly",e.permissions==null?null:e.permissions.only)("ngxPermissionsExcept",e.permissions==null?null:e.permissions.except)}}function age(t,n){if(t&1&&(h(0,"ul",3),xt(1,oge,1,2,null,4,Hi),p()),t&2){let e=n.menuList,i=n.level;it($o("matero-sidemenu level-",i)),G("submenu",i>0),g(),Ct(e)}}function sge(t,n){if(t&1&&(h(0,"mat-icon",14),_(1),p()),t&2){let e=C(),i=e.item,r=e.level;G("submenu-icon",r>0),g(),H(i.icon)}}function lge(t,n){if(t&1&&(h(0,"span",14),_(1),me(2,"translate"),me(3,"slice"),p()),t&2){let e=C(),i=e.item,r=e.level;G("submenu-icon",r>0),g(),ve(" ",BM(3,5,Oe(2,3,i.name),0,1)," ")}}function cge(t,n){if(t&1&&(h(0,"span"),_(1),p()),t&2){let e=C().item;it($o("menu-label bg-",e.label.color)),g(),H(e.label.value)}}function dge(t,n){if(t&1&&(h(0,"span"),_(1),p()),t&2){let e=C().item;it($o("menu-badge bg-",e.badge.color)),g(),H(e.badge.value)}}function uge(t,n){if(t&1&&(h(0,"mat-icon",13),_(1),p()),t&2){let e=C().item;g(),H(e.type==="sub"?"arrow_drop_down":"launch")}}function mge(t,n){if(t&1&&(N(0,sge,2,3,"mat-icon",10)(1,lge,4,9,"span",10),h(2,"span",11),_(3),me(4,"translate"),p(),N(5,cge,2,4,"span",12),N(6,dge,2,4,"span",12),N(7,uge,2,1,"mat-icon",13)),t&2){let e=n.item;L(e.icon?0:1),g(3),H(Oe(4,5,e.name)),g(2),L(e.label?5:-1),g(),L(e.badge?6:-1),g(),L(e.type!=="link"?7:-1)}}var $8=(()=>{let n=class n{constructor(){this.menu=u(so)}};n.\u0275fac=function(r){return new(r||n)},n.\u0275cmp=E({type:n,selectors:[["app-sidemenu"]],decls:6,vars:8,consts:[["menuTpl",""],["linkTypeTpl",""],[3,"ngTemplateOutlet","ngTemplateOutletContext"],["navAccordion",""],[3,"ngxPermissionsOnly","ngxPermissionsExcept"],["navAccordionItem","","routerLinkActive","active",1,"menu-item",3,"route"],["matRipple","",1,"menu-heading",3,"routerLink"],["matRipple","",1,"menu-heading",3,"href"],["target","_blank","matRipple","",1,"menu-heading",3,"href"],["navAccordionToggle","","matRipple","",1,"menu-heading","menu-toggle"],[1,"menu-icon",3,"submenu-icon"],[1,"menu-name"],[3,"class"],[1,"menu-caret"],[1,"menu-icon"]],template:function(r,o){if(r&1&&(Ge(0,2),me(1,"async"),R(2,age,3,5,"ng-template",null,0,_i)(4,mge,8,7,"ng-template",null,1,_i)),r&2){let a=Se(3);y("ngTemplateOutlet",a)("ngTemplateOutletContext",wa(5,Xfe,Oe(1,2,o.menu.getAll()),at(4,Zfe)))}},dependencies:[Fn,Nn,zd,xc,Ih,ot,mt,yo,Vn,wr,nw,rw,z8,rn,d1,Cr],styles:[`.matero-sidemenu{padding:0;margin:0;list-style:none}.matero-sidemenu .menu-item{overflow:hidden;border-radius:1.5rem;transition:background 225ms cubic-bezier(.4,0,.2,1)}.matero-sidemenu .menu-item>.submenu{visibility:hidden;height:0;transition:all 225ms cubic-bezier(.4,0,.2,1)}.matero-sidemenu .menu-item>.menu-heading:hover,.matero-sidemenu .menu-item>.menu-heading:focus{background-color:var(--sidemenu-heading-hover-background-color)}.matero-sidemenu .menu-item.active>.menu-heading{color:var(--sidemenu-active-heading-text-color);background-color:var(--sidemenu-active-heading-background-color)}.matero-sidemenu .menu-item.active>.menu-heading:hover,.matero-sidemenu .menu-item.active>.menu-heading:focus{background-color:var(--sidemenu-active-heading-hover-background-color)}.matero-sidemenu .menu-item.expanded{background-color:var(--sidemenu-expanded-background-color)}.matero-sidemenu .menu-item.expanded>.submenu{visibility:visible;height:auto;height:calc-size(auto,size)}.matero-sidemenu .menu-item.expanded>.menu-toggle>.menu-caret{transform:rotate(-180deg)}.matero-sidemenu .menu-item:has(.active)>.menu-heading{color:var(--sidemenu-active-heading-text-color)}.matero-sidemenu .menu-heading{position:relative;display:flex;align-items:center;width:calc(var(--sidenav-width) - 1rem);padding:.75rem;font-size:inherit;color:inherit;text-decoration:none;cursor:pointer;outline:none;background-color:transparent;border:none;border-radius:1.5rem}.matero-sidemenu .menu-icon{width:1.5rem;height:1.5rem;margin-right:.75rem;font-size:1.25rem;line-height:1.5rem;text-align:center}[dir=rtl] .matero-sidemenu .menu-icon{margin-right:0;margin-left:.75rem}.matero-sidemenu .menu-icon.submenu-icon{position:absolute;left:.75rem;width:1.5rem;height:1.5rem;font-size:1rem;line-height:1.5rem;opacity:0}[dir=rtl] .matero-sidemenu .menu-icon.submenu-icon{right:.75rem;left:0}.matero-sidemenu .menu-caret{display:block;width:1.5rem;height:1.5rem;font-size:1.5rem;line-height:1.5rem;text-align:center;transition:transform .4s cubic-bezier(.25,.8,.25,1)}.matero-sidemenu .menu-name{flex:1;overflow:hidden;text-overflow:ellipsis;text-align:initial}.matero-sidemenu .menu-icon,.matero-sidemenu .menu-name,.matero-sidemenu .menu-label,.matero-sidemenu .menu-badge{transition:opacity .4s cubic-bezier(.25,.8,.25,1)}.matero-sidemenu .menu-label,.matero-sidemenu .menu-badge{padding:.25rem .5rem;font-size:.75rem;font-weight:700;line-height:1;color:#fff;background-color:#757575;border-radius:.375rem}.matero-sidemenu .menu-badge{border-radius:50rem}.matero-sidemenu.level-1>li>.menu-heading{padding-left:3rem}[dir=rtl] .matero-sidemenu.level-1>li>.menu-heading{padding-right:3rem;padding-left:1rem}.matero-sidemenu.level-2>li>.menu-heading{padding-left:4rem}[dir=rtl] .matero-sidemenu.level-2>li>.menu-heading{padding-right:4rem;padding-left:1rem}.matero-sidemenu.level-2 [class^=level-]>li>.menu-heading{padding-left:5rem}[dir=rtl] .matero-sidemenu.level-2 [class^=level-]>li>.menu-heading{padding-right:5rem;padding-left:1rem} +`],encapsulation:2});let t=n;return t})();var W8=(()=>{let n=class n{constructor(){this.oidcAuth=u(Tt),this.userName="Guest",this.userEmail="Anonymous"}ngOnInit(){this.updateUserInfo(),this.authSubscription=this.oidcAuth.isAuthenticated$.subscribe(i=>{console.log("UserPanel: Auth state changed:",i),this.updateUserInfo()})}ngOnDestroy(){this.authSubscription?.unsubscribe()}updateUserInfo(){let i=this.oidcAuth.isAuthenticated();if(console.log("UserPanel: Updating user info, isAuthenticated:",i),!i){this.userName="Guest",this.userEmail="Anonymous";return}let r=this.oidcAuth.getUserInfo();console.log("UserPanel: User info from service:",r),console.log("UserPanel: Available claims:",r?Object.keys(r):"null"),this.userName=r?.name||r?.preferred_username||r?.given_name||r?.["http://schemas.xmlsoap.org/ws/2005/05/identity/claims/name"]||r?.sub||"User",this.userEmail=r?.email||r?.["http://schemas.xmlsoap.org/ws/2005/05/identity/claims/emailaddress"]||"",console.log("UserPanel: Set userName to:",this.userName,"email to:",this.userEmail)}};n.\u0275fac=function(r){return new(r||n)},n.\u0275cmp=E({type:n,selectors:[["app-user-panel"]],decls:8,vars:4,consts:[[1,"matero-user-panel"],[1,"matero-user-panel-avatar"],[1,"matero-user-panel-info"]],template:function(r,o){r&1&&(h(0,"div",0)(1,"mat-icon",1),_(2,"account_circle"),p(),h(3,"div",2)(4,"h4"),_(5),p(),h(6,"h5"),_(7),p()()()),r&2&&(G("authenticated",o.oidcAuth.isAuthenticated()),g(5),H(o.userName),g(2),H(o.userEmail))},dependencies:[gt,ze,ot,mt,Br,wr],styles:[`.matero-user-panel{display:flex;align-items:center;padding:.75rem;margin-bottom:.75rem;cursor:pointer;outline:none;background-color:var(--user-panel-background-color);border-radius:.75rem}.matero-user-panel:hover,.matero-user-panel:focus{background-color:var(--user-panel-hover-background-color)}.matero-user-panel-avatar{width:3rem;height:3rem;font-size:3rem;border-radius:50rem;color:#0000008a;transform-origin:0 1.5rem;transition:transform .4s cubic-bezier(.25,.8,.25,1)}[dir=rtl] .matero-user-panel-avatar{transform-origin:3rem 1.5rem}.matero-user-panel-info{flex:1;width:0;margin-left:.75rem;opacity:1;transition:opacity .4s cubic-bezier(.25,.8,.25,1)}[dir=rtl] .matero-user-panel-info{margin-right:.75rem;margin-left:0}.matero-user-panel-info h4,.matero-user-panel-info h5{margin:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.matero-user-panel-info h4{margin-bottom:4px;font-size:1rem;font-weight:500}.matero-user-panel-info h5{font-size:.75rem;font-weight:400} +`],encapsulation:2});let t=n;return t})();function hge(t,n){if(t&1){let e=Y();h(0,"mat-slide-toggle",6),S("change",function(){I(e);let r=C(2);return A(r.toggleCollapsed.emit())}),p()}if(t&2){let e=C(2);y("checked",e.toggleChecked())}}function pge(t,n){if(t&1){let e=Y();h(0,"button",7),S("click",function(){I(e);let r=C(2);return A(r.closeSidenav.emit())}),h(1,"mat-icon"),_(2,"close"),p()()}}function fge(t,n){if(t&1&&(h(0,"div",0)(1,"mat-toolbar"),k(2,"app-branding",2)(3,"span",3),N(4,hge,1,1,"mat-slide-toggle",4)(5,pge,3,0,"button",5),p()()),t&2){let e=C();g(2),y("showName",!e.toggleChecked()),g(2),L(e.showToggle()?4:5)}}function gge(t,n){t&1&&k(0,"app-user-panel")}var G8=(()=>{let n=class n{constructor(){this.showToggle=ne(!0),this.showUser=ne(!0),this.showHeader=ne(!0),this.toggleChecked=ne(!1),this.toggleCollapsed=bi(),this.closeSidenav=bi()}};n.\u0275fac=function(r){return new(r||n)},n.\u0275cmp=E({type:n,selectors:[["app-sidebar"]],inputs:{showToggle:[1,"showToggle"],showUser:[1,"showUser"],showHeader:[1,"showHeader"],toggleChecked:[1,"toggleChecked"]},outputs:{toggleCollapsed:"toggleCollapsed",closeSidenav:"closeSidenav"},decls:4,vars:2,consts:[[1,"matero-sidebar-header"],[1,"matero-sidebar-main"],[3,"showName"],[1,"flex-fill"],["hideIcon","",3,"checked"],["mat-icon-button",""],["hideIcon","",3,"change","checked"],["mat-icon-button","",3,"click"]],template:function(r,o){r&1&&(N(0,fge,6,2,"div",0),h(1,"div",1),N(2,gge,1,0,"app-user-panel"),k(3,"app-sidemenu"),p()),r&2&&(L(o.showHeader()?0:-1),g(2),L(o.showUser()?2:-1))},dependencies:[H8,LI,ot,mt,ze,ti,ZC,KC,XC,$8,W8],styles:[`.matero-sidebar-header{overflow:hidden}.matero-sidebar-header mat-toolbar{width:var(--sidenav-width);padding:0 .5rem}.matero-sidebar-header mat-slide-toggle .mdc-label{display:none}.matero-sidebar-main{height:calc(100% - var(--mat-toolbar-standard-height));padding:0 .5rem .5rem;overflow:auto;scrollbar-width:none}@media (max-width: 599px){.matero-sidebar-main{height:calc(100% - var(--mat-toolbar-mobile-height))}} +`],encapsulation:2});let t=n;return t})();var q8=t=>[t],_ge=()=>[];function bge(t,n){if(t&1){let e=Y();h(0,"a",8,0),S("click",function(){I(e);let r=Se(1),o=C(3);return A(o.onRouterLinkClick(r))}),_(2),me(3,"translate"),p()}if(t&2){let e=C(2).$implicit,i=C();y("routerLink",i.menu.buildRoute(i.parentRoute().concat(Pt(4,q8,e.route)))),g(2),ve(" ",Oe(3,2,e.name)," ")}}function vge(t,n){if(t&1&&(h(0,"a",5)(1,"span",9),_(2),me(3,"translate"),p(),h(4,"mat-icon"),_(5,"launch"),p()()),t&2){let e=C(2).$implicit;y("href",e.route,$r),g(2),H(Oe(3,2,e.name))}}function yge(t,n){if(t&1&&(h(0,"a",6)(1,"span",9),_(2),me(3,"translate"),p(),h(4,"mat-icon"),_(5,"launch"),p()()),t&2){let e=C(2).$implicit;y("href",e.route,$r),g(2),H(Oe(3,2,e.name))}}function xge(t,n){if(t&1){let e=Y();h(0,"button",10),_(1),me(2,"translate"),h(3,"app-topmenu-panel",11,1),S("routeChange",function(r){I(e);let o=C(2).$implicit,a=C();return A(a.onRouteChange(r,o))}),p()()}if(t&2){let e=Se(4),i=C(2).$implicit,r=C();G("active",i.active==null?null:i.active()),y("matMenuTriggerFor",e.menuPanel()),g(),ve(" ",Oe(2,7,i.name)," "),g(2),y("items",i.children||at(9,_ge))("parentRoute",r.parentRoute().concat(Pt(10,q8,i.route)))("level",r.level()+1)}}function Cge(t,n){if(t&1&&(N(0,bge,4,6,"a",4),N(1,vge,6,4,"a",5),N(2,yge,6,4,"a",6),N(3,xge,5,12,"button",7)),t&2){let e=C().$implicit;L(e.type==="link"?0:-1),g(),L(e.type==="extLink"?1:-1),g(),L(e.type==="extTabLink"?2:-1),g(),L(e.type==="sub"?3:-1)}}function wge(t,n){if(t&1&&R(0,Cge,4,4,"ng-template",3),t&2){let e=n.$implicit;y("ngxPermissionsOnly",e.permissions==null?null:e.permissions.only)("ngxPermissionsExcept",e.permissions==null?null:e.permissions.except)}}var Y8=(()=>{let n=class n{constructor(){this.router=u(Re),this.menu=u(so),this.menuPanel=qn.required(jr),this.items=ne([]),this.parentRoute=ne([]),this.level=ne(1),this.routeChange=bi(),this.routerSubscription=this.router.events.pipe(ce(i=>i instanceof vi)).subscribe(i=>{this.items().map(r=>r.active?.set(!1))})}ngOnInit(){this.items().forEach(i=>{i.active=he(this.checkRoute(i))})}ngOnDestroy(){this.routerSubscription.unsubscribe()}checkRoute(i){return i.route?this.router.url.split("/").includes(i.route):this.checkChildRoute(i.children)}checkChildRoute(i=[]){return i.some(r=>this.router.url.split("/").includes(r.route)?!0:(!r.route&&r.children&&this.checkChildRoute(r.children),!1))}onRouterLinkClick(i){this.routeChange.emit(i)}onRouteChange(i,r){this.routeChange.emit(i),this.routerSubscription.unsubscribe(),this.routerSubscription=this.router.events.pipe(ce(o=>o instanceof vi),Be(()=>{this.items().filter(a=>a!=r).map(a=>a.active?.set(!1))}),Rt(10),Be(()=>{r.active?.set(i.isActive)})).subscribe()}};n.\u0275fac=function(r){return new(r||n)},n.\u0275cmp=E({type:n,selectors:[["app-topmenu-panel"]],viewQuery:function(r,o){r&1&&Pn(o.menuPanel,jr,5),r&2&&Ho()},inputs:{items:[1,"items"],parentRoute:[1,"parentRoute"],level:[1,"level"]},outputs:{routeChange:"routeChange"},decls:3,vars:0,consts:[["rla","routerLinkActive"],["submenu",""],[1,"matero-topmenu-panel"],[3,"ngxPermissionsOnly","ngxPermissionsExcept"],["mat-menu-item","","routerLinkActive","active",3,"routerLink"],["mat-menu-item","",3,"href"],["mat-menu-item","","target","_blank",3,"href"],["mat-menu-item","",3,"matMenuTriggerFor","active"],["mat-menu-item","","routerLinkActive","active",3,"click","routerLink"],[1,"menu-name"],["mat-menu-item","",3,"matMenuTriggerFor"],[3,"routeChange","items","parentRoute","level"]],template:function(r,o){r&1&&(h(0,"mat-menu",2),xt(1,wge,1,2,null,3,Hi),p()),r&2&&(g(),Ct(o.items()))},dependencies:[n,Nn,zd,ot,mt,Ls,jr,El,Ns,xc,Ih,wr,Cr],encapsulation:2});let t=n;return t})();var Q8=t=>[t],sw=t=>({item:t}),Dge=()=>[];function Ege(t,n){if(t&1&&(h(0,"a",5),Ge(1,9),p()),t&2){let e=C(2).$implicit,i=C(),r=Se(7);y("routerLink",i.menu.buildRoute(Pt(3,Q8,e.route))),g(),y("ngTemplateOutlet",r)("ngTemplateOutletContext",Pt(5,sw,e))}}function Mge(t,n){if(t&1&&(h(0,"a",6),Ge(1,9),p()),t&2){let e=C(2).$implicit;C();let i=Se(7);y("href",e.route,$r),g(),y("ngTemplateOutlet",i)("ngTemplateOutletContext",Pt(3,sw,e))}}function kge(t,n){if(t&1&&(h(0,"a",7),Ge(1,9),p()),t&2){let e=C(2).$implicit;C();let i=Se(7);y("href",e.route,$r),g(),y("ngTemplateOutlet",i)("ngTemplateOutletContext",Pt(3,sw,e))}}function Sge(t,n){if(t&1){let e=Y();h(0,"button",10),Ge(1,9),h(2,"app-topmenu-panel",11,2),S("routeChange",function(r){I(e);let o=C(2).$implicit,a=C();return A(a.onRouteChange(r,o))}),p()()}if(t&2){let e=Se(3),i=C(2).$implicit;C();let r=Se(7);G("active",i.active==null?null:i.active()),y("matMenuTriggerFor",e.menuPanel()),g(),y("ngTemplateOutlet",r)("ngTemplateOutletContext",Pt(8,sw,i)),g(),y("items",i.children||at(10,Dge))("parentRoute",Pt(11,Q8,i.route))("level",1)}}function Tge(t,n){if(t&1&&(N(0,Ege,2,7,"a",5),N(1,Mge,2,5,"a",6),N(2,kge,2,5,"a",7),N(3,Sge,4,13,"button",8)),t&2){let e=C().$implicit;L(e.type==="link"?0:-1),g(),L(e.type==="extLink"?1:-1),g(),L(e.type==="extTabLink"?2:-1),g(),L(e.type==="sub"?3:-1)}}function Ige(t,n){if(t&1&&R(0,Tge,4,4,"ng-template",4),t&2){let e=n.$implicit;y("ngxPermissionsOnly",e.permissions==null?null:e.permissions.only)("ngxPermissionsExcept",e.permissions==null?null:e.permissions.except)}}function Age(t,n){if(t&1&&(h(0,"span"),_(1),p()),t&2){let e=C().item;it($o("menu-label bg-",e.label.color)),g(),H(e.label.value)}}function Oge(t,n){if(t&1&&(h(0,"span"),_(1),p()),t&2){let e=C().item;it($o("menu-badge bg-",e.badge.color)),g(),H(e.badge.value)}}function Rge(t,n){if(t&1&&(h(0,"mat-icon",15),_(1),p()),t&2){let e=C().item;g(),H(e.type==="sub"?"arrow_drop_down":"launch")}}function Pge(t,n){if(t&1&&(h(0,"mat-icon",12),_(1),p(),h(2,"span",13),_(3),me(4,"translate"),p(),N(5,Age,2,4,"span",14),N(6,Oge,2,4,"span",14),N(7,Rge,2,1,"mat-icon",15)),t&2){let e=n.item;g(),H(e.icon),g(2),H(Oe(4,5,e.name)),g(2),L(e.label?5:-1),g(),L(e.badge?6:-1),g(),L(e.type!=="link"?7:-1)}}var K8=(()=>{let n=class n{constructor(){this.router=u(Re),this.menu=u(so),this.menuList=[],this.menuSubscription=this.menu.getAll().subscribe(i=>{this.menuList=i.map(r=>{let o=this.router.url.split("/").includes(r.route);return r.active=he(o),r})}),this.routerSubscription=this.router.events.pipe(ce(i=>i instanceof vi)).subscribe(i=>{this.menuList.map(r=>r.active?.set(!1))})}ngOnDestroy(){this.menuSubscription.unsubscribe(),this.routerSubscription.unsubscribe()}onRouteChange(i,r){this.routerSubscription.unsubscribe(),this.routerSubscription=this.router.events.pipe(ce(o=>o instanceof vi),Be(()=>{this.menuList.filter(o=>o!=r).map(o=>o.active?.set(!1))}),Rt(10),Be(()=>{r.active?.set(i.isActive)})).subscribe()}};n.\u0275fac=function(r){return new(r||n)},n.\u0275cmp=E({type:n,selectors:[["app-topmenu"]],hostAttrs:[1,"matero-topmenu"],decls:8,vars:3,consts:[["tabPanel",""],["linkTypeTpl",""],["submenu",""],["mat-tab-nav-bar","",3,"tabPanel"],[3,"ngxPermissionsOnly","ngxPermissionsExcept"],["matButton","","routerLinkActive","active",3,"routerLink"],["matButton","",3,"href"],["matButton","","target","_blank",3,"href"],["matButton","",3,"matMenuTriggerFor","active"],[3,"ngTemplateOutlet","ngTemplateOutletContext"],["matButton","",3,"matMenuTriggerFor"],[3,"routeChange","items","parentRoute","level"],[1,"menu-icon"],[1,"menu-name"],[3,"class"],[1,"menu-caret"]],template:function(r,o){if(r&1&&(h(0,"nav",3),xt(1,Ige,1,2,null,4,Hi),me(3,"async"),p(),k(4,"mat-tab-nav-panel",null,0),R(6,Pge,8,7,"ng-template",null,1,_i)),r&2){let a=Se(5);y("tabPanel",a),g(),Ct(Oe(3,1,o.menu.getAll()))}},dependencies:[Fn,Nn,zd,ze,kt,ot,mt,Ls,Ns,rp,FI,B8,xc,Ih,wr,Y8,rn,Cr],styles:[`.matero-topmenu{--mat-tab-divider-height: 0;--mat-button-text-label-text-color: var(--topmenu-text-color);position:sticky;z-index:200;display:block;padding:.5rem;background-color:var(--topmenu-background-color);-webkit-backdrop-filter:blur(8px);backdrop-filter:blur(8px)}.matero-topmenu .mat-mdc-button{padding:0 1rem;white-space:nowrap}.matero-topmenu .mat-mdc-button.active{background-color:var(--topmenu-item-active-background-color)}.matero-topmenu .menu-icon,.matero-topmenu .menu-caret,.matero-topmenu .menu-name{vertical-align:middle}.matero-topmenu .mat-icon.menu-icon{width:1.125rem;height:1.125rem;margin-right:.5rem;font-size:1.125rem;line-height:1.125rem}[dir=rtl] .matero-topmenu .mat-icon.menu-icon{margin-right:auto;margin-left:.5rem}.matero-topmenu .mat-icon.menu-caret{margin-right:-.5rem}[dir=rtl] .matero-topmenu .mat-icon.menu-caret{margin-right:auto;margin-left:-.5rem}.matero-topmenu .menu-label,.matero-topmenu .menu-badge{padding:.25rem .5rem;margin-left:.5rem;font-size:.75rem;font-weight:700;line-height:1;color:#fff;background-color:#757575;border-radius:.375rem}[dir=rtl] .matero-topmenu .menu-label,[dir=rtl] .matero-topmenu .menu-badge{margin-right:.5rem;margin-left:auto}.matero-topmenu .menu-badge{border-radius:50rem}.matero-topmenu .mat-tab-nav-bar,.matero-topmenu .mat-tab-header{border-bottom:none}.matero-topmenu-panel .mat-mdc-menu-item.active{color:var(--topmenu-dropdown-item-active-text-color)} +`],encapsulation:2});let t=n;return t})();var Fge=["sidenav"],Nge=["content"];function Lge(t,n){if(t&1){let e=Y();h(0,"app-header",13),S("toggleSidenav",function(){I(e),C();let r=Se(5);return A(r.toggle())})("toggleSidenavNotice",function(){I(e),C();let r=Se(8);return A(r.toggle())}),p()}t&2&&y("showBranding",!0)}function Vge(t,n){if(t&1){let e=Y();h(0,"app-header",14),S("toggleSidenav",function(){I(e),C();let r=Se(5);return A(r.toggle())})("toggleSidenavNotice",function(){I(e),C();let r=Se(8);return A(r.toggle())}),p()}if(t&2){let e=C();y("showToggle",!e.options.sidenavCollapsed&&e.options.navPos!=="top")("showBranding",e.options.navPos==="top")}}function Bge(t,n){t&1&&k(0,"app-topmenu")}var Z8="screen and (max-width: 599px)",X8="screen and (min-width: 600px) and (max-width: 959px)",J8="screen and (min-width: 960px)",eU=(()=>{let n=class n{get themeColor(){return this.settings.getThemeColor()}get isOver(){return this.isMobileScreen}get contentWidthFix(){return this.isContentWidthFixed&&this.options.navPos==="side"&&this.options.sidenavOpened&&!this.isOver}get collapsedWidthFix(){return this.isCollapsedWidthFixed&&(this.options.navPos==="top"||this.options.sidenavOpened&&this.isOver)}constructor(){this.sidenav=qn.required("sidenav"),this.content=qn.required("content"),this.breakpointObserver=u(sl),this.router=u(Re),this.settings=u(aa),this.options=this.settings.options,this.isMobileScreen=!1,this.isContentWidthFixed=!0,this.isCollapsedWidthFixed=!1,this.layoutChangesSubscription=ke.EMPTY,this.layoutChangesSubscription=this.breakpointObserver.observe([Z8,X8,J8]).subscribe(i=>{this.options.sidenavOpened=!0,this.isMobileScreen=i.breakpoints[Z8],this.options.sidenavCollapsed=i.breakpoints[X8],this.isContentWidthFixed=i.breakpoints[J8]}),this.router.events.pipe(ce(i=>i instanceof vi)).subscribe(i=>{this.isOver&&this.sidenav().close(),this.content().scrollTo({top:0})})}ngOnDestroy(){this.layoutChangesSubscription.unsubscribe()}toggleCollapsed(){this.isContentWidthFixed=!1,this.options.sidenavCollapsed=!this.options.sidenavCollapsed,this.resetCollapsedState()}resetCollapsedState(i=400){setTimeout(()=>{this.settings.setOptions(this.options)},i)}onSidenavClosedStart(){this.isContentWidthFixed=!1}onSidenavOpenedChange(i){this.isCollapsedWidthFixed=!this.isOver,this.options.sidenavOpened=i,this.settings.setOptions(this.options)}updateOptions(i){this.options=i,this.settings.setOptions(i),this.settings.setDirection(),this.settings.setTheme()}};n.\u0275fac=function(r){return new(r||n)},n.\u0275cmp=E({type:n,selectors:[["app-admin-layout"]],viewQuery:function(r,o){r&1&&(Pn(o.sidenav,Fge,5),Pn(o.content,Nge,5)),r&2&&Ho(2)},hostVars:4,hostBindings:function(r,o){r&2&&G("matero-content-width-fix",o.contentWidthFix)("matero-sidenav-collapsed-fix",o.collapsedWidthFix)},decls:16,vars:20,consts:[["sidenav",""],["sidenavNotice",""],["content",""],[1,"matero-container-wrap",3,"dir"],["ngProgressRouter",""],[3,"showBranding"],["autosize","","autoFocus","",1,"matero-container"],[1,"matero-sidenav",3,"openedChange","closedStart","mode","opened"],[3,"toggleCollapsed","closeSidenav","showToggle","showUser","showHeader","toggleChecked"],["position","end","mode","over"],[1,"matero-content"],[3,"showToggle","showBranding"],[1,"matero-page-content"],[3,"toggleSidenav","toggleSidenavNotice","showBranding"],[3,"toggleSidenav","toggleSidenavNotice","showToggle","showBranding"]],template:function(r,o){if(r&1){let a=Y();h(0,"div",3),k(1,"ng-progress",4),N(2,Lge,1,1,"app-header",5),h(3,"mat-sidenav-container",6)(4,"mat-sidenav",7,0),S("openedChange",function(l){return I(a),A(o.onSidenavOpenedChange(l))})("closedStart",function(){return I(a),A(o.onSidenavClosedStart())}),h(6,"app-sidebar",8),S("toggleCollapsed",function(){return I(a),A(o.toggleCollapsed())})("closeSidenav",function(){I(a);let l=Se(5);return A(l.close())}),p()(),h(7,"mat-sidenav",9,1),k(9,"app-sidebar-notice"),p(),h(10,"mat-sidenav-content",10,2),N(12,Vge,1,2,"app-header",11),N(13,Bge,1,0,"app-topmenu"),h(14,"main",12),k(15,"router-outlet"),p()()()()}r&2&&(G("matero-sidenav-collapsed",o.options.sidenavCollapsed&&o.options.navPos!=="top")("matero-navbar-side",o.options.navPos==="side")("matero-navbar-top",o.options.navPos==="top")("matero-header-above",o.options.headerPos==="above")("matero-header-fixed",o.options.headerPos==="fixed"),y("dir",o.options.dir),g(2),L(o.options.showHeader&&o.options.headerPos==="above"?2:-1),g(2),y("mode",o.isOver?"over":"side")("opened",o.options.navPos==="side"&&o.options.sidenavOpened&&!o.isOver),g(2),y("showToggle",!o.isOver)("showUser",!!o.options.showUserPanel)("showHeader",o.options.headerPos!=="above")("toggleChecked",!!o.options.sidenavCollapsed),g(6),L(o.options.showHeader&&o.options.headerPos!=="above"?12:-1),g(),L(o.options.navPos==="top"?13:-1))},dependencies:[ol,vs,zL,n8,kI,i8,GC,o8,s8,D8,K8,G8,j8],styles:[`.matero-container-wrap,.matero-container{--mat-sidenav-content-background-color: transparent;height:100%}.matero-sidenav{--mat-sidenav-container-width: var(--sidenav-width);position:absolute;overflow-x:hidden;border-width:0!important;transition-property:transform,width!important}.matero-header-above .matero-container{height:calc(100% - var(--mat-toolbar-standard-height))!important}@media (max-width: 599px){.matero-header-above .matero-container{height:calc(100% - var(--mat-toolbar-mobile-height))!important}}.matero-header-above .matero-sidebar-main{height:100%!important;padding-top:.5rem}.matero-sidenav-collapsed .matero-sidenav,.matero-sidenav-collapsed-fix .matero-sidenav{width:var(--sidenav-collapsed-width)}.matero-sidenav-collapsed .matero-sidenav .menu-name,.matero-sidenav-collapsed .matero-sidenav .menu-label,.matero-sidenav-collapsed .matero-sidenav .menu-badge,.matero-sidenav-collapsed .matero-sidenav .menu-caret,.matero-sidenav-collapsed .matero-sidenav .matero-user-panel-info,.matero-sidenav-collapsed-fix .matero-sidenav .menu-name,.matero-sidenav-collapsed-fix .matero-sidenav .menu-label,.matero-sidenav-collapsed-fix .matero-sidenav .menu-badge,.matero-sidenav-collapsed-fix .matero-sidenav .menu-caret,.matero-sidenav-collapsed-fix .matero-sidenav .matero-user-panel-info{opacity:0}.matero-sidenav-collapsed .matero-sidenav .menu-icon.submenu-icon,.matero-sidenav-collapsed-fix .matero-sidenav .menu-icon.submenu-icon{opacity:1}.matero-sidenav-collapsed .matero-sidenav .matero-user-panel-avatar,.matero-sidenav-collapsed-fix .matero-sidenav .matero-user-panel-avatar{transform:scale(.5)}.matero-sidenav-collapsed .matero-sidenav:hover,.matero-sidenav-collapsed-fix .matero-sidenav:hover{width:var(--sidenav-width)}.matero-sidenav-collapsed .matero-sidenav:hover .menu-name,.matero-sidenav-collapsed .matero-sidenav:hover .menu-label,.matero-sidenav-collapsed .matero-sidenav:hover .menu-badge,.matero-sidenav-collapsed .matero-sidenav:hover .menu-caret,.matero-sidenav-collapsed .matero-sidenav:hover .matero-user-panel-info,.matero-sidenav-collapsed-fix .matero-sidenav:hover .menu-name,.matero-sidenav-collapsed-fix .matero-sidenav:hover .menu-label,.matero-sidenav-collapsed-fix .matero-sidenav:hover .menu-badge,.matero-sidenav-collapsed-fix .matero-sidenav:hover .menu-caret,.matero-sidenav-collapsed-fix .matero-sidenav:hover .matero-user-panel-info{opacity:1}.matero-sidenav-collapsed .matero-sidenav:hover .menu-icon.submenu-icon,.matero-sidenav-collapsed-fix .matero-sidenav:hover .menu-icon.submenu-icon{opacity:0}.matero-sidenav-collapsed .matero-sidenav:hover .matero-user-panel-avatar,.matero-sidenav-collapsed-fix .matero-sidenav:hover .matero-user-panel-avatar{transform:scale(1)}.matero-sidenav-collapsed .matero-content{margin-left:var(--sidenav-collapsed-width)!important}[dir=rtl] .matero-sidenav-collapsed .matero-content,.matero-sidenav-collapsed[dir=rtl] .matero-content{margin-right:var(--sidenav-collapsed-width)!important;margin-left:auto!important}.matero-navbar-top .matero-topmenu{top:0}.matero-navbar-top .matero-branding{margin-left:1rem}[dir=rtl] .matero-navbar-top .matero-branding{margin-right:1rem;margin-left:auto}.matero-header-fixed .matero-header{position:sticky;top:0}.matero-header-fixed .matero-topmenu{top:var(--mat-toolbar-standard-height)}@media (max-width: 599px){.matero-header-fixed .matero-topmenu{top:var(--mat-toolbar-mobile-height)}}.matero-content-width-fix .matero-content{margin-left:var(--sidenav-width)!important}[dir=rtl] .matero-content-width-fix .matero-content{margin-right:var(--sidenav-width)!important;margin-left:auto!important}.matero-page-content{position:relative;padding:var(--gutter)}.matero-header+.matero-page-content,.matero-header-above .matero-page-content,.matero-navbar-top .matero-page-content{padding-top:0} +`],encapsulation:2});let t=n;return t})();var tU=(()=>{let n=class n{};n.\u0275fac=function(r){return new(r||n)},n.\u0275cmp=E({type:n,selectors:[["app-auth-layout"]],decls:2,vars:0,consts:[[1,"matero-auth-container"]],template:function(r,o){r&1&&(h(0,"div",0),k(1,"router-outlet"),p())},dependencies:[ol],styles:[`.matero-auth-container{position:relative;display:flex;justify-content:center;min-height:100%;background-image:radial-gradient(at 97% 21%,hsla(125,98%,72%,.3) 0,transparent 50%),radial-gradient(at 52% 99%,hsla(354,98%,61%,.3) 0,transparent 50%),radial-gradient(at 10% 29%,hsla(256,96%,67%,.3) 0,transparent 50%),radial-gradient(at 97% 96%,hsla(38,60%,74%,.3) 0,transparent 50%),radial-gradient(at 33% 50%,hsla(222,67%,73%,.3) 0,transparent 50%),radial-gradient(at 79% 53%,hsla(343,68%,79%,.3) 0,transparent 50%)} +`],encapsulation:2});let t=n;return t})();var jge=["determinateSpinner"];function Hge(t,n){if(t&1&&(Gt(),h(0,"svg",11),k(1,"circle",12),p()),t&2){let e=C();X("viewBox",e._viewBox()),g(),Dt("stroke-dasharray",e._strokeCircumference(),"px")("stroke-dashoffset",e._strokeCircumference()/2,"px")("stroke-width",e._circleStrokeWidth(),"%"),X("r",e._circleRadius())}}var zge=new T("mat-progress-spinner-default-options",{providedIn:"root",factory:Uge});function Uge(){return{diameter:iU}}var iU=100,$ge=10,ki=(()=>{class t{_elementRef=u(q);_noopAnimations;get color(){return this._color||this._defaultColor}set color(e){this._color=e}_color;_defaultColor="primary";_determinateCircle;constructor(){let e=u(zge),i=pk(),r=this._elementRef.nativeElement;this._noopAnimations=i==="di-disabled"&&!!e&&!e._forceAnimations,this.mode=r.nodeName.toLowerCase()==="mat-spinner"?"indeterminate":"determinate",!this._noopAnimations&&i==="reduced-motion"&&r.classList.add("mat-progress-spinner-reduced-motion"),e&&(e.color&&(this.color=this._defaultColor=e.color),e.diameter&&(this.diameter=e.diameter),e.strokeWidth&&(this.strokeWidth=e.strokeWidth))}mode;get value(){return this.mode==="determinate"?this._value:0}set value(e){this._value=Math.max(0,Math.min(100,e||0))}_value=0;get diameter(){return this._diameter}set diameter(e){this._diameter=e||0}_diameter=iU;get strokeWidth(){return this._strokeWidth??this.diameter/10}set strokeWidth(e){this._strokeWidth=e||0}_strokeWidth;_circleRadius(){return(this.diameter-$ge)/2}_viewBox(){let e=this._circleRadius()*2+this.strokeWidth;return`0 0 ${e} ${e}`}_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(i){return new(i||t)};static \u0275cmp=E({type:t,selectors:[["mat-progress-spinner"],["mat-spinner"]],viewQuery:function(i,r){if(i&1&&ie(jge,5),i&2){let o;B(o=j())&&(r._determinateCircle=o.first)}},hostAttrs:["role","progressbar","tabindex","-1",1,"mat-mdc-progress-spinner","mdc-circular-progress"],hostVars:18,hostBindings:function(i,r){i&2&&(X("aria-valuemin",0)("aria-valuemax",100)("aria-valuenow",r.mode==="determinate"?r.value:null)("mode",r.mode),it("mat-"+r.color),Dt("width",r.diameter,"px")("height",r.diameter,"px")("--mat-progress-spinner-size",r.diameter+"px")("--mat-progress-spinner-active-indicator-width",r.diameter+"px"),G("_mat-animation-noopable",r._noopAnimations)("mdc-circular-progress--indeterminate",r.mode==="indeterminate"))},inputs:{color:"color",mode:"mode",value:[2,"value","value",ct],diameter:[2,"diameter","diameter",ct],strokeWidth:[2,"strokeWidth","strokeWidth",ct]},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(i,r){if(i&1&&(R(0,Hge,2,8,"ng-template",null,0,_i),h(2,"div",2,1),Gt(),h(4,"svg",3),k(5,"circle",4),p()(),jo(),h(6,"div",5)(7,"div",6)(8,"div",7),Ge(9,8),p(),h(10,"div",9),Ge(11,8),p(),h(12,"div",10),Ge(13,8),p()()()),i&2){let o=Se(1);g(4),X("viewBox",r._viewBox()),g(),Dt("stroke-dasharray",r._strokeCircumference(),"px")("stroke-dashoffset",r._strokeDashOffset(),"px")("stroke-width",r._circleStrokeWidth(),"%"),X("r",r._circleRadius()),g(4),y("ngTemplateOutlet",o),g(2),y("ngTemplateOutlet",o),g(2),y("ngTemplateOutlet",o)}},dependencies:[Fn],styles:[`.mat-mdc-progress-spinner{--mat-progress-spinner-animation-multiplier: 1;display:block;overflow:hidden;line-height:0;position:relative;direction:ltr;transition:opacity 250ms cubic-bezier(0.4, 0, 0.6, 1)}.mat-mdc-progress-spinner circle{stroke-width:var(--mat-progress-spinner-active-indicator-width, 4px)}.mat-mdc-progress-spinner._mat-animation-noopable,.mat-mdc-progress-spinner._mat-animation-noopable .mdc-circular-progress__determinate-circle{transition:none !important}.mat-mdc-progress-spinner._mat-animation-noopable .mdc-circular-progress__indeterminate-circle-graphic,.mat-mdc-progress-spinner._mat-animation-noopable .mdc-circular-progress__spinner-layer,.mat-mdc-progress-spinner._mat-animation-noopable .mdc-circular-progress__indeterminate-container{animation:none !important}.mat-mdc-progress-spinner._mat-animation-noopable .mdc-circular-progress__indeterminate-container circle{stroke-dasharray:0 !important}@media(forced-colors: active){.mat-mdc-progress-spinner .mdc-circular-progress__indeterminate-circle-graphic,.mat-mdc-progress-spinner .mdc-circular-progress__determinate-circle{stroke:currentColor;stroke:CanvasText}}.mat-progress-spinner-reduced-motion{--mat-progress-spinner-animation-multiplier: 1.25}.mdc-circular-progress__determinate-container,.mdc-circular-progress__indeterminate-circle-graphic,.mdc-circular-progress__indeterminate-container,.mdc-circular-progress__spinner-layer{position:absolute;width:100%;height:100%}.mdc-circular-progress__determinate-container{transform:rotate(-90deg)}.mdc-circular-progress--indeterminate .mdc-circular-progress__determinate-container{opacity:0}.mdc-circular-progress__indeterminate-container{font-size:0;letter-spacing:0;white-space:nowrap;opacity:0}.mdc-circular-progress--indeterminate .mdc-circular-progress__indeterminate-container{opacity:1;animation:mdc-circular-progress-container-rotate calc(1568.2352941176ms*var(--mat-progress-spinner-animation-multiplier)) linear infinite}.mdc-circular-progress__determinate-circle-graphic,.mdc-circular-progress__indeterminate-circle-graphic{fill:rgba(0,0,0,0)}.mat-mdc-progress-spinner .mdc-circular-progress__determinate-circle,.mat-mdc-progress-spinner .mdc-circular-progress__indeterminate-circle-graphic{stroke:var(--mat-progress-spinner-active-indicator-color, var(--mat-sys-primary))}@media(forced-colors: active){.mat-mdc-progress-spinner .mdc-circular-progress__determinate-circle,.mat-mdc-progress-spinner .mdc-circular-progress__indeterminate-circle-graphic{stroke:CanvasText}}.mdc-circular-progress__determinate-circle{transition:stroke-dashoffset 500ms cubic-bezier(0, 0, 0.2, 1)}.mdc-circular-progress__gap-patch{position:absolute;top:0;left:47.5%;box-sizing:border-box;width:5%;height:100%;overflow:hidden}.mdc-circular-progress__gap-patch .mdc-circular-progress__indeterminate-circle-graphic{left:-900%;width:2000%;transform:rotate(180deg)}.mdc-circular-progress__circle-clipper .mdc-circular-progress__indeterminate-circle-graphic{width:200%}.mdc-circular-progress__circle-right .mdc-circular-progress__indeterminate-circle-graphic{left:-100%}.mdc-circular-progress--indeterminate .mdc-circular-progress__circle-left .mdc-circular-progress__indeterminate-circle-graphic{animation:mdc-circular-progress-left-spin calc(1333ms*var(--mat-progress-spinner-animation-multiplier)) cubic-bezier(0.4, 0, 0.2, 1) infinite both}.mdc-circular-progress--indeterminate .mdc-circular-progress__circle-right .mdc-circular-progress__indeterminate-circle-graphic{animation:mdc-circular-progress-right-spin calc(1333ms*var(--mat-progress-spinner-animation-multiplier)) cubic-bezier(0.4, 0, 0.2, 1) infinite both}.mdc-circular-progress__circle-clipper{display:inline-flex;position:relative;width:50%;height:100%;overflow:hidden}.mdc-circular-progress--indeterminate .mdc-circular-progress__spinner-layer{animation:mdc-circular-progress-spinner-layer-rotate calc(5332ms*var(--mat-progress-spinner-animation-multiplier)) cubic-bezier(0.4, 0, 0.2, 1) infinite both}@keyframes mdc-circular-progress-container-rotate{to{transform:rotate(360deg)}}@keyframes mdc-circular-progress-spinner-layer-rotate{12.5%{transform:rotate(135deg)}25%{transform:rotate(270deg)}37.5%{transform:rotate(405deg)}50%{transform:rotate(540deg)}62.5%{transform:rotate(675deg)}75%{transform:rotate(810deg)}87.5%{transform:rotate(945deg)}100%{transform:rotate(1080deg)}}@keyframes mdc-circular-progress-left-spin{from{transform:rotate(265deg)}50%{transform:rotate(130deg)}to{transform:rotate(265deg)}}@keyframes mdc-circular-progress-right-spin{from{transform:rotate(-265deg)}50%{transform:rotate(-130deg)}to{transform:rotate(-265deg)}} +`],encapsulation:2,changeDetection:0})}return t})();var Si=(()=>{class t{static \u0275fac=function(i){return new(i||t)};static \u0275mod=ee({type:t});static \u0275inj=J({imports:[we]})}return t})();function Wge(t,n){if(t&1){let e=Y();h(0,"div",1)(1,"button",2),S("click",function(){I(e);let r=C();return A(r.action())}),_(2),p()()}if(t&2){let e=C();g(2),ve(" ",e.data.action," ")}}var Gge=["label"];function qge(t,n){}var Yge=Math.pow(2,31)-1,b_=class{_overlayRef;instance;containerInstance;_afterDismissed=new z;_afterOpened=new z;_onAction=new z;_durationTimeoutId;_dismissedByAction=!1;constructor(n,e){this._overlayRef=e,this.containerInstance=n,n._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(n){this._durationTimeoutId=setTimeout(()=>this.dismiss(),Math.min(n,Yge))}_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}},nU=new T("MatSnackBarData"),op=class{politeness="polite";announcementMessage="";viewContainerRef;duration=0;panelClass;direction;data=null;horizontalPosition="center";verticalPosition="bottom"},Qge=(()=>{class t{static \u0275fac=function(i){return new(i||t)};static \u0275dir=F({type:t,selectors:[["","matSnackBarLabel",""]],hostAttrs:[1,"mat-mdc-snack-bar-label","mdc-snackbar__label"]})}return t})(),Kge=(()=>{class t{static \u0275fac=function(i){return new(i||t)};static \u0275dir=F({type:t,selectors:[["","matSnackBarActions",""]],hostAttrs:[1,"mat-mdc-snack-bar-actions","mdc-snackbar__actions"]})}return t})(),Zge=(()=>{class t{static \u0275fac=function(i){return new(i||t)};static \u0275dir=F({type:t,selectors:[["","matSnackBarAction",""]],hostAttrs:[1,"mat-mdc-snack-bar-action","mdc-snackbar__action"]})}return t})(),rU=(()=>{class t{snackBarRef=u(b_);data=u(nU);constructor(){}action(){this.snackBarRef.dismissWithAction()}get hasAction(){return!!this.data.action}static \u0275fac=function(i){return new(i||t)};static \u0275cmp=E({type:t,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(i,r){i&1&&(h(0,"div",0),_(1),p(),N(2,Wge,3,1,"div",1)),i&2&&(g(),ve(" ",r.data.message,` +`),g(),L(r.hasAction?2:-1))},dependencies:[kt,Qge,Kge,Zge],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 t})(),VI="_mat-snack-bar-enter",BI="_mat-snack-bar-exit",Xge=(()=>{class t extends dc{_ngZone=u(ae);_elementRef=u(q);_changeDetectorRef=u(ye);_platform=u(qe);_animationsDisabled=Ye();snackBarConfig=u(op);_document=u(ge);_trackedModals=new Set;_enterFallback;_exitFallback;_injector=u(de);_announceDelay=150;_announceTimeoutId;_destroyed=!1;_portalOutlet;_onAnnounce=new z;_onExit=new z;_onEnter=new z;_animationState="void";_live;_label;_role;_liveElementId=u(Ze).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 i=this._portalOutlet.attachComponentPortal(e);return this._afterPortalAttached(),i}attachTemplatePortal(e){this._assertNotAttached();let i=this._portalOutlet.attachTemplatePortal(e);return this._afterPortalAttached(),i}attachDomPortal=e=>{this._assertNotAttached();let i=this._portalOutlet.attachDomPortal(e);return this._afterPortalAttached(),i};onAnimationEnd(e){e===BI?this._completeExit():e===VI&&(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?pt(()=>{this._ngZone.run(()=>queueMicrotask(()=>this.onAnimationEnd(VI)))},{injector:this._injector}):(clearTimeout(this._enterFallback),this._enterFallback=setTimeout(()=>{this._elementRef.nativeElement.classList.add("mat-snack-bar-fallback-visible"),this.onAnimationEnd(VI)},200)))}exit(){return this._destroyed?Q(void 0):(this._ngZone.run(()=>{this._animationState="hidden",this._changeDetectorRef.markForCheck(),this._elementRef.nativeElement.setAttribute("mat-exit",""),clearTimeout(this._announceTimeoutId),this._animationsDisabled?pt(()=>{this._ngZone.run(()=>queueMicrotask(()=>this.onAnimationEnd(BI)))},{injector:this._injector}):(clearTimeout(this._exitFallback),this._exitFallback=setTimeout(()=>this.onAnimationEnd(BI),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,i=this.snackBarConfig.panelClass;i&&(Array.isArray(i)?i.forEach(a=>e.classList.add(a)):e.classList.add(i)),this._exposeToModals();let r=this._label.nativeElement,o="mdc-snackbar__label";r.classList.toggle(o,!r.querySelector(`.${o}`))}_exposeToModals(){let e=this._liveElementId,i=this._document.querySelectorAll('body > .cdk-overlay-container [aria-modal="true"]');for(let r=0;r{let i=e.getAttribute("aria-owns");if(i){let r=i.replace(this._liveElementId,"").trim();r.length>0?e.setAttribute("aria-owns",r):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,i=e.querySelector("[aria-hidden]"),r=e.querySelector("[aria-live]");if(i&&r){let o=null;this._platform.isBrowser&&document.activeElement instanceof HTMLElement&&i.contains(document.activeElement)&&(o=document.activeElement),i.removeAttribute("aria-hidden"),r.appendChild(i),o?.focus(),this._onAnnounce.next(),this._onAnnounce.complete()}},this._announceDelay)})}static \u0275fac=function(i){return new(i||t)};static \u0275cmp=E({type:t,selectors:[["mat-snack-bar-container"]],viewQuery:function(i,r){if(i&1&&(ie(yr,7),ie(Gge,7)),i&2){let o;B(o=j())&&(r._portalOutlet=o.first),B(o=j())&&(r._label=o.first)}},hostAttrs:[1,"mdc-snackbar","mat-mdc-snack-bar-container"],hostVars:6,hostBindings:function(i,r){i&1&&S("animationend",function(a){return r.onAnimationEnd(a.animationName)})("animationcancel",function(a){return r.onAnimationEnd(a.animationName)}),i&2&&G("mat-snack-bar-container-enter",r._animationState==="visible")("mat-snack-bar-container-exit",r._animationState==="hidden")("mat-snack-bar-container-animations-enabled",!r._animationsDisabled)},features:[le],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(i,r){i&1&&(h(0,"div",1)(1,"div",2,0)(3,"div",3),R(4,qge,0,0,"ng-template",4),p(),k(5,"div"),p()()),i&2&&(g(5),X("aria-live",r._live)("role",r._role)("id",r._liveElementId))},dependencies:[yr],styles:[`@keyframes _mat-snack-bar-enter{from{transform:scale(0.8);opacity:0}to{transform:scale(1);opacity:1}}@keyframes _mat-snack-bar-exit{from{opacity:1}to{opacity:0}}.mat-mdc-snack-bar-container{display:flex;align-items:center;justify-content:center;box-sizing:border-box;-webkit-tap-highlight-color:rgba(0,0,0,0);margin:8px}.mat-mdc-snack-bar-handset .mat-mdc-snack-bar-container{width:100vw}.mat-snack-bar-container-animations-enabled{opacity:0}.mat-snack-bar-container-animations-enabled.mat-snack-bar-fallback-visible{opacity:1}.mat-snack-bar-container-animations-enabled.mat-snack-bar-container-enter{animation:_mat-snack-bar-enter 150ms cubic-bezier(0, 0, 0.2, 1) forwards}.mat-snack-bar-container-animations-enabled.mat-snack-bar-container-exit{animation:_mat-snack-bar-exit 75ms cubic-bezier(0.4, 0, 1, 1) forwards}.mat-mdc-snackbar-surface{box-shadow:0px 3px 5px -1px rgba(0, 0, 0, 0.2), 0px 6px 10px 0px rgba(0, 0, 0, 0.14), 0px 1px 18px 0px rgba(0, 0, 0, 0.12);display:flex;align-items:center;justify-content:flex-start;box-sizing:border-box;padding-left:0;padding-right:8px}[dir=rtl] .mat-mdc-snackbar-surface{padding-right:0;padding-left:8px}.mat-mdc-snack-bar-container .mat-mdc-snackbar-surface{min-width:344px;max-width:672px}.mat-mdc-snack-bar-handset .mat-mdc-snackbar-surface{width:100%;min-width:0}@media(forced-colors: active){.mat-mdc-snackbar-surface{outline:solid 1px}}.mat-mdc-snack-bar-container .mat-mdc-snackbar-surface{color:var(--mat-snack-bar-supporting-text-color, var(--mat-sys-inverse-on-surface));border-radius:var(--mat-snack-bar-container-shape, var(--mat-sys-corner-extra-small));background-color:var(--mat-snack-bar-container-color, var(--mat-sys-inverse-surface))}.mdc-snackbar__label{width:100%;flex-grow:1;box-sizing:border-box;margin:0;padding:14px 8px 14px 16px}[dir=rtl] .mdc-snackbar__label{padding-left:8px;padding-right:16px}.mat-mdc-snack-bar-container .mdc-snackbar__label{font-family:var(--mat-snack-bar-supporting-text-font, var(--mat-sys-body-medium-font));font-size:var(--mat-snack-bar-supporting-text-size, var(--mat-sys-body-medium-size));font-weight:var(--mat-snack-bar-supporting-text-weight, var(--mat-sys-body-medium-weight));line-height:var(--mat-snack-bar-supporting-text-line-height, var(--mat-sys-body-medium-line-height))}.mat-mdc-snack-bar-actions{display:flex;flex-shrink:0;align-items:center;box-sizing:border-box}.mat-mdc-snack-bar-handset,.mat-mdc-snack-bar-container,.mat-mdc-snack-bar-label{flex:1 1 auto}.mat-mdc-snack-bar-container .mat-mdc-button.mat-mdc-snack-bar-action:not(:disabled){--mat-button-text-state-layer-color: currentColor;--mat-button-text-ripple-color: currentColor}.mat-mdc-snack-bar-container .mat-mdc-button.mat-mdc-snack-bar-action:not(:disabled).mat-unthemed{color:var(--mat-snack-bar-button-color, var(--mat-sys-inverse-primary))}.mat-mdc-snack-bar-container .mat-mdc-button.mat-mdc-snack-bar-action:not(:disabled) .mat-ripple-element{opacity:.1} +`],encapsulation:2})}return t})();function Jge(){return new op}var e_e=new T("mat-snack-bar-default-options",{providedIn:"root",factory:Jge}),di=(()=>{class t{_live=u(Gf);_injector=u(de);_breakpointObserver=u(sl);_parentSnackBar=u(t,{optional:!0,skipSelf:!0});_defaultConfig=u(e_e);_animationsDisabled=Ye();_snackBarRefAtThisLevel=null;simpleSnackBarComponent=rU;snackBarContainerComponent=Xge;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,i){return this._attach(e,i)}openFromTemplate(e,i){return this._attach(e,i)}open(e,i="",r){let o=M(M({},this._defaultConfig),r);return o.data={message:e,action:i},o.announcementMessage===e&&(o.announcementMessage=void 0),this.openFromComponent(this.simpleSnackBarComponent,o)}dismiss(){this._openedSnackBarRef&&this._openedSnackBarRef.dismiss()}ngOnDestroy(){this._snackBarRefAtThisLevel&&this._snackBarRefAtThisLevel.dismiss()}_attachSnackBarContainer(e,i){let r=i&&i.viewContainerRef&&i.viewContainerRef.injector,o=de.create({parent:r||this._injector,providers:[{provide:op,useValue:i}]}),a=new Zr(this.snackBarContainerComponent,i.viewContainerRef,o),s=e.attach(a);return s.instance.snackBarConfig=i,s.instance}_attach(e,i){let r=M(M(M({},new op),this._defaultConfig),i),o=this._createOverlay(r),a=this._attachSnackBarContainer(o,r),s=new b_(a,o);if(e instanceof te){let l=new Cn(e,null,{$implicit:r.data,snackBarRef:s});s.instance=a.attachTemplatePortal(l)}else{let l=this._createInjector(r,s),c=new Zr(e,void 0,l),d=a.attachComponentPortal(c);s.instance=d.instance}return this._breakpointObserver.observe(F0.HandsetPortrait).pipe(Te(o.detachments())).subscribe(l=>{o.overlayElement.classList.toggle(this.handsetCssClass,l.matches)}),r.announcementMessage&&a._onAnnounce.subscribe(()=>{this._live.announce(r.announcementMessage,r.politeness)}),this._animateSnackBar(s,r),this._openedSnackBarRef=s,this._openedSnackBarRef}_animateSnackBar(e,i){e.afterDismissed().subscribe(()=>{this._openedSnackBarRef==e&&(this._openedSnackBarRef=null),i.announcementMessage&&this._live.clear()}),i.duration&&i.duration>0&&e.afterOpened().subscribe(()=>e._dismissAfter(i.duration)),this._openedSnackBarRef?(this._openedSnackBarRef.afterDismissed().subscribe(()=>{e.containerInstance.enter()}),this._openedSnackBarRef.dismiss()):e.containerInstance.enter()}_createOverlay(e){let i=new Fr;i.direction=e.direction;let r=Ds(this._injector),o=e.direction==="rtl",a=e.horizontalPosition==="left"||e.horizontalPosition==="start"&&!o||e.horizontalPosition==="end"&&o,s=!a&&e.horizontalPosition!=="center";return a?r.left("0"):s?r.right("0"):r.centerHorizontally(),e.verticalPosition==="top"?r.top("0"):r.bottom("0"),i.positionStrategy=r,i.disableAnimations=this._animationsDisabled,Nr(this._injector,i)}_createInjector(e,i){let r=e&&e.viewContainerRef&&e.viewContainerRef.injector;return de.create({parent:r||this._injector,providers:[{provide:b_,useValue:i},{provide:nU,useValue:e.data}]})}static \u0275fac=function(i){return new(i||t)};static \u0275prov=O({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();var pi=(()=>{class t{static \u0275fac=function(i){return new(i||t)};static \u0275mod=ee({type:t});static \u0275inj=J({providers:[di],imports:[er,Co,ze,we,rU,we]})}return t})();var Un=(()=>{let n=class n{constructor(){this.authService=u(Tt),this.templateRef=u(te),this.viewContainer=u(nt)}set appHasRole(i){this.updateView(i)}ngOnInit(){this.subscription=this.authService.isAuthenticated$.subscribe(()=>{let i=this.roles;i&&this.updateView(i)})}ngOnDestroy(){this.subscription?.unsubscribe()}updateView(i){this.roles=i,this.viewContainer.clear(),this.checkRole(i)&&this.viewContainer.createEmbeddedView(this.templateRef)}checkRole(i){return this.authService.isAuthenticated()?typeof i=="string"?this.authService.hasRole(i):Array.isArray(i)?this.authService.hasAnyRole(i):!1:!1}};n.\u0275fac=function(r){return new(r||n)},n.\u0275dir=F({type:n,selectors:[["","appHasRole",""]],inputs:{appHasRole:"appHasRole"}});let t=n;return t})();var da=class{constructor(){this.http=u(Yr),this.apiUrl=ko.apiUrl}getAll(n){let e=this.buildHttpParams(n);return this.http.get(`${this.apiUrl}/${this.endpoint}`,{params:e}).pipe(se(i=>i.value))}getAllPaged(n){let e=this.buildHttpParams(n);return this.http.get(`${this.apiUrl}/${this.endpoint}`,{params:e})}getById(n){return this.http.get(`${this.apiUrl}/${this.endpoint}/${n}`).pipe(se(e=>e.value))}create(n){return this.http.post(`${this.apiUrl}/${this.endpoint}`,n).pipe(se(e=>e&&"value"in e&&typeof e.value=="string"?{id:e.value}:e))}update(n,e){return this.http.put(`${this.apiUrl}/${this.endpoint}/${n}`,e)}delete(n){return this.http.delete(`${this.apiUrl}/${this.endpoint}/${n}`)}buildHttpParams(n){let e=new Qn;return n&&Object.keys(n).forEach(i=>{let r=n[i];r!=null&&(e=e.set(i,r.toString()))}),e}};var oU=(()=>{let n=class n extends da{constructor(){super(...arguments),this.endpoint="Dashboard"}getDashboardMetrics(){return this.http.get(`${this.apiUrl}/${this.endpoint}/Metrics`).pipe(se(i=>{if(i.isSuccess&&i.value)return i.value;throw new Error(i.message||"Failed to load dashboard metrics")}))}};n.\u0275fac=(()=>{let i;return function(o){return(i||(i=fe(n)))(o||n)}})(),n.\u0275prov=O({token:n,factory:n.\u0275fac,providedIn:"root"});let t=n;return t})();var Vs=(()=>{let n=class n extends da{constructor(){super(...arguments),this.endpoint="Departments"}createDepartment(i){return this.create(i)}updateDepartment(i){return this.update(i.id,i)}};n.\u0275fac=(()=>{let i;return function(o){return(i||(i=fe(n)))(o||n)}})(),n.\u0275prov=O({token:n,factory:n.\u0275fac,providedIn:"root"});let t=n;return t})();var ap=(()=>{let n=class n extends da{constructor(){super(...arguments),this.endpoint="Employees"}createEmployee(i){return this.create(i)}updateEmployee(i){return this.update(i.id,i)}};n.\u0275fac=(()=>{let i;return function(o){return(i||(i=fe(n)))(o||n)}})(),n.\u0275prov=O({token:n,factory:n.\u0275fac,providedIn:"root"});let t=n;return t})();var Bc=(()=>{let n=class n extends da{constructor(){super(...arguments),this.endpoint="Positions"}createPosition(i){return this.create(i)}updatePosition(i){return this.update(i.id,i)}getAllPaged(i){let r=this.buildHttpParams(i);return this.http.get(`${this.apiUrl}/${this.endpoint}`,{params:r})}addMockPositions(i){return this.http.post(`${this.apiUrl}/${this.endpoint}/AddMock`,i)}};n.\u0275fac=(()=>{let i;return function(o){return(i||(i=fe(n)))(o||n)}})(),n.\u0275prov=O({token:n,factory:n.\u0275fac,providedIn:"root"});let t=n;return t})();var jc=(()=>{let n=class n extends da{constructor(){super(...arguments),this.endpoint="SalaryRanges"}createSalaryRange(i){return this.create(i)}updateSalaryRange(i){return this.update(i.id,i)}};n.\u0275fac=(()=>{let i;return function(o){return(i||(i=fe(n)))(o||n)}})(),n.\u0275prov=O({token:n,factory:n.\u0275fac,providedIn:"root"});let t=n;return t})();var aU=(()=>{let n=class n{decodeToken(i){if(!i)return null;try{let r=i.split(".");if(r.length!==3)return console.warn("Invalid JWT token format"),null;let o=this.decodeBase64Url(r[0]),a=this.decodeBase64Url(r[1]),s=r[2],l=JSON.parse(a),c=l.iat?new Date(l.iat*1e3):void 0,d=l.exp?new Date(l.exp*1e3):void 0,m=new Date,f=d?d24){let s=Math.floor(o/24);return`Expires in ${s} day${s>1?"s":""}`}else return o>0?`Expires in ${o}h ${a}m`:a>0?`Expires in ${a}m`:"Expires soon"}};n.\u0275fac=function(r){return new(r||n)},n.\u0275prov=O({token:n,factory:n.\u0275fac,providedIn:"root"});let t=n;return t})();var t_e=()=>["HRAdmin","Manager"],sU=()=>["HRAdmin"];function i_e(t,n){t&1&&(h(0,"div",3),k(1,"mat-spinner"),p())}function n_e(t,n){if(t&1&&(h(0,"div",21),k(1,"canvas",22),p()),t&2){let e=C(2);g(),y("data",e.departmentChartData)("options",e.departmentChartOptions)}}function r_e(t,n){t&1&&(h(0,"div",23)(1,"mat-icon"),_(2,"pie_chart"),p(),h(3,"p"),_(4,"No department data available"),p()())}function o_e(t,n){if(t&1&&(h(0,"div",21),k(1,"canvas",24),p()),t&2){let e=C(2);g(),y("data",e.positionChartData)("options",e.positionChartOptions)}}function a_e(t,n){t&1&&(h(0,"div",23)(1,"mat-icon"),_(2,"bar_chart"),p(),h(3,"p"),_(4,"No position data available"),p()())}function s_e(t,n){if(t&1&&(h(0,"div",21),k(1,"canvas",25),p()),t&2){let e=C(2);g(),y("data",e.genderChartData)("options",e.genderChartOptions)}}function l_e(t,n){t&1&&(h(0,"div",23)(1,"mat-icon"),_(2,"donut_large"),p(),h(3,"p"),_(4,"No gender data available"),p()())}function c_e(t,n){if(t&1&&(h(0,"div",21),k(1,"canvas",24),p()),t&2){let e=C(2);g(),y("data",e.salaryChartData)("options",e.salaryChartOptions)}}function d_e(t,n){t&1&&(h(0,"div",23)(1,"mat-icon"),_(2,"bar_chart"),p(),h(3,"p"),_(4,"No salary range data available"),p()())}function u_e(t,n){if(t&1){let e=Y();h(0,"mat-list-item",27),S("click",function(){let r=I(e).$implicit,o=C(3);return A(o.navigateToEmployee(r.id))}),h(1,"mat-icon",28),_(2,"person"),p(),h(3,"div",29),_(4),p(),h(5,"div",30),_(6),p(),h(7,"div",31),_(8),me(9,"date"),p()()}if(t&2){let e=n.$implicit;g(4),H(e.fullName),g(2),Od("",e.positionTitle," \u2022 ",e.departmentName),g(2),H(Ni(9,4,e.createdAt,"MMM d, y"))}}function m_e(t,n){if(t&1&&(h(0,"mat-list"),R(1,u_e,10,7,"mat-list-item",26),p()),t&2){let e=C(2);g(),y("ngForOf",e.metrics.recentEmployees)}}function h_e(t,n){t&1&&(h(0,"div",23)(1,"mat-icon"),_(2,"people_outline"),p(),h(3,"p"),_(4,"No recent employees"),p()())}function p_e(t,n){if(t&1){let e=Y();h(0,"button",36),S("click",function(){I(e);let r=C(3);return A(r.navigateToAddDepartment())}),h(1,"mat-icon"),_(2,"add_business"),p(),_(3," Add Department "),p()}}function f_e(t,n){if(t&1){let e=Y();h(0,"button",36),S("click",function(){I(e);let r=C(3);return A(r.navigateToAddPosition())}),h(1,"mat-icon"),_(2,"work_outline"),p(),_(3," Add Position "),p()}}function g_e(t,n){if(t&1){let e=Y();h(0,"div",32)(1,"mat-card")(2,"mat-card-header")(3,"mat-card-title"),_(4,"Quick Actions"),p()(),h(5,"mat-card-content")(6,"div",33)(7,"button",34),S("click",function(){I(e);let r=C(2);return A(r.navigateToAddEmployee())}),h(8,"mat-icon"),_(9,"person_add"),p(),_(10," Add Employee "),p(),R(11,p_e,4,0,"button",35)(12,f_e,4,0,"button",35),p()()()()}t&2&&(g(11),y("appHasRole",at(2,sU)),g(),y("appHasRole",at(3,sU)))}function __e(t,n){if(t&1){let e=Y();h(0,"div",4)(1,"div",5)(2,"mat-card",6)(3,"mat-card-content")(4,"div",7)(5,"mat-icon"),_(6,"people"),p()(),h(7,"div",8),_(8),p(),h(9,"div",9),_(10,"Total Employees"),p()()(),h(11,"mat-card",6)(12,"mat-card-content")(13,"div",7)(14,"mat-icon"),_(15,"business"),p()(),h(16,"div",8),_(17),p(),h(18,"div",9),_(19,"Departments"),p()()(),h(20,"mat-card",6)(21,"mat-card-content")(22,"div",7)(23,"mat-icon"),_(24,"work"),p()(),h(25,"div",8),_(26),p(),h(27,"div",9),_(28,"Positions"),p()()(),h(29,"mat-card",6)(30,"mat-card-content")(31,"div",7)(32,"mat-icon"),_(33,"attach_money"),p()(),h(34,"div",8),_(35),p(),h(36,"div",9),_(37,"Salary Ranges"),p()()()(),h(38,"div",10)(39,"mat-card",11)(40,"mat-card-content")(41,"div",12)(42,"mat-icon"),_(43,"person_add"),p()(),h(44,"div",8),_(45),p(),h(46,"div",9),_(47,"New Hires This Month"),p()()(),h(48,"mat-card",11)(49,"mat-card-content")(50,"div",12)(51,"mat-icon"),_(52,"payments"),p()(),h(53,"div",8),_(54),me(55,"currency"),p(),h(56,"div",9),_(57,"Average Salary"),p()()()(),h(58,"div",13)(59,"mat-card",14)(60,"mat-card-header")(61,"mat-card-title"),_(62,"Employees by Department"),p()(),h(63,"mat-card-content"),R(64,n_e,2,2,"div",15)(65,r_e,5,0,"div",16),p()(),h(66,"mat-card",14)(67,"mat-card-header")(68,"mat-card-title"),_(69,"Top 10 Positions"),p()(),h(70,"mat-card-content"),R(71,o_e,2,2,"div",15)(72,a_e,5,0,"div",16),p()()(),h(73,"div",13)(74,"mat-card",14)(75,"mat-card-header")(76,"mat-card-title"),_(77,"Gender Distribution"),p()(),h(78,"mat-card-content"),R(79,s_e,2,2,"div",15)(80,l_e,5,0,"div",16),p()(),h(81,"mat-card",14)(82,"mat-card-header")(83,"mat-card-title"),_(84,"Salary Range Distribution"),p()(),h(85,"mat-card-content"),R(86,c_e,2,2,"div",15)(87,d_e,5,0,"div",16),p()()(),h(88,"div",17)(89,"mat-card")(90,"mat-card-header")(91,"mat-card-title"),_(92,"Recent Employees"),p(),h(93,"button",18),S("click",function(){I(e);let r=C();return A(r.navigateToEmployees())}),_(94," View All "),h(95,"mat-icon"),_(96,"arrow_forward"),p()()(),h(97,"mat-card-content"),R(98,m_e,2,1,"mat-list",19)(99,h_e,5,0,"div",16),p()()(),R(100,g_e,13,4,"div",20),p()}if(t&2){let e=C();g(8),H(e.metrics.totalEmployees),g(9),H(e.metrics.totalDepartments),g(9),H(e.metrics.totalPositions),g(9),H(e.metrics.totalSalaryRanges),g(10),H(e.metrics.newHiresThisMonth),g(9),H(Dm(55,17,e.metrics.averageSalary,"USD","symbol","1.0-0")),g(10),y("ngIf",e.departmentChartData),g(),y("ngIf",!e.departmentChartData),g(6),y("ngIf",e.positionChartData),g(),y("ngIf",!e.positionChartData),g(7),y("ngIf",e.genderChartData),g(),y("ngIf",!e.genderChartData),g(6),y("ngIf",e.salaryChartData),g(),y("ngIf",!e.salaryChartData),g(11),y("ngIf",e.metrics.recentEmployees&&e.metrics.recentEmployees.length>0),g(),y("ngIf",!e.metrics.recentEmployees||e.metrics.recentEmployees.length===0),g(),y("appHasRole",at(22,t_e))}}function b_e(t,n){if(t&1){let e=Y();h(0,"div",37)(1,"mat-card")(2,"mat-card-content")(3,"div",23)(4,"mat-icon"),_(5,"error_outline"),p(),h(6,"p"),_(7,"Unable to load dashboard data"),p(),h(8,"button",34),S("click",function(){I(e);let r=C();return A(r.loadDashboardMetrics())}),h(9,"mat-icon"),_(10,"refresh"),p(),_(11," Retry "),p()()()()()}}var lU=(()=>{let n=class n{constructor(){this.dashboardService=u(oU),this.router=u(Re),this.snackBar=u(di),this.loading=!0,this.metrics=null,this.departmentChartData=null,this.departmentChartOptions={responsive:!0,maintainAspectRatio:!1,plugins:{legend:{position:"bottom"},tooltip:{callbacks:{label:i=>{let r=i.label||"",o=i.parsed||0;return`${r}: ${o} employees`}}}}},this.positionChartData=null,this.positionChartOptions={responsive:!0,maintainAspectRatio:!1,indexAxis:"y",plugins:{legend:{display:!1},tooltip:{callbacks:{label:i=>`${i.parsed.x} employees`}}},scales:{x:{beginAtZero:!0,ticks:{precision:0}}}},this.genderChartData=null,this.genderChartOptions={responsive:!0,maintainAspectRatio:!1,plugins:{legend:{position:"bottom"},tooltip:{callbacks:{label:i=>{let r=i.label||"",o=i.parsed||0;return`${r}: ${o} employees`}}}}},this.salaryChartData=null,this.salaryChartOptions={responsive:!0,maintainAspectRatio:!1,plugins:{legend:{display:!1},tooltip:{callbacks:{label:i=>`${i.parsed.y} employees`}}},scales:{y:{beginAtZero:!0,ticks:{precision:0}}}}}ngOnInit(){this.loadDashboardMetrics()}loadDashboardMetrics(){this.loading=!0,this.dashboardService.getDashboardMetrics().subscribe({next:i=>{this.metrics=i,this.prepareCharts(i),this.loading=!1},error:i=>{console.error("Error loading dashboard metrics:",i),this.showMessage("Error loading dashboard data"),this.loading=!1}})}prepareCharts(i){this.prepareDepartmentChart(i.employeesByDepartment),this.preparePositionChart(i.employeesByPosition),this.prepareGenderChart(i.genderDistribution),this.prepareSalaryChart(i.employeesBySalaryRange)}prepareDepartmentChart(i){if(!i||i.length===0){this.departmentChartData=null;return}this.departmentChartData={labels:i.map(r=>r.departmentName),datasets:[{data:i.map(r=>r.employeeCount),backgroundColor:["#FF6384","#36A2EB","#FFCE56","#4BC0C0","#9966FF","#FF9F40","#FF6384","#C9CBCF"]}]}}preparePositionChart(i){if(!i||i.length===0){this.positionChartData=null;return}this.positionChartData={labels:i.map(r=>r.positionTitle),datasets:[{label:"Employees",data:i.map(r=>r.employeeCount),backgroundColor:"#36A2EB"}]}}prepareGenderChart(i){if(!i){this.genderChartData=null;return}this.genderChartData={labels:["Male","Female"],datasets:[{data:[i.male,i.female],backgroundColor:["#36A2EB","#FF6384"]}]}}prepareSalaryChart(i){if(!i||i.length===0){this.salaryChartData=null;return}this.salaryChartData={labels:i.map(r=>r.rangeName),datasets:[{label:"Employees",data:i.map(r=>r.employeeCount),backgroundColor:"#4BC0C0"}]}}navigateToAddEmployee(){this.router.navigate(["/employees/create"])}navigateToAddDepartment(){this.router.navigate(["/departments/create"])}navigateToAddPosition(){this.router.navigate(["/positions/create"])}navigateToEmployees(){this.router.navigate(["/employees"])}navigateToEmployee(i){this.router.navigate(["/employees",i])}showMessage(i){this.snackBar.open(i,"Close",{duration:3e3,horizontalPosition:"end",verticalPosition:"top"})}};n.\u0275fac=function(r){return new(r||n)},n.\u0275cmp=E({type:n,selectors:[["app-dashboard"]],decls:4,vars:3,consts:[["class","loading-spinner",4,"ngIf"],["class","dashboard-container",4,"ngIf"],["class","error-state",4,"ngIf"],[1,"loading-spinner"],[1,"dashboard-container"],[1,"metrics-row"],[1,"metric-card"],[1,"metric-icon"],[1,"metric-value"],[1,"metric-label"],[1,"secondary-metrics-row"],[1,"metric-card","secondary"],[1,"metric-icon","secondary"],[1,"charts-row"],[1,"chart-card"],["class","chart-container",4,"ngIf"],["class","no-data",4,"ngIf"],[1,"activity-row"],["mat-button","","color","primary",3,"click"],[4,"ngIf"],["class","actions-row",4,"appHasRole"],[1,"chart-container"],["baseChart","","type","pie",3,"data","options"],[1,"no-data"],["baseChart","","type","bar",3,"data","options"],["baseChart","","type","doughnut",3,"data","options"],["class","clickable-item",3,"click",4,"ngFor","ngForOf"],[1,"clickable-item",3,"click"],["matListItemIcon",""],["matListItemTitle",""],["matListItemLine",""],["matListItemMeta",""],[1,"actions-row"],[1,"action-buttons"],["mat-raised-button","","color","primary",3,"click"],["mat-raised-button","","color","accent",3,"click",4,"appHasRole"],["mat-raised-button","","color","accent",3,"click"],[1,"error-state"]],template:function(r,o){r&1&&(k(0,"page-header"),R(1,i_e,2,0,"div",0)(2,__e,101,23,"div",1)(3,b_e,12,0,"div",2)),r&2&&(g(),y("ngIf",o.loading),g(),y("ngIf",!o.loading&&o.metrics),g(),y("ngIf",!o.loading&&!o.metrics))},dependencies:[gt,qr,li,$t,zt,Ut,Jt,Xt,ot,mt,ze,kt,Si,ki,ca,Fs,la,f_,Tu,Dl,TI,pi,G5,ni,Un,il,Sa],styles:[".loading-spinner[_ngcontent-%COMP%]{display:flex;justify-content:center;align-items:center;min-height:400px}.dashboard-container[_ngcontent-%COMP%]{padding:16px;max-width:1400px;margin:0 auto}.metrics-row[_ngcontent-%COMP%], .secondary-metrics-row[_ngcontent-%COMP%]{display:grid;grid-template-columns:repeat(auto-fit,minmax(200px,1fr));gap:16px;margin-bottom:24px}@media (max-width: 768px){.metrics-row[_ngcontent-%COMP%], .secondary-metrics-row[_ngcontent-%COMP%]{grid-template-columns:repeat(2,1fr)}}@media (max-width: 480px){.metrics-row[_ngcontent-%COMP%], .secondary-metrics-row[_ngcontent-%COMP%]{grid-template-columns:1fr}}.secondary-metrics-row[_ngcontent-%COMP%]{grid-template-columns:repeat(auto-fit,minmax(250px,1fr))}.metric-card[_ngcontent-%COMP%] mat-card-content[_ngcontent-%COMP%]{padding:24px!important;text-align:center}.metric-card[_ngcontent-%COMP%] .metric-icon[_ngcontent-%COMP%]{display:inline-flex;align-items:center;justify-content:center;width:64px;height:64px;border-radius:50%;background-color:#3f51b51a;margin-bottom:16px}.metric-card[_ngcontent-%COMP%] .metric-icon[_ngcontent-%COMP%] mat-icon[_ngcontent-%COMP%]{font-size:32px;width:32px;height:32px;color:#3f51b5}.metric-card[_ngcontent-%COMP%] .metric-icon.secondary[_ngcontent-%COMP%]{background-color:#ff98001a}.metric-card[_ngcontent-%COMP%] .metric-icon.secondary[_ngcontent-%COMP%] mat-icon[_ngcontent-%COMP%]{color:#ff9800}.metric-card[_ngcontent-%COMP%] .metric-value[_ngcontent-%COMP%]{font-size:32px;font-weight:600;color:#000000de;margin-bottom:8px;line-height:1.2}.metric-card[_ngcontent-%COMP%] .metric-label[_ngcontent-%COMP%]{font-size:14px;color:#0009;text-transform:uppercase;letter-spacing:.5px}.metric-card[_ngcontent-%COMP%]:hover{box-shadow:0 4px 8px #00000026;transition:box-shadow .3s ease}.charts-row[_ngcontent-%COMP%]{display:grid;grid-template-columns:repeat(auto-fit,minmax(400px,1fr));gap:24px;margin-bottom:24px}@media (max-width: 900px){.charts-row[_ngcontent-%COMP%]{grid-template-columns:1fr}}.chart-card[_ngcontent-%COMP%] mat-card-header[_ngcontent-%COMP%]{padding:16px 16px 0;margin-bottom:16px}.chart-card[_ngcontent-%COMP%] mat-card-header[_ngcontent-%COMP%] mat-card-title[_ngcontent-%COMP%]{font-size:18px;font-weight:500;margin:0}.chart-card[_ngcontent-%COMP%] mat-card-content[_ngcontent-%COMP%]{padding:0 16px 16px}.chart-card[_ngcontent-%COMP%] .chart-container[_ngcontent-%COMP%]{position:relative;height:300px;width:100%}.chart-card[_ngcontent-%COMP%] .no-data[_ngcontent-%COMP%]{display:flex;flex-direction:column;align-items:center;justify-content:center;min-height:300px;color:#00000061}.chart-card[_ngcontent-%COMP%] .no-data[_ngcontent-%COMP%] mat-icon[_ngcontent-%COMP%]{font-size:48px;width:48px;height:48px;margin-bottom:12px}.chart-card[_ngcontent-%COMP%] .no-data[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{margin:0;font-size:14px}.activity-row[_ngcontent-%COMP%]{margin-bottom:24px}.activity-row[_ngcontent-%COMP%] mat-card-header[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:space-between;padding:16px;border-bottom:1px solid rgba(0,0,0,.12)}.activity-row[_ngcontent-%COMP%] mat-card-header[_ngcontent-%COMP%] mat-card-title[_ngcontent-%COMP%]{font-size:18px;font-weight:500;margin:0}.activity-row[_ngcontent-%COMP%] mat-card-header[_ngcontent-%COMP%] button[_ngcontent-%COMP%] mat-icon[_ngcontent-%COMP%]{margin-left:4px;font-size:18px;width:18px;height:18px}.activity-row[_ngcontent-%COMP%] mat-card-content[_ngcontent-%COMP%]{padding:0}.activity-row[_ngcontent-%COMP%] mat-list[_ngcontent-%COMP%]{padding:0}.activity-row[_ngcontent-%COMP%] mat-list-item[_ngcontent-%COMP%]{height:auto;padding:12px 16px;cursor:pointer;transition:background-color .2s ease}.activity-row[_ngcontent-%COMP%] mat-list-item[_ngcontent-%COMP%]:hover{background-color:#0000000a}.activity-row[_ngcontent-%COMP%] mat-list-item[_ngcontent-%COMP%]:not(:last-child){border-bottom:1px solid rgba(0,0,0,.08)}.activity-row[_ngcontent-%COMP%] mat-list-item[_ngcontent-%COMP%] mat-icon[_ngcontent-%COMP%]{color:#0000008a}.activity-row[_ngcontent-%COMP%] .clickable-item[_ngcontent-%COMP%]{cursor:pointer}.activity-row[_ngcontent-%COMP%] .no-data[_ngcontent-%COMP%]{display:flex;flex-direction:column;align-items:center;justify-content:center;padding:48px 16px;color:#00000061}.activity-row[_ngcontent-%COMP%] .no-data[_ngcontent-%COMP%] mat-icon[_ngcontent-%COMP%]{font-size:48px;width:48px;height:48px;margin-bottom:12px}.activity-row[_ngcontent-%COMP%] .no-data[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{margin:0;font-size:14px}.actions-row[_ngcontent-%COMP%]{margin-bottom:24px}.actions-row[_ngcontent-%COMP%] mat-card-header[_ngcontent-%COMP%]{padding:16px;border-bottom:1px solid rgba(0,0,0,.12)}.actions-row[_ngcontent-%COMP%] mat-card-header[_ngcontent-%COMP%] mat-card-title[_ngcontent-%COMP%]{font-size:18px;font-weight:500;margin:0}.actions-row[_ngcontent-%COMP%] mat-card-content[_ngcontent-%COMP%]{padding:24px 16px}.actions-row[_ngcontent-%COMP%] .action-buttons[_ngcontent-%COMP%]{display:flex;gap:12px;flex-wrap:wrap}.actions-row[_ngcontent-%COMP%] .action-buttons[_ngcontent-%COMP%] button[_ngcontent-%COMP%] mat-icon[_ngcontent-%COMP%]{margin-right:8px}@media (max-width: 600px){.actions-row[_ngcontent-%COMP%] .action-buttons[_ngcontent-%COMP%]{flex-direction:column}.actions-row[_ngcontent-%COMP%] .action-buttons[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{width:100%}}.error-state[_ngcontent-%COMP%]{padding:16px}.error-state[_ngcontent-%COMP%] mat-card[_ngcontent-%COMP%]{max-width:600px;margin:0 auto}.error-state[_ngcontent-%COMP%] .no-data[_ngcontent-%COMP%]{display:flex;flex-direction:column;align-items:center;justify-content:center;padding:48px 16px;color:#0000008a}.error-state[_ngcontent-%COMP%] .no-data[_ngcontent-%COMP%] mat-icon[_ngcontent-%COMP%]{font-size:64px;width:64px;height:64px;margin-bottom:16px;color:#f44336}.error-state[_ngcontent-%COMP%] .no-data[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{margin:0 0 24px;font-size:16px}.error-state[_ngcontent-%COMP%] .no-data[_ngcontent-%COMP%] button[_ngcontent-%COMP%] mat-icon[_ngcontent-%COMP%]{margin-right:8px;font-size:20px;width:20px;height:20px}@media (max-width: 1200px){.dashboard-container[_ngcontent-%COMP%]{padding:12px}.charts-row[_ngcontent-%COMP%]{gap:16px}}@media (max-width: 768px){.metric-card[_ngcontent-%COMP%] mat-card-content[_ngcontent-%COMP%]{padding:16px!important}.metric-card[_ngcontent-%COMP%] .metric-icon[_ngcontent-%COMP%]{width:56px;height:56px}.metric-card[_ngcontent-%COMP%] .metric-icon[_ngcontent-%COMP%] mat-icon[_ngcontent-%COMP%]{font-size:28px;width:28px;height:28px}.metric-card[_ngcontent-%COMP%] .metric-value[_ngcontent-%COMP%]{font-size:28px}.metric-card[_ngcontent-%COMP%] .metric-label[_ngcontent-%COMP%]{font-size:12px}.chart-card[_ngcontent-%COMP%] .chart-container[_ngcontent-%COMP%]{height:250px}}@media (max-width: 480px){.dashboard-container[_ngcontent-%COMP%]{padding:8px}.metrics-row[_ngcontent-%COMP%], .secondary-metrics-row[_ngcontent-%COMP%], .charts-row[_ngcontent-%COMP%]{gap:12px;margin-bottom:16px}.metric-card[_ngcontent-%COMP%] .metric-value[_ngcontent-%COMP%]{font-size:24px}.chart-card[_ngcontent-%COMP%] .chart-container[_ngcontent-%COMP%]{height:200px}}"]});let t=n;return t})();var cU=(()=>{let n=class n{};n.\u0275fac=function(r){return new(r||n)},n.\u0275cmp=E({type:n,selectors:[["app-error-403"]],decls:1,vars:0,consts:[["code","403","title","Permission denied!","message","You do not have permission to access the requested data."]],template:function(r,o){r&1&&k(0,"error-code",0)},dependencies:[tp],encapsulation:2});let t=n;return t})();var dU=(()=>{let n=class n{};n.\u0275fac=function(r){return new(r||n)},n.\u0275cmp=E({type:n,selectors:[["app-error-404"]],decls:1,vars:0,consts:[["code","404","title","Page not found!","message","This is not the web page you are looking for."]],template:function(r,o){r&1&&k(0,"error-code",0)},dependencies:[tp],encapsulation:2});let t=n;return t})();var uU=(()=>{let n=class n{};n.\u0275fac=function(r){return new(r||n)},n.\u0275cmp=E({type:n,selectors:[["app-error-500"]],decls:1,vars:0,consts:[["code","500","title","Server went wrong!","message","Just kidding, looks like we have an internal issue, please try refreshing."]],template:function(r,o){r&1&&k(0,"error-code",0)},dependencies:[tp],encapsulation:2});let t=n;return t})();var v_e=t=>({value:t});function y_e(t,n){t&1&&(h(0,"mat-error")(1,"span"),_(2),me(3,"translate"),p()()),t&2&&(g(2),H(Oe(3,1,"validation.required")))}function x_e(t,n){t&1&&(h(0,"mat-error")(1,"span"),_(2),me(3,"translate"),p()()),t&2&&(g(2),H(Oe(3,1,"validation.required")))}function C_e(t,n){t&1&&(h(0,"mat-error")(1,"span"),_(2),me(3,"translate"),p()()),t&2&&(g(2),H(Oe(3,1,"validation.required")))}function w_e(t,n){t&1&&(h(0,"mat-error",8),me(1,"translate"),h(2,"span"),_(3),p()()),t&2&&(y("translateParams",Pt(4,v_e,Oe(1,2,"login.password"))),g(3),H("validation.inconsistent"))}var mU=(()=>{let n=class n{constructor(){this.fb=u(eo),this.registerForm=this.fb.nonNullable.group({username:["",[Le.required]],password:["",[Le.required]],confirmPassword:["",[Le.required]]},{validators:[this.matchValidator("password","confirmPassword")]})}matchValidator(i,r){return o=>{let a=o.get(i),s=o.get(r);return s.errors&&!s.errors.mismatch?null:a.value!==s.value?(s.setErrors({mismatch:!0}),{mismatch:!0}):(s.setErrors(null),null)}}};n.\u0275fac=function(r){return new(r||n)},n.\u0275cmp=E({type:n,selectors:[["app-register"]],decls:43,vars:32,consts:[[1,"d-flex","w-full","h-full"],[1,"m-auto",2,"max-width","380px"],[1,"m-b-24"],[1,"form-field-full",3,"formGroup"],["appearance","outline"],["matInput","","formControlName","username","required",""],["matInput","","type","password","formControlName","password","required",""],["matInput","","type","password","formControlName","confirmPassword","required",""],["translate","",3,"translateParams"],["matButton","filled",1,"w-full","m-y-16"],["routerLink","/auth/login"]],template:function(r,o){if(r&1&&(h(0,"div",0)(1,"mat-card",1)(2,"mat-card-header",2)(3,"mat-card-title"),_(4),me(5,"translate"),k(6,"br"),_(7),me(8,"translate"),p()(),h(9,"mat-card-content")(10,"form",3)(11,"mat-form-field",4)(12,"mat-label"),_(13),me(14,"translate"),p(),k(15,"input",5),N(16,y_e,4,3,"mat-error"),p(),h(17,"mat-form-field",4)(18,"mat-label"),_(19),me(20,"translate"),p(),k(21,"input",6),N(22,x_e,4,3,"mat-error"),p(),h(23,"mat-form-field",4)(24,"mat-label"),_(25),me(26,"translate"),p(),k(27,"input",7),N(28,C_e,4,3,"mat-error"),N(29,w_e,4,6,"mat-error",8),p(),h(30,"mat-checkbox"),_(31),me(32,"translate"),p(),h(33,"button",9),_(34),me(35,"translate"),p(),h(36,"div")(37,"span"),_(38),me(39,"translate"),p(),h(40,"a",10),_(41),me(42,"translate"),p()()()()()()),r&2){let a,s,l,c;g(4),ve(" ",Oe(5,14,"register_welcome"),", "),g(3),ve(" ",Oe(8,16,"register_title")," "),g(3),y("formGroup",o.registerForm),g(3),H(Oe(14,18,"username")),g(3),L((a=o.registerForm.get("username"))!=null&&a.invalid?16:-1),g(3),H(Oe(20,20,"password")),g(3),L((s=o.registerForm.get("password"))!=null&&s.invalid?22:-1),g(3),H(Oe(26,22,"confirm_password")),g(3),L((l=o.registerForm.get("confirmPassword"))!=null&&l.hasError("required")?28:-1),g(),L((c=o.registerForm.get("confirmPassword"))!=null&&c.hasError("mismatch")?29:-1),g(2),H(Oe(32,24,"read_and_agree")),g(3),H(Oe(35,26,"register")),g(4),ve("",Oe(39,28,"have_an_account"),"?"),g(3),H(Oe(42,30,"login"))}},dependencies:[Nn,du,Jr,Qi,ei,Xr,Do,zn,Ki,Lr,ze,kt,$t,zt,Ut,Jt,Xt,yx,Va,$i,Oi,sn,xo,rr,hn,wr,j3,Cr],encapsulation:2});let t=n;return t})();var hU=(()=>{let n=class n{constructor(){this.authService=u(Tt),this.router=u(Re)}ngOnInit(){return fn(this,null,function*(){try{(yield this.authService.initAuth())?this.router.navigate(["/dashboard"]):(console.warn("Authentication callback failed, redirecting to dashboard as guest"),this.router.navigate(["/dashboard"]))}catch(i){console.error("Error processing callback:",i),this.router.navigate(["/dashboard"])}})}};n.\u0275fac=function(r){return new(r||n)},n.\u0275cmp=E({type:n,selectors:[["app-callback"]],decls:5,vars:0,consts:[[1,"callback-container"]],template:function(r,o){r&1&&(ft(0,"div",0)(1,"h2"),_(2,"Processing login..."),vt(),ft(3,"p"),_(4,"Please wait while we complete your authentication."),vt()())},styles:[".callback-container[_ngcontent-%COMP%]{display:flex;flex-direction:column;align-items:center;justify-content:center;height:100vh;text-align:center}"]});let t=n;return t})();var D_e=[[["caption"]],[["colgroup"],["col"]],"*"],E_e=["caption","colgroup, col","*"];function M_e(t,n){t&1&&oe(0,2)}function k_e(t,n){t&1&&(h(0,"thead",0),Ge(1,1),p(),h(2,"tbody",0),Ge(3,2)(4,3),p(),h(5,"tfoot",0),Ge(6,4),p())}function S_e(t,n){t&1&&Ge(0,1)(1,2)(2,3)(3,4)}var za=new T("CDK_TABLE");var uw=(()=>{class t{template=u(te);constructor(){}static \u0275fac=function(i){return new(i||t)};static \u0275dir=F({type:t,selectors:[["","cdkCellDef",""]]})}return t})(),mw=(()=>{class t{template=u(te);constructor(){}static \u0275fac=function(i){return new(i||t)};static \u0275dir=F({type:t,selectors:[["","cdkHeaderCellDef",""]]})}return t})(),gU=(()=>{class t{template=u(te);constructor(){}static \u0275fac=function(i){return new(i||t)};static \u0275dir=F({type:t,selectors:[["","cdkFooterCellDef",""]]})}return t})(),sp=(()=>{class t{_table=u(za,{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(i){return new(i||t)};static \u0275dir=F({type:t,selectors:[["","cdkColumnDef",""]],contentQueries:function(i,r,o){if(i&1&&(xe(o,uw,5),xe(o,mw,5),xe(o,gU,5)),i&2){let a;B(a=j())&&(r.cell=a.first),B(a=j())&&(r.headerCell=a.first),B(a=j())&&(r.footerCell=a.first)}},inputs:{name:[0,"cdkColumnDef","name"],sticky:[2,"sticky","sticky",V],stickyEnd:[2,"stickyEnd","stickyEnd",V]},features:[Ce([{provide:"MAT_SORT_HEADER_COLUMN_DEF",useExisting:t}])]})}return t})(),cw=class{constructor(n,e){e.nativeElement.classList.add(...n._columnCssClassName)}},_U=(()=>{class t extends cw{constructor(){super(u(sp),u(q))}static \u0275fac=function(i){return new(i||t)};static \u0275dir=F({type:t,selectors:[["cdk-header-cell"],["th","cdk-header-cell",""]],hostAttrs:["role","columnheader",1,"cdk-header-cell"],features:[le]})}return t})();var bU=(()=>{class t extends cw{constructor(){let e=u(sp),i=u(q);super(e,i);let r=e._table?._getCellRole();r&&i.nativeElement.setAttribute("role",r)}static \u0275fac=function(i){return new(i||t)};static \u0275dir=F({type:t,selectors:[["cdk-cell"],["td","cdk-cell",""]],hostAttrs:[1,"cdk-cell"],features:[le]})}return t})();var HI=(()=>{class t{template=u(te);_differs=u(ds);columns;_columnsDiffer;constructor(){}ngOnChanges(e){if(!this._columnsDiffer){let i=e.columns&&e.columns.currentValue||[];this._columnsDiffer=this._differs.find(i).create(),this._columnsDiffer.diff(i)}}getColumnsDiff(){return this._columnsDiffer.diff(this.columns)}extractCellTemplate(e){return this instanceof v_?e.headerCell.template:this instanceof zI?e.footerCell.template:e.cell.template}static \u0275fac=function(i){return new(i||t)};static \u0275dir=F({type:t,features:[Ae]})}return t})(),v_=(()=>{class t extends HI{_table=u(za,{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(u(te),u(ds))}ngOnChanges(e){super.ngOnChanges(e)}hasStickyChanged(){let e=this._hasStickyChanged;return this.resetStickyChanged(),e}resetStickyChanged(){this._hasStickyChanged=!1}static \u0275fac=function(i){return new(i||t)};static \u0275dir=F({type:t,selectors:[["","cdkHeaderRowDef",""]],inputs:{columns:[0,"cdkHeaderRowDef","columns"],sticky:[2,"cdkHeaderRowDefSticky","sticky",V]},features:[le,Ae]})}return t})(),zI=(()=>{class t extends HI{_table=u(za,{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(u(te),u(ds))}ngOnChanges(e){super.ngOnChanges(e)}hasStickyChanged(){let e=this._hasStickyChanged;return this.resetStickyChanged(),e}resetStickyChanged(){this._hasStickyChanged=!1}static \u0275fac=function(i){return new(i||t)};static \u0275dir=F({type:t,selectors:[["","cdkFooterRowDef",""]],inputs:{columns:[0,"cdkFooterRowDef","columns"],sticky:[2,"cdkFooterRowDefSticky","sticky",V]},features:[le,Ae]})}return t})(),hw=(()=>{class t extends HI{_table=u(za,{optional:!0});when;constructor(){super(u(te),u(ds))}static \u0275fac=function(i){return new(i||t)};static \u0275dir=F({type:t,selectors:[["","cdkRowDef",""]],inputs:{columns:[0,"cdkRowDefColumns","columns"],when:[0,"cdkRowDefWhen","when"]},features:[le]})}return t})(),Au=(()=>{class t{_viewContainer=u(nt);cells;context;static mostRecentCellOutlet=null;constructor(){t.mostRecentCellOutlet=this}ngOnDestroy(){t.mostRecentCellOutlet===this&&(t.mostRecentCellOutlet=null)}static \u0275fac=function(i){return new(i||t)};static \u0275dir=F({type:t,selectors:[["","cdkCellOutlet",""]]})}return t})(),UI=(()=>{class t{static \u0275fac=function(i){return new(i||t)};static \u0275cmp=E({type:t,selectors:[["cdk-header-row"],["tr","cdk-header-row",""]],hostAttrs:["role","row",1,"cdk-header-row"],decls:1,vars:0,consts:[["cdkCellOutlet",""]],template:function(i,r){i&1&&Ge(0,0)},dependencies:[Au],encapsulation:2})}return t})();var $I=(()=>{class t{static \u0275fac=function(i){return new(i||t)};static \u0275cmp=E({type:t,selectors:[["cdk-row"],["tr","cdk-row",""]],hostAttrs:["role","row",1,"cdk-row"],decls:1,vars:0,consts:[["cdkCellOutlet",""]],template:function(i,r){i&1&&Ge(0,0)},dependencies:[Au],encapsulation:2})}return t})(),pw=(()=>{class t{templateRef=u(te);_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(i){return new(i||t)};static \u0275dir=F({type:t,selectors:[["ng-template","cdkNoDataRow",""]]})}return t})(),pU=["top","bottom","left","right"],jI=class{_isNativeHtmlTable;_stickCellCss;_isBrowser;_needsPositionStickyOnElement;direction;_positionListener;_tableInjector;_elemSizeCache=new WeakMap;_resizeObserver=globalThis?.ResizeObserver?new globalThis.ResizeObserver(n=>this._updateCachedSizes(n)):null;_updatedStickyColumnsParamsToReplay=[];_stickyColumnsReplayTimeout=null;_cachedCellWidths=[];_borderCellCss;_destroyed=!1;constructor(n,e,i=!0,r=!0,o,a,s){this._isNativeHtmlTable=n,this._stickCellCss=e,this._isBrowser=i,this._needsPositionStickyOnElement=r,this.direction=o,this._positionListener=a,this._tableInjector=s,this._borderCellCss={top:`${e}-border-elem-top`,bottom:`${e}-border-elem-bottom`,left:`${e}-border-elem-left`,right:`${e}-border-elem-right`}}clearStickyPositioning(n,e){(e.includes("left")||e.includes("right"))&&this._removeFromStickyColumnReplayQueue(n);let i=[];for(let r of n)r.nodeType===r.ELEMENT_NODE&&i.push(r,...Array.from(r.children));pt({write:()=>{for(let r of i)this._removeStickyStyle(r,e)}},{injector:this._tableInjector})}updateStickyColumns(n,e,i,r=!0,o=!0){if(!n.length||!this._isBrowser||!(e.some(x=>x)||i.some(x=>x))){this._positionListener?.stickyColumnsUpdated({sizes:[]}),this._positionListener?.stickyEndColumnsUpdated({sizes:[]});return}let a=n[0],s=a.children.length,l=this.direction==="rtl",c=l?"right":"left",d=l?"left":"right",m=e.lastIndexOf(!0),f=i.indexOf(!0),b,v,w;o&&this._updateStickyColumnReplayQueue({rows:[...n],stickyStartStates:[...e],stickyEndStates:[...i]}),pt({earlyRead:()=>{b=this._getCellWidths(a,r),v=this._getStickyStartColumnPositions(b,e),w=this._getStickyEndColumnPositions(b,i)},write:()=>{for(let x of n)for(let D=0;D!!x)&&(this._positionListener.stickyColumnsUpdated({sizes:m===-1?[]:b.slice(0,m+1).map((x,D)=>e[D]?x:null)}),this._positionListener.stickyEndColumnsUpdated({sizes:f===-1?[]:b.slice(f).map((x,D)=>i[D+f]?x:null).reverse()}))}},{injector:this._tableInjector})}stickRows(n,e,i){if(!this._isBrowser)return;let r=i==="bottom"?n.slice().reverse():n,o=i==="bottom"?e.slice().reverse():e,a=[],s=[],l=[];pt({earlyRead:()=>{for(let c=0,d=0;c{let c=o.lastIndexOf(!0);for(let d=0;d{let i=n.querySelector("tfoot");i&&(e.some(r=>!r)?this._removeStickyStyle(i,["bottom"]):this._addStickyStyle(i,"bottom",0,!1))}},{injector:this._tableInjector})}destroy(){this._stickyColumnsReplayTimeout&&clearTimeout(this._stickyColumnsReplayTimeout),this._resizeObserver?.disconnect(),this._destroyed=!0}_removeStickyStyle(n,e){if(!n.classList.contains(this._stickCellCss))return;for(let r of e)n.style[r]="",n.classList.remove(this._borderCellCss[r]);pU.some(r=>e.indexOf(r)===-1&&n.style[r])?n.style.zIndex=this._getCalculatedZIndex(n):(n.style.zIndex="",this._needsPositionStickyOnElement&&(n.style.position=""),n.classList.remove(this._stickCellCss))}_addStickyStyle(n,e,i,r){n.classList.add(this._stickCellCss),r&&n.classList.add(this._borderCellCss[e]),n.style[e]=`${i}px`,n.style.zIndex=this._getCalculatedZIndex(n),this._needsPositionStickyOnElement&&(n.style.cssText+="position: -webkit-sticky; position: sticky; ")}_getCalculatedZIndex(n){let e={top:100,bottom:10,left:1,right:1},i=0;for(let r of pU)n.style[r]&&(i+=e[r]);return i?`${i}`:""}_getCellWidths(n,e=!0){if(!e&&this._cachedCellWidths.length)return this._cachedCellWidths;let i=[],r=n.children;for(let o=0;o0;o--)e[o]&&(i[o]=r,r+=n[o]);return i}_retrieveElementSize(n){let e=this._elemSizeCache.get(n);if(e)return e;let i=n.getBoundingClientRect(),r={width:i.width,height:i.height};return this._resizeObserver&&(this._elemSizeCache.set(n,r),this._resizeObserver.observe(n,{box:"border-box"})),r}_updateStickyColumnReplayQueue(n){this._removeFromStickyColumnReplayQueue(n.rows),this._stickyColumnsReplayTimeout||this._updatedStickyColumnsParamsToReplay.push(n)}_removeFromStickyColumnReplayQueue(n){let e=new Set(n);for(let i of this._updatedStickyColumnsParamsToReplay)i.rows=i.rows.filter(r=>!e.has(r));this._updatedStickyColumnsParamsToReplay=this._updatedStickyColumnsParamsToReplay.filter(i=>!!i.rows.length)}_updateCachedSizes(n){let e=!1;for(let i of n){let r=i.borderBoxSize?.length?{width:i.borderBoxSize[0].inlineSize,height:i.borderBoxSize[0].blockSize}:{width:i.contentRect.width,height:i.contentRect.height};r.width!==this._elemSizeCache.get(i.target)?.width&&T_e(i.target)&&(e=!0),this._elemSizeCache.set(i.target,r)}e&&this._updatedStickyColumnsParamsToReplay.length&&(this._stickyColumnsReplayTimeout&&clearTimeout(this._stickyColumnsReplayTimeout),this._stickyColumnsReplayTimeout=setTimeout(()=>{if(!this._destroyed){for(let i of this._updatedStickyColumnsParamsToReplay)this.updateStickyColumns(i.rows,i.stickyStartStates,i.stickyEndStates,!0,!1);this._updatedStickyColumnsParamsToReplay=[],this._stickyColumnsReplayTimeout=null}},0))}};function T_e(t){return["cdk-cell","cdk-header-cell","cdk-footer-cell"].some(n=>t.classList.contains(n))}var dw=new T("CDK_SPL");var WI=(()=>{class t{viewContainer=u(nt);elementRef=u(q);constructor(){let e=u(za);e._rowOutlet=this,e._outletAssigned()}static \u0275fac=function(i){return new(i||t)};static \u0275dir=F({type:t,selectors:[["","rowOutlet",""]]})}return t})(),GI=(()=>{class t{viewContainer=u(nt);elementRef=u(q);constructor(){let e=u(za);e._headerRowOutlet=this,e._outletAssigned()}static \u0275fac=function(i){return new(i||t)};static \u0275dir=F({type:t,selectors:[["","headerRowOutlet",""]]})}return t})(),qI=(()=>{class t{viewContainer=u(nt);elementRef=u(q);constructor(){let e=u(za);e._footerRowOutlet=this,e._outletAssigned()}static \u0275fac=function(i){return new(i||t)};static \u0275dir=F({type:t,selectors:[["","footerRowOutlet",""]]})}return t})(),YI=(()=>{class t{viewContainer=u(nt);elementRef=u(q);constructor(){let e=u(za);e._noDataRowOutlet=this,e._outletAssigned()}static \u0275fac=function(i){return new(i||t)};static \u0275dir=F({type:t,selectors:[["","noDataRowOutlet",""]]})}return t})(),QI=(()=>{class t{_differs=u(ds);_changeDetectorRef=u(ye);_elementRef=u(q);_dir=u(Vt,{optional:!0});_platform=u(qe);_viewRepeater=u(fh);_viewportRuler=u(Xn);_stickyPositioningListener=u(dw,{optional:!0,skipSelf:!0});_document=u(ge);_data;_onDestroy=new z;_renderRows;_renderChangeSubscription;_columnDefsByName=new Map;_rowDefs;_headerRowDefs;_footerRowDefs;_dataDiffer;_defaultRowDef;_customColumnDefs=new Set;_customRowDefs=new Set;_customHeaderRowDefs=new Set;_customFooterRowDefs=new Set;_customNoDataRow;_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;_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)}_dataSource;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._fixedLayout}set fixedLayout(e){this._fixedLayout=e,this._forceRecalculateCellWidths=!0,this._stickyColumnStylesNeedReset=!0}_fixedLayout=!1;contentChanged=new U;viewChange=new tt({start:0,end:Number.MAX_VALUE});_rowOutlet;_headerRowOutlet;_footerRowOutlet;_noDataRowOutlet;_contentColumnDefs;_contentRowDefs;_contentHeaderRowDefs;_contentFooterRowDefs;_noDataRow;_injector=u(de);constructor(){u(new Ii("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((i,r)=>this.trackBy?this.trackBy(r.dataIndex,r.data):r)}ngOnInit(){this._setupStickyStyler(),this._viewportRuler.change().pipe(Te(this._onDestroy)).subscribe(()=>{this._forceRecalculateCellWidths=!0})}ngAfterContentInit(){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._onDestroy.next(),this._onDestroy.complete(),ig(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 i=this._rowOutlet.viewContainer;this._viewRepeater.applyChanges(e,i,(r,o,a)=>this._getEmbeddedViewArgs(r.item,a),r=>r.item.data,r=>{r.operation===cc.INSERTED&&r.context&&this._renderCellTemplateForItem(r.record.item.rowDef,r.context)}),this._updateRowIndexContext(),e.forEachIdentityChange(r=>{let o=i.get(r.currentIndex);o.context.$implicit=r.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 r=fU(this._headerRowOutlet,"thead");r&&(r.style.display=e.length?"":"none")}let i=this._headerRowDefs.map(r=>r.sticky);this._stickyStyler.clearStickyPositioning(e,["top"]),this._stickyStyler.stickRows(e,i,"top"),this._headerRowDefs.forEach(r=>r.resetStickyChanged())}updateStickyFooterRowStyles(){let e=this._getRenderedRows(this._footerRowOutlet);if(this._isNativeHtmlTable){let r=fU(this._footerRowOutlet,"tfoot");r&&(r.style.display=e.length?"":"none")}let i=this._footerRowDefs.map(r=>r.sticky);this._stickyStyler.clearStickyPositioning(e,["bottom"]),this._stickyStyler.stickRows(e,i,"bottom"),this._stickyStyler.updateStickyFooterContainer(this._elementRef.nativeElement,i),this._footerRowDefs.forEach(r=>r.resetStickyChanged())}updateStickyColumnStyles(){let e=this._getRenderedRows(this._headerRowOutlet),i=this._getRenderedRows(this._rowOutlet),r=this._getRenderedRows(this._footerRowOutlet);(this._isNativeHtmlTable&&!this._fixedLayout||this._stickyColumnStylesNeedReset)&&(this._stickyStyler.clearStickyPositioning([...e,...i,...r],["left","right"]),this._stickyColumnStylesNeedReset=!1),e.forEach((o,a)=>{this._addStickyColumnStyles([o],this._headerRowDefs[a])}),this._rowDefs.forEach(o=>{let a=[];for(let s=0;s{this._addStickyColumnStyles([o],this._footerRowDefs[a])}),Array.from(this._columnDefsByName.values()).forEach(o=>o.resetStickyChanged())}_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 i=this._renderUpdatedColumns()||this._headerRowDefChanged||this._footerRowDefChanged;this._stickyColumnStylesNeedReset=this._stickyColumnStylesNeedReset||i,this._forceRecalculateCellWidths=i,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(){let e=[],i=this._cachedRenderRowsMap;if(this._cachedRenderRowsMap=new Map,!this._data)return e;for(let r=0;r{let s=r&&r.has(a)?r.get(a):[];if(s.length){let l=s.shift();return l.dataIndex=i,l}else return{data:e,rowDef:a,dataIndex:i}})}_cacheColumnDefs(){this._columnDefsByName.clear(),lw(this._getOwnDefs(this._contentColumnDefs),this._customColumnDefs).forEach(i=>{this._columnDefsByName.has(i.name),this._columnDefsByName.set(i.name,i)})}_cacheRowDefs(){this._headerRowDefs=lw(this._getOwnDefs(this._contentHeaderRowDefs),this._customHeaderRowDefs),this._footerRowDefs=lw(this._getOwnDefs(this._contentFooterRowDefs),this._customFooterRowDefs),this._rowDefs=lw(this._getOwnDefs(this._contentRowDefs),this._customRowDefs);let e=this._rowDefs.filter(i=>!i.when);!this.multiTemplateDataRows&&e.length>1,this._defaultRowDef=e[0]}_renderUpdatedColumns(){let e=(a,s)=>{let l=!!s.getColumnsDiff();return a||l},i=this._rowDefs.reduce(e,!1);i&&this._forceRenderDataRows();let r=this._headerRowDefs.reduce(e,!1);r&&this._forceRenderHeaderRows();let o=this._footerRowDefs.reduce(e,!1);return o&&this._forceRenderFooterRows(),i||r||o}_switchDataSource(e){this._data=[],ig(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;ig(this.dataSource)?e=this.dataSource.connect(this):ji(this.dataSource)?e=this.dataSource:Array.isArray(this.dataSource)&&(e=Q(this.dataSource)),this._renderChangeSubscription=e.pipe(Te(this._onDestroy)).subscribe(i=>{this._data=i||[],this.renderRows()})}_forceRenderHeaderRows(){this._headerRowOutlet.viewContainer.length>0&&this._headerRowOutlet.viewContainer.clear(),this._headerRowDefs.forEach((e,i)=>this._renderRow(this._headerRowOutlet,e,i)),this.updateStickyHeaderRowStyles()}_forceRenderFooterRows(){this._footerRowOutlet.viewContainer.length>0&&this._footerRowOutlet.viewContainer.clear(),this._footerRowDefs.forEach((e,i)=>this._renderRow(this._footerRowOutlet,e,i)),this.updateStickyFooterRowStyles()}_addStickyColumnStyles(e,i){let r=Array.from(i?.columns||[]).map(s=>{let l=this._columnDefsByName.get(s);return l}),o=r.map(s=>s.sticky),a=r.map(s=>s.stickyEnd);this._stickyStyler.updateStickyColumns(e,o,a,!this._fixedLayout||this._forceRecalculateCellWidths)}_getRenderedRows(e){let i=[];for(let r=0;r!o.when||o.when(i,e));else{let o=this._rowDefs.find(a=>a.when&&a.when(i,e))||this._defaultRowDef;o&&r.push(o)}return r.length,r}_getEmbeddedViewArgs(e,i){let r=e.rowDef,o={$implicit:e.data};return{templateRef:r.template,context:o,index:i}}_renderRow(e,i,r,o={}){let a=e.viewContainer.createEmbeddedView(i.template,o,r);return this._renderCellTemplateForItem(i,o),a}_renderCellTemplateForItem(e,i){for(let r of this._getCellTemplates(e))Au.mostRecentCellOutlet&&Au.mostRecentCellOutlet._viewContainer.createEmbeddedView(r,i);this._changeDetectorRef.markForCheck()}_updateRowIndexContext(){let e=this._rowOutlet.viewContainer;for(let i=0,r=e.length;i{let r=this._columnDefsByName.get(i);return e.extractCellTemplate(r)})}_forceRenderDataRows(){this._dataDiffer.diff([]),this._rowOutlet.viewContainer.clear(),this.renderRows()}_checkStickyStates(){let e=(i,r)=>i||r.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";this._stickyStyler=new jI(this._isNativeHtmlTable,this.stickyCssClass,this._platform.isBrowser,this.needsPositionStickyOnElement,e,this._stickyPositioningListener,this._injector),(this._dir?this._dir.change:Q()).pipe(Te(this._onDestroy)).subscribe(i=>{this._stickyStyler.direction=i,this.updateStickyColumnStyles()})}_getOwnDefs(e){return e.filter(i=>!i._table||i._table===this)}_updateNoDataRow(){let e=this._customNoDataRow||this._noDataRow;if(!e)return;let i=this._rowOutlet.viewContainer.length===0;if(i===this._isShowingNoDataRow)return;let r=this._noDataRowOutlet.viewContainer;if(i){let o=r.createEmbeddedView(e.templateRef),a=o.rootNodes[0];if(o.rootNodes.length===1&&a?.nodeType===this._document.ELEMENT_NODE){a.setAttribute("role","row"),a.classList.add(...e._contentClassNames);let s=a.querySelectorAll(e._cellSelector);for(let l=0;l{class t{static \u0275fac=function(i){return new(i||t)};static \u0275mod=ee({type:t});static \u0275inj=J({imports:[ng]})}return t})();var I_e=[[["caption"]],[["colgroup"],["col"]],"*"],A_e=["caption","colgroup, col","*"];function O_e(t,n){t&1&&oe(0,2)}function R_e(t,n){t&1&&(h(0,"thead",0),Ge(1,1),p(),h(2,"tbody",2),Ge(3,3)(4,4),p(),h(5,"tfoot",0),Ge(6,5),p())}function P_e(t,n){t&1&&Ge(0,1)(1,3)(2,4)(3,5)}var Hc=(()=>{class t extends QI{stickyCssClass="mat-mdc-table-sticky";needsPositionStickyOnElement=!1;static \u0275fac=(()=>{let e;return function(r){return(e||(e=fe(t)))(r||t)}})();static \u0275cmp=E({type:t,selectors:[["mat-table"],["table","mat-table",""]],hostAttrs:[1,"mat-mdc-table","mdc-data-table__table"],hostVars:2,hostBindings:function(i,r){i&2&&G("mdc-table-fixed-layout",r.fixedLayout)},exportAs:["matTable"],features:[Ce([{provide:QI,useExisting:t},{provide:za,useExisting:t},{provide:fh,useClass:su},{provide:dw,useValue:null}]),le],ngContentSelectors:A_e,decls:5,vars:2,consts:[["role","rowgroup"],["headerRowOutlet",""],["role","rowgroup",1,"mdc-data-table__content"],["rowOutlet",""],["noDataRowOutlet",""],["footerRowOutlet",""]],template:function(i,r){i&1&&(Me(I_e),oe(0),oe(1,1),N(2,O_e,1,0),N(3,R_e,7,0)(4,P_e,4,0)),i&2&&(g(2),L(r._isServer?2:-1),g(),L(r._isNativeHtmlTable?3:4))},dependencies:[GI,WI,YI,qI],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))}.mdc-data-table__cell{box-sizing:border-box;overflow:hidden;text-align:left;text-overflow:ellipsis}[dir=rtl] .mdc-data-table__cell{text-align:right}.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:left}[dir=rtl] .mat-mdc-header-cell{text-align:right}.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 t})(),zc=(()=>{class t extends uw{static \u0275fac=(()=>{let e;return function(r){return(e||(e=fe(t)))(r||t)}})();static \u0275dir=F({type:t,selectors:[["","matCellDef",""]],features:[Ce([{provide:uw,useExisting:t}]),le]})}return t})(),Uc=(()=>{class t extends mw{static \u0275fac=(()=>{let e;return function(r){return(e||(e=fe(t)))(r||t)}})();static \u0275dir=F({type:t,selectors:[["","matHeaderCellDef",""]],features:[Ce([{provide:mw,useExisting:t}]),le]})}return t})();var $c=(()=>{class t extends sp{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(r){return(e||(e=fe(t)))(r||t)}})();static \u0275dir=F({type:t,selectors:[["","matColumnDef",""]],inputs:{name:[0,"matColumnDef","name"]},features:[Ce([{provide:sp,useExisting:t},{provide:"MAT_SORT_HEADER_COLUMN_DEF",useExisting:t}]),le]})}return t})(),Wc=(()=>{class t extends _U{static \u0275fac=(()=>{let e;return function(r){return(e||(e=fe(t)))(r||t)}})();static \u0275dir=F({type:t,selectors:[["mat-header-cell"],["th","mat-header-cell",""]],hostAttrs:["role","columnheader",1,"mat-mdc-header-cell","mdc-data-table__header-cell"],features:[le]})}return t})();var Gc=(()=>{class t extends bU{static \u0275fac=(()=>{let e;return function(r){return(e||(e=fe(t)))(r||t)}})();static \u0275dir=F({type:t,selectors:[["mat-cell"],["td","mat-cell",""]],hostAttrs:[1,"mat-mdc-cell","mdc-data-table__cell"],features:[le]})}return t})();var qc=(()=>{class t extends v_{static \u0275fac=(()=>{let e;return function(r){return(e||(e=fe(t)))(r||t)}})();static \u0275dir=F({type:t,selectors:[["","matHeaderRowDef",""]],inputs:{columns:[0,"matHeaderRowDef","columns"],sticky:[2,"matHeaderRowDefSticky","sticky",V]},features:[Ce([{provide:v_,useExisting:t}]),le]})}return t})();var Yc=(()=>{class t extends hw{static \u0275fac=(()=>{let e;return function(r){return(e||(e=fe(t)))(r||t)}})();static \u0275dir=F({type:t,selectors:[["","matRowDef",""]],inputs:{columns:[0,"matRowDefColumns","columns"],when:[0,"matRowDefWhen","when"]},features:[Ce([{provide:hw,useExisting:t}]),le]})}return t})(),Qc=(()=>{class t extends UI{static \u0275fac=(()=>{let e;return function(r){return(e||(e=fe(t)))(r||t)}})();static \u0275cmp=E({type:t,selectors:[["mat-header-row"],["tr","mat-header-row",""]],hostAttrs:["role","row",1,"mat-mdc-header-row","mdc-data-table__header-row"],exportAs:["matHeaderRow"],features:[Ce([{provide:UI,useExisting:t}]),le],decls:1,vars:0,consts:[["cdkCellOutlet",""]],template:function(i,r){i&1&&Ge(0,0)},dependencies:[Au],encapsulation:2})}return t})();var Kc=(()=>{class t extends $I{static \u0275fac=(()=>{let e;return function(r){return(e||(e=fe(t)))(r||t)}})();static \u0275cmp=E({type:t,selectors:[["mat-row"],["tr","mat-row",""]],hostAttrs:["role","row",1,"mat-mdc-row","mdc-data-table__row"],exportAs:["matRow"],features:[Ce([{provide:$I,useExisting:t}]),le],decls:1,vars:0,consts:[["cdkCellOutlet",""]],template:function(i,r){i&1&&Ge(0,0)},dependencies:[Au],encapsulation:2})}return t})(),gw=(()=>{class t extends pw{_cellSelector="td, mat-cell, [mat-cell], .mat-cell";constructor(){super(),this._contentClassNames.push("mat-mdc-no-data-row","mat-mdc-row","mdc-data-table__row"),this._cellClassNames.push("mat-mdc-cell","mdc-data-table__cell","mat-no-data-cell")}static \u0275fac=function(i){return new(i||t)};static \u0275dir=F({type:t,selectors:[["ng-template","matNoDataRow",""]],features:[Ce([{provide:pw,useExisting:t}]),le]})}return t})();var Zc=(()=>{class t{static \u0275fac=function(i){return new(i||t)};static \u0275mod=ee({type:t});static \u0275inj=J({imports:[we,vU,we]})}return t})(),F_e=9007199254740991,fw=class extends tg{_data;_renderData=new tt([]);_filter=new tt("");_internalPageChanges=new z;_renderChangesSubscription=null;filteredData;get data(){return this._data.value}set data(n){n=Array.isArray(n)?n:[],this._data.next(n),this._renderChangesSubscription||this._filterData(n)}get filter(){return this._filter.value}set filter(n){this._filter.next(n),this._renderChangesSubscription||this._filterData(this.data)}get sort(){return this._sort}set sort(n){this._sort=n,this._updateChangeSubscription()}_sort;get paginator(){return this._paginator}set paginator(n){this._paginator=n,this._updateChangeSubscription()}_paginator;sortingDataAccessor=(n,e)=>{let i=n[e];if(N0(i)){let r=Number(i);return r{let i=e.active,r=e.direction;return!i||r==""?n:n.sort((o,a)=>{let s=this.sortingDataAccessor(o,i),l=this.sortingDataAccessor(a,i),c=typeof s,d=typeof l;c!==d&&(c==="number"&&(s+=""),d==="number"&&(l+=""));let m=0;return s!=null&&l!=null?s>l?m=1:s{let i=e.trim().toLowerCase();return Object.values(n).some(r=>`${r}`.toLowerCase().includes(i))};constructor(n=[]){super(),this._data=new tt(n),this._updateChangeSubscription()}_updateChangeSubscription(){let n=this._sort?Je(this._sort.sortChange,this._sort.initialized):Q(null),e=this._paginator?Je(this._paginator.page,this._internalPageChanges,this._paginator.initialized):Q(null),i=this._data,r=co([i,this._filter]).pipe(se(([s])=>this._filterData(s))),o=co([r,n]).pipe(se(([s])=>this._orderData(s))),a=co([o,e]).pipe(se(([s])=>this._pageData(s)));this._renderChangesSubscription?.unsubscribe(),this._renderChangesSubscription=a.subscribe(s=>this._renderData.next(s))}_filterData(n){return this.filteredData=this.filter==null||this.filter===""?n:n.filter(e=>this.filterPredicate(e,this.filter)),this.paginator&&this._updatePaginator(this.filteredData.length),this.filteredData}_orderData(n){return this.sort?this.sortData(n.slice(),this.sort):n}_pageData(n){if(!this.paginator)return n;let e=this.paginator.pageIndex*this.paginator.pageSize;return n.slice(e,e+this.paginator.pageSize)}_updatePaginator(n){Promise.resolve().then(()=>{let e=this.paginator;if(e&&(e.length=n,e.pageIndex>0)){let i=Math.ceil(e.length/e.pageSize)-1||0,r=Math.min(e.pageIndex,i);r!==e.pageIndex&&(e.pageIndex=r,this._internalPageChanges.next())}})}connect(){return this._renderChangesSubscription||this._updateChangeSubscription(),this._renderData}disconnect(){this._renderChangesSubscription?.unsubscribe(),this._renderChangesSubscription=null}};var N_e=["panel"],L_e=["*"];function V_e(t,n){if(t&1&&(ft(0,"div",1,0),oe(2),vt()),t&2){let e=n.id,i=C();it(i._classList),G("mat-mdc-autocomplete-visible",i.showPanel)("mat-mdc-autocomplete-hidden",!i.showPanel)("mat-autocomplete-panel-animations-enabled",!i._animationsDisabled)("mat-primary",i._color==="primary")("mat-accent",i._color==="accent")("mat-warn",i._color==="warn"),si("id",i.id),X("aria-label",i.ariaLabel||null)("aria-labelledby",i._getPanelAriaLabelledby(e))}}var KI=class{source;option;constructor(n,e){this.source=n,this.option=e}},yU=new T("mat-autocomplete-default-options",{providedIn:"root",factory:B_e});function B_e(){return{autoActiveFirstOption:!1,autoSelectActiveOption:!1,hideSingleSelectionIndicator:!1,requireSelection:!1,hasBackdrop:!1}}var bw=(()=>{class t{_changeDetectorRef=u(ye);_elementRef=u(q);_defaults=u(yU);_animationsDisabled=Ye();_activeOptionChanges=ke.EMPTY;_keyManager;showPanel=!1;get isOpen(){return this._isOpen&&this.showPanel}_isOpen=!1;_latestOpeningTrigger;_setColor(e){this._color=e,this._changeDetectorRef.markForCheck()}_color;template;panel;options;optionGroups;ariaLabel;ariaLabelledby;displayWith=null;autoActiveFirstOption;autoSelectActiveOption;requireSelection;panelWidth;disableRipple;optionSelected=new U;opened=new U;closed=new U;optionActivated=new U;set classList(e){this._classList=e,this._elementRef.nativeElement.className=""}_classList;get hideSingleSelectionIndicator(){return this._hideSingleSelectionIndicator}set hideSingleSelectionIndicator(e){this._hideSingleSelectionIndicator=e,this._syncParentProperties()}_hideSingleSelectionIndicator;_syncParentProperties(){if(this.options)for(let e of this.options)e._changeDetectorRef.markForCheck()}id=u(Ze).getId("mat-autocomplete-");inertGroups;constructor(){let e=u(qe);this.inertGroups=e?.SAFARI||!1,this.autoActiveFirstOption=!!this._defaults.autoActiveFirstOption,this.autoSelectActiveOption=!!this._defaults.autoSelectActiveOption,this.requireSelection=!!this._defaults.requireSelection,this._hideSingleSelectionIndicator=this._defaults.hideSingleSelectionIndicator??!1}ngAfterContentInit(){this._keyManager=new qd(this.options).withWrap().skipPredicate(this._skipPredicate),this._activeOptionChanges=this._keyManager.change.subscribe(e=>{this.isOpen&&this.optionActivated.emit({source:this,option:this.options.toArray()[e]||null})}),this._setVisibility()}ngOnDestroy(){this._keyManager?.destroy(),this._activeOptionChanges.unsubscribe()}_setScrollTop(e){this.panel&&(this.panel.nativeElement.scrollTop=e)}_getScrollTop(){return this.panel?this.panel.nativeElement.scrollTop:0}_setVisibility(){this.showPanel=!!this.options?.length,this._changeDetectorRef.markForCheck()}_emitSelectEvent(e){let i=new KI(this,e);this.optionSelected.emit(i)}_getPanelAriaLabelledby(e){if(this.ariaLabel)return null;let i=e?e+" ":"";return this.ariaLabelledby?i+this.ariaLabelledby:e}_skipPredicate(){return!1}static \u0275fac=function(i){return new(i||t)};static \u0275cmp=E({type:t,selectors:[["mat-autocomplete"]],contentQueries:function(i,r,o){if(i&1&&(xe(o,xn,5),xe(o,Zd,5)),i&2){let a;B(a=j())&&(r.options=a),B(a=j())&&(r.optionGroups=a)}},viewQuery:function(i,r){if(i&1&&(ie(te,7),ie(N_e,5)),i&2){let o;B(o=j())&&(r.template=o.first),B(o=j())&&(r.panel=o.first)}},hostAttrs:[1,"mat-mdc-autocomplete"],inputs:{ariaLabel:[0,"aria-label","ariaLabel"],ariaLabelledby:[0,"aria-labelledby","ariaLabelledby"],displayWith:"displayWith",autoActiveFirstOption:[2,"autoActiveFirstOption","autoActiveFirstOption",V],autoSelectActiveOption:[2,"autoSelectActiveOption","autoSelectActiveOption",V],requireSelection:[2,"requireSelection","requireSelection",V],panelWidth:"panelWidth",disableRipple:[2,"disableRipple","disableRipple",V],classList:[0,"class","classList"],hideSingleSelectionIndicator:[2,"hideSingleSelectionIndicator","hideSingleSelectionIndicator",V]},outputs:{optionSelected:"optionSelected",opened:"opened",closed:"closed",optionActivated:"optionActivated"},exportAs:["matAutocomplete"],features:[Ce([{provide:Kd,useExisting:t}])],ngContentSelectors:L_e,decls:1,vars:0,consts:[["panel",""],["role","listbox",1,"mat-mdc-autocomplete-panel","mdc-menu-surface","mdc-menu-surface--open",3,"id"]],template:function(i,r){i&1&&(Me(),xa(0,V_e,3,17,"ng-template"))},styles:[`div.mat-mdc-autocomplete-panel{width:100%;max-height:256px;visibility:hidden;transform-origin:center top;overflow:auto;padding:8px 0;box-sizing:border-box;position:relative;border-radius:var(--mat-autocomplete-container-shape, var(--mat-sys-corner-extra-small));box-shadow:var(--mat-autocomplete-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));background-color:var(--mat-autocomplete-background-color, var(--mat-sys-surface-container))}@media(forced-colors: active){div.mat-mdc-autocomplete-panel{outline:solid 1px}}.cdk-overlay-pane:not(.mat-mdc-autocomplete-panel-above) div.mat-mdc-autocomplete-panel{border-top-left-radius:0;border-top-right-radius:0}.mat-mdc-autocomplete-panel-above div.mat-mdc-autocomplete-panel{border-bottom-left-radius:0;border-bottom-right-radius:0;transform-origin:center bottom}div.mat-mdc-autocomplete-panel.mat-mdc-autocomplete-visible{visibility:visible}div.mat-mdc-autocomplete-panel.mat-mdc-autocomplete-hidden{visibility:hidden;pointer-events:none}@keyframes _mat-autocomplete-enter{from{opacity:0;transform:scaleY(0.8)}to{opacity:1;transform:none}}.mat-autocomplete-panel-animations-enabled{animation:_mat-autocomplete-enter 120ms cubic-bezier(0, 0, 0.2, 1)}mat-autocomplete{display:none} +`],encapsulation:2,changeDetection:0})}return t})();var j_e={provide:tr,useExisting:Kt(()=>y_),multi:!0};var xU=new T("mat-autocomplete-scroll-strategy",{providedIn:"root",factory:()=>{let t=u(de);return()=>wn(t)}});function H_e(t){let n=u(de);return()=>wn(n)}var z_e={provide:xU,deps:[],useFactory:H_e},y_=(()=>{class t{_environmentInjector=u(Wt);_element=u(q);_injector=u(de);_viewContainerRef=u(nt);_zone=u(ae);_changeDetectorRef=u(ye);_dir=u(Vt,{optional:!0});_formField=u(Xo,{optional:!0,host:!0});_viewportRuler=u(Xn);_scrollStrategy=u(xU);_renderer=u(je);_animationsDisabled=Ye();_defaults=u(yU,{optional:!0});_overlayRef;_portal;_componentDestroyed=!1;_initialized=new z;_keydownSubscription;_outsideClickSubscription;_cleanupWindowBlur;_previousValue;_valueOnAttach;_valueOnLastKeydown;_positionStrategy;_manuallyFloatingLabel=!1;_closingActionsSubscription;_viewportSubscription=ke.EMPTY;_breakpointObserver=u(sl);_handsetLandscapeSubscription=ke.EMPTY;_canOpenOnNextFocus=!0;_valueBeforeAutoSelection;_pendingAutoselectedOption;_closeKeyEventStream=new z;_overlayPanelClass=al(this._defaults?.overlayPanelClass||[]);_windowBlurHandler=()=>{this._canOpenOnNextFocus=this.panelOpen||!this._hasFocus()};_onChange=()=>{};_onTouched=()=>{};autocomplete;position="auto";connectedTo;autocompleteAttribute="off";autocompleteDisabled;constructor(){}_aboveClass="mat-mdc-autocomplete-panel-above";ngAfterViewInit(){this._initialized.next(),this._initialized.complete(),this._cleanupWindowBlur=this._renderer.listen("window","blur",this._windowBlurHandler)}ngOnChanges(e){e.position&&this._positionStrategy&&(this._setStrategyPositions(this._positionStrategy),this.panelOpen&&this._overlayRef.updatePosition())}ngOnDestroy(){this._cleanupWindowBlur?.(),this._handsetLandscapeSubscription.unsubscribe(),this._viewportSubscription.unsubscribe(),this._componentDestroyed=!0,this._destroyPanel(),this._closeKeyEventStream.complete(),this._clearFromModal()}get panelOpen(){return this._overlayAttached&&this.autocomplete.showPanel}_overlayAttached=!1;openPanel(){this._openPanelInternal()}closePanel(){this._resetLabel(),this._overlayAttached&&(this.panelOpen&&this._zone.run(()=>{this.autocomplete.closed.emit()}),this.autocomplete._latestOpeningTrigger===this&&(this.autocomplete._isOpen=!1,this.autocomplete._latestOpeningTrigger=null),this._overlayAttached=!1,this._pendingAutoselectedOption=null,this._overlayRef&&this._overlayRef.hasAttached()&&(this._overlayRef.detach(),this._closingActionsSubscription.unsubscribe()),this._updatePanelState(),this._componentDestroyed||this._changeDetectorRef.detectChanges(),this._trackedModal&&sc(this._trackedModal,"aria-owns",this.autocomplete.id))}updatePosition(){this._overlayAttached&&this._overlayRef.updatePosition()}get panelClosingActions(){return Je(this.optionSelections,this.autocomplete._keyManager.tabOut.pipe(ce(()=>this._overlayAttached)),this._closeKeyEventStream,this._getOutsideClickStream(),this._overlayRef?this._overlayRef.detachments().pipe(ce(()=>this._overlayAttached)):Q()).pipe(se(e=>e instanceof nh?e:null))}optionSelections=kn(()=>{let e=this.autocomplete?this.autocomplete.options:null;return e?e.changes.pipe(He(e),$e(()=>Je(...e.map(i=>i.onSelectionChange)))):this._initialized.pipe($e(()=>this.optionSelections))});get activeOption(){return this.autocomplete&&this.autocomplete._keyManager?this.autocomplete._keyManager.activeItem:null}_getOutsideClickStream(){return new Fe(e=>{let i=o=>{let a=Kn(o),s=this._formField?this._formField.getConnectedOverlayOrigin().nativeElement:null,l=this.connectedTo?this.connectedTo.elementRef.nativeElement:null;this._overlayAttached&&a!==this._element.nativeElement&&!this._hasFocus()&&(!s||!s.contains(a))&&(!l||!l.contains(a))&&this._overlayRef&&!this._overlayRef.overlayElement.contains(a)&&e.next(o)},r=[this._renderer.listen("document","click",i),this._renderer.listen("document","auxclick",i),this._renderer.listen("document","touchend",i)];return()=>{r.forEach(o=>o())}})}writeValue(e){Promise.resolve(null).then(()=>this._assignOptionValue(e))}registerOnChange(e){this._onChange=e}registerOnTouched(e){this._onTouched=e}setDisabledState(e){this._element.nativeElement.disabled=e}_handleKeydown(e){let i=e,r=i.keyCode,o=Ft(i);if(r===27&&!o&&i.preventDefault(),this._valueOnLastKeydown=this._element.nativeElement.value,this.activeOption&&r===13&&this.panelOpen&&!o)this.activeOption._selectViaInteraction(),this._resetActiveItem(),i.preventDefault();else if(this.autocomplete){let a=this.autocomplete._keyManager.activeItem,s=r===38||r===40;r===9||s&&!o&&this.panelOpen?this.autocomplete._keyManager.onKeydown(i):s&&this._canOpen()&&this._openPanelInternal(this._valueOnLastKeydown),(s||this.autocomplete._keyManager.activeItem!==a)&&(this._scrollToOption(this.autocomplete._keyManager.activeItemIndex||0),this.autocomplete.autoSelectActiveOption&&this.activeOption&&(this._pendingAutoselectedOption||(this._valueBeforeAutoSelection=this._valueOnLastKeydown),this._pendingAutoselectedOption=this.activeOption,this._assignOptionValue(this.activeOption.value)))}}_handleInput(e){let i=e.target,r=i.value;if(i.type==="number"&&(r=r==""?null:parseFloat(r)),this._previousValue!==r){if(this._previousValue=r,this._pendingAutoselectedOption=null,(!this.autocomplete||!this.autocomplete.requireSelection)&&this._onChange(r),!r)this._clearPreviousSelectedOption(null,!1);else if(this.panelOpen&&!this.autocomplete.requireSelection){let o=this.autocomplete.options?.find(a=>a.selected);if(o){let a=this._getDisplayValue(o.value);r!==a&&o.deselect(!1)}}if(this._canOpen()&&this._hasFocus()){let o=this._valueOnLastKeydown??this._element.nativeElement.value;this._valueOnLastKeydown=null,this._openPanelInternal(o)}}}_handleFocus(){this._canOpenOnNextFocus?this._canOpen()&&(this._previousValue=this._element.nativeElement.value,this._attachOverlay(this._previousValue),this._floatLabel(!0)):this._canOpenOnNextFocus=!0}_handleClick(){this._canOpen()&&!this.panelOpen&&this._openPanelInternal()}_hasFocus(){return _o()===this._element.nativeElement}_floatLabel(e=!1){this._formField&&this._formField.floatLabel==="auto"&&(e?this._formField._animateAndLockLabel():this._formField.floatLabel="always",this._manuallyFloatingLabel=!0)}_resetLabel(){this._manuallyFloatingLabel&&(this._formField&&(this._formField.floatLabel="auto"),this._manuallyFloatingLabel=!1)}_subscribeToClosingActions(){let e=new Fe(r=>{pt(()=>{r.next()},{injector:this._environmentInjector})}),i=this.autocomplete.options?.changes.pipe(Be(()=>this._positionStrategy.reapplyLastPosition()),pa(0))??Q();return Je(e,i).pipe($e(()=>this._zone.run(()=>{let r=this.panelOpen;return this._resetActiveItem(),this._updatePanelState(),this._changeDetectorRef.detectChanges(),this.panelOpen&&this._overlayRef.updatePosition(),r!==this.panelOpen&&(this.panelOpen?this._emitOpened():this.autocomplete.closed.emit()),this.panelClosingActions})),lt(1)).subscribe(r=>this._setValueAndClose(r))}_emitOpened(){this.autocomplete.opened.emit()}_destroyPanel(){this._overlayRef&&(this.closePanel(),this._overlayRef.dispose(),this._overlayRef=null)}_getDisplayValue(e){let i=this.autocomplete;return i&&i.displayWith?i.displayWith(e):e}_assignOptionValue(e){let i=this._getDisplayValue(e);e==null&&this._clearPreviousSelectedOption(null,!1),this._updateNativeInputValue(i??"")}_updateNativeInputValue(e){this._formField?this._formField._control.value=e:this._element.nativeElement.value=e,this._previousValue=e}_setValueAndClose(e){let i=this.autocomplete,r=e?e.source:this._pendingAutoselectedOption;r?(this._clearPreviousSelectedOption(r),this._assignOptionValue(r.value),this._onChange(r.value),i._emitSelectEvent(r),this._element.nativeElement.focus()):i.requireSelection&&this._element.nativeElement.value!==this._valueOnAttach&&(this._clearPreviousSelectedOption(null),this._assignOptionValue(null),this._onChange(null)),this.closePanel()}_clearPreviousSelectedOption(e,i){this.autocomplete?.options?.forEach(r=>{r!==e&&r.selected&&r.deselect(i)})}_openPanelInternal(e=this._element.nativeElement.value){if(this._attachOverlay(e),this._floatLabel(),this._trackedModal){let i=this.autocomplete.id;Zm(this._trackedModal,"aria-owns",i)}}_attachOverlay(e){this.autocomplete;let i=this._overlayRef;i?(this._positionStrategy.setOrigin(this._getConnectedElement()),i.updateSize({width:this._getPanelWidth()})):(this._portal=new Cn(this.autocomplete.template,this._viewContainerRef,{id:this._formField?.getLabelId()}),i=Nr(this._injector,this._getOverlayConfig()),this._overlayRef=i,this._viewportSubscription=this._viewportRuler.change().subscribe(()=>{this.panelOpen&&i&&i.updateSize({width:this._getPanelWidth()})}),this._handsetLandscapeSubscription=this._breakpointObserver.observe(F0.HandsetLandscape).subscribe(o=>{o.matches?this._positionStrategy.withFlexibleDimensions(!0).withGrowAfterOpen(!0).withViewportMargin(8):this._positionStrategy.withFlexibleDimensions(!1).withGrowAfterOpen(!1).withViewportMargin(0)})),i&&!i.hasAttached()&&(i.attach(this._portal),this._valueOnAttach=e,this._valueOnLastKeydown=null,this._closingActionsSubscription=this._subscribeToClosingActions());let r=this.panelOpen;this.autocomplete._isOpen=this._overlayAttached=!0,this.autocomplete._latestOpeningTrigger=this,this.autocomplete._setColor(this._formField?.color),this._updatePanelState(),this._applyModalPanelOwnership(),this.panelOpen&&r!==this.panelOpen&&this._emitOpened()}_handlePanelKeydown=e=>{(e.keyCode===27&&!Ft(e)||e.keyCode===38&&Ft(e,"altKey"))&&(this._pendingAutoselectedOption&&(this._updateNativeInputValue(this._valueBeforeAutoSelection??""),this._pendingAutoselectedOption=null),this._closeKeyEventStream.next(),this._resetActiveItem(),e.stopPropagation(),e.preventDefault())};_updatePanelState(){if(this.autocomplete._setVisibility(),this.panelOpen){let e=this._overlayRef;this._keydownSubscription||(this._keydownSubscription=e.keydownEvents().subscribe(this._handlePanelKeydown)),this._outsideClickSubscription||(this._outsideClickSubscription=e.outsidePointerEvents().subscribe())}else this._keydownSubscription?.unsubscribe(),this._outsideClickSubscription?.unsubscribe(),this._keydownSubscription=this._outsideClickSubscription=null}_getOverlayConfig(){return new Fr({positionStrategy:this._getOverlayPosition(),scrollStrategy:this._scrollStrategy(),width:this._getPanelWidth(),direction:this._dir??void 0,hasBackdrop:this._defaults?.hasBackdrop,backdropClass:this._defaults?.backdropClass||"cdk-overlay-transparent-backdrop",panelClass:this._overlayPanelClass,disableAnimations:this._animationsDisabled})}_getOverlayPosition(){let e=Fa(this._injector,this._getConnectedElement()).withFlexibleDimensions(!1).withPush(!1);return this._setStrategyPositions(e),this._positionStrategy=e,e}_setStrategyPositions(e){let i=[{originX:"start",originY:"bottom",overlayX:"start",overlayY:"top"},{originX:"end",originY:"bottom",overlayX:"end",overlayY:"top"}],r=this._aboveClass,o=[{originX:"start",originY:"top",overlayX:"start",overlayY:"bottom",panelClass:r},{originX:"end",originY:"top",overlayX:"end",overlayY:"bottom",panelClass:r}],a;this.position==="above"?a=o:this.position==="below"?a=i:a=[...i,...o],e.withPositions(a)}_getConnectedElement(){return this.connectedTo?this.connectedTo.elementRef:this._formField?this._formField.getConnectedOverlayOrigin():this._element}_getPanelWidth(){return this.autocomplete.panelWidth||this._getHostWidth()}_getHostWidth(){return this._getConnectedElement().nativeElement.getBoundingClientRect().width}_resetActiveItem(){let e=this.autocomplete;if(e.autoActiveFirstOption){let i=-1;for(let r=0;r .cdk-overlay-container [aria-modal="true"]');if(!e)return;let i=this.autocomplete.id;this._trackedModal&&sc(this._trackedModal,"aria-owns",i),Zm(e,"aria-owns",i),this._trackedModal=e}_clearFromModal(){if(this._trackedModal){let e=this.autocomplete.id;sc(this._trackedModal,"aria-owns",e),this._trackedModal=null}}static \u0275fac=function(i){return new(i||t)};static \u0275dir=F({type:t,selectors:[["input","matAutocomplete",""],["textarea","matAutocomplete",""]],hostAttrs:[1,"mat-mdc-autocomplete-trigger"],hostVars:7,hostBindings:function(i,r){i&1&&S("focusin",function(){return r._handleFocus()})("blur",function(){return r._onTouched()})("input",function(a){return r._handleInput(a)})("keydown",function(a){return r._handleKeydown(a)})("click",function(){return r._handleClick()}),i&2&&X("autocomplete",r.autocompleteAttribute)("role",r.autocompleteDisabled?null:"combobox")("aria-autocomplete",r.autocompleteDisabled?null:"list")("aria-activedescendant",r.panelOpen&&r.activeOption?r.activeOption.id:null)("aria-expanded",r.autocompleteDisabled?null:r.panelOpen.toString())("aria-controls",r.autocompleteDisabled||!r.panelOpen||r.autocomplete==null?null:r.autocomplete.id)("aria-haspopup",r.autocompleteDisabled?null:"listbox")},inputs:{autocomplete:[0,"matAutocomplete","autocomplete"],position:[0,"matAutocompletePosition","position"],connectedTo:[0,"matAutocompleteConnectedTo","connectedTo"],autocompleteAttribute:[0,"autocomplete","autocompleteAttribute"],autocompleteDisabled:[2,"matAutocompleteDisabled","autocompleteDisabled",V]},exportAs:["matAutocompleteTrigger"],features:[Ce([j_e]),Ae]})}return t})(),vw=(()=>{class t{static \u0275fac=function(i){return new(i||t)};static \u0275mod=ee({type:t});static \u0275inj=J({providers:[z_e],imports:[er,rh,we,vr,rh,we]})}return t})();var CU=()=>["HRAdmin","Manager"],U_e=()=>[5,10,25,50,100],$_e=()=>["HRAdmin"];function W_e(t,n){if(t&1){let e=Y();h(0,"button",22),S("click",function(){I(e);let r=C();return A(r.createEmployee())}),h(1,"mat-icon"),_(2,"add"),p(),_(3," Add Employee "),p()}}function G_e(t,n){if(t&1&&(h(0,"mat-option",23),_(1),p()),t&2){let e=n.$implicit;y("value",e),g(),ve(" ",e," ")}}function q_e(t,n){if(t&1&&(h(0,"mat-option",23),_(1),p()),t&2){let e=n.$implicit;y("value",e),g(),ve(" ",e," ")}}function Y_e(t,n){if(t&1&&(h(0,"mat-option",23),_(1),p()),t&2){let e=n.$implicit;y("value",e),g(),ve(" ",e," ")}}function Q_e(t,n){if(t&1&&(h(0,"mat-option",23),_(1),p()),t&2){let e=n.$implicit;y("value",e),g(),ve(" ",e," ")}}function K_e(t,n){if(t&1&&(h(0,"mat-option",23),_(1),p()),t&2){let e=n.$implicit;y("value",e),g(),ve(" ",e," ")}}function Z_e(t,n){t&1&&(h(0,"div",24),k(1,"mat-spinner"),p())}function X_e(t,n){t&1&&(h(0,"th",37),_(1,"Employee #"),p())}function J_e(t,n){if(t&1&&(h(0,"td",38),_(1),p()),t&2){let e=n.$implicit;g(),H(e.employeeNumber)}}function ebe(t,n){t&1&&(h(0,"th",37),_(1,"Name"),p())}function tbe(t,n){if(t&1&&(h(0,"td",38),_(1),p()),t&2){let e=n.$implicit,i=C(2);g(),H(i.getFullName(e))}}function ibe(t,n){t&1&&(h(0,"th",37),_(1,"Email"),p())}function nbe(t,n){if(t&1&&(h(0,"td",38),_(1),p()),t&2){let e=n.$implicit;g(),H(e.email)}}function rbe(t,n){t&1&&(h(0,"th",37),_(1,"Phone"),p())}function obe(t,n){if(t&1&&(h(0,"td",38),_(1),p()),t&2){let e=n.$implicit;g(),H(e.phoneNumber||e.phone||"-")}}function abe(t,n){t&1&&(h(0,"th",37),_(1,"Position"),p())}function sbe(t,n){if(t&1&&(h(0,"td",38),_(1),p()),t&2){let e=n.$implicit;g(),H(e.positionTitle||(e.position==null?null:e.position.positionTitle)||"-")}}function lbe(t,n){t&1&&(h(0,"th",37),_(1,"Actions"),p())}function cbe(t,n){if(t&1){let e=Y();h(0,"button",43),S("click",function(){I(e);let r=C().$implicit,o=C(2);return A(o.editEmployee(r))}),h(1,"mat-icon"),_(2,"edit"),p()()}}function dbe(t,n){if(t&1){let e=Y();h(0,"button",44),S("click",function(){I(e);let r=C().$implicit,o=C(2);return A(o.deleteEmployee(r))}),h(1,"mat-icon"),_(2,"delete"),p()()}}function ube(t,n){if(t&1){let e=Y();h(0,"td",38)(1,"div",39)(2,"button",40),S("click",function(){let r=I(e).$implicit,o=C(2);return A(o.viewEmployee(r))}),h(3,"mat-icon"),_(4,"visibility"),p()(),R(5,cbe,3,0,"button",41)(6,dbe,3,0,"button",42),p()()}t&2&&(g(5),y("appHasRole",at(2,CU)),g(),y("appHasRole",at(3,$_e)))}function mbe(t,n){t&1&&k(0,"tr",45)}function hbe(t,n){t&1&&k(0,"tr",46)}function pbe(t,n){if(t&1&&(h(0,"tr",47)(1,"td",48)(2,"div",49)(3,"mat-icon"),_(4,"info"),p(),h(5,"p"),_(6,"No employees found"),p()()()()),t&2){let e=C(2);g(),X("colspan",e.displayedColumns.length)}}function fbe(t,n){if(t&1&&(h(0,"table",25),jt(1,26),R(2,X_e,2,0,"th",27)(3,J_e,2,1,"td",28),Lt(),jt(4,29),R(5,ebe,2,0,"th",27)(6,tbe,2,1,"td",28),Lt(),jt(7,30),R(8,ibe,2,0,"th",27)(9,nbe,2,1,"td",28),Lt(),jt(10,31),R(11,rbe,2,0,"th",27)(12,obe,2,1,"td",28),Lt(),jt(13,32),R(14,abe,2,0,"th",27)(15,sbe,2,1,"td",28),Lt(),jt(16,33),R(17,lbe,2,0,"th",27)(18,ube,7,4,"td",28),Lt(),R(19,mbe,1,0,"tr",34)(20,hbe,1,0,"tr",35)(21,pbe,7,1,"tr",36),p()),t&2){let e=C();y("dataSource",e.employees),g(19),y("matHeaderRowDef",e.displayedColumns),g(),y("matRowDefColumns",e.displayedColumns),g(),y("ngIf",e.employees.length===0)}}var wU=(()=>{let n=class n{constructor(){this.employeeService=u(ap),this.authService=u(Tt),this.router=u(Re),this.fb=u(eo),this.snackBar=u(di),this.dialog=u(En),this.employees=[],this.loading=!1,this.totalCount=0,this.pageSize=10,this.pageNumber=1,this.destroy$=new z,this.displayedColumns=["employeeNumber","name","email","phone","positionTitle","actions"]}ngOnInit(){this.initSearchForm(),this.setupAutocomplete(),this.setupAutoSubmit(),this.loadEmployees()}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete()}initSearchForm(){this.searchForm=this.fb.group({FirstName:[""],LastName:[""],Email:[""],EmployeeNumber:[""],PositionTitle:[""]})}setupAutocomplete(){this.filteredEmployeeNumbers$=this.searchForm.get("EmployeeNumber").valueChanges.pipe(He(""),Rt(300),Sn(),$e(i=>this.getAutocompleteOptions("EmployeeNumber",i))),this.filteredFirstNames$=this.searchForm.get("FirstName").valueChanges.pipe(He(""),Rt(300),Sn(),$e(i=>this.getAutocompleteOptions("FirstName",i))),this.filteredLastNames$=this.searchForm.get("LastName").valueChanges.pipe(He(""),Rt(300),Sn(),$e(i=>this.getAutocompleteOptions("LastName",i))),this.filteredEmails$=this.searchForm.get("Email").valueChanges.pipe(He(""),Rt(300),Sn(),$e(i=>this.getAutocompleteOptions("Email",i))),this.filteredPositionTitles$=this.searchForm.get("PositionTitle").valueChanges.pipe(He(""),Rt(300),Sn(),$e(i=>this.getAutocompleteOptions("PositionTitle",i)))}setupAutoSubmit(){this.searchForm.valueChanges.pipe(Rt(500),Sn((i,r)=>JSON.stringify(i)===JSON.stringify(r)),Te(this.destroy$)).subscribe(()=>{this.pageNumber=1,this.loadEmployees()})}getAutocompleteOptions(i,r){if(!r||r.length<2)return Q([]);let o={PageNumber:1,PageSize:10,[i]:r};return this.employeeService.getAllPaged(o).pipe(se(a=>{let s={EmployeeNumber:c=>c.employeeNumber,FirstName:c=>c.firstName,LastName:c=>c.lastName,Email:c=>c.email,PositionTitle:c=>c.positionTitle||""};return a.value.map(c=>s[i](c)).filter((c,d,m)=>c&&m.indexOf(c)===d)}),fi(()=>Q([])))}loadEmployees(){this.loading=!0;let i=M({PageNumber:this.pageNumber,PageSize:this.pageSize},this.searchForm.value);Object.keys(i).forEach(r=>{(i[r]===""||i[r]===null||i[r]===void 0)&&delete i[r]}),this.employeeService.getAllPaged(i).subscribe({next:r=>{this.employees=r.value,this.totalCount=r.recordsTotal,this.loading=!1},error:r=>{console.error("Error loading employees:",r),this.loading=!1}})}onClearSearch(){this.searchForm.reset(),this.pageNumber=1,this.paginator&&(this.paginator.pageIndex=0),this.loadEmployees()}onPageChange(i){this.pageSize=i.pageSize,this.pageNumber=i.pageIndex+1,this.loadEmployees()}getFullName(i){return[i.prefix,i.firstName,i.middleName,i.lastName].filter(Boolean).join(" ")}viewEmployee(i){this.router.navigate(["/employees",i.id])}editEmployee(i){this.router.navigate(["/employees","edit",i.id])}deleteEmployee(i){let r=this.getFullName(i);this.dialog.open(Er,{width:"400px",data:{title:"Delete Employee",message:`Are you sure you want to delete ${r}? This action cannot be undone.`,confirmText:"Delete",cancelText:"Cancel"}}).afterClosed().subscribe(a=>{a&&this.employeeService.delete(i.id).subscribe({next:()=>{this.snackBar.open(`${r} has been deleted.`,"Close",{duration:3e3,horizontalPosition:"end",verticalPosition:"top"}),this.loadEmployees()},error:s=>{console.error("Error deleting employee:",s),this.snackBar.open("Failed to delete employee. Please try again.","Close",{duration:4e3,horizontalPosition:"end",verticalPosition:"top"})}})})}createEmployee(){this.router.navigate(["/employees","create"])}canEdit(){return this.authService.isHRAdmin()||this.authService.isManager()}canDelete(){return this.authService.isHRAdmin()}canCreate(){return this.authService.isHRAdmin()||this.authService.isManager()}};n.\u0275fac=function(r){return new(r||n)},n.\u0275cmp=E({type:n,selectors:[["app-employee-list"]],viewQuery:function(r,o){if(r&1&&ie(ir,5),r&2){let a;B(a=j())&&(o.paginator=a.first)}},decls:59,vars:30,consts:[["autoEmployeeNumber","matAutocomplete"],["autoFirstName","matAutocomplete"],["autoLastName","matAutocomplete"],["autoEmail","matAutocomplete"],["autoPositionTitle","matAutocomplete"],[1,"flex-spacer"],["mat-raised-button","","color","primary",3,"click",4,"appHasRole"],[1,"search-form",3,"formGroup"],[1,"search-row"],["appearance","outline"],["matInput","","formControlName","EmployeeNumber",3,"matAutocomplete"],[3,"value",4,"ngFor","ngForOf"],["matInput","","formControlName","FirstName",3,"matAutocomplete"],["matInput","","formControlName","LastName",3,"matAutocomplete"],["matInput","","formControlName","Email",3,"matAutocomplete"],["matInput","","formControlName","PositionTitle",3,"matAutocomplete"],[1,"search-buttons"],["mat-raised-button","","color","accent","type","button",3,"click"],[1,"table-container"],["class","loading-spinner",4,"ngIf"],["mat-table","","class","employee-table",3,"dataSource",4,"ngIf"],["showFirstLastButtons","",3,"page","length","pageSize","pageSizeOptions","pageIndex"],["mat-raised-button","","color","primary",3,"click"],[3,"value"],[1,"loading-spinner"],["mat-table","",1,"employee-table",3,"dataSource"],["matColumnDef","employeeNumber"],["mat-header-cell","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","name"],["matColumnDef","email"],["matColumnDef","phone"],["matColumnDef","positionTitle"],["matColumnDef","actions"],["mat-header-row","",4,"matHeaderRowDef"],["mat-row","",4,"matRowDef","matRowDefColumns"],["class","mat-row",4,"ngIf"],["mat-header-cell",""],["mat-cell",""],[1,"action-buttons"],["mat-icon-button","","color","primary","matTooltip","View Details",3,"click"],["mat-icon-button","","color","accent","matTooltip","Edit Employee",3,"click",4,"appHasRole"],["mat-icon-button","","color","warn","matTooltip","Delete Employee",3,"click",4,"appHasRole"],["mat-icon-button","","color","accent","matTooltip","Edit Employee",3,"click"],["mat-icon-button","","color","warn","matTooltip","Delete Employee",3,"click"],["mat-header-row",""],["mat-row",""],[1,"mat-row"],[1,"mat-cell"],[1,"no-data"]],template:function(r,o){if(r&1){let a=Y();k(0,"page-header"),h(1,"mat-card")(2,"mat-card-header")(3,"mat-card-title"),_(4,"Employee Directory"),p(),k(5,"div",5),R(6,W_e,4,0,"button",6),p(),h(7,"mat-card-content")(8,"form",7)(9,"div",8)(10,"mat-form-field",9)(11,"mat-label"),_(12,"Employee Number"),p(),k(13,"input",10),h(14,"mat-autocomplete",null,0),R(16,G_e,2,2,"mat-option",11),me(17,"async"),p()(),h(18,"mat-form-field",9)(19,"mat-label"),_(20,"First Name"),p(),k(21,"input",12),h(22,"mat-autocomplete",null,1),R(24,q_e,2,2,"mat-option",11),me(25,"async"),p()(),h(26,"mat-form-field",9)(27,"mat-label"),_(28,"Last Name"),p(),k(29,"input",13),h(30,"mat-autocomplete",null,2),R(32,Y_e,2,2,"mat-option",11),me(33,"async"),p()(),h(34,"mat-form-field",9)(35,"mat-label"),_(36,"Email"),p(),k(37,"input",14),h(38,"mat-autocomplete",null,3),R(40,Q_e,2,2,"mat-option",11),me(41,"async"),p()(),h(42,"mat-form-field",9)(43,"mat-label"),_(44,"Position Title"),p(),k(45,"input",15),h(46,"mat-autocomplete",null,4),R(48,K_e,2,2,"mat-option",11),me(49,"async"),p()(),h(50,"div",16)(51,"button",17),S("click",function(){return I(a),A(o.onClearSearch())}),h(52,"mat-icon"),_(53,"clear"),p(),_(54," Clear Filters "),p()()()(),h(55,"div",18),R(56,Z_e,2,0,"div",19)(57,fbe,22,4,"table",20),p(),h(58,"mat-paginator",21),S("page",function(l){return I(a),A(o.onPageChange(l))}),p()()()}if(r&2){let a=Se(15),s=Se(23),l=Se(31),c=Se(39),d=Se(47);g(6),y("appHasRole",at(28,CU)),g(2),y("formGroup",o.searchForm),g(5),y("matAutocomplete",a),g(3),y("ngForOf",Oe(17,18,o.filteredEmployeeNumbers$)),g(5),y("matAutocomplete",s),g(3),y("ngForOf",Oe(25,20,o.filteredFirstNames$)),g(5),y("matAutocomplete",l),g(3),y("ngForOf",Oe(33,22,o.filteredLastNames$)),g(5),y("matAutocomplete",c),g(3),y("ngForOf",Oe(41,24,o.filteredEmails$)),g(5),y("matAutocomplete",d),g(3),y("ngForOf",Oe(49,26,o.filteredPositionTitles$)),g(8),y("ngIf",o.loading),g(),y("ngIf",!o.loading),g(),y("length",o.totalCount)("pageSize",o.pageSize)("pageSizeOptions",at(29,U_e))("pageIndex",o.pageNumber-1)}},dependencies:[gt,qr,li,zn,Jr,Qi,ei,Xr,Ki,Lr,ze,kt,ti,$t,zt,Ut,Jt,Xt,ot,mt,rr,hn,Oi,sn,$i,Zc,Hc,Uc,qc,$c,zc,Yc,Wc,Gc,Qc,Kc,_c,ir,Si,ki,Br,Eo,vw,bw,xn,y_,pi,Mn,ni,Un,rn],styles:["mat-card[_ngcontent-%COMP%]{margin:16px}mat-card-header[_ngcontent-%COMP%]{display:flex;align-items:center;margin-bottom:16px;padding:16px;border-bottom:1px solid rgba(0,0,0,.12)}mat-card-header[_ngcontent-%COMP%] mat-card-title[_ngcontent-%COMP%]{font-size:20px;font-weight:500;margin:0}mat-card-header[_ngcontent-%COMP%] .flex-spacer[_ngcontent-%COMP%]{flex:1 1 auto}mat-card-header[_ngcontent-%COMP%] button[_ngcontent-%COMP%] mat-icon[_ngcontent-%COMP%]{margin-right:4px}mat-card-content[_ngcontent-%COMP%]{padding:0}.search-form[_ngcontent-%COMP%]{padding:16px;background-color:#f5f5f5;margin-bottom:0}.search-form[_ngcontent-%COMP%] .search-row[_ngcontent-%COMP%]{display:grid;grid-template-columns:repeat(auto-fit,minmax(180px,1fr));gap:16px;align-items:start}.search-form[_ngcontent-%COMP%] .search-row[_ngcontent-%COMP%] mat-form-field[_ngcontent-%COMP%]{width:100%}.search-form[_ngcontent-%COMP%] .search-row[_ngcontent-%COMP%] .search-buttons[_ngcontent-%COMP%]{display:flex;gap:8px;align-items:center}.search-form[_ngcontent-%COMP%] .search-row[_ngcontent-%COMP%] .search-buttons[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{white-space:nowrap}.search-form[_ngcontent-%COMP%] .search-row[_ngcontent-%COMP%] .search-buttons[_ngcontent-%COMP%] button[_ngcontent-%COMP%] mat-icon[_ngcontent-%COMP%]{margin-right:4px}.table-container[_ngcontent-%COMP%]{position:relative;min-height:300px;overflow-x:auto}.loading-spinner[_ngcontent-%COMP%]{display:flex;justify-content:center;align-items:center;min-height:300px}.employee-table[_ngcontent-%COMP%]{width:100%}.employee-table[_ngcontent-%COMP%] th[_ngcontent-%COMP%]{font-weight:600;font-size:14px;color:#000000de}.employee-table[_ngcontent-%COMP%] td[_ngcontent-%COMP%]{font-size:14px;color:#000000de}.employee-table[_ngcontent-%COMP%] .mat-column-employeeNumber[_ngcontent-%COMP%]{width:120px}.employee-table[_ngcontent-%COMP%] .mat-column-name[_ngcontent-%COMP%], .employee-table[_ngcontent-%COMP%] .mat-column-email[_ngcontent-%COMP%]{min-width:200px}.employee-table[_ngcontent-%COMP%] .mat-column-phone[_ngcontent-%COMP%]{width:150px}.employee-table[_ngcontent-%COMP%] .mat-column-positionTitle[_ngcontent-%COMP%]{min-width:200px}.employee-table[_ngcontent-%COMP%] .mat-column-actions[_ngcontent-%COMP%]{width:120px;text-align:right}.employee-table[_ngcontent-%COMP%] .mat-column-actions[_ngcontent-%COMP%] .action-buttons[_ngcontent-%COMP%]{display:flex;justify-content:flex-end;align-items:center;gap:4px}.no-data[_ngcontent-%COMP%]{display:flex;flex-direction:column;align-items:center;justify-content:center;padding:48px 16px;color:#0000008a}.no-data[_ngcontent-%COMP%] mat-icon[_ngcontent-%COMP%]{font-size:48px;width:48px;height:48px;margin-bottom:16px}.no-data[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{margin:0;font-size:16px}mat-paginator[_ngcontent-%COMP%]{border-top:1px solid rgba(0,0,0,.12)}"]});let t=n;return t})();var Ou=(function(t){return t[t.Male=0]="Male",t[t.Female=1]="Female",t})(Ou||{});var gbe=()=>["HRAdmin","Manager"],_be=()=>["HRAdmin"];function bbe(t,n){t&1&&(h(0,"div",2),k(1,"mat-spinner"),p())}function vbe(t,n){if(t&1){let e=Y();h(0,"button",14),S("click",function(){I(e);let r=C(2);return A(r.editEmployee())}),h(1,"mat-icon"),_(2,"edit"),p(),_(3," Edit "),p()}}function ybe(t,n){if(t&1){let e=Y();h(0,"button",15),S("click",function(){I(e);let r=C(2);return A(r.deleteEmployee())}),h(1,"mat-icon"),_(2,"delete"),p(),_(3," Delete "),p()}}function xbe(t,n){if(t&1&&(h(0,"mat-list-item")(1,"span",10),_(2,"Address"),p(),h(3,"span",11),_(4),p()()),t&2){let e=C(2);g(4),H(e.employee.address)}}function Cbe(t,n){if(t&1&&(h(0,"mat-list-item")(1,"span",10),_(2,"Hire Date"),p(),h(3,"span",11),_(4),me(5,"date"),p()()),t&2){let e=C(2);g(4),H(Oe(5,1,e.employee.hireDate))}}function wbe(t,n){if(t&1&&(h(0,"mat-list-item")(1,"span",10),_(2,"Salary Range"),p(),h(3,"span",11),_(4),me(5,"number"),me(6,"number"),p()()),t&2){let e=C(2);g(4),Cm(" ",e.employee.salaryRange.name," ($",Oe(5,3,e.employee.salaryRange.minSalary)," - $",Oe(6,5,e.employee.salaryRange.maxSalary),") ")}}function Dbe(t,n){if(t&1&&(h(0,"mat-list-item")(1,"span",10),_(2,"Created"),p(),h(3,"span",11),_(4),me(5,"date"),p()()),t&2){let e=C(3);g(4),H(Ni(5,1,e.employee.createdAt,"medium"))}}function Ebe(t,n){if(t&1&&(h(0,"mat-list-item")(1,"span",10),_(2,"Last Modified"),p(),h(3,"span",11),_(4),me(5,"date"),p()()),t&2){let e=C(3);g(4),H(Ni(5,1,e.employee.lastModifiedAt,"medium"))}}function Mbe(t,n){if(t&1&&(h(0,"div",9)(1,"h3"),_(2,"Audit Information"),p(),k(3,"mat-divider"),h(4,"mat-list"),R(5,Dbe,6,4,"mat-list-item",1)(6,Ebe,6,4,"mat-list-item",1),p()()),t&2){let e=C(2);g(5),y("ngIf",e.employee.createdAt),g(),y("ngIf",e.employee.lastModifiedAt)}}function kbe(t,n){if(t&1){let e=Y();h(0,"mat-card")(1,"mat-card-header")(2,"mat-card-title"),_(3),p(),k(4,"div",3),h(5,"div",4)(6,"button",5),S("click",function(){I(e);let r=C();return A(r.goBack())}),h(7,"mat-icon"),_(8,"arrow_back"),p(),_(9," Back to List "),p(),R(10,vbe,4,0,"button",6)(11,ybe,4,0,"button",7),p()(),h(12,"mat-card-content")(13,"div",8)(14,"div",9)(15,"h3"),_(16,"Personal Information"),p(),k(17,"mat-divider"),h(18,"mat-list")(19,"mat-list-item")(20,"span",10),_(21,"Employee Number"),p(),h(22,"span",11),_(23),p()(),h(24,"mat-list-item")(25,"span",10),_(26,"Full Name"),p(),h(27,"span",11),_(28),p()(),h(29,"mat-list-item")(30,"span",10),_(31,"Date of Birth"),p(),h(32,"span",11),_(33),me(34,"date"),p()(),h(35,"mat-list-item")(36,"span",10),_(37,"Gender"),p(),h(38,"span",11),_(39),p()()()(),h(40,"div",9)(41,"h3"),_(42,"Contact Information"),p(),k(43,"mat-divider"),h(44,"mat-list")(45,"mat-list-item")(46,"span",10),_(47,"Email"),p(),h(48,"span",11)(49,"a",12),_(50),p()()(),h(51,"mat-list-item")(52,"span",10),_(53,"Phone Number"),p(),h(54,"span",11)(55,"a",12),_(56),p()()(),R(57,xbe,5,1,"mat-list-item",1),p()(),h(58,"div",9)(59,"h3"),_(60,"Employment Information"),p(),k(61,"mat-divider"),h(62,"mat-list"),R(63,Cbe,6,3,"mat-list-item",1),h(64,"mat-list-item")(65,"span",10),_(66,"Salary"),p(),h(67,"span",11),_(68),me(69,"currency"),p()(),h(70,"mat-list-item")(71,"span",10),_(72,"Department"),p(),h(73,"span",11),_(74),p()(),h(75,"mat-list-item")(76,"span",10),_(77,"Position"),p(),h(78,"span",11),_(79),p()(),R(80,wbe,7,7,"mat-list-item",1),p()(),R(81,Mbe,7,2,"div",13),p()()()}if(t&2){let e=C();g(3),H(e.getFullName()),g(7),y("appHasRole",at(22,gbe)),g(),y("appHasRole",at(23,_be)),g(12),H(e.employee.employeeNumber),g(5),H(e.getFullName()),g(5),H(Oe(34,18,e.employee.dateOfBirth||e.employee.birthday)),g(6),H(e.getGenderLabel(e.employee.gender)),g(10),y("href","mailto:"+e.employee.email,$r),g(),H(e.employee.email),g(5),y("href","tel:"+(e.employee.phoneNumber||e.employee.phone),$r),g(),H(e.employee.phoneNumber||e.employee.phone),g(),y("ngIf",e.employee.address),g(6),y("ngIf",e.employee.hireDate),g(5),H(Oe(69,20,e.employee.salary)),g(6),H(e.employee.departmentName||(e.employee.department==null?null:e.employee.department.name)||"N/A"),g(5),H(e.employee.positionTitle||(e.employee.position==null?null:e.employee.position.positionTitle)||"N/A"),g(),y("ngIf",e.employee.salaryRange),g(),y("ngIf",e.employee.createdAt||e.employee.lastModifiedAt)}}function Sbe(t,n){if(t&1){let e=Y();h(0,"mat-card")(1,"mat-card-content")(2,"div",16)(3,"mat-icon"),_(4,"error"),p(),h(5,"p"),_(6,"Employee not found"),p(),h(7,"button",17),S("click",function(){I(e);let r=C();return A(r.goBack())}),_(8," Go Back "),p()()()()}}var DU=(()=>{let n=class n{constructor(){this.employeeService=u(ap),this.authService=u(Tt),this.router=u(Re),this.route=u(wi),this.snackBar=u(di),this.dialog=u(En),this.loading=!1}ngOnInit(){let i=this.route.snapshot.paramMap.get("id");i&&this.loadEmployee(i)}loadEmployee(i){this.loading=!0,this.employeeService.getById(i).subscribe({next:r=>{this.employee=r,this.loading=!1},error:r=>{console.error("Error loading employee:",r),this.loading=!1,this.router.navigate(["/employees"])}})}getFullName(){return this.employee?[this.employee.prefix,this.employee.firstName,this.employee.middleName,this.employee.lastName,this.employee.suffix].filter(Boolean).join(" "):""}getGenderLabel(i){return i===Ou.Male?"Male":"Female"}editEmployee(){this.employee&&this.router.navigate(["/employees","edit",this.employee.id])}deleteEmployee(){if(!this.employee)return;let i=this.getFullName();this.dialog.open(Er,{width:"400px",data:{title:"Delete Employee",message:`Are you sure you want to delete ${i}? This action cannot be undone.`,confirmText:"Delete",cancelText:"Cancel"}}).afterClosed().subscribe(o=>{o&&this.employeeService.delete(this.employee.id).subscribe({next:()=>{let a=this.snackBar.open(`${i} has been deleted.`,"Close",{duration:3e3,horizontalPosition:"end",verticalPosition:"top"});a.afterDismissed().subscribe(()=>this.router.navigate(["/employees"])),a.onAction().subscribe(()=>this.router.navigate(["/employees"]))},error:a=>{console.error("Error deleting employee:",a),this.snackBar.open("Failed to delete employee. Please try again.","Close",{duration:4e3,horizontalPosition:"end",verticalPosition:"top"})}})})}goBack(){this.router.navigate(["/employees"])}canEdit(){return this.authService.isHRAdmin()||this.authService.isManager()}canDelete(){return this.authService.isHRAdmin()}};n.\u0275fac=function(r){return new(r||n)},n.\u0275cmp=E({type:n,selectors:[["app-employee-detail"]],decls:4,vars:3,consts:[["class","loading-spinner",4,"ngIf"],[4,"ngIf"],[1,"loading-spinner"],[1,"flex-spacer"],[1,"header-actions"],["mat-stroked-button","",3,"click"],["mat-raised-button","","color","accent",3,"click",4,"appHasRole"],["mat-raised-button","","color","warn",3,"click",4,"appHasRole"],[1,"detail-container"],[1,"detail-section"],["matListItemTitle",""],["matListItemLine",""],[3,"href"],["class","detail-section",4,"ngIf"],["mat-raised-button","","color","accent",3,"click"],["mat-raised-button","","color","warn",3,"click"],[1,"no-data"],["mat-raised-button","","color","primary",3,"click"]],template:function(r,o){r&1&&(k(0,"page-header"),R(1,bbe,2,0,"div",0)(2,kbe,82,24,"mat-card",1)(3,Sbe,9,0,"mat-card",1)),r&2&&(g(),y("ngIf",o.loading),g(),y("ngIf",!o.loading&&o.employee),g(),y("ngIf",!o.loading&&!o.employee))},dependencies:[gt,li,ze,kt,$t,zt,Ut,Jt,Xt,ot,mt,Si,ki,sa,Ha,ca,Fs,la,Tu,Dl,pi,Mn,ni,Un,ff,il,Sa],styles:[".loading-spinner[_ngcontent-%COMP%]{display:flex;justify-content:center;align-items:center;min-height:400px}mat-card[_ngcontent-%COMP%]{margin:16px;max-width:1200px}mat-card-header[_ngcontent-%COMP%]{display:flex;align-items:center;padding:16px;border-bottom:1px solid rgba(0,0,0,.12)}mat-card-header[_ngcontent-%COMP%] mat-card-title[_ngcontent-%COMP%]{font-size:24px;font-weight:500;margin:0}mat-card-header[_ngcontent-%COMP%] .flex-spacer[_ngcontent-%COMP%]{flex:1 1 auto}mat-card-header[_ngcontent-%COMP%] .header-actions[_ngcontent-%COMP%]{display:flex;gap:12px}mat-card-header[_ngcontent-%COMP%] .header-actions[_ngcontent-%COMP%] button[_ngcontent-%COMP%] mat-icon[_ngcontent-%COMP%]{margin-right:4px}mat-card-content[_ngcontent-%COMP%]{padding:24px}.detail-container[_ngcontent-%COMP%]{display:grid;grid-template-columns:1fr 1fr;gap:24px}@media (max-width: 768px){.detail-container[_ngcontent-%COMP%]{grid-template-columns:1fr}}.detail-section[_ngcontent-%COMP%] h3[_ngcontent-%COMP%]{font-size:16px;font-weight:500;margin:0 0 8px;color:#000000de}.detail-section[_ngcontent-%COMP%] mat-divider[_ngcontent-%COMP%]{margin-bottom:16px}.detail-section[_ngcontent-%COMP%] mat-list[_ngcontent-%COMP%]{padding:0}.detail-section[_ngcontent-%COMP%] mat-list-item[_ngcontent-%COMP%]{height:auto;min-height:48px;padding:8px 0}.detail-section[_ngcontent-%COMP%] mat-list-item[_ngcontent-%COMP%] span[matListItemTitle][_ngcontent-%COMP%]{font-weight:500;color:#0009;font-size:12px;text-transform:uppercase;letter-spacing:.5px}.detail-section[_ngcontent-%COMP%] mat-list-item[_ngcontent-%COMP%] span[matListItemLine][_ngcontent-%COMP%]{font-size:14px;color:#000000de;margin-top:4px;white-space:normal;word-break:break-word}.detail-section[_ngcontent-%COMP%] mat-list-item[_ngcontent-%COMP%] span[matListItemLine][_ngcontent-%COMP%] a[_ngcontent-%COMP%]{color:#1976d2;text-decoration:none}.detail-section[_ngcontent-%COMP%] mat-list-item[_ngcontent-%COMP%] span[matListItemLine][_ngcontent-%COMP%] a[_ngcontent-%COMP%]:hover{text-decoration:underline}.no-data[_ngcontent-%COMP%]{display:flex;flex-direction:column;align-items:center;justify-content:center;padding:48px 16px;color:#0000008a}.no-data[_ngcontent-%COMP%] mat-icon[_ngcontent-%COMP%]{font-size:64px;width:64px;height:64px;margin-bottom:16px;color:#f44336}.no-data[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{margin:0 0 24px;font-size:18px}"]});let t=n;return t})();var Ibe=["mat-calendar-body",""];function Abe(t,n){return this._trackRow(n)}var AU=(t,n)=>n.id;function Obe(t,n){if(t&1&&(h(0,"tr",0)(1,"td",3),_(2),p()()),t&2){let e=C();g(),Dt("padding-top",e._cellPadding)("padding-bottom",e._cellPadding),X("colspan",e.numCols),g(),ve(" ",e.label," ")}}function Rbe(t,n){if(t&1&&(h(0,"td",3),_(1),p()),t&2){let e=C(2);Dt("padding-top",e._cellPadding)("padding-bottom",e._cellPadding),X("colspan",e._firstRowOffset),g(),ve(" ",e._firstRowOffset>=e.labelMinRequiredCells?e.label:""," ")}}function Pbe(t,n){if(t&1){let e=Y();h(0,"td",6)(1,"button",7),S("click",function(r){let o=I(e).$implicit,a=C(2);return A(a._cellClicked(o,r))})("focus",function(r){let o=I(e).$implicit,a=C(2);return A(a._emitActiveDateChange(o,r))}),h(2,"span",8),_(3),p(),k(4,"span",9),p()()}if(t&2){let e=n.$implicit,i=n.$index,r=C().$index,o=C();Dt("width",o._cellWidth)("padding-top",o._cellPadding)("padding-bottom",o._cellPadding),X("data-mat-row",r)("data-mat-col",i),g(),G("mat-calendar-body-disabled",!e.enabled)("mat-calendar-body-active",o._isActiveCell(r,i))("mat-calendar-body-range-start",o._isRangeStart(e.compareValue))("mat-calendar-body-range-end",o._isRangeEnd(e.compareValue))("mat-calendar-body-in-range",o._isInRange(e.compareValue))("mat-calendar-body-comparison-bridge-start",o._isComparisonBridgeStart(e.compareValue,r,i))("mat-calendar-body-comparison-bridge-end",o._isComparisonBridgeEnd(e.compareValue,r,i))("mat-calendar-body-comparison-start",o._isComparisonStart(e.compareValue))("mat-calendar-body-comparison-end",o._isComparisonEnd(e.compareValue))("mat-calendar-body-in-comparison-range",o._isInComparisonRange(e.compareValue))("mat-calendar-body-preview-start",o._isPreviewStart(e.compareValue))("mat-calendar-body-preview-end",o._isPreviewEnd(e.compareValue))("mat-calendar-body-in-preview",o._isInPreview(e.compareValue)),y("ngClass",e.cssClasses)("tabindex",o._isActiveCell(r,i)?0:-1),X("aria-label",e.ariaLabel)("aria-disabled",!e.enabled||null)("aria-pressed",o._isSelected(e.compareValue))("aria-current",o.todayValue===e.compareValue?"date":null)("aria-describedby",o._getDescribedby(e.compareValue)),g(),G("mat-calendar-body-selected",o._isSelected(e.compareValue))("mat-calendar-body-comparison-identical",o._isComparisonIdentical(e.compareValue))("mat-calendar-body-today",o.todayValue===e.compareValue),g(),ve(" ",e.displayValue," ")}}function Fbe(t,n){if(t&1&&(h(0,"tr",1),N(1,Rbe,2,6,"td",4),xt(2,Pbe,5,48,"td",5,AU),p()),t&2){let e=n.$implicit,i=n.$index,r=C();g(),L(i===0&&r._firstRowOffset?1:-1),g(),Ct(e)}}function Nbe(t,n){if(t&1&&(h(0,"th",2)(1,"span",6),_(2),p(),h(3,"span",3),_(4),p()()),t&2){let e=n.$implicit;g(2),H(e.long),g(2),H(e.narrow)}}var Lbe=["*"];function Vbe(t,n){}function Bbe(t,n){if(t&1){let e=Y();h(0,"mat-month-view",4),Uo("activeDateChange",function(r){I(e);let o=C();return Ca(o.activeDate,r)||(o.activeDate=r),A(r)}),S("_userSelection",function(r){I(e);let o=C();return A(o._dateSelected(r))})("dragStarted",function(r){I(e);let o=C();return A(o._dragStarted(r))})("dragEnded",function(r){I(e);let o=C();return A(o._dragEnded(r))}),p()}if(t&2){let e=C();zo("activeDate",e.activeDate),y("selected",e.selected)("dateFilter",e.dateFilter)("maxDate",e.maxDate)("minDate",e.minDate)("dateClass",e.dateClass)("comparisonStart",e.comparisonStart)("comparisonEnd",e.comparisonEnd)("startDateAccessibleName",e.startDateAccessibleName)("endDateAccessibleName",e.endDateAccessibleName)("activeDrag",e._activeDrag)}}function jbe(t,n){if(t&1){let e=Y();h(0,"mat-year-view",5),Uo("activeDateChange",function(r){I(e);let o=C();return Ca(o.activeDate,r)||(o.activeDate=r),A(r)}),S("monthSelected",function(r){I(e);let o=C();return A(o._monthSelectedInYearView(r))})("selectedChange",function(r){I(e);let o=C();return A(o._goToDateInView(r,"month"))}),p()}if(t&2){let e=C();zo("activeDate",e.activeDate),y("selected",e.selected)("dateFilter",e.dateFilter)("maxDate",e.maxDate)("minDate",e.minDate)("dateClass",e.dateClass)}}function Hbe(t,n){if(t&1){let e=Y();h(0,"mat-multi-year-view",6),Uo("activeDateChange",function(r){I(e);let o=C();return Ca(o.activeDate,r)||(o.activeDate=r),A(r)}),S("yearSelected",function(r){I(e);let o=C();return A(o._yearSelectedInMultiYearView(r))})("selectedChange",function(r){I(e);let o=C();return A(o._goToDateInView(r,"year"))}),p()}if(t&2){let e=C();zo("activeDate",e.activeDate),y("selected",e.selected)("dateFilter",e.dateFilter)("maxDate",e.maxDate)("minDate",e.minDate)("dateClass",e.dateClass)}}function zbe(t,n){}var Ube=["button"],$be=[[["","matDatepickerToggleIcon",""]]],Wbe=["[matDatepickerToggleIcon]"];function Gbe(t,n){t&1&&(Gt(),h(0,"svg",2),k(1,"path",3),p())}var dp=(()=>{class t{changes=new z;calendarLabel="Calendar";openCalendarLabel="Open calendar";closeCalendarLabel="Close calendar";prevMonthLabel="Previous month";nextMonthLabel="Next month";prevYearLabel="Previous year";nextYearLabel="Next year";prevMultiYearLabel="Previous 24 years";nextMultiYearLabel="Next 24 years";switchToMonthViewLabel="Choose date";switchToMultiYearViewLabel="Choose month and year";startDateLabel="Start date";endDateLabel="End date";comparisonDateLabel="Comparison range";formatYearRange(e,i){return`${e} \u2013 ${i}`}formatYearRangeLabel(e,i){return`${e} to ${i}`}static \u0275fac=function(i){return new(i||t)};static \u0275prov=O({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),qbe=0,C_=class{value;displayValue;ariaLabel;enabled;cssClasses;compareValue;rawValue;id=qbe++;constructor(n,e,i,r,o={},a=n,s){this.value=n,this.displayValue=e,this.ariaLabel=i,this.enabled=r,this.cssClasses=o,this.compareValue=a,this.rawValue=s}},Ybe={passive:!1,capture:!0},xw={passive:!0,capture:!0},EU={passive:!0},cp=(()=>{class t{_elementRef=u(q);_ngZone=u(ae);_platform=u(qe);_intl=u(dp);_eventCleanups;_skipNextFocus;_focusActiveCellAfterViewChecked=!1;label;rows;todayValue;startValue;endValue;labelMinRequiredCells;numCols=7;activeCell=0;ngAfterViewChecked(){this._focusActiveCellAfterViewChecked&&(this._focusActiveCell(),this._focusActiveCellAfterViewChecked=!1)}isRange=!1;cellAspectRatio=1;comparisonStart;comparisonEnd;previewStart=null;previewEnd=null;startDateAccessibleName;endDateAccessibleName;selectedValueChange=new U;previewChange=new U;activeDateChange=new U;dragStarted=new U;dragEnded=new U;_firstRowOffset;_cellPadding;_cellWidth;_startDateLabelId;_endDateLabelId;_comparisonStartDateLabelId;_comparisonEndDateLabelId;_didDragSinceMouseDown=!1;_injector=u(de);comparisonDateAccessibleName=this._intl.comparisonDateLabel;_trackRow=e=>e;constructor(){let e=u(je),i=u(Ze);this._startDateLabelId=i.getId("mat-calendar-body-start-"),this._endDateLabelId=i.getId("mat-calendar-body-end-"),this._comparisonStartDateLabelId=i.getId("mat-calendar-body-comparison-start-"),this._comparisonEndDateLabelId=i.getId("mat-calendar-body-comparison-end-"),u(ut).load(Di),this._ngZone.runOutsideAngular(()=>{let r=this._elementRef.nativeElement,o=[e.listen(r,"touchmove",this._touchmoveHandler,Ybe),e.listen(r,"mouseenter",this._enterHandler,xw),e.listen(r,"focus",this._enterHandler,xw),e.listen(r,"mouseleave",this._leaveHandler,xw),e.listen(r,"blur",this._leaveHandler,xw),e.listen(r,"mousedown",this._mousedownHandler,EU),e.listen(r,"touchstart",this._mousedownHandler,EU)];this._platform.isBrowser&&o.push(e.listen("window","mouseup",this._mouseupHandler),e.listen("window","touchend",this._touchendHandler)),this._eventCleanups=o})}_cellClicked(e,i){this._didDragSinceMouseDown||e.enabled&&this.selectedValueChange.emit({value:e.value,event:i})}_emitActiveDateChange(e,i){e.enabled&&this.activeDateChange.emit({value:e.value,event:i})}_isSelected(e){return this.startValue===e||this.endValue===e}ngOnChanges(e){let i=e.numCols,{rows:r,numCols:o}=this;(e.rows||i)&&(this._firstRowOffset=r&&r.length&&r[0].length?o-r[0].length:0),(e.cellAspectRatio||i||!this._cellPadding)&&(this._cellPadding=`${50*this.cellAspectRatio/o}%`),(i||!this._cellWidth)&&(this._cellWidth=`${100/o}%`)}ngOnDestroy(){this._eventCleanups.forEach(e=>e())}_isActiveCell(e,i){let r=e*this.numCols+i;return e&&(r-=this._firstRowOffset),r==this.activeCell}_focusActiveCell(e=!0){pt(()=>{setTimeout(()=>{let i=this._elementRef.nativeElement.querySelector(".mat-calendar-body-active");i&&(e||(this._skipNextFocus=!0),i.focus())})},{injector:this._injector})}_scheduleFocusActiveCellAfterViewChecked(){this._focusActiveCellAfterViewChecked=!0}_isRangeStart(e){return JI(e,this.startValue,this.endValue)}_isRangeEnd(e){return eA(e,this.startValue,this.endValue)}_isInRange(e){return tA(e,this.startValue,this.endValue,this.isRange)}_isComparisonStart(e){return JI(e,this.comparisonStart,this.comparisonEnd)}_isComparisonBridgeStart(e,i,r){if(!this._isComparisonStart(e)||this._isRangeStart(e)||!this._isInRange(e))return!1;let o=this.rows[i][r-1];if(!o){let a=this.rows[i-1];o=a&&a[a.length-1]}return o&&!this._isRangeEnd(o.compareValue)}_isComparisonBridgeEnd(e,i,r){if(!this._isComparisonEnd(e)||this._isRangeEnd(e)||!this._isInRange(e))return!1;let o=this.rows[i][r+1];if(!o){let a=this.rows[i+1];o=a&&a[0]}return o&&!this._isRangeStart(o.compareValue)}_isComparisonEnd(e){return eA(e,this.comparisonStart,this.comparisonEnd)}_isInComparisonRange(e){return tA(e,this.comparisonStart,this.comparisonEnd,this.isRange)}_isComparisonIdentical(e){return this.comparisonStart===this.comparisonEnd&&e===this.comparisonStart}_isPreviewStart(e){return JI(e,this.previewStart,this.previewEnd)}_isPreviewEnd(e){return eA(e,this.previewStart,this.previewEnd)}_isInPreview(e){return tA(e,this.previewStart,this.previewEnd,this.isRange)}_getDescribedby(e){if(!this.isRange)return null;if(this.startValue===e&&this.endValue===e)return`${this._startDateLabelId} ${this._endDateLabelId}`;if(this.startValue===e)return this._startDateLabelId;if(this.endValue===e)return this._endDateLabelId;if(this.comparisonStart!==null&&this.comparisonEnd!==null){if(e===this.comparisonStart&&e===this.comparisonEnd)return`${this._comparisonStartDateLabelId} ${this._comparisonEndDateLabelId}`;if(e===this.comparisonStart)return this._comparisonStartDateLabelId;if(e===this.comparisonEnd)return this._comparisonEndDateLabelId}return null}_enterHandler=e=>{if(this._skipNextFocus&&e.type==="focus"){this._skipNextFocus=!1;return}if(e.target&&this.isRange){let i=this._getCellFromElement(e.target);i&&this._ngZone.run(()=>this.previewChange.emit({value:i.enabled?i:null,event:e}))}};_touchmoveHandler=e=>{if(!this.isRange)return;let i=MU(e),r=i?this._getCellFromElement(i):null;i!==e.target&&(this._didDragSinceMouseDown=!0),XI(e.target)&&e.preventDefault(),this._ngZone.run(()=>this.previewChange.emit({value:r?.enabled?r:null,event:e}))};_leaveHandler=e=>{this.previewEnd!==null&&this.isRange&&(e.type!=="blur"&&(this._didDragSinceMouseDown=!0),e.target&&this._getCellFromElement(e.target)&&!(e.relatedTarget&&this._getCellFromElement(e.relatedTarget))&&this._ngZone.run(()=>this.previewChange.emit({value:null,event:e})))};_mousedownHandler=e=>{if(!this.isRange)return;this._didDragSinceMouseDown=!1;let i=e.target&&this._getCellFromElement(e.target);!i||!this._isInRange(i.compareValue)||this._ngZone.run(()=>{this.dragStarted.emit({value:i.rawValue,event:e})})};_mouseupHandler=e=>{if(!this.isRange)return;let i=XI(e.target);if(!i){this._ngZone.run(()=>{this.dragEnded.emit({value:null,event:e})});return}i.closest(".mat-calendar-body")===this._elementRef.nativeElement&&this._ngZone.run(()=>{let r=this._getCellFromElement(i);this.dragEnded.emit({value:r?.rawValue??null,event:e})})};_touchendHandler=e=>{let i=MU(e);i&&this._mouseupHandler({target:i})};_getCellFromElement(e){let i=XI(e);if(i){let r=i.getAttribute("data-mat-row"),o=i.getAttribute("data-mat-col");if(r&&o)return this.rows[parseInt(r)]?.[parseInt(o)]||null}return null}static \u0275fac=function(i){return new(i||t)};static \u0275cmp=E({type:t,selectors:[["","mat-calendar-body",""]],hostAttrs:[1,"mat-calendar-body"],inputs:{label:"label",rows:"rows",todayValue:"todayValue",startValue:"startValue",endValue:"endValue",labelMinRequiredCells:"labelMinRequiredCells",numCols:"numCols",activeCell:"activeCell",isRange:"isRange",cellAspectRatio:"cellAspectRatio",comparisonStart:"comparisonStart",comparisonEnd:"comparisonEnd",previewStart:"previewStart",previewEnd:"previewEnd",startDateAccessibleName:"startDateAccessibleName",endDateAccessibleName:"endDateAccessibleName"},outputs:{selectedValueChange:"selectedValueChange",previewChange:"previewChange",activeDateChange:"activeDateChange",dragStarted:"dragStarted",dragEnded:"dragEnded"},exportAs:["matCalendarBody"],features:[Ae],attrs:Ibe,decls:11,vars:11,consts:[["aria-hidden","true"],["role","row"],[1,"mat-calendar-body-hidden-label",3,"id"],[1,"mat-calendar-body-label"],[1,"mat-calendar-body-label",3,"paddingTop","paddingBottom"],["role","gridcell",1,"mat-calendar-body-cell-container",3,"width","paddingTop","paddingBottom"],["role","gridcell",1,"mat-calendar-body-cell-container"],["type","button",1,"mat-calendar-body-cell",3,"click","focus","ngClass","tabindex"],[1,"mat-calendar-body-cell-content","mat-focus-indicator"],["aria-hidden","true",1,"mat-calendar-body-cell-preview"]],template:function(i,r){i&1&&(N(0,Obe,3,6,"tr",0),xt(1,Fbe,4,1,"tr",1,Abe,!0),h(3,"span",2),_(4),p(),h(5,"span",2),_(6),p(),h(7,"span",2),_(8),p(),h(9,"span",2),_(10),p()),i&2&&(L(r._firstRowOffset.mat-calendar-body-cell-content:not(.mat-calendar-body-selected):not(.mat-calendar-body-comparison-identical){color:var(--mat-datepicker-calendar-date-disabled-state-text-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent))}.mat-calendar-body-disabled>.mat-calendar-body-today:not(.mat-calendar-body-selected):not(.mat-calendar-body-comparison-identical){border-color:var(--mat-datepicker-calendar-date-today-disabled-state-outline-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent))}@media(forced-colors: active){.mat-calendar-body-disabled{opacity:.5}}.mat-calendar-body-cell-content{top:5%;left:5%;z-index:1;display:flex;align-items:center;justify-content:center;box-sizing:border-box;width:90%;height:90%;line-height:1;border-width:1px;border-style:solid;border-radius:999px;color:var(--mat-datepicker-calendar-date-text-color, var(--mat-sys-on-surface));border-color:var(--mat-datepicker-calendar-date-outline-color, transparent)}.mat-calendar-body-cell-content.mat-focus-indicator{position:absolute}@media(forced-colors: active){.mat-calendar-body-cell-content{border:none}}.cdk-keyboard-focused .mat-calendar-body-active>.mat-calendar-body-cell-content:not(.mat-calendar-body-selected):not(.mat-calendar-body-comparison-identical),.cdk-program-focused .mat-calendar-body-active>.mat-calendar-body-cell-content:not(.mat-calendar-body-selected):not(.mat-calendar-body-comparison-identical){background-color:var(--mat-datepicker-calendar-date-focus-state-background-color, color-mix(in srgb, var(--mat-sys-on-surface) calc(var(--mat-sys-focus-state-layer-opacity) * 100%), transparent))}@media(hover: hover){.mat-calendar-body-cell:not(.mat-calendar-body-disabled):hover>.mat-calendar-body-cell-content:not(.mat-calendar-body-selected):not(.mat-calendar-body-comparison-identical){background-color:var(--mat-datepicker-calendar-date-hover-state-background-color, color-mix(in srgb, var(--mat-sys-on-surface) calc(var(--mat-sys-hover-state-layer-opacity) * 100%), transparent))}}.mat-calendar-body-selected{background-color:var(--mat-datepicker-calendar-date-selected-state-background-color, var(--mat-sys-primary));color:var(--mat-datepicker-calendar-date-selected-state-text-color, var(--mat-sys-on-primary))}.mat-calendar-body-disabled>.mat-calendar-body-selected{background-color:var(--mat-datepicker-calendar-date-selected-disabled-state-background-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent))}.mat-calendar-body-selected.mat-calendar-body-today{box-shadow:inset 0 0 0 1px var(--mat-datepicker-calendar-date-today-selected-state-outline-color, var(--mat-sys-primary))}.mat-calendar-body-in-range::before{background:var(--mat-datepicker-calendar-date-in-range-state-background-color, var(--mat-sys-primary-container))}.mat-calendar-body-comparison-identical,.mat-calendar-body-in-comparison-range::before{background:var(--mat-datepicker-calendar-date-in-comparison-range-state-background-color, var(--mat-sys-tertiary-container))}.mat-calendar-body-comparison-identical,.mat-calendar-body-in-comparison-range::before{background:var(--mat-datepicker-calendar-date-in-comparison-range-state-background-color, var(--mat-sys-tertiary-container))}.mat-calendar-body-comparison-bridge-start::before,[dir=rtl] .mat-calendar-body-comparison-bridge-end::before{background:linear-gradient(to right, var(--mat-datepicker-calendar-date-in-range-state-background-color, var(--mat-sys-primary-container)) 50%, var(--mat-datepicker-calendar-date-in-comparison-range-state-background-color, var(--mat-sys-tertiary-container)) 50%)}.mat-calendar-body-comparison-bridge-end::before,[dir=rtl] .mat-calendar-body-comparison-bridge-start::before{background:linear-gradient(to left, var(--mat-datepicker-calendar-date-in-range-state-background-color, var(--mat-sys-primary-container)) 50%, var(--mat-datepicker-calendar-date-in-comparison-range-state-background-color, var(--mat-sys-tertiary-container)) 50%)}.mat-calendar-body-in-range>.mat-calendar-body-comparison-identical,.mat-calendar-body-in-comparison-range.mat-calendar-body-in-range::after{background:var(--mat-datepicker-calendar-date-in-overlap-range-state-background-color, var(--mat-sys-secondary-container))}.mat-calendar-body-comparison-identical.mat-calendar-body-selected,.mat-calendar-body-in-comparison-range>.mat-calendar-body-selected{background:var(--mat-datepicker-calendar-date-in-overlap-range-selected-state-background-color, var(--mat-sys-secondary))}@media(forced-colors: active){.mat-datepicker-popup:not(:empty),.mat-calendar-body-cell:not(.mat-calendar-body-in-range) .mat-calendar-body-selected{outline:solid 1px}.mat-calendar-body-today{outline:dotted 1px}.mat-calendar-body-cell::before,.mat-calendar-body-cell::after,.mat-calendar-body-selected{background:none}.mat-calendar-body-in-range::before,.mat-calendar-body-comparison-bridge-start::before,.mat-calendar-body-comparison-bridge-end::before{border-top:solid 1px;border-bottom:solid 1px}.mat-calendar-body-range-start::before{border-left:solid 1px}[dir=rtl] .mat-calendar-body-range-start::before{border-left:0;border-right:solid 1px}.mat-calendar-body-range-end::before{border-right:solid 1px}[dir=rtl] .mat-calendar-body-range-end::before{border-right:0;border-left:solid 1px}.mat-calendar-body-in-comparison-range::before{border-top:dashed 1px;border-bottom:dashed 1px}.mat-calendar-body-comparison-start::before{border-left:dashed 1px}[dir=rtl] .mat-calendar-body-comparison-start::before{border-left:0;border-right:dashed 1px}.mat-calendar-body-comparison-end::before{border-right:dashed 1px}[dir=rtl] .mat-calendar-body-comparison-end::before{border-right:0;border-left:dashed 1px}} -`],encapsulation:2,changeDetection:0})}return t})();function KI(t){return t?.nodeName==="TD"}function ZI(t){let n;return KI(t)?n=t:KI(t.parentNode)?n=t.parentNode:KI(t.parentNode?.parentNode)&&(n=t.parentNode.parentNode),n?.getAttribute("data-mat-row")!=null?n:null}function XI(t,n,e){return e!==null&&n!==e&&t=n&&t===e}function eA(t,n,e,i){return i&&n!==null&&e!==null&&n!==e&&t>=n&&t<=e}function EU(t){let n=t.changedTouches[0];return document.elementFromPoint(n.clientX,n.clientY)}var ua=class{start;end;_disableStructuralEquivalency;constructor(n,e){this.start=n,this.end=e}},w_=(()=>{class t{selection;_adapter;_selectionChanged=new z;selectionChanged=this._selectionChanged;constructor(e,i){this.selection=e,this._adapter=i,this.selection=e}updateSelection(e,i){let r=this.selection;this.selection=e,this._selectionChanged.next({selection:e,source:i,oldValue:r})}ngOnDestroy(){this._selectionChanged.complete()}_isValidDateInstance(e){return this._adapter.isDateInstance(e)&&this._adapter.isValid(e)}static \u0275fac=function(i){Ad()};static \u0275prov=O({token:t,factory:t.\u0275fac})}return t})(),Ybe=(()=>{class t extends w_{constructor(e){super(null,e)}add(e){super.updateSelection(e,this)}isValid(){return this.selection!=null&&this._isValidDateInstance(this.selection)}isComplete(){return this.selection!=null}clone(){let e=new t(this._adapter);return e.updateSelection(this.selection,this),e}static \u0275fac=function(i){return new(i||t)(pe(Li))};static \u0275prov=O({token:t,factory:t.\u0275fac})}return t})();function Qbe(t,n){return t||new Ybe(n)}var AU={provide:w_,deps:[[new ss,new Gl,w_],Li],useFactory:Qbe};var OU=new T("MAT_DATE_RANGE_SELECTION_STRATEGY");var tA=7,Kbe=0,MU=(()=>{class t{_changeDetectorRef=u(ye);_dateFormats=u(xs,{optional:!0});_dateAdapter=u(Li,{optional:!0});_dir=u(Vt,{optional:!0});_rangeStrategy=u(OU,{optional:!0});_rerenderSubscription=ke.EMPTY;_selectionKeyPressed;get activeDate(){return this._activeDate}set activeDate(e){let i=this._activeDate,r=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e))||this._dateAdapter.today();this._activeDate=this._dateAdapter.clampDate(r,this.minDate,this.maxDate),this._hasSameMonthAndYear(i,this._activeDate)||this._init()}_activeDate;get selected(){return this._selected}set selected(e){e instanceof ua?this._selected=e:this._selected=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e)),this._setRanges(this._selected)}_selected;get minDate(){return this._minDate}set minDate(e){this._minDate=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e))}_minDate;get maxDate(){return this._maxDate}set maxDate(e){this._maxDate=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e))}_maxDate;dateFilter;dateClass;comparisonStart;comparisonEnd;startDateAccessibleName;endDateAccessibleName;activeDrag=null;selectedChange=new U;_userSelection=new U;dragStarted=new U;dragEnded=new U;activeDateChange=new U;_matCalendarBody;_monthLabel=he("");_weeks=he([]);_firstWeekOffset=he(0);_rangeStart=he(null);_rangeEnd=he(null);_comparisonRangeStart=he(null);_comparisonRangeEnd=he(null);_previewStart=he(null);_previewEnd=he(null);_isRange=he(!1);_todayDate=he(null);_weekdays=he([]);constructor(){u(ut).load(Qr),this._activeDate=this._dateAdapter.today()}ngAfterContentInit(){this._rerenderSubscription=this._dateAdapter.localeChanges.pipe(He(null)).subscribe(()=>this._init())}ngOnChanges(e){let i=e.comparisonStart||e.comparisonEnd;i&&!i.firstChange&&this._setRanges(this.selected),e.activeDrag&&!this.activeDrag&&this._clearPreview()}ngOnDestroy(){this._rerenderSubscription.unsubscribe()}_dateSelected(e){let i=e.value,r=this._getDateFromDayOfMonth(i),o,a;this._selected instanceof ua?(o=this._getDateInCurrentMonth(this._selected.start),a=this._getDateInCurrentMonth(this._selected.end)):o=a=this._getDateInCurrentMonth(this._selected),(o!==i||a!==i)&&this.selectedChange.emit(r),this._userSelection.emit({value:r,event:e.event}),this._clearPreview(),this._changeDetectorRef.markForCheck()}_updateActiveDate(e){let i=e.value,r=this._activeDate;this.activeDate=this._getDateFromDayOfMonth(i),this._dateAdapter.compareDate(r,this.activeDate)&&this.activeDateChange.emit(this._activeDate)}_handleCalendarBodyKeydown(e){let i=this._activeDate,r=this._isRtl();switch(e.keyCode){case 37:this.activeDate=this._dateAdapter.addCalendarDays(this._activeDate,r?1:-1);break;case 39:this.activeDate=this._dateAdapter.addCalendarDays(this._activeDate,r?-1:1);break;case 38:this.activeDate=this._dateAdapter.addCalendarDays(this._activeDate,-7);break;case 40:this.activeDate=this._dateAdapter.addCalendarDays(this._activeDate,7);break;case 36:this.activeDate=this._dateAdapter.addCalendarDays(this._activeDate,1-this._dateAdapter.getDate(this._activeDate));break;case 35:this.activeDate=this._dateAdapter.addCalendarDays(this._activeDate,this._dateAdapter.getNumDaysInMonth(this._activeDate)-this._dateAdapter.getDate(this._activeDate));break;case 33:this.activeDate=e.altKey?this._dateAdapter.addCalendarYears(this._activeDate,-1):this._dateAdapter.addCalendarMonths(this._activeDate,-1);break;case 34:this.activeDate=e.altKey?this._dateAdapter.addCalendarYears(this._activeDate,1):this._dateAdapter.addCalendarMonths(this._activeDate,1);break;case 13:case 32:this._selectionKeyPressed=!0,this._canSelect(this._activeDate)&&e.preventDefault();return;case 27:this._previewEnd()!=null&&!Ft(e)&&(this._clearPreview(),this.activeDrag?this.dragEnded.emit({value:null,event:e}):(this.selectedChange.emit(null),this._userSelection.emit({value:null,event:e})),e.preventDefault(),e.stopPropagation());return;default:return}this._dateAdapter.compareDate(i,this.activeDate)&&(this.activeDateChange.emit(this.activeDate),this._focusActiveCellAfterViewChecked()),e.preventDefault()}_handleCalendarBodyKeyup(e){(e.keyCode===32||e.keyCode===13)&&(this._selectionKeyPressed&&this._canSelect(this._activeDate)&&this._dateSelected({value:this._dateAdapter.getDate(this._activeDate),event:e}),this._selectionKeyPressed=!1)}_init(){this._setRanges(this.selected),this._todayDate.set(this._getCellCompareValue(this._dateAdapter.today())),this._monthLabel.set(this._dateFormats.display.monthLabel?this._dateAdapter.format(this.activeDate,this._dateFormats.display.monthLabel):this._dateAdapter.getMonthNames("short")[this._dateAdapter.getMonth(this.activeDate)].toLocaleUpperCase());let e=this._dateAdapter.createDate(this._dateAdapter.getYear(this.activeDate),this._dateAdapter.getMonth(this.activeDate),1);this._firstWeekOffset.set((tA+this._dateAdapter.getDayOfWeek(e)-this._dateAdapter.getFirstDayOfWeek())%tA),this._initWeekdays(),this._createWeekCells(),this._changeDetectorRef.markForCheck()}_focusActiveCell(e){this._matCalendarBody._focusActiveCell(e)}_focusActiveCellAfterViewChecked(){this._matCalendarBody._scheduleFocusActiveCellAfterViewChecked()}_previewChanged({event:e,value:i}){if(this._rangeStrategy){let r=i?i.rawValue:null,o=this._rangeStrategy.createPreview(r,this.selected,e);if(this._previewStart.set(this._getCellCompareValue(o.start)),this._previewEnd.set(this._getCellCompareValue(o.end)),this.activeDrag&&r){let a=this._rangeStrategy.createDrag?.(this.activeDrag.value,this.selected,r,e);a&&(this._previewStart.set(this._getCellCompareValue(a.start)),this._previewEnd.set(this._getCellCompareValue(a.end)))}}}_dragEnded(e){if(this.activeDrag)if(e.value){let i=this._rangeStrategy?.createDrag?.(this.activeDrag.value,this.selected,e.value,e.event);this.dragEnded.emit({value:i??null,event:e.event})}else this.dragEnded.emit({value:null,event:e.event})}_getDateFromDayOfMonth(e){return this._dateAdapter.createDate(this._dateAdapter.getYear(this.activeDate),this._dateAdapter.getMonth(this.activeDate),e)}_initWeekdays(){let e=this._dateAdapter.getFirstDayOfWeek(),i=this._dateAdapter.getDayOfWeekNames("narrow"),o=this._dateAdapter.getDayOfWeekNames("long").map((a,s)=>({long:a,narrow:i[s],id:Kbe++}));this._weekdays.set(o.slice(e).concat(o.slice(0,e)))}_createWeekCells(){let e=this._dateAdapter.getNumDaysInMonth(this.activeDate),i=this._dateAdapter.getDateNames(),r=[[]];for(let o=0,a=this._firstWeekOffset();o=0)&&(!this.maxDate||this._dateAdapter.compareDate(e,this.maxDate)<=0)&&(!this.dateFilter||this.dateFilter(e))}_getDateInCurrentMonth(e){return e&&this._hasSameMonthAndYear(e,this.activeDate)?this._dateAdapter.getDate(e):null}_hasSameMonthAndYear(e,i){return!!(e&&i&&this._dateAdapter.getMonth(e)==this._dateAdapter.getMonth(i)&&this._dateAdapter.getYear(e)==this._dateAdapter.getYear(i))}_getCellCompareValue(e){if(e){let i=this._dateAdapter.getYear(e),r=this._dateAdapter.getMonth(e),o=this._dateAdapter.getDate(e);return new Date(i,r,o).getTime()}return null}_isRtl(){return this._dir&&this._dir.value==="rtl"}_setRanges(e){e instanceof ua?(this._rangeStart.set(this._getCellCompareValue(e.start)),this._rangeEnd.set(this._getCellCompareValue(e.end)),this._isRange.set(!0)):(this._rangeStart.set(this._getCellCompareValue(e)),this._rangeEnd.set(this._rangeStart()),this._isRange.set(!1)),this._comparisonRangeStart.set(this._getCellCompareValue(this.comparisonStart)),this._comparisonRangeEnd.set(this._getCellCompareValue(this.comparisonEnd))}_canSelect(e){return!this.dateFilter||this.dateFilter(e)}_clearPreview(){this._previewStart.set(null),this._previewEnd.set(null)}static \u0275fac=function(i){return new(i||t)};static \u0275cmp=E({type:t,selectors:[["mat-month-view"]],viewQuery:function(i,r){if(i&1&&ie(cp,5),i&2){let o;B(o=j())&&(r._matCalendarBody=o.first)}},inputs:{activeDate:"activeDate",selected:"selected",minDate:"minDate",maxDate:"maxDate",dateFilter:"dateFilter",dateClass:"dateClass",comparisonStart:"comparisonStart",comparisonEnd:"comparisonEnd",startDateAccessibleName:"startDateAccessibleName",endDateAccessibleName:"endDateAccessibleName",activeDrag:"activeDrag"},outputs:{selectedChange:"selectedChange",_userSelection:"_userSelection",dragStarted:"dragStarted",dragEnded:"dragEnded",activeDateChange:"activeDateChange"},exportAs:["matMonthView"],features:[Ae],decls:8,vars:14,consts:[["role","grid",1,"mat-calendar-table"],[1,"mat-calendar-table-header"],["scope","col"],["aria-hidden","true"],["colspan","7",1,"mat-calendar-table-header-divider"],["mat-calendar-body","",3,"selectedValueChange","activeDateChange","previewChange","dragStarted","dragEnded","keyup","keydown","label","rows","todayValue","startValue","endValue","comparisonStart","comparisonEnd","previewStart","previewEnd","isRange","labelMinRequiredCells","activeCell","startDateAccessibleName","endDateAccessibleName"],[1,"cdk-visually-hidden"]],template:function(i,r){i&1&&(h(0,"table",0)(1,"thead",1)(2,"tr"),xt(3,Fbe,5,2,"th",2,IU),p(),h(5,"tr",3),k(6,"th",4),p()(),h(7,"tbody",5),S("selectedValueChange",function(a){return r._dateSelected(a)})("activeDateChange",function(a){return r._updateActiveDate(a)})("previewChange",function(a){return r._previewChanged(a)})("dragStarted",function(a){return r.dragStarted.emit(a)})("dragEnded",function(a){return r._dragEnded(a)})("keyup",function(a){return r._handleCalendarBodyKeyup(a)})("keydown",function(a){return r._handleCalendarBodyKeydown(a)}),p()()),i&2&&(g(3),Ct(r._weekdays()),g(4),y("label",r._monthLabel())("rows",r._weeks())("todayValue",r._todayDate())("startValue",r._rangeStart())("endValue",r._rangeEnd())("comparisonStart",r._comparisonRangeStart())("comparisonEnd",r._comparisonRangeEnd())("previewStart",r._previewStart())("previewEnd",r._previewEnd())("isRange",r._isRange())("labelMinRequiredCells",3)("activeCell",r._dateAdapter.getDate(r.activeDate)-1)("startDateAccessibleName",r.startDateAccessibleName)("endDateAccessibleName",r.endDateAccessibleName))},dependencies:[cp],encapsulation:2,changeDetection:0})}return t})(),Io=24,iA=4,kU=(()=>{class t{_changeDetectorRef=u(ye);_dateAdapter=u(Li,{optional:!0});_dir=u(Vt,{optional:!0});_rerenderSubscription=ke.EMPTY;_selectionKeyPressed;get activeDate(){return this._activeDate}set activeDate(e){let i=this._activeDate,r=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e))||this._dateAdapter.today();this._activeDate=this._dateAdapter.clampDate(r,this.minDate,this.maxDate),RU(this._dateAdapter,i,this._activeDate,this.minDate,this.maxDate)||this._init()}_activeDate;get selected(){return this._selected}set selected(e){e instanceof ua?this._selected=e:this._selected=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e)),this._setSelectedYear(e)}_selected;get minDate(){return this._minDate}set minDate(e){this._minDate=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e))}_minDate;get maxDate(){return this._maxDate}set maxDate(e){this._maxDate=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e))}_maxDate;dateFilter;dateClass;selectedChange=new U;yearSelected=new U;activeDateChange=new U;_matCalendarBody;_years=he([]);_todayYear=he(0);_selectedYear=he(null);constructor(){this._dateAdapter,this._activeDate=this._dateAdapter.today()}ngAfterContentInit(){this._rerenderSubscription=this._dateAdapter.localeChanges.pipe(He(null)).subscribe(()=>this._init())}ngOnDestroy(){this._rerenderSubscription.unsubscribe()}_init(){this._todayYear.set(this._dateAdapter.getYear(this._dateAdapter.today()));let i=this._dateAdapter.getYear(this._activeDate)-x_(this._dateAdapter,this.activeDate,this.minDate,this.maxDate),r=[];for(let o=0,a=[];othis._createCellForYear(s))),a=[]);this._years.set(r),this._changeDetectorRef.markForCheck()}_yearSelected(e){let i=e.value,r=this._dateAdapter.createDate(i,0,1),o=this._getDateFromYear(i);this.yearSelected.emit(r),this.selectedChange.emit(o)}_updateActiveDate(e){let i=e.value,r=this._activeDate;this.activeDate=this._getDateFromYear(i),this._dateAdapter.compareDate(r,this.activeDate)&&this.activeDateChange.emit(this.activeDate)}_handleCalendarBodyKeydown(e){let i=this._activeDate,r=this._isRtl();switch(e.keyCode){case 37:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,r?1:-1);break;case 39:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,r?-1:1);break;case 38:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,-iA);break;case 40:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,iA);break;case 36:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,-x_(this._dateAdapter,this.activeDate,this.minDate,this.maxDate));break;case 35:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,Io-x_(this._dateAdapter,this.activeDate,this.minDate,this.maxDate)-1);break;case 33:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,e.altKey?-Io*10:-Io);break;case 34:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,e.altKey?Io*10:Io);break;case 13:case 32:this._selectionKeyPressed=!0;break;default:return}this._dateAdapter.compareDate(i,this.activeDate)&&this.activeDateChange.emit(this.activeDate),this._focusActiveCellAfterViewChecked(),e.preventDefault()}_handleCalendarBodyKeyup(e){(e.keyCode===32||e.keyCode===13)&&(this._selectionKeyPressed&&this._yearSelected({value:this._dateAdapter.getYear(this._activeDate),event:e}),this._selectionKeyPressed=!1)}_getActiveCell(){return x_(this._dateAdapter,this.activeDate,this.minDate,this.maxDate)}_focusActiveCell(){this._matCalendarBody._focusActiveCell()}_focusActiveCellAfterViewChecked(){this._matCalendarBody._scheduleFocusActiveCellAfterViewChecked()}_getDateFromYear(e){let i=this._dateAdapter.getMonth(this.activeDate),r=this._dateAdapter.getNumDaysInMonth(this._dateAdapter.createDate(e,i,1));return this._dateAdapter.createDate(e,i,Math.min(this._dateAdapter.getDate(this.activeDate),r))}_createCellForYear(e){let i=this._dateAdapter.createDate(e,0,1),r=this._dateAdapter.getYearName(i),o=this.dateClass?this.dateClass(i,"multi-year"):void 0;return new C_(e,r,r,this._shouldEnableYear(e),o)}_shouldEnableYear(e){if(e==null||this.maxDate&&e>this._dateAdapter.getYear(this.maxDate)||this.minDate&&e{class t{_changeDetectorRef=u(ye);_dateFormats=u(xs,{optional:!0});_dateAdapter=u(Li,{optional:!0});_dir=u(Vt,{optional:!0});_rerenderSubscription=ke.EMPTY;_selectionKeyPressed;get activeDate(){return this._activeDate}set activeDate(e){let i=this._activeDate,r=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e))||this._dateAdapter.today();this._activeDate=this._dateAdapter.clampDate(r,this.minDate,this.maxDate),this._dateAdapter.getYear(i)!==this._dateAdapter.getYear(this._activeDate)&&this._init()}_activeDate;get selected(){return this._selected}set selected(e){e instanceof ua?this._selected=e:this._selected=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e)),this._setSelectedMonth(e)}_selected;get minDate(){return this._minDate}set minDate(e){this._minDate=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e))}_minDate;get maxDate(){return this._maxDate}set maxDate(e){this._maxDate=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e))}_maxDate;dateFilter;dateClass;selectedChange=new U;monthSelected=new U;activeDateChange=new U;_matCalendarBody;_months=he([]);_yearLabel=he("");_todayMonth=he(null);_selectedMonth=he(null);constructor(){this._activeDate=this._dateAdapter.today()}ngAfterContentInit(){this._rerenderSubscription=this._dateAdapter.localeChanges.pipe(He(null)).subscribe(()=>this._init())}ngOnDestroy(){this._rerenderSubscription.unsubscribe()}_monthSelected(e){let i=e.value,r=this._dateAdapter.createDate(this._dateAdapter.getYear(this.activeDate),i,1);this.monthSelected.emit(r);let o=this._getDateFromMonth(i);this.selectedChange.emit(o)}_updateActiveDate(e){let i=e.value,r=this._activeDate;this.activeDate=this._getDateFromMonth(i),this._dateAdapter.compareDate(r,this.activeDate)&&this.activeDateChange.emit(this.activeDate)}_handleCalendarBodyKeydown(e){let i=this._activeDate,r=this._isRtl();switch(e.keyCode){case 37:this.activeDate=this._dateAdapter.addCalendarMonths(this._activeDate,r?1:-1);break;case 39:this.activeDate=this._dateAdapter.addCalendarMonths(this._activeDate,r?-1:1);break;case 38:this.activeDate=this._dateAdapter.addCalendarMonths(this._activeDate,-4);break;case 40:this.activeDate=this._dateAdapter.addCalendarMonths(this._activeDate,4);break;case 36:this.activeDate=this._dateAdapter.addCalendarMonths(this._activeDate,-this._dateAdapter.getMonth(this._activeDate));break;case 35:this.activeDate=this._dateAdapter.addCalendarMonths(this._activeDate,11-this._dateAdapter.getMonth(this._activeDate));break;case 33:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,e.altKey?-10:-1);break;case 34:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,e.altKey?10:1);break;case 13:case 32:this._selectionKeyPressed=!0;break;default:return}this._dateAdapter.compareDate(i,this.activeDate)&&(this.activeDateChange.emit(this.activeDate),this._focusActiveCellAfterViewChecked()),e.preventDefault()}_handleCalendarBodyKeyup(e){(e.keyCode===32||e.keyCode===13)&&(this._selectionKeyPressed&&this._monthSelected({value:this._dateAdapter.getMonth(this._activeDate),event:e}),this._selectionKeyPressed=!1)}_init(){this._setSelectedMonth(this.selected),this._todayMonth.set(this._getMonthInCurrentYear(this._dateAdapter.today())),this._yearLabel.set(this._dateAdapter.getYearName(this.activeDate));let e=this._dateAdapter.getMonthNames("short");this._months.set([[0,1,2,3],[4,5,6,7],[8,9,10,11]].map(i=>i.map(r=>this._createCellForMonth(r,e[r])))),this._changeDetectorRef.markForCheck()}_focusActiveCell(){this._matCalendarBody._focusActiveCell()}_focusActiveCellAfterViewChecked(){this._matCalendarBody._scheduleFocusActiveCellAfterViewChecked()}_getMonthInCurrentYear(e){return e&&this._dateAdapter.getYear(e)==this._dateAdapter.getYear(this.activeDate)?this._dateAdapter.getMonth(e):null}_getDateFromMonth(e){let i=this._dateAdapter.createDate(this._dateAdapter.getYear(this.activeDate),e,1),r=this._dateAdapter.getNumDaysInMonth(i);return this._dateAdapter.createDate(this._dateAdapter.getYear(this.activeDate),e,Math.min(this._dateAdapter.getDate(this.activeDate),r))}_createCellForMonth(e,i){let r=this._dateAdapter.createDate(this._dateAdapter.getYear(this.activeDate),e,1),o=this._dateAdapter.format(r,this._dateFormats.display.monthYearA11yLabel),a=this.dateClass?this.dateClass(r,"year"):void 0;return new C_(e,i.toLocaleUpperCase(),o,this._shouldEnableMonth(e),a)}_shouldEnableMonth(e){let i=this._dateAdapter.getYear(this.activeDate);if(e==null||this._isYearAndMonthAfterMaxDate(i,e)||this._isYearAndMonthBeforeMinDate(i,e))return!1;if(!this.dateFilter)return!0;let r=this._dateAdapter.createDate(i,e,1);for(let o=r;this._dateAdapter.getMonth(o)==e;o=this._dateAdapter.addCalendarDays(o,1))if(this.dateFilter(o))return!0;return!1}_isYearAndMonthAfterMaxDate(e,i){if(this.maxDate){let r=this._dateAdapter.getYear(this.maxDate),o=this._dateAdapter.getMonth(this.maxDate);return e>r||e===r&&i>o}return!1}_isYearAndMonthBeforeMinDate(e,i){if(this.minDate){let r=this._dateAdapter.getYear(this.minDate),o=this._dateAdapter.getMonth(this.minDate);return e{class t{_intl=u(dp);calendar=u(nA);_dateAdapter=u(Li,{optional:!0});_dateFormats=u(xs,{optional:!0});_periodButtonText;_periodButtonDescription;_periodButtonLabel;_prevButtonLabel;_nextButtonLabel;constructor(){u(ut).load(Qr);let e=u(ye);this._updateLabels(),this.calendar.stateChanges.subscribe(()=>{this._updateLabels(),e.markForCheck()})}get periodButtonText(){return this._periodButtonText}get periodButtonDescription(){return this._periodButtonDescription}get periodButtonLabel(){return this._periodButtonLabel}get prevButtonLabel(){return this._prevButtonLabel}get nextButtonLabel(){return this._nextButtonLabel}currentPeriodClicked(){this.calendar.currentView=this.calendar.currentView=="month"?"multi-year":"month"}previousClicked(){this.previousEnabled()&&(this.calendar.activeDate=this.calendar.currentView=="month"?this._dateAdapter.addCalendarMonths(this.calendar.activeDate,-1):this._dateAdapter.addCalendarYears(this.calendar.activeDate,this.calendar.currentView=="year"?-1:-Io))}nextClicked(){this.nextEnabled()&&(this.calendar.activeDate=this.calendar.currentView=="month"?this._dateAdapter.addCalendarMonths(this.calendar.activeDate,1):this._dateAdapter.addCalendarYears(this.calendar.activeDate,this.calendar.currentView=="year"?1:Io))}previousEnabled(){return this.calendar.minDate?!this.calendar.minDate||!this._isSameView(this.calendar.activeDate,this.calendar.minDate):!0}nextEnabled(){return!this.calendar.maxDate||!this._isSameView(this.calendar.activeDate,this.calendar.maxDate)}_updateLabels(){let e=this.calendar,i=this._intl,r=this._dateAdapter;e.currentView==="month"?(this._periodButtonText=r.format(e.activeDate,this._dateFormats.display.monthYearLabel).toLocaleUpperCase(),this._periodButtonDescription=r.format(e.activeDate,this._dateFormats.display.monthYearLabel).toLocaleUpperCase(),this._periodButtonLabel=i.switchToMultiYearViewLabel,this._prevButtonLabel=i.prevMonthLabel,this._nextButtonLabel=i.nextMonthLabel):e.currentView==="year"?(this._periodButtonText=r.getYearName(e.activeDate),this._periodButtonDescription=r.getYearName(e.activeDate),this._periodButtonLabel=i.switchToMonthViewLabel,this._prevButtonLabel=i.prevYearLabel,this._nextButtonLabel=i.nextYearLabel):(this._periodButtonText=i.formatYearRange(...this._formatMinAndMaxYearLabels()),this._periodButtonDescription=i.formatYearRangeLabel(...this._formatMinAndMaxYearLabels()),this._periodButtonLabel=i.switchToMonthViewLabel,this._prevButtonLabel=i.prevMultiYearLabel,this._nextButtonLabel=i.nextMultiYearLabel)}_isSameView(e,i){return this.calendar.currentView=="month"?this._dateAdapter.getYear(e)==this._dateAdapter.getYear(i)&&this._dateAdapter.getMonth(e)==this._dateAdapter.getMonth(i):this.calendar.currentView=="year"?this._dateAdapter.getYear(e)==this._dateAdapter.getYear(i):RU(this._dateAdapter,e,i,this.calendar.minDate,this.calendar.maxDate)}_formatMinAndMaxYearLabels(){let i=this._dateAdapter.getYear(this.calendar.activeDate)-x_(this._dateAdapter,this.calendar.activeDate,this.calendar.minDate,this.calendar.maxDate),r=i+Io-1,o=this._dateAdapter.getYearName(this._dateAdapter.createDate(i,0,1)),a=this._dateAdapter.getYearName(this._dateAdapter.createDate(r,0,1));return[o,a]}_periodButtonLabelId=u(Ze).getId("mat-calendar-period-label-");static \u0275fac=function(i){return new(i||t)};static \u0275cmp=E({type:t,selectors:[["mat-calendar-header"]],exportAs:["matCalendarHeader"],ngContentSelectors:Nbe,decls:17,vars:13,consts:[[1,"mat-calendar-header"],[1,"mat-calendar-controls"],["aria-live","polite",1,"cdk-visually-hidden",3,"id"],["matButton","","type","button",1,"mat-calendar-period-button",3,"click"],["aria-hidden","true"],["viewBox","0 0 10 5","focusable","false","aria-hidden","true",1,"mat-calendar-arrow"],["points","0,0 5,5 10,0"],[1,"mat-calendar-spacer"],["matIconButton","","type","button","disabledInteractive","",1,"mat-calendar-previous-button",3,"click","disabled","matTooltip"],["viewBox","0 0 24 24","focusable","false","aria-hidden","true"],["d","M15.41 7.41L14 6l-6 6 6 6 1.41-1.41L10.83 12z"],["matIconButton","","type","button","disabledInteractive","",1,"mat-calendar-next-button",3,"click","disabled","matTooltip"],["d","M10 6L8.59 7.41 13.17 12l-4.58 4.59L10 18l6-6z"]],template:function(i,r){i&1&&(Me(),h(0,"div",0)(1,"div",1)(2,"span",2),_(3),p(),h(4,"button",3),S("click",function(){return r.currentPeriodClicked()}),h(5,"span",4),_(6),p(),Gt(),h(7,"svg",5),k(8,"polygon",6),p()(),jo(),k(9,"div",7),oe(10),h(11,"button",8),S("click",function(){return r.previousClicked()}),Gt(),h(12,"svg",9),k(13,"path",10),p()(),jo(),h(14,"button",11),S("click",function(){return r.nextClicked()}),Gt(),h(15,"svg",9),k(16,"path",12),p()()()()),i&2&&(g(2),y("id",r._periodButtonLabelId),g(),H(r.periodButtonDescription),g(),X("aria-label",r.periodButtonLabel)("aria-describedby",r._periodButtonLabelId),g(2),H(r.periodButtonText),g(),G("mat-calendar-invert",r.calendar.currentView!=="month"),g(4),y("disabled",!r.previousEnabled())("matTooltip",r.prevButtonLabel),X("aria-label",r.prevButtonLabel),g(3),y("disabled",!r.nextEnabled())("matTooltip",r.nextButtonLabel),X("aria-label",r.nextButtonLabel))},dependencies:[kt,ti,Eo],encapsulation:2,changeDetection:0})}return t})(),nA=(()=>{class t{_dateAdapter=u(Li,{optional:!0});_dateFormats=u(xs,{optional:!0});_changeDetectorRef=u(ye);_elementRef=u(q);headerComponent;_calendarHeaderPortal;_intlChanges;_moveFocusOnNextTick=!1;get startAt(){return this._startAt}set startAt(e){this._startAt=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e))}_startAt;startView="month";get selected(){return this._selected}set selected(e){e instanceof ua?this._selected=e:this._selected=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e))}_selected;get minDate(){return this._minDate}set minDate(e){this._minDate=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e))}_minDate;get maxDate(){return this._maxDate}set maxDate(e){this._maxDate=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e))}_maxDate;dateFilter;dateClass;comparisonStart;comparisonEnd;startDateAccessibleName;endDateAccessibleName;selectedChange=new U;yearSelected=new U;monthSelected=new U;viewChanged=new U(!0);_userSelection=new U;_userDragDrop=new U;monthView;yearView;multiYearView;get activeDate(){return this._clampedActiveDate}set activeDate(e){this._clampedActiveDate=this._dateAdapter.clampDate(e,this.minDate,this.maxDate),this.stateChanges.next(),this._changeDetectorRef.markForCheck()}_clampedActiveDate;get currentView(){return this._currentView}set currentView(e){let i=this._currentView!==e?e:null;this._currentView=e,this._moveFocusOnNextTick=!0,this._changeDetectorRef.markForCheck(),i&&(this.stateChanges.next(),this.viewChanged.emit(i))}_currentView;_activeDrag=null;stateChanges=new z;constructor(){this._intlChanges=u(dp).changes.subscribe(()=>{this._changeDetectorRef.markForCheck(),this.stateChanges.next()})}ngAfterContentInit(){this._calendarHeaderPortal=new Zr(this.headerComponent||FU),this.activeDate=this.startAt||this._dateAdapter.today(),this._currentView=this.startView}ngAfterViewChecked(){this._moveFocusOnNextTick&&(this._moveFocusOnNextTick=!1,this.focusActiveCell())}ngOnDestroy(){this._intlChanges.unsubscribe(),this.stateChanges.complete()}ngOnChanges(e){let i=e.minDate&&!this._dateAdapter.sameDate(e.minDate.previousValue,e.minDate.currentValue)?e.minDate:void 0,r=e.maxDate&&!this._dateAdapter.sameDate(e.maxDate.previousValue,e.maxDate.currentValue)?e.maxDate:void 0,o=i||r||e.dateFilter;if(o&&!o.firstChange){let a=this._getCurrentViewComponent();a&&(this._elementRef.nativeElement.contains(_o())&&(this._moveFocusOnNextTick=!0),this._changeDetectorRef.detectChanges(),a._init())}this.stateChanges.next()}focusActiveCell(){this._getCurrentViewComponent()._focusActiveCell(!1)}updateTodaysDate(){this._getCurrentViewComponent()._init()}_dateSelected(e){let i=e.value;(this.selected instanceof ua||i&&!this._dateAdapter.sameDate(i,this.selected))&&this.selectedChange.emit(i),this._userSelection.emit(e)}_yearSelectedInMultiYearView(e){this.yearSelected.emit(e)}_monthSelectedInYearView(e){this.monthSelected.emit(e)}_goToDateInView(e,i){this.activeDate=e,this.currentView=i}_dragStarted(e){this._activeDrag=e}_dragEnded(e){this._activeDrag&&(e.value&&this._userDragDrop.emit(e),this._activeDrag=null)}_getCurrentViewComponent(){return this.monthView||this.yearView||this.multiYearView}static \u0275fac=function(i){return new(i||t)};static \u0275cmp=E({type:t,selectors:[["mat-calendar"]],viewQuery:function(i,r){if(i&1&&(ie(MU,5),ie(SU,5),ie(kU,5)),i&2){let o;B(o=j())&&(r.monthView=o.first),B(o=j())&&(r.yearView=o.first),B(o=j())&&(r.multiYearView=o.first)}},hostAttrs:[1,"mat-calendar"],inputs:{headerComponent:"headerComponent",startAt:"startAt",startView:"startView",selected:"selected",minDate:"minDate",maxDate:"maxDate",dateFilter:"dateFilter",dateClass:"dateClass",comparisonStart:"comparisonStart",comparisonEnd:"comparisonEnd",startDateAccessibleName:"startDateAccessibleName",endDateAccessibleName:"endDateAccessibleName"},outputs:{selectedChange:"selectedChange",yearSelected:"yearSelected",monthSelected:"monthSelected",viewChanged:"viewChanged",_userSelection:"_userSelection",_userDragDrop:"_userDragDrop"},exportAs:["matCalendar"],features:[Ce([AU]),Ae],decls:5,vars:2,consts:[[3,"cdkPortalOutlet"],["cdkMonitorSubtreeFocus","","tabindex","-1",1,"mat-calendar-content"],[3,"activeDate","selected","dateFilter","maxDate","minDate","dateClass","comparisonStart","comparisonEnd","startDateAccessibleName","endDateAccessibleName","activeDrag"],[3,"activeDate","selected","dateFilter","maxDate","minDate","dateClass"],[3,"activeDateChange","_userSelection","dragStarted","dragEnded","activeDate","selected","dateFilter","maxDate","minDate","dateClass","comparisonStart","comparisonEnd","startDateAccessibleName","endDateAccessibleName","activeDrag"],[3,"activeDateChange","monthSelected","selectedChange","activeDate","selected","dateFilter","maxDate","minDate","dateClass"],[3,"activeDateChange","yearSelected","selectedChange","activeDate","selected","dateFilter","maxDate","minDate","dateClass"]],template:function(i,r){if(i&1&&(R(0,Lbe,0,0,"ng-template",0),h(1,"div",1),N(2,Vbe,1,11,"mat-month-view",2)(3,Bbe,1,6,"mat-year-view",3)(4,jbe,1,6,"mat-multi-year-view",3),p()),i&2){let o;y("cdkPortalOutlet",r._calendarHeaderPortal),g(2),L((o=r.currentView)==="month"?2:o==="year"?3:o==="multi-year"?4:-1)}},dependencies:[yr,$f,MU,SU,kU],styles:[`.mat-calendar{display:block;line-height:normal;font-family:var(--mat-datepicker-calendar-text-font, var(--mat-sys-body-medium-font));font-size:var(--mat-datepicker-calendar-text-size, var(--mat-sys-body-medium-size))}.mat-calendar-header{padding:8px 8px 0 8px}.mat-calendar-content{padding:0 8px 8px 8px;outline:none}.mat-calendar-controls{display:flex;align-items:center;margin:5% calc(4.7142857143% - 16px)}.mat-calendar-spacer{flex:1 1 auto}.mat-calendar-period-button{min-width:0;margin:0 8px;font-size:var(--mat-datepicker-calendar-period-button-text-size, var(--mat-sys-title-small-size));font-weight:var(--mat-datepicker-calendar-period-button-text-weight, var(--mat-sys-title-small-weight));--mat-button-text-label-text-color: var(--mat-datepicker-calendar-period-button-text-color, var(--mat-sys-on-surface-variant))}.mat-calendar-arrow{display:inline-block;width:10px;height:5px;margin:0 0 0 5px;vertical-align:middle;fill:var(--mat-datepicker-calendar-period-button-icon-color, var(--mat-sys-on-surface-variant))}.mat-calendar-arrow.mat-calendar-invert{transform:rotate(180deg)}[dir=rtl] .mat-calendar-arrow{margin:0 5px 0 0}@media(forced-colors: active){.mat-calendar-arrow{fill:CanvasText}}.mat-datepicker-content .mat-calendar-previous-button:not(.mat-mdc-button-disabled),.mat-datepicker-content .mat-calendar-next-button:not(.mat-mdc-button-disabled){color:var(--mat-datepicker-calendar-navigation-button-icon-color, var(--mat-sys-on-surface-variant))}[dir=rtl] .mat-calendar-previous-button,[dir=rtl] .mat-calendar-next-button{transform:rotate(180deg)}.mat-calendar-table{border-spacing:0;border-collapse:collapse;width:100%}.mat-calendar-table-header th{text-align:center;padding:0 0 8px 0;color:var(--mat-datepicker-calendar-header-text-color, var(--mat-sys-on-surface-variant));font-size:var(--mat-datepicker-calendar-header-text-size, var(--mat-sys-title-small-size));font-weight:var(--mat-datepicker-calendar-header-text-weight, var(--mat-sys-title-small-weight))}.mat-calendar-table-header-divider{position:relative;height:1px}.mat-calendar-table-header-divider::after{content:"";position:absolute;top:0;left:-8px;right:-8px;height:1px;background:var(--mat-datepicker-calendar-header-divider-color, transparent)}.mat-calendar-body-cell-content::before{margin:calc(calc(var(--mat-focus-indicator-border-width, 3px) + 3px)*-1)}.mat-calendar-body-cell:focus .mat-focus-indicator::before{content:""} -`],encapsulation:2,changeDetection:0})}return t})(),NU=new T("mat-datepicker-scroll-strategy",{providedIn:"root",factory:()=>{let t=u(de);return()=>wn(t)}});function Xbe(t){let n=u(de);return()=>wn(n)}var Jbe={provide:NU,deps:[],useFactory:Xbe},LU=(()=>{class t{_elementRef=u(q);_animationsDisabled=Ye();_changeDetectorRef=u(ye);_globalModel=u(w_);_dateAdapter=u(Li);_ngZone=u(ae);_rangeSelectionStrategy=u(OU,{optional:!0});_stateChanges;_model;_eventCleanups;_animationFallback;_calendar;color;datepicker;comparisonStart;comparisonEnd;startDateAccessibleName;endDateAccessibleName;_isAbove;_animationDone=new z;_isAnimating=!1;_closeButtonText;_closeButtonFocused;_actionsPortal=null;_dialogLabelId;constructor(){if(u(ut).load(Qr),this._closeButtonText=u(dp).closeCalendarLabel,!this._animationsDisabled){let e=this._elementRef.nativeElement,i=u(je);this._eventCleanups=this._ngZone.runOutsideAngular(()=>[i.listen(e,"animationstart",this._handleAnimationEvent),i.listen(e,"animationend",this._handleAnimationEvent),i.listen(e,"animationcancel",this._handleAnimationEvent)])}}ngAfterViewInit(){this._stateChanges=this.datepicker.stateChanges.subscribe(()=>{this._changeDetectorRef.markForCheck()}),this._calendar.focusActiveCell()}ngOnDestroy(){clearTimeout(this._animationFallback),this._eventCleanups?.forEach(e=>e()),this._stateChanges?.unsubscribe(),this._animationDone.complete()}_handleUserSelection(e){let i=this._model.selection,r=e.value,o=i instanceof ua;if(o&&this._rangeSelectionStrategy){let a=this._rangeSelectionStrategy.selectionFinished(r,i,e.event);this._model.updateSelection(a,this)}else r&&(o||!this._dateAdapter.sameDate(r,i))&&this._model.add(r);(!this._model||this._model.isComplete())&&!this._actionsPortal&&this.datepicker.close()}_handleUserDragDrop(e){this._model.updateSelection(e.value,this)}_startExitAnimation(){this._elementRef.nativeElement.classList.add("mat-datepicker-content-exit"),this._animationsDisabled?this._animationDone.next():(clearTimeout(this._animationFallback),this._animationFallback=setTimeout(()=>{this._isAnimating||this._animationDone.next()},200))}_handleAnimationEvent=e=>{let i=this._elementRef.nativeElement;e.target!==i||!e.animationName.startsWith("_mat-datepicker-content")||(clearTimeout(this._animationFallback),this._isAnimating=e.type==="animationstart",i.classList.toggle("mat-datepicker-content-animating",this._isAnimating),this._isAnimating||this._animationDone.next())};_getSelected(){return this._model.selection}_applyPendingSelection(){this._model!==this._globalModel&&this._globalModel.updateSelection(this._model.selection,this)}_assignActions(e,i){this._model=e?this._globalModel.clone():this._globalModel,this._actionsPortal=e,i&&this._changeDetectorRef.detectChanges()}static \u0275fac=function(i){return new(i||t)};static \u0275cmp=E({type:t,selectors:[["mat-datepicker-content"]],viewQuery:function(i,r){if(i&1&&ie(nA,5),i&2){let o;B(o=j())&&(r._calendar=o.first)}},hostAttrs:[1,"mat-datepicker-content"],hostVars:6,hostBindings:function(i,r){i&2&&(it(r.color?"mat-"+r.color:""),G("mat-datepicker-content-touch",r.datepicker.touchUi)("mat-datepicker-content-animations-enabled",!r._animationsDisabled))},inputs:{color:"color"},exportAs:["matDatepickerContent"],decls:5,vars:26,consts:[["cdkTrapFocus","","role","dialog",1,"mat-datepicker-content-container"],[3,"yearSelected","monthSelected","viewChanged","_userSelection","_userDragDrop","id","startAt","startView","minDate","maxDate","dateFilter","headerComponent","selected","dateClass","comparisonStart","comparisonEnd","startDateAccessibleName","endDateAccessibleName"],[3,"cdkPortalOutlet"],["type","button","matButton","elevated",1,"mat-datepicker-close-button",3,"focus","blur","click","color"]],template:function(i,r){i&1&&(h(0,"div",0)(1,"mat-calendar",1),S("yearSelected",function(a){return r.datepicker._selectYear(a)})("monthSelected",function(a){return r.datepicker._selectMonth(a)})("viewChanged",function(a){return r.datepicker._viewChanged(a)})("_userSelection",function(a){return r._handleUserSelection(a)})("_userDragDrop",function(a){return r._handleUserDragDrop(a)}),p(),R(2,Hbe,0,0,"ng-template",2),h(3,"button",3),S("focus",function(){return r._closeButtonFocused=!0})("blur",function(){return r._closeButtonFocused=!1})("click",function(){return r.datepicker.close()}),_(4),p()()),i&2&&(G("mat-datepicker-content-container-with-custom-header",r.datepicker.calendarHeaderComponent)("mat-datepicker-content-container-with-actions",r._actionsPortal),X("aria-modal",!0)("aria-labelledby",r._dialogLabelId??void 0),g(),it(r.datepicker.panelClass),y("id",r.datepicker.id)("startAt",r.datepicker.startAt)("startView",r.datepicker.startView)("minDate",r.datepicker._getMinDate())("maxDate",r.datepicker._getMaxDate())("dateFilter",r.datepicker._getDateFilter())("headerComponent",r.datepicker.calendarHeaderComponent)("selected",r._getSelected())("dateClass",r.datepicker.dateClass)("comparisonStart",r.comparisonStart)("comparisonEnd",r.comparisonEnd)("startDateAccessibleName",r.startDateAccessibleName)("endDateAccessibleName",r.endDateAccessibleName),g(),y("cdkPortalOutlet",r._actionsPortal),g(),G("cdk-visually-hidden",!r._closeButtonFocused),y("color",r.color||"primary"),g(),H(r._closeButtonText))},dependencies:[vk,nA,yr,kt],styles:[`@keyframes _mat-datepicker-content-dropdown-enter{from{opacity:0;transform:scaleY(0.8)}to{opacity:1;transform:none}}@keyframes _mat-datepicker-content-dialog-enter{from{opacity:0;transform:scale(0.8)}to{opacity:1;transform:none}}@keyframes _mat-datepicker-content-exit{from{opacity:1}to{opacity:0}}.mat-datepicker-content{display:block;background-color:var(--mat-datepicker-calendar-container-background-color, var(--mat-sys-surface-container-high));color:var(--mat-datepicker-calendar-container-text-color, var(--mat-sys-on-surface));box-shadow:var(--mat-datepicker-calendar-container-elevation-shadow, 0px 0px 0px 0px rgba(0, 0, 0, 0.2), 0px 0px 0px 0px rgba(0, 0, 0, 0.14), 0px 0px 0px 0px rgba(0, 0, 0, 0.12));border-radius:var(--mat-datepicker-calendar-container-shape, var(--mat-sys-corner-large))}.mat-datepicker-content.mat-datepicker-content-animations-enabled{animation:_mat-datepicker-content-dropdown-enter 120ms cubic-bezier(0, 0, 0.2, 1)}.mat-datepicker-content .mat-calendar{width:296px;height:354px}.mat-datepicker-content .mat-datepicker-content-container-with-custom-header .mat-calendar{height:auto}.mat-datepicker-content .mat-datepicker-close-button{position:absolute;top:100%;left:0;margin-top:8px}.mat-datepicker-content-animating .mat-datepicker-content .mat-datepicker-close-button{display:none}.mat-datepicker-content-container{display:flex;flex-direction:column;justify-content:space-between}.mat-datepicker-content-touch{display:block;max-height:80vh;box-shadow:var(--mat-datepicker-calendar-container-touch-elevation-shadow, 0px 0px 0px 0px rgba(0, 0, 0, 0.2), 0px 0px 0px 0px rgba(0, 0, 0, 0.14), 0px 0px 0px 0px rgba(0, 0, 0, 0.12));border-radius:var(--mat-datepicker-calendar-container-touch-shape, var(--mat-sys-corner-extra-large));position:relative;overflow:visible}.mat-datepicker-content-touch.mat-datepicker-content-animations-enabled{animation:_mat-datepicker-content-dialog-enter 150ms cubic-bezier(0, 0, 0.2, 1)}.mat-datepicker-content-touch .mat-datepicker-content-container{min-height:312px;max-height:788px;min-width:250px;max-width:750px}.mat-datepicker-content-touch .mat-calendar{width:100%;height:auto}.mat-datepicker-content-exit.mat-datepicker-content-animations-enabled{animation:_mat-datepicker-content-exit 100ms linear}@media all and (orientation: landscape){.mat-datepicker-content-touch .mat-datepicker-content-container{width:64vh;height:80vh}}@media all and (orientation: portrait){.mat-datepicker-content-touch .mat-datepicker-content-container{width:80vw;height:100vw}.mat-datepicker-content-touch .mat-datepicker-content-container-with-actions{height:115vw}} -`],encapsulation:2,changeDetection:0})}return t})(),TU=(()=>{class t{_injector=u(de);_viewContainerRef=u(nt);_dateAdapter=u(Li,{optional:!0});_dir=u(Vt,{optional:!0});_model=u(w_);_animationsDisabled=Ye();_scrollStrategy=u(NU);_inputStateChanges=ke.EMPTY;_document=u(ge);calendarHeaderComponent;get startAt(){return this._startAt||(this.datepickerInput?this.datepickerInput.getStartValue():null)}set startAt(e){this._startAt=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e))}_startAt;startView="month";get color(){return this._color||(this.datepickerInput?this.datepickerInput.getThemePalette():void 0)}set color(e){this._color=e}_color;touchUi=!1;get disabled(){return this._disabled===void 0&&this.datepickerInput?this.datepickerInput.disabled:!!this._disabled}set disabled(e){e!==this._disabled&&(this._disabled=e,this.stateChanges.next(void 0))}_disabled;xPosition="start";yPosition="below";restoreFocus=!0;yearSelected=new U;monthSelected=new U;viewChanged=new U(!0);dateClass;openedStream=new U;closedStream=new U;get panelClass(){return this._panelClass}set panelClass(e){this._panelClass=UL(e)}_panelClass;get opened(){return this._opened}set opened(e){e?this.open():this.close()}_opened=!1;id=u(Ze).getId("mat-datepicker-");_getMinDate(){return this.datepickerInput&&this.datepickerInput.min}_getMaxDate(){return this.datepickerInput&&this.datepickerInput.max}_getDateFilter(){return this.datepickerInput&&this.datepickerInput.dateFilter}_overlayRef;_componentRef;_focusedElementBeforeOpen=null;_backdropHarnessClass=`${this.id}-backdrop`;_actionsPortal;datepickerInput;stateChanges=new z;_changeDetectorRef=u(ye);constructor(){this._dateAdapter,this._model.selectionChanged.subscribe(()=>{this._changeDetectorRef.markForCheck()})}ngOnChanges(e){let i=e.xPosition||e.yPosition;if(i&&!i.firstChange&&this._overlayRef){let r=this._overlayRef.getConfig().positionStrategy;r instanceof _h&&(this._setConnectedPositions(r),this.opened&&this._overlayRef.updatePosition())}this.stateChanges.next(void 0)}ngOnDestroy(){this._destroyOverlay(),this.close(),this._inputStateChanges.unsubscribe(),this.stateChanges.complete()}select(e){this._model.add(e)}_selectYear(e){this.yearSelected.emit(e)}_selectMonth(e){this.monthSelected.emit(e)}_viewChanged(e){this.viewChanged.emit(e)}registerInput(e){return this.datepickerInput,this._inputStateChanges.unsubscribe(),this.datepickerInput=e,this._inputStateChanges=e.stateChanges.subscribe(()=>this.stateChanges.next(void 0)),this._model}registerActions(e){this._actionsPortal,this._actionsPortal=e,this._componentRef?.instance._assignActions(e,!0)}removeActions(e){e===this._actionsPortal&&(this._actionsPortal=null,this._componentRef?.instance._assignActions(null,!0))}open(){this._opened||this.disabled||this._componentRef?.instance._isAnimating||(this.datepickerInput,this._focusedElementBeforeOpen=_o(),this._openOverlay(),this._opened=!0,this.openedStream.emit())}close(){if(!this._opened||this._componentRef?.instance._isAnimating)return;let e=this.restoreFocus&&this._focusedElementBeforeOpen&&typeof this._focusedElementBeforeOpen.focus=="function",i=()=>{this._opened&&(this._opened=!1,this.closedStream.emit())};if(this._componentRef){let{instance:r,location:o}=this._componentRef;r._animationDone.pipe(lt(1)).subscribe(()=>{let a=this._document.activeElement;e&&(!a||a===this._document.activeElement||o.nativeElement.contains(a))&&this._focusedElementBeforeOpen.focus(),this._focusedElementBeforeOpen=null,this._destroyOverlay()}),r._startExitAnimation()}e?setTimeout(i):i()}_applyPendingSelection(){this._componentRef?.instance?._applyPendingSelection()}_forwardContentValues(e){e.datepicker=this,e.color=this.color,e._dialogLabelId=this.datepickerInput.getOverlayLabelId(),e._assignActions(this._actionsPortal,!1)}_openOverlay(){this._destroyOverlay();let e=this.touchUi,i=new Zr(LU,this._viewContainerRef),r=this._overlayRef=Nr(this._injector,new Fr({positionStrategy:e?this._getDialogStrategy():this._getDropdownStrategy(),hasBackdrop:!0,backdropClass:[e?"cdk-overlay-dark-backdrop":"mat-overlay-transparent-backdrop",this._backdropHarnessClass],direction:this._dir||"ltr",scrollStrategy:e?uc(this._injector):this._scrollStrategy(),panelClass:`mat-datepicker-${e?"dialog":"popup"}`,disableAnimations:this._animationsDisabled}));this._getCloseStream(r).subscribe(o=>{o&&o.preventDefault(),this.close()}),r.keydownEvents().subscribe(o=>{let a=o.keyCode;(a===38||a===40||a===37||a===39||a===33||a===34)&&o.preventDefault()}),this._componentRef=r.attach(i),this._forwardContentValues(this._componentRef.instance),e||pt(()=>{r.updatePosition()},{injector:this._injector})}_destroyOverlay(){this._overlayRef&&(this._overlayRef.dispose(),this._overlayRef=this._componentRef=null)}_getDialogStrategy(){return Ds(this._injector).centerHorizontally().centerVertically()}_getDropdownStrategy(){let e=Fa(this._injector,this.datepickerInput.getConnectedOverlayOrigin()).withTransformOriginOn(".mat-datepicker-content").withFlexibleDimensions(!1).withViewportMargin(8).withLockedPosition();return this._setConnectedPositions(e)}_setConnectedPositions(e){let i=this.xPosition==="end"?"end":"start",r=i==="start"?"end":"start",o=this.yPosition==="above"?"bottom":"top",a=o==="top"?"bottom":"top";return e.withPositions([{originX:i,originY:a,overlayX:i,overlayY:o},{originX:i,originY:o,overlayX:i,overlayY:a},{originX:r,originY:a,overlayX:r,overlayY:o},{originX:r,originY:o,overlayX:r,overlayY:a}])}_getCloseStream(e){let i=["ctrlKey","shiftKey","metaKey"];return Je(e.backdropClick(),e.detachments(),e.keydownEvents().pipe(ce(r=>r.keyCode===27&&!Ft(r)||this.datepickerInput&&Ft(r,"altKey")&&r.keyCode===38&&i.every(o=>!Ft(r,o)))))}static \u0275fac=function(i){return new(i||t)};static \u0275dir=F({type:t,inputs:{calendarHeaderComponent:"calendarHeaderComponent",startAt:"startAt",startView:"startView",color:"color",touchUi:[2,"touchUi","touchUi",V],disabled:[2,"disabled","disabled",V],xPosition:"xPosition",yPosition:"yPosition",restoreFocus:[2,"restoreFocus","restoreFocus",V],dateClass:"dateClass",panelClass:"panelClass",opened:[2,"opened","opened",V]},outputs:{yearSelected:"yearSelected",monthSelected:"monthSelected",viewChanged:"viewChanged",openedStream:"opened",closedStream:"closed"},features:[Ae]})}return t})(),VU=(()=>{class t extends TU{static \u0275fac=(()=>{let e;return function(r){return(e||(e=fe(t)))(r||t)}})();static \u0275cmp=E({type:t,selectors:[["mat-datepicker"]],exportAs:["matDatepicker"],features:[Ce([AU,{provide:TU,useExisting:t}]),le],decls:0,vars:0,template:function(i,r){},encapsulation:2,changeDetection:0})}return t})(),lp=class{target;targetElement;value;constructor(n,e){this.target=n,this.targetElement=e,this.value=this.target.value}},eve=(()=>{class t{_elementRef=u(q);_dateAdapter=u(Li,{optional:!0});_dateFormats=u(xs,{optional:!0});_isInitialized;get value(){return this._model?this._getValueFromModel(this._model.selection):this._pendingValue}set value(e){this._assignValueProgrammatically(e)}_model;get disabled(){return!!this._disabled||this._parentDisabled()}set disabled(e){let i=e,r=this._elementRef.nativeElement;this._disabled!==i&&(this._disabled=i,this.stateChanges.next(void 0)),i&&this._isInitialized&&r.blur&&r.blur()}_disabled;dateChange=new U;dateInput=new U;stateChanges=new z;_onTouched=()=>{};_validatorOnChange=()=>{};_cvaOnChange=()=>{};_valueChangesSubscription=ke.EMPTY;_localeSubscription=ke.EMPTY;_pendingValue;_parseValidator=()=>this._lastValueValid?null:{matDatepickerParse:{text:this._elementRef.nativeElement.value}};_filterValidator=e=>{let i=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e.value));return!i||this._matchesFilter(i)?null:{matDatepickerFilter:!0}};_minValidator=e=>{let i=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e.value)),r=this._getMinDate();return!r||!i||this._dateAdapter.compareDate(r,i)<=0?null:{matDatepickerMin:{min:r,actual:i}}};_maxValidator=e=>{let i=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e.value)),r=this._getMaxDate();return!r||!i||this._dateAdapter.compareDate(r,i)>=0?null:{matDatepickerMax:{max:r,actual:i}}};_getValidators(){return[this._parseValidator,this._minValidator,this._maxValidator,this._filterValidator]}_registerModel(e){this._model=e,this._valueChangesSubscription.unsubscribe(),this._pendingValue&&this._assignValue(this._pendingValue),this._valueChangesSubscription=this._model.selectionChanged.subscribe(i=>{if(this._shouldHandleChangeEvent(i)){let r=this._getValueFromModel(i.selection);this._lastValueValid=this._isValidValue(r),this._cvaOnChange(r),this._onTouched(),this._formatValue(r),this.dateInput.emit(new lp(this,this._elementRef.nativeElement)),this.dateChange.emit(new lp(this,this._elementRef.nativeElement))}})}_lastValueValid=!1;constructor(){this._localeSubscription=this._dateAdapter.localeChanges.subscribe(()=>{this._assignValueProgrammatically(this.value)})}ngAfterViewInit(){this._isInitialized=!0}ngOnChanges(e){tve(e,this._dateAdapter)&&this.stateChanges.next(void 0)}ngOnDestroy(){this._valueChangesSubscription.unsubscribe(),this._localeSubscription.unsubscribe(),this.stateChanges.complete()}registerOnValidatorChange(e){this._validatorOnChange=e}validate(e){return this._validator?this._validator(e):null}writeValue(e){this._assignValueProgrammatically(e)}registerOnChange(e){this._cvaOnChange=e}registerOnTouched(e){this._onTouched=e}setDisabledState(e){this.disabled=e}_onKeydown(e){let i=["ctrlKey","shiftKey","metaKey"];Ft(e,"altKey")&&e.keyCode===40&&i.every(o=>!Ft(e,o))&&!this._elementRef.nativeElement.readOnly&&(this._openPopup(),e.preventDefault())}_onInput(e){let i=e.target.value,r=this._lastValueValid,o=this._dateAdapter.parse(i,this._dateFormats.parse.dateInput);this._lastValueValid=this._isValidValue(o),o=this._dateAdapter.getValidDateOrNull(o);let a=!this._dateAdapter.sameDate(o,this.value);!o||a?this._cvaOnChange(o):(i&&!this.value&&this._cvaOnChange(o),r!==this._lastValueValid&&this._validatorOnChange()),a&&(this._assignValue(o),this.dateInput.emit(new lp(this,this._elementRef.nativeElement)))}_onChange(){this.dateChange.emit(new lp(this,this._elementRef.nativeElement))}_onBlur(){this.value&&this._formatValue(this.value),this._onTouched()}_formatValue(e){this._elementRef.nativeElement.value=e!=null?this._dateAdapter.format(e,this._dateFormats.display.dateInput):""}_assignValue(e){this._model?(this._assignValueToModel(e),this._pendingValue=null):this._pendingValue=e}_isValidValue(e){return!e||this._dateAdapter.isValid(e)}_parentDisabled(){return!1}_assignValueProgrammatically(e){e=this._dateAdapter.deserialize(e),this._lastValueValid=this._isValidValue(e),e=this._dateAdapter.getValidDateOrNull(e),this._assignValue(e),this._formatValue(e)}_matchesFilter(e){let i=this._getDateFilter();return!i||i(e)}static \u0275fac=function(i){return new(i||t)};static \u0275dir=F({type:t,inputs:{value:"value",disabled:[2,"disabled","disabled",V]},outputs:{dateChange:"dateChange",dateInput:"dateInput"},features:[Ae]})}return t})();function tve(t,n){let e=Object.keys(t);for(let i of e){let{previousValue:r,currentValue:o}=t[i];if(n.isDateInstance(r)&&n.isDateInstance(o)){if(!n.sameDate(r,o))return!0}else return!0}return!1}var ive={provide:tr,useExisting:Kt(()=>Cw),multi:!0},nve={provide:ea,useExisting:Kt(()=>Cw),multi:!0},Cw=(()=>{class t extends eve{_formField=u(Xo,{optional:!0});_closedSubscription=ke.EMPTY;_openedSubscription=ke.EMPTY;set matDatepicker(e){e&&(this._datepicker=e,this._ariaOwns.set(e.opened?e.id:null),this._closedSubscription=e.closedStream.subscribe(()=>{this._onTouched(),this._ariaOwns.set(null)}),this._openedSubscription=e.openedStream.subscribe(()=>{this._ariaOwns.set(e.id)}),this._registerModel(e.registerInput(this)))}_datepicker;_ariaOwns=he(null);get min(){return this._min}set min(e){let i=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e));this._dateAdapter.sameDate(i,this._min)||(this._min=i,this._validatorOnChange())}_min;get max(){return this._max}set max(e){let i=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e));this._dateAdapter.sameDate(i,this._max)||(this._max=i,this._validatorOnChange())}_max;get dateFilter(){return this._dateFilter}set dateFilter(e){let i=this._matchesFilter(this.value);this._dateFilter=e,this._matchesFilter(this.value)!==i&&this._validatorOnChange()}_dateFilter;_validator;constructor(){super(),this._validator=Le.compose(super._getValidators())}getConnectedOverlayOrigin(){return this._formField?this._formField.getConnectedOverlayOrigin():this._elementRef}getOverlayLabelId(){return this._formField?this._formField.getLabelId():this._elementRef.nativeElement.getAttribute("aria-labelledby")}getThemePalette(){return this._formField?this._formField.color:void 0}getStartValue(){return this.value}ngOnDestroy(){super.ngOnDestroy(),this._closedSubscription.unsubscribe(),this._openedSubscription.unsubscribe()}_openPopup(){this._datepicker&&this._datepicker.open()}_getValueFromModel(e){return e}_assignValueToModel(e){this._model&&this._model.updateSelection(e,this)}_getMinDate(){return this._min}_getMaxDate(){return this._max}_getDateFilter(){return this._dateFilter}_shouldHandleChangeEvent(e){return e.source!==this}static \u0275fac=function(i){return new(i||t)};static \u0275dir=F({type:t,selectors:[["input","matDatepicker",""]],hostAttrs:[1,"mat-datepicker-input"],hostVars:6,hostBindings:function(i,r){i&1&&S("input",function(a){return r._onInput(a)})("change",function(){return r._onChange()})("blur",function(){return r._onBlur()})("keydown",function(a){return r._onKeydown(a)}),i&2&&(si("disabled",r.disabled),X("aria-haspopup",r._datepicker?"dialog":null)("aria-owns",r._ariaOwns())("min",r.min?r._dateAdapter.toIso8601(r.min):null)("max",r.max?r._dateAdapter.toIso8601(r.max):null)("data-mat-calendar",r._datepicker?r._datepicker.id:null))},inputs:{matDatepicker:"matDatepicker",min:"min",max:"max",dateFilter:[0,"matDatepickerFilter","dateFilter"]},exportAs:["matDatepickerInput"],features:[Ce([ive,nve,{provide:wh,useExisting:t}]),le]})}return t})(),rve=(()=>{class t{static \u0275fac=function(i){return new(i||t)};static \u0275dir=F({type:t,selectors:[["","matDatepickerToggleIcon",""]]})}return t})(),rA=(()=>{class t{_intl=u(dp);_changeDetectorRef=u(ye);_stateChanges=ke.EMPTY;datepicker;tabIndex;ariaLabel;get disabled(){return this._disabled===void 0&&this.datepicker?this.datepicker.disabled:!!this._disabled}set disabled(e){this._disabled=e}_disabled;disableRipple;_customIcon;_button;constructor(){let e=u(new Ii("tabindex"),{optional:!0}),i=Number(e);this.tabIndex=i||i===0?i:null}ngOnChanges(e){e.datepicker&&this._watchStateChanges()}ngOnDestroy(){this._stateChanges.unsubscribe()}ngAfterContentInit(){this._watchStateChanges()}_open(e){this.datepicker&&!this.disabled&&(this.datepicker.open(),e.stopPropagation())}_watchStateChanges(){let e=this.datepicker?this.datepicker.stateChanges:Q(),i=this.datepicker&&this.datepicker.datepickerInput?this.datepicker.datepickerInput.stateChanges:Q(),r=this.datepicker?Je(this.datepicker.openedStream,this.datepicker.closedStream):Q();this._stateChanges.unsubscribe(),this._stateChanges=Je(this._intl.changes,e,i,r).subscribe(()=>this._changeDetectorRef.markForCheck())}static \u0275fac=function(i){return new(i||t)};static \u0275cmp=E({type:t,selectors:[["mat-datepicker-toggle"]],contentQueries:function(i,r,o){if(i&1&&xe(o,rve,5),i&2){let a;B(a=j())&&(r._customIcon=a.first)}},viewQuery:function(i,r){if(i&1&&ie(zbe,5),i&2){let o;B(o=j())&&(r._button=o.first)}},hostAttrs:[1,"mat-datepicker-toggle"],hostVars:8,hostBindings:function(i,r){i&1&&S("click",function(a){return r._open(a)}),i&2&&(X("tabindex",null)("data-mat-calendar",r.datepicker?r.datepicker.id:null),G("mat-datepicker-toggle-active",r.datepicker&&r.datepicker.opened)("mat-accent",r.datepicker&&r.datepicker.color==="accent")("mat-warn",r.datepicker&&r.datepicker.color==="warn"))},inputs:{datepicker:[0,"for","datepicker"],tabIndex:"tabIndex",ariaLabel:[0,"aria-label","ariaLabel"],disabled:[2,"disabled","disabled",V],disableRipple:"disableRipple"},exportAs:["matDatepickerToggle"],features:[Ae],ngContentSelectors:$be,decls:4,vars:7,consts:[["button",""],["matIconButton","","type","button",3,"tabIndex","disabled","disableRipple"],["viewBox","0 0 24 24","width","24px","height","24px","fill","currentColor","focusable","false","aria-hidden","true",1,"mat-datepicker-toggle-default-icon"],["d","M19 3h-1V1h-2v2H8V1H6v2H5c-1.11 0-1.99.9-1.99 2L3 19c0 1.1.89 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm0 16H5V8h14v11zM7 10h5v5H7z"]],template:function(i,r){i&1&&(Me(Ube),h(0,"button",1,0),N(2,Wbe,2,0,":svg:svg",2),oe(3),p()),i&2&&(y("tabIndex",r.disabled?-1:r.tabIndex)("disabled",r.disabled)("disableRipple",r.disableRipple),X("aria-haspopup",r.datepicker?"dialog":null)("aria-label",r.ariaLabel||r._intl.openCalendarLabel)("aria-expanded",r.datepicker?r.datepicker.opened:null),g(2),L(r._customIcon?-1:2))},dependencies:[ti],styles:[`.mat-datepicker-toggle{pointer-events:auto;color:var(--mat-datepicker-toggle-icon-color, var(--mat-sys-on-surface-variant))}.mat-datepicker-toggle button{color:inherit}.mat-datepicker-toggle-active{color:var(--mat-datepicker-toggle-active-state-icon-color, var(--mat-sys-primary))}@media(forced-colors: active){.mat-datepicker-toggle-default-icon{color:CanvasText}} -`],encapsulation:2,changeDetection:0})}return t})();var BU=(()=>{class t{static \u0275fac=function(i){return new(i||t)};static \u0275mod=ee({type:t});static \u0275inj=J({providers:[dp,Jbe],imports:[ze,er,ll,Co,we,LU,rA,FU,vr]})}return t})();function ave(t,n){t&1&&(h(0,"div",1),k(1,"mat-spinner"),p())}function sve(t,n){t&1&&(h(0,"mat-error"),_(1," Employee number is required "),p())}function lve(t,n){t&1&&(h(0,"mat-error"),_(1," First name is required "),p())}function cve(t,n){t&1&&(h(0,"mat-error"),_(1," Last name is required "),p())}function dve(t,n){t&1&&(h(0,"mat-error"),_(1," Date of birth is required "),p())}function uve(t,n){t&1&&(h(0,"mat-error"),_(1," Email is required "),p())}function mve(t,n){t&1&&(h(0,"mat-error"),_(1," Please enter a valid email "),p())}function hve(t,n){t&1&&(h(0,"mat-error"),_(1," Phone number is required "),p())}function pve(t,n){if(t&1&&(h(0,"mat-option",25),_(1),p()),t&2){let e=n.$implicit;y("value",e.value),g(),ve(" ",e.label," ")}}function fve(t,n){t&1&&(h(0,"mat-error"),_(1," Gender is required "),p())}function gve(t,n){if(t&1&&(h(0,"mat-option",25),_(1),p()),t&2){let e=n.$implicit;y("value",e.id),g(),ve(" ",e.name," ")}}function _ve(t,n){t&1&&(h(0,"mat-error"),_(1," Department is required "),p())}function bve(t,n){if(t&1&&(h(0,"mat-option",25),_(1),p()),t&2){let e=n.$implicit;y("value",e.id),g(),ve(" ",e.positionTitle," ")}}function vve(t,n){t&1&&(h(0,"mat-error"),_(1," Position is required "),p())}function yve(t,n){t&1&&(h(0,"mat-error"),_(1," Salary is required "),p())}function xve(t,n){t&1&&(h(0,"mat-error"),_(1," Salary must be greater than 0 "),p())}var oA=(()=>{let n=class n{constructor(){this.fb=u(eo),this.router=u(Re),this.route=u(wi),this.snackBar=u(di),this.employeeService=u(ap),this.positionService=u(Bc),this.departmentService=u(Vs),this.loading=!1,this.isEditMode=!1,this.positions=[],this.departments=[],this.genderOptions=[{value:Ou.Male,label:"Male"},{value:Ou.Female,label:"Female"}]}ngOnInit(){this.initForm(),this.loadDependencies(),this.checkEditMode()}initForm(){this.employeeForm=this.fb.group({employeeNumber:["",[Le.required,Le.maxLength(50)]],prefix:["",Le.maxLength(10)],firstName:["",[Le.required,Le.maxLength(100)]],middleName:["",Le.maxLength(100)],lastName:["",[Le.required,Le.maxLength(100)]],birthday:[null,Le.required],gender:[Ou.Male,Le.required],email:["",[Le.required,Le.email,Le.maxLength(255)]],phone:["",[Le.required,Le.maxLength(20)]],salary:[0,[Le.required,Le.min(0)]],positionId:["",Le.required],departmentId:["",Le.required]})}loadDependencies(){this.departmentService.getAll().subscribe({next:i=>{this.departments=i},error:i=>{console.error("Error loading departments:",i),this.showMessage("Error loading departments")}}),this.positionService.getAll().subscribe({next:i=>{this.positions=i},error:i=>{console.error("Error loading positions:",i),this.showMessage("Error loading positions")}})}checkEditMode(){this.employeeId=this.route.snapshot.paramMap.get("id")||void 0,this.isEditMode=!!this.employeeId,this.isEditMode&&this.employeeId&&this.loadEmployee(this.employeeId)}loadEmployee(i){this.loading=!0,this.employeeService.getById(i).subscribe({next:r=>{this.employeeForm.patchValue({employeeNumber:r.employeeNumber,prefix:r.prefix,firstName:r.firstName,middleName:r.middleName,lastName:r.lastName,birthday:r.birthday||r.dateOfBirth,gender:r.gender,email:r.email,phone:r.phone||r.phoneNumber,salary:r.salary,positionId:r.positionId,departmentId:r.departmentId}),this.loading=!1},error:r=>{console.error("Error loading employee:",r),this.showMessage("Error loading employee"),this.loading=!1}})}onSubmit(){if(this.employeeForm.invalid){this.employeeForm.markAllAsTouched();return}if(this.loading=!0,this.isEditMode&&this.employeeId){let i=M({id:this.employeeId},this.employeeForm.value);this.employeeService.updateEmployee(i).subscribe({next:()=>{this.showMessage("Employee updated successfully"),this.router.navigate(["/employees",this.employeeId])},error:r=>{console.error("Error updating employee:",r),this.showMessage("Error updating employee"),this.loading=!1}})}else{let i=this.employeeForm.value;this.employeeService.createEmployee(i).subscribe({next:r=>{console.log("Employee created - Response:",r),console.log("Employee ID:",r?.id),this.showMessage("Employee created successfully"),r?.id?(console.log("Navigating to detail page:","/employees/"+r.id),this.router.navigate(["/employees",r.id])):(console.warn("No employee ID returned, navigating to list page"),this.router.navigate(["/employees"])),this.loading=!1},error:r=>{console.error("Error creating employee:",r),this.showMessage("Error creating employee"),this.loading=!1}})}}onCancel(){this.router.navigate(["/employees"])}showMessage(i){this.snackBar.open(i,"Close",{duration:3e3,horizontalPosition:"end",verticalPosition:"top"})}getFormTitle(){return this.isEditMode?"Edit Employee":"Create Employee"}};n.\u0275fac=function(r){return new(r||n)},n.\u0275cmp=E({type:n,selectors:[["app-employee-form"]],decls:94,vars:22,consts:[["dobPicker",""],[1,"loading-overlay"],[3,"ngSubmit","formGroup"],[1,"form-section"],[1,"form-row"],["appearance","outline"],["matInput","","formControlName","employeeNumber"],[4,"ngIf"],["matInput","","formControlName","prefix","placeholder","Mr., Mrs., Dr."],["matInput","","formControlName","firstName"],["matInput","","formControlName","middleName"],["matInput","","formControlName","lastName"],["matInput","","formControlName","birthday",3,"matDatepicker"],["matIconSuffix","",3,"for"],["matInput","","type","email","formControlName","email"],["matInput","","formControlName","phone"],["formControlName","gender"],[3,"value",4,"ngFor","ngForOf"],["formControlName","departmentId"],["formControlName","positionId"],["matInput","","type","number","formControlName","salary"],["matTextPrefix",""],[1,"form-actions"],["type","button","mat-stroked-button","",3,"click"],["type","submit","mat-raised-button","","color","primary",3,"disabled"],[3,"value"]],template:function(r,o){if(r&1){let a=Y();k(0,"page-header"),h(1,"mat-card")(2,"mat-card-header")(3,"mat-card-title"),_(4),p()(),h(5,"mat-card-content"),N(6,ave,2,0,"div",1),h(7,"form",2),S("ngSubmit",function(){return I(a),A(o.onSubmit())}),h(8,"div",3)(9,"h3"),_(10,"Personal Information"),p(),h(11,"div",4)(12,"mat-form-field",5)(13,"mat-label"),_(14,"Employee Number"),p(),k(15,"input",6),R(16,sve,2,0,"mat-error",7),p(),h(17,"mat-form-field",5)(18,"mat-label"),_(19,"Prefix"),p(),k(20,"input",8),p()(),h(21,"div",4)(22,"mat-form-field",5)(23,"mat-label"),_(24,"First Name"),p(),k(25,"input",9),R(26,lve,2,0,"mat-error",7),p(),h(27,"mat-form-field",5)(28,"mat-label"),_(29,"Middle Name"),p(),k(30,"input",10),p()(),h(31,"div",4)(32,"mat-form-field",5)(33,"mat-label"),_(34,"Last Name"),p(),k(35,"input",11),R(36,cve,2,0,"mat-error",7),p(),h(37,"mat-form-field",5)(38,"mat-label"),_(39,"Date of Birth"),p(),k(40,"input",12)(41,"mat-datepicker-toggle",13)(42,"mat-datepicker",null,0),R(44,dve,2,0,"mat-error",7),p()(),h(45,"div",4)(46,"mat-form-field",5)(47,"mat-label"),_(48,"Email"),p(),k(49,"input",14),R(50,uve,2,0,"mat-error",7)(51,mve,2,0,"mat-error",7),p(),h(52,"mat-form-field",5)(53,"mat-label"),_(54,"Phone Number"),p(),k(55,"input",15),R(56,hve,2,0,"mat-error",7),p()(),h(57,"div",4)(58,"mat-form-field",5)(59,"mat-label"),_(60,"Gender"),p(),h(61,"mat-select",16),R(62,pve,2,2,"mat-option",17),p(),R(63,fve,2,0,"mat-error",7),p()()(),h(64,"div",3)(65,"h3"),_(66,"Employment Information"),p(),h(67,"div",4)(68,"mat-form-field",5)(69,"mat-label"),_(70,"Department"),p(),h(71,"mat-select",18),R(72,gve,2,2,"mat-option",17),p(),R(73,_ve,2,0,"mat-error",7),p(),h(74,"mat-form-field",5)(75,"mat-label"),_(76,"Position"),p(),h(77,"mat-select",19),R(78,bve,2,2,"mat-option",17),p(),R(79,vve,2,0,"mat-error",7),p()(),h(80,"div",4)(81,"mat-form-field",5)(82,"mat-label"),_(83,"Salary"),p(),k(84,"input",20),h(85,"span",21),_(86,"$\xA0"),p(),R(87,yve,2,0,"mat-error",7)(88,xve,2,0,"mat-error",7),p()()(),h(89,"div",22)(90,"button",23),S("click",function(){return I(a),A(o.onCancel())}),_(91," Cancel "),p(),h(92,"button",24),_(93),p()()()()()}if(r&2){let a,s,l,c,d,m,f,b,v,w,x,D,P=Se(43);g(4),H(o.getFormTitle()),g(2),L(o.loading?6:-1),g(),y("formGroup",o.employeeForm),g(9),y("ngIf",(a=o.employeeForm.get("employeeNumber"))==null?null:a.hasError("required")),g(10),y("ngIf",(s=o.employeeForm.get("firstName"))==null?null:s.hasError("required")),g(10),y("ngIf",(l=o.employeeForm.get("lastName"))==null?null:l.hasError("required")),g(4),y("matDatepicker",P),g(),y("for",P),g(3),y("ngIf",(c=o.employeeForm.get("birthday"))==null?null:c.hasError("required")),g(6),y("ngIf",(d=o.employeeForm.get("email"))==null?null:d.hasError("required")),g(),y("ngIf",(m=o.employeeForm.get("email"))==null?null:m.hasError("email")),g(5),y("ngIf",(f=o.employeeForm.get("phone"))==null?null:f.hasError("required")),g(6),y("ngForOf",o.genderOptions),g(),y("ngIf",(b=o.employeeForm.get("gender"))==null?null:b.hasError("required")),g(9),y("ngForOf",o.departments),g(),y("ngIf",(v=o.employeeForm.get("departmentId"))==null?null:v.hasError("required")),g(5),y("ngForOf",o.positions),g(),y("ngIf",(w=o.employeeForm.get("positionId"))==null?null:w.hasError("required")),g(8),y("ngIf",(x=o.employeeForm.get("salary"))==null?null:x.hasError("required")),g(),y("ngIf",(D=o.employeeForm.get("salary"))==null?null:D.hasError("min")),g(4),y("disabled",o.loading),g(),ve(" ",o.isEditMode?"Update":"Create"," ")}},dependencies:[gt,qr,li,zn,Jr,Qi,cu,ei,Xr,Ki,Lr,ze,kt,$t,zt,Ut,Jt,Xt,$i,Oi,sn,xo,nu,ru,rr,hn,fc,Na,xn,BU,VU,Cw,rA,KL,Si,ki,pi,ni],styles:["mat-card[_ngcontent-%COMP%]{margin:16px;max-width:1200px}mat-card-header[_ngcontent-%COMP%]{padding:16px;border-bottom:1px solid rgba(0,0,0,.12);margin-bottom:24px}mat-card-header[_ngcontent-%COMP%] mat-card-title[_ngcontent-%COMP%]{font-size:20px;font-weight:500;margin:0}mat-card-content[_ngcontent-%COMP%]{padding:24px;position:relative}.loading-overlay[_ngcontent-%COMP%]{position:absolute;inset:0;background-color:#fffc;display:flex;align-items:center;justify-content:center;z-index:1000}form[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:24px}.form-section[_ngcontent-%COMP%] h3[_ngcontent-%COMP%]{font-size:16px;font-weight:500;margin:0 0 16px;color:#000000de}.form-row[_ngcontent-%COMP%]{display:grid;grid-template-columns:1fr 1fr;gap:16px;margin-bottom:8px}@media (max-width: 768px){.form-row[_ngcontent-%COMP%]{grid-template-columns:1fr}}mat-form-field[_ngcontent-%COMP%]{width:100%}mat-form-field.full-width[_ngcontent-%COMP%]{grid-column:1/-1}.form-actions[_ngcontent-%COMP%]{display:flex;justify-content:flex-end;gap:12px;margin-top:24px;padding-top:24px;border-top:1px solid rgba(0,0,0,.12)}.form-actions[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{min-width:120px}"]});let t=n;return t})();var jU=()=>["HRAdmin","Manager"],Cve=()=>[5,10,25,50,100],wve=()=>["HRAdmin"];function Dve(t,n){if(t&1){let e=Y();h(0,"button",14),S("click",function(){I(e);let r=C();return A(r.createDepartment())}),h(1,"mat-icon"),_(2,"add"),p(),_(3," Add Department "),p()}}function Eve(t,n){if(t&1&&(h(0,"mat-option",15),_(1),p()),t&2){let e=n.$implicit;y("value",e),g(),ve(" ",e," ")}}function Mve(t,n){t&1&&(h(0,"div",16),k(1,"mat-spinner"),p())}function kve(t,n){t&1&&(h(0,"th",25),_(1,"Name"),p())}function Sve(t,n){if(t&1&&(h(0,"td",26),_(1),p()),t&2){let e=n.$implicit;g(),H(e.name)}}function Tve(t,n){t&1&&(h(0,"th",25),_(1,"Actions"),p())}function Ive(t,n){if(t&1){let e=Y();h(0,"button",31),S("click",function(){I(e);let r=C().$implicit,o=C(2);return A(o.editDepartment(r))}),h(1,"mat-icon"),_(2,"edit"),p()()}}function Ave(t,n){if(t&1){let e=Y();h(0,"button",32),S("click",function(){I(e);let r=C().$implicit,o=C(2);return A(o.deleteDepartment(r))}),h(1,"mat-icon"),_(2,"delete"),p()()}}function Ove(t,n){if(t&1){let e=Y();h(0,"td",26)(1,"div",27)(2,"button",28),S("click",function(){let r=I(e).$implicit,o=C(2);return A(o.viewDepartment(r))}),h(3,"mat-icon"),_(4,"visibility"),p()(),R(5,Ive,3,0,"button",29)(6,Ave,3,0,"button",30),p()()}t&2&&(g(5),y("appHasRole",at(2,jU)),g(),y("appHasRole",at(3,wve)))}function Rve(t,n){t&1&&k(0,"tr",33)}function Pve(t,n){t&1&&k(0,"tr",34)}function Fve(t,n){if(t&1&&(h(0,"tr",35)(1,"td",36)(2,"div",37)(3,"mat-icon"),_(4,"info"),p(),h(5,"p"),_(6,"No departments found"),p()()()()),t&2){let e=C(2);g(),X("colspan",e.displayedColumns.length)}}function Nve(t,n){if(t&1&&(h(0,"table",17),jt(1,18),R(2,kve,2,0,"th",19)(3,Sve,2,1,"td",20),Lt(),jt(4,21),R(5,Tve,2,0,"th",19)(6,Ove,7,4,"td",20),Lt(),R(7,Rve,1,0,"tr",22)(8,Pve,1,0,"tr",23)(9,Fve,7,1,"tr",24),p()),t&2){let e=C();y("dataSource",e.departments),g(7),y("matHeaderRowDef",e.displayedColumns),g(),y("matRowDefColumns",e.displayedColumns),g(),y("ngIf",e.departments.length===0)}}var HU=(()=>{let n=class n{constructor(){this.departmentService=u(Vs),this.authService=u(Tt),this.router=u(Re),this.fb=u(eo),this.snackBar=u(di),this.dialog=u(En),this.departments=[],this.loading=!1,this.totalCount=0,this.pageSize=10,this.pageNumber=1,this.destroy$=new z,this.displayedColumns=["name","actions"]}ngOnInit(){this.initSearchForm(),this.setupAutocomplete(),this.setupAutoSubmit(),this.loadDepartments()}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete()}initSearchForm(){this.searchForm=this.fb.group({Name:[""]})}setupAutocomplete(){this.filteredNames$=this.searchForm.get("Name").valueChanges.pipe(He(""),Rt(300),Sn(),$e(i=>this.getAutocompleteOptions("Name",i)))}setupAutoSubmit(){this.searchForm.valueChanges.pipe(Rt(500),Sn((i,r)=>JSON.stringify(i)===JSON.stringify(r)),Te(this.destroy$)).subscribe(()=>{this.pageNumber=1,this.loadDepartments()})}getAutocompleteOptions(i,r){if(!r||r.length<2)return Q([]);let o={PageNumber:1,PageSize:10,[i]:r};return this.departmentService.getAllPaged(o).pipe(se(a=>a.value.map(l=>l.name).filter((l,c,d)=>l&&d.indexOf(l)===c)),fi(()=>Q([])))}loadDepartments(){this.loading=!0;let i=M({PageNumber:this.pageNumber,PageSize:this.pageSize},this.searchForm.value);Object.keys(i).forEach(r=>{(i[r]===""||i[r]===null||i[r]===void 0)&&delete i[r]}),this.departmentService.getAllPaged(i).subscribe({next:r=>{this.departments=r.value,this.totalCount=r.recordsTotal,this.loading=!1},error:r=>{console.error("Error loading departments:",r),this.loading=!1}})}onClearSearch(){this.searchForm.reset(),this.pageNumber=1,this.paginator&&(this.paginator.pageIndex=0),this.loadDepartments()}onPageChange(i){this.pageSize=i.pageSize,this.pageNumber=i.pageIndex+1,this.loadDepartments()}viewDepartment(i){this.router.navigate(["/departments",i.id])}editDepartment(i){this.router.navigate(["/departments","edit",i.id])}deleteDepartment(i){this.dialog.open(Er,{width:"400px",data:{title:"Delete Department",message:`Are you sure you want to delete "${i.name}"? This action cannot be undone.`,confirmText:"Delete",cancelText:"Cancel"}}).afterClosed().subscribe(o=>{o&&this.departmentService.delete(i.id).subscribe({next:()=>{this.showMessage(`"${i.name}" has been deleted.`),this.loadDepartments()},error:a=>{console.error("Error deleting department:",a),this.showMessage("Failed to delete department. Please try again.")}})})}createDepartment(){this.router.navigate(["/departments","create"])}canEdit(){return this.authService.isHRAdmin()||this.authService.isManager()}canDelete(){return this.authService.isHRAdmin()}canCreate(){return this.authService.isHRAdmin()||this.authService.isManager()}showMessage(i){this.snackBar.open(i,"Close",{duration:3e3,horizontalPosition:"end",verticalPosition:"top"})}};n.\u0275fac=function(r){return new(r||n)},n.\u0275cmp=E({type:n,selectors:[["app-department-list"]],viewQuery:function(r,o){if(r&1&&ie(ir,5),r&2){let a;B(a=j())&&(o.paginator=a.first)}},decls:27,vars:14,consts:[["autoName","matAutocomplete"],[1,"flex-spacer"],["mat-raised-button","","color","primary",3,"click",4,"appHasRole"],[1,"search-form",3,"formGroup"],[1,"search-row"],["appearance","outline"],["matInput","","formControlName","Name",3,"matAutocomplete"],[3,"value",4,"ngFor","ngForOf"],[1,"search-buttons"],["mat-raised-button","","color","accent","type","button",3,"click"],[1,"table-container"],["class","loading-spinner",4,"ngIf"],["mat-table","","class","department-table",3,"dataSource",4,"ngIf"],["showFirstLastButtons","",3,"page","length","pageSize","pageSizeOptions","pageIndex"],["mat-raised-button","","color","primary",3,"click"],[3,"value"],[1,"loading-spinner"],["mat-table","",1,"department-table",3,"dataSource"],["matColumnDef","name"],["mat-header-cell","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","actions"],["mat-header-row","",4,"matHeaderRowDef"],["mat-row","",4,"matRowDef","matRowDefColumns"],["class","mat-row",4,"ngIf"],["mat-header-cell",""],["mat-cell",""],[1,"action-buttons"],["mat-icon-button","","color","primary","matTooltip","View Details",3,"click"],["mat-icon-button","","color","accent","matTooltip","Edit Department",3,"click",4,"appHasRole"],["mat-icon-button","","color","warn","matTooltip","Delete Department",3,"click",4,"appHasRole"],["mat-icon-button","","color","accent","matTooltip","Edit Department",3,"click"],["mat-icon-button","","color","warn","matTooltip","Delete Department",3,"click"],["mat-header-row",""],["mat-row",""],[1,"mat-row"],[1,"mat-cell"],[1,"no-data"]],template:function(r,o){if(r&1){let a=Y();k(0,"page-header"),h(1,"mat-card")(2,"mat-card-header")(3,"mat-card-title"),_(4,"Department Directory"),p(),k(5,"div",1),R(6,Dve,4,0,"button",2),p(),h(7,"mat-card-content")(8,"form",3)(9,"div",4)(10,"mat-form-field",5)(11,"mat-label"),_(12,"Department Name"),p(),k(13,"input",6),h(14,"mat-autocomplete",null,0),R(16,Eve,2,2,"mat-option",7),me(17,"async"),p()(),h(18,"div",8)(19,"button",9),S("click",function(){return I(a),A(o.onClearSearch())}),h(20,"mat-icon"),_(21,"clear"),p(),_(22," Clear Filters "),p()()()(),h(23,"div",10),R(24,Mve,2,0,"div",11)(25,Nve,10,4,"table",12),p(),h(26,"mat-paginator",13),S("page",function(l){return I(a),A(o.onPageChange(l))}),p()()()}if(r&2){let a=Se(15);g(6),y("appHasRole",at(12,jU)),g(2),y("formGroup",o.searchForm),g(5),y("matAutocomplete",a),g(3),y("ngForOf",Oe(17,10,o.filteredNames$)),g(8),y("ngIf",o.loading),g(),y("ngIf",!o.loading),g(),y("length",o.totalCount)("pageSize",o.pageSize)("pageSizeOptions",at(13,Cve))("pageIndex",o.pageNumber-1)}},dependencies:[gt,qr,li,zn,Jr,Qi,ei,Xr,Ki,Lr,ze,kt,ti,$t,zt,Ut,Jt,Xt,ot,mt,rr,hn,Oi,sn,$i,Zc,Hc,Uc,qc,$c,zc,Yc,Wc,Gc,Qc,Kc,_c,ir,Si,ki,Br,Eo,vw,bw,xn,y_,pi,Mn,ni,Un,rn],styles:["mat-card[_ngcontent-%COMP%]{margin:16px}mat-card-header[_ngcontent-%COMP%]{display:flex;align-items:center;margin-bottom:16px;padding:16px;border-bottom:1px solid rgba(0,0,0,.12)}mat-card-header[_ngcontent-%COMP%] mat-card-title[_ngcontent-%COMP%]{font-size:20px;font-weight:500;margin:0}mat-card-header[_ngcontent-%COMP%] .flex-spacer[_ngcontent-%COMP%]{flex:1 1 auto}mat-card-header[_ngcontent-%COMP%] button[_ngcontent-%COMP%] mat-icon[_ngcontent-%COMP%]{margin-right:4px}mat-card-content[_ngcontent-%COMP%]{padding:0}.search-form[_ngcontent-%COMP%]{padding:16px;background-color:#f5f5f5;margin-bottom:0}.search-form[_ngcontent-%COMP%] .search-row[_ngcontent-%COMP%]{display:grid;grid-template-columns:1fr auto;gap:16px;align-items:start}.search-form[_ngcontent-%COMP%] .search-row[_ngcontent-%COMP%] mat-form-field[_ngcontent-%COMP%]{width:100%}.search-form[_ngcontent-%COMP%] .search-row[_ngcontent-%COMP%] .search-buttons[_ngcontent-%COMP%]{display:flex;gap:8px;align-items:center}.search-form[_ngcontent-%COMP%] .search-row[_ngcontent-%COMP%] .search-buttons[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{white-space:nowrap}.search-form[_ngcontent-%COMP%] .search-row[_ngcontent-%COMP%] .search-buttons[_ngcontent-%COMP%] button[_ngcontent-%COMP%] mat-icon[_ngcontent-%COMP%]{margin-right:4px}.table-container[_ngcontent-%COMP%]{position:relative;min-height:300px;overflow-x:auto}.loading-spinner[_ngcontent-%COMP%]{display:flex;justify-content:center;align-items:center;min-height:300px}.department-table[_ngcontent-%COMP%]{width:100%}.department-table[_ngcontent-%COMP%] th[_ngcontent-%COMP%]{font-weight:600;font-size:14px;color:#000000de}.department-table[_ngcontent-%COMP%] td[_ngcontent-%COMP%]{font-size:14px;color:#000000de}.department-table[_ngcontent-%COMP%] .mat-column-name[_ngcontent-%COMP%]{min-width:200px}.department-table[_ngcontent-%COMP%] .mat-column-actions[_ngcontent-%COMP%]{width:120px;text-align:right}.department-table[_ngcontent-%COMP%] .mat-column-actions[_ngcontent-%COMP%] .action-buttons[_ngcontent-%COMP%]{display:flex;justify-content:flex-end;align-items:center;gap:4px}.no-data[_ngcontent-%COMP%]{display:flex;flex-direction:column;align-items:center;justify-content:center;padding:48px 16px;color:#0000008a}.no-data[_ngcontent-%COMP%] mat-icon[_ngcontent-%COMP%]{font-size:48px;width:48px;height:48px;margin-bottom:16px}.no-data[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{margin:0;font-size:16px}mat-paginator[_ngcontent-%COMP%]{border-top:1px solid rgba(0,0,0,.12)}"]});let t=n;return t})();var Lve=()=>["HRAdmin","Manager"],Vve=()=>["HRAdmin"];function Bve(t,n){if(t&1){let e=Y();h(0,"button",10),S("click",function(){I(e);let r=C(2);return A(r.editDepartment())}),h(1,"mat-icon"),_(2,"edit"),p(),_(3," Edit "),p()}}function jve(t,n){if(t&1){let e=Y();h(0,"button",11),S("click",function(){I(e);let r=C(2);return A(r.deleteDepartment())}),h(1,"mat-icon"),_(2,"delete"),p(),_(3," Delete "),p()}}function Hve(t,n){if(t&1&&(h(0,"mat-list-item")(1,"span",7),_(2,"Created At"),p(),h(3,"span",8),_(4),me(5,"date"),p()()),t&2){let e=C(3);g(4),H(Ni(5,1,e.department.createdAt,"medium"))}}function zve(t,n){if(t&1&&(h(0,"mat-list-item")(1,"span",7),_(2,"Last Modified At"),p(),h(3,"span",8),_(4),me(5,"date"),p()()),t&2){let e=C(3);g(4),H(Ni(5,1,e.department.lastModifiedAt,"medium"))}}function Uve(t,n){if(t&1&&(h(0,"div",6)(1,"h3"),_(2,"Audit Information"),p(),k(3,"mat-divider"),h(4,"mat-list"),R(5,Hve,6,4,"mat-list-item",0)(6,zve,6,4,"mat-list-item",0),p()()),t&2){let e=C(2);g(5),y("ngIf",e.department.createdAt),g(),y("ngIf",e.department.lastModifiedAt)}}function $ve(t,n){if(t&1){let e=Y();h(0,"mat-card")(1,"mat-card-header")(2,"mat-card-title"),_(3,"Department Details"),p(),k(4,"div",1),R(5,Bve,4,0,"button",2)(6,jve,4,0,"button",3),h(7,"button",4),S("click",function(){I(e);let r=C();return A(r.goBack())}),h(8,"mat-icon"),_(9,"arrow_back"),p(),_(10," Back to List "),p()(),h(11,"mat-card-content")(12,"div",5)(13,"div",6)(14,"h3"),_(15,"Basic Information"),p(),k(16,"mat-divider"),h(17,"mat-list")(18,"mat-list-item")(19,"span",7),_(20,"Department Name"),p(),h(21,"span",8),_(22),p()()()(),R(23,Uve,7,2,"div",9),p()()()}if(t&2){let e=C();g(5),y("appHasRole",at(4,Lve)),g(),y("appHasRole",at(5,Vve)),g(16),H(e.department.name),g(),y("ngIf",e.department.createdAt||e.department.lastModifiedAt)}}function Wve(t,n){t&1&&(h(0,"mat-card")(1,"mat-card-content")(2,"div",12),k(3,"mat-spinner"),p()()())}function Gve(t,n){if(t&1){let e=Y();h(0,"mat-card")(1,"mat-card-content")(2,"div",13)(3,"mat-icon"),_(4,"error"),p(),h(5,"p"),_(6,"Department not found"),p(),h(7,"button",14),S("click",function(){I(e);let r=C();return A(r.goBack())}),_(8," Go Back "),p()()()()}}var zU=(()=>{let n=class n{constructor(){this.departmentService=u(Vs),this.authService=u(Tt),this.route=u(wi),this.router=u(Re),this.snackBar=u(di),this.dialog=u(En),this.loading=!1}ngOnInit(){let i=this.route.snapshot.paramMap.get("id");i&&this.loadDepartment(i)}loadDepartment(i){this.loading=!0,this.departmentService.getById(i).subscribe({next:r=>{this.department=r,this.loading=!1},error:r=>{console.error("Error loading department:",r),this.showMessage("Error loading department"),this.loading=!1,this.router.navigate(["/departments"])}})}editDepartment(){this.router.navigate(["/departments","edit",this.department.id])}deleteDepartment(){this.dialog.open(Er,{width:"400px",data:{title:"Delete Department",message:`Are you sure you want to delete "${this.department.name}"? This action cannot be undone.`,confirmText:"Delete",cancelText:"Cancel"}}).afterClosed().subscribe(r=>{r&&this.departmentService.delete(this.department.id).subscribe({next:()=>{let o=this.snackBar.open(`"${this.department.name}" has been deleted.`,"Close",{duration:3e3,horizontalPosition:"end",verticalPosition:"top"});o.afterDismissed().subscribe(()=>this.router.navigate(["/departments"])),o.onAction().subscribe(()=>this.router.navigate(["/departments"]))},error:o=>{console.error("Error deleting department:",o),this.showMessage("Failed to delete department. Please try again.")}})})}goBack(){this.router.navigate(["/departments"])}canEdit(){return this.authService.isHRAdmin()||this.authService.isManager()}canDelete(){return this.authService.isHRAdmin()}showMessage(i){this.snackBar.open(i,"Close",{duration:3e3,horizontalPosition:"end",verticalPosition:"top"})}};n.\u0275fac=function(r){return new(r||n)},n.\u0275cmp=E({type:n,selectors:[["app-department-detail"]],decls:4,vars:3,consts:[[4,"ngIf"],[1,"flex-spacer"],["mat-raised-button","","color","accent",3,"click",4,"appHasRole"],["mat-raised-button","","color","warn",3,"click",4,"appHasRole"],["mat-stroked-button","",3,"click"],[1,"detail-grid"],[1,"detail-section"],["matListItemTitle",""],["matListItemLine",""],["class","detail-section",4,"ngIf"],["mat-raised-button","","color","accent",3,"click"],["mat-raised-button","","color","warn",3,"click"],[1,"loading-container"],[1,"no-data"],["mat-raised-button","","color","primary",3,"click"]],template:function(r,o){r&1&&(k(0,"page-header"),R(1,$ve,24,6,"mat-card",0)(2,Wve,4,0,"mat-card",0)(3,Gve,9,0,"mat-card",0)),r&2&&(g(),y("ngIf",!o.loading&&o.department),g(),y("ngIf",o.loading),g(),y("ngIf",!o.loading&&!o.department))},dependencies:[gt,li,ze,kt,$t,zt,Ut,Jt,Xt,ot,mt,ca,Fs,la,Ha,Tu,Dl,sa,Si,ki,pi,Mn,ni,Un,Sa],styles:["mat-card[_ngcontent-%COMP%]{margin:16px}mat-card-header[_ngcontent-%COMP%]{display:flex;align-items:center;margin-bottom:16px;padding:16px;border-bottom:1px solid rgba(0,0,0,.12)}mat-card-header[_ngcontent-%COMP%] mat-card-title[_ngcontent-%COMP%]{font-size:20px;font-weight:500;margin:0}mat-card-header[_ngcontent-%COMP%] .flex-spacer[_ngcontent-%COMP%]{flex:1 1 auto}mat-card-header[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{margin-left:8px}mat-card-header[_ngcontent-%COMP%] button[_ngcontent-%COMP%] mat-icon[_ngcontent-%COMP%]{margin-right:4px}mat-card-content[_ngcontent-%COMP%]{padding:16px}.detail-grid[_ngcontent-%COMP%]{display:grid;grid-template-columns:repeat(auto-fit,minmax(400px,1fr));gap:24px}.detail-section[_ngcontent-%COMP%] h3[_ngcontent-%COMP%]{margin:0 0 8px;font-size:16px;font-weight:500;color:#000000de}.detail-section[_ngcontent-%COMP%] mat-divider[_ngcontent-%COMP%]{margin-bottom:16px}.detail-section[_ngcontent-%COMP%] mat-list[_ngcontent-%COMP%]{padding:0}.detail-section[_ngcontent-%COMP%] mat-list-item[_ngcontent-%COMP%]{height:auto;min-height:48px;padding:8px 0}.loading-container[_ngcontent-%COMP%]{display:flex;justify-content:center;align-items:center;min-height:300px}.no-data[_ngcontent-%COMP%]{display:flex;flex-direction:column;align-items:center;justify-content:center;padding:48px 16px;color:#0000008a}.no-data[_ngcontent-%COMP%] mat-icon[_ngcontent-%COMP%]{font-size:48px;width:48px;height:48px;margin-bottom:16px}.no-data[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{margin:0 0 16px;font-size:16px}"]});let t=n;return t})();function qve(t,n){t&1&&(h(0,"div",0),k(1,"mat-spinner"),p())}function Yve(t,n){t&1&&(h(0,"mat-error"),_(1," Department name is required "),p())}function Qve(t,n){t&1&&(h(0,"mat-error"),_(1," Department name cannot exceed 100 characters "),p())}var aA=(()=>{let n=class n{constructor(){this.departmentService=u(Vs),this.route=u(wi),this.router=u(Re),this.fb=u(eo),this.snackBar=u(di),this.loading=!1,this.isEditMode=!1}ngOnInit(){this.initForm();let i=this.route.snapshot.paramMap.get("id");i&&(this.isEditMode=!0,this.departmentId=i,this.loadDepartment(i))}initForm(){this.departmentForm=this.fb.group({name:["",[Le.required,Le.maxLength(100)]]})}loadDepartment(i){this.loading=!0,this.departmentService.getById(i).subscribe({next:r=>{this.departmentForm.patchValue({name:r.name}),this.loading=!1},error:r=>{console.error("Error loading department:",r),this.showMessage("Error loading department"),this.loading=!1}})}onSubmit(){if(!this.departmentForm.invalid)if(this.loading=!0,this.isEditMode&&this.departmentId){let i={id:this.departmentId,name:this.departmentForm.value.name};this.departmentService.updateDepartment(i).subscribe({next:()=>{this.showMessage("Department updated successfully"),this.router.navigate(["/departments",this.departmentId])},error:r=>{console.error("Error updating department:",r),this.showMessage("Error updating department"),this.loading=!1}})}else{let i={name:this.departmentForm.value.name};this.departmentService.createDepartment(i).subscribe({next:r=>{console.log("Department created - Response:",r),console.log("Department ID:",r?.id),this.showMessage("Department created successfully"),r?.id?(console.log("Navigating to detail page:","/departments/"+r.id),this.router.navigate(["/departments",r.id])):(console.warn("No department ID returned, navigating to list page"),this.router.navigate(["/departments"])),this.loading=!1},error:r=>{console.error("Error creating department:",r),this.showMessage("Error creating department"),this.loading=!1}})}}onCancel(){this.isEditMode&&this.departmentId?this.router.navigate(["/departments",this.departmentId]):this.router.navigate(["/departments"])}showMessage(i){this.snackBar.open(i,"Close",{duration:3e3,horizontalPosition:"end",verticalPosition:"top"})}};n.\u0275fac=function(r){return new(r||n)},n.\u0275cmp=E({type:n,selectors:[["app-department-form"]],decls:23,vars:7,consts:[[1,"loading-overlay"],[3,"ngSubmit","formGroup"],[1,"form-section"],[1,"form-row"],["appearance","outline"],["matInput","","formControlName","name"],[4,"ngIf"],[1,"form-actions"],["type","button","mat-stroked-button","",3,"click"],["type","submit","mat-raised-button","","color","primary",3,"disabled"]],template:function(r,o){if(r&1&&(k(0,"page-header"),h(1,"mat-card")(2,"mat-card-header")(3,"mat-card-title"),_(4),p()(),h(5,"mat-card-content"),N(6,qve,2,0,"div",0),h(7,"form",1),S("ngSubmit",function(){return o.onSubmit()}),h(8,"div",2)(9,"h3"),_(10,"Department Information"),p(),h(11,"div",3)(12,"mat-form-field",4)(13,"mat-label"),_(14,"Department Name"),p(),k(15,"input",5),R(16,Yve,2,0,"mat-error",6)(17,Qve,2,0,"mat-error",6),p()()(),h(18,"div",7)(19,"button",8),S("click",function(){return o.onCancel()}),_(20," Cancel "),p(),h(21,"button",9),_(22),p()()()()()),r&2){let a,s;g(4),H(o.isEditMode?"Edit Department":"Create Department"),g(2),L(o.loading?6:-1),g(),y("formGroup",o.departmentForm),g(9),y("ngIf",(a=o.departmentForm.get("name"))==null?null:a.hasError("required")),g(),y("ngIf",(s=o.departmentForm.get("name"))==null?null:s.hasError("maxlength")),g(4),y("disabled",o.loading),g(),ve(" ",o.isEditMode?"Update":"Create"," ")}},dependencies:[gt,li,zn,Jr,Qi,ei,Xr,Ki,Lr,ze,kt,$t,zt,Ut,Jt,Xt,ot,rr,hn,Oi,sn,xo,$i,Si,ki,pi,ni],styles:["mat-card[_ngcontent-%COMP%]{margin:16px;max-width:800px}mat-card-header[_ngcontent-%COMP%]{padding:16px;border-bottom:1px solid rgba(0,0,0,.12)}mat-card-header[_ngcontent-%COMP%] mat-card-title[_ngcontent-%COMP%]{font-size:20px;font-weight:500;margin:0}mat-card-content[_ngcontent-%COMP%]{padding:24px;position:relative}.form-section[_ngcontent-%COMP%]{margin-bottom:24px}.form-section[_ngcontent-%COMP%] h3[_ngcontent-%COMP%]{margin:0 0 16px;font-size:16px;font-weight:500;color:#000000de}.form-section[_ngcontent-%COMP%] .form-row[_ngcontent-%COMP%]{display:grid;grid-template-columns:1fr;gap:16px;margin-bottom:16px}.form-section[_ngcontent-%COMP%] .form-row[_ngcontent-%COMP%] mat-form-field[_ngcontent-%COMP%]{width:100%}.form-actions[_ngcontent-%COMP%]{display:flex;justify-content:flex-end;gap:8px;padding-top:16px;border-top:1px solid rgba(0,0,0,.12)}.loading-overlay[_ngcontent-%COMP%]{position:absolute;inset:0;background-color:#fffc;display:flex;align-items:center;justify-content:center;z-index:1000}"]});let t=n;return t})();var Kve=["mat-sort-header",""],Zve=["*"];function Xve(t,n){t&1&&(ft(0,"div",2),Gt(),ft(1,"svg",3),ai(2,"path",4),vt()())}var UU=new T("MAT_SORT_DEFAULT_OPTIONS"),Ml=(()=>{class t{_defaultOptions;_initializedStream=new $a(1);sortables=new Map;_stateChanges=new z;active;start="asc";get direction(){return this._direction}set direction(e){this._direction=e}_direction="";disableClear;disabled=!1;sortChange=new U;initialized=this._initializedStream;constructor(e){this._defaultOptions=e}register(e){this.sortables.set(e.id,e)}deregister(e){this.sortables.delete(e.id)}sort(e){this.active!=e.id?(this.active=e.id,this.direction=e.start?e.start:this.start):this.direction=this.getNextSortDirection(e),this.sortChange.emit({active:this.active,direction:this.direction})}getNextSortDirection(e){if(!e)return"";let i=e?.disableClear??this.disableClear??!!this._defaultOptions?.disableClear,r=Jve(e.start||this.start,i),o=r.indexOf(this.direction)+1;return o>=r.length&&(o=0),r[o]}ngOnInit(){this._initializedStream.next()}ngOnChanges(){this._stateChanges.next()}ngOnDestroy(){this._stateChanges.complete(),this._initializedStream.complete()}static \u0275fac=function(i){return new(i||t)(_e(UU,8))};static \u0275dir=F({type:t,selectors:[["","matSort",""]],hostAttrs:[1,"mat-sort"],inputs:{active:[0,"matSortActive","active"],start:[0,"matSortStart","start"],direction:[0,"matSortDirection","direction"],disableClear:[2,"matSortDisableClear","disableClear",V],disabled:[2,"matSortDisabled","disabled",V]},outputs:{sortChange:"matSortChange"},exportAs:["matSort"],features:[Ae]})}return t})();function Jve(t,n){let e=["asc","desc"];return t=="desc"&&e.reverse(),n||e.push(""),e}var ww=(()=>{class t{changes=new z;static \u0275fac=function(i){return new(i||t)};static \u0275prov=O({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();function e0e(t){return t||new ww}var t0e={provide:ww,deps:[[new ss,new Gl,ww]],useFactory:e0e},Dw=(()=>{class t{_intl=u(ww);_sort=u(Ml,{optional:!0});_columnDef=u("MAT_SORT_HEADER_COLUMN_DEF",{optional:!0});_changeDetectorRef=u(ye);_focusMonitor=u(Yt);_elementRef=u(q);_ariaDescriber=u(Xm,{optional:!0});_renderChanges;_animationsDisabled=Ye();_recentlyCleared=he(null);_sortButton;id;arrowPosition="after";start;disabled=!1;get sortActionDescription(){return this._sortActionDescription}set sortActionDescription(e){this._updateSortActionDescription(e)}_sortActionDescription="Sort";disableClear;constructor(){u(ut).load(Di);let e=u(UU,{optional:!0});this._sort,e?.arrowPosition&&(this.arrowPosition=e?.arrowPosition)}ngOnInit(){!this.id&&this._columnDef&&(this.id=this._columnDef.name),this._sort.register(this),this._renderChanges=Je(this._sort._stateChanges,this._sort.sortChange).subscribe(()=>this._changeDetectorRef.markForCheck()),this._sortButton=this._elementRef.nativeElement.querySelector(".mat-sort-header-container"),this._updateSortActionDescription(this._sortActionDescription)}ngAfterViewInit(){this._focusMonitor.monitor(this._elementRef,!0).subscribe(()=>{Promise.resolve().then(()=>this._recentlyCleared.set(null))})}ngOnDestroy(){this._focusMonitor.stopMonitoring(this._elementRef),this._sort.deregister(this),this._renderChanges?.unsubscribe(),this._sortButton&&this._ariaDescriber?.removeDescription(this._sortButton,this._sortActionDescription)}_toggleOnInteraction(){if(!this._isDisabled()){let e=this._isSorted(),i=this._sort.direction;this._sort.sort(this),this._recentlyCleared.set(e&&!this._isSorted()?i:null)}}_handleKeydown(e){(e.keyCode===32||e.keyCode===13)&&(e.preventDefault(),this._toggleOnInteraction())}_isSorted(){return this._sort.active==this.id&&(this._sort.direction==="asc"||this._sort.direction==="desc")}_isDisabled(){return this._sort.disabled||this.disabled}_getAriaSortAttribute(){return this._isSorted()?this._sort.direction=="asc"?"ascending":"descending":"none"}_renderArrow(){return!this._isDisabled()||this._isSorted()}_updateSortActionDescription(e){this._sortButton&&(this._ariaDescriber?.removeDescription(this._sortButton,this._sortActionDescription),this._ariaDescriber?.describe(this._sortButton,e)),this._sortActionDescription=e}static \u0275fac=function(i){return new(i||t)};static \u0275cmp=E({type:t,selectors:[["","mat-sort-header",""]],hostAttrs:[1,"mat-sort-header"],hostVars:3,hostBindings:function(i,r){i&1&&S("click",function(){return r._toggleOnInteraction()})("keydown",function(a){return r._handleKeydown(a)})("mouseleave",function(){return r._recentlyCleared.set(null)}),i&2&&(X("aria-sort",r._getAriaSortAttribute()),G("mat-sort-header-disabled",r._isDisabled()))},inputs:{id:[0,"mat-sort-header","id"],arrowPosition:"arrowPosition",start:"start",disabled:[2,"disabled","disabled",V],sortActionDescription:"sortActionDescription",disableClear:[2,"disableClear","disableClear",V]},exportAs:["matSortHeader"],attrs:Kve,ngContentSelectors:Zve,decls:4,vars:17,consts:[[1,"mat-sort-header-container","mat-focus-indicator"],[1,"mat-sort-header-content"],[1,"mat-sort-header-arrow"],["viewBox","0 -960 960 960","focusable","false","aria-hidden","true"],["d","M440-240v-368L296-464l-56-56 240-240 240 240-56 56-144-144v368h-80Z"]],template:function(i,r){i&1&&(Me(),ft(0,"div",0)(1,"div",1),oe(2),vt(),N(3,Xve,3,0,"div",2),vt()),i&2&&(G("mat-sort-header-sorted",r._isSorted())("mat-sort-header-position-before",r.arrowPosition==="before")("mat-sort-header-descending",r._sort.direction==="desc")("mat-sort-header-ascending",r._sort.direction==="asc")("mat-sort-header-recently-cleared-ascending",r._recentlyCleared()==="asc")("mat-sort-header-recently-cleared-descending",r._recentlyCleared()==="desc")("mat-sort-header-animations-disabled",r._animationsDisabled),X("tabindex",r._isDisabled()?null:0)("role",r._isDisabled()?null:"button"),g(3),L(r._renderArrow()?3:-1))},styles:[`.mat-sort-header{cursor:pointer}.mat-sort-header-disabled{cursor:default}.mat-sort-header-container{display:flex;align-items:center;letter-spacing:normal;outline:0}[mat-sort-header].cdk-keyboard-focused .mat-sort-header-container,[mat-sort-header].cdk-program-focused .mat-sort-header-container{border-bottom:solid 1px currentColor}.mat-sort-header-container::before{margin:calc(calc(var(--mat-focus-indicator-border-width, 3px) + 2px)*-1)}.mat-sort-header-content{display:flex;align-items:center}.mat-sort-header-position-before{flex-direction:row-reverse}@keyframes _mat-sort-header-recently-cleared-ascending{from{transform:translateY(0);opacity:1}to{transform:translateY(-25%);opacity:0}}@keyframes _mat-sort-header-recently-cleared-descending{from{transform:translateY(0) rotate(180deg);opacity:1}to{transform:translateY(25%) rotate(180deg);opacity:0}}.mat-sort-header-arrow{height:12px;width:12px;position:relative;transition:transform 225ms cubic-bezier(0.4, 0, 0.2, 1),opacity 225ms cubic-bezier(0.4, 0, 0.2, 1);opacity:0;overflow:visible;color:var(--mat-sort-arrow-color, var(--mat-sys-on-surface))}.mat-sort-header.cdk-keyboard-focused .mat-sort-header-arrow,.mat-sort-header.cdk-program-focused .mat-sort-header-arrow,.mat-sort-header:hover .mat-sort-header-arrow{opacity:.54}.mat-sort-header .mat-sort-header-sorted .mat-sort-header-arrow{opacity:1}.mat-sort-header-descending .mat-sort-header-arrow{transform:rotate(180deg)}.mat-sort-header-recently-cleared-ascending .mat-sort-header-arrow{transform:translateY(-25%)}.mat-sort-header-recently-cleared-ascending .mat-sort-header-arrow{transition:none;animation:_mat-sort-header-recently-cleared-ascending 225ms cubic-bezier(0.4, 0, 0.2, 1) forwards}.mat-sort-header-recently-cleared-descending .mat-sort-header-arrow{transition:none;animation:_mat-sort-header-recently-cleared-descending 225ms cubic-bezier(0.4, 0, 0.2, 1) forwards}.mat-sort-header-animations-disabled .mat-sort-header-arrow{transition-duration:0ms;animation-duration:0ms}.mat-sort-header-arrow svg{width:24px;height:24px;fill:currentColor;position:absolute;top:50%;left:50%;margin:-12px 0 0 -12px;transform:translateZ(0)}.mat-sort-header-arrow,[dir=rtl] .mat-sort-header-position-before .mat-sort-header-arrow{margin:0 0 0 6px}.mat-sort-header-position-before .mat-sort-header-arrow,[dir=rtl] .mat-sort-header-arrow{margin:0 6px 0 0} -`],encapsulation:2,changeDetection:0})}return t})(),Ew=(()=>{class t{static \u0275fac=function(i){return new(i||t)};static \u0275mod=ee({type:t});static \u0275inj=J({providers:[t0e],imports:[we]})}return t})();var WU=()=>["HRAdmin","Manager"],GU=()=>["HRAdmin"];function i0e(t,n){if(t&1){let e=Y();h(0,"button",14),S("click",function(){I(e);let r=C();return A(r.createPosition())}),h(1,"mat-icon"),_(2,"add"),p(),_(3," Add Position "),p()}}function n0e(t,n){if(t&1){let e=Y();h(0,"button",15),S("click",function(){I(e);let r=C();return A(r.addMockData())}),h(1,"mat-icon"),_(2,"data_object"),p(),_(3," Add Mock Data "),p()}}function r0e(t,n){t&1&&(h(0,"div",16),k(1,"mat-spinner"),p())}function o0e(t,n){t&1&&(h(0,"th",30),_(1,"Position Number"),p())}function a0e(t,n){if(t&1&&(h(0,"td",31),_(1),p()),t&2){let e=n.$implicit;g(),H(e.positionNumber)}}function s0e(t,n){t&1&&(h(0,"th",30),_(1,"Position Title"),p())}function l0e(t,n){if(t&1&&(h(0,"td",31),_(1),p()),t&2){let e=n.$implicit;g(),H(e.positionTitle)}}function c0e(t,n){t&1&&(h(0,"th",30),_(1,"Department"),p())}function d0e(t,n){if(t&1&&(h(0,"td",31),_(1),p()),t&2){let e=n.$implicit;g(),H(e.department==null?null:e.department.name)}}function u0e(t,n){t&1&&(h(0,"th",30),_(1,"Salary Range"),p())}function m0e(t,n){if(t&1&&(h(0,"td",31),_(1),p()),t&2){let e=n.$implicit;g(),H(e.salaryRange==null?null:e.salaryRange.name)}}function h0e(t,n){t&1&&(h(0,"th",32),_(1,"Actions"),p())}function p0e(t,n){if(t&1){let e=Y();h(0,"button",38),S("click",function(){I(e);let r=C().$implicit,o=C(2);return A(o.editPosition(r))}),h(1,"mat-icon"),_(2,"edit"),p()()}}function f0e(t,n){if(t&1){let e=Y();h(0,"button",39),S("click",function(){I(e);let r=C().$implicit,o=C(2);return A(o.deletePosition(r))}),h(1,"mat-icon"),_(2,"delete"),p()()}}function g0e(t,n){if(t&1){let e=Y();h(0,"td",33)(1,"div",34)(2,"button",35),S("click",function(){let r=I(e).$implicit,o=C(2);return A(o.viewPosition(r))}),h(3,"mat-icon"),_(4,"visibility"),p()(),R(5,p0e,3,0,"button",36)(6,f0e,3,0,"button",37),p()()}t&2&&(g(5),y("appHasRole",at(2,WU)),g(),y("appHasRole",at(3,GU)))}function _0e(t,n){t&1&&k(0,"tr",40)}function b0e(t,n){t&1&&k(0,"tr",41)}function v0e(t,n){if(t&1&&(h(0,"tr",42)(1,"td",43)(2,"div",44)(3,"mat-icon"),_(4,"work_off"),p(),h(5,"p"),_(6,"No positions found"),p()()()()),t&2){let e=C(2);g(),X("colspan",e.displayedColumns.length)}}function y0e(t,n){if(t&1){let e=Y();h(0,"table",17),S("matSortChange",function(r){I(e);let o=C();return A(o.onSortChange(r))}),jt(1,18),R(2,o0e,2,0,"th",19)(3,a0e,2,1,"td",20),Lt(),jt(4,21),R(5,s0e,2,0,"th",19)(6,l0e,2,1,"td",20),Lt(),jt(7,22),R(8,c0e,2,0,"th",19)(9,d0e,2,1,"td",20),Lt(),jt(10,23),R(11,u0e,2,0,"th",19)(12,m0e,2,1,"td",20),Lt(),jt(13,24),R(14,h0e,2,0,"th",25)(15,g0e,7,4,"td",26),Lt(),R(16,_0e,1,0,"tr",27)(17,b0e,1,0,"tr",28)(18,v0e,7,1,"tr",29),p()}if(t&2){let e=C();y("dataSource",e.positions),g(16),y("matHeaderRowDef",e.displayedColumns),g(),y("matRowDefColumns",e.displayedColumns)}}var qU=(()=>{let n=class n{constructor(){this.positionService=u(Bc),this.authService=u(Tt),this.router=u(Re),this.dialog=u(En),this.snackBar=u(di),this.searchSubject=new z,this.positions=[],this.loading=!1,this.displayedColumns=["positionNumber","positionTitle","departmentId","salaryRangeId","actions"],this.totalCount=0,this.pageNumber=1,this.pageSize=10,this.pageSizeOptions=[5,10,25,50,100],this.searchPositionNumber="",this.searchPositionTitle="",this.searchDepartment=""}ngOnInit(){this.searchSubject.pipe(Rt(500)).subscribe(()=>{this.pageNumber=1,this.loadPositions()}),this.loadPositions()}ngAfterViewInit(){}loadPositions(){this.loading=!0;let i={pageNumber:this.pageNumber,pageSize:this.pageSize};this.searchPositionNumber&&(i.PositionNumber=this.searchPositionNumber),this.searchPositionTitle&&(i.PositionTitle=this.searchPositionTitle),this.searchDepartment&&(i.Department=this.searchDepartment),this.sort?.active&&this.sort?.direction&&(i.orderBy=`${this.sort.active} ${this.sort.direction}`),this.positionService.getAllPaged(i).subscribe({next:r=>{this.positions=r.value,this.totalCount=r.recordsTotal,this.loading=!1},error:r=>{console.error("Error loading positions:",r),this.loading=!1}})}onSearch(){this.searchSubject.next()}onPageChange(i){this.pageNumber=i.pageIndex+1,this.pageSize=i.pageSize,this.loadPositions()}onSortChange(i){this.loadPositions()}clearFilters(){this.searchPositionNumber="",this.searchPositionTitle="",this.searchDepartment="",this.pageNumber=1,this.loadPositions()}createPosition(){this.router.navigate(["/positions/create"])}viewPosition(i){this.router.navigate(["/positions",i.id])}editPosition(i){this.router.navigate(["/positions/edit",i.id])}deletePosition(i){this.dialog.open(Er,{width:"400px",data:{title:"Delete Position",message:`Are you sure you want to delete "${i.positionTitle}"? This action cannot be undone.`,confirmText:"Delete",cancelText:"Cancel"}}).afterClosed().subscribe(o=>{o&&this.positionService.delete(i.id).subscribe({next:()=>{this.showMessage(`"${i.positionTitle}" has been deleted.`),this.loadPositions()},error:a=>{console.error("Error deleting position:",a),this.showMessage("Failed to delete position. Please try again.")}})})}addMockData(){let i=prompt("How many mock positions would you like to add?","10");if(i){let r=parseInt(i,10);r>0&&r<=100?(this.loading=!0,this.positionService.addMockPositions({rowCount:r}).subscribe({next:()=>{this.showMessage(`${r} mock positions added successfully`),this.loadPositions()},error:o=>{console.error("Error adding mock positions:",o),this.showMessage("Error adding mock positions"),this.loading=!1}})):this.showMessage("Please enter a number between 1 and 100")}}showMessage(i){this.snackBar.open(i,"Close",{duration:3e3,horizontalPosition:"end",verticalPosition:"top"})}canEdit(){return this.authService.hasRole("HRAdmin")||this.authService.hasRole("Manager")}};n.\u0275fac=function(r){return new(r||n)},n.\u0275cmp=E({type:n,selectors:[["app-position-list"]],viewQuery:function(r,o){if(r&1&&(ie(ir,5),ie(Ml,5)),r&2){let a;B(a=j())&&(o.paginator=a.first),B(a=j())&&(o.sort=a.first)}},decls:36,vars:13,consts:[[1,"flex-spacer"],["mat-raised-button","","color","primary",3,"click",4,"appHasRole"],["mat-stroked-button","","color","accent","style","margin-left: 8px;",3,"click",4,"appHasRole"],[1,"search-filters",2,"margin-bottom","16px","display","flex","gap","16px","flex-wrap","wrap"],["appearance","outline",2,"flex","1","min-width","200px"],["matInput","","placeholder","Search by position number",3,"ngModelChange","input","ngModel"],["matSuffix",""],["matInput","","placeholder","Search by position title",3,"ngModelChange","input","ngModel"],["matInput","","placeholder","Search by department",3,"ngModelChange","input","ngModel"],["mat-stroked-button","",2,"height","56px",3,"click"],[1,"table-container"],["class","loading-spinner",4,"ngIf"],["mat-table","","matSort","","class","position-table",3,"dataSource","matSortChange",4,"ngIf"],["showFirstLastButtons","",3,"page","length","pageSize","pageSizeOptions","pageIndex"],["mat-raised-button","","color","primary",3,"click"],["mat-stroked-button","","color","accent",2,"margin-left","8px",3,"click"],[1,"loading-spinner"],["mat-table","","matSort","",1,"position-table",3,"matSortChange","dataSource"],["matColumnDef","positionNumber"],["mat-header-cell","","mat-sort-header","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","positionTitle"],["matColumnDef","departmentId"],["matColumnDef","salaryRangeId"],["matColumnDef","actions"],["mat-header-cell","","class","mat-column-actions",4,"matHeaderCellDef"],["mat-cell","","class","mat-column-actions",4,"matCellDef"],["mat-header-row","",4,"matHeaderRowDef"],["mat-row","",4,"matRowDef","matRowDefColumns"],["class","mat-row",4,"matNoDataRow"],["mat-header-cell","","mat-sort-header",""],["mat-cell",""],["mat-header-cell","",1,"mat-column-actions"],["mat-cell","",1,"mat-column-actions"],[1,"action-buttons"],["mat-icon-button","","color","primary","matTooltip","View Details",3,"click"],["mat-icon-button","","color","accent","matTooltip","Edit Position",3,"click",4,"appHasRole"],["mat-icon-button","","color","warn","matTooltip","Delete Position",3,"click",4,"appHasRole"],["mat-icon-button","","color","accent","matTooltip","Edit Position",3,"click"],["mat-icon-button","","color","warn","matTooltip","Delete Position",3,"click"],["mat-header-row",""],["mat-row",""],[1,"mat-row"],[1,"mat-cell"],[1,"no-data"]],template:function(r,o){r&1&&(k(0,"page-header"),h(1,"mat-card")(2,"mat-card-header")(3,"mat-card-title"),_(4,"Positions"),p(),k(5,"span",0),R(6,i0e,4,0,"button",1)(7,n0e,4,0,"button",2),p(),h(8,"mat-card-content")(9,"div",3)(10,"mat-form-field",4)(11,"mat-label"),_(12,"Position Number"),p(),h(13,"input",5),Uo("ngModelChange",function(s){return Ca(o.searchPositionNumber,s)||(o.searchPositionNumber=s),s}),S("input",function(){return o.onSearch()}),p(),h(14,"mat-icon",6),_(15,"search"),p()(),h(16,"mat-form-field",4)(17,"mat-label"),_(18,"Position Title"),p(),h(19,"input",7),Uo("ngModelChange",function(s){return Ca(o.searchPositionTitle,s)||(o.searchPositionTitle=s),s}),S("input",function(){return o.onSearch()}),p(),h(20,"mat-icon",6),_(21,"search"),p()(),h(22,"mat-form-field",4)(23,"mat-label"),_(24,"Department"),p(),h(25,"input",8),Uo("ngModelChange",function(s){return Ca(o.searchDepartment,s)||(o.searchDepartment=s),s}),S("input",function(){return o.onSearch()}),p(),h(26,"mat-icon",6),_(27,"search"),p()(),h(28,"button",9),S("click",function(){return o.clearFilters()}),h(29,"mat-icon"),_(30,"clear"),p(),_(31," Clear Filters "),p()(),h(32,"div",10),R(33,r0e,2,0,"div",11)(34,y0e,19,3,"table",12),p(),h(35,"mat-paginator",13),S("page",function(s){return o.onPageChange(s)}),p()()()),r&2&&(g(6),y("appHasRole",at(11,WU)),g(),y("appHasRole",at(12,GU)),g(6),zo("ngModel",o.searchPositionNumber),g(6),zo("ngModel",o.searchPositionTitle),g(6),zo("ngModel",o.searchDepartment),g(8),y("ngIf",o.loading),g(),y("ngIf",!o.loading),g(),y("length",o.totalCount)("pageSize",o.pageSize)("pageSizeOptions",o.pageSizeOptions)("pageIndex",o.pageNumber-1))},dependencies:[gt,li,ze,kt,ti,$t,zt,Ut,Jt,Xt,ot,mt,Zc,Hc,Uc,qc,$c,zc,Yc,Wc,Gc,Qc,Kc,gw,_c,ir,Ew,Ml,Dw,Si,ki,Br,Eo,Mn,$i,Oi,sn,ru,rr,hn,pi,du,Qi,ei,gg,ni,Un],styles:["mat-card[_ngcontent-%COMP%]{margin:16px}mat-card-header[_ngcontent-%COMP%]{display:flex;align-items:center;margin-bottom:16px;padding:16px;border-bottom:1px solid rgba(0,0,0,.12)}mat-card-header[_ngcontent-%COMP%] mat-card-title[_ngcontent-%COMP%]{font-size:20px;font-weight:500;margin:0}mat-card-header[_ngcontent-%COMP%] .flex-spacer[_ngcontent-%COMP%]{flex:1 1 auto}mat-card-header[_ngcontent-%COMP%] button[_ngcontent-%COMP%] mat-icon[_ngcontent-%COMP%]{margin-right:4px}mat-card-content[_ngcontent-%COMP%]{padding:0}.table-container[_ngcontent-%COMP%]{position:relative;min-height:300px;overflow-x:auto}.loading-spinner[_ngcontent-%COMP%]{display:flex;justify-content:center;align-items:center;min-height:300px}.position-table[_ngcontent-%COMP%]{width:100%}.position-table[_ngcontent-%COMP%] th[_ngcontent-%COMP%]{font-weight:600;font-size:14px;color:#000000de}.position-table[_ngcontent-%COMP%] td[_ngcontent-%COMP%]{font-size:14px;color:#000000de}.position-table[_ngcontent-%COMP%] .mat-column-positionNumber[_ngcontent-%COMP%]{min-width:150px}.position-table[_ngcontent-%COMP%] .mat-column-positionTitle[_ngcontent-%COMP%]{min-width:200px}.position-table[_ngcontent-%COMP%] .mat-column-departmentId[_ngcontent-%COMP%], .position-table[_ngcontent-%COMP%] .mat-column-salaryRangeId[_ngcontent-%COMP%]{min-width:150px}.position-table[_ngcontent-%COMP%] .mat-column-actions[_ngcontent-%COMP%]{width:150px;text-align:right}.position-table[_ngcontent-%COMP%] .action-buttons[_ngcontent-%COMP%]{display:flex;justify-content:flex-end;gap:4px}.position-table[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{margin-left:4px}.no-data[_ngcontent-%COMP%]{display:flex;flex-direction:column;align-items:center;justify-content:center;padding:48px 16px;color:#0000008a}.no-data[_ngcontent-%COMP%] mat-icon[_ngcontent-%COMP%]{font-size:48px;width:48px;height:48px;margin-bottom:16px}.no-data[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{margin:0;font-size:16px}mat-paginator[_ngcontent-%COMP%]{border-top:1px solid rgba(0,0,0,.12)}"]});let t=n;return t})();var YU=()=>["HRAdmin","Manager"];function x0e(t,n){t&1&&(h(0,"div",2),k(1,"mat-spinner"),p())}function C0e(t,n){if(t&1){let e=Y();h(0,"button",9),S("click",function(){I(e);let r=C(2);return A(r.editPosition())}),h(1,"mat-icon"),_(2,"edit"),p()()}}function w0e(t,n){if(t&1){let e=Y();h(0,"button",10),S("click",function(){I(e);let r=C(2);return A(r.deletePosition())}),h(1,"mat-icon"),_(2,"delete"),p()()}}function D0e(t,n){if(t&1&&(h(0,"mat-list-item")(1,"span",7),_(2,"Description:"),p(),h(3,"span",8),_(4),p()()),t&2){let e=C(2);g(4),H(e.position.positionDescription)}}function E0e(t,n){t&1&&k(0,"mat-divider")}function M0e(t,n){if(t&1&&(h(0,"mat-list-item")(1,"span",7),_(2,"Created:"),p(),h(3,"span",8),_(4),me(5,"date"),p()()),t&2){let e=C(2);g(4),H(Ni(5,1,e.position.createdAt,"medium"))}}function k0e(t,n){t&1&&k(0,"mat-divider")}function S0e(t,n){if(t&1&&(h(0,"mat-list-item")(1,"span",7),_(2,"Last Modified:"),p(),h(3,"span",8),_(4),me(5,"date"),p()()),t&2){let e=C(2);g(4),H(Ni(5,1,e.position.lastModifiedAt,"medium"))}}function T0e(t,n){if(t&1){let e=Y();h(0,"mat-card")(1,"mat-card-header")(2,"mat-card-title"),_(3),p(),h(4,"div",3),R(5,C0e,3,0,"button",4)(6,w0e,3,0,"button",5),h(7,"button",6),S("click",function(){I(e);let r=C();return A(r.goBack())}),h(8,"mat-icon"),_(9,"arrow_back"),p()()()(),h(10,"mat-card-content")(11,"mat-list")(12,"mat-list-item")(13,"span",7),_(14,"Position Number:"),p(),h(15,"span",8),_(16),p()(),k(17,"mat-divider"),h(18,"mat-list-item")(19,"span",7),_(20,"Position Title:"),p(),h(21,"span",8),_(22),p()(),k(23,"mat-divider"),R(24,D0e,5,1,"mat-list-item",1)(25,E0e,1,0,"mat-divider",1),h(26,"mat-list-item")(27,"span",7),_(28,"Department:"),p(),h(29,"span",8),_(30),p()(),k(31,"mat-divider"),h(32,"mat-list-item")(33,"span",7),_(34,"Salary Range:"),p(),h(35,"span",8),_(36),p()(),k(37,"mat-divider"),R(38,M0e,6,4,"mat-list-item",1)(39,k0e,1,0,"mat-divider",1)(40,S0e,6,4,"mat-list-item",1),p()()()}if(t&2){let e=C();g(3),H(e.position.positionTitle),g(2),y("appHasRole",at(12,YU)),g(),y("appHasRole",at(13,YU)),g(10),H(e.position.positionNumber),g(6),H(e.position.positionTitle),g(2),y("ngIf",e.position.positionDescription),g(),y("ngIf",e.position.positionDescription),g(5),H((e.position.department==null?null:e.position.department.name)||e.position.departmentId),g(6),H((e.position.salaryRange==null?null:e.position.salaryRange.name)||e.position.salaryRangeId),g(2),y("ngIf",e.position.createdAt),g(),y("ngIf",e.position.createdAt),g(),y("ngIf",e.position.lastModifiedAt)}}function I0e(t,n){t&1&&(h(0,"mat-card")(1,"mat-card-content")(2,"p"),_(3,"Position not found."),p()()())}var QU=(()=>{let n=class n{constructor(){this.positionService=u(Bc),this.authService=u(Tt),this.route=u(wi),this.router=u(Re),this.snackBar=u(di),this.dialog=u(En),this.loading=!1}ngOnInit(){let i=this.route.snapshot.paramMap.get("id");i&&this.loadPosition(i)}loadPosition(i){this.loading=!0,this.positionService.getById(i).subscribe({next:r=>{this.position=r,this.loading=!1},error:r=>{console.error("Error loading position:",r),this.showMessage("Error loading position"),this.loading=!1,this.router.navigate(["/positions"])}})}editPosition(){this.router.navigate(["/positions","edit",this.position.id])}deletePosition(){this.dialog.open(Er,{width:"400px",data:{title:"Delete Position",message:`Are you sure you want to delete "${this.position.positionTitle}"? This action cannot be undone.`,confirmText:"Delete",cancelText:"Cancel"}}).afterClosed().subscribe(r=>{r&&this.positionService.delete(this.position.id).subscribe({next:()=>{let o=this.snackBar.open(`"${this.position.positionTitle}" has been deleted.`,"Close",{duration:3e3,horizontalPosition:"end",verticalPosition:"top"});o.afterDismissed().subscribe(()=>this.router.navigate(["/positions"])),o.onAction().subscribe(()=>this.router.navigate(["/positions"]))},error:o=>{console.error("Error deleting position:",o),this.showMessage("Failed to delete position. Please try again.")}})})}goBack(){this.router.navigate(["/positions"])}canEdit(){return this.authService.isHRAdmin()||this.authService.isManager()}canDelete(){return this.authService.isHRAdmin()||this.authService.isManager()}showMessage(i){this.snackBar.open(i,"Close",{duration:3e3,horizontalPosition:"end",verticalPosition:"top"})}};n.\u0275fac=function(r){return new(r||n)},n.\u0275cmp=E({type:n,selectors:[["app-position-detail"]],decls:4,vars:3,consts:[["class","loading-spinner",4,"ngIf"],[4,"ngIf"],[1,"loading-spinner"],[1,"header-actions"],["mat-icon-button","","color","primary","matTooltip","Edit Position",3,"click",4,"appHasRole"],["mat-icon-button","","color","warn","matTooltip","Delete Position",3,"click",4,"appHasRole"],["mat-icon-button","","matTooltip","Back to List",3,"click"],[1,"label"],[1,"value"],["mat-icon-button","","color","primary","matTooltip","Edit Position",3,"click"],["mat-icon-button","","color","warn","matTooltip","Delete Position",3,"click"]],template:function(r,o){r&1&&(k(0,"page-header"),R(1,x0e,2,0,"div",0)(2,T0e,41,14,"mat-card",1)(3,I0e,4,0,"mat-card",1)),r&2&&(g(),y("ngIf",o.loading),g(),y("ngIf",!o.loading&&o.position),g(),y("ngIf",!o.loading&&!o.position))},dependencies:[gt,li,ze,ti,$t,zt,Ut,Jt,Xt,ot,mt,ca,Fs,la,Ha,sa,Si,ki,pi,Mn,ni,Un,Sa],styles:[".loading-spinner[_ngcontent-%COMP%]{display:flex;justify-content:center;align-items:center;min-height:400px}mat-card[_ngcontent-%COMP%]{margin:16px;max-width:800px}mat-card-header[_ngcontent-%COMP%]{padding:16px;border-bottom:1px solid rgba(0,0,0,.12);display:flex;justify-content:space-between;align-items:center}mat-card-header[_ngcontent-%COMP%] mat-card-title[_ngcontent-%COMP%]{font-size:24px;font-weight:500;margin:0}mat-card-header[_ngcontent-%COMP%] .header-actions[_ngcontent-%COMP%]{display:flex;gap:8px}mat-card-content[_ngcontent-%COMP%]{padding:0}mat-list[_ngcontent-%COMP%]{padding:0}mat-list-item[_ngcontent-%COMP%]{height:auto!important;min-height:48px;padding:12px 16px;display:flex;justify-content:space-between;align-items:flex-start}mat-list-item[_ngcontent-%COMP%] .label[_ngcontent-%COMP%]{font-weight:500;color:#0009;min-width:180px}mat-list-item[_ngcontent-%COMP%] .value[_ngcontent-%COMP%]{flex:1;text-align:right;word-break:break-word}"]});let t=n;return t})();function A0e(t,n){t&1&&(h(0,"div",0),k(1,"mat-spinner"),p())}function O0e(t,n){t&1&&(h(0,"mat-error"),_(1," Position title is required "),p())}function R0e(t,n){t&1&&(h(0,"mat-error"),_(1," Position title cannot exceed 100 characters "),p())}function P0e(t,n){t&1&&(h(0,"mat-error"),_(1," Position number is required "),p())}function F0e(t,n){t&1&&(h(0,"mat-error"),_(1," Position number cannot exceed 50 characters "),p())}function N0e(t,n){t&1&&(h(0,"mat-error"),_(1," Position description cannot exceed 500 characters "),p())}function L0e(t,n){if(t&1&&(h(0,"mat-option",14),_(1),p()),t&2){let e=n.$implicit;y("value",e.id),g(),ve(" ",e.name," ")}}function V0e(t,n){t&1&&(h(0,"mat-error"),_(1," Department is required "),p())}function B0e(t,n){if(t&1&&(h(0,"mat-option",14),_(1),me(2,"number"),me(3,"number"),p()),t&2){let e=n.$implicit;y("value",e.id),g(),Cm(" ",e.name," ($",Ni(2,4,e.minSalary,"1.0-0")," - $",Ni(3,7,e.maxSalary,"1.0-0"),") ")}}function j0e(t,n){t&1&&(h(0,"mat-error"),_(1," Salary range is required "),p())}var sA=(()=>{let n=class n{constructor(){this.fb=u(eo),this.router=u(Re),this.route=u(wi),this.snackBar=u(di),this.positionService=u(Bc),this.departmentService=u(Vs),this.salaryRangeService=u(jc),this.loading=!1,this.isEditMode=!1,this.departments=[],this.salaryRanges=[]}ngOnInit(){this.initForm(),this.loadDepartments(),this.loadSalaryRanges(),this.checkEditMode()}initForm(){this.positionForm=this.fb.group({positionTitle:["",[Le.required,Le.maxLength(100)]],positionNumber:["",[Le.required,Le.maxLength(50)]],positionDescription:["",[Le.maxLength(500)]],departmentId:["",Le.required],salaryRangeId:["",Le.required]})}loadDepartments(){this.departmentService.getAll().subscribe({next:i=>{this.departments=i},error:i=>{console.error("Error loading departments:",i),this.showMessage("Error loading departments")}})}loadSalaryRanges(){this.salaryRangeService.getAll().subscribe({next:i=>{this.salaryRanges=i},error:i=>{console.error("Error loading salary ranges:",i),this.showMessage("Error loading salary ranges")}})}checkEditMode(){this.positionId=this.route.snapshot.paramMap.get("id")||void 0,this.isEditMode=!!this.positionId,this.isEditMode&&this.positionId&&this.loadPosition(this.positionId)}loadPosition(i){this.loading=!0,this.positionService.getById(i).subscribe({next:r=>{this.positionForm.patchValue({positionTitle:r.positionTitle,positionNumber:r.positionNumber,positionDescription:r.positionDescription,departmentId:r.departmentId,salaryRangeId:r.salaryRangeId}),this.loading=!1},error:r=>{console.error("Error loading position:",r),this.showMessage("Error loading position"),this.loading=!1}})}onSubmit(){if(this.positionForm.invalid){this.positionForm.markAllAsTouched();return}if(this.loading=!0,this.isEditMode&&this.positionId){let i=M({id:this.positionId},this.positionForm.value);this.positionService.updatePosition(i).subscribe({next:()=>{this.showMessage("Position updated successfully"),this.router.navigate(["/positions",this.positionId])},error:r=>{console.error("Error updating position:",r),this.showMessage("Error updating position"),this.loading=!1}})}else{let i=this.positionForm.value;this.positionService.createPosition(i).subscribe({next:r=>{console.log("Position created - Response:",r),console.log("Position ID:",r?.id),this.showMessage("Position created successfully"),r?.id?(console.log("Navigating to detail page:","/positions/"+r.id),this.router.navigate(["/positions",r.id])):(console.warn("No position ID returned, navigating to list page"),this.router.navigate(["/positions"])),this.loading=!1},error:r=>{console.error("Error creating position:",r),this.showMessage("Error creating position"),this.loading=!1}})}}onCancel(){this.router.navigate(["/positions"])}showMessage(i){this.snackBar.open(i,"Close",{duration:3e3,horizontalPosition:"end",verticalPosition:"top"})}getFormTitle(){return this.isEditMode?"Edit Position":"Create Position"}};n.\u0275fac=function(r){return new(r||n)},n.\u0275cmp=E({type:n,selectors:[["app-position-form"]],decls:43,vars:14,consts:[[1,"loading-overlay"],[3,"ngSubmit","formGroup"],[1,"form-section"],["appearance","outline",1,"full-width"],["matInput","","formControlName","positionTitle"],[4,"ngIf"],["matInput","","formControlName","positionNumber"],["matInput","","formControlName","positionDescription","rows","4"],["formControlName","departmentId"],[3,"value",4,"ngFor","ngForOf"],["formControlName","salaryRangeId"],[1,"form-actions"],["type","button","mat-stroked-button","",3,"click"],["type","submit","mat-raised-button","","color","primary",3,"disabled"],[3,"value"]],template:function(r,o){if(r&1&&(k(0,"page-header"),h(1,"mat-card")(2,"mat-card-header")(3,"mat-card-title"),_(4),p()(),h(5,"mat-card-content"),N(6,A0e,2,0,"div",0),h(7,"form",1),S("ngSubmit",function(){return o.onSubmit()}),h(8,"div",2)(9,"mat-form-field",3)(10,"mat-label"),_(11,"Position Title"),p(),k(12,"input",4),R(13,O0e,2,0,"mat-error",5)(14,R0e,2,0,"mat-error",5),p(),h(15,"mat-form-field",3)(16,"mat-label"),_(17,"Position Number"),p(),k(18,"input",6),R(19,P0e,2,0,"mat-error",5)(20,F0e,2,0,"mat-error",5),p(),h(21,"mat-form-field",3)(22,"mat-label"),_(23,"Position Description"),p(),k(24,"textarea",7),R(25,N0e,2,0,"mat-error",5),p(),h(26,"mat-form-field",3)(27,"mat-label"),_(28,"Department"),p(),h(29,"mat-select",8),R(30,L0e,2,2,"mat-option",9),p(),R(31,V0e,2,0,"mat-error",5),p(),h(32,"mat-form-field",3)(33,"mat-label"),_(34,"Salary Range"),p(),h(35,"mat-select",10),R(36,B0e,4,10,"mat-option",9),p(),R(37,j0e,2,0,"mat-error",5),p()(),h(38,"div",11)(39,"button",12),S("click",function(){return o.onCancel()}),_(40," Cancel "),p(),h(41,"button",13),_(42),p()()()()()),r&2){let a,s,l,c,d,m,f;g(4),H(o.getFormTitle()),g(2),L(o.loading?6:-1),g(),y("formGroup",o.positionForm),g(6),y("ngIf",(a=o.positionForm.get("positionTitle"))==null?null:a.hasError("required")),g(),y("ngIf",(s=o.positionForm.get("positionTitle"))==null?null:s.hasError("maxlength")),g(5),y("ngIf",(l=o.positionForm.get("positionNumber"))==null?null:l.hasError("required")),g(),y("ngIf",(c=o.positionForm.get("positionNumber"))==null?null:c.hasError("maxlength")),g(5),y("ngIf",(d=o.positionForm.get("positionDescription"))==null?null:d.hasError("maxlength")),g(5),y("ngForOf",o.departments),g(),y("ngIf",(m=o.positionForm.get("departmentId"))==null?null:m.hasError("required")),g(5),y("ngForOf",o.salaryRanges),g(),y("ngIf",(f=o.positionForm.get("salaryRangeId"))==null?null:f.hasError("required")),g(4),y("disabled",o.loading),g(),ve(" ",o.isEditMode?"Update":"Create"," ")}},dependencies:[gt,qr,li,zn,Jr,Qi,ei,Xr,Ki,Lr,ze,kt,$t,zt,Ut,Jt,Xt,$i,Oi,sn,xo,rr,hn,fc,Na,xn,Si,ki,pi,ni,ff],styles:["mat-card[_ngcontent-%COMP%]{margin:16px;max-width:800px}mat-card-header[_ngcontent-%COMP%]{margin-bottom:16px;padding:16px;border-bottom:1px solid rgba(0,0,0,.12)}mat-card-header[_ngcontent-%COMP%] mat-card-title[_ngcontent-%COMP%]{font-size:20px;font-weight:500;margin:0}mat-card-content[_ngcontent-%COMP%]{padding:16px;position:relative}.loading-overlay[_ngcontent-%COMP%]{position:absolute;inset:0;background-color:#fffc;display:flex;align-items:center;justify-content:center;z-index:1000}.form-section[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:16px;margin-bottom:24px}.form-section[_ngcontent-%COMP%] .full-width[_ngcontent-%COMP%]{width:100%}.form-actions[_ngcontent-%COMP%]{display:flex;gap:12px;justify-content:flex-end;padding-top:16px;border-top:1px solid rgba(0,0,0,.12)}"]});let t=n;return t})();var KU=()=>["HRAdmin","Manager"],H0e=()=>[5,10,25,50],z0e=()=>["HRAdmin"];function U0e(t,n){if(t&1){let e=Y();h(0,"button",6),S("click",function(){I(e);let r=C();return A(r.createSalaryRange())}),h(1,"mat-icon"),_(2,"add"),p(),_(3," Add Salary Range "),p()}}function $0e(t,n){t&1&&(h(0,"div",7),k(1,"mat-spinner"),p())}function W0e(t,n){t&1&&(h(0,"th",20),_(1,"Range Name"),p())}function G0e(t,n){if(t&1&&(h(0,"td",21),_(1),p()),t&2){let e=n.$implicit;g(),H(e.name)}}function q0e(t,n){t&1&&(h(0,"th",20),_(1,"Minimum Salary"),p())}function Y0e(t,n){if(t&1&&(h(0,"td",21),_(1),me(2,"currency"),p()),t&2){let e=n.$implicit;g(),H(Dm(2,1,e.minSalary,"USD","symbol","1.0-0"))}}function Q0e(t,n){t&1&&(h(0,"th",20),_(1,"Maximum Salary"),p())}function K0e(t,n){if(t&1&&(h(0,"td",21),_(1),me(2,"currency"),p()),t&2){let e=n.$implicit;g(),H(Dm(2,1,e.maxSalary,"USD","symbol","1.0-0"))}}function Z0e(t,n){t&1&&(h(0,"th",22),_(1,"Actions"),p())}function X0e(t,n){if(t&1){let e=Y();h(0,"button",28),S("click",function(){I(e);let r=C().$implicit,o=C(2);return A(o.editSalaryRange(r))}),h(1,"mat-icon"),_(2,"edit"),p()()}}function J0e(t,n){if(t&1){let e=Y();h(0,"button",29),S("click",function(){I(e);let r=C().$implicit,o=C(2);return A(o.deleteSalaryRange(r))}),h(1,"mat-icon"),_(2,"delete"),p()()}}function eye(t,n){if(t&1){let e=Y();h(0,"td",23)(1,"div",24)(2,"button",25),S("click",function(){let r=I(e).$implicit,o=C(2);return A(o.viewSalaryRange(r))}),h(3,"mat-icon"),_(4,"visibility"),p()(),R(5,X0e,3,0,"button",26)(6,J0e,3,0,"button",27),p()()}t&2&&(g(5),y("appHasRole",at(2,KU)),g(),y("appHasRole",at(3,z0e)))}function tye(t,n){t&1&&k(0,"tr",30)}function iye(t,n){t&1&&k(0,"tr",31)}function nye(t,n){if(t&1&&(h(0,"tr",32)(1,"td",33)(2,"div",34)(3,"mat-icon"),_(4,"money_off"),p(),h(5,"p"),_(6,"No salary ranges found"),p()()()()),t&2){let e=C(2);g(),X("colspan",e.displayedColumns.length)}}function rye(t,n){if(t&1&&(h(0,"table",8),jt(1,9),R(2,W0e,2,0,"th",10)(3,G0e,2,1,"td",11),Lt(),jt(4,12),R(5,q0e,2,0,"th",10)(6,Y0e,3,6,"td",11),Lt(),jt(7,13),R(8,Q0e,2,0,"th",10)(9,K0e,3,6,"td",11),Lt(),jt(10,14),R(11,Z0e,2,0,"th",15)(12,eye,7,4,"td",16),Lt(),R(13,tye,1,0,"tr",17)(14,iye,1,0,"tr",18)(15,nye,7,1,"tr",19),p()),t&2){let e=C();y("dataSource",e.dataSource),g(13),y("matHeaderRowDef",e.displayedColumns),g(),y("matRowDefColumns",e.displayedColumns)}}var ZU=(()=>{let n=class n{constructor(){this.salaryRangeService=u(jc),this.authService=u(Tt),this.router=u(Re),this.snackBar=u(di),this.dialog=u(En),this.dataSource=new fw([]),this.loading=!1,this.displayedColumns=["name","minSalary","maxSalary","actions"]}ngOnInit(){this.loadSalaryRanges()}ngAfterViewInit(){this.dataSource.paginator=this.paginator,this.dataSource.sort=this.sort}loadSalaryRanges(){this.loading=!0,this.salaryRangeService.getAll().subscribe({next:i=>{this.dataSource.data=i,this.loading=!1},error:i=>{console.error("Error loading salary ranges:",i),this.loading=!1}})}createSalaryRange(){this.router.navigate(["/salary-ranges/create"])}viewSalaryRange(i){this.router.navigate(["/salary-ranges",i.id])}editSalaryRange(i){this.router.navigate(["/salary-ranges/edit",i.id])}deleteSalaryRange(i){this.dialog.open(Er,{width:"400px",data:{title:"Delete Salary Range",message:`Are you sure you want to delete "${i.name}"? This action cannot be undone.`,confirmText:"Delete",cancelText:"Cancel"}}).afterClosed().subscribe(o=>{o&&this.salaryRangeService.delete(i.id).subscribe({next:()=>{this.showMessage(`"${i.name}" has been deleted.`),this.loadSalaryRanges()},error:a=>{console.error("Error deleting salary range:",a),this.showMessage("Failed to delete salary range. Please try again.")}})})}showMessage(i){this.snackBar.open(i,"Close",{duration:3e3,horizontalPosition:"end",verticalPosition:"top"})}canEdit(){return this.authService.hasRole("HRAdmin")||this.authService.hasRole("Manager")}};n.\u0275fac=function(r){return new(r||n)},n.\u0275cmp=E({type:n,selectors:[["app-salary-range-list"]],viewQuery:function(r,o){if(r&1&&(ie(ir,5),ie(Ml,5)),r&2){let a;B(a=j())&&(o.paginator=a.first),B(a=j())&&(o.sort=a.first)}},decls:12,vars:6,consts:[[1,"flex-spacer"],["mat-raised-button","","color","primary",3,"click",4,"appHasRole"],[1,"table-container"],["class","loading-spinner",4,"ngIf"],["mat-table","","matSort","","class","salary-range-table",3,"dataSource",4,"ngIf"],["showFirstLastButtons","",3,"pageSizeOptions"],["mat-raised-button","","color","primary",3,"click"],[1,"loading-spinner"],["mat-table","","matSort","",1,"salary-range-table",3,"dataSource"],["matColumnDef","name"],["mat-header-cell","","mat-sort-header","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","minSalary"],["matColumnDef","maxSalary"],["matColumnDef","actions"],["mat-header-cell","","class","mat-column-actions",4,"matHeaderCellDef"],["mat-cell","","class","mat-column-actions",4,"matCellDef"],["mat-header-row","",4,"matHeaderRowDef"],["mat-row","",4,"matRowDef","matRowDefColumns"],["class","mat-row",4,"matNoDataRow"],["mat-header-cell","","mat-sort-header",""],["mat-cell",""],["mat-header-cell","",1,"mat-column-actions"],["mat-cell","",1,"mat-column-actions"],[1,"action-buttons"],["mat-icon-button","","color","primary","matTooltip","View Details",3,"click"],["mat-icon-button","","color","accent","matTooltip","Edit Salary Range",3,"click",4,"appHasRole"],["mat-icon-button","","color","warn","matTooltip","Delete Salary Range",3,"click",4,"appHasRole"],["mat-icon-button","","color","accent","matTooltip","Edit Salary Range",3,"click"],["mat-icon-button","","color","warn","matTooltip","Delete Salary Range",3,"click"],["mat-header-row",""],["mat-row",""],[1,"mat-row"],[1,"mat-cell"],[1,"no-data"]],template:function(r,o){r&1&&(k(0,"page-header"),h(1,"mat-card")(2,"mat-card-header")(3,"mat-card-title"),_(4,"Salary Ranges"),p(),k(5,"span",0),R(6,U0e,4,0,"button",1),p(),h(7,"mat-card-content")(8,"div",2),R(9,$0e,2,0,"div",3)(10,rye,16,3,"table",4),p(),k(11,"mat-paginator",5),p()()),r&2&&(g(6),y("appHasRole",at(4,KU)),g(3),y("ngIf",o.loading),g(),y("ngIf",!o.loading),g(),y("pageSizeOptions",at(5,H0e)))},dependencies:[gt,li,ze,kt,ti,$t,zt,Ut,Jt,Xt,ot,mt,Zc,Hc,Uc,qc,$c,zc,Yc,Wc,Gc,Qc,Kc,gw,_c,ir,Ew,Ml,Dw,Si,ki,Br,Eo,pi,Mn,ni,Un,il],styles:["mat-card[_ngcontent-%COMP%]{margin:16px}mat-card-header[_ngcontent-%COMP%]{display:flex;align-items:center;margin-bottom:16px;padding:16px;border-bottom:1px solid rgba(0,0,0,.12)}mat-card-header[_ngcontent-%COMP%] mat-card-title[_ngcontent-%COMP%]{font-size:20px;font-weight:500;margin:0}mat-card-header[_ngcontent-%COMP%] .flex-spacer[_ngcontent-%COMP%]{flex:1 1 auto}mat-card-header[_ngcontent-%COMP%] button[_ngcontent-%COMP%] mat-icon[_ngcontent-%COMP%]{margin-right:4px}mat-card-content[_ngcontent-%COMP%]{padding:0}.table-container[_ngcontent-%COMP%]{position:relative;min-height:300px;overflow-x:auto}.loading-spinner[_ngcontent-%COMP%]{display:flex;justify-content:center;align-items:center;min-height:300px}.salary-range-table[_ngcontent-%COMP%]{width:100%}.salary-range-table[_ngcontent-%COMP%] th[_ngcontent-%COMP%]{font-weight:600;font-size:14px;color:#000000de}.salary-range-table[_ngcontent-%COMP%] td[_ngcontent-%COMP%]{font-size:14px;color:#000000de}.salary-range-table[_ngcontent-%COMP%] .mat-column-name[_ngcontent-%COMP%]{min-width:200px}.salary-range-table[_ngcontent-%COMP%] .mat-column-minSalary[_ngcontent-%COMP%], .salary-range-table[_ngcontent-%COMP%] .mat-column-maxSalary[_ngcontent-%COMP%]{min-width:150px}.salary-range-table[_ngcontent-%COMP%] .mat-column-actions[_ngcontent-%COMP%]{width:150px;text-align:right}.salary-range-table[_ngcontent-%COMP%] .action-buttons[_ngcontent-%COMP%]{display:flex;justify-content:flex-end;gap:4px}.salary-range-table[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{margin-left:4px}.no-data[_ngcontent-%COMP%]{display:flex;flex-direction:column;align-items:center;justify-content:center;padding:48px 16px;color:#0000008a}.no-data[_ngcontent-%COMP%] mat-icon[_ngcontent-%COMP%]{font-size:48px;width:48px;height:48px;margin-bottom:16px}.no-data[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{margin:0;font-size:16px}mat-paginator[_ngcontent-%COMP%]{border-top:1px solid rgba(0,0,0,.12)}"]});let t=n;return t})();var XU=()=>["HRAdmin","Manager"];function oye(t,n){t&1&&(h(0,"div",2),k(1,"mat-spinner"),p())}function aye(t,n){if(t&1){let e=Y();h(0,"button",9),S("click",function(){I(e);let r=C(2);return A(r.editSalaryRange())}),h(1,"mat-icon"),_(2,"edit"),p()()}}function sye(t,n){if(t&1){let e=Y();h(0,"button",10),S("click",function(){I(e);let r=C(2);return A(r.deleteSalaryRange())}),h(1,"mat-icon"),_(2,"delete"),p()()}}function lye(t,n){if(t&1&&(h(0,"mat-list-item")(1,"span",7),_(2,"Created:"),p(),h(3,"span",8),_(4),me(5,"date"),p()()),t&2){let e=C(2);g(4),H(Ni(5,1,e.salaryRange.createdAt,"medium"))}}function cye(t,n){t&1&&k(0,"mat-divider")}function dye(t,n){if(t&1&&(h(0,"mat-list-item")(1,"span",7),_(2,"Last Modified:"),p(),h(3,"span",8),_(4),me(5,"date"),p()()),t&2){let e=C(2);g(4),H(Ni(5,1,e.salaryRange.lastModifiedAt,"medium"))}}function uye(t,n){if(t&1){let e=Y();h(0,"mat-card")(1,"mat-card-header")(2,"mat-card-title"),_(3),p(),h(4,"div",3),R(5,aye,3,0,"button",4)(6,sye,3,0,"button",5),h(7,"button",6),S("click",function(){I(e);let r=C();return A(r.goBack())}),h(8,"mat-icon"),_(9,"arrow_back"),p()()()(),h(10,"mat-card-content")(11,"mat-list")(12,"mat-list-item")(13,"span",7),_(14,"Name:"),p(),h(15,"span",8),_(16),p()(),k(17,"mat-divider"),h(18,"mat-list-item")(19,"span",7),_(20,"Minimum Salary:"),p(),h(21,"span",8),_(22),me(23,"currency"),p()(),k(24,"mat-divider"),h(25,"mat-list-item")(26,"span",7),_(27,"Maximum Salary:"),p(),h(28,"span",8),_(29),me(30,"currency"),p()(),k(31,"mat-divider"),R(32,lye,6,4,"mat-list-item",1)(33,cye,1,0,"mat-divider",1)(34,dye,6,4,"mat-list-item",1),p()()()}if(t&2){let e=C();g(3),H(e.salaryRange.name),g(2),y("appHasRole",at(13,XU)),g(),y("appHasRole",at(14,XU)),g(10),H(e.salaryRange.name),g(6),H(Oe(23,9,e.salaryRange.minSalary)),g(7),H(Oe(30,11,e.salaryRange.maxSalary)),g(3),y("ngIf",e.salaryRange.createdAt),g(),y("ngIf",e.salaryRange.createdAt),g(),y("ngIf",e.salaryRange.lastModifiedAt)}}function mye(t,n){t&1&&(h(0,"mat-card")(1,"mat-card-content")(2,"p"),_(3,"Salary range not found."),p()()())}var JU=(()=>{let n=class n{constructor(){this.salaryRangeService=u(jc),this.authService=u(Tt),this.route=u(wi),this.router=u(Re),this.snackBar=u(di),this.dialog=u(En),this.loading=!1}ngOnInit(){let i=this.route.snapshot.paramMap.get("id");i&&this.loadSalaryRange(i)}loadSalaryRange(i){this.loading=!0,this.salaryRangeService.getById(i).subscribe({next:r=>{this.salaryRange=r,this.loading=!1},error:r=>{console.error("Error loading salary range:",r),this.showMessage("Error loading salary range"),this.loading=!1,this.router.navigate(["/salary-ranges"])}})}editSalaryRange(){this.router.navigate(["/salary-ranges","edit",this.salaryRange.id])}deleteSalaryRange(){this.dialog.open(Er,{width:"400px",data:{title:"Delete Salary Range",message:`Are you sure you want to delete "${this.salaryRange.name}"? This action cannot be undone.`,confirmText:"Delete",cancelText:"Cancel"}}).afterClosed().subscribe(r=>{r&&this.salaryRangeService.delete(this.salaryRange.id).subscribe({next:()=>{let o=this.snackBar.open(`"${this.salaryRange.name}" has been deleted.`,"Close",{duration:3e3,horizontalPosition:"end",verticalPosition:"top"});o.afterDismissed().subscribe(()=>this.router.navigate(["/salary-ranges"])),o.onAction().subscribe(()=>this.router.navigate(["/salary-ranges"]))},error:o=>{console.error("Error deleting salary range:",o),this.showMessage("Failed to delete salary range. Please try again.")}})})}goBack(){this.router.navigate(["/salary-ranges"])}canEdit(){return this.authService.isHRAdmin()||this.authService.isManager()}canDelete(){return this.authService.isHRAdmin()||this.authService.isManager()}showMessage(i){this.snackBar.open(i,"Close",{duration:3e3,horizontalPosition:"end",verticalPosition:"top"})}};n.\u0275fac=function(r){return new(r||n)},n.\u0275cmp=E({type:n,selectors:[["app-salary-range-detail"]],decls:4,vars:3,consts:[["class","loading-spinner",4,"ngIf"],[4,"ngIf"],[1,"loading-spinner"],[1,"header-actions"],["mat-icon-button","","color","primary","matTooltip","Edit Salary Range",3,"click",4,"appHasRole"],["mat-icon-button","","color","warn","matTooltip","Delete Salary Range",3,"click",4,"appHasRole"],["mat-icon-button","","matTooltip","Back to List",3,"click"],[1,"label"],[1,"value"],["mat-icon-button","","color","primary","matTooltip","Edit Salary Range",3,"click"],["mat-icon-button","","color","warn","matTooltip","Delete Salary Range",3,"click"]],template:function(r,o){r&1&&(k(0,"page-header"),R(1,oye,2,0,"div",0)(2,uye,35,15,"mat-card",1)(3,mye,4,0,"mat-card",1)),r&2&&(g(),y("ngIf",o.loading),g(),y("ngIf",!o.loading&&o.salaryRange),g(),y("ngIf",!o.loading&&!o.salaryRange))},dependencies:[gt,li,ze,ti,$t,zt,Ut,Jt,Xt,ot,mt,ca,Fs,la,Ha,sa,Si,ki,pi,Mn,ni,Un,il,Sa],styles:[".loading-spinner[_ngcontent-%COMP%]{display:flex;justify-content:center;align-items:center;min-height:400px}mat-card[_ngcontent-%COMP%]{margin:16px;max-width:800px}mat-card-header[_ngcontent-%COMP%]{padding:16px;border-bottom:1px solid rgba(0,0,0,.12);display:flex;justify-content:space-between;align-items:center}mat-card-header[_ngcontent-%COMP%] mat-card-title[_ngcontent-%COMP%]{font-size:24px;font-weight:500;margin:0}mat-card-header[_ngcontent-%COMP%] .header-actions[_ngcontent-%COMP%]{display:flex;gap:8px}mat-card-content[_ngcontent-%COMP%]{padding:0}mat-list[_ngcontent-%COMP%]{padding:0}mat-list-item[_ngcontent-%COMP%]{height:auto!important;min-height:48px;padding:12px 16px;display:flex;justify-content:space-between;align-items:flex-start}mat-list-item[_ngcontent-%COMP%] .label[_ngcontent-%COMP%]{font-weight:500;color:#0009;min-width:180px}mat-list-item[_ngcontent-%COMP%] .value[_ngcontent-%COMP%]{flex:1;text-align:right;word-break:break-word}"]});let t=n;return t})();function hye(t,n){t&1&&(h(0,"div",0),k(1,"mat-spinner"),p())}function pye(t,n){t&1&&(h(0,"mat-error"),_(1," Range name is required "),p())}function fye(t,n){t&1&&(h(0,"mat-error"),_(1," Range name cannot exceed 100 characters "),p())}function gye(t,n){t&1&&(h(0,"mat-error"),_(1," Minimum salary is required "),p())}function _ye(t,n){t&1&&(h(0,"mat-error"),_(1," Minimum salary must be at least 0 "),p())}function bye(t,n){t&1&&(h(0,"mat-error"),_(1," Maximum salary is required "),p())}function vye(t,n){t&1&&(h(0,"mat-error"),_(1," Maximum salary must be at least 0 "),p())}function yye(t,n){t&1&&(h(0,"mat-error",13),_(1," Maximum salary must be greater than minimum salary "),p())}var lA=(()=>{let n=class n{constructor(){this.fb=u(eo),this.router=u(Re),this.route=u(wi),this.snackBar=u(di),this.salaryRangeService=u(jc),this.loading=!1,this.isEditMode=!1}ngOnInit(){this.initForm(),this.checkEditMode()}initForm(){this.salaryRangeForm=this.fb.group({name:["",[Le.required,Le.maxLength(100)]],minSalary:["",[Le.required,Le.min(0)]],maxSalary:["",[Le.required,Le.min(0)]]},{validators:this.salaryRangeValidator})}salaryRangeValidator(i){let r=i.get("minSalary")?.value,o=i.get("maxSalary")?.value;return r&&o&&parseFloat(r)>=parseFloat(o)?{salaryRangeInvalid:!0}:null}checkEditMode(){this.salaryRangeId=this.route.snapshot.paramMap.get("id")||void 0,this.isEditMode=!!this.salaryRangeId,this.isEditMode&&this.salaryRangeId&&this.loadSalaryRange(this.salaryRangeId)}loadSalaryRange(i){this.loading=!0,this.salaryRangeService.getById(i).subscribe({next:r=>{this.salaryRangeForm.patchValue({name:r.name,minSalary:r.minSalary,maxSalary:r.maxSalary}),this.loading=!1},error:r=>{console.error("Error loading salary range:",r),this.showMessage("Error loading salary range"),this.loading=!1}})}onSubmit(){if(this.salaryRangeForm.invalid){this.salaryRangeForm.markAllAsTouched();return}if(this.loading=!0,this.isEditMode&&this.salaryRangeId){let i={id:this.salaryRangeId,name:this.salaryRangeForm.value.name,minSalary:parseFloat(this.salaryRangeForm.value.minSalary),maxSalary:parseFloat(this.salaryRangeForm.value.maxSalary)};this.salaryRangeService.updateSalaryRange(i).subscribe({next:()=>{this.showMessage("Salary range updated successfully"),this.router.navigate(["/salary-ranges",this.salaryRangeId])},error:r=>{console.error("Error updating salary range:",r),this.showMessage("Error updating salary range"),this.loading=!1}})}else{let i={name:this.salaryRangeForm.value.name,minSalary:parseFloat(this.salaryRangeForm.value.minSalary),maxSalary:parseFloat(this.salaryRangeForm.value.maxSalary)};this.salaryRangeService.createSalaryRange(i).subscribe({next:r=>{console.log("Salary range created - Response:",r),console.log("Salary range ID:",r?.id),this.showMessage("Salary range created successfully"),r?.id?(console.log("Navigating to detail page:","/salary-ranges/"+r.id),this.router.navigate(["/salary-ranges",r.id])):(console.warn("No salary range ID returned, navigating to list page"),this.router.navigate(["/salary-ranges"])),this.loading=!1},error:r=>{console.error("Error creating salary range:",r),this.showMessage("Error creating salary range"),this.loading=!1}})}}onCancel(){this.router.navigate(["/salary-ranges"])}showMessage(i){this.snackBar.open(i,"Close",{duration:3e3,horizontalPosition:"end",verticalPosition:"top"})}getFormTitle(){return this.isEditMode?"Edit Salary Range":"Create Salary Range"}};n.\u0275fac=function(r){return new(r||n)},n.\u0275cmp=E({type:n,selectors:[["app-salary-range-form"]],decls:37,vars:12,consts:[[1,"loading-overlay"],[3,"ngSubmit","formGroup"],[1,"form-section"],["appearance","outline",1,"full-width"],["matInput","","formControlName","name"],[4,"ngIf"],["matInput","","type","number","formControlName","minSalary"],["matTextPrefix",""],["matInput","","type","number","formControlName","maxSalary"],["class","range-error",4,"ngIf"],[1,"form-actions"],["type","button","mat-stroked-button","",3,"click"],["type","submit","mat-raised-button","","color","primary",3,"disabled"],[1,"range-error"]],template:function(r,o){if(r&1&&(k(0,"page-header"),h(1,"mat-card")(2,"mat-card-header")(3,"mat-card-title"),_(4),p()(),h(5,"mat-card-content"),N(6,hye,2,0,"div",0),h(7,"form",1),S("ngSubmit",function(){return o.onSubmit()}),h(8,"div",2)(9,"mat-form-field",3)(10,"mat-label"),_(11,"Range Name"),p(),k(12,"input",4),R(13,pye,2,0,"mat-error",5)(14,fye,2,0,"mat-error",5),p(),h(15,"mat-form-field",3)(16,"mat-label"),_(17,"Minimum Salary"),p(),k(18,"input",6),h(19,"span",7),_(20,"$\xA0"),p(),R(21,gye,2,0,"mat-error",5)(22,_ye,2,0,"mat-error",5),p(),h(23,"mat-form-field",3)(24,"mat-label"),_(25,"Maximum Salary"),p(),k(26,"input",8),h(27,"span",7),_(28,"$\xA0"),p(),R(29,bye,2,0,"mat-error",5)(30,vye,2,0,"mat-error",5),p(),R(31,yye,2,0,"mat-error",9),p(),h(32,"div",10)(33,"button",11),S("click",function(){return o.onCancel()}),_(34," Cancel "),p(),h(35,"button",12),_(36),p()()()()()),r&2){let a,s,l,c,d,m;g(4),H(o.getFormTitle()),g(2),L(o.loading?6:-1),g(),y("formGroup",o.salaryRangeForm),g(6),y("ngIf",(a=o.salaryRangeForm.get("name"))==null?null:a.hasError("required")),g(),y("ngIf",(s=o.salaryRangeForm.get("name"))==null?null:s.hasError("maxlength")),g(7),y("ngIf",(l=o.salaryRangeForm.get("minSalary"))==null?null:l.hasError("required")),g(),y("ngIf",(c=o.salaryRangeForm.get("minSalary"))==null?null:c.hasError("min")),g(7),y("ngIf",(d=o.salaryRangeForm.get("maxSalary"))==null?null:d.hasError("required")),g(),y("ngIf",(m=o.salaryRangeForm.get("maxSalary"))==null?null:m.hasError("min")),g(),y("ngIf",o.salaryRangeForm.hasError("salaryRangeInvalid")&&o.salaryRangeForm.touched),g(4),y("disabled",o.loading),g(),ve(" ",o.isEditMode?"Update":"Create"," ")}},dependencies:[gt,li,zn,Jr,Qi,cu,ei,Xr,Ki,Lr,ze,kt,$t,zt,Ut,Jt,Xt,$i,Oi,sn,xo,nu,rr,hn,Si,ki,pi,ni],styles:["mat-card[_ngcontent-%COMP%]{margin:16px;max-width:800px}mat-card-header[_ngcontent-%COMP%]{margin-bottom:16px;padding:16px;border-bottom:1px solid rgba(0,0,0,.12)}mat-card-header[_ngcontent-%COMP%] mat-card-title[_ngcontent-%COMP%]{font-size:20px;font-weight:500;margin:0}mat-card-content[_ngcontent-%COMP%]{padding:16px;position:relative}.loading-overlay[_ngcontent-%COMP%]{position:absolute;inset:0;background-color:#fffc;display:flex;align-items:center;justify-content:center;z-index:1000}.form-section[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:16px;margin-bottom:24px}.form-section[_ngcontent-%COMP%] .full-width[_ngcontent-%COMP%]{width:100%}.form-section[_ngcontent-%COMP%] .range-error[_ngcontent-%COMP%]{color:#f44336;font-size:12px;margin-top:-8px}.form-actions[_ngcontent-%COMP%]{display:flex;gap:12px;justify-content:flex-end;padding-top:16px;border-top:1px solid rgba(0,0,0,.12)}"]});let t=n;return t})();var xye=["*",[["mat-chip-avatar"],["","matChipAvatar",""]],[["mat-chip-trailing-icon"],["","matChipRemove",""],["","matChipTrailingIcon",""]]],Cye=["*","mat-chip-avatar, [matChipAvatar]","mat-chip-trailing-icon,[matChipRemove],[matChipTrailingIcon]"];function wye(t,n){t&1&&(h(0,"span",3),oe(1,1),p())}function Dye(t,n){t&1&&(h(0,"span",6),oe(1,2),p())}var Eye=["*"];var Mye=new T("mat-chips-default-options",{providedIn:"root",factory:()=>({separatorKeyCodes:[13]})}),e6=new T("MatChipAvatar"),t6=new T("MatChipTrailingIcon"),i6=new T("MatChipEdit"),n6=new T("MatChipRemove"),o6=new T("MatChip"),r6=(()=>{class t{_elementRef=u(q);_parentChip=u(o6);isInteractive=!0;_isPrimary=!0;_isLeading=!1;get disabled(){return this._disabled||this._parentChip?.disabled||!1}set disabled(e){this._disabled=e}_disabled=!1;tabIndex=-1;_allowFocusWhenDisabled=!1;_getDisabledAttribute(){return this.disabled&&!this._allowFocusWhenDisabled?"":null}_getTabindex(){return this.disabled&&!this._allowFocusWhenDisabled||!this.isInteractive?null:this.tabIndex.toString()}constructor(){u(ut).load(Di),this._elementRef.nativeElement.nodeName==="BUTTON"&&this._elementRef.nativeElement.setAttribute("type","button")}focus(){this._elementRef.nativeElement.focus()}_handleClick(e){!this.disabled&&this.isInteractive&&this._isPrimary&&(e.preventDefault(),this._parentChip._handlePrimaryActionInteraction())}_handleKeydown(e){(e.keyCode===13||e.keyCode===32)&&!this.disabled&&this.isInteractive&&this._isPrimary&&!this._parentChip._isEditing&&(e.preventDefault(),this._parentChip._handlePrimaryActionInteraction())}static \u0275fac=function(i){return new(i||t)};static \u0275dir=F({type:t,selectors:[["","matChipAction",""]],hostAttrs:[1,"mdc-evolution-chip__action","mat-mdc-chip-action"],hostVars:11,hostBindings:function(i,r){i&1&&S("click",function(a){return r._handleClick(a)})("keydown",function(a){return r._handleKeydown(a)}),i&2&&(X("tabindex",r._getTabindex())("disabled",r._getDisabledAttribute())("aria-disabled",r.disabled),G("mdc-evolution-chip__action--primary",r._isPrimary)("mdc-evolution-chip__action--presentational",!r.isInteractive)("mdc-evolution-chip__action--secondary",!r._isPrimary)("mdc-evolution-chip__action--trailing",!r._isPrimary&&!r._isLeading))},inputs:{isInteractive:"isInteractive",disabled:[2,"disabled","disabled",V],tabIndex:[2,"tabIndex","tabIndex",e=>e==null?-1:ct(e)],_allowFocusWhenDisabled:"_allowFocusWhenDisabled"}})}return t})();var cA=(()=>{class t{_changeDetectorRef=u(ye);_elementRef=u(q);_tagName=u(ZM);_ngZone=u(ae);_focusMonitor=u(Yt);_globalRippleOptions=u(Cs,{optional:!0});_document=u(ge);_onFocus=new z;_onBlur=new z;_isBasicChip;role=null;_hasFocusInternal=!1;_pendingFocus;_actionChanges;_animationsDisabled=Ye();_allLeadingIcons;_allTrailingIcons;_allEditIcons;_allRemoveIcons;_hasFocus(){return this._hasFocusInternal}id=u(Ze).getId("mat-mdc-chip-");ariaLabel=null;ariaDescription=null;_chipListDisabled=!1;_hadFocusOnRemove=!1;_textElement;get value(){return this._value!==void 0?this._value:this._textElement.textContent.trim()}set value(e){this._value=e}_value;color;removable=!0;highlighted=!1;disableRipple=!1;get disabled(){return this._disabled||this._chipListDisabled}set disabled(e){this._disabled=e}_disabled=!1;removed=new U;destroyed=new U;basicChipAttrName="mat-basic-chip";leadingIcon;editIcon;trailingIcon;removeIcon;primaryAction;_rippleLoader=u(Z0);_injector=u(de);constructor(){let e=u(ut);e.load(Di),e.load(Qr),this._monitorFocus(),this._rippleLoader?.configureRipple(this._elementRef.nativeElement,{className:"mat-mdc-chip-ripple",disabled:this._isRippleDisabled()})}ngOnInit(){this._isBasicChip=this._elementRef.nativeElement.hasAttribute(this.basicChipAttrName)||this._tagName.toLowerCase()===this.basicChipAttrName}ngAfterViewInit(){this._textElement=this._elementRef.nativeElement.querySelector(".mat-mdc-chip-action-label"),this._pendingFocus&&(this._pendingFocus=!1,this.focus())}ngAfterContentInit(){this._actionChanges=Je(this._allLeadingIcons.changes,this._allTrailingIcons.changes,this._allEditIcons.changes,this._allRemoveIcons.changes).subscribe(()=>this._changeDetectorRef.markForCheck())}ngDoCheck(){this._rippleLoader.setDisabled(this._elementRef.nativeElement,this._isRippleDisabled())}ngOnDestroy(){this._focusMonitor.stopMonitoring(this._elementRef),this._rippleLoader?.destroyRipple(this._elementRef.nativeElement),this._actionChanges?.unsubscribe(),this.destroyed.emit({chip:this}),this.destroyed.complete()}remove(){this.removable&&(this._hadFocusOnRemove=this._hasFocus(),this.removed.emit({chip:this}))}_isRippleDisabled(){return this.disabled||this.disableRipple||this._animationsDisabled||this._isBasicChip||!this._hasInteractiveActions()||!!this._globalRippleOptions?.disabled}_hasTrailingIcon(){return!!(this.trailingIcon||this.removeIcon)}_handleKeydown(e){(e.keyCode===8&&!e.repeat||e.keyCode===46)&&(e.preventDefault(),this.remove())}focus(){this.disabled||(this.primaryAction?this.primaryAction.focus():this._pendingFocus=!0)}_getSourceAction(e){return this._getActions().find(i=>{let r=i._elementRef.nativeElement;return r===e||r.contains(e)})}_getActions(){let e=[];return this.editIcon&&e.push(this.editIcon),this.primaryAction&&e.push(this.primaryAction),this.removeIcon&&e.push(this.removeIcon),this.trailingIcon&&e.push(this.trailingIcon),e}_handlePrimaryActionInteraction(){}_hasInteractiveActions(){return this._getActions().some(e=>e.isInteractive)}_edit(e){}_monitorFocus(){this._focusMonitor.monitor(this._elementRef,!0).subscribe(e=>{let i=e!==null;i!==this._hasFocusInternal&&(this._hasFocusInternal=i,i?this._onFocus.next({chip:this}):(this._changeDetectorRef.markForCheck(),setTimeout(()=>this._ngZone.run(()=>this._onBlur.next({chip:this})))))})}static \u0275fac=function(i){return new(i||t)};static \u0275cmp=E({type:t,selectors:[["mat-basic-chip"],["","mat-basic-chip",""],["mat-chip"],["","mat-chip",""]],contentQueries:function(i,r,o){if(i&1&&(xe(o,e6,5),xe(o,i6,5),xe(o,t6,5),xe(o,n6,5),xe(o,e6,5),xe(o,t6,5),xe(o,i6,5),xe(o,n6,5)),i&2){let a;B(a=j())&&(r.leadingIcon=a.first),B(a=j())&&(r.editIcon=a.first),B(a=j())&&(r.trailingIcon=a.first),B(a=j())&&(r.removeIcon=a.first),B(a=j())&&(r._allLeadingIcons=a),B(a=j())&&(r._allTrailingIcons=a),B(a=j())&&(r._allEditIcons=a),B(a=j())&&(r._allRemoveIcons=a)}},viewQuery:function(i,r){if(i&1&&ie(r6,5),i&2){let o;B(o=j())&&(r.primaryAction=o.first)}},hostAttrs:[1,"mat-mdc-chip"],hostVars:31,hostBindings:function(i,r){i&1&&S("keydown",function(a){return r._handleKeydown(a)}),i&2&&(si("id",r.id),X("role",r.role)("aria-label",r.ariaLabel),it("mat-"+(r.color||"primary")),G("mdc-evolution-chip",!r._isBasicChip)("mdc-evolution-chip--disabled",r.disabled)("mdc-evolution-chip--with-trailing-action",r._hasTrailingIcon())("mdc-evolution-chip--with-primary-graphic",r.leadingIcon)("mdc-evolution-chip--with-primary-icon",r.leadingIcon)("mdc-evolution-chip--with-avatar",r.leadingIcon)("mat-mdc-chip-with-avatar",r.leadingIcon)("mat-mdc-chip-highlighted",r.highlighted)("mat-mdc-chip-disabled",r.disabled)("mat-mdc-basic-chip",r._isBasicChip)("mat-mdc-standard-chip",!r._isBasicChip)("mat-mdc-chip-with-trailing-icon",r._hasTrailingIcon())("_mat-animation-noopable",r._animationsDisabled))},inputs:{role:"role",id:"id",ariaLabel:[0,"aria-label","ariaLabel"],ariaDescription:[0,"aria-description","ariaDescription"],value:"value",color:"color",removable:[2,"removable","removable",V],highlighted:[2,"highlighted","highlighted",V],disableRipple:[2,"disableRipple","disableRipple",V],disabled:[2,"disabled","disabled",V]},outputs:{removed:"removed",destroyed:"destroyed"},exportAs:["matChip"],features:[Ce([{provide:o6,useExisting:t}])],ngContentSelectors:Cye,decls:8,vars:3,consts:[[1,"mat-mdc-chip-focus-overlay"],[1,"mdc-evolution-chip__cell","mdc-evolution-chip__cell--primary"],["matChipAction","",3,"isInteractive"],[1,"mdc-evolution-chip__graphic","mat-mdc-chip-graphic"],[1,"mdc-evolution-chip__text-label","mat-mdc-chip-action-label"],[1,"mat-mdc-chip-primary-focus-indicator","mat-focus-indicator"],[1,"mdc-evolution-chip__cell","mdc-evolution-chip__cell--trailing"]],template:function(i,r){i&1&&(Me(xye),k(0,"span",0),h(1,"span",1)(2,"span",2),N(3,wye,2,0,"span",3),h(4,"span",4),oe(5),k(6,"span",5),p()()(),N(7,Dye,2,0,"span",6)),i&2&&(g(2),y("isInteractive",!1),g(),L(r.leadingIcon?3:-1),g(4),L(r._hasTrailingIcon()?7:-1))},dependencies:[r6],styles:[`.mdc-evolution-chip,.mdc-evolution-chip__cell,.mdc-evolution-chip__action{display:inline-flex;align-items:center}.mdc-evolution-chip{position:relative;max-width:100%}.mdc-evolution-chip__cell,.mdc-evolution-chip__action{height:100%}.mdc-evolution-chip__cell--primary{flex-basis:100%;overflow-x:hidden}.mdc-evolution-chip__cell--trailing{flex:1 0 auto}.mdc-evolution-chip__action{align-items:center;background:none;border:none;box-sizing:content-box;cursor:pointer;display:inline-flex;justify-content:center;outline:none;padding:0;text-decoration:none;color:inherit}.mdc-evolution-chip__action--presentational{cursor:auto}.mdc-evolution-chip--disabled,.mdc-evolution-chip__action:disabled{pointer-events:none}@media(forced-colors: active){.mdc-evolution-chip--disabled,.mdc-evolution-chip__action:disabled{forced-color-adjust:none}}.mdc-evolution-chip__action--primary{font:inherit;letter-spacing:inherit;white-space:inherit;overflow-x:hidden}.mat-mdc-standard-chip .mdc-evolution-chip__action--primary::before{border-width:var(--mat-chip-outline-width, 1px);border-radius:var(--mat-chip-container-shape-radius, 8px);box-sizing:border-box;content:"";height:100%;left:0;position:absolute;pointer-events:none;top:0;width:100%;z-index:1;border-style:solid}.mat-mdc-standard-chip .mdc-evolution-chip__action--primary{padding-left:12px;padding-right:12px}.mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic .mdc-evolution-chip__action--primary{padding-left:0;padding-right:12px}[dir=rtl] .mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic .mdc-evolution-chip__action--primary{padding-left:12px;padding-right:0}.mat-mdc-standard-chip:not(.mdc-evolution-chip--disabled) .mdc-evolution-chip__action--primary::before{border-color:var(--mat-chip-outline-color, var(--mat-sys-outline))}.mdc-evolution-chip__action--primary:not(.mdc-evolution-chip__action--presentational):not(.mdc-ripple-upgraded):focus::before{border-color:var(--mat-chip-focus-outline-color, var(--mat-sys-on-surface-variant))}.mat-mdc-standard-chip.mdc-evolution-chip--disabled .mdc-evolution-chip__action--primary::before{border-color:var(--mat-chip-disabled-outline-color, color-mix(in srgb, var(--mat-sys-on-surface) 12%, transparent))}.mat-mdc-standard-chip.mdc-evolution-chip--selected .mdc-evolution-chip__action--primary::before{border-width:var(--mat-chip-flat-selected-outline-width, 0)}.mat-mdc-basic-chip .mdc-evolution-chip__action--primary{font:inherit}.mat-mdc-standard-chip.mdc-evolution-chip--with-leading-action .mdc-evolution-chip__action--primary{padding-left:0;padding-right:12px}[dir=rtl] .mat-mdc-standard-chip.mdc-evolution-chip--with-leading-action .mdc-evolution-chip__action--primary{padding-left:12px;padding-right:0}.mat-mdc-standard-chip.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--primary{padding-left:12px;padding-right:0}[dir=rtl] .mat-mdc-standard-chip.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--primary{padding-left:0;padding-right:12px}.mat-mdc-standard-chip.mdc-evolution-chip--with-leading-action.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--primary{padding-left:0;padding-right:0}.mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--primary{padding-left:0;padding-right:0}[dir=rtl] .mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--primary{padding-left:0;padding-right:0}.mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic .mdc-evolution-chip__action--primary{padding-left:0;padding-right:12px}[dir=rtl] .mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic .mdc-evolution-chip__action--primary{padding-left:12px;padding-right:0}.mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--primary{padding-left:0;padding-right:0}[dir=rtl] .mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--primary{padding-left:0;padding-right:0}.mdc-evolution-chip__action--secondary{position:relative;overflow:visible}.mat-mdc-standard-chip:not(.mdc-evolution-chip--disabled) .mdc-evolution-chip__action--secondary{color:var(--mat-chip-with-trailing-icon-trailing-icon-color, var(--mat-sys-on-surface-variant))}.mat-mdc-standard-chip.mdc-evolution-chip--disabled .mdc-evolution-chip__action--secondary{color:var(--mat-chip-with-trailing-icon-disabled-trailing-icon-color, var(--mat-sys-on-surface))}.mat-mdc-standard-chip.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--secondary{padding-left:8px;padding-right:8px}.mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--secondary{padding-left:8px;padding-right:8px}.mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--secondary{padding-left:8px;padding-right:8px}[dir=rtl] .mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--secondary{padding-left:8px;padding-right:8px}.mdc-evolution-chip__text-label{-webkit-user-select:none;user-select:none;white-space:nowrap;text-overflow:ellipsis;overflow:hidden}.mat-mdc-standard-chip .mdc-evolution-chip__text-label{font-family:var(--mat-chip-label-text-font, var(--mat-sys-label-large-font));line-height:var(--mat-chip-label-text-line-height, var(--mat-sys-label-large-line-height));font-size:var(--mat-chip-label-text-size, var(--mat-sys-label-large-size));font-weight:var(--mat-chip-label-text-weight, var(--mat-sys-label-large-weight));letter-spacing:var(--mat-chip-label-text-tracking, var(--mat-sys-label-large-tracking))}.mat-mdc-standard-chip:not(.mdc-evolution-chip--disabled) .mdc-evolution-chip__text-label{color:var(--mat-chip-label-text-color, var(--mat-sys-on-surface-variant))}.mat-mdc-standard-chip.mdc-evolution-chip--selected:not(.mdc-evolution-chip--disabled) .mdc-evolution-chip__text-label{color:var(--mat-chip-selected-label-text-color, var(--mat-sys-on-secondary-container))}.mat-mdc-standard-chip.mdc-evolution-chip--disabled .mdc-evolution-chip__text-label,.mat-mdc-standard-chip.mdc-evolution-chip--selected.mdc-evolution-chip--disabled .mdc-evolution-chip__text-label{color:var(--mat-chip-disabled-label-text-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent))}.mdc-evolution-chip__graphic{align-items:center;display:inline-flex;justify-content:center;overflow:hidden;pointer-events:none;position:relative;flex:1 0 auto}.mat-mdc-standard-chip .mdc-evolution-chip__graphic{width:var(--mat-chip-with-avatar-avatar-size, 24px);height:var(--mat-chip-with-avatar-avatar-size, 24px);font-size:var(--mat-chip-with-avatar-avatar-size, 24px)}.mdc-evolution-chip--selecting .mdc-evolution-chip__graphic{transition:width 150ms 0ms cubic-bezier(0.4, 0, 0.2, 1)}.mdc-evolution-chip--selectable:not(.mdc-evolution-chip--selected):not(.mdc-evolution-chip--with-primary-icon) .mdc-evolution-chip__graphic{width:0}.mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic .mdc-evolution-chip__graphic{padding-left:6px;padding-right:6px}.mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic .mdc-evolution-chip__graphic{padding-left:4px;padding-right:8px}[dir=rtl] .mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic .mdc-evolution-chip__graphic{padding-left:8px;padding-right:4px}.mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__graphic{padding-left:6px;padding-right:6px}.mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__graphic{padding-left:4px;padding-right:8px}[dir=rtl] .mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__graphic{padding-left:8px;padding-right:4px}.mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-leading-action .mdc-evolution-chip__graphic{padding-left:0}.mdc-evolution-chip__checkmark{position:absolute;opacity:0;top:50%;left:50%;height:20px;width:20px}.mat-mdc-standard-chip:not(.mdc-evolution-chip--disabled) .mdc-evolution-chip__checkmark{color:var(--mat-chip-with-icon-selected-icon-color, var(--mat-sys-on-secondary-container))}.mat-mdc-standard-chip.mdc-evolution-chip--disabled .mdc-evolution-chip__checkmark{color:var(--mat-chip-with-icon-disabled-icon-color, var(--mat-sys-on-surface))}.mdc-evolution-chip--selecting .mdc-evolution-chip__checkmark{transition:transform 150ms 0ms cubic-bezier(0.4, 0, 0.2, 1);transform:translate(-75%, -50%)}.mdc-evolution-chip--selected .mdc-evolution-chip__checkmark{transform:translate(-50%, -50%);opacity:1}.mdc-evolution-chip__checkmark-svg{display:block}.mdc-evolution-chip__checkmark-path{stroke-width:2px;stroke-dasharray:29.7833385;stroke-dashoffset:29.7833385;stroke:currentColor}.mdc-evolution-chip--selecting .mdc-evolution-chip__checkmark-path{transition:stroke-dashoffset 150ms 45ms cubic-bezier(0.4, 0, 0.2, 1)}.mdc-evolution-chip--selected .mdc-evolution-chip__checkmark-path{stroke-dashoffset:0}@media(forced-colors: active){.mdc-evolution-chip__checkmark-path{stroke:CanvasText !important}}.mat-mdc-standard-chip .mdc-evolution-chip__icon--trailing{height:18px;width:18px;font-size:18px}.mdc-evolution-chip--disabled .mdc-evolution-chip__icon--trailing.mat-mdc-chip-remove{opacity:calc(var(--mat-chip-trailing-action-opacity, 1)*var(--mat-chip-with-trailing-icon-disabled-trailing-icon-opacity, 0.38))}.mdc-evolution-chip--disabled .mdc-evolution-chip__icon--trailing.mat-mdc-chip-remove:focus{opacity:calc(var(--mat-chip-trailing-action-focus-opacity, 1)*var(--mat-chip-with-trailing-icon-disabled-trailing-icon-opacity, 0.38))}.mat-mdc-standard-chip{border-radius:var(--mat-chip-container-shape-radius, 8px);height:var(--mat-chip-container-height, 32px)}.mat-mdc-standard-chip:not(.mdc-evolution-chip--disabled){background-color:var(--mat-chip-elevated-container-color, transparent)}.mat-mdc-standard-chip.mdc-evolution-chip--disabled{background-color:var(--mat-chip-elevated-disabled-container-color)}.mat-mdc-standard-chip.mdc-evolution-chip--selected:not(.mdc-evolution-chip--disabled){background-color:var(--mat-chip-elevated-selected-container-color, var(--mat-sys-secondary-container))}.mat-mdc-standard-chip.mdc-evolution-chip--selected.mdc-evolution-chip--disabled{background-color:var(--mat-chip-flat-disabled-selected-container-color, color-mix(in srgb, var(--mat-sys-on-surface) 12%, transparent))}@media(forced-colors: active){.mat-mdc-standard-chip{outline:solid 1px}}.mat-mdc-standard-chip .mdc-evolution-chip__icon--primary{border-radius:var(--mat-chip-with-avatar-avatar-shape-radius, 24px);width:var(--mat-chip-with-icon-icon-size, 18px);height:var(--mat-chip-with-icon-icon-size, 18px);font-size:var(--mat-chip-with-icon-icon-size, 18px)}.mdc-evolution-chip--selected .mdc-evolution-chip__icon--primary{opacity:0}.mat-mdc-standard-chip:not(.mdc-evolution-chip--disabled) .mdc-evolution-chip__icon--primary{color:var(--mat-chip-with-icon-icon-color, var(--mat-sys-on-surface-variant))}.mat-mdc-standard-chip.mdc-evolution-chip--disabled .mdc-evolution-chip__icon--primary{color:var(--mat-chip-with-icon-disabled-icon-color, var(--mat-sys-on-surface))}.mat-mdc-chip-highlighted{--mat-chip-with-icon-icon-color: var(--mat-chip-with-icon-selected-icon-color, var(--mat-sys-on-secondary-container));--mat-chip-elevated-container-color: var(--mat-chip-elevated-selected-container-color, var(--mat-sys-secondary-container));--mat-chip-label-text-color: var(--mat-chip-selected-label-text-color, var(--mat-sys-on-secondary-container));--mat-chip-outline-width: var(--mat-chip-flat-selected-outline-width, 0)}.mat-mdc-chip-focus-overlay{background:var(--mat-chip-focus-state-layer-color, var(--mat-sys-on-surface-variant))}.mat-mdc-chip-selected .mat-mdc-chip-focus-overlay,.mat-mdc-chip-highlighted .mat-mdc-chip-focus-overlay{background:var(--mat-chip-selected-focus-state-layer-color, var(--mat-sys-on-secondary-container))}.mat-mdc-chip:hover .mat-mdc-chip-focus-overlay{background:var(--mat-chip-hover-state-layer-color, var(--mat-sys-on-surface-variant));opacity:var(--mat-chip-hover-state-layer-opacity, var(--mat-sys-hover-state-layer-opacity))}.mat-mdc-chip-focus-overlay .mat-mdc-chip-selected:hover,.mat-mdc-chip-highlighted:hover .mat-mdc-chip-focus-overlay{background:var(--mat-chip-selected-hover-state-layer-color, var(--mat-sys-on-secondary-container));opacity:var(--mat-chip-selected-hover-state-layer-opacity, var(--mat-sys-hover-state-layer-opacity))}.mat-mdc-chip.cdk-focused .mat-mdc-chip-focus-overlay{background:var(--mat-chip-focus-state-layer-color, var(--mat-sys-on-surface-variant));opacity:var(--mat-chip-focus-state-layer-opacity, var(--mat-sys-focus-state-layer-opacity))}.mat-mdc-chip-selected.cdk-focused .mat-mdc-chip-focus-overlay,.mat-mdc-chip-highlighted.cdk-focused .mat-mdc-chip-focus-overlay{background:var(--mat-chip-selected-focus-state-layer-color, var(--mat-sys-on-secondary-container));opacity:var(--mat-chip-selected-focus-state-layer-opacity, var(--mat-sys-focus-state-layer-opacity))}.mdc-evolution-chip--disabled:not(.mdc-evolution-chip--selected) .mat-mdc-chip-avatar{opacity:var(--mat-chip-with-avatar-disabled-avatar-opacity, 0.38)}.mdc-evolution-chip--disabled .mdc-evolution-chip__icon--trailing{opacity:var(--mat-chip-with-trailing-icon-disabled-trailing-icon-opacity, 0.38)}.mdc-evolution-chip--disabled.mdc-evolution-chip--selected .mdc-evolution-chip__checkmark{opacity:var(--mat-chip-with-icon-disabled-icon-opacity, 0.38)}.mat-mdc-standard-chip.mdc-evolution-chip--disabled{opacity:var(--mat-chip-disabled-container-opacity, 1)}.mat-mdc-standard-chip.mdc-evolution-chip--selected .mdc-evolution-chip__icon--trailing,.mat-mdc-standard-chip.mat-mdc-chip-highlighted .mdc-evolution-chip__icon--trailing{color:var(--mat-chip-selected-trailing-icon-color, var(--mat-sys-on-secondary-container))}.mat-mdc-standard-chip.mdc-evolution-chip--selected.mdc-evolution-chip--disabled .mdc-evolution-chip__icon--trailing,.mat-mdc-standard-chip.mat-mdc-chip-highlighted.mdc-evolution-chip--disabled .mdc-evolution-chip__icon--trailing{color:var(--mat-chip-selected-disabled-trailing-icon-color, var(--mat-sys-on-surface))}.mat-mdc-chip-edit,.mat-mdc-chip-remove{opacity:var(--mat-chip-trailing-action-opacity, 1)}.mat-mdc-chip-edit:focus,.mat-mdc-chip-remove:focus{opacity:var(--mat-chip-trailing-action-focus-opacity, 1)}.mat-mdc-chip-edit::after,.mat-mdc-chip-remove::after{background-color:var(--mat-chip-trailing-action-state-layer-color, var(--mat-sys-on-surface-variant))}.mat-mdc-chip-edit:hover::after,.mat-mdc-chip-remove:hover::after{opacity:var(--mat-chip-trailing-action-hover-state-layer-opacity, var(--mat-sys-hover-state-layer-opacity))}.mat-mdc-chip-edit:focus::after,.mat-mdc-chip-remove:focus::after{opacity:var(--mat-chip-trailing-action-focus-state-layer-opacity, var(--mat-sys-focus-state-layer-opacity))}.mat-mdc-chip-selected .mat-mdc-chip-remove::after,.mat-mdc-chip-highlighted .mat-mdc-chip-remove::after{background-color:var(--mat-chip-selected-trailing-action-state-layer-color, var(--mat-sys-on-secondary-container))}.mat-mdc-standard-chip{-webkit-tap-highlight-color:rgba(0,0,0,0)}.mat-mdc-standard-chip .mdc-evolution-chip__cell--primary,.mat-mdc-standard-chip .mdc-evolution-chip__action--primary,.mat-mdc-standard-chip .mat-mdc-chip-action-label{overflow:visible}.mat-mdc-standard-chip .mat-mdc-chip-graphic,.mat-mdc-standard-chip .mat-mdc-chip-trailing-icon{box-sizing:content-box}.mat-mdc-standard-chip._mat-animation-noopable,.mat-mdc-standard-chip._mat-animation-noopable .mdc-evolution-chip__graphic,.mat-mdc-standard-chip._mat-animation-noopable .mdc-evolution-chip__checkmark,.mat-mdc-standard-chip._mat-animation-noopable .mdc-evolution-chip__checkmark-path{transition-duration:1ms;animation-duration:1ms}.mat-mdc-chip-focus-overlay{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none;opacity:0;border-radius:inherit;transition:opacity 150ms linear}._mat-animation-noopable .mat-mdc-chip-focus-overlay{transition:none}.mat-mdc-basic-chip .mat-mdc-chip-focus-overlay{display:none}.mat-mdc-chip .mat-ripple.mat-mdc-chip-ripple{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none;border-radius:inherit}.mat-mdc-chip-avatar{text-align:center;line-height:1;color:var(--mat-chip-with-icon-icon-color, currentColor)}.mat-mdc-chip{position:relative;z-index:0}.mat-mdc-chip-action-label{text-align:left;z-index:1}[dir=rtl] .mat-mdc-chip-action-label{text-align:right}.mat-mdc-chip.mdc-evolution-chip--with-trailing-action .mat-mdc-chip-action-label{position:relative}.mat-mdc-chip-action-label .mat-mdc-chip-primary-focus-indicator{position:absolute;top:0;right:0;bottom:0;left:0;pointer-events:none}.mat-mdc-chip-action-label .mat-focus-indicator::before{margin:calc(calc(var(--mat-focus-indicator-border-width, 3px) + 2px)*-1)}.mat-mdc-chip-edit::before,.mat-mdc-chip-remove::before{margin:calc(var(--mat-focus-indicator-border-width, 3px)*-1);left:8px;right:8px}.mat-mdc-chip-edit::after,.mat-mdc-chip-remove::after{content:"";display:block;opacity:0;position:absolute;top:-3px;bottom:-3px;left:5px;right:5px;border-radius:50%;box-sizing:border-box;padding:12px;margin:-12px;background-clip:content-box}.mat-mdc-chip-edit .mat-icon,.mat-mdc-chip-remove .mat-icon{width:18px;height:18px;font-size:18px;box-sizing:content-box}.mat-chip-edit-input{cursor:text;display:inline-block;color:inherit;outline:0}@media(forced-colors: active){.mat-mdc-chip-selected:not(.mat-mdc-chip-multiple){outline-width:3px}}.mat-mdc-chip-action:focus .mat-focus-indicator::before{content:""}.mdc-evolution-chip__icon,.mat-mdc-chip-edit .mat-icon,.mat-mdc-chip-remove .mat-icon{min-height:fit-content}img.mdc-evolution-chip__icon{min-height:0} -`],encapsulation:2,changeDetection:0})}return t})();var a6=(()=>{class t{_elementRef=u(q);_changeDetectorRef=u(ye);_dir=u(Vt,{optional:!0});_lastDestroyedFocusedChipIndex=null;_keyManager;_destroyed=new z;_defaultRole="presentation";get chipFocusChanges(){return this._getChipStream(e=>e._onFocus)}get chipDestroyedChanges(){return this._getChipStream(e=>e.destroyed)}get chipRemovedChanges(){return this._getChipStream(e=>e.removed)}get disabled(){return this._disabled}set disabled(e){this._disabled=e,this._syncChipsState()}_disabled=!1;get empty(){return!this._chips||this._chips.length===0}get role(){return this._explicitRole?this._explicitRole:this.empty?null:this._defaultRole}tabIndex=0;set role(e){this._explicitRole=e}_explicitRole=null;get focused(){return this._hasFocusedChip()}_chips;_chipActions=new pr;constructor(){}ngAfterViewInit(){this._setUpFocusManagement(),this._trackChipSetChanges(),this._trackDestroyedFocusedChip()}ngOnDestroy(){this._keyManager?.destroy(),this._chipActions.destroy(),this._destroyed.next(),this._destroyed.complete()}_hasFocusedChip(){return this._chips&&this._chips.some(e=>e._hasFocus())}_syncChipsState(){this._chips?.forEach(e=>{e._chipListDisabled=this._disabled,e._changeDetectorRef.markForCheck()})}focus(){}_handleKeydown(e){this._originatesFromChip(e)&&this._keyManager.onKeydown(e)}_isValidIndex(e){return e>=0&&ethis._elementRef.nativeElement.tabIndex=e))}_getChipStream(e){return this._chips.changes.pipe(He(null),$e(()=>Je(...this._chips.map(e))))}_originatesFromChip(e){let i=e.target;for(;i&&i!==this._elementRef.nativeElement;){if(i.classList.contains("mat-mdc-chip"))return!0;i=i.parentElement}return!1}_setUpFocusManagement(){this._chips.changes.pipe(He(this._chips)).subscribe(e=>{let i=[];e.forEach(r=>r._getActions().forEach(o=>i.push(o))),this._chipActions.reset(i),this._chipActions.notifyOnChanges()}),this._keyManager=new bs(this._chipActions).withVerticalOrientation().withHorizontalOrientation(this._dir?this._dir.value:"ltr").withHomeAndEnd().skipPredicate(e=>this._skipPredicate(e)),this.chipFocusChanges.pipe(Te(this._destroyed)).subscribe(({chip:e})=>{let i=e._getSourceAction(document.activeElement);i&&this._keyManager.updateActiveItem(i)}),this._dir?.change.pipe(Te(this._destroyed)).subscribe(e=>this._keyManager.withHorizontalOrientation(e))}_skipPredicate(e){return!e.isInteractive||e.disabled}_trackChipSetChanges(){this._chips.changes.pipe(He(null),Te(this._destroyed)).subscribe(()=>{this.disabled&&Promise.resolve().then(()=>this._syncChipsState()),this._redirectDestroyedChipFocus()})}_trackDestroyedFocusedChip(){this.chipDestroyedChanges.pipe(Te(this._destroyed)).subscribe(e=>{let r=this._chips.toArray().indexOf(e.chip),o=e.chip._hasFocus(),a=e.chip._hadFocusOnRemove&&this._keyManager.activeItem&&e.chip._getActions().includes(this._keyManager.activeItem),s=o||a;this._isValidIndex(r)&&s&&(this._lastDestroyedFocusedChipIndex=r)})}_redirectDestroyedChipFocus(){if(this._lastDestroyedFocusedChipIndex!=null){if(this._chips.length){let e=Math.min(this._lastDestroyedFocusedChipIndex,this._chips.length-1),i=this._chips.toArray()[e];i.disabled?this._chips.length===1?this.focus():this._keyManager.setPreviousItemActive():i.focus()}else this.focus();this._lastDestroyedFocusedChipIndex=null}}static \u0275fac=function(i){return new(i||t)};static \u0275cmp=E({type:t,selectors:[["mat-chip-set"]],contentQueries:function(i,r,o){if(i&1&&xe(o,cA,5),i&2){let a;B(a=j())&&(r._chips=a)}},hostAttrs:[1,"mat-mdc-chip-set","mdc-evolution-chip-set"],hostVars:1,hostBindings:function(i,r){i&1&&S("keydown",function(a){return r._handleKeydown(a)}),i&2&&X("role",r.role)},inputs:{disabled:[2,"disabled","disabled",V],role:"role",tabIndex:[2,"tabIndex","tabIndex",e=>e==null?0:ct(e)]},ngContentSelectors:Eye,decls:2,vars:0,consts:[["role","presentation",1,"mdc-evolution-chip-set__chips"]],template:function(i,r){i&1&&(Me(),ft(0,"div",0),oe(1),vt())},styles:[`.mat-mdc-chip-set{display:flex}.mat-mdc-chip-set:focus{outline:none}.mat-mdc-chip-set .mdc-evolution-chip-set__chips{min-width:100%;margin-left:-8px;margin-right:0}.mat-mdc-chip-set .mdc-evolution-chip{margin:4px 0 4px 8px}[dir=rtl] .mat-mdc-chip-set .mdc-evolution-chip-set__chips{margin-left:0;margin-right:-8px}[dir=rtl] .mat-mdc-chip-set .mdc-evolution-chip{margin-left:0;margin-right:8px}.mdc-evolution-chip-set__chips{display:flex;flex-flow:wrap;min-width:0}.mat-mdc-chip-set-stacked{flex-direction:column;align-items:flex-start}.mat-mdc-chip-set-stacked .mat-mdc-chip{width:100%}.mat-mdc-chip-set-stacked .mdc-evolution-chip__graphic{flex-grow:0}.mat-mdc-chip-set-stacked .mdc-evolution-chip__action--primary{flex-basis:100%;justify-content:start}input.mat-mdc-chip-input{flex:1 0 150px;margin-left:8px}[dir=rtl] input.mat-mdc-chip-input{margin-left:0;margin-right:8px}.mat-mdc-form-field:not(.mat-form-field-hide-placeholder) input.mat-mdc-chip-input::placeholder{opacity:1}.mat-mdc-form-field:not(.mat-form-field-hide-placeholder) input.mat-mdc-chip-input::-moz-placeholder{opacity:1}.mat-mdc-form-field:not(.mat-form-field-hide-placeholder) input.mat-mdc-chip-input::-webkit-input-placeholder{opacity:1}.mat-mdc-form-field:not(.mat-form-field-hide-placeholder) input.mat-mdc-chip-input:-ms-input-placeholder{opacity:1}.mat-mdc-chip-set+input.mat-mdc-chip-input{margin-left:0;margin-right:0} -`],encapsulation:2,changeDetection:0})}return t})();var s6=(()=>{class t{static \u0275fac=function(i){return new(i||t)};static \u0275mod=ee({type:t});static \u0275inj=J({providers:[dl,{provide:Mye,useValue:{separatorKeyCodes:[13]}}],imports:[we,yo,we]})}return t})();var l6=new T("CdkAccordion");var c6=(()=>{class t{accordion=u(l6,{optional:!0,skipSelf:!0});_changeDetectorRef=u(ye);_expansionDispatcher=u(au);_openCloseAllSubscription=ke.EMPTY;closed=new U;opened=new U;destroyed=new U;expandedChange=new U;id=u(Ze).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 i=this.accordion?this.accordion.id:this.id;this._expansionDispatcher.notify(this.id,i)}else this.closed.emit();this._changeDetectorRef.markForCheck()}}_expanded=!1;get disabled(){return this._disabled()}set disabled(e){this._disabled.set(e)}_disabled=he(!1);_removeUniqueSelectionListener=()=>{};constructor(){}ngOnInit(){this._removeUniqueSelectionListener=this._expansionDispatcher.listen((e,i)=>{this.accordion&&!this.accordion.multi&&this.accordion.id===i&&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(i){return new(i||t)};static \u0275dir=F({type:t,selectors:[["cdk-accordion-item"],["","cdkAccordionItem",""]],inputs:{expanded:[2,"expanded","expanded",V],disabled:[2,"disabled","disabled",V]},outputs:{closed:"closed",opened:"opened",destroyed:"destroyed",expandedChange:"expandedChange"},exportAs:["cdkAccordionItem"],features:[Ce([{provide:l6,useValue:void 0}])]})}return t})(),d6=(()=>{class t{static \u0275fac=function(i){return new(i||t)};static \u0275mod=ee({type:t});static \u0275inj=J({})}return t})();var Sye=["body"],Tye=["bodyWrapper"],Iye=[[["mat-expansion-panel-header"]],"*",[["mat-action-row"]]],Aye=["mat-expansion-panel-header","*","mat-action-row"];function Oye(t,n){}var Rye=[[["mat-panel-title"]],[["mat-panel-description"]],"*"],Pye=["mat-panel-title","mat-panel-description","*"];function Fye(t,n){t&1&&(ft(0,"span",1),Gt(),ft(1,"svg",2),ai(2,"path",3),vt()())}var u6=new T("MAT_ACCORDION"),m6=new T("MAT_EXPANSION_PANEL"),Nye=(()=>{class t{_template=u(te);_expansionPanel=u(m6,{optional:!0});constructor(){}static \u0275fac=function(i){return new(i||t)};static \u0275dir=F({type:t,selectors:[["ng-template","matExpansionPanelContent",""]]})}return t})(),h6=new T("MAT_EXPANSION_PANEL_DEFAULT_OPTIONS"),dA=(()=>{class t extends c6{_viewContainerRef=u(nt);_animationsDisabled=Ye();_document=u(ge);_ngZone=u(ae);_elementRef=u(q);_renderer=u(je);_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 U;afterCollapse=new U;_inputChanges=new z;accordion=u(u6,{optional:!0,skipSelf:!0});_lazyContent;_body;_bodyWrapper;_portal;_headerId=u(Ze).getId("mat-expansion-panel-header-");constructor(){super();let e=u(h6,{optional:!0});this._expansionDispatcher=u(au),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(He(null),ce(()=>this.expanded&&!this._portal),lt(1)).subscribe(()=>{this._portal=new Cn(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,i=this._body.nativeElement;return e===i||i.contains(e)}return!1}_transitionEndListener=({target:e,propertyName:i})=>{e===this._bodyWrapper?.nativeElement&&i==="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(i){return new(i||t)};static \u0275cmp=E({type:t,selectors:[["mat-expansion-panel"]],contentQueries:function(i,r,o){if(i&1&&xe(o,Nye,5),i&2){let a;B(a=j())&&(r._lazyContent=a.first)}},viewQuery:function(i,r){if(i&1&&(ie(Sye,5),ie(Tye,5)),i&2){let o;B(o=j())&&(r._body=o.first),B(o=j())&&(r._bodyWrapper=o.first)}},hostAttrs:[1,"mat-expansion-panel"],hostVars:4,hostBindings:function(i,r){i&2&&G("mat-expanded",r.expanded)("mat-expansion-panel-spacing",r._hasSpacing())},inputs:{hideToggle:[2,"hideToggle","hideToggle",V],togglePosition:"togglePosition"},outputs:{afterExpand:"afterExpand",afterCollapse:"afterCollapse"},exportAs:["matExpansionPanel"],features:[Ce([{provide:u6,useValue:void 0},{provide:m6,useExisting:t}]),le,Ae],ngContentSelectors:Aye,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(i,r){i&1&&(Me(Iye),oe(0),h(1,"div",2,0)(3,"div",3,1)(5,"div",4),oe(6,1),R(7,Oye,0,0,"ng-template",5),p(),oe(8,2),p()()),i&2&&(g(),X("inert",r.expanded?null:""),g(2),y("id",r.id),X("aria-labelledby",r._headerId),g(4),y("cdkPortalOutlet",r._portal))},dependencies:[yr],styles:[`.mat-expansion-panel{box-sizing:content-box;display:block;margin:0;overflow:hidden;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.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: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}}.mat-expansion-panel-content{display:flex;flex-direction:column;overflow:visible;min-height:0;visibility:hidden;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-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-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 t})();var p6=(()=>{class t{panel=u(dA,{host:!0});_element=u(q);_focusMonitor=u(Yt);_changeDetectorRef=u(ye);_parentChangeSubscription=ke.EMPTY;constructor(){u(ut).load(Di);let e=this.panel,i=u(h6,{optional:!0}),r=u(new Ii("tabindex"),{optional:!0}),o=e.accordion?e.accordion._stateChanges.pipe(ce(a=>!!(a.hideToggle||a.togglePosition))):Fi;this.tabIndex=parseInt(r||"")||0,this._parentChangeSubscription=Je(e.opened,e.closed,o,e._inputChanges.pipe(ce(a=>!!(a.hideToggle||a.disabled||a.togglePosition)))).subscribe(()=>this._changeDetectorRef.markForCheck()),e.closed.pipe(ce(()=>e._containsFocus())).subscribe(()=>this._focusMonitor.focusVia(this._element,"program")),i&&(this.expandedHeight=i.expandedHeight,this.collapsedHeight=i.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:Ft(e)||(e.preventDefault(),this._toggle());break;default:this.panel.accordion&&this.panel.accordion._handleHeaderKeydown(e);return}}focus(e,i){e?this._focusMonitor.focusVia(this._element,e,i):this._element.nativeElement.focus(i)}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(i){return new(i||t)};static \u0275cmp=E({type:t,selectors:[["mat-expansion-panel-header"]],hostAttrs:["role","button",1,"mat-expansion-panel-header","mat-focus-indicator"],hostVars:13,hostBindings:function(i,r){i&1&&S("click",function(){return r._toggle()})("keydown",function(a){return r._keydown(a)}),i&2&&(X("id",r.panel._headerId)("tabindex",r.disabled?-1:r.tabIndex)("aria-controls",r._getPanelId())("aria-expanded",r._isExpanded())("aria-disabled",r.panel.disabled),Dt("height",r._getHeaderHeight()),G("mat-expanded",r._isExpanded())("mat-expansion-toggle-indicator-after",r._getTogglePosition()==="after")("mat-expansion-toggle-indicator-before",r._getTogglePosition()==="before"))},inputs:{expandedHeight:"expandedHeight",collapsedHeight:"collapsedHeight",tabIndex:[2,"tabIndex","tabIndex",e=>e==null?0:ct(e)]},ngContentSelectors:Pye,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(i,r){i&1&&(Me(Rye),ft(0,"span",0),oe(1),oe(2,1),oe(3,2),vt(),N(4,Fye,3,0,"span",1)),i&2&&(G("mat-content-hide-toggle",!r._showToggle()),g(4),L(r._showToggle()?4:-1))},styles:[`.mat-expansion-panel-header{display:flex;flex-direction:row;align-items:center;padding:0 24px;border-radius:inherit;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-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.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 t})();var f6=(()=>{class t{static \u0275fac=function(i){return new(i||t)};static \u0275dir=F({type:t,selectors:[["mat-panel-title"]],hostAttrs:[1,"mat-expansion-panel-header-title"]})}return t})();var g6=(()=>{class t{static \u0275fac=function(i){return new(i||t)};static \u0275mod=ee({type:t});static \u0275inj=J({imports:[we,d6,Co]})}return t})();function Vye(t,n){if(t&1&&(jt(0),h(1,"mat-icon"),_(2,"account_circle"),p(),_(3),Lt()),t&2){let e=n.ngIf;g(3),ve(" ",e.name||e.preferred_username||"User Profile"," ")}}function Bye(t,n){t&1&&(jt(0),h(1,"mat-icon"),_(2,"account_circle"),p(),_(3," User Profile "),Lt())}function jye(t,n){t&1&&(h(0,"div",3)(1,"mat-card")(2,"mat-card-content")(3,"div",4)(4,"mat-icon"),_(5,"lock"),p(),h(6,"h2"),_(7,"Not Authenticated"),p(),h(8,"p"),_(9,"Please log in to view your profile information."),p(),h(10,"button",5)(11,"mat-icon"),_(12,"login"),p(),_(13," Log In "),p()()()()())}function Hye(t,n){if(t&1&&(h(0,"mat-chip",23),_(1),p()),t&2){let e=n.$implicit;y("color","primary"),g(),ve(" ",e," ")}}function zye(t,n){if(t&1&&(h(0,"mat-chip",24),_(1),p()),t&2){let e=n.$implicit;y("color","accent"),g(),ve(" ",e," ")}}function Uye(t,n){if(t&1&&(h(0,"div",17)(1,"div",18)(2,"label"),_(3,"User ID (sub)"),p(),h(4,"div",19),_(5),p()(),h(6,"div",18)(7,"label"),_(8,"Display Name"),p(),h(9,"div",19),_(10),p()(),h(11,"div",18)(12,"label"),_(13,"Email"),p(),h(14,"div",19),_(15),p()(),h(16,"div",18)(17,"label"),_(18,"Username"),p(),h(19,"div",19),_(20),p()(),h(21,"div",20)(22,"label"),_(23,"Roles"),p(),h(24,"div",19)(25,"mat-chip-set"),R(26,Hye,2,2,"mat-chip",21),p()()(),h(27,"div",20)(28,"label"),_(29,"Permissions"),p(),h(30,"div",19)(31,"mat-chip-set"),R(32,zye,2,2,"mat-chip",22),p()()()()),t&2){let e=n.ngIf,i=C(2);g(5),H(e.sub),g(5),H(e.name||"N/A"),g(5),H(e.email||"N/A"),g(5),H(e.preferred_username||"N/A"),g(6),y("ngForOf",i.profileData==null?null:i.profileData.roles),g(6),y("ngForOf",i.profileData==null?null:i.profileData.permissions)}}function $ye(t,n){t&1&&(h(0,"mat-chip",36)(1,"mat-icon"),_(2,"verified_user"),p(),_(3," Valid "),p())}function Wye(t,n){t&1&&(h(0,"mat-chip",37)(1,"mat-icon"),_(2,"error"),p(),_(3," Expired "),p())}function Gye(t,n){if(t&1&&(h(0,"div",30)(1,"label"),_(2,"Issuer"),p(),h(3,"div"),_(4),p()()),t&2){let e=C().ngIf;g(4),H(e.payload.iss)}}function qye(t,n){if(t&1&&(h(0,"mat-expansion-panel",38)(1,"mat-expansion-panel-header")(2,"mat-panel-title"),_(3,"Raw JWT Token"),p()(),h(4,"pre",39),_(5),p()()),t&2){let e=C().ngIf;g(5),H(e.raw)}}function Yye(t,n){if(t&1){let e=Y();h(0,"div",25)(1,"div",26)(2,"mat-chip-set")(3,"mat-chip",23)(4,"mat-icon"),_(5,"schedule"),p(),_(6),p(),R(7,$ye,4,0,"mat-chip",27)(8,Wye,4,0,"mat-chip",28),p()(),h(9,"div",29)(10,"div",30)(11,"label"),_(12,"Issued At"),p(),h(13,"div"),_(14),p()(),h(15,"div",30)(16,"label"),_(17,"Expires At"),p(),h(18,"div"),_(19),p()(),R(20,Gye,5,1,"div",31),p(),h(21,"div",32)(22,"button",33),S("click",function(){I(e);let r=C(2);return A(r.toggleRawIdToken())}),h(23,"mat-icon"),_(24),p(),_(25),p(),h(26,"button",33),S("click",function(){let r=I(e).ngIf,o=C(2);return A(o.copyToClipboard(r.raw,"ID Token"))}),h(27,"mat-icon"),_(28,"content_copy"),p(),_(29," Copy Token "),p()(),R(30,qye,6,1,"mat-expansion-panel",34),h(31,"mat-expansion-panel")(32,"mat-expansion-panel-header")(33,"mat-panel-title"),_(34,"Token Header"),p()(),h(35,"pre",35),_(36),p()(),h(37,"mat-expansion-panel")(38,"mat-expansion-panel-header")(39,"mat-panel-title"),_(40,"Token Claims (Payload)"),p()(),h(41,"pre",35),_(42),p()()()}if(t&2){let e=n.ngIf,i=C(2);g(3),y("color",i.getExpirationColor(e)),g(3),ve(" ",i.getExpirationStatus(e)," "),g(),y("ngIf",!e.isExpired),g(),y("ngIf",e.isExpired),g(6),H(i.formatDate(e.issuedAt)),g(5),H(i.formatDate(e.expiresAt)),g(),y("ngIf",e.payload.iss),g(4),H(i.showRawIdToken?"visibility_off":"visibility"),g(),ve(" ",i.showRawIdToken?"Hide":"Show"," Raw Token "),g(5),y("ngIf",i.showRawIdToken),g(6),H(i.formatJson(e.header)),g(6),H(i.formatJson(e.payload))}}function Qye(t,n){t&1&&(h(0,"div",40)(1,"mat-icon"),_(2,"info"),p(),h(3,"p"),_(4,"ID Token not available"),p()())}function Kye(t,n){t&1&&(h(0,"mat-chip",36)(1,"mat-icon"),_(2,"verified_user"),p(),_(3," Valid "),p())}function Zye(t,n){t&1&&(h(0,"mat-chip",37)(1,"mat-icon"),_(2,"error"),p(),_(3," Expired "),p())}function Xye(t,n){if(t&1&&(h(0,"div",30)(1,"label"),_(2,"Audience"),p(),h(3,"div"),_(4),p()()),t&2){let e=C().ngIf;g(4),H(e.payload.aud)}}function Jye(t,n){if(t&1&&(h(0,"mat-expansion-panel",38)(1,"mat-expansion-panel-header")(2,"mat-panel-title"),_(3,"Raw JWT Token"),p()(),h(4,"pre",39),_(5),p()()),t&2){let e=C().ngIf;g(5),H(e.raw)}}function exe(t,n){if(t&1&&(h(0,"mat-chip"),_(1),p()),t&2){let e=n.$implicit;g(),ve(" ",e," ")}}function txe(t,n){if(t&1&&(h(0,"mat-expansion-panel")(1,"mat-expansion-panel-header")(2,"mat-panel-title"),_(3,"Scopes"),p()(),h(4,"div",41)(5,"mat-chip-set"),R(6,exe,2,1,"mat-chip",42),p()()()),t&2){let e=C().ngIf,i=C(2);g(6),y("ngForOf",i.getScopes(e.payload.scope))}}function ixe(t,n){if(t&1){let e=Y();h(0,"div",25)(1,"div",26)(2,"mat-chip-set")(3,"mat-chip",23)(4,"mat-icon"),_(5,"schedule"),p(),_(6),p(),R(7,Kye,4,0,"mat-chip",27)(8,Zye,4,0,"mat-chip",28),p()(),h(9,"div",29)(10,"div",30)(11,"label"),_(12,"Issued At"),p(),h(13,"div"),_(14),p()(),h(15,"div",30)(16,"label"),_(17,"Expires At"),p(),h(18,"div"),_(19),p()(),R(20,Xye,5,1,"div",31),p(),h(21,"div",32)(22,"button",33),S("click",function(){I(e);let r=C(2);return A(r.toggleRawAccessToken())}),h(23,"mat-icon"),_(24),p(),_(25),p(),h(26,"button",33),S("click",function(){let r=I(e).ngIf,o=C(2);return A(o.copyToClipboard(r.raw,"Access Token"))}),h(27,"mat-icon"),_(28,"content_copy"),p(),_(29," Copy Token "),p()(),R(30,Jye,6,1,"mat-expansion-panel",34),h(31,"mat-expansion-panel")(32,"mat-expansion-panel-header")(33,"mat-panel-title"),_(34,"Token Header"),p()(),h(35,"pre",35),_(36),p()(),h(37,"mat-expansion-panel")(38,"mat-expansion-panel-header")(39,"mat-panel-title"),_(40,"Token Claims (Payload)"),p()(),h(41,"pre",35),_(42),p()(),R(43,txe,7,1,"mat-expansion-panel",0),p()}if(t&2){let e=n.ngIf,i=C(2);g(3),y("color",i.getExpirationColor(e)),g(3),ve(" ",i.getExpirationStatus(e)," "),g(),y("ngIf",!e.isExpired),g(),y("ngIf",e.isExpired),g(6),H(i.formatDate(e.issuedAt)),g(5),H(i.formatDate(e.expiresAt)),g(),y("ngIf",e.payload.aud),g(4),H(i.showRawAccessToken?"visibility_off":"visibility"),g(),ve(" ",i.showRawAccessToken?"Hide":"Show"," Raw Token "),g(5),y("ngIf",i.showRawAccessToken),g(6),H(i.formatJson(e.header)),g(6),H(i.formatJson(e.payload)),g(),y("ngIf",e.payload.scope)}}function nxe(t,n){t&1&&(h(0,"div",40)(1,"mat-icon"),_(2,"info"),p(),h(3,"p"),_(4,"Access Token not available"),p()())}function rxe(t,n){if(t&1&&(h(0,"div",6)(1,"mat-card",7)(2,"mat-card-content")(3,"div",8)(4,"mat-icon"),_(5,"warning"),p(),h(6,"div")(7,"strong"),_(8,"Security Notice:"),p(),_(9," Tokens displayed on this page contain sensitive information. Do not share these tokens with anyone or paste them in untrusted applications. "),p()()()(),h(10,"mat-card",9)(11,"mat-card-header")(12,"mat-icon",10),_(13,"person"),p(),h(14,"mat-card-title"),_(15,"User Information"),p(),h(16,"mat-card-subtitle"),_(17,"Your profile details from ID token"),p()(),h(18,"mat-card-content"),R(19,Uye,33,6,"div",11),p()(),h(20,"mat-card",12)(21,"mat-card-header")(22,"mat-icon",10),_(23,"vpn_key"),p(),h(24,"mat-card-title"),_(25,"Token Details"),p(),h(26,"mat-card-subtitle"),_(27,"Detailed JWT token information and claims"),p()(),h(28,"mat-card-content")(29,"mat-tab-group")(30,"mat-tab",13),R(31,Yye,43,12,"div",14)(32,Qye,5,0,"div",15),p(),h(33,"mat-tab",16),R(34,ixe,44,13,"div",14)(35,nxe,5,0,"div",15),p()()()()()),t&2){let e=C();g(19),y("ngIf",e.profileData==null?null:e.profileData.userInfo),g(12),y("ngIf",e.profileData==null?null:e.profileData.idToken),g(),y("ngIf",!(e.profileData!=null&&e.profileData.idToken)),g(2),y("ngIf",e.profileData==null?null:e.profileData.accessToken),g(),y("ngIf",!(e.profileData!=null&&e.profileData.accessToken))}}var _6=(()=>{let n=class n{constructor(){this.authService=u(Tt),this.oauthService=u(Wm),this.tokenDecoder=u(oU),this.snackBar=u(di),this.router=u(Re),this.profileData=null,this.showRawIdToken=!1,this.showRawAccessToken=!1}ngOnInit(){this.loadProfileData(),this.authSubscription=this.authService.isAuthenticated$.subscribe(()=>{this.loadProfileData()})}ngOnDestroy(){this.authSubscription?.unsubscribe()}loadProfileData(){let i=this.authService.isAuthenticated(),r=this.oauthService.hasValidAccessToken();if(console.log("Authentication Status:",{isAuthenticated:i,hasValidAccessToken:r}),!i&&!r){this.profileData=null;return}let o=this.authService.getUserInfo(),a=this.authService.getAccessToken(),s=this.oauthService.getIdToken(),l=this.authService.getUserRoles();console.log("Profile Data Debug:",{isAuthenticated:i,hasUserInfo:!!o,hasAccessToken:!!a,accessTokenLength:a?.length,hasIdToken:!!s,idTokenLength:s?.length,roles:l}),this.profileData={isAuthenticated:i,userInfo:o,idToken:s?this.tokenDecoder.decodeToken(s):null,accessToken:a?this.tokenDecoder.decodeToken(a):null,roles:l,permissions:this.getUserPermissions()},console.log("Decoded tokens:",{idToken:this.profileData.idToken,accessToken:this.profileData.accessToken})}getUserPermissions(){let i=[];return this.authService.hasRole("HRAdmin")||this.authService.hasRole("Manager")?i.push("canAdd","canEdit","canDelete","canRead"):this.authService.hasRole("Employee")&&i.push("canRead"),i}toggleRawIdToken(){this.showRawIdToken=!this.showRawIdToken}toggleRawAccessToken(){this.showRawAccessToken=!this.showRawAccessToken}copyToClipboard(i,r){navigator.clipboard.writeText(i).then(()=>{this.showMessage(`${r} copied to clipboard`)}).catch(o=>{console.error("Failed to copy:",o),this.showMessage("Failed to copy to clipboard")})}formatJson(i){return JSON.stringify(i,null,2)}getExpirationStatus(i){return this.tokenDecoder.getExpirationStatus(i)}getExpirationColor(i){if(!i||!i.expiresIn)return"";let r=i.expiresIn/3600;return i.isExpired?"warn":r<1?"accent":"primary"}formatDate(i){return i?new Intl.DateTimeFormat("en-US",{dateStyle:"medium",timeStyle:"medium"}).format(i):"N/A"}showMessage(i){this.snackBar.open(i,"Close",{duration:3e3,horizontalPosition:"end",verticalPosition:"top"})}getScopes(i){return i?Array.isArray(i)?i:typeof i=="string"?i.split(" ").filter(r=>r.length>0):[]:[]}};n.\u0275fac=function(r){return new(r||n)},n.\u0275cmp=E({type:n,selectors:[["app-profile-overview"]],decls:5,vars:4,consts:[[4,"ngIf"],["class","not-authenticated",4,"ngIf"],["class","profile-container",4,"ngIf"],[1,"not-authenticated"],[1,"empty-state"],["mat-raised-button","","color","primary","routerLink","/login"],[1,"profile-container"],[1,"security-warning"],[1,"warning-content"],[1,"profile-card"],["mat-card-avatar",""],["class","info-grid",4,"ngIf"],[1,"tokens-card"],["label","ID Token"],["class","token-content",4,"ngIf"],["class","no-token",4,"ngIf"],["label","Access Token"],[1,"info-grid"],[1,"info-item"],[1,"value"],[1,"info-item","full-width"],["highlighted","",3,"color",4,"ngFor","ngForOf"],[3,"color",4,"ngFor","ngForOf"],["highlighted","",3,"color"],[3,"color"],[1,"token-content"],[1,"token-status"],["color","primary",4,"ngIf"],["color","warn",4,"ngIf"],[1,"token-metadata"],[1,"metadata-item"],["class","metadata-item",4,"ngIf"],[1,"token-actions"],["mat-button","",3,"click"],["expanded","",4,"ngIf"],[1,"json-display"],["color","primary"],["color","warn"],["expanded",""],[1,"token-display"],[1,"no-token"],[1,"scopes-list"],[4,"ngFor","ngForOf"]],template:function(r,o){r&1&&(h(0,"page-header"),R(1,Vye,4,1,"ng-container",0)(2,Bye,4,0,"ng-container",0),p(),R(3,jye,14,0,"div",1)(4,rxe,36,5,"div",2)),r&2&&(g(),y("ngIf",o.profileData==null?null:o.profileData.userInfo),g(),y("ngIf",!(o.profileData!=null&&o.profileData.isAuthenticated)),g(),y("ngIf",!(o.profileData!=null&&o.profileData.isAuthenticated)),g(),y("ngIf",o.profileData==null?null:o.profileData.isAuthenticated))},dependencies:[gt,qr,li,$t,zt,HV,Ut,Jt,jV,Xt,ot,mt,ze,kt,s6,cA,a6,g6,dA,p6,f6,Br,pi,rp,__,tw,lk,Nn,ni],styles:[".profile-container[_ngcontent-%COMP%]{padding:16px;max-width:1200px;margin:0 auto;display:flex;flex-direction:column;gap:24px}.not-authenticated[_ngcontent-%COMP%]{padding:16px;max-width:600px;margin:0 auto}.not-authenticated[_ngcontent-%COMP%] .empty-state[_ngcontent-%COMP%]{display:flex;flex-direction:column;align-items:center;justify-content:center;padding:48px 16px;text-align:center}.not-authenticated[_ngcontent-%COMP%] .empty-state[_ngcontent-%COMP%] mat-icon[_ngcontent-%COMP%]{font-size:64px;width:64px;height:64px;color:#00000061;margin-bottom:16px}.not-authenticated[_ngcontent-%COMP%] .empty-state[_ngcontent-%COMP%] h2[_ngcontent-%COMP%]{margin:0 0 8px;font-size:24px;font-weight:500}.not-authenticated[_ngcontent-%COMP%] .empty-state[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{margin:0 0 24px;color:#0009}.not-authenticated[_ngcontent-%COMP%] .empty-state[_ngcontent-%COMP%] button[_ngcontent-%COMP%] mat-icon[_ngcontent-%COMP%]{font-size:20px;width:20px;height:20px;margin-right:8px;color:inherit}.security-warning[_ngcontent-%COMP%]{background-color:#fff3cd;border-left:4px solid #ff9800}.security-warning[_ngcontent-%COMP%] mat-card-content[_ngcontent-%COMP%]{padding:16px}.security-warning[_ngcontent-%COMP%] .warning-content[_ngcontent-%COMP%]{display:flex;align-items:center;gap:12px}.security-warning[_ngcontent-%COMP%] .warning-content[_ngcontent-%COMP%] mat-icon[_ngcontent-%COMP%]{color:#ff9800;flex-shrink:0}.security-warning[_ngcontent-%COMP%] .warning-content[_ngcontent-%COMP%] strong[_ngcontent-%COMP%]{font-weight:600}.profile-card[_ngcontent-%COMP%] mat-card-header[_ngcontent-%COMP%], .tokens-card[_ngcontent-%COMP%] mat-card-header[_ngcontent-%COMP%]{padding:16px;border-bottom:1px solid rgba(0,0,0,.12)}.profile-card[_ngcontent-%COMP%] mat-card-header[_ngcontent-%COMP%] mat-card-title[_ngcontent-%COMP%], .tokens-card[_ngcontent-%COMP%] mat-card-header[_ngcontent-%COMP%] mat-card-title[_ngcontent-%COMP%]{font-size:20px;font-weight:500;margin:0}.profile-card[_ngcontent-%COMP%] mat-card-header[_ngcontent-%COMP%] mat-card-subtitle[_ngcontent-%COMP%], .tokens-card[_ngcontent-%COMP%] mat-card-header[_ngcontent-%COMP%] mat-card-subtitle[_ngcontent-%COMP%]{margin-top:4px;color:#0009}.profile-card[_ngcontent-%COMP%] mat-card-content[_ngcontent-%COMP%], .tokens-card[_ngcontent-%COMP%] mat-card-content[_ngcontent-%COMP%]{padding:24px}.info-grid[_ngcontent-%COMP%]{display:grid;grid-template-columns:repeat(2,1fr);gap:24px}@media (max-width: 768px){.info-grid[_ngcontent-%COMP%]{grid-template-columns:1fr}}.info-grid[_ngcontent-%COMP%] .info-item[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:8px}.info-grid[_ngcontent-%COMP%] .info-item.full-width[_ngcontent-%COMP%]{grid-column:1/-1}.info-grid[_ngcontent-%COMP%] .info-item[_ngcontent-%COMP%] label[_ngcontent-%COMP%]{font-size:12px;font-weight:500;text-transform:uppercase;letter-spacing:.5px;color:#0009}.info-grid[_ngcontent-%COMP%] .info-item[_ngcontent-%COMP%] .value[_ngcontent-%COMP%]{font-size:16px;color:#000000de;word-break:break-word}.token-content[_ngcontent-%COMP%]{padding:24px 0;display:flex;flex-direction:column;gap:16px}.token-content[_ngcontent-%COMP%] .token-status[_ngcontent-%COMP%] mat-chip-set[_ngcontent-%COMP%] mat-chip[_ngcontent-%COMP%] mat-icon[_ngcontent-%COMP%]{margin-right:4px;font-size:18px;width:18px;height:18px}.token-content[_ngcontent-%COMP%] .token-metadata[_ngcontent-%COMP%]{display:grid;grid-template-columns:repeat(auto-fit,minmax(200px,1fr));gap:16px;padding:16px;background-color:#00000005;border-radius:4px}.token-content[_ngcontent-%COMP%] .token-metadata[_ngcontent-%COMP%] .metadata-item[_ngcontent-%COMP%] label[_ngcontent-%COMP%]{display:block;font-size:12px;font-weight:500;text-transform:uppercase;letter-spacing:.5px;color:#0009;margin-bottom:4px}.token-content[_ngcontent-%COMP%] .token-metadata[_ngcontent-%COMP%] .metadata-item[_ngcontent-%COMP%] div[_ngcontent-%COMP%]{font-size:14px;color:#000000de;word-break:break-word}.token-content[_ngcontent-%COMP%] .token-actions[_ngcontent-%COMP%]{display:flex;gap:8px;flex-wrap:wrap}.token-content[_ngcontent-%COMP%] .token-actions[_ngcontent-%COMP%] button[_ngcontent-%COMP%] mat-icon[_ngcontent-%COMP%]{margin-right:4px}.token-content[_ngcontent-%COMP%] mat-expansion-panel[_ngcontent-%COMP%]{margin-top:8px}.token-content[_ngcontent-%COMP%] .token-display[_ngcontent-%COMP%], .token-content[_ngcontent-%COMP%] .json-display[_ngcontent-%COMP%]{background-color:#f5f5f5;padding:16px;border-radius:4px;overflow-x:auto;font-family:Courier New,monospace;font-size:12px;line-height:1.5;margin:0;white-space:pre-wrap;word-break:break-all}.token-content[_ngcontent-%COMP%] .scopes-list[_ngcontent-%COMP%]{padding:16px}.token-content[_ngcontent-%COMP%] .scopes-list[_ngcontent-%COMP%] mat-chip-set[_ngcontent-%COMP%] mat-chip[_ngcontent-%COMP%]{margin:4px}.no-token[_ngcontent-%COMP%]{display:flex;flex-direction:column;align-items:center;justify-content:center;padding:48px 16px;text-align:center;color:#00000061}.no-token[_ngcontent-%COMP%] mat-icon[_ngcontent-%COMP%]{font-size:48px;width:48px;height:48px;margin-bottom:12px}.no-token[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{margin:0;font-size:14px}mat-chip-set[_ngcontent-%COMP%] mat-chip[_ngcontent-%COMP%]{margin:4px}@media (max-width: 768px){.profile-container[_ngcontent-%COMP%]{padding:12px}.profile-card[_ngcontent-%COMP%] mat-card-content[_ngcontent-%COMP%], .tokens-card[_ngcontent-%COMP%] mat-card-content[_ngcontent-%COMP%]{padding:16px}.token-content[_ngcontent-%COMP%]{padding:16px 0}.token-content[_ngcontent-%COMP%] .token-metadata[_ngcontent-%COMP%]{grid-template-columns:1fr}.security-warning[_ngcontent-%COMP%] .warning-content[_ngcontent-%COMP%]{flex-direction:column;align-items:flex-start}}"]});let t=n;return t})();var b6=(()=>{let n=class n{};n.\u0275fac=function(r){return new(r||n)},n.\u0275cmp=E({type:n,selectors:[["app-profile-settings"]],decls:14,vars:0,consts:[[1,"settings-container"],[1,"coming-soon"]],template:function(r,o){r&1&&(h(0,"page-header")(1,"mat-icon"),_(2,"settings"),p(),_(3,` Profile Settings -`),p(),h(4,"div",0)(5,"mat-card")(6,"mat-card-content")(7,"div",1)(8,"mat-icon"),_(9,"construction"),p(),h(10,"h2"),_(11,"Coming Soon"),p(),h(12,"p"),_(13,"User settings functionality will be available in a future update."),p()()()()())},dependencies:[gt,$t,zt,Ut,ot,mt,ni],styles:[".settings-container[_ngcontent-%COMP%]{padding:16px;max-width:800px;margin:0 auto}.settings-container[_ngcontent-%COMP%] .coming-soon[_ngcontent-%COMP%]{display:flex;flex-direction:column;align-items:center;justify-content:center;padding:48px 16px;text-align:center}.settings-container[_ngcontent-%COMP%] .coming-soon[_ngcontent-%COMP%] mat-icon[_ngcontent-%COMP%]{font-size:64px;width:64px;height:64px;color:#00000061;margin-bottom:16px}.settings-container[_ngcontent-%COMP%] .coming-soon[_ngcontent-%COMP%] h2[_ngcontent-%COMP%]{margin:0 0 8px;font-size:24px;font-weight:500}.settings-container[_ngcontent-%COMP%] .coming-soon[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{margin:0;color:#0009}"]});let t=n;return t})();var v6=[{path:"",component:J8,canActivate:[sI],canActivateChild:[sI],children:[{path:"",redirectTo:"dashboard",pathMatch:"full"},{path:"dashboard",component:sU},{path:"employees",component:CU},{path:"employees/create",component:oA,canActivate:[a_]},{path:"employees/edit/:id",component:oA,canActivate:[a_]},{path:"employees/:id",component:wU},{path:"departments",component:HU},{path:"departments/create",component:aA,canActivate:[a_]},{path:"departments/edit/:id",component:aA,canActivate:[a_]},{path:"departments/:id",component:zU},{path:"positions",component:qU},{path:"positions/create",component:sA,canActivate:[s_]},{path:"positions/edit/:id",component:sA,canActivate:[s_]},{path:"positions/:id",component:QU},{path:"salary-ranges",component:ZU},{path:"salary-ranges/create",component:lA,canActivate:[s_]},{path:"salary-ranges/edit/:id",component:lA,canActivate:[s_]},{path:"salary-ranges/:id",component:JU},{path:"profile",children:[{path:"overview",component:_6},{path:"settings",component:b6},{path:"",redirectTo:"overview",pathMatch:"full"}]},{path:"403",component:lU},{path:"404",component:cU},{path:"500",component:dU}]},{path:"auth",component:eU,children:[{path:"register",component:uU}]},{path:"callback",component:mU},{path:"**",redirectTo:"dashboard"}];var y6=(t,n)=>{let e=u(Tt);if(!e.isAuthenticated())return n(t);let i=e.getAccessToken();if(!i)return n(t);let r=t.clone({setHeaders:{Authorization:`Bearer ${i}`}});return n(r)};var x6={providers:[ZD(),{provide:CI,useValue:ko.baseUrl},fL(),Ql(()=>u(Tt).initAuth()),Ql(()=>u(qz).load()),Ql(()=>u(Wz).load()),S1(T1([y6,...e8])),ok(v6,ak({scrollPositionRestoration:"enabled",anchorScrolling:"enabled"}),S0()),J3(),$5(U5()),$3({loader:W3({prefix:"i18n/",suffix:".json"})}),xb(xc.forRoot()),p3([...O3()]),{provide:yg,useFactory:Az,deps:[ia],multi:!0},{provide:gc,deps:[hz],useFactory:t=>t.getPaginatorIntl()},{provide:Bk,useValue:{appearance:"outlined"}},BV({parse:{dateInput:"yyyy-MM-dd"},display:{dateInput:"yyyy-MM-dd",monthYearLabel:"yyyy MMM",dateA11yLabel:"LL",monthYearA11yLabel:"yyyy MMM"}}),l3({parse:{dateInput:"yyyy-MM-dd",yearInput:"yyyy",monthInput:"MMMM",datetimeInput:"yyyy-MM-dd HH:mm",timeInput:"HH:mm"},display:{dateInput:"yyyy-MM-dd",yearInput:"yyyy",monthInput:"MMMM",datetimeInput:"yyyy-MM-dd HH:mm",timeInput:"HH:mm",monthYearLabel:"yyyy MMMM",dateA11yLabel:"LL",monthYearA11yLabel:"MMMM yyyy",popupHeaderDateLabel:"MMM dd, E"}})]};var C6=(()=>{let n=class n{constructor(){this.preloader=u(Gz),this.settings=u(aa)}ngOnInit(){this.settings.setDirection(),this.settings.setTheme()}ngAfterViewInit(){this.preloader.hide()}};n.\u0275fac=function(r){return new(r||n)},n.\u0275cmp=E({type:n,selectors:[["app-root"]],decls:1,vars:0,template:function(r,o){r&1&&k(0,"router-outlet")},dependencies:[ol],encapsulation:2});let t=n;return t})();C1(C6,x6).catch(t=>console.error(t)); +`],encapsulation:2,changeDetection:0})}return t})();function ZI(t){return t?.nodeName==="TD"}function XI(t){let n;return ZI(t)?n=t:ZI(t.parentNode)?n=t.parentNode:ZI(t.parentNode?.parentNode)&&(n=t.parentNode.parentNode),n?.getAttribute("data-mat-row")!=null?n:null}function JI(t,n,e){return e!==null&&n!==e&&t=n&&t===e}function tA(t,n,e,i){return i&&n!==null&&e!==null&&n!==e&&t>=n&&t<=e}function MU(t){let n=t.changedTouches[0];return document.elementFromPoint(n.clientX,n.clientY)}var ua=class{start;end;_disableStructuralEquivalency;constructor(n,e){this.start=n,this.end=e}},w_=(()=>{class t{selection;_adapter;_selectionChanged=new z;selectionChanged=this._selectionChanged;constructor(e,i){this.selection=e,this._adapter=i,this.selection=e}updateSelection(e,i){let r=this.selection;this.selection=e,this._selectionChanged.next({selection:e,source:i,oldValue:r})}ngOnDestroy(){this._selectionChanged.complete()}_isValidDateInstance(e){return this._adapter.isDateInstance(e)&&this._adapter.isValid(e)}static \u0275fac=function(i){Ad()};static \u0275prov=O({token:t,factory:t.\u0275fac})}return t})(),Qbe=(()=>{class t extends w_{constructor(e){super(null,e)}add(e){super.updateSelection(e,this)}isValid(){return this.selection!=null&&this._isValidDateInstance(this.selection)}isComplete(){return this.selection!=null}clone(){let e=new t(this._adapter);return e.updateSelection(this.selection,this),e}static \u0275fac=function(i){return new(i||t)(pe(Li))};static \u0275prov=O({token:t,factory:t.\u0275fac})}return t})();function Kbe(t,n){return t||new Qbe(n)}var OU={provide:w_,deps:[[new ss,new Gl,w_],Li],useFactory:Kbe};var RU=new T("MAT_DATE_RANGE_SELECTION_STRATEGY");var iA=7,Zbe=0,kU=(()=>{class t{_changeDetectorRef=u(ye);_dateFormats=u(xs,{optional:!0});_dateAdapter=u(Li,{optional:!0});_dir=u(Vt,{optional:!0});_rangeStrategy=u(RU,{optional:!0});_rerenderSubscription=ke.EMPTY;_selectionKeyPressed;get activeDate(){return this._activeDate}set activeDate(e){let i=this._activeDate,r=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e))||this._dateAdapter.today();this._activeDate=this._dateAdapter.clampDate(r,this.minDate,this.maxDate),this._hasSameMonthAndYear(i,this._activeDate)||this._init()}_activeDate;get selected(){return this._selected}set selected(e){e instanceof ua?this._selected=e:this._selected=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e)),this._setRanges(this._selected)}_selected;get minDate(){return this._minDate}set minDate(e){this._minDate=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e))}_minDate;get maxDate(){return this._maxDate}set maxDate(e){this._maxDate=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e))}_maxDate;dateFilter;dateClass;comparisonStart;comparisonEnd;startDateAccessibleName;endDateAccessibleName;activeDrag=null;selectedChange=new U;_userSelection=new U;dragStarted=new U;dragEnded=new U;activeDateChange=new U;_matCalendarBody;_monthLabel=he("");_weeks=he([]);_firstWeekOffset=he(0);_rangeStart=he(null);_rangeEnd=he(null);_comparisonRangeStart=he(null);_comparisonRangeEnd=he(null);_previewStart=he(null);_previewEnd=he(null);_isRange=he(!1);_todayDate=he(null);_weekdays=he([]);constructor(){u(ut).load(Qr),this._activeDate=this._dateAdapter.today()}ngAfterContentInit(){this._rerenderSubscription=this._dateAdapter.localeChanges.pipe(He(null)).subscribe(()=>this._init())}ngOnChanges(e){let i=e.comparisonStart||e.comparisonEnd;i&&!i.firstChange&&this._setRanges(this.selected),e.activeDrag&&!this.activeDrag&&this._clearPreview()}ngOnDestroy(){this._rerenderSubscription.unsubscribe()}_dateSelected(e){let i=e.value,r=this._getDateFromDayOfMonth(i),o,a;this._selected instanceof ua?(o=this._getDateInCurrentMonth(this._selected.start),a=this._getDateInCurrentMonth(this._selected.end)):o=a=this._getDateInCurrentMonth(this._selected),(o!==i||a!==i)&&this.selectedChange.emit(r),this._userSelection.emit({value:r,event:e.event}),this._clearPreview(),this._changeDetectorRef.markForCheck()}_updateActiveDate(e){let i=e.value,r=this._activeDate;this.activeDate=this._getDateFromDayOfMonth(i),this._dateAdapter.compareDate(r,this.activeDate)&&this.activeDateChange.emit(this._activeDate)}_handleCalendarBodyKeydown(e){let i=this._activeDate,r=this._isRtl();switch(e.keyCode){case 37:this.activeDate=this._dateAdapter.addCalendarDays(this._activeDate,r?1:-1);break;case 39:this.activeDate=this._dateAdapter.addCalendarDays(this._activeDate,r?-1:1);break;case 38:this.activeDate=this._dateAdapter.addCalendarDays(this._activeDate,-7);break;case 40:this.activeDate=this._dateAdapter.addCalendarDays(this._activeDate,7);break;case 36:this.activeDate=this._dateAdapter.addCalendarDays(this._activeDate,1-this._dateAdapter.getDate(this._activeDate));break;case 35:this.activeDate=this._dateAdapter.addCalendarDays(this._activeDate,this._dateAdapter.getNumDaysInMonth(this._activeDate)-this._dateAdapter.getDate(this._activeDate));break;case 33:this.activeDate=e.altKey?this._dateAdapter.addCalendarYears(this._activeDate,-1):this._dateAdapter.addCalendarMonths(this._activeDate,-1);break;case 34:this.activeDate=e.altKey?this._dateAdapter.addCalendarYears(this._activeDate,1):this._dateAdapter.addCalendarMonths(this._activeDate,1);break;case 13:case 32:this._selectionKeyPressed=!0,this._canSelect(this._activeDate)&&e.preventDefault();return;case 27:this._previewEnd()!=null&&!Ft(e)&&(this._clearPreview(),this.activeDrag?this.dragEnded.emit({value:null,event:e}):(this.selectedChange.emit(null),this._userSelection.emit({value:null,event:e})),e.preventDefault(),e.stopPropagation());return;default:return}this._dateAdapter.compareDate(i,this.activeDate)&&(this.activeDateChange.emit(this.activeDate),this._focusActiveCellAfterViewChecked()),e.preventDefault()}_handleCalendarBodyKeyup(e){(e.keyCode===32||e.keyCode===13)&&(this._selectionKeyPressed&&this._canSelect(this._activeDate)&&this._dateSelected({value:this._dateAdapter.getDate(this._activeDate),event:e}),this._selectionKeyPressed=!1)}_init(){this._setRanges(this.selected),this._todayDate.set(this._getCellCompareValue(this._dateAdapter.today())),this._monthLabel.set(this._dateFormats.display.monthLabel?this._dateAdapter.format(this.activeDate,this._dateFormats.display.monthLabel):this._dateAdapter.getMonthNames("short")[this._dateAdapter.getMonth(this.activeDate)].toLocaleUpperCase());let e=this._dateAdapter.createDate(this._dateAdapter.getYear(this.activeDate),this._dateAdapter.getMonth(this.activeDate),1);this._firstWeekOffset.set((iA+this._dateAdapter.getDayOfWeek(e)-this._dateAdapter.getFirstDayOfWeek())%iA),this._initWeekdays(),this._createWeekCells(),this._changeDetectorRef.markForCheck()}_focusActiveCell(e){this._matCalendarBody._focusActiveCell(e)}_focusActiveCellAfterViewChecked(){this._matCalendarBody._scheduleFocusActiveCellAfterViewChecked()}_previewChanged({event:e,value:i}){if(this._rangeStrategy){let r=i?i.rawValue:null,o=this._rangeStrategy.createPreview(r,this.selected,e);if(this._previewStart.set(this._getCellCompareValue(o.start)),this._previewEnd.set(this._getCellCompareValue(o.end)),this.activeDrag&&r){let a=this._rangeStrategy.createDrag?.(this.activeDrag.value,this.selected,r,e);a&&(this._previewStart.set(this._getCellCompareValue(a.start)),this._previewEnd.set(this._getCellCompareValue(a.end)))}}}_dragEnded(e){if(this.activeDrag)if(e.value){let i=this._rangeStrategy?.createDrag?.(this.activeDrag.value,this.selected,e.value,e.event);this.dragEnded.emit({value:i??null,event:e.event})}else this.dragEnded.emit({value:null,event:e.event})}_getDateFromDayOfMonth(e){return this._dateAdapter.createDate(this._dateAdapter.getYear(this.activeDate),this._dateAdapter.getMonth(this.activeDate),e)}_initWeekdays(){let e=this._dateAdapter.getFirstDayOfWeek(),i=this._dateAdapter.getDayOfWeekNames("narrow"),o=this._dateAdapter.getDayOfWeekNames("long").map((a,s)=>({long:a,narrow:i[s],id:Zbe++}));this._weekdays.set(o.slice(e).concat(o.slice(0,e)))}_createWeekCells(){let e=this._dateAdapter.getNumDaysInMonth(this.activeDate),i=this._dateAdapter.getDateNames(),r=[[]];for(let o=0,a=this._firstWeekOffset();o=0)&&(!this.maxDate||this._dateAdapter.compareDate(e,this.maxDate)<=0)&&(!this.dateFilter||this.dateFilter(e))}_getDateInCurrentMonth(e){return e&&this._hasSameMonthAndYear(e,this.activeDate)?this._dateAdapter.getDate(e):null}_hasSameMonthAndYear(e,i){return!!(e&&i&&this._dateAdapter.getMonth(e)==this._dateAdapter.getMonth(i)&&this._dateAdapter.getYear(e)==this._dateAdapter.getYear(i))}_getCellCompareValue(e){if(e){let i=this._dateAdapter.getYear(e),r=this._dateAdapter.getMonth(e),o=this._dateAdapter.getDate(e);return new Date(i,r,o).getTime()}return null}_isRtl(){return this._dir&&this._dir.value==="rtl"}_setRanges(e){e instanceof ua?(this._rangeStart.set(this._getCellCompareValue(e.start)),this._rangeEnd.set(this._getCellCompareValue(e.end)),this._isRange.set(!0)):(this._rangeStart.set(this._getCellCompareValue(e)),this._rangeEnd.set(this._rangeStart()),this._isRange.set(!1)),this._comparisonRangeStart.set(this._getCellCompareValue(this.comparisonStart)),this._comparisonRangeEnd.set(this._getCellCompareValue(this.comparisonEnd))}_canSelect(e){return!this.dateFilter||this.dateFilter(e)}_clearPreview(){this._previewStart.set(null),this._previewEnd.set(null)}static \u0275fac=function(i){return new(i||t)};static \u0275cmp=E({type:t,selectors:[["mat-month-view"]],viewQuery:function(i,r){if(i&1&&ie(cp,5),i&2){let o;B(o=j())&&(r._matCalendarBody=o.first)}},inputs:{activeDate:"activeDate",selected:"selected",minDate:"minDate",maxDate:"maxDate",dateFilter:"dateFilter",dateClass:"dateClass",comparisonStart:"comparisonStart",comparisonEnd:"comparisonEnd",startDateAccessibleName:"startDateAccessibleName",endDateAccessibleName:"endDateAccessibleName",activeDrag:"activeDrag"},outputs:{selectedChange:"selectedChange",_userSelection:"_userSelection",dragStarted:"dragStarted",dragEnded:"dragEnded",activeDateChange:"activeDateChange"},exportAs:["matMonthView"],features:[Ae],decls:8,vars:14,consts:[["role","grid",1,"mat-calendar-table"],[1,"mat-calendar-table-header"],["scope","col"],["aria-hidden","true"],["colspan","7",1,"mat-calendar-table-header-divider"],["mat-calendar-body","",3,"selectedValueChange","activeDateChange","previewChange","dragStarted","dragEnded","keyup","keydown","label","rows","todayValue","startValue","endValue","comparisonStart","comparisonEnd","previewStart","previewEnd","isRange","labelMinRequiredCells","activeCell","startDateAccessibleName","endDateAccessibleName"],[1,"cdk-visually-hidden"]],template:function(i,r){i&1&&(h(0,"table",0)(1,"thead",1)(2,"tr"),xt(3,Nbe,5,2,"th",2,AU),p(),h(5,"tr",3),k(6,"th",4),p()(),h(7,"tbody",5),S("selectedValueChange",function(a){return r._dateSelected(a)})("activeDateChange",function(a){return r._updateActiveDate(a)})("previewChange",function(a){return r._previewChanged(a)})("dragStarted",function(a){return r.dragStarted.emit(a)})("dragEnded",function(a){return r._dragEnded(a)})("keyup",function(a){return r._handleCalendarBodyKeyup(a)})("keydown",function(a){return r._handleCalendarBodyKeydown(a)}),p()()),i&2&&(g(3),Ct(r._weekdays()),g(4),y("label",r._monthLabel())("rows",r._weeks())("todayValue",r._todayDate())("startValue",r._rangeStart())("endValue",r._rangeEnd())("comparisonStart",r._comparisonRangeStart())("comparisonEnd",r._comparisonRangeEnd())("previewStart",r._previewStart())("previewEnd",r._previewEnd())("isRange",r._isRange())("labelMinRequiredCells",3)("activeCell",r._dateAdapter.getDate(r.activeDate)-1)("startDateAccessibleName",r.startDateAccessibleName)("endDateAccessibleName",r.endDateAccessibleName))},dependencies:[cp],encapsulation:2,changeDetection:0})}return t})(),Io=24,nA=4,SU=(()=>{class t{_changeDetectorRef=u(ye);_dateAdapter=u(Li,{optional:!0});_dir=u(Vt,{optional:!0});_rerenderSubscription=ke.EMPTY;_selectionKeyPressed;get activeDate(){return this._activeDate}set activeDate(e){let i=this._activeDate,r=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e))||this._dateAdapter.today();this._activeDate=this._dateAdapter.clampDate(r,this.minDate,this.maxDate),PU(this._dateAdapter,i,this._activeDate,this.minDate,this.maxDate)||this._init()}_activeDate;get selected(){return this._selected}set selected(e){e instanceof ua?this._selected=e:this._selected=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e)),this._setSelectedYear(e)}_selected;get minDate(){return this._minDate}set minDate(e){this._minDate=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e))}_minDate;get maxDate(){return this._maxDate}set maxDate(e){this._maxDate=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e))}_maxDate;dateFilter;dateClass;selectedChange=new U;yearSelected=new U;activeDateChange=new U;_matCalendarBody;_years=he([]);_todayYear=he(0);_selectedYear=he(null);constructor(){this._dateAdapter,this._activeDate=this._dateAdapter.today()}ngAfterContentInit(){this._rerenderSubscription=this._dateAdapter.localeChanges.pipe(He(null)).subscribe(()=>this._init())}ngOnDestroy(){this._rerenderSubscription.unsubscribe()}_init(){this._todayYear.set(this._dateAdapter.getYear(this._dateAdapter.today()));let i=this._dateAdapter.getYear(this._activeDate)-x_(this._dateAdapter,this.activeDate,this.minDate,this.maxDate),r=[];for(let o=0,a=[];othis._createCellForYear(s))),a=[]);this._years.set(r),this._changeDetectorRef.markForCheck()}_yearSelected(e){let i=e.value,r=this._dateAdapter.createDate(i,0,1),o=this._getDateFromYear(i);this.yearSelected.emit(r),this.selectedChange.emit(o)}_updateActiveDate(e){let i=e.value,r=this._activeDate;this.activeDate=this._getDateFromYear(i),this._dateAdapter.compareDate(r,this.activeDate)&&this.activeDateChange.emit(this.activeDate)}_handleCalendarBodyKeydown(e){let i=this._activeDate,r=this._isRtl();switch(e.keyCode){case 37:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,r?1:-1);break;case 39:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,r?-1:1);break;case 38:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,-nA);break;case 40:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,nA);break;case 36:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,-x_(this._dateAdapter,this.activeDate,this.minDate,this.maxDate));break;case 35:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,Io-x_(this._dateAdapter,this.activeDate,this.minDate,this.maxDate)-1);break;case 33:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,e.altKey?-Io*10:-Io);break;case 34:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,e.altKey?Io*10:Io);break;case 13:case 32:this._selectionKeyPressed=!0;break;default:return}this._dateAdapter.compareDate(i,this.activeDate)&&this.activeDateChange.emit(this.activeDate),this._focusActiveCellAfterViewChecked(),e.preventDefault()}_handleCalendarBodyKeyup(e){(e.keyCode===32||e.keyCode===13)&&(this._selectionKeyPressed&&this._yearSelected({value:this._dateAdapter.getYear(this._activeDate),event:e}),this._selectionKeyPressed=!1)}_getActiveCell(){return x_(this._dateAdapter,this.activeDate,this.minDate,this.maxDate)}_focusActiveCell(){this._matCalendarBody._focusActiveCell()}_focusActiveCellAfterViewChecked(){this._matCalendarBody._scheduleFocusActiveCellAfterViewChecked()}_getDateFromYear(e){let i=this._dateAdapter.getMonth(this.activeDate),r=this._dateAdapter.getNumDaysInMonth(this._dateAdapter.createDate(e,i,1));return this._dateAdapter.createDate(e,i,Math.min(this._dateAdapter.getDate(this.activeDate),r))}_createCellForYear(e){let i=this._dateAdapter.createDate(e,0,1),r=this._dateAdapter.getYearName(i),o=this.dateClass?this.dateClass(i,"multi-year"):void 0;return new C_(e,r,r,this._shouldEnableYear(e),o)}_shouldEnableYear(e){if(e==null||this.maxDate&&e>this._dateAdapter.getYear(this.maxDate)||this.minDate&&e{class t{_changeDetectorRef=u(ye);_dateFormats=u(xs,{optional:!0});_dateAdapter=u(Li,{optional:!0});_dir=u(Vt,{optional:!0});_rerenderSubscription=ke.EMPTY;_selectionKeyPressed;get activeDate(){return this._activeDate}set activeDate(e){let i=this._activeDate,r=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e))||this._dateAdapter.today();this._activeDate=this._dateAdapter.clampDate(r,this.minDate,this.maxDate),this._dateAdapter.getYear(i)!==this._dateAdapter.getYear(this._activeDate)&&this._init()}_activeDate;get selected(){return this._selected}set selected(e){e instanceof ua?this._selected=e:this._selected=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e)),this._setSelectedMonth(e)}_selected;get minDate(){return this._minDate}set minDate(e){this._minDate=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e))}_minDate;get maxDate(){return this._maxDate}set maxDate(e){this._maxDate=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e))}_maxDate;dateFilter;dateClass;selectedChange=new U;monthSelected=new U;activeDateChange=new U;_matCalendarBody;_months=he([]);_yearLabel=he("");_todayMonth=he(null);_selectedMonth=he(null);constructor(){this._activeDate=this._dateAdapter.today()}ngAfterContentInit(){this._rerenderSubscription=this._dateAdapter.localeChanges.pipe(He(null)).subscribe(()=>this._init())}ngOnDestroy(){this._rerenderSubscription.unsubscribe()}_monthSelected(e){let i=e.value,r=this._dateAdapter.createDate(this._dateAdapter.getYear(this.activeDate),i,1);this.monthSelected.emit(r);let o=this._getDateFromMonth(i);this.selectedChange.emit(o)}_updateActiveDate(e){let i=e.value,r=this._activeDate;this.activeDate=this._getDateFromMonth(i),this._dateAdapter.compareDate(r,this.activeDate)&&this.activeDateChange.emit(this.activeDate)}_handleCalendarBodyKeydown(e){let i=this._activeDate,r=this._isRtl();switch(e.keyCode){case 37:this.activeDate=this._dateAdapter.addCalendarMonths(this._activeDate,r?1:-1);break;case 39:this.activeDate=this._dateAdapter.addCalendarMonths(this._activeDate,r?-1:1);break;case 38:this.activeDate=this._dateAdapter.addCalendarMonths(this._activeDate,-4);break;case 40:this.activeDate=this._dateAdapter.addCalendarMonths(this._activeDate,4);break;case 36:this.activeDate=this._dateAdapter.addCalendarMonths(this._activeDate,-this._dateAdapter.getMonth(this._activeDate));break;case 35:this.activeDate=this._dateAdapter.addCalendarMonths(this._activeDate,11-this._dateAdapter.getMonth(this._activeDate));break;case 33:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,e.altKey?-10:-1);break;case 34:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,e.altKey?10:1);break;case 13:case 32:this._selectionKeyPressed=!0;break;default:return}this._dateAdapter.compareDate(i,this.activeDate)&&(this.activeDateChange.emit(this.activeDate),this._focusActiveCellAfterViewChecked()),e.preventDefault()}_handleCalendarBodyKeyup(e){(e.keyCode===32||e.keyCode===13)&&(this._selectionKeyPressed&&this._monthSelected({value:this._dateAdapter.getMonth(this._activeDate),event:e}),this._selectionKeyPressed=!1)}_init(){this._setSelectedMonth(this.selected),this._todayMonth.set(this._getMonthInCurrentYear(this._dateAdapter.today())),this._yearLabel.set(this._dateAdapter.getYearName(this.activeDate));let e=this._dateAdapter.getMonthNames("short");this._months.set([[0,1,2,3],[4,5,6,7],[8,9,10,11]].map(i=>i.map(r=>this._createCellForMonth(r,e[r])))),this._changeDetectorRef.markForCheck()}_focusActiveCell(){this._matCalendarBody._focusActiveCell()}_focusActiveCellAfterViewChecked(){this._matCalendarBody._scheduleFocusActiveCellAfterViewChecked()}_getMonthInCurrentYear(e){return e&&this._dateAdapter.getYear(e)==this._dateAdapter.getYear(this.activeDate)?this._dateAdapter.getMonth(e):null}_getDateFromMonth(e){let i=this._dateAdapter.createDate(this._dateAdapter.getYear(this.activeDate),e,1),r=this._dateAdapter.getNumDaysInMonth(i);return this._dateAdapter.createDate(this._dateAdapter.getYear(this.activeDate),e,Math.min(this._dateAdapter.getDate(this.activeDate),r))}_createCellForMonth(e,i){let r=this._dateAdapter.createDate(this._dateAdapter.getYear(this.activeDate),e,1),o=this._dateAdapter.format(r,this._dateFormats.display.monthYearA11yLabel),a=this.dateClass?this.dateClass(r,"year"):void 0;return new C_(e,i.toLocaleUpperCase(),o,this._shouldEnableMonth(e),a)}_shouldEnableMonth(e){let i=this._dateAdapter.getYear(this.activeDate);if(e==null||this._isYearAndMonthAfterMaxDate(i,e)||this._isYearAndMonthBeforeMinDate(i,e))return!1;if(!this.dateFilter)return!0;let r=this._dateAdapter.createDate(i,e,1);for(let o=r;this._dateAdapter.getMonth(o)==e;o=this._dateAdapter.addCalendarDays(o,1))if(this.dateFilter(o))return!0;return!1}_isYearAndMonthAfterMaxDate(e,i){if(this.maxDate){let r=this._dateAdapter.getYear(this.maxDate),o=this._dateAdapter.getMonth(this.maxDate);return e>r||e===r&&i>o}return!1}_isYearAndMonthBeforeMinDate(e,i){if(this.minDate){let r=this._dateAdapter.getYear(this.minDate),o=this._dateAdapter.getMonth(this.minDate);return e{class t{_intl=u(dp);calendar=u(rA);_dateAdapter=u(Li,{optional:!0});_dateFormats=u(xs,{optional:!0});_periodButtonText;_periodButtonDescription;_periodButtonLabel;_prevButtonLabel;_nextButtonLabel;constructor(){u(ut).load(Qr);let e=u(ye);this._updateLabels(),this.calendar.stateChanges.subscribe(()=>{this._updateLabels(),e.markForCheck()})}get periodButtonText(){return this._periodButtonText}get periodButtonDescription(){return this._periodButtonDescription}get periodButtonLabel(){return this._periodButtonLabel}get prevButtonLabel(){return this._prevButtonLabel}get nextButtonLabel(){return this._nextButtonLabel}currentPeriodClicked(){this.calendar.currentView=this.calendar.currentView=="month"?"multi-year":"month"}previousClicked(){this.previousEnabled()&&(this.calendar.activeDate=this.calendar.currentView=="month"?this._dateAdapter.addCalendarMonths(this.calendar.activeDate,-1):this._dateAdapter.addCalendarYears(this.calendar.activeDate,this.calendar.currentView=="year"?-1:-Io))}nextClicked(){this.nextEnabled()&&(this.calendar.activeDate=this.calendar.currentView=="month"?this._dateAdapter.addCalendarMonths(this.calendar.activeDate,1):this._dateAdapter.addCalendarYears(this.calendar.activeDate,this.calendar.currentView=="year"?1:Io))}previousEnabled(){return this.calendar.minDate?!this.calendar.minDate||!this._isSameView(this.calendar.activeDate,this.calendar.minDate):!0}nextEnabled(){return!this.calendar.maxDate||!this._isSameView(this.calendar.activeDate,this.calendar.maxDate)}_updateLabels(){let e=this.calendar,i=this._intl,r=this._dateAdapter;e.currentView==="month"?(this._periodButtonText=r.format(e.activeDate,this._dateFormats.display.monthYearLabel).toLocaleUpperCase(),this._periodButtonDescription=r.format(e.activeDate,this._dateFormats.display.monthYearLabel).toLocaleUpperCase(),this._periodButtonLabel=i.switchToMultiYearViewLabel,this._prevButtonLabel=i.prevMonthLabel,this._nextButtonLabel=i.nextMonthLabel):e.currentView==="year"?(this._periodButtonText=r.getYearName(e.activeDate),this._periodButtonDescription=r.getYearName(e.activeDate),this._periodButtonLabel=i.switchToMonthViewLabel,this._prevButtonLabel=i.prevYearLabel,this._nextButtonLabel=i.nextYearLabel):(this._periodButtonText=i.formatYearRange(...this._formatMinAndMaxYearLabels()),this._periodButtonDescription=i.formatYearRangeLabel(...this._formatMinAndMaxYearLabels()),this._periodButtonLabel=i.switchToMonthViewLabel,this._prevButtonLabel=i.prevMultiYearLabel,this._nextButtonLabel=i.nextMultiYearLabel)}_isSameView(e,i){return this.calendar.currentView=="month"?this._dateAdapter.getYear(e)==this._dateAdapter.getYear(i)&&this._dateAdapter.getMonth(e)==this._dateAdapter.getMonth(i):this.calendar.currentView=="year"?this._dateAdapter.getYear(e)==this._dateAdapter.getYear(i):PU(this._dateAdapter,e,i,this.calendar.minDate,this.calendar.maxDate)}_formatMinAndMaxYearLabels(){let i=this._dateAdapter.getYear(this.calendar.activeDate)-x_(this._dateAdapter,this.calendar.activeDate,this.calendar.minDate,this.calendar.maxDate),r=i+Io-1,o=this._dateAdapter.getYearName(this._dateAdapter.createDate(i,0,1)),a=this._dateAdapter.getYearName(this._dateAdapter.createDate(r,0,1));return[o,a]}_periodButtonLabelId=u(Ze).getId("mat-calendar-period-label-");static \u0275fac=function(i){return new(i||t)};static \u0275cmp=E({type:t,selectors:[["mat-calendar-header"]],exportAs:["matCalendarHeader"],ngContentSelectors:Lbe,decls:17,vars:13,consts:[[1,"mat-calendar-header"],[1,"mat-calendar-controls"],["aria-live","polite",1,"cdk-visually-hidden",3,"id"],["matButton","","type","button",1,"mat-calendar-period-button",3,"click"],["aria-hidden","true"],["viewBox","0 0 10 5","focusable","false","aria-hidden","true",1,"mat-calendar-arrow"],["points","0,0 5,5 10,0"],[1,"mat-calendar-spacer"],["matIconButton","","type","button","disabledInteractive","",1,"mat-calendar-previous-button",3,"click","disabled","matTooltip"],["viewBox","0 0 24 24","focusable","false","aria-hidden","true"],["d","M15.41 7.41L14 6l-6 6 6 6 1.41-1.41L10.83 12z"],["matIconButton","","type","button","disabledInteractive","",1,"mat-calendar-next-button",3,"click","disabled","matTooltip"],["d","M10 6L8.59 7.41 13.17 12l-4.58 4.59L10 18l6-6z"]],template:function(i,r){i&1&&(Me(),h(0,"div",0)(1,"div",1)(2,"span",2),_(3),p(),h(4,"button",3),S("click",function(){return r.currentPeriodClicked()}),h(5,"span",4),_(6),p(),Gt(),h(7,"svg",5),k(8,"polygon",6),p()(),jo(),k(9,"div",7),oe(10),h(11,"button",8),S("click",function(){return r.previousClicked()}),Gt(),h(12,"svg",9),k(13,"path",10),p()(),jo(),h(14,"button",11),S("click",function(){return r.nextClicked()}),Gt(),h(15,"svg",9),k(16,"path",12),p()()()()),i&2&&(g(2),y("id",r._periodButtonLabelId),g(),H(r.periodButtonDescription),g(),X("aria-label",r.periodButtonLabel)("aria-describedby",r._periodButtonLabelId),g(2),H(r.periodButtonText),g(),G("mat-calendar-invert",r.calendar.currentView!=="month"),g(4),y("disabled",!r.previousEnabled())("matTooltip",r.prevButtonLabel),X("aria-label",r.prevButtonLabel),g(3),y("disabled",!r.nextEnabled())("matTooltip",r.nextButtonLabel),X("aria-label",r.nextButtonLabel))},dependencies:[kt,ti,Eo],encapsulation:2,changeDetection:0})}return t})(),rA=(()=>{class t{_dateAdapter=u(Li,{optional:!0});_dateFormats=u(xs,{optional:!0});_changeDetectorRef=u(ye);_elementRef=u(q);headerComponent;_calendarHeaderPortal;_intlChanges;_moveFocusOnNextTick=!1;get startAt(){return this._startAt}set startAt(e){this._startAt=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e))}_startAt;startView="month";get selected(){return this._selected}set selected(e){e instanceof ua?this._selected=e:this._selected=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e))}_selected;get minDate(){return this._minDate}set minDate(e){this._minDate=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e))}_minDate;get maxDate(){return this._maxDate}set maxDate(e){this._maxDate=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e))}_maxDate;dateFilter;dateClass;comparisonStart;comparisonEnd;startDateAccessibleName;endDateAccessibleName;selectedChange=new U;yearSelected=new U;monthSelected=new U;viewChanged=new U(!0);_userSelection=new U;_userDragDrop=new U;monthView;yearView;multiYearView;get activeDate(){return this._clampedActiveDate}set activeDate(e){this._clampedActiveDate=this._dateAdapter.clampDate(e,this.minDate,this.maxDate),this.stateChanges.next(),this._changeDetectorRef.markForCheck()}_clampedActiveDate;get currentView(){return this._currentView}set currentView(e){let i=this._currentView!==e?e:null;this._currentView=e,this._moveFocusOnNextTick=!0,this._changeDetectorRef.markForCheck(),i&&(this.stateChanges.next(),this.viewChanged.emit(i))}_currentView;_activeDrag=null;stateChanges=new z;constructor(){this._intlChanges=u(dp).changes.subscribe(()=>{this._changeDetectorRef.markForCheck(),this.stateChanges.next()})}ngAfterContentInit(){this._calendarHeaderPortal=new Zr(this.headerComponent||NU),this.activeDate=this.startAt||this._dateAdapter.today(),this._currentView=this.startView}ngAfterViewChecked(){this._moveFocusOnNextTick&&(this._moveFocusOnNextTick=!1,this.focusActiveCell())}ngOnDestroy(){this._intlChanges.unsubscribe(),this.stateChanges.complete()}ngOnChanges(e){let i=e.minDate&&!this._dateAdapter.sameDate(e.minDate.previousValue,e.minDate.currentValue)?e.minDate:void 0,r=e.maxDate&&!this._dateAdapter.sameDate(e.maxDate.previousValue,e.maxDate.currentValue)?e.maxDate:void 0,o=i||r||e.dateFilter;if(o&&!o.firstChange){let a=this._getCurrentViewComponent();a&&(this._elementRef.nativeElement.contains(_o())&&(this._moveFocusOnNextTick=!0),this._changeDetectorRef.detectChanges(),a._init())}this.stateChanges.next()}focusActiveCell(){this._getCurrentViewComponent()._focusActiveCell(!1)}updateTodaysDate(){this._getCurrentViewComponent()._init()}_dateSelected(e){let i=e.value;(this.selected instanceof ua||i&&!this._dateAdapter.sameDate(i,this.selected))&&this.selectedChange.emit(i),this._userSelection.emit(e)}_yearSelectedInMultiYearView(e){this.yearSelected.emit(e)}_monthSelectedInYearView(e){this.monthSelected.emit(e)}_goToDateInView(e,i){this.activeDate=e,this.currentView=i}_dragStarted(e){this._activeDrag=e}_dragEnded(e){this._activeDrag&&(e.value&&this._userDragDrop.emit(e),this._activeDrag=null)}_getCurrentViewComponent(){return this.monthView||this.yearView||this.multiYearView}static \u0275fac=function(i){return new(i||t)};static \u0275cmp=E({type:t,selectors:[["mat-calendar"]],viewQuery:function(i,r){if(i&1&&(ie(kU,5),ie(TU,5),ie(SU,5)),i&2){let o;B(o=j())&&(r.monthView=o.first),B(o=j())&&(r.yearView=o.first),B(o=j())&&(r.multiYearView=o.first)}},hostAttrs:[1,"mat-calendar"],inputs:{headerComponent:"headerComponent",startAt:"startAt",startView:"startView",selected:"selected",minDate:"minDate",maxDate:"maxDate",dateFilter:"dateFilter",dateClass:"dateClass",comparisonStart:"comparisonStart",comparisonEnd:"comparisonEnd",startDateAccessibleName:"startDateAccessibleName",endDateAccessibleName:"endDateAccessibleName"},outputs:{selectedChange:"selectedChange",yearSelected:"yearSelected",monthSelected:"monthSelected",viewChanged:"viewChanged",_userSelection:"_userSelection",_userDragDrop:"_userDragDrop"},exportAs:["matCalendar"],features:[Ce([OU]),Ae],decls:5,vars:2,consts:[[3,"cdkPortalOutlet"],["cdkMonitorSubtreeFocus","","tabindex","-1",1,"mat-calendar-content"],[3,"activeDate","selected","dateFilter","maxDate","minDate","dateClass","comparisonStart","comparisonEnd","startDateAccessibleName","endDateAccessibleName","activeDrag"],[3,"activeDate","selected","dateFilter","maxDate","minDate","dateClass"],[3,"activeDateChange","_userSelection","dragStarted","dragEnded","activeDate","selected","dateFilter","maxDate","minDate","dateClass","comparisonStart","comparisonEnd","startDateAccessibleName","endDateAccessibleName","activeDrag"],[3,"activeDateChange","monthSelected","selectedChange","activeDate","selected","dateFilter","maxDate","minDate","dateClass"],[3,"activeDateChange","yearSelected","selectedChange","activeDate","selected","dateFilter","maxDate","minDate","dateClass"]],template:function(i,r){if(i&1&&(R(0,Vbe,0,0,"ng-template",0),h(1,"div",1),N(2,Bbe,1,11,"mat-month-view",2)(3,jbe,1,6,"mat-year-view",3)(4,Hbe,1,6,"mat-multi-year-view",3),p()),i&2){let o;y("cdkPortalOutlet",r._calendarHeaderPortal),g(2),L((o=r.currentView)==="month"?2:o==="year"?3:o==="multi-year"?4:-1)}},dependencies:[yr,$f,kU,TU,SU],styles:[`.mat-calendar{display:block;line-height:normal;font-family:var(--mat-datepicker-calendar-text-font, var(--mat-sys-body-medium-font));font-size:var(--mat-datepicker-calendar-text-size, var(--mat-sys-body-medium-size))}.mat-calendar-header{padding:8px 8px 0 8px}.mat-calendar-content{padding:0 8px 8px 8px;outline:none}.mat-calendar-controls{display:flex;align-items:center;margin:5% calc(4.7142857143% - 16px)}.mat-calendar-spacer{flex:1 1 auto}.mat-calendar-period-button{min-width:0;margin:0 8px;font-size:var(--mat-datepicker-calendar-period-button-text-size, var(--mat-sys-title-small-size));font-weight:var(--mat-datepicker-calendar-period-button-text-weight, var(--mat-sys-title-small-weight));--mat-button-text-label-text-color: var(--mat-datepicker-calendar-period-button-text-color, var(--mat-sys-on-surface-variant))}.mat-calendar-arrow{display:inline-block;width:10px;height:5px;margin:0 0 0 5px;vertical-align:middle;fill:var(--mat-datepicker-calendar-period-button-icon-color, var(--mat-sys-on-surface-variant))}.mat-calendar-arrow.mat-calendar-invert{transform:rotate(180deg)}[dir=rtl] .mat-calendar-arrow{margin:0 5px 0 0}@media(forced-colors: active){.mat-calendar-arrow{fill:CanvasText}}.mat-datepicker-content .mat-calendar-previous-button:not(.mat-mdc-button-disabled),.mat-datepicker-content .mat-calendar-next-button:not(.mat-mdc-button-disabled){color:var(--mat-datepicker-calendar-navigation-button-icon-color, var(--mat-sys-on-surface-variant))}[dir=rtl] .mat-calendar-previous-button,[dir=rtl] .mat-calendar-next-button{transform:rotate(180deg)}.mat-calendar-table{border-spacing:0;border-collapse:collapse;width:100%}.mat-calendar-table-header th{text-align:center;padding:0 0 8px 0;color:var(--mat-datepicker-calendar-header-text-color, var(--mat-sys-on-surface-variant));font-size:var(--mat-datepicker-calendar-header-text-size, var(--mat-sys-title-small-size));font-weight:var(--mat-datepicker-calendar-header-text-weight, var(--mat-sys-title-small-weight))}.mat-calendar-table-header-divider{position:relative;height:1px}.mat-calendar-table-header-divider::after{content:"";position:absolute;top:0;left:-8px;right:-8px;height:1px;background:var(--mat-datepicker-calendar-header-divider-color, transparent)}.mat-calendar-body-cell-content::before{margin:calc(calc(var(--mat-focus-indicator-border-width, 3px) + 3px)*-1)}.mat-calendar-body-cell:focus .mat-focus-indicator::before{content:""} +`],encapsulation:2,changeDetection:0})}return t})(),LU=new T("mat-datepicker-scroll-strategy",{providedIn:"root",factory:()=>{let t=u(de);return()=>wn(t)}});function Jbe(t){let n=u(de);return()=>wn(n)}var eve={provide:LU,deps:[],useFactory:Jbe},VU=(()=>{class t{_elementRef=u(q);_animationsDisabled=Ye();_changeDetectorRef=u(ye);_globalModel=u(w_);_dateAdapter=u(Li);_ngZone=u(ae);_rangeSelectionStrategy=u(RU,{optional:!0});_stateChanges;_model;_eventCleanups;_animationFallback;_calendar;color;datepicker;comparisonStart;comparisonEnd;startDateAccessibleName;endDateAccessibleName;_isAbove;_animationDone=new z;_isAnimating=!1;_closeButtonText;_closeButtonFocused;_actionsPortal=null;_dialogLabelId;constructor(){if(u(ut).load(Qr),this._closeButtonText=u(dp).closeCalendarLabel,!this._animationsDisabled){let e=this._elementRef.nativeElement,i=u(je);this._eventCleanups=this._ngZone.runOutsideAngular(()=>[i.listen(e,"animationstart",this._handleAnimationEvent),i.listen(e,"animationend",this._handleAnimationEvent),i.listen(e,"animationcancel",this._handleAnimationEvent)])}}ngAfterViewInit(){this._stateChanges=this.datepicker.stateChanges.subscribe(()=>{this._changeDetectorRef.markForCheck()}),this._calendar.focusActiveCell()}ngOnDestroy(){clearTimeout(this._animationFallback),this._eventCleanups?.forEach(e=>e()),this._stateChanges?.unsubscribe(),this._animationDone.complete()}_handleUserSelection(e){let i=this._model.selection,r=e.value,o=i instanceof ua;if(o&&this._rangeSelectionStrategy){let a=this._rangeSelectionStrategy.selectionFinished(r,i,e.event);this._model.updateSelection(a,this)}else r&&(o||!this._dateAdapter.sameDate(r,i))&&this._model.add(r);(!this._model||this._model.isComplete())&&!this._actionsPortal&&this.datepicker.close()}_handleUserDragDrop(e){this._model.updateSelection(e.value,this)}_startExitAnimation(){this._elementRef.nativeElement.classList.add("mat-datepicker-content-exit"),this._animationsDisabled?this._animationDone.next():(clearTimeout(this._animationFallback),this._animationFallback=setTimeout(()=>{this._isAnimating||this._animationDone.next()},200))}_handleAnimationEvent=e=>{let i=this._elementRef.nativeElement;e.target!==i||!e.animationName.startsWith("_mat-datepicker-content")||(clearTimeout(this._animationFallback),this._isAnimating=e.type==="animationstart",i.classList.toggle("mat-datepicker-content-animating",this._isAnimating),this._isAnimating||this._animationDone.next())};_getSelected(){return this._model.selection}_applyPendingSelection(){this._model!==this._globalModel&&this._globalModel.updateSelection(this._model.selection,this)}_assignActions(e,i){this._model=e?this._globalModel.clone():this._globalModel,this._actionsPortal=e,i&&this._changeDetectorRef.detectChanges()}static \u0275fac=function(i){return new(i||t)};static \u0275cmp=E({type:t,selectors:[["mat-datepicker-content"]],viewQuery:function(i,r){if(i&1&&ie(rA,5),i&2){let o;B(o=j())&&(r._calendar=o.first)}},hostAttrs:[1,"mat-datepicker-content"],hostVars:6,hostBindings:function(i,r){i&2&&(it(r.color?"mat-"+r.color:""),G("mat-datepicker-content-touch",r.datepicker.touchUi)("mat-datepicker-content-animations-enabled",!r._animationsDisabled))},inputs:{color:"color"},exportAs:["matDatepickerContent"],decls:5,vars:26,consts:[["cdkTrapFocus","","role","dialog",1,"mat-datepicker-content-container"],[3,"yearSelected","monthSelected","viewChanged","_userSelection","_userDragDrop","id","startAt","startView","minDate","maxDate","dateFilter","headerComponent","selected","dateClass","comparisonStart","comparisonEnd","startDateAccessibleName","endDateAccessibleName"],[3,"cdkPortalOutlet"],["type","button","matButton","elevated",1,"mat-datepicker-close-button",3,"focus","blur","click","color"]],template:function(i,r){i&1&&(h(0,"div",0)(1,"mat-calendar",1),S("yearSelected",function(a){return r.datepicker._selectYear(a)})("monthSelected",function(a){return r.datepicker._selectMonth(a)})("viewChanged",function(a){return r.datepicker._viewChanged(a)})("_userSelection",function(a){return r._handleUserSelection(a)})("_userDragDrop",function(a){return r._handleUserDragDrop(a)}),p(),R(2,zbe,0,0,"ng-template",2),h(3,"button",3),S("focus",function(){return r._closeButtonFocused=!0})("blur",function(){return r._closeButtonFocused=!1})("click",function(){return r.datepicker.close()}),_(4),p()()),i&2&&(G("mat-datepicker-content-container-with-custom-header",r.datepicker.calendarHeaderComponent)("mat-datepicker-content-container-with-actions",r._actionsPortal),X("aria-modal",!0)("aria-labelledby",r._dialogLabelId??void 0),g(),it(r.datepicker.panelClass),y("id",r.datepicker.id)("startAt",r.datepicker.startAt)("startView",r.datepicker.startView)("minDate",r.datepicker._getMinDate())("maxDate",r.datepicker._getMaxDate())("dateFilter",r.datepicker._getDateFilter())("headerComponent",r.datepicker.calendarHeaderComponent)("selected",r._getSelected())("dateClass",r.datepicker.dateClass)("comparisonStart",r.comparisonStart)("comparisonEnd",r.comparisonEnd)("startDateAccessibleName",r.startDateAccessibleName)("endDateAccessibleName",r.endDateAccessibleName),g(),y("cdkPortalOutlet",r._actionsPortal),g(),G("cdk-visually-hidden",!r._closeButtonFocused),y("color",r.color||"primary"),g(),H(r._closeButtonText))},dependencies:[vk,rA,yr,kt],styles:[`@keyframes _mat-datepicker-content-dropdown-enter{from{opacity:0;transform:scaleY(0.8)}to{opacity:1;transform:none}}@keyframes _mat-datepicker-content-dialog-enter{from{opacity:0;transform:scale(0.8)}to{opacity:1;transform:none}}@keyframes _mat-datepicker-content-exit{from{opacity:1}to{opacity:0}}.mat-datepicker-content{display:block;background-color:var(--mat-datepicker-calendar-container-background-color, var(--mat-sys-surface-container-high));color:var(--mat-datepicker-calendar-container-text-color, var(--mat-sys-on-surface));box-shadow:var(--mat-datepicker-calendar-container-elevation-shadow, 0px 0px 0px 0px rgba(0, 0, 0, 0.2), 0px 0px 0px 0px rgba(0, 0, 0, 0.14), 0px 0px 0px 0px rgba(0, 0, 0, 0.12));border-radius:var(--mat-datepicker-calendar-container-shape, var(--mat-sys-corner-large))}.mat-datepicker-content.mat-datepicker-content-animations-enabled{animation:_mat-datepicker-content-dropdown-enter 120ms cubic-bezier(0, 0, 0.2, 1)}.mat-datepicker-content .mat-calendar{width:296px;height:354px}.mat-datepicker-content .mat-datepicker-content-container-with-custom-header .mat-calendar{height:auto}.mat-datepicker-content .mat-datepicker-close-button{position:absolute;top:100%;left:0;margin-top:8px}.mat-datepicker-content-animating .mat-datepicker-content .mat-datepicker-close-button{display:none}.mat-datepicker-content-container{display:flex;flex-direction:column;justify-content:space-between}.mat-datepicker-content-touch{display:block;max-height:80vh;box-shadow:var(--mat-datepicker-calendar-container-touch-elevation-shadow, 0px 0px 0px 0px rgba(0, 0, 0, 0.2), 0px 0px 0px 0px rgba(0, 0, 0, 0.14), 0px 0px 0px 0px rgba(0, 0, 0, 0.12));border-radius:var(--mat-datepicker-calendar-container-touch-shape, var(--mat-sys-corner-extra-large));position:relative;overflow:visible}.mat-datepicker-content-touch.mat-datepicker-content-animations-enabled{animation:_mat-datepicker-content-dialog-enter 150ms cubic-bezier(0, 0, 0.2, 1)}.mat-datepicker-content-touch .mat-datepicker-content-container{min-height:312px;max-height:788px;min-width:250px;max-width:750px}.mat-datepicker-content-touch .mat-calendar{width:100%;height:auto}.mat-datepicker-content-exit.mat-datepicker-content-animations-enabled{animation:_mat-datepicker-content-exit 100ms linear}@media all and (orientation: landscape){.mat-datepicker-content-touch .mat-datepicker-content-container{width:64vh;height:80vh}}@media all and (orientation: portrait){.mat-datepicker-content-touch .mat-datepicker-content-container{width:80vw;height:100vw}.mat-datepicker-content-touch .mat-datepicker-content-container-with-actions{height:115vw}} +`],encapsulation:2,changeDetection:0})}return t})(),IU=(()=>{class t{_injector=u(de);_viewContainerRef=u(nt);_dateAdapter=u(Li,{optional:!0});_dir=u(Vt,{optional:!0});_model=u(w_);_animationsDisabled=Ye();_scrollStrategy=u(LU);_inputStateChanges=ke.EMPTY;_document=u(ge);calendarHeaderComponent;get startAt(){return this._startAt||(this.datepickerInput?this.datepickerInput.getStartValue():null)}set startAt(e){this._startAt=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e))}_startAt;startView="month";get color(){return this._color||(this.datepickerInput?this.datepickerInput.getThemePalette():void 0)}set color(e){this._color=e}_color;touchUi=!1;get disabled(){return this._disabled===void 0&&this.datepickerInput?this.datepickerInput.disabled:!!this._disabled}set disabled(e){e!==this._disabled&&(this._disabled=e,this.stateChanges.next(void 0))}_disabled;xPosition="start";yPosition="below";restoreFocus=!0;yearSelected=new U;monthSelected=new U;viewChanged=new U(!0);dateClass;openedStream=new U;closedStream=new U;get panelClass(){return this._panelClass}set panelClass(e){this._panelClass=$L(e)}_panelClass;get opened(){return this._opened}set opened(e){e?this.open():this.close()}_opened=!1;id=u(Ze).getId("mat-datepicker-");_getMinDate(){return this.datepickerInput&&this.datepickerInput.min}_getMaxDate(){return this.datepickerInput&&this.datepickerInput.max}_getDateFilter(){return this.datepickerInput&&this.datepickerInput.dateFilter}_overlayRef;_componentRef;_focusedElementBeforeOpen=null;_backdropHarnessClass=`${this.id}-backdrop`;_actionsPortal;datepickerInput;stateChanges=new z;_changeDetectorRef=u(ye);constructor(){this._dateAdapter,this._model.selectionChanged.subscribe(()=>{this._changeDetectorRef.markForCheck()})}ngOnChanges(e){let i=e.xPosition||e.yPosition;if(i&&!i.firstChange&&this._overlayRef){let r=this._overlayRef.getConfig().positionStrategy;r instanceof _h&&(this._setConnectedPositions(r),this.opened&&this._overlayRef.updatePosition())}this.stateChanges.next(void 0)}ngOnDestroy(){this._destroyOverlay(),this.close(),this._inputStateChanges.unsubscribe(),this.stateChanges.complete()}select(e){this._model.add(e)}_selectYear(e){this.yearSelected.emit(e)}_selectMonth(e){this.monthSelected.emit(e)}_viewChanged(e){this.viewChanged.emit(e)}registerInput(e){return this.datepickerInput,this._inputStateChanges.unsubscribe(),this.datepickerInput=e,this._inputStateChanges=e.stateChanges.subscribe(()=>this.stateChanges.next(void 0)),this._model}registerActions(e){this._actionsPortal,this._actionsPortal=e,this._componentRef?.instance._assignActions(e,!0)}removeActions(e){e===this._actionsPortal&&(this._actionsPortal=null,this._componentRef?.instance._assignActions(null,!0))}open(){this._opened||this.disabled||this._componentRef?.instance._isAnimating||(this.datepickerInput,this._focusedElementBeforeOpen=_o(),this._openOverlay(),this._opened=!0,this.openedStream.emit())}close(){if(!this._opened||this._componentRef?.instance._isAnimating)return;let e=this.restoreFocus&&this._focusedElementBeforeOpen&&typeof this._focusedElementBeforeOpen.focus=="function",i=()=>{this._opened&&(this._opened=!1,this.closedStream.emit())};if(this._componentRef){let{instance:r,location:o}=this._componentRef;r._animationDone.pipe(lt(1)).subscribe(()=>{let a=this._document.activeElement;e&&(!a||a===this._document.activeElement||o.nativeElement.contains(a))&&this._focusedElementBeforeOpen.focus(),this._focusedElementBeforeOpen=null,this._destroyOverlay()}),r._startExitAnimation()}e?setTimeout(i):i()}_applyPendingSelection(){this._componentRef?.instance?._applyPendingSelection()}_forwardContentValues(e){e.datepicker=this,e.color=this.color,e._dialogLabelId=this.datepickerInput.getOverlayLabelId(),e._assignActions(this._actionsPortal,!1)}_openOverlay(){this._destroyOverlay();let e=this.touchUi,i=new Zr(VU,this._viewContainerRef),r=this._overlayRef=Nr(this._injector,new Fr({positionStrategy:e?this._getDialogStrategy():this._getDropdownStrategy(),hasBackdrop:!0,backdropClass:[e?"cdk-overlay-dark-backdrop":"mat-overlay-transparent-backdrop",this._backdropHarnessClass],direction:this._dir||"ltr",scrollStrategy:e?uc(this._injector):this._scrollStrategy(),panelClass:`mat-datepicker-${e?"dialog":"popup"}`,disableAnimations:this._animationsDisabled}));this._getCloseStream(r).subscribe(o=>{o&&o.preventDefault(),this.close()}),r.keydownEvents().subscribe(o=>{let a=o.keyCode;(a===38||a===40||a===37||a===39||a===33||a===34)&&o.preventDefault()}),this._componentRef=r.attach(i),this._forwardContentValues(this._componentRef.instance),e||pt(()=>{r.updatePosition()},{injector:this._injector})}_destroyOverlay(){this._overlayRef&&(this._overlayRef.dispose(),this._overlayRef=this._componentRef=null)}_getDialogStrategy(){return Ds(this._injector).centerHorizontally().centerVertically()}_getDropdownStrategy(){let e=Fa(this._injector,this.datepickerInput.getConnectedOverlayOrigin()).withTransformOriginOn(".mat-datepicker-content").withFlexibleDimensions(!1).withViewportMargin(8).withLockedPosition();return this._setConnectedPositions(e)}_setConnectedPositions(e){let i=this.xPosition==="end"?"end":"start",r=i==="start"?"end":"start",o=this.yPosition==="above"?"bottom":"top",a=o==="top"?"bottom":"top";return e.withPositions([{originX:i,originY:a,overlayX:i,overlayY:o},{originX:i,originY:o,overlayX:i,overlayY:a},{originX:r,originY:a,overlayX:r,overlayY:o},{originX:r,originY:o,overlayX:r,overlayY:a}])}_getCloseStream(e){let i=["ctrlKey","shiftKey","metaKey"];return Je(e.backdropClick(),e.detachments(),e.keydownEvents().pipe(ce(r=>r.keyCode===27&&!Ft(r)||this.datepickerInput&&Ft(r,"altKey")&&r.keyCode===38&&i.every(o=>!Ft(r,o)))))}static \u0275fac=function(i){return new(i||t)};static \u0275dir=F({type:t,inputs:{calendarHeaderComponent:"calendarHeaderComponent",startAt:"startAt",startView:"startView",color:"color",touchUi:[2,"touchUi","touchUi",V],disabled:[2,"disabled","disabled",V],xPosition:"xPosition",yPosition:"yPosition",restoreFocus:[2,"restoreFocus","restoreFocus",V],dateClass:"dateClass",panelClass:"panelClass",opened:[2,"opened","opened",V]},outputs:{yearSelected:"yearSelected",monthSelected:"monthSelected",viewChanged:"viewChanged",openedStream:"opened",closedStream:"closed"},features:[Ae]})}return t})(),BU=(()=>{class t extends IU{static \u0275fac=(()=>{let e;return function(r){return(e||(e=fe(t)))(r||t)}})();static \u0275cmp=E({type:t,selectors:[["mat-datepicker"]],exportAs:["matDatepicker"],features:[Ce([OU,{provide:IU,useExisting:t}]),le],decls:0,vars:0,template:function(i,r){},encapsulation:2,changeDetection:0})}return t})(),lp=class{target;targetElement;value;constructor(n,e){this.target=n,this.targetElement=e,this.value=this.target.value}},tve=(()=>{class t{_elementRef=u(q);_dateAdapter=u(Li,{optional:!0});_dateFormats=u(xs,{optional:!0});_isInitialized;get value(){return this._model?this._getValueFromModel(this._model.selection):this._pendingValue}set value(e){this._assignValueProgrammatically(e)}_model;get disabled(){return!!this._disabled||this._parentDisabled()}set disabled(e){let i=e,r=this._elementRef.nativeElement;this._disabled!==i&&(this._disabled=i,this.stateChanges.next(void 0)),i&&this._isInitialized&&r.blur&&r.blur()}_disabled;dateChange=new U;dateInput=new U;stateChanges=new z;_onTouched=()=>{};_validatorOnChange=()=>{};_cvaOnChange=()=>{};_valueChangesSubscription=ke.EMPTY;_localeSubscription=ke.EMPTY;_pendingValue;_parseValidator=()=>this._lastValueValid?null:{matDatepickerParse:{text:this._elementRef.nativeElement.value}};_filterValidator=e=>{let i=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e.value));return!i||this._matchesFilter(i)?null:{matDatepickerFilter:!0}};_minValidator=e=>{let i=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e.value)),r=this._getMinDate();return!r||!i||this._dateAdapter.compareDate(r,i)<=0?null:{matDatepickerMin:{min:r,actual:i}}};_maxValidator=e=>{let i=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e.value)),r=this._getMaxDate();return!r||!i||this._dateAdapter.compareDate(r,i)>=0?null:{matDatepickerMax:{max:r,actual:i}}};_getValidators(){return[this._parseValidator,this._minValidator,this._maxValidator,this._filterValidator]}_registerModel(e){this._model=e,this._valueChangesSubscription.unsubscribe(),this._pendingValue&&this._assignValue(this._pendingValue),this._valueChangesSubscription=this._model.selectionChanged.subscribe(i=>{if(this._shouldHandleChangeEvent(i)){let r=this._getValueFromModel(i.selection);this._lastValueValid=this._isValidValue(r),this._cvaOnChange(r),this._onTouched(),this._formatValue(r),this.dateInput.emit(new lp(this,this._elementRef.nativeElement)),this.dateChange.emit(new lp(this,this._elementRef.nativeElement))}})}_lastValueValid=!1;constructor(){this._localeSubscription=this._dateAdapter.localeChanges.subscribe(()=>{this._assignValueProgrammatically(this.value)})}ngAfterViewInit(){this._isInitialized=!0}ngOnChanges(e){ive(e,this._dateAdapter)&&this.stateChanges.next(void 0)}ngOnDestroy(){this._valueChangesSubscription.unsubscribe(),this._localeSubscription.unsubscribe(),this.stateChanges.complete()}registerOnValidatorChange(e){this._validatorOnChange=e}validate(e){return this._validator?this._validator(e):null}writeValue(e){this._assignValueProgrammatically(e)}registerOnChange(e){this._cvaOnChange=e}registerOnTouched(e){this._onTouched=e}setDisabledState(e){this.disabled=e}_onKeydown(e){let i=["ctrlKey","shiftKey","metaKey"];Ft(e,"altKey")&&e.keyCode===40&&i.every(o=>!Ft(e,o))&&!this._elementRef.nativeElement.readOnly&&(this._openPopup(),e.preventDefault())}_onInput(e){let i=e.target.value,r=this._lastValueValid,o=this._dateAdapter.parse(i,this._dateFormats.parse.dateInput);this._lastValueValid=this._isValidValue(o),o=this._dateAdapter.getValidDateOrNull(o);let a=!this._dateAdapter.sameDate(o,this.value);!o||a?this._cvaOnChange(o):(i&&!this.value&&this._cvaOnChange(o),r!==this._lastValueValid&&this._validatorOnChange()),a&&(this._assignValue(o),this.dateInput.emit(new lp(this,this._elementRef.nativeElement)))}_onChange(){this.dateChange.emit(new lp(this,this._elementRef.nativeElement))}_onBlur(){this.value&&this._formatValue(this.value),this._onTouched()}_formatValue(e){this._elementRef.nativeElement.value=e!=null?this._dateAdapter.format(e,this._dateFormats.display.dateInput):""}_assignValue(e){this._model?(this._assignValueToModel(e),this._pendingValue=null):this._pendingValue=e}_isValidValue(e){return!e||this._dateAdapter.isValid(e)}_parentDisabled(){return!1}_assignValueProgrammatically(e){e=this._dateAdapter.deserialize(e),this._lastValueValid=this._isValidValue(e),e=this._dateAdapter.getValidDateOrNull(e),this._assignValue(e),this._formatValue(e)}_matchesFilter(e){let i=this._getDateFilter();return!i||i(e)}static \u0275fac=function(i){return new(i||t)};static \u0275dir=F({type:t,inputs:{value:"value",disabled:[2,"disabled","disabled",V]},outputs:{dateChange:"dateChange",dateInput:"dateInput"},features:[Ae]})}return t})();function ive(t,n){let e=Object.keys(t);for(let i of e){let{previousValue:r,currentValue:o}=t[i];if(n.isDateInstance(r)&&n.isDateInstance(o)){if(!n.sameDate(r,o))return!0}else return!0}return!1}var nve={provide:tr,useExisting:Kt(()=>Cw),multi:!0},rve={provide:ea,useExisting:Kt(()=>Cw),multi:!0},Cw=(()=>{class t extends tve{_formField=u(Xo,{optional:!0});_closedSubscription=ke.EMPTY;_openedSubscription=ke.EMPTY;set matDatepicker(e){e&&(this._datepicker=e,this._ariaOwns.set(e.opened?e.id:null),this._closedSubscription=e.closedStream.subscribe(()=>{this._onTouched(),this._ariaOwns.set(null)}),this._openedSubscription=e.openedStream.subscribe(()=>{this._ariaOwns.set(e.id)}),this._registerModel(e.registerInput(this)))}_datepicker;_ariaOwns=he(null);get min(){return this._min}set min(e){let i=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e));this._dateAdapter.sameDate(i,this._min)||(this._min=i,this._validatorOnChange())}_min;get max(){return this._max}set max(e){let i=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e));this._dateAdapter.sameDate(i,this._max)||(this._max=i,this._validatorOnChange())}_max;get dateFilter(){return this._dateFilter}set dateFilter(e){let i=this._matchesFilter(this.value);this._dateFilter=e,this._matchesFilter(this.value)!==i&&this._validatorOnChange()}_dateFilter;_validator;constructor(){super(),this._validator=Le.compose(super._getValidators())}getConnectedOverlayOrigin(){return this._formField?this._formField.getConnectedOverlayOrigin():this._elementRef}getOverlayLabelId(){return this._formField?this._formField.getLabelId():this._elementRef.nativeElement.getAttribute("aria-labelledby")}getThemePalette(){return this._formField?this._formField.color:void 0}getStartValue(){return this.value}ngOnDestroy(){super.ngOnDestroy(),this._closedSubscription.unsubscribe(),this._openedSubscription.unsubscribe()}_openPopup(){this._datepicker&&this._datepicker.open()}_getValueFromModel(e){return e}_assignValueToModel(e){this._model&&this._model.updateSelection(e,this)}_getMinDate(){return this._min}_getMaxDate(){return this._max}_getDateFilter(){return this._dateFilter}_shouldHandleChangeEvent(e){return e.source!==this}static \u0275fac=function(i){return new(i||t)};static \u0275dir=F({type:t,selectors:[["input","matDatepicker",""]],hostAttrs:[1,"mat-datepicker-input"],hostVars:6,hostBindings:function(i,r){i&1&&S("input",function(a){return r._onInput(a)})("change",function(){return r._onChange()})("blur",function(){return r._onBlur()})("keydown",function(a){return r._onKeydown(a)}),i&2&&(si("disabled",r.disabled),X("aria-haspopup",r._datepicker?"dialog":null)("aria-owns",r._ariaOwns())("min",r.min?r._dateAdapter.toIso8601(r.min):null)("max",r.max?r._dateAdapter.toIso8601(r.max):null)("data-mat-calendar",r._datepicker?r._datepicker.id:null))},inputs:{matDatepicker:"matDatepicker",min:"min",max:"max",dateFilter:[0,"matDatepickerFilter","dateFilter"]},exportAs:["matDatepickerInput"],features:[Ce([nve,rve,{provide:wh,useExisting:t}]),le]})}return t})(),ove=(()=>{class t{static \u0275fac=function(i){return new(i||t)};static \u0275dir=F({type:t,selectors:[["","matDatepickerToggleIcon",""]]})}return t})(),oA=(()=>{class t{_intl=u(dp);_changeDetectorRef=u(ye);_stateChanges=ke.EMPTY;datepicker;tabIndex;ariaLabel;get disabled(){return this._disabled===void 0&&this.datepicker?this.datepicker.disabled:!!this._disabled}set disabled(e){this._disabled=e}_disabled;disableRipple;_customIcon;_button;constructor(){let e=u(new Ii("tabindex"),{optional:!0}),i=Number(e);this.tabIndex=i||i===0?i:null}ngOnChanges(e){e.datepicker&&this._watchStateChanges()}ngOnDestroy(){this._stateChanges.unsubscribe()}ngAfterContentInit(){this._watchStateChanges()}_open(e){this.datepicker&&!this.disabled&&(this.datepicker.open(),e.stopPropagation())}_watchStateChanges(){let e=this.datepicker?this.datepicker.stateChanges:Q(),i=this.datepicker&&this.datepicker.datepickerInput?this.datepicker.datepickerInput.stateChanges:Q(),r=this.datepicker?Je(this.datepicker.openedStream,this.datepicker.closedStream):Q();this._stateChanges.unsubscribe(),this._stateChanges=Je(this._intl.changes,e,i,r).subscribe(()=>this._changeDetectorRef.markForCheck())}static \u0275fac=function(i){return new(i||t)};static \u0275cmp=E({type:t,selectors:[["mat-datepicker-toggle"]],contentQueries:function(i,r,o){if(i&1&&xe(o,ove,5),i&2){let a;B(a=j())&&(r._customIcon=a.first)}},viewQuery:function(i,r){if(i&1&&ie(Ube,5),i&2){let o;B(o=j())&&(r._button=o.first)}},hostAttrs:[1,"mat-datepicker-toggle"],hostVars:8,hostBindings:function(i,r){i&1&&S("click",function(a){return r._open(a)}),i&2&&(X("tabindex",null)("data-mat-calendar",r.datepicker?r.datepicker.id:null),G("mat-datepicker-toggle-active",r.datepicker&&r.datepicker.opened)("mat-accent",r.datepicker&&r.datepicker.color==="accent")("mat-warn",r.datepicker&&r.datepicker.color==="warn"))},inputs:{datepicker:[0,"for","datepicker"],tabIndex:"tabIndex",ariaLabel:[0,"aria-label","ariaLabel"],disabled:[2,"disabled","disabled",V],disableRipple:"disableRipple"},exportAs:["matDatepickerToggle"],features:[Ae],ngContentSelectors:Wbe,decls:4,vars:7,consts:[["button",""],["matIconButton","","type","button",3,"tabIndex","disabled","disableRipple"],["viewBox","0 0 24 24","width","24px","height","24px","fill","currentColor","focusable","false","aria-hidden","true",1,"mat-datepicker-toggle-default-icon"],["d","M19 3h-1V1h-2v2H8V1H6v2H5c-1.11 0-1.99.9-1.99 2L3 19c0 1.1.89 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm0 16H5V8h14v11zM7 10h5v5H7z"]],template:function(i,r){i&1&&(Me($be),h(0,"button",1,0),N(2,Gbe,2,0,":svg:svg",2),oe(3),p()),i&2&&(y("tabIndex",r.disabled?-1:r.tabIndex)("disabled",r.disabled)("disableRipple",r.disableRipple),X("aria-haspopup",r.datepicker?"dialog":null)("aria-label",r.ariaLabel||r._intl.openCalendarLabel)("aria-expanded",r.datepicker?r.datepicker.opened:null),g(2),L(r._customIcon?-1:2))},dependencies:[ti],styles:[`.mat-datepicker-toggle{pointer-events:auto;color:var(--mat-datepicker-toggle-icon-color, var(--mat-sys-on-surface-variant))}.mat-datepicker-toggle button{color:inherit}.mat-datepicker-toggle-active{color:var(--mat-datepicker-toggle-active-state-icon-color, var(--mat-sys-primary))}@media(forced-colors: active){.mat-datepicker-toggle-default-icon{color:CanvasText}} +`],encapsulation:2,changeDetection:0})}return t})();var jU=(()=>{class t{static \u0275fac=function(i){return new(i||t)};static \u0275mod=ee({type:t});static \u0275inj=J({providers:[dp,eve],imports:[ze,er,ll,Co,we,VU,oA,NU,vr]})}return t})();function sve(t,n){t&1&&(h(0,"div",1),k(1,"mat-spinner"),p())}function lve(t,n){t&1&&(h(0,"mat-error"),_(1," Employee number is required "),p())}function cve(t,n){t&1&&(h(0,"mat-error"),_(1," First name is required "),p())}function dve(t,n){t&1&&(h(0,"mat-error"),_(1," Last name is required "),p())}function uve(t,n){t&1&&(h(0,"mat-error"),_(1," Date of birth is required "),p())}function mve(t,n){t&1&&(h(0,"mat-error"),_(1," Email is required "),p())}function hve(t,n){t&1&&(h(0,"mat-error"),_(1," Please enter a valid email "),p())}function pve(t,n){t&1&&(h(0,"mat-error"),_(1," Phone number is required "),p())}function fve(t,n){if(t&1&&(h(0,"mat-option",25),_(1),p()),t&2){let e=n.$implicit;y("value",e.value),g(),ve(" ",e.label," ")}}function gve(t,n){t&1&&(h(0,"mat-error"),_(1," Gender is required "),p())}function _ve(t,n){if(t&1&&(h(0,"mat-option",25),_(1),p()),t&2){let e=n.$implicit;y("value",e.id),g(),ve(" ",e.name," ")}}function bve(t,n){t&1&&(h(0,"mat-error"),_(1," Department is required "),p())}function vve(t,n){if(t&1&&(h(0,"mat-option",25),_(1),p()),t&2){let e=n.$implicit;y("value",e.id),g(),ve(" ",e.positionTitle," ")}}function yve(t,n){t&1&&(h(0,"mat-error"),_(1," Position is required "),p())}function xve(t,n){t&1&&(h(0,"mat-error"),_(1," Salary is required "),p())}function Cve(t,n){t&1&&(h(0,"mat-error"),_(1," Salary must be greater than 0 "),p())}var aA=(()=>{let n=class n{constructor(){this.fb=u(eo),this.router=u(Re),this.route=u(wi),this.snackBar=u(di),this.employeeService=u(ap),this.positionService=u(Bc),this.departmentService=u(Vs),this.loading=!1,this.isEditMode=!1,this.positions=[],this.departments=[],this.genderOptions=[{value:Ou.Male,label:"Male"},{value:Ou.Female,label:"Female"}]}ngOnInit(){this.initForm(),this.loadDependencies(),this.checkEditMode()}initForm(){this.employeeForm=this.fb.group({employeeNumber:["",[Le.required,Le.maxLength(50)]],prefix:["",Le.maxLength(10)],firstName:["",[Le.required,Le.maxLength(100)]],middleName:["",Le.maxLength(100)],lastName:["",[Le.required,Le.maxLength(100)]],birthday:[null,Le.required],gender:[Ou.Male,Le.required],email:["",[Le.required,Le.email,Le.maxLength(255)]],phone:["",[Le.required,Le.maxLength(20)]],salary:[0,[Le.required,Le.min(0)]],positionId:["",Le.required],departmentId:["",Le.required]})}loadDependencies(){this.departmentService.getAll().subscribe({next:i=>{this.departments=i},error:i=>{console.error("Error loading departments:",i),this.showMessage("Error loading departments")}}),this.positionService.getAll().subscribe({next:i=>{this.positions=i},error:i=>{console.error("Error loading positions:",i),this.showMessage("Error loading positions")}})}checkEditMode(){this.employeeId=this.route.snapshot.paramMap.get("id")||void 0,this.isEditMode=!!this.employeeId,this.isEditMode&&this.employeeId&&this.loadEmployee(this.employeeId)}loadEmployee(i){this.loading=!0,this.employeeService.getById(i).subscribe({next:r=>{this.employeeForm.patchValue({employeeNumber:r.employeeNumber,prefix:r.prefix,firstName:r.firstName,middleName:r.middleName,lastName:r.lastName,birthday:r.birthday||r.dateOfBirth,gender:r.gender,email:r.email,phone:r.phone||r.phoneNumber,salary:r.salary,positionId:r.positionId,departmentId:r.departmentId}),this.loading=!1},error:r=>{console.error("Error loading employee:",r),this.showMessage("Error loading employee"),this.loading=!1}})}onSubmit(){if(this.employeeForm.invalid){this.employeeForm.markAllAsTouched();return}if(this.loading=!0,this.isEditMode&&this.employeeId){let i=M({id:this.employeeId},this.employeeForm.value);this.employeeService.updateEmployee(i).subscribe({next:()=>{this.showMessage("Employee updated successfully"),this.router.navigate(["/employees",this.employeeId])},error:r=>{console.error("Error updating employee:",r),this.showMessage("Error updating employee"),this.loading=!1}})}else{let i=this.employeeForm.value;this.employeeService.createEmployee(i).subscribe({next:r=>{console.log("Employee created - Response:",r),console.log("Employee ID:",r?.id),this.showMessage("Employee created successfully"),r?.id?(console.log("Navigating to detail page:","/employees/"+r.id),this.router.navigate(["/employees",r.id])):(console.warn("No employee ID returned, navigating to list page"),this.router.navigate(["/employees"])),this.loading=!1},error:r=>{console.error("Error creating employee:",r),this.showMessage("Error creating employee"),this.loading=!1}})}}onCancel(){this.router.navigate(["/employees"])}showMessage(i){this.snackBar.open(i,"Close",{duration:3e3,horizontalPosition:"end",verticalPosition:"top"})}getFormTitle(){return this.isEditMode?"Edit Employee":"Create Employee"}};n.\u0275fac=function(r){return new(r||n)},n.\u0275cmp=E({type:n,selectors:[["app-employee-form"]],decls:94,vars:22,consts:[["dobPicker",""],[1,"loading-overlay"],[3,"ngSubmit","formGroup"],[1,"form-section"],[1,"form-row"],["appearance","outline"],["matInput","","formControlName","employeeNumber"],[4,"ngIf"],["matInput","","formControlName","prefix","placeholder","Mr., Mrs., Dr."],["matInput","","formControlName","firstName"],["matInput","","formControlName","middleName"],["matInput","","formControlName","lastName"],["matInput","","formControlName","birthday",3,"matDatepicker"],["matIconSuffix","",3,"for"],["matInput","","type","email","formControlName","email"],["matInput","","formControlName","phone"],["formControlName","gender"],[3,"value",4,"ngFor","ngForOf"],["formControlName","departmentId"],["formControlName","positionId"],["matInput","","type","number","formControlName","salary"],["matTextPrefix",""],[1,"form-actions"],["type","button","mat-stroked-button","",3,"click"],["type","submit","mat-raised-button","","color","primary",3,"disabled"],[3,"value"]],template:function(r,o){if(r&1){let a=Y();k(0,"page-header"),h(1,"mat-card")(2,"mat-card-header")(3,"mat-card-title"),_(4),p()(),h(5,"mat-card-content"),N(6,sve,2,0,"div",1),h(7,"form",2),S("ngSubmit",function(){return I(a),A(o.onSubmit())}),h(8,"div",3)(9,"h3"),_(10,"Personal Information"),p(),h(11,"div",4)(12,"mat-form-field",5)(13,"mat-label"),_(14,"Employee Number"),p(),k(15,"input",6),R(16,lve,2,0,"mat-error",7),p(),h(17,"mat-form-field",5)(18,"mat-label"),_(19,"Prefix"),p(),k(20,"input",8),p()(),h(21,"div",4)(22,"mat-form-field",5)(23,"mat-label"),_(24,"First Name"),p(),k(25,"input",9),R(26,cve,2,0,"mat-error",7),p(),h(27,"mat-form-field",5)(28,"mat-label"),_(29,"Middle Name"),p(),k(30,"input",10),p()(),h(31,"div",4)(32,"mat-form-field",5)(33,"mat-label"),_(34,"Last Name"),p(),k(35,"input",11),R(36,dve,2,0,"mat-error",7),p(),h(37,"mat-form-field",5)(38,"mat-label"),_(39,"Date of Birth"),p(),k(40,"input",12)(41,"mat-datepicker-toggle",13)(42,"mat-datepicker",null,0),R(44,uve,2,0,"mat-error",7),p()(),h(45,"div",4)(46,"mat-form-field",5)(47,"mat-label"),_(48,"Email"),p(),k(49,"input",14),R(50,mve,2,0,"mat-error",7)(51,hve,2,0,"mat-error",7),p(),h(52,"mat-form-field",5)(53,"mat-label"),_(54,"Phone Number"),p(),k(55,"input",15),R(56,pve,2,0,"mat-error",7),p()(),h(57,"div",4)(58,"mat-form-field",5)(59,"mat-label"),_(60,"Gender"),p(),h(61,"mat-select",16),R(62,fve,2,2,"mat-option",17),p(),R(63,gve,2,0,"mat-error",7),p()()(),h(64,"div",3)(65,"h3"),_(66,"Employment Information"),p(),h(67,"div",4)(68,"mat-form-field",5)(69,"mat-label"),_(70,"Department"),p(),h(71,"mat-select",18),R(72,_ve,2,2,"mat-option",17),p(),R(73,bve,2,0,"mat-error",7),p(),h(74,"mat-form-field",5)(75,"mat-label"),_(76,"Position"),p(),h(77,"mat-select",19),R(78,vve,2,2,"mat-option",17),p(),R(79,yve,2,0,"mat-error",7),p()(),h(80,"div",4)(81,"mat-form-field",5)(82,"mat-label"),_(83,"Salary"),p(),k(84,"input",20),h(85,"span",21),_(86,"$\xA0"),p(),R(87,xve,2,0,"mat-error",7)(88,Cve,2,0,"mat-error",7),p()()(),h(89,"div",22)(90,"button",23),S("click",function(){return I(a),A(o.onCancel())}),_(91," Cancel "),p(),h(92,"button",24),_(93),p()()()()()}if(r&2){let a,s,l,c,d,m,f,b,v,w,x,D,P=Se(43);g(4),H(o.getFormTitle()),g(2),L(o.loading?6:-1),g(),y("formGroup",o.employeeForm),g(9),y("ngIf",(a=o.employeeForm.get("employeeNumber"))==null?null:a.hasError("required")),g(10),y("ngIf",(s=o.employeeForm.get("firstName"))==null?null:s.hasError("required")),g(10),y("ngIf",(l=o.employeeForm.get("lastName"))==null?null:l.hasError("required")),g(4),y("matDatepicker",P),g(),y("for",P),g(3),y("ngIf",(c=o.employeeForm.get("birthday"))==null?null:c.hasError("required")),g(6),y("ngIf",(d=o.employeeForm.get("email"))==null?null:d.hasError("required")),g(),y("ngIf",(m=o.employeeForm.get("email"))==null?null:m.hasError("email")),g(5),y("ngIf",(f=o.employeeForm.get("phone"))==null?null:f.hasError("required")),g(6),y("ngForOf",o.genderOptions),g(),y("ngIf",(b=o.employeeForm.get("gender"))==null?null:b.hasError("required")),g(9),y("ngForOf",o.departments),g(),y("ngIf",(v=o.employeeForm.get("departmentId"))==null?null:v.hasError("required")),g(5),y("ngForOf",o.positions),g(),y("ngIf",(w=o.employeeForm.get("positionId"))==null?null:w.hasError("required")),g(8),y("ngIf",(x=o.employeeForm.get("salary"))==null?null:x.hasError("required")),g(),y("ngIf",(D=o.employeeForm.get("salary"))==null?null:D.hasError("min")),g(4),y("disabled",o.loading),g(),ve(" ",o.isEditMode?"Update":"Create"," ")}},dependencies:[gt,qr,li,zn,Jr,Qi,cu,ei,Xr,Ki,Lr,ze,kt,$t,zt,Ut,Jt,Xt,$i,Oi,sn,xo,nu,ru,rr,hn,fc,Na,xn,jU,BU,Cw,oA,ZL,Si,ki,pi,ni],styles:["mat-card[_ngcontent-%COMP%]{margin:16px;max-width:1200px}mat-card-header[_ngcontent-%COMP%]{padding:16px;border-bottom:1px solid rgba(0,0,0,.12);margin-bottom:24px}mat-card-header[_ngcontent-%COMP%] mat-card-title[_ngcontent-%COMP%]{font-size:20px;font-weight:500;margin:0}mat-card-content[_ngcontent-%COMP%]{padding:24px;position:relative}.loading-overlay[_ngcontent-%COMP%]{position:absolute;inset:0;background-color:#fffc;display:flex;align-items:center;justify-content:center;z-index:1000}form[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:24px}.form-section[_ngcontent-%COMP%] h3[_ngcontent-%COMP%]{font-size:16px;font-weight:500;margin:0 0 16px;color:#000000de}.form-row[_ngcontent-%COMP%]{display:grid;grid-template-columns:1fr 1fr;gap:16px;margin-bottom:8px}@media (max-width: 768px){.form-row[_ngcontent-%COMP%]{grid-template-columns:1fr}}mat-form-field[_ngcontent-%COMP%]{width:100%}mat-form-field.full-width[_ngcontent-%COMP%]{grid-column:1/-1}.form-actions[_ngcontent-%COMP%]{display:flex;justify-content:flex-end;gap:12px;margin-top:24px;padding-top:24px;border-top:1px solid rgba(0,0,0,.12)}.form-actions[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{min-width:120px}"]});let t=n;return t})();var HU=()=>["HRAdmin","Manager"],wve=()=>[5,10,25,50,100],Dve=()=>["HRAdmin"];function Eve(t,n){if(t&1){let e=Y();h(0,"button",14),S("click",function(){I(e);let r=C();return A(r.createDepartment())}),h(1,"mat-icon"),_(2,"add"),p(),_(3," Add Department "),p()}}function Mve(t,n){if(t&1&&(h(0,"mat-option",15),_(1),p()),t&2){let e=n.$implicit;y("value",e),g(),ve(" ",e," ")}}function kve(t,n){t&1&&(h(0,"div",16),k(1,"mat-spinner"),p())}function Sve(t,n){t&1&&(h(0,"th",25),_(1,"Name"),p())}function Tve(t,n){if(t&1&&(h(0,"td",26),_(1),p()),t&2){let e=n.$implicit;g(),H(e.name)}}function Ive(t,n){t&1&&(h(0,"th",25),_(1,"Actions"),p())}function Ave(t,n){if(t&1){let e=Y();h(0,"button",31),S("click",function(){I(e);let r=C().$implicit,o=C(2);return A(o.editDepartment(r))}),h(1,"mat-icon"),_(2,"edit"),p()()}}function Ove(t,n){if(t&1){let e=Y();h(0,"button",32),S("click",function(){I(e);let r=C().$implicit,o=C(2);return A(o.deleteDepartment(r))}),h(1,"mat-icon"),_(2,"delete"),p()()}}function Rve(t,n){if(t&1){let e=Y();h(0,"td",26)(1,"div",27)(2,"button",28),S("click",function(){let r=I(e).$implicit,o=C(2);return A(o.viewDepartment(r))}),h(3,"mat-icon"),_(4,"visibility"),p()(),R(5,Ave,3,0,"button",29)(6,Ove,3,0,"button",30),p()()}t&2&&(g(5),y("appHasRole",at(2,HU)),g(),y("appHasRole",at(3,Dve)))}function Pve(t,n){t&1&&k(0,"tr",33)}function Fve(t,n){t&1&&k(0,"tr",34)}function Nve(t,n){if(t&1&&(h(0,"tr",35)(1,"td",36)(2,"div",37)(3,"mat-icon"),_(4,"info"),p(),h(5,"p"),_(6,"No departments found"),p()()()()),t&2){let e=C(2);g(),X("colspan",e.displayedColumns.length)}}function Lve(t,n){if(t&1&&(h(0,"table",17),jt(1,18),R(2,Sve,2,0,"th",19)(3,Tve,2,1,"td",20),Lt(),jt(4,21),R(5,Ive,2,0,"th",19)(6,Rve,7,4,"td",20),Lt(),R(7,Pve,1,0,"tr",22)(8,Fve,1,0,"tr",23)(9,Nve,7,1,"tr",24),p()),t&2){let e=C();y("dataSource",e.departments),g(7),y("matHeaderRowDef",e.displayedColumns),g(),y("matRowDefColumns",e.displayedColumns),g(),y("ngIf",e.departments.length===0)}}var zU=(()=>{let n=class n{constructor(){this.departmentService=u(Vs),this.authService=u(Tt),this.router=u(Re),this.fb=u(eo),this.snackBar=u(di),this.dialog=u(En),this.departments=[],this.loading=!1,this.totalCount=0,this.pageSize=10,this.pageNumber=1,this.destroy$=new z,this.displayedColumns=["name","actions"]}ngOnInit(){this.initSearchForm(),this.setupAutocomplete(),this.setupAutoSubmit(),this.loadDepartments()}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete()}initSearchForm(){this.searchForm=this.fb.group({Name:[""]})}setupAutocomplete(){this.filteredNames$=this.searchForm.get("Name").valueChanges.pipe(He(""),Rt(300),Sn(),$e(i=>this.getAutocompleteOptions("Name",i)))}setupAutoSubmit(){this.searchForm.valueChanges.pipe(Rt(500),Sn((i,r)=>JSON.stringify(i)===JSON.stringify(r)),Te(this.destroy$)).subscribe(()=>{this.pageNumber=1,this.loadDepartments()})}getAutocompleteOptions(i,r){if(!r||r.length<2)return Q([]);let o={PageNumber:1,PageSize:10,[i]:r};return this.departmentService.getAllPaged(o).pipe(se(a=>a.value.map(l=>l.name).filter((l,c,d)=>l&&d.indexOf(l)===c)),fi(()=>Q([])))}loadDepartments(){this.loading=!0;let i=M({PageNumber:this.pageNumber,PageSize:this.pageSize},this.searchForm.value);Object.keys(i).forEach(r=>{(i[r]===""||i[r]===null||i[r]===void 0)&&delete i[r]}),this.departmentService.getAllPaged(i).subscribe({next:r=>{this.departments=r.value,this.totalCount=r.recordsTotal,this.loading=!1},error:r=>{console.error("Error loading departments:",r),this.loading=!1}})}onClearSearch(){this.searchForm.reset(),this.pageNumber=1,this.paginator&&(this.paginator.pageIndex=0),this.loadDepartments()}onPageChange(i){this.pageSize=i.pageSize,this.pageNumber=i.pageIndex+1,this.loadDepartments()}viewDepartment(i){this.router.navigate(["/departments",i.id])}editDepartment(i){this.router.navigate(["/departments","edit",i.id])}deleteDepartment(i){this.dialog.open(Er,{width:"400px",data:{title:"Delete Department",message:`Are you sure you want to delete "${i.name}"? This action cannot be undone.`,confirmText:"Delete",cancelText:"Cancel"}}).afterClosed().subscribe(o=>{o&&this.departmentService.delete(i.id).subscribe({next:()=>{this.showMessage(`"${i.name}" has been deleted.`),this.loadDepartments()},error:a=>{console.error("Error deleting department:",a),this.showMessage("Failed to delete department. Please try again.")}})})}createDepartment(){this.router.navigate(["/departments","create"])}canEdit(){return this.authService.isHRAdmin()||this.authService.isManager()}canDelete(){return this.authService.isHRAdmin()}canCreate(){return this.authService.isHRAdmin()||this.authService.isManager()}showMessage(i){this.snackBar.open(i,"Close",{duration:3e3,horizontalPosition:"end",verticalPosition:"top"})}};n.\u0275fac=function(r){return new(r||n)},n.\u0275cmp=E({type:n,selectors:[["app-department-list"]],viewQuery:function(r,o){if(r&1&&ie(ir,5),r&2){let a;B(a=j())&&(o.paginator=a.first)}},decls:27,vars:14,consts:[["autoName","matAutocomplete"],[1,"flex-spacer"],["mat-raised-button","","color","primary",3,"click",4,"appHasRole"],[1,"search-form",3,"formGroup"],[1,"search-row"],["appearance","outline"],["matInput","","formControlName","Name",3,"matAutocomplete"],[3,"value",4,"ngFor","ngForOf"],[1,"search-buttons"],["mat-raised-button","","color","accent","type","button",3,"click"],[1,"table-container"],["class","loading-spinner",4,"ngIf"],["mat-table","","class","department-table",3,"dataSource",4,"ngIf"],["showFirstLastButtons","",3,"page","length","pageSize","pageSizeOptions","pageIndex"],["mat-raised-button","","color","primary",3,"click"],[3,"value"],[1,"loading-spinner"],["mat-table","",1,"department-table",3,"dataSource"],["matColumnDef","name"],["mat-header-cell","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","actions"],["mat-header-row","",4,"matHeaderRowDef"],["mat-row","",4,"matRowDef","matRowDefColumns"],["class","mat-row",4,"ngIf"],["mat-header-cell",""],["mat-cell",""],[1,"action-buttons"],["mat-icon-button","","color","primary","matTooltip","View Details",3,"click"],["mat-icon-button","","color","accent","matTooltip","Edit Department",3,"click",4,"appHasRole"],["mat-icon-button","","color","warn","matTooltip","Delete Department",3,"click",4,"appHasRole"],["mat-icon-button","","color","accent","matTooltip","Edit Department",3,"click"],["mat-icon-button","","color","warn","matTooltip","Delete Department",3,"click"],["mat-header-row",""],["mat-row",""],[1,"mat-row"],[1,"mat-cell"],[1,"no-data"]],template:function(r,o){if(r&1){let a=Y();k(0,"page-header"),h(1,"mat-card")(2,"mat-card-header")(3,"mat-card-title"),_(4,"Department Directory"),p(),k(5,"div",1),R(6,Eve,4,0,"button",2),p(),h(7,"mat-card-content")(8,"form",3)(9,"div",4)(10,"mat-form-field",5)(11,"mat-label"),_(12,"Department Name"),p(),k(13,"input",6),h(14,"mat-autocomplete",null,0),R(16,Mve,2,2,"mat-option",7),me(17,"async"),p()(),h(18,"div",8)(19,"button",9),S("click",function(){return I(a),A(o.onClearSearch())}),h(20,"mat-icon"),_(21,"clear"),p(),_(22," Clear Filters "),p()()()(),h(23,"div",10),R(24,kve,2,0,"div",11)(25,Lve,10,4,"table",12),p(),h(26,"mat-paginator",13),S("page",function(l){return I(a),A(o.onPageChange(l))}),p()()()}if(r&2){let a=Se(15);g(6),y("appHasRole",at(12,HU)),g(2),y("formGroup",o.searchForm),g(5),y("matAutocomplete",a),g(3),y("ngForOf",Oe(17,10,o.filteredNames$)),g(8),y("ngIf",o.loading),g(),y("ngIf",!o.loading),g(),y("length",o.totalCount)("pageSize",o.pageSize)("pageSizeOptions",at(13,wve))("pageIndex",o.pageNumber-1)}},dependencies:[gt,qr,li,zn,Jr,Qi,ei,Xr,Ki,Lr,ze,kt,ti,$t,zt,Ut,Jt,Xt,ot,mt,rr,hn,Oi,sn,$i,Zc,Hc,Uc,qc,$c,zc,Yc,Wc,Gc,Qc,Kc,_c,ir,Si,ki,Br,Eo,vw,bw,xn,y_,pi,Mn,ni,Un,rn],styles:["mat-card[_ngcontent-%COMP%]{margin:16px}mat-card-header[_ngcontent-%COMP%]{display:flex;align-items:center;margin-bottom:16px;padding:16px;border-bottom:1px solid rgba(0,0,0,.12)}mat-card-header[_ngcontent-%COMP%] mat-card-title[_ngcontent-%COMP%]{font-size:20px;font-weight:500;margin:0}mat-card-header[_ngcontent-%COMP%] .flex-spacer[_ngcontent-%COMP%]{flex:1 1 auto}mat-card-header[_ngcontent-%COMP%] button[_ngcontent-%COMP%] mat-icon[_ngcontent-%COMP%]{margin-right:4px}mat-card-content[_ngcontent-%COMP%]{padding:0}.search-form[_ngcontent-%COMP%]{padding:16px;background-color:#f5f5f5;margin-bottom:0}.search-form[_ngcontent-%COMP%] .search-row[_ngcontent-%COMP%]{display:grid;grid-template-columns:1fr auto;gap:16px;align-items:start}.search-form[_ngcontent-%COMP%] .search-row[_ngcontent-%COMP%] mat-form-field[_ngcontent-%COMP%]{width:100%}.search-form[_ngcontent-%COMP%] .search-row[_ngcontent-%COMP%] .search-buttons[_ngcontent-%COMP%]{display:flex;gap:8px;align-items:center}.search-form[_ngcontent-%COMP%] .search-row[_ngcontent-%COMP%] .search-buttons[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{white-space:nowrap}.search-form[_ngcontent-%COMP%] .search-row[_ngcontent-%COMP%] .search-buttons[_ngcontent-%COMP%] button[_ngcontent-%COMP%] mat-icon[_ngcontent-%COMP%]{margin-right:4px}.table-container[_ngcontent-%COMP%]{position:relative;min-height:300px;overflow-x:auto}.loading-spinner[_ngcontent-%COMP%]{display:flex;justify-content:center;align-items:center;min-height:300px}.department-table[_ngcontent-%COMP%]{width:100%}.department-table[_ngcontent-%COMP%] th[_ngcontent-%COMP%]{font-weight:600;font-size:14px;color:#000000de}.department-table[_ngcontent-%COMP%] td[_ngcontent-%COMP%]{font-size:14px;color:#000000de}.department-table[_ngcontent-%COMP%] .mat-column-name[_ngcontent-%COMP%]{min-width:200px}.department-table[_ngcontent-%COMP%] .mat-column-actions[_ngcontent-%COMP%]{width:120px;text-align:right}.department-table[_ngcontent-%COMP%] .mat-column-actions[_ngcontent-%COMP%] .action-buttons[_ngcontent-%COMP%]{display:flex;justify-content:flex-end;align-items:center;gap:4px}.no-data[_ngcontent-%COMP%]{display:flex;flex-direction:column;align-items:center;justify-content:center;padding:48px 16px;color:#0000008a}.no-data[_ngcontent-%COMP%] mat-icon[_ngcontent-%COMP%]{font-size:48px;width:48px;height:48px;margin-bottom:16px}.no-data[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{margin:0;font-size:16px}mat-paginator[_ngcontent-%COMP%]{border-top:1px solid rgba(0,0,0,.12)}"]});let t=n;return t})();var Vve=()=>["HRAdmin","Manager"],Bve=()=>["HRAdmin"];function jve(t,n){if(t&1){let e=Y();h(0,"button",10),S("click",function(){I(e);let r=C(2);return A(r.editDepartment())}),h(1,"mat-icon"),_(2,"edit"),p(),_(3," Edit "),p()}}function Hve(t,n){if(t&1){let e=Y();h(0,"button",11),S("click",function(){I(e);let r=C(2);return A(r.deleteDepartment())}),h(1,"mat-icon"),_(2,"delete"),p(),_(3," Delete "),p()}}function zve(t,n){if(t&1&&(h(0,"mat-list-item")(1,"span",7),_(2,"Created At"),p(),h(3,"span",8),_(4),me(5,"date"),p()()),t&2){let e=C(3);g(4),H(Ni(5,1,e.department.createdAt,"medium"))}}function Uve(t,n){if(t&1&&(h(0,"mat-list-item")(1,"span",7),_(2,"Last Modified At"),p(),h(3,"span",8),_(4),me(5,"date"),p()()),t&2){let e=C(3);g(4),H(Ni(5,1,e.department.lastModifiedAt,"medium"))}}function $ve(t,n){if(t&1&&(h(0,"div",6)(1,"h3"),_(2,"Audit Information"),p(),k(3,"mat-divider"),h(4,"mat-list"),R(5,zve,6,4,"mat-list-item",0)(6,Uve,6,4,"mat-list-item",0),p()()),t&2){let e=C(2);g(5),y("ngIf",e.department.createdAt),g(),y("ngIf",e.department.lastModifiedAt)}}function Wve(t,n){if(t&1){let e=Y();h(0,"mat-card")(1,"mat-card-header")(2,"mat-card-title"),_(3,"Department Details"),p(),k(4,"div",1),R(5,jve,4,0,"button",2)(6,Hve,4,0,"button",3),h(7,"button",4),S("click",function(){I(e);let r=C();return A(r.goBack())}),h(8,"mat-icon"),_(9,"arrow_back"),p(),_(10," Back to List "),p()(),h(11,"mat-card-content")(12,"div",5)(13,"div",6)(14,"h3"),_(15,"Basic Information"),p(),k(16,"mat-divider"),h(17,"mat-list")(18,"mat-list-item")(19,"span",7),_(20,"Department Name"),p(),h(21,"span",8),_(22),p()()()(),R(23,$ve,7,2,"div",9),p()()()}if(t&2){let e=C();g(5),y("appHasRole",at(4,Vve)),g(),y("appHasRole",at(5,Bve)),g(16),H(e.department.name),g(),y("ngIf",e.department.createdAt||e.department.lastModifiedAt)}}function Gve(t,n){t&1&&(h(0,"mat-card")(1,"mat-card-content")(2,"div",12),k(3,"mat-spinner"),p()()())}function qve(t,n){if(t&1){let e=Y();h(0,"mat-card")(1,"mat-card-content")(2,"div",13)(3,"mat-icon"),_(4,"error"),p(),h(5,"p"),_(6,"Department not found"),p(),h(7,"button",14),S("click",function(){I(e);let r=C();return A(r.goBack())}),_(8," Go Back "),p()()()()}}var UU=(()=>{let n=class n{constructor(){this.departmentService=u(Vs),this.authService=u(Tt),this.route=u(wi),this.router=u(Re),this.snackBar=u(di),this.dialog=u(En),this.loading=!1}ngOnInit(){let i=this.route.snapshot.paramMap.get("id");i&&this.loadDepartment(i)}loadDepartment(i){this.loading=!0,this.departmentService.getById(i).subscribe({next:r=>{this.department=r,this.loading=!1},error:r=>{console.error("Error loading department:",r),this.showMessage("Error loading department"),this.loading=!1,this.router.navigate(["/departments"])}})}editDepartment(){this.router.navigate(["/departments","edit",this.department.id])}deleteDepartment(){this.dialog.open(Er,{width:"400px",data:{title:"Delete Department",message:`Are you sure you want to delete "${this.department.name}"? This action cannot be undone.`,confirmText:"Delete",cancelText:"Cancel"}}).afterClosed().subscribe(r=>{r&&this.departmentService.delete(this.department.id).subscribe({next:()=>{let o=this.snackBar.open(`"${this.department.name}" has been deleted.`,"Close",{duration:3e3,horizontalPosition:"end",verticalPosition:"top"});o.afterDismissed().subscribe(()=>this.router.navigate(["/departments"])),o.onAction().subscribe(()=>this.router.navigate(["/departments"]))},error:o=>{console.error("Error deleting department:",o),this.showMessage("Failed to delete department. Please try again.")}})})}goBack(){this.router.navigate(["/departments"])}canEdit(){return this.authService.isHRAdmin()||this.authService.isManager()}canDelete(){return this.authService.isHRAdmin()}showMessage(i){this.snackBar.open(i,"Close",{duration:3e3,horizontalPosition:"end",verticalPosition:"top"})}};n.\u0275fac=function(r){return new(r||n)},n.\u0275cmp=E({type:n,selectors:[["app-department-detail"]],decls:4,vars:3,consts:[[4,"ngIf"],[1,"flex-spacer"],["mat-raised-button","","color","accent",3,"click",4,"appHasRole"],["mat-raised-button","","color","warn",3,"click",4,"appHasRole"],["mat-stroked-button","",3,"click"],[1,"detail-grid"],[1,"detail-section"],["matListItemTitle",""],["matListItemLine",""],["class","detail-section",4,"ngIf"],["mat-raised-button","","color","accent",3,"click"],["mat-raised-button","","color","warn",3,"click"],[1,"loading-container"],[1,"no-data"],["mat-raised-button","","color","primary",3,"click"]],template:function(r,o){r&1&&(k(0,"page-header"),R(1,Wve,24,6,"mat-card",0)(2,Gve,4,0,"mat-card",0)(3,qve,9,0,"mat-card",0)),r&2&&(g(),y("ngIf",!o.loading&&o.department),g(),y("ngIf",o.loading),g(),y("ngIf",!o.loading&&!o.department))},dependencies:[gt,li,ze,kt,$t,zt,Ut,Jt,Xt,ot,mt,ca,Fs,la,Ha,Tu,Dl,sa,Si,ki,pi,Mn,ni,Un,Sa],styles:["mat-card[_ngcontent-%COMP%]{margin:16px}mat-card-header[_ngcontent-%COMP%]{display:flex;align-items:center;margin-bottom:16px;padding:16px;border-bottom:1px solid rgba(0,0,0,.12)}mat-card-header[_ngcontent-%COMP%] mat-card-title[_ngcontent-%COMP%]{font-size:20px;font-weight:500;margin:0}mat-card-header[_ngcontent-%COMP%] .flex-spacer[_ngcontent-%COMP%]{flex:1 1 auto}mat-card-header[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{margin-left:8px}mat-card-header[_ngcontent-%COMP%] button[_ngcontent-%COMP%] mat-icon[_ngcontent-%COMP%]{margin-right:4px}mat-card-content[_ngcontent-%COMP%]{padding:16px}.detail-grid[_ngcontent-%COMP%]{display:grid;grid-template-columns:repeat(auto-fit,minmax(400px,1fr));gap:24px}.detail-section[_ngcontent-%COMP%] h3[_ngcontent-%COMP%]{margin:0 0 8px;font-size:16px;font-weight:500;color:#000000de}.detail-section[_ngcontent-%COMP%] mat-divider[_ngcontent-%COMP%]{margin-bottom:16px}.detail-section[_ngcontent-%COMP%] mat-list[_ngcontent-%COMP%]{padding:0}.detail-section[_ngcontent-%COMP%] mat-list-item[_ngcontent-%COMP%]{height:auto;min-height:48px;padding:8px 0}.loading-container[_ngcontent-%COMP%]{display:flex;justify-content:center;align-items:center;min-height:300px}.no-data[_ngcontent-%COMP%]{display:flex;flex-direction:column;align-items:center;justify-content:center;padding:48px 16px;color:#0000008a}.no-data[_ngcontent-%COMP%] mat-icon[_ngcontent-%COMP%]{font-size:48px;width:48px;height:48px;margin-bottom:16px}.no-data[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{margin:0 0 16px;font-size:16px}"]});let t=n;return t})();function Yve(t,n){t&1&&(h(0,"div",0),k(1,"mat-spinner"),p())}function Qve(t,n){t&1&&(h(0,"mat-error"),_(1," Department name is required "),p())}function Kve(t,n){t&1&&(h(0,"mat-error"),_(1," Department name cannot exceed 100 characters "),p())}var sA=(()=>{let n=class n{constructor(){this.departmentService=u(Vs),this.route=u(wi),this.router=u(Re),this.fb=u(eo),this.snackBar=u(di),this.loading=!1,this.isEditMode=!1}ngOnInit(){this.initForm();let i=this.route.snapshot.paramMap.get("id");i&&(this.isEditMode=!0,this.departmentId=i,this.loadDepartment(i))}initForm(){this.departmentForm=this.fb.group({name:["",[Le.required,Le.maxLength(100)]]})}loadDepartment(i){this.loading=!0,this.departmentService.getById(i).subscribe({next:r=>{this.departmentForm.patchValue({name:r.name}),this.loading=!1},error:r=>{console.error("Error loading department:",r),this.showMessage("Error loading department"),this.loading=!1}})}onSubmit(){if(!this.departmentForm.invalid)if(this.loading=!0,this.isEditMode&&this.departmentId){let i={id:this.departmentId,name:this.departmentForm.value.name};this.departmentService.updateDepartment(i).subscribe({next:()=>{this.showMessage("Department updated successfully"),this.router.navigate(["/departments",this.departmentId])},error:r=>{console.error("Error updating department:",r),this.showMessage("Error updating department"),this.loading=!1}})}else{let i={name:this.departmentForm.value.name};this.departmentService.createDepartment(i).subscribe({next:r=>{console.log("Department created - Response:",r),console.log("Department ID:",r?.id),this.showMessage("Department created successfully"),r?.id?(console.log("Navigating to detail page:","/departments/"+r.id),this.router.navigate(["/departments",r.id])):(console.warn("No department ID returned, navigating to list page"),this.router.navigate(["/departments"])),this.loading=!1},error:r=>{console.error("Error creating department:",r),this.showMessage("Error creating department"),this.loading=!1}})}}onCancel(){this.isEditMode&&this.departmentId?this.router.navigate(["/departments",this.departmentId]):this.router.navigate(["/departments"])}showMessage(i){this.snackBar.open(i,"Close",{duration:3e3,horizontalPosition:"end",verticalPosition:"top"})}};n.\u0275fac=function(r){return new(r||n)},n.\u0275cmp=E({type:n,selectors:[["app-department-form"]],decls:23,vars:7,consts:[[1,"loading-overlay"],[3,"ngSubmit","formGroup"],[1,"form-section"],[1,"form-row"],["appearance","outline"],["matInput","","formControlName","name"],[4,"ngIf"],[1,"form-actions"],["type","button","mat-stroked-button","",3,"click"],["type","submit","mat-raised-button","","color","primary",3,"disabled"]],template:function(r,o){if(r&1&&(k(0,"page-header"),h(1,"mat-card")(2,"mat-card-header")(3,"mat-card-title"),_(4),p()(),h(5,"mat-card-content"),N(6,Yve,2,0,"div",0),h(7,"form",1),S("ngSubmit",function(){return o.onSubmit()}),h(8,"div",2)(9,"h3"),_(10,"Department Information"),p(),h(11,"div",3)(12,"mat-form-field",4)(13,"mat-label"),_(14,"Department Name"),p(),k(15,"input",5),R(16,Qve,2,0,"mat-error",6)(17,Kve,2,0,"mat-error",6),p()()(),h(18,"div",7)(19,"button",8),S("click",function(){return o.onCancel()}),_(20," Cancel "),p(),h(21,"button",9),_(22),p()()()()()),r&2){let a,s;g(4),H(o.isEditMode?"Edit Department":"Create Department"),g(2),L(o.loading?6:-1),g(),y("formGroup",o.departmentForm),g(9),y("ngIf",(a=o.departmentForm.get("name"))==null?null:a.hasError("required")),g(),y("ngIf",(s=o.departmentForm.get("name"))==null?null:s.hasError("maxlength")),g(4),y("disabled",o.loading),g(),ve(" ",o.isEditMode?"Update":"Create"," ")}},dependencies:[gt,li,zn,Jr,Qi,ei,Xr,Ki,Lr,ze,kt,$t,zt,Ut,Jt,Xt,ot,rr,hn,Oi,sn,xo,$i,Si,ki,pi,ni],styles:["mat-card[_ngcontent-%COMP%]{margin:16px;max-width:800px}mat-card-header[_ngcontent-%COMP%]{padding:16px;border-bottom:1px solid rgba(0,0,0,.12)}mat-card-header[_ngcontent-%COMP%] mat-card-title[_ngcontent-%COMP%]{font-size:20px;font-weight:500;margin:0}mat-card-content[_ngcontent-%COMP%]{padding:24px;position:relative}.form-section[_ngcontent-%COMP%]{margin-bottom:24px}.form-section[_ngcontent-%COMP%] h3[_ngcontent-%COMP%]{margin:0 0 16px;font-size:16px;font-weight:500;color:#000000de}.form-section[_ngcontent-%COMP%] .form-row[_ngcontent-%COMP%]{display:grid;grid-template-columns:1fr;gap:16px;margin-bottom:16px}.form-section[_ngcontent-%COMP%] .form-row[_ngcontent-%COMP%] mat-form-field[_ngcontent-%COMP%]{width:100%}.form-actions[_ngcontent-%COMP%]{display:flex;justify-content:flex-end;gap:8px;padding-top:16px;border-top:1px solid rgba(0,0,0,.12)}.loading-overlay[_ngcontent-%COMP%]{position:absolute;inset:0;background-color:#fffc;display:flex;align-items:center;justify-content:center;z-index:1000}"]});let t=n;return t})();var Zve=["mat-sort-header",""],Xve=["*"];function Jve(t,n){t&1&&(ft(0,"div",2),Gt(),ft(1,"svg",3),ai(2,"path",4),vt()())}var $U=new T("MAT_SORT_DEFAULT_OPTIONS"),Ml=(()=>{class t{_defaultOptions;_initializedStream=new $a(1);sortables=new Map;_stateChanges=new z;active;start="asc";get direction(){return this._direction}set direction(e){this._direction=e}_direction="";disableClear;disabled=!1;sortChange=new U;initialized=this._initializedStream;constructor(e){this._defaultOptions=e}register(e){this.sortables.set(e.id,e)}deregister(e){this.sortables.delete(e.id)}sort(e){this.active!=e.id?(this.active=e.id,this.direction=e.start?e.start:this.start):this.direction=this.getNextSortDirection(e),this.sortChange.emit({active:this.active,direction:this.direction})}getNextSortDirection(e){if(!e)return"";let i=e?.disableClear??this.disableClear??!!this._defaultOptions?.disableClear,r=e0e(e.start||this.start,i),o=r.indexOf(this.direction)+1;return o>=r.length&&(o=0),r[o]}ngOnInit(){this._initializedStream.next()}ngOnChanges(){this._stateChanges.next()}ngOnDestroy(){this._stateChanges.complete(),this._initializedStream.complete()}static \u0275fac=function(i){return new(i||t)(_e($U,8))};static \u0275dir=F({type:t,selectors:[["","matSort",""]],hostAttrs:[1,"mat-sort"],inputs:{active:[0,"matSortActive","active"],start:[0,"matSortStart","start"],direction:[0,"matSortDirection","direction"],disableClear:[2,"matSortDisableClear","disableClear",V],disabled:[2,"matSortDisabled","disabled",V]},outputs:{sortChange:"matSortChange"},exportAs:["matSort"],features:[Ae]})}return t})();function e0e(t,n){let e=["asc","desc"];return t=="desc"&&e.reverse(),n||e.push(""),e}var ww=(()=>{class t{changes=new z;static \u0275fac=function(i){return new(i||t)};static \u0275prov=O({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();function t0e(t){return t||new ww}var i0e={provide:ww,deps:[[new ss,new Gl,ww]],useFactory:t0e},Dw=(()=>{class t{_intl=u(ww);_sort=u(Ml,{optional:!0});_columnDef=u("MAT_SORT_HEADER_COLUMN_DEF",{optional:!0});_changeDetectorRef=u(ye);_focusMonitor=u(Yt);_elementRef=u(q);_ariaDescriber=u(Xm,{optional:!0});_renderChanges;_animationsDisabled=Ye();_recentlyCleared=he(null);_sortButton;id;arrowPosition="after";start;disabled=!1;get sortActionDescription(){return this._sortActionDescription}set sortActionDescription(e){this._updateSortActionDescription(e)}_sortActionDescription="Sort";disableClear;constructor(){u(ut).load(Di);let e=u($U,{optional:!0});this._sort,e?.arrowPosition&&(this.arrowPosition=e?.arrowPosition)}ngOnInit(){!this.id&&this._columnDef&&(this.id=this._columnDef.name),this._sort.register(this),this._renderChanges=Je(this._sort._stateChanges,this._sort.sortChange).subscribe(()=>this._changeDetectorRef.markForCheck()),this._sortButton=this._elementRef.nativeElement.querySelector(".mat-sort-header-container"),this._updateSortActionDescription(this._sortActionDescription)}ngAfterViewInit(){this._focusMonitor.monitor(this._elementRef,!0).subscribe(()=>{Promise.resolve().then(()=>this._recentlyCleared.set(null))})}ngOnDestroy(){this._focusMonitor.stopMonitoring(this._elementRef),this._sort.deregister(this),this._renderChanges?.unsubscribe(),this._sortButton&&this._ariaDescriber?.removeDescription(this._sortButton,this._sortActionDescription)}_toggleOnInteraction(){if(!this._isDisabled()){let e=this._isSorted(),i=this._sort.direction;this._sort.sort(this),this._recentlyCleared.set(e&&!this._isSorted()?i:null)}}_handleKeydown(e){(e.keyCode===32||e.keyCode===13)&&(e.preventDefault(),this._toggleOnInteraction())}_isSorted(){return this._sort.active==this.id&&(this._sort.direction==="asc"||this._sort.direction==="desc")}_isDisabled(){return this._sort.disabled||this.disabled}_getAriaSortAttribute(){return this._isSorted()?this._sort.direction=="asc"?"ascending":"descending":"none"}_renderArrow(){return!this._isDisabled()||this._isSorted()}_updateSortActionDescription(e){this._sortButton&&(this._ariaDescriber?.removeDescription(this._sortButton,this._sortActionDescription),this._ariaDescriber?.describe(this._sortButton,e)),this._sortActionDescription=e}static \u0275fac=function(i){return new(i||t)};static \u0275cmp=E({type:t,selectors:[["","mat-sort-header",""]],hostAttrs:[1,"mat-sort-header"],hostVars:3,hostBindings:function(i,r){i&1&&S("click",function(){return r._toggleOnInteraction()})("keydown",function(a){return r._handleKeydown(a)})("mouseleave",function(){return r._recentlyCleared.set(null)}),i&2&&(X("aria-sort",r._getAriaSortAttribute()),G("mat-sort-header-disabled",r._isDisabled()))},inputs:{id:[0,"mat-sort-header","id"],arrowPosition:"arrowPosition",start:"start",disabled:[2,"disabled","disabled",V],sortActionDescription:"sortActionDescription",disableClear:[2,"disableClear","disableClear",V]},exportAs:["matSortHeader"],attrs:Zve,ngContentSelectors:Xve,decls:4,vars:17,consts:[[1,"mat-sort-header-container","mat-focus-indicator"],[1,"mat-sort-header-content"],[1,"mat-sort-header-arrow"],["viewBox","0 -960 960 960","focusable","false","aria-hidden","true"],["d","M440-240v-368L296-464l-56-56 240-240 240 240-56 56-144-144v368h-80Z"]],template:function(i,r){i&1&&(Me(),ft(0,"div",0)(1,"div",1),oe(2),vt(),N(3,Jve,3,0,"div",2),vt()),i&2&&(G("mat-sort-header-sorted",r._isSorted())("mat-sort-header-position-before",r.arrowPosition==="before")("mat-sort-header-descending",r._sort.direction==="desc")("mat-sort-header-ascending",r._sort.direction==="asc")("mat-sort-header-recently-cleared-ascending",r._recentlyCleared()==="asc")("mat-sort-header-recently-cleared-descending",r._recentlyCleared()==="desc")("mat-sort-header-animations-disabled",r._animationsDisabled),X("tabindex",r._isDisabled()?null:0)("role",r._isDisabled()?null:"button"),g(3),L(r._renderArrow()?3:-1))},styles:[`.mat-sort-header{cursor:pointer}.mat-sort-header-disabled{cursor:default}.mat-sort-header-container{display:flex;align-items:center;letter-spacing:normal;outline:0}[mat-sort-header].cdk-keyboard-focused .mat-sort-header-container,[mat-sort-header].cdk-program-focused .mat-sort-header-container{border-bottom:solid 1px currentColor}.mat-sort-header-container::before{margin:calc(calc(var(--mat-focus-indicator-border-width, 3px) + 2px)*-1)}.mat-sort-header-content{display:flex;align-items:center}.mat-sort-header-position-before{flex-direction:row-reverse}@keyframes _mat-sort-header-recently-cleared-ascending{from{transform:translateY(0);opacity:1}to{transform:translateY(-25%);opacity:0}}@keyframes _mat-sort-header-recently-cleared-descending{from{transform:translateY(0) rotate(180deg);opacity:1}to{transform:translateY(25%) rotate(180deg);opacity:0}}.mat-sort-header-arrow{height:12px;width:12px;position:relative;transition:transform 225ms cubic-bezier(0.4, 0, 0.2, 1),opacity 225ms cubic-bezier(0.4, 0, 0.2, 1);opacity:0;overflow:visible;color:var(--mat-sort-arrow-color, var(--mat-sys-on-surface))}.mat-sort-header.cdk-keyboard-focused .mat-sort-header-arrow,.mat-sort-header.cdk-program-focused .mat-sort-header-arrow,.mat-sort-header:hover .mat-sort-header-arrow{opacity:.54}.mat-sort-header .mat-sort-header-sorted .mat-sort-header-arrow{opacity:1}.mat-sort-header-descending .mat-sort-header-arrow{transform:rotate(180deg)}.mat-sort-header-recently-cleared-ascending .mat-sort-header-arrow{transform:translateY(-25%)}.mat-sort-header-recently-cleared-ascending .mat-sort-header-arrow{transition:none;animation:_mat-sort-header-recently-cleared-ascending 225ms cubic-bezier(0.4, 0, 0.2, 1) forwards}.mat-sort-header-recently-cleared-descending .mat-sort-header-arrow{transition:none;animation:_mat-sort-header-recently-cleared-descending 225ms cubic-bezier(0.4, 0, 0.2, 1) forwards}.mat-sort-header-animations-disabled .mat-sort-header-arrow{transition-duration:0ms;animation-duration:0ms}.mat-sort-header-arrow svg{width:24px;height:24px;fill:currentColor;position:absolute;top:50%;left:50%;margin:-12px 0 0 -12px;transform:translateZ(0)}.mat-sort-header-arrow,[dir=rtl] .mat-sort-header-position-before .mat-sort-header-arrow{margin:0 0 0 6px}.mat-sort-header-position-before .mat-sort-header-arrow,[dir=rtl] .mat-sort-header-arrow{margin:0 6px 0 0} +`],encapsulation:2,changeDetection:0})}return t})(),Ew=(()=>{class t{static \u0275fac=function(i){return new(i||t)};static \u0275mod=ee({type:t});static \u0275inj=J({providers:[i0e],imports:[we]})}return t})();var GU=()=>["HRAdmin","Manager"],qU=()=>["HRAdmin"];function n0e(t,n){if(t&1){let e=Y();h(0,"button",14),S("click",function(){I(e);let r=C();return A(r.createPosition())}),h(1,"mat-icon"),_(2,"add"),p(),_(3," Add Position "),p()}}function r0e(t,n){if(t&1){let e=Y();h(0,"button",15),S("click",function(){I(e);let r=C();return A(r.addMockData())}),h(1,"mat-icon"),_(2,"data_object"),p(),_(3," Add Mock Data "),p()}}function o0e(t,n){t&1&&(h(0,"div",16),k(1,"mat-spinner"),p())}function a0e(t,n){t&1&&(h(0,"th",30),_(1,"Position Number"),p())}function s0e(t,n){if(t&1&&(h(0,"td",31),_(1),p()),t&2){let e=n.$implicit;g(),H(e.positionNumber)}}function l0e(t,n){t&1&&(h(0,"th",30),_(1,"Position Title"),p())}function c0e(t,n){if(t&1&&(h(0,"td",31),_(1),p()),t&2){let e=n.$implicit;g(),H(e.positionTitle)}}function d0e(t,n){t&1&&(h(0,"th",30),_(1,"Department"),p())}function u0e(t,n){if(t&1&&(h(0,"td",31),_(1),p()),t&2){let e=n.$implicit;g(),H(e.department==null?null:e.department.name)}}function m0e(t,n){t&1&&(h(0,"th",30),_(1,"Salary Range"),p())}function h0e(t,n){if(t&1&&(h(0,"td",31),_(1),p()),t&2){let e=n.$implicit;g(),H(e.salaryRange==null?null:e.salaryRange.name)}}function p0e(t,n){t&1&&(h(0,"th",32),_(1,"Actions"),p())}function f0e(t,n){if(t&1){let e=Y();h(0,"button",38),S("click",function(){I(e);let r=C().$implicit,o=C(2);return A(o.editPosition(r))}),h(1,"mat-icon"),_(2,"edit"),p()()}}function g0e(t,n){if(t&1){let e=Y();h(0,"button",39),S("click",function(){I(e);let r=C().$implicit,o=C(2);return A(o.deletePosition(r))}),h(1,"mat-icon"),_(2,"delete"),p()()}}function _0e(t,n){if(t&1){let e=Y();h(0,"td",33)(1,"div",34)(2,"button",35),S("click",function(){let r=I(e).$implicit,o=C(2);return A(o.viewPosition(r))}),h(3,"mat-icon"),_(4,"visibility"),p()(),R(5,f0e,3,0,"button",36)(6,g0e,3,0,"button",37),p()()}t&2&&(g(5),y("appHasRole",at(2,GU)),g(),y("appHasRole",at(3,qU)))}function b0e(t,n){t&1&&k(0,"tr",40)}function v0e(t,n){t&1&&k(0,"tr",41)}function y0e(t,n){if(t&1&&(h(0,"tr",42)(1,"td",43)(2,"div",44)(3,"mat-icon"),_(4,"work_off"),p(),h(5,"p"),_(6,"No positions found"),p()()()()),t&2){let e=C(2);g(),X("colspan",e.displayedColumns.length)}}function x0e(t,n){if(t&1){let e=Y();h(0,"table",17),S("matSortChange",function(r){I(e);let o=C();return A(o.onSortChange(r))}),jt(1,18),R(2,a0e,2,0,"th",19)(3,s0e,2,1,"td",20),Lt(),jt(4,21),R(5,l0e,2,0,"th",19)(6,c0e,2,1,"td",20),Lt(),jt(7,22),R(8,d0e,2,0,"th",19)(9,u0e,2,1,"td",20),Lt(),jt(10,23),R(11,m0e,2,0,"th",19)(12,h0e,2,1,"td",20),Lt(),jt(13,24),R(14,p0e,2,0,"th",25)(15,_0e,7,4,"td",26),Lt(),R(16,b0e,1,0,"tr",27)(17,v0e,1,0,"tr",28)(18,y0e,7,1,"tr",29),p()}if(t&2){let e=C();y("dataSource",e.positions),g(16),y("matHeaderRowDef",e.displayedColumns),g(),y("matRowDefColumns",e.displayedColumns)}}var YU=(()=>{let n=class n{constructor(){this.positionService=u(Bc),this.authService=u(Tt),this.router=u(Re),this.dialog=u(En),this.snackBar=u(di),this.searchSubject=new z,this.positions=[],this.loading=!1,this.displayedColumns=["positionNumber","positionTitle","departmentId","salaryRangeId","actions"],this.totalCount=0,this.pageNumber=1,this.pageSize=10,this.pageSizeOptions=[5,10,25,50,100],this.searchPositionNumber="",this.searchPositionTitle="",this.searchDepartment=""}ngOnInit(){this.searchSubject.pipe(Rt(500)).subscribe(()=>{this.pageNumber=1,this.loadPositions()}),this.loadPositions()}ngAfterViewInit(){}loadPositions(){this.loading=!0;let i={pageNumber:this.pageNumber,pageSize:this.pageSize};this.searchPositionNumber&&(i.PositionNumber=this.searchPositionNumber),this.searchPositionTitle&&(i.PositionTitle=this.searchPositionTitle),this.searchDepartment&&(i.Department=this.searchDepartment),this.sort?.active&&this.sort?.direction&&(i.orderBy=`${this.sort.active} ${this.sort.direction}`),this.positionService.getAllPaged(i).subscribe({next:r=>{this.positions=r.value,this.totalCount=r.recordsTotal,this.loading=!1},error:r=>{console.error("Error loading positions:",r),this.loading=!1}})}onSearch(){this.searchSubject.next()}onPageChange(i){this.pageNumber=i.pageIndex+1,this.pageSize=i.pageSize,this.loadPositions()}onSortChange(i){this.loadPositions()}clearFilters(){this.searchPositionNumber="",this.searchPositionTitle="",this.searchDepartment="",this.pageNumber=1,this.loadPositions()}createPosition(){this.router.navigate(["/positions/create"])}viewPosition(i){this.router.navigate(["/positions",i.id])}editPosition(i){this.router.navigate(["/positions/edit",i.id])}deletePosition(i){this.dialog.open(Er,{width:"400px",data:{title:"Delete Position",message:`Are you sure you want to delete "${i.positionTitle}"? This action cannot be undone.`,confirmText:"Delete",cancelText:"Cancel"}}).afterClosed().subscribe(o=>{o&&this.positionService.delete(i.id).subscribe({next:()=>{this.showMessage(`"${i.positionTitle}" has been deleted.`),this.loadPositions()},error:a=>{console.error("Error deleting position:",a),this.showMessage("Failed to delete position. Please try again.")}})})}addMockData(){let i=prompt("How many mock positions would you like to add?","10");if(i){let r=parseInt(i,10);r>0&&r<=100?(this.loading=!0,this.positionService.addMockPositions({rowCount:r}).subscribe({next:()=>{this.showMessage(`${r} mock positions added successfully`),this.loadPositions()},error:o=>{console.error("Error adding mock positions:",o),this.showMessage("Error adding mock positions"),this.loading=!1}})):this.showMessage("Please enter a number between 1 and 100")}}showMessage(i){this.snackBar.open(i,"Close",{duration:3e3,horizontalPosition:"end",verticalPosition:"top"})}canEdit(){return this.authService.hasRole("HRAdmin")||this.authService.hasRole("Manager")}};n.\u0275fac=function(r){return new(r||n)},n.\u0275cmp=E({type:n,selectors:[["app-position-list"]],viewQuery:function(r,o){if(r&1&&(ie(ir,5),ie(Ml,5)),r&2){let a;B(a=j())&&(o.paginator=a.first),B(a=j())&&(o.sort=a.first)}},decls:36,vars:13,consts:[[1,"flex-spacer"],["mat-raised-button","","color","primary",3,"click",4,"appHasRole"],["mat-stroked-button","","color","accent","style","margin-left: 8px;",3,"click",4,"appHasRole"],[1,"search-filters",2,"margin-bottom","16px","display","flex","gap","16px","flex-wrap","wrap"],["appearance","outline",2,"flex","1","min-width","200px"],["matInput","","placeholder","Search by position number",3,"ngModelChange","input","ngModel"],["matSuffix",""],["matInput","","placeholder","Search by position title",3,"ngModelChange","input","ngModel"],["matInput","","placeholder","Search by department",3,"ngModelChange","input","ngModel"],["mat-stroked-button","",2,"height","56px",3,"click"],[1,"table-container"],["class","loading-spinner",4,"ngIf"],["mat-table","","matSort","","class","position-table",3,"dataSource","matSortChange",4,"ngIf"],["showFirstLastButtons","",3,"page","length","pageSize","pageSizeOptions","pageIndex"],["mat-raised-button","","color","primary",3,"click"],["mat-stroked-button","","color","accent",2,"margin-left","8px",3,"click"],[1,"loading-spinner"],["mat-table","","matSort","",1,"position-table",3,"matSortChange","dataSource"],["matColumnDef","positionNumber"],["mat-header-cell","","mat-sort-header","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","positionTitle"],["matColumnDef","departmentId"],["matColumnDef","salaryRangeId"],["matColumnDef","actions"],["mat-header-cell","","class","mat-column-actions",4,"matHeaderCellDef"],["mat-cell","","class","mat-column-actions",4,"matCellDef"],["mat-header-row","",4,"matHeaderRowDef"],["mat-row","",4,"matRowDef","matRowDefColumns"],["class","mat-row",4,"matNoDataRow"],["mat-header-cell","","mat-sort-header",""],["mat-cell",""],["mat-header-cell","",1,"mat-column-actions"],["mat-cell","",1,"mat-column-actions"],[1,"action-buttons"],["mat-icon-button","","color","primary","matTooltip","View Details",3,"click"],["mat-icon-button","","color","accent","matTooltip","Edit Position",3,"click",4,"appHasRole"],["mat-icon-button","","color","warn","matTooltip","Delete Position",3,"click",4,"appHasRole"],["mat-icon-button","","color","accent","matTooltip","Edit Position",3,"click"],["mat-icon-button","","color","warn","matTooltip","Delete Position",3,"click"],["mat-header-row",""],["mat-row",""],[1,"mat-row"],[1,"mat-cell"],[1,"no-data"]],template:function(r,o){r&1&&(k(0,"page-header"),h(1,"mat-card")(2,"mat-card-header")(3,"mat-card-title"),_(4,"Positions"),p(),k(5,"span",0),R(6,n0e,4,0,"button",1)(7,r0e,4,0,"button",2),p(),h(8,"mat-card-content")(9,"div",3)(10,"mat-form-field",4)(11,"mat-label"),_(12,"Position Number"),p(),h(13,"input",5),Uo("ngModelChange",function(s){return Ca(o.searchPositionNumber,s)||(o.searchPositionNumber=s),s}),S("input",function(){return o.onSearch()}),p(),h(14,"mat-icon",6),_(15,"search"),p()(),h(16,"mat-form-field",4)(17,"mat-label"),_(18,"Position Title"),p(),h(19,"input",7),Uo("ngModelChange",function(s){return Ca(o.searchPositionTitle,s)||(o.searchPositionTitle=s),s}),S("input",function(){return o.onSearch()}),p(),h(20,"mat-icon",6),_(21,"search"),p()(),h(22,"mat-form-field",4)(23,"mat-label"),_(24,"Department"),p(),h(25,"input",8),Uo("ngModelChange",function(s){return Ca(o.searchDepartment,s)||(o.searchDepartment=s),s}),S("input",function(){return o.onSearch()}),p(),h(26,"mat-icon",6),_(27,"search"),p()(),h(28,"button",9),S("click",function(){return o.clearFilters()}),h(29,"mat-icon"),_(30,"clear"),p(),_(31," Clear Filters "),p()(),h(32,"div",10),R(33,o0e,2,0,"div",11)(34,x0e,19,3,"table",12),p(),h(35,"mat-paginator",13),S("page",function(s){return o.onPageChange(s)}),p()()()),r&2&&(g(6),y("appHasRole",at(11,GU)),g(),y("appHasRole",at(12,qU)),g(6),zo("ngModel",o.searchPositionNumber),g(6),zo("ngModel",o.searchPositionTitle),g(6),zo("ngModel",o.searchDepartment),g(8),y("ngIf",o.loading),g(),y("ngIf",!o.loading),g(),y("length",o.totalCount)("pageSize",o.pageSize)("pageSizeOptions",o.pageSizeOptions)("pageIndex",o.pageNumber-1))},dependencies:[gt,li,ze,kt,ti,$t,zt,Ut,Jt,Xt,ot,mt,Zc,Hc,Uc,qc,$c,zc,Yc,Wc,Gc,Qc,Kc,gw,_c,ir,Ew,Ml,Dw,Si,ki,Br,Eo,Mn,$i,Oi,sn,ru,rr,hn,pi,du,Qi,ei,gg,ni,Un],styles:["mat-card[_ngcontent-%COMP%]{margin:16px}mat-card-header[_ngcontent-%COMP%]{display:flex;align-items:center;margin-bottom:16px;padding:16px;border-bottom:1px solid rgba(0,0,0,.12)}mat-card-header[_ngcontent-%COMP%] mat-card-title[_ngcontent-%COMP%]{font-size:20px;font-weight:500;margin:0}mat-card-header[_ngcontent-%COMP%] .flex-spacer[_ngcontent-%COMP%]{flex:1 1 auto}mat-card-header[_ngcontent-%COMP%] button[_ngcontent-%COMP%] mat-icon[_ngcontent-%COMP%]{margin-right:4px}mat-card-content[_ngcontent-%COMP%]{padding:0}.table-container[_ngcontent-%COMP%]{position:relative;min-height:300px;overflow-x:auto}.loading-spinner[_ngcontent-%COMP%]{display:flex;justify-content:center;align-items:center;min-height:300px}.position-table[_ngcontent-%COMP%]{width:100%}.position-table[_ngcontent-%COMP%] th[_ngcontent-%COMP%]{font-weight:600;font-size:14px;color:#000000de}.position-table[_ngcontent-%COMP%] td[_ngcontent-%COMP%]{font-size:14px;color:#000000de}.position-table[_ngcontent-%COMP%] .mat-column-positionNumber[_ngcontent-%COMP%]{min-width:150px}.position-table[_ngcontent-%COMP%] .mat-column-positionTitle[_ngcontent-%COMP%]{min-width:200px}.position-table[_ngcontent-%COMP%] .mat-column-departmentId[_ngcontent-%COMP%], .position-table[_ngcontent-%COMP%] .mat-column-salaryRangeId[_ngcontent-%COMP%]{min-width:150px}.position-table[_ngcontent-%COMP%] .mat-column-actions[_ngcontent-%COMP%]{width:150px;text-align:right}.position-table[_ngcontent-%COMP%] .action-buttons[_ngcontent-%COMP%]{display:flex;justify-content:flex-end;gap:4px}.position-table[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{margin-left:4px}.no-data[_ngcontent-%COMP%]{display:flex;flex-direction:column;align-items:center;justify-content:center;padding:48px 16px;color:#0000008a}.no-data[_ngcontent-%COMP%] mat-icon[_ngcontent-%COMP%]{font-size:48px;width:48px;height:48px;margin-bottom:16px}.no-data[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{margin:0;font-size:16px}mat-paginator[_ngcontent-%COMP%]{border-top:1px solid rgba(0,0,0,.12)}"]});let t=n;return t})();var QU=()=>["HRAdmin","Manager"];function C0e(t,n){t&1&&(h(0,"div",2),k(1,"mat-spinner"),p())}function w0e(t,n){if(t&1){let e=Y();h(0,"button",9),S("click",function(){I(e);let r=C(2);return A(r.editPosition())}),h(1,"mat-icon"),_(2,"edit"),p()()}}function D0e(t,n){if(t&1){let e=Y();h(0,"button",10),S("click",function(){I(e);let r=C(2);return A(r.deletePosition())}),h(1,"mat-icon"),_(2,"delete"),p()()}}function E0e(t,n){if(t&1&&(h(0,"mat-list-item")(1,"span",7),_(2,"Description:"),p(),h(3,"span",8),_(4),p()()),t&2){let e=C(2);g(4),H(e.position.positionDescription)}}function M0e(t,n){t&1&&k(0,"mat-divider")}function k0e(t,n){if(t&1&&(h(0,"mat-list-item")(1,"span",7),_(2,"Created:"),p(),h(3,"span",8),_(4),me(5,"date"),p()()),t&2){let e=C(2);g(4),H(Ni(5,1,e.position.createdAt,"medium"))}}function S0e(t,n){t&1&&k(0,"mat-divider")}function T0e(t,n){if(t&1&&(h(0,"mat-list-item")(1,"span",7),_(2,"Last Modified:"),p(),h(3,"span",8),_(4),me(5,"date"),p()()),t&2){let e=C(2);g(4),H(Ni(5,1,e.position.lastModifiedAt,"medium"))}}function I0e(t,n){if(t&1){let e=Y();h(0,"mat-card")(1,"mat-card-header")(2,"mat-card-title"),_(3),p(),h(4,"div",3),R(5,w0e,3,0,"button",4)(6,D0e,3,0,"button",5),h(7,"button",6),S("click",function(){I(e);let r=C();return A(r.goBack())}),h(8,"mat-icon"),_(9,"arrow_back"),p()()()(),h(10,"mat-card-content")(11,"mat-list")(12,"mat-list-item")(13,"span",7),_(14,"Position Number:"),p(),h(15,"span",8),_(16),p()(),k(17,"mat-divider"),h(18,"mat-list-item")(19,"span",7),_(20,"Position Title:"),p(),h(21,"span",8),_(22),p()(),k(23,"mat-divider"),R(24,E0e,5,1,"mat-list-item",1)(25,M0e,1,0,"mat-divider",1),h(26,"mat-list-item")(27,"span",7),_(28,"Department:"),p(),h(29,"span",8),_(30),p()(),k(31,"mat-divider"),h(32,"mat-list-item")(33,"span",7),_(34,"Salary Range:"),p(),h(35,"span",8),_(36),p()(),k(37,"mat-divider"),R(38,k0e,6,4,"mat-list-item",1)(39,S0e,1,0,"mat-divider",1)(40,T0e,6,4,"mat-list-item",1),p()()()}if(t&2){let e=C();g(3),H(e.position.positionTitle),g(2),y("appHasRole",at(12,QU)),g(),y("appHasRole",at(13,QU)),g(10),H(e.position.positionNumber),g(6),H(e.position.positionTitle),g(2),y("ngIf",e.position.positionDescription),g(),y("ngIf",e.position.positionDescription),g(5),H((e.position.department==null?null:e.position.department.name)||e.position.departmentId),g(6),H((e.position.salaryRange==null?null:e.position.salaryRange.name)||e.position.salaryRangeId),g(2),y("ngIf",e.position.createdAt),g(),y("ngIf",e.position.createdAt),g(),y("ngIf",e.position.lastModifiedAt)}}function A0e(t,n){t&1&&(h(0,"mat-card")(1,"mat-card-content")(2,"p"),_(3,"Position not found."),p()()())}var KU=(()=>{let n=class n{constructor(){this.positionService=u(Bc),this.authService=u(Tt),this.route=u(wi),this.router=u(Re),this.snackBar=u(di),this.dialog=u(En),this.loading=!1}ngOnInit(){let i=this.route.snapshot.paramMap.get("id");i&&this.loadPosition(i)}loadPosition(i){this.loading=!0,this.positionService.getById(i).subscribe({next:r=>{this.position=r,this.loading=!1},error:r=>{console.error("Error loading position:",r),this.showMessage("Error loading position"),this.loading=!1,this.router.navigate(["/positions"])}})}editPosition(){this.router.navigate(["/positions","edit",this.position.id])}deletePosition(){this.dialog.open(Er,{width:"400px",data:{title:"Delete Position",message:`Are you sure you want to delete "${this.position.positionTitle}"? This action cannot be undone.`,confirmText:"Delete",cancelText:"Cancel"}}).afterClosed().subscribe(r=>{r&&this.positionService.delete(this.position.id).subscribe({next:()=>{let o=this.snackBar.open(`"${this.position.positionTitle}" has been deleted.`,"Close",{duration:3e3,horizontalPosition:"end",verticalPosition:"top"});o.afterDismissed().subscribe(()=>this.router.navigate(["/positions"])),o.onAction().subscribe(()=>this.router.navigate(["/positions"]))},error:o=>{console.error("Error deleting position:",o),this.showMessage("Failed to delete position. Please try again.")}})})}goBack(){this.router.navigate(["/positions"])}canEdit(){return this.authService.isHRAdmin()||this.authService.isManager()}canDelete(){return this.authService.isHRAdmin()||this.authService.isManager()}showMessage(i){this.snackBar.open(i,"Close",{duration:3e3,horizontalPosition:"end",verticalPosition:"top"})}};n.\u0275fac=function(r){return new(r||n)},n.\u0275cmp=E({type:n,selectors:[["app-position-detail"]],decls:4,vars:3,consts:[["class","loading-spinner",4,"ngIf"],[4,"ngIf"],[1,"loading-spinner"],[1,"header-actions"],["mat-icon-button","","color","primary","matTooltip","Edit Position",3,"click",4,"appHasRole"],["mat-icon-button","","color","warn","matTooltip","Delete Position",3,"click",4,"appHasRole"],["mat-icon-button","","matTooltip","Back to List",3,"click"],[1,"label"],[1,"value"],["mat-icon-button","","color","primary","matTooltip","Edit Position",3,"click"],["mat-icon-button","","color","warn","matTooltip","Delete Position",3,"click"]],template:function(r,o){r&1&&(k(0,"page-header"),R(1,C0e,2,0,"div",0)(2,I0e,41,14,"mat-card",1)(3,A0e,4,0,"mat-card",1)),r&2&&(g(),y("ngIf",o.loading),g(),y("ngIf",!o.loading&&o.position),g(),y("ngIf",!o.loading&&!o.position))},dependencies:[gt,li,ze,ti,$t,zt,Ut,Jt,Xt,ot,mt,ca,Fs,la,Ha,sa,Si,ki,pi,Mn,ni,Un,Sa],styles:[".loading-spinner[_ngcontent-%COMP%]{display:flex;justify-content:center;align-items:center;min-height:400px}mat-card[_ngcontent-%COMP%]{margin:16px;max-width:800px}mat-card-header[_ngcontent-%COMP%]{padding:16px;border-bottom:1px solid rgba(0,0,0,.12);display:flex;justify-content:space-between;align-items:center}mat-card-header[_ngcontent-%COMP%] mat-card-title[_ngcontent-%COMP%]{font-size:24px;font-weight:500;margin:0}mat-card-header[_ngcontent-%COMP%] .header-actions[_ngcontent-%COMP%]{display:flex;gap:8px}mat-card-content[_ngcontent-%COMP%]{padding:0}mat-list[_ngcontent-%COMP%]{padding:0}mat-list-item[_ngcontent-%COMP%]{height:auto!important;min-height:48px;padding:12px 16px;display:flex;justify-content:space-between;align-items:flex-start}mat-list-item[_ngcontent-%COMP%] .label[_ngcontent-%COMP%]{font-weight:500;color:#0009;min-width:180px}mat-list-item[_ngcontent-%COMP%] .value[_ngcontent-%COMP%]{flex:1;text-align:right;word-break:break-word}"]});let t=n;return t})();function O0e(t,n){t&1&&(h(0,"div",0),k(1,"mat-spinner"),p())}function R0e(t,n){t&1&&(h(0,"mat-error"),_(1," Position title is required "),p())}function P0e(t,n){t&1&&(h(0,"mat-error"),_(1," Position title cannot exceed 100 characters "),p())}function F0e(t,n){t&1&&(h(0,"mat-error"),_(1," Position number is required "),p())}function N0e(t,n){t&1&&(h(0,"mat-error"),_(1," Position number cannot exceed 50 characters "),p())}function L0e(t,n){t&1&&(h(0,"mat-error"),_(1," Position description cannot exceed 500 characters "),p())}function V0e(t,n){if(t&1&&(h(0,"mat-option",14),_(1),p()),t&2){let e=n.$implicit;y("value",e.id),g(),ve(" ",e.name," ")}}function B0e(t,n){t&1&&(h(0,"mat-error"),_(1," Department is required "),p())}function j0e(t,n){if(t&1&&(h(0,"mat-option",14),_(1),me(2,"number"),me(3,"number"),p()),t&2){let e=n.$implicit;y("value",e.id),g(),Cm(" ",e.name," ($",Ni(2,4,e.minSalary,"1.0-0")," - $",Ni(3,7,e.maxSalary,"1.0-0"),") ")}}function H0e(t,n){t&1&&(h(0,"mat-error"),_(1," Salary range is required "),p())}var lA=(()=>{let n=class n{constructor(){this.fb=u(eo),this.router=u(Re),this.route=u(wi),this.snackBar=u(di),this.positionService=u(Bc),this.departmentService=u(Vs),this.salaryRangeService=u(jc),this.loading=!1,this.isEditMode=!1,this.departments=[],this.salaryRanges=[]}ngOnInit(){this.initForm(),this.loadDepartments(),this.loadSalaryRanges(),this.checkEditMode()}initForm(){this.positionForm=this.fb.group({positionTitle:["",[Le.required,Le.maxLength(100)]],positionNumber:["",[Le.required,Le.maxLength(50)]],positionDescription:["",[Le.maxLength(500)]],departmentId:["",Le.required],salaryRangeId:["",Le.required]})}loadDepartments(){this.departmentService.getAll().subscribe({next:i=>{this.departments=i},error:i=>{console.error("Error loading departments:",i),this.showMessage("Error loading departments")}})}loadSalaryRanges(){this.salaryRangeService.getAll().subscribe({next:i=>{this.salaryRanges=i},error:i=>{console.error("Error loading salary ranges:",i),this.showMessage("Error loading salary ranges")}})}checkEditMode(){this.positionId=this.route.snapshot.paramMap.get("id")||void 0,this.isEditMode=!!this.positionId,this.isEditMode&&this.positionId&&this.loadPosition(this.positionId)}loadPosition(i){this.loading=!0,this.positionService.getById(i).subscribe({next:r=>{this.positionForm.patchValue({positionTitle:r.positionTitle,positionNumber:r.positionNumber,positionDescription:r.positionDescription,departmentId:r.departmentId,salaryRangeId:r.salaryRangeId}),this.loading=!1},error:r=>{console.error("Error loading position:",r),this.showMessage("Error loading position"),this.loading=!1}})}onSubmit(){if(this.positionForm.invalid){this.positionForm.markAllAsTouched();return}if(this.loading=!0,this.isEditMode&&this.positionId){let i=M({id:this.positionId},this.positionForm.value);this.positionService.updatePosition(i).subscribe({next:()=>{this.showMessage("Position updated successfully"),this.router.navigate(["/positions",this.positionId])},error:r=>{console.error("Error updating position:",r),this.showMessage("Error updating position"),this.loading=!1}})}else{let i=this.positionForm.value;this.positionService.createPosition(i).subscribe({next:r=>{console.log("Position created - Response:",r),console.log("Position ID:",r?.id),this.showMessage("Position created successfully"),r?.id?(console.log("Navigating to detail page:","/positions/"+r.id),this.router.navigate(["/positions",r.id])):(console.warn("No position ID returned, navigating to list page"),this.router.navigate(["/positions"])),this.loading=!1},error:r=>{console.error("Error creating position:",r),this.showMessage("Error creating position"),this.loading=!1}})}}onCancel(){this.router.navigate(["/positions"])}showMessage(i){this.snackBar.open(i,"Close",{duration:3e3,horizontalPosition:"end",verticalPosition:"top"})}getFormTitle(){return this.isEditMode?"Edit Position":"Create Position"}};n.\u0275fac=function(r){return new(r||n)},n.\u0275cmp=E({type:n,selectors:[["app-position-form"]],decls:43,vars:14,consts:[[1,"loading-overlay"],[3,"ngSubmit","formGroup"],[1,"form-section"],["appearance","outline",1,"full-width"],["matInput","","formControlName","positionTitle"],[4,"ngIf"],["matInput","","formControlName","positionNumber"],["matInput","","formControlName","positionDescription","rows","4"],["formControlName","departmentId"],[3,"value",4,"ngFor","ngForOf"],["formControlName","salaryRangeId"],[1,"form-actions"],["type","button","mat-stroked-button","",3,"click"],["type","submit","mat-raised-button","","color","primary",3,"disabled"],[3,"value"]],template:function(r,o){if(r&1&&(k(0,"page-header"),h(1,"mat-card")(2,"mat-card-header")(3,"mat-card-title"),_(4),p()(),h(5,"mat-card-content"),N(6,O0e,2,0,"div",0),h(7,"form",1),S("ngSubmit",function(){return o.onSubmit()}),h(8,"div",2)(9,"mat-form-field",3)(10,"mat-label"),_(11,"Position Title"),p(),k(12,"input",4),R(13,R0e,2,0,"mat-error",5)(14,P0e,2,0,"mat-error",5),p(),h(15,"mat-form-field",3)(16,"mat-label"),_(17,"Position Number"),p(),k(18,"input",6),R(19,F0e,2,0,"mat-error",5)(20,N0e,2,0,"mat-error",5),p(),h(21,"mat-form-field",3)(22,"mat-label"),_(23,"Position Description"),p(),k(24,"textarea",7),R(25,L0e,2,0,"mat-error",5),p(),h(26,"mat-form-field",3)(27,"mat-label"),_(28,"Department"),p(),h(29,"mat-select",8),R(30,V0e,2,2,"mat-option",9),p(),R(31,B0e,2,0,"mat-error",5),p(),h(32,"mat-form-field",3)(33,"mat-label"),_(34,"Salary Range"),p(),h(35,"mat-select",10),R(36,j0e,4,10,"mat-option",9),p(),R(37,H0e,2,0,"mat-error",5),p()(),h(38,"div",11)(39,"button",12),S("click",function(){return o.onCancel()}),_(40," Cancel "),p(),h(41,"button",13),_(42),p()()()()()),r&2){let a,s,l,c,d,m,f;g(4),H(o.getFormTitle()),g(2),L(o.loading?6:-1),g(),y("formGroup",o.positionForm),g(6),y("ngIf",(a=o.positionForm.get("positionTitle"))==null?null:a.hasError("required")),g(),y("ngIf",(s=o.positionForm.get("positionTitle"))==null?null:s.hasError("maxlength")),g(5),y("ngIf",(l=o.positionForm.get("positionNumber"))==null?null:l.hasError("required")),g(),y("ngIf",(c=o.positionForm.get("positionNumber"))==null?null:c.hasError("maxlength")),g(5),y("ngIf",(d=o.positionForm.get("positionDescription"))==null?null:d.hasError("maxlength")),g(5),y("ngForOf",o.departments),g(),y("ngIf",(m=o.positionForm.get("departmentId"))==null?null:m.hasError("required")),g(5),y("ngForOf",o.salaryRanges),g(),y("ngIf",(f=o.positionForm.get("salaryRangeId"))==null?null:f.hasError("required")),g(4),y("disabled",o.loading),g(),ve(" ",o.isEditMode?"Update":"Create"," ")}},dependencies:[gt,qr,li,zn,Jr,Qi,ei,Xr,Ki,Lr,ze,kt,$t,zt,Ut,Jt,Xt,$i,Oi,sn,xo,rr,hn,fc,Na,xn,Si,ki,pi,ni,ff],styles:["mat-card[_ngcontent-%COMP%]{margin:16px;max-width:800px}mat-card-header[_ngcontent-%COMP%]{margin-bottom:16px;padding:16px;border-bottom:1px solid rgba(0,0,0,.12)}mat-card-header[_ngcontent-%COMP%] mat-card-title[_ngcontent-%COMP%]{font-size:20px;font-weight:500;margin:0}mat-card-content[_ngcontent-%COMP%]{padding:16px;position:relative}.loading-overlay[_ngcontent-%COMP%]{position:absolute;inset:0;background-color:#fffc;display:flex;align-items:center;justify-content:center;z-index:1000}.form-section[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:16px;margin-bottom:24px}.form-section[_ngcontent-%COMP%] .full-width[_ngcontent-%COMP%]{width:100%}.form-actions[_ngcontent-%COMP%]{display:flex;gap:12px;justify-content:flex-end;padding-top:16px;border-top:1px solid rgba(0,0,0,.12)}"]});let t=n;return t})();var ZU=()=>["HRAdmin","Manager"],z0e=()=>[5,10,25,50],U0e=()=>["HRAdmin"];function $0e(t,n){if(t&1){let e=Y();h(0,"button",6),S("click",function(){I(e);let r=C();return A(r.createSalaryRange())}),h(1,"mat-icon"),_(2,"add"),p(),_(3," Add Salary Range "),p()}}function W0e(t,n){t&1&&(h(0,"div",7),k(1,"mat-spinner"),p())}function G0e(t,n){t&1&&(h(0,"th",20),_(1,"Range Name"),p())}function q0e(t,n){if(t&1&&(h(0,"td",21),_(1),p()),t&2){let e=n.$implicit;g(),H(e.name)}}function Y0e(t,n){t&1&&(h(0,"th",20),_(1,"Minimum Salary"),p())}function Q0e(t,n){if(t&1&&(h(0,"td",21),_(1),me(2,"currency"),p()),t&2){let e=n.$implicit;g(),H(Dm(2,1,e.minSalary,"USD","symbol","1.0-0"))}}function K0e(t,n){t&1&&(h(0,"th",20),_(1,"Maximum Salary"),p())}function Z0e(t,n){if(t&1&&(h(0,"td",21),_(1),me(2,"currency"),p()),t&2){let e=n.$implicit;g(),H(Dm(2,1,e.maxSalary,"USD","symbol","1.0-0"))}}function X0e(t,n){t&1&&(h(0,"th",22),_(1,"Actions"),p())}function J0e(t,n){if(t&1){let e=Y();h(0,"button",28),S("click",function(){I(e);let r=C().$implicit,o=C(2);return A(o.editSalaryRange(r))}),h(1,"mat-icon"),_(2,"edit"),p()()}}function eye(t,n){if(t&1){let e=Y();h(0,"button",29),S("click",function(){I(e);let r=C().$implicit,o=C(2);return A(o.deleteSalaryRange(r))}),h(1,"mat-icon"),_(2,"delete"),p()()}}function tye(t,n){if(t&1){let e=Y();h(0,"td",23)(1,"div",24)(2,"button",25),S("click",function(){let r=I(e).$implicit,o=C(2);return A(o.viewSalaryRange(r))}),h(3,"mat-icon"),_(4,"visibility"),p()(),R(5,J0e,3,0,"button",26)(6,eye,3,0,"button",27),p()()}t&2&&(g(5),y("appHasRole",at(2,ZU)),g(),y("appHasRole",at(3,U0e)))}function iye(t,n){t&1&&k(0,"tr",30)}function nye(t,n){t&1&&k(0,"tr",31)}function rye(t,n){if(t&1&&(h(0,"tr",32)(1,"td",33)(2,"div",34)(3,"mat-icon"),_(4,"money_off"),p(),h(5,"p"),_(6,"No salary ranges found"),p()()()()),t&2){let e=C(2);g(),X("colspan",e.displayedColumns.length)}}function oye(t,n){if(t&1&&(h(0,"table",8),jt(1,9),R(2,G0e,2,0,"th",10)(3,q0e,2,1,"td",11),Lt(),jt(4,12),R(5,Y0e,2,0,"th",10)(6,Q0e,3,6,"td",11),Lt(),jt(7,13),R(8,K0e,2,0,"th",10)(9,Z0e,3,6,"td",11),Lt(),jt(10,14),R(11,X0e,2,0,"th",15)(12,tye,7,4,"td",16),Lt(),R(13,iye,1,0,"tr",17)(14,nye,1,0,"tr",18)(15,rye,7,1,"tr",19),p()),t&2){let e=C();y("dataSource",e.dataSource),g(13),y("matHeaderRowDef",e.displayedColumns),g(),y("matRowDefColumns",e.displayedColumns)}}var XU=(()=>{let n=class n{constructor(){this.salaryRangeService=u(jc),this.authService=u(Tt),this.router=u(Re),this.snackBar=u(di),this.dialog=u(En),this.dataSource=new fw([]),this.loading=!1,this.displayedColumns=["name","minSalary","maxSalary","actions"]}ngOnInit(){this.loadSalaryRanges()}ngAfterViewInit(){this.dataSource.paginator=this.paginator,this.dataSource.sort=this.sort}loadSalaryRanges(){this.loading=!0,this.salaryRangeService.getAll().subscribe({next:i=>{this.dataSource.data=i,this.loading=!1},error:i=>{console.error("Error loading salary ranges:",i),this.loading=!1}})}createSalaryRange(){this.router.navigate(["/salary-ranges/create"])}viewSalaryRange(i){this.router.navigate(["/salary-ranges",i.id])}editSalaryRange(i){this.router.navigate(["/salary-ranges/edit",i.id])}deleteSalaryRange(i){this.dialog.open(Er,{width:"400px",data:{title:"Delete Salary Range",message:`Are you sure you want to delete "${i.name}"? This action cannot be undone.`,confirmText:"Delete",cancelText:"Cancel"}}).afterClosed().subscribe(o=>{o&&this.salaryRangeService.delete(i.id).subscribe({next:()=>{this.showMessage(`"${i.name}" has been deleted.`),this.loadSalaryRanges()},error:a=>{console.error("Error deleting salary range:",a),this.showMessage("Failed to delete salary range. Please try again.")}})})}showMessage(i){this.snackBar.open(i,"Close",{duration:3e3,horizontalPosition:"end",verticalPosition:"top"})}canEdit(){return this.authService.hasRole("HRAdmin")||this.authService.hasRole("Manager")}};n.\u0275fac=function(r){return new(r||n)},n.\u0275cmp=E({type:n,selectors:[["app-salary-range-list"]],viewQuery:function(r,o){if(r&1&&(ie(ir,5),ie(Ml,5)),r&2){let a;B(a=j())&&(o.paginator=a.first),B(a=j())&&(o.sort=a.first)}},decls:12,vars:6,consts:[[1,"flex-spacer"],["mat-raised-button","","color","primary",3,"click",4,"appHasRole"],[1,"table-container"],["class","loading-spinner",4,"ngIf"],["mat-table","","matSort","","class","salary-range-table",3,"dataSource",4,"ngIf"],["showFirstLastButtons","",3,"pageSizeOptions"],["mat-raised-button","","color","primary",3,"click"],[1,"loading-spinner"],["mat-table","","matSort","",1,"salary-range-table",3,"dataSource"],["matColumnDef","name"],["mat-header-cell","","mat-sort-header","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","minSalary"],["matColumnDef","maxSalary"],["matColumnDef","actions"],["mat-header-cell","","class","mat-column-actions",4,"matHeaderCellDef"],["mat-cell","","class","mat-column-actions",4,"matCellDef"],["mat-header-row","",4,"matHeaderRowDef"],["mat-row","",4,"matRowDef","matRowDefColumns"],["class","mat-row",4,"matNoDataRow"],["mat-header-cell","","mat-sort-header",""],["mat-cell",""],["mat-header-cell","",1,"mat-column-actions"],["mat-cell","",1,"mat-column-actions"],[1,"action-buttons"],["mat-icon-button","","color","primary","matTooltip","View Details",3,"click"],["mat-icon-button","","color","accent","matTooltip","Edit Salary Range",3,"click",4,"appHasRole"],["mat-icon-button","","color","warn","matTooltip","Delete Salary Range",3,"click",4,"appHasRole"],["mat-icon-button","","color","accent","matTooltip","Edit Salary Range",3,"click"],["mat-icon-button","","color","warn","matTooltip","Delete Salary Range",3,"click"],["mat-header-row",""],["mat-row",""],[1,"mat-row"],[1,"mat-cell"],[1,"no-data"]],template:function(r,o){r&1&&(k(0,"page-header"),h(1,"mat-card")(2,"mat-card-header")(3,"mat-card-title"),_(4,"Salary Ranges"),p(),k(5,"span",0),R(6,$0e,4,0,"button",1),p(),h(7,"mat-card-content")(8,"div",2),R(9,W0e,2,0,"div",3)(10,oye,16,3,"table",4),p(),k(11,"mat-paginator",5),p()()),r&2&&(g(6),y("appHasRole",at(4,ZU)),g(3),y("ngIf",o.loading),g(),y("ngIf",!o.loading),g(),y("pageSizeOptions",at(5,z0e)))},dependencies:[gt,li,ze,kt,ti,$t,zt,Ut,Jt,Xt,ot,mt,Zc,Hc,Uc,qc,$c,zc,Yc,Wc,Gc,Qc,Kc,gw,_c,ir,Ew,Ml,Dw,Si,ki,Br,Eo,pi,Mn,ni,Un,il],styles:["mat-card[_ngcontent-%COMP%]{margin:16px}mat-card-header[_ngcontent-%COMP%]{display:flex;align-items:center;margin-bottom:16px;padding:16px;border-bottom:1px solid rgba(0,0,0,.12)}mat-card-header[_ngcontent-%COMP%] mat-card-title[_ngcontent-%COMP%]{font-size:20px;font-weight:500;margin:0}mat-card-header[_ngcontent-%COMP%] .flex-spacer[_ngcontent-%COMP%]{flex:1 1 auto}mat-card-header[_ngcontent-%COMP%] button[_ngcontent-%COMP%] mat-icon[_ngcontent-%COMP%]{margin-right:4px}mat-card-content[_ngcontent-%COMP%]{padding:0}.table-container[_ngcontent-%COMP%]{position:relative;min-height:300px;overflow-x:auto}.loading-spinner[_ngcontent-%COMP%]{display:flex;justify-content:center;align-items:center;min-height:300px}.salary-range-table[_ngcontent-%COMP%]{width:100%}.salary-range-table[_ngcontent-%COMP%] th[_ngcontent-%COMP%]{font-weight:600;font-size:14px;color:#000000de}.salary-range-table[_ngcontent-%COMP%] td[_ngcontent-%COMP%]{font-size:14px;color:#000000de}.salary-range-table[_ngcontent-%COMP%] .mat-column-name[_ngcontent-%COMP%]{min-width:200px}.salary-range-table[_ngcontent-%COMP%] .mat-column-minSalary[_ngcontent-%COMP%], .salary-range-table[_ngcontent-%COMP%] .mat-column-maxSalary[_ngcontent-%COMP%]{min-width:150px}.salary-range-table[_ngcontent-%COMP%] .mat-column-actions[_ngcontent-%COMP%]{width:150px;text-align:right}.salary-range-table[_ngcontent-%COMP%] .action-buttons[_ngcontent-%COMP%]{display:flex;justify-content:flex-end;gap:4px}.salary-range-table[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{margin-left:4px}.no-data[_ngcontent-%COMP%]{display:flex;flex-direction:column;align-items:center;justify-content:center;padding:48px 16px;color:#0000008a}.no-data[_ngcontent-%COMP%] mat-icon[_ngcontent-%COMP%]{font-size:48px;width:48px;height:48px;margin-bottom:16px}.no-data[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{margin:0;font-size:16px}mat-paginator[_ngcontent-%COMP%]{border-top:1px solid rgba(0,0,0,.12)}"]});let t=n;return t})();var JU=()=>["HRAdmin","Manager"];function aye(t,n){t&1&&(h(0,"div",2),k(1,"mat-spinner"),p())}function sye(t,n){if(t&1){let e=Y();h(0,"button",9),S("click",function(){I(e);let r=C(2);return A(r.editSalaryRange())}),h(1,"mat-icon"),_(2,"edit"),p()()}}function lye(t,n){if(t&1){let e=Y();h(0,"button",10),S("click",function(){I(e);let r=C(2);return A(r.deleteSalaryRange())}),h(1,"mat-icon"),_(2,"delete"),p()()}}function cye(t,n){if(t&1&&(h(0,"mat-list-item")(1,"span",7),_(2,"Created:"),p(),h(3,"span",8),_(4),me(5,"date"),p()()),t&2){let e=C(2);g(4),H(Ni(5,1,e.salaryRange.createdAt,"medium"))}}function dye(t,n){t&1&&k(0,"mat-divider")}function uye(t,n){if(t&1&&(h(0,"mat-list-item")(1,"span",7),_(2,"Last Modified:"),p(),h(3,"span",8),_(4),me(5,"date"),p()()),t&2){let e=C(2);g(4),H(Ni(5,1,e.salaryRange.lastModifiedAt,"medium"))}}function mye(t,n){if(t&1){let e=Y();h(0,"mat-card")(1,"mat-card-header")(2,"mat-card-title"),_(3),p(),h(4,"div",3),R(5,sye,3,0,"button",4)(6,lye,3,0,"button",5),h(7,"button",6),S("click",function(){I(e);let r=C();return A(r.goBack())}),h(8,"mat-icon"),_(9,"arrow_back"),p()()()(),h(10,"mat-card-content")(11,"mat-list")(12,"mat-list-item")(13,"span",7),_(14,"Name:"),p(),h(15,"span",8),_(16),p()(),k(17,"mat-divider"),h(18,"mat-list-item")(19,"span",7),_(20,"Minimum Salary:"),p(),h(21,"span",8),_(22),me(23,"currency"),p()(),k(24,"mat-divider"),h(25,"mat-list-item")(26,"span",7),_(27,"Maximum Salary:"),p(),h(28,"span",8),_(29),me(30,"currency"),p()(),k(31,"mat-divider"),R(32,cye,6,4,"mat-list-item",1)(33,dye,1,0,"mat-divider",1)(34,uye,6,4,"mat-list-item",1),p()()()}if(t&2){let e=C();g(3),H(e.salaryRange.name),g(2),y("appHasRole",at(13,JU)),g(),y("appHasRole",at(14,JU)),g(10),H(e.salaryRange.name),g(6),H(Oe(23,9,e.salaryRange.minSalary)),g(7),H(Oe(30,11,e.salaryRange.maxSalary)),g(3),y("ngIf",e.salaryRange.createdAt),g(),y("ngIf",e.salaryRange.createdAt),g(),y("ngIf",e.salaryRange.lastModifiedAt)}}function hye(t,n){t&1&&(h(0,"mat-card")(1,"mat-card-content")(2,"p"),_(3,"Salary range not found."),p()()())}var e6=(()=>{let n=class n{constructor(){this.salaryRangeService=u(jc),this.authService=u(Tt),this.route=u(wi),this.router=u(Re),this.snackBar=u(di),this.dialog=u(En),this.loading=!1}ngOnInit(){let i=this.route.snapshot.paramMap.get("id");i&&this.loadSalaryRange(i)}loadSalaryRange(i){this.loading=!0,this.salaryRangeService.getById(i).subscribe({next:r=>{this.salaryRange=r,this.loading=!1},error:r=>{console.error("Error loading salary range:",r),this.showMessage("Error loading salary range"),this.loading=!1,this.router.navigate(["/salary-ranges"])}})}editSalaryRange(){this.router.navigate(["/salary-ranges","edit",this.salaryRange.id])}deleteSalaryRange(){this.dialog.open(Er,{width:"400px",data:{title:"Delete Salary Range",message:`Are you sure you want to delete "${this.salaryRange.name}"? This action cannot be undone.`,confirmText:"Delete",cancelText:"Cancel"}}).afterClosed().subscribe(r=>{r&&this.salaryRangeService.delete(this.salaryRange.id).subscribe({next:()=>{let o=this.snackBar.open(`"${this.salaryRange.name}" has been deleted.`,"Close",{duration:3e3,horizontalPosition:"end",verticalPosition:"top"});o.afterDismissed().subscribe(()=>this.router.navigate(["/salary-ranges"])),o.onAction().subscribe(()=>this.router.navigate(["/salary-ranges"]))},error:o=>{console.error("Error deleting salary range:",o),this.showMessage("Failed to delete salary range. Please try again.")}})})}goBack(){this.router.navigate(["/salary-ranges"])}canEdit(){return this.authService.isHRAdmin()||this.authService.isManager()}canDelete(){return this.authService.isHRAdmin()||this.authService.isManager()}showMessage(i){this.snackBar.open(i,"Close",{duration:3e3,horizontalPosition:"end",verticalPosition:"top"})}};n.\u0275fac=function(r){return new(r||n)},n.\u0275cmp=E({type:n,selectors:[["app-salary-range-detail"]],decls:4,vars:3,consts:[["class","loading-spinner",4,"ngIf"],[4,"ngIf"],[1,"loading-spinner"],[1,"header-actions"],["mat-icon-button","","color","primary","matTooltip","Edit Salary Range",3,"click",4,"appHasRole"],["mat-icon-button","","color","warn","matTooltip","Delete Salary Range",3,"click",4,"appHasRole"],["mat-icon-button","","matTooltip","Back to List",3,"click"],[1,"label"],[1,"value"],["mat-icon-button","","color","primary","matTooltip","Edit Salary Range",3,"click"],["mat-icon-button","","color","warn","matTooltip","Delete Salary Range",3,"click"]],template:function(r,o){r&1&&(k(0,"page-header"),R(1,aye,2,0,"div",0)(2,mye,35,15,"mat-card",1)(3,hye,4,0,"mat-card",1)),r&2&&(g(),y("ngIf",o.loading),g(),y("ngIf",!o.loading&&o.salaryRange),g(),y("ngIf",!o.loading&&!o.salaryRange))},dependencies:[gt,li,ze,ti,$t,zt,Ut,Jt,Xt,ot,mt,ca,Fs,la,Ha,sa,Si,ki,pi,Mn,ni,Un,il,Sa],styles:[".loading-spinner[_ngcontent-%COMP%]{display:flex;justify-content:center;align-items:center;min-height:400px}mat-card[_ngcontent-%COMP%]{margin:16px;max-width:800px}mat-card-header[_ngcontent-%COMP%]{padding:16px;border-bottom:1px solid rgba(0,0,0,.12);display:flex;justify-content:space-between;align-items:center}mat-card-header[_ngcontent-%COMP%] mat-card-title[_ngcontent-%COMP%]{font-size:24px;font-weight:500;margin:0}mat-card-header[_ngcontent-%COMP%] .header-actions[_ngcontent-%COMP%]{display:flex;gap:8px}mat-card-content[_ngcontent-%COMP%]{padding:0}mat-list[_ngcontent-%COMP%]{padding:0}mat-list-item[_ngcontent-%COMP%]{height:auto!important;min-height:48px;padding:12px 16px;display:flex;justify-content:space-between;align-items:flex-start}mat-list-item[_ngcontent-%COMP%] .label[_ngcontent-%COMP%]{font-weight:500;color:#0009;min-width:180px}mat-list-item[_ngcontent-%COMP%] .value[_ngcontent-%COMP%]{flex:1;text-align:right;word-break:break-word}"]});let t=n;return t})();function pye(t,n){t&1&&(h(0,"div",0),k(1,"mat-spinner"),p())}function fye(t,n){t&1&&(h(0,"mat-error"),_(1," Range name is required "),p())}function gye(t,n){t&1&&(h(0,"mat-error"),_(1," Range name cannot exceed 100 characters "),p())}function _ye(t,n){t&1&&(h(0,"mat-error"),_(1," Minimum salary is required "),p())}function bye(t,n){t&1&&(h(0,"mat-error"),_(1," Minimum salary must be at least 0 "),p())}function vye(t,n){t&1&&(h(0,"mat-error"),_(1," Maximum salary is required "),p())}function yye(t,n){t&1&&(h(0,"mat-error"),_(1," Maximum salary must be at least 0 "),p())}function xye(t,n){t&1&&(h(0,"mat-error",13),_(1," Maximum salary must be greater than minimum salary "),p())}var cA=(()=>{let n=class n{constructor(){this.fb=u(eo),this.router=u(Re),this.route=u(wi),this.snackBar=u(di),this.salaryRangeService=u(jc),this.loading=!1,this.isEditMode=!1}ngOnInit(){this.initForm(),this.checkEditMode()}initForm(){this.salaryRangeForm=this.fb.group({name:["",[Le.required,Le.maxLength(100)]],minSalary:["",[Le.required,Le.min(0)]],maxSalary:["",[Le.required,Le.min(0)]]},{validators:this.salaryRangeValidator})}salaryRangeValidator(i){let r=i.get("minSalary")?.value,o=i.get("maxSalary")?.value;return r&&o&&parseFloat(r)>=parseFloat(o)?{salaryRangeInvalid:!0}:null}checkEditMode(){this.salaryRangeId=this.route.snapshot.paramMap.get("id")||void 0,this.isEditMode=!!this.salaryRangeId,this.isEditMode&&this.salaryRangeId&&this.loadSalaryRange(this.salaryRangeId)}loadSalaryRange(i){this.loading=!0,this.salaryRangeService.getById(i).subscribe({next:r=>{this.salaryRangeForm.patchValue({name:r.name,minSalary:r.minSalary,maxSalary:r.maxSalary}),this.loading=!1},error:r=>{console.error("Error loading salary range:",r),this.showMessage("Error loading salary range"),this.loading=!1}})}onSubmit(){if(this.salaryRangeForm.invalid){this.salaryRangeForm.markAllAsTouched();return}if(this.loading=!0,this.isEditMode&&this.salaryRangeId){let i={id:this.salaryRangeId,name:this.salaryRangeForm.value.name,minSalary:parseFloat(this.salaryRangeForm.value.minSalary),maxSalary:parseFloat(this.salaryRangeForm.value.maxSalary)};this.salaryRangeService.updateSalaryRange(i).subscribe({next:()=>{this.showMessage("Salary range updated successfully"),this.router.navigate(["/salary-ranges",this.salaryRangeId])},error:r=>{console.error("Error updating salary range:",r),this.showMessage("Error updating salary range"),this.loading=!1}})}else{let i={name:this.salaryRangeForm.value.name,minSalary:parseFloat(this.salaryRangeForm.value.minSalary),maxSalary:parseFloat(this.salaryRangeForm.value.maxSalary)};this.salaryRangeService.createSalaryRange(i).subscribe({next:r=>{console.log("Salary range created - Response:",r),console.log("Salary range ID:",r?.id),this.showMessage("Salary range created successfully"),r?.id?(console.log("Navigating to detail page:","/salary-ranges/"+r.id),this.router.navigate(["/salary-ranges",r.id])):(console.warn("No salary range ID returned, navigating to list page"),this.router.navigate(["/salary-ranges"])),this.loading=!1},error:r=>{console.error("Error creating salary range:",r),this.showMessage("Error creating salary range"),this.loading=!1}})}}onCancel(){this.router.navigate(["/salary-ranges"])}showMessage(i){this.snackBar.open(i,"Close",{duration:3e3,horizontalPosition:"end",verticalPosition:"top"})}getFormTitle(){return this.isEditMode?"Edit Salary Range":"Create Salary Range"}};n.\u0275fac=function(r){return new(r||n)},n.\u0275cmp=E({type:n,selectors:[["app-salary-range-form"]],decls:37,vars:12,consts:[[1,"loading-overlay"],[3,"ngSubmit","formGroup"],[1,"form-section"],["appearance","outline",1,"full-width"],["matInput","","formControlName","name"],[4,"ngIf"],["matInput","","type","number","formControlName","minSalary"],["matTextPrefix",""],["matInput","","type","number","formControlName","maxSalary"],["class","range-error",4,"ngIf"],[1,"form-actions"],["type","button","mat-stroked-button","",3,"click"],["type","submit","mat-raised-button","","color","primary",3,"disabled"],[1,"range-error"]],template:function(r,o){if(r&1&&(k(0,"page-header"),h(1,"mat-card")(2,"mat-card-header")(3,"mat-card-title"),_(4),p()(),h(5,"mat-card-content"),N(6,pye,2,0,"div",0),h(7,"form",1),S("ngSubmit",function(){return o.onSubmit()}),h(8,"div",2)(9,"mat-form-field",3)(10,"mat-label"),_(11,"Range Name"),p(),k(12,"input",4),R(13,fye,2,0,"mat-error",5)(14,gye,2,0,"mat-error",5),p(),h(15,"mat-form-field",3)(16,"mat-label"),_(17,"Minimum Salary"),p(),k(18,"input",6),h(19,"span",7),_(20,"$\xA0"),p(),R(21,_ye,2,0,"mat-error",5)(22,bye,2,0,"mat-error",5),p(),h(23,"mat-form-field",3)(24,"mat-label"),_(25,"Maximum Salary"),p(),k(26,"input",8),h(27,"span",7),_(28,"$\xA0"),p(),R(29,vye,2,0,"mat-error",5)(30,yye,2,0,"mat-error",5),p(),R(31,xye,2,0,"mat-error",9),p(),h(32,"div",10)(33,"button",11),S("click",function(){return o.onCancel()}),_(34," Cancel "),p(),h(35,"button",12),_(36),p()()()()()),r&2){let a,s,l,c,d,m;g(4),H(o.getFormTitle()),g(2),L(o.loading?6:-1),g(),y("formGroup",o.salaryRangeForm),g(6),y("ngIf",(a=o.salaryRangeForm.get("name"))==null?null:a.hasError("required")),g(),y("ngIf",(s=o.salaryRangeForm.get("name"))==null?null:s.hasError("maxlength")),g(7),y("ngIf",(l=o.salaryRangeForm.get("minSalary"))==null?null:l.hasError("required")),g(),y("ngIf",(c=o.salaryRangeForm.get("minSalary"))==null?null:c.hasError("min")),g(7),y("ngIf",(d=o.salaryRangeForm.get("maxSalary"))==null?null:d.hasError("required")),g(),y("ngIf",(m=o.salaryRangeForm.get("maxSalary"))==null?null:m.hasError("min")),g(),y("ngIf",o.salaryRangeForm.hasError("salaryRangeInvalid")&&o.salaryRangeForm.touched),g(4),y("disabled",o.loading),g(),ve(" ",o.isEditMode?"Update":"Create"," ")}},dependencies:[gt,li,zn,Jr,Qi,cu,ei,Xr,Ki,Lr,ze,kt,$t,zt,Ut,Jt,Xt,$i,Oi,sn,xo,nu,rr,hn,Si,ki,pi,ni],styles:["mat-card[_ngcontent-%COMP%]{margin:16px;max-width:800px}mat-card-header[_ngcontent-%COMP%]{margin-bottom:16px;padding:16px;border-bottom:1px solid rgba(0,0,0,.12)}mat-card-header[_ngcontent-%COMP%] mat-card-title[_ngcontent-%COMP%]{font-size:20px;font-weight:500;margin:0}mat-card-content[_ngcontent-%COMP%]{padding:16px;position:relative}.loading-overlay[_ngcontent-%COMP%]{position:absolute;inset:0;background-color:#fffc;display:flex;align-items:center;justify-content:center;z-index:1000}.form-section[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:16px;margin-bottom:24px}.form-section[_ngcontent-%COMP%] .full-width[_ngcontent-%COMP%]{width:100%}.form-section[_ngcontent-%COMP%] .range-error[_ngcontent-%COMP%]{color:#f44336;font-size:12px;margin-top:-8px}.form-actions[_ngcontent-%COMP%]{display:flex;gap:12px;justify-content:flex-end;padding-top:16px;border-top:1px solid rgba(0,0,0,.12)}"]});let t=n;return t})();var Cye=["*",[["mat-chip-avatar"],["","matChipAvatar",""]],[["mat-chip-trailing-icon"],["","matChipRemove",""],["","matChipTrailingIcon",""]]],wye=["*","mat-chip-avatar, [matChipAvatar]","mat-chip-trailing-icon,[matChipRemove],[matChipTrailingIcon]"];function Dye(t,n){t&1&&(h(0,"span",3),oe(1,1),p())}function Eye(t,n){t&1&&(h(0,"span",6),oe(1,2),p())}var Mye=["*"];var kye=new T("mat-chips-default-options",{providedIn:"root",factory:()=>({separatorKeyCodes:[13]})}),t6=new T("MatChipAvatar"),i6=new T("MatChipTrailingIcon"),n6=new T("MatChipEdit"),r6=new T("MatChipRemove"),a6=new T("MatChip"),o6=(()=>{class t{_elementRef=u(q);_parentChip=u(a6);isInteractive=!0;_isPrimary=!0;_isLeading=!1;get disabled(){return this._disabled||this._parentChip?.disabled||!1}set disabled(e){this._disabled=e}_disabled=!1;tabIndex=-1;_allowFocusWhenDisabled=!1;_getDisabledAttribute(){return this.disabled&&!this._allowFocusWhenDisabled?"":null}_getTabindex(){return this.disabled&&!this._allowFocusWhenDisabled||!this.isInteractive?null:this.tabIndex.toString()}constructor(){u(ut).load(Di),this._elementRef.nativeElement.nodeName==="BUTTON"&&this._elementRef.nativeElement.setAttribute("type","button")}focus(){this._elementRef.nativeElement.focus()}_handleClick(e){!this.disabled&&this.isInteractive&&this._isPrimary&&(e.preventDefault(),this._parentChip._handlePrimaryActionInteraction())}_handleKeydown(e){(e.keyCode===13||e.keyCode===32)&&!this.disabled&&this.isInteractive&&this._isPrimary&&!this._parentChip._isEditing&&(e.preventDefault(),this._parentChip._handlePrimaryActionInteraction())}static \u0275fac=function(i){return new(i||t)};static \u0275dir=F({type:t,selectors:[["","matChipAction",""]],hostAttrs:[1,"mdc-evolution-chip__action","mat-mdc-chip-action"],hostVars:11,hostBindings:function(i,r){i&1&&S("click",function(a){return r._handleClick(a)})("keydown",function(a){return r._handleKeydown(a)}),i&2&&(X("tabindex",r._getTabindex())("disabled",r._getDisabledAttribute())("aria-disabled",r.disabled),G("mdc-evolution-chip__action--primary",r._isPrimary)("mdc-evolution-chip__action--presentational",!r.isInteractive)("mdc-evolution-chip__action--secondary",!r._isPrimary)("mdc-evolution-chip__action--trailing",!r._isPrimary&&!r._isLeading))},inputs:{isInteractive:"isInteractive",disabled:[2,"disabled","disabled",V],tabIndex:[2,"tabIndex","tabIndex",e=>e==null?-1:ct(e)],_allowFocusWhenDisabled:"_allowFocusWhenDisabled"}})}return t})();var dA=(()=>{class t{_changeDetectorRef=u(ye);_elementRef=u(q);_tagName=u(ZM);_ngZone=u(ae);_focusMonitor=u(Yt);_globalRippleOptions=u(Cs,{optional:!0});_document=u(ge);_onFocus=new z;_onBlur=new z;_isBasicChip;role=null;_hasFocusInternal=!1;_pendingFocus;_actionChanges;_animationsDisabled=Ye();_allLeadingIcons;_allTrailingIcons;_allEditIcons;_allRemoveIcons;_hasFocus(){return this._hasFocusInternal}id=u(Ze).getId("mat-mdc-chip-");ariaLabel=null;ariaDescription=null;_chipListDisabled=!1;_hadFocusOnRemove=!1;_textElement;get value(){return this._value!==void 0?this._value:this._textElement.textContent.trim()}set value(e){this._value=e}_value;color;removable=!0;highlighted=!1;disableRipple=!1;get disabled(){return this._disabled||this._chipListDisabled}set disabled(e){this._disabled=e}_disabled=!1;removed=new U;destroyed=new U;basicChipAttrName="mat-basic-chip";leadingIcon;editIcon;trailingIcon;removeIcon;primaryAction;_rippleLoader=u(Z0);_injector=u(de);constructor(){let e=u(ut);e.load(Di),e.load(Qr),this._monitorFocus(),this._rippleLoader?.configureRipple(this._elementRef.nativeElement,{className:"mat-mdc-chip-ripple",disabled:this._isRippleDisabled()})}ngOnInit(){this._isBasicChip=this._elementRef.nativeElement.hasAttribute(this.basicChipAttrName)||this._tagName.toLowerCase()===this.basicChipAttrName}ngAfterViewInit(){this._textElement=this._elementRef.nativeElement.querySelector(".mat-mdc-chip-action-label"),this._pendingFocus&&(this._pendingFocus=!1,this.focus())}ngAfterContentInit(){this._actionChanges=Je(this._allLeadingIcons.changes,this._allTrailingIcons.changes,this._allEditIcons.changes,this._allRemoveIcons.changes).subscribe(()=>this._changeDetectorRef.markForCheck())}ngDoCheck(){this._rippleLoader.setDisabled(this._elementRef.nativeElement,this._isRippleDisabled())}ngOnDestroy(){this._focusMonitor.stopMonitoring(this._elementRef),this._rippleLoader?.destroyRipple(this._elementRef.nativeElement),this._actionChanges?.unsubscribe(),this.destroyed.emit({chip:this}),this.destroyed.complete()}remove(){this.removable&&(this._hadFocusOnRemove=this._hasFocus(),this.removed.emit({chip:this}))}_isRippleDisabled(){return this.disabled||this.disableRipple||this._animationsDisabled||this._isBasicChip||!this._hasInteractiveActions()||!!this._globalRippleOptions?.disabled}_hasTrailingIcon(){return!!(this.trailingIcon||this.removeIcon)}_handleKeydown(e){(e.keyCode===8&&!e.repeat||e.keyCode===46)&&(e.preventDefault(),this.remove())}focus(){this.disabled||(this.primaryAction?this.primaryAction.focus():this._pendingFocus=!0)}_getSourceAction(e){return this._getActions().find(i=>{let r=i._elementRef.nativeElement;return r===e||r.contains(e)})}_getActions(){let e=[];return this.editIcon&&e.push(this.editIcon),this.primaryAction&&e.push(this.primaryAction),this.removeIcon&&e.push(this.removeIcon),this.trailingIcon&&e.push(this.trailingIcon),e}_handlePrimaryActionInteraction(){}_hasInteractiveActions(){return this._getActions().some(e=>e.isInteractive)}_edit(e){}_monitorFocus(){this._focusMonitor.monitor(this._elementRef,!0).subscribe(e=>{let i=e!==null;i!==this._hasFocusInternal&&(this._hasFocusInternal=i,i?this._onFocus.next({chip:this}):(this._changeDetectorRef.markForCheck(),setTimeout(()=>this._ngZone.run(()=>this._onBlur.next({chip:this})))))})}static \u0275fac=function(i){return new(i||t)};static \u0275cmp=E({type:t,selectors:[["mat-basic-chip"],["","mat-basic-chip",""],["mat-chip"],["","mat-chip",""]],contentQueries:function(i,r,o){if(i&1&&(xe(o,t6,5),xe(o,n6,5),xe(o,i6,5),xe(o,r6,5),xe(o,t6,5),xe(o,i6,5),xe(o,n6,5),xe(o,r6,5)),i&2){let a;B(a=j())&&(r.leadingIcon=a.first),B(a=j())&&(r.editIcon=a.first),B(a=j())&&(r.trailingIcon=a.first),B(a=j())&&(r.removeIcon=a.first),B(a=j())&&(r._allLeadingIcons=a),B(a=j())&&(r._allTrailingIcons=a),B(a=j())&&(r._allEditIcons=a),B(a=j())&&(r._allRemoveIcons=a)}},viewQuery:function(i,r){if(i&1&&ie(o6,5),i&2){let o;B(o=j())&&(r.primaryAction=o.first)}},hostAttrs:[1,"mat-mdc-chip"],hostVars:31,hostBindings:function(i,r){i&1&&S("keydown",function(a){return r._handleKeydown(a)}),i&2&&(si("id",r.id),X("role",r.role)("aria-label",r.ariaLabel),it("mat-"+(r.color||"primary")),G("mdc-evolution-chip",!r._isBasicChip)("mdc-evolution-chip--disabled",r.disabled)("mdc-evolution-chip--with-trailing-action",r._hasTrailingIcon())("mdc-evolution-chip--with-primary-graphic",r.leadingIcon)("mdc-evolution-chip--with-primary-icon",r.leadingIcon)("mdc-evolution-chip--with-avatar",r.leadingIcon)("mat-mdc-chip-with-avatar",r.leadingIcon)("mat-mdc-chip-highlighted",r.highlighted)("mat-mdc-chip-disabled",r.disabled)("mat-mdc-basic-chip",r._isBasicChip)("mat-mdc-standard-chip",!r._isBasicChip)("mat-mdc-chip-with-trailing-icon",r._hasTrailingIcon())("_mat-animation-noopable",r._animationsDisabled))},inputs:{role:"role",id:"id",ariaLabel:[0,"aria-label","ariaLabel"],ariaDescription:[0,"aria-description","ariaDescription"],value:"value",color:"color",removable:[2,"removable","removable",V],highlighted:[2,"highlighted","highlighted",V],disableRipple:[2,"disableRipple","disableRipple",V],disabled:[2,"disabled","disabled",V]},outputs:{removed:"removed",destroyed:"destroyed"},exportAs:["matChip"],features:[Ce([{provide:a6,useExisting:t}])],ngContentSelectors:wye,decls:8,vars:3,consts:[[1,"mat-mdc-chip-focus-overlay"],[1,"mdc-evolution-chip__cell","mdc-evolution-chip__cell--primary"],["matChipAction","",3,"isInteractive"],[1,"mdc-evolution-chip__graphic","mat-mdc-chip-graphic"],[1,"mdc-evolution-chip__text-label","mat-mdc-chip-action-label"],[1,"mat-mdc-chip-primary-focus-indicator","mat-focus-indicator"],[1,"mdc-evolution-chip__cell","mdc-evolution-chip__cell--trailing"]],template:function(i,r){i&1&&(Me(Cye),k(0,"span",0),h(1,"span",1)(2,"span",2),N(3,Dye,2,0,"span",3),h(4,"span",4),oe(5),k(6,"span",5),p()()(),N(7,Eye,2,0,"span",6)),i&2&&(g(2),y("isInteractive",!1),g(),L(r.leadingIcon?3:-1),g(4),L(r._hasTrailingIcon()?7:-1))},dependencies:[o6],styles:[`.mdc-evolution-chip,.mdc-evolution-chip__cell,.mdc-evolution-chip__action{display:inline-flex;align-items:center}.mdc-evolution-chip{position:relative;max-width:100%}.mdc-evolution-chip__cell,.mdc-evolution-chip__action{height:100%}.mdc-evolution-chip__cell--primary{flex-basis:100%;overflow-x:hidden}.mdc-evolution-chip__cell--trailing{flex:1 0 auto}.mdc-evolution-chip__action{align-items:center;background:none;border:none;box-sizing:content-box;cursor:pointer;display:inline-flex;justify-content:center;outline:none;padding:0;text-decoration:none;color:inherit}.mdc-evolution-chip__action--presentational{cursor:auto}.mdc-evolution-chip--disabled,.mdc-evolution-chip__action:disabled{pointer-events:none}@media(forced-colors: active){.mdc-evolution-chip--disabled,.mdc-evolution-chip__action:disabled{forced-color-adjust:none}}.mdc-evolution-chip__action--primary{font:inherit;letter-spacing:inherit;white-space:inherit;overflow-x:hidden}.mat-mdc-standard-chip .mdc-evolution-chip__action--primary::before{border-width:var(--mat-chip-outline-width, 1px);border-radius:var(--mat-chip-container-shape-radius, 8px);box-sizing:border-box;content:"";height:100%;left:0;position:absolute;pointer-events:none;top:0;width:100%;z-index:1;border-style:solid}.mat-mdc-standard-chip .mdc-evolution-chip__action--primary{padding-left:12px;padding-right:12px}.mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic .mdc-evolution-chip__action--primary{padding-left:0;padding-right:12px}[dir=rtl] .mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic .mdc-evolution-chip__action--primary{padding-left:12px;padding-right:0}.mat-mdc-standard-chip:not(.mdc-evolution-chip--disabled) .mdc-evolution-chip__action--primary::before{border-color:var(--mat-chip-outline-color, var(--mat-sys-outline))}.mdc-evolution-chip__action--primary:not(.mdc-evolution-chip__action--presentational):not(.mdc-ripple-upgraded):focus::before{border-color:var(--mat-chip-focus-outline-color, var(--mat-sys-on-surface-variant))}.mat-mdc-standard-chip.mdc-evolution-chip--disabled .mdc-evolution-chip__action--primary::before{border-color:var(--mat-chip-disabled-outline-color, color-mix(in srgb, var(--mat-sys-on-surface) 12%, transparent))}.mat-mdc-standard-chip.mdc-evolution-chip--selected .mdc-evolution-chip__action--primary::before{border-width:var(--mat-chip-flat-selected-outline-width, 0)}.mat-mdc-basic-chip .mdc-evolution-chip__action--primary{font:inherit}.mat-mdc-standard-chip.mdc-evolution-chip--with-leading-action .mdc-evolution-chip__action--primary{padding-left:0;padding-right:12px}[dir=rtl] .mat-mdc-standard-chip.mdc-evolution-chip--with-leading-action .mdc-evolution-chip__action--primary{padding-left:12px;padding-right:0}.mat-mdc-standard-chip.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--primary{padding-left:12px;padding-right:0}[dir=rtl] .mat-mdc-standard-chip.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--primary{padding-left:0;padding-right:12px}.mat-mdc-standard-chip.mdc-evolution-chip--with-leading-action.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--primary{padding-left:0;padding-right:0}.mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--primary{padding-left:0;padding-right:0}[dir=rtl] .mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--primary{padding-left:0;padding-right:0}.mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic .mdc-evolution-chip__action--primary{padding-left:0;padding-right:12px}[dir=rtl] .mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic .mdc-evolution-chip__action--primary{padding-left:12px;padding-right:0}.mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--primary{padding-left:0;padding-right:0}[dir=rtl] .mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--primary{padding-left:0;padding-right:0}.mdc-evolution-chip__action--secondary{position:relative;overflow:visible}.mat-mdc-standard-chip:not(.mdc-evolution-chip--disabled) .mdc-evolution-chip__action--secondary{color:var(--mat-chip-with-trailing-icon-trailing-icon-color, var(--mat-sys-on-surface-variant))}.mat-mdc-standard-chip.mdc-evolution-chip--disabled .mdc-evolution-chip__action--secondary{color:var(--mat-chip-with-trailing-icon-disabled-trailing-icon-color, var(--mat-sys-on-surface))}.mat-mdc-standard-chip.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--secondary{padding-left:8px;padding-right:8px}.mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--secondary{padding-left:8px;padding-right:8px}.mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--secondary{padding-left:8px;padding-right:8px}[dir=rtl] .mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--secondary{padding-left:8px;padding-right:8px}.mdc-evolution-chip__text-label{-webkit-user-select:none;user-select:none;white-space:nowrap;text-overflow:ellipsis;overflow:hidden}.mat-mdc-standard-chip .mdc-evolution-chip__text-label{font-family:var(--mat-chip-label-text-font, var(--mat-sys-label-large-font));line-height:var(--mat-chip-label-text-line-height, var(--mat-sys-label-large-line-height));font-size:var(--mat-chip-label-text-size, var(--mat-sys-label-large-size));font-weight:var(--mat-chip-label-text-weight, var(--mat-sys-label-large-weight));letter-spacing:var(--mat-chip-label-text-tracking, var(--mat-sys-label-large-tracking))}.mat-mdc-standard-chip:not(.mdc-evolution-chip--disabled) .mdc-evolution-chip__text-label{color:var(--mat-chip-label-text-color, var(--mat-sys-on-surface-variant))}.mat-mdc-standard-chip.mdc-evolution-chip--selected:not(.mdc-evolution-chip--disabled) .mdc-evolution-chip__text-label{color:var(--mat-chip-selected-label-text-color, var(--mat-sys-on-secondary-container))}.mat-mdc-standard-chip.mdc-evolution-chip--disabled .mdc-evolution-chip__text-label,.mat-mdc-standard-chip.mdc-evolution-chip--selected.mdc-evolution-chip--disabled .mdc-evolution-chip__text-label{color:var(--mat-chip-disabled-label-text-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent))}.mdc-evolution-chip__graphic{align-items:center;display:inline-flex;justify-content:center;overflow:hidden;pointer-events:none;position:relative;flex:1 0 auto}.mat-mdc-standard-chip .mdc-evolution-chip__graphic{width:var(--mat-chip-with-avatar-avatar-size, 24px);height:var(--mat-chip-with-avatar-avatar-size, 24px);font-size:var(--mat-chip-with-avatar-avatar-size, 24px)}.mdc-evolution-chip--selecting .mdc-evolution-chip__graphic{transition:width 150ms 0ms cubic-bezier(0.4, 0, 0.2, 1)}.mdc-evolution-chip--selectable:not(.mdc-evolution-chip--selected):not(.mdc-evolution-chip--with-primary-icon) .mdc-evolution-chip__graphic{width:0}.mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic .mdc-evolution-chip__graphic{padding-left:6px;padding-right:6px}.mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic .mdc-evolution-chip__graphic{padding-left:4px;padding-right:8px}[dir=rtl] .mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic .mdc-evolution-chip__graphic{padding-left:8px;padding-right:4px}.mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__graphic{padding-left:6px;padding-right:6px}.mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__graphic{padding-left:4px;padding-right:8px}[dir=rtl] .mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__graphic{padding-left:8px;padding-right:4px}.mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-leading-action .mdc-evolution-chip__graphic{padding-left:0}.mdc-evolution-chip__checkmark{position:absolute;opacity:0;top:50%;left:50%;height:20px;width:20px}.mat-mdc-standard-chip:not(.mdc-evolution-chip--disabled) .mdc-evolution-chip__checkmark{color:var(--mat-chip-with-icon-selected-icon-color, var(--mat-sys-on-secondary-container))}.mat-mdc-standard-chip.mdc-evolution-chip--disabled .mdc-evolution-chip__checkmark{color:var(--mat-chip-with-icon-disabled-icon-color, var(--mat-sys-on-surface))}.mdc-evolution-chip--selecting .mdc-evolution-chip__checkmark{transition:transform 150ms 0ms cubic-bezier(0.4, 0, 0.2, 1);transform:translate(-75%, -50%)}.mdc-evolution-chip--selected .mdc-evolution-chip__checkmark{transform:translate(-50%, -50%);opacity:1}.mdc-evolution-chip__checkmark-svg{display:block}.mdc-evolution-chip__checkmark-path{stroke-width:2px;stroke-dasharray:29.7833385;stroke-dashoffset:29.7833385;stroke:currentColor}.mdc-evolution-chip--selecting .mdc-evolution-chip__checkmark-path{transition:stroke-dashoffset 150ms 45ms cubic-bezier(0.4, 0, 0.2, 1)}.mdc-evolution-chip--selected .mdc-evolution-chip__checkmark-path{stroke-dashoffset:0}@media(forced-colors: active){.mdc-evolution-chip__checkmark-path{stroke:CanvasText !important}}.mat-mdc-standard-chip .mdc-evolution-chip__icon--trailing{height:18px;width:18px;font-size:18px}.mdc-evolution-chip--disabled .mdc-evolution-chip__icon--trailing.mat-mdc-chip-remove{opacity:calc(var(--mat-chip-trailing-action-opacity, 1)*var(--mat-chip-with-trailing-icon-disabled-trailing-icon-opacity, 0.38))}.mdc-evolution-chip--disabled .mdc-evolution-chip__icon--trailing.mat-mdc-chip-remove:focus{opacity:calc(var(--mat-chip-trailing-action-focus-opacity, 1)*var(--mat-chip-with-trailing-icon-disabled-trailing-icon-opacity, 0.38))}.mat-mdc-standard-chip{border-radius:var(--mat-chip-container-shape-radius, 8px);height:var(--mat-chip-container-height, 32px)}.mat-mdc-standard-chip:not(.mdc-evolution-chip--disabled){background-color:var(--mat-chip-elevated-container-color, transparent)}.mat-mdc-standard-chip.mdc-evolution-chip--disabled{background-color:var(--mat-chip-elevated-disabled-container-color)}.mat-mdc-standard-chip.mdc-evolution-chip--selected:not(.mdc-evolution-chip--disabled){background-color:var(--mat-chip-elevated-selected-container-color, var(--mat-sys-secondary-container))}.mat-mdc-standard-chip.mdc-evolution-chip--selected.mdc-evolution-chip--disabled{background-color:var(--mat-chip-flat-disabled-selected-container-color, color-mix(in srgb, var(--mat-sys-on-surface) 12%, transparent))}@media(forced-colors: active){.mat-mdc-standard-chip{outline:solid 1px}}.mat-mdc-standard-chip .mdc-evolution-chip__icon--primary{border-radius:var(--mat-chip-with-avatar-avatar-shape-radius, 24px);width:var(--mat-chip-with-icon-icon-size, 18px);height:var(--mat-chip-with-icon-icon-size, 18px);font-size:var(--mat-chip-with-icon-icon-size, 18px)}.mdc-evolution-chip--selected .mdc-evolution-chip__icon--primary{opacity:0}.mat-mdc-standard-chip:not(.mdc-evolution-chip--disabled) .mdc-evolution-chip__icon--primary{color:var(--mat-chip-with-icon-icon-color, var(--mat-sys-on-surface-variant))}.mat-mdc-standard-chip.mdc-evolution-chip--disabled .mdc-evolution-chip__icon--primary{color:var(--mat-chip-with-icon-disabled-icon-color, var(--mat-sys-on-surface))}.mat-mdc-chip-highlighted{--mat-chip-with-icon-icon-color: var(--mat-chip-with-icon-selected-icon-color, var(--mat-sys-on-secondary-container));--mat-chip-elevated-container-color: var(--mat-chip-elevated-selected-container-color, var(--mat-sys-secondary-container));--mat-chip-label-text-color: var(--mat-chip-selected-label-text-color, var(--mat-sys-on-secondary-container));--mat-chip-outline-width: var(--mat-chip-flat-selected-outline-width, 0)}.mat-mdc-chip-focus-overlay{background:var(--mat-chip-focus-state-layer-color, var(--mat-sys-on-surface-variant))}.mat-mdc-chip-selected .mat-mdc-chip-focus-overlay,.mat-mdc-chip-highlighted .mat-mdc-chip-focus-overlay{background:var(--mat-chip-selected-focus-state-layer-color, var(--mat-sys-on-secondary-container))}.mat-mdc-chip:hover .mat-mdc-chip-focus-overlay{background:var(--mat-chip-hover-state-layer-color, var(--mat-sys-on-surface-variant));opacity:var(--mat-chip-hover-state-layer-opacity, var(--mat-sys-hover-state-layer-opacity))}.mat-mdc-chip-focus-overlay .mat-mdc-chip-selected:hover,.mat-mdc-chip-highlighted:hover .mat-mdc-chip-focus-overlay{background:var(--mat-chip-selected-hover-state-layer-color, var(--mat-sys-on-secondary-container));opacity:var(--mat-chip-selected-hover-state-layer-opacity, var(--mat-sys-hover-state-layer-opacity))}.mat-mdc-chip.cdk-focused .mat-mdc-chip-focus-overlay{background:var(--mat-chip-focus-state-layer-color, var(--mat-sys-on-surface-variant));opacity:var(--mat-chip-focus-state-layer-opacity, var(--mat-sys-focus-state-layer-opacity))}.mat-mdc-chip-selected.cdk-focused .mat-mdc-chip-focus-overlay,.mat-mdc-chip-highlighted.cdk-focused .mat-mdc-chip-focus-overlay{background:var(--mat-chip-selected-focus-state-layer-color, var(--mat-sys-on-secondary-container));opacity:var(--mat-chip-selected-focus-state-layer-opacity, var(--mat-sys-focus-state-layer-opacity))}.mdc-evolution-chip--disabled:not(.mdc-evolution-chip--selected) .mat-mdc-chip-avatar{opacity:var(--mat-chip-with-avatar-disabled-avatar-opacity, 0.38)}.mdc-evolution-chip--disabled .mdc-evolution-chip__icon--trailing{opacity:var(--mat-chip-with-trailing-icon-disabled-trailing-icon-opacity, 0.38)}.mdc-evolution-chip--disabled.mdc-evolution-chip--selected .mdc-evolution-chip__checkmark{opacity:var(--mat-chip-with-icon-disabled-icon-opacity, 0.38)}.mat-mdc-standard-chip.mdc-evolution-chip--disabled{opacity:var(--mat-chip-disabled-container-opacity, 1)}.mat-mdc-standard-chip.mdc-evolution-chip--selected .mdc-evolution-chip__icon--trailing,.mat-mdc-standard-chip.mat-mdc-chip-highlighted .mdc-evolution-chip__icon--trailing{color:var(--mat-chip-selected-trailing-icon-color, var(--mat-sys-on-secondary-container))}.mat-mdc-standard-chip.mdc-evolution-chip--selected.mdc-evolution-chip--disabled .mdc-evolution-chip__icon--trailing,.mat-mdc-standard-chip.mat-mdc-chip-highlighted.mdc-evolution-chip--disabled .mdc-evolution-chip__icon--trailing{color:var(--mat-chip-selected-disabled-trailing-icon-color, var(--mat-sys-on-surface))}.mat-mdc-chip-edit,.mat-mdc-chip-remove{opacity:var(--mat-chip-trailing-action-opacity, 1)}.mat-mdc-chip-edit:focus,.mat-mdc-chip-remove:focus{opacity:var(--mat-chip-trailing-action-focus-opacity, 1)}.mat-mdc-chip-edit::after,.mat-mdc-chip-remove::after{background-color:var(--mat-chip-trailing-action-state-layer-color, var(--mat-sys-on-surface-variant))}.mat-mdc-chip-edit:hover::after,.mat-mdc-chip-remove:hover::after{opacity:var(--mat-chip-trailing-action-hover-state-layer-opacity, var(--mat-sys-hover-state-layer-opacity))}.mat-mdc-chip-edit:focus::after,.mat-mdc-chip-remove:focus::after{opacity:var(--mat-chip-trailing-action-focus-state-layer-opacity, var(--mat-sys-focus-state-layer-opacity))}.mat-mdc-chip-selected .mat-mdc-chip-remove::after,.mat-mdc-chip-highlighted .mat-mdc-chip-remove::after{background-color:var(--mat-chip-selected-trailing-action-state-layer-color, var(--mat-sys-on-secondary-container))}.mat-mdc-standard-chip{-webkit-tap-highlight-color:rgba(0,0,0,0)}.mat-mdc-standard-chip .mdc-evolution-chip__cell--primary,.mat-mdc-standard-chip .mdc-evolution-chip__action--primary,.mat-mdc-standard-chip .mat-mdc-chip-action-label{overflow:visible}.mat-mdc-standard-chip .mat-mdc-chip-graphic,.mat-mdc-standard-chip .mat-mdc-chip-trailing-icon{box-sizing:content-box}.mat-mdc-standard-chip._mat-animation-noopable,.mat-mdc-standard-chip._mat-animation-noopable .mdc-evolution-chip__graphic,.mat-mdc-standard-chip._mat-animation-noopable .mdc-evolution-chip__checkmark,.mat-mdc-standard-chip._mat-animation-noopable .mdc-evolution-chip__checkmark-path{transition-duration:1ms;animation-duration:1ms}.mat-mdc-chip-focus-overlay{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none;opacity:0;border-radius:inherit;transition:opacity 150ms linear}._mat-animation-noopable .mat-mdc-chip-focus-overlay{transition:none}.mat-mdc-basic-chip .mat-mdc-chip-focus-overlay{display:none}.mat-mdc-chip .mat-ripple.mat-mdc-chip-ripple{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none;border-radius:inherit}.mat-mdc-chip-avatar{text-align:center;line-height:1;color:var(--mat-chip-with-icon-icon-color, currentColor)}.mat-mdc-chip{position:relative;z-index:0}.mat-mdc-chip-action-label{text-align:left;z-index:1}[dir=rtl] .mat-mdc-chip-action-label{text-align:right}.mat-mdc-chip.mdc-evolution-chip--with-trailing-action .mat-mdc-chip-action-label{position:relative}.mat-mdc-chip-action-label .mat-mdc-chip-primary-focus-indicator{position:absolute;top:0;right:0;bottom:0;left:0;pointer-events:none}.mat-mdc-chip-action-label .mat-focus-indicator::before{margin:calc(calc(var(--mat-focus-indicator-border-width, 3px) + 2px)*-1)}.mat-mdc-chip-edit::before,.mat-mdc-chip-remove::before{margin:calc(var(--mat-focus-indicator-border-width, 3px)*-1);left:8px;right:8px}.mat-mdc-chip-edit::after,.mat-mdc-chip-remove::after{content:"";display:block;opacity:0;position:absolute;top:-3px;bottom:-3px;left:5px;right:5px;border-radius:50%;box-sizing:border-box;padding:12px;margin:-12px;background-clip:content-box}.mat-mdc-chip-edit .mat-icon,.mat-mdc-chip-remove .mat-icon{width:18px;height:18px;font-size:18px;box-sizing:content-box}.mat-chip-edit-input{cursor:text;display:inline-block;color:inherit;outline:0}@media(forced-colors: active){.mat-mdc-chip-selected:not(.mat-mdc-chip-multiple){outline-width:3px}}.mat-mdc-chip-action:focus .mat-focus-indicator::before{content:""}.mdc-evolution-chip__icon,.mat-mdc-chip-edit .mat-icon,.mat-mdc-chip-remove .mat-icon{min-height:fit-content}img.mdc-evolution-chip__icon{min-height:0} +`],encapsulation:2,changeDetection:0})}return t})();var s6=(()=>{class t{_elementRef=u(q);_changeDetectorRef=u(ye);_dir=u(Vt,{optional:!0});_lastDestroyedFocusedChipIndex=null;_keyManager;_destroyed=new z;_defaultRole="presentation";get chipFocusChanges(){return this._getChipStream(e=>e._onFocus)}get chipDestroyedChanges(){return this._getChipStream(e=>e.destroyed)}get chipRemovedChanges(){return this._getChipStream(e=>e.removed)}get disabled(){return this._disabled}set disabled(e){this._disabled=e,this._syncChipsState()}_disabled=!1;get empty(){return!this._chips||this._chips.length===0}get role(){return this._explicitRole?this._explicitRole:this.empty?null:this._defaultRole}tabIndex=0;set role(e){this._explicitRole=e}_explicitRole=null;get focused(){return this._hasFocusedChip()}_chips;_chipActions=new pr;constructor(){}ngAfterViewInit(){this._setUpFocusManagement(),this._trackChipSetChanges(),this._trackDestroyedFocusedChip()}ngOnDestroy(){this._keyManager?.destroy(),this._chipActions.destroy(),this._destroyed.next(),this._destroyed.complete()}_hasFocusedChip(){return this._chips&&this._chips.some(e=>e._hasFocus())}_syncChipsState(){this._chips?.forEach(e=>{e._chipListDisabled=this._disabled,e._changeDetectorRef.markForCheck()})}focus(){}_handleKeydown(e){this._originatesFromChip(e)&&this._keyManager.onKeydown(e)}_isValidIndex(e){return e>=0&&ethis._elementRef.nativeElement.tabIndex=e))}_getChipStream(e){return this._chips.changes.pipe(He(null),$e(()=>Je(...this._chips.map(e))))}_originatesFromChip(e){let i=e.target;for(;i&&i!==this._elementRef.nativeElement;){if(i.classList.contains("mat-mdc-chip"))return!0;i=i.parentElement}return!1}_setUpFocusManagement(){this._chips.changes.pipe(He(this._chips)).subscribe(e=>{let i=[];e.forEach(r=>r._getActions().forEach(o=>i.push(o))),this._chipActions.reset(i),this._chipActions.notifyOnChanges()}),this._keyManager=new bs(this._chipActions).withVerticalOrientation().withHorizontalOrientation(this._dir?this._dir.value:"ltr").withHomeAndEnd().skipPredicate(e=>this._skipPredicate(e)),this.chipFocusChanges.pipe(Te(this._destroyed)).subscribe(({chip:e})=>{let i=e._getSourceAction(document.activeElement);i&&this._keyManager.updateActiveItem(i)}),this._dir?.change.pipe(Te(this._destroyed)).subscribe(e=>this._keyManager.withHorizontalOrientation(e))}_skipPredicate(e){return!e.isInteractive||e.disabled}_trackChipSetChanges(){this._chips.changes.pipe(He(null),Te(this._destroyed)).subscribe(()=>{this.disabled&&Promise.resolve().then(()=>this._syncChipsState()),this._redirectDestroyedChipFocus()})}_trackDestroyedFocusedChip(){this.chipDestroyedChanges.pipe(Te(this._destroyed)).subscribe(e=>{let r=this._chips.toArray().indexOf(e.chip),o=e.chip._hasFocus(),a=e.chip._hadFocusOnRemove&&this._keyManager.activeItem&&e.chip._getActions().includes(this._keyManager.activeItem),s=o||a;this._isValidIndex(r)&&s&&(this._lastDestroyedFocusedChipIndex=r)})}_redirectDestroyedChipFocus(){if(this._lastDestroyedFocusedChipIndex!=null){if(this._chips.length){let e=Math.min(this._lastDestroyedFocusedChipIndex,this._chips.length-1),i=this._chips.toArray()[e];i.disabled?this._chips.length===1?this.focus():this._keyManager.setPreviousItemActive():i.focus()}else this.focus();this._lastDestroyedFocusedChipIndex=null}}static \u0275fac=function(i){return new(i||t)};static \u0275cmp=E({type:t,selectors:[["mat-chip-set"]],contentQueries:function(i,r,o){if(i&1&&xe(o,dA,5),i&2){let a;B(a=j())&&(r._chips=a)}},hostAttrs:[1,"mat-mdc-chip-set","mdc-evolution-chip-set"],hostVars:1,hostBindings:function(i,r){i&1&&S("keydown",function(a){return r._handleKeydown(a)}),i&2&&X("role",r.role)},inputs:{disabled:[2,"disabled","disabled",V],role:"role",tabIndex:[2,"tabIndex","tabIndex",e=>e==null?0:ct(e)]},ngContentSelectors:Mye,decls:2,vars:0,consts:[["role","presentation",1,"mdc-evolution-chip-set__chips"]],template:function(i,r){i&1&&(Me(),ft(0,"div",0),oe(1),vt())},styles:[`.mat-mdc-chip-set{display:flex}.mat-mdc-chip-set:focus{outline:none}.mat-mdc-chip-set .mdc-evolution-chip-set__chips{min-width:100%;margin-left:-8px;margin-right:0}.mat-mdc-chip-set .mdc-evolution-chip{margin:4px 0 4px 8px}[dir=rtl] .mat-mdc-chip-set .mdc-evolution-chip-set__chips{margin-left:0;margin-right:-8px}[dir=rtl] .mat-mdc-chip-set .mdc-evolution-chip{margin-left:0;margin-right:8px}.mdc-evolution-chip-set__chips{display:flex;flex-flow:wrap;min-width:0}.mat-mdc-chip-set-stacked{flex-direction:column;align-items:flex-start}.mat-mdc-chip-set-stacked .mat-mdc-chip{width:100%}.mat-mdc-chip-set-stacked .mdc-evolution-chip__graphic{flex-grow:0}.mat-mdc-chip-set-stacked .mdc-evolution-chip__action--primary{flex-basis:100%;justify-content:start}input.mat-mdc-chip-input{flex:1 0 150px;margin-left:8px}[dir=rtl] input.mat-mdc-chip-input{margin-left:0;margin-right:8px}.mat-mdc-form-field:not(.mat-form-field-hide-placeholder) input.mat-mdc-chip-input::placeholder{opacity:1}.mat-mdc-form-field:not(.mat-form-field-hide-placeholder) input.mat-mdc-chip-input::-moz-placeholder{opacity:1}.mat-mdc-form-field:not(.mat-form-field-hide-placeholder) input.mat-mdc-chip-input::-webkit-input-placeholder{opacity:1}.mat-mdc-form-field:not(.mat-form-field-hide-placeholder) input.mat-mdc-chip-input:-ms-input-placeholder{opacity:1}.mat-mdc-chip-set+input.mat-mdc-chip-input{margin-left:0;margin-right:0} +`],encapsulation:2,changeDetection:0})}return t})();var l6=(()=>{class t{static \u0275fac=function(i){return new(i||t)};static \u0275mod=ee({type:t});static \u0275inj=J({providers:[dl,{provide:kye,useValue:{separatorKeyCodes:[13]}}],imports:[we,yo,we]})}return t})();var c6=new T("CdkAccordion");var d6=(()=>{class t{accordion=u(c6,{optional:!0,skipSelf:!0});_changeDetectorRef=u(ye);_expansionDispatcher=u(au);_openCloseAllSubscription=ke.EMPTY;closed=new U;opened=new U;destroyed=new U;expandedChange=new U;id=u(Ze).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 i=this.accordion?this.accordion.id:this.id;this._expansionDispatcher.notify(this.id,i)}else this.closed.emit();this._changeDetectorRef.markForCheck()}}_expanded=!1;get disabled(){return this._disabled()}set disabled(e){this._disabled.set(e)}_disabled=he(!1);_removeUniqueSelectionListener=()=>{};constructor(){}ngOnInit(){this._removeUniqueSelectionListener=this._expansionDispatcher.listen((e,i)=>{this.accordion&&!this.accordion.multi&&this.accordion.id===i&&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(i){return new(i||t)};static \u0275dir=F({type:t,selectors:[["cdk-accordion-item"],["","cdkAccordionItem",""]],inputs:{expanded:[2,"expanded","expanded",V],disabled:[2,"disabled","disabled",V]},outputs:{closed:"closed",opened:"opened",destroyed:"destroyed",expandedChange:"expandedChange"},exportAs:["cdkAccordionItem"],features:[Ce([{provide:c6,useValue:void 0}])]})}return t})(),u6=(()=>{class t{static \u0275fac=function(i){return new(i||t)};static \u0275mod=ee({type:t});static \u0275inj=J({})}return t})();var Tye=["body"],Iye=["bodyWrapper"],Aye=[[["mat-expansion-panel-header"]],"*",[["mat-action-row"]]],Oye=["mat-expansion-panel-header","*","mat-action-row"];function Rye(t,n){}var Pye=[[["mat-panel-title"]],[["mat-panel-description"]],"*"],Fye=["mat-panel-title","mat-panel-description","*"];function Nye(t,n){t&1&&(ft(0,"span",1),Gt(),ft(1,"svg",2),ai(2,"path",3),vt()())}var m6=new T("MAT_ACCORDION"),h6=new T("MAT_EXPANSION_PANEL"),Lye=(()=>{class t{_template=u(te);_expansionPanel=u(h6,{optional:!0});constructor(){}static \u0275fac=function(i){return new(i||t)};static \u0275dir=F({type:t,selectors:[["ng-template","matExpansionPanelContent",""]]})}return t})(),p6=new T("MAT_EXPANSION_PANEL_DEFAULT_OPTIONS"),uA=(()=>{class t extends d6{_viewContainerRef=u(nt);_animationsDisabled=Ye();_document=u(ge);_ngZone=u(ae);_elementRef=u(q);_renderer=u(je);_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 U;afterCollapse=new U;_inputChanges=new z;accordion=u(m6,{optional:!0,skipSelf:!0});_lazyContent;_body;_bodyWrapper;_portal;_headerId=u(Ze).getId("mat-expansion-panel-header-");constructor(){super();let e=u(p6,{optional:!0});this._expansionDispatcher=u(au),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(He(null),ce(()=>this.expanded&&!this._portal),lt(1)).subscribe(()=>{this._portal=new Cn(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,i=this._body.nativeElement;return e===i||i.contains(e)}return!1}_transitionEndListener=({target:e,propertyName:i})=>{e===this._bodyWrapper?.nativeElement&&i==="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(i){return new(i||t)};static \u0275cmp=E({type:t,selectors:[["mat-expansion-panel"]],contentQueries:function(i,r,o){if(i&1&&xe(o,Lye,5),i&2){let a;B(a=j())&&(r._lazyContent=a.first)}},viewQuery:function(i,r){if(i&1&&(ie(Tye,5),ie(Iye,5)),i&2){let o;B(o=j())&&(r._body=o.first),B(o=j())&&(r._bodyWrapper=o.first)}},hostAttrs:[1,"mat-expansion-panel"],hostVars:4,hostBindings:function(i,r){i&2&&G("mat-expanded",r.expanded)("mat-expansion-panel-spacing",r._hasSpacing())},inputs:{hideToggle:[2,"hideToggle","hideToggle",V],togglePosition:"togglePosition"},outputs:{afterExpand:"afterExpand",afterCollapse:"afterCollapse"},exportAs:["matExpansionPanel"],features:[Ce([{provide:m6,useValue:void 0},{provide:h6,useExisting:t}]),le,Ae],ngContentSelectors:Oye,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(i,r){i&1&&(Me(Aye),oe(0),h(1,"div",2,0)(3,"div",3,1)(5,"div",4),oe(6,1),R(7,Rye,0,0,"ng-template",5),p(),oe(8,2),p()()),i&2&&(g(),X("inert",r.expanded?null:""),g(2),y("id",r.id),X("aria-labelledby",r._headerId),g(4),y("cdkPortalOutlet",r._portal))},dependencies:[yr],styles:[`.mat-expansion-panel{box-sizing:content-box;display:block;margin:0;overflow:hidden;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.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: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}}.mat-expansion-panel-content{display:flex;flex-direction:column;overflow:visible;min-height:0;visibility:hidden;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-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-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 t})();var f6=(()=>{class t{panel=u(uA,{host:!0});_element=u(q);_focusMonitor=u(Yt);_changeDetectorRef=u(ye);_parentChangeSubscription=ke.EMPTY;constructor(){u(ut).load(Di);let e=this.panel,i=u(p6,{optional:!0}),r=u(new Ii("tabindex"),{optional:!0}),o=e.accordion?e.accordion._stateChanges.pipe(ce(a=>!!(a.hideToggle||a.togglePosition))):Fi;this.tabIndex=parseInt(r||"")||0,this._parentChangeSubscription=Je(e.opened,e.closed,o,e._inputChanges.pipe(ce(a=>!!(a.hideToggle||a.disabled||a.togglePosition)))).subscribe(()=>this._changeDetectorRef.markForCheck()),e.closed.pipe(ce(()=>e._containsFocus())).subscribe(()=>this._focusMonitor.focusVia(this._element,"program")),i&&(this.expandedHeight=i.expandedHeight,this.collapsedHeight=i.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:Ft(e)||(e.preventDefault(),this._toggle());break;default:this.panel.accordion&&this.panel.accordion._handleHeaderKeydown(e);return}}focus(e,i){e?this._focusMonitor.focusVia(this._element,e,i):this._element.nativeElement.focus(i)}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(i){return new(i||t)};static \u0275cmp=E({type:t,selectors:[["mat-expansion-panel-header"]],hostAttrs:["role","button",1,"mat-expansion-panel-header","mat-focus-indicator"],hostVars:13,hostBindings:function(i,r){i&1&&S("click",function(){return r._toggle()})("keydown",function(a){return r._keydown(a)}),i&2&&(X("id",r.panel._headerId)("tabindex",r.disabled?-1:r.tabIndex)("aria-controls",r._getPanelId())("aria-expanded",r._isExpanded())("aria-disabled",r.panel.disabled),Dt("height",r._getHeaderHeight()),G("mat-expanded",r._isExpanded())("mat-expansion-toggle-indicator-after",r._getTogglePosition()==="after")("mat-expansion-toggle-indicator-before",r._getTogglePosition()==="before"))},inputs:{expandedHeight:"expandedHeight",collapsedHeight:"collapsedHeight",tabIndex:[2,"tabIndex","tabIndex",e=>e==null?0:ct(e)]},ngContentSelectors:Fye,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(i,r){i&1&&(Me(Pye),ft(0,"span",0),oe(1),oe(2,1),oe(3,2),vt(),N(4,Nye,3,0,"span",1)),i&2&&(G("mat-content-hide-toggle",!r._showToggle()),g(4),L(r._showToggle()?4:-1))},styles:[`.mat-expansion-panel-header{display:flex;flex-direction:row;align-items:center;padding:0 24px;border-radius:inherit;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-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.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 t})();var g6=(()=>{class t{static \u0275fac=function(i){return new(i||t)};static \u0275dir=F({type:t,selectors:[["mat-panel-title"]],hostAttrs:[1,"mat-expansion-panel-header-title"]})}return t})();var _6=(()=>{class t{static \u0275fac=function(i){return new(i||t)};static \u0275mod=ee({type:t});static \u0275inj=J({imports:[we,u6,Co]})}return t})();function Bye(t,n){if(t&1&&(jt(0),h(1,"mat-icon"),_(2,"account_circle"),p(),_(3),Lt()),t&2){let e=n.ngIf;g(3),ve(" ",e.name||e.preferred_username||"User Profile"," ")}}function jye(t,n){t&1&&(jt(0),h(1,"mat-icon"),_(2,"account_circle"),p(),_(3," User Profile "),Lt())}function Hye(t,n){t&1&&(h(0,"div",3)(1,"mat-card")(2,"mat-card-content")(3,"div",4)(4,"mat-icon"),_(5,"lock"),p(),h(6,"h2"),_(7,"Not Authenticated"),p(),h(8,"p"),_(9,"Please log in to view your profile information."),p(),h(10,"button",5)(11,"mat-icon"),_(12,"login"),p(),_(13," Log In "),p()()()()())}function zye(t,n){if(t&1&&(h(0,"mat-chip",23),_(1),p()),t&2){let e=n.$implicit;y("color","primary"),g(),ve(" ",e," ")}}function Uye(t,n){if(t&1&&(h(0,"mat-chip",24),_(1),p()),t&2){let e=n.$implicit;y("color","accent"),g(),ve(" ",e," ")}}function $ye(t,n){if(t&1&&(h(0,"div",17)(1,"div",18)(2,"label"),_(3,"User ID (sub)"),p(),h(4,"div",19),_(5),p()(),h(6,"div",18)(7,"label"),_(8,"Display Name"),p(),h(9,"div",19),_(10),p()(),h(11,"div",18)(12,"label"),_(13,"Email"),p(),h(14,"div",19),_(15),p()(),h(16,"div",18)(17,"label"),_(18,"Username"),p(),h(19,"div",19),_(20),p()(),h(21,"div",20)(22,"label"),_(23,"Roles"),p(),h(24,"div",19)(25,"mat-chip-set"),R(26,zye,2,2,"mat-chip",21),p()()(),h(27,"div",20)(28,"label"),_(29,"Permissions"),p(),h(30,"div",19)(31,"mat-chip-set"),R(32,Uye,2,2,"mat-chip",22),p()()()()),t&2){let e=n.ngIf,i=C(2);g(5),H(e.sub),g(5),H(e.name||"N/A"),g(5),H(e.email||"N/A"),g(5),H(e.preferred_username||"N/A"),g(6),y("ngForOf",i.profileData==null?null:i.profileData.roles),g(6),y("ngForOf",i.profileData==null?null:i.profileData.permissions)}}function Wye(t,n){t&1&&(h(0,"mat-chip",36)(1,"mat-icon"),_(2,"verified_user"),p(),_(3," Valid "),p())}function Gye(t,n){t&1&&(h(0,"mat-chip",37)(1,"mat-icon"),_(2,"error"),p(),_(3," Expired "),p())}function qye(t,n){if(t&1&&(h(0,"div",30)(1,"label"),_(2,"Issuer"),p(),h(3,"div"),_(4),p()()),t&2){let e=C().ngIf;g(4),H(e.payload.iss)}}function Yye(t,n){if(t&1&&(h(0,"mat-expansion-panel",38)(1,"mat-expansion-panel-header")(2,"mat-panel-title"),_(3,"Raw JWT Token"),p()(),h(4,"pre",39),_(5),p()()),t&2){let e=C().ngIf;g(5),H(e.raw)}}function Qye(t,n){if(t&1){let e=Y();h(0,"div",25)(1,"div",26)(2,"mat-chip-set")(3,"mat-chip",23)(4,"mat-icon"),_(5,"schedule"),p(),_(6),p(),R(7,Wye,4,0,"mat-chip",27)(8,Gye,4,0,"mat-chip",28),p()(),h(9,"div",29)(10,"div",30)(11,"label"),_(12,"Issued At"),p(),h(13,"div"),_(14),p()(),h(15,"div",30)(16,"label"),_(17,"Expires At"),p(),h(18,"div"),_(19),p()(),R(20,qye,5,1,"div",31),p(),h(21,"div",32)(22,"button",33),S("click",function(){I(e);let r=C(2);return A(r.toggleRawIdToken())}),h(23,"mat-icon"),_(24),p(),_(25),p(),h(26,"button",33),S("click",function(){let r=I(e).ngIf,o=C(2);return A(o.copyToClipboard(r.raw,"ID Token"))}),h(27,"mat-icon"),_(28,"content_copy"),p(),_(29," Copy Token "),p()(),R(30,Yye,6,1,"mat-expansion-panel",34),h(31,"mat-expansion-panel")(32,"mat-expansion-panel-header")(33,"mat-panel-title"),_(34,"Token Header"),p()(),h(35,"pre",35),_(36),p()(),h(37,"mat-expansion-panel")(38,"mat-expansion-panel-header")(39,"mat-panel-title"),_(40,"Token Claims (Payload)"),p()(),h(41,"pre",35),_(42),p()()()}if(t&2){let e=n.ngIf,i=C(2);g(3),y("color",i.getExpirationColor(e)),g(3),ve(" ",i.getExpirationStatus(e)," "),g(),y("ngIf",!e.isExpired),g(),y("ngIf",e.isExpired),g(6),H(i.formatDate(e.issuedAt)),g(5),H(i.formatDate(e.expiresAt)),g(),y("ngIf",e.payload.iss),g(4),H(i.showRawIdToken?"visibility_off":"visibility"),g(),ve(" ",i.showRawIdToken?"Hide":"Show"," Raw Token "),g(5),y("ngIf",i.showRawIdToken),g(6),H(i.formatJson(e.header)),g(6),H(i.formatJson(e.payload))}}function Kye(t,n){t&1&&(h(0,"div",40)(1,"mat-icon"),_(2,"info"),p(),h(3,"p"),_(4,"ID Token not available"),p()())}function Zye(t,n){t&1&&(h(0,"mat-chip",36)(1,"mat-icon"),_(2,"verified_user"),p(),_(3," Valid "),p())}function Xye(t,n){t&1&&(h(0,"mat-chip",37)(1,"mat-icon"),_(2,"error"),p(),_(3," Expired "),p())}function Jye(t,n){if(t&1&&(h(0,"div",30)(1,"label"),_(2,"Audience"),p(),h(3,"div"),_(4),p()()),t&2){let e=C().ngIf;g(4),H(e.payload.aud)}}function exe(t,n){if(t&1&&(h(0,"mat-expansion-panel",38)(1,"mat-expansion-panel-header")(2,"mat-panel-title"),_(3,"Raw JWT Token"),p()(),h(4,"pre",39),_(5),p()()),t&2){let e=C().ngIf;g(5),H(e.raw)}}function txe(t,n){if(t&1&&(h(0,"mat-chip"),_(1),p()),t&2){let e=n.$implicit;g(),ve(" ",e," ")}}function ixe(t,n){if(t&1&&(h(0,"mat-expansion-panel")(1,"mat-expansion-panel-header")(2,"mat-panel-title"),_(3,"Scopes"),p()(),h(4,"div",41)(5,"mat-chip-set"),R(6,txe,2,1,"mat-chip",42),p()()()),t&2){let e=C().ngIf,i=C(2);g(6),y("ngForOf",i.getScopes(e.payload.scope))}}function nxe(t,n){if(t&1){let e=Y();h(0,"div",25)(1,"div",26)(2,"mat-chip-set")(3,"mat-chip",23)(4,"mat-icon"),_(5,"schedule"),p(),_(6),p(),R(7,Zye,4,0,"mat-chip",27)(8,Xye,4,0,"mat-chip",28),p()(),h(9,"div",29)(10,"div",30)(11,"label"),_(12,"Issued At"),p(),h(13,"div"),_(14),p()(),h(15,"div",30)(16,"label"),_(17,"Expires At"),p(),h(18,"div"),_(19),p()(),R(20,Jye,5,1,"div",31),p(),h(21,"div",32)(22,"button",33),S("click",function(){I(e);let r=C(2);return A(r.toggleRawAccessToken())}),h(23,"mat-icon"),_(24),p(),_(25),p(),h(26,"button",33),S("click",function(){let r=I(e).ngIf,o=C(2);return A(o.copyToClipboard(r.raw,"Access Token"))}),h(27,"mat-icon"),_(28,"content_copy"),p(),_(29," Copy Token "),p()(),R(30,exe,6,1,"mat-expansion-panel",34),h(31,"mat-expansion-panel")(32,"mat-expansion-panel-header")(33,"mat-panel-title"),_(34,"Token Header"),p()(),h(35,"pre",35),_(36),p()(),h(37,"mat-expansion-panel")(38,"mat-expansion-panel-header")(39,"mat-panel-title"),_(40,"Token Claims (Payload)"),p()(),h(41,"pre",35),_(42),p()(),R(43,ixe,7,1,"mat-expansion-panel",0),p()}if(t&2){let e=n.ngIf,i=C(2);g(3),y("color",i.getExpirationColor(e)),g(3),ve(" ",i.getExpirationStatus(e)," "),g(),y("ngIf",!e.isExpired),g(),y("ngIf",e.isExpired),g(6),H(i.formatDate(e.issuedAt)),g(5),H(i.formatDate(e.expiresAt)),g(),y("ngIf",e.payload.aud),g(4),H(i.showRawAccessToken?"visibility_off":"visibility"),g(),ve(" ",i.showRawAccessToken?"Hide":"Show"," Raw Token "),g(5),y("ngIf",i.showRawAccessToken),g(6),H(i.formatJson(e.header)),g(6),H(i.formatJson(e.payload)),g(),y("ngIf",e.payload.scope)}}function rxe(t,n){t&1&&(h(0,"div",40)(1,"mat-icon"),_(2,"info"),p(),h(3,"p"),_(4,"Access Token not available"),p()())}function oxe(t,n){if(t&1&&(h(0,"div",6)(1,"mat-card",7)(2,"mat-card-content")(3,"div",8)(4,"mat-icon"),_(5,"warning"),p(),h(6,"div")(7,"strong"),_(8,"Security Notice:"),p(),_(9," Tokens displayed on this page contain sensitive information. Do not share these tokens with anyone or paste them in untrusted applications. "),p()()()(),h(10,"mat-card",9)(11,"mat-card-header")(12,"mat-icon",10),_(13,"person"),p(),h(14,"mat-card-title"),_(15,"User Information"),p(),h(16,"mat-card-subtitle"),_(17,"Your profile details from ID token"),p()(),h(18,"mat-card-content"),R(19,$ye,33,6,"div",11),p()(),h(20,"mat-card",12)(21,"mat-card-header")(22,"mat-icon",10),_(23,"vpn_key"),p(),h(24,"mat-card-title"),_(25,"Token Details"),p(),h(26,"mat-card-subtitle"),_(27,"Detailed JWT token information and claims"),p()(),h(28,"mat-card-content")(29,"mat-tab-group")(30,"mat-tab",13),R(31,Qye,43,12,"div",14)(32,Kye,5,0,"div",15),p(),h(33,"mat-tab",16),R(34,nxe,44,13,"div",14)(35,rxe,5,0,"div",15),p()()()()()),t&2){let e=C();g(19),y("ngIf",e.profileData==null?null:e.profileData.userInfo),g(12),y("ngIf",e.profileData==null?null:e.profileData.idToken),g(),y("ngIf",!(e.profileData!=null&&e.profileData.idToken)),g(2),y("ngIf",e.profileData==null?null:e.profileData.accessToken),g(),y("ngIf",!(e.profileData!=null&&e.profileData.accessToken))}}var b6=(()=>{let n=class n{constructor(){this.authService=u(Tt),this.oauthService=u(Wm),this.tokenDecoder=u(aU),this.snackBar=u(di),this.router=u(Re),this.profileData=null,this.showRawIdToken=!1,this.showRawAccessToken=!1}ngOnInit(){this.loadProfileData(),this.authSubscription=this.authService.isAuthenticated$.subscribe(()=>{this.loadProfileData()})}ngOnDestroy(){this.authSubscription?.unsubscribe()}loadProfileData(){let i=this.authService.isAuthenticated(),r=this.oauthService.hasValidAccessToken();if(console.log("Authentication Status:",{isAuthenticated:i,hasValidAccessToken:r}),!i&&!r){this.profileData=null;return}let o=this.authService.getUserInfo(),a=this.authService.getAccessToken(),s=this.oauthService.getIdToken(),l=this.authService.getUserRoles();console.log("Profile Data Debug:",{isAuthenticated:i,hasUserInfo:!!o,hasAccessToken:!!a,accessTokenLength:a?.length,hasIdToken:!!s,idTokenLength:s?.length,roles:l}),this.profileData={isAuthenticated:i,userInfo:o,idToken:s?this.tokenDecoder.decodeToken(s):null,accessToken:a?this.tokenDecoder.decodeToken(a):null,roles:l,permissions:this.getUserPermissions()},console.log("Decoded tokens:",{idToken:this.profileData.idToken,accessToken:this.profileData.accessToken})}getUserPermissions(){let i=[];return this.authService.hasRole("HRAdmin")||this.authService.hasRole("Manager")?i.push("canAdd","canEdit","canDelete","canRead"):this.authService.hasRole("Employee")&&i.push("canRead"),i}toggleRawIdToken(){this.showRawIdToken=!this.showRawIdToken}toggleRawAccessToken(){this.showRawAccessToken=!this.showRawAccessToken}copyToClipboard(i,r){navigator.clipboard.writeText(i).then(()=>{this.showMessage(`${r} copied to clipboard`)}).catch(o=>{console.error("Failed to copy:",o),this.showMessage("Failed to copy to clipboard")})}formatJson(i){return JSON.stringify(i,null,2)}getExpirationStatus(i){return this.tokenDecoder.getExpirationStatus(i)}getExpirationColor(i){if(!i||!i.expiresIn)return"";let r=i.expiresIn/3600;return i.isExpired?"warn":r<1?"accent":"primary"}formatDate(i){return i?new Intl.DateTimeFormat("en-US",{dateStyle:"medium",timeStyle:"medium"}).format(i):"N/A"}showMessage(i){this.snackBar.open(i,"Close",{duration:3e3,horizontalPosition:"end",verticalPosition:"top"})}getScopes(i){return i?Array.isArray(i)?i:typeof i=="string"?i.split(" ").filter(r=>r.length>0):[]:[]}};n.\u0275fac=function(r){return new(r||n)},n.\u0275cmp=E({type:n,selectors:[["app-profile-overview"]],decls:5,vars:4,consts:[[4,"ngIf"],["class","not-authenticated",4,"ngIf"],["class","profile-container",4,"ngIf"],[1,"not-authenticated"],[1,"empty-state"],["mat-raised-button","","color","primary","routerLink","/login"],[1,"profile-container"],[1,"security-warning"],[1,"warning-content"],[1,"profile-card"],["mat-card-avatar",""],["class","info-grid",4,"ngIf"],[1,"tokens-card"],["label","ID Token"],["class","token-content",4,"ngIf"],["class","no-token",4,"ngIf"],["label","Access Token"],[1,"info-grid"],[1,"info-item"],[1,"value"],[1,"info-item","full-width"],["highlighted","",3,"color",4,"ngFor","ngForOf"],[3,"color",4,"ngFor","ngForOf"],["highlighted","",3,"color"],[3,"color"],[1,"token-content"],[1,"token-status"],["color","primary",4,"ngIf"],["color","warn",4,"ngIf"],[1,"token-metadata"],[1,"metadata-item"],["class","metadata-item",4,"ngIf"],[1,"token-actions"],["mat-button","",3,"click"],["expanded","",4,"ngIf"],[1,"json-display"],["color","primary"],["color","warn"],["expanded",""],[1,"token-display"],[1,"no-token"],[1,"scopes-list"],[4,"ngFor","ngForOf"]],template:function(r,o){r&1&&(h(0,"page-header"),R(1,Bye,4,1,"ng-container",0)(2,jye,4,0,"ng-container",0),p(),R(3,Hye,14,0,"div",1)(4,oxe,36,5,"div",2)),r&2&&(g(),y("ngIf",o.profileData==null?null:o.profileData.userInfo),g(),y("ngIf",!(o.profileData!=null&&o.profileData.isAuthenticated)),g(),y("ngIf",!(o.profileData!=null&&o.profileData.isAuthenticated)),g(),y("ngIf",o.profileData==null?null:o.profileData.isAuthenticated))},dependencies:[gt,qr,li,$t,zt,zV,Ut,Jt,HV,Xt,ot,mt,ze,kt,l6,dA,s6,_6,uA,f6,g6,Br,pi,rp,__,tw,lk,Nn,ni],styles:[".profile-container[_ngcontent-%COMP%]{padding:16px;max-width:1200px;margin:0 auto;display:flex;flex-direction:column;gap:24px}.not-authenticated[_ngcontent-%COMP%]{padding:16px;max-width:600px;margin:0 auto}.not-authenticated[_ngcontent-%COMP%] .empty-state[_ngcontent-%COMP%]{display:flex;flex-direction:column;align-items:center;justify-content:center;padding:48px 16px;text-align:center}.not-authenticated[_ngcontent-%COMP%] .empty-state[_ngcontent-%COMP%] mat-icon[_ngcontent-%COMP%]{font-size:64px;width:64px;height:64px;color:#00000061;margin-bottom:16px}.not-authenticated[_ngcontent-%COMP%] .empty-state[_ngcontent-%COMP%] h2[_ngcontent-%COMP%]{margin:0 0 8px;font-size:24px;font-weight:500}.not-authenticated[_ngcontent-%COMP%] .empty-state[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{margin:0 0 24px;color:#0009}.not-authenticated[_ngcontent-%COMP%] .empty-state[_ngcontent-%COMP%] button[_ngcontent-%COMP%] mat-icon[_ngcontent-%COMP%]{font-size:20px;width:20px;height:20px;margin-right:8px;color:inherit}.security-warning[_ngcontent-%COMP%]{background-color:#fff3cd;border-left:4px solid #ff9800}.security-warning[_ngcontent-%COMP%] mat-card-content[_ngcontent-%COMP%]{padding:16px}.security-warning[_ngcontent-%COMP%] .warning-content[_ngcontent-%COMP%]{display:flex;align-items:center;gap:12px}.security-warning[_ngcontent-%COMP%] .warning-content[_ngcontent-%COMP%] mat-icon[_ngcontent-%COMP%]{color:#ff9800;flex-shrink:0}.security-warning[_ngcontent-%COMP%] .warning-content[_ngcontent-%COMP%] strong[_ngcontent-%COMP%]{font-weight:600}.profile-card[_ngcontent-%COMP%] mat-card-header[_ngcontent-%COMP%], .tokens-card[_ngcontent-%COMP%] mat-card-header[_ngcontent-%COMP%]{padding:16px;border-bottom:1px solid rgba(0,0,0,.12)}.profile-card[_ngcontent-%COMP%] mat-card-header[_ngcontent-%COMP%] mat-card-title[_ngcontent-%COMP%], .tokens-card[_ngcontent-%COMP%] mat-card-header[_ngcontent-%COMP%] mat-card-title[_ngcontent-%COMP%]{font-size:20px;font-weight:500;margin:0}.profile-card[_ngcontent-%COMP%] mat-card-header[_ngcontent-%COMP%] mat-card-subtitle[_ngcontent-%COMP%], .tokens-card[_ngcontent-%COMP%] mat-card-header[_ngcontent-%COMP%] mat-card-subtitle[_ngcontent-%COMP%]{margin-top:4px;color:#0009}.profile-card[_ngcontent-%COMP%] mat-card-content[_ngcontent-%COMP%], .tokens-card[_ngcontent-%COMP%] mat-card-content[_ngcontent-%COMP%]{padding:24px}.info-grid[_ngcontent-%COMP%]{display:grid;grid-template-columns:repeat(2,1fr);gap:24px}@media (max-width: 768px){.info-grid[_ngcontent-%COMP%]{grid-template-columns:1fr}}.info-grid[_ngcontent-%COMP%] .info-item[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:8px}.info-grid[_ngcontent-%COMP%] .info-item.full-width[_ngcontent-%COMP%]{grid-column:1/-1}.info-grid[_ngcontent-%COMP%] .info-item[_ngcontent-%COMP%] label[_ngcontent-%COMP%]{font-size:12px;font-weight:500;text-transform:uppercase;letter-spacing:.5px;color:#0009}.info-grid[_ngcontent-%COMP%] .info-item[_ngcontent-%COMP%] .value[_ngcontent-%COMP%]{font-size:16px;color:#000000de;word-break:break-word}.token-content[_ngcontent-%COMP%]{padding:24px 0;display:flex;flex-direction:column;gap:16px}.token-content[_ngcontent-%COMP%] .token-status[_ngcontent-%COMP%] mat-chip-set[_ngcontent-%COMP%] mat-chip[_ngcontent-%COMP%] mat-icon[_ngcontent-%COMP%]{margin-right:4px;font-size:18px;width:18px;height:18px}.token-content[_ngcontent-%COMP%] .token-metadata[_ngcontent-%COMP%]{display:grid;grid-template-columns:repeat(auto-fit,minmax(200px,1fr));gap:16px;padding:16px;background-color:#00000005;border-radius:4px}.token-content[_ngcontent-%COMP%] .token-metadata[_ngcontent-%COMP%] .metadata-item[_ngcontent-%COMP%] label[_ngcontent-%COMP%]{display:block;font-size:12px;font-weight:500;text-transform:uppercase;letter-spacing:.5px;color:#0009;margin-bottom:4px}.token-content[_ngcontent-%COMP%] .token-metadata[_ngcontent-%COMP%] .metadata-item[_ngcontent-%COMP%] div[_ngcontent-%COMP%]{font-size:14px;color:#000000de;word-break:break-word}.token-content[_ngcontent-%COMP%] .token-actions[_ngcontent-%COMP%]{display:flex;gap:8px;flex-wrap:wrap}.token-content[_ngcontent-%COMP%] .token-actions[_ngcontent-%COMP%] button[_ngcontent-%COMP%] mat-icon[_ngcontent-%COMP%]{margin-right:4px}.token-content[_ngcontent-%COMP%] mat-expansion-panel[_ngcontent-%COMP%]{margin-top:8px}.token-content[_ngcontent-%COMP%] .token-display[_ngcontent-%COMP%], .token-content[_ngcontent-%COMP%] .json-display[_ngcontent-%COMP%]{background-color:#f5f5f5;padding:16px;border-radius:4px;overflow-x:auto;font-family:Courier New,monospace;font-size:12px;line-height:1.5;margin:0;white-space:pre-wrap;word-break:break-all}.token-content[_ngcontent-%COMP%] .scopes-list[_ngcontent-%COMP%]{padding:16px}.token-content[_ngcontent-%COMP%] .scopes-list[_ngcontent-%COMP%] mat-chip-set[_ngcontent-%COMP%] mat-chip[_ngcontent-%COMP%]{margin:4px}.no-token[_ngcontent-%COMP%]{display:flex;flex-direction:column;align-items:center;justify-content:center;padding:48px 16px;text-align:center;color:#00000061}.no-token[_ngcontent-%COMP%] mat-icon[_ngcontent-%COMP%]{font-size:48px;width:48px;height:48px;margin-bottom:12px}.no-token[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{margin:0;font-size:14px}mat-chip-set[_ngcontent-%COMP%] mat-chip[_ngcontent-%COMP%]{margin:4px}@media (max-width: 768px){.profile-container[_ngcontent-%COMP%]{padding:12px}.profile-card[_ngcontent-%COMP%] mat-card-content[_ngcontent-%COMP%], .tokens-card[_ngcontent-%COMP%] mat-card-content[_ngcontent-%COMP%]{padding:16px}.token-content[_ngcontent-%COMP%]{padding:16px 0}.token-content[_ngcontent-%COMP%] .token-metadata[_ngcontent-%COMP%]{grid-template-columns:1fr}.security-warning[_ngcontent-%COMP%] .warning-content[_ngcontent-%COMP%]{flex-direction:column;align-items:flex-start}}"]});let t=n;return t})();var v6=(()=>{let n=class n{};n.\u0275fac=function(r){return new(r||n)},n.\u0275cmp=E({type:n,selectors:[["app-profile-settings"]],decls:14,vars:0,consts:[[1,"settings-container"],[1,"coming-soon"]],template:function(r,o){r&1&&(h(0,"page-header")(1,"mat-icon"),_(2,"settings"),p(),_(3,` Profile Settings +`),p(),h(4,"div",0)(5,"mat-card")(6,"mat-card-content")(7,"div",1)(8,"mat-icon"),_(9,"construction"),p(),h(10,"h2"),_(11,"Coming Soon"),p(),h(12,"p"),_(13,"User settings functionality will be available in a future update."),p()()()()())},dependencies:[gt,$t,zt,Ut,ot,mt,ni],styles:[".settings-container[_ngcontent-%COMP%]{padding:16px;max-width:800px;margin:0 auto}.settings-container[_ngcontent-%COMP%] .coming-soon[_ngcontent-%COMP%]{display:flex;flex-direction:column;align-items:center;justify-content:center;padding:48px 16px;text-align:center}.settings-container[_ngcontent-%COMP%] .coming-soon[_ngcontent-%COMP%] mat-icon[_ngcontent-%COMP%]{font-size:64px;width:64px;height:64px;color:#00000061;margin-bottom:16px}.settings-container[_ngcontent-%COMP%] .coming-soon[_ngcontent-%COMP%] h2[_ngcontent-%COMP%]{margin:0 0 8px;font-size:24px;font-weight:500}.settings-container[_ngcontent-%COMP%] .coming-soon[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{margin:0;color:#0009}"]});let t=n;return t})();var y6=[{path:"",component:eU,canActivate:[lI],canActivateChild:[lI],children:[{path:"",redirectTo:"dashboard",pathMatch:"full"},{path:"dashboard",component:lU},{path:"employees",component:wU},{path:"employees/create",component:aA,canActivate:[a_]},{path:"employees/edit/:id",component:aA,canActivate:[a_]},{path:"employees/:id",component:DU},{path:"departments",component:zU},{path:"departments/create",component:sA,canActivate:[a_]},{path:"departments/edit/:id",component:sA,canActivate:[a_]},{path:"departments/:id",component:UU},{path:"positions",component:YU},{path:"positions/create",component:lA,canActivate:[s_]},{path:"positions/edit/:id",component:lA,canActivate:[s_]},{path:"positions/:id",component:KU},{path:"salary-ranges",component:XU},{path:"salary-ranges/create",component:cA,canActivate:[s_]},{path:"salary-ranges/edit/:id",component:cA,canActivate:[s_]},{path:"salary-ranges/:id",component:e6},{path:"profile",children:[{path:"overview",component:b6},{path:"settings",component:v6},{path:"",redirectTo:"overview",pathMatch:"full"}]},{path:"403",component:cU},{path:"404",component:dU},{path:"500",component:uU}]},{path:"auth",component:tU,children:[{path:"register",component:mU}]},{path:"callback",component:hU},{path:"**",redirectTo:"dashboard"}];var x6=(t,n)=>{let e=u(Tt);if(!e.isAuthenticated())return n(t);let i=e.getAccessToken();if(!i)return n(t);let r=t.clone({setHeaders:{Authorization:`Bearer ${i}`}});return n(r)};var C6={providers:[ZD(),{provide:wI,useValue:ko.baseUrl},gL(),Ql(()=>u(Tt).initAuth()),Ql(()=>u(Yz).load()),Ql(()=>u(Gz).load()),S1(T1([x6,...t8])),ok(y6,ak({scrollPositionRestoration:"enabled",anchorScrolling:"enabled"}),S0()),ej(),W5($5()),W3({loader:G3({prefix:"i18n/",suffix:".json"})}),xb(xc.forRoot()),f3([...R3()]),{provide:yg,useFactory:Oz,deps:[ia],multi:!0},{provide:gc,deps:[pz],useFactory:t=>t.getPaginatorIntl()},{provide:Bk,useValue:{appearance:"outlined"}},jV({parse:{dateInput:"yyyy-MM-dd"},display:{dateInput:"yyyy-MM-dd",monthYearLabel:"yyyy MMM",dateA11yLabel:"LL",monthYearA11yLabel:"yyyy MMM"}}),c3({parse:{dateInput:"yyyy-MM-dd",yearInput:"yyyy",monthInput:"MMMM",datetimeInput:"yyyy-MM-dd HH:mm",timeInput:"HH:mm"},display:{dateInput:"yyyy-MM-dd",yearInput:"yyyy",monthInput:"MMMM",datetimeInput:"yyyy-MM-dd HH:mm",timeInput:"HH:mm",monthYearLabel:"yyyy MMMM",dateA11yLabel:"LL",monthYearA11yLabel:"MMMM yyyy",popupHeaderDateLabel:"MMM dd, E"}})]};var w6=(()=>{let n=class n{constructor(){this.preloader=u(qz),this.settings=u(aa)}ngOnInit(){this.settings.setDirection(),this.settings.setTheme()}ngAfterViewInit(){this.preloader.hide()}};n.\u0275fac=function(r){return new(r||n)},n.\u0275cmp=E({type:n,selectors:[["app-root"]],decls:1,vars:0,template:function(r,o){r&1&&k(0,"router-outlet")},dependencies:[ol],encapsulation:2});let t=n;return t})();C1(w6,C6).catch(t=>console.error(t)); From 4c769e545afec43118e81faa7e4ddc61b3293a90 Mon Sep 17 00:00:00 2001 From: workcontrolgit Date: Sun, 5 Apr 2026 13:39:44 +0000 Subject: [PATCH 4/8] =?UTF-8?q?Deploying=20to=20gh-pages=20from=20@=20work?= =?UTF-8?q?controlgit/AngularNetTutorial@0a50da697b9722f4c68da1a7892b8e9dd?= =?UTF-8?q?92a6c5c=20=F0=9F=9A=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- 404.html | 2 +- index.html | 2 +- main-5MG4PVJO.js => main-ZXO6BMWL.js | 236 +++++++++++++-------------- 3 files changed, 120 insertions(+), 120 deletions(-) rename main-5MG4PVJO.js => main-ZXO6BMWL.js (83%) diff --git a/404.html b/404.html index 785a4a9..b4f053c 100644 --- a/404.html +++ b/404.html @@ -76,5 +76,5 @@

LOADING

- + diff --git a/index.html b/index.html index 785a4a9..b4f053c 100644 --- a/index.html +++ b/index.html @@ -76,5 +76,5 @@

LOADING

- + diff --git a/main-5MG4PVJO.js b/main-ZXO6BMWL.js similarity index 83% rename from main-5MG4PVJO.js rename to main-ZXO6BMWL.js index ed1d22b..8083504 100644 --- a/main-5MG4PVJO.js +++ b/main-ZXO6BMWL.js @@ -1,143 +1,143 @@ -var D6=Object.defineProperty,E6=Object.defineProperties;var M6=Object.getOwnPropertyDescriptors;var E_=Object.getOwnPropertySymbols;var hA=Object.prototype.hasOwnProperty,pA=Object.prototype.propertyIsEnumerable;var mA=(t,n,e)=>n in t?D6(t,n,{enumerable:!0,configurable:!0,writable:!0,value:e}):t[n]=e,M=(t,n)=>{for(var e in n||={})hA.call(n,e)&&mA(t,e,n[e]);if(E_)for(var e of E_(n))pA.call(n,e)&&mA(t,e,n[e]);return t},De=(t,n)=>E6(t,M6(n));var fA=t=>typeof t=="symbol"?t:t+"",ed=(t,n)=>{var e={};for(var i in t)hA.call(t,i)&&n.indexOf(i)<0&&(e[i]=t[i]);if(t!=null&&E_)for(var i of E_(t))n.indexOf(i)<0&&pA.call(t,i)&&(e[i]=t[i]);return e};var fn=(t,n,e)=>new Promise((i,r)=>{var o=l=>{try{s(e.next(l))}catch(c){r(c)}},a=l=>{try{s(e.throw(l))}catch(c){r(c)}},s=l=>l.done?i(l.value):Promise.resolve(l.value).then(o,a);s((e=e.apply(t,n)).next())});var Mw;function M_(){return Mw}function Ua(t){let n=Mw;return Mw=t,n}var gA=Symbol("NotFound");function Fu(t){return t===gA||t?.name==="\u0275NotFound"}var cr=null,k_=!1,kw=1,k6=null,ln=Symbol("SIGNAL");function Xe(t){let n=cr;return cr=t,n}function A_(){return cr}var td={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 kl(t){if(k_)throw new Error("");if(cr===null)return;cr.consumerOnSignalRead(t);let n=cr.producersTail;if(n!==void 0&&n.producer===t)return;let e,i=cr.recomputing;if(i&&(e=n!==void 0?n.nextProducer:cr.producers,e!==void 0&&e.producer===t)){cr.producersTail=e,e.lastReadVersion=t.version;return}let r=t.consumersTail;if(r!==void 0&&r.consumer===cr&&(!i||T6(r,cr)))return;let o=Nu(cr),a={producer:t,consumer:cr,nextProducer:e,prevConsumer:r,lastReadVersion:t.version,nextConsumer:void 0};cr.producersTail=a,n!==void 0?n.nextProducer=a:cr.producers=a,o&&yA(t,a)}function _A(){kw++}function O_(t){if(!(Nu(t)&&!t.dirty)&&!(!t.dirty&&t.lastCleanEpoch===kw)){if(!t.producerMustRecompute(t)&&!nd(t)){I_(t);return}t.producerRecomputeValue(t),I_(t)}}function Sw(t){if(t.consumers===void 0)return;let n=k_;k_=!0;try{for(let e=t.consumers;e!==void 0;e=e.nextConsumer){let i=e.consumer;i.dirty||S6(i)}}finally{k_=n}}function Tw(){return cr?.consumerAllowSignalWrites!==!1}function S6(t){t.dirty=!0,Sw(t),t.consumerMarkedDirty?.(t)}function I_(t){t.dirty=!1,t.lastCleanEpoch=kw}function Sl(t){return t&&bA(t),Xe(t)}function bA(t){t.producersTail=void 0,t.recomputing=!0}function id(t,n){Xe(n),t&&vA(t)}function vA(t){t.recomputing=!1;let n=t.producersTail,e=n!==void 0?n.nextProducer:t.producers;if(e!==void 0){if(Nu(t))do e=Iw(e);while(e!==void 0);n!==void 0?n.nextProducer=void 0:t.producers=void 0}}function nd(t){for(let n=t.producers;n!==void 0;n=n.nextProducer){let e=n.producer,i=n.lastReadVersion;if(i!==e.version||(O_(e),i!==e.version))return!0}return!1}function Tl(t){if(Nu(t)){let n=t.producers;for(;n!==void 0;)n=Iw(n)}t.producers=void 0,t.producersTail=void 0,t.consumers=void 0,t.consumersTail=void 0}function yA(t,n){let e=t.consumersTail,i=Nu(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,!i)for(let r=t.producers;r!==void 0;r=r.nextProducer)yA(r.producer,r)}function Iw(t){let n=t.producer,e=t.nextProducer,i=t.nextConsumer,r=t.prevConsumer;if(t.nextConsumer=void 0,t.prevConsumer=void 0,i!==void 0?i.prevConsumer=r:n.consumersTail=r,r!==void 0)r.nextConsumer=i;else if(n.consumers=i,!Nu(n)){let o=n.producers;for(;o!==void 0;)o=Iw(o)}return e}function Nu(t){return t.consumerIsAlwaysLive||t.consumers!==void 0}function R_(t){k6?.(t)}function T6(t,n){let e=n.producersTail;if(e!==void 0){let i=n.producers;do{if(i===t)return!0;if(i===e)break;i=i.nextProducer}while(i!==void 0)}return!1}function P_(t,n){return Object.is(t,n)}function pp(t,n){let e=Object.create(I6);e.computation=t,n!==void 0&&(e.equal=n);let i=()=>{if(O_(e),kl(e),e.value===hp)throw e.error;return e.value};return i[ln]=e,R_(e),i}var S_=Symbol("UNSET"),T_=Symbol("COMPUTING"),hp=Symbol("ERRORED"),I6=De(M({},td),{value:S_,dirty:!0,error:null,equal:P_,kind:"computed",producerMustRecompute(t){return t.value===S_||t.value===T_},producerRecomputeValue(t){if(t.value===T_)throw new Error("");let n=t.value;t.value=T_;let e=Sl(t),i,r=!1;try{i=t.computation(),Xe(null),r=n!==S_&&n!==hp&&i!==hp&&t.equal(n,i)}catch(o){i=hp,t.error=o}finally{id(t,e)}if(r){t.value=n;return}t.value=i,t.version++}});function A6(){throw new Error}var xA=A6;function CA(t){xA(t)}function Aw(t){xA=t}var O6=null;function Ow(t,n){let e=Object.create(fp);e.value=t,n!==void 0&&(e.equal=n);let i=()=>wA(e);return i[ln]=e,R_(e),[i,a=>rd(e,a),a=>Rw(e,a)]}function wA(t){return kl(t),t.value}function rd(t,n){Tw()||CA(t),t.equal(t.value,n)||(t.value=n,R6(t))}function Rw(t,n){Tw()||CA(t),rd(t,n(t.value))}var fp=De(M({},td),{equal:P_,value:void 0,kind:"signal"});function R6(t){t.version++,_A(),Sw(t),O6?.(t)}function Ke(t){return typeof t=="function"}function Il(t){let e=t(i=>{Error.call(i),i.stack=new Error().stack});return e.prototype=Object.create(Error.prototype),e.prototype.constructor=e,e}var F_=Il(t=>function(e){t(this),this.message=e?`${e.length} errors occurred during unsubscription: +var w6=Object.defineProperty,D6=Object.defineProperties;var E6=Object.getOwnPropertyDescriptors;var E_=Object.getOwnPropertySymbols;var mA=Object.prototype.hasOwnProperty,hA=Object.prototype.propertyIsEnumerable;var uA=(t,n,e)=>n in t?w6(t,n,{enumerable:!0,configurable:!0,writable:!0,value:e}):t[n]=e,M=(t,n)=>{for(var e in n||={})mA.call(n,e)&&uA(t,e,n[e]);if(E_)for(var e of E_(n))hA.call(n,e)&&uA(t,e,n[e]);return t},De=(t,n)=>D6(t,E6(n));var pA=t=>typeof t=="symbol"?t:t+"",ed=(t,n)=>{var e={};for(var i in t)mA.call(t,i)&&n.indexOf(i)<0&&(e[i]=t[i]);if(t!=null&&E_)for(var i of E_(t))n.indexOf(i)<0&&hA.call(t,i)&&(e[i]=t[i]);return e};var fn=(t,n,e)=>new Promise((i,r)=>{var o=l=>{try{s(e.next(l))}catch(c){r(c)}},a=l=>{try{s(e.throw(l))}catch(c){r(c)}},s=l=>l.done?i(l.value):Promise.resolve(l.value).then(o,a);s((e=e.apply(t,n)).next())});var Mw;function M_(){return Mw}function Ua(t){let n=Mw;return Mw=t,n}var fA=Symbol("NotFound");function Fu(t){return t===fA||t?.name==="\u0275NotFound"}var cr=null,k_=!1,kw=1,M6=null,ln=Symbol("SIGNAL");function Xe(t){let n=cr;return cr=t,n}function A_(){return cr}var td={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 kl(t){if(k_)throw new Error("");if(cr===null)return;cr.consumerOnSignalRead(t);let n=cr.producersTail;if(n!==void 0&&n.producer===t)return;let e,i=cr.recomputing;if(i&&(e=n!==void 0?n.nextProducer:cr.producers,e!==void 0&&e.producer===t)){cr.producersTail=e,e.lastReadVersion=t.version;return}let r=t.consumersTail;if(r!==void 0&&r.consumer===cr&&(!i||S6(r,cr)))return;let o=Nu(cr),a={producer:t,consumer:cr,nextProducer:e,prevConsumer:r,lastReadVersion:t.version,nextConsumer:void 0};cr.producersTail=a,n!==void 0?n.nextProducer=a:cr.producers=a,o&&vA(t,a)}function gA(){kw++}function O_(t){if(!(Nu(t)&&!t.dirty)&&!(!t.dirty&&t.lastCleanEpoch===kw)){if(!t.producerMustRecompute(t)&&!nd(t)){I_(t);return}t.producerRecomputeValue(t),I_(t)}}function Sw(t){if(t.consumers===void 0)return;let n=k_;k_=!0;try{for(let e=t.consumers;e!==void 0;e=e.nextConsumer){let i=e.consumer;i.dirty||k6(i)}}finally{k_=n}}function Tw(){return cr?.consumerAllowSignalWrites!==!1}function k6(t){t.dirty=!0,Sw(t),t.consumerMarkedDirty?.(t)}function I_(t){t.dirty=!1,t.lastCleanEpoch=kw}function Sl(t){return t&&_A(t),Xe(t)}function _A(t){t.producersTail=void 0,t.recomputing=!0}function id(t,n){Xe(n),t&&bA(t)}function bA(t){t.recomputing=!1;let n=t.producersTail,e=n!==void 0?n.nextProducer:t.producers;if(e!==void 0){if(Nu(t))do e=Iw(e);while(e!==void 0);n!==void 0?n.nextProducer=void 0:t.producers=void 0}}function nd(t){for(let n=t.producers;n!==void 0;n=n.nextProducer){let e=n.producer,i=n.lastReadVersion;if(i!==e.version||(O_(e),i!==e.version))return!0}return!1}function Tl(t){if(Nu(t)){let n=t.producers;for(;n!==void 0;)n=Iw(n)}t.producers=void 0,t.producersTail=void 0,t.consumers=void 0,t.consumersTail=void 0}function vA(t,n){let e=t.consumersTail,i=Nu(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,!i)for(let r=t.producers;r!==void 0;r=r.nextProducer)vA(r.producer,r)}function Iw(t){let n=t.producer,e=t.nextProducer,i=t.nextConsumer,r=t.prevConsumer;if(t.nextConsumer=void 0,t.prevConsumer=void 0,i!==void 0?i.prevConsumer=r:n.consumersTail=r,r!==void 0)r.nextConsumer=i;else if(n.consumers=i,!Nu(n)){let o=n.producers;for(;o!==void 0;)o=Iw(o)}return e}function Nu(t){return t.consumerIsAlwaysLive||t.consumers!==void 0}function R_(t){M6?.(t)}function S6(t,n){let e=n.producersTail;if(e!==void 0){let i=n.producers;do{if(i===t)return!0;if(i===e)break;i=i.nextProducer}while(i!==void 0)}return!1}function P_(t,n){return Object.is(t,n)}function pp(t,n){let e=Object.create(T6);e.computation=t,n!==void 0&&(e.equal=n);let i=()=>{if(O_(e),kl(e),e.value===hp)throw e.error;return e.value};return i[ln]=e,R_(e),i}var S_=Symbol("UNSET"),T_=Symbol("COMPUTING"),hp=Symbol("ERRORED"),T6=De(M({},td),{value:S_,dirty:!0,error:null,equal:P_,kind:"computed",producerMustRecompute(t){return t.value===S_||t.value===T_},producerRecomputeValue(t){if(t.value===T_)throw new Error("");let n=t.value;t.value=T_;let e=Sl(t),i,r=!1;try{i=t.computation(),Xe(null),r=n!==S_&&n!==hp&&i!==hp&&t.equal(n,i)}catch(o){i=hp,t.error=o}finally{id(t,e)}if(r){t.value=n;return}t.value=i,t.version++}});function I6(){throw new Error}var yA=I6;function xA(t){yA(t)}function Aw(t){yA=t}var A6=null;function Ow(t,n){let e=Object.create(fp);e.value=t,n!==void 0&&(e.equal=n);let i=()=>CA(e);return i[ln]=e,R_(e),[i,a=>rd(e,a),a=>Rw(e,a)]}function CA(t){return kl(t),t.value}function rd(t,n){Tw()||xA(t),t.equal(t.value,n)||(t.value=n,O6(t))}function Rw(t,n){Tw()||xA(t),rd(t,n(t.value))}var fp=De(M({},td),{equal:P_,value:void 0,kind:"signal"});function O6(t){t.version++,gA(),Sw(t),A6?.(t)}function Ke(t){return typeof t=="function"}function Il(t){let e=t(i=>{Error.call(i),i.stack=new Error().stack});return e.prototype=Object.create(Error.prototype),e.prototype.constructor=e,e}var F_=Il(t=>function(e){t(this),this.message=e?`${e.length} errors occurred during unsubscription: ${e.map((i,r)=>`${r+1}) ${i.toString()}`).join(` - `)}`:"",this.name="UnsubscriptionError",this.errors=e});function od(t,n){if(t){let e=t.indexOf(n);0<=e&&t.splice(e,1)}}var ke=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 o of e)o.remove(this);else e.remove(this);let{initialTeardown:i}=this;if(Ke(i))try{i()}catch(o){n=o instanceof F_?o.errors:[o]}let{_finalizers:r}=this;if(r){this._finalizers=null;for(let o of r)try{DA(o)}catch(a){n=n??[],a instanceof F_?n=[...n,...a.errors]:n.push(a)}}if(n)throw new F_(n)}}add(n){var e;if(n&&n!==this)if(this.closed)DA(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)&&od(e,n)}remove(n){let{_finalizers:e}=this;e&&od(e,n),n instanceof t&&n._removeParent(this)}};ke.EMPTY=(()=>{let t=new ke;return t.closed=!0,t})();var Pw=ke.EMPTY;function N_(t){return t instanceof ke||t&&"closed"in t&&Ke(t.remove)&&Ke(t.add)&&Ke(t.unsubscribe)}function DA(t){Ke(t)?t():t.unsubscribe()}var ha={onUnhandledError:null,onStoppedNotification:null,Promise:void 0,useDeprecatedSynchronousErrorHandling:!1,useDeprecatedNextContext:!1};var Lu={setTimeout(t,n,...e){let{delegate:i}=Lu;return i?.setTimeout?i.setTimeout(t,n,...e):setTimeout(t,n,...e)},clearTimeout(t){let{delegate:n}=Lu;return(n?.clearTimeout||clearTimeout)(t)},delegate:void 0};function L_(t){Lu.setTimeout(()=>{let{onUnhandledError:n}=ha;if(n)n(t);else throw t})}function ad(){}var EA=Fw("C",void 0,void 0);function MA(t){return Fw("E",void 0,t)}function kA(t){return Fw("N",t,void 0)}function Fw(t,n,e){return{kind:t,value:n,error:e}}var sd=null;function Vu(t){if(ha.useDeprecatedSynchronousErrorHandling){let n=!sd;if(n&&(sd={errorThrown:!1,error:null}),t(),n){let{errorThrown:e,error:i}=sd;if(sd=null,e)throw i}}else t()}function SA(t){ha.useDeprecatedSynchronousErrorHandling&&sd&&(sd.errorThrown=!0,sd.error=t)}var ld=class extends ke{constructor(n){super(),this.isStopped=!1,n?(this.destination=n,N_(n)&&n.add(this)):this.destination=N6}static create(n,e,i){return new Bs(n,e,i)}next(n){this.isStopped?Lw(kA(n),this):this._next(n)}error(n){this.isStopped?Lw(MA(n),this):(this.isStopped=!0,this._error(n))}complete(){this.isStopped?Lw(EA,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()}}},P6=Function.prototype.bind;function Nw(t,n){return P6.call(t,n)}var Vw=class{constructor(n){this.partialObserver=n}next(n){let{partialObserver:e}=this;if(e.next)try{e.next(n)}catch(i){V_(i)}}error(n){let{partialObserver:e}=this;if(e.error)try{e.error(n)}catch(i){V_(i)}else V_(n)}complete(){let{partialObserver:n}=this;if(n.complete)try{n.complete()}catch(e){V_(e)}}},Bs=class extends ld{constructor(n,e,i){super();let r;if(Ke(n)||!n)r={next:n??void 0,error:e??void 0,complete:i??void 0};else{let o;this&&ha.useDeprecatedNextContext?(o=Object.create(n),o.unsubscribe=()=>this.unsubscribe(),r={next:n.next&&Nw(n.next,o),error:n.error&&Nw(n.error,o),complete:n.complete&&Nw(n.complete,o)}):r=n}this.destination=new Vw(r)}};function V_(t){ha.useDeprecatedSynchronousErrorHandling?SA(t):L_(t)}function F6(t){throw t}function Lw(t,n){let{onStoppedNotification:e}=ha;e&&Lu.setTimeout(()=>e(t,n))}var N6={closed:!0,next:ad,error:F6,complete:ad};var Bu=typeof Symbol=="function"&&Symbol.observable||"@@observable";function Mr(t){return t}function Bw(...t){return jw(t)}function jw(t){return t.length===0?Mr:t.length===1?t[0]:function(e){return t.reduce((i,r)=>r(i),e)}}var Fe=(()=>{class t{constructor(e){e&&(this._subscribe=e)}lift(e){let i=new t;return i.source=this,i.operator=e,i}subscribe(e,i,r){let o=V6(e)?e:new Bs(e,i,r);return Vu(()=>{let{operator:a,source:s}=this;o.add(a?a.call(o,s):s?this._subscribe(o):this._trySubscribe(o))}),o}_trySubscribe(e){try{return this._subscribe(e)}catch(i){e.error(i)}}forEach(e,i){return i=TA(i),new i((r,o)=>{let a=new Bs({next:s=>{try{e(s)}catch(l){o(l),a.unsubscribe()}},error:o,complete:r});this.subscribe(a)})}_subscribe(e){var i;return(i=this.source)===null||i===void 0?void 0:i.subscribe(e)}[Bu](){return this}pipe(...e){return jw(e)(this)}toPromise(e){return e=TA(e),new e((i,r)=>{let o;this.subscribe(a=>o=a,a=>r(a),()=>i(o))})}}return t.create=n=>new t(n),t})();function TA(t){var n;return(n=t??ha.Promise)!==null&&n!==void 0?n:Promise}function L6(t){return t&&Ke(t.next)&&Ke(t.error)&&Ke(t.complete)}function V6(t){return t&&t instanceof ld||L6(t)&&N_(t)}function Hw(t){return Ke(t?.lift)}function Qe(t){return n=>{if(Hw(n))return n.lift(function(e){try{return t(e,this)}catch(i){this.error(i)}});throw new TypeError("Unable to lift unknown Observable type")}}function Ue(t,n,e,i,r){return new zw(t,n,e,i,r)}var zw=class extends ld{constructor(n,e,i,r,o,a){super(n),this.onFinalize=o,this.shouldUnsubscribe=a,this._next=e?function(s){try{e(s)}catch(l){n.error(l)}}:super._next,this._error=r?function(s){try{r(s)}catch(l){n.error(l)}finally{this.unsubscribe()}}:super._error,this._complete=i?function(){try{i()}catch(s){n.error(s)}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 ju(){return Qe((t,n)=>{let e=null;t._refCount++;let i=Ue(n,void 0,void 0,void 0,()=>{if(!t||t._refCount<=0||0<--t._refCount){e=null;return}let r=t._connection,o=e;e=null,r&&(!o||r===o)&&r.unsubscribe(),n.unsubscribe()});t.subscribe(i),i.closed||(e=t.connect())})}var Al=class extends Fe{constructor(n,e){super(),this.source=n,this.subjectFactory=e,this._subject=null,this._refCount=0,this._connection=null,Hw(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 ke;let e=this.getSubject();n.add(this.source.subscribe(Ue(e,void 0,()=>{this._teardown(),e.complete()},i=>{this._teardown(),e.error(i)},()=>this._teardown()))),n.closed&&(this._connection=null,n=ke.EMPTY)}return n}refCount(){return ju()(this)}};var Hu={schedule(t){let n=requestAnimationFrame,e=cancelAnimationFrame,{delegate:i}=Hu;i&&(n=i.requestAnimationFrame,e=i.cancelAnimationFrame);let r=n(o=>{e=void 0,t(o)});return new ke(()=>e?.(r))},requestAnimationFrame(...t){let{delegate:n}=Hu;return(n?.requestAnimationFrame||requestAnimationFrame)(...t)},cancelAnimationFrame(...t){let{delegate:n}=Hu;return(n?.cancelAnimationFrame||cancelAnimationFrame)(...t)},delegate:void 0};var IA=Il(t=>function(){t(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"});var z=(()=>{class t extends Fe{constructor(){super(),this.closed=!1,this.currentObservers=null,this.observers=[],this.isStopped=!1,this.hasError=!1,this.thrownError=null}lift(e){let i=new B_(this,this);return i.operator=e,i}_throwIfClosed(){if(this.closed)throw new IA}next(e){Vu(()=>{if(this._throwIfClosed(),!this.isStopped){this.currentObservers||(this.currentObservers=Array.from(this.observers));for(let i of this.currentObservers)i.next(e)}})}error(e){Vu(()=>{if(this._throwIfClosed(),!this.isStopped){this.hasError=this.isStopped=!0,this.thrownError=e;let{observers:i}=this;for(;i.length;)i.shift().error(e)}})}complete(){Vu(()=>{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:i,isStopped:r,observers:o}=this;return i||r?Pw:(this.currentObservers=null,o.push(e),new ke(()=>{this.currentObservers=null,od(o,e)}))}_checkFinalizedStatuses(e){let{hasError:i,thrownError:r,isStopped:o}=this;i?e.error(r):o&&e.complete()}asObservable(){let e=new Fe;return e.source=this,e}}return t.create=(n,e)=>new B_(n,e),t})(),B_=class extends z{constructor(n,e){super(),this.destination=n,this.source=e}next(n){var e,i;(i=(e=this.destination)===null||e===void 0?void 0:e.next)===null||i===void 0||i.call(e,n)}error(n){var e,i;(i=(e=this.destination)===null||e===void 0?void 0:e.error)===null||i===void 0||i.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,i;return(i=(e=this.source)===null||e===void 0?void 0:e.subscribe(n))!==null&&i!==void 0?i:Pw}};var tt=class extends z{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:i}=this;if(n)throw e;return this._throwIfClosed(),i}next(n){super.next(this._value=n)}};var gp={now(){return(gp.delegate||Date).now()},delegate:void 0};var $a=class extends z{constructor(n=1/0,e=1/0,i=gp){super(),this._bufferSize=n,this._windowTime=e,this._timestampProvider=i,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:i,_infiniteTimeWindow:r,_timestampProvider:o,_windowTime:a}=this;e||(i.push(n),!r&&i.push(o.now()+a)),this._trimBuffer(),super.next(n)}_subscribe(n){this._throwIfClosed(),this._trimBuffer();let e=this._innerSubscribe(n),{_infiniteTimeWindow:i,_buffer:r}=this,o=r.slice();for(let a=0;aAA(n)&&t()),n},clearImmediate(t){AA(t)}};var{setImmediate:j6,clearImmediate:H6}=OA,bp={setImmediate(...t){let{delegate:n}=bp;return(n?.setImmediate||j6)(...t)},clearImmediate(t){let{delegate:n}=bp;return(n?.clearImmediate||H6)(t)},delegate:void 0};var H_=class extends Ol{constructor(n,e){super(n,e),this.scheduler=n,this.work=e}requestAsyncId(n,e,i=0){return i!==null&&i>0?super.requestAsyncId(n,e,i):(n.actions.push(this),n._scheduled||(n._scheduled=bp.setImmediate(n.flush.bind(n,void 0))))}recycleAsyncId(n,e,i=0){var r;if(i!=null?i>0:this.delay>0)return super.recycleAsyncId(n,e,i);let{actions:o}=n;e!=null&&((r=o[o.length-1])===null||r===void 0?void 0:r.id)!==e&&(bp.clearImmediate(e),n._scheduled===e&&(n._scheduled=void 0))}};var zu=class t{constructor(n,e=t.now){this.schedulerActionCtor=n,this.now=e}schedule(n,e=0,i){return new this.schedulerActionCtor(this,n).schedule(i,e)}};zu.now=gp.now;var Rl=class extends zu{constructor(n,e=zu.now){super(n,e),this.actions=[],this._active=!1}flush(n){let{actions:e}=this;if(this._active){e.push(n);return}let i;this._active=!0;do if(i=n.execute(n.state,n.delay))break;while(n=e.shift());if(this._active=!1,i){for(;n=e.shift();)n.unsubscribe();throw i}}};var z_=class extends Rl{flush(n){this._active=!0;let e=this._scheduled;this._scheduled=void 0;let{actions:i}=this,r;n=n||i.shift();do if(r=n.execute(n.state,n.delay))break;while((n=i[0])&&n.id===e&&i.shift());if(this._active=!1,r){for(;(n=i[0])&&n.id===e&&i.shift();)n.unsubscribe();throw r}}};var U_=new z_(H_);var js=new Rl(Ol),RA=js;var $_=class extends Ol{constructor(n,e){super(n,e),this.scheduler=n,this.work=e}requestAsyncId(n,e,i=0){return i!==null&&i>0?super.requestAsyncId(n,e,i):(n.actions.push(this),n._scheduled||(n._scheduled=Hu.requestAnimationFrame(()=>n.flush(void 0))))}recycleAsyncId(n,e,i=0){var r;if(i!=null?i>0:this.delay>0)return super.recycleAsyncId(n,e,i);let{actions:o}=n;e!=null&&e===n._scheduled&&((r=o[o.length-1])===null||r===void 0?void 0:r.id)!==e&&(Hu.cancelAnimationFrame(e),n._scheduled=void 0)}};var W_=class extends Rl{flush(n){this._active=!0;let e;n?e=n.id:(e=this._scheduled,this._scheduled=void 0);let{actions:i}=this,r;n=n||i.shift();do if(r=n.execute(n.state,n.delay))break;while((n=i[0])&&n.id===e&&i.shift());if(this._active=!1,r){for(;(n=i[0])&&n.id===e&&i.shift();)n.unsubscribe();throw r}}};var G_=new W_($_);var Fi=new Fe(t=>t.complete());function q_(t){return t&&Ke(t.schedule)}function Ww(t){return t[t.length-1]}function Y_(t){return Ke(Ww(t))?t.pop():void 0}function Wa(t){return q_(Ww(t))?t.pop():void 0}function PA(t,n){return typeof Ww(t)=="number"?t.pop():n}function NA(t,n,e,i){function r(o){return o instanceof e?o:new e(function(a){a(o)})}return new(e||(e=Promise))(function(o,a){function s(d){try{c(i.next(d))}catch(m){a(m)}}function l(d){try{c(i.throw(d))}catch(m){a(m)}}function c(d){d.done?o(d.value):r(d.value).then(s,l)}c((i=i.apply(t,n||[])).next())})}function FA(t){var n=typeof Symbol=="function"&&Symbol.iterator,e=n&&t[n],i=0;if(e)return e.call(t);if(t&&typeof t.length=="number")return{next:function(){return t&&i>=t.length&&(t=void 0),{value:t&&t[i++],done:!t}}};throw new TypeError(n?"Object is not iterable.":"Symbol.iterator is not defined.")}function cd(t){return this instanceof cd?(this.v=t,this):new cd(t)}function LA(t,n,e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var i=e.apply(t,n||[]),r,o=[];return r=Object.create((typeof AsyncIterator=="function"?AsyncIterator:Object).prototype),s("next"),s("throw"),s("return",a),r[Symbol.asyncIterator]=function(){return this},r;function a(b){return function(v){return Promise.resolve(v).then(b,m)}}function s(b,v){i[b]&&(r[b]=function(w){return new Promise(function(x,D){o.push([b,w,x,D])>1||l(b,w)})},v&&(r[b]=v(r[b])))}function l(b,v){try{c(i[b](v))}catch(w){f(o[0][3],w)}}function c(b){b.value instanceof cd?Promise.resolve(b.value.v).then(d,m):f(o[0][2],b)}function d(b){l("next",b)}function m(b){l("throw",b)}function f(b,v){b(v),o.shift(),o.length&&l(o[0][0],o[0][1])}}function VA(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 FA=="function"?FA(t):t[Symbol.iterator](),e={},i("next"),i("throw"),i("return"),e[Symbol.asyncIterator]=function(){return this},e);function i(o){e[o]=t[o]&&function(a){return new Promise(function(s,l){a=t[o](a),r(s,l,a.done,a.value)})}}function r(o,a,s,l){Promise.resolve(l).then(function(c){o({value:c,done:s})},a)}}var Uu=t=>t&&typeof t.length=="number"&&typeof t!="function";function Q_(t){return Ke(t?.then)}function K_(t){return Ke(t[Bu])}function Z_(t){return Symbol.asyncIterator&&Ke(t?.[Symbol.asyncIterator])}function X_(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 z6(){return typeof Symbol!="function"||!Symbol.iterator?"@@iterator":Symbol.iterator}var J_=z6();function eb(t){return Ke(t?.[J_])}function tb(t){return LA(this,arguments,function*(){let e=t.getReader();try{for(;;){let{value:i,done:r}=yield cd(e.read());if(r)return yield cd(void 0);yield yield cd(i)}}finally{e.releaseLock()}})}function ib(t){return Ke(t?.getReader)}function At(t){if(t instanceof Fe)return t;if(t!=null){if(K_(t))return U6(t);if(Uu(t))return $6(t);if(Q_(t))return W6(t);if(Z_(t))return BA(t);if(eb(t))return G6(t);if(ib(t))return q6(t)}throw X_(t)}function U6(t){return new Fe(n=>{let e=t[Bu]();if(Ke(e.subscribe))return e.subscribe(n);throw new TypeError("Provided object does not correctly implement Symbol.observable")})}function $6(t){return new Fe(n=>{for(let e=0;e{t.then(e=>{n.closed||(n.next(e),n.complete())},e=>n.error(e)).then(null,L_)})}function G6(t){return new Fe(n=>{for(let e of t)if(n.next(e),n.closed)return;n.complete()})}function BA(t){return new Fe(n=>{Y6(t,n).catch(e=>n.error(e))})}function q6(t){return BA(tb(t))}function Y6(t,n){var e,i,r,o;return NA(this,void 0,void 0,function*(){try{for(e=VA(t);i=yield e.next(),!i.done;){let a=i.value;if(n.next(a),n.closed)return}}catch(a){r={error:a}}finally{try{i&&!i.done&&(o=e.return)&&(yield o.call(e))}finally{if(r)throw r.error}}n.complete()})}function dr(t,n,e,i=0,r=!1){let o=n.schedule(function(){e(),r?t.add(this.schedule(null,i)):this.unsubscribe()},i);if(t.add(o),!r)return o}function nb(t,n=0){return Qe((e,i)=>{e.subscribe(Ue(i,r=>dr(i,t,()=>i.next(r),n),()=>dr(i,t,()=>i.complete(),n),r=>dr(i,t,()=>i.error(r),n)))})}function rb(t,n=0){return Qe((e,i)=>{i.add(t.schedule(()=>e.subscribe(i),n))})}function jA(t,n){return At(t).pipe(rb(n),nb(n))}function HA(t,n){return At(t).pipe(rb(n),nb(n))}function zA(t,n){return new Fe(e=>{let i=0;return n.schedule(function(){i===t.length?e.complete():(e.next(t[i++]),e.closed||this.schedule())})})}function UA(t,n){return new Fe(e=>{let i;return dr(e,n,()=>{i=t[J_](),dr(e,n,()=>{let r,o;try{({value:r,done:o}=i.next())}catch(a){e.error(a);return}o?e.complete():e.next(r)},0,!0)}),()=>Ke(i?.return)&&i.return()})}function ob(t,n){if(!t)throw new Error("Iterable cannot be null");return new Fe(e=>{dr(e,n,()=>{let i=t[Symbol.asyncIterator]();dr(e,n,()=>{i.next().then(r=>{r.done?e.complete():e.next(r.value)})},0,!0)})})}function $A(t,n){return ob(tb(t),n)}function WA(t,n){if(t!=null){if(K_(t))return jA(t,n);if(Uu(t))return zA(t,n);if(Q_(t))return HA(t,n);if(Z_(t))return ob(t,n);if(eb(t))return UA(t,n);if(ib(t))return $A(t,n)}throw X_(t)}function Ot(t,n){return n?WA(t,n):At(t)}function Q(...t){let n=Wa(t);return Ot(t,n)}function Wn(t,n){let e=Ke(t)?t:()=>t,i=r=>r.error(e());return new Fe(n?r=>n.schedule(i,0,r):i)}function ji(t){return!!t&&(t instanceof Fe||Ke(t.lift)&&Ke(t.subscribe))}var Hs=Il(t=>function(){t(this),this.name="EmptyError",this.message="no elements in sequence"});function ab(t){return t instanceof Date&&!isNaN(t)}var Q6=Il(t=>function(e=null){t(this),this.message="Timeout has occurred",this.name="TimeoutError",this.info=e});function Gw(t,n){let{first:e,each:i,with:r=K6,scheduler:o=n??js,meta:a=null}=ab(t)?{first:t}:typeof t=="number"?{each:t}:t;if(e==null&&i==null)throw new TypeError("No timeout provided.");return Qe((s,l)=>{let c,d,m=null,f=0,b=v=>{d=dr(l,o,()=>{try{c.unsubscribe(),At(r({meta:a,lastValue:m,seen:f})).subscribe(l)}catch(w){l.error(w)}},v)};c=s.subscribe(Ue(l,v=>{d?.unsubscribe(),f++,l.next(m=v),i>0&&b(i)},void 0,void 0,()=>{d?.closed||d?.unsubscribe(),m=null})),!f&&b(e!=null?typeof e=="number"?e:+e-o.now():i)})}function K6(t){throw new Q6(t)}function se(t,n){return Qe((e,i)=>{let r=0;e.subscribe(Ue(i,o=>{i.next(t.call(n,o,r++))}))})}var{isArray:Z6}=Array;function X6(t,n){return Z6(n)?t(...n):t(n)}function $u(t){return se(n=>X6(t,n))}var{isArray:J6}=Array,{getPrototypeOf:e$,prototype:t$,keys:i$}=Object;function sb(t){if(t.length===1){let n=t[0];if(J6(n))return{args:n,keys:null};if(n$(n)){let e=i$(n);return{args:e.map(i=>n[i]),keys:e}}}return{args:t,keys:null}}function n$(t){return t&&typeof t=="object"&&e$(t)===t$}function lb(t,n){return t.reduce((e,i,r)=>(e[i]=n[r],e),{})}function co(...t){let n=Wa(t),e=Y_(t),{args:i,keys:r}=sb(t);if(i.length===0)return Ot([],n);let o=new Fe(r$(i,n,r?a=>lb(r,a):Mr));return e?o.pipe($u(e)):o}function r$(t,n,e=Mr){return i=>{GA(n,()=>{let{length:r}=t,o=new Array(r),a=r,s=r;for(let l=0;l{let c=Ot(t[l],n),d=!1;c.subscribe(Ue(i,m=>{o[l]=m,d||(d=!0,s--),s||i.next(e(o.slice()))},()=>{--a||i.complete()}))},i)},i)}}function GA(t,n,e){t?dr(e,t,n):n()}function qA(t,n,e,i,r,o,a,s){let l=[],c=0,d=0,m=!1,f=()=>{m&&!l.length&&!c&&n.complete()},b=w=>c{o&&n.next(w),c++;let x=!1;At(e(w,d++)).subscribe(Ue(n,D=>{r?.(D),o?b(D):n.next(D)},()=>{x=!0},void 0,()=>{if(x)try{for(c--;l.length&&cv(D)):v(D)}f()}catch(D){n.error(D)}}))};return t.subscribe(Ue(n,b,()=>{m=!0,f()})),()=>{s?.()}}function Mt(t,n,e=1/0){return Ke(n)?Mt((i,r)=>se((o,a)=>n(i,o,r,a))(At(t(i,r))),e):(typeof n=="number"&&(e=n),Qe((i,r)=>qA(i,r,t,e)))}function uo(t=1/0){return Mt(Mr,t)}function YA(){return uo(1)}function mo(...t){return YA()(Ot(t,Wa(t)))}function kn(t){return new Fe(n=>{At(t()).subscribe(n)})}function Ga(...t){let n=Y_(t),{args:e,keys:i}=sb(t),r=new Fe(o=>{let{length:a}=e;if(!a){o.complete();return}let s=new Array(a),l=a,c=a;for(let d=0;d{m||(m=!0,c--),s[d]=f},()=>l--,void 0,()=>{(!l||!m)&&(c||o.next(i?lb(i,s):s),o.complete())}))}});return n?r.pipe($u(n)):r}var o$=["addListener","removeListener"],a$=["addEventListener","removeEventListener"],s$=["on","off"];function zs(t,n,e,i){if(Ke(e)&&(i=e,e=void 0),i)return zs(t,n,e).pipe($u(i));let[r,o]=d$(t)?a$.map(a=>s=>t[a](n,s,e)):l$(t)?o$.map(QA(t,n)):c$(t)?s$.map(QA(t,n)):[];if(!r&&Uu(t))return Mt(a=>zs(a,n,e))(At(t));if(!r)throw new TypeError("Invalid event target");return new Fe(a=>{let s=(...l)=>a.next(1o(s)})}function QA(t,n){return e=>i=>t[e](n,i)}function l$(t){return Ke(t.addListener)&&Ke(t.removeListener)}function c$(t){return Ke(t.on)&&Ke(t.off)}function d$(t){return Ke(t.addEventListener)&&Ke(t.removeEventListener)}function qa(t=0,n,e=RA){let i=-1;return n!=null&&(q_(n)?e=n:i=n),new Fe(r=>{let o=ab(t)?+t-e.now():t;o<0&&(o=0);let a=0;return e.schedule(function(){r.closed||(r.next(a++),0<=i?this.schedule(void 0,i):r.complete())},o)})}function Je(...t){let n=Wa(t),e=PA(t,1/0),i=t;return i.length?i.length===1?At(i[0]):uo(e)(Ot(i,n)):Fi}var{isArray:u$}=Array;function KA(t){return t.length===1&&u$(t[0])?t[0]:t}function ce(t,n){return Qe((e,i)=>{let r=0;e.subscribe(Ue(i,o=>t.call(n,o,r++)&&i.next(o)))})}function Wu(...t){return t=KA(t),t.length===1?At(t[0]):new Fe(m$(t))}function m$(t){return n=>{let e=[];for(let i=0;e&&!n.closed&&i{if(e){for(let o=0;o{let i=!1,r=null,o=null,a=!1,s=()=>{if(o?.unsubscribe(),o=null,i){i=!1;let c=r;r=null,e.next(c)}a&&e.complete()},l=()=>{o=null,a&&e.complete()};n.subscribe(Ue(e,c=>{i=!0,r=c,o||At(t(c)).subscribe(o=Ue(e,s,l))},()=>{a=!0,(!i||!o||o.closed)&&e.complete()}))})}function Pl(t,n=js){return ZA(()=>qa(t,n))}function fi(t){return Qe((n,e)=>{let i=null,r=!1,o;i=n.subscribe(Ue(e,void 0,void 0,a=>{o=At(t(a,fi(t)(n))),i?(i.unsubscribe(),i=null,o.subscribe(e)):r=!0})),r&&(i.unsubscribe(),i=null,o.subscribe(e))})}function XA(t,n,e,i,r){return(o,a)=>{let s=e,l=n,c=0;o.subscribe(Ue(a,d=>{let m=c++;l=s?t(l,d,m):(s=!0,d),i&&a.next(l)},r&&(()=>{s&&a.next(l),a.complete()})))}}function Ao(t,n){return Ke(n)?Mt(t,n,1):Mt(t,1)}function Rt(t,n=js){return Qe((e,i)=>{let r=null,o=null,a=null,s=()=>{if(r){r.unsubscribe(),r=null;let c=o;o=null,i.next(c)}};function l(){let c=a+t,d=n.now();if(d{o=c,a=n.now(),r||(r=n.schedule(l,t),i.add(r))},()=>{s(),i.complete()},void 0,()=>{o=r=null}))})}function Fl(t){return Qe((n,e)=>{let i=!1;n.subscribe(Ue(e,r=>{i=!0,e.next(r)},()=>{i||e.next(t),e.complete()}))})}function lt(t){return t<=0?()=>Fi:Qe((n,e)=>{let i=0;n.subscribe(Ue(e,r=>{++i<=t&&(e.next(r),t<=i&&e.complete())}))})}function JA(){return Qe((t,n)=>{t.subscribe(Ue(n,ad))})}function Gu(t){return se(()=>t)}function qw(t,n){return n?e=>mo(n.pipe(lt(1),JA()),e.pipe(qw(t))):Mt((e,i)=>At(t(e,i)).pipe(lt(1),Gu(e)))}function pa(t,n=js){let e=qa(t,n);return qw(()=>e)}function Sn(t,n=Mr){return t=t??h$,Qe((e,i)=>{let r,o=!0;e.subscribe(Ue(i,a=>{let s=n(a);(o||!t(r,s))&&(o=!1,r=s,i.next(a))}))})}function h$(t,n){return t===n}function cb(t=p$){return Qe((n,e)=>{let i=!1;n.subscribe(Ue(e,r=>{i=!0,e.next(r)},()=>i?e.complete():e.error(t())))})}function p$(){return new Hs}function Yw(t,n){return Qe((e,i)=>{let r=0;e.subscribe(Ue(i,o=>{t.call(n,o,r++,e)||(i.next(!1),i.complete())},()=>{i.next(!0),i.complete()}))})}function Hr(t){return Qe((n,e)=>{try{n.subscribe(e)}finally{e.add(t)}})}function gn(t,n){let e=arguments.length>=2;return i=>i.pipe(t?ce((r,o)=>t(r,o,i)):Mr,lt(1),e?Fl(n):cb(()=>new Hs))}function qu(t){return t<=0?()=>Fi:Qe((n,e)=>{let i=[];n.subscribe(Ue(e,r=>{i.push(r),t{for(let r of i)e.next(r);e.complete()},void 0,()=>{i=null}))})}function Qw(t,n){let e=arguments.length>=2;return i=>i.pipe(t?ce((r,o)=>t(r,o,i)):Mr,qu(1),e?Fl(n):cb(()=>new Hs))}function db(){return Qe((t,n)=>{let e,i=!1;t.subscribe(Ue(n,r=>{let o=e;e=r,i&&n.next([o,r]),i=!0}))})}function Kw(t,n){return Qe(XA(t,n,arguments.length>=2,!0))}function Nl(t={}){let{connector:n=()=>new z,resetOnError:e=!0,resetOnComplete:i=!0,resetOnRefCountZero:r=!0}=t;return o=>{let a,s,l,c=0,d=!1,m=!1,f=()=>{s?.unsubscribe(),s=void 0},b=()=>{f(),a=l=void 0,d=m=!1},v=()=>{let w=a;b(),w?.unsubscribe()};return Qe((w,x)=>{c++,!m&&!d&&f();let D=l=l??n();x.add(()=>{c--,c===0&&!m&&!d&&(s=Zw(v,r))}),D.subscribe(x),!a&&c>0&&(a=new Bs({next:P=>D.next(P),error:P=>{m=!0,f(),s=Zw(b,e,P),D.error(P)},complete:()=>{d=!0,f(),s=Zw(b,i),D.complete()}}),At(w).subscribe(a))})(o)}}function Zw(t,n,...e){if(n===!0){t();return}if(n===!1)return;let i=new Bs({next:()=>{i.unsubscribe(),t()}});return At(n(...e)).subscribe(i)}function dd(t,n,e){let i,r=!1;return t&&typeof t=="object"?{bufferSize:i=1/0,windowTime:n=1/0,refCount:r=!1,scheduler:e}=t:i=t??1/0,Nl({connector:()=>new $a(i,n,e),resetOnError:!0,resetOnComplete:!1,resetOnRefCountZero:r})}function Ya(t){return ce((n,e)=>t<=e)}function He(...t){let n=Wa(t);return Qe((e,i)=>{(n?mo(t,e,n):mo(t,e)).subscribe(i)})}function $e(t,n){return Qe((e,i)=>{let r=null,o=0,a=!1,s=()=>a&&!r&&i.complete();e.subscribe(Ue(i,l=>{r?.unsubscribe();let c=0,d=o++;At(t(l,d)).subscribe(r=Ue(i,m=>i.next(n?n(l,m,d,c++):m),()=>{r=null,s()}))},()=>{a=!0,s()}))})}function Te(t){return Qe((n,e)=>{At(t).subscribe(Ue(e,()=>e.complete(),ad)),!e.closed&&n.subscribe(e)})}function Xw(t,n=!1){return Qe((e,i)=>{let r=0;e.subscribe(Ue(i,o=>{let a=t(o,r++);(a||n)&&i.next(o),!a&&i.complete()}))})}function Be(t,n,e){let i=Ke(t)||n||e?{next:t,error:n,complete:e}:t;return i?Qe((r,o)=>{var a;(a=i.subscribe)===null||a===void 0||a.call(i);let s=!0;r.subscribe(Ue(o,l=>{var c;(c=i.next)===null||c===void 0||c.call(i,l),o.next(l)},()=>{var l;s=!1,(l=i.complete)===null||l===void 0||l.call(i),o.complete()},l=>{var c;s=!1,(c=i.error)===null||c===void 0||c.call(i,l),o.error(l)},()=>{var l,c;s&&((l=i.unsubscribe)===null||l===void 0||l.call(i)),(c=i.finalize)===null||c===void 0||c.call(i)}))}):Mr}function eO(t){let n=Xe(null);try{return t()}finally{Xe(n)}}var tO=De(M({},td),{consumerIsAlwaysLive:!0,consumerAllowSignalWrites:!0,dirty:!0,kind:"effect"});function iO(t){if(t.dirty=!1,t.version>0&&!nd(t))return;t.version++;let n=Sl(t);try{t.cleanup(),t.fn()}finally{id(t,n)}}var Ll=class{full;major;minor;patch;constructor(n){this.full=n;let e=n.split(".");this.major=e[0],this.minor=e[1],this.patch=e.slice(2).join(".")}},wp=new Ll("20.3.16");var pb="https://angular.dev/best-practices/security#preventing-cross-site-scripting-xss",ue=class extends Error{code;constructor(n,e){super(Ro(n,e)),this.code=n}};function f$(t){return`NG0${Math.abs(t)}`}function Ro(t,n){return`${f$(t)}${n?": "+n:""}`}var Po=globalThis;function Qt(t){for(let n in t)if(t[n]===Qt)return n;throw Error("")}function oO(t,n){for(let e in n)n.hasOwnProperty(e)&&!t.hasOwnProperty(e)&&(t[e]=n[e])}function $s(t){if(typeof t=="string")return t;if(Array.isArray(t))return`[${t.map($s).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 i=e.indexOf(` -`);return i>=0?e.slice(0,i):e}function fb(t,n){return t?n?`${t} ${n}`:t:n||""}var g$=Qt({__forward_ref__:Qt});function Kt(t){return t.__forward_ref__=Kt,t.toString=function(){return $s(this())},t}function _n(t){return dD(t)?t():t}function dD(t){return typeof t=="function"&&t.hasOwnProperty(g$)&&t.__forward_ref__===Kt}function O(t){return{token:t.token,providedIn:t.providedIn||null,factory:t.factory,value:void 0}}function J(t){return{providers:t.providers||[],imports:t.imports||[]}}function Dp(t){return _$(t,gb)}function uD(t){return Dp(t)!==null}function _$(t,n){return t.hasOwnProperty(n)&&t[n]||null}function b$(t){let n=t?.[gb]??null;return n||null}function eD(t){return t&&t.hasOwnProperty(mb)?t[mb]:null}var gb=Qt({\u0275prov:Qt}),mb=Qt({\u0275inj:Qt}),T=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=O({token:this,providedIn:e.providedIn||"root",factory:e.factory}))}get multi(){return this}toString(){return`InjectionToken ${this._desc}`}};function mD(t){return t&&!!t.\u0275providers}var hD=Qt({\u0275cmp:Qt}),pD=Qt({\u0275dir:Qt}),fD=Qt({\u0275pipe:Qt}),gD=Qt({\u0275mod:Qt}),yp=Qt({\u0275fac:Qt}),fd=Qt({__NG_ELEMENT_ID__:Qt}),nO=Qt({__NG_ENV_ID__:Qt});function Fo(t){return typeof t=="string"?t:t==null?"":String(t)}function aO(t){return typeof t=="function"?t.name||t.toString():typeof t=="object"&&t!=null&&typeof t.type=="function"?t.type.name||t.type.toString():Fo(t)}var sO=Qt({ngErrorCode:Qt}),v$=Qt({ngErrorMessage:Qt}),y$=Qt({ngTokenPath:Qt});function _D(t,n){return lO("",-200,n)}function _b(t,n){throw new ue(-201,!1)}function lO(t,n,e){let i=new ue(n,t);return i[sO]=n,i[v$]=t,e&&(i[y$]=e),i}function x$(t){return t[sO]}var tD;function cO(){return tD}function kr(t){let n=tD;return tD=t,n}function bD(t,n,e){let i=Dp(t);if(i&&i.providedIn=="root")return i.value===void 0?i.value=i.factory():i.value;if(e&8)return null;if(n!==void 0)return n;_b(t,"Injector")}var C$={},ud=C$,iD="__NG_DI_FLAG__",nD=class{injector;constructor(n){this.injector=n}retrieve(n,e){let i=md(e)||0;try{return this.injector.get(n,i&8?null:ud,i)}catch(r){if(Fu(r))return r;throw r}}};function w$(t,n=0){let e=M_();if(e===void 0)throw new ue(-203,!1);if(e===null)return bD(t,void 0,n);{let i=D$(n),r=e.retrieve(t,i);if(Fu(r)){if(i.optional)return null;throw r}return r}}function pe(t,n=0){return(cO()||w$)(_n(t),n)}function u(t,n){return pe(t,md(n))}function md(t){return typeof t>"u"||typeof t=="number"?t:0|(t.optional&&8)|(t.host&&1)|(t.self&&2)|(t.skipSelf&&4)}function D$(t){return{optional:!!(t&8),host:!!(t&1),self:!!(t&2),skipSelf:!!(t&4)}}function rD(t){let n=[];for(let e=0;eArray.isArray(e)?bb(e,n):n(e))}function yD(t,n,e){n>=t.length?t.push(e):t.splice(n,0,e)}function Ep(t,n){return n>=t.length-1?t.pop():t.splice(n,1)[0]}function mO(t,n){let e=[];for(let i=0;in;){let o=r-2;t[r]=t[o],r--}t[n]=e,t[n+1]=i}}function Mp(t,n,e){let i=Qu(t,n);return i>=0?t[i|1]=e:(i=~i,hO(t,i,n,e)),i}function vb(t,n){let e=Qu(t,n);if(e>=0)return t[e|1]}function Qu(t,n){return M$(t,n,1)}function M$(t,n,e){let i=0,r=t.length>>e;for(;r!==i;){let o=i+(r-i>>1),a=t[o<n?r=o:i=o+1}return~(r<{e.push(a)};return bb(n,a=>{let s=a;hb(s,o,[],i)&&(r||=[],r.push(s))}),r!==void 0&&gO(r,o),e}function gO(t,n){for(let e=0;e{n(o,i)})}}function hb(t,n,e,i){if(t=_n(t),!t)return!1;let r=null,o=eD(t),a=!o&&Ka(t);if(!o&&!a){let l=t.ngModule;if(o=eD(l),o)r=l;else return!1}else{if(a&&!a.standalone)return!1;r=t}let s=i.has(r);if(a){if(s)return!1;if(i.add(r),a.dependencies){let l=typeof a.dependencies=="function"?a.dependencies():a.dependencies;for(let c of l)hb(c,n,e,i)}}else if(o){if(o.imports!=null&&!s){i.add(r);let c;try{bb(o.imports,d=>{hb(d,n,e,i)&&(c||=[],c.push(d))})}finally{}c!==void 0&&gO(c,n)}if(!s){let c=Vl(r)||(()=>new r);n({provide:r,useFactory:c,deps:ur},r),n({provide:CD,useValue:r,multi:!0},r),n({provide:Qa,useValue:()=>pe(r),multi:!0},r)}let l=o.providers;if(l!=null&&!s){let c=t;ED(l,d=>{n(d,c)})}}else return!1;return r!==t&&t.providers!==void 0}function ED(t,n){for(let e of t)mD(e)&&(e=e.\u0275providers),Array.isArray(e)?ED(e,n):n(e)}var k$=Qt({provide:String,useValue:Qt});function _O(t){return t!==null&&typeof t=="object"&&k$ in t}function S$(t){return!!(t&&t.useExisting)}function T$(t){return!!(t&&t.useFactory)}function hd(t){return typeof t=="function"}function bO(t){return!!t.useClass}var kp=new T(""),ub={},rO={},Jw;function Ku(){return Jw===void 0&&(Jw=new xp),Jw}var Wt=class{},pd=class extends Wt{parent;source;scopes;records=new Map;_ngOnDestroyHooks=new Set;_onDestroyHooks=[];get destroyed(){return this._destroyed}_destroyed=!1;injectorDefTypes;constructor(n,e,i,r){super(),this.parent=e,this.source=i,this.scopes=r,aD(n,a=>this.processProvider(a)),this.records.set(xD,Yu(void 0,this)),r.has("environment")&&this.records.set(Wt,Yu(void 0,this));let o=this.records.get(kp);o!=null&&typeof o.value=="string"&&this.scopes.add(o.value),this.injectorDefTypes=new Set(this.get(CD,ur,{self:!0}))}retrieve(n,e){let i=md(e)||0;try{return this.get(n,ud,i)}catch(r){if(Fu(r))return r;throw r}}destroy(){vp(this),this._destroyed=!0;let n=Xe(null);try{for(let i of this._ngOnDestroyHooks)i.ngOnDestroy();let e=this._onDestroyHooks;this._onDestroyHooks=[];for(let i of e)i()}finally{this.records.clear(),this._ngOnDestroyHooks.clear(),this.injectorDefTypes.clear(),Xe(n)}}onDestroy(n){return vp(this),this._onDestroyHooks.push(n),()=>this.removeOnDestroy(n)}runInContext(n){vp(this);let e=Ua(this),i=kr(void 0),r;try{return n()}finally{Ua(e),kr(i)}}get(n,e=ud,i){if(vp(this),n.hasOwnProperty(nO))return n[nO](this);let r=md(i),o,a=Ua(this),s=kr(void 0);try{if(!(r&4)){let c=this.records.get(n);if(c===void 0){let d=P$(n)&&Dp(n);d&&this.injectableDefInScope(d)?c=Yu(oD(n),ub):c=null,this.records.set(n,c)}if(c!=null)return this.hydrate(n,c,r)}let l=r&2?Ku():this.parent;return e=r&8&&e===ud?null:e,l.get(n,e)}catch(l){let c=x$(l);throw c===-200||c===-201?new ue(c,null):l}finally{kr(s),Ua(a)}}resolveInjectorInitializers(){let n=Xe(null),e=Ua(this),i=kr(void 0),r;try{let o=this.get(Qa,ur,{self:!0});for(let a of o)a()}finally{Ua(e),kr(i),Xe(n)}}toString(){let n=[],e=this.records;for(let i of e.keys())n.push($s(i));return`R3Injector[${n.join(", ")}]`}processProvider(n){n=_n(n);let e=hd(n)?n:_n(n&&n.provide),i=A$(n);if(!hd(n)&&n.multi===!0){let r=this.records.get(e);r||(r=Yu(void 0,ub,!0),r.factory=()=>rD(r.multi),this.records.set(e,r)),e=n,r.multi.push(n)}this.records.set(e,i)}hydrate(n,e,i){let r=Xe(null);try{if(e.value===rO)throw _D($s(n));return e.value===ub&&(e.value=rO,e.value=e.factory(void 0,i)),typeof e.value=="object"&&e.value&&R$(e.value)&&this._ngOnDestroyHooks.add(e.value),e.value}finally{Xe(r)}}injectableDefInScope(n){if(!n.providedIn)return!1;let e=_n(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 oD(t){let n=Dp(t),e=n!==null?n.factory:Vl(t);if(e!==null)return e;if(t instanceof T)throw new ue(204,!1);if(t instanceof Function)return I$(t);throw new ue(204,!1)}function I$(t){if(t.length>0)throw new ue(204,!1);let e=b$(t);return e!==null?()=>e.factory(t):()=>new t}function A$(t){if(_O(t))return Yu(void 0,t.useValue);{let n=MD(t);return Yu(n,ub)}}function MD(t,n,e){let i;if(hd(t)){let r=_n(t);return Vl(r)||oD(r)}else if(_O(t))i=()=>_n(t.useValue);else if(T$(t))i=()=>t.useFactory(...rD(t.deps||[]));else if(S$(t))i=(r,o)=>pe(_n(t.useExisting),o!==void 0&&o&8?8:void 0);else{let r=_n(t&&(t.useClass||t.provide));if(O$(t))i=()=>new r(...rD(t.deps));else return Vl(r)||oD(r)}return i}function vp(t){if(t.destroyed)throw new ue(205,!1)}function Yu(t,n,e=!1){return{factory:t,value:n,multi:e?[]:void 0}}function O$(t){return!!t.deps}function R$(t){return t!==null&&typeof t=="object"&&typeof t.ngOnDestroy=="function"}function P$(t){return typeof t=="function"||typeof t=="object"&&t.ngMetadataName==="InjectionToken"}function aD(t,n){for(let e of t)Array.isArray(e)?aD(e,n):e&&mD(e)?aD(e.\u0275providers,n):n(e)}function In(t,n){let e;t instanceof pd?(vp(t),e=t):e=new nD(t);let i,r=Ua(e),o=kr(void 0);try{return n()}finally{Ua(r),kr(o)}}function vO(){return cO()!==void 0||M_()!=null}var ga=0,We=1,et=2,bn=3,No=4,Sr=5,gd=6,Zu=7,qi=8,Ws=9,Za=10,ri=11,Xu=12,kD=13,_d=14,mr=15,jl=16,bd=17,Xa=18,Sp=19,SD=20,Us=21,Cb=22,Gs=23,ho=24,vd=25,yd=26,mi=27,yO=1,TD=6,Hl=7,Tp=8,xd=9,Yi=10;function Ja(t){return Array.isArray(t)&&typeof t[yO]=="object"}function _a(t){return Array.isArray(t)&&t[yO]===!0}function ID(t){return(t.flags&4)!==0}function qs(t){return t.componentOffset>-1}function Ju(t){return(t.flags&1)===1}function ba(t){return!!t.template}function em(t){return(t[et]&512)!==0}function Cd(t){return(t[et]&256)===256}var AD="svg",xO="math";function Lo(t){for(;Array.isArray(t);)t=t[ga];return t}function OD(t,n){return Lo(n[t])}function Vo(t,n){return Lo(n[t.index])}function Ip(t,n){return t.data[n]}function tm(t,n){return t[n]}function RD(t,n,e,i){e>=t.data.length&&(t.data[e]=null,t.blueprint[e]=null),n[e]=i}function Bo(t,n){let e=n[t];return Ja(e)?e:e[ga]}function CO(t){return(t[et]&4)===4}function wb(t){return(t[et]&128)===128}function wO(t){return _a(t[bn])}function po(t,n){return n==null?null:t[n]}function PD(t){t[bd]=0}function FD(t){t[et]&1024||(t[et]|=1024,wb(t)&&zl(t))}function DO(t,n){for(;t>0;)n=n[_d],t--;return n}function Ap(t){return!!(t[et]&9216||t[ho]?.dirty)}function Db(t){t[Za].changeDetectionScheduler?.notify(8),t[et]&64&&(t[et]|=1024),Ap(t)&&zl(t)}function zl(t){t[Za].changeDetectionScheduler?.notify(0);let n=Bl(t);for(;n!==null&&!(n[et]&8192||(n[et]|=8192,!wb(n)));)n=Bl(n)}function ND(t,n){if(Cd(t))throw new ue(911,!1);t[Us]===null&&(t[Us]=[]),t[Us].push(n)}function EO(t,n){if(t[Us]===null)return;let e=t[Us].indexOf(n);e!==-1&&t[Us].splice(e,1)}function Bl(t){let n=t[bn];return _a(n)?n[bn]:n}function LD(t){return t[Zu]??=[]}function VD(t){return t.cleanup??=[]}function MO(t,n,e,i){let r=LD(n);r.push(e),t.firstCreatePass&&VD(t).push(i,r.length-1)}var ht={lFrame:LO(null),bindingsEnabled:!0,skipHydrationRootTNode:null};var sD=!1;function kO(){return ht.lFrame.elementDepthCount}function SO(){ht.lFrame.elementDepthCount++}function BD(){ht.lFrame.elementDepthCount--}function Eb(){return ht.bindingsEnabled}function jD(){return ht.skipHydrationRootTNode!==null}function HD(t){return ht.skipHydrationRootTNode===t}function zD(){ht.skipHydrationRootTNode=null}function Ne(){return ht.lFrame.lView}function gi(){return ht.lFrame.tView}function I(t){return ht.lFrame.contextLView=t,t[qi]}function A(t){return ht.lFrame.contextLView=null,t}function tn(){let t=UD();for(;t!==null&&t.type===64;)t=t.parent;return t}function UD(){return ht.lFrame.currentTNode}function TO(){let t=ht.lFrame,n=t.currentTNode;return t.isParent?n:n.parent}function im(t,n){let e=ht.lFrame;e.currentTNode=t,e.isParent=n}function $D(){return ht.lFrame.isParent}function WD(){ht.lFrame.isParent=!1}function IO(){return ht.lFrame.contextLView}function GD(){return sD}function nm(t){let n=sD;return sD=t,n}function es(){let t=ht.lFrame,n=t.bindingRootIndex;return n===-1&&(n=t.bindingRootIndex=t.tView.bindingStartIndex),n}function qD(){return ht.lFrame.bindingIndex}function AO(t){return ht.lFrame.bindingIndex=t}function ts(){return ht.lFrame.bindingIndex++}function Op(t){let n=ht.lFrame,e=n.bindingIndex;return n.bindingIndex=n.bindingIndex+t,e}function OO(){return ht.lFrame.inI18n}function RO(t,n){let e=ht.lFrame;e.bindingIndex=e.bindingRootIndex=t,Mb(n)}function PO(){return ht.lFrame.currentDirectiveIndex}function Mb(t){ht.lFrame.currentDirectiveIndex=t}function FO(t){let n=ht.lFrame.currentDirectiveIndex;return n===-1?null:t[n]}function kb(){return ht.lFrame.currentQueryIndex}function Rp(t){ht.lFrame.currentQueryIndex=t}function F$(t){let n=t[We];return n.type===2?n.declTNode:n.type===1?t[Sr]:null}function YD(t,n,e){if(e&4){let r=n,o=t;for(;r=r.parent,r===null&&!(e&1);)if(r=F$(o),r===null||(o=o[_d],r.type&10))break;if(r===null)return!1;n=r,t=o}let i=ht.lFrame=NO();return i.currentTNode=n,i.lView=t,!0}function Sb(t){let n=NO(),e=t[We];ht.lFrame=n,n.currentTNode=e.firstChild,n.lView=t,n.tView=e,n.contextLView=t,n.bindingIndex=e.bindingStartIndex,n.inI18n=!1}function NO(){let t=ht.lFrame,n=t===null?null:t.child;return n===null?LO(t):n}function LO(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 VO(){let t=ht.lFrame;return ht.lFrame=t.parent,t.currentTNode=null,t.lView=null,t}var QD=VO;function Tb(){let t=VO();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 BO(t){return(ht.lFrame.contextLView=DO(t,ht.lFrame.contextLView))[qi]}function va(){return ht.lFrame.selectedIndex}function Ul(t){ht.lFrame.selectedIndex=t}function rm(){let t=ht.lFrame;return Ip(t.tView,t.selectedIndex)}function Gt(){ht.lFrame.currentNamespace=AD}function jo(){N$()}function N$(){ht.lFrame.currentNamespace=null}function jO(){return ht.lFrame.currentNamespace}var HO=!0;function Ib(){return HO}function Pp(t){HO=t}function lD(t,n=null,e=null,i){let r=KD(t,n,e,i);return r.resolveInjectorInitializers(),r}function KD(t,n=null,e=null,i,r=new Set){let o=[e||ur,xb(t)];return i=i||(typeof t=="object"?void 0:$s(t)),new pd(o,n||Ku(),i||null,r)}var de=class t{static THROW_IF_NOT_FOUND=ud;static NULL=new xp;static create(n,e){if(Array.isArray(n))return lD({name:""},e,n,"");{let i=n.name??"";return lD({name:i},n.parent,n.providers,i)}}static \u0275prov=O({token:t,providedIn:"any",factory:()=>pe(xD)});static __NG_ELEMENT_ID__=-1},ge=new T(""),nn=(()=>{class t{static __NG_ELEMENT_ID__=L$;static __NG_ENV_ID__=e=>e}return t})(),Cp=class extends nn{_lView;constructor(n){super(),this._lView=n}get destroyed(){return Cd(this._lView)}onDestroy(n){let e=this._lView;return ND(e,n),()=>EO(e,n)}};function L$(){return new Cp(Ne())}var Tn=class{_console=console;handleError(n){this._console.error("ERROR",n)}},hr=new T("",{providedIn:"root",factory:()=>{let t=u(Wt),n;return e=>{t.destroyed&&!n?setTimeout(()=>{throw e}):(n??=t.get(Tn),n.handleError(e))}}}),zO={provide:Qa,useValue:()=>void u(Tn),multi:!0},V$=new T("",{providedIn:"root",factory:()=>{let t=u(ge).defaultView;if(!t)return;let n=u(hr),e=o=>{n(o.reason),o.preventDefault()},i=o=>{o.error?n(o.error):n(new Error(o.message,{cause:o})),o.preventDefault()},r=()=>{t.addEventListener("unhandledrejection",e),t.addEventListener("error",i)};typeof Zone<"u"?Zone.root.run(r):r(),u(nn).onDestroy(()=>{t.removeEventListener("error",i),t.removeEventListener("unhandledrejection",e)})}});function ZD(){return zr([fO(()=>void u(V$))])}function is(t){return typeof t=="function"&&t[ln]!==void 0}function he(t,n){let[e,i,r]=Ow(t,n?.equal),o=e,a=o[ln];return o.set=i,o.update=r,o.asReadonly=Ab.bind(o),o}function Ab(){let t=this[ln];if(t.readonlyFn===void 0){let n=()=>this();n[ln]=t,t.readonlyFn=n}return t.readonlyFn}function XD(t){return is(t)&&typeof t.set=="function"}var wd=(()=>{class t{view;node;constructor(e,i){this.view=e,this.node=i}static __NG_ELEMENT_ID__=B$}return t})();function B$(){return new wd(Ne(),tn())}var Oo=class{},Fp=new T("",{providedIn:"root",factory:()=>!1});var JD=new T(""),eE=new T(""),ns=(()=>{class t{taskId=0;pendingTasks=new Set;destroyed=!1;pendingTask=new tt(!1);get hasPendingTasks(){return this.destroyed?!1:this.pendingTask.value}get hasPendingTasksObservable(){return this.destroyed?new Fe(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),e}has(e){return this.pendingTasks.has(e)}remove(e){this.pendingTasks.delete(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=O({token:t,providedIn:"root",factory:()=>new t})}return t})(),om=(()=>{class t{internalPendingTasks=u(ns);scheduler=u(Oo);errorHandler=u(hr);add(){let e=this.internalPendingTasks.add();return()=>{this.internalPendingTasks.has(e)&&(this.scheduler.notify(11),this.internalPendingTasks.remove(e))}}run(e){let i=this.add();e().catch(this.errorHandler).finally(i)}static \u0275prov=O({token:t,providedIn:"root",factory:()=>new t})}return t})();function Dd(...t){}var Np=(()=>{class t{static \u0275prov=O({token:t,providedIn:"root",factory:()=>new cD})}return t})(),cD=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,i=this.queues.get(e);i.has(n)&&(i.delete(n),n.dirty&&this.dirtyEffectCount--)}enqueue(n){let e=n.zone;this.queues.has(e)||this.queues.set(e,new Set);let i=this.queues.get(e);i.has(n)||i.add(n)}flush(){for(;this.dirtyEffectCount>0;){let n=!1;for(let[e,i]of this.queues)e===null?n||=this.flushQueue(i):n||=e.run(()=>this.flushQueue(i));n||(this.dirtyEffectCount=0)}}flushQueue(n){let e=!1;for(let i of n)i.dirty&&(this.dirtyEffectCount--,e=!0,i.run());return e}};function pm(t){return{toString:t}.toString()}var Ob="__parameters__";function W$(t){return function(...e){if(t){let i=t(...e);for(let r in i)this[r]=i[r]}}}function SR(t,n,e){return pm(()=>{let i=W$(n);function r(...o){if(this instanceof r)return i.apply(this,o),this;let a=new r(...o);return s.annotation=a,s;function s(l,c,d){let m=l.hasOwnProperty(Ob)?l[Ob]:Object.defineProperty(l,Ob,{value:[]})[Ob];for(;m.length<=d;)m.push(null);return(m[d]=m[d]||[]).push(a),l}}return r.prototype.ngMetadataName=t,r.annotationCls=r,r})}var ss=vD(SR("Optional"),8);var Gl=vD(SR("SkipSelf"),4);var Td=Function;function G$(t){return typeof t=="function"}var Ub=class{previousValue;currentValue;firstChange;constructor(n,e,i){this.previousValue=n,this.currentValue=e,this.firstChange=i}isFirstChange(){return this.firstChange}};function TR(t,n,e,i){n!==null?n.applyValueToInputSignal(n,i):t[e]=i}var Ae=(()=>{let t=()=>IR;return t.ngInherit=!0,t})();function IR(t){return t.type.prototype.ngOnChanges&&(t.setInput=Y$),q$}function q$(){let t=OR(this),n=t?.current;if(n){let e=t.previous;if(e===fa)t.previous=n;else for(let i in n)e[i]=n[i];t.current=null,this.ngOnChanges(n)}}function Y$(t,n,e,i,r){let o=this.declaredInputs[i],a=OR(t)||Q$(t,{previous:fa,current:null}),s=a.current||(a.current={}),l=a.previous,c=l[o];s[o]=new Ub(c&&c.currentValue,e,l===fa),TR(t,n,r,e)}var AR="__ngSimpleChanges__";function OR(t){return t[AR]||null}function Q$(t,n){return t[AR]=n}var UO=[];var oi=function(t,n=null,e){for(let i=0;i=i)break}else n[l]<0&&(t[bd]+=65536),(s>14>16&&(t[et]&3)===n&&(t[et]+=16384,$O(s,o)):$O(s,o)}var sm=-1,Md=class{factory;name;injectImpl;resolving=!1;canSeeViewProviders;multi;componentProviders;index;providerFactory;constructor(n,e,i,r){this.factory=n,this.name=r,this.canSeeViewProviders=e,this.injectImpl=i}};function X$(t){return(t.flags&8)!==0}function J$(t){return(t.flags&16)!==0}function eW(t,n,e){let i=0;for(;in){a=o-1;break}}}for(;o>16}function Wb(t,n){let e=iW(t),i=n;for(;e>0;)i=i[_d],e--;return i}var mE=!0;function Gb(t){let n=mE;return mE=t,n}var nW=256,LR=nW-1,VR=5,rW=0,rs={};function oW(t,n,e){let i;typeof e=="string"?i=e.charCodeAt(0)||0:e.hasOwnProperty(fd)&&(i=e[fd]),i==null&&(i=e[fd]=rW++);let r=i&LR,o=1<>VR)]|=o}function qb(t,n){let e=BR(t,n);if(e!==-1)return e;let i=n[We];i.firstCreatePass&&(t.injectorIndex=n.length,iE(i.data,t),iE(n,null),iE(i.blueprint,null));let r=ZE(t,n),o=t.injectorIndex;if(NR(r)){let a=$b(r),s=Wb(r,n),l=s[We].data;for(let c=0;c<8;c++)n[o+c]=s[a+c]|l[a+c]}return n[o+8]=r,o}function iE(t,n){t.push(0,0,0,0,0,0,0,0,n)}function BR(t,n){return t.injectorIndex===-1||t.parent&&t.parent.injectorIndex===t.injectorIndex||n[t.injectorIndex+8]===null?-1:t.injectorIndex}function ZE(t,n){if(t.parent&&t.parent.injectorIndex!==-1)return t.parent.injectorIndex;let e=0,i=null,r=n;for(;r!==null;){if(i=$R(r),i===null)return sm;if(e++,r=r[_d],i.injectorIndex!==-1)return i.injectorIndex|e<<16}return sm}function hE(t,n,e){oW(t,n,e)}function aW(t,n){if(n==="class")return t.classes;if(n==="style")return t.styles;let e=t.attrs;if(e){let i=e.length,r=0;for(;r>20,m=i?s:s+d,f=r?s+d:c;for(let b=m;b=l&&v.type===e)return b}if(r){let b=a[l];if(b&&ba(b)&&b.type===e)return l}return null}function Bp(t,n,e,i,r){let o=t[e],a=n.data;if(o instanceof Md){let s=o;if(s.resolving){let b=aO(a[e]);throw _D(b)}let l=Gb(s.canSeeViewProviders);s.resolving=!0;let c=a[e].type||a[e],d,m=s.injectImpl?kr(s.injectImpl):null,f=YD(t,i,0);try{o=t[e]=s.factory(void 0,r,a,t,i),n.firstCreatePass&&e>=i.directiveStart&&K$(e,a[e],n)}finally{m!==null&&kr(m),Gb(l),s.resolving=!1,QD()}}return o}function lW(t){if(typeof t=="string")return t.charCodeAt(0)||0;let n=t.hasOwnProperty(fd)?t[fd]:void 0;return typeof n=="number"?n>=0?n&LR:cW:n}function GO(t,n,e){let i=1<>VR)]&i)}function qO(t,n){return!(t&2)&&!(t&1&&n)}var Ed=class{_tNode;_lView;constructor(n,e){this._tNode=n,this._lView=e}get(n,e,i){return zR(this._tNode,this._lView,n,md(i),e)}};function cW(){return new Ed(tn(),Ne())}function fe(t){return pm(()=>{let n=t.prototype.constructor,e=n[yp]||pE(n),i=Object.prototype,r=Object.getPrototypeOf(t.prototype).constructor;for(;r&&r!==i;){let o=r[yp]||pE(r);if(o&&o!==e)return o;r=Object.getPrototypeOf(r)}return o=>new o})}function pE(t){return dD(t)?()=>{let n=pE(_n(t));return n&&n()}:Vl(t)}function dW(t,n,e,i,r){let o=t,a=n;for(;o!==null&&a!==null&&a[et]&2048&&!em(a);){let s=UR(o,a,e,i|2,rs);if(s!==rs)return s;let l=o.parent;if(!l){let c=a[SD];if(c){let d=c.get(e,rs,i);if(d!==rs)return d}l=$R(a),a=a[_d]}o=l}return r}function $R(t){let n=t[We],e=n.type;return e===2?n.declTNode:e===1?t[Sr]:null}function qp(t){return aW(tn(),t)}function uW(){return fm(tn(),Ne())}function fm(t,n){return new q(Vo(t,n))}var q=(()=>{class t{nativeElement;constructor(e){this.nativeElement=e}static __NG_ELEMENT_ID__=uW}return t})();function WR(t){return t instanceof q?t.nativeElement:t}function mW(){return this._results[Symbol.iterator]()}var pr=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 z}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 i=uO(n);(this._changesDetected=!dO(this._results,i,e))&&(this._results=i,this.length=i.length,this.last=i[this.length-1],this.first=i[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]=mW};function GR(t){return(t.flags&128)===128}var XE=(function(t){return t[t.OnPush=0]="OnPush",t[t.Default=1]="Default",t})(XE||{}),qR=new Map,hW=0;function pW(){return hW++}function fW(t){qR.set(t[Sp],t)}function fE(t){qR.delete(t[Sp])}var YO="__ngContext__";function cm(t,n){Ja(n)?(t[YO]=n[Sp],fW(n)):t[YO]=n}function YR(t){return KR(t[Xu])}function QR(t){return KR(t[No])}function KR(t){for(;t!==null&&!_a(t);)t=t[No];return t}var gE;function JE(t){gE=t}function eM(){if(gE!==void 0)return gE;if(typeof document<"u")return document;throw new ue(210,!1)}var ql=new T("",{providedIn:"root",factory:()=>gW}),gW="ng",sv=new T(""),Ks=new T("",{providedIn:"platform",factory:()=>"unknown"});var Yp=new T(""),gm=new T("",{providedIn:"root",factory:()=>eM().body?.querySelector("[ngCspNonce]")?.getAttribute("ngCspNonce")||null});var _W="h",bW="b";var ZR="r";var XR="di";var JR=!1,eP=new T("",{providedIn:"root",factory:()=>JR});var lv=new T("");var vW=(t,n,e,i)=>{};function yW(t,n,e,i){vW(t,n,e,i)}function cv(t){return(t.flags&32)===32}var xW=()=>null;function tP(t,n,e=!1){return xW(t,n,e)}function iP(t,n){let e=t.contentQueries;if(e!==null){let i=Xe(null);try{for(let r=0;rt,createScript:t=>t,createScriptURL:t=>t})}catch{}return Rb}function dv(t){return CW()?.createHTML(t)||t}var Pb;function nP(){if(Pb===void 0&&(Pb=null,Po.trustedTypes))try{Pb=Po.trustedTypes.createPolicy("angular#unsafe-bypass",{createHTML:t=>t,createScript:t=>t,createScriptURL:t=>t})}catch{}return Pb}function QO(t){return nP()?.createHTML(t)||t}function KO(t){return nP()?.createScriptURL(t)||t}var Qs=class{changingThisBreaksApplicationSecurity;constructor(n){this.changingThisBreaksApplicationSecurity=n}toString(){return`SafeValue must use [property]=binding: ${this.changingThisBreaksApplicationSecurity} (see ${pb})`}},bE=class extends Qs{getTypeName(){return"HTML"}},vE=class extends Qs{getTypeName(){return"Style"}},yE=class extends Qs{getTypeName(){return"Script"}},xE=class extends Qs{getTypeName(){return"URL"}},CE=class extends Qs{getTypeName(){return"ResourceURL"}};function Ur(t){return t instanceof Qs?t.changingThisBreaksApplicationSecurity:t}function ls(t,n){let e=rP(t);if(e!=null&&e!==n){if(e==="ResourceURL"&&n==="URL")return!0;throw new Error(`Required a safe ${n}, got a ${e} (see ${pb})`)}return e===n}function rP(t){return t instanceof Qs&&t.getTypeName()||null}function iM(t){return new bE(t)}function nM(t){return new vE(t)}function rM(t){return new yE(t)}function oM(t){return new xE(t)}function aM(t){return new CE(t)}function wW(t){let n=new DE(t);return DW()?new wE(n):n}var wE=class{inertDocumentHelper;constructor(n){this.inertDocumentHelper=n}getInertBodyElement(n){n=""+n;try{let e=new window.DOMParser().parseFromString(dv(n),"text/html").body;return e===null?this.inertDocumentHelper.getInertBodyElement(n):(e.firstChild?.remove(),e)}catch{return null}}},DE=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=dv(n),e}};function DW(){try{return!!new window.DOMParser().parseFromString(dv(""),"text/html")}catch{return!1}}var EW=/^(?!javascript:)(?:[a-z0-9+.-]+:|[^&:\/?#]*(?:[\/?#]|$))/i;function Qp(t){return t=String(t),t.match(EW)?t:"unsafe:"+t}function Zs(t){let n={};for(let e of t.split(","))n[e]=!0;return n}function Kp(...t){let n={};for(let e of t)for(let i in e)e.hasOwnProperty(i)&&(n[i]=!0);return n}var oP=Zs("area,br,col,hr,img,wbr"),aP=Zs("colgroup,dd,dt,li,p,tbody,td,tfoot,th,thead,tr"),sP=Zs("rp,rt"),MW=Kp(sP,aP),kW=Kp(aP,Zs("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")),SW=Kp(sP,Zs("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")),ZO=Kp(oP,kW,SW,MW),lP=Zs("background,cite,href,itemtype,longdesc,poster,src,xlink:href"),TW=Zs("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"),IW=Zs("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"),AW=Kp(lP,TW,IW),OW=Zs("script,style,template"),EE=class{sanitizedSomething=!1;buf=[];sanitizeChildren(n){let e=n.firstChild,i=!0,r=[];for(;e;){if(e.nodeType===Node.ELEMENT_NODE?i=this.startElement(e):e.nodeType===Node.TEXT_NODE?this.chars(e.nodeValue):this.sanitizedSomething=!0,i&&e.firstChild){r.push(e),e=FW(e);continue}for(;e;){e.nodeType===Node.ELEMENT_NODE&&this.endElement(e);let o=PW(e);if(o){e=o;break}e=r.pop()}}return this.buf.join("")}startElement(n){let e=XO(n).toLowerCase();if(!ZO.hasOwnProperty(e))return this.sanitizedSomething=!0,!OW.hasOwnProperty(e);this.buf.push("<"),this.buf.push(e);let i=n.attributes;for(let r=0;r"),!0}endElement(n){let e=XO(n).toLowerCase();ZO.hasOwnProperty(e)&&!oP.hasOwnProperty(e)&&(this.buf.push(""))}chars(n){this.buf.push(JO(n))}};function RW(t,n){return(t.compareDocumentPosition(n)&Node.DOCUMENT_POSITION_CONTAINED_BY)!==Node.DOCUMENT_POSITION_CONTAINED_BY}function PW(t){let n=t.nextSibling;if(n&&t!==n.previousSibling)throw cP(n);return n}function FW(t){let n=t.firstChild;if(n&&RW(t,n))throw cP(n);return n}function XO(t){let n=t.nodeName;return typeof n=="string"?n:"FORM"}function cP(t){return new Error(`Failed to sanitize html because the element is clobbered: ${t.outerHTML}`)}var NW=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,LW=/([^\#-~ |!])/g;function JO(t){return t.replace(/&/g,"&").replace(NW,function(n){let e=n.charCodeAt(0),i=n.charCodeAt(1);return"&#"+((e-55296)*1024+(i-56320)+65536)+";"}).replace(LW,function(n){return"&#"+n.charCodeAt(0)+";"}).replace(//g,">")}var Fb;function uv(t,n){let e=null;try{Fb=Fb||wW(t);let i=n?String(n):"";e=Fb.getInertBodyElement(i);let r=5,o=i;do{if(r===0)throw new Error("Failed to sanitize html because the input is unstable");r--,i=o,o=e.innerHTML,e=Fb.getInertBodyElement(i)}while(i!==o);let s=new EE().sanitizeChildren(eR(e)||e);return dv(s)}finally{if(e){let i=eR(e)||e;for(;i.firstChild;)i.firstChild.remove()}}}function eR(t){return"content"in t&&VW(t)?t.content:null}function VW(t){return t.nodeType===Node.ELEMENT_NODE&&t.nodeName==="TEMPLATE"}var BW=/^>|^->||--!>|)/g,HW="\u200B$1\u200B";function zW(t){return t.replace(BW,n=>n.replace(jW,HW))}function UW(t,n){return t.createText(n)}function $W(t,n,e){t.setValue(n,e)}function WW(t,n){return t.createComment(zW(n))}function dP(t,n,e){return t.createElement(n,e)}function Yb(t,n,e,i,r){t.insertBefore(n,e,i,r)}function uP(t,n,e){t.appendChild(n,e)}function tR(t,n,e,i,r){i!==null?Yb(t,n,e,i,r):uP(t,n,e)}function mP(t,n,e,i){t.removeChild(null,n,e,i)}function GW(t,n,e){t.setAttribute(n,"style",e)}function qW(t,n,e){e===""?t.removeAttribute(n,"class"):t.setAttribute(n,"class",e)}function hP(t,n,e){let{mergedAttrs:i,classes:r,styles:o}=e;i!==null&&eW(t,n,i),r!==null&&qW(t,n,r),o!==null&&GW(t,n,o)}var An=(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})(An||{});function Zp(t){let n=lM();return n?QO(n.sanitize(An.HTML,t)||""):ls(t,"HTML")?QO(Ur(t)):uv(eM(),Fo(t))}function $r(t){let n=lM();return n?n.sanitize(An.URL,t)||"":ls(t,"URL")?Ur(t):Qp(Fo(t))}function pP(t){let n=lM();if(n)return KO(n.sanitize(An.RESOURCE_URL,t)||"");if(ls(t,"ResourceURL"))return KO(Ur(t));throw new ue(904,!1)}var YW=new Set(["embed","frame","iframe","media","script"]),QW=new Set(["base","link","script"]);function KW(t,n){return n==="src"&&YW.has(t)||n==="href"&&QW.has(t)||n==="xlink:href"&&t==="script"?pP:$r}function sM(t,n,e){return KW(n,e)(t)}function lM(){let t=Ne();return t&&t[Za].sanitizer}function fP(t){return t instanceof Function?t():t}function ZW(t,n,e){let i=t.length;for(;;){let r=t.indexOf(n,e);if(r===-1)return r;if(r===0||t.charCodeAt(r-1)<=32){let o=n.length;if(r+o===i||t.charCodeAt(r+o)<=32)return r}e=r+1}}var gP="ng-template";function XW(t,n,e,i){let r=0;if(i){for(;r-1){let o;for(;++ro?m="":m=r[d+1].toLowerCase(),i&2&&c!==m){if(ya(i))return!1;a=!0}}}}return ya(i)||a}function ya(t){return(t&1)===0}function t7(t,n,e,i){if(n===null)return-1;let r=0;if(i||!e){let o=!1;for(;r-1)for(e++;e0?'="'+s+'"':"")+"]"}else i&8?r+="."+a:i&4&&(r+=" "+a);else r!==""&&!ya(a)&&(n+=iR(o,r),r=""),i=a,o=o||!ya(i);e++}return r!==""&&(n+=iR(o,r)),n}function s7(t){return t.map(a7).join(",")}function l7(t){let n=[],e=[],i=1,r=2;for(;inull),a=i;if(n&&typeof n=="object"){let l=n;r=l.next?.bind(l),o=l.error?.bind(l),a=l.complete?.bind(l)}this.__isAsync&&(o=this.wrapInTimeout(o),r&&(r=this.wrapInTimeout(r)),a&&(a=this.wrapInTimeout(a)));let s=super.subscribe({next:r,error:o,complete:a});return n instanceof ke&&n.add(s),s}wrapInTimeout(n){return e=>{let i=this.pendingTasks?.add();setTimeout(()=>{try{n(e)}finally{i!==void 0&&this.pendingTasks?.remove(i)}})}}},U=kE;function CP(t){let n,e;function i(){t=Dd;try{e!==void 0&&typeof cancelAnimationFrame=="function"&&cancelAnimationFrame(e),n!==void 0&&clearTimeout(n)}catch{}}return n=setTimeout(()=>{t(),i()}),typeof requestAnimationFrame=="function"&&(e=requestAnimationFrame(()=>{t(),i()})),()=>i()}function rR(t){return queueMicrotask(()=>t()),()=>{t=Dd}}var pM="isAngularZone",Qb=pM+"_ID",h7=0,ae=class t{hasPendingMacrotasks=!1;hasPendingMicrotasks=!1;isStable=!0;onUnstable=new U(!1);onMicrotaskEmpty=new U(!1);onStable=new U(!1);onError=new U(!1);constructor(n){let{enableLongStackTrace:e=!1,shouldCoalesceEventChangeDetection:i=!1,shouldCoalesceRunChangeDetection:r=!1,scheduleInRootZone:o=xP}=n;if(typeof Zone>"u")throw new ue(908,!1);Zone.assertZonePatched();let a=this;a._nesting=0,a._outer=a._inner=Zone.current,Zone.TaskTrackingZoneSpec&&(a._inner=a._inner.fork(new Zone.TaskTrackingZoneSpec)),e&&Zone.longStackTraceZoneSpec&&(a._inner=a._inner.fork(Zone.longStackTraceZoneSpec)),a.shouldCoalesceEventChangeDetection=!r&&i,a.shouldCoalesceRunChangeDetection=r,a.callbackScheduled=!1,a.scheduleInRootZone=o,g7(a)}static isInAngularZone(){return typeof Zone<"u"&&Zone.current.get(pM)===!0}static assertInAngularZone(){if(!t.isInAngularZone())throw new ue(909,!1)}static assertNotInAngularZone(){if(t.isInAngularZone())throw new ue(909,!1)}run(n,e,i){return this._inner.run(n,e,i)}runTask(n,e,i,r){let o=this._inner,a=o.scheduleEventTask("NgZoneEvent: "+r,n,p7,Dd,Dd);try{return o.runTask(a,e,i)}finally{o.cancelTask(a)}}runGuarded(n,e,i){return this._inner.runGuarded(n,e,i)}runOutsideAngular(n){return this._outer.run(n)}},p7={};function fM(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 f7(t){if(t.isCheckStableRunning||t.callbackScheduled)return;t.callbackScheduled=!0;function n(){CP(()=>{t.callbackScheduled=!1,SE(t),t.isCheckStableRunning=!0,fM(t),t.isCheckStableRunning=!1})}t.scheduleInRootZone?Zone.root.run(()=>{n()}):t._outer.run(()=>{n()}),SE(t)}function g7(t){let n=()=>{f7(t)},e=h7++;t._inner=t._inner.fork({name:"angular",properties:{[pM]:!0,[Qb]:e,[Qb+e]:!0},onInvokeTask:(i,r,o,a,s,l)=>{if(_7(l))return i.invokeTask(o,a,s,l);try{return oR(t),i.invokeTask(o,a,s,l)}finally{(t.shouldCoalesceEventChangeDetection&&a.type==="eventTask"||t.shouldCoalesceRunChangeDetection)&&n(),aR(t)}},onInvoke:(i,r,o,a,s,l,c)=>{try{return oR(t),i.invoke(o,a,s,l,c)}finally{t.shouldCoalesceRunChangeDetection&&!t.callbackScheduled&&!b7(l)&&n(),aR(t)}},onHasTask:(i,r,o,a)=>{i.hasTask(o,a),r===o&&(a.change=="microTask"?(t._hasPendingMicrotasks=a.microTask,SE(t),fM(t)):a.change=="macroTask"&&(t.hasPendingMacrotasks=a.macroTask))},onHandleError:(i,r,o,a)=>(i.handleError(o,a),t.runOutsideAngular(()=>t.onError.emit(a)),!1)})}function SE(t){t._hasPendingMicrotasks||(t.shouldCoalesceEventChangeDetection||t.shouldCoalesceRunChangeDetection)&&t.callbackScheduled===!0?t.hasPendingMicrotasks=!0:t.hasPendingMicrotasks=!1}function oR(t){t._nesting++,t.isStable&&(t.isStable=!1,t.onUnstable.emit(null))}function aR(t){t._nesting--,fM(t)}var jp=class{hasPendingMicrotasks=!1;hasPendingMacrotasks=!1;isStable=!0;onUnstable=new U;onMicrotaskEmpty=new U;onStable=new U;onError=new U;run(n,e,i){return n.apply(e,i)}runGuarded(n,e,i){return n.apply(e,i)}runOutsideAngular(n){return n()}runTask(n,e,i,r){return n.apply(e,i)}};function _7(t){return wP(t,"__ignore_ng_zone__")}function b7(t){return wP(t,"__scheduler_tick__")}function wP(t,n){return!Array.isArray(t)||t.length!==1?!1:t[0]?.data?.[n]===!0}var pv=(()=>{class t{impl=null;execute(){this.impl?.execute()}static \u0275prov=O({token:t,providedIn:"root",factory:()=>new t})}return t})(),gM=[0,1,2,3],_M=(()=>{class t{ngZone=u(ae);scheduler=u(Oo);errorHandler=u(Tn,{optional:!0});sequences=new Set;deferredRegistrations=new Set;executing=!1;constructor(){u(Yl,{optional:!0})}execute(){let e=this.sequences.size>0;e&&oi(16),this.executing=!0;for(let i of gM)for(let r of this.sequences)if(!(r.erroredOrDestroyed||!r.hooks[i]))try{r.pipelinedValue=this.ngZone.runOutsideAngular(()=>this.maybeTrace(()=>{let o=r.hooks[i];return o(r.pipelinedValue)},r.snapshot))}catch(o){r.erroredOrDestroyed=!0,this.errorHandler?.handleError(o)}this.executing=!1;for(let i of this.sequences)i.afterRun(),i.once&&(this.sequences.delete(i),i.destroy());for(let i of this.deferredRegistrations)this.sequences.add(i);this.deferredRegistrations.size>0&&this.scheduler.notify(7),this.deferredRegistrations.clear(),e&&oi(17)}register(e){let{view:i}=e;i!==void 0?((i[vd]??=[]).push(e),zl(i),i[et]|=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,i){return i?i.run(hv.AFTER_NEXT_RENDER,e):e()}static \u0275prov=O({token:t,providedIn:"root",factory:()=>new t})}return t})(),Hp=class{impl;hooks;view;once;snapshot;erroredOrDestroyed=!1;pipelinedValue=void 0;unregisterOnDestroy;constructor(n,e,i,r,o,a=null){this.impl=n,this.hooks=e,this.view=i,this.once=r,this.snapshot=a,this.unregisterOnDestroy=o?.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?.[vd];n&&(this.view[vd]=n.filter(e=>e!==this))}};function pt(t,n){let e=n?.injector??u(de);return cs("NgAfterNextRender"),y7(t,e,n,!0)}function v7(t){return t instanceof Function?[void 0,void 0,t,void 0]:[t.earlyRead,t.write,t.mixedReadWrite,t.read]}function y7(t,n,e,i){let r=n.get(pv);r.impl??=n.get(_M);let o=n.get(Yl,null,{optional:!0}),a=e?.manualCleanup!==!0?n.get(nn):null,s=n.get(wd,null,{optional:!0}),l=new Hp(r.impl,v7(t),s?.view,i,a,o?.snapshot(null));return r.impl.register(l),l}var DP=new T("",{providedIn:"root",factory:()=>({queue:new Set,isScheduled:!1,scheduler:null})});function EP(t,n,e){let i=t.get(DP);if(Array.isArray(n))for(let r of n)i.queue.add(r),e?.detachedLeaveAnimationFns?.push(r);else i.queue.add(n),e?.detachedLeaveAnimationFns?.push(n);i.scheduler&&i.scheduler(t)}function x7(t,n){let e=t.get(DP);if(n.detachedLeaveAnimationFns){for(let i of n.detachedLeaveAnimationFns)e.queue.delete(i);n.detachedLeaveAnimationFns=void 0}}function C7(t,n){for(let[e,i]of n)EP(t,i.animateFns)}function sR(t,n,e,i){let r=t?.[yd]?.enter;n!==null&&r&&r.has(e.index)&&C7(i,r)}function am(t,n,e,i,r,o,a,s){if(r!=null){let l,c=!1;_a(r)?l=r:Ja(r)&&(c=!0,r=r[ga]);let d=Lo(r);t===0&&i!==null?(sR(s,i,o,e),a==null?uP(n,i,d):Yb(n,i,d,a||null,!0)):t===1&&i!==null?(sR(s,i,o,e),Yb(n,i,d,a||null,!0)):t===2?lR(s,o,e,m=>{mP(n,d,c,m)}):t===3&&lR(s,o,e,()=>{n.destroyNode(d)}),l!=null&&R7(n,t,e,l,o,i,a)}}function w7(t,n){MP(t,n),n[ga]=null,n[Sr]=null}function D7(t,n,e,i,r,o){i[ga]=r,i[Sr]=n,gv(t,i,e,1,r,o)}function MP(t,n){n[Za].changeDetectionScheduler?.notify(9),gv(t,n,n[ri],2,null,null)}function E7(t){let n=t[Xu];if(!n)return nE(t[We],t);for(;n;){let e=null;if(Ja(n))e=n[Xu];else{let i=n[Yi];i&&(e=i)}if(!e){for(;n&&!n[No]&&n!==t;)Ja(n)&&nE(n[We],n),n=n[bn];n===null&&(n=t),Ja(n)&&nE(n[We],n),e=n&&n[No]}n=e}}function bM(t,n){let e=t[xd],i=e.indexOf(n);e.splice(i,1)}function fv(t,n){if(Cd(n))return;let e=n[ri];e.destroyNode&&gv(t,n,e,3,null,null),E7(n)}function nE(t,n){if(Cd(n))return;let e=Xe(null);try{n[et]&=-129,n[et]|=256,n[ho]&&Tl(n[ho]),S7(t,n),k7(t,n),n[We].type===1&&n[ri].destroy();let i=n[jl];if(i!==null&&_a(n[bn])){i!==n[bn]&&bM(i,n);let r=n[Xa];r!==null&&r.detachView(t)}fE(n)}finally{Xe(e)}}function lR(t,n,e,i){let r=t?.[yd];if(r==null||r.leave==null||!r.leave.has(n.index))return i(!1);t&&kd.add(t),EP(e,()=>{if(r.leave&&r.leave.has(n.index)){let a=r.leave.get(n.index),s=[];if(a){for(let l=0;l{t[yd].running=void 0,kd.delete(t),n(!0)});return}n(!1)}function k7(t,n){let e=t.cleanup,i=n[Zu];if(e!==null)for(let a=0;a=0?i[s]():i[-s].unsubscribe(),a+=2}else{let s=i[e[a+1]];e[a].call(s)}i!==null&&(n[Zu]=null);let r=n[Us];if(r!==null){n[Us]=null;for(let a=0;ami&&yP(t,n,mi,!1),oi(a?2:0,r,e),e(i,r)}finally{Ul(o),oi(a?3:1,r,e)}}function _v(t,n,e){B7(t,n,e),(e.flags&64)===64&&j7(t,n,e)}function _m(t,n,e=Vo){let i=n.localNames;if(i!==null){let r=n.index+1;for(let o=0;onull;function V7(t){return t==="class"?"className":t==="for"?"htmlFor":t==="formaction"?"formAction":t==="innerHtml"?"innerHTML":t==="readonly"?"readOnly":t==="tabindex"?"tabIndex":t}function OP(t,n,e,i,r,o){let a=n[We];if(yv(t,a,n,e,i)){qs(t)&&PP(n,t.index);return}t.type&3&&(e=V7(e)),RP(t,n,e,i,r,o)}function RP(t,n,e,i,r,o){if(t.type&3){let a=Vo(t,n);i=o!=null?o(i,t.value||"",e):i,r.setProperty(a,e,i)}else t.type&12}function PP(t,n){let e=Bo(n,t);e[et]&16||(e[et]|=64)}function B7(t,n,e){let i=e.directiveStart,r=e.directiveEnd;qs(e)&&u7(n,e,t.data[i+e.componentOffset]),t.firstCreatePass||qb(e,n);let o=e.initialInputs;for(let a=i;a{zl(t.lView)},consumerOnSignalRead(){this.lView[ho]=this}});function X7(t){let n=t[ho]??Object.create(J7);return n.lView=t,n}var J7=De(M({},td),{consumerIsAlwaysLive:!0,kind:"template",consumerMarkedDirty:t=>{let n=Bl(t.lView);for(;n&&!BP(n[We]);)n=Bl(n);n&&FD(n)},consumerOnSignalRead(){this.lView[ho]=this}});function BP(t){return t.type!==2}function jP(t){if(t[Gs]===null)return;let n=!0;for(;n;){let e=!1;for(let i of t[Gs])i.dirty&&(e=!0,i.zone===null||Zone.current===i.zone?i.run():i.zone.run(()=>i.run()));n=e&&!!(t[et]&8192)}}var eG=100;function HP(t,n=0){let i=t[Za].rendererFactory,r=!1;r||i.begin?.();try{tG(t,n)}finally{r||i.end?.()}}function tG(t,n){let e=GD();try{nm(!0),IE(t,n);let i=0;for(;Ap(t);){if(i===eG)throw new ue(103,!1);i++,IE(t,1)}}finally{nm(e)}}function iG(t,n,e,i){if(Cd(n))return;let r=n[et],o=!1,a=!1;Sb(n);let s=!0,l=null,c=null;o||(BP(t)?(c=Y7(n),l=Sl(c)):A_()===null?(s=!1,c=X7(n),l=Sl(c)):n[ho]&&(Tl(n[ho]),n[ho]=null));try{PD(n),AO(t.bindingStartIndex),e!==null&&AP(t,n,e,2,i);let d=(r&3)===3;if(!o)if(d){let b=t.preOrderCheckHooks;b!==null&&Vb(n,b,null)}else{let b=t.preOrderHooks;b!==null&&Bb(n,b,0,null),tE(n,0)}if(a||nG(n),jP(n),zP(n,0),t.contentQueries!==null&&iP(t,n),!o)if(d){let b=t.contentCheckHooks;b!==null&&Vb(n,b)}else{let b=t.contentHooks;b!==null&&Bb(n,b,1),tE(n,1)}oG(t,n);let m=t.components;m!==null&&$P(n,m,0);let f=t.viewQuery;if(f!==null&&_E(2,f,i),!o)if(d){let b=t.viewCheckHooks;b!==null&&Vb(n,b)}else{let b=t.viewHooks;b!==null&&Bb(n,b,2),tE(n,2)}if(t.firstUpdatePass===!0&&(t.firstUpdatePass=!1),n[Cb]){for(let b of n[Cb])b();n[Cb]=null}o||(LP(n),n[et]&=-73)}catch(d){throw o||zl(n),d}finally{c!==null&&(id(c,l),s&&K7(c)),Tb()}}function zP(t,n){for(let e=YR(t);e!==null;e=QR(e))for(let i=Yi;i0&&(t[e-1][No]=i[No]);let o=Ep(t,Yi+n);w7(i[We],i);let a=o[Xa];a!==null&&a.detachView(o[We]),i[bn]=null,i[No]=null,i[et]&=-129}return i}function aG(t,n,e,i){let r=Yi+i,o=e.length;i>0&&(e[r-1][No]=n),i-1&&(Up(n,i),Ep(e,i))}this._attachedToViewContainer=!1}fv(this._lView[We],this._lView)}onDestroy(n){ND(this._lView,n)}markForCheck(){wM(this._cdRefInjectingView||this._lView,4)}detach(){this._lView[et]&=-129}reattach(){Db(this._lView),this._lView[et]|=128}detectChanges(){this._lView[et]|=1024,HP(this._lView)}checkNoChanges(){}attachToViewContainerRef(){if(this._appRef)throw new ue(902,!1);this._attachedToViewContainer=!0}detachFromAppRef(){this._appRef=null;let n=em(this._lView),e=this._lView[jl];e!==null&&!n&&bM(e,this._lView),MP(this._lView[We],this._lView)}attachToAppRef(n){if(this._attachedToViewContainer)throw new ue(902,!1);this._appRef=n;let e=em(this._lView),i=this._lView[jl];i!==null&&!e&&YP(i,this._lView),Db(this._lView)}};var te=(()=>{class t{_declarationLView;_declarationTContainer;elementRef;static __NG_ELEMENT_ID__=sG;constructor(e,i,r){this._declarationLView=e,this._declarationTContainer=i,this.elementRef=r}get ssrId(){return this._declarationTContainer.tView?.ssrId||null}createEmbeddedView(e,i){return this.createEmbeddedViewImpl(e,i)}createEmbeddedViewImpl(e,i,r){let o=Xp(this._declarationLView,this._declarationTContainer,e,{embeddedViewInjector:i,dehydratedView:r});return new $l(o)}}return t})();function sG(){return xv(tn(),Ne())}function xv(t,n){return t.type&4?new te(n,t,fm(t,n)):null}function bm(t,n,e,i,r){let o=t.data[n];if(o===null)o=lG(t,n,e,i,r),OO()&&(o.flags|=32);else if(o.type&64){o.type=e,o.value=i,o.attrs=r;let a=TO();o.injectorIndex=a===null?-1:a.injectorIndex}return im(o,!0),o}function lG(t,n,e,i,r){let o=UD(),a=$D(),s=a?o:o&&o.parent,l=t.data[n]=dG(t,s,e,n,i,r);return cG(t,l,o,a),l}function cG(t,n,e,i){t.firstChild===null&&(t.firstChild=n),e!==null&&(i?e.child==null&&n.parent!==null&&(e.child=n):e.next===null&&(e.next=n,n.prev=e))}function dG(t,n,e,i,r,o){let a=n?n.injectorIndex:-1,s=0;return jD()&&(s|=128),{type:e,index:i,insertBeforeIndex:null,injectorIndex:a,directiveStart:-1,directiveEnd:-1,directiveStylingLast:-1,componentOffset:-1,propertyBindings:null,flags:s,providerIndexes:0,value:r,attrs:o,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}}var fIe=new RegExp(`^(\\d+)*(${bW}|${_W})*(.*)`);function uG(t){let n=t[TD]??[],i=t[bn][ri],r=[];for(let o of n)o.data[XR]!==void 0?r.push(o):mG(o,i);t[TD]=r}function mG(t,n){let e=0,i=t.firstChild;if(i){let r=t.data[ZR];for(;enull,pG=()=>null;function Kb(t,n){return hG(t,n)}function QP(t,n,e){return pG(t,n,e)}var Id=class{},Cv=class{},AE=class{resolveComponentFactory(n){throw new ue(917,!1)}},ef=class{static NULL=new AE},cn=class{},je=(()=>{class t{destroyNode=null;static __NG_ELEMENT_ID__=()=>fG()}return t})();function fG(){let t=Ne(),n=tn(),e=Bo(n.index,t);return(Ja(e)?e:t)[ri]}var KP=(()=>{class t{static \u0275prov=O({token:t,providedIn:"root",factory:()=>null})}return t})();var Hb={},OE=class{injector;parentInjector;constructor(n,e){this.injector=n,this.parentInjector=e}get(n,e,i){let r=this.injector.get(n,Hb,i);return r!==Hb||e===Hb?r:this.parentInjector.get(n,e,i)}};function Zb(t,n,e){let i=e?t.styles:null,r=e?t.classes:null,o=0;if(n!==null)for(let a=0;a0&&(e.directiveToIndex=new Map);for(let f=0;f0;){let e=t[--n];if(typeof e=="number"&&e<0)return e}return 0}function wG(t,n,e){if(e){if(n.exportAs)for(let i=0;ii(Lo(w[t.index])):t.index;rF(v,n,e,o,s,b,!1)}}return c}function kG(t){return t.startsWith("animation")||t.startsWith("transition")}function SG(t,n,e,i){let r=t.cleanup;if(r!=null)for(let o=0;ol?s[l]:null}typeof a=="string"&&(o+=2)}return null}function rF(t,n,e,i,r,o,a){let s=n.firstCreatePass?VD(n):null,l=LD(e),c=l.length;l.push(r,o),s&&s.push(i,t,c,(c+1)*(a?-1:1))}function pR(t,n,e,i,r,o){let a=n[e],s=n[We],c=s.data[e].outputs[i],m=a[c].subscribe(o);rF(t.index,s,n,r,o,m,!0)}var RE=Symbol("BINDING");var Xb=class extends ef{ngModule;constructor(n){super(),this.ngModule=n}resolveComponentFactory(n){let e=Ka(n);return new Wl(e,this.ngModule)}};function TG(t){return Object.keys(t).map(n=>{let[e,i,r]=t[n],o={propName:e,templateName:n,isSignal:(i&mv.SignalBased)!==0};return r&&(o.transform=r),o})}function IG(t){return Object.keys(t).map(n=>({propName:t[n],templateName:n}))}function AG(t,n,e){let i=n instanceof Wt?n:n?.injector;return i&&t.getStandaloneInjector!==null&&(i=t.getStandaloneInjector(i)||i),i?new OE(e,i):e}function OG(t){let n=t.get(cn,null);if(n===null)throw new ue(407,!1);let e=t.get(KP,null),i=t.get(Oo,null);return{rendererFactory:n,sanitizer:e,changeDetectionScheduler:i,ngReflect:!1}}function RG(t,n){let e=oF(t);return dP(n,e,e==="svg"?AD:e==="math"?xO:null)}function oF(t){return(t.selectors[0][0]||"div").toLowerCase()}var Wl=class extends Cv{componentDef;ngModule;selector;componentType;ngContentSelectors;isBoundToModule;cachedInputs=null;cachedOutputs=null;get inputs(){return this.cachedInputs??=TG(this.componentDef.inputs),this.cachedInputs}get outputs(){return this.cachedOutputs??=IG(this.componentDef.outputs),this.cachedOutputs}constructor(n,e){super(),this.componentDef=n,this.ngModule=e,this.componentType=n.type,this.selector=s7(n.selectors),this.ngContentSelectors=n.ngContentSelectors??[],this.isBoundToModule=!!e}create(n,e,i,r,o,a){oi(22);let s=Xe(null);try{let l=this.componentDef,c=PG(i,l,a,o),d=AG(l,r||this.ngModule,n),m=OG(d),f=m.rendererFactory.createRenderer(null,l),b=i?F7(f,i,l.encapsulation,d):RG(l,f),v=a?.some(fR)||o?.some(D=>typeof D!="function"&&D.bindings.some(fR)),w=uM(null,c,null,512|bP(l),null,null,m,f,d,null,tP(b,d,!0));w[mi]=b,Sb(w);let x=null;try{let D=DM(mi,w,2,"#host",()=>c.directiveRegistry,!0,0);hP(f,b,D),cm(b,w),_v(c,w,D),tM(c,D,w),EM(c,D),e!==void 0&&NG(D,this.ngContentSelectors,e),x=Bo(D.index,w),w[qi]=x[qi],CM(c,w,null)}catch(D){throw x!==null&&fE(x),fE(w),D}finally{oi(23),Tb()}return new Jb(this.componentType,w,!!v)}finally{Xe(s)}}};function PG(t,n,e,i){let r=t?["ng-version","20.3.16"]:l7(n.selectors[0]),o=null,a=null,s=0;if(e)for(let d of e)s+=d[RE].requiredVars,d.create&&(d.targetIdx=0,(o??=[]).push(d)),d.update&&(d.targetIdx=0,(a??=[]).push(d));if(i)for(let d=0;d{if(e&1&&t)for(let i of t)i.create();if(e&2&&n)for(let i of n)i.update()}}function fR(t){let n=t[RE].kind;return n==="input"||n==="twoWay"}var Jb=class extends Id{_rootLView;_hasInputBindings;instance;hostView;changeDetectorRef;componentType;location;previousInputValues=null;_tNode;constructor(n,e,i){super(),this._rootLView=e,this._hasInputBindings=i,this._tNode=Ip(e[We],mi),this.location=fm(this._tNode,e),this.instance=Bo(this._tNode.index,e)[qi],this.hostView=this.changeDetectorRef=new $l(e,void 0),this.componentType=n}setInput(n,e){this._hasInputBindings;let i=this._tNode;if(this.previousInputValues??=new Map,this.previousInputValues.has(n)&&Object.is(this.previousInputValues.get(n),e))return;let r=this._rootLView,o=yv(i,r[We],r,n,e);this.previousInputValues.set(n,e);let a=Bo(i.index,r);wM(a,1)}get injector(){return new Ed(this._tNode,this._rootLView)}destroy(){this.hostView.destroy()}onDestroy(n){this.hostView.onDestroy(n)}};function NG(t,n,e){let i=t.projection=[];for(let r=0;r{class t{static __NG_ELEMENT_ID__=LG}return t})();function LG(){let t=tn();return sF(t,Ne())}var VG=nt,aF=class extends VG{_lContainer;_hostTNode;_hostLView;constructor(n,e,i){super(),this._lContainer=n,this._hostTNode=e,this._hostLView=i}get element(){return fm(this._hostTNode,this._hostLView)}get injector(){return new Ed(this._hostTNode,this._hostLView)}get parentInjector(){let n=ZE(this._hostTNode,this._hostLView);if(NR(n)){let e=Wb(n,this._hostLView),i=$b(n),r=e[We].data[i+8];return new Ed(r,e)}else return new Ed(null,this._hostLView)}clear(){for(;this.length>0;)this.remove(this.length-1)}get(n){let e=gR(this._lContainer);return e!==null&&e[n]||null}get length(){return this._lContainer.length-Yi}createEmbeddedView(n,e,i){let r,o;typeof i=="number"?r=i:i!=null&&(r=i.index,o=i.injector);let a=Kb(this._lContainer,n.ssrId),s=n.createEmbeddedViewImpl(e||{},o,a);return this.insertImpl(s,r,dm(this._hostTNode,a)),s}createComponent(n,e,i,r,o,a,s){let l=n&&!G$(n),c;if(l)c=e;else{let x=e||{};c=x.index,i=x.injector,r=x.projectableNodes,o=x.environmentInjector||x.ngModuleRef,a=x.directives,s=x.bindings}let d=l?n:new Wl(Ka(n)),m=i||this.parentInjector;if(!o&&d.ngModule==null){let D=(l?m:this.parentInjector).get(Wt,null);D&&(o=D)}let f=Ka(d.componentType??{}),b=Kb(this._lContainer,f?.id??null),v=b?.firstChild??null,w=d.create(m,r,v,o,a,s);return this.insertImpl(w.hostView,c,dm(this._hostTNode,b)),w}insert(n,e){return this.insertImpl(n,e,!0)}insertImpl(n,e,i){let r=n._lView;if(wO(r)){let s=this.indexOf(n);if(s!==-1)this.detach(s);else{let l=r[bn],c=new aF(l,l[Sr],l[bn]);c.detach(c.indexOf(n))}}let o=this._adjustIndex(e),a=this._lContainer;return Jp(a,r,o,i),n.attachToViewContainerRef(),yD(rE(a),o,n),n}move(n,e){return this.insert(n,e)}indexOf(n){let e=gR(this._lContainer);return e!==null?e.indexOf(n):-1}remove(n){let e=this._adjustIndex(n,-1),i=Up(this._lContainer,e);i&&(Ep(rE(this._lContainer),e),fv(i[We],i))}detach(n){let e=this._adjustIndex(n,-1),i=Up(this._lContainer,e);return i&&Ep(rE(this._lContainer),e)!=null?new $l(i):null}_adjustIndex(n,e=0){return n??this.length+e}};function gR(t){return t[Tp]}function rE(t){return t[Tp]||(t[Tp]=[])}function sF(t,n){let e,i=n[t.index];return _a(i)?e=i:(e=WP(i,n,null,t),n[t.index]=e,mM(n,e)),jG(e,n,t,i),new aF(e,t,n)}function BG(t,n){let e=t[ri],i=e.createComment(""),r=Vo(n,t),o=e.parentNode(r);return Yb(e,o,i,e.nextSibling(r),!1),i}var jG=UG,HG=()=>!1;function zG(t,n,e){return HG(t,n,e)}function UG(t,n,e,i){if(t[Hl])return;let r;e.type&8?r=Lo(i):r=BG(n,e),t[Hl]=r}var PE=class t{queryList;matches=null;constructor(n){this.queryList=n}clone(){return new t(this.queryList)}setDirty(){this.queryList.setDirty()}},FE=class t{queries;constructor(n=[]){this.queries=n}createEmbeddedView(n){let e=n.queries;if(e!==null){let i=n.contentQueries!==null?n.contentQueries[0]:e.length,r=[];for(let o=0;o0)i.push(a[s/2]);else{let c=o[s+1],d=n[-l];for(let m=Yi;mn.trim())}function mF(t,n,e){t.queries===null&&(t.queries=new NE),t.queries.track(new LE(n,e))}function QG(t,n){let e=t.contentQueries||(t.contentQueries=[]),i=e.length?e[e.length-1]:-1;n!==i&&e.push(t.queries.length-1,n)}function SM(t,n){return t.queries.getByIndex(n)}function hF(t,n){let e=t[We],i=SM(e,n);return i.crossesNgTemplate?VE(e,t,n,[]):lF(e,t,i,n)}function TM(t,n,e){let i,r=pp(()=>{i._dirtyCounter();let o=KG(i,t);if(n&&o===void 0)throw new ue(-951,!1);return o});return i=r[ln],i._dirtyCounter=he(0),i._flatValue=void 0,r}function IM(t){return TM(!0,!1,t)}function AM(t){return TM(!0,!0,t)}function pF(t){return TM(!1,!1,t)}function fF(t,n){let e=t[ln];e._lView=Ne(),e._queryIndex=n,e._queryList=kM(e._lView,n),e._queryList.onDirty(()=>e._dirtyCounter.update(i=>i+1))}function KG(t,n){let e=t._lView,i=t._queryIndex;if(e===void 0||i===void 0||e[et]&4)return n?void 0:ur;let r=kM(e,i),o=hF(e,i);return r.reset(o,WR),n?r.first:r._changesDetected||t._flatValue===void 0?t._flatValue=r.toArray():t._flatValue}var as=class{},wv=class{};var tv=class extends as{ngModuleType;_parent;_bootstrapComponents=[];_r3Injector;instance;destroyCbs=[];componentFactoryResolver=new Xb(this);constructor(n,e,i,r=!0){super(),this.ngModuleType=n,this._parent=e;let o=wD(n);this._bootstrapComponents=fP(o.bootstrap),this._r3Injector=KD(n,e,[{provide:as,useValue:this},{provide:ef,useValue:this.componentFactoryResolver},...i],$s(n),new Set(["environment"])),r&&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)}},iv=class extends wv{moduleType;constructor(n){super(),this.moduleType=n}create(n){return new tv(this.moduleType,n,[])}};var Wp=class extends as{injector;componentFactoryResolver=new Xb(this);instance=null;constructor(n){super();let e=new pd([...n.providers,{provide:as,useValue:this},{provide:ef,useValue:this.componentFactoryResolver}],n.parent||Ku(),n.debugName,new Set(["environment"]));this.injector=e,n.runEnvironmentInitializers&&e.resolveInjectorInitializers()}destroy(){this.injector.destroy()}onDestroy(n){this.injector.onDestroy(n)}};function vm(t,n,e=null){return new Wp({providers:t,parent:n,debugName:e,runEnvironmentInitializers:!0}).injector}var ZG=(()=>{class t{_injector;cachedInjectors=new Map;constructor(e){this._injector=e}getOrCreateStandaloneInjector(e){if(!e.standalone)return null;if(!this.cachedInjectors.has(e)){let i=DD(!1,e.type),r=i.length>0?vm([i],this._injector,`Standalone[${e.type.name}]`):null;this.cachedInjectors.set(e,r)}return this.cachedInjectors.get(e)}ngOnDestroy(){try{for(let e of this.cachedInjectors.values())e!==null&&e.destroy()}finally{this.cachedInjectors.clear()}}static \u0275prov=O({token:t,providedIn:"environment",factory:()=>new t(pe(Wt))})}return t})();function E(t){return pm(()=>{let n=gF(t),e=De(M({},n),{decls:t.decls,vars:t.vars,template:t.template,consts:t.consts||null,ngContentSelectors:t.ngContentSelectors,onPush:t.changeDetection===XE.OnPush,directiveDefs:null,pipeDefs:null,dependencies:n.standalone&&t.dependencies||null,getStandaloneInjector:n.standalone?r=>r.get(ZG).getOrCreateStandaloneInjector(e):null,getExternalStyles:null,signals:t.signals??!1,data:t.data||{},encapsulation:t.encapsulation||Ys.Emulated,styles:t.styles||ur,_:null,schemas:t.schemas||null,tView:null,id:""});n.standalone&&cs("NgStandalone"),_F(e);let i=t.dependencies;return e.directiveDefs=_R(i,XG),e.pipeDefs=_R(i,pO),e.id=t9(e),e})}function XG(t){return Ka(t)||yb(t)}function ee(t){return pm(()=>({type:t.type,bootstrap:t.bootstrap||ur,declarations:t.declarations||ur,imports:t.imports||ur,exports:t.exports||ur,transitiveCompileScopes:null,schemas:t.schemas||null,id:t.id||null}))}function JG(t,n){if(t==null)return fa;let e={};for(let i in t)if(t.hasOwnProperty(i)){let r=t[i],o,a,s,l;Array.isArray(r)?(s=r[0],o=r[1],a=r[2]??o,l=r[3]||null):(o=r,a=r,s=mv.None,l=null),e[o]=[i,s,l],n[o]=a}return e}function e9(t){if(t==null)return fa;let n={};for(let e in t)t.hasOwnProperty(e)&&(n[t[e]]=e);return n}function F(t){return pm(()=>{let n=gF(t);return _F(n),n})}function Wr(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 gF(t){let n={};return{type:t.type,providersResolver:null,factory:null,hostBindings:t.hostBindings||null,hostVars:t.hostVars||0,hostAttrs:t.hostAttrs||null,contentQueries:t.contentQueries||null,declaredInputs:n,inputConfig:t.inputs||fa,exportAs:t.exportAs||null,standalone:t.standalone??!0,signals:t.signals===!0,selectors:t.selectors||ur,viewQuery:t.viewQuery||null,features:t.features||null,setInput:null,resolveHostDirectives:null,hostDirectives:null,inputs:JG(t.inputs,n),outputs:e9(t.outputs),debugInfo:null}}function _F(t){t.features?.forEach(n=>n(t))}function _R(t,n){return t?()=>{let e=typeof t=="function"?t():t,i=[];for(let r of e){let o=n(r);o!==null&&i.push(o)}return i}:null}function t9(t){let n=0,e=typeof t.consts=="function"?"":t.consts,i=[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 o of i.join("|"))n=Math.imul(31,n)+o.charCodeAt(0)<<0;return n+=2147483648,"c"+n}function i9(t){return Object.getPrototypeOf(t.prototype).constructor}function le(t){let n=i9(t.type),e=!0,i=[t];for(;n;){let r;if(ba(t))r=n.\u0275cmp||n.\u0275dir;else{if(n.\u0275cmp)throw new ue(903,!1);r=n.\u0275dir}if(r){if(e){i.push(r);let a=t;a.inputs=oE(t.inputs),a.declaredInputs=oE(t.declaredInputs),a.outputs=oE(t.outputs);let s=r.hostBindings;s&&s9(t,s);let l=r.viewQuery,c=r.contentQueries;if(l&&o9(t,l),c&&a9(t,c),n9(t,r),oO(t.outputs,r.outputs),ba(r)&&r.data.animation){let d=t.data;d.animation=(d.animation||[]).concat(r.data.animation)}}let o=r.features;if(o)for(let a=0;a=0;i--){let r=t[i];r.hostVars=n+=r.hostVars,r.hostAttrs=lm(r.hostAttrs,e=lm(e,r.hostAttrs))}}function oE(t){return t===fa?{}:t===ur?[]:t}function o9(t,n){let e=t.viewQuery;e?t.viewQuery=(i,r)=>{n(i,r),e(i,r)}:t.viewQuery=n}function a9(t,n){let e=t.contentQueries;e?t.contentQueries=(i,r,o)=>{n(i,r,o),e(i,r,o)}:t.contentQueries=n}function s9(t,n){let e=t.hostBindings;e?t.hostBindings=(i,r)=>{n(i,r),e(i,r)}:t.hostBindings=n}function ym(t){let n=e=>{let i=Array.isArray(t);e.hostDirectives===null?(e.resolveHostDirectives=l9,e.hostDirectives=i?t.map(BE):[t]):i?e.hostDirectives.unshift(...t.map(BE)):e.hostDirectives.unshift(t)};return n.ngInherit=!0,n}function l9(t){let n=[],e=!1,i=null,r=null;for(let o=0;o{class t{log(e){console.log(e)}warn(e){console.warn(e)}static \u0275fac=function(i){return new(i||t)};static \u0275prov=O({token:t,factory:t.\u0275fac,providedIn:"platform"})}return t})();var OM=new T("");function Xs(t){return!!t&&typeof t.then=="function"}function Ev(t){return!!t&&typeof t.subscribe=="function"}var RM=new T("");function Ql(t){return zr([{provide:RM,multi:!0,useValue:t}])}var PM=(()=>{class t{resolve;reject;initialized=!1;done=!1;donePromise=new Promise((e,i)=>{this.resolve=e,this.reject=i});appInits=u(RM,{optional:!0})??[];injector=u(de);constructor(){}runInitializers(){if(this.initialized)return;let e=[];for(let r of this.appInits){let o=In(this.injector,r);if(Xs(o))e.push(o);else if(Ev(o)){let a=new Promise((s,l)=>{o.subscribe({complete:s,error:l})});e.push(a)}}let i=()=>{this.done=!0,this.resolve()};Promise.all(e).then(()=>{i()}).catch(r=>{this.reject(r)}),e.length===0&&i(),this.initialized=!0}static \u0275fac=function(i){return new(i||t)};static \u0275prov=O({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),nf=new T("");function yF(){Aw(()=>{let t="";throw new ue(600,t)})}function xF(t){return t.isBoundToModule}var h9=10;var Gn=(()=>{class t{_runningTick=!1;_destroyed=!1;_destroyListeners=[];_views=[];internalErrorHandler=u(hr);afterRenderManager=u(pv);zonelessEnabled=u(Fp);rootEffectScheduler=u(Np);dirtyFlags=0;tracingSnapshot=null;allTestViews=new Set;autoDetectTestViews=new Set;includeAllTestViews=!1;afterTick=new z;get allViews(){return[...(this.includeAllTestViews?this.allTestViews:this.autoDetectTestViews).keys(),...this._views]}get destroyed(){return this._destroyed}componentTypes=[];components=[];internalPendingTask=u(ns);get isStable(){return this.internalPendingTask.hasPendingTasksObservable.pipe(se(e=>!e))}constructor(){u(Yl,{optional:!0})}whenStable(){let e;return new Promise(i=>{e=this.isStable.subscribe({next:r=>{r&&i()}})}).finally(()=>{e.unsubscribe()})}_injector=u(Wt);_rendererFactory=null;get injector(){return this._injector}bootstrap(e,i){return this.bootstrapImpl(e,i)}bootstrapImpl(e,i,r=de.NULL){return this._injector.get(ae).run(()=>{oi(10);let a=e instanceof Cv;if(!this._injector.get(PM).done){let v="";throw new ue(405,v)}let l;a?l=e:l=this._injector.get(ef).resolveComponentFactory(e),this.componentTypes.push(l.componentType);let c=xF(l)?void 0:this._injector.get(as),d=i||l.selector,m=l.create(r,[],d,c),f=m.location.nativeElement,b=m.injector.get(OM,null);return b?.registerApplication(f),m.onDestroy(()=>{this.detachView(m.hostView),Vp(this.components,m),b?.unregisterApplication(f)}),this._loadComponent(m),oi(11,m),m})}tick(){this.zonelessEnabled||(this.dirtyFlags|=1),this._tick()}_tick(){oi(12),this.tracingSnapshot!==null?this.tracingSnapshot.run(hv.CHANGE_DETECTION,this.tickImpl):this.tickImpl()}tickImpl=()=>{if(this._runningTick)throw new ue(101,!1);let e=Xe(null);try{this._runningTick=!0,this.synchronize()}finally{this._runningTick=!1,this.tracingSnapshot?.dispose(),this.tracingSnapshot=null,Xe(e),this.afterTick.next(),oi(13)}};synchronize(){this._rendererFactory===null&&!this._injector.destroyed&&(this._rendererFactory=this._injector.get(cn,null,{optional:!0}));let e=0;for(;this.dirtyFlags!==0&&e++Ap(e))){this.dirtyFlags|=2;return}else this.dirtyFlags&=-8}attachView(e){let i=e;this._views.push(i),i.attachToAppRef(this)}detachView(e){let i=e;Vp(this._views,i),i.detachFromAppRef()}_loadComponent(e){this.attachView(e.hostView);try{this.tick()}catch(r){this.internalErrorHandler(r)}this.components.push(e),this._injector.get(nf,[]).forEach(r=>r(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),()=>Vp(this._destroyListeners,e)}destroy(){if(this._destroyed)throw new ue(406,!1);let e=this._injector;e.destroy&&!e.destroyed&&e.destroy()}get viewCount(){return this._views.length}static \u0275fac=function(i){return new(i||t)};static \u0275prov=O({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();function Vp(t,n){let e=t.indexOf(n);e>-1&&t.splice(e,1)}function Kl(t,n){let e=Ne(),i=ts();if(Tr(e,i,n)){let r=gi(),o=rm();if(yv(o,r,e,t,n))qs(o)&&PP(e,o.index);else{let s=Vo(o,e);FP(e[ri],s,null,o.value,t,n,null)}}return Kl}function X(t,n,e,i){let r=Ne(),o=ts();if(Tr(r,o,n)){let a=gi(),s=rm();z7(s,r,t,n,e,i)}return X}var CIe=typeof document<"u"&&typeof document?.documentElement?.getAnimations=="function";function Mv(){return Ne()[mr][qi]}var jE=class{destroy(n){}updateValue(n,e){}swap(n,e){let i=Math.min(n,e),r=Math.max(n,e),o=this.detach(r);if(r-i>1){let a=this.detach(i);this.attach(i,o),this.attach(r,a)}else this.attach(i,o)}move(n,e){this.attach(e,this.detach(n))}};function aE(t,n,e,i,r){return t===e&&Object.is(n,i)?1:Object.is(r(t,n),r(e,i))?-1:0}function p9(t,n,e){let i,r,o=0,a=t.length-1,s=void 0;if(Array.isArray(n)){let l=n.length-1;for(;o<=a&&o<=l;){let c=t.at(o),d=n[o],m=aE(o,c,o,d,e);if(m!==0){m<0&&t.updateValue(o,d),o++;continue}let f=t.at(a),b=n[l],v=aE(a,f,l,b,e);if(v!==0){v<0&&t.updateValue(a,b),a--,l--;continue}let w=e(o,c),x=e(a,f),D=e(o,d);if(Object.is(D,x)){let P=e(l,b);Object.is(P,w)?(t.swap(o,a),t.updateValue(a,b),l--,a--):t.move(a,o),t.updateValue(o,d),o++;continue}if(i??=new nv,r??=xR(t,o,a,e),HE(t,i,o,D))t.updateValue(o,d),o++,a++;else if(r.has(D))i.set(w,t.detach(o)),a--;else{let P=t.create(o,n[o]);t.attach(o,P),o++,a++}}for(;o<=l;)yR(t,i,e,o,n[o]),o++}else if(n!=null){let l=n[Symbol.iterator](),c=l.next();for(;!c.done&&o<=a;){let d=t.at(o),m=c.value,f=aE(o,d,o,m,e);if(f!==0)f<0&&t.updateValue(o,m),o++,c=l.next();else{i??=new nv,r??=xR(t,o,a,e);let b=e(o,m);if(HE(t,i,o,b))t.updateValue(o,m),o++,a++,c=l.next();else if(!r.has(b))t.attach(o,t.create(o,m)),o++,a++,c=l.next();else{let v=e(o,d);i.set(v,t.detach(o)),a--}}}for(;!c.done;)yR(t,i,e,t.length,c.value),c=l.next()}for(;o<=a;)t.destroy(t.detach(a--));i?.forEach(l=>{t.destroy(l)})}function HE(t,n,e,i){return n!==void 0&&n.has(i)?(t.attach(e,n.get(i)),n.delete(i),!0):!1}function yR(t,n,e,i,r){if(HE(t,n,i,e(i,r)))t.updateValue(i,r);else{let o=t.create(i,r);t.attach(i,o)}}function xR(t,n,e,i){let r=new Set;for(let o=n;o<=e;o++)r.add(i(o,t.at(o)));return r}var nv=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 i=this.kvMap.get(n);this._vMap===void 0&&(this._vMap=new Map);let r=this._vMap;for(;r.has(i);)i=r.get(i);r.set(i,e)}else this.kvMap.set(n,e)}forEach(n){for(let[e,i]of this.kvMap)if(n(i,e),this._vMap!==void 0){let r=this._vMap;for(;r.has(i);)i=r.get(i),n(i,e)}}};function N(t,n,e,i,r,o,a,s){cs("NgControlFlow");let l=Ne(),c=gi(),d=po(c.consts,o);return um(l,c,t,n,e,i,r,d,256,a,s),FM}function FM(t,n,e,i,r,o,a,s){cs("NgControlFlow");let l=Ne(),c=gi(),d=po(c.consts,o);return um(l,c,t,n,e,i,r,d,512,a,s),FM}function L(t,n){cs("NgControlFlow");let e=Ne(),i=ts(),r=e[i]!==On?e[i]:-1,o=r!==-1?rv(e,mi+r):void 0,a=0;if(Tr(e,i,t)){let s=Xe(null);try{if(o!==void 0&&qP(o,a),t!==-1){let l=mi+t,c=rv(e,l),d=WE(e[We],l),m=QP(c,d,e),f=Xp(e,d,n,{dehydratedView:m});Jp(c,f,a,dm(d,m))}}finally{Xe(s)}}else if(o!==void 0){let s=GP(o,a);s!==void 0&&(s[qi]=n)}}var zE=class{lContainer;$implicit;$index;constructor(n,e,i){this.lContainer=n,this.$implicit=e,this.$index=i}get $count(){return this.lContainer.length-Yi}};function Hi(t){return t}function xm(t,n){return n}var UE=class{hasEmptyBlock;trackByFn;liveCollection;constructor(n,e,i){this.hasEmptyBlock=n,this.trackByFn=e,this.liveCollection=i}};function xt(t,n,e,i,r,o,a,s,l,c,d,m,f){cs("NgControlFlow");let b=Ne(),v=gi(),w=l!==void 0,x=Ne(),D=s?a.bind(x[mr][qi]):a,P=new UE(w,D);x[mi+t]=P,um(b,v,t+1,n,e,i,r,po(v.consts,o),256),w&&um(b,v,t+2,l,c,d,m,po(v.consts,f),512)}var $E=class extends jE{lContainer;hostLView;templateTNode;operationsCounter=void 0;needsIndexUpdate=!1;constructor(n,e,i){super(),this.lContainer=n,this.hostLView=e,this.templateTNode=i}get length(){return this.lContainer.length-Yi}at(n){return this.getLView(n)[qi].$implicit}attach(n,e){let i=e[gd];this.needsIndexUpdate||=n!==this.length,Jp(this.lContainer,e,n,dm(this.templateTNode,i)),f9(this.lContainer,n)}detach(n){return this.needsIndexUpdate||=n!==this.length-1,g9(this.lContainer,n),_9(this.lContainer,n)}create(n,e){let i=Kb(this.lContainer,this.templateTNode.tView.ssrId),r=Xp(this.hostLView,this.templateTNode,new zE(this.lContainer,e,n),{dehydratedView:i});return this.operationsCounter?.recordCreate(),r}destroy(n){fv(n[We],n),this.operationsCounter?.recordDestroy()}updateValue(n,e){this.getLView(n)[qi].$implicit=e}reset(){this.needsIndexUpdate=!1,this.operationsCounter?.reset()}updateIndexes(){if(this.needsIndexUpdate)for(let n=0;n0){let o=i[Ws];x7(o,r),kd.delete(i),r.detachedLeaveAnimationFns=void 0}}function g9(t,n){if(t.length<=Yi)return;let e=Yi+n,i=t[e],r=i?i[yd]:void 0;r&&r.leave&&r.leave.size>0&&(r.detachedLeaveAnimationFns=[])}function _9(t,n){return Up(t,n)}function b9(t,n){return GP(t,n)}function WE(t,n){return Ip(t,n)}function y(t,n,e){let i=Ne(),r=ts();if(Tr(i,r,n)){let o=gi(),a=rm();OP(a,i,t,n,i[ri],e)}return y}function GE(t,n,e,i,r){yv(n,t,e,r?"class":"style",i)}function h(t,n,e,i){let r=Ne(),o=r[We],a=t+mi,s=o.firstCreatePass?DM(a,r,2,n,xM,Eb(),e,i):o.data[a];if(bv(s,r,t,n,CF),Ju(s)){let l=r[We];_v(l,r,s),tM(l,s,r)}return i!=null&&_m(r,s),h}function p(){let t=gi(),n=tn(),e=vv(n);return t.firstCreatePass&&EM(t,e),HD(e)&&zD(),BD(),e.classesWithoutHost!=null&&X$(e)&&GE(t,e,Ne(),e.classesWithoutHost,!0),e.stylesWithoutHost!=null&&J$(e)&&GE(t,e,Ne(),e.stylesWithoutHost,!1),p}function k(t,n,e,i){return h(t,n,e,i),p(),k}function ft(t,n,e,i){let r=Ne(),o=r[We],a=t+mi,s=o.firstCreatePass?JP(a,o,2,n,e,i):o.data[a];return bv(s,r,t,n,CF),i!=null&&_m(r,s),ft}function vt(){let t=tn(),n=vv(t);return HD(n)&&zD(),BD(),vt}function ai(t,n,e,i){return ft(t,n,e,i),vt(),ai}var CF=(t,n,e,i,r)=>(Pp(!0),dP(n[ri],i,jO()));function jt(t,n,e){let i=Ne(),r=i[We],o=t+mi,a=r.firstCreatePass?DM(o,i,8,"ng-container",xM,Eb(),n,e):r.data[o];if(bv(a,i,t,"ng-container",DF),Ju(a)){let s=i[We];_v(s,i,a),tM(s,a,i)}return e!=null&&_m(i,a),jt}function Lt(){let t=gi(),n=tn(),e=vv(n);return t.firstCreatePass&&EM(t,e),Lt}function Ge(t,n,e){return jt(t,n,e),Lt(),Ge}function NM(t,n,e){let i=Ne(),r=i[We],o=t+mi,a=r.firstCreatePass?JP(o,r,8,"ng-container",n,e):r.data[o];return bv(a,i,t,"ng-container",DF),e!=null&&_m(i,a),NM}function wF(){let t=tn(),n=vv(t);return Lt}function rf(t,n,e){return NM(t,n,e),wF(),rf}var DF=(t,n,e,i,r)=>(Pp(!0),WW(n[ri],""));function Y(){return Ne()}function si(t,n,e){let i=Ne(),r=ts();if(Tr(i,r,n)){let o=gi(),a=rm();RP(a,i,t,n,i[ri],e)}return si}var Nb=void 0;function v9(t){let n=Math.floor(Math.abs(t)),e=t.toString().replace(/^[^.]*\.?/,"").length;return n===1&&e===0?1:5}var y9=["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"]],Nb,[["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"]],Nb,[["B","A"],["BC","AD"],["Before Christ","Anno Domini"]],0,[6,0],["M/d/yy","MMM d, y","MMMM d, y","EEEE, MMMM d, y"],["h:mm a","h:mm:ss a","h:mm:ss a z","h:mm:ss a zzzz"],["{1}, {0}",Nb,"{1} 'at' {0}",Nb],[".",",",";","%","+","-","E","\xD7","\u2030","\u221E","NaN",":"],["#,##0.###","#,##0%","\xA4#,##0.00","#E0"],"USD","$","US Dollar",{},"ltr",v9],sE={};function Ir(t){let n=x9(t),e=CR(n);if(e)return e;let i=n.split("-")[0];if(e=CR(i),e)return e;if(i==="en")return y9;throw new ue(701,!1)}function CR(t){return t in sE||(sE[t]=Po.ng&&Po.ng.common&&Po.ng.common.locales&&Po.ng.common.locales[t]),sE[t]}var zi=(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})(zi||{});function x9(t){return t.toLowerCase().replace(/_/g,"-")}var of="en-US",C9="USD";var w9=of;function EF(t){typeof t=="string"&&(w9=t.toLowerCase().replace(/_/g,"-"))}function S(t,n,e){let i=Ne(),r=gi(),o=tn();return MF(r,i,i[ri],o,t,n,e),S}function kv(t,n,e){let i=Ne(),r=gi(),o=tn();return(o.type&3||e)&&nF(o,r,i,e,i[ri],t,n,zb(o,i,n)),kv}function MF(t,n,e,i,r,o,a){let s=!0,l=null;if((i.type&3||a)&&(l??=zb(i,n,o),nF(i,t,n,a,e,r,o,l)&&(s=!1)),s){let c=i.outputs?.[r],d=i.hostDirectiveOutputs?.[r];if(d&&d.length)for(let m=0;m>17&32767}function M9(t){return(t&2)==2}function k9(t,n){return t&131071|n<<17}function qE(t){return t|2}function mm(t){return(t&131068)>>2}function lE(t,n){return t&-131069|n<<2}function S9(t){return(t&1)===1}function YE(t){return t|1}function T9(t,n,e,i,r,o){let a=o?n.classBindings:n.styleBindings,s=Sd(a),l=mm(a);t[i]=e;let c=!1,d;if(Array.isArray(e)){let m=e;d=m[1],(d===null||Qu(m,d)>0)&&(c=!0)}else d=e;if(r)if(l!==0){let f=Sd(t[s+1]);t[i+1]=Lb(f,s),f!==0&&(t[f+1]=lE(t[f+1],i)),t[s+1]=k9(t[s+1],i)}else t[i+1]=Lb(s,0),s!==0&&(t[s+1]=lE(t[s+1],i)),s=i;else t[i+1]=Lb(l,0),s===0?s=i:t[l+1]=lE(t[l+1],i),l=i;c&&(t[i+1]=qE(t[i+1])),wR(t,d,i,!0),wR(t,d,i,!1),I9(n,d,t,i,o),a=Lb(s,l),o?n.classBindings=a:n.styleBindings=a}function I9(t,n,e,i,r){let o=r?t.residualClasses:t.residualStyles;o!=null&&typeof n=="string"&&Qu(o,n)>=0&&(e[i+1]=YE(e[i+1]))}function wR(t,n,e,i){let r=t[e+1],o=n===null,a=i?Sd(r):mm(r),s=!1;for(;a!==0&&(s===!1||o);){let l=t[a],c=t[a+1];A9(l,n)&&(s=!0,t[a+1]=i?YE(c):qE(c)),a=i?Sd(c):mm(c)}s&&(t[e+1]=i?qE(r):YE(r))}function A9(t,n){return t===null||n==null||(Array.isArray(t)?t[1]:t)===n?!0:Array.isArray(t)&&typeof n=="string"?Qu(t,n)>=0:!1}var vn={textEnd:0,key:0,keyEnd:0,value:0,valueEnd:0};function kF(t){return t.substring(vn.key,vn.keyEnd)}function O9(t){return t.substring(vn.value,vn.valueEnd)}function R9(t){return IF(t),SF(t,hm(t,0,vn.textEnd))}function SF(t,n){let e=vn.textEnd;return e===n?-1:(n=vn.keyEnd=F9(t,vn.key=n,e),hm(t,n,e))}function P9(t){return IF(t),TF(t,hm(t,0,vn.textEnd))}function TF(t,n){let e=vn.textEnd,i=vn.key=hm(t,n,e);return e===i?-1:(i=vn.keyEnd=N9(t,i,e),i=DR(t,i,e,58),i=vn.value=hm(t,i,e),i=vn.valueEnd=L9(t,i,e),DR(t,i,e,59))}function IF(t){vn.key=0,vn.keyEnd=0,vn.value=0,vn.valueEnd=0,vn.textEnd=t.length}function hm(t,n,e){for(;n32;)n++;return n}function N9(t,n,e){let i;for(;n=65&&(i&-33)<=90||i>=48&&i<=57);)n++;return n}function DR(t,n,e,i){return n=hm(t,n,e),n32&&(s=a),o=r,r=i,i=l&-33}return s}function ER(t,n,e,i){let r=-1,o=e;for(;o=0;e=TF(n,e))FF(t,kF(n),O9(n))}function it(t){OF(W9,B9,t,!0)}function B9(t,n){for(let e=R9(n);e>=0;e=SF(n,e))Mp(t,kF(n),!0)}function AF(t,n,e,i){let r=Ne(),o=gi(),a=Op(2);if(o.firstUpdatePass&&PF(o,t,a,i),n!==On&&Tr(r,a,n)){let s=o.data[va()];NF(o,s,r,r[ri],t,r[a+1]=q9(n,e),i,a)}}function OF(t,n,e,i){let r=gi(),o=Op(2);r.firstUpdatePass&&PF(r,null,o,i);let a=Ne();if(e!==On&&Tr(a,o,e)){let s=r.data[va()];if(LF(s,i)&&!RF(r,o)){let l=i?s.classesWithoutHost:s.stylesWithoutHost;l!==null&&(e=fb(l,e||"")),GE(r,s,a,e,i)}else G9(r,s,a,a[ri],a[o+1],a[o+1]=$9(t,n,e),i,o)}}function RF(t,n){return n>=t.expandoStartIndex}function PF(t,n,e,i){let r=t.data;if(r[e+1]===null){let o=r[va()],a=RF(t,e);LF(o,i)&&n===null&&!a&&(n=!1),n=j9(r,o,n,i),T9(r,o,n,e,a,i)}}function j9(t,n,e,i){let r=FO(t),o=i?n.residualClasses:n.residualStyles;if(r===null)(i?n.classBindings:n.styleBindings)===0&&(e=cE(null,t,n,e,i),e=Gp(e,n.attrs,i),o=null);else{let a=n.directiveStylingLast;if(a===-1||t[a]!==r)if(e=cE(r,t,n,e,i),o===null){let l=H9(t,n,i);l!==void 0&&Array.isArray(l)&&(l=cE(null,t,n,l[1],i),l=Gp(l,n.attrs,i),z9(t,n,i,l))}else o=U9(t,n,i)}return o!==void 0&&(i?n.residualClasses=o:n.residualStyles=o),e}function H9(t,n,e){let i=e?n.classBindings:n.styleBindings;if(mm(i)!==0)return t[Sd(i)]}function z9(t,n,e,i){let r=e?n.classBindings:n.styleBindings;t[Sd(r)]=i}function U9(t,n,e){let i,r=n.directiveEnd;for(let o=1+n.directiveStylingLast;o0;){let l=t[r],c=Array.isArray(l),d=c?l[1]:l,m=d===null,f=e[r+1];f===On&&(f=m?ur:void 0);let b=m?vb(f,i):d===i?f:void 0;if(c&&!ov(b)&&(b=vb(l,i)),ov(b)&&(s=b,a))return s;let v=t[r+1];r=a?Sd(v):mm(v)}if(n!==null){let l=o?n.residualClasses:n.residualStyles;l!=null&&(s=vb(l,i))}return s}function ov(t){return t!==void 0}function q9(t,n){return t==null||t===""||(typeof n=="string"?t=t+n:typeof t=="object"&&(t=$s(Ur(t)))),t}function LF(t,n){return(t.flags&(n?8:16))!==0}function _(t,n=""){let e=Ne(),i=gi(),r=t+mi,o=i.firstCreatePass?bm(i,r,1,n,null):i.data[r],a=Y9(i,e,o,n,t);e[r]=a,Ib()&&vM(i,e,a,o),im(o,!1)}var Y9=(t,n,e,i,r)=>(Pp(!0),UW(n[ri],i));function VF(t,n,e,i=""){return Tr(t,ts(),e)?n+Fo(e)+i:On}function Q9(t,n,e,i,r,o=""){let a=qD(),s=$p(t,a,e,r);return Op(2),s?n+Fo(e)+i+Fo(r)+o:On}function K9(t,n,e,i,r,o,a,s=""){let l=qD(),c=iF(t,l,e,r,a);return Op(3),c?n+Fo(e)+i+Fo(r)+o+Fo(a)+s:On}function H(t){return ve("",t),H}function ve(t,n,e){let i=Ne(),r=VF(i,t,n,e);return r!==On&&LM(i,va(),r),ve}function Od(t,n,e,i,r){let o=Ne(),a=Q9(o,t,n,e,i,r);return a!==On&&LM(o,va(),a),Od}function Cm(t,n,e,i,r,o,a){let s=Ne(),l=K9(s,t,n,e,i,r,o,a);return l!==On&&LM(s,va(),l),Cm}function LM(t,n,e){let i=OD(n,t);$W(t[ri],i,e)}function zo(t,n,e){XD(n)&&(n=n());let i=Ne(),r=ts();if(Tr(i,r,n)){let o=gi(),a=rm();OP(a,i,t,n,i[ri],e)}return zo}function Ca(t,n){let e=XD(t);return e&&t.set(n),e}function Uo(t,n){let e=Ne(),i=gi(),r=tn();return MF(i,e,e[ri],r,t,n),Uo}function VM(t){return Tr(Ne(),ts(),t)?Fo(t):On}function $o(t,n,e=""){return VF(Ne(),t,n,e)}function Z9(t,n,e){let i=gi();if(i.firstCreatePass){let r=ba(t);QE(e,i.data,i.blueprint,r,!0),QE(n,i.data,i.blueprint,r,!1)}}function QE(t,n,e,i,r){if(t=_n(t),Array.isArray(t))for(let o=0;o>20;if(hd(t)||!t.multi){let b=new Md(c,r,_e,null),v=uE(l,n,r?d:d+f,m);v===-1?(hE(qb(s,a),o,l),dE(o,t,n.length),n.push(l),s.directiveStart++,s.directiveEnd++,r&&(s.providerIndexes+=1048576),e.push(b),a.push(b)):(e[v]=b,a[v]=b)}else{let b=uE(l,n,d+f,m),v=uE(l,n,d,d+f),w=b>=0&&e[b],x=v>=0&&e[v];if(r&&!x||!r&&!w){hE(qb(s,a),o,l);let D=eq(r?J9:X9,e.length,r,i,c,t);!r&&x&&(e[v].providerFactory=D),dE(o,t,n.length,0),n.push(l),s.directiveStart++,s.directiveEnd++,r&&(s.providerIndexes+=1048576),e.push(D),a.push(D)}else{let D=BF(e[r?v:b],c,!r&&i);dE(o,t,b>-1?b:v,D)}!r&&i&&x&&e[v].componentProviders++}}}function dE(t,n,e,i){let r=hd(n),o=bO(n);if(r||o){let l=(o?_n(n.useClass):n).prototype.ngOnDestroy;if(l){let c=t.destroyHooks||(t.destroyHooks=[]);if(!r&&n.multi){let d=c.indexOf(e);d===-1?c.push(e,[i,l]):c[d+1].push(i,l)}else c.push(e,l)}}}function BF(t,n,e){return e&&t.componentProviders++,t.multi.push(n)-1}function uE(t,n,e,i){for(let r=e;r{e.providersResolver=(i,r)=>Z9(i,r?r(t):t,n)}}function at(t,n,e){let i=es()+t,r=Ne();return r[i]===On?tf(r,i,e?n.call(e):n()):EG(r,i)}function Pt(t,n,e,i){return jF(Ne(),es(),t,n,e,i)}function wa(t,n,e,i,r){return HF(Ne(),es(),t,n,e,i,r)}function Rd(t,n,e,i,r,o){return zF(Ne(),es(),t,n,e,i,r,o)}function wm(t,n,e,i,r,o,a){return UF(Ne(),es(),t,n,e,i,r,o,a)}function Sv(t,n){let e=t[n];return e===On?void 0:e}function jF(t,n,e,i,r,o){let a=n+e;return Tr(t,a,r)?tf(t,a+1,o?i.call(o,r):i(r)):Sv(t,a+1)}function HF(t,n,e,i,r,o,a){let s=n+e;return $p(t,s,r,o)?tf(t,s+2,a?i.call(a,r,o):i(r,o)):Sv(t,s+2)}function zF(t,n,e,i,r,o,a,s){let l=n+e;return iF(t,l,r,o,a)?tf(t,l+3,s?i.call(s,r,o,a):i(r,o,a)):Sv(t,l+3)}function UF(t,n,e,i,r,o,a,s,l){let c=n+e;return MG(t,c,r,o,a,s)?tf(t,c+4,l?i.call(l,r,o,a,s):i(r,o,a,s)):Sv(t,c+4)}function me(t,n){let e=gi(),i,r=t+mi;e.firstCreatePass?(i=tq(n,e.pipeRegistry),e.data[r]=i,i.onDestroy&&(e.destroyHooks??=[]).push(r,i.onDestroy)):i=e.data[r];let o=i.factory||(i.factory=Vl(i.type,!0)),a,s=kr(_e);try{let l=Gb(!1),c=o();return Gb(l),RD(e,Ne(),r,c),c}finally{kr(s)}}function tq(t,n){if(n)for(let e=n.length-1;e>=0;e--){let i=n[e];if(t===i.name)return i}}function Oe(t,n,e){let i=t+mi,r=Ne(),o=tm(r,i);return Tv(r,i)?jF(r,es(),n,o.transform,e,o):o.transform(e)}function Ni(t,n,e,i){let r=t+mi,o=Ne(),a=tm(o,r);return Tv(o,r)?HF(o,es(),n,a.transform,e,i,a):a.transform(e,i)}function BM(t,n,e,i,r){let o=t+mi,a=Ne(),s=tm(a,o);return Tv(a,o)?zF(a,es(),n,s.transform,e,i,r,s):s.transform(e,i,r)}function Dm(t,n,e,i,r,o){let a=t+mi,s=Ne(),l=tm(s,a);return Tv(s,a)?UF(s,es(),n,l.transform,e,i,r,o,l):l.transform(e,i,r,o)}function Tv(t,n){return t[We].data[n].pure}function _i(t,n){return xv(t,n)}var av=class{ngModuleFactory;componentFactories;constructor(n,e){this.ngModuleFactory=n,this.componentFactories=e}},jM=(()=>{class t{compileModuleSync(e){return new iv(e)}compileModuleAsync(e){return Promise.resolve(this.compileModuleSync(e))}compileModuleAndAllComponentsSync(e){let i=this.compileModuleSync(e),r=wD(e),o=fP(r.declarations).reduce((a,s)=>{let l=Ka(s);return l&&a.push(new Wl(l)),a},[]);return new av(i,o)}compileModuleAndAllComponentsAsync(e){return Promise.resolve(this.compileModuleAndAllComponentsSync(e))}clearCache(){}clearCacheFor(e){}getModuleId(e){}static \u0275fac=function(i){return new(i||t)};static \u0275prov=O({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();var iq=(()=>{class t{zone=u(ae);changeDetectionScheduler=u(Oo);applicationRef=u(Gn);applicationErrorHandler=u(hr);_onMicrotaskEmptySubscription;initialize(){this._onMicrotaskEmptySubscription||(this._onMicrotaskEmptySubscription=this.zone.onMicrotaskEmpty.subscribe({next:()=>{this.changeDetectionScheduler.runningTick||this.zone.run(()=>{try{this.applicationRef.dirtyFlags|=1,this.applicationRef._tick()}catch(e){this.applicationErrorHandler(e)}})}}))}ngOnDestroy(){this._onMicrotaskEmptySubscription?.unsubscribe()}static \u0275fac=function(i){return new(i||t)};static \u0275prov=O({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();function $F({ngZoneFactory:t,ignoreChangesOutsideZone:n,scheduleInRootZone:e}){return t??=()=>new ae(De(M({},WF()),{scheduleInRootZone:e})),[{provide:ae,useFactory:t},{provide:Qa,multi:!0,useFactory:()=>{let i=u(iq,{optional:!0});return()=>i.initialize()}},{provide:Qa,multi:!0,useFactory:()=>{let i=u(nq);return()=>{i.initialize()}}},n===!0?{provide:JD,useValue:!0}:[],{provide:eE,useValue:e??xP},{provide:hr,useFactory:()=>{let i=u(ae),r=u(Wt),o;return a=>{i.runOutsideAngular(()=>{r.destroyed&&!o?setTimeout(()=>{throw a}):(o??=r.get(Tn),o.handleError(a))})}}}]}function WF(t){return{enableLongStackTrace:!1,shouldCoalesceEventChangeDetection:t?.eventCoalescing??!1,shouldCoalesceRunChangeDetection:t?.runCoalescing??!1}}var nq=(()=>{class t{subscription=new ke;initialized=!1;zone=u(ae);pendingTasks=u(ns);initialize(){if(this.initialized)return;this.initialized=!0;let e=null;!this.zone.isStable&&!this.zone.hasPendingMacrotasks&&!this.zone.hasPendingMicrotasks&&(e=this.pendingTasks.add()),this.zone.runOutsideAngular(()=>{this.subscription.add(this.zone.onStable.subscribe(()=>{ae.assertNotInAngularZone(),queueMicrotask(()=>{e!==null&&!this.zone.hasPendingMacrotasks&&!this.zone.hasPendingMicrotasks&&(this.pendingTasks.remove(e),e=null)})}))}),this.subscription.add(this.zone.onUnstable.subscribe(()=>{ae.assertInAngularZone(),e??=this.pendingTasks.add()}))}ngOnDestroy(){this.subscription.unsubscribe()}static \u0275fac=function(i){return new(i||t)};static \u0275prov=O({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();var GF=(()=>{class t{applicationErrorHandler=u(hr);appRef=u(Gn);taskService=u(ns);ngZone=u(ae);zonelessEnabled=u(Fp);tracing=u(Yl,{optional:!0});disableScheduling=u(JD,{optional:!0})??!1;zoneIsDefined=typeof Zone<"u"&&!!Zone.root.run;schedulerTickApplyArgs=[{data:{__scheduler_tick__:!0}}];subscriptions=new ke;angularZoneId=this.zoneIsDefined?this.ngZone._inner?.get(Qb):null;scheduleInRootZone=!this.zonelessEnabled&&this.zoneIsDefined&&(u(eE,{optional:!0})??!1);cancelScheduledCallback=null;useMicrotaskScheduler=!1;runningTick=!1;pendingRenderTaskId=null;constructor(){this.subscriptions.add(this.appRef.afterTick.subscribe(()=>{this.runningTick||this.cleanup()})),this.subscriptions.add(this.ngZone.onUnstable.subscribe(()=>{this.runningTick||this.cleanup()})),this.disableScheduling||=!this.zonelessEnabled&&(this.ngZone instanceof jp||!this.zoneIsDefined)}notify(e){if(!this.zonelessEnabled&&e===5)return;let i=!1;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,i=!0;break}case 12:{this.appRef.dirtyFlags|=16,i=!0;break}case 13:{this.appRef.dirtyFlags|=2,i=!0;break}case 11:{i=!0;break}case 9:case 8:case 7:case 10:default:this.appRef.dirtyFlags|=8}if(this.appRef.tracingSnapshot=this.tracing?.snapshot(this.appRef.tracingSnapshot)??null,!this.shouldScheduleTick(i))return;let r=this.useMicrotaskScheduler?rR:CP;this.pendingRenderTaskId=this.taskService.add(),this.scheduleInRootZone?this.cancelScheduledCallback=Zone.root.run(()=>r(()=>this.tick())):this.cancelScheduledCallback=this.ngZone.runOutsideAngular(()=>r(()=>this.tick()))}shouldScheduleTick(e){return!(this.disableScheduling&&!e||this.appRef.destroyed||this.pendingRenderTaskId!==null||this.runningTick||this.appRef._runningTick||!this.zonelessEnabled&&this.zoneIsDefined&&Zone.current.get(Qb+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(i){this.taskService.remove(e),this.applicationErrorHandler(i)}finally{this.cleanup()}this.useMicrotaskScheduler=!0,rR(()=>{this.useMicrotaskScheduler=!1,this.taskService.remove(e)})}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(i){return new(i||t)};static \u0275prov=O({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();function rq(){return typeof $localize<"u"&&$localize.locale||of}var el=new T("",{providedIn:"root",factory:()=>u(el,{optional:!0,skipSelf:!0})||rq()}),HM=new T("",{providedIn:"root",factory:()=>C9});var af=class{destroyed=!1;listeners=null;errorHandler=u(Tn,{optional:!0});destroyRef=u(nn);constructor(){this.destroyRef.onDestroy(()=>{this.destroyed=!0,this.listeners=null})}subscribe(n){if(this.destroyed)throw new ue(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(Ro(953,!1));return}if(this.listeners===null)return;let e=Xe(null);try{for(let i of this.listeners)try{i(n)}catch(r){this.errorHandler?.handleError(r)}}finally{Xe(e)}}};function UM(t){return t.destroyRef}function Ti(t){return eO(t)}function Zt(t,n){return pp(t,n?.equal)}var zM=class{[ln];constructor(n){this[ln]=n}destroy(){this[ln].destroy()}};function Ar(t,n){let e=n?.injector??u(de),i=n?.manualCleanup!==!0?e.get(nn):null,r,o=e.get(wd,null,{optional:!0}),a=e.get(Oo);return o!==null?(r=sq(o.view,a,t),i instanceof Cp&&i._lView===o.view&&(i=null)):r=lq(t,e.get(Np),a),r.injector=e,i!==null&&(r.onDestroyFn=i.onDestroy(()=>r.destroy())),new zM(r)}var qF=De(M({},tO),{cleanupFns:void 0,zone:null,onDestroyFn:Dd,run(){let t=nm(!1);try{iO(this)}finally{nm(t)}},cleanup(){if(!this.cleanupFns?.length)return;let t=Xe(null);try{for(;this.cleanupFns.length;)this.cleanupFns.pop()()}finally{this.cleanupFns=[],Xe(t)}}}),oq=De(M({},qF),{consumerMarkedDirty(){this.scheduler.schedule(this),this.notifier.notify(12)},destroy(){Tl(this),this.onDestroyFn(),this.cleanup(),this.scheduler.remove(this)}}),aq=De(M({},qF),{consumerMarkedDirty(){this.view[et]|=8192,zl(this.view),this.notifier.notify(13)},destroy(){Tl(this),this.onDestroyFn(),this.cleanup(),this.view[Gs]?.delete(this)}});function sq(t,n,e){let i=Object.create(aq);return i.view=t,i.zone=typeof Zone<"u"?Zone.current:null,i.notifier=n,i.fn=YF(i,e),t[Gs]??=new Set,t[Gs].add(i),i.consumerMarkedDirty(i),i}function lq(t,n,e){let i=Object.create(oq);return i.fn=YF(i,t),i.scheduler=n,i.notifier=e,i.zone=typeof Zone<"u"?Zone.current:null,i.scheduler.add(i),i.notifier.notify(12),i}function YF(t,n){return()=>{n(e=>(t.cleanupFns??=[]).push(e))}}var Ov=Symbol("InputSignalNode#UNSET"),n2=De(M({},fp),{transformFn:void 0,applyValueToInputSignal(t,n){rd(t,n)}});function r2(t,n){let e=Object.create(n2);e.value=t,e.transformFn=n?.transform;function i(){if(kl(e),e.value===Ov){let r=null;throw new ue(-950,r)}return e.value}return i[ln]=e,i}var Ii=class{attributeName;constructor(n){this.attributeName=n}__NG_ELEMENT_ID__=()=>qp(this.attributeName);toString(){return`HostAttributeToken ${this.attributeName}`}},ZM=new T("");ZM.__NG_ELEMENT_ID__=t=>{let n=tn();if(n===null)throw new ue(204,!1);if(n.type&2)return n.value;if(t&8)return null;throw new ue(204,!1)};function bi(t){return new af}function QF(t,n){return r2(t,n)}function Cq(t){return r2(Ov,t)}var ne=(QF.required=Cq,QF);function KF(t,n){return IM(n)}function wq(t,n){return AM(n)}var qn=(KF.required=wq,KF);function ZF(t,n){return IM(n)}function Dq(t,n){return AM(n)}var fr=(ZF.required=Dq,ZF);function o2(t,n){return pF(n)}function a2(t,n){let e=Object.create(n2),i=new af;e.value=t;function r(){return kl(e),XF(e.value),e.value}return r[ln]=e,r.asReadonly=Ab.bind(r),r.set=o=>{e.equal(e.value,o)||(rd(e,o),i.emit(o))},r.update=o=>{XF(e.value),r.set(o(e.value))},r.subscribe=i.subscribe.bind(i),r.destroyRef=i.destroyRef,r}function XF(t){if(t===Ov)throw new ue(952,!1)}function JF(t,n){return a2(t,n)}function Eq(t){return a2(Ov,t)}var Em=(JF.required=Eq,JF);var WM=new T(""),Mq=new T("");function sf(t){return!t.moduleRef}function kq(t){let n=sf(t)?t.r3Injector:t.moduleRef.injector,e=n.get(ae);return e.run(()=>{sf(t)?t.r3Injector.resolveInjectorInitializers():t.moduleRef.resolveInjectorInitializers();let i=n.get(hr),r;if(e.runOutsideAngular(()=>{r=e.onError.subscribe({next:i})}),sf(t)){let o=()=>n.destroy(),a=t.platformInjector.get(WM);a.add(o),n.onDestroy(()=>{r.unsubscribe(),a.delete(o)})}else{let o=()=>t.moduleRef.destroy(),a=t.platformInjector.get(WM);a.add(o),t.moduleRef.onDestroy(()=>{Vp(t.allPlatformModules,t.moduleRef),r.unsubscribe(),a.delete(o)})}return Tq(i,e,()=>{let o=n.get(ns),a=o.add(),s=n.get(PM);return s.runInitializers(),s.donePromise.then(()=>{let l=n.get(el,of);if(EF(l||of),!n.get(Mq,!0))return sf(t)?n.get(Gn):(t.allPlatformModules.push(t.moduleRef),t.moduleRef);if(sf(t)){let d=n.get(Gn);return t.rootComponent!==void 0&&d.bootstrap(t.rootComponent),d}else return Sq?.(t.moduleRef,t.allPlatformModules),t.moduleRef}).finally(()=>void o.remove(a))})})}var Sq;function Tq(t,n,e){try{let i=e();return Xs(i)?i.catch(r=>{throw n.runOutsideAngular(()=>t(r)),r}):i}catch(i){throw n.runOutsideAngular(()=>t(i)),i}}var Iv=null;function Iq(t=[],n){return de.create({name:n,providers:[{provide:kp,useValue:"platform"},{provide:WM,useValue:new Set([()=>Iv=null])},...t]})}function Aq(t=[]){if(Iv)return Iv;let n=Iq(t);return Iv=n,yF(),Oq(n),n}function Oq(t){let n=t.get(sv,null);In(t,()=>{n?.forEach(e=>e())})}var ye=(()=>{class t{static __NG_ELEMENT_ID__=Rq}return t})();function Rq(t){return Pq(tn(),Ne(),(t&16)===16)}function Pq(t,n,e){if(qs(t)&&!e){let i=Bo(t.index,n);return new $l(i,i)}else if(t.type&175){let i=n[mr];return new $l(i,n)}return null}var GM=class{constructor(){}supports(n){return MM(n)}create(n){return new qM(n)}},Fq=(t,n)=>n,qM=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||Fq}forEachItem(n){let e;for(e=this._itHead;e!==null;e=e._next)n(e)}forEachOperation(n){let e=this._itHead,i=this._removalsHead,r=0,o=null;for(;e||i;){let a=!i||e&&e.currentIndex{a=this._trackByFn(r,s),e===null||!Object.is(e.trackById,a)?(e=this._mismatch(e,s,a,r),i=!0):(i&&(e=this._verifyReinsertion(e,s,a,r)),Object.is(e.item,s)||this._addIdentityChange(e,s)),e=e._next,r++}),this.length=r;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,i,r){let o;return n===null?o=this._itTail:(o=n._prev,this._remove(n)),n=this._unlinkedRecords===null?null:this._unlinkedRecords.get(i,null),n!==null?(Object.is(n.item,e)||this._addIdentityChange(n,e),this._reinsertAfter(n,o,r)):(n=this._linkedRecords===null?null:this._linkedRecords.get(i,r),n!==null?(Object.is(n.item,e)||this._addIdentityChange(n,e),this._moveAfter(n,o,r)):n=this._addAfter(new YM(e,i),o,r)),n}_verifyReinsertion(n,e,i,r){let o=this._unlinkedRecords===null?null:this._unlinkedRecords.get(i,null);return o!==null?n=this._reinsertAfter(o,n._prev,r):n.currentIndex!=r&&(n.currentIndex=r,this._addToMoves(n,r)),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,i){this._unlinkedRecords!==null&&this._unlinkedRecords.remove(n);let r=n._prevRemoved,o=n._nextRemoved;return r===null?this._removalsHead=o:r._nextRemoved=o,o===null?this._removalsTail=r:o._prevRemoved=r,this._insertAfter(n,e,i),this._addToMoves(n,i),n}_moveAfter(n,e,i){return this._unlink(n),this._insertAfter(n,e,i),this._addToMoves(n,i),n}_addAfter(n,e,i){return this._insertAfter(n,e,i),this._additionsTail===null?this._additionsTail=this._additionsHead=n:this._additionsTail=this._additionsTail._nextAdded=n,n}_insertAfter(n,e,i){let r=e===null?this._itHead:e._next;return n._next=r,n._prev=e,r===null?this._itTail=n:r._prev=n,e===null?this._itHead=n:e._next=n,this._linkedRecords===null&&(this._linkedRecords=new Av),this._linkedRecords.put(n),n.currentIndex=i,n}_remove(n){return this._addToRemovals(this._unlink(n))}_unlink(n){this._linkedRecords!==null&&this._linkedRecords.remove(n);let e=n._prev,i=n._next;return e===null?this._itHead=i:e._next=i,i===null?this._itTail=e:i._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 Av),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}},QM=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 i;for(i=this._head;i!==null;i=i._nextDup)if((e===null||e<=i.currentIndex)&&Object.is(i.trackById,n))return i;return null}remove(n){let e=n._prevDup,i=n._nextDup;return e===null?this._head=i:e._nextDup=i,i===null?this._tail=e:i._prevDup=e,this._head===null}},Av=class{map=new Map;put(n){let e=n.trackById,i=this.map.get(e);i||(i=new QM,this.map.set(e,i)),i.add(n)}get(n,e){let i=n,r=this.map.get(i);return r?r.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 e2(t,n,e){let i=t.previousIndex;if(i===null)return i;let r=0;return e&&i{class t{factories;static \u0275prov=O({token:t,providedIn:"root",factory:t2});constructor(e){this.factories=e}static create(e,i){if(i!=null){let r=i.factories.slice();e=e.concat(r)}return new t(e)}static extend(e){return{provide:t,useFactory:()=>{let i=u(t,{optional:!0,skipSelf:!0});return t.create(e,i||t2())}}}find(e){let i=this.factories.find(r=>r.supports(e));if(i!=null)return i;throw new ue(901,!1)}}return t})();function s2(t){let{rootComponent:n,appProviders:e,platformProviders:i,platformRef:r}=t;oi(8);try{let o=r?.injector??Aq(i),a=[$F({}),{provide:Oo,useExisting:GF},zO,...e||[]],s=new Wp({providers:a,parent:o,debugName:"",runEnvironmentInitializers:!1});return kq({r3Injector:s.injector,platformInjector:o,rootComponent:n})}catch(o){return Promise.reject(o)}finally{oi(9)}}function V(t){return typeof t=="boolean"?t:t!=null&&t!=="false"}function ct(t,n=NaN){return!isNaN(parseFloat(t))&&!isNaN(Number(t))?Number(t):n}var $M=Symbol("NOT_SET"),l2=new Set,Nq=De(M({},fp),{consumerIsAlwaysLive:!0,consumerAllowSignalWrites:!0,value:$M,cleanup:null,consumerMarkedDirty(){if(this.sequence.impl.executing){if(this.sequence.lastPhase===null||this.sequence.lastPhase(kl(c),c.value),c.signal[ln]=c,c.registerCleanupFn=d=>(c.cleanup??=new Set).add(d),this.nodes[s]=c,this.hooks[s]=d=>c.phaseFn(d)}}afterRun(){super.afterRun(),this.lastPhase=null}destroy(){super.destroy();for(let n of this.nodes)if(n)try{for(let e of n.cleanup??l2)e()}finally{Tl(n)}}};function c2(t,n){let e=n?.injector??u(de),i=e.get(Oo),r=e.get(pv),o=e.get(Yl,null,{optional:!0});r.impl??=e.get(_M);let a=t;typeof a=="function"&&(a={mixedReadWrite:t});let s=e.get(wd,null,{optional:!0}),l=new KM(r.impl,[a.earlyRead,a.write,a.mixedReadWrite,a.read],s?.view,i,e,o?.snapshot(null));return r.impl.register(l),l}function Mm(t,n){let e=Ka(t),i=n.elementInjector||Ku();return new Wl(e).create(i,n.projectableNodes,n.hostElement,n.environmentInjector,n.directives,n.bindings)}function d2(t){let n=Ka(t);if(!n)return null;let e=new Wl(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 h2=null;function Wo(){return h2}function XM(t){h2??=t}var lf=class{},cf=(()=>{class t{historyGo(e){throw new Error("")}static \u0275fac=function(i){return new(i||t)};static \u0275prov=O({token:t,factory:()=>u(p2),providedIn:"platform"})}return t})(),JM=new T(""),p2=(()=>{class t extends cf{_location;_history;_doc=u(ge);constructor(){super(),this._location=window.location,this._history=window.history}getBaseHrefFromDOM(){return Wo().getBaseHref(this._doc)}onPopState(e){let i=Wo().getGlobalEventTarget(this._doc,"window");return i.addEventListener("popstate",e,!1),()=>i.removeEventListener("popstate",e)}onHashChange(e){let i=Wo().getGlobalEventTarget(this._doc,"window");return i.addEventListener("hashchange",e,!1),()=>i.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,i,r){this._history.pushState(e,i,r)}replaceState(e,i,r){this._history.replaceState(e,i,r)}forward(){this._history.forward()}back(){this._history.back()}historyGo(e=0){this._history.go(e)}getState(){return this._history.state}static \u0275fac=function(i){return new(i||t)};static \u0275prov=O({token:t,factory:()=>new t,providedIn:"platform"})}return t})();function Rv(t,n){return t?n?t.endsWith("/")?n.startsWith("/")?t+n.slice(1):t+n:n.startsWith("/")?t+n:`${t}/${n}`:t:n}function u2(t){let n=t.search(/#|\?|$/);return t[n-1]==="/"?t.slice(0,n-1)+t.slice(n):t}function Da(t){return t&&t[0]!=="?"?`?${t}`:t}var Ea=(()=>{class t{historyGo(e){throw new Error("")}static \u0275fac=function(i){return new(i||t)};static \u0275prov=O({token:t,factory:()=>u(Fv),providedIn:"root"})}return t})(),Pv=new T(""),Fv=(()=>{class t extends Ea{_platformLocation;_baseHref;_removeListenerFns=[];constructor(e,i){super(),this._platformLocation=e,this._baseHref=i??this._platformLocation.getBaseHrefFromDOM()??u(ge).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 Rv(this._baseHref,e)}path(e=!1){let i=this._platformLocation.pathname+Da(this._platformLocation.search),r=this._platformLocation.hash;return r&&e?`${i}${r}`:i}pushState(e,i,r,o){let a=this.prepareExternalUrl(r+Da(o));this._platformLocation.pushState(e,i,a)}replaceState(e,i,r,o){let a=this.prepareExternalUrl(r+Da(o));this._platformLocation.replaceState(e,i,a)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}getState(){return this._platformLocation.getState()}historyGo(e=0){this._platformLocation.historyGo?.(e)}static \u0275fac=function(i){return new(i||t)(pe(cf),pe(Pv,8))};static \u0275prov=O({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),us=(()=>{class t{_subject=new z;_basePath;_locationStrategy;_urlChangeListeners=[];_urlChangeSubscription=null;constructor(e){this._locationStrategy=e;let i=this._locationStrategy.getBaseHref();this._basePath=Bq(u2(m2(i))),this._locationStrategy.onPopState(r=>{this._subject.next({url:this.path(!0),pop:!0,state:r.state,type:r.type})})}ngOnDestroy(){this._urlChangeSubscription?.unsubscribe(),this._urlChangeListeners=[]}path(e=!1){return this.normalize(this._locationStrategy.path(e))}getState(){return this._locationStrategy.getState()}isCurrentPathEqualTo(e,i=""){return this.path()==this.normalize(e+Da(i))}normalize(e){return t.stripTrailingSlash(Vq(this._basePath,m2(e)))}prepareExternalUrl(e){return e&&e[0]!=="/"&&(e="/"+e),this._locationStrategy.prepareExternalUrl(e)}go(e,i="",r=null){this._locationStrategy.pushState(r,"",e,i),this._notifyUrlChangeListeners(this.prepareExternalUrl(e+Da(i)),r)}replaceState(e,i="",r=null){this._locationStrategy.replaceState(r,"",e,i),this._notifyUrlChangeListeners(this.prepareExternalUrl(e+Da(i)),r)}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(i=>{this._notifyUrlChangeListeners(i.url,i.state)}),()=>{let i=this._urlChangeListeners.indexOf(e);this._urlChangeListeners.splice(i,1),this._urlChangeListeners.length===0&&(this._urlChangeSubscription?.unsubscribe(),this._urlChangeSubscription=null)}}_notifyUrlChangeListeners(e="",i){this._urlChangeListeners.forEach(r=>r(e,i))}subscribe(e,i,r){return this._subject.subscribe({next:e,error:i??void 0,complete:r??void 0})}static normalizeQueryParams=Da;static joinWithSlash=Rv;static stripTrailingSlash=u2;static \u0275fac=function(i){return new(i||t)(pe(Ea))};static \u0275prov=O({token:t,factory:()=>Lq(),providedIn:"root"})}return t})();function Lq(){return new us(pe(Ea))}function Vq(t,n){if(!t||!n.startsWith(t))return n;let e=n.substring(t.length);return e===""||["/",";","?","#"].includes(e[0])?e:n}function m2(t){return t.replace(/\/index.html$/,"")}function Bq(t){if(new RegExp("^(https?:)?//").test(t)){let[,e]=t.split(/\/\/[^\/]+/);return e}return t}var l1=(()=>{class t extends Ea{_platformLocation;_baseHref="";_removeListenerFns=[];constructor(e,i){super(),this._platformLocation=e,i!=null&&(this._baseHref=i)}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 i=this._platformLocation.hash??"#";return i.length>0?i.substring(1):i}prepareExternalUrl(e){let i=Rv(this._baseHref,e);return i.length>0?"#"+i:i}pushState(e,i,r,o){let a=this.prepareExternalUrl(r+Da(o))||this._platformLocation.pathname;this._platformLocation.pushState(e,i,a)}replaceState(e,i,r,o){let a=this.prepareExternalUrl(r+Da(o))||this._platformLocation.pathname;this._platformLocation.replaceState(e,i,a)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}getState(){return this._platformLocation.getState()}historyGo(e=0){this._platformLocation.historyGo?.(e)}static \u0275fac=function(i){return new(i||t)(pe(cf),pe(Pv,8))};static \u0275prov=O({token:t,factory:t.\u0275fac})}return t})(),x2={ADP:[void 0,void 0,0],AFN:[void 0,"\u060B",0],ALL:[void 0,void 0,0],AMD:[void 0,"\u058F",2],AOA:[void 0,"Kz"],ARS:[void 0,"$"],AUD:["A$","$"],AZN:[void 0,"\u20BC"],BAM:[void 0,"KM"],BBD:[void 0,"$"],BDT:[void 0,"\u09F3"],BHD:[void 0,void 0,3],BIF:[void 0,void 0,0],BMD:[void 0,"$"],BND:[void 0,"$"],BOB:[void 0,"Bs"],BRL:["R$"],BSD:[void 0,"$"],BWP:[void 0,"P"],BYN:[void 0,void 0,2],BYR:[void 0,void 0,0],BZD:[void 0,"$"],CAD:["CA$","$",2],CHF:[void 0,void 0,2],CLF:[void 0,void 0,4],CLP:[void 0,"$",0],CNY:["CN\xA5","\xA5"],COP:[void 0,"$",2],CRC:[void 0,"\u20A1",2],CUC:[void 0,"$"],CUP:[void 0,"$"],CZK:[void 0,"K\u010D",2],DJF:[void 0,void 0,0],DKK:[void 0,"kr",2],DOP:[void 0,"$"],EGP:[void 0,"E\xA3"],ESP:[void 0,"\u20A7",0],EUR:["\u20AC"],FJD:[void 0,"$"],FKP:[void 0,"\xA3"],GBP:["\xA3"],GEL:[void 0,"\u20BE"],GHS:[void 0,"GH\u20B5"],GIP:[void 0,"\xA3"],GNF:[void 0,"FG",0],GTQ:[void 0,"Q"],GYD:[void 0,"$",2],HKD:["HK$","$"],HNL:[void 0,"L"],HRK:[void 0,"kn"],HUF:[void 0,"Ft",2],IDR:[void 0,"Rp",2],ILS:["\u20AA"],INR:["\u20B9"],IQD:[void 0,void 0,0],IRR:[void 0,void 0,0],ISK:[void 0,"kr",0],ITL:[void 0,void 0,0],JMD:[void 0,"$"],JOD:[void 0,void 0,3],JPY:["\xA5",void 0,0],KHR:[void 0,"\u17DB"],KMF:[void 0,"CF",0],KPW:[void 0,"\u20A9",0],KRW:["\u20A9",void 0,0],KWD:[void 0,void 0,3],KYD:[void 0,"$"],KZT:[void 0,"\u20B8"],LAK:[void 0,"\u20AD",0],LBP:[void 0,"L\xA3",0],LKR:[void 0,"Rs"],LRD:[void 0,"$"],LTL:[void 0,"Lt"],LUF:[void 0,void 0,0],LVL:[void 0,"Ls"],LYD:[void 0,void 0,3],MGA:[void 0,"Ar",0],MGF:[void 0,void 0,0],MMK:[void 0,"K",0],MNT:[void 0,"\u20AE",2],MRO:[void 0,void 0,0],MUR:[void 0,"Rs",2],MXN:["MX$","$"],MYR:[void 0,"RM"],NAD:[void 0,"$"],NGN:[void 0,"\u20A6"],NIO:[void 0,"C$"],NOK:[void 0,"kr",2],NPR:[void 0,"Rs"],NZD:["NZ$","$"],OMR:[void 0,void 0,3],PHP:["\u20B1"],PKR:[void 0,"Rs",2],PLN:[void 0,"z\u0142"],PYG:[void 0,"\u20B2",0],RON:[void 0,"lei"],RSD:[void 0,void 0,0],RUB:[void 0,"\u20BD"],RWF:[void 0,"RF",0],SBD:[void 0,"$"],SEK:[void 0,"kr",2],SGD:[void 0,"$"],SHP:[void 0,"\xA3"],SLE:[void 0,void 0,2],SLL:[void 0,void 0,0],SOS:[void 0,void 0,0],SRD:[void 0,"$"],SSP:[void 0,"\xA3"],STD:[void 0,void 0,0],STN:[void 0,"Db"],SYP:[void 0,"\xA3",0],THB:[void 0,"\u0E3F"],TMM:[void 0,void 0,0],TND:[void 0,void 0,3],TOP:[void 0,"T$"],TRL:[void 0,void 0,0],TRY:[void 0,"\u20BA"],TTD:[void 0,"$"],TWD:["NT$","$",2],TZS:[void 0,void 0,2],UAH:[void 0,"\u20B4"],UGX:[void 0,void 0,0],USD:["$"],UYI:[void 0,void 0,0],UYU:[void 0,"$"],UYW:[void 0,void 0,4],UZS:[void 0,void 0,2],VEF:[void 0,"Bs",2],VND:["\u20AB",void 0,0],VUV:[void 0,void 0,0],XAF:["FCFA",void 0,0],XCD:["EC$","$"],XOF:["F\u202FCFA",void 0,0],XPF:["CFPF",void 0,0],XXX:["\xA4"],YER:[void 0,void 0,0],ZAR:[void 0,"R"],ZMK:[void 0,void 0,0],ZMW:[void 0,"ZK"],ZWD:[void 0,void 0,0]},Wv=(function(t){return t[t.Decimal=0]="Decimal",t[t.Percent=1]="Percent",t[t.Currency=2]="Currency",t[t.Scientific=3]="Scientific",t})(Wv||{});var gr=(function(t){return t[t.Format=0]="Format",t[t.Standalone=1]="Standalone",t})(gr||{}),hi=(function(t){return t[t.Narrow=0]="Narrow",t[t.Abbreviated=1]="Abbreviated",t[t.Wide=2]="Wide",t[t.Short=3]="Short",t})(hi||{}),Gr=(function(t){return t[t.Short=0]="Short",t[t.Medium=1]="Medium",t[t.Long=2]="Long",t[t.Full=3]="Full",t})(Gr||{}),Yn={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 C2(t){return Ir(t)[zi.LocaleId]}function w2(t,n,e){let i=Ir(t),r=[i[zi.DayPeriodsFormat],i[zi.DayPeriodsStandalone]],o=Go(r,n);return Go(o,e)}function D2(t,n,e){let i=Ir(t),r=[i[zi.DaysFormat],i[zi.DaysStandalone]],o=Go(r,n);return Go(o,e)}function E2(t,n,e){let i=Ir(t),r=[i[zi.MonthsFormat],i[zi.MonthsStandalone]],o=Go(r,n);return Go(o,e)}function M2(t,n){let i=Ir(t)[zi.Eras];return Go(i,n)}function df(t,n){let e=Ir(t);return Go(e[zi.DateFormat],n)}function uf(t,n){let e=Ir(t);return Go(e[zi.TimeFormat],n)}function mf(t,n){let i=Ir(t)[zi.DateTimeFormat];return Go(i,n)}function ka(t,n){let e=Ir(t),i=e[zi.NumberSymbols][n];if(typeof i>"u"){if(n===Yn.CurrencyDecimal)return e[zi.NumberSymbols][Yn.Decimal];if(n===Yn.CurrencyGroup)return e[zi.NumberSymbols][Yn.Group]}return i}function c1(t,n){return Ir(t)[zi.NumberFormats][n]}function jq(t){return Ir(t)[zi.Currencies]}function k2(t){if(!t[zi.ExtraData])throw new ue(2303,!1)}function S2(t){let n=Ir(t);return k2(n),(n[zi.ExtraData][2]||[]).map(i=>typeof i=="string"?e1(i):[e1(i[0]),e1(i[1])])}function T2(t,n,e){let i=Ir(t);k2(i);let r=[i[zi.ExtraData][0],i[zi.ExtraData][1]],o=Go(r,n)||[];return Go(o,e)||[]}function Go(t,n){for(let e=n;e>-1;e--)if(typeof t[e]<"u")return t[e];throw new ue(2304,!1)}function e1(t){let[n,e]=t.split(":");return{hours:+n,minutes:+e}}function I2(t,n,e="en"){let i=jq(e)[t]||x2[t]||[],r=i[1];return n==="narrow"&&typeof r=="string"?r:i[0]||t}var Hq=2;function A2(t){let n,e=x2[t];return e&&(n=e[2]),typeof n=="number"?n:Hq}var zq=/^(\d{4,})-?(\d\d)-?(\d\d)(?:T(\d\d)(?::?(\d\d)(?::?(\d\d)(?:\.(\d+))?)?)?(Z|([+-])(\d\d):?(\d\d))?)?$/,Nv={},Uq=/((?:[^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]*)/;function O2(t,n,e,i){let r=Xq(t);n=tl(e,n)||n;let a=[],s;for(;n;)if(s=Uq.exec(n),s){a=a.concat(s.slice(1));let d=a.pop();if(!d)break;n=d}else{a.push(n);break}let l=r.getTimezoneOffset();i&&(l=P2(i,l),r=Zq(r,i));let c="";return a.forEach(d=>{let m=Qq(d);c+=m?m(r,e,l):d==="''"?"'":d.replace(/(^'|'$)/g,"").replace(/''/g,"'")}),c}function Hv(t,n,e){let i=new Date(0);return i.setFullYear(t,n,e),i.setHours(0,0,0),i}function tl(t,n){let e=C2(t);if(Nv[e]??={},Nv[e][n])return Nv[e][n];let i="";switch(n){case"shortDate":i=df(t,Gr.Short);break;case"mediumDate":i=df(t,Gr.Medium);break;case"longDate":i=df(t,Gr.Long);break;case"fullDate":i=df(t,Gr.Full);break;case"shortTime":i=uf(t,Gr.Short);break;case"mediumTime":i=uf(t,Gr.Medium);break;case"longTime":i=uf(t,Gr.Long);break;case"fullTime":i=uf(t,Gr.Full);break;case"short":let r=tl(t,"shortTime"),o=tl(t,"shortDate");i=Lv(mf(t,Gr.Short),[r,o]);break;case"medium":let a=tl(t,"mediumTime"),s=tl(t,"mediumDate");i=Lv(mf(t,Gr.Medium),[a,s]);break;case"long":let l=tl(t,"longTime"),c=tl(t,"longDate");i=Lv(mf(t,Gr.Long),[l,c]);break;case"full":let d=tl(t,"fullTime"),m=tl(t,"fullDate");i=Lv(mf(t,Gr.Full),[d,m]);break}return i&&(Nv[e][n]=i),i}function Lv(t,n){return n&&(t=t.replace(/\{([^}]+)}/g,function(e,i){return n!=null&&i in n?n[i]:e})),t}function Ma(t,n,e="-",i,r){let o="";(t<0||r&&t<=0)&&(r?t=-t+1:(t=-t,o=e));let a=String(t);for(;a.length0||s>-e)&&(s+=e),t===3)s===0&&e===-12&&(s=12);else if(t===6)return $q(s,n);let l=ka(a,Yn.MinusSign);return Ma(s,n,l,i,r)}}function Wq(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 ue(2301,!1)}}function Ci(t,n,e=gr.Format,i=!1){return function(r,o){return Gq(r,o,t,n,e,i)}}function Gq(t,n,e,i,r,o){switch(e){case 2:return E2(n,r,i)[t.getMonth()];case 1:return D2(n,r,i)[t.getDay()];case 0:let a=t.getHours(),s=t.getMinutes();if(o){let c=S2(n),d=T2(n,r,i),m=c.findIndex(f=>{if(Array.isArray(f)){let[b,v]=f,w=a>=b.hours&&s>=b.minutes,x=a0?Math.floor(r/60):Math.ceil(r/60);switch(t){case 0:return(r>=0?"+":"")+Ma(a,2,o)+Ma(Math.abs(r%60),2,o);case 1:return"GMT"+(r>=0?"+":"")+Ma(a,1,o);case 2:return"GMT"+(r>=0?"+":"")+Ma(a,2,o)+":"+Ma(Math.abs(r%60),2,o);case 3:return i===0?"Z":(r>=0?"+":"")+Ma(a,2,o)+":"+Ma(Math.abs(r%60),2,o);default:throw new ue(2310,!1)}}}var qq=0,jv=4;function Yq(t){let n=Hv(t,qq,1).getDay();return Hv(t,0,1+(n<=jv?jv:jv+7)-n)}function R2(t){let n=t.getDay(),e=n===0?-3:jv-n;return Hv(t.getFullYear(),t.getMonth(),t.getDate()+e)}function t1(t,n=!1){return function(e,i){let r;if(n){let o=new Date(e.getFullYear(),e.getMonth(),1).getDay()-1,a=e.getDate();r=1+Math.floor((a+o)/7)}else{let o=R2(e),a=Yq(o.getFullYear()),s=o.getTime()-a.getTime();r=1+Math.round(s/6048e5)}return Ma(r,t,ka(i,Yn.MinusSign))}}function Bv(t,n=!1){return function(e,i){let o=R2(e).getFullYear();return Ma(o,t,ka(i,Yn.MinusSign),n)}}var i1={};function Qq(t){if(i1[t])return i1[t];let n;switch(t){case"G":case"GG":case"GGG":n=Ci(3,hi.Abbreviated);break;case"GGGG":n=Ci(3,hi.Wide);break;case"GGGGG":n=Ci(3,hi.Narrow);break;case"y":n=dn(0,1,0,!1,!0);break;case"yy":n=dn(0,2,0,!0,!0);break;case"yyy":n=dn(0,3,0,!1,!0);break;case"yyyy":n=dn(0,4,0,!1,!0);break;case"Y":n=Bv(1);break;case"YY":n=Bv(2,!0);break;case"YYY":n=Bv(3);break;case"YYYY":n=Bv(4);break;case"M":case"L":n=dn(1,1,1);break;case"MM":case"LL":n=dn(1,2,1);break;case"MMM":n=Ci(2,hi.Abbreviated);break;case"MMMM":n=Ci(2,hi.Wide);break;case"MMMMM":n=Ci(2,hi.Narrow);break;case"LLL":n=Ci(2,hi.Abbreviated,gr.Standalone);break;case"LLLL":n=Ci(2,hi.Wide,gr.Standalone);break;case"LLLLL":n=Ci(2,hi.Narrow,gr.Standalone);break;case"w":n=t1(1);break;case"ww":n=t1(2);break;case"W":n=t1(1,!0);break;case"d":n=dn(2,1);break;case"dd":n=dn(2,2);break;case"c":case"cc":n=dn(7,1);break;case"ccc":n=Ci(1,hi.Abbreviated,gr.Standalone);break;case"cccc":n=Ci(1,hi.Wide,gr.Standalone);break;case"ccccc":n=Ci(1,hi.Narrow,gr.Standalone);break;case"cccccc":n=Ci(1,hi.Short,gr.Standalone);break;case"E":case"EE":case"EEE":n=Ci(1,hi.Abbreviated);break;case"EEEE":n=Ci(1,hi.Wide);break;case"EEEEE":n=Ci(1,hi.Narrow);break;case"EEEEEE":n=Ci(1,hi.Short);break;case"a":case"aa":case"aaa":n=Ci(0,hi.Abbreviated);break;case"aaaa":n=Ci(0,hi.Wide);break;case"aaaaa":n=Ci(0,hi.Narrow);break;case"b":case"bb":case"bbb":n=Ci(0,hi.Abbreviated,gr.Standalone,!0);break;case"bbbb":n=Ci(0,hi.Wide,gr.Standalone,!0);break;case"bbbbb":n=Ci(0,hi.Narrow,gr.Standalone,!0);break;case"B":case"BB":case"BBB":n=Ci(0,hi.Abbreviated,gr.Format,!0);break;case"BBBB":n=Ci(0,hi.Wide,gr.Format,!0);break;case"BBBBB":n=Ci(0,hi.Narrow,gr.Format,!0);break;case"h":n=dn(3,1,-12);break;case"hh":n=dn(3,2,-12);break;case"H":n=dn(3,1);break;case"HH":n=dn(3,2);break;case"m":n=dn(4,1);break;case"mm":n=dn(4,2);break;case"s":n=dn(5,1);break;case"ss":n=dn(5,2);break;case"S":n=dn(6,1);break;case"SS":n=dn(6,2);break;case"SSS":n=dn(6,3);break;case"Z":case"ZZ":case"ZZZ":n=Vv(0);break;case"ZZZZZ":n=Vv(3);break;case"O":case"OO":case"OOO":case"z":case"zz":case"zzz":n=Vv(1);break;case"OOOO":case"ZZZZ":case"zzzz":n=Vv(2);break;default:return null}return i1[t]=n,n}function P2(t,n){t=t.replace(/:/g,"");let e=Date.parse("Jan 01, 1970 00:00:00 "+t)/6e4;return isNaN(e)?n:e}function Kq(t,n){return t=new Date(t.getTime()),t.setMinutes(t.getMinutes()+n),t}function Zq(t,n,e){let r=t.getTimezoneOffset(),o=P2(n,r);return Kq(t,-1*(o-r))}function Xq(t){if(f2(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[r,o=1,a=1]=t.split("-").map(s=>+s);return Hv(r,o-1,a)}let e=parseFloat(t);if(!isNaN(t-e))return new Date(e);let i;if(i=t.match(zq))return Jq(i)}let n=new Date(t);if(!f2(n))throw new ue(2311,!1);return n}function Jq(t){let n=new Date(0),e=0,i=0,r=t[8]?n.setUTCFullYear:n.setFullYear,o=t[8]?n.setUTCHours:n.setHours;t[9]&&(e=Number(t[9]+t[10]),i=Number(t[9]+t[11])),r.call(n,Number(t[1]),Number(t[2])-1,Number(t[3]));let a=Number(t[4]||0)-e,s=Number(t[5]||0)-i,l=Number(t[6]||0),c=Math.floor(parseFloat("0."+(t[7]||0))*1e3);return o.call(n,a,s,l,c),n}function f2(t){return t instanceof Date&&!isNaN(t.valueOf())}var eY=/^(\d+)?\.((\d+)(-(\d+))?)?$/,g2=22,zv=".",hf="0",tY=";",iY=",",n1="#",_2="\xA4";function F2(t,n,e,i,r,o,a=!1){let s="",l=!1;if(!isFinite(t))s=ka(e,Yn.Infinity);else{let c=rY(t);a&&(c=nY(c));let d=n.minInt,m=n.minFrac,f=n.maxFrac;if(o){let P=o.match(eY);if(P===null)throw new ue(2306,!1);let W=P[1],Z=P[3],K=P[5];W!=null&&(d=r1(W)),Z!=null&&(m=r1(Z)),K!=null?f=r1(K):Z!=null&&m>f&&(f=m)}oY(c,m,f);let b=c.digits,v=c.integerLen,w=c.exponent,x=[];for(l=b.every(P=>!P);v0?x=b.splice(v,b.length):(x=b,b=[0]);let D=[];for(b.length>=n.lgSize&&D.unshift(b.splice(-n.lgSize,b.length).join(""));b.length>n.gSize;)D.unshift(b.splice(-n.gSize,b.length).join(""));b.length&&D.unshift(b.join("")),s=D.join(ka(e,i)),x.length&&(s+=ka(e,r)+x.join("")),w&&(s+=ka(e,Yn.Exponential)+"+"+w)}return t<0&&!l?s=n.negPre+s+n.negSuf:s=n.posPre+s+n.posSuf,s}function N2(t,n,e,i,r){let o=c1(n,Wv.Currency),a=V2(o,ka(n,Yn.MinusSign));return a.minFrac=A2(i),a.maxFrac=a.minFrac,F2(t,a,n,Yn.CurrencyGroup,Yn.CurrencyDecimal,r).replace(_2,e).replace(_2,"").trim()}function L2(t,n,e){let i=c1(n,Wv.Decimal),r=V2(i,ka(n,Yn.MinusSign));return F2(t,r,n,Yn.Group,Yn.Decimal,e)}function V2(t,n="-"){let e={minInt:1,minFrac:0,maxFrac:0,posPre:"",posSuf:"",negPre:"",negSuf:"",gSize:0,lgSize:0},i=t.split(tY),r=i[0],o=i[1],a=r.indexOf(zv)!==-1?r.split(zv):[r.substring(0,r.lastIndexOf(hf)+1),r.substring(r.lastIndexOf(hf)+1)],s=a[0],l=a[1]||"";e.posPre=s.substring(0,s.indexOf(n1));for(let d=0;d-1&&(n=n.replace(zv,"")),(o=n.search(/e/i))>0?(r<0&&(r=o),r+=+n.slice(o+1),n=n.substring(0,o)):r<0&&(r=n.length),o=0;n.charAt(o)===hf;o++);if(o===(s=n.length))i=[0],r=1;else{for(s--;n.charAt(s)===hf;)s--;for(r-=o,i=[],a=0;o<=s;o++,a++)i[a]=Number(n.charAt(o))}return r>g2&&(i=i.splice(0,g2-1),e=r-1,r=1),{digits:i,exponent:e,integerLen:r}}function oY(t,n,e){if(n>e)throw new ue(2307,!1);let i=t.digits,r=i.length-t.integerLen,o=Math.min(Math.max(n,r),e),a=o+t.integerLen,s=i[a];if(a>0){i.splice(Math.max(t.integerLen,a));for(let m=a;m=5)if(a-1<0){for(let m=0;m>a;m--)i.unshift(0),t.integerLen++;i.unshift(1),t.integerLen++}else i[a-1]++;for(;r=c?v.pop():l=!1),f>=10?1:0},0);d&&(i.unshift(d),t.integerLen++)}function r1(t){let n=parseInt(t);if(isNaN(n))throw new ue(2305,!1);return n}var o1=/\s+/,b2=[],Pd=(()=>{class t{_ngEl;_renderer;initialClasses=b2;rawClass;stateMap=new Map;constructor(e,i){this._ngEl=e,this._renderer=i}set klass(e){this.initialClasses=e!=null?e.trim().split(o1):b2}set ngClass(e){this.rawClass=typeof e=="string"?e.trim().split(o1):e}ngDoCheck(){for(let i of this.initialClasses)this._updateState(i,!0);let e=this.rawClass;if(Array.isArray(e)||e instanceof Set)for(let i of e)this._updateState(i,!0);else if(e!=null)for(let i of Object.keys(e))this._updateState(i,!!e[i]);this._applyStateDiff()}_updateState(e,i){let r=this.stateMap.get(e);r!==void 0?(r.enabled!==i&&(r.changed=!0,r.enabled=i),r.touched=!0):this.stateMap.set(e,{enabled:i,changed:!0,touched:!0})}_applyStateDiff(){for(let e of this.stateMap){let i=e[0],r=e[1];r.changed?(this._toggleClass(i,r.enabled),r.changed=!1):r.touched||(r.enabled&&this._toggleClass(i,!1),this.stateMap.delete(i)),r.touched=!1}}_toggleClass(e,i){e=e.trim(),e.length>0&&e.split(o1).forEach(r=>{i?this._renderer.addClass(this._ngEl.nativeElement,r):this._renderer.removeClass(this._ngEl.nativeElement,r)})}static \u0275fac=function(i){return new(i||t)(_e(q),_e(je))};static \u0275dir=F({type:t,selectors:[["","ngClass",""]],inputs:{klass:[0,"class","klass"],ngClass:"ngClass"}})}return t})();var Uv=class{$implicit;ngForOf;index;count;constructor(n,e,i,r){this.$implicit=n,this.ngForOf=e,this.index=i,this.count=r}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}},qr=(()=>{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,i,r){this._viewContainer=e,this._template=i,this._differs=r}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 i=this._viewContainer;e.forEachOperation((r,o,a)=>{if(r.previousIndex==null)i.createEmbeddedView(this._template,new Uv(r.item,this._ngForOf,-1,-1),a===null?void 0:a);else if(a==null)i.remove(o===null?void 0:o);else if(o!==null){let s=i.get(o);i.move(s,a),v2(s,r)}});for(let r=0,o=i.length;r{let o=i.get(r.currentIndex);v2(o,r)})}static ngTemplateContextGuard(e,i){return!0}static \u0275fac=function(i){return new(i||t)(_e(nt),_e(te),_e(ds))};static \u0275dir=F({type:t,selectors:[["","ngFor","","ngForOf",""]],inputs:{ngForOf:"ngForOf",ngForTrackBy:"ngForTrackBy",ngForTemplate:"ngForTemplate"}})}return t})();function v2(t,n){t.context.$implicit=n.item}var li=(()=>{class t{_viewContainer;_context=new $v;_thenTemplateRef=null;_elseTemplateRef=null;_thenViewRef=null;_elseViewRef=null;constructor(e,i){this._viewContainer=e,this._thenTemplateRef=i}set ngIf(e){this._context.$implicit=this._context.ngIf=e,this._updateView()}set ngIfThen(e){y2(e,!1),this._thenTemplateRef=e,this._thenViewRef=null,this._updateView()}set ngIfElse(e){y2(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,i){return!0}static \u0275fac=function(i){return new(i||t)(_e(nt),_e(te))};static \u0275dir=F({type:t,selectors:[["","ngIf",""]],inputs:{ngIf:"ngIf",ngIfThen:"ngIfThen",ngIfElse:"ngIfElse"}})}return t})(),$v=class{$implicit=null;ngIf=null};function y2(t,n){if(t&&!t.createEmbeddedView)throw new ue(2020,!1)}var Fn=(()=>{class t{_viewContainerRef;_viewRef=null;ngTemplateOutletContext=null;ngTemplateOutlet=null;ngTemplateOutletInjector=null;constructor(e){this._viewContainerRef=e}ngOnChanges(e){if(this._shouldRecreateView(e)){let i=this._viewContainerRef;if(this._viewRef&&i.remove(i.indexOf(this._viewRef)),!this.ngTemplateOutlet){this._viewRef=null;return}let r=this._createContextForwardProxy();this._viewRef=i.createEmbeddedView(this.ngTemplateOutlet,r,{injector:this.ngTemplateOutletInjector??void 0})}}_shouldRecreateView(e){return!!e.ngTemplateOutlet||!!e.ngTemplateOutletInjector}_createContextForwardProxy(){return new Proxy({},{set:(e,i,r)=>this.ngTemplateOutletContext?Reflect.set(this.ngTemplateOutletContext,i,r):!1,get:(e,i,r)=>{if(this.ngTemplateOutletContext)return Reflect.get(this.ngTemplateOutletContext,i,r)}})}static \u0275fac=function(i){return new(i||t)(_e(nt))};static \u0275dir=F({type:t,selectors:[["","ngTemplateOutlet",""]],inputs:{ngTemplateOutletContext:"ngTemplateOutletContext",ngTemplateOutlet:"ngTemplateOutlet",ngTemplateOutletInjector:"ngTemplateOutletInjector"},features:[Ae]})}return t})();function pf(t,n){return new ue(2100,!1)}var a1=class{createSubscription(n,e,i){return Ti(()=>n.subscribe({next:e,error:i}))}dispose(n){Ti(()=>n.unsubscribe())}},s1=class{createSubscription(n,e,i){return n.then(r=>e?.(r),r=>i?.(r)),{unsubscribe:()=>{e=null,i=null}}}dispose(n){n.unsubscribe()}},aY=new s1,sY=new a1,rn=(()=>{class t{_ref;_latestValue=null;markForCheckOnValueUpdate=!0;_subscription=null;_obj=null;_strategy=null;applicationErrorHandler=u(hr);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,i=>this._updateLatestValue(e,i),i=>this.applicationErrorHandler(i))}_selectStrategy(e){if(Xs(e))return aY;if(Ev(e))return sY;throw pf(t,e)}_dispose(){this._strategy.dispose(this._subscription),this._latestValue=null,this._subscription=null,this._obj=null}_updateLatestValue(e,i){e===this._obj&&(this._latestValue=i,this.markForCheckOnValueUpdate&&this._ref?.markForCheck())}static \u0275fac=function(i){return new(i||t)(_e(ye,16))};static \u0275pipe=Wr({name:"async",type:t,pure:!1})}return t})();var lY="mediumDate",B2=new T(""),j2=new T(""),Sa=(()=>{class t{locale;defaultTimezone;defaultOptions;constructor(e,i,r){this.locale=e,this.defaultTimezone=i,this.defaultOptions=r}transform(e,i,r,o){if(e==null||e===""||e!==e)return null;try{let a=i??this.defaultOptions?.dateFormat??lY,s=r??this.defaultOptions?.timezone??this.defaultTimezone??void 0;return O2(e,a,o||this.locale,s)}catch(a){throw pf(t,a.message)}}static \u0275fac=function(i){return new(i||t)(_e(el,16),_e(B2,24),_e(j2,24))};static \u0275pipe=Wr({name:"date",type:t,pure:!0})}return t})();var ff=(()=>{class t{_locale;constructor(e){this._locale=e}transform(e,i,r){if(!H2(e))return null;r||=this._locale;try{let o=z2(e);return L2(o,r,i)}catch(o){throw pf(t,o.message)}}static \u0275fac=function(i){return new(i||t)(_e(el,16))};static \u0275pipe=Wr({name:"number",type:t,pure:!0})}return t})();var il=(()=>{class t{_locale;_defaultCurrencyCode;constructor(e,i="USD"){this._locale=e,this._defaultCurrencyCode=i}transform(e,i=this._defaultCurrencyCode,r="symbol",o,a){if(!H2(e))return null;a||=this._locale,typeof r=="boolean"&&(r=r?"symbol":"code");let s=i||this._defaultCurrencyCode;r!=="code"&&(r==="symbol"||r==="symbol-narrow"?s=I2(s,r==="symbol"?"wide":"narrow",a):s=r);try{let l=z2(e);return N2(l,a,s,i,o)}catch(l){throw pf(t,l.message)}}static \u0275fac=function(i){return new(i||t)(_e(el,16),_e(HM,16))};static \u0275pipe=Wr({name:"currency",type:t,pure:!0})}return t})();function H2(t){return!(t==null||t===""||t!==t)}function z2(t){if(typeof t=="string"&&!isNaN(Number(t)-parseFloat(t)))return Number(t);if(typeof t!="number")throw new ue(2309,!1);return t}var d1=(()=>{class t{transform(e,i,r){if(e==null)return null;if(!(typeof e=="string"||Array.isArray(e)))throw pf(t,e);return e.slice(i,r)}static \u0275fac=function(i){return new(i||t)};static \u0275pipe=Wr({name:"slice",type:t,pure:!1})}return t})();var gt=(()=>{class t{static \u0275fac=function(i){return new(i||t)};static \u0275mod=ee({type:t});static \u0275inj=J({})}return t})();function gf(t,n){n=encodeURIComponent(n);for(let e of t.split(";")){let i=e.indexOf("="),[r,o]=i==-1?[e,""]:[e.slice(0,i),e.slice(i+1)];if(r.trim()===n)return decodeURIComponent(o)}return null}var Fd=class{};var m1="browser",cY="server";function U2(t){return t===m1}function $2(t){return t===cY}var h1=(()=>{class t{static \u0275prov=O({token:t,providedIn:"root",factory:()=>new u1(u(ge),window)})}return t})(),u1=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(De(M({},e),{left:n[0],top:n[1]}))}scrollToAnchor(n,e){let i=dY(this.document,n);i&&(this.scrollToElement(i,e),i.focus())}setHistoryScrollRestoration(n){try{this.window.history.scrollRestoration=n}catch{console.warn(Ro(2400,!1))}}scrollToElement(n,e){let i=n.getBoundingClientRect(),r=i.left+this.window.pageXOffset,o=i.top+this.window.pageYOffset,a=this.offset();this.window.scrollTo(De(M({},e),{left:r-a[0],top:o-a[1]}))}};function dY(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 i=t.createTreeWalker(t.body,NodeFilter.SHOW_ELEMENT),r=i.currentNode;for(;r;){let o=r.shadowRoot;if(o){let a=o.getElementById(n)||o.querySelector(`[name="${n}"]`);if(a)return a}r=i.nextNode()}}return null}var _f=class{_doc;constructor(n){this._doc=n}manager},Gv=(()=>{class t extends _f{constructor(e){super(e)}supports(e){return!0}addEventListener(e,i,r,o){return e.addEventListener(i,r,o),()=>this.removeEventListener(e,i,r,o)}removeEventListener(e,i,r,o){return e.removeEventListener(i,r,o)}static \u0275fac=function(i){return new(i||t)(pe(ge))};static \u0275prov=O({token:t,factory:t.\u0275fac})}return t})(),Yv=new T(""),b1=(()=>{class t{_zone;_plugins;_eventNameToPlugin=new Map;constructor(e,i){this._zone=i,e.forEach(a=>{a.manager=this});let r=e.filter(a=>!(a instanceof Gv));this._plugins=r.slice().reverse();let o=e.find(a=>a instanceof Gv);o&&this._plugins.push(o)}addEventListener(e,i,r,o){return this._findPluginFor(i).addEventListener(e,i,r,o)}getZone(){return this._zone}_findPluginFor(e){let i=this._eventNameToPlugin.get(e);if(i)return i;if(i=this._plugins.find(o=>o.supports(e)),!i)throw new ue(5101,!1);return this._eventNameToPlugin.set(e,i),i}static \u0275fac=function(i){return new(i||t)(pe(Yv),pe(ae))};static \u0275prov=O({token:t,factory:t.\u0275fac})}return t})(),p1="ng-app-id";function W2(t){for(let n of t)n.remove()}function G2(t,n){let e=n.createElement("style");return e.textContent=t,e}function uY(t,n,e,i){let r=t.head?.querySelectorAll(`style[${p1}="${n}"],link[${p1}="${n}"]`);if(r)for(let o of r)o.removeAttribute(p1),o instanceof HTMLLinkElement?i.set(o.href.slice(o.href.lastIndexOf("/")+1),{usage:0,elements:[o]}):o.textContent&&e.set(o.textContent,{usage:0,elements:[o]})}function g1(t,n){let e=n.createElement("link");return e.setAttribute("rel","stylesheet"),e.setAttribute("href",t),e}var v1=(()=>{class t{doc;appId;nonce;inline=new Map;external=new Map;hosts=new Set;constructor(e,i,r,o={}){this.doc=e,this.appId=i,this.nonce=r,uY(e,i,this.inline,this.external),this.hosts.add(e.head)}addStyles(e,i){for(let r of e)this.addUsage(r,this.inline,G2);i?.forEach(r=>this.addUsage(r,this.external,g1))}removeStyles(e,i){for(let r of e)this.removeUsage(r,this.inline);i?.forEach(r=>this.removeUsage(r,this.external))}addUsage(e,i,r){let o=i.get(e);o?o.usage++:i.set(e,{usage:1,elements:[...this.hosts].map(a=>this.addElement(a,r(e,this.doc)))})}removeUsage(e,i){let r=i.get(e);r&&(r.usage--,r.usage<=0&&(W2(r.elements),i.delete(e)))}ngOnDestroy(){for(let[,{elements:e}]of[...this.inline,...this.external])W2(e);this.hosts.clear()}addHost(e){this.hosts.add(e);for(let[i,{elements:r}]of this.inline)r.push(this.addElement(e,G2(i,this.doc)));for(let[i,{elements:r}]of this.external)r.push(this.addElement(e,g1(i,this.doc)))}removeHost(e){this.hosts.delete(e)}addElement(e,i){return this.nonce&&i.setAttribute("nonce",this.nonce),e.appendChild(i)}static \u0275fac=function(i){return new(i||t)(pe(ge),pe(ql),pe(gm,8),pe(Ks))};static \u0275prov=O({token:t,factory:t.\u0275fac})}return t})(),f1={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"},y1=/%COMP%/g;var Y2="%COMP%",mY=`_nghost-${Y2}`,hY=`_ngcontent-${Y2}`,pY=!0,fY=new T("",{providedIn:"root",factory:()=>pY});function gY(t){return hY.replace(y1,t)}function _Y(t){return mY.replace(y1,t)}function Q2(t,n){return n.map(e=>e.replace(y1,t))}var x1=(()=>{class t{eventManager;sharedStylesHost;appId;removeStylesOnCompDestroy;doc;ngZone;nonce;tracingService;rendererByCompId=new Map;defaultRenderer;platformIsServer;constructor(e,i,r,o,a,s,l=null,c=null){this.eventManager=e,this.sharedStylesHost=i,this.appId=r,this.removeStylesOnCompDestroy=o,this.doc=a,this.ngZone=s,this.nonce=l,this.tracingService=c,this.platformIsServer=!1,this.defaultRenderer=new bf(e,a,s,this.platformIsServer,this.tracingService)}createRenderer(e,i){if(!e||!i)return this.defaultRenderer;let r=this.getOrCreateRenderer(e,i);return r instanceof qv?r.applyToHost(e):r instanceof vf&&r.applyStyles(),r}getOrCreateRenderer(e,i){let r=this.rendererByCompId,o=r.get(i.id);if(!o){let a=this.doc,s=this.ngZone,l=this.eventManager,c=this.sharedStylesHost,d=this.removeStylesOnCompDestroy,m=this.platformIsServer,f=this.tracingService;switch(i.encapsulation){case Ys.Emulated:o=new qv(l,c,i,this.appId,d,a,s,m,f);break;case Ys.ShadowDom:return new _1(l,c,e,i,a,s,this.nonce,m,f);default:o=new vf(l,c,i,d,a,s,m,f);break}r.set(i.id,o)}return o}ngOnDestroy(){this.rendererByCompId.clear()}componentReplaced(e){this.rendererByCompId.delete(e)}static \u0275fac=function(i){return new(i||t)(pe(b1),pe(v1),pe(ql),pe(fY),pe(ge),pe(ae),pe(gm),pe(Yl,8))};static \u0275prov=O({token:t,factory:t.\u0275fac})}return t})(),bf=class{eventManager;doc;ngZone;platformIsServer;tracingService;data=Object.create(null);throwOnSyntheticProps=!0;constructor(n,e,i,r,o){this.eventManager=n,this.doc=e,this.ngZone=i,this.platformIsServer=r,this.tracingService=o}destroy(){}destroyNode=null;createElement(n,e){return e?this.doc.createElementNS(f1[e]||e,n):this.doc.createElement(n)}createComment(n){return this.doc.createComment(n)}createText(n){return this.doc.createTextNode(n)}appendChild(n,e){(q2(n)?n.content:n).appendChild(e)}insertBefore(n,e,i){n&&(q2(n)?n.content:n).insertBefore(e,i)}removeChild(n,e){e.remove()}selectRootElement(n,e){let i=typeof n=="string"?this.doc.querySelector(n):n;if(!i)throw new ue(-5104,!1);return e||(i.textContent=""),i}parentNode(n){return n.parentNode}nextSibling(n){return n.nextSibling}setAttribute(n,e,i,r){if(r){e=r+":"+e;let o=f1[r];o?n.setAttributeNS(o,e,i):n.setAttribute(e,i)}else n.setAttribute(e,i)}removeAttribute(n,e,i){if(i){let r=f1[i];r?n.removeAttributeNS(r,e):n.removeAttribute(`${i}:${e}`)}else n.removeAttribute(e)}addClass(n,e){n.classList.add(e)}removeClass(n,e){n.classList.remove(e)}setStyle(n,e,i,r){r&(os.DashCase|os.Important)?n.style.setProperty(e,i,r&os.Important?"important":""):n.style[e]=i}removeStyle(n,e,i){i&os.DashCase?n.style.removeProperty(e):n.style[e]=""}setProperty(n,e,i){n!=null&&(n[e]=i)}setValue(n,e){n.nodeValue=e}listen(n,e,i,r){if(typeof n=="string"&&(n=Wo().getGlobalEventTarget(this.doc,n),!n))throw new ue(5102,!1);let o=this.decoratePreventDefault(i);return this.tracingService?.wrapEventListener&&(o=this.tracingService.wrapEventListener(n,e,o)),this.eventManager.addEventListener(n,e,o,r)}decoratePreventDefault(n){return e=>{if(e==="__ngUnwrap__")return n;n(e)===!1&&e.preventDefault()}}};function q2(t){return t.tagName==="TEMPLATE"&&t.content!==void 0}var _1=class extends bf{sharedStylesHost;hostEl;shadowRoot;constructor(n,e,i,r,o,a,s,l,c){super(n,o,a,l,c),this.sharedStylesHost=e,this.hostEl=i,this.shadowRoot=i.attachShadow({mode:"open"}),this.sharedStylesHost.addHost(this.shadowRoot);let d=r.styles;d=Q2(r.id,d);for(let f of d){let b=document.createElement("style");s&&b.setAttribute("nonce",s),b.textContent=f,this.shadowRoot.appendChild(b)}let m=r.getExternalStyles?.();if(m)for(let f of m){let b=g1(f,o);s&&b.setAttribute("nonce",s),this.shadowRoot.appendChild(b)}}nodeOrShadowRoot(n){return n===this.hostEl?this.shadowRoot:n}appendChild(n,e){return super.appendChild(this.nodeOrShadowRoot(n),e)}insertBefore(n,e,i){return super.insertBefore(this.nodeOrShadowRoot(n),e,i)}removeChild(n,e){return super.removeChild(null,e)}parentNode(n){return this.nodeOrShadowRoot(super.parentNode(this.nodeOrShadowRoot(n)))}destroy(){this.sharedStylesHost.removeHost(this.shadowRoot)}},vf=class extends bf{sharedStylesHost;removeStylesOnCompDestroy;styles;styleUrls;constructor(n,e,i,r,o,a,s,l,c){super(n,o,a,s,l),this.sharedStylesHost=e,this.removeStylesOnCompDestroy=r;let d=i.styles;this.styles=c?Q2(c,d):d,this.styleUrls=i.getExternalStyles?.(c)}applyStyles(){this.sharedStylesHost.addStyles(this.styles,this.styleUrls)}destroy(){this.removeStylesOnCompDestroy&&kd.size===0&&this.sharedStylesHost.removeStyles(this.styles,this.styleUrls)}},qv=class extends vf{contentAttr;hostAttr;constructor(n,e,i,r,o,a,s,l,c){let d=r+"-"+i.id;super(n,e,i,o,a,s,l,c,d),this.contentAttr=gY(d),this.hostAttr=_Y(d)}applyToHost(n){this.applyStyles(),this.setAttribute(n,this.hostAttr,"")}createElement(n,e){let i=super.createElement(n,e);return super.setAttribute(i,this.contentAttr,""),i}};var Qv=class t extends lf{supportsDOMEvents=!0;static makeCurrent(){XM(new t)}onAndCancel(n,e,i,r){return n.addEventListener(e,i,r),()=>{n.removeEventListener(e,i,r)}}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=bY();return e==null?null:vY(e)}resetBaseElement(){yf=null}getUserAgent(){return window.navigator.userAgent}getCookie(n){return gf(document.cookie,n)}},yf=null;function bY(){return yf=yf||document.head.querySelector("base"),yf?yf.getAttribute("href"):null}function vY(t){return new URL(t,document.baseURI).pathname}var yY=(()=>{class t{build(){return new XMLHttpRequest}static \u0275fac=function(i){return new(i||t)};static \u0275prov=O({token:t,factory:t.\u0275fac})}return t})(),K2=["alt","control","meta","shift"],xY={"\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"},CY={alt:t=>t.altKey,control:t=>t.ctrlKey,meta:t=>t.metaKey,shift:t=>t.shiftKey},Z2=(()=>{class t extends _f{constructor(e){super(e)}supports(e){return t.parseEventName(e)!=null}addEventListener(e,i,r,o){let a=t.parseEventName(i),s=t.eventCallback(a.fullKey,r,this.manager.getZone());return this.manager.getZone().runOutsideAngular(()=>Wo().onAndCancel(e,a.domEventName,s,o))}static parseEventName(e){let i=e.toLowerCase().split("."),r=i.shift();if(i.length===0||!(r==="keydown"||r==="keyup"))return null;let o=t._normalizeKey(i.pop()),a="",s=i.indexOf("code");if(s>-1&&(i.splice(s,1),a="code."),K2.forEach(c=>{let d=i.indexOf(c);d>-1&&(i.splice(d,1),a+=c+".")}),a+=o,i.length!=0||o.length===0)return null;let l={};return l.domEventName=r,l.fullKey=a,l}static matchEventFullKeyCode(e,i){let r=xY[e.key]||e.key,o="";return i.indexOf("code.")>-1&&(r=e.code,o="code."),r==null||!r?!1:(r=r.toLowerCase(),r===" "?r="space":r==="."&&(r="dot"),K2.forEach(a=>{if(a!==r){let s=CY[a];s(e)&&(o+=a+".")}}),o+=r,o===i)}static eventCallback(e,i,r){return o=>{t.matchEventFullKeyCode(o,e)&&r.runGuarded(()=>i(o))}}static _normalizeKey(e){return e==="esc"?"escape":e}static \u0275fac=function(i){return new(i||t)(pe(ge))};static \u0275prov=O({token:t,factory:t.\u0275fac})}return t})();function C1(t,n,e){let i=M({rootComponent:t,platformRef:e?.platformRef},wY(n));return s2(i)}function wY(t){return{appProviders:[...SY,...t?.providers??[]],platformProviders:kY}}function DY(){Qv.makeCurrent()}function EY(){return new Tn}function MY(){return JE(document),document}var kY=[{provide:Ks,useValue:m1},{provide:sv,useValue:DY,multi:!0},{provide:ge,useFactory:MY}];var SY=[{provide:kp,useValue:"root"},{provide:Tn,useFactory:EY},{provide:Yv,useClass:Gv,multi:!0,deps:[ge]},{provide:Yv,useClass:Z2,multi:!0,deps:[ge]},x1,v1,b1,{provide:cn,useExisting:x1},{provide:Fd,useClass:yY},[]];var Tm=class{},Zl=class{},_r=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 i=e.indexOf(":");if(i>0){let r=e.slice(0,i),o=e.slice(i+1).trim();this.addHeaderEntry(r,o)}})}:typeof Headers<"u"&&n instanceof Headers?(this.headers=new Map,n.forEach((e,i)=>{this.addHeaderEntry(i,e)})):this.lazyInit=()=>{this.headers=new Map,Object.entries(n).forEach(([e,i])=>{this.setHeaderEntries(e,i)})}: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(),Array.from(n.headers.keys()).forEach(e=>{this.headers.set(e,n.headers.get(e)),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 i=n.value;if(typeof i=="string"&&(i=[i]),i.length===0)return;this.maybeSetNormalizedName(n.name,e);let r=(n.op==="a"?this.headers.get(e):void 0)||[];r.push(...i),this.headers.set(e,r);break;case"d":let o=n.value;if(!o)this.headers.delete(e),this.normalizedNames.delete(e);else{let a=this.headers.get(e);if(!a)return;a=a.filter(s=>o.indexOf(s)===-1),a.length===0?(this.headers.delete(e),this.normalizedNames.delete(e)):this.headers.set(e,a)}break}}addHeaderEntry(n,e){let i=n.toLowerCase();this.maybeSetNormalizedName(n,i),this.headers.has(i)?this.headers.get(i).push(e):this.headers.set(i,[e])}setHeaderEntries(n,e){let i=(Array.isArray(e)?e:[e]).map(o=>o.toString()),r=n.toLowerCase();this.headers.set(r,i),this.maybeSetNormalizedName(n,r)}forEach(n){this.init(),Array.from(this.normalizedNames.keys()).forEach(e=>n(this.normalizedNames.get(e),this.headers.get(e)))}};var Zv=class{encodeKey(n){return X2(n)}encodeValue(n){return X2(n)}decodeKey(n){return decodeURIComponent(n)}decodeValue(n){return decodeURIComponent(n)}};function TY(t,n){let e=new Map;return t.length>0&&t.replace(/^\?/,"").split("&").forEach(r=>{let o=r.indexOf("="),[a,s]=o==-1?[n.decodeKey(r),""]:[n.decodeKey(r.slice(0,o)),n.decodeValue(r.slice(o+1))],l=e.get(a)||[];l.push(s),e.set(a,l)}),e}var IY=/%(\d[a-f0-9])/gi,AY={40:"@","3A":":",24:"$","2C":",","3B":";","3D":"=","3F":"?","2F":"/"};function X2(t){return encodeURIComponent(t).replace(IY,(n,e)=>AY[e]??n)}function Kv(t){return`${t}`}var Qn=class t{map;encoder;updates=null;cloneFrom=null;constructor(n={}){if(this.encoder=n.encoder||new Zv,n.fromString){if(n.fromObject)throw new ue(2805,!1);this.map=TY(n.fromString,this.encoder)}else n.fromObject?(this.map=new Map,Object.keys(n.fromObject).forEach(e=>{let i=n.fromObject[e],r=Array.isArray(i)?i.map(Kv):[Kv(i)];this.map.set(e,r)})):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(i=>{let r=n[i];Array.isArray(r)?r.forEach(o=>{e.push({param:i,value:o,op:"a"})}):e.push({param:i,value:r,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(i=>e+"="+this.encoder.encodeValue(i)).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(){this.map===null&&(this.map=new Map),this.cloneFrom!==null&&(this.cloneFrom.init(),this.cloneFrom.keys().forEach(n=>this.map.set(n,this.cloneFrom.map.get(n))),this.updates.forEach(n=>{switch(n.op){case"a":case"s":let e=(n.op==="a"?this.map.get(n.param):void 0)||[];e.push(Kv(n.value)),this.map.set(n.param,e);break;case"d":if(n.value!==void 0){let i=this.map.get(n.param)||[],r=i.indexOf(Kv(n.value));r!==-1&&i.splice(r,1),i.length>0?this.map.set(n.param,i):this.map.delete(n.param)}else{this.map.delete(n.param);break}}}),this.cloneFrom=this.updates=null)}};var Xv=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()}};function OY(t){switch(t){case"DELETE":case"GET":case"HEAD":case"OPTIONS":case"JSONP":return!1;default:return!0}}function J2(t){return typeof ArrayBuffer<"u"&&t instanceof ArrayBuffer}function eN(t){return typeof Blob<"u"&&t instanceof Blob}function tN(t){return typeof FormData<"u"&&t instanceof FormData}function RY(t){return typeof URLSearchParams<"u"&&t instanceof URLSearchParams}var iN="Content-Type",nN="Accept",rN="X-Request-URL",oN="text/plain",aN="application/json",PY=`${aN}, ${oN}, */*`,km=class t{url;body=null;headers;context;reportProgress=!1;withCredentials=!1;credentials;keepalive=!1;cache;priority;mode;redirect;referrer;integrity;responseType="json";method;params;urlWithParams;transferCache;timeout;constructor(n,e,i,r){this.url=e,this.method=n.toUpperCase();let o;if(OY(this.method)||r?(this.body=i!==void 0?i:null,o=r):o=i,o){if(this.reportProgress=!!o.reportProgress,this.withCredentials=!!o.withCredentials,this.keepalive=!!o.keepalive,o.responseType&&(this.responseType=o.responseType),o.headers&&(this.headers=o.headers),o.context&&(this.context=o.context),o.params&&(this.params=o.params),o.priority&&(this.priority=o.priority),o.cache&&(this.cache=o.cache),o.credentials&&(this.credentials=o.credentials),typeof o.timeout=="number"){if(o.timeout<1||!Number.isInteger(o.timeout))throw new ue(2822,"");this.timeout=o.timeout}o.mode&&(this.mode=o.mode),o.redirect&&(this.redirect=o.redirect),o.integrity&&(this.integrity=o.integrity),o.referrer&&(this.referrer=o.referrer),this.transferCache=o.transferCache}if(this.headers??=new _r,this.context??=new Xv,!this.params)this.params=new Qn,this.urlWithParams=e;else{let a=this.params.toString();if(a.length===0)this.urlWithParams=e;else{let s=e.indexOf("?"),l=s===-1?"?":sK.set(re,n.setHeaders[re]),P)),n.setParams&&(W=Object.keys(n.setParams).reduce((K,re)=>K.set(re,n.setParams[re]),W)),new t(e,i,w,{params:W,headers:P,context:Z,reportProgress:D,responseType:r,withCredentials:x,transferCache:b,keepalive:o,cache:s,priority:a,timeout:v,mode:l,redirect:c,credentials:d,referrer:m,integrity:f})}},Nd=(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})(Nd||{}),Im=class{headers;status;statusText;url;ok;type;redirected;constructor(n,e=200,i="OK"){this.headers=n.headers||new _r,this.status=n.status!==void 0?n.status:e,this.statusText=n.statusText||i,this.url=n.url||null,this.redirected=n.redirected,this.ok=this.status>=200&&this.status<300}},Jv=class t extends Im{constructor(n={}){super(n)}type=Nd.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})}},nl=class t extends Im{body;constructor(n={}){super(n),this.body=n.body!==void 0?n.body:null}type=Nd.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})}},Sm=class extends Im{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}},FY=200,NY=204;function w1(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}}var Yr=(()=>{class t{handler;constructor(e){this.handler=e}request(e,i,r={}){let o;if(e instanceof km)o=e;else{let l;r.headers instanceof _r?l=r.headers:l=new _r(r.headers);let c;r.params&&(r.params instanceof Qn?c=r.params:c=new Qn({fromObject:r.params})),o=new km(e,i,r.body!==void 0?r.body:null,{headers:l,context:r.context,params:c,reportProgress:r.reportProgress,responseType:r.responseType||"json",withCredentials:r.withCredentials,transferCache:r.transferCache,keepalive:r.keepalive,priority:r.priority,cache:r.cache,mode:r.mode,redirect:r.redirect,credentials:r.credentials,referrer:r.referrer,integrity:r.integrity,timeout:r.timeout})}let a=Q(o).pipe(Ao(l=>this.handler.handle(l)));if(e instanceof km||r.observe==="events")return a;let s=a.pipe(ce(l=>l instanceof nl));switch(r.observe||"body"){case"body":switch(o.responseType){case"arraybuffer":return s.pipe(se(l=>{if(l.body!==null&&!(l.body instanceof ArrayBuffer))throw new ue(2806,!1);return l.body}));case"blob":return s.pipe(se(l=>{if(l.body!==null&&!(l.body instanceof Blob))throw new ue(2807,!1);return l.body}));case"text":return s.pipe(se(l=>{if(l.body!==null&&typeof l.body!="string")throw new ue(2808,!1);return l.body}));case"json":default:return s.pipe(se(l=>l.body))}case"response":return s;default:throw new ue(2809,!1)}}delete(e,i={}){return this.request("DELETE",e,i)}get(e,i={}){return this.request("GET",e,i)}head(e,i={}){return this.request("HEAD",e,i)}jsonp(e,i){return this.request("JSONP",e,{params:new Qn().append(i,"JSONP_CALLBACK"),observe:"body",responseType:"json"})}options(e,i={}){return this.request("OPTIONS",e,i)}patch(e,i,r={}){return this.request("PATCH",e,w1(r,i))}post(e,i,r={}){return this.request("POST",e,w1(r,i))}put(e,i,r={}){return this.request("PUT",e,w1(r,i))}static \u0275fac=function(i){return new(i||t)(pe(Tm))};static \u0275prov=O({token:t,factory:t.\u0275fac})}return t})();var LY=new T("");function VY(t,n){return n(t)}function BY(t,n,e){return(i,r)=>In(e,()=>n(i,o=>t(o,r)))}var E1=new T(""),M1=new T(""),sN=new T(""),lN=new T("",{providedIn:"root",factory:()=>!0});var e0=(()=>{class t extends Tm{backend;injector;chain=null;pendingTasks=u(om);contributeToStability=u(lN);constructor(e,i){super(),this.backend=e,this.injector=i}handle(e){if(this.chain===null){let i=Array.from(new Set([...this.injector.get(M1),...this.injector.get(sN,[])]));this.chain=i.reduceRight((r,o)=>BY(r,o,this.injector),VY)}if(this.contributeToStability){let i=this.pendingTasks.add();return this.chain(e,r=>this.backend.handle(r)).pipe(Hr(i))}else return this.chain(e,i=>this.backend.handle(i))}static \u0275fac=function(i){return new(i||t)(pe(Zl),pe(Wt))};static \u0275prov=O({token:t,factory:t.\u0275fac})}return t})();var jY=/^\)\]\}',?\n/,HY=RegExp(`^${rN}:`,"m");function zY(t){return"responseURL"in t&&t.responseURL?t.responseURL:HY.test(t.getAllResponseHeaders())?t.getResponseHeader(rN):null}var D1=(()=>{class t{xhrFactory;constructor(e){this.xhrFactory=e}handle(e){if(e.method==="JSONP")throw new ue(-2800,!1);let i=this.xhrFactory;return Q(null).pipe($e(()=>new Fe(o=>{let a=i.build();if(a.open(e.method,e.urlWithParams),e.withCredentials&&(a.withCredentials=!0),e.headers.forEach((x,D)=>a.setRequestHeader(x,D.join(","))),e.headers.has(nN)||a.setRequestHeader(nN,PY),!e.headers.has(iN)){let x=e.detectContentTypeHeader();x!==null&&a.setRequestHeader(iN,x)}if(e.timeout&&(a.timeout=e.timeout),e.responseType){let x=e.responseType.toLowerCase();a.responseType=x!=="json"?x:"text"}let s=e.serializeBody(),l=null,c=()=>{if(l!==null)return l;let x=a.statusText||"OK",D=new _r(a.getAllResponseHeaders()),P=zY(a)||e.url;return l=new Jv({headers:D,status:a.status,statusText:x,url:P}),l},d=()=>{let{headers:x,status:D,statusText:P,url:W}=c(),Z=null;D!==NY&&(Z=typeof a.response>"u"?a.responseText:a.response),D===0&&(D=Z?FY:0);let K=D>=200&&D<300;if(e.responseType==="json"&&typeof Z=="string"){let re=Z;Z=Z.replace(jY,"");try{Z=Z!==""?JSON.parse(Z):null}catch(Ee){Z=re,K&&(K=!1,Z={error:Ee,text:Z})}}K?(o.next(new nl({body:Z,headers:x,status:D,statusText:P,url:W||void 0})),o.complete()):o.error(new Sm({error:Z,headers:x,status:D,statusText:P,url:W||void 0}))},m=x=>{let{url:D}=c(),P=new Sm({error:x,status:a.status||0,statusText:a.statusText||"Unknown Error",url:D||void 0});o.error(P)},f=m;e.timeout&&(f=x=>{let{url:D}=c(),P=new Sm({error:new DOMException("Request timed out","TimeoutError"),status:a.status||0,statusText:a.statusText||"Request timeout",url:D||void 0});o.error(P)});let b=!1,v=x=>{b||(o.next(c()),b=!0);let D={type:Nd.DownloadProgress,loaded:x.loaded};x.lengthComputable&&(D.total=x.total),e.responseType==="text"&&a.responseText&&(D.partialText=a.responseText),o.next(D)},w=x=>{let D={type:Nd.UploadProgress,loaded:x.loaded};x.lengthComputable&&(D.total=x.total),o.next(D)};return a.addEventListener("load",d),a.addEventListener("error",m),a.addEventListener("timeout",f),a.addEventListener("abort",m),e.reportProgress&&(a.addEventListener("progress",v),s!==null&&a.upload&&a.upload.addEventListener("progress",w)),a.send(s),o.next({type:Nd.Sent}),()=>{a.removeEventListener("error",m),a.removeEventListener("abort",m),a.removeEventListener("load",d),a.removeEventListener("timeout",f),e.reportProgress&&(a.removeEventListener("progress",v),s!==null&&a.upload&&a.upload.removeEventListener("progress",w)),a.readyState!==a.DONE&&a.abort()}})))}static \u0275fac=function(i){return new(i||t)(pe(Fd))};static \u0275prov=O({token:t,factory:t.\u0275fac})}return t})(),cN=new T(""),UY="XSRF-TOKEN",$Y=new T("",{providedIn:"root",factory:()=>UY}),WY="X-XSRF-TOKEN",GY=new T("",{providedIn:"root",factory:()=>WY}),xf=class{},qY=(()=>{class t{doc;cookieName;lastCookieString="";lastToken=null;parseCount=0;constructor(e,i){this.doc=e,this.cookieName=i}getToken(){let e=this.doc.cookie||"";return e!==this.lastCookieString&&(this.parseCount++,this.lastToken=gf(e,this.cookieName),this.lastCookieString=e),this.lastToken}static \u0275fac=function(i){return new(i||t)(pe(ge),pe($Y))};static \u0275prov=O({token:t,factory:t.\u0275fac})}return t})(),YY=/^(?:https?:)?\/\//i;function QY(t,n){if(!u(cN)||t.method==="GET"||t.method==="HEAD"||YY.test(t.url))return n(t);let e=u(xf).getToken(),i=u(GY);return e!=null&&!t.headers.has(i)&&(t=t.clone({headers:t.headers.set(i,e)})),n(t)}var k1=(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})(k1||{});function KY(t,n){return{\u0275kind:t,\u0275providers:n}}function S1(...t){let n=[Yr,D1,e0,{provide:Tm,useExisting:e0},{provide:Zl,useFactory:()=>u(LY,{optional:!0})??u(D1)},{provide:M1,useValue:QY,multi:!0},{provide:cN,useValue:!0},{provide:xf,useClass:qY}];for(let e of t)n.push(...e.\u0275providers);return zr(n)}function T1(t){return KY(k1.Interceptors,t.map(n=>({provide:M1,useValue:n,multi:!0})))}var uN=(()=>{class t{_doc;constructor(e){this._doc=e}getTitle(){return this._doc.title}setTitle(e){this._doc.title=e||""}static \u0275fac=function(i){return new(i||t)(pe(ge))};static \u0275prov=O({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();var Cf=(()=>{class t{static \u0275fac=function(i){return new(i||t)};static \u0275prov=O({token:t,factory:function(i){let r=null;return i?r=new(i||t):r=pe(ZY),r},providedIn:"root"})}return t})(),ZY=(()=>{class t extends Cf{_doc;constructor(e){super(),this._doc=e}sanitize(e,i){if(i==null)return null;switch(e){case An.NONE:return i;case An.HTML:return ls(i,"HTML")?Ur(i):uv(this._doc,String(i)).toString();case An.STYLE:return ls(i,"Style")?Ur(i):i;case An.SCRIPT:if(ls(i,"Script"))return Ur(i);throw new ue(5200,!1);case An.URL:return ls(i,"URL")?Ur(i):Qp(String(i));case An.RESOURCE_URL:if(ls(i,"ResourceURL"))return Ur(i);throw new ue(5201,!1);default:throw new ue(5202,!1)}}bypassSecurityTrustHtml(e){return iM(e)}bypassSecurityTrustStyle(e){return nM(e)}bypassSecurityTrustScript(e){return rM(e)}bypassSecurityTrustUrl(e){return oM(e)}bypassSecurityTrustResourceUrl(e){return aM(e)}static \u0275fac=function(i){return new(i||t)(pe(ge))};static \u0275prov=O({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();var dt="primary",Ff=Symbol("RouteTitle"),F1=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 Bd(t){return new F1(t)}function vN(t,n,e){let i=e.path.split("/");if(i.length>t.length||e.pathMatch==="full"&&(n.hasChildren()||i.lengthi[o]===r)}else return t===n}function xN(t){return t.length>0?t[t.length-1]:null}function rl(t){return ji(t)?t:Xs(t)?Ot(Promise.resolve(t)):Q(t)}var JY={exact:wN,subset:DN},CN={exact:eQ,subset:tQ,ignored:()=>!0};function mN(t,n,e){return JY[e.paths](t.root,n.root,e.matrixParams)&&CN[e.queryParams](t.queryParams,n.queryParams)&&!(e.fragment==="exact"&&t.fragment!==n.fragment)}function eQ(t,n){return ms(t,n)}function wN(t,n,e){if(!Ld(t.segments,n.segments)||!n0(t.segments,n.segments,e)||t.numberOfChildren!==n.numberOfChildren)return!1;for(let i in n.children)if(!t.children[i]||!wN(t.children[i],n.children[i],e))return!1;return!0}function tQ(t,n){return Object.keys(n).length<=Object.keys(t).length&&Object.keys(n).every(e=>yN(t[e],n[e]))}function DN(t,n,e){return EN(t,n,n.segments,e)}function EN(t,n,e,i){if(t.segments.length>e.length){let r=t.segments.slice(0,e.length);return!(!Ld(r,e)||n.hasChildren()||!n0(r,e,i))}else if(t.segments.length===e.length){if(!Ld(t.segments,e)||!n0(t.segments,e,i))return!1;for(let r in n.children)if(!t.children[r]||!DN(t.children[r],n.children[r],i))return!1;return!0}else{let r=e.slice(0,t.segments.length),o=e.slice(t.segments.length);return!Ld(t.segments,r)||!n0(t.segments,r,i)||!t.children[dt]?!1:EN(t.children[dt],n,o,i)}}function n0(t,n,e){return n.every((i,r)=>CN[e](t[r].parameters,i.parameters))}var hs=class{root;queryParams;fragment;_queryParamMap;constructor(n=new qt([],{}),e={},i=null){this.root=n,this.queryParams=e,this.fragment=i}get queryParamMap(){return this._queryParamMap??=Bd(this.queryParams),this._queryParamMap}toString(){return rQ.serialize(this)}},qt=class{segments;children;parent=null;constructor(n,e){this.segments=n,this.children=e,Object.values(e).forEach(i=>i.parent=this)}hasChildren(){return this.numberOfChildren>0}get numberOfChildren(){return Object.keys(this.children).length}toString(){return r0(this)}},Xl=class{path;parameters;_parameterMap;constructor(n,e){this.path=n,this.parameters=e}get parameterMap(){return this._parameterMap??=Bd(this.parameters),this._parameterMap}toString(){return kN(this)}};function iQ(t,n){return Ld(t,n)&&t.every((e,i)=>ms(e.parameters,n[i].parameters))}function Ld(t,n){return t.length!==n.length?!1:t.every((e,i)=>e.path===n[i].path)}function nQ(t,n){let e=[];return Object.entries(t.children).forEach(([i,r])=>{i===dt&&(e=e.concat(n(r,i)))}),Object.entries(t.children).forEach(([i,r])=>{i!==dt&&(e=e.concat(n(r,i)))}),e}var ic=(()=>{class t{static \u0275fac=function(i){return new(i||t)};static \u0275prov=O({token:t,factory:()=>new Jl,providedIn:"root"})}return t})(),Jl=class{parse(n){let e=new V1(n);return new hs(e.parseRootSegment(),e.parseQueryParams(),e.parseFragment())}serialize(n){let e=`/${wf(n.root,!0)}`,i=sQ(n.queryParams),r=typeof n.fragment=="string"?`#${oQ(n.fragment)}`:"";return`${e}${i}${r}`}},rQ=new Jl;function r0(t){return t.segments.map(n=>kN(n)).join("/")}function wf(t,n){if(!t.hasChildren())return r0(t);if(n){let e=t.children[dt]?wf(t.children[dt],!1):"",i=[];return Object.entries(t.children).forEach(([r,o])=>{r!==dt&&i.push(`${r}:${wf(o,!1)}`)}),i.length>0?`${e}(${i.join("//")})`:e}else{let e=nQ(t,(i,r)=>r===dt?[wf(t.children[dt],!1)]:[`${r}:${wf(i,!1)}`]);return Object.keys(t.children).length===1&&t.children[dt]!=null?`${r0(t)}/${e[0]}`:`${r0(t)}/(${e.join("//")})`}}function MN(t){return encodeURIComponent(t).replace(/%40/g,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",")}function t0(t){return MN(t).replace(/%3B/gi,";")}function oQ(t){return encodeURI(t)}function L1(t){return MN(t).replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/%26/gi,"&")}function o0(t){return decodeURIComponent(t)}function hN(t){return o0(t.replace(/\+/g,"%20"))}function kN(t){return`${L1(t.path)}${aQ(t.parameters)}`}function aQ(t){return Object.entries(t).map(([n,e])=>`;${L1(n)}=${L1(e)}`).join("")}function sQ(t){let n=Object.entries(t).map(([e,i])=>Array.isArray(i)?i.map(r=>`${t0(e)}=${t0(r)}`).join("&"):`${t0(e)}=${t0(i)}`).filter(e=>e);return n.length?`?${n.join("&")}`:""}var lQ=/^[^\/()?;#]+/;function A1(t){let n=t.match(lQ);return n?n[0]:""}var cQ=/^[^\/()?;=#]+/;function dQ(t){let n=t.match(cQ);return n?n[0]:""}var uQ=/^[^=?&#]+/;function mQ(t){let n=t.match(uQ);return n?n[0]:""}var hQ=/^[^&#]+/;function pQ(t){let n=t.match(hQ);return n?n[0]:""}var V1=class{url;remaining;constructor(n){this.url=n,this.remaining=n}parseRootSegment(){return this.consumeOptional("/"),this.remaining===""||this.peekStartsWith("?")||this.peekStartsWith("#")?new qt([],{}):new qt([],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(){if(this.remaining==="")return{};this.consumeOptional("/");let n=[];for(this.peekStartsWith("(")||n.push(this.parseSegment());this.peekStartsWith("/")&&!this.peekStartsWith("//")&&!this.peekStartsWith("/(");)this.capture("/"),n.push(this.parseSegment());let e={};this.peekStartsWith("/(")&&(this.capture("/"),e=this.parseParens(!0));let i={};return this.peekStartsWith("(")&&(i=this.parseParens(!1)),(n.length>0||Object.keys(e).length>0)&&(i[dt]=new qt(n,e)),i}parseSegment(){let n=A1(this.remaining);if(n===""&&this.peekStartsWith(";"))throw new ue(4009,!1);return this.capture(n),new Xl(o0(n),this.parseMatrixParams())}parseMatrixParams(){let n={};for(;this.consumeOptional(";");)this.parseParam(n);return n}parseParam(n){let e=dQ(this.remaining);if(!e)return;this.capture(e);let i="";if(this.consumeOptional("=")){let r=A1(this.remaining);r&&(i=r,this.capture(i))}n[o0(e)]=o0(i)}parseQueryParam(n){let e=mQ(this.remaining);if(!e)return;this.capture(e);let i="";if(this.consumeOptional("=")){let a=pQ(this.remaining);a&&(i=a,this.capture(i))}let r=hN(e),o=hN(i);if(n.hasOwnProperty(r)){let a=n[r];Array.isArray(a)||(a=[a],n[r]=a),a.push(o)}else n[r]=o}parseParens(n){let e={};for(this.capture("(");!this.consumeOptional(")")&&this.remaining.length>0;){let i=A1(this.remaining),r=this.remaining[i.length];if(r!=="/"&&r!==")"&&r!==";")throw new ue(4010,!1);let o;i.indexOf(":")>-1?(o=i.slice(0,i.indexOf(":")),this.capture(o),this.capture(":")):n&&(o=dt);let a=this.parseChildren();e[o??dt]=Object.keys(a).length===1&&a[dt]?a[dt]:new qt([],a),this.consumeOptional("//")}return e}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 ue(4011,!1)}};function SN(t){return t.segments.length>0?new qt([],{[dt]:t}):t}function TN(t){let n={};for(let[i,r]of Object.entries(t.children)){let o=TN(r);if(i===dt&&o.segments.length===0&&o.hasChildren())for(let[a,s]of Object.entries(o.children))n[a]=s;else(o.segments.length>0||o.hasChildren())&&(n[i]=o)}let e=new qt(t.segments,n);return fQ(e)}function fQ(t){if(t.numberOfChildren===1&&t.children[dt]){let n=t.children[dt];return new qt(t.segments.concat(n.segments),n.children)}return t}function ec(t){return t instanceof hs}function IN(t,n,e=null,i=null){let r=AN(t);return ON(r,n,e,i)}function AN(t){let n;function e(o){let a={};for(let l of o.children){let c=e(l);a[l.outlet]=c}let s=new qt(o.url,a);return o===t&&(n=s),s}let i=e(t.root),r=SN(i);return n??r}function ON(t,n,e,i){let r=t;for(;r.parent;)r=r.parent;if(n.length===0)return O1(r,r,r,e,i);let o=gQ(n);if(o.toRoot())return O1(r,r,new qt([],{}),e,i);let a=_Q(o,r,t),s=a.processChildren?Ef(a.segmentGroup,a.index,o.commands):PN(a.segmentGroup,a.index,o.commands);return O1(r,a.segmentGroup,s,e,i)}function a0(t){return typeof t=="object"&&t!=null&&!t.outlets&&!t.segmentPath}function kf(t){return typeof t=="object"&&t!=null&&t.outlets}function O1(t,n,e,i,r){let o={};i&&Object.entries(i).forEach(([l,c])=>{o[l]=Array.isArray(c)?c.map(d=>`${d}`):`${c}`});let a;t===n?a=e:a=RN(t,n,e);let s=SN(TN(a));return new hs(s,o,r)}function RN(t,n,e){let i={};return Object.entries(t.children).forEach(([r,o])=>{o===n?i[r]=e:i[r]=RN(o,n,e)}),new qt(t.segments,i)}var s0=class{isAbsolute;numberOfDoubleDots;commands;constructor(n,e,i){if(this.isAbsolute=n,this.numberOfDoubleDots=e,this.commands=i,n&&i.length>0&&a0(i[0]))throw new ue(4003,!1);let r=i.find(kf);if(r&&r!==xN(i))throw new ue(4004,!1)}toRoot(){return this.isAbsolute&&this.commands.length===1&&this.commands[0]=="/"}};function gQ(t){if(typeof t[0]=="string"&&t.length===1&&t[0]==="/")return new s0(!0,0,t);let n=0,e=!1,i=t.reduce((r,o,a)=>{if(typeof o=="object"&&o!=null){if(o.outlets){let s={};return Object.entries(o.outlets).forEach(([l,c])=>{s[l]=typeof c=="string"?c.split("/"):c}),[...r,{outlets:s}]}if(o.segmentPath)return[...r,o.segmentPath]}return typeof o!="string"?[...r,o]:a===0?(o.split("/").forEach((s,l)=>{l==0&&s==="."||(l==0&&s===""?e=!0:s===".."?n++:s!=""&&r.push(s))}),r):[...r,o]},[]);return new s0(e,n,i)}var Rm=class{segmentGroup;processChildren;index;constructor(n,e,i){this.segmentGroup=n,this.processChildren=e,this.index=i}};function _Q(t,n,e){if(t.isAbsolute)return new Rm(n,!0,0);if(!e)return new Rm(n,!1,NaN);if(e.parent===null)return new Rm(e,!0,0);let i=a0(t.commands[0])?0:1,r=e.segments.length-1+i;return bQ(e,r,t.numberOfDoubleDots)}function bQ(t,n,e){let i=t,r=n,o=e;for(;o>r;){if(o-=r,i=i.parent,!i)throw new ue(4005,!1);r=i.segments.length}return new Rm(i,!1,r-o)}function vQ(t){return kf(t[0])?t[0].outlets:{[dt]:t}}function PN(t,n,e){if(t??=new qt([],{}),t.segments.length===0&&t.hasChildren())return Ef(t,n,e);let i=yQ(t,n,e),r=e.slice(i.commandIndex);if(i.match&&i.pathIndexo!==dt)&&t.children[dt]&&t.numberOfChildren===1&&t.children[dt].segments.length===0){let o=Ef(t.children[dt],n,e);return new qt(t.segments,o.children)}return Object.entries(i).forEach(([o,a])=>{typeof a=="string"&&(a=[a]),a!==null&&(r[o]=PN(t.children[o],n,a))}),Object.entries(t.children).forEach(([o,a])=>{i[o]===void 0&&(r[o]=a)}),new qt(t.segments,r)}}function yQ(t,n,e){let i=0,r=n,o={match:!1,pathIndex:0,commandIndex:0};for(;r=e.length)return o;let a=t.segments[r],s=e[i];if(kf(s))break;let l=`${s}`,c=i0&&l===void 0)break;if(l&&c&&typeof c=="object"&&c.outlets===void 0){if(!fN(l,c,a))return o;i+=2}else{if(!fN(l,{},a))return o;i++}r++}return{match:!0,pathIndex:r,commandIndex:i}}function B1(t,n,e){let i=t.segments.slice(0,n),r=0;for(;r{typeof i=="string"&&(i=[i]),i!==null&&(n[e]=B1(new qt([],{}),0,i))}),n}function pN(t){let n={};return Object.entries(t).forEach(([e,i])=>n[e]=`${i}`),n}function fN(t,n,e){return t==e.path&&ms(n,e.parameters)}var Pm="imperative",yn=(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})(yn||{}),go=class{id;url;constructor(n,e){this.id=n,this.url=e}},ps=class extends go{type=yn.NavigationStart;navigationTrigger;restoredState;constructor(n,e,i="imperative",r=null){super(n,e),this.navigationTrigger=i,this.restoredState=r}toString(){return`NavigationStart(id: ${this.id}, url: '${this.url}')`}},vi=class extends go{urlAfterRedirects;type=yn.NavigationEnd;constructor(n,e,i){super(n,e),this.urlAfterRedirects=i}toString(){return`NavigationEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}')`}},Or=(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})(Or||{}),Nm=(function(t){return t[t.IgnoredSameUrlNavigation=0]="IgnoredSameUrlNavigation",t[t.IgnoredByUrlHandlingStrategy=1]="IgnoredByUrlHandlingStrategy",t})(Nm||{}),qo=class extends go{reason;code;type=yn.NavigationCancel;constructor(n,e,i,r){super(n,e),this.reason=i,this.code=r}toString(){return`NavigationCancel(id: ${this.id}, url: '${this.url}')`}},fs=class extends go{reason;code;type=yn.NavigationSkipped;constructor(n,e,i,r){super(n,e),this.reason=i,this.code=r}},tc=class extends go{error;target;type=yn.NavigationError;constructor(n,e,i,r){super(n,e),this.error=i,this.target=r}toString(){return`NavigationError(id: ${this.id}, url: '${this.url}', error: ${this.error})`}},Sf=class extends go{urlAfterRedirects;state;type=yn.RoutesRecognized;constructor(n,e,i,r){super(n,e),this.urlAfterRedirects=i,this.state=r}toString(){return`RoutesRecognized(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}},l0=class extends go{urlAfterRedirects;state;type=yn.GuardsCheckStart;constructor(n,e,i,r){super(n,e),this.urlAfterRedirects=i,this.state=r}toString(){return`GuardsCheckStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}},c0=class extends go{urlAfterRedirects;state;shouldActivate;type=yn.GuardsCheckEnd;constructor(n,e,i,r,o){super(n,e),this.urlAfterRedirects=i,this.state=r,this.shouldActivate=o}toString(){return`GuardsCheckEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state}, shouldActivate: ${this.shouldActivate})`}},d0=class extends go{urlAfterRedirects;state;type=yn.ResolveStart;constructor(n,e,i,r){super(n,e),this.urlAfterRedirects=i,this.state=r}toString(){return`ResolveStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}},u0=class extends go{urlAfterRedirects;state;type=yn.ResolveEnd;constructor(n,e,i,r){super(n,e),this.urlAfterRedirects=i,this.state=r}toString(){return`ResolveEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}},m0=class{route;type=yn.RouteConfigLoadStart;constructor(n){this.route=n}toString(){return`RouteConfigLoadStart(path: ${this.route.path})`}},h0=class{route;type=yn.RouteConfigLoadEnd;constructor(n){this.route=n}toString(){return`RouteConfigLoadEnd(path: ${this.route.path})`}},p0=class{snapshot;type=yn.ChildActivationStart;constructor(n){this.snapshot=n}toString(){return`ChildActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}},f0=class{snapshot;type=yn.ChildActivationEnd;constructor(n){this.snapshot=n}toString(){return`ChildActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}},g0=class{snapshot;type=yn.ActivationStart;constructor(n){this.snapshot=n}toString(){return`ActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}},_0=class{snapshot;type=yn.ActivationEnd;constructor(n){this.snapshot=n}toString(){return`ActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}},Lm=class{routerEvent;position;anchor;type=yn.Scroll;constructor(n,e,i){this.routerEvent=n,this.position=e,this.anchor=i}toString(){let n=this.position?`${this.position[0]}, ${this.position[1]}`:null;return`Scroll(anchor: '${this.anchor}', position: '${n}')`}},Tf=class{},Vm=class{url;navigationBehaviorOptions;constructor(n,e){this.url=n,this.navigationBehaviorOptions=e}};function CQ(t){return!(t instanceof Tf)&&!(t instanceof Vm)}function wQ(t,n){return t.providers&&!t._injector&&(t._injector=vm(t.providers,n,`Route: ${t.path}`)),t._injector??n}function Ta(t){return t.outlet||dt}function DQ(t,n){let e=t.filter(i=>Ta(i)===n);return e.push(...t.filter(i=>Ta(i)!==n)),e}function Hm(t){if(!t)return null;if(t.routeConfig?._injector)return t.routeConfig._injector;for(let n=t.parent;n;n=n.parent){let e=n.routeConfig;if(e?._loadedInjector)return e._loadedInjector;if(e?._injector)return e._injector}return null}var b0=class{rootInjector;outlet=null;route=null;children;attachRef=null;get injector(){return Hm(this.route?.snapshot)??this.rootInjector}constructor(n){this.rootInjector=n,this.children=new jd(this.rootInjector)}},jd=(()=>{class t{rootInjector;contexts=new Map;constructor(e){this.rootInjector=e}onChildOutletCreated(e,i){let r=this.getOrCreateContext(e);r.outlet=i,this.contexts.set(e,r)}onChildOutletDestroyed(e){let i=this.getContext(e);i&&(i.outlet=null,i.attachRef=null)}onOutletDeactivated(){let e=this.contexts;return this.contexts=new Map,e}onOutletReAttached(e){this.contexts=e}getOrCreateContext(e){let i=this.getContext(e);return i||(i=new b0(this.rootInjector),this.contexts.set(e,i)),i}getContext(e){return this.contexts.get(e)||null}static \u0275fac=function(i){return new(i||t)(pe(Wt))};static \u0275prov=O({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),v0=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=j1(n,this._root);return e?e.children.map(i=>i.value):[]}firstChild(n){let e=j1(n,this._root);return e&&e.children.length>0?e.children[0].value:null}siblings(n){let e=H1(n,this._root);return e.length<2?[]:e[e.length-2].children.map(r=>r.value).filter(r=>r!==n)}pathFromRoot(n){return H1(n,this._root).map(e=>e.value)}};function j1(t,n){if(t===n.value)return n;for(let e of n.children){let i=j1(t,e);if(i)return i}return null}function H1(t,n){if(t===n.value)return[n];for(let e of n.children){let i=H1(t,e);if(i.length)return i.unshift(n),i}return[]}var fo=class{value;children;constructor(n,e){this.value=n,this.children=e}toString(){return`TreeNode(${this.value})`}};function Om(t){let n={};return t&&t.children.forEach(e=>n[e.value.outlet]=e),n}var If=class extends v0{snapshot;constructor(n,e){super(n),this.snapshot=e,Q1(this,n)}toString(){return this.snapshot.toString()}};function FN(t){let n=EQ(t),e=new tt([new Xl("",{})]),i=new tt({}),r=new tt({}),o=new tt({}),a=new tt(""),s=new wi(e,i,o,a,r,dt,t,n.root);return s.snapshot=n.root,new If(new fo(s,[]),n)}function EQ(t){let n={},e={},i={},o=new Vd([],n,i,"",e,dt,t,null,{});return new Af("",new fo(o,[]))}var wi=class{urlSubject;paramsSubject;queryParamsSubject;fragmentSubject;dataSubject;outlet;component;snapshot;_futureSnapshot;_routerState;_paramMap;_queryParamMap;title;url;params;queryParams;fragment;data;constructor(n,e,i,r,o,a,s,l){this.urlSubject=n,this.paramsSubject=e,this.queryParamsSubject=i,this.fragmentSubject=r,this.dataSubject=o,this.outlet=a,this.component=s,this._futureSnapshot=l,this.title=this.dataSubject?.pipe(se(c=>c[Ff]))??Q(void 0),this.url=n,this.params=e,this.queryParams=i,this.fragment=r,this.data=o}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(se(n=>Bd(n))),this._paramMap}get queryParamMap(){return this._queryParamMap??=this.queryParams.pipe(se(n=>Bd(n))),this._queryParamMap}toString(){return this.snapshot?this.snapshot.toString():`Future(${this._futureSnapshot})`}};function y0(t,n,e="emptyOnly"){let i,{routeConfig:r}=t;return n!==null&&(e==="always"||r?.path===""||!n.component&&!n.routeConfig?.loadComponent)?i={params:M(M({},n.params),t.params),data:M(M({},n.data),t.data),resolve:M(M(M(M({},t.data),n.data),r?.data),t._resolvedData)}:i={params:M({},t.params),data:M({},t.data),resolve:M(M({},t.data),t._resolvedData??{})},r&&LN(r)&&(i.resolve[Ff]=r.title),i}var Vd=class{url;params;queryParams;fragment;data;outlet;component;routeConfig;_resolve;_resolvedData;_routerState;_paramMap;_queryParamMap;get title(){return this.data?.[Ff]}constructor(n,e,i,r,o,a,s,l,c){this.url=n,this.params=e,this.queryParams=i,this.fragment=r,this.data=o,this.outlet=a,this.component=s,this.routeConfig=l,this._resolve=c}get root(){return this._routerState.root}get parent(){return this._routerState.parent(this)}get firstChild(){return this._routerState.firstChild(this)}get children(){return this._routerState.children(this)}get pathFromRoot(){return this._routerState.pathFromRoot(this)}get paramMap(){return this._paramMap??=Bd(this.params),this._paramMap}get queryParamMap(){return this._queryParamMap??=Bd(this.queryParams),this._queryParamMap}toString(){let n=this.url.map(i=>i.toString()).join("/"),e=this.routeConfig?this.routeConfig.path:"";return`Route(url:'${n}', path:'${e}')`}},Af=class extends v0{url;constructor(n,e){super(e),this.url=n,Q1(this,e)}toString(){return NN(this._root)}};function Q1(t,n){n.value._routerState=t,n.children.forEach(e=>Q1(t,e))}function NN(t){let n=t.children.length>0?` { ${t.children.map(NN).join(", ")} } `:"";return`${t.value}${n}`}function R1(t){if(t.snapshot){let n=t.snapshot,e=t._futureSnapshot;t.snapshot=e,ms(n.queryParams,e.queryParams)||t.queryParamsSubject.next(e.queryParams),n.fragment!==e.fragment&&t.fragmentSubject.next(e.fragment),ms(n.params,e.params)||t.paramsSubject.next(e.params),XY(n.url,e.url)||t.urlSubject.next(e.url),ms(n.data,e.data)||t.dataSubject.next(e.data)}else t.snapshot=t._futureSnapshot,t.dataSubject.next(t._futureSnapshot.data)}function z1(t,n){let e=ms(t.params,n.params)&&iQ(t.url,n.url),i=!t.parent!=!n.parent;return e&&!i&&(!t.parent||z1(t.parent,n.parent))}function LN(t){return typeof t.title=="string"||t.title===null}var VN=new T(""),ol=(()=>{class t{activated=null;get activatedComponentRef(){return this.activated}_activatedRoute=null;name=dt;activateEvents=new U;deactivateEvents=new U;attachEvents=new U;detachEvents=new U;routerOutletData=ne();parentContexts=u(jd);location=u(nt);changeDetector=u(ye);inputBinder=u(Nf,{optional:!0});supportsBindingToComponentInputs=!0;ngOnChanges(e){if(e.name){let{firstChange:i,previousValue:r}=e.name;if(i)return;this.isTrackedInParentContexts(r)&&(this.deactivate(),this.parentContexts.onChildOutletDestroyed(r)),this.initializeOutletWithName()}}ngOnDestroy(){this.isTrackedInParentContexts(this.name)&&this.parentContexts.onChildOutletDestroyed(this.name),this.inputBinder?.unsubscribeFromRouteData(this)}isTrackedInParentContexts(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 ue(4012,!1);return this.activated.instance}get activatedRoute(){if(!this.activated)throw new ue(4012,!1);return this._activatedRoute}get activatedRouteData(){return this._activatedRoute?this._activatedRoute.snapshot.data:{}}detach(){if(!this.activated)throw new ue(4012,!1);this.location.detach();let e=this.activated;return this.activated=null,this._activatedRoute=null,this.detachEvents.emit(e.instance),e}attach(e,i){this.activated=e,this._activatedRoute=i,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,i){if(this.isActivated)throw new ue(4013,!1);this._activatedRoute=e;let r=this.location,a=e.snapshot.component,s=this.parentContexts.getOrCreateContext(this.name).children,l=new U1(e,s,r.injector,this.routerOutletData);this.activated=r.createComponent(a,{index:r.length,injector:l,environmentInjector:i}),this.changeDetector.markForCheck(),this.inputBinder?.bindActivatedRouteToOutletComponent(this),this.activateEvents.emit(this.activated.instance)}static \u0275fac=function(i){return new(i||t)};static \u0275dir=F({type:t,selectors:[["router-outlet"]],inputs:{name:"name",routerOutletData:[1,"routerOutletData"]},outputs:{activateEvents:"activate",deactivateEvents:"deactivate",attachEvents:"attach",detachEvents:"detach"},exportAs:["outlet"],features:[Ae]})}return t})(),U1=class{route;childContexts;parent;outletData;constructor(n,e,i,r){this.route=n,this.childContexts=e,this.parent=i,this.outletData=r}get(n,e){return n===wi?this.route:n===jd?this.childContexts:n===VN?this.outletData:this.parent.get(n,e)}},Nf=new T(""),K1=(()=>{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:i}=e,r=co([i.queryParams,i.params,i.data]).pipe($e(([o,a,s],l)=>(s=M(M(M({},o),a),s),l===0?Q(s):Promise.resolve(s)))).subscribe(o=>{if(!e.isActivated||!e.activatedComponentRef||e.activatedRoute!==i||i.component===null){this.unsubscribeFromRouteData(e);return}let a=d2(i.component);if(!a){this.unsubscribeFromRouteData(e);return}for(let{templateName:s}of a.inputs)e.activatedComponentRef.setInput(s,o[s])});this.outletDataSubscriptions.set(e,r)}static \u0275fac=function(i){return new(i||t)};static \u0275prov=O({token:t,factory:t.\u0275fac})}return t})(),Z1=(()=>{class t{static \u0275fac=function(i){return new(i||t)};static \u0275cmp=E({type:t,selectors:[["ng-component"]],exportAs:["emptyRouterOutlet"],decls:1,vars:0,template:function(i,r){i&1&&k(0,"router-outlet")},dependencies:[ol],encapsulation:2})}return t})();function X1(t){let n=t.children&&t.children.map(X1),e=n?De(M({},t),{children:n}):M({},t);return!e.component&&!e.loadComponent&&(n||e.loadChildren)&&e.outlet&&e.outlet!==dt&&(e.component=Z1),e}function MQ(t,n,e){let i=Of(t,n._root,e?e._root:void 0);return new If(i,n)}function Of(t,n,e){if(e&&t.shouldReuseRoute(n.value,e.value.snapshot)){let i=e.value;i._futureSnapshot=n.value;let r=kQ(t,n,e);return new fo(i,r)}else{if(t.shouldAttach(n.value)){let o=t.retrieve(n.value);if(o!==null){let a=o.route;return a.value._futureSnapshot=n.value,a.children=n.children.map(s=>Of(t,s)),a}}let i=SQ(n.value),r=n.children.map(o=>Of(t,o));return new fo(i,r)}}function kQ(t,n,e){return n.children.map(i=>{for(let r of e.children)if(t.shouldReuseRoute(i.value,r.value.snapshot))return Of(t,i,r);return Of(t,i)})}function SQ(t){return new wi(new tt(t.url),new tt(t.params),new tt(t.queryParams),new tt(t.fragment),new tt(t.data),t.outlet,t.component,t)}var Bm=class{redirectTo;navigationBehaviorOptions;constructor(n,e){this.redirectTo=n,this.navigationBehaviorOptions=e}},BN="ngNavigationCancelingError";function x0(t,n){let{redirectTo:e,navigationBehaviorOptions:i}=ec(n)?{redirectTo:n,navigationBehaviorOptions:void 0}:n,r=jN(!1,Or.Redirect);return r.url=e,r.navigationBehaviorOptions=i,r}function jN(t,n){let e=new Error(`NavigationCancelingError: ${t||""}`);return e[BN]=!0,e.cancellationCode=n,e}function TQ(t){return HN(t)&&ec(t.url)}function HN(t){return!!t&&t[BN]}var IQ=(t,n,e,i)=>se(r=>(new $1(n,r.targetRouterState,r.currentRouterState,e,i).activate(t),r)),$1=class{routeReuseStrategy;futureState;currState;forwardEvent;inputBindingEnabled;constructor(n,e,i,r,o){this.routeReuseStrategy=n,this.futureState=e,this.currState=i,this.forwardEvent=r,this.inputBindingEnabled=o}activate(n){let e=this.futureState._root,i=this.currState?this.currState._root:null;this.deactivateChildRoutes(e,i,n),R1(this.futureState.root),this.activateChildRoutes(e,i,n)}deactivateChildRoutes(n,e,i){let r=Om(e);n.children.forEach(o=>{let a=o.value.outlet;this.deactivateRoutes(o,r[a],i),delete r[a]}),Object.values(r).forEach(o=>{this.deactivateRouteAndItsChildren(o,i)})}deactivateRoutes(n,e,i){let r=n.value,o=e?e.value:null;if(r===o)if(r.component){let a=i.getContext(r.outlet);a&&this.deactivateChildRoutes(n,e,a.children)}else this.deactivateChildRoutes(n,e,i);else o&&this.deactivateRouteAndItsChildren(e,i)}deactivateRouteAndItsChildren(n,e){n.value.component&&this.routeReuseStrategy.shouldDetach(n.value.snapshot)?this.detachAndStoreRouteSubtree(n,e):this.deactivateRouteAndOutlet(n,e)}detachAndStoreRouteSubtree(n,e){let i=e.getContext(n.value.outlet),r=i&&n.value.component?i.children:e,o=Om(n);for(let a of Object.values(o))this.deactivateRouteAndItsChildren(a,r);if(i&&i.outlet){let a=i.outlet.detach(),s=i.children.onOutletDeactivated();this.routeReuseStrategy.store(n.value.snapshot,{componentRef:a,route:n,contexts:s})}}deactivateRouteAndOutlet(n,e){let i=e.getContext(n.value.outlet),r=i&&n.value.component?i.children:e,o=Om(n);for(let a of Object.values(o))this.deactivateRouteAndItsChildren(a,r);i&&(i.outlet&&(i.outlet.deactivate(),i.children.onOutletDeactivated()),i.attachRef=null,i.route=null)}activateChildRoutes(n,e,i){let r=Om(e);n.children.forEach(o=>{this.activateRoutes(o,r[o.value.outlet],i),this.forwardEvent(new _0(o.value.snapshot))}),n.children.length&&this.forwardEvent(new f0(n.value.snapshot))}activateRoutes(n,e,i){let r=n.value,o=e?e.value:null;if(R1(r),r===o)if(r.component){let a=i.getOrCreateContext(r.outlet);this.activateChildRoutes(n,e,a.children)}else this.activateChildRoutes(n,e,i);else if(r.component){let a=i.getOrCreateContext(r.outlet);if(this.routeReuseStrategy.shouldAttach(r.snapshot)){let s=this.routeReuseStrategy.retrieve(r.snapshot);this.routeReuseStrategy.store(r.snapshot,null),a.children.onOutletReAttached(s.contexts),a.attachRef=s.componentRef,a.route=s.route.value,a.outlet&&a.outlet.attach(s.componentRef,s.route.value),R1(s.route.value),this.activateChildRoutes(n,null,a.children)}else a.attachRef=null,a.route=r,a.outlet&&a.outlet.activateWith(r,a.injector),this.activateChildRoutes(n,null,a.children)}else this.activateChildRoutes(n,null,i)}},C0=class{path;route;constructor(n){this.path=n,this.route=this.path[this.path.length-1]}},Fm=class{component;route;constructor(n,e){this.component=n,this.route=e}};function AQ(t,n,e){let i=t._root,r=n?n._root:null;return Df(i,r,e,[i.value])}function OQ(t){let n=t.routeConfig?t.routeConfig.canActivateChild:null;return!n||n.length===0?null:{node:t,guards:n}}function zm(t,n){let e=Symbol(),i=n.get(t,e);return i===e?typeof t=="function"&&!uD(t)?t:n.get(t):i}function Df(t,n,e,i,r={canDeactivateChecks:[],canActivateChecks:[]}){let o=Om(n);return t.children.forEach(a=>{RQ(a,o[a.value.outlet],e,i.concat([a.value]),r),delete o[a.value.outlet]}),Object.entries(o).forEach(([a,s])=>Mf(s,e.getContext(a),r)),r}function RQ(t,n,e,i,r={canDeactivateChecks:[],canActivateChecks:[]}){let o=t.value,a=n?n.value:null,s=e?e.getContext(t.value.outlet):null;if(a&&o.routeConfig===a.routeConfig){let l=PQ(a,o,o.routeConfig.runGuardsAndResolvers);l?r.canActivateChecks.push(new C0(i)):(o.data=a.data,o._resolvedData=a._resolvedData),o.component?Df(t,n,s?s.children:null,i,r):Df(t,n,e,i,r),l&&s&&s.outlet&&s.outlet.isActivated&&r.canDeactivateChecks.push(new Fm(s.outlet.component,a))}else a&&Mf(n,s,r),r.canActivateChecks.push(new C0(i)),o.component?Df(t,null,s?s.children:null,i,r):Df(t,null,e,i,r);return r}function PQ(t,n,e){if(typeof e=="function")return e(t,n);switch(e){case"pathParamsChange":return!Ld(t.url,n.url);case"pathParamsOrQueryParamsChange":return!Ld(t.url,n.url)||!ms(t.queryParams,n.queryParams);case"always":return!0;case"paramsOrQueryParamsChange":return!z1(t,n)||!ms(t.queryParams,n.queryParams);case"paramsChange":default:return!z1(t,n)}}function Mf(t,n,e){let i=Om(t),r=t.value;Object.entries(i).forEach(([o,a])=>{r.component?n?Mf(a,n.children.getContext(o),e):Mf(a,null,e):Mf(a,n,e)}),r.component?n&&n.outlet&&n.outlet.isActivated?e.canDeactivateChecks.push(new Fm(n.outlet.component,r)):e.canDeactivateChecks.push(new Fm(null,r)):e.canDeactivateChecks.push(new Fm(null,r))}function Lf(t){return typeof t=="function"}function FQ(t){return typeof t=="boolean"}function NQ(t){return t&&Lf(t.canLoad)}function LQ(t){return t&&Lf(t.canActivate)}function VQ(t){return t&&Lf(t.canActivateChild)}function BQ(t){return t&&Lf(t.canDeactivate)}function jQ(t){return t&&Lf(t.canMatch)}function zN(t){return t instanceof Hs||t?.name==="EmptyError"}var i0=Symbol("INITIAL_VALUE");function jm(){return $e(t=>co(t.map(n=>n.pipe(lt(1),He(i0)))).pipe(se(n=>{for(let e of n)if(e!==!0){if(e===i0)return i0;if(e===!1||HQ(e))return e}return!0}),ce(n=>n!==i0),lt(1)))}function HQ(t){return ec(t)||t instanceof Bm}function zQ(t,n){return Mt(e=>{let{targetSnapshot:i,currentSnapshot:r,guards:{canActivateChecks:o,canDeactivateChecks:a}}=e;return a.length===0&&o.length===0?Q(De(M({},e),{guardsResult:!0})):UQ(a,i,r,t).pipe(Mt(s=>s&&FQ(s)?$Q(i,o,t,n):Q(s)),se(s=>De(M({},e),{guardsResult:s})))})}function UQ(t,n,e,i){return Ot(t).pipe(Mt(r=>QQ(r.component,r.route,e,n,i)),gn(r=>r!==!0,!0))}function $Q(t,n,e,i){return Ot(n).pipe(Ao(r=>mo(GQ(r.route.parent,i),WQ(r.route,i),YQ(t,r.path,e),qQ(t,r.route,e))),gn(r=>r!==!0,!0))}function WQ(t,n){return t!==null&&n&&n(new g0(t)),Q(!0)}function GQ(t,n){return t!==null&&n&&n(new p0(t)),Q(!0)}function qQ(t,n,e){let i=n.routeConfig?n.routeConfig.canActivate:null;if(!i||i.length===0)return Q(!0);let r=i.map(o=>kn(()=>{let a=Hm(n)??e,s=zm(o,a),l=LQ(s)?s.canActivate(n,t):In(a,()=>s(n,t));return rl(l).pipe(gn())}));return Q(r).pipe(jm())}function YQ(t,n,e){let i=n[n.length-1],o=n.slice(0,n.length-1).reverse().map(a=>OQ(a)).filter(a=>a!==null).map(a=>kn(()=>{let s=a.guards.map(l=>{let c=Hm(a.node)??e,d=zm(l,c),m=VQ(d)?d.canActivateChild(i,t):In(c,()=>d(i,t));return rl(m).pipe(gn())});return Q(s).pipe(jm())}));return Q(o).pipe(jm())}function QQ(t,n,e,i,r){let o=n&&n.routeConfig?n.routeConfig.canDeactivate:null;if(!o||o.length===0)return Q(!0);let a=o.map(s=>{let l=Hm(n)??r,c=zm(s,l),d=BQ(c)?c.canDeactivate(t,n,e,i):In(l,()=>c(t,n,e,i));return rl(d).pipe(gn())});return Q(a).pipe(jm())}function KQ(t,n,e,i){let r=n.canLoad;if(r===void 0||r.length===0)return Q(!0);let o=r.map(a=>{let s=zm(a,t),l=NQ(s)?s.canLoad(n,e):In(t,()=>s(n,e));return rl(l)});return Q(o).pipe(jm(),UN(i))}function UN(t){return Bw(Be(n=>{if(typeof n!="boolean")throw x0(t,n)}),se(n=>n===!0))}function ZQ(t,n,e,i){let r=n.canMatch;if(!r||r.length===0)return Q(!0);let o=r.map(a=>{let s=zm(a,t),l=jQ(s)?s.canMatch(n,e):In(t,()=>s(n,e));return rl(l)});return Q(o).pipe(jm(),UN(i))}var Rf=class{segmentGroup;constructor(n){this.segmentGroup=n||null}},Pf=class extends Error{urlTree;constructor(n){super(),this.urlTree=n}};function Am(t){return Wn(new Rf(t))}function XQ(t){return Wn(new ue(4e3,!1))}function JQ(t){return Wn(jN(!1,Or.GuardRejected))}var W1=class{urlSerializer;urlTree;constructor(n,e){this.urlSerializer=n,this.urlTree=e}lineralizeSegments(n,e){let i=[],r=e.root;for(;;){if(i=i.concat(r.segments),r.numberOfChildren===0)return Q(i);if(r.numberOfChildren>1||!r.children[dt])return XQ(`${n.redirectTo}`);r=r.children[dt]}}applyRedirectCommands(n,e,i,r,o){return eK(e,r,o).pipe(se(a=>{if(a instanceof hs)throw new Pf(a);let s=this.applyRedirectCreateUrlTree(a,this.urlSerializer.parse(a),n,i);if(a[0]==="/")throw new Pf(s);return s}))}applyRedirectCreateUrlTree(n,e,i,r){let o=this.createSegmentGroup(n,e.root,i,r);return new hs(o,this.createQueryParams(e.queryParams,this.urlTree.queryParams),e.fragment)}createQueryParams(n,e){let i={};return Object.entries(n).forEach(([r,o])=>{if(typeof o=="string"&&o[0]===":"){let s=o.substring(1);i[r]=e[s]}else i[r]=o}),i}createSegmentGroup(n,e,i,r){let o=this.createSegments(n,e.segments,i,r),a={};return Object.entries(e.children).forEach(([s,l])=>{a[s]=this.createSegmentGroup(n,l,i,r)}),new qt(o,a)}createSegments(n,e,i,r){return e.map(o=>o.path[0]===":"?this.findPosParam(n,o,r):this.findOrReturn(o,i))}findPosParam(n,e,i){let r=i[e.path.substring(1)];if(!r)throw new ue(4001,!1);return r}findOrReturn(n,e){let i=0;for(let r of e){if(r.path===n.path)return e.splice(i),r;i++}return n}};function eK(t,n,e){if(typeof t=="string")return Q(t);let i=t,{queryParams:r,fragment:o,routeConfig:a,url:s,outlet:l,params:c,data:d,title:m}=n;return rl(In(e,()=>i({params:c,data:d,queryParams:r,fragment:o,routeConfig:a,url:s,outlet:l,title:m})))}var G1={matched:!1,consumedSegments:[],remainingSegments:[],parameters:{},positionalParamSegments:{}};function tK(t,n,e,i,r){let o=$N(t,n,e);return o.matched?(i=wQ(n,i),ZQ(i,n,e,r).pipe(se(a=>a===!0?o:M({},G1)))):Q(o)}function $N(t,n,e){if(n.path==="**")return iK(e);if(n.path==="")return n.pathMatch==="full"&&(t.hasChildren()||e.length>0)?M({},G1):{matched:!0,consumedSegments:[],remainingSegments:e,parameters:{},positionalParamSegments:{}};let r=(n.matcher||vN)(e,t,n);if(!r)return M({},G1);let o={};Object.entries(r.posParams??{}).forEach(([s,l])=>{o[s]=l.path});let a=r.consumed.length>0?M(M({},o),r.consumed[r.consumed.length-1].parameters):o;return{matched:!0,consumedSegments:r.consumed,remainingSegments:e.slice(r.consumed.length),parameters:a,positionalParamSegments:r.posParams??{}}}function iK(t){return{matched:!0,parameters:t.length>0?xN(t).parameters:{},consumedSegments:t,remainingSegments:[],positionalParamSegments:{}}}function gN(t,n,e,i){return e.length>0&&oK(t,e,i)?{segmentGroup:new qt(n,rK(i,new qt(e,t.children))),slicedSegments:[]}:e.length===0&&aK(t,e,i)?{segmentGroup:new qt(t.segments,nK(t,e,i,t.children)),slicedSegments:e}:{segmentGroup:new qt(t.segments,t.children),slicedSegments:e}}function nK(t,n,e,i){let r={};for(let o of e)if(D0(t,n,o)&&!i[Ta(o)]){let a=new qt([],{});r[Ta(o)]=a}return M(M({},i),r)}function rK(t,n){let e={};e[dt]=n;for(let i of t)if(i.path===""&&Ta(i)!==dt){let r=new qt([],{});e[Ta(i)]=r}return e}function oK(t,n,e){return e.some(i=>D0(t,n,i)&&Ta(i)!==dt)}function aK(t,n,e){return e.some(i=>D0(t,n,i))}function D0(t,n,e){return(t.hasChildren()||n.length>0)&&e.pathMatch==="full"?!1:e.path===""}function sK(t,n,e){return n.length===0&&!t.children[e]}var q1=class{};function lK(t,n,e,i,r,o,a="emptyOnly"){return new Y1(t,n,e,i,r,a,o).recognize()}var cK=31,Y1=class{injector;configLoader;rootComponentType;config;urlTree;paramsInheritanceStrategy;urlSerializer;applyRedirects;absoluteRedirectCount=0;allowRedirects=!0;constructor(n,e,i,r,o,a,s){this.injector=n,this.configLoader=e,this.rootComponentType=i,this.config=r,this.urlTree=o,this.paramsInheritanceStrategy=a,this.urlSerializer=s,this.applyRedirects=new W1(this.urlSerializer,this.urlTree)}noMatchError(n){return new ue(4002,`'${n.segmentGroup}'`)}recognize(){let n=gN(this.urlTree.root,[],[],this.config).segmentGroup;return this.match(n).pipe(se(({children:e,rootSnapshot:i})=>{let r=new fo(i,e),o=new Af("",r),a=IN(i,[],this.urlTree.queryParams,this.urlTree.fragment);return a.queryParams=this.urlTree.queryParams,o.url=this.urlSerializer.serialize(a),{state:o,tree:a}}))}match(n){let e=new Vd([],Object.freeze({}),Object.freeze(M({},this.urlTree.queryParams)),this.urlTree.fragment,Object.freeze({}),dt,this.rootComponentType,null,{});return this.processSegmentGroup(this.injector,this.config,n,dt,e).pipe(se(i=>({children:i,rootSnapshot:e})),fi(i=>{if(i instanceof Pf)return this.urlTree=i.urlTree,this.match(i.urlTree.root);throw i instanceof Rf?this.noMatchError(i):i}))}processSegmentGroup(n,e,i,r,o){return i.segments.length===0&&i.hasChildren()?this.processChildren(n,e,i,o):this.processSegment(n,e,i,i.segments,r,!0,o).pipe(se(a=>a instanceof fo?[a]:[]))}processChildren(n,e,i,r){let o=[];for(let a of Object.keys(i.children))a==="primary"?o.unshift(a):o.push(a);return Ot(o).pipe(Ao(a=>{let s=i.children[a],l=DQ(e,a);return this.processSegmentGroup(n,l,s,a,r)}),Kw((a,s)=>(a.push(...s),a)),Fl(null),Qw(),Mt(a=>{if(a===null)return Am(i);let s=WN(a);return dK(s),Q(s)}))}processSegment(n,e,i,r,o,a,s){return Ot(e).pipe(Ao(l=>this.processSegmentAgainstRoute(l._injector??n,e,l,i,r,o,a,s).pipe(fi(c=>{if(c instanceof Rf)return Q(null);throw c}))),gn(l=>!!l),fi(l=>{if(zN(l))return sK(i,r,o)?Q(new q1):Am(i);throw l}))}processSegmentAgainstRoute(n,e,i,r,o,a,s,l){return Ta(i)!==a&&(a===dt||!D0(r,o,i))?Am(r):i.redirectTo===void 0?this.matchSegmentAgainstRoute(n,r,i,o,a,l):this.allowRedirects&&s?this.expandSegmentAgainstRouteUsingRedirect(n,r,e,i,o,a,l):Am(r)}expandSegmentAgainstRouteUsingRedirect(n,e,i,r,o,a,s){let{matched:l,parameters:c,consumedSegments:d,positionalParamSegments:m,remainingSegments:f}=$N(e,r,o);if(!l)return Am(e);typeof r.redirectTo=="string"&&r.redirectTo[0]==="/"&&(this.absoluteRedirectCount++,this.absoluteRedirectCount>cK&&(this.allowRedirects=!1));let b=new Vd(o,c,Object.freeze(M({},this.urlTree.queryParams)),this.urlTree.fragment,_N(r),Ta(r),r.component??r._loadedComponent??null,r,bN(r)),v=y0(b,s,this.paramsInheritanceStrategy);return b.params=Object.freeze(v.params),b.data=Object.freeze(v.data),this.applyRedirects.applyRedirectCommands(d,r.redirectTo,m,b,n).pipe($e(x=>this.applyRedirects.lineralizeSegments(r,x)),Mt(x=>this.processSegment(n,i,e,x.concat(f),a,!1,s)))}matchSegmentAgainstRoute(n,e,i,r,o,a){let s=tK(e,i,r,n,this.urlSerializer);return i.path==="**"&&(e.children={}),s.pipe($e(l=>l.matched?(n=i._injector??n,this.getChildConfig(n,i,r).pipe($e(({routes:c})=>{let d=i._loadedInjector??n,{parameters:m,consumedSegments:f,remainingSegments:b}=l,v=new Vd(f,m,Object.freeze(M({},this.urlTree.queryParams)),this.urlTree.fragment,_N(i),Ta(i),i.component??i._loadedComponent??null,i,bN(i)),w=y0(v,a,this.paramsInheritanceStrategy);v.params=Object.freeze(w.params),v.data=Object.freeze(w.data);let{segmentGroup:x,slicedSegments:D}=gN(e,f,b,c);if(D.length===0&&x.hasChildren())return this.processChildren(d,c,x,v).pipe(se(W=>new fo(v,W)));if(c.length===0&&D.length===0)return Q(new fo(v,[]));let P=Ta(i)===o;return this.processSegment(d,c,x,D,P?dt:o,!0,v).pipe(se(W=>new fo(v,W instanceof fo?[W]:[])))}))):Am(e)))}getChildConfig(n,e,i){return e.children?Q({routes:e.children,injector:n}):e.loadChildren?e._loadedRoutes!==void 0?Q({routes:e._loadedRoutes,injector:e._loadedInjector}):KQ(n,e,i,this.urlSerializer).pipe(Mt(r=>r?this.configLoader.loadChildren(n,e).pipe(Be(o=>{e._loadedRoutes=o.routes,e._loadedInjector=o.injector})):JQ(e))):Q({routes:[],injector:n})}};function dK(t){t.sort((n,e)=>n.value.outlet===dt?-1:e.value.outlet===dt?1:n.value.outlet.localeCompare(e.value.outlet))}function uK(t){let n=t.value.routeConfig;return n&&n.path===""}function WN(t){let n=[],e=new Set;for(let i of t){if(!uK(i)){n.push(i);continue}let r=n.find(o=>i.value.routeConfig===o.value.routeConfig);r!==void 0?(r.children.push(...i.children),e.add(r)):n.push(i)}for(let i of e){let r=WN(i.children);n.push(new fo(i.value,r))}return n.filter(i=>!e.has(i))}function _N(t){return t.data||{}}function bN(t){return t.resolve||{}}function mK(t,n,e,i,r,o){return Mt(a=>lK(t,n,e,i,a.extractedUrl,r,o).pipe(se(({state:s,tree:l})=>De(M({},a),{targetSnapshot:s,urlAfterRedirects:l}))))}function hK(t,n){return Mt(e=>{let{targetSnapshot:i,guards:{canActivateChecks:r}}=e;if(!r.length)return Q(e);let o=new Set(r.map(l=>l.route)),a=new Set;for(let l of o)if(!a.has(l))for(let c of GN(l))a.add(c);let s=0;return Ot(a).pipe(Ao(l=>o.has(l)?pK(l,i,t,n):(l.data=y0(l,l.parent,t).resolve,Q(void 0))),Be(()=>s++),qu(1),Mt(l=>s===a.size?Q(e):Fi))})}function GN(t){let n=t.children.map(e=>GN(e)).flat();return[t,...n]}function pK(t,n,e,i){let r=t.routeConfig,o=t._resolve;return r?.title!==void 0&&!LN(r)&&(o[Ff]=r.title),kn(()=>(t.data=y0(t,t.parent,e).resolve,fK(o,t,n,i).pipe(se(a=>(t._resolvedData=a,t.data=M(M({},t.data),a),null)))))}function fK(t,n,e,i){let r=N1(t);if(r.length===0)return Q({});let o={};return Ot(r).pipe(Mt(a=>gK(t[a],n,e,i).pipe(gn(),Be(s=>{if(s instanceof Bm)throw x0(new Jl,s);o[a]=s}))),qu(1),se(()=>o),fi(a=>zN(a)?Fi:Wn(a)))}function gK(t,n,e,i){let r=Hm(n)??i,o=zm(t,r),a=o.resolve?o.resolve(n,e):In(r,()=>o(n,e));return rl(a)}function P1(t){return $e(n=>{let e=t(n);return e?Ot(e).pipe(se(()=>n)):Q(n)})}var J1=(()=>{class t{buildTitle(e){let i,r=e.root;for(;r!==void 0;)i=this.getResolvedTitleForRoute(r)??i,r=r.children.find(o=>o.outlet===dt);return i}getResolvedTitleForRoute(e){return e.data[Ff]}static \u0275fac=function(i){return new(i||t)};static \u0275prov=O({token:t,factory:()=>u(qN),providedIn:"root"})}return t})(),qN=(()=>{class t extends J1{title;constructor(e){super(),this.title=e}updateTitle(e){let i=this.buildTitle(e);i!==void 0&&this.title.setTitle(i)}static \u0275fac=function(i){return new(i||t)(pe(uN))};static \u0275prov=O({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),nc=new T("",{providedIn:"root",factory:()=>({})}),Hd=new T(""),E0=(()=>{class t{componentLoaders=new WeakMap;childrenLoaders=new WeakMap;onLoadStartListener;onLoadEndListener;compiler=u(jM);loadComponent(e,i){if(this.componentLoaders.get(i))return this.componentLoaders.get(i);if(i._loadedComponent)return Q(i._loadedComponent);this.onLoadStartListener&&this.onLoadStartListener(i);let r=rl(In(e,()=>i.loadComponent())).pipe(se(QN),$e(KN),Be(a=>{this.onLoadEndListener&&this.onLoadEndListener(i),i._loadedComponent=a}),Hr(()=>{this.componentLoaders.delete(i)})),o=new Al(r,()=>new z).pipe(ju());return this.componentLoaders.set(i,o),o}loadChildren(e,i){if(this.childrenLoaders.get(i))return this.childrenLoaders.get(i);if(i._loadedRoutes)return Q({routes:i._loadedRoutes,injector:i._loadedInjector});this.onLoadStartListener&&this.onLoadStartListener(i);let o=YN(i,this.compiler,e,this.onLoadEndListener).pipe(Hr(()=>{this.childrenLoaders.delete(i)})),a=new Al(o,()=>new z).pipe(ju());return this.childrenLoaders.set(i,a),a}static \u0275fac=function(i){return new(i||t)};static \u0275prov=O({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();function YN(t,n,e,i){return rl(In(e,()=>t.loadChildren())).pipe(se(QN),$e(KN),Mt(r=>r instanceof wv||Array.isArray(r)?Q(r):Ot(n.compileModuleAsync(r))),se(r=>{i&&i(t);let o,a,s=!1;return Array.isArray(r)?(a=r,s=!0):(o=r.create(e).injector,a=o.get(Hd,[],{optional:!0,self:!0}).flat()),{routes:a.map(X1),injector:o}}))}function _K(t){return t&&typeof t=="object"&&"default"in t}function QN(t){return _K(t)?t.default:t}function KN(t){return Q(t)}var M0=(()=>{class t{static \u0275fac=function(i){return new(i||t)};static \u0275prov=O({token:t,factory:()=>u(bK),providedIn:"root"})}return t})(),bK=(()=>{class t{shouldProcessUrl(e){return!0}extract(e){return e}merge(e,i){return e}static \u0275fac=function(i){return new(i||t)};static \u0275prov=O({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),ek=new T(""),tk=new T("");function ZN(t,n,e){let i=t.get(tk),r=t.get(ge);if(!r.startViewTransition||i.skipNextTransition)return i.skipNextTransition=!1,new Promise(c=>setTimeout(c));let o,a=new Promise(c=>{o=c}),s=r.startViewTransition(()=>(o(),vK(t)));s.ready.catch(c=>{});let{onViewTransitionCreated:l}=i;return l&&In(t,()=>l({transition:s,from:n,to:e})),a}function vK(t){return new Promise(n=>{pt({read:()=>setTimeout(n)},{injector:t})})}var ik=new T(""),Vf=(()=>{class t{currentNavigation=he(null,{equal:()=>!1});currentTransition=null;lastSuccessfulNavigation=null;events=new z;transitionAbortWithErrorSubject=new z;configLoader=u(E0);environmentInjector=u(Wt);destroyRef=u(nn);urlSerializer=u(ic);rootContexts=u(jd);location=u(us);inputBindingEnabled=u(Nf,{optional:!0})!==null;titleStrategy=u(J1);options=u(nc,{optional:!0})||{};paramsInheritanceStrategy=this.options.paramsInheritanceStrategy||"emptyOnly";urlHandlingStrategy=u(M0);createViewTransition=u(ek,{optional:!0});navigationErrorHandler=u(ik,{optional:!0});navigationId=0;get hasRequestedNavigation(){return this.navigationId!==0}transitions;afterPreactivation=()=>Q(void 0);rootComponentType=null;destroyed=!1;constructor(){let e=r=>this.events.next(new m0(r)),i=r=>this.events.next(new h0(r));this.configLoader.onLoadEndListener=i,this.configLoader.onLoadStartListener=e,this.destroyRef.onDestroy(()=>{this.destroyed=!0})}complete(){this.transitions?.complete()}handleNavigationRequest(e){let i=++this.navigationId;Ti(()=>{this.transitions?.next(De(M({},e),{extractedUrl:this.urlHandlingStrategy.extract(e.rawUrl),targetSnapshot:null,targetRouterState:null,guards:{canActivateChecks:[],canDeactivateChecks:[]},guardsResult:null,abortController:new AbortController,id:i}))})}setupNavigations(e){return this.transitions=new tt(null),this.transitions.pipe(ce(i=>i!==null),$e(i=>{let r=!1;return Q(i).pipe($e(o=>{if(this.navigationId>i.id)return this.cancelNavigationTransition(i,"",Or.SupersededByNewNavigation),Fi;this.currentTransition=i,this.currentNavigation.set({id:o.id,initialUrl:o.rawUrl,extractedUrl:o.extractedUrl,targetBrowserUrl:typeof o.extras.browserUrl=="string"?this.urlSerializer.parse(o.extras.browserUrl):o.extras.browserUrl,trigger:o.source,extras:o.extras,previousNavigation:this.lastSuccessfulNavigation?De(M({},this.lastSuccessfulNavigation),{previousNavigation:null}):null,abort:()=>o.abortController.abort()});let a=!e.navigated||this.isUpdatingInternalState()||this.isUpdatedBrowserUrl(),s=o.extras.onSameUrlNavigation??e.onSameUrlNavigation;if(!a&&s!=="reload")return this.events.next(new fs(o.id,this.urlSerializer.serialize(o.rawUrl),"",Nm.IgnoredSameUrlNavigation)),o.resolve(!1),Fi;if(this.urlHandlingStrategy.shouldProcessUrl(o.rawUrl))return Q(o).pipe($e(l=>(this.events.next(new ps(l.id,this.urlSerializer.serialize(l.extractedUrl),l.source,l.restoredState)),l.id!==this.navigationId?Fi:Promise.resolve(l))),mK(this.environmentInjector,this.configLoader,this.rootComponentType,e.config,this.urlSerializer,this.paramsInheritanceStrategy),Be(l=>{i.targetSnapshot=l.targetSnapshot,i.urlAfterRedirects=l.urlAfterRedirects,this.currentNavigation.update(d=>(d.finalUrl=l.urlAfterRedirects,d));let c=new Sf(l.id,this.urlSerializer.serialize(l.extractedUrl),this.urlSerializer.serialize(l.urlAfterRedirects),l.targetSnapshot);this.events.next(c)}));if(a&&this.urlHandlingStrategy.shouldProcessUrl(o.currentRawUrl)){let{id:l,extractedUrl:c,source:d,restoredState:m,extras:f}=o,b=new ps(l,this.urlSerializer.serialize(c),d,m);this.events.next(b);let v=FN(this.rootComponentType).snapshot;return this.currentTransition=i=De(M({},o),{targetSnapshot:v,urlAfterRedirects:c,extras:De(M({},f),{skipLocationChange:!1,replaceUrl:!1})}),this.currentNavigation.update(w=>(w.finalUrl=c,w)),Q(i)}else return this.events.next(new fs(o.id,this.urlSerializer.serialize(o.extractedUrl),"",Nm.IgnoredByUrlHandlingStrategy)),o.resolve(!1),Fi}),Be(o=>{let a=new l0(o.id,this.urlSerializer.serialize(o.extractedUrl),this.urlSerializer.serialize(o.urlAfterRedirects),o.targetSnapshot);this.events.next(a)}),se(o=>(this.currentTransition=i=De(M({},o),{guards:AQ(o.targetSnapshot,o.currentSnapshot,this.rootContexts)}),i)),zQ(this.environmentInjector,o=>this.events.next(o)),Be(o=>{if(i.guardsResult=o.guardsResult,o.guardsResult&&typeof o.guardsResult!="boolean")throw x0(this.urlSerializer,o.guardsResult);let a=new c0(o.id,this.urlSerializer.serialize(o.extractedUrl),this.urlSerializer.serialize(o.urlAfterRedirects),o.targetSnapshot,!!o.guardsResult);this.events.next(a)}),ce(o=>o.guardsResult?!0:(this.cancelNavigationTransition(o,"",Or.GuardRejected),!1)),P1(o=>{if(o.guards.canActivateChecks.length!==0)return Q(o).pipe(Be(a=>{let s=new d0(a.id,this.urlSerializer.serialize(a.extractedUrl),this.urlSerializer.serialize(a.urlAfterRedirects),a.targetSnapshot);this.events.next(s)}),$e(a=>{let s=!1;return Q(a).pipe(hK(this.paramsInheritanceStrategy,this.environmentInjector),Be({next:()=>s=!0,complete:()=>{s||this.cancelNavigationTransition(a,"",Or.NoDataFromResolver)}}))}),Be(a=>{let s=new u0(a.id,this.urlSerializer.serialize(a.extractedUrl),this.urlSerializer.serialize(a.urlAfterRedirects),a.targetSnapshot);this.events.next(s)}))}),P1(o=>{let a=s=>{let l=[];if(s.routeConfig?.loadComponent){let c=Hm(s)??this.environmentInjector;l.push(this.configLoader.loadComponent(c,s.routeConfig).pipe(Be(d=>{s.component=d}),se(()=>{})))}for(let c of s.children)l.push(...a(c));return l};return co(a(o.targetSnapshot.root)).pipe(Fl(null),lt(1))}),P1(()=>this.afterPreactivation()),$e(()=>{let{currentSnapshot:o,targetSnapshot:a}=i,s=this.createViewTransition?.(this.environmentInjector,o.root,a.root);return s?Ot(s).pipe(se(()=>i)):Q(i)}),se(o=>{let a=MQ(e.routeReuseStrategy,o.targetSnapshot,o.currentRouterState);return this.currentTransition=i=De(M({},o),{targetRouterState:a}),this.currentNavigation.update(s=>(s.targetRouterState=a,s)),i}),Be(()=>{this.events.next(new Tf)}),IQ(this.rootContexts,e.routeReuseStrategy,o=>this.events.next(o),this.inputBindingEnabled),lt(1),Te(new Fe(o=>{let a=i.abortController.signal,s=()=>o.next();return a.addEventListener("abort",s),()=>a.removeEventListener("abort",s)}).pipe(ce(()=>!r&&!i.targetRouterState),Be(()=>{this.cancelNavigationTransition(i,i.abortController.signal.reason+"",Or.Aborted)}))),Be({next:o=>{r=!0,this.lastSuccessfulNavigation=Ti(this.currentNavigation),this.events.next(new vi(o.id,this.urlSerializer.serialize(o.extractedUrl),this.urlSerializer.serialize(o.urlAfterRedirects))),this.titleStrategy?.updateTitle(o.targetRouterState.snapshot),o.resolve(!0)},complete:()=>{r=!0}}),Te(this.transitionAbortWithErrorSubject.pipe(Be(o=>{throw o}))),Hr(()=>{r||this.cancelNavigationTransition(i,"",Or.SupersededByNewNavigation),this.currentTransition?.id===i.id&&(this.currentNavigation.set(null),this.currentTransition=null)}),fi(o=>{if(this.destroyed)return i.resolve(!1),Fi;if(r=!0,HN(o))this.events.next(new qo(i.id,this.urlSerializer.serialize(i.extractedUrl),o.message,o.cancellationCode)),TQ(o)?this.events.next(new Vm(o.url,o.navigationBehaviorOptions)):i.resolve(!1);else{let a=new tc(i.id,this.urlSerializer.serialize(i.extractedUrl),o,i.targetSnapshot??void 0);try{let s=In(this.environmentInjector,()=>this.navigationErrorHandler?.(a));if(s instanceof Bm){let{message:l,cancellationCode:c}=x0(this.urlSerializer,s);this.events.next(new qo(i.id,this.urlSerializer.serialize(i.extractedUrl),l,c)),this.events.next(new Vm(s.redirectTo,s.navigationBehaviorOptions))}else throw this.events.next(a),o}catch(s){this.options.resolveNavigationPromiseOnError?i.resolve(!1):i.reject(s)}}return Fi}))}))}cancelNavigationTransition(e,i,r){let o=new qo(e.id,this.urlSerializer.serialize(e.extractedUrl),i,r);this.events.next(o),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))),i=Ti(this.currentNavigation),r=i?.targetBrowserUrl??i?.extractedUrl;return e.toString()!==r?.toString()&&!i?.extras.skipLocationChange}static \u0275fac=function(i){return new(i||t)};static \u0275prov=O({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();function yK(t){return t!==Pm}var XN=(()=>{class t{static \u0275fac=function(i){return new(i||t)};static \u0275prov=O({token:t,factory:()=>u(xK),providedIn:"root"})}return t})(),w0=class{shouldDetach(n){return!1}store(n,e){}shouldAttach(n){return!1}retrieve(n){return null}shouldReuseRoute(n,e){return n.routeConfig===e.routeConfig}},xK=(()=>{class t extends w0{static \u0275fac=(()=>{let e;return function(r){return(e||(e=fe(t)))(r||t)}})();static \u0275prov=O({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),JN=(()=>{class t{urlSerializer=u(ic);options=u(nc,{optional:!0})||{};canceledNavigationResolution=this.options.canceledNavigationResolution||"replace";location=u(us);urlHandlingStrategy=u(M0);urlUpdateStrategy=this.options.urlUpdateStrategy||"deferred";currentUrlTree=new hs;getCurrentUrlTree(){return this.currentUrlTree}rawUrlTree=this.currentUrlTree;getRawUrlTree(){return this.rawUrlTree}createBrowserPath({finalUrl:e,initialUrl:i,targetBrowserUrl:r}){let o=e!==void 0?this.urlHandlingStrategy.merge(e,i):i,a=r??o;return a instanceof hs?this.urlSerializer.serialize(a):a}commitTransition({targetRouterState:e,finalUrl:i,initialUrl:r}){i&&e?(this.currentUrlTree=i,this.rawUrlTree=this.urlHandlingStrategy.merge(i,r),this.routerState=e):this.rawUrlTree=r}routerState=FN(null);getRouterState(){return this.routerState}stateMemento=this.createStateMemento();updateStateMemento(){this.stateMemento=this.createStateMemento()}createStateMemento(){return{rawUrlTree:this.rawUrlTree,currentUrlTree:this.currentUrlTree,routerState:this.routerState}}resetInternalState({finalUrl:e}){this.routerState=this.stateMemento.routerState,this.currentUrlTree=this.stateMemento.currentUrlTree,this.rawUrlTree=this.urlHandlingStrategy.merge(this.currentUrlTree,e??this.rawUrlTree)}static \u0275fac=function(i){return new(i||t)};static \u0275prov=O({token:t,factory:()=>u(CK),providedIn:"root"})}return t})(),CK=(()=>{class t extends JN{currentPageId=0;lastSuccessfulId=-1;restoredState(){return this.location.getState()}get browserPageId(){return this.canceledNavigationResolution!=="computed"?this.currentPageId:this.restoredState()?.\u0275routerPageId??this.currentPageId}registerNonRouterCurrentEntryChangeListener(e){return this.location.subscribe(i=>{i.type==="popstate"&&setTimeout(()=>{e(i.url,i.state,"popstate")})})}handleRouterEvent(e,i){e instanceof ps?this.updateStateMemento():e instanceof fs?this.commitTransition(i):e instanceof Sf?this.urlUpdateStrategy==="eager"&&(i.extras.skipLocationChange||this.setBrowserUrl(this.createBrowserPath(i),i)):e instanceof Tf?(this.commitTransition(i),this.urlUpdateStrategy==="deferred"&&!i.extras.skipLocationChange&&this.setBrowserUrl(this.createBrowserPath(i),i)):e instanceof qo&&e.code!==Or.SupersededByNewNavigation&&e.code!==Or.Redirect?this.restoreHistory(i):e instanceof tc?this.restoreHistory(i,!0):e instanceof vi&&(this.lastSuccessfulId=e.id,this.currentPageId=this.browserPageId)}setBrowserUrl(e,{extras:i,id:r}){let{replaceUrl:o,state:a}=i;if(this.location.isCurrentPathEqualTo(e)||o){let s=this.browserPageId,l=M(M({},a),this.generateNgRouterState(r,s));this.location.replaceState(e,"",l)}else{let s=M(M({},a),this.generateNgRouterState(r,this.browserPageId+1));this.location.go(e,"",s)}}restoreHistory(e,i=!1){if(this.canceledNavigationResolution==="computed"){let r=this.browserPageId,o=this.currentPageId-r;o!==0?this.location.historyGo(o):this.getCurrentUrlTree()===e.finalUrl&&o===0&&(this.resetInternalState(e),this.resetUrlToCurrentUrlTree())}else this.canceledNavigationResolution==="replace"&&(i&&this.resetInternalState(e),this.resetUrlToCurrentUrlTree())}resetUrlToCurrentUrlTree(){this.location.replaceState(this.urlSerializer.serialize(this.getRawUrlTree()),"",this.generateNgRouterState(this.lastSuccessfulId,this.currentPageId))}generateNgRouterState(e,i){return this.canceledNavigationResolution==="computed"?{navigationId:e,\u0275routerPageId:i}:{navigationId:e}}static \u0275fac=(()=>{let e;return function(r){return(e||(e=fe(t)))(r||t)}})();static \u0275prov=O({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();function k0(t,n){t.events.pipe(ce(e=>e instanceof vi||e instanceof qo||e instanceof tc||e instanceof fs),se(e=>e instanceof vi||e instanceof fs?0:(e instanceof qo?e.code===Or.Redirect||e.code===Or.SupersededByNewNavigation:!1)?2:1),ce(e=>e!==2),lt(1)).subscribe(()=>{n()})}var wK={paths:"exact",fragment:"ignored",matrixParams:"ignored",queryParams:"exact"},DK={paths:"subset",fragment:"ignored",matrixParams:"ignored",queryParams:"subset"},Re=(()=>{class t{get currentUrlTree(){return this.stateManager.getCurrentUrlTree()}get rawUrlTree(){return this.stateManager.getRawUrlTree()}disposed=!1;nonRouterCurrentEntryChangeSubscription;console=u(Dv);stateManager=u(JN);options=u(nc,{optional:!0})||{};pendingTasks=u(ns);urlUpdateStrategy=this.options.urlUpdateStrategy||"deferred";navigationTransitions=u(Vf);urlSerializer=u(ic);location=u(us);urlHandlingStrategy=u(M0);injector=u(Wt);_events=new z;get events(){return this._events}get routerState(){return this.stateManager.getRouterState()}navigated=!1;routeReuseStrategy=u(XN);onSameUrlNavigation=this.options.onSameUrlNavigation||"ignore";config=u(Hd,{optional:!0})?.flat()??[];componentInputBindingEnabled=!!u(Nf,{optional:!0});currentNavigation=this.navigationTransitions.currentNavigation.asReadonly();constructor(){this.resetConfig(this.config),this.navigationTransitions.setupNavigations(this).subscribe({error:e=>{this.console.warn(e)}}),this.subscribeToNavigationEvents()}eventsSubscription=new ke;subscribeToNavigationEvents(){let e=this.navigationTransitions.events.subscribe(i=>{try{let r=this.navigationTransitions.currentTransition,o=Ti(this.navigationTransitions.currentNavigation);if(r!==null&&o!==null){if(this.stateManager.handleRouterEvent(i,o),i instanceof qo&&i.code!==Or.Redirect&&i.code!==Or.SupersededByNewNavigation)this.navigated=!0;else if(i instanceof vi)this.navigated=!0;else if(i instanceof Vm){let a=i.navigationBehaviorOptions,s=this.urlHandlingStrategy.merge(i.url,r.currentRawUrl),l=M({browserUrl:r.extras.browserUrl,info:r.extras.info,skipLocationChange:r.extras.skipLocationChange,replaceUrl:r.extras.replaceUrl||this.urlUpdateStrategy==="eager"||yK(r.source)},a);this.scheduleNavigation(s,Pm,null,l,{resolve:r.resolve,reject:r.reject,promise:r.promise})}}CQ(i)&&this._events.next(i)}catch(r){this.navigationTransitions.transitionAbortWithErrorSubject.next(r)}});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),Pm,this.stateManager.restoredState())}setUpLocationChangeListener(){this.nonRouterCurrentEntryChangeSubscription??=this.stateManager.registerNonRouterCurrentEntryChangeListener((e,i,r)=>{this.navigateToSyncWithBrowser(e,r,i)})}navigateToSyncWithBrowser(e,i,r){let o={replaceUrl:!0},a=r?.navigationId?r:null;if(r){let l=M({},r);delete l.navigationId,delete l.\u0275routerPageId,Object.keys(l).length!==0&&(o.state=l)}let s=this.parseUrl(e);this.scheduleNavigation(s,i,a,o).catch(l=>{this.disposed||this.injector.get(hr)(l)})}get url(){return this.serializeUrl(this.currentUrlTree)}getCurrentNavigation(){return Ti(this.navigationTransitions.currentNavigation)}get lastSuccessfulNavigation(){return this.navigationTransitions.lastSuccessfulNavigation}resetConfig(e){this.config=e.map(X1),this.navigated=!1}ngOnDestroy(){this.dispose()}dispose(){this._events.unsubscribe(),this.navigationTransitions.complete(),this.nonRouterCurrentEntryChangeSubscription&&(this.nonRouterCurrentEntryChangeSubscription.unsubscribe(),this.nonRouterCurrentEntryChangeSubscription=void 0),this.disposed=!0,this.eventsSubscription.unsubscribe()}createUrlTree(e,i={}){let{relativeTo:r,queryParams:o,fragment:a,queryParamsHandling:s,preserveFragment:l}=i,c=l?this.currentUrlTree.fragment:a,d=null;switch(s??this.options.defaultQueryParamsHandling){case"merge":d=M(M({},this.currentUrlTree.queryParams),o);break;case"preserve":d=this.currentUrlTree.queryParams;break;default:d=o||null}d!==null&&(d=this.removeEmptyProps(d));let m;try{let f=r?r.snapshot:this.routerState.snapshot.root;m=AN(f)}catch{(typeof e[0]!="string"||e[0][0]!=="/")&&(e=[]),m=this.currentUrlTree.root}return ON(m,e,d,c??null)}navigateByUrl(e,i={skipLocationChange:!1}){let r=ec(e)?e:this.parseUrl(e),o=this.urlHandlingStrategy.merge(r,this.rawUrlTree);return this.scheduleNavigation(o,Pm,null,i)}navigate(e,i={skipLocationChange:!1}){return EK(e),this.navigateByUrl(this.createUrlTree(e,i),i)}serializeUrl(e){return this.urlSerializer.serialize(e)}parseUrl(e){try{return this.urlSerializer.parse(e)}catch{return this.console.warn(Ro(4018,!1)),this.urlSerializer.parse("/")}}isActive(e,i){let r;if(i===!0?r=M({},wK):i===!1?r=M({},DK):r=i,ec(e))return mN(this.currentUrlTree,e,r);let o=this.parseUrl(e);return mN(this.currentUrlTree,o,r)}removeEmptyProps(e){return Object.entries(e).reduce((i,[r,o])=>(o!=null&&(i[r]=o),i),{})}scheduleNavigation(e,i,r,o,a){if(this.disposed)return Promise.resolve(!1);let s,l,c;a?(s=a.resolve,l=a.reject,c=a.promise):c=new Promise((m,f)=>{s=m,l=f});let d=this.pendingTasks.add();return k0(this,()=>{queueMicrotask(()=>this.pendingTasks.remove(d))}),this.navigationTransitions.handleNavigationRequest({source:i,restoredState:r,currentUrlTree:this.currentUrlTree,currentRawUrl:this.currentUrlTree,rawUrl:e,extras:o,resolve:s,reject:l,promise:c,currentSnapshot:this.routerState.snapshot,currentRouterState:this.routerState}),c.catch(m=>Promise.reject(m))}static \u0275fac=function(i){return new(i||t)};static \u0275prov=O({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();function EK(t){for(let n=0;n{class t{router;route;tabIndexAttribute;renderer;el;locationStrategy;reactiveHref=he(null);get href(){return Ti(this.reactiveHref)}set href(e){this.reactiveHref.set(e)}target;queryParams;fragment;queryParamsHandling;state;info;relativeTo;isAnchorElement;subscription;onChanges=new z;applicationErrorHandler=u(hr);options=u(nc,{optional:!0});constructor(e,i,r,o,a,s){this.router=e,this.route=i,this.tabIndexAttribute=r,this.renderer=o,this.el=a,this.locationStrategy=s,this.reactiveHref.set(u(new Ii("href"),{optional:!0}));let l=a.nativeElement.tagName?.toLowerCase();this.isAnchorElement=l==="a"||l==="area"||!!(typeof customElements=="object"&&customElements.get(l)?.observedAttributes?.includes?.("href")),this.isAnchorElement?this.setTabIndexIfNotOnNativeEl("0"):this.subscribeToNavigationEventsIfNecessary()}subscribeToNavigationEventsIfNecessary(){if(this.subscription!==void 0||!this.isAnchorElement)return;let e=this.preserveFragment,i=r=>r==="merge"||r==="preserve";e||=i(this.queryParamsHandling),e||=!this.queryParamsHandling&&!i(this.options?.defaultQueryParamsHandling),e&&(this.subscription=this.router.events.subscribe(r=>{r instanceof vi&&this.updateHref()}))}preserveFragment=!1;skipLocationChange=!1;replaceUrl=!1;setTabIndexIfNotOnNativeEl(e){this.tabIndexAttribute!=null||this.isAnchorElement||this.applyAttributeValue("tabindex",e)}ngOnChanges(e){this.isAnchorElement&&(this.updateHref(),this.subscribeToNavigationEventsIfNecessary()),this.onChanges.next(this)}routerLinkInput=null;set routerLink(e){e==null?(this.routerLinkInput=null,this.setTabIndexIfNotOnNativeEl(null)):(ec(e)?this.routerLinkInput=e:this.routerLinkInput=Array.isArray(e)?e:[e],this.setTabIndexIfNotOnNativeEl("0"))}onClick(e,i,r,o,a){let s=this.urlTree;if(s===null||this.isAnchorElement&&(e!==0||i||r||o||a||typeof this.target=="string"&&this.target!="_self"))return!0;let l={skipLocationChange:this.skipLocationChange,replaceUrl:this.replaceUrl,state:this.state,info:this.info};return this.router.navigateByUrl(s,l)?.catch(c=>{this.applicationErrorHandler(c)}),!this.isAnchorElement}ngOnDestroy(){this.subscription?.unsubscribe()}updateHref(){let e=this.urlTree;this.reactiveHref.set(e!==null&&this.locationStrategy?this.locationStrategy?.prepareExternalUrl(this.router.serializeUrl(e))??"":null)}applyAttributeValue(e,i){let r=this.renderer,o=this.el.nativeElement;i!==null?r.setAttribute(o,e,i):r.removeAttribute(o,e)}get urlTree(){return this.routerLinkInput===null?null:ec(this.routerLinkInput)?this.routerLinkInput:this.router.createUrlTree(this.routerLinkInput,{relativeTo:this.relativeTo!==void 0?this.relativeTo:this.route,queryParams:this.queryParams,fragment:this.fragment,queryParamsHandling:this.queryParamsHandling,preserveFragment:this.preserveFragment})}static \u0275fac=function(i){return new(i||t)(_e(Re),_e(wi),qp("tabindex"),_e(je),_e(q),_e(Ea))};static \u0275dir=F({type:t,selectors:[["","routerLink",""]],hostVars:2,hostBindings:function(i,r){i&1&&S("click",function(a){return r.onClick(a.button,a.ctrlKey,a.shiftKey,a.altKey,a.metaKey)}),i&2&&X("href",r.reactiveHref(),sM)("target",r.target)},inputs:{target:"target",queryParams:"queryParams",fragment:"fragment",queryParamsHandling:"queryParamsHandling",state:"state",info:"info",relativeTo:"relativeTo",preserveFragment:[2,"preserveFragment","preserveFragment",V],skipLocationChange:[2,"skipLocationChange","skipLocationChange",V],replaceUrl:[2,"replaceUrl","replaceUrl",V],routerLink:"routerLink"},features:[Ae]})}return t})(),zd=(()=>{class t{router;element;renderer;cdr;link;links;classes=[];routerEventsSubscription;linkInputChangesSubscription;_isActive=!1;get isActive(){return this._isActive}routerLinkActiveOptions={exact:!1};ariaCurrentWhenActive;isActiveChange=new U;constructor(e,i,r,o,a){this.router=e,this.element=i,this.renderer=r,this.cdr=o,this.link=a,this.routerEventsSubscription=e.events.subscribe(s=>{s instanceof vi&&this.update()})}ngAfterContentInit(){Q(this.links.changes,Q(null)).pipe(uo()).subscribe(e=>{this.update(),this.subscribeToEachLinkOnChanges()})}subscribeToEachLinkOnChanges(){this.linkInputChangesSubscription?.unsubscribe();let e=[...this.links.toArray(),this.link].filter(i=>!!i).map(i=>i.onChanges);this.linkInputChangesSubscription=Ot(e).pipe(uo()).subscribe(i=>{this._isActive!==this.isLinkActive(this.router)(i)&&this.update()})}set routerLinkActive(e){let i=Array.isArray(e)?e:e.split(" ");this.classes=i.filter(r=>!!r)}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(i=>{e?this.renderer.addClass(this.element.nativeElement,i):this.renderer.removeClass(this.element.nativeElement,i)}),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 i=MK(this.routerLinkActiveOptions)?this.routerLinkActiveOptions:this.routerLinkActiveOptions.exact||!1;return r=>{let o=r.urlTree;return o?e.isActive(o,i):!1}}hasActiveLinks(){let e=this.isLinkActive(this.router);return this.link&&e(this.link)||this.links.some(e)}static \u0275fac=function(i){return new(i||t)(_e(Re),_e(q),_e(je),_e(ye),_e(Nn,8))};static \u0275dir=F({type:t,selectors:[["","routerLinkActive",""]],contentQueries:function(i,r,o){if(i&1&&xe(o,Nn,5),i&2){let a;B(a=j())&&(r.links=a)}},inputs:{routerLinkActiveOptions:"routerLinkActiveOptions",ariaCurrentWhenActive:"ariaCurrentWhenActive",routerLinkActive:"routerLinkActive"},outputs:{isActiveChange:"isActiveChange"},exportAs:["routerLinkActive"],features:[Ae]})}return t})();function MK(t){return!!t.paths}var Bf=class{};var eL=(()=>{class t{router;injector;preloadingStrategy;loader;subscription;constructor(e,i,r,o){this.router=e,this.injector=i,this.preloadingStrategy=r,this.loader=o}setUpPreloading(){this.subscription=this.router.events.pipe(ce(e=>e instanceof vi),Ao(()=>this.preload())).subscribe(()=>{})}preload(){return this.processRoutes(this.injector,this.router.config)}ngOnDestroy(){this.subscription&&this.subscription.unsubscribe()}processRoutes(e,i){let r=[];for(let o of i){o.providers&&!o._injector&&(o._injector=vm(o.providers,e,`Route: ${o.path}`));let a=o._injector??e,s=o._loadedInjector??a;(o.loadChildren&&!o._loadedRoutes&&o.canLoad===void 0||o.loadComponent&&!o._loadedComponent)&&r.push(this.preloadConfig(a,o)),(o.children||o._loadedRoutes)&&r.push(this.processRoutes(s,o.children??o._loadedRoutes))}return Ot(r).pipe(uo())}preloadConfig(e,i){return this.preloadingStrategy.preload(i,()=>{let r;i.loadChildren&&i.canLoad===void 0?r=this.loader.loadChildren(e,i):r=Q(null);let o=r.pipe(Mt(a=>a===null?Q(void 0):(i._loadedRoutes=a.routes,i._loadedInjector=a.injector,this.processRoutes(a.injector??e,a.routes))));if(i.loadComponent&&!i._loadedComponent){let a=this.loader.loadComponent(e,i);return Ot([o,a]).pipe(uo())}else return o})}static \u0275fac=function(i){return new(i||t)(pe(Re),pe(Wt),pe(Bf),pe(E0))};static \u0275prov=O({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),rk=new T(""),tL=(()=>{class t{urlSerializer;transitions;viewportScroller;zone;options;routerEventsSubscription;scrollEventsSubscription;lastId=0;lastSource=Pm;restoredId=0;store={};constructor(e,i,r,o,a={}){this.urlSerializer=e,this.transitions=i,this.viewportScroller=r,this.zone=o,this.options=a,a.scrollPositionRestoration||="disabled",a.anchorScrolling||="disabled"}init(){this.options.scrollPositionRestoration!=="disabled"&&this.viewportScroller.setHistoryScrollRestoration("manual"),this.routerEventsSubscription=this.createScrollEvents(),this.scrollEventsSubscription=this.consumeScrollEvents()}createScrollEvents(){return this.transitions.events.subscribe(e=>{e instanceof ps?(this.store[this.lastId]=this.viewportScroller.getScrollPosition(),this.lastSource=e.navigationTrigger,this.restoredId=e.restoredState?e.restoredState.navigationId:0):e instanceof vi?(this.lastId=e.id,this.scheduleScrollEvent(e,this.urlSerializer.parse(e.urlAfterRedirects).fragment)):e instanceof fs&&e.code===Nm.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 Lm))return;let i={behavior:"instant"};e.position?this.options.scrollPositionRestoration==="top"?this.viewportScroller.scrollToPosition([0,0],i):this.options.scrollPositionRestoration==="enabled"&&this.viewportScroller.scrollToPosition(e.position,i):e.anchor&&this.options.anchorScrolling==="enabled"?this.viewportScroller.scrollToAnchor(e.anchor):this.options.scrollPositionRestoration!=="disabled"&&this.viewportScroller.scrollToPosition([0,0])})}scheduleScrollEvent(e,i){this.zone.runOutsideAngular(()=>fn(this,null,function*(){yield new Promise(r=>{setTimeout(r),typeof requestAnimationFrame<"u"&&requestAnimationFrame(r)}),this.zone.run(()=>{this.transitions.events.next(new Lm(e,this.lastSource==="popstate"?this.store[this.restoredId]:null,i))})}))}ngOnDestroy(){this.routerEventsSubscription?.unsubscribe(),this.scrollEventsSubscription?.unsubscribe()}static \u0275fac=function(i){Ad()};static \u0275prov=O({token:t,factory:t.\u0275fac})}return t})();function ok(t,...n){return zr([{provide:Hd,multi:!0,useValue:t},[],{provide:wi,useFactory:iL,deps:[Re]},{provide:nf,multi:!0,useFactory:nL},n.map(e=>e.\u0275providers)])}function iL(t){return t.routerState.root}function Um(t,n){return{\u0275kind:t,\u0275providers:n}}function ak(t={}){return Um(4,[{provide:rk,useFactory:()=>{let e=u(h1),i=u(ae),r=u(Vf),o=u(ic);return new tL(o,r,e,i,t)}}])}function nL(){let t=u(de);return n=>{let e=t.get(Gn);if(n!==e.components[0])return;let i=t.get(Re),r=t.get(rL);t.get(sk)===1&&i.initialNavigation(),t.get(sL,null,{optional:!0})?.setUpPreloading(),t.get(rk,null,{optional:!0})?.init(),i.resetRootComponentType(e.componentTypes[0]),r.closed||(r.next(),r.complete(),r.unsubscribe())}}var rL=new T("",{factory:()=>new z}),sk=new T("",{providedIn:"root",factory:()=>1});function oL(){let t=[{provide:lv,useValue:!0},{provide:sk,useValue:0},Ql(()=>{let n=u(de);return n.get(JM,Promise.resolve()).then(()=>new Promise(i=>{let r=n.get(Re),o=n.get(rL);k0(r,()=>{i(!0)}),n.get(Vf).afterPreactivation=()=>(i(!0),o.closed?Q(void 0):o),r.initialNavigation()}))})];return Um(2,t)}function aL(){let t=[Ql(()=>{u(Re).setUpLocationChangeListener()}),{provide:sk,useValue:2}];return Um(3,t)}var sL=new T("");function lL(t){return Um(0,[{provide:sL,useExisting:eL},{provide:Bf,useExisting:t}])}function S0(){return Um(8,[K1,{provide:Nf,useExisting:K1}])}function cL(t){cs("NgRouterViewTransitions");let n=[{provide:ek,useValue:ZN},{provide:tk,useValue:M({skipNextTransition:!!t?.skipInitialTransition},t)}];return Um(9,n)}var dL=[us,{provide:ic,useClass:Jl},Re,jd,{provide:wi,useFactory:iL,deps:[Re]},E0,[]],lk=(()=>{class t{constructor(){}static forRoot(e,i){return{ngModule:t,providers:[dL,[],{provide:Hd,multi:!0,useValue:e},[],i?.errorHandler?{provide:ik,useValue:i.errorHandler}:[],{provide:nc,useValue:i||{}},i?.useHash?SK():TK(),kK(),i?.preloadingStrategy?lL(i.preloadingStrategy).\u0275providers:[],i?.initialNavigation?IK(i):[],i?.bindToComponentInputs?S0().\u0275providers:[],i?.enableViewTransitions?cL().\u0275providers:[],AK()]}}static forChild(e){return{ngModule:t,providers:[{provide:Hd,multi:!0,useValue:e}]}}static \u0275fac=function(i){return new(i||t)};static \u0275mod=ee({type:t});static \u0275inj=J({})}return t})();function kK(){return{provide:rk,useFactory:()=>{let t=u(h1),n=u(ae),e=u(nc),i=u(Vf),r=u(ic);return e.scrollOffset&&t.setOffset(e.scrollOffset),new tL(r,i,t,n,e)}}}function SK(){return{provide:Ea,useClass:l1}}function TK(){return{provide:Ea,useClass:Fv}}function IK(t){return[t.initialNavigation==="disabled"?aL().\u0275providers:[],t.initialNavigation==="enabledBlocking"?oL().\u0275providers:[]]}var nk=new T("");function AK(){return[{provide:nk,useFactory:nL},{provide:nf,multi:!0,useExisting:nk}]}var dk=class{validateSignature(n){return Promise.resolve(null)}validateAtHash(n){return Promise.resolve(!0)}},T0=class{};var jf=class{},OK=(()=>{let n=class n extends jf{now(){return Date.now()}new(){return new Date}};n.\u0275fac=(()=>{let i;return function(o){return(i||(i=fe(n)))(o||n)}})(),n.\u0275prov=O({token:n,factory:n.\u0275fac});let t=n;return t})();var I0=class{},A0=class{},RK=(()=>{let n=class n{constructor(){this.data=new Map}getItem(i){return this.data.get(i)}removeItem(i){this.data.delete(i)}setItem(i,r){this.data.set(i,r)}};n.\u0275fac=function(r){return new(r||n)},n.\u0275prov=O({token:n,factory:n.\u0275fac});let t=n;return t})();var Hf=class{constructor(n){this.type=n}},Rr=class extends Hf{constructor(n,e=null){super(n),this.info=e}},Ia=class extends Hf{constructor(n,e=null){super(n),this.info=e}},Ui=class extends Hf{constructor(n,e,i=null){super(n),this.reason=e,this.params=i}};function mL(t){let n=t.replace(/-/g,"+").replace(/_/g,"/");return decodeURIComponent(atob(n).split("").map(function(e){return"%"+("00"+e.charCodeAt(0).toString(16)).slice(-2)}).join(""))}function hL(t){return btoa(t).replace(/\+/g,"-").replace(/\//g,"_").replace(/=/g,"")}var $m=class{constructor(n){this.clientId="",this.redirectUri="",this.postLogoutRedirectUri="",this.redirectUriAsPostLogoutRedirectUriFallback=!0,this.loginUrl="",this.scope="openid profile",this.resource="",this.rngUrl="",this.oidc=!0,this.requestAccessToken=!0,this.options=null,this.issuer="",this.logoutUrl="",this.clearHashAfterLogin=!0,this.tokenEndpoint=null,this.revocationEndpoint=null,this.customTokenParameters=[],this.userinfoEndpoint=null,this.responseType="",this.showDebugInformation=!1,this.silentRefreshRedirectUri="",this.silentRefreshMessagePrefix="",this.silentRefreshShowIFrame=!1,this.siletRefreshTimeout=1e3*20,this.silentRefreshTimeout=1e3*20,this.dummyClientSecret="",this.requireHttps="remoteOnly",this.strictDiscoveryDocumentValidation=!0,this.jwks=null,this.customQueryParams=null,this.silentRefreshIFrameName="angular-oauth-oidc-silent-refresh-iframe",this.timeoutFactor=.75,this.sessionChecksEnabled=!1,this.sessionCheckIntervall=3*1e3,this.sessionCheckIFrameUrl=null,this.sessionCheckIFrameName="angular-oauth-oidc-check-session-iframe",this.disableAtHashCheck=!1,this.skipSubjectCheck=!1,this.useIdTokenHintForSilentRefresh=!1,this.skipIssuerCheck=!1,this.nonceStateSeparator=";",this.useHttpBasicAuth=!1,this.decreaseExpirationBySec=0,this.waitForTokenInMsec=0,this.disablePKCE=!1,this.preserveRequestedRoute=!1,this.disableIdTokenTimer=!1,this.checkOrigin=!1,this.openUri=e=>{location.href=e},n&&Object.assign(this,n)}},Ud=class{encodeKey(n){return encodeURIComponent(n)}encodeValue(n){return encodeURIComponent(n)}decodeKey(n){return decodeURIComponent(n)}decodeValue(n){return decodeURIComponent(n)}},O0=class{};var pL=(()=>{let n=class n{getHashFragmentParams(i){let r=i||window.location.hash;if(r=decodeURIComponent(r),r.indexOf("#")!==0)return{};let o=r.indexOf("?");return o>-1?r=r.substr(o+1):r=r.substr(1),this.parseQueryString(r)}parseQueryString(i){let r={},o,a,s,l,c,d;if(i===null)return r;let m=i.split("&");for(let f=0;f=64;){for(o=n[0],a=n[1],s=n[2],l=n[3],c=n[4],d=n[5],m=n[6],f=n[7],v=0;v<16;v++)w=i+v*4,t[v]=(e[w]&255)<<24|(e[w+1]&255)<<16|(e[w+2]&255)<<8|e[w+3]&255;for(v=16;v<64;v++)b=t[v-2],x=(b>>>17|b<<15)^(b>>>19|b<<13)^b>>>10,b=t[v-15],D=(b>>>7|b<<25)^(b>>>18|b<<14)^b>>>3,t[v]=(x+t[v-7]|0)+(D+t[v-16]|0);for(v=0;v<64;v++)x=(((c>>>6|c<<26)^(c>>>11|c<<21)^(c>>>25|c<<7))+(c&d^~c&m)|0)+(f+(FK[v]+t[v]|0)|0)|0,D=((o>>>2|o<<30)^(o>>>13|o<<19)^(o>>>22|o<<10))+(o&a^o&s^a&s)|0,f=m,m=d,d=c,c=l+x|0,l=s,s=a,a=o,o=x+D|0;n[0]+=o,n[1]+=a,n[2]+=s,n[3]+=l,n[4]+=c,n[5]+=d,n[6]+=m,n[7]+=f,i+=64,r-=64}return i}var uk=class{constructor(){this.digestLength=fL,this.blockSize=PK,this.state=new Int32Array(8),this.temp=new Int32Array(64),this.buffer=new Uint8Array(128),this.bufferLength=0,this.bytesHashed=0,this.finished=!1,this.reset()}reset(){return this.state[0]=1779033703,this.state[1]=3144134277,this.state[2]=1013904242,this.state[3]=2773480762,this.state[4]=1359893119,this.state[5]=2600822924,this.state[6]=528734635,this.state[7]=1541459225,this.bufferLength=0,this.bytesHashed=0,this.finished=!1,this}clean(){for(let n=0;n0){for(;this.bufferLength<64&&e>0;)this.buffer[this.bufferLength++]=n[i++],e--;this.bufferLength===64&&(ck(this.temp,this.state,this.buffer,0,64),this.bufferLength=0)}for(e>=64&&(i=ck(this.temp,this.state,n,i,e),e%=64);e>0;)this.buffer[this.bufferLength++]=n[i++],e--;return this}finish(n){if(!this.finished){let e=this.bytesHashed,i=this.bufferLength,r=e/536870912|0,o=e<<3,a=e%64<56?64:128;this.buffer[i]=128;for(let s=i+1;s>>24&255,this.buffer[a-7]=r>>>16&255,this.buffer[a-6]=r>>>8&255,this.buffer[a-5]=r>>>0&255,this.buffer[a-4]=o>>>24&255,this.buffer[a-3]=o>>>16&255,this.buffer[a-2]=o>>>8&255,this.buffer[a-1]=o>>>0&255,ck(this.temp,this.state,this.buffer,0,a),this.finished=!0}for(let e=0;e<8;e++)n[e*4+0]=this.state[e]>>>24&255,n[e*4+1]=this.state[e]>>>16&255,n[e*4+2]=this.state[e]>>>8&255,n[e*4+3]=this.state[e]>>>0&255;return this}digest(){let n=new Uint8Array(this.digestLength);return this.finish(n),n}_saveState(n){for(let e=0;e{let n=class n{calcHash(i,r){return fn(this,null,function*(){return VK(NK(LK(i)))})}toHashString2(i){let r="";for(let o of i)r+=String.fromCharCode(o);return r}toHashString(i){let r=new Uint8Array(i),o="";for(let a of r)o+=String.fromCharCode(a);return o}};n.\u0275fac=function(r){return new(r||n)},n.\u0275prov=O({token:n,factory:n.\u0275fac});let t=n;return t})(),Wm=(()=>{let n=class n extends $m{constructor(i,r,o,a,s,l,c,d,m,f){super(),this.ngZone=i,this.http=r,this.config=s,this.urlHelper=l,this.logger=c,this.crypto=d,this.dateTimeService=f,this.discoveryDocumentLoaded=!1,this.state="",this.eventsSubject=new z,this.discoveryDocumentLoadedSubject=new z,this.grantTypesSupported=[],this.inImplicitFlow=!1,this.saveNoncesInLocalStorage=!1,this.debug("angular-oauth2-oidc v10"),this.document=m,s||(s={}),this.discoveryDocumentLoaded$=this.discoveryDocumentLoadedSubject.asObservable(),this.events=this.eventsSubject.asObservable(),a&&(this.tokenValidationHandler=a),s&&this.configure(s);try{o?this.setStorage(o):typeof sessionStorage<"u"&&this.setStorage(sessionStorage)}catch(b){console.error("No OAuthStorage provided and cannot access default (sessionStorage).Consider providing a custom OAuthStorage implementation in your module.",b)}if(this.checkLocalStorageAccessable()){let b=window?.navigator?.userAgent;(b?.includes("MSIE ")||b?.includes("Trident"))&&(this.saveNoncesInLocalStorage=!0)}this.setupRefreshTimer()}checkLocalStorageAccessable(){if(typeof window>"u")return!1;let i="test";try{return typeof window.localStorage>"u"?!1:(localStorage.setItem(i,i),localStorage.removeItem(i),!0)}catch{return!1}}configure(i){Object.assign(this,new $m,i),this.config=Object.assign({},new $m,i),this.sessionChecksEnabled&&this.setupSessionCheck(),this.configChanged()}configChanged(){this.setupRefreshTimer()}restartSessionChecksIfStillLoggedIn(){this.hasValidIdToken()&&this.initSessionCheck()}restartRefreshTimerIfStillLoggedIn(){this.setupExpirationTimers()}setupSessionCheck(){this.events.pipe(ce(i=>i.type==="token_received")).subscribe(()=>{this.initSessionCheck()})}setupAutomaticSilentRefresh(i={},r,o=!0){let a=!0;this.clearAutomaticRefreshTimer(),this.automaticRefreshSubscription=this.events.pipe(Be(s=>{s.type==="token_received"?a=!0:s.type==="logout"&&(a=!1)}),ce(s=>s.type==="token_expires"&&(r==null||r==="any"||s.info===r)),Rt(1e3)).subscribe(()=>{a&&this.refreshInternal(i,o).catch(()=>{this.debug("Automatic silent refresh did not work")})}),this.restartRefreshTimerIfStillLoggedIn()}refreshInternal(i,r){return!this.useSilentRefresh&&this.responseType==="code"?this.refreshToken():this.silentRefresh(i,r)}loadDiscoveryDocumentAndTryLogin(i=null){return this.loadDiscoveryDocument().then(()=>this.tryLogin(i))}loadDiscoveryDocumentAndLogin(i=null){return i=i||{},this.loadDiscoveryDocumentAndTryLogin(i).then(()=>{if(!this.hasValidIdToken()||!this.hasValidAccessToken()){let r=typeof i.state=="string"?i.state:"";return this.initLoginFlow(r),!1}else return!0})}debug(...i){this.showDebugInformation&&this.logger.debug(...i)}validateUrlFromDiscoveryDocument(i){let r=[],o=this.validateUrlForHttps(i),a=this.validateUrlAgainstIssuer(i);return o||r.push("https for all urls required. Also for urls received by discovery."),a||r.push("Every url in discovery document has to start with the issuer url.Also see property strictDiscoveryDocumentValidation."),r}validateUrlForHttps(i){if(!i)return!0;let r=i.toLowerCase();return this.requireHttps===!1||(r.match(/^http:\/\/localhost($|[:/])/)||r.match(/^http:\/\/localhost($|[:/])/))&&this.requireHttps==="remoteOnly"?!0:r.startsWith("https://")}assertUrlNotNullAndCorrectProtocol(i,r){if(!i)throw new Error(`'${r}' should not be null`);if(!this.validateUrlForHttps(i))throw new Error(`'${r}' must use HTTPS (with TLS), or config value for property 'requireHttps' must be set to 'false' and allow HTTP (without TLS).`)}validateUrlAgainstIssuer(i){return!this.strictDiscoveryDocumentValidation||!i?!0:i.toLowerCase().startsWith(this.issuer.toLowerCase())}setupRefreshTimer(){if(typeof window>"u"){this.debug("timer not supported on this plattform");return}(this.hasValidIdToken()||this.hasValidAccessToken())&&(this.clearAccessTokenTimer(),this.clearIdTokenTimer(),this.setupExpirationTimers()),this.tokenReceivedSubscription&&this.tokenReceivedSubscription.unsubscribe(),this.tokenReceivedSubscription=this.events.pipe(ce(i=>i.type==="token_received")).subscribe(()=>{this.clearAccessTokenTimer(),this.clearIdTokenTimer(),this.setupExpirationTimers()})}setupExpirationTimers(){this.hasValidAccessToken()&&this.setupAccessTokenTimer(),!this.disableIdTokenTimer&&this.hasValidIdToken()&&this.setupIdTokenTimer()}setupAccessTokenTimer(){let i=this.getAccessTokenExpiration(),r=this.getAccessTokenStoredAt(),o=this.calcTimeout(r,i);this.ngZone.runOutsideAngular(()=>{this.accessTokenTimeoutSubscription=Q(new Ia("token_expires","access_token")).pipe(pa(o)).subscribe(a=>{this.ngZone.run(()=>{this.eventsSubject.next(a)})})})}setupIdTokenTimer(){let i=this.getIdTokenExpiration(),r=this.getIdTokenStoredAt(),o=this.calcTimeout(r,i);this.ngZone.runOutsideAngular(()=>{this.idTokenTimeoutSubscription=Q(new Ia("token_expires","id_token")).pipe(pa(o)).subscribe(a=>{this.ngZone.run(()=>{this.eventsSubject.next(a)})})})}stopAutomaticRefresh(){this.clearAccessTokenTimer(),this.clearIdTokenTimer(),this.clearAutomaticRefreshTimer()}clearAccessTokenTimer(){this.accessTokenTimeoutSubscription&&this.accessTokenTimeoutSubscription.unsubscribe()}clearIdTokenTimer(){this.idTokenTimeoutSubscription&&this.idTokenTimeoutSubscription.unsubscribe()}clearAutomaticRefreshTimer(){this.automaticRefreshSubscription&&this.automaticRefreshSubscription.unsubscribe()}calcTimeout(i,r){let o=this.dateTimeService.now(),a=(r-i)*this.timeoutFactor-(o-i),s=Math.max(0,a),l=2147483647;return s>l?l:s}setStorage(i){this._storage=i,this.configChanged()}loadDiscoveryDocument(i=null){return new Promise((r,o)=>{if(i||(i=this.issuer||"",i.endsWith("/")||(i+="/"),i+=".well-known/openid-configuration"),!this.validateUrlForHttps(i)){o("issuer must use HTTPS (with TLS), or config value for property 'requireHttps' must be set to 'false' and allow HTTP (without TLS).");return}this.http.get(i).subscribe(a=>{if(!this.validateDiscoveryDocument(a)){this.eventsSubject.next(new Ui("discovery_document_validation_error",null)),o("discovery_document_validation_error");return}this.loginUrl=a.authorization_endpoint,this.logoutUrl=a.end_session_endpoint||this.logoutUrl,this.grantTypesSupported=a.grant_types_supported,this.issuer=a.issuer,this.tokenEndpoint=a.token_endpoint,this.userinfoEndpoint=a.userinfo_endpoint||this.userinfoEndpoint,this.jwksUri=a.jwks_uri,this.sessionCheckIFrameUrl=a.check_session_iframe||this.sessionCheckIFrameUrl,this.discoveryDocumentLoaded=!0,this.discoveryDocumentLoadedSubject.next(a),this.revocationEndpoint=a.revocation_endpoint||this.revocationEndpoint,this.sessionChecksEnabled&&this.restartSessionChecksIfStillLoggedIn(),this.loadJwks().then(s=>{let l={discoveryDocument:a,jwks:s},c=new Rr("discovery_document_loaded",l);this.eventsSubject.next(c),r(c)}).catch(s=>{this.eventsSubject.next(new Ui("discovery_document_load_error",s)),o(s)})},a=>{this.logger.error("error loading discovery document",a),this.eventsSubject.next(new Ui("discovery_document_load_error",a)),o(a)})})}loadJwks(){return new Promise((i,r)=>{this.jwksUri?this.http.get(this.jwksUri).subscribe(o=>{this.jwks=o,i(o)},o=>{this.logger.error("error loading jwks",o),this.eventsSubject.next(new Ui("jwks_load_error",o)),r(o)}):i(null)})}validateDiscoveryDocument(i){let r;return!this.skipIssuerCheck&&i.issuer!==this.issuer?(this.logger.error("invalid issuer in discovery document","expected: "+this.issuer,"current: "+i.issuer),!1):(r=this.validateUrlFromDiscoveryDocument(i.authorization_endpoint),r.length>0?(this.logger.error("error validating authorization_endpoint in discovery document",r),!1):(r=this.validateUrlFromDiscoveryDocument(i.end_session_endpoint),r.length>0?(this.logger.error("error validating end_session_endpoint in discovery document",r),!1):(r=this.validateUrlFromDiscoveryDocument(i.token_endpoint),r.length>0&&this.logger.error("error validating token_endpoint in discovery document",r),r=this.validateUrlFromDiscoveryDocument(i.revocation_endpoint),r.length>0&&this.logger.error("error validating revocation_endpoint in discovery document",r),r=this.validateUrlFromDiscoveryDocument(i.userinfo_endpoint),r.length>0?(this.logger.error("error validating userinfo_endpoint in discovery document",r),!1):(r=this.validateUrlFromDiscoveryDocument(i.jwks_uri),r.length>0?(this.logger.error("error validating jwks_uri in discovery document",r),!1):(this.sessionChecksEnabled&&!i.check_session_iframe&&this.logger.warn("sessionChecksEnabled is activated but discovery document does not contain a check_session_iframe field"),!0)))))}fetchTokenUsingPasswordFlowAndLoadUserProfile(i,r,o=new _r){return this.fetchTokenUsingPasswordFlow(i,r,o).then(()=>this.loadUserProfile())}loadUserProfile(){if(!this.hasValidAccessToken())throw new Error("Can not load User Profile without access_token");if(!this.validateUrlForHttps(this.userinfoEndpoint))throw new Error("userinfoEndpoint must use HTTPS (with TLS), or config value for property 'requireHttps' must be set to 'false' and allow HTTP (without TLS).");return new Promise((i,r)=>{let o=new _r().set("Authorization","Bearer "+this.getAccessToken());this.http.get(this.userinfoEndpoint,{headers:o,observe:"response",responseType:"text"}).subscribe(a=>{if(this.debug("userinfo received",JSON.stringify(a)),a.headers.get("content-type").startsWith("application/json")){let s=JSON.parse(a.body),l=this.getIdentityClaims()||{};if(!this.skipSubjectCheck&&this.oidc&&(!l.sub||s.sub!==l.sub)){r(`if property oidc is true, the received user-id (sub) has to be the user-id of the user that has logged in with oidc. -if you are not using oidc but just oauth2 password flow set oidc to false`);return}s=Object.assign({},l,s),this._storage.setItem("id_token_claims_obj",JSON.stringify(s)),this.eventsSubject.next(new Rr("user_profile_loaded")),i({info:s})}else this.debug("userinfo is not JSON, treating it as JWE/JWS"),this.eventsSubject.next(new Rr("user_profile_loaded")),i(JSON.parse(a.body))},a=>{this.logger.error("error loading user info",a),this.eventsSubject.next(new Ui("user_profile_load_error",a)),r(a)})})}fetchTokenUsingPasswordFlow(i,r,o=new _r){let a={username:i,password:r};return this.fetchTokenUsingGrant("password",a,o)}fetchTokenUsingGrant(i,r,o=new _r){this.assertUrlNotNullAndCorrectProtocol(this.tokenEndpoint,"tokenEndpoint");let a=new Qn({encoder:new Ud}).set("grant_type",i).set("scope",this.scope);if(this.useHttpBasicAuth){let s=btoa(`${this.clientId}:${this.dummyClientSecret}`);o=o.set("Authorization","Basic "+s)}if(this.useHttpBasicAuth||(a=a.set("client_id",this.clientId)),!this.useHttpBasicAuth&&this.dummyClientSecret&&(a=a.set("client_secret",this.dummyClientSecret)),this.customQueryParams)for(let s of Object.getOwnPropertyNames(this.customQueryParams))a=a.set(s,this.customQueryParams[s]);for(let s of Object.keys(r))a=a.set(s,r[s]);return o=o.set("Content-Type","application/x-www-form-urlencoded"),new Promise((s,l)=>{this.http.post(this.tokenEndpoint,a,{headers:o}).subscribe(c=>{this.debug("tokenResponse",c),this.storeAccessTokenResponse(c.access_token,c.refresh_token,c.expires_in||this.fallbackAccessTokenExpirationTimeInSec,c.scope,this.extractRecognizedCustomParameters(c)),this.oidc&&c.id_token&&this.processIdToken(c.id_token,c.access_token).then(d=>{this.storeIdToken(d),s(c)}),this.eventsSubject.next(new Rr("token_received")),s(c)},c=>{this.logger.error("Error performing ${grantType} flow",c),this.eventsSubject.next(new Ui("token_error",c)),l(c)})})}refreshToken(){return this.assertUrlNotNullAndCorrectProtocol(this.tokenEndpoint,"tokenEndpoint"),new Promise((i,r)=>{let o=new Qn({encoder:new Ud}).set("grant_type","refresh_token").set("scope",this.scope).set("refresh_token",this._storage.getItem("refresh_token")),a=new _r().set("Content-Type","application/x-www-form-urlencoded");if(this.useHttpBasicAuth){let s=btoa(`${this.clientId}:${this.dummyClientSecret}`);a=a.set("Authorization","Basic "+s)}if(this.useHttpBasicAuth||(o=o.set("client_id",this.clientId)),!this.useHttpBasicAuth&&this.dummyClientSecret&&(o=o.set("client_secret",this.dummyClientSecret)),this.customQueryParams)for(let s of Object.getOwnPropertyNames(this.customQueryParams))o=o.set(s,this.customQueryParams[s]);this.http.post(this.tokenEndpoint,o,{headers:a}).pipe($e(s=>this.oidc&&s.id_token?Ot(this.processIdToken(s.id_token,s.access_token,!0)).pipe(Be(l=>this.storeIdToken(l)),se(()=>s)):Q(s))).subscribe(s=>{this.debug("refresh tokenResponse",s),this.storeAccessTokenResponse(s.access_token,s.refresh_token,s.expires_in||this.fallbackAccessTokenExpirationTimeInSec,s.scope,this.extractRecognizedCustomParameters(s)),this.eventsSubject.next(new Rr("token_received")),this.eventsSubject.next(new Rr("token_refreshed")),i(s)},s=>{this.logger.error("Error refreshing token",s),this.eventsSubject.next(new Ui("token_refresh_error",s)),r(s)})})}removeSilentRefreshEventListener(){this.silentRefreshPostMessageEventListener&&(window.removeEventListener("message",this.silentRefreshPostMessageEventListener),this.silentRefreshPostMessageEventListener=null)}setupSilentRefreshEventListener(){this.removeSilentRefreshEventListener(),this.silentRefreshPostMessageEventListener=i=>{let r=this.processMessageEventMessage(i);this.checkOrigin&&i.origin!==location.origin&&console.error("wrong origin requested silent refresh!"),this.tryLogin({customHashFragment:r,preventClearHashAfterLogin:!0,customRedirectUri:this.silentRefreshRedirectUri||this.redirectUri}).catch(o=>this.debug("tryLogin during silent refresh failed",o))},window.addEventListener("message",this.silentRefreshPostMessageEventListener)}silentRefresh(i={},r=!0){let o=this.getIdentityClaims()||{};if(this.useIdTokenHintForSilentRefresh&&this.hasValidIdToken()&&(i.id_token_hint=this.getIdToken()),!this.validateUrlForHttps(this.loginUrl))throw new Error("loginUrl must use HTTPS (with TLS), or config value for property 'requireHttps' must be set to 'false' and allow HTTP (without TLS).");if(typeof this.document>"u")throw new Error("silent refresh is not supported on this platform");let a=this.document.getElementById(this.silentRefreshIFrameName);a&&this.document.body.removeChild(a),this.silentRefreshSubject=o.sub;let s=this.document.createElement("iframe");s.id=this.silentRefreshIFrameName,this.setupSilentRefreshEventListener();let l=this.silentRefreshRedirectUri||this.redirectUri;this.createLoginUrl(null,null,l,r,i).then(f=>{s.setAttribute("src",f),this.silentRefreshShowIFrame||(s.style.display="none"),this.document.body.appendChild(s)});let c=this.events.pipe(ce(f=>f instanceof Ui),gn()),d=this.events.pipe(ce(f=>f.type==="token_received"),gn()),m=Q(new Ui("silent_refresh_timeout",null)).pipe(pa(this.silentRefreshTimeout));return Wu([c,d,m]).pipe(se(f=>{if(f instanceof Ui)throw f.type==="silent_refresh_timeout"?this.eventsSubject.next(f):(f=new Ui("silent_refresh_error",f),this.eventsSubject.next(f)),f;return f.type==="token_received"&&(f=new Rr("silently_refreshed"),this.eventsSubject.next(f)),f})).toPromise()}initImplicitFlowInPopup(i){return this.initLoginFlowInPopup(i)}initLoginFlowInPopup(i){return i=i||{},this.createLoginUrl(null,null,this.silentRefreshRedirectUri,!1,{display:"popup"}).then(r=>new Promise((o,a)=>{let l=null;i.windowRef?i.windowRef&&!i.windowRef.closed&&(l=i.windowRef,l.location.href=r):l=window.open(r,"ngx-oauth2-oidc-login",this.calculatePopupFeatures(i));let c,d=w=>{this.tryLogin({customHashFragment:w,preventClearHashAfterLogin:!0,customRedirectUri:this.silentRefreshRedirectUri}).then(()=>{f(),o(!0)},x=>{f(),a(x)})},m=()=>{(!l||l.closed)&&(f(),a(new Ui("popup_closed",{})))};l?c=window.setInterval(m,500):a(new Ui("popup_blocked",{}));let f=()=>{window.clearInterval(c),window.removeEventListener("storage",v),window.removeEventListener("message",b),l!==null&&l.close(),l=null},b=w=>{let x=this.processMessageEventMessage(w);x&&x!==null?(window.removeEventListener("storage",v),d(x)):console.log("false event firing")},v=w=>{w.key==="auth_hash"&&(window.removeEventListener("message",b),d(w.newValue))};window.addEventListener("message",b),window.addEventListener("storage",v)}))}calculatePopupFeatures(i){let r=i.height||470,o=i.width||500,a=window.screenLeft+(window.outerWidth-o)/2,s=window.screenTop+(window.outerHeight-r)/2;return`location=no,toolbar=no,width=${o},height=${r},top=${s},left=${a}`}processMessageEventMessage(i){let r="#";if(this.silentRefreshMessagePrefix&&(r+=this.silentRefreshMessagePrefix),!i||!i.data||typeof i.data!="string")return;let o=i.data;if(o.startsWith(r))return"#"+o.substr(r.length)}canPerformSessionCheck(){return this.sessionChecksEnabled?this.sessionCheckIFrameUrl?this.getSessionState()?!(typeof this.document>"u"):(console.warn("sessionChecksEnabled is activated but there is no session_state"),!1):(console.warn("sessionChecksEnabled is activated but there is no sessionCheckIFrameUrl"),!1):!1}setupSessionCheckEventListener(){this.removeSessionCheckEventListener(),this.sessionCheckEventListener=i=>{let r=i.origin.toLowerCase(),o=this.issuer.toLowerCase();if(this.debug("sessionCheckEventListener"),!o.startsWith(r)){this.debug("sessionCheckEventListener","wrong origin",r,"expected",o,"event",i);return}switch(i.data){case"unchanged":this.ngZone.run(()=>{this.handleSessionUnchanged()});break;case"changed":this.ngZone.run(()=>{this.handleSessionChange()});break;case"error":this.ngZone.run(()=>{this.handleSessionError()});break}this.debug("got info from session check inframe",i)},this.ngZone.runOutsideAngular(()=>{window.addEventListener("message",this.sessionCheckEventListener)})}handleSessionUnchanged(){this.debug("session check","session unchanged"),this.eventsSubject.next(new Ia("session_unchanged"))}handleSessionChange(){this.eventsSubject.next(new Ia("session_changed")),this.stopSessionCheckTimer(),!this.useSilentRefresh&&this.responseType==="code"?this.refreshToken().then(()=>{this.debug("token refresh after session change worked")}).catch(()=>{this.debug("token refresh did not work after session changed"),this.eventsSubject.next(new Ia("session_terminated")),this.logOut(!0)}):this.silentRefreshRedirectUri?(this.silentRefresh().catch(()=>this.debug("silent refresh failed after session changed")),this.waitForSilentRefreshAfterSessionChange()):(this.eventsSubject.next(new Ia("session_terminated")),this.logOut(!0))}waitForSilentRefreshAfterSessionChange(){this.events.pipe(ce(i=>i.type==="silently_refreshed"||i.type==="silent_refresh_timeout"||i.type==="silent_refresh_error"),gn()).subscribe(i=>{i.type!=="silently_refreshed"&&(this.debug("silent refresh did not work after session changed"),this.eventsSubject.next(new Ia("session_terminated")),this.logOut(!0))})}handleSessionError(){this.stopSessionCheckTimer(),this.eventsSubject.next(new Ia("session_error"))}removeSessionCheckEventListener(){this.sessionCheckEventListener&&(window.removeEventListener("message",this.sessionCheckEventListener),this.sessionCheckEventListener=null)}initSessionCheck(){if(!this.canPerformSessionCheck())return;let i=this.document.getElementById(this.sessionCheckIFrameName);i&&this.document.body.removeChild(i);let r=this.document.createElement("iframe");r.id=this.sessionCheckIFrameName,this.setupSessionCheckEventListener();let o=this.sessionCheckIFrameUrl;r.setAttribute("src",o),r.style.display="none",this.document.body.appendChild(r),this.startSessionCheckTimer()}startSessionCheckTimer(){this.stopSessionCheckTimer(),this.ngZone.runOutsideAngular(()=>{this.sessionCheckTimer=setInterval(this.checkSession.bind(this),this.sessionCheckIntervall)})}stopSessionCheckTimer(){this.sessionCheckTimer&&(clearInterval(this.sessionCheckTimer),this.sessionCheckTimer=null)}checkSession(){let i=this.document.getElementById(this.sessionCheckIFrameName);i||this.logger.warn("checkSession did not find iframe",this.sessionCheckIFrameName);let r=this.getSessionState();r||this.stopSessionCheckTimer();let o=this.clientId+" "+r;i.contentWindow.postMessage(o,this.issuer)}createLoginUrl(){return fn(this,arguments,function*(i="",r="",o="",a=!1,s={}){let l=this,c;o?c=o:c=this.redirectUri;let d=yield this.createAndSaveNonce();if(i?i=d+this.config.nonceStateSeparator+encodeURIComponent(i):i=d,!this.requestAccessToken&&!this.oidc)throw new Error("Either requestAccessToken or oidc or both must be true");this.config.responseType?this.responseType=this.config.responseType:this.oidc&&this.requestAccessToken?this.responseType="id_token token":this.oidc&&!this.requestAccessToken?this.responseType="id_token":this.responseType="token";let m=l.loginUrl.indexOf("?")>-1?"&":"?",f=l.scope;this.oidc&&!f.match(/(^|\s)openid($|\s)/)&&(f="openid "+f);let b=l.loginUrl+m+"response_type="+encodeURIComponent(l.responseType)+"&client_id="+encodeURIComponent(l.clientId)+"&state="+encodeURIComponent(i)+"&redirect_uri="+encodeURIComponent(c)+"&scope="+encodeURIComponent(f);if(this.responseType.includes("code")&&!this.disablePKCE){let[v,w]=yield this.createChallangeVerifierPairForPKCE();this.saveNoncesInLocalStorage&&typeof window.localStorage<"u"?localStorage.setItem("PKCE_verifier",w):this._storage.setItem("PKCE_verifier",w),b+="&code_challenge="+v,b+="&code_challenge_method=S256"}r&&(b+="&login_hint="+encodeURIComponent(r)),l.resource&&(b+="&resource="+encodeURIComponent(l.resource)),l.oidc&&(b+="&nonce="+encodeURIComponent(d)),a&&(b+="&prompt=none");for(let v of Object.keys(s))b+="&"+encodeURIComponent(v)+"="+encodeURIComponent(s[v]);if(this.customQueryParams)for(let v of Object.getOwnPropertyNames(this.customQueryParams))b+="&"+v+"="+encodeURIComponent(this.customQueryParams[v]);return b})}initImplicitFlowInternal(i="",r=""){if(this.inImplicitFlow)return;if(this.inImplicitFlow=!0,!this.validateUrlForHttps(this.loginUrl))throw new Error("loginUrl must use HTTPS (with TLS), or config value for property 'requireHttps' must be set to 'false' and allow HTTP (without TLS).");let o={},a=null;typeof r=="string"?a=r:typeof r=="object"&&(o=r),this.createLoginUrl(i,a,null,!1,o).then(this.config.openUri).catch(s=>{console.error("Error in initImplicitFlow",s),this.inImplicitFlow=!1})}initImplicitFlow(i="",r=""){this.loginUrl!==""?this.initImplicitFlowInternal(i,r):this.events.pipe(ce(o=>o.type==="discovery_document_loaded")).subscribe(()=>this.initImplicitFlowInternal(i,r))}resetImplicitFlow(){this.inImplicitFlow=!1}callOnTokenReceivedIfExists(i){let r=this;if(i.onTokenReceived){let o={idClaims:r.getIdentityClaims(),idToken:r.getIdToken(),accessToken:r.getAccessToken(),state:r.state};i.onTokenReceived(o)}}storeAccessTokenResponse(i,r,o,a,s){if(this._storage.setItem("access_token",i),a&&!Array.isArray(a)?this._storage.setItem("granted_scopes",JSON.stringify(a.split(" "))):a&&Array.isArray(a)&&this._storage.setItem("granted_scopes",JSON.stringify(a)),this._storage.setItem("access_token_stored_at",""+this.dateTimeService.now()),o){let l=o*1e3,d=this.dateTimeService.new().getTime()+l;this._storage.setItem("expires_at",""+d)}r&&this._storage.setItem("refresh_token",r),s&&s.forEach((l,c)=>{this._storage.setItem(c,l)})}tryLogin(i=null){return this.config.responseType==="code"?this.tryLoginCodeFlow(i).then(()=>!0):this.tryLoginImplicitFlow(i)}parseQueryString(i){return!i||i.length===0?{}:(i.charAt(0)==="?"&&(i=i.substr(1)),this.urlHelper.parseQueryString(i))}tryLoginCodeFlow(i=null){return fn(this,null,function*(){i=i||{};let r=i.customHashFragment?i.customHashFragment.substring(1):window.location.search,o=this.getCodePartsFromUrl(r),a=o.code,s=o.state,l=o.session_state;if(!i.preventClearHashAfterLogin){let m=location.origin+location.pathname+location.search.replace(/code=[^&$]*/,"").replace(/scope=[^&$]*/,"").replace(/state=[^&$]*/,"").replace(/session_state=[^&$]*/,"").replace(/^\?&/,"?").replace(/&$/,"").replace(/^\?$/,"").replace(/&+/g,"&").replace(/\?&/,"?").replace(/\?$/,"")+location.hash;history.replaceState(null,window.name,m)}let[c,d]=this.parseState(s);if(this.state=d,o.error){this.debug("error trying to login"),this.handleLoginError(i,o);let m=new Ui("code_error",{},o);return this.eventsSubject.next(m),Promise.reject(m)}if(!i.disableNonceCheck){if(!c)return this.saveRequestedRoute(),Promise.resolve();if(!i.disableOAuth2StateCheck&&!this.validateNonce(c)){let f=new Ui("invalid_nonce_in_state",null);return this.eventsSubject.next(f),Promise.reject(f)}}return this.storeSessionState(l),a&&(yield this.getTokenFromCode(a,i),this.restoreRequestedRoute()),Promise.resolve()})}saveRequestedRoute(){this.config.preserveRequestedRoute&&this._storage.setItem("requested_route",window.location.pathname+window.location.search)}restoreRequestedRoute(){let i=this._storage.getItem("requested_route");i&&history.replaceState(null,"",window.location.origin+i)}getCodePartsFromUrl(i){return!i||i.length===0?this.urlHelper.getHashFragmentParams():(i.charAt(0)==="?"&&(i=i.substr(1)),this.urlHelper.parseQueryString(i))}getTokenFromCode(i,r){let o=new Qn({encoder:new Ud}).set("grant_type","authorization_code").set("code",i).set("redirect_uri",r.customRedirectUri||this.redirectUri);if(!this.disablePKCE){let a;this.saveNoncesInLocalStorage&&typeof window.localStorage<"u"?a=localStorage.getItem("PKCE_verifier"):a=this._storage.getItem("PKCE_verifier"),a?o=o.set("code_verifier",a):console.warn("No PKCE verifier found in oauth storage!")}return this.fetchAndProcessToken(o,r)}fetchAndProcessToken(i,r){r=r||{},this.assertUrlNotNullAndCorrectProtocol(this.tokenEndpoint,"tokenEndpoint");let o=new _r().set("Content-Type","application/x-www-form-urlencoded");if(this.useHttpBasicAuth){let a=btoa(`${this.clientId}:${this.dummyClientSecret}`);o=o.set("Authorization","Basic "+a)}return this.useHttpBasicAuth||(i=i.set("client_id",this.clientId)),!this.useHttpBasicAuth&&this.dummyClientSecret&&(i=i.set("client_secret",this.dummyClientSecret)),new Promise((a,s)=>{if(this.customQueryParams)for(let l of Object.getOwnPropertyNames(this.customQueryParams))i=i.set(l,this.customQueryParams[l]);this.http.post(this.tokenEndpoint,i,{headers:o}).subscribe(l=>{this.debug("refresh tokenResponse",l),this.storeAccessTokenResponse(l.access_token,l.refresh_token,l.expires_in||this.fallbackAccessTokenExpirationTimeInSec,l.scope,this.extractRecognizedCustomParameters(l)),this.oidc&&l.id_token?this.processIdToken(l.id_token,l.access_token,r.disableNonceCheck).then(c=>{this.storeIdToken(c),this.eventsSubject.next(new Rr("token_received")),this.eventsSubject.next(new Rr("token_refreshed")),a(l)}).catch(c=>{this.eventsSubject.next(new Ui("token_validation_error",c)),console.error("Error validating tokens"),console.error(c),s(c)}):(this.eventsSubject.next(new Rr("token_received")),this.eventsSubject.next(new Rr("token_refreshed")),a(l))},l=>{console.error("Error getting token",l),this.eventsSubject.next(new Ui("token_error",l)),s(l)})})}tryLoginImplicitFlow(i=null){i=i||{};let r;i.customHashFragment?r=this.urlHelper.getHashFragmentParams(i.customHashFragment):r=this.urlHelper.getHashFragmentParams(),this.debug("parsed url",r);let o=r.state,[a,s]=this.parseState(o);if(this.state=s,r.error){this.debug("error trying to login"),this.handleLoginError(i,r);let f=new Ui("token_error",{},r);return this.eventsSubject.next(f),Promise.reject(f)}let l=r.access_token,c=r.id_token,d=r.session_state,m=r.scope;if(!this.requestAccessToken&&!this.oidc)return Promise.reject("Either requestAccessToken or oidc (or both) must be true.");if(this.requestAccessToken&&!l||this.requestAccessToken&&!i.disableOAuth2StateCheck&&!o||this.oidc&&!c)return Promise.resolve(!1);if(this.sessionChecksEnabled&&!d&&this.logger.warn("session checks (Session Status Change Notification) were activated in the configuration but the id_token does not contain a session_state claim"),this.requestAccessToken&&!i.disableNonceCheck&&!this.validateNonce(a)){let b=new Ui("invalid_nonce_in_state",null);return this.eventsSubject.next(b),Promise.reject(b)}return this.requestAccessToken&&this.storeAccessTokenResponse(l,null,r.expires_in||this.fallbackAccessTokenExpirationTimeInSec,m),this.oidc?this.processIdToken(c,l,i.disableNonceCheck).then(f=>i.validationHandler?i.validationHandler({accessToken:l,idClaims:f.idTokenClaims,idToken:f.idToken,state:o}).then(()=>f):f).then(f=>(this.storeIdToken(f),this.storeSessionState(d),this.clearHashAfterLogin&&!i.preventClearHashAfterLogin&&this.clearLocationHash(),this.eventsSubject.next(new Rr("token_received")),this.callOnTokenReceivedIfExists(i),this.inImplicitFlow=!1,!0)).catch(f=>(this.eventsSubject.next(new Ui("token_validation_error",f)),this.logger.error("Error validating tokens"),this.logger.error(f),Promise.reject(f))):(this.eventsSubject.next(new Rr("token_received")),this.clearHashAfterLogin&&!i.preventClearHashAfterLogin&&this.clearLocationHash(),this.callOnTokenReceivedIfExists(i),Promise.resolve(!0))}parseState(i){let r=i,o="";if(i){let a=i.indexOf(this.config.nonceStateSeparator);a>-1&&(r=i.substr(0,a),o=i.substr(a+this.config.nonceStateSeparator.length))}return[r,o]}validateNonce(i){let r;return this.saveNoncesInLocalStorage&&typeof window.localStorage<"u"?r=localStorage.getItem("nonce"):r=this._storage.getItem("nonce"),r!==i?(console.error("Validating access_token failed, wrong state/nonce.",r,i),!1):!0}storeIdToken(i){this._storage.setItem("id_token",i.idToken),this._storage.setItem("id_token_claims_obj",i.idTokenClaimsJson),this._storage.setItem("id_token_expires_at",""+i.idTokenExpiresAt),this._storage.setItem("id_token_stored_at",""+this.dateTimeService.now())}storeSessionState(i){this._storage.setItem("session_state",i)}getSessionState(){return this._storage.getItem("session_state")}handleLoginError(i,r){i.onLoginError&&i.onLoginError(r),this.clearHashAfterLogin&&!i.preventClearHashAfterLogin&&this.clearLocationHash()}getClockSkewInMsec(i=6e5){return!this.clockSkewInSec&&this.clockSkewInSec!==0?i:this.clockSkewInSec*1e3}processIdToken(i,r,o=!1){let a=i.split("."),s=this.padBase64(a[0]),l=mL(s),c=JSON.parse(l),d=this.padBase64(a[1]),m=mL(d),f=JSON.parse(m),b;if(this.saveNoncesInLocalStorage&&typeof window.localStorage<"u"?b=localStorage.getItem("nonce"):b=this._storage.getItem("nonce"),Array.isArray(f.aud)){if(f.aud.every(W=>W!==this.clientId)){let W="Wrong audience: "+f.aud.join(",");return this.logger.warn(W),Promise.reject(W)}}else if(f.aud!==this.clientId){let W="Wrong audience: "+f.aud;return this.logger.warn(W),Promise.reject(W)}if(!f.sub){let W="No sub claim in id_token";return this.logger.warn(W),Promise.reject(W)}if(this.sessionChecksEnabled&&this.silentRefreshSubject&&this.silentRefreshSubject!==f.sub){let W=`After refreshing, we got an id_token for another user (sub). Expected sub: ${this.silentRefreshSubject}, received sub: ${f.sub}`;return this.logger.warn(W),Promise.reject(W)}if(!f.iat){let W="No iat claim in id_token";return this.logger.warn(W),Promise.reject(W)}if(!this.skipIssuerCheck&&f.iss!==this.issuer){let W="Wrong issuer: "+f.iss;return this.logger.warn(W),Promise.reject(W)}if(!o&&f.nonce!==b){let W="Wrong nonce: "+f.nonce;return this.logger.warn(W),Promise.reject(W)}if(Object.prototype.hasOwnProperty.call(this,"responseType")&&(this.responseType==="code"||this.responseType==="id_token")&&(this.disableAtHashCheck=!0),!this.disableAtHashCheck&&this.requestAccessToken&&!f.at_hash){let W="An at_hash is needed!";return this.logger.warn(W),Promise.reject(W)}let v=this.dateTimeService.now(),w=f.iat*1e3,x=f.exp*1e3,D=this.getClockSkewInMsec();if(w-D>=v||x+D-this.decreaseExpirationBySec<=v){let W="Token has expired";return console.error(W),console.error({now:v,issuedAtMSec:w,expiresAtMSec:x}),Promise.reject(W)}let P={accessToken:r,idToken:i,jwks:this.jwks,idTokenClaims:f,idTokenHeader:c,loadKeys:()=>this.loadJwks()};return this.disableAtHashCheck?this.checkSignature(P).then(()=>({idToken:i,idTokenClaims:f,idTokenClaimsJson:m,idTokenHeader:c,idTokenHeaderJson:l,idTokenExpiresAt:x})):this.checkAtHash(P).then(W=>{if(!this.disableAtHashCheck&&this.requestAccessToken&&!W){let Z="Wrong at_hash";return this.logger.warn(Z),Promise.reject(Z)}return this.checkSignature(P).then(()=>{let Z=!this.disableAtHashCheck,K={idToken:i,idTokenClaims:f,idTokenClaimsJson:m,idTokenHeader:c,idTokenHeaderJson:l,idTokenExpiresAt:x};return Z?this.checkAtHash(P).then(re=>{if(this.requestAccessToken&&!re){let Ee="Wrong at_hash";return this.logger.warn(Ee),Promise.reject(Ee)}else return K}):K})})}getIdentityClaims(){let i=this._storage.getItem("id_token_claims_obj");return i?JSON.parse(i):null}getGrantedScopes(){let i=this._storage.getItem("granted_scopes");return i?JSON.parse(i):null}getIdToken(){return this._storage?this._storage.getItem("id_token"):null}padBase64(i){for(;i.length%4!==0;)i+="=";return i}getAccessToken(){return this._storage?this._storage.getItem("access_token"):null}getRefreshToken(){return this._storage?this._storage.getItem("refresh_token"):null}getAccessTokenExpiration(){return this._storage.getItem("expires_at")?parseInt(this._storage.getItem("expires_at"),10):null}getAccessTokenStoredAt(){return parseInt(this._storage.getItem("access_token_stored_at"),10)}getIdTokenStoredAt(){return parseInt(this._storage.getItem("id_token_stored_at"),10)}getIdTokenExpiration(){return this._storage.getItem("id_token_expires_at")?parseInt(this._storage.getItem("id_token_expires_at"),10):null}hasValidAccessToken(){if(this.getAccessToken()){let i=this._storage.getItem("expires_at"),r=this.dateTimeService.new();return!(i&&parseInt(i,10)-this.decreaseExpirationBySec=0&&this._storage.getItem(i)!==null?JSON.parse(this._storage.getItem(i)):null}authorizationHeader(){return"Bearer "+this.getAccessToken()}logOut(i={},r=""){let o=!1;typeof i=="boolean"&&(o=i,i={});let a=this.getIdToken();if(this._storage.removeItem("access_token"),this._storage.removeItem("id_token"),this._storage.removeItem("refresh_token"),this.saveNoncesInLocalStorage?(localStorage.removeItem("nonce"),localStorage.removeItem("PKCE_verifier")):(this._storage.removeItem("nonce"),this._storage.removeItem("PKCE_verifier")),this._storage.removeItem("expires_at"),this._storage.removeItem("id_token_claims_obj"),this._storage.removeItem("id_token_expires_at"),this._storage.removeItem("id_token_stored_at"),this._storage.removeItem("access_token_stored_at"),this._storage.removeItem("granted_scopes"),this._storage.removeItem("session_state"),this.config.customTokenParameters&&this.config.customTokenParameters.forEach(l=>this._storage.removeItem(l)),this.silentRefreshSubject=null,this.eventsSubject.next(new Ia("logout")),!this.logoutUrl||o)return;let s;if(!this.validateUrlForHttps(this.logoutUrl))throw new Error("logoutUrl must use HTTPS (with TLS), or config value for property 'requireHttps' must be set to 'false' and allow HTTP (without TLS).");if(this.logoutUrl.indexOf("{{")>-1)s=this.logoutUrl.replace(/\{\{id_token\}\}/,encodeURIComponent(a)).replace(/\{\{client_id\}\}/,encodeURIComponent(this.clientId));else{let l=new Qn({encoder:new Ud});a&&(l=l.set("id_token_hint",a));let c=this.postLogoutRedirectUri||this.redirectUriAsPostLogoutRedirectUriFallback&&this.redirectUri||"";c&&(l=l.set("post_logout_redirect_uri",c),r&&(l=l.set("state",r)));for(let d in i)l=l.set(d,i[d]);s=this.logoutUrl+(this.logoutUrl.indexOf("?")>-1?"&":"?")+l.toString()}this.config.openUri(s)}createAndSaveNonce(){let i=this;return this.createNonce().then(function(r){return i.saveNoncesInLocalStorage&&typeof window.localStorage<"u"?localStorage.setItem("nonce",r):i._storage.setItem("nonce",r),r})}ngOnDestroy(){this.clearAccessTokenTimer(),this.clearIdTokenTimer(),this.removeSilentRefreshEventListener();let i=this.document.getElementById(this.silentRefreshIFrameName);i&&i.remove(),this.stopSessionCheckTimer(),this.removeSessionCheckEventListener();let r=this.document.getElementById(this.sessionCheckIFrameName);r&&r.remove()}createNonce(){return new Promise(i=>{if(this.rngUrl)throw new Error("createNonce with rng-web-api has not been implemented so far");let r="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-._~",o=45,a="",s=typeof self>"u"?null:self.crypto||self.msCrypto;if(s){let l=new Uint8Array(o);s.getRandomValues(l),l.map||(l.map=Array.prototype.map),l=l.map(c=>r.charCodeAt(c%r.length)),a=String.fromCharCode.apply(null,l)}else for(;0o.type==="discovery_document_loaded")).subscribe(()=>this.initCodeFlowInternal(i,r))}initCodeFlowInternal(i="",r={}){if(!this.validateUrlForHttps(this.loginUrl))throw new Error("loginUrl must use HTTPS (with TLS), or config value for property 'requireHttps' must be set to 'false' and allow HTTP (without TLS).");let o={},a=null;typeof r=="string"?a=r:typeof r=="object"&&(o=r),this.createLoginUrl(i,a,null,!1,o).then(this.config.openUri).catch(s=>{console.error("Error in initAuthorizationCodeFlow"),console.error(s)})}createChallangeVerifierPairForPKCE(){return fn(this,null,function*(){if(!this.crypto)throw new Error("PKCE support for code flow needs a CryptoHander. Did you import the OAuthModule using forRoot() ?");let i=yield this.createNonce(),r=yield this.crypto.calcHash(i,"sha-256");return[hL(r),i]})}extractRecognizedCustomParameters(i){let r=new Map;return this.config.customTokenParameters&&this.config.customTokenParameters.forEach(o=>{i[o]&&r.set(o,JSON.stringify(i[o]))}),r}revokeTokenAndLogout(i={},r=!1){let o=this.revocationEndpoint,a=this.getAccessToken(),s=this.getRefreshToken();if(!a)return Promise.resolve();let l=new Qn({encoder:new Ud}),c=new _r().set("Content-Type","application/x-www-form-urlencoded");if(this.useHttpBasicAuth){let d=btoa(`${this.clientId}:${this.dummyClientSecret}`);c=c.set("Authorization","Basic "+d)}if(this.useHttpBasicAuth||(l=l.set("client_id",this.clientId)),!this.useHttpBasicAuth&&this.dummyClientSecret&&(l=l.set("client_secret",this.dummyClientSecret)),this.customQueryParams)for(let d of Object.getOwnPropertyNames(this.customQueryParams))l=l.set(d,this.customQueryParams[d]);return new Promise((d,m)=>{let f,b;if(a){let v=l.set("token",a).set("token_type_hint","access_token");f=this.http.post(o,v,{headers:c})}else f=Q(null);if(s){let v=l.set("token",s).set("token_type_hint","refresh_token");b=this.http.post(o,v,{headers:c})}else b=Q(null);r&&(f=f.pipe(fi(v=>v.status===0?Q(null):Wn(v))),b=b.pipe(fi(v=>v.status===0?Q(null):Wn(v)))),co([f,b]).subscribe(v=>{this.logOut(i),d(v),this.logger.info("Token successfully revoked")},v=>{this.logger.error("Error revoking token",v),this.eventsSubject.next(new Ui("token_revoke_error",v)),m(v)})})}clearLocationHash(){location.hash!=""&&(location.hash="")}};n.\u0275fac=function(r){return new(r||n)(pe(ae),pe(Yr),pe(A0,8),pe(O0,8),pe($m,8),pe(pL),pe(I0),pe(R0,8),pe(ge),pe(jf))},n.\u0275prov=O({token:n,factory:n.\u0275fac});let t=n;return t})(),P0=class{},mk=class{handleError(n){return Wn(n)}},jK=(()=>{let n=class n{constructor(i,r,o){this.oAuthService=i,this.errorHandler=r,this.moduleConfig=o}checkUrl(i){return this.moduleConfig.resourceServer.customUrlValidation?this.moduleConfig.resourceServer.customUrlValidation(i):this.moduleConfig.resourceServer.allowedUrls?!!this.moduleConfig.resourceServer.allowedUrls.find(r=>i.toLowerCase().startsWith(r.toLowerCase())):!0}intercept(i,r){let o=i.url.toLowerCase();return!this.moduleConfig||!this.moduleConfig.resourceServer||!this.checkUrl(o)?r.handle(i):this.moduleConfig.resourceServer.sendAccessToken?Je(Q(this.oAuthService.getAccessToken()).pipe(ce(s=>!!s)),this.oAuthService.events.pipe(ce(s=>s.type==="token_received"),Gw(this.oAuthService.waitForTokenInMsec||0),fi(()=>Q(null)),se(()=>this.oAuthService.getAccessToken()))).pipe(lt(1),Mt(s=>{if(s){let l="Bearer "+s,c=i.headers.set("Authorization",l);i=i.clone({headers:c})}return r.handle(i).pipe(fi(l=>this.errorHandler.handleError(l)))})):r.handle(i).pipe(fi(s=>this.errorHandler.handleError(s)))}};n.\u0275fac=function(r){return new(r||n)(pe(Wm),pe(P0),pe(T0,8))},n.\u0275prov=O({token:n,factory:n.\u0275fac});let t=n;return t})();function HK(){return console}function zK(){return typeof sessionStorage<"u"?sessionStorage:new RK}function gL(t=null,n=dk){return zr([Wm,pL,{provide:I0,useFactory:HK},{provide:A0,useFactory:zK},{provide:O0,useClass:n},{provide:R0,useClass:BK},{provide:P0,useClass:mk},{provide:T0,useValue:t},{provide:E1,useClass:jK,multi:!0},{provide:jf,useClass:OK}])}var UK=["mat-internal-form-field",""],$K=["*"],Gm=(()=>{class t{labelPosition;static \u0275fac=function(i){return new(i||t)};static \u0275cmp=E({type:t,selectors:[["div","mat-internal-form-field",""]],hostAttrs:[1,"mdc-form-field","mat-internal-form-field"],hostVars:2,hostBindings:function(i,r){i&2&&G("mdc-form-field--align-end",r.labelPosition==="before")},inputs:{labelPosition:"labelPosition"},attrs:UK,ngContentSelectors:$K,decls:1,vars:0,template:function(i,r){i&1&&(Me(),oe(0))},styles:[`.mat-internal-form-field{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;display:inline-flex;align-items:center;vertical-align:middle}.mat-internal-form-field>label{margin-left:0;margin-right:auto;padding-left:4px;padding-right:0;order:0}[dir=rtl] .mat-internal-form-field>label{margin-left:auto;margin-right:0;padding-left:0;padding-right:4px}.mdc-form-field--align-end>label{margin-left:auto;margin-right:0;padding-left:0;padding-right:4px;order:-1}[dir=rtl] .mdc-form-field--align-end .mdc-form-field--align-end label{margin-left:0;margin-right:auto;padding-left:4px;padding-right:0} -`],encapsulation:2,changeDetection:0})}return t})();var hk;try{hk=typeof Intl<"u"&&Intl.v8BreakIterator}catch{hk=!1}var qe=(()=>{class t{_platformId=u(Ks);isBrowser=this._platformId?U2(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||hk)&&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(i){return new(i||t)};static \u0275prov=O({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();function al(t){return Array.isArray(t)?t:[t]}var _L=new Set,$d,qm=(()=>{class t{_platform=u(qe);_nonce=u(gm,{optional:!0});_matchMedia;constructor(){this._matchMedia=this._platform.isBrowser&&window.matchMedia?window.matchMedia.bind(window):GK}matchMedia(e){return(this._platform.WEBKIT||this._platform.BLINK)&&WK(e,this._nonce),this._matchMedia(e)}static \u0275fac=function(i){return new(i||t)};static \u0275prov=O({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();function WK(t,n){if(!_L.has(t))try{$d||($d=document.createElement("style"),n&&$d.setAttribute("nonce",n),$d.setAttribute("type","text/css"),document.head.appendChild($d)),$d.sheet&&($d.sheet.insertRule(`@media ${t} {body{ }}`,0),_L.add(t))}catch(e){console.error(e)}}function GK(t){return{matches:t==="all"||t==="",media:t,addListener:()=>{},removeListener:()=>{}}}var sl=(()=>{class t{_mediaMatcher=u(qm);_zone=u(ae);_queries=new Map;_destroySubject=new z;constructor(){}ngOnDestroy(){this._destroySubject.next(),this._destroySubject.complete()}isMatched(e){return bL(al(e)).some(r=>this._registerQuery(r).mql.matches)}observe(e){let r=bL(al(e)).map(a=>this._registerQuery(a).observable),o=co(r);return o=mo(o.pipe(lt(1)),o.pipe(Ya(1),Rt(0))),o.pipe(se(a=>{let s={matches:!1,breakpoints:{}};return a.forEach(({matches:l,query:c})=>{s.matches=s.matches||l,s.breakpoints[c]=l}),s}))}_registerQuery(e){if(this._queries.has(e))return this._queries.get(e);let i=this._mediaMatcher.matchMedia(e),o={observable:new Fe(a=>{let s=l=>this._zone.run(()=>a.next(l));return i.addListener(s),()=>{i.removeListener(s)}}).pipe(He(i),se(({matches:a})=>({query:e,matches:a})),Te(this._destroySubject)),mql:i};return this._queries.set(e,o),o}static \u0275fac=function(i){return new(i||t)};static \u0275prov=O({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();function bL(t){return t.map(n=>n.split(",")).reduce((n,e)=>n.concat(e)).map(n=>n.trim())}var F0={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 qK=new T("MATERIAL_ANIMATIONS");var vL=null;function pk(){return u(qK,{optional:!0})?.animationsDisabled||u(Yp,{optional:!0})==="NoopAnimations"?"di-disabled":(vL??=u(qm).matchMedia("(prefers-reduced-motion)").matches,vL?"reduced-motion":"enabled")}function Ye(){return pk()!=="enabled"}function Wd(t){return t.buttons===0||t.detail===0}function Gd(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 fk;function yL(){if(fk==null){let t=typeof document<"u"?document.head:null;fk=!!(t&&(t.createShadowRoot||t.attachShadow))}return fk}function gk(t){if(yL()){let n=t.getRootNode?t.getRootNode():null;if(typeof ShadowRoot<"u"&&ShadowRoot&&n instanceof ShadowRoot)return n}return null}function _o(){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 Kn(t){return t.composedPath?t.composedPath()[0]:t.target}var zf;function xL(){if(zf==null&&typeof window<"u")try{window.addEventListener("test",null,Object.defineProperty({},"passive",{get:()=>zf=!0}))}finally{zf=zf||!1}return zf}function rc(t){return xL()?t:!!t.capture}function Ln(t,n=0){return N0(t)?Number(t):arguments.length===2?n:0}function N0(t){return!isNaN(parseFloat(t))&&!isNaN(Number(t))}function Pr(t){return t instanceof q?t.nativeElement:t}var CL=new T("cdk-input-modality-detector-options"),wL={ignoreKeys:[18,17,224,91,16]},DL=650,_k={passive:!0,capture:!0},EL=(()=>{class t{_platform=u(qe);_listenerCleanups;modalityDetected;modalityChanged;get mostRecentModality(){return this._modality.value}_mostRecentTarget=null;_modality=new tt(null);_options;_lastTouchMs=0;_onKeydown=e=>{this._options?.ignoreKeys?.some(i=>i===e.keyCode)||(this._modality.next("keyboard"),this._mostRecentTarget=Kn(e))};_onMousedown=e=>{Date.now()-this._lastTouchMs{if(Gd(e)){this._modality.next("keyboard");return}this._lastTouchMs=Date.now(),this._modality.next("touch"),this._mostRecentTarget=Kn(e)};constructor(){let e=u(ae),i=u(ge),r=u(CL,{optional:!0});if(this._options=M(M({},wL),r),this.modalityDetected=this._modality.pipe(Ya(1)),this.modalityChanged=this.modalityDetected.pipe(Sn()),this._platform.isBrowser){let o=u(cn).createRenderer(null,null);this._listenerCleanups=e.runOutsideAngular(()=>[o.listen(i,"keydown",this._onKeydown,_k),o.listen(i,"mousedown",this._onMousedown,_k),o.listen(i,"touchstart",this._onTouchstart,_k)])}}ngOnDestroy(){this._modality.complete(),this._listenerCleanups?.forEach(e=>e())}static \u0275fac=function(i){return new(i||t)};static \u0275prov=O({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),Uf=(function(t){return t[t.IMMEDIATE=0]="IMMEDIATE",t[t.EVENTUAL=1]="EVENTUAL",t})(Uf||{}),ML=new T("cdk-focus-monitor-default-options"),L0=rc({passive:!0,capture:!0}),Yt=(()=>{class t{_ngZone=u(ae);_platform=u(qe);_inputModalityDetector=u(EL);_origin=null;_lastFocusOrigin;_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=u(ge);_stopInputModalityDetector=new z;constructor(){let e=u(ML,{optional:!0});this._detectionMode=e?.detectionMode||Uf.IMMEDIATE}_rootNodeFocusAndBlurListener=e=>{let i=Kn(e);for(let r=i;r;r=r.parentElement)e.type==="focus"?this._onFocus(e,r):this._onBlur(e,r)};monitor(e,i=!1){let r=Pr(e);if(!this._platform.isBrowser||r.nodeType!==1)return Q();let o=gk(r)||this._document,a=this._elementInfo.get(r);if(a)return i&&(a.checkChildren=!0),a.subject;let s={checkChildren:i,subject:new z,rootNode:o};return this._elementInfo.set(r,s),this._registerGlobalListeners(s),s.subject}stopMonitoring(e){let i=Pr(e),r=this._elementInfo.get(i);r&&(r.subject.complete(),this._setClasses(i),this._elementInfo.delete(i),this._removeGlobalListeners(r))}focusVia(e,i,r){let o=Pr(e),a=this._document.activeElement;o===a?this._getClosestElementsInfo(o).forEach(([s,l])=>this._originChanged(s,i,l)):(this._setOrigin(i),typeof o.focus=="function"&&o.focus(r))}ngOnDestroy(){this._elementInfo.forEach((e,i)=>this.stopMonitoring(i))}_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===Uf.EVENTUAL||!!e?.contains(this._inputModalityDetector._mostRecentTarget)}_setClasses(e,i){e.classList.toggle("cdk-focused",!!i),e.classList.toggle("cdk-touch-focused",i==="touch"),e.classList.toggle("cdk-keyboard-focused",i==="keyboard"),e.classList.toggle("cdk-mouse-focused",i==="mouse"),e.classList.toggle("cdk-program-focused",i==="program")}_setOrigin(e,i=!1){this._ngZone.runOutsideAngular(()=>{if(this._origin=e,this._originFromTouchInteraction=e==="touch"&&i,this._detectionMode===Uf.IMMEDIATE){clearTimeout(this._originTimeoutId);let r=this._originFromTouchInteraction?DL:1;this._originTimeoutId=setTimeout(()=>this._origin=null,r)}})}_onFocus(e,i){let r=this._elementInfo.get(i),o=Kn(e);!r||!r.checkChildren&&i!==o||this._originChanged(i,this._getFocusOrigin(o),r)}_onBlur(e,i){let r=this._elementInfo.get(i);!r||r.checkChildren&&e.relatedTarget instanceof Node&&i.contains(e.relatedTarget)||(this._setClasses(i),this._emitOrigin(r,null))}_emitOrigin(e,i){e.subject.observers.length&&this._ngZone.run(()=>e.subject.next(i))}_registerGlobalListeners(e){if(!this._platform.isBrowser)return;let i=e.rootNode,r=this._rootNodeFocusListenerCount.get(i)||0;r||this._ngZone.runOutsideAngular(()=>{i.addEventListener("focus",this._rootNodeFocusAndBlurListener,L0),i.addEventListener("blur",this._rootNodeFocusAndBlurListener,L0)}),this._rootNodeFocusListenerCount.set(i,r+1),++this._monitoredElementCount===1&&(this._ngZone.runOutsideAngular(()=>{this._getWindow().addEventListener("focus",this._windowFocusListener)}),this._inputModalityDetector.modalityDetected.pipe(Te(this._stopInputModalityDetector)).subscribe(o=>{this._setOrigin(o,!0)}))}_removeGlobalListeners(e){let i=e.rootNode;if(this._rootNodeFocusListenerCount.has(i)){let r=this._rootNodeFocusListenerCount.get(i);r>1?this._rootNodeFocusListenerCount.set(i,r-1):(i.removeEventListener("focus",this._rootNodeFocusAndBlurListener,L0),i.removeEventListener("blur",this._rootNodeFocusAndBlurListener,L0),this._rootNodeFocusListenerCount.delete(i))}--this._monitoredElementCount||(this._getWindow().removeEventListener("focus",this._windowFocusListener),this._stopInputModalityDetector.next(),clearTimeout(this._windowFocusTimeoutId),clearTimeout(this._originTimeoutId))}_originChanged(e,i,r){this._setClasses(e,i),this._emitOrigin(r,i),this._lastFocusOrigin=i}_getClosestElementsInfo(e){let i=[];return this._elementInfo.forEach((r,o)=>{(o===e||r.checkChildren&&o.contains(e))&&i.push([o,r])}),i}_isLastInteractionFromInputLabel(e){let{_mostRecentTarget:i,mostRecentModality:r}=this._inputModalityDetector;if(r!=="mouse"||!i||i===e||e.nodeName!=="INPUT"&&e.nodeName!=="TEXTAREA"||e.disabled)return!1;let o=e.labels;if(o){for(let a=0;a{class t{_elementRef=u(q);_focusMonitor=u(Yt);_monitorSubscription;_focusOrigin=null;cdkFocusChange=new U;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(i=>{this._focusOrigin=i,this.cdkFocusChange.emit(i)})}ngOnDestroy(){this._focusMonitor.stopMonitoring(this._elementRef),this._monitorSubscription&&this._monitorSubscription.unsubscribe()}static \u0275fac=function(i){return new(i||t)};static \u0275dir=F({type:t,selectors:[["","cdkMonitorElementFocus",""],["","cdkMonitorSubtreeFocus",""]],outputs:{cdkFocusChange:"cdkFocusChange"},exportAs:["cdkMonitorFocus"]})}return t})();var V0=new WeakMap,ut=(()=>{class t{_appRef;_injector=u(de);_environmentInjector=u(Wt);load(e){let i=this._appRef=this._appRef||this._injector.get(Gn),r=V0.get(i);r||(r={loaders:new Set,refs:[]},V0.set(i,r),i.onDestroy(()=>{V0.get(i)?.refs.forEach(o=>o.destroy()),V0.delete(i)})),r.loaders.has(e)||(r.loaders.add(e),r.refs.push(Mm(e,{environmentInjector:this._environmentInjector})))}static \u0275fac=function(i){return new(i||t)};static \u0275prov=O({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();var Qr=(()=>{class t{static \u0275fac=function(i){return new(i||t)};static \u0275cmp=E({type:t,selectors:[["ng-component"]],exportAs:["cdkVisuallyHidden"],decls:0,vars:0,template:function(i,r){},styles:[`.cdk-visually-hidden{border:0;clip:rect(0 0 0 0);height:1px;margin:-1px;overflow:hidden;padding:0;position:absolute;width:1px;white-space:nowrap;outline:0;-webkit-appearance:none;-moz-appearance:none;left:0}[dir=rtl] .cdk-visually-hidden{left:auto;right:0} -`],encapsulation:2,changeDetection:0})}return t})();function YK(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(i){return new(i||t)};static \u0275prov=O({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),SL=(()=>{class t{_mutationObserverFactory=u(kL);_observedElements=new Map;_ngZone=u(ae);constructor(){}ngOnDestroy(){this._observedElements.forEach((e,i)=>this._cleanupObserver(i))}observe(e){let i=Pr(e);return new Fe(r=>{let a=this._observeElement(i).pipe(se(s=>s.filter(l=>!YK(l))),ce(s=>!!s.length)).subscribe(s=>{this._ngZone.run(()=>{r.next(s)})});return()=>{a.unsubscribe(),this._unobserveElement(i)}})}_observeElement(e){return this._ngZone.runOutsideAngular(()=>{if(this._observedElements.has(e))this._observedElements.get(e).count++;else{let i=new z,r=this._mutationObserverFactory.create(o=>i.next(o));r&&r.observe(e,{characterData:!0,childList:!0,subtree:!0}),this._observedElements.set(e,{observer:r,stream:i,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:i,stream:r}=this._observedElements.get(e);i&&i.disconnect(),r.complete(),this._observedElements.delete(e)}}static \u0275fac=function(i){return new(i||t)};static \u0275prov=O({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),Wf=(()=>{class t{_contentObserver=u(SL);_elementRef=u(q);event=new U;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=Ln(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(Rt(this.debounce)):e).subscribe(this.event)}_unsubscribe(){this._currentSubscription?.unsubscribe()}static \u0275fac=function(i){return new(i||t)};static \u0275dir=F({type:t,selectors:[["","cdkObserveContent",""]],inputs:{disabled:[2,"cdkObserveContentDisabled","disabled",V],debounce:"debounce"},outputs:{event:"cdkObserveContent"},exportAs:["cdkObserveContent"]})}return t})(),Ym=(()=>{class t{static \u0275fac=function(i){return new(i||t)};static \u0275mod=ee({type:t});static \u0275inj=J({providers:[kL]})}return t})();var ac=(()=>{class t{_platform=u(qe);constructor(){}isDisabled(e){return e.hasAttribute("disabled")}isVisible(e){return KK(e)&&getComputedStyle(e).visibility==="visible"}isTabbable(e){if(!this._platform.isBrowser)return!1;let i=QK(rZ(e));if(i&&(TL(i)===-1||!this.isVisible(i)))return!1;let r=e.nodeName.toLowerCase(),o=TL(e);return e.hasAttribute("contenteditable")?o!==-1:r==="iframe"||r==="object"||this._platform.WEBKIT&&this._platform.IOS&&!iZ(e)?!1:r==="audio"?e.hasAttribute("controls")?o!==-1:!1:r==="video"?o===-1?!1:o!==null?!0:this._platform.FIREFOX||e.hasAttribute("controls"):e.tabIndex>=0}isFocusable(e,i){return nZ(e)&&!this.isDisabled(e)&&(i?.ignoreVisibility||this.isVisible(e))}static \u0275fac=function(i){return new(i||t)};static \u0275prov=O({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();function QK(t){try{return t.frameElement}catch{return null}}function KK(t){return!!(t.offsetWidth||t.offsetHeight||typeof t.getClientRects=="function"&&t.getClientRects().length)}function ZK(t){let n=t.nodeName.toLowerCase();return n==="input"||n==="select"||n==="button"||n==="textarea"}function XK(t){return eZ(t)&&t.type=="hidden"}function JK(t){return tZ(t)&&t.hasAttribute("href")}function eZ(t){return t.nodeName.toLowerCase()=="input"}function tZ(t){return t.nodeName.toLowerCase()=="a"}function OL(t){if(!t.hasAttribute("tabindex")||t.tabIndex===void 0)return!1;let n=t.getAttribute("tabindex");return!!(n&&!isNaN(parseInt(n,10)))}function TL(t){if(!OL(t))return null;let n=parseInt(t.getAttribute("tabindex")||"",10);return isNaN(n)?-1:n}function iZ(t){let n=t.nodeName.toLowerCase(),e=n==="input"&&t.type;return e==="text"||e==="password"||n==="select"||n==="textarea"}function nZ(t){return XK(t)?!1:ZK(t)||JK(t)||t.hasAttribute("contenteditable")||OL(t)}function rZ(t){return t.ownerDocument&&t.ownerDocument.defaultView||window}var B0=class{_element;_checker;_ngZone;_document;_injector;_startAnchor;_endAnchor;_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,i,r,o=!1,a){this._element=n,this._checker=e,this._ngZone=i,this._document=r,this._injector=a,o||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 i=this._getFirstTabbableElement(e);return i?.focus(n),!!i}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 i=0;i=0;i--){let r=e[i].nodeType===this._document.ELEMENT_NODE?this._getLastTabbableElement(e[i]):null;if(r)return r}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?pt(n,{injector:this._injector}):setTimeout(n)}},Qm=(()=>{class t{_checker=u(ac);_ngZone=u(ae);_document=u(ge);_injector=u(de);constructor(){u(ut).load(Qr)}create(e,i=!1){return new B0(e,this._checker,this._ngZone,this._document,i,this._injector)}static \u0275fac=function(i){return new(i||t)};static \u0275prov=O({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),vk=(()=>{class t{_elementRef=u(q);_focusTrapFactory=u(Qm);focusTrap;_previouslyFocusedElement=null;get enabled(){return this.focusTrap?.enabled||!1}set enabled(e){this.focusTrap&&(this.focusTrap.enabled=e)}autoCapture;constructor(){u(qe).isBrowser&&(this.focusTrap=this._focusTrapFactory.create(this._elementRef.nativeElement,!0))}ngOnDestroy(){this.focusTrap?.destroy(),this._previouslyFocusedElement&&(this._previouslyFocusedElement.focus(),this._previouslyFocusedElement=null)}ngAfterContentInit(){this.focusTrap?.attachAnchors(),this.autoCapture&&this._captureFocus()}ngDoCheck(){this.focusTrap&&!this.focusTrap.hasAttached()&&this.focusTrap.attachAnchors()}ngOnChanges(e){let i=e.autoCapture;i&&!i.firstChange&&this.autoCapture&&this.focusTrap?.hasAttached()&&this._captureFocus()}_captureFocus(){this._previouslyFocusedElement=_o(),this.focusTrap?.focusInitialElementWhenReady()}static \u0275fac=function(i){return new(i||t)};static \u0275dir=F({type:t,selectors:[["","cdkTrapFocus",""]],inputs:{enabled:[2,"cdkTrapFocus","enabled",V],autoCapture:[2,"cdkTrapFocusAutoCapture","autoCapture",V]},exportAs:["cdkTrapFocus"],features:[Ae]})}return t})(),RL=new T("liveAnnouncerElement",{providedIn:"root",factory:PL});function PL(){return null}var FL=new T("LIVE_ANNOUNCER_DEFAULT_OPTIONS"),oZ=0,Gf=(()=>{class t{_ngZone=u(ae);_defaultOptions=u(FL,{optional:!0});_liveElement;_document=u(ge);_previousTimeout;_currentPromise;_currentResolve;constructor(){let e=u(RL,{optional:!0});this._liveElement=e||this._createLiveElement()}announce(e,...i){let r=this._defaultOptions,o,a;return i.length===1&&typeof i[0]=="number"?a=i[0]:[o,a]=i,this.clear(),clearTimeout(this._previousTimeout),o||(o=r&&r.politeness?r.politeness:"polite"),a==null&&r&&(a=r.duration),this._liveElement.setAttribute("aria-live",o),this._liveElement.id&&this._exposeAnnouncerToModals(this._liveElement.id),this._ngZone.runOutsideAngular(()=>(this._currentPromise||(this._currentPromise=new Promise(s=>this._currentResolve=s)),clearTimeout(this._previousTimeout),this._previousTimeout=setTimeout(()=>{this._liveElement.textContent=e,typeof a=="number"&&(this._previousTimeout=setTimeout(()=>this.clear(),a)),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",i=this._document.getElementsByClassName(e),r=this._document.createElement("div");for(let o=0;o .cdk-overlay-container [aria-modal="true"]');for(let r=0;r{class t{_platform=u(qe);_hasCheckedHighContrastMode;_document=u(ge);_breakpointSubscription;constructor(){this._breakpointSubscription=u(sl).observe("(forced-colors: active)").subscribe(()=>{this._hasCheckedHighContrastMode&&(this._hasCheckedHighContrastMode=!1,this._applyBodyHighContrastModeCssClasses())})}getHighContrastMode(){if(!this._platform.isBrowser)return oc.NONE;let e=this._document.createElement("div");e.style.backgroundColor="rgb(1,2,3)",e.style.position="absolute",this._document.body.appendChild(e);let i=this._document.defaultView||window,r=i&&i.getComputedStyle?i.getComputedStyle(e):null,o=(r&&r.backgroundColor||"").replace(/ /g,"");switch(e.remove(),o){case"rgb(0,0,0)":case"rgb(45,50,54)":case"rgb(32,32,32)":return oc.WHITE_ON_BLACK;case"rgb(255,255,255)":case"rgb(255,250,239)":return oc.BLACK_ON_WHITE}return oc.NONE}ngOnDestroy(){this._breakpointSubscription.unsubscribe()}_applyBodyHighContrastModeCssClasses(){if(!this._hasCheckedHighContrastMode&&this._platform.isBrowser&&this._document.body){let e=this._document.body.classList;e.remove(bk,IL,AL),this._hasCheckedHighContrastMode=!0;let i=this.getHighContrastMode();i===oc.BLACK_ON_WHITE?e.add(bk,IL):i===oc.WHITE_ON_BLACK&&e.add(bk,AL)}}static \u0275fac=function(i){return new(i||t)};static \u0275prov=O({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),ll=(()=>{class t{constructor(){u(j0)._applyBodyHighContrastModeCssClasses()}static \u0275fac=function(i){return new(i||t)};static \u0275mod=ee({type:t});static \u0275inj=J({imports:[Ym]})}return t})();var yk={},Ze=(()=>{class t{_appId=u(ql);getId(e){return this._appId!=="ng"&&(e+=this._appId),yk.hasOwnProperty(e)||(yk[e]=0),`${e}${yk[e]++}`}static \u0275fac=function(i){return new(i||t)};static \u0275prov=O({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();var aZ=200,H0=class{_letterKeyStream=new z;_items=[];_selectedItemIndex=-1;_pressedLetters=[];_skipPredicateFn;_selectedItem=new z;selectedItem=this._selectedItem;constructor(n,e){let i=typeof e?.debounceInterval=="number"?e.debounceInterval:aZ;e?.skipPredicate&&(this._skipPredicateFn=e.skipPredicate),this.setItems(n),this._setupKeyHandler(i)}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)),Rt(n),ce(()=>this._pressedLetters.length>0),se(()=>this._pressedLetters.join("").toLocaleUpperCase())).subscribe(e=>{for(let i=1;it[e]):t.altKey||t.shiftKey||t.ctrlKey||t.metaKey}var Km=class{_items;_activeItemIndex=he(-1);_activeItem=he(null);_wrap=!1;_typeaheadSubscription=ke.EMPTY;_itemChangesSubscription;_vertical=!0;_horizontal;_allowedModifierKeys=[];_homeAndEnd=!1;_pageUpAndDown={enabled:!1,delta:10};_effectRef;_typeahead;_skipPredicateFn=n=>n.disabled;constructor(n,e){this._items=n,n instanceof pr?this._itemChangesSubscription=n.changes.subscribe(i=>this._itemsChanged(i.toArray())):is(n)&&(this._effectRef=Ar(()=>this._itemsChanged(n()),{injector:e}))}tabOut=new z;change=new z;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 H0(e,{debounceInterval:typeof n=="number"?n:void 0,skipPredicate:i=>this._skipPredicateFn(i)}),this._typeaheadSubscription=this._typeahead.selectedItem.subscribe(i=>{this.setActiveItem(i)}),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,r=["altKey","ctrlKey","metaKey","shiftKey"].every(o=>!n[o]||this._allowedModifierKeys.indexOf(o)>-1);switch(e){case 9:this.tabOut.next();return;case 40:if(this._vertical&&r){this.setNextItemActive();break}else return;case 38:if(this._vertical&&r){this.setPreviousItemActive();break}else return;case 39:if(this._horizontal&&r){this._horizontal==="rtl"?this.setPreviousItemActive():this.setNextItemActive();break}else return;case 37:if(this._horizontal&&r){this._horizontal==="rtl"?this.setNextItemActive():this.setPreviousItemActive();break}else return;case 36:if(this._homeAndEnd&&r){this.setFirstItemActive();break}else return;case 35:if(this._homeAndEnd&&r){this.setLastItemActive();break}else return;case 33:if(this._pageUpAndDown.enabled&&r){let o=this._activeItemIndex()-this._pageUpAndDown.delta;this._setActiveItemByIndex(o>0?o:0,1);break}else return;case 34:if(this._pageUpAndDown.enabled&&r){let o=this._activeItemIndex()+this._pageUpAndDown.delta,a=this._getItemsArray().length;this._setActiveItemByIndex(o-1&&i!==this._activeItemIndex()&&(this._activeItemIndex.set(i),this._typeahead?.setCurrentSelectedItemIndex(i))}}};var qd=class extends Km{setActiveItem(n){this.activeItem&&this.activeItem.setInactiveStyles(),super.setActiveItem(n),this.activeItem&&this.activeItem.setActiveStyles()}};var bs=class extends Km{_origin="program";setFocusOrigin(n){return this._origin=n,this}setActiveItem(n){super.setActiveItem(n),this.activeItem&&this.activeItem.focus(this._origin)}};var BL=" ";function Zm(t,n,e){let i=W0(t,n);e=e.trim(),!i.some(r=>r.trim()===e)&&(i.push(e),t.setAttribute(n,i.join(BL)))}function sc(t,n,e){let i=W0(t,n);e=e.trim();let r=i.filter(o=>o!==e);r.length?t.setAttribute(n,r.join(BL)):t.removeAttribute(n)}function W0(t,n){return t.getAttribute(n)?.match(/\S+/g)??[]}var jL="cdk-describedby-message",$0="cdk-describedby-host",Ck=0,Xm=(()=>{class t{_platform=u(qe);_document=u(ge);_messageRegistry=new Map;_messagesContainer=null;_id=`${Ck++}`;constructor(){u(ut).load(Qr),this._id=u(ql)+"-"+Ck++}describe(e,i,r){if(!this._canBeDescribed(e,i))return;let o=xk(i,r);typeof i!="string"?(VL(i,this._id),this._messageRegistry.set(o,{messageElement:i,referenceCount:0})):this._messageRegistry.has(o)||this._createMessageElement(i,r),this._isElementDescribedByMessage(e,o)||this._addMessageReference(e,o)}removeDescription(e,i,r){if(!i||!this._isElementNode(e))return;let o=xk(i,r);if(this._isElementDescribedByMessage(e,o)&&this._removeMessageReference(e,o),typeof i=="string"){let a=this._messageRegistry.get(o);a&&a.referenceCount===0&&this._deleteMessageElement(o)}this._messagesContainer?.childNodes.length===0&&(this._messagesContainer.remove(),this._messagesContainer=null)}ngOnDestroy(){let e=this._document.querySelectorAll(`[${$0}="${this._id}"]`);for(let i=0;ir.indexOf(jL)!=0);e.setAttribute("aria-describedby",i.join(" "))}_addMessageReference(e,i){let r=this._messageRegistry.get(i);Zm(e,"aria-describedby",r.messageElement.id),e.setAttribute($0,this._id),r.referenceCount++}_removeMessageReference(e,i){let r=this._messageRegistry.get(i);r.referenceCount--,sc(e,"aria-describedby",r.messageElement.id),e.removeAttribute($0)}_isElementDescribedByMessage(e,i){let r=W0(e,"aria-describedby"),o=this._messageRegistry.get(i),a=o&&o.messageElement.id;return!!a&&r.indexOf(a)!=-1}_canBeDescribed(e,i){if(!this._isElementNode(e))return!1;if(i&&typeof i=="object")return!0;let r=i==null?"":`${i}`.trim(),o=e.getAttribute("aria-label");return r?!o||o.trim()!==r:!1}_isElementNode(e){return e.nodeType===this._document.ELEMENT_NODE}static \u0275fac=function(i){return new(i||t)};static \u0275prov=O({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();function xk(t,n){return typeof t=="string"?`${n||""}/${t}`:t}function VL(t,n){t.id||(t.id=`${jL}-${n}-${Ck++}`)}var sZ=new T("cdk-dir-doc",{providedIn:"root",factory:lZ});function lZ(){return u(ge)}var cZ=/^(ar|ckb|dv|he|iw|fa|nqo|ps|sd|ug|ur|yi|.*[-_](Adlm|Arab|Hebr|Nkoo|Rohg|Thaa))(?!.*[-_](Latn|Cyrl)($|-|_))($|-|_)/i;function wk(t){let n=t?.toLowerCase()||"";return n==="auto"&&typeof navigator<"u"&&navigator?.language?cZ.test(navigator.language)?"rtl":"ltr":n==="rtl"?"rtl":"ltr"}var Vt=(()=>{class t{get value(){return this.valueSignal()}valueSignal=he("ltr");change=new U;constructor(){let e=u(sZ,{optional:!0});if(e){let i=e.body?e.body.dir:null,r=e.documentElement?e.documentElement.dir:null;this.valueSignal.set(wk(i||r||"ltr"))}}ngOnDestroy(){this.change.complete()}static \u0275fac=function(i){return new(i||t)};static \u0275prov=O({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();var zL=(()=>{class t{_isInitialized=!1;_rawDir;change=new U;get dir(){return this.valueSignal()}set dir(e){let i=this.valueSignal();this.valueSignal.set(wk(e)),this._rawDir=e,i!==this.valueSignal()&&this._isInitialized&&this.change.emit(this.valueSignal())}get value(){return this.dir}valueSignal=he("ltr");ngAfterContentInit(){this._isInitialized=!0}ngOnDestroy(){this.change.complete()}static \u0275fac=function(i){return new(i||t)};static \u0275dir=F({type:t,selectors:[["","dir",""]],hostVars:1,hostBindings:function(i,r){i&2&&X("dir",r._rawDir)},inputs:{dir:"dir"},outputs:{change:"dirChange"},exportAs:["dir"],features:[Ce([{provide:Vt,useExisting:t}])]})}return t})(),vs=(()=>{class t{static \u0275fac=function(i){return new(i||t)};static \u0275mod=ee({type:t});static \u0275inj=J({})}return t})();var we=(()=>{class t{constructor(){u(j0)._applyBodyHighContrastModeCssClasses()}static \u0275fac=function(i){return new(i||t)};static \u0275mod=ee({type:t});static \u0275inj=J({imports:[vs,vs]})}return t})();var cl=class{_defaultMatcher;ngControl;_parentFormGroup;_parentForm;_stateChanges;errorState=!1;matcher;constructor(n,e,i,r,o){this._defaultMatcher=n,this.ngControl=e,this._parentFormGroup=i,this._parentForm=r,this._stateChanges=o}updateErrorState(){let n=this.errorState,e=this._parentFormGroup||this._parentForm,i=this.matcher||this._defaultMatcher,r=this.ngControl?this.ngControl.control:null,o=i?.isErrorState(r,e)??!1;o!==n&&(this.errorState=o,this._stateChanges.next())}};var ys=new T("MAT_DATE_LOCALE",{providedIn:"root",factory:uZ});function uZ(){return u(el)}var Jm="Method not implemented",Li=class{locale;_localeChanges=new z;localeChanges=this._localeChanges;setTime(n,e,i,r){throw new Error(Jm)}getHours(n){throw new Error(Jm)}getMinutes(n){throw new Error(Jm)}getSeconds(n){throw new Error(Jm)}parseTime(n,e){throw new Error(Jm)}addSeconds(n,e){throw new Error(Jm)}getValidDateOrNull(n){return this.isDateInstance(n)&&this.isValid(n)?n:null}deserialize(n){return n==null||this.isDateInstance(n)&&this.isValid(n)?n:this.invalid()}setLocale(n){this.locale=n,this._localeChanges.next()}compareDate(n,e){return this.getYear(n)-this.getYear(e)||this.getMonth(n)-this.getMonth(e)||this.getDate(n)-this.getDate(e)}compareTime(n,e){return this.getHours(n)-this.getHours(e)||this.getMinutes(n)-this.getMinutes(e)||this.getSeconds(n)-this.getSeconds(e)}sameDate(n,e){if(n&&e){let i=this.isValid(n),r=this.isValid(e);return i&&r?!this.compareDate(n,e):i==r}return n==e}sameTime(n,e){if(n&&e){let i=this.isValid(n),r=this.isValid(e);return i&&r?!this.compareTime(n,e):i==r}return n==e}clampDate(n,e,i){return e&&this.compareDate(n,e)<0?e:i&&this.compareDate(n,i)>0?i:n}},xs=new T("mat-date-formats");var dl=(()=>{class t{isErrorState(e,i){return!!(e&&e.invalid&&(e.touched||i&&i.submitted))}static \u0275fac=function(i){return new(i||t)};static \u0275prov=O({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();var Di=(()=>{class t{static \u0275fac=function(i){return new(i||t)};static \u0275cmp=E({type:t,selectors:[["structural-styles"]],decls:0,vars:0,template:function(i,r){},styles:[`.mat-focus-indicator{position:relative}.mat-focus-indicator::before{top:0;left:0;right:0;bottom:0;position:absolute;box-sizing:border-box;pointer-events:none;display:var(--mat-focus-indicator-display, none);border-width:var(--mat-focus-indicator-border-width, 3px);border-style:var(--mat-focus-indicator-border-style, solid);border-color:var(--mat-focus-indicator-border-color, transparent);border-radius:var(--mat-focus-indicator-border-radius, 4px)}.mat-focus-indicator:focus::before{content:""}@media(forced-colors: active){html{--mat-focus-indicator-display: block}} -`],encapsulation:2,changeDetection:0})}return t})();var Aa=(function(t){return t[t.NORMAL=0]="NORMAL",t[t.NEGATED=1]="NEGATED",t[t.INVERTED=2]="INVERTED",t})(Aa||{}),G0,Yd;function q0(){if(Yd==null){if(typeof document!="object"||!document||typeof Element!="function"||!Element)return Yd=!1,Yd;if(document.documentElement?.style&&"scrollBehavior"in document.documentElement.style)Yd=!0;else{let t=Element.prototype.scrollTo;t?Yd=!/\{\s*\[native code\]\s*\}/.test(t.toString()):Yd=!1}}return Yd}function eh(){if(typeof document!="object"||!document)return Aa.NORMAL;if(G0==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"),i=e.style;i.width="2px",i.height="1px",t.appendChild(e),document.body.appendChild(t),G0=Aa.NORMAL,t.scrollLeft===0&&(t.scrollLeft=1,G0=t.scrollLeft===0?Aa.NEGATED:Aa.INVERTED),t.remove()}return G0}function Dk(){return typeof __karma__<"u"&&!!__karma__||typeof jasmine<"u"&&!!jasmine||typeof jest<"u"&&!!jest||typeof Mocha<"u"&&!!Mocha}var th,UL=["color","button","checkbox","date","datetime-local","email","file","hidden","image","month","number","password","radio","range","reset","search","submit","tel","text","time","url","week"];function Ek(){if(th)return th;if(typeof document!="object"||!document)return th=new Set(UL),th;let t=document.createElement("input");return th=new Set(UL.filter(n=>(t.setAttribute("type",n),t.type===n))),th}function on(t){return t==null?"":typeof t=="string"?t:`${t}px`}function Ai(t){return t!=null&&`${t}`!="false"}function $L(t,n=/\s+/){let e=[];if(t!=null){let i=Array.isArray(t)?t:`${t}`.split(n);for(let r of i){let o=`${r}`.trim();o&&e.push(o)}}return e}var vo=(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})(vo||{}),Y0=class{_renderer;element;config;_animationForciblyDisabledThroughCss;state=vo.HIDDEN;constructor(n,e,i,r=!1){this._renderer=n,this.element=e,this.config=i,this._animationForciblyDisabledThroughCss=r}fadeOut(){this._renderer.fadeOutRipple(this)}},WL=rc({passive:!0,capture:!0}),Mk=class{_events=new Map;addHandler(n,e,i,r){let o=this._events.get(e);if(o){let a=o.get(i);a?a.add(r):o.set(i,new Set([r]))}else this._events.set(e,new Map([[i,new Set([r])]])),n.runOutsideAngular(()=>{document.addEventListener(e,this._delegateEventHandler,WL)})}removeHandler(n,e,i){let r=this._events.get(n);if(!r)return;let o=r.get(e);o&&(o.delete(i),o.size===0&&r.delete(e),r.size===0&&(this._events.delete(n),document.removeEventListener(n,this._delegateEventHandler,WL)))}_delegateEventHandler=n=>{let e=Kn(n);e&&this._events.get(n.type)?.forEach((i,r)=>{(r===e||r.contains(e))&&i.forEach(o=>o.handleEvent(n))})}},ih={enterDuration:225,exitDuration:150},mZ=800,GL=rc({passive:!0,capture:!0}),qL=["mousedown","touchstart"],YL=["mouseup","mouseleave","touchend","touchcancel"],hZ=(()=>{class t{static \u0275fac=function(i){return new(i||t)};static \u0275cmp=E({type:t,selectors:[["ng-component"]],hostAttrs:["mat-ripple-style-loader",""],decls:0,vars:0,template:function(i,r){},styles:[`.mat-ripple{overflow:hidden;position:relative}.mat-ripple:not(:empty){transform:translateZ(0)}.mat-ripple.mat-ripple-unbounded{overflow:visible}.mat-ripple-element{position:absolute;border-radius:50%;pointer-events:none;transition:opacity,transform 0ms cubic-bezier(0, 0, 0.2, 1);transform:scale3d(0, 0, 0);background-color:var(--mat-ripple-color, color-mix(in srgb, var(--mat-sys-on-surface) 10%, transparent))}@media(forced-colors: active){.mat-ripple-element{display:none}}.cdk-drag-preview .mat-ripple-element,.cdk-drag-placeholder .mat-ripple-element{display:none} -`],encapsulation:2,changeDetection:0})}return t})(),lc=class t{_target;_ngZone;_platform;_containerElement;_triggerElement;_isPointerDown=!1;_activeRipples=new Map;_mostRecentTransientRipple;_lastTouchStartEvent;_pointerUpEventsRegistered=!1;_containerRect;static _eventManager=new Mk;constructor(n,e,i,r,o){this._target=n,this._ngZone=e,this._platform=r,r.isBrowser&&(this._containerElement=Pr(i)),o&&o.get(ut).load(hZ)}fadeInRipple(n,e,i={}){let r=this._containerRect=this._containerRect||this._containerElement.getBoundingClientRect(),o=M(M({},ih),i.animation);i.centered&&(n=r.left+r.width/2,e=r.top+r.height/2);let a=i.radius||pZ(n,e,r),s=n-r.left,l=e-r.top,c=o.enterDuration,d=document.createElement("div");d.classList.add("mat-ripple-element"),d.style.left=`${s-a}px`,d.style.top=`${l-a}px`,d.style.height=`${a*2}px`,d.style.width=`${a*2}px`,i.color!=null&&(d.style.backgroundColor=i.color),d.style.transitionDuration=`${c}ms`,this._containerElement.appendChild(d);let m=window.getComputedStyle(d),f=m.transitionProperty,b=m.transitionDuration,v=f==="none"||b==="0s"||b==="0s, 0s"||r.width===0&&r.height===0,w=new Y0(this,d,i,v);d.style.transform="scale3d(1, 1, 1)",w.state=vo.FADING_IN,i.persistent||(this._mostRecentTransientRipple=w);let x=null;return!v&&(c||o.exitDuration)&&this._ngZone.runOutsideAngular(()=>{let D=()=>{x&&(x.fallbackTimer=null),clearTimeout(W),this._finishRippleTransition(w)},P=()=>this._destroyRipple(w),W=setTimeout(P,c+100);d.addEventListener("transitionend",D),d.addEventListener("transitioncancel",P),x={onTransitionEnd:D,onTransitionCancel:P,fallbackTimer:W}}),this._activeRipples.set(w,x),(v||!c)&&this._finishRippleTransition(w),w}fadeOutRipple(n){if(n.state===vo.FADING_OUT||n.state===vo.HIDDEN)return;let e=n.element,i=M(M({},ih),n.config.animation);e.style.transitionDuration=`${i.exitDuration}ms`,e.style.opacity="0",n.state=vo.FADING_OUT,(n._animationForciblyDisabledThroughCss||!i.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=Pr(n);!this._platform.isBrowser||!e||e===this._triggerElement||(this._removeTriggerEvents(),this._triggerElement=e,qL.forEach(i=>{t._eventManager.addHandler(this._ngZone,i,e,this)}))}handleEvent(n){n.type==="mousedown"?this._onMousedown(n):n.type==="touchstart"?this._onTouchStart(n):this._onPointerUp(),this._pointerUpEventsRegistered||(this._ngZone.runOutsideAngular(()=>{YL.forEach(e=>{this._triggerElement.addEventListener(e,this,GL)})}),this._pointerUpEventsRegistered=!0)}_finishRippleTransition(n){n.state===vo.FADING_IN?this._startFadeOutTransition(n):n.state===vo.FADING_OUT&&this._destroyRipple(n)}_startFadeOutTransition(n){let e=n===this._mostRecentTransientRipple,{persistent:i}=n.config;n.state=vo.VISIBLE,!i&&(!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=vo.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=Wd(n),i=this._lastTouchStartEvent&&Date.now(){let e=n.state===vo.VISIBLE||n.config.terminateOnPointerUp&&n.state===vo.FADING_IN;!n.config.persistent&&e&&n.fadeOut()}))}_getActiveRipples(){return Array.from(this._activeRipples.keys())}_removeTriggerEvents(){let n=this._triggerElement;n&&(qL.forEach(e=>t._eventManager.removeHandler(e,n,this)),this._pointerUpEventsRegistered&&(YL.forEach(e=>n.removeEventListener(e,this,GL)),this._pointerUpEventsRegistered=!1))}};function pZ(t,n,e){let i=Math.max(Math.abs(t-e.left),Math.abs(t-e.right)),r=Math.max(Math.abs(n-e.top),Math.abs(n-e.bottom));return Math.sqrt(i*i+r*r)}var Cs=new T("mat-ripple-global-options"),Vn=(()=>{class t{_elementRef=u(q);_animationsDisabled=Ye();color;unbounded;centered;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=u(ae),i=u(qe),r=u(Cs,{optional:!0}),o=u(de);this._globalOptions=r||{},this._rippleRenderer=new lc(this,e,this._elementRef,i,o)}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:M(M(M({},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,i=0,r){return typeof e=="number"?this._rippleRenderer.fadeInRipple(e,i,M(M({},this.rippleConfig),r)):this._rippleRenderer.fadeInRipple(0,0,M(M({},this.rippleConfig),e))}static \u0275fac=function(i){return new(i||t)};static \u0275dir=F({type:t,selectors:[["","mat-ripple",""],["","matRipple",""]],hostAttrs:[1,"mat-ripple"],hostVars:2,hostBindings:function(i,r){i&2&&G("mat-ripple-unbounded",r.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 yo=(()=>{class t{static \u0275fac=function(i){return new(i||t)};static \u0275mod=ee({type:t});static \u0275inj=J({imports:[we,we]})}return t})();var Qd=(()=>{class t{_animationsDisabled=Ye();state="unchecked";disabled=!1;appearance="full";constructor(){}static \u0275fac=function(i){return new(i||t)};static \u0275cmp=E({type:t,selectors:[["mat-pseudo-checkbox"]],hostAttrs:[1,"mat-pseudo-checkbox"],hostVars:12,hostBindings:function(i,r){i&2&&G("mat-pseudo-checkbox-indeterminate",r.state==="indeterminate")("mat-pseudo-checkbox-checked",r.state==="checked")("mat-pseudo-checkbox-disabled",r.disabled)("mat-pseudo-checkbox-minimal",r.appearance==="minimal")("mat-pseudo-checkbox-full",r.appearance==="full")("_mat-animation-noopable",r._animationsDisabled)},inputs:{state:"state",disabled:"disabled",appearance:"appearance"},decls:0,vars:0,template:function(i,r){},styles:[`.mat-pseudo-checkbox{border-radius:2px;cursor:pointer;display:inline-block;vertical-align:middle;box-sizing:border-box;position:relative;flex-shrink:0;transition:border-color 90ms cubic-bezier(0, 0, 0.2, 0.1),background-color 90ms cubic-bezier(0, 0, 0.2, 0.1)}.mat-pseudo-checkbox::after{position:absolute;opacity:0;content:"";border-bottom:2px solid currentColor;transition:opacity 90ms cubic-bezier(0, 0, 0.2, 0.1)}.mat-pseudo-checkbox._mat-animation-noopable{transition:none !important;animation:none !important}.mat-pseudo-checkbox._mat-animation-noopable::after{transition:none}.mat-pseudo-checkbox-disabled{cursor:default}.mat-pseudo-checkbox-indeterminate::after{left:1px;opacity:1;border-radius:2px}.mat-pseudo-checkbox-checked::after{left:1px;border-left:2px solid currentColor;transform:rotate(-45deg);opacity:1;box-sizing:content-box}.mat-pseudo-checkbox-minimal.mat-pseudo-checkbox-checked::after,.mat-pseudo-checkbox-minimal.mat-pseudo-checkbox-indeterminate::after{color:var(--mat-pseudo-checkbox-minimal-selected-checkmark-color, var(--mat-sys-primary))}.mat-pseudo-checkbox-minimal.mat-pseudo-checkbox-checked.mat-pseudo-checkbox-disabled::after,.mat-pseudo-checkbox-minimal.mat-pseudo-checkbox-indeterminate.mat-pseudo-checkbox-disabled::after{color:var(--mat-pseudo-checkbox-minimal-disabled-selected-checkmark-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent))}.mat-pseudo-checkbox-full{border-color:var(--mat-pseudo-checkbox-full-unselected-icon-color, var(--mat-sys-on-surface-variant));border-width:2px;border-style:solid}.mat-pseudo-checkbox-full.mat-pseudo-checkbox-disabled{border-color:var(--mat-pseudo-checkbox-full-disabled-unselected-icon-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent))}.mat-pseudo-checkbox-full.mat-pseudo-checkbox-checked,.mat-pseudo-checkbox-full.mat-pseudo-checkbox-indeterminate{background-color:var(--mat-pseudo-checkbox-full-selected-icon-color, var(--mat-sys-primary));border-color:rgba(0,0,0,0)}.mat-pseudo-checkbox-full.mat-pseudo-checkbox-checked::after,.mat-pseudo-checkbox-full.mat-pseudo-checkbox-indeterminate::after{color:var(--mat-pseudo-checkbox-full-selected-checkmark-color, var(--mat-sys-on-primary))}.mat-pseudo-checkbox-full.mat-pseudo-checkbox-checked.mat-pseudo-checkbox-disabled,.mat-pseudo-checkbox-full.mat-pseudo-checkbox-indeterminate.mat-pseudo-checkbox-disabled{background-color:var(--mat-pseudo-checkbox-full-disabled-selected-icon-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent))}.mat-pseudo-checkbox-full.mat-pseudo-checkbox-checked.mat-pseudo-checkbox-disabled::after,.mat-pseudo-checkbox-full.mat-pseudo-checkbox-indeterminate.mat-pseudo-checkbox-disabled::after{color:var(--mat-pseudo-checkbox-full-disabled-selected-checkmark-color, var(--mat-sys-surface))}.mat-pseudo-checkbox{width:18px;height:18px}.mat-pseudo-checkbox-minimal.mat-pseudo-checkbox-checked::after{width:14px;height:6px;transform-origin:center;top:-4.2426406871px;left:0;bottom:0;right:0;margin:auto}.mat-pseudo-checkbox-minimal.mat-pseudo-checkbox-indeterminate::after{top:8px;width:16px}.mat-pseudo-checkbox-full.mat-pseudo-checkbox-checked::after{width:10px;height:4px;transform-origin:center;top:-2.8284271247px;left:0;bottom:0;right:0;margin:auto}.mat-pseudo-checkbox-full.mat-pseudo-checkbox-indeterminate::after{top:6px;width:12px} -`],encapsulation:2,changeDetection:0})}return t})();var Q0=(()=>{class t{static \u0275fac=function(i){return new(i||t)};static \u0275mod=ee({type:t});static \u0275inj=J({imports:[we]})}return t})();var fZ=["*",[["mat-option"],["ng-container"]]],gZ=["*","mat-option, ng-container"],_Z=["text"],bZ=[[["mat-icon"]],"*"],vZ=["mat-icon","*"];function yZ(t,n){if(t&1&&k(0,"mat-pseudo-checkbox",1),t&2){let e=C();y("disabled",e.disabled)("state",e.selected?"checked":"unchecked")}}function xZ(t,n){if(t&1&&k(0,"mat-pseudo-checkbox",3),t&2){let e=C();y("disabled",e.disabled)}}function CZ(t,n){if(t&1&&(h(0,"span",4),_(1),p()),t&2){let e=C();g(),ve("(",e.group.label,")")}}var Kd=new T("MAT_OPTION_PARENT_COMPONENT"),Zd=new T("MatOptgroup"),kk=(()=>{class t{label;disabled=!1;_labelId=u(Ze).getId("mat-optgroup-label-");_inert;constructor(){let e=u(Kd,{optional:!0});this._inert=e?.inertGroups??!1}static \u0275fac=function(i){return new(i||t)};static \u0275cmp=E({type:t,selectors:[["mat-optgroup"]],hostAttrs:[1,"mat-mdc-optgroup"],hostVars:3,hostBindings:function(i,r){i&2&&X("role",r._inert?null:"group")("aria-disabled",r._inert?null:r.disabled.toString())("aria-labelledby",r._inert?null:r._labelId)},inputs:{label:"label",disabled:[2,"disabled","disabled",V]},exportAs:["matOptgroup"],features:[Ce([{provide:Zd,useExisting:t}])],ngContentSelectors:gZ,decls:5,vars:4,consts:[["role","presentation",1,"mat-mdc-optgroup-label",3,"id"],[1,"mdc-list-item__primary-text"]],template:function(i,r){i&1&&(Me(fZ),ft(0,"span",0)(1,"span",1),_(2),oe(3),vt()(),oe(4,1)),i&2&&(G("mdc-list-item--disabled",r.disabled),si("id",r._labelId),g(2),ve("",r.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));font-size:var(--mat-optgroup-label-text-size, var(--mat-sys-title-small-size));letter-spacing:var(--mat-optgroup-label-text-tracking, var(--mat-sys-title-small-tracking));font-weight:var(--mat-optgroup-label-text-weight, var(--mat-sys-title-small-weight))}.mat-mdc-optgroup-label{display:flex;position:relative;align-items:center;justify-content:flex-start;overflow:hidden;min-height:48px;padding:0 16px;outline:none}.mat-mdc-optgroup-label.mdc-list-item--disabled{opacity:.38}.mat-mdc-optgroup-label .mdc-list-item__primary-text{font-size:inherit;font-weight:inherit;letter-spacing:inherit;line-height:inherit;font-family:inherit;text-decoration:inherit;text-transform:inherit;white-space:normal;color:inherit} -`],encapsulation:2,changeDetection:0})}return t})(),nh=class{source;isUserInput;constructor(n,e=!1){this.source=n,this.isUserInput=e}},xn=(()=>{class t{_element=u(q);_changeDetectorRef=u(ye);_parent=u(Kd,{optional:!0});group=u(Zd,{optional:!0});_signalDisableRipple=!1;_selected=!1;_active=!1;_mostRecentViewValue="";get multiple(){return this._parent&&this._parent.multiple}get selected(){return this._selected}value;id=u(Ze).getId("mat-option-");get disabled(){return this.group&&this.group.disabled||this._disabled()}set disabled(e){this._disabled.set(e)}_disabled=he(!1);get disableRipple(){return this._signalDisableRipple?this._parent.disableRipple():!!this._parent?.disableRipple}get hideSingleSelectionIndicator(){return!!(this._parent&&this._parent.hideSingleSelectionIndicator)}onSelectionChange=new U;_text;_stateChanges=new z;constructor(){let e=u(ut);e.load(Di),e.load(Qr),this._signalDisableRipple=!!this._parent&&is(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,i){let r=this._getHostElement();typeof r.focus=="function"&&r.focus(i)}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)&&!Ft(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 nh(this,e))}static \u0275fac=function(i){return new(i||t)};static \u0275cmp=E({type:t,selectors:[["mat-option"]],viewQuery:function(i,r){if(i&1&&ie(_Z,7),i&2){let o;B(o=j())&&(r._text=o.first)}},hostAttrs:["role","option",1,"mat-mdc-option","mdc-list-item"],hostVars:11,hostBindings:function(i,r){i&1&&S("click",function(){return r._selectViaInteraction()})("keydown",function(a){return r._handleKeydown(a)}),i&2&&(si("id",r.id),X("aria-selected",r.selected)("aria-disabled",r.disabled.toString()),G("mdc-list-item--selected",r.selected)("mat-mdc-option-multiple",r.multiple)("mat-mdc-option-active",r.active)("mdc-list-item--disabled",r.disabled))},inputs:{value:"value",id:"id",disabled:[2,"disabled","disabled",V]},outputs:{onSelectionChange:"onSelectionChange"},exportAs:["matOption"],ngContentSelectors:vZ,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(i,r){i&1&&(Me(bZ),N(0,yZ,1,2,"mat-pseudo-checkbox",1),oe(1),h(2,"span",2,0),oe(4,1),p(),N(5,xZ,1,1,"mat-pseudo-checkbox",3),N(6,CZ,2,1,"span",4),k(7,"div",5)),i&2&&(L(r.multiple?0:-1),g(5),L(!r.multiple&&r.selected&&!r.hideSingleSelectionIndicator?5:-1),g(),L(r.group&&r.group._inert?6:-1),g(),y("matRippleTrigger",r._getHostElement())("matRippleDisabled",r.disabled||r.disableRipple))},dependencies:[Qd,Vn],styles:[`.mat-mdc-option{-webkit-user-select:none;user-select:none;-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;display:flex;position:relative;align-items:center;justify-content:flex-start;overflow:hidden;min-height:48px;padding:0 16px;cursor:pointer;-webkit-tap-highlight-color:rgba(0,0,0,0);color:var(--mat-option-label-text-color, var(--mat-sys-on-surface));font-family:var(--mat-option-label-text-font, var(--mat-sys-label-large-font));line-height:var(--mat-option-label-text-line-height, var(--mat-sys-label-large-line-height));font-size:var(--mat-option-label-text-size, var(--mat-sys-body-large-size));letter-spacing:var(--mat-option-label-text-tracking, var(--mat-sys-label-large-tracking));font-weight:var(--mat-option-label-text-weight, var(--mat-sys-body-large-weight))}.mat-mdc-option:hover:not(.mdc-list-item--disabled){background-color:var(--mat-option-hover-state-layer-color, color-mix(in srgb, var(--mat-sys-on-surface) calc(var(--mat-sys-hover-state-layer-opacity) * 100%), transparent))}.mat-mdc-option:focus.mdc-list-item,.mat-mdc-option.mat-mdc-option-active.mdc-list-item{background-color:var(--mat-option-focus-state-layer-color, color-mix(in srgb, var(--mat-sys-on-surface) calc(var(--mat-sys-focus-state-layer-opacity) * 100%), transparent));outline:0}.mat-mdc-option.mdc-list-item--selected:not(.mdc-list-item--disabled):not(.mat-mdc-option-multiple){background-color:var(--mat-option-selected-state-layer-color, var(--mat-sys-secondary-container))}.mat-mdc-option.mdc-list-item--selected:not(.mdc-list-item--disabled):not(.mat-mdc-option-multiple) .mdc-list-item__primary-text{color:var(--mat-option-selected-state-label-text-color, var(--mat-sys-on-secondary-container))}.mat-mdc-option .mat-pseudo-checkbox{--mat-pseudo-checkbox-minimal-selected-checkmark-color: var(--mat-option-selected-state-label-text-color, var(--mat-sys-on-secondary-container))}.mat-mdc-option.mdc-list-item{align-items:center;background:rgba(0,0,0,0)}.mat-mdc-option.mdc-list-item--disabled{cursor:default;pointer-events:none}.mat-mdc-option.mdc-list-item--disabled .mat-mdc-option-pseudo-checkbox,.mat-mdc-option.mdc-list-item--disabled .mdc-list-item__primary-text,.mat-mdc-option.mdc-list-item--disabled>mat-icon{opacity:.38}.mat-mdc-optgroup .mat-mdc-option:not(.mat-mdc-option-multiple){padding-left:32px}[dir=rtl] .mat-mdc-optgroup .mat-mdc-option:not(.mat-mdc-option-multiple){padding-left:16px;padding-right:32px}.mat-mdc-option .mat-icon,.mat-mdc-option .mat-pseudo-checkbox-full{margin-right:16px;flex-shrink:0}[dir=rtl] .mat-mdc-option .mat-icon,[dir=rtl] .mat-mdc-option .mat-pseudo-checkbox-full{margin-right:0;margin-left:16px}.mat-mdc-option .mat-pseudo-checkbox-minimal{margin-left:16px;flex-shrink:0}[dir=rtl] .mat-mdc-option .mat-pseudo-checkbox-minimal{margin-right:16px;margin-left:0}.mat-mdc-option .mat-mdc-option-ripple{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none}.mat-mdc-option .mdc-list-item__primary-text{white-space:normal;font-size:inherit;font-weight:inherit;letter-spacing:inherit;line-height:inherit;font-family:inherit;text-decoration:inherit;text-transform:inherit;margin-right:auto}[dir=rtl] .mat-mdc-option .mdc-list-item__primary-text{margin-right:0;margin-left:auto}@media(forced-colors: active){.mat-mdc-option.mdc-list-item--selected:not(:has(.mat-mdc-option-pseudo-checkbox))::after{content:"";position:absolute;top:50%;right:16px;transform:translateY(-50%);width:10px;height:0;border-bottom:solid 10px;border-radius:10px}[dir=rtl] .mat-mdc-option.mdc-list-item--selected:not(:has(.mat-mdc-option-pseudo-checkbox))::after{right:auto;left:16px}}.mat-mdc-option-multiple{--mat-list-list-item-selected-container-color: var(--mat-list-list-item-container-color, transparent)}.mat-mdc-option-active .mat-focus-indicator::before{content:""} -`],encapsulation:2,changeDetection:0})}return t})();function Qf(t,n,e){if(e.length){let i=n.toArray(),r=e.toArray(),o=0;for(let a=0;ae+i?Math.max(0,t-i+n):e}var rh=(()=>{class t{static \u0275fac=function(i){return new(i||t)};static \u0275mod=ee({type:t});static \u0275inj=J({imports:[yo,we,Q0,xn]})}return t})();var wZ={capture:!0},DZ=["focus","mousedown","mouseenter","touchstart"],Sk="mat-ripple-loader-uninitialized",Tk="mat-ripple-loader-class-name",QL="mat-ripple-loader-centered",K0="mat-ripple-loader-disabled",Z0=(()=>{class t{_document=u(ge);_animationsDisabled=Ye();_globalRippleOptions=u(Cs,{optional:!0});_platform=u(qe);_ngZone=u(ae);_injector=u(de);_eventCleanups;_hosts=new Map;constructor(){let e=u(cn).createRenderer(null,null);this._eventCleanups=this._ngZone.runOutsideAngular(()=>DZ.map(i=>e.listen(this._document,i,this._onInteraction,wZ)))}ngOnDestroy(){let e=this._hosts.keys();for(let i of e)this.destroyRipple(i);this._eventCleanups.forEach(i=>i())}configureRipple(e,i){e.setAttribute(Sk,this._globalRippleOptions?.namespace??""),(i.className||!e.hasAttribute(Tk))&&e.setAttribute(Tk,i.className||""),i.centered&&e.setAttribute(QL,""),i.disabled&&e.setAttribute(K0,"")}setDisabled(e,i){let r=this._hosts.get(e);r?(r.target.rippleDisabled=i,!i&&!r.hasSetUpEvents&&(r.hasSetUpEvents=!0,r.renderer.setupTriggerEvents(e))):i?e.setAttribute(K0,""):e.removeAttribute(K0)}_onInteraction=e=>{let i=Kn(e);if(i instanceof HTMLElement){let r=i.closest(`[${Sk}="${this._globalRippleOptions?.namespace??""}"]`);r&&this._createRipple(r)}};_createRipple(e){if(!this._document||this._hosts.has(e))return;e.querySelector(".mat-ripple")?.remove();let i=this._document.createElement("span");i.classList.add("mat-ripple",e.getAttribute(Tk)),e.append(i);let r=this._globalRippleOptions,o=this._animationsDisabled?0:r?.animation?.enterDuration??ih.enterDuration,a=this._animationsDisabled?0:r?.animation?.exitDuration??ih.exitDuration,s={rippleDisabled:this._animationsDisabled||r?.disabled||e.hasAttribute(K0),rippleConfig:{centered:e.hasAttribute(QL),terminateOnPointerUp:r?.terminateOnPointerUp,animation:{enterDuration:o,exitDuration:a}}},l=new lc(s,this._ngZone,i,this._platform,this._injector),c=!s.rippleDisabled;c&&l.setupTriggerEvents(e),this._hosts.set(e,{target:s,renderer:l,hasSetUpEvents:c}),e.removeAttribute(Sk)}destroyRipple(e){let i=this._hosts.get(e);i&&(i.renderer._removeTriggerEvents(),this._hosts.delete(e))}static \u0275fac=function(i){return new(i||t)};static \u0275prov=O({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();var EZ=/^\d{4}-\d{2}-\d{2}(?:T\d{2}:\d{2}:\d{2}(?:\.\d+)?(?:Z|(?:(?:\+|-)\d{2}:\d{2}))?)?$/,MZ=/^(\d?\d)[:.](\d?\d)(?:[:.](\d?\d))?\s*(AM|PM)?$/i;function Ik(t,n){let e=Array(t);for(let i=0;i{class t extends Li{useUtcForDisplay=!1;_matDateLocale=u(ys,{optional:!0});constructor(){super();let e=u(ys,{optional:!0});e!==void 0&&(this._matDateLocale=e),super.setLocale(this._matDateLocale)}getYear(e){return e.getFullYear()}getMonth(e){return e.getMonth()}getDate(e){return e.getDate()}getDayOfWeek(e){return e.getDay()}getMonthNames(e){let i=new Intl.DateTimeFormat(this.locale,{month:e,timeZone:"utc"});return Ik(12,r=>this._format(i,new Date(2017,r,1)))}getDateNames(){let e=new Intl.DateTimeFormat(this.locale,{day:"numeric",timeZone:"utc"});return Ik(31,i=>this._format(e,new Date(2017,0,i+1)))}getDayOfWeekNames(e){let i=new Intl.DateTimeFormat(this.locale,{weekday:e,timeZone:"utc"});return Ik(7,r=>this._format(i,new Date(2017,0,r+1)))}getYearName(e){let i=new Intl.DateTimeFormat(this.locale,{year:"numeric",timeZone:"utc"});return this._format(i,e)}getFirstDayOfWeek(){if(typeof Intl<"u"&&Intl.Locale){let e=new Intl.Locale(this.locale),i=(e.getWeekInfo?.()||e.weekInfo)?.firstDay??0;return i===7?0:i}return 0}getNumDaysInMonth(e){return this.getDate(this._createDateWithOverflow(this.getYear(e),this.getMonth(e)+1,0))}clone(e){return new Date(e.getTime())}createDate(e,i,r){let o=this._createDateWithOverflow(e,i,r);return o.getMonth()!=i,o}today(){return new Date}parse(e,i){return typeof e=="number"?new Date(e):e?new Date(Date.parse(e)):null}format(e,i){if(!this.isValid(e))throw Error("NativeDateAdapter: Cannot format invalid date.");let r=new Intl.DateTimeFormat(this.locale,De(M({},i),{timeZone:"utc"}));return this._format(r,e)}addCalendarYears(e,i){return this.addCalendarMonths(e,i*12)}addCalendarMonths(e,i){let r=this._createDateWithOverflow(this.getYear(e),this.getMonth(e)+i,this.getDate(e));return this.getMonth(r)!=((this.getMonth(e)+i)%12+12)%12&&(r=this._createDateWithOverflow(this.getYear(r),this.getMonth(r),0)),r}addCalendarDays(e,i){return this._createDateWithOverflow(this.getYear(e),this.getMonth(e),this.getDate(e)+i)}toIso8601(e){return[e.getUTCFullYear(),this._2digit(e.getUTCMonth()+1),this._2digit(e.getUTCDate())].join("-")}deserialize(e){if(typeof e=="string"){if(!e)return null;if(EZ.test(e)){let i=new Date(e);if(this.isValid(i))return i}}return super.deserialize(e)}isDateInstance(e){return e instanceof Date}isValid(e){return!isNaN(e.getTime())}invalid(){return new Date(NaN)}setTime(e,i,r,o){let a=this.clone(e);return a.setHours(i,r,o,0),a}getHours(e){return e.getHours()}getMinutes(e){return e.getMinutes()}getSeconds(e){return e.getSeconds()}parseTime(e,i){if(typeof e!="string")return e instanceof Date?new Date(e.getTime()):null;let r=e.trim();if(r.length===0)return null;let o=this._parseTimeString(r);if(o===null){let a=r.replace(/[^0-9:(AM|PM)]/gi,"").trim();a.length>0&&(o=this._parseTimeString(a))}return o||this.invalid()}addSeconds(e,i){return new Date(e.getTime()+i*1e3)}_createDateWithOverflow(e,i,r){let o=new Date;return o.setFullYear(e,i,r),o.setHours(0,0,0,0),o}_2digit(e){return("00"+e).slice(-2)}_format(e,i){let r=new Date;return r.setUTCFullYear(i.getFullYear(),i.getMonth(),i.getDate()),r.setUTCHours(i.getHours(),i.getMinutes(),i.getSeconds(),i.getMilliseconds()),e.format(r)}_parseTimeString(e){let i=e.toUpperCase().match(MZ);if(i){let r=parseInt(i[1]),o=parseInt(i[2]),a=i[3]==null?void 0:parseInt(i[3]),s=i[4];if(r===12?r=s==="AM"?0:r:s==="PM"&&(r+=12),Ak(r,0,23)&&Ak(o,0,59)&&(a==null||Ak(a,0,59)))return this.setTime(this.today(),r,o,a||0)}return null}static \u0275fac=function(i){return new(i||t)};static \u0275prov=O({token:t,factory:t.\u0275fac})}return t})();function Ak(t,n,e){return!isNaN(t)&&t>=n&&t<=e}var kZ={parse:{dateInput:null,timeInput:null},display:{dateInput:{year:"numeric",month:"numeric",day:"numeric"},timeInput:{hour:"numeric",minute:"numeric"},monthYearLabel:{year:"numeric",month:"short"},dateA11yLabel:{year:"numeric",month:"long",day:"numeric"},monthYearA11yLabel:{year:"numeric",month:"long"},timeOptionLabel:{hour:"numeric",minute:"numeric"}}};var ZL=(()=>{class t{static \u0275fac=function(i){return new(i||t)};static \u0275mod=ee({type:t});static \u0275inj=J({providers:[SZ()]})}return t})();function SZ(t=kZ){return[{provide:Li,useClass:KL},{provide:xs,useValue:t}]}var TZ=Math.pow(10,8)*24*60*60*1e3,Fje=-TZ,X0=6048e5,JL=864e5,Xd=6e4,Jd=36e5,eV=1e3;var IZ=3600;var tV=IZ*24,Nje=tV*7,AZ=tV*365.2425,OZ=AZ/12,Lje=OZ*3,Ok=Symbol.for("constructDateFrom");function rt(t,n){return typeof t=="function"?t(n):t&&typeof t=="object"&&Ok in t?t[Ok](n):t instanceof Date?new t.constructor(n):new Date(n)}function Ie(t,n){return rt(n||t,t)}function oh(t,n,e){let i=Ie(t,e?.in);return isNaN(n)?rt(e?.in||t,NaN):(n&&i.setDate(i.getDate()+n),i)}function ah(t,n,e){let i=Ie(t,e?.in);if(isNaN(n))return rt(e?.in||t,NaN);if(!n)return i;let r=i.getDate(),o=rt(e?.in||t,i.getTime());o.setMonth(i.getMonth()+n+1,0);let a=o.getDate();return r>=a?o:(i.setFullYear(o.getFullYear(),o.getMonth(),r),i)}function J0(t,n,e){return rt(e?.in||t,+Ie(t)+n)}function iV(t,n,e){return J0(t,n*Jd,e)}var RZ={};function Yo(){return RZ}function Zn(t,n){let e=Yo(),i=n?.weekStartsOn??n?.locale?.options?.weekStartsOn??e.weekStartsOn??e.locale?.options?.weekStartsOn??0,r=Ie(t,n?.in),o=r.getDay(),a=(o=o.getTime()?i+1:e.getTime()>=s.getTime()?i:i-1}function eu(t){let n=Ie(t),e=new Date(Date.UTC(n.getFullYear(),n.getMonth(),n.getDate(),n.getHours(),n.getMinutes(),n.getSeconds(),n.getMilliseconds()));return e.setUTCFullYear(n.getFullYear()),+t-+e}function ty(t,...n){let e=rt.bind(null,t||n.find(i=>typeof i=="object"));return n.map(e)}function Rk(t,n){let e=Ie(t,n?.in);return e.setHours(0,0,0,0),e}function nV(t,n,e){let[i,r]=ty(e?.in,t,n),o=Rk(i),a=Rk(r),s=+o-eu(o),l=+a-eu(a);return Math.round((s-l)/JL)}function rV(t,n){let e=ey(t,n),i=rt(n?.in||t,0);return i.setFullYear(e,0,4),i.setHours(0,0,0,0),Oa(i)}function oV(t,n,e){let i=Ie(t,e?.in);return i.setTime(i.getTime()+n*Xd),i}function aV(t,n,e){return J0(t,n*1e3,e)}function sV(t,n,e){return ah(t,n*12,e)}function iy(t){return t instanceof Date||typeof t=="object"&&Object.prototype.toString.call(t)==="[object Date]"}function sh(t){return!(!iy(t)&&typeof t!="number"||isNaN(+Ie(t)))}function lV(t,n){let e=Ie(t,n?.in);return e.setDate(1),e.setHours(0,0,0,0),e}function cV(t,n){let e=Ie(t,n?.in);return e.setFullYear(e.getFullYear(),0,1),e.setHours(0,0,0,0),e}var PZ={lessThanXSeconds:{one:"less than a second",other:"less than {{count}} seconds"},xSeconds:{one:"1 second",other:"{{count}} seconds"},halfAMinute:"half a minute",lessThanXMinutes:{one:"less than a minute",other:"less than {{count}} minutes"},xMinutes:{one:"1 minute",other:"{{count}} minutes"},aboutXHours:{one:"about 1 hour",other:"about {{count}} hours"},xHours:{one:"1 hour",other:"{{count}} hours"},xDays:{one:"1 day",other:"{{count}} days"},aboutXWeeks:{one:"about 1 week",other:"about {{count}} weeks"},xWeeks:{one:"1 week",other:"{{count}} weeks"},aboutXMonths:{one:"about 1 month",other:"about {{count}} months"},xMonths:{one:"1 month",other:"{{count}} months"},aboutXYears:{one:"about 1 year",other:"about {{count}} years"},xYears:{one:"1 year",other:"{{count}} years"},overXYears:{one:"over 1 year",other:"over {{count}} years"},almostXYears:{one:"almost 1 year",other:"almost {{count}} years"}},dV=(t,n,e)=>{let i,r=PZ[t];return typeof r=="string"?i=r:n===1?i=r.one:i=r.other.replace("{{count}}",n.toString()),e?.addSuffix?e.comparison&&e.comparison>0?"in "+i:i+" ago":i};function Qo(t){return(n={})=>{let e=n.width?String(n.width):t.defaultWidth;return t.formats[e]||t.formats[t.defaultWidth]}}var FZ={full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},NZ={full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},LZ={full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},uV={date:Qo({formats:FZ,defaultWidth:"full"}),time:Qo({formats:NZ,defaultWidth:"full"}),dateTime:Qo({formats:LZ,defaultWidth:"full"})};var VZ={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"},mV=(t,n,e,i)=>VZ[t];function Bn(t){return(n,e)=>{let i=e?.context?String(e.context):"standalone",r;if(i==="formatting"&&t.formattingValues){let a=t.defaultFormattingWidth||t.defaultWidth,s=e?.width?String(e.width):a;r=t.formattingValues[s]||t.formattingValues[a]}else{let a=t.defaultWidth,s=e?.width?String(e.width):t.defaultWidth;r=t.values[s]||t.values[a]}let o=t.argumentCallback?t.argumentCallback(n):n;return r[o]}}var BZ={narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},jZ={narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},HZ={narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],wide:["January","February","March","April","May","June","July","August","September","October","November","December"]},zZ={narrow:["S","M","T","W","T","F","S"],short:["Su","Mo","Tu","We","Th","Fr","Sa"],abbreviated:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],wide:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},UZ={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"}},$Z={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"}},WZ=(t,n)=>{let e=Number(t),i=e%100;if(i>20||i<10)switch(i%10){case 1:return e+"st";case 2:return e+"nd";case 3:return e+"rd"}return e+"th"},hV={ordinalNumber:WZ,era:Bn({values:BZ,defaultWidth:"wide"}),quarter:Bn({values:jZ,defaultWidth:"wide",argumentCallback:t=>t-1}),month:Bn({values:HZ,defaultWidth:"wide"}),day:Bn({values:zZ,defaultWidth:"wide"}),dayPeriod:Bn({values:UZ,defaultWidth:"wide",formattingValues:$Z,defaultFormattingWidth:"wide"})};function jn(t){return(n,e={})=>{let i=e.width,r=i&&t.matchPatterns[i]||t.matchPatterns[t.defaultMatchWidth],o=n.match(r);if(!o)return null;let a=o[0],s=i&&t.parsePatterns[i]||t.parsePatterns[t.defaultParseWidth],l=Array.isArray(s)?qZ(s,m=>m.test(a)):GZ(s,m=>m.test(a)),c;c=t.valueCallback?t.valueCallback(l):l,c=e.valueCallback?e.valueCallback(c):c;let d=n.slice(a.length);return{value:c,rest:d}}}function GZ(t,n){for(let e in t)if(Object.prototype.hasOwnProperty.call(t,e)&&n(t[e]))return e}function qZ(t,n){for(let e=0;e{let i=n.match(t.matchPattern);if(!i)return null;let r=i[0],o=n.match(t.parsePattern);if(!o)return null;let a=t.valueCallback?t.valueCallback(o[0]):o[0];a=e.valueCallback?e.valueCallback(a):a;let s=n.slice(r.length);return{value:a,rest:s}}}var YZ=/^(\d+)(th|st|nd|rd)?/i,QZ=/\d+/i,KZ={narrow:/^(b|a)/i,abbreviated:/^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,wide:/^(before christ|before common era|anno domini|common era)/i},ZZ={any:[/^b/i,/^(a|c)/i]},XZ={narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},JZ={any:[/1/i,/2/i,/3/i,/4/i]},eX={narrow:/^[jfmasond]/i,abbreviated:/^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,wide:/^(january|february|march|april|may|june|july|august|september|october|november|december)/i},tX={narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ap/i,/^may/i,/^jun/i,/^jul/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},iX={narrow:/^[smtwf]/i,short:/^(su|mo|tu|we|th|fr|sa)/i,abbreviated:/^(sun|mon|tue|wed|thu|fri|sat)/i,wide:/^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i},nX={narrow:[/^s/i,/^m/i,/^t/i,/^w/i,/^t/i,/^f/i,/^s/i],any:[/^su/i,/^m/i,/^tu/i,/^w/i,/^th/i,/^f/i,/^sa/i]},rX={narrow:/^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,any:/^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i},oX={any:{am:/^a/i,pm:/^p/i,midnight:/^mi/i,noon:/^no/i,morning:/morning/i,afternoon:/afternoon/i,evening:/evening/i,night:/night/i}},pV={ordinalNumber:lh({matchPattern:YZ,parsePattern:QZ,valueCallback:t=>parseInt(t,10)}),era:jn({matchPatterns:KZ,defaultMatchWidth:"wide",parsePatterns:ZZ,defaultParseWidth:"any"}),quarter:jn({matchPatterns:XZ,defaultMatchWidth:"wide",parsePatterns:JZ,defaultParseWidth:"any",valueCallback:t=>t+1}),month:jn({matchPatterns:eX,defaultMatchWidth:"wide",parsePatterns:tX,defaultParseWidth:"any"}),day:jn({matchPatterns:iX,defaultMatchWidth:"wide",parsePatterns:nX,defaultParseWidth:"any"}),dayPeriod:jn({matchPatterns:rX,defaultMatchWidth:"any",parsePatterns:oX,defaultParseWidth:"any"})};var tu={code:"en-US",formatDistance:dV,formatLong:uV,formatRelative:mV,localize:hV,match:pV,options:{weekStartsOn:0,firstWeekContainsDate:1}};function fV(t,n){let e=Ie(t,n?.in);return nV(e,cV(e))+1}function ny(t,n){let e=Ie(t,n?.in),i=+Oa(e)-+rV(e);return Math.round(i/X0)+1}function ch(t,n){let e=Ie(t,n?.in),i=e.getFullYear(),r=Yo(),o=n?.firstWeekContainsDate??n?.locale?.options?.firstWeekContainsDate??r.firstWeekContainsDate??r.locale?.options?.firstWeekContainsDate??1,a=rt(n?.in||t,0);a.setFullYear(i+1,0,o),a.setHours(0,0,0,0);let s=Zn(a,n),l=rt(n?.in||t,0);l.setFullYear(i,0,o),l.setHours(0,0,0,0);let c=Zn(l,n);return+e>=+s?i+1:+e>=+c?i:i-1}function gV(t,n){let e=Yo(),i=n?.firstWeekContainsDate??n?.locale?.options?.firstWeekContainsDate??e.firstWeekContainsDate??e.locale?.options?.firstWeekContainsDate??1,r=ch(t,n),o=rt(n?.in||t,0);return o.setFullYear(r,0,i),o.setHours(0,0,0,0),Zn(o,n)}function dh(t,n){let e=Ie(t,n?.in),i=+Zn(e,n)-+gV(e,n);return Math.round(i/X0)+1}function wt(t,n){let e=t<0?"-":"",i=Math.abs(t).toString().padStart(n,"0");return e+i}var ul={y(t,n){let e=t.getFullYear(),i=e>0?e:1-e;return wt(n==="yy"?i%100:i,n.length)},M(t,n){let e=t.getMonth();return n==="M"?String(e+1):wt(e+1,2)},d(t,n){return wt(t.getDate(),n.length)},a(t,n){let e=t.getHours()/12>=1?"pm":"am";switch(n){case"a":case"aa":return e.toUpperCase();case"aaa":return e;case"aaaaa":return e[0];case"aaaa":default:return e==="am"?"a.m.":"p.m."}},h(t,n){return wt(t.getHours()%12||12,n.length)},H(t,n){return wt(t.getHours(),n.length)},m(t,n){return wt(t.getMinutes(),n.length)},s(t,n){return wt(t.getSeconds(),n.length)},S(t,n){let e=n.length,i=t.getMilliseconds(),r=Math.trunc(i*Math.pow(10,e-3));return wt(r,n.length)}};var uh={am:"am",pm:"pm",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},Pk={G:function(t,n,e){let i=t.getFullYear()>0?1:0;switch(n){case"G":case"GG":case"GGG":return e.era(i,{width:"abbreviated"});case"GGGGG":return e.era(i,{width:"narrow"});case"GGGG":default:return e.era(i,{width:"wide"})}},y:function(t,n,e){if(n==="yo"){let i=t.getFullYear(),r=i>0?i:1-i;return e.ordinalNumber(r,{unit:"year"})}return ul.y(t,n)},Y:function(t,n,e,i){let r=ch(t,i),o=r>0?r:1-r;if(n==="YY"){let a=o%100;return wt(a,2)}return n==="Yo"?e.ordinalNumber(o,{unit:"year"}):wt(o,n.length)},R:function(t,n){let e=ey(t);return wt(e,n.length)},u:function(t,n){let e=t.getFullYear();return wt(e,n.length)},Q:function(t,n,e){let i=Math.ceil((t.getMonth()+1)/3);switch(n){case"Q":return String(i);case"QQ":return wt(i,2);case"Qo":return e.ordinalNumber(i,{unit:"quarter"});case"QQQ":return e.quarter(i,{width:"abbreviated",context:"formatting"});case"QQQQQ":return e.quarter(i,{width:"narrow",context:"formatting"});case"QQQQ":default:return e.quarter(i,{width:"wide",context:"formatting"})}},q:function(t,n,e){let i=Math.ceil((t.getMonth()+1)/3);switch(n){case"q":return String(i);case"qq":return wt(i,2);case"qo":return e.ordinalNumber(i,{unit:"quarter"});case"qqq":return e.quarter(i,{width:"abbreviated",context:"standalone"});case"qqqqq":return e.quarter(i,{width:"narrow",context:"standalone"});case"qqqq":default:return e.quarter(i,{width:"wide",context:"standalone"})}},M:function(t,n,e){let i=t.getMonth();switch(n){case"M":case"MM":return ul.M(t,n);case"Mo":return e.ordinalNumber(i+1,{unit:"month"});case"MMM":return e.month(i,{width:"abbreviated",context:"formatting"});case"MMMMM":return e.month(i,{width:"narrow",context:"formatting"});case"MMMM":default:return e.month(i,{width:"wide",context:"formatting"})}},L:function(t,n,e){let i=t.getMonth();switch(n){case"L":return String(i+1);case"LL":return wt(i+1,2);case"Lo":return e.ordinalNumber(i+1,{unit:"month"});case"LLL":return e.month(i,{width:"abbreviated",context:"standalone"});case"LLLLL":return e.month(i,{width:"narrow",context:"standalone"});case"LLLL":default:return e.month(i,{width:"wide",context:"standalone"})}},w:function(t,n,e,i){let r=dh(t,i);return n==="wo"?e.ordinalNumber(r,{unit:"week"}):wt(r,n.length)},I:function(t,n,e){let i=ny(t);return n==="Io"?e.ordinalNumber(i,{unit:"week"}):wt(i,n.length)},d:function(t,n,e){return n==="do"?e.ordinalNumber(t.getDate(),{unit:"date"}):ul.d(t,n)},D:function(t,n,e){let i=fV(t);return n==="Do"?e.ordinalNumber(i,{unit:"dayOfYear"}):wt(i,n.length)},E:function(t,n,e){let i=t.getDay();switch(n){case"E":case"EE":case"EEE":return e.day(i,{width:"abbreviated",context:"formatting"});case"EEEEE":return e.day(i,{width:"narrow",context:"formatting"});case"EEEEEE":return e.day(i,{width:"short",context:"formatting"});case"EEEE":default:return e.day(i,{width:"wide",context:"formatting"})}},e:function(t,n,e,i){let r=t.getDay(),o=(r-i.weekStartsOn+8)%7||7;switch(n){case"e":return String(o);case"ee":return wt(o,2);case"eo":return e.ordinalNumber(o,{unit:"day"});case"eee":return e.day(r,{width:"abbreviated",context:"formatting"});case"eeeee":return e.day(r,{width:"narrow",context:"formatting"});case"eeeeee":return e.day(r,{width:"short",context:"formatting"});case"eeee":default:return e.day(r,{width:"wide",context:"formatting"})}},c:function(t,n,e,i){let r=t.getDay(),o=(r-i.weekStartsOn+8)%7||7;switch(n){case"c":return String(o);case"cc":return wt(o,n.length);case"co":return e.ordinalNumber(o,{unit:"day"});case"ccc":return e.day(r,{width:"abbreviated",context:"standalone"});case"ccccc":return e.day(r,{width:"narrow",context:"standalone"});case"cccccc":return e.day(r,{width:"short",context:"standalone"});case"cccc":default:return e.day(r,{width:"wide",context:"standalone"})}},i:function(t,n,e){let i=t.getDay(),r=i===0?7:i;switch(n){case"i":return String(r);case"ii":return wt(r,n.length);case"io":return e.ordinalNumber(r,{unit:"day"});case"iii":return e.day(i,{width:"abbreviated",context:"formatting"});case"iiiii":return e.day(i,{width:"narrow",context:"formatting"});case"iiiiii":return e.day(i,{width:"short",context:"formatting"});case"iiii":default:return e.day(i,{width:"wide",context:"formatting"})}},a:function(t,n,e){let r=t.getHours()/12>=1?"pm":"am";switch(n){case"a":case"aa":return e.dayPeriod(r,{width:"abbreviated",context:"formatting"});case"aaa":return e.dayPeriod(r,{width:"abbreviated",context:"formatting"}).toLowerCase();case"aaaaa":return e.dayPeriod(r,{width:"narrow",context:"formatting"});case"aaaa":default:return e.dayPeriod(r,{width:"wide",context:"formatting"})}},b:function(t,n,e){let i=t.getHours(),r;switch(i===12?r=uh.noon:i===0?r=uh.midnight:r=i/12>=1?"pm":"am",n){case"b":case"bb":return e.dayPeriod(r,{width:"abbreviated",context:"formatting"});case"bbb":return e.dayPeriod(r,{width:"abbreviated",context:"formatting"}).toLowerCase();case"bbbbb":return e.dayPeriod(r,{width:"narrow",context:"formatting"});case"bbbb":default:return e.dayPeriod(r,{width:"wide",context:"formatting"})}},B:function(t,n,e){let i=t.getHours(),r;switch(i>=17?r=uh.evening:i>=12?r=uh.afternoon:i>=4?r=uh.morning:r=uh.night,n){case"B":case"BB":case"BBB":return e.dayPeriod(r,{width:"abbreviated",context:"formatting"});case"BBBBB":return e.dayPeriod(r,{width:"narrow",context:"formatting"});case"BBBB":default:return e.dayPeriod(r,{width:"wide",context:"formatting"})}},h:function(t,n,e){if(n==="ho"){let i=t.getHours()%12;return i===0&&(i=12),e.ordinalNumber(i,{unit:"hour"})}return ul.h(t,n)},H:function(t,n,e){return n==="Ho"?e.ordinalNumber(t.getHours(),{unit:"hour"}):ul.H(t,n)},K:function(t,n,e){let i=t.getHours()%12;return n==="Ko"?e.ordinalNumber(i,{unit:"hour"}):wt(i,n.length)},k:function(t,n,e){let i=t.getHours();return i===0&&(i=24),n==="ko"?e.ordinalNumber(i,{unit:"hour"}):wt(i,n.length)},m:function(t,n,e){return n==="mo"?e.ordinalNumber(t.getMinutes(),{unit:"minute"}):ul.m(t,n)},s:function(t,n,e){return n==="so"?e.ordinalNumber(t.getSeconds(),{unit:"second"}):ul.s(t,n)},S:function(t,n){return ul.S(t,n)},X:function(t,n,e){let i=t.getTimezoneOffset();if(i===0)return"Z";switch(n){case"X":return bV(i);case"XXXX":case"XX":return iu(i);case"XXXXX":case"XXX":default:return iu(i,":")}},x:function(t,n,e){let i=t.getTimezoneOffset();switch(n){case"x":return bV(i);case"xxxx":case"xx":return iu(i);case"xxxxx":case"xxx":default:return iu(i,":")}},O:function(t,n,e){let i=t.getTimezoneOffset();switch(n){case"O":case"OO":case"OOO":return"GMT"+_V(i,":");case"OOOO":default:return"GMT"+iu(i,":")}},z:function(t,n,e){let i=t.getTimezoneOffset();switch(n){case"z":case"zz":case"zzz":return"GMT"+_V(i,":");case"zzzz":default:return"GMT"+iu(i,":")}},t:function(t,n,e){let i=Math.trunc(+t/1e3);return wt(i,n.length)},T:function(t,n,e){return wt(+t,n.length)}};function _V(t,n=""){let e=t>0?"-":"+",i=Math.abs(t),r=Math.trunc(i/60),o=i%60;return o===0?e+String(r):e+String(r)+n+wt(o,2)}function bV(t,n){return t%60===0?(t>0?"-":"+")+wt(Math.abs(t)/60,2):iu(t,n)}function iu(t,n=""){let e=t>0?"-":"+",i=Math.abs(t),r=wt(Math.trunc(i/60),2),o=wt(i%60,2);return e+r+n+o}var vV=(t,n)=>{switch(t){case"P":return n.date({width:"short"});case"PP":return n.date({width:"medium"});case"PPP":return n.date({width:"long"});case"PPPP":default:return n.date({width:"full"})}},yV=(t,n)=>{switch(t){case"p":return n.time({width:"short"});case"pp":return n.time({width:"medium"});case"ppp":return n.time({width:"long"});case"pppp":default:return n.time({width:"full"})}},aX=(t,n)=>{let e=t.match(/(P+)(p+)?/)||[],i=e[1],r=e[2];if(!r)return vV(t,n);let o;switch(i){case"P":o=n.dateTime({width:"short"});break;case"PP":o=n.dateTime({width:"medium"});break;case"PPP":o=n.dateTime({width:"long"});break;case"PPPP":default:o=n.dateTime({width:"full"});break}return o.replace("{{date}}",vV(i,n)).replace("{{time}}",yV(r,n))},Zf={p:yV,P:aX};var sX=/^D+$/,lX=/^Y+$/,cX=["D","DD","YY","YYYY"];function ry(t){return sX.test(t)}function oy(t){return lX.test(t)}function Xf(t,n,e){let i=dX(t,n,e);if(console.warn(i),cX.includes(t))throw new RangeError(i)}function dX(t,n,e){let i=t[0]==="Y"?"years":"days of the month";return`Use \`${t.toLowerCase()}\` instead of \`${t}\` (in \`${n}\`) for formatting ${i} to the input \`${e}\`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md`}var uX=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,mX=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,hX=/^'([^]*?)'?$/,pX=/''/g,fX=/[a-zA-Z]/;function xV(t,n,e){let i=Yo(),r=e?.locale??i.locale??tu,o=e?.firstWeekContainsDate??e?.locale?.options?.firstWeekContainsDate??i.firstWeekContainsDate??i.locale?.options?.firstWeekContainsDate??1,a=e?.weekStartsOn??e?.locale?.options?.weekStartsOn??i.weekStartsOn??i.locale?.options?.weekStartsOn??0,s=Ie(t,e?.in);if(!sh(s))throw new RangeError("Invalid time value");let l=n.match(mX).map(d=>{let m=d[0];if(m==="p"||m==="P"){let f=Zf[m];return f(d,r.formatLong)}return d}).join("").match(uX).map(d=>{if(d==="''")return{isToken:!1,value:"'"};let m=d[0];if(m==="'")return{isToken:!1,value:gX(d)};if(Pk[m])return{isToken:!0,value:d};if(m.match(fX))throw new RangeError("Format string contains an unescaped latin alphabet character `"+m+"`");return{isToken:!1,value:d}});r.localize.preprocessor&&(l=r.localize.preprocessor(s,l));let c={firstWeekContainsDate:o,weekStartsOn:a,locale:r};return l.map(d=>{if(!d.isToken)return d.value;let m=d.value;(!e?.useAdditionalWeekYearTokens&&oy(m)||!e?.useAdditionalDayOfYearTokens&&ry(m))&&Xf(m,n,String(t));let f=Pk[m[0]];return f(s,m,r.localize,c)}).join("")}function gX(t){let n=t.match(hX);return n?n[1].replace(pX,"'"):t}function CV(t,n){let e=Ie(t,n?.in);if(isNaN(+e))throw new RangeError("Invalid time value");let i=n?.format??"extended",r=n?.representation??"complete",o="",a="",s=i==="extended"?"-":"",l=i==="extended"?":":"";if(r!=="time"){let c=wt(e.getDate(),2),d=wt(e.getMonth()+1,2);o=`${wt(e.getFullYear(),4)}${s}${d}${s}${c}`}if(r!=="date"){let c=e.getTimezoneOffset();if(c!==0){let w=Math.abs(c),x=wt(Math.trunc(w/60),2),D=wt(w%60,2);a=`${c<0?"+":"-"}${x}:${D}`}else a="Z";let d=wt(e.getHours(),2),m=wt(e.getMinutes(),2),f=wt(e.getSeconds(),2),b=o===""?"":"T",v=[d,m,f].join(l);o=`${o}${b}${v}${a}`}return o}function wV(t,n){return Ie(t,n?.in).getDate()}function DV(t,n){return Ie(t,n?.in).getDay()}function ay(t,n){let e=Ie(t,n?.in),i=e.getFullYear(),r=e.getMonth(),o=rt(e,0);return o.setFullYear(i,r+1,0),o.setHours(0,0,0,0),o.getDate()}function EV(){return Object.assign({},Yo())}function sy(t,n){return Ie(t,n?.in).getHours()}function MV(t,n){let e=Ie(t,n?.in).getDay();return e===0?7:e}function ly(t,n){return Ie(t,n?.in).getMinutes()}function kV(t,n){return Ie(t,n?.in).getMonth()}function SV(t){return Ie(t).getSeconds()}function TV(t,n){return Ie(t,n?.in).getFullYear()}function IV(t,n){let e=_X(n)?new n(0):rt(n,0);return e.setFullYear(t.getFullYear(),t.getMonth(),t.getDate()),e.setHours(t.getHours(),t.getMinutes(),t.getSeconds(),t.getMilliseconds()),e}function _X(t){return typeof t=="function"&&t.prototype?.constructor===t}var bX=10,cy=class{subPriority=0;validate(n,e){return!0}},dy=class extends cy{constructor(n,e,i,r,o){super(),this.value=n,this.validateValue=e,this.setValue=i,this.priority=r,o&&(this.subPriority=o)}validate(n,e){return this.validateValue(n,this.value,e)}set(n,e,i){return this.setValue(n,e,this.value,i)}},uy=class extends cy{priority=bX;subPriority=-1;constructor(n,e){super(),this.context=n||(i=>rt(e,i))}set(n,e){return e.timestampIsSet?n:rt(n,IV(n,this.context))}};var Pe=class{run(n,e,i,r){let o=this.parse(n,e,i,r);return o?{setter:new dy(o.value,this.validate,this.set,this.priority,this.subPriority),rest:o.rest}:null}validate(n,e,i){return!0}};var my=class extends Pe{priority=140;parse(n,e,i){switch(e){case"G":case"GG":case"GGG":return i.era(n,{width:"abbreviated"})||i.era(n,{width:"narrow"});case"GGGGG":return i.era(n,{width:"narrow"});case"GGGG":default:return i.era(n,{width:"wide"})||i.era(n,{width:"abbreviated"})||i.era(n,{width:"narrow"})}}set(n,e,i){return e.era=i,n.setFullYear(i,0,1),n.setHours(0,0,0,0),n}incompatibleTokens=["R","u","t","T"]};var Bt={month:/^(1[0-2]|0?\d)/,date:/^(3[0-1]|[0-2]?\d)/,dayOfYear:/^(36[0-6]|3[0-5]\d|[0-2]?\d?\d)/,week:/^(5[0-3]|[0-4]?\d)/,hour23h:/^(2[0-3]|[0-1]?\d)/,hour24h:/^(2[0-4]|[0-1]?\d)/,hour11h:/^(1[0-1]|0?\d)/,hour12h:/^(1[0-2]|0?\d)/,minute:/^[0-5]?\d/,second:/^[0-5]?\d/,singleDigit:/^\d/,twoDigits:/^\d{1,2}/,threeDigits:/^\d{1,3}/,fourDigits:/^\d{1,4}/,anyDigitsSigned:/^-?\d+/,singleDigitSigned:/^-?\d/,twoDigitsSigned:/^-?\d{1,2}/,threeDigitsSigned:/^-?\d{1,3}/,fourDigitsSigned:/^-?\d{1,4}/},Ko={basicOptionalMinutes:/^([+-])(\d{2})(\d{2})?|Z/,basic:/^([+-])(\d{2})(\d{2})|Z/,basicOptionalSeconds:/^([+-])(\d{2})(\d{2})((\d{2}))?|Z/,extended:/^([+-])(\d{2}):(\d{2})|Z/,extendedOptionalSeconds:/^([+-])(\d{2}):(\d{2})(:(\d{2}))?|Z/};function ci(t,n){return t&&{value:n(t.value),rest:t.rest}}function Nt(t,n){let e=n.match(t);return e?{value:parseInt(e[0],10),rest:n.slice(e[0].length)}:null}function Zo(t,n){let e=n.match(t);if(!e)return null;if(e[0]==="Z")return{value:0,rest:n.slice(1)};let i=e[1]==="+"?1:-1,r=e[2]?parseInt(e[2],10):0,o=e[3]?parseInt(e[3],10):0,a=e[5]?parseInt(e[5],10):0;return{value:i*(r*Jd+o*Xd+a*eV),rest:n.slice(e[0].length)}}function hy(t){return Nt(Bt.anyDigitsSigned,t)}function _t(t,n){switch(t){case 1:return Nt(Bt.singleDigit,n);case 2:return Nt(Bt.twoDigits,n);case 3:return Nt(Bt.threeDigits,n);case 4:return Nt(Bt.fourDigits,n);default:return Nt(new RegExp("^\\d{1,"+t+"}"),n)}}function mh(t,n){switch(t){case 1:return Nt(Bt.singleDigitSigned,n);case 2:return Nt(Bt.twoDigitsSigned,n);case 3:return Nt(Bt.threeDigitsSigned,n);case 4:return Nt(Bt.fourDigitsSigned,n);default:return Nt(new RegExp("^-?\\d{1,"+t+"}"),n)}}function hh(t){switch(t){case"morning":return 4;case"evening":return 17;case"pm":case"noon":case"afternoon":return 12;case"am":case"midnight":case"night":default:return 0}}function py(t,n){let e=n>0,i=e?n:1-n,r;if(i<=50)r=t||100;else{let o=i+50,a=Math.trunc(o/100)*100,s=t>=o%100;r=t+a-(s?100:0)}return e?r:1-r}function fy(t){return t%400===0||t%4===0&&t%100!==0}var gy=class extends Pe{priority=130;incompatibleTokens=["Y","R","u","w","I","i","e","c","t","T"];parse(n,e,i){let r=o=>({year:o,isTwoDigitYear:e==="yy"});switch(e){case"y":return ci(_t(4,n),r);case"yo":return ci(i.ordinalNumber(n,{unit:"year"}),r);default:return ci(_t(e.length,n),r)}}validate(n,e){return e.isTwoDigitYear||e.year>0}set(n,e,i){let r=n.getFullYear();if(i.isTwoDigitYear){let a=py(i.year,r);return n.setFullYear(a,0,1),n.setHours(0,0,0,0),n}let o=!("era"in e)||e.era===1?i.year:1-i.year;return n.setFullYear(o,0,1),n.setHours(0,0,0,0),n}};var _y=class extends Pe{priority=130;parse(n,e,i){let r=o=>({year:o,isTwoDigitYear:e==="YY"});switch(e){case"Y":return ci(_t(4,n),r);case"Yo":return ci(i.ordinalNumber(n,{unit:"year"}),r);default:return ci(_t(e.length,n),r)}}validate(n,e){return e.isTwoDigitYear||e.year>0}set(n,e,i,r){let o=ch(n,r);if(i.isTwoDigitYear){let s=py(i.year,o);return n.setFullYear(s,0,r.firstWeekContainsDate),n.setHours(0,0,0,0),Zn(n,r)}let a=!("era"in e)||e.era===1?i.year:1-i.year;return n.setFullYear(a,0,r.firstWeekContainsDate),n.setHours(0,0,0,0),Zn(n,r)}incompatibleTokens=["y","R","u","Q","q","M","L","I","d","D","i","t","T"]};var by=class extends Pe{priority=130;parse(n,e){return e==="R"?mh(4,n):mh(e.length,n)}set(n,e,i){let r=rt(n,0);return r.setFullYear(i,0,4),r.setHours(0,0,0,0),Oa(r)}incompatibleTokens=["G","y","Y","u","Q","q","M","L","w","d","D","e","c","t","T"]};var vy=class extends Pe{priority=130;parse(n,e){return e==="u"?mh(4,n):mh(e.length,n)}set(n,e,i){return n.setFullYear(i,0,1),n.setHours(0,0,0,0),n}incompatibleTokens=["G","y","Y","R","w","I","i","e","c","t","T"]};var yy=class extends Pe{priority=120;parse(n,e,i){switch(e){case"Q":case"QQ":return _t(e.length,n);case"Qo":return i.ordinalNumber(n,{unit:"quarter"});case"QQQ":return i.quarter(n,{width:"abbreviated",context:"formatting"})||i.quarter(n,{width:"narrow",context:"formatting"});case"QQQQQ":return i.quarter(n,{width:"narrow",context:"formatting"});case"QQQQ":default:return i.quarter(n,{width:"wide",context:"formatting"})||i.quarter(n,{width:"abbreviated",context:"formatting"})||i.quarter(n,{width:"narrow",context:"formatting"})}}validate(n,e){return e>=1&&e<=4}set(n,e,i){return n.setMonth((i-1)*3,1),n.setHours(0,0,0,0),n}incompatibleTokens=["Y","R","q","M","L","w","I","d","D","i","e","c","t","T"]};var xy=class extends Pe{priority=120;parse(n,e,i){switch(e){case"q":case"qq":return _t(e.length,n);case"qo":return i.ordinalNumber(n,{unit:"quarter"});case"qqq":return i.quarter(n,{width:"abbreviated",context:"standalone"})||i.quarter(n,{width:"narrow",context:"standalone"});case"qqqqq":return i.quarter(n,{width:"narrow",context:"standalone"});case"qqqq":default:return i.quarter(n,{width:"wide",context:"standalone"})||i.quarter(n,{width:"abbreviated",context:"standalone"})||i.quarter(n,{width:"narrow",context:"standalone"})}}validate(n,e){return e>=1&&e<=4}set(n,e,i){return n.setMonth((i-1)*3,1),n.setHours(0,0,0,0),n}incompatibleTokens=["Y","R","Q","M","L","w","I","d","D","i","e","c","t","T"]};var Cy=class extends Pe{incompatibleTokens=["Y","R","q","Q","L","w","I","D","i","e","c","t","T"];priority=110;parse(n,e,i){let r=o=>o-1;switch(e){case"M":return ci(Nt(Bt.month,n),r);case"MM":return ci(_t(2,n),r);case"Mo":return ci(i.ordinalNumber(n,{unit:"month"}),r);case"MMM":return i.month(n,{width:"abbreviated",context:"formatting"})||i.month(n,{width:"narrow",context:"formatting"});case"MMMMM":return i.month(n,{width:"narrow",context:"formatting"});case"MMMM":default:return i.month(n,{width:"wide",context:"formatting"})||i.month(n,{width:"abbreviated",context:"formatting"})||i.month(n,{width:"narrow",context:"formatting"})}}validate(n,e){return e>=0&&e<=11}set(n,e,i){return n.setMonth(i,1),n.setHours(0,0,0,0),n}};var wy=class extends Pe{priority=110;parse(n,e,i){let r=o=>o-1;switch(e){case"L":return ci(Nt(Bt.month,n),r);case"LL":return ci(_t(2,n),r);case"Lo":return ci(i.ordinalNumber(n,{unit:"month"}),r);case"LLL":return i.month(n,{width:"abbreviated",context:"standalone"})||i.month(n,{width:"narrow",context:"standalone"});case"LLLLL":return i.month(n,{width:"narrow",context:"standalone"});case"LLLL":default:return i.month(n,{width:"wide",context:"standalone"})||i.month(n,{width:"abbreviated",context:"standalone"})||i.month(n,{width:"narrow",context:"standalone"})}}validate(n,e){return e>=0&&e<=11}set(n,e,i){return n.setMonth(i,1),n.setHours(0,0,0,0),n}incompatibleTokens=["Y","R","q","Q","M","w","I","D","i","e","c","t","T"]};function AV(t,n,e){let i=Ie(t,e?.in),r=dh(i,e)-n;return i.setDate(i.getDate()-r*7),Ie(i,e?.in)}var Dy=class extends Pe{priority=100;parse(n,e,i){switch(e){case"w":return Nt(Bt.week,n);case"wo":return i.ordinalNumber(n,{unit:"week"});default:return _t(e.length,n)}}validate(n,e){return e>=1&&e<=53}set(n,e,i,r){return Zn(AV(n,i,r),r)}incompatibleTokens=["y","R","u","q","Q","M","L","I","d","D","i","t","T"]};function OV(t,n,e){let i=Ie(t,e?.in),r=ny(i,e)-n;return i.setDate(i.getDate()-r*7),i}var Ey=class extends Pe{priority=100;parse(n,e,i){switch(e){case"I":return Nt(Bt.week,n);case"Io":return i.ordinalNumber(n,{unit:"week"});default:return _t(e.length,n)}}validate(n,e){return e>=1&&e<=53}set(n,e,i){return Oa(OV(n,i))}incompatibleTokens=["y","Y","u","q","Q","M","L","w","d","D","e","c","t","T"]};var vX=[31,28,31,30,31,30,31,31,30,31,30,31],yX=[31,29,31,30,31,30,31,31,30,31,30,31],My=class extends Pe{priority=90;subPriority=1;parse(n,e,i){switch(e){case"d":return Nt(Bt.date,n);case"do":return i.ordinalNumber(n,{unit:"date"});default:return _t(e.length,n)}}validate(n,e){let i=n.getFullYear(),r=fy(i),o=n.getMonth();return r?e>=1&&e<=yX[o]:e>=1&&e<=vX[o]}set(n,e,i){return n.setDate(i),n.setHours(0,0,0,0),n}incompatibleTokens=["Y","R","q","Q","w","I","D","i","e","c","t","T"]};var ky=class extends Pe{priority=90;subpriority=1;parse(n,e,i){switch(e){case"D":case"DD":return Nt(Bt.dayOfYear,n);case"Do":return i.ordinalNumber(n,{unit:"date"});default:return _t(e.length,n)}}validate(n,e){let i=n.getFullYear();return fy(i)?e>=1&&e<=366:e>=1&&e<=365}set(n,e,i){return n.setMonth(0,i),n.setHours(0,0,0,0),n}incompatibleTokens=["Y","R","q","Q","M","L","w","I","d","E","i","e","c","t","T"]};function ph(t,n,e){let i=Yo(),r=e?.weekStartsOn??e?.locale?.options?.weekStartsOn??i.weekStartsOn??i.locale?.options?.weekStartsOn??0,o=Ie(t,e?.in),a=o.getDay(),l=(n%7+7)%7,c=7-r,d=n<0||n>6?n-(a+c)%7:(l+c)%7-(a+c)%7;return oh(o,d,e)}var Sy=class extends Pe{priority=90;parse(n,e,i){switch(e){case"E":case"EE":case"EEE":return i.day(n,{width:"abbreviated",context:"formatting"})||i.day(n,{width:"short",context:"formatting"})||i.day(n,{width:"narrow",context:"formatting"});case"EEEEE":return i.day(n,{width:"narrow",context:"formatting"});case"EEEEEE":return i.day(n,{width:"short",context:"formatting"})||i.day(n,{width:"narrow",context:"formatting"});case"EEEE":default:return i.day(n,{width:"wide",context:"formatting"})||i.day(n,{width:"abbreviated",context:"formatting"})||i.day(n,{width:"short",context:"formatting"})||i.day(n,{width:"narrow",context:"formatting"})}}validate(n,e){return e>=0&&e<=6}set(n,e,i,r){return n=ph(n,i,r),n.setHours(0,0,0,0),n}incompatibleTokens=["D","i","e","c","t","T"]};var Ty=class extends Pe{priority=90;parse(n,e,i,r){let o=a=>{let s=Math.floor((a-1)/7)*7;return(a+r.weekStartsOn+6)%7+s};switch(e){case"e":case"ee":return ci(_t(e.length,n),o);case"eo":return ci(i.ordinalNumber(n,{unit:"day"}),o);case"eee":return i.day(n,{width:"abbreviated",context:"formatting"})||i.day(n,{width:"short",context:"formatting"})||i.day(n,{width:"narrow",context:"formatting"});case"eeeee":return i.day(n,{width:"narrow",context:"formatting"});case"eeeeee":return i.day(n,{width:"short",context:"formatting"})||i.day(n,{width:"narrow",context:"formatting"});case"eeee":default:return i.day(n,{width:"wide",context:"formatting"})||i.day(n,{width:"abbreviated",context:"formatting"})||i.day(n,{width:"short",context:"formatting"})||i.day(n,{width:"narrow",context:"formatting"})}}validate(n,e){return e>=0&&e<=6}set(n,e,i,r){return n=ph(n,i,r),n.setHours(0,0,0,0),n}incompatibleTokens=["y","R","u","q","Q","M","L","I","d","D","E","i","c","t","T"]};var Iy=class extends Pe{priority=90;parse(n,e,i,r){let o=a=>{let s=Math.floor((a-1)/7)*7;return(a+r.weekStartsOn+6)%7+s};switch(e){case"c":case"cc":return ci(_t(e.length,n),o);case"co":return ci(i.ordinalNumber(n,{unit:"day"}),o);case"ccc":return i.day(n,{width:"abbreviated",context:"standalone"})||i.day(n,{width:"short",context:"standalone"})||i.day(n,{width:"narrow",context:"standalone"});case"ccccc":return i.day(n,{width:"narrow",context:"standalone"});case"cccccc":return i.day(n,{width:"short",context:"standalone"})||i.day(n,{width:"narrow",context:"standalone"});case"cccc":default:return i.day(n,{width:"wide",context:"standalone"})||i.day(n,{width:"abbreviated",context:"standalone"})||i.day(n,{width:"short",context:"standalone"})||i.day(n,{width:"narrow",context:"standalone"})}}validate(n,e){return e>=0&&e<=6}set(n,e,i,r){return n=ph(n,i,r),n.setHours(0,0,0,0),n}incompatibleTokens=["y","R","u","q","Q","M","L","I","d","D","E","i","e","t","T"]};function RV(t,n,e){let i=Ie(t,e?.in),r=MV(i,e),o=n-r;return oh(i,o,e)}var Ay=class extends Pe{priority=90;parse(n,e,i){let r=o=>o===0?7:o;switch(e){case"i":case"ii":return _t(e.length,n);case"io":return i.ordinalNumber(n,{unit:"day"});case"iii":return ci(i.day(n,{width:"abbreviated",context:"formatting"})||i.day(n,{width:"short",context:"formatting"})||i.day(n,{width:"narrow",context:"formatting"}),r);case"iiiii":return ci(i.day(n,{width:"narrow",context:"formatting"}),r);case"iiiiii":return ci(i.day(n,{width:"short",context:"formatting"})||i.day(n,{width:"narrow",context:"formatting"}),r);case"iiii":default:return ci(i.day(n,{width:"wide",context:"formatting"})||i.day(n,{width:"abbreviated",context:"formatting"})||i.day(n,{width:"short",context:"formatting"})||i.day(n,{width:"narrow",context:"formatting"}),r)}}validate(n,e){return e>=1&&e<=7}set(n,e,i){return n=RV(n,i),n.setHours(0,0,0,0),n}incompatibleTokens=["y","Y","u","q","Q","M","L","w","d","D","E","e","c","t","T"]};var Oy=class extends Pe{priority=80;parse(n,e,i){switch(e){case"a":case"aa":case"aaa":return i.dayPeriod(n,{width:"abbreviated",context:"formatting"})||i.dayPeriod(n,{width:"narrow",context:"formatting"});case"aaaaa":return i.dayPeriod(n,{width:"narrow",context:"formatting"});case"aaaa":default:return i.dayPeriod(n,{width:"wide",context:"formatting"})||i.dayPeriod(n,{width:"abbreviated",context:"formatting"})||i.dayPeriod(n,{width:"narrow",context:"formatting"})}}set(n,e,i){return n.setHours(hh(i),0,0,0),n}incompatibleTokens=["b","B","H","k","t","T"]};var Ry=class extends Pe{priority=80;parse(n,e,i){switch(e){case"b":case"bb":case"bbb":return i.dayPeriod(n,{width:"abbreviated",context:"formatting"})||i.dayPeriod(n,{width:"narrow",context:"formatting"});case"bbbbb":return i.dayPeriod(n,{width:"narrow",context:"formatting"});case"bbbb":default:return i.dayPeriod(n,{width:"wide",context:"formatting"})||i.dayPeriod(n,{width:"abbreviated",context:"formatting"})||i.dayPeriod(n,{width:"narrow",context:"formatting"})}}set(n,e,i){return n.setHours(hh(i),0,0,0),n}incompatibleTokens=["a","B","H","k","t","T"]};var Py=class extends Pe{priority=80;parse(n,e,i){switch(e){case"B":case"BB":case"BBB":return i.dayPeriod(n,{width:"abbreviated",context:"formatting"})||i.dayPeriod(n,{width:"narrow",context:"formatting"});case"BBBBB":return i.dayPeriod(n,{width:"narrow",context:"formatting"});case"BBBB":default:return i.dayPeriod(n,{width:"wide",context:"formatting"})||i.dayPeriod(n,{width:"abbreviated",context:"formatting"})||i.dayPeriod(n,{width:"narrow",context:"formatting"})}}set(n,e,i){return n.setHours(hh(i),0,0,0),n}incompatibleTokens=["a","b","t","T"]};var Fy=class extends Pe{priority=70;parse(n,e,i){switch(e){case"h":return Nt(Bt.hour12h,n);case"ho":return i.ordinalNumber(n,{unit:"hour"});default:return _t(e.length,n)}}validate(n,e){return e>=1&&e<=12}set(n,e,i){let r=n.getHours()>=12;return r&&i<12?n.setHours(i+12,0,0,0):!r&&i===12?n.setHours(0,0,0,0):n.setHours(i,0,0,0),n}incompatibleTokens=["H","K","k","t","T"]};var Ny=class extends Pe{priority=70;parse(n,e,i){switch(e){case"H":return Nt(Bt.hour23h,n);case"Ho":return i.ordinalNumber(n,{unit:"hour"});default:return _t(e.length,n)}}validate(n,e){return e>=0&&e<=23}set(n,e,i){return n.setHours(i,0,0,0),n}incompatibleTokens=["a","b","h","K","k","t","T"]};var Ly=class extends Pe{priority=70;parse(n,e,i){switch(e){case"K":return Nt(Bt.hour11h,n);case"Ko":return i.ordinalNumber(n,{unit:"hour"});default:return _t(e.length,n)}}validate(n,e){return e>=0&&e<=11}set(n,e,i){return n.getHours()>=12&&i<12?n.setHours(i+12,0,0,0):n.setHours(i,0,0,0),n}incompatibleTokens=["h","H","k","t","T"]};var Vy=class extends Pe{priority=70;parse(n,e,i){switch(e){case"k":return Nt(Bt.hour24h,n);case"ko":return i.ordinalNumber(n,{unit:"hour"});default:return _t(e.length,n)}}validate(n,e){return e>=1&&e<=24}set(n,e,i){let r=i<=24?i%24:i;return n.setHours(r,0,0,0),n}incompatibleTokens=["a","b","h","H","K","t","T"]};var By=class extends Pe{priority=60;parse(n,e,i){switch(e){case"m":return Nt(Bt.minute,n);case"mo":return i.ordinalNumber(n,{unit:"minute"});default:return _t(e.length,n)}}validate(n,e){return e>=0&&e<=59}set(n,e,i){return n.setMinutes(i,0,0),n}incompatibleTokens=["t","T"]};var jy=class extends Pe{priority=50;parse(n,e,i){switch(e){case"s":return Nt(Bt.second,n);case"so":return i.ordinalNumber(n,{unit:"second"});default:return _t(e.length,n)}}validate(n,e){return e>=0&&e<=59}set(n,e,i){return n.setSeconds(i,0),n}incompatibleTokens=["t","T"]};var Hy=class extends Pe{priority=30;parse(n,e){let i=r=>Math.trunc(r*Math.pow(10,-e.length+3));return ci(_t(e.length,n),i)}set(n,e,i){return n.setMilliseconds(i),n}incompatibleTokens=["t","T"]};var zy=class extends Pe{priority=10;parse(n,e){switch(e){case"X":return Zo(Ko.basicOptionalMinutes,n);case"XX":return Zo(Ko.basic,n);case"XXXX":return Zo(Ko.basicOptionalSeconds,n);case"XXXXX":return Zo(Ko.extendedOptionalSeconds,n);case"XXX":default:return Zo(Ko.extended,n)}}set(n,e,i){return e.timestampIsSet?n:rt(n,n.getTime()-eu(n)-i)}incompatibleTokens=["t","T","x"]};var Uy=class extends Pe{priority=10;parse(n,e){switch(e){case"x":return Zo(Ko.basicOptionalMinutes,n);case"xx":return Zo(Ko.basic,n);case"xxxx":return Zo(Ko.basicOptionalSeconds,n);case"xxxxx":return Zo(Ko.extendedOptionalSeconds,n);case"xxx":default:return Zo(Ko.extended,n)}}set(n,e,i){return e.timestampIsSet?n:rt(n,n.getTime()-eu(n)-i)}incompatibleTokens=["t","T","X"]};var $y=class extends Pe{priority=40;parse(n){return hy(n)}set(n,e,i){return[rt(n,i*1e3),{timestampIsSet:!0}]}incompatibleTokens="*"};var Wy=class extends Pe{priority=20;parse(n){return hy(n)}set(n,e,i){return[rt(n,i),{timestampIsSet:!0}]}incompatibleTokens="*"};var PV={G:new my,y:new gy,Y:new _y,R:new by,u:new vy,Q:new yy,q:new xy,M:new Cy,L:new wy,w:new Dy,I:new Ey,d:new My,D:new ky,E:new Sy,e:new Ty,c:new Iy,i:new Ay,a:new Oy,b:new Ry,B:new Py,h:new Fy,H:new Ny,K:new Ly,k:new Vy,m:new By,s:new jy,S:new Hy,X:new zy,x:new Uy,t:new $y,T:new Wy};var xX=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,CX=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,wX=/^'([^]*?)'?$/,DX=/''/g,EX=/\S/,MX=/[a-zA-Z]/;function FV(t,n,e,i){let r=()=>rt(i?.in||e,NaN),o=EV(),a=i?.locale??o.locale??tu,s=i?.firstWeekContainsDate??i?.locale?.options?.firstWeekContainsDate??o.firstWeekContainsDate??o.locale?.options?.firstWeekContainsDate??1,l=i?.weekStartsOn??i?.locale?.options?.weekStartsOn??o.weekStartsOn??o.locale?.options?.weekStartsOn??0;if(!n)return t?r():Ie(e,i?.in);let c={firstWeekContainsDate:s,weekStartsOn:l,locale:a},d=[new uy(i?.in,e)],m=n.match(CX).map(x=>{let D=x[0];if(D in Zf){let P=Zf[D];return P(x,a.formatLong)}return x}).join("").match(xX),f=[];for(let x of m){!i?.useAdditionalWeekYearTokens&&oy(x)&&Xf(x,n,t),!i?.useAdditionalDayOfYearTokens&&ry(x)&&Xf(x,n,t);let D=x[0],P=PV[D];if(P){let{incompatibleTokens:W}=P;if(Array.isArray(W)){let K=f.find(re=>W.includes(re.token)||re.token===D);if(K)throw new RangeError(`The format string mustn't contain \`${K.fullToken}\` and \`${x}\` at the same time`)}else if(P.incompatibleTokens==="*"&&f.length>0)throw new RangeError(`The format string mustn't contain \`${x}\` and any other token at the same time`);f.push({token:D,fullToken:x});let Z=P.run(t,x,a.match,c);if(!Z)return r();d.push(Z.setter),t=Z.rest}else{if(D.match(MX))throw new RangeError("Format string contains an unescaped latin alphabet character `"+D+"`");if(x==="''"?x="'":D==="'"&&(x=kX(x)),t.indexOf(x)===0)t=t.slice(x.length);else return r()}}if(t.length>0&&EX.test(t))return r();let b=d.map(x=>x.priority).sort((x,D)=>D-x).filter((x,D,P)=>P.indexOf(x)===D).map(x=>d.filter(D=>D.priority===x).sort((D,P)=>P.subPriority-D.subPriority)).map(x=>x[0]),v=Ie(e,i?.in);if(isNaN(+v))return r();let w={};for(let x of b){if(!x.validate(v,c))return r();let D=x.set(v,w,c);Array.isArray(D)?(v=D[0],Object.assign(w,D[1])):v=D}return v}function kX(t){return t.match(wX)[1].replace(DX,"'")}function NV(t,n,e){let[i,r]=ty(e?.in,t,n);return+Zn(i,e)==+Zn(r,e)}function Nk(t,n){let e=()=>rt(n?.in,NaN),i=n?.additionalDigits??2,r=AX(t),o;if(r.date){let c=OX(r.date,i);o=RX(c.restDateString,c.year)}if(!o||isNaN(+o))return e();let a=+o,s=0,l;if(r.time&&(s=PX(r.time),isNaN(s)))return e();if(r.timezone){if(l=FX(r.timezone),isNaN(l))return e()}else{let c=new Date(a+s),d=Ie(0,n?.in);return d.setFullYear(c.getUTCFullYear(),c.getUTCMonth(),c.getUTCDate()),d.setHours(c.getUTCHours(),c.getUTCMinutes(),c.getUTCSeconds(),c.getUTCMilliseconds()),d}return Ie(a+s+l,n?.in)}var Gy={dateTimeDelimiter:/[T ]/,timeZoneDelimiter:/[Z ]/i,timezone:/([Z+-].*)$/},SX=/^-?(?:(\d{3})|(\d{2})(?:-?(\d{2}))?|W(\d{2})(?:-?(\d{1}))?|)$/,TX=/^(\d{2}(?:[.,]\d*)?)(?::?(\d{2}(?:[.,]\d*)?))?(?::?(\d{2}(?:[.,]\d*)?))?$/,IX=/^([+-])(\d{2})(?::?(\d{2}))?$/;function AX(t){let n={},e=t.split(Gy.dateTimeDelimiter),i;if(e.length>2)return n;if(/:/.test(e[0])?i=e[0]:(n.date=e[0],i=e[1],Gy.timeZoneDelimiter.test(n.date)&&(n.date=t.split(Gy.timeZoneDelimiter)[0],i=t.substr(n.date.length,t.length))),i){let r=Gy.timezone.exec(i);r?(n.time=i.replace(r[1],""),n.timezone=r[1]):n.time=i}return n}function OX(t,n){let e=new RegExp("^(?:(\\d{4}|[+-]\\d{"+(4+n)+"})|(\\d{2}|[+-]\\d{"+(2+n)+"})$)"),i=t.match(e);if(!i)return{year:NaN,restDateString:""};let r=i[1]?parseInt(i[1]):null,o=i[2]?parseInt(i[2]):null;return{year:o===null?r:o*100,restDateString:t.slice((i[1]||i[2]).length)}}function RX(t,n){if(n===null)return new Date(NaN);let e=t.match(SX);if(!e)return new Date(NaN);let i=!!e[4],r=Jf(e[1]),o=Jf(e[2])-1,a=Jf(e[3]),s=Jf(e[4]),l=Jf(e[5])-1;if(i)return jX(n,s,l)?NX(n,s,l):new Date(NaN);{let c=new Date(0);return!VX(n,o,a)||!BX(n,r)?new Date(NaN):(c.setUTCFullYear(n,o,Math.max(r,a)),c)}}function Jf(t){return t?parseInt(t):1}function PX(t){let n=t.match(TX);if(!n)return NaN;let e=Fk(n[1]),i=Fk(n[2]),r=Fk(n[3]);return HX(e,i,r)?e*Jd+i*Xd+r*1e3:NaN}function Fk(t){return t&&parseFloat(t.replace(",","."))||0}function FX(t){if(t==="Z")return 0;let n=t.match(IX);if(!n)return 0;let e=n[1]==="+"?-1:1,i=parseInt(n[2]),r=n[3]&&parseInt(n[3])||0;return zX(i,r)?e*(i*Jd+r*Xd):NaN}function NX(t,n,e){let i=new Date(0);i.setUTCFullYear(t,0,4);let r=i.getUTCDay()||7,o=(n-1)*7+e+1-r;return i.setUTCDate(i.getUTCDate()+o),i}var LX=[31,null,31,30,31,30,31,31,30,31,30,31];function LV(t){return t%400===0||t%4===0&&t%100!==0}function VX(t,n,e){return n>=0&&n<=11&&e>=1&&e<=(LX[n]||(LV(t)?29:28))}function BX(t,n){return n>=1&&n<=(LV(t)?366:365)}function jX(t,n,e){return n>=1&&n<=53&&e>=0&&e<=6}function HX(t,n,e){return t===24?n===0&&e===0:e>=0&&e<60&&n>=0&&n<60&&t>=0&&t<25}function zX(t,n){return n>=0&&n<=59}function VV(t,n,e){let i=Ie(t,e?.in),r=i.getFullYear(),o=i.getDate(),a=rt(e?.in||t,0);a.setFullYear(r,n,15),a.setHours(0,0,0,0);let s=ay(a);return i.setMonth(n,Math.min(o,s)),i}function BV(t,n,e){let i=Ie(t,e?.in);return isNaN(+i)?rt(e?.in||t,NaN):(n.year!=null&&i.setFullYear(n.year),n.month!=null&&(i=VV(i,n.month)),n.date!=null&&i.setDate(n.date),n.hours!=null&&i.setHours(n.hours),n.minutes!=null&&i.setMinutes(n.minutes),n.seconds!=null&&i.setSeconds(n.seconds),n.milliseconds!=null&&i.setMilliseconds(n.milliseconds),i)}function Lk(t,n){let e=Array(t);for(let i=0;i{class t extends Li{constructor(){super();let e=u(ys,{optional:!0});this.setLocale(e)}getYear(e){return TV(e)}getMonth(e){return kV(e)}getDate(e){return wV(e)}getDayOfWeek(e){return DV(e)}getMonthNames(e){let i=UX[e];return Lk(12,r=>this.format(new Date(2017,r,1),i))}getDateNames(){let e=typeof Intl<"u"?new Intl.DateTimeFormat(this.locale.code,{day:"numeric",timeZone:"utc"}):null;return Lk(31,i=>{if(e){let r=new Date;return r.setUTCFullYear(2017,0,i+1),r.setUTCHours(0,0,0,0),e.format(r).replace(/[\u200e\u200f]/g,"")}return i+""})}getDayOfWeekNames(e){let i=$X[e];return Lk(7,r=>this.format(new Date(2017,0,r+1),i))}getYearName(e){return this.format(e,"y")}getFirstDayOfWeek(){return this.locale.options?.weekStartsOn??0}getNumDaysInMonth(e){return ay(e)}clone(e){return new Date(e.getTime())}createDate(e,i,r){let o=new Date;return o.setFullYear(e,i,r),o.setHours(0,0,0,0),o.getMonth()!=i,o}today(){return new Date}parse(e,i){return this._parse(e,i)}format(e,i){if(!this.isValid(e))throw Error("DateFnsAdapter: Cannot format invalid date.");return xV(e,i,{locale:this.locale})}addCalendarYears(e,i){return sV(e,i)}addCalendarMonths(e,i){return ah(e,i)}addCalendarDays(e,i){return oh(e,i)}toIso8601(e){return CV(e,{representation:"date"})}deserialize(e){if(typeof e=="string"){if(!e)return null;let i=Nk(e);if(this.isValid(i))return i}return super.deserialize(e)}isDateInstance(e){return iy(e)}isValid(e){return sh(e)}invalid(){return new Date(NaN)}setTime(e,i,r,o){return BV(this.clone(e),{hours:i,minutes:r,seconds:o,milliseconds:0})}getHours(e){return sy(e)}getMinutes(e){return ly(e)}getSeconds(e){return SV(e)}parseTime(e,i){return this._parse(e,i,!1)}addSeconds(e,i){return aV(e,i)}_parse(e,i,r=!0){if(typeof e=="string"&&e.length>0){if(r){let a=Nk(e);if(this.isValid(a))return a}let o=Array.isArray(i)?i:[i];if(!i.length)throw Error("Formats array must not be empty.");for(let a of o){let s=FV(e,a,new Date,{locale:this.locale});if(this.isValid(s))return s}return this.invalid()}else{if(typeof e=="number")return new Date(e);if(e instanceof Date)return this.clone(e)}return null}static \u0275fac=function(i){return new(i||t)};static \u0275prov=O({token:t,factory:t.\u0275fac})}return t})(),WX={parse:{dateInput:"P",timeInput:"p"},display:{dateInput:"P",timeInput:"p",monthYearLabel:"LLL uuuu",dateA11yLabel:"PP",monthYearA11yLabel:"LLLL uuuu",timeOptionLabel:"p"}};function jV(t=WX){return[{provide:Li,useClass:Vk,deps:[ys]},{provide:xs,useValue:t}]}var GX=["*"];var qX=[[["","mat-card-avatar",""],["","matCardAvatar",""]],[["mat-card-title"],["mat-card-subtitle"],["","mat-card-title",""],["","mat-card-subtitle",""],["","matCardTitle",""],["","matCardSubtitle",""]],"*"],YX=["[mat-card-avatar], [matCardAvatar]",`mat-card-title, mat-card-subtitle, + `)}`:"",this.name="UnsubscriptionError",this.errors=e});function od(t,n){if(t){let e=t.indexOf(n);0<=e&&t.splice(e,1)}}var ke=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 o of e)o.remove(this);else e.remove(this);let{initialTeardown:i}=this;if(Ke(i))try{i()}catch(o){n=o instanceof F_?o.errors:[o]}let{_finalizers:r}=this;if(r){this._finalizers=null;for(let o of r)try{wA(o)}catch(a){n=n??[],a instanceof F_?n=[...n,...a.errors]:n.push(a)}}if(n)throw new F_(n)}}add(n){var e;if(n&&n!==this)if(this.closed)wA(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)&&od(e,n)}remove(n){let{_finalizers:e}=this;e&&od(e,n),n instanceof t&&n._removeParent(this)}};ke.EMPTY=(()=>{let t=new ke;return t.closed=!0,t})();var Pw=ke.EMPTY;function N_(t){return t instanceof ke||t&&"closed"in t&&Ke(t.remove)&&Ke(t.add)&&Ke(t.unsubscribe)}function wA(t){Ke(t)?t():t.unsubscribe()}var ha={onUnhandledError:null,onStoppedNotification:null,Promise:void 0,useDeprecatedSynchronousErrorHandling:!1,useDeprecatedNextContext:!1};var Lu={setTimeout(t,n,...e){let{delegate:i}=Lu;return i?.setTimeout?i.setTimeout(t,n,...e):setTimeout(t,n,...e)},clearTimeout(t){let{delegate:n}=Lu;return(n?.clearTimeout||clearTimeout)(t)},delegate:void 0};function L_(t){Lu.setTimeout(()=>{let{onUnhandledError:n}=ha;if(n)n(t);else throw t})}function ad(){}var DA=Fw("C",void 0,void 0);function EA(t){return Fw("E",void 0,t)}function MA(t){return Fw("N",t,void 0)}function Fw(t,n,e){return{kind:t,value:n,error:e}}var sd=null;function Vu(t){if(ha.useDeprecatedSynchronousErrorHandling){let n=!sd;if(n&&(sd={errorThrown:!1,error:null}),t(),n){let{errorThrown:e,error:i}=sd;if(sd=null,e)throw i}}else t()}function kA(t){ha.useDeprecatedSynchronousErrorHandling&&sd&&(sd.errorThrown=!0,sd.error=t)}var ld=class extends ke{constructor(n){super(),this.isStopped=!1,n?(this.destination=n,N_(n)&&n.add(this)):this.destination=F6}static create(n,e,i){return new Bs(n,e,i)}next(n){this.isStopped?Lw(MA(n),this):this._next(n)}error(n){this.isStopped?Lw(EA(n),this):(this.isStopped=!0,this._error(n))}complete(){this.isStopped?Lw(DA,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()}}},R6=Function.prototype.bind;function Nw(t,n){return R6.call(t,n)}var Vw=class{constructor(n){this.partialObserver=n}next(n){let{partialObserver:e}=this;if(e.next)try{e.next(n)}catch(i){V_(i)}}error(n){let{partialObserver:e}=this;if(e.error)try{e.error(n)}catch(i){V_(i)}else V_(n)}complete(){let{partialObserver:n}=this;if(n.complete)try{n.complete()}catch(e){V_(e)}}},Bs=class extends ld{constructor(n,e,i){super();let r;if(Ke(n)||!n)r={next:n??void 0,error:e??void 0,complete:i??void 0};else{let o;this&&ha.useDeprecatedNextContext?(o=Object.create(n),o.unsubscribe=()=>this.unsubscribe(),r={next:n.next&&Nw(n.next,o),error:n.error&&Nw(n.error,o),complete:n.complete&&Nw(n.complete,o)}):r=n}this.destination=new Vw(r)}};function V_(t){ha.useDeprecatedSynchronousErrorHandling?kA(t):L_(t)}function P6(t){throw t}function Lw(t,n){let{onStoppedNotification:e}=ha;e&&Lu.setTimeout(()=>e(t,n))}var F6={closed:!0,next:ad,error:P6,complete:ad};var Bu=typeof Symbol=="function"&&Symbol.observable||"@@observable";function Mr(t){return t}function Bw(...t){return jw(t)}function jw(t){return t.length===0?Mr:t.length===1?t[0]:function(e){return t.reduce((i,r)=>r(i),e)}}var Fe=(()=>{class t{constructor(e){e&&(this._subscribe=e)}lift(e){let i=new t;return i.source=this,i.operator=e,i}subscribe(e,i,r){let o=L6(e)?e:new Bs(e,i,r);return Vu(()=>{let{operator:a,source:s}=this;o.add(a?a.call(o,s):s?this._subscribe(o):this._trySubscribe(o))}),o}_trySubscribe(e){try{return this._subscribe(e)}catch(i){e.error(i)}}forEach(e,i){return i=SA(i),new i((r,o)=>{let a=new Bs({next:s=>{try{e(s)}catch(l){o(l),a.unsubscribe()}},error:o,complete:r});this.subscribe(a)})}_subscribe(e){var i;return(i=this.source)===null||i===void 0?void 0:i.subscribe(e)}[Bu](){return this}pipe(...e){return jw(e)(this)}toPromise(e){return e=SA(e),new e((i,r)=>{let o;this.subscribe(a=>o=a,a=>r(a),()=>i(o))})}}return t.create=n=>new t(n),t})();function SA(t){var n;return(n=t??ha.Promise)!==null&&n!==void 0?n:Promise}function N6(t){return t&&Ke(t.next)&&Ke(t.error)&&Ke(t.complete)}function L6(t){return t&&t instanceof ld||N6(t)&&N_(t)}function Hw(t){return Ke(t?.lift)}function Qe(t){return n=>{if(Hw(n))return n.lift(function(e){try{return t(e,this)}catch(i){this.error(i)}});throw new TypeError("Unable to lift unknown Observable type")}}function Ue(t,n,e,i,r){return new zw(t,n,e,i,r)}var zw=class extends ld{constructor(n,e,i,r,o,a){super(n),this.onFinalize=o,this.shouldUnsubscribe=a,this._next=e?function(s){try{e(s)}catch(l){n.error(l)}}:super._next,this._error=r?function(s){try{r(s)}catch(l){n.error(l)}finally{this.unsubscribe()}}:super._error,this._complete=i?function(){try{i()}catch(s){n.error(s)}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 ju(){return Qe((t,n)=>{let e=null;t._refCount++;let i=Ue(n,void 0,void 0,void 0,()=>{if(!t||t._refCount<=0||0<--t._refCount){e=null;return}let r=t._connection,o=e;e=null,r&&(!o||r===o)&&r.unsubscribe(),n.unsubscribe()});t.subscribe(i),i.closed||(e=t.connect())})}var Al=class extends Fe{constructor(n,e){super(),this.source=n,this.subjectFactory=e,this._subject=null,this._refCount=0,this._connection=null,Hw(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 ke;let e=this.getSubject();n.add(this.source.subscribe(Ue(e,void 0,()=>{this._teardown(),e.complete()},i=>{this._teardown(),e.error(i)},()=>this._teardown()))),n.closed&&(this._connection=null,n=ke.EMPTY)}return n}refCount(){return ju()(this)}};var Hu={schedule(t){let n=requestAnimationFrame,e=cancelAnimationFrame,{delegate:i}=Hu;i&&(n=i.requestAnimationFrame,e=i.cancelAnimationFrame);let r=n(o=>{e=void 0,t(o)});return new ke(()=>e?.(r))},requestAnimationFrame(...t){let{delegate:n}=Hu;return(n?.requestAnimationFrame||requestAnimationFrame)(...t)},cancelAnimationFrame(...t){let{delegate:n}=Hu;return(n?.cancelAnimationFrame||cancelAnimationFrame)(...t)},delegate:void 0};var TA=Il(t=>function(){t(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"});var z=(()=>{class t extends Fe{constructor(){super(),this.closed=!1,this.currentObservers=null,this.observers=[],this.isStopped=!1,this.hasError=!1,this.thrownError=null}lift(e){let i=new B_(this,this);return i.operator=e,i}_throwIfClosed(){if(this.closed)throw new TA}next(e){Vu(()=>{if(this._throwIfClosed(),!this.isStopped){this.currentObservers||(this.currentObservers=Array.from(this.observers));for(let i of this.currentObservers)i.next(e)}})}error(e){Vu(()=>{if(this._throwIfClosed(),!this.isStopped){this.hasError=this.isStopped=!0,this.thrownError=e;let{observers:i}=this;for(;i.length;)i.shift().error(e)}})}complete(){Vu(()=>{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:i,isStopped:r,observers:o}=this;return i||r?Pw:(this.currentObservers=null,o.push(e),new ke(()=>{this.currentObservers=null,od(o,e)}))}_checkFinalizedStatuses(e){let{hasError:i,thrownError:r,isStopped:o}=this;i?e.error(r):o&&e.complete()}asObservable(){let e=new Fe;return e.source=this,e}}return t.create=(n,e)=>new B_(n,e),t})(),B_=class extends z{constructor(n,e){super(),this.destination=n,this.source=e}next(n){var e,i;(i=(e=this.destination)===null||e===void 0?void 0:e.next)===null||i===void 0||i.call(e,n)}error(n){var e,i;(i=(e=this.destination)===null||e===void 0?void 0:e.error)===null||i===void 0||i.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,i;return(i=(e=this.source)===null||e===void 0?void 0:e.subscribe(n))!==null&&i!==void 0?i:Pw}};var tt=class extends z{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:i}=this;if(n)throw e;return this._throwIfClosed(),i}next(n){super.next(this._value=n)}};var gp={now(){return(gp.delegate||Date).now()},delegate:void 0};var $a=class extends z{constructor(n=1/0,e=1/0,i=gp){super(),this._bufferSize=n,this._windowTime=e,this._timestampProvider=i,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:i,_infiniteTimeWindow:r,_timestampProvider:o,_windowTime:a}=this;e||(i.push(n),!r&&i.push(o.now()+a)),this._trimBuffer(),super.next(n)}_subscribe(n){this._throwIfClosed(),this._trimBuffer();let e=this._innerSubscribe(n),{_infiniteTimeWindow:i,_buffer:r}=this,o=r.slice();for(let a=0;aIA(n)&&t()),n},clearImmediate(t){IA(t)}};var{setImmediate:B6,clearImmediate:j6}=AA,bp={setImmediate(...t){let{delegate:n}=bp;return(n?.setImmediate||B6)(...t)},clearImmediate(t){let{delegate:n}=bp;return(n?.clearImmediate||j6)(t)},delegate:void 0};var H_=class extends Ol{constructor(n,e){super(n,e),this.scheduler=n,this.work=e}requestAsyncId(n,e,i=0){return i!==null&&i>0?super.requestAsyncId(n,e,i):(n.actions.push(this),n._scheduled||(n._scheduled=bp.setImmediate(n.flush.bind(n,void 0))))}recycleAsyncId(n,e,i=0){var r;if(i!=null?i>0:this.delay>0)return super.recycleAsyncId(n,e,i);let{actions:o}=n;e!=null&&((r=o[o.length-1])===null||r===void 0?void 0:r.id)!==e&&(bp.clearImmediate(e),n._scheduled===e&&(n._scheduled=void 0))}};var zu=class t{constructor(n,e=t.now){this.schedulerActionCtor=n,this.now=e}schedule(n,e=0,i){return new this.schedulerActionCtor(this,n).schedule(i,e)}};zu.now=gp.now;var Rl=class extends zu{constructor(n,e=zu.now){super(n,e),this.actions=[],this._active=!1}flush(n){let{actions:e}=this;if(this._active){e.push(n);return}let i;this._active=!0;do if(i=n.execute(n.state,n.delay))break;while(n=e.shift());if(this._active=!1,i){for(;n=e.shift();)n.unsubscribe();throw i}}};var z_=class extends Rl{flush(n){this._active=!0;let e=this._scheduled;this._scheduled=void 0;let{actions:i}=this,r;n=n||i.shift();do if(r=n.execute(n.state,n.delay))break;while((n=i[0])&&n.id===e&&i.shift());if(this._active=!1,r){for(;(n=i[0])&&n.id===e&&i.shift();)n.unsubscribe();throw r}}};var U_=new z_(H_);var js=new Rl(Ol),OA=js;var $_=class extends Ol{constructor(n,e){super(n,e),this.scheduler=n,this.work=e}requestAsyncId(n,e,i=0){return i!==null&&i>0?super.requestAsyncId(n,e,i):(n.actions.push(this),n._scheduled||(n._scheduled=Hu.requestAnimationFrame(()=>n.flush(void 0))))}recycleAsyncId(n,e,i=0){var r;if(i!=null?i>0:this.delay>0)return super.recycleAsyncId(n,e,i);let{actions:o}=n;e!=null&&e===n._scheduled&&((r=o[o.length-1])===null||r===void 0?void 0:r.id)!==e&&(Hu.cancelAnimationFrame(e),n._scheduled=void 0)}};var W_=class extends Rl{flush(n){this._active=!0;let e;n?e=n.id:(e=this._scheduled,this._scheduled=void 0);let{actions:i}=this,r;n=n||i.shift();do if(r=n.execute(n.state,n.delay))break;while((n=i[0])&&n.id===e&&i.shift());if(this._active=!1,r){for(;(n=i[0])&&n.id===e&&i.shift();)n.unsubscribe();throw r}}};var G_=new W_($_);var Fi=new Fe(t=>t.complete());function q_(t){return t&&Ke(t.schedule)}function Ww(t){return t[t.length-1]}function Y_(t){return Ke(Ww(t))?t.pop():void 0}function Wa(t){return q_(Ww(t))?t.pop():void 0}function RA(t,n){return typeof Ww(t)=="number"?t.pop():n}function FA(t,n,e,i){function r(o){return o instanceof e?o:new e(function(a){a(o)})}return new(e||(e=Promise))(function(o,a){function s(d){try{c(i.next(d))}catch(m){a(m)}}function l(d){try{c(i.throw(d))}catch(m){a(m)}}function c(d){d.done?o(d.value):r(d.value).then(s,l)}c((i=i.apply(t,n||[])).next())})}function PA(t){var n=typeof Symbol=="function"&&Symbol.iterator,e=n&&t[n],i=0;if(e)return e.call(t);if(t&&typeof t.length=="number")return{next:function(){return t&&i>=t.length&&(t=void 0),{value:t&&t[i++],done:!t}}};throw new TypeError(n?"Object is not iterable.":"Symbol.iterator is not defined.")}function cd(t){return this instanceof cd?(this.v=t,this):new cd(t)}function NA(t,n,e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var i=e.apply(t,n||[]),r,o=[];return r=Object.create((typeof AsyncIterator=="function"?AsyncIterator:Object).prototype),s("next"),s("throw"),s("return",a),r[Symbol.asyncIterator]=function(){return this},r;function a(b){return function(v){return Promise.resolve(v).then(b,m)}}function s(b,v){i[b]&&(r[b]=function(w){return new Promise(function(x,D){o.push([b,w,x,D])>1||l(b,w)})},v&&(r[b]=v(r[b])))}function l(b,v){try{c(i[b](v))}catch(w){f(o[0][3],w)}}function c(b){b.value instanceof cd?Promise.resolve(b.value.v).then(d,m):f(o[0][2],b)}function d(b){l("next",b)}function m(b){l("throw",b)}function f(b,v){b(v),o.shift(),o.length&&l(o[0][0],o[0][1])}}function LA(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 PA=="function"?PA(t):t[Symbol.iterator](),e={},i("next"),i("throw"),i("return"),e[Symbol.asyncIterator]=function(){return this},e);function i(o){e[o]=t[o]&&function(a){return new Promise(function(s,l){a=t[o](a),r(s,l,a.done,a.value)})}}function r(o,a,s,l){Promise.resolve(l).then(function(c){o({value:c,done:s})},a)}}var Uu=t=>t&&typeof t.length=="number"&&typeof t!="function";function Q_(t){return Ke(t?.then)}function K_(t){return Ke(t[Bu])}function Z_(t){return Symbol.asyncIterator&&Ke(t?.[Symbol.asyncIterator])}function X_(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 H6(){return typeof Symbol!="function"||!Symbol.iterator?"@@iterator":Symbol.iterator}var J_=H6();function eb(t){return Ke(t?.[J_])}function tb(t){return NA(this,arguments,function*(){let e=t.getReader();try{for(;;){let{value:i,done:r}=yield cd(e.read());if(r)return yield cd(void 0);yield yield cd(i)}}finally{e.releaseLock()}})}function ib(t){return Ke(t?.getReader)}function At(t){if(t instanceof Fe)return t;if(t!=null){if(K_(t))return z6(t);if(Uu(t))return U6(t);if(Q_(t))return $6(t);if(Z_(t))return VA(t);if(eb(t))return W6(t);if(ib(t))return G6(t)}throw X_(t)}function z6(t){return new Fe(n=>{let e=t[Bu]();if(Ke(e.subscribe))return e.subscribe(n);throw new TypeError("Provided object does not correctly implement Symbol.observable")})}function U6(t){return new Fe(n=>{for(let e=0;e{t.then(e=>{n.closed||(n.next(e),n.complete())},e=>n.error(e)).then(null,L_)})}function W6(t){return new Fe(n=>{for(let e of t)if(n.next(e),n.closed)return;n.complete()})}function VA(t){return new Fe(n=>{q6(t,n).catch(e=>n.error(e))})}function G6(t){return VA(tb(t))}function q6(t,n){var e,i,r,o;return FA(this,void 0,void 0,function*(){try{for(e=LA(t);i=yield e.next(),!i.done;){let a=i.value;if(n.next(a),n.closed)return}}catch(a){r={error:a}}finally{try{i&&!i.done&&(o=e.return)&&(yield o.call(e))}finally{if(r)throw r.error}}n.complete()})}function dr(t,n,e,i=0,r=!1){let o=n.schedule(function(){e(),r?t.add(this.schedule(null,i)):this.unsubscribe()},i);if(t.add(o),!r)return o}function nb(t,n=0){return Qe((e,i)=>{e.subscribe(Ue(i,r=>dr(i,t,()=>i.next(r),n),()=>dr(i,t,()=>i.complete(),n),r=>dr(i,t,()=>i.error(r),n)))})}function rb(t,n=0){return Qe((e,i)=>{i.add(t.schedule(()=>e.subscribe(i),n))})}function BA(t,n){return At(t).pipe(rb(n),nb(n))}function jA(t,n){return At(t).pipe(rb(n),nb(n))}function HA(t,n){return new Fe(e=>{let i=0;return n.schedule(function(){i===t.length?e.complete():(e.next(t[i++]),e.closed||this.schedule())})})}function zA(t,n){return new Fe(e=>{let i;return dr(e,n,()=>{i=t[J_](),dr(e,n,()=>{let r,o;try{({value:r,done:o}=i.next())}catch(a){e.error(a);return}o?e.complete():e.next(r)},0,!0)}),()=>Ke(i?.return)&&i.return()})}function ob(t,n){if(!t)throw new Error("Iterable cannot be null");return new Fe(e=>{dr(e,n,()=>{let i=t[Symbol.asyncIterator]();dr(e,n,()=>{i.next().then(r=>{r.done?e.complete():e.next(r.value)})},0,!0)})})}function UA(t,n){return ob(tb(t),n)}function $A(t,n){if(t!=null){if(K_(t))return BA(t,n);if(Uu(t))return HA(t,n);if(Q_(t))return jA(t,n);if(Z_(t))return ob(t,n);if(eb(t))return zA(t,n);if(ib(t))return UA(t,n)}throw X_(t)}function Ot(t,n){return n?$A(t,n):At(t)}function Q(...t){let n=Wa(t);return Ot(t,n)}function Wn(t,n){let e=Ke(t)?t:()=>t,i=r=>r.error(e());return new Fe(n?r=>n.schedule(i,0,r):i)}function ji(t){return!!t&&(t instanceof Fe||Ke(t.lift)&&Ke(t.subscribe))}var Hs=Il(t=>function(){t(this),this.name="EmptyError",this.message="no elements in sequence"});function ab(t){return t instanceof Date&&!isNaN(t)}var Y6=Il(t=>function(e=null){t(this),this.message="Timeout has occurred",this.name="TimeoutError",this.info=e});function Gw(t,n){let{first:e,each:i,with:r=Q6,scheduler:o=n??js,meta:a=null}=ab(t)?{first:t}:typeof t=="number"?{each:t}:t;if(e==null&&i==null)throw new TypeError("No timeout provided.");return Qe((s,l)=>{let c,d,m=null,f=0,b=v=>{d=dr(l,o,()=>{try{c.unsubscribe(),At(r({meta:a,lastValue:m,seen:f})).subscribe(l)}catch(w){l.error(w)}},v)};c=s.subscribe(Ue(l,v=>{d?.unsubscribe(),f++,l.next(m=v),i>0&&b(i)},void 0,void 0,()=>{d?.closed||d?.unsubscribe(),m=null})),!f&&b(e!=null?typeof e=="number"?e:+e-o.now():i)})}function Q6(t){throw new Y6(t)}function se(t,n){return Qe((e,i)=>{let r=0;e.subscribe(Ue(i,o=>{i.next(t.call(n,o,r++))}))})}var{isArray:K6}=Array;function Z6(t,n){return K6(n)?t(...n):t(n)}function $u(t){return se(n=>Z6(t,n))}var{isArray:X6}=Array,{getPrototypeOf:J6,prototype:e$,keys:t$}=Object;function sb(t){if(t.length===1){let n=t[0];if(X6(n))return{args:n,keys:null};if(i$(n)){let e=t$(n);return{args:e.map(i=>n[i]),keys:e}}}return{args:t,keys:null}}function i$(t){return t&&typeof t=="object"&&J6(t)===e$}function lb(t,n){return t.reduce((e,i,r)=>(e[i]=n[r],e),{})}function co(...t){let n=Wa(t),e=Y_(t),{args:i,keys:r}=sb(t);if(i.length===0)return Ot([],n);let o=new Fe(n$(i,n,r?a=>lb(r,a):Mr));return e?o.pipe($u(e)):o}function n$(t,n,e=Mr){return i=>{WA(n,()=>{let{length:r}=t,o=new Array(r),a=r,s=r;for(let l=0;l{let c=Ot(t[l],n),d=!1;c.subscribe(Ue(i,m=>{o[l]=m,d||(d=!0,s--),s||i.next(e(o.slice()))},()=>{--a||i.complete()}))},i)},i)}}function WA(t,n,e){t?dr(e,t,n):n()}function GA(t,n,e,i,r,o,a,s){let l=[],c=0,d=0,m=!1,f=()=>{m&&!l.length&&!c&&n.complete()},b=w=>c{o&&n.next(w),c++;let x=!1;At(e(w,d++)).subscribe(Ue(n,D=>{r?.(D),o?b(D):n.next(D)},()=>{x=!0},void 0,()=>{if(x)try{for(c--;l.length&&cv(D)):v(D)}f()}catch(D){n.error(D)}}))};return t.subscribe(Ue(n,b,()=>{m=!0,f()})),()=>{s?.()}}function Mt(t,n,e=1/0){return Ke(n)?Mt((i,r)=>se((o,a)=>n(i,o,r,a))(At(t(i,r))),e):(typeof n=="number"&&(e=n),Qe((i,r)=>GA(i,r,t,e)))}function uo(t=1/0){return Mt(Mr,t)}function qA(){return uo(1)}function mo(...t){return qA()(Ot(t,Wa(t)))}function kn(t){return new Fe(n=>{At(t()).subscribe(n)})}function Ga(...t){let n=Y_(t),{args:e,keys:i}=sb(t),r=new Fe(o=>{let{length:a}=e;if(!a){o.complete();return}let s=new Array(a),l=a,c=a;for(let d=0;d{m||(m=!0,c--),s[d]=f},()=>l--,void 0,()=>{(!l||!m)&&(c||o.next(i?lb(i,s):s),o.complete())}))}});return n?r.pipe($u(n)):r}var r$=["addListener","removeListener"],o$=["addEventListener","removeEventListener"],a$=["on","off"];function zs(t,n,e,i){if(Ke(e)&&(i=e,e=void 0),i)return zs(t,n,e).pipe($u(i));let[r,o]=c$(t)?o$.map(a=>s=>t[a](n,s,e)):s$(t)?r$.map(YA(t,n)):l$(t)?a$.map(YA(t,n)):[];if(!r&&Uu(t))return Mt(a=>zs(a,n,e))(At(t));if(!r)throw new TypeError("Invalid event target");return new Fe(a=>{let s=(...l)=>a.next(1o(s)})}function YA(t,n){return e=>i=>t[e](n,i)}function s$(t){return Ke(t.addListener)&&Ke(t.removeListener)}function l$(t){return Ke(t.on)&&Ke(t.off)}function c$(t){return Ke(t.addEventListener)&&Ke(t.removeEventListener)}function qa(t=0,n,e=OA){let i=-1;return n!=null&&(q_(n)?e=n:i=n),new Fe(r=>{let o=ab(t)?+t-e.now():t;o<0&&(o=0);let a=0;return e.schedule(function(){r.closed||(r.next(a++),0<=i?this.schedule(void 0,i):r.complete())},o)})}function Je(...t){let n=Wa(t),e=RA(t,1/0),i=t;return i.length?i.length===1?At(i[0]):uo(e)(Ot(i,n)):Fi}var{isArray:d$}=Array;function QA(t){return t.length===1&&d$(t[0])?t[0]:t}function ce(t,n){return Qe((e,i)=>{let r=0;e.subscribe(Ue(i,o=>t.call(n,o,r++)&&i.next(o)))})}function Wu(...t){return t=QA(t),t.length===1?At(t[0]):new Fe(u$(t))}function u$(t){return n=>{let e=[];for(let i=0;e&&!n.closed&&i{if(e){for(let o=0;o{let i=!1,r=null,o=null,a=!1,s=()=>{if(o?.unsubscribe(),o=null,i){i=!1;let c=r;r=null,e.next(c)}a&&e.complete()},l=()=>{o=null,a&&e.complete()};n.subscribe(Ue(e,c=>{i=!0,r=c,o||At(t(c)).subscribe(o=Ue(e,s,l))},()=>{a=!0,(!i||!o||o.closed)&&e.complete()}))})}function Pl(t,n=js){return KA(()=>qa(t,n))}function fi(t){return Qe((n,e)=>{let i=null,r=!1,o;i=n.subscribe(Ue(e,void 0,void 0,a=>{o=At(t(a,fi(t)(n))),i?(i.unsubscribe(),i=null,o.subscribe(e)):r=!0})),r&&(i.unsubscribe(),i=null,o.subscribe(e))})}function ZA(t,n,e,i,r){return(o,a)=>{let s=e,l=n,c=0;o.subscribe(Ue(a,d=>{let m=c++;l=s?t(l,d,m):(s=!0,d),i&&a.next(l)},r&&(()=>{s&&a.next(l),a.complete()})))}}function Ao(t,n){return Ke(n)?Mt(t,n,1):Mt(t,1)}function Rt(t,n=js){return Qe((e,i)=>{let r=null,o=null,a=null,s=()=>{if(r){r.unsubscribe(),r=null;let c=o;o=null,i.next(c)}};function l(){let c=a+t,d=n.now();if(d{o=c,a=n.now(),r||(r=n.schedule(l,t),i.add(r))},()=>{s(),i.complete()},void 0,()=>{o=r=null}))})}function Fl(t){return Qe((n,e)=>{let i=!1;n.subscribe(Ue(e,r=>{i=!0,e.next(r)},()=>{i||e.next(t),e.complete()}))})}function lt(t){return t<=0?()=>Fi:Qe((n,e)=>{let i=0;n.subscribe(Ue(e,r=>{++i<=t&&(e.next(r),t<=i&&e.complete())}))})}function XA(){return Qe((t,n)=>{t.subscribe(Ue(n,ad))})}function Gu(t){return se(()=>t)}function qw(t,n){return n?e=>mo(n.pipe(lt(1),XA()),e.pipe(qw(t))):Mt((e,i)=>At(t(e,i)).pipe(lt(1),Gu(e)))}function pa(t,n=js){let e=qa(t,n);return qw(()=>e)}function Sn(t,n=Mr){return t=t??m$,Qe((e,i)=>{let r,o=!0;e.subscribe(Ue(i,a=>{let s=n(a);(o||!t(r,s))&&(o=!1,r=s,i.next(a))}))})}function m$(t,n){return t===n}function cb(t=h$){return Qe((n,e)=>{let i=!1;n.subscribe(Ue(e,r=>{i=!0,e.next(r)},()=>i?e.complete():e.error(t())))})}function h$(){return new Hs}function Yw(t,n){return Qe((e,i)=>{let r=0;e.subscribe(Ue(i,o=>{t.call(n,o,r++,e)||(i.next(!1),i.complete())},()=>{i.next(!0),i.complete()}))})}function Hr(t){return Qe((n,e)=>{try{n.subscribe(e)}finally{e.add(t)}})}function gn(t,n){let e=arguments.length>=2;return i=>i.pipe(t?ce((r,o)=>t(r,o,i)):Mr,lt(1),e?Fl(n):cb(()=>new Hs))}function qu(t){return t<=0?()=>Fi:Qe((n,e)=>{let i=[];n.subscribe(Ue(e,r=>{i.push(r),t{for(let r of i)e.next(r);e.complete()},void 0,()=>{i=null}))})}function Qw(t,n){let e=arguments.length>=2;return i=>i.pipe(t?ce((r,o)=>t(r,o,i)):Mr,qu(1),e?Fl(n):cb(()=>new Hs))}function db(){return Qe((t,n)=>{let e,i=!1;t.subscribe(Ue(n,r=>{let o=e;e=r,i&&n.next([o,r]),i=!0}))})}function Kw(t,n){return Qe(ZA(t,n,arguments.length>=2,!0))}function Nl(t={}){let{connector:n=()=>new z,resetOnError:e=!0,resetOnComplete:i=!0,resetOnRefCountZero:r=!0}=t;return o=>{let a,s,l,c=0,d=!1,m=!1,f=()=>{s?.unsubscribe(),s=void 0},b=()=>{f(),a=l=void 0,d=m=!1},v=()=>{let w=a;b(),w?.unsubscribe()};return Qe((w,x)=>{c++,!m&&!d&&f();let D=l=l??n();x.add(()=>{c--,c===0&&!m&&!d&&(s=Zw(v,r))}),D.subscribe(x),!a&&c>0&&(a=new Bs({next:P=>D.next(P),error:P=>{m=!0,f(),s=Zw(b,e,P),D.error(P)},complete:()=>{d=!0,f(),s=Zw(b,i),D.complete()}}),At(w).subscribe(a))})(o)}}function Zw(t,n,...e){if(n===!0){t();return}if(n===!1)return;let i=new Bs({next:()=>{i.unsubscribe(),t()}});return At(n(...e)).subscribe(i)}function dd(t,n,e){let i,r=!1;return t&&typeof t=="object"?{bufferSize:i=1/0,windowTime:n=1/0,refCount:r=!1,scheduler:e}=t:i=t??1/0,Nl({connector:()=>new $a(i,n,e),resetOnError:!0,resetOnComplete:!1,resetOnRefCountZero:r})}function Ya(t){return ce((n,e)=>t<=e)}function He(...t){let n=Wa(t);return Qe((e,i)=>{(n?mo(t,e,n):mo(t,e)).subscribe(i)})}function $e(t,n){return Qe((e,i)=>{let r=null,o=0,a=!1,s=()=>a&&!r&&i.complete();e.subscribe(Ue(i,l=>{r?.unsubscribe();let c=0,d=o++;At(t(l,d)).subscribe(r=Ue(i,m=>i.next(n?n(l,m,d,c++):m),()=>{r=null,s()}))},()=>{a=!0,s()}))})}function Te(t){return Qe((n,e)=>{At(t).subscribe(Ue(e,()=>e.complete(),ad)),!e.closed&&n.subscribe(e)})}function Xw(t,n=!1){return Qe((e,i)=>{let r=0;e.subscribe(Ue(i,o=>{let a=t(o,r++);(a||n)&&i.next(o),!a&&i.complete()}))})}function Be(t,n,e){let i=Ke(t)||n||e?{next:t,error:n,complete:e}:t;return i?Qe((r,o)=>{var a;(a=i.subscribe)===null||a===void 0||a.call(i);let s=!0;r.subscribe(Ue(o,l=>{var c;(c=i.next)===null||c===void 0||c.call(i,l),o.next(l)},()=>{var l;s=!1,(l=i.complete)===null||l===void 0||l.call(i),o.complete()},l=>{var c;s=!1,(c=i.error)===null||c===void 0||c.call(i,l),o.error(l)},()=>{var l,c;s&&((l=i.unsubscribe)===null||l===void 0||l.call(i)),(c=i.finalize)===null||c===void 0||c.call(i)}))}):Mr}function JA(t){let n=Xe(null);try{return t()}finally{Xe(n)}}var eO=De(M({},td),{consumerIsAlwaysLive:!0,consumerAllowSignalWrites:!0,dirty:!0,kind:"effect"});function tO(t){if(t.dirty=!1,t.version>0&&!nd(t))return;t.version++;let n=Sl(t);try{t.cleanup(),t.fn()}finally{id(t,n)}}var Ll=class{full;major;minor;patch;constructor(n){this.full=n;let e=n.split(".");this.major=e[0],this.minor=e[1],this.patch=e.slice(2).join(".")}},wp=new Ll("20.3.16");var pb="https://angular.dev/best-practices/security#preventing-cross-site-scripting-xss",ue=class extends Error{code;constructor(n,e){super(Ro(n,e)),this.code=n}};function p$(t){return`NG0${Math.abs(t)}`}function Ro(t,n){return`${p$(t)}${n?": "+n:""}`}var Po=globalThis;function Qt(t){for(let n in t)if(t[n]===Qt)return n;throw Error("")}function rO(t,n){for(let e in n)n.hasOwnProperty(e)&&!t.hasOwnProperty(e)&&(t[e]=n[e])}function $s(t){if(typeof t=="string")return t;if(Array.isArray(t))return`[${t.map($s).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 i=e.indexOf(` +`);return i>=0?e.slice(0,i):e}function fb(t,n){return t?n?`${t} ${n}`:t:n||""}var f$=Qt({__forward_ref__:Qt});function Kt(t){return t.__forward_ref__=Kt,t.toString=function(){return $s(this())},t}function _n(t){return dD(t)?t():t}function dD(t){return typeof t=="function"&&t.hasOwnProperty(f$)&&t.__forward_ref__===Kt}function O(t){return{token:t.token,providedIn:t.providedIn||null,factory:t.factory,value:void 0}}function J(t){return{providers:t.providers||[],imports:t.imports||[]}}function Dp(t){return g$(t,gb)}function uD(t){return Dp(t)!==null}function g$(t,n){return t.hasOwnProperty(n)&&t[n]||null}function _$(t){let n=t?.[gb]??null;return n||null}function eD(t){return t&&t.hasOwnProperty(mb)?t[mb]:null}var gb=Qt({\u0275prov:Qt}),mb=Qt({\u0275inj:Qt}),T=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=O({token:this,providedIn:e.providedIn||"root",factory:e.factory}))}get multi(){return this}toString(){return`InjectionToken ${this._desc}`}};function mD(t){return t&&!!t.\u0275providers}var hD=Qt({\u0275cmp:Qt}),pD=Qt({\u0275dir:Qt}),fD=Qt({\u0275pipe:Qt}),gD=Qt({\u0275mod:Qt}),yp=Qt({\u0275fac:Qt}),fd=Qt({__NG_ELEMENT_ID__:Qt}),iO=Qt({__NG_ENV_ID__:Qt});function Fo(t){return typeof t=="string"?t:t==null?"":String(t)}function oO(t){return typeof t=="function"?t.name||t.toString():typeof t=="object"&&t!=null&&typeof t.type=="function"?t.type.name||t.type.toString():Fo(t)}var aO=Qt({ngErrorCode:Qt}),b$=Qt({ngErrorMessage:Qt}),v$=Qt({ngTokenPath:Qt});function _D(t,n){return sO("",-200,n)}function _b(t,n){throw new ue(-201,!1)}function sO(t,n,e){let i=new ue(n,t);return i[aO]=n,i[b$]=t,e&&(i[v$]=e),i}function y$(t){return t[aO]}var tD;function lO(){return tD}function kr(t){let n=tD;return tD=t,n}function bD(t,n,e){let i=Dp(t);if(i&&i.providedIn=="root")return i.value===void 0?i.value=i.factory():i.value;if(e&8)return null;if(n!==void 0)return n;_b(t,"Injector")}var x$={},ud=x$,iD="__NG_DI_FLAG__",nD=class{injector;constructor(n){this.injector=n}retrieve(n,e){let i=md(e)||0;try{return this.injector.get(n,i&8?null:ud,i)}catch(r){if(Fu(r))return r;throw r}}};function C$(t,n=0){let e=M_();if(e===void 0)throw new ue(-203,!1);if(e===null)return bD(t,void 0,n);{let i=w$(n),r=e.retrieve(t,i);if(Fu(r)){if(i.optional)return null;throw r}return r}}function pe(t,n=0){return(lO()||C$)(_n(t),n)}function u(t,n){return pe(t,md(n))}function md(t){return typeof t>"u"||typeof t=="number"?t:0|(t.optional&&8)|(t.host&&1)|(t.self&&2)|(t.skipSelf&&4)}function w$(t){return{optional:!!(t&8),host:!!(t&1),self:!!(t&2),skipSelf:!!(t&4)}}function rD(t){let n=[];for(let e=0;eArray.isArray(e)?bb(e,n):n(e))}function yD(t,n,e){n>=t.length?t.push(e):t.splice(n,0,e)}function Ep(t,n){return n>=t.length-1?t.pop():t.splice(n,1)[0]}function uO(t,n){let e=[];for(let i=0;in;){let o=r-2;t[r]=t[o],r--}t[n]=e,t[n+1]=i}}function Mp(t,n,e){let i=Qu(t,n);return i>=0?t[i|1]=e:(i=~i,mO(t,i,n,e)),i}function vb(t,n){let e=Qu(t,n);if(e>=0)return t[e|1]}function Qu(t,n){return E$(t,n,1)}function E$(t,n,e){let i=0,r=t.length>>e;for(;r!==i;){let o=i+(r-i>>1),a=t[o<n?r=o:i=o+1}return~(r<{e.push(a)};return bb(n,a=>{let s=a;hb(s,o,[],i)&&(r||=[],r.push(s))}),r!==void 0&&fO(r,o),e}function fO(t,n){for(let e=0;e{n(o,i)})}}function hb(t,n,e,i){if(t=_n(t),!t)return!1;let r=null,o=eD(t),a=!o&&Ka(t);if(!o&&!a){let l=t.ngModule;if(o=eD(l),o)r=l;else return!1}else{if(a&&!a.standalone)return!1;r=t}let s=i.has(r);if(a){if(s)return!1;if(i.add(r),a.dependencies){let l=typeof a.dependencies=="function"?a.dependencies():a.dependencies;for(let c of l)hb(c,n,e,i)}}else if(o){if(o.imports!=null&&!s){i.add(r);let c;try{bb(o.imports,d=>{hb(d,n,e,i)&&(c||=[],c.push(d))})}finally{}c!==void 0&&fO(c,n)}if(!s){let c=Vl(r)||(()=>new r);n({provide:r,useFactory:c,deps:ur},r),n({provide:CD,useValue:r,multi:!0},r),n({provide:Qa,useValue:()=>pe(r),multi:!0},r)}let l=o.providers;if(l!=null&&!s){let c=t;ED(l,d=>{n(d,c)})}}else return!1;return r!==t&&t.providers!==void 0}function ED(t,n){for(let e of t)mD(e)&&(e=e.\u0275providers),Array.isArray(e)?ED(e,n):n(e)}var M$=Qt({provide:String,useValue:Qt});function gO(t){return t!==null&&typeof t=="object"&&M$ in t}function k$(t){return!!(t&&t.useExisting)}function S$(t){return!!(t&&t.useFactory)}function hd(t){return typeof t=="function"}function _O(t){return!!t.useClass}var kp=new T(""),ub={},nO={},Jw;function Ku(){return Jw===void 0&&(Jw=new xp),Jw}var Wt=class{},pd=class extends Wt{parent;source;scopes;records=new Map;_ngOnDestroyHooks=new Set;_onDestroyHooks=[];get destroyed(){return this._destroyed}_destroyed=!1;injectorDefTypes;constructor(n,e,i,r){super(),this.parent=e,this.source=i,this.scopes=r,aD(n,a=>this.processProvider(a)),this.records.set(xD,Yu(void 0,this)),r.has("environment")&&this.records.set(Wt,Yu(void 0,this));let o=this.records.get(kp);o!=null&&typeof o.value=="string"&&this.scopes.add(o.value),this.injectorDefTypes=new Set(this.get(CD,ur,{self:!0}))}retrieve(n,e){let i=md(e)||0;try{return this.get(n,ud,i)}catch(r){if(Fu(r))return r;throw r}}destroy(){vp(this),this._destroyed=!0;let n=Xe(null);try{for(let i of this._ngOnDestroyHooks)i.ngOnDestroy();let e=this._onDestroyHooks;this._onDestroyHooks=[];for(let i of e)i()}finally{this.records.clear(),this._ngOnDestroyHooks.clear(),this.injectorDefTypes.clear(),Xe(n)}}onDestroy(n){return vp(this),this._onDestroyHooks.push(n),()=>this.removeOnDestroy(n)}runInContext(n){vp(this);let e=Ua(this),i=kr(void 0),r;try{return n()}finally{Ua(e),kr(i)}}get(n,e=ud,i){if(vp(this),n.hasOwnProperty(iO))return n[iO](this);let r=md(i),o,a=Ua(this),s=kr(void 0);try{if(!(r&4)){let c=this.records.get(n);if(c===void 0){let d=R$(n)&&Dp(n);d&&this.injectableDefInScope(d)?c=Yu(oD(n),ub):c=null,this.records.set(n,c)}if(c!=null)return this.hydrate(n,c,r)}let l=r&2?Ku():this.parent;return e=r&8&&e===ud?null:e,l.get(n,e)}catch(l){let c=y$(l);throw c===-200||c===-201?new ue(c,null):l}finally{kr(s),Ua(a)}}resolveInjectorInitializers(){let n=Xe(null),e=Ua(this),i=kr(void 0),r;try{let o=this.get(Qa,ur,{self:!0});for(let a of o)a()}finally{Ua(e),kr(i),Xe(n)}}toString(){let n=[],e=this.records;for(let i of e.keys())n.push($s(i));return`R3Injector[${n.join(", ")}]`}processProvider(n){n=_n(n);let e=hd(n)?n:_n(n&&n.provide),i=I$(n);if(!hd(n)&&n.multi===!0){let r=this.records.get(e);r||(r=Yu(void 0,ub,!0),r.factory=()=>rD(r.multi),this.records.set(e,r)),e=n,r.multi.push(n)}this.records.set(e,i)}hydrate(n,e,i){let r=Xe(null);try{if(e.value===nO)throw _D($s(n));return e.value===ub&&(e.value=nO,e.value=e.factory(void 0,i)),typeof e.value=="object"&&e.value&&O$(e.value)&&this._ngOnDestroyHooks.add(e.value),e.value}finally{Xe(r)}}injectableDefInScope(n){if(!n.providedIn)return!1;let e=_n(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 oD(t){let n=Dp(t),e=n!==null?n.factory:Vl(t);if(e!==null)return e;if(t instanceof T)throw new ue(204,!1);if(t instanceof Function)return T$(t);throw new ue(204,!1)}function T$(t){if(t.length>0)throw new ue(204,!1);let e=_$(t);return e!==null?()=>e.factory(t):()=>new t}function I$(t){if(gO(t))return Yu(void 0,t.useValue);{let n=MD(t);return Yu(n,ub)}}function MD(t,n,e){let i;if(hd(t)){let r=_n(t);return Vl(r)||oD(r)}else if(gO(t))i=()=>_n(t.useValue);else if(S$(t))i=()=>t.useFactory(...rD(t.deps||[]));else if(k$(t))i=(r,o)=>pe(_n(t.useExisting),o!==void 0&&o&8?8:void 0);else{let r=_n(t&&(t.useClass||t.provide));if(A$(t))i=()=>new r(...rD(t.deps));else return Vl(r)||oD(r)}return i}function vp(t){if(t.destroyed)throw new ue(205,!1)}function Yu(t,n,e=!1){return{factory:t,value:n,multi:e?[]:void 0}}function A$(t){return!!t.deps}function O$(t){return t!==null&&typeof t=="object"&&typeof t.ngOnDestroy=="function"}function R$(t){return typeof t=="function"||typeof t=="object"&&t.ngMetadataName==="InjectionToken"}function aD(t,n){for(let e of t)Array.isArray(e)?aD(e,n):e&&mD(e)?aD(e.\u0275providers,n):n(e)}function In(t,n){let e;t instanceof pd?(vp(t),e=t):e=new nD(t);let i,r=Ua(e),o=kr(void 0);try{return n()}finally{Ua(r),kr(o)}}function bO(){return lO()!==void 0||M_()!=null}var ga=0,We=1,et=2,bn=3,No=4,Sr=5,gd=6,Zu=7,qi=8,Ws=9,Za=10,ri=11,Xu=12,kD=13,_d=14,mr=15,jl=16,bd=17,Xa=18,Sp=19,SD=20,Us=21,Cb=22,Gs=23,ho=24,vd=25,yd=26,mi=27,vO=1,TD=6,Hl=7,Tp=8,xd=9,Yi=10;function Ja(t){return Array.isArray(t)&&typeof t[vO]=="object"}function _a(t){return Array.isArray(t)&&t[vO]===!0}function ID(t){return(t.flags&4)!==0}function qs(t){return t.componentOffset>-1}function Ju(t){return(t.flags&1)===1}function ba(t){return!!t.template}function em(t){return(t[et]&512)!==0}function Cd(t){return(t[et]&256)===256}var AD="svg",yO="math";function Lo(t){for(;Array.isArray(t);)t=t[ga];return t}function OD(t,n){return Lo(n[t])}function Vo(t,n){return Lo(n[t.index])}function Ip(t,n){return t.data[n]}function tm(t,n){return t[n]}function RD(t,n,e,i){e>=t.data.length&&(t.data[e]=null,t.blueprint[e]=null),n[e]=i}function Bo(t,n){let e=n[t];return Ja(e)?e:e[ga]}function xO(t){return(t[et]&4)===4}function wb(t){return(t[et]&128)===128}function CO(t){return _a(t[bn])}function po(t,n){return n==null?null:t[n]}function PD(t){t[bd]=0}function FD(t){t[et]&1024||(t[et]|=1024,wb(t)&&zl(t))}function wO(t,n){for(;t>0;)n=n[_d],t--;return n}function Ap(t){return!!(t[et]&9216||t[ho]?.dirty)}function Db(t){t[Za].changeDetectionScheduler?.notify(8),t[et]&64&&(t[et]|=1024),Ap(t)&&zl(t)}function zl(t){t[Za].changeDetectionScheduler?.notify(0);let n=Bl(t);for(;n!==null&&!(n[et]&8192||(n[et]|=8192,!wb(n)));)n=Bl(n)}function ND(t,n){if(Cd(t))throw new ue(911,!1);t[Us]===null&&(t[Us]=[]),t[Us].push(n)}function DO(t,n){if(t[Us]===null)return;let e=t[Us].indexOf(n);e!==-1&&t[Us].splice(e,1)}function Bl(t){let n=t[bn];return _a(n)?n[bn]:n}function LD(t){return t[Zu]??=[]}function VD(t){return t.cleanup??=[]}function EO(t,n,e,i){let r=LD(n);r.push(e),t.firstCreatePass&&VD(t).push(i,r.length-1)}var ht={lFrame:NO(null),bindingsEnabled:!0,skipHydrationRootTNode:null};var sD=!1;function MO(){return ht.lFrame.elementDepthCount}function kO(){ht.lFrame.elementDepthCount++}function BD(){ht.lFrame.elementDepthCount--}function Eb(){return ht.bindingsEnabled}function jD(){return ht.skipHydrationRootTNode!==null}function HD(t){return ht.skipHydrationRootTNode===t}function zD(){ht.skipHydrationRootTNode=null}function Ne(){return ht.lFrame.lView}function gi(){return ht.lFrame.tView}function I(t){return ht.lFrame.contextLView=t,t[qi]}function A(t){return ht.lFrame.contextLView=null,t}function tn(){let t=UD();for(;t!==null&&t.type===64;)t=t.parent;return t}function UD(){return ht.lFrame.currentTNode}function SO(){let t=ht.lFrame,n=t.currentTNode;return t.isParent?n:n.parent}function im(t,n){let e=ht.lFrame;e.currentTNode=t,e.isParent=n}function $D(){return ht.lFrame.isParent}function WD(){ht.lFrame.isParent=!1}function TO(){return ht.lFrame.contextLView}function GD(){return sD}function nm(t){let n=sD;return sD=t,n}function es(){let t=ht.lFrame,n=t.bindingRootIndex;return n===-1&&(n=t.bindingRootIndex=t.tView.bindingStartIndex),n}function qD(){return ht.lFrame.bindingIndex}function IO(t){return ht.lFrame.bindingIndex=t}function ts(){return ht.lFrame.bindingIndex++}function Op(t){let n=ht.lFrame,e=n.bindingIndex;return n.bindingIndex=n.bindingIndex+t,e}function AO(){return ht.lFrame.inI18n}function OO(t,n){let e=ht.lFrame;e.bindingIndex=e.bindingRootIndex=t,Mb(n)}function RO(){return ht.lFrame.currentDirectiveIndex}function Mb(t){ht.lFrame.currentDirectiveIndex=t}function PO(t){let n=ht.lFrame.currentDirectiveIndex;return n===-1?null:t[n]}function kb(){return ht.lFrame.currentQueryIndex}function Rp(t){ht.lFrame.currentQueryIndex=t}function P$(t){let n=t[We];return n.type===2?n.declTNode:n.type===1?t[Sr]:null}function YD(t,n,e){if(e&4){let r=n,o=t;for(;r=r.parent,r===null&&!(e&1);)if(r=P$(o),r===null||(o=o[_d],r.type&10))break;if(r===null)return!1;n=r,t=o}let i=ht.lFrame=FO();return i.currentTNode=n,i.lView=t,!0}function Sb(t){let n=FO(),e=t[We];ht.lFrame=n,n.currentTNode=e.firstChild,n.lView=t,n.tView=e,n.contextLView=t,n.bindingIndex=e.bindingStartIndex,n.inI18n=!1}function FO(){let t=ht.lFrame,n=t===null?null:t.child;return n===null?NO(t):n}function NO(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 LO(){let t=ht.lFrame;return ht.lFrame=t.parent,t.currentTNode=null,t.lView=null,t}var QD=LO;function Tb(){let t=LO();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 VO(t){return(ht.lFrame.contextLView=wO(t,ht.lFrame.contextLView))[qi]}function va(){return ht.lFrame.selectedIndex}function Ul(t){ht.lFrame.selectedIndex=t}function rm(){let t=ht.lFrame;return Ip(t.tView,t.selectedIndex)}function Gt(){ht.lFrame.currentNamespace=AD}function jo(){F$()}function F$(){ht.lFrame.currentNamespace=null}function BO(){return ht.lFrame.currentNamespace}var jO=!0;function Ib(){return jO}function Pp(t){jO=t}function lD(t,n=null,e=null,i){let r=KD(t,n,e,i);return r.resolveInjectorInitializers(),r}function KD(t,n=null,e=null,i,r=new Set){let o=[e||ur,xb(t)];return i=i||(typeof t=="object"?void 0:$s(t)),new pd(o,n||Ku(),i||null,r)}var de=class t{static THROW_IF_NOT_FOUND=ud;static NULL=new xp;static create(n,e){if(Array.isArray(n))return lD({name:""},e,n,"");{let i=n.name??"";return lD({name:i},n.parent,n.providers,i)}}static \u0275prov=O({token:t,providedIn:"any",factory:()=>pe(xD)});static __NG_ELEMENT_ID__=-1},ge=new T(""),nn=(()=>{class t{static __NG_ELEMENT_ID__=N$;static __NG_ENV_ID__=e=>e}return t})(),Cp=class extends nn{_lView;constructor(n){super(),this._lView=n}get destroyed(){return Cd(this._lView)}onDestroy(n){let e=this._lView;return ND(e,n),()=>DO(e,n)}};function N$(){return new Cp(Ne())}var Tn=class{_console=console;handleError(n){this._console.error("ERROR",n)}},hr=new T("",{providedIn:"root",factory:()=>{let t=u(Wt),n;return e=>{t.destroyed&&!n?setTimeout(()=>{throw e}):(n??=t.get(Tn),n.handleError(e))}}}),HO={provide:Qa,useValue:()=>void u(Tn),multi:!0},L$=new T("",{providedIn:"root",factory:()=>{let t=u(ge).defaultView;if(!t)return;let n=u(hr),e=o=>{n(o.reason),o.preventDefault()},i=o=>{o.error?n(o.error):n(new Error(o.message,{cause:o})),o.preventDefault()},r=()=>{t.addEventListener("unhandledrejection",e),t.addEventListener("error",i)};typeof Zone<"u"?Zone.root.run(r):r(),u(nn).onDestroy(()=>{t.removeEventListener("error",i),t.removeEventListener("unhandledrejection",e)})}});function ZD(){return zr([pO(()=>void u(L$))])}function is(t){return typeof t=="function"&&t[ln]!==void 0}function he(t,n){let[e,i,r]=Ow(t,n?.equal),o=e,a=o[ln];return o.set=i,o.update=r,o.asReadonly=Ab.bind(o),o}function Ab(){let t=this[ln];if(t.readonlyFn===void 0){let n=()=>this();n[ln]=t,t.readonlyFn=n}return t.readonlyFn}function XD(t){return is(t)&&typeof t.set=="function"}var wd=(()=>{class t{view;node;constructor(e,i){this.view=e,this.node=i}static __NG_ELEMENT_ID__=V$}return t})();function V$(){return new wd(Ne(),tn())}var Oo=class{},Fp=new T("",{providedIn:"root",factory:()=>!1});var JD=new T(""),eE=new T(""),ns=(()=>{class t{taskId=0;pendingTasks=new Set;destroyed=!1;pendingTask=new tt(!1);get hasPendingTasks(){return this.destroyed?!1:this.pendingTask.value}get hasPendingTasksObservable(){return this.destroyed?new Fe(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),e}has(e){return this.pendingTasks.has(e)}remove(e){this.pendingTasks.delete(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=O({token:t,providedIn:"root",factory:()=>new t})}return t})(),om=(()=>{class t{internalPendingTasks=u(ns);scheduler=u(Oo);errorHandler=u(hr);add(){let e=this.internalPendingTasks.add();return()=>{this.internalPendingTasks.has(e)&&(this.scheduler.notify(11),this.internalPendingTasks.remove(e))}}run(e){let i=this.add();e().catch(this.errorHandler).finally(i)}static \u0275prov=O({token:t,providedIn:"root",factory:()=>new t})}return t})();function Dd(...t){}var Np=(()=>{class t{static \u0275prov=O({token:t,providedIn:"root",factory:()=>new cD})}return t})(),cD=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,i=this.queues.get(e);i.has(n)&&(i.delete(n),n.dirty&&this.dirtyEffectCount--)}enqueue(n){let e=n.zone;this.queues.has(e)||this.queues.set(e,new Set);let i=this.queues.get(e);i.has(n)||i.add(n)}flush(){for(;this.dirtyEffectCount>0;){let n=!1;for(let[e,i]of this.queues)e===null?n||=this.flushQueue(i):n||=e.run(()=>this.flushQueue(i));n||(this.dirtyEffectCount=0)}}flushQueue(n){let e=!1;for(let i of n)i.dirty&&(this.dirtyEffectCount--,e=!0,i.run());return e}};function pm(t){return{toString:t}.toString()}var Ob="__parameters__";function $$(t){return function(...e){if(t){let i=t(...e);for(let r in i)this[r]=i[r]}}}function kR(t,n,e){return pm(()=>{let i=$$(n);function r(...o){if(this instanceof r)return i.apply(this,o),this;let a=new r(...o);return s.annotation=a,s;function s(l,c,d){let m=l.hasOwnProperty(Ob)?l[Ob]:Object.defineProperty(l,Ob,{value:[]})[Ob];for(;m.length<=d;)m.push(null);return(m[d]=m[d]||[]).push(a),l}}return r.prototype.ngMetadataName=t,r.annotationCls=r,r})}var ss=vD(kR("Optional"),8);var Gl=vD(kR("SkipSelf"),4);var Td=Function;function W$(t){return typeof t=="function"}var Ub=class{previousValue;currentValue;firstChange;constructor(n,e,i){this.previousValue=n,this.currentValue=e,this.firstChange=i}isFirstChange(){return this.firstChange}};function SR(t,n,e,i){n!==null?n.applyValueToInputSignal(n,i):t[e]=i}var Ae=(()=>{let t=()=>TR;return t.ngInherit=!0,t})();function TR(t){return t.type.prototype.ngOnChanges&&(t.setInput=q$),G$}function G$(){let t=AR(this),n=t?.current;if(n){let e=t.previous;if(e===fa)t.previous=n;else for(let i in n)e[i]=n[i];t.current=null,this.ngOnChanges(n)}}function q$(t,n,e,i,r){let o=this.declaredInputs[i],a=AR(t)||Y$(t,{previous:fa,current:null}),s=a.current||(a.current={}),l=a.previous,c=l[o];s[o]=new Ub(c&&c.currentValue,e,l===fa),SR(t,n,r,e)}var IR="__ngSimpleChanges__";function AR(t){return t[IR]||null}function Y$(t,n){return t[IR]=n}var zO=[];var oi=function(t,n=null,e){for(let i=0;i=i)break}else n[l]<0&&(t[bd]+=65536),(s>14>16&&(t[et]&3)===n&&(t[et]+=16384,UO(s,o)):UO(s,o)}var sm=-1,Md=class{factory;name;injectImpl;resolving=!1;canSeeViewProviders;multi;componentProviders;index;providerFactory;constructor(n,e,i,r){this.factory=n,this.name=r,this.canSeeViewProviders=e,this.injectImpl=i}};function Z$(t){return(t.flags&8)!==0}function X$(t){return(t.flags&16)!==0}function J$(t,n,e){let i=0;for(;in){a=o-1;break}}}for(;o>16}function Wb(t,n){let e=tW(t),i=n;for(;e>0;)i=i[_d],e--;return i}var mE=!0;function Gb(t){let n=mE;return mE=t,n}var iW=256,NR=iW-1,LR=5,nW=0,rs={};function rW(t,n,e){let i;typeof e=="string"?i=e.charCodeAt(0)||0:e.hasOwnProperty(fd)&&(i=e[fd]),i==null&&(i=e[fd]=nW++);let r=i&NR,o=1<>LR)]|=o}function qb(t,n){let e=VR(t,n);if(e!==-1)return e;let i=n[We];i.firstCreatePass&&(t.injectorIndex=n.length,iE(i.data,t),iE(n,null),iE(i.blueprint,null));let r=ZE(t,n),o=t.injectorIndex;if(FR(r)){let a=$b(r),s=Wb(r,n),l=s[We].data;for(let c=0;c<8;c++)n[o+c]=s[a+c]|l[a+c]}return n[o+8]=r,o}function iE(t,n){t.push(0,0,0,0,0,0,0,0,n)}function VR(t,n){return t.injectorIndex===-1||t.parent&&t.parent.injectorIndex===t.injectorIndex||n[t.injectorIndex+8]===null?-1:t.injectorIndex}function ZE(t,n){if(t.parent&&t.parent.injectorIndex!==-1)return t.parent.injectorIndex;let e=0,i=null,r=n;for(;r!==null;){if(i=UR(r),i===null)return sm;if(e++,r=r[_d],i.injectorIndex!==-1)return i.injectorIndex|e<<16}return sm}function hE(t,n,e){rW(t,n,e)}function oW(t,n){if(n==="class")return t.classes;if(n==="style")return t.styles;let e=t.attrs;if(e){let i=e.length,r=0;for(;r>20,m=i?s:s+d,f=r?s+d:c;for(let b=m;b=l&&v.type===e)return b}if(r){let b=a[l];if(b&&ba(b)&&b.type===e)return l}return null}function Bp(t,n,e,i,r){let o=t[e],a=n.data;if(o instanceof Md){let s=o;if(s.resolving){let b=oO(a[e]);throw _D(b)}let l=Gb(s.canSeeViewProviders);s.resolving=!0;let c=a[e].type||a[e],d,m=s.injectImpl?kr(s.injectImpl):null,f=YD(t,i,0);try{o=t[e]=s.factory(void 0,r,a,t,i),n.firstCreatePass&&e>=i.directiveStart&&Q$(e,a[e],n)}finally{m!==null&&kr(m),Gb(l),s.resolving=!1,QD()}}return o}function sW(t){if(typeof t=="string")return t.charCodeAt(0)||0;let n=t.hasOwnProperty(fd)?t[fd]:void 0;return typeof n=="number"?n>=0?n&NR:lW:n}function WO(t,n,e){let i=1<>LR)]&i)}function GO(t,n){return!(t&2)&&!(t&1&&n)}var Ed=class{_tNode;_lView;constructor(n,e){this._tNode=n,this._lView=e}get(n,e,i){return HR(this._tNode,this._lView,n,md(i),e)}};function lW(){return new Ed(tn(),Ne())}function fe(t){return pm(()=>{let n=t.prototype.constructor,e=n[yp]||pE(n),i=Object.prototype,r=Object.getPrototypeOf(t.prototype).constructor;for(;r&&r!==i;){let o=r[yp]||pE(r);if(o&&o!==e)return o;r=Object.getPrototypeOf(r)}return o=>new o})}function pE(t){return dD(t)?()=>{let n=pE(_n(t));return n&&n()}:Vl(t)}function cW(t,n,e,i,r){let o=t,a=n;for(;o!==null&&a!==null&&a[et]&2048&&!em(a);){let s=zR(o,a,e,i|2,rs);if(s!==rs)return s;let l=o.parent;if(!l){let c=a[SD];if(c){let d=c.get(e,rs,i);if(d!==rs)return d}l=UR(a),a=a[_d]}o=l}return r}function UR(t){let n=t[We],e=n.type;return e===2?n.declTNode:e===1?t[Sr]:null}function qp(t){return oW(tn(),t)}function dW(){return fm(tn(),Ne())}function fm(t,n){return new q(Vo(t,n))}var q=(()=>{class t{nativeElement;constructor(e){this.nativeElement=e}static __NG_ELEMENT_ID__=dW}return t})();function $R(t){return t instanceof q?t.nativeElement:t}function uW(){return this._results[Symbol.iterator]()}var pr=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 z}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 i=dO(n);(this._changesDetected=!cO(this._results,i,e))&&(this._results=i,this.length=i.length,this.last=i[this.length-1],this.first=i[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]=uW};function WR(t){return(t.flags&128)===128}var XE=(function(t){return t[t.OnPush=0]="OnPush",t[t.Default=1]="Default",t})(XE||{}),GR=new Map,mW=0;function hW(){return mW++}function pW(t){GR.set(t[Sp],t)}function fE(t){GR.delete(t[Sp])}var qO="__ngContext__";function cm(t,n){Ja(n)?(t[qO]=n[Sp],pW(n)):t[qO]=n}function qR(t){return QR(t[Xu])}function YR(t){return QR(t[No])}function QR(t){for(;t!==null&&!_a(t);)t=t[No];return t}var gE;function JE(t){gE=t}function eM(){if(gE!==void 0)return gE;if(typeof document<"u")return document;throw new ue(210,!1)}var ql=new T("",{providedIn:"root",factory:()=>fW}),fW="ng",sv=new T(""),Ks=new T("",{providedIn:"platform",factory:()=>"unknown"});var Yp=new T(""),gm=new T("",{providedIn:"root",factory:()=>eM().body?.querySelector("[ngCspNonce]")?.getAttribute("ngCspNonce")||null});var gW="h",_W="b";var KR="r";var ZR="di";var XR=!1,JR=new T("",{providedIn:"root",factory:()=>XR});var lv=new T("");var bW=(t,n,e,i)=>{};function vW(t,n,e,i){bW(t,n,e,i)}function cv(t){return(t.flags&32)===32}var yW=()=>null;function eP(t,n,e=!1){return yW(t,n,e)}function tP(t,n){let e=t.contentQueries;if(e!==null){let i=Xe(null);try{for(let r=0;rt,createScript:t=>t,createScriptURL:t=>t})}catch{}return Rb}function dv(t){return xW()?.createHTML(t)||t}var Pb;function iP(){if(Pb===void 0&&(Pb=null,Po.trustedTypes))try{Pb=Po.trustedTypes.createPolicy("angular#unsafe-bypass",{createHTML:t=>t,createScript:t=>t,createScriptURL:t=>t})}catch{}return Pb}function YO(t){return iP()?.createHTML(t)||t}function QO(t){return iP()?.createScriptURL(t)||t}var Qs=class{changingThisBreaksApplicationSecurity;constructor(n){this.changingThisBreaksApplicationSecurity=n}toString(){return`SafeValue must use [property]=binding: ${this.changingThisBreaksApplicationSecurity} (see ${pb})`}},bE=class extends Qs{getTypeName(){return"HTML"}},vE=class extends Qs{getTypeName(){return"Style"}},yE=class extends Qs{getTypeName(){return"Script"}},xE=class extends Qs{getTypeName(){return"URL"}},CE=class extends Qs{getTypeName(){return"ResourceURL"}};function Ur(t){return t instanceof Qs?t.changingThisBreaksApplicationSecurity:t}function ls(t,n){let e=nP(t);if(e!=null&&e!==n){if(e==="ResourceURL"&&n==="URL")return!0;throw new Error(`Required a safe ${n}, got a ${e} (see ${pb})`)}return e===n}function nP(t){return t instanceof Qs&&t.getTypeName()||null}function iM(t){return new bE(t)}function nM(t){return new vE(t)}function rM(t){return new yE(t)}function oM(t){return new xE(t)}function aM(t){return new CE(t)}function CW(t){let n=new DE(t);return wW()?new wE(n):n}var wE=class{inertDocumentHelper;constructor(n){this.inertDocumentHelper=n}getInertBodyElement(n){n=""+n;try{let e=new window.DOMParser().parseFromString(dv(n),"text/html").body;return e===null?this.inertDocumentHelper.getInertBodyElement(n):(e.firstChild?.remove(),e)}catch{return null}}},DE=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=dv(n),e}};function wW(){try{return!!new window.DOMParser().parseFromString(dv(""),"text/html")}catch{return!1}}var DW=/^(?!javascript:)(?:[a-z0-9+.-]+:|[^&:\/?#]*(?:[\/?#]|$))/i;function Qp(t){return t=String(t),t.match(DW)?t:"unsafe:"+t}function Zs(t){let n={};for(let e of t.split(","))n[e]=!0;return n}function Kp(...t){let n={};for(let e of t)for(let i in e)e.hasOwnProperty(i)&&(n[i]=!0);return n}var rP=Zs("area,br,col,hr,img,wbr"),oP=Zs("colgroup,dd,dt,li,p,tbody,td,tfoot,th,thead,tr"),aP=Zs("rp,rt"),EW=Kp(aP,oP),MW=Kp(oP,Zs("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")),kW=Kp(aP,Zs("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")),KO=Kp(rP,MW,kW,EW),sP=Zs("background,cite,href,itemtype,longdesc,poster,src,xlink:href"),SW=Zs("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"),TW=Zs("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"),IW=Kp(sP,SW,TW),AW=Zs("script,style,template"),EE=class{sanitizedSomething=!1;buf=[];sanitizeChildren(n){let e=n.firstChild,i=!0,r=[];for(;e;){if(e.nodeType===Node.ELEMENT_NODE?i=this.startElement(e):e.nodeType===Node.TEXT_NODE?this.chars(e.nodeValue):this.sanitizedSomething=!0,i&&e.firstChild){r.push(e),e=PW(e);continue}for(;e;){e.nodeType===Node.ELEMENT_NODE&&this.endElement(e);let o=RW(e);if(o){e=o;break}e=r.pop()}}return this.buf.join("")}startElement(n){let e=ZO(n).toLowerCase();if(!KO.hasOwnProperty(e))return this.sanitizedSomething=!0,!AW.hasOwnProperty(e);this.buf.push("<"),this.buf.push(e);let i=n.attributes;for(let r=0;r"),!0}endElement(n){let e=ZO(n).toLowerCase();KO.hasOwnProperty(e)&&!rP.hasOwnProperty(e)&&(this.buf.push(""))}chars(n){this.buf.push(XO(n))}};function OW(t,n){return(t.compareDocumentPosition(n)&Node.DOCUMENT_POSITION_CONTAINED_BY)!==Node.DOCUMENT_POSITION_CONTAINED_BY}function RW(t){let n=t.nextSibling;if(n&&t!==n.previousSibling)throw lP(n);return n}function PW(t){let n=t.firstChild;if(n&&OW(t,n))throw lP(n);return n}function ZO(t){let n=t.nodeName;return typeof n=="string"?n:"FORM"}function lP(t){return new Error(`Failed to sanitize html because the element is clobbered: ${t.outerHTML}`)}var FW=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,NW=/([^\#-~ |!])/g;function XO(t){return t.replace(/&/g,"&").replace(FW,function(n){let e=n.charCodeAt(0),i=n.charCodeAt(1);return"&#"+((e-55296)*1024+(i-56320)+65536)+";"}).replace(NW,function(n){return"&#"+n.charCodeAt(0)+";"}).replace(//g,">")}var Fb;function uv(t,n){let e=null;try{Fb=Fb||CW(t);let i=n?String(n):"";e=Fb.getInertBodyElement(i);let r=5,o=i;do{if(r===0)throw new Error("Failed to sanitize html because the input is unstable");r--,i=o,o=e.innerHTML,e=Fb.getInertBodyElement(i)}while(i!==o);let s=new EE().sanitizeChildren(JO(e)||e);return dv(s)}finally{if(e){let i=JO(e)||e;for(;i.firstChild;)i.firstChild.remove()}}}function JO(t){return"content"in t&&LW(t)?t.content:null}function LW(t){return t.nodeType===Node.ELEMENT_NODE&&t.nodeName==="TEMPLATE"}var VW=/^>|^->||--!>|)/g,jW="\u200B$1\u200B";function HW(t){return t.replace(VW,n=>n.replace(BW,jW))}function zW(t,n){return t.createText(n)}function UW(t,n,e){t.setValue(n,e)}function $W(t,n){return t.createComment(HW(n))}function cP(t,n,e){return t.createElement(n,e)}function Yb(t,n,e,i,r){t.insertBefore(n,e,i,r)}function dP(t,n,e){t.appendChild(n,e)}function eR(t,n,e,i,r){i!==null?Yb(t,n,e,i,r):dP(t,n,e)}function uP(t,n,e,i){t.removeChild(null,n,e,i)}function WW(t,n,e){t.setAttribute(n,"style",e)}function GW(t,n,e){e===""?t.removeAttribute(n,"class"):t.setAttribute(n,"class",e)}function mP(t,n,e){let{mergedAttrs:i,classes:r,styles:o}=e;i!==null&&J$(t,n,i),r!==null&&GW(t,n,r),o!==null&&WW(t,n,o)}var An=(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})(An||{});function Zp(t){let n=lM();return n?YO(n.sanitize(An.HTML,t)||""):ls(t,"HTML")?YO(Ur(t)):uv(eM(),Fo(t))}function $r(t){let n=lM();return n?n.sanitize(An.URL,t)||"":ls(t,"URL")?Ur(t):Qp(Fo(t))}function hP(t){let n=lM();if(n)return QO(n.sanitize(An.RESOURCE_URL,t)||"");if(ls(t,"ResourceURL"))return QO(Ur(t));throw new ue(904,!1)}var qW=new Set(["embed","frame","iframe","media","script"]),YW=new Set(["base","link","script"]);function QW(t,n){return n==="src"&&qW.has(t)||n==="href"&&YW.has(t)||n==="xlink:href"&&t==="script"?hP:$r}function sM(t,n,e){return QW(n,e)(t)}function lM(){let t=Ne();return t&&t[Za].sanitizer}function pP(t){return t instanceof Function?t():t}function KW(t,n,e){let i=t.length;for(;;){let r=t.indexOf(n,e);if(r===-1)return r;if(r===0||t.charCodeAt(r-1)<=32){let o=n.length;if(r+o===i||t.charCodeAt(r+o)<=32)return r}e=r+1}}var fP="ng-template";function ZW(t,n,e,i){let r=0;if(i){for(;r-1){let o;for(;++ro?m="":m=r[d+1].toLowerCase(),i&2&&c!==m){if(ya(i))return!1;a=!0}}}}return ya(i)||a}function ya(t){return(t&1)===0}function e7(t,n,e,i){if(n===null)return-1;let r=0;if(i||!e){let o=!1;for(;r-1)for(e++;e0?'="'+s+'"':"")+"]"}else i&8?r+="."+a:i&4&&(r+=" "+a);else r!==""&&!ya(a)&&(n+=tR(o,r),r=""),i=a,o=o||!ya(i);e++}return r!==""&&(n+=tR(o,r)),n}function a7(t){return t.map(o7).join(",")}function s7(t){let n=[],e=[],i=1,r=2;for(;inull),a=i;if(n&&typeof n=="object"){let l=n;r=l.next?.bind(l),o=l.error?.bind(l),a=l.complete?.bind(l)}this.__isAsync&&(o=this.wrapInTimeout(o),r&&(r=this.wrapInTimeout(r)),a&&(a=this.wrapInTimeout(a)));let s=super.subscribe({next:r,error:o,complete:a});return n instanceof ke&&n.add(s),s}wrapInTimeout(n){return e=>{let i=this.pendingTasks?.add();setTimeout(()=>{try{n(e)}finally{i!==void 0&&this.pendingTasks?.remove(i)}})}}},U=kE;function xP(t){let n,e;function i(){t=Dd;try{e!==void 0&&typeof cancelAnimationFrame=="function"&&cancelAnimationFrame(e),n!==void 0&&clearTimeout(n)}catch{}}return n=setTimeout(()=>{t(),i()}),typeof requestAnimationFrame=="function"&&(e=requestAnimationFrame(()=>{t(),i()})),()=>i()}function nR(t){return queueMicrotask(()=>t()),()=>{t=Dd}}var pM="isAngularZone",Qb=pM+"_ID",m7=0,ae=class t{hasPendingMacrotasks=!1;hasPendingMicrotasks=!1;isStable=!0;onUnstable=new U(!1);onMicrotaskEmpty=new U(!1);onStable=new U(!1);onError=new U(!1);constructor(n){let{enableLongStackTrace:e=!1,shouldCoalesceEventChangeDetection:i=!1,shouldCoalesceRunChangeDetection:r=!1,scheduleInRootZone:o=yP}=n;if(typeof Zone>"u")throw new ue(908,!1);Zone.assertZonePatched();let a=this;a._nesting=0,a._outer=a._inner=Zone.current,Zone.TaskTrackingZoneSpec&&(a._inner=a._inner.fork(new Zone.TaskTrackingZoneSpec)),e&&Zone.longStackTraceZoneSpec&&(a._inner=a._inner.fork(Zone.longStackTraceZoneSpec)),a.shouldCoalesceEventChangeDetection=!r&&i,a.shouldCoalesceRunChangeDetection=r,a.callbackScheduled=!1,a.scheduleInRootZone=o,f7(a)}static isInAngularZone(){return typeof Zone<"u"&&Zone.current.get(pM)===!0}static assertInAngularZone(){if(!t.isInAngularZone())throw new ue(909,!1)}static assertNotInAngularZone(){if(t.isInAngularZone())throw new ue(909,!1)}run(n,e,i){return this._inner.run(n,e,i)}runTask(n,e,i,r){let o=this._inner,a=o.scheduleEventTask("NgZoneEvent: "+r,n,h7,Dd,Dd);try{return o.runTask(a,e,i)}finally{o.cancelTask(a)}}runGuarded(n,e,i){return this._inner.runGuarded(n,e,i)}runOutsideAngular(n){return this._outer.run(n)}},h7={};function fM(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 p7(t){if(t.isCheckStableRunning||t.callbackScheduled)return;t.callbackScheduled=!0;function n(){xP(()=>{t.callbackScheduled=!1,SE(t),t.isCheckStableRunning=!0,fM(t),t.isCheckStableRunning=!1})}t.scheduleInRootZone?Zone.root.run(()=>{n()}):t._outer.run(()=>{n()}),SE(t)}function f7(t){let n=()=>{p7(t)},e=m7++;t._inner=t._inner.fork({name:"angular",properties:{[pM]:!0,[Qb]:e,[Qb+e]:!0},onInvokeTask:(i,r,o,a,s,l)=>{if(g7(l))return i.invokeTask(o,a,s,l);try{return rR(t),i.invokeTask(o,a,s,l)}finally{(t.shouldCoalesceEventChangeDetection&&a.type==="eventTask"||t.shouldCoalesceRunChangeDetection)&&n(),oR(t)}},onInvoke:(i,r,o,a,s,l,c)=>{try{return rR(t),i.invoke(o,a,s,l,c)}finally{t.shouldCoalesceRunChangeDetection&&!t.callbackScheduled&&!_7(l)&&n(),oR(t)}},onHasTask:(i,r,o,a)=>{i.hasTask(o,a),r===o&&(a.change=="microTask"?(t._hasPendingMicrotasks=a.microTask,SE(t),fM(t)):a.change=="macroTask"&&(t.hasPendingMacrotasks=a.macroTask))},onHandleError:(i,r,o,a)=>(i.handleError(o,a),t.runOutsideAngular(()=>t.onError.emit(a)),!1)})}function SE(t){t._hasPendingMicrotasks||(t.shouldCoalesceEventChangeDetection||t.shouldCoalesceRunChangeDetection)&&t.callbackScheduled===!0?t.hasPendingMicrotasks=!0:t.hasPendingMicrotasks=!1}function rR(t){t._nesting++,t.isStable&&(t.isStable=!1,t.onUnstable.emit(null))}function oR(t){t._nesting--,fM(t)}var jp=class{hasPendingMicrotasks=!1;hasPendingMacrotasks=!1;isStable=!0;onUnstable=new U;onMicrotaskEmpty=new U;onStable=new U;onError=new U;run(n,e,i){return n.apply(e,i)}runGuarded(n,e,i){return n.apply(e,i)}runOutsideAngular(n){return n()}runTask(n,e,i,r){return n.apply(e,i)}};function g7(t){return CP(t,"__ignore_ng_zone__")}function _7(t){return CP(t,"__scheduler_tick__")}function CP(t,n){return!Array.isArray(t)||t.length!==1?!1:t[0]?.data?.[n]===!0}var pv=(()=>{class t{impl=null;execute(){this.impl?.execute()}static \u0275prov=O({token:t,providedIn:"root",factory:()=>new t})}return t})(),gM=[0,1,2,3],_M=(()=>{class t{ngZone=u(ae);scheduler=u(Oo);errorHandler=u(Tn,{optional:!0});sequences=new Set;deferredRegistrations=new Set;executing=!1;constructor(){u(Yl,{optional:!0})}execute(){let e=this.sequences.size>0;e&&oi(16),this.executing=!0;for(let i of gM)for(let r of this.sequences)if(!(r.erroredOrDestroyed||!r.hooks[i]))try{r.pipelinedValue=this.ngZone.runOutsideAngular(()=>this.maybeTrace(()=>{let o=r.hooks[i];return o(r.pipelinedValue)},r.snapshot))}catch(o){r.erroredOrDestroyed=!0,this.errorHandler?.handleError(o)}this.executing=!1;for(let i of this.sequences)i.afterRun(),i.once&&(this.sequences.delete(i),i.destroy());for(let i of this.deferredRegistrations)this.sequences.add(i);this.deferredRegistrations.size>0&&this.scheduler.notify(7),this.deferredRegistrations.clear(),e&&oi(17)}register(e){let{view:i}=e;i!==void 0?((i[vd]??=[]).push(e),zl(i),i[et]|=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,i){return i?i.run(hv.AFTER_NEXT_RENDER,e):e()}static \u0275prov=O({token:t,providedIn:"root",factory:()=>new t})}return t})(),Hp=class{impl;hooks;view;once;snapshot;erroredOrDestroyed=!1;pipelinedValue=void 0;unregisterOnDestroy;constructor(n,e,i,r,o,a=null){this.impl=n,this.hooks=e,this.view=i,this.once=r,this.snapshot=a,this.unregisterOnDestroy=o?.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?.[vd];n&&(this.view[vd]=n.filter(e=>e!==this))}};function pt(t,n){let e=n?.injector??u(de);return cs("NgAfterNextRender"),v7(t,e,n,!0)}function b7(t){return t instanceof Function?[void 0,void 0,t,void 0]:[t.earlyRead,t.write,t.mixedReadWrite,t.read]}function v7(t,n,e,i){let r=n.get(pv);r.impl??=n.get(_M);let o=n.get(Yl,null,{optional:!0}),a=e?.manualCleanup!==!0?n.get(nn):null,s=n.get(wd,null,{optional:!0}),l=new Hp(r.impl,b7(t),s?.view,i,a,o?.snapshot(null));return r.impl.register(l),l}var wP=new T("",{providedIn:"root",factory:()=>({queue:new Set,isScheduled:!1,scheduler:null})});function DP(t,n,e){let i=t.get(wP);if(Array.isArray(n))for(let r of n)i.queue.add(r),e?.detachedLeaveAnimationFns?.push(r);else i.queue.add(n),e?.detachedLeaveAnimationFns?.push(n);i.scheduler&&i.scheduler(t)}function y7(t,n){let e=t.get(wP);if(n.detachedLeaveAnimationFns){for(let i of n.detachedLeaveAnimationFns)e.queue.delete(i);n.detachedLeaveAnimationFns=void 0}}function x7(t,n){for(let[e,i]of n)DP(t,i.animateFns)}function aR(t,n,e,i){let r=t?.[yd]?.enter;n!==null&&r&&r.has(e.index)&&x7(i,r)}function am(t,n,e,i,r,o,a,s){if(r!=null){let l,c=!1;_a(r)?l=r:Ja(r)&&(c=!0,r=r[ga]);let d=Lo(r);t===0&&i!==null?(aR(s,i,o,e),a==null?dP(n,i,d):Yb(n,i,d,a||null,!0)):t===1&&i!==null?(aR(s,i,o,e),Yb(n,i,d,a||null,!0)):t===2?sR(s,o,e,m=>{uP(n,d,c,m)}):t===3&&sR(s,o,e,()=>{n.destroyNode(d)}),l!=null&&O7(n,t,e,l,o,i,a)}}function C7(t,n){EP(t,n),n[ga]=null,n[Sr]=null}function w7(t,n,e,i,r,o){i[ga]=r,i[Sr]=n,gv(t,i,e,1,r,o)}function EP(t,n){n[Za].changeDetectionScheduler?.notify(9),gv(t,n,n[ri],2,null,null)}function D7(t){let n=t[Xu];if(!n)return nE(t[We],t);for(;n;){let e=null;if(Ja(n))e=n[Xu];else{let i=n[Yi];i&&(e=i)}if(!e){for(;n&&!n[No]&&n!==t;)Ja(n)&&nE(n[We],n),n=n[bn];n===null&&(n=t),Ja(n)&&nE(n[We],n),e=n&&n[No]}n=e}}function bM(t,n){let e=t[xd],i=e.indexOf(n);e.splice(i,1)}function fv(t,n){if(Cd(n))return;let e=n[ri];e.destroyNode&&gv(t,n,e,3,null,null),D7(n)}function nE(t,n){if(Cd(n))return;let e=Xe(null);try{n[et]&=-129,n[et]|=256,n[ho]&&Tl(n[ho]),k7(t,n),M7(t,n),n[We].type===1&&n[ri].destroy();let i=n[jl];if(i!==null&&_a(n[bn])){i!==n[bn]&&bM(i,n);let r=n[Xa];r!==null&&r.detachView(t)}fE(n)}finally{Xe(e)}}function sR(t,n,e,i){let r=t?.[yd];if(r==null||r.leave==null||!r.leave.has(n.index))return i(!1);t&&kd.add(t),DP(e,()=>{if(r.leave&&r.leave.has(n.index)){let a=r.leave.get(n.index),s=[];if(a){for(let l=0;l{t[yd].running=void 0,kd.delete(t),n(!0)});return}n(!1)}function M7(t,n){let e=t.cleanup,i=n[Zu];if(e!==null)for(let a=0;a=0?i[s]():i[-s].unsubscribe(),a+=2}else{let s=i[e[a+1]];e[a].call(s)}i!==null&&(n[Zu]=null);let r=n[Us];if(r!==null){n[Us]=null;for(let a=0;ami&&vP(t,n,mi,!1),oi(a?2:0,r,e),e(i,r)}finally{Ul(o),oi(a?3:1,r,e)}}function _v(t,n,e){V7(t,n,e),(e.flags&64)===64&&B7(t,n,e)}function _m(t,n,e=Vo){let i=n.localNames;if(i!==null){let r=n.index+1;for(let o=0;onull;function L7(t){return t==="class"?"className":t==="for"?"htmlFor":t==="formaction"?"formAction":t==="innerHtml"?"innerHTML":t==="readonly"?"readOnly":t==="tabindex"?"tabIndex":t}function AP(t,n,e,i,r,o){let a=n[We];if(yv(t,a,n,e,i)){qs(t)&&RP(n,t.index);return}t.type&3&&(e=L7(e)),OP(t,n,e,i,r,o)}function OP(t,n,e,i,r,o){if(t.type&3){let a=Vo(t,n);i=o!=null?o(i,t.value||"",e):i,r.setProperty(a,e,i)}else t.type&12}function RP(t,n){let e=Bo(n,t);e[et]&16||(e[et]|=64)}function V7(t,n,e){let i=e.directiveStart,r=e.directiveEnd;qs(e)&&d7(n,e,t.data[i+e.componentOffset]),t.firstCreatePass||qb(e,n);let o=e.initialInputs;for(let a=i;a{zl(t.lView)},consumerOnSignalRead(){this.lView[ho]=this}});function Z7(t){let n=t[ho]??Object.create(X7);return n.lView=t,n}var X7=De(M({},td),{consumerIsAlwaysLive:!0,kind:"template",consumerMarkedDirty:t=>{let n=Bl(t.lView);for(;n&&!VP(n[We]);)n=Bl(n);n&&FD(n)},consumerOnSignalRead(){this.lView[ho]=this}});function VP(t){return t.type!==2}function BP(t){if(t[Gs]===null)return;let n=!0;for(;n;){let e=!1;for(let i of t[Gs])i.dirty&&(e=!0,i.zone===null||Zone.current===i.zone?i.run():i.zone.run(()=>i.run()));n=e&&!!(t[et]&8192)}}var J7=100;function jP(t,n=0){let i=t[Za].rendererFactory,r=!1;r||i.begin?.();try{eG(t,n)}finally{r||i.end?.()}}function eG(t,n){let e=GD();try{nm(!0),IE(t,n);let i=0;for(;Ap(t);){if(i===J7)throw new ue(103,!1);i++,IE(t,1)}}finally{nm(e)}}function tG(t,n,e,i){if(Cd(n))return;let r=n[et],o=!1,a=!1;Sb(n);let s=!0,l=null,c=null;o||(VP(t)?(c=q7(n),l=Sl(c)):A_()===null?(s=!1,c=Z7(n),l=Sl(c)):n[ho]&&(Tl(n[ho]),n[ho]=null));try{PD(n),IO(t.bindingStartIndex),e!==null&&IP(t,n,e,2,i);let d=(r&3)===3;if(!o)if(d){let b=t.preOrderCheckHooks;b!==null&&Vb(n,b,null)}else{let b=t.preOrderHooks;b!==null&&Bb(n,b,0,null),tE(n,0)}if(a||iG(n),BP(n),HP(n,0),t.contentQueries!==null&&tP(t,n),!o)if(d){let b=t.contentCheckHooks;b!==null&&Vb(n,b)}else{let b=t.contentHooks;b!==null&&Bb(n,b,1),tE(n,1)}rG(t,n);let m=t.components;m!==null&&UP(n,m,0);let f=t.viewQuery;if(f!==null&&_E(2,f,i),!o)if(d){let b=t.viewCheckHooks;b!==null&&Vb(n,b)}else{let b=t.viewHooks;b!==null&&Bb(n,b,2),tE(n,2)}if(t.firstUpdatePass===!0&&(t.firstUpdatePass=!1),n[Cb]){for(let b of n[Cb])b();n[Cb]=null}o||(NP(n),n[et]&=-73)}catch(d){throw o||zl(n),d}finally{c!==null&&(id(c,l),s&&Q7(c)),Tb()}}function HP(t,n){for(let e=qR(t);e!==null;e=YR(e))for(let i=Yi;i0&&(t[e-1][No]=i[No]);let o=Ep(t,Yi+n);C7(i[We],i);let a=o[Xa];a!==null&&a.detachView(o[We]),i[bn]=null,i[No]=null,i[et]&=-129}return i}function oG(t,n,e,i){let r=Yi+i,o=e.length;i>0&&(e[r-1][No]=n),i-1&&(Up(n,i),Ep(e,i))}this._attachedToViewContainer=!1}fv(this._lView[We],this._lView)}onDestroy(n){ND(this._lView,n)}markForCheck(){wM(this._cdRefInjectingView||this._lView,4)}detach(){this._lView[et]&=-129}reattach(){Db(this._lView),this._lView[et]|=128}detectChanges(){this._lView[et]|=1024,jP(this._lView)}checkNoChanges(){}attachToViewContainerRef(){if(this._appRef)throw new ue(902,!1);this._attachedToViewContainer=!0}detachFromAppRef(){this._appRef=null;let n=em(this._lView),e=this._lView[jl];e!==null&&!n&&bM(e,this._lView),EP(this._lView[We],this._lView)}attachToAppRef(n){if(this._attachedToViewContainer)throw new ue(902,!1);this._appRef=n;let e=em(this._lView),i=this._lView[jl];i!==null&&!e&&qP(i,this._lView),Db(this._lView)}};var te=(()=>{class t{_declarationLView;_declarationTContainer;elementRef;static __NG_ELEMENT_ID__=aG;constructor(e,i,r){this._declarationLView=e,this._declarationTContainer=i,this.elementRef=r}get ssrId(){return this._declarationTContainer.tView?.ssrId||null}createEmbeddedView(e,i){return this.createEmbeddedViewImpl(e,i)}createEmbeddedViewImpl(e,i,r){let o=Xp(this._declarationLView,this._declarationTContainer,e,{embeddedViewInjector:i,dehydratedView:r});return new $l(o)}}return t})();function aG(){return xv(tn(),Ne())}function xv(t,n){return t.type&4?new te(n,t,fm(t,n)):null}function bm(t,n,e,i,r){let o=t.data[n];if(o===null)o=sG(t,n,e,i,r),AO()&&(o.flags|=32);else if(o.type&64){o.type=e,o.value=i,o.attrs=r;let a=SO();o.injectorIndex=a===null?-1:a.injectorIndex}return im(o,!0),o}function sG(t,n,e,i,r){let o=UD(),a=$D(),s=a?o:o&&o.parent,l=t.data[n]=cG(t,s,e,n,i,r);return lG(t,l,o,a),l}function lG(t,n,e,i){t.firstChild===null&&(t.firstChild=n),e!==null&&(i?e.child==null&&n.parent!==null&&(e.child=n):e.next===null&&(e.next=n,n.prev=e))}function cG(t,n,e,i,r,o){let a=n?n.injectorIndex:-1,s=0;return jD()&&(s|=128),{type:e,index:i,insertBeforeIndex:null,injectorIndex:a,directiveStart:-1,directiveEnd:-1,directiveStylingLast:-1,componentOffset:-1,propertyBindings:null,flags:s,providerIndexes:0,value:r,attrs:o,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}}var pIe=new RegExp(`^(\\d+)*(${_W}|${gW})*(.*)`);function dG(t){let n=t[TD]??[],i=t[bn][ri],r=[];for(let o of n)o.data[ZR]!==void 0?r.push(o):uG(o,i);t[TD]=r}function uG(t,n){let e=0,i=t.firstChild;if(i){let r=t.data[KR];for(;enull,hG=()=>null;function Kb(t,n){return mG(t,n)}function YP(t,n,e){return hG(t,n,e)}var Id=class{},Cv=class{},AE=class{resolveComponentFactory(n){throw new ue(917,!1)}},ef=class{static NULL=new AE},cn=class{},je=(()=>{class t{destroyNode=null;static __NG_ELEMENT_ID__=()=>pG()}return t})();function pG(){let t=Ne(),n=tn(),e=Bo(n.index,t);return(Ja(e)?e:t)[ri]}var QP=(()=>{class t{static \u0275prov=O({token:t,providedIn:"root",factory:()=>null})}return t})();var Hb={},OE=class{injector;parentInjector;constructor(n,e){this.injector=n,this.parentInjector=e}get(n,e,i){let r=this.injector.get(n,Hb,i);return r!==Hb||e===Hb?r:this.parentInjector.get(n,e,i)}};function Zb(t,n,e){let i=e?t.styles:null,r=e?t.classes:null,o=0;if(n!==null)for(let a=0;a0&&(e.directiveToIndex=new Map);for(let f=0;f0;){let e=t[--n];if(typeof e=="number"&&e<0)return e}return 0}function CG(t,n,e){if(e){if(n.exportAs)for(let i=0;ii(Lo(w[t.index])):t.index;nF(v,n,e,o,s,b,!1)}}return c}function MG(t){return t.startsWith("animation")||t.startsWith("transition")}function kG(t,n,e,i){let r=t.cleanup;if(r!=null)for(let o=0;ol?s[l]:null}typeof a=="string"&&(o+=2)}return null}function nF(t,n,e,i,r,o,a){let s=n.firstCreatePass?VD(n):null,l=LD(e),c=l.length;l.push(r,o),s&&s.push(i,t,c,(c+1)*(a?-1:1))}function hR(t,n,e,i,r,o){let a=n[e],s=n[We],c=s.data[e].outputs[i],m=a[c].subscribe(o);nF(t.index,s,n,r,o,m,!0)}var RE=Symbol("BINDING");var Xb=class extends ef{ngModule;constructor(n){super(),this.ngModule=n}resolveComponentFactory(n){let e=Ka(n);return new Wl(e,this.ngModule)}};function SG(t){return Object.keys(t).map(n=>{let[e,i,r]=t[n],o={propName:e,templateName:n,isSignal:(i&mv.SignalBased)!==0};return r&&(o.transform=r),o})}function TG(t){return Object.keys(t).map(n=>({propName:t[n],templateName:n}))}function IG(t,n,e){let i=n instanceof Wt?n:n?.injector;return i&&t.getStandaloneInjector!==null&&(i=t.getStandaloneInjector(i)||i),i?new OE(e,i):e}function AG(t){let n=t.get(cn,null);if(n===null)throw new ue(407,!1);let e=t.get(QP,null),i=t.get(Oo,null);return{rendererFactory:n,sanitizer:e,changeDetectionScheduler:i,ngReflect:!1}}function OG(t,n){let e=rF(t);return cP(n,e,e==="svg"?AD:e==="math"?yO:null)}function rF(t){return(t.selectors[0][0]||"div").toLowerCase()}var Wl=class extends Cv{componentDef;ngModule;selector;componentType;ngContentSelectors;isBoundToModule;cachedInputs=null;cachedOutputs=null;get inputs(){return this.cachedInputs??=SG(this.componentDef.inputs),this.cachedInputs}get outputs(){return this.cachedOutputs??=TG(this.componentDef.outputs),this.cachedOutputs}constructor(n,e){super(),this.componentDef=n,this.ngModule=e,this.componentType=n.type,this.selector=a7(n.selectors),this.ngContentSelectors=n.ngContentSelectors??[],this.isBoundToModule=!!e}create(n,e,i,r,o,a){oi(22);let s=Xe(null);try{let l=this.componentDef,c=RG(i,l,a,o),d=IG(l,r||this.ngModule,n),m=AG(d),f=m.rendererFactory.createRenderer(null,l),b=i?P7(f,i,l.encapsulation,d):OG(l,f),v=a?.some(pR)||o?.some(D=>typeof D!="function"&&D.bindings.some(pR)),w=uM(null,c,null,512|_P(l),null,null,m,f,d,null,eP(b,d,!0));w[mi]=b,Sb(w);let x=null;try{let D=DM(mi,w,2,"#host",()=>c.directiveRegistry,!0,0);mP(f,b,D),cm(b,w),_v(c,w,D),tM(c,D,w),EM(c,D),e!==void 0&&FG(D,this.ngContentSelectors,e),x=Bo(D.index,w),w[qi]=x[qi],CM(c,w,null)}catch(D){throw x!==null&&fE(x),fE(w),D}finally{oi(23),Tb()}return new Jb(this.componentType,w,!!v)}finally{Xe(s)}}};function RG(t,n,e,i){let r=t?["ng-version","20.3.16"]:s7(n.selectors[0]),o=null,a=null,s=0;if(e)for(let d of e)s+=d[RE].requiredVars,d.create&&(d.targetIdx=0,(o??=[]).push(d)),d.update&&(d.targetIdx=0,(a??=[]).push(d));if(i)for(let d=0;d{if(e&1&&t)for(let i of t)i.create();if(e&2&&n)for(let i of n)i.update()}}function pR(t){let n=t[RE].kind;return n==="input"||n==="twoWay"}var Jb=class extends Id{_rootLView;_hasInputBindings;instance;hostView;changeDetectorRef;componentType;location;previousInputValues=null;_tNode;constructor(n,e,i){super(),this._rootLView=e,this._hasInputBindings=i,this._tNode=Ip(e[We],mi),this.location=fm(this._tNode,e),this.instance=Bo(this._tNode.index,e)[qi],this.hostView=this.changeDetectorRef=new $l(e,void 0),this.componentType=n}setInput(n,e){this._hasInputBindings;let i=this._tNode;if(this.previousInputValues??=new Map,this.previousInputValues.has(n)&&Object.is(this.previousInputValues.get(n),e))return;let r=this._rootLView,o=yv(i,r[We],r,n,e);this.previousInputValues.set(n,e);let a=Bo(i.index,r);wM(a,1)}get injector(){return new Ed(this._tNode,this._rootLView)}destroy(){this.hostView.destroy()}onDestroy(n){this.hostView.onDestroy(n)}};function FG(t,n,e){let i=t.projection=[];for(let r=0;r{class t{static __NG_ELEMENT_ID__=NG}return t})();function NG(){let t=tn();return aF(t,Ne())}var LG=nt,oF=class extends LG{_lContainer;_hostTNode;_hostLView;constructor(n,e,i){super(),this._lContainer=n,this._hostTNode=e,this._hostLView=i}get element(){return fm(this._hostTNode,this._hostLView)}get injector(){return new Ed(this._hostTNode,this._hostLView)}get parentInjector(){let n=ZE(this._hostTNode,this._hostLView);if(FR(n)){let e=Wb(n,this._hostLView),i=$b(n),r=e[We].data[i+8];return new Ed(r,e)}else return new Ed(null,this._hostLView)}clear(){for(;this.length>0;)this.remove(this.length-1)}get(n){let e=fR(this._lContainer);return e!==null&&e[n]||null}get length(){return this._lContainer.length-Yi}createEmbeddedView(n,e,i){let r,o;typeof i=="number"?r=i:i!=null&&(r=i.index,o=i.injector);let a=Kb(this._lContainer,n.ssrId),s=n.createEmbeddedViewImpl(e||{},o,a);return this.insertImpl(s,r,dm(this._hostTNode,a)),s}createComponent(n,e,i,r,o,a,s){let l=n&&!W$(n),c;if(l)c=e;else{let x=e||{};c=x.index,i=x.injector,r=x.projectableNodes,o=x.environmentInjector||x.ngModuleRef,a=x.directives,s=x.bindings}let d=l?n:new Wl(Ka(n)),m=i||this.parentInjector;if(!o&&d.ngModule==null){let D=(l?m:this.parentInjector).get(Wt,null);D&&(o=D)}let f=Ka(d.componentType??{}),b=Kb(this._lContainer,f?.id??null),v=b?.firstChild??null,w=d.create(m,r,v,o,a,s);return this.insertImpl(w.hostView,c,dm(this._hostTNode,b)),w}insert(n,e){return this.insertImpl(n,e,!0)}insertImpl(n,e,i){let r=n._lView;if(CO(r)){let s=this.indexOf(n);if(s!==-1)this.detach(s);else{let l=r[bn],c=new oF(l,l[Sr],l[bn]);c.detach(c.indexOf(n))}}let o=this._adjustIndex(e),a=this._lContainer;return Jp(a,r,o,i),n.attachToViewContainerRef(),yD(rE(a),o,n),n}move(n,e){return this.insert(n,e)}indexOf(n){let e=fR(this._lContainer);return e!==null?e.indexOf(n):-1}remove(n){let e=this._adjustIndex(n,-1),i=Up(this._lContainer,e);i&&(Ep(rE(this._lContainer),e),fv(i[We],i))}detach(n){let e=this._adjustIndex(n,-1),i=Up(this._lContainer,e);return i&&Ep(rE(this._lContainer),e)!=null?new $l(i):null}_adjustIndex(n,e=0){return n??this.length+e}};function fR(t){return t[Tp]}function rE(t){return t[Tp]||(t[Tp]=[])}function aF(t,n){let e,i=n[t.index];return _a(i)?e=i:(e=$P(i,n,null,t),n[t.index]=e,mM(n,e)),BG(e,n,t,i),new oF(e,t,n)}function VG(t,n){let e=t[ri],i=e.createComment(""),r=Vo(n,t),o=e.parentNode(r);return Yb(e,o,i,e.nextSibling(r),!1),i}var BG=zG,jG=()=>!1;function HG(t,n,e){return jG(t,n,e)}function zG(t,n,e,i){if(t[Hl])return;let r;e.type&8?r=Lo(i):r=VG(n,e),t[Hl]=r}var PE=class t{queryList;matches=null;constructor(n){this.queryList=n}clone(){return new t(this.queryList)}setDirty(){this.queryList.setDirty()}},FE=class t{queries;constructor(n=[]){this.queries=n}createEmbeddedView(n){let e=n.queries;if(e!==null){let i=n.contentQueries!==null?n.contentQueries[0]:e.length,r=[];for(let o=0;o0)i.push(a[s/2]);else{let c=o[s+1],d=n[-l];for(let m=Yi;mn.trim())}function uF(t,n,e){t.queries===null&&(t.queries=new NE),t.queries.track(new LE(n,e))}function YG(t,n){let e=t.contentQueries||(t.contentQueries=[]),i=e.length?e[e.length-1]:-1;n!==i&&e.push(t.queries.length-1,n)}function SM(t,n){return t.queries.getByIndex(n)}function mF(t,n){let e=t[We],i=SM(e,n);return i.crossesNgTemplate?VE(e,t,n,[]):sF(e,t,i,n)}function TM(t,n,e){let i,r=pp(()=>{i._dirtyCounter();let o=QG(i,t);if(n&&o===void 0)throw new ue(-951,!1);return o});return i=r[ln],i._dirtyCounter=he(0),i._flatValue=void 0,r}function IM(t){return TM(!0,!1,t)}function AM(t){return TM(!0,!0,t)}function hF(t){return TM(!1,!1,t)}function pF(t,n){let e=t[ln];e._lView=Ne(),e._queryIndex=n,e._queryList=kM(e._lView,n),e._queryList.onDirty(()=>e._dirtyCounter.update(i=>i+1))}function QG(t,n){let e=t._lView,i=t._queryIndex;if(e===void 0||i===void 0||e[et]&4)return n?void 0:ur;let r=kM(e,i),o=mF(e,i);return r.reset(o,$R),n?r.first:r._changesDetected||t._flatValue===void 0?t._flatValue=r.toArray():t._flatValue}var as=class{},wv=class{};var tv=class extends as{ngModuleType;_parent;_bootstrapComponents=[];_r3Injector;instance;destroyCbs=[];componentFactoryResolver=new Xb(this);constructor(n,e,i,r=!0){super(),this.ngModuleType=n,this._parent=e;let o=wD(n);this._bootstrapComponents=pP(o.bootstrap),this._r3Injector=KD(n,e,[{provide:as,useValue:this},{provide:ef,useValue:this.componentFactoryResolver},...i],$s(n),new Set(["environment"])),r&&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)}},iv=class extends wv{moduleType;constructor(n){super(),this.moduleType=n}create(n){return new tv(this.moduleType,n,[])}};var Wp=class extends as{injector;componentFactoryResolver=new Xb(this);instance=null;constructor(n){super();let e=new pd([...n.providers,{provide:as,useValue:this},{provide:ef,useValue:this.componentFactoryResolver}],n.parent||Ku(),n.debugName,new Set(["environment"]));this.injector=e,n.runEnvironmentInitializers&&e.resolveInjectorInitializers()}destroy(){this.injector.destroy()}onDestroy(n){this.injector.onDestroy(n)}};function vm(t,n,e=null){return new Wp({providers:t,parent:n,debugName:e,runEnvironmentInitializers:!0}).injector}var KG=(()=>{class t{_injector;cachedInjectors=new Map;constructor(e){this._injector=e}getOrCreateStandaloneInjector(e){if(!e.standalone)return null;if(!this.cachedInjectors.has(e)){let i=DD(!1,e.type),r=i.length>0?vm([i],this._injector,`Standalone[${e.type.name}]`):null;this.cachedInjectors.set(e,r)}return this.cachedInjectors.get(e)}ngOnDestroy(){try{for(let e of this.cachedInjectors.values())e!==null&&e.destroy()}finally{this.cachedInjectors.clear()}}static \u0275prov=O({token:t,providedIn:"environment",factory:()=>new t(pe(Wt))})}return t})();function E(t){return pm(()=>{let n=fF(t),e=De(M({},n),{decls:t.decls,vars:t.vars,template:t.template,consts:t.consts||null,ngContentSelectors:t.ngContentSelectors,onPush:t.changeDetection===XE.OnPush,directiveDefs:null,pipeDefs:null,dependencies:n.standalone&&t.dependencies||null,getStandaloneInjector:n.standalone?r=>r.get(KG).getOrCreateStandaloneInjector(e):null,getExternalStyles:null,signals:t.signals??!1,data:t.data||{},encapsulation:t.encapsulation||Ys.Emulated,styles:t.styles||ur,_:null,schemas:t.schemas||null,tView:null,id:""});n.standalone&&cs("NgStandalone"),gF(e);let i=t.dependencies;return e.directiveDefs=gR(i,ZG),e.pipeDefs=gR(i,hO),e.id=e9(e),e})}function ZG(t){return Ka(t)||yb(t)}function ee(t){return pm(()=>({type:t.type,bootstrap:t.bootstrap||ur,declarations:t.declarations||ur,imports:t.imports||ur,exports:t.exports||ur,transitiveCompileScopes:null,schemas:t.schemas||null,id:t.id||null}))}function XG(t,n){if(t==null)return fa;let e={};for(let i in t)if(t.hasOwnProperty(i)){let r=t[i],o,a,s,l;Array.isArray(r)?(s=r[0],o=r[1],a=r[2]??o,l=r[3]||null):(o=r,a=r,s=mv.None,l=null),e[o]=[i,s,l],n[o]=a}return e}function JG(t){if(t==null)return fa;let n={};for(let e in t)t.hasOwnProperty(e)&&(n[t[e]]=e);return n}function F(t){return pm(()=>{let n=fF(t);return gF(n),n})}function Wr(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 fF(t){let n={};return{type:t.type,providersResolver:null,factory:null,hostBindings:t.hostBindings||null,hostVars:t.hostVars||0,hostAttrs:t.hostAttrs||null,contentQueries:t.contentQueries||null,declaredInputs:n,inputConfig:t.inputs||fa,exportAs:t.exportAs||null,standalone:t.standalone??!0,signals:t.signals===!0,selectors:t.selectors||ur,viewQuery:t.viewQuery||null,features:t.features||null,setInput:null,resolveHostDirectives:null,hostDirectives:null,inputs:XG(t.inputs,n),outputs:JG(t.outputs),debugInfo:null}}function gF(t){t.features?.forEach(n=>n(t))}function gR(t,n){return t?()=>{let e=typeof t=="function"?t():t,i=[];for(let r of e){let o=n(r);o!==null&&i.push(o)}return i}:null}function e9(t){let n=0,e=typeof t.consts=="function"?"":t.consts,i=[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 o of i.join("|"))n=Math.imul(31,n)+o.charCodeAt(0)<<0;return n+=2147483648,"c"+n}function t9(t){return Object.getPrototypeOf(t.prototype).constructor}function le(t){let n=t9(t.type),e=!0,i=[t];for(;n;){let r;if(ba(t))r=n.\u0275cmp||n.\u0275dir;else{if(n.\u0275cmp)throw new ue(903,!1);r=n.\u0275dir}if(r){if(e){i.push(r);let a=t;a.inputs=oE(t.inputs),a.declaredInputs=oE(t.declaredInputs),a.outputs=oE(t.outputs);let s=r.hostBindings;s&&a9(t,s);let l=r.viewQuery,c=r.contentQueries;if(l&&r9(t,l),c&&o9(t,c),i9(t,r),rO(t.outputs,r.outputs),ba(r)&&r.data.animation){let d=t.data;d.animation=(d.animation||[]).concat(r.data.animation)}}let o=r.features;if(o)for(let a=0;a=0;i--){let r=t[i];r.hostVars=n+=r.hostVars,r.hostAttrs=lm(r.hostAttrs,e=lm(e,r.hostAttrs))}}function oE(t){return t===fa?{}:t===ur?[]:t}function r9(t,n){let e=t.viewQuery;e?t.viewQuery=(i,r)=>{n(i,r),e(i,r)}:t.viewQuery=n}function o9(t,n){let e=t.contentQueries;e?t.contentQueries=(i,r,o)=>{n(i,r,o),e(i,r,o)}:t.contentQueries=n}function a9(t,n){let e=t.hostBindings;e?t.hostBindings=(i,r)=>{n(i,r),e(i,r)}:t.hostBindings=n}function ym(t){let n=e=>{let i=Array.isArray(t);e.hostDirectives===null?(e.resolveHostDirectives=s9,e.hostDirectives=i?t.map(BE):[t]):i?e.hostDirectives.unshift(...t.map(BE)):e.hostDirectives.unshift(t)};return n.ngInherit=!0,n}function s9(t){let n=[],e=!1,i=null,r=null;for(let o=0;o{class t{log(e){console.log(e)}warn(e){console.warn(e)}static \u0275fac=function(i){return new(i||t)};static \u0275prov=O({token:t,factory:t.\u0275fac,providedIn:"platform"})}return t})();var OM=new T("");function Xs(t){return!!t&&typeof t.then=="function"}function Ev(t){return!!t&&typeof t.subscribe=="function"}var RM=new T("");function Ql(t){return zr([{provide:RM,multi:!0,useValue:t}])}var PM=(()=>{class t{resolve;reject;initialized=!1;done=!1;donePromise=new Promise((e,i)=>{this.resolve=e,this.reject=i});appInits=u(RM,{optional:!0})??[];injector=u(de);constructor(){}runInitializers(){if(this.initialized)return;let e=[];for(let r of this.appInits){let o=In(this.injector,r);if(Xs(o))e.push(o);else if(Ev(o)){let a=new Promise((s,l)=>{o.subscribe({complete:s,error:l})});e.push(a)}}let i=()=>{this.done=!0,this.resolve()};Promise.all(e).then(()=>{i()}).catch(r=>{this.reject(r)}),e.length===0&&i(),this.initialized=!0}static \u0275fac=function(i){return new(i||t)};static \u0275prov=O({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),nf=new T("");function vF(){Aw(()=>{let t="";throw new ue(600,t)})}function yF(t){return t.isBoundToModule}var m9=10;var Gn=(()=>{class t{_runningTick=!1;_destroyed=!1;_destroyListeners=[];_views=[];internalErrorHandler=u(hr);afterRenderManager=u(pv);zonelessEnabled=u(Fp);rootEffectScheduler=u(Np);dirtyFlags=0;tracingSnapshot=null;allTestViews=new Set;autoDetectTestViews=new Set;includeAllTestViews=!1;afterTick=new z;get allViews(){return[...(this.includeAllTestViews?this.allTestViews:this.autoDetectTestViews).keys(),...this._views]}get destroyed(){return this._destroyed}componentTypes=[];components=[];internalPendingTask=u(ns);get isStable(){return this.internalPendingTask.hasPendingTasksObservable.pipe(se(e=>!e))}constructor(){u(Yl,{optional:!0})}whenStable(){let e;return new Promise(i=>{e=this.isStable.subscribe({next:r=>{r&&i()}})}).finally(()=>{e.unsubscribe()})}_injector=u(Wt);_rendererFactory=null;get injector(){return this._injector}bootstrap(e,i){return this.bootstrapImpl(e,i)}bootstrapImpl(e,i,r=de.NULL){return this._injector.get(ae).run(()=>{oi(10);let a=e instanceof Cv;if(!this._injector.get(PM).done){let v="";throw new ue(405,v)}let l;a?l=e:l=this._injector.get(ef).resolveComponentFactory(e),this.componentTypes.push(l.componentType);let c=yF(l)?void 0:this._injector.get(as),d=i||l.selector,m=l.create(r,[],d,c),f=m.location.nativeElement,b=m.injector.get(OM,null);return b?.registerApplication(f),m.onDestroy(()=>{this.detachView(m.hostView),Vp(this.components,m),b?.unregisterApplication(f)}),this._loadComponent(m),oi(11,m),m})}tick(){this.zonelessEnabled||(this.dirtyFlags|=1),this._tick()}_tick(){oi(12),this.tracingSnapshot!==null?this.tracingSnapshot.run(hv.CHANGE_DETECTION,this.tickImpl):this.tickImpl()}tickImpl=()=>{if(this._runningTick)throw new ue(101,!1);let e=Xe(null);try{this._runningTick=!0,this.synchronize()}finally{this._runningTick=!1,this.tracingSnapshot?.dispose(),this.tracingSnapshot=null,Xe(e),this.afterTick.next(),oi(13)}};synchronize(){this._rendererFactory===null&&!this._injector.destroyed&&(this._rendererFactory=this._injector.get(cn,null,{optional:!0}));let e=0;for(;this.dirtyFlags!==0&&e++Ap(e))){this.dirtyFlags|=2;return}else this.dirtyFlags&=-8}attachView(e){let i=e;this._views.push(i),i.attachToAppRef(this)}detachView(e){let i=e;Vp(this._views,i),i.detachFromAppRef()}_loadComponent(e){this.attachView(e.hostView);try{this.tick()}catch(r){this.internalErrorHandler(r)}this.components.push(e),this._injector.get(nf,[]).forEach(r=>r(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),()=>Vp(this._destroyListeners,e)}destroy(){if(this._destroyed)throw new ue(406,!1);let e=this._injector;e.destroy&&!e.destroyed&&e.destroy()}get viewCount(){return this._views.length}static \u0275fac=function(i){return new(i||t)};static \u0275prov=O({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();function Vp(t,n){let e=t.indexOf(n);e>-1&&t.splice(e,1)}function Kl(t,n){let e=Ne(),i=ts();if(Tr(e,i,n)){let r=gi(),o=rm();if(yv(o,r,e,t,n))qs(o)&&RP(e,o.index);else{let s=Vo(o,e);PP(e[ri],s,null,o.value,t,n,null)}}return Kl}function X(t,n,e,i){let r=Ne(),o=ts();if(Tr(r,o,n)){let a=gi(),s=rm();H7(s,r,t,n,e,i)}return X}var xIe=typeof document<"u"&&typeof document?.documentElement?.getAnimations=="function";function Mv(){return Ne()[mr][qi]}var jE=class{destroy(n){}updateValue(n,e){}swap(n,e){let i=Math.min(n,e),r=Math.max(n,e),o=this.detach(r);if(r-i>1){let a=this.detach(i);this.attach(i,o),this.attach(r,a)}else this.attach(i,o)}move(n,e){this.attach(e,this.detach(n))}};function aE(t,n,e,i,r){return t===e&&Object.is(n,i)?1:Object.is(r(t,n),r(e,i))?-1:0}function h9(t,n,e){let i,r,o=0,a=t.length-1,s=void 0;if(Array.isArray(n)){let l=n.length-1;for(;o<=a&&o<=l;){let c=t.at(o),d=n[o],m=aE(o,c,o,d,e);if(m!==0){m<0&&t.updateValue(o,d),o++;continue}let f=t.at(a),b=n[l],v=aE(a,f,l,b,e);if(v!==0){v<0&&t.updateValue(a,b),a--,l--;continue}let w=e(o,c),x=e(a,f),D=e(o,d);if(Object.is(D,x)){let P=e(l,b);Object.is(P,w)?(t.swap(o,a),t.updateValue(a,b),l--,a--):t.move(a,o),t.updateValue(o,d),o++;continue}if(i??=new nv,r??=yR(t,o,a,e),HE(t,i,o,D))t.updateValue(o,d),o++,a++;else if(r.has(D))i.set(w,t.detach(o)),a--;else{let P=t.create(o,n[o]);t.attach(o,P),o++,a++}}for(;o<=l;)vR(t,i,e,o,n[o]),o++}else if(n!=null){let l=n[Symbol.iterator](),c=l.next();for(;!c.done&&o<=a;){let d=t.at(o),m=c.value,f=aE(o,d,o,m,e);if(f!==0)f<0&&t.updateValue(o,m),o++,c=l.next();else{i??=new nv,r??=yR(t,o,a,e);let b=e(o,m);if(HE(t,i,o,b))t.updateValue(o,m),o++,a++,c=l.next();else if(!r.has(b))t.attach(o,t.create(o,m)),o++,a++,c=l.next();else{let v=e(o,d);i.set(v,t.detach(o)),a--}}}for(;!c.done;)vR(t,i,e,t.length,c.value),c=l.next()}for(;o<=a;)t.destroy(t.detach(a--));i?.forEach(l=>{t.destroy(l)})}function HE(t,n,e,i){return n!==void 0&&n.has(i)?(t.attach(e,n.get(i)),n.delete(i),!0):!1}function vR(t,n,e,i,r){if(HE(t,n,i,e(i,r)))t.updateValue(i,r);else{let o=t.create(i,r);t.attach(i,o)}}function yR(t,n,e,i){let r=new Set;for(let o=n;o<=e;o++)r.add(i(o,t.at(o)));return r}var nv=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 i=this.kvMap.get(n);this._vMap===void 0&&(this._vMap=new Map);let r=this._vMap;for(;r.has(i);)i=r.get(i);r.set(i,e)}else this.kvMap.set(n,e)}forEach(n){for(let[e,i]of this.kvMap)if(n(i,e),this._vMap!==void 0){let r=this._vMap;for(;r.has(i);)i=r.get(i),n(i,e)}}};function N(t,n,e,i,r,o,a,s){cs("NgControlFlow");let l=Ne(),c=gi(),d=po(c.consts,o);return um(l,c,t,n,e,i,r,d,256,a,s),FM}function FM(t,n,e,i,r,o,a,s){cs("NgControlFlow");let l=Ne(),c=gi(),d=po(c.consts,o);return um(l,c,t,n,e,i,r,d,512,a,s),FM}function L(t,n){cs("NgControlFlow");let e=Ne(),i=ts(),r=e[i]!==On?e[i]:-1,o=r!==-1?rv(e,mi+r):void 0,a=0;if(Tr(e,i,t)){let s=Xe(null);try{if(o!==void 0&&GP(o,a),t!==-1){let l=mi+t,c=rv(e,l),d=WE(e[We],l),m=YP(c,d,e),f=Xp(e,d,n,{dehydratedView:m});Jp(c,f,a,dm(d,m))}}finally{Xe(s)}}else if(o!==void 0){let s=WP(o,a);s!==void 0&&(s[qi]=n)}}var zE=class{lContainer;$implicit;$index;constructor(n,e,i){this.lContainer=n,this.$implicit=e,this.$index=i}get $count(){return this.lContainer.length-Yi}};function Hi(t){return t}function xm(t,n){return n}var UE=class{hasEmptyBlock;trackByFn;liveCollection;constructor(n,e,i){this.hasEmptyBlock=n,this.trackByFn=e,this.liveCollection=i}};function xt(t,n,e,i,r,o,a,s,l,c,d,m,f){cs("NgControlFlow");let b=Ne(),v=gi(),w=l!==void 0,x=Ne(),D=s?a.bind(x[mr][qi]):a,P=new UE(w,D);x[mi+t]=P,um(b,v,t+1,n,e,i,r,po(v.consts,o),256),w&&um(b,v,t+2,l,c,d,m,po(v.consts,f),512)}var $E=class extends jE{lContainer;hostLView;templateTNode;operationsCounter=void 0;needsIndexUpdate=!1;constructor(n,e,i){super(),this.lContainer=n,this.hostLView=e,this.templateTNode=i}get length(){return this.lContainer.length-Yi}at(n){return this.getLView(n)[qi].$implicit}attach(n,e){let i=e[gd];this.needsIndexUpdate||=n!==this.length,Jp(this.lContainer,e,n,dm(this.templateTNode,i)),p9(this.lContainer,n)}detach(n){return this.needsIndexUpdate||=n!==this.length-1,f9(this.lContainer,n),g9(this.lContainer,n)}create(n,e){let i=Kb(this.lContainer,this.templateTNode.tView.ssrId),r=Xp(this.hostLView,this.templateTNode,new zE(this.lContainer,e,n),{dehydratedView:i});return this.operationsCounter?.recordCreate(),r}destroy(n){fv(n[We],n),this.operationsCounter?.recordDestroy()}updateValue(n,e){this.getLView(n)[qi].$implicit=e}reset(){this.needsIndexUpdate=!1,this.operationsCounter?.reset()}updateIndexes(){if(this.needsIndexUpdate)for(let n=0;n0){let o=i[Ws];y7(o,r),kd.delete(i),r.detachedLeaveAnimationFns=void 0}}function f9(t,n){if(t.length<=Yi)return;let e=Yi+n,i=t[e],r=i?i[yd]:void 0;r&&r.leave&&r.leave.size>0&&(r.detachedLeaveAnimationFns=[])}function g9(t,n){return Up(t,n)}function _9(t,n){return WP(t,n)}function WE(t,n){return Ip(t,n)}function y(t,n,e){let i=Ne(),r=ts();if(Tr(i,r,n)){let o=gi(),a=rm();AP(a,i,t,n,i[ri],e)}return y}function GE(t,n,e,i,r){yv(n,t,e,r?"class":"style",i)}function h(t,n,e,i){let r=Ne(),o=r[We],a=t+mi,s=o.firstCreatePass?DM(a,r,2,n,xM,Eb(),e,i):o.data[a];if(bv(s,r,t,n,xF),Ju(s)){let l=r[We];_v(l,r,s),tM(l,s,r)}return i!=null&&_m(r,s),h}function p(){let t=gi(),n=tn(),e=vv(n);return t.firstCreatePass&&EM(t,e),HD(e)&&zD(),BD(),e.classesWithoutHost!=null&&Z$(e)&&GE(t,e,Ne(),e.classesWithoutHost,!0),e.stylesWithoutHost!=null&&X$(e)&&GE(t,e,Ne(),e.stylesWithoutHost,!1),p}function k(t,n,e,i){return h(t,n,e,i),p(),k}function ft(t,n,e,i){let r=Ne(),o=r[We],a=t+mi,s=o.firstCreatePass?XP(a,o,2,n,e,i):o.data[a];return bv(s,r,t,n,xF),i!=null&&_m(r,s),ft}function vt(){let t=tn(),n=vv(t);return HD(n)&&zD(),BD(),vt}function ai(t,n,e,i){return ft(t,n,e,i),vt(),ai}var xF=(t,n,e,i,r)=>(Pp(!0),cP(n[ri],i,BO()));function jt(t,n,e){let i=Ne(),r=i[We],o=t+mi,a=r.firstCreatePass?DM(o,i,8,"ng-container",xM,Eb(),n,e):r.data[o];if(bv(a,i,t,"ng-container",wF),Ju(a)){let s=i[We];_v(s,i,a),tM(s,a,i)}return e!=null&&_m(i,a),jt}function Lt(){let t=gi(),n=tn(),e=vv(n);return t.firstCreatePass&&EM(t,e),Lt}function Ge(t,n,e){return jt(t,n,e),Lt(),Ge}function NM(t,n,e){let i=Ne(),r=i[We],o=t+mi,a=r.firstCreatePass?XP(o,r,8,"ng-container",n,e):r.data[o];return bv(a,i,t,"ng-container",wF),e!=null&&_m(i,a),NM}function CF(){let t=tn(),n=vv(t);return Lt}function rf(t,n,e){return NM(t,n,e),CF(),rf}var wF=(t,n,e,i,r)=>(Pp(!0),$W(n[ri],""));function Y(){return Ne()}function si(t,n,e){let i=Ne(),r=ts();if(Tr(i,r,n)){let o=gi(),a=rm();OP(a,i,t,n,i[ri],e)}return si}var Nb=void 0;function b9(t){let n=Math.floor(Math.abs(t)),e=t.toString().replace(/^[^.]*\.?/,"").length;return n===1&&e===0?1:5}var v9=["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"]],Nb,[["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"]],Nb,[["B","A"],["BC","AD"],["Before Christ","Anno Domini"]],0,[6,0],["M/d/yy","MMM d, y","MMMM d, y","EEEE, MMMM d, y"],["h:mm a","h:mm:ss a","h:mm:ss a z","h:mm:ss a zzzz"],["{1}, {0}",Nb,"{1} 'at' {0}",Nb],[".",",",";","%","+","-","E","\xD7","\u2030","\u221E","NaN",":"],["#,##0.###","#,##0%","\xA4#,##0.00","#E0"],"USD","$","US Dollar",{},"ltr",b9],sE={};function Ir(t){let n=y9(t),e=xR(n);if(e)return e;let i=n.split("-")[0];if(e=xR(i),e)return e;if(i==="en")return v9;throw new ue(701,!1)}function xR(t){return t in sE||(sE[t]=Po.ng&&Po.ng.common&&Po.ng.common.locales&&Po.ng.common.locales[t]),sE[t]}var zi=(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})(zi||{});function y9(t){return t.toLowerCase().replace(/_/g,"-")}var of="en-US",x9="USD";var C9=of;function DF(t){typeof t=="string"&&(C9=t.toLowerCase().replace(/_/g,"-"))}function S(t,n,e){let i=Ne(),r=gi(),o=tn();return EF(r,i,i[ri],o,t,n,e),S}function kv(t,n,e){let i=Ne(),r=gi(),o=tn();return(o.type&3||e)&&iF(o,r,i,e,i[ri],t,n,zb(o,i,n)),kv}function EF(t,n,e,i,r,o,a){let s=!0,l=null;if((i.type&3||a)&&(l??=zb(i,n,o),iF(i,t,n,a,e,r,o,l)&&(s=!1)),s){let c=i.outputs?.[r],d=i.hostDirectiveOutputs?.[r];if(d&&d.length)for(let m=0;m>17&32767}function E9(t){return(t&2)==2}function M9(t,n){return t&131071|n<<17}function qE(t){return t|2}function mm(t){return(t&131068)>>2}function lE(t,n){return t&-131069|n<<2}function k9(t){return(t&1)===1}function YE(t){return t|1}function S9(t,n,e,i,r,o){let a=o?n.classBindings:n.styleBindings,s=Sd(a),l=mm(a);t[i]=e;let c=!1,d;if(Array.isArray(e)){let m=e;d=m[1],(d===null||Qu(m,d)>0)&&(c=!0)}else d=e;if(r)if(l!==0){let f=Sd(t[s+1]);t[i+1]=Lb(f,s),f!==0&&(t[f+1]=lE(t[f+1],i)),t[s+1]=M9(t[s+1],i)}else t[i+1]=Lb(s,0),s!==0&&(t[s+1]=lE(t[s+1],i)),s=i;else t[i+1]=Lb(l,0),s===0?s=i:t[l+1]=lE(t[l+1],i),l=i;c&&(t[i+1]=qE(t[i+1])),CR(t,d,i,!0),CR(t,d,i,!1),T9(n,d,t,i,o),a=Lb(s,l),o?n.classBindings=a:n.styleBindings=a}function T9(t,n,e,i,r){let o=r?t.residualClasses:t.residualStyles;o!=null&&typeof n=="string"&&Qu(o,n)>=0&&(e[i+1]=YE(e[i+1]))}function CR(t,n,e,i){let r=t[e+1],o=n===null,a=i?Sd(r):mm(r),s=!1;for(;a!==0&&(s===!1||o);){let l=t[a],c=t[a+1];I9(l,n)&&(s=!0,t[a+1]=i?YE(c):qE(c)),a=i?Sd(c):mm(c)}s&&(t[e+1]=i?qE(r):YE(r))}function I9(t,n){return t===null||n==null||(Array.isArray(t)?t[1]:t)===n?!0:Array.isArray(t)&&typeof n=="string"?Qu(t,n)>=0:!1}var vn={textEnd:0,key:0,keyEnd:0,value:0,valueEnd:0};function MF(t){return t.substring(vn.key,vn.keyEnd)}function A9(t){return t.substring(vn.value,vn.valueEnd)}function O9(t){return TF(t),kF(t,hm(t,0,vn.textEnd))}function kF(t,n){let e=vn.textEnd;return e===n?-1:(n=vn.keyEnd=P9(t,vn.key=n,e),hm(t,n,e))}function R9(t){return TF(t),SF(t,hm(t,0,vn.textEnd))}function SF(t,n){let e=vn.textEnd,i=vn.key=hm(t,n,e);return e===i?-1:(i=vn.keyEnd=F9(t,i,e),i=wR(t,i,e,58),i=vn.value=hm(t,i,e),i=vn.valueEnd=N9(t,i,e),wR(t,i,e,59))}function TF(t){vn.key=0,vn.keyEnd=0,vn.value=0,vn.valueEnd=0,vn.textEnd=t.length}function hm(t,n,e){for(;n32;)n++;return n}function F9(t,n,e){let i;for(;n=65&&(i&-33)<=90||i>=48&&i<=57);)n++;return n}function wR(t,n,e,i){return n=hm(t,n,e),n32&&(s=a),o=r,r=i,i=l&-33}return s}function DR(t,n,e,i){let r=-1,o=e;for(;o=0;e=SF(n,e))PF(t,MF(n),A9(n))}function it(t){AF($9,V9,t,!0)}function V9(t,n){for(let e=O9(n);e>=0;e=kF(n,e))Mp(t,MF(n),!0)}function IF(t,n,e,i){let r=Ne(),o=gi(),a=Op(2);if(o.firstUpdatePass&&RF(o,t,a,i),n!==On&&Tr(r,a,n)){let s=o.data[va()];FF(o,s,r,r[ri],t,r[a+1]=G9(n,e),i,a)}}function AF(t,n,e,i){let r=gi(),o=Op(2);r.firstUpdatePass&&RF(r,null,o,i);let a=Ne();if(e!==On&&Tr(a,o,e)){let s=r.data[va()];if(NF(s,i)&&!OF(r,o)){let l=i?s.classesWithoutHost:s.stylesWithoutHost;l!==null&&(e=fb(l,e||"")),GE(r,s,a,e,i)}else W9(r,s,a,a[ri],a[o+1],a[o+1]=U9(t,n,e),i,o)}}function OF(t,n){return n>=t.expandoStartIndex}function RF(t,n,e,i){let r=t.data;if(r[e+1]===null){let o=r[va()],a=OF(t,e);NF(o,i)&&n===null&&!a&&(n=!1),n=B9(r,o,n,i),S9(r,o,n,e,a,i)}}function B9(t,n,e,i){let r=PO(t),o=i?n.residualClasses:n.residualStyles;if(r===null)(i?n.classBindings:n.styleBindings)===0&&(e=cE(null,t,n,e,i),e=Gp(e,n.attrs,i),o=null);else{let a=n.directiveStylingLast;if(a===-1||t[a]!==r)if(e=cE(r,t,n,e,i),o===null){let l=j9(t,n,i);l!==void 0&&Array.isArray(l)&&(l=cE(null,t,n,l[1],i),l=Gp(l,n.attrs,i),H9(t,n,i,l))}else o=z9(t,n,i)}return o!==void 0&&(i?n.residualClasses=o:n.residualStyles=o),e}function j9(t,n,e){let i=e?n.classBindings:n.styleBindings;if(mm(i)!==0)return t[Sd(i)]}function H9(t,n,e,i){let r=e?n.classBindings:n.styleBindings;t[Sd(r)]=i}function z9(t,n,e){let i,r=n.directiveEnd;for(let o=1+n.directiveStylingLast;o0;){let l=t[r],c=Array.isArray(l),d=c?l[1]:l,m=d===null,f=e[r+1];f===On&&(f=m?ur:void 0);let b=m?vb(f,i):d===i?f:void 0;if(c&&!ov(b)&&(b=vb(l,i)),ov(b)&&(s=b,a))return s;let v=t[r+1];r=a?Sd(v):mm(v)}if(n!==null){let l=o?n.residualClasses:n.residualStyles;l!=null&&(s=vb(l,i))}return s}function ov(t){return t!==void 0}function G9(t,n){return t==null||t===""||(typeof n=="string"?t=t+n:typeof t=="object"&&(t=$s(Ur(t)))),t}function NF(t,n){return(t.flags&(n?8:16))!==0}function _(t,n=""){let e=Ne(),i=gi(),r=t+mi,o=i.firstCreatePass?bm(i,r,1,n,null):i.data[r],a=q9(i,e,o,n,t);e[r]=a,Ib()&&vM(i,e,a,o),im(o,!1)}var q9=(t,n,e,i,r)=>(Pp(!0),zW(n[ri],i));function LF(t,n,e,i=""){return Tr(t,ts(),e)?n+Fo(e)+i:On}function Y9(t,n,e,i,r,o=""){let a=qD(),s=$p(t,a,e,r);return Op(2),s?n+Fo(e)+i+Fo(r)+o:On}function Q9(t,n,e,i,r,o,a,s=""){let l=qD(),c=tF(t,l,e,r,a);return Op(3),c?n+Fo(e)+i+Fo(r)+o+Fo(a)+s:On}function H(t){return ve("",t),H}function ve(t,n,e){let i=Ne(),r=LF(i,t,n,e);return r!==On&&LM(i,va(),r),ve}function Od(t,n,e,i,r){let o=Ne(),a=Y9(o,t,n,e,i,r);return a!==On&&LM(o,va(),a),Od}function Cm(t,n,e,i,r,o,a){let s=Ne(),l=Q9(s,t,n,e,i,r,o,a);return l!==On&&LM(s,va(),l),Cm}function LM(t,n,e){let i=OD(n,t);UW(t[ri],i,e)}function zo(t,n,e){XD(n)&&(n=n());let i=Ne(),r=ts();if(Tr(i,r,n)){let o=gi(),a=rm();AP(a,i,t,n,i[ri],e)}return zo}function Ca(t,n){let e=XD(t);return e&&t.set(n),e}function Uo(t,n){let e=Ne(),i=gi(),r=tn();return EF(i,e,e[ri],r,t,n),Uo}function VM(t){return Tr(Ne(),ts(),t)?Fo(t):On}function $o(t,n,e=""){return LF(Ne(),t,n,e)}function K9(t,n,e){let i=gi();if(i.firstCreatePass){let r=ba(t);QE(e,i.data,i.blueprint,r,!0),QE(n,i.data,i.blueprint,r,!1)}}function QE(t,n,e,i,r){if(t=_n(t),Array.isArray(t))for(let o=0;o>20;if(hd(t)||!t.multi){let b=new Md(c,r,_e,null),v=uE(l,n,r?d:d+f,m);v===-1?(hE(qb(s,a),o,l),dE(o,t,n.length),n.push(l),s.directiveStart++,s.directiveEnd++,r&&(s.providerIndexes+=1048576),e.push(b),a.push(b)):(e[v]=b,a[v]=b)}else{let b=uE(l,n,d+f,m),v=uE(l,n,d,d+f),w=b>=0&&e[b],x=v>=0&&e[v];if(r&&!x||!r&&!w){hE(qb(s,a),o,l);let D=J9(r?X9:Z9,e.length,r,i,c,t);!r&&x&&(e[v].providerFactory=D),dE(o,t,n.length,0),n.push(l),s.directiveStart++,s.directiveEnd++,r&&(s.providerIndexes+=1048576),e.push(D),a.push(D)}else{let D=VF(e[r?v:b],c,!r&&i);dE(o,t,b>-1?b:v,D)}!r&&i&&x&&e[v].componentProviders++}}}function dE(t,n,e,i){let r=hd(n),o=_O(n);if(r||o){let l=(o?_n(n.useClass):n).prototype.ngOnDestroy;if(l){let c=t.destroyHooks||(t.destroyHooks=[]);if(!r&&n.multi){let d=c.indexOf(e);d===-1?c.push(e,[i,l]):c[d+1].push(i,l)}else c.push(e,l)}}}function VF(t,n,e){return e&&t.componentProviders++,t.multi.push(n)-1}function uE(t,n,e,i){for(let r=e;r{e.providersResolver=(i,r)=>K9(i,r?r(t):t,n)}}function at(t,n,e){let i=es()+t,r=Ne();return r[i]===On?tf(r,i,e?n.call(e):n()):DG(r,i)}function Pt(t,n,e,i){return BF(Ne(),es(),t,n,e,i)}function wa(t,n,e,i,r){return jF(Ne(),es(),t,n,e,i,r)}function Rd(t,n,e,i,r,o){return HF(Ne(),es(),t,n,e,i,r,o)}function wm(t,n,e,i,r,o,a){return zF(Ne(),es(),t,n,e,i,r,o,a)}function Sv(t,n){let e=t[n];return e===On?void 0:e}function BF(t,n,e,i,r,o){let a=n+e;return Tr(t,a,r)?tf(t,a+1,o?i.call(o,r):i(r)):Sv(t,a+1)}function jF(t,n,e,i,r,o,a){let s=n+e;return $p(t,s,r,o)?tf(t,s+2,a?i.call(a,r,o):i(r,o)):Sv(t,s+2)}function HF(t,n,e,i,r,o,a,s){let l=n+e;return tF(t,l,r,o,a)?tf(t,l+3,s?i.call(s,r,o,a):i(r,o,a)):Sv(t,l+3)}function zF(t,n,e,i,r,o,a,s,l){let c=n+e;return EG(t,c,r,o,a,s)?tf(t,c+4,l?i.call(l,r,o,a,s):i(r,o,a,s)):Sv(t,c+4)}function me(t,n){let e=gi(),i,r=t+mi;e.firstCreatePass?(i=eq(n,e.pipeRegistry),e.data[r]=i,i.onDestroy&&(e.destroyHooks??=[]).push(r,i.onDestroy)):i=e.data[r];let o=i.factory||(i.factory=Vl(i.type,!0)),a,s=kr(_e);try{let l=Gb(!1),c=o();return Gb(l),RD(e,Ne(),r,c),c}finally{kr(s)}}function eq(t,n){if(n)for(let e=n.length-1;e>=0;e--){let i=n[e];if(t===i.name)return i}}function Oe(t,n,e){let i=t+mi,r=Ne(),o=tm(r,i);return Tv(r,i)?BF(r,es(),n,o.transform,e,o):o.transform(e)}function Ni(t,n,e,i){let r=t+mi,o=Ne(),a=tm(o,r);return Tv(o,r)?jF(o,es(),n,a.transform,e,i,a):a.transform(e,i)}function BM(t,n,e,i,r){let o=t+mi,a=Ne(),s=tm(a,o);return Tv(a,o)?HF(a,es(),n,s.transform,e,i,r,s):s.transform(e,i,r)}function Dm(t,n,e,i,r,o){let a=t+mi,s=Ne(),l=tm(s,a);return Tv(s,a)?zF(s,es(),n,l.transform,e,i,r,o,l):l.transform(e,i,r,o)}function Tv(t,n){return t[We].data[n].pure}function _i(t,n){return xv(t,n)}var av=class{ngModuleFactory;componentFactories;constructor(n,e){this.ngModuleFactory=n,this.componentFactories=e}},jM=(()=>{class t{compileModuleSync(e){return new iv(e)}compileModuleAsync(e){return Promise.resolve(this.compileModuleSync(e))}compileModuleAndAllComponentsSync(e){let i=this.compileModuleSync(e),r=wD(e),o=pP(r.declarations).reduce((a,s)=>{let l=Ka(s);return l&&a.push(new Wl(l)),a},[]);return new av(i,o)}compileModuleAndAllComponentsAsync(e){return Promise.resolve(this.compileModuleAndAllComponentsSync(e))}clearCache(){}clearCacheFor(e){}getModuleId(e){}static \u0275fac=function(i){return new(i||t)};static \u0275prov=O({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();var tq=(()=>{class t{zone=u(ae);changeDetectionScheduler=u(Oo);applicationRef=u(Gn);applicationErrorHandler=u(hr);_onMicrotaskEmptySubscription;initialize(){this._onMicrotaskEmptySubscription||(this._onMicrotaskEmptySubscription=this.zone.onMicrotaskEmpty.subscribe({next:()=>{this.changeDetectionScheduler.runningTick||this.zone.run(()=>{try{this.applicationRef.dirtyFlags|=1,this.applicationRef._tick()}catch(e){this.applicationErrorHandler(e)}})}}))}ngOnDestroy(){this._onMicrotaskEmptySubscription?.unsubscribe()}static \u0275fac=function(i){return new(i||t)};static \u0275prov=O({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();function UF({ngZoneFactory:t,ignoreChangesOutsideZone:n,scheduleInRootZone:e}){return t??=()=>new ae(De(M({},$F()),{scheduleInRootZone:e})),[{provide:ae,useFactory:t},{provide:Qa,multi:!0,useFactory:()=>{let i=u(tq,{optional:!0});return()=>i.initialize()}},{provide:Qa,multi:!0,useFactory:()=>{let i=u(iq);return()=>{i.initialize()}}},n===!0?{provide:JD,useValue:!0}:[],{provide:eE,useValue:e??yP},{provide:hr,useFactory:()=>{let i=u(ae),r=u(Wt),o;return a=>{i.runOutsideAngular(()=>{r.destroyed&&!o?setTimeout(()=>{throw a}):(o??=r.get(Tn),o.handleError(a))})}}}]}function $F(t){return{enableLongStackTrace:!1,shouldCoalesceEventChangeDetection:t?.eventCoalescing??!1,shouldCoalesceRunChangeDetection:t?.runCoalescing??!1}}var iq=(()=>{class t{subscription=new ke;initialized=!1;zone=u(ae);pendingTasks=u(ns);initialize(){if(this.initialized)return;this.initialized=!0;let e=null;!this.zone.isStable&&!this.zone.hasPendingMacrotasks&&!this.zone.hasPendingMicrotasks&&(e=this.pendingTasks.add()),this.zone.runOutsideAngular(()=>{this.subscription.add(this.zone.onStable.subscribe(()=>{ae.assertNotInAngularZone(),queueMicrotask(()=>{e!==null&&!this.zone.hasPendingMacrotasks&&!this.zone.hasPendingMicrotasks&&(this.pendingTasks.remove(e),e=null)})}))}),this.subscription.add(this.zone.onUnstable.subscribe(()=>{ae.assertInAngularZone(),e??=this.pendingTasks.add()}))}ngOnDestroy(){this.subscription.unsubscribe()}static \u0275fac=function(i){return new(i||t)};static \u0275prov=O({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();var WF=(()=>{class t{applicationErrorHandler=u(hr);appRef=u(Gn);taskService=u(ns);ngZone=u(ae);zonelessEnabled=u(Fp);tracing=u(Yl,{optional:!0});disableScheduling=u(JD,{optional:!0})??!1;zoneIsDefined=typeof Zone<"u"&&!!Zone.root.run;schedulerTickApplyArgs=[{data:{__scheduler_tick__:!0}}];subscriptions=new ke;angularZoneId=this.zoneIsDefined?this.ngZone._inner?.get(Qb):null;scheduleInRootZone=!this.zonelessEnabled&&this.zoneIsDefined&&(u(eE,{optional:!0})??!1);cancelScheduledCallback=null;useMicrotaskScheduler=!1;runningTick=!1;pendingRenderTaskId=null;constructor(){this.subscriptions.add(this.appRef.afterTick.subscribe(()=>{this.runningTick||this.cleanup()})),this.subscriptions.add(this.ngZone.onUnstable.subscribe(()=>{this.runningTick||this.cleanup()})),this.disableScheduling||=!this.zonelessEnabled&&(this.ngZone instanceof jp||!this.zoneIsDefined)}notify(e){if(!this.zonelessEnabled&&e===5)return;let i=!1;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,i=!0;break}case 12:{this.appRef.dirtyFlags|=16,i=!0;break}case 13:{this.appRef.dirtyFlags|=2,i=!0;break}case 11:{i=!0;break}case 9:case 8:case 7:case 10:default:this.appRef.dirtyFlags|=8}if(this.appRef.tracingSnapshot=this.tracing?.snapshot(this.appRef.tracingSnapshot)??null,!this.shouldScheduleTick(i))return;let r=this.useMicrotaskScheduler?nR:xP;this.pendingRenderTaskId=this.taskService.add(),this.scheduleInRootZone?this.cancelScheduledCallback=Zone.root.run(()=>r(()=>this.tick())):this.cancelScheduledCallback=this.ngZone.runOutsideAngular(()=>r(()=>this.tick()))}shouldScheduleTick(e){return!(this.disableScheduling&&!e||this.appRef.destroyed||this.pendingRenderTaskId!==null||this.runningTick||this.appRef._runningTick||!this.zonelessEnabled&&this.zoneIsDefined&&Zone.current.get(Qb+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(i){this.taskService.remove(e),this.applicationErrorHandler(i)}finally{this.cleanup()}this.useMicrotaskScheduler=!0,nR(()=>{this.useMicrotaskScheduler=!1,this.taskService.remove(e)})}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(i){return new(i||t)};static \u0275prov=O({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();function nq(){return typeof $localize<"u"&&$localize.locale||of}var el=new T("",{providedIn:"root",factory:()=>u(el,{optional:!0,skipSelf:!0})||nq()}),HM=new T("",{providedIn:"root",factory:()=>x9});var af=class{destroyed=!1;listeners=null;errorHandler=u(Tn,{optional:!0});destroyRef=u(nn);constructor(){this.destroyRef.onDestroy(()=>{this.destroyed=!0,this.listeners=null})}subscribe(n){if(this.destroyed)throw new ue(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(Ro(953,!1));return}if(this.listeners===null)return;let e=Xe(null);try{for(let i of this.listeners)try{i(n)}catch(r){this.errorHandler?.handleError(r)}}finally{Xe(e)}}};function UM(t){return t.destroyRef}function Ti(t){return JA(t)}function Zt(t,n){return pp(t,n?.equal)}var zM=class{[ln];constructor(n){this[ln]=n}destroy(){this[ln].destroy()}};function Ar(t,n){let e=n?.injector??u(de),i=n?.manualCleanup!==!0?e.get(nn):null,r,o=e.get(wd,null,{optional:!0}),a=e.get(Oo);return o!==null?(r=aq(o.view,a,t),i instanceof Cp&&i._lView===o.view&&(i=null)):r=sq(t,e.get(Np),a),r.injector=e,i!==null&&(r.onDestroyFn=i.onDestroy(()=>r.destroy())),new zM(r)}var GF=De(M({},eO),{cleanupFns:void 0,zone:null,onDestroyFn:Dd,run(){let t=nm(!1);try{tO(this)}finally{nm(t)}},cleanup(){if(!this.cleanupFns?.length)return;let t=Xe(null);try{for(;this.cleanupFns.length;)this.cleanupFns.pop()()}finally{this.cleanupFns=[],Xe(t)}}}),rq=De(M({},GF),{consumerMarkedDirty(){this.scheduler.schedule(this),this.notifier.notify(12)},destroy(){Tl(this),this.onDestroyFn(),this.cleanup(),this.scheduler.remove(this)}}),oq=De(M({},GF),{consumerMarkedDirty(){this.view[et]|=8192,zl(this.view),this.notifier.notify(13)},destroy(){Tl(this),this.onDestroyFn(),this.cleanup(),this.view[Gs]?.delete(this)}});function aq(t,n,e){let i=Object.create(oq);return i.view=t,i.zone=typeof Zone<"u"?Zone.current:null,i.notifier=n,i.fn=qF(i,e),t[Gs]??=new Set,t[Gs].add(i),i.consumerMarkedDirty(i),i}function sq(t,n,e){let i=Object.create(rq);return i.fn=qF(i,t),i.scheduler=n,i.notifier=e,i.zone=typeof Zone<"u"?Zone.current:null,i.scheduler.add(i),i.notifier.notify(12),i}function qF(t,n){return()=>{n(e=>(t.cleanupFns??=[]).push(e))}}var Ov=Symbol("InputSignalNode#UNSET"),i2=De(M({},fp),{transformFn:void 0,applyValueToInputSignal(t,n){rd(t,n)}});function n2(t,n){let e=Object.create(i2);e.value=t,e.transformFn=n?.transform;function i(){if(kl(e),e.value===Ov){let r=null;throw new ue(-950,r)}return e.value}return i[ln]=e,i}var Ii=class{attributeName;constructor(n){this.attributeName=n}__NG_ELEMENT_ID__=()=>qp(this.attributeName);toString(){return`HostAttributeToken ${this.attributeName}`}},ZM=new T("");ZM.__NG_ELEMENT_ID__=t=>{let n=tn();if(n===null)throw new ue(204,!1);if(n.type&2)return n.value;if(t&8)return null;throw new ue(204,!1)};function bi(t){return new af}function YF(t,n){return n2(t,n)}function xq(t){return n2(Ov,t)}var ne=(YF.required=xq,YF);function QF(t,n){return IM(n)}function Cq(t,n){return AM(n)}var qn=(QF.required=Cq,QF);function KF(t,n){return IM(n)}function wq(t,n){return AM(n)}var fr=(KF.required=wq,KF);function r2(t,n){return hF(n)}function o2(t,n){let e=Object.create(i2),i=new af;e.value=t;function r(){return kl(e),ZF(e.value),e.value}return r[ln]=e,r.asReadonly=Ab.bind(r),r.set=o=>{e.equal(e.value,o)||(rd(e,o),i.emit(o))},r.update=o=>{ZF(e.value),r.set(o(e.value))},r.subscribe=i.subscribe.bind(i),r.destroyRef=i.destroyRef,r}function ZF(t){if(t===Ov)throw new ue(952,!1)}function XF(t,n){return o2(t,n)}function Dq(t){return o2(Ov,t)}var Em=(XF.required=Dq,XF);var WM=new T(""),Eq=new T("");function sf(t){return!t.moduleRef}function Mq(t){let n=sf(t)?t.r3Injector:t.moduleRef.injector,e=n.get(ae);return e.run(()=>{sf(t)?t.r3Injector.resolveInjectorInitializers():t.moduleRef.resolveInjectorInitializers();let i=n.get(hr),r;if(e.runOutsideAngular(()=>{r=e.onError.subscribe({next:i})}),sf(t)){let o=()=>n.destroy(),a=t.platformInjector.get(WM);a.add(o),n.onDestroy(()=>{r.unsubscribe(),a.delete(o)})}else{let o=()=>t.moduleRef.destroy(),a=t.platformInjector.get(WM);a.add(o),t.moduleRef.onDestroy(()=>{Vp(t.allPlatformModules,t.moduleRef),r.unsubscribe(),a.delete(o)})}return Sq(i,e,()=>{let o=n.get(ns),a=o.add(),s=n.get(PM);return s.runInitializers(),s.donePromise.then(()=>{let l=n.get(el,of);if(DF(l||of),!n.get(Eq,!0))return sf(t)?n.get(Gn):(t.allPlatformModules.push(t.moduleRef),t.moduleRef);if(sf(t)){let d=n.get(Gn);return t.rootComponent!==void 0&&d.bootstrap(t.rootComponent),d}else return kq?.(t.moduleRef,t.allPlatformModules),t.moduleRef}).finally(()=>void o.remove(a))})})}var kq;function Sq(t,n,e){try{let i=e();return Xs(i)?i.catch(r=>{throw n.runOutsideAngular(()=>t(r)),r}):i}catch(i){throw n.runOutsideAngular(()=>t(i)),i}}var Iv=null;function Tq(t=[],n){return de.create({name:n,providers:[{provide:kp,useValue:"platform"},{provide:WM,useValue:new Set([()=>Iv=null])},...t]})}function Iq(t=[]){if(Iv)return Iv;let n=Tq(t);return Iv=n,vF(),Aq(n),n}function Aq(t){let n=t.get(sv,null);In(t,()=>{n?.forEach(e=>e())})}var ye=(()=>{class t{static __NG_ELEMENT_ID__=Oq}return t})();function Oq(t){return Rq(tn(),Ne(),(t&16)===16)}function Rq(t,n,e){if(qs(t)&&!e){let i=Bo(t.index,n);return new $l(i,i)}else if(t.type&175){let i=n[mr];return new $l(i,n)}return null}var GM=class{constructor(){}supports(n){return MM(n)}create(n){return new qM(n)}},Pq=(t,n)=>n,qM=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||Pq}forEachItem(n){let e;for(e=this._itHead;e!==null;e=e._next)n(e)}forEachOperation(n){let e=this._itHead,i=this._removalsHead,r=0,o=null;for(;e||i;){let a=!i||e&&e.currentIndex{a=this._trackByFn(r,s),e===null||!Object.is(e.trackById,a)?(e=this._mismatch(e,s,a,r),i=!0):(i&&(e=this._verifyReinsertion(e,s,a,r)),Object.is(e.item,s)||this._addIdentityChange(e,s)),e=e._next,r++}),this.length=r;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,i,r){let o;return n===null?o=this._itTail:(o=n._prev,this._remove(n)),n=this._unlinkedRecords===null?null:this._unlinkedRecords.get(i,null),n!==null?(Object.is(n.item,e)||this._addIdentityChange(n,e),this._reinsertAfter(n,o,r)):(n=this._linkedRecords===null?null:this._linkedRecords.get(i,r),n!==null?(Object.is(n.item,e)||this._addIdentityChange(n,e),this._moveAfter(n,o,r)):n=this._addAfter(new YM(e,i),o,r)),n}_verifyReinsertion(n,e,i,r){let o=this._unlinkedRecords===null?null:this._unlinkedRecords.get(i,null);return o!==null?n=this._reinsertAfter(o,n._prev,r):n.currentIndex!=r&&(n.currentIndex=r,this._addToMoves(n,r)),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,i){this._unlinkedRecords!==null&&this._unlinkedRecords.remove(n);let r=n._prevRemoved,o=n._nextRemoved;return r===null?this._removalsHead=o:r._nextRemoved=o,o===null?this._removalsTail=r:o._prevRemoved=r,this._insertAfter(n,e,i),this._addToMoves(n,i),n}_moveAfter(n,e,i){return this._unlink(n),this._insertAfter(n,e,i),this._addToMoves(n,i),n}_addAfter(n,e,i){return this._insertAfter(n,e,i),this._additionsTail===null?this._additionsTail=this._additionsHead=n:this._additionsTail=this._additionsTail._nextAdded=n,n}_insertAfter(n,e,i){let r=e===null?this._itHead:e._next;return n._next=r,n._prev=e,r===null?this._itTail=n:r._prev=n,e===null?this._itHead=n:e._next=n,this._linkedRecords===null&&(this._linkedRecords=new Av),this._linkedRecords.put(n),n.currentIndex=i,n}_remove(n){return this._addToRemovals(this._unlink(n))}_unlink(n){this._linkedRecords!==null&&this._linkedRecords.remove(n);let e=n._prev,i=n._next;return e===null?this._itHead=i:e._next=i,i===null?this._itTail=e:i._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 Av),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}},QM=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 i;for(i=this._head;i!==null;i=i._nextDup)if((e===null||e<=i.currentIndex)&&Object.is(i.trackById,n))return i;return null}remove(n){let e=n._prevDup,i=n._nextDup;return e===null?this._head=i:e._nextDup=i,i===null?this._tail=e:i._prevDup=e,this._head===null}},Av=class{map=new Map;put(n){let e=n.trackById,i=this.map.get(e);i||(i=new QM,this.map.set(e,i)),i.add(n)}get(n,e){let i=n,r=this.map.get(i);return r?r.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 JF(t,n,e){let i=t.previousIndex;if(i===null)return i;let r=0;return e&&i{class t{factories;static \u0275prov=O({token:t,providedIn:"root",factory:e2});constructor(e){this.factories=e}static create(e,i){if(i!=null){let r=i.factories.slice();e=e.concat(r)}return new t(e)}static extend(e){return{provide:t,useFactory:()=>{let i=u(t,{optional:!0,skipSelf:!0});return t.create(e,i||e2())}}}find(e){let i=this.factories.find(r=>r.supports(e));if(i!=null)return i;throw new ue(901,!1)}}return t})();function a2(t){let{rootComponent:n,appProviders:e,platformProviders:i,platformRef:r}=t;oi(8);try{let o=r?.injector??Iq(i),a=[UF({}),{provide:Oo,useExisting:WF},HO,...e||[]],s=new Wp({providers:a,parent:o,debugName:"",runEnvironmentInitializers:!1});return Mq({r3Injector:s.injector,platformInjector:o,rootComponent:n})}catch(o){return Promise.reject(o)}finally{oi(9)}}function V(t){return typeof t=="boolean"?t:t!=null&&t!=="false"}function ct(t,n=NaN){return!isNaN(parseFloat(t))&&!isNaN(Number(t))?Number(t):n}var $M=Symbol("NOT_SET"),s2=new Set,Fq=De(M({},fp),{consumerIsAlwaysLive:!0,consumerAllowSignalWrites:!0,value:$M,cleanup:null,consumerMarkedDirty(){if(this.sequence.impl.executing){if(this.sequence.lastPhase===null||this.sequence.lastPhase(kl(c),c.value),c.signal[ln]=c,c.registerCleanupFn=d=>(c.cleanup??=new Set).add(d),this.nodes[s]=c,this.hooks[s]=d=>c.phaseFn(d)}}afterRun(){super.afterRun(),this.lastPhase=null}destroy(){super.destroy();for(let n of this.nodes)if(n)try{for(let e of n.cleanup??s2)e()}finally{Tl(n)}}};function l2(t,n){let e=n?.injector??u(de),i=e.get(Oo),r=e.get(pv),o=e.get(Yl,null,{optional:!0});r.impl??=e.get(_M);let a=t;typeof a=="function"&&(a={mixedReadWrite:t});let s=e.get(wd,null,{optional:!0}),l=new KM(r.impl,[a.earlyRead,a.write,a.mixedReadWrite,a.read],s?.view,i,e,o?.snapshot(null));return r.impl.register(l),l}function Mm(t,n){let e=Ka(t),i=n.elementInjector||Ku();return new Wl(e).create(i,n.projectableNodes,n.hostElement,n.environmentInjector,n.directives,n.bindings)}function c2(t){let n=Ka(t);if(!n)return null;let e=new Wl(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 m2=null;function Wo(){return m2}function XM(t){m2??=t}var lf=class{},cf=(()=>{class t{historyGo(e){throw new Error("")}static \u0275fac=function(i){return new(i||t)};static \u0275prov=O({token:t,factory:()=>u(h2),providedIn:"platform"})}return t})(),JM=new T(""),h2=(()=>{class t extends cf{_location;_history;_doc=u(ge);constructor(){super(),this._location=window.location,this._history=window.history}getBaseHrefFromDOM(){return Wo().getBaseHref(this._doc)}onPopState(e){let i=Wo().getGlobalEventTarget(this._doc,"window");return i.addEventListener("popstate",e,!1),()=>i.removeEventListener("popstate",e)}onHashChange(e){let i=Wo().getGlobalEventTarget(this._doc,"window");return i.addEventListener("hashchange",e,!1),()=>i.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,i,r){this._history.pushState(e,i,r)}replaceState(e,i,r){this._history.replaceState(e,i,r)}forward(){this._history.forward()}back(){this._history.back()}historyGo(e=0){this._history.go(e)}getState(){return this._history.state}static \u0275fac=function(i){return new(i||t)};static \u0275prov=O({token:t,factory:()=>new t,providedIn:"platform"})}return t})();function Rv(t,n){return t?n?t.endsWith("/")?n.startsWith("/")?t+n.slice(1):t+n:n.startsWith("/")?t+n:`${t}/${n}`:t:n}function d2(t){let n=t.search(/#|\?|$/);return t[n-1]==="/"?t.slice(0,n-1)+t.slice(n):t}function Da(t){return t&&t[0]!=="?"?`?${t}`:t}var Ea=(()=>{class t{historyGo(e){throw new Error("")}static \u0275fac=function(i){return new(i||t)};static \u0275prov=O({token:t,factory:()=>u(Fv),providedIn:"root"})}return t})(),Pv=new T(""),Fv=(()=>{class t extends Ea{_platformLocation;_baseHref;_removeListenerFns=[];constructor(e,i){super(),this._platformLocation=e,this._baseHref=i??this._platformLocation.getBaseHrefFromDOM()??u(ge).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 Rv(this._baseHref,e)}path(e=!1){let i=this._platformLocation.pathname+Da(this._platformLocation.search),r=this._platformLocation.hash;return r&&e?`${i}${r}`:i}pushState(e,i,r,o){let a=this.prepareExternalUrl(r+Da(o));this._platformLocation.pushState(e,i,a)}replaceState(e,i,r,o){let a=this.prepareExternalUrl(r+Da(o));this._platformLocation.replaceState(e,i,a)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}getState(){return this._platformLocation.getState()}historyGo(e=0){this._platformLocation.historyGo?.(e)}static \u0275fac=function(i){return new(i||t)(pe(cf),pe(Pv,8))};static \u0275prov=O({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),us=(()=>{class t{_subject=new z;_basePath;_locationStrategy;_urlChangeListeners=[];_urlChangeSubscription=null;constructor(e){this._locationStrategy=e;let i=this._locationStrategy.getBaseHref();this._basePath=Vq(d2(u2(i))),this._locationStrategy.onPopState(r=>{this._subject.next({url:this.path(!0),pop:!0,state:r.state,type:r.type})})}ngOnDestroy(){this._urlChangeSubscription?.unsubscribe(),this._urlChangeListeners=[]}path(e=!1){return this.normalize(this._locationStrategy.path(e))}getState(){return this._locationStrategy.getState()}isCurrentPathEqualTo(e,i=""){return this.path()==this.normalize(e+Da(i))}normalize(e){return t.stripTrailingSlash(Lq(this._basePath,u2(e)))}prepareExternalUrl(e){return e&&e[0]!=="/"&&(e="/"+e),this._locationStrategy.prepareExternalUrl(e)}go(e,i="",r=null){this._locationStrategy.pushState(r,"",e,i),this._notifyUrlChangeListeners(this.prepareExternalUrl(e+Da(i)),r)}replaceState(e,i="",r=null){this._locationStrategy.replaceState(r,"",e,i),this._notifyUrlChangeListeners(this.prepareExternalUrl(e+Da(i)),r)}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(i=>{this._notifyUrlChangeListeners(i.url,i.state)}),()=>{let i=this._urlChangeListeners.indexOf(e);this._urlChangeListeners.splice(i,1),this._urlChangeListeners.length===0&&(this._urlChangeSubscription?.unsubscribe(),this._urlChangeSubscription=null)}}_notifyUrlChangeListeners(e="",i){this._urlChangeListeners.forEach(r=>r(e,i))}subscribe(e,i,r){return this._subject.subscribe({next:e,error:i??void 0,complete:r??void 0})}static normalizeQueryParams=Da;static joinWithSlash=Rv;static stripTrailingSlash=d2;static \u0275fac=function(i){return new(i||t)(pe(Ea))};static \u0275prov=O({token:t,factory:()=>Nq(),providedIn:"root"})}return t})();function Nq(){return new us(pe(Ea))}function Lq(t,n){if(!t||!n.startsWith(t))return n;let e=n.substring(t.length);return e===""||["/",";","?","#"].includes(e[0])?e:n}function u2(t){return t.replace(/\/index.html$/,"")}function Vq(t){if(new RegExp("^(https?:)?//").test(t)){let[,e]=t.split(/\/\/[^\/]+/);return e}return t}var l1=(()=>{class t extends Ea{_platformLocation;_baseHref="";_removeListenerFns=[];constructor(e,i){super(),this._platformLocation=e,i!=null&&(this._baseHref=i)}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 i=this._platformLocation.hash??"#";return i.length>0?i.substring(1):i}prepareExternalUrl(e){let i=Rv(this._baseHref,e);return i.length>0?"#"+i:i}pushState(e,i,r,o){let a=this.prepareExternalUrl(r+Da(o))||this._platformLocation.pathname;this._platformLocation.pushState(e,i,a)}replaceState(e,i,r,o){let a=this.prepareExternalUrl(r+Da(o))||this._platformLocation.pathname;this._platformLocation.replaceState(e,i,a)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}getState(){return this._platformLocation.getState()}historyGo(e=0){this._platformLocation.historyGo?.(e)}static \u0275fac=function(i){return new(i||t)(pe(cf),pe(Pv,8))};static \u0275prov=O({token:t,factory:t.\u0275fac})}return t})(),y2={ADP:[void 0,void 0,0],AFN:[void 0,"\u060B",0],ALL:[void 0,void 0,0],AMD:[void 0,"\u058F",2],AOA:[void 0,"Kz"],ARS:[void 0,"$"],AUD:["A$","$"],AZN:[void 0,"\u20BC"],BAM:[void 0,"KM"],BBD:[void 0,"$"],BDT:[void 0,"\u09F3"],BHD:[void 0,void 0,3],BIF:[void 0,void 0,0],BMD:[void 0,"$"],BND:[void 0,"$"],BOB:[void 0,"Bs"],BRL:["R$"],BSD:[void 0,"$"],BWP:[void 0,"P"],BYN:[void 0,void 0,2],BYR:[void 0,void 0,0],BZD:[void 0,"$"],CAD:["CA$","$",2],CHF:[void 0,void 0,2],CLF:[void 0,void 0,4],CLP:[void 0,"$",0],CNY:["CN\xA5","\xA5"],COP:[void 0,"$",2],CRC:[void 0,"\u20A1",2],CUC:[void 0,"$"],CUP:[void 0,"$"],CZK:[void 0,"K\u010D",2],DJF:[void 0,void 0,0],DKK:[void 0,"kr",2],DOP:[void 0,"$"],EGP:[void 0,"E\xA3"],ESP:[void 0,"\u20A7",0],EUR:["\u20AC"],FJD:[void 0,"$"],FKP:[void 0,"\xA3"],GBP:["\xA3"],GEL:[void 0,"\u20BE"],GHS:[void 0,"GH\u20B5"],GIP:[void 0,"\xA3"],GNF:[void 0,"FG",0],GTQ:[void 0,"Q"],GYD:[void 0,"$",2],HKD:["HK$","$"],HNL:[void 0,"L"],HRK:[void 0,"kn"],HUF:[void 0,"Ft",2],IDR:[void 0,"Rp",2],ILS:["\u20AA"],INR:["\u20B9"],IQD:[void 0,void 0,0],IRR:[void 0,void 0,0],ISK:[void 0,"kr",0],ITL:[void 0,void 0,0],JMD:[void 0,"$"],JOD:[void 0,void 0,3],JPY:["\xA5",void 0,0],KHR:[void 0,"\u17DB"],KMF:[void 0,"CF",0],KPW:[void 0,"\u20A9",0],KRW:["\u20A9",void 0,0],KWD:[void 0,void 0,3],KYD:[void 0,"$"],KZT:[void 0,"\u20B8"],LAK:[void 0,"\u20AD",0],LBP:[void 0,"L\xA3",0],LKR:[void 0,"Rs"],LRD:[void 0,"$"],LTL:[void 0,"Lt"],LUF:[void 0,void 0,0],LVL:[void 0,"Ls"],LYD:[void 0,void 0,3],MGA:[void 0,"Ar",0],MGF:[void 0,void 0,0],MMK:[void 0,"K",0],MNT:[void 0,"\u20AE",2],MRO:[void 0,void 0,0],MUR:[void 0,"Rs",2],MXN:["MX$","$"],MYR:[void 0,"RM"],NAD:[void 0,"$"],NGN:[void 0,"\u20A6"],NIO:[void 0,"C$"],NOK:[void 0,"kr",2],NPR:[void 0,"Rs"],NZD:["NZ$","$"],OMR:[void 0,void 0,3],PHP:["\u20B1"],PKR:[void 0,"Rs",2],PLN:[void 0,"z\u0142"],PYG:[void 0,"\u20B2",0],RON:[void 0,"lei"],RSD:[void 0,void 0,0],RUB:[void 0,"\u20BD"],RWF:[void 0,"RF",0],SBD:[void 0,"$"],SEK:[void 0,"kr",2],SGD:[void 0,"$"],SHP:[void 0,"\xA3"],SLE:[void 0,void 0,2],SLL:[void 0,void 0,0],SOS:[void 0,void 0,0],SRD:[void 0,"$"],SSP:[void 0,"\xA3"],STD:[void 0,void 0,0],STN:[void 0,"Db"],SYP:[void 0,"\xA3",0],THB:[void 0,"\u0E3F"],TMM:[void 0,void 0,0],TND:[void 0,void 0,3],TOP:[void 0,"T$"],TRL:[void 0,void 0,0],TRY:[void 0,"\u20BA"],TTD:[void 0,"$"],TWD:["NT$","$",2],TZS:[void 0,void 0,2],UAH:[void 0,"\u20B4"],UGX:[void 0,void 0,0],USD:["$"],UYI:[void 0,void 0,0],UYU:[void 0,"$"],UYW:[void 0,void 0,4],UZS:[void 0,void 0,2],VEF:[void 0,"Bs",2],VND:["\u20AB",void 0,0],VUV:[void 0,void 0,0],XAF:["FCFA",void 0,0],XCD:["EC$","$"],XOF:["F\u202FCFA",void 0,0],XPF:["CFPF",void 0,0],XXX:["\xA4"],YER:[void 0,void 0,0],ZAR:[void 0,"R"],ZMK:[void 0,void 0,0],ZMW:[void 0,"ZK"],ZWD:[void 0,void 0,0]},Wv=(function(t){return t[t.Decimal=0]="Decimal",t[t.Percent=1]="Percent",t[t.Currency=2]="Currency",t[t.Scientific=3]="Scientific",t})(Wv||{});var gr=(function(t){return t[t.Format=0]="Format",t[t.Standalone=1]="Standalone",t})(gr||{}),hi=(function(t){return t[t.Narrow=0]="Narrow",t[t.Abbreviated=1]="Abbreviated",t[t.Wide=2]="Wide",t[t.Short=3]="Short",t})(hi||{}),Gr=(function(t){return t[t.Short=0]="Short",t[t.Medium=1]="Medium",t[t.Long=2]="Long",t[t.Full=3]="Full",t})(Gr||{}),Yn={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 x2(t){return Ir(t)[zi.LocaleId]}function C2(t,n,e){let i=Ir(t),r=[i[zi.DayPeriodsFormat],i[zi.DayPeriodsStandalone]],o=Go(r,n);return Go(o,e)}function w2(t,n,e){let i=Ir(t),r=[i[zi.DaysFormat],i[zi.DaysStandalone]],o=Go(r,n);return Go(o,e)}function D2(t,n,e){let i=Ir(t),r=[i[zi.MonthsFormat],i[zi.MonthsStandalone]],o=Go(r,n);return Go(o,e)}function E2(t,n){let i=Ir(t)[zi.Eras];return Go(i,n)}function df(t,n){let e=Ir(t);return Go(e[zi.DateFormat],n)}function uf(t,n){let e=Ir(t);return Go(e[zi.TimeFormat],n)}function mf(t,n){let i=Ir(t)[zi.DateTimeFormat];return Go(i,n)}function ka(t,n){let e=Ir(t),i=e[zi.NumberSymbols][n];if(typeof i>"u"){if(n===Yn.CurrencyDecimal)return e[zi.NumberSymbols][Yn.Decimal];if(n===Yn.CurrencyGroup)return e[zi.NumberSymbols][Yn.Group]}return i}function c1(t,n){return Ir(t)[zi.NumberFormats][n]}function Bq(t){return Ir(t)[zi.Currencies]}function M2(t){if(!t[zi.ExtraData])throw new ue(2303,!1)}function k2(t){let n=Ir(t);return M2(n),(n[zi.ExtraData][2]||[]).map(i=>typeof i=="string"?e1(i):[e1(i[0]),e1(i[1])])}function S2(t,n,e){let i=Ir(t);M2(i);let r=[i[zi.ExtraData][0],i[zi.ExtraData][1]],o=Go(r,n)||[];return Go(o,e)||[]}function Go(t,n){for(let e=n;e>-1;e--)if(typeof t[e]<"u")return t[e];throw new ue(2304,!1)}function e1(t){let[n,e]=t.split(":");return{hours:+n,minutes:+e}}function T2(t,n,e="en"){let i=Bq(e)[t]||y2[t]||[],r=i[1];return n==="narrow"&&typeof r=="string"?r:i[0]||t}var jq=2;function I2(t){let n,e=y2[t];return e&&(n=e[2]),typeof n=="number"?n:jq}var Hq=/^(\d{4,})-?(\d\d)-?(\d\d)(?:T(\d\d)(?::?(\d\d)(?::?(\d\d)(?:\.(\d+))?)?)?(Z|([+-])(\d\d):?(\d\d))?)?$/,Nv={},zq=/((?:[^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]*)/;function A2(t,n,e,i){let r=Zq(t);n=tl(e,n)||n;let a=[],s;for(;n;)if(s=zq.exec(n),s){a=a.concat(s.slice(1));let d=a.pop();if(!d)break;n=d}else{a.push(n);break}let l=r.getTimezoneOffset();i&&(l=R2(i,l),r=Kq(r,i));let c="";return a.forEach(d=>{let m=Yq(d);c+=m?m(r,e,l):d==="''"?"'":d.replace(/(^'|'$)/g,"").replace(/''/g,"'")}),c}function Hv(t,n,e){let i=new Date(0);return i.setFullYear(t,n,e),i.setHours(0,0,0),i}function tl(t,n){let e=x2(t);if(Nv[e]??={},Nv[e][n])return Nv[e][n];let i="";switch(n){case"shortDate":i=df(t,Gr.Short);break;case"mediumDate":i=df(t,Gr.Medium);break;case"longDate":i=df(t,Gr.Long);break;case"fullDate":i=df(t,Gr.Full);break;case"shortTime":i=uf(t,Gr.Short);break;case"mediumTime":i=uf(t,Gr.Medium);break;case"longTime":i=uf(t,Gr.Long);break;case"fullTime":i=uf(t,Gr.Full);break;case"short":let r=tl(t,"shortTime"),o=tl(t,"shortDate");i=Lv(mf(t,Gr.Short),[r,o]);break;case"medium":let a=tl(t,"mediumTime"),s=tl(t,"mediumDate");i=Lv(mf(t,Gr.Medium),[a,s]);break;case"long":let l=tl(t,"longTime"),c=tl(t,"longDate");i=Lv(mf(t,Gr.Long),[l,c]);break;case"full":let d=tl(t,"fullTime"),m=tl(t,"fullDate");i=Lv(mf(t,Gr.Full),[d,m]);break}return i&&(Nv[e][n]=i),i}function Lv(t,n){return n&&(t=t.replace(/\{([^}]+)}/g,function(e,i){return n!=null&&i in n?n[i]:e})),t}function Ma(t,n,e="-",i,r){let o="";(t<0||r&&t<=0)&&(r?t=-t+1:(t=-t,o=e));let a=String(t);for(;a.length0||s>-e)&&(s+=e),t===3)s===0&&e===-12&&(s=12);else if(t===6)return Uq(s,n);let l=ka(a,Yn.MinusSign);return Ma(s,n,l,i,r)}}function $q(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 ue(2301,!1)}}function Ci(t,n,e=gr.Format,i=!1){return function(r,o){return Wq(r,o,t,n,e,i)}}function Wq(t,n,e,i,r,o){switch(e){case 2:return D2(n,r,i)[t.getMonth()];case 1:return w2(n,r,i)[t.getDay()];case 0:let a=t.getHours(),s=t.getMinutes();if(o){let c=k2(n),d=S2(n,r,i),m=c.findIndex(f=>{if(Array.isArray(f)){let[b,v]=f,w=a>=b.hours&&s>=b.minutes,x=a0?Math.floor(r/60):Math.ceil(r/60);switch(t){case 0:return(r>=0?"+":"")+Ma(a,2,o)+Ma(Math.abs(r%60),2,o);case 1:return"GMT"+(r>=0?"+":"")+Ma(a,1,o);case 2:return"GMT"+(r>=0?"+":"")+Ma(a,2,o)+":"+Ma(Math.abs(r%60),2,o);case 3:return i===0?"Z":(r>=0?"+":"")+Ma(a,2,o)+":"+Ma(Math.abs(r%60),2,o);default:throw new ue(2310,!1)}}}var Gq=0,jv=4;function qq(t){let n=Hv(t,Gq,1).getDay();return Hv(t,0,1+(n<=jv?jv:jv+7)-n)}function O2(t){let n=t.getDay(),e=n===0?-3:jv-n;return Hv(t.getFullYear(),t.getMonth(),t.getDate()+e)}function t1(t,n=!1){return function(e,i){let r;if(n){let o=new Date(e.getFullYear(),e.getMonth(),1).getDay()-1,a=e.getDate();r=1+Math.floor((a+o)/7)}else{let o=O2(e),a=qq(o.getFullYear()),s=o.getTime()-a.getTime();r=1+Math.round(s/6048e5)}return Ma(r,t,ka(i,Yn.MinusSign))}}function Bv(t,n=!1){return function(e,i){let o=O2(e).getFullYear();return Ma(o,t,ka(i,Yn.MinusSign),n)}}var i1={};function Yq(t){if(i1[t])return i1[t];let n;switch(t){case"G":case"GG":case"GGG":n=Ci(3,hi.Abbreviated);break;case"GGGG":n=Ci(3,hi.Wide);break;case"GGGGG":n=Ci(3,hi.Narrow);break;case"y":n=dn(0,1,0,!1,!0);break;case"yy":n=dn(0,2,0,!0,!0);break;case"yyy":n=dn(0,3,0,!1,!0);break;case"yyyy":n=dn(0,4,0,!1,!0);break;case"Y":n=Bv(1);break;case"YY":n=Bv(2,!0);break;case"YYY":n=Bv(3);break;case"YYYY":n=Bv(4);break;case"M":case"L":n=dn(1,1,1);break;case"MM":case"LL":n=dn(1,2,1);break;case"MMM":n=Ci(2,hi.Abbreviated);break;case"MMMM":n=Ci(2,hi.Wide);break;case"MMMMM":n=Ci(2,hi.Narrow);break;case"LLL":n=Ci(2,hi.Abbreviated,gr.Standalone);break;case"LLLL":n=Ci(2,hi.Wide,gr.Standalone);break;case"LLLLL":n=Ci(2,hi.Narrow,gr.Standalone);break;case"w":n=t1(1);break;case"ww":n=t1(2);break;case"W":n=t1(1,!0);break;case"d":n=dn(2,1);break;case"dd":n=dn(2,2);break;case"c":case"cc":n=dn(7,1);break;case"ccc":n=Ci(1,hi.Abbreviated,gr.Standalone);break;case"cccc":n=Ci(1,hi.Wide,gr.Standalone);break;case"ccccc":n=Ci(1,hi.Narrow,gr.Standalone);break;case"cccccc":n=Ci(1,hi.Short,gr.Standalone);break;case"E":case"EE":case"EEE":n=Ci(1,hi.Abbreviated);break;case"EEEE":n=Ci(1,hi.Wide);break;case"EEEEE":n=Ci(1,hi.Narrow);break;case"EEEEEE":n=Ci(1,hi.Short);break;case"a":case"aa":case"aaa":n=Ci(0,hi.Abbreviated);break;case"aaaa":n=Ci(0,hi.Wide);break;case"aaaaa":n=Ci(0,hi.Narrow);break;case"b":case"bb":case"bbb":n=Ci(0,hi.Abbreviated,gr.Standalone,!0);break;case"bbbb":n=Ci(0,hi.Wide,gr.Standalone,!0);break;case"bbbbb":n=Ci(0,hi.Narrow,gr.Standalone,!0);break;case"B":case"BB":case"BBB":n=Ci(0,hi.Abbreviated,gr.Format,!0);break;case"BBBB":n=Ci(0,hi.Wide,gr.Format,!0);break;case"BBBBB":n=Ci(0,hi.Narrow,gr.Format,!0);break;case"h":n=dn(3,1,-12);break;case"hh":n=dn(3,2,-12);break;case"H":n=dn(3,1);break;case"HH":n=dn(3,2);break;case"m":n=dn(4,1);break;case"mm":n=dn(4,2);break;case"s":n=dn(5,1);break;case"ss":n=dn(5,2);break;case"S":n=dn(6,1);break;case"SS":n=dn(6,2);break;case"SSS":n=dn(6,3);break;case"Z":case"ZZ":case"ZZZ":n=Vv(0);break;case"ZZZZZ":n=Vv(3);break;case"O":case"OO":case"OOO":case"z":case"zz":case"zzz":n=Vv(1);break;case"OOOO":case"ZZZZ":case"zzzz":n=Vv(2);break;default:return null}return i1[t]=n,n}function R2(t,n){t=t.replace(/:/g,"");let e=Date.parse("Jan 01, 1970 00:00:00 "+t)/6e4;return isNaN(e)?n:e}function Qq(t,n){return t=new Date(t.getTime()),t.setMinutes(t.getMinutes()+n),t}function Kq(t,n,e){let r=t.getTimezoneOffset(),o=R2(n,r);return Qq(t,-1*(o-r))}function Zq(t){if(p2(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[r,o=1,a=1]=t.split("-").map(s=>+s);return Hv(r,o-1,a)}let e=parseFloat(t);if(!isNaN(t-e))return new Date(e);let i;if(i=t.match(Hq))return Xq(i)}let n=new Date(t);if(!p2(n))throw new ue(2311,!1);return n}function Xq(t){let n=new Date(0),e=0,i=0,r=t[8]?n.setUTCFullYear:n.setFullYear,o=t[8]?n.setUTCHours:n.setHours;t[9]&&(e=Number(t[9]+t[10]),i=Number(t[9]+t[11])),r.call(n,Number(t[1]),Number(t[2])-1,Number(t[3]));let a=Number(t[4]||0)-e,s=Number(t[5]||0)-i,l=Number(t[6]||0),c=Math.floor(parseFloat("0."+(t[7]||0))*1e3);return o.call(n,a,s,l,c),n}function p2(t){return t instanceof Date&&!isNaN(t.valueOf())}var Jq=/^(\d+)?\.((\d+)(-(\d+))?)?$/,f2=22,zv=".",hf="0",eY=";",tY=",",n1="#",g2="\xA4";function P2(t,n,e,i,r,o,a=!1){let s="",l=!1;if(!isFinite(t))s=ka(e,Yn.Infinity);else{let c=nY(t);a&&(c=iY(c));let d=n.minInt,m=n.minFrac,f=n.maxFrac;if(o){let P=o.match(Jq);if(P===null)throw new ue(2306,!1);let W=P[1],Z=P[3],K=P[5];W!=null&&(d=r1(W)),Z!=null&&(m=r1(Z)),K!=null?f=r1(K):Z!=null&&m>f&&(f=m)}rY(c,m,f);let b=c.digits,v=c.integerLen,w=c.exponent,x=[];for(l=b.every(P=>!P);v0?x=b.splice(v,b.length):(x=b,b=[0]);let D=[];for(b.length>=n.lgSize&&D.unshift(b.splice(-n.lgSize,b.length).join(""));b.length>n.gSize;)D.unshift(b.splice(-n.gSize,b.length).join(""));b.length&&D.unshift(b.join("")),s=D.join(ka(e,i)),x.length&&(s+=ka(e,r)+x.join("")),w&&(s+=ka(e,Yn.Exponential)+"+"+w)}return t<0&&!l?s=n.negPre+s+n.negSuf:s=n.posPre+s+n.posSuf,s}function F2(t,n,e,i,r){let o=c1(n,Wv.Currency),a=L2(o,ka(n,Yn.MinusSign));return a.minFrac=I2(i),a.maxFrac=a.minFrac,P2(t,a,n,Yn.CurrencyGroup,Yn.CurrencyDecimal,r).replace(g2,e).replace(g2,"").trim()}function N2(t,n,e){let i=c1(n,Wv.Decimal),r=L2(i,ka(n,Yn.MinusSign));return P2(t,r,n,Yn.Group,Yn.Decimal,e)}function L2(t,n="-"){let e={minInt:1,minFrac:0,maxFrac:0,posPre:"",posSuf:"",negPre:"",negSuf:"",gSize:0,lgSize:0},i=t.split(eY),r=i[0],o=i[1],a=r.indexOf(zv)!==-1?r.split(zv):[r.substring(0,r.lastIndexOf(hf)+1),r.substring(r.lastIndexOf(hf)+1)],s=a[0],l=a[1]||"";e.posPre=s.substring(0,s.indexOf(n1));for(let d=0;d-1&&(n=n.replace(zv,"")),(o=n.search(/e/i))>0?(r<0&&(r=o),r+=+n.slice(o+1),n=n.substring(0,o)):r<0&&(r=n.length),o=0;n.charAt(o)===hf;o++);if(o===(s=n.length))i=[0],r=1;else{for(s--;n.charAt(s)===hf;)s--;for(r-=o,i=[],a=0;o<=s;o++,a++)i[a]=Number(n.charAt(o))}return r>f2&&(i=i.splice(0,f2-1),e=r-1,r=1),{digits:i,exponent:e,integerLen:r}}function rY(t,n,e){if(n>e)throw new ue(2307,!1);let i=t.digits,r=i.length-t.integerLen,o=Math.min(Math.max(n,r),e),a=o+t.integerLen,s=i[a];if(a>0){i.splice(Math.max(t.integerLen,a));for(let m=a;m=5)if(a-1<0){for(let m=0;m>a;m--)i.unshift(0),t.integerLen++;i.unshift(1),t.integerLen++}else i[a-1]++;for(;r=c?v.pop():l=!1),f>=10?1:0},0);d&&(i.unshift(d),t.integerLen++)}function r1(t){let n=parseInt(t);if(isNaN(n))throw new ue(2305,!1);return n}var o1=/\s+/,_2=[],Pd=(()=>{class t{_ngEl;_renderer;initialClasses=_2;rawClass;stateMap=new Map;constructor(e,i){this._ngEl=e,this._renderer=i}set klass(e){this.initialClasses=e!=null?e.trim().split(o1):_2}set ngClass(e){this.rawClass=typeof e=="string"?e.trim().split(o1):e}ngDoCheck(){for(let i of this.initialClasses)this._updateState(i,!0);let e=this.rawClass;if(Array.isArray(e)||e instanceof Set)for(let i of e)this._updateState(i,!0);else if(e!=null)for(let i of Object.keys(e))this._updateState(i,!!e[i]);this._applyStateDiff()}_updateState(e,i){let r=this.stateMap.get(e);r!==void 0?(r.enabled!==i&&(r.changed=!0,r.enabled=i),r.touched=!0):this.stateMap.set(e,{enabled:i,changed:!0,touched:!0})}_applyStateDiff(){for(let e of this.stateMap){let i=e[0],r=e[1];r.changed?(this._toggleClass(i,r.enabled),r.changed=!1):r.touched||(r.enabled&&this._toggleClass(i,!1),this.stateMap.delete(i)),r.touched=!1}}_toggleClass(e,i){e=e.trim(),e.length>0&&e.split(o1).forEach(r=>{i?this._renderer.addClass(this._ngEl.nativeElement,r):this._renderer.removeClass(this._ngEl.nativeElement,r)})}static \u0275fac=function(i){return new(i||t)(_e(q),_e(je))};static \u0275dir=F({type:t,selectors:[["","ngClass",""]],inputs:{klass:[0,"class","klass"],ngClass:"ngClass"}})}return t})();var Uv=class{$implicit;ngForOf;index;count;constructor(n,e,i,r){this.$implicit=n,this.ngForOf=e,this.index=i,this.count=r}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}},qr=(()=>{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,i,r){this._viewContainer=e,this._template=i,this._differs=r}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 i=this._viewContainer;e.forEachOperation((r,o,a)=>{if(r.previousIndex==null)i.createEmbeddedView(this._template,new Uv(r.item,this._ngForOf,-1,-1),a===null?void 0:a);else if(a==null)i.remove(o===null?void 0:o);else if(o!==null){let s=i.get(o);i.move(s,a),b2(s,r)}});for(let r=0,o=i.length;r{let o=i.get(r.currentIndex);b2(o,r)})}static ngTemplateContextGuard(e,i){return!0}static \u0275fac=function(i){return new(i||t)(_e(nt),_e(te),_e(ds))};static \u0275dir=F({type:t,selectors:[["","ngFor","","ngForOf",""]],inputs:{ngForOf:"ngForOf",ngForTrackBy:"ngForTrackBy",ngForTemplate:"ngForTemplate"}})}return t})();function b2(t,n){t.context.$implicit=n.item}var li=(()=>{class t{_viewContainer;_context=new $v;_thenTemplateRef=null;_elseTemplateRef=null;_thenViewRef=null;_elseViewRef=null;constructor(e,i){this._viewContainer=e,this._thenTemplateRef=i}set ngIf(e){this._context.$implicit=this._context.ngIf=e,this._updateView()}set ngIfThen(e){v2(e,!1),this._thenTemplateRef=e,this._thenViewRef=null,this._updateView()}set ngIfElse(e){v2(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,i){return!0}static \u0275fac=function(i){return new(i||t)(_e(nt),_e(te))};static \u0275dir=F({type:t,selectors:[["","ngIf",""]],inputs:{ngIf:"ngIf",ngIfThen:"ngIfThen",ngIfElse:"ngIfElse"}})}return t})(),$v=class{$implicit=null;ngIf=null};function v2(t,n){if(t&&!t.createEmbeddedView)throw new ue(2020,!1)}var Fn=(()=>{class t{_viewContainerRef;_viewRef=null;ngTemplateOutletContext=null;ngTemplateOutlet=null;ngTemplateOutletInjector=null;constructor(e){this._viewContainerRef=e}ngOnChanges(e){if(this._shouldRecreateView(e)){let i=this._viewContainerRef;if(this._viewRef&&i.remove(i.indexOf(this._viewRef)),!this.ngTemplateOutlet){this._viewRef=null;return}let r=this._createContextForwardProxy();this._viewRef=i.createEmbeddedView(this.ngTemplateOutlet,r,{injector:this.ngTemplateOutletInjector??void 0})}}_shouldRecreateView(e){return!!e.ngTemplateOutlet||!!e.ngTemplateOutletInjector}_createContextForwardProxy(){return new Proxy({},{set:(e,i,r)=>this.ngTemplateOutletContext?Reflect.set(this.ngTemplateOutletContext,i,r):!1,get:(e,i,r)=>{if(this.ngTemplateOutletContext)return Reflect.get(this.ngTemplateOutletContext,i,r)}})}static \u0275fac=function(i){return new(i||t)(_e(nt))};static \u0275dir=F({type:t,selectors:[["","ngTemplateOutlet",""]],inputs:{ngTemplateOutletContext:"ngTemplateOutletContext",ngTemplateOutlet:"ngTemplateOutlet",ngTemplateOutletInjector:"ngTemplateOutletInjector"},features:[Ae]})}return t})();function pf(t,n){return new ue(2100,!1)}var a1=class{createSubscription(n,e,i){return Ti(()=>n.subscribe({next:e,error:i}))}dispose(n){Ti(()=>n.unsubscribe())}},s1=class{createSubscription(n,e,i){return n.then(r=>e?.(r),r=>i?.(r)),{unsubscribe:()=>{e=null,i=null}}}dispose(n){n.unsubscribe()}},oY=new s1,aY=new a1,rn=(()=>{class t{_ref;_latestValue=null;markForCheckOnValueUpdate=!0;_subscription=null;_obj=null;_strategy=null;applicationErrorHandler=u(hr);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,i=>this._updateLatestValue(e,i),i=>this.applicationErrorHandler(i))}_selectStrategy(e){if(Xs(e))return oY;if(Ev(e))return aY;throw pf(t,e)}_dispose(){this._strategy.dispose(this._subscription),this._latestValue=null,this._subscription=null,this._obj=null}_updateLatestValue(e,i){e===this._obj&&(this._latestValue=i,this.markForCheckOnValueUpdate&&this._ref?.markForCheck())}static \u0275fac=function(i){return new(i||t)(_e(ye,16))};static \u0275pipe=Wr({name:"async",type:t,pure:!1})}return t})();var sY="mediumDate",V2=new T(""),B2=new T(""),Sa=(()=>{class t{locale;defaultTimezone;defaultOptions;constructor(e,i,r){this.locale=e,this.defaultTimezone=i,this.defaultOptions=r}transform(e,i,r,o){if(e==null||e===""||e!==e)return null;try{let a=i??this.defaultOptions?.dateFormat??sY,s=r??this.defaultOptions?.timezone??this.defaultTimezone??void 0;return A2(e,a,o||this.locale,s)}catch(a){throw pf(t,a.message)}}static \u0275fac=function(i){return new(i||t)(_e(el,16),_e(V2,24),_e(B2,24))};static \u0275pipe=Wr({name:"date",type:t,pure:!0})}return t})();var ff=(()=>{class t{_locale;constructor(e){this._locale=e}transform(e,i,r){if(!j2(e))return null;r||=this._locale;try{let o=H2(e);return N2(o,r,i)}catch(o){throw pf(t,o.message)}}static \u0275fac=function(i){return new(i||t)(_e(el,16))};static \u0275pipe=Wr({name:"number",type:t,pure:!0})}return t})();var il=(()=>{class t{_locale;_defaultCurrencyCode;constructor(e,i="USD"){this._locale=e,this._defaultCurrencyCode=i}transform(e,i=this._defaultCurrencyCode,r="symbol",o,a){if(!j2(e))return null;a||=this._locale,typeof r=="boolean"&&(r=r?"symbol":"code");let s=i||this._defaultCurrencyCode;r!=="code"&&(r==="symbol"||r==="symbol-narrow"?s=T2(s,r==="symbol"?"wide":"narrow",a):s=r);try{let l=H2(e);return F2(l,a,s,i,o)}catch(l){throw pf(t,l.message)}}static \u0275fac=function(i){return new(i||t)(_e(el,16),_e(HM,16))};static \u0275pipe=Wr({name:"currency",type:t,pure:!0})}return t})();function j2(t){return!(t==null||t===""||t!==t)}function H2(t){if(typeof t=="string"&&!isNaN(Number(t)-parseFloat(t)))return Number(t);if(typeof t!="number")throw new ue(2309,!1);return t}var d1=(()=>{class t{transform(e,i,r){if(e==null)return null;if(!(typeof e=="string"||Array.isArray(e)))throw pf(t,e);return e.slice(i,r)}static \u0275fac=function(i){return new(i||t)};static \u0275pipe=Wr({name:"slice",type:t,pure:!1})}return t})();var gt=(()=>{class t{static \u0275fac=function(i){return new(i||t)};static \u0275mod=ee({type:t});static \u0275inj=J({})}return t})();function gf(t,n){n=encodeURIComponent(n);for(let e of t.split(";")){let i=e.indexOf("="),[r,o]=i==-1?[e,""]:[e.slice(0,i),e.slice(i+1)];if(r.trim()===n)return decodeURIComponent(o)}return null}var Fd=class{};var m1="browser",lY="server";function z2(t){return t===m1}function U2(t){return t===lY}var h1=(()=>{class t{static \u0275prov=O({token:t,providedIn:"root",factory:()=>new u1(u(ge),window)})}return t})(),u1=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(De(M({},e),{left:n[0],top:n[1]}))}scrollToAnchor(n,e){let i=cY(this.document,n);i&&(this.scrollToElement(i,e),i.focus())}setHistoryScrollRestoration(n){try{this.window.history.scrollRestoration=n}catch{console.warn(Ro(2400,!1))}}scrollToElement(n,e){let i=n.getBoundingClientRect(),r=i.left+this.window.pageXOffset,o=i.top+this.window.pageYOffset,a=this.offset();this.window.scrollTo(De(M({},e),{left:r-a[0],top:o-a[1]}))}};function cY(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 i=t.createTreeWalker(t.body,NodeFilter.SHOW_ELEMENT),r=i.currentNode;for(;r;){let o=r.shadowRoot;if(o){let a=o.getElementById(n)||o.querySelector(`[name="${n}"]`);if(a)return a}r=i.nextNode()}}return null}var _f=class{_doc;constructor(n){this._doc=n}manager},Gv=(()=>{class t extends _f{constructor(e){super(e)}supports(e){return!0}addEventListener(e,i,r,o){return e.addEventListener(i,r,o),()=>this.removeEventListener(e,i,r,o)}removeEventListener(e,i,r,o){return e.removeEventListener(i,r,o)}static \u0275fac=function(i){return new(i||t)(pe(ge))};static \u0275prov=O({token:t,factory:t.\u0275fac})}return t})(),Yv=new T(""),b1=(()=>{class t{_zone;_plugins;_eventNameToPlugin=new Map;constructor(e,i){this._zone=i,e.forEach(a=>{a.manager=this});let r=e.filter(a=>!(a instanceof Gv));this._plugins=r.slice().reverse();let o=e.find(a=>a instanceof Gv);o&&this._plugins.push(o)}addEventListener(e,i,r,o){return this._findPluginFor(i).addEventListener(e,i,r,o)}getZone(){return this._zone}_findPluginFor(e){let i=this._eventNameToPlugin.get(e);if(i)return i;if(i=this._plugins.find(o=>o.supports(e)),!i)throw new ue(5101,!1);return this._eventNameToPlugin.set(e,i),i}static \u0275fac=function(i){return new(i||t)(pe(Yv),pe(ae))};static \u0275prov=O({token:t,factory:t.\u0275fac})}return t})(),p1="ng-app-id";function $2(t){for(let n of t)n.remove()}function W2(t,n){let e=n.createElement("style");return e.textContent=t,e}function dY(t,n,e,i){let r=t.head?.querySelectorAll(`style[${p1}="${n}"],link[${p1}="${n}"]`);if(r)for(let o of r)o.removeAttribute(p1),o instanceof HTMLLinkElement?i.set(o.href.slice(o.href.lastIndexOf("/")+1),{usage:0,elements:[o]}):o.textContent&&e.set(o.textContent,{usage:0,elements:[o]})}function g1(t,n){let e=n.createElement("link");return e.setAttribute("rel","stylesheet"),e.setAttribute("href",t),e}var v1=(()=>{class t{doc;appId;nonce;inline=new Map;external=new Map;hosts=new Set;constructor(e,i,r,o={}){this.doc=e,this.appId=i,this.nonce=r,dY(e,i,this.inline,this.external),this.hosts.add(e.head)}addStyles(e,i){for(let r of e)this.addUsage(r,this.inline,W2);i?.forEach(r=>this.addUsage(r,this.external,g1))}removeStyles(e,i){for(let r of e)this.removeUsage(r,this.inline);i?.forEach(r=>this.removeUsage(r,this.external))}addUsage(e,i,r){let o=i.get(e);o?o.usage++:i.set(e,{usage:1,elements:[...this.hosts].map(a=>this.addElement(a,r(e,this.doc)))})}removeUsage(e,i){let r=i.get(e);r&&(r.usage--,r.usage<=0&&($2(r.elements),i.delete(e)))}ngOnDestroy(){for(let[,{elements:e}]of[...this.inline,...this.external])$2(e);this.hosts.clear()}addHost(e){this.hosts.add(e);for(let[i,{elements:r}]of this.inline)r.push(this.addElement(e,W2(i,this.doc)));for(let[i,{elements:r}]of this.external)r.push(this.addElement(e,g1(i,this.doc)))}removeHost(e){this.hosts.delete(e)}addElement(e,i){return this.nonce&&i.setAttribute("nonce",this.nonce),e.appendChild(i)}static \u0275fac=function(i){return new(i||t)(pe(ge),pe(ql),pe(gm,8),pe(Ks))};static \u0275prov=O({token:t,factory:t.\u0275fac})}return t})(),f1={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"},y1=/%COMP%/g;var q2="%COMP%",uY=`_nghost-${q2}`,mY=`_ngcontent-${q2}`,hY=!0,pY=new T("",{providedIn:"root",factory:()=>hY});function fY(t){return mY.replace(y1,t)}function gY(t){return uY.replace(y1,t)}function Y2(t,n){return n.map(e=>e.replace(y1,t))}var x1=(()=>{class t{eventManager;sharedStylesHost;appId;removeStylesOnCompDestroy;doc;ngZone;nonce;tracingService;rendererByCompId=new Map;defaultRenderer;platformIsServer;constructor(e,i,r,o,a,s,l=null,c=null){this.eventManager=e,this.sharedStylesHost=i,this.appId=r,this.removeStylesOnCompDestroy=o,this.doc=a,this.ngZone=s,this.nonce=l,this.tracingService=c,this.platformIsServer=!1,this.defaultRenderer=new bf(e,a,s,this.platformIsServer,this.tracingService)}createRenderer(e,i){if(!e||!i)return this.defaultRenderer;let r=this.getOrCreateRenderer(e,i);return r instanceof qv?r.applyToHost(e):r instanceof vf&&r.applyStyles(),r}getOrCreateRenderer(e,i){let r=this.rendererByCompId,o=r.get(i.id);if(!o){let a=this.doc,s=this.ngZone,l=this.eventManager,c=this.sharedStylesHost,d=this.removeStylesOnCompDestroy,m=this.platformIsServer,f=this.tracingService;switch(i.encapsulation){case Ys.Emulated:o=new qv(l,c,i,this.appId,d,a,s,m,f);break;case Ys.ShadowDom:return new _1(l,c,e,i,a,s,this.nonce,m,f);default:o=new vf(l,c,i,d,a,s,m,f);break}r.set(i.id,o)}return o}ngOnDestroy(){this.rendererByCompId.clear()}componentReplaced(e){this.rendererByCompId.delete(e)}static \u0275fac=function(i){return new(i||t)(pe(b1),pe(v1),pe(ql),pe(pY),pe(ge),pe(ae),pe(gm),pe(Yl,8))};static \u0275prov=O({token:t,factory:t.\u0275fac})}return t})(),bf=class{eventManager;doc;ngZone;platformIsServer;tracingService;data=Object.create(null);throwOnSyntheticProps=!0;constructor(n,e,i,r,o){this.eventManager=n,this.doc=e,this.ngZone=i,this.platformIsServer=r,this.tracingService=o}destroy(){}destroyNode=null;createElement(n,e){return e?this.doc.createElementNS(f1[e]||e,n):this.doc.createElement(n)}createComment(n){return this.doc.createComment(n)}createText(n){return this.doc.createTextNode(n)}appendChild(n,e){(G2(n)?n.content:n).appendChild(e)}insertBefore(n,e,i){n&&(G2(n)?n.content:n).insertBefore(e,i)}removeChild(n,e){e.remove()}selectRootElement(n,e){let i=typeof n=="string"?this.doc.querySelector(n):n;if(!i)throw new ue(-5104,!1);return e||(i.textContent=""),i}parentNode(n){return n.parentNode}nextSibling(n){return n.nextSibling}setAttribute(n,e,i,r){if(r){e=r+":"+e;let o=f1[r];o?n.setAttributeNS(o,e,i):n.setAttribute(e,i)}else n.setAttribute(e,i)}removeAttribute(n,e,i){if(i){let r=f1[i];r?n.removeAttributeNS(r,e):n.removeAttribute(`${i}:${e}`)}else n.removeAttribute(e)}addClass(n,e){n.classList.add(e)}removeClass(n,e){n.classList.remove(e)}setStyle(n,e,i,r){r&(os.DashCase|os.Important)?n.style.setProperty(e,i,r&os.Important?"important":""):n.style[e]=i}removeStyle(n,e,i){i&os.DashCase?n.style.removeProperty(e):n.style[e]=""}setProperty(n,e,i){n!=null&&(n[e]=i)}setValue(n,e){n.nodeValue=e}listen(n,e,i,r){if(typeof n=="string"&&(n=Wo().getGlobalEventTarget(this.doc,n),!n))throw new ue(5102,!1);let o=this.decoratePreventDefault(i);return this.tracingService?.wrapEventListener&&(o=this.tracingService.wrapEventListener(n,e,o)),this.eventManager.addEventListener(n,e,o,r)}decoratePreventDefault(n){return e=>{if(e==="__ngUnwrap__")return n;n(e)===!1&&e.preventDefault()}}};function G2(t){return t.tagName==="TEMPLATE"&&t.content!==void 0}var _1=class extends bf{sharedStylesHost;hostEl;shadowRoot;constructor(n,e,i,r,o,a,s,l,c){super(n,o,a,l,c),this.sharedStylesHost=e,this.hostEl=i,this.shadowRoot=i.attachShadow({mode:"open"}),this.sharedStylesHost.addHost(this.shadowRoot);let d=r.styles;d=Y2(r.id,d);for(let f of d){let b=document.createElement("style");s&&b.setAttribute("nonce",s),b.textContent=f,this.shadowRoot.appendChild(b)}let m=r.getExternalStyles?.();if(m)for(let f of m){let b=g1(f,o);s&&b.setAttribute("nonce",s),this.shadowRoot.appendChild(b)}}nodeOrShadowRoot(n){return n===this.hostEl?this.shadowRoot:n}appendChild(n,e){return super.appendChild(this.nodeOrShadowRoot(n),e)}insertBefore(n,e,i){return super.insertBefore(this.nodeOrShadowRoot(n),e,i)}removeChild(n,e){return super.removeChild(null,e)}parentNode(n){return this.nodeOrShadowRoot(super.parentNode(this.nodeOrShadowRoot(n)))}destroy(){this.sharedStylesHost.removeHost(this.shadowRoot)}},vf=class extends bf{sharedStylesHost;removeStylesOnCompDestroy;styles;styleUrls;constructor(n,e,i,r,o,a,s,l,c){super(n,o,a,s,l),this.sharedStylesHost=e,this.removeStylesOnCompDestroy=r;let d=i.styles;this.styles=c?Y2(c,d):d,this.styleUrls=i.getExternalStyles?.(c)}applyStyles(){this.sharedStylesHost.addStyles(this.styles,this.styleUrls)}destroy(){this.removeStylesOnCompDestroy&&kd.size===0&&this.sharedStylesHost.removeStyles(this.styles,this.styleUrls)}},qv=class extends vf{contentAttr;hostAttr;constructor(n,e,i,r,o,a,s,l,c){let d=r+"-"+i.id;super(n,e,i,o,a,s,l,c,d),this.contentAttr=fY(d),this.hostAttr=gY(d)}applyToHost(n){this.applyStyles(),this.setAttribute(n,this.hostAttr,"")}createElement(n,e){let i=super.createElement(n,e);return super.setAttribute(i,this.contentAttr,""),i}};var Qv=class t extends lf{supportsDOMEvents=!0;static makeCurrent(){XM(new t)}onAndCancel(n,e,i,r){return n.addEventListener(e,i,r),()=>{n.removeEventListener(e,i,r)}}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=_Y();return e==null?null:bY(e)}resetBaseElement(){yf=null}getUserAgent(){return window.navigator.userAgent}getCookie(n){return gf(document.cookie,n)}},yf=null;function _Y(){return yf=yf||document.head.querySelector("base"),yf?yf.getAttribute("href"):null}function bY(t){return new URL(t,document.baseURI).pathname}var vY=(()=>{class t{build(){return new XMLHttpRequest}static \u0275fac=function(i){return new(i||t)};static \u0275prov=O({token:t,factory:t.\u0275fac})}return t})(),Q2=["alt","control","meta","shift"],yY={"\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"},xY={alt:t=>t.altKey,control:t=>t.ctrlKey,meta:t=>t.metaKey,shift:t=>t.shiftKey},K2=(()=>{class t extends _f{constructor(e){super(e)}supports(e){return t.parseEventName(e)!=null}addEventListener(e,i,r,o){let a=t.parseEventName(i),s=t.eventCallback(a.fullKey,r,this.manager.getZone());return this.manager.getZone().runOutsideAngular(()=>Wo().onAndCancel(e,a.domEventName,s,o))}static parseEventName(e){let i=e.toLowerCase().split("."),r=i.shift();if(i.length===0||!(r==="keydown"||r==="keyup"))return null;let o=t._normalizeKey(i.pop()),a="",s=i.indexOf("code");if(s>-1&&(i.splice(s,1),a="code."),Q2.forEach(c=>{let d=i.indexOf(c);d>-1&&(i.splice(d,1),a+=c+".")}),a+=o,i.length!=0||o.length===0)return null;let l={};return l.domEventName=r,l.fullKey=a,l}static matchEventFullKeyCode(e,i){let r=yY[e.key]||e.key,o="";return i.indexOf("code.")>-1&&(r=e.code,o="code."),r==null||!r?!1:(r=r.toLowerCase(),r===" "?r="space":r==="."&&(r="dot"),Q2.forEach(a=>{if(a!==r){let s=xY[a];s(e)&&(o+=a+".")}}),o+=r,o===i)}static eventCallback(e,i,r){return o=>{t.matchEventFullKeyCode(o,e)&&r.runGuarded(()=>i(o))}}static _normalizeKey(e){return e==="esc"?"escape":e}static \u0275fac=function(i){return new(i||t)(pe(ge))};static \u0275prov=O({token:t,factory:t.\u0275fac})}return t})();function C1(t,n,e){let i=M({rootComponent:t,platformRef:e?.platformRef},CY(n));return a2(i)}function CY(t){return{appProviders:[...kY,...t?.providers??[]],platformProviders:MY}}function wY(){Qv.makeCurrent()}function DY(){return new Tn}function EY(){return JE(document),document}var MY=[{provide:Ks,useValue:m1},{provide:sv,useValue:wY,multi:!0},{provide:ge,useFactory:EY}];var kY=[{provide:kp,useValue:"root"},{provide:Tn,useFactory:DY},{provide:Yv,useClass:Gv,multi:!0,deps:[ge]},{provide:Yv,useClass:K2,multi:!0,deps:[ge]},x1,v1,b1,{provide:cn,useExisting:x1},{provide:Fd,useClass:vY},[]];var Tm=class{},Zl=class{},_r=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 i=e.indexOf(":");if(i>0){let r=e.slice(0,i),o=e.slice(i+1).trim();this.addHeaderEntry(r,o)}})}:typeof Headers<"u"&&n instanceof Headers?(this.headers=new Map,n.forEach((e,i)=>{this.addHeaderEntry(i,e)})):this.lazyInit=()=>{this.headers=new Map,Object.entries(n).forEach(([e,i])=>{this.setHeaderEntries(e,i)})}: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(),Array.from(n.headers.keys()).forEach(e=>{this.headers.set(e,n.headers.get(e)),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 i=n.value;if(typeof i=="string"&&(i=[i]),i.length===0)return;this.maybeSetNormalizedName(n.name,e);let r=(n.op==="a"?this.headers.get(e):void 0)||[];r.push(...i),this.headers.set(e,r);break;case"d":let o=n.value;if(!o)this.headers.delete(e),this.normalizedNames.delete(e);else{let a=this.headers.get(e);if(!a)return;a=a.filter(s=>o.indexOf(s)===-1),a.length===0?(this.headers.delete(e),this.normalizedNames.delete(e)):this.headers.set(e,a)}break}}addHeaderEntry(n,e){let i=n.toLowerCase();this.maybeSetNormalizedName(n,i),this.headers.has(i)?this.headers.get(i).push(e):this.headers.set(i,[e])}setHeaderEntries(n,e){let i=(Array.isArray(e)?e:[e]).map(o=>o.toString()),r=n.toLowerCase();this.headers.set(r,i),this.maybeSetNormalizedName(n,r)}forEach(n){this.init(),Array.from(this.normalizedNames.keys()).forEach(e=>n(this.normalizedNames.get(e),this.headers.get(e)))}};var Zv=class{encodeKey(n){return Z2(n)}encodeValue(n){return Z2(n)}decodeKey(n){return decodeURIComponent(n)}decodeValue(n){return decodeURIComponent(n)}};function SY(t,n){let e=new Map;return t.length>0&&t.replace(/^\?/,"").split("&").forEach(r=>{let o=r.indexOf("="),[a,s]=o==-1?[n.decodeKey(r),""]:[n.decodeKey(r.slice(0,o)),n.decodeValue(r.slice(o+1))],l=e.get(a)||[];l.push(s),e.set(a,l)}),e}var TY=/%(\d[a-f0-9])/gi,IY={40:"@","3A":":",24:"$","2C":",","3B":";","3D":"=","3F":"?","2F":"/"};function Z2(t){return encodeURIComponent(t).replace(TY,(n,e)=>IY[e]??n)}function Kv(t){return`${t}`}var Qn=class t{map;encoder;updates=null;cloneFrom=null;constructor(n={}){if(this.encoder=n.encoder||new Zv,n.fromString){if(n.fromObject)throw new ue(2805,!1);this.map=SY(n.fromString,this.encoder)}else n.fromObject?(this.map=new Map,Object.keys(n.fromObject).forEach(e=>{let i=n.fromObject[e],r=Array.isArray(i)?i.map(Kv):[Kv(i)];this.map.set(e,r)})):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(i=>{let r=n[i];Array.isArray(r)?r.forEach(o=>{e.push({param:i,value:o,op:"a"})}):e.push({param:i,value:r,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(i=>e+"="+this.encoder.encodeValue(i)).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(){this.map===null&&(this.map=new Map),this.cloneFrom!==null&&(this.cloneFrom.init(),this.cloneFrom.keys().forEach(n=>this.map.set(n,this.cloneFrom.map.get(n))),this.updates.forEach(n=>{switch(n.op){case"a":case"s":let e=(n.op==="a"?this.map.get(n.param):void 0)||[];e.push(Kv(n.value)),this.map.set(n.param,e);break;case"d":if(n.value!==void 0){let i=this.map.get(n.param)||[],r=i.indexOf(Kv(n.value));r!==-1&&i.splice(r,1),i.length>0?this.map.set(n.param,i):this.map.delete(n.param)}else{this.map.delete(n.param);break}}}),this.cloneFrom=this.updates=null)}};var Xv=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()}};function AY(t){switch(t){case"DELETE":case"GET":case"HEAD":case"OPTIONS":case"JSONP":return!1;default:return!0}}function X2(t){return typeof ArrayBuffer<"u"&&t instanceof ArrayBuffer}function J2(t){return typeof Blob<"u"&&t instanceof Blob}function eN(t){return typeof FormData<"u"&&t instanceof FormData}function OY(t){return typeof URLSearchParams<"u"&&t instanceof URLSearchParams}var tN="Content-Type",iN="Accept",nN="X-Request-URL",rN="text/plain",oN="application/json",RY=`${oN}, ${rN}, */*`,km=class t{url;body=null;headers;context;reportProgress=!1;withCredentials=!1;credentials;keepalive=!1;cache;priority;mode;redirect;referrer;integrity;responseType="json";method;params;urlWithParams;transferCache;timeout;constructor(n,e,i,r){this.url=e,this.method=n.toUpperCase();let o;if(AY(this.method)||r?(this.body=i!==void 0?i:null,o=r):o=i,o){if(this.reportProgress=!!o.reportProgress,this.withCredentials=!!o.withCredentials,this.keepalive=!!o.keepalive,o.responseType&&(this.responseType=o.responseType),o.headers&&(this.headers=o.headers),o.context&&(this.context=o.context),o.params&&(this.params=o.params),o.priority&&(this.priority=o.priority),o.cache&&(this.cache=o.cache),o.credentials&&(this.credentials=o.credentials),typeof o.timeout=="number"){if(o.timeout<1||!Number.isInteger(o.timeout))throw new ue(2822,"");this.timeout=o.timeout}o.mode&&(this.mode=o.mode),o.redirect&&(this.redirect=o.redirect),o.integrity&&(this.integrity=o.integrity),o.referrer&&(this.referrer=o.referrer),this.transferCache=o.transferCache}if(this.headers??=new _r,this.context??=new Xv,!this.params)this.params=new Qn,this.urlWithParams=e;else{let a=this.params.toString();if(a.length===0)this.urlWithParams=e;else{let s=e.indexOf("?"),l=s===-1?"?":sK.set(re,n.setHeaders[re]),P)),n.setParams&&(W=Object.keys(n.setParams).reduce((K,re)=>K.set(re,n.setParams[re]),W)),new t(e,i,w,{params:W,headers:P,context:Z,reportProgress:D,responseType:r,withCredentials:x,transferCache:b,keepalive:o,cache:s,priority:a,timeout:v,mode:l,redirect:c,credentials:d,referrer:m,integrity:f})}},Nd=(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})(Nd||{}),Im=class{headers;status;statusText;url;ok;type;redirected;constructor(n,e=200,i="OK"){this.headers=n.headers||new _r,this.status=n.status!==void 0?n.status:e,this.statusText=n.statusText||i,this.url=n.url||null,this.redirected=n.redirected,this.ok=this.status>=200&&this.status<300}},Jv=class t extends Im{constructor(n={}){super(n)}type=Nd.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})}},nl=class t extends Im{body;constructor(n={}){super(n),this.body=n.body!==void 0?n.body:null}type=Nd.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})}},Sm=class extends Im{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}},PY=200,FY=204;function w1(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}}var Yr=(()=>{class t{handler;constructor(e){this.handler=e}request(e,i,r={}){let o;if(e instanceof km)o=e;else{let l;r.headers instanceof _r?l=r.headers:l=new _r(r.headers);let c;r.params&&(r.params instanceof Qn?c=r.params:c=new Qn({fromObject:r.params})),o=new km(e,i,r.body!==void 0?r.body:null,{headers:l,context:r.context,params:c,reportProgress:r.reportProgress,responseType:r.responseType||"json",withCredentials:r.withCredentials,transferCache:r.transferCache,keepalive:r.keepalive,priority:r.priority,cache:r.cache,mode:r.mode,redirect:r.redirect,credentials:r.credentials,referrer:r.referrer,integrity:r.integrity,timeout:r.timeout})}let a=Q(o).pipe(Ao(l=>this.handler.handle(l)));if(e instanceof km||r.observe==="events")return a;let s=a.pipe(ce(l=>l instanceof nl));switch(r.observe||"body"){case"body":switch(o.responseType){case"arraybuffer":return s.pipe(se(l=>{if(l.body!==null&&!(l.body instanceof ArrayBuffer))throw new ue(2806,!1);return l.body}));case"blob":return s.pipe(se(l=>{if(l.body!==null&&!(l.body instanceof Blob))throw new ue(2807,!1);return l.body}));case"text":return s.pipe(se(l=>{if(l.body!==null&&typeof l.body!="string")throw new ue(2808,!1);return l.body}));case"json":default:return s.pipe(se(l=>l.body))}case"response":return s;default:throw new ue(2809,!1)}}delete(e,i={}){return this.request("DELETE",e,i)}get(e,i={}){return this.request("GET",e,i)}head(e,i={}){return this.request("HEAD",e,i)}jsonp(e,i){return this.request("JSONP",e,{params:new Qn().append(i,"JSONP_CALLBACK"),observe:"body",responseType:"json"})}options(e,i={}){return this.request("OPTIONS",e,i)}patch(e,i,r={}){return this.request("PATCH",e,w1(r,i))}post(e,i,r={}){return this.request("POST",e,w1(r,i))}put(e,i,r={}){return this.request("PUT",e,w1(r,i))}static \u0275fac=function(i){return new(i||t)(pe(Tm))};static \u0275prov=O({token:t,factory:t.\u0275fac})}return t})();var NY=new T("");function LY(t,n){return n(t)}function VY(t,n,e){return(i,r)=>In(e,()=>n(i,o=>t(o,r)))}var E1=new T(""),M1=new T(""),aN=new T(""),sN=new T("",{providedIn:"root",factory:()=>!0});var e0=(()=>{class t extends Tm{backend;injector;chain=null;pendingTasks=u(om);contributeToStability=u(sN);constructor(e,i){super(),this.backend=e,this.injector=i}handle(e){if(this.chain===null){let i=Array.from(new Set([...this.injector.get(M1),...this.injector.get(aN,[])]));this.chain=i.reduceRight((r,o)=>VY(r,o,this.injector),LY)}if(this.contributeToStability){let i=this.pendingTasks.add();return this.chain(e,r=>this.backend.handle(r)).pipe(Hr(i))}else return this.chain(e,i=>this.backend.handle(i))}static \u0275fac=function(i){return new(i||t)(pe(Zl),pe(Wt))};static \u0275prov=O({token:t,factory:t.\u0275fac})}return t})();var BY=/^\)\]\}',?\n/,jY=RegExp(`^${nN}:`,"m");function HY(t){return"responseURL"in t&&t.responseURL?t.responseURL:jY.test(t.getAllResponseHeaders())?t.getResponseHeader(nN):null}var D1=(()=>{class t{xhrFactory;constructor(e){this.xhrFactory=e}handle(e){if(e.method==="JSONP")throw new ue(-2800,!1);let i=this.xhrFactory;return Q(null).pipe($e(()=>new Fe(o=>{let a=i.build();if(a.open(e.method,e.urlWithParams),e.withCredentials&&(a.withCredentials=!0),e.headers.forEach((x,D)=>a.setRequestHeader(x,D.join(","))),e.headers.has(iN)||a.setRequestHeader(iN,RY),!e.headers.has(tN)){let x=e.detectContentTypeHeader();x!==null&&a.setRequestHeader(tN,x)}if(e.timeout&&(a.timeout=e.timeout),e.responseType){let x=e.responseType.toLowerCase();a.responseType=x!=="json"?x:"text"}let s=e.serializeBody(),l=null,c=()=>{if(l!==null)return l;let x=a.statusText||"OK",D=new _r(a.getAllResponseHeaders()),P=HY(a)||e.url;return l=new Jv({headers:D,status:a.status,statusText:x,url:P}),l},d=()=>{let{headers:x,status:D,statusText:P,url:W}=c(),Z=null;D!==FY&&(Z=typeof a.response>"u"?a.responseText:a.response),D===0&&(D=Z?PY:0);let K=D>=200&&D<300;if(e.responseType==="json"&&typeof Z=="string"){let re=Z;Z=Z.replace(BY,"");try{Z=Z!==""?JSON.parse(Z):null}catch(Ee){Z=re,K&&(K=!1,Z={error:Ee,text:Z})}}K?(o.next(new nl({body:Z,headers:x,status:D,statusText:P,url:W||void 0})),o.complete()):o.error(new Sm({error:Z,headers:x,status:D,statusText:P,url:W||void 0}))},m=x=>{let{url:D}=c(),P=new Sm({error:x,status:a.status||0,statusText:a.statusText||"Unknown Error",url:D||void 0});o.error(P)},f=m;e.timeout&&(f=x=>{let{url:D}=c(),P=new Sm({error:new DOMException("Request timed out","TimeoutError"),status:a.status||0,statusText:a.statusText||"Request timeout",url:D||void 0});o.error(P)});let b=!1,v=x=>{b||(o.next(c()),b=!0);let D={type:Nd.DownloadProgress,loaded:x.loaded};x.lengthComputable&&(D.total=x.total),e.responseType==="text"&&a.responseText&&(D.partialText=a.responseText),o.next(D)},w=x=>{let D={type:Nd.UploadProgress,loaded:x.loaded};x.lengthComputable&&(D.total=x.total),o.next(D)};return a.addEventListener("load",d),a.addEventListener("error",m),a.addEventListener("timeout",f),a.addEventListener("abort",m),e.reportProgress&&(a.addEventListener("progress",v),s!==null&&a.upload&&a.upload.addEventListener("progress",w)),a.send(s),o.next({type:Nd.Sent}),()=>{a.removeEventListener("error",m),a.removeEventListener("abort",m),a.removeEventListener("load",d),a.removeEventListener("timeout",f),e.reportProgress&&(a.removeEventListener("progress",v),s!==null&&a.upload&&a.upload.removeEventListener("progress",w)),a.readyState!==a.DONE&&a.abort()}})))}static \u0275fac=function(i){return new(i||t)(pe(Fd))};static \u0275prov=O({token:t,factory:t.\u0275fac})}return t})(),lN=new T(""),zY="XSRF-TOKEN",UY=new T("",{providedIn:"root",factory:()=>zY}),$Y="X-XSRF-TOKEN",WY=new T("",{providedIn:"root",factory:()=>$Y}),xf=class{},GY=(()=>{class t{doc;cookieName;lastCookieString="";lastToken=null;parseCount=0;constructor(e,i){this.doc=e,this.cookieName=i}getToken(){let e=this.doc.cookie||"";return e!==this.lastCookieString&&(this.parseCount++,this.lastToken=gf(e,this.cookieName),this.lastCookieString=e),this.lastToken}static \u0275fac=function(i){return new(i||t)(pe(ge),pe(UY))};static \u0275prov=O({token:t,factory:t.\u0275fac})}return t})(),qY=/^(?:https?:)?\/\//i;function YY(t,n){if(!u(lN)||t.method==="GET"||t.method==="HEAD"||qY.test(t.url))return n(t);let e=u(xf).getToken(),i=u(WY);return e!=null&&!t.headers.has(i)&&(t=t.clone({headers:t.headers.set(i,e)})),n(t)}var k1=(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})(k1||{});function QY(t,n){return{\u0275kind:t,\u0275providers:n}}function S1(...t){let n=[Yr,D1,e0,{provide:Tm,useExisting:e0},{provide:Zl,useFactory:()=>u(NY,{optional:!0})??u(D1)},{provide:M1,useValue:YY,multi:!0},{provide:lN,useValue:!0},{provide:xf,useClass:GY}];for(let e of t)n.push(...e.\u0275providers);return zr(n)}function T1(t){return QY(k1.Interceptors,t.map(n=>({provide:M1,useValue:n,multi:!0})))}var dN=(()=>{class t{_doc;constructor(e){this._doc=e}getTitle(){return this._doc.title}setTitle(e){this._doc.title=e||""}static \u0275fac=function(i){return new(i||t)(pe(ge))};static \u0275prov=O({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();var Cf=(()=>{class t{static \u0275fac=function(i){return new(i||t)};static \u0275prov=O({token:t,factory:function(i){let r=null;return i?r=new(i||t):r=pe(KY),r},providedIn:"root"})}return t})(),KY=(()=>{class t extends Cf{_doc;constructor(e){super(),this._doc=e}sanitize(e,i){if(i==null)return null;switch(e){case An.NONE:return i;case An.HTML:return ls(i,"HTML")?Ur(i):uv(this._doc,String(i)).toString();case An.STYLE:return ls(i,"Style")?Ur(i):i;case An.SCRIPT:if(ls(i,"Script"))return Ur(i);throw new ue(5200,!1);case An.URL:return ls(i,"URL")?Ur(i):Qp(String(i));case An.RESOURCE_URL:if(ls(i,"ResourceURL"))return Ur(i);throw new ue(5201,!1);default:throw new ue(5202,!1)}}bypassSecurityTrustHtml(e){return iM(e)}bypassSecurityTrustStyle(e){return nM(e)}bypassSecurityTrustScript(e){return rM(e)}bypassSecurityTrustUrl(e){return oM(e)}bypassSecurityTrustResourceUrl(e){return aM(e)}static \u0275fac=function(i){return new(i||t)(pe(ge))};static \u0275prov=O({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();var dt="primary",Ff=Symbol("RouteTitle"),F1=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 Bd(t){return new F1(t)}function bN(t,n,e){let i=e.path.split("/");if(i.length>t.length||e.pathMatch==="full"&&(n.hasChildren()||i.lengthi[o]===r)}else return t===n}function yN(t){return t.length>0?t[t.length-1]:null}function rl(t){return ji(t)?t:Xs(t)?Ot(Promise.resolve(t)):Q(t)}var XY={exact:CN,subset:wN},xN={exact:JY,subset:eQ,ignored:()=>!0};function uN(t,n,e){return XY[e.paths](t.root,n.root,e.matrixParams)&&xN[e.queryParams](t.queryParams,n.queryParams)&&!(e.fragment==="exact"&&t.fragment!==n.fragment)}function JY(t,n){return ms(t,n)}function CN(t,n,e){if(!Ld(t.segments,n.segments)||!n0(t.segments,n.segments,e)||t.numberOfChildren!==n.numberOfChildren)return!1;for(let i in n.children)if(!t.children[i]||!CN(t.children[i],n.children[i],e))return!1;return!0}function eQ(t,n){return Object.keys(n).length<=Object.keys(t).length&&Object.keys(n).every(e=>vN(t[e],n[e]))}function wN(t,n,e){return DN(t,n,n.segments,e)}function DN(t,n,e,i){if(t.segments.length>e.length){let r=t.segments.slice(0,e.length);return!(!Ld(r,e)||n.hasChildren()||!n0(r,e,i))}else if(t.segments.length===e.length){if(!Ld(t.segments,e)||!n0(t.segments,e,i))return!1;for(let r in n.children)if(!t.children[r]||!wN(t.children[r],n.children[r],i))return!1;return!0}else{let r=e.slice(0,t.segments.length),o=e.slice(t.segments.length);return!Ld(t.segments,r)||!n0(t.segments,r,i)||!t.children[dt]?!1:DN(t.children[dt],n,o,i)}}function n0(t,n,e){return n.every((i,r)=>xN[e](t[r].parameters,i.parameters))}var hs=class{root;queryParams;fragment;_queryParamMap;constructor(n=new qt([],{}),e={},i=null){this.root=n,this.queryParams=e,this.fragment=i}get queryParamMap(){return this._queryParamMap??=Bd(this.queryParams),this._queryParamMap}toString(){return nQ.serialize(this)}},qt=class{segments;children;parent=null;constructor(n,e){this.segments=n,this.children=e,Object.values(e).forEach(i=>i.parent=this)}hasChildren(){return this.numberOfChildren>0}get numberOfChildren(){return Object.keys(this.children).length}toString(){return r0(this)}},Xl=class{path;parameters;_parameterMap;constructor(n,e){this.path=n,this.parameters=e}get parameterMap(){return this._parameterMap??=Bd(this.parameters),this._parameterMap}toString(){return MN(this)}};function tQ(t,n){return Ld(t,n)&&t.every((e,i)=>ms(e.parameters,n[i].parameters))}function Ld(t,n){return t.length!==n.length?!1:t.every((e,i)=>e.path===n[i].path)}function iQ(t,n){let e=[];return Object.entries(t.children).forEach(([i,r])=>{i===dt&&(e=e.concat(n(r,i)))}),Object.entries(t.children).forEach(([i,r])=>{i!==dt&&(e=e.concat(n(r,i)))}),e}var ic=(()=>{class t{static \u0275fac=function(i){return new(i||t)};static \u0275prov=O({token:t,factory:()=>new Jl,providedIn:"root"})}return t})(),Jl=class{parse(n){let e=new V1(n);return new hs(e.parseRootSegment(),e.parseQueryParams(),e.parseFragment())}serialize(n){let e=`/${wf(n.root,!0)}`,i=aQ(n.queryParams),r=typeof n.fragment=="string"?`#${rQ(n.fragment)}`:"";return`${e}${i}${r}`}},nQ=new Jl;function r0(t){return t.segments.map(n=>MN(n)).join("/")}function wf(t,n){if(!t.hasChildren())return r0(t);if(n){let e=t.children[dt]?wf(t.children[dt],!1):"",i=[];return Object.entries(t.children).forEach(([r,o])=>{r!==dt&&i.push(`${r}:${wf(o,!1)}`)}),i.length>0?`${e}(${i.join("//")})`:e}else{let e=iQ(t,(i,r)=>r===dt?[wf(t.children[dt],!1)]:[`${r}:${wf(i,!1)}`]);return Object.keys(t.children).length===1&&t.children[dt]!=null?`${r0(t)}/${e[0]}`:`${r0(t)}/(${e.join("//")})`}}function EN(t){return encodeURIComponent(t).replace(/%40/g,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",")}function t0(t){return EN(t).replace(/%3B/gi,";")}function rQ(t){return encodeURI(t)}function L1(t){return EN(t).replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/%26/gi,"&")}function o0(t){return decodeURIComponent(t)}function mN(t){return o0(t.replace(/\+/g,"%20"))}function MN(t){return`${L1(t.path)}${oQ(t.parameters)}`}function oQ(t){return Object.entries(t).map(([n,e])=>`;${L1(n)}=${L1(e)}`).join("")}function aQ(t){let n=Object.entries(t).map(([e,i])=>Array.isArray(i)?i.map(r=>`${t0(e)}=${t0(r)}`).join("&"):`${t0(e)}=${t0(i)}`).filter(e=>e);return n.length?`?${n.join("&")}`:""}var sQ=/^[^\/()?;#]+/;function A1(t){let n=t.match(sQ);return n?n[0]:""}var lQ=/^[^\/()?;=#]+/;function cQ(t){let n=t.match(lQ);return n?n[0]:""}var dQ=/^[^=?&#]+/;function uQ(t){let n=t.match(dQ);return n?n[0]:""}var mQ=/^[^&#]+/;function hQ(t){let n=t.match(mQ);return n?n[0]:""}var V1=class{url;remaining;constructor(n){this.url=n,this.remaining=n}parseRootSegment(){return this.consumeOptional("/"),this.remaining===""||this.peekStartsWith("?")||this.peekStartsWith("#")?new qt([],{}):new qt([],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(){if(this.remaining==="")return{};this.consumeOptional("/");let n=[];for(this.peekStartsWith("(")||n.push(this.parseSegment());this.peekStartsWith("/")&&!this.peekStartsWith("//")&&!this.peekStartsWith("/(");)this.capture("/"),n.push(this.parseSegment());let e={};this.peekStartsWith("/(")&&(this.capture("/"),e=this.parseParens(!0));let i={};return this.peekStartsWith("(")&&(i=this.parseParens(!1)),(n.length>0||Object.keys(e).length>0)&&(i[dt]=new qt(n,e)),i}parseSegment(){let n=A1(this.remaining);if(n===""&&this.peekStartsWith(";"))throw new ue(4009,!1);return this.capture(n),new Xl(o0(n),this.parseMatrixParams())}parseMatrixParams(){let n={};for(;this.consumeOptional(";");)this.parseParam(n);return n}parseParam(n){let e=cQ(this.remaining);if(!e)return;this.capture(e);let i="";if(this.consumeOptional("=")){let r=A1(this.remaining);r&&(i=r,this.capture(i))}n[o0(e)]=o0(i)}parseQueryParam(n){let e=uQ(this.remaining);if(!e)return;this.capture(e);let i="";if(this.consumeOptional("=")){let a=hQ(this.remaining);a&&(i=a,this.capture(i))}let r=mN(e),o=mN(i);if(n.hasOwnProperty(r)){let a=n[r];Array.isArray(a)||(a=[a],n[r]=a),a.push(o)}else n[r]=o}parseParens(n){let e={};for(this.capture("(");!this.consumeOptional(")")&&this.remaining.length>0;){let i=A1(this.remaining),r=this.remaining[i.length];if(r!=="/"&&r!==")"&&r!==";")throw new ue(4010,!1);let o;i.indexOf(":")>-1?(o=i.slice(0,i.indexOf(":")),this.capture(o),this.capture(":")):n&&(o=dt);let a=this.parseChildren();e[o??dt]=Object.keys(a).length===1&&a[dt]?a[dt]:new qt([],a),this.consumeOptional("//")}return e}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 ue(4011,!1)}};function kN(t){return t.segments.length>0?new qt([],{[dt]:t}):t}function SN(t){let n={};for(let[i,r]of Object.entries(t.children)){let o=SN(r);if(i===dt&&o.segments.length===0&&o.hasChildren())for(let[a,s]of Object.entries(o.children))n[a]=s;else(o.segments.length>0||o.hasChildren())&&(n[i]=o)}let e=new qt(t.segments,n);return pQ(e)}function pQ(t){if(t.numberOfChildren===1&&t.children[dt]){let n=t.children[dt];return new qt(t.segments.concat(n.segments),n.children)}return t}function ec(t){return t instanceof hs}function TN(t,n,e=null,i=null){let r=IN(t);return AN(r,n,e,i)}function IN(t){let n;function e(o){let a={};for(let l of o.children){let c=e(l);a[l.outlet]=c}let s=new qt(o.url,a);return o===t&&(n=s),s}let i=e(t.root),r=kN(i);return n??r}function AN(t,n,e,i){let r=t;for(;r.parent;)r=r.parent;if(n.length===0)return O1(r,r,r,e,i);let o=fQ(n);if(o.toRoot())return O1(r,r,new qt([],{}),e,i);let a=gQ(o,r,t),s=a.processChildren?Ef(a.segmentGroup,a.index,o.commands):RN(a.segmentGroup,a.index,o.commands);return O1(r,a.segmentGroup,s,e,i)}function a0(t){return typeof t=="object"&&t!=null&&!t.outlets&&!t.segmentPath}function kf(t){return typeof t=="object"&&t!=null&&t.outlets}function O1(t,n,e,i,r){let o={};i&&Object.entries(i).forEach(([l,c])=>{o[l]=Array.isArray(c)?c.map(d=>`${d}`):`${c}`});let a;t===n?a=e:a=ON(t,n,e);let s=kN(SN(a));return new hs(s,o,r)}function ON(t,n,e){let i={};return Object.entries(t.children).forEach(([r,o])=>{o===n?i[r]=e:i[r]=ON(o,n,e)}),new qt(t.segments,i)}var s0=class{isAbsolute;numberOfDoubleDots;commands;constructor(n,e,i){if(this.isAbsolute=n,this.numberOfDoubleDots=e,this.commands=i,n&&i.length>0&&a0(i[0]))throw new ue(4003,!1);let r=i.find(kf);if(r&&r!==yN(i))throw new ue(4004,!1)}toRoot(){return this.isAbsolute&&this.commands.length===1&&this.commands[0]=="/"}};function fQ(t){if(typeof t[0]=="string"&&t.length===1&&t[0]==="/")return new s0(!0,0,t);let n=0,e=!1,i=t.reduce((r,o,a)=>{if(typeof o=="object"&&o!=null){if(o.outlets){let s={};return Object.entries(o.outlets).forEach(([l,c])=>{s[l]=typeof c=="string"?c.split("/"):c}),[...r,{outlets:s}]}if(o.segmentPath)return[...r,o.segmentPath]}return typeof o!="string"?[...r,o]:a===0?(o.split("/").forEach((s,l)=>{l==0&&s==="."||(l==0&&s===""?e=!0:s===".."?n++:s!=""&&r.push(s))}),r):[...r,o]},[]);return new s0(e,n,i)}var Rm=class{segmentGroup;processChildren;index;constructor(n,e,i){this.segmentGroup=n,this.processChildren=e,this.index=i}};function gQ(t,n,e){if(t.isAbsolute)return new Rm(n,!0,0);if(!e)return new Rm(n,!1,NaN);if(e.parent===null)return new Rm(e,!0,0);let i=a0(t.commands[0])?0:1,r=e.segments.length-1+i;return _Q(e,r,t.numberOfDoubleDots)}function _Q(t,n,e){let i=t,r=n,o=e;for(;o>r;){if(o-=r,i=i.parent,!i)throw new ue(4005,!1);r=i.segments.length}return new Rm(i,!1,r-o)}function bQ(t){return kf(t[0])?t[0].outlets:{[dt]:t}}function RN(t,n,e){if(t??=new qt([],{}),t.segments.length===0&&t.hasChildren())return Ef(t,n,e);let i=vQ(t,n,e),r=e.slice(i.commandIndex);if(i.match&&i.pathIndexo!==dt)&&t.children[dt]&&t.numberOfChildren===1&&t.children[dt].segments.length===0){let o=Ef(t.children[dt],n,e);return new qt(t.segments,o.children)}return Object.entries(i).forEach(([o,a])=>{typeof a=="string"&&(a=[a]),a!==null&&(r[o]=RN(t.children[o],n,a))}),Object.entries(t.children).forEach(([o,a])=>{i[o]===void 0&&(r[o]=a)}),new qt(t.segments,r)}}function vQ(t,n,e){let i=0,r=n,o={match:!1,pathIndex:0,commandIndex:0};for(;r=e.length)return o;let a=t.segments[r],s=e[i];if(kf(s))break;let l=`${s}`,c=i0&&l===void 0)break;if(l&&c&&typeof c=="object"&&c.outlets===void 0){if(!pN(l,c,a))return o;i+=2}else{if(!pN(l,{},a))return o;i++}r++}return{match:!0,pathIndex:r,commandIndex:i}}function B1(t,n,e){let i=t.segments.slice(0,n),r=0;for(;r{typeof i=="string"&&(i=[i]),i!==null&&(n[e]=B1(new qt([],{}),0,i))}),n}function hN(t){let n={};return Object.entries(t).forEach(([e,i])=>n[e]=`${i}`),n}function pN(t,n,e){return t==e.path&&ms(n,e.parameters)}var Pm="imperative",yn=(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})(yn||{}),go=class{id;url;constructor(n,e){this.id=n,this.url=e}},ps=class extends go{type=yn.NavigationStart;navigationTrigger;restoredState;constructor(n,e,i="imperative",r=null){super(n,e),this.navigationTrigger=i,this.restoredState=r}toString(){return`NavigationStart(id: ${this.id}, url: '${this.url}')`}},vi=class extends go{urlAfterRedirects;type=yn.NavigationEnd;constructor(n,e,i){super(n,e),this.urlAfterRedirects=i}toString(){return`NavigationEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}')`}},Or=(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})(Or||{}),Nm=(function(t){return t[t.IgnoredSameUrlNavigation=0]="IgnoredSameUrlNavigation",t[t.IgnoredByUrlHandlingStrategy=1]="IgnoredByUrlHandlingStrategy",t})(Nm||{}),qo=class extends go{reason;code;type=yn.NavigationCancel;constructor(n,e,i,r){super(n,e),this.reason=i,this.code=r}toString(){return`NavigationCancel(id: ${this.id}, url: '${this.url}')`}},fs=class extends go{reason;code;type=yn.NavigationSkipped;constructor(n,e,i,r){super(n,e),this.reason=i,this.code=r}},tc=class extends go{error;target;type=yn.NavigationError;constructor(n,e,i,r){super(n,e),this.error=i,this.target=r}toString(){return`NavigationError(id: ${this.id}, url: '${this.url}', error: ${this.error})`}},Sf=class extends go{urlAfterRedirects;state;type=yn.RoutesRecognized;constructor(n,e,i,r){super(n,e),this.urlAfterRedirects=i,this.state=r}toString(){return`RoutesRecognized(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}},l0=class extends go{urlAfterRedirects;state;type=yn.GuardsCheckStart;constructor(n,e,i,r){super(n,e),this.urlAfterRedirects=i,this.state=r}toString(){return`GuardsCheckStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}},c0=class extends go{urlAfterRedirects;state;shouldActivate;type=yn.GuardsCheckEnd;constructor(n,e,i,r,o){super(n,e),this.urlAfterRedirects=i,this.state=r,this.shouldActivate=o}toString(){return`GuardsCheckEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state}, shouldActivate: ${this.shouldActivate})`}},d0=class extends go{urlAfterRedirects;state;type=yn.ResolveStart;constructor(n,e,i,r){super(n,e),this.urlAfterRedirects=i,this.state=r}toString(){return`ResolveStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}},u0=class extends go{urlAfterRedirects;state;type=yn.ResolveEnd;constructor(n,e,i,r){super(n,e),this.urlAfterRedirects=i,this.state=r}toString(){return`ResolveEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}},m0=class{route;type=yn.RouteConfigLoadStart;constructor(n){this.route=n}toString(){return`RouteConfigLoadStart(path: ${this.route.path})`}},h0=class{route;type=yn.RouteConfigLoadEnd;constructor(n){this.route=n}toString(){return`RouteConfigLoadEnd(path: ${this.route.path})`}},p0=class{snapshot;type=yn.ChildActivationStart;constructor(n){this.snapshot=n}toString(){return`ChildActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}},f0=class{snapshot;type=yn.ChildActivationEnd;constructor(n){this.snapshot=n}toString(){return`ChildActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}},g0=class{snapshot;type=yn.ActivationStart;constructor(n){this.snapshot=n}toString(){return`ActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}},_0=class{snapshot;type=yn.ActivationEnd;constructor(n){this.snapshot=n}toString(){return`ActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}},Lm=class{routerEvent;position;anchor;type=yn.Scroll;constructor(n,e,i){this.routerEvent=n,this.position=e,this.anchor=i}toString(){let n=this.position?`${this.position[0]}, ${this.position[1]}`:null;return`Scroll(anchor: '${this.anchor}', position: '${n}')`}},Tf=class{},Vm=class{url;navigationBehaviorOptions;constructor(n,e){this.url=n,this.navigationBehaviorOptions=e}};function xQ(t){return!(t instanceof Tf)&&!(t instanceof Vm)}function CQ(t,n){return t.providers&&!t._injector&&(t._injector=vm(t.providers,n,`Route: ${t.path}`)),t._injector??n}function Ta(t){return t.outlet||dt}function wQ(t,n){let e=t.filter(i=>Ta(i)===n);return e.push(...t.filter(i=>Ta(i)!==n)),e}function Hm(t){if(!t)return null;if(t.routeConfig?._injector)return t.routeConfig._injector;for(let n=t.parent;n;n=n.parent){let e=n.routeConfig;if(e?._loadedInjector)return e._loadedInjector;if(e?._injector)return e._injector}return null}var b0=class{rootInjector;outlet=null;route=null;children;attachRef=null;get injector(){return Hm(this.route?.snapshot)??this.rootInjector}constructor(n){this.rootInjector=n,this.children=new jd(this.rootInjector)}},jd=(()=>{class t{rootInjector;contexts=new Map;constructor(e){this.rootInjector=e}onChildOutletCreated(e,i){let r=this.getOrCreateContext(e);r.outlet=i,this.contexts.set(e,r)}onChildOutletDestroyed(e){let i=this.getContext(e);i&&(i.outlet=null,i.attachRef=null)}onOutletDeactivated(){let e=this.contexts;return this.contexts=new Map,e}onOutletReAttached(e){this.contexts=e}getOrCreateContext(e){let i=this.getContext(e);return i||(i=new b0(this.rootInjector),this.contexts.set(e,i)),i}getContext(e){return this.contexts.get(e)||null}static \u0275fac=function(i){return new(i||t)(pe(Wt))};static \u0275prov=O({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),v0=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=j1(n,this._root);return e?e.children.map(i=>i.value):[]}firstChild(n){let e=j1(n,this._root);return e&&e.children.length>0?e.children[0].value:null}siblings(n){let e=H1(n,this._root);return e.length<2?[]:e[e.length-2].children.map(r=>r.value).filter(r=>r!==n)}pathFromRoot(n){return H1(n,this._root).map(e=>e.value)}};function j1(t,n){if(t===n.value)return n;for(let e of n.children){let i=j1(t,e);if(i)return i}return null}function H1(t,n){if(t===n.value)return[n];for(let e of n.children){let i=H1(t,e);if(i.length)return i.unshift(n),i}return[]}var fo=class{value;children;constructor(n,e){this.value=n,this.children=e}toString(){return`TreeNode(${this.value})`}};function Om(t){let n={};return t&&t.children.forEach(e=>n[e.value.outlet]=e),n}var If=class extends v0{snapshot;constructor(n,e){super(n),this.snapshot=e,Q1(this,n)}toString(){return this.snapshot.toString()}};function PN(t){let n=DQ(t),e=new tt([new Xl("",{})]),i=new tt({}),r=new tt({}),o=new tt({}),a=new tt(""),s=new wi(e,i,o,a,r,dt,t,n.root);return s.snapshot=n.root,new If(new fo(s,[]),n)}function DQ(t){let n={},e={},i={},o=new Vd([],n,i,"",e,dt,t,null,{});return new Af("",new fo(o,[]))}var wi=class{urlSubject;paramsSubject;queryParamsSubject;fragmentSubject;dataSubject;outlet;component;snapshot;_futureSnapshot;_routerState;_paramMap;_queryParamMap;title;url;params;queryParams;fragment;data;constructor(n,e,i,r,o,a,s,l){this.urlSubject=n,this.paramsSubject=e,this.queryParamsSubject=i,this.fragmentSubject=r,this.dataSubject=o,this.outlet=a,this.component=s,this._futureSnapshot=l,this.title=this.dataSubject?.pipe(se(c=>c[Ff]))??Q(void 0),this.url=n,this.params=e,this.queryParams=i,this.fragment=r,this.data=o}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(se(n=>Bd(n))),this._paramMap}get queryParamMap(){return this._queryParamMap??=this.queryParams.pipe(se(n=>Bd(n))),this._queryParamMap}toString(){return this.snapshot?this.snapshot.toString():`Future(${this._futureSnapshot})`}};function y0(t,n,e="emptyOnly"){let i,{routeConfig:r}=t;return n!==null&&(e==="always"||r?.path===""||!n.component&&!n.routeConfig?.loadComponent)?i={params:M(M({},n.params),t.params),data:M(M({},n.data),t.data),resolve:M(M(M(M({},t.data),n.data),r?.data),t._resolvedData)}:i={params:M({},t.params),data:M({},t.data),resolve:M(M({},t.data),t._resolvedData??{})},r&&NN(r)&&(i.resolve[Ff]=r.title),i}var Vd=class{url;params;queryParams;fragment;data;outlet;component;routeConfig;_resolve;_resolvedData;_routerState;_paramMap;_queryParamMap;get title(){return this.data?.[Ff]}constructor(n,e,i,r,o,a,s,l,c){this.url=n,this.params=e,this.queryParams=i,this.fragment=r,this.data=o,this.outlet=a,this.component=s,this.routeConfig=l,this._resolve=c}get root(){return this._routerState.root}get parent(){return this._routerState.parent(this)}get firstChild(){return this._routerState.firstChild(this)}get children(){return this._routerState.children(this)}get pathFromRoot(){return this._routerState.pathFromRoot(this)}get paramMap(){return this._paramMap??=Bd(this.params),this._paramMap}get queryParamMap(){return this._queryParamMap??=Bd(this.queryParams),this._queryParamMap}toString(){let n=this.url.map(i=>i.toString()).join("/"),e=this.routeConfig?this.routeConfig.path:"";return`Route(url:'${n}', path:'${e}')`}},Af=class extends v0{url;constructor(n,e){super(e),this.url=n,Q1(this,e)}toString(){return FN(this._root)}};function Q1(t,n){n.value._routerState=t,n.children.forEach(e=>Q1(t,e))}function FN(t){let n=t.children.length>0?` { ${t.children.map(FN).join(", ")} } `:"";return`${t.value}${n}`}function R1(t){if(t.snapshot){let n=t.snapshot,e=t._futureSnapshot;t.snapshot=e,ms(n.queryParams,e.queryParams)||t.queryParamsSubject.next(e.queryParams),n.fragment!==e.fragment&&t.fragmentSubject.next(e.fragment),ms(n.params,e.params)||t.paramsSubject.next(e.params),ZY(n.url,e.url)||t.urlSubject.next(e.url),ms(n.data,e.data)||t.dataSubject.next(e.data)}else t.snapshot=t._futureSnapshot,t.dataSubject.next(t._futureSnapshot.data)}function z1(t,n){let e=ms(t.params,n.params)&&tQ(t.url,n.url),i=!t.parent!=!n.parent;return e&&!i&&(!t.parent||z1(t.parent,n.parent))}function NN(t){return typeof t.title=="string"||t.title===null}var LN=new T(""),ol=(()=>{class t{activated=null;get activatedComponentRef(){return this.activated}_activatedRoute=null;name=dt;activateEvents=new U;deactivateEvents=new U;attachEvents=new U;detachEvents=new U;routerOutletData=ne();parentContexts=u(jd);location=u(nt);changeDetector=u(ye);inputBinder=u(Nf,{optional:!0});supportsBindingToComponentInputs=!0;ngOnChanges(e){if(e.name){let{firstChange:i,previousValue:r}=e.name;if(i)return;this.isTrackedInParentContexts(r)&&(this.deactivate(),this.parentContexts.onChildOutletDestroyed(r)),this.initializeOutletWithName()}}ngOnDestroy(){this.isTrackedInParentContexts(this.name)&&this.parentContexts.onChildOutletDestroyed(this.name),this.inputBinder?.unsubscribeFromRouteData(this)}isTrackedInParentContexts(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 ue(4012,!1);return this.activated.instance}get activatedRoute(){if(!this.activated)throw new ue(4012,!1);return this._activatedRoute}get activatedRouteData(){return this._activatedRoute?this._activatedRoute.snapshot.data:{}}detach(){if(!this.activated)throw new ue(4012,!1);this.location.detach();let e=this.activated;return this.activated=null,this._activatedRoute=null,this.detachEvents.emit(e.instance),e}attach(e,i){this.activated=e,this._activatedRoute=i,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,i){if(this.isActivated)throw new ue(4013,!1);this._activatedRoute=e;let r=this.location,a=e.snapshot.component,s=this.parentContexts.getOrCreateContext(this.name).children,l=new U1(e,s,r.injector,this.routerOutletData);this.activated=r.createComponent(a,{index:r.length,injector:l,environmentInjector:i}),this.changeDetector.markForCheck(),this.inputBinder?.bindActivatedRouteToOutletComponent(this),this.activateEvents.emit(this.activated.instance)}static \u0275fac=function(i){return new(i||t)};static \u0275dir=F({type:t,selectors:[["router-outlet"]],inputs:{name:"name",routerOutletData:[1,"routerOutletData"]},outputs:{activateEvents:"activate",deactivateEvents:"deactivate",attachEvents:"attach",detachEvents:"detach"},exportAs:["outlet"],features:[Ae]})}return t})(),U1=class{route;childContexts;parent;outletData;constructor(n,e,i,r){this.route=n,this.childContexts=e,this.parent=i,this.outletData=r}get(n,e){return n===wi?this.route:n===jd?this.childContexts:n===LN?this.outletData:this.parent.get(n,e)}},Nf=new T(""),K1=(()=>{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:i}=e,r=co([i.queryParams,i.params,i.data]).pipe($e(([o,a,s],l)=>(s=M(M(M({},o),a),s),l===0?Q(s):Promise.resolve(s)))).subscribe(o=>{if(!e.isActivated||!e.activatedComponentRef||e.activatedRoute!==i||i.component===null){this.unsubscribeFromRouteData(e);return}let a=c2(i.component);if(!a){this.unsubscribeFromRouteData(e);return}for(let{templateName:s}of a.inputs)e.activatedComponentRef.setInput(s,o[s])});this.outletDataSubscriptions.set(e,r)}static \u0275fac=function(i){return new(i||t)};static \u0275prov=O({token:t,factory:t.\u0275fac})}return t})(),Z1=(()=>{class t{static \u0275fac=function(i){return new(i||t)};static \u0275cmp=E({type:t,selectors:[["ng-component"]],exportAs:["emptyRouterOutlet"],decls:1,vars:0,template:function(i,r){i&1&&k(0,"router-outlet")},dependencies:[ol],encapsulation:2})}return t})();function X1(t){let n=t.children&&t.children.map(X1),e=n?De(M({},t),{children:n}):M({},t);return!e.component&&!e.loadComponent&&(n||e.loadChildren)&&e.outlet&&e.outlet!==dt&&(e.component=Z1),e}function EQ(t,n,e){let i=Of(t,n._root,e?e._root:void 0);return new If(i,n)}function Of(t,n,e){if(e&&t.shouldReuseRoute(n.value,e.value.snapshot)){let i=e.value;i._futureSnapshot=n.value;let r=MQ(t,n,e);return new fo(i,r)}else{if(t.shouldAttach(n.value)){let o=t.retrieve(n.value);if(o!==null){let a=o.route;return a.value._futureSnapshot=n.value,a.children=n.children.map(s=>Of(t,s)),a}}let i=kQ(n.value),r=n.children.map(o=>Of(t,o));return new fo(i,r)}}function MQ(t,n,e){return n.children.map(i=>{for(let r of e.children)if(t.shouldReuseRoute(i.value,r.value.snapshot))return Of(t,i,r);return Of(t,i)})}function kQ(t){return new wi(new tt(t.url),new tt(t.params),new tt(t.queryParams),new tt(t.fragment),new tt(t.data),t.outlet,t.component,t)}var Bm=class{redirectTo;navigationBehaviorOptions;constructor(n,e){this.redirectTo=n,this.navigationBehaviorOptions=e}},VN="ngNavigationCancelingError";function x0(t,n){let{redirectTo:e,navigationBehaviorOptions:i}=ec(n)?{redirectTo:n,navigationBehaviorOptions:void 0}:n,r=BN(!1,Or.Redirect);return r.url=e,r.navigationBehaviorOptions=i,r}function BN(t,n){let e=new Error(`NavigationCancelingError: ${t||""}`);return e[VN]=!0,e.cancellationCode=n,e}function SQ(t){return jN(t)&&ec(t.url)}function jN(t){return!!t&&t[VN]}var TQ=(t,n,e,i)=>se(r=>(new $1(n,r.targetRouterState,r.currentRouterState,e,i).activate(t),r)),$1=class{routeReuseStrategy;futureState;currState;forwardEvent;inputBindingEnabled;constructor(n,e,i,r,o){this.routeReuseStrategy=n,this.futureState=e,this.currState=i,this.forwardEvent=r,this.inputBindingEnabled=o}activate(n){let e=this.futureState._root,i=this.currState?this.currState._root:null;this.deactivateChildRoutes(e,i,n),R1(this.futureState.root),this.activateChildRoutes(e,i,n)}deactivateChildRoutes(n,e,i){let r=Om(e);n.children.forEach(o=>{let a=o.value.outlet;this.deactivateRoutes(o,r[a],i),delete r[a]}),Object.values(r).forEach(o=>{this.deactivateRouteAndItsChildren(o,i)})}deactivateRoutes(n,e,i){let r=n.value,o=e?e.value:null;if(r===o)if(r.component){let a=i.getContext(r.outlet);a&&this.deactivateChildRoutes(n,e,a.children)}else this.deactivateChildRoutes(n,e,i);else o&&this.deactivateRouteAndItsChildren(e,i)}deactivateRouteAndItsChildren(n,e){n.value.component&&this.routeReuseStrategy.shouldDetach(n.value.snapshot)?this.detachAndStoreRouteSubtree(n,e):this.deactivateRouteAndOutlet(n,e)}detachAndStoreRouteSubtree(n,e){let i=e.getContext(n.value.outlet),r=i&&n.value.component?i.children:e,o=Om(n);for(let a of Object.values(o))this.deactivateRouteAndItsChildren(a,r);if(i&&i.outlet){let a=i.outlet.detach(),s=i.children.onOutletDeactivated();this.routeReuseStrategy.store(n.value.snapshot,{componentRef:a,route:n,contexts:s})}}deactivateRouteAndOutlet(n,e){let i=e.getContext(n.value.outlet),r=i&&n.value.component?i.children:e,o=Om(n);for(let a of Object.values(o))this.deactivateRouteAndItsChildren(a,r);i&&(i.outlet&&(i.outlet.deactivate(),i.children.onOutletDeactivated()),i.attachRef=null,i.route=null)}activateChildRoutes(n,e,i){let r=Om(e);n.children.forEach(o=>{this.activateRoutes(o,r[o.value.outlet],i),this.forwardEvent(new _0(o.value.snapshot))}),n.children.length&&this.forwardEvent(new f0(n.value.snapshot))}activateRoutes(n,e,i){let r=n.value,o=e?e.value:null;if(R1(r),r===o)if(r.component){let a=i.getOrCreateContext(r.outlet);this.activateChildRoutes(n,e,a.children)}else this.activateChildRoutes(n,e,i);else if(r.component){let a=i.getOrCreateContext(r.outlet);if(this.routeReuseStrategy.shouldAttach(r.snapshot)){let s=this.routeReuseStrategy.retrieve(r.snapshot);this.routeReuseStrategy.store(r.snapshot,null),a.children.onOutletReAttached(s.contexts),a.attachRef=s.componentRef,a.route=s.route.value,a.outlet&&a.outlet.attach(s.componentRef,s.route.value),R1(s.route.value),this.activateChildRoutes(n,null,a.children)}else a.attachRef=null,a.route=r,a.outlet&&a.outlet.activateWith(r,a.injector),this.activateChildRoutes(n,null,a.children)}else this.activateChildRoutes(n,null,i)}},C0=class{path;route;constructor(n){this.path=n,this.route=this.path[this.path.length-1]}},Fm=class{component;route;constructor(n,e){this.component=n,this.route=e}};function IQ(t,n,e){let i=t._root,r=n?n._root:null;return Df(i,r,e,[i.value])}function AQ(t){let n=t.routeConfig?t.routeConfig.canActivateChild:null;return!n||n.length===0?null:{node:t,guards:n}}function zm(t,n){let e=Symbol(),i=n.get(t,e);return i===e?typeof t=="function"&&!uD(t)?t:n.get(t):i}function Df(t,n,e,i,r={canDeactivateChecks:[],canActivateChecks:[]}){let o=Om(n);return t.children.forEach(a=>{OQ(a,o[a.value.outlet],e,i.concat([a.value]),r),delete o[a.value.outlet]}),Object.entries(o).forEach(([a,s])=>Mf(s,e.getContext(a),r)),r}function OQ(t,n,e,i,r={canDeactivateChecks:[],canActivateChecks:[]}){let o=t.value,a=n?n.value:null,s=e?e.getContext(t.value.outlet):null;if(a&&o.routeConfig===a.routeConfig){let l=RQ(a,o,o.routeConfig.runGuardsAndResolvers);l?r.canActivateChecks.push(new C0(i)):(o.data=a.data,o._resolvedData=a._resolvedData),o.component?Df(t,n,s?s.children:null,i,r):Df(t,n,e,i,r),l&&s&&s.outlet&&s.outlet.isActivated&&r.canDeactivateChecks.push(new Fm(s.outlet.component,a))}else a&&Mf(n,s,r),r.canActivateChecks.push(new C0(i)),o.component?Df(t,null,s?s.children:null,i,r):Df(t,null,e,i,r);return r}function RQ(t,n,e){if(typeof e=="function")return e(t,n);switch(e){case"pathParamsChange":return!Ld(t.url,n.url);case"pathParamsOrQueryParamsChange":return!Ld(t.url,n.url)||!ms(t.queryParams,n.queryParams);case"always":return!0;case"paramsOrQueryParamsChange":return!z1(t,n)||!ms(t.queryParams,n.queryParams);case"paramsChange":default:return!z1(t,n)}}function Mf(t,n,e){let i=Om(t),r=t.value;Object.entries(i).forEach(([o,a])=>{r.component?n?Mf(a,n.children.getContext(o),e):Mf(a,null,e):Mf(a,n,e)}),r.component?n&&n.outlet&&n.outlet.isActivated?e.canDeactivateChecks.push(new Fm(n.outlet.component,r)):e.canDeactivateChecks.push(new Fm(null,r)):e.canDeactivateChecks.push(new Fm(null,r))}function Lf(t){return typeof t=="function"}function PQ(t){return typeof t=="boolean"}function FQ(t){return t&&Lf(t.canLoad)}function NQ(t){return t&&Lf(t.canActivate)}function LQ(t){return t&&Lf(t.canActivateChild)}function VQ(t){return t&&Lf(t.canDeactivate)}function BQ(t){return t&&Lf(t.canMatch)}function HN(t){return t instanceof Hs||t?.name==="EmptyError"}var i0=Symbol("INITIAL_VALUE");function jm(){return $e(t=>co(t.map(n=>n.pipe(lt(1),He(i0)))).pipe(se(n=>{for(let e of n)if(e!==!0){if(e===i0)return i0;if(e===!1||jQ(e))return e}return!0}),ce(n=>n!==i0),lt(1)))}function jQ(t){return ec(t)||t instanceof Bm}function HQ(t,n){return Mt(e=>{let{targetSnapshot:i,currentSnapshot:r,guards:{canActivateChecks:o,canDeactivateChecks:a}}=e;return a.length===0&&o.length===0?Q(De(M({},e),{guardsResult:!0})):zQ(a,i,r,t).pipe(Mt(s=>s&&PQ(s)?UQ(i,o,t,n):Q(s)),se(s=>De(M({},e),{guardsResult:s})))})}function zQ(t,n,e,i){return Ot(t).pipe(Mt(r=>YQ(r.component,r.route,e,n,i)),gn(r=>r!==!0,!0))}function UQ(t,n,e,i){return Ot(n).pipe(Ao(r=>mo(WQ(r.route.parent,i),$Q(r.route,i),qQ(t,r.path,e),GQ(t,r.route,e))),gn(r=>r!==!0,!0))}function $Q(t,n){return t!==null&&n&&n(new g0(t)),Q(!0)}function WQ(t,n){return t!==null&&n&&n(new p0(t)),Q(!0)}function GQ(t,n,e){let i=n.routeConfig?n.routeConfig.canActivate:null;if(!i||i.length===0)return Q(!0);let r=i.map(o=>kn(()=>{let a=Hm(n)??e,s=zm(o,a),l=NQ(s)?s.canActivate(n,t):In(a,()=>s(n,t));return rl(l).pipe(gn())}));return Q(r).pipe(jm())}function qQ(t,n,e){let i=n[n.length-1],o=n.slice(0,n.length-1).reverse().map(a=>AQ(a)).filter(a=>a!==null).map(a=>kn(()=>{let s=a.guards.map(l=>{let c=Hm(a.node)??e,d=zm(l,c),m=LQ(d)?d.canActivateChild(i,t):In(c,()=>d(i,t));return rl(m).pipe(gn())});return Q(s).pipe(jm())}));return Q(o).pipe(jm())}function YQ(t,n,e,i,r){let o=n&&n.routeConfig?n.routeConfig.canDeactivate:null;if(!o||o.length===0)return Q(!0);let a=o.map(s=>{let l=Hm(n)??r,c=zm(s,l),d=VQ(c)?c.canDeactivate(t,n,e,i):In(l,()=>c(t,n,e,i));return rl(d).pipe(gn())});return Q(a).pipe(jm())}function QQ(t,n,e,i){let r=n.canLoad;if(r===void 0||r.length===0)return Q(!0);let o=r.map(a=>{let s=zm(a,t),l=FQ(s)?s.canLoad(n,e):In(t,()=>s(n,e));return rl(l)});return Q(o).pipe(jm(),zN(i))}function zN(t){return Bw(Be(n=>{if(typeof n!="boolean")throw x0(t,n)}),se(n=>n===!0))}function KQ(t,n,e,i){let r=n.canMatch;if(!r||r.length===0)return Q(!0);let o=r.map(a=>{let s=zm(a,t),l=BQ(s)?s.canMatch(n,e):In(t,()=>s(n,e));return rl(l)});return Q(o).pipe(jm(),zN(i))}var Rf=class{segmentGroup;constructor(n){this.segmentGroup=n||null}},Pf=class extends Error{urlTree;constructor(n){super(),this.urlTree=n}};function Am(t){return Wn(new Rf(t))}function ZQ(t){return Wn(new ue(4e3,!1))}function XQ(t){return Wn(BN(!1,Or.GuardRejected))}var W1=class{urlSerializer;urlTree;constructor(n,e){this.urlSerializer=n,this.urlTree=e}lineralizeSegments(n,e){let i=[],r=e.root;for(;;){if(i=i.concat(r.segments),r.numberOfChildren===0)return Q(i);if(r.numberOfChildren>1||!r.children[dt])return ZQ(`${n.redirectTo}`);r=r.children[dt]}}applyRedirectCommands(n,e,i,r,o){return JQ(e,r,o).pipe(se(a=>{if(a instanceof hs)throw new Pf(a);let s=this.applyRedirectCreateUrlTree(a,this.urlSerializer.parse(a),n,i);if(a[0]==="/")throw new Pf(s);return s}))}applyRedirectCreateUrlTree(n,e,i,r){let o=this.createSegmentGroup(n,e.root,i,r);return new hs(o,this.createQueryParams(e.queryParams,this.urlTree.queryParams),e.fragment)}createQueryParams(n,e){let i={};return Object.entries(n).forEach(([r,o])=>{if(typeof o=="string"&&o[0]===":"){let s=o.substring(1);i[r]=e[s]}else i[r]=o}),i}createSegmentGroup(n,e,i,r){let o=this.createSegments(n,e.segments,i,r),a={};return Object.entries(e.children).forEach(([s,l])=>{a[s]=this.createSegmentGroup(n,l,i,r)}),new qt(o,a)}createSegments(n,e,i,r){return e.map(o=>o.path[0]===":"?this.findPosParam(n,o,r):this.findOrReturn(o,i))}findPosParam(n,e,i){let r=i[e.path.substring(1)];if(!r)throw new ue(4001,!1);return r}findOrReturn(n,e){let i=0;for(let r of e){if(r.path===n.path)return e.splice(i),r;i++}return n}};function JQ(t,n,e){if(typeof t=="string")return Q(t);let i=t,{queryParams:r,fragment:o,routeConfig:a,url:s,outlet:l,params:c,data:d,title:m}=n;return rl(In(e,()=>i({params:c,data:d,queryParams:r,fragment:o,routeConfig:a,url:s,outlet:l,title:m})))}var G1={matched:!1,consumedSegments:[],remainingSegments:[],parameters:{},positionalParamSegments:{}};function eK(t,n,e,i,r){let o=UN(t,n,e);return o.matched?(i=CQ(n,i),KQ(i,n,e,r).pipe(se(a=>a===!0?o:M({},G1)))):Q(o)}function UN(t,n,e){if(n.path==="**")return tK(e);if(n.path==="")return n.pathMatch==="full"&&(t.hasChildren()||e.length>0)?M({},G1):{matched:!0,consumedSegments:[],remainingSegments:e,parameters:{},positionalParamSegments:{}};let r=(n.matcher||bN)(e,t,n);if(!r)return M({},G1);let o={};Object.entries(r.posParams??{}).forEach(([s,l])=>{o[s]=l.path});let a=r.consumed.length>0?M(M({},o),r.consumed[r.consumed.length-1].parameters):o;return{matched:!0,consumedSegments:r.consumed,remainingSegments:e.slice(r.consumed.length),parameters:a,positionalParamSegments:r.posParams??{}}}function tK(t){return{matched:!0,parameters:t.length>0?yN(t).parameters:{},consumedSegments:t,remainingSegments:[],positionalParamSegments:{}}}function fN(t,n,e,i){return e.length>0&&rK(t,e,i)?{segmentGroup:new qt(n,nK(i,new qt(e,t.children))),slicedSegments:[]}:e.length===0&&oK(t,e,i)?{segmentGroup:new qt(t.segments,iK(t,e,i,t.children)),slicedSegments:e}:{segmentGroup:new qt(t.segments,t.children),slicedSegments:e}}function iK(t,n,e,i){let r={};for(let o of e)if(D0(t,n,o)&&!i[Ta(o)]){let a=new qt([],{});r[Ta(o)]=a}return M(M({},i),r)}function nK(t,n){let e={};e[dt]=n;for(let i of t)if(i.path===""&&Ta(i)!==dt){let r=new qt([],{});e[Ta(i)]=r}return e}function rK(t,n,e){return e.some(i=>D0(t,n,i)&&Ta(i)!==dt)}function oK(t,n,e){return e.some(i=>D0(t,n,i))}function D0(t,n,e){return(t.hasChildren()||n.length>0)&&e.pathMatch==="full"?!1:e.path===""}function aK(t,n,e){return n.length===0&&!t.children[e]}var q1=class{};function sK(t,n,e,i,r,o,a="emptyOnly"){return new Y1(t,n,e,i,r,a,o).recognize()}var lK=31,Y1=class{injector;configLoader;rootComponentType;config;urlTree;paramsInheritanceStrategy;urlSerializer;applyRedirects;absoluteRedirectCount=0;allowRedirects=!0;constructor(n,e,i,r,o,a,s){this.injector=n,this.configLoader=e,this.rootComponentType=i,this.config=r,this.urlTree=o,this.paramsInheritanceStrategy=a,this.urlSerializer=s,this.applyRedirects=new W1(this.urlSerializer,this.urlTree)}noMatchError(n){return new ue(4002,`'${n.segmentGroup}'`)}recognize(){let n=fN(this.urlTree.root,[],[],this.config).segmentGroup;return this.match(n).pipe(se(({children:e,rootSnapshot:i})=>{let r=new fo(i,e),o=new Af("",r),a=TN(i,[],this.urlTree.queryParams,this.urlTree.fragment);return a.queryParams=this.urlTree.queryParams,o.url=this.urlSerializer.serialize(a),{state:o,tree:a}}))}match(n){let e=new Vd([],Object.freeze({}),Object.freeze(M({},this.urlTree.queryParams)),this.urlTree.fragment,Object.freeze({}),dt,this.rootComponentType,null,{});return this.processSegmentGroup(this.injector,this.config,n,dt,e).pipe(se(i=>({children:i,rootSnapshot:e})),fi(i=>{if(i instanceof Pf)return this.urlTree=i.urlTree,this.match(i.urlTree.root);throw i instanceof Rf?this.noMatchError(i):i}))}processSegmentGroup(n,e,i,r,o){return i.segments.length===0&&i.hasChildren()?this.processChildren(n,e,i,o):this.processSegment(n,e,i,i.segments,r,!0,o).pipe(se(a=>a instanceof fo?[a]:[]))}processChildren(n,e,i,r){let o=[];for(let a of Object.keys(i.children))a==="primary"?o.unshift(a):o.push(a);return Ot(o).pipe(Ao(a=>{let s=i.children[a],l=wQ(e,a);return this.processSegmentGroup(n,l,s,a,r)}),Kw((a,s)=>(a.push(...s),a)),Fl(null),Qw(),Mt(a=>{if(a===null)return Am(i);let s=$N(a);return cK(s),Q(s)}))}processSegment(n,e,i,r,o,a,s){return Ot(e).pipe(Ao(l=>this.processSegmentAgainstRoute(l._injector??n,e,l,i,r,o,a,s).pipe(fi(c=>{if(c instanceof Rf)return Q(null);throw c}))),gn(l=>!!l),fi(l=>{if(HN(l))return aK(i,r,o)?Q(new q1):Am(i);throw l}))}processSegmentAgainstRoute(n,e,i,r,o,a,s,l){return Ta(i)!==a&&(a===dt||!D0(r,o,i))?Am(r):i.redirectTo===void 0?this.matchSegmentAgainstRoute(n,r,i,o,a,l):this.allowRedirects&&s?this.expandSegmentAgainstRouteUsingRedirect(n,r,e,i,o,a,l):Am(r)}expandSegmentAgainstRouteUsingRedirect(n,e,i,r,o,a,s){let{matched:l,parameters:c,consumedSegments:d,positionalParamSegments:m,remainingSegments:f}=UN(e,r,o);if(!l)return Am(e);typeof r.redirectTo=="string"&&r.redirectTo[0]==="/"&&(this.absoluteRedirectCount++,this.absoluteRedirectCount>lK&&(this.allowRedirects=!1));let b=new Vd(o,c,Object.freeze(M({},this.urlTree.queryParams)),this.urlTree.fragment,gN(r),Ta(r),r.component??r._loadedComponent??null,r,_N(r)),v=y0(b,s,this.paramsInheritanceStrategy);return b.params=Object.freeze(v.params),b.data=Object.freeze(v.data),this.applyRedirects.applyRedirectCommands(d,r.redirectTo,m,b,n).pipe($e(x=>this.applyRedirects.lineralizeSegments(r,x)),Mt(x=>this.processSegment(n,i,e,x.concat(f),a,!1,s)))}matchSegmentAgainstRoute(n,e,i,r,o,a){let s=eK(e,i,r,n,this.urlSerializer);return i.path==="**"&&(e.children={}),s.pipe($e(l=>l.matched?(n=i._injector??n,this.getChildConfig(n,i,r).pipe($e(({routes:c})=>{let d=i._loadedInjector??n,{parameters:m,consumedSegments:f,remainingSegments:b}=l,v=new Vd(f,m,Object.freeze(M({},this.urlTree.queryParams)),this.urlTree.fragment,gN(i),Ta(i),i.component??i._loadedComponent??null,i,_N(i)),w=y0(v,a,this.paramsInheritanceStrategy);v.params=Object.freeze(w.params),v.data=Object.freeze(w.data);let{segmentGroup:x,slicedSegments:D}=fN(e,f,b,c);if(D.length===0&&x.hasChildren())return this.processChildren(d,c,x,v).pipe(se(W=>new fo(v,W)));if(c.length===0&&D.length===0)return Q(new fo(v,[]));let P=Ta(i)===o;return this.processSegment(d,c,x,D,P?dt:o,!0,v).pipe(se(W=>new fo(v,W instanceof fo?[W]:[])))}))):Am(e)))}getChildConfig(n,e,i){return e.children?Q({routes:e.children,injector:n}):e.loadChildren?e._loadedRoutes!==void 0?Q({routes:e._loadedRoutes,injector:e._loadedInjector}):QQ(n,e,i,this.urlSerializer).pipe(Mt(r=>r?this.configLoader.loadChildren(n,e).pipe(Be(o=>{e._loadedRoutes=o.routes,e._loadedInjector=o.injector})):XQ(e))):Q({routes:[],injector:n})}};function cK(t){t.sort((n,e)=>n.value.outlet===dt?-1:e.value.outlet===dt?1:n.value.outlet.localeCompare(e.value.outlet))}function dK(t){let n=t.value.routeConfig;return n&&n.path===""}function $N(t){let n=[],e=new Set;for(let i of t){if(!dK(i)){n.push(i);continue}let r=n.find(o=>i.value.routeConfig===o.value.routeConfig);r!==void 0?(r.children.push(...i.children),e.add(r)):n.push(i)}for(let i of e){let r=$N(i.children);n.push(new fo(i.value,r))}return n.filter(i=>!e.has(i))}function gN(t){return t.data||{}}function _N(t){return t.resolve||{}}function uK(t,n,e,i,r,o){return Mt(a=>sK(t,n,e,i,a.extractedUrl,r,o).pipe(se(({state:s,tree:l})=>De(M({},a),{targetSnapshot:s,urlAfterRedirects:l}))))}function mK(t,n){return Mt(e=>{let{targetSnapshot:i,guards:{canActivateChecks:r}}=e;if(!r.length)return Q(e);let o=new Set(r.map(l=>l.route)),a=new Set;for(let l of o)if(!a.has(l))for(let c of WN(l))a.add(c);let s=0;return Ot(a).pipe(Ao(l=>o.has(l)?hK(l,i,t,n):(l.data=y0(l,l.parent,t).resolve,Q(void 0))),Be(()=>s++),qu(1),Mt(l=>s===a.size?Q(e):Fi))})}function WN(t){let n=t.children.map(e=>WN(e)).flat();return[t,...n]}function hK(t,n,e,i){let r=t.routeConfig,o=t._resolve;return r?.title!==void 0&&!NN(r)&&(o[Ff]=r.title),kn(()=>(t.data=y0(t,t.parent,e).resolve,pK(o,t,n,i).pipe(se(a=>(t._resolvedData=a,t.data=M(M({},t.data),a),null)))))}function pK(t,n,e,i){let r=N1(t);if(r.length===0)return Q({});let o={};return Ot(r).pipe(Mt(a=>fK(t[a],n,e,i).pipe(gn(),Be(s=>{if(s instanceof Bm)throw x0(new Jl,s);o[a]=s}))),qu(1),se(()=>o),fi(a=>HN(a)?Fi:Wn(a)))}function fK(t,n,e,i){let r=Hm(n)??i,o=zm(t,r),a=o.resolve?o.resolve(n,e):In(r,()=>o(n,e));return rl(a)}function P1(t){return $e(n=>{let e=t(n);return e?Ot(e).pipe(se(()=>n)):Q(n)})}var J1=(()=>{class t{buildTitle(e){let i,r=e.root;for(;r!==void 0;)i=this.getResolvedTitleForRoute(r)??i,r=r.children.find(o=>o.outlet===dt);return i}getResolvedTitleForRoute(e){return e.data[Ff]}static \u0275fac=function(i){return new(i||t)};static \u0275prov=O({token:t,factory:()=>u(GN),providedIn:"root"})}return t})(),GN=(()=>{class t extends J1{title;constructor(e){super(),this.title=e}updateTitle(e){let i=this.buildTitle(e);i!==void 0&&this.title.setTitle(i)}static \u0275fac=function(i){return new(i||t)(pe(dN))};static \u0275prov=O({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),nc=new T("",{providedIn:"root",factory:()=>({})}),Hd=new T(""),E0=(()=>{class t{componentLoaders=new WeakMap;childrenLoaders=new WeakMap;onLoadStartListener;onLoadEndListener;compiler=u(jM);loadComponent(e,i){if(this.componentLoaders.get(i))return this.componentLoaders.get(i);if(i._loadedComponent)return Q(i._loadedComponent);this.onLoadStartListener&&this.onLoadStartListener(i);let r=rl(In(e,()=>i.loadComponent())).pipe(se(YN),$e(QN),Be(a=>{this.onLoadEndListener&&this.onLoadEndListener(i),i._loadedComponent=a}),Hr(()=>{this.componentLoaders.delete(i)})),o=new Al(r,()=>new z).pipe(ju());return this.componentLoaders.set(i,o),o}loadChildren(e,i){if(this.childrenLoaders.get(i))return this.childrenLoaders.get(i);if(i._loadedRoutes)return Q({routes:i._loadedRoutes,injector:i._loadedInjector});this.onLoadStartListener&&this.onLoadStartListener(i);let o=qN(i,this.compiler,e,this.onLoadEndListener).pipe(Hr(()=>{this.childrenLoaders.delete(i)})),a=new Al(o,()=>new z).pipe(ju());return this.childrenLoaders.set(i,a),a}static \u0275fac=function(i){return new(i||t)};static \u0275prov=O({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();function qN(t,n,e,i){return rl(In(e,()=>t.loadChildren())).pipe(se(YN),$e(QN),Mt(r=>r instanceof wv||Array.isArray(r)?Q(r):Ot(n.compileModuleAsync(r))),se(r=>{i&&i(t);let o,a,s=!1;return Array.isArray(r)?(a=r,s=!0):(o=r.create(e).injector,a=o.get(Hd,[],{optional:!0,self:!0}).flat()),{routes:a.map(X1),injector:o}}))}function gK(t){return t&&typeof t=="object"&&"default"in t}function YN(t){return gK(t)?t.default:t}function QN(t){return Q(t)}var M0=(()=>{class t{static \u0275fac=function(i){return new(i||t)};static \u0275prov=O({token:t,factory:()=>u(_K),providedIn:"root"})}return t})(),_K=(()=>{class t{shouldProcessUrl(e){return!0}extract(e){return e}merge(e,i){return e}static \u0275fac=function(i){return new(i||t)};static \u0275prov=O({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),ek=new T(""),tk=new T("");function KN(t,n,e){let i=t.get(tk),r=t.get(ge);if(!r.startViewTransition||i.skipNextTransition)return i.skipNextTransition=!1,new Promise(c=>setTimeout(c));let o,a=new Promise(c=>{o=c}),s=r.startViewTransition(()=>(o(),bK(t)));s.ready.catch(c=>{});let{onViewTransitionCreated:l}=i;return l&&In(t,()=>l({transition:s,from:n,to:e})),a}function bK(t){return new Promise(n=>{pt({read:()=>setTimeout(n)},{injector:t})})}var ik=new T(""),Vf=(()=>{class t{currentNavigation=he(null,{equal:()=>!1});currentTransition=null;lastSuccessfulNavigation=null;events=new z;transitionAbortWithErrorSubject=new z;configLoader=u(E0);environmentInjector=u(Wt);destroyRef=u(nn);urlSerializer=u(ic);rootContexts=u(jd);location=u(us);inputBindingEnabled=u(Nf,{optional:!0})!==null;titleStrategy=u(J1);options=u(nc,{optional:!0})||{};paramsInheritanceStrategy=this.options.paramsInheritanceStrategy||"emptyOnly";urlHandlingStrategy=u(M0);createViewTransition=u(ek,{optional:!0});navigationErrorHandler=u(ik,{optional:!0});navigationId=0;get hasRequestedNavigation(){return this.navigationId!==0}transitions;afterPreactivation=()=>Q(void 0);rootComponentType=null;destroyed=!1;constructor(){let e=r=>this.events.next(new m0(r)),i=r=>this.events.next(new h0(r));this.configLoader.onLoadEndListener=i,this.configLoader.onLoadStartListener=e,this.destroyRef.onDestroy(()=>{this.destroyed=!0})}complete(){this.transitions?.complete()}handleNavigationRequest(e){let i=++this.navigationId;Ti(()=>{this.transitions?.next(De(M({},e),{extractedUrl:this.urlHandlingStrategy.extract(e.rawUrl),targetSnapshot:null,targetRouterState:null,guards:{canActivateChecks:[],canDeactivateChecks:[]},guardsResult:null,abortController:new AbortController,id:i}))})}setupNavigations(e){return this.transitions=new tt(null),this.transitions.pipe(ce(i=>i!==null),$e(i=>{let r=!1;return Q(i).pipe($e(o=>{if(this.navigationId>i.id)return this.cancelNavigationTransition(i,"",Or.SupersededByNewNavigation),Fi;this.currentTransition=i,this.currentNavigation.set({id:o.id,initialUrl:o.rawUrl,extractedUrl:o.extractedUrl,targetBrowserUrl:typeof o.extras.browserUrl=="string"?this.urlSerializer.parse(o.extras.browserUrl):o.extras.browserUrl,trigger:o.source,extras:o.extras,previousNavigation:this.lastSuccessfulNavigation?De(M({},this.lastSuccessfulNavigation),{previousNavigation:null}):null,abort:()=>o.abortController.abort()});let a=!e.navigated||this.isUpdatingInternalState()||this.isUpdatedBrowserUrl(),s=o.extras.onSameUrlNavigation??e.onSameUrlNavigation;if(!a&&s!=="reload")return this.events.next(new fs(o.id,this.urlSerializer.serialize(o.rawUrl),"",Nm.IgnoredSameUrlNavigation)),o.resolve(!1),Fi;if(this.urlHandlingStrategy.shouldProcessUrl(o.rawUrl))return Q(o).pipe($e(l=>(this.events.next(new ps(l.id,this.urlSerializer.serialize(l.extractedUrl),l.source,l.restoredState)),l.id!==this.navigationId?Fi:Promise.resolve(l))),uK(this.environmentInjector,this.configLoader,this.rootComponentType,e.config,this.urlSerializer,this.paramsInheritanceStrategy),Be(l=>{i.targetSnapshot=l.targetSnapshot,i.urlAfterRedirects=l.urlAfterRedirects,this.currentNavigation.update(d=>(d.finalUrl=l.urlAfterRedirects,d));let c=new Sf(l.id,this.urlSerializer.serialize(l.extractedUrl),this.urlSerializer.serialize(l.urlAfterRedirects),l.targetSnapshot);this.events.next(c)}));if(a&&this.urlHandlingStrategy.shouldProcessUrl(o.currentRawUrl)){let{id:l,extractedUrl:c,source:d,restoredState:m,extras:f}=o,b=new ps(l,this.urlSerializer.serialize(c),d,m);this.events.next(b);let v=PN(this.rootComponentType).snapshot;return this.currentTransition=i=De(M({},o),{targetSnapshot:v,urlAfterRedirects:c,extras:De(M({},f),{skipLocationChange:!1,replaceUrl:!1})}),this.currentNavigation.update(w=>(w.finalUrl=c,w)),Q(i)}else return this.events.next(new fs(o.id,this.urlSerializer.serialize(o.extractedUrl),"",Nm.IgnoredByUrlHandlingStrategy)),o.resolve(!1),Fi}),Be(o=>{let a=new l0(o.id,this.urlSerializer.serialize(o.extractedUrl),this.urlSerializer.serialize(o.urlAfterRedirects),o.targetSnapshot);this.events.next(a)}),se(o=>(this.currentTransition=i=De(M({},o),{guards:IQ(o.targetSnapshot,o.currentSnapshot,this.rootContexts)}),i)),HQ(this.environmentInjector,o=>this.events.next(o)),Be(o=>{if(i.guardsResult=o.guardsResult,o.guardsResult&&typeof o.guardsResult!="boolean")throw x0(this.urlSerializer,o.guardsResult);let a=new c0(o.id,this.urlSerializer.serialize(o.extractedUrl),this.urlSerializer.serialize(o.urlAfterRedirects),o.targetSnapshot,!!o.guardsResult);this.events.next(a)}),ce(o=>o.guardsResult?!0:(this.cancelNavigationTransition(o,"",Or.GuardRejected),!1)),P1(o=>{if(o.guards.canActivateChecks.length!==0)return Q(o).pipe(Be(a=>{let s=new d0(a.id,this.urlSerializer.serialize(a.extractedUrl),this.urlSerializer.serialize(a.urlAfterRedirects),a.targetSnapshot);this.events.next(s)}),$e(a=>{let s=!1;return Q(a).pipe(mK(this.paramsInheritanceStrategy,this.environmentInjector),Be({next:()=>s=!0,complete:()=>{s||this.cancelNavigationTransition(a,"",Or.NoDataFromResolver)}}))}),Be(a=>{let s=new u0(a.id,this.urlSerializer.serialize(a.extractedUrl),this.urlSerializer.serialize(a.urlAfterRedirects),a.targetSnapshot);this.events.next(s)}))}),P1(o=>{let a=s=>{let l=[];if(s.routeConfig?.loadComponent){let c=Hm(s)??this.environmentInjector;l.push(this.configLoader.loadComponent(c,s.routeConfig).pipe(Be(d=>{s.component=d}),se(()=>{})))}for(let c of s.children)l.push(...a(c));return l};return co(a(o.targetSnapshot.root)).pipe(Fl(null),lt(1))}),P1(()=>this.afterPreactivation()),$e(()=>{let{currentSnapshot:o,targetSnapshot:a}=i,s=this.createViewTransition?.(this.environmentInjector,o.root,a.root);return s?Ot(s).pipe(se(()=>i)):Q(i)}),se(o=>{let a=EQ(e.routeReuseStrategy,o.targetSnapshot,o.currentRouterState);return this.currentTransition=i=De(M({},o),{targetRouterState:a}),this.currentNavigation.update(s=>(s.targetRouterState=a,s)),i}),Be(()=>{this.events.next(new Tf)}),TQ(this.rootContexts,e.routeReuseStrategy,o=>this.events.next(o),this.inputBindingEnabled),lt(1),Te(new Fe(o=>{let a=i.abortController.signal,s=()=>o.next();return a.addEventListener("abort",s),()=>a.removeEventListener("abort",s)}).pipe(ce(()=>!r&&!i.targetRouterState),Be(()=>{this.cancelNavigationTransition(i,i.abortController.signal.reason+"",Or.Aborted)}))),Be({next:o=>{r=!0,this.lastSuccessfulNavigation=Ti(this.currentNavigation),this.events.next(new vi(o.id,this.urlSerializer.serialize(o.extractedUrl),this.urlSerializer.serialize(o.urlAfterRedirects))),this.titleStrategy?.updateTitle(o.targetRouterState.snapshot),o.resolve(!0)},complete:()=>{r=!0}}),Te(this.transitionAbortWithErrorSubject.pipe(Be(o=>{throw o}))),Hr(()=>{r||this.cancelNavigationTransition(i,"",Or.SupersededByNewNavigation),this.currentTransition?.id===i.id&&(this.currentNavigation.set(null),this.currentTransition=null)}),fi(o=>{if(this.destroyed)return i.resolve(!1),Fi;if(r=!0,jN(o))this.events.next(new qo(i.id,this.urlSerializer.serialize(i.extractedUrl),o.message,o.cancellationCode)),SQ(o)?this.events.next(new Vm(o.url,o.navigationBehaviorOptions)):i.resolve(!1);else{let a=new tc(i.id,this.urlSerializer.serialize(i.extractedUrl),o,i.targetSnapshot??void 0);try{let s=In(this.environmentInjector,()=>this.navigationErrorHandler?.(a));if(s instanceof Bm){let{message:l,cancellationCode:c}=x0(this.urlSerializer,s);this.events.next(new qo(i.id,this.urlSerializer.serialize(i.extractedUrl),l,c)),this.events.next(new Vm(s.redirectTo,s.navigationBehaviorOptions))}else throw this.events.next(a),o}catch(s){this.options.resolveNavigationPromiseOnError?i.resolve(!1):i.reject(s)}}return Fi}))}))}cancelNavigationTransition(e,i,r){let o=new qo(e.id,this.urlSerializer.serialize(e.extractedUrl),i,r);this.events.next(o),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))),i=Ti(this.currentNavigation),r=i?.targetBrowserUrl??i?.extractedUrl;return e.toString()!==r?.toString()&&!i?.extras.skipLocationChange}static \u0275fac=function(i){return new(i||t)};static \u0275prov=O({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();function vK(t){return t!==Pm}var ZN=(()=>{class t{static \u0275fac=function(i){return new(i||t)};static \u0275prov=O({token:t,factory:()=>u(yK),providedIn:"root"})}return t})(),w0=class{shouldDetach(n){return!1}store(n,e){}shouldAttach(n){return!1}retrieve(n){return null}shouldReuseRoute(n,e){return n.routeConfig===e.routeConfig}},yK=(()=>{class t extends w0{static \u0275fac=(()=>{let e;return function(r){return(e||(e=fe(t)))(r||t)}})();static \u0275prov=O({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),XN=(()=>{class t{urlSerializer=u(ic);options=u(nc,{optional:!0})||{};canceledNavigationResolution=this.options.canceledNavigationResolution||"replace";location=u(us);urlHandlingStrategy=u(M0);urlUpdateStrategy=this.options.urlUpdateStrategy||"deferred";currentUrlTree=new hs;getCurrentUrlTree(){return this.currentUrlTree}rawUrlTree=this.currentUrlTree;getRawUrlTree(){return this.rawUrlTree}createBrowserPath({finalUrl:e,initialUrl:i,targetBrowserUrl:r}){let o=e!==void 0?this.urlHandlingStrategy.merge(e,i):i,a=r??o;return a instanceof hs?this.urlSerializer.serialize(a):a}commitTransition({targetRouterState:e,finalUrl:i,initialUrl:r}){i&&e?(this.currentUrlTree=i,this.rawUrlTree=this.urlHandlingStrategy.merge(i,r),this.routerState=e):this.rawUrlTree=r}routerState=PN(null);getRouterState(){return this.routerState}stateMemento=this.createStateMemento();updateStateMemento(){this.stateMemento=this.createStateMemento()}createStateMemento(){return{rawUrlTree:this.rawUrlTree,currentUrlTree:this.currentUrlTree,routerState:this.routerState}}resetInternalState({finalUrl:e}){this.routerState=this.stateMemento.routerState,this.currentUrlTree=this.stateMemento.currentUrlTree,this.rawUrlTree=this.urlHandlingStrategy.merge(this.currentUrlTree,e??this.rawUrlTree)}static \u0275fac=function(i){return new(i||t)};static \u0275prov=O({token:t,factory:()=>u(xK),providedIn:"root"})}return t})(),xK=(()=>{class t extends XN{currentPageId=0;lastSuccessfulId=-1;restoredState(){return this.location.getState()}get browserPageId(){return this.canceledNavigationResolution!=="computed"?this.currentPageId:this.restoredState()?.\u0275routerPageId??this.currentPageId}registerNonRouterCurrentEntryChangeListener(e){return this.location.subscribe(i=>{i.type==="popstate"&&setTimeout(()=>{e(i.url,i.state,"popstate")})})}handleRouterEvent(e,i){e instanceof ps?this.updateStateMemento():e instanceof fs?this.commitTransition(i):e instanceof Sf?this.urlUpdateStrategy==="eager"&&(i.extras.skipLocationChange||this.setBrowserUrl(this.createBrowserPath(i),i)):e instanceof Tf?(this.commitTransition(i),this.urlUpdateStrategy==="deferred"&&!i.extras.skipLocationChange&&this.setBrowserUrl(this.createBrowserPath(i),i)):e instanceof qo&&e.code!==Or.SupersededByNewNavigation&&e.code!==Or.Redirect?this.restoreHistory(i):e instanceof tc?this.restoreHistory(i,!0):e instanceof vi&&(this.lastSuccessfulId=e.id,this.currentPageId=this.browserPageId)}setBrowserUrl(e,{extras:i,id:r}){let{replaceUrl:o,state:a}=i;if(this.location.isCurrentPathEqualTo(e)||o){let s=this.browserPageId,l=M(M({},a),this.generateNgRouterState(r,s));this.location.replaceState(e,"",l)}else{let s=M(M({},a),this.generateNgRouterState(r,this.browserPageId+1));this.location.go(e,"",s)}}restoreHistory(e,i=!1){if(this.canceledNavigationResolution==="computed"){let r=this.browserPageId,o=this.currentPageId-r;o!==0?this.location.historyGo(o):this.getCurrentUrlTree()===e.finalUrl&&o===0&&(this.resetInternalState(e),this.resetUrlToCurrentUrlTree())}else this.canceledNavigationResolution==="replace"&&(i&&this.resetInternalState(e),this.resetUrlToCurrentUrlTree())}resetUrlToCurrentUrlTree(){this.location.replaceState(this.urlSerializer.serialize(this.getRawUrlTree()),"",this.generateNgRouterState(this.lastSuccessfulId,this.currentPageId))}generateNgRouterState(e,i){return this.canceledNavigationResolution==="computed"?{navigationId:e,\u0275routerPageId:i}:{navigationId:e}}static \u0275fac=(()=>{let e;return function(r){return(e||(e=fe(t)))(r||t)}})();static \u0275prov=O({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();function k0(t,n){t.events.pipe(ce(e=>e instanceof vi||e instanceof qo||e instanceof tc||e instanceof fs),se(e=>e instanceof vi||e instanceof fs?0:(e instanceof qo?e.code===Or.Redirect||e.code===Or.SupersededByNewNavigation:!1)?2:1),ce(e=>e!==2),lt(1)).subscribe(()=>{n()})}var CK={paths:"exact",fragment:"ignored",matrixParams:"ignored",queryParams:"exact"},wK={paths:"subset",fragment:"ignored",matrixParams:"ignored",queryParams:"subset"},Re=(()=>{class t{get currentUrlTree(){return this.stateManager.getCurrentUrlTree()}get rawUrlTree(){return this.stateManager.getRawUrlTree()}disposed=!1;nonRouterCurrentEntryChangeSubscription;console=u(Dv);stateManager=u(XN);options=u(nc,{optional:!0})||{};pendingTasks=u(ns);urlUpdateStrategy=this.options.urlUpdateStrategy||"deferred";navigationTransitions=u(Vf);urlSerializer=u(ic);location=u(us);urlHandlingStrategy=u(M0);injector=u(Wt);_events=new z;get events(){return this._events}get routerState(){return this.stateManager.getRouterState()}navigated=!1;routeReuseStrategy=u(ZN);onSameUrlNavigation=this.options.onSameUrlNavigation||"ignore";config=u(Hd,{optional:!0})?.flat()??[];componentInputBindingEnabled=!!u(Nf,{optional:!0});currentNavigation=this.navigationTransitions.currentNavigation.asReadonly();constructor(){this.resetConfig(this.config),this.navigationTransitions.setupNavigations(this).subscribe({error:e=>{this.console.warn(e)}}),this.subscribeToNavigationEvents()}eventsSubscription=new ke;subscribeToNavigationEvents(){let e=this.navigationTransitions.events.subscribe(i=>{try{let r=this.navigationTransitions.currentTransition,o=Ti(this.navigationTransitions.currentNavigation);if(r!==null&&o!==null){if(this.stateManager.handleRouterEvent(i,o),i instanceof qo&&i.code!==Or.Redirect&&i.code!==Or.SupersededByNewNavigation)this.navigated=!0;else if(i instanceof vi)this.navigated=!0;else if(i instanceof Vm){let a=i.navigationBehaviorOptions,s=this.urlHandlingStrategy.merge(i.url,r.currentRawUrl),l=M({browserUrl:r.extras.browserUrl,info:r.extras.info,skipLocationChange:r.extras.skipLocationChange,replaceUrl:r.extras.replaceUrl||this.urlUpdateStrategy==="eager"||vK(r.source)},a);this.scheduleNavigation(s,Pm,null,l,{resolve:r.resolve,reject:r.reject,promise:r.promise})}}xQ(i)&&this._events.next(i)}catch(r){this.navigationTransitions.transitionAbortWithErrorSubject.next(r)}});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),Pm,this.stateManager.restoredState())}setUpLocationChangeListener(){this.nonRouterCurrentEntryChangeSubscription??=this.stateManager.registerNonRouterCurrentEntryChangeListener((e,i,r)=>{this.navigateToSyncWithBrowser(e,r,i)})}navigateToSyncWithBrowser(e,i,r){let o={replaceUrl:!0},a=r?.navigationId?r:null;if(r){let l=M({},r);delete l.navigationId,delete l.\u0275routerPageId,Object.keys(l).length!==0&&(o.state=l)}let s=this.parseUrl(e);this.scheduleNavigation(s,i,a,o).catch(l=>{this.disposed||this.injector.get(hr)(l)})}get url(){return this.serializeUrl(this.currentUrlTree)}getCurrentNavigation(){return Ti(this.navigationTransitions.currentNavigation)}get lastSuccessfulNavigation(){return this.navigationTransitions.lastSuccessfulNavigation}resetConfig(e){this.config=e.map(X1),this.navigated=!1}ngOnDestroy(){this.dispose()}dispose(){this._events.unsubscribe(),this.navigationTransitions.complete(),this.nonRouterCurrentEntryChangeSubscription&&(this.nonRouterCurrentEntryChangeSubscription.unsubscribe(),this.nonRouterCurrentEntryChangeSubscription=void 0),this.disposed=!0,this.eventsSubscription.unsubscribe()}createUrlTree(e,i={}){let{relativeTo:r,queryParams:o,fragment:a,queryParamsHandling:s,preserveFragment:l}=i,c=l?this.currentUrlTree.fragment:a,d=null;switch(s??this.options.defaultQueryParamsHandling){case"merge":d=M(M({},this.currentUrlTree.queryParams),o);break;case"preserve":d=this.currentUrlTree.queryParams;break;default:d=o||null}d!==null&&(d=this.removeEmptyProps(d));let m;try{let f=r?r.snapshot:this.routerState.snapshot.root;m=IN(f)}catch{(typeof e[0]!="string"||e[0][0]!=="/")&&(e=[]),m=this.currentUrlTree.root}return AN(m,e,d,c??null)}navigateByUrl(e,i={skipLocationChange:!1}){let r=ec(e)?e:this.parseUrl(e),o=this.urlHandlingStrategy.merge(r,this.rawUrlTree);return this.scheduleNavigation(o,Pm,null,i)}navigate(e,i={skipLocationChange:!1}){return DK(e),this.navigateByUrl(this.createUrlTree(e,i),i)}serializeUrl(e){return this.urlSerializer.serialize(e)}parseUrl(e){try{return this.urlSerializer.parse(e)}catch{return this.console.warn(Ro(4018,!1)),this.urlSerializer.parse("/")}}isActive(e,i){let r;if(i===!0?r=M({},CK):i===!1?r=M({},wK):r=i,ec(e))return uN(this.currentUrlTree,e,r);let o=this.parseUrl(e);return uN(this.currentUrlTree,o,r)}removeEmptyProps(e){return Object.entries(e).reduce((i,[r,o])=>(o!=null&&(i[r]=o),i),{})}scheduleNavigation(e,i,r,o,a){if(this.disposed)return Promise.resolve(!1);let s,l,c;a?(s=a.resolve,l=a.reject,c=a.promise):c=new Promise((m,f)=>{s=m,l=f});let d=this.pendingTasks.add();return k0(this,()=>{queueMicrotask(()=>this.pendingTasks.remove(d))}),this.navigationTransitions.handleNavigationRequest({source:i,restoredState:r,currentUrlTree:this.currentUrlTree,currentRawUrl:this.currentUrlTree,rawUrl:e,extras:o,resolve:s,reject:l,promise:c,currentSnapshot:this.routerState.snapshot,currentRouterState:this.routerState}),c.catch(m=>Promise.reject(m))}static \u0275fac=function(i){return new(i||t)};static \u0275prov=O({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();function DK(t){for(let n=0;n{class t{router;route;tabIndexAttribute;renderer;el;locationStrategy;reactiveHref=he(null);get href(){return Ti(this.reactiveHref)}set href(e){this.reactiveHref.set(e)}target;queryParams;fragment;queryParamsHandling;state;info;relativeTo;isAnchorElement;subscription;onChanges=new z;applicationErrorHandler=u(hr);options=u(nc,{optional:!0});constructor(e,i,r,o,a,s){this.router=e,this.route=i,this.tabIndexAttribute=r,this.renderer=o,this.el=a,this.locationStrategy=s,this.reactiveHref.set(u(new Ii("href"),{optional:!0}));let l=a.nativeElement.tagName?.toLowerCase();this.isAnchorElement=l==="a"||l==="area"||!!(typeof customElements=="object"&&customElements.get(l)?.observedAttributes?.includes?.("href")),this.isAnchorElement?this.setTabIndexIfNotOnNativeEl("0"):this.subscribeToNavigationEventsIfNecessary()}subscribeToNavigationEventsIfNecessary(){if(this.subscription!==void 0||!this.isAnchorElement)return;let e=this.preserveFragment,i=r=>r==="merge"||r==="preserve";e||=i(this.queryParamsHandling),e||=!this.queryParamsHandling&&!i(this.options?.defaultQueryParamsHandling),e&&(this.subscription=this.router.events.subscribe(r=>{r instanceof vi&&this.updateHref()}))}preserveFragment=!1;skipLocationChange=!1;replaceUrl=!1;setTabIndexIfNotOnNativeEl(e){this.tabIndexAttribute!=null||this.isAnchorElement||this.applyAttributeValue("tabindex",e)}ngOnChanges(e){this.isAnchorElement&&(this.updateHref(),this.subscribeToNavigationEventsIfNecessary()),this.onChanges.next(this)}routerLinkInput=null;set routerLink(e){e==null?(this.routerLinkInput=null,this.setTabIndexIfNotOnNativeEl(null)):(ec(e)?this.routerLinkInput=e:this.routerLinkInput=Array.isArray(e)?e:[e],this.setTabIndexIfNotOnNativeEl("0"))}onClick(e,i,r,o,a){let s=this.urlTree;if(s===null||this.isAnchorElement&&(e!==0||i||r||o||a||typeof this.target=="string"&&this.target!="_self"))return!0;let l={skipLocationChange:this.skipLocationChange,replaceUrl:this.replaceUrl,state:this.state,info:this.info};return this.router.navigateByUrl(s,l)?.catch(c=>{this.applicationErrorHandler(c)}),!this.isAnchorElement}ngOnDestroy(){this.subscription?.unsubscribe()}updateHref(){let e=this.urlTree;this.reactiveHref.set(e!==null&&this.locationStrategy?this.locationStrategy?.prepareExternalUrl(this.router.serializeUrl(e))??"":null)}applyAttributeValue(e,i){let r=this.renderer,o=this.el.nativeElement;i!==null?r.setAttribute(o,e,i):r.removeAttribute(o,e)}get urlTree(){return this.routerLinkInput===null?null:ec(this.routerLinkInput)?this.routerLinkInput:this.router.createUrlTree(this.routerLinkInput,{relativeTo:this.relativeTo!==void 0?this.relativeTo:this.route,queryParams:this.queryParams,fragment:this.fragment,queryParamsHandling:this.queryParamsHandling,preserveFragment:this.preserveFragment})}static \u0275fac=function(i){return new(i||t)(_e(Re),_e(wi),qp("tabindex"),_e(je),_e(q),_e(Ea))};static \u0275dir=F({type:t,selectors:[["","routerLink",""]],hostVars:2,hostBindings:function(i,r){i&1&&S("click",function(a){return r.onClick(a.button,a.ctrlKey,a.shiftKey,a.altKey,a.metaKey)}),i&2&&X("href",r.reactiveHref(),sM)("target",r.target)},inputs:{target:"target",queryParams:"queryParams",fragment:"fragment",queryParamsHandling:"queryParamsHandling",state:"state",info:"info",relativeTo:"relativeTo",preserveFragment:[2,"preserveFragment","preserveFragment",V],skipLocationChange:[2,"skipLocationChange","skipLocationChange",V],replaceUrl:[2,"replaceUrl","replaceUrl",V],routerLink:"routerLink"},features:[Ae]})}return t})(),zd=(()=>{class t{router;element;renderer;cdr;link;links;classes=[];routerEventsSubscription;linkInputChangesSubscription;_isActive=!1;get isActive(){return this._isActive}routerLinkActiveOptions={exact:!1};ariaCurrentWhenActive;isActiveChange=new U;constructor(e,i,r,o,a){this.router=e,this.element=i,this.renderer=r,this.cdr=o,this.link=a,this.routerEventsSubscription=e.events.subscribe(s=>{s instanceof vi&&this.update()})}ngAfterContentInit(){Q(this.links.changes,Q(null)).pipe(uo()).subscribe(e=>{this.update(),this.subscribeToEachLinkOnChanges()})}subscribeToEachLinkOnChanges(){this.linkInputChangesSubscription?.unsubscribe();let e=[...this.links.toArray(),this.link].filter(i=>!!i).map(i=>i.onChanges);this.linkInputChangesSubscription=Ot(e).pipe(uo()).subscribe(i=>{this._isActive!==this.isLinkActive(this.router)(i)&&this.update()})}set routerLinkActive(e){let i=Array.isArray(e)?e:e.split(" ");this.classes=i.filter(r=>!!r)}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(i=>{e?this.renderer.addClass(this.element.nativeElement,i):this.renderer.removeClass(this.element.nativeElement,i)}),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 i=EK(this.routerLinkActiveOptions)?this.routerLinkActiveOptions:this.routerLinkActiveOptions.exact||!1;return r=>{let o=r.urlTree;return o?e.isActive(o,i):!1}}hasActiveLinks(){let e=this.isLinkActive(this.router);return this.link&&e(this.link)||this.links.some(e)}static \u0275fac=function(i){return new(i||t)(_e(Re),_e(q),_e(je),_e(ye),_e(Nn,8))};static \u0275dir=F({type:t,selectors:[["","routerLinkActive",""]],contentQueries:function(i,r,o){if(i&1&&xe(o,Nn,5),i&2){let a;B(a=j())&&(r.links=a)}},inputs:{routerLinkActiveOptions:"routerLinkActiveOptions",ariaCurrentWhenActive:"ariaCurrentWhenActive",routerLinkActive:"routerLinkActive"},outputs:{isActiveChange:"isActiveChange"},exportAs:["routerLinkActive"],features:[Ae]})}return t})();function EK(t){return!!t.paths}var Bf=class{};var JN=(()=>{class t{router;injector;preloadingStrategy;loader;subscription;constructor(e,i,r,o){this.router=e,this.injector=i,this.preloadingStrategy=r,this.loader=o}setUpPreloading(){this.subscription=this.router.events.pipe(ce(e=>e instanceof vi),Ao(()=>this.preload())).subscribe(()=>{})}preload(){return this.processRoutes(this.injector,this.router.config)}ngOnDestroy(){this.subscription&&this.subscription.unsubscribe()}processRoutes(e,i){let r=[];for(let o of i){o.providers&&!o._injector&&(o._injector=vm(o.providers,e,`Route: ${o.path}`));let a=o._injector??e,s=o._loadedInjector??a;(o.loadChildren&&!o._loadedRoutes&&o.canLoad===void 0||o.loadComponent&&!o._loadedComponent)&&r.push(this.preloadConfig(a,o)),(o.children||o._loadedRoutes)&&r.push(this.processRoutes(s,o.children??o._loadedRoutes))}return Ot(r).pipe(uo())}preloadConfig(e,i){return this.preloadingStrategy.preload(i,()=>{let r;i.loadChildren&&i.canLoad===void 0?r=this.loader.loadChildren(e,i):r=Q(null);let o=r.pipe(Mt(a=>a===null?Q(void 0):(i._loadedRoutes=a.routes,i._loadedInjector=a.injector,this.processRoutes(a.injector??e,a.routes))));if(i.loadComponent&&!i._loadedComponent){let a=this.loader.loadComponent(e,i);return Ot([o,a]).pipe(uo())}else return o})}static \u0275fac=function(i){return new(i||t)(pe(Re),pe(Wt),pe(Bf),pe(E0))};static \u0275prov=O({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),rk=new T(""),eL=(()=>{class t{urlSerializer;transitions;viewportScroller;zone;options;routerEventsSubscription;scrollEventsSubscription;lastId=0;lastSource=Pm;restoredId=0;store={};constructor(e,i,r,o,a={}){this.urlSerializer=e,this.transitions=i,this.viewportScroller=r,this.zone=o,this.options=a,a.scrollPositionRestoration||="disabled",a.anchorScrolling||="disabled"}init(){this.options.scrollPositionRestoration!=="disabled"&&this.viewportScroller.setHistoryScrollRestoration("manual"),this.routerEventsSubscription=this.createScrollEvents(),this.scrollEventsSubscription=this.consumeScrollEvents()}createScrollEvents(){return this.transitions.events.subscribe(e=>{e instanceof ps?(this.store[this.lastId]=this.viewportScroller.getScrollPosition(),this.lastSource=e.navigationTrigger,this.restoredId=e.restoredState?e.restoredState.navigationId:0):e instanceof vi?(this.lastId=e.id,this.scheduleScrollEvent(e,this.urlSerializer.parse(e.urlAfterRedirects).fragment)):e instanceof fs&&e.code===Nm.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 Lm))return;let i={behavior:"instant"};e.position?this.options.scrollPositionRestoration==="top"?this.viewportScroller.scrollToPosition([0,0],i):this.options.scrollPositionRestoration==="enabled"&&this.viewportScroller.scrollToPosition(e.position,i):e.anchor&&this.options.anchorScrolling==="enabled"?this.viewportScroller.scrollToAnchor(e.anchor):this.options.scrollPositionRestoration!=="disabled"&&this.viewportScroller.scrollToPosition([0,0])})}scheduleScrollEvent(e,i){this.zone.runOutsideAngular(()=>fn(this,null,function*(){yield new Promise(r=>{setTimeout(r),typeof requestAnimationFrame<"u"&&requestAnimationFrame(r)}),this.zone.run(()=>{this.transitions.events.next(new Lm(e,this.lastSource==="popstate"?this.store[this.restoredId]:null,i))})}))}ngOnDestroy(){this.routerEventsSubscription?.unsubscribe(),this.scrollEventsSubscription?.unsubscribe()}static \u0275fac=function(i){Ad()};static \u0275prov=O({token:t,factory:t.\u0275fac})}return t})();function ok(t,...n){return zr([{provide:Hd,multi:!0,useValue:t},[],{provide:wi,useFactory:tL,deps:[Re]},{provide:nf,multi:!0,useFactory:iL},n.map(e=>e.\u0275providers)])}function tL(t){return t.routerState.root}function Um(t,n){return{\u0275kind:t,\u0275providers:n}}function ak(t={}){return Um(4,[{provide:rk,useFactory:()=>{let e=u(h1),i=u(ae),r=u(Vf),o=u(ic);return new eL(o,r,e,i,t)}}])}function iL(){let t=u(de);return n=>{let e=t.get(Gn);if(n!==e.components[0])return;let i=t.get(Re),r=t.get(nL);t.get(sk)===1&&i.initialNavigation(),t.get(aL,null,{optional:!0})?.setUpPreloading(),t.get(rk,null,{optional:!0})?.init(),i.resetRootComponentType(e.componentTypes[0]),r.closed||(r.next(),r.complete(),r.unsubscribe())}}var nL=new T("",{factory:()=>new z}),sk=new T("",{providedIn:"root",factory:()=>1});function rL(){let t=[{provide:lv,useValue:!0},{provide:sk,useValue:0},Ql(()=>{let n=u(de);return n.get(JM,Promise.resolve()).then(()=>new Promise(i=>{let r=n.get(Re),o=n.get(nL);k0(r,()=>{i(!0)}),n.get(Vf).afterPreactivation=()=>(i(!0),o.closed?Q(void 0):o),r.initialNavigation()}))})];return Um(2,t)}function oL(){let t=[Ql(()=>{u(Re).setUpLocationChangeListener()}),{provide:sk,useValue:2}];return Um(3,t)}var aL=new T("");function sL(t){return Um(0,[{provide:aL,useExisting:JN},{provide:Bf,useExisting:t}])}function S0(){return Um(8,[K1,{provide:Nf,useExisting:K1}])}function lL(t){cs("NgRouterViewTransitions");let n=[{provide:ek,useValue:KN},{provide:tk,useValue:M({skipNextTransition:!!t?.skipInitialTransition},t)}];return Um(9,n)}var cL=[us,{provide:ic,useClass:Jl},Re,jd,{provide:wi,useFactory:tL,deps:[Re]},E0,[]],lk=(()=>{class t{constructor(){}static forRoot(e,i){return{ngModule:t,providers:[cL,[],{provide:Hd,multi:!0,useValue:e},[],i?.errorHandler?{provide:ik,useValue:i.errorHandler}:[],{provide:nc,useValue:i||{}},i?.useHash?kK():SK(),MK(),i?.preloadingStrategy?sL(i.preloadingStrategy).\u0275providers:[],i?.initialNavigation?TK(i):[],i?.bindToComponentInputs?S0().\u0275providers:[],i?.enableViewTransitions?lL().\u0275providers:[],IK()]}}static forChild(e){return{ngModule:t,providers:[{provide:Hd,multi:!0,useValue:e}]}}static \u0275fac=function(i){return new(i||t)};static \u0275mod=ee({type:t});static \u0275inj=J({})}return t})();function MK(){return{provide:rk,useFactory:()=>{let t=u(h1),n=u(ae),e=u(nc),i=u(Vf),r=u(ic);return e.scrollOffset&&t.setOffset(e.scrollOffset),new eL(r,i,t,n,e)}}}function kK(){return{provide:Ea,useClass:l1}}function SK(){return{provide:Ea,useClass:Fv}}function TK(t){return[t.initialNavigation==="disabled"?oL().\u0275providers:[],t.initialNavigation==="enabledBlocking"?rL().\u0275providers:[]]}var nk=new T("");function IK(){return[{provide:nk,useFactory:iL},{provide:nf,multi:!0,useExisting:nk}]}var dk=class{validateSignature(n){return Promise.resolve(null)}validateAtHash(n){return Promise.resolve(!0)}},T0=class{};var jf=class{},AK=(()=>{let n=class n extends jf{now(){return Date.now()}new(){return new Date}};n.\u0275fac=(()=>{let i;return function(o){return(i||(i=fe(n)))(o||n)}})(),n.\u0275prov=O({token:n,factory:n.\u0275fac});let t=n;return t})();var I0=class{},A0=class{},OK=(()=>{let n=class n{constructor(){this.data=new Map}getItem(i){return this.data.get(i)}removeItem(i){this.data.delete(i)}setItem(i,r){this.data.set(i,r)}};n.\u0275fac=function(r){return new(r||n)},n.\u0275prov=O({token:n,factory:n.\u0275fac});let t=n;return t})();var Hf=class{constructor(n){this.type=n}},Rr=class extends Hf{constructor(n,e=null){super(n),this.info=e}},Ia=class extends Hf{constructor(n,e=null){super(n),this.info=e}},Ui=class extends Hf{constructor(n,e,i=null){super(n),this.reason=e,this.params=i}};function uL(t){let n=t.replace(/-/g,"+").replace(/_/g,"/");return decodeURIComponent(atob(n).split("").map(function(e){return"%"+("00"+e.charCodeAt(0).toString(16)).slice(-2)}).join(""))}function mL(t){return btoa(t).replace(/\+/g,"-").replace(/\//g,"_").replace(/=/g,"")}var $m=class{constructor(n){this.clientId="",this.redirectUri="",this.postLogoutRedirectUri="",this.redirectUriAsPostLogoutRedirectUriFallback=!0,this.loginUrl="",this.scope="openid profile",this.resource="",this.rngUrl="",this.oidc=!0,this.requestAccessToken=!0,this.options=null,this.issuer="",this.logoutUrl="",this.clearHashAfterLogin=!0,this.tokenEndpoint=null,this.revocationEndpoint=null,this.customTokenParameters=[],this.userinfoEndpoint=null,this.responseType="",this.showDebugInformation=!1,this.silentRefreshRedirectUri="",this.silentRefreshMessagePrefix="",this.silentRefreshShowIFrame=!1,this.siletRefreshTimeout=1e3*20,this.silentRefreshTimeout=1e3*20,this.dummyClientSecret="",this.requireHttps="remoteOnly",this.strictDiscoveryDocumentValidation=!0,this.jwks=null,this.customQueryParams=null,this.silentRefreshIFrameName="angular-oauth-oidc-silent-refresh-iframe",this.timeoutFactor=.75,this.sessionChecksEnabled=!1,this.sessionCheckIntervall=3*1e3,this.sessionCheckIFrameUrl=null,this.sessionCheckIFrameName="angular-oauth-oidc-check-session-iframe",this.disableAtHashCheck=!1,this.skipSubjectCheck=!1,this.useIdTokenHintForSilentRefresh=!1,this.skipIssuerCheck=!1,this.nonceStateSeparator=";",this.useHttpBasicAuth=!1,this.decreaseExpirationBySec=0,this.waitForTokenInMsec=0,this.disablePKCE=!1,this.preserveRequestedRoute=!1,this.disableIdTokenTimer=!1,this.checkOrigin=!1,this.openUri=e=>{location.href=e},n&&Object.assign(this,n)}},Ud=class{encodeKey(n){return encodeURIComponent(n)}encodeValue(n){return encodeURIComponent(n)}decodeKey(n){return decodeURIComponent(n)}decodeValue(n){return decodeURIComponent(n)}},O0=class{};var hL=(()=>{let n=class n{getHashFragmentParams(i){let r=i||window.location.hash;if(r=decodeURIComponent(r),r.indexOf("#")!==0)return{};let o=r.indexOf("?");return o>-1?r=r.substr(o+1):r=r.substr(1),this.parseQueryString(r)}parseQueryString(i){let r={},o,a,s,l,c,d;if(i===null)return r;let m=i.split("&");for(let f=0;f=64;){for(o=n[0],a=n[1],s=n[2],l=n[3],c=n[4],d=n[5],m=n[6],f=n[7],v=0;v<16;v++)w=i+v*4,t[v]=(e[w]&255)<<24|(e[w+1]&255)<<16|(e[w+2]&255)<<8|e[w+3]&255;for(v=16;v<64;v++)b=t[v-2],x=(b>>>17|b<<15)^(b>>>19|b<<13)^b>>>10,b=t[v-15],D=(b>>>7|b<<25)^(b>>>18|b<<14)^b>>>3,t[v]=(x+t[v-7]|0)+(D+t[v-16]|0);for(v=0;v<64;v++)x=(((c>>>6|c<<26)^(c>>>11|c<<21)^(c>>>25|c<<7))+(c&d^~c&m)|0)+(f+(PK[v]+t[v]|0)|0)|0,D=((o>>>2|o<<30)^(o>>>13|o<<19)^(o>>>22|o<<10))+(o&a^o&s^a&s)|0,f=m,m=d,d=c,c=l+x|0,l=s,s=a,a=o,o=x+D|0;n[0]+=o,n[1]+=a,n[2]+=s,n[3]+=l,n[4]+=c,n[5]+=d,n[6]+=m,n[7]+=f,i+=64,r-=64}return i}var uk=class{constructor(){this.digestLength=pL,this.blockSize=RK,this.state=new Int32Array(8),this.temp=new Int32Array(64),this.buffer=new Uint8Array(128),this.bufferLength=0,this.bytesHashed=0,this.finished=!1,this.reset()}reset(){return this.state[0]=1779033703,this.state[1]=3144134277,this.state[2]=1013904242,this.state[3]=2773480762,this.state[4]=1359893119,this.state[5]=2600822924,this.state[6]=528734635,this.state[7]=1541459225,this.bufferLength=0,this.bytesHashed=0,this.finished=!1,this}clean(){for(let n=0;n0){for(;this.bufferLength<64&&e>0;)this.buffer[this.bufferLength++]=n[i++],e--;this.bufferLength===64&&(ck(this.temp,this.state,this.buffer,0,64),this.bufferLength=0)}for(e>=64&&(i=ck(this.temp,this.state,n,i,e),e%=64);e>0;)this.buffer[this.bufferLength++]=n[i++],e--;return this}finish(n){if(!this.finished){let e=this.bytesHashed,i=this.bufferLength,r=e/536870912|0,o=e<<3,a=e%64<56?64:128;this.buffer[i]=128;for(let s=i+1;s>>24&255,this.buffer[a-7]=r>>>16&255,this.buffer[a-6]=r>>>8&255,this.buffer[a-5]=r>>>0&255,this.buffer[a-4]=o>>>24&255,this.buffer[a-3]=o>>>16&255,this.buffer[a-2]=o>>>8&255,this.buffer[a-1]=o>>>0&255,ck(this.temp,this.state,this.buffer,0,a),this.finished=!0}for(let e=0;e<8;e++)n[e*4+0]=this.state[e]>>>24&255,n[e*4+1]=this.state[e]>>>16&255,n[e*4+2]=this.state[e]>>>8&255,n[e*4+3]=this.state[e]>>>0&255;return this}digest(){let n=new Uint8Array(this.digestLength);return this.finish(n),n}_saveState(n){for(let e=0;e{let n=class n{calcHash(i,r){return fn(this,null,function*(){return LK(FK(NK(i)))})}toHashString2(i){let r="";for(let o of i)r+=String.fromCharCode(o);return r}toHashString(i){let r=new Uint8Array(i),o="";for(let a of r)o+=String.fromCharCode(a);return o}};n.\u0275fac=function(r){return new(r||n)},n.\u0275prov=O({token:n,factory:n.\u0275fac});let t=n;return t})(),Wm=(()=>{let n=class n extends $m{constructor(i,r,o,a,s,l,c,d,m,f){super(),this.ngZone=i,this.http=r,this.config=s,this.urlHelper=l,this.logger=c,this.crypto=d,this.dateTimeService=f,this.discoveryDocumentLoaded=!1,this.state="",this.eventsSubject=new z,this.discoveryDocumentLoadedSubject=new z,this.grantTypesSupported=[],this.inImplicitFlow=!1,this.saveNoncesInLocalStorage=!1,this.debug("angular-oauth2-oidc v10"),this.document=m,s||(s={}),this.discoveryDocumentLoaded$=this.discoveryDocumentLoadedSubject.asObservable(),this.events=this.eventsSubject.asObservable(),a&&(this.tokenValidationHandler=a),s&&this.configure(s);try{o?this.setStorage(o):typeof sessionStorage<"u"&&this.setStorage(sessionStorage)}catch(b){console.error("No OAuthStorage provided and cannot access default (sessionStorage).Consider providing a custom OAuthStorage implementation in your module.",b)}if(this.checkLocalStorageAccessable()){let b=window?.navigator?.userAgent;(b?.includes("MSIE ")||b?.includes("Trident"))&&(this.saveNoncesInLocalStorage=!0)}this.setupRefreshTimer()}checkLocalStorageAccessable(){if(typeof window>"u")return!1;let i="test";try{return typeof window.localStorage>"u"?!1:(localStorage.setItem(i,i),localStorage.removeItem(i),!0)}catch{return!1}}configure(i){Object.assign(this,new $m,i),this.config=Object.assign({},new $m,i),this.sessionChecksEnabled&&this.setupSessionCheck(),this.configChanged()}configChanged(){this.setupRefreshTimer()}restartSessionChecksIfStillLoggedIn(){this.hasValidIdToken()&&this.initSessionCheck()}restartRefreshTimerIfStillLoggedIn(){this.setupExpirationTimers()}setupSessionCheck(){this.events.pipe(ce(i=>i.type==="token_received")).subscribe(()=>{this.initSessionCheck()})}setupAutomaticSilentRefresh(i={},r,o=!0){let a=!0;this.clearAutomaticRefreshTimer(),this.automaticRefreshSubscription=this.events.pipe(Be(s=>{s.type==="token_received"?a=!0:s.type==="logout"&&(a=!1)}),ce(s=>s.type==="token_expires"&&(r==null||r==="any"||s.info===r)),Rt(1e3)).subscribe(()=>{a&&this.refreshInternal(i,o).catch(()=>{this.debug("Automatic silent refresh did not work")})}),this.restartRefreshTimerIfStillLoggedIn()}refreshInternal(i,r){return!this.useSilentRefresh&&this.responseType==="code"?this.refreshToken():this.silentRefresh(i,r)}loadDiscoveryDocumentAndTryLogin(i=null){return this.loadDiscoveryDocument().then(()=>this.tryLogin(i))}loadDiscoveryDocumentAndLogin(i=null){return i=i||{},this.loadDiscoveryDocumentAndTryLogin(i).then(()=>{if(!this.hasValidIdToken()||!this.hasValidAccessToken()){let r=typeof i.state=="string"?i.state:"";return this.initLoginFlow(r),!1}else return!0})}debug(...i){this.showDebugInformation&&this.logger.debug(...i)}validateUrlFromDiscoveryDocument(i){let r=[],o=this.validateUrlForHttps(i),a=this.validateUrlAgainstIssuer(i);return o||r.push("https for all urls required. Also for urls received by discovery."),a||r.push("Every url in discovery document has to start with the issuer url.Also see property strictDiscoveryDocumentValidation."),r}validateUrlForHttps(i){if(!i)return!0;let r=i.toLowerCase();return this.requireHttps===!1||(r.match(/^http:\/\/localhost($|[:/])/)||r.match(/^http:\/\/localhost($|[:/])/))&&this.requireHttps==="remoteOnly"?!0:r.startsWith("https://")}assertUrlNotNullAndCorrectProtocol(i,r){if(!i)throw new Error(`'${r}' should not be null`);if(!this.validateUrlForHttps(i))throw new Error(`'${r}' must use HTTPS (with TLS), or config value for property 'requireHttps' must be set to 'false' and allow HTTP (without TLS).`)}validateUrlAgainstIssuer(i){return!this.strictDiscoveryDocumentValidation||!i?!0:i.toLowerCase().startsWith(this.issuer.toLowerCase())}setupRefreshTimer(){if(typeof window>"u"){this.debug("timer not supported on this plattform");return}(this.hasValidIdToken()||this.hasValidAccessToken())&&(this.clearAccessTokenTimer(),this.clearIdTokenTimer(),this.setupExpirationTimers()),this.tokenReceivedSubscription&&this.tokenReceivedSubscription.unsubscribe(),this.tokenReceivedSubscription=this.events.pipe(ce(i=>i.type==="token_received")).subscribe(()=>{this.clearAccessTokenTimer(),this.clearIdTokenTimer(),this.setupExpirationTimers()})}setupExpirationTimers(){this.hasValidAccessToken()&&this.setupAccessTokenTimer(),!this.disableIdTokenTimer&&this.hasValidIdToken()&&this.setupIdTokenTimer()}setupAccessTokenTimer(){let i=this.getAccessTokenExpiration(),r=this.getAccessTokenStoredAt(),o=this.calcTimeout(r,i);this.ngZone.runOutsideAngular(()=>{this.accessTokenTimeoutSubscription=Q(new Ia("token_expires","access_token")).pipe(pa(o)).subscribe(a=>{this.ngZone.run(()=>{this.eventsSubject.next(a)})})})}setupIdTokenTimer(){let i=this.getIdTokenExpiration(),r=this.getIdTokenStoredAt(),o=this.calcTimeout(r,i);this.ngZone.runOutsideAngular(()=>{this.idTokenTimeoutSubscription=Q(new Ia("token_expires","id_token")).pipe(pa(o)).subscribe(a=>{this.ngZone.run(()=>{this.eventsSubject.next(a)})})})}stopAutomaticRefresh(){this.clearAccessTokenTimer(),this.clearIdTokenTimer(),this.clearAutomaticRefreshTimer()}clearAccessTokenTimer(){this.accessTokenTimeoutSubscription&&this.accessTokenTimeoutSubscription.unsubscribe()}clearIdTokenTimer(){this.idTokenTimeoutSubscription&&this.idTokenTimeoutSubscription.unsubscribe()}clearAutomaticRefreshTimer(){this.automaticRefreshSubscription&&this.automaticRefreshSubscription.unsubscribe()}calcTimeout(i,r){let o=this.dateTimeService.now(),a=(r-i)*this.timeoutFactor-(o-i),s=Math.max(0,a),l=2147483647;return s>l?l:s}setStorage(i){this._storage=i,this.configChanged()}loadDiscoveryDocument(i=null){return new Promise((r,o)=>{if(i||(i=this.issuer||"",i.endsWith("/")||(i+="/"),i+=".well-known/openid-configuration"),!this.validateUrlForHttps(i)){o("issuer must use HTTPS (with TLS), or config value for property 'requireHttps' must be set to 'false' and allow HTTP (without TLS).");return}this.http.get(i).subscribe(a=>{if(!this.validateDiscoveryDocument(a)){this.eventsSubject.next(new Ui("discovery_document_validation_error",null)),o("discovery_document_validation_error");return}this.loginUrl=a.authorization_endpoint,this.logoutUrl=a.end_session_endpoint||this.logoutUrl,this.grantTypesSupported=a.grant_types_supported,this.issuer=a.issuer,this.tokenEndpoint=a.token_endpoint,this.userinfoEndpoint=a.userinfo_endpoint||this.userinfoEndpoint,this.jwksUri=a.jwks_uri,this.sessionCheckIFrameUrl=a.check_session_iframe||this.sessionCheckIFrameUrl,this.discoveryDocumentLoaded=!0,this.discoveryDocumentLoadedSubject.next(a),this.revocationEndpoint=a.revocation_endpoint||this.revocationEndpoint,this.sessionChecksEnabled&&this.restartSessionChecksIfStillLoggedIn(),this.loadJwks().then(s=>{let l={discoveryDocument:a,jwks:s},c=new Rr("discovery_document_loaded",l);this.eventsSubject.next(c),r(c)}).catch(s=>{this.eventsSubject.next(new Ui("discovery_document_load_error",s)),o(s)})},a=>{this.logger.error("error loading discovery document",a),this.eventsSubject.next(new Ui("discovery_document_load_error",a)),o(a)})})}loadJwks(){return new Promise((i,r)=>{this.jwksUri?this.http.get(this.jwksUri).subscribe(o=>{this.jwks=o,i(o)},o=>{this.logger.error("error loading jwks",o),this.eventsSubject.next(new Ui("jwks_load_error",o)),r(o)}):i(null)})}validateDiscoveryDocument(i){let r;return!this.skipIssuerCheck&&i.issuer!==this.issuer?(this.logger.error("invalid issuer in discovery document","expected: "+this.issuer,"current: "+i.issuer),!1):(r=this.validateUrlFromDiscoveryDocument(i.authorization_endpoint),r.length>0?(this.logger.error("error validating authorization_endpoint in discovery document",r),!1):(r=this.validateUrlFromDiscoveryDocument(i.end_session_endpoint),r.length>0?(this.logger.error("error validating end_session_endpoint in discovery document",r),!1):(r=this.validateUrlFromDiscoveryDocument(i.token_endpoint),r.length>0&&this.logger.error("error validating token_endpoint in discovery document",r),r=this.validateUrlFromDiscoveryDocument(i.revocation_endpoint),r.length>0&&this.logger.error("error validating revocation_endpoint in discovery document",r),r=this.validateUrlFromDiscoveryDocument(i.userinfo_endpoint),r.length>0?(this.logger.error("error validating userinfo_endpoint in discovery document",r),!1):(r=this.validateUrlFromDiscoveryDocument(i.jwks_uri),r.length>0?(this.logger.error("error validating jwks_uri in discovery document",r),!1):(this.sessionChecksEnabled&&!i.check_session_iframe&&this.logger.warn("sessionChecksEnabled is activated but discovery document does not contain a check_session_iframe field"),!0)))))}fetchTokenUsingPasswordFlowAndLoadUserProfile(i,r,o=new _r){return this.fetchTokenUsingPasswordFlow(i,r,o).then(()=>this.loadUserProfile())}loadUserProfile(){if(!this.hasValidAccessToken())throw new Error("Can not load User Profile without access_token");if(!this.validateUrlForHttps(this.userinfoEndpoint))throw new Error("userinfoEndpoint must use HTTPS (with TLS), or config value for property 'requireHttps' must be set to 'false' and allow HTTP (without TLS).");return new Promise((i,r)=>{let o=new _r().set("Authorization","Bearer "+this.getAccessToken());this.http.get(this.userinfoEndpoint,{headers:o,observe:"response",responseType:"text"}).subscribe(a=>{if(this.debug("userinfo received",JSON.stringify(a)),a.headers.get("content-type").startsWith("application/json")){let s=JSON.parse(a.body),l=this.getIdentityClaims()||{};if(!this.skipSubjectCheck&&this.oidc&&(!l.sub||s.sub!==l.sub)){r(`if property oidc is true, the received user-id (sub) has to be the user-id of the user that has logged in with oidc. +if you are not using oidc but just oauth2 password flow set oidc to false`);return}s=Object.assign({},l,s),this._storage.setItem("id_token_claims_obj",JSON.stringify(s)),this.eventsSubject.next(new Rr("user_profile_loaded")),i({info:s})}else this.debug("userinfo is not JSON, treating it as JWE/JWS"),this.eventsSubject.next(new Rr("user_profile_loaded")),i(JSON.parse(a.body))},a=>{this.logger.error("error loading user info",a),this.eventsSubject.next(new Ui("user_profile_load_error",a)),r(a)})})}fetchTokenUsingPasswordFlow(i,r,o=new _r){let a={username:i,password:r};return this.fetchTokenUsingGrant("password",a,o)}fetchTokenUsingGrant(i,r,o=new _r){this.assertUrlNotNullAndCorrectProtocol(this.tokenEndpoint,"tokenEndpoint");let a=new Qn({encoder:new Ud}).set("grant_type",i).set("scope",this.scope);if(this.useHttpBasicAuth){let s=btoa(`${this.clientId}:${this.dummyClientSecret}`);o=o.set("Authorization","Basic "+s)}if(this.useHttpBasicAuth||(a=a.set("client_id",this.clientId)),!this.useHttpBasicAuth&&this.dummyClientSecret&&(a=a.set("client_secret",this.dummyClientSecret)),this.customQueryParams)for(let s of Object.getOwnPropertyNames(this.customQueryParams))a=a.set(s,this.customQueryParams[s]);for(let s of Object.keys(r))a=a.set(s,r[s]);return o=o.set("Content-Type","application/x-www-form-urlencoded"),new Promise((s,l)=>{this.http.post(this.tokenEndpoint,a,{headers:o}).subscribe(c=>{this.debug("tokenResponse",c),this.storeAccessTokenResponse(c.access_token,c.refresh_token,c.expires_in||this.fallbackAccessTokenExpirationTimeInSec,c.scope,this.extractRecognizedCustomParameters(c)),this.oidc&&c.id_token&&this.processIdToken(c.id_token,c.access_token).then(d=>{this.storeIdToken(d),s(c)}),this.eventsSubject.next(new Rr("token_received")),s(c)},c=>{this.logger.error("Error performing ${grantType} flow",c),this.eventsSubject.next(new Ui("token_error",c)),l(c)})})}refreshToken(){return this.assertUrlNotNullAndCorrectProtocol(this.tokenEndpoint,"tokenEndpoint"),new Promise((i,r)=>{let o=new Qn({encoder:new Ud}).set("grant_type","refresh_token").set("scope",this.scope).set("refresh_token",this._storage.getItem("refresh_token")),a=new _r().set("Content-Type","application/x-www-form-urlencoded");if(this.useHttpBasicAuth){let s=btoa(`${this.clientId}:${this.dummyClientSecret}`);a=a.set("Authorization","Basic "+s)}if(this.useHttpBasicAuth||(o=o.set("client_id",this.clientId)),!this.useHttpBasicAuth&&this.dummyClientSecret&&(o=o.set("client_secret",this.dummyClientSecret)),this.customQueryParams)for(let s of Object.getOwnPropertyNames(this.customQueryParams))o=o.set(s,this.customQueryParams[s]);this.http.post(this.tokenEndpoint,o,{headers:a}).pipe($e(s=>this.oidc&&s.id_token?Ot(this.processIdToken(s.id_token,s.access_token,!0)).pipe(Be(l=>this.storeIdToken(l)),se(()=>s)):Q(s))).subscribe(s=>{this.debug("refresh tokenResponse",s),this.storeAccessTokenResponse(s.access_token,s.refresh_token,s.expires_in||this.fallbackAccessTokenExpirationTimeInSec,s.scope,this.extractRecognizedCustomParameters(s)),this.eventsSubject.next(new Rr("token_received")),this.eventsSubject.next(new Rr("token_refreshed")),i(s)},s=>{this.logger.error("Error refreshing token",s),this.eventsSubject.next(new Ui("token_refresh_error",s)),r(s)})})}removeSilentRefreshEventListener(){this.silentRefreshPostMessageEventListener&&(window.removeEventListener("message",this.silentRefreshPostMessageEventListener),this.silentRefreshPostMessageEventListener=null)}setupSilentRefreshEventListener(){this.removeSilentRefreshEventListener(),this.silentRefreshPostMessageEventListener=i=>{let r=this.processMessageEventMessage(i);this.checkOrigin&&i.origin!==location.origin&&console.error("wrong origin requested silent refresh!"),this.tryLogin({customHashFragment:r,preventClearHashAfterLogin:!0,customRedirectUri:this.silentRefreshRedirectUri||this.redirectUri}).catch(o=>this.debug("tryLogin during silent refresh failed",o))},window.addEventListener("message",this.silentRefreshPostMessageEventListener)}silentRefresh(i={},r=!0){let o=this.getIdentityClaims()||{};if(this.useIdTokenHintForSilentRefresh&&this.hasValidIdToken()&&(i.id_token_hint=this.getIdToken()),!this.validateUrlForHttps(this.loginUrl))throw new Error("loginUrl must use HTTPS (with TLS), or config value for property 'requireHttps' must be set to 'false' and allow HTTP (without TLS).");if(typeof this.document>"u")throw new Error("silent refresh is not supported on this platform");let a=this.document.getElementById(this.silentRefreshIFrameName);a&&this.document.body.removeChild(a),this.silentRefreshSubject=o.sub;let s=this.document.createElement("iframe");s.id=this.silentRefreshIFrameName,this.setupSilentRefreshEventListener();let l=this.silentRefreshRedirectUri||this.redirectUri;this.createLoginUrl(null,null,l,r,i).then(f=>{s.setAttribute("src",f),this.silentRefreshShowIFrame||(s.style.display="none"),this.document.body.appendChild(s)});let c=this.events.pipe(ce(f=>f instanceof Ui),gn()),d=this.events.pipe(ce(f=>f.type==="token_received"),gn()),m=Q(new Ui("silent_refresh_timeout",null)).pipe(pa(this.silentRefreshTimeout));return Wu([c,d,m]).pipe(se(f=>{if(f instanceof Ui)throw f.type==="silent_refresh_timeout"?this.eventsSubject.next(f):(f=new Ui("silent_refresh_error",f),this.eventsSubject.next(f)),f;return f.type==="token_received"&&(f=new Rr("silently_refreshed"),this.eventsSubject.next(f)),f})).toPromise()}initImplicitFlowInPopup(i){return this.initLoginFlowInPopup(i)}initLoginFlowInPopup(i){return i=i||{},this.createLoginUrl(null,null,this.silentRefreshRedirectUri,!1,{display:"popup"}).then(r=>new Promise((o,a)=>{let l=null;i.windowRef?i.windowRef&&!i.windowRef.closed&&(l=i.windowRef,l.location.href=r):l=window.open(r,"ngx-oauth2-oidc-login",this.calculatePopupFeatures(i));let c,d=w=>{this.tryLogin({customHashFragment:w,preventClearHashAfterLogin:!0,customRedirectUri:this.silentRefreshRedirectUri}).then(()=>{f(),o(!0)},x=>{f(),a(x)})},m=()=>{(!l||l.closed)&&(f(),a(new Ui("popup_closed",{})))};l?c=window.setInterval(m,500):a(new Ui("popup_blocked",{}));let f=()=>{window.clearInterval(c),window.removeEventListener("storage",v),window.removeEventListener("message",b),l!==null&&l.close(),l=null},b=w=>{let x=this.processMessageEventMessage(w);x&&x!==null?(window.removeEventListener("storage",v),d(x)):console.log("false event firing")},v=w=>{w.key==="auth_hash"&&(window.removeEventListener("message",b),d(w.newValue))};window.addEventListener("message",b),window.addEventListener("storage",v)}))}calculatePopupFeatures(i){let r=i.height||470,o=i.width||500,a=window.screenLeft+(window.outerWidth-o)/2,s=window.screenTop+(window.outerHeight-r)/2;return`location=no,toolbar=no,width=${o},height=${r},top=${s},left=${a}`}processMessageEventMessage(i){let r="#";if(this.silentRefreshMessagePrefix&&(r+=this.silentRefreshMessagePrefix),!i||!i.data||typeof i.data!="string")return;let o=i.data;if(o.startsWith(r))return"#"+o.substr(r.length)}canPerformSessionCheck(){return this.sessionChecksEnabled?this.sessionCheckIFrameUrl?this.getSessionState()?!(typeof this.document>"u"):(console.warn("sessionChecksEnabled is activated but there is no session_state"),!1):(console.warn("sessionChecksEnabled is activated but there is no sessionCheckIFrameUrl"),!1):!1}setupSessionCheckEventListener(){this.removeSessionCheckEventListener(),this.sessionCheckEventListener=i=>{let r=i.origin.toLowerCase(),o=this.issuer.toLowerCase();if(this.debug("sessionCheckEventListener"),!o.startsWith(r)){this.debug("sessionCheckEventListener","wrong origin",r,"expected",o,"event",i);return}switch(i.data){case"unchanged":this.ngZone.run(()=>{this.handleSessionUnchanged()});break;case"changed":this.ngZone.run(()=>{this.handleSessionChange()});break;case"error":this.ngZone.run(()=>{this.handleSessionError()});break}this.debug("got info from session check inframe",i)},this.ngZone.runOutsideAngular(()=>{window.addEventListener("message",this.sessionCheckEventListener)})}handleSessionUnchanged(){this.debug("session check","session unchanged"),this.eventsSubject.next(new Ia("session_unchanged"))}handleSessionChange(){this.eventsSubject.next(new Ia("session_changed")),this.stopSessionCheckTimer(),!this.useSilentRefresh&&this.responseType==="code"?this.refreshToken().then(()=>{this.debug("token refresh after session change worked")}).catch(()=>{this.debug("token refresh did not work after session changed"),this.eventsSubject.next(new Ia("session_terminated")),this.logOut(!0)}):this.silentRefreshRedirectUri?(this.silentRefresh().catch(()=>this.debug("silent refresh failed after session changed")),this.waitForSilentRefreshAfterSessionChange()):(this.eventsSubject.next(new Ia("session_terminated")),this.logOut(!0))}waitForSilentRefreshAfterSessionChange(){this.events.pipe(ce(i=>i.type==="silently_refreshed"||i.type==="silent_refresh_timeout"||i.type==="silent_refresh_error"),gn()).subscribe(i=>{i.type!=="silently_refreshed"&&(this.debug("silent refresh did not work after session changed"),this.eventsSubject.next(new Ia("session_terminated")),this.logOut(!0))})}handleSessionError(){this.stopSessionCheckTimer(),this.eventsSubject.next(new Ia("session_error"))}removeSessionCheckEventListener(){this.sessionCheckEventListener&&(window.removeEventListener("message",this.sessionCheckEventListener),this.sessionCheckEventListener=null)}initSessionCheck(){if(!this.canPerformSessionCheck())return;let i=this.document.getElementById(this.sessionCheckIFrameName);i&&this.document.body.removeChild(i);let r=this.document.createElement("iframe");r.id=this.sessionCheckIFrameName,this.setupSessionCheckEventListener();let o=this.sessionCheckIFrameUrl;r.setAttribute("src",o),r.style.display="none",this.document.body.appendChild(r),this.startSessionCheckTimer()}startSessionCheckTimer(){this.stopSessionCheckTimer(),this.ngZone.runOutsideAngular(()=>{this.sessionCheckTimer=setInterval(this.checkSession.bind(this),this.sessionCheckIntervall)})}stopSessionCheckTimer(){this.sessionCheckTimer&&(clearInterval(this.sessionCheckTimer),this.sessionCheckTimer=null)}checkSession(){let i=this.document.getElementById(this.sessionCheckIFrameName);i||this.logger.warn("checkSession did not find iframe",this.sessionCheckIFrameName);let r=this.getSessionState();r||this.stopSessionCheckTimer();let o=this.clientId+" "+r;i.contentWindow.postMessage(o,this.issuer)}createLoginUrl(){return fn(this,arguments,function*(i="",r="",o="",a=!1,s={}){let l=this,c;o?c=o:c=this.redirectUri;let d=yield this.createAndSaveNonce();if(i?i=d+this.config.nonceStateSeparator+encodeURIComponent(i):i=d,!this.requestAccessToken&&!this.oidc)throw new Error("Either requestAccessToken or oidc or both must be true");this.config.responseType?this.responseType=this.config.responseType:this.oidc&&this.requestAccessToken?this.responseType="id_token token":this.oidc&&!this.requestAccessToken?this.responseType="id_token":this.responseType="token";let m=l.loginUrl.indexOf("?")>-1?"&":"?",f=l.scope;this.oidc&&!f.match(/(^|\s)openid($|\s)/)&&(f="openid "+f);let b=l.loginUrl+m+"response_type="+encodeURIComponent(l.responseType)+"&client_id="+encodeURIComponent(l.clientId)+"&state="+encodeURIComponent(i)+"&redirect_uri="+encodeURIComponent(c)+"&scope="+encodeURIComponent(f);if(this.responseType.includes("code")&&!this.disablePKCE){let[v,w]=yield this.createChallangeVerifierPairForPKCE();this.saveNoncesInLocalStorage&&typeof window.localStorage<"u"?localStorage.setItem("PKCE_verifier",w):this._storage.setItem("PKCE_verifier",w),b+="&code_challenge="+v,b+="&code_challenge_method=S256"}r&&(b+="&login_hint="+encodeURIComponent(r)),l.resource&&(b+="&resource="+encodeURIComponent(l.resource)),l.oidc&&(b+="&nonce="+encodeURIComponent(d)),a&&(b+="&prompt=none");for(let v of Object.keys(s))b+="&"+encodeURIComponent(v)+"="+encodeURIComponent(s[v]);if(this.customQueryParams)for(let v of Object.getOwnPropertyNames(this.customQueryParams))b+="&"+v+"="+encodeURIComponent(this.customQueryParams[v]);return b})}initImplicitFlowInternal(i="",r=""){if(this.inImplicitFlow)return;if(this.inImplicitFlow=!0,!this.validateUrlForHttps(this.loginUrl))throw new Error("loginUrl must use HTTPS (with TLS), or config value for property 'requireHttps' must be set to 'false' and allow HTTP (without TLS).");let o={},a=null;typeof r=="string"?a=r:typeof r=="object"&&(o=r),this.createLoginUrl(i,a,null,!1,o).then(this.config.openUri).catch(s=>{console.error("Error in initImplicitFlow",s),this.inImplicitFlow=!1})}initImplicitFlow(i="",r=""){this.loginUrl!==""?this.initImplicitFlowInternal(i,r):this.events.pipe(ce(o=>o.type==="discovery_document_loaded")).subscribe(()=>this.initImplicitFlowInternal(i,r))}resetImplicitFlow(){this.inImplicitFlow=!1}callOnTokenReceivedIfExists(i){let r=this;if(i.onTokenReceived){let o={idClaims:r.getIdentityClaims(),idToken:r.getIdToken(),accessToken:r.getAccessToken(),state:r.state};i.onTokenReceived(o)}}storeAccessTokenResponse(i,r,o,a,s){if(this._storage.setItem("access_token",i),a&&!Array.isArray(a)?this._storage.setItem("granted_scopes",JSON.stringify(a.split(" "))):a&&Array.isArray(a)&&this._storage.setItem("granted_scopes",JSON.stringify(a)),this._storage.setItem("access_token_stored_at",""+this.dateTimeService.now()),o){let l=o*1e3,d=this.dateTimeService.new().getTime()+l;this._storage.setItem("expires_at",""+d)}r&&this._storage.setItem("refresh_token",r),s&&s.forEach((l,c)=>{this._storage.setItem(c,l)})}tryLogin(i=null){return this.config.responseType==="code"?this.tryLoginCodeFlow(i).then(()=>!0):this.tryLoginImplicitFlow(i)}parseQueryString(i){return!i||i.length===0?{}:(i.charAt(0)==="?"&&(i=i.substr(1)),this.urlHelper.parseQueryString(i))}tryLoginCodeFlow(i=null){return fn(this,null,function*(){i=i||{};let r=i.customHashFragment?i.customHashFragment.substring(1):window.location.search,o=this.getCodePartsFromUrl(r),a=o.code,s=o.state,l=o.session_state;if(!i.preventClearHashAfterLogin){let m=location.origin+location.pathname+location.search.replace(/code=[^&$]*/,"").replace(/scope=[^&$]*/,"").replace(/state=[^&$]*/,"").replace(/session_state=[^&$]*/,"").replace(/^\?&/,"?").replace(/&$/,"").replace(/^\?$/,"").replace(/&+/g,"&").replace(/\?&/,"?").replace(/\?$/,"")+location.hash;history.replaceState(null,window.name,m)}let[c,d]=this.parseState(s);if(this.state=d,o.error){this.debug("error trying to login"),this.handleLoginError(i,o);let m=new Ui("code_error",{},o);return this.eventsSubject.next(m),Promise.reject(m)}if(!i.disableNonceCheck){if(!c)return this.saveRequestedRoute(),Promise.resolve();if(!i.disableOAuth2StateCheck&&!this.validateNonce(c)){let f=new Ui("invalid_nonce_in_state",null);return this.eventsSubject.next(f),Promise.reject(f)}}return this.storeSessionState(l),a&&(yield this.getTokenFromCode(a,i),this.restoreRequestedRoute()),Promise.resolve()})}saveRequestedRoute(){this.config.preserveRequestedRoute&&this._storage.setItem("requested_route",window.location.pathname+window.location.search)}restoreRequestedRoute(){let i=this._storage.getItem("requested_route");i&&history.replaceState(null,"",window.location.origin+i)}getCodePartsFromUrl(i){return!i||i.length===0?this.urlHelper.getHashFragmentParams():(i.charAt(0)==="?"&&(i=i.substr(1)),this.urlHelper.parseQueryString(i))}getTokenFromCode(i,r){let o=new Qn({encoder:new Ud}).set("grant_type","authorization_code").set("code",i).set("redirect_uri",r.customRedirectUri||this.redirectUri);if(!this.disablePKCE){let a;this.saveNoncesInLocalStorage&&typeof window.localStorage<"u"?a=localStorage.getItem("PKCE_verifier"):a=this._storage.getItem("PKCE_verifier"),a?o=o.set("code_verifier",a):console.warn("No PKCE verifier found in oauth storage!")}return this.fetchAndProcessToken(o,r)}fetchAndProcessToken(i,r){r=r||{},this.assertUrlNotNullAndCorrectProtocol(this.tokenEndpoint,"tokenEndpoint");let o=new _r().set("Content-Type","application/x-www-form-urlencoded");if(this.useHttpBasicAuth){let a=btoa(`${this.clientId}:${this.dummyClientSecret}`);o=o.set("Authorization","Basic "+a)}return this.useHttpBasicAuth||(i=i.set("client_id",this.clientId)),!this.useHttpBasicAuth&&this.dummyClientSecret&&(i=i.set("client_secret",this.dummyClientSecret)),new Promise((a,s)=>{if(this.customQueryParams)for(let l of Object.getOwnPropertyNames(this.customQueryParams))i=i.set(l,this.customQueryParams[l]);this.http.post(this.tokenEndpoint,i,{headers:o}).subscribe(l=>{this.debug("refresh tokenResponse",l),this.storeAccessTokenResponse(l.access_token,l.refresh_token,l.expires_in||this.fallbackAccessTokenExpirationTimeInSec,l.scope,this.extractRecognizedCustomParameters(l)),this.oidc&&l.id_token?this.processIdToken(l.id_token,l.access_token,r.disableNonceCheck).then(c=>{this.storeIdToken(c),this.eventsSubject.next(new Rr("token_received")),this.eventsSubject.next(new Rr("token_refreshed")),a(l)}).catch(c=>{this.eventsSubject.next(new Ui("token_validation_error",c)),console.error("Error validating tokens"),console.error(c),s(c)}):(this.eventsSubject.next(new Rr("token_received")),this.eventsSubject.next(new Rr("token_refreshed")),a(l))},l=>{console.error("Error getting token",l),this.eventsSubject.next(new Ui("token_error",l)),s(l)})})}tryLoginImplicitFlow(i=null){i=i||{};let r;i.customHashFragment?r=this.urlHelper.getHashFragmentParams(i.customHashFragment):r=this.urlHelper.getHashFragmentParams(),this.debug("parsed url",r);let o=r.state,[a,s]=this.parseState(o);if(this.state=s,r.error){this.debug("error trying to login"),this.handleLoginError(i,r);let f=new Ui("token_error",{},r);return this.eventsSubject.next(f),Promise.reject(f)}let l=r.access_token,c=r.id_token,d=r.session_state,m=r.scope;if(!this.requestAccessToken&&!this.oidc)return Promise.reject("Either requestAccessToken or oidc (or both) must be true.");if(this.requestAccessToken&&!l||this.requestAccessToken&&!i.disableOAuth2StateCheck&&!o||this.oidc&&!c)return Promise.resolve(!1);if(this.sessionChecksEnabled&&!d&&this.logger.warn("session checks (Session Status Change Notification) were activated in the configuration but the id_token does not contain a session_state claim"),this.requestAccessToken&&!i.disableNonceCheck&&!this.validateNonce(a)){let b=new Ui("invalid_nonce_in_state",null);return this.eventsSubject.next(b),Promise.reject(b)}return this.requestAccessToken&&this.storeAccessTokenResponse(l,null,r.expires_in||this.fallbackAccessTokenExpirationTimeInSec,m),this.oidc?this.processIdToken(c,l,i.disableNonceCheck).then(f=>i.validationHandler?i.validationHandler({accessToken:l,idClaims:f.idTokenClaims,idToken:f.idToken,state:o}).then(()=>f):f).then(f=>(this.storeIdToken(f),this.storeSessionState(d),this.clearHashAfterLogin&&!i.preventClearHashAfterLogin&&this.clearLocationHash(),this.eventsSubject.next(new Rr("token_received")),this.callOnTokenReceivedIfExists(i),this.inImplicitFlow=!1,!0)).catch(f=>(this.eventsSubject.next(new Ui("token_validation_error",f)),this.logger.error("Error validating tokens"),this.logger.error(f),Promise.reject(f))):(this.eventsSubject.next(new Rr("token_received")),this.clearHashAfterLogin&&!i.preventClearHashAfterLogin&&this.clearLocationHash(),this.callOnTokenReceivedIfExists(i),Promise.resolve(!0))}parseState(i){let r=i,o="";if(i){let a=i.indexOf(this.config.nonceStateSeparator);a>-1&&(r=i.substr(0,a),o=i.substr(a+this.config.nonceStateSeparator.length))}return[r,o]}validateNonce(i){let r;return this.saveNoncesInLocalStorage&&typeof window.localStorage<"u"?r=localStorage.getItem("nonce"):r=this._storage.getItem("nonce"),r!==i?(console.error("Validating access_token failed, wrong state/nonce.",r,i),!1):!0}storeIdToken(i){this._storage.setItem("id_token",i.idToken),this._storage.setItem("id_token_claims_obj",i.idTokenClaimsJson),this._storage.setItem("id_token_expires_at",""+i.idTokenExpiresAt),this._storage.setItem("id_token_stored_at",""+this.dateTimeService.now())}storeSessionState(i){this._storage.setItem("session_state",i)}getSessionState(){return this._storage.getItem("session_state")}handleLoginError(i,r){i.onLoginError&&i.onLoginError(r),this.clearHashAfterLogin&&!i.preventClearHashAfterLogin&&this.clearLocationHash()}getClockSkewInMsec(i=6e5){return!this.clockSkewInSec&&this.clockSkewInSec!==0?i:this.clockSkewInSec*1e3}processIdToken(i,r,o=!1){let a=i.split("."),s=this.padBase64(a[0]),l=uL(s),c=JSON.parse(l),d=this.padBase64(a[1]),m=uL(d),f=JSON.parse(m),b;if(this.saveNoncesInLocalStorage&&typeof window.localStorage<"u"?b=localStorage.getItem("nonce"):b=this._storage.getItem("nonce"),Array.isArray(f.aud)){if(f.aud.every(W=>W!==this.clientId)){let W="Wrong audience: "+f.aud.join(",");return this.logger.warn(W),Promise.reject(W)}}else if(f.aud!==this.clientId){let W="Wrong audience: "+f.aud;return this.logger.warn(W),Promise.reject(W)}if(!f.sub){let W="No sub claim in id_token";return this.logger.warn(W),Promise.reject(W)}if(this.sessionChecksEnabled&&this.silentRefreshSubject&&this.silentRefreshSubject!==f.sub){let W=`After refreshing, we got an id_token for another user (sub). Expected sub: ${this.silentRefreshSubject}, received sub: ${f.sub}`;return this.logger.warn(W),Promise.reject(W)}if(!f.iat){let W="No iat claim in id_token";return this.logger.warn(W),Promise.reject(W)}if(!this.skipIssuerCheck&&f.iss!==this.issuer){let W="Wrong issuer: "+f.iss;return this.logger.warn(W),Promise.reject(W)}if(!o&&f.nonce!==b){let W="Wrong nonce: "+f.nonce;return this.logger.warn(W),Promise.reject(W)}if(Object.prototype.hasOwnProperty.call(this,"responseType")&&(this.responseType==="code"||this.responseType==="id_token")&&(this.disableAtHashCheck=!0),!this.disableAtHashCheck&&this.requestAccessToken&&!f.at_hash){let W="An at_hash is needed!";return this.logger.warn(W),Promise.reject(W)}let v=this.dateTimeService.now(),w=f.iat*1e3,x=f.exp*1e3,D=this.getClockSkewInMsec();if(w-D>=v||x+D-this.decreaseExpirationBySec<=v){let W="Token has expired";return console.error(W),console.error({now:v,issuedAtMSec:w,expiresAtMSec:x}),Promise.reject(W)}let P={accessToken:r,idToken:i,jwks:this.jwks,idTokenClaims:f,idTokenHeader:c,loadKeys:()=>this.loadJwks()};return this.disableAtHashCheck?this.checkSignature(P).then(()=>({idToken:i,idTokenClaims:f,idTokenClaimsJson:m,idTokenHeader:c,idTokenHeaderJson:l,idTokenExpiresAt:x})):this.checkAtHash(P).then(W=>{if(!this.disableAtHashCheck&&this.requestAccessToken&&!W){let Z="Wrong at_hash";return this.logger.warn(Z),Promise.reject(Z)}return this.checkSignature(P).then(()=>{let Z=!this.disableAtHashCheck,K={idToken:i,idTokenClaims:f,idTokenClaimsJson:m,idTokenHeader:c,idTokenHeaderJson:l,idTokenExpiresAt:x};return Z?this.checkAtHash(P).then(re=>{if(this.requestAccessToken&&!re){let Ee="Wrong at_hash";return this.logger.warn(Ee),Promise.reject(Ee)}else return K}):K})})}getIdentityClaims(){let i=this._storage.getItem("id_token_claims_obj");return i?JSON.parse(i):null}getGrantedScopes(){let i=this._storage.getItem("granted_scopes");return i?JSON.parse(i):null}getIdToken(){return this._storage?this._storage.getItem("id_token"):null}padBase64(i){for(;i.length%4!==0;)i+="=";return i}getAccessToken(){return this._storage?this._storage.getItem("access_token"):null}getRefreshToken(){return this._storage?this._storage.getItem("refresh_token"):null}getAccessTokenExpiration(){return this._storage.getItem("expires_at")?parseInt(this._storage.getItem("expires_at"),10):null}getAccessTokenStoredAt(){return parseInt(this._storage.getItem("access_token_stored_at"),10)}getIdTokenStoredAt(){return parseInt(this._storage.getItem("id_token_stored_at"),10)}getIdTokenExpiration(){return this._storage.getItem("id_token_expires_at")?parseInt(this._storage.getItem("id_token_expires_at"),10):null}hasValidAccessToken(){if(this.getAccessToken()){let i=this._storage.getItem("expires_at"),r=this.dateTimeService.new();return!(i&&parseInt(i,10)-this.decreaseExpirationBySec=0&&this._storage.getItem(i)!==null?JSON.parse(this._storage.getItem(i)):null}authorizationHeader(){return"Bearer "+this.getAccessToken()}logOut(i={},r=""){let o=!1;typeof i=="boolean"&&(o=i,i={});let a=this.getIdToken();if(this._storage.removeItem("access_token"),this._storage.removeItem("id_token"),this._storage.removeItem("refresh_token"),this.saveNoncesInLocalStorage?(localStorage.removeItem("nonce"),localStorage.removeItem("PKCE_verifier")):(this._storage.removeItem("nonce"),this._storage.removeItem("PKCE_verifier")),this._storage.removeItem("expires_at"),this._storage.removeItem("id_token_claims_obj"),this._storage.removeItem("id_token_expires_at"),this._storage.removeItem("id_token_stored_at"),this._storage.removeItem("access_token_stored_at"),this._storage.removeItem("granted_scopes"),this._storage.removeItem("session_state"),this.config.customTokenParameters&&this.config.customTokenParameters.forEach(l=>this._storage.removeItem(l)),this.silentRefreshSubject=null,this.eventsSubject.next(new Ia("logout")),!this.logoutUrl||o)return;let s;if(!this.validateUrlForHttps(this.logoutUrl))throw new Error("logoutUrl must use HTTPS (with TLS), or config value for property 'requireHttps' must be set to 'false' and allow HTTP (without TLS).");if(this.logoutUrl.indexOf("{{")>-1)s=this.logoutUrl.replace(/\{\{id_token\}\}/,encodeURIComponent(a)).replace(/\{\{client_id\}\}/,encodeURIComponent(this.clientId));else{let l=new Qn({encoder:new Ud});a&&(l=l.set("id_token_hint",a));let c=this.postLogoutRedirectUri||this.redirectUriAsPostLogoutRedirectUriFallback&&this.redirectUri||"";c&&(l=l.set("post_logout_redirect_uri",c),r&&(l=l.set("state",r)));for(let d in i)l=l.set(d,i[d]);s=this.logoutUrl+(this.logoutUrl.indexOf("?")>-1?"&":"?")+l.toString()}this.config.openUri(s)}createAndSaveNonce(){let i=this;return this.createNonce().then(function(r){return i.saveNoncesInLocalStorage&&typeof window.localStorage<"u"?localStorage.setItem("nonce",r):i._storage.setItem("nonce",r),r})}ngOnDestroy(){this.clearAccessTokenTimer(),this.clearIdTokenTimer(),this.removeSilentRefreshEventListener();let i=this.document.getElementById(this.silentRefreshIFrameName);i&&i.remove(),this.stopSessionCheckTimer(),this.removeSessionCheckEventListener();let r=this.document.getElementById(this.sessionCheckIFrameName);r&&r.remove()}createNonce(){return new Promise(i=>{if(this.rngUrl)throw new Error("createNonce with rng-web-api has not been implemented so far");let r="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-._~",o=45,a="",s=typeof self>"u"?null:self.crypto||self.msCrypto;if(s){let l=new Uint8Array(o);s.getRandomValues(l),l.map||(l.map=Array.prototype.map),l=l.map(c=>r.charCodeAt(c%r.length)),a=String.fromCharCode.apply(null,l)}else for(;0o.type==="discovery_document_loaded")).subscribe(()=>this.initCodeFlowInternal(i,r))}initCodeFlowInternal(i="",r={}){if(!this.validateUrlForHttps(this.loginUrl))throw new Error("loginUrl must use HTTPS (with TLS), or config value for property 'requireHttps' must be set to 'false' and allow HTTP (without TLS).");let o={},a=null;typeof r=="string"?a=r:typeof r=="object"&&(o=r),this.createLoginUrl(i,a,null,!1,o).then(this.config.openUri).catch(s=>{console.error("Error in initAuthorizationCodeFlow"),console.error(s)})}createChallangeVerifierPairForPKCE(){return fn(this,null,function*(){if(!this.crypto)throw new Error("PKCE support for code flow needs a CryptoHander. Did you import the OAuthModule using forRoot() ?");let i=yield this.createNonce(),r=yield this.crypto.calcHash(i,"sha-256");return[mL(r),i]})}extractRecognizedCustomParameters(i){let r=new Map;return this.config.customTokenParameters&&this.config.customTokenParameters.forEach(o=>{i[o]&&r.set(o,JSON.stringify(i[o]))}),r}revokeTokenAndLogout(i={},r=!1){let o=this.revocationEndpoint,a=this.getAccessToken(),s=this.getRefreshToken();if(!a)return Promise.resolve();let l=new Qn({encoder:new Ud}),c=new _r().set("Content-Type","application/x-www-form-urlencoded");if(this.useHttpBasicAuth){let d=btoa(`${this.clientId}:${this.dummyClientSecret}`);c=c.set("Authorization","Basic "+d)}if(this.useHttpBasicAuth||(l=l.set("client_id",this.clientId)),!this.useHttpBasicAuth&&this.dummyClientSecret&&(l=l.set("client_secret",this.dummyClientSecret)),this.customQueryParams)for(let d of Object.getOwnPropertyNames(this.customQueryParams))l=l.set(d,this.customQueryParams[d]);return new Promise((d,m)=>{let f,b;if(a){let v=l.set("token",a).set("token_type_hint","access_token");f=this.http.post(o,v,{headers:c})}else f=Q(null);if(s){let v=l.set("token",s).set("token_type_hint","refresh_token");b=this.http.post(o,v,{headers:c})}else b=Q(null);r&&(f=f.pipe(fi(v=>v.status===0?Q(null):Wn(v))),b=b.pipe(fi(v=>v.status===0?Q(null):Wn(v)))),co([f,b]).subscribe(v=>{this.logOut(i),d(v),this.logger.info("Token successfully revoked")},v=>{this.logger.error("Error revoking token",v),this.eventsSubject.next(new Ui("token_revoke_error",v)),m(v)})})}clearLocationHash(){location.hash!=""&&(location.hash="")}};n.\u0275fac=function(r){return new(r||n)(pe(ae),pe(Yr),pe(A0,8),pe(O0,8),pe($m,8),pe(hL),pe(I0),pe(R0,8),pe(ge),pe(jf))},n.\u0275prov=O({token:n,factory:n.\u0275fac});let t=n;return t})(),P0=class{},mk=class{handleError(n){return Wn(n)}},BK=(()=>{let n=class n{constructor(i,r,o){this.oAuthService=i,this.errorHandler=r,this.moduleConfig=o}checkUrl(i){return this.moduleConfig.resourceServer.customUrlValidation?this.moduleConfig.resourceServer.customUrlValidation(i):this.moduleConfig.resourceServer.allowedUrls?!!this.moduleConfig.resourceServer.allowedUrls.find(r=>i.toLowerCase().startsWith(r.toLowerCase())):!0}intercept(i,r){let o=i.url.toLowerCase();return!this.moduleConfig||!this.moduleConfig.resourceServer||!this.checkUrl(o)?r.handle(i):this.moduleConfig.resourceServer.sendAccessToken?Je(Q(this.oAuthService.getAccessToken()).pipe(ce(s=>!!s)),this.oAuthService.events.pipe(ce(s=>s.type==="token_received"),Gw(this.oAuthService.waitForTokenInMsec||0),fi(()=>Q(null)),se(()=>this.oAuthService.getAccessToken()))).pipe(lt(1),Mt(s=>{if(s){let l="Bearer "+s,c=i.headers.set("Authorization",l);i=i.clone({headers:c})}return r.handle(i).pipe(fi(l=>this.errorHandler.handleError(l)))})):r.handle(i).pipe(fi(s=>this.errorHandler.handleError(s)))}};n.\u0275fac=function(r){return new(r||n)(pe(Wm),pe(P0),pe(T0,8))},n.\u0275prov=O({token:n,factory:n.\u0275fac});let t=n;return t})();function jK(){return console}function HK(){return typeof sessionStorage<"u"?sessionStorage:new OK}function fL(t=null,n=dk){return zr([Wm,hL,{provide:I0,useFactory:jK},{provide:A0,useFactory:HK},{provide:O0,useClass:n},{provide:R0,useClass:VK},{provide:P0,useClass:mk},{provide:T0,useValue:t},{provide:E1,useClass:BK,multi:!0},{provide:jf,useClass:AK}])}var zK=["mat-internal-form-field",""],UK=["*"],Gm=(()=>{class t{labelPosition;static \u0275fac=function(i){return new(i||t)};static \u0275cmp=E({type:t,selectors:[["div","mat-internal-form-field",""]],hostAttrs:[1,"mdc-form-field","mat-internal-form-field"],hostVars:2,hostBindings:function(i,r){i&2&&G("mdc-form-field--align-end",r.labelPosition==="before")},inputs:{labelPosition:"labelPosition"},attrs:zK,ngContentSelectors:UK,decls:1,vars:0,template:function(i,r){i&1&&(Me(),oe(0))},styles:[`.mat-internal-form-field{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;display:inline-flex;align-items:center;vertical-align:middle}.mat-internal-form-field>label{margin-left:0;margin-right:auto;padding-left:4px;padding-right:0;order:0}[dir=rtl] .mat-internal-form-field>label{margin-left:auto;margin-right:0;padding-left:0;padding-right:4px}.mdc-form-field--align-end>label{margin-left:auto;margin-right:0;padding-left:0;padding-right:4px;order:-1}[dir=rtl] .mdc-form-field--align-end .mdc-form-field--align-end label{margin-left:0;margin-right:auto;padding-left:4px;padding-right:0} +`],encapsulation:2,changeDetection:0})}return t})();var hk;try{hk=typeof Intl<"u"&&Intl.v8BreakIterator}catch{hk=!1}var qe=(()=>{class t{_platformId=u(Ks);isBrowser=this._platformId?z2(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||hk)&&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(i){return new(i||t)};static \u0275prov=O({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();function al(t){return Array.isArray(t)?t:[t]}var gL=new Set,$d,qm=(()=>{class t{_platform=u(qe);_nonce=u(gm,{optional:!0});_matchMedia;constructor(){this._matchMedia=this._platform.isBrowser&&window.matchMedia?window.matchMedia.bind(window):WK}matchMedia(e){return(this._platform.WEBKIT||this._platform.BLINK)&&$K(e,this._nonce),this._matchMedia(e)}static \u0275fac=function(i){return new(i||t)};static \u0275prov=O({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();function $K(t,n){if(!gL.has(t))try{$d||($d=document.createElement("style"),n&&$d.setAttribute("nonce",n),$d.setAttribute("type","text/css"),document.head.appendChild($d)),$d.sheet&&($d.sheet.insertRule(`@media ${t} {body{ }}`,0),gL.add(t))}catch(e){console.error(e)}}function WK(t){return{matches:t==="all"||t==="",media:t,addListener:()=>{},removeListener:()=>{}}}var sl=(()=>{class t{_mediaMatcher=u(qm);_zone=u(ae);_queries=new Map;_destroySubject=new z;constructor(){}ngOnDestroy(){this._destroySubject.next(),this._destroySubject.complete()}isMatched(e){return _L(al(e)).some(r=>this._registerQuery(r).mql.matches)}observe(e){let r=_L(al(e)).map(a=>this._registerQuery(a).observable),o=co(r);return o=mo(o.pipe(lt(1)),o.pipe(Ya(1),Rt(0))),o.pipe(se(a=>{let s={matches:!1,breakpoints:{}};return a.forEach(({matches:l,query:c})=>{s.matches=s.matches||l,s.breakpoints[c]=l}),s}))}_registerQuery(e){if(this._queries.has(e))return this._queries.get(e);let i=this._mediaMatcher.matchMedia(e),o={observable:new Fe(a=>{let s=l=>this._zone.run(()=>a.next(l));return i.addListener(s),()=>{i.removeListener(s)}}).pipe(He(i),se(({matches:a})=>({query:e,matches:a})),Te(this._destroySubject)),mql:i};return this._queries.set(e,o),o}static \u0275fac=function(i){return new(i||t)};static \u0275prov=O({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();function _L(t){return t.map(n=>n.split(",")).reduce((n,e)=>n.concat(e)).map(n=>n.trim())}var F0={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 GK=new T("MATERIAL_ANIMATIONS");var bL=null;function pk(){return u(GK,{optional:!0})?.animationsDisabled||u(Yp,{optional:!0})==="NoopAnimations"?"di-disabled":(bL??=u(qm).matchMedia("(prefers-reduced-motion)").matches,bL?"reduced-motion":"enabled")}function Ye(){return pk()!=="enabled"}function Wd(t){return t.buttons===0||t.detail===0}function Gd(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 fk;function vL(){if(fk==null){let t=typeof document<"u"?document.head:null;fk=!!(t&&(t.createShadowRoot||t.attachShadow))}return fk}function gk(t){if(vL()){let n=t.getRootNode?t.getRootNode():null;if(typeof ShadowRoot<"u"&&ShadowRoot&&n instanceof ShadowRoot)return n}return null}function _o(){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 Kn(t){return t.composedPath?t.composedPath()[0]:t.target}var zf;function yL(){if(zf==null&&typeof window<"u")try{window.addEventListener("test",null,Object.defineProperty({},"passive",{get:()=>zf=!0}))}finally{zf=zf||!1}return zf}function rc(t){return yL()?t:!!t.capture}function Ln(t,n=0){return N0(t)?Number(t):arguments.length===2?n:0}function N0(t){return!isNaN(parseFloat(t))&&!isNaN(Number(t))}function Pr(t){return t instanceof q?t.nativeElement:t}var xL=new T("cdk-input-modality-detector-options"),CL={ignoreKeys:[18,17,224,91,16]},wL=650,_k={passive:!0,capture:!0},DL=(()=>{class t{_platform=u(qe);_listenerCleanups;modalityDetected;modalityChanged;get mostRecentModality(){return this._modality.value}_mostRecentTarget=null;_modality=new tt(null);_options;_lastTouchMs=0;_onKeydown=e=>{this._options?.ignoreKeys?.some(i=>i===e.keyCode)||(this._modality.next("keyboard"),this._mostRecentTarget=Kn(e))};_onMousedown=e=>{Date.now()-this._lastTouchMs{if(Gd(e)){this._modality.next("keyboard");return}this._lastTouchMs=Date.now(),this._modality.next("touch"),this._mostRecentTarget=Kn(e)};constructor(){let e=u(ae),i=u(ge),r=u(xL,{optional:!0});if(this._options=M(M({},CL),r),this.modalityDetected=this._modality.pipe(Ya(1)),this.modalityChanged=this.modalityDetected.pipe(Sn()),this._platform.isBrowser){let o=u(cn).createRenderer(null,null);this._listenerCleanups=e.runOutsideAngular(()=>[o.listen(i,"keydown",this._onKeydown,_k),o.listen(i,"mousedown",this._onMousedown,_k),o.listen(i,"touchstart",this._onTouchstart,_k)])}}ngOnDestroy(){this._modality.complete(),this._listenerCleanups?.forEach(e=>e())}static \u0275fac=function(i){return new(i||t)};static \u0275prov=O({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),Uf=(function(t){return t[t.IMMEDIATE=0]="IMMEDIATE",t[t.EVENTUAL=1]="EVENTUAL",t})(Uf||{}),EL=new T("cdk-focus-monitor-default-options"),L0=rc({passive:!0,capture:!0}),Yt=(()=>{class t{_ngZone=u(ae);_platform=u(qe);_inputModalityDetector=u(DL);_origin=null;_lastFocusOrigin;_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=u(ge);_stopInputModalityDetector=new z;constructor(){let e=u(EL,{optional:!0});this._detectionMode=e?.detectionMode||Uf.IMMEDIATE}_rootNodeFocusAndBlurListener=e=>{let i=Kn(e);for(let r=i;r;r=r.parentElement)e.type==="focus"?this._onFocus(e,r):this._onBlur(e,r)};monitor(e,i=!1){let r=Pr(e);if(!this._platform.isBrowser||r.nodeType!==1)return Q();let o=gk(r)||this._document,a=this._elementInfo.get(r);if(a)return i&&(a.checkChildren=!0),a.subject;let s={checkChildren:i,subject:new z,rootNode:o};return this._elementInfo.set(r,s),this._registerGlobalListeners(s),s.subject}stopMonitoring(e){let i=Pr(e),r=this._elementInfo.get(i);r&&(r.subject.complete(),this._setClasses(i),this._elementInfo.delete(i),this._removeGlobalListeners(r))}focusVia(e,i,r){let o=Pr(e),a=this._document.activeElement;o===a?this._getClosestElementsInfo(o).forEach(([s,l])=>this._originChanged(s,i,l)):(this._setOrigin(i),typeof o.focus=="function"&&o.focus(r))}ngOnDestroy(){this._elementInfo.forEach((e,i)=>this.stopMonitoring(i))}_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===Uf.EVENTUAL||!!e?.contains(this._inputModalityDetector._mostRecentTarget)}_setClasses(e,i){e.classList.toggle("cdk-focused",!!i),e.classList.toggle("cdk-touch-focused",i==="touch"),e.classList.toggle("cdk-keyboard-focused",i==="keyboard"),e.classList.toggle("cdk-mouse-focused",i==="mouse"),e.classList.toggle("cdk-program-focused",i==="program")}_setOrigin(e,i=!1){this._ngZone.runOutsideAngular(()=>{if(this._origin=e,this._originFromTouchInteraction=e==="touch"&&i,this._detectionMode===Uf.IMMEDIATE){clearTimeout(this._originTimeoutId);let r=this._originFromTouchInteraction?wL:1;this._originTimeoutId=setTimeout(()=>this._origin=null,r)}})}_onFocus(e,i){let r=this._elementInfo.get(i),o=Kn(e);!r||!r.checkChildren&&i!==o||this._originChanged(i,this._getFocusOrigin(o),r)}_onBlur(e,i){let r=this._elementInfo.get(i);!r||r.checkChildren&&e.relatedTarget instanceof Node&&i.contains(e.relatedTarget)||(this._setClasses(i),this._emitOrigin(r,null))}_emitOrigin(e,i){e.subject.observers.length&&this._ngZone.run(()=>e.subject.next(i))}_registerGlobalListeners(e){if(!this._platform.isBrowser)return;let i=e.rootNode,r=this._rootNodeFocusListenerCount.get(i)||0;r||this._ngZone.runOutsideAngular(()=>{i.addEventListener("focus",this._rootNodeFocusAndBlurListener,L0),i.addEventListener("blur",this._rootNodeFocusAndBlurListener,L0)}),this._rootNodeFocusListenerCount.set(i,r+1),++this._monitoredElementCount===1&&(this._ngZone.runOutsideAngular(()=>{this._getWindow().addEventListener("focus",this._windowFocusListener)}),this._inputModalityDetector.modalityDetected.pipe(Te(this._stopInputModalityDetector)).subscribe(o=>{this._setOrigin(o,!0)}))}_removeGlobalListeners(e){let i=e.rootNode;if(this._rootNodeFocusListenerCount.has(i)){let r=this._rootNodeFocusListenerCount.get(i);r>1?this._rootNodeFocusListenerCount.set(i,r-1):(i.removeEventListener("focus",this._rootNodeFocusAndBlurListener,L0),i.removeEventListener("blur",this._rootNodeFocusAndBlurListener,L0),this._rootNodeFocusListenerCount.delete(i))}--this._monitoredElementCount||(this._getWindow().removeEventListener("focus",this._windowFocusListener),this._stopInputModalityDetector.next(),clearTimeout(this._windowFocusTimeoutId),clearTimeout(this._originTimeoutId))}_originChanged(e,i,r){this._setClasses(e,i),this._emitOrigin(r,i),this._lastFocusOrigin=i}_getClosestElementsInfo(e){let i=[];return this._elementInfo.forEach((r,o)=>{(o===e||r.checkChildren&&o.contains(e))&&i.push([o,r])}),i}_isLastInteractionFromInputLabel(e){let{_mostRecentTarget:i,mostRecentModality:r}=this._inputModalityDetector;if(r!=="mouse"||!i||i===e||e.nodeName!=="INPUT"&&e.nodeName!=="TEXTAREA"||e.disabled)return!1;let o=e.labels;if(o){for(let a=0;a{class t{_elementRef=u(q);_focusMonitor=u(Yt);_monitorSubscription;_focusOrigin=null;cdkFocusChange=new U;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(i=>{this._focusOrigin=i,this.cdkFocusChange.emit(i)})}ngOnDestroy(){this._focusMonitor.stopMonitoring(this._elementRef),this._monitorSubscription&&this._monitorSubscription.unsubscribe()}static \u0275fac=function(i){return new(i||t)};static \u0275dir=F({type:t,selectors:[["","cdkMonitorElementFocus",""],["","cdkMonitorSubtreeFocus",""]],outputs:{cdkFocusChange:"cdkFocusChange"},exportAs:["cdkMonitorFocus"]})}return t})();var V0=new WeakMap,ut=(()=>{class t{_appRef;_injector=u(de);_environmentInjector=u(Wt);load(e){let i=this._appRef=this._appRef||this._injector.get(Gn),r=V0.get(i);r||(r={loaders:new Set,refs:[]},V0.set(i,r),i.onDestroy(()=>{V0.get(i)?.refs.forEach(o=>o.destroy()),V0.delete(i)})),r.loaders.has(e)||(r.loaders.add(e),r.refs.push(Mm(e,{environmentInjector:this._environmentInjector})))}static \u0275fac=function(i){return new(i||t)};static \u0275prov=O({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();var Qr=(()=>{class t{static \u0275fac=function(i){return new(i||t)};static \u0275cmp=E({type:t,selectors:[["ng-component"]],exportAs:["cdkVisuallyHidden"],decls:0,vars:0,template:function(i,r){},styles:[`.cdk-visually-hidden{border:0;clip:rect(0 0 0 0);height:1px;margin:-1px;overflow:hidden;padding:0;position:absolute;width:1px;white-space:nowrap;outline:0;-webkit-appearance:none;-moz-appearance:none;left:0}[dir=rtl] .cdk-visually-hidden{left:auto;right:0} +`],encapsulation:2,changeDetection:0})}return t})();function qK(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(i){return new(i||t)};static \u0275prov=O({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),kL=(()=>{class t{_mutationObserverFactory=u(ML);_observedElements=new Map;_ngZone=u(ae);constructor(){}ngOnDestroy(){this._observedElements.forEach((e,i)=>this._cleanupObserver(i))}observe(e){let i=Pr(e);return new Fe(r=>{let a=this._observeElement(i).pipe(se(s=>s.filter(l=>!qK(l))),ce(s=>!!s.length)).subscribe(s=>{this._ngZone.run(()=>{r.next(s)})});return()=>{a.unsubscribe(),this._unobserveElement(i)}})}_observeElement(e){return this._ngZone.runOutsideAngular(()=>{if(this._observedElements.has(e))this._observedElements.get(e).count++;else{let i=new z,r=this._mutationObserverFactory.create(o=>i.next(o));r&&r.observe(e,{characterData:!0,childList:!0,subtree:!0}),this._observedElements.set(e,{observer:r,stream:i,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:i,stream:r}=this._observedElements.get(e);i&&i.disconnect(),r.complete(),this._observedElements.delete(e)}}static \u0275fac=function(i){return new(i||t)};static \u0275prov=O({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),Wf=(()=>{class t{_contentObserver=u(kL);_elementRef=u(q);event=new U;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=Ln(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(Rt(this.debounce)):e).subscribe(this.event)}_unsubscribe(){this._currentSubscription?.unsubscribe()}static \u0275fac=function(i){return new(i||t)};static \u0275dir=F({type:t,selectors:[["","cdkObserveContent",""]],inputs:{disabled:[2,"cdkObserveContentDisabled","disabled",V],debounce:"debounce"},outputs:{event:"cdkObserveContent"},exportAs:["cdkObserveContent"]})}return t})(),Ym=(()=>{class t{static \u0275fac=function(i){return new(i||t)};static \u0275mod=ee({type:t});static \u0275inj=J({providers:[ML]})}return t})();var ac=(()=>{class t{_platform=u(qe);constructor(){}isDisabled(e){return e.hasAttribute("disabled")}isVisible(e){return QK(e)&&getComputedStyle(e).visibility==="visible"}isTabbable(e){if(!this._platform.isBrowser)return!1;let i=YK(nZ(e));if(i&&(SL(i)===-1||!this.isVisible(i)))return!1;let r=e.nodeName.toLowerCase(),o=SL(e);return e.hasAttribute("contenteditable")?o!==-1:r==="iframe"||r==="object"||this._platform.WEBKIT&&this._platform.IOS&&!tZ(e)?!1:r==="audio"?e.hasAttribute("controls")?o!==-1:!1:r==="video"?o===-1?!1:o!==null?!0:this._platform.FIREFOX||e.hasAttribute("controls"):e.tabIndex>=0}isFocusable(e,i){return iZ(e)&&!this.isDisabled(e)&&(i?.ignoreVisibility||this.isVisible(e))}static \u0275fac=function(i){return new(i||t)};static \u0275prov=O({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();function YK(t){try{return t.frameElement}catch{return null}}function QK(t){return!!(t.offsetWidth||t.offsetHeight||typeof t.getClientRects=="function"&&t.getClientRects().length)}function KK(t){let n=t.nodeName.toLowerCase();return n==="input"||n==="select"||n==="button"||n==="textarea"}function ZK(t){return JK(t)&&t.type=="hidden"}function XK(t){return eZ(t)&&t.hasAttribute("href")}function JK(t){return t.nodeName.toLowerCase()=="input"}function eZ(t){return t.nodeName.toLowerCase()=="a"}function AL(t){if(!t.hasAttribute("tabindex")||t.tabIndex===void 0)return!1;let n=t.getAttribute("tabindex");return!!(n&&!isNaN(parseInt(n,10)))}function SL(t){if(!AL(t))return null;let n=parseInt(t.getAttribute("tabindex")||"",10);return isNaN(n)?-1:n}function tZ(t){let n=t.nodeName.toLowerCase(),e=n==="input"&&t.type;return e==="text"||e==="password"||n==="select"||n==="textarea"}function iZ(t){return ZK(t)?!1:KK(t)||XK(t)||t.hasAttribute("contenteditable")||AL(t)}function nZ(t){return t.ownerDocument&&t.ownerDocument.defaultView||window}var B0=class{_element;_checker;_ngZone;_document;_injector;_startAnchor;_endAnchor;_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,i,r,o=!1,a){this._element=n,this._checker=e,this._ngZone=i,this._document=r,this._injector=a,o||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 i=this._getFirstTabbableElement(e);return i?.focus(n),!!i}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 i=0;i=0;i--){let r=e[i].nodeType===this._document.ELEMENT_NODE?this._getLastTabbableElement(e[i]):null;if(r)return r}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?pt(n,{injector:this._injector}):setTimeout(n)}},Qm=(()=>{class t{_checker=u(ac);_ngZone=u(ae);_document=u(ge);_injector=u(de);constructor(){u(ut).load(Qr)}create(e,i=!1){return new B0(e,this._checker,this._ngZone,this._document,i,this._injector)}static \u0275fac=function(i){return new(i||t)};static \u0275prov=O({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),vk=(()=>{class t{_elementRef=u(q);_focusTrapFactory=u(Qm);focusTrap;_previouslyFocusedElement=null;get enabled(){return this.focusTrap?.enabled||!1}set enabled(e){this.focusTrap&&(this.focusTrap.enabled=e)}autoCapture;constructor(){u(qe).isBrowser&&(this.focusTrap=this._focusTrapFactory.create(this._elementRef.nativeElement,!0))}ngOnDestroy(){this.focusTrap?.destroy(),this._previouslyFocusedElement&&(this._previouslyFocusedElement.focus(),this._previouslyFocusedElement=null)}ngAfterContentInit(){this.focusTrap?.attachAnchors(),this.autoCapture&&this._captureFocus()}ngDoCheck(){this.focusTrap&&!this.focusTrap.hasAttached()&&this.focusTrap.attachAnchors()}ngOnChanges(e){let i=e.autoCapture;i&&!i.firstChange&&this.autoCapture&&this.focusTrap?.hasAttached()&&this._captureFocus()}_captureFocus(){this._previouslyFocusedElement=_o(),this.focusTrap?.focusInitialElementWhenReady()}static \u0275fac=function(i){return new(i||t)};static \u0275dir=F({type:t,selectors:[["","cdkTrapFocus",""]],inputs:{enabled:[2,"cdkTrapFocus","enabled",V],autoCapture:[2,"cdkTrapFocusAutoCapture","autoCapture",V]},exportAs:["cdkTrapFocus"],features:[Ae]})}return t})(),OL=new T("liveAnnouncerElement",{providedIn:"root",factory:RL});function RL(){return null}var PL=new T("LIVE_ANNOUNCER_DEFAULT_OPTIONS"),rZ=0,Gf=(()=>{class t{_ngZone=u(ae);_defaultOptions=u(PL,{optional:!0});_liveElement;_document=u(ge);_previousTimeout;_currentPromise;_currentResolve;constructor(){let e=u(OL,{optional:!0});this._liveElement=e||this._createLiveElement()}announce(e,...i){let r=this._defaultOptions,o,a;return i.length===1&&typeof i[0]=="number"?a=i[0]:[o,a]=i,this.clear(),clearTimeout(this._previousTimeout),o||(o=r&&r.politeness?r.politeness:"polite"),a==null&&r&&(a=r.duration),this._liveElement.setAttribute("aria-live",o),this._liveElement.id&&this._exposeAnnouncerToModals(this._liveElement.id),this._ngZone.runOutsideAngular(()=>(this._currentPromise||(this._currentPromise=new Promise(s=>this._currentResolve=s)),clearTimeout(this._previousTimeout),this._previousTimeout=setTimeout(()=>{this._liveElement.textContent=e,typeof a=="number"&&(this._previousTimeout=setTimeout(()=>this.clear(),a)),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",i=this._document.getElementsByClassName(e),r=this._document.createElement("div");for(let o=0;o .cdk-overlay-container [aria-modal="true"]');for(let r=0;r{class t{_platform=u(qe);_hasCheckedHighContrastMode;_document=u(ge);_breakpointSubscription;constructor(){this._breakpointSubscription=u(sl).observe("(forced-colors: active)").subscribe(()=>{this._hasCheckedHighContrastMode&&(this._hasCheckedHighContrastMode=!1,this._applyBodyHighContrastModeCssClasses())})}getHighContrastMode(){if(!this._platform.isBrowser)return oc.NONE;let e=this._document.createElement("div");e.style.backgroundColor="rgb(1,2,3)",e.style.position="absolute",this._document.body.appendChild(e);let i=this._document.defaultView||window,r=i&&i.getComputedStyle?i.getComputedStyle(e):null,o=(r&&r.backgroundColor||"").replace(/ /g,"");switch(e.remove(),o){case"rgb(0,0,0)":case"rgb(45,50,54)":case"rgb(32,32,32)":return oc.WHITE_ON_BLACK;case"rgb(255,255,255)":case"rgb(255,250,239)":return oc.BLACK_ON_WHITE}return oc.NONE}ngOnDestroy(){this._breakpointSubscription.unsubscribe()}_applyBodyHighContrastModeCssClasses(){if(!this._hasCheckedHighContrastMode&&this._platform.isBrowser&&this._document.body){let e=this._document.body.classList;e.remove(bk,TL,IL),this._hasCheckedHighContrastMode=!0;let i=this.getHighContrastMode();i===oc.BLACK_ON_WHITE?e.add(bk,TL):i===oc.WHITE_ON_BLACK&&e.add(bk,IL)}}static \u0275fac=function(i){return new(i||t)};static \u0275prov=O({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),ll=(()=>{class t{constructor(){u(j0)._applyBodyHighContrastModeCssClasses()}static \u0275fac=function(i){return new(i||t)};static \u0275mod=ee({type:t});static \u0275inj=J({imports:[Ym]})}return t})();var yk={},Ze=(()=>{class t{_appId=u(ql);getId(e){return this._appId!=="ng"&&(e+=this._appId),yk.hasOwnProperty(e)||(yk[e]=0),`${e}${yk[e]++}`}static \u0275fac=function(i){return new(i||t)};static \u0275prov=O({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();var oZ=200,H0=class{_letterKeyStream=new z;_items=[];_selectedItemIndex=-1;_pressedLetters=[];_skipPredicateFn;_selectedItem=new z;selectedItem=this._selectedItem;constructor(n,e){let i=typeof e?.debounceInterval=="number"?e.debounceInterval:oZ;e?.skipPredicate&&(this._skipPredicateFn=e.skipPredicate),this.setItems(n),this._setupKeyHandler(i)}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)),Rt(n),ce(()=>this._pressedLetters.length>0),se(()=>this._pressedLetters.join("").toLocaleUpperCase())).subscribe(e=>{for(let i=1;it[e]):t.altKey||t.shiftKey||t.ctrlKey||t.metaKey}var Km=class{_items;_activeItemIndex=he(-1);_activeItem=he(null);_wrap=!1;_typeaheadSubscription=ke.EMPTY;_itemChangesSubscription;_vertical=!0;_horizontal;_allowedModifierKeys=[];_homeAndEnd=!1;_pageUpAndDown={enabled:!1,delta:10};_effectRef;_typeahead;_skipPredicateFn=n=>n.disabled;constructor(n,e){this._items=n,n instanceof pr?this._itemChangesSubscription=n.changes.subscribe(i=>this._itemsChanged(i.toArray())):is(n)&&(this._effectRef=Ar(()=>this._itemsChanged(n()),{injector:e}))}tabOut=new z;change=new z;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 H0(e,{debounceInterval:typeof n=="number"?n:void 0,skipPredicate:i=>this._skipPredicateFn(i)}),this._typeaheadSubscription=this._typeahead.selectedItem.subscribe(i=>{this.setActiveItem(i)}),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,r=["altKey","ctrlKey","metaKey","shiftKey"].every(o=>!n[o]||this._allowedModifierKeys.indexOf(o)>-1);switch(e){case 9:this.tabOut.next();return;case 40:if(this._vertical&&r){this.setNextItemActive();break}else return;case 38:if(this._vertical&&r){this.setPreviousItemActive();break}else return;case 39:if(this._horizontal&&r){this._horizontal==="rtl"?this.setPreviousItemActive():this.setNextItemActive();break}else return;case 37:if(this._horizontal&&r){this._horizontal==="rtl"?this.setNextItemActive():this.setPreviousItemActive();break}else return;case 36:if(this._homeAndEnd&&r){this.setFirstItemActive();break}else return;case 35:if(this._homeAndEnd&&r){this.setLastItemActive();break}else return;case 33:if(this._pageUpAndDown.enabled&&r){let o=this._activeItemIndex()-this._pageUpAndDown.delta;this._setActiveItemByIndex(o>0?o:0,1);break}else return;case 34:if(this._pageUpAndDown.enabled&&r){let o=this._activeItemIndex()+this._pageUpAndDown.delta,a=this._getItemsArray().length;this._setActiveItemByIndex(o-1&&i!==this._activeItemIndex()&&(this._activeItemIndex.set(i),this._typeahead?.setCurrentSelectedItemIndex(i))}}};var qd=class extends Km{setActiveItem(n){this.activeItem&&this.activeItem.setInactiveStyles(),super.setActiveItem(n),this.activeItem&&this.activeItem.setActiveStyles()}};var bs=class extends Km{_origin="program";setFocusOrigin(n){return this._origin=n,this}setActiveItem(n){super.setActiveItem(n),this.activeItem&&this.activeItem.focus(this._origin)}};var VL=" ";function Zm(t,n,e){let i=W0(t,n);e=e.trim(),!i.some(r=>r.trim()===e)&&(i.push(e),t.setAttribute(n,i.join(VL)))}function sc(t,n,e){let i=W0(t,n);e=e.trim();let r=i.filter(o=>o!==e);r.length?t.setAttribute(n,r.join(VL)):t.removeAttribute(n)}function W0(t,n){return t.getAttribute(n)?.match(/\S+/g)??[]}var BL="cdk-describedby-message",$0="cdk-describedby-host",Ck=0,Xm=(()=>{class t{_platform=u(qe);_document=u(ge);_messageRegistry=new Map;_messagesContainer=null;_id=`${Ck++}`;constructor(){u(ut).load(Qr),this._id=u(ql)+"-"+Ck++}describe(e,i,r){if(!this._canBeDescribed(e,i))return;let o=xk(i,r);typeof i!="string"?(LL(i,this._id),this._messageRegistry.set(o,{messageElement:i,referenceCount:0})):this._messageRegistry.has(o)||this._createMessageElement(i,r),this._isElementDescribedByMessage(e,o)||this._addMessageReference(e,o)}removeDescription(e,i,r){if(!i||!this._isElementNode(e))return;let o=xk(i,r);if(this._isElementDescribedByMessage(e,o)&&this._removeMessageReference(e,o),typeof i=="string"){let a=this._messageRegistry.get(o);a&&a.referenceCount===0&&this._deleteMessageElement(o)}this._messagesContainer?.childNodes.length===0&&(this._messagesContainer.remove(),this._messagesContainer=null)}ngOnDestroy(){let e=this._document.querySelectorAll(`[${$0}="${this._id}"]`);for(let i=0;ir.indexOf(BL)!=0);e.setAttribute("aria-describedby",i.join(" "))}_addMessageReference(e,i){let r=this._messageRegistry.get(i);Zm(e,"aria-describedby",r.messageElement.id),e.setAttribute($0,this._id),r.referenceCount++}_removeMessageReference(e,i){let r=this._messageRegistry.get(i);r.referenceCount--,sc(e,"aria-describedby",r.messageElement.id),e.removeAttribute($0)}_isElementDescribedByMessage(e,i){let r=W0(e,"aria-describedby"),o=this._messageRegistry.get(i),a=o&&o.messageElement.id;return!!a&&r.indexOf(a)!=-1}_canBeDescribed(e,i){if(!this._isElementNode(e))return!1;if(i&&typeof i=="object")return!0;let r=i==null?"":`${i}`.trim(),o=e.getAttribute("aria-label");return r?!o||o.trim()!==r:!1}_isElementNode(e){return e.nodeType===this._document.ELEMENT_NODE}static \u0275fac=function(i){return new(i||t)};static \u0275prov=O({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();function xk(t,n){return typeof t=="string"?`${n||""}/${t}`:t}function LL(t,n){t.id||(t.id=`${BL}-${n}-${Ck++}`)}var aZ=new T("cdk-dir-doc",{providedIn:"root",factory:sZ});function sZ(){return u(ge)}var lZ=/^(ar|ckb|dv|he|iw|fa|nqo|ps|sd|ug|ur|yi|.*[-_](Adlm|Arab|Hebr|Nkoo|Rohg|Thaa))(?!.*[-_](Latn|Cyrl)($|-|_))($|-|_)/i;function wk(t){let n=t?.toLowerCase()||"";return n==="auto"&&typeof navigator<"u"&&navigator?.language?lZ.test(navigator.language)?"rtl":"ltr":n==="rtl"?"rtl":"ltr"}var Vt=(()=>{class t{get value(){return this.valueSignal()}valueSignal=he("ltr");change=new U;constructor(){let e=u(aZ,{optional:!0});if(e){let i=e.body?e.body.dir:null,r=e.documentElement?e.documentElement.dir:null;this.valueSignal.set(wk(i||r||"ltr"))}}ngOnDestroy(){this.change.complete()}static \u0275fac=function(i){return new(i||t)};static \u0275prov=O({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();var HL=(()=>{class t{_isInitialized=!1;_rawDir;change=new U;get dir(){return this.valueSignal()}set dir(e){let i=this.valueSignal();this.valueSignal.set(wk(e)),this._rawDir=e,i!==this.valueSignal()&&this._isInitialized&&this.change.emit(this.valueSignal())}get value(){return this.dir}valueSignal=he("ltr");ngAfterContentInit(){this._isInitialized=!0}ngOnDestroy(){this.change.complete()}static \u0275fac=function(i){return new(i||t)};static \u0275dir=F({type:t,selectors:[["","dir",""]],hostVars:1,hostBindings:function(i,r){i&2&&X("dir",r._rawDir)},inputs:{dir:"dir"},outputs:{change:"dirChange"},exportAs:["dir"],features:[Ce([{provide:Vt,useExisting:t}])]})}return t})(),vs=(()=>{class t{static \u0275fac=function(i){return new(i||t)};static \u0275mod=ee({type:t});static \u0275inj=J({})}return t})();var we=(()=>{class t{constructor(){u(j0)._applyBodyHighContrastModeCssClasses()}static \u0275fac=function(i){return new(i||t)};static \u0275mod=ee({type:t});static \u0275inj=J({imports:[vs,vs]})}return t})();var cl=class{_defaultMatcher;ngControl;_parentFormGroup;_parentForm;_stateChanges;errorState=!1;matcher;constructor(n,e,i,r,o){this._defaultMatcher=n,this.ngControl=e,this._parentFormGroup=i,this._parentForm=r,this._stateChanges=o}updateErrorState(){let n=this.errorState,e=this._parentFormGroup||this._parentForm,i=this.matcher||this._defaultMatcher,r=this.ngControl?this.ngControl.control:null,o=i?.isErrorState(r,e)??!1;o!==n&&(this.errorState=o,this._stateChanges.next())}};var ys=new T("MAT_DATE_LOCALE",{providedIn:"root",factory:dZ});function dZ(){return u(el)}var Jm="Method not implemented",Li=class{locale;_localeChanges=new z;localeChanges=this._localeChanges;setTime(n,e,i,r){throw new Error(Jm)}getHours(n){throw new Error(Jm)}getMinutes(n){throw new Error(Jm)}getSeconds(n){throw new Error(Jm)}parseTime(n,e){throw new Error(Jm)}addSeconds(n,e){throw new Error(Jm)}getValidDateOrNull(n){return this.isDateInstance(n)&&this.isValid(n)?n:null}deserialize(n){return n==null||this.isDateInstance(n)&&this.isValid(n)?n:this.invalid()}setLocale(n){this.locale=n,this._localeChanges.next()}compareDate(n,e){return this.getYear(n)-this.getYear(e)||this.getMonth(n)-this.getMonth(e)||this.getDate(n)-this.getDate(e)}compareTime(n,e){return this.getHours(n)-this.getHours(e)||this.getMinutes(n)-this.getMinutes(e)||this.getSeconds(n)-this.getSeconds(e)}sameDate(n,e){if(n&&e){let i=this.isValid(n),r=this.isValid(e);return i&&r?!this.compareDate(n,e):i==r}return n==e}sameTime(n,e){if(n&&e){let i=this.isValid(n),r=this.isValid(e);return i&&r?!this.compareTime(n,e):i==r}return n==e}clampDate(n,e,i){return e&&this.compareDate(n,e)<0?e:i&&this.compareDate(n,i)>0?i:n}},xs=new T("mat-date-formats");var dl=(()=>{class t{isErrorState(e,i){return!!(e&&e.invalid&&(e.touched||i&&i.submitted))}static \u0275fac=function(i){return new(i||t)};static \u0275prov=O({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();var Di=(()=>{class t{static \u0275fac=function(i){return new(i||t)};static \u0275cmp=E({type:t,selectors:[["structural-styles"]],decls:0,vars:0,template:function(i,r){},styles:[`.mat-focus-indicator{position:relative}.mat-focus-indicator::before{top:0;left:0;right:0;bottom:0;position:absolute;box-sizing:border-box;pointer-events:none;display:var(--mat-focus-indicator-display, none);border-width:var(--mat-focus-indicator-border-width, 3px);border-style:var(--mat-focus-indicator-border-style, solid);border-color:var(--mat-focus-indicator-border-color, transparent);border-radius:var(--mat-focus-indicator-border-radius, 4px)}.mat-focus-indicator:focus::before{content:""}@media(forced-colors: active){html{--mat-focus-indicator-display: block}} +`],encapsulation:2,changeDetection:0})}return t})();var Aa=(function(t){return t[t.NORMAL=0]="NORMAL",t[t.NEGATED=1]="NEGATED",t[t.INVERTED=2]="INVERTED",t})(Aa||{}),G0,Yd;function q0(){if(Yd==null){if(typeof document!="object"||!document||typeof Element!="function"||!Element)return Yd=!1,Yd;if(document.documentElement?.style&&"scrollBehavior"in document.documentElement.style)Yd=!0;else{let t=Element.prototype.scrollTo;t?Yd=!/\{\s*\[native code\]\s*\}/.test(t.toString()):Yd=!1}}return Yd}function eh(){if(typeof document!="object"||!document)return Aa.NORMAL;if(G0==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"),i=e.style;i.width="2px",i.height="1px",t.appendChild(e),document.body.appendChild(t),G0=Aa.NORMAL,t.scrollLeft===0&&(t.scrollLeft=1,G0=t.scrollLeft===0?Aa.NEGATED:Aa.INVERTED),t.remove()}return G0}function Dk(){return typeof __karma__<"u"&&!!__karma__||typeof jasmine<"u"&&!!jasmine||typeof jest<"u"&&!!jest||typeof Mocha<"u"&&!!Mocha}var th,zL=["color","button","checkbox","date","datetime-local","email","file","hidden","image","month","number","password","radio","range","reset","search","submit","tel","text","time","url","week"];function Ek(){if(th)return th;if(typeof document!="object"||!document)return th=new Set(zL),th;let t=document.createElement("input");return th=new Set(zL.filter(n=>(t.setAttribute("type",n),t.type===n))),th}function on(t){return t==null?"":typeof t=="string"?t:`${t}px`}function Ai(t){return t!=null&&`${t}`!="false"}function UL(t,n=/\s+/){let e=[];if(t!=null){let i=Array.isArray(t)?t:`${t}`.split(n);for(let r of i){let o=`${r}`.trim();o&&e.push(o)}}return e}var vo=(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})(vo||{}),Y0=class{_renderer;element;config;_animationForciblyDisabledThroughCss;state=vo.HIDDEN;constructor(n,e,i,r=!1){this._renderer=n,this.element=e,this.config=i,this._animationForciblyDisabledThroughCss=r}fadeOut(){this._renderer.fadeOutRipple(this)}},$L=rc({passive:!0,capture:!0}),Mk=class{_events=new Map;addHandler(n,e,i,r){let o=this._events.get(e);if(o){let a=o.get(i);a?a.add(r):o.set(i,new Set([r]))}else this._events.set(e,new Map([[i,new Set([r])]])),n.runOutsideAngular(()=>{document.addEventListener(e,this._delegateEventHandler,$L)})}removeHandler(n,e,i){let r=this._events.get(n);if(!r)return;let o=r.get(e);o&&(o.delete(i),o.size===0&&r.delete(e),r.size===0&&(this._events.delete(n),document.removeEventListener(n,this._delegateEventHandler,$L)))}_delegateEventHandler=n=>{let e=Kn(n);e&&this._events.get(n.type)?.forEach((i,r)=>{(r===e||r.contains(e))&&i.forEach(o=>o.handleEvent(n))})}},ih={enterDuration:225,exitDuration:150},uZ=800,WL=rc({passive:!0,capture:!0}),GL=["mousedown","touchstart"],qL=["mouseup","mouseleave","touchend","touchcancel"],mZ=(()=>{class t{static \u0275fac=function(i){return new(i||t)};static \u0275cmp=E({type:t,selectors:[["ng-component"]],hostAttrs:["mat-ripple-style-loader",""],decls:0,vars:0,template:function(i,r){},styles:[`.mat-ripple{overflow:hidden;position:relative}.mat-ripple:not(:empty){transform:translateZ(0)}.mat-ripple.mat-ripple-unbounded{overflow:visible}.mat-ripple-element{position:absolute;border-radius:50%;pointer-events:none;transition:opacity,transform 0ms cubic-bezier(0, 0, 0.2, 1);transform:scale3d(0, 0, 0);background-color:var(--mat-ripple-color, color-mix(in srgb, var(--mat-sys-on-surface) 10%, transparent))}@media(forced-colors: active){.mat-ripple-element{display:none}}.cdk-drag-preview .mat-ripple-element,.cdk-drag-placeholder .mat-ripple-element{display:none} +`],encapsulation:2,changeDetection:0})}return t})(),lc=class t{_target;_ngZone;_platform;_containerElement;_triggerElement;_isPointerDown=!1;_activeRipples=new Map;_mostRecentTransientRipple;_lastTouchStartEvent;_pointerUpEventsRegistered=!1;_containerRect;static _eventManager=new Mk;constructor(n,e,i,r,o){this._target=n,this._ngZone=e,this._platform=r,r.isBrowser&&(this._containerElement=Pr(i)),o&&o.get(ut).load(mZ)}fadeInRipple(n,e,i={}){let r=this._containerRect=this._containerRect||this._containerElement.getBoundingClientRect(),o=M(M({},ih),i.animation);i.centered&&(n=r.left+r.width/2,e=r.top+r.height/2);let a=i.radius||hZ(n,e,r),s=n-r.left,l=e-r.top,c=o.enterDuration,d=document.createElement("div");d.classList.add("mat-ripple-element"),d.style.left=`${s-a}px`,d.style.top=`${l-a}px`,d.style.height=`${a*2}px`,d.style.width=`${a*2}px`,i.color!=null&&(d.style.backgroundColor=i.color),d.style.transitionDuration=`${c}ms`,this._containerElement.appendChild(d);let m=window.getComputedStyle(d),f=m.transitionProperty,b=m.transitionDuration,v=f==="none"||b==="0s"||b==="0s, 0s"||r.width===0&&r.height===0,w=new Y0(this,d,i,v);d.style.transform="scale3d(1, 1, 1)",w.state=vo.FADING_IN,i.persistent||(this._mostRecentTransientRipple=w);let x=null;return!v&&(c||o.exitDuration)&&this._ngZone.runOutsideAngular(()=>{let D=()=>{x&&(x.fallbackTimer=null),clearTimeout(W),this._finishRippleTransition(w)},P=()=>this._destroyRipple(w),W=setTimeout(P,c+100);d.addEventListener("transitionend",D),d.addEventListener("transitioncancel",P),x={onTransitionEnd:D,onTransitionCancel:P,fallbackTimer:W}}),this._activeRipples.set(w,x),(v||!c)&&this._finishRippleTransition(w),w}fadeOutRipple(n){if(n.state===vo.FADING_OUT||n.state===vo.HIDDEN)return;let e=n.element,i=M(M({},ih),n.config.animation);e.style.transitionDuration=`${i.exitDuration}ms`,e.style.opacity="0",n.state=vo.FADING_OUT,(n._animationForciblyDisabledThroughCss||!i.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=Pr(n);!this._platform.isBrowser||!e||e===this._triggerElement||(this._removeTriggerEvents(),this._triggerElement=e,GL.forEach(i=>{t._eventManager.addHandler(this._ngZone,i,e,this)}))}handleEvent(n){n.type==="mousedown"?this._onMousedown(n):n.type==="touchstart"?this._onTouchStart(n):this._onPointerUp(),this._pointerUpEventsRegistered||(this._ngZone.runOutsideAngular(()=>{qL.forEach(e=>{this._triggerElement.addEventListener(e,this,WL)})}),this._pointerUpEventsRegistered=!0)}_finishRippleTransition(n){n.state===vo.FADING_IN?this._startFadeOutTransition(n):n.state===vo.FADING_OUT&&this._destroyRipple(n)}_startFadeOutTransition(n){let e=n===this._mostRecentTransientRipple,{persistent:i}=n.config;n.state=vo.VISIBLE,!i&&(!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=vo.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=Wd(n),i=this._lastTouchStartEvent&&Date.now(){let e=n.state===vo.VISIBLE||n.config.terminateOnPointerUp&&n.state===vo.FADING_IN;!n.config.persistent&&e&&n.fadeOut()}))}_getActiveRipples(){return Array.from(this._activeRipples.keys())}_removeTriggerEvents(){let n=this._triggerElement;n&&(GL.forEach(e=>t._eventManager.removeHandler(e,n,this)),this._pointerUpEventsRegistered&&(qL.forEach(e=>n.removeEventListener(e,this,WL)),this._pointerUpEventsRegistered=!1))}};function hZ(t,n,e){let i=Math.max(Math.abs(t-e.left),Math.abs(t-e.right)),r=Math.max(Math.abs(n-e.top),Math.abs(n-e.bottom));return Math.sqrt(i*i+r*r)}var Cs=new T("mat-ripple-global-options"),Vn=(()=>{class t{_elementRef=u(q);_animationsDisabled=Ye();color;unbounded;centered;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=u(ae),i=u(qe),r=u(Cs,{optional:!0}),o=u(de);this._globalOptions=r||{},this._rippleRenderer=new lc(this,e,this._elementRef,i,o)}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:M(M(M({},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,i=0,r){return typeof e=="number"?this._rippleRenderer.fadeInRipple(e,i,M(M({},this.rippleConfig),r)):this._rippleRenderer.fadeInRipple(0,0,M(M({},this.rippleConfig),e))}static \u0275fac=function(i){return new(i||t)};static \u0275dir=F({type:t,selectors:[["","mat-ripple",""],["","matRipple",""]],hostAttrs:[1,"mat-ripple"],hostVars:2,hostBindings:function(i,r){i&2&&G("mat-ripple-unbounded",r.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 yo=(()=>{class t{static \u0275fac=function(i){return new(i||t)};static \u0275mod=ee({type:t});static \u0275inj=J({imports:[we,we]})}return t})();var Qd=(()=>{class t{_animationsDisabled=Ye();state="unchecked";disabled=!1;appearance="full";constructor(){}static \u0275fac=function(i){return new(i||t)};static \u0275cmp=E({type:t,selectors:[["mat-pseudo-checkbox"]],hostAttrs:[1,"mat-pseudo-checkbox"],hostVars:12,hostBindings:function(i,r){i&2&&G("mat-pseudo-checkbox-indeterminate",r.state==="indeterminate")("mat-pseudo-checkbox-checked",r.state==="checked")("mat-pseudo-checkbox-disabled",r.disabled)("mat-pseudo-checkbox-minimal",r.appearance==="minimal")("mat-pseudo-checkbox-full",r.appearance==="full")("_mat-animation-noopable",r._animationsDisabled)},inputs:{state:"state",disabled:"disabled",appearance:"appearance"},decls:0,vars:0,template:function(i,r){},styles:[`.mat-pseudo-checkbox{border-radius:2px;cursor:pointer;display:inline-block;vertical-align:middle;box-sizing:border-box;position:relative;flex-shrink:0;transition:border-color 90ms cubic-bezier(0, 0, 0.2, 0.1),background-color 90ms cubic-bezier(0, 0, 0.2, 0.1)}.mat-pseudo-checkbox::after{position:absolute;opacity:0;content:"";border-bottom:2px solid currentColor;transition:opacity 90ms cubic-bezier(0, 0, 0.2, 0.1)}.mat-pseudo-checkbox._mat-animation-noopable{transition:none !important;animation:none !important}.mat-pseudo-checkbox._mat-animation-noopable::after{transition:none}.mat-pseudo-checkbox-disabled{cursor:default}.mat-pseudo-checkbox-indeterminate::after{left:1px;opacity:1;border-radius:2px}.mat-pseudo-checkbox-checked::after{left:1px;border-left:2px solid currentColor;transform:rotate(-45deg);opacity:1;box-sizing:content-box}.mat-pseudo-checkbox-minimal.mat-pseudo-checkbox-checked::after,.mat-pseudo-checkbox-minimal.mat-pseudo-checkbox-indeterminate::after{color:var(--mat-pseudo-checkbox-minimal-selected-checkmark-color, var(--mat-sys-primary))}.mat-pseudo-checkbox-minimal.mat-pseudo-checkbox-checked.mat-pseudo-checkbox-disabled::after,.mat-pseudo-checkbox-minimal.mat-pseudo-checkbox-indeterminate.mat-pseudo-checkbox-disabled::after{color:var(--mat-pseudo-checkbox-minimal-disabled-selected-checkmark-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent))}.mat-pseudo-checkbox-full{border-color:var(--mat-pseudo-checkbox-full-unselected-icon-color, var(--mat-sys-on-surface-variant));border-width:2px;border-style:solid}.mat-pseudo-checkbox-full.mat-pseudo-checkbox-disabled{border-color:var(--mat-pseudo-checkbox-full-disabled-unselected-icon-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent))}.mat-pseudo-checkbox-full.mat-pseudo-checkbox-checked,.mat-pseudo-checkbox-full.mat-pseudo-checkbox-indeterminate{background-color:var(--mat-pseudo-checkbox-full-selected-icon-color, var(--mat-sys-primary));border-color:rgba(0,0,0,0)}.mat-pseudo-checkbox-full.mat-pseudo-checkbox-checked::after,.mat-pseudo-checkbox-full.mat-pseudo-checkbox-indeterminate::after{color:var(--mat-pseudo-checkbox-full-selected-checkmark-color, var(--mat-sys-on-primary))}.mat-pseudo-checkbox-full.mat-pseudo-checkbox-checked.mat-pseudo-checkbox-disabled,.mat-pseudo-checkbox-full.mat-pseudo-checkbox-indeterminate.mat-pseudo-checkbox-disabled{background-color:var(--mat-pseudo-checkbox-full-disabled-selected-icon-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent))}.mat-pseudo-checkbox-full.mat-pseudo-checkbox-checked.mat-pseudo-checkbox-disabled::after,.mat-pseudo-checkbox-full.mat-pseudo-checkbox-indeterminate.mat-pseudo-checkbox-disabled::after{color:var(--mat-pseudo-checkbox-full-disabled-selected-checkmark-color, var(--mat-sys-surface))}.mat-pseudo-checkbox{width:18px;height:18px}.mat-pseudo-checkbox-minimal.mat-pseudo-checkbox-checked::after{width:14px;height:6px;transform-origin:center;top:-4.2426406871px;left:0;bottom:0;right:0;margin:auto}.mat-pseudo-checkbox-minimal.mat-pseudo-checkbox-indeterminate::after{top:8px;width:16px}.mat-pseudo-checkbox-full.mat-pseudo-checkbox-checked::after{width:10px;height:4px;transform-origin:center;top:-2.8284271247px;left:0;bottom:0;right:0;margin:auto}.mat-pseudo-checkbox-full.mat-pseudo-checkbox-indeterminate::after{top:6px;width:12px} +`],encapsulation:2,changeDetection:0})}return t})();var Q0=(()=>{class t{static \u0275fac=function(i){return new(i||t)};static \u0275mod=ee({type:t});static \u0275inj=J({imports:[we]})}return t})();var pZ=["*",[["mat-option"],["ng-container"]]],fZ=["*","mat-option, ng-container"],gZ=["text"],_Z=[[["mat-icon"]],"*"],bZ=["mat-icon","*"];function vZ(t,n){if(t&1&&k(0,"mat-pseudo-checkbox",1),t&2){let e=C();y("disabled",e.disabled)("state",e.selected?"checked":"unchecked")}}function yZ(t,n){if(t&1&&k(0,"mat-pseudo-checkbox",3),t&2){let e=C();y("disabled",e.disabled)}}function xZ(t,n){if(t&1&&(h(0,"span",4),_(1),p()),t&2){let e=C();g(),ve("(",e.group.label,")")}}var Kd=new T("MAT_OPTION_PARENT_COMPONENT"),Zd=new T("MatOptgroup"),kk=(()=>{class t{label;disabled=!1;_labelId=u(Ze).getId("mat-optgroup-label-");_inert;constructor(){let e=u(Kd,{optional:!0});this._inert=e?.inertGroups??!1}static \u0275fac=function(i){return new(i||t)};static \u0275cmp=E({type:t,selectors:[["mat-optgroup"]],hostAttrs:[1,"mat-mdc-optgroup"],hostVars:3,hostBindings:function(i,r){i&2&&X("role",r._inert?null:"group")("aria-disabled",r._inert?null:r.disabled.toString())("aria-labelledby",r._inert?null:r._labelId)},inputs:{label:"label",disabled:[2,"disabled","disabled",V]},exportAs:["matOptgroup"],features:[Ce([{provide:Zd,useExisting:t}])],ngContentSelectors:fZ,decls:5,vars:4,consts:[["role","presentation",1,"mat-mdc-optgroup-label",3,"id"],[1,"mdc-list-item__primary-text"]],template:function(i,r){i&1&&(Me(pZ),ft(0,"span",0)(1,"span",1),_(2),oe(3),vt()(),oe(4,1)),i&2&&(G("mdc-list-item--disabled",r.disabled),si("id",r._labelId),g(2),ve("",r.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));font-size:var(--mat-optgroup-label-text-size, var(--mat-sys-title-small-size));letter-spacing:var(--mat-optgroup-label-text-tracking, var(--mat-sys-title-small-tracking));font-weight:var(--mat-optgroup-label-text-weight, var(--mat-sys-title-small-weight))}.mat-mdc-optgroup-label{display:flex;position:relative;align-items:center;justify-content:flex-start;overflow:hidden;min-height:48px;padding:0 16px;outline:none}.mat-mdc-optgroup-label.mdc-list-item--disabled{opacity:.38}.mat-mdc-optgroup-label .mdc-list-item__primary-text{font-size:inherit;font-weight:inherit;letter-spacing:inherit;line-height:inherit;font-family:inherit;text-decoration:inherit;text-transform:inherit;white-space:normal;color:inherit} +`],encapsulation:2,changeDetection:0})}return t})(),nh=class{source;isUserInput;constructor(n,e=!1){this.source=n,this.isUserInput=e}},xn=(()=>{class t{_element=u(q);_changeDetectorRef=u(ye);_parent=u(Kd,{optional:!0});group=u(Zd,{optional:!0});_signalDisableRipple=!1;_selected=!1;_active=!1;_mostRecentViewValue="";get multiple(){return this._parent&&this._parent.multiple}get selected(){return this._selected}value;id=u(Ze).getId("mat-option-");get disabled(){return this.group&&this.group.disabled||this._disabled()}set disabled(e){this._disabled.set(e)}_disabled=he(!1);get disableRipple(){return this._signalDisableRipple?this._parent.disableRipple():!!this._parent?.disableRipple}get hideSingleSelectionIndicator(){return!!(this._parent&&this._parent.hideSingleSelectionIndicator)}onSelectionChange=new U;_text;_stateChanges=new z;constructor(){let e=u(ut);e.load(Di),e.load(Qr),this._signalDisableRipple=!!this._parent&&is(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,i){let r=this._getHostElement();typeof r.focus=="function"&&r.focus(i)}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)&&!Ft(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 nh(this,e))}static \u0275fac=function(i){return new(i||t)};static \u0275cmp=E({type:t,selectors:[["mat-option"]],viewQuery:function(i,r){if(i&1&&ie(gZ,7),i&2){let o;B(o=j())&&(r._text=o.first)}},hostAttrs:["role","option",1,"mat-mdc-option","mdc-list-item"],hostVars:11,hostBindings:function(i,r){i&1&&S("click",function(){return r._selectViaInteraction()})("keydown",function(a){return r._handleKeydown(a)}),i&2&&(si("id",r.id),X("aria-selected",r.selected)("aria-disabled",r.disabled.toString()),G("mdc-list-item--selected",r.selected)("mat-mdc-option-multiple",r.multiple)("mat-mdc-option-active",r.active)("mdc-list-item--disabled",r.disabled))},inputs:{value:"value",id:"id",disabled:[2,"disabled","disabled",V]},outputs:{onSelectionChange:"onSelectionChange"},exportAs:["matOption"],ngContentSelectors:bZ,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(i,r){i&1&&(Me(_Z),N(0,vZ,1,2,"mat-pseudo-checkbox",1),oe(1),h(2,"span",2,0),oe(4,1),p(),N(5,yZ,1,1,"mat-pseudo-checkbox",3),N(6,xZ,2,1,"span",4),k(7,"div",5)),i&2&&(L(r.multiple?0:-1),g(5),L(!r.multiple&&r.selected&&!r.hideSingleSelectionIndicator?5:-1),g(),L(r.group&&r.group._inert?6:-1),g(),y("matRippleTrigger",r._getHostElement())("matRippleDisabled",r.disabled||r.disableRipple))},dependencies:[Qd,Vn],styles:[`.mat-mdc-option{-webkit-user-select:none;user-select:none;-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;display:flex;position:relative;align-items:center;justify-content:flex-start;overflow:hidden;min-height:48px;padding:0 16px;cursor:pointer;-webkit-tap-highlight-color:rgba(0,0,0,0);color:var(--mat-option-label-text-color, var(--mat-sys-on-surface));font-family:var(--mat-option-label-text-font, var(--mat-sys-label-large-font));line-height:var(--mat-option-label-text-line-height, var(--mat-sys-label-large-line-height));font-size:var(--mat-option-label-text-size, var(--mat-sys-body-large-size));letter-spacing:var(--mat-option-label-text-tracking, var(--mat-sys-label-large-tracking));font-weight:var(--mat-option-label-text-weight, var(--mat-sys-body-large-weight))}.mat-mdc-option:hover:not(.mdc-list-item--disabled){background-color:var(--mat-option-hover-state-layer-color, color-mix(in srgb, var(--mat-sys-on-surface) calc(var(--mat-sys-hover-state-layer-opacity) * 100%), transparent))}.mat-mdc-option:focus.mdc-list-item,.mat-mdc-option.mat-mdc-option-active.mdc-list-item{background-color:var(--mat-option-focus-state-layer-color, color-mix(in srgb, var(--mat-sys-on-surface) calc(var(--mat-sys-focus-state-layer-opacity) * 100%), transparent));outline:0}.mat-mdc-option.mdc-list-item--selected:not(.mdc-list-item--disabled):not(.mat-mdc-option-multiple){background-color:var(--mat-option-selected-state-layer-color, var(--mat-sys-secondary-container))}.mat-mdc-option.mdc-list-item--selected:not(.mdc-list-item--disabled):not(.mat-mdc-option-multiple) .mdc-list-item__primary-text{color:var(--mat-option-selected-state-label-text-color, var(--mat-sys-on-secondary-container))}.mat-mdc-option .mat-pseudo-checkbox{--mat-pseudo-checkbox-minimal-selected-checkmark-color: var(--mat-option-selected-state-label-text-color, var(--mat-sys-on-secondary-container))}.mat-mdc-option.mdc-list-item{align-items:center;background:rgba(0,0,0,0)}.mat-mdc-option.mdc-list-item--disabled{cursor:default;pointer-events:none}.mat-mdc-option.mdc-list-item--disabled .mat-mdc-option-pseudo-checkbox,.mat-mdc-option.mdc-list-item--disabled .mdc-list-item__primary-text,.mat-mdc-option.mdc-list-item--disabled>mat-icon{opacity:.38}.mat-mdc-optgroup .mat-mdc-option:not(.mat-mdc-option-multiple){padding-left:32px}[dir=rtl] .mat-mdc-optgroup .mat-mdc-option:not(.mat-mdc-option-multiple){padding-left:16px;padding-right:32px}.mat-mdc-option .mat-icon,.mat-mdc-option .mat-pseudo-checkbox-full{margin-right:16px;flex-shrink:0}[dir=rtl] .mat-mdc-option .mat-icon,[dir=rtl] .mat-mdc-option .mat-pseudo-checkbox-full{margin-right:0;margin-left:16px}.mat-mdc-option .mat-pseudo-checkbox-minimal{margin-left:16px;flex-shrink:0}[dir=rtl] .mat-mdc-option .mat-pseudo-checkbox-minimal{margin-right:16px;margin-left:0}.mat-mdc-option .mat-mdc-option-ripple{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none}.mat-mdc-option .mdc-list-item__primary-text{white-space:normal;font-size:inherit;font-weight:inherit;letter-spacing:inherit;line-height:inherit;font-family:inherit;text-decoration:inherit;text-transform:inherit;margin-right:auto}[dir=rtl] .mat-mdc-option .mdc-list-item__primary-text{margin-right:0;margin-left:auto}@media(forced-colors: active){.mat-mdc-option.mdc-list-item--selected:not(:has(.mat-mdc-option-pseudo-checkbox))::after{content:"";position:absolute;top:50%;right:16px;transform:translateY(-50%);width:10px;height:0;border-bottom:solid 10px;border-radius:10px}[dir=rtl] .mat-mdc-option.mdc-list-item--selected:not(:has(.mat-mdc-option-pseudo-checkbox))::after{right:auto;left:16px}}.mat-mdc-option-multiple{--mat-list-list-item-selected-container-color: var(--mat-list-list-item-container-color, transparent)}.mat-mdc-option-active .mat-focus-indicator::before{content:""} +`],encapsulation:2,changeDetection:0})}return t})();function Qf(t,n,e){if(e.length){let i=n.toArray(),r=e.toArray(),o=0;for(let a=0;ae+i?Math.max(0,t-i+n):e}var rh=(()=>{class t{static \u0275fac=function(i){return new(i||t)};static \u0275mod=ee({type:t});static \u0275inj=J({imports:[yo,we,Q0,xn]})}return t})();var CZ={capture:!0},wZ=["focus","mousedown","mouseenter","touchstart"],Sk="mat-ripple-loader-uninitialized",Tk="mat-ripple-loader-class-name",YL="mat-ripple-loader-centered",K0="mat-ripple-loader-disabled",Z0=(()=>{class t{_document=u(ge);_animationsDisabled=Ye();_globalRippleOptions=u(Cs,{optional:!0});_platform=u(qe);_ngZone=u(ae);_injector=u(de);_eventCleanups;_hosts=new Map;constructor(){let e=u(cn).createRenderer(null,null);this._eventCleanups=this._ngZone.runOutsideAngular(()=>wZ.map(i=>e.listen(this._document,i,this._onInteraction,CZ)))}ngOnDestroy(){let e=this._hosts.keys();for(let i of e)this.destroyRipple(i);this._eventCleanups.forEach(i=>i())}configureRipple(e,i){e.setAttribute(Sk,this._globalRippleOptions?.namespace??""),(i.className||!e.hasAttribute(Tk))&&e.setAttribute(Tk,i.className||""),i.centered&&e.setAttribute(YL,""),i.disabled&&e.setAttribute(K0,"")}setDisabled(e,i){let r=this._hosts.get(e);r?(r.target.rippleDisabled=i,!i&&!r.hasSetUpEvents&&(r.hasSetUpEvents=!0,r.renderer.setupTriggerEvents(e))):i?e.setAttribute(K0,""):e.removeAttribute(K0)}_onInteraction=e=>{let i=Kn(e);if(i instanceof HTMLElement){let r=i.closest(`[${Sk}="${this._globalRippleOptions?.namespace??""}"]`);r&&this._createRipple(r)}};_createRipple(e){if(!this._document||this._hosts.has(e))return;e.querySelector(".mat-ripple")?.remove();let i=this._document.createElement("span");i.classList.add("mat-ripple",e.getAttribute(Tk)),e.append(i);let r=this._globalRippleOptions,o=this._animationsDisabled?0:r?.animation?.enterDuration??ih.enterDuration,a=this._animationsDisabled?0:r?.animation?.exitDuration??ih.exitDuration,s={rippleDisabled:this._animationsDisabled||r?.disabled||e.hasAttribute(K0),rippleConfig:{centered:e.hasAttribute(YL),terminateOnPointerUp:r?.terminateOnPointerUp,animation:{enterDuration:o,exitDuration:a}}},l=new lc(s,this._ngZone,i,this._platform,this._injector),c=!s.rippleDisabled;c&&l.setupTriggerEvents(e),this._hosts.set(e,{target:s,renderer:l,hasSetUpEvents:c}),e.removeAttribute(Sk)}destroyRipple(e){let i=this._hosts.get(e);i&&(i.renderer._removeTriggerEvents(),this._hosts.delete(e))}static \u0275fac=function(i){return new(i||t)};static \u0275prov=O({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();var DZ=/^\d{4}-\d{2}-\d{2}(?:T\d{2}:\d{2}:\d{2}(?:\.\d+)?(?:Z|(?:(?:\+|-)\d{2}:\d{2}))?)?$/,EZ=/^(\d?\d)[:.](\d?\d)(?:[:.](\d?\d))?\s*(AM|PM)?$/i;function Ik(t,n){let e=Array(t);for(let i=0;i{class t extends Li{useUtcForDisplay=!1;_matDateLocale=u(ys,{optional:!0});constructor(){super();let e=u(ys,{optional:!0});e!==void 0&&(this._matDateLocale=e),super.setLocale(this._matDateLocale)}getYear(e){return e.getFullYear()}getMonth(e){return e.getMonth()}getDate(e){return e.getDate()}getDayOfWeek(e){return e.getDay()}getMonthNames(e){let i=new Intl.DateTimeFormat(this.locale,{month:e,timeZone:"utc"});return Ik(12,r=>this._format(i,new Date(2017,r,1)))}getDateNames(){let e=new Intl.DateTimeFormat(this.locale,{day:"numeric",timeZone:"utc"});return Ik(31,i=>this._format(e,new Date(2017,0,i+1)))}getDayOfWeekNames(e){let i=new Intl.DateTimeFormat(this.locale,{weekday:e,timeZone:"utc"});return Ik(7,r=>this._format(i,new Date(2017,0,r+1)))}getYearName(e){let i=new Intl.DateTimeFormat(this.locale,{year:"numeric",timeZone:"utc"});return this._format(i,e)}getFirstDayOfWeek(){if(typeof Intl<"u"&&Intl.Locale){let e=new Intl.Locale(this.locale),i=(e.getWeekInfo?.()||e.weekInfo)?.firstDay??0;return i===7?0:i}return 0}getNumDaysInMonth(e){return this.getDate(this._createDateWithOverflow(this.getYear(e),this.getMonth(e)+1,0))}clone(e){return new Date(e.getTime())}createDate(e,i,r){let o=this._createDateWithOverflow(e,i,r);return o.getMonth()!=i,o}today(){return new Date}parse(e,i){return typeof e=="number"?new Date(e):e?new Date(Date.parse(e)):null}format(e,i){if(!this.isValid(e))throw Error("NativeDateAdapter: Cannot format invalid date.");let r=new Intl.DateTimeFormat(this.locale,De(M({},i),{timeZone:"utc"}));return this._format(r,e)}addCalendarYears(e,i){return this.addCalendarMonths(e,i*12)}addCalendarMonths(e,i){let r=this._createDateWithOverflow(this.getYear(e),this.getMonth(e)+i,this.getDate(e));return this.getMonth(r)!=((this.getMonth(e)+i)%12+12)%12&&(r=this._createDateWithOverflow(this.getYear(r),this.getMonth(r),0)),r}addCalendarDays(e,i){return this._createDateWithOverflow(this.getYear(e),this.getMonth(e),this.getDate(e)+i)}toIso8601(e){return[e.getUTCFullYear(),this._2digit(e.getUTCMonth()+1),this._2digit(e.getUTCDate())].join("-")}deserialize(e){if(typeof e=="string"){if(!e)return null;if(DZ.test(e)){let i=new Date(e);if(this.isValid(i))return i}}return super.deserialize(e)}isDateInstance(e){return e instanceof Date}isValid(e){return!isNaN(e.getTime())}invalid(){return new Date(NaN)}setTime(e,i,r,o){let a=this.clone(e);return a.setHours(i,r,o,0),a}getHours(e){return e.getHours()}getMinutes(e){return e.getMinutes()}getSeconds(e){return e.getSeconds()}parseTime(e,i){if(typeof e!="string")return e instanceof Date?new Date(e.getTime()):null;let r=e.trim();if(r.length===0)return null;let o=this._parseTimeString(r);if(o===null){let a=r.replace(/[^0-9:(AM|PM)]/gi,"").trim();a.length>0&&(o=this._parseTimeString(a))}return o||this.invalid()}addSeconds(e,i){return new Date(e.getTime()+i*1e3)}_createDateWithOverflow(e,i,r){let o=new Date;return o.setFullYear(e,i,r),o.setHours(0,0,0,0),o}_2digit(e){return("00"+e).slice(-2)}_format(e,i){let r=new Date;return r.setUTCFullYear(i.getFullYear(),i.getMonth(),i.getDate()),r.setUTCHours(i.getHours(),i.getMinutes(),i.getSeconds(),i.getMilliseconds()),e.format(r)}_parseTimeString(e){let i=e.toUpperCase().match(EZ);if(i){let r=parseInt(i[1]),o=parseInt(i[2]),a=i[3]==null?void 0:parseInt(i[3]),s=i[4];if(r===12?r=s==="AM"?0:r:s==="PM"&&(r+=12),Ak(r,0,23)&&Ak(o,0,59)&&(a==null||Ak(a,0,59)))return this.setTime(this.today(),r,o,a||0)}return null}static \u0275fac=function(i){return new(i||t)};static \u0275prov=O({token:t,factory:t.\u0275fac})}return t})();function Ak(t,n,e){return!isNaN(t)&&t>=n&&t<=e}var MZ={parse:{dateInput:null,timeInput:null},display:{dateInput:{year:"numeric",month:"numeric",day:"numeric"},timeInput:{hour:"numeric",minute:"numeric"},monthYearLabel:{year:"numeric",month:"short"},dateA11yLabel:{year:"numeric",month:"long",day:"numeric"},monthYearA11yLabel:{year:"numeric",month:"long"},timeOptionLabel:{hour:"numeric",minute:"numeric"}}};var KL=(()=>{class t{static \u0275fac=function(i){return new(i||t)};static \u0275mod=ee({type:t});static \u0275inj=J({providers:[kZ()]})}return t})();function kZ(t=MZ){return[{provide:Li,useClass:QL},{provide:xs,useValue:t}]}var SZ=Math.pow(10,8)*24*60*60*1e3,Pje=-SZ,X0=6048e5,XL=864e5,Xd=6e4,Jd=36e5,JL=1e3;var TZ=3600;var eV=TZ*24,Fje=eV*7,IZ=eV*365.2425,AZ=IZ/12,Nje=AZ*3,Ok=Symbol.for("constructDateFrom");function rt(t,n){return typeof t=="function"?t(n):t&&typeof t=="object"&&Ok in t?t[Ok](n):t instanceof Date?new t.constructor(n):new Date(n)}function Ie(t,n){return rt(n||t,t)}function oh(t,n,e){let i=Ie(t,e?.in);return isNaN(n)?rt(e?.in||t,NaN):(n&&i.setDate(i.getDate()+n),i)}function ah(t,n,e){let i=Ie(t,e?.in);if(isNaN(n))return rt(e?.in||t,NaN);if(!n)return i;let r=i.getDate(),o=rt(e?.in||t,i.getTime());o.setMonth(i.getMonth()+n+1,0);let a=o.getDate();return r>=a?o:(i.setFullYear(o.getFullYear(),o.getMonth(),r),i)}function J0(t,n,e){return rt(e?.in||t,+Ie(t)+n)}function tV(t,n,e){return J0(t,n*Jd,e)}var OZ={};function Yo(){return OZ}function Zn(t,n){let e=Yo(),i=n?.weekStartsOn??n?.locale?.options?.weekStartsOn??e.weekStartsOn??e.locale?.options?.weekStartsOn??0,r=Ie(t,n?.in),o=r.getDay(),a=(o=o.getTime()?i+1:e.getTime()>=s.getTime()?i:i-1}function eu(t){let n=Ie(t),e=new Date(Date.UTC(n.getFullYear(),n.getMonth(),n.getDate(),n.getHours(),n.getMinutes(),n.getSeconds(),n.getMilliseconds()));return e.setUTCFullYear(n.getFullYear()),+t-+e}function ty(t,...n){let e=rt.bind(null,t||n.find(i=>typeof i=="object"));return n.map(e)}function Rk(t,n){let e=Ie(t,n?.in);return e.setHours(0,0,0,0),e}function iV(t,n,e){let[i,r]=ty(e?.in,t,n),o=Rk(i),a=Rk(r),s=+o-eu(o),l=+a-eu(a);return Math.round((s-l)/XL)}function nV(t,n){let e=ey(t,n),i=rt(n?.in||t,0);return i.setFullYear(e,0,4),i.setHours(0,0,0,0),Oa(i)}function rV(t,n,e){let i=Ie(t,e?.in);return i.setTime(i.getTime()+n*Xd),i}function oV(t,n,e){return J0(t,n*1e3,e)}function aV(t,n,e){return ah(t,n*12,e)}function iy(t){return t instanceof Date||typeof t=="object"&&Object.prototype.toString.call(t)==="[object Date]"}function sh(t){return!(!iy(t)&&typeof t!="number"||isNaN(+Ie(t)))}function sV(t,n){let e=Ie(t,n?.in);return e.setDate(1),e.setHours(0,0,0,0),e}function lV(t,n){let e=Ie(t,n?.in);return e.setFullYear(e.getFullYear(),0,1),e.setHours(0,0,0,0),e}var RZ={lessThanXSeconds:{one:"less than a second",other:"less than {{count}} seconds"},xSeconds:{one:"1 second",other:"{{count}} seconds"},halfAMinute:"half a minute",lessThanXMinutes:{one:"less than a minute",other:"less than {{count}} minutes"},xMinutes:{one:"1 minute",other:"{{count}} minutes"},aboutXHours:{one:"about 1 hour",other:"about {{count}} hours"},xHours:{one:"1 hour",other:"{{count}} hours"},xDays:{one:"1 day",other:"{{count}} days"},aboutXWeeks:{one:"about 1 week",other:"about {{count}} weeks"},xWeeks:{one:"1 week",other:"{{count}} weeks"},aboutXMonths:{one:"about 1 month",other:"about {{count}} months"},xMonths:{one:"1 month",other:"{{count}} months"},aboutXYears:{one:"about 1 year",other:"about {{count}} years"},xYears:{one:"1 year",other:"{{count}} years"},overXYears:{one:"over 1 year",other:"over {{count}} years"},almostXYears:{one:"almost 1 year",other:"almost {{count}} years"}},cV=(t,n,e)=>{let i,r=RZ[t];return typeof r=="string"?i=r:n===1?i=r.one:i=r.other.replace("{{count}}",n.toString()),e?.addSuffix?e.comparison&&e.comparison>0?"in "+i:i+" ago":i};function Qo(t){return(n={})=>{let e=n.width?String(n.width):t.defaultWidth;return t.formats[e]||t.formats[t.defaultWidth]}}var PZ={full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},FZ={full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},NZ={full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},dV={date:Qo({formats:PZ,defaultWidth:"full"}),time:Qo({formats:FZ,defaultWidth:"full"}),dateTime:Qo({formats:NZ,defaultWidth:"full"})};var LZ={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"},uV=(t,n,e,i)=>LZ[t];function Bn(t){return(n,e)=>{let i=e?.context?String(e.context):"standalone",r;if(i==="formatting"&&t.formattingValues){let a=t.defaultFormattingWidth||t.defaultWidth,s=e?.width?String(e.width):a;r=t.formattingValues[s]||t.formattingValues[a]}else{let a=t.defaultWidth,s=e?.width?String(e.width):t.defaultWidth;r=t.values[s]||t.values[a]}let o=t.argumentCallback?t.argumentCallback(n):n;return r[o]}}var VZ={narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},BZ={narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},jZ={narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],wide:["January","February","March","April","May","June","July","August","September","October","November","December"]},HZ={narrow:["S","M","T","W","T","F","S"],short:["Su","Mo","Tu","We","Th","Fr","Sa"],abbreviated:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],wide:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},zZ={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"}},UZ={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"}},$Z=(t,n)=>{let e=Number(t),i=e%100;if(i>20||i<10)switch(i%10){case 1:return e+"st";case 2:return e+"nd";case 3:return e+"rd"}return e+"th"},mV={ordinalNumber:$Z,era:Bn({values:VZ,defaultWidth:"wide"}),quarter:Bn({values:BZ,defaultWidth:"wide",argumentCallback:t=>t-1}),month:Bn({values:jZ,defaultWidth:"wide"}),day:Bn({values:HZ,defaultWidth:"wide"}),dayPeriod:Bn({values:zZ,defaultWidth:"wide",formattingValues:UZ,defaultFormattingWidth:"wide"})};function jn(t){return(n,e={})=>{let i=e.width,r=i&&t.matchPatterns[i]||t.matchPatterns[t.defaultMatchWidth],o=n.match(r);if(!o)return null;let a=o[0],s=i&&t.parsePatterns[i]||t.parsePatterns[t.defaultParseWidth],l=Array.isArray(s)?GZ(s,m=>m.test(a)):WZ(s,m=>m.test(a)),c;c=t.valueCallback?t.valueCallback(l):l,c=e.valueCallback?e.valueCallback(c):c;let d=n.slice(a.length);return{value:c,rest:d}}}function WZ(t,n){for(let e in t)if(Object.prototype.hasOwnProperty.call(t,e)&&n(t[e]))return e}function GZ(t,n){for(let e=0;e{let i=n.match(t.matchPattern);if(!i)return null;let r=i[0],o=n.match(t.parsePattern);if(!o)return null;let a=t.valueCallback?t.valueCallback(o[0]):o[0];a=e.valueCallback?e.valueCallback(a):a;let s=n.slice(r.length);return{value:a,rest:s}}}var qZ=/^(\d+)(th|st|nd|rd)?/i,YZ=/\d+/i,QZ={narrow:/^(b|a)/i,abbreviated:/^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,wide:/^(before christ|before common era|anno domini|common era)/i},KZ={any:[/^b/i,/^(a|c)/i]},ZZ={narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},XZ={any:[/1/i,/2/i,/3/i,/4/i]},JZ={narrow:/^[jfmasond]/i,abbreviated:/^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,wide:/^(january|february|march|april|may|june|july|august|september|october|november|december)/i},eX={narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ap/i,/^may/i,/^jun/i,/^jul/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},tX={narrow:/^[smtwf]/i,short:/^(su|mo|tu|we|th|fr|sa)/i,abbreviated:/^(sun|mon|tue|wed|thu|fri|sat)/i,wide:/^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i},iX={narrow:[/^s/i,/^m/i,/^t/i,/^w/i,/^t/i,/^f/i,/^s/i],any:[/^su/i,/^m/i,/^tu/i,/^w/i,/^th/i,/^f/i,/^sa/i]},nX={narrow:/^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,any:/^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i},rX={any:{am:/^a/i,pm:/^p/i,midnight:/^mi/i,noon:/^no/i,morning:/morning/i,afternoon:/afternoon/i,evening:/evening/i,night:/night/i}},hV={ordinalNumber:lh({matchPattern:qZ,parsePattern:YZ,valueCallback:t=>parseInt(t,10)}),era:jn({matchPatterns:QZ,defaultMatchWidth:"wide",parsePatterns:KZ,defaultParseWidth:"any"}),quarter:jn({matchPatterns:ZZ,defaultMatchWidth:"wide",parsePatterns:XZ,defaultParseWidth:"any",valueCallback:t=>t+1}),month:jn({matchPatterns:JZ,defaultMatchWidth:"wide",parsePatterns:eX,defaultParseWidth:"any"}),day:jn({matchPatterns:tX,defaultMatchWidth:"wide",parsePatterns:iX,defaultParseWidth:"any"}),dayPeriod:jn({matchPatterns:nX,defaultMatchWidth:"any",parsePatterns:rX,defaultParseWidth:"any"})};var tu={code:"en-US",formatDistance:cV,formatLong:dV,formatRelative:uV,localize:mV,match:hV,options:{weekStartsOn:0,firstWeekContainsDate:1}};function pV(t,n){let e=Ie(t,n?.in);return iV(e,lV(e))+1}function ny(t,n){let e=Ie(t,n?.in),i=+Oa(e)-+nV(e);return Math.round(i/X0)+1}function ch(t,n){let e=Ie(t,n?.in),i=e.getFullYear(),r=Yo(),o=n?.firstWeekContainsDate??n?.locale?.options?.firstWeekContainsDate??r.firstWeekContainsDate??r.locale?.options?.firstWeekContainsDate??1,a=rt(n?.in||t,0);a.setFullYear(i+1,0,o),a.setHours(0,0,0,0);let s=Zn(a,n),l=rt(n?.in||t,0);l.setFullYear(i,0,o),l.setHours(0,0,0,0);let c=Zn(l,n);return+e>=+s?i+1:+e>=+c?i:i-1}function fV(t,n){let e=Yo(),i=n?.firstWeekContainsDate??n?.locale?.options?.firstWeekContainsDate??e.firstWeekContainsDate??e.locale?.options?.firstWeekContainsDate??1,r=ch(t,n),o=rt(n?.in||t,0);return o.setFullYear(r,0,i),o.setHours(0,0,0,0),Zn(o,n)}function dh(t,n){let e=Ie(t,n?.in),i=+Zn(e,n)-+fV(e,n);return Math.round(i/X0)+1}function wt(t,n){let e=t<0?"-":"",i=Math.abs(t).toString().padStart(n,"0");return e+i}var ul={y(t,n){let e=t.getFullYear(),i=e>0?e:1-e;return wt(n==="yy"?i%100:i,n.length)},M(t,n){let e=t.getMonth();return n==="M"?String(e+1):wt(e+1,2)},d(t,n){return wt(t.getDate(),n.length)},a(t,n){let e=t.getHours()/12>=1?"pm":"am";switch(n){case"a":case"aa":return e.toUpperCase();case"aaa":return e;case"aaaaa":return e[0];case"aaaa":default:return e==="am"?"a.m.":"p.m."}},h(t,n){return wt(t.getHours()%12||12,n.length)},H(t,n){return wt(t.getHours(),n.length)},m(t,n){return wt(t.getMinutes(),n.length)},s(t,n){return wt(t.getSeconds(),n.length)},S(t,n){let e=n.length,i=t.getMilliseconds(),r=Math.trunc(i*Math.pow(10,e-3));return wt(r,n.length)}};var uh={am:"am",pm:"pm",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},Pk={G:function(t,n,e){let i=t.getFullYear()>0?1:0;switch(n){case"G":case"GG":case"GGG":return e.era(i,{width:"abbreviated"});case"GGGGG":return e.era(i,{width:"narrow"});case"GGGG":default:return e.era(i,{width:"wide"})}},y:function(t,n,e){if(n==="yo"){let i=t.getFullYear(),r=i>0?i:1-i;return e.ordinalNumber(r,{unit:"year"})}return ul.y(t,n)},Y:function(t,n,e,i){let r=ch(t,i),o=r>0?r:1-r;if(n==="YY"){let a=o%100;return wt(a,2)}return n==="Yo"?e.ordinalNumber(o,{unit:"year"}):wt(o,n.length)},R:function(t,n){let e=ey(t);return wt(e,n.length)},u:function(t,n){let e=t.getFullYear();return wt(e,n.length)},Q:function(t,n,e){let i=Math.ceil((t.getMonth()+1)/3);switch(n){case"Q":return String(i);case"QQ":return wt(i,2);case"Qo":return e.ordinalNumber(i,{unit:"quarter"});case"QQQ":return e.quarter(i,{width:"abbreviated",context:"formatting"});case"QQQQQ":return e.quarter(i,{width:"narrow",context:"formatting"});case"QQQQ":default:return e.quarter(i,{width:"wide",context:"formatting"})}},q:function(t,n,e){let i=Math.ceil((t.getMonth()+1)/3);switch(n){case"q":return String(i);case"qq":return wt(i,2);case"qo":return e.ordinalNumber(i,{unit:"quarter"});case"qqq":return e.quarter(i,{width:"abbreviated",context:"standalone"});case"qqqqq":return e.quarter(i,{width:"narrow",context:"standalone"});case"qqqq":default:return e.quarter(i,{width:"wide",context:"standalone"})}},M:function(t,n,e){let i=t.getMonth();switch(n){case"M":case"MM":return ul.M(t,n);case"Mo":return e.ordinalNumber(i+1,{unit:"month"});case"MMM":return e.month(i,{width:"abbreviated",context:"formatting"});case"MMMMM":return e.month(i,{width:"narrow",context:"formatting"});case"MMMM":default:return e.month(i,{width:"wide",context:"formatting"})}},L:function(t,n,e){let i=t.getMonth();switch(n){case"L":return String(i+1);case"LL":return wt(i+1,2);case"Lo":return e.ordinalNumber(i+1,{unit:"month"});case"LLL":return e.month(i,{width:"abbreviated",context:"standalone"});case"LLLLL":return e.month(i,{width:"narrow",context:"standalone"});case"LLLL":default:return e.month(i,{width:"wide",context:"standalone"})}},w:function(t,n,e,i){let r=dh(t,i);return n==="wo"?e.ordinalNumber(r,{unit:"week"}):wt(r,n.length)},I:function(t,n,e){let i=ny(t);return n==="Io"?e.ordinalNumber(i,{unit:"week"}):wt(i,n.length)},d:function(t,n,e){return n==="do"?e.ordinalNumber(t.getDate(),{unit:"date"}):ul.d(t,n)},D:function(t,n,e){let i=pV(t);return n==="Do"?e.ordinalNumber(i,{unit:"dayOfYear"}):wt(i,n.length)},E:function(t,n,e){let i=t.getDay();switch(n){case"E":case"EE":case"EEE":return e.day(i,{width:"abbreviated",context:"formatting"});case"EEEEE":return e.day(i,{width:"narrow",context:"formatting"});case"EEEEEE":return e.day(i,{width:"short",context:"formatting"});case"EEEE":default:return e.day(i,{width:"wide",context:"formatting"})}},e:function(t,n,e,i){let r=t.getDay(),o=(r-i.weekStartsOn+8)%7||7;switch(n){case"e":return String(o);case"ee":return wt(o,2);case"eo":return e.ordinalNumber(o,{unit:"day"});case"eee":return e.day(r,{width:"abbreviated",context:"formatting"});case"eeeee":return e.day(r,{width:"narrow",context:"formatting"});case"eeeeee":return e.day(r,{width:"short",context:"formatting"});case"eeee":default:return e.day(r,{width:"wide",context:"formatting"})}},c:function(t,n,e,i){let r=t.getDay(),o=(r-i.weekStartsOn+8)%7||7;switch(n){case"c":return String(o);case"cc":return wt(o,n.length);case"co":return e.ordinalNumber(o,{unit:"day"});case"ccc":return e.day(r,{width:"abbreviated",context:"standalone"});case"ccccc":return e.day(r,{width:"narrow",context:"standalone"});case"cccccc":return e.day(r,{width:"short",context:"standalone"});case"cccc":default:return e.day(r,{width:"wide",context:"standalone"})}},i:function(t,n,e){let i=t.getDay(),r=i===0?7:i;switch(n){case"i":return String(r);case"ii":return wt(r,n.length);case"io":return e.ordinalNumber(r,{unit:"day"});case"iii":return e.day(i,{width:"abbreviated",context:"formatting"});case"iiiii":return e.day(i,{width:"narrow",context:"formatting"});case"iiiiii":return e.day(i,{width:"short",context:"formatting"});case"iiii":default:return e.day(i,{width:"wide",context:"formatting"})}},a:function(t,n,e){let r=t.getHours()/12>=1?"pm":"am";switch(n){case"a":case"aa":return e.dayPeriod(r,{width:"abbreviated",context:"formatting"});case"aaa":return e.dayPeriod(r,{width:"abbreviated",context:"formatting"}).toLowerCase();case"aaaaa":return e.dayPeriod(r,{width:"narrow",context:"formatting"});case"aaaa":default:return e.dayPeriod(r,{width:"wide",context:"formatting"})}},b:function(t,n,e){let i=t.getHours(),r;switch(i===12?r=uh.noon:i===0?r=uh.midnight:r=i/12>=1?"pm":"am",n){case"b":case"bb":return e.dayPeriod(r,{width:"abbreviated",context:"formatting"});case"bbb":return e.dayPeriod(r,{width:"abbreviated",context:"formatting"}).toLowerCase();case"bbbbb":return e.dayPeriod(r,{width:"narrow",context:"formatting"});case"bbbb":default:return e.dayPeriod(r,{width:"wide",context:"formatting"})}},B:function(t,n,e){let i=t.getHours(),r;switch(i>=17?r=uh.evening:i>=12?r=uh.afternoon:i>=4?r=uh.morning:r=uh.night,n){case"B":case"BB":case"BBB":return e.dayPeriod(r,{width:"abbreviated",context:"formatting"});case"BBBBB":return e.dayPeriod(r,{width:"narrow",context:"formatting"});case"BBBB":default:return e.dayPeriod(r,{width:"wide",context:"formatting"})}},h:function(t,n,e){if(n==="ho"){let i=t.getHours()%12;return i===0&&(i=12),e.ordinalNumber(i,{unit:"hour"})}return ul.h(t,n)},H:function(t,n,e){return n==="Ho"?e.ordinalNumber(t.getHours(),{unit:"hour"}):ul.H(t,n)},K:function(t,n,e){let i=t.getHours()%12;return n==="Ko"?e.ordinalNumber(i,{unit:"hour"}):wt(i,n.length)},k:function(t,n,e){let i=t.getHours();return i===0&&(i=24),n==="ko"?e.ordinalNumber(i,{unit:"hour"}):wt(i,n.length)},m:function(t,n,e){return n==="mo"?e.ordinalNumber(t.getMinutes(),{unit:"minute"}):ul.m(t,n)},s:function(t,n,e){return n==="so"?e.ordinalNumber(t.getSeconds(),{unit:"second"}):ul.s(t,n)},S:function(t,n){return ul.S(t,n)},X:function(t,n,e){let i=t.getTimezoneOffset();if(i===0)return"Z";switch(n){case"X":return _V(i);case"XXXX":case"XX":return iu(i);case"XXXXX":case"XXX":default:return iu(i,":")}},x:function(t,n,e){let i=t.getTimezoneOffset();switch(n){case"x":return _V(i);case"xxxx":case"xx":return iu(i);case"xxxxx":case"xxx":default:return iu(i,":")}},O:function(t,n,e){let i=t.getTimezoneOffset();switch(n){case"O":case"OO":case"OOO":return"GMT"+gV(i,":");case"OOOO":default:return"GMT"+iu(i,":")}},z:function(t,n,e){let i=t.getTimezoneOffset();switch(n){case"z":case"zz":case"zzz":return"GMT"+gV(i,":");case"zzzz":default:return"GMT"+iu(i,":")}},t:function(t,n,e){let i=Math.trunc(+t/1e3);return wt(i,n.length)},T:function(t,n,e){return wt(+t,n.length)}};function gV(t,n=""){let e=t>0?"-":"+",i=Math.abs(t),r=Math.trunc(i/60),o=i%60;return o===0?e+String(r):e+String(r)+n+wt(o,2)}function _V(t,n){return t%60===0?(t>0?"-":"+")+wt(Math.abs(t)/60,2):iu(t,n)}function iu(t,n=""){let e=t>0?"-":"+",i=Math.abs(t),r=wt(Math.trunc(i/60),2),o=wt(i%60,2);return e+r+n+o}var bV=(t,n)=>{switch(t){case"P":return n.date({width:"short"});case"PP":return n.date({width:"medium"});case"PPP":return n.date({width:"long"});case"PPPP":default:return n.date({width:"full"})}},vV=(t,n)=>{switch(t){case"p":return n.time({width:"short"});case"pp":return n.time({width:"medium"});case"ppp":return n.time({width:"long"});case"pppp":default:return n.time({width:"full"})}},oX=(t,n)=>{let e=t.match(/(P+)(p+)?/)||[],i=e[1],r=e[2];if(!r)return bV(t,n);let o;switch(i){case"P":o=n.dateTime({width:"short"});break;case"PP":o=n.dateTime({width:"medium"});break;case"PPP":o=n.dateTime({width:"long"});break;case"PPPP":default:o=n.dateTime({width:"full"});break}return o.replace("{{date}}",bV(i,n)).replace("{{time}}",vV(r,n))},Zf={p:vV,P:oX};var aX=/^D+$/,sX=/^Y+$/,lX=["D","DD","YY","YYYY"];function ry(t){return aX.test(t)}function oy(t){return sX.test(t)}function Xf(t,n,e){let i=cX(t,n,e);if(console.warn(i),lX.includes(t))throw new RangeError(i)}function cX(t,n,e){let i=t[0]==="Y"?"years":"days of the month";return`Use \`${t.toLowerCase()}\` instead of \`${t}\` (in \`${n}\`) for formatting ${i} to the input \`${e}\`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md`}var dX=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,uX=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,mX=/^'([^]*?)'?$/,hX=/''/g,pX=/[a-zA-Z]/;function yV(t,n,e){let i=Yo(),r=e?.locale??i.locale??tu,o=e?.firstWeekContainsDate??e?.locale?.options?.firstWeekContainsDate??i.firstWeekContainsDate??i.locale?.options?.firstWeekContainsDate??1,a=e?.weekStartsOn??e?.locale?.options?.weekStartsOn??i.weekStartsOn??i.locale?.options?.weekStartsOn??0,s=Ie(t,e?.in);if(!sh(s))throw new RangeError("Invalid time value");let l=n.match(uX).map(d=>{let m=d[0];if(m==="p"||m==="P"){let f=Zf[m];return f(d,r.formatLong)}return d}).join("").match(dX).map(d=>{if(d==="''")return{isToken:!1,value:"'"};let m=d[0];if(m==="'")return{isToken:!1,value:fX(d)};if(Pk[m])return{isToken:!0,value:d};if(m.match(pX))throw new RangeError("Format string contains an unescaped latin alphabet character `"+m+"`");return{isToken:!1,value:d}});r.localize.preprocessor&&(l=r.localize.preprocessor(s,l));let c={firstWeekContainsDate:o,weekStartsOn:a,locale:r};return l.map(d=>{if(!d.isToken)return d.value;let m=d.value;(!e?.useAdditionalWeekYearTokens&&oy(m)||!e?.useAdditionalDayOfYearTokens&&ry(m))&&Xf(m,n,String(t));let f=Pk[m[0]];return f(s,m,r.localize,c)}).join("")}function fX(t){let n=t.match(mX);return n?n[1].replace(hX,"'"):t}function xV(t,n){let e=Ie(t,n?.in);if(isNaN(+e))throw new RangeError("Invalid time value");let i=n?.format??"extended",r=n?.representation??"complete",o="",a="",s=i==="extended"?"-":"",l=i==="extended"?":":"";if(r!=="time"){let c=wt(e.getDate(),2),d=wt(e.getMonth()+1,2);o=`${wt(e.getFullYear(),4)}${s}${d}${s}${c}`}if(r!=="date"){let c=e.getTimezoneOffset();if(c!==0){let w=Math.abs(c),x=wt(Math.trunc(w/60),2),D=wt(w%60,2);a=`${c<0?"+":"-"}${x}:${D}`}else a="Z";let d=wt(e.getHours(),2),m=wt(e.getMinutes(),2),f=wt(e.getSeconds(),2),b=o===""?"":"T",v=[d,m,f].join(l);o=`${o}${b}${v}${a}`}return o}function CV(t,n){return Ie(t,n?.in).getDate()}function wV(t,n){return Ie(t,n?.in).getDay()}function ay(t,n){let e=Ie(t,n?.in),i=e.getFullYear(),r=e.getMonth(),o=rt(e,0);return o.setFullYear(i,r+1,0),o.setHours(0,0,0,0),o.getDate()}function DV(){return Object.assign({},Yo())}function sy(t,n){return Ie(t,n?.in).getHours()}function EV(t,n){let e=Ie(t,n?.in).getDay();return e===0?7:e}function ly(t,n){return Ie(t,n?.in).getMinutes()}function MV(t,n){return Ie(t,n?.in).getMonth()}function kV(t){return Ie(t).getSeconds()}function SV(t,n){return Ie(t,n?.in).getFullYear()}function TV(t,n){let e=gX(n)?new n(0):rt(n,0);return e.setFullYear(t.getFullYear(),t.getMonth(),t.getDate()),e.setHours(t.getHours(),t.getMinutes(),t.getSeconds(),t.getMilliseconds()),e}function gX(t){return typeof t=="function"&&t.prototype?.constructor===t}var _X=10,cy=class{subPriority=0;validate(n,e){return!0}},dy=class extends cy{constructor(n,e,i,r,o){super(),this.value=n,this.validateValue=e,this.setValue=i,this.priority=r,o&&(this.subPriority=o)}validate(n,e){return this.validateValue(n,this.value,e)}set(n,e,i){return this.setValue(n,e,this.value,i)}},uy=class extends cy{priority=_X;subPriority=-1;constructor(n,e){super(),this.context=n||(i=>rt(e,i))}set(n,e){return e.timestampIsSet?n:rt(n,TV(n,this.context))}};var Pe=class{run(n,e,i,r){let o=this.parse(n,e,i,r);return o?{setter:new dy(o.value,this.validate,this.set,this.priority,this.subPriority),rest:o.rest}:null}validate(n,e,i){return!0}};var my=class extends Pe{priority=140;parse(n,e,i){switch(e){case"G":case"GG":case"GGG":return i.era(n,{width:"abbreviated"})||i.era(n,{width:"narrow"});case"GGGGG":return i.era(n,{width:"narrow"});case"GGGG":default:return i.era(n,{width:"wide"})||i.era(n,{width:"abbreviated"})||i.era(n,{width:"narrow"})}}set(n,e,i){return e.era=i,n.setFullYear(i,0,1),n.setHours(0,0,0,0),n}incompatibleTokens=["R","u","t","T"]};var Bt={month:/^(1[0-2]|0?\d)/,date:/^(3[0-1]|[0-2]?\d)/,dayOfYear:/^(36[0-6]|3[0-5]\d|[0-2]?\d?\d)/,week:/^(5[0-3]|[0-4]?\d)/,hour23h:/^(2[0-3]|[0-1]?\d)/,hour24h:/^(2[0-4]|[0-1]?\d)/,hour11h:/^(1[0-1]|0?\d)/,hour12h:/^(1[0-2]|0?\d)/,minute:/^[0-5]?\d/,second:/^[0-5]?\d/,singleDigit:/^\d/,twoDigits:/^\d{1,2}/,threeDigits:/^\d{1,3}/,fourDigits:/^\d{1,4}/,anyDigitsSigned:/^-?\d+/,singleDigitSigned:/^-?\d/,twoDigitsSigned:/^-?\d{1,2}/,threeDigitsSigned:/^-?\d{1,3}/,fourDigitsSigned:/^-?\d{1,4}/},Ko={basicOptionalMinutes:/^([+-])(\d{2})(\d{2})?|Z/,basic:/^([+-])(\d{2})(\d{2})|Z/,basicOptionalSeconds:/^([+-])(\d{2})(\d{2})((\d{2}))?|Z/,extended:/^([+-])(\d{2}):(\d{2})|Z/,extendedOptionalSeconds:/^([+-])(\d{2}):(\d{2})(:(\d{2}))?|Z/};function ci(t,n){return t&&{value:n(t.value),rest:t.rest}}function Nt(t,n){let e=n.match(t);return e?{value:parseInt(e[0],10),rest:n.slice(e[0].length)}:null}function Zo(t,n){let e=n.match(t);if(!e)return null;if(e[0]==="Z")return{value:0,rest:n.slice(1)};let i=e[1]==="+"?1:-1,r=e[2]?parseInt(e[2],10):0,o=e[3]?parseInt(e[3],10):0,a=e[5]?parseInt(e[5],10):0;return{value:i*(r*Jd+o*Xd+a*JL),rest:n.slice(e[0].length)}}function hy(t){return Nt(Bt.anyDigitsSigned,t)}function _t(t,n){switch(t){case 1:return Nt(Bt.singleDigit,n);case 2:return Nt(Bt.twoDigits,n);case 3:return Nt(Bt.threeDigits,n);case 4:return Nt(Bt.fourDigits,n);default:return Nt(new RegExp("^\\d{1,"+t+"}"),n)}}function mh(t,n){switch(t){case 1:return Nt(Bt.singleDigitSigned,n);case 2:return Nt(Bt.twoDigitsSigned,n);case 3:return Nt(Bt.threeDigitsSigned,n);case 4:return Nt(Bt.fourDigitsSigned,n);default:return Nt(new RegExp("^-?\\d{1,"+t+"}"),n)}}function hh(t){switch(t){case"morning":return 4;case"evening":return 17;case"pm":case"noon":case"afternoon":return 12;case"am":case"midnight":case"night":default:return 0}}function py(t,n){let e=n>0,i=e?n:1-n,r;if(i<=50)r=t||100;else{let o=i+50,a=Math.trunc(o/100)*100,s=t>=o%100;r=t+a-(s?100:0)}return e?r:1-r}function fy(t){return t%400===0||t%4===0&&t%100!==0}var gy=class extends Pe{priority=130;incompatibleTokens=["Y","R","u","w","I","i","e","c","t","T"];parse(n,e,i){let r=o=>({year:o,isTwoDigitYear:e==="yy"});switch(e){case"y":return ci(_t(4,n),r);case"yo":return ci(i.ordinalNumber(n,{unit:"year"}),r);default:return ci(_t(e.length,n),r)}}validate(n,e){return e.isTwoDigitYear||e.year>0}set(n,e,i){let r=n.getFullYear();if(i.isTwoDigitYear){let a=py(i.year,r);return n.setFullYear(a,0,1),n.setHours(0,0,0,0),n}let o=!("era"in e)||e.era===1?i.year:1-i.year;return n.setFullYear(o,0,1),n.setHours(0,0,0,0),n}};var _y=class extends Pe{priority=130;parse(n,e,i){let r=o=>({year:o,isTwoDigitYear:e==="YY"});switch(e){case"Y":return ci(_t(4,n),r);case"Yo":return ci(i.ordinalNumber(n,{unit:"year"}),r);default:return ci(_t(e.length,n),r)}}validate(n,e){return e.isTwoDigitYear||e.year>0}set(n,e,i,r){let o=ch(n,r);if(i.isTwoDigitYear){let s=py(i.year,o);return n.setFullYear(s,0,r.firstWeekContainsDate),n.setHours(0,0,0,0),Zn(n,r)}let a=!("era"in e)||e.era===1?i.year:1-i.year;return n.setFullYear(a,0,r.firstWeekContainsDate),n.setHours(0,0,0,0),Zn(n,r)}incompatibleTokens=["y","R","u","Q","q","M","L","I","d","D","i","t","T"]};var by=class extends Pe{priority=130;parse(n,e){return e==="R"?mh(4,n):mh(e.length,n)}set(n,e,i){let r=rt(n,0);return r.setFullYear(i,0,4),r.setHours(0,0,0,0),Oa(r)}incompatibleTokens=["G","y","Y","u","Q","q","M","L","w","d","D","e","c","t","T"]};var vy=class extends Pe{priority=130;parse(n,e){return e==="u"?mh(4,n):mh(e.length,n)}set(n,e,i){return n.setFullYear(i,0,1),n.setHours(0,0,0,0),n}incompatibleTokens=["G","y","Y","R","w","I","i","e","c","t","T"]};var yy=class extends Pe{priority=120;parse(n,e,i){switch(e){case"Q":case"QQ":return _t(e.length,n);case"Qo":return i.ordinalNumber(n,{unit:"quarter"});case"QQQ":return i.quarter(n,{width:"abbreviated",context:"formatting"})||i.quarter(n,{width:"narrow",context:"formatting"});case"QQQQQ":return i.quarter(n,{width:"narrow",context:"formatting"});case"QQQQ":default:return i.quarter(n,{width:"wide",context:"formatting"})||i.quarter(n,{width:"abbreviated",context:"formatting"})||i.quarter(n,{width:"narrow",context:"formatting"})}}validate(n,e){return e>=1&&e<=4}set(n,e,i){return n.setMonth((i-1)*3,1),n.setHours(0,0,0,0),n}incompatibleTokens=["Y","R","q","M","L","w","I","d","D","i","e","c","t","T"]};var xy=class extends Pe{priority=120;parse(n,e,i){switch(e){case"q":case"qq":return _t(e.length,n);case"qo":return i.ordinalNumber(n,{unit:"quarter"});case"qqq":return i.quarter(n,{width:"abbreviated",context:"standalone"})||i.quarter(n,{width:"narrow",context:"standalone"});case"qqqqq":return i.quarter(n,{width:"narrow",context:"standalone"});case"qqqq":default:return i.quarter(n,{width:"wide",context:"standalone"})||i.quarter(n,{width:"abbreviated",context:"standalone"})||i.quarter(n,{width:"narrow",context:"standalone"})}}validate(n,e){return e>=1&&e<=4}set(n,e,i){return n.setMonth((i-1)*3,1),n.setHours(0,0,0,0),n}incompatibleTokens=["Y","R","Q","M","L","w","I","d","D","i","e","c","t","T"]};var Cy=class extends Pe{incompatibleTokens=["Y","R","q","Q","L","w","I","D","i","e","c","t","T"];priority=110;parse(n,e,i){let r=o=>o-1;switch(e){case"M":return ci(Nt(Bt.month,n),r);case"MM":return ci(_t(2,n),r);case"Mo":return ci(i.ordinalNumber(n,{unit:"month"}),r);case"MMM":return i.month(n,{width:"abbreviated",context:"formatting"})||i.month(n,{width:"narrow",context:"formatting"});case"MMMMM":return i.month(n,{width:"narrow",context:"formatting"});case"MMMM":default:return i.month(n,{width:"wide",context:"formatting"})||i.month(n,{width:"abbreviated",context:"formatting"})||i.month(n,{width:"narrow",context:"formatting"})}}validate(n,e){return e>=0&&e<=11}set(n,e,i){return n.setMonth(i,1),n.setHours(0,0,0,0),n}};var wy=class extends Pe{priority=110;parse(n,e,i){let r=o=>o-1;switch(e){case"L":return ci(Nt(Bt.month,n),r);case"LL":return ci(_t(2,n),r);case"Lo":return ci(i.ordinalNumber(n,{unit:"month"}),r);case"LLL":return i.month(n,{width:"abbreviated",context:"standalone"})||i.month(n,{width:"narrow",context:"standalone"});case"LLLLL":return i.month(n,{width:"narrow",context:"standalone"});case"LLLL":default:return i.month(n,{width:"wide",context:"standalone"})||i.month(n,{width:"abbreviated",context:"standalone"})||i.month(n,{width:"narrow",context:"standalone"})}}validate(n,e){return e>=0&&e<=11}set(n,e,i){return n.setMonth(i,1),n.setHours(0,0,0,0),n}incompatibleTokens=["Y","R","q","Q","M","w","I","D","i","e","c","t","T"]};function IV(t,n,e){let i=Ie(t,e?.in),r=dh(i,e)-n;return i.setDate(i.getDate()-r*7),Ie(i,e?.in)}var Dy=class extends Pe{priority=100;parse(n,e,i){switch(e){case"w":return Nt(Bt.week,n);case"wo":return i.ordinalNumber(n,{unit:"week"});default:return _t(e.length,n)}}validate(n,e){return e>=1&&e<=53}set(n,e,i,r){return Zn(IV(n,i,r),r)}incompatibleTokens=["y","R","u","q","Q","M","L","I","d","D","i","t","T"]};function AV(t,n,e){let i=Ie(t,e?.in),r=ny(i,e)-n;return i.setDate(i.getDate()-r*7),i}var Ey=class extends Pe{priority=100;parse(n,e,i){switch(e){case"I":return Nt(Bt.week,n);case"Io":return i.ordinalNumber(n,{unit:"week"});default:return _t(e.length,n)}}validate(n,e){return e>=1&&e<=53}set(n,e,i){return Oa(AV(n,i))}incompatibleTokens=["y","Y","u","q","Q","M","L","w","d","D","e","c","t","T"]};var bX=[31,28,31,30,31,30,31,31,30,31,30,31],vX=[31,29,31,30,31,30,31,31,30,31,30,31],My=class extends Pe{priority=90;subPriority=1;parse(n,e,i){switch(e){case"d":return Nt(Bt.date,n);case"do":return i.ordinalNumber(n,{unit:"date"});default:return _t(e.length,n)}}validate(n,e){let i=n.getFullYear(),r=fy(i),o=n.getMonth();return r?e>=1&&e<=vX[o]:e>=1&&e<=bX[o]}set(n,e,i){return n.setDate(i),n.setHours(0,0,0,0),n}incompatibleTokens=["Y","R","q","Q","w","I","D","i","e","c","t","T"]};var ky=class extends Pe{priority=90;subpriority=1;parse(n,e,i){switch(e){case"D":case"DD":return Nt(Bt.dayOfYear,n);case"Do":return i.ordinalNumber(n,{unit:"date"});default:return _t(e.length,n)}}validate(n,e){let i=n.getFullYear();return fy(i)?e>=1&&e<=366:e>=1&&e<=365}set(n,e,i){return n.setMonth(0,i),n.setHours(0,0,0,0),n}incompatibleTokens=["Y","R","q","Q","M","L","w","I","d","E","i","e","c","t","T"]};function ph(t,n,e){let i=Yo(),r=e?.weekStartsOn??e?.locale?.options?.weekStartsOn??i.weekStartsOn??i.locale?.options?.weekStartsOn??0,o=Ie(t,e?.in),a=o.getDay(),l=(n%7+7)%7,c=7-r,d=n<0||n>6?n-(a+c)%7:(l+c)%7-(a+c)%7;return oh(o,d,e)}var Sy=class extends Pe{priority=90;parse(n,e,i){switch(e){case"E":case"EE":case"EEE":return i.day(n,{width:"abbreviated",context:"formatting"})||i.day(n,{width:"short",context:"formatting"})||i.day(n,{width:"narrow",context:"formatting"});case"EEEEE":return i.day(n,{width:"narrow",context:"formatting"});case"EEEEEE":return i.day(n,{width:"short",context:"formatting"})||i.day(n,{width:"narrow",context:"formatting"});case"EEEE":default:return i.day(n,{width:"wide",context:"formatting"})||i.day(n,{width:"abbreviated",context:"formatting"})||i.day(n,{width:"short",context:"formatting"})||i.day(n,{width:"narrow",context:"formatting"})}}validate(n,e){return e>=0&&e<=6}set(n,e,i,r){return n=ph(n,i,r),n.setHours(0,0,0,0),n}incompatibleTokens=["D","i","e","c","t","T"]};var Ty=class extends Pe{priority=90;parse(n,e,i,r){let o=a=>{let s=Math.floor((a-1)/7)*7;return(a+r.weekStartsOn+6)%7+s};switch(e){case"e":case"ee":return ci(_t(e.length,n),o);case"eo":return ci(i.ordinalNumber(n,{unit:"day"}),o);case"eee":return i.day(n,{width:"abbreviated",context:"formatting"})||i.day(n,{width:"short",context:"formatting"})||i.day(n,{width:"narrow",context:"formatting"});case"eeeee":return i.day(n,{width:"narrow",context:"formatting"});case"eeeeee":return i.day(n,{width:"short",context:"formatting"})||i.day(n,{width:"narrow",context:"formatting"});case"eeee":default:return i.day(n,{width:"wide",context:"formatting"})||i.day(n,{width:"abbreviated",context:"formatting"})||i.day(n,{width:"short",context:"formatting"})||i.day(n,{width:"narrow",context:"formatting"})}}validate(n,e){return e>=0&&e<=6}set(n,e,i,r){return n=ph(n,i,r),n.setHours(0,0,0,0),n}incompatibleTokens=["y","R","u","q","Q","M","L","I","d","D","E","i","c","t","T"]};var Iy=class extends Pe{priority=90;parse(n,e,i,r){let o=a=>{let s=Math.floor((a-1)/7)*7;return(a+r.weekStartsOn+6)%7+s};switch(e){case"c":case"cc":return ci(_t(e.length,n),o);case"co":return ci(i.ordinalNumber(n,{unit:"day"}),o);case"ccc":return i.day(n,{width:"abbreviated",context:"standalone"})||i.day(n,{width:"short",context:"standalone"})||i.day(n,{width:"narrow",context:"standalone"});case"ccccc":return i.day(n,{width:"narrow",context:"standalone"});case"cccccc":return i.day(n,{width:"short",context:"standalone"})||i.day(n,{width:"narrow",context:"standalone"});case"cccc":default:return i.day(n,{width:"wide",context:"standalone"})||i.day(n,{width:"abbreviated",context:"standalone"})||i.day(n,{width:"short",context:"standalone"})||i.day(n,{width:"narrow",context:"standalone"})}}validate(n,e){return e>=0&&e<=6}set(n,e,i,r){return n=ph(n,i,r),n.setHours(0,0,0,0),n}incompatibleTokens=["y","R","u","q","Q","M","L","I","d","D","E","i","e","t","T"]};function OV(t,n,e){let i=Ie(t,e?.in),r=EV(i,e),o=n-r;return oh(i,o,e)}var Ay=class extends Pe{priority=90;parse(n,e,i){let r=o=>o===0?7:o;switch(e){case"i":case"ii":return _t(e.length,n);case"io":return i.ordinalNumber(n,{unit:"day"});case"iii":return ci(i.day(n,{width:"abbreviated",context:"formatting"})||i.day(n,{width:"short",context:"formatting"})||i.day(n,{width:"narrow",context:"formatting"}),r);case"iiiii":return ci(i.day(n,{width:"narrow",context:"formatting"}),r);case"iiiiii":return ci(i.day(n,{width:"short",context:"formatting"})||i.day(n,{width:"narrow",context:"formatting"}),r);case"iiii":default:return ci(i.day(n,{width:"wide",context:"formatting"})||i.day(n,{width:"abbreviated",context:"formatting"})||i.day(n,{width:"short",context:"formatting"})||i.day(n,{width:"narrow",context:"formatting"}),r)}}validate(n,e){return e>=1&&e<=7}set(n,e,i){return n=OV(n,i),n.setHours(0,0,0,0),n}incompatibleTokens=["y","Y","u","q","Q","M","L","w","d","D","E","e","c","t","T"]};var Oy=class extends Pe{priority=80;parse(n,e,i){switch(e){case"a":case"aa":case"aaa":return i.dayPeriod(n,{width:"abbreviated",context:"formatting"})||i.dayPeriod(n,{width:"narrow",context:"formatting"});case"aaaaa":return i.dayPeriod(n,{width:"narrow",context:"formatting"});case"aaaa":default:return i.dayPeriod(n,{width:"wide",context:"formatting"})||i.dayPeriod(n,{width:"abbreviated",context:"formatting"})||i.dayPeriod(n,{width:"narrow",context:"formatting"})}}set(n,e,i){return n.setHours(hh(i),0,0,0),n}incompatibleTokens=["b","B","H","k","t","T"]};var Ry=class extends Pe{priority=80;parse(n,e,i){switch(e){case"b":case"bb":case"bbb":return i.dayPeriod(n,{width:"abbreviated",context:"formatting"})||i.dayPeriod(n,{width:"narrow",context:"formatting"});case"bbbbb":return i.dayPeriod(n,{width:"narrow",context:"formatting"});case"bbbb":default:return i.dayPeriod(n,{width:"wide",context:"formatting"})||i.dayPeriod(n,{width:"abbreviated",context:"formatting"})||i.dayPeriod(n,{width:"narrow",context:"formatting"})}}set(n,e,i){return n.setHours(hh(i),0,0,0),n}incompatibleTokens=["a","B","H","k","t","T"]};var Py=class extends Pe{priority=80;parse(n,e,i){switch(e){case"B":case"BB":case"BBB":return i.dayPeriod(n,{width:"abbreviated",context:"formatting"})||i.dayPeriod(n,{width:"narrow",context:"formatting"});case"BBBBB":return i.dayPeriod(n,{width:"narrow",context:"formatting"});case"BBBB":default:return i.dayPeriod(n,{width:"wide",context:"formatting"})||i.dayPeriod(n,{width:"abbreviated",context:"formatting"})||i.dayPeriod(n,{width:"narrow",context:"formatting"})}}set(n,e,i){return n.setHours(hh(i),0,0,0),n}incompatibleTokens=["a","b","t","T"]};var Fy=class extends Pe{priority=70;parse(n,e,i){switch(e){case"h":return Nt(Bt.hour12h,n);case"ho":return i.ordinalNumber(n,{unit:"hour"});default:return _t(e.length,n)}}validate(n,e){return e>=1&&e<=12}set(n,e,i){let r=n.getHours()>=12;return r&&i<12?n.setHours(i+12,0,0,0):!r&&i===12?n.setHours(0,0,0,0):n.setHours(i,0,0,0),n}incompatibleTokens=["H","K","k","t","T"]};var Ny=class extends Pe{priority=70;parse(n,e,i){switch(e){case"H":return Nt(Bt.hour23h,n);case"Ho":return i.ordinalNumber(n,{unit:"hour"});default:return _t(e.length,n)}}validate(n,e){return e>=0&&e<=23}set(n,e,i){return n.setHours(i,0,0,0),n}incompatibleTokens=["a","b","h","K","k","t","T"]};var Ly=class extends Pe{priority=70;parse(n,e,i){switch(e){case"K":return Nt(Bt.hour11h,n);case"Ko":return i.ordinalNumber(n,{unit:"hour"});default:return _t(e.length,n)}}validate(n,e){return e>=0&&e<=11}set(n,e,i){return n.getHours()>=12&&i<12?n.setHours(i+12,0,0,0):n.setHours(i,0,0,0),n}incompatibleTokens=["h","H","k","t","T"]};var Vy=class extends Pe{priority=70;parse(n,e,i){switch(e){case"k":return Nt(Bt.hour24h,n);case"ko":return i.ordinalNumber(n,{unit:"hour"});default:return _t(e.length,n)}}validate(n,e){return e>=1&&e<=24}set(n,e,i){let r=i<=24?i%24:i;return n.setHours(r,0,0,0),n}incompatibleTokens=["a","b","h","H","K","t","T"]};var By=class extends Pe{priority=60;parse(n,e,i){switch(e){case"m":return Nt(Bt.minute,n);case"mo":return i.ordinalNumber(n,{unit:"minute"});default:return _t(e.length,n)}}validate(n,e){return e>=0&&e<=59}set(n,e,i){return n.setMinutes(i,0,0),n}incompatibleTokens=["t","T"]};var jy=class extends Pe{priority=50;parse(n,e,i){switch(e){case"s":return Nt(Bt.second,n);case"so":return i.ordinalNumber(n,{unit:"second"});default:return _t(e.length,n)}}validate(n,e){return e>=0&&e<=59}set(n,e,i){return n.setSeconds(i,0),n}incompatibleTokens=["t","T"]};var Hy=class extends Pe{priority=30;parse(n,e){let i=r=>Math.trunc(r*Math.pow(10,-e.length+3));return ci(_t(e.length,n),i)}set(n,e,i){return n.setMilliseconds(i),n}incompatibleTokens=["t","T"]};var zy=class extends Pe{priority=10;parse(n,e){switch(e){case"X":return Zo(Ko.basicOptionalMinutes,n);case"XX":return Zo(Ko.basic,n);case"XXXX":return Zo(Ko.basicOptionalSeconds,n);case"XXXXX":return Zo(Ko.extendedOptionalSeconds,n);case"XXX":default:return Zo(Ko.extended,n)}}set(n,e,i){return e.timestampIsSet?n:rt(n,n.getTime()-eu(n)-i)}incompatibleTokens=["t","T","x"]};var Uy=class extends Pe{priority=10;parse(n,e){switch(e){case"x":return Zo(Ko.basicOptionalMinutes,n);case"xx":return Zo(Ko.basic,n);case"xxxx":return Zo(Ko.basicOptionalSeconds,n);case"xxxxx":return Zo(Ko.extendedOptionalSeconds,n);case"xxx":default:return Zo(Ko.extended,n)}}set(n,e,i){return e.timestampIsSet?n:rt(n,n.getTime()-eu(n)-i)}incompatibleTokens=["t","T","X"]};var $y=class extends Pe{priority=40;parse(n){return hy(n)}set(n,e,i){return[rt(n,i*1e3),{timestampIsSet:!0}]}incompatibleTokens="*"};var Wy=class extends Pe{priority=20;parse(n){return hy(n)}set(n,e,i){return[rt(n,i),{timestampIsSet:!0}]}incompatibleTokens="*"};var RV={G:new my,y:new gy,Y:new _y,R:new by,u:new vy,Q:new yy,q:new xy,M:new Cy,L:new wy,w:new Dy,I:new Ey,d:new My,D:new ky,E:new Sy,e:new Ty,c:new Iy,i:new Ay,a:new Oy,b:new Ry,B:new Py,h:new Fy,H:new Ny,K:new Ly,k:new Vy,m:new By,s:new jy,S:new Hy,X:new zy,x:new Uy,t:new $y,T:new Wy};var yX=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,xX=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,CX=/^'([^]*?)'?$/,wX=/''/g,DX=/\S/,EX=/[a-zA-Z]/;function PV(t,n,e,i){let r=()=>rt(i?.in||e,NaN),o=DV(),a=i?.locale??o.locale??tu,s=i?.firstWeekContainsDate??i?.locale?.options?.firstWeekContainsDate??o.firstWeekContainsDate??o.locale?.options?.firstWeekContainsDate??1,l=i?.weekStartsOn??i?.locale?.options?.weekStartsOn??o.weekStartsOn??o.locale?.options?.weekStartsOn??0;if(!n)return t?r():Ie(e,i?.in);let c={firstWeekContainsDate:s,weekStartsOn:l,locale:a},d=[new uy(i?.in,e)],m=n.match(xX).map(x=>{let D=x[0];if(D in Zf){let P=Zf[D];return P(x,a.formatLong)}return x}).join("").match(yX),f=[];for(let x of m){!i?.useAdditionalWeekYearTokens&&oy(x)&&Xf(x,n,t),!i?.useAdditionalDayOfYearTokens&&ry(x)&&Xf(x,n,t);let D=x[0],P=RV[D];if(P){let{incompatibleTokens:W}=P;if(Array.isArray(W)){let K=f.find(re=>W.includes(re.token)||re.token===D);if(K)throw new RangeError(`The format string mustn't contain \`${K.fullToken}\` and \`${x}\` at the same time`)}else if(P.incompatibleTokens==="*"&&f.length>0)throw new RangeError(`The format string mustn't contain \`${x}\` and any other token at the same time`);f.push({token:D,fullToken:x});let Z=P.run(t,x,a.match,c);if(!Z)return r();d.push(Z.setter),t=Z.rest}else{if(D.match(EX))throw new RangeError("Format string contains an unescaped latin alphabet character `"+D+"`");if(x==="''"?x="'":D==="'"&&(x=MX(x)),t.indexOf(x)===0)t=t.slice(x.length);else return r()}}if(t.length>0&&DX.test(t))return r();let b=d.map(x=>x.priority).sort((x,D)=>D-x).filter((x,D,P)=>P.indexOf(x)===D).map(x=>d.filter(D=>D.priority===x).sort((D,P)=>P.subPriority-D.subPriority)).map(x=>x[0]),v=Ie(e,i?.in);if(isNaN(+v))return r();let w={};for(let x of b){if(!x.validate(v,c))return r();let D=x.set(v,w,c);Array.isArray(D)?(v=D[0],Object.assign(w,D[1])):v=D}return v}function MX(t){return t.match(CX)[1].replace(wX,"'")}function FV(t,n,e){let[i,r]=ty(e?.in,t,n);return+Zn(i,e)==+Zn(r,e)}function Nk(t,n){let e=()=>rt(n?.in,NaN),i=n?.additionalDigits??2,r=IX(t),o;if(r.date){let c=AX(r.date,i);o=OX(c.restDateString,c.year)}if(!o||isNaN(+o))return e();let a=+o,s=0,l;if(r.time&&(s=RX(r.time),isNaN(s)))return e();if(r.timezone){if(l=PX(r.timezone),isNaN(l))return e()}else{let c=new Date(a+s),d=Ie(0,n?.in);return d.setFullYear(c.getUTCFullYear(),c.getUTCMonth(),c.getUTCDate()),d.setHours(c.getUTCHours(),c.getUTCMinutes(),c.getUTCSeconds(),c.getUTCMilliseconds()),d}return Ie(a+s+l,n?.in)}var Gy={dateTimeDelimiter:/[T ]/,timeZoneDelimiter:/[Z ]/i,timezone:/([Z+-].*)$/},kX=/^-?(?:(\d{3})|(\d{2})(?:-?(\d{2}))?|W(\d{2})(?:-?(\d{1}))?|)$/,SX=/^(\d{2}(?:[.,]\d*)?)(?::?(\d{2}(?:[.,]\d*)?))?(?::?(\d{2}(?:[.,]\d*)?))?$/,TX=/^([+-])(\d{2})(?::?(\d{2}))?$/;function IX(t){let n={},e=t.split(Gy.dateTimeDelimiter),i;if(e.length>2)return n;if(/:/.test(e[0])?i=e[0]:(n.date=e[0],i=e[1],Gy.timeZoneDelimiter.test(n.date)&&(n.date=t.split(Gy.timeZoneDelimiter)[0],i=t.substr(n.date.length,t.length))),i){let r=Gy.timezone.exec(i);r?(n.time=i.replace(r[1],""),n.timezone=r[1]):n.time=i}return n}function AX(t,n){let e=new RegExp("^(?:(\\d{4}|[+-]\\d{"+(4+n)+"})|(\\d{2}|[+-]\\d{"+(2+n)+"})$)"),i=t.match(e);if(!i)return{year:NaN,restDateString:""};let r=i[1]?parseInt(i[1]):null,o=i[2]?parseInt(i[2]):null;return{year:o===null?r:o*100,restDateString:t.slice((i[1]||i[2]).length)}}function OX(t,n){if(n===null)return new Date(NaN);let e=t.match(kX);if(!e)return new Date(NaN);let i=!!e[4],r=Jf(e[1]),o=Jf(e[2])-1,a=Jf(e[3]),s=Jf(e[4]),l=Jf(e[5])-1;if(i)return BX(n,s,l)?FX(n,s,l):new Date(NaN);{let c=new Date(0);return!LX(n,o,a)||!VX(n,r)?new Date(NaN):(c.setUTCFullYear(n,o,Math.max(r,a)),c)}}function Jf(t){return t?parseInt(t):1}function RX(t){let n=t.match(SX);if(!n)return NaN;let e=Fk(n[1]),i=Fk(n[2]),r=Fk(n[3]);return jX(e,i,r)?e*Jd+i*Xd+r*1e3:NaN}function Fk(t){return t&&parseFloat(t.replace(",","."))||0}function PX(t){if(t==="Z")return 0;let n=t.match(TX);if(!n)return 0;let e=n[1]==="+"?-1:1,i=parseInt(n[2]),r=n[3]&&parseInt(n[3])||0;return HX(i,r)?e*(i*Jd+r*Xd):NaN}function FX(t,n,e){let i=new Date(0);i.setUTCFullYear(t,0,4);let r=i.getUTCDay()||7,o=(n-1)*7+e+1-r;return i.setUTCDate(i.getUTCDate()+o),i}var NX=[31,null,31,30,31,30,31,31,30,31,30,31];function NV(t){return t%400===0||t%4===0&&t%100!==0}function LX(t,n,e){return n>=0&&n<=11&&e>=1&&e<=(NX[n]||(NV(t)?29:28))}function VX(t,n){return n>=1&&n<=(NV(t)?366:365)}function BX(t,n,e){return n>=1&&n<=53&&e>=0&&e<=6}function jX(t,n,e){return t===24?n===0&&e===0:e>=0&&e<60&&n>=0&&n<60&&t>=0&&t<25}function HX(t,n){return n>=0&&n<=59}function LV(t,n,e){let i=Ie(t,e?.in),r=i.getFullYear(),o=i.getDate(),a=rt(e?.in||t,0);a.setFullYear(r,n,15),a.setHours(0,0,0,0);let s=ay(a);return i.setMonth(n,Math.min(o,s)),i}function VV(t,n,e){let i=Ie(t,e?.in);return isNaN(+i)?rt(e?.in||t,NaN):(n.year!=null&&i.setFullYear(n.year),n.month!=null&&(i=LV(i,n.month)),n.date!=null&&i.setDate(n.date),n.hours!=null&&i.setHours(n.hours),n.minutes!=null&&i.setMinutes(n.minutes),n.seconds!=null&&i.setSeconds(n.seconds),n.milliseconds!=null&&i.setMilliseconds(n.milliseconds),i)}function Lk(t,n){let e=Array(t);for(let i=0;i{class t extends Li{constructor(){super();let e=u(ys,{optional:!0});this.setLocale(e)}getYear(e){return SV(e)}getMonth(e){return MV(e)}getDate(e){return CV(e)}getDayOfWeek(e){return wV(e)}getMonthNames(e){let i=zX[e];return Lk(12,r=>this.format(new Date(2017,r,1),i))}getDateNames(){let e=typeof Intl<"u"?new Intl.DateTimeFormat(this.locale.code,{day:"numeric",timeZone:"utc"}):null;return Lk(31,i=>{if(e){let r=new Date;return r.setUTCFullYear(2017,0,i+1),r.setUTCHours(0,0,0,0),e.format(r).replace(/[\u200e\u200f]/g,"")}return i+""})}getDayOfWeekNames(e){let i=UX[e];return Lk(7,r=>this.format(new Date(2017,0,r+1),i))}getYearName(e){return this.format(e,"y")}getFirstDayOfWeek(){return this.locale.options?.weekStartsOn??0}getNumDaysInMonth(e){return ay(e)}clone(e){return new Date(e.getTime())}createDate(e,i,r){let o=new Date;return o.setFullYear(e,i,r),o.setHours(0,0,0,0),o.getMonth()!=i,o}today(){return new Date}parse(e,i){return this._parse(e,i)}format(e,i){if(!this.isValid(e))throw Error("DateFnsAdapter: Cannot format invalid date.");return yV(e,i,{locale:this.locale})}addCalendarYears(e,i){return aV(e,i)}addCalendarMonths(e,i){return ah(e,i)}addCalendarDays(e,i){return oh(e,i)}toIso8601(e){return xV(e,{representation:"date"})}deserialize(e){if(typeof e=="string"){if(!e)return null;let i=Nk(e);if(this.isValid(i))return i}return super.deserialize(e)}isDateInstance(e){return iy(e)}isValid(e){return sh(e)}invalid(){return new Date(NaN)}setTime(e,i,r,o){return VV(this.clone(e),{hours:i,minutes:r,seconds:o,milliseconds:0})}getHours(e){return sy(e)}getMinutes(e){return ly(e)}getSeconds(e){return kV(e)}parseTime(e,i){return this._parse(e,i,!1)}addSeconds(e,i){return oV(e,i)}_parse(e,i,r=!0){if(typeof e=="string"&&e.length>0){if(r){let a=Nk(e);if(this.isValid(a))return a}let o=Array.isArray(i)?i:[i];if(!i.length)throw Error("Formats array must not be empty.");for(let a of o){let s=PV(e,a,new Date,{locale:this.locale});if(this.isValid(s))return s}return this.invalid()}else{if(typeof e=="number")return new Date(e);if(e instanceof Date)return this.clone(e)}return null}static \u0275fac=function(i){return new(i||t)};static \u0275prov=O({token:t,factory:t.\u0275fac})}return t})(),$X={parse:{dateInput:"P",timeInput:"p"},display:{dateInput:"P",timeInput:"p",monthYearLabel:"LLL uuuu",dateA11yLabel:"PP",monthYearA11yLabel:"LLLL uuuu",timeOptionLabel:"p"}};function BV(t=$X){return[{provide:Li,useClass:Vk,deps:[ys]},{provide:xs,useValue:t}]}var WX=["*"];var GX=[[["","mat-card-avatar",""],["","matCardAvatar",""]],[["mat-card-title"],["mat-card-subtitle"],["","mat-card-title",""],["","mat-card-subtitle",""],["","matCardTitle",""],["","matCardSubtitle",""]],"*"],qX=["[mat-card-avatar], [matCardAvatar]",`mat-card-title, mat-card-subtitle, [mat-card-title], [mat-card-subtitle], - [matCardTitle], [matCardSubtitle]`,"*"],Bk=new T("MAT_CARD_CONFIG"),zt=(()=>{class t{appearance;constructor(){let e=u(Bk,{optional:!0});this.appearance=e?.appearance||"raised"}static \u0275fac=function(i){return new(i||t)};static \u0275cmp=E({type:t,selectors:[["mat-card"]],hostAttrs:[1,"mat-mdc-card","mdc-card"],hostVars:8,hostBindings:function(i,r){i&2&&G("mat-mdc-card-outlined",r.appearance==="outlined")("mdc-card--outlined",r.appearance==="outlined")("mat-mdc-card-filled",r.appearance==="filled")("mdc-card--filled",r.appearance==="filled")},inputs:{appearance:"appearance"},exportAs:["matCard"],ngContentSelectors:GX,decls:1,vars:0,template:function(i,r){i&1&&(Me(),oe(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 rgba(0,0,0,0);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 t})(),Xt=(()=>{class t{static \u0275fac=function(i){return new(i||t)};static \u0275dir=F({type:t,selectors:[["mat-card-title"],["","mat-card-title",""],["","matCardTitle",""]],hostAttrs:[1,"mat-mdc-card-title"]})}return t})();var Ut=(()=>{class t{static \u0275fac=function(i){return new(i||t)};static \u0275dir=F({type:t,selectors:[["mat-card-content"]],hostAttrs:[1,"mat-mdc-card-content"]})}return t})(),HV=(()=>{class t{static \u0275fac=function(i){return new(i||t)};static \u0275dir=F({type:t,selectors:[["mat-card-subtitle"],["","mat-card-subtitle",""],["","matCardSubtitle",""]],hostAttrs:[1,"mat-mdc-card-subtitle"]})}return t})();var Jt=(()=>{class t{static \u0275fac=function(i){return new(i||t)};static \u0275cmp=E({type:t,selectors:[["mat-card-header"]],hostAttrs:[1,"mat-mdc-card-header"],ngContentSelectors:YX,decls:4,vars:0,consts:[[1,"mat-mdc-card-header-text"]],template:function(i,r){i&1&&(Me(qX),oe(0),ft(1,"div",0),oe(2,1),vt(),oe(3,2))},encapsulation:2,changeDetection:0})}return t})();var zV=(()=>{class t{static \u0275fac=function(i){return new(i||t)};static \u0275dir=F({type:t,selectors:[["","mat-card-avatar",""],["","matCardAvatar",""]],hostAttrs:[1,"mat-mdc-card-avatar"]})}return t})();var $t=(()=>{class t{static \u0275fac=function(i){return new(i||t)};static \u0275mod=ee({type:t});static \u0275inj=J({imports:[we,we]})}return t})();var jk=class{_box;_destroyed=new z;_resizeSubject=new z;_resizeObserver;_elementObservables=new Map;constructor(n){this._box=n,typeof ResizeObserver<"u"&&(this._resizeObserver=new ResizeObserver(e=>this._resizeSubject.next(e)))}observe(n){return this._elementObservables.has(n)||this._elementObservables.set(n,new Fe(e=>{let i=this._resizeSubject.subscribe(e);return this._resizeObserver?.observe(n,{box:this._box}),()=>{this._resizeObserver?.unobserve(n),i.unsubscribe(),this._elementObservables.delete(n)}}).pipe(ce(e=>e.some(i=>i.target===n)),dd({bufferSize:1,refCount:!0}),Te(this._destroyed))),this._elementObservables.get(n)}destroy(){this._destroyed.next(),this._destroyed.complete(),this._resizeSubject.complete(),this._elementObservables.clear()}},qy=(()=>{class t{_cleanupErrorListener;_observers=new Map;_ngZone=u(ae);constructor(){typeof ResizeObserver<"u"}ngOnDestroy(){for(let[,e]of this._observers)e.destroy();this._observers.clear(),this._cleanupErrorListener?.()}observe(e,i){let r=i?.box||"content-box";return this._observers.has(r)||this._observers.set(r,new jk(r)),this._observers.get(r).observe(e)}static \u0275fac=function(i){return new(i||t)};static \u0275prov=O({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();var QX=["notch"],KX=["matFormFieldNotchedOutline",""],ZX=["*"],UV=["iconPrefixContainer"],$V=["textPrefixContainer"],WV=["iconSuffixContainer"],GV=["textSuffixContainer"],XX=["textField"],JX=["*",[["mat-label"]],[["","matPrefix",""],["","matIconPrefix",""]],[["","matTextPrefix",""]],[["","matTextSuffix",""]],[["","matSuffix",""],["","matIconSuffix",""]],[["mat-error"],["","matError",""]],[["mat-hint",3,"align","end"]],[["mat-hint","align","end"]]],eJ=["*","mat-label","[matPrefix], [matIconPrefix]","[matTextPrefix]","[matTextSuffix]","[matSuffix], [matIconSuffix]","mat-error, [matError]","mat-hint:not([align='end'])","mat-hint[align='end']"];function tJ(t,n){t&1&&k(0,"span",21)}function iJ(t,n){if(t&1&&(h(0,"label",20),oe(1,1),N(2,tJ,1,0,"span",21),p()),t&2){let e=C(2);y("floating",e._shouldLabelFloat())("monitorResize",e._hasOutline())("id",e._labelId),X("for",e._control.disableAutomaticLabeling?null:e._control.id),g(2),L(!e.hideRequiredMarker&&e._control.required?2:-1)}}function nJ(t,n){if(t&1&&N(0,iJ,3,5,"label",20),t&2){let e=C();L(e._hasFloatingLabel()?0:-1)}}function rJ(t,n){t&1&&k(0,"div",7)}function oJ(t,n){}function aJ(t,n){if(t&1&&R(0,oJ,0,0,"ng-template",13),t&2){C(2);let e=Se(1);y("ngTemplateOutlet",e)}}function sJ(t,n){if(t&1&&(h(0,"div",9),N(1,aJ,1,1,null,13),p()),t&2){let e=C();y("matFormFieldNotchedOutlineOpen",e._shouldLabelFloat()),g(),L(e._forceDisplayInfixLabel()?-1:1)}}function lJ(t,n){t&1&&(h(0,"div",10,2),oe(2,2),p())}function cJ(t,n){t&1&&(h(0,"div",11,3),oe(2,3),p())}function dJ(t,n){}function uJ(t,n){if(t&1&&R(0,dJ,0,0,"ng-template",13),t&2){C();let e=Se(1);y("ngTemplateOutlet",e)}}function mJ(t,n){t&1&&(h(0,"div",14,4),oe(2,4),p())}function hJ(t,n){t&1&&(h(0,"div",15,5),oe(2,5),p())}function pJ(t,n){t&1&&k(0,"div",16)}function fJ(t,n){t&1&&(h(0,"div",18),oe(1,6),p())}function gJ(t,n){if(t&1&&(h(0,"mat-hint",22),_(1),p()),t&2){let e=C(2);y("id",e._hintLabelId),g(),H(e.hintLabel)}}function _J(t,n){if(t&1&&(h(0,"div",19),N(1,gJ,2,2,"mat-hint",22),oe(2,7),k(3,"div",23),oe(4,8),p()),t&2){let e=C();g(),L(e.hintLabel?1:-1)}}var sn=(()=>{class t{static \u0275fac=function(i){return new(i||t)};static \u0275dir=F({type:t,selectors:[["mat-label"]]})}return t})(),Hk=new T("MatError"),xo=(()=>{class t{id=u(Ze).getId("mat-mdc-error-");constructor(){}static \u0275fac=function(i){return new(i||t)};static \u0275dir=F({type:t,selectors:[["mat-error"],["","matError",""]],hostAttrs:[1,"mat-mdc-form-field-error","mat-mdc-form-field-bottom-align"],hostVars:1,hostBindings:function(i,r){i&2&&si("id",r.id)},inputs:{id:"id"},features:[Ce([{provide:Hk,useExisting:t}])]})}return t})(),eg=(()=>{class t{align="start";id=u(Ze).getId("mat-mdc-hint-");static \u0275fac=function(i){return new(i||t)};static \u0275dir=F({type:t,selectors:[["mat-hint"]],hostAttrs:[1,"mat-mdc-form-field-hint","mat-mdc-form-field-bottom-align"],hostVars:4,hostBindings:function(i,r){i&2&&(si("id",r.id),X("align",null),G("mat-mdc-form-field-hint-end",r.align==="end"))},inputs:{align:"align",id:"id"}})}return t})(),zk=new T("MatPrefix"),nu=(()=>{class t{set _isTextSelector(e){this._isText=!0}_isText=!1;static \u0275fac=function(i){return new(i||t)};static \u0275dir=F({type:t,selectors:[["","matPrefix",""],["","matIconPrefix",""],["","matTextPrefix",""]],inputs:{_isTextSelector:[0,"matTextPrefix","_isTextSelector"]},features:[Ce([{provide:zk,useExisting:t}])]})}return t})(),Uk=new T("MatSuffix"),ru=(()=>{class t{set _isTextSelector(e){this._isText=!0}_isText=!1;static \u0275fac=function(i){return new(i||t)};static \u0275dir=F({type:t,selectors:[["","matSuffix",""],["","matIconSuffix",""],["","matTextSuffix",""]],inputs:{_isTextSelector:[0,"matTextSuffix","_isTextSelector"]},features:[Ce([{provide:Uk,useExisting:t}])]})}return t})(),JV=new T("FloatingLabelParent"),qV=(()=>{class t{_elementRef=u(q);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=u(qy);_ngZone=u(ae);_parent=u(JV);_resizeSubscription=new ke;constructor(){}ngOnDestroy(){this._resizeSubscription.unsubscribe()}getWidth(){return bJ(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(i){return new(i||t)};static \u0275dir=F({type:t,selectors:[["label","matFormFieldFloatingLabel",""]],hostAttrs:[1,"mdc-floating-label","mat-mdc-floating-label"],hostVars:2,hostBindings:function(i,r){i&2&&G("mdc-floating-label--float-above",r.floating)},inputs:{floating:"floating",monitorResize:"monitorResize"}})}return t})();function bJ(t){let n=t;if(n.offsetParent!==null)return n.scrollWidth;let e=n.cloneNode(!0);e.style.setProperty("position","absolute"),e.style.setProperty("transform","translate(-9999px, -9999px)"),document.documentElement.appendChild(e);let i=e.scrollWidth;return e.remove(),i}var YV="mdc-line-ripple--active",Yy="mdc-line-ripple--deactivating",QV=(()=>{class t{_elementRef=u(q);_cleanupTransitionEnd;constructor(){let e=u(ae),i=u(je);e.runOutsideAngular(()=>{this._cleanupTransitionEnd=i.listen(this._elementRef.nativeElement,"transitionend",this._handleTransitionEnd)})}activate(){let e=this._elementRef.nativeElement.classList;e.remove(Yy),e.add(YV)}deactivate(){this._elementRef.nativeElement.classList.add(Yy)}_handleTransitionEnd=e=>{let i=this._elementRef.nativeElement.classList,r=i.contains(Yy);e.propertyName==="opacity"&&r&&i.remove(YV,Yy)};ngOnDestroy(){this._cleanupTransitionEnd()}static \u0275fac=function(i){return new(i||t)};static \u0275dir=F({type:t,selectors:[["div","matFormFieldLineRipple",""]],hostAttrs:[1,"mdc-line-ripple"]})}return t})(),KV=(()=>{class t{_elementRef=u(q);_ngZone=u(ae);open=!1;_notch;ngAfterViewInit(){let e=this._elementRef.nativeElement,i=e.querySelector(".mdc-floating-label");i?(e.classList.add("mdc-notched-outline--upgraded"),typeof requestAnimationFrame=="function"&&(i.style.transitionDuration="0s",this._ngZone.runOutsideAngular(()=>{requestAnimationFrame(()=>i.style.transitionDuration="")}))):e.classList.add("mdc-notched-outline--no-label")}_setNotchWidth(e){let i=this._notch.nativeElement;!this.open||!e?i.style.width="":i.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(i){return new(i||t)};static \u0275cmp=E({type:t,selectors:[["div","matFormFieldNotchedOutline",""]],viewQuery:function(i,r){if(i&1&&ie(QX,5),i&2){let o;B(o=j())&&(r._notch=o.first)}},hostAttrs:[1,"mdc-notched-outline"],hostVars:2,hostBindings:function(i,r){i&2&&G("mdc-notched-outline--notched",r.open)},inputs:{open:[0,"matFormFieldNotchedOutlineOpen","open"]},attrs:KX,ngContentSelectors:ZX,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(i,r){i&1&&(Me(),ai(0,"div",1),ft(1,"div",2,0),oe(3),vt(),ai(4,"div",3))},encapsulation:2,changeDetection:0})}return t})(),Ra=(()=>{class t{value;stateChanges;id;placeholder;ngControl;focused;empty;shouldLabelFloat;required;disabled;errorState;controlType;autofilled;userAriaDescribedBy;disableAutomaticLabeling;describedByIds;static \u0275fac=function(i){return new(i||t)};static \u0275dir=F({type:t})}return t})();var Xo=new T("MatFormField"),eB=new T("MAT_FORM_FIELD_DEFAULT_OPTIONS"),ZV="fill",vJ="auto",XV="fixed",yJ="translateY(-50%)",Oi=(()=>{class t{_elementRef=u(q);_changeDetectorRef=u(ye);_platform=u(qe);_idGenerator=u(Ze);_ngZone=u(ae);_defaults=u(eB,{optional:!0});_currentDirection;_textField;_iconPrefixContainer;_textPrefixContainer;_iconSuffixContainer;_textSuffixContainer;_floatingLabel;_notchedOutline;_lineRipple;_iconPrefixContainerSignal=qn("iconPrefixContainer");_textPrefixContainerSignal=qn("textPrefixContainer");_iconSuffixContainerSignal=qn("iconSuffixContainer");_textSuffixContainerSignal=qn("textSuffixContainer");_prefixSuffixContainers=Zt(()=>[this._iconPrefixContainerSignal(),this._textPrefixContainerSignal(),this._iconSuffixContainerSignal(),this._textSuffixContainerSignal()].map(e=>e?.nativeElement).filter(e=>e!==void 0));_formFieldControl;_prefixChildren;_suffixChildren;_errorChildren;_hintChildren;_labelChild=fr(sn);get hideRequiredMarker(){return this._hideRequiredMarker}set hideRequiredMarker(e){this._hideRequiredMarker=Ai(e)}_hideRequiredMarker=!1;color="primary";get floatLabel(){return this._floatLabel||this._defaults?.floatLabel||vJ}set floatLabel(e){e!==this._floatLabel&&(this._floatLabel=e,this._changeDetectorRef.markForCheck())}_floatLabel;get appearance(){return this._appearanceSignal()}set appearance(e){let i=e||this._defaults?.appearance||ZV;this._appearanceSignal.set(i)}_appearanceSignal=he(ZV);get subscriptSizing(){return this._subscriptSizing||this._defaults?.subscriptSizing||XV}set subscriptSizing(e){this._subscriptSizing=e||this._defaults?.subscriptSizing||XV}_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 z;_isFocused=null;_explicitFormFieldControl;_previousControl=null;_previousControlValidatorFn=null;_stateChanges;_valueChanges;_describedByChanges;_outlineLabelOffsetResizeObserver=null;_animationsDisabled=Ye();constructor(){let e=this._defaults,i=u(Vt);e&&(e.appearance&&(this.appearance=e.appearance),this._hideRequiredMarker=!!e?.hideRequiredMarker,e.color&&(this.color=e.color)),Ar(()=>this._currentDirection=i.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=Zt(()=>this._hasFloatingLabel()?this._labelId:null);getConnectedOverlayOrigin(){return this._textField||this._elementRef}_animateAndLockLabel(){this._hasFloatingLabel()&&(this.floatLabel="always")}_initializeControl(e){let i=this._control,r="mat-mdc-form-field-type-";e&&this._elementRef.nativeElement.classList.remove(r+e.controlType),i.controlType&&this._elementRef.nativeElement.classList.add(r+i.controlType),this._stateChanges?.unsubscribe(),this._stateChanges=i.stateChanges.subscribe(()=>{this._updateFocusState(),this._changeDetectorRef.markForCheck()}),this._describedByChanges?.unsubscribe(),this._describedByChanges=i.stateChanges.pipe(He([void 0,void 0]),se(()=>[i.errorState,i.userAriaDescribedBy]),db(),ce(([[o,a],[s,l]])=>o!==s||a!==l)).subscribe(()=>this._syncDescribedByIds()),this._valueChanges?.unsubscribe(),i.ngControl&&i.ngControl.valueChanges&&(this._valueChanges=i.ngControl.valueChanges.pipe(Te(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(),Je(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(){c2({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=Zt(()=>!!this._labelChild());_shouldLabelFloat(){return this._hasFloatingLabel()?this._control.shouldLabelFloat||this._shouldAlwaysFloat():!1}_shouldForward(e){let i=this._control?this._control.ngControl:null;return i&&i[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 o=this._hintChildren?this._hintChildren.find(s=>s.align==="start"):null,a=this._hintChildren?this._hintChildren.find(s=>s.align==="end"):null;o?e.push(o.id):this._hintLabel&&e.push(this._hintLabelId),a&&e.push(a.id)}else this._errorChildren&&e.push(...this._errorChildren.map(o=>o.id));let i=this._control.describedByIds,r;if(i){let o=this._describedByIds||e;r=e.concat(i.filter(a=>a&&!o.includes(a)))}else r=e;this._control.setDescribedByIds(r),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,i=this._textPrefixContainer?.nativeElement,r=this._iconSuffixContainer?.nativeElement,o=this._textSuffixContainer?.nativeElement,a=e?.getBoundingClientRect().width??0,s=i?.getBoundingClientRect().width??0,l=r?.getBoundingClientRect().width??0,c=o?.getBoundingClientRect().width??0,d=this._currentDirection==="rtl"?"-1":"1",m=`${a+s}px`,b=`calc(${d} * (${m} + var(--mat-mdc-form-field-label-offset-x, 0px)))`,v=`var(--mat-mdc-form-field-label-transform, ${yJ} translateX(${b}))`,w=a+s+l+c;return[v,w]}_writeOutlinedLabelStyles(e){if(e!==null){let[i,r]=e;this._floatingLabel&&(this._floatingLabel.element.style.transform=i),r!==null&&this._notchedOutline?._setMaxWidth(r)}}_isAttachedToDom(){let e=this._elementRef.nativeElement;if(e.getRootNode){let i=e.getRootNode();return i&&i!==e}return document.documentElement.contains(e)}static \u0275fac=function(i){return new(i||t)};static \u0275cmp=E({type:t,selectors:[["mat-form-field"]],contentQueries:function(i,r,o){if(i&1&&(Rn(o,r._labelChild,sn,5),xe(o,Ra,5),xe(o,zk,5),xe(o,Uk,5),xe(o,Hk,5),xe(o,eg,5)),i&2){Ho();let a;B(a=j())&&(r._formFieldControl=a.first),B(a=j())&&(r._prefixChildren=a),B(a=j())&&(r._suffixChildren=a),B(a=j())&&(r._errorChildren=a),B(a=j())&&(r._hintChildren=a)}},viewQuery:function(i,r){if(i&1&&(Pn(r._iconPrefixContainerSignal,UV,5),Pn(r._textPrefixContainerSignal,$V,5),Pn(r._iconSuffixContainerSignal,WV,5),Pn(r._textSuffixContainerSignal,GV,5),ie(XX,5),ie(UV,5),ie($V,5),ie(WV,5),ie(GV,5),ie(qV,5),ie(KV,5),ie(QV,5)),i&2){Ho(4);let o;B(o=j())&&(r._textField=o.first),B(o=j())&&(r._iconPrefixContainer=o.first),B(o=j())&&(r._textPrefixContainer=o.first),B(o=j())&&(r._iconSuffixContainer=o.first),B(o=j())&&(r._textSuffixContainer=o.first),B(o=j())&&(r._floatingLabel=o.first),B(o=j())&&(r._notchedOutline=o.first),B(o=j())&&(r._lineRipple=o.first)}},hostAttrs:[1,"mat-mdc-form-field"],hostVars:38,hostBindings:function(i,r){i&2&&G("mat-mdc-form-field-label-always-float",r._shouldAlwaysFloat())("mat-mdc-form-field-has-icon-prefix",r._hasIconPrefix)("mat-mdc-form-field-has-icon-suffix",r._hasIconSuffix)("mat-form-field-invalid",r._control.errorState)("mat-form-field-disabled",r._control.disabled)("mat-form-field-autofilled",r._control.autofilled)("mat-form-field-appearance-fill",r.appearance=="fill")("mat-form-field-appearance-outline",r.appearance=="outline")("mat-form-field-hide-placeholder",r._hasFloatingLabel()&&!r._shouldLabelFloat())("mat-primary",r.color!=="accent"&&r.color!=="warn")("mat-accent",r.color==="accent")("mat-warn",r.color==="warn")("ng-untouched",r._shouldForward("untouched"))("ng-touched",r._shouldForward("touched"))("ng-pristine",r._shouldForward("pristine"))("ng-dirty",r._shouldForward("dirty"))("ng-valid",r._shouldForward("valid"))("ng-invalid",r._shouldForward("invalid"))("ng-pending",r._shouldForward("pending"))},inputs:{hideRequiredMarker:"hideRequiredMarker",color:"color",floatLabel:"floatLabel",appearance:"appearance",subscriptSizing:"subscriptSizing",hintLabel:"hintLabel"},exportAs:["matFormField"],features:[Ce([{provide:Xo,useExisting:t},{provide:JV,useExisting:t}])],ngContentSelectors:eJ,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(i,r){if(i&1){let o=Y();Me(JX),R(0,nJ,1,1,"ng-template",null,0,_i),h(2,"div",6,1),S("click",function(s){return I(o),A(r._control.onContainerClick(s))}),N(4,rJ,1,0,"div",7),h(5,"div",8),N(6,sJ,2,2,"div",9),N(7,lJ,3,0,"div",10),N(8,cJ,3,0,"div",11),h(9,"div",12),N(10,uJ,1,1,null,13),oe(11),p(),N(12,mJ,3,0,"div",14),N(13,hJ,3,0,"div",15),p(),N(14,pJ,1,0,"div",16),p(),h(15,"div",17),N(16,fJ,2,0,"div",18)(17,_J,5,1,"div",19),p()}if(i&2){let o;g(2),G("mdc-text-field--filled",!r._hasOutline())("mdc-text-field--outlined",r._hasOutline())("mdc-text-field--no-label",!r._hasFloatingLabel())("mdc-text-field--disabled",r._control.disabled)("mdc-text-field--invalid",r._control.errorState),g(2),L(!r._hasOutline()&&!r._control.disabled?4:-1),g(2),L(r._hasOutline()?6:-1),g(),L(r._hasIconPrefix?7:-1),g(),L(r._hasTextPrefix?8:-1),g(2),L(!r._hasOutline()||r._forceDisplayInfixLabel()?10:-1),g(2),L(r._hasTextSuffix?12:-1),g(),L(r._hasIconSuffix?13:-1),g(),L(r._hasOutline()?-1:14),g(),G("mat-mdc-form-field-subscript-dynamic-size",r.subscriptSizing==="dynamic");let a=r._getSubscriptMessageType();g(),L((o=a)==="error"?16:o==="hint"?17:-1)}},dependencies:[qV,KV,Fn,QV,eg],styles:[`.mdc-text-field{display:inline-flex;align-items:baseline;padding:0 16px;position:relative;box-sizing:border-box;overflow:hidden;will-change:opacity,transform,color;border-top-left-radius:4px;border-top-right-radius:4px;border-bottom-right-radius:0;border-bottom-left-radius:0}.mdc-text-field__input{width:100%;min-width:0;border:none;border-radius:0;background:none;padding:0;-moz-appearance:none;-webkit-appearance:none;height:28px}.mdc-text-field__input::-webkit-calendar-picker-indicator,.mdc-text-field__input::-webkit-search-cancel-button{display:none}.mdc-text-field__input::-ms-clear{display:none}.mdc-text-field__input:focus{outline:none}.mdc-text-field__input:invalid{box-shadow:none}.mdc-text-field__input::placeholder{opacity:0}.mdc-text-field__input::-moz-placeholder{opacity:0}.mdc-text-field__input::-webkit-input-placeholder{opacity:0}.mdc-text-field__input:-ms-input-placeholder{opacity:0}.mdc-text-field--no-label .mdc-text-field__input::placeholder,.mdc-text-field--focused .mdc-text-field__input::placeholder{opacity:1}.mdc-text-field--no-label .mdc-text-field__input::-moz-placeholder,.mdc-text-field--focused .mdc-text-field__input::-moz-placeholder{opacity:1}.mdc-text-field--no-label .mdc-text-field__input::-webkit-input-placeholder,.mdc-text-field--focused .mdc-text-field__input::-webkit-input-placeholder{opacity:1}.mdc-text-field--no-label .mdc-text-field__input:-ms-input-placeholder,.mdc-text-field--focused .mdc-text-field__input:-ms-input-placeholder{opacity:1}.mdc-text-field--disabled:not(.mdc-text-field--no-label) .mdc-text-field__input.mat-mdc-input-disabled-interactive::placeholder{opacity:0}.mdc-text-field--disabled:not(.mdc-text-field--no-label) .mdc-text-field__input.mat-mdc-input-disabled-interactive::-moz-placeholder{opacity:0}.mdc-text-field--disabled:not(.mdc-text-field--no-label) .mdc-text-field__input.mat-mdc-input-disabled-interactive::-webkit-input-placeholder{opacity:0}.mdc-text-field--disabled:not(.mdc-text-field--no-label) .mdc-text-field__input.mat-mdc-input-disabled-interactive:-ms-input-placeholder{opacity:0}.mdc-text-field--outlined .mdc-text-field__input,.mdc-text-field--filled.mdc-text-field--no-label .mdc-text-field__input{height:100%}.mdc-text-field--outlined .mdc-text-field__input{display:flex;border:none !important;background-color:rgba(0,0,0,0)}.mdc-text-field--disabled .mdc-text-field__input{pointer-events:auto}.mdc-text-field--filled:not(.mdc-text-field--disabled) .mdc-text-field__input{color:var(--mat-form-field-filled-input-text-color, var(--mat-sys-on-surface));caret-color:var(--mat-form-field-filled-caret-color, var(--mat-sys-primary))}.mdc-text-field--filled:not(.mdc-text-field--disabled) .mdc-text-field__input::placeholder{color:var(--mat-form-field-filled-input-text-placeholder-color, var(--mat-sys-on-surface-variant))}.mdc-text-field--filled:not(.mdc-text-field--disabled) .mdc-text-field__input::-moz-placeholder{color:var(--mat-form-field-filled-input-text-placeholder-color, var(--mat-sys-on-surface-variant))}.mdc-text-field--filled:not(.mdc-text-field--disabled) .mdc-text-field__input::-webkit-input-placeholder{color:var(--mat-form-field-filled-input-text-placeholder-color, var(--mat-sys-on-surface-variant))}.mdc-text-field--filled:not(.mdc-text-field--disabled) .mdc-text-field__input:-ms-input-placeholder{color:var(--mat-form-field-filled-input-text-placeholder-color, var(--mat-sys-on-surface-variant))}.mdc-text-field--outlined:not(.mdc-text-field--disabled) .mdc-text-field__input{color:var(--mat-form-field-outlined-input-text-color, var(--mat-sys-on-surface));caret-color:var(--mat-form-field-outlined-caret-color, var(--mat-sys-primary))}.mdc-text-field--outlined:not(.mdc-text-field--disabled) .mdc-text-field__input::placeholder{color:var(--mat-form-field-outlined-input-text-placeholder-color, var(--mat-sys-on-surface-variant))}.mdc-text-field--outlined:not(.mdc-text-field--disabled) .mdc-text-field__input::-moz-placeholder{color:var(--mat-form-field-outlined-input-text-placeholder-color, var(--mat-sys-on-surface-variant))}.mdc-text-field--outlined:not(.mdc-text-field--disabled) .mdc-text-field__input::-webkit-input-placeholder{color:var(--mat-form-field-outlined-input-text-placeholder-color, var(--mat-sys-on-surface-variant))}.mdc-text-field--outlined:not(.mdc-text-field--disabled) .mdc-text-field__input:-ms-input-placeholder{color:var(--mat-form-field-outlined-input-text-placeholder-color, var(--mat-sys-on-surface-variant))}.mdc-text-field--filled.mdc-text-field--invalid:not(.mdc-text-field--disabled) .mdc-text-field__input{caret-color:var(--mat-form-field-filled-error-caret-color, var(--mat-sys-error))}.mdc-text-field--outlined.mdc-text-field--invalid:not(.mdc-text-field--disabled) .mdc-text-field__input{caret-color:var(--mat-form-field-outlined-error-caret-color, var(--mat-sys-error))}.mdc-text-field--filled.mdc-text-field--disabled .mdc-text-field__input{color:var(--mat-form-field-filled-disabled-input-text-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent))}.mdc-text-field--outlined.mdc-text-field--disabled .mdc-text-field__input{color:var(--mat-form-field-outlined-disabled-input-text-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent))}@media(forced-colors: active){.mdc-text-field--disabled .mdc-text-field__input{background-color:Window}}.mdc-text-field--filled{height:56px;border-bottom-right-radius:0;border-bottom-left-radius:0;border-top-left-radius:var(--mat-form-field-filled-container-shape, var(--mat-sys-corner-extra-small));border-top-right-radius:var(--mat-form-field-filled-container-shape, var(--mat-sys-corner-extra-small))}.mdc-text-field--filled:not(.mdc-text-field--disabled){background-color:var(--mat-form-field-filled-container-color, var(--mat-sys-surface-variant))}.mdc-text-field--filled.mdc-text-field--disabled{background-color:var(--mat-form-field-filled-disabled-container-color, color-mix(in srgb, var(--mat-sys-on-surface) 4%, transparent))}.mdc-text-field--outlined{height:56px;overflow:visible;padding-right:max(16px,var(--mat-form-field-outlined-container-shape, var(--mat-sys-corner-extra-small)));padding-left:max(16px,var(--mat-form-field-outlined-container-shape, var(--mat-sys-corner-extra-small)) + 4px)}[dir=rtl] .mdc-text-field--outlined{padding-right:max(16px,var(--mat-form-field-outlined-container-shape, var(--mat-sys-corner-extra-small)) + 4px);padding-left:max(16px,var(--mat-form-field-outlined-container-shape, var(--mat-sys-corner-extra-small)))}.mdc-floating-label{position:absolute;left:0;transform-origin:left top;line-height:1.15rem;text-align:left;text-overflow:ellipsis;white-space:nowrap;cursor:text;overflow:hidden;will-change:transform}[dir=rtl] .mdc-floating-label{right:0;left:auto;transform-origin:right top;text-align:right}.mdc-text-field .mdc-floating-label{top:50%;transform:translateY(-50%);pointer-events:none}.mdc-notched-outline .mdc-floating-label{display:inline-block;position:relative;max-width:100%}.mdc-text-field--outlined .mdc-floating-label{left:4px;right:auto}[dir=rtl] .mdc-text-field--outlined .mdc-floating-label{left:auto;right:4px}.mdc-text-field--filled .mdc-floating-label{left:16px;right:auto}[dir=rtl] .mdc-text-field--filled .mdc-floating-label{left:auto;right:16px}.mdc-text-field--disabled .mdc-floating-label{cursor:default}@media(forced-colors: active){.mdc-text-field--disabled .mdc-floating-label{z-index:1}}.mdc-text-field--filled.mdc-text-field--no-label .mdc-floating-label{display:none}.mdc-text-field--filled:not(.mdc-text-field--disabled) .mdc-floating-label{color:var(--mat-form-field-filled-label-text-color, var(--mat-sys-on-surface-variant))}.mdc-text-field--filled:not(.mdc-text-field--disabled).mdc-text-field--focused .mdc-floating-label{color:var(--mat-form-field-filled-focus-label-text-color, var(--mat-sys-primary))}.mdc-text-field--filled:not(.mdc-text-field--disabled):not(.mdc-text-field--focused):hover .mdc-floating-label{color:var(--mat-form-field-filled-hover-label-text-color, var(--mat-sys-on-surface-variant))}.mdc-text-field--filled.mdc-text-field--disabled .mdc-floating-label{color:var(--mat-form-field-filled-disabled-label-text-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent))}.mdc-text-field--filled:not(.mdc-text-field--disabled).mdc-text-field--invalid .mdc-floating-label{color:var(--mat-form-field-filled-error-label-text-color, var(--mat-sys-error))}.mdc-text-field--filled:not(.mdc-text-field--disabled).mdc-text-field--invalid.mdc-text-field--focused .mdc-floating-label{color:var(--mat-form-field-filled-error-focus-label-text-color, var(--mat-sys-error))}.mdc-text-field--filled:not(.mdc-text-field--disabled).mdc-text-field--invalid:not(.mdc-text-field--disabled):hover .mdc-floating-label{color:var(--mat-form-field-filled-error-hover-label-text-color, var(--mat-sys-on-error-container))}.mdc-text-field--filled .mdc-floating-label{font-family:var(--mat-form-field-filled-label-text-font, var(--mat-sys-body-large-font));font-size:var(--mat-form-field-filled-label-text-size, var(--mat-sys-body-large-size));font-weight:var(--mat-form-field-filled-label-text-weight, var(--mat-sys-body-large-weight));letter-spacing:var(--mat-form-field-filled-label-text-tracking, var(--mat-sys-body-large-tracking))}.mdc-text-field--outlined:not(.mdc-text-field--disabled) .mdc-floating-label{color:var(--mat-form-field-outlined-label-text-color, var(--mat-sys-on-surface-variant))}.mdc-text-field--outlined:not(.mdc-text-field--disabled).mdc-text-field--focused .mdc-floating-label{color:var(--mat-form-field-outlined-focus-label-text-color, var(--mat-sys-primary))}.mdc-text-field--outlined:not(.mdc-text-field--disabled):not(.mdc-text-field--focused):hover .mdc-floating-label{color:var(--mat-form-field-outlined-hover-label-text-color, var(--mat-sys-on-surface))}.mdc-text-field--outlined.mdc-text-field--disabled .mdc-floating-label{color:var(--mat-form-field-outlined-disabled-label-text-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent))}.mdc-text-field--outlined:not(.mdc-text-field--disabled).mdc-text-field--invalid .mdc-floating-label{color:var(--mat-form-field-outlined-error-label-text-color, var(--mat-sys-error))}.mdc-text-field--outlined:not(.mdc-text-field--disabled).mdc-text-field--invalid.mdc-text-field--focused .mdc-floating-label{color:var(--mat-form-field-outlined-error-focus-label-text-color, var(--mat-sys-error))}.mdc-text-field--outlined:not(.mdc-text-field--disabled).mdc-text-field--invalid:not(.mdc-text-field--disabled):hover .mdc-floating-label{color:var(--mat-form-field-outlined-error-hover-label-text-color, var(--mat-sys-on-error-container))}.mdc-text-field--outlined .mdc-floating-label{font-family:var(--mat-form-field-outlined-label-text-font, var(--mat-sys-body-large-font));font-size:var(--mat-form-field-outlined-label-text-size, var(--mat-sys-body-large-size));font-weight:var(--mat-form-field-outlined-label-text-weight, var(--mat-sys-body-large-weight));letter-spacing:var(--mat-form-field-outlined-label-text-tracking, var(--mat-sys-body-large-tracking))}.mdc-floating-label--float-above{cursor:auto;transform:translateY(-106%) scale(0.75)}.mdc-text-field--filled .mdc-floating-label--float-above{transform:translateY(-106%) scale(0.75)}.mdc-text-field--outlined .mdc-floating-label--float-above{transform:translateY(-37.25px) scale(1);font-size:.75rem}.mdc-notched-outline .mdc-floating-label--float-above{text-overflow:clip}.mdc-notched-outline--upgraded .mdc-floating-label--float-above{max-width:133.3333333333%}.mdc-text-field--outlined.mdc-notched-outline--upgraded .mdc-floating-label--float-above,.mdc-text-field--outlined .mdc-notched-outline--upgraded .mdc-floating-label--float-above{transform:translateY(-34.75px) scale(0.75)}.mdc-text-field--outlined.mdc-notched-outline--upgraded .mdc-floating-label--float-above,.mdc-text-field--outlined .mdc-notched-outline--upgraded .mdc-floating-label--float-above{font-size:1rem}.mdc-floating-label--required:not(.mdc-floating-label--hide-required-marker)::after{margin-left:1px;margin-right:0;content:"*"}[dir=rtl] .mdc-floating-label--required:not(.mdc-floating-label--hide-required-marker)::after{margin-left:0;margin-right:1px}.mdc-notched-outline{display:flex;position:absolute;top:0;right:0;left:0;box-sizing:border-box;width:100%;max-width:100%;height:100%;text-align:left;pointer-events:none}[dir=rtl] .mdc-notched-outline{text-align:right}.mdc-text-field--outlined .mdc-notched-outline{z-index:1}.mat-mdc-notch-piece{box-sizing:border-box;height:100%;pointer-events:none;border-top:1px solid;border-bottom:1px solid}.mdc-text-field--focused .mat-mdc-notch-piece{border-width:2px}.mdc-text-field--outlined:not(.mdc-text-field--disabled) .mat-mdc-notch-piece{border-color:var(--mat-form-field-outlined-outline-color, var(--mat-sys-outline));border-width:var(--mat-form-field-outlined-outline-width, 1px)}.mdc-text-field--outlined:not(.mdc-text-field--disabled):not(.mdc-text-field--focused):hover .mat-mdc-notch-piece{border-color:var(--mat-form-field-outlined-hover-outline-color, var(--mat-sys-on-surface))}.mdc-text-field--outlined:not(.mdc-text-field--disabled).mdc-text-field--focused .mat-mdc-notch-piece{border-color:var(--mat-form-field-outlined-focus-outline-color, var(--mat-sys-primary))}.mdc-text-field--outlined.mdc-text-field--disabled .mat-mdc-notch-piece{border-color:var(--mat-form-field-outlined-disabled-outline-color, color-mix(in srgb, var(--mat-sys-on-surface) 12%, transparent))}.mdc-text-field--outlined:not(.mdc-text-field--disabled).mdc-text-field--invalid .mat-mdc-notch-piece{border-color:var(--mat-form-field-outlined-error-outline-color, var(--mat-sys-error))}.mdc-text-field--outlined:not(.mdc-text-field--disabled).mdc-text-field--invalid:not(.mdc-text-field--focused):hover .mdc-notched-outline .mat-mdc-notch-piece{border-color:var(--mat-form-field-outlined-error-hover-outline-color, var(--mat-sys-on-error-container))}.mdc-text-field--outlined:not(.mdc-text-field--disabled).mdc-text-field--invalid.mdc-text-field--focused .mat-mdc-notch-piece{border-color:var(--mat-form-field-outlined-error-focus-outline-color, var(--mat-sys-error))}.mdc-text-field--outlined:not(.mdc-text-field--disabled).mdc-text-field--focused .mdc-notched-outline .mat-mdc-notch-piece{border-width:var(--mat-form-field-outlined-focus-outline-width, 2px)}.mdc-notched-outline__leading{border-left:1px solid;border-right:none;border-top-right-radius:0;border-bottom-right-radius:0;border-top-left-radius:var(--mat-form-field-outlined-container-shape, var(--mat-sys-corner-extra-small));border-bottom-left-radius:var(--mat-form-field-outlined-container-shape, var(--mat-sys-corner-extra-small))}.mdc-text-field--outlined .mdc-notched-outline .mdc-notched-outline__leading{width:max(12px,var(--mat-form-field-outlined-container-shape, var(--mat-sys-corner-extra-small)))}[dir=rtl] .mdc-notched-outline__leading{border-left:none;border-right:1px solid;border-bottom-left-radius:0;border-top-left-radius:0;border-top-right-radius:var(--mat-form-field-outlined-container-shape, var(--mat-sys-corner-extra-small));border-bottom-right-radius:var(--mat-form-field-outlined-container-shape, var(--mat-sys-corner-extra-small))}.mdc-notched-outline__trailing{flex-grow:1;border-left:none;border-right:1px solid;border-top-left-radius:0;border-bottom-left-radius:0;border-top-right-radius:var(--mat-form-field-outlined-container-shape, var(--mat-sys-corner-extra-small));border-bottom-right-radius:var(--mat-form-field-outlined-container-shape, var(--mat-sys-corner-extra-small))}[dir=rtl] .mdc-notched-outline__trailing{border-left:1px solid;border-right:none;border-top-right-radius:0;border-bottom-right-radius:0;border-top-left-radius:var(--mat-form-field-outlined-container-shape, var(--mat-sys-corner-extra-small));border-bottom-left-radius:var(--mat-form-field-outlined-container-shape, var(--mat-sys-corner-extra-small))}.mdc-notched-outline__notch{flex:0 0 auto;width:auto}.mdc-text-field--outlined .mdc-notched-outline .mdc-notched-outline__notch{max-width:min(var(--mat-form-field-notch-max-width, 100%),calc(100% - max(12px, var(--mat-form-field-outlined-container-shape, var(--mat-sys-corner-extra-small))) * 2))}.mdc-text-field--outlined .mdc-notched-outline--notched .mdc-notched-outline__notch{max-width:min(100%,calc(100% - max(12px, var(--mat-form-field-outlined-container-shape, var(--mat-sys-corner-extra-small))) * 2))}.mdc-text-field--outlined .mdc-notched-outline--notched .mdc-notched-outline__notch{padding-top:1px}.mdc-text-field--focused.mdc-text-field--outlined .mdc-notched-outline--notched .mdc-notched-outline__notch{padding-top:2px}.mdc-notched-outline--notched .mdc-notched-outline__notch{padding-left:0;padding-right:8px;border-top:none}[dir=rtl] .mdc-notched-outline--notched .mdc-notched-outline__notch{padding-left:8px;padding-right:0}.mdc-notched-outline--no-label .mdc-notched-outline__notch{display:none}.mdc-line-ripple::before,.mdc-line-ripple::after{position:absolute;bottom:0;left:0;width:100%;border-bottom-style:solid;content:""}.mdc-line-ripple::before{z-index:1;border-bottom-width:var(--mat-form-field-filled-active-indicator-height, 1px)}.mdc-text-field--filled:not(.mdc-text-field--disabled) .mdc-line-ripple::before{border-bottom-color:var(--mat-form-field-filled-active-indicator-color, var(--mat-sys-on-surface-variant))}.mdc-text-field--filled:not(.mdc-text-field--disabled):not(.mdc-text-field--focused):hover .mdc-line-ripple::before{border-bottom-color:var(--mat-form-field-filled-hover-active-indicator-color, var(--mat-sys-on-surface))}.mdc-text-field--filled.mdc-text-field--disabled .mdc-line-ripple::before{border-bottom-color:var(--mat-form-field-filled-disabled-active-indicator-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent))}.mdc-text-field--filled:not(.mdc-text-field--disabled).mdc-text-field--invalid .mdc-line-ripple::before{border-bottom-color:var(--mat-form-field-filled-error-active-indicator-color, var(--mat-sys-error))}.mdc-text-field--filled:not(.mdc-text-field--disabled).mdc-text-field--invalid:not(.mdc-text-field--focused):hover .mdc-line-ripple::before{border-bottom-color:var(--mat-form-field-filled-error-hover-active-indicator-color, var(--mat-sys-on-error-container))}.mdc-line-ripple::after{transform:scaleX(0);opacity:0;z-index:2}.mdc-text-field--filled .mdc-line-ripple::after{border-bottom-width:var(--mat-form-field-filled-focus-active-indicator-height, 2px)}.mdc-text-field--filled:not(.mdc-text-field--disabled) .mdc-line-ripple::after{border-bottom-color:var(--mat-form-field-filled-focus-active-indicator-color, var(--mat-sys-primary))}.mdc-text-field--filled.mdc-text-field--invalid:not(.mdc-text-field--disabled) .mdc-line-ripple::after{border-bottom-color:var(--mat-form-field-filled-error-focus-active-indicator-color, var(--mat-sys-error))}.mdc-line-ripple--active::after{transform:scaleX(1);opacity:1}.mdc-line-ripple--deactivating::after{opacity:0}.mdc-text-field--disabled{pointer-events:none}.mat-mdc-form-field-textarea-control{vertical-align:middle;resize:vertical;box-sizing:border-box;height:auto;margin:0;padding:0;border:none;overflow:auto}.mat-mdc-form-field-input-control.mat-mdc-form-field-input-control{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;font:inherit;letter-spacing:inherit;text-decoration:inherit;text-transform:inherit;border:none}.mat-mdc-form-field .mat-mdc-floating-label.mdc-floating-label{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;line-height:normal;pointer-events:all;will-change:auto}.mat-mdc-form-field:not(.mat-form-field-disabled) .mat-mdc-floating-label.mdc-floating-label{cursor:inherit}.mdc-text-field--no-label:not(.mdc-text-field--textarea) .mat-mdc-form-field-input-control.mdc-text-field__input,.mat-mdc-text-field-wrapper .mat-mdc-form-field-input-control{height:auto}.mat-mdc-text-field-wrapper .mat-mdc-form-field-input-control.mdc-text-field__input[type=color]{height:23px}.mat-mdc-text-field-wrapper{height:auto;flex:auto;will-change:auto}.mat-mdc-form-field-has-icon-prefix .mat-mdc-text-field-wrapper{padding-left:0;--mat-mdc-form-field-label-offset-x: -16px}.mat-mdc-form-field-has-icon-suffix .mat-mdc-text-field-wrapper{padding-right:0}[dir=rtl] .mat-mdc-text-field-wrapper{padding-left:16px;padding-right:16px}[dir=rtl] .mat-mdc-form-field-has-icon-suffix .mat-mdc-text-field-wrapper{padding-left:0}[dir=rtl] .mat-mdc-form-field-has-icon-prefix .mat-mdc-text-field-wrapper{padding-right:0}.mat-form-field-disabled .mdc-text-field__input::placeholder{color:var(--mat-form-field-disabled-input-text-placeholder-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent))}.mat-form-field-disabled .mdc-text-field__input::-moz-placeholder{color:var(--mat-form-field-disabled-input-text-placeholder-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent))}.mat-form-field-disabled .mdc-text-field__input::-webkit-input-placeholder{color:var(--mat-form-field-disabled-input-text-placeholder-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent))}.mat-form-field-disabled .mdc-text-field__input:-ms-input-placeholder{color:var(--mat-form-field-disabled-input-text-placeholder-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent))}.mat-mdc-form-field-label-always-float .mdc-text-field__input::placeholder{transition-delay:40ms;transition-duration:110ms;opacity:1}.mat-mdc-text-field-wrapper .mat-mdc-form-field-infix .mat-mdc-floating-label{left:auto;right:auto}.mat-mdc-text-field-wrapper.mdc-text-field--outlined .mdc-text-field__input{display:inline-block}.mat-mdc-form-field .mat-mdc-text-field-wrapper.mdc-text-field .mdc-notched-outline__notch{padding-top:0}.mat-mdc-form-field.mat-mdc-form-field.mat-mdc-form-field.mat-mdc-form-field.mat-mdc-form-field.mat-mdc-form-field .mdc-notched-outline__notch{border-left:1px solid rgba(0,0,0,0)}[dir=rtl] .mat-mdc-form-field.mat-mdc-form-field.mat-mdc-form-field.mat-mdc-form-field.mat-mdc-form-field.mat-mdc-form-field .mdc-notched-outline__notch{border-left:none;border-right:1px solid rgba(0,0,0,0)}.mat-mdc-form-field-infix{min-height:var(--mat-form-field-container-height, 56px);padding-top:var(--mat-form-field-filled-with-label-container-padding-top, 24px);padding-bottom:var(--mat-form-field-filled-with-label-container-padding-bottom, 8px)}.mdc-text-field--outlined .mat-mdc-form-field-infix,.mdc-text-field--no-label .mat-mdc-form-field-infix{padding-top:var(--mat-form-field-container-vertical-padding, 16px);padding-bottom:var(--mat-form-field-container-vertical-padding, 16px)}.mat-mdc-text-field-wrapper .mat-mdc-form-field-flex .mat-mdc-floating-label{top:calc(var(--mat-form-field-container-height, 56px)/2)}.mdc-text-field--filled .mat-mdc-floating-label{display:var(--mat-form-field-filled-label-display, block)}.mat-mdc-text-field-wrapper.mdc-text-field--outlined .mdc-notched-outline--upgraded .mdc-floating-label--float-above{--mat-mdc-form-field-label-transform: translateY(calc(calc(6.75px + var(--mat-form-field-container-height, 56px) / 2) * -1)) scale(var(--mat-mdc-form-field-floating-label-scale, 0.75));transform:var(--mat-mdc-form-field-label-transform)}@keyframes _mat-form-field-subscript-animation{from{opacity:0;transform:translateY(-5px)}to{opacity:1;transform:translateY(0)}}.mat-mdc-form-field-subscript-wrapper{box-sizing:border-box;width:100%;position:relative}.mat-mdc-form-field-hint-wrapper,.mat-mdc-form-field-error-wrapper{position:absolute;top:0;left:0;right:0;padding:0 16px;opacity:1;transform:translateY(0);animation:_mat-form-field-subscript-animation 0ms cubic-bezier(0.55, 0, 0.55, 0.2)}.mat-mdc-form-field-subscript-dynamic-size .mat-mdc-form-field-hint-wrapper,.mat-mdc-form-field-subscript-dynamic-size .mat-mdc-form-field-error-wrapper{position:static}.mat-mdc-form-field-bottom-align::before{content:"";display:inline-block;height:16px}.mat-mdc-form-field-bottom-align.mat-mdc-form-field-subscript-dynamic-size::before{content:unset}.mat-mdc-form-field-hint-end{order:1}.mat-mdc-form-field-hint-wrapper{display:flex}.mat-mdc-form-field-hint-spacer{flex:1 0 1em}.mat-mdc-form-field-error{display:block;color:var(--mat-form-field-error-text-color, var(--mat-sys-error))}.mat-mdc-form-field-subscript-wrapper,.mat-mdc-form-field-bottom-align::before{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;font-family:var(--mat-form-field-subscript-text-font, var(--mat-sys-body-small-font));line-height:var(--mat-form-field-subscript-text-line-height, var(--mat-sys-body-small-line-height));font-size:var(--mat-form-field-subscript-text-size, var(--mat-sys-body-small-size));letter-spacing:var(--mat-form-field-subscript-text-tracking, var(--mat-sys-body-small-tracking));font-weight:var(--mat-form-field-subscript-text-weight, var(--mat-sys-body-small-weight))}.mat-mdc-form-field-focus-overlay{top:0;left:0;right:0;bottom:0;position:absolute;opacity:0;pointer-events:none;background-color:var(--mat-form-field-state-layer-color, var(--mat-sys-on-surface))}.mat-mdc-text-field-wrapper:hover .mat-mdc-form-field-focus-overlay{opacity:var(--mat-form-field-hover-state-layer-opacity, var(--mat-sys-hover-state-layer-opacity))}.mat-mdc-form-field.mat-focused .mat-mdc-form-field-focus-overlay{opacity:var(--mat-form-field-focus-state-layer-opacity, 0)}select.mat-mdc-form-field-input-control{-moz-appearance:none;-webkit-appearance:none;background-color:rgba(0,0,0,0);display:inline-flex;box-sizing:border-box}select.mat-mdc-form-field-input-control:not(:disabled){cursor:pointer}select.mat-mdc-form-field-input-control:not(.mat-mdc-native-select-inline) option{color:var(--mat-form-field-select-option-text-color, var(--mat-sys-neutral10))}select.mat-mdc-form-field-input-control:not(.mat-mdc-native-select-inline) option:disabled{color:var(--mat-form-field-select-disabled-option-text-color, color-mix(in srgb, var(--mat-sys-neutral10) 38%, transparent))}.mat-mdc-form-field-type-mat-native-select .mat-mdc-form-field-infix::after{content:"";width:0;height:0;border-left:5px solid rgba(0,0,0,0);border-right:5px solid rgba(0,0,0,0);border-top:5px solid;position:absolute;right:0;top:50%;margin-top:-2.5px;pointer-events:none;color:var(--mat-form-field-enabled-select-arrow-color, var(--mat-sys-on-surface-variant))}[dir=rtl] .mat-mdc-form-field-type-mat-native-select .mat-mdc-form-field-infix::after{right:auto;left:0}.mat-mdc-form-field-type-mat-native-select.mat-focused .mat-mdc-form-field-infix::after{color:var(--mat-form-field-focus-select-arrow-color, var(--mat-sys-primary))}.mat-mdc-form-field-type-mat-native-select.mat-form-field-disabled .mat-mdc-form-field-infix::after{color:var(--mat-form-field-disabled-select-arrow-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent))}.mat-mdc-form-field-type-mat-native-select .mat-mdc-form-field-input-control{padding-right:15px}[dir=rtl] .mat-mdc-form-field-type-mat-native-select .mat-mdc-form-field-input-control{padding-right:0;padding-left:15px}@media(forced-colors: active){.mat-form-field-appearance-fill .mat-mdc-text-field-wrapper{outline:solid 1px}}@media(forced-colors: active){.mat-form-field-appearance-fill.mat-form-field-disabled .mat-mdc-text-field-wrapper{outline-color:GrayText}}@media(forced-colors: active){.mat-form-field-appearance-fill.mat-focused .mat-mdc-text-field-wrapper{outline:dashed 3px}}@media(forced-colors: active){.mat-mdc-form-field.mat-focused .mdc-notched-outline{border:dashed 3px}}.mat-mdc-form-field-input-control[type=date],.mat-mdc-form-field-input-control[type=datetime],.mat-mdc-form-field-input-control[type=datetime-local],.mat-mdc-form-field-input-control[type=month],.mat-mdc-form-field-input-control[type=week],.mat-mdc-form-field-input-control[type=time]{line-height:1}.mat-mdc-form-field-input-control::-webkit-datetime-edit{line-height:1;padding:0;margin-bottom:-2px}.mat-mdc-form-field{--mat-mdc-form-field-floating-label-scale: 0.75;display:inline-flex;flex-direction:column;min-width:0;text-align:left;-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;font-family:var(--mat-form-field-container-text-font, var(--mat-sys-body-large-font));line-height:var(--mat-form-field-container-text-line-height, var(--mat-sys-body-large-line-height));font-size:var(--mat-form-field-container-text-size, var(--mat-sys-body-large-size));letter-spacing:var(--mat-form-field-container-text-tracking, var(--mat-sys-body-large-tracking));font-weight:var(--mat-form-field-container-text-weight, var(--mat-sys-body-large-weight))}.mat-mdc-form-field .mdc-text-field--outlined .mdc-floating-label--float-above{font-size:calc(var(--mat-form-field-outlined-label-text-populated-size)*var(--mat-mdc-form-field-floating-label-scale))}.mat-mdc-form-field .mdc-text-field--outlined .mdc-notched-outline--upgraded .mdc-floating-label--float-above{font-size:var(--mat-form-field-outlined-label-text-populated-size)}[dir=rtl] .mat-mdc-form-field{text-align:right}.mat-mdc-form-field-flex{display:inline-flex;align-items:baseline;box-sizing:border-box;width:100%}.mat-mdc-text-field-wrapper{width:100%;z-index:0}.mat-mdc-form-field-icon-prefix,.mat-mdc-form-field-icon-suffix{align-self:center;line-height:0;pointer-events:auto;position:relative;z-index:1}.mat-mdc-form-field-icon-prefix>.mat-icon,.mat-mdc-form-field-icon-suffix>.mat-icon{padding:0 12px;box-sizing:content-box}.mat-mdc-form-field-icon-prefix{color:var(--mat-form-field-leading-icon-color, var(--mat-sys-on-surface-variant))}.mat-form-field-disabled .mat-mdc-form-field-icon-prefix{color:var(--mat-form-field-disabled-leading-icon-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent))}.mat-mdc-form-field-icon-suffix{color:var(--mat-form-field-trailing-icon-color, var(--mat-sys-on-surface-variant))}.mat-form-field-disabled .mat-mdc-form-field-icon-suffix{color:var(--mat-form-field-disabled-trailing-icon-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent))}.mat-form-field-invalid .mat-mdc-form-field-icon-suffix{color:var(--mat-form-field-error-trailing-icon-color, var(--mat-sys-error))}.mat-form-field-invalid:not(.mat-focused):not(.mat-form-field-disabled) .mat-mdc-text-field-wrapper:hover .mat-mdc-form-field-icon-suffix{color:var(--mat-form-field-error-hover-trailing-icon-color, var(--mat-sys-on-error-container))}.mat-form-field-invalid.mat-focused .mat-mdc-text-field-wrapper .mat-mdc-form-field-icon-suffix{color:var(--mat-form-field-error-focus-trailing-icon-color, var(--mat-sys-error))}.mat-mdc-form-field-icon-prefix,[dir=rtl] .mat-mdc-form-field-icon-suffix{padding:0 4px 0 0}.mat-mdc-form-field-icon-suffix,[dir=rtl] .mat-mdc-form-field-icon-prefix{padding:0 0 0 4px}.mat-mdc-form-field-subscript-wrapper .mat-icon,.mat-mdc-form-field label .mat-icon{width:1em;height:1em;font-size:inherit}.mat-mdc-form-field-infix{flex:auto;min-width:0;width:180px;position:relative;box-sizing:border-box}.mat-mdc-form-field-infix:has(textarea[cols]){width:auto}.mat-mdc-form-field .mdc-notched-outline__notch{margin-left:-1px;-webkit-clip-path:inset(-9em -999em -9em 1px);clip-path:inset(-9em -999em -9em 1px)}[dir=rtl] .mat-mdc-form-field .mdc-notched-outline__notch{margin-left:0;margin-right:-1px;-webkit-clip-path:inset(-9em 1px -9em -999em);clip-path:inset(-9em 1px -9em -999em)}.mat-mdc-form-field.mat-form-field-animations-enabled .mdc-floating-label{transition:transform 150ms cubic-bezier(0.4, 0, 0.2, 1),color 150ms cubic-bezier(0.4, 0, 0.2, 1)}.mat-mdc-form-field.mat-form-field-animations-enabled .mdc-text-field__input{transition:opacity 150ms cubic-bezier(0.4, 0, 0.2, 1)}.mat-mdc-form-field.mat-form-field-animations-enabled .mdc-text-field__input::placeholder{transition:opacity 67ms cubic-bezier(0.4, 0, 0.2, 1)}.mat-mdc-form-field.mat-form-field-animations-enabled .mdc-text-field__input::-moz-placeholder{transition:opacity 67ms cubic-bezier(0.4, 0, 0.2, 1)}.mat-mdc-form-field.mat-form-field-animations-enabled .mdc-text-field__input::-webkit-input-placeholder{transition:opacity 67ms cubic-bezier(0.4, 0, 0.2, 1)}.mat-mdc-form-field.mat-form-field-animations-enabled .mdc-text-field__input:-ms-input-placeholder{transition:opacity 67ms cubic-bezier(0.4, 0, 0.2, 1)}.mat-mdc-form-field.mat-form-field-animations-enabled.mdc-text-field--no-label .mdc-text-field__input::placeholder,.mat-mdc-form-field.mat-form-field-animations-enabled.mdc-text-field--focused .mdc-text-field__input::placeholder{transition-delay:40ms;transition-duration:110ms}.mat-mdc-form-field.mat-form-field-animations-enabled.mdc-text-field--no-label .mdc-text-field__input::-moz-placeholder,.mat-mdc-form-field.mat-form-field-animations-enabled.mdc-text-field--focused .mdc-text-field__input::-moz-placeholder{transition-delay:40ms;transition-duration:110ms}.mat-mdc-form-field.mat-form-field-animations-enabled.mdc-text-field--no-label .mdc-text-field__input::-webkit-input-placeholder,.mat-mdc-form-field.mat-form-field-animations-enabled.mdc-text-field--focused .mdc-text-field__input::-webkit-input-placeholder{transition-delay:40ms;transition-duration:110ms}.mat-mdc-form-field.mat-form-field-animations-enabled.mdc-text-field--no-label .mdc-text-field__input:-ms-input-placeholder,.mat-mdc-form-field.mat-form-field-animations-enabled.mdc-text-field--focused .mdc-text-field__input:-ms-input-placeholder{transition-delay:40ms;transition-duration:110ms}.mat-mdc-form-field.mat-form-field-animations-enabled .mdc-text-field--filled:not(.mdc-ripple-upgraded):focus .mdc-text-field__ripple::before{transition-duration:75ms}.mat-mdc-form-field.mat-form-field-animations-enabled .mdc-line-ripple::after{transition:transform 180ms cubic-bezier(0.4, 0, 0.2, 1),opacity 180ms cubic-bezier(0.4, 0, 0.2, 1)}.mat-mdc-form-field.mat-form-field-animations-enabled .mat-mdc-form-field-hint-wrapper,.mat-mdc-form-field.mat-form-field-animations-enabled .mat-mdc-form-field-error-wrapper{animation-duration:300ms}.mdc-notched-outline .mdc-floating-label{max-width:calc(100% + 1px)}.mdc-notched-outline--upgraded .mdc-floating-label--float-above{max-width:calc(133.3333333333% + 1px)} -`],encapsulation:2,changeDetection:0})}return t})();var tg=class{};function ig(t){return t&&typeof t.connect=="function"&&!(t instanceof Al)}var cc=(function(t){return t[t.REPLACED=0]="REPLACED",t[t.INSERTED=1]="INSERTED",t[t.MOVED=2]="MOVED",t[t.REMOVED=3]="REMOVED",t})(cc||{}),fh=new T("_ViewRepeater");var xJ=20,ws=(()=>{class t{_ngZone=u(ae);_platform=u(qe);_renderer=u(cn).createRenderer(null,null);_cleanupGlobalListener;constructor(){}_scrolled=new z;_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 i=this.scrollContainers.get(e);i&&(i.unsubscribe(),this.scrollContainers.delete(e))}scrolled(e=xJ){return this._platform.isBrowser?new Fe(i=>{this._cleanupGlobalListener||(this._cleanupGlobalListener=this._ngZone.runOutsideAngular(()=>this._renderer.listen("document","scroll",()=>this._scrolled.next())));let r=e>0?this._scrolled.pipe(Pl(e)).subscribe(i):this._scrolled.subscribe(i);return this._scrolledCount++,()=>{r.unsubscribe(),this._scrolledCount--,this._scrolledCount||(this._cleanupGlobalListener?.(),this._cleanupGlobalListener=void 0)}}):Q()}ngOnDestroy(){this._cleanupGlobalListener?.(),this._cleanupGlobalListener=void 0,this.scrollContainers.forEach((e,i)=>this.deregister(i)),this._scrolled.complete()}ancestorScrolled(e,i){let r=this.getAncestorScrollContainers(e);return this.scrolled(i).pipe(ce(o=>!o||r.indexOf(o)>-1))}getAncestorScrollContainers(e){let i=[];return this.scrollContainers.forEach((r,o)=>{this._scrollableContainsElement(o,e)&&i.push(o)}),i}_scrollableContainsElement(e,i){let r=Pr(i),o=e.getElementRef().nativeElement;do if(r==o)return!0;while(r=r.parentElement);return!1}static \u0275fac=function(i){return new(i||t)};static \u0275prov=O({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),Pa=(()=>{class t{elementRef=u(q);scrollDispatcher=u(ws);ngZone=u(ae);dir=u(Vt,{optional:!0});_scrollElement=this.elementRef.nativeElement;_destroyed=new z;_renderer=u(je);_cleanupScroll;_elementScrolled=new z;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 i=this.elementRef.nativeElement,r=this.dir&&this.dir.value=="rtl";e.left==null&&(e.left=r?e.end:e.start),e.right==null&&(e.right=r?e.start:e.end),e.bottom!=null&&(e.top=i.scrollHeight-i.clientHeight-e.bottom),r&&eh()!=Aa.NORMAL?(e.left!=null&&(e.right=i.scrollWidth-i.clientWidth-e.left),eh()==Aa.INVERTED?e.left=e.right:eh()==Aa.NEGATED&&(e.left=e.right?-e.right:e.right)):e.right!=null&&(e.left=i.scrollWidth-i.clientWidth-e.right),this._applyScrollToOptions(e)}_applyScrollToOptions(e){let i=this.elementRef.nativeElement;q0()?i.scrollTo(e):(e.top!=null&&(i.scrollTop=e.top),e.left!=null&&(i.scrollLeft=e.left))}measureScrollOffset(e){let i="left",r="right",o=this.elementRef.nativeElement;if(e=="top")return o.scrollTop;if(e=="bottom")return o.scrollHeight-o.clientHeight-o.scrollTop;let a=this.dir&&this.dir.value=="rtl";return e=="start"?e=a?r:i:e=="end"&&(e=a?i:r),a&&eh()==Aa.INVERTED?e==i?o.scrollWidth-o.clientWidth-o.scrollLeft:o.scrollLeft:a&&eh()==Aa.NEGATED?e==i?o.scrollLeft+o.scrollWidth-o.clientWidth:-o.scrollLeft:e==i?o.scrollLeft:o.scrollWidth-o.clientWidth-o.scrollLeft}static \u0275fac=function(i){return new(i||t)};static \u0275dir=F({type:t,selectors:[["","cdk-scrollable",""],["","cdkScrollable",""]]})}return t})(),CJ=20,Xn=(()=>{class t{_platform=u(qe);_listeners;_viewportSize;_change=new z;_document=u(ge);constructor(){let e=u(ae),i=u(cn).createRenderer(null,null);e.runOutsideAngular(()=>{if(this._platform.isBrowser){let r=o=>this._change.next(o);this._listeners=[i.listen("window","resize",r),i.listen("window","orientationchange",r)]}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:i,height:r}=this.getViewportSize();return{top:e.top,left:e.left,bottom:e.top+r,right:e.left+i,height:r,width:i}}getViewportScrollPosition(){if(!this._platform.isBrowser)return{top:0,left:0};let e=this._document,i=this._getWindow(),r=e.documentElement,o=r.getBoundingClientRect(),a=-o.top||e.body.scrollTop||i.scrollY||r.scrollTop||0,s=-o.left||e.body.scrollLeft||i.scrollX||r.scrollLeft||0;return{top:a,left:s}}change(e=CJ){return e>0?this._change.pipe(Pl(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(i){return new(i||t)};static \u0275prov=O({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();var vr=(()=>{class t{static \u0275fac=function(i){return new(i||t)};static \u0275mod=ee({type:t});static \u0275inj=J({})}return t})(),ng=(()=>{class t{static \u0275fac=function(i){return new(i||t)};static \u0275mod=ee({type:t});static \u0275inj=J({imports:[vs,vr,vs,vr]})}return t})();var rg=class{_attachedHost;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}},Zr=class extends rg{component;viewContainerRef;injector;projectableNodes;constructor(n,e,i,r){super(),this.component=n,this.viewContainerRef=e,this.injector=i,this.projectableNodes=r}},Cn=class extends rg{templateRef;viewContainerRef;context;injector;constructor(n,e,i,r){super(),this.templateRef=n,this.viewContainerRef=e,this.context=i,this.injector=r}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()}},$k=class extends rg{element;constructor(n){super(),this.element=n instanceof q?n.nativeElement:n}},dc=class{_attachedPortal;_disposeFn;_isDisposed=!1;hasAttached(){return!!this._attachedPortal}attach(n){if(n instanceof Zr)return this._attachedPortal=n,this.attachComponentPortal(n);if(n instanceof Cn)return this._attachedPortal=n,this.attachTemplatePortal(n);if(this.attachDomPortal&&n instanceof $k)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)}},og=class extends dc{outletElement;_appRef;_defaultInjector;constructor(n,e,i){super(),this.outletElement=n,this._appRef=e,this._defaultInjector=i}attachComponentPortal(n){let e;if(n.viewContainerRef){let i=n.injector||n.viewContainerRef.injector,r=i.get(as,null,{optional:!0})||void 0;e=n.viewContainerRef.createComponent(n.component,{index:n.viewContainerRef.length,injector:i,ngModuleRef:r,projectableNodes:n.projectableNodes||void 0}),this.setDisposeFn(()=>e.destroy())}else{let i=this._appRef,r=n.injector||this._defaultInjector||de.NULL,o=r.get(Wt,i.injector);e=Mm(n.component,{elementInjector:r,environmentInjector:o,projectableNodes:n.projectableNodes||void 0}),i.attachView(e.hostView),this.setDisposeFn(()=>{i.viewCount>0&&i.detachView(e.hostView),e.destroy()})}return this.outletElement.appendChild(this._getComponentRootNode(e)),this._attachedPortal=n,e}attachTemplatePortal(n){let e=n.viewContainerRef,i=e.createEmbeddedView(n.templateRef,n.context,{injector:n.injector});return i.rootNodes.forEach(r=>this.outletElement.appendChild(r)),i.detectChanges(),this.setDisposeFn(()=>{let r=e.indexOf(i);r!==-1&&e.remove(r)}),this._attachedPortal=n,i}attachDomPortal=n=>{let e=n.element;e.parentNode;let i=this.outletElement.ownerDocument.createComment("dom-portal");e.parentNode.insertBefore(i,e),this.outletElement.appendChild(e),this._attachedPortal=n,super.setDisposeFn(()=>{i.parentNode&&i.parentNode.replaceChild(e,i)})};dispose(){super.dispose(),this.outletElement.remove()}_getComponentRootNode(n){return n.hostView.rootNodes[0]}},tB=(()=>{class t extends Cn{constructor(){let e=u(te),i=u(nt);super(e,i)}static \u0275fac=function(i){return new(i||t)};static \u0275dir=F({type:t,selectors:[["","cdkPortal",""]],exportAs:["cdkPortal"],features:[le]})}return t})();var yr=(()=>{class t extends dc{_moduleRef=u(as,{optional:!0});_document=u(ge);_viewContainerRef=u(nt);_isInitialized=!1;_attachedRef;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 U;get attachedRef(){return this._attachedRef}ngOnInit(){this._isInitialized=!0}ngOnDestroy(){super.dispose(),this._attachedRef=this._attachedPortal=null}attachComponentPortal(e){e.setAttachedHost(this);let i=e.viewContainerRef!=null?e.viewContainerRef:this._viewContainerRef,r=i.createComponent(e.component,{index:i.length,injector:e.injector||i.injector,projectableNodes:e.projectableNodes||void 0,ngModuleRef:this._moduleRef||void 0});return i!==this._viewContainerRef&&this._getRootNode().appendChild(r.hostView.rootNodes[0]),super.setDisposeFn(()=>r.destroy()),this._attachedPortal=e,this._attachedRef=r,this.attached.emit(r),r}attachTemplatePortal(e){e.setAttachedHost(this);let i=this._viewContainerRef.createEmbeddedView(e.templateRef,e.context,{injector:e.injector});return super.setDisposeFn(()=>this._viewContainerRef.clear()),this._attachedPortal=e,this._attachedRef=i,this.attached.emit(i),i}attachDomPortal=e=>{let i=e.element;i.parentNode;let r=this._document.createComment("dom-portal");e.setAttachedHost(this),i.parentNode.insertBefore(r,i),this._getRootNode().appendChild(i),this._attachedPortal=e,super.setDisposeFn(()=>{r.parentNode&&r.parentNode.replaceChild(i,r)})};_getRootNode(){let e=this._viewContainerRef.element.nativeElement;return e.nodeType===e.ELEMENT_NODE?e:e.parentNode}static \u0275fac=function(i){return new(i||t)};static \u0275dir=F({type:t,selectors:[["","cdkPortalOutlet",""]],inputs:{portal:[0,"cdkPortalOutlet","portal"]},outputs:{attached:"attached"},exportAs:["cdkPortalOutlet"],features:[le]})}return t})();var Co=(()=>{class t{static \u0275fac=function(i){return new(i||t)};static \u0275mod=ee({type:t});static \u0275inj=J({})}return t})();var iB=q0();function uc(t){return new Qy(t.get(Xn),t.get(ge))}var Qy=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=on(-this._previousScrollPosition.left),n.style.top=on(-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,i=n.style,r=e.style,o=i.scrollBehavior||"",a=r.scrollBehavior||"";this._isEnabled=!1,i.left=this._previousHTMLStyles.left,i.top=this._previousHTMLStyles.top,n.classList.remove("cdk-global-scrollblock"),iB&&(i.scrollBehavior=r.scrollBehavior="auto"),window.scroll(this._previousScrollPosition.left,this._previousScrollPosition.top),iB&&(i.scrollBehavior=o,r.scrollBehavior=a)}}_canBeEnabled(){if(this._document.documentElement.classList.contains("cdk-global-scrollblock")||this._isEnabled)return!1;let e=this._document.documentElement,i=this._viewportRuler.getViewportSize();return e.scrollHeight>i.height||e.scrollWidth>i.width}};function cB(t,n){return new Ky(t.get(ws),t.get(ae),t.get(Xn),n)}var Ky=class{_scrollDispatcher;_ngZone;_viewportRuler;_config;_scrollSubscription=null;_overlayRef;_initialScrollPosition;constructor(n,e,i,r){this._scrollDispatcher=n,this._ngZone=e,this._viewportRuler=i,this._config=r}attach(n){this._overlayRef,this._overlayRef=n}enable(){if(this._scrollSubscription)return;let n=this._scrollDispatcher.scrolled(0).pipe(ce(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 ag=class{enable(){}disable(){}attach(){}};function Wk(t,n){return n.some(e=>{let i=t.bottome.bottom,o=t.righte.right;return i||r||o||a})}function nB(t,n){return n.some(e=>{let i=t.tope.bottom,o=t.lefte.right;return i||r||o||a})}function wn(t,n){return new Zy(t.get(ws),t.get(Xn),t.get(ae),n)}var Zy=class{_scrollDispatcher;_viewportRuler;_ngZone;_config;_scrollSubscription=null;_overlayRef;constructor(n,e,i,r){this._scrollDispatcher=n,this._viewportRuler=e,this._ngZone=i,this._config=r}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:i,height:r}=this._viewportRuler.getViewportSize();Wk(e,[{width:i,height:r,bottom:r,right:i,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}},dB=(()=>{class t{_injector=u(de);constructor(){}noop=()=>new ag;close=e=>cB(this._injector,e);block=()=>uc(this._injector);reposition=e=>wn(this._injector,e);static \u0275fac=function(i){return new(i||t)};static \u0275prov=O({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),Fr=class{positionStrategy;scrollStrategy=new ag;panelClass="";hasBackdrop=!1;backdropClass="cdk-overlay-dark-backdrop";disableAnimations;width;height;minWidth;minHeight;maxWidth;maxHeight;direction;disposeOnNavigation=!1;constructor(n){if(n){let e=Object.keys(n);for(let i of e)n[i]!==void 0&&(this[i]=n[i])}}};var Xy=class{connectionPair;scrollableViewProperties;constructor(n,e){this.connectionPair=n,this.scrollableViewProperties=e}};var uB=(()=>{class t{_attachedOverlays=[];_document=u(ge);_isAttached;constructor(){}ngOnDestroy(){this.detach()}add(e){this.remove(e),this._attachedOverlays.push(e)}remove(e){let i=this._attachedOverlays.indexOf(e);i>-1&&this._attachedOverlays.splice(i,1),this._attachedOverlays.length===0&&this.detach()}static \u0275fac=function(i){return new(i||t)};static \u0275prov=O({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),mB=(()=>{class t extends uB{_ngZone=u(ae);_renderer=u(cn).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 i=this._attachedOverlays;for(let r=i.length-1;r>-1;r--)if(i[r]._keydownEvents.observers.length>0){this._ngZone.run(()=>i[r]._keydownEvents.next(e));break}};static \u0275fac=(()=>{let e;return function(r){return(e||(e=fe(t)))(r||t)}})();static \u0275prov=O({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),hB=(()=>{class t extends uB{_platform=u(qe);_ngZone=u(ae);_renderer=u(cn).createRenderer(null,null);_cursorOriginalValue;_cursorStyleIsSet=!1;_pointerDownEventTarget;_cleanups;add(e){if(super.add(e),!this._isAttached){let i=this._document.body,r={capture:!0},o=this._renderer;this._cleanups=this._ngZone.runOutsideAngular(()=>[o.listen(i,"pointerdown",this._pointerDownListener,r),o.listen(i,"click",this._clickListener,r),o.listen(i,"auxclick",this._clickListener,r),o.listen(i,"contextmenu",this._clickListener,r)]),this._platform.IOS&&!this._cursorStyleIsSet&&(this._cursorOriginalValue=i.style.cursor,i.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=Kn(e)};_clickListener=e=>{let i=Kn(e),r=e.type==="click"&&this._pointerDownEventTarget?this._pointerDownEventTarget:i;this._pointerDownEventTarget=null;let o=this._attachedOverlays.slice();for(let a=o.length-1;a>-1;a--){let s=o[a];if(s._outsidePointerEvents.observers.length<1||!s.hasAttached())continue;if(rB(s.overlayElement,i)||rB(s.overlayElement,r))break;let l=s._outsidePointerEvents;this._ngZone?this._ngZone.run(()=>l.next(e)):l.next(e)}};static \u0275fac=(()=>{let e;return function(r){return(e||(e=fe(t)))(r||t)}})();static \u0275prov=O({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();function rB(t,n){let e=typeof ShadowRoot<"u"&&ShadowRoot,i=n;for(;i;){if(i===t)return!0;i=e&&i instanceof ShadowRoot?i.host:i.parentNode}return!1}var pB=(()=>{class t{static \u0275fac=function(i){return new(i||t)};static \u0275cmp=E({type:t,selectors:[["ng-component"]],hostAttrs:["cdk-overlay-style-loader",""],decls:0,vars:0,template:function(i,r){},styles:[`.cdk-overlay-container,.cdk-global-overlay-wrapper{pointer-events:none;top:0;left:0;height:100%;width:100%}.cdk-overlay-container{position:fixed}@layer cdk-overlay{.cdk-overlay-container{z-index:1000}}.cdk-overlay-container:empty{display:none}.cdk-global-overlay-wrapper{display:flex;position:absolute}@layer cdk-overlay{.cdk-global-overlay-wrapper{z-index:1000}}.cdk-overlay-pane{position:absolute;pointer-events:auto;box-sizing:border-box;display:flex;max-width:100%;max-height:100%}@layer cdk-overlay{.cdk-overlay-pane{z-index:1000}}.cdk-overlay-backdrop{position:absolute;top:0;bottom:0;left:0;right:0;pointer-events:auto;-webkit-tap-highlight-color:rgba(0,0,0,0);opacity:0;touch-action:manipulation}@layer cdk-overlay{.cdk-overlay-backdrop{z-index:1000;transition:opacity 400ms cubic-bezier(0.25, 0.8, 0.25, 1)}}@media(prefers-reduced-motion){.cdk-overlay-backdrop{transition-duration:1ms}}.cdk-overlay-backdrop-showing{opacity:1}@media(forced-colors: active){.cdk-overlay-backdrop-showing{opacity:.6}}@layer cdk-overlay{.cdk-overlay-dark-backdrop{background:rgba(0,0,0,.32)}}.cdk-overlay-transparent-backdrop{transition:visibility 1ms linear,opacity 1ms linear;visibility:hidden;opacity:1}.cdk-overlay-transparent-backdrop.cdk-overlay-backdrop-showing,.cdk-high-contrast-active .cdk-overlay-transparent-backdrop{opacity:0;visibility:visible}.cdk-overlay-backdrop-noop-animation{transition:none}.cdk-overlay-connected-position-bounding-box{position:absolute;display:flex;flex-direction:column;min-width:1px;min-height:1px}@layer cdk-overlay{.cdk-overlay-connected-position-bounding-box{z-index:1000}}.cdk-global-scrollblock{position:fixed;width:100%;overflow-y:scroll} -`],encapsulation:2,changeDetection:0})}return t})(),ex=(()=>{class t{_platform=u(qe);_containerElement;_document=u(ge);_styleLoader=u(ut);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||Dk()){let r=this._document.querySelectorAll(`.${e}[platform="server"], .${e}[platform="test"]`);for(let o=0;o{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()}},gh=class{_portalOutlet;_host;_pane;_config;_ngZone;_keyboardDispatcher;_document;_location;_outsideClickDispatcher;_animationsDisabled;_injector;_renderer;_backdropClick=new z;_attachments=new z;_detachments=new z;_positionStrategy;_scrollStrategy;_locationChanges=ke.EMPTY;_backdropRef=null;_detachContentMutationObserver;_detachContentAfterRenderRef;_previousHostParent;_keydownEvents=new z;_outsidePointerEvents=new z;_afterNextRenderRef;constructor(n,e,i,r,o,a,s,l,c,d=!1,m,f){this._portalOutlet=n,this._host=e,this._pane=i,this._config=r,this._ngZone=o,this._keyboardDispatcher=a,this._document=s,this._location=l,this._outsideClickDispatcher=c,this._animationsDisabled=d,this._injector=m,this._renderer=f,r.scrollStrategy&&(this._scrollStrategy=r.scrollStrategy,this._scrollStrategy.attach(this)),this._positionStrategy=r.positionStrategy}get overlayElement(){return this._pane}get backdropElement(){return this._backdropRef?.element||null}get hostElement(){return this._host}attach(n){!this._host.parentElement&&this._previousHostParent&&this._previousHostParent.appendChild(this._host);let e=this._portalOutlet.attach(n);return this._positionStrategy&&this._positionStrategy.attach(this),this._updateStackingOrder(),this._updateElementSize(),this._updateElementDirection(),this._scrollStrategy&&this._scrollStrategy.enable(),this._afterNextRenderRef?.destroy(),this._afterNextRenderRef=pt(()=>{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(){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()}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=M(M({},this._config),n),this._updateElementSize()}setDirection(n){this._config=De(M({},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=on(this._config.width),n.height=on(this._config.height),n.minWidth=on(this._config.minWidth),n.minHeight=on(this._config.minHeight),n.maxWidth=on(this._config.maxWidth),n.maxHeight=on(this._config.maxHeight)}_togglePointerEvents(n){this._pane.style.pointerEvents=n?"":"none"}_attachBackdrop(){let n="cdk-overlay-backdrop-showing";this._backdropRef?.dispose(),this._backdropRef=new Gk(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._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._host.nextSibling&&this._host.parentNode.appendChild(this._host)}detachBackdrop(){this._animationsDisabled?(this._backdropRef?.dispose(),this._backdropRef=null):this._backdropRef?.detach()}_toggleClasses(n,e,i){let r=al(e||[]).filter(o=>!!o);r.length&&(i?n.classList.add(...r):n.classList.remove(...r))}_detachContentWhenEmpty(){let n=!1;try{this._detachContentAfterRenderRef=pt(()=>{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?.()}},oB="cdk-overlay-connected-position-bounding-box",DJ=/([A-Za-z%]+)$/;function Fa(t,n){return new _h(n,t.get(Xn),t.get(ge),t.get(qe),t.get(ex))}var _h=class{_viewportRuler;_document;_platform;_overlayContainer;_overlayRef;_isInitialRender;_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;_boundingBox;_lastPosition;_lastScrollVisibility;_positionChanges=new z;_resizeSubscription=ke.EMPTY;_offsetX=0;_offsetY=0;_transformOriginSelector;_appliedPanelClasses=[];_previousPushAmount;positionChanges=this._positionChanges;get positions(){return this._preferredPositions}constructor(n,e,i,r,o){this._viewportRuler=e,this._document=i,this._platform=r,this._overlayContainer=o,this.setOrigin(n)}attach(n){this._overlayRef&&this._overlayRef,this._validatePositions(),n.hostElement.classList.add(oB),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._overlayContainer.getContainerElement().getBoundingClientRect();let n=this._originRect,e=this._overlayRect,i=this._viewportRect,r=this._containerRect,o=[],a;for(let s of this._preferredPositions){let l=this._getOriginPoint(n,r,s),c=this._getOverlayPoint(l,e,s),d=this._getOverlayFit(c,e,i,s);if(d.isCompletelyWithinViewport){this._isPushed=!1,this._applyPosition(s,l);return}if(this._canFitWithFlexibleDimensions(d,c,i)){o.push({position:s,origin:l,overlayRect:e,boundingBoxRect:this._calculateBoundingBoxRect(l,s)});continue}(!a||a.overlayFit.visibleAreal&&(l=d,s=c)}this._isPushed=!1,this._applyPosition(s.position,s.origin);return}if(this._canPush){this._isPushed=!0,this._applyPosition(a.position,a.originPoint);return}this._applyPosition(a.position,a.originPoint)}detach(){this._clearPanelClasses(),this._lastPosition=null,this._previousPushAmount=null,this._resizeSubscription.unsubscribe()}dispose(){this._isDisposed||(this._boundingBox&&ou(this._boundingBox.style,{top:"",left:"",right:"",bottom:"",height:"",width:"",alignItems:"",justifyContent:""}),this._pane&&this._resetOverlayElementStyles(),this._overlayRef&&this._overlayRef.hostElement.classList.remove(oB),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;if(n){this._originRect=this._getOriginRect(),this._overlayRect=this._pane.getBoundingClientRect(),this._viewportRect=this._getNarrowedViewportRect(),this._containerRect=this._overlayContainer.getContainerElement().getBoundingClientRect();let e=this._getOriginPoint(this._originRect,this._containerRect,n);this._applyPosition(n,e)}else 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}_getOriginPoint(n,e,i){let r;if(i.originX=="center")r=n.left+n.width/2;else{let a=this._isRtl()?n.right:n.left,s=this._isRtl()?n.left:n.right;r=i.originX=="start"?a:s}e.left<0&&(r-=e.left);let o;return i.originY=="center"?o=n.top+n.height/2:o=i.originY=="top"?n.top:n.bottom,e.top<0&&(o-=e.top),{x:r,y:o}}_getOverlayPoint(n,e,i){let r;i.overlayX=="center"?r=-e.width/2:i.overlayX==="start"?r=this._isRtl()?-e.width:0:r=this._isRtl()?0:-e.width;let o;return i.overlayY=="center"?o=-e.height/2:o=i.overlayY=="top"?0:-e.height,{x:n.x+r,y:n.y+o}}_getOverlayFit(n,e,i,r){let o=sB(e),{x:a,y:s}=n,l=this._getOffset(r,"x"),c=this._getOffset(r,"y");l&&(a+=l),c&&(s+=c);let d=0-a,m=a+o.width-i.width,f=0-s,b=s+o.height-i.height,v=this._subtractOverflows(o.width,d,m),w=this._subtractOverflows(o.height,f,b),x=v*w;return{visibleArea:x,isCompletelyWithinViewport:o.width*o.height===x,fitsInViewportVertically:w===o.height,fitsInViewportHorizontally:v==o.width}}_canFitWithFlexibleDimensions(n,e,i){if(this._hasFlexibleDimensions){let r=i.bottom-e.y,o=i.right-e.x,a=aB(this._overlayRef.getConfig().minHeight),s=aB(this._overlayRef.getConfig().minWidth),l=n.fitsInViewportVertically||a!=null&&a<=r,c=n.fitsInViewportHorizontally||s!=null&&s<=o;return l&&c}return!1}_pushOverlayOnScreen(n,e,i){if(this._previousPushAmount&&this._positionLocked)return{x:n.x+this._previousPushAmount.x,y:n.y+this._previousPushAmount.y};let r=sB(e),o=this._viewportRect,a=Math.max(n.x+r.width-o.width,0),s=Math.max(n.y+r.height-o.height,0),l=Math.max(o.top-i.top-n.y,0),c=Math.max(o.left-i.left-n.x,0),d=0,m=0;return r.width<=o.width?d=c||-a:d=n.xv&&!this._isInitialRender&&!this._growAfterOpen&&(a=n.y-v/2)}let l=e.overlayX==="start"&&!r||e.overlayX==="end"&&r,c=e.overlayX==="end"&&!r||e.overlayX==="start"&&r,d,m,f;if(c)f=i.width-n.x+this._viewportMargin*2,d=n.x-this._viewportMargin;else if(l)m=n.x,d=i.right-n.x;else{let b=Math.min(i.right-n.x+i.left,n.x),v=this._lastBoundingBoxSize.width;d=b*2,m=n.x-b,d>v&&!this._isInitialRender&&!this._growAfterOpen&&(m=n.x-v/2)}return{top:a,left:m,bottom:s,right:f,width:d,height:o}}_setBoundingBoxStyles(n,e){let i=this._calculateBoundingBoxRect(n,e);!this._isInitialRender&&!this._growAfterOpen&&(i.height=Math.min(i.height,this._lastBoundingBoxSize.height),i.width=Math.min(i.width,this._lastBoundingBoxSize.width));let r={};if(this._hasExactPosition())r.top=r.left="0",r.bottom=r.right=r.maxHeight=r.maxWidth="",r.width=r.height="100%";else{let o=this._overlayRef.getConfig().maxHeight,a=this._overlayRef.getConfig().maxWidth;r.height=on(i.height),r.top=on(i.top),r.bottom=on(i.bottom),r.width=on(i.width),r.left=on(i.left),r.right=on(i.right),e.overlayX==="center"?r.alignItems="center":r.alignItems=e.overlayX==="end"?"flex-end":"flex-start",e.overlayY==="center"?r.justifyContent="center":r.justifyContent=e.overlayY==="bottom"?"flex-end":"flex-start",o&&(r.maxHeight=on(o)),a&&(r.maxWidth=on(a))}this._lastBoundingBoxSize=i,ou(this._boundingBox.style,r)}_resetBoundingBoxStyles(){ou(this._boundingBox.style,{top:"0",left:"0",right:"0",bottom:"0",height:"",width:"",alignItems:"",justifyContent:""})}_resetOverlayElementStyles(){ou(this._pane.style,{top:"",left:"",bottom:"",right:"",position:"",transform:""})}_setOverlayElementStyles(n,e){let i={},r=this._hasExactPosition(),o=this._hasFlexibleDimensions,a=this._overlayRef.getConfig();if(r){let d=this._viewportRuler.getViewportScrollPosition();ou(i,this._getExactOverlayY(e,n,d)),ou(i,this._getExactOverlayX(e,n,d))}else i.position="static";let s="",l=this._getOffset(e,"x"),c=this._getOffset(e,"y");l&&(s+=`translateX(${l}px) `),c&&(s+=`translateY(${c}px)`),i.transform=s.trim(),a.maxHeight&&(r?i.maxHeight=on(a.maxHeight):o&&(i.maxHeight="")),a.maxWidth&&(r?i.maxWidth=on(a.maxWidth):o&&(i.maxWidth="")),ou(this._pane.style,i)}_getExactOverlayY(n,e,i){let r={top:"",bottom:""},o=this._getOverlayPoint(e,this._overlayRect,n);if(this._isPushed&&(o=this._pushOverlayOnScreen(o,this._overlayRect,i)),n.overlayY==="bottom"){let a=this._document.documentElement.clientHeight;r.bottom=`${a-(o.y+this._overlayRect.height)}px`}else r.top=on(o.y);return r}_getExactOverlayX(n,e,i){let r={left:"",right:""},o=this._getOverlayPoint(e,this._overlayRect,n);this._isPushed&&(o=this._pushOverlayOnScreen(o,this._overlayRect,i));let a;if(this._isRtl()?a=n.overlayX==="end"?"left":"right":a=n.overlayX==="end"?"right":"left",a==="right"){let s=this._document.documentElement.clientWidth;r.right=`${s-(o.x+this._overlayRect.width)}px`}else r.left=on(o.x);return r}_getScrollVisibility(){let n=this._getOriginRect(),e=this._pane.getBoundingClientRect(),i=this._scrollables.map(r=>r.getElementRef().nativeElement.getBoundingClientRect());return{isOriginClipped:nB(n,i),isOriginOutsideView:Wk(n,i),isOverlayClipped:nB(e,i),isOverlayOutsideView:Wk(e,i)}}_subtractOverflows(n,...e){return e.reduce((i,r)=>i-Math.max(r,0),n)}_getNarrowedViewportRect(){let n=this._document.documentElement.clientWidth,e=this._document.documentElement.clientHeight,i=this._viewportRuler.getViewportScrollPosition();return{top:i.top+this._viewportMargin,left:i.left+this._viewportMargin,right:i.left+n-this._viewportMargin,bottom:i.top+e-this._viewportMargin,width:n-2*this._viewportMargin,height:e-2*this._viewportMargin}}_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&&al(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=[])}_getOriginRect(){let n=this._origin;if(n instanceof q)return n.nativeElement.getBoundingClientRect();if(n instanceof Element)return n.getBoundingClientRect();let e=n.width||0,i=n.height||0;return{top:n.y,bottom:n.y+i,left:n.x,right:n.x+e,height:i,width:e}}};function ou(t,n){for(let e in n)n.hasOwnProperty(e)&&(t[e]=n[e]);return t}function aB(t){if(typeof t!="number"&&t!=null){let[n,e]=t.split(DJ);return!e||e==="px"?parseFloat(n):null}return t||null}function sB(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 EJ(t,n){return t===n?!0:t.isOriginClipped===n.isOriginClipped&&t.isOriginOutsideView===n.isOriginOutsideView&&t.isOverlayClipped===n.isOverlayClipped&&t.isOverlayOutsideView===n.isOverlayOutsideView}var lB="cdk-global-overlay-wrapper";function Ds(t){return new Jy}var Jy=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(lB),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,i=this._overlayRef.getConfig(),{width:r,height:o,maxWidth:a,maxHeight:s}=i,l=(r==="100%"||r==="100vw")&&(!a||a==="100%"||a==="100vw"),c=(o==="100%"||o==="100vh")&&(!s||s==="100%"||s==="100vh"),d=this._xPosition,m=this._xOffset,f=this._overlayRef.getConfig().direction==="rtl",b="",v="",w="";l?w="flex-start":d==="center"?(w="center",f?v=m:b=m):f?d==="left"||d==="end"?(w="flex-end",b=m):(d==="right"||d==="start")&&(w="flex-start",v=m):d==="left"||d==="start"?(w="flex-start",b=m):(d==="right"||d==="end")&&(w="flex-end",v=m),n.position=this._cssPosition,n.marginLeft=l?"0":b,n.marginTop=c?"0":this._topOffset,n.marginBottom=this._bottomOffset,n.marginRight=l?"0":v,e.justifyContent=w,e.alignItems=c?"flex-start":this._alignItems}dispose(){if(this._isDisposed||!this._overlayRef)return;let n=this._overlayRef.overlayElement.style,e=this._overlayRef.hostElement,i=e.style;e.classList.remove(lB),i.justifyContent=i.alignItems=n.marginTop=n.marginBottom=n.marginLeft=n.marginRight=n.position="",this._overlayRef=null,this._isDisposed=!0}},fB=(()=>{class t{_injector=u(de);constructor(){}global(){return Ds()}flexibleConnectedTo(e){return Fa(this._injector,e)}static \u0275fac=function(i){return new(i||t)};static \u0275prov=O({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();function Nr(t,n){t.get(ut).load(pB);let e=t.get(ex),i=t.get(ge),r=t.get(Ze),o=t.get(Gn),a=t.get(Vt),s=i.createElement("div"),l=i.createElement("div");l.id=r.getId("cdk-overlay-"),l.classList.add("cdk-overlay-pane"),s.appendChild(l),e.getContainerElement().appendChild(s);let c=new og(l,o,t),d=new Fr(n),m=t.get(je,null,{optional:!0})||t.get(cn).createRenderer(null,null);return d.direction=d.direction||a.value,new gh(c,s,l,d,t.get(ae),t.get(mB),i,t.get(us),t.get(hB),n?.disableAnimations??t.get(Yp,null,{optional:!0})==="NoopAnimations",t.get(Wt),m)}var gB=(()=>{class t{scrollStrategies=u(dB);_positionBuilder=u(fB);_injector=u(de);constructor(){}create(e){return Nr(this._injector,e)}position(){return this._positionBuilder}static \u0275fac=function(i){return new(i||t)};static \u0275prov=O({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),MJ=[{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"}],_B=new T("cdk-connected-overlay-scroll-strategy",{providedIn:"root",factory:()=>{let t=u(de);return()=>wn(t)}}),bh=(()=>{class t{elementRef=u(q);constructor(){}static \u0275fac=function(i){return new(i||t)};static \u0275dir=F({type:t,selectors:[["","cdk-overlay-origin",""],["","overlay-origin",""],["","cdkOverlayOrigin",""]],exportAs:["cdkOverlayOrigin"]})}return t})(),tx=(()=>{class t{_dir=u(Vt,{optional:!0});_injector=u(de);_overlayRef;_templatePortal;_backdropSubscription=ke.EMPTY;_attachSubscription=ke.EMPTY;_detachSubscription=ke.EMPTY;_positionSubscription=ke.EMPTY;_offsetX;_offsetY;_position;_scrollStrategyFactory=u(_B);_disposeOnNavigation=!1;_ngZone=u(ae);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;get disposeOnNavigation(){return this._disposeOnNavigation}set disposeOnNavigation(e){this._disposeOnNavigation=e}backdropClick=new U;positionChange=new U;attach=new U;detach=new U;overlayKeydown=new U;overlayOutsideClick=new U;constructor(){let e=u(te),i=u(nt);this._templatePortal=new Cn(e,i),this.scrollStrategy=this._scrollStrategyFactory()}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.width,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=MJ);let e=this._overlayRef=Nr(this._injector,this._buildConfig());this._attachSubscription=e.attachments().subscribe(()=>this.attach.emit()),this._detachSubscription=e.detachments().subscribe(()=>this.detach.emit()),e.keydownEvents().subscribe(i=>{this.overlayKeydown.next(i),i.keyCode===27&&!this.disableClose&&!Ft(i)&&(i.preventDefault(),this.detachOverlay())}),this._overlayRef.outsidePointerEvents().subscribe(i=>{let r=this._getOriginElement(),o=Kn(i);(!r||r!==o&&!r.contains(o))&&this.overlayOutsideClick.next(i)})}_buildConfig(){let e=this._position=this.positionStrategy||this._createPositionStrategy(),i=new Fr({direction:this._dir||"ltr",positionStrategy:e,scrollStrategy:this.scrollStrategy,hasBackdrop:this.hasBackdrop,disposeOnNavigation:this.disposeOnNavigation});return(this.width||this.width===0)&&(i.width=this.width),(this.height||this.height===0)&&(i.height=this.height),(this.minWidth||this.minWidth===0)&&(i.minWidth=this.minWidth),(this.minHeight||this.minHeight===0)&&(i.minHeight=this.minHeight),this.backdropClass&&(i.backdropClass=this.backdropClass),this.panelClass&&(i.panelClass=this.panelClass),i}_updatePositionStrategy(e){let i=this.positions.map(r=>({originX:r.originX,originY:r.originY,overlayX:r.overlayX,overlayY:r.overlayY,offsetX:r.offsetX||this.offsetX,offsetY:r.offsetY||this.offsetY,panelClass:r.panelClass||void 0}));return e.setOrigin(this._getOrigin()).withPositions(i).withFlexibleDimensions(this.flexibleDimensions).withPush(this.push).withGrowAfterOpen(this.growAfterOpen).withViewportMargin(this.viewportMargin).withLockedPosition(this.lockPosition).withTransformOriginOn(this.transformOriginSelector)}_createPositionStrategy(){let e=Fa(this._injector,this._getOrigin());return this._updatePositionStrategy(e),e}_getOrigin(){return this.origin instanceof bh?this.origin.elementRef:this.origin}_getOriginElement(){return this.origin instanceof bh?this.origin.elementRef.nativeElement:this.origin instanceof q?this.origin.nativeElement:typeof Element<"u"&&this.origin instanceof Element?this.origin:null}attachOverlay(){this._overlayRef?this._overlayRef.getConfig().hasBackdrop=this.hasBackdrop:this._createOverlay(),this._overlayRef.hasAttached()||this._overlayRef.attach(this._templatePortal),this.hasBackdrop?this._backdropSubscription=this._overlayRef.backdropClick().subscribe(e=>{this.backdropClick.emit(e)}):this._backdropSubscription.unsubscribe(),this._positionSubscription.unsubscribe(),this.positionChange.observers.length>0&&(this._positionSubscription=this._position.positionChanges.pipe(Xw(()=>this.positionChange.observers.length>0)).subscribe(e=>{this._ngZone.run(()=>this.positionChange.emit(e)),this.positionChange.observers.length===0&&this._positionSubscription.unsubscribe()})),this.open=!0}detachOverlay(){this._overlayRef?.detach(),this._backdropSubscription.unsubscribe(),this._positionSubscription.unsubscribe(),this.open=!1}static \u0275fac=function(i){return new(i||t)};static \u0275dir=F({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",V],lockPosition:[2,"cdkConnectedOverlayLockPosition","lockPosition",V],flexibleDimensions:[2,"cdkConnectedOverlayFlexibleDimensions","flexibleDimensions",V],growAfterOpen:[2,"cdkConnectedOverlayGrowAfterOpen","growAfterOpen",V],push:[2,"cdkConnectedOverlayPush","push",V],disposeOnNavigation:[2,"cdkConnectedOverlayDisposeOnNavigation","disposeOnNavigation",V]},outputs:{backdropClick:"backdropClick",positionChange:"positionChange",attach:"attach",detach:"detach",overlayKeydown:"overlayKeydown",overlayOutsideClick:"overlayOutsideClick"},exportAs:["cdkConnectedOverlay"],features:[Ae]})}return t})();function kJ(t){let n=u(de);return()=>wn(n)}var SJ={provide:_B,useFactory:kJ},er=(()=>{class t{static \u0275fac=function(i){return new(i||t)};static \u0275mod=ee({type:t});static \u0275inj=J({providers:[gB,SJ],imports:[vs,Co,ng,ng]})}return t})();var au=(()=>{class t{_listeners=[];notify(e,i){for(let r of this._listeners)r(e,i)}listen(e){return this._listeners.push(e),()=>{this._listeners=this._listeners.filter(i=>e!==i)}}ngOnDestroy(){this._listeners=[]}static \u0275fac=function(i){return new(i||t)};static \u0275prov=O({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();var su=class{applyChanges(n,e,i,r,o){n.forEachOperation((a,s,l)=>{let c,d;if(a.previousIndex==null){let m=i(a,s,l);c=e.createEmbeddedView(m.templateRef,m.context,m.index),d=cc.INSERTED}else l==null?(e.remove(s),d=cc.REMOVED):(c=e.get(s),e.move(c,l),d=cc.MOVED);o&&o({context:c?.context,operation:d,record:a})})}detach(){}};var sg=class{_multiple;_emitChanges;compareWith;_selection=new Set;_deselectedToEmit=[];_selectedToEmit=[];_selected;get selected(){return this._selected||(this._selected=Array.from(this._selection.values())),this._selected}changed=new z;constructor(n=!1,e,i=!0,r){this._multiple=n,this._emitChanges=i,this.compareWith=r,e&&e.length&&(n?e.forEach(o=>this._markSelected(o)):this._markSelected(e[0]),this._selectedToEmit.length=0)}select(...n){this._verifyValueAssignment(n),n.forEach(i=>this._markSelected(i));let e=this._hasQueuedChanges();return this._emitChangeEvent(),e}deselect(...n){this._verifyValueAssignment(n),n.forEach(i=>this._unmarkSelected(i));let e=this._hasQueuedChanges();return this._emitChangeEvent(),e}setSelection(...n){this._verifyValueAssignment(n);let e=this.selected,i=new Set(n.map(o=>this._getConcreteValue(o)));n.forEach(o=>this._markSelected(o)),e.filter(o=>!i.has(this._getConcreteValue(o,i))).forEach(o=>this._unmarkSelected(o));let r=this._hasQueuedChanges();return this._emitChangeEvent(),r}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 i of e)if(this.compareWith(n,i))return i;return n}else return n}};var MB=(()=>{class t{_renderer;_elementRef;onChange=e=>{};onTouched=()=>{};constructor(e,i){this._renderer=e,this._elementRef=i}setProperty(e,i){this._renderer.setProperty(this._elementRef.nativeElement,e,i)}registerOnTouched(e){this.onTouched=e}registerOnChange(e){this.onChange=e}setDisabledState(e){this.setProperty("disabled",e)}static \u0275fac=function(i){return new(i||t)(_e(je),_e(q))};static \u0275dir=F({type:t})}return t})(),kB=(()=>{class t extends MB{static \u0275fac=(()=>{let e;return function(r){return(e||(e=fe(t)))(r||t)}})();static \u0275dir=F({type:t,features:[le]})}return t})(),tr=new T("");var TJ={provide:tr,useExisting:Kt(()=>Qi),multi:!0};function IJ(){let t=Wo()?Wo().getUserAgent():"";return/android (\d+)/.test(t.toLowerCase())}var AJ=new T(""),Qi=(()=>{class t extends MB{_compositionMode;_composing=!1;constructor(e,i,r){super(e,i),this._compositionMode=r,this._compositionMode==null&&(this._compositionMode=!IJ())}writeValue(e){let i=e??"";this.setProperty("value",i)}_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(i){return new(i||t)(_e(je),_e(q),_e(AJ,8))};static \u0275dir=F({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(i,r){i&1&&S("input",function(a){return r._handleInput(a.target.value)})("blur",function(){return r.onTouched()})("compositionstart",function(){return r._compositionStart()})("compositionend",function(a){return r._compositionEnd(a.target.value)})},standalone:!1,features:[Ce([TJ]),le]})}return t})();function Qk(t){return t==null||Kk(t)===0}function Kk(t){return t==null?null:Array.isArray(t)||typeof t=="string"?t.length:t instanceof Set?t.size:null}var ea=new T(""),fg=new T(""),OJ=/^(?=.{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])?)*$/,Le=class{static min(n){return RJ(n)}static max(n){return PJ(n)}static required(n){return SB(n)}static requiredTrue(n){return FJ(n)}static email(n){return NJ(n)}static minLength(n){return LJ(n)}static maxLength(n){return VJ(n)}static pattern(n){return BJ(n)}static nullValidator(n){return nx()}static compose(n){return PB(n)}static composeAsync(n){return FB(n)}};function RJ(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 SB(t){return Qk(t.value)?{required:!0}:null}function FJ(t){return t.value===!0?null:{required:!0}}function NJ(t){return Qk(t.value)||OJ.test(t.value)?null:{email:!0}}function LJ(t){return n=>{let e=n.value?.length??Kk(n.value);return e===null||e===0?null:e{let e=n.value?.length??Kk(n.value);return e!==null&&e>t?{maxlength:{requiredLength:t,actualLength:e}}:null}}function BJ(t){if(!t)return nx;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),i=>{if(Qk(i.value))return null;let r=i.value;return n.test(r)?null:{pattern:{requiredPattern:e,actualValue:r}}}}function nx(t){return null}function TB(t){return t!=null}function IB(t){return Xs(t)?Ot(t):t}function AB(t){let n={};return t.forEach(e=>{n=e!=null?M(M({},n),e):n}),Object.keys(n).length===0?null:n}function OB(t,n){return n.map(e=>e(t))}function jJ(t){return!t.validate}function RB(t){return t.map(n=>jJ(n)?n:e=>n.validate(e))}function PB(t){if(!t)return null;let n=t.filter(TB);return n.length==0?null:function(e){return AB(OB(e,n))}}function Zk(t){return t!=null?PB(RB(t)):null}function FB(t){if(!t)return null;let n=t.filter(TB);return n.length==0?null:function(e){let i=OB(e,n).map(IB);return Ga(i).pipe(se(AB))}}function Xk(t){return t!=null?FB(RB(t)):null}function vB(t,n){return t===null?[n]:Array.isArray(t)?[...t,n]:[t,n]}function NB(t){return t._rawValidators}function LB(t){return t._rawAsyncValidators}function qk(t){return t?Array.isArray(t)?t:[t]:[]}function rx(t,n){return Array.isArray(t)?t.includes(n):t===n}function yB(t,n){let e=qk(n);return qk(t).forEach(r=>{rx(e,r)||e.push(r)}),e}function xB(t,n){return qk(n).filter(e=>!rx(t,e))}var ox=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=Zk(this._rawValidators)}_setAsyncValidators(n){this._rawAsyncValidators=n||[],this._composedAsyncValidatorFn=Xk(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&&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}},Es=class extends ox{name;get formDirective(){return null}get path(){return null}},Hn=class extends ox{_parent=null;name=null;valueAccessor=null},ax=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}},HJ={"[class.ng-untouched]":"isUntouched","[class.ng-touched]":"isTouched","[class.ng-pristine]":"isPristine","[class.ng-dirty]":"isDirty","[class.ng-valid]":"isValid","[class.ng-invalid]":"isInvalid","[class.ng-pending]":"isPending"},jWe=De(M({},HJ),{"[class.ng-submitted]":"isSubmitted"}),ei=(()=>{class t extends ax{constructor(e){super(e)}static \u0275fac=function(i){return new(i||t)(_e(Hn,2))};static \u0275dir=F({type:t,selectors:[["","formControlName",""],["","ngModel",""],["","formControl",""]],hostVars:14,hostBindings:function(i,r){i&2&&G("ng-untouched",r.isUntouched)("ng-touched",r.isTouched)("ng-pristine",r.isPristine)("ng-dirty",r.isDirty)("ng-valid",r.isValid)("ng-invalid",r.isInvalid)("ng-pending",r.isPending)},standalone:!1,features:[le]})}return t})(),Xr=(()=>{class t extends ax{constructor(e){super(e)}static \u0275fac=function(i){return new(i||t)(_e(Es,10))};static \u0275dir=F({type:t,selectors:[["","formGroupName",""],["","formArrayName",""],["","ngModelGroup",""],["","formGroup",""],["form",3,"ngNoForm",""],["","ngForm",""]],hostVars:16,hostBindings:function(i,r){i&2&&G("ng-untouched",r.isUntouched)("ng-touched",r.isTouched)("ng-pristine",r.isPristine)("ng-dirty",r.isDirty)("ng-valid",r.isValid)("ng-invalid",r.isInvalid)("ng-pending",r.isPending)("ng-submitted",r.isSubmitted)},standalone:!1,features:[le]})}return t})();var lg="VALID",ix="INVALID",vh="PENDING",cg="DISABLED",mc=class{},sx=class extends mc{value;source;constructor(n,e){super(),this.value=n,this.source=e}},ug=class extends mc{pristine;source;constructor(n,e){super(),this.pristine=n,this.source=e}},mg=class extends mc{touched;source;constructor(n,e){super(),this.touched=n,this.source=e}},yh=class extends mc{status;source;constructor(n,e){super(),this.status=n,this.source=e}},lx=class extends mc{source;constructor(n){super(),this.source=n}},hg=class extends mc{source;constructor(n){super(),this.source=n}};function Jk(t){return(hx(t)?t.validators:t)||null}function zJ(t){return Array.isArray(t)?Zk(t):t||null}function eS(t,n){return(hx(n)?n.asyncValidators:t)||null}function UJ(t){return Array.isArray(t)?Xk(t):t||null}function hx(t){return t!=null&&!Array.isArray(t)&&typeof t=="object"}function VB(t,n,e){let i=t.controls;if(!(n?Object.keys(i):i).length)throw new ue(1e3,"");if(!i[e])throw new ue(1001,"")}function BB(t,n,e){t._forEachChild((i,r)=>{if(e[r]===void 0)throw new ue(1002,"")})}var hc=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 Ti(this.statusReactive)}set status(n){Ti(()=>this.statusReactive.set(n))}_status=Zt(()=>this.statusReactive());statusReactive=he(void 0);get valid(){return this.status===lg}get invalid(){return this.status===ix}get pending(){return this.status==vh}get disabled(){return this.status===cg}get enabled(){return this.status!==cg}errors;get pristine(){return Ti(this.pristineReactive)}set pristine(n){Ti(()=>this.pristineReactive.set(n))}_pristine=Zt(()=>this.pristineReactive());pristineReactive=he(!0);get dirty(){return!this.pristine}get touched(){return Ti(this.touchedReactive)}set touched(n){Ti(()=>this.touchedReactive.set(n))}_touched=Zt(()=>this.touchedReactive());touchedReactive=he(!1);get untouched(){return!this.touched}_events=new z;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(yB(n,this._rawValidators))}addAsyncValidators(n){this.setAsyncValidators(yB(n,this._rawAsyncValidators))}removeValidators(n){this.setValidators(xB(n,this._rawValidators))}removeAsyncValidators(n){this.setAsyncValidators(xB(n,this._rawAsyncValidators))}hasValidator(n){return rx(this._rawValidators,n)}hasAsyncValidator(n){return rx(this._rawAsyncValidators,n)}clearValidators(){this.validator=null}clearAsyncValidators(){this.asyncValidator=null}markAsTouched(n={}){let e=this.touched===!1;this.touched=!0;let i=n.sourceControl??this;this._parent&&!n.onlySelf&&this._parent.markAsTouched(De(M({},n),{sourceControl:i})),e&&n.emitEvent!==!1&&this._events.next(new mg(!0,i))}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 i=n.sourceControl??this;this._forEachChild(r=>{r.markAsUntouched({onlySelf:!0,emitEvent:n.emitEvent,sourceControl:i})}),this._parent&&!n.onlySelf&&this._parent._updateTouched(n,i),e&&n.emitEvent!==!1&&this._events.next(new mg(!1,i))}markAsDirty(n={}){let e=this.pristine===!0;this.pristine=!1;let i=n.sourceControl??this;this._parent&&!n.onlySelf&&this._parent.markAsDirty(De(M({},n),{sourceControl:i})),e&&n.emitEvent!==!1&&this._events.next(new ug(!1,i))}markAsPristine(n={}){let e=this.pristine===!1;this.pristine=!0,this._pendingDirty=!1;let i=n.sourceControl??this;this._forEachChild(r=>{r.markAsPristine({onlySelf:!0,emitEvent:n.emitEvent})}),this._parent&&!n.onlySelf&&this._parent._updatePristine(n,i),e&&n.emitEvent!==!1&&this._events.next(new ug(!0,i))}markAsPending(n={}){this.status=vh;let e=n.sourceControl??this;n.emitEvent!==!1&&(this._events.next(new yh(this.status,e)),this.statusChanges.emit(this.status)),this._parent&&!n.onlySelf&&this._parent.markAsPending(De(M({},n),{sourceControl:e}))}disable(n={}){let e=this._parentMarkedDirty(n.onlySelf);this.status=cg,this.errors=null,this._forEachChild(r=>{r.disable(De(M({},n),{onlySelf:!0}))}),this._updateValue();let i=n.sourceControl??this;n.emitEvent!==!1&&(this._events.next(new sx(this.value,i)),this._events.next(new yh(this.status,i)),this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._updateAncestors(De(M({},n),{skipPristineCheck:e}),this),this._onDisabledChange.forEach(r=>r(!0))}enable(n={}){let e=this._parentMarkedDirty(n.onlySelf);this.status=lg,this._forEachChild(i=>{i.enable(De(M({},n),{onlySelf:!0}))}),this.updateValueAndValidity({onlySelf:!0,emitEvent:n.emitEvent}),this._updateAncestors(De(M({},n),{skipPristineCheck:e}),this),this._onDisabledChange.forEach(i=>i(!1))}_updateAncestors(n,e){this._parent&&!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 i=this._cancelExistingSubscription();this.errors=this._runValidator(),this.status=this._calculateStatus(),(this.status===lg||this.status===vh)&&this._runAsyncValidator(i,n.emitEvent)}let e=n.sourceControl??this;n.emitEvent!==!1&&(this._events.next(new sx(this.value,e)),this._events.next(new yh(this.status,e)),this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._parent&&!n.onlySelf&&this._parent.updateValueAndValidity(De(M({},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()?cg:lg}_runValidator(){return this.validator?this.validator(this):null}_runAsyncValidator(n,e){if(this.asyncValidator){this.status=vh,this._hasOwnPendingAsyncValidator={emitEvent:e!==!1,shouldHaveEmitted:n!==!1};let i=IB(this.asyncValidator(this));this._asyncValidationSubscription=i.subscribe(r=>{this._hasOwnPendingAsyncValidator=null,this.setErrors(r,{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((i,r)=>i&&i._find(r),this)}getError(n,e){let i=e?this.get(e):this;return i&&i.errors?i.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,i){this.status=this._calculateStatus(),n&&this.statusChanges.emit(this.status),(n||i)&&this._events.next(new yh(this.status,e)),this._parent&&this._parent._updateControlsErrors(n,e,i)}_initObservables(){this.valueChanges=new U,this.statusChanges=new U}_calculateStatus(){return this._allControlsDisabled()?cg:this.errors?ix:this._hasOwnPendingAsyncValidator||this._anyControlsHaveStatus(vh)?vh:this._anyControlsHaveStatus(ix)?ix:lg}_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 i=!this._anyControlsDirty(),r=this.pristine!==i;this.pristine=i,this._parent&&!n.onlySelf&&this._parent._updatePristine(n,e),r&&this._events.next(new ug(this.pristine,e))}_updateTouched(n={},e){this.touched=this._anyControlsTouched(),this._events.next(new mg(this.touched,e)),this._parent&&!n.onlySelf&&this._parent._updateTouched(n,e)}_onDisabledChange=[];_registerOnCollectionChange(n){this._onCollectionChange=n}_setUpdateStrategy(n){hx(n)&&n.updateOn!=null&&(this._updateOn=n.updateOn)}_parentMarkedDirty(n){let e=this._parent&&this._parent.dirty;return!n&&!!e&&!this._parent._anyControlsDirty()}_find(n){return null}_assignValidators(n){this._rawValidators=Array.isArray(n)?n.slice():n,this._composedValidatorFn=zJ(this._rawValidators)}_assignAsyncValidators(n){this._rawAsyncValidators=Array.isArray(n)?n.slice():n,this._composedAsyncValidatorFn=UJ(this._rawAsyncValidators)}},lu=class extends hc{constructor(n,e,i){super(Jk(e),eS(i,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,i={}){this.registerControl(n,e),this.updateValueAndValidity({emitEvent:i.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,i={}){this.controls[n]&&this.controls[n]._registerOnCollectionChange(()=>{}),delete this.controls[n],e&&this.registerControl(n,e),this.updateValueAndValidity({emitEvent:i.emitEvent}),this._onCollectionChange()}contains(n){return this.controls.hasOwnProperty(n)&&this.controls[n].enabled}setValue(n,e={}){BB(this,!0,n),Object.keys(n).forEach(i=>{VB(this,!0,i),this.controls[i].setValue(n[i],{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e)}patchValue(n,e={}){n!=null&&(Object.keys(n).forEach(i=>{let r=this.controls[i];r&&r.patchValue(n[i],{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e))}reset(n={},e={}){this._forEachChild((i,r)=>{i.reset(n?n[r]:null,{onlySelf:!0,emitEvent:e.emitEvent})}),this._updatePristine(e,this),this._updateTouched(e,this),this.updateValueAndValidity(e),e?.emitEvent!==!1&&this._events.next(new hg(this))}getRawValue(){return this._reduceChildren({},(n,e,i)=>(n[i]=e.getRawValue(),n))}_syncPendingControls(){let n=this._reduceChildren(!1,(e,i)=>i._syncPendingControls()?!0:e);return n&&this.updateValueAndValidity({onlySelf:!0}),n}_forEachChild(n){Object.keys(this.controls).forEach(e=>{let i=this.controls[e];i&&n(i,e)})}_setUpControls(){this._forEachChild(n=>{n.setParent(this),n._registerOnCollectionChange(this._onCollectionChange)})}_updateValue(){this.value=this._reduceValue()}_anyControls(n){for(let[e,i]of Object.entries(this.controls))if(this.contains(e)&&n(i))return!0;return!1}_reduceValue(){let n={};return this._reduceChildren(n,(e,i,r)=>((i.enabled||this.disabled)&&(e[r]=i.value),e))}_reduceChildren(n,e){let i=n;return this._forEachChild((r,o)=>{i=e(i,r,o)}),i}_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 px=lu;var Yk=class extends lu{};var xh=new T("",{providedIn:"root",factory:()=>fx}),fx="always";function jB(t,n){return[...n.path,t]}function pg(t,n,e=fx){tS(t,n),n.valueAccessor.writeValue(t.value),(t.disabled||e==="always")&&n.valueAccessor.setDisabledState?.(t.disabled),WJ(t,n),qJ(t,n),GJ(t,n),$J(t,n)}function cx(t,n,e=!0){let i=()=>{};n.valueAccessor&&(n.valueAccessor.registerOnChange(i),n.valueAccessor.registerOnTouched(i)),ux(t,n),t&&(n._invokeOnDestroyCallbacks(),t._registerOnCollectionChange(()=>{}))}function dx(t,n){t.forEach(e=>{e.registerOnValidatorChange&&e.registerOnValidatorChange(n)})}function $J(t,n){if(n.valueAccessor.setDisabledState){let e=i=>{n.valueAccessor.setDisabledState(i)};t.registerOnDisabledChange(e),n._registerOnDestroy(()=>{t._unregisterOnDisabledChange(e)})}}function tS(t,n){let e=NB(t);n.validator!==null?t.setValidators(vB(e,n.validator)):typeof e=="function"&&t.setValidators([e]);let i=LB(t);n.asyncValidator!==null?t.setAsyncValidators(vB(i,n.asyncValidator)):typeof i=="function"&&t.setAsyncValidators([i]);let r=()=>t.updateValueAndValidity();dx(n._rawValidators,r),dx(n._rawAsyncValidators,r)}function ux(t,n){let e=!1;if(t!==null){if(n.validator!==null){let r=NB(t);if(Array.isArray(r)&&r.length>0){let o=r.filter(a=>a!==n.validator);o.length!==r.length&&(e=!0,t.setValidators(o))}}if(n.asyncValidator!==null){let r=LB(t);if(Array.isArray(r)&&r.length>0){let o=r.filter(a=>a!==n.asyncValidator);o.length!==r.length&&(e=!0,t.setAsyncValidators(o))}}}let i=()=>{};return dx(n._rawValidators,i),dx(n._rawAsyncValidators,i),e}function WJ(t,n){n.valueAccessor.registerOnChange(e=>{t._pendingValue=e,t._pendingChange=!0,t._pendingDirty=!0,t.updateOn==="change"&&HB(t,n)})}function GJ(t,n){n.valueAccessor.registerOnTouched(()=>{t._pendingTouched=!0,t.updateOn==="blur"&&t._pendingChange&&HB(t,n),t.updateOn!=="submit"&&t.markAsTouched()})}function HB(t,n){t._pendingDirty&&t.markAsDirty(),t.setValue(t._pendingValue,{emitModelToViewChange:!1}),n.viewToModelUpdate(t._pendingValue),t._pendingChange=!1}function qJ(t,n){let e=(i,r)=>{n.valueAccessor.writeValue(i),r&&n.viewToModelUpdate(i)};t.registerOnChange(e),n._registerOnDestroy(()=>{t._unregisterOnChange(e)})}function zB(t,n){t==null,tS(t,n)}function YJ(t,n){return ux(t,n)}function iS(t,n){if(!t.hasOwnProperty("model"))return!1;let e=t.model;return e.isFirstChange()?!0:!Object.is(n,e.currentValue)}function QJ(t){return Object.getPrototypeOf(t.constructor)===kB}function UB(t,n){t._syncPendingControls(),n.forEach(e=>{let i=e.control;i.updateOn==="submit"&&i._pendingChange&&(e.viewToModelUpdate(i._pendingValue),i._pendingChange=!1)})}function nS(t,n){if(!n)return null;Array.isArray(n);let e,i,r;return n.forEach(o=>{o.constructor===Qi?e=o:QJ(o)?i=o:r=o}),r||i||e||null}function KJ(t,n){let e=t.indexOf(n);e>-1&&t.splice(e,1)}var ZJ={provide:Es,useExisting:Kt(()=>pc)},dg=Promise.resolve(),pc=(()=>{class t extends Es{callSetDisabledState;get submitted(){return Ti(this.submittedReactive)}_submitted=Zt(()=>this.submittedReactive());submittedReactive=he(!1);_directives=new Set;form;ngSubmit=new U;options;constructor(e,i,r){super(),this.callSetDisabledState=r,this.form=new lu({},Zk(e),Xk(i))}ngAfterViewInit(){this._setUpdateStrategy()}get formDirective(){return this}get control(){return this.form}get path(){return[]}get controls(){return this.form.controls}addControl(e){dg.then(()=>{let i=this._findContainer(e.path);e.control=i.registerControl(e.name,e.control),pg(e.control,e,this.callSetDisabledState),e.control.updateValueAndValidity({emitEvent:!1}),this._directives.add(e)})}getControl(e){return this.form.get(e.path)}removeControl(e){dg.then(()=>{let i=this._findContainer(e.path);i&&i.removeControl(e.name),this._directives.delete(e)})}addFormGroup(e){dg.then(()=>{let i=this._findContainer(e.path),r=new lu({});zB(r,e),i.registerControl(e.name,r),r.updateValueAndValidity({emitEvent:!1})})}removeFormGroup(e){dg.then(()=>{let i=this._findContainer(e.path);i&&i.removeControl(e.name)})}getFormGroup(e){return this.form.get(e.path)}updateModel(e,i){dg.then(()=>{this.form.get(e.path).setValue(i)})}setValue(e){this.control.setValue(e)}onSubmit(e){return this.submittedReactive.set(!0),UB(this.form,this._directives),this.ngSubmit.emit(e),this.form._events.next(new lx(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(i){return new(i||t)(_e(ea,10),_e(fg,10),_e(xh,8))};static \u0275dir=F({type:t,selectors:[["form",3,"ngNoForm","",3,"formGroup",""],["ng-form"],["","ngForm",""]],hostBindings:function(i,r){i&1&&S("submit",function(a){return r.onSubmit(a)})("reset",function(){return r.onReset()})},inputs:{options:[0,"ngFormOptions","options"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],standalone:!1,features:[Ce([ZJ]),le]})}return t})();function CB(t,n){let e=t.indexOf(n);e>-1&&t.splice(e,1)}function wB(t){return typeof t=="object"&&t!==null&&Object.keys(t).length===2&&"value"in t&&"disabled"in t}var Jo=class extends hc{defaultValue=null;_onChange=[];_pendingValue;_pendingChange=!1;constructor(n=null,e,i){super(Jk(e),eS(i,e)),this._applyFormState(n),this._setUpdateStrategy(e),this._initObservables(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator}),hx(e)&&(e.nonNullable||e.initialValueIsDefault)&&(wB(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(i=>i(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),this._pendingChange=!1,e?.emitEvent!==!1&&this._events.next(new hg(this))}_updateValue(){}_anyControls(n){return!1}_allControlsDisabled(){return this.disabled}registerOnChange(n){this._onChange.push(n)}_unregisterOnChange(n){CB(this._onChange,n)}registerOnDisabledChange(n){this._onDisabledChange.push(n)}_unregisterOnDisabledChange(n){CB(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){wB(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}},$B=Jo,XJ=t=>t instanceof Jo;var JJ={provide:Hn,useExisting:Kt(()=>gg)},DB=Promise.resolve(),gg=(()=>{class t extends Hn{_changeDetectorRef;callSetDisabledState;control=new Jo;static ngAcceptInputType_isDisabled;_registered=!1;viewModel;name="";isDisabled;model;options;update=new U;constructor(e,i,r,o,a,s){super(),this._changeDetectorRef=a,this.callSetDisabledState=s,this._parent=e,this._setValidators(i),this._setAsyncValidators(r),this.valueAccessor=nS(this,o)}ngOnChanges(e){if(this._checkForErrors(),!this._registered||"name"in e){if(this._registered&&(this._checkName(),this.formDirective)){let i=e.name.previousValue;this.formDirective.removeControl({name:i,path:this._getPath(i)})}this._setUpControl()}"isDisabled"in e&&this._updateDisabled(e),iS(e,this.viewModel)&&(this._updateValue(this.model),this.viewModel=this.model)}ngOnDestroy(){this.formDirective&&this.formDirective.removeControl(this)}get path(){return this._getPath(this.name)}get formDirective(){return this._parent?this._parent.formDirective:null}viewToModelUpdate(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(){pg(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){DB.then(()=>{this.control.setValue(e,{emitViewToModelChange:!1}),this._changeDetectorRef?.markForCheck()})}_updateDisabled(e){let i=e.isDisabled.currentValue,r=i!==0&&V(i);DB.then(()=>{r&&!this.control.disabled?this.control.disable():!r&&this.control.disabled&&this.control.enable(),this._changeDetectorRef?.markForCheck()})}_getPath(e){return this._parent?jB(e,this._parent):[e]}static \u0275fac=function(i){return new(i||t)(_e(Es,9),_e(ea,10),_e(fg,10),_e(tr,10),_e(ye,8),_e(xh,8))};static \u0275dir=F({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:[Ce([JJ]),le,Ae]})}return t})();var Jr=(()=>{class t{static \u0275fac=function(i){return new(i||t)};static \u0275dir=F({type:t,selectors:[["form",3,"ngNoForm","",3,"ngNativeValidate",""]],hostAttrs:["novalidate",""],standalone:!1})}return t})(),eee={provide:tr,useExisting:Kt(()=>cu),multi:!0},cu=(()=>{class t extends kB{writeValue(e){let i=e??"";this.setProperty("value",i)}registerOnChange(e){this.onChange=i=>{e(i==""?null:parseFloat(i))}}static \u0275fac=(()=>{let e;return function(r){return(e||(e=fe(t)))(r||t)}})();static \u0275dir=F({type:t,selectors:[["input","type","number","formControlName",""],["input","type","number","formControl",""],["input","type","number","ngModel",""]],hostBindings:function(i,r){i&1&&S("input",function(a){return r.onChange(a.target.value)})("blur",function(){return r.onTouched()})},standalone:!1,features:[Ce([eee]),le]})}return t})();var rS=new T(""),tee={provide:Hn,useExisting:Kt(()=>wo)},wo=(()=>{class t extends Hn{_ngModelWarningConfig;callSetDisabledState;viewModel;form;set isDisabled(e){}model;update=new U;static _ngModelWarningSentOnce=!1;_ngModelWarningSent=!1;constructor(e,i,r,o,a){super(),this._ngModelWarningConfig=o,this.callSetDisabledState=a,this._setValidators(e),this._setAsyncValidators(i),this.valueAccessor=nS(this,r)}ngOnChanges(e){if(this._isControlChanged(e)){let i=e.form.previousValue;i&&cx(i,this,!1),pg(this.form,this,this.callSetDisabledState),this.form.updateValueAndValidity({emitEvent:!1})}iS(e,this.viewModel)&&(this.form.setValue(this.model),this.viewModel=this.model)}ngOnDestroy(){this.form&&cx(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(i){return new(i||t)(_e(ea,10),_e(fg,10),_e(tr,10),_e(rS,8),_e(xh,8))};static \u0275dir=F({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:[Ce([tee]),le,Ae]})}return t})(),iee={provide:Es,useExisting:Kt(()=>Ki)},Ki=(()=>{class t extends Es{callSetDisabledState;get submitted(){return Ti(this._submittedReactive)}set submitted(e){this._submittedReactive.set(e)}_submitted=Zt(()=>this._submittedReactive());_submittedReactive=he(!1);_oldForm;_onCollectionChange=()=>this._updateDomValue();directives=[];form=null;ngSubmit=new U;constructor(e,i,r){super(),this.callSetDisabledState=r,this._setValidators(e),this._setAsyncValidators(i)}ngOnChanges(e){e.hasOwnProperty("form")&&(this._updateValidators(),this._updateDomValue(),this._updateRegistrations(),this._oldForm=this.form)}ngOnDestroy(){this.form&&(ux(this.form,this),this.form._onCollectionChange===this._onCollectionChange&&this.form._registerOnCollectionChange(()=>{}))}get formDirective(){return this}get control(){return this.form}get path(){return[]}addControl(e){let i=this.form.get(e.path);return pg(i,e,this.callSetDisabledState),i.updateValueAndValidity({emitEvent:!1}),this.directives.push(e),i}getControl(e){return this.form.get(e.path)}removeControl(e){cx(e.control||null,e,!1),KJ(this.directives,e)}addFormGroup(e){this._setUpFormContainer(e)}removeFormGroup(e){this._cleanUpFormContainer(e)}getFormGroup(e){return this.form.get(e.path)}addFormArray(e){this._setUpFormContainer(e)}removeFormArray(e){this._cleanUpFormContainer(e)}getFormArray(e){return this.form.get(e.path)}updateModel(e,i){this.form.get(e.path).setValue(i)}onSubmit(e){return this._submittedReactive.set(!0),UB(this.form,this.directives),this.ngSubmit.emit(e),this.form._events.next(new lx(this.control)),e?.target?.method==="dialog"}onReset(){this.resetForm()}resetForm(e=void 0,i={}){this.form.reset(e,i),this._submittedReactive.set(!1)}_updateDomValue(){this.directives.forEach(e=>{let i=e.control,r=this.form.get(e.path);i!==r&&(cx(i||null,e),XJ(r)&&(pg(r,e,this.callSetDisabledState),e.control=r))}),this.form._updateTreeValidity({emitEvent:!1})}_setUpFormContainer(e){let i=this.form.get(e.path);zB(i,e),i.updateValueAndValidity({emitEvent:!1})}_cleanUpFormContainer(e){if(this.form){let i=this.form.get(e.path);i&&YJ(i,e)&&i.updateValueAndValidity({emitEvent:!1})}}_updateRegistrations(){this.form._registerOnCollectionChange(this._onCollectionChange),this._oldForm&&this._oldForm._registerOnCollectionChange(()=>{})}_updateValidators(){tS(this.form,this),this._oldForm&&ux(this._oldForm,this)}static \u0275fac=function(i){return new(i||t)(_e(ea,10),_e(fg,10),_e(xh,8))};static \u0275dir=F({type:t,selectors:[["","formGroup",""]],hostBindings:function(i,r){i&1&&S("submit",function(a){return r.onSubmit(a)})("reset",function(){return r.onReset()})},inputs:{form:[0,"formGroup","form"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],standalone:!1,features:[Ce([iee]),le,Ae]})}return t})();var nee={provide:Hn,useExisting:Kt(()=>Lr)},Lr=(()=>{class t extends Hn{_ngModelWarningConfig;_added=!1;viewModel;control;name=null;set isDisabled(e){}model;update=new U;static _ngModelWarningSentOnce=!1;_ngModelWarningSent=!1;constructor(e,i,r,o,a){super(),this._ngModelWarningConfig=a,this._parent=e,this._setValidators(i),this._setAsyncValidators(r),this.valueAccessor=nS(this,o)}ngOnChanges(e){this._added||this._setUpControl(),iS(e,this.viewModel)&&(this.viewModel=this.model,this.formDirective.updateModel(this,this.model))}ngOnDestroy(){this.formDirective&&this.formDirective.removeControl(this)}viewToModelUpdate(e){this.viewModel=e,this.update.emit(e)}get path(){return jB(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(i){return new(i||t)(_e(Es,13),_e(ea,10),_e(fg,10),_e(tr,10),_e(rS,8))};static \u0275dir=F({type:t,selectors:[["","formControlName",""]],inputs:{name:[0,"formControlName","name"],isDisabled:[0,"disabled","isDisabled"],model:[0,"ngModel","model"]},outputs:{update:"ngModelChange"},standalone:!1,features:[Ce([nee]),le,Ae]})}return t})();var ree=(()=>{class t{_validator=nx;_onChange;_enabled;ngOnChanges(e){if(this.inputName in e){let i=this.normalizeInput(e[this.inputName].currentValue);this._enabled=this.enabled(i),this._validator=this._enabled?this.createValidator(i):nx,this._onChange&&this._onChange()}}validate(e){return this._validator(e)}registerOnValidatorChange(e){this._onChange=e}enabled(e){return e!=null}static \u0275fac=function(i){return new(i||t)};static \u0275dir=F({type:t,features:[Ae]})}return t})();var oee={provide:ea,useExisting:Kt(()=>Do),multi:!0};var Do=(()=>{class t extends ree{required;inputName="required";normalizeInput=V;createValidator=e=>SB;enabled(e){return e}static \u0275fac=(()=>{let e;return function(r){return(e||(e=fe(t)))(r||t)}})();static \u0275dir=F({type:t,selectors:[["","required","","formControlName","",3,"type","checkbox"],["","required","","formControl","",3,"type","checkbox"],["","required","","ngModel","",3,"type","checkbox"]],hostVars:1,hostBindings:function(i,r){i&2&&X("required",r._enabled?"":null)},inputs:{required:"required"},standalone:!1,features:[Ce([oee]),le]})}return t})();var WB=(()=>{class t{static \u0275fac=function(i){return new(i||t)};static \u0275mod=ee({type:t});static \u0275inj=J({})}return t})(),mx=class extends hc{constructor(n,e,i){super(Jk(e),eS(i,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(i=>{this.controls.push(i),this._registerControl(i)}):(this.controls.push(n),this._registerControl(n)),this.updateValueAndValidity({emitEvent:e.emitEvent}),this._onCollectionChange()}insert(n,e,i={}){this.controls.splice(n,0,e),this._registerControl(e),this.updateValueAndValidity({emitEvent:i.emitEvent})}removeAt(n,e={}){let i=this._adjustIndex(n);i<0&&(i=0),this.controls[i]&&this.controls[i]._registerOnCollectionChange(()=>{}),this.controls.splice(i,1),this.updateValueAndValidity({emitEvent:e.emitEvent})}setControl(n,e,i={}){let r=this._adjustIndex(n);r<0&&(r=0),this.controls[r]&&this.controls[r]._registerOnCollectionChange(()=>{}),this.controls.splice(r,1),e&&(this.controls.splice(r,0,e),this._registerControl(e)),this.updateValueAndValidity({emitEvent:i.emitEvent}),this._onCollectionChange()}get length(){return this.controls.length}setValue(n,e={}){BB(this,!1,n),n.forEach((i,r)=>{VB(this,!1,r),this.at(r).setValue(i,{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e)}patchValue(n,e={}){n!=null&&(n.forEach((i,r)=>{this.at(r)&&this.at(r).patchValue(i,{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e))}reset(n=[],e={}){this._forEachChild((i,r)=>{i.reset(n[r],{onlySelf:!0,emitEvent:e.emitEvent})}),this._updatePristine(e,this),this._updateTouched(e,this),this.updateValueAndValidity(e),e?.emitEvent!==!1&&this._events.next(new hg(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,i)=>i._syncPendingControls()?!0:e,!1);return n&&this.updateValueAndValidity({onlySelf:!0}),n}_forEachChild(n){this.controls.forEach((e,i)=>{n(e,i)})}_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}},oS=mx;function EB(t){return!!t&&(t.asyncValidators!==void 0||t.validators!==void 0||t.updateOn!==void 0)}var eo=(()=>{class t{useNonNullable=!1;get nonNullable(){let e=new t;return e.useNonNullable=!0,e}group(e,i=null){let r=this._reduceControls(e),o={};return EB(i)?o=i:i!==null&&(o.validators=i.validator,o.asyncValidators=i.asyncValidator),new lu(r,o)}record(e,i=null){let r=this._reduceControls(e);return new Yk(r,i)}control(e,i,r){let o={};return this.useNonNullable?(EB(i)?o=i:(o.validators=i,o.asyncValidators=r),new Jo(e,De(M({},o),{nonNullable:!0}))):new Jo(e,i,r)}array(e,i,r){let o=e.map(a=>this._createControl(a));return new mx(o,i,r)}_reduceControls(e){let i={};return Object.keys(e).forEach(r=>{i[r]=this._createControl(e[r])}),i}_createControl(e){if(e instanceof Jo)return e;if(e instanceof hc)return e;if(Array.isArray(e)){let i=e[0],r=e.length>1?e[1]:null,o=e.length>2?e[2]:null;return this.control(i,r,o)}else return this.control(e)}static \u0275fac=function(i){return new(i||t)};static \u0275prov=O({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();var du=(()=>{class t{static withConfig(e){return{ngModule:t,providers:[{provide:xh,useValue:e.callSetDisabledState??fx}]}}static \u0275fac=function(i){return new(i||t)};static \u0275mod=ee({type:t});static \u0275inj=J({imports:[WB]})}return t})(),zn=(()=>{class t{static withConfig(e){return{ngModule:t,providers:[{provide:rS,useValue:e.warnOnNgModelWithFormControl??"always"},{provide:xh,useValue:e.callSetDisabledState??fx}]}}static \u0275fac=function(i){return new(i||t)};static \u0275mod=ee({type:t});static \u0275inj=J({imports:[WB]})}return t})();var $i=(()=>{class t{static \u0275fac=function(i){return new(i||t)};static \u0275mod=ee({type:t});static \u0275inj=J({imports:[we,Ym,Oi,we]})}return t})();var aee=["trigger"],see=["panel"],lee=[[["mat-select-trigger"]],"*"],cee=["mat-select-trigger","*"];function dee(t,n){if(t&1&&(h(0,"span",4),_(1),p()),t&2){let e=C();g(),H(e.placeholder)}}function uee(t,n){t&1&&oe(0)}function mee(t,n){if(t&1&&(h(0,"span",11),_(1),p()),t&2){let e=C(2);g(),H(e.triggerValue)}}function hee(t,n){if(t&1&&(h(0,"span",5),N(1,uee,1,0)(2,mee,2,1,"span",11),p()),t&2){let e=C();g(),L(e.customTrigger?1:2)}}function pee(t,n){if(t&1){let e=Y();h(0,"div",12,1),S("keydown",function(r){I(e);let o=C();return A(o._handleKeydown(r))}),oe(2,1),p()}if(t&2){let e=C();it($o("mat-mdc-select-panel mdc-menu-surface mdc-menu-surface--open ",e._getPanelTheme())),G("mat-select-panel-animations-enabled",!e._animationsDisabled),y("ngClass",e.panelClass),X("id",e.id+"-panel")("aria-multiselectable",e.multiple)("aria-label",e.ariaLabel||null)("aria-labelledby",e._getPanelAriaLabelledby())}}var aS=new T("mat-select-scroll-strategy",{providedIn:"root",factory:()=>{let t=u(de);return()=>wn(t)}});function GB(t){let n=u(de);return()=>wn(n)}var qB=new T("MAT_SELECT_CONFIG"),YB={provide:aS,deps:[],useFactory:GB},QB=new T("MatSelectTrigger"),gx=class{source;value;constructor(n,e){this.source=n,this.value=e}},Na=(()=>{class t{_viewportRuler=u(Xn);_changeDetectorRef=u(ye);_elementRef=u(q);_dir=u(Vt,{optional:!0});_idGenerator=u(Ze);_renderer=u(je);_parentFormField=u(Xo,{optional:!0});ngControl=u(Hn,{self:!0,optional:!0});_liveAnnouncer=u(Gf);_defaultOptions=u(qB,{optional:!0});_animationsDisabled=Ye();_initialized=new z;_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 i=this.options.toArray()[e];if(i){let r=this.panel.nativeElement,o=Qf(e,this.options,this.optionGroups),a=i._getHostElement();e===0&&o===1?r.scrollTop=0:r.scrollTop=Kf(a.offsetTop,a.offsetHeight,r.scrollTop,r.offsetHeight)}}_positioningSettled(){this._scrollOptionIntoView(this._keyManager.activeItemIndex||0)}_getChangeEvent(e){return new gx(this,e)}_scrollStrategyFactory=u(aS);_panelOpen=!1;_compareWith=(e,i)=>e===i;_uid=this._idGenerator.getId("mat-select-");_triggerAriaLabelledBy=null;_previousControl;_destroy=new z;_errorStateTracker;stateChanges=new z;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=he(!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(Le.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=kn(()=>{let e=this.options;return e?e.changes.pipe(He(e),$e(()=>Je(...e.map(i=>i.onSelectionChange)))):this._initialized.pipe($e(()=>this.optionSelectionChanges))});openedChange=new U;_openedStream=this.openedChange.pipe(ce(e=>e),se(()=>{}));_closedStream=this.openedChange.pipe(ce(e=>!e),se(()=>{}));selectionChange=new U;valueChange=new U;constructor(){let e=u(dl),i=u(pc,{optional:!0}),r=u(Ki,{optional:!0}),o=u(new Ii("tabindex"),{optional:!0});this.ngControl&&(this.ngControl.valueAccessor=this),this._defaultOptions?.typeaheadDebounceInterval!=null&&(this.typeaheadDebounceInterval=this._defaultOptions.typeaheadDebounceInterval),this._errorStateTracker=new cl(e,this.ngControl,r,i,this.stateChanges),this._scrollStrategy=this._scrollStrategyFactory(),this.tabIndex=o==null?0:parseInt(o)||0,this.id=this.id}ngOnInit(){this._selectionModel=new sg(this.multiple),this.stateChanges.next(),this._viewportRuler.change().pipe(Te(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(Te(this._destroy)).subscribe(e=>{e.added.forEach(i=>i.select()),e.removed.forEach(i=>i.deselect())}),this.options.changes.pipe(He(null),Te(this._destroy)).subscribe(()=>{this._resetOptions(),this._initializeSelection()})}ngDoCheck(){let e=this._getTriggerAriaLabelledby(),i=this.ngControl;if(e!==this._triggerAriaLabelledBy){let r=this._elementRef.nativeElement;this._triggerAriaLabelledBy=e,e?r.setAttribute("aria-labelledby",e):r.removeAttribute("aria-labelledby")}i&&(this._previousControl!==i.control&&(this._previousControl!==void 0&&i.disabled!==null&&i.disabled!==this.disabled&&(this.disabled=i.disabled),this._previousControl=i.control),this.updateErrorState())}ngOnChanges(e){(e.disabled||e.userAriaDescribedBy)&&this.stateChanges.next(),e.typeaheadDebounceInterval&&this._keyManager&&this._keyManager.withTypeAhead(this.typeaheadDebounceInterval)}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(lt(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 i=`${this.id}-panel`;this._trackedModal&&sc(this._trackedModal,"aria-owns",i),Zm(e,"aria-owns",i),this._trackedModal=e}_clearFromModal(){if(!this._trackedModal)return;let e=`${this.id}-panel`;sc(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=()=>{i(),clearTimeout(r),this._cleanupDetach=void 0};let e=this.panel.nativeElement,i=this._renderer.listen(e,"animationend",o=>{o.animationName==="_mat-select-exit"&&(this._cleanupDetach?.(),this._detachOverlay())}),r=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(i=>i.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 i=e.keyCode,r=i===40||i===38||i===37||i===39,o=i===13||i===32,a=this._keyManager;if(!a.isTyping()&&o&&!Ft(e)||(this.multiple||e.altKey)&&r)e.preventDefault(),this.open();else if(!this.multiple){let s=this.selected;a.onKeydown(e);let l=this.selected;l&&s!==l&&this._liveAnnouncer.announce(l.viewValue,1e4)}}_handleOpenKeydown(e){let i=this._keyManager,r=e.keyCode,o=r===40||r===38,a=i.isTyping();if(o&&e.altKey)e.preventDefault(),this.close();else if(!a&&(r===13||r===32)&&i.activeItem&&!Ft(e))e.preventDefault(),i.activeItem._selectViaInteraction();else if(!a&&this._multiple&&r===65&&e.ctrlKey){e.preventDefault();let s=this.options.some(l=>!l.disabled&&!l.selected);this.options.forEach(l=>{l.disabled||(s?l.select():l.deselect())})}else{let s=i.activeItemIndex;i.onKeydown(e),this._multiple&&o&&e.shiftKey&&i.activeItem&&i.activeItemIndex!==s&&i.activeItem._selectViaInteraction()}}_handleOverlayKeydown(e){e.keyCode===27&&!Ft(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())}_getPanelTheme(){return this._parentFormField?`mat-${this._parentFormField.color}`:""}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(i=>i.setInactiveStyles()),this._selectionModel.clear(),this.multiple&&e)Array.isArray(e),e.forEach(i=>this._selectOptionByValue(i)),this._sortValues();else{let i=this._selectOptionByValue(e);i?this._keyManager.updateActiveItem(i):this.panelOpen||this._keyManager.updateActiveItem(-1)}this._changeDetectorRef.markForCheck()}_selectOptionByValue(e){let i=this.options.find(r=>{if(this._selectionModel.isSelected(r))return!1;try{return(r.value!=null||this.canSelectNullableOptions)&&this._compareWith(r.value,e)}catch{return!1}});return i&&this._selectionModel.select(i),i}_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 bh?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 qd(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=Je(this.options.changes,this._destroy);this.optionSelectionChanges.pipe(Te(e)).subscribe(i=>{this._onSelect(i.source,i.isUserInput),i.isUserInput&&!this.multiple&&this._panelOpen&&(this.close(),this.focus())}),Je(...this.options.map(i=>i._stateChanges)).pipe(Te(e)).subscribe(()=>{this._changeDetectorRef.detectChanges(),this.stateChanges.next()})}_onSelect(e,i){let r=this._selectionModel.isSelected(e);!this.canSelectNullableOptions&&e.value==null&&!this._multiple?(e.deselect(),this._selectionModel.clear(),this.value!=null&&this._propagateChanges(e.value)):(r!==e.selected&&(e.selected?this._selectionModel.select(e):this._selectionModel.deselect(e)),i&&this._keyManager.setActiveItem(e),this.multiple&&(this._sortValues(),i&&this.focus())),r!==this._selectionModel.isSelected(e)&&this._propagateChanges(),this.stateChanges.next()}_sortValues(){if(this.multiple){let e=this.options.toArray();this._selectionModel.sort((i,r)=>this.sortComparator?this.sortComparator(i,r,e):e.indexOf(i)-e.indexOf(r)),this.stateChanges.next()}}_propagateChanges(e){let i;this.multiple?i=this.selected.map(r=>r.value):i=this.selected?this.selected.value:e,this._value=i,this.valueChange.emit(i),this._onChange(i),this.selectionChange.emit(this._getChangeEvent(i)),this._changeDetectorRef.markForCheck()}_highlightCorrectOption(){if(this._keyManager)if(this.empty){let e=-1;for(let i=0;i0&&!!this._overlayDir}focus(e){this._elementRef.nativeElement.focus(e)}_getPanelAriaLabelledby(){if(this.ariaLabel)return null;let e=this._parentFormField?.getLabelId()||null,i=e?e+" ":"";return this.ariaLabelledby?i+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){e.length?this._elementRef.nativeElement.setAttribute("aria-describedby",e.join(" ")):this._elementRef.nativeElement.removeAttribute("aria-describedby")}onContainerClick(){this.focus(),this.open()}get shouldLabelFloat(){return this.panelOpen||!this.empty||this.focused&&!!this.placeholder}static \u0275fac=function(i){return new(i||t)};static \u0275cmp=E({type:t,selectors:[["mat-select"]],contentQueries:function(i,r,o){if(i&1&&(xe(o,QB,5),xe(o,xn,5),xe(o,Zd,5)),i&2){let a;B(a=j())&&(r.customTrigger=a.first),B(a=j())&&(r.options=a),B(a=j())&&(r.optionGroups=a)}},viewQuery:function(i,r){if(i&1&&(ie(aee,5),ie(see,5),ie(tx,5)),i&2){let o;B(o=j())&&(r.trigger=o.first),B(o=j())&&(r.panel=o.first),B(o=j())&&(r._overlayDir=o.first)}},hostAttrs:["role","combobox","aria-haspopup","listbox",1,"mat-mdc-select"],hostVars:21,hostBindings:function(i,r){i&1&&S("keydown",function(a){return r._handleKeydown(a)})("focus",function(){return r._onFocus()})("blur",function(){return r._onBlur()}),i&2&&(X("id",r.id)("tabindex",r.disabled?-1:r.tabIndex)("aria-controls",r.panelOpen?r.id+"-panel":null)("aria-expanded",r.panelOpen)("aria-label",r.ariaLabel||null)("aria-required",r.required.toString())("aria-disabled",r.disabled.toString())("aria-invalid",r.errorState)("aria-activedescendant",r._getAriaActiveDescendant()),G("mat-mdc-select-disabled",r.disabled)("mat-mdc-select-invalid",r.errorState)("mat-mdc-select-required",r.required)("mat-mdc-select-empty",r.empty)("mat-mdc-select-multiple",r.multiple)("mat-select-open",r.panelOpen))},inputs:{userAriaDescribedBy:[0,"aria-describedby","userAriaDescribedBy"],panelClass:"panelClass",disabled:[2,"disabled","disabled",V],disableRipple:[2,"disableRipple","disableRipple",V],tabIndex:[2,"tabIndex","tabIndex",e=>e==null?0:ct(e)],hideSingleSelectionIndicator:[2,"hideSingleSelectionIndicator","hideSingleSelectionIndicator",V],placeholder:"placeholder",required:[2,"required","required",V],multiple:[2,"multiple","multiple",V],disableOptionCentering:[2,"disableOptionCentering","disableOptionCentering",V],compareWith:"compareWith",value:"value",ariaLabel:[0,"aria-label","ariaLabel"],ariaLabelledby:[0,"aria-labelledby","ariaLabelledby"],errorStateMatcher:"errorStateMatcher",typeaheadDebounceInterval:[2,"typeaheadDebounceInterval","typeaheadDebounceInterval",ct],sortComparator:"sortComparator",id:"id",panelWidth:"panelWidth",canSelectNullableOptions:[2,"canSelectNullableOptions","canSelectNullableOptions",V]},outputs:{openedChange:"openedChange",_openedStream:"opened",_closedStream:"closed",selectionChange:"selectionChange",valueChange:"valueChange"},exportAs:["matSelect"],features:[Ce([{provide:Ra,useExisting:t},{provide:Kd,useExisting:t}]),Ae],ngContentSelectors:cee,decls:11,vars:9,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","","cdkConnectedOverlayLockPosition","","cdkConnectedOverlayHasBackdrop","","cdkConnectedOverlayBackdropClass","cdk-overlay-transparent-backdrop",3,"detach","backdropClick","overlayKeydown","cdkConnectedOverlayDisableClose","cdkConnectedOverlayPanelClass","cdkConnectedOverlayScrollStrategy","cdkConnectedOverlayOrigin","cdkConnectedOverlayPositions","cdkConnectedOverlayWidth","cdkConnectedOverlayFlexibleDimensions"],[1,"mat-mdc-select-min-line"],["role","listbox","tabindex","-1",3,"keydown","ngClass"]],template:function(i,r){if(i&1){let o=Y();Me(lee),h(0,"div",2,0),S("click",function(){return I(o),A(r.open())}),h(3,"div",3),N(4,dee,2,1,"span",4)(5,hee,3,1,"span",5),p(),h(6,"div",6)(7,"div",7),Gt(),h(8,"svg",8),k(9,"path",9),p()()()(),R(10,pee,3,10,"ng-template",10),S("detach",function(){return I(o),A(r.close())})("backdropClick",function(){return I(o),A(r.close())})("overlayKeydown",function(s){return I(o),A(r._handleOverlayKeydown(s))})}if(i&2){let o=Se(1);g(3),X("id",r._valueId),g(),L(r.empty?4:5),g(6),y("cdkConnectedOverlayDisableClose",!0)("cdkConnectedOverlayPanelClass",r._overlayPanelClass)("cdkConnectedOverlayScrollStrategy",r._scrollStrategy)("cdkConnectedOverlayOrigin",r._preferredOverlayOrigin||o)("cdkConnectedOverlayPositions",r._positions)("cdkConnectedOverlayWidth",r._overlayWidth)("cdkConnectedOverlayFlexibleDimensions",!0)}},dependencies:[bh,tx,Pd],styles:[`@keyframes _mat-select-enter{from{opacity:0;transform:scaleY(0.8)}to{opacity:1;transform:none}}@keyframes _mat-select-exit{from{opacity:1}to{opacity:0}}.mat-mdc-select{display:inline-block;width:100%;outline:none;-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;color:var(--mat-select-enabled-trigger-text-color, var(--mat-sys-on-surface));font-family:var(--mat-select-trigger-text-font, var(--mat-sys-body-large-font));line-height:var(--mat-select-trigger-text-line-height, var(--mat-sys-body-large-line-height));font-size:var(--mat-select-trigger-text-size, var(--mat-sys-body-large-size));font-weight:var(--mat-select-trigger-text-weight, var(--mat-sys-body-large-weight));letter-spacing:var(--mat-select-trigger-text-tracking, var(--mat-sys-body-large-tracking))}div.mat-mdc-select-panel{box-shadow:var(--mat-select-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-mdc-select-disabled{color:var(--mat-select-disabled-trigger-text-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent))}.mat-mdc-select-disabled .mat-mdc-select-placeholder{color:var(--mat-select-disabled-trigger-text-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent))}.mat-mdc-select-trigger{display:inline-flex;align-items:center;cursor:pointer;position:relative;box-sizing:border-box;width:100%}.mat-mdc-select-disabled .mat-mdc-select-trigger{-webkit-user-select:none;user-select:none;cursor:default}.mat-mdc-select-value{width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.mat-mdc-select-value-text{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.mat-mdc-select-arrow-wrapper{height:24px;flex-shrink:0;display:inline-flex;align-items:center}.mat-form-field-appearance-fill .mdc-text-field--no-label .mat-mdc-select-arrow-wrapper{transform:none}.mat-mdc-form-field .mat-mdc-select.mat-mdc-select-invalid .mat-mdc-select-arrow,.mat-form-field-invalid:not(.mat-form-field-disabled) .mat-mdc-form-field-infix::after{color:var(--mat-select-invalid-arrow-color, var(--mat-sys-error))}.mat-mdc-select-arrow{width:10px;height:5px;position:relative;color:var(--mat-select-enabled-arrow-color, var(--mat-sys-on-surface-variant))}.mat-mdc-form-field.mat-focused .mat-mdc-select-arrow{color:var(--mat-select-focused-arrow-color, var(--mat-sys-primary))}.mat-mdc-form-field .mat-mdc-select.mat-mdc-select-disabled .mat-mdc-select-arrow{color:var(--mat-select-disabled-arrow-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent))}.mat-select-open .mat-mdc-select-arrow{transform:rotate(180deg)}.mat-form-field-animations-enabled .mat-mdc-select-arrow{transition:transform 80ms linear}.mat-mdc-select-arrow svg{fill:currentColor;position:absolute;top:50%;left:50%;transform:translate(-50%, -50%)}@media(forced-colors: active){.mat-mdc-select-arrow svg{fill:CanvasText}.mat-mdc-select-disabled .mat-mdc-select-arrow svg{fill:GrayText}}div.mat-mdc-select-panel{width:100%;max-height:275px;outline:0;overflow:auto;padding:8px 0;border-radius:4px;box-sizing:border-box;position:relative;background-color:var(--mat-select-panel-background-color, var(--mat-sys-surface-container))}@media(forced-colors: active){div.mat-mdc-select-panel{outline:solid 1px}}.cdk-overlay-pane:not(.mat-mdc-select-panel-above) div.mat-mdc-select-panel{border-top-left-radius:0;border-top-right-radius:0;transform-origin:top center}.mat-mdc-select-panel-above div.mat-mdc-select-panel{border-bottom-left-radius:0;border-bottom-right-radius:0;transform-origin:bottom center}.mat-select-panel-animations-enabled{animation:_mat-select-enter 120ms cubic-bezier(0, 0, 0.2, 1)}.mat-select-panel-animations-enabled.mat-select-panel-exit{animation:_mat-select-exit 100ms linear}.mat-mdc-select-placeholder{transition:color 400ms 133.3333333333ms cubic-bezier(0.25, 0.8, 0.25, 1);color:var(--mat-select-placeholder-text-color, var(--mat-sys-on-surface-variant))}.mat-mdc-form-field:not(.mat-form-field-animations-enabled) .mat-mdc-select-placeholder,._mat-animation-noopable .mat-mdc-select-placeholder{transition:none}.mat-form-field-hide-placeholder .mat-mdc-select-placeholder{color:rgba(0,0,0,0);-webkit-text-fill-color:rgba(0,0,0,0);transition:none;display:block}.mat-mdc-form-field-type-mat-select:not(.mat-form-field-disabled) .mat-mdc-text-field-wrapper{cursor:pointer}.mat-mdc-form-field-type-mat-select.mat-form-field-appearance-fill .mat-mdc-floating-label{max-width:calc(100% - 18px)}.mat-mdc-form-field-type-mat-select.mat-form-field-appearance-fill .mdc-floating-label--float-above{max-width:calc(100%/0.75 - 24px)}.mat-mdc-form-field-type-mat-select.mat-form-field-appearance-outline .mdc-notched-outline__notch{max-width:calc(100% - 60px)}.mat-mdc-form-field-type-mat-select.mat-form-field-appearance-outline .mdc-text-field--label-floating .mdc-notched-outline__notch{max-width:calc(100% - 24px)}.mat-mdc-select-min-line:empty::before{content:" ";white-space:pre;width:1px;display:inline-block;visibility:hidden}.mat-form-field-appearance-fill .mat-mdc-select-arrow-wrapper{transform:var(--mat-select-arrow-transform, translateY(-8px))} -`],encapsulation:2,changeDetection:0})}return t})();var fc=(()=>{class t{static \u0275fac=function(i){return new(i||t)};static \u0275mod=ee({type:t});static \u0275inj=J({providers:[YB],imports:[er,rh,we,vr,$i,rh,we]})}return t})();var fee=["mat-icon-button",""],gee=["*"],_ee=new T("MAT_BUTTON_CONFIG");function KB(t){return t==null?void 0:ct(t)}var sS=(()=>{class t{_elementRef=u(q);_ngZone=u(ae);_animationsDisabled=Ye();_config=u(_ee,{optional:!0});_focusMonitor=u(Yt);_cleanupClick;_renderer=u(je);_rippleLoader=u(Z0);_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(){u(ut).load(Di);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",i){e?this._focusMonitor.focusVia(this._elementRef.nativeElement,e,i):this._elementRef.nativeElement.focus(i)}_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(i){return new(i||t)};static \u0275dir=F({type:t,hostAttrs:[1,"mat-mdc-button-base"],hostVars:13,hostBindings:function(i,r){i&2&&(X("disabled",r._getDisabledAttribute())("aria-disabled",r._getAriaDisabled())("tabindex",r._getTabIndex()),it(r.color?"mat-"+r.color:""),G("mat-mdc-button-disabled",r.disabled)("mat-mdc-button-disabled-interactive",r.disabledInteractive)("mat-unthemed",!r.color)("_mat-animation-noopable",r._animationsDisabled))},inputs:{color:"color",disableRipple:[2,"disableRipple","disableRipple",V],disabled:[2,"disabled","disabled",V],ariaDisabled:[2,"aria-disabled","ariaDisabled",V],disabledInteractive:[2,"disabledInteractive","disabledInteractive",V],tabIndex:[2,"tabIndex","tabIndex",KB],_tabindex:[2,"tabindex","_tabindex",KB]}})}return t})(),ti=(()=>{class t extends sS{constructor(){super(),this._rippleLoader.configureRipple(this._elementRef.nativeElement,{centered:!0})}static \u0275fac=function(i){return new(i||t)};static \u0275cmp=E({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:[le],attrs:fee,ngContentSelectors:gee,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(i,r){i&1&&(Me(),ai(0,"span",0),oe(1),ai(2,"span",1)(3,"span",2))},styles:[`.mat-mdc-icon-button{-webkit-user-select:none;user-select:none;display:inline-block;position:relative;box-sizing:border-box;border:none;outline:none;background-color:rgba(0,0,0,0);fill:currentColor;text-decoration:none;cursor:pointer;z-index:0;overflow:visible;border-radius:var(--mat-icon-button-container-shape, var(--mat-sys-corner-full, 50%));flex-shrink:0;text-align:center;width:var(--mat-icon-button-state-layer-size, 40px);height:var(--mat-icon-button-state-layer-size, 40px);padding:calc(calc(var(--mat-icon-button-state-layer-size, 40px) - var(--mat-icon-button-icon-size, 24px)) / 2);font-size:var(--mat-icon-button-icon-size, 24px);color:var(--mat-icon-button-icon-color, var(--mat-sys-on-surface-variant));-webkit-tap-highlight-color:rgba(0,0,0,0)}.mat-mdc-icon-button .mat-mdc-button-ripple,.mat-mdc-icon-button .mat-mdc-button-persistent-ripple,.mat-mdc-icon-button .mat-mdc-button-persistent-ripple::before{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none;border-radius:inherit}.mat-mdc-icon-button .mat-mdc-button-ripple{overflow:hidden}.mat-mdc-icon-button .mat-mdc-button-persistent-ripple::before{content:"";opacity:0}.mat-mdc-icon-button .mdc-button__label,.mat-mdc-icon-button .mat-icon{z-index:1;position:relative}.mat-mdc-icon-button .mat-focus-indicator{top:0;left:0;right:0;bottom:0;position:absolute;border-radius:inherit}.mat-mdc-icon-button:focus>.mat-focus-indicator::before{content:"";border-radius:inherit}.mat-mdc-icon-button .mat-ripple-element{background-color:var(--mat-icon-button-ripple-color, color-mix(in srgb, var(--mat-sys-on-surface-variant) calc(var(--mat-sys-pressed-state-layer-opacity) * 100%), transparent))}.mat-mdc-icon-button .mat-mdc-button-persistent-ripple::before{background-color:var(--mat-icon-button-state-layer-color, var(--mat-sys-on-surface-variant))}.mat-mdc-icon-button.mat-mdc-button-disabled .mat-mdc-button-persistent-ripple::before{background-color:var(--mat-icon-button-disabled-state-layer-color, var(--mat-sys-on-surface-variant))}.mat-mdc-icon-button:hover>.mat-mdc-button-persistent-ripple::before{opacity:var(--mat-icon-button-hover-state-layer-opacity, var(--mat-sys-hover-state-layer-opacity))}.mat-mdc-icon-button.cdk-program-focused>.mat-mdc-button-persistent-ripple::before,.mat-mdc-icon-button.cdk-keyboard-focused>.mat-mdc-button-persistent-ripple::before,.mat-mdc-icon-button.mat-mdc-button-disabled-interactive:focus>.mat-mdc-button-persistent-ripple::before{opacity:var(--mat-icon-button-focus-state-layer-opacity, var(--mat-sys-focus-state-layer-opacity))}.mat-mdc-icon-button:active>.mat-mdc-button-persistent-ripple::before{opacity:var(--mat-icon-button-pressed-state-layer-opacity, var(--mat-sys-pressed-state-layer-opacity))}.mat-mdc-icon-button .mat-mdc-button-touch-target{position:absolute;top:50%;height:var(--mat-icon-button-touch-target-size, 48px);display:var(--mat-icon-button-touch-target-display, block);left:50%;width:var(--mat-icon-button-touch-target-size, 48px);transform:translate(-50%, -50%)}.mat-mdc-icon-button._mat-animation-noopable{transition:none !important;animation:none !important}.mat-mdc-icon-button[disabled],.mat-mdc-icon-button.mat-mdc-button-disabled{cursor:default;pointer-events:none;color:var(--mat-icon-button-disabled-icon-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent))}.mat-mdc-icon-button.mat-mdc-button-disabled-interactive{pointer-events:auto}.mat-mdc-icon-button img,.mat-mdc-icon-button svg{width:var(--mat-icon-button-icon-size, 24px);height:var(--mat-icon-button-icon-size, 24px);vertical-align:baseline}.mat-mdc-icon-button .mat-mdc-button-persistent-ripple{border-radius:var(--mat-icon-button-container-shape, var(--mat-sys-corner-full, 50%))}.mat-mdc-icon-button[hidden]{display:none}.mat-mdc-icon-button.mat-unthemed:not(.mdc-ripple-upgraded):focus::before,.mat-mdc-icon-button.mat-primary:not(.mdc-ripple-upgraded):focus::before,.mat-mdc-icon-button.mat-accent:not(.mdc-ripple-upgraded):focus::before,.mat-mdc-icon-button.mat-warn:not(.mdc-ripple-upgraded):focus::before{background:rgba(0,0,0,0);opacity:1} + [matCardTitle], [matCardSubtitle]`,"*"],Bk=new T("MAT_CARD_CONFIG"),zt=(()=>{class t{appearance;constructor(){let e=u(Bk,{optional:!0});this.appearance=e?.appearance||"raised"}static \u0275fac=function(i){return new(i||t)};static \u0275cmp=E({type:t,selectors:[["mat-card"]],hostAttrs:[1,"mat-mdc-card","mdc-card"],hostVars:8,hostBindings:function(i,r){i&2&&G("mat-mdc-card-outlined",r.appearance==="outlined")("mdc-card--outlined",r.appearance==="outlined")("mat-mdc-card-filled",r.appearance==="filled")("mdc-card--filled",r.appearance==="filled")},inputs:{appearance:"appearance"},exportAs:["matCard"],ngContentSelectors:WX,decls:1,vars:0,template:function(i,r){i&1&&(Me(),oe(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 rgba(0,0,0,0);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 t})(),Xt=(()=>{class t{static \u0275fac=function(i){return new(i||t)};static \u0275dir=F({type:t,selectors:[["mat-card-title"],["","mat-card-title",""],["","matCardTitle",""]],hostAttrs:[1,"mat-mdc-card-title"]})}return t})();var Ut=(()=>{class t{static \u0275fac=function(i){return new(i||t)};static \u0275dir=F({type:t,selectors:[["mat-card-content"]],hostAttrs:[1,"mat-mdc-card-content"]})}return t})(),jV=(()=>{class t{static \u0275fac=function(i){return new(i||t)};static \u0275dir=F({type:t,selectors:[["mat-card-subtitle"],["","mat-card-subtitle",""],["","matCardSubtitle",""]],hostAttrs:[1,"mat-mdc-card-subtitle"]})}return t})();var Jt=(()=>{class t{static \u0275fac=function(i){return new(i||t)};static \u0275cmp=E({type:t,selectors:[["mat-card-header"]],hostAttrs:[1,"mat-mdc-card-header"],ngContentSelectors:qX,decls:4,vars:0,consts:[[1,"mat-mdc-card-header-text"]],template:function(i,r){i&1&&(Me(GX),oe(0),ft(1,"div",0),oe(2,1),vt(),oe(3,2))},encapsulation:2,changeDetection:0})}return t})();var HV=(()=>{class t{static \u0275fac=function(i){return new(i||t)};static \u0275dir=F({type:t,selectors:[["","mat-card-avatar",""],["","matCardAvatar",""]],hostAttrs:[1,"mat-mdc-card-avatar"]})}return t})();var $t=(()=>{class t{static \u0275fac=function(i){return new(i||t)};static \u0275mod=ee({type:t});static \u0275inj=J({imports:[we,we]})}return t})();var jk=class{_box;_destroyed=new z;_resizeSubject=new z;_resizeObserver;_elementObservables=new Map;constructor(n){this._box=n,typeof ResizeObserver<"u"&&(this._resizeObserver=new ResizeObserver(e=>this._resizeSubject.next(e)))}observe(n){return this._elementObservables.has(n)||this._elementObservables.set(n,new Fe(e=>{let i=this._resizeSubject.subscribe(e);return this._resizeObserver?.observe(n,{box:this._box}),()=>{this._resizeObserver?.unobserve(n),i.unsubscribe(),this._elementObservables.delete(n)}}).pipe(ce(e=>e.some(i=>i.target===n)),dd({bufferSize:1,refCount:!0}),Te(this._destroyed))),this._elementObservables.get(n)}destroy(){this._destroyed.next(),this._destroyed.complete(),this._resizeSubject.complete(),this._elementObservables.clear()}},qy=(()=>{class t{_cleanupErrorListener;_observers=new Map;_ngZone=u(ae);constructor(){typeof ResizeObserver<"u"}ngOnDestroy(){for(let[,e]of this._observers)e.destroy();this._observers.clear(),this._cleanupErrorListener?.()}observe(e,i){let r=i?.box||"content-box";return this._observers.has(r)||this._observers.set(r,new jk(r)),this._observers.get(r).observe(e)}static \u0275fac=function(i){return new(i||t)};static \u0275prov=O({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();var YX=["notch"],QX=["matFormFieldNotchedOutline",""],KX=["*"],zV=["iconPrefixContainer"],UV=["textPrefixContainer"],$V=["iconSuffixContainer"],WV=["textSuffixContainer"],ZX=["textField"],XX=["*",[["mat-label"]],[["","matPrefix",""],["","matIconPrefix",""]],[["","matTextPrefix",""]],[["","matTextSuffix",""]],[["","matSuffix",""],["","matIconSuffix",""]],[["mat-error"],["","matError",""]],[["mat-hint",3,"align","end"]],[["mat-hint","align","end"]]],JX=["*","mat-label","[matPrefix], [matIconPrefix]","[matTextPrefix]","[matTextSuffix]","[matSuffix], [matIconSuffix]","mat-error, [matError]","mat-hint:not([align='end'])","mat-hint[align='end']"];function eJ(t,n){t&1&&k(0,"span",21)}function tJ(t,n){if(t&1&&(h(0,"label",20),oe(1,1),N(2,eJ,1,0,"span",21),p()),t&2){let e=C(2);y("floating",e._shouldLabelFloat())("monitorResize",e._hasOutline())("id",e._labelId),X("for",e._control.disableAutomaticLabeling?null:e._control.id),g(2),L(!e.hideRequiredMarker&&e._control.required?2:-1)}}function iJ(t,n){if(t&1&&N(0,tJ,3,5,"label",20),t&2){let e=C();L(e._hasFloatingLabel()?0:-1)}}function nJ(t,n){t&1&&k(0,"div",7)}function rJ(t,n){}function oJ(t,n){if(t&1&&R(0,rJ,0,0,"ng-template",13),t&2){C(2);let e=Se(1);y("ngTemplateOutlet",e)}}function aJ(t,n){if(t&1&&(h(0,"div",9),N(1,oJ,1,1,null,13),p()),t&2){let e=C();y("matFormFieldNotchedOutlineOpen",e._shouldLabelFloat()),g(),L(e._forceDisplayInfixLabel()?-1:1)}}function sJ(t,n){t&1&&(h(0,"div",10,2),oe(2,2),p())}function lJ(t,n){t&1&&(h(0,"div",11,3),oe(2,3),p())}function cJ(t,n){}function dJ(t,n){if(t&1&&R(0,cJ,0,0,"ng-template",13),t&2){C();let e=Se(1);y("ngTemplateOutlet",e)}}function uJ(t,n){t&1&&(h(0,"div",14,4),oe(2,4),p())}function mJ(t,n){t&1&&(h(0,"div",15,5),oe(2,5),p())}function hJ(t,n){t&1&&k(0,"div",16)}function pJ(t,n){t&1&&(h(0,"div",18),oe(1,6),p())}function fJ(t,n){if(t&1&&(h(0,"mat-hint",22),_(1),p()),t&2){let e=C(2);y("id",e._hintLabelId),g(),H(e.hintLabel)}}function gJ(t,n){if(t&1&&(h(0,"div",19),N(1,fJ,2,2,"mat-hint",22),oe(2,7),k(3,"div",23),oe(4,8),p()),t&2){let e=C();g(),L(e.hintLabel?1:-1)}}var sn=(()=>{class t{static \u0275fac=function(i){return new(i||t)};static \u0275dir=F({type:t,selectors:[["mat-label"]]})}return t})(),Hk=new T("MatError"),xo=(()=>{class t{id=u(Ze).getId("mat-mdc-error-");constructor(){}static \u0275fac=function(i){return new(i||t)};static \u0275dir=F({type:t,selectors:[["mat-error"],["","matError",""]],hostAttrs:[1,"mat-mdc-form-field-error","mat-mdc-form-field-bottom-align"],hostVars:1,hostBindings:function(i,r){i&2&&si("id",r.id)},inputs:{id:"id"},features:[Ce([{provide:Hk,useExisting:t}])]})}return t})(),eg=(()=>{class t{align="start";id=u(Ze).getId("mat-mdc-hint-");static \u0275fac=function(i){return new(i||t)};static \u0275dir=F({type:t,selectors:[["mat-hint"]],hostAttrs:[1,"mat-mdc-form-field-hint","mat-mdc-form-field-bottom-align"],hostVars:4,hostBindings:function(i,r){i&2&&(si("id",r.id),X("align",null),G("mat-mdc-form-field-hint-end",r.align==="end"))},inputs:{align:"align",id:"id"}})}return t})(),zk=new T("MatPrefix"),nu=(()=>{class t{set _isTextSelector(e){this._isText=!0}_isText=!1;static \u0275fac=function(i){return new(i||t)};static \u0275dir=F({type:t,selectors:[["","matPrefix",""],["","matIconPrefix",""],["","matTextPrefix",""]],inputs:{_isTextSelector:[0,"matTextPrefix","_isTextSelector"]},features:[Ce([{provide:zk,useExisting:t}])]})}return t})(),Uk=new T("MatSuffix"),ru=(()=>{class t{set _isTextSelector(e){this._isText=!0}_isText=!1;static \u0275fac=function(i){return new(i||t)};static \u0275dir=F({type:t,selectors:[["","matSuffix",""],["","matIconSuffix",""],["","matTextSuffix",""]],inputs:{_isTextSelector:[0,"matTextSuffix","_isTextSelector"]},features:[Ce([{provide:Uk,useExisting:t}])]})}return t})(),XV=new T("FloatingLabelParent"),GV=(()=>{class t{_elementRef=u(q);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=u(qy);_ngZone=u(ae);_parent=u(XV);_resizeSubscription=new ke;constructor(){}ngOnDestroy(){this._resizeSubscription.unsubscribe()}getWidth(){return _J(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(i){return new(i||t)};static \u0275dir=F({type:t,selectors:[["label","matFormFieldFloatingLabel",""]],hostAttrs:[1,"mdc-floating-label","mat-mdc-floating-label"],hostVars:2,hostBindings:function(i,r){i&2&&G("mdc-floating-label--float-above",r.floating)},inputs:{floating:"floating",monitorResize:"monitorResize"}})}return t})();function _J(t){let n=t;if(n.offsetParent!==null)return n.scrollWidth;let e=n.cloneNode(!0);e.style.setProperty("position","absolute"),e.style.setProperty("transform","translate(-9999px, -9999px)"),document.documentElement.appendChild(e);let i=e.scrollWidth;return e.remove(),i}var qV="mdc-line-ripple--active",Yy="mdc-line-ripple--deactivating",YV=(()=>{class t{_elementRef=u(q);_cleanupTransitionEnd;constructor(){let e=u(ae),i=u(je);e.runOutsideAngular(()=>{this._cleanupTransitionEnd=i.listen(this._elementRef.nativeElement,"transitionend",this._handleTransitionEnd)})}activate(){let e=this._elementRef.nativeElement.classList;e.remove(Yy),e.add(qV)}deactivate(){this._elementRef.nativeElement.classList.add(Yy)}_handleTransitionEnd=e=>{let i=this._elementRef.nativeElement.classList,r=i.contains(Yy);e.propertyName==="opacity"&&r&&i.remove(qV,Yy)};ngOnDestroy(){this._cleanupTransitionEnd()}static \u0275fac=function(i){return new(i||t)};static \u0275dir=F({type:t,selectors:[["div","matFormFieldLineRipple",""]],hostAttrs:[1,"mdc-line-ripple"]})}return t})(),QV=(()=>{class t{_elementRef=u(q);_ngZone=u(ae);open=!1;_notch;ngAfterViewInit(){let e=this._elementRef.nativeElement,i=e.querySelector(".mdc-floating-label");i?(e.classList.add("mdc-notched-outline--upgraded"),typeof requestAnimationFrame=="function"&&(i.style.transitionDuration="0s",this._ngZone.runOutsideAngular(()=>{requestAnimationFrame(()=>i.style.transitionDuration="")}))):e.classList.add("mdc-notched-outline--no-label")}_setNotchWidth(e){let i=this._notch.nativeElement;!this.open||!e?i.style.width="":i.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(i){return new(i||t)};static \u0275cmp=E({type:t,selectors:[["div","matFormFieldNotchedOutline",""]],viewQuery:function(i,r){if(i&1&&ie(YX,5),i&2){let o;B(o=j())&&(r._notch=o.first)}},hostAttrs:[1,"mdc-notched-outline"],hostVars:2,hostBindings:function(i,r){i&2&&G("mdc-notched-outline--notched",r.open)},inputs:{open:[0,"matFormFieldNotchedOutlineOpen","open"]},attrs:QX,ngContentSelectors:KX,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(i,r){i&1&&(Me(),ai(0,"div",1),ft(1,"div",2,0),oe(3),vt(),ai(4,"div",3))},encapsulation:2,changeDetection:0})}return t})(),Ra=(()=>{class t{value;stateChanges;id;placeholder;ngControl;focused;empty;shouldLabelFloat;required;disabled;errorState;controlType;autofilled;userAriaDescribedBy;disableAutomaticLabeling;describedByIds;static \u0275fac=function(i){return new(i||t)};static \u0275dir=F({type:t})}return t})();var Xo=new T("MatFormField"),JV=new T("MAT_FORM_FIELD_DEFAULT_OPTIONS"),KV="fill",bJ="auto",ZV="fixed",vJ="translateY(-50%)",Oi=(()=>{class t{_elementRef=u(q);_changeDetectorRef=u(ye);_platform=u(qe);_idGenerator=u(Ze);_ngZone=u(ae);_defaults=u(JV,{optional:!0});_currentDirection;_textField;_iconPrefixContainer;_textPrefixContainer;_iconSuffixContainer;_textSuffixContainer;_floatingLabel;_notchedOutline;_lineRipple;_iconPrefixContainerSignal=qn("iconPrefixContainer");_textPrefixContainerSignal=qn("textPrefixContainer");_iconSuffixContainerSignal=qn("iconSuffixContainer");_textSuffixContainerSignal=qn("textSuffixContainer");_prefixSuffixContainers=Zt(()=>[this._iconPrefixContainerSignal(),this._textPrefixContainerSignal(),this._iconSuffixContainerSignal(),this._textSuffixContainerSignal()].map(e=>e?.nativeElement).filter(e=>e!==void 0));_formFieldControl;_prefixChildren;_suffixChildren;_errorChildren;_hintChildren;_labelChild=fr(sn);get hideRequiredMarker(){return this._hideRequiredMarker}set hideRequiredMarker(e){this._hideRequiredMarker=Ai(e)}_hideRequiredMarker=!1;color="primary";get floatLabel(){return this._floatLabel||this._defaults?.floatLabel||bJ}set floatLabel(e){e!==this._floatLabel&&(this._floatLabel=e,this._changeDetectorRef.markForCheck())}_floatLabel;get appearance(){return this._appearanceSignal()}set appearance(e){let i=e||this._defaults?.appearance||KV;this._appearanceSignal.set(i)}_appearanceSignal=he(KV);get subscriptSizing(){return this._subscriptSizing||this._defaults?.subscriptSizing||ZV}set subscriptSizing(e){this._subscriptSizing=e||this._defaults?.subscriptSizing||ZV}_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 z;_isFocused=null;_explicitFormFieldControl;_previousControl=null;_previousControlValidatorFn=null;_stateChanges;_valueChanges;_describedByChanges;_outlineLabelOffsetResizeObserver=null;_animationsDisabled=Ye();constructor(){let e=this._defaults,i=u(Vt);e&&(e.appearance&&(this.appearance=e.appearance),this._hideRequiredMarker=!!e?.hideRequiredMarker,e.color&&(this.color=e.color)),Ar(()=>this._currentDirection=i.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=Zt(()=>this._hasFloatingLabel()?this._labelId:null);getConnectedOverlayOrigin(){return this._textField||this._elementRef}_animateAndLockLabel(){this._hasFloatingLabel()&&(this.floatLabel="always")}_initializeControl(e){let i=this._control,r="mat-mdc-form-field-type-";e&&this._elementRef.nativeElement.classList.remove(r+e.controlType),i.controlType&&this._elementRef.nativeElement.classList.add(r+i.controlType),this._stateChanges?.unsubscribe(),this._stateChanges=i.stateChanges.subscribe(()=>{this._updateFocusState(),this._changeDetectorRef.markForCheck()}),this._describedByChanges?.unsubscribe(),this._describedByChanges=i.stateChanges.pipe(He([void 0,void 0]),se(()=>[i.errorState,i.userAriaDescribedBy]),db(),ce(([[o,a],[s,l]])=>o!==s||a!==l)).subscribe(()=>this._syncDescribedByIds()),this._valueChanges?.unsubscribe(),i.ngControl&&i.ngControl.valueChanges&&(this._valueChanges=i.ngControl.valueChanges.pipe(Te(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(),Je(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(){l2({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=Zt(()=>!!this._labelChild());_shouldLabelFloat(){return this._hasFloatingLabel()?this._control.shouldLabelFloat||this._shouldAlwaysFloat():!1}_shouldForward(e){let i=this._control?this._control.ngControl:null;return i&&i[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 o=this._hintChildren?this._hintChildren.find(s=>s.align==="start"):null,a=this._hintChildren?this._hintChildren.find(s=>s.align==="end"):null;o?e.push(o.id):this._hintLabel&&e.push(this._hintLabelId),a&&e.push(a.id)}else this._errorChildren&&e.push(...this._errorChildren.map(o=>o.id));let i=this._control.describedByIds,r;if(i){let o=this._describedByIds||e;r=e.concat(i.filter(a=>a&&!o.includes(a)))}else r=e;this._control.setDescribedByIds(r),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,i=this._textPrefixContainer?.nativeElement,r=this._iconSuffixContainer?.nativeElement,o=this._textSuffixContainer?.nativeElement,a=e?.getBoundingClientRect().width??0,s=i?.getBoundingClientRect().width??0,l=r?.getBoundingClientRect().width??0,c=o?.getBoundingClientRect().width??0,d=this._currentDirection==="rtl"?"-1":"1",m=`${a+s}px`,b=`calc(${d} * (${m} + var(--mat-mdc-form-field-label-offset-x, 0px)))`,v=`var(--mat-mdc-form-field-label-transform, ${vJ} translateX(${b}))`,w=a+s+l+c;return[v,w]}_writeOutlinedLabelStyles(e){if(e!==null){let[i,r]=e;this._floatingLabel&&(this._floatingLabel.element.style.transform=i),r!==null&&this._notchedOutline?._setMaxWidth(r)}}_isAttachedToDom(){let e=this._elementRef.nativeElement;if(e.getRootNode){let i=e.getRootNode();return i&&i!==e}return document.documentElement.contains(e)}static \u0275fac=function(i){return new(i||t)};static \u0275cmp=E({type:t,selectors:[["mat-form-field"]],contentQueries:function(i,r,o){if(i&1&&(Rn(o,r._labelChild,sn,5),xe(o,Ra,5),xe(o,zk,5),xe(o,Uk,5),xe(o,Hk,5),xe(o,eg,5)),i&2){Ho();let a;B(a=j())&&(r._formFieldControl=a.first),B(a=j())&&(r._prefixChildren=a),B(a=j())&&(r._suffixChildren=a),B(a=j())&&(r._errorChildren=a),B(a=j())&&(r._hintChildren=a)}},viewQuery:function(i,r){if(i&1&&(Pn(r._iconPrefixContainerSignal,zV,5),Pn(r._textPrefixContainerSignal,UV,5),Pn(r._iconSuffixContainerSignal,$V,5),Pn(r._textSuffixContainerSignal,WV,5),ie(ZX,5),ie(zV,5),ie(UV,5),ie($V,5),ie(WV,5),ie(GV,5),ie(QV,5),ie(YV,5)),i&2){Ho(4);let o;B(o=j())&&(r._textField=o.first),B(o=j())&&(r._iconPrefixContainer=o.first),B(o=j())&&(r._textPrefixContainer=o.first),B(o=j())&&(r._iconSuffixContainer=o.first),B(o=j())&&(r._textSuffixContainer=o.first),B(o=j())&&(r._floatingLabel=o.first),B(o=j())&&(r._notchedOutline=o.first),B(o=j())&&(r._lineRipple=o.first)}},hostAttrs:[1,"mat-mdc-form-field"],hostVars:38,hostBindings:function(i,r){i&2&&G("mat-mdc-form-field-label-always-float",r._shouldAlwaysFloat())("mat-mdc-form-field-has-icon-prefix",r._hasIconPrefix)("mat-mdc-form-field-has-icon-suffix",r._hasIconSuffix)("mat-form-field-invalid",r._control.errorState)("mat-form-field-disabled",r._control.disabled)("mat-form-field-autofilled",r._control.autofilled)("mat-form-field-appearance-fill",r.appearance=="fill")("mat-form-field-appearance-outline",r.appearance=="outline")("mat-form-field-hide-placeholder",r._hasFloatingLabel()&&!r._shouldLabelFloat())("mat-primary",r.color!=="accent"&&r.color!=="warn")("mat-accent",r.color==="accent")("mat-warn",r.color==="warn")("ng-untouched",r._shouldForward("untouched"))("ng-touched",r._shouldForward("touched"))("ng-pristine",r._shouldForward("pristine"))("ng-dirty",r._shouldForward("dirty"))("ng-valid",r._shouldForward("valid"))("ng-invalid",r._shouldForward("invalid"))("ng-pending",r._shouldForward("pending"))},inputs:{hideRequiredMarker:"hideRequiredMarker",color:"color",floatLabel:"floatLabel",appearance:"appearance",subscriptSizing:"subscriptSizing",hintLabel:"hintLabel"},exportAs:["matFormField"],features:[Ce([{provide:Xo,useExisting:t},{provide:XV,useExisting:t}])],ngContentSelectors:JX,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(i,r){if(i&1){let o=Y();Me(XX),R(0,iJ,1,1,"ng-template",null,0,_i),h(2,"div",6,1),S("click",function(s){return I(o),A(r._control.onContainerClick(s))}),N(4,nJ,1,0,"div",7),h(5,"div",8),N(6,aJ,2,2,"div",9),N(7,sJ,3,0,"div",10),N(8,lJ,3,0,"div",11),h(9,"div",12),N(10,dJ,1,1,null,13),oe(11),p(),N(12,uJ,3,0,"div",14),N(13,mJ,3,0,"div",15),p(),N(14,hJ,1,0,"div",16),p(),h(15,"div",17),N(16,pJ,2,0,"div",18)(17,gJ,5,1,"div",19),p()}if(i&2){let o;g(2),G("mdc-text-field--filled",!r._hasOutline())("mdc-text-field--outlined",r._hasOutline())("mdc-text-field--no-label",!r._hasFloatingLabel())("mdc-text-field--disabled",r._control.disabled)("mdc-text-field--invalid",r._control.errorState),g(2),L(!r._hasOutline()&&!r._control.disabled?4:-1),g(2),L(r._hasOutline()?6:-1),g(),L(r._hasIconPrefix?7:-1),g(),L(r._hasTextPrefix?8:-1),g(2),L(!r._hasOutline()||r._forceDisplayInfixLabel()?10:-1),g(2),L(r._hasTextSuffix?12:-1),g(),L(r._hasIconSuffix?13:-1),g(),L(r._hasOutline()?-1:14),g(),G("mat-mdc-form-field-subscript-dynamic-size",r.subscriptSizing==="dynamic");let a=r._getSubscriptMessageType();g(),L((o=a)==="error"?16:o==="hint"?17:-1)}},dependencies:[GV,QV,Fn,YV,eg],styles:[`.mdc-text-field{display:inline-flex;align-items:baseline;padding:0 16px;position:relative;box-sizing:border-box;overflow:hidden;will-change:opacity,transform,color;border-top-left-radius:4px;border-top-right-radius:4px;border-bottom-right-radius:0;border-bottom-left-radius:0}.mdc-text-field__input{width:100%;min-width:0;border:none;border-radius:0;background:none;padding:0;-moz-appearance:none;-webkit-appearance:none;height:28px}.mdc-text-field__input::-webkit-calendar-picker-indicator,.mdc-text-field__input::-webkit-search-cancel-button{display:none}.mdc-text-field__input::-ms-clear{display:none}.mdc-text-field__input:focus{outline:none}.mdc-text-field__input:invalid{box-shadow:none}.mdc-text-field__input::placeholder{opacity:0}.mdc-text-field__input::-moz-placeholder{opacity:0}.mdc-text-field__input::-webkit-input-placeholder{opacity:0}.mdc-text-field__input:-ms-input-placeholder{opacity:0}.mdc-text-field--no-label .mdc-text-field__input::placeholder,.mdc-text-field--focused .mdc-text-field__input::placeholder{opacity:1}.mdc-text-field--no-label .mdc-text-field__input::-moz-placeholder,.mdc-text-field--focused .mdc-text-field__input::-moz-placeholder{opacity:1}.mdc-text-field--no-label .mdc-text-field__input::-webkit-input-placeholder,.mdc-text-field--focused .mdc-text-field__input::-webkit-input-placeholder{opacity:1}.mdc-text-field--no-label .mdc-text-field__input:-ms-input-placeholder,.mdc-text-field--focused .mdc-text-field__input:-ms-input-placeholder{opacity:1}.mdc-text-field--disabled:not(.mdc-text-field--no-label) .mdc-text-field__input.mat-mdc-input-disabled-interactive::placeholder{opacity:0}.mdc-text-field--disabled:not(.mdc-text-field--no-label) .mdc-text-field__input.mat-mdc-input-disabled-interactive::-moz-placeholder{opacity:0}.mdc-text-field--disabled:not(.mdc-text-field--no-label) .mdc-text-field__input.mat-mdc-input-disabled-interactive::-webkit-input-placeholder{opacity:0}.mdc-text-field--disabled:not(.mdc-text-field--no-label) .mdc-text-field__input.mat-mdc-input-disabled-interactive:-ms-input-placeholder{opacity:0}.mdc-text-field--outlined .mdc-text-field__input,.mdc-text-field--filled.mdc-text-field--no-label .mdc-text-field__input{height:100%}.mdc-text-field--outlined .mdc-text-field__input{display:flex;border:none !important;background-color:rgba(0,0,0,0)}.mdc-text-field--disabled .mdc-text-field__input{pointer-events:auto}.mdc-text-field--filled:not(.mdc-text-field--disabled) .mdc-text-field__input{color:var(--mat-form-field-filled-input-text-color, var(--mat-sys-on-surface));caret-color:var(--mat-form-field-filled-caret-color, var(--mat-sys-primary))}.mdc-text-field--filled:not(.mdc-text-field--disabled) .mdc-text-field__input::placeholder{color:var(--mat-form-field-filled-input-text-placeholder-color, var(--mat-sys-on-surface-variant))}.mdc-text-field--filled:not(.mdc-text-field--disabled) .mdc-text-field__input::-moz-placeholder{color:var(--mat-form-field-filled-input-text-placeholder-color, var(--mat-sys-on-surface-variant))}.mdc-text-field--filled:not(.mdc-text-field--disabled) .mdc-text-field__input::-webkit-input-placeholder{color:var(--mat-form-field-filled-input-text-placeholder-color, var(--mat-sys-on-surface-variant))}.mdc-text-field--filled:not(.mdc-text-field--disabled) .mdc-text-field__input:-ms-input-placeholder{color:var(--mat-form-field-filled-input-text-placeholder-color, var(--mat-sys-on-surface-variant))}.mdc-text-field--outlined:not(.mdc-text-field--disabled) .mdc-text-field__input{color:var(--mat-form-field-outlined-input-text-color, var(--mat-sys-on-surface));caret-color:var(--mat-form-field-outlined-caret-color, var(--mat-sys-primary))}.mdc-text-field--outlined:not(.mdc-text-field--disabled) .mdc-text-field__input::placeholder{color:var(--mat-form-field-outlined-input-text-placeholder-color, var(--mat-sys-on-surface-variant))}.mdc-text-field--outlined:not(.mdc-text-field--disabled) .mdc-text-field__input::-moz-placeholder{color:var(--mat-form-field-outlined-input-text-placeholder-color, var(--mat-sys-on-surface-variant))}.mdc-text-field--outlined:not(.mdc-text-field--disabled) .mdc-text-field__input::-webkit-input-placeholder{color:var(--mat-form-field-outlined-input-text-placeholder-color, var(--mat-sys-on-surface-variant))}.mdc-text-field--outlined:not(.mdc-text-field--disabled) .mdc-text-field__input:-ms-input-placeholder{color:var(--mat-form-field-outlined-input-text-placeholder-color, var(--mat-sys-on-surface-variant))}.mdc-text-field--filled.mdc-text-field--invalid:not(.mdc-text-field--disabled) .mdc-text-field__input{caret-color:var(--mat-form-field-filled-error-caret-color, var(--mat-sys-error))}.mdc-text-field--outlined.mdc-text-field--invalid:not(.mdc-text-field--disabled) .mdc-text-field__input{caret-color:var(--mat-form-field-outlined-error-caret-color, var(--mat-sys-error))}.mdc-text-field--filled.mdc-text-field--disabled .mdc-text-field__input{color:var(--mat-form-field-filled-disabled-input-text-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent))}.mdc-text-field--outlined.mdc-text-field--disabled .mdc-text-field__input{color:var(--mat-form-field-outlined-disabled-input-text-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent))}@media(forced-colors: active){.mdc-text-field--disabled .mdc-text-field__input{background-color:Window}}.mdc-text-field--filled{height:56px;border-bottom-right-radius:0;border-bottom-left-radius:0;border-top-left-radius:var(--mat-form-field-filled-container-shape, var(--mat-sys-corner-extra-small));border-top-right-radius:var(--mat-form-field-filled-container-shape, var(--mat-sys-corner-extra-small))}.mdc-text-field--filled:not(.mdc-text-field--disabled){background-color:var(--mat-form-field-filled-container-color, var(--mat-sys-surface-variant))}.mdc-text-field--filled.mdc-text-field--disabled{background-color:var(--mat-form-field-filled-disabled-container-color, color-mix(in srgb, var(--mat-sys-on-surface) 4%, transparent))}.mdc-text-field--outlined{height:56px;overflow:visible;padding-right:max(16px,var(--mat-form-field-outlined-container-shape, var(--mat-sys-corner-extra-small)));padding-left:max(16px,var(--mat-form-field-outlined-container-shape, var(--mat-sys-corner-extra-small)) + 4px)}[dir=rtl] .mdc-text-field--outlined{padding-right:max(16px,var(--mat-form-field-outlined-container-shape, var(--mat-sys-corner-extra-small)) + 4px);padding-left:max(16px,var(--mat-form-field-outlined-container-shape, var(--mat-sys-corner-extra-small)))}.mdc-floating-label{position:absolute;left:0;transform-origin:left top;line-height:1.15rem;text-align:left;text-overflow:ellipsis;white-space:nowrap;cursor:text;overflow:hidden;will-change:transform}[dir=rtl] .mdc-floating-label{right:0;left:auto;transform-origin:right top;text-align:right}.mdc-text-field .mdc-floating-label{top:50%;transform:translateY(-50%);pointer-events:none}.mdc-notched-outline .mdc-floating-label{display:inline-block;position:relative;max-width:100%}.mdc-text-field--outlined .mdc-floating-label{left:4px;right:auto}[dir=rtl] .mdc-text-field--outlined .mdc-floating-label{left:auto;right:4px}.mdc-text-field--filled .mdc-floating-label{left:16px;right:auto}[dir=rtl] .mdc-text-field--filled .mdc-floating-label{left:auto;right:16px}.mdc-text-field--disabled .mdc-floating-label{cursor:default}@media(forced-colors: active){.mdc-text-field--disabled .mdc-floating-label{z-index:1}}.mdc-text-field--filled.mdc-text-field--no-label .mdc-floating-label{display:none}.mdc-text-field--filled:not(.mdc-text-field--disabled) .mdc-floating-label{color:var(--mat-form-field-filled-label-text-color, var(--mat-sys-on-surface-variant))}.mdc-text-field--filled:not(.mdc-text-field--disabled).mdc-text-field--focused .mdc-floating-label{color:var(--mat-form-field-filled-focus-label-text-color, var(--mat-sys-primary))}.mdc-text-field--filled:not(.mdc-text-field--disabled):not(.mdc-text-field--focused):hover .mdc-floating-label{color:var(--mat-form-field-filled-hover-label-text-color, var(--mat-sys-on-surface-variant))}.mdc-text-field--filled.mdc-text-field--disabled .mdc-floating-label{color:var(--mat-form-field-filled-disabled-label-text-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent))}.mdc-text-field--filled:not(.mdc-text-field--disabled).mdc-text-field--invalid .mdc-floating-label{color:var(--mat-form-field-filled-error-label-text-color, var(--mat-sys-error))}.mdc-text-field--filled:not(.mdc-text-field--disabled).mdc-text-field--invalid.mdc-text-field--focused .mdc-floating-label{color:var(--mat-form-field-filled-error-focus-label-text-color, var(--mat-sys-error))}.mdc-text-field--filled:not(.mdc-text-field--disabled).mdc-text-field--invalid:not(.mdc-text-field--disabled):hover .mdc-floating-label{color:var(--mat-form-field-filled-error-hover-label-text-color, var(--mat-sys-on-error-container))}.mdc-text-field--filled .mdc-floating-label{font-family:var(--mat-form-field-filled-label-text-font, var(--mat-sys-body-large-font));font-size:var(--mat-form-field-filled-label-text-size, var(--mat-sys-body-large-size));font-weight:var(--mat-form-field-filled-label-text-weight, var(--mat-sys-body-large-weight));letter-spacing:var(--mat-form-field-filled-label-text-tracking, var(--mat-sys-body-large-tracking))}.mdc-text-field--outlined:not(.mdc-text-field--disabled) .mdc-floating-label{color:var(--mat-form-field-outlined-label-text-color, var(--mat-sys-on-surface-variant))}.mdc-text-field--outlined:not(.mdc-text-field--disabled).mdc-text-field--focused .mdc-floating-label{color:var(--mat-form-field-outlined-focus-label-text-color, var(--mat-sys-primary))}.mdc-text-field--outlined:not(.mdc-text-field--disabled):not(.mdc-text-field--focused):hover .mdc-floating-label{color:var(--mat-form-field-outlined-hover-label-text-color, var(--mat-sys-on-surface))}.mdc-text-field--outlined.mdc-text-field--disabled .mdc-floating-label{color:var(--mat-form-field-outlined-disabled-label-text-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent))}.mdc-text-field--outlined:not(.mdc-text-field--disabled).mdc-text-field--invalid .mdc-floating-label{color:var(--mat-form-field-outlined-error-label-text-color, var(--mat-sys-error))}.mdc-text-field--outlined:not(.mdc-text-field--disabled).mdc-text-field--invalid.mdc-text-field--focused .mdc-floating-label{color:var(--mat-form-field-outlined-error-focus-label-text-color, var(--mat-sys-error))}.mdc-text-field--outlined:not(.mdc-text-field--disabled).mdc-text-field--invalid:not(.mdc-text-field--disabled):hover .mdc-floating-label{color:var(--mat-form-field-outlined-error-hover-label-text-color, var(--mat-sys-on-error-container))}.mdc-text-field--outlined .mdc-floating-label{font-family:var(--mat-form-field-outlined-label-text-font, var(--mat-sys-body-large-font));font-size:var(--mat-form-field-outlined-label-text-size, var(--mat-sys-body-large-size));font-weight:var(--mat-form-field-outlined-label-text-weight, var(--mat-sys-body-large-weight));letter-spacing:var(--mat-form-field-outlined-label-text-tracking, var(--mat-sys-body-large-tracking))}.mdc-floating-label--float-above{cursor:auto;transform:translateY(-106%) scale(0.75)}.mdc-text-field--filled .mdc-floating-label--float-above{transform:translateY(-106%) scale(0.75)}.mdc-text-field--outlined .mdc-floating-label--float-above{transform:translateY(-37.25px) scale(1);font-size:.75rem}.mdc-notched-outline .mdc-floating-label--float-above{text-overflow:clip}.mdc-notched-outline--upgraded .mdc-floating-label--float-above{max-width:133.3333333333%}.mdc-text-field--outlined.mdc-notched-outline--upgraded .mdc-floating-label--float-above,.mdc-text-field--outlined .mdc-notched-outline--upgraded .mdc-floating-label--float-above{transform:translateY(-34.75px) scale(0.75)}.mdc-text-field--outlined.mdc-notched-outline--upgraded .mdc-floating-label--float-above,.mdc-text-field--outlined .mdc-notched-outline--upgraded .mdc-floating-label--float-above{font-size:1rem}.mdc-floating-label--required:not(.mdc-floating-label--hide-required-marker)::after{margin-left:1px;margin-right:0;content:"*"}[dir=rtl] .mdc-floating-label--required:not(.mdc-floating-label--hide-required-marker)::after{margin-left:0;margin-right:1px}.mdc-notched-outline{display:flex;position:absolute;top:0;right:0;left:0;box-sizing:border-box;width:100%;max-width:100%;height:100%;text-align:left;pointer-events:none}[dir=rtl] .mdc-notched-outline{text-align:right}.mdc-text-field--outlined .mdc-notched-outline{z-index:1}.mat-mdc-notch-piece{box-sizing:border-box;height:100%;pointer-events:none;border-top:1px solid;border-bottom:1px solid}.mdc-text-field--focused .mat-mdc-notch-piece{border-width:2px}.mdc-text-field--outlined:not(.mdc-text-field--disabled) .mat-mdc-notch-piece{border-color:var(--mat-form-field-outlined-outline-color, var(--mat-sys-outline));border-width:var(--mat-form-field-outlined-outline-width, 1px)}.mdc-text-field--outlined:not(.mdc-text-field--disabled):not(.mdc-text-field--focused):hover .mat-mdc-notch-piece{border-color:var(--mat-form-field-outlined-hover-outline-color, var(--mat-sys-on-surface))}.mdc-text-field--outlined:not(.mdc-text-field--disabled).mdc-text-field--focused .mat-mdc-notch-piece{border-color:var(--mat-form-field-outlined-focus-outline-color, var(--mat-sys-primary))}.mdc-text-field--outlined.mdc-text-field--disabled .mat-mdc-notch-piece{border-color:var(--mat-form-field-outlined-disabled-outline-color, color-mix(in srgb, var(--mat-sys-on-surface) 12%, transparent))}.mdc-text-field--outlined:not(.mdc-text-field--disabled).mdc-text-field--invalid .mat-mdc-notch-piece{border-color:var(--mat-form-field-outlined-error-outline-color, var(--mat-sys-error))}.mdc-text-field--outlined:not(.mdc-text-field--disabled).mdc-text-field--invalid:not(.mdc-text-field--focused):hover .mdc-notched-outline .mat-mdc-notch-piece{border-color:var(--mat-form-field-outlined-error-hover-outline-color, var(--mat-sys-on-error-container))}.mdc-text-field--outlined:not(.mdc-text-field--disabled).mdc-text-field--invalid.mdc-text-field--focused .mat-mdc-notch-piece{border-color:var(--mat-form-field-outlined-error-focus-outline-color, var(--mat-sys-error))}.mdc-text-field--outlined:not(.mdc-text-field--disabled).mdc-text-field--focused .mdc-notched-outline .mat-mdc-notch-piece{border-width:var(--mat-form-field-outlined-focus-outline-width, 2px)}.mdc-notched-outline__leading{border-left:1px solid;border-right:none;border-top-right-radius:0;border-bottom-right-radius:0;border-top-left-radius:var(--mat-form-field-outlined-container-shape, var(--mat-sys-corner-extra-small));border-bottom-left-radius:var(--mat-form-field-outlined-container-shape, var(--mat-sys-corner-extra-small))}.mdc-text-field--outlined .mdc-notched-outline .mdc-notched-outline__leading{width:max(12px,var(--mat-form-field-outlined-container-shape, var(--mat-sys-corner-extra-small)))}[dir=rtl] .mdc-notched-outline__leading{border-left:none;border-right:1px solid;border-bottom-left-radius:0;border-top-left-radius:0;border-top-right-radius:var(--mat-form-field-outlined-container-shape, var(--mat-sys-corner-extra-small));border-bottom-right-radius:var(--mat-form-field-outlined-container-shape, var(--mat-sys-corner-extra-small))}.mdc-notched-outline__trailing{flex-grow:1;border-left:none;border-right:1px solid;border-top-left-radius:0;border-bottom-left-radius:0;border-top-right-radius:var(--mat-form-field-outlined-container-shape, var(--mat-sys-corner-extra-small));border-bottom-right-radius:var(--mat-form-field-outlined-container-shape, var(--mat-sys-corner-extra-small))}[dir=rtl] .mdc-notched-outline__trailing{border-left:1px solid;border-right:none;border-top-right-radius:0;border-bottom-right-radius:0;border-top-left-radius:var(--mat-form-field-outlined-container-shape, var(--mat-sys-corner-extra-small));border-bottom-left-radius:var(--mat-form-field-outlined-container-shape, var(--mat-sys-corner-extra-small))}.mdc-notched-outline__notch{flex:0 0 auto;width:auto}.mdc-text-field--outlined .mdc-notched-outline .mdc-notched-outline__notch{max-width:min(var(--mat-form-field-notch-max-width, 100%),calc(100% - max(12px, var(--mat-form-field-outlined-container-shape, var(--mat-sys-corner-extra-small))) * 2))}.mdc-text-field--outlined .mdc-notched-outline--notched .mdc-notched-outline__notch{max-width:min(100%,calc(100% - max(12px, var(--mat-form-field-outlined-container-shape, var(--mat-sys-corner-extra-small))) * 2))}.mdc-text-field--outlined .mdc-notched-outline--notched .mdc-notched-outline__notch{padding-top:1px}.mdc-text-field--focused.mdc-text-field--outlined .mdc-notched-outline--notched .mdc-notched-outline__notch{padding-top:2px}.mdc-notched-outline--notched .mdc-notched-outline__notch{padding-left:0;padding-right:8px;border-top:none}[dir=rtl] .mdc-notched-outline--notched .mdc-notched-outline__notch{padding-left:8px;padding-right:0}.mdc-notched-outline--no-label .mdc-notched-outline__notch{display:none}.mdc-line-ripple::before,.mdc-line-ripple::after{position:absolute;bottom:0;left:0;width:100%;border-bottom-style:solid;content:""}.mdc-line-ripple::before{z-index:1;border-bottom-width:var(--mat-form-field-filled-active-indicator-height, 1px)}.mdc-text-field--filled:not(.mdc-text-field--disabled) .mdc-line-ripple::before{border-bottom-color:var(--mat-form-field-filled-active-indicator-color, var(--mat-sys-on-surface-variant))}.mdc-text-field--filled:not(.mdc-text-field--disabled):not(.mdc-text-field--focused):hover .mdc-line-ripple::before{border-bottom-color:var(--mat-form-field-filled-hover-active-indicator-color, var(--mat-sys-on-surface))}.mdc-text-field--filled.mdc-text-field--disabled .mdc-line-ripple::before{border-bottom-color:var(--mat-form-field-filled-disabled-active-indicator-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent))}.mdc-text-field--filled:not(.mdc-text-field--disabled).mdc-text-field--invalid .mdc-line-ripple::before{border-bottom-color:var(--mat-form-field-filled-error-active-indicator-color, var(--mat-sys-error))}.mdc-text-field--filled:not(.mdc-text-field--disabled).mdc-text-field--invalid:not(.mdc-text-field--focused):hover .mdc-line-ripple::before{border-bottom-color:var(--mat-form-field-filled-error-hover-active-indicator-color, var(--mat-sys-on-error-container))}.mdc-line-ripple::after{transform:scaleX(0);opacity:0;z-index:2}.mdc-text-field--filled .mdc-line-ripple::after{border-bottom-width:var(--mat-form-field-filled-focus-active-indicator-height, 2px)}.mdc-text-field--filled:not(.mdc-text-field--disabled) .mdc-line-ripple::after{border-bottom-color:var(--mat-form-field-filled-focus-active-indicator-color, var(--mat-sys-primary))}.mdc-text-field--filled.mdc-text-field--invalid:not(.mdc-text-field--disabled) .mdc-line-ripple::after{border-bottom-color:var(--mat-form-field-filled-error-focus-active-indicator-color, var(--mat-sys-error))}.mdc-line-ripple--active::after{transform:scaleX(1);opacity:1}.mdc-line-ripple--deactivating::after{opacity:0}.mdc-text-field--disabled{pointer-events:none}.mat-mdc-form-field-textarea-control{vertical-align:middle;resize:vertical;box-sizing:border-box;height:auto;margin:0;padding:0;border:none;overflow:auto}.mat-mdc-form-field-input-control.mat-mdc-form-field-input-control{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;font:inherit;letter-spacing:inherit;text-decoration:inherit;text-transform:inherit;border:none}.mat-mdc-form-field .mat-mdc-floating-label.mdc-floating-label{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;line-height:normal;pointer-events:all;will-change:auto}.mat-mdc-form-field:not(.mat-form-field-disabled) .mat-mdc-floating-label.mdc-floating-label{cursor:inherit}.mdc-text-field--no-label:not(.mdc-text-field--textarea) .mat-mdc-form-field-input-control.mdc-text-field__input,.mat-mdc-text-field-wrapper .mat-mdc-form-field-input-control{height:auto}.mat-mdc-text-field-wrapper .mat-mdc-form-field-input-control.mdc-text-field__input[type=color]{height:23px}.mat-mdc-text-field-wrapper{height:auto;flex:auto;will-change:auto}.mat-mdc-form-field-has-icon-prefix .mat-mdc-text-field-wrapper{padding-left:0;--mat-mdc-form-field-label-offset-x: -16px}.mat-mdc-form-field-has-icon-suffix .mat-mdc-text-field-wrapper{padding-right:0}[dir=rtl] .mat-mdc-text-field-wrapper{padding-left:16px;padding-right:16px}[dir=rtl] .mat-mdc-form-field-has-icon-suffix .mat-mdc-text-field-wrapper{padding-left:0}[dir=rtl] .mat-mdc-form-field-has-icon-prefix .mat-mdc-text-field-wrapper{padding-right:0}.mat-form-field-disabled .mdc-text-field__input::placeholder{color:var(--mat-form-field-disabled-input-text-placeholder-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent))}.mat-form-field-disabled .mdc-text-field__input::-moz-placeholder{color:var(--mat-form-field-disabled-input-text-placeholder-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent))}.mat-form-field-disabled .mdc-text-field__input::-webkit-input-placeholder{color:var(--mat-form-field-disabled-input-text-placeholder-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent))}.mat-form-field-disabled .mdc-text-field__input:-ms-input-placeholder{color:var(--mat-form-field-disabled-input-text-placeholder-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent))}.mat-mdc-form-field-label-always-float .mdc-text-field__input::placeholder{transition-delay:40ms;transition-duration:110ms;opacity:1}.mat-mdc-text-field-wrapper .mat-mdc-form-field-infix .mat-mdc-floating-label{left:auto;right:auto}.mat-mdc-text-field-wrapper.mdc-text-field--outlined .mdc-text-field__input{display:inline-block}.mat-mdc-form-field .mat-mdc-text-field-wrapper.mdc-text-field .mdc-notched-outline__notch{padding-top:0}.mat-mdc-form-field.mat-mdc-form-field.mat-mdc-form-field.mat-mdc-form-field.mat-mdc-form-field.mat-mdc-form-field .mdc-notched-outline__notch{border-left:1px solid rgba(0,0,0,0)}[dir=rtl] .mat-mdc-form-field.mat-mdc-form-field.mat-mdc-form-field.mat-mdc-form-field.mat-mdc-form-field.mat-mdc-form-field .mdc-notched-outline__notch{border-left:none;border-right:1px solid rgba(0,0,0,0)}.mat-mdc-form-field-infix{min-height:var(--mat-form-field-container-height, 56px);padding-top:var(--mat-form-field-filled-with-label-container-padding-top, 24px);padding-bottom:var(--mat-form-field-filled-with-label-container-padding-bottom, 8px)}.mdc-text-field--outlined .mat-mdc-form-field-infix,.mdc-text-field--no-label .mat-mdc-form-field-infix{padding-top:var(--mat-form-field-container-vertical-padding, 16px);padding-bottom:var(--mat-form-field-container-vertical-padding, 16px)}.mat-mdc-text-field-wrapper .mat-mdc-form-field-flex .mat-mdc-floating-label{top:calc(var(--mat-form-field-container-height, 56px)/2)}.mdc-text-field--filled .mat-mdc-floating-label{display:var(--mat-form-field-filled-label-display, block)}.mat-mdc-text-field-wrapper.mdc-text-field--outlined .mdc-notched-outline--upgraded .mdc-floating-label--float-above{--mat-mdc-form-field-label-transform: translateY(calc(calc(6.75px + var(--mat-form-field-container-height, 56px) / 2) * -1)) scale(var(--mat-mdc-form-field-floating-label-scale, 0.75));transform:var(--mat-mdc-form-field-label-transform)}@keyframes _mat-form-field-subscript-animation{from{opacity:0;transform:translateY(-5px)}to{opacity:1;transform:translateY(0)}}.mat-mdc-form-field-subscript-wrapper{box-sizing:border-box;width:100%;position:relative}.mat-mdc-form-field-hint-wrapper,.mat-mdc-form-field-error-wrapper{position:absolute;top:0;left:0;right:0;padding:0 16px;opacity:1;transform:translateY(0);animation:_mat-form-field-subscript-animation 0ms cubic-bezier(0.55, 0, 0.55, 0.2)}.mat-mdc-form-field-subscript-dynamic-size .mat-mdc-form-field-hint-wrapper,.mat-mdc-form-field-subscript-dynamic-size .mat-mdc-form-field-error-wrapper{position:static}.mat-mdc-form-field-bottom-align::before{content:"";display:inline-block;height:16px}.mat-mdc-form-field-bottom-align.mat-mdc-form-field-subscript-dynamic-size::before{content:unset}.mat-mdc-form-field-hint-end{order:1}.mat-mdc-form-field-hint-wrapper{display:flex}.mat-mdc-form-field-hint-spacer{flex:1 0 1em}.mat-mdc-form-field-error{display:block;color:var(--mat-form-field-error-text-color, var(--mat-sys-error))}.mat-mdc-form-field-subscript-wrapper,.mat-mdc-form-field-bottom-align::before{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;font-family:var(--mat-form-field-subscript-text-font, var(--mat-sys-body-small-font));line-height:var(--mat-form-field-subscript-text-line-height, var(--mat-sys-body-small-line-height));font-size:var(--mat-form-field-subscript-text-size, var(--mat-sys-body-small-size));letter-spacing:var(--mat-form-field-subscript-text-tracking, var(--mat-sys-body-small-tracking));font-weight:var(--mat-form-field-subscript-text-weight, var(--mat-sys-body-small-weight))}.mat-mdc-form-field-focus-overlay{top:0;left:0;right:0;bottom:0;position:absolute;opacity:0;pointer-events:none;background-color:var(--mat-form-field-state-layer-color, var(--mat-sys-on-surface))}.mat-mdc-text-field-wrapper:hover .mat-mdc-form-field-focus-overlay{opacity:var(--mat-form-field-hover-state-layer-opacity, var(--mat-sys-hover-state-layer-opacity))}.mat-mdc-form-field.mat-focused .mat-mdc-form-field-focus-overlay{opacity:var(--mat-form-field-focus-state-layer-opacity, 0)}select.mat-mdc-form-field-input-control{-moz-appearance:none;-webkit-appearance:none;background-color:rgba(0,0,0,0);display:inline-flex;box-sizing:border-box}select.mat-mdc-form-field-input-control:not(:disabled){cursor:pointer}select.mat-mdc-form-field-input-control:not(.mat-mdc-native-select-inline) option{color:var(--mat-form-field-select-option-text-color, var(--mat-sys-neutral10))}select.mat-mdc-form-field-input-control:not(.mat-mdc-native-select-inline) option:disabled{color:var(--mat-form-field-select-disabled-option-text-color, color-mix(in srgb, var(--mat-sys-neutral10) 38%, transparent))}.mat-mdc-form-field-type-mat-native-select .mat-mdc-form-field-infix::after{content:"";width:0;height:0;border-left:5px solid rgba(0,0,0,0);border-right:5px solid rgba(0,0,0,0);border-top:5px solid;position:absolute;right:0;top:50%;margin-top:-2.5px;pointer-events:none;color:var(--mat-form-field-enabled-select-arrow-color, var(--mat-sys-on-surface-variant))}[dir=rtl] .mat-mdc-form-field-type-mat-native-select .mat-mdc-form-field-infix::after{right:auto;left:0}.mat-mdc-form-field-type-mat-native-select.mat-focused .mat-mdc-form-field-infix::after{color:var(--mat-form-field-focus-select-arrow-color, var(--mat-sys-primary))}.mat-mdc-form-field-type-mat-native-select.mat-form-field-disabled .mat-mdc-form-field-infix::after{color:var(--mat-form-field-disabled-select-arrow-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent))}.mat-mdc-form-field-type-mat-native-select .mat-mdc-form-field-input-control{padding-right:15px}[dir=rtl] .mat-mdc-form-field-type-mat-native-select .mat-mdc-form-field-input-control{padding-right:0;padding-left:15px}@media(forced-colors: active){.mat-form-field-appearance-fill .mat-mdc-text-field-wrapper{outline:solid 1px}}@media(forced-colors: active){.mat-form-field-appearance-fill.mat-form-field-disabled .mat-mdc-text-field-wrapper{outline-color:GrayText}}@media(forced-colors: active){.mat-form-field-appearance-fill.mat-focused .mat-mdc-text-field-wrapper{outline:dashed 3px}}@media(forced-colors: active){.mat-mdc-form-field.mat-focused .mdc-notched-outline{border:dashed 3px}}.mat-mdc-form-field-input-control[type=date],.mat-mdc-form-field-input-control[type=datetime],.mat-mdc-form-field-input-control[type=datetime-local],.mat-mdc-form-field-input-control[type=month],.mat-mdc-form-field-input-control[type=week],.mat-mdc-form-field-input-control[type=time]{line-height:1}.mat-mdc-form-field-input-control::-webkit-datetime-edit{line-height:1;padding:0;margin-bottom:-2px}.mat-mdc-form-field{--mat-mdc-form-field-floating-label-scale: 0.75;display:inline-flex;flex-direction:column;min-width:0;text-align:left;-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;font-family:var(--mat-form-field-container-text-font, var(--mat-sys-body-large-font));line-height:var(--mat-form-field-container-text-line-height, var(--mat-sys-body-large-line-height));font-size:var(--mat-form-field-container-text-size, var(--mat-sys-body-large-size));letter-spacing:var(--mat-form-field-container-text-tracking, var(--mat-sys-body-large-tracking));font-weight:var(--mat-form-field-container-text-weight, var(--mat-sys-body-large-weight))}.mat-mdc-form-field .mdc-text-field--outlined .mdc-floating-label--float-above{font-size:calc(var(--mat-form-field-outlined-label-text-populated-size)*var(--mat-mdc-form-field-floating-label-scale))}.mat-mdc-form-field .mdc-text-field--outlined .mdc-notched-outline--upgraded .mdc-floating-label--float-above{font-size:var(--mat-form-field-outlined-label-text-populated-size)}[dir=rtl] .mat-mdc-form-field{text-align:right}.mat-mdc-form-field-flex{display:inline-flex;align-items:baseline;box-sizing:border-box;width:100%}.mat-mdc-text-field-wrapper{width:100%;z-index:0}.mat-mdc-form-field-icon-prefix,.mat-mdc-form-field-icon-suffix{align-self:center;line-height:0;pointer-events:auto;position:relative;z-index:1}.mat-mdc-form-field-icon-prefix>.mat-icon,.mat-mdc-form-field-icon-suffix>.mat-icon{padding:0 12px;box-sizing:content-box}.mat-mdc-form-field-icon-prefix{color:var(--mat-form-field-leading-icon-color, var(--mat-sys-on-surface-variant))}.mat-form-field-disabled .mat-mdc-form-field-icon-prefix{color:var(--mat-form-field-disabled-leading-icon-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent))}.mat-mdc-form-field-icon-suffix{color:var(--mat-form-field-trailing-icon-color, var(--mat-sys-on-surface-variant))}.mat-form-field-disabled .mat-mdc-form-field-icon-suffix{color:var(--mat-form-field-disabled-trailing-icon-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent))}.mat-form-field-invalid .mat-mdc-form-field-icon-suffix{color:var(--mat-form-field-error-trailing-icon-color, var(--mat-sys-error))}.mat-form-field-invalid:not(.mat-focused):not(.mat-form-field-disabled) .mat-mdc-text-field-wrapper:hover .mat-mdc-form-field-icon-suffix{color:var(--mat-form-field-error-hover-trailing-icon-color, var(--mat-sys-on-error-container))}.mat-form-field-invalid.mat-focused .mat-mdc-text-field-wrapper .mat-mdc-form-field-icon-suffix{color:var(--mat-form-field-error-focus-trailing-icon-color, var(--mat-sys-error))}.mat-mdc-form-field-icon-prefix,[dir=rtl] .mat-mdc-form-field-icon-suffix{padding:0 4px 0 0}.mat-mdc-form-field-icon-suffix,[dir=rtl] .mat-mdc-form-field-icon-prefix{padding:0 0 0 4px}.mat-mdc-form-field-subscript-wrapper .mat-icon,.mat-mdc-form-field label .mat-icon{width:1em;height:1em;font-size:inherit}.mat-mdc-form-field-infix{flex:auto;min-width:0;width:180px;position:relative;box-sizing:border-box}.mat-mdc-form-field-infix:has(textarea[cols]){width:auto}.mat-mdc-form-field .mdc-notched-outline__notch{margin-left:-1px;-webkit-clip-path:inset(-9em -999em -9em 1px);clip-path:inset(-9em -999em -9em 1px)}[dir=rtl] .mat-mdc-form-field .mdc-notched-outline__notch{margin-left:0;margin-right:-1px;-webkit-clip-path:inset(-9em 1px -9em -999em);clip-path:inset(-9em 1px -9em -999em)}.mat-mdc-form-field.mat-form-field-animations-enabled .mdc-floating-label{transition:transform 150ms cubic-bezier(0.4, 0, 0.2, 1),color 150ms cubic-bezier(0.4, 0, 0.2, 1)}.mat-mdc-form-field.mat-form-field-animations-enabled .mdc-text-field__input{transition:opacity 150ms cubic-bezier(0.4, 0, 0.2, 1)}.mat-mdc-form-field.mat-form-field-animations-enabled .mdc-text-field__input::placeholder{transition:opacity 67ms cubic-bezier(0.4, 0, 0.2, 1)}.mat-mdc-form-field.mat-form-field-animations-enabled .mdc-text-field__input::-moz-placeholder{transition:opacity 67ms cubic-bezier(0.4, 0, 0.2, 1)}.mat-mdc-form-field.mat-form-field-animations-enabled .mdc-text-field__input::-webkit-input-placeholder{transition:opacity 67ms cubic-bezier(0.4, 0, 0.2, 1)}.mat-mdc-form-field.mat-form-field-animations-enabled .mdc-text-field__input:-ms-input-placeholder{transition:opacity 67ms cubic-bezier(0.4, 0, 0.2, 1)}.mat-mdc-form-field.mat-form-field-animations-enabled.mdc-text-field--no-label .mdc-text-field__input::placeholder,.mat-mdc-form-field.mat-form-field-animations-enabled.mdc-text-field--focused .mdc-text-field__input::placeholder{transition-delay:40ms;transition-duration:110ms}.mat-mdc-form-field.mat-form-field-animations-enabled.mdc-text-field--no-label .mdc-text-field__input::-moz-placeholder,.mat-mdc-form-field.mat-form-field-animations-enabled.mdc-text-field--focused .mdc-text-field__input::-moz-placeholder{transition-delay:40ms;transition-duration:110ms}.mat-mdc-form-field.mat-form-field-animations-enabled.mdc-text-field--no-label .mdc-text-field__input::-webkit-input-placeholder,.mat-mdc-form-field.mat-form-field-animations-enabled.mdc-text-field--focused .mdc-text-field__input::-webkit-input-placeholder{transition-delay:40ms;transition-duration:110ms}.mat-mdc-form-field.mat-form-field-animations-enabled.mdc-text-field--no-label .mdc-text-field__input:-ms-input-placeholder,.mat-mdc-form-field.mat-form-field-animations-enabled.mdc-text-field--focused .mdc-text-field__input:-ms-input-placeholder{transition-delay:40ms;transition-duration:110ms}.mat-mdc-form-field.mat-form-field-animations-enabled .mdc-text-field--filled:not(.mdc-ripple-upgraded):focus .mdc-text-field__ripple::before{transition-duration:75ms}.mat-mdc-form-field.mat-form-field-animations-enabled .mdc-line-ripple::after{transition:transform 180ms cubic-bezier(0.4, 0, 0.2, 1),opacity 180ms cubic-bezier(0.4, 0, 0.2, 1)}.mat-mdc-form-field.mat-form-field-animations-enabled .mat-mdc-form-field-hint-wrapper,.mat-mdc-form-field.mat-form-field-animations-enabled .mat-mdc-form-field-error-wrapper{animation-duration:300ms}.mdc-notched-outline .mdc-floating-label{max-width:calc(100% + 1px)}.mdc-notched-outline--upgraded .mdc-floating-label--float-above{max-width:calc(133.3333333333% + 1px)} +`],encapsulation:2,changeDetection:0})}return t})();var tg=class{};function ig(t){return t&&typeof t.connect=="function"&&!(t instanceof Al)}var cc=(function(t){return t[t.REPLACED=0]="REPLACED",t[t.INSERTED=1]="INSERTED",t[t.MOVED=2]="MOVED",t[t.REMOVED=3]="REMOVED",t})(cc||{}),fh=new T("_ViewRepeater");var yJ=20,ws=(()=>{class t{_ngZone=u(ae);_platform=u(qe);_renderer=u(cn).createRenderer(null,null);_cleanupGlobalListener;constructor(){}_scrolled=new z;_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 i=this.scrollContainers.get(e);i&&(i.unsubscribe(),this.scrollContainers.delete(e))}scrolled(e=yJ){return this._platform.isBrowser?new Fe(i=>{this._cleanupGlobalListener||(this._cleanupGlobalListener=this._ngZone.runOutsideAngular(()=>this._renderer.listen("document","scroll",()=>this._scrolled.next())));let r=e>0?this._scrolled.pipe(Pl(e)).subscribe(i):this._scrolled.subscribe(i);return this._scrolledCount++,()=>{r.unsubscribe(),this._scrolledCount--,this._scrolledCount||(this._cleanupGlobalListener?.(),this._cleanupGlobalListener=void 0)}}):Q()}ngOnDestroy(){this._cleanupGlobalListener?.(),this._cleanupGlobalListener=void 0,this.scrollContainers.forEach((e,i)=>this.deregister(i)),this._scrolled.complete()}ancestorScrolled(e,i){let r=this.getAncestorScrollContainers(e);return this.scrolled(i).pipe(ce(o=>!o||r.indexOf(o)>-1))}getAncestorScrollContainers(e){let i=[];return this.scrollContainers.forEach((r,o)=>{this._scrollableContainsElement(o,e)&&i.push(o)}),i}_scrollableContainsElement(e,i){let r=Pr(i),o=e.getElementRef().nativeElement;do if(r==o)return!0;while(r=r.parentElement);return!1}static \u0275fac=function(i){return new(i||t)};static \u0275prov=O({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),Pa=(()=>{class t{elementRef=u(q);scrollDispatcher=u(ws);ngZone=u(ae);dir=u(Vt,{optional:!0});_scrollElement=this.elementRef.nativeElement;_destroyed=new z;_renderer=u(je);_cleanupScroll;_elementScrolled=new z;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 i=this.elementRef.nativeElement,r=this.dir&&this.dir.value=="rtl";e.left==null&&(e.left=r?e.end:e.start),e.right==null&&(e.right=r?e.start:e.end),e.bottom!=null&&(e.top=i.scrollHeight-i.clientHeight-e.bottom),r&&eh()!=Aa.NORMAL?(e.left!=null&&(e.right=i.scrollWidth-i.clientWidth-e.left),eh()==Aa.INVERTED?e.left=e.right:eh()==Aa.NEGATED&&(e.left=e.right?-e.right:e.right)):e.right!=null&&(e.left=i.scrollWidth-i.clientWidth-e.right),this._applyScrollToOptions(e)}_applyScrollToOptions(e){let i=this.elementRef.nativeElement;q0()?i.scrollTo(e):(e.top!=null&&(i.scrollTop=e.top),e.left!=null&&(i.scrollLeft=e.left))}measureScrollOffset(e){let i="left",r="right",o=this.elementRef.nativeElement;if(e=="top")return o.scrollTop;if(e=="bottom")return o.scrollHeight-o.clientHeight-o.scrollTop;let a=this.dir&&this.dir.value=="rtl";return e=="start"?e=a?r:i:e=="end"&&(e=a?i:r),a&&eh()==Aa.INVERTED?e==i?o.scrollWidth-o.clientWidth-o.scrollLeft:o.scrollLeft:a&&eh()==Aa.NEGATED?e==i?o.scrollLeft+o.scrollWidth-o.clientWidth:-o.scrollLeft:e==i?o.scrollLeft:o.scrollWidth-o.clientWidth-o.scrollLeft}static \u0275fac=function(i){return new(i||t)};static \u0275dir=F({type:t,selectors:[["","cdk-scrollable",""],["","cdkScrollable",""]]})}return t})(),xJ=20,Xn=(()=>{class t{_platform=u(qe);_listeners;_viewportSize;_change=new z;_document=u(ge);constructor(){let e=u(ae),i=u(cn).createRenderer(null,null);e.runOutsideAngular(()=>{if(this._platform.isBrowser){let r=o=>this._change.next(o);this._listeners=[i.listen("window","resize",r),i.listen("window","orientationchange",r)]}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:i,height:r}=this.getViewportSize();return{top:e.top,left:e.left,bottom:e.top+r,right:e.left+i,height:r,width:i}}getViewportScrollPosition(){if(!this._platform.isBrowser)return{top:0,left:0};let e=this._document,i=this._getWindow(),r=e.documentElement,o=r.getBoundingClientRect(),a=-o.top||e.body.scrollTop||i.scrollY||r.scrollTop||0,s=-o.left||e.body.scrollLeft||i.scrollX||r.scrollLeft||0;return{top:a,left:s}}change(e=xJ){return e>0?this._change.pipe(Pl(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(i){return new(i||t)};static \u0275prov=O({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();var vr=(()=>{class t{static \u0275fac=function(i){return new(i||t)};static \u0275mod=ee({type:t});static \u0275inj=J({})}return t})(),ng=(()=>{class t{static \u0275fac=function(i){return new(i||t)};static \u0275mod=ee({type:t});static \u0275inj=J({imports:[vs,vr,vs,vr]})}return t})();var rg=class{_attachedHost;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}},Zr=class extends rg{component;viewContainerRef;injector;projectableNodes;constructor(n,e,i,r){super(),this.component=n,this.viewContainerRef=e,this.injector=i,this.projectableNodes=r}},Cn=class extends rg{templateRef;viewContainerRef;context;injector;constructor(n,e,i,r){super(),this.templateRef=n,this.viewContainerRef=e,this.context=i,this.injector=r}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()}},$k=class extends rg{element;constructor(n){super(),this.element=n instanceof q?n.nativeElement:n}},dc=class{_attachedPortal;_disposeFn;_isDisposed=!1;hasAttached(){return!!this._attachedPortal}attach(n){if(n instanceof Zr)return this._attachedPortal=n,this.attachComponentPortal(n);if(n instanceof Cn)return this._attachedPortal=n,this.attachTemplatePortal(n);if(this.attachDomPortal&&n instanceof $k)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)}},og=class extends dc{outletElement;_appRef;_defaultInjector;constructor(n,e,i){super(),this.outletElement=n,this._appRef=e,this._defaultInjector=i}attachComponentPortal(n){let e;if(n.viewContainerRef){let i=n.injector||n.viewContainerRef.injector,r=i.get(as,null,{optional:!0})||void 0;e=n.viewContainerRef.createComponent(n.component,{index:n.viewContainerRef.length,injector:i,ngModuleRef:r,projectableNodes:n.projectableNodes||void 0}),this.setDisposeFn(()=>e.destroy())}else{let i=this._appRef,r=n.injector||this._defaultInjector||de.NULL,o=r.get(Wt,i.injector);e=Mm(n.component,{elementInjector:r,environmentInjector:o,projectableNodes:n.projectableNodes||void 0}),i.attachView(e.hostView),this.setDisposeFn(()=>{i.viewCount>0&&i.detachView(e.hostView),e.destroy()})}return this.outletElement.appendChild(this._getComponentRootNode(e)),this._attachedPortal=n,e}attachTemplatePortal(n){let e=n.viewContainerRef,i=e.createEmbeddedView(n.templateRef,n.context,{injector:n.injector});return i.rootNodes.forEach(r=>this.outletElement.appendChild(r)),i.detectChanges(),this.setDisposeFn(()=>{let r=e.indexOf(i);r!==-1&&e.remove(r)}),this._attachedPortal=n,i}attachDomPortal=n=>{let e=n.element;e.parentNode;let i=this.outletElement.ownerDocument.createComment("dom-portal");e.parentNode.insertBefore(i,e),this.outletElement.appendChild(e),this._attachedPortal=n,super.setDisposeFn(()=>{i.parentNode&&i.parentNode.replaceChild(e,i)})};dispose(){super.dispose(),this.outletElement.remove()}_getComponentRootNode(n){return n.hostView.rootNodes[0]}},eB=(()=>{class t extends Cn{constructor(){let e=u(te),i=u(nt);super(e,i)}static \u0275fac=function(i){return new(i||t)};static \u0275dir=F({type:t,selectors:[["","cdkPortal",""]],exportAs:["cdkPortal"],features:[le]})}return t})();var yr=(()=>{class t extends dc{_moduleRef=u(as,{optional:!0});_document=u(ge);_viewContainerRef=u(nt);_isInitialized=!1;_attachedRef;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 U;get attachedRef(){return this._attachedRef}ngOnInit(){this._isInitialized=!0}ngOnDestroy(){super.dispose(),this._attachedRef=this._attachedPortal=null}attachComponentPortal(e){e.setAttachedHost(this);let i=e.viewContainerRef!=null?e.viewContainerRef:this._viewContainerRef,r=i.createComponent(e.component,{index:i.length,injector:e.injector||i.injector,projectableNodes:e.projectableNodes||void 0,ngModuleRef:this._moduleRef||void 0});return i!==this._viewContainerRef&&this._getRootNode().appendChild(r.hostView.rootNodes[0]),super.setDisposeFn(()=>r.destroy()),this._attachedPortal=e,this._attachedRef=r,this.attached.emit(r),r}attachTemplatePortal(e){e.setAttachedHost(this);let i=this._viewContainerRef.createEmbeddedView(e.templateRef,e.context,{injector:e.injector});return super.setDisposeFn(()=>this._viewContainerRef.clear()),this._attachedPortal=e,this._attachedRef=i,this.attached.emit(i),i}attachDomPortal=e=>{let i=e.element;i.parentNode;let r=this._document.createComment("dom-portal");e.setAttachedHost(this),i.parentNode.insertBefore(r,i),this._getRootNode().appendChild(i),this._attachedPortal=e,super.setDisposeFn(()=>{r.parentNode&&r.parentNode.replaceChild(i,r)})};_getRootNode(){let e=this._viewContainerRef.element.nativeElement;return e.nodeType===e.ELEMENT_NODE?e:e.parentNode}static \u0275fac=function(i){return new(i||t)};static \u0275dir=F({type:t,selectors:[["","cdkPortalOutlet",""]],inputs:{portal:[0,"cdkPortalOutlet","portal"]},outputs:{attached:"attached"},exportAs:["cdkPortalOutlet"],features:[le]})}return t})();var Co=(()=>{class t{static \u0275fac=function(i){return new(i||t)};static \u0275mod=ee({type:t});static \u0275inj=J({})}return t})();var tB=q0();function uc(t){return new Qy(t.get(Xn),t.get(ge))}var Qy=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=on(-this._previousScrollPosition.left),n.style.top=on(-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,i=n.style,r=e.style,o=i.scrollBehavior||"",a=r.scrollBehavior||"";this._isEnabled=!1,i.left=this._previousHTMLStyles.left,i.top=this._previousHTMLStyles.top,n.classList.remove("cdk-global-scrollblock"),tB&&(i.scrollBehavior=r.scrollBehavior="auto"),window.scroll(this._previousScrollPosition.left,this._previousScrollPosition.top),tB&&(i.scrollBehavior=o,r.scrollBehavior=a)}}_canBeEnabled(){if(this._document.documentElement.classList.contains("cdk-global-scrollblock")||this._isEnabled)return!1;let e=this._document.documentElement,i=this._viewportRuler.getViewportSize();return e.scrollHeight>i.height||e.scrollWidth>i.width}};function lB(t,n){return new Ky(t.get(ws),t.get(ae),t.get(Xn),n)}var Ky=class{_scrollDispatcher;_ngZone;_viewportRuler;_config;_scrollSubscription=null;_overlayRef;_initialScrollPosition;constructor(n,e,i,r){this._scrollDispatcher=n,this._ngZone=e,this._viewportRuler=i,this._config=r}attach(n){this._overlayRef,this._overlayRef=n}enable(){if(this._scrollSubscription)return;let n=this._scrollDispatcher.scrolled(0).pipe(ce(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 ag=class{enable(){}disable(){}attach(){}};function Wk(t,n){return n.some(e=>{let i=t.bottome.bottom,o=t.righte.right;return i||r||o||a})}function iB(t,n){return n.some(e=>{let i=t.tope.bottom,o=t.lefte.right;return i||r||o||a})}function wn(t,n){return new Zy(t.get(ws),t.get(Xn),t.get(ae),n)}var Zy=class{_scrollDispatcher;_viewportRuler;_ngZone;_config;_scrollSubscription=null;_overlayRef;constructor(n,e,i,r){this._scrollDispatcher=n,this._viewportRuler=e,this._ngZone=i,this._config=r}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:i,height:r}=this._viewportRuler.getViewportSize();Wk(e,[{width:i,height:r,bottom:r,right:i,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}},cB=(()=>{class t{_injector=u(de);constructor(){}noop=()=>new ag;close=e=>lB(this._injector,e);block=()=>uc(this._injector);reposition=e=>wn(this._injector,e);static \u0275fac=function(i){return new(i||t)};static \u0275prov=O({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),Fr=class{positionStrategy;scrollStrategy=new ag;panelClass="";hasBackdrop=!1;backdropClass="cdk-overlay-dark-backdrop";disableAnimations;width;height;minWidth;minHeight;maxWidth;maxHeight;direction;disposeOnNavigation=!1;constructor(n){if(n){let e=Object.keys(n);for(let i of e)n[i]!==void 0&&(this[i]=n[i])}}};var Xy=class{connectionPair;scrollableViewProperties;constructor(n,e){this.connectionPair=n,this.scrollableViewProperties=e}};var dB=(()=>{class t{_attachedOverlays=[];_document=u(ge);_isAttached;constructor(){}ngOnDestroy(){this.detach()}add(e){this.remove(e),this._attachedOverlays.push(e)}remove(e){let i=this._attachedOverlays.indexOf(e);i>-1&&this._attachedOverlays.splice(i,1),this._attachedOverlays.length===0&&this.detach()}static \u0275fac=function(i){return new(i||t)};static \u0275prov=O({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),uB=(()=>{class t extends dB{_ngZone=u(ae);_renderer=u(cn).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 i=this._attachedOverlays;for(let r=i.length-1;r>-1;r--)if(i[r]._keydownEvents.observers.length>0){this._ngZone.run(()=>i[r]._keydownEvents.next(e));break}};static \u0275fac=(()=>{let e;return function(r){return(e||(e=fe(t)))(r||t)}})();static \u0275prov=O({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),mB=(()=>{class t extends dB{_platform=u(qe);_ngZone=u(ae);_renderer=u(cn).createRenderer(null,null);_cursorOriginalValue;_cursorStyleIsSet=!1;_pointerDownEventTarget;_cleanups;add(e){if(super.add(e),!this._isAttached){let i=this._document.body,r={capture:!0},o=this._renderer;this._cleanups=this._ngZone.runOutsideAngular(()=>[o.listen(i,"pointerdown",this._pointerDownListener,r),o.listen(i,"click",this._clickListener,r),o.listen(i,"auxclick",this._clickListener,r),o.listen(i,"contextmenu",this._clickListener,r)]),this._platform.IOS&&!this._cursorStyleIsSet&&(this._cursorOriginalValue=i.style.cursor,i.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=Kn(e)};_clickListener=e=>{let i=Kn(e),r=e.type==="click"&&this._pointerDownEventTarget?this._pointerDownEventTarget:i;this._pointerDownEventTarget=null;let o=this._attachedOverlays.slice();for(let a=o.length-1;a>-1;a--){let s=o[a];if(s._outsidePointerEvents.observers.length<1||!s.hasAttached())continue;if(nB(s.overlayElement,i)||nB(s.overlayElement,r))break;let l=s._outsidePointerEvents;this._ngZone?this._ngZone.run(()=>l.next(e)):l.next(e)}};static \u0275fac=(()=>{let e;return function(r){return(e||(e=fe(t)))(r||t)}})();static \u0275prov=O({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();function nB(t,n){let e=typeof ShadowRoot<"u"&&ShadowRoot,i=n;for(;i;){if(i===t)return!0;i=e&&i instanceof ShadowRoot?i.host:i.parentNode}return!1}var hB=(()=>{class t{static \u0275fac=function(i){return new(i||t)};static \u0275cmp=E({type:t,selectors:[["ng-component"]],hostAttrs:["cdk-overlay-style-loader",""],decls:0,vars:0,template:function(i,r){},styles:[`.cdk-overlay-container,.cdk-global-overlay-wrapper{pointer-events:none;top:0;left:0;height:100%;width:100%}.cdk-overlay-container{position:fixed}@layer cdk-overlay{.cdk-overlay-container{z-index:1000}}.cdk-overlay-container:empty{display:none}.cdk-global-overlay-wrapper{display:flex;position:absolute}@layer cdk-overlay{.cdk-global-overlay-wrapper{z-index:1000}}.cdk-overlay-pane{position:absolute;pointer-events:auto;box-sizing:border-box;display:flex;max-width:100%;max-height:100%}@layer cdk-overlay{.cdk-overlay-pane{z-index:1000}}.cdk-overlay-backdrop{position:absolute;top:0;bottom:0;left:0;right:0;pointer-events:auto;-webkit-tap-highlight-color:rgba(0,0,0,0);opacity:0;touch-action:manipulation}@layer cdk-overlay{.cdk-overlay-backdrop{z-index:1000;transition:opacity 400ms cubic-bezier(0.25, 0.8, 0.25, 1)}}@media(prefers-reduced-motion){.cdk-overlay-backdrop{transition-duration:1ms}}.cdk-overlay-backdrop-showing{opacity:1}@media(forced-colors: active){.cdk-overlay-backdrop-showing{opacity:.6}}@layer cdk-overlay{.cdk-overlay-dark-backdrop{background:rgba(0,0,0,.32)}}.cdk-overlay-transparent-backdrop{transition:visibility 1ms linear,opacity 1ms linear;visibility:hidden;opacity:1}.cdk-overlay-transparent-backdrop.cdk-overlay-backdrop-showing,.cdk-high-contrast-active .cdk-overlay-transparent-backdrop{opacity:0;visibility:visible}.cdk-overlay-backdrop-noop-animation{transition:none}.cdk-overlay-connected-position-bounding-box{position:absolute;display:flex;flex-direction:column;min-width:1px;min-height:1px}@layer cdk-overlay{.cdk-overlay-connected-position-bounding-box{z-index:1000}}.cdk-global-scrollblock{position:fixed;width:100%;overflow-y:scroll} +`],encapsulation:2,changeDetection:0})}return t})(),ex=(()=>{class t{_platform=u(qe);_containerElement;_document=u(ge);_styleLoader=u(ut);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||Dk()){let r=this._document.querySelectorAll(`.${e}[platform="server"], .${e}[platform="test"]`);for(let o=0;o{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()}},gh=class{_portalOutlet;_host;_pane;_config;_ngZone;_keyboardDispatcher;_document;_location;_outsideClickDispatcher;_animationsDisabled;_injector;_renderer;_backdropClick=new z;_attachments=new z;_detachments=new z;_positionStrategy;_scrollStrategy;_locationChanges=ke.EMPTY;_backdropRef=null;_detachContentMutationObserver;_detachContentAfterRenderRef;_previousHostParent;_keydownEvents=new z;_outsidePointerEvents=new z;_afterNextRenderRef;constructor(n,e,i,r,o,a,s,l,c,d=!1,m,f){this._portalOutlet=n,this._host=e,this._pane=i,this._config=r,this._ngZone=o,this._keyboardDispatcher=a,this._document=s,this._location=l,this._outsideClickDispatcher=c,this._animationsDisabled=d,this._injector=m,this._renderer=f,r.scrollStrategy&&(this._scrollStrategy=r.scrollStrategy,this._scrollStrategy.attach(this)),this._positionStrategy=r.positionStrategy}get overlayElement(){return this._pane}get backdropElement(){return this._backdropRef?.element||null}get hostElement(){return this._host}attach(n){!this._host.parentElement&&this._previousHostParent&&this._previousHostParent.appendChild(this._host);let e=this._portalOutlet.attach(n);return this._positionStrategy&&this._positionStrategy.attach(this),this._updateStackingOrder(),this._updateElementSize(),this._updateElementDirection(),this._scrollStrategy&&this._scrollStrategy.enable(),this._afterNextRenderRef?.destroy(),this._afterNextRenderRef=pt(()=>{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(){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()}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=M(M({},this._config),n),this._updateElementSize()}setDirection(n){this._config=De(M({},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=on(this._config.width),n.height=on(this._config.height),n.minWidth=on(this._config.minWidth),n.minHeight=on(this._config.minHeight),n.maxWidth=on(this._config.maxWidth),n.maxHeight=on(this._config.maxHeight)}_togglePointerEvents(n){this._pane.style.pointerEvents=n?"":"none"}_attachBackdrop(){let n="cdk-overlay-backdrop-showing";this._backdropRef?.dispose(),this._backdropRef=new Gk(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._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._host.nextSibling&&this._host.parentNode.appendChild(this._host)}detachBackdrop(){this._animationsDisabled?(this._backdropRef?.dispose(),this._backdropRef=null):this._backdropRef?.detach()}_toggleClasses(n,e,i){let r=al(e||[]).filter(o=>!!o);r.length&&(i?n.classList.add(...r):n.classList.remove(...r))}_detachContentWhenEmpty(){let n=!1;try{this._detachContentAfterRenderRef=pt(()=>{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?.()}},rB="cdk-overlay-connected-position-bounding-box",wJ=/([A-Za-z%]+)$/;function Fa(t,n){return new _h(n,t.get(Xn),t.get(ge),t.get(qe),t.get(ex))}var _h=class{_viewportRuler;_document;_platform;_overlayContainer;_overlayRef;_isInitialRender;_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;_boundingBox;_lastPosition;_lastScrollVisibility;_positionChanges=new z;_resizeSubscription=ke.EMPTY;_offsetX=0;_offsetY=0;_transformOriginSelector;_appliedPanelClasses=[];_previousPushAmount;positionChanges=this._positionChanges;get positions(){return this._preferredPositions}constructor(n,e,i,r,o){this._viewportRuler=e,this._document=i,this._platform=r,this._overlayContainer=o,this.setOrigin(n)}attach(n){this._overlayRef&&this._overlayRef,this._validatePositions(),n.hostElement.classList.add(rB),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._overlayContainer.getContainerElement().getBoundingClientRect();let n=this._originRect,e=this._overlayRect,i=this._viewportRect,r=this._containerRect,o=[],a;for(let s of this._preferredPositions){let l=this._getOriginPoint(n,r,s),c=this._getOverlayPoint(l,e,s),d=this._getOverlayFit(c,e,i,s);if(d.isCompletelyWithinViewport){this._isPushed=!1,this._applyPosition(s,l);return}if(this._canFitWithFlexibleDimensions(d,c,i)){o.push({position:s,origin:l,overlayRect:e,boundingBoxRect:this._calculateBoundingBoxRect(l,s)});continue}(!a||a.overlayFit.visibleAreal&&(l=d,s=c)}this._isPushed=!1,this._applyPosition(s.position,s.origin);return}if(this._canPush){this._isPushed=!0,this._applyPosition(a.position,a.originPoint);return}this._applyPosition(a.position,a.originPoint)}detach(){this._clearPanelClasses(),this._lastPosition=null,this._previousPushAmount=null,this._resizeSubscription.unsubscribe()}dispose(){this._isDisposed||(this._boundingBox&&ou(this._boundingBox.style,{top:"",left:"",right:"",bottom:"",height:"",width:"",alignItems:"",justifyContent:""}),this._pane&&this._resetOverlayElementStyles(),this._overlayRef&&this._overlayRef.hostElement.classList.remove(rB),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;if(n){this._originRect=this._getOriginRect(),this._overlayRect=this._pane.getBoundingClientRect(),this._viewportRect=this._getNarrowedViewportRect(),this._containerRect=this._overlayContainer.getContainerElement().getBoundingClientRect();let e=this._getOriginPoint(this._originRect,this._containerRect,n);this._applyPosition(n,e)}else 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}_getOriginPoint(n,e,i){let r;if(i.originX=="center")r=n.left+n.width/2;else{let a=this._isRtl()?n.right:n.left,s=this._isRtl()?n.left:n.right;r=i.originX=="start"?a:s}e.left<0&&(r-=e.left);let o;return i.originY=="center"?o=n.top+n.height/2:o=i.originY=="top"?n.top:n.bottom,e.top<0&&(o-=e.top),{x:r,y:o}}_getOverlayPoint(n,e,i){let r;i.overlayX=="center"?r=-e.width/2:i.overlayX==="start"?r=this._isRtl()?-e.width:0:r=this._isRtl()?0:-e.width;let o;return i.overlayY=="center"?o=-e.height/2:o=i.overlayY=="top"?0:-e.height,{x:n.x+r,y:n.y+o}}_getOverlayFit(n,e,i,r){let o=aB(e),{x:a,y:s}=n,l=this._getOffset(r,"x"),c=this._getOffset(r,"y");l&&(a+=l),c&&(s+=c);let d=0-a,m=a+o.width-i.width,f=0-s,b=s+o.height-i.height,v=this._subtractOverflows(o.width,d,m),w=this._subtractOverflows(o.height,f,b),x=v*w;return{visibleArea:x,isCompletelyWithinViewport:o.width*o.height===x,fitsInViewportVertically:w===o.height,fitsInViewportHorizontally:v==o.width}}_canFitWithFlexibleDimensions(n,e,i){if(this._hasFlexibleDimensions){let r=i.bottom-e.y,o=i.right-e.x,a=oB(this._overlayRef.getConfig().minHeight),s=oB(this._overlayRef.getConfig().minWidth),l=n.fitsInViewportVertically||a!=null&&a<=r,c=n.fitsInViewportHorizontally||s!=null&&s<=o;return l&&c}return!1}_pushOverlayOnScreen(n,e,i){if(this._previousPushAmount&&this._positionLocked)return{x:n.x+this._previousPushAmount.x,y:n.y+this._previousPushAmount.y};let r=aB(e),o=this._viewportRect,a=Math.max(n.x+r.width-o.width,0),s=Math.max(n.y+r.height-o.height,0),l=Math.max(o.top-i.top-n.y,0),c=Math.max(o.left-i.left-n.x,0),d=0,m=0;return r.width<=o.width?d=c||-a:d=n.xv&&!this._isInitialRender&&!this._growAfterOpen&&(a=n.y-v/2)}let l=e.overlayX==="start"&&!r||e.overlayX==="end"&&r,c=e.overlayX==="end"&&!r||e.overlayX==="start"&&r,d,m,f;if(c)f=i.width-n.x+this._viewportMargin*2,d=n.x-this._viewportMargin;else if(l)m=n.x,d=i.right-n.x;else{let b=Math.min(i.right-n.x+i.left,n.x),v=this._lastBoundingBoxSize.width;d=b*2,m=n.x-b,d>v&&!this._isInitialRender&&!this._growAfterOpen&&(m=n.x-v/2)}return{top:a,left:m,bottom:s,right:f,width:d,height:o}}_setBoundingBoxStyles(n,e){let i=this._calculateBoundingBoxRect(n,e);!this._isInitialRender&&!this._growAfterOpen&&(i.height=Math.min(i.height,this._lastBoundingBoxSize.height),i.width=Math.min(i.width,this._lastBoundingBoxSize.width));let r={};if(this._hasExactPosition())r.top=r.left="0",r.bottom=r.right=r.maxHeight=r.maxWidth="",r.width=r.height="100%";else{let o=this._overlayRef.getConfig().maxHeight,a=this._overlayRef.getConfig().maxWidth;r.height=on(i.height),r.top=on(i.top),r.bottom=on(i.bottom),r.width=on(i.width),r.left=on(i.left),r.right=on(i.right),e.overlayX==="center"?r.alignItems="center":r.alignItems=e.overlayX==="end"?"flex-end":"flex-start",e.overlayY==="center"?r.justifyContent="center":r.justifyContent=e.overlayY==="bottom"?"flex-end":"flex-start",o&&(r.maxHeight=on(o)),a&&(r.maxWidth=on(a))}this._lastBoundingBoxSize=i,ou(this._boundingBox.style,r)}_resetBoundingBoxStyles(){ou(this._boundingBox.style,{top:"0",left:"0",right:"0",bottom:"0",height:"",width:"",alignItems:"",justifyContent:""})}_resetOverlayElementStyles(){ou(this._pane.style,{top:"",left:"",bottom:"",right:"",position:"",transform:""})}_setOverlayElementStyles(n,e){let i={},r=this._hasExactPosition(),o=this._hasFlexibleDimensions,a=this._overlayRef.getConfig();if(r){let d=this._viewportRuler.getViewportScrollPosition();ou(i,this._getExactOverlayY(e,n,d)),ou(i,this._getExactOverlayX(e,n,d))}else i.position="static";let s="",l=this._getOffset(e,"x"),c=this._getOffset(e,"y");l&&(s+=`translateX(${l}px) `),c&&(s+=`translateY(${c}px)`),i.transform=s.trim(),a.maxHeight&&(r?i.maxHeight=on(a.maxHeight):o&&(i.maxHeight="")),a.maxWidth&&(r?i.maxWidth=on(a.maxWidth):o&&(i.maxWidth="")),ou(this._pane.style,i)}_getExactOverlayY(n,e,i){let r={top:"",bottom:""},o=this._getOverlayPoint(e,this._overlayRect,n);if(this._isPushed&&(o=this._pushOverlayOnScreen(o,this._overlayRect,i)),n.overlayY==="bottom"){let a=this._document.documentElement.clientHeight;r.bottom=`${a-(o.y+this._overlayRect.height)}px`}else r.top=on(o.y);return r}_getExactOverlayX(n,e,i){let r={left:"",right:""},o=this._getOverlayPoint(e,this._overlayRect,n);this._isPushed&&(o=this._pushOverlayOnScreen(o,this._overlayRect,i));let a;if(this._isRtl()?a=n.overlayX==="end"?"left":"right":a=n.overlayX==="end"?"right":"left",a==="right"){let s=this._document.documentElement.clientWidth;r.right=`${s-(o.x+this._overlayRect.width)}px`}else r.left=on(o.x);return r}_getScrollVisibility(){let n=this._getOriginRect(),e=this._pane.getBoundingClientRect(),i=this._scrollables.map(r=>r.getElementRef().nativeElement.getBoundingClientRect());return{isOriginClipped:iB(n,i),isOriginOutsideView:Wk(n,i),isOverlayClipped:iB(e,i),isOverlayOutsideView:Wk(e,i)}}_subtractOverflows(n,...e){return e.reduce((i,r)=>i-Math.max(r,0),n)}_getNarrowedViewportRect(){let n=this._document.documentElement.clientWidth,e=this._document.documentElement.clientHeight,i=this._viewportRuler.getViewportScrollPosition();return{top:i.top+this._viewportMargin,left:i.left+this._viewportMargin,right:i.left+n-this._viewportMargin,bottom:i.top+e-this._viewportMargin,width:n-2*this._viewportMargin,height:e-2*this._viewportMargin}}_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&&al(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=[])}_getOriginRect(){let n=this._origin;if(n instanceof q)return n.nativeElement.getBoundingClientRect();if(n instanceof Element)return n.getBoundingClientRect();let e=n.width||0,i=n.height||0;return{top:n.y,bottom:n.y+i,left:n.x,right:n.x+e,height:i,width:e}}};function ou(t,n){for(let e in n)n.hasOwnProperty(e)&&(t[e]=n[e]);return t}function oB(t){if(typeof t!="number"&&t!=null){let[n,e]=t.split(wJ);return!e||e==="px"?parseFloat(n):null}return t||null}function aB(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 DJ(t,n){return t===n?!0:t.isOriginClipped===n.isOriginClipped&&t.isOriginOutsideView===n.isOriginOutsideView&&t.isOverlayClipped===n.isOverlayClipped&&t.isOverlayOutsideView===n.isOverlayOutsideView}var sB="cdk-global-overlay-wrapper";function Ds(t){return new Jy}var Jy=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(sB),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,i=this._overlayRef.getConfig(),{width:r,height:o,maxWidth:a,maxHeight:s}=i,l=(r==="100%"||r==="100vw")&&(!a||a==="100%"||a==="100vw"),c=(o==="100%"||o==="100vh")&&(!s||s==="100%"||s==="100vh"),d=this._xPosition,m=this._xOffset,f=this._overlayRef.getConfig().direction==="rtl",b="",v="",w="";l?w="flex-start":d==="center"?(w="center",f?v=m:b=m):f?d==="left"||d==="end"?(w="flex-end",b=m):(d==="right"||d==="start")&&(w="flex-start",v=m):d==="left"||d==="start"?(w="flex-start",b=m):(d==="right"||d==="end")&&(w="flex-end",v=m),n.position=this._cssPosition,n.marginLeft=l?"0":b,n.marginTop=c?"0":this._topOffset,n.marginBottom=this._bottomOffset,n.marginRight=l?"0":v,e.justifyContent=w,e.alignItems=c?"flex-start":this._alignItems}dispose(){if(this._isDisposed||!this._overlayRef)return;let n=this._overlayRef.overlayElement.style,e=this._overlayRef.hostElement,i=e.style;e.classList.remove(sB),i.justifyContent=i.alignItems=n.marginTop=n.marginBottom=n.marginLeft=n.marginRight=n.position="",this._overlayRef=null,this._isDisposed=!0}},pB=(()=>{class t{_injector=u(de);constructor(){}global(){return Ds()}flexibleConnectedTo(e){return Fa(this._injector,e)}static \u0275fac=function(i){return new(i||t)};static \u0275prov=O({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();function Nr(t,n){t.get(ut).load(hB);let e=t.get(ex),i=t.get(ge),r=t.get(Ze),o=t.get(Gn),a=t.get(Vt),s=i.createElement("div"),l=i.createElement("div");l.id=r.getId("cdk-overlay-"),l.classList.add("cdk-overlay-pane"),s.appendChild(l),e.getContainerElement().appendChild(s);let c=new og(l,o,t),d=new Fr(n),m=t.get(je,null,{optional:!0})||t.get(cn).createRenderer(null,null);return d.direction=d.direction||a.value,new gh(c,s,l,d,t.get(ae),t.get(uB),i,t.get(us),t.get(mB),n?.disableAnimations??t.get(Yp,null,{optional:!0})==="NoopAnimations",t.get(Wt),m)}var fB=(()=>{class t{scrollStrategies=u(cB);_positionBuilder=u(pB);_injector=u(de);constructor(){}create(e){return Nr(this._injector,e)}position(){return this._positionBuilder}static \u0275fac=function(i){return new(i||t)};static \u0275prov=O({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),EJ=[{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"}],gB=new T("cdk-connected-overlay-scroll-strategy",{providedIn:"root",factory:()=>{let t=u(de);return()=>wn(t)}}),bh=(()=>{class t{elementRef=u(q);constructor(){}static \u0275fac=function(i){return new(i||t)};static \u0275dir=F({type:t,selectors:[["","cdk-overlay-origin",""],["","overlay-origin",""],["","cdkOverlayOrigin",""]],exportAs:["cdkOverlayOrigin"]})}return t})(),tx=(()=>{class t{_dir=u(Vt,{optional:!0});_injector=u(de);_overlayRef;_templatePortal;_backdropSubscription=ke.EMPTY;_attachSubscription=ke.EMPTY;_detachSubscription=ke.EMPTY;_positionSubscription=ke.EMPTY;_offsetX;_offsetY;_position;_scrollStrategyFactory=u(gB);_disposeOnNavigation=!1;_ngZone=u(ae);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;get disposeOnNavigation(){return this._disposeOnNavigation}set disposeOnNavigation(e){this._disposeOnNavigation=e}backdropClick=new U;positionChange=new U;attach=new U;detach=new U;overlayKeydown=new U;overlayOutsideClick=new U;constructor(){let e=u(te),i=u(nt);this._templatePortal=new Cn(e,i),this.scrollStrategy=this._scrollStrategyFactory()}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.width,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=EJ);let e=this._overlayRef=Nr(this._injector,this._buildConfig());this._attachSubscription=e.attachments().subscribe(()=>this.attach.emit()),this._detachSubscription=e.detachments().subscribe(()=>this.detach.emit()),e.keydownEvents().subscribe(i=>{this.overlayKeydown.next(i),i.keyCode===27&&!this.disableClose&&!Ft(i)&&(i.preventDefault(),this.detachOverlay())}),this._overlayRef.outsidePointerEvents().subscribe(i=>{let r=this._getOriginElement(),o=Kn(i);(!r||r!==o&&!r.contains(o))&&this.overlayOutsideClick.next(i)})}_buildConfig(){let e=this._position=this.positionStrategy||this._createPositionStrategy(),i=new Fr({direction:this._dir||"ltr",positionStrategy:e,scrollStrategy:this.scrollStrategy,hasBackdrop:this.hasBackdrop,disposeOnNavigation:this.disposeOnNavigation});return(this.width||this.width===0)&&(i.width=this.width),(this.height||this.height===0)&&(i.height=this.height),(this.minWidth||this.minWidth===0)&&(i.minWidth=this.minWidth),(this.minHeight||this.minHeight===0)&&(i.minHeight=this.minHeight),this.backdropClass&&(i.backdropClass=this.backdropClass),this.panelClass&&(i.panelClass=this.panelClass),i}_updatePositionStrategy(e){let i=this.positions.map(r=>({originX:r.originX,originY:r.originY,overlayX:r.overlayX,overlayY:r.overlayY,offsetX:r.offsetX||this.offsetX,offsetY:r.offsetY||this.offsetY,panelClass:r.panelClass||void 0}));return e.setOrigin(this._getOrigin()).withPositions(i).withFlexibleDimensions(this.flexibleDimensions).withPush(this.push).withGrowAfterOpen(this.growAfterOpen).withViewportMargin(this.viewportMargin).withLockedPosition(this.lockPosition).withTransformOriginOn(this.transformOriginSelector)}_createPositionStrategy(){let e=Fa(this._injector,this._getOrigin());return this._updatePositionStrategy(e),e}_getOrigin(){return this.origin instanceof bh?this.origin.elementRef:this.origin}_getOriginElement(){return this.origin instanceof bh?this.origin.elementRef.nativeElement:this.origin instanceof q?this.origin.nativeElement:typeof Element<"u"&&this.origin instanceof Element?this.origin:null}attachOverlay(){this._overlayRef?this._overlayRef.getConfig().hasBackdrop=this.hasBackdrop:this._createOverlay(),this._overlayRef.hasAttached()||this._overlayRef.attach(this._templatePortal),this.hasBackdrop?this._backdropSubscription=this._overlayRef.backdropClick().subscribe(e=>{this.backdropClick.emit(e)}):this._backdropSubscription.unsubscribe(),this._positionSubscription.unsubscribe(),this.positionChange.observers.length>0&&(this._positionSubscription=this._position.positionChanges.pipe(Xw(()=>this.positionChange.observers.length>0)).subscribe(e=>{this._ngZone.run(()=>this.positionChange.emit(e)),this.positionChange.observers.length===0&&this._positionSubscription.unsubscribe()})),this.open=!0}detachOverlay(){this._overlayRef?.detach(),this._backdropSubscription.unsubscribe(),this._positionSubscription.unsubscribe(),this.open=!1}static \u0275fac=function(i){return new(i||t)};static \u0275dir=F({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",V],lockPosition:[2,"cdkConnectedOverlayLockPosition","lockPosition",V],flexibleDimensions:[2,"cdkConnectedOverlayFlexibleDimensions","flexibleDimensions",V],growAfterOpen:[2,"cdkConnectedOverlayGrowAfterOpen","growAfterOpen",V],push:[2,"cdkConnectedOverlayPush","push",V],disposeOnNavigation:[2,"cdkConnectedOverlayDisposeOnNavigation","disposeOnNavigation",V]},outputs:{backdropClick:"backdropClick",positionChange:"positionChange",attach:"attach",detach:"detach",overlayKeydown:"overlayKeydown",overlayOutsideClick:"overlayOutsideClick"},exportAs:["cdkConnectedOverlay"],features:[Ae]})}return t})();function MJ(t){let n=u(de);return()=>wn(n)}var kJ={provide:gB,useFactory:MJ},er=(()=>{class t{static \u0275fac=function(i){return new(i||t)};static \u0275mod=ee({type:t});static \u0275inj=J({providers:[fB,kJ],imports:[vs,Co,ng,ng]})}return t})();var au=(()=>{class t{_listeners=[];notify(e,i){for(let r of this._listeners)r(e,i)}listen(e){return this._listeners.push(e),()=>{this._listeners=this._listeners.filter(i=>e!==i)}}ngOnDestroy(){this._listeners=[]}static \u0275fac=function(i){return new(i||t)};static \u0275prov=O({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();var su=class{applyChanges(n,e,i,r,o){n.forEachOperation((a,s,l)=>{let c,d;if(a.previousIndex==null){let m=i(a,s,l);c=e.createEmbeddedView(m.templateRef,m.context,m.index),d=cc.INSERTED}else l==null?(e.remove(s),d=cc.REMOVED):(c=e.get(s),e.move(c,l),d=cc.MOVED);o&&o({context:c?.context,operation:d,record:a})})}detach(){}};var sg=class{_multiple;_emitChanges;compareWith;_selection=new Set;_deselectedToEmit=[];_selectedToEmit=[];_selected;get selected(){return this._selected||(this._selected=Array.from(this._selection.values())),this._selected}changed=new z;constructor(n=!1,e,i=!0,r){this._multiple=n,this._emitChanges=i,this.compareWith=r,e&&e.length&&(n?e.forEach(o=>this._markSelected(o)):this._markSelected(e[0]),this._selectedToEmit.length=0)}select(...n){this._verifyValueAssignment(n),n.forEach(i=>this._markSelected(i));let e=this._hasQueuedChanges();return this._emitChangeEvent(),e}deselect(...n){this._verifyValueAssignment(n),n.forEach(i=>this._unmarkSelected(i));let e=this._hasQueuedChanges();return this._emitChangeEvent(),e}setSelection(...n){this._verifyValueAssignment(n);let e=this.selected,i=new Set(n.map(o=>this._getConcreteValue(o)));n.forEach(o=>this._markSelected(o)),e.filter(o=>!i.has(this._getConcreteValue(o,i))).forEach(o=>this._unmarkSelected(o));let r=this._hasQueuedChanges();return this._emitChangeEvent(),r}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 i of e)if(this.compareWith(n,i))return i;return n}else return n}};var EB=(()=>{class t{_renderer;_elementRef;onChange=e=>{};onTouched=()=>{};constructor(e,i){this._renderer=e,this._elementRef=i}setProperty(e,i){this._renderer.setProperty(this._elementRef.nativeElement,e,i)}registerOnTouched(e){this.onTouched=e}registerOnChange(e){this.onChange=e}setDisabledState(e){this.setProperty("disabled",e)}static \u0275fac=function(i){return new(i||t)(_e(je),_e(q))};static \u0275dir=F({type:t})}return t})(),MB=(()=>{class t extends EB{static \u0275fac=(()=>{let e;return function(r){return(e||(e=fe(t)))(r||t)}})();static \u0275dir=F({type:t,features:[le]})}return t})(),tr=new T("");var SJ={provide:tr,useExisting:Kt(()=>Qi),multi:!0};function TJ(){let t=Wo()?Wo().getUserAgent():"";return/android (\d+)/.test(t.toLowerCase())}var IJ=new T(""),Qi=(()=>{class t extends EB{_compositionMode;_composing=!1;constructor(e,i,r){super(e,i),this._compositionMode=r,this._compositionMode==null&&(this._compositionMode=!TJ())}writeValue(e){let i=e??"";this.setProperty("value",i)}_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(i){return new(i||t)(_e(je),_e(q),_e(IJ,8))};static \u0275dir=F({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(i,r){i&1&&S("input",function(a){return r._handleInput(a.target.value)})("blur",function(){return r.onTouched()})("compositionstart",function(){return r._compositionStart()})("compositionend",function(a){return r._compositionEnd(a.target.value)})},standalone:!1,features:[Ce([SJ]),le]})}return t})();function Qk(t){return t==null||Kk(t)===0}function Kk(t){return t==null?null:Array.isArray(t)||typeof t=="string"?t.length:t instanceof Set?t.size:null}var ea=new T(""),fg=new T(""),AJ=/^(?=.{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])?)*$/,Le=class{static min(n){return OJ(n)}static max(n){return RJ(n)}static required(n){return kB(n)}static requiredTrue(n){return PJ(n)}static email(n){return FJ(n)}static minLength(n){return NJ(n)}static maxLength(n){return LJ(n)}static pattern(n){return VJ(n)}static nullValidator(n){return nx()}static compose(n){return RB(n)}static composeAsync(n){return PB(n)}};function OJ(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 kB(t){return Qk(t.value)?{required:!0}:null}function PJ(t){return t.value===!0?null:{required:!0}}function FJ(t){return Qk(t.value)||AJ.test(t.value)?null:{email:!0}}function NJ(t){return n=>{let e=n.value?.length??Kk(n.value);return e===null||e===0?null:e{let e=n.value?.length??Kk(n.value);return e!==null&&e>t?{maxlength:{requiredLength:t,actualLength:e}}:null}}function VJ(t){if(!t)return nx;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),i=>{if(Qk(i.value))return null;let r=i.value;return n.test(r)?null:{pattern:{requiredPattern:e,actualValue:r}}}}function nx(t){return null}function SB(t){return t!=null}function TB(t){return Xs(t)?Ot(t):t}function IB(t){let n={};return t.forEach(e=>{n=e!=null?M(M({},n),e):n}),Object.keys(n).length===0?null:n}function AB(t,n){return n.map(e=>e(t))}function BJ(t){return!t.validate}function OB(t){return t.map(n=>BJ(n)?n:e=>n.validate(e))}function RB(t){if(!t)return null;let n=t.filter(SB);return n.length==0?null:function(e){return IB(AB(e,n))}}function Zk(t){return t!=null?RB(OB(t)):null}function PB(t){if(!t)return null;let n=t.filter(SB);return n.length==0?null:function(e){let i=AB(e,n).map(TB);return Ga(i).pipe(se(IB))}}function Xk(t){return t!=null?PB(OB(t)):null}function bB(t,n){return t===null?[n]:Array.isArray(t)?[...t,n]:[t,n]}function FB(t){return t._rawValidators}function NB(t){return t._rawAsyncValidators}function qk(t){return t?Array.isArray(t)?t:[t]:[]}function rx(t,n){return Array.isArray(t)?t.includes(n):t===n}function vB(t,n){let e=qk(n);return qk(t).forEach(r=>{rx(e,r)||e.push(r)}),e}function yB(t,n){return qk(n).filter(e=>!rx(t,e))}var ox=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=Zk(this._rawValidators)}_setAsyncValidators(n){this._rawAsyncValidators=n||[],this._composedAsyncValidatorFn=Xk(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&&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}},Es=class extends ox{name;get formDirective(){return null}get path(){return null}},Hn=class extends ox{_parent=null;name=null;valueAccessor=null},ax=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}},jJ={"[class.ng-untouched]":"isUntouched","[class.ng-touched]":"isTouched","[class.ng-pristine]":"isPristine","[class.ng-dirty]":"isDirty","[class.ng-valid]":"isValid","[class.ng-invalid]":"isInvalid","[class.ng-pending]":"isPending"},BWe=De(M({},jJ),{"[class.ng-submitted]":"isSubmitted"}),ei=(()=>{class t extends ax{constructor(e){super(e)}static \u0275fac=function(i){return new(i||t)(_e(Hn,2))};static \u0275dir=F({type:t,selectors:[["","formControlName",""],["","ngModel",""],["","formControl",""]],hostVars:14,hostBindings:function(i,r){i&2&&G("ng-untouched",r.isUntouched)("ng-touched",r.isTouched)("ng-pristine",r.isPristine)("ng-dirty",r.isDirty)("ng-valid",r.isValid)("ng-invalid",r.isInvalid)("ng-pending",r.isPending)},standalone:!1,features:[le]})}return t})(),Xr=(()=>{class t extends ax{constructor(e){super(e)}static \u0275fac=function(i){return new(i||t)(_e(Es,10))};static \u0275dir=F({type:t,selectors:[["","formGroupName",""],["","formArrayName",""],["","ngModelGroup",""],["","formGroup",""],["form",3,"ngNoForm",""],["","ngForm",""]],hostVars:16,hostBindings:function(i,r){i&2&&G("ng-untouched",r.isUntouched)("ng-touched",r.isTouched)("ng-pristine",r.isPristine)("ng-dirty",r.isDirty)("ng-valid",r.isValid)("ng-invalid",r.isInvalid)("ng-pending",r.isPending)("ng-submitted",r.isSubmitted)},standalone:!1,features:[le]})}return t})();var lg="VALID",ix="INVALID",vh="PENDING",cg="DISABLED",mc=class{},sx=class extends mc{value;source;constructor(n,e){super(),this.value=n,this.source=e}},ug=class extends mc{pristine;source;constructor(n,e){super(),this.pristine=n,this.source=e}},mg=class extends mc{touched;source;constructor(n,e){super(),this.touched=n,this.source=e}},yh=class extends mc{status;source;constructor(n,e){super(),this.status=n,this.source=e}},lx=class extends mc{source;constructor(n){super(),this.source=n}},hg=class extends mc{source;constructor(n){super(),this.source=n}};function Jk(t){return(hx(t)?t.validators:t)||null}function HJ(t){return Array.isArray(t)?Zk(t):t||null}function eS(t,n){return(hx(n)?n.asyncValidators:t)||null}function zJ(t){return Array.isArray(t)?Xk(t):t||null}function hx(t){return t!=null&&!Array.isArray(t)&&typeof t=="object"}function LB(t,n,e){let i=t.controls;if(!(n?Object.keys(i):i).length)throw new ue(1e3,"");if(!i[e])throw new ue(1001,"")}function VB(t,n,e){t._forEachChild((i,r)=>{if(e[r]===void 0)throw new ue(1002,"")})}var hc=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 Ti(this.statusReactive)}set status(n){Ti(()=>this.statusReactive.set(n))}_status=Zt(()=>this.statusReactive());statusReactive=he(void 0);get valid(){return this.status===lg}get invalid(){return this.status===ix}get pending(){return this.status==vh}get disabled(){return this.status===cg}get enabled(){return this.status!==cg}errors;get pristine(){return Ti(this.pristineReactive)}set pristine(n){Ti(()=>this.pristineReactive.set(n))}_pristine=Zt(()=>this.pristineReactive());pristineReactive=he(!0);get dirty(){return!this.pristine}get touched(){return Ti(this.touchedReactive)}set touched(n){Ti(()=>this.touchedReactive.set(n))}_touched=Zt(()=>this.touchedReactive());touchedReactive=he(!1);get untouched(){return!this.touched}_events=new z;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(vB(n,this._rawValidators))}addAsyncValidators(n){this.setAsyncValidators(vB(n,this._rawAsyncValidators))}removeValidators(n){this.setValidators(yB(n,this._rawValidators))}removeAsyncValidators(n){this.setAsyncValidators(yB(n,this._rawAsyncValidators))}hasValidator(n){return rx(this._rawValidators,n)}hasAsyncValidator(n){return rx(this._rawAsyncValidators,n)}clearValidators(){this.validator=null}clearAsyncValidators(){this.asyncValidator=null}markAsTouched(n={}){let e=this.touched===!1;this.touched=!0;let i=n.sourceControl??this;this._parent&&!n.onlySelf&&this._parent.markAsTouched(De(M({},n),{sourceControl:i})),e&&n.emitEvent!==!1&&this._events.next(new mg(!0,i))}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 i=n.sourceControl??this;this._forEachChild(r=>{r.markAsUntouched({onlySelf:!0,emitEvent:n.emitEvent,sourceControl:i})}),this._parent&&!n.onlySelf&&this._parent._updateTouched(n,i),e&&n.emitEvent!==!1&&this._events.next(new mg(!1,i))}markAsDirty(n={}){let e=this.pristine===!0;this.pristine=!1;let i=n.sourceControl??this;this._parent&&!n.onlySelf&&this._parent.markAsDirty(De(M({},n),{sourceControl:i})),e&&n.emitEvent!==!1&&this._events.next(new ug(!1,i))}markAsPristine(n={}){let e=this.pristine===!1;this.pristine=!0,this._pendingDirty=!1;let i=n.sourceControl??this;this._forEachChild(r=>{r.markAsPristine({onlySelf:!0,emitEvent:n.emitEvent})}),this._parent&&!n.onlySelf&&this._parent._updatePristine(n,i),e&&n.emitEvent!==!1&&this._events.next(new ug(!0,i))}markAsPending(n={}){this.status=vh;let e=n.sourceControl??this;n.emitEvent!==!1&&(this._events.next(new yh(this.status,e)),this.statusChanges.emit(this.status)),this._parent&&!n.onlySelf&&this._parent.markAsPending(De(M({},n),{sourceControl:e}))}disable(n={}){let e=this._parentMarkedDirty(n.onlySelf);this.status=cg,this.errors=null,this._forEachChild(r=>{r.disable(De(M({},n),{onlySelf:!0}))}),this._updateValue();let i=n.sourceControl??this;n.emitEvent!==!1&&(this._events.next(new sx(this.value,i)),this._events.next(new yh(this.status,i)),this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._updateAncestors(De(M({},n),{skipPristineCheck:e}),this),this._onDisabledChange.forEach(r=>r(!0))}enable(n={}){let e=this._parentMarkedDirty(n.onlySelf);this.status=lg,this._forEachChild(i=>{i.enable(De(M({},n),{onlySelf:!0}))}),this.updateValueAndValidity({onlySelf:!0,emitEvent:n.emitEvent}),this._updateAncestors(De(M({},n),{skipPristineCheck:e}),this),this._onDisabledChange.forEach(i=>i(!1))}_updateAncestors(n,e){this._parent&&!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 i=this._cancelExistingSubscription();this.errors=this._runValidator(),this.status=this._calculateStatus(),(this.status===lg||this.status===vh)&&this._runAsyncValidator(i,n.emitEvent)}let e=n.sourceControl??this;n.emitEvent!==!1&&(this._events.next(new sx(this.value,e)),this._events.next(new yh(this.status,e)),this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._parent&&!n.onlySelf&&this._parent.updateValueAndValidity(De(M({},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()?cg:lg}_runValidator(){return this.validator?this.validator(this):null}_runAsyncValidator(n,e){if(this.asyncValidator){this.status=vh,this._hasOwnPendingAsyncValidator={emitEvent:e!==!1,shouldHaveEmitted:n!==!1};let i=TB(this.asyncValidator(this));this._asyncValidationSubscription=i.subscribe(r=>{this._hasOwnPendingAsyncValidator=null,this.setErrors(r,{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((i,r)=>i&&i._find(r),this)}getError(n,e){let i=e?this.get(e):this;return i&&i.errors?i.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,i){this.status=this._calculateStatus(),n&&this.statusChanges.emit(this.status),(n||i)&&this._events.next(new yh(this.status,e)),this._parent&&this._parent._updateControlsErrors(n,e,i)}_initObservables(){this.valueChanges=new U,this.statusChanges=new U}_calculateStatus(){return this._allControlsDisabled()?cg:this.errors?ix:this._hasOwnPendingAsyncValidator||this._anyControlsHaveStatus(vh)?vh:this._anyControlsHaveStatus(ix)?ix:lg}_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 i=!this._anyControlsDirty(),r=this.pristine!==i;this.pristine=i,this._parent&&!n.onlySelf&&this._parent._updatePristine(n,e),r&&this._events.next(new ug(this.pristine,e))}_updateTouched(n={},e){this.touched=this._anyControlsTouched(),this._events.next(new mg(this.touched,e)),this._parent&&!n.onlySelf&&this._parent._updateTouched(n,e)}_onDisabledChange=[];_registerOnCollectionChange(n){this._onCollectionChange=n}_setUpdateStrategy(n){hx(n)&&n.updateOn!=null&&(this._updateOn=n.updateOn)}_parentMarkedDirty(n){let e=this._parent&&this._parent.dirty;return!n&&!!e&&!this._parent._anyControlsDirty()}_find(n){return null}_assignValidators(n){this._rawValidators=Array.isArray(n)?n.slice():n,this._composedValidatorFn=HJ(this._rawValidators)}_assignAsyncValidators(n){this._rawAsyncValidators=Array.isArray(n)?n.slice():n,this._composedAsyncValidatorFn=zJ(this._rawAsyncValidators)}},lu=class extends hc{constructor(n,e,i){super(Jk(e),eS(i,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,i={}){this.registerControl(n,e),this.updateValueAndValidity({emitEvent:i.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,i={}){this.controls[n]&&this.controls[n]._registerOnCollectionChange(()=>{}),delete this.controls[n],e&&this.registerControl(n,e),this.updateValueAndValidity({emitEvent:i.emitEvent}),this._onCollectionChange()}contains(n){return this.controls.hasOwnProperty(n)&&this.controls[n].enabled}setValue(n,e={}){VB(this,!0,n),Object.keys(n).forEach(i=>{LB(this,!0,i),this.controls[i].setValue(n[i],{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e)}patchValue(n,e={}){n!=null&&(Object.keys(n).forEach(i=>{let r=this.controls[i];r&&r.patchValue(n[i],{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e))}reset(n={},e={}){this._forEachChild((i,r)=>{i.reset(n?n[r]:null,{onlySelf:!0,emitEvent:e.emitEvent})}),this._updatePristine(e,this),this._updateTouched(e,this),this.updateValueAndValidity(e),e?.emitEvent!==!1&&this._events.next(new hg(this))}getRawValue(){return this._reduceChildren({},(n,e,i)=>(n[i]=e.getRawValue(),n))}_syncPendingControls(){let n=this._reduceChildren(!1,(e,i)=>i._syncPendingControls()?!0:e);return n&&this.updateValueAndValidity({onlySelf:!0}),n}_forEachChild(n){Object.keys(this.controls).forEach(e=>{let i=this.controls[e];i&&n(i,e)})}_setUpControls(){this._forEachChild(n=>{n.setParent(this),n._registerOnCollectionChange(this._onCollectionChange)})}_updateValue(){this.value=this._reduceValue()}_anyControls(n){for(let[e,i]of Object.entries(this.controls))if(this.contains(e)&&n(i))return!0;return!1}_reduceValue(){let n={};return this._reduceChildren(n,(e,i,r)=>((i.enabled||this.disabled)&&(e[r]=i.value),e))}_reduceChildren(n,e){let i=n;return this._forEachChild((r,o)=>{i=e(i,r,o)}),i}_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 px=lu;var Yk=class extends lu{};var xh=new T("",{providedIn:"root",factory:()=>fx}),fx="always";function BB(t,n){return[...n.path,t]}function pg(t,n,e=fx){tS(t,n),n.valueAccessor.writeValue(t.value),(t.disabled||e==="always")&&n.valueAccessor.setDisabledState?.(t.disabled),$J(t,n),GJ(t,n),WJ(t,n),UJ(t,n)}function cx(t,n,e=!0){let i=()=>{};n.valueAccessor&&(n.valueAccessor.registerOnChange(i),n.valueAccessor.registerOnTouched(i)),ux(t,n),t&&(n._invokeOnDestroyCallbacks(),t._registerOnCollectionChange(()=>{}))}function dx(t,n){t.forEach(e=>{e.registerOnValidatorChange&&e.registerOnValidatorChange(n)})}function UJ(t,n){if(n.valueAccessor.setDisabledState){let e=i=>{n.valueAccessor.setDisabledState(i)};t.registerOnDisabledChange(e),n._registerOnDestroy(()=>{t._unregisterOnDisabledChange(e)})}}function tS(t,n){let e=FB(t);n.validator!==null?t.setValidators(bB(e,n.validator)):typeof e=="function"&&t.setValidators([e]);let i=NB(t);n.asyncValidator!==null?t.setAsyncValidators(bB(i,n.asyncValidator)):typeof i=="function"&&t.setAsyncValidators([i]);let r=()=>t.updateValueAndValidity();dx(n._rawValidators,r),dx(n._rawAsyncValidators,r)}function ux(t,n){let e=!1;if(t!==null){if(n.validator!==null){let r=FB(t);if(Array.isArray(r)&&r.length>0){let o=r.filter(a=>a!==n.validator);o.length!==r.length&&(e=!0,t.setValidators(o))}}if(n.asyncValidator!==null){let r=NB(t);if(Array.isArray(r)&&r.length>0){let o=r.filter(a=>a!==n.asyncValidator);o.length!==r.length&&(e=!0,t.setAsyncValidators(o))}}}let i=()=>{};return dx(n._rawValidators,i),dx(n._rawAsyncValidators,i),e}function $J(t,n){n.valueAccessor.registerOnChange(e=>{t._pendingValue=e,t._pendingChange=!0,t._pendingDirty=!0,t.updateOn==="change"&&jB(t,n)})}function WJ(t,n){n.valueAccessor.registerOnTouched(()=>{t._pendingTouched=!0,t.updateOn==="blur"&&t._pendingChange&&jB(t,n),t.updateOn!=="submit"&&t.markAsTouched()})}function jB(t,n){t._pendingDirty&&t.markAsDirty(),t.setValue(t._pendingValue,{emitModelToViewChange:!1}),n.viewToModelUpdate(t._pendingValue),t._pendingChange=!1}function GJ(t,n){let e=(i,r)=>{n.valueAccessor.writeValue(i),r&&n.viewToModelUpdate(i)};t.registerOnChange(e),n._registerOnDestroy(()=>{t._unregisterOnChange(e)})}function HB(t,n){t==null,tS(t,n)}function qJ(t,n){return ux(t,n)}function iS(t,n){if(!t.hasOwnProperty("model"))return!1;let e=t.model;return e.isFirstChange()?!0:!Object.is(n,e.currentValue)}function YJ(t){return Object.getPrototypeOf(t.constructor)===MB}function zB(t,n){t._syncPendingControls(),n.forEach(e=>{let i=e.control;i.updateOn==="submit"&&i._pendingChange&&(e.viewToModelUpdate(i._pendingValue),i._pendingChange=!1)})}function nS(t,n){if(!n)return null;Array.isArray(n);let e,i,r;return n.forEach(o=>{o.constructor===Qi?e=o:YJ(o)?i=o:r=o}),r||i||e||null}function QJ(t,n){let e=t.indexOf(n);e>-1&&t.splice(e,1)}var KJ={provide:Es,useExisting:Kt(()=>pc)},dg=Promise.resolve(),pc=(()=>{class t extends Es{callSetDisabledState;get submitted(){return Ti(this.submittedReactive)}_submitted=Zt(()=>this.submittedReactive());submittedReactive=he(!1);_directives=new Set;form;ngSubmit=new U;options;constructor(e,i,r){super(),this.callSetDisabledState=r,this.form=new lu({},Zk(e),Xk(i))}ngAfterViewInit(){this._setUpdateStrategy()}get formDirective(){return this}get control(){return this.form}get path(){return[]}get controls(){return this.form.controls}addControl(e){dg.then(()=>{let i=this._findContainer(e.path);e.control=i.registerControl(e.name,e.control),pg(e.control,e,this.callSetDisabledState),e.control.updateValueAndValidity({emitEvent:!1}),this._directives.add(e)})}getControl(e){return this.form.get(e.path)}removeControl(e){dg.then(()=>{let i=this._findContainer(e.path);i&&i.removeControl(e.name),this._directives.delete(e)})}addFormGroup(e){dg.then(()=>{let i=this._findContainer(e.path),r=new lu({});HB(r,e),i.registerControl(e.name,r),r.updateValueAndValidity({emitEvent:!1})})}removeFormGroup(e){dg.then(()=>{let i=this._findContainer(e.path);i&&i.removeControl(e.name)})}getFormGroup(e){return this.form.get(e.path)}updateModel(e,i){dg.then(()=>{this.form.get(e.path).setValue(i)})}setValue(e){this.control.setValue(e)}onSubmit(e){return this.submittedReactive.set(!0),zB(this.form,this._directives),this.ngSubmit.emit(e),this.form._events.next(new lx(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(i){return new(i||t)(_e(ea,10),_e(fg,10),_e(xh,8))};static \u0275dir=F({type:t,selectors:[["form",3,"ngNoForm","",3,"formGroup",""],["ng-form"],["","ngForm",""]],hostBindings:function(i,r){i&1&&S("submit",function(a){return r.onSubmit(a)})("reset",function(){return r.onReset()})},inputs:{options:[0,"ngFormOptions","options"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],standalone:!1,features:[Ce([KJ]),le]})}return t})();function xB(t,n){let e=t.indexOf(n);e>-1&&t.splice(e,1)}function CB(t){return typeof t=="object"&&t!==null&&Object.keys(t).length===2&&"value"in t&&"disabled"in t}var Jo=class extends hc{defaultValue=null;_onChange=[];_pendingValue;_pendingChange=!1;constructor(n=null,e,i){super(Jk(e),eS(i,e)),this._applyFormState(n),this._setUpdateStrategy(e),this._initObservables(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator}),hx(e)&&(e.nonNullable||e.initialValueIsDefault)&&(CB(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(i=>i(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),this._pendingChange=!1,e?.emitEvent!==!1&&this._events.next(new hg(this))}_updateValue(){}_anyControls(n){return!1}_allControlsDisabled(){return this.disabled}registerOnChange(n){this._onChange.push(n)}_unregisterOnChange(n){xB(this._onChange,n)}registerOnDisabledChange(n){this._onDisabledChange.push(n)}_unregisterOnDisabledChange(n){xB(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){CB(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}},UB=Jo,ZJ=t=>t instanceof Jo;var XJ={provide:Hn,useExisting:Kt(()=>gg)},wB=Promise.resolve(),gg=(()=>{class t extends Hn{_changeDetectorRef;callSetDisabledState;control=new Jo;static ngAcceptInputType_isDisabled;_registered=!1;viewModel;name="";isDisabled;model;options;update=new U;constructor(e,i,r,o,a,s){super(),this._changeDetectorRef=a,this.callSetDisabledState=s,this._parent=e,this._setValidators(i),this._setAsyncValidators(r),this.valueAccessor=nS(this,o)}ngOnChanges(e){if(this._checkForErrors(),!this._registered||"name"in e){if(this._registered&&(this._checkName(),this.formDirective)){let i=e.name.previousValue;this.formDirective.removeControl({name:i,path:this._getPath(i)})}this._setUpControl()}"isDisabled"in e&&this._updateDisabled(e),iS(e,this.viewModel)&&(this._updateValue(this.model),this.viewModel=this.model)}ngOnDestroy(){this.formDirective&&this.formDirective.removeControl(this)}get path(){return this._getPath(this.name)}get formDirective(){return this._parent?this._parent.formDirective:null}viewToModelUpdate(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(){pg(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){wB.then(()=>{this.control.setValue(e,{emitViewToModelChange:!1}),this._changeDetectorRef?.markForCheck()})}_updateDisabled(e){let i=e.isDisabled.currentValue,r=i!==0&&V(i);wB.then(()=>{r&&!this.control.disabled?this.control.disable():!r&&this.control.disabled&&this.control.enable(),this._changeDetectorRef?.markForCheck()})}_getPath(e){return this._parent?BB(e,this._parent):[e]}static \u0275fac=function(i){return new(i||t)(_e(Es,9),_e(ea,10),_e(fg,10),_e(tr,10),_e(ye,8),_e(xh,8))};static \u0275dir=F({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:[Ce([XJ]),le,Ae]})}return t})();var Jr=(()=>{class t{static \u0275fac=function(i){return new(i||t)};static \u0275dir=F({type:t,selectors:[["form",3,"ngNoForm","",3,"ngNativeValidate",""]],hostAttrs:["novalidate",""],standalone:!1})}return t})(),JJ={provide:tr,useExisting:Kt(()=>cu),multi:!0},cu=(()=>{class t extends MB{writeValue(e){let i=e??"";this.setProperty("value",i)}registerOnChange(e){this.onChange=i=>{e(i==""?null:parseFloat(i))}}static \u0275fac=(()=>{let e;return function(r){return(e||(e=fe(t)))(r||t)}})();static \u0275dir=F({type:t,selectors:[["input","type","number","formControlName",""],["input","type","number","formControl",""],["input","type","number","ngModel",""]],hostBindings:function(i,r){i&1&&S("input",function(a){return r.onChange(a.target.value)})("blur",function(){return r.onTouched()})},standalone:!1,features:[Ce([JJ]),le]})}return t})();var rS=new T(""),eee={provide:Hn,useExisting:Kt(()=>wo)},wo=(()=>{class t extends Hn{_ngModelWarningConfig;callSetDisabledState;viewModel;form;set isDisabled(e){}model;update=new U;static _ngModelWarningSentOnce=!1;_ngModelWarningSent=!1;constructor(e,i,r,o,a){super(),this._ngModelWarningConfig=o,this.callSetDisabledState=a,this._setValidators(e),this._setAsyncValidators(i),this.valueAccessor=nS(this,r)}ngOnChanges(e){if(this._isControlChanged(e)){let i=e.form.previousValue;i&&cx(i,this,!1),pg(this.form,this,this.callSetDisabledState),this.form.updateValueAndValidity({emitEvent:!1})}iS(e,this.viewModel)&&(this.form.setValue(this.model),this.viewModel=this.model)}ngOnDestroy(){this.form&&cx(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(i){return new(i||t)(_e(ea,10),_e(fg,10),_e(tr,10),_e(rS,8),_e(xh,8))};static \u0275dir=F({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:[Ce([eee]),le,Ae]})}return t})(),tee={provide:Es,useExisting:Kt(()=>Ki)},Ki=(()=>{class t extends Es{callSetDisabledState;get submitted(){return Ti(this._submittedReactive)}set submitted(e){this._submittedReactive.set(e)}_submitted=Zt(()=>this._submittedReactive());_submittedReactive=he(!1);_oldForm;_onCollectionChange=()=>this._updateDomValue();directives=[];form=null;ngSubmit=new U;constructor(e,i,r){super(),this.callSetDisabledState=r,this._setValidators(e),this._setAsyncValidators(i)}ngOnChanges(e){e.hasOwnProperty("form")&&(this._updateValidators(),this._updateDomValue(),this._updateRegistrations(),this._oldForm=this.form)}ngOnDestroy(){this.form&&(ux(this.form,this),this.form._onCollectionChange===this._onCollectionChange&&this.form._registerOnCollectionChange(()=>{}))}get formDirective(){return this}get control(){return this.form}get path(){return[]}addControl(e){let i=this.form.get(e.path);return pg(i,e,this.callSetDisabledState),i.updateValueAndValidity({emitEvent:!1}),this.directives.push(e),i}getControl(e){return this.form.get(e.path)}removeControl(e){cx(e.control||null,e,!1),QJ(this.directives,e)}addFormGroup(e){this._setUpFormContainer(e)}removeFormGroup(e){this._cleanUpFormContainer(e)}getFormGroup(e){return this.form.get(e.path)}addFormArray(e){this._setUpFormContainer(e)}removeFormArray(e){this._cleanUpFormContainer(e)}getFormArray(e){return this.form.get(e.path)}updateModel(e,i){this.form.get(e.path).setValue(i)}onSubmit(e){return this._submittedReactive.set(!0),zB(this.form,this.directives),this.ngSubmit.emit(e),this.form._events.next(new lx(this.control)),e?.target?.method==="dialog"}onReset(){this.resetForm()}resetForm(e=void 0,i={}){this.form.reset(e,i),this._submittedReactive.set(!1)}_updateDomValue(){this.directives.forEach(e=>{let i=e.control,r=this.form.get(e.path);i!==r&&(cx(i||null,e),ZJ(r)&&(pg(r,e,this.callSetDisabledState),e.control=r))}),this.form._updateTreeValidity({emitEvent:!1})}_setUpFormContainer(e){let i=this.form.get(e.path);HB(i,e),i.updateValueAndValidity({emitEvent:!1})}_cleanUpFormContainer(e){if(this.form){let i=this.form.get(e.path);i&&qJ(i,e)&&i.updateValueAndValidity({emitEvent:!1})}}_updateRegistrations(){this.form._registerOnCollectionChange(this._onCollectionChange),this._oldForm&&this._oldForm._registerOnCollectionChange(()=>{})}_updateValidators(){tS(this.form,this),this._oldForm&&ux(this._oldForm,this)}static \u0275fac=function(i){return new(i||t)(_e(ea,10),_e(fg,10),_e(xh,8))};static \u0275dir=F({type:t,selectors:[["","formGroup",""]],hostBindings:function(i,r){i&1&&S("submit",function(a){return r.onSubmit(a)})("reset",function(){return r.onReset()})},inputs:{form:[0,"formGroup","form"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],standalone:!1,features:[Ce([tee]),le,Ae]})}return t})();var iee={provide:Hn,useExisting:Kt(()=>Lr)},Lr=(()=>{class t extends Hn{_ngModelWarningConfig;_added=!1;viewModel;control;name=null;set isDisabled(e){}model;update=new U;static _ngModelWarningSentOnce=!1;_ngModelWarningSent=!1;constructor(e,i,r,o,a){super(),this._ngModelWarningConfig=a,this._parent=e,this._setValidators(i),this._setAsyncValidators(r),this.valueAccessor=nS(this,o)}ngOnChanges(e){this._added||this._setUpControl(),iS(e,this.viewModel)&&(this.viewModel=this.model,this.formDirective.updateModel(this,this.model))}ngOnDestroy(){this.formDirective&&this.formDirective.removeControl(this)}viewToModelUpdate(e){this.viewModel=e,this.update.emit(e)}get path(){return BB(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(i){return new(i||t)(_e(Es,13),_e(ea,10),_e(fg,10),_e(tr,10),_e(rS,8))};static \u0275dir=F({type:t,selectors:[["","formControlName",""]],inputs:{name:[0,"formControlName","name"],isDisabled:[0,"disabled","isDisabled"],model:[0,"ngModel","model"]},outputs:{update:"ngModelChange"},standalone:!1,features:[Ce([iee]),le,Ae]})}return t})();var nee=(()=>{class t{_validator=nx;_onChange;_enabled;ngOnChanges(e){if(this.inputName in e){let i=this.normalizeInput(e[this.inputName].currentValue);this._enabled=this.enabled(i),this._validator=this._enabled?this.createValidator(i):nx,this._onChange&&this._onChange()}}validate(e){return this._validator(e)}registerOnValidatorChange(e){this._onChange=e}enabled(e){return e!=null}static \u0275fac=function(i){return new(i||t)};static \u0275dir=F({type:t,features:[Ae]})}return t})();var ree={provide:ea,useExisting:Kt(()=>Do),multi:!0};var Do=(()=>{class t extends nee{required;inputName="required";normalizeInput=V;createValidator=e=>kB;enabled(e){return e}static \u0275fac=(()=>{let e;return function(r){return(e||(e=fe(t)))(r||t)}})();static \u0275dir=F({type:t,selectors:[["","required","","formControlName","",3,"type","checkbox"],["","required","","formControl","",3,"type","checkbox"],["","required","","ngModel","",3,"type","checkbox"]],hostVars:1,hostBindings:function(i,r){i&2&&X("required",r._enabled?"":null)},inputs:{required:"required"},standalone:!1,features:[Ce([ree]),le]})}return t})();var $B=(()=>{class t{static \u0275fac=function(i){return new(i||t)};static \u0275mod=ee({type:t});static \u0275inj=J({})}return t})(),mx=class extends hc{constructor(n,e,i){super(Jk(e),eS(i,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(i=>{this.controls.push(i),this._registerControl(i)}):(this.controls.push(n),this._registerControl(n)),this.updateValueAndValidity({emitEvent:e.emitEvent}),this._onCollectionChange()}insert(n,e,i={}){this.controls.splice(n,0,e),this._registerControl(e),this.updateValueAndValidity({emitEvent:i.emitEvent})}removeAt(n,e={}){let i=this._adjustIndex(n);i<0&&(i=0),this.controls[i]&&this.controls[i]._registerOnCollectionChange(()=>{}),this.controls.splice(i,1),this.updateValueAndValidity({emitEvent:e.emitEvent})}setControl(n,e,i={}){let r=this._adjustIndex(n);r<0&&(r=0),this.controls[r]&&this.controls[r]._registerOnCollectionChange(()=>{}),this.controls.splice(r,1),e&&(this.controls.splice(r,0,e),this._registerControl(e)),this.updateValueAndValidity({emitEvent:i.emitEvent}),this._onCollectionChange()}get length(){return this.controls.length}setValue(n,e={}){VB(this,!1,n),n.forEach((i,r)=>{LB(this,!1,r),this.at(r).setValue(i,{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e)}patchValue(n,e={}){n!=null&&(n.forEach((i,r)=>{this.at(r)&&this.at(r).patchValue(i,{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e))}reset(n=[],e={}){this._forEachChild((i,r)=>{i.reset(n[r],{onlySelf:!0,emitEvent:e.emitEvent})}),this._updatePristine(e,this),this._updateTouched(e,this),this.updateValueAndValidity(e),e?.emitEvent!==!1&&this._events.next(new hg(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,i)=>i._syncPendingControls()?!0:e,!1);return n&&this.updateValueAndValidity({onlySelf:!0}),n}_forEachChild(n){this.controls.forEach((e,i)=>{n(e,i)})}_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}},oS=mx;function DB(t){return!!t&&(t.asyncValidators!==void 0||t.validators!==void 0||t.updateOn!==void 0)}var eo=(()=>{class t{useNonNullable=!1;get nonNullable(){let e=new t;return e.useNonNullable=!0,e}group(e,i=null){let r=this._reduceControls(e),o={};return DB(i)?o=i:i!==null&&(o.validators=i.validator,o.asyncValidators=i.asyncValidator),new lu(r,o)}record(e,i=null){let r=this._reduceControls(e);return new Yk(r,i)}control(e,i,r){let o={};return this.useNonNullable?(DB(i)?o=i:(o.validators=i,o.asyncValidators=r),new Jo(e,De(M({},o),{nonNullable:!0}))):new Jo(e,i,r)}array(e,i,r){let o=e.map(a=>this._createControl(a));return new mx(o,i,r)}_reduceControls(e){let i={};return Object.keys(e).forEach(r=>{i[r]=this._createControl(e[r])}),i}_createControl(e){if(e instanceof Jo)return e;if(e instanceof hc)return e;if(Array.isArray(e)){let i=e[0],r=e.length>1?e[1]:null,o=e.length>2?e[2]:null;return this.control(i,r,o)}else return this.control(e)}static \u0275fac=function(i){return new(i||t)};static \u0275prov=O({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();var du=(()=>{class t{static withConfig(e){return{ngModule:t,providers:[{provide:xh,useValue:e.callSetDisabledState??fx}]}}static \u0275fac=function(i){return new(i||t)};static \u0275mod=ee({type:t});static \u0275inj=J({imports:[$B]})}return t})(),zn=(()=>{class t{static withConfig(e){return{ngModule:t,providers:[{provide:rS,useValue:e.warnOnNgModelWithFormControl??"always"},{provide:xh,useValue:e.callSetDisabledState??fx}]}}static \u0275fac=function(i){return new(i||t)};static \u0275mod=ee({type:t});static \u0275inj=J({imports:[$B]})}return t})();var $i=(()=>{class t{static \u0275fac=function(i){return new(i||t)};static \u0275mod=ee({type:t});static \u0275inj=J({imports:[we,Ym,Oi,we]})}return t})();var oee=["trigger"],aee=["panel"],see=[[["mat-select-trigger"]],"*"],lee=["mat-select-trigger","*"];function cee(t,n){if(t&1&&(h(0,"span",4),_(1),p()),t&2){let e=C();g(),H(e.placeholder)}}function dee(t,n){t&1&&oe(0)}function uee(t,n){if(t&1&&(h(0,"span",11),_(1),p()),t&2){let e=C(2);g(),H(e.triggerValue)}}function mee(t,n){if(t&1&&(h(0,"span",5),N(1,dee,1,0)(2,uee,2,1,"span",11),p()),t&2){let e=C();g(),L(e.customTrigger?1:2)}}function hee(t,n){if(t&1){let e=Y();h(0,"div",12,1),S("keydown",function(r){I(e);let o=C();return A(o._handleKeydown(r))}),oe(2,1),p()}if(t&2){let e=C();it($o("mat-mdc-select-panel mdc-menu-surface mdc-menu-surface--open ",e._getPanelTheme())),G("mat-select-panel-animations-enabled",!e._animationsDisabled),y("ngClass",e.panelClass),X("id",e.id+"-panel")("aria-multiselectable",e.multiple)("aria-label",e.ariaLabel||null)("aria-labelledby",e._getPanelAriaLabelledby())}}var aS=new T("mat-select-scroll-strategy",{providedIn:"root",factory:()=>{let t=u(de);return()=>wn(t)}});function WB(t){let n=u(de);return()=>wn(n)}var GB=new T("MAT_SELECT_CONFIG"),qB={provide:aS,deps:[],useFactory:WB},YB=new T("MatSelectTrigger"),gx=class{source;value;constructor(n,e){this.source=n,this.value=e}},Na=(()=>{class t{_viewportRuler=u(Xn);_changeDetectorRef=u(ye);_elementRef=u(q);_dir=u(Vt,{optional:!0});_idGenerator=u(Ze);_renderer=u(je);_parentFormField=u(Xo,{optional:!0});ngControl=u(Hn,{self:!0,optional:!0});_liveAnnouncer=u(Gf);_defaultOptions=u(GB,{optional:!0});_animationsDisabled=Ye();_initialized=new z;_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 i=this.options.toArray()[e];if(i){let r=this.panel.nativeElement,o=Qf(e,this.options,this.optionGroups),a=i._getHostElement();e===0&&o===1?r.scrollTop=0:r.scrollTop=Kf(a.offsetTop,a.offsetHeight,r.scrollTop,r.offsetHeight)}}_positioningSettled(){this._scrollOptionIntoView(this._keyManager.activeItemIndex||0)}_getChangeEvent(e){return new gx(this,e)}_scrollStrategyFactory=u(aS);_panelOpen=!1;_compareWith=(e,i)=>e===i;_uid=this._idGenerator.getId("mat-select-");_triggerAriaLabelledBy=null;_previousControl;_destroy=new z;_errorStateTracker;stateChanges=new z;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=he(!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(Le.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=kn(()=>{let e=this.options;return e?e.changes.pipe(He(e),$e(()=>Je(...e.map(i=>i.onSelectionChange)))):this._initialized.pipe($e(()=>this.optionSelectionChanges))});openedChange=new U;_openedStream=this.openedChange.pipe(ce(e=>e),se(()=>{}));_closedStream=this.openedChange.pipe(ce(e=>!e),se(()=>{}));selectionChange=new U;valueChange=new U;constructor(){let e=u(dl),i=u(pc,{optional:!0}),r=u(Ki,{optional:!0}),o=u(new Ii("tabindex"),{optional:!0});this.ngControl&&(this.ngControl.valueAccessor=this),this._defaultOptions?.typeaheadDebounceInterval!=null&&(this.typeaheadDebounceInterval=this._defaultOptions.typeaheadDebounceInterval),this._errorStateTracker=new cl(e,this.ngControl,r,i,this.stateChanges),this._scrollStrategy=this._scrollStrategyFactory(),this.tabIndex=o==null?0:parseInt(o)||0,this.id=this.id}ngOnInit(){this._selectionModel=new sg(this.multiple),this.stateChanges.next(),this._viewportRuler.change().pipe(Te(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(Te(this._destroy)).subscribe(e=>{e.added.forEach(i=>i.select()),e.removed.forEach(i=>i.deselect())}),this.options.changes.pipe(He(null),Te(this._destroy)).subscribe(()=>{this._resetOptions(),this._initializeSelection()})}ngDoCheck(){let e=this._getTriggerAriaLabelledby(),i=this.ngControl;if(e!==this._triggerAriaLabelledBy){let r=this._elementRef.nativeElement;this._triggerAriaLabelledBy=e,e?r.setAttribute("aria-labelledby",e):r.removeAttribute("aria-labelledby")}i&&(this._previousControl!==i.control&&(this._previousControl!==void 0&&i.disabled!==null&&i.disabled!==this.disabled&&(this.disabled=i.disabled),this._previousControl=i.control),this.updateErrorState())}ngOnChanges(e){(e.disabled||e.userAriaDescribedBy)&&this.stateChanges.next(),e.typeaheadDebounceInterval&&this._keyManager&&this._keyManager.withTypeAhead(this.typeaheadDebounceInterval)}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(lt(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 i=`${this.id}-panel`;this._trackedModal&&sc(this._trackedModal,"aria-owns",i),Zm(e,"aria-owns",i),this._trackedModal=e}_clearFromModal(){if(!this._trackedModal)return;let e=`${this.id}-panel`;sc(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=()=>{i(),clearTimeout(r),this._cleanupDetach=void 0};let e=this.panel.nativeElement,i=this._renderer.listen(e,"animationend",o=>{o.animationName==="_mat-select-exit"&&(this._cleanupDetach?.(),this._detachOverlay())}),r=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(i=>i.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 i=e.keyCode,r=i===40||i===38||i===37||i===39,o=i===13||i===32,a=this._keyManager;if(!a.isTyping()&&o&&!Ft(e)||(this.multiple||e.altKey)&&r)e.preventDefault(),this.open();else if(!this.multiple){let s=this.selected;a.onKeydown(e);let l=this.selected;l&&s!==l&&this._liveAnnouncer.announce(l.viewValue,1e4)}}_handleOpenKeydown(e){let i=this._keyManager,r=e.keyCode,o=r===40||r===38,a=i.isTyping();if(o&&e.altKey)e.preventDefault(),this.close();else if(!a&&(r===13||r===32)&&i.activeItem&&!Ft(e))e.preventDefault(),i.activeItem._selectViaInteraction();else if(!a&&this._multiple&&r===65&&e.ctrlKey){e.preventDefault();let s=this.options.some(l=>!l.disabled&&!l.selected);this.options.forEach(l=>{l.disabled||(s?l.select():l.deselect())})}else{let s=i.activeItemIndex;i.onKeydown(e),this._multiple&&o&&e.shiftKey&&i.activeItem&&i.activeItemIndex!==s&&i.activeItem._selectViaInteraction()}}_handleOverlayKeydown(e){e.keyCode===27&&!Ft(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())}_getPanelTheme(){return this._parentFormField?`mat-${this._parentFormField.color}`:""}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(i=>i.setInactiveStyles()),this._selectionModel.clear(),this.multiple&&e)Array.isArray(e),e.forEach(i=>this._selectOptionByValue(i)),this._sortValues();else{let i=this._selectOptionByValue(e);i?this._keyManager.updateActiveItem(i):this.panelOpen||this._keyManager.updateActiveItem(-1)}this._changeDetectorRef.markForCheck()}_selectOptionByValue(e){let i=this.options.find(r=>{if(this._selectionModel.isSelected(r))return!1;try{return(r.value!=null||this.canSelectNullableOptions)&&this._compareWith(r.value,e)}catch{return!1}});return i&&this._selectionModel.select(i),i}_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 bh?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 qd(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=Je(this.options.changes,this._destroy);this.optionSelectionChanges.pipe(Te(e)).subscribe(i=>{this._onSelect(i.source,i.isUserInput),i.isUserInput&&!this.multiple&&this._panelOpen&&(this.close(),this.focus())}),Je(...this.options.map(i=>i._stateChanges)).pipe(Te(e)).subscribe(()=>{this._changeDetectorRef.detectChanges(),this.stateChanges.next()})}_onSelect(e,i){let r=this._selectionModel.isSelected(e);!this.canSelectNullableOptions&&e.value==null&&!this._multiple?(e.deselect(),this._selectionModel.clear(),this.value!=null&&this._propagateChanges(e.value)):(r!==e.selected&&(e.selected?this._selectionModel.select(e):this._selectionModel.deselect(e)),i&&this._keyManager.setActiveItem(e),this.multiple&&(this._sortValues(),i&&this.focus())),r!==this._selectionModel.isSelected(e)&&this._propagateChanges(),this.stateChanges.next()}_sortValues(){if(this.multiple){let e=this.options.toArray();this._selectionModel.sort((i,r)=>this.sortComparator?this.sortComparator(i,r,e):e.indexOf(i)-e.indexOf(r)),this.stateChanges.next()}}_propagateChanges(e){let i;this.multiple?i=this.selected.map(r=>r.value):i=this.selected?this.selected.value:e,this._value=i,this.valueChange.emit(i),this._onChange(i),this.selectionChange.emit(this._getChangeEvent(i)),this._changeDetectorRef.markForCheck()}_highlightCorrectOption(){if(this._keyManager)if(this.empty){let e=-1;for(let i=0;i0&&!!this._overlayDir}focus(e){this._elementRef.nativeElement.focus(e)}_getPanelAriaLabelledby(){if(this.ariaLabel)return null;let e=this._parentFormField?.getLabelId()||null,i=e?e+" ":"";return this.ariaLabelledby?i+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){e.length?this._elementRef.nativeElement.setAttribute("aria-describedby",e.join(" ")):this._elementRef.nativeElement.removeAttribute("aria-describedby")}onContainerClick(){this.focus(),this.open()}get shouldLabelFloat(){return this.panelOpen||!this.empty||this.focused&&!!this.placeholder}static \u0275fac=function(i){return new(i||t)};static \u0275cmp=E({type:t,selectors:[["mat-select"]],contentQueries:function(i,r,o){if(i&1&&(xe(o,YB,5),xe(o,xn,5),xe(o,Zd,5)),i&2){let a;B(a=j())&&(r.customTrigger=a.first),B(a=j())&&(r.options=a),B(a=j())&&(r.optionGroups=a)}},viewQuery:function(i,r){if(i&1&&(ie(oee,5),ie(aee,5),ie(tx,5)),i&2){let o;B(o=j())&&(r.trigger=o.first),B(o=j())&&(r.panel=o.first),B(o=j())&&(r._overlayDir=o.first)}},hostAttrs:["role","combobox","aria-haspopup","listbox",1,"mat-mdc-select"],hostVars:21,hostBindings:function(i,r){i&1&&S("keydown",function(a){return r._handleKeydown(a)})("focus",function(){return r._onFocus()})("blur",function(){return r._onBlur()}),i&2&&(X("id",r.id)("tabindex",r.disabled?-1:r.tabIndex)("aria-controls",r.panelOpen?r.id+"-panel":null)("aria-expanded",r.panelOpen)("aria-label",r.ariaLabel||null)("aria-required",r.required.toString())("aria-disabled",r.disabled.toString())("aria-invalid",r.errorState)("aria-activedescendant",r._getAriaActiveDescendant()),G("mat-mdc-select-disabled",r.disabled)("mat-mdc-select-invalid",r.errorState)("mat-mdc-select-required",r.required)("mat-mdc-select-empty",r.empty)("mat-mdc-select-multiple",r.multiple)("mat-select-open",r.panelOpen))},inputs:{userAriaDescribedBy:[0,"aria-describedby","userAriaDescribedBy"],panelClass:"panelClass",disabled:[2,"disabled","disabled",V],disableRipple:[2,"disableRipple","disableRipple",V],tabIndex:[2,"tabIndex","tabIndex",e=>e==null?0:ct(e)],hideSingleSelectionIndicator:[2,"hideSingleSelectionIndicator","hideSingleSelectionIndicator",V],placeholder:"placeholder",required:[2,"required","required",V],multiple:[2,"multiple","multiple",V],disableOptionCentering:[2,"disableOptionCentering","disableOptionCentering",V],compareWith:"compareWith",value:"value",ariaLabel:[0,"aria-label","ariaLabel"],ariaLabelledby:[0,"aria-labelledby","ariaLabelledby"],errorStateMatcher:"errorStateMatcher",typeaheadDebounceInterval:[2,"typeaheadDebounceInterval","typeaheadDebounceInterval",ct],sortComparator:"sortComparator",id:"id",panelWidth:"panelWidth",canSelectNullableOptions:[2,"canSelectNullableOptions","canSelectNullableOptions",V]},outputs:{openedChange:"openedChange",_openedStream:"opened",_closedStream:"closed",selectionChange:"selectionChange",valueChange:"valueChange"},exportAs:["matSelect"],features:[Ce([{provide:Ra,useExisting:t},{provide:Kd,useExisting:t}]),Ae],ngContentSelectors:lee,decls:11,vars:9,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","","cdkConnectedOverlayLockPosition","","cdkConnectedOverlayHasBackdrop","","cdkConnectedOverlayBackdropClass","cdk-overlay-transparent-backdrop",3,"detach","backdropClick","overlayKeydown","cdkConnectedOverlayDisableClose","cdkConnectedOverlayPanelClass","cdkConnectedOverlayScrollStrategy","cdkConnectedOverlayOrigin","cdkConnectedOverlayPositions","cdkConnectedOverlayWidth","cdkConnectedOverlayFlexibleDimensions"],[1,"mat-mdc-select-min-line"],["role","listbox","tabindex","-1",3,"keydown","ngClass"]],template:function(i,r){if(i&1){let o=Y();Me(see),h(0,"div",2,0),S("click",function(){return I(o),A(r.open())}),h(3,"div",3),N(4,cee,2,1,"span",4)(5,mee,3,1,"span",5),p(),h(6,"div",6)(7,"div",7),Gt(),h(8,"svg",8),k(9,"path",9),p()()()(),R(10,hee,3,10,"ng-template",10),S("detach",function(){return I(o),A(r.close())})("backdropClick",function(){return I(o),A(r.close())})("overlayKeydown",function(s){return I(o),A(r._handleOverlayKeydown(s))})}if(i&2){let o=Se(1);g(3),X("id",r._valueId),g(),L(r.empty?4:5),g(6),y("cdkConnectedOverlayDisableClose",!0)("cdkConnectedOverlayPanelClass",r._overlayPanelClass)("cdkConnectedOverlayScrollStrategy",r._scrollStrategy)("cdkConnectedOverlayOrigin",r._preferredOverlayOrigin||o)("cdkConnectedOverlayPositions",r._positions)("cdkConnectedOverlayWidth",r._overlayWidth)("cdkConnectedOverlayFlexibleDimensions",!0)}},dependencies:[bh,tx,Pd],styles:[`@keyframes _mat-select-enter{from{opacity:0;transform:scaleY(0.8)}to{opacity:1;transform:none}}@keyframes _mat-select-exit{from{opacity:1}to{opacity:0}}.mat-mdc-select{display:inline-block;width:100%;outline:none;-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;color:var(--mat-select-enabled-trigger-text-color, var(--mat-sys-on-surface));font-family:var(--mat-select-trigger-text-font, var(--mat-sys-body-large-font));line-height:var(--mat-select-trigger-text-line-height, var(--mat-sys-body-large-line-height));font-size:var(--mat-select-trigger-text-size, var(--mat-sys-body-large-size));font-weight:var(--mat-select-trigger-text-weight, var(--mat-sys-body-large-weight));letter-spacing:var(--mat-select-trigger-text-tracking, var(--mat-sys-body-large-tracking))}div.mat-mdc-select-panel{box-shadow:var(--mat-select-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-mdc-select-disabled{color:var(--mat-select-disabled-trigger-text-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent))}.mat-mdc-select-disabled .mat-mdc-select-placeholder{color:var(--mat-select-disabled-trigger-text-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent))}.mat-mdc-select-trigger{display:inline-flex;align-items:center;cursor:pointer;position:relative;box-sizing:border-box;width:100%}.mat-mdc-select-disabled .mat-mdc-select-trigger{-webkit-user-select:none;user-select:none;cursor:default}.mat-mdc-select-value{width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.mat-mdc-select-value-text{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.mat-mdc-select-arrow-wrapper{height:24px;flex-shrink:0;display:inline-flex;align-items:center}.mat-form-field-appearance-fill .mdc-text-field--no-label .mat-mdc-select-arrow-wrapper{transform:none}.mat-mdc-form-field .mat-mdc-select.mat-mdc-select-invalid .mat-mdc-select-arrow,.mat-form-field-invalid:not(.mat-form-field-disabled) .mat-mdc-form-field-infix::after{color:var(--mat-select-invalid-arrow-color, var(--mat-sys-error))}.mat-mdc-select-arrow{width:10px;height:5px;position:relative;color:var(--mat-select-enabled-arrow-color, var(--mat-sys-on-surface-variant))}.mat-mdc-form-field.mat-focused .mat-mdc-select-arrow{color:var(--mat-select-focused-arrow-color, var(--mat-sys-primary))}.mat-mdc-form-field .mat-mdc-select.mat-mdc-select-disabled .mat-mdc-select-arrow{color:var(--mat-select-disabled-arrow-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent))}.mat-select-open .mat-mdc-select-arrow{transform:rotate(180deg)}.mat-form-field-animations-enabled .mat-mdc-select-arrow{transition:transform 80ms linear}.mat-mdc-select-arrow svg{fill:currentColor;position:absolute;top:50%;left:50%;transform:translate(-50%, -50%)}@media(forced-colors: active){.mat-mdc-select-arrow svg{fill:CanvasText}.mat-mdc-select-disabled .mat-mdc-select-arrow svg{fill:GrayText}}div.mat-mdc-select-panel{width:100%;max-height:275px;outline:0;overflow:auto;padding:8px 0;border-radius:4px;box-sizing:border-box;position:relative;background-color:var(--mat-select-panel-background-color, var(--mat-sys-surface-container))}@media(forced-colors: active){div.mat-mdc-select-panel{outline:solid 1px}}.cdk-overlay-pane:not(.mat-mdc-select-panel-above) div.mat-mdc-select-panel{border-top-left-radius:0;border-top-right-radius:0;transform-origin:top center}.mat-mdc-select-panel-above div.mat-mdc-select-panel{border-bottom-left-radius:0;border-bottom-right-radius:0;transform-origin:bottom center}.mat-select-panel-animations-enabled{animation:_mat-select-enter 120ms cubic-bezier(0, 0, 0.2, 1)}.mat-select-panel-animations-enabled.mat-select-panel-exit{animation:_mat-select-exit 100ms linear}.mat-mdc-select-placeholder{transition:color 400ms 133.3333333333ms cubic-bezier(0.25, 0.8, 0.25, 1);color:var(--mat-select-placeholder-text-color, var(--mat-sys-on-surface-variant))}.mat-mdc-form-field:not(.mat-form-field-animations-enabled) .mat-mdc-select-placeholder,._mat-animation-noopable .mat-mdc-select-placeholder{transition:none}.mat-form-field-hide-placeholder .mat-mdc-select-placeholder{color:rgba(0,0,0,0);-webkit-text-fill-color:rgba(0,0,0,0);transition:none;display:block}.mat-mdc-form-field-type-mat-select:not(.mat-form-field-disabled) .mat-mdc-text-field-wrapper{cursor:pointer}.mat-mdc-form-field-type-mat-select.mat-form-field-appearance-fill .mat-mdc-floating-label{max-width:calc(100% - 18px)}.mat-mdc-form-field-type-mat-select.mat-form-field-appearance-fill .mdc-floating-label--float-above{max-width:calc(100%/0.75 - 24px)}.mat-mdc-form-field-type-mat-select.mat-form-field-appearance-outline .mdc-notched-outline__notch{max-width:calc(100% - 60px)}.mat-mdc-form-field-type-mat-select.mat-form-field-appearance-outline .mdc-text-field--label-floating .mdc-notched-outline__notch{max-width:calc(100% - 24px)}.mat-mdc-select-min-line:empty::before{content:" ";white-space:pre;width:1px;display:inline-block;visibility:hidden}.mat-form-field-appearance-fill .mat-mdc-select-arrow-wrapper{transform:var(--mat-select-arrow-transform, translateY(-8px))} +`],encapsulation:2,changeDetection:0})}return t})();var fc=(()=>{class t{static \u0275fac=function(i){return new(i||t)};static \u0275mod=ee({type:t});static \u0275inj=J({providers:[qB],imports:[er,rh,we,vr,$i,rh,we]})}return t})();var pee=["mat-icon-button",""],fee=["*"],gee=new T("MAT_BUTTON_CONFIG");function QB(t){return t==null?void 0:ct(t)}var sS=(()=>{class t{_elementRef=u(q);_ngZone=u(ae);_animationsDisabled=Ye();_config=u(gee,{optional:!0});_focusMonitor=u(Yt);_cleanupClick;_renderer=u(je);_rippleLoader=u(Z0);_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(){u(ut).load(Di);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",i){e?this._focusMonitor.focusVia(this._elementRef.nativeElement,e,i):this._elementRef.nativeElement.focus(i)}_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(i){return new(i||t)};static \u0275dir=F({type:t,hostAttrs:[1,"mat-mdc-button-base"],hostVars:13,hostBindings:function(i,r){i&2&&(X("disabled",r._getDisabledAttribute())("aria-disabled",r._getAriaDisabled())("tabindex",r._getTabIndex()),it(r.color?"mat-"+r.color:""),G("mat-mdc-button-disabled",r.disabled)("mat-mdc-button-disabled-interactive",r.disabledInteractive)("mat-unthemed",!r.color)("_mat-animation-noopable",r._animationsDisabled))},inputs:{color:"color",disableRipple:[2,"disableRipple","disableRipple",V],disabled:[2,"disabled","disabled",V],ariaDisabled:[2,"aria-disabled","ariaDisabled",V],disabledInteractive:[2,"disabledInteractive","disabledInteractive",V],tabIndex:[2,"tabIndex","tabIndex",QB],_tabindex:[2,"tabindex","_tabindex",QB]}})}return t})(),ti=(()=>{class t extends sS{constructor(){super(),this._rippleLoader.configureRipple(this._elementRef.nativeElement,{centered:!0})}static \u0275fac=function(i){return new(i||t)};static \u0275cmp=E({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:[le],attrs:pee,ngContentSelectors:fee,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(i,r){i&1&&(Me(),ai(0,"span",0),oe(1),ai(2,"span",1)(3,"span",2))},styles:[`.mat-mdc-icon-button{-webkit-user-select:none;user-select:none;display:inline-block;position:relative;box-sizing:border-box;border:none;outline:none;background-color:rgba(0,0,0,0);fill:currentColor;text-decoration:none;cursor:pointer;z-index:0;overflow:visible;border-radius:var(--mat-icon-button-container-shape, var(--mat-sys-corner-full, 50%));flex-shrink:0;text-align:center;width:var(--mat-icon-button-state-layer-size, 40px);height:var(--mat-icon-button-state-layer-size, 40px);padding:calc(calc(var(--mat-icon-button-state-layer-size, 40px) - var(--mat-icon-button-icon-size, 24px)) / 2);font-size:var(--mat-icon-button-icon-size, 24px);color:var(--mat-icon-button-icon-color, var(--mat-sys-on-surface-variant));-webkit-tap-highlight-color:rgba(0,0,0,0)}.mat-mdc-icon-button .mat-mdc-button-ripple,.mat-mdc-icon-button .mat-mdc-button-persistent-ripple,.mat-mdc-icon-button .mat-mdc-button-persistent-ripple::before{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none;border-radius:inherit}.mat-mdc-icon-button .mat-mdc-button-ripple{overflow:hidden}.mat-mdc-icon-button .mat-mdc-button-persistent-ripple::before{content:"";opacity:0}.mat-mdc-icon-button .mdc-button__label,.mat-mdc-icon-button .mat-icon{z-index:1;position:relative}.mat-mdc-icon-button .mat-focus-indicator{top:0;left:0;right:0;bottom:0;position:absolute;border-radius:inherit}.mat-mdc-icon-button:focus>.mat-focus-indicator::before{content:"";border-radius:inherit}.mat-mdc-icon-button .mat-ripple-element{background-color:var(--mat-icon-button-ripple-color, color-mix(in srgb, var(--mat-sys-on-surface-variant) calc(var(--mat-sys-pressed-state-layer-opacity) * 100%), transparent))}.mat-mdc-icon-button .mat-mdc-button-persistent-ripple::before{background-color:var(--mat-icon-button-state-layer-color, var(--mat-sys-on-surface-variant))}.mat-mdc-icon-button.mat-mdc-button-disabled .mat-mdc-button-persistent-ripple::before{background-color:var(--mat-icon-button-disabled-state-layer-color, var(--mat-sys-on-surface-variant))}.mat-mdc-icon-button:hover>.mat-mdc-button-persistent-ripple::before{opacity:var(--mat-icon-button-hover-state-layer-opacity, var(--mat-sys-hover-state-layer-opacity))}.mat-mdc-icon-button.cdk-program-focused>.mat-mdc-button-persistent-ripple::before,.mat-mdc-icon-button.cdk-keyboard-focused>.mat-mdc-button-persistent-ripple::before,.mat-mdc-icon-button.mat-mdc-button-disabled-interactive:focus>.mat-mdc-button-persistent-ripple::before{opacity:var(--mat-icon-button-focus-state-layer-opacity, var(--mat-sys-focus-state-layer-opacity))}.mat-mdc-icon-button:active>.mat-mdc-button-persistent-ripple::before{opacity:var(--mat-icon-button-pressed-state-layer-opacity, var(--mat-sys-pressed-state-layer-opacity))}.mat-mdc-icon-button .mat-mdc-button-touch-target{position:absolute;top:50%;height:var(--mat-icon-button-touch-target-size, 48px);display:var(--mat-icon-button-touch-target-display, block);left:50%;width:var(--mat-icon-button-touch-target-size, 48px);transform:translate(-50%, -50%)}.mat-mdc-icon-button._mat-animation-noopable{transition:none !important;animation:none !important}.mat-mdc-icon-button[disabled],.mat-mdc-icon-button.mat-mdc-button-disabled{cursor:default;pointer-events:none;color:var(--mat-icon-button-disabled-icon-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent))}.mat-mdc-icon-button.mat-mdc-button-disabled-interactive{pointer-events:auto}.mat-mdc-icon-button img,.mat-mdc-icon-button svg{width:var(--mat-icon-button-icon-size, 24px);height:var(--mat-icon-button-icon-size, 24px);vertical-align:baseline}.mat-mdc-icon-button .mat-mdc-button-persistent-ripple{border-radius:var(--mat-icon-button-container-shape, var(--mat-sys-corner-full, 50%))}.mat-mdc-icon-button[hidden]{display:none}.mat-mdc-icon-button.mat-unthemed:not(.mdc-ripple-upgraded):focus::before,.mat-mdc-icon-button.mat-primary:not(.mdc-ripple-upgraded):focus::before,.mat-mdc-icon-button.mat-accent:not(.mdc-ripple-upgraded):focus::before,.mat-mdc-icon-button.mat-warn:not(.mdc-ripple-upgraded):focus::before{background:rgba(0,0,0,0);opacity:1} `,`@media(forced-colors: active){.mat-mdc-button:not(.mdc-button--outlined),.mat-mdc-unelevated-button:not(.mdc-button--outlined),.mat-mdc-raised-button:not(.mdc-button--outlined),.mat-mdc-outlined-button:not(.mdc-button--outlined),.mat-mdc-button-base.mat-tonal-button,.mat-mdc-icon-button.mat-mdc-icon-button,.mat-mdc-outlined-button .mdc-button__ripple{outline:solid 1px}} -`],encapsulation:2,changeDetection:0})}return t})();var bee=["tooltip"],lS=20;var cS=new T("mat-tooltip-scroll-strategy",{providedIn:"root",factory:()=>{let t=u(de);return()=>wn(t,{scrollThrottle:lS})}});function JB(t){let n=u(de);return()=>wn(n,{scrollThrottle:lS})}var dS={provide:cS,deps:[],useFactory:JB};function e3(){return{showDelay:0,hideDelay:0,touchendHideDelay:1500}}var t3=new T("mat-tooltip-default-options",{providedIn:"root",factory:e3});var ZB="tooltip-panel",XB=rc({passive:!0}),vee=8,yee=8,xee=24,Cee=200,Eo=(()=>{class t{_elementRef=u(q);_ngZone=u(ae);_platform=u(qe);_ariaDescriber=u(Xm);_focusMonitor=u(Yt);_dir=u(Vt);_injector=u(de);_viewContainerRef=u(nt);_animationsDisabled=Ye();_defaultOptions=u(t3,{optional:!0});_overlayRef;_tooltipInstance;_overlayPanelClass;_portal;_position="below";_positionAtOrigin=!1;_disabled=!1;_tooltipClass;_viewInitialized=!1;_pointerExitEventsInitialized=!1;_tooltipComponent=i3;_viewportMargin=8;_currentPosition;_cssClassPrefix="mat-mdc";_ariaDescriptionPending;_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=Ai(e),this._detach(),this._overlayRef=null}get disabled(){return this._disabled}set disabled(e){let i=Ai(e);this._disabled!==i&&(this._disabled=i,i?this.hide(0):this._setupPointerEnterEventsIfNeeded(),this._syncAriaDescription(this.message))}get showDelay(){return this._showDelay}set showDelay(e){this._showDelay=Ln(e)}_showDelay;get hideDelay(){return this._hideDelay}set hideDelay(e){this._hideDelay=Ln(e),this._tooltipInstance&&(this._tooltipInstance._mouseLeaveHideDelay=this._hideDelay)}_hideDelay;touchGestures="auto";get message(){return this._message}set message(e){let i=this._message;this._message=e!=null?String(e).trim():"",!this._message&&this._isTooltipVisible()?this.hide(0):(this._setupPointerEnterEventsIfNeeded(),this._updateTooltipMessage()),this._syncAriaDescription(i)}_message="";get tooltipClass(){return this._tooltipClass}set tooltipClass(e){this._tooltipClass=e,this._tooltipInstance&&this._setTooltipClass(this._tooltipClass)}_passiveListeners=[];_touchstartTimeout=null;_destroyed=new z;_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=vee}ngAfterViewInit(){this._viewInitialized=!0,this._setupPointerEnterEventsIfNeeded(),this._focusMonitor.monitor(this._elementRef).pipe(Te(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._passiveListeners.forEach(([i,r])=>{e.removeEventListener(i,r,XB)}),this._passiveListeners.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,i){if(this.disabled||!this.message||this._isTooltipVisible()){this._tooltipInstance?._cancelPendingAnimations();return}let r=this._createOverlay(i);this._detach(),this._portal=this._portal||new Zr(this._tooltipComponent,this._viewContainerRef);let o=this._tooltipInstance=r.attach(this._portal).instance;o._triggerElement=this._elementRef.nativeElement,o._mouseLeaveHideDelay=this._hideDelay,o.afterHidden().pipe(Te(this._destroyed)).subscribe(()=>this._detach()),this._setTooltipClass(this._tooltipClass),this._updateTooltipMessage(),o.show(e)}hide(e=this.hideDelay){let i=this._tooltipInstance;i&&(i.isVisible()?i.hide(e):(i._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 a=this._overlayRef.getConfig().positionStrategy;if((!this.positionAtOrigin||!e)&&a._origin instanceof q)return this._overlayRef;this._detach()}let i=this._injector.get(ws).getAncestorScrollContainers(this._elementRef),r=`${this._cssClassPrefix}-${ZB}`,o=Fa(this._injector,this.positionAtOrigin?e||this._elementRef:this._elementRef).withTransformOriginOn(`.${this._cssClassPrefix}-tooltip`).withFlexibleDimensions(!1).withViewportMargin(this._viewportMargin).withScrollableContainers(i);return o.positionChanges.pipe(Te(this._destroyed)).subscribe(a=>{this._updateCurrentPositionClass(a.connectionPair),this._tooltipInstance&&a.scrollableViewProperties.isOverlayClipped&&this._tooltipInstance.isVisible()&&this._ngZone.run(()=>this.hide(0))}),this._overlayRef=Nr(this._injector,{direction:this._dir,positionStrategy:o,panelClass:this._overlayPanelClass?[...this._overlayPanelClass,r]:r,scrollStrategy:this._injector.get(cS)(),disableAnimations:this._animationsDisabled}),this._updatePosition(this._overlayRef),this._overlayRef.detachments().pipe(Te(this._destroyed)).subscribe(()=>this._detach()),this._overlayRef.outsidePointerEvents().pipe(Te(this._destroyed)).subscribe(()=>this._tooltipInstance?._handleBodyInteraction()),this._overlayRef.keydownEvents().pipe(Te(this._destroyed)).subscribe(a=>{this._isTooltipVisible()&&a.keyCode===27&&!Ft(a)&&(a.preventDefault(),a.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(Te(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 i=e.getConfig().positionStrategy,r=this._getOrigin(),o=this._getOverlayPosition();i.withPositions([this._addOffset(M(M({},r.main),o.main)),this._addOffset(M(M({},r.fallback),o.fallback))])}_addOffset(e){let i=yee,r=!this._dir||this._dir.value=="ltr";return e.originY==="top"?e.offsetY=-i:e.originY==="bottom"?e.offsetY=i:e.originX==="start"?e.offsetX=r?-i:i:e.originX==="end"&&(e.offsetX=r?i:-i),e}_getOrigin(){let e=!this._dir||this._dir.value=="ltr",i=this.position,r;i=="above"||i=="below"?r={originX:"center",originY:i=="above"?"top":"bottom"}:i=="before"||i=="left"&&e||i=="right"&&!e?r={originX:"start",originY:"center"}:(i=="after"||i=="right"&&e||i=="left"&&!e)&&(r={originX:"end",originY:"center"});let{x:o,y:a}=this._invertPosition(r.originX,r.originY);return{main:r,fallback:{originX:o,originY:a}}}_getOverlayPosition(){let e=!this._dir||this._dir.value=="ltr",i=this.position,r;i=="above"?r={overlayX:"center",overlayY:"bottom"}:i=="below"?r={overlayX:"center",overlayY:"top"}:i=="before"||i=="left"&&e||i=="right"&&!e?r={overlayX:"end",overlayY:"center"}:(i=="after"||i=="right"&&e||i=="left"&&!e)&&(r={overlayX:"start",overlayY:"center"});let{x:o,y:a}=this._invertPosition(r.overlayX,r.overlayY);return{main:r,fallback:{overlayX:o,overlayY:a}}}_updateTooltipMessage(){this._tooltipInstance&&(this._tooltipInstance.message=this.message,this._tooltipInstance._markForCheck(),pt(()=>{this._tooltipInstance&&this._overlayRef.updatePosition()},{injector:this._injector}))}_setTooltipClass(e){this._tooltipInstance&&(this._tooltipInstance.tooltipClass=e,this._tooltipInstance._markForCheck())}_invertPosition(e,i){return this.position==="above"||this.position==="below"?i==="top"?i="bottom":i==="bottom"&&(i="top"):e==="end"?e="start":e==="start"&&(e="end"),{x:e,y:i}}_updateCurrentPositionClass(e){let{overlayY:i,originX:r,originY:o}=e,a;if(i==="center"?this._dir&&this._dir.value==="rtl"?a=r==="end"?"left":"right":a=r==="start"?"left":"right":a=i==="bottom"&&o==="top"?"above":"below",a!==this._currentPosition){let s=this._overlayRef;if(s){let l=`${this._cssClassPrefix}-${ZB}-`;s.removePanelClass(l+this._currentPosition),s.addPanelClass(l+a)}this._currentPosition=a}}_setupPointerEnterEventsIfNeeded(){this._disabled||!this.message||!this._viewInitialized||this._passiveListeners.length||(this._platformSupportsMouseEvents()?this._passiveListeners.push(["mouseenter",e=>{this._setupPointerExitEventsIfNeeded();let i;e.x!==void 0&&e.y!==void 0&&(i=e),this.show(void 0,i)}]):this.touchGestures!=="off"&&(this._disableNativeGesturesIfNecessary(),this._passiveListeners.push(["touchstart",e=>{let i=e.targetTouches?.[0],r=i?{x:i.clientX,y:i.clientY}:void 0;this._setupPointerExitEventsIfNeeded(),this._touchstartTimeout&&clearTimeout(this._touchstartTimeout);let o=500;this._touchstartTimeout=setTimeout(()=>{this._touchstartTimeout=null,this.show(void 0,r)},this._defaultOptions?.touchLongPressShowDelay??o)}])),this._addListeners(this._passiveListeners))}_setupPointerExitEventsIfNeeded(){if(this._pointerExitEventsInitialized)return;this._pointerExitEventsInitialized=!0;let e=[];if(this._platformSupportsMouseEvents())e.push(["mouseleave",i=>{let r=i.relatedTarget;(!r||!this._overlayRef?.overlayElement.contains(r))&&this.hide()}],["wheel",i=>this._wheelListener(i)]);else if(this.touchGestures!=="off"){this._disableNativeGesturesIfNecessary();let i=()=>{this._touchstartTimeout&&clearTimeout(this._touchstartTimeout),this.hide(this._defaultOptions?.touchendHideDelay)};e.push(["touchend",i],["touchcancel",i])}this._addListeners(e),this._passiveListeners.push(...e)}_addListeners(e){e.forEach(([i,r])=>{this._elementRef.nativeElement.addEventListener(i,r,XB)})}_platformSupportsMouseEvents(){return!this._platform.IOS&&!this._platform.ANDROID}_wheelListener(e){if(this._isTooltipVisible()){let i=this._injector.get(ge).elementFromPoint(e.clientX,e.clientY),r=this._elementRef.nativeElement;i!==r&&!r.contains(i)&&this.hide()}}_disableNativeGesturesIfNecessary(){let e=this.touchGestures;if(e!=="off"){let i=this._elementRef.nativeElement,r=i.style;(e==="on"||i.nodeName!=="INPUT"&&i.nodeName!=="TEXTAREA")&&(r.userSelect=r.msUserSelect=r.webkitUserSelect=r.MozUserSelect="none"),(e==="on"||!i.draggable)&&(r.webkitUserDrag="none"),r.touchAction="none",r.webkitTapHighlightColor="transparent"}}_syncAriaDescription(e){this._ariaDescriptionPending||(this._ariaDescriptionPending=!0,this._ariaDescriber.removeDescription(this._elementRef.nativeElement,e,"tooltip"),this._isDestroyed||pt({write:()=>{this._ariaDescriptionPending=!1,this.message&&!this.disabled&&this._ariaDescriber.describe(this._elementRef.nativeElement,this.message,"tooltip")}},{injector:this._injector}))}static \u0275fac=function(i){return new(i||t)};static \u0275dir=F({type:t,selectors:[["","matTooltip",""]],hostAttrs:[1,"mat-mdc-tooltip-trigger"],hostVars:2,hostBindings:function(i,r){i&2&&G("mat-mdc-tooltip-disabled",r.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 t})(),i3=(()=>{class t{_changeDetectorRef=u(ye);_elementRef=u(q);_isMultiline=!1;message;tooltipClass;_showTimeoutId;_hideTimeoutId;_triggerElement;_mouseLeaveHideDelay;_animationsDisabled=Ye();_tooltip;_closeOnInteraction=!1;_isVisible=!1;_onHide=new z;_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>xee&&e.width>=Cee}_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 i=this._tooltip.nativeElement,r=this._showAnimation,o=this._hideAnimation;if(i.classList.remove(e?o:r),i.classList.add(e?r:o),this._isVisible!==e&&(this._isVisible=e,this._changeDetectorRef.markForCheck()),e&&!this._animationsDisabled&&typeof getComputedStyle=="function"){let a=getComputedStyle(i);(a.getPropertyValue("animation-duration")==="0s"||a.getPropertyValue("animation-name")==="none")&&(this._animationsDisabled=!0)}e&&this._onShow(),this._animationsDisabled&&(i.classList.add("_mat-animation-noopable"),this._finalizeAnimation(e))}static \u0275fac=function(i){return new(i||t)};static \u0275cmp=E({type:t,selectors:[["mat-tooltip-component"]],viewQuery:function(i,r){if(i&1&&ie(bee,7),i&2){let o;B(o=j())&&(r._tooltip=o.first)}},hostAttrs:["aria-hidden","true"],hostBindings:function(i,r){i&1&&S("mouseleave",function(a){return r._handleMouseLeave(a)})},decls:4,vars:4,consts:[["tooltip",""],[1,"mdc-tooltip","mat-mdc-tooltip",3,"animationend","ngClass"],[1,"mat-mdc-tooltip-surface","mdc-tooltip__surface"]],template:function(i,r){if(i&1){let o=Y();h(0,"div",1,0),S("animationend",function(s){return I(o),A(r._handleAnimationEnd(s))}),h(2,"div",2),_(3),p()()}i&2&&(G("mdc-tooltip--multiline",r._isMultiline),y("ngClass",r.tooltipClass),g(3),H(r.message))},dependencies:[Pd],styles:[`.mat-mdc-tooltip{position:relative;transform:scale(0);display:inline-flex}.mat-mdc-tooltip::before{content:"";top:0;right:0;bottom:0;left:0;z-index:-1;position:absolute}.mat-mdc-tooltip-panel-below .mat-mdc-tooltip::before{top:-8px}.mat-mdc-tooltip-panel-above .mat-mdc-tooltip::before{bottom:-8px}.mat-mdc-tooltip-panel-right .mat-mdc-tooltip::before{left:-8px}.mat-mdc-tooltip-panel-left .mat-mdc-tooltip::before{right:-8px}.mat-mdc-tooltip._mat-animation-noopable{animation:none;transform:scale(1)}.mat-mdc-tooltip-surface{word-break:normal;overflow-wrap:anywhere;padding:4px 8px;min-width:40px;max-width:200px;min-height:24px;max-height:40vh;box-sizing:border-box;overflow:hidden;text-align:center;will-change:transform,opacity;background-color:var(--mat-tooltip-container-color, var(--mat-sys-inverse-surface));color:var(--mat-tooltip-supporting-text-color, var(--mat-sys-inverse-on-surface));border-radius:var(--mat-tooltip-container-shape, var(--mat-sys-corner-extra-small));font-family:var(--mat-tooltip-supporting-text-font, var(--mat-sys-body-small-font));font-size:var(--mat-tooltip-supporting-text-size, var(--mat-sys-body-small-size));font-weight:var(--mat-tooltip-supporting-text-weight, var(--mat-sys-body-small-weight));line-height:var(--mat-tooltip-supporting-text-line-height, var(--mat-sys-body-small-line-height));letter-spacing:var(--mat-tooltip-supporting-text-tracking, var(--mat-sys-body-small-tracking))}.mat-mdc-tooltip-surface::before{position:absolute;box-sizing:border-box;width:100%;height:100%;top:0;left:0;border:1px solid rgba(0,0,0,0);border-radius:inherit;content:"";pointer-events:none}.mdc-tooltip--multiline .mat-mdc-tooltip-surface{text-align:left}[dir=rtl] .mdc-tooltip--multiline .mat-mdc-tooltip-surface{text-align:right}.mat-mdc-tooltip-panel{line-height:normal}.mat-mdc-tooltip-panel.mat-mdc-tooltip-panel-non-interactive{pointer-events:none}@keyframes mat-mdc-tooltip-show{0%{opacity:0;transform:scale(0.8)}100%{opacity:1;transform:scale(1)}}@keyframes mat-mdc-tooltip-hide{0%{opacity:1;transform:scale(1)}100%{opacity:0;transform:scale(0.8)}}.mat-mdc-tooltip-show{animation:mat-mdc-tooltip-show 150ms cubic-bezier(0, 0, 0.2, 1) forwards}.mat-mdc-tooltip-hide{animation:mat-mdc-tooltip-hide 75ms cubic-bezier(0.4, 0, 1, 1) forwards} -`],encapsulation:2,changeDetection:0})}return t})();var Br=(()=>{class t{static \u0275fac=function(i){return new(i||t)};static \u0275mod=ee({type:t});static \u0275inj=J({providers:[dS],imports:[ll,er,we,we,vr]})}return t})();var wee=["matButton",""],Dee=[[["",8,"material-icons",3,"iconPositionEnd",""],["mat-icon",3,"iconPositionEnd",""],["","matButtonIcon","",3,"iconPositionEnd",""]],"*",[["","iconPositionEnd","",8,"material-icons"],["mat-icon","iconPositionEnd",""],["","matButtonIcon","","iconPositionEnd",""]]],Eee=[".material-icons:not([iconPositionEnd]), mat-icon:not([iconPositionEnd]), [matButtonIcon]:not([iconPositionEnd])","*",".material-icons[iconPositionEnd], mat-icon[iconPositionEnd], [matButtonIcon][iconPositionEnd]"];var n3=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"]]]),kt=(()=>{class t extends sS{get appearance(){return this._appearance}set appearance(e){this.setAppearance(e||this._config?.defaultAppearance||"text")}_appearance=null;constructor(){super();let e=Mee(this._elementRef.nativeElement);e&&this.setAppearance(e)}setAppearance(e){if(e===this._appearance)return;let i=this._elementRef.nativeElement.classList,r=this._appearance?n3.get(this._appearance):null,o=n3.get(e);r&&i.remove(...r),i.add(...o),this._appearance=e}static \u0275fac=function(i){return new(i||t)};static \u0275cmp=E({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:[le],attrs:wee,ngContentSelectors:Eee,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(i,r){i&1&&(Me(Dee),ai(0,"span",0),oe(1),ft(2,"span",1),oe(3,1),vt(),oe(4,2),ai(5,"span",2)(6,"span",3)),i&2&&G("mdc-button__ripple",!r._isFab)("mdc-fab__ripple",r._isFab)},styles:[`.mat-mdc-button-base{text-decoration:none}.mat-mdc-button-base .mat-icon{min-height:fit-content;flex-shrink:0}.mdc-button{-webkit-user-select:none;user-select:none;position:relative;display:inline-flex;align-items:center;justify-content:center;box-sizing:border-box;min-width:64px;border:none;outline:none;line-height:inherit;-webkit-appearance:none;overflow:visible;vertical-align:middle;background:rgba(0,0,0,0);padding:0 8px}.mdc-button::-moz-focus-inner{padding:0;border:0}.mdc-button:active{outline:none}.mdc-button:hover{cursor:pointer}.mdc-button:disabled{cursor:default;pointer-events:none}.mdc-button[hidden]{display:none}.mdc-button .mdc-button__label{position:relative}.mat-mdc-button{padding:0 var(--mat-button-text-horizontal-padding, 12px);height:var(--mat-button-text-container-height, 40px);font-family:var(--mat-button-text-label-text-font, var(--mat-sys-label-large-font));font-size:var(--mat-button-text-label-text-size, var(--mat-sys-label-large-size));letter-spacing:var(--mat-button-text-label-text-tracking, var(--mat-sys-label-large-tracking));text-transform:var(--mat-button-text-label-text-transform);font-weight:var(--mat-button-text-label-text-weight, var(--mat-sys-label-large-weight))}.mat-mdc-button,.mat-mdc-button .mdc-button__ripple{border-radius:var(--mat-button-text-container-shape, var(--mat-sys-corner-full))}.mat-mdc-button:not(:disabled){color:var(--mat-button-text-label-text-color, var(--mat-sys-primary))}.mat-mdc-button[disabled],.mat-mdc-button.mat-mdc-button-disabled{cursor:default;pointer-events:none;color:var(--mat-button-text-disabled-label-text-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent))}.mat-mdc-button.mat-mdc-button-disabled-interactive{pointer-events:auto}.mat-mdc-button:has(.material-icons,mat-icon,[matButtonIcon]){padding:0 var(--mat-button-text-with-icon-horizontal-padding, 16px)}.mat-mdc-button>.mat-icon{margin-right:var(--mat-button-text-icon-spacing, 8px);margin-left:var(--mat-button-text-icon-offset, -4px)}[dir=rtl] .mat-mdc-button>.mat-icon{margin-right:var(--mat-button-text-icon-offset, -4px);margin-left:var(--mat-button-text-icon-spacing, 8px)}.mat-mdc-button .mdc-button__label+.mat-icon{margin-right:var(--mat-button-text-icon-offset, -4px);margin-left:var(--mat-button-text-icon-spacing, 8px)}[dir=rtl] .mat-mdc-button .mdc-button__label+.mat-icon{margin-right:var(--mat-button-text-icon-spacing, 8px);margin-left:var(--mat-button-text-icon-offset, -4px)}.mat-mdc-button .mat-ripple-element{background-color:var(--mat-button-text-ripple-color, color-mix(in srgb, var(--mat-sys-primary) calc(var(--mat-sys-pressed-state-layer-opacity) * 100%), transparent))}.mat-mdc-button .mat-mdc-button-persistent-ripple::before{background-color:var(--mat-button-text-state-layer-color, var(--mat-sys-primary))}.mat-mdc-button.mat-mdc-button-disabled .mat-mdc-button-persistent-ripple::before{background-color:var(--mat-button-text-disabled-state-layer-color, var(--mat-sys-on-surface-variant))}.mat-mdc-button:hover>.mat-mdc-button-persistent-ripple::before{opacity:var(--mat-button-text-hover-state-layer-opacity, var(--mat-sys-hover-state-layer-opacity))}.mat-mdc-button.cdk-program-focused>.mat-mdc-button-persistent-ripple::before,.mat-mdc-button.cdk-keyboard-focused>.mat-mdc-button-persistent-ripple::before,.mat-mdc-button.mat-mdc-button-disabled-interactive:focus>.mat-mdc-button-persistent-ripple::before{opacity:var(--mat-button-text-focus-state-layer-opacity, var(--mat-sys-focus-state-layer-opacity))}.mat-mdc-button:active>.mat-mdc-button-persistent-ripple::before{opacity:var(--mat-button-text-pressed-state-layer-opacity, var(--mat-sys-pressed-state-layer-opacity))}.mat-mdc-button .mat-mdc-button-touch-target{position:absolute;top:50%;height:var(--mat-button-text-touch-target-size, 48px);display:var(--mat-button-text-touch-target-display, block);left:0;right:0;transform:translateY(-50%)}.mat-mdc-unelevated-button{transition:box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);height:var(--mat-button-filled-container-height, 40px);font-family:var(--mat-button-filled-label-text-font, var(--mat-sys-label-large-font));font-size:var(--mat-button-filled-label-text-size, var(--mat-sys-label-large-size));letter-spacing:var(--mat-button-filled-label-text-tracking, var(--mat-sys-label-large-tracking));text-transform:var(--mat-button-filled-label-text-transform);font-weight:var(--mat-button-filled-label-text-weight, var(--mat-sys-label-large-weight));padding:0 var(--mat-button-filled-horizontal-padding, 24px)}.mat-mdc-unelevated-button>.mat-icon{margin-right:var(--mat-button-filled-icon-spacing, 8px);margin-left:var(--mat-button-filled-icon-offset, -8px)}[dir=rtl] .mat-mdc-unelevated-button>.mat-icon{margin-right:var(--mat-button-filled-icon-offset, -8px);margin-left:var(--mat-button-filled-icon-spacing, 8px)}.mat-mdc-unelevated-button .mdc-button__label+.mat-icon{margin-right:var(--mat-button-filled-icon-offset, -8px);margin-left:var(--mat-button-filled-icon-spacing, 8px)}[dir=rtl] .mat-mdc-unelevated-button .mdc-button__label+.mat-icon{margin-right:var(--mat-button-filled-icon-spacing, 8px);margin-left:var(--mat-button-filled-icon-offset, -8px)}.mat-mdc-unelevated-button .mat-ripple-element{background-color:var(--mat-button-filled-ripple-color, color-mix(in srgb, var(--mat-sys-on-primary) calc(var(--mat-sys-pressed-state-layer-opacity) * 100%), transparent))}.mat-mdc-unelevated-button .mat-mdc-button-persistent-ripple::before{background-color:var(--mat-button-filled-state-layer-color, var(--mat-sys-on-primary))}.mat-mdc-unelevated-button.mat-mdc-button-disabled .mat-mdc-button-persistent-ripple::before{background-color:var(--mat-button-filled-disabled-state-layer-color, var(--mat-sys-on-surface-variant))}.mat-mdc-unelevated-button:hover>.mat-mdc-button-persistent-ripple::before{opacity:var(--mat-button-filled-hover-state-layer-opacity, var(--mat-sys-hover-state-layer-opacity))}.mat-mdc-unelevated-button.cdk-program-focused>.mat-mdc-button-persistent-ripple::before,.mat-mdc-unelevated-button.cdk-keyboard-focused>.mat-mdc-button-persistent-ripple::before,.mat-mdc-unelevated-button.mat-mdc-button-disabled-interactive:focus>.mat-mdc-button-persistent-ripple::before{opacity:var(--mat-button-filled-focus-state-layer-opacity, var(--mat-sys-focus-state-layer-opacity))}.mat-mdc-unelevated-button:active>.mat-mdc-button-persistent-ripple::before{opacity:var(--mat-button-filled-pressed-state-layer-opacity, var(--mat-sys-pressed-state-layer-opacity))}.mat-mdc-unelevated-button .mat-mdc-button-touch-target{position:absolute;top:50%;height:var(--mat-button-filled-touch-target-size, 48px);display:var(--mat-button-filled-touch-target-display, block);left:0;right:0;transform:translateY(-50%)}.mat-mdc-unelevated-button:not(:disabled){color:var(--mat-button-filled-label-text-color, var(--mat-sys-on-primary));background-color:var(--mat-button-filled-container-color, var(--mat-sys-primary))}.mat-mdc-unelevated-button,.mat-mdc-unelevated-button .mdc-button__ripple{border-radius:var(--mat-button-filled-container-shape, var(--mat-sys-corner-full))}.mat-mdc-unelevated-button[disabled],.mat-mdc-unelevated-button.mat-mdc-button-disabled{cursor:default;pointer-events:none;color:var(--mat-button-filled-disabled-label-text-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent));background-color:var(--mat-button-filled-disabled-container-color, color-mix(in srgb, var(--mat-sys-on-surface) 12%, transparent))}.mat-mdc-unelevated-button.mat-mdc-button-disabled-interactive{pointer-events:auto}.mat-mdc-raised-button{transition:box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);box-shadow:var(--mat-button-protected-container-elevation-shadow, var(--mat-sys-level1));height:var(--mat-button-protected-container-height, 40px);font-family:var(--mat-button-protected-label-text-font, var(--mat-sys-label-large-font));font-size:var(--mat-button-protected-label-text-size, var(--mat-sys-label-large-size));letter-spacing:var(--mat-button-protected-label-text-tracking, var(--mat-sys-label-large-tracking));text-transform:var(--mat-button-protected-label-text-transform);font-weight:var(--mat-button-protected-label-text-weight, var(--mat-sys-label-large-weight));padding:0 var(--mat-button-protected-horizontal-padding, 24px)}.mat-mdc-raised-button>.mat-icon{margin-right:var(--mat-button-protected-icon-spacing, 8px);margin-left:var(--mat-button-protected-icon-offset, -8px)}[dir=rtl] .mat-mdc-raised-button>.mat-icon{margin-right:var(--mat-button-protected-icon-offset, -8px);margin-left:var(--mat-button-protected-icon-spacing, 8px)}.mat-mdc-raised-button .mdc-button__label+.mat-icon{margin-right:var(--mat-button-protected-icon-offset, -8px);margin-left:var(--mat-button-protected-icon-spacing, 8px)}[dir=rtl] .mat-mdc-raised-button .mdc-button__label+.mat-icon{margin-right:var(--mat-button-protected-icon-spacing, 8px);margin-left:var(--mat-button-protected-icon-offset, -8px)}.mat-mdc-raised-button .mat-ripple-element{background-color:var(--mat-button-protected-ripple-color, color-mix(in srgb, var(--mat-sys-primary) calc(var(--mat-sys-pressed-state-layer-opacity) * 100%), transparent))}.mat-mdc-raised-button .mat-mdc-button-persistent-ripple::before{background-color:var(--mat-button-protected-state-layer-color, var(--mat-sys-primary))}.mat-mdc-raised-button.mat-mdc-button-disabled .mat-mdc-button-persistent-ripple::before{background-color:var(--mat-button-protected-disabled-state-layer-color, var(--mat-sys-on-surface-variant))}.mat-mdc-raised-button:hover>.mat-mdc-button-persistent-ripple::before{opacity:var(--mat-button-protected-hover-state-layer-opacity, var(--mat-sys-hover-state-layer-opacity))}.mat-mdc-raised-button.cdk-program-focused>.mat-mdc-button-persistent-ripple::before,.mat-mdc-raised-button.cdk-keyboard-focused>.mat-mdc-button-persistent-ripple::before,.mat-mdc-raised-button.mat-mdc-button-disabled-interactive:focus>.mat-mdc-button-persistent-ripple::before{opacity:var(--mat-button-protected-focus-state-layer-opacity, var(--mat-sys-focus-state-layer-opacity))}.mat-mdc-raised-button:active>.mat-mdc-button-persistent-ripple::before{opacity:var(--mat-button-protected-pressed-state-layer-opacity, var(--mat-sys-pressed-state-layer-opacity))}.mat-mdc-raised-button .mat-mdc-button-touch-target{position:absolute;top:50%;height:var(--mat-button-protected-touch-target-size, 48px);display:var(--mat-button-protected-touch-target-display, block);left:0;right:0;transform:translateY(-50%)}.mat-mdc-raised-button:not(:disabled){color:var(--mat-button-protected-label-text-color, var(--mat-sys-primary));background-color:var(--mat-button-protected-container-color, var(--mat-sys-surface))}.mat-mdc-raised-button,.mat-mdc-raised-button .mdc-button__ripple{border-radius:var(--mat-button-protected-container-shape, var(--mat-sys-corner-full))}.mat-mdc-raised-button:hover{box-shadow:var(--mat-button-protected-hover-container-elevation-shadow, var(--mat-sys-level2))}.mat-mdc-raised-button:focus{box-shadow:var(--mat-button-protected-focus-container-elevation-shadow, var(--mat-sys-level1))}.mat-mdc-raised-button:active,.mat-mdc-raised-button:focus:active{box-shadow:var(--mat-button-protected-pressed-container-elevation-shadow, var(--mat-sys-level1))}.mat-mdc-raised-button[disabled],.mat-mdc-raised-button.mat-mdc-button-disabled{cursor:default;pointer-events:none;color:var(--mat-button-protected-disabled-label-text-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent));background-color:var(--mat-button-protected-disabled-container-color, color-mix(in srgb, var(--mat-sys-on-surface) 12%, transparent))}.mat-mdc-raised-button[disabled].mat-mdc-button-disabled,.mat-mdc-raised-button.mat-mdc-button-disabled.mat-mdc-button-disabled{box-shadow:var(--mat-button-protected-disabled-container-elevation-shadow, var(--mat-sys-level0))}.mat-mdc-raised-button.mat-mdc-button-disabled-interactive{pointer-events:auto}.mat-mdc-outlined-button{border-style:solid;transition:border 280ms cubic-bezier(0.4, 0, 0.2, 1);height:var(--mat-button-outlined-container-height, 40px);font-family:var(--mat-button-outlined-label-text-font, var(--mat-sys-label-large-font));font-size:var(--mat-button-outlined-label-text-size, var(--mat-sys-label-large-size));letter-spacing:var(--mat-button-outlined-label-text-tracking, var(--mat-sys-label-large-tracking));text-transform:var(--mat-button-outlined-label-text-transform);font-weight:var(--mat-button-outlined-label-text-weight, var(--mat-sys-label-large-weight));border-radius:var(--mat-button-outlined-container-shape, var(--mat-sys-corner-full));border-width:var(--mat-button-outlined-outline-width, 1px);padding:0 var(--mat-button-outlined-horizontal-padding, 24px)}.mat-mdc-outlined-button>.mat-icon{margin-right:var(--mat-button-outlined-icon-spacing, 8px);margin-left:var(--mat-button-outlined-icon-offset, -8px)}[dir=rtl] .mat-mdc-outlined-button>.mat-icon{margin-right:var(--mat-button-outlined-icon-offset, -8px);margin-left:var(--mat-button-outlined-icon-spacing, 8px)}.mat-mdc-outlined-button .mdc-button__label+.mat-icon{margin-right:var(--mat-button-outlined-icon-offset, -8px);margin-left:var(--mat-button-outlined-icon-spacing, 8px)}[dir=rtl] .mat-mdc-outlined-button .mdc-button__label+.mat-icon{margin-right:var(--mat-button-outlined-icon-spacing, 8px);margin-left:var(--mat-button-outlined-icon-offset, -8px)}.mat-mdc-outlined-button .mat-ripple-element{background-color:var(--mat-button-outlined-ripple-color, color-mix(in srgb, var(--mat-sys-primary) calc(var(--mat-sys-pressed-state-layer-opacity) * 100%), transparent))}.mat-mdc-outlined-button .mat-mdc-button-persistent-ripple::before{background-color:var(--mat-button-outlined-state-layer-color, var(--mat-sys-primary))}.mat-mdc-outlined-button.mat-mdc-button-disabled .mat-mdc-button-persistent-ripple::before{background-color:var(--mat-button-outlined-disabled-state-layer-color, var(--mat-sys-on-surface-variant))}.mat-mdc-outlined-button:hover>.mat-mdc-button-persistent-ripple::before{opacity:var(--mat-button-outlined-hover-state-layer-opacity, var(--mat-sys-hover-state-layer-opacity))}.mat-mdc-outlined-button.cdk-program-focused>.mat-mdc-button-persistent-ripple::before,.mat-mdc-outlined-button.cdk-keyboard-focused>.mat-mdc-button-persistent-ripple::before,.mat-mdc-outlined-button.mat-mdc-button-disabled-interactive:focus>.mat-mdc-button-persistent-ripple::before{opacity:var(--mat-button-outlined-focus-state-layer-opacity, var(--mat-sys-focus-state-layer-opacity))}.mat-mdc-outlined-button:active>.mat-mdc-button-persistent-ripple::before{opacity:var(--mat-button-outlined-pressed-state-layer-opacity, var(--mat-sys-pressed-state-layer-opacity))}.mat-mdc-outlined-button .mat-mdc-button-touch-target{position:absolute;top:50%;height:var(--mat-button-outlined-touch-target-size, 48px);display:var(--mat-button-outlined-touch-target-display, block);left:0;right:0;transform:translateY(-50%)}.mat-mdc-outlined-button:not(:disabled){color:var(--mat-button-outlined-label-text-color, var(--mat-sys-primary));border-color:var(--mat-button-outlined-outline-color, var(--mat-sys-outline))}.mat-mdc-outlined-button[disabled],.mat-mdc-outlined-button.mat-mdc-button-disabled{cursor:default;pointer-events:none;color:var(--mat-button-outlined-disabled-label-text-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent));border-color:var(--mat-button-outlined-disabled-outline-color, color-mix(in srgb, var(--mat-sys-on-surface) 12%, transparent))}.mat-mdc-outlined-button.mat-mdc-button-disabled-interactive{pointer-events:auto}.mat-tonal-button{transition:box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);height:var(--mat-button-tonal-container-height, 40px);font-family:var(--mat-button-tonal-label-text-font, var(--mat-sys-label-large-font));font-size:var(--mat-button-tonal-label-text-size, var(--mat-sys-label-large-size));letter-spacing:var(--mat-button-tonal-label-text-tracking, var(--mat-sys-label-large-tracking));text-transform:var(--mat-button-tonal-label-text-transform);font-weight:var(--mat-button-tonal-label-text-weight, var(--mat-sys-label-large-weight));padding:0 var(--mat-button-tonal-horizontal-padding, 24px)}.mat-tonal-button:not(:disabled){color:var(--mat-button-tonal-label-text-color, var(--mat-sys-on-secondary-container));background-color:var(--mat-button-tonal-container-color, var(--mat-sys-secondary-container))}.mat-tonal-button,.mat-tonal-button .mdc-button__ripple{border-radius:var(--mat-button-tonal-container-shape, var(--mat-sys-corner-full))}.mat-tonal-button[disabled],.mat-tonal-button.mat-mdc-button-disabled{cursor:default;pointer-events:none;color:var(--mat-button-tonal-disabled-label-text-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent));background-color:var(--mat-button-tonal-disabled-container-color, color-mix(in srgb, var(--mat-sys-on-surface) 12%, transparent))}.mat-tonal-button.mat-mdc-button-disabled-interactive{pointer-events:auto}.mat-tonal-button>.mat-icon{margin-right:var(--mat-button-tonal-icon-spacing, 8px);margin-left:var(--mat-button-tonal-icon-offset, -8px)}[dir=rtl] .mat-tonal-button>.mat-icon{margin-right:var(--mat-button-tonal-icon-offset, -8px);margin-left:var(--mat-button-tonal-icon-spacing, 8px)}.mat-tonal-button .mdc-button__label+.mat-icon{margin-right:var(--mat-button-tonal-icon-offset, -8px);margin-left:var(--mat-button-tonal-icon-spacing, 8px)}[dir=rtl] .mat-tonal-button .mdc-button__label+.mat-icon{margin-right:var(--mat-button-tonal-icon-spacing, 8px);margin-left:var(--mat-button-tonal-icon-offset, -8px)}.mat-tonal-button .mat-ripple-element{background-color:var(--mat-button-tonal-ripple-color, color-mix(in srgb, var(--mat-sys-on-secondary-container) calc(var(--mat-sys-pressed-state-layer-opacity) * 100%), transparent))}.mat-tonal-button .mat-mdc-button-persistent-ripple::before{background-color:var(--mat-button-tonal-state-layer-color, var(--mat-sys-on-secondary-container))}.mat-tonal-button.mat-mdc-button-disabled .mat-mdc-button-persistent-ripple::before{background-color:var(--mat-button-tonal-disabled-state-layer-color, var(--mat-sys-on-surface-variant))}.mat-tonal-button:hover>.mat-mdc-button-persistent-ripple::before{opacity:var(--mat-button-tonal-hover-state-layer-opacity, var(--mat-sys-hover-state-layer-opacity))}.mat-tonal-button.cdk-program-focused>.mat-mdc-button-persistent-ripple::before,.mat-tonal-button.cdk-keyboard-focused>.mat-mdc-button-persistent-ripple::before,.mat-tonal-button.mat-mdc-button-disabled-interactive:focus>.mat-mdc-button-persistent-ripple::before{opacity:var(--mat-button-tonal-focus-state-layer-opacity, var(--mat-sys-focus-state-layer-opacity))}.mat-tonal-button:active>.mat-mdc-button-persistent-ripple::before{opacity:var(--mat-button-tonal-pressed-state-layer-opacity, var(--mat-sys-pressed-state-layer-opacity))}.mat-tonal-button .mat-mdc-button-touch-target{position:absolute;top:50%;height:var(--mat-button-tonal-touch-target-size, 48px);display:var(--mat-button-tonal-touch-target-display, block);left:0;right:0;transform:translateY(-50%)}.mat-mdc-button,.mat-mdc-unelevated-button,.mat-mdc-raised-button,.mat-mdc-outlined-button,.mat-tonal-button{-webkit-tap-highlight-color:rgba(0,0,0,0)}.mat-mdc-button .mat-mdc-button-ripple,.mat-mdc-button .mat-mdc-button-persistent-ripple,.mat-mdc-button .mat-mdc-button-persistent-ripple::before,.mat-mdc-unelevated-button .mat-mdc-button-ripple,.mat-mdc-unelevated-button .mat-mdc-button-persistent-ripple,.mat-mdc-unelevated-button .mat-mdc-button-persistent-ripple::before,.mat-mdc-raised-button .mat-mdc-button-ripple,.mat-mdc-raised-button .mat-mdc-button-persistent-ripple,.mat-mdc-raised-button .mat-mdc-button-persistent-ripple::before,.mat-mdc-outlined-button .mat-mdc-button-ripple,.mat-mdc-outlined-button .mat-mdc-button-persistent-ripple,.mat-mdc-outlined-button .mat-mdc-button-persistent-ripple::before,.mat-tonal-button .mat-mdc-button-ripple,.mat-tonal-button .mat-mdc-button-persistent-ripple,.mat-tonal-button .mat-mdc-button-persistent-ripple::before{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none;border-radius:inherit}.mat-mdc-button .mat-mdc-button-ripple,.mat-mdc-unelevated-button .mat-mdc-button-ripple,.mat-mdc-raised-button .mat-mdc-button-ripple,.mat-mdc-outlined-button .mat-mdc-button-ripple,.mat-tonal-button .mat-mdc-button-ripple{overflow:hidden}.mat-mdc-button .mat-mdc-button-persistent-ripple::before,.mat-mdc-unelevated-button .mat-mdc-button-persistent-ripple::before,.mat-mdc-raised-button .mat-mdc-button-persistent-ripple::before,.mat-mdc-outlined-button .mat-mdc-button-persistent-ripple::before,.mat-tonal-button .mat-mdc-button-persistent-ripple::before{content:"";opacity:0}.mat-mdc-button .mdc-button__label,.mat-mdc-button .mat-icon,.mat-mdc-unelevated-button .mdc-button__label,.mat-mdc-unelevated-button .mat-icon,.mat-mdc-raised-button .mdc-button__label,.mat-mdc-raised-button .mat-icon,.mat-mdc-outlined-button .mdc-button__label,.mat-mdc-outlined-button .mat-icon,.mat-tonal-button .mdc-button__label,.mat-tonal-button .mat-icon{z-index:1;position:relative}.mat-mdc-button .mat-focus-indicator,.mat-mdc-unelevated-button .mat-focus-indicator,.mat-mdc-raised-button .mat-focus-indicator,.mat-mdc-outlined-button .mat-focus-indicator,.mat-tonal-button .mat-focus-indicator{top:0;left:0;right:0;bottom:0;position:absolute;border-radius:inherit}.mat-mdc-button:focus>.mat-focus-indicator::before,.mat-mdc-unelevated-button:focus>.mat-focus-indicator::before,.mat-mdc-raised-button:focus>.mat-focus-indicator::before,.mat-mdc-outlined-button:focus>.mat-focus-indicator::before,.mat-tonal-button:focus>.mat-focus-indicator::before{content:"";border-radius:inherit}.mat-mdc-button._mat-animation-noopable,.mat-mdc-unelevated-button._mat-animation-noopable,.mat-mdc-raised-button._mat-animation-noopable,.mat-mdc-outlined-button._mat-animation-noopable,.mat-tonal-button._mat-animation-noopable{transition:none !important;animation:none !important}.mat-mdc-button>.mat-icon,.mat-mdc-unelevated-button>.mat-icon,.mat-mdc-raised-button>.mat-icon,.mat-mdc-outlined-button>.mat-icon,.mat-tonal-button>.mat-icon{display:inline-block;position:relative;vertical-align:top;font-size:1.125rem;height:1.125rem;width:1.125rem}.mat-mdc-outlined-button .mat-mdc-button-ripple,.mat-mdc-outlined-button .mdc-button__ripple{top:-1px;left:-1px;bottom:-1px;right:-1px}.mat-mdc-unelevated-button .mat-focus-indicator::before,.mat-tonal-button .mat-focus-indicator::before,.mat-mdc-raised-button .mat-focus-indicator::before{margin:calc(calc(var(--mat-focus-indicator-border-width, 3px) + 2px)*-1)}.mat-mdc-outlined-button .mat-focus-indicator::before{margin:calc(calc(var(--mat-focus-indicator-border-width, 3px) + 3px)*-1)} +`],encapsulation:2,changeDetection:0})}return t})();var _ee=["tooltip"],lS=20;var cS=new T("mat-tooltip-scroll-strategy",{providedIn:"root",factory:()=>{let t=u(de);return()=>wn(t,{scrollThrottle:lS})}});function XB(t){let n=u(de);return()=>wn(n,{scrollThrottle:lS})}var dS={provide:cS,deps:[],useFactory:XB};function JB(){return{showDelay:0,hideDelay:0,touchendHideDelay:1500}}var e3=new T("mat-tooltip-default-options",{providedIn:"root",factory:JB});var KB="tooltip-panel",ZB=rc({passive:!0}),bee=8,vee=8,yee=24,xee=200,Eo=(()=>{class t{_elementRef=u(q);_ngZone=u(ae);_platform=u(qe);_ariaDescriber=u(Xm);_focusMonitor=u(Yt);_dir=u(Vt);_injector=u(de);_viewContainerRef=u(nt);_animationsDisabled=Ye();_defaultOptions=u(e3,{optional:!0});_overlayRef;_tooltipInstance;_overlayPanelClass;_portal;_position="below";_positionAtOrigin=!1;_disabled=!1;_tooltipClass;_viewInitialized=!1;_pointerExitEventsInitialized=!1;_tooltipComponent=t3;_viewportMargin=8;_currentPosition;_cssClassPrefix="mat-mdc";_ariaDescriptionPending;_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=Ai(e),this._detach(),this._overlayRef=null}get disabled(){return this._disabled}set disabled(e){let i=Ai(e);this._disabled!==i&&(this._disabled=i,i?this.hide(0):this._setupPointerEnterEventsIfNeeded(),this._syncAriaDescription(this.message))}get showDelay(){return this._showDelay}set showDelay(e){this._showDelay=Ln(e)}_showDelay;get hideDelay(){return this._hideDelay}set hideDelay(e){this._hideDelay=Ln(e),this._tooltipInstance&&(this._tooltipInstance._mouseLeaveHideDelay=this._hideDelay)}_hideDelay;touchGestures="auto";get message(){return this._message}set message(e){let i=this._message;this._message=e!=null?String(e).trim():"",!this._message&&this._isTooltipVisible()?this.hide(0):(this._setupPointerEnterEventsIfNeeded(),this._updateTooltipMessage()),this._syncAriaDescription(i)}_message="";get tooltipClass(){return this._tooltipClass}set tooltipClass(e){this._tooltipClass=e,this._tooltipInstance&&this._setTooltipClass(this._tooltipClass)}_passiveListeners=[];_touchstartTimeout=null;_destroyed=new z;_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=bee}ngAfterViewInit(){this._viewInitialized=!0,this._setupPointerEnterEventsIfNeeded(),this._focusMonitor.monitor(this._elementRef).pipe(Te(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._passiveListeners.forEach(([i,r])=>{e.removeEventListener(i,r,ZB)}),this._passiveListeners.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,i){if(this.disabled||!this.message||this._isTooltipVisible()){this._tooltipInstance?._cancelPendingAnimations();return}let r=this._createOverlay(i);this._detach(),this._portal=this._portal||new Zr(this._tooltipComponent,this._viewContainerRef);let o=this._tooltipInstance=r.attach(this._portal).instance;o._triggerElement=this._elementRef.nativeElement,o._mouseLeaveHideDelay=this._hideDelay,o.afterHidden().pipe(Te(this._destroyed)).subscribe(()=>this._detach()),this._setTooltipClass(this._tooltipClass),this._updateTooltipMessage(),o.show(e)}hide(e=this.hideDelay){let i=this._tooltipInstance;i&&(i.isVisible()?i.hide(e):(i._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 a=this._overlayRef.getConfig().positionStrategy;if((!this.positionAtOrigin||!e)&&a._origin instanceof q)return this._overlayRef;this._detach()}let i=this._injector.get(ws).getAncestorScrollContainers(this._elementRef),r=`${this._cssClassPrefix}-${KB}`,o=Fa(this._injector,this.positionAtOrigin?e||this._elementRef:this._elementRef).withTransformOriginOn(`.${this._cssClassPrefix}-tooltip`).withFlexibleDimensions(!1).withViewportMargin(this._viewportMargin).withScrollableContainers(i);return o.positionChanges.pipe(Te(this._destroyed)).subscribe(a=>{this._updateCurrentPositionClass(a.connectionPair),this._tooltipInstance&&a.scrollableViewProperties.isOverlayClipped&&this._tooltipInstance.isVisible()&&this._ngZone.run(()=>this.hide(0))}),this._overlayRef=Nr(this._injector,{direction:this._dir,positionStrategy:o,panelClass:this._overlayPanelClass?[...this._overlayPanelClass,r]:r,scrollStrategy:this._injector.get(cS)(),disableAnimations:this._animationsDisabled}),this._updatePosition(this._overlayRef),this._overlayRef.detachments().pipe(Te(this._destroyed)).subscribe(()=>this._detach()),this._overlayRef.outsidePointerEvents().pipe(Te(this._destroyed)).subscribe(()=>this._tooltipInstance?._handleBodyInteraction()),this._overlayRef.keydownEvents().pipe(Te(this._destroyed)).subscribe(a=>{this._isTooltipVisible()&&a.keyCode===27&&!Ft(a)&&(a.preventDefault(),a.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(Te(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 i=e.getConfig().positionStrategy,r=this._getOrigin(),o=this._getOverlayPosition();i.withPositions([this._addOffset(M(M({},r.main),o.main)),this._addOffset(M(M({},r.fallback),o.fallback))])}_addOffset(e){let i=vee,r=!this._dir||this._dir.value=="ltr";return e.originY==="top"?e.offsetY=-i:e.originY==="bottom"?e.offsetY=i:e.originX==="start"?e.offsetX=r?-i:i:e.originX==="end"&&(e.offsetX=r?i:-i),e}_getOrigin(){let e=!this._dir||this._dir.value=="ltr",i=this.position,r;i=="above"||i=="below"?r={originX:"center",originY:i=="above"?"top":"bottom"}:i=="before"||i=="left"&&e||i=="right"&&!e?r={originX:"start",originY:"center"}:(i=="after"||i=="right"&&e||i=="left"&&!e)&&(r={originX:"end",originY:"center"});let{x:o,y:a}=this._invertPosition(r.originX,r.originY);return{main:r,fallback:{originX:o,originY:a}}}_getOverlayPosition(){let e=!this._dir||this._dir.value=="ltr",i=this.position,r;i=="above"?r={overlayX:"center",overlayY:"bottom"}:i=="below"?r={overlayX:"center",overlayY:"top"}:i=="before"||i=="left"&&e||i=="right"&&!e?r={overlayX:"end",overlayY:"center"}:(i=="after"||i=="right"&&e||i=="left"&&!e)&&(r={overlayX:"start",overlayY:"center"});let{x:o,y:a}=this._invertPosition(r.overlayX,r.overlayY);return{main:r,fallback:{overlayX:o,overlayY:a}}}_updateTooltipMessage(){this._tooltipInstance&&(this._tooltipInstance.message=this.message,this._tooltipInstance._markForCheck(),pt(()=>{this._tooltipInstance&&this._overlayRef.updatePosition()},{injector:this._injector}))}_setTooltipClass(e){this._tooltipInstance&&(this._tooltipInstance.tooltipClass=e,this._tooltipInstance._markForCheck())}_invertPosition(e,i){return this.position==="above"||this.position==="below"?i==="top"?i="bottom":i==="bottom"&&(i="top"):e==="end"?e="start":e==="start"&&(e="end"),{x:e,y:i}}_updateCurrentPositionClass(e){let{overlayY:i,originX:r,originY:o}=e,a;if(i==="center"?this._dir&&this._dir.value==="rtl"?a=r==="end"?"left":"right":a=r==="start"?"left":"right":a=i==="bottom"&&o==="top"?"above":"below",a!==this._currentPosition){let s=this._overlayRef;if(s){let l=`${this._cssClassPrefix}-${KB}-`;s.removePanelClass(l+this._currentPosition),s.addPanelClass(l+a)}this._currentPosition=a}}_setupPointerEnterEventsIfNeeded(){this._disabled||!this.message||!this._viewInitialized||this._passiveListeners.length||(this._platformSupportsMouseEvents()?this._passiveListeners.push(["mouseenter",e=>{this._setupPointerExitEventsIfNeeded();let i;e.x!==void 0&&e.y!==void 0&&(i=e),this.show(void 0,i)}]):this.touchGestures!=="off"&&(this._disableNativeGesturesIfNecessary(),this._passiveListeners.push(["touchstart",e=>{let i=e.targetTouches?.[0],r=i?{x:i.clientX,y:i.clientY}:void 0;this._setupPointerExitEventsIfNeeded(),this._touchstartTimeout&&clearTimeout(this._touchstartTimeout);let o=500;this._touchstartTimeout=setTimeout(()=>{this._touchstartTimeout=null,this.show(void 0,r)},this._defaultOptions?.touchLongPressShowDelay??o)}])),this._addListeners(this._passiveListeners))}_setupPointerExitEventsIfNeeded(){if(this._pointerExitEventsInitialized)return;this._pointerExitEventsInitialized=!0;let e=[];if(this._platformSupportsMouseEvents())e.push(["mouseleave",i=>{let r=i.relatedTarget;(!r||!this._overlayRef?.overlayElement.contains(r))&&this.hide()}],["wheel",i=>this._wheelListener(i)]);else if(this.touchGestures!=="off"){this._disableNativeGesturesIfNecessary();let i=()=>{this._touchstartTimeout&&clearTimeout(this._touchstartTimeout),this.hide(this._defaultOptions?.touchendHideDelay)};e.push(["touchend",i],["touchcancel",i])}this._addListeners(e),this._passiveListeners.push(...e)}_addListeners(e){e.forEach(([i,r])=>{this._elementRef.nativeElement.addEventListener(i,r,ZB)})}_platformSupportsMouseEvents(){return!this._platform.IOS&&!this._platform.ANDROID}_wheelListener(e){if(this._isTooltipVisible()){let i=this._injector.get(ge).elementFromPoint(e.clientX,e.clientY),r=this._elementRef.nativeElement;i!==r&&!r.contains(i)&&this.hide()}}_disableNativeGesturesIfNecessary(){let e=this.touchGestures;if(e!=="off"){let i=this._elementRef.nativeElement,r=i.style;(e==="on"||i.nodeName!=="INPUT"&&i.nodeName!=="TEXTAREA")&&(r.userSelect=r.msUserSelect=r.webkitUserSelect=r.MozUserSelect="none"),(e==="on"||!i.draggable)&&(r.webkitUserDrag="none"),r.touchAction="none",r.webkitTapHighlightColor="transparent"}}_syncAriaDescription(e){this._ariaDescriptionPending||(this._ariaDescriptionPending=!0,this._ariaDescriber.removeDescription(this._elementRef.nativeElement,e,"tooltip"),this._isDestroyed||pt({write:()=>{this._ariaDescriptionPending=!1,this.message&&!this.disabled&&this._ariaDescriber.describe(this._elementRef.nativeElement,this.message,"tooltip")}},{injector:this._injector}))}static \u0275fac=function(i){return new(i||t)};static \u0275dir=F({type:t,selectors:[["","matTooltip",""]],hostAttrs:[1,"mat-mdc-tooltip-trigger"],hostVars:2,hostBindings:function(i,r){i&2&&G("mat-mdc-tooltip-disabled",r.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 t})(),t3=(()=>{class t{_changeDetectorRef=u(ye);_elementRef=u(q);_isMultiline=!1;message;tooltipClass;_showTimeoutId;_hideTimeoutId;_triggerElement;_mouseLeaveHideDelay;_animationsDisabled=Ye();_tooltip;_closeOnInteraction=!1;_isVisible=!1;_onHide=new z;_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>yee&&e.width>=xee}_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 i=this._tooltip.nativeElement,r=this._showAnimation,o=this._hideAnimation;if(i.classList.remove(e?o:r),i.classList.add(e?r:o),this._isVisible!==e&&(this._isVisible=e,this._changeDetectorRef.markForCheck()),e&&!this._animationsDisabled&&typeof getComputedStyle=="function"){let a=getComputedStyle(i);(a.getPropertyValue("animation-duration")==="0s"||a.getPropertyValue("animation-name")==="none")&&(this._animationsDisabled=!0)}e&&this._onShow(),this._animationsDisabled&&(i.classList.add("_mat-animation-noopable"),this._finalizeAnimation(e))}static \u0275fac=function(i){return new(i||t)};static \u0275cmp=E({type:t,selectors:[["mat-tooltip-component"]],viewQuery:function(i,r){if(i&1&&ie(_ee,7),i&2){let o;B(o=j())&&(r._tooltip=o.first)}},hostAttrs:["aria-hidden","true"],hostBindings:function(i,r){i&1&&S("mouseleave",function(a){return r._handleMouseLeave(a)})},decls:4,vars:4,consts:[["tooltip",""],[1,"mdc-tooltip","mat-mdc-tooltip",3,"animationend","ngClass"],[1,"mat-mdc-tooltip-surface","mdc-tooltip__surface"]],template:function(i,r){if(i&1){let o=Y();h(0,"div",1,0),S("animationend",function(s){return I(o),A(r._handleAnimationEnd(s))}),h(2,"div",2),_(3),p()()}i&2&&(G("mdc-tooltip--multiline",r._isMultiline),y("ngClass",r.tooltipClass),g(3),H(r.message))},dependencies:[Pd],styles:[`.mat-mdc-tooltip{position:relative;transform:scale(0);display:inline-flex}.mat-mdc-tooltip::before{content:"";top:0;right:0;bottom:0;left:0;z-index:-1;position:absolute}.mat-mdc-tooltip-panel-below .mat-mdc-tooltip::before{top:-8px}.mat-mdc-tooltip-panel-above .mat-mdc-tooltip::before{bottom:-8px}.mat-mdc-tooltip-panel-right .mat-mdc-tooltip::before{left:-8px}.mat-mdc-tooltip-panel-left .mat-mdc-tooltip::before{right:-8px}.mat-mdc-tooltip._mat-animation-noopable{animation:none;transform:scale(1)}.mat-mdc-tooltip-surface{word-break:normal;overflow-wrap:anywhere;padding:4px 8px;min-width:40px;max-width:200px;min-height:24px;max-height:40vh;box-sizing:border-box;overflow:hidden;text-align:center;will-change:transform,opacity;background-color:var(--mat-tooltip-container-color, var(--mat-sys-inverse-surface));color:var(--mat-tooltip-supporting-text-color, var(--mat-sys-inverse-on-surface));border-radius:var(--mat-tooltip-container-shape, var(--mat-sys-corner-extra-small));font-family:var(--mat-tooltip-supporting-text-font, var(--mat-sys-body-small-font));font-size:var(--mat-tooltip-supporting-text-size, var(--mat-sys-body-small-size));font-weight:var(--mat-tooltip-supporting-text-weight, var(--mat-sys-body-small-weight));line-height:var(--mat-tooltip-supporting-text-line-height, var(--mat-sys-body-small-line-height));letter-spacing:var(--mat-tooltip-supporting-text-tracking, var(--mat-sys-body-small-tracking))}.mat-mdc-tooltip-surface::before{position:absolute;box-sizing:border-box;width:100%;height:100%;top:0;left:0;border:1px solid rgba(0,0,0,0);border-radius:inherit;content:"";pointer-events:none}.mdc-tooltip--multiline .mat-mdc-tooltip-surface{text-align:left}[dir=rtl] .mdc-tooltip--multiline .mat-mdc-tooltip-surface{text-align:right}.mat-mdc-tooltip-panel{line-height:normal}.mat-mdc-tooltip-panel.mat-mdc-tooltip-panel-non-interactive{pointer-events:none}@keyframes mat-mdc-tooltip-show{0%{opacity:0;transform:scale(0.8)}100%{opacity:1;transform:scale(1)}}@keyframes mat-mdc-tooltip-hide{0%{opacity:1;transform:scale(1)}100%{opacity:0;transform:scale(0.8)}}.mat-mdc-tooltip-show{animation:mat-mdc-tooltip-show 150ms cubic-bezier(0, 0, 0.2, 1) forwards}.mat-mdc-tooltip-hide{animation:mat-mdc-tooltip-hide 75ms cubic-bezier(0.4, 0, 1, 1) forwards} +`],encapsulation:2,changeDetection:0})}return t})();var Br=(()=>{class t{static \u0275fac=function(i){return new(i||t)};static \u0275mod=ee({type:t});static \u0275inj=J({providers:[dS],imports:[ll,er,we,we,vr]})}return t})();var Cee=["matButton",""],wee=[[["",8,"material-icons",3,"iconPositionEnd",""],["mat-icon",3,"iconPositionEnd",""],["","matButtonIcon","",3,"iconPositionEnd",""]],"*",[["","iconPositionEnd","",8,"material-icons"],["mat-icon","iconPositionEnd",""],["","matButtonIcon","","iconPositionEnd",""]]],Dee=[".material-icons:not([iconPositionEnd]), mat-icon:not([iconPositionEnd]), [matButtonIcon]:not([iconPositionEnd])","*",".material-icons[iconPositionEnd], mat-icon[iconPositionEnd], [matButtonIcon][iconPositionEnd]"];var i3=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"]]]),kt=(()=>{class t extends sS{get appearance(){return this._appearance}set appearance(e){this.setAppearance(e||this._config?.defaultAppearance||"text")}_appearance=null;constructor(){super();let e=Eee(this._elementRef.nativeElement);e&&this.setAppearance(e)}setAppearance(e){if(e===this._appearance)return;let i=this._elementRef.nativeElement.classList,r=this._appearance?i3.get(this._appearance):null,o=i3.get(e);r&&i.remove(...r),i.add(...o),this._appearance=e}static \u0275fac=function(i){return new(i||t)};static \u0275cmp=E({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:[le],attrs:Cee,ngContentSelectors:Dee,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(i,r){i&1&&(Me(wee),ai(0,"span",0),oe(1),ft(2,"span",1),oe(3,1),vt(),oe(4,2),ai(5,"span",2)(6,"span",3)),i&2&&G("mdc-button__ripple",!r._isFab)("mdc-fab__ripple",r._isFab)},styles:[`.mat-mdc-button-base{text-decoration:none}.mat-mdc-button-base .mat-icon{min-height:fit-content;flex-shrink:0}.mdc-button{-webkit-user-select:none;user-select:none;position:relative;display:inline-flex;align-items:center;justify-content:center;box-sizing:border-box;min-width:64px;border:none;outline:none;line-height:inherit;-webkit-appearance:none;overflow:visible;vertical-align:middle;background:rgba(0,0,0,0);padding:0 8px}.mdc-button::-moz-focus-inner{padding:0;border:0}.mdc-button:active{outline:none}.mdc-button:hover{cursor:pointer}.mdc-button:disabled{cursor:default;pointer-events:none}.mdc-button[hidden]{display:none}.mdc-button .mdc-button__label{position:relative}.mat-mdc-button{padding:0 var(--mat-button-text-horizontal-padding, 12px);height:var(--mat-button-text-container-height, 40px);font-family:var(--mat-button-text-label-text-font, var(--mat-sys-label-large-font));font-size:var(--mat-button-text-label-text-size, var(--mat-sys-label-large-size));letter-spacing:var(--mat-button-text-label-text-tracking, var(--mat-sys-label-large-tracking));text-transform:var(--mat-button-text-label-text-transform);font-weight:var(--mat-button-text-label-text-weight, var(--mat-sys-label-large-weight))}.mat-mdc-button,.mat-mdc-button .mdc-button__ripple{border-radius:var(--mat-button-text-container-shape, var(--mat-sys-corner-full))}.mat-mdc-button:not(:disabled){color:var(--mat-button-text-label-text-color, var(--mat-sys-primary))}.mat-mdc-button[disabled],.mat-mdc-button.mat-mdc-button-disabled{cursor:default;pointer-events:none;color:var(--mat-button-text-disabled-label-text-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent))}.mat-mdc-button.mat-mdc-button-disabled-interactive{pointer-events:auto}.mat-mdc-button:has(.material-icons,mat-icon,[matButtonIcon]){padding:0 var(--mat-button-text-with-icon-horizontal-padding, 16px)}.mat-mdc-button>.mat-icon{margin-right:var(--mat-button-text-icon-spacing, 8px);margin-left:var(--mat-button-text-icon-offset, -4px)}[dir=rtl] .mat-mdc-button>.mat-icon{margin-right:var(--mat-button-text-icon-offset, -4px);margin-left:var(--mat-button-text-icon-spacing, 8px)}.mat-mdc-button .mdc-button__label+.mat-icon{margin-right:var(--mat-button-text-icon-offset, -4px);margin-left:var(--mat-button-text-icon-spacing, 8px)}[dir=rtl] .mat-mdc-button .mdc-button__label+.mat-icon{margin-right:var(--mat-button-text-icon-spacing, 8px);margin-left:var(--mat-button-text-icon-offset, -4px)}.mat-mdc-button .mat-ripple-element{background-color:var(--mat-button-text-ripple-color, color-mix(in srgb, var(--mat-sys-primary) calc(var(--mat-sys-pressed-state-layer-opacity) * 100%), transparent))}.mat-mdc-button .mat-mdc-button-persistent-ripple::before{background-color:var(--mat-button-text-state-layer-color, var(--mat-sys-primary))}.mat-mdc-button.mat-mdc-button-disabled .mat-mdc-button-persistent-ripple::before{background-color:var(--mat-button-text-disabled-state-layer-color, var(--mat-sys-on-surface-variant))}.mat-mdc-button:hover>.mat-mdc-button-persistent-ripple::before{opacity:var(--mat-button-text-hover-state-layer-opacity, var(--mat-sys-hover-state-layer-opacity))}.mat-mdc-button.cdk-program-focused>.mat-mdc-button-persistent-ripple::before,.mat-mdc-button.cdk-keyboard-focused>.mat-mdc-button-persistent-ripple::before,.mat-mdc-button.mat-mdc-button-disabled-interactive:focus>.mat-mdc-button-persistent-ripple::before{opacity:var(--mat-button-text-focus-state-layer-opacity, var(--mat-sys-focus-state-layer-opacity))}.mat-mdc-button:active>.mat-mdc-button-persistent-ripple::before{opacity:var(--mat-button-text-pressed-state-layer-opacity, var(--mat-sys-pressed-state-layer-opacity))}.mat-mdc-button .mat-mdc-button-touch-target{position:absolute;top:50%;height:var(--mat-button-text-touch-target-size, 48px);display:var(--mat-button-text-touch-target-display, block);left:0;right:0;transform:translateY(-50%)}.mat-mdc-unelevated-button{transition:box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);height:var(--mat-button-filled-container-height, 40px);font-family:var(--mat-button-filled-label-text-font, var(--mat-sys-label-large-font));font-size:var(--mat-button-filled-label-text-size, var(--mat-sys-label-large-size));letter-spacing:var(--mat-button-filled-label-text-tracking, var(--mat-sys-label-large-tracking));text-transform:var(--mat-button-filled-label-text-transform);font-weight:var(--mat-button-filled-label-text-weight, var(--mat-sys-label-large-weight));padding:0 var(--mat-button-filled-horizontal-padding, 24px)}.mat-mdc-unelevated-button>.mat-icon{margin-right:var(--mat-button-filled-icon-spacing, 8px);margin-left:var(--mat-button-filled-icon-offset, -8px)}[dir=rtl] .mat-mdc-unelevated-button>.mat-icon{margin-right:var(--mat-button-filled-icon-offset, -8px);margin-left:var(--mat-button-filled-icon-spacing, 8px)}.mat-mdc-unelevated-button .mdc-button__label+.mat-icon{margin-right:var(--mat-button-filled-icon-offset, -8px);margin-left:var(--mat-button-filled-icon-spacing, 8px)}[dir=rtl] .mat-mdc-unelevated-button .mdc-button__label+.mat-icon{margin-right:var(--mat-button-filled-icon-spacing, 8px);margin-left:var(--mat-button-filled-icon-offset, -8px)}.mat-mdc-unelevated-button .mat-ripple-element{background-color:var(--mat-button-filled-ripple-color, color-mix(in srgb, var(--mat-sys-on-primary) calc(var(--mat-sys-pressed-state-layer-opacity) * 100%), transparent))}.mat-mdc-unelevated-button .mat-mdc-button-persistent-ripple::before{background-color:var(--mat-button-filled-state-layer-color, var(--mat-sys-on-primary))}.mat-mdc-unelevated-button.mat-mdc-button-disabled .mat-mdc-button-persistent-ripple::before{background-color:var(--mat-button-filled-disabled-state-layer-color, var(--mat-sys-on-surface-variant))}.mat-mdc-unelevated-button:hover>.mat-mdc-button-persistent-ripple::before{opacity:var(--mat-button-filled-hover-state-layer-opacity, var(--mat-sys-hover-state-layer-opacity))}.mat-mdc-unelevated-button.cdk-program-focused>.mat-mdc-button-persistent-ripple::before,.mat-mdc-unelevated-button.cdk-keyboard-focused>.mat-mdc-button-persistent-ripple::before,.mat-mdc-unelevated-button.mat-mdc-button-disabled-interactive:focus>.mat-mdc-button-persistent-ripple::before{opacity:var(--mat-button-filled-focus-state-layer-opacity, var(--mat-sys-focus-state-layer-opacity))}.mat-mdc-unelevated-button:active>.mat-mdc-button-persistent-ripple::before{opacity:var(--mat-button-filled-pressed-state-layer-opacity, var(--mat-sys-pressed-state-layer-opacity))}.mat-mdc-unelevated-button .mat-mdc-button-touch-target{position:absolute;top:50%;height:var(--mat-button-filled-touch-target-size, 48px);display:var(--mat-button-filled-touch-target-display, block);left:0;right:0;transform:translateY(-50%)}.mat-mdc-unelevated-button:not(:disabled){color:var(--mat-button-filled-label-text-color, var(--mat-sys-on-primary));background-color:var(--mat-button-filled-container-color, var(--mat-sys-primary))}.mat-mdc-unelevated-button,.mat-mdc-unelevated-button .mdc-button__ripple{border-radius:var(--mat-button-filled-container-shape, var(--mat-sys-corner-full))}.mat-mdc-unelevated-button[disabled],.mat-mdc-unelevated-button.mat-mdc-button-disabled{cursor:default;pointer-events:none;color:var(--mat-button-filled-disabled-label-text-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent));background-color:var(--mat-button-filled-disabled-container-color, color-mix(in srgb, var(--mat-sys-on-surface) 12%, transparent))}.mat-mdc-unelevated-button.mat-mdc-button-disabled-interactive{pointer-events:auto}.mat-mdc-raised-button{transition:box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);box-shadow:var(--mat-button-protected-container-elevation-shadow, var(--mat-sys-level1));height:var(--mat-button-protected-container-height, 40px);font-family:var(--mat-button-protected-label-text-font, var(--mat-sys-label-large-font));font-size:var(--mat-button-protected-label-text-size, var(--mat-sys-label-large-size));letter-spacing:var(--mat-button-protected-label-text-tracking, var(--mat-sys-label-large-tracking));text-transform:var(--mat-button-protected-label-text-transform);font-weight:var(--mat-button-protected-label-text-weight, var(--mat-sys-label-large-weight));padding:0 var(--mat-button-protected-horizontal-padding, 24px)}.mat-mdc-raised-button>.mat-icon{margin-right:var(--mat-button-protected-icon-spacing, 8px);margin-left:var(--mat-button-protected-icon-offset, -8px)}[dir=rtl] .mat-mdc-raised-button>.mat-icon{margin-right:var(--mat-button-protected-icon-offset, -8px);margin-left:var(--mat-button-protected-icon-spacing, 8px)}.mat-mdc-raised-button .mdc-button__label+.mat-icon{margin-right:var(--mat-button-protected-icon-offset, -8px);margin-left:var(--mat-button-protected-icon-spacing, 8px)}[dir=rtl] .mat-mdc-raised-button .mdc-button__label+.mat-icon{margin-right:var(--mat-button-protected-icon-spacing, 8px);margin-left:var(--mat-button-protected-icon-offset, -8px)}.mat-mdc-raised-button .mat-ripple-element{background-color:var(--mat-button-protected-ripple-color, color-mix(in srgb, var(--mat-sys-primary) calc(var(--mat-sys-pressed-state-layer-opacity) * 100%), transparent))}.mat-mdc-raised-button .mat-mdc-button-persistent-ripple::before{background-color:var(--mat-button-protected-state-layer-color, var(--mat-sys-primary))}.mat-mdc-raised-button.mat-mdc-button-disabled .mat-mdc-button-persistent-ripple::before{background-color:var(--mat-button-protected-disabled-state-layer-color, var(--mat-sys-on-surface-variant))}.mat-mdc-raised-button:hover>.mat-mdc-button-persistent-ripple::before{opacity:var(--mat-button-protected-hover-state-layer-opacity, var(--mat-sys-hover-state-layer-opacity))}.mat-mdc-raised-button.cdk-program-focused>.mat-mdc-button-persistent-ripple::before,.mat-mdc-raised-button.cdk-keyboard-focused>.mat-mdc-button-persistent-ripple::before,.mat-mdc-raised-button.mat-mdc-button-disabled-interactive:focus>.mat-mdc-button-persistent-ripple::before{opacity:var(--mat-button-protected-focus-state-layer-opacity, var(--mat-sys-focus-state-layer-opacity))}.mat-mdc-raised-button:active>.mat-mdc-button-persistent-ripple::before{opacity:var(--mat-button-protected-pressed-state-layer-opacity, var(--mat-sys-pressed-state-layer-opacity))}.mat-mdc-raised-button .mat-mdc-button-touch-target{position:absolute;top:50%;height:var(--mat-button-protected-touch-target-size, 48px);display:var(--mat-button-protected-touch-target-display, block);left:0;right:0;transform:translateY(-50%)}.mat-mdc-raised-button:not(:disabled){color:var(--mat-button-protected-label-text-color, var(--mat-sys-primary));background-color:var(--mat-button-protected-container-color, var(--mat-sys-surface))}.mat-mdc-raised-button,.mat-mdc-raised-button .mdc-button__ripple{border-radius:var(--mat-button-protected-container-shape, var(--mat-sys-corner-full))}.mat-mdc-raised-button:hover{box-shadow:var(--mat-button-protected-hover-container-elevation-shadow, var(--mat-sys-level2))}.mat-mdc-raised-button:focus{box-shadow:var(--mat-button-protected-focus-container-elevation-shadow, var(--mat-sys-level1))}.mat-mdc-raised-button:active,.mat-mdc-raised-button:focus:active{box-shadow:var(--mat-button-protected-pressed-container-elevation-shadow, var(--mat-sys-level1))}.mat-mdc-raised-button[disabled],.mat-mdc-raised-button.mat-mdc-button-disabled{cursor:default;pointer-events:none;color:var(--mat-button-protected-disabled-label-text-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent));background-color:var(--mat-button-protected-disabled-container-color, color-mix(in srgb, var(--mat-sys-on-surface) 12%, transparent))}.mat-mdc-raised-button[disabled].mat-mdc-button-disabled,.mat-mdc-raised-button.mat-mdc-button-disabled.mat-mdc-button-disabled{box-shadow:var(--mat-button-protected-disabled-container-elevation-shadow, var(--mat-sys-level0))}.mat-mdc-raised-button.mat-mdc-button-disabled-interactive{pointer-events:auto}.mat-mdc-outlined-button{border-style:solid;transition:border 280ms cubic-bezier(0.4, 0, 0.2, 1);height:var(--mat-button-outlined-container-height, 40px);font-family:var(--mat-button-outlined-label-text-font, var(--mat-sys-label-large-font));font-size:var(--mat-button-outlined-label-text-size, var(--mat-sys-label-large-size));letter-spacing:var(--mat-button-outlined-label-text-tracking, var(--mat-sys-label-large-tracking));text-transform:var(--mat-button-outlined-label-text-transform);font-weight:var(--mat-button-outlined-label-text-weight, var(--mat-sys-label-large-weight));border-radius:var(--mat-button-outlined-container-shape, var(--mat-sys-corner-full));border-width:var(--mat-button-outlined-outline-width, 1px);padding:0 var(--mat-button-outlined-horizontal-padding, 24px)}.mat-mdc-outlined-button>.mat-icon{margin-right:var(--mat-button-outlined-icon-spacing, 8px);margin-left:var(--mat-button-outlined-icon-offset, -8px)}[dir=rtl] .mat-mdc-outlined-button>.mat-icon{margin-right:var(--mat-button-outlined-icon-offset, -8px);margin-left:var(--mat-button-outlined-icon-spacing, 8px)}.mat-mdc-outlined-button .mdc-button__label+.mat-icon{margin-right:var(--mat-button-outlined-icon-offset, -8px);margin-left:var(--mat-button-outlined-icon-spacing, 8px)}[dir=rtl] .mat-mdc-outlined-button .mdc-button__label+.mat-icon{margin-right:var(--mat-button-outlined-icon-spacing, 8px);margin-left:var(--mat-button-outlined-icon-offset, -8px)}.mat-mdc-outlined-button .mat-ripple-element{background-color:var(--mat-button-outlined-ripple-color, color-mix(in srgb, var(--mat-sys-primary) calc(var(--mat-sys-pressed-state-layer-opacity) * 100%), transparent))}.mat-mdc-outlined-button .mat-mdc-button-persistent-ripple::before{background-color:var(--mat-button-outlined-state-layer-color, var(--mat-sys-primary))}.mat-mdc-outlined-button.mat-mdc-button-disabled .mat-mdc-button-persistent-ripple::before{background-color:var(--mat-button-outlined-disabled-state-layer-color, var(--mat-sys-on-surface-variant))}.mat-mdc-outlined-button:hover>.mat-mdc-button-persistent-ripple::before{opacity:var(--mat-button-outlined-hover-state-layer-opacity, var(--mat-sys-hover-state-layer-opacity))}.mat-mdc-outlined-button.cdk-program-focused>.mat-mdc-button-persistent-ripple::before,.mat-mdc-outlined-button.cdk-keyboard-focused>.mat-mdc-button-persistent-ripple::before,.mat-mdc-outlined-button.mat-mdc-button-disabled-interactive:focus>.mat-mdc-button-persistent-ripple::before{opacity:var(--mat-button-outlined-focus-state-layer-opacity, var(--mat-sys-focus-state-layer-opacity))}.mat-mdc-outlined-button:active>.mat-mdc-button-persistent-ripple::before{opacity:var(--mat-button-outlined-pressed-state-layer-opacity, var(--mat-sys-pressed-state-layer-opacity))}.mat-mdc-outlined-button .mat-mdc-button-touch-target{position:absolute;top:50%;height:var(--mat-button-outlined-touch-target-size, 48px);display:var(--mat-button-outlined-touch-target-display, block);left:0;right:0;transform:translateY(-50%)}.mat-mdc-outlined-button:not(:disabled){color:var(--mat-button-outlined-label-text-color, var(--mat-sys-primary));border-color:var(--mat-button-outlined-outline-color, var(--mat-sys-outline))}.mat-mdc-outlined-button[disabled],.mat-mdc-outlined-button.mat-mdc-button-disabled{cursor:default;pointer-events:none;color:var(--mat-button-outlined-disabled-label-text-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent));border-color:var(--mat-button-outlined-disabled-outline-color, color-mix(in srgb, var(--mat-sys-on-surface) 12%, transparent))}.mat-mdc-outlined-button.mat-mdc-button-disabled-interactive{pointer-events:auto}.mat-tonal-button{transition:box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);height:var(--mat-button-tonal-container-height, 40px);font-family:var(--mat-button-tonal-label-text-font, var(--mat-sys-label-large-font));font-size:var(--mat-button-tonal-label-text-size, var(--mat-sys-label-large-size));letter-spacing:var(--mat-button-tonal-label-text-tracking, var(--mat-sys-label-large-tracking));text-transform:var(--mat-button-tonal-label-text-transform);font-weight:var(--mat-button-tonal-label-text-weight, var(--mat-sys-label-large-weight));padding:0 var(--mat-button-tonal-horizontal-padding, 24px)}.mat-tonal-button:not(:disabled){color:var(--mat-button-tonal-label-text-color, var(--mat-sys-on-secondary-container));background-color:var(--mat-button-tonal-container-color, var(--mat-sys-secondary-container))}.mat-tonal-button,.mat-tonal-button .mdc-button__ripple{border-radius:var(--mat-button-tonal-container-shape, var(--mat-sys-corner-full))}.mat-tonal-button[disabled],.mat-tonal-button.mat-mdc-button-disabled{cursor:default;pointer-events:none;color:var(--mat-button-tonal-disabled-label-text-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent));background-color:var(--mat-button-tonal-disabled-container-color, color-mix(in srgb, var(--mat-sys-on-surface) 12%, transparent))}.mat-tonal-button.mat-mdc-button-disabled-interactive{pointer-events:auto}.mat-tonal-button>.mat-icon{margin-right:var(--mat-button-tonal-icon-spacing, 8px);margin-left:var(--mat-button-tonal-icon-offset, -8px)}[dir=rtl] .mat-tonal-button>.mat-icon{margin-right:var(--mat-button-tonal-icon-offset, -8px);margin-left:var(--mat-button-tonal-icon-spacing, 8px)}.mat-tonal-button .mdc-button__label+.mat-icon{margin-right:var(--mat-button-tonal-icon-offset, -8px);margin-left:var(--mat-button-tonal-icon-spacing, 8px)}[dir=rtl] .mat-tonal-button .mdc-button__label+.mat-icon{margin-right:var(--mat-button-tonal-icon-spacing, 8px);margin-left:var(--mat-button-tonal-icon-offset, -8px)}.mat-tonal-button .mat-ripple-element{background-color:var(--mat-button-tonal-ripple-color, color-mix(in srgb, var(--mat-sys-on-secondary-container) calc(var(--mat-sys-pressed-state-layer-opacity) * 100%), transparent))}.mat-tonal-button .mat-mdc-button-persistent-ripple::before{background-color:var(--mat-button-tonal-state-layer-color, var(--mat-sys-on-secondary-container))}.mat-tonal-button.mat-mdc-button-disabled .mat-mdc-button-persistent-ripple::before{background-color:var(--mat-button-tonal-disabled-state-layer-color, var(--mat-sys-on-surface-variant))}.mat-tonal-button:hover>.mat-mdc-button-persistent-ripple::before{opacity:var(--mat-button-tonal-hover-state-layer-opacity, var(--mat-sys-hover-state-layer-opacity))}.mat-tonal-button.cdk-program-focused>.mat-mdc-button-persistent-ripple::before,.mat-tonal-button.cdk-keyboard-focused>.mat-mdc-button-persistent-ripple::before,.mat-tonal-button.mat-mdc-button-disabled-interactive:focus>.mat-mdc-button-persistent-ripple::before{opacity:var(--mat-button-tonal-focus-state-layer-opacity, var(--mat-sys-focus-state-layer-opacity))}.mat-tonal-button:active>.mat-mdc-button-persistent-ripple::before{opacity:var(--mat-button-tonal-pressed-state-layer-opacity, var(--mat-sys-pressed-state-layer-opacity))}.mat-tonal-button .mat-mdc-button-touch-target{position:absolute;top:50%;height:var(--mat-button-tonal-touch-target-size, 48px);display:var(--mat-button-tonal-touch-target-display, block);left:0;right:0;transform:translateY(-50%)}.mat-mdc-button,.mat-mdc-unelevated-button,.mat-mdc-raised-button,.mat-mdc-outlined-button,.mat-tonal-button{-webkit-tap-highlight-color:rgba(0,0,0,0)}.mat-mdc-button .mat-mdc-button-ripple,.mat-mdc-button .mat-mdc-button-persistent-ripple,.mat-mdc-button .mat-mdc-button-persistent-ripple::before,.mat-mdc-unelevated-button .mat-mdc-button-ripple,.mat-mdc-unelevated-button .mat-mdc-button-persistent-ripple,.mat-mdc-unelevated-button .mat-mdc-button-persistent-ripple::before,.mat-mdc-raised-button .mat-mdc-button-ripple,.mat-mdc-raised-button .mat-mdc-button-persistent-ripple,.mat-mdc-raised-button .mat-mdc-button-persistent-ripple::before,.mat-mdc-outlined-button .mat-mdc-button-ripple,.mat-mdc-outlined-button .mat-mdc-button-persistent-ripple,.mat-mdc-outlined-button .mat-mdc-button-persistent-ripple::before,.mat-tonal-button .mat-mdc-button-ripple,.mat-tonal-button .mat-mdc-button-persistent-ripple,.mat-tonal-button .mat-mdc-button-persistent-ripple::before{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none;border-radius:inherit}.mat-mdc-button .mat-mdc-button-ripple,.mat-mdc-unelevated-button .mat-mdc-button-ripple,.mat-mdc-raised-button .mat-mdc-button-ripple,.mat-mdc-outlined-button .mat-mdc-button-ripple,.mat-tonal-button .mat-mdc-button-ripple{overflow:hidden}.mat-mdc-button .mat-mdc-button-persistent-ripple::before,.mat-mdc-unelevated-button .mat-mdc-button-persistent-ripple::before,.mat-mdc-raised-button .mat-mdc-button-persistent-ripple::before,.mat-mdc-outlined-button .mat-mdc-button-persistent-ripple::before,.mat-tonal-button .mat-mdc-button-persistent-ripple::before{content:"";opacity:0}.mat-mdc-button .mdc-button__label,.mat-mdc-button .mat-icon,.mat-mdc-unelevated-button .mdc-button__label,.mat-mdc-unelevated-button .mat-icon,.mat-mdc-raised-button .mdc-button__label,.mat-mdc-raised-button .mat-icon,.mat-mdc-outlined-button .mdc-button__label,.mat-mdc-outlined-button .mat-icon,.mat-tonal-button .mdc-button__label,.mat-tonal-button .mat-icon{z-index:1;position:relative}.mat-mdc-button .mat-focus-indicator,.mat-mdc-unelevated-button .mat-focus-indicator,.mat-mdc-raised-button .mat-focus-indicator,.mat-mdc-outlined-button .mat-focus-indicator,.mat-tonal-button .mat-focus-indicator{top:0;left:0;right:0;bottom:0;position:absolute;border-radius:inherit}.mat-mdc-button:focus>.mat-focus-indicator::before,.mat-mdc-unelevated-button:focus>.mat-focus-indicator::before,.mat-mdc-raised-button:focus>.mat-focus-indicator::before,.mat-mdc-outlined-button:focus>.mat-focus-indicator::before,.mat-tonal-button:focus>.mat-focus-indicator::before{content:"";border-radius:inherit}.mat-mdc-button._mat-animation-noopable,.mat-mdc-unelevated-button._mat-animation-noopable,.mat-mdc-raised-button._mat-animation-noopable,.mat-mdc-outlined-button._mat-animation-noopable,.mat-tonal-button._mat-animation-noopable{transition:none !important;animation:none !important}.mat-mdc-button>.mat-icon,.mat-mdc-unelevated-button>.mat-icon,.mat-mdc-raised-button>.mat-icon,.mat-mdc-outlined-button>.mat-icon,.mat-tonal-button>.mat-icon{display:inline-block;position:relative;vertical-align:top;font-size:1.125rem;height:1.125rem;width:1.125rem}.mat-mdc-outlined-button .mat-mdc-button-ripple,.mat-mdc-outlined-button .mdc-button__ripple{top:-1px;left:-1px;bottom:-1px;right:-1px}.mat-mdc-unelevated-button .mat-focus-indicator::before,.mat-tonal-button .mat-focus-indicator::before,.mat-mdc-raised-button .mat-focus-indicator::before{margin:calc(calc(var(--mat-focus-indicator-border-width, 3px) + 2px)*-1)}.mat-mdc-outlined-button .mat-focus-indicator::before{margin:calc(calc(var(--mat-focus-indicator-border-width, 3px) + 3px)*-1)} `,`@media(forced-colors: active){.mat-mdc-button:not(.mdc-button--outlined),.mat-mdc-unelevated-button:not(.mdc-button--outlined),.mat-mdc-raised-button:not(.mdc-button--outlined),.mat-mdc-outlined-button:not(.mdc-button--outlined),.mat-mdc-button-base.mat-tonal-button,.mat-mdc-icon-button.mat-mdc-icon-button,.mat-mdc-outlined-button .mdc-button__ripple{outline:solid 1px}} -`],encapsulation:2,changeDetection:0})}return t})();function Mee(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 ze=(()=>{class t{static \u0275fac=function(i){return new(i||t)};static \u0275mod=ee({type:t});static \u0275inj=J({imports:[we,yo,we]})}return t})();function kee(t,n){if(t&1&&(h(0,"mat-option",17),_(1),p()),t&2){let e=n.$implicit;y("value",e),g(),ve(" ",e," ")}}function See(t,n){if(t&1){let e=Y();h(0,"mat-form-field",14)(1,"mat-select",16,0),S("selectionChange",function(r){I(e);let o=C(2);return A(o._changePageSize(r.value))}),xt(3,kee,2,2,"mat-option",17,xm),p(),h(5,"div",18),S("click",function(){I(e);let r=Se(2);return A(r.open())}),p()()}if(t&2){let e=C(2);y("appearance",e._formFieldAppearance)("color",e.color),g(),y("value",e.pageSize)("disabled",e.disabled),Kl("aria-labelledby",e._pageSizeLabelId),y("panelClass",e.selectConfig.panelClass||"")("disableOptionCentering",e.selectConfig.disableOptionCentering),g(2),Ct(e._displayedPageSizeOptions)}}function Tee(t,n){if(t&1&&(h(0,"div",15),_(1),p()),t&2){let e=C(2);g(),H(e.pageSize)}}function Iee(t,n){if(t&1&&(h(0,"div",3)(1,"div",13),_(2),p(),N(3,See,6,7,"mat-form-field",14),N(4,Tee,2,1,"div",15),p()),t&2){let e=C();g(),X("id",e._pageSizeLabelId),g(),ve(" ",e._intl.itemsPerPageLabel," "),g(),L(e._displayedPageSizeOptions.length>1?3:-1),g(),L(e._displayedPageSizeOptions.length<=1?4:-1)}}function Aee(t,n){if(t&1){let e=Y();h(0,"button",19),S("click",function(){I(e);let r=C();return A(r._buttonClicked(0,r._previousButtonsDisabled()))}),Gt(),h(1,"svg",8),k(2,"path",20),p()()}if(t&2){let e=C();y("matTooltip",e._intl.firstPageLabel)("matTooltipDisabled",e._previousButtonsDisabled())("disabled",e._previousButtonsDisabled())("tabindex",e._previousButtonsDisabled()?-1:null),X("aria-label",e._intl.firstPageLabel)}}function Oee(t,n){if(t&1){let e=Y();h(0,"button",21),S("click",function(){I(e);let r=C();return A(r._buttonClicked(r.getNumberOfPages()-1,r._nextButtonsDisabled()))}),Gt(),h(1,"svg",8),k(2,"path",22),p()()}if(t&2){let e=C();y("matTooltip",e._intl.lastPageLabel)("matTooltipDisabled",e._nextButtonsDisabled())("disabled",e._nextButtonsDisabled())("tabindex",e._nextButtonsDisabled()?-1:null),X("aria-label",e._intl.lastPageLabel)}}var gc=(()=>{class t{changes=new z;itemsPerPageLabel="Items per page:";nextPageLabel="Next page";previousPageLabel="Previous page";firstPageLabel="First page";lastPageLabel="Last page";getRangeLabel=(e,i,r)=>{if(r==0||i==0)return`0 of ${r}`;r=Math.max(r,0);let o=e*i,a=o{class t{_intl=u(gc);_changeDetectorRef=u(ye);_formFieldAppearance;_pageSizeLabelId=u(Ze).getId("mat-paginator-page-size-label-");_intlChanges;_isInitialized=!1;_initializedStream=new $a(1);color;get pageIndex(){return this._pageIndex}set pageIndex(e){this._pageIndex=Math.max(e||0,0),this._changeDetectorRef.markForCheck()}_pageIndex=0;get length(){return this._length}set length(e){this._length=e||0,this._changeDetectorRef.markForCheck()}_length=0;get pageSize(){return this._pageSize}set pageSize(e){this._pageSize=Math.max(e||0,0),this._updateDisplayedPageSizeOptions()}_pageSize;get pageSizeOptions(){return this._pageSizeOptions}set pageSizeOptions(e){this._pageSizeOptions=(e||[]).map(i=>ct(i,0)),this._updateDisplayedPageSizeOptions()}_pageSizeOptions=[];hidePageSize=!1;showFirstLastButtons=!1;selectConfig={};disabled=!1;page=new U;_displayedPageSizeOptions;initialized=this._initializedStream;constructor(){let e=this._intl,i=u(Nee,{optional:!0});if(this._intlChanges=e.changes.subscribe(()=>this._changeDetectorRef.markForCheck()),i){let{pageSize:r,pageSizeOptions:o,hidePageSize:a,showFirstLastButtons:s}=i;r!=null&&(this._pageSize=r),o!=null&&(this._pageSizeOptions=o),a!=null&&(this.hidePageSize=a),s!=null&&(this.showFirstLastButtons=s)}this._formFieldAppearance=i?.formFieldAppearance||"outline"}ngOnInit(){this._isInitialized=!0,this._updateDisplayedPageSizeOptions(),this._initializedStream.next()}ngOnDestroy(){this._initializedStream.complete(),this._intlChanges.unsubscribe()}nextPage(){this.hasNextPage()&&this._navigate(this.pageIndex+1)}previousPage(){this.hasPreviousPage()&&this._navigate(this.pageIndex-1)}firstPage(){this.hasPreviousPage()&&this._navigate(0)}lastPage(){this.hasNextPage()&&this._navigate(this.getNumberOfPages()-1)}hasPreviousPage(){return this.pageIndex>=1&&this.pageSize!=0}hasNextPage(){let e=this.getNumberOfPages()-1;return this.pageIndexe-i),this._changeDetectorRef.markForCheck())}_emitPageEvent(e){this.page.emit({previousPageIndex:e,pageIndex:this.pageIndex,pageSize:this.pageSize,length:this.length})}_navigate(e){let i=this.pageIndex;e!==i&&(this.pageIndex=e,this._emitPageEvent(i))}_buttonClicked(e,i){i||this._navigate(e)}static \u0275fac=function(i){return new(i||t)};static \u0275cmp=E({type:t,selectors:[["mat-paginator"]],hostAttrs:["role","group",1,"mat-mdc-paginator"],inputs:{color:"color",pageIndex:[2,"pageIndex","pageIndex",ct],length:[2,"length","length",ct],pageSize:[2,"pageSize","pageSize",ct],pageSizeOptions:"pageSizeOptions",hidePageSize:[2,"hidePageSize","hidePageSize",V],showFirstLastButtons:[2,"showFirstLastButtons","showFirstLastButtons",V],selectConfig:"selectConfig",disabled:[2,"disabled","disabled",V]},outputs:{page:"page"},exportAs:["matPaginator"],decls:14,vars:14,consts:[["selectRef",""],[1,"mat-mdc-paginator-outer-container"],[1,"mat-mdc-paginator-container"],[1,"mat-mdc-paginator-page-size"],[1,"mat-mdc-paginator-range-actions"],["aria-live","polite",1,"mat-mdc-paginator-range-label"],["matIconButton","","type","button","matTooltipPosition","above","disabledInteractive","",1,"mat-mdc-paginator-navigation-first",3,"matTooltip","matTooltipDisabled","disabled","tabindex"],["matIconButton","","type","button","matTooltipPosition","above","disabledInteractive","",1,"mat-mdc-paginator-navigation-previous",3,"click","matTooltip","matTooltipDisabled","disabled","tabindex"],["viewBox","0 0 24 24","focusable","false","aria-hidden","true",1,"mat-mdc-paginator-icon"],["d","M15.41 7.41L14 6l-6 6 6 6 1.41-1.41L10.83 12z"],["matIconButton","","type","button","matTooltipPosition","above","disabledInteractive","",1,"mat-mdc-paginator-navigation-next",3,"click","matTooltip","matTooltipDisabled","disabled","tabindex"],["d","M10 6L8.59 7.41 13.17 12l-4.58 4.59L10 18l6-6z"],["matIconButton","","type","button","matTooltipPosition","above","disabledInteractive","",1,"mat-mdc-paginator-navigation-last",3,"matTooltip","matTooltipDisabled","disabled","tabindex"],[1,"mat-mdc-paginator-page-size-label"],[1,"mat-mdc-paginator-page-size-select",3,"appearance","color"],[1,"mat-mdc-paginator-page-size-value"],["hideSingleSelectionIndicator","",3,"selectionChange","value","disabled","aria-labelledby","panelClass","disableOptionCentering"],[3,"value"],[1,"mat-mdc-paginator-touch-target",3,"click"],["matIconButton","","type","button","matTooltipPosition","above","disabledInteractive","",1,"mat-mdc-paginator-navigation-first",3,"click","matTooltip","matTooltipDisabled","disabled","tabindex"],["d","M18.41 16.59L13.82 12l4.59-4.59L17 6l-6 6 6 6zM6 6h2v12H6z"],["matIconButton","","type","button","matTooltipPosition","above","disabledInteractive","",1,"mat-mdc-paginator-navigation-last",3,"click","matTooltip","matTooltipDisabled","disabled","tabindex"],["d","M5.59 7.41L10.18 12l-4.59 4.59L7 18l6-6-6-6zM16 6h2v12h-2z"]],template:function(i,r){i&1&&(h(0,"div",1)(1,"div",2),N(2,Iee,5,4,"div",3),h(3,"div",4)(4,"div",5),_(5),p(),N(6,Aee,3,5,"button",6),h(7,"button",7),S("click",function(){return r._buttonClicked(r.pageIndex-1,r._previousButtonsDisabled())}),Gt(),h(8,"svg",8),k(9,"path",9),p()(),jo(),h(10,"button",10),S("click",function(){return r._buttonClicked(r.pageIndex+1,r._nextButtonsDisabled())}),Gt(),h(11,"svg",8),k(12,"path",11),p()(),N(13,Oee,3,5,"button",12),p()()()),i&2&&(g(2),L(r.hidePageSize?-1:2),g(3),ve(" ",r._intl.getRangeLabel(r.pageIndex,r.pageSize,r.length)," "),g(),L(r.showFirstLastButtons?6:-1),g(),y("matTooltip",r._intl.previousPageLabel)("matTooltipDisabled",r._previousButtonsDisabled())("disabled",r._previousButtonsDisabled())("tabindex",r._previousButtonsDisabled()?-1:null),X("aria-label",r._intl.previousPageLabel),g(3),y("matTooltip",r._intl.nextPageLabel)("matTooltipDisabled",r._nextButtonsDisabled())("disabled",r._nextButtonsDisabled())("tabindex",r._nextButtonsDisabled()?-1:null),X("aria-label",r._intl.nextPageLabel),g(3),L(r.showFirstLastButtons?13:-1))},dependencies:[Oi,Na,xn,ti,Eo],styles:[`.mat-mdc-paginator{display:block;-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;color:var(--mat-paginator-container-text-color, var(--mat-sys-on-surface));background-color:var(--mat-paginator-container-background-color, var(--mat-sys-surface));font-family:var(--mat-paginator-container-text-font, var(--mat-sys-body-small-font));line-height:var(--mat-paginator-container-text-line-height, var(--mat-sys-body-small-line-height));font-size:var(--mat-paginator-container-text-size, var(--mat-sys-body-small-size));font-weight:var(--mat-paginator-container-text-weight, var(--mat-sys-body-small-weight));letter-spacing:var(--mat-paginator-container-text-tracking, var(--mat-sys-body-small-tracking));--mat-form-field-container-height: var(--mat-paginator-form-field-container-height, 40px);--mat-form-field-container-vertical-padding: var(--mat-paginator-form-field-container-vertical-padding, 8px)}.mat-mdc-paginator .mat-mdc-select-value{font-size:var(--mat-paginator-select-trigger-text-size, var(--mat-sys-body-small-size))}.mat-mdc-paginator .mat-mdc-form-field-subscript-wrapper{display:none}.mat-mdc-paginator .mat-mdc-select{line-height:1.5}.mat-mdc-paginator-outer-container{display:flex}.mat-mdc-paginator-container{display:flex;align-items:center;justify-content:flex-end;padding:0 8px;flex-wrap:wrap;width:100%;min-height:var(--mat-paginator-container-size, 56px)}.mat-mdc-paginator-page-size{display:flex;align-items:baseline;margin-right:8px}[dir=rtl] .mat-mdc-paginator-page-size{margin-right:0;margin-left:8px}.mat-mdc-paginator-page-size-label{margin:0 4px}.mat-mdc-paginator-page-size-select{margin:0 4px;width:var(--mat-paginator-page-size-select-width, 84px)}.mat-mdc-paginator-range-label{margin:0 32px 0 24px}.mat-mdc-paginator-range-actions{display:flex;align-items:center}.mat-mdc-paginator-icon{display:inline-block;width:28px;fill:var(--mat-paginator-enabled-icon-color, var(--mat-sys-on-surface-variant))}.mat-mdc-icon-button[aria-disabled] .mat-mdc-paginator-icon{fill:var(--mat-paginator-disabled-icon-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent))}[dir=rtl] .mat-mdc-paginator-icon{transform:rotate(180deg)}@media(forced-colors: active){.mat-mdc-icon-button[aria-disabled] .mat-mdc-paginator-icon,.mat-mdc-paginator-icon{fill:currentColor}.mat-mdc-paginator-range-actions .mat-mdc-icon-button{outline:solid 1px}.mat-mdc-paginator-range-actions .mat-mdc-icon-button[aria-disabled]{color:GrayText}}.mat-mdc-paginator-touch-target{display:var(--mat-paginator-touch-target-display, block);position:absolute;top:50%;left:50%;width:var(--mat-paginator-page-size-select-width, 84px);height:var(--mat-paginator-page-size-select-touch-target-height, 48px);background-color:rgba(0,0,0,0);transform:translate(-50%, -50%);cursor:pointer} -`],encapsulation:2,changeDetection:0})}return t})(),_c=(()=>{class t{static \u0275fac=function(i){return new(i||t)};static \u0275mod=ee({type:t});static \u0275inj=J({providers:[Pee],imports:[ze,fc,Br,ir]})}return t})();var _g=class extends Li{constructor(){super(...arguments),this._delegate=u(Li)}getValidDateOrNull(n){return this.isDateInstance(n)&&this.isValid(n)?n:null}compareDatetime(n,e,i=!0){return this.compareDate(n,e)||this.getHour(n)-this.getHour(e)||i&&this.getMinute(n)-this.getMinute(e)}sameDatetime(n,e){if(n&&e){let i=this.isValid(n),r=this.isValid(e);return i&&r?!this.compareDatetime(n,e):i===r}return n===e}sameYear(n,e){return n&&e&&this.getYear(n)===this.getYear(e)}sameDay(n,e){return n&&e&&this.getDate(n)===this.getDate(e)&&this.sameMonthAndYear(n,e)}sameHour(n,e){return n&&e&&this.getHour(n)===this.getHour(e)&&this.sameDay(n,e)}sameMinute(n,e){return n&&e&&this.getMinute(n)===this.getMinute(e)&&this.sameHour(n,e)}sameMonthAndYear(n,e){if(n&&e){let i=this.isValid(n),r=this.isValid(e);return i&&r?!(this.getYear(n)-this.getYear(e)||this.getMonth(n)-this.getMonth(e)):i===r}return n===e}clone(n){return this._delegate.clone(n)}addCalendarYears(n,e){return this._delegate.addCalendarYears(n,e)}addCalendarMonths(n,e){return this._delegate.addCalendarMonths(n,e)}addCalendarDays(n,e){return this._delegate.addCalendarDays(n,e)}getYear(n){return this._delegate.getYear(n)}getMonth(n){return this._delegate.getMonth(n)}getDate(n){return this._delegate.getDate(n)}getDayOfWeek(n){return this._delegate.getDayOfWeek(n)}getMonthNames(n){return this._delegate.getMonthNames(n)}getDateNames(){return this._delegate.getDateNames()}getDayOfWeekNames(n){return this._delegate.getDayOfWeekNames(n)}getYearName(n){return this._delegate.getYearName(n)}getFirstDayOfWeek(){return this._delegate.getFirstDayOfWeek()}getNumDaysInMonth(n){return this._delegate.getNumDaysInMonth(n)}createDate(n,e,i){return this._delegate.createDate(n,e,i)}today(){return this._delegate.today()}parse(n,e){return this._delegate.parse(n,e)}format(n,e){return this._delegate.format(n,e)}toIso8601(n){return this._delegate.toIso8601(n)}isDateInstance(n){return this._delegate.isDateInstance(n)}isValid(n){return this._delegate.isValid(n)}invalid(){return this._delegate.invalid()}clampDate(n,e,i){return e&&this.compareDatetime(n,e)<0?e:i&&this.compareDatetime(n,i)>0?i:n}},r3=new T("mtx-datetime-formats"),zGe=o3(24,t=>String(t)),UGe=o3(60,t=>String(t));function o3(t,n){let e=Array(t);for(let i=0;i{let n=class n{transform(i){return ji(i)?i:Q(i)}};n.\u0275fac=function(r){return new(r||n)},n.\u0275pipe=Wr({name:"toObservable",type:n,pure:!0});let t=n;return t})();var s3=(()=>{let n=class n{};n.\u0275fac=function(r){return new(r||n)},n.\u0275mod=ee({type:n}),n.\u0275inj=J({imports:[gt]});let t=n;return t})();function l3(t,n){let e=Array(t);for(let i=0;i{let n=class n extends _g{constructor(){super();let i=u(ys,{optional:!0});this.setLocale(i)}setLocale(i){super.setLocale(i)}getHour(i){return sy(i)}getMinute(i){return ly(i)}isInNextMonth(i,r){let o=this.getDateInNextMonth(i);return super.sameMonthAndYear(o,r)}getWeek(i,r){return dh(i,{weekStartsOn:r})}createDatetime(i,r,o,a,s){if(r<0||r>11)throw Error(`Invalid month index "${r}". Month index has to be between 0 and 11.`);if(o<1)throw Error(`Invalid date "${o}". Date has to be greater than 0.`);if(a<0||a>23)throw Error(`Invalid hour "${a}". Hour has to be between 0 and 23.`);if(s<0||s>59)throw Error(`Invalid minute "${s}". Minute has to be between 0 and 59.`);let l=new Date(i,r,o,a,s);if(!sh(l))throw Error(`Invalid date "${o}" for month with index "${r}".`);return l}getFirstDateOfMonth(i){return lV(i)}getHourNames(){return l3(24,i=>i.toLocaleString(this.locale))}getMinuteNames(){return l3(60,i=>i.toLocaleString(this.locale))}addCalendarHours(i,r){return iV(i,r)}addCalendarMinutes(i,r){return oV(i,r)}deserialize(i){return this._delegate.deserialize(i)}getDateInNextMonth(i){return ah(i,1)}};n.\u0275fac=function(r){return new(r||n)},n.\u0275prov=O({token:n,factory:n.\u0275fac});let t=n;return t})(),Bee={parse:{dateInput:"P",monthInput:"LLLL",yearInput:"yyyy",datetimeInput:"P p",timeInput:"p"},display:{dateInput:"P",monthInput:"LLLL",yearInput:"yyyy",datetimeInput:"P p",timeInput:"p",monthYearLabel:"yyyy",dateA11yLabel:"LLLL dd, yyyy",monthYearA11yLabel:"MMMM yyyy",popupHeaderDateLabel:"ccc, dd LLL"}};function c3(t=Bee){return[{provide:Li,useClass:Vk,deps:[ys]},{provide:_g,useClass:Vee},{provide:r3,useValue:t}]}var jee=["container"];function Hee(t,n){}function zee(t,n){}var Uee=["*"];function $ee(t,n){if(t&1&&k(0,"formly-field",0),t&2){let e=n.$implicit;y("field",e)}}var d3=["fieldComponent"];function Wee(t,n,e){if(n.id)return n.id;let i=n.type;return!i&&n.template&&(i="template"),i instanceof Td&&(i=i.prototype.constructor.name),[t,i,n.key,e].join("_")}function mn(t){return!bc(t.key)&&t.key!==""&&(!Array.isArray(t.key)||t.key.length>0)}function uu(t){if(!mn(t))return[];if(t._keyPath?.key!==t.key){let n=[];if(typeof t.key=="string"){let e=t.key.indexOf("[")===-1?t.key:t.key.replace(/\[(\w+)\]/g,".$1");n=e.indexOf(".")!==-1?e.split("."):[e]}else Array.isArray(t.key)?n=t.key.slice(0):n=[`${t.key}`];nr(t,"_keyPath",{key:t.key,path:n})}return t._keyPath.path.slice(0)}var _S=["required","pattern","minLength","maxLength","min","max"];function bg(t,n){let e=uu(t);if(e.length===0)return;let i=t;for(;i.parent;)i=i.parent,e=[...uu(i),...e];if(n===void 0&&t.resetOnHide){let r=e.pop(),o=e.reduce((a,s)=>a[s]||{},i.model);delete o[r];return}Gee(i.model,e,n)}function Gee(t,n,e){for(let i=0;i{for(let i in e)bc(t[i])||qee(t[i])?t[i]=vc(e[i]):Yee(t[i],e[i])&&Ch(t[i],e[i])}),t}function bc(t){return t==null}function bx(t){return t===void 0}function qee(t){return t===""}function uS(t){return typeof t=="function"}function Yee(t,n){return La(t)&&La(n)&&Object.getPrototypeOf(t)===Object.getPrototypeOf(n)&&!(Array.isArray(t)||Array.isArray(n))}function La(t){return t!=null&&typeof t=="object"}function Qee(t){return!!t&&typeof t.then=="function"}function vc(t){if(!La(t)||ji(t)||t instanceof te||t.changingThisBreaksApplicationSecurity||["RegExp","FileList","File","Blob"].indexOf(t.constructor?.name)!==-1)return t;if(t instanceof Set)return new Set(t);if(t instanceof Map)return new Map(t);if(t instanceof Uint8Array)return new Uint8Array(t);if(t instanceof Uint16Array)return new Uint16Array(t);if(t instanceof Uint32Array)return new Uint32Array(t);if(t._isAMomentObject&&uS(t.clone))return t.clone();if(t instanceof hc)return null;if(t instanceof Date)return new Date(t.getTime());if(Array.isArray(t))return t.slice(0).map(i=>vc(i));let n=Object.getPrototypeOf(t),e=Object.create(n);return e=Object.setPrototypeOf(e,n),Object.keys(t).reduce((i,r)=>{let o=Object.getOwnPropertyDescriptor(t,r);return o.get?Object.defineProperty(i,r,o):i[r]=vc(t[r]),i},e)}function nr(t,n,e){Object.defineProperty(t,n,{enumerable:!1,writable:!0,configurable:!0}),t[n]=e}function u3(t,n,e){let i=[],r=()=>{i.forEach(a=>a()),i=[]},o=Wi(t,n,({firstChange:a,currentValue:s})=>{!a&&e(),r(),La(s)&&s.constructor.name==="Object"&&Object.keys(s).forEach(l=>{i.push(u3(t,[...n,l],e))})});return()=>{o.unsubscribe(),r()}}function Wi(t,n,e){t._observers||nr(t,"_observers",{});let i=t;for(let s=0;s=1&&La(i))){let{enumerable:s}=Object.getOwnPropertyDescriptor(i,r)||{enumerable:!0};Object.defineProperty(i,r,{enumerable:s,configurable:!0,get:()=>a.value,set:l=>{if(l!==a.value){let c=a.value;a.value=l,a.onChange.forEach(d=>d({previousValue:c,currentValue:l,firstChange:!1}))}}})}return{setValue(s,l=!0){if(s===a.value)return;let c=a.value;a.value=s,a.onChange.forEach(d=>{d!==e&&l&&d({previousValue:c,currentValue:s,firstChange:!1})})},unsubscribe(){a.onChange=a.onChange.filter(s=>s!==e),a.onChange.length===0&&delete t._observers[o]}}}function m3(t,n){if(n=Array.isArray(n)?n.join("."):n,!!t.fieldGroup)for(let e=0,i=t.fieldGroup.length;e{n instanceof Id?n.injector.get(ye).markForCheck():n.markForCheck()})}function Kee(t){let n=i=>i.hide||i.expressions?.hide||i.hideExpression,e=!t.resetOnHide||!n(t);if(!n(t)&&t.resetOnHide){let i=t.parent;for(;i&&!n(i);)i=i.parent;e=!i||!n(i)}return!e}function h3(){return+wp.major>18||+wp.major>=18&&+wp.minor>=1}function Zee(t,n){try{return Function(...n,`return ${t};`)}catch(e){console.error(e)}}function Xee(t,n,e){return typeof t=="function"?t.apply(n,e):!!t}function Jee(t,n=!1){let e=t.formControl,i=e._fields?e._fields.indexOf(t):-1;i!==-1&&e._fields.splice(i,1);let r=e.parent;if(!r)return;let o={emitEvent:n};if(r instanceof oS){let a=r.controls.findIndex(s=>s===e);a!==-1&&r.removeAt(a,o)}else if(r instanceof px){let a=uu(t),s=a[a.length-1];r.get([s])===e&&r.removeControl(s,o)}e.setParent(null)}function ete(t){return t.formControl?t.formControl:t.shareFormControl===!1?null:t.form?.get(uu(t))}function p3(t,n,e=!1){if(n=n||t.formControl,n._fields||nr(n,"_fields",[]),n._fields.indexOf(t)===-1&&n._fields.push(t),!t.formControl&&n){nr(t,"formControl",n),n.setValidators(null),n.setAsyncValidators(null),t.props.disabled=!!t.props.disabled;let s=Wi(t,["props","disabled"],({firstChange:l,currentValue:c})=>{l||(c?t.formControl.disable():t.formControl.enable())});n instanceof Jo&&n.registerOnDisabledChange(s.setValue)}if(!t.form||!mn(t))return;let i=t.form,r=uu(t),o=mu(t);!(bc(n.value)&&bc(o))&&n.value!==o&&n instanceof Jo&&n.patchValue(o);for(let s=0;s{nr(n,"_hide",!!i),(!r||r&&i===!0)&&(n.props.hidden=i,n.options._hiddenFieldsForCheck.push({field:n}))}),n.hideExpression&&Wi(n,["hideExpression"],({currentValue:i})=>{n._expressions.hide=this.parseExpressions(n,"hide",typeof i=="boolean"?()=>i:i)});let e=(i,r)=>{typeof r=="string"||uS(r)?n._expressions[i]=this.parseExpressions(n,i,r):r instanceof Fe&&(n._expressions[i]={value$:r.pipe(Be(o=>{this.evalExpr(n,i,o),n.options._detectChanges(n)}))})};n.expressions=n.expressions||{};for(let i of Object.keys(n.expressions))Wi(n,["expressions",i],({currentValue:r})=>{e(i,uS(r)?(...o)=>r(n,o[3]):r)});n.expressionProperties=n.expressionProperties||{};for(let i of Object.keys(n.expressionProperties))Wi(n,["expressionProperties",i],({currentValue:r})=>e(i,r))}postPopulate(n){if(!n.parent&&!n.options.checkExpressions){let e=!1;n.options.checkExpressions=(i,r)=>{if(e)return;e=!0;let o=this.checkExpressions(i,r),a=n.options;a._hiddenFieldsForCheck.sort(s=>s.field.hide?-1:1).forEach(s=>this.changeHideState(s.field,s.field.hide??s.default,!r)),a._hiddenFieldsForCheck=[],o&&this.checkExpressions(n),e=!1}}}parseExpressions(n,e,i){let r;if(n.parent&&["hide","props.disabled"].includes(e)){let a=s=>e==="hide"?s.hide:s.props.disabled;r=()=>{let s=n.parent;for(;s.parent&&!a(s);)s=s.parent;return a(s)}}i=i||(()=>!1),typeof i=="string"&&(i=Zee(i,["model","formState","field"]));let o;return{callback:a=>{try{let s=Xee(r?(...l)=>r(n)||i(...l):i,{field:n},[n.model,n.options.formState,n,a]);return a||o!==s&&(!La(s)||ji(s)||JSON.stringify(s)!==JSON.stringify(o))?(o=s,this.evalExpr(n,e,s),!0):!1}catch(s){throw s.message=`[Formly Error] [Expression "${e}"] ${s.message}`,s}}}}checkExpressions(n,e=!1){if(!n)return!1;let i=!1;if(n._expressions)for(let r of Object.keys(n._expressions))n._expressions[r].callback?.(e)&&(i=!0);return n.fieldGroup?.forEach(r=>this.checkExpressions(r,e)&&(i=!0)),i}changeDisabledState(n,e){n.fieldGroup&&n.fieldGroup.filter(i=>!i._expressions.hasOwnProperty("props.disabled")).forEach(i=>this.changeDisabledState(i,e)),mn(n)&&n.props.disabled!==e&&(n.props.disabled=e)}changeHideState(n,e,i){if(n.fieldGroup&&n.fieldGroup.filter(r=>r&&!r._expressions.hide).forEach(r=>this.changeHideState(r,e,i)),n.formControl&&mn(n)){nr(n,"_hide",!!(e||n.hide));let r=n.formControl;r._fields?.length>1&&vg(r),e===!0&&(!r._fields||r._fields.every(o=>!!o._hide))?(Jee(n,!0),i&&n.resetOnHide&&(bg(n,void 0),n.formControl.reset({value:void 0,disabled:n.formControl.disabled}),n.options.fieldChanges.next({value:void 0,field:n,type:"valueChanges"}),n.fieldGroup&&n.formControl instanceof oS&&(n.fieldGroup.length=0))):e===!1&&(n.resetOnHide&&!bx(n.defaultValue)&&bx(mu(n))&&bg(n,n.defaultValue),p3(n,void 0,!0),n.resetOnHide&&n.fieldArray&&n.fieldGroup?.length!==n.model?.length&&n.options.build(n))}n.options.fieldChanges&&n.options.fieldChanges.next({field:n,type:"hidden",value:e})}evalExpr(n,e,i){if(e.indexOf("model.")===0){let r=e.replace(/^model\./,""),o=n.fieldGroup?n:n.parent,a=n?.key===r?n.formControl:n.form.get(r);!a&&n.get(r)&&(a=n.get(r).formControl),bg({key:r,parent:o,model:n.model},i),a&&!(bc(a.value)&&bc(i))&&a.value!==i&&a.patchValue(i)}else{try{let r=n,o=this._evalExpressionPath(n,e),a=o.length-1;for(let s=0;sr).forEach(r=>{let o=r.match(/['|"](.*?)['|"]/);o?i.push(o[1]):i.push(...r.split(".").filter(a=>a))}),n._expressions[e]&&(n._expressions[e].paths=i),i}},pS=class{constructor(n){this.config=n,this.formId=0}prePopulate(n){let e=n.parent;this.initRootOptions(n),this.initFieldProps(n),e&&(Object.defineProperty(n,"options",{get:()=>e.options,configurable:!0}),Object.defineProperty(n,"model",{get:()=>mn(n)&&n.fieldGroup?mu(n):e.model,configurable:!0})),Object.defineProperty(n,"get",{value:i=>m3(n,i),configurable:!0}),this.getFieldComponentInstance(n).prePopulate?.(n)}onPopulate(n){this.initFieldOptions(n),this.getFieldComponentInstance(n).onPopulate?.(n),n.fieldGroup&&n.fieldGroup.forEach((e,i)=>{e&&(Object.defineProperty(e,"parent",{get:()=>n,configurable:!0}),Object.defineProperty(e,"index",{get:()=>i,configurable:!0})),this.formId++})}postPopulate(n){this.getFieldComponentInstance(n).postPopulate?.(n)}initFieldProps(n){n.props??=n.templateOptions,Object.defineProperty(n,"templateOptions",{get:()=>n.props,set:e=>n.props=e,configurable:!0})}initRootOptions(n){if(n.parent)return;let e=n.options;n.options.formState=n.options.formState||{},e.showError||(e.showError=this.config.extras.showError),e.fieldChanges||nr(e,"fieldChanges",new z),e._hiddenFieldsForCheck||(e._hiddenFieldsForCheck=[]),e._detectChanges=i=>{i._componentRefs&&mS(i),i.fieldGroup?.forEach(r=>r&&e._detectChanges(r))},e.detectChanges=i=>{i.options.checkExpressions?.(i),e._detectChanges(i)},e.resetModel=i=>{i=vc(i??e._initialModel),n.model&&(Object.keys(n.model).forEach(r=>delete n.model[r]),Object.assign(n.model,i||{})),h3()||Wi(e,["parentForm","submitted"]).setValue(!1,!1),e.build(n),n.form.reset(n.model)},e.updateInitialValue=i=>e._initialModel=vc(i??n.model),n.options.updateInitialValue()}initFieldOptions(n){Ch(n,{id:Wee(`formly_${this.formId}`,n,n.index),hooks:{},modelOptions:{},validation:{messages:{}},props:!n.type||!mn(n)?{}:{label:"",placeholder:"",disabled:!1}}),this.config.extras.resetFieldOnHide&&n.resetOnHide!==!1&&(n.resetOnHide=!0),n.type!=="formly-template"&&(n.template||n.expressions?.template||n.expressionProperties?.template)&&(n.type="formly-template"),!n.type&&n.fieldGroup&&(n.type="formly-group"),n.type&&this.config.getMergedField(n),mn(n)&&!bx(n.defaultValue)&&bx(mu(n))&&!Kee(n)&&bg(n,n.defaultValue),n.wrappers=n.wrappers||[]}getFieldComponentInstance(n){let e=()=>{let i=this.config.resolveFieldTypeRef(n),r=n._componentRefs?.slice(-1)[0];return r instanceof Id&&r?.componentType===i?.componentType&&(i=r),i?.instance};return n._proxyInstance||nr(n,"_proxyInstance",new Proxy({},{get:(i,r)=>e()?.[r],set:(i,r,o)=>e()[r]=o})),n._proxyInstance}},fS=class{prePopulate(n){this.root||(this.root=n),n.parent&&Object.defineProperty(n,"form",{get:()=>n.parent.formControl,configurable:!0})}onPopulate(n){n.hasOwnProperty("fieldGroup")&&!mn(n)?nr(n,"formControl",n.form):this.addFormControl(n)}postPopulate(n){if(this.root!==n)return;if(this.root=null,this.setValidators(n)&&n.parent){let i=n.parent;for(;i;)(mn(i)||!i.parent)&&vg(i.formControl,!0),i=i.parent}}addFormControl(n){let e=ete(n);if(!n.fieldArray){if(e){if(e instanceof Jo){let i=mn(n)?mu(n):n.defaultValue;e.defaultValue=i}}else{let i={updateOn:n.modelOptions.updateOn};if(n.fieldGroup)e=new px({},i);else{let r=mn(n)?mu(n):n.defaultValue;e=new $B({value:r,disabled:!!n.props.disabled},De(M({},i),{initialValueIsDefault:!0}))}}p3(n,e)}}setValidators(n,e=!1){e===!1&&mn(n)&&n.props?.disabled&&(e=!0);let i=!1;if(n.fieldGroup?.forEach(r=>r&&this.setValidators(r,e)&&(i=!0)),mn(n)||!n.parent||!mn(n)&&!n.fieldGroup){let{formControl:r}=n;if(r&&(mn(n)&&r instanceof Jo&&(e&&r.enabled&&(r.disable({emitEvent:!1,onlySelf:!0}),i=!0),!e&&r.disabled&&(r.enable({emitEvent:!1,onlySelf:!0}),i=!0)),r.validator===null&&this.hasValidators(n,"_validators")&&(r.setValidators(()=>{let o=Le.compose(this.mergeValidators(n,"_validators"));return o?o(r):null}),i=!0),r.asyncValidator===null&&this.hasValidators(n,"_asyncValidators")&&(r.setAsyncValidators(()=>{let o=Le.composeAsync(this.mergeValidators(n,"_asyncValidators"));return o?o(r):Q(null)}),i=!0),i)){vg(r,!0);let o=r.parent;for(let a=1;a1&&i._fields.some(r=>r[e].length>0)||n[e].length>0?!0:n.fieldGroup?.some(r=>r?.fieldGroup&&!mn(r)&&this.hasValidators(r,e))}mergeValidators(n,e){let i=[],r=n.formControl;return r?._fields?.length>1?r._fields.filter(o=>!o._hide).forEach(o=>i.push(...o[e])):n[e]&&i.push(...n[e]),n.fieldGroup&&n.fieldGroup.filter(o=>o?.fieldGroup&&!mn(o)).forEach(o=>i.push(...this.mergeValidators(o,e))),i}},gS=class{constructor(n){this.config=n}onPopulate(n){this.initFieldValidation(n,"validators"),this.initFieldValidation(n,"asyncValidators")}initFieldValidation(n,e){let i=[];if(e==="validators"&&!(n.hasOwnProperty("fieldGroup")&&!mn(n))&&i.push(this.getPredefinedFieldValidation(n)),n[e])for(let r of Object.keys(n[e]))r==="validation"?i.push(...n[e].validation.map(o=>this.wrapNgValidatorFn(n,o))):i.push(this.wrapNgValidatorFn(n,n[e][r],r));nr(n,"_"+e,i)}getPredefinedFieldValidation(n){let e=[];return _S.forEach(i=>Wi(n,["props",i],({currentValue:r,firstChange:o})=>{e=e.filter(a=>a!==i),i==="required"&&r!=null&&typeof r!="boolean"&&console.warn(`Formly: Invalid prop 'required' of type '${typeof r}', expected 'boolean' (Field:${n.key}).`),r!=null&&r!==!1&&e.push(i),!o&&n.formControl&&vg(n.formControl)})),i=>e.length===0?null:Le.compose(e.map(r=>()=>{let o=n.props[r];switch(r){case"required":return Le.required(i);case"pattern":return Le.pattern(o)(i);case"minLength":let a=Le.minLength(o)(i),s=this.config.getValidatorMessage("minlength")||n.validation?.messages?.minlength?"minlength":"minLength";return a?{[s]:a.minlength}:null;case"maxLength":let l=Le.maxLength(o)(i),c=this.config.getValidatorMessage("maxlength")||n.validation?.messages?.maxlength?"maxlength":"maxLength";return l?{[c]:l.maxlength}:null;case"min":return Le.min(o)(i);case"max":return Le.max(o)(i);default:return null}}))(i)}wrapNgValidatorFn(n,e,i){let r;if(typeof e=="string"&&(r=vc(this.config.getValidator(e))),typeof e=="object"&&e.name&&(r=vc(this.config.getValidator(e.name)),e.options&&(r.options=e.options)),typeof e=="object"&&e.expression){let o=e,{expression:a}=o,s=ed(o,["expression"]);r={name:i,validation:a,options:Object.keys(s).length>0?s:null}}return typeof e=="function"&&(r={name:i,validation:e}),a=>{let s=r.validation(a,n,r.options);return Qee(s)?s.then(l=>this.handleResult(n,i?!!l:l,r)):ji(s)?s.pipe(se(l=>this.handleResult(n,i?!!l:l,r))):this.handleResult(n,i?!!s:s,r)}}handleResult(n,e,{name:i,options:r}){typeof e=="boolean"&&(e=e?null:{[i]:r||!0});let o=n.formControl;return o?._childrenErrors?.[i]?.(),La(e)&&Object.keys(e).forEach(a=>{let s=e[a].errorPath?e[a].errorPath:r?.errorPath,l=s?n.formControl.get(s):null;if(l){let c=e[a],{errorPath:d}=c,m=ed(c,["errorPath"]);l.setErrors(De(M({},l.errors||{}),{[a]:m})),!o._childrenErrors&&nr(o,"_childrenErrors",{}),o._childrenErrors[a]=()=>{let v=l.errors||{},{[a]:f}=v,b=ed(v,[fA(a)]);l.setErrors(Object.keys(b).length===0?null:b)}}}),e}},xg=(()=>{let n=class n{constructor(){this.field={}}set _formlyControls(i){let r=this.field;r._localFields=i.map(o=>o.control._fields||[]).flat().filter(o=>o.formControl!==this.field.formControl)}get model(){return this.field.model}get form(){return this.field.form}get options(){return this.field.options}get key(){return this.field.key}get formControl(){return this.field.formControl}get props(){return this.field.props||{}}get to(){return this.props}get showError(){return this.options.showError(this)}get id(){return this.field.id}get formState(){return this.options?.formState||{}}};n.\u0275fac=function(r){return new(r||n)},n.\u0275dir=F({type:n,viewQuery:function(r,o){if(r&1&&ie(Hn,5),r&2){let a;B(a=j())&&(o._formlyControls=a)}},inputs:{field:"field"},standalone:!1});let t=n;return t})(),tte=(()=>{let n=class n extends xg{get template(){return this.field&&this.field.template!==this.innerHtml.template&&(this.innerHtml={template:this.field.template,content:this.props.safeHtml?this.sanitizer.bypassSecurityTrustHtml(this.field.template):this.field.template}),this.innerHtml.content}constructor(i){super(),this.sanitizer=i,this.innerHtml={}}};n.\u0275fac=function(r){return new(r||n)(_e(Cf))},n.\u0275cmp=E({type:n,selectors:[["formly-template"]],standalone:!1,features:[le],decls:1,vars:1,consts:[[3,"innerHtml"]],template:function(r,o){r&1&&k(0,"div",0),r&2&&y("innerHtml",o.template,Zp)},encapsulation:2,changeDetection:0});let t=n;return t})(),bS=(()=>{let n=class n{constructor(){this.types={},this.validators={},this.wrappers={},this.messages={},this.extras={checkExpressionOn:"modelChange",lazyRender:!0,resetFieldOnHide:!0,renderFormlyFieldElement:!0,showError(i){return i.formControl?.invalid&&(i.formControl?.touched||i.options.parentForm?.submitted||!!i.field.validation?.show)}},this.extensions={},this.presets={},this.extensionsByPriority={},this.componentRefs={}}addConfig(i){if(Array.isArray(i)){i.forEach(r=>this.addConfig(r));return}i.types&&i.types.forEach(r=>this.setType(r)),i.validators&&i.validators.forEach(r=>this.setValidator(r)),i.wrappers&&i.wrappers.forEach(r=>this.setWrapper(r)),i.validationMessages&&i.validationMessages.forEach(r=>this.addValidatorMessage(r.name,r.message)),i.extensions&&this.setSortedExtensions(i.extensions),i.extras&&(this.extras=M(M({},this.extras),i.extras)),i.presets&&(this.presets=M(M({},this.presets),i.presets.reduce((r,o)=>De(M({},r),{[o.name]:o.config}),{})))}setType(i){Array.isArray(i)?i.forEach(r=>this.setType(r)):(this.types[i.name]||(this.types[i.name]={name:i.name}),["component","extends","defaultOptions","wrappers"].forEach(r=>{i.hasOwnProperty(r)&&(this.types[i.name][r]=i[r])}))}getType(i,r=!1){if(i instanceof Td)return{component:i,name:i.prototype.constructor.name};if(!this.types[i]){if(r)throw new Error(`[Formly Error] The type "${i}" could not be found. Please make sure that is registered through the FormlyModule declaration.`);return null}return this.mergeExtendedType(i),this.types[i]}getMergedField(i={}){let r=this.getType(i.type);if(!r)return;r.defaultOptions&&Ch(i,r.defaultOptions);let o=r.extends&&this.getType(r.extends).defaultOptions;o&&Ch(i,o),i?.optionsTypes&&i.optionsTypes.forEach(s=>{let l=this.getType(s).defaultOptions;l&&Ch(i,l)});let a=this.resolveFieldTypeRef(i);a?.instance?.defaultOptions&&Ch(i,a.instance.defaultOptions),!i.wrappers&&r.wrappers&&(i.wrappers=[...r.wrappers])}resolveFieldTypeRef(i={}){let r=this.getType(i.type);if(!r||!r.component)return null;if(!this.componentRefs[r.name]){let{_viewContainerRef:o,_injector:a}=i.options;if(!o||!a)return null;let s=o.createComponent(r.component,{injector:a});this.componentRefs[r.name]=s;try{s.destroy()}catch(l){console.error(`An error occurred while destroying the Formly component type "${i.type}"`,l)}}return this.componentRefs[r.name]}clearRefs(){this.componentRefs={}}setWrapper(i){this.wrappers[i.name]=i,i.types&&i.types.forEach(r=>{this.setTypeWrapper(r,i.name)})}getWrapper(i){if(i instanceof Td)return{component:i,name:i.prototype.constructor.name};if(!this.wrappers[i])throw new Error(`[Formly Error] The wrapper "${i}" could not be found. Please make sure that is registered through the FormlyModule declaration.`);return this.wrappers[i]}setTypeWrapper(i,r){this.types[i]||(this.types[i]={}),this.types[i].wrappers||(this.types[i].wrappers=[]),this.types[i].wrappers.indexOf(r)===-1&&this.types[i].wrappers.push(r)}setValidator(i){this.validators[i.name]=i}getValidator(i){if(!this.validators[i])throw new Error(`[Formly Error] The validator "${i}" could not be found. Please make sure that is registered through the FormlyModule declaration.`);return this.validators[i]}addValidatorMessage(i,r){this.messages[i]=r}getValidatorMessage(i){return this.messages[i]}setSortedExtensions(i){i.forEach(r=>{let o=r.priority??1;this.extensionsByPriority[o]=De(M({},this.extensionsByPriority[o]),{[r.name]:r.extension})}),this.extensions=Object.keys(this.extensionsByPriority).map(Number).sort((r,o)=>r-o).reduce((r,o)=>M(M({},r),this.extensionsByPriority[o]),{})}mergeExtendedType(i){if(!this.types[i].extends)return;let r=this.getType(this.types[i].extends);this.types[i].component||(this.types[i].component=r.component),this.types[i].wrappers||(this.types[i].wrappers=r.wrappers)}};n.\u0275fac=function(r){return new(r||n)},n.\u0275prov=O({token:n,factory:n.\u0275fac,providedIn:"root"});let t=n;return t})();var ite=(()=>{let n=class n{};n.\u0275fac=function(r){return new(r||n)},n.\u0275prov=O({token:n,factory:n.\u0275fac});let t=n;return t})(),nte=(()=>{let n=class n{get containerRef(){return this.config.extras.renderFormlyFieldElement?this.viewContainerRef:this.hostContainerRef}get elementRef(){return this.config.extras.renderFormlyFieldElement?this._elementRef:this.componentRefs?.[0]instanceof Id?this.componentRefs[0].location:null}constructor(i,r,o,a,s){this.config=i,this.renderer=r,this._elementRef=o,this.hostContainerRef=a,this.form=s,this.hostObservers=[],this.componentRefs=[],this.hooksObservers=[],this.detectFieldBuild=!1,this.valueChangesUnsubscribe=()=>{}}ngAfterContentInit(){this.triggerHook("afterContentInit")}ngAfterViewInit(){this.triggerHook("afterViewInit")}ngDoCheck(){this.detectFieldBuild&&this.field&&this.field.options&&this.render()}ngOnInit(){this.triggerHook("onInit")}ngOnChanges(i){this.triggerHook("onChanges",i)}ngOnDestroy(){this.resetRefs(this.field),this.hostObservers.forEach(i=>i.unsubscribe()),this.hooksObservers.forEach(i=>i()),this.valueChangesUnsubscribe(),this.triggerHook("onDestroy")}renderField(i,r,o=[]){if(this.containerRef===i&&(this.resetRefs(this.field),this.containerRef.clear(),o=this.field?.wrappers),o?.length>0){let[a,...s]=o,{component:l}=this.config.getWrapper(a),c=i.createComponent(l);this.attachComponentRef(c,r),Wi(c.instance,["fieldComponent"],({currentValue:d,previousValue:m,firstChange:f})=>{if(d){if(m&&m._lContainer===d._lContainer)return;let b=m?m.detach():null;b&&!b.destroyed?d.insert(b):this.renderField(d,r,s),!f&&c.changeDetectorRef.detectChanges()}})}else if(r?.type){let a=this.form?.templates?.find(l=>l.name===r.type),s;if(a)s=i.createEmbeddedView(a.ref,{$implicit:r});else{let{component:l}=this.config.getType(r.type,!0);s=i.createComponent(l)}this.attachComponentRef(s,r)}}triggerHook(i,r){if((i==="onInit"||i==="onChanges"&&r.field&&!r.field.firstChange)&&(this.valueChangesUnsubscribe(),this.valueChangesUnsubscribe=this.fieldChanges(this.field)),this.field?.hooks?.[i]&&(!r||r.field)){let o=this.field.hooks[i](this.field);if(ji(o)&&["onInit","afterContentInit","afterViewInit"].indexOf(i)!==-1){let a=o.subscribe();this.hooksObservers.push(()=>a.unsubscribe())}}i==="onChanges"&&r.field&&(this.resetRefs(r.field.previousValue),this.render())}attachComponentRef(i,r){this.componentRefs.push(i),r._componentRefs.push(i),i instanceof Id&&Object.assign(i.instance,{field:r})}render(){if(this.field){if(!this.field.options){this.detectFieldBuild=!0;return}if(this.detectFieldBuild=!1,this.hostObservers.forEach(i=>i.unsubscribe()),this.hostObservers=[Wi(this.field,["hide"],({firstChange:i,currentValue:r})=>{let o=this.containerRef;this.config.extras.lazyRender===!1?(i&&this.renderField(o,this.field),(!i||i&&r)&&this.elementRef&&this.renderer.setStyle(this.elementRef.nativeElement,"display",r?"none":"")):r?(o.clear(),this.field.className&&this.renderer.removeAttribute(this.elementRef.nativeElement,"class")):(this.renderField(o,this.field),this.field.className&&this.renderer.setAttribute(this.elementRef.nativeElement,"class",this.field.className)),!i&&this.field.options.detectChanges(this.field)}),Wi(this.field,["className"],({firstChange:i,currentValue:r})=>{(!i||i&&r)&&(!this.config.extras.lazyRender||this.field.hide!==!0)&&this.elementRef&&this.renderer.setAttribute(this.elementRef.nativeElement,"class",r)})],!h3())["touched","pristine","status"].forEach(i=>this.hostObservers.push(Wi(this.field,["formControl",i],({firstChange:r})=>!r&&mS(this.field))));else if(this.field.formControl){let i=this.field.formControl.events.subscribe(()=>mS(this.field));this.hostObservers.push(i)}}}resetRefs(i){i&&(i._localFields?i._localFields=[]:nr(this.field,"_localFields",[]),i._componentRefs?i._componentRefs=i._componentRefs.filter(r=>this.componentRefs.indexOf(r)===-1):nr(this.field,"_componentRefs",[])),this.componentRefs=[]}fieldChanges(i){if(!i)return()=>{};let r=u3(i,["props"],()=>i.options.detectChanges(i)),o=[()=>{r()}];for(let s of Object.keys(i._expressions||{})){let l=Wi(i,["_expressions",s],({currentValue:c,previousValue:d})=>{d?.subscription&&(d.subscription.unsubscribe(),d.subscription=null),ji(c.value$)&&(c.subscription=c.value$.subscribe())});o.push(()=>{i._expressions[s]?.subscription&&i._expressions[s].subscription.unsubscribe(),l.unsubscribe()})}for(let s of[["focus"],["template"],["fieldGroupClassName"],["validation","show"]]){let l=Wi(i,s,({firstChange:c})=>!c&&i.options.detectChanges(i));o.push(()=>l.unsubscribe())}if(i.formControl&&!i.fieldGroup){let s=i.formControl,l=s.valueChanges.pipe(se(f=>(i.parsers?.map(b=>f=b(f,i)),Object.is(f,i.formControl.value)||i.formControl.setValue(f),f)),Sn((f,b)=>!(f!==b||Array.isArray(f)||La(f))));s.value!==mu(i)&&(l=l.pipe(He(s.value)));let{updateOn:c,debounce:d}=i.modelOptions;(!c||c==="change")&&d?.default>0&&(l=l.pipe(Rt(d.default)));let m=l.subscribe(f=>{s._fields?.length>1&&s instanceof Jo&&s.patchValue(f,{emitEvent:!1,onlySelf:!0}),mn(i)&&bg(i,f),i.options.fieldChanges.next({value:f,field:i,type:"valueChanges"})});o.push(()=>m.unsubscribe())}let a=[];return Wi(i,["_localFields"],({currentValue:s})=>{a.forEach(l=>l()),a=(s||[]).map(l=>this.fieldChanges(l))}),()=>{o.forEach(s=>s()),a.forEach(s=>s())}}};n.\u0275fac=function(r){return new(r||n)(_e(bS),_e(je),_e(q),_e(nt),_e(ite,8))},n.\u0275cmp=E({type:n,selectors:[["formly-field"]],viewQuery:function(r,o){if(r&1&&ie(jee,7,nt),r&2){let a;B(a=j())&&(o.viewContainerRef=a.first)}},inputs:{field:"field"},features:[Ae],decls:2,vars:0,consts:[["container",""]],template:function(r,o){r&1&&xa(0,Hee,0,0,"ng-template",null,0,_i)},styles:["[_nghost-%COMP%]:empty{display:none}"]});let t=n;return t})(),rte=(()=>{let n=class n extends nte{};n.\u0275fac=(()=>{let i;return function(o){return(i||(i=fe(n)))(o||n)}})(),n.\u0275cmp=E({type:n,selectors:[["formly-field"]],standalone:!1,features:[le],decls:2,vars:0,consts:[["container",""]],template:function(r,o){r&1&&R(0,zee,0,0,"ng-template",null,0,_i)},styles:["[_nghost-%COMP%]:empty{display:none}"]});let t=n;return t})(),ote=(()=>{let n=class n extends xg{};n.\u0275fac=(()=>{let i;return function(o){return(i||(i=fe(n)))(o||n)}})(),n.\u0275cmp=E({type:n,selectors:[["formly-group"]],hostVars:2,hostBindings:function(r,o){r&2&&it(o.field.fieldGroupClassName||"")},standalone:!1,features:[le],ngContentSelectors:Uee,decls:3,vars:0,consts:[[3,"field"]],template:function(r,o){r&1&&(Me(),xt(0,$ee,1,1,"formly-field",0,Hi),oe(2)),r&2&&Ct(o.field.fieldGroup)},dependencies:[rte],encapsulation:2,changeDetection:0});let t=n;return t})(),yg=new T("FORMLY_CONFIG");function ate(t){return{types:[{name:"formly-group",component:ote},{name:"formly-template",component:tte}],extensions:[{name:"core",extension:new pS(t),priority:-250},{name:"field-validation",extension:new gS(t),priority:-200},{name:"field-form",extension:new fS,priority:-150},{name:"field-expression",extension:new hS,priority:-100}]}}var f3=(t=[])=>[{provide:yg,multi:!0,useFactory:ate,deps:[bS]},ste(t)],ste=(t=[])=>({provide:yg,multi:!0,useFactory:()=>{let n=u(yg,{skipSelf:!0,optional:!0});return n?(n.push(t),n):t}});var lte=(()=>{let n=class n{get props(){return this.field.props||{}}get fieldAttrElements(){return this.field?._elementRefs||[]}constructor(i,r,o){this.renderer=i,this.elementRef=r,this.uiAttributesCache={},this.uiEvents={listeners:[],events:["click","keyup","keydown","keypress","focus","blur","change","wheel"],callback:(a,s)=>{switch(a){case"focus":return this.onFocus(s);case"blur":return this.onBlur(s);case"change":return this.onChange(s);default:return this.props[a](this.field,s)}}},this.document=o}ngOnChanges(i){i.field&&(this.field.name&&this.setAttribute("name",this.field.name),this.uiEvents.listeners.forEach(r=>r()),this.uiEvents.events.forEach(r=>{(this.props?.[r]||["focus","blur","change"].indexOf(r)!==-1)&&this.uiEvents.listeners.push(this.renderer.listen(this.elementRef.nativeElement,r,o=>this.uiEvents.callback(r,o)))}),this.props?.attributes&&Wi(this.field,["props","attributes"],({currentValue:r,previousValue:o})=>{o&&Object.keys(o).forEach(a=>this.removeAttribute(a)),r&&Object.keys(r).forEach(a=>{r[a]!=null&&this.setAttribute(a,r[a])})}),this.detachElementRef(i.field.previousValue),this.attachElementRef(i.field.currentValue),this.fieldAttrElements.length===1&&(!this.id&&this.field.id&&this.setAttribute("id",this.field.id),this.focusObserver=Wi(this.field,["focus"],({currentValue:r})=>{this.toggleFocus(r)}))),i.id&&this.setAttribute("id",this.id)}ngDoCheck(){if(!this.uiAttributes){let i=this.elementRef.nativeElement;this.uiAttributes=[..._S,"tabindex","placeholder","readonly","disabled","step"].filter(r=>!i.hasAttribute||!i.hasAttribute(r))}for(let i=0;ii()),this.detachElementRef(this.field),this.focusObserver?.unsubscribe()}toggleFocus(i){let r=this.fieldAttrElements?this.fieldAttrElements[0]:null;if(!r||!r.nativeElement.focus)return;let o=!!this.document.activeElement&&this.fieldAttrElements.some(({nativeElement:a})=>this.document.activeElement===a||a.contains(this.document.activeElement));i&&!o?Promise.resolve().then(()=>r.nativeElement.focus()):!i&&o&&Promise.resolve().then(()=>r.nativeElement.blur())}onFocus(i){this.focusObserver?.setValue(!0),this.props.focus?.(this.field,i)}onBlur(i){this.focusObserver?.setValue(!1),this.props.blur?.(this.field,i)}onHostChange(i){i instanceof Event||this.onChange(i)}onChange(i){this.props.change?.(this.field,i),this.field.formControl?.markAsDirty()}attachElementRef(i){i&&(i._elementRefs?.indexOf(this.elementRef)===-1?i._elementRefs.push(this.elementRef):nr(i,"_elementRefs",[this.elementRef]))}detachElementRef(i){let r=i?._elementRefs?this.fieldAttrElements.indexOf(this.elementRef):-1;r!==-1&&i._elementRefs.splice(r,1)}setAttribute(i,r){this.renderer.setAttribute(this.elementRef.nativeElement,i,r)}removeAttribute(i){this.renderer.removeAttribute(this.elementRef.nativeElement,i)}};n.\u0275fac=function(r){return new(r||n)(_e(je),_e(q),_e(ge))},n.\u0275dir=F({type:n,selectors:[["","formlyAttributes",""]],hostBindings:function(r,o){r&1&&S("change",function(s){return o.onHostChange(s)})},inputs:{field:[0,"formlyAttributes","field"],id:"id"},features:[Ae]});let t=n;return t})(),ta=(()=>{let n=class n extends lte{};n.\u0275fac=(()=>{let i;return function(o){return(i||(i=fe(n)))(o||n)}})(),n.\u0275dir=F({type:n,selectors:[["","formlyAttributes",""]],hostBindings:function(r,o){r&1&&S("change",function(s){return o.onHostChange(s)})},standalone:!1,features:[le]});let t=n;return t})(),cte=(()=>{let n=class n{constructor(i){this.config=i}ngOnChanges(){let i=_S.map(r=>`templateOptions.${r}`);this.errorMessage$=Je(this.field.formControl.statusChanges,this.field.options?this.field.options.fieldChanges.pipe(ce(({field:r,type:o,property:a})=>r===this.field&&o==="expressionChanges"&&(a.indexOf("validation")!==-1||i.indexOf(a)!==-1))):Q(null)).pipe(He(null),$e(()=>ji(this.errorMessage)?this.errorMessage:Q(this.errorMessage)))}get errorMessage(){let i=this.field.formControl;for(let r in i.errors)if(i.errors.hasOwnProperty(r)){let o=this.config.getValidatorMessage(r);if(La(i.errors[r])){if(i.errors[r].errorPath)return;i.errors[r].message&&(o=i.errors[r].message)}return this.field.validation?.messages?.[r]&&(o=this.field.validation.messages[r]),this.field.validators?.[r]?.message&&(o=this.field.validators[r].message),this.field.asyncValidators?.[r]?.message&&(o=this.field.asyncValidators[r].message),typeof o=="function"?o(i.errors[r],this.field):o}}};n.\u0275fac=function(r){return new(r||n)(_e(bS))},n.\u0275cmp=E({type:n,selectors:[["formly-validation-message"]],inputs:{field:"field"},features:[Ae],decls:2,vars:3,template:function(r,o){r&1&&(_(0),me(1,"async")),r&2&&H(Oe(1,1,o.errorMessage$))},dependencies:[rn],encapsulation:2,changeDetection:0});let t=n;return t})(),g3=(()=>{let n=class n extends cte{};n.\u0275fac=(()=>{let i;return function(o){return(i||(i=fe(n)))(o||n)}})(),n.\u0275cmp=E({type:n,selectors:[["formly-validation-message"]],standalone:!1,features:[le],decls:2,vars:3,template:function(r,o){r&1&&(_(0),me(1,"async")),r&2&&H(Oe(1,1,o.errorMessage$))},dependencies:[rn],encapsulation:2,changeDetection:0});let t=n;return t})();var Cg=(()=>{let n=class n extends xg{set _formlyControls(i){}set _staticContent(i){this.fieldComponent=i}};n.\u0275fac=(()=>{let i;return function(o){return(i||(i=fe(n)))(o||n)}})(),n.\u0275dir=F({type:n,viewQuery:function(r,o){if(r&1&&(ie(d3,5,nt),ie(d3,7,nt)),r&2){let a;B(a=j())&&(o.fieldComponent=a.first),B(a=j())&&(o._staticContent=a.first)}},standalone:!1,features:[le]});let t=n;return t})();var wg=t=>({field:t}),b3=t=>({content:t});function dte(t,n){t&1&&(h(0,"span",9),_(1,"*"),p())}function ute(t,n){if(t&1&&(h(0,"mat-label"),_(1),N(2,dte,2,0,"span",9),p()),t&2){let e=C();g(),ve(" ",e.props.label," "),g(),L(e.props.required&&e.props.hideRequiredMarker!==!0?2:-1)}}function mte(t,n){if(t&1&&Ge(0,3),t&2){let e=C();y("ngTemplateOutlet",e.props.textPrefix)("ngTemplateOutletContext",Pt(2,wg,e.field))}}function hte(t,n){if(t&1&&Ge(0,4),t&2){let e=C();y("ngTemplateOutlet",e.props.prefix)("ngTemplateOutletContext",Pt(2,wg,e.field))}}function pte(t,n){if(t&1&&Ge(0,5),t&2){let e=C();y("ngTemplateOutlet",e.props.textSuffix)("ngTemplateOutletContext",Pt(2,wg,e.field))}}function fte(t,n){if(t&1&&Ge(0,6),t&2){let e=C();y("ngTemplateOutlet",e.props.suffix)("ngTemplateOutletContext",Pt(2,wg,e.field))}}function gte(t,n){if(t&1&&(h(0,"mat-hint"),Ge(1,10),p()),t&2){C();let e=Se(13);g(),y("ngTemplateOutlet",e)("ngTemplateOutletContext",Pt(2,b3,n))}}function _te(t,n){if(t&1&&(h(0,"mat-hint",8),Ge(1,10),p()),t&2){C();let e=Se(13);g(),y("ngTemplateOutlet",e)("ngTemplateOutletContext",Pt(2,b3,n))}}function bte(t,n){if(t&1&&(jt(0),_(1),Lt()),t&2){let e=C().content;g(),H(e)}}function vte(t,n){if(t&1&&Ge(0,10),t&2){let e=C().content,i=C();y("ngTemplateOutlet",e)("ngTemplateOutletContext",Pt(2,wg,i.field))}}function yte(t,n){if(t&1&&N(0,bte,2,1,"ng-container")(1,vte,1,4,"ng-container",10),t&2){let e=n.content;L(e.createEmbeddedView?1:0)}}var xte=["matPrefix"],Cte=["matTextPrefix"],wte=["matSuffix"],Dte=["matTextSuffix"],Ete=(()=>{let n=class n extends Cg{constructor(i,r,o){super(),this.renderer=i,this.elementRef=r,this.focusMonitor=o}ngOnInit(){nr(this.field,"_formField",this.formField),this.focusMonitor.monitor(this.elementRef,!0).subscribe(i=>{!i&&this.field.focus&&(this.field.focus=!1)})}ngAfterViewInit(){if(this.formField.appearance!=="outline"&&this.props.hideFieldUnderline===!0){let i=this.formField._elementRef.nativeElement.querySelector(".mat-form-field-underline");i&&this.renderer.removeChild(i.parentNode,i)}}ngOnDestroy(){delete this.field._formField,this.focusMonitor.stopMonitoring(this.elementRef)}};n.\u0275fac=function(r){return new(r||n)(_e(je),_e(q),_e(Yt))},n.\u0275cmp=E({type:n,selectors:[["formly-wrapper-mat-form-field"]],viewQuery:function(r,o){if(r&1&&ie(Oi,7),r&2){let a;B(a=j())&&(o.formField=a.first)}},standalone:!1,features:[le],decls:14,vars:13,consts:[["fieldComponent",""],["stringOrTemplate",""],[3,"hideRequiredMarker","floatLabel","appearance","subscriptSizing","color"],["matTextPrefix","",3,"ngTemplateOutlet","ngTemplateOutletContext"],["matPrefix","",3,"ngTemplateOutlet","ngTemplateOutletContext"],["matTextSuffix","",3,"ngTemplateOutlet","ngTemplateOutletContext"],["matSuffix","",3,"ngTemplateOutlet","ngTemplateOutletContext"],[3,"field"],["align","end"],["aria-hidden","true",1,"mat-form-field-required-marker","mat-mdc-form-field-required-marker"],[3,"ngTemplateOutlet","ngTemplateOutletContext"]],template:function(r,o){if(r&1&&(h(0,"mat-form-field",2),Ge(1,null,0),N(3,ute,3,2,"mat-label"),N(4,mte,1,4,"ng-container",3),N(5,hte,1,4,"ng-container",4),N(6,pte,1,4,"ng-container",5),N(7,fte,1,4,"ng-container",6),h(8,"mat-error"),k(9,"formly-validation-message",7),p(),N(10,gte,2,4,"mat-hint"),N(11,_te,2,4,"mat-hint",8),p(),R(12,yte,2,1,"ng-template",null,1,_i)),r&2){let a,s;y("hideRequiredMarker",!0)("floatLabel",o.props.floatLabel)("appearance",o.props.appearance)("subscriptSizing",o.props.subscriptSizing)("color",o.props.color??"primary"),g(3),L(o.props.label&&o.props.hideLabel!==!0?3:-1),g(),L(o.props.textPrefix?4:-1),g(),L(o.props.prefix?5:-1),g(),L(o.props.textSuffix?6:-1),g(),L(o.props.suffix?7:-1),g(2),y("field",o.field),g(),L((a=o.props.description||o.props.hintStart)?10:-1,a),g(),L((s=o.props.hintEnd)?11:-1,s)}},dependencies:[Fn,Oi,sn,eg,xo,nu,ru,g3],styles:[`formly-wrapper-mat-form-field .mat-mdc-form-field,formly-wrapper-mat-form-field .mat-form-field{width:100%} -`],encapsulation:2});let t=n;return t})();function v3(){return{wrappers:[{name:"form-field",component:Ete}]}}var to=(()=>{let n=class n extends xg{constructor(){super(...arguments),this.errorStateMatcher={isErrorState:()=>this.field&&this.showError},this.stateChanges=new z,this._errorState=!1,this._focused=!1}set matPrefix(i){i&&(this.props.prefix=i)}set matTextPrefix(i){i&&(this.props.textPrefix=i)}set matSuffix(i){i&&(this.props.suffix=i)}set matTextSuffix(i){i&&(this.props.textSuffix=i)}set _controls(i){this.attachControl(i.length===1?i.first:this)}ngOnDestroy(){delete this.formField?._control,this.stateChanges.complete()}setDescribedByIds(i){}onContainerClick(i){this.field.focus=!0,this.stateChanges.next()}get errorState(){let i=this.options.showError(this);return i!==this._errorState&&(this._errorState=i,this.stateChanges.next()),i}get controlType(){if(this.props.type)return this.props.type;let i=this.field.type;return i instanceof Td?i.prototype.constructor.name:i}get focused(){let i=!!this.field.focus&&!this.disabled;return i!==this._focused&&(this._focused=i,this.stateChanges.next()),i}get disabled(){return!!this.props.disabled}get required(){return!!this.props.required}get placeholder(){return this.props.placeholder||""}get shouldPlaceholderFloat(){return this.shouldLabelFloat}get value(){return this.formControl?.value}set value(i){this.formControl?.patchValue(i)}get ngControl(){return this.formControl}get empty(){return this.value==null||this.value===""}get shouldLabelFloat(){return this.focused||!this.empty}get formField(){return this.field?._formField}attachControl(i){if(this.formField&&i!==this.formField._control){this.formField._control=i;let r=i?.ngControl;r?.valueAccessor?.hasOwnProperty("_formField")&&(r.valueAccessor._formField=this.formField),r?.valueAccessor?.hasOwnProperty("_parentFormField")&&(r.valueAccessor._parentFormField=this.formField),["prefix","suffix","textPrefix","textSuffix"].forEach(a=>Wi(this.field,["props",a],({currentValue:s})=>s&&Promise.resolve().then(()=>{this.options.detectChanges(this.field)})));let o=i.setDescribedByIds.bind(i);i.setDescribedByIds=a=>{setTimeout(()=>o(a))}}}};n.\u0275fac=(()=>{let i;return function(o){return(i||(i=fe(n)))(o||n)}})(),n.\u0275dir=F({type:n,viewQuery:function(r,o){if(r&1&&(ie(xte,5),ie(Cte,5),ie(wte,5),ie(Dte,5),ie(Ra,5)),r&2){let a;B(a=j())&&(o.matPrefix=a.first),B(a=j())&&(o.matTextPrefix=a.first),B(a=j())&&(o.matSuffix=a.first),B(a=j())&&(o.matTextSuffix=a.first),B(a=j())&&(o._controls=a)}},standalone:!1,features:[le]});let t=n;return t})();var y3=(()=>{class t{static \u0275fac=function(i){return new(i||t)};static \u0275cmp=E({type:t,selectors:[["ng-component"]],hostAttrs:["cdk-text-field-style-loader",""],decls:0,vars:0,template:function(i,r){},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 t})(),Mte={passive:!0},x3=(()=>{class t{_platform=u(qe);_ngZone=u(ae);_renderer=u(cn).createRenderer(null,null);_styleLoader=u(ut);_monitoredElements=new Map;constructor(){}monitor(e){if(!this._platform.isBrowser)return Fi;this._styleLoader.load(y3);let i=Pr(e),r=this._monitoredElements.get(i);if(r)return r.subject;let o=new z,a="cdk-text-field-autofilled",s=c=>{c.animationName==="cdk-text-field-autofill-start"&&!i.classList.contains(a)?(i.classList.add(a),this._ngZone.run(()=>o.next({target:c.target,isAutofilled:!0}))):c.animationName==="cdk-text-field-autofill-end"&&i.classList.contains(a)&&(i.classList.remove(a),this._ngZone.run(()=>o.next({target:c.target,isAutofilled:!1})))},l=this._ngZone.runOutsideAngular(()=>(i.classList.add("cdk-text-field-autofill-monitored"),this._renderer.listen(i,"animationstart",s,Mte)));return this._monitoredElements.set(i,{subject:o,unlisten:l}),o}stopMonitoring(e){let i=Pr(e),r=this._monitoredElements.get(i);r&&(r.unlisten(),r.subject.complete(),i.classList.remove("cdk-text-field-autofill-monitored"),i.classList.remove("cdk-text-field-autofilled"),this._monitoredElements.delete(i))}ngOnDestroy(){this._monitoredElements.forEach((e,i)=>this.stopMonitoring(i))}static \u0275fac=function(i){return new(i||t)};static \u0275prov=O({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();var C3=(()=>{class t{_elementRef=u(q);_platform=u(qe);_ngZone=u(ae);_renderer=u(je);_resizeEvents=new z;_previousValue;_initialHeight;_destroyed=new z;_listenerCleanups;_minRows;_maxRows;_enabled=!0;_previousMinRows=-1;_textareaElement;get minRows(){return this._minRows}set minRows(e){this._minRows=Ln(e),this._setMinHeight()}get maxRows(){return this._maxRows}set maxRows(e){this._maxRows=Ln(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=u(ge);_hasFocus;_isViewInited=!1;constructor(){u(ut).load(y3),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(Pl(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),i=e.style;e.rows=1,i.position="absolute",i.visibility="hidden",i.border="none",i.padding="0",i.height="",i.minHeight="",i.maxHeight="",i.top=i.bottom=i.left=i.right="auto",i.overflow="hidden",this._textareaElement.parentNode.appendChild(e),this._cachedLineHeight=e.clientHeight,e.remove(),this._setMinHeight(),this._setMaxHeight()}_measureScrollHeight(){let e=this._textareaElement,i=e.style.marginBottom||"",r=this._platform.FIREFOX,o=r&&this._hasFocus,a=r?"cdk-textarea-autosize-measuring-firefox":"cdk-textarea-autosize-measuring";o&&(e.style.marginBottom=`${e.clientHeight}px`),e.classList.add(a);let s=e.scrollHeight-4;return e.classList.remove(a),o&&(e.style.marginBottom=i),s}_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 i=this._elementRef.nativeElement,r=i.value;if(!e&&this._minRows===this._previousMinRows&&r===this._previousValue)return;let o=this._measureScrollHeight(),a=Math.max(o,this._cachedPlaceholderHeight||0);i.style.height=`${a}px`,this._ngZone.runOutsideAngular(()=>{typeof requestAnimationFrame<"u"?requestAnimationFrame(()=>this._scrollToCaretPosition(i)):setTimeout(()=>this._scrollToCaretPosition(i))}),this._previousValue=r,this._previousMinRows=this._minRows}reset(){this._initialHeight!==void 0&&(this._textareaElement.style.height=this._initialHeight)}_noopInputHandler(){}_scrollToCaretPosition(e){let{selectionStart:i,selectionEnd:r}=e;!this._destroyed.isStopped&&this._hasFocus&&e.setSelectionRange(i,r)}static \u0275fac=function(i){return new(i||t)};static \u0275dir=F({type:t,selectors:[["textarea","cdkTextareaAutosize",""]],hostAttrs:["rows","1",1,"cdk-textarea-autosize"],hostBindings:function(i,r){i&1&&S("input",function(){return r._noopInputHandler()})},inputs:{minRows:[0,"cdkAutosizeMinRows","minRows"],maxRows:[0,"cdkAutosizeMaxRows","maxRows"],enabled:[2,"cdkTextareaAutosize","enabled",V],placeholder:"placeholder"},exportAs:["cdkTextareaAutosize"]})}return t})(),w3=(()=>{class t{static \u0275fac=function(i){return new(i||t)};static \u0275mod=ee({type:t});static \u0275inj=J({})}return t})();var wh=new T("MAT_INPUT_VALUE_ACCESSOR");var Ste=["button","checkbox","file","hidden","image","radio","range","reset","submit"],Tte=new T("MAT_INPUT_CONFIG"),hn=(()=>{class t{_elementRef=u(q);_platform=u(qe);ngControl=u(Hn,{optional:!0,self:!0});_autofillMonitor=u(x3);_ngZone=u(ae);_formField=u(Xo,{optional:!0});_renderer=u(je);_uid=u(Ze).getId("mat-input-");_previousNativeValue;_inputValueAccessor;_signalBasedValueAccessor;_previousPlaceholder;_errorStateTracker;_config=u(Tte,{optional:!0});_cleanupIosKeyup;_cleanupWebkitWheel;_isServer;_isNativeSelect;_isTextarea;_isInFormField;focused=!1;stateChanges=new z;controlType="mat-input";autofilled=!1;get disabled(){return this._disabled}set disabled(e){this._disabled=Ai(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(Le.required)??!1}set required(e){this._required=Ai(e)}_required;get type(){return this._type}set type(e){this._type=e||"text",this._validateType(),!this._isTextarea&&Ek().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=Ai(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=>Ek().has(e));constructor(){let e=u(pc,{optional:!0}),i=u(Ki,{optional:!0}),r=u(dl),o=u(wh,{optional:!0,self:!0}),a=this._elementRef.nativeElement,s=a.nodeName.toLowerCase();o?is(o.value)?this._signalBasedValueAccessor=o:this._inputValueAccessor=o:this._inputValueAccessor=a,this._previousNativeValue=this.value,this.id=this.id,this._platform.IOS&&this._ngZone.runOutsideAngular(()=>{this._cleanupIosKeyup=this._renderer.listen(a,"keyup",this._iOSKeyupListener)}),this._errorStateTracker=new cl(r,this.ngControl,i,e,this.stateChanges),this._isServer=!this._platform.isBrowser,this._isNativeSelect=s==="select",this._isTextarea=s==="textarea",this._isInFormField=!!this._formField,this.disabledInteractive=this._config?.disabledInteractive||!1,this._isNativeSelect&&(this.controlType=a.multiple?"mat-native-select-multiple":"mat-native-select"),this._signalBasedValueAccessor&&Ar(()=>{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 i=this._elementRef.nativeElement;i.type==="number"?(i.type="text",i.setSelectionRange(0,0),i.type="number"):i.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 i=this._elementRef.nativeElement;this._previousPlaceholder=e,e?i.setAttribute("placeholder",e):i.removeAttribute("placeholder")}}_getPlaceholder(){return this.placeholder||null}_validateType(){Ste.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,i=e.options[0];return this.focused||e.multiple||!this.empty||!!(e.selectedIndex>-1&&i&&i.label)}else return this.focused&&!this.disabled||!this.empty}get describedByIds(){return this._elementRef.nativeElement.getAttribute("aria-describedby")?.split(" ")||[]}setDescribedByIds(e){let i=this._elementRef.nativeElement;e.length?i.setAttribute("aria-describedby",e.join(" ")):i.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 i=e.target;!i.value&&i.selectionStart===0&&i.selectionEnd===0&&(i.setSelectionRange(1,1),i.setSelectionRange(0,0))};_getReadonlyAttribute(){return this._isNativeSelect?null:this.readonly||this.disabled&&this.disabledInteractive?"true":null}static \u0275fac=function(i){return new(i||t)};static \u0275dir=F({type:t,selectors:[["input","matInput",""],["textarea","matInput",""],["select","matNativeControl",""],["input","matNativeControl",""],["textarea","matNativeControl",""]],hostAttrs:[1,"mat-mdc-input-element"],hostVars:21,hostBindings:function(i,r){i&1&&S("focus",function(){return r._focusChanged(!0)})("blur",function(){return r._focusChanged(!1)})("input",function(){return r._onInput()}),i&2&&(si("id",r.id)("disabled",r.disabled&&!r.disabledInteractive)("required",r.required),X("name",r.name||null)("readonly",r._getReadonlyAttribute())("aria-disabled",r.disabled&&r.disabledInteractive?"true":null)("aria-invalid",r.empty&&r.required?null:r.errorState)("aria-required",r.required)("id",r.id),G("mat-input-server",r._isServer)("mat-mdc-form-field-textarea-control",r._isInFormField&&r._isTextarea)("mat-mdc-form-field-input-control",r._isInFormField)("mat-mdc-input-disabled-interactive",r.disabledInteractive)("mdc-text-field__input",r._isInFormField)("mat-mdc-native-select-inline",r._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",V]},exportAs:["matInput"],features:[Ce([{provide:Ra,useExisting:t}]),Ae]})}return t})(),rr=(()=>{class t{static \u0275fac=function(i){return new(i||t)};static \u0275mod=ee({type:t});static \u0275inj=J({imports:[we,$i,$i,w3,we]})}return t})();function Ite(t,n){if(t&1&&k(0,"input",0),t&2){let e=C();y("id",e.id)("name",e.field.name)("type",e.type||"text")("readonly",e.props.readonly)("required",e.required)("errorStateMatcher",e.errorStateMatcher)("formControl",e.formControl)("formlyAttributes",e.field)("tabIndex",e.props.tabindex)("placeholder",e.props.placeholder)}}function Ate(t,n){if(t&1&&k(0,"input",1),t&2){let e=C();y("id",e.id)("name",e.field.name)("readonly",e.props.readonly)("required",e.required)("errorStateMatcher",e.errorStateMatcher)("formControl",e.formControl)("formlyAttributes",e.field)("tabIndex",e.props.tabindex)("placeholder",e.props.placeholder)}}var Ote=(()=>{let n=class n extends to{get type(){return this.props.type||"text"}};n.\u0275fac=(()=>{let i;return function(o){return(i||(i=fe(n)))(o||n)}})(),n.\u0275cmp=E({type:n,selectors:[["formly-field-mat-input"]],standalone:!1,features:[le],decls:2,vars:1,consts:[["matInput","",3,"id","name","type","readonly","required","errorStateMatcher","formControl","formlyAttributes","tabIndex","placeholder"],["matInput","","type","number",3,"id","name","readonly","required","errorStateMatcher","formControl","formlyAttributes","tabIndex","placeholder"]],template:function(r,o){r&1&&N(0,Ite,1,10,"input",0)(1,Ate,1,9,"input",1),r&2&&L(o.type!=="number"?0:1)},dependencies:[Qi,cu,ei,Do,wo,hn,ta],encapsulation:2,changeDetection:0});let t=n;return t})();function D3(){return{types:[{name:"input",component:Ote,wrappers:["form-field"]},{name:"string",extends:"input"},{name:"number",extends:"input",defaultOptions:{props:{type:"number"}}},{name:"integer",extends:"input",defaultOptions:{props:{type:"number"}}}]}}var Rte=(()=>{let n=class n extends to{constructor(){super(...arguments),this.defaultOptions={props:{cols:1,rows:1}}}};n.\u0275fac=(()=>{let i;return function(o){return(i||(i=fe(n)))(o||n)}})(),n.\u0275cmp=E({type:n,selectors:[["formly-field-mat-textarea"]],standalone:!1,features:[Ce([{provide:wh,useExisting:n}]),le],decls:1,vars:16,consts:[["matInput","",3,"id","name","readonly","required","formControl","errorStateMatcher","cols","rows","formlyAttributes","placeholder","tabindex","cdkTextareaAutosize","cdkAutosizeMinRows","cdkAutosizeMaxRows"]],template:function(r,o){r&1&&k(0,"textarea",0),r&2&&(G("cdk-textarea-autosize",o.props.autosize),y("id",o.id)("name",o.field.name)("readonly",o.props.readonly)("required",o.required)("formControl",o.formControl)("errorStateMatcher",o.errorStateMatcher)("cols",o.props.cols)("rows",o.props.rows)("formlyAttributes",o.field)("placeholder",o.props.placeholder)("tabindex",o.props.tabindex)("cdkTextareaAutosize",o.props.autosize)("cdkAutosizeMinRows",o.props.autosizeMinRows)("cdkAutosizeMaxRows",o.props.autosizeMaxRows))},dependencies:[Qi,ei,Do,wo,hn,C3,ta],encapsulation:2,changeDetection:0});let t=n;return t})();function E3(){return{types:[{name:"textarea",component:Rte,wrappers:["form-field"]}]}}var Pte=["input"],Fte=["formField"],Nte=["*"],vx=class{source;value;constructor(n,e){this.source=n,this.value=e}},Lte={provide:tr,useExisting:Kt(()=>Dg),multi:!0},M3=new T("MatRadioGroup"),Vte=new T("mat-radio-default-options",{providedIn:"root",factory:Bte});function Bte(){return{color:"accent",disabledInteractive:!1}}var Dg=(()=>{class t{_changeDetector=u(ye);_value=null;_name=u(Ze).getId("mat-radio-group-");_selected=null;_isInitialized=!1;_labelPosition="after";_disabled=!1;_required=!1;_buttonChanges;_controlValueAccessorChangeFn=()=>{};onTouched=()=>{};change=new U;_radios;color;get name(){return this._name}set name(e){this._name=e,this._updateRadioButtonNames()}get labelPosition(){return this._labelPosition}set labelPosition(e){this._labelPosition=e==="before"?"before":"after",this._markRadiosForCheck()}get value(){return this._value}set value(e){this._value!==e&&(this._value=e,this._updateSelectedRadioFromValue(),this._checkSelectedRadioButton())}_checkSelectedRadioButton(){this._selected&&!this._selected.checked&&(this._selected.checked=!0)}get selected(){return this._selected}set selected(e){this._selected=e,this.value=e?e.value:null,this._checkSelectedRadioButton()}get disabled(){return this._disabled}set disabled(e){this._disabled=e,this._markRadiosForCheck()}get required(){return this._required}set required(e){this._required=e,this._markRadiosForCheck()}get disabledInteractive(){return this._disabledInteractive}set disabledInteractive(e){this._disabledInteractive=e,this._markRadiosForCheck()}_disabledInteractive=!1;constructor(){}ngAfterContentInit(){this._isInitialized=!0,this._buttonChanges=this._radios.changes.subscribe(()=>{this.selected&&!this._radios.find(e=>e===this.selected)&&(this._selected=null)})}ngOnDestroy(){this._buttonChanges?.unsubscribe()}_touch(){this.onTouched&&this.onTouched()}_updateRadioButtonNames(){this._radios&&this._radios.forEach(e=>{e.name=this.name,e._markForCheck()})}_updateSelectedRadioFromValue(){let e=this._selected!==null&&this._selected.value===this._value;this._radios&&!e&&(this._selected=null,this._radios.forEach(i=>{i.checked=this.value===i.value,i.checked&&(this._selected=i)}))}_emitChangeEvent(){this._isInitialized&&this.change.emit(new vx(this._selected,this._value))}_markRadiosForCheck(){this._radios&&this._radios.forEach(e=>e._markForCheck())}writeValue(e){this.value=e,this._changeDetector.markForCheck()}registerOnChange(e){this._controlValueAccessorChangeFn=e}registerOnTouched(e){this.onTouched=e}setDisabledState(e){this.disabled=e,this._changeDetector.markForCheck()}static \u0275fac=function(i){return new(i||t)};static \u0275dir=F({type:t,selectors:[["mat-radio-group"]],contentQueries:function(i,r,o){if(i&1&&xe(o,vS,5),i&2){let a;B(a=j())&&(r._radios=a)}},hostAttrs:["role","radiogroup",1,"mat-mdc-radio-group"],inputs:{color:"color",name:"name",labelPosition:"labelPosition",value:"value",selected:"selected",disabled:[2,"disabled","disabled",V],required:[2,"required","required",V],disabledInteractive:[2,"disabledInteractive","disabledInteractive",V]},outputs:{change:"change"},exportAs:["matRadioGroup"],features:[Ce([Lte,{provide:M3,useExisting:t}])]})}return t})(),vS=(()=>{class t{_elementRef=u(q);_changeDetector=u(ye);_focusMonitor=u(Yt);_radioDispatcher=u(au);_defaultOptions=u(Vte,{optional:!0});_ngZone=u(ae);_renderer=u(je);_uniqueId=u(Ze).getId("mat-radio-");_cleanupClick;id=this._uniqueId;name;ariaLabel;ariaLabelledby;ariaDescribedby;disableRipple=!1;tabIndex=0;get checked(){return this._checked}set checked(e){this._checked!==e&&(this._checked=e,e&&this.radioGroup&&this.radioGroup.value!==this.value?this.radioGroup.selected=this:!e&&this.radioGroup&&this.radioGroup.value===this.value&&(this.radioGroup.selected=null),e&&this._radioDispatcher.notify(this.id,this.name),this._changeDetector.markForCheck())}get value(){return this._value}set value(e){this._value!==e&&(this._value=e,this.radioGroup!==null&&(this.checked||(this.checked=this.radioGroup.value===e),this.checked&&(this.radioGroup.selected=this)))}get labelPosition(){return this._labelPosition||this.radioGroup&&this.radioGroup.labelPosition||"after"}set labelPosition(e){this._labelPosition=e}_labelPosition;get disabled(){return this._disabled||this.radioGroup!==null&&this.radioGroup.disabled}set disabled(e){this._setDisabled(e)}get required(){return this._required||this.radioGroup&&this.radioGroup.required}set required(e){e!==this._required&&this._changeDetector.markForCheck(),this._required=e}get color(){return this._color||this.radioGroup&&this.radioGroup.color||this._defaultOptions&&this._defaultOptions.color||"accent"}set color(e){this._color=e}_color;get disabledInteractive(){return this._disabledInteractive||this.radioGroup!==null&&this.radioGroup.disabledInteractive}set disabledInteractive(e){this._disabledInteractive=e}_disabledInteractive;change=new U;radioGroup;get inputId(){return`${this.id||this._uniqueId}-input`}_checked=!1;_disabled;_required;_value=null;_removeUniqueSelectionListener=()=>{};_previousTabIndex;_inputElement;_rippleTrigger;_noopAnimations=Ye();_injector=u(de);constructor(){u(ut).load(Di);let e=u(M3,{optional:!0}),i=u(new Ii("tabindex"),{optional:!0});this.radioGroup=e,this._disabledInteractive=this._defaultOptions?.disabledInteractive??!1,i&&(this.tabIndex=ct(i,0))}focus(e,i){i?this._focusMonitor.focusVia(this._inputElement,i,e):this._inputElement.nativeElement.focus(e)}_markForCheck(){this._changeDetector.markForCheck()}ngOnInit(){this.radioGroup&&(this.checked=this.radioGroup.value===this._value,this.checked&&(this.radioGroup.selected=this),this.name=this.radioGroup.name),this._removeUniqueSelectionListener=this._radioDispatcher.listen((e,i)=>{e!==this.id&&i===this.name&&(this.checked=!1)})}ngDoCheck(){this._updateTabIndex()}ngAfterViewInit(){this._updateTabIndex(),this._focusMonitor.monitor(this._elementRef,!0).subscribe(e=>{!e&&this.radioGroup&&this.radioGroup._touch()}),this._ngZone.runOutsideAngular(()=>{this._cleanupClick=this._renderer.listen(this._inputElement.nativeElement,"click",this._onInputClick)})}ngOnDestroy(){this._cleanupClick?.(),this._focusMonitor.stopMonitoring(this._elementRef),this._removeUniqueSelectionListener()}_emitChangeEvent(){this.change.emit(new vx(this,this._value))}_isRippleDisabled(){return this.disableRipple||this.disabled}_onInputInteraction(e){if(e.stopPropagation(),!this.checked&&!this.disabled){let i=this.radioGroup&&this.value!==this.radioGroup.value;this.checked=!0,this._emitChangeEvent(),this.radioGroup&&(this.radioGroup._controlValueAccessorChangeFn(this.value),i&&this.radioGroup._emitChangeEvent())}}_onTouchTargetClick(e){this._onInputInteraction(e),(!this.disabled||this.disabledInteractive)&&this._inputElement?.nativeElement.focus()}_setDisabled(e){this._disabled!==e&&(this._disabled=e,this._changeDetector.markForCheck())}_onInputClick=e=>{this.disabled&&this.disabledInteractive&&e.preventDefault()};_updateTabIndex(){let e=this.radioGroup,i;if(!e||!e.selected||this.disabled?i=this.tabIndex:i=e.selected===this?this.tabIndex:-1,i!==this._previousTabIndex){let r=this._inputElement?.nativeElement;r&&(r.setAttribute("tabindex",i+""),this._previousTabIndex=i,pt(()=>{queueMicrotask(()=>{e&&e.selected&&e.selected!==this&&document.activeElement===r&&(e.selected?._inputElement.nativeElement.focus(),document.activeElement===r&&this._inputElement.nativeElement.blur())})},{injector:this._injector}))}}static \u0275fac=function(i){return new(i||t)};static \u0275cmp=E({type:t,selectors:[["mat-radio-button"]],viewQuery:function(i,r){if(i&1&&(ie(Pte,5),ie(Fte,7,q)),i&2){let o;B(o=j())&&(r._inputElement=o.first),B(o=j())&&(r._rippleTrigger=o.first)}},hostAttrs:[1,"mat-mdc-radio-button"],hostVars:19,hostBindings:function(i,r){i&1&&S("focus",function(){return r._inputElement.nativeElement.focus()}),i&2&&(X("id",r.id)("tabindex",null)("aria-label",null)("aria-labelledby",null)("aria-describedby",null),G("mat-primary",r.color==="primary")("mat-accent",r.color==="accent")("mat-warn",r.color==="warn")("mat-mdc-radio-checked",r.checked)("mat-mdc-radio-disabled",r.disabled)("mat-mdc-radio-disabled-interactive",r.disabledInteractive)("_mat-animation-noopable",r._noopAnimations))},inputs:{id:"id",name:"name",ariaLabel:[0,"aria-label","ariaLabel"],ariaLabelledby:[0,"aria-labelledby","ariaLabelledby"],ariaDescribedby:[0,"aria-describedby","ariaDescribedby"],disableRipple:[2,"disableRipple","disableRipple",V],tabIndex:[2,"tabIndex","tabIndex",e=>e==null?0:ct(e)],checked:[2,"checked","checked",V],value:"value",labelPosition:"labelPosition",disabled:[2,"disabled","disabled",V],required:[2,"required","required",V],color:"color",disabledInteractive:[2,"disabledInteractive","disabledInteractive",V]},outputs:{change:"change"},exportAs:["matRadioButton"],ngContentSelectors:Nte,decls:13,vars:17,consts:[["formField",""],["input",""],["mat-internal-form-field","",3,"labelPosition"],[1,"mdc-radio"],[1,"mat-mdc-radio-touch-target",3,"click"],["type","radio","aria-invalid","false",1,"mdc-radio__native-control",3,"change","id","checked","disabled","required"],[1,"mdc-radio__background"],[1,"mdc-radio__outer-circle"],[1,"mdc-radio__inner-circle"],["mat-ripple","",1,"mat-radio-ripple","mat-focus-indicator",3,"matRippleTrigger","matRippleDisabled","matRippleCentered"],[1,"mat-ripple-element","mat-radio-persistent-ripple"],[1,"mdc-label",3,"for"]],template:function(i,r){if(i&1){let o=Y();Me(),h(0,"div",2,0)(2,"div",3)(3,"div",4),S("click",function(s){return I(o),A(r._onTouchTargetClick(s))}),p(),h(4,"input",5,1),S("change",function(s){return I(o),A(r._onInputInteraction(s))}),p(),h(6,"div",6),k(7,"div",7)(8,"div",8),p(),h(9,"div",9),k(10,"div",10),p()(),h(11,"label",11),oe(12),p()()}i&2&&(y("labelPosition",r.labelPosition),g(2),G("mdc-radio--disabled",r.disabled),g(2),y("id",r.inputId)("checked",r.checked)("disabled",r.disabled&&!r.disabledInteractive)("required",r.required),X("name",r.name)("value",r.value)("aria-label",r.ariaLabel)("aria-labelledby",r.ariaLabelledby)("aria-describedby",r.ariaDescribedby)("aria-disabled",r.disabled&&r.disabledInteractive?"true":null),g(5),y("matRippleTrigger",r._rippleTrigger.nativeElement)("matRippleDisabled",r._isRippleDisabled())("matRippleCentered",!0),g(2),y("for",r.inputId))},dependencies:[Vn,Gm],styles:[`.mat-mdc-radio-button{-webkit-tap-highlight-color:rgba(0,0,0,0)}.mat-mdc-radio-button .mdc-radio{display:inline-block;position:relative;flex:0 0 auto;box-sizing:content-box;width:20px;height:20px;cursor:pointer;will-change:opacity,transform,border-color,color;padding:calc((var(--mat-radio-state-layer-size, 40px) - 20px)/2)}.mat-mdc-radio-button .mdc-radio:hover>.mdc-radio__native-control:not([disabled]):not(:focus)~.mdc-radio__background::before{opacity:.04;transform:scale(1)}.mat-mdc-radio-button .mdc-radio:hover>.mdc-radio__native-control:not([disabled])~.mdc-radio__background>.mdc-radio__outer-circle{border-color:var(--mat-radio-unselected-hover-icon-color, var(--mat-sys-on-surface))}.mat-mdc-radio-button .mdc-radio:hover>.mdc-radio__native-control:enabled:checked+.mdc-radio__background>.mdc-radio__outer-circle{border-color:var(--mat-radio-selected-hover-icon-color, var(--mat-sys-primary))}.mat-mdc-radio-button .mdc-radio:hover>.mdc-radio__native-control:enabled:checked+.mdc-radio__background>.mdc-radio__inner-circle{background-color:var(--mat-radio-selected-hover-icon-color, var(--mat-sys-primary, currentColor))}.mat-mdc-radio-button .mdc-radio:active>.mdc-radio__native-control:enabled:not(:checked)+.mdc-radio__background>.mdc-radio__outer-circle{border-color:var(--mat-radio-unselected-pressed-icon-color, var(--mat-sys-on-surface))}.mat-mdc-radio-button .mdc-radio:active>.mdc-radio__native-control:enabled:checked+.mdc-radio__background>.mdc-radio__outer-circle{border-color:var(--mat-radio-selected-pressed-icon-color, var(--mat-sys-primary))}.mat-mdc-radio-button .mdc-radio:active>.mdc-radio__native-control:enabled:checked+.mdc-radio__background>.mdc-radio__inner-circle{background-color:var(--mat-radio-selected-pressed-icon-color, var(--mat-sys-primary, currentColor))}.mat-mdc-radio-button .mdc-radio__background{display:inline-block;position:relative;box-sizing:border-box;width:20px;height:20px}.mat-mdc-radio-button .mdc-radio__background::before{position:absolute;transform:scale(0, 0);border-radius:50%;opacity:0;pointer-events:none;content:"";transition:opacity 90ms cubic-bezier(0.4, 0, 0.6, 1),transform 90ms cubic-bezier(0.4, 0, 0.6, 1);width:var(--mat-radio-state-layer-size, 40px);height:var(--mat-radio-state-layer-size, 40px);top:calc(-1*(var(--mat-radio-state-layer-size, 40px) - 20px)/2);left:calc(-1*(var(--mat-radio-state-layer-size, 40px) - 20px)/2)}.mat-mdc-radio-button .mdc-radio__outer-circle{position:absolute;top:0;left:0;box-sizing:border-box;width:100%;height:100%;border-width:2px;border-style:solid;border-radius:50%;transition:border-color 90ms cubic-bezier(0.4, 0, 0.6, 1)}.mat-mdc-radio-button .mdc-radio__inner-circle{position:absolute;top:0;left:0;box-sizing:border-box;width:100%;height:100%;transform:scale(0);border-radius:50%;transition:transform 90ms cubic-bezier(0.4, 0, 0.6, 1),background-color 90ms cubic-bezier(0.4, 0, 0.6, 1)}@media(forced-colors: active){.mat-mdc-radio-button .mdc-radio__inner-circle{background-color:CanvasText !important}}.mat-mdc-radio-button .mdc-radio__native-control{position:absolute;margin:0;padding:0;opacity:0;top:0;right:0;left:0;cursor:inherit;z-index:1;width:var(--mat-radio-state-layer-size, 40px);height:var(--mat-radio-state-layer-size, 40px)}.mat-mdc-radio-button .mdc-radio__native-control:checked+.mdc-radio__background,.mat-mdc-radio-button .mdc-radio__native-control:disabled+.mdc-radio__background{transition:opacity 90ms cubic-bezier(0, 0, 0.2, 1),transform 90ms cubic-bezier(0, 0, 0.2, 1)}.mat-mdc-radio-button .mdc-radio__native-control:checked+.mdc-radio__background>.mdc-radio__outer-circle,.mat-mdc-radio-button .mdc-radio__native-control:disabled+.mdc-radio__background>.mdc-radio__outer-circle{transition:border-color 90ms cubic-bezier(0, 0, 0.2, 1)}.mat-mdc-radio-button .mdc-radio__native-control:checked+.mdc-radio__background>.mdc-radio__inner-circle,.mat-mdc-radio-button .mdc-radio__native-control:disabled+.mdc-radio__background>.mdc-radio__inner-circle{transition:transform 90ms cubic-bezier(0, 0, 0.2, 1),background-color 90ms cubic-bezier(0, 0, 0.2, 1)}.mat-mdc-radio-button .mdc-radio__native-control:focus+.mdc-radio__background::before{transform:scale(1);opacity:.12;transition:opacity 90ms cubic-bezier(0, 0, 0.2, 1),transform 90ms cubic-bezier(0, 0, 0.2, 1)}.mat-mdc-radio-button .mdc-radio__native-control:disabled:not(:checked)+.mdc-radio__background>.mdc-radio__outer-circle{border-color:var(--mat-radio-disabled-unselected-icon-color, var(--mat-sys-on-surface));opacity:var(--mat-radio-disabled-unselected-icon-opacity, 0.38)}.mat-mdc-radio-button .mdc-radio__native-control:disabled+.mdc-radio__background{cursor:default}.mat-mdc-radio-button .mdc-radio__native-control:disabled+.mdc-radio__background>.mdc-radio__outer-circle{border-color:var(--mat-radio-disabled-selected-icon-color, var(--mat-sys-on-surface));opacity:var(--mat-radio-disabled-selected-icon-opacity, 0.38)}.mat-mdc-radio-button .mdc-radio__native-control:disabled+.mdc-radio__background>.mdc-radio__inner-circle{background-color:var(--mat-radio-disabled-selected-icon-color, var(--mat-sys-on-surface, currentColor));opacity:var(--mat-radio-disabled-selected-icon-opacity, 0.38)}.mat-mdc-radio-button .mdc-radio__native-control:enabled:not(:checked)+.mdc-radio__background>.mdc-radio__outer-circle{border-color:var(--mat-radio-unselected-icon-color, var(--mat-sys-on-surface-variant))}.mat-mdc-radio-button .mdc-radio__native-control:enabled:checked+.mdc-radio__background>.mdc-radio__outer-circle{border-color:var(--mat-radio-selected-icon-color, var(--mat-sys-primary))}.mat-mdc-radio-button .mdc-radio__native-control:enabled:checked+.mdc-radio__background>.mdc-radio__inner-circle{background-color:var(--mat-radio-selected-icon-color, var(--mat-sys-primary, currentColor))}.mat-mdc-radio-button .mdc-radio__native-control:enabled:focus:checked+.mdc-radio__background>.mdc-radio__outer-circle{border-color:var(--mat-radio-selected-focus-icon-color, var(--mat-sys-primary))}.mat-mdc-radio-button .mdc-radio__native-control:enabled:focus:checked+.mdc-radio__background>.mdc-radio__inner-circle{background-color:var(--mat-radio-selected-focus-icon-color, var(--mat-sys-primary, currentColor))}.mat-mdc-radio-button .mdc-radio__native-control:checked+.mdc-radio__background>.mdc-radio__inner-circle{transform:scale(0.5);transition:transform 90ms cubic-bezier(0, 0, 0.2, 1),background-color 90ms cubic-bezier(0, 0, 0.2, 1)}.mat-mdc-radio-button.mat-mdc-radio-disabled-interactive .mdc-radio--disabled{pointer-events:auto}.mat-mdc-radio-button.mat-mdc-radio-disabled-interactive .mdc-radio--disabled .mdc-radio__native-control:not(:checked)+.mdc-radio__background>.mdc-radio__outer-circle{border-color:var(--mat-radio-disabled-unselected-icon-color, var(--mat-sys-on-surface));opacity:var(--mat-radio-disabled-unselected-icon-opacity, 0.38)}.mat-mdc-radio-button.mat-mdc-radio-disabled-interactive .mdc-radio--disabled:hover .mdc-radio__native-control:checked+.mdc-radio__background>.mdc-radio__outer-circle,.mat-mdc-radio-button.mat-mdc-radio-disabled-interactive .mdc-radio--disabled .mdc-radio__native-control:checked:focus+.mdc-radio__background>.mdc-radio__outer-circle,.mat-mdc-radio-button.mat-mdc-radio-disabled-interactive .mdc-radio--disabled .mdc-radio__native-control+.mdc-radio__background>.mdc-radio__outer-circle{border-color:var(--mat-radio-disabled-selected-icon-color, var(--mat-sys-on-surface));opacity:var(--mat-radio-disabled-selected-icon-opacity, 0.38)}.mat-mdc-radio-button.mat-mdc-radio-disabled-interactive .mdc-radio--disabled:hover .mdc-radio__native-control:checked+.mdc-radio__background>.mdc-radio__inner-circle,.mat-mdc-radio-button.mat-mdc-radio-disabled-interactive .mdc-radio--disabled .mdc-radio__native-control:checked:focus+.mdc-radio__background>.mdc-radio__inner-circle,.mat-mdc-radio-button.mat-mdc-radio-disabled-interactive .mdc-radio--disabled .mdc-radio__native-control+.mdc-radio__background>.mdc-radio__inner-circle{background-color:var(--mat-radio-disabled-selected-icon-color, var(--mat-sys-on-surface, currentColor));opacity:var(--mat-radio-disabled-selected-icon-opacity, 0.38)}.mat-mdc-radio-button._mat-animation-noopable .mdc-radio__background::before,.mat-mdc-radio-button._mat-animation-noopable .mdc-radio__outer-circle,.mat-mdc-radio-button._mat-animation-noopable .mdc-radio__inner-circle{transition:none !important}.mat-mdc-radio-button label{cursor:pointer}.mat-mdc-radio-button .mdc-radio__background::before{background-color:var(--mat-radio-ripple-color, var(--mat-sys-on-surface))}.mat-mdc-radio-button.mat-mdc-radio-checked .mat-ripple-element,.mat-mdc-radio-button.mat-mdc-radio-checked .mdc-radio__background::before{background-color:var(--mat-radio-checked-ripple-color, var(--mat-sys-primary))}.mat-mdc-radio-button.mat-mdc-radio-disabled-interactive .mdc-radio--disabled .mat-ripple-element,.mat-mdc-radio-button.mat-mdc-radio-disabled-interactive .mdc-radio--disabled .mdc-radio__background::before{background-color:var(--mat-radio-ripple-color, var(--mat-sys-on-surface))}.mat-mdc-radio-button .mat-internal-form-field{color:var(--mat-radio-label-text-color, var(--mat-sys-on-surface));font-family:var(--mat-radio-label-text-font, var(--mat-sys-body-medium-font));line-height:var(--mat-radio-label-text-line-height, var(--mat-sys-body-medium-line-height));font-size:var(--mat-radio-label-text-size, var(--mat-sys-body-medium-size));letter-spacing:var(--mat-radio-label-text-tracking, var(--mat-sys-body-medium-tracking));font-weight:var(--mat-radio-label-text-weight, var(--mat-sys-body-medium-weight))}.mat-mdc-radio-button .mdc-radio--disabled+label{color:var(--mat-radio-disabled-label-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent))}.mat-mdc-radio-button .mat-radio-ripple{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none;border-radius:50%}.mat-mdc-radio-button .mat-radio-ripple>.mat-ripple-element{opacity:.14}.mat-mdc-radio-button .mat-radio-ripple::before{border-radius:50%}.mat-mdc-radio-button .mdc-radio>.mdc-radio__native-control:focus:enabled:not(:checked)~.mdc-radio__background>.mdc-radio__outer-circle{border-color:var(--mat-radio-unselected-focus-icon-color, var(--mat-sys-on-surface))}.mat-mdc-radio-button.cdk-focused .mat-focus-indicator::before{content:""}.mat-mdc-radio-disabled{cursor:default;pointer-events:none}.mat-mdc-radio-disabled.mat-mdc-radio-disabled-interactive{pointer-events:auto}.mat-mdc-radio-touch-target{position:absolute;top:50%;left:50%;height:var(--mat-radio-touch-target-size, 48px);width:var(--mat-radio-touch-target-size, 48px);transform:translate(-50%, -50%);display:var(--mat-radio-touch-target-display, block)}[dir=rtl] .mat-mdc-radio-touch-target{left:auto;right:50%;transform:translate(50%, -50%)} -`],encapsulation:2,changeDetection:0})}return t})();var Hte=(()=>{let n=class n{transform(i,r){return i instanceof Fe?this.dispose():i=this.observableOf(i,r),i.pipe(se(o=>this.transformOptions(o,r)))}ngOnDestroy(){this.dispose()}transformOptions(i,r){let o=this.transformSelectProps(r),a=[],s={};return i?.forEach(l=>{let c=this.transformOption(l,o);if(c.group){let d=s[c.label];d===void 0?s[c.label]=a.push(c)-1:c.group.forEach(m=>a[d].group.push(m))}else a.push(c)}),a}transformOption(i,r){let o=r.groupProp(i);return Array.isArray(o)?{label:r.labelProp(i),group:o.map(a=>this.transformOption(a,r))}:(i={label:r.labelProp(i),value:r.valueProp(i),disabled:!!r.disabledProp(i)},o?{label:o,group:[i]}:i)}transformSelectProps(i){let r=i?.props||i?.templateOptions||{},o=a=>typeof a=="function"?a:s=>s[a];return{groupProp:o(r.groupProp||"group"),labelProp:o(r.labelProp||"label"),valueProp:o(r.valueProp||"value"),disabledProp:o(r.disabledProp||"disabled")}}dispose(){this._options&&(this._options.complete(),this._options=null),this._subscription&&(this._subscription.unsubscribe(),this._subscription=null)}observableOf(i,r){return this.dispose(),r&&r.options&&r.options.fieldChanges&&(this._subscription=r.options.fieldChanges.pipe(ce(({property:o,type:a,field:s})=>a==="expressionChanges"&&(o.indexOf("templateOptions.options")===0||o.indexOf("props.options")===0)&&s===r&&Array.isArray(s.props.options)&&!!this._options),Be(()=>this._options.next(r.props.options))).subscribe()),this._options=new tt(i),this._options.asObservable()}};n.\u0275fac=function(r){return new(r||n)},n.\u0275pipe=Wr({name:"formlySelectOptions",type:n,pure:!0});let t=n;return t})(),Eh=(()=>{let n=class n extends Hte{};n.\u0275fac=(()=>{let i;return function(o){return(i||(i=fe(n)))(o||n)}})(),n.\u0275pipe=Wr({name:"formlySelectOptions",type:n,pure:!0,standalone:!1});let t=n;return t})();function zte(t,n){if(t&1&&(h(0,"mat-radio-button",1),_(1),p()),t&2){let e=n.$implicit,i=n.$index,r=C();y("id",r.id+"_"+i)("color",r.props.color)("labelPosition",r.props.labelPosition)("disabled",e.disabled)("value",e.value),g(),ve(" ",e.label," ")}}var Ute=(()=>{let n=class n extends to{constructor(){super(...arguments),this.defaultOptions={props:{hideFieldUnderline:!0,floatLabel:"always",tabindex:-1}}}ngAfterViewInit(){this.focusObserver=Wi(this.field,["focus"],({currentValue:i})=>{this.props.tabindex===-1&&i&&this.radioGroup._radios.length>0&&setTimeout(()=>{(this.radioGroup.selected?this.radioGroup.selected:this.radioGroup._radios.first).focus()})})}onContainerClick(){}ngOnDestroy(){super.ngOnDestroy(),this.focusObserver&&this.focusObserver.unsubscribe()}};n.\u0275fac=(()=>{let i;return function(o){return(i||(i=fe(n)))(o||n)}})(),n.\u0275cmp=E({type:n,selectors:[["formly-field-mat-radio"]],viewQuery:function(r,o){if(r&1&&ie(Dg,7),r&2){let a;B(a=j())&&(o.radioGroup=a.first)}},standalone:!1,features:[le],decls:5,vars:9,consts:[[3,"formControl","formlyAttributes","required","tabindex"],[3,"id","color","labelPosition","disabled","value"]],template:function(r,o){r&1&&(h(0,"mat-radio-group",0),xt(1,zte,2,6,"mat-radio-button",1,Hi),me(3,"formlySelectOptions"),me(4,"async"),p()),r&2&&(y("formControl",o.formControl)("formlyAttributes",o.field)("required",o.required)("tabindex",o.props.tabindex),g(),Ct(Oe(4,7,Ni(3,4,o.props.options,o.field))))},dependencies:[ei,Do,wo,Dg,vS,ta,rn,Eh],encapsulation:2,changeDetection:0});let t=n;return t})();function k3(){return{types:[{name:"radio",component:Ute,wrappers:["form-field"]}]}}var $te=["input"],Wte=["label"],Gte=["*"],qte=new T("mat-checkbox-default-options",{providedIn:"root",factory:T3});function T3(){return{color:"accent",clickAction:"check-indeterminate",disabledInteractive:!1}}var xr=(function(t){return t[t.Init=0]="Init",t[t.Checked=1]="Checked",t[t.Unchecked=2]="Unchecked",t[t.Indeterminate=3]="Indeterminate",t})(xr||{}),xS=class{source;checked},S3=T3(),Va=(()=>{class t{_elementRef=u(q);_changeDetectorRef=u(ye);_ngZone=u(ae);_animationsDisabled=Ye();_options=u(qte,{optional:!0});focus(){this._inputElement.nativeElement.focus()}_createChangeEvent(e){let i=new xS;return i.source=this,i.checked=e,i}_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;labelPosition="after";name=null;change=new U;indeterminateChange=new U;value;disableRipple;_inputElement;_labelElement;tabIndex;color;disabledInteractive;_onTouched=()=>{};_currentAnimationClass="";_currentCheckState=xr.Init;_controlValueAccessorChangeFn=()=>{};_validatorChangeFn=()=>{};constructor(){u(ut).load(Di);let e=u(new Ii("tabindex"),{optional:!0});this._options=this._options||S3,this.color=this._options.color||S3.color,this.tabIndex=e==null?0:parseInt(e)||0,this.id=this._uniqueId=u(Ze).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 i=e!=this._indeterminate();this._indeterminate.set(e),i&&(e?this._transitionCheckState(xr.Indeterminate):this._transitionCheckState(this.checked?xr.Checked:xr.Unchecked),this.indeterminateChange.emit(e)),this._syncIndeterminate(e)}_indeterminate=he(!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 i=this._currentCheckState,r=this._getAnimationTargetElement();if(!(i===e||!r)&&(this._currentAnimationClass&&r.classList.remove(this._currentAnimationClass),this._currentAnimationClass=this._getAnimationClassForCheckStateTransition(i,e),this._currentCheckState=e,this._currentAnimationClass.length>0)){r.classList.add(this._currentAnimationClass);let o=this._currentAnimationClass;this._ngZone.runOutsideAngular(()=>{setTimeout(()=>{r.classList.remove(o)},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?xr.Checked:xr.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,i){if(this._animationsDisabled)return"";switch(e){case xr.Init:if(i===xr.Checked)return this._animationClasses.uncheckedToChecked;if(i==xr.Indeterminate)return this._checked?this._animationClasses.checkedToIndeterminate:this._animationClasses.uncheckedToIndeterminate;break;case xr.Unchecked:return i===xr.Checked?this._animationClasses.uncheckedToChecked:this._animationClasses.uncheckedToIndeterminate;case xr.Checked:return i===xr.Unchecked?this._animationClasses.checkedToUnchecked:this._animationClasses.checkedToIndeterminate;case xr.Indeterminate:return i===xr.Checked?this._animationClasses.indeterminateToChecked:this._animationClasses.indeterminateToUnchecked}return""}_syncIndeterminate(e){let i=this._inputElement;i&&(i.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(i){return new(i||t)};static \u0275cmp=E({type:t,selectors:[["mat-checkbox"]],viewQuery:function(i,r){if(i&1&&(ie($te,5),ie(Wte,5)),i&2){let o;B(o=j())&&(r._inputElement=o.first),B(o=j())&&(r._labelElement=o.first)}},hostAttrs:[1,"mat-mdc-checkbox"],hostVars:16,hostBindings:function(i,r){i&2&&(si("id",r.id),X("tabindex",null)("aria-label",null)("aria-labelledby",null),it(r.color?"mat-"+r.color:"mat-accent"),G("_mat-animation-noopable",r._animationsDisabled)("mdc-checkbox--disabled",r.disabled)("mat-mdc-checkbox-disabled",r.disabled)("mat-mdc-checkbox-checked",r.checked)("mat-mdc-checkbox-disabled-interactive",r.disabledInteractive))},inputs:{ariaLabel:[0,"aria-label","ariaLabel"],ariaLabelledby:[0,"aria-labelledby","ariaLabelledby"],ariaDescribedby:[0,"aria-describedby","ariaDescribedby"],ariaExpanded:[2,"aria-expanded","ariaExpanded",V],ariaControls:[0,"aria-controls","ariaControls"],ariaOwns:[0,"aria-owns","ariaOwns"],id:"id",required:[2,"required","required",V],labelPosition:"labelPosition",name:"name",value:"value",disableRipple:[2,"disableRipple","disableRipple",V],tabIndex:[2,"tabIndex","tabIndex",e=>e==null?void 0:ct(e)],color:"color",disabledInteractive:[2,"disabledInteractive","disabledInteractive",V],checked:[2,"checked","checked",V],disabled:[2,"disabled","disabled",V],indeterminate:[2,"indeterminate","indeterminate",V]},outputs:{change:"change",indeterminateChange:"indeterminateChange"},exportAs:["matCheckbox"],features:[Ce([{provide:tr,useExisting:Kt(()=>t),multi:!0},{provide:ea,useExisting:t,multi:!0}]),Ae],ngContentSelectors:Gte,decls:15,vars:23,consts:[["checkbox",""],["input",""],["label",""],["mat-internal-form-field","",3,"click","labelPosition"],[1,"mdc-checkbox"],[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"],[1,"mdc-checkbox__ripple"],[1,"mdc-checkbox__background"],["focusable","false","viewBox","0 0 24 24","aria-hidden","true",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","",1,"mat-mdc-checkbox-ripple","mat-focus-indicator",3,"matRippleTrigger","matRippleDisabled","matRippleCentered"],[1,"mdc-label",3,"for"]],template:function(i,r){if(i&1){let o=Y();Me(),h(0,"div",3),S("click",function(s){return I(o),A(r._preventBubblingFromLabel(s))}),h(1,"div",4,0)(3,"div",5),S("click",function(){return I(o),A(r._onTouchTargetClick())}),p(),h(4,"input",6,1),S("blur",function(){return I(o),A(r._onBlur())})("click",function(){return I(o),A(r._onInputClick())})("change",function(s){return I(o),A(r._onInteractionEvent(s))}),p(),k(6,"div",7),h(7,"div",8),Gt(),h(8,"svg",9),k(9,"path",10),p(),jo(),k(10,"div",11),p(),k(11,"div",12),p(),h(12,"label",13,2),oe(14),p()()}if(i&2){let o=Se(2);y("labelPosition",r.labelPosition),g(4),G("mdc-checkbox--selected",r.checked),y("checked",r.checked)("indeterminate",r.indeterminate)("disabled",r.disabled&&!r.disabledInteractive)("id",r.inputId)("required",r.required)("tabIndex",r.disabled&&!r.disabledInteractive?-1:r.tabIndex),X("aria-label",r.ariaLabel||null)("aria-labelledby",r.ariaLabelledby)("aria-describedby",r.ariaDescribedby)("aria-checked",r.indeterminate?"mixed":null)("aria-controls",r.ariaControls)("aria-disabled",r.disabled&&r.disabledInteractive?!0:null)("aria-expanded",r.ariaExpanded)("aria-owns",r.ariaOwns)("name",r.name)("value",r.value),g(7),y("matRippleTrigger",o)("matRippleDisabled",r.disableRipple||r.disabled)("matRippleCentered",!0),g(),y("for",r.inputId)}},dependencies:[Vn,Gm],styles:[`.mdc-checkbox{display:inline-block;position:relative;flex:0 0 18px;box-sizing:content-box;width:18px;height:18px;line-height:0;white-space:nowrap;cursor:pointer;vertical-align:bottom;padding:calc((var(--mat-checkbox-state-layer-size, 40px) - 18px)/2);margin:calc((var(--mat-checkbox-state-layer-size, 40px) - var(--mat-checkbox-state-layer-size, 40px))/2)}.mdc-checkbox:hover>.mdc-checkbox__ripple{opacity:var(--mat-checkbox-unselected-hover-state-layer-opacity, var(--mat-sys-hover-state-layer-opacity));background-color:var(--mat-checkbox-unselected-hover-state-layer-color, var(--mat-sys-on-surface))}.mdc-checkbox:hover>.mat-mdc-checkbox-ripple>.mat-ripple-element{background-color:var(--mat-checkbox-unselected-hover-state-layer-color, var(--mat-sys-on-surface))}.mdc-checkbox .mdc-checkbox__native-control:focus+.mdc-checkbox__ripple{opacity:var(--mat-checkbox-unselected-focus-state-layer-opacity, var(--mat-sys-focus-state-layer-opacity));background-color:var(--mat-checkbox-unselected-focus-state-layer-color, var(--mat-sys-on-surface))}.mdc-checkbox .mdc-checkbox__native-control:focus~.mat-mdc-checkbox-ripple .mat-ripple-element{background-color:var(--mat-checkbox-unselected-focus-state-layer-color, var(--mat-sys-on-surface))}.mdc-checkbox:active>.mdc-checkbox__native-control+.mdc-checkbox__ripple{opacity:var(--mat-checkbox-unselected-pressed-state-layer-opacity, var(--mat-sys-pressed-state-layer-opacity));background-color:var(--mat-checkbox-unselected-pressed-state-layer-color, var(--mat-sys-primary))}.mdc-checkbox:active>.mdc-checkbox__native-control~.mat-mdc-checkbox-ripple .mat-ripple-element{background-color:var(--mat-checkbox-unselected-pressed-state-layer-color, var(--mat-sys-primary))}.mdc-checkbox:hover .mdc-checkbox__native-control:checked+.mdc-checkbox__ripple{opacity:var(--mat-checkbox-selected-hover-state-layer-opacity, var(--mat-sys-hover-state-layer-opacity));background-color:var(--mat-checkbox-selected-hover-state-layer-color, var(--mat-sys-primary))}.mdc-checkbox:hover .mdc-checkbox__native-control:checked~.mat-mdc-checkbox-ripple .mat-ripple-element{background-color:var(--mat-checkbox-selected-hover-state-layer-color, var(--mat-sys-primary))}.mdc-checkbox .mdc-checkbox__native-control:focus:checked+.mdc-checkbox__ripple{opacity:var(--mat-checkbox-selected-focus-state-layer-opacity, var(--mat-sys-focus-state-layer-opacity));background-color:var(--mat-checkbox-selected-focus-state-layer-color, var(--mat-sys-primary))}.mdc-checkbox .mdc-checkbox__native-control:focus:checked~.mat-mdc-checkbox-ripple .mat-ripple-element{background-color:var(--mat-checkbox-selected-focus-state-layer-color, var(--mat-sys-primary))}.mdc-checkbox:active>.mdc-checkbox__native-control:checked+.mdc-checkbox__ripple{opacity:var(--mat-checkbox-selected-pressed-state-layer-opacity, var(--mat-sys-pressed-state-layer-opacity));background-color:var(--mat-checkbox-selected-pressed-state-layer-color, var(--mat-sys-on-surface))}.mdc-checkbox:active>.mdc-checkbox__native-control:checked~.mat-mdc-checkbox-ripple .mat-ripple-element{background-color:var(--mat-checkbox-selected-pressed-state-layer-color, var(--mat-sys-on-surface))}.mdc-checkbox--disabled.mat-mdc-checkbox-disabled-interactive .mdc-checkbox .mdc-checkbox__native-control~.mat-mdc-checkbox-ripple .mat-ripple-element,.mdc-checkbox--disabled.mat-mdc-checkbox-disabled-interactive .mdc-checkbox .mdc-checkbox__native-control+.mdc-checkbox__ripple{background-color:var(--mat-checkbox-unselected-hover-state-layer-color, var(--mat-sys-on-surface))}.mdc-checkbox .mdc-checkbox__native-control{position:absolute;margin:0;padding:0;opacity:0;cursor:inherit;z-index:1;width:var(--mat-checkbox-state-layer-size, 40px);height:var(--mat-checkbox-state-layer-size, 40px);top:calc((var(--mat-checkbox-state-layer-size, 40px) - var(--mat-checkbox-state-layer-size, 40px))/2);right:calc((var(--mat-checkbox-state-layer-size, 40px) - var(--mat-checkbox-state-layer-size, 40px))/2);left:calc((var(--mat-checkbox-state-layer-size, 40px) - var(--mat-checkbox-state-layer-size, 40px))/2)}.mdc-checkbox--disabled{cursor:default;pointer-events:none}.mdc-checkbox__background{display:inline-flex;position:absolute;align-items:center;justify-content:center;box-sizing:border-box;width:18px;height:18px;border:2px solid currentColor;border-radius:2px;background-color:rgba(0,0,0,0);pointer-events:none;will-change:background-color,border-color;transition:background-color 90ms cubic-bezier(0.4, 0, 0.6, 1),border-color 90ms cubic-bezier(0.4, 0, 0.6, 1);-webkit-print-color-adjust:exact;color-adjust:exact;border-color:var(--mat-checkbox-unselected-icon-color, var(--mat-sys-on-surface-variant));top:calc((var(--mat-checkbox-state-layer-size, 40px) - 18px)/2);left:calc((var(--mat-checkbox-state-layer-size, 40px) - 18px)/2)}.mdc-checkbox__native-control:enabled:checked~.mdc-checkbox__background,.mdc-checkbox__native-control:enabled:indeterminate~.mdc-checkbox__background{border-color:var(--mat-checkbox-selected-icon-color, var(--mat-sys-primary));background-color:var(--mat-checkbox-selected-icon-color, var(--mat-sys-primary))}.mdc-checkbox--disabled .mdc-checkbox__background{border-color:var(--mat-checkbox-disabled-unselected-icon-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent))}@media(forced-colors: active){.mdc-checkbox--disabled .mdc-checkbox__background{border-color:GrayText}}.mdc-checkbox__native-control:disabled:checked~.mdc-checkbox__background,.mdc-checkbox__native-control:disabled:indeterminate~.mdc-checkbox__background{background-color:var(--mat-checkbox-disabled-selected-icon-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent));border-color:rgba(0,0,0,0)}@media(forced-colors: active){.mdc-checkbox__native-control:disabled:checked~.mdc-checkbox__background,.mdc-checkbox__native-control:disabled:indeterminate~.mdc-checkbox__background{border-color:GrayText}}.mdc-checkbox:hover>.mdc-checkbox__native-control:not(:checked)~.mdc-checkbox__background,.mdc-checkbox:hover>.mdc-checkbox__native-control:not(:indeterminate)~.mdc-checkbox__background{border-color:var(--mat-checkbox-unselected-hover-icon-color, var(--mat-sys-on-surface));background-color:rgba(0,0,0,0)}.mdc-checkbox:hover>.mdc-checkbox__native-control:checked~.mdc-checkbox__background,.mdc-checkbox:hover>.mdc-checkbox__native-control:indeterminate~.mdc-checkbox__background{border-color:var(--mat-checkbox-selected-hover-icon-color, var(--mat-sys-primary));background-color:var(--mat-checkbox-selected-hover-icon-color, var(--mat-sys-primary))}.mdc-checkbox__native-control:focus:focus:not(:checked)~.mdc-checkbox__background,.mdc-checkbox__native-control:focus:focus:not(:indeterminate)~.mdc-checkbox__background{border-color:var(--mat-checkbox-unselected-focus-icon-color, var(--mat-sys-on-surface))}.mdc-checkbox__native-control:focus:focus:checked~.mdc-checkbox__background,.mdc-checkbox__native-control:focus:focus:indeterminate~.mdc-checkbox__background{border-color:var(--mat-checkbox-selected-focus-icon-color, var(--mat-sys-primary));background-color:var(--mat-checkbox-selected-focus-icon-color, var(--mat-sys-primary))}.mdc-checkbox--disabled.mat-mdc-checkbox-disabled-interactive .mdc-checkbox:hover>.mdc-checkbox__native-control~.mdc-checkbox__background,.mdc-checkbox--disabled.mat-mdc-checkbox-disabled-interactive .mdc-checkbox .mdc-checkbox__native-control:focus~.mdc-checkbox__background,.mdc-checkbox--disabled.mat-mdc-checkbox-disabled-interactive .mdc-checkbox__background{border-color:var(--mat-checkbox-disabled-unselected-icon-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent))}@media(forced-colors: active){.mdc-checkbox--disabled.mat-mdc-checkbox-disabled-interactive .mdc-checkbox:hover>.mdc-checkbox__native-control~.mdc-checkbox__background,.mdc-checkbox--disabled.mat-mdc-checkbox-disabled-interactive .mdc-checkbox .mdc-checkbox__native-control:focus~.mdc-checkbox__background,.mdc-checkbox--disabled.mat-mdc-checkbox-disabled-interactive .mdc-checkbox__background{border-color:GrayText}}.mdc-checkbox--disabled.mat-mdc-checkbox-disabled-interactive .mdc-checkbox__native-control:checked~.mdc-checkbox__background,.mdc-checkbox--disabled.mat-mdc-checkbox-disabled-interactive .mdc-checkbox__native-control:indeterminate~.mdc-checkbox__background{background-color:var(--mat-checkbox-disabled-selected-icon-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent));border-color:rgba(0,0,0,0)}.mdc-checkbox__checkmark{position:absolute;top:0;right:0;bottom:0;left:0;width:100%;opacity:0;transition:opacity 180ms cubic-bezier(0.4, 0, 0.6, 1);color:var(--mat-checkbox-selected-checkmark-color, var(--mat-sys-on-primary))}@media(forced-colors: active){.mdc-checkbox__checkmark{color:CanvasText}}.mdc-checkbox--disabled .mdc-checkbox__checkmark,.mdc-checkbox--disabled.mat-mdc-checkbox-disabled-interactive .mdc-checkbox__checkmark{color:var(--mat-checkbox-disabled-selected-checkmark-color, var(--mat-sys-surface))}@media(forced-colors: active){.mdc-checkbox--disabled .mdc-checkbox__checkmark,.mdc-checkbox--disabled.mat-mdc-checkbox-disabled-interactive .mdc-checkbox__checkmark{color:GrayText}}.mdc-checkbox__checkmark-path{transition:stroke-dashoffset 180ms cubic-bezier(0.4, 0, 0.6, 1);stroke:currentColor;stroke-width:3.12px;stroke-dashoffset:29.7833385;stroke-dasharray:29.7833385}.mdc-checkbox__mixedmark{width:100%;height:0;transform:scaleX(0) rotate(0deg);border-width:1px;border-style:solid;opacity:0;transition:opacity 90ms cubic-bezier(0.4, 0, 0.6, 1),transform 90ms cubic-bezier(0.4, 0, 0.6, 1);border-color:var(--mat-checkbox-selected-checkmark-color, var(--mat-sys-on-primary))}@media(forced-colors: active){.mdc-checkbox__mixedmark{margin:0 1px}}.mdc-checkbox--disabled .mdc-checkbox__mixedmark,.mdc-checkbox--disabled.mat-mdc-checkbox-disabled-interactive .mdc-checkbox__mixedmark{border-color:var(--mat-checkbox-disabled-selected-checkmark-color, var(--mat-sys-surface))}@media(forced-colors: active){.mdc-checkbox--disabled .mdc-checkbox__mixedmark,.mdc-checkbox--disabled.mat-mdc-checkbox-disabled-interactive .mdc-checkbox__mixedmark{border-color:GrayText}}.mdc-checkbox--anim-unchecked-checked .mdc-checkbox__background,.mdc-checkbox--anim-unchecked-indeterminate .mdc-checkbox__background,.mdc-checkbox--anim-checked-unchecked .mdc-checkbox__background,.mdc-checkbox--anim-indeterminate-unchecked .mdc-checkbox__background{animation-duration:180ms;animation-timing-function:linear}.mdc-checkbox--anim-unchecked-checked .mdc-checkbox__checkmark-path{animation:mdc-checkbox-unchecked-checked-checkmark-path 180ms linear;transition:none}.mdc-checkbox--anim-unchecked-indeterminate .mdc-checkbox__mixedmark{animation:mdc-checkbox-unchecked-indeterminate-mixedmark 90ms linear;transition:none}.mdc-checkbox--anim-checked-unchecked .mdc-checkbox__checkmark-path{animation:mdc-checkbox-checked-unchecked-checkmark-path 90ms linear;transition:none}.mdc-checkbox--anim-checked-indeterminate .mdc-checkbox__checkmark{animation:mdc-checkbox-checked-indeterminate-checkmark 90ms linear;transition:none}.mdc-checkbox--anim-checked-indeterminate .mdc-checkbox__mixedmark{animation:mdc-checkbox-checked-indeterminate-mixedmark 90ms linear;transition:none}.mdc-checkbox--anim-indeterminate-checked .mdc-checkbox__checkmark{animation:mdc-checkbox-indeterminate-checked-checkmark 500ms linear;transition:none}.mdc-checkbox--anim-indeterminate-checked .mdc-checkbox__mixedmark{animation:mdc-checkbox-indeterminate-checked-mixedmark 500ms linear;transition:none}.mdc-checkbox--anim-indeterminate-unchecked .mdc-checkbox__mixedmark{animation:mdc-checkbox-indeterminate-unchecked-mixedmark 300ms linear;transition:none}.mdc-checkbox__native-control:checked~.mdc-checkbox__background,.mdc-checkbox__native-control:indeterminate~.mdc-checkbox__background{transition:border-color 90ms cubic-bezier(0, 0, 0.2, 1),background-color 90ms cubic-bezier(0, 0, 0.2, 1)}.mdc-checkbox__native-control:checked~.mdc-checkbox__background>.mdc-checkbox__checkmark>.mdc-checkbox__checkmark-path,.mdc-checkbox__native-control:indeterminate~.mdc-checkbox__background>.mdc-checkbox__checkmark>.mdc-checkbox__checkmark-path{stroke-dashoffset:0}.mdc-checkbox__native-control:checked~.mdc-checkbox__background>.mdc-checkbox__checkmark{transition:opacity 180ms cubic-bezier(0, 0, 0.2, 1),transform 180ms cubic-bezier(0, 0, 0.2, 1);opacity:1}.mdc-checkbox__native-control:checked~.mdc-checkbox__background>.mdc-checkbox__mixedmark{transform:scaleX(1) rotate(-45deg)}.mdc-checkbox__native-control:indeterminate~.mdc-checkbox__background>.mdc-checkbox__checkmark{transform:rotate(45deg);opacity:0;transition:opacity 90ms cubic-bezier(0.4, 0, 0.6, 1),transform 90ms cubic-bezier(0.4, 0, 0.6, 1)}.mdc-checkbox__native-control:indeterminate~.mdc-checkbox__background>.mdc-checkbox__mixedmark{transform:scaleX(1) rotate(0deg);opacity:1}@keyframes mdc-checkbox-unchecked-checked-checkmark-path{0%,50%{stroke-dashoffset:29.7833385}50%{animation-timing-function:cubic-bezier(0, 0, 0.2, 1)}100%{stroke-dashoffset:0}}@keyframes mdc-checkbox-unchecked-indeterminate-mixedmark{0%,68.2%{transform:scaleX(0)}68.2%{animation-timing-function:cubic-bezier(0, 0, 0, 1)}100%{transform:scaleX(1)}}@keyframes mdc-checkbox-checked-unchecked-checkmark-path{from{animation-timing-function:cubic-bezier(0.4, 0, 1, 1);opacity:1;stroke-dashoffset:0}to{opacity:0;stroke-dashoffset:-29.7833385}}@keyframes mdc-checkbox-checked-indeterminate-checkmark{from{animation-timing-function:cubic-bezier(0, 0, 0.2, 1);transform:rotate(0deg);opacity:1}to{transform:rotate(45deg);opacity:0}}@keyframes mdc-checkbox-indeterminate-checked-checkmark{from{animation-timing-function:cubic-bezier(0.14, 0, 0, 1);transform:rotate(45deg);opacity:0}to{transform:rotate(360deg);opacity:1}}@keyframes mdc-checkbox-checked-indeterminate-mixedmark{from{animation-timing-function:cubic-bezier(0, 0, 0.2, 1);transform:rotate(-45deg);opacity:0}to{transform:rotate(0deg);opacity:1}}@keyframes mdc-checkbox-indeterminate-checked-mixedmark{from{animation-timing-function:cubic-bezier(0.14, 0, 0, 1);transform:rotate(0deg);opacity:1}to{transform:rotate(315deg);opacity:0}}@keyframes mdc-checkbox-indeterminate-unchecked-mixedmark{0%{animation-timing-function:linear;transform:scaleX(1);opacity:1}32.8%,100%{transform:scaleX(0);opacity:0}}.mat-mdc-checkbox{display:inline-block;position:relative;-webkit-tap-highlight-color:rgba(0,0,0,0)}.mat-mdc-checkbox._mat-animation-noopable>.mat-internal-form-field>.mdc-checkbox>.mat-mdc-checkbox-touch-target,.mat-mdc-checkbox._mat-animation-noopable>.mat-internal-form-field>.mdc-checkbox>.mdc-checkbox__native-control,.mat-mdc-checkbox._mat-animation-noopable>.mat-internal-form-field>.mdc-checkbox>.mdc-checkbox__ripple,.mat-mdc-checkbox._mat-animation-noopable>.mat-internal-form-field>.mdc-checkbox>.mat-mdc-checkbox-ripple::before,.mat-mdc-checkbox._mat-animation-noopable>.mat-internal-form-field>.mdc-checkbox>.mdc-checkbox__background,.mat-mdc-checkbox._mat-animation-noopable>.mat-internal-form-field>.mdc-checkbox>.mdc-checkbox__background>.mdc-checkbox__checkmark,.mat-mdc-checkbox._mat-animation-noopable>.mat-internal-form-field>.mdc-checkbox>.mdc-checkbox__background>.mdc-checkbox__checkmark>.mdc-checkbox__checkmark-path,.mat-mdc-checkbox._mat-animation-noopable>.mat-internal-form-field>.mdc-checkbox>.mdc-checkbox__background>.mdc-checkbox__mixedmark{transition:none !important;animation:none !important}.mat-mdc-checkbox label{cursor:pointer}.mat-mdc-checkbox .mat-internal-form-field{color:var(--mat-checkbox-label-text-color, var(--mat-sys-on-surface));font-family:var(--mat-checkbox-label-text-font, var(--mat-sys-body-medium-font));line-height:var(--mat-checkbox-label-text-line-height, var(--mat-sys-body-medium-line-height));font-size:var(--mat-checkbox-label-text-size, var(--mat-sys-body-medium-size));letter-spacing:var(--mat-checkbox-label-text-tracking, var(--mat-sys-body-medium-tracking));font-weight:var(--mat-checkbox-label-text-weight, var(--mat-sys-body-medium-weight))}.mat-mdc-checkbox.mat-mdc-checkbox-disabled.mat-mdc-checkbox-disabled-interactive{pointer-events:auto}.mat-mdc-checkbox.mat-mdc-checkbox-disabled.mat-mdc-checkbox-disabled-interactive input{cursor:default}.mat-mdc-checkbox.mat-mdc-checkbox-disabled label{cursor:default;color:var(--mat-checkbox-disabled-label-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent))}@media(forced-colors: active){.mat-mdc-checkbox.mat-mdc-checkbox-disabled label{color:GrayText}}.mat-mdc-checkbox label:empty{display:none}.mat-mdc-checkbox .mdc-checkbox__ripple{opacity:0}.mat-mdc-checkbox .mat-mdc-checkbox-ripple,.mdc-checkbox__ripple{top:0;left:0;right:0;bottom:0;position:absolute;border-radius:50%;pointer-events:none}.mat-mdc-checkbox .mat-mdc-checkbox-ripple:not(:empty),.mdc-checkbox__ripple:not(:empty){transform:translateZ(0)}.mat-mdc-checkbox-ripple .mat-ripple-element{opacity:.1}.mat-mdc-checkbox-touch-target{position:absolute;top:50%;left:50%;height:var(--mat-checkbox-touch-target-size, 48px);width:var(--mat-checkbox-touch-target-size, 48px);transform:translate(-50%, -50%);display:var(--mat-checkbox-touch-target-display, block)}.mat-mdc-checkbox .mat-mdc-checkbox-ripple::before{border-radius:50%}.mdc-checkbox__native-control:focus~.mat-focus-indicator::before{content:""} -`],encapsulation:2,changeDetection:0})}return t})(),yx=(()=>{class t{static \u0275fac=function(i){return new(i||t)};static \u0275mod=ee({type:t});static \u0275inj=J({imports:[Va,we,we]})}return t})();function Yte(t,n){t&1&&(h(0,"span",1),_(1,"*"),p())}var Qte=(()=>{let n=class n extends to{constructor(i,r){super(),this.renderer=i,this.focusMonitor=r,this.defaultOptions={props:{hideFieldUnderline:!0,indeterminate:!0,floatLabel:"always",hideLabel:!0,color:"accent"}}}onContainerClick(i){this.checkbox.focus(),super.onContainerClick(i)}ngAfterViewInit(){this.checkbox&&this.focusMonitor.monitor(this.checkbox._inputElement,!0).subscribe(i=>{this.field.focus=!!i,this.stateChanges.next(),i?this.props.focus&&this.props.focus(this.field):this.props.blur&&this.props.blur(this.field)})}ngAfterViewChecked(){if(this.required!==this._required&&this.checkbox&&this.checkbox._inputElement){this._required=this.required;let i=this.checkbox._inputElement.nativeElement;this.required?this.renderer.setAttribute(i,"required","required"):this.renderer.removeAttribute(i,"required")}}ngOnDestroy(){super.ngOnDestroy(),this.checkbox&&this.focusMonitor.stopMonitoring(this.checkbox._inputElement)}};n.\u0275fac=function(r){return new(r||n)(_e(je),_e(Yt))},n.\u0275cmp=E({type:n,selectors:[["formly-field-mat-checkbox"]],viewQuery:function(r,o){if(r&1&&ie(Va,7),r&2){let a;B(a=j())&&(o.checkbox=a.first)}},standalone:!1,features:[le],decls:3,vars:10,consts:[[3,"formControl","id","name","formlyAttributes","tabIndex","indeterminate","color","labelPosition"],["aria-hidden","true",1,"mat-form-field-required-marker","mat-mdc-form-field-required-marker"]],template:function(r,o){r&1&&(h(0,"mat-checkbox",0),_(1),N(2,Yte,2,0,"span",1),p()),r&2&&(y("formControl",o.formControl)("id",o.id)("name",o.field.name)("formlyAttributes",o.field)("tabIndex",o.props.tabindex)("indeterminate",o.props.indeterminate&&o.formControl.value==null)("color",o.props.color)("labelPosition",o.props.labelPosition),g(),ve(" ",o.props.label," "),g(),L(o.props.required&&o.props.hideRequiredMarker!==!0?2:-1))},dependencies:[ei,wo,Va,ta],encapsulation:2,changeDetection:0});let t=n;return t})();function I3(){return{types:[{name:"checkbox",component:Qte,wrappers:["form-field"]},{name:"boolean",extends:"checkbox"}]}}function Kte(t,n){if(t&1){let e=Y();h(0,"mat-checkbox",1),S("change",function(r){let o=I(e).$implicit,a=C();return A(a.onChange(o.value,r.checked))}),_(1),p()}if(t&2){let e=n.$implicit,i=n.$index,r=C();y("id",r.id+"_"+i)("formlyAttributes",r.field)("tabIndex",r.props.tabindex)("color",r.props.color)("labelPosition",r.props.labelPosition)("checked",r.isChecked(e))("disabled",r.formControl.disabled||e.disabled),g(),ve(" ",e.label," ")}}var Zte=(()=>{let n=class n extends to{constructor(){super(...arguments),this.defaultOptions={props:{hideFieldUnderline:!0,floatLabel:"always",color:"accent"}}}onChange(i,r){this.formControl.markAsDirty(),this.props.type==="array"?this.formControl.patchValue(r?[...this.formControl.value||[],i]:[...this.formControl.value||[]].filter(o=>o!==i)):this.formControl.patchValue(De(M({},this.formControl.value),{[i]:r})),this.formControl.markAsTouched()}onContainerClick(){}isChecked(i){let r=this.formControl.value;return r&&(this.props.type==="array"?r.indexOf(i.value)!==-1:r[i.value])}};n.\u0275fac=(()=>{let i;return function(o){return(i||(i=fe(n)))(o||n)}})(),n.\u0275cmp=E({type:n,selectors:[["formly-field-mat-multicheckbox"]],viewQuery:function(r,o){if(r&1&&ie(Va,5),r&2){let a;B(a=j())&&(o.checkboxes=a)}},hostVars:1,hostBindings:function(r,o){r&2&&si("id",o.id)},standalone:!1,features:[le],decls:4,vars:5,consts:[[3,"id","formlyAttributes","tabIndex","color","labelPosition","checked","disabled"],[3,"change","id","formlyAttributes","tabIndex","color","labelPosition","checked","disabled"]],template:function(r,o){r&1&&(xt(0,Kte,2,8,"mat-checkbox",0,Hi),me(2,"formlySelectOptions"),me(3,"async")),r&2&&Ct(Oe(3,3,Ni(2,0,o.props.options,o.field)))},dependencies:[Va,ta,rn,Eh],encapsulation:2,changeDetection:0});let t=n;return t})();function A3(){return{types:[{name:"multicheckbox",component:Zte,wrappers:["form-field"]}]}}var Xte=t=>({selectOptions:t});function Jte(t,n){if(t&1){let e=Y();h(0,"mat-option",2),S("click",function(){let r=I(e).selectOptions,o=C();return A(o.toggleSelectAll(r))}),k(1,"mat-pseudo-checkbox",3),_(2),p()}if(t&2){let e=n.selectOptions,i=C();g(),y("state",i.getSelectAllState(e)),g(),ve(" ",i.props.selectAllOption," ")}}function eie(t,n){if(t&1&&Ge(0,4),t&2){let e=C();C();let i=Se(1);y("ngTemplateOutlet",i)("ngTemplateOutletContext",Pt(2,Xte,e))}}function tie(t,n){if(t&1&&(h(0,"mat-option",6),_(1),p()),t&2){let e=n.$implicit;y("value",e.value)("disabled",e.disabled),g(),ve(" ",e.label," ")}}function iie(t,n){if(t&1&&(h(0,"mat-optgroup",5),xt(1,tie,2,3,"mat-option",6,Hi),p()),t&2){let e=C().$implicit;y("label",e.label),g(),Ct(e.group)}}function nie(t,n){if(t&1&&(h(0,"mat-option",6),_(1),p()),t&2){let e=C().$implicit;y("value",e.value)("disabled",e.disabled),g(),H(e.label)}}function rie(t,n){if(t&1&&N(0,iie,3,1,"mat-optgroup",5)(1,nie,2,3,"mat-option",6),t&2){let e=n.$implicit;L(e.group?0:1)}}function oie(t,n){if(t&1&&(N(0,eie,1,4,"ng-container",4),xt(1,rie,2,1,null,null,Hi)),t&2){let e=C();L(e.props.multiple&&e.props.selectAllOption?0:-1),g(),Ct(n)}}var aie=(()=>{let n=class n extends to{constructor(){super(...arguments),this.defaultOptions={props:{compareWith(i,r){return i===r}}}}set select(i){Wi(i,["_parentFormField","_textField"],({currentValue:r})=>{r&&(i._preferredOverlayOrigin=i._parentFormField.getConnectedOverlayOrigin())})}getSelectAllState(i){return this.empty||this.value.length===0?null:this.value.length!==this.getSelectAllValue(i).length?"indeterminate":"checked"}toggleSelectAll(i){let r=this.getSelectAllValue(i);this.formControl.markAsDirty(),this.formControl.setValue(!this.value||this.value.length!==r.length?r:[])}change(i){this.props.change?.(this.field,i)}_getAriaLabelledby(){return this.props.attributes?.["aria-labelledby"]?this.props.attributes["aria-labelledby"]:this.formField?._labelId}_getAriaLabel(){return this.props.attributes?.["aria-label"]}getSelectAllValue(i){if(!this.selectAllValue||i!==this.selectAllValue.options){let r=[];i.forEach(o=>o.group?r.push(...o.group):r.push(o)),this.selectAllValue={options:i,value:r.filter(o=>!o.disabled).map(o=>o.value)}}return this.selectAllValue.value}};n.\u0275fac=(()=>{let i;return function(o){return(i||(i=fe(n)))(o||n)}})(),n.\u0275cmp=E({type:n,selectors:[["formly-field-mat-select"]],viewQuery:function(r,o){if(r&1&&ie(Na,7),r&2){let a;B(a=j())&&(o.select=a.first)}},standalone:!1,features:[le],decls:6,vars:20,consts:[["selectAll",""],[3,"selectionChange","id","formControl","formlyAttributes","placeholder","tabIndex","required","compareWith","multiple","errorStateMatcher","aria-label","aria-labelledby","disableOptionCentering","typeaheadDebounceInterval","panelClass"],[3,"click"],[1,"mat-option-pseudo-checkbox",3,"state"],[3,"ngTemplateOutlet","ngTemplateOutletContext"],[3,"label"],[3,"value","disabled"]],template:function(r,o){if(r&1){let a=Y();R(0,Jte,3,2,"ng-template",null,0,_i),h(2,"mat-select",1),S("selectionChange",function(l){return I(a),A(o.change(l))}),N(3,oie,3,1),me(4,"formlySelectOptions"),me(5,"async"),p()}if(r&2){let a;g(2),y("id",o.id)("formControl",o.formControl)("formlyAttributes",o.field)("placeholder",o.props.placeholder)("tabIndex",o.props.tabindex)("required",o.required)("compareWith",o.props.compareWith)("multiple",o.props.multiple)("errorStateMatcher",o.errorStateMatcher),Kl("aria-label",o._getAriaLabel())("aria-labelledby",o._getAriaLabelledby()),y("disableOptionCentering",o.props.disableOptionCentering)("typeaheadDebounceInterval",o.props.typeaheadDebounceInterval)("panelClass",o.props.panelClass),g(),L((a=Oe(5,18,Ni(4,15,o.props.options,o.field)))?3:-1,a)}},dependencies:[Fn,ei,Do,wo,Na,xn,kk,Qd,ta,rn,Eh],encapsulation:2,changeDetection:0});let t=n;return t})();function O3(){return{types:[{name:"select",component:aie,wrappers:["form-field"]},{name:"enum",extends:"select"}]}}function R3(){return[v3(),D3(),E3(),k3(),I3(),A3(),O3()]}var kg=class{},F3=(()=>{class t{handle(e){return e.key}static \u0275fac=function(i){return new(i||t)};static \u0275prov=O({token:t,factory:t.\u0275fac})}return t})(),Mh=class{},N3=(()=>{class t extends Mh{compile(e,i){return e}compileTranslations(e,i){return e}static \u0275fac=(()=>{let e;return function(r){return(e||(e=fe(t)))(r||t)}})();static \u0275prov=O({token:t,factory:t.\u0275fac})}return t})(),yc=class{},L3=(()=>{class t extends yc{getTranslation(e){return Q({})}static \u0275fac=(()=>{let e;return function(r){return(e||(e=fe(t)))(r||t)}})();static \u0275prov=O({token:t,factory:t.\u0275fac})}return t})();function Sg(t,n){if(t===n)return!0;if(t===null||n===null)return!1;if(t!==t&&n!==n)return!0;let e=typeof t,i=typeof n,r;if(e==i&&e=="object")if(Array.isArray(t)){if(!Array.isArray(n))return!1;if((r=t.length)==n.length){for(let o=0;oxx(n));if(hl(t)){let n={};return Object.keys(t).forEach(e=>{n[e]=xx(t[e])}),n}else return t}function kS(t,n){if(!Mg(t))return xx(n);let e=xx(t);return Mg(e)&&Mg(n)&&Object.keys(n).forEach(i=>{hl(n[i])?i in t?e[i]=kS(t[i],n[i]):Object.assign(e,{[i]:n[i]}):Object.assign(e,{[i]:n[i]})}),e}function V3(t,n){let e=n.split(".");n="";do{n+=e.shift();let i=!e.length;if(Mo(t)){if(hl(t)&&P3(t[n])&&(hl(t[n])||pu(t[n])||i)){t=t[n],n="";continue}if(pu(t)){let r=parseInt(n,10);if(P3(t[r])&&(hl(t[r])||pu(t[r])||i)){t=t[r],n="";continue}}}if(i){t=void 0;continue}n+="."}while(e.length);return t}function lie(t,n,e){return kS(t,cie(n,e))}function cie(t,n){return t.split(".").reduceRight((e,i)=>({[i]:e}),n)}var kh=class{},B3=(()=>{class t extends kh{templateMatcher=/{{\s?([^{}\s]*)\s?}}/g;interpolate(e,i){if(Tg(e))return this.interpolateString(e,i);if(sie(e))return this.interpolateFunction(e,i)}interpolateFunction(e,i){return e(i)}interpolateString(e,i){return i?e.replace(this.templateMatcher,(r,o)=>{let a=this.getInterpolationReplacement(i,o);return a!==void 0?a:r}):e}getInterpolationReplacement(e,i){return this.formatValue(V3(e,i))}formatValue(e){if(Tg(e))return e;if(typeof e=="number"||typeof e=="boolean")return e.toString();if(e===null)return"null";if(pu(e))return e.join(", ");if(Mg(e))return typeof e.toString=="function"&&e.toString!==Object.prototype.toString?e.toString():JSON.stringify(e)}static \u0275fac=(()=>{let e;return function(r){return(e||(e=fe(t)))(r||t)}})();static \u0275prov=O({token:t,factory:t.\u0275fac})}return t})(),DS=(()=>{class t{_onTranslationChange=new z;_onLangChange=new z;_onFallbackLangChange=new z;fallbackLang=null;currentLang;translations={};languages=[];getTranslations(e){return this.translations[e]}setTranslations(e,i,r){this.translations[e]=r&&this.hasTranslationFor(e)?kS(this.translations[e],i):i,this.addLanguages([e]),this._onTranslationChange.next({lang:e,translations:this.getTranslations(e)})}getLanguages(){return this.languages}getCurrentLang(){return this.currentLang}getFallbackLang(){return this.fallbackLang}setFallbackLang(e,i=!0){this.fallbackLang=e,i&&this._onFallbackLangChange.next({lang:e,translations:this.translations[e]})}setCurrentLang(e,i=!0){this.currentLang=e,i&&this._onLangChange.next({lang:e,translations:this.translations[e]})}get onTranslationChange(){return this._onTranslationChange.asObservable()}get onLangChange(){return this._onLangChange.asObservable()}get onFallbackLangChange(){return this._onFallbackLangChange.asObservable()}addLanguages(e){this.languages=Array.from(new Set([...this.languages,...e]))}hasTranslationFor(e){return typeof this.translations[e]<"u"}deleteTranslations(e){delete this.translations[e]}getTranslation(e){let i=this.getValue(this.currentLang,e);return i===void 0&&this.fallbackLang!=null&&this.fallbackLang!==this.currentLang&&(i=this.getValue(this.fallbackLang,e)),i}getValue(e,i){return V3(this.getTranslations(e),i)}static \u0275fac=function(i){return new(i||t)};static \u0275prov=O({token:t,factory:t.\u0275fac})}return t})(),ES=new T("TRANSLATE_CONFIG"),Eg=t=>ji(t)?t:Q(t);var ia=(()=>{class t{loadingTranslations;pending=!1;_translationRequests={};lastUseLanguage=null;currentLoader=u(yc);compiler=u(Mh);parser=u(kh);missingTranslationHandler=u(kg);store=u(DS);extend=!1;get onTranslationChange(){return this.store.onTranslationChange}get onLangChange(){return this.store.onLangChange}get onFallbackLangChange(){return this.store.onFallbackLangChange}get onDefaultLangChange(){return this.store.onFallbackLangChange}constructor(){let e=M({extend:!1,fallbackLang:null},u(ES,{optional:!0}));e.lang&&this.use(e.lang),e.fallbackLang&&this.setFallbackLang(e.fallbackLang),e.extend&&(this.extend=!0)}setFallbackLang(e){this.getFallbackLang()||this.store.setFallbackLang(e,!1);let i=this.loadOrExtendLanguage(e);return ji(i)?(i.pipe(lt(1)).subscribe({next:()=>{this.store.setFallbackLang(e)},error:()=>{}}),i):(this.store.setFallbackLang(e),Q(this.store.getTranslations(e)))}use(e){this.lastUseLanguage=e,this.getCurrentLang()||this.store.setCurrentLang(e,!1);let i=this.loadOrExtendLanguage(e);return ji(i)?(i.pipe(lt(1)).subscribe({next:()=>{this.changeLang(e)},error:()=>{}}),i):(this.changeLang(e),Q(this.store.getTranslations(e)))}loadOrExtendLanguage(e){if(!this.store.hasTranslationFor(e)||this.extend)return this._translationRequests[e]=this._translationRequests[e]||this.loadAndCompileTranslations(e),this._translationRequests[e]}changeLang(e){e===this.lastUseLanguage&&this.store.setCurrentLang(e)}getCurrentLang(){return this.store.getCurrentLang()}loadAndCompileTranslations(e){this.pending=!0;let i=this.currentLoader.getTranslation(e).pipe(dd(1),lt(1));return this.loadingTranslations=i.pipe(se(r=>this.compiler.compileTranslations(r,e)),dd(1),lt(1)),this.loadingTranslations.subscribe({next:r=>{this.store.setTranslations(e,r,this.extend),this.pending=!1},error:r=>{this.pending=!1}}),i}setTranslation(e,i,r=!1){let o=this.compiler.compileTranslations(i,e);this.store.setTranslations(e,o,r||this.extend)}getLangs(){return this.store.getLanguages()}addLangs(e){this.store.addLanguages(e)}getParsedResultForKey(e,i){let r=this.getTextToInterpolate(e);if(Mo(r))return this.runInterpolation(r,i);let o=this.missingTranslationHandler.handle(M({key:e,translateService:this},i!==void 0&&{interpolateParams:i}));return o!==void 0?o:e}getFallbackLang(){return this.store.getFallbackLang()}getTextToInterpolate(e){return this.store.getTranslation(e)}runInterpolation(e,i){if(Mo(e))return pu(e)?this.runInterpolationOnArray(e,i):hl(e)?this.runInterpolationOnDict(e,i):this.parser.interpolate(e,i)}runInterpolationOnArray(e,i){return e.map(r=>this.runInterpolation(r,i))}runInterpolationOnDict(e,i){let r={};for(let o in e){let a=this.runInterpolation(e[o],i);a!==void 0&&(r[o]=a)}return r}getParsedResult(e,i){return e instanceof Array?this.getParsedResultForArray(e,i):this.getParsedResultForKey(e,i)}getParsedResultForArray(e,i){let r={},o=!1;for(let s of e)r[s]=this.getParsedResultForKey(s,i),o=o||ji(r[s]);if(!o)return r;let a=e.map(s=>Eg(r[s]));return Ga(a).pipe(se(s=>{let l={};return s.forEach((c,d)=>{l[e[d]]=c}),l}))}get(e,i){if(!Mo(e)||!e.length)throw new Error('Parameter "key" is required and cannot be empty');return this.pending?this.loadingTranslations.pipe(Ao(()=>Eg(this.getParsedResult(e,i)))):Eg(this.getParsedResult(e,i))}getStreamOnTranslationChange(e,i){if(!Mo(e)||!e.length)throw new Error('Parameter "key" is required and cannot be empty');return mo(kn(()=>this.get(e,i)),this.onTranslationChange.pipe($e(()=>{let r=this.getParsedResult(e,i);return Eg(r)})))}stream(e,i){if(!Mo(e)||!e.length)throw new Error('Parameter "key" required');return mo(kn(()=>this.get(e,i)),this.onLangChange.pipe($e(()=>{let r=this.getParsedResult(e,i);return Eg(r)})))}instant(e,i){if(!Mo(e)||e.length===0)throw new Error('Parameter "key" is required and cannot be empty');let r=this.getParsedResult(e,i);return ji(r)?Array.isArray(e)?e.reduce((o,a)=>(o[a]=a,o),{}):e:r}set(e,i,r=this.getCurrentLang()){this.store.setTranslations(r,lie(this.store.getTranslations(r),e,Tg(i)?this.compiler.compile(i,r):this.compiler.compileTranslations(i,r)),!1)}reloadLang(e){return this.resetLang(e),this.loadAndCompileTranslations(e)}resetLang(e){delete this._translationRequests[e],this.store.deleteTranslations(e)}static getBrowserLang(){if(typeof window>"u"||!window.navigator)return;let e=this.getBrowserCultureLang();return e?e.split(/[-_]/)[0]:void 0}static getBrowserCultureLang(){if(!(typeof window>"u"||typeof window.navigator>"u"))return window.navigator.languages?window.navigator.languages[0]:window.navigator.language||window.navigator.browserLanguage||window.navigator.userLanguage}getBrowserLang(){return t.getBrowserLang()}getBrowserCultureLang(){return t.getBrowserCultureLang()}get defaultLang(){return this.getFallbackLang()}get currentLang(){return this.store.getCurrentLang()}get langs(){return this.store.getLanguages()}setDefaultLang(e){return this.setFallbackLang(e)}getDefaultLang(){return this.getFallbackLang()}static \u0275fac=function(i){return new(i||t)};static \u0275prov=O({token:t,factory:t.\u0275fac})}return t})(),j3=(()=>{class t{translateService=u(ia);element=u(q);_ref=u(ye);key;lastParams;currentParams;onLangChangeSub;onFallbackLangChangeSub;onTranslationChangeSub;set translate(e){e&&(this.key=e,this.checkNodes())}set translateParams(e){Sg(this.currentParams,e)||(this.currentParams=e,this.checkNodes(!0))}constructor(){this.onTranslationChangeSub||(this.onTranslationChangeSub=this.translateService.onTranslationChange.subscribe(e=>{e.lang===this.translateService.currentLang&&this.checkNodes(!0,e.translations)})),this.onLangChangeSub||(this.onLangChangeSub=this.translateService.onLangChange.subscribe(e=>{this.checkNodes(!0,e.translations)})),this.onFallbackLangChangeSub||(this.onFallbackLangChangeSub=this.translateService.onFallbackLangChange.subscribe(e=>{this.checkNodes(!0)}))}ngAfterViewChecked(){this.checkNodes()}checkNodes(e=!1,i){let r=this.element.nativeElement.childNodes;r.length||(this.setContent(this.element.nativeElement,this.key),r=this.element.nativeElement.childNodes),r.forEach(o=>{let a=o;if(a.nodeType===3){let s;if(e&&(a.lastKey=null),Mo(a.lookupKey))s=a.lookupKey;else if(this.key)s=this.key;else{let l=this.getContent(a),c=l.trim();c.length&&(a.lookupKey=c,l!==a.currentValue?(s=c,a.originalContent=l||a.originalContent):a.originalContent&&(s=a.originalContent.trim()))}this.updateValue(s,a,i)}})}updateValue(e,i,r){if(e){if(i.lastKey===e&&this.lastParams===this.currentParams)return;this.lastParams=this.currentParams;let o=a=>{(a!==e||!i.lastKey)&&(i.lastKey=e),i.originalContent||(i.originalContent=this.getContent(i)),Tg(a)?i.currentValue=a:Mo(a)?i.currentValue=JSON.stringify(a):i.currentValue=i.originalContent||e,this.setContent(i,this.key?i.currentValue:i.originalContent.replace(e,i.currentValue)),this._ref.markForCheck()};if(Mo(r)){let a=this.translateService.getParsedResult(e,this.currentParams);ji(a)?a.subscribe({next:o}):o(a)}else this.translateService.get(e,this.currentParams).subscribe(o)}}getContent(e){return Mo(e.textContent)?e.textContent:e.data}setContent(e,i){Mo(e.textContent)?e.textContent=i:e.data=i}ngOnDestroy(){this.onLangChangeSub&&this.onLangChangeSub.unsubscribe(),this.onFallbackLangChangeSub&&this.onFallbackLangChangeSub.unsubscribe(),this.onTranslationChangeSub&&this.onTranslationChangeSub.unsubscribe()}static \u0275fac=function(i){return new(i||t)};static \u0275dir=F({type:t,selectors:[["","translate",""],["","ngx-translate",""]],inputs:{translate:"translate",translateParams:"translateParams"}})}return t})(),Cr=(()=>{class t{translate=u(ia);_ref=u(ye);value="";lastKey=null;lastParams=[];onTranslationChange;onLangChange;onFallbackLangChange;updateValue(e,i,r){let o=a=>{this.value=a!==void 0?a:e,this.lastKey=e,this._ref.markForCheck()};if(r){let a=this.translate.getParsedResult(e,i);ji(a)?a.subscribe(o):o(a)}this.translate.get(e,i).subscribe(o)}transform(e,...i){if(!e||!e.length)return e;if(Sg(e,this.lastKey)&&Sg(i,this.lastParams))return this.value;let r;if(Mo(i[0])&&i.length)if(Tg(i[0])&&i[0].length){let o=i[0].replace(/(')?([a-zA-Z0-9_]+)(')?(\s)?:/g,'"$2":').replace(/:(\s)?(')(.*?)(')/g,':"$3"');try{r=JSON.parse(o)}catch(a){throw new SyntaxError(`Wrong parameter in TranslatePipe. Expected a valid Object, received: ${i[0]}`)}}else hl(i[0])&&(r=i[0]);return this.lastKey=e,this.lastParams=i,this.updateValue(e,r),this._dispose(),this.onTranslationChange||(this.onTranslationChange=this.translate.onTranslationChange.subscribe(o=>{(this.lastKey&&o.lang===this.translate.getCurrentLang()||o.lang===this.translate.getFallbackLang())&&(this.lastKey=null,this.updateValue(e,r,o.translations))})),this.onLangChange||(this.onLangChange=this.translate.onLangChange.subscribe(o=>{this.lastKey&&(this.lastKey=null,this.updateValue(e,r,o.translations))})),this.onFallbackLangChange||(this.onFallbackLangChange=this.translate.onFallbackLangChange.subscribe(()=>{this.lastKey&&(this.lastKey=null,this.updateValue(e,r))})),this.value}_dispose(){typeof this.onTranslationChange<"u"&&(this.onTranslationChange.unsubscribe(),this.onTranslationChange=void 0),typeof this.onLangChange<"u"&&(this.onLangChange.unsubscribe(),this.onLangChange=void 0),typeof this.onFallbackLangChange<"u"&&(this.onFallbackLangChange.unsubscribe(),this.onFallbackLangChange=void 0)}ngOnDestroy(){this._dispose()}static \u0275fac=function(i){return new(i||t)};static \u0275pipe=Wr({name:"translate",type:t,pure:!1});static \u0275prov=O({token:t,factory:t.\u0275fac})}return t})();function H3(t){return{provide:yc,useClass:t}}function z3(t){return{provide:Mh,useClass:t}}function U3(t){return{provide:kh,useClass:t}}function $3(t){return{provide:kg,useClass:t}}function W3(t={}){return MS(M({compiler:z3(N3),parser:U3(B3),loader:H3(L3),missingTranslationHandler:$3(F3)},t),!0)}function MS(t={},n){let e=[];t.loader&&e.push(t.loader),t.compiler&&e.push(t.compiler),t.parser&&e.push(t.parser),t.missingTranslationHandler&&e.push(t.missingTranslationHandler),n&&e.push(DS),(t.useDefaultLang||t.defaultLanguage)&&(console.warn("The `useDefaultLang` and `defaultLanguage` options are deprecated. Please use `fallbackLang` instead."),t.useDefaultLang===!0&&t.defaultLanguage&&(t.fallbackLang=t.defaultLanguage));let i={fallbackLang:t.fallbackLang??null,lang:t.lang,extend:t.extend??!1};return e.push({provide:ES,useValue:i}),e.push({provide:ia,useClass:ia,deps:[DS,yc,Mh,kh,kg,ES]}),e}var wr=(()=>{class t{static forRoot(e={}){return{ngModule:t,providers:[...MS(M({compiler:z3(N3),parser:U3(B3),loader:H3(L3),missingTranslationHandler:$3(F3)},e),!0)]}}static forChild(e={}){return{ngModule:t,providers:[...MS(e,e.isolate??!1)]}}static \u0275fac=function(i){return new(i||t)};static \u0275mod=ee({type:t});static \u0275inj=J({})}return t})();var SS=new T("TRANSLATE_HTTP_LOADER_CONFIG"),die=(()=>{class t{http;config;constructor(){this.config=M({prefix:"/assets/i18n/",suffix:".json",enforceLoading:!1,useHttpBackend:!1},u(SS)),this.http=this.config.useHttpBackend?new Yr(u(Zl)):u(Yr)}getTranslation(e){let i=this.config.enforceLoading?`?enforceLoading=${Date.now()}`:"";return this.http.get(`${this.config.prefix}${e}${this.config.suffix}${i}`)}static \u0275fac=function(i){return new(i||t)};static \u0275prov=O({token:t,factory:t.\u0275fac})}return t})();function G3(t={}){let n=t.useHttpBackend??!1;return[{provide:SS,useValue:t},{provide:yc,useClass:die,deps:[n?Zl:Yr,SS]}]}var TS=class{constructor(n){this.options=n,n.vcr?this.ref=n.vcr.createComponent(n.component,{index:n.vcr.length,injector:n.injector||n.vcr.injector}):(this.ref=Mm(n.component,{elementInjector:n.injector,environmentInjector:n.environmentInjector}),n.appRef.attachView(this.ref.hostView))}setInput(n,e){return this.ref.setInput(n,e),this}setInputs(n){return Object.keys(n).forEach(e=>{this.ref.setInput(e,n[e])}),this}detectChanges(){return this.ref.hostView.detectChanges(),this}updateContext(n){return this.options.contextSignal?.set(n),this}appendTo(n){return n.appendChild(this.getElement()),this}removeFrom(n){return n.removeChild(this.getElement()),this}getRawContent(){return this.getElement().outerHTML}getElement(){return this.ref.location.nativeElement}destroy(){this.ref.destroy(),!this.options.vcr&&this.options.appRef.detachView(this.ref.hostView),this.ref=null}};function Ig(t){return t instanceof te}function gu(t){return typeof t=="function"}function q3(t){return typeof t=="string"}var IS=class{constructor(n){this.args=n,this.args.vcr?(this.ref=this.args.vcr.createEmbeddedView(this.args.tpl,this.args.context||{},{injector:n.injector}),this.ref.detectChanges()):(this.ref=this.args.tpl.createEmbeddedView(this.args.context||{},n.injector),this.ref.detectChanges(),this.args.appRef.attachView(this.ref))}detectChanges(){return this.ref.detectChanges(),this}getElement(){let n=this.ref.rootNodes;return n.length===1&&n[0]===Node.ELEMENT_NODE?this.element=n[0]:(this.element=document.createElement("div"),this.element.append(...n)),this.element}destroy(){this.ref.rootNodes[0]!==1&&(this.element?.parentNode.removeChild(this.element),this.element=null),this.args.vcr||this.args.appRef.detachView(this.ref),this.ref.destroy(),this.ref=null}updateContext(n){return Object.assign(this.ref.context,n),this}},AS=class{constructor(n){this.value=n}getElement(){return this.value}detectChanges(){return this}updateContext(){return this}destroy(){}},uie=new T("Component context"),OS=(()=>{let n=class n{constructor(){this.injector=u(de),this.appRef=u(Gn),this.environmentInjector=u(Wt)}createComponent(i,r={}){let o=r.injector??this.injector,a;return r.context&&(a=he(r.context),o=de.create({providers:[{provide:uie,useValue:a.asReadonly()}],parent:o})),new TS({component:i,vcr:r.vcr,injector:o,appRef:this.appRef,environmentInjector:r.environmentInjector||this.environmentInjector,contextSignal:a})}createTemplate(i,r={}){return new IS({vcr:r.vcr,appRef:this.appRef,tpl:i,context:r.context,injector:r.injector})}createView(i,r={}){if(Ig(i))return this.createTemplate(i,r);if(gu(i))return this.createComponent(i,r);if(q3(i))return new AS(i);throw"Type of content is not supported"}};n.\u0275fac=function(r){return new(r||n)},n.\u0275prov=O({token:n,factory:n.\u0275fac,providedIn:"root"});let t=n;return t})();var mie=(()=>{let n=class n{constructor(){this.content=ne()}};n.\u0275fac=function(r){return new(r||n)},n.\u0275cmp=E({type:n,selectors:[["dynamic-view"]],inputs:{content:[1,"content"]},decls:1,vars:1,consts:[[3,"innerHTML"]],template:function(r,o){r&1&&ai(0,"div",0),r&2&&si("innerHTML",o.content(),Zp)},encapsulation:2});let t=n;return t})(),Cx=(()=>{let n=class n{constructor(){this.view=ne(void 0,{alias:"dynamicView"}),this.injector=ne(void 0,{alias:"dynamicViewInjector"}),this.context=ne(void 0,{alias:"dynamicViewContext"}),this.inputs=ne(void 0,{alias:"dynamicViewInputs"}),this.defaultTpl=u(te),this.vcr=u(nt),this.viewService=u(OS)}ngOnInit(){this.resolveContentType()}ngOnChanges(i){let r=i.view&&!i.view.isFirstChange(),o=i.context&&!i.context.isFirstChange(),a=i.inputs&&!i.inputs.isFirstChange();r?this.resolveContentType():o?this.viewRef.updateContext(this.context()):gu(this.view())&&a&&this.viewRef.setInputs(this.inputs()||{})}resolveContentType(){this.viewRef?.destroy();let i=this.view(),r=this.injector(),o=this.context();if(q3(i))(this.viewRef=this.viewService.createComponent(mie,{vcr:this.vcr,injector:r})).setInput("content",i).detectChanges();else if(gu(i)){this.viewRef=this.viewService.createComponent(i,{vcr:this.vcr,injector:r??this.vcr.injector,context:o});let a=this.inputs();a&&this.viewRef.setInputs(a)}else this.viewRef=this.viewService.createView(i||this.defaultTpl,{vcr:this.vcr,injector:r??this.vcr.injector,context:o})}ngOnDestroy(){this.viewRef?.destroy()}};n.\u0275fac=function(r){return new(r||n)},n.\u0275dir=F({type:n,selectors:[["","dynamicView",""]],inputs:{view:[1,"dynamicView","view"],injector:[1,"dynamicViewInjector","injector"],context:[1,"dynamicViewContext","context"],inputs:[1,"dynamicViewInputs","inputs"]},features:[Ae]});let t=n;return t})();function hie(t,n){if(t&1&&(_(0,` +`],encapsulation:2,changeDetection:0})}return t})();function Eee(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 ze=(()=>{class t{static \u0275fac=function(i){return new(i||t)};static \u0275mod=ee({type:t});static \u0275inj=J({imports:[we,yo,we]})}return t})();function Mee(t,n){if(t&1&&(h(0,"mat-option",17),_(1),p()),t&2){let e=n.$implicit;y("value",e),g(),ve(" ",e," ")}}function kee(t,n){if(t&1){let e=Y();h(0,"mat-form-field",14)(1,"mat-select",16,0),S("selectionChange",function(r){I(e);let o=C(2);return A(o._changePageSize(r.value))}),xt(3,Mee,2,2,"mat-option",17,xm),p(),h(5,"div",18),S("click",function(){I(e);let r=Se(2);return A(r.open())}),p()()}if(t&2){let e=C(2);y("appearance",e._formFieldAppearance)("color",e.color),g(),y("value",e.pageSize)("disabled",e.disabled),Kl("aria-labelledby",e._pageSizeLabelId),y("panelClass",e.selectConfig.panelClass||"")("disableOptionCentering",e.selectConfig.disableOptionCentering),g(2),Ct(e._displayedPageSizeOptions)}}function See(t,n){if(t&1&&(h(0,"div",15),_(1),p()),t&2){let e=C(2);g(),H(e.pageSize)}}function Tee(t,n){if(t&1&&(h(0,"div",3)(1,"div",13),_(2),p(),N(3,kee,6,7,"mat-form-field",14),N(4,See,2,1,"div",15),p()),t&2){let e=C();g(),X("id",e._pageSizeLabelId),g(),ve(" ",e._intl.itemsPerPageLabel," "),g(),L(e._displayedPageSizeOptions.length>1?3:-1),g(),L(e._displayedPageSizeOptions.length<=1?4:-1)}}function Iee(t,n){if(t&1){let e=Y();h(0,"button",19),S("click",function(){I(e);let r=C();return A(r._buttonClicked(0,r._previousButtonsDisabled()))}),Gt(),h(1,"svg",8),k(2,"path",20),p()()}if(t&2){let e=C();y("matTooltip",e._intl.firstPageLabel)("matTooltipDisabled",e._previousButtonsDisabled())("disabled",e._previousButtonsDisabled())("tabindex",e._previousButtonsDisabled()?-1:null),X("aria-label",e._intl.firstPageLabel)}}function Aee(t,n){if(t&1){let e=Y();h(0,"button",21),S("click",function(){I(e);let r=C();return A(r._buttonClicked(r.getNumberOfPages()-1,r._nextButtonsDisabled()))}),Gt(),h(1,"svg",8),k(2,"path",22),p()()}if(t&2){let e=C();y("matTooltip",e._intl.lastPageLabel)("matTooltipDisabled",e._nextButtonsDisabled())("disabled",e._nextButtonsDisabled())("tabindex",e._nextButtonsDisabled()?-1:null),X("aria-label",e._intl.lastPageLabel)}}var gc=(()=>{class t{changes=new z;itemsPerPageLabel="Items per page:";nextPageLabel="Next page";previousPageLabel="Previous page";firstPageLabel="First page";lastPageLabel="Last page";getRangeLabel=(e,i,r)=>{if(r==0||i==0)return`0 of ${r}`;r=Math.max(r,0);let o=e*i,a=o{class t{_intl=u(gc);_changeDetectorRef=u(ye);_formFieldAppearance;_pageSizeLabelId=u(Ze).getId("mat-paginator-page-size-label-");_intlChanges;_isInitialized=!1;_initializedStream=new $a(1);color;get pageIndex(){return this._pageIndex}set pageIndex(e){this._pageIndex=Math.max(e||0,0),this._changeDetectorRef.markForCheck()}_pageIndex=0;get length(){return this._length}set length(e){this._length=e||0,this._changeDetectorRef.markForCheck()}_length=0;get pageSize(){return this._pageSize}set pageSize(e){this._pageSize=Math.max(e||0,0),this._updateDisplayedPageSizeOptions()}_pageSize;get pageSizeOptions(){return this._pageSizeOptions}set pageSizeOptions(e){this._pageSizeOptions=(e||[]).map(i=>ct(i,0)),this._updateDisplayedPageSizeOptions()}_pageSizeOptions=[];hidePageSize=!1;showFirstLastButtons=!1;selectConfig={};disabled=!1;page=new U;_displayedPageSizeOptions;initialized=this._initializedStream;constructor(){let e=this._intl,i=u(Fee,{optional:!0});if(this._intlChanges=e.changes.subscribe(()=>this._changeDetectorRef.markForCheck()),i){let{pageSize:r,pageSizeOptions:o,hidePageSize:a,showFirstLastButtons:s}=i;r!=null&&(this._pageSize=r),o!=null&&(this._pageSizeOptions=o),a!=null&&(this.hidePageSize=a),s!=null&&(this.showFirstLastButtons=s)}this._formFieldAppearance=i?.formFieldAppearance||"outline"}ngOnInit(){this._isInitialized=!0,this._updateDisplayedPageSizeOptions(),this._initializedStream.next()}ngOnDestroy(){this._initializedStream.complete(),this._intlChanges.unsubscribe()}nextPage(){this.hasNextPage()&&this._navigate(this.pageIndex+1)}previousPage(){this.hasPreviousPage()&&this._navigate(this.pageIndex-1)}firstPage(){this.hasPreviousPage()&&this._navigate(0)}lastPage(){this.hasNextPage()&&this._navigate(this.getNumberOfPages()-1)}hasPreviousPage(){return this.pageIndex>=1&&this.pageSize!=0}hasNextPage(){let e=this.getNumberOfPages()-1;return this.pageIndexe-i),this._changeDetectorRef.markForCheck())}_emitPageEvent(e){this.page.emit({previousPageIndex:e,pageIndex:this.pageIndex,pageSize:this.pageSize,length:this.length})}_navigate(e){let i=this.pageIndex;e!==i&&(this.pageIndex=e,this._emitPageEvent(i))}_buttonClicked(e,i){i||this._navigate(e)}static \u0275fac=function(i){return new(i||t)};static \u0275cmp=E({type:t,selectors:[["mat-paginator"]],hostAttrs:["role","group",1,"mat-mdc-paginator"],inputs:{color:"color",pageIndex:[2,"pageIndex","pageIndex",ct],length:[2,"length","length",ct],pageSize:[2,"pageSize","pageSize",ct],pageSizeOptions:"pageSizeOptions",hidePageSize:[2,"hidePageSize","hidePageSize",V],showFirstLastButtons:[2,"showFirstLastButtons","showFirstLastButtons",V],selectConfig:"selectConfig",disabled:[2,"disabled","disabled",V]},outputs:{page:"page"},exportAs:["matPaginator"],decls:14,vars:14,consts:[["selectRef",""],[1,"mat-mdc-paginator-outer-container"],[1,"mat-mdc-paginator-container"],[1,"mat-mdc-paginator-page-size"],[1,"mat-mdc-paginator-range-actions"],["aria-live","polite",1,"mat-mdc-paginator-range-label"],["matIconButton","","type","button","matTooltipPosition","above","disabledInteractive","",1,"mat-mdc-paginator-navigation-first",3,"matTooltip","matTooltipDisabled","disabled","tabindex"],["matIconButton","","type","button","matTooltipPosition","above","disabledInteractive","",1,"mat-mdc-paginator-navigation-previous",3,"click","matTooltip","matTooltipDisabled","disabled","tabindex"],["viewBox","0 0 24 24","focusable","false","aria-hidden","true",1,"mat-mdc-paginator-icon"],["d","M15.41 7.41L14 6l-6 6 6 6 1.41-1.41L10.83 12z"],["matIconButton","","type","button","matTooltipPosition","above","disabledInteractive","",1,"mat-mdc-paginator-navigation-next",3,"click","matTooltip","matTooltipDisabled","disabled","tabindex"],["d","M10 6L8.59 7.41 13.17 12l-4.58 4.59L10 18l6-6z"],["matIconButton","","type","button","matTooltipPosition","above","disabledInteractive","",1,"mat-mdc-paginator-navigation-last",3,"matTooltip","matTooltipDisabled","disabled","tabindex"],[1,"mat-mdc-paginator-page-size-label"],[1,"mat-mdc-paginator-page-size-select",3,"appearance","color"],[1,"mat-mdc-paginator-page-size-value"],["hideSingleSelectionIndicator","",3,"selectionChange","value","disabled","aria-labelledby","panelClass","disableOptionCentering"],[3,"value"],[1,"mat-mdc-paginator-touch-target",3,"click"],["matIconButton","","type","button","matTooltipPosition","above","disabledInteractive","",1,"mat-mdc-paginator-navigation-first",3,"click","matTooltip","matTooltipDisabled","disabled","tabindex"],["d","M18.41 16.59L13.82 12l4.59-4.59L17 6l-6 6 6 6zM6 6h2v12H6z"],["matIconButton","","type","button","matTooltipPosition","above","disabledInteractive","",1,"mat-mdc-paginator-navigation-last",3,"click","matTooltip","matTooltipDisabled","disabled","tabindex"],["d","M5.59 7.41L10.18 12l-4.59 4.59L7 18l6-6-6-6zM16 6h2v12h-2z"]],template:function(i,r){i&1&&(h(0,"div",1)(1,"div",2),N(2,Tee,5,4,"div",3),h(3,"div",4)(4,"div",5),_(5),p(),N(6,Iee,3,5,"button",6),h(7,"button",7),S("click",function(){return r._buttonClicked(r.pageIndex-1,r._previousButtonsDisabled())}),Gt(),h(8,"svg",8),k(9,"path",9),p()(),jo(),h(10,"button",10),S("click",function(){return r._buttonClicked(r.pageIndex+1,r._nextButtonsDisabled())}),Gt(),h(11,"svg",8),k(12,"path",11),p()(),N(13,Aee,3,5,"button",12),p()()()),i&2&&(g(2),L(r.hidePageSize?-1:2),g(3),ve(" ",r._intl.getRangeLabel(r.pageIndex,r.pageSize,r.length)," "),g(),L(r.showFirstLastButtons?6:-1),g(),y("matTooltip",r._intl.previousPageLabel)("matTooltipDisabled",r._previousButtonsDisabled())("disabled",r._previousButtonsDisabled())("tabindex",r._previousButtonsDisabled()?-1:null),X("aria-label",r._intl.previousPageLabel),g(3),y("matTooltip",r._intl.nextPageLabel)("matTooltipDisabled",r._nextButtonsDisabled())("disabled",r._nextButtonsDisabled())("tabindex",r._nextButtonsDisabled()?-1:null),X("aria-label",r._intl.nextPageLabel),g(3),L(r.showFirstLastButtons?13:-1))},dependencies:[Oi,Na,xn,ti,Eo],styles:[`.mat-mdc-paginator{display:block;-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;color:var(--mat-paginator-container-text-color, var(--mat-sys-on-surface));background-color:var(--mat-paginator-container-background-color, var(--mat-sys-surface));font-family:var(--mat-paginator-container-text-font, var(--mat-sys-body-small-font));line-height:var(--mat-paginator-container-text-line-height, var(--mat-sys-body-small-line-height));font-size:var(--mat-paginator-container-text-size, var(--mat-sys-body-small-size));font-weight:var(--mat-paginator-container-text-weight, var(--mat-sys-body-small-weight));letter-spacing:var(--mat-paginator-container-text-tracking, var(--mat-sys-body-small-tracking));--mat-form-field-container-height: var(--mat-paginator-form-field-container-height, 40px);--mat-form-field-container-vertical-padding: var(--mat-paginator-form-field-container-vertical-padding, 8px)}.mat-mdc-paginator .mat-mdc-select-value{font-size:var(--mat-paginator-select-trigger-text-size, var(--mat-sys-body-small-size))}.mat-mdc-paginator .mat-mdc-form-field-subscript-wrapper{display:none}.mat-mdc-paginator .mat-mdc-select{line-height:1.5}.mat-mdc-paginator-outer-container{display:flex}.mat-mdc-paginator-container{display:flex;align-items:center;justify-content:flex-end;padding:0 8px;flex-wrap:wrap;width:100%;min-height:var(--mat-paginator-container-size, 56px)}.mat-mdc-paginator-page-size{display:flex;align-items:baseline;margin-right:8px}[dir=rtl] .mat-mdc-paginator-page-size{margin-right:0;margin-left:8px}.mat-mdc-paginator-page-size-label{margin:0 4px}.mat-mdc-paginator-page-size-select{margin:0 4px;width:var(--mat-paginator-page-size-select-width, 84px)}.mat-mdc-paginator-range-label{margin:0 32px 0 24px}.mat-mdc-paginator-range-actions{display:flex;align-items:center}.mat-mdc-paginator-icon{display:inline-block;width:28px;fill:var(--mat-paginator-enabled-icon-color, var(--mat-sys-on-surface-variant))}.mat-mdc-icon-button[aria-disabled] .mat-mdc-paginator-icon{fill:var(--mat-paginator-disabled-icon-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent))}[dir=rtl] .mat-mdc-paginator-icon{transform:rotate(180deg)}@media(forced-colors: active){.mat-mdc-icon-button[aria-disabled] .mat-mdc-paginator-icon,.mat-mdc-paginator-icon{fill:currentColor}.mat-mdc-paginator-range-actions .mat-mdc-icon-button{outline:solid 1px}.mat-mdc-paginator-range-actions .mat-mdc-icon-button[aria-disabled]{color:GrayText}}.mat-mdc-paginator-touch-target{display:var(--mat-paginator-touch-target-display, block);position:absolute;top:50%;left:50%;width:var(--mat-paginator-page-size-select-width, 84px);height:var(--mat-paginator-page-size-select-touch-target-height, 48px);background-color:rgba(0,0,0,0);transform:translate(-50%, -50%);cursor:pointer} +`],encapsulation:2,changeDetection:0})}return t})(),_c=(()=>{class t{static \u0275fac=function(i){return new(i||t)};static \u0275mod=ee({type:t});static \u0275inj=J({providers:[Ree],imports:[ze,fc,Br,ir]})}return t})();var _g=class extends Li{constructor(){super(...arguments),this._delegate=u(Li)}getValidDateOrNull(n){return this.isDateInstance(n)&&this.isValid(n)?n:null}compareDatetime(n,e,i=!0){return this.compareDate(n,e)||this.getHour(n)-this.getHour(e)||i&&this.getMinute(n)-this.getMinute(e)}sameDatetime(n,e){if(n&&e){let i=this.isValid(n),r=this.isValid(e);return i&&r?!this.compareDatetime(n,e):i===r}return n===e}sameYear(n,e){return n&&e&&this.getYear(n)===this.getYear(e)}sameDay(n,e){return n&&e&&this.getDate(n)===this.getDate(e)&&this.sameMonthAndYear(n,e)}sameHour(n,e){return n&&e&&this.getHour(n)===this.getHour(e)&&this.sameDay(n,e)}sameMinute(n,e){return n&&e&&this.getMinute(n)===this.getMinute(e)&&this.sameHour(n,e)}sameMonthAndYear(n,e){if(n&&e){let i=this.isValid(n),r=this.isValid(e);return i&&r?!(this.getYear(n)-this.getYear(e)||this.getMonth(n)-this.getMonth(e)):i===r}return n===e}clone(n){return this._delegate.clone(n)}addCalendarYears(n,e){return this._delegate.addCalendarYears(n,e)}addCalendarMonths(n,e){return this._delegate.addCalendarMonths(n,e)}addCalendarDays(n,e){return this._delegate.addCalendarDays(n,e)}getYear(n){return this._delegate.getYear(n)}getMonth(n){return this._delegate.getMonth(n)}getDate(n){return this._delegate.getDate(n)}getDayOfWeek(n){return this._delegate.getDayOfWeek(n)}getMonthNames(n){return this._delegate.getMonthNames(n)}getDateNames(){return this._delegate.getDateNames()}getDayOfWeekNames(n){return this._delegate.getDayOfWeekNames(n)}getYearName(n){return this._delegate.getYearName(n)}getFirstDayOfWeek(){return this._delegate.getFirstDayOfWeek()}getNumDaysInMonth(n){return this._delegate.getNumDaysInMonth(n)}createDate(n,e,i){return this._delegate.createDate(n,e,i)}today(){return this._delegate.today()}parse(n,e){return this._delegate.parse(n,e)}format(n,e){return this._delegate.format(n,e)}toIso8601(n){return this._delegate.toIso8601(n)}isDateInstance(n){return this._delegate.isDateInstance(n)}isValid(n){return this._delegate.isValid(n)}invalid(){return this._delegate.invalid()}clampDate(n,e,i){return e&&this.compareDatetime(n,e)<0?e:i&&this.compareDatetime(n,i)>0?i:n}},n3=new T("mtx-datetime-formats"),HGe=r3(24,t=>String(t)),zGe=r3(60,t=>String(t));function r3(t,n){let e=Array(t);for(let i=0;i{let n=class n{transform(i){return ji(i)?i:Q(i)}};n.\u0275fac=function(r){return new(r||n)},n.\u0275pipe=Wr({name:"toObservable",type:n,pure:!0});let t=n;return t})();var a3=(()=>{let n=class n{};n.\u0275fac=function(r){return new(r||n)},n.\u0275mod=ee({type:n}),n.\u0275inj=J({imports:[gt]});let t=n;return t})();function s3(t,n){let e=Array(t);for(let i=0;i{let n=class n extends _g{constructor(){super();let i=u(ys,{optional:!0});this.setLocale(i)}setLocale(i){super.setLocale(i)}getHour(i){return sy(i)}getMinute(i){return ly(i)}isInNextMonth(i,r){let o=this.getDateInNextMonth(i);return super.sameMonthAndYear(o,r)}getWeek(i,r){return dh(i,{weekStartsOn:r})}createDatetime(i,r,o,a,s){if(r<0||r>11)throw Error(`Invalid month index "${r}". Month index has to be between 0 and 11.`);if(o<1)throw Error(`Invalid date "${o}". Date has to be greater than 0.`);if(a<0||a>23)throw Error(`Invalid hour "${a}". Hour has to be between 0 and 23.`);if(s<0||s>59)throw Error(`Invalid minute "${s}". Minute has to be between 0 and 59.`);let l=new Date(i,r,o,a,s);if(!sh(l))throw Error(`Invalid date "${o}" for month with index "${r}".`);return l}getFirstDateOfMonth(i){return sV(i)}getHourNames(){return s3(24,i=>i.toLocaleString(this.locale))}getMinuteNames(){return s3(60,i=>i.toLocaleString(this.locale))}addCalendarHours(i,r){return tV(i,r)}addCalendarMinutes(i,r){return rV(i,r)}deserialize(i){return this._delegate.deserialize(i)}getDateInNextMonth(i){return ah(i,1)}};n.\u0275fac=function(r){return new(r||n)},n.\u0275prov=O({token:n,factory:n.\u0275fac});let t=n;return t})(),Vee={parse:{dateInput:"P",monthInput:"LLLL",yearInput:"yyyy",datetimeInput:"P p",timeInput:"p"},display:{dateInput:"P",monthInput:"LLLL",yearInput:"yyyy",datetimeInput:"P p",timeInput:"p",monthYearLabel:"yyyy",dateA11yLabel:"LLLL dd, yyyy",monthYearA11yLabel:"MMMM yyyy",popupHeaderDateLabel:"ccc, dd LLL"}};function l3(t=Vee){return[{provide:Li,useClass:Vk,deps:[ys]},{provide:_g,useClass:Lee},{provide:n3,useValue:t}]}var Bee=["container"];function jee(t,n){}function Hee(t,n){}var zee=["*"];function Uee(t,n){if(t&1&&k(0,"formly-field",0),t&2){let e=n.$implicit;y("field",e)}}var c3=["fieldComponent"];function $ee(t,n,e){if(n.id)return n.id;let i=n.type;return!i&&n.template&&(i="template"),i instanceof Td&&(i=i.prototype.constructor.name),[t,i,n.key,e].join("_")}function mn(t){return!bc(t.key)&&t.key!==""&&(!Array.isArray(t.key)||t.key.length>0)}function uu(t){if(!mn(t))return[];if(t._keyPath?.key!==t.key){let n=[];if(typeof t.key=="string"){let e=t.key.indexOf("[")===-1?t.key:t.key.replace(/\[(\w+)\]/g,".$1");n=e.indexOf(".")!==-1?e.split("."):[e]}else Array.isArray(t.key)?n=t.key.slice(0):n=[`${t.key}`];nr(t,"_keyPath",{key:t.key,path:n})}return t._keyPath.path.slice(0)}var _S=["required","pattern","minLength","maxLength","min","max"];function bg(t,n){let e=uu(t);if(e.length===0)return;let i=t;for(;i.parent;)i=i.parent,e=[...uu(i),...e];if(n===void 0&&t.resetOnHide){let r=e.pop(),o=e.reduce((a,s)=>a[s]||{},i.model);delete o[r];return}Wee(i.model,e,n)}function Wee(t,n,e){for(let i=0;i{for(let i in e)bc(t[i])||Gee(t[i])?t[i]=vc(e[i]):qee(t[i],e[i])&&Ch(t[i],e[i])}),t}function bc(t){return t==null}function bx(t){return t===void 0}function Gee(t){return t===""}function uS(t){return typeof t=="function"}function qee(t,n){return La(t)&&La(n)&&Object.getPrototypeOf(t)===Object.getPrototypeOf(n)&&!(Array.isArray(t)||Array.isArray(n))}function La(t){return t!=null&&typeof t=="object"}function Yee(t){return!!t&&typeof t.then=="function"}function vc(t){if(!La(t)||ji(t)||t instanceof te||t.changingThisBreaksApplicationSecurity||["RegExp","FileList","File","Blob"].indexOf(t.constructor?.name)!==-1)return t;if(t instanceof Set)return new Set(t);if(t instanceof Map)return new Map(t);if(t instanceof Uint8Array)return new Uint8Array(t);if(t instanceof Uint16Array)return new Uint16Array(t);if(t instanceof Uint32Array)return new Uint32Array(t);if(t._isAMomentObject&&uS(t.clone))return t.clone();if(t instanceof hc)return null;if(t instanceof Date)return new Date(t.getTime());if(Array.isArray(t))return t.slice(0).map(i=>vc(i));let n=Object.getPrototypeOf(t),e=Object.create(n);return e=Object.setPrototypeOf(e,n),Object.keys(t).reduce((i,r)=>{let o=Object.getOwnPropertyDescriptor(t,r);return o.get?Object.defineProperty(i,r,o):i[r]=vc(t[r]),i},e)}function nr(t,n,e){Object.defineProperty(t,n,{enumerable:!1,writable:!0,configurable:!0}),t[n]=e}function d3(t,n,e){let i=[],r=()=>{i.forEach(a=>a()),i=[]},o=Wi(t,n,({firstChange:a,currentValue:s})=>{!a&&e(),r(),La(s)&&s.constructor.name==="Object"&&Object.keys(s).forEach(l=>{i.push(d3(t,[...n,l],e))})});return()=>{o.unsubscribe(),r()}}function Wi(t,n,e){t._observers||nr(t,"_observers",{});let i=t;for(let s=0;s=1&&La(i))){let{enumerable:s}=Object.getOwnPropertyDescriptor(i,r)||{enumerable:!0};Object.defineProperty(i,r,{enumerable:s,configurable:!0,get:()=>a.value,set:l=>{if(l!==a.value){let c=a.value;a.value=l,a.onChange.forEach(d=>d({previousValue:c,currentValue:l,firstChange:!1}))}}})}return{setValue(s,l=!0){if(s===a.value)return;let c=a.value;a.value=s,a.onChange.forEach(d=>{d!==e&&l&&d({previousValue:c,currentValue:s,firstChange:!1})})},unsubscribe(){a.onChange=a.onChange.filter(s=>s!==e),a.onChange.length===0&&delete t._observers[o]}}}function u3(t,n){if(n=Array.isArray(n)?n.join("."):n,!!t.fieldGroup)for(let e=0,i=t.fieldGroup.length;e{n instanceof Id?n.injector.get(ye).markForCheck():n.markForCheck()})}function Qee(t){let n=i=>i.hide||i.expressions?.hide||i.hideExpression,e=!t.resetOnHide||!n(t);if(!n(t)&&t.resetOnHide){let i=t.parent;for(;i&&!n(i);)i=i.parent;e=!i||!n(i)}return!e}function m3(){return+wp.major>18||+wp.major>=18&&+wp.minor>=1}function Kee(t,n){try{return Function(...n,`return ${t};`)}catch(e){console.error(e)}}function Zee(t,n,e){return typeof t=="function"?t.apply(n,e):!!t}function Xee(t,n=!1){let e=t.formControl,i=e._fields?e._fields.indexOf(t):-1;i!==-1&&e._fields.splice(i,1);let r=e.parent;if(!r)return;let o={emitEvent:n};if(r instanceof oS){let a=r.controls.findIndex(s=>s===e);a!==-1&&r.removeAt(a,o)}else if(r instanceof px){let a=uu(t),s=a[a.length-1];r.get([s])===e&&r.removeControl(s,o)}e.setParent(null)}function Jee(t){return t.formControl?t.formControl:t.shareFormControl===!1?null:t.form?.get(uu(t))}function h3(t,n,e=!1){if(n=n||t.formControl,n._fields||nr(n,"_fields",[]),n._fields.indexOf(t)===-1&&n._fields.push(t),!t.formControl&&n){nr(t,"formControl",n),n.setValidators(null),n.setAsyncValidators(null),t.props.disabled=!!t.props.disabled;let s=Wi(t,["props","disabled"],({firstChange:l,currentValue:c})=>{l||(c?t.formControl.disable():t.formControl.enable())});n instanceof Jo&&n.registerOnDisabledChange(s.setValue)}if(!t.form||!mn(t))return;let i=t.form,r=uu(t),o=mu(t);!(bc(n.value)&&bc(o))&&n.value!==o&&n instanceof Jo&&n.patchValue(o);for(let s=0;s{nr(n,"_hide",!!i),(!r||r&&i===!0)&&(n.props.hidden=i,n.options._hiddenFieldsForCheck.push({field:n}))}),n.hideExpression&&Wi(n,["hideExpression"],({currentValue:i})=>{n._expressions.hide=this.parseExpressions(n,"hide",typeof i=="boolean"?()=>i:i)});let e=(i,r)=>{typeof r=="string"||uS(r)?n._expressions[i]=this.parseExpressions(n,i,r):r instanceof Fe&&(n._expressions[i]={value$:r.pipe(Be(o=>{this.evalExpr(n,i,o),n.options._detectChanges(n)}))})};n.expressions=n.expressions||{};for(let i of Object.keys(n.expressions))Wi(n,["expressions",i],({currentValue:r})=>{e(i,uS(r)?(...o)=>r(n,o[3]):r)});n.expressionProperties=n.expressionProperties||{};for(let i of Object.keys(n.expressionProperties))Wi(n,["expressionProperties",i],({currentValue:r})=>e(i,r))}postPopulate(n){if(!n.parent&&!n.options.checkExpressions){let e=!1;n.options.checkExpressions=(i,r)=>{if(e)return;e=!0;let o=this.checkExpressions(i,r),a=n.options;a._hiddenFieldsForCheck.sort(s=>s.field.hide?-1:1).forEach(s=>this.changeHideState(s.field,s.field.hide??s.default,!r)),a._hiddenFieldsForCheck=[],o&&this.checkExpressions(n),e=!1}}}parseExpressions(n,e,i){let r;if(n.parent&&["hide","props.disabled"].includes(e)){let a=s=>e==="hide"?s.hide:s.props.disabled;r=()=>{let s=n.parent;for(;s.parent&&!a(s);)s=s.parent;return a(s)}}i=i||(()=>!1),typeof i=="string"&&(i=Kee(i,["model","formState","field"]));let o;return{callback:a=>{try{let s=Zee(r?(...l)=>r(n)||i(...l):i,{field:n},[n.model,n.options.formState,n,a]);return a||o!==s&&(!La(s)||ji(s)||JSON.stringify(s)!==JSON.stringify(o))?(o=s,this.evalExpr(n,e,s),!0):!1}catch(s){throw s.message=`[Formly Error] [Expression "${e}"] ${s.message}`,s}}}}checkExpressions(n,e=!1){if(!n)return!1;let i=!1;if(n._expressions)for(let r of Object.keys(n._expressions))n._expressions[r].callback?.(e)&&(i=!0);return n.fieldGroup?.forEach(r=>this.checkExpressions(r,e)&&(i=!0)),i}changeDisabledState(n,e){n.fieldGroup&&n.fieldGroup.filter(i=>!i._expressions.hasOwnProperty("props.disabled")).forEach(i=>this.changeDisabledState(i,e)),mn(n)&&n.props.disabled!==e&&(n.props.disabled=e)}changeHideState(n,e,i){if(n.fieldGroup&&n.fieldGroup.filter(r=>r&&!r._expressions.hide).forEach(r=>this.changeHideState(r,e,i)),n.formControl&&mn(n)){nr(n,"_hide",!!(e||n.hide));let r=n.formControl;r._fields?.length>1&&vg(r),e===!0&&(!r._fields||r._fields.every(o=>!!o._hide))?(Xee(n,!0),i&&n.resetOnHide&&(bg(n,void 0),n.formControl.reset({value:void 0,disabled:n.formControl.disabled}),n.options.fieldChanges.next({value:void 0,field:n,type:"valueChanges"}),n.fieldGroup&&n.formControl instanceof oS&&(n.fieldGroup.length=0))):e===!1&&(n.resetOnHide&&!bx(n.defaultValue)&&bx(mu(n))&&bg(n,n.defaultValue),h3(n,void 0,!0),n.resetOnHide&&n.fieldArray&&n.fieldGroup?.length!==n.model?.length&&n.options.build(n))}n.options.fieldChanges&&n.options.fieldChanges.next({field:n,type:"hidden",value:e})}evalExpr(n,e,i){if(e.indexOf("model.")===0){let r=e.replace(/^model\./,""),o=n.fieldGroup?n:n.parent,a=n?.key===r?n.formControl:n.form.get(r);!a&&n.get(r)&&(a=n.get(r).formControl),bg({key:r,parent:o,model:n.model},i),a&&!(bc(a.value)&&bc(i))&&a.value!==i&&a.patchValue(i)}else{try{let r=n,o=this._evalExpressionPath(n,e),a=o.length-1;for(let s=0;sr).forEach(r=>{let o=r.match(/['|"](.*?)['|"]/);o?i.push(o[1]):i.push(...r.split(".").filter(a=>a))}),n._expressions[e]&&(n._expressions[e].paths=i),i}},pS=class{constructor(n){this.config=n,this.formId=0}prePopulate(n){let e=n.parent;this.initRootOptions(n),this.initFieldProps(n),e&&(Object.defineProperty(n,"options",{get:()=>e.options,configurable:!0}),Object.defineProperty(n,"model",{get:()=>mn(n)&&n.fieldGroup?mu(n):e.model,configurable:!0})),Object.defineProperty(n,"get",{value:i=>u3(n,i),configurable:!0}),this.getFieldComponentInstance(n).prePopulate?.(n)}onPopulate(n){this.initFieldOptions(n),this.getFieldComponentInstance(n).onPopulate?.(n),n.fieldGroup&&n.fieldGroup.forEach((e,i)=>{e&&(Object.defineProperty(e,"parent",{get:()=>n,configurable:!0}),Object.defineProperty(e,"index",{get:()=>i,configurable:!0})),this.formId++})}postPopulate(n){this.getFieldComponentInstance(n).postPopulate?.(n)}initFieldProps(n){n.props??=n.templateOptions,Object.defineProperty(n,"templateOptions",{get:()=>n.props,set:e=>n.props=e,configurable:!0})}initRootOptions(n){if(n.parent)return;let e=n.options;n.options.formState=n.options.formState||{},e.showError||(e.showError=this.config.extras.showError),e.fieldChanges||nr(e,"fieldChanges",new z),e._hiddenFieldsForCheck||(e._hiddenFieldsForCheck=[]),e._detectChanges=i=>{i._componentRefs&&mS(i),i.fieldGroup?.forEach(r=>r&&e._detectChanges(r))},e.detectChanges=i=>{i.options.checkExpressions?.(i),e._detectChanges(i)},e.resetModel=i=>{i=vc(i??e._initialModel),n.model&&(Object.keys(n.model).forEach(r=>delete n.model[r]),Object.assign(n.model,i||{})),m3()||Wi(e,["parentForm","submitted"]).setValue(!1,!1),e.build(n),n.form.reset(n.model)},e.updateInitialValue=i=>e._initialModel=vc(i??n.model),n.options.updateInitialValue()}initFieldOptions(n){Ch(n,{id:$ee(`formly_${this.formId}`,n,n.index),hooks:{},modelOptions:{},validation:{messages:{}},props:!n.type||!mn(n)?{}:{label:"",placeholder:"",disabled:!1}}),this.config.extras.resetFieldOnHide&&n.resetOnHide!==!1&&(n.resetOnHide=!0),n.type!=="formly-template"&&(n.template||n.expressions?.template||n.expressionProperties?.template)&&(n.type="formly-template"),!n.type&&n.fieldGroup&&(n.type="formly-group"),n.type&&this.config.getMergedField(n),mn(n)&&!bx(n.defaultValue)&&bx(mu(n))&&!Qee(n)&&bg(n,n.defaultValue),n.wrappers=n.wrappers||[]}getFieldComponentInstance(n){let e=()=>{let i=this.config.resolveFieldTypeRef(n),r=n._componentRefs?.slice(-1)[0];return r instanceof Id&&r?.componentType===i?.componentType&&(i=r),i?.instance};return n._proxyInstance||nr(n,"_proxyInstance",new Proxy({},{get:(i,r)=>e()?.[r],set:(i,r,o)=>e()[r]=o})),n._proxyInstance}},fS=class{prePopulate(n){this.root||(this.root=n),n.parent&&Object.defineProperty(n,"form",{get:()=>n.parent.formControl,configurable:!0})}onPopulate(n){n.hasOwnProperty("fieldGroup")&&!mn(n)?nr(n,"formControl",n.form):this.addFormControl(n)}postPopulate(n){if(this.root!==n)return;if(this.root=null,this.setValidators(n)&&n.parent){let i=n.parent;for(;i;)(mn(i)||!i.parent)&&vg(i.formControl,!0),i=i.parent}}addFormControl(n){let e=Jee(n);if(!n.fieldArray){if(e){if(e instanceof Jo){let i=mn(n)?mu(n):n.defaultValue;e.defaultValue=i}}else{let i={updateOn:n.modelOptions.updateOn};if(n.fieldGroup)e=new px({},i);else{let r=mn(n)?mu(n):n.defaultValue;e=new UB({value:r,disabled:!!n.props.disabled},De(M({},i),{initialValueIsDefault:!0}))}}h3(n,e)}}setValidators(n,e=!1){e===!1&&mn(n)&&n.props?.disabled&&(e=!0);let i=!1;if(n.fieldGroup?.forEach(r=>r&&this.setValidators(r,e)&&(i=!0)),mn(n)||!n.parent||!mn(n)&&!n.fieldGroup){let{formControl:r}=n;if(r&&(mn(n)&&r instanceof Jo&&(e&&r.enabled&&(r.disable({emitEvent:!1,onlySelf:!0}),i=!0),!e&&r.disabled&&(r.enable({emitEvent:!1,onlySelf:!0}),i=!0)),r.validator===null&&this.hasValidators(n,"_validators")&&(r.setValidators(()=>{let o=Le.compose(this.mergeValidators(n,"_validators"));return o?o(r):null}),i=!0),r.asyncValidator===null&&this.hasValidators(n,"_asyncValidators")&&(r.setAsyncValidators(()=>{let o=Le.composeAsync(this.mergeValidators(n,"_asyncValidators"));return o?o(r):Q(null)}),i=!0),i)){vg(r,!0);let o=r.parent;for(let a=1;a1&&i._fields.some(r=>r[e].length>0)||n[e].length>0?!0:n.fieldGroup?.some(r=>r?.fieldGroup&&!mn(r)&&this.hasValidators(r,e))}mergeValidators(n,e){let i=[],r=n.formControl;return r?._fields?.length>1?r._fields.filter(o=>!o._hide).forEach(o=>i.push(...o[e])):n[e]&&i.push(...n[e]),n.fieldGroup&&n.fieldGroup.filter(o=>o?.fieldGroup&&!mn(o)).forEach(o=>i.push(...this.mergeValidators(o,e))),i}},gS=class{constructor(n){this.config=n}onPopulate(n){this.initFieldValidation(n,"validators"),this.initFieldValidation(n,"asyncValidators")}initFieldValidation(n,e){let i=[];if(e==="validators"&&!(n.hasOwnProperty("fieldGroup")&&!mn(n))&&i.push(this.getPredefinedFieldValidation(n)),n[e])for(let r of Object.keys(n[e]))r==="validation"?i.push(...n[e].validation.map(o=>this.wrapNgValidatorFn(n,o))):i.push(this.wrapNgValidatorFn(n,n[e][r],r));nr(n,"_"+e,i)}getPredefinedFieldValidation(n){let e=[];return _S.forEach(i=>Wi(n,["props",i],({currentValue:r,firstChange:o})=>{e=e.filter(a=>a!==i),i==="required"&&r!=null&&typeof r!="boolean"&&console.warn(`Formly: Invalid prop 'required' of type '${typeof r}', expected 'boolean' (Field:${n.key}).`),r!=null&&r!==!1&&e.push(i),!o&&n.formControl&&vg(n.formControl)})),i=>e.length===0?null:Le.compose(e.map(r=>()=>{let o=n.props[r];switch(r){case"required":return Le.required(i);case"pattern":return Le.pattern(o)(i);case"minLength":let a=Le.minLength(o)(i),s=this.config.getValidatorMessage("minlength")||n.validation?.messages?.minlength?"minlength":"minLength";return a?{[s]:a.minlength}:null;case"maxLength":let l=Le.maxLength(o)(i),c=this.config.getValidatorMessage("maxlength")||n.validation?.messages?.maxlength?"maxlength":"maxLength";return l?{[c]:l.maxlength}:null;case"min":return Le.min(o)(i);case"max":return Le.max(o)(i);default:return null}}))(i)}wrapNgValidatorFn(n,e,i){let r;if(typeof e=="string"&&(r=vc(this.config.getValidator(e))),typeof e=="object"&&e.name&&(r=vc(this.config.getValidator(e.name)),e.options&&(r.options=e.options)),typeof e=="object"&&e.expression){let o=e,{expression:a}=o,s=ed(o,["expression"]);r={name:i,validation:a,options:Object.keys(s).length>0?s:null}}return typeof e=="function"&&(r={name:i,validation:e}),a=>{let s=r.validation(a,n,r.options);return Yee(s)?s.then(l=>this.handleResult(n,i?!!l:l,r)):ji(s)?s.pipe(se(l=>this.handleResult(n,i?!!l:l,r))):this.handleResult(n,i?!!s:s,r)}}handleResult(n,e,{name:i,options:r}){typeof e=="boolean"&&(e=e?null:{[i]:r||!0});let o=n.formControl;return o?._childrenErrors?.[i]?.(),La(e)&&Object.keys(e).forEach(a=>{let s=e[a].errorPath?e[a].errorPath:r?.errorPath,l=s?n.formControl.get(s):null;if(l){let c=e[a],{errorPath:d}=c,m=ed(c,["errorPath"]);l.setErrors(De(M({},l.errors||{}),{[a]:m})),!o._childrenErrors&&nr(o,"_childrenErrors",{}),o._childrenErrors[a]=()=>{let v=l.errors||{},{[a]:f}=v,b=ed(v,[pA(a)]);l.setErrors(Object.keys(b).length===0?null:b)}}}),e}},xg=(()=>{let n=class n{constructor(){this.field={}}set _formlyControls(i){let r=this.field;r._localFields=i.map(o=>o.control._fields||[]).flat().filter(o=>o.formControl!==this.field.formControl)}get model(){return this.field.model}get form(){return this.field.form}get options(){return this.field.options}get key(){return this.field.key}get formControl(){return this.field.formControl}get props(){return this.field.props||{}}get to(){return this.props}get showError(){return this.options.showError(this)}get id(){return this.field.id}get formState(){return this.options?.formState||{}}};n.\u0275fac=function(r){return new(r||n)},n.\u0275dir=F({type:n,viewQuery:function(r,o){if(r&1&&ie(Hn,5),r&2){let a;B(a=j())&&(o._formlyControls=a)}},inputs:{field:"field"},standalone:!1});let t=n;return t})(),ete=(()=>{let n=class n extends xg{get template(){return this.field&&this.field.template!==this.innerHtml.template&&(this.innerHtml={template:this.field.template,content:this.props.safeHtml?this.sanitizer.bypassSecurityTrustHtml(this.field.template):this.field.template}),this.innerHtml.content}constructor(i){super(),this.sanitizer=i,this.innerHtml={}}};n.\u0275fac=function(r){return new(r||n)(_e(Cf))},n.\u0275cmp=E({type:n,selectors:[["formly-template"]],standalone:!1,features:[le],decls:1,vars:1,consts:[[3,"innerHtml"]],template:function(r,o){r&1&&k(0,"div",0),r&2&&y("innerHtml",o.template,Zp)},encapsulation:2,changeDetection:0});let t=n;return t})(),bS=(()=>{let n=class n{constructor(){this.types={},this.validators={},this.wrappers={},this.messages={},this.extras={checkExpressionOn:"modelChange",lazyRender:!0,resetFieldOnHide:!0,renderFormlyFieldElement:!0,showError(i){return i.formControl?.invalid&&(i.formControl?.touched||i.options.parentForm?.submitted||!!i.field.validation?.show)}},this.extensions={},this.presets={},this.extensionsByPriority={},this.componentRefs={}}addConfig(i){if(Array.isArray(i)){i.forEach(r=>this.addConfig(r));return}i.types&&i.types.forEach(r=>this.setType(r)),i.validators&&i.validators.forEach(r=>this.setValidator(r)),i.wrappers&&i.wrappers.forEach(r=>this.setWrapper(r)),i.validationMessages&&i.validationMessages.forEach(r=>this.addValidatorMessage(r.name,r.message)),i.extensions&&this.setSortedExtensions(i.extensions),i.extras&&(this.extras=M(M({},this.extras),i.extras)),i.presets&&(this.presets=M(M({},this.presets),i.presets.reduce((r,o)=>De(M({},r),{[o.name]:o.config}),{})))}setType(i){Array.isArray(i)?i.forEach(r=>this.setType(r)):(this.types[i.name]||(this.types[i.name]={name:i.name}),["component","extends","defaultOptions","wrappers"].forEach(r=>{i.hasOwnProperty(r)&&(this.types[i.name][r]=i[r])}))}getType(i,r=!1){if(i instanceof Td)return{component:i,name:i.prototype.constructor.name};if(!this.types[i]){if(r)throw new Error(`[Formly Error] The type "${i}" could not be found. Please make sure that is registered through the FormlyModule declaration.`);return null}return this.mergeExtendedType(i),this.types[i]}getMergedField(i={}){let r=this.getType(i.type);if(!r)return;r.defaultOptions&&Ch(i,r.defaultOptions);let o=r.extends&&this.getType(r.extends).defaultOptions;o&&Ch(i,o),i?.optionsTypes&&i.optionsTypes.forEach(s=>{let l=this.getType(s).defaultOptions;l&&Ch(i,l)});let a=this.resolveFieldTypeRef(i);a?.instance?.defaultOptions&&Ch(i,a.instance.defaultOptions),!i.wrappers&&r.wrappers&&(i.wrappers=[...r.wrappers])}resolveFieldTypeRef(i={}){let r=this.getType(i.type);if(!r||!r.component)return null;if(!this.componentRefs[r.name]){let{_viewContainerRef:o,_injector:a}=i.options;if(!o||!a)return null;let s=o.createComponent(r.component,{injector:a});this.componentRefs[r.name]=s;try{s.destroy()}catch(l){console.error(`An error occurred while destroying the Formly component type "${i.type}"`,l)}}return this.componentRefs[r.name]}clearRefs(){this.componentRefs={}}setWrapper(i){this.wrappers[i.name]=i,i.types&&i.types.forEach(r=>{this.setTypeWrapper(r,i.name)})}getWrapper(i){if(i instanceof Td)return{component:i,name:i.prototype.constructor.name};if(!this.wrappers[i])throw new Error(`[Formly Error] The wrapper "${i}" could not be found. Please make sure that is registered through the FormlyModule declaration.`);return this.wrappers[i]}setTypeWrapper(i,r){this.types[i]||(this.types[i]={}),this.types[i].wrappers||(this.types[i].wrappers=[]),this.types[i].wrappers.indexOf(r)===-1&&this.types[i].wrappers.push(r)}setValidator(i){this.validators[i.name]=i}getValidator(i){if(!this.validators[i])throw new Error(`[Formly Error] The validator "${i}" could not be found. Please make sure that is registered through the FormlyModule declaration.`);return this.validators[i]}addValidatorMessage(i,r){this.messages[i]=r}getValidatorMessage(i){return this.messages[i]}setSortedExtensions(i){i.forEach(r=>{let o=r.priority??1;this.extensionsByPriority[o]=De(M({},this.extensionsByPriority[o]),{[r.name]:r.extension})}),this.extensions=Object.keys(this.extensionsByPriority).map(Number).sort((r,o)=>r-o).reduce((r,o)=>M(M({},r),this.extensionsByPriority[o]),{})}mergeExtendedType(i){if(!this.types[i].extends)return;let r=this.getType(this.types[i].extends);this.types[i].component||(this.types[i].component=r.component),this.types[i].wrappers||(this.types[i].wrappers=r.wrappers)}};n.\u0275fac=function(r){return new(r||n)},n.\u0275prov=O({token:n,factory:n.\u0275fac,providedIn:"root"});let t=n;return t})();var tte=(()=>{let n=class n{};n.\u0275fac=function(r){return new(r||n)},n.\u0275prov=O({token:n,factory:n.\u0275fac});let t=n;return t})(),ite=(()=>{let n=class n{get containerRef(){return this.config.extras.renderFormlyFieldElement?this.viewContainerRef:this.hostContainerRef}get elementRef(){return this.config.extras.renderFormlyFieldElement?this._elementRef:this.componentRefs?.[0]instanceof Id?this.componentRefs[0].location:null}constructor(i,r,o,a,s){this.config=i,this.renderer=r,this._elementRef=o,this.hostContainerRef=a,this.form=s,this.hostObservers=[],this.componentRefs=[],this.hooksObservers=[],this.detectFieldBuild=!1,this.valueChangesUnsubscribe=()=>{}}ngAfterContentInit(){this.triggerHook("afterContentInit")}ngAfterViewInit(){this.triggerHook("afterViewInit")}ngDoCheck(){this.detectFieldBuild&&this.field&&this.field.options&&this.render()}ngOnInit(){this.triggerHook("onInit")}ngOnChanges(i){this.triggerHook("onChanges",i)}ngOnDestroy(){this.resetRefs(this.field),this.hostObservers.forEach(i=>i.unsubscribe()),this.hooksObservers.forEach(i=>i()),this.valueChangesUnsubscribe(),this.triggerHook("onDestroy")}renderField(i,r,o=[]){if(this.containerRef===i&&(this.resetRefs(this.field),this.containerRef.clear(),o=this.field?.wrappers),o?.length>0){let[a,...s]=o,{component:l}=this.config.getWrapper(a),c=i.createComponent(l);this.attachComponentRef(c,r),Wi(c.instance,["fieldComponent"],({currentValue:d,previousValue:m,firstChange:f})=>{if(d){if(m&&m._lContainer===d._lContainer)return;let b=m?m.detach():null;b&&!b.destroyed?d.insert(b):this.renderField(d,r,s),!f&&c.changeDetectorRef.detectChanges()}})}else if(r?.type){let a=this.form?.templates?.find(l=>l.name===r.type),s;if(a)s=i.createEmbeddedView(a.ref,{$implicit:r});else{let{component:l}=this.config.getType(r.type,!0);s=i.createComponent(l)}this.attachComponentRef(s,r)}}triggerHook(i,r){if((i==="onInit"||i==="onChanges"&&r.field&&!r.field.firstChange)&&(this.valueChangesUnsubscribe(),this.valueChangesUnsubscribe=this.fieldChanges(this.field)),this.field?.hooks?.[i]&&(!r||r.field)){let o=this.field.hooks[i](this.field);if(ji(o)&&["onInit","afterContentInit","afterViewInit"].indexOf(i)!==-1){let a=o.subscribe();this.hooksObservers.push(()=>a.unsubscribe())}}i==="onChanges"&&r.field&&(this.resetRefs(r.field.previousValue),this.render())}attachComponentRef(i,r){this.componentRefs.push(i),r._componentRefs.push(i),i instanceof Id&&Object.assign(i.instance,{field:r})}render(){if(this.field){if(!this.field.options){this.detectFieldBuild=!0;return}if(this.detectFieldBuild=!1,this.hostObservers.forEach(i=>i.unsubscribe()),this.hostObservers=[Wi(this.field,["hide"],({firstChange:i,currentValue:r})=>{let o=this.containerRef;this.config.extras.lazyRender===!1?(i&&this.renderField(o,this.field),(!i||i&&r)&&this.elementRef&&this.renderer.setStyle(this.elementRef.nativeElement,"display",r?"none":"")):r?(o.clear(),this.field.className&&this.renderer.removeAttribute(this.elementRef.nativeElement,"class")):(this.renderField(o,this.field),this.field.className&&this.renderer.setAttribute(this.elementRef.nativeElement,"class",this.field.className)),!i&&this.field.options.detectChanges(this.field)}),Wi(this.field,["className"],({firstChange:i,currentValue:r})=>{(!i||i&&r)&&(!this.config.extras.lazyRender||this.field.hide!==!0)&&this.elementRef&&this.renderer.setAttribute(this.elementRef.nativeElement,"class",r)})],!m3())["touched","pristine","status"].forEach(i=>this.hostObservers.push(Wi(this.field,["formControl",i],({firstChange:r})=>!r&&mS(this.field))));else if(this.field.formControl){let i=this.field.formControl.events.subscribe(()=>mS(this.field));this.hostObservers.push(i)}}}resetRefs(i){i&&(i._localFields?i._localFields=[]:nr(this.field,"_localFields",[]),i._componentRefs?i._componentRefs=i._componentRefs.filter(r=>this.componentRefs.indexOf(r)===-1):nr(this.field,"_componentRefs",[])),this.componentRefs=[]}fieldChanges(i){if(!i)return()=>{};let r=d3(i,["props"],()=>i.options.detectChanges(i)),o=[()=>{r()}];for(let s of Object.keys(i._expressions||{})){let l=Wi(i,["_expressions",s],({currentValue:c,previousValue:d})=>{d?.subscription&&(d.subscription.unsubscribe(),d.subscription=null),ji(c.value$)&&(c.subscription=c.value$.subscribe())});o.push(()=>{i._expressions[s]?.subscription&&i._expressions[s].subscription.unsubscribe(),l.unsubscribe()})}for(let s of[["focus"],["template"],["fieldGroupClassName"],["validation","show"]]){let l=Wi(i,s,({firstChange:c})=>!c&&i.options.detectChanges(i));o.push(()=>l.unsubscribe())}if(i.formControl&&!i.fieldGroup){let s=i.formControl,l=s.valueChanges.pipe(se(f=>(i.parsers?.map(b=>f=b(f,i)),Object.is(f,i.formControl.value)||i.formControl.setValue(f),f)),Sn((f,b)=>!(f!==b||Array.isArray(f)||La(f))));s.value!==mu(i)&&(l=l.pipe(He(s.value)));let{updateOn:c,debounce:d}=i.modelOptions;(!c||c==="change")&&d?.default>0&&(l=l.pipe(Rt(d.default)));let m=l.subscribe(f=>{s._fields?.length>1&&s instanceof Jo&&s.patchValue(f,{emitEvent:!1,onlySelf:!0}),mn(i)&&bg(i,f),i.options.fieldChanges.next({value:f,field:i,type:"valueChanges"})});o.push(()=>m.unsubscribe())}let a=[];return Wi(i,["_localFields"],({currentValue:s})=>{a.forEach(l=>l()),a=(s||[]).map(l=>this.fieldChanges(l))}),()=>{o.forEach(s=>s()),a.forEach(s=>s())}}};n.\u0275fac=function(r){return new(r||n)(_e(bS),_e(je),_e(q),_e(nt),_e(tte,8))},n.\u0275cmp=E({type:n,selectors:[["formly-field"]],viewQuery:function(r,o){if(r&1&&ie(Bee,7,nt),r&2){let a;B(a=j())&&(o.viewContainerRef=a.first)}},inputs:{field:"field"},features:[Ae],decls:2,vars:0,consts:[["container",""]],template:function(r,o){r&1&&xa(0,jee,0,0,"ng-template",null,0,_i)},styles:["[_nghost-%COMP%]:empty{display:none}"]});let t=n;return t})(),nte=(()=>{let n=class n extends ite{};n.\u0275fac=(()=>{let i;return function(o){return(i||(i=fe(n)))(o||n)}})(),n.\u0275cmp=E({type:n,selectors:[["formly-field"]],standalone:!1,features:[le],decls:2,vars:0,consts:[["container",""]],template:function(r,o){r&1&&R(0,Hee,0,0,"ng-template",null,0,_i)},styles:["[_nghost-%COMP%]:empty{display:none}"]});let t=n;return t})(),rte=(()=>{let n=class n extends xg{};n.\u0275fac=(()=>{let i;return function(o){return(i||(i=fe(n)))(o||n)}})(),n.\u0275cmp=E({type:n,selectors:[["formly-group"]],hostVars:2,hostBindings:function(r,o){r&2&&it(o.field.fieldGroupClassName||"")},standalone:!1,features:[le],ngContentSelectors:zee,decls:3,vars:0,consts:[[3,"field"]],template:function(r,o){r&1&&(Me(),xt(0,Uee,1,1,"formly-field",0,Hi),oe(2)),r&2&&Ct(o.field.fieldGroup)},dependencies:[nte],encapsulation:2,changeDetection:0});let t=n;return t})(),yg=new T("FORMLY_CONFIG");function ote(t){return{types:[{name:"formly-group",component:rte},{name:"formly-template",component:ete}],extensions:[{name:"core",extension:new pS(t),priority:-250},{name:"field-validation",extension:new gS(t),priority:-200},{name:"field-form",extension:new fS,priority:-150},{name:"field-expression",extension:new hS,priority:-100}]}}var p3=(t=[])=>[{provide:yg,multi:!0,useFactory:ote,deps:[bS]},ate(t)],ate=(t=[])=>({provide:yg,multi:!0,useFactory:()=>{let n=u(yg,{skipSelf:!0,optional:!0});return n?(n.push(t),n):t}});var ste=(()=>{let n=class n{get props(){return this.field.props||{}}get fieldAttrElements(){return this.field?._elementRefs||[]}constructor(i,r,o){this.renderer=i,this.elementRef=r,this.uiAttributesCache={},this.uiEvents={listeners:[],events:["click","keyup","keydown","keypress","focus","blur","change","wheel"],callback:(a,s)=>{switch(a){case"focus":return this.onFocus(s);case"blur":return this.onBlur(s);case"change":return this.onChange(s);default:return this.props[a](this.field,s)}}},this.document=o}ngOnChanges(i){i.field&&(this.field.name&&this.setAttribute("name",this.field.name),this.uiEvents.listeners.forEach(r=>r()),this.uiEvents.events.forEach(r=>{(this.props?.[r]||["focus","blur","change"].indexOf(r)!==-1)&&this.uiEvents.listeners.push(this.renderer.listen(this.elementRef.nativeElement,r,o=>this.uiEvents.callback(r,o)))}),this.props?.attributes&&Wi(this.field,["props","attributes"],({currentValue:r,previousValue:o})=>{o&&Object.keys(o).forEach(a=>this.removeAttribute(a)),r&&Object.keys(r).forEach(a=>{r[a]!=null&&this.setAttribute(a,r[a])})}),this.detachElementRef(i.field.previousValue),this.attachElementRef(i.field.currentValue),this.fieldAttrElements.length===1&&(!this.id&&this.field.id&&this.setAttribute("id",this.field.id),this.focusObserver=Wi(this.field,["focus"],({currentValue:r})=>{this.toggleFocus(r)}))),i.id&&this.setAttribute("id",this.id)}ngDoCheck(){if(!this.uiAttributes){let i=this.elementRef.nativeElement;this.uiAttributes=[..._S,"tabindex","placeholder","readonly","disabled","step"].filter(r=>!i.hasAttribute||!i.hasAttribute(r))}for(let i=0;ii()),this.detachElementRef(this.field),this.focusObserver?.unsubscribe()}toggleFocus(i){let r=this.fieldAttrElements?this.fieldAttrElements[0]:null;if(!r||!r.nativeElement.focus)return;let o=!!this.document.activeElement&&this.fieldAttrElements.some(({nativeElement:a})=>this.document.activeElement===a||a.contains(this.document.activeElement));i&&!o?Promise.resolve().then(()=>r.nativeElement.focus()):!i&&o&&Promise.resolve().then(()=>r.nativeElement.blur())}onFocus(i){this.focusObserver?.setValue(!0),this.props.focus?.(this.field,i)}onBlur(i){this.focusObserver?.setValue(!1),this.props.blur?.(this.field,i)}onHostChange(i){i instanceof Event||this.onChange(i)}onChange(i){this.props.change?.(this.field,i),this.field.formControl?.markAsDirty()}attachElementRef(i){i&&(i._elementRefs?.indexOf(this.elementRef)===-1?i._elementRefs.push(this.elementRef):nr(i,"_elementRefs",[this.elementRef]))}detachElementRef(i){let r=i?._elementRefs?this.fieldAttrElements.indexOf(this.elementRef):-1;r!==-1&&i._elementRefs.splice(r,1)}setAttribute(i,r){this.renderer.setAttribute(this.elementRef.nativeElement,i,r)}removeAttribute(i){this.renderer.removeAttribute(this.elementRef.nativeElement,i)}};n.\u0275fac=function(r){return new(r||n)(_e(je),_e(q),_e(ge))},n.\u0275dir=F({type:n,selectors:[["","formlyAttributes",""]],hostBindings:function(r,o){r&1&&S("change",function(s){return o.onHostChange(s)})},inputs:{field:[0,"formlyAttributes","field"],id:"id"},features:[Ae]});let t=n;return t})(),ta=(()=>{let n=class n extends ste{};n.\u0275fac=(()=>{let i;return function(o){return(i||(i=fe(n)))(o||n)}})(),n.\u0275dir=F({type:n,selectors:[["","formlyAttributes",""]],hostBindings:function(r,o){r&1&&S("change",function(s){return o.onHostChange(s)})},standalone:!1,features:[le]});let t=n;return t})(),lte=(()=>{let n=class n{constructor(i){this.config=i}ngOnChanges(){let i=_S.map(r=>`templateOptions.${r}`);this.errorMessage$=Je(this.field.formControl.statusChanges,this.field.options?this.field.options.fieldChanges.pipe(ce(({field:r,type:o,property:a})=>r===this.field&&o==="expressionChanges"&&(a.indexOf("validation")!==-1||i.indexOf(a)!==-1))):Q(null)).pipe(He(null),$e(()=>ji(this.errorMessage)?this.errorMessage:Q(this.errorMessage)))}get errorMessage(){let i=this.field.formControl;for(let r in i.errors)if(i.errors.hasOwnProperty(r)){let o=this.config.getValidatorMessage(r);if(La(i.errors[r])){if(i.errors[r].errorPath)return;i.errors[r].message&&(o=i.errors[r].message)}return this.field.validation?.messages?.[r]&&(o=this.field.validation.messages[r]),this.field.validators?.[r]?.message&&(o=this.field.validators[r].message),this.field.asyncValidators?.[r]?.message&&(o=this.field.asyncValidators[r].message),typeof o=="function"?o(i.errors[r],this.field):o}}};n.\u0275fac=function(r){return new(r||n)(_e(bS))},n.\u0275cmp=E({type:n,selectors:[["formly-validation-message"]],inputs:{field:"field"},features:[Ae],decls:2,vars:3,template:function(r,o){r&1&&(_(0),me(1,"async")),r&2&&H(Oe(1,1,o.errorMessage$))},dependencies:[rn],encapsulation:2,changeDetection:0});let t=n;return t})(),f3=(()=>{let n=class n extends lte{};n.\u0275fac=(()=>{let i;return function(o){return(i||(i=fe(n)))(o||n)}})(),n.\u0275cmp=E({type:n,selectors:[["formly-validation-message"]],standalone:!1,features:[le],decls:2,vars:3,template:function(r,o){r&1&&(_(0),me(1,"async")),r&2&&H(Oe(1,1,o.errorMessage$))},dependencies:[rn],encapsulation:2,changeDetection:0});let t=n;return t})();var Cg=(()=>{let n=class n extends xg{set _formlyControls(i){}set _staticContent(i){this.fieldComponent=i}};n.\u0275fac=(()=>{let i;return function(o){return(i||(i=fe(n)))(o||n)}})(),n.\u0275dir=F({type:n,viewQuery:function(r,o){if(r&1&&(ie(c3,5,nt),ie(c3,7,nt)),r&2){let a;B(a=j())&&(o.fieldComponent=a.first),B(a=j())&&(o._staticContent=a.first)}},standalone:!1,features:[le]});let t=n;return t})();var wg=t=>({field:t}),_3=t=>({content:t});function cte(t,n){t&1&&(h(0,"span",9),_(1,"*"),p())}function dte(t,n){if(t&1&&(h(0,"mat-label"),_(1),N(2,cte,2,0,"span",9),p()),t&2){let e=C();g(),ve(" ",e.props.label," "),g(),L(e.props.required&&e.props.hideRequiredMarker!==!0?2:-1)}}function ute(t,n){if(t&1&&Ge(0,3),t&2){let e=C();y("ngTemplateOutlet",e.props.textPrefix)("ngTemplateOutletContext",Pt(2,wg,e.field))}}function mte(t,n){if(t&1&&Ge(0,4),t&2){let e=C();y("ngTemplateOutlet",e.props.prefix)("ngTemplateOutletContext",Pt(2,wg,e.field))}}function hte(t,n){if(t&1&&Ge(0,5),t&2){let e=C();y("ngTemplateOutlet",e.props.textSuffix)("ngTemplateOutletContext",Pt(2,wg,e.field))}}function pte(t,n){if(t&1&&Ge(0,6),t&2){let e=C();y("ngTemplateOutlet",e.props.suffix)("ngTemplateOutletContext",Pt(2,wg,e.field))}}function fte(t,n){if(t&1&&(h(0,"mat-hint"),Ge(1,10),p()),t&2){C();let e=Se(13);g(),y("ngTemplateOutlet",e)("ngTemplateOutletContext",Pt(2,_3,n))}}function gte(t,n){if(t&1&&(h(0,"mat-hint",8),Ge(1,10),p()),t&2){C();let e=Se(13);g(),y("ngTemplateOutlet",e)("ngTemplateOutletContext",Pt(2,_3,n))}}function _te(t,n){if(t&1&&(jt(0),_(1),Lt()),t&2){let e=C().content;g(),H(e)}}function bte(t,n){if(t&1&&Ge(0,10),t&2){let e=C().content,i=C();y("ngTemplateOutlet",e)("ngTemplateOutletContext",Pt(2,wg,i.field))}}function vte(t,n){if(t&1&&N(0,_te,2,1,"ng-container")(1,bte,1,4,"ng-container",10),t&2){let e=n.content;L(e.createEmbeddedView?1:0)}}var yte=["matPrefix"],xte=["matTextPrefix"],Cte=["matSuffix"],wte=["matTextSuffix"],Dte=(()=>{let n=class n extends Cg{constructor(i,r,o){super(),this.renderer=i,this.elementRef=r,this.focusMonitor=o}ngOnInit(){nr(this.field,"_formField",this.formField),this.focusMonitor.monitor(this.elementRef,!0).subscribe(i=>{!i&&this.field.focus&&(this.field.focus=!1)})}ngAfterViewInit(){if(this.formField.appearance!=="outline"&&this.props.hideFieldUnderline===!0){let i=this.formField._elementRef.nativeElement.querySelector(".mat-form-field-underline");i&&this.renderer.removeChild(i.parentNode,i)}}ngOnDestroy(){delete this.field._formField,this.focusMonitor.stopMonitoring(this.elementRef)}};n.\u0275fac=function(r){return new(r||n)(_e(je),_e(q),_e(Yt))},n.\u0275cmp=E({type:n,selectors:[["formly-wrapper-mat-form-field"]],viewQuery:function(r,o){if(r&1&&ie(Oi,7),r&2){let a;B(a=j())&&(o.formField=a.first)}},standalone:!1,features:[le],decls:14,vars:13,consts:[["fieldComponent",""],["stringOrTemplate",""],[3,"hideRequiredMarker","floatLabel","appearance","subscriptSizing","color"],["matTextPrefix","",3,"ngTemplateOutlet","ngTemplateOutletContext"],["matPrefix","",3,"ngTemplateOutlet","ngTemplateOutletContext"],["matTextSuffix","",3,"ngTemplateOutlet","ngTemplateOutletContext"],["matSuffix","",3,"ngTemplateOutlet","ngTemplateOutletContext"],[3,"field"],["align","end"],["aria-hidden","true",1,"mat-form-field-required-marker","mat-mdc-form-field-required-marker"],[3,"ngTemplateOutlet","ngTemplateOutletContext"]],template:function(r,o){if(r&1&&(h(0,"mat-form-field",2),Ge(1,null,0),N(3,dte,3,2,"mat-label"),N(4,ute,1,4,"ng-container",3),N(5,mte,1,4,"ng-container",4),N(6,hte,1,4,"ng-container",5),N(7,pte,1,4,"ng-container",6),h(8,"mat-error"),k(9,"formly-validation-message",7),p(),N(10,fte,2,4,"mat-hint"),N(11,gte,2,4,"mat-hint",8),p(),R(12,vte,2,1,"ng-template",null,1,_i)),r&2){let a,s;y("hideRequiredMarker",!0)("floatLabel",o.props.floatLabel)("appearance",o.props.appearance)("subscriptSizing",o.props.subscriptSizing)("color",o.props.color??"primary"),g(3),L(o.props.label&&o.props.hideLabel!==!0?3:-1),g(),L(o.props.textPrefix?4:-1),g(),L(o.props.prefix?5:-1),g(),L(o.props.textSuffix?6:-1),g(),L(o.props.suffix?7:-1),g(2),y("field",o.field),g(),L((a=o.props.description||o.props.hintStart)?10:-1,a),g(),L((s=o.props.hintEnd)?11:-1,s)}},dependencies:[Fn,Oi,sn,eg,xo,nu,ru,f3],styles:[`formly-wrapper-mat-form-field .mat-mdc-form-field,formly-wrapper-mat-form-field .mat-form-field{width:100%} +`],encapsulation:2});let t=n;return t})();function b3(){return{wrappers:[{name:"form-field",component:Dte}]}}var to=(()=>{let n=class n extends xg{constructor(){super(...arguments),this.errorStateMatcher={isErrorState:()=>this.field&&this.showError},this.stateChanges=new z,this._errorState=!1,this._focused=!1}set matPrefix(i){i&&(this.props.prefix=i)}set matTextPrefix(i){i&&(this.props.textPrefix=i)}set matSuffix(i){i&&(this.props.suffix=i)}set matTextSuffix(i){i&&(this.props.textSuffix=i)}set _controls(i){this.attachControl(i.length===1?i.first:this)}ngOnDestroy(){delete this.formField?._control,this.stateChanges.complete()}setDescribedByIds(i){}onContainerClick(i){this.field.focus=!0,this.stateChanges.next()}get errorState(){let i=this.options.showError(this);return i!==this._errorState&&(this._errorState=i,this.stateChanges.next()),i}get controlType(){if(this.props.type)return this.props.type;let i=this.field.type;return i instanceof Td?i.prototype.constructor.name:i}get focused(){let i=!!this.field.focus&&!this.disabled;return i!==this._focused&&(this._focused=i,this.stateChanges.next()),i}get disabled(){return!!this.props.disabled}get required(){return!!this.props.required}get placeholder(){return this.props.placeholder||""}get shouldPlaceholderFloat(){return this.shouldLabelFloat}get value(){return this.formControl?.value}set value(i){this.formControl?.patchValue(i)}get ngControl(){return this.formControl}get empty(){return this.value==null||this.value===""}get shouldLabelFloat(){return this.focused||!this.empty}get formField(){return this.field?._formField}attachControl(i){if(this.formField&&i!==this.formField._control){this.formField._control=i;let r=i?.ngControl;r?.valueAccessor?.hasOwnProperty("_formField")&&(r.valueAccessor._formField=this.formField),r?.valueAccessor?.hasOwnProperty("_parentFormField")&&(r.valueAccessor._parentFormField=this.formField),["prefix","suffix","textPrefix","textSuffix"].forEach(a=>Wi(this.field,["props",a],({currentValue:s})=>s&&Promise.resolve().then(()=>{this.options.detectChanges(this.field)})));let o=i.setDescribedByIds.bind(i);i.setDescribedByIds=a=>{setTimeout(()=>o(a))}}}};n.\u0275fac=(()=>{let i;return function(o){return(i||(i=fe(n)))(o||n)}})(),n.\u0275dir=F({type:n,viewQuery:function(r,o){if(r&1&&(ie(yte,5),ie(xte,5),ie(Cte,5),ie(wte,5),ie(Ra,5)),r&2){let a;B(a=j())&&(o.matPrefix=a.first),B(a=j())&&(o.matTextPrefix=a.first),B(a=j())&&(o.matSuffix=a.first),B(a=j())&&(o.matTextSuffix=a.first),B(a=j())&&(o._controls=a)}},standalone:!1,features:[le]});let t=n;return t})();var v3=(()=>{class t{static \u0275fac=function(i){return new(i||t)};static \u0275cmp=E({type:t,selectors:[["ng-component"]],hostAttrs:["cdk-text-field-style-loader",""],decls:0,vars:0,template:function(i,r){},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 t})(),Ete={passive:!0},y3=(()=>{class t{_platform=u(qe);_ngZone=u(ae);_renderer=u(cn).createRenderer(null,null);_styleLoader=u(ut);_monitoredElements=new Map;constructor(){}monitor(e){if(!this._platform.isBrowser)return Fi;this._styleLoader.load(v3);let i=Pr(e),r=this._monitoredElements.get(i);if(r)return r.subject;let o=new z,a="cdk-text-field-autofilled",s=c=>{c.animationName==="cdk-text-field-autofill-start"&&!i.classList.contains(a)?(i.classList.add(a),this._ngZone.run(()=>o.next({target:c.target,isAutofilled:!0}))):c.animationName==="cdk-text-field-autofill-end"&&i.classList.contains(a)&&(i.classList.remove(a),this._ngZone.run(()=>o.next({target:c.target,isAutofilled:!1})))},l=this._ngZone.runOutsideAngular(()=>(i.classList.add("cdk-text-field-autofill-monitored"),this._renderer.listen(i,"animationstart",s,Ete)));return this._monitoredElements.set(i,{subject:o,unlisten:l}),o}stopMonitoring(e){let i=Pr(e),r=this._monitoredElements.get(i);r&&(r.unlisten(),r.subject.complete(),i.classList.remove("cdk-text-field-autofill-monitored"),i.classList.remove("cdk-text-field-autofilled"),this._monitoredElements.delete(i))}ngOnDestroy(){this._monitoredElements.forEach((e,i)=>this.stopMonitoring(i))}static \u0275fac=function(i){return new(i||t)};static \u0275prov=O({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();var x3=(()=>{class t{_elementRef=u(q);_platform=u(qe);_ngZone=u(ae);_renderer=u(je);_resizeEvents=new z;_previousValue;_initialHeight;_destroyed=new z;_listenerCleanups;_minRows;_maxRows;_enabled=!0;_previousMinRows=-1;_textareaElement;get minRows(){return this._minRows}set minRows(e){this._minRows=Ln(e),this._setMinHeight()}get maxRows(){return this._maxRows}set maxRows(e){this._maxRows=Ln(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=u(ge);_hasFocus;_isViewInited=!1;constructor(){u(ut).load(v3),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(Pl(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),i=e.style;e.rows=1,i.position="absolute",i.visibility="hidden",i.border="none",i.padding="0",i.height="",i.minHeight="",i.maxHeight="",i.top=i.bottom=i.left=i.right="auto",i.overflow="hidden",this._textareaElement.parentNode.appendChild(e),this._cachedLineHeight=e.clientHeight,e.remove(),this._setMinHeight(),this._setMaxHeight()}_measureScrollHeight(){let e=this._textareaElement,i=e.style.marginBottom||"",r=this._platform.FIREFOX,o=r&&this._hasFocus,a=r?"cdk-textarea-autosize-measuring-firefox":"cdk-textarea-autosize-measuring";o&&(e.style.marginBottom=`${e.clientHeight}px`),e.classList.add(a);let s=e.scrollHeight-4;return e.classList.remove(a),o&&(e.style.marginBottom=i),s}_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 i=this._elementRef.nativeElement,r=i.value;if(!e&&this._minRows===this._previousMinRows&&r===this._previousValue)return;let o=this._measureScrollHeight(),a=Math.max(o,this._cachedPlaceholderHeight||0);i.style.height=`${a}px`,this._ngZone.runOutsideAngular(()=>{typeof requestAnimationFrame<"u"?requestAnimationFrame(()=>this._scrollToCaretPosition(i)):setTimeout(()=>this._scrollToCaretPosition(i))}),this._previousValue=r,this._previousMinRows=this._minRows}reset(){this._initialHeight!==void 0&&(this._textareaElement.style.height=this._initialHeight)}_noopInputHandler(){}_scrollToCaretPosition(e){let{selectionStart:i,selectionEnd:r}=e;!this._destroyed.isStopped&&this._hasFocus&&e.setSelectionRange(i,r)}static \u0275fac=function(i){return new(i||t)};static \u0275dir=F({type:t,selectors:[["textarea","cdkTextareaAutosize",""]],hostAttrs:["rows","1",1,"cdk-textarea-autosize"],hostBindings:function(i,r){i&1&&S("input",function(){return r._noopInputHandler()})},inputs:{minRows:[0,"cdkAutosizeMinRows","minRows"],maxRows:[0,"cdkAutosizeMaxRows","maxRows"],enabled:[2,"cdkTextareaAutosize","enabled",V],placeholder:"placeholder"},exportAs:["cdkTextareaAutosize"]})}return t})(),C3=(()=>{class t{static \u0275fac=function(i){return new(i||t)};static \u0275mod=ee({type:t});static \u0275inj=J({})}return t})();var wh=new T("MAT_INPUT_VALUE_ACCESSOR");var kte=["button","checkbox","file","hidden","image","radio","range","reset","submit"],Ste=new T("MAT_INPUT_CONFIG"),hn=(()=>{class t{_elementRef=u(q);_platform=u(qe);ngControl=u(Hn,{optional:!0,self:!0});_autofillMonitor=u(y3);_ngZone=u(ae);_formField=u(Xo,{optional:!0});_renderer=u(je);_uid=u(Ze).getId("mat-input-");_previousNativeValue;_inputValueAccessor;_signalBasedValueAccessor;_previousPlaceholder;_errorStateTracker;_config=u(Ste,{optional:!0});_cleanupIosKeyup;_cleanupWebkitWheel;_isServer;_isNativeSelect;_isTextarea;_isInFormField;focused=!1;stateChanges=new z;controlType="mat-input";autofilled=!1;get disabled(){return this._disabled}set disabled(e){this._disabled=Ai(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(Le.required)??!1}set required(e){this._required=Ai(e)}_required;get type(){return this._type}set type(e){this._type=e||"text",this._validateType(),!this._isTextarea&&Ek().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=Ai(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=>Ek().has(e));constructor(){let e=u(pc,{optional:!0}),i=u(Ki,{optional:!0}),r=u(dl),o=u(wh,{optional:!0,self:!0}),a=this._elementRef.nativeElement,s=a.nodeName.toLowerCase();o?is(o.value)?this._signalBasedValueAccessor=o:this._inputValueAccessor=o:this._inputValueAccessor=a,this._previousNativeValue=this.value,this.id=this.id,this._platform.IOS&&this._ngZone.runOutsideAngular(()=>{this._cleanupIosKeyup=this._renderer.listen(a,"keyup",this._iOSKeyupListener)}),this._errorStateTracker=new cl(r,this.ngControl,i,e,this.stateChanges),this._isServer=!this._platform.isBrowser,this._isNativeSelect=s==="select",this._isTextarea=s==="textarea",this._isInFormField=!!this._formField,this.disabledInteractive=this._config?.disabledInteractive||!1,this._isNativeSelect&&(this.controlType=a.multiple?"mat-native-select-multiple":"mat-native-select"),this._signalBasedValueAccessor&&Ar(()=>{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 i=this._elementRef.nativeElement;i.type==="number"?(i.type="text",i.setSelectionRange(0,0),i.type="number"):i.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 i=this._elementRef.nativeElement;this._previousPlaceholder=e,e?i.setAttribute("placeholder",e):i.removeAttribute("placeholder")}}_getPlaceholder(){return this.placeholder||null}_validateType(){kte.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,i=e.options[0];return this.focused||e.multiple||!this.empty||!!(e.selectedIndex>-1&&i&&i.label)}else return this.focused&&!this.disabled||!this.empty}get describedByIds(){return this._elementRef.nativeElement.getAttribute("aria-describedby")?.split(" ")||[]}setDescribedByIds(e){let i=this._elementRef.nativeElement;e.length?i.setAttribute("aria-describedby",e.join(" ")):i.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 i=e.target;!i.value&&i.selectionStart===0&&i.selectionEnd===0&&(i.setSelectionRange(1,1),i.setSelectionRange(0,0))};_getReadonlyAttribute(){return this._isNativeSelect?null:this.readonly||this.disabled&&this.disabledInteractive?"true":null}static \u0275fac=function(i){return new(i||t)};static \u0275dir=F({type:t,selectors:[["input","matInput",""],["textarea","matInput",""],["select","matNativeControl",""],["input","matNativeControl",""],["textarea","matNativeControl",""]],hostAttrs:[1,"mat-mdc-input-element"],hostVars:21,hostBindings:function(i,r){i&1&&S("focus",function(){return r._focusChanged(!0)})("blur",function(){return r._focusChanged(!1)})("input",function(){return r._onInput()}),i&2&&(si("id",r.id)("disabled",r.disabled&&!r.disabledInteractive)("required",r.required),X("name",r.name||null)("readonly",r._getReadonlyAttribute())("aria-disabled",r.disabled&&r.disabledInteractive?"true":null)("aria-invalid",r.empty&&r.required?null:r.errorState)("aria-required",r.required)("id",r.id),G("mat-input-server",r._isServer)("mat-mdc-form-field-textarea-control",r._isInFormField&&r._isTextarea)("mat-mdc-form-field-input-control",r._isInFormField)("mat-mdc-input-disabled-interactive",r.disabledInteractive)("mdc-text-field__input",r._isInFormField)("mat-mdc-native-select-inline",r._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",V]},exportAs:["matInput"],features:[Ce([{provide:Ra,useExisting:t}]),Ae]})}return t})(),rr=(()=>{class t{static \u0275fac=function(i){return new(i||t)};static \u0275mod=ee({type:t});static \u0275inj=J({imports:[we,$i,$i,C3,we]})}return t})();function Tte(t,n){if(t&1&&k(0,"input",0),t&2){let e=C();y("id",e.id)("name",e.field.name)("type",e.type||"text")("readonly",e.props.readonly)("required",e.required)("errorStateMatcher",e.errorStateMatcher)("formControl",e.formControl)("formlyAttributes",e.field)("tabIndex",e.props.tabindex)("placeholder",e.props.placeholder)}}function Ite(t,n){if(t&1&&k(0,"input",1),t&2){let e=C();y("id",e.id)("name",e.field.name)("readonly",e.props.readonly)("required",e.required)("errorStateMatcher",e.errorStateMatcher)("formControl",e.formControl)("formlyAttributes",e.field)("tabIndex",e.props.tabindex)("placeholder",e.props.placeholder)}}var Ate=(()=>{let n=class n extends to{get type(){return this.props.type||"text"}};n.\u0275fac=(()=>{let i;return function(o){return(i||(i=fe(n)))(o||n)}})(),n.\u0275cmp=E({type:n,selectors:[["formly-field-mat-input"]],standalone:!1,features:[le],decls:2,vars:1,consts:[["matInput","",3,"id","name","type","readonly","required","errorStateMatcher","formControl","formlyAttributes","tabIndex","placeholder"],["matInput","","type","number",3,"id","name","readonly","required","errorStateMatcher","formControl","formlyAttributes","tabIndex","placeholder"]],template:function(r,o){r&1&&N(0,Tte,1,10,"input",0)(1,Ite,1,9,"input",1),r&2&&L(o.type!=="number"?0:1)},dependencies:[Qi,cu,ei,Do,wo,hn,ta],encapsulation:2,changeDetection:0});let t=n;return t})();function w3(){return{types:[{name:"input",component:Ate,wrappers:["form-field"]},{name:"string",extends:"input"},{name:"number",extends:"input",defaultOptions:{props:{type:"number"}}},{name:"integer",extends:"input",defaultOptions:{props:{type:"number"}}}]}}var Ote=(()=>{let n=class n extends to{constructor(){super(...arguments),this.defaultOptions={props:{cols:1,rows:1}}}};n.\u0275fac=(()=>{let i;return function(o){return(i||(i=fe(n)))(o||n)}})(),n.\u0275cmp=E({type:n,selectors:[["formly-field-mat-textarea"]],standalone:!1,features:[Ce([{provide:wh,useExisting:n}]),le],decls:1,vars:16,consts:[["matInput","",3,"id","name","readonly","required","formControl","errorStateMatcher","cols","rows","formlyAttributes","placeholder","tabindex","cdkTextareaAutosize","cdkAutosizeMinRows","cdkAutosizeMaxRows"]],template:function(r,o){r&1&&k(0,"textarea",0),r&2&&(G("cdk-textarea-autosize",o.props.autosize),y("id",o.id)("name",o.field.name)("readonly",o.props.readonly)("required",o.required)("formControl",o.formControl)("errorStateMatcher",o.errorStateMatcher)("cols",o.props.cols)("rows",o.props.rows)("formlyAttributes",o.field)("placeholder",o.props.placeholder)("tabindex",o.props.tabindex)("cdkTextareaAutosize",o.props.autosize)("cdkAutosizeMinRows",o.props.autosizeMinRows)("cdkAutosizeMaxRows",o.props.autosizeMaxRows))},dependencies:[Qi,ei,Do,wo,hn,x3,ta],encapsulation:2,changeDetection:0});let t=n;return t})();function D3(){return{types:[{name:"textarea",component:Ote,wrappers:["form-field"]}]}}var Rte=["input"],Pte=["formField"],Fte=["*"],vx=class{source;value;constructor(n,e){this.source=n,this.value=e}},Nte={provide:tr,useExisting:Kt(()=>Dg),multi:!0},E3=new T("MatRadioGroup"),Lte=new T("mat-radio-default-options",{providedIn:"root",factory:Vte});function Vte(){return{color:"accent",disabledInteractive:!1}}var Dg=(()=>{class t{_changeDetector=u(ye);_value=null;_name=u(Ze).getId("mat-radio-group-");_selected=null;_isInitialized=!1;_labelPosition="after";_disabled=!1;_required=!1;_buttonChanges;_controlValueAccessorChangeFn=()=>{};onTouched=()=>{};change=new U;_radios;color;get name(){return this._name}set name(e){this._name=e,this._updateRadioButtonNames()}get labelPosition(){return this._labelPosition}set labelPosition(e){this._labelPosition=e==="before"?"before":"after",this._markRadiosForCheck()}get value(){return this._value}set value(e){this._value!==e&&(this._value=e,this._updateSelectedRadioFromValue(),this._checkSelectedRadioButton())}_checkSelectedRadioButton(){this._selected&&!this._selected.checked&&(this._selected.checked=!0)}get selected(){return this._selected}set selected(e){this._selected=e,this.value=e?e.value:null,this._checkSelectedRadioButton()}get disabled(){return this._disabled}set disabled(e){this._disabled=e,this._markRadiosForCheck()}get required(){return this._required}set required(e){this._required=e,this._markRadiosForCheck()}get disabledInteractive(){return this._disabledInteractive}set disabledInteractive(e){this._disabledInteractive=e,this._markRadiosForCheck()}_disabledInteractive=!1;constructor(){}ngAfterContentInit(){this._isInitialized=!0,this._buttonChanges=this._radios.changes.subscribe(()=>{this.selected&&!this._radios.find(e=>e===this.selected)&&(this._selected=null)})}ngOnDestroy(){this._buttonChanges?.unsubscribe()}_touch(){this.onTouched&&this.onTouched()}_updateRadioButtonNames(){this._radios&&this._radios.forEach(e=>{e.name=this.name,e._markForCheck()})}_updateSelectedRadioFromValue(){let e=this._selected!==null&&this._selected.value===this._value;this._radios&&!e&&(this._selected=null,this._radios.forEach(i=>{i.checked=this.value===i.value,i.checked&&(this._selected=i)}))}_emitChangeEvent(){this._isInitialized&&this.change.emit(new vx(this._selected,this._value))}_markRadiosForCheck(){this._radios&&this._radios.forEach(e=>e._markForCheck())}writeValue(e){this.value=e,this._changeDetector.markForCheck()}registerOnChange(e){this._controlValueAccessorChangeFn=e}registerOnTouched(e){this.onTouched=e}setDisabledState(e){this.disabled=e,this._changeDetector.markForCheck()}static \u0275fac=function(i){return new(i||t)};static \u0275dir=F({type:t,selectors:[["mat-radio-group"]],contentQueries:function(i,r,o){if(i&1&&xe(o,vS,5),i&2){let a;B(a=j())&&(r._radios=a)}},hostAttrs:["role","radiogroup",1,"mat-mdc-radio-group"],inputs:{color:"color",name:"name",labelPosition:"labelPosition",value:"value",selected:"selected",disabled:[2,"disabled","disabled",V],required:[2,"required","required",V],disabledInteractive:[2,"disabledInteractive","disabledInteractive",V]},outputs:{change:"change"},exportAs:["matRadioGroup"],features:[Ce([Nte,{provide:E3,useExisting:t}])]})}return t})(),vS=(()=>{class t{_elementRef=u(q);_changeDetector=u(ye);_focusMonitor=u(Yt);_radioDispatcher=u(au);_defaultOptions=u(Lte,{optional:!0});_ngZone=u(ae);_renderer=u(je);_uniqueId=u(Ze).getId("mat-radio-");_cleanupClick;id=this._uniqueId;name;ariaLabel;ariaLabelledby;ariaDescribedby;disableRipple=!1;tabIndex=0;get checked(){return this._checked}set checked(e){this._checked!==e&&(this._checked=e,e&&this.radioGroup&&this.radioGroup.value!==this.value?this.radioGroup.selected=this:!e&&this.radioGroup&&this.radioGroup.value===this.value&&(this.radioGroup.selected=null),e&&this._radioDispatcher.notify(this.id,this.name),this._changeDetector.markForCheck())}get value(){return this._value}set value(e){this._value!==e&&(this._value=e,this.radioGroup!==null&&(this.checked||(this.checked=this.radioGroup.value===e),this.checked&&(this.radioGroup.selected=this)))}get labelPosition(){return this._labelPosition||this.radioGroup&&this.radioGroup.labelPosition||"after"}set labelPosition(e){this._labelPosition=e}_labelPosition;get disabled(){return this._disabled||this.radioGroup!==null&&this.radioGroup.disabled}set disabled(e){this._setDisabled(e)}get required(){return this._required||this.radioGroup&&this.radioGroup.required}set required(e){e!==this._required&&this._changeDetector.markForCheck(),this._required=e}get color(){return this._color||this.radioGroup&&this.radioGroup.color||this._defaultOptions&&this._defaultOptions.color||"accent"}set color(e){this._color=e}_color;get disabledInteractive(){return this._disabledInteractive||this.radioGroup!==null&&this.radioGroup.disabledInteractive}set disabledInteractive(e){this._disabledInteractive=e}_disabledInteractive;change=new U;radioGroup;get inputId(){return`${this.id||this._uniqueId}-input`}_checked=!1;_disabled;_required;_value=null;_removeUniqueSelectionListener=()=>{};_previousTabIndex;_inputElement;_rippleTrigger;_noopAnimations=Ye();_injector=u(de);constructor(){u(ut).load(Di);let e=u(E3,{optional:!0}),i=u(new Ii("tabindex"),{optional:!0});this.radioGroup=e,this._disabledInteractive=this._defaultOptions?.disabledInteractive??!1,i&&(this.tabIndex=ct(i,0))}focus(e,i){i?this._focusMonitor.focusVia(this._inputElement,i,e):this._inputElement.nativeElement.focus(e)}_markForCheck(){this._changeDetector.markForCheck()}ngOnInit(){this.radioGroup&&(this.checked=this.radioGroup.value===this._value,this.checked&&(this.radioGroup.selected=this),this.name=this.radioGroup.name),this._removeUniqueSelectionListener=this._radioDispatcher.listen((e,i)=>{e!==this.id&&i===this.name&&(this.checked=!1)})}ngDoCheck(){this._updateTabIndex()}ngAfterViewInit(){this._updateTabIndex(),this._focusMonitor.monitor(this._elementRef,!0).subscribe(e=>{!e&&this.radioGroup&&this.radioGroup._touch()}),this._ngZone.runOutsideAngular(()=>{this._cleanupClick=this._renderer.listen(this._inputElement.nativeElement,"click",this._onInputClick)})}ngOnDestroy(){this._cleanupClick?.(),this._focusMonitor.stopMonitoring(this._elementRef),this._removeUniqueSelectionListener()}_emitChangeEvent(){this.change.emit(new vx(this,this._value))}_isRippleDisabled(){return this.disableRipple||this.disabled}_onInputInteraction(e){if(e.stopPropagation(),!this.checked&&!this.disabled){let i=this.radioGroup&&this.value!==this.radioGroup.value;this.checked=!0,this._emitChangeEvent(),this.radioGroup&&(this.radioGroup._controlValueAccessorChangeFn(this.value),i&&this.radioGroup._emitChangeEvent())}}_onTouchTargetClick(e){this._onInputInteraction(e),(!this.disabled||this.disabledInteractive)&&this._inputElement?.nativeElement.focus()}_setDisabled(e){this._disabled!==e&&(this._disabled=e,this._changeDetector.markForCheck())}_onInputClick=e=>{this.disabled&&this.disabledInteractive&&e.preventDefault()};_updateTabIndex(){let e=this.radioGroup,i;if(!e||!e.selected||this.disabled?i=this.tabIndex:i=e.selected===this?this.tabIndex:-1,i!==this._previousTabIndex){let r=this._inputElement?.nativeElement;r&&(r.setAttribute("tabindex",i+""),this._previousTabIndex=i,pt(()=>{queueMicrotask(()=>{e&&e.selected&&e.selected!==this&&document.activeElement===r&&(e.selected?._inputElement.nativeElement.focus(),document.activeElement===r&&this._inputElement.nativeElement.blur())})},{injector:this._injector}))}}static \u0275fac=function(i){return new(i||t)};static \u0275cmp=E({type:t,selectors:[["mat-radio-button"]],viewQuery:function(i,r){if(i&1&&(ie(Rte,5),ie(Pte,7,q)),i&2){let o;B(o=j())&&(r._inputElement=o.first),B(o=j())&&(r._rippleTrigger=o.first)}},hostAttrs:[1,"mat-mdc-radio-button"],hostVars:19,hostBindings:function(i,r){i&1&&S("focus",function(){return r._inputElement.nativeElement.focus()}),i&2&&(X("id",r.id)("tabindex",null)("aria-label",null)("aria-labelledby",null)("aria-describedby",null),G("mat-primary",r.color==="primary")("mat-accent",r.color==="accent")("mat-warn",r.color==="warn")("mat-mdc-radio-checked",r.checked)("mat-mdc-radio-disabled",r.disabled)("mat-mdc-radio-disabled-interactive",r.disabledInteractive)("_mat-animation-noopable",r._noopAnimations))},inputs:{id:"id",name:"name",ariaLabel:[0,"aria-label","ariaLabel"],ariaLabelledby:[0,"aria-labelledby","ariaLabelledby"],ariaDescribedby:[0,"aria-describedby","ariaDescribedby"],disableRipple:[2,"disableRipple","disableRipple",V],tabIndex:[2,"tabIndex","tabIndex",e=>e==null?0:ct(e)],checked:[2,"checked","checked",V],value:"value",labelPosition:"labelPosition",disabled:[2,"disabled","disabled",V],required:[2,"required","required",V],color:"color",disabledInteractive:[2,"disabledInteractive","disabledInteractive",V]},outputs:{change:"change"},exportAs:["matRadioButton"],ngContentSelectors:Fte,decls:13,vars:17,consts:[["formField",""],["input",""],["mat-internal-form-field","",3,"labelPosition"],[1,"mdc-radio"],[1,"mat-mdc-radio-touch-target",3,"click"],["type","radio","aria-invalid","false",1,"mdc-radio__native-control",3,"change","id","checked","disabled","required"],[1,"mdc-radio__background"],[1,"mdc-radio__outer-circle"],[1,"mdc-radio__inner-circle"],["mat-ripple","",1,"mat-radio-ripple","mat-focus-indicator",3,"matRippleTrigger","matRippleDisabled","matRippleCentered"],[1,"mat-ripple-element","mat-radio-persistent-ripple"],[1,"mdc-label",3,"for"]],template:function(i,r){if(i&1){let o=Y();Me(),h(0,"div",2,0)(2,"div",3)(3,"div",4),S("click",function(s){return I(o),A(r._onTouchTargetClick(s))}),p(),h(4,"input",5,1),S("change",function(s){return I(o),A(r._onInputInteraction(s))}),p(),h(6,"div",6),k(7,"div",7)(8,"div",8),p(),h(9,"div",9),k(10,"div",10),p()(),h(11,"label",11),oe(12),p()()}i&2&&(y("labelPosition",r.labelPosition),g(2),G("mdc-radio--disabled",r.disabled),g(2),y("id",r.inputId)("checked",r.checked)("disabled",r.disabled&&!r.disabledInteractive)("required",r.required),X("name",r.name)("value",r.value)("aria-label",r.ariaLabel)("aria-labelledby",r.ariaLabelledby)("aria-describedby",r.ariaDescribedby)("aria-disabled",r.disabled&&r.disabledInteractive?"true":null),g(5),y("matRippleTrigger",r._rippleTrigger.nativeElement)("matRippleDisabled",r._isRippleDisabled())("matRippleCentered",!0),g(2),y("for",r.inputId))},dependencies:[Vn,Gm],styles:[`.mat-mdc-radio-button{-webkit-tap-highlight-color:rgba(0,0,0,0)}.mat-mdc-radio-button .mdc-radio{display:inline-block;position:relative;flex:0 0 auto;box-sizing:content-box;width:20px;height:20px;cursor:pointer;will-change:opacity,transform,border-color,color;padding:calc((var(--mat-radio-state-layer-size, 40px) - 20px)/2)}.mat-mdc-radio-button .mdc-radio:hover>.mdc-radio__native-control:not([disabled]):not(:focus)~.mdc-radio__background::before{opacity:.04;transform:scale(1)}.mat-mdc-radio-button .mdc-radio:hover>.mdc-radio__native-control:not([disabled])~.mdc-radio__background>.mdc-radio__outer-circle{border-color:var(--mat-radio-unselected-hover-icon-color, var(--mat-sys-on-surface))}.mat-mdc-radio-button .mdc-radio:hover>.mdc-radio__native-control:enabled:checked+.mdc-radio__background>.mdc-radio__outer-circle{border-color:var(--mat-radio-selected-hover-icon-color, var(--mat-sys-primary))}.mat-mdc-radio-button .mdc-radio:hover>.mdc-radio__native-control:enabled:checked+.mdc-radio__background>.mdc-radio__inner-circle{background-color:var(--mat-radio-selected-hover-icon-color, var(--mat-sys-primary, currentColor))}.mat-mdc-radio-button .mdc-radio:active>.mdc-radio__native-control:enabled:not(:checked)+.mdc-radio__background>.mdc-radio__outer-circle{border-color:var(--mat-radio-unselected-pressed-icon-color, var(--mat-sys-on-surface))}.mat-mdc-radio-button .mdc-radio:active>.mdc-radio__native-control:enabled:checked+.mdc-radio__background>.mdc-radio__outer-circle{border-color:var(--mat-radio-selected-pressed-icon-color, var(--mat-sys-primary))}.mat-mdc-radio-button .mdc-radio:active>.mdc-radio__native-control:enabled:checked+.mdc-radio__background>.mdc-radio__inner-circle{background-color:var(--mat-radio-selected-pressed-icon-color, var(--mat-sys-primary, currentColor))}.mat-mdc-radio-button .mdc-radio__background{display:inline-block;position:relative;box-sizing:border-box;width:20px;height:20px}.mat-mdc-radio-button .mdc-radio__background::before{position:absolute;transform:scale(0, 0);border-radius:50%;opacity:0;pointer-events:none;content:"";transition:opacity 90ms cubic-bezier(0.4, 0, 0.6, 1),transform 90ms cubic-bezier(0.4, 0, 0.6, 1);width:var(--mat-radio-state-layer-size, 40px);height:var(--mat-radio-state-layer-size, 40px);top:calc(-1*(var(--mat-radio-state-layer-size, 40px) - 20px)/2);left:calc(-1*(var(--mat-radio-state-layer-size, 40px) - 20px)/2)}.mat-mdc-radio-button .mdc-radio__outer-circle{position:absolute;top:0;left:0;box-sizing:border-box;width:100%;height:100%;border-width:2px;border-style:solid;border-radius:50%;transition:border-color 90ms cubic-bezier(0.4, 0, 0.6, 1)}.mat-mdc-radio-button .mdc-radio__inner-circle{position:absolute;top:0;left:0;box-sizing:border-box;width:100%;height:100%;transform:scale(0);border-radius:50%;transition:transform 90ms cubic-bezier(0.4, 0, 0.6, 1),background-color 90ms cubic-bezier(0.4, 0, 0.6, 1)}@media(forced-colors: active){.mat-mdc-radio-button .mdc-radio__inner-circle{background-color:CanvasText !important}}.mat-mdc-radio-button .mdc-radio__native-control{position:absolute;margin:0;padding:0;opacity:0;top:0;right:0;left:0;cursor:inherit;z-index:1;width:var(--mat-radio-state-layer-size, 40px);height:var(--mat-radio-state-layer-size, 40px)}.mat-mdc-radio-button .mdc-radio__native-control:checked+.mdc-radio__background,.mat-mdc-radio-button .mdc-radio__native-control:disabled+.mdc-radio__background{transition:opacity 90ms cubic-bezier(0, 0, 0.2, 1),transform 90ms cubic-bezier(0, 0, 0.2, 1)}.mat-mdc-radio-button .mdc-radio__native-control:checked+.mdc-radio__background>.mdc-radio__outer-circle,.mat-mdc-radio-button .mdc-radio__native-control:disabled+.mdc-radio__background>.mdc-radio__outer-circle{transition:border-color 90ms cubic-bezier(0, 0, 0.2, 1)}.mat-mdc-radio-button .mdc-radio__native-control:checked+.mdc-radio__background>.mdc-radio__inner-circle,.mat-mdc-radio-button .mdc-radio__native-control:disabled+.mdc-radio__background>.mdc-radio__inner-circle{transition:transform 90ms cubic-bezier(0, 0, 0.2, 1),background-color 90ms cubic-bezier(0, 0, 0.2, 1)}.mat-mdc-radio-button .mdc-radio__native-control:focus+.mdc-radio__background::before{transform:scale(1);opacity:.12;transition:opacity 90ms cubic-bezier(0, 0, 0.2, 1),transform 90ms cubic-bezier(0, 0, 0.2, 1)}.mat-mdc-radio-button .mdc-radio__native-control:disabled:not(:checked)+.mdc-radio__background>.mdc-radio__outer-circle{border-color:var(--mat-radio-disabled-unselected-icon-color, var(--mat-sys-on-surface));opacity:var(--mat-radio-disabled-unselected-icon-opacity, 0.38)}.mat-mdc-radio-button .mdc-radio__native-control:disabled+.mdc-radio__background{cursor:default}.mat-mdc-radio-button .mdc-radio__native-control:disabled+.mdc-radio__background>.mdc-radio__outer-circle{border-color:var(--mat-radio-disabled-selected-icon-color, var(--mat-sys-on-surface));opacity:var(--mat-radio-disabled-selected-icon-opacity, 0.38)}.mat-mdc-radio-button .mdc-radio__native-control:disabled+.mdc-radio__background>.mdc-radio__inner-circle{background-color:var(--mat-radio-disabled-selected-icon-color, var(--mat-sys-on-surface, currentColor));opacity:var(--mat-radio-disabled-selected-icon-opacity, 0.38)}.mat-mdc-radio-button .mdc-radio__native-control:enabled:not(:checked)+.mdc-radio__background>.mdc-radio__outer-circle{border-color:var(--mat-radio-unselected-icon-color, var(--mat-sys-on-surface-variant))}.mat-mdc-radio-button .mdc-radio__native-control:enabled:checked+.mdc-radio__background>.mdc-radio__outer-circle{border-color:var(--mat-radio-selected-icon-color, var(--mat-sys-primary))}.mat-mdc-radio-button .mdc-radio__native-control:enabled:checked+.mdc-radio__background>.mdc-radio__inner-circle{background-color:var(--mat-radio-selected-icon-color, var(--mat-sys-primary, currentColor))}.mat-mdc-radio-button .mdc-radio__native-control:enabled:focus:checked+.mdc-radio__background>.mdc-radio__outer-circle{border-color:var(--mat-radio-selected-focus-icon-color, var(--mat-sys-primary))}.mat-mdc-radio-button .mdc-radio__native-control:enabled:focus:checked+.mdc-radio__background>.mdc-radio__inner-circle{background-color:var(--mat-radio-selected-focus-icon-color, var(--mat-sys-primary, currentColor))}.mat-mdc-radio-button .mdc-radio__native-control:checked+.mdc-radio__background>.mdc-radio__inner-circle{transform:scale(0.5);transition:transform 90ms cubic-bezier(0, 0, 0.2, 1),background-color 90ms cubic-bezier(0, 0, 0.2, 1)}.mat-mdc-radio-button.mat-mdc-radio-disabled-interactive .mdc-radio--disabled{pointer-events:auto}.mat-mdc-radio-button.mat-mdc-radio-disabled-interactive .mdc-radio--disabled .mdc-radio__native-control:not(:checked)+.mdc-radio__background>.mdc-radio__outer-circle{border-color:var(--mat-radio-disabled-unselected-icon-color, var(--mat-sys-on-surface));opacity:var(--mat-radio-disabled-unselected-icon-opacity, 0.38)}.mat-mdc-radio-button.mat-mdc-radio-disabled-interactive .mdc-radio--disabled:hover .mdc-radio__native-control:checked+.mdc-radio__background>.mdc-radio__outer-circle,.mat-mdc-radio-button.mat-mdc-radio-disabled-interactive .mdc-radio--disabled .mdc-radio__native-control:checked:focus+.mdc-radio__background>.mdc-radio__outer-circle,.mat-mdc-radio-button.mat-mdc-radio-disabled-interactive .mdc-radio--disabled .mdc-radio__native-control+.mdc-radio__background>.mdc-radio__outer-circle{border-color:var(--mat-radio-disabled-selected-icon-color, var(--mat-sys-on-surface));opacity:var(--mat-radio-disabled-selected-icon-opacity, 0.38)}.mat-mdc-radio-button.mat-mdc-radio-disabled-interactive .mdc-radio--disabled:hover .mdc-radio__native-control:checked+.mdc-radio__background>.mdc-radio__inner-circle,.mat-mdc-radio-button.mat-mdc-radio-disabled-interactive .mdc-radio--disabled .mdc-radio__native-control:checked:focus+.mdc-radio__background>.mdc-radio__inner-circle,.mat-mdc-radio-button.mat-mdc-radio-disabled-interactive .mdc-radio--disabled .mdc-radio__native-control+.mdc-radio__background>.mdc-radio__inner-circle{background-color:var(--mat-radio-disabled-selected-icon-color, var(--mat-sys-on-surface, currentColor));opacity:var(--mat-radio-disabled-selected-icon-opacity, 0.38)}.mat-mdc-radio-button._mat-animation-noopable .mdc-radio__background::before,.mat-mdc-radio-button._mat-animation-noopable .mdc-radio__outer-circle,.mat-mdc-radio-button._mat-animation-noopable .mdc-radio__inner-circle{transition:none !important}.mat-mdc-radio-button label{cursor:pointer}.mat-mdc-radio-button .mdc-radio__background::before{background-color:var(--mat-radio-ripple-color, var(--mat-sys-on-surface))}.mat-mdc-radio-button.mat-mdc-radio-checked .mat-ripple-element,.mat-mdc-radio-button.mat-mdc-radio-checked .mdc-radio__background::before{background-color:var(--mat-radio-checked-ripple-color, var(--mat-sys-primary))}.mat-mdc-radio-button.mat-mdc-radio-disabled-interactive .mdc-radio--disabled .mat-ripple-element,.mat-mdc-radio-button.mat-mdc-radio-disabled-interactive .mdc-radio--disabled .mdc-radio__background::before{background-color:var(--mat-radio-ripple-color, var(--mat-sys-on-surface))}.mat-mdc-radio-button .mat-internal-form-field{color:var(--mat-radio-label-text-color, var(--mat-sys-on-surface));font-family:var(--mat-radio-label-text-font, var(--mat-sys-body-medium-font));line-height:var(--mat-radio-label-text-line-height, var(--mat-sys-body-medium-line-height));font-size:var(--mat-radio-label-text-size, var(--mat-sys-body-medium-size));letter-spacing:var(--mat-radio-label-text-tracking, var(--mat-sys-body-medium-tracking));font-weight:var(--mat-radio-label-text-weight, var(--mat-sys-body-medium-weight))}.mat-mdc-radio-button .mdc-radio--disabled+label{color:var(--mat-radio-disabled-label-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent))}.mat-mdc-radio-button .mat-radio-ripple{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none;border-radius:50%}.mat-mdc-radio-button .mat-radio-ripple>.mat-ripple-element{opacity:.14}.mat-mdc-radio-button .mat-radio-ripple::before{border-radius:50%}.mat-mdc-radio-button .mdc-radio>.mdc-radio__native-control:focus:enabled:not(:checked)~.mdc-radio__background>.mdc-radio__outer-circle{border-color:var(--mat-radio-unselected-focus-icon-color, var(--mat-sys-on-surface))}.mat-mdc-radio-button.cdk-focused .mat-focus-indicator::before{content:""}.mat-mdc-radio-disabled{cursor:default;pointer-events:none}.mat-mdc-radio-disabled.mat-mdc-radio-disabled-interactive{pointer-events:auto}.mat-mdc-radio-touch-target{position:absolute;top:50%;left:50%;height:var(--mat-radio-touch-target-size, 48px);width:var(--mat-radio-touch-target-size, 48px);transform:translate(-50%, -50%);display:var(--mat-radio-touch-target-display, block)}[dir=rtl] .mat-mdc-radio-touch-target{left:auto;right:50%;transform:translate(50%, -50%)} +`],encapsulation:2,changeDetection:0})}return t})();var jte=(()=>{let n=class n{transform(i,r){return i instanceof Fe?this.dispose():i=this.observableOf(i,r),i.pipe(se(o=>this.transformOptions(o,r)))}ngOnDestroy(){this.dispose()}transformOptions(i,r){let o=this.transformSelectProps(r),a=[],s={};return i?.forEach(l=>{let c=this.transformOption(l,o);if(c.group){let d=s[c.label];d===void 0?s[c.label]=a.push(c)-1:c.group.forEach(m=>a[d].group.push(m))}else a.push(c)}),a}transformOption(i,r){let o=r.groupProp(i);return Array.isArray(o)?{label:r.labelProp(i),group:o.map(a=>this.transformOption(a,r))}:(i={label:r.labelProp(i),value:r.valueProp(i),disabled:!!r.disabledProp(i)},o?{label:o,group:[i]}:i)}transformSelectProps(i){let r=i?.props||i?.templateOptions||{},o=a=>typeof a=="function"?a:s=>s[a];return{groupProp:o(r.groupProp||"group"),labelProp:o(r.labelProp||"label"),valueProp:o(r.valueProp||"value"),disabledProp:o(r.disabledProp||"disabled")}}dispose(){this._options&&(this._options.complete(),this._options=null),this._subscription&&(this._subscription.unsubscribe(),this._subscription=null)}observableOf(i,r){return this.dispose(),r&&r.options&&r.options.fieldChanges&&(this._subscription=r.options.fieldChanges.pipe(ce(({property:o,type:a,field:s})=>a==="expressionChanges"&&(o.indexOf("templateOptions.options")===0||o.indexOf("props.options")===0)&&s===r&&Array.isArray(s.props.options)&&!!this._options),Be(()=>this._options.next(r.props.options))).subscribe()),this._options=new tt(i),this._options.asObservable()}};n.\u0275fac=function(r){return new(r||n)},n.\u0275pipe=Wr({name:"formlySelectOptions",type:n,pure:!0});let t=n;return t})(),Eh=(()=>{let n=class n extends jte{};n.\u0275fac=(()=>{let i;return function(o){return(i||(i=fe(n)))(o||n)}})(),n.\u0275pipe=Wr({name:"formlySelectOptions",type:n,pure:!0,standalone:!1});let t=n;return t})();function Hte(t,n){if(t&1&&(h(0,"mat-radio-button",1),_(1),p()),t&2){let e=n.$implicit,i=n.$index,r=C();y("id",r.id+"_"+i)("color",r.props.color)("labelPosition",r.props.labelPosition)("disabled",e.disabled)("value",e.value),g(),ve(" ",e.label," ")}}var zte=(()=>{let n=class n extends to{constructor(){super(...arguments),this.defaultOptions={props:{hideFieldUnderline:!0,floatLabel:"always",tabindex:-1}}}ngAfterViewInit(){this.focusObserver=Wi(this.field,["focus"],({currentValue:i})=>{this.props.tabindex===-1&&i&&this.radioGroup._radios.length>0&&setTimeout(()=>{(this.radioGroup.selected?this.radioGroup.selected:this.radioGroup._radios.first).focus()})})}onContainerClick(){}ngOnDestroy(){super.ngOnDestroy(),this.focusObserver&&this.focusObserver.unsubscribe()}};n.\u0275fac=(()=>{let i;return function(o){return(i||(i=fe(n)))(o||n)}})(),n.\u0275cmp=E({type:n,selectors:[["formly-field-mat-radio"]],viewQuery:function(r,o){if(r&1&&ie(Dg,7),r&2){let a;B(a=j())&&(o.radioGroup=a.first)}},standalone:!1,features:[le],decls:5,vars:9,consts:[[3,"formControl","formlyAttributes","required","tabindex"],[3,"id","color","labelPosition","disabled","value"]],template:function(r,o){r&1&&(h(0,"mat-radio-group",0),xt(1,Hte,2,6,"mat-radio-button",1,Hi),me(3,"formlySelectOptions"),me(4,"async"),p()),r&2&&(y("formControl",o.formControl)("formlyAttributes",o.field)("required",o.required)("tabindex",o.props.tabindex),g(),Ct(Oe(4,7,Ni(3,4,o.props.options,o.field))))},dependencies:[ei,Do,wo,Dg,vS,ta,rn,Eh],encapsulation:2,changeDetection:0});let t=n;return t})();function M3(){return{types:[{name:"radio",component:zte,wrappers:["form-field"]}]}}var Ute=["input"],$te=["label"],Wte=["*"],Gte=new T("mat-checkbox-default-options",{providedIn:"root",factory:S3});function S3(){return{color:"accent",clickAction:"check-indeterminate",disabledInteractive:!1}}var xr=(function(t){return t[t.Init=0]="Init",t[t.Checked=1]="Checked",t[t.Unchecked=2]="Unchecked",t[t.Indeterminate=3]="Indeterminate",t})(xr||{}),xS=class{source;checked},k3=S3(),Va=(()=>{class t{_elementRef=u(q);_changeDetectorRef=u(ye);_ngZone=u(ae);_animationsDisabled=Ye();_options=u(Gte,{optional:!0});focus(){this._inputElement.nativeElement.focus()}_createChangeEvent(e){let i=new xS;return i.source=this,i.checked=e,i}_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;labelPosition="after";name=null;change=new U;indeterminateChange=new U;value;disableRipple;_inputElement;_labelElement;tabIndex;color;disabledInteractive;_onTouched=()=>{};_currentAnimationClass="";_currentCheckState=xr.Init;_controlValueAccessorChangeFn=()=>{};_validatorChangeFn=()=>{};constructor(){u(ut).load(Di);let e=u(new Ii("tabindex"),{optional:!0});this._options=this._options||k3,this.color=this._options.color||k3.color,this.tabIndex=e==null?0:parseInt(e)||0,this.id=this._uniqueId=u(Ze).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 i=e!=this._indeterminate();this._indeterminate.set(e),i&&(e?this._transitionCheckState(xr.Indeterminate):this._transitionCheckState(this.checked?xr.Checked:xr.Unchecked),this.indeterminateChange.emit(e)),this._syncIndeterminate(e)}_indeterminate=he(!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 i=this._currentCheckState,r=this._getAnimationTargetElement();if(!(i===e||!r)&&(this._currentAnimationClass&&r.classList.remove(this._currentAnimationClass),this._currentAnimationClass=this._getAnimationClassForCheckStateTransition(i,e),this._currentCheckState=e,this._currentAnimationClass.length>0)){r.classList.add(this._currentAnimationClass);let o=this._currentAnimationClass;this._ngZone.runOutsideAngular(()=>{setTimeout(()=>{r.classList.remove(o)},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?xr.Checked:xr.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,i){if(this._animationsDisabled)return"";switch(e){case xr.Init:if(i===xr.Checked)return this._animationClasses.uncheckedToChecked;if(i==xr.Indeterminate)return this._checked?this._animationClasses.checkedToIndeterminate:this._animationClasses.uncheckedToIndeterminate;break;case xr.Unchecked:return i===xr.Checked?this._animationClasses.uncheckedToChecked:this._animationClasses.uncheckedToIndeterminate;case xr.Checked:return i===xr.Unchecked?this._animationClasses.checkedToUnchecked:this._animationClasses.checkedToIndeterminate;case xr.Indeterminate:return i===xr.Checked?this._animationClasses.indeterminateToChecked:this._animationClasses.indeterminateToUnchecked}return""}_syncIndeterminate(e){let i=this._inputElement;i&&(i.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(i){return new(i||t)};static \u0275cmp=E({type:t,selectors:[["mat-checkbox"]],viewQuery:function(i,r){if(i&1&&(ie(Ute,5),ie($te,5)),i&2){let o;B(o=j())&&(r._inputElement=o.first),B(o=j())&&(r._labelElement=o.first)}},hostAttrs:[1,"mat-mdc-checkbox"],hostVars:16,hostBindings:function(i,r){i&2&&(si("id",r.id),X("tabindex",null)("aria-label",null)("aria-labelledby",null),it(r.color?"mat-"+r.color:"mat-accent"),G("_mat-animation-noopable",r._animationsDisabled)("mdc-checkbox--disabled",r.disabled)("mat-mdc-checkbox-disabled",r.disabled)("mat-mdc-checkbox-checked",r.checked)("mat-mdc-checkbox-disabled-interactive",r.disabledInteractive))},inputs:{ariaLabel:[0,"aria-label","ariaLabel"],ariaLabelledby:[0,"aria-labelledby","ariaLabelledby"],ariaDescribedby:[0,"aria-describedby","ariaDescribedby"],ariaExpanded:[2,"aria-expanded","ariaExpanded",V],ariaControls:[0,"aria-controls","ariaControls"],ariaOwns:[0,"aria-owns","ariaOwns"],id:"id",required:[2,"required","required",V],labelPosition:"labelPosition",name:"name",value:"value",disableRipple:[2,"disableRipple","disableRipple",V],tabIndex:[2,"tabIndex","tabIndex",e=>e==null?void 0:ct(e)],color:"color",disabledInteractive:[2,"disabledInteractive","disabledInteractive",V],checked:[2,"checked","checked",V],disabled:[2,"disabled","disabled",V],indeterminate:[2,"indeterminate","indeterminate",V]},outputs:{change:"change",indeterminateChange:"indeterminateChange"},exportAs:["matCheckbox"],features:[Ce([{provide:tr,useExisting:Kt(()=>t),multi:!0},{provide:ea,useExisting:t,multi:!0}]),Ae],ngContentSelectors:Wte,decls:15,vars:23,consts:[["checkbox",""],["input",""],["label",""],["mat-internal-form-field","",3,"click","labelPosition"],[1,"mdc-checkbox"],[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"],[1,"mdc-checkbox__ripple"],[1,"mdc-checkbox__background"],["focusable","false","viewBox","0 0 24 24","aria-hidden","true",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","",1,"mat-mdc-checkbox-ripple","mat-focus-indicator",3,"matRippleTrigger","matRippleDisabled","matRippleCentered"],[1,"mdc-label",3,"for"]],template:function(i,r){if(i&1){let o=Y();Me(),h(0,"div",3),S("click",function(s){return I(o),A(r._preventBubblingFromLabel(s))}),h(1,"div",4,0)(3,"div",5),S("click",function(){return I(o),A(r._onTouchTargetClick())}),p(),h(4,"input",6,1),S("blur",function(){return I(o),A(r._onBlur())})("click",function(){return I(o),A(r._onInputClick())})("change",function(s){return I(o),A(r._onInteractionEvent(s))}),p(),k(6,"div",7),h(7,"div",8),Gt(),h(8,"svg",9),k(9,"path",10),p(),jo(),k(10,"div",11),p(),k(11,"div",12),p(),h(12,"label",13,2),oe(14),p()()}if(i&2){let o=Se(2);y("labelPosition",r.labelPosition),g(4),G("mdc-checkbox--selected",r.checked),y("checked",r.checked)("indeterminate",r.indeterminate)("disabled",r.disabled&&!r.disabledInteractive)("id",r.inputId)("required",r.required)("tabIndex",r.disabled&&!r.disabledInteractive?-1:r.tabIndex),X("aria-label",r.ariaLabel||null)("aria-labelledby",r.ariaLabelledby)("aria-describedby",r.ariaDescribedby)("aria-checked",r.indeterminate?"mixed":null)("aria-controls",r.ariaControls)("aria-disabled",r.disabled&&r.disabledInteractive?!0:null)("aria-expanded",r.ariaExpanded)("aria-owns",r.ariaOwns)("name",r.name)("value",r.value),g(7),y("matRippleTrigger",o)("matRippleDisabled",r.disableRipple||r.disabled)("matRippleCentered",!0),g(),y("for",r.inputId)}},dependencies:[Vn,Gm],styles:[`.mdc-checkbox{display:inline-block;position:relative;flex:0 0 18px;box-sizing:content-box;width:18px;height:18px;line-height:0;white-space:nowrap;cursor:pointer;vertical-align:bottom;padding:calc((var(--mat-checkbox-state-layer-size, 40px) - 18px)/2);margin:calc((var(--mat-checkbox-state-layer-size, 40px) - var(--mat-checkbox-state-layer-size, 40px))/2)}.mdc-checkbox:hover>.mdc-checkbox__ripple{opacity:var(--mat-checkbox-unselected-hover-state-layer-opacity, var(--mat-sys-hover-state-layer-opacity));background-color:var(--mat-checkbox-unselected-hover-state-layer-color, var(--mat-sys-on-surface))}.mdc-checkbox:hover>.mat-mdc-checkbox-ripple>.mat-ripple-element{background-color:var(--mat-checkbox-unselected-hover-state-layer-color, var(--mat-sys-on-surface))}.mdc-checkbox .mdc-checkbox__native-control:focus+.mdc-checkbox__ripple{opacity:var(--mat-checkbox-unselected-focus-state-layer-opacity, var(--mat-sys-focus-state-layer-opacity));background-color:var(--mat-checkbox-unselected-focus-state-layer-color, var(--mat-sys-on-surface))}.mdc-checkbox .mdc-checkbox__native-control:focus~.mat-mdc-checkbox-ripple .mat-ripple-element{background-color:var(--mat-checkbox-unselected-focus-state-layer-color, var(--mat-sys-on-surface))}.mdc-checkbox:active>.mdc-checkbox__native-control+.mdc-checkbox__ripple{opacity:var(--mat-checkbox-unselected-pressed-state-layer-opacity, var(--mat-sys-pressed-state-layer-opacity));background-color:var(--mat-checkbox-unselected-pressed-state-layer-color, var(--mat-sys-primary))}.mdc-checkbox:active>.mdc-checkbox__native-control~.mat-mdc-checkbox-ripple .mat-ripple-element{background-color:var(--mat-checkbox-unselected-pressed-state-layer-color, var(--mat-sys-primary))}.mdc-checkbox:hover .mdc-checkbox__native-control:checked+.mdc-checkbox__ripple{opacity:var(--mat-checkbox-selected-hover-state-layer-opacity, var(--mat-sys-hover-state-layer-opacity));background-color:var(--mat-checkbox-selected-hover-state-layer-color, var(--mat-sys-primary))}.mdc-checkbox:hover .mdc-checkbox__native-control:checked~.mat-mdc-checkbox-ripple .mat-ripple-element{background-color:var(--mat-checkbox-selected-hover-state-layer-color, var(--mat-sys-primary))}.mdc-checkbox .mdc-checkbox__native-control:focus:checked+.mdc-checkbox__ripple{opacity:var(--mat-checkbox-selected-focus-state-layer-opacity, var(--mat-sys-focus-state-layer-opacity));background-color:var(--mat-checkbox-selected-focus-state-layer-color, var(--mat-sys-primary))}.mdc-checkbox .mdc-checkbox__native-control:focus:checked~.mat-mdc-checkbox-ripple .mat-ripple-element{background-color:var(--mat-checkbox-selected-focus-state-layer-color, var(--mat-sys-primary))}.mdc-checkbox:active>.mdc-checkbox__native-control:checked+.mdc-checkbox__ripple{opacity:var(--mat-checkbox-selected-pressed-state-layer-opacity, var(--mat-sys-pressed-state-layer-opacity));background-color:var(--mat-checkbox-selected-pressed-state-layer-color, var(--mat-sys-on-surface))}.mdc-checkbox:active>.mdc-checkbox__native-control:checked~.mat-mdc-checkbox-ripple .mat-ripple-element{background-color:var(--mat-checkbox-selected-pressed-state-layer-color, var(--mat-sys-on-surface))}.mdc-checkbox--disabled.mat-mdc-checkbox-disabled-interactive .mdc-checkbox .mdc-checkbox__native-control~.mat-mdc-checkbox-ripple .mat-ripple-element,.mdc-checkbox--disabled.mat-mdc-checkbox-disabled-interactive .mdc-checkbox .mdc-checkbox__native-control+.mdc-checkbox__ripple{background-color:var(--mat-checkbox-unselected-hover-state-layer-color, var(--mat-sys-on-surface))}.mdc-checkbox .mdc-checkbox__native-control{position:absolute;margin:0;padding:0;opacity:0;cursor:inherit;z-index:1;width:var(--mat-checkbox-state-layer-size, 40px);height:var(--mat-checkbox-state-layer-size, 40px);top:calc((var(--mat-checkbox-state-layer-size, 40px) - var(--mat-checkbox-state-layer-size, 40px))/2);right:calc((var(--mat-checkbox-state-layer-size, 40px) - var(--mat-checkbox-state-layer-size, 40px))/2);left:calc((var(--mat-checkbox-state-layer-size, 40px) - var(--mat-checkbox-state-layer-size, 40px))/2)}.mdc-checkbox--disabled{cursor:default;pointer-events:none}.mdc-checkbox__background{display:inline-flex;position:absolute;align-items:center;justify-content:center;box-sizing:border-box;width:18px;height:18px;border:2px solid currentColor;border-radius:2px;background-color:rgba(0,0,0,0);pointer-events:none;will-change:background-color,border-color;transition:background-color 90ms cubic-bezier(0.4, 0, 0.6, 1),border-color 90ms cubic-bezier(0.4, 0, 0.6, 1);-webkit-print-color-adjust:exact;color-adjust:exact;border-color:var(--mat-checkbox-unselected-icon-color, var(--mat-sys-on-surface-variant));top:calc((var(--mat-checkbox-state-layer-size, 40px) - 18px)/2);left:calc((var(--mat-checkbox-state-layer-size, 40px) - 18px)/2)}.mdc-checkbox__native-control:enabled:checked~.mdc-checkbox__background,.mdc-checkbox__native-control:enabled:indeterminate~.mdc-checkbox__background{border-color:var(--mat-checkbox-selected-icon-color, var(--mat-sys-primary));background-color:var(--mat-checkbox-selected-icon-color, var(--mat-sys-primary))}.mdc-checkbox--disabled .mdc-checkbox__background{border-color:var(--mat-checkbox-disabled-unselected-icon-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent))}@media(forced-colors: active){.mdc-checkbox--disabled .mdc-checkbox__background{border-color:GrayText}}.mdc-checkbox__native-control:disabled:checked~.mdc-checkbox__background,.mdc-checkbox__native-control:disabled:indeterminate~.mdc-checkbox__background{background-color:var(--mat-checkbox-disabled-selected-icon-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent));border-color:rgba(0,0,0,0)}@media(forced-colors: active){.mdc-checkbox__native-control:disabled:checked~.mdc-checkbox__background,.mdc-checkbox__native-control:disabled:indeterminate~.mdc-checkbox__background{border-color:GrayText}}.mdc-checkbox:hover>.mdc-checkbox__native-control:not(:checked)~.mdc-checkbox__background,.mdc-checkbox:hover>.mdc-checkbox__native-control:not(:indeterminate)~.mdc-checkbox__background{border-color:var(--mat-checkbox-unselected-hover-icon-color, var(--mat-sys-on-surface));background-color:rgba(0,0,0,0)}.mdc-checkbox:hover>.mdc-checkbox__native-control:checked~.mdc-checkbox__background,.mdc-checkbox:hover>.mdc-checkbox__native-control:indeterminate~.mdc-checkbox__background{border-color:var(--mat-checkbox-selected-hover-icon-color, var(--mat-sys-primary));background-color:var(--mat-checkbox-selected-hover-icon-color, var(--mat-sys-primary))}.mdc-checkbox__native-control:focus:focus:not(:checked)~.mdc-checkbox__background,.mdc-checkbox__native-control:focus:focus:not(:indeterminate)~.mdc-checkbox__background{border-color:var(--mat-checkbox-unselected-focus-icon-color, var(--mat-sys-on-surface))}.mdc-checkbox__native-control:focus:focus:checked~.mdc-checkbox__background,.mdc-checkbox__native-control:focus:focus:indeterminate~.mdc-checkbox__background{border-color:var(--mat-checkbox-selected-focus-icon-color, var(--mat-sys-primary));background-color:var(--mat-checkbox-selected-focus-icon-color, var(--mat-sys-primary))}.mdc-checkbox--disabled.mat-mdc-checkbox-disabled-interactive .mdc-checkbox:hover>.mdc-checkbox__native-control~.mdc-checkbox__background,.mdc-checkbox--disabled.mat-mdc-checkbox-disabled-interactive .mdc-checkbox .mdc-checkbox__native-control:focus~.mdc-checkbox__background,.mdc-checkbox--disabled.mat-mdc-checkbox-disabled-interactive .mdc-checkbox__background{border-color:var(--mat-checkbox-disabled-unselected-icon-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent))}@media(forced-colors: active){.mdc-checkbox--disabled.mat-mdc-checkbox-disabled-interactive .mdc-checkbox:hover>.mdc-checkbox__native-control~.mdc-checkbox__background,.mdc-checkbox--disabled.mat-mdc-checkbox-disabled-interactive .mdc-checkbox .mdc-checkbox__native-control:focus~.mdc-checkbox__background,.mdc-checkbox--disabled.mat-mdc-checkbox-disabled-interactive .mdc-checkbox__background{border-color:GrayText}}.mdc-checkbox--disabled.mat-mdc-checkbox-disabled-interactive .mdc-checkbox__native-control:checked~.mdc-checkbox__background,.mdc-checkbox--disabled.mat-mdc-checkbox-disabled-interactive .mdc-checkbox__native-control:indeterminate~.mdc-checkbox__background{background-color:var(--mat-checkbox-disabled-selected-icon-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent));border-color:rgba(0,0,0,0)}.mdc-checkbox__checkmark{position:absolute;top:0;right:0;bottom:0;left:0;width:100%;opacity:0;transition:opacity 180ms cubic-bezier(0.4, 0, 0.6, 1);color:var(--mat-checkbox-selected-checkmark-color, var(--mat-sys-on-primary))}@media(forced-colors: active){.mdc-checkbox__checkmark{color:CanvasText}}.mdc-checkbox--disabled .mdc-checkbox__checkmark,.mdc-checkbox--disabled.mat-mdc-checkbox-disabled-interactive .mdc-checkbox__checkmark{color:var(--mat-checkbox-disabled-selected-checkmark-color, var(--mat-sys-surface))}@media(forced-colors: active){.mdc-checkbox--disabled .mdc-checkbox__checkmark,.mdc-checkbox--disabled.mat-mdc-checkbox-disabled-interactive .mdc-checkbox__checkmark{color:GrayText}}.mdc-checkbox__checkmark-path{transition:stroke-dashoffset 180ms cubic-bezier(0.4, 0, 0.6, 1);stroke:currentColor;stroke-width:3.12px;stroke-dashoffset:29.7833385;stroke-dasharray:29.7833385}.mdc-checkbox__mixedmark{width:100%;height:0;transform:scaleX(0) rotate(0deg);border-width:1px;border-style:solid;opacity:0;transition:opacity 90ms cubic-bezier(0.4, 0, 0.6, 1),transform 90ms cubic-bezier(0.4, 0, 0.6, 1);border-color:var(--mat-checkbox-selected-checkmark-color, var(--mat-sys-on-primary))}@media(forced-colors: active){.mdc-checkbox__mixedmark{margin:0 1px}}.mdc-checkbox--disabled .mdc-checkbox__mixedmark,.mdc-checkbox--disabled.mat-mdc-checkbox-disabled-interactive .mdc-checkbox__mixedmark{border-color:var(--mat-checkbox-disabled-selected-checkmark-color, var(--mat-sys-surface))}@media(forced-colors: active){.mdc-checkbox--disabled .mdc-checkbox__mixedmark,.mdc-checkbox--disabled.mat-mdc-checkbox-disabled-interactive .mdc-checkbox__mixedmark{border-color:GrayText}}.mdc-checkbox--anim-unchecked-checked .mdc-checkbox__background,.mdc-checkbox--anim-unchecked-indeterminate .mdc-checkbox__background,.mdc-checkbox--anim-checked-unchecked .mdc-checkbox__background,.mdc-checkbox--anim-indeterminate-unchecked .mdc-checkbox__background{animation-duration:180ms;animation-timing-function:linear}.mdc-checkbox--anim-unchecked-checked .mdc-checkbox__checkmark-path{animation:mdc-checkbox-unchecked-checked-checkmark-path 180ms linear;transition:none}.mdc-checkbox--anim-unchecked-indeterminate .mdc-checkbox__mixedmark{animation:mdc-checkbox-unchecked-indeterminate-mixedmark 90ms linear;transition:none}.mdc-checkbox--anim-checked-unchecked .mdc-checkbox__checkmark-path{animation:mdc-checkbox-checked-unchecked-checkmark-path 90ms linear;transition:none}.mdc-checkbox--anim-checked-indeterminate .mdc-checkbox__checkmark{animation:mdc-checkbox-checked-indeterminate-checkmark 90ms linear;transition:none}.mdc-checkbox--anim-checked-indeterminate .mdc-checkbox__mixedmark{animation:mdc-checkbox-checked-indeterminate-mixedmark 90ms linear;transition:none}.mdc-checkbox--anim-indeterminate-checked .mdc-checkbox__checkmark{animation:mdc-checkbox-indeterminate-checked-checkmark 500ms linear;transition:none}.mdc-checkbox--anim-indeterminate-checked .mdc-checkbox__mixedmark{animation:mdc-checkbox-indeterminate-checked-mixedmark 500ms linear;transition:none}.mdc-checkbox--anim-indeterminate-unchecked .mdc-checkbox__mixedmark{animation:mdc-checkbox-indeterminate-unchecked-mixedmark 300ms linear;transition:none}.mdc-checkbox__native-control:checked~.mdc-checkbox__background,.mdc-checkbox__native-control:indeterminate~.mdc-checkbox__background{transition:border-color 90ms cubic-bezier(0, 0, 0.2, 1),background-color 90ms cubic-bezier(0, 0, 0.2, 1)}.mdc-checkbox__native-control:checked~.mdc-checkbox__background>.mdc-checkbox__checkmark>.mdc-checkbox__checkmark-path,.mdc-checkbox__native-control:indeterminate~.mdc-checkbox__background>.mdc-checkbox__checkmark>.mdc-checkbox__checkmark-path{stroke-dashoffset:0}.mdc-checkbox__native-control:checked~.mdc-checkbox__background>.mdc-checkbox__checkmark{transition:opacity 180ms cubic-bezier(0, 0, 0.2, 1),transform 180ms cubic-bezier(0, 0, 0.2, 1);opacity:1}.mdc-checkbox__native-control:checked~.mdc-checkbox__background>.mdc-checkbox__mixedmark{transform:scaleX(1) rotate(-45deg)}.mdc-checkbox__native-control:indeterminate~.mdc-checkbox__background>.mdc-checkbox__checkmark{transform:rotate(45deg);opacity:0;transition:opacity 90ms cubic-bezier(0.4, 0, 0.6, 1),transform 90ms cubic-bezier(0.4, 0, 0.6, 1)}.mdc-checkbox__native-control:indeterminate~.mdc-checkbox__background>.mdc-checkbox__mixedmark{transform:scaleX(1) rotate(0deg);opacity:1}@keyframes mdc-checkbox-unchecked-checked-checkmark-path{0%,50%{stroke-dashoffset:29.7833385}50%{animation-timing-function:cubic-bezier(0, 0, 0.2, 1)}100%{stroke-dashoffset:0}}@keyframes mdc-checkbox-unchecked-indeterminate-mixedmark{0%,68.2%{transform:scaleX(0)}68.2%{animation-timing-function:cubic-bezier(0, 0, 0, 1)}100%{transform:scaleX(1)}}@keyframes mdc-checkbox-checked-unchecked-checkmark-path{from{animation-timing-function:cubic-bezier(0.4, 0, 1, 1);opacity:1;stroke-dashoffset:0}to{opacity:0;stroke-dashoffset:-29.7833385}}@keyframes mdc-checkbox-checked-indeterminate-checkmark{from{animation-timing-function:cubic-bezier(0, 0, 0.2, 1);transform:rotate(0deg);opacity:1}to{transform:rotate(45deg);opacity:0}}@keyframes mdc-checkbox-indeterminate-checked-checkmark{from{animation-timing-function:cubic-bezier(0.14, 0, 0, 1);transform:rotate(45deg);opacity:0}to{transform:rotate(360deg);opacity:1}}@keyframes mdc-checkbox-checked-indeterminate-mixedmark{from{animation-timing-function:cubic-bezier(0, 0, 0.2, 1);transform:rotate(-45deg);opacity:0}to{transform:rotate(0deg);opacity:1}}@keyframes mdc-checkbox-indeterminate-checked-mixedmark{from{animation-timing-function:cubic-bezier(0.14, 0, 0, 1);transform:rotate(0deg);opacity:1}to{transform:rotate(315deg);opacity:0}}@keyframes mdc-checkbox-indeterminate-unchecked-mixedmark{0%{animation-timing-function:linear;transform:scaleX(1);opacity:1}32.8%,100%{transform:scaleX(0);opacity:0}}.mat-mdc-checkbox{display:inline-block;position:relative;-webkit-tap-highlight-color:rgba(0,0,0,0)}.mat-mdc-checkbox._mat-animation-noopable>.mat-internal-form-field>.mdc-checkbox>.mat-mdc-checkbox-touch-target,.mat-mdc-checkbox._mat-animation-noopable>.mat-internal-form-field>.mdc-checkbox>.mdc-checkbox__native-control,.mat-mdc-checkbox._mat-animation-noopable>.mat-internal-form-field>.mdc-checkbox>.mdc-checkbox__ripple,.mat-mdc-checkbox._mat-animation-noopable>.mat-internal-form-field>.mdc-checkbox>.mat-mdc-checkbox-ripple::before,.mat-mdc-checkbox._mat-animation-noopable>.mat-internal-form-field>.mdc-checkbox>.mdc-checkbox__background,.mat-mdc-checkbox._mat-animation-noopable>.mat-internal-form-field>.mdc-checkbox>.mdc-checkbox__background>.mdc-checkbox__checkmark,.mat-mdc-checkbox._mat-animation-noopable>.mat-internal-form-field>.mdc-checkbox>.mdc-checkbox__background>.mdc-checkbox__checkmark>.mdc-checkbox__checkmark-path,.mat-mdc-checkbox._mat-animation-noopable>.mat-internal-form-field>.mdc-checkbox>.mdc-checkbox__background>.mdc-checkbox__mixedmark{transition:none !important;animation:none !important}.mat-mdc-checkbox label{cursor:pointer}.mat-mdc-checkbox .mat-internal-form-field{color:var(--mat-checkbox-label-text-color, var(--mat-sys-on-surface));font-family:var(--mat-checkbox-label-text-font, var(--mat-sys-body-medium-font));line-height:var(--mat-checkbox-label-text-line-height, var(--mat-sys-body-medium-line-height));font-size:var(--mat-checkbox-label-text-size, var(--mat-sys-body-medium-size));letter-spacing:var(--mat-checkbox-label-text-tracking, var(--mat-sys-body-medium-tracking));font-weight:var(--mat-checkbox-label-text-weight, var(--mat-sys-body-medium-weight))}.mat-mdc-checkbox.mat-mdc-checkbox-disabled.mat-mdc-checkbox-disabled-interactive{pointer-events:auto}.mat-mdc-checkbox.mat-mdc-checkbox-disabled.mat-mdc-checkbox-disabled-interactive input{cursor:default}.mat-mdc-checkbox.mat-mdc-checkbox-disabled label{cursor:default;color:var(--mat-checkbox-disabled-label-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent))}@media(forced-colors: active){.mat-mdc-checkbox.mat-mdc-checkbox-disabled label{color:GrayText}}.mat-mdc-checkbox label:empty{display:none}.mat-mdc-checkbox .mdc-checkbox__ripple{opacity:0}.mat-mdc-checkbox .mat-mdc-checkbox-ripple,.mdc-checkbox__ripple{top:0;left:0;right:0;bottom:0;position:absolute;border-radius:50%;pointer-events:none}.mat-mdc-checkbox .mat-mdc-checkbox-ripple:not(:empty),.mdc-checkbox__ripple:not(:empty){transform:translateZ(0)}.mat-mdc-checkbox-ripple .mat-ripple-element{opacity:.1}.mat-mdc-checkbox-touch-target{position:absolute;top:50%;left:50%;height:var(--mat-checkbox-touch-target-size, 48px);width:var(--mat-checkbox-touch-target-size, 48px);transform:translate(-50%, -50%);display:var(--mat-checkbox-touch-target-display, block)}.mat-mdc-checkbox .mat-mdc-checkbox-ripple::before{border-radius:50%}.mdc-checkbox__native-control:focus~.mat-focus-indicator::before{content:""} +`],encapsulation:2,changeDetection:0})}return t})(),yx=(()=>{class t{static \u0275fac=function(i){return new(i||t)};static \u0275mod=ee({type:t});static \u0275inj=J({imports:[Va,we,we]})}return t})();function qte(t,n){t&1&&(h(0,"span",1),_(1,"*"),p())}var Yte=(()=>{let n=class n extends to{constructor(i,r){super(),this.renderer=i,this.focusMonitor=r,this.defaultOptions={props:{hideFieldUnderline:!0,indeterminate:!0,floatLabel:"always",hideLabel:!0,color:"accent"}}}onContainerClick(i){this.checkbox.focus(),super.onContainerClick(i)}ngAfterViewInit(){this.checkbox&&this.focusMonitor.monitor(this.checkbox._inputElement,!0).subscribe(i=>{this.field.focus=!!i,this.stateChanges.next(),i?this.props.focus&&this.props.focus(this.field):this.props.blur&&this.props.blur(this.field)})}ngAfterViewChecked(){if(this.required!==this._required&&this.checkbox&&this.checkbox._inputElement){this._required=this.required;let i=this.checkbox._inputElement.nativeElement;this.required?this.renderer.setAttribute(i,"required","required"):this.renderer.removeAttribute(i,"required")}}ngOnDestroy(){super.ngOnDestroy(),this.checkbox&&this.focusMonitor.stopMonitoring(this.checkbox._inputElement)}};n.\u0275fac=function(r){return new(r||n)(_e(je),_e(Yt))},n.\u0275cmp=E({type:n,selectors:[["formly-field-mat-checkbox"]],viewQuery:function(r,o){if(r&1&&ie(Va,7),r&2){let a;B(a=j())&&(o.checkbox=a.first)}},standalone:!1,features:[le],decls:3,vars:10,consts:[[3,"formControl","id","name","formlyAttributes","tabIndex","indeterminate","color","labelPosition"],["aria-hidden","true",1,"mat-form-field-required-marker","mat-mdc-form-field-required-marker"]],template:function(r,o){r&1&&(h(0,"mat-checkbox",0),_(1),N(2,qte,2,0,"span",1),p()),r&2&&(y("formControl",o.formControl)("id",o.id)("name",o.field.name)("formlyAttributes",o.field)("tabIndex",o.props.tabindex)("indeterminate",o.props.indeterminate&&o.formControl.value==null)("color",o.props.color)("labelPosition",o.props.labelPosition),g(),ve(" ",o.props.label," "),g(),L(o.props.required&&o.props.hideRequiredMarker!==!0?2:-1))},dependencies:[ei,wo,Va,ta],encapsulation:2,changeDetection:0});let t=n;return t})();function T3(){return{types:[{name:"checkbox",component:Yte,wrappers:["form-field"]},{name:"boolean",extends:"checkbox"}]}}function Qte(t,n){if(t&1){let e=Y();h(0,"mat-checkbox",1),S("change",function(r){let o=I(e).$implicit,a=C();return A(a.onChange(o.value,r.checked))}),_(1),p()}if(t&2){let e=n.$implicit,i=n.$index,r=C();y("id",r.id+"_"+i)("formlyAttributes",r.field)("tabIndex",r.props.tabindex)("color",r.props.color)("labelPosition",r.props.labelPosition)("checked",r.isChecked(e))("disabled",r.formControl.disabled||e.disabled),g(),ve(" ",e.label," ")}}var Kte=(()=>{let n=class n extends to{constructor(){super(...arguments),this.defaultOptions={props:{hideFieldUnderline:!0,floatLabel:"always",color:"accent"}}}onChange(i,r){this.formControl.markAsDirty(),this.props.type==="array"?this.formControl.patchValue(r?[...this.formControl.value||[],i]:[...this.formControl.value||[]].filter(o=>o!==i)):this.formControl.patchValue(De(M({},this.formControl.value),{[i]:r})),this.formControl.markAsTouched()}onContainerClick(){}isChecked(i){let r=this.formControl.value;return r&&(this.props.type==="array"?r.indexOf(i.value)!==-1:r[i.value])}};n.\u0275fac=(()=>{let i;return function(o){return(i||(i=fe(n)))(o||n)}})(),n.\u0275cmp=E({type:n,selectors:[["formly-field-mat-multicheckbox"]],viewQuery:function(r,o){if(r&1&&ie(Va,5),r&2){let a;B(a=j())&&(o.checkboxes=a)}},hostVars:1,hostBindings:function(r,o){r&2&&si("id",o.id)},standalone:!1,features:[le],decls:4,vars:5,consts:[[3,"id","formlyAttributes","tabIndex","color","labelPosition","checked","disabled"],[3,"change","id","formlyAttributes","tabIndex","color","labelPosition","checked","disabled"]],template:function(r,o){r&1&&(xt(0,Qte,2,8,"mat-checkbox",0,Hi),me(2,"formlySelectOptions"),me(3,"async")),r&2&&Ct(Oe(3,3,Ni(2,0,o.props.options,o.field)))},dependencies:[Va,ta,rn,Eh],encapsulation:2,changeDetection:0});let t=n;return t})();function I3(){return{types:[{name:"multicheckbox",component:Kte,wrappers:["form-field"]}]}}var Zte=t=>({selectOptions:t});function Xte(t,n){if(t&1){let e=Y();h(0,"mat-option",2),S("click",function(){let r=I(e).selectOptions,o=C();return A(o.toggleSelectAll(r))}),k(1,"mat-pseudo-checkbox",3),_(2),p()}if(t&2){let e=n.selectOptions,i=C();g(),y("state",i.getSelectAllState(e)),g(),ve(" ",i.props.selectAllOption," ")}}function Jte(t,n){if(t&1&&Ge(0,4),t&2){let e=C();C();let i=Se(1);y("ngTemplateOutlet",i)("ngTemplateOutletContext",Pt(2,Zte,e))}}function eie(t,n){if(t&1&&(h(0,"mat-option",6),_(1),p()),t&2){let e=n.$implicit;y("value",e.value)("disabled",e.disabled),g(),ve(" ",e.label," ")}}function tie(t,n){if(t&1&&(h(0,"mat-optgroup",5),xt(1,eie,2,3,"mat-option",6,Hi),p()),t&2){let e=C().$implicit;y("label",e.label),g(),Ct(e.group)}}function iie(t,n){if(t&1&&(h(0,"mat-option",6),_(1),p()),t&2){let e=C().$implicit;y("value",e.value)("disabled",e.disabled),g(),H(e.label)}}function nie(t,n){if(t&1&&N(0,tie,3,1,"mat-optgroup",5)(1,iie,2,3,"mat-option",6),t&2){let e=n.$implicit;L(e.group?0:1)}}function rie(t,n){if(t&1&&(N(0,Jte,1,4,"ng-container",4),xt(1,nie,2,1,null,null,Hi)),t&2){let e=C();L(e.props.multiple&&e.props.selectAllOption?0:-1),g(),Ct(n)}}var oie=(()=>{let n=class n extends to{constructor(){super(...arguments),this.defaultOptions={props:{compareWith(i,r){return i===r}}}}set select(i){Wi(i,["_parentFormField","_textField"],({currentValue:r})=>{r&&(i._preferredOverlayOrigin=i._parentFormField.getConnectedOverlayOrigin())})}getSelectAllState(i){return this.empty||this.value.length===0?null:this.value.length!==this.getSelectAllValue(i).length?"indeterminate":"checked"}toggleSelectAll(i){let r=this.getSelectAllValue(i);this.formControl.markAsDirty(),this.formControl.setValue(!this.value||this.value.length!==r.length?r:[])}change(i){this.props.change?.(this.field,i)}_getAriaLabelledby(){return this.props.attributes?.["aria-labelledby"]?this.props.attributes["aria-labelledby"]:this.formField?._labelId}_getAriaLabel(){return this.props.attributes?.["aria-label"]}getSelectAllValue(i){if(!this.selectAllValue||i!==this.selectAllValue.options){let r=[];i.forEach(o=>o.group?r.push(...o.group):r.push(o)),this.selectAllValue={options:i,value:r.filter(o=>!o.disabled).map(o=>o.value)}}return this.selectAllValue.value}};n.\u0275fac=(()=>{let i;return function(o){return(i||(i=fe(n)))(o||n)}})(),n.\u0275cmp=E({type:n,selectors:[["formly-field-mat-select"]],viewQuery:function(r,o){if(r&1&&ie(Na,7),r&2){let a;B(a=j())&&(o.select=a.first)}},standalone:!1,features:[le],decls:6,vars:20,consts:[["selectAll",""],[3,"selectionChange","id","formControl","formlyAttributes","placeholder","tabIndex","required","compareWith","multiple","errorStateMatcher","aria-label","aria-labelledby","disableOptionCentering","typeaheadDebounceInterval","panelClass"],[3,"click"],[1,"mat-option-pseudo-checkbox",3,"state"],[3,"ngTemplateOutlet","ngTemplateOutletContext"],[3,"label"],[3,"value","disabled"]],template:function(r,o){if(r&1){let a=Y();R(0,Xte,3,2,"ng-template",null,0,_i),h(2,"mat-select",1),S("selectionChange",function(l){return I(a),A(o.change(l))}),N(3,rie,3,1),me(4,"formlySelectOptions"),me(5,"async"),p()}if(r&2){let a;g(2),y("id",o.id)("formControl",o.formControl)("formlyAttributes",o.field)("placeholder",o.props.placeholder)("tabIndex",o.props.tabindex)("required",o.required)("compareWith",o.props.compareWith)("multiple",o.props.multiple)("errorStateMatcher",o.errorStateMatcher),Kl("aria-label",o._getAriaLabel())("aria-labelledby",o._getAriaLabelledby()),y("disableOptionCentering",o.props.disableOptionCentering)("typeaheadDebounceInterval",o.props.typeaheadDebounceInterval)("panelClass",o.props.panelClass),g(),L((a=Oe(5,18,Ni(4,15,o.props.options,o.field)))?3:-1,a)}},dependencies:[Fn,ei,Do,wo,Na,xn,kk,Qd,ta,rn,Eh],encapsulation:2,changeDetection:0});let t=n;return t})();function A3(){return{types:[{name:"select",component:oie,wrappers:["form-field"]},{name:"enum",extends:"select"}]}}function O3(){return[b3(),w3(),D3(),M3(),T3(),I3(),A3()]}var kg=class{},P3=(()=>{class t{handle(e){return e.key}static \u0275fac=function(i){return new(i||t)};static \u0275prov=O({token:t,factory:t.\u0275fac})}return t})(),Mh=class{},F3=(()=>{class t extends Mh{compile(e,i){return e}compileTranslations(e,i){return e}static \u0275fac=(()=>{let e;return function(r){return(e||(e=fe(t)))(r||t)}})();static \u0275prov=O({token:t,factory:t.\u0275fac})}return t})(),yc=class{},N3=(()=>{class t extends yc{getTranslation(e){return Q({})}static \u0275fac=(()=>{let e;return function(r){return(e||(e=fe(t)))(r||t)}})();static \u0275prov=O({token:t,factory:t.\u0275fac})}return t})();function Sg(t,n){if(t===n)return!0;if(t===null||n===null)return!1;if(t!==t&&n!==n)return!0;let e=typeof t,i=typeof n,r;if(e==i&&e=="object")if(Array.isArray(t)){if(!Array.isArray(n))return!1;if((r=t.length)==n.length){for(let o=0;oxx(n));if(hl(t)){let n={};return Object.keys(t).forEach(e=>{n[e]=xx(t[e])}),n}else return t}function kS(t,n){if(!Mg(t))return xx(n);let e=xx(t);return Mg(e)&&Mg(n)&&Object.keys(n).forEach(i=>{hl(n[i])?i in t?e[i]=kS(t[i],n[i]):Object.assign(e,{[i]:n[i]}):Object.assign(e,{[i]:n[i]})}),e}function L3(t,n){let e=n.split(".");n="";do{n+=e.shift();let i=!e.length;if(Mo(t)){if(hl(t)&&R3(t[n])&&(hl(t[n])||pu(t[n])||i)){t=t[n],n="";continue}if(pu(t)){let r=parseInt(n,10);if(R3(t[r])&&(hl(t[r])||pu(t[r])||i)){t=t[r],n="";continue}}}if(i){t=void 0;continue}n+="."}while(e.length);return t}function sie(t,n,e){return kS(t,lie(n,e))}function lie(t,n){return t.split(".").reduceRight((e,i)=>({[i]:e}),n)}var kh=class{},V3=(()=>{class t extends kh{templateMatcher=/{{\s?([^{}\s]*)\s?}}/g;interpolate(e,i){if(Tg(e))return this.interpolateString(e,i);if(aie(e))return this.interpolateFunction(e,i)}interpolateFunction(e,i){return e(i)}interpolateString(e,i){return i?e.replace(this.templateMatcher,(r,o)=>{let a=this.getInterpolationReplacement(i,o);return a!==void 0?a:r}):e}getInterpolationReplacement(e,i){return this.formatValue(L3(e,i))}formatValue(e){if(Tg(e))return e;if(typeof e=="number"||typeof e=="boolean")return e.toString();if(e===null)return"null";if(pu(e))return e.join(", ");if(Mg(e))return typeof e.toString=="function"&&e.toString!==Object.prototype.toString?e.toString():JSON.stringify(e)}static \u0275fac=(()=>{let e;return function(r){return(e||(e=fe(t)))(r||t)}})();static \u0275prov=O({token:t,factory:t.\u0275fac})}return t})(),DS=(()=>{class t{_onTranslationChange=new z;_onLangChange=new z;_onFallbackLangChange=new z;fallbackLang=null;currentLang;translations={};languages=[];getTranslations(e){return this.translations[e]}setTranslations(e,i,r){this.translations[e]=r&&this.hasTranslationFor(e)?kS(this.translations[e],i):i,this.addLanguages([e]),this._onTranslationChange.next({lang:e,translations:this.getTranslations(e)})}getLanguages(){return this.languages}getCurrentLang(){return this.currentLang}getFallbackLang(){return this.fallbackLang}setFallbackLang(e,i=!0){this.fallbackLang=e,i&&this._onFallbackLangChange.next({lang:e,translations:this.translations[e]})}setCurrentLang(e,i=!0){this.currentLang=e,i&&this._onLangChange.next({lang:e,translations:this.translations[e]})}get onTranslationChange(){return this._onTranslationChange.asObservable()}get onLangChange(){return this._onLangChange.asObservable()}get onFallbackLangChange(){return this._onFallbackLangChange.asObservable()}addLanguages(e){this.languages=Array.from(new Set([...this.languages,...e]))}hasTranslationFor(e){return typeof this.translations[e]<"u"}deleteTranslations(e){delete this.translations[e]}getTranslation(e){let i=this.getValue(this.currentLang,e);return i===void 0&&this.fallbackLang!=null&&this.fallbackLang!==this.currentLang&&(i=this.getValue(this.fallbackLang,e)),i}getValue(e,i){return L3(this.getTranslations(e),i)}static \u0275fac=function(i){return new(i||t)};static \u0275prov=O({token:t,factory:t.\u0275fac})}return t})(),ES=new T("TRANSLATE_CONFIG"),Eg=t=>ji(t)?t:Q(t);var ia=(()=>{class t{loadingTranslations;pending=!1;_translationRequests={};lastUseLanguage=null;currentLoader=u(yc);compiler=u(Mh);parser=u(kh);missingTranslationHandler=u(kg);store=u(DS);extend=!1;get onTranslationChange(){return this.store.onTranslationChange}get onLangChange(){return this.store.onLangChange}get onFallbackLangChange(){return this.store.onFallbackLangChange}get onDefaultLangChange(){return this.store.onFallbackLangChange}constructor(){let e=M({extend:!1,fallbackLang:null},u(ES,{optional:!0}));e.lang&&this.use(e.lang),e.fallbackLang&&this.setFallbackLang(e.fallbackLang),e.extend&&(this.extend=!0)}setFallbackLang(e){this.getFallbackLang()||this.store.setFallbackLang(e,!1);let i=this.loadOrExtendLanguage(e);return ji(i)?(i.pipe(lt(1)).subscribe({next:()=>{this.store.setFallbackLang(e)},error:()=>{}}),i):(this.store.setFallbackLang(e),Q(this.store.getTranslations(e)))}use(e){this.lastUseLanguage=e,this.getCurrentLang()||this.store.setCurrentLang(e,!1);let i=this.loadOrExtendLanguage(e);return ji(i)?(i.pipe(lt(1)).subscribe({next:()=>{this.changeLang(e)},error:()=>{}}),i):(this.changeLang(e),Q(this.store.getTranslations(e)))}loadOrExtendLanguage(e){if(!this.store.hasTranslationFor(e)||this.extend)return this._translationRequests[e]=this._translationRequests[e]||this.loadAndCompileTranslations(e),this._translationRequests[e]}changeLang(e){e===this.lastUseLanguage&&this.store.setCurrentLang(e)}getCurrentLang(){return this.store.getCurrentLang()}loadAndCompileTranslations(e){this.pending=!0;let i=this.currentLoader.getTranslation(e).pipe(dd(1),lt(1));return this.loadingTranslations=i.pipe(se(r=>this.compiler.compileTranslations(r,e)),dd(1),lt(1)),this.loadingTranslations.subscribe({next:r=>{this.store.setTranslations(e,r,this.extend),this.pending=!1},error:r=>{this.pending=!1}}),i}setTranslation(e,i,r=!1){let o=this.compiler.compileTranslations(i,e);this.store.setTranslations(e,o,r||this.extend)}getLangs(){return this.store.getLanguages()}addLangs(e){this.store.addLanguages(e)}getParsedResultForKey(e,i){let r=this.getTextToInterpolate(e);if(Mo(r))return this.runInterpolation(r,i);let o=this.missingTranslationHandler.handle(M({key:e,translateService:this},i!==void 0&&{interpolateParams:i}));return o!==void 0?o:e}getFallbackLang(){return this.store.getFallbackLang()}getTextToInterpolate(e){return this.store.getTranslation(e)}runInterpolation(e,i){if(Mo(e))return pu(e)?this.runInterpolationOnArray(e,i):hl(e)?this.runInterpolationOnDict(e,i):this.parser.interpolate(e,i)}runInterpolationOnArray(e,i){return e.map(r=>this.runInterpolation(r,i))}runInterpolationOnDict(e,i){let r={};for(let o in e){let a=this.runInterpolation(e[o],i);a!==void 0&&(r[o]=a)}return r}getParsedResult(e,i){return e instanceof Array?this.getParsedResultForArray(e,i):this.getParsedResultForKey(e,i)}getParsedResultForArray(e,i){let r={},o=!1;for(let s of e)r[s]=this.getParsedResultForKey(s,i),o=o||ji(r[s]);if(!o)return r;let a=e.map(s=>Eg(r[s]));return Ga(a).pipe(se(s=>{let l={};return s.forEach((c,d)=>{l[e[d]]=c}),l}))}get(e,i){if(!Mo(e)||!e.length)throw new Error('Parameter "key" is required and cannot be empty');return this.pending?this.loadingTranslations.pipe(Ao(()=>Eg(this.getParsedResult(e,i)))):Eg(this.getParsedResult(e,i))}getStreamOnTranslationChange(e,i){if(!Mo(e)||!e.length)throw new Error('Parameter "key" is required and cannot be empty');return mo(kn(()=>this.get(e,i)),this.onTranslationChange.pipe($e(()=>{let r=this.getParsedResult(e,i);return Eg(r)})))}stream(e,i){if(!Mo(e)||!e.length)throw new Error('Parameter "key" required');return mo(kn(()=>this.get(e,i)),this.onLangChange.pipe($e(()=>{let r=this.getParsedResult(e,i);return Eg(r)})))}instant(e,i){if(!Mo(e)||e.length===0)throw new Error('Parameter "key" is required and cannot be empty');let r=this.getParsedResult(e,i);return ji(r)?Array.isArray(e)?e.reduce((o,a)=>(o[a]=a,o),{}):e:r}set(e,i,r=this.getCurrentLang()){this.store.setTranslations(r,sie(this.store.getTranslations(r),e,Tg(i)?this.compiler.compile(i,r):this.compiler.compileTranslations(i,r)),!1)}reloadLang(e){return this.resetLang(e),this.loadAndCompileTranslations(e)}resetLang(e){delete this._translationRequests[e],this.store.deleteTranslations(e)}static getBrowserLang(){if(typeof window>"u"||!window.navigator)return;let e=this.getBrowserCultureLang();return e?e.split(/[-_]/)[0]:void 0}static getBrowserCultureLang(){if(!(typeof window>"u"||typeof window.navigator>"u"))return window.navigator.languages?window.navigator.languages[0]:window.navigator.language||window.navigator.browserLanguage||window.navigator.userLanguage}getBrowserLang(){return t.getBrowserLang()}getBrowserCultureLang(){return t.getBrowserCultureLang()}get defaultLang(){return this.getFallbackLang()}get currentLang(){return this.store.getCurrentLang()}get langs(){return this.store.getLanguages()}setDefaultLang(e){return this.setFallbackLang(e)}getDefaultLang(){return this.getFallbackLang()}static \u0275fac=function(i){return new(i||t)};static \u0275prov=O({token:t,factory:t.\u0275fac})}return t})(),B3=(()=>{class t{translateService=u(ia);element=u(q);_ref=u(ye);key;lastParams;currentParams;onLangChangeSub;onFallbackLangChangeSub;onTranslationChangeSub;set translate(e){e&&(this.key=e,this.checkNodes())}set translateParams(e){Sg(this.currentParams,e)||(this.currentParams=e,this.checkNodes(!0))}constructor(){this.onTranslationChangeSub||(this.onTranslationChangeSub=this.translateService.onTranslationChange.subscribe(e=>{e.lang===this.translateService.currentLang&&this.checkNodes(!0,e.translations)})),this.onLangChangeSub||(this.onLangChangeSub=this.translateService.onLangChange.subscribe(e=>{this.checkNodes(!0,e.translations)})),this.onFallbackLangChangeSub||(this.onFallbackLangChangeSub=this.translateService.onFallbackLangChange.subscribe(e=>{this.checkNodes(!0)}))}ngAfterViewChecked(){this.checkNodes()}checkNodes(e=!1,i){let r=this.element.nativeElement.childNodes;r.length||(this.setContent(this.element.nativeElement,this.key),r=this.element.nativeElement.childNodes),r.forEach(o=>{let a=o;if(a.nodeType===3){let s;if(e&&(a.lastKey=null),Mo(a.lookupKey))s=a.lookupKey;else if(this.key)s=this.key;else{let l=this.getContent(a),c=l.trim();c.length&&(a.lookupKey=c,l!==a.currentValue?(s=c,a.originalContent=l||a.originalContent):a.originalContent&&(s=a.originalContent.trim()))}this.updateValue(s,a,i)}})}updateValue(e,i,r){if(e){if(i.lastKey===e&&this.lastParams===this.currentParams)return;this.lastParams=this.currentParams;let o=a=>{(a!==e||!i.lastKey)&&(i.lastKey=e),i.originalContent||(i.originalContent=this.getContent(i)),Tg(a)?i.currentValue=a:Mo(a)?i.currentValue=JSON.stringify(a):i.currentValue=i.originalContent||e,this.setContent(i,this.key?i.currentValue:i.originalContent.replace(e,i.currentValue)),this._ref.markForCheck()};if(Mo(r)){let a=this.translateService.getParsedResult(e,this.currentParams);ji(a)?a.subscribe({next:o}):o(a)}else this.translateService.get(e,this.currentParams).subscribe(o)}}getContent(e){return Mo(e.textContent)?e.textContent:e.data}setContent(e,i){Mo(e.textContent)?e.textContent=i:e.data=i}ngOnDestroy(){this.onLangChangeSub&&this.onLangChangeSub.unsubscribe(),this.onFallbackLangChangeSub&&this.onFallbackLangChangeSub.unsubscribe(),this.onTranslationChangeSub&&this.onTranslationChangeSub.unsubscribe()}static \u0275fac=function(i){return new(i||t)};static \u0275dir=F({type:t,selectors:[["","translate",""],["","ngx-translate",""]],inputs:{translate:"translate",translateParams:"translateParams"}})}return t})(),Cr=(()=>{class t{translate=u(ia);_ref=u(ye);value="";lastKey=null;lastParams=[];onTranslationChange;onLangChange;onFallbackLangChange;updateValue(e,i,r){let o=a=>{this.value=a!==void 0?a:e,this.lastKey=e,this._ref.markForCheck()};if(r){let a=this.translate.getParsedResult(e,i);ji(a)?a.subscribe(o):o(a)}this.translate.get(e,i).subscribe(o)}transform(e,...i){if(!e||!e.length)return e;if(Sg(e,this.lastKey)&&Sg(i,this.lastParams))return this.value;let r;if(Mo(i[0])&&i.length)if(Tg(i[0])&&i[0].length){let o=i[0].replace(/(')?([a-zA-Z0-9_]+)(')?(\s)?:/g,'"$2":').replace(/:(\s)?(')(.*?)(')/g,':"$3"');try{r=JSON.parse(o)}catch(a){throw new SyntaxError(`Wrong parameter in TranslatePipe. Expected a valid Object, received: ${i[0]}`)}}else hl(i[0])&&(r=i[0]);return this.lastKey=e,this.lastParams=i,this.updateValue(e,r),this._dispose(),this.onTranslationChange||(this.onTranslationChange=this.translate.onTranslationChange.subscribe(o=>{(this.lastKey&&o.lang===this.translate.getCurrentLang()||o.lang===this.translate.getFallbackLang())&&(this.lastKey=null,this.updateValue(e,r,o.translations))})),this.onLangChange||(this.onLangChange=this.translate.onLangChange.subscribe(o=>{this.lastKey&&(this.lastKey=null,this.updateValue(e,r,o.translations))})),this.onFallbackLangChange||(this.onFallbackLangChange=this.translate.onFallbackLangChange.subscribe(()=>{this.lastKey&&(this.lastKey=null,this.updateValue(e,r))})),this.value}_dispose(){typeof this.onTranslationChange<"u"&&(this.onTranslationChange.unsubscribe(),this.onTranslationChange=void 0),typeof this.onLangChange<"u"&&(this.onLangChange.unsubscribe(),this.onLangChange=void 0),typeof this.onFallbackLangChange<"u"&&(this.onFallbackLangChange.unsubscribe(),this.onFallbackLangChange=void 0)}ngOnDestroy(){this._dispose()}static \u0275fac=function(i){return new(i||t)};static \u0275pipe=Wr({name:"translate",type:t,pure:!1});static \u0275prov=O({token:t,factory:t.\u0275fac})}return t})();function j3(t){return{provide:yc,useClass:t}}function H3(t){return{provide:Mh,useClass:t}}function z3(t){return{provide:kh,useClass:t}}function U3(t){return{provide:kg,useClass:t}}function $3(t={}){return MS(M({compiler:H3(F3),parser:z3(V3),loader:j3(N3),missingTranslationHandler:U3(P3)},t),!0)}function MS(t={},n){let e=[];t.loader&&e.push(t.loader),t.compiler&&e.push(t.compiler),t.parser&&e.push(t.parser),t.missingTranslationHandler&&e.push(t.missingTranslationHandler),n&&e.push(DS),(t.useDefaultLang||t.defaultLanguage)&&(console.warn("The `useDefaultLang` and `defaultLanguage` options are deprecated. Please use `fallbackLang` instead."),t.useDefaultLang===!0&&t.defaultLanguage&&(t.fallbackLang=t.defaultLanguage));let i={fallbackLang:t.fallbackLang??null,lang:t.lang,extend:t.extend??!1};return e.push({provide:ES,useValue:i}),e.push({provide:ia,useClass:ia,deps:[DS,yc,Mh,kh,kg,ES]}),e}var wr=(()=>{class t{static forRoot(e={}){return{ngModule:t,providers:[...MS(M({compiler:H3(F3),parser:z3(V3),loader:j3(N3),missingTranslationHandler:U3(P3)},e),!0)]}}static forChild(e={}){return{ngModule:t,providers:[...MS(e,e.isolate??!1)]}}static \u0275fac=function(i){return new(i||t)};static \u0275mod=ee({type:t});static \u0275inj=J({})}return t})();var SS=new T("TRANSLATE_HTTP_LOADER_CONFIG"),cie=(()=>{class t{http;config;constructor(){this.config=M({prefix:"/assets/i18n/",suffix:".json",enforceLoading:!1,useHttpBackend:!1},u(SS)),this.http=this.config.useHttpBackend?new Yr(u(Zl)):u(Yr)}getTranslation(e){let i=this.config.enforceLoading?`?enforceLoading=${Date.now()}`:"";return this.http.get(`${this.config.prefix}${e}${this.config.suffix}${i}`)}static \u0275fac=function(i){return new(i||t)};static \u0275prov=O({token:t,factory:t.\u0275fac})}return t})();function W3(t={}){let n=t.useHttpBackend??!1;return[{provide:SS,useValue:t},{provide:yc,useClass:cie,deps:[n?Zl:Yr,SS]}]}var TS=class{constructor(n){this.options=n,n.vcr?this.ref=n.vcr.createComponent(n.component,{index:n.vcr.length,injector:n.injector||n.vcr.injector}):(this.ref=Mm(n.component,{elementInjector:n.injector,environmentInjector:n.environmentInjector}),n.appRef.attachView(this.ref.hostView))}setInput(n,e){return this.ref.setInput(n,e),this}setInputs(n){return Object.keys(n).forEach(e=>{this.ref.setInput(e,n[e])}),this}detectChanges(){return this.ref.hostView.detectChanges(),this}updateContext(n){return this.options.contextSignal?.set(n),this}appendTo(n){return n.appendChild(this.getElement()),this}removeFrom(n){return n.removeChild(this.getElement()),this}getRawContent(){return this.getElement().outerHTML}getElement(){return this.ref.location.nativeElement}destroy(){this.ref.destroy(),!this.options.vcr&&this.options.appRef.detachView(this.ref.hostView),this.ref=null}};function Ig(t){return t instanceof te}function gu(t){return typeof t=="function"}function G3(t){return typeof t=="string"}var IS=class{constructor(n){this.args=n,this.args.vcr?(this.ref=this.args.vcr.createEmbeddedView(this.args.tpl,this.args.context||{},{injector:n.injector}),this.ref.detectChanges()):(this.ref=this.args.tpl.createEmbeddedView(this.args.context||{},n.injector),this.ref.detectChanges(),this.args.appRef.attachView(this.ref))}detectChanges(){return this.ref.detectChanges(),this}getElement(){let n=this.ref.rootNodes;return n.length===1&&n[0]===Node.ELEMENT_NODE?this.element=n[0]:(this.element=document.createElement("div"),this.element.append(...n)),this.element}destroy(){this.ref.rootNodes[0]!==1&&(this.element?.parentNode.removeChild(this.element),this.element=null),this.args.vcr||this.args.appRef.detachView(this.ref),this.ref.destroy(),this.ref=null}updateContext(n){return Object.assign(this.ref.context,n),this}},AS=class{constructor(n){this.value=n}getElement(){return this.value}detectChanges(){return this}updateContext(){return this}destroy(){}},die=new T("Component context"),OS=(()=>{let n=class n{constructor(){this.injector=u(de),this.appRef=u(Gn),this.environmentInjector=u(Wt)}createComponent(i,r={}){let o=r.injector??this.injector,a;return r.context&&(a=he(r.context),o=de.create({providers:[{provide:die,useValue:a.asReadonly()}],parent:o})),new TS({component:i,vcr:r.vcr,injector:o,appRef:this.appRef,environmentInjector:r.environmentInjector||this.environmentInjector,contextSignal:a})}createTemplate(i,r={}){return new IS({vcr:r.vcr,appRef:this.appRef,tpl:i,context:r.context,injector:r.injector})}createView(i,r={}){if(Ig(i))return this.createTemplate(i,r);if(gu(i))return this.createComponent(i,r);if(G3(i))return new AS(i);throw"Type of content is not supported"}};n.\u0275fac=function(r){return new(r||n)},n.\u0275prov=O({token:n,factory:n.\u0275fac,providedIn:"root"});let t=n;return t})();var uie=(()=>{let n=class n{constructor(){this.content=ne()}};n.\u0275fac=function(r){return new(r||n)},n.\u0275cmp=E({type:n,selectors:[["dynamic-view"]],inputs:{content:[1,"content"]},decls:1,vars:1,consts:[[3,"innerHTML"]],template:function(r,o){r&1&&ai(0,"div",0),r&2&&si("innerHTML",o.content(),Zp)},encapsulation:2});let t=n;return t})(),Cx=(()=>{let n=class n{constructor(){this.view=ne(void 0,{alias:"dynamicView"}),this.injector=ne(void 0,{alias:"dynamicViewInjector"}),this.context=ne(void 0,{alias:"dynamicViewContext"}),this.inputs=ne(void 0,{alias:"dynamicViewInputs"}),this.defaultTpl=u(te),this.vcr=u(nt),this.viewService=u(OS)}ngOnInit(){this.resolveContentType()}ngOnChanges(i){let r=i.view&&!i.view.isFirstChange(),o=i.context&&!i.context.isFirstChange(),a=i.inputs&&!i.inputs.isFirstChange();r?this.resolveContentType():o?this.viewRef.updateContext(this.context()):gu(this.view())&&a&&this.viewRef.setInputs(this.inputs()||{})}resolveContentType(){this.viewRef?.destroy();let i=this.view(),r=this.injector(),o=this.context();if(G3(i))(this.viewRef=this.viewService.createComponent(uie,{vcr:this.vcr,injector:r})).setInput("content",i).detectChanges();else if(gu(i)){this.viewRef=this.viewService.createComponent(i,{vcr:this.vcr,injector:r??this.vcr.injector,context:o});let a=this.inputs();a&&this.viewRef.setInputs(a)}else this.viewRef=this.viewService.createView(i||this.defaultTpl,{vcr:this.vcr,injector:r??this.vcr.injector,context:o})}ngOnDestroy(){this.viewRef?.destroy()}};n.\u0275fac=function(r){return new(r||n)},n.\u0275dir=F({type:n,selectors:[["","dynamicView",""]],inputs:{view:[1,"dynamicView","view"],injector:[1,"dynamicViewInjector","injector"],context:[1,"dynamicViewContext","context"],inputs:[1,"dynamicViewInputs","inputs"]},features:[Ae]});let t=n;return t})();function mie(t,n){if(t&1&&(_(0,` `),k(1,"hot-toast-loader",1),_(2,` - `)),t&2){let e=C(2);g(),y("theme",e.theme)}}function pie(t,n){if(t&1&&(_(0,` + `)),t&2){let e=C(2);g(),y("theme",e.theme)}}function hie(t,n){if(t&1&&(_(0,` `),h(1,"div"),_(2,` `),k(3,"hot-toast-error",1),_(4,` `),p(),_(5,` - `)),t&2){let e=C(3);g(3),y("theme",e.theme)}}function fie(t,n){if(t&1&&(_(0,` + `)),t&2){let e=C(3);g(3),y("theme",e.theme)}}function pie(t,n){if(t&1&&(_(0,` `),h(1,"div"),_(2,` `),k(3,"hot-toast-checkmark",1),_(4,` `),p(),_(5,` - `)),t&2){let e=C(3);g(3),y("theme",e.theme)}}function gie(t,n){if(t&1&&(_(0,` + `)),t&2){let e=C(3);g(3),y("theme",e.theme)}}function fie(t,n){if(t&1&&(_(0,` `),h(1,"div"),_(2,` `),k(3,"hot-toast-warning",1),_(4,` `),p(),_(5,` - `)),t&2){let e=C(3);g(3),y("theme",e.theme)}}function _ie(t,n){if(t&1&&(_(0,` + `)),t&2){let e=C(3);g(3),y("theme",e.theme)}}function gie(t,n){if(t&1&&(_(0,` `),h(1,"div"),_(2,` `),k(3,"hot-toast-info",1),_(4,` `),p(),_(5,` - `)),t&2){let e=C(3);g(3),y("theme",e.theme)}}function bie(t,n){if(t&1&&(_(0,` + `)),t&2){let e=C(3);g(3),y("theme",e.theme)}}function _ie(t,n){if(t&1&&(_(0,` `),h(1,"div",2),_(2,` `),h(3,"div"),_(4,` - `),N(5,pie,6,1)(6,fie,6,1)(7,gie,6,1)(8,_ie,6,1),_(9,` + `),N(5,hie,6,1)(6,pie,6,1)(7,fie,6,1)(8,gie,6,1),_(9,` `),p(),_(10,` `),p(),_(11,` - `)),t&2){let e,i=C(2);g(5),L((e=i.type)==="error"?5:e==="success"?6:e==="warning"?7:e==="info"?8:-1)}}function vie(t,n){if(t&1&&(_(0,` + `)),t&2){let e,i=C(2);g(5),L((e=i.type)==="error"?5:e==="success"?6:e==="warning"?7:e==="info"?8:-1)}}function bie(t,n){if(t&1&&(_(0,` `),h(1,"div",0),_(2,` - `),N(3,hie,3,1),N(4,bie,12,1),p(),_(5,` -`)),t&2){let e=C();g(3),L(e.type==="loading"?3:-1),g(),L(e.type!=="loading"?4:-1)}}function yie(t,n){t&1&&Ge(0)}var Z3=["hotToastBarBase"];function xie(t,n){if(t&1&&(_(0,` + `),N(3,mie,3,1),N(4,_ie,12,1),p(),_(5,` +`)),t&2){let e=C();g(3),L(e.type==="loading"?3:-1),g(),L(e.type!=="loading"?4:-1)}}function vie(t,n){t&1&&Ge(0)}var K3=["hotToastBarBase"];function yie(t,n){if(t&1&&(_(0,` `),h(1,"hot-toast-animated-icon",7),_(2),p(),_(3,` - `)),t&2){let e=C(2);g(),y("iconTheme",e.toast.iconTheme),g(),H(e.toast.icon)}}function Cie(t,n){t&1&&Ge(0)}function wie(t,n){if(t&1&&(_(0,` + `)),t&2){let e=C(2);g(),y("iconTheme",e.toast.iconTheme),g(),H(e.toast.icon)}}function xie(t,n){t&1&&Ge(0)}function Cie(t,n){if(t&1&&(_(0,` `),h(1,"div"),_(2,` - `),R(3,Cie,1,0,"ng-container",8),_(4,` + `),R(3,xie,1,0,"ng-container",8),_(4,` `),p(),_(5,` - `)),t&2){let e=C(2);g(3),y("dynamicView",e.toast.icon)}}function Die(t,n){if(t&1&&(_(0," "),N(1,xie,4,2)(2,wie,6,1)),t&2){let e=C();g(),L(e.isIconString?1:2)}}function Eie(t,n){if(t&1&&(_(0,` + `)),t&2){let e=C(2);g(3),y("dynamicView",e.toast.icon)}}function wie(t,n){if(t&1&&(_(0," "),N(1,yie,4,2)(2,Cie,6,1)),t&2){let e=C();g(),L(e.isIconString?1:2)}}function Die(t,n){if(t&1&&(_(0,` `),k(1,"hot-toast-indicator",9),_(2,` - `)),t&2){let e=C();g(),y("theme",e.toast.iconTheme)("type",e.toast.type)}}function Mie(t,n){t&1&&Ge(0)}function kie(t,n){if(t&1){let e=Y();_(0,` + `)),t&2){let e=C();g(),y("theme",e.toast.iconTheme)("type",e.toast.type)}}function Eie(t,n){t&1&&Ge(0)}function Mie(t,n){if(t&1){let e=Y();_(0,` `),h(1,"button",10),S("click",function(){I(e);let r=C();return A(r.close())}),p(),_(2,` - `)}if(t&2){let e=C();g(),Js(e.toast.closeStyle)}}var Sie=(t,n)=>n.id;function Tie(t,n){if(t&1&&(_(0,` + `)}if(t&2){let e=C();g(),Js(e.toast.closeStyle)}}var kie=(t,n)=>n.id;function Sie(t,n){if(t&1&&(_(0,` `),k(1,"hot-toast-animated-icon",7),_(2,` - `)),t&2){let e=C(2);g(),y("iconTheme",e.toast.iconTheme)("icon",e.toast.icon)}}function Iie(t,n){t&1&&Ge(0)}function Aie(t,n){if(t&1&&(_(0,` + `)),t&2){let e=C(2);g(),y("iconTheme",e.toast.iconTheme)("icon",e.toast.icon)}}function Tie(t,n){t&1&&Ge(0)}function Iie(t,n){if(t&1&&(_(0,` `),h(1,"div"),_(2,` - `),R(3,Iie,1,0,"ng-container",8),_(4,` + `),R(3,Tie,1,0,"ng-container",8),_(4,` `),p(),_(5,` - `)),t&2){let e=C(2);g(3),y("dynamicView",e.toast.icon)}}function Oie(t,n){if(t&1&&(_(0," "),N(1,Tie,3,2)(2,Aie,6,1)),t&2){let e=C();g(),L(e.isIconString?1:2)}}function Rie(t,n){if(t&1&&(_(0,` + `)),t&2){let e=C(2);g(3),y("dynamicView",e.toast.icon)}}function Aie(t,n){if(t&1&&(_(0," "),N(1,Sie,3,2)(2,Iie,6,1)),t&2){let e=C();g(),L(e.isIconString?1:2)}}function Oie(t,n){if(t&1&&(_(0,` `),k(1,"hot-toast-indicator",9),_(2,` - `)),t&2){let e=C();g(),y("theme",e.toast.iconTheme)("type",e.toast.type)}}function Pie(t,n){t&1&&Ge(0)}function Fie(t,n){if(t&1){let e=Y();_(0,` + `)),t&2){let e=C();g(),y("theme",e.toast.iconTheme)("type",e.toast.type)}}function Rie(t,n){t&1&&Ge(0)}function Pie(t,n){if(t&1){let e=Y();_(0,` `),h(1,"button",10),S("click",function(){I(e);let r=C();return A(r.toggleToastGroup())}),p(),_(2,` - `)}if(t&2){let e=C();g(),Js(e.toast.group.btnStyle),G("expanded",e.isExpanded),X("aria-label",e.isExpanded?"Collapse":"Expand")}}function Nie(t,n){if(t&1){let e=Y();_(0,` + `)}if(t&2){let e=C();g(),Js(e.toast.group.btnStyle),G("expanded",e.isExpanded),X("aria-label",e.isExpanded?"Collapse":"Expand")}}function Fie(t,n){if(t&1){let e=Y();_(0,` `),h(1,"button",11),S("click",function(){I(e);let r=C();return A(r.close())}),p(),_(2,` - `)}if(t&2){let e=C();g(),Js(e.toast.closeStyle)}}function Lie(t,n){if(t&1){let e=Y();_(0,` + `)}if(t&2){let e=C();g(),Js(e.toast.closeStyle)}}function Nie(t,n){if(t&1){let e=Y();_(0,` `),h(1,"hot-toast-group-item",13),S("height",function(r){let o=I(e).$implicit,a=C(2);return A(a.updateHeight(r,o))})("beforeClosed",function(){let r=I(e).$implicit,o=C(2);return A(o.beforeClosedGroupItem(r))})("afterClosed",function(r){I(e);let o=C(2);return A(o.afterClosedGroupItem(r))}),p(),_(2,` - `)}if(t&2){let e=n.$implicit,i=n.$index,r=C(2);g(),y("toast",e)("offset",r.calculateOffset(e.id))("toastRef",r.toastRef.groupRefs[i])("toastsAfter",(e.autoClose?r.groupChildrenToasts.length:r.visibleToasts.length)-1-i)("defaultConfig",r.defaultConfig)("isShowingAllToasts",r.isShowingAllToasts)}}function Vie(t,n){if(t&1&&(_(0,` + `)}if(t&2){let e=n.$implicit,i=n.$index,r=C(2);g(),y("toast",e)("offset",r.calculateOffset(e.id))("toastRef",r.toastRef.groupRefs[i])("toastsAfter",(e.autoClose?r.groupChildrenToasts.length:r.visibleToasts.length)-1-i)("defaultConfig",r.defaultConfig)("isShowingAllToasts",r.isShowingAllToasts)}}function Lie(t,n){if(t&1&&(_(0,` `),h(1,"div",12),_(2,` - `),xt(3,Lie,3,6,null,null,Sie),p(),_(5,` - `)),t&2){let e=C();g(),it(e.toast.group==null?null:e.toast.group.className),Dt("--hot-toast-group-height",e.groupHeight+"px"),g(2),Ct(e.groupChildrenToasts)}}function Bie(t,n){t&1&&_(0,` - `)}function jie(t,n){if(t&1){let e=Y();_(0,` + `),xt(3,Nie,3,6,null,null,kie),p(),_(5,` + `)),t&2){let e=C();g(),it(e.toast.group==null?null:e.toast.group.className),Dt("--hot-toast-group-height",e.groupHeight+"px"),g(2),Ct(e.groupChildrenToasts)}}function Vie(t,n){t&1&&_(0,` + `)}function Bie(t,n){if(t&1){let e=Y();_(0,` `),h(1,"hot-toast",2),S("showAllToasts",function(r){I(e);let o=C(2);return A(o.showAllToasts(r))})("height",function(r){I(e);let o=C().$implicit,a=C();return A(a.updateHeight(r,o))})("beforeClosed",function(){I(e);let r=C().$implicit,o=C();return A(o.beforeClosed(r))})("afterClosed",function(r){I(e);let o=C(2);return A(o.afterClosed(r))})("toggleGroup",function(r){I(e);let o=C(2);return A(o.toggleGroup(r))}),p(),_(2,` - `)}if(t&2){let e=C(),i=e.$implicit,r=e.$index,o=C();g(),y("toast",i)("offset",o.calculateOffset(i.id,i.position))("toastRef",o.toastRefs[r])("toastsAfter",(i.autoClose?o.toasts.length:o.getVisibleToasts(i.position).length)-1-r)("defaultConfig",o.defaultConfig)("isShowingAllToasts",o.isShowingAllToasts)}}function Hie(t,n){if(t&1&&(_(0,` - `),N(1,Bie,1,0)(2,jie,3,6)),t&2){let e=n.$implicit;g(),L(e.group!=null&&e.group.parent?1:2)}}var Y3={blank:4e3,error:4e3,success:4e3,loading:3e4,warning:4e3,info:4e3},Sh=800,wx=350,zie=8,PS=.05,Uie=1,Ag=class{constructor(n){this.toast=n,this.groupRefs=[],this.groupExpanded=!1,this._onClosed=new z,this._onGroupToggle=new z}set data(n){this.toast.data=n}get data(){return this.toast.data}set dispose(n){this._dispose=n}getToast(){return this.toast}appendTo(n,e){let{dispose:i,updateMessage:r,updateToast:o,afterClosed:a,afterGroupToggled:s,afterGroupRefsAttached:l}=n.addToast(this,e);return this.dispose=i,this.updateMessage=r,this.updateToast=o,this.afterClosed=Wu(this._onClosed.asObservable(),a),this.afterGroupToggled=Wu(this._onGroupToggle.asObservable(),s),this.afterGroupRefsAttached=l,this}close(n={dismissedByAction:!1}){this.groupRefs.forEach(e=>e.close()),this._dispose(),this._onClosed.next({dismissedByAction:n.dismissedByAction,id:this.toast.id}),this._onClosed.complete()}toggleGroup(n={byAction:!1}){this.groupExpanded=!this.groupExpanded,this._onGroupToggle.next({byAction:n.byAction,id:this.toast.id,event:this.groupExpanded?"expand":"collapse"})}show(){this.toast.visible=!0}},Dx=(t,n,e)=>{t.setStyle(n,"animation",e)},$ie=(()=>{let n=class n{};n.\u0275fac=function(r){return new(r||n)},n.\u0275cmp=E({type:n,selectors:[["hot-toast-loader"]],inputs:{theme:"theme"},decls:2,vars:4,consts:[[1,"hot-toast-loader-icon"]],template:function(r,o){r&1&&(ai(0,"div",0),_(1,` -`)),r&2&&Dt("border-color",o.theme==null?null:o.theme.primary)("border-right-color",o.theme==null?null:o.theme.secondary)},encapsulation:2,changeDetection:0});let t=n;return t})(),Wie=(()=>{let n=class n{};n.\u0275fac=function(r){return new(r||n)},n.\u0275cmp=E({type:n,selectors:[["hot-toast-error"]],inputs:{theme:"theme"},decls:2,vars:4,consts:[[1,"hot-toast-error-icon"]],template:function(r,o){r&1&&(ai(0,"div",0),_(1,` -`)),r&2&&Dt("--error-primary",o.theme==null?null:o.theme.primary)("--error-secondary",o.theme==null?null:o.theme.secondary)},encapsulation:2,changeDetection:0});let t=n;return t})(),Gie=(()=>{let n=class n{};n.\u0275fac=function(r){return new(r||n)},n.\u0275cmp=E({type:n,selectors:[["hot-toast-checkmark"]],inputs:{theme:"theme"},decls:2,vars:4,consts:[[1,"hot-toast-checkmark-icon"]],template:function(r,o){r&1&&(ai(0,"div",0),_(1,` -`)),r&2&&Dt("--check-primary",o.theme==null?null:o.theme.primary)("--check-secondary",o.theme==null?null:o.theme.secondary)},encapsulation:2,changeDetection:0});let t=n;return t})(),qie=(()=>{let n=class n{};n.\u0275fac=function(r){return new(r||n)},n.\u0275cmp=E({type:n,selectors:[["hot-toast-warning"]],inputs:{theme:"theme"},decls:2,vars:4,consts:[[1,"hot-toast-warning-icon"]],template:function(r,o){r&1&&(ai(0,"div",0),_(1,` -`)),r&2&&Dt("--warn-primary",o.theme==null?null:o.theme.primary)("--warn-secondary",o.theme==null?null:o.theme.secondary)},encapsulation:2,changeDetection:0});let t=n;return t})(),Yie=(()=>{let n=class n{};n.\u0275fac=function(r){return new(r||n)},n.\u0275cmp=E({type:n,selectors:[["hot-toast-info"]],inputs:{theme:"theme"},decls:2,vars:4,consts:[[1,"hot-toast-info-icon"]],template:function(r,o){r&1&&(ai(0,"div",0),_(1,` -`)),r&2&&Dt("--info-primary",o.theme==null?null:o.theme.primary)("--info-secondary",o.theme==null?null:o.theme.secondary)},encapsulation:2,changeDetection:0});let t=n;return t})(),X3=(()=>{let n=class n{};n.\u0275fac=function(r){return new(r||n)},n.\u0275cmp=E({type:n,selectors:[["hot-toast-indicator"]],inputs:{theme:"theme",type:"type"},decls:1,vars:1,consts:[[1,"hot-toast-indicator-wrapper"],[3,"theme"],[1,"hot-toast-status-wrapper"]],template:function(r,o){r&1&&N(0,vie,6,2),r&2&&L(o.type!=="blank"?0:-1)},dependencies:[$ie,Wie,Gie,qie,Yie],encapsulation:2,changeDetection:0});let t=n;return t})(),J3=(()=>{let n=class n{};n.\u0275fac=function(r){return new(r||n)},n.\u0275cmp=E({type:n,selectors:[["hot-toast-animated-icon"]],inputs:{iconTheme:"iconTheme",icon:"icon"},decls:5,vars:3,consts:[[1,"hot-toast-animated-icon"],[4,"dynamicView"]],template:function(r,o){r&1&&(h(0,"div",0),_(1,` - `),R(2,yie,1,0,"ng-container",1),_(3,` + `)}if(t&2){let e=C(),i=e.$implicit,r=e.$index,o=C();g(),y("toast",i)("offset",o.calculateOffset(i.id,i.position))("toastRef",o.toastRefs[r])("toastsAfter",(i.autoClose?o.toasts.length:o.getVisibleToasts(i.position).length)-1-r)("defaultConfig",o.defaultConfig)("isShowingAllToasts",o.isShowingAllToasts)}}function jie(t,n){if(t&1&&(_(0,` + `),N(1,Vie,1,0)(2,Bie,3,6)),t&2){let e=n.$implicit;g(),L(e.group!=null&&e.group.parent?1:2)}}var q3={blank:4e3,error:4e3,success:4e3,loading:3e4,warning:4e3,info:4e3},Sh=800,wx=350,Hie=8,PS=.05,zie=1,Ag=class{constructor(n){this.toast=n,this.groupRefs=[],this.groupExpanded=!1,this._onClosed=new z,this._onGroupToggle=new z}set data(n){this.toast.data=n}get data(){return this.toast.data}set dispose(n){this._dispose=n}getToast(){return this.toast}appendTo(n,e){let{dispose:i,updateMessage:r,updateToast:o,afterClosed:a,afterGroupToggled:s,afterGroupRefsAttached:l}=n.addToast(this,e);return this.dispose=i,this.updateMessage=r,this.updateToast=o,this.afterClosed=Wu(this._onClosed.asObservable(),a),this.afterGroupToggled=Wu(this._onGroupToggle.asObservable(),s),this.afterGroupRefsAttached=l,this}close(n={dismissedByAction:!1}){this.groupRefs.forEach(e=>e.close()),this._dispose(),this._onClosed.next({dismissedByAction:n.dismissedByAction,id:this.toast.id}),this._onClosed.complete()}toggleGroup(n={byAction:!1}){this.groupExpanded=!this.groupExpanded,this._onGroupToggle.next({byAction:n.byAction,id:this.toast.id,event:this.groupExpanded?"expand":"collapse"})}show(){this.toast.visible=!0}},Dx=(t,n,e)=>{t.setStyle(n,"animation",e)},Uie=(()=>{let n=class n{};n.\u0275fac=function(r){return new(r||n)},n.\u0275cmp=E({type:n,selectors:[["hot-toast-loader"]],inputs:{theme:"theme"},decls:2,vars:4,consts:[[1,"hot-toast-loader-icon"]],template:function(r,o){r&1&&(ai(0,"div",0),_(1,` +`)),r&2&&Dt("border-color",o.theme==null?null:o.theme.primary)("border-right-color",o.theme==null?null:o.theme.secondary)},encapsulation:2,changeDetection:0});let t=n;return t})(),$ie=(()=>{let n=class n{};n.\u0275fac=function(r){return new(r||n)},n.\u0275cmp=E({type:n,selectors:[["hot-toast-error"]],inputs:{theme:"theme"},decls:2,vars:4,consts:[[1,"hot-toast-error-icon"]],template:function(r,o){r&1&&(ai(0,"div",0),_(1,` +`)),r&2&&Dt("--error-primary",o.theme==null?null:o.theme.primary)("--error-secondary",o.theme==null?null:o.theme.secondary)},encapsulation:2,changeDetection:0});let t=n;return t})(),Wie=(()=>{let n=class n{};n.\u0275fac=function(r){return new(r||n)},n.\u0275cmp=E({type:n,selectors:[["hot-toast-checkmark"]],inputs:{theme:"theme"},decls:2,vars:4,consts:[[1,"hot-toast-checkmark-icon"]],template:function(r,o){r&1&&(ai(0,"div",0),_(1,` +`)),r&2&&Dt("--check-primary",o.theme==null?null:o.theme.primary)("--check-secondary",o.theme==null?null:o.theme.secondary)},encapsulation:2,changeDetection:0});let t=n;return t})(),Gie=(()=>{let n=class n{};n.\u0275fac=function(r){return new(r||n)},n.\u0275cmp=E({type:n,selectors:[["hot-toast-warning"]],inputs:{theme:"theme"},decls:2,vars:4,consts:[[1,"hot-toast-warning-icon"]],template:function(r,o){r&1&&(ai(0,"div",0),_(1,` +`)),r&2&&Dt("--warn-primary",o.theme==null?null:o.theme.primary)("--warn-secondary",o.theme==null?null:o.theme.secondary)},encapsulation:2,changeDetection:0});let t=n;return t})(),qie=(()=>{let n=class n{};n.\u0275fac=function(r){return new(r||n)},n.\u0275cmp=E({type:n,selectors:[["hot-toast-info"]],inputs:{theme:"theme"},decls:2,vars:4,consts:[[1,"hot-toast-info-icon"]],template:function(r,o){r&1&&(ai(0,"div",0),_(1,` +`)),r&2&&Dt("--info-primary",o.theme==null?null:o.theme.primary)("--info-secondary",o.theme==null?null:o.theme.secondary)},encapsulation:2,changeDetection:0});let t=n;return t})(),Z3=(()=>{let n=class n{};n.\u0275fac=function(r){return new(r||n)},n.\u0275cmp=E({type:n,selectors:[["hot-toast-indicator"]],inputs:{theme:"theme",type:"type"},decls:1,vars:1,consts:[[1,"hot-toast-indicator-wrapper"],[3,"theme"],[1,"hot-toast-status-wrapper"]],template:function(r,o){r&1&&N(0,bie,6,2),r&2&&L(o.type!=="blank"?0:-1)},dependencies:[Uie,$ie,Wie,Gie,qie],encapsulation:2,changeDetection:0});let t=n;return t})(),X3=(()=>{let n=class n{};n.\u0275fac=function(r){return new(r||n)},n.\u0275cmp=E({type:n,selectors:[["hot-toast-animated-icon"]],inputs:{iconTheme:"iconTheme",icon:"icon"},decls:5,vars:3,consts:[[1,"hot-toast-animated-icon"],[4,"dynamicView"]],template:function(r,o){r&1&&(h(0,"div",0),_(1,` + `),R(2,vie,1,0,"ng-container",1),_(3,` `),p(),_(4,` -`)),r&2&&(Dt("color",o.iconTheme==null?null:o.iconTheme.primary),g(2),y("dynamicView",o.icon))},dependencies:[Cx],encapsulation:2,changeDetection:0});let t=n;return t})(),Qie=(()=>{let n=class n{constructor(){this.offset=0,this._toastsAfter=0,this.isShowingAllToasts=!1,this.height=new U,this.beforeClosed=new U,this.afterClosed=new U,this.showAllToasts=new U,this.toggleGroup=new U,this.isManualClose=!1,this.toastBarBaseStylesSignal=he({}),this.unlisteners=[],this.softClosed=!1,this.injector=u(de),this.renderer=u(je),this.ngZone=u(ae),this.cdr=u(ye)}set toast(i){this._toast=i;let r=this.toastBarBaseStylesSignal(),o=M({},i.style);if(r.animation?.includes("hotToastExitAnimation"))o.animation=r.animation;else{let s=`hotToastEnterAnimation${i.position.includes("top")?"Negative":"Positive"} ${wx}ms cubic-bezier(0.21, 1.02, 0.73, 1) forwards`;o.animation=s}this.toastBarBaseStylesSignal.set(o)}get toast(){return this._toast}get toastsAfter(){return this._toastsAfter}set toastsAfter(i){this._toastsAfter=i}get toastBarBaseHeight(){return this.toastBarBase.nativeElement.offsetHeight}get scale(){return this.defaultConfig.stacking!=="vertical"&&!this.isShowingAllToasts?this.toastsAfter*-PS+1:1}get translateY(){return this.offset*(this.top?1:-1)+"px"}get exitAnimationDelay(){return this.toast.duration+"ms"}get top(){return this.toast.position.includes("top")}get containerPositionStyle(){let i=this.top?{top:0}:{bottom:0},r="translateY(var(--hot-toast-translate-y)) scale(var(--hot-toast-scale))",o=this.toast.position.includes("left")?{left:0}:this.toast.position.includes("right")?{right:0}:{left:0,right:0,justifyContent:"center"};return M(M({transform:r},i),o)}get isIconString(){return typeof this.toast.icon=="string"}get groupChildrenToastRefs(){return this.toastRef.groupRefs.filter(i=>!!i)}set groupChildrenToastRefs(i){this.toastRef.groupRefs=i}get groupChildrenToasts(){return this.groupChildrenToastRefs.map(i=>i.getToast())}get groupHeight(){return this.visibleToasts.map(i=>i.height).reduce((i,r)=>i+r,0)}get isExpanded(){return this.toastRef.groupExpanded}ngOnChanges(i){i.toast&&!i.toast.firstChange&&i.toast.currentValue?.message&&requestAnimationFrame(()=>{this.height.emit(this.toastBarBase.nativeElement.offsetHeight)})}ngOnInit(){Ig(this.toast.message)&&(this.context={$implicit:this.toastRef}),gu(this.toast.message)&&(this.toastComponentInjector=de.create({providers:[{provide:Ag,useValue:this.toastRef}],parent:this.toast.injector||this.injector}));let i=this.toastBarBase.nativeElement;this.ngZone.runOutsideAngular(()=>{this.unlisteners.push(this.renderer.listen(i,"animationstart",r=>{this.isExitAnimation(r)&&this.ngZone.run(()=>{this.renderer.setStyle(i,"pointer-events","none"),this.renderer.setStyle(i.parentElement,"pointer-events","none"),this.beforeClosed.emit()})}),this.renderer.listen(i,"animationend",r=>{this.isEnterAnimation(r)&&this.ngZone.run(()=>{if(this.toast.autoClose){let o=`hotToastExitAnimation${this.top?"Negative":"Positive"} ${Sh}ms forwards cubic-bezier(0.06, 0.71, 0.55, 1) var(--hot-toast-exit-animation-delay) var(--hot-toast-exit-animation-state)`;this.toastBarBaseStylesSignal.set(De(M({},this.toast.style),{animation:o}))}}),this.isExitAnimation(r)&&this.ngZone.run(()=>this.afterClosed.emit({dismissedByAction:this.isManualClose,id:this.toast.id}))}))})}ngAfterViewInit(){let i=this.toastBarBase.nativeElement;requestAnimationFrame(()=>{this.height.emit(i.offsetHeight)}),this.setToastAttributes()}softClose(){let i=`hotToastExitSoftAnimation${this.top?"Negative":"Positive"} ${Sh}ms forwards cubic-bezier(0.06, 0.71, 0.55, 1)`,r=this.toastBarBase.nativeElement;Dx(this.renderer,r,i),this.softClosed=!0}softOpen(){let i=`hotToastEnterSoftAnimation${top?"Negative":"Positive"} ${wx}ms cubic-bezier(0.21, 1.02, 0.73, 1) forwards`,r=this.toastBarBase.nativeElement;Dx(this.renderer,r,i),this.softClosed=!1}close(){this.isManualClose=!0,this.cdr.markForCheck();let i=`hotToastExitAnimation${this.top?"Negative":"Positive"} ${Sh}ms forwards cubic-bezier(0.06, 0.71, 0.55, 1)`;this.toastBarBaseStylesSignal.set(De(M({},this.toast.style),{animation:i}))}handleMouseEnter(){this.showAllToasts.emit(!0)}handleMouseLeave(){this.showAllToasts.emit(!1)}ngOnDestroy(){for(this.close();this.unlisteners.length;)this.unlisteners.pop()()}isExitAnimation(i){return i.animationName.includes("hotToastExitAnimation")}isEnterAnimation(i){return i.animationName.includes("hotToastEnterAnimation")}setToastAttributes(){let i=this.toast.attributes;for(let[r,o]of Object.entries(i))this.renderer.setAttribute(this.toastBarBase.nativeElement,r,o)}get visibleToasts(){return this.groupChildrenToasts.filter(i=>i.visible)}};n.\u0275fac=function(r){return new(r||n)},n.\u0275cmp=E({type:n,selectors:[["hot-toast-group-item"]],viewQuery:function(r,o){if(r&1&&ie(Z3,7),r&2){let a;B(a=j())&&(o.toastBarBase=a.first)}},inputs:{toast:"toast",offset:"offset",defaultConfig:"defaultConfig",toastRef:"toastRef",toastsAfter:"toastsAfter",isShowingAllToasts:"isShowingAllToasts"},outputs:{height:"height",beforeClosed:"beforeClosed",afterClosed:"afterClosed",showAllToasts:"showAllToasts",toggleGroup:"toggleGroup"},features:[Ae],decls:21,vars:25,consts:[["hotToastBarBase",""],[1,"hot-toast-bar-base-container"],[1,"hot-toast-bar-base-wrapper",3,"mouseenter","mouseleave"],[1,"hot-toast-bar-base"],["aria-hidden","true",1,"hot-toast-icon"],[1,"hot-toast-message"],[4,"dynamicView","dynamicViewContext","dynamicViewInjector"],[3,"iconTheme"],[4,"dynamicView"],[3,"theme","type"],["type","button","aria-label","Close",1,"hot-toast-close-btn",3,"click"]],template:function(r,o){if(r&1){let a=Y();h(0,"div",1),_(1,` +`)),r&2&&(Dt("color",o.iconTheme==null?null:o.iconTheme.primary),g(2),y("dynamicView",o.icon))},dependencies:[Cx],encapsulation:2,changeDetection:0});let t=n;return t})(),Yie=(()=>{let n=class n{constructor(){this.offset=0,this._toastsAfter=0,this.isShowingAllToasts=!1,this.height=new U,this.beforeClosed=new U,this.afterClosed=new U,this.showAllToasts=new U,this.toggleGroup=new U,this.isManualClose=!1,this.toastBarBaseStylesSignal=he({}),this.unlisteners=[],this.softClosed=!1,this.injector=u(de),this.renderer=u(je),this.ngZone=u(ae),this.cdr=u(ye)}set toast(i){this._toast=i;let r=this.toastBarBaseStylesSignal(),o=M({},i.style);if(r.animation?.includes("hotToastExitAnimation"))o.animation=r.animation;else{let s=`hotToastEnterAnimation${i.position.includes("top")?"Negative":"Positive"} ${wx}ms cubic-bezier(0.21, 1.02, 0.73, 1) forwards`;o.animation=s}this.toastBarBaseStylesSignal.set(o)}get toast(){return this._toast}get toastsAfter(){return this._toastsAfter}set toastsAfter(i){this._toastsAfter=i}get toastBarBaseHeight(){return this.toastBarBase.nativeElement.offsetHeight}get scale(){return this.defaultConfig.stacking!=="vertical"&&!this.isShowingAllToasts?this.toastsAfter*-PS+1:1}get translateY(){return this.offset*(this.top?1:-1)+"px"}get exitAnimationDelay(){return this.toast.duration+"ms"}get top(){return this.toast.position.includes("top")}get containerPositionStyle(){let i=this.top?{top:0}:{bottom:0},r="translateY(var(--hot-toast-translate-y)) scale(var(--hot-toast-scale))",o=this.toast.position.includes("left")?{left:0}:this.toast.position.includes("right")?{right:0}:{left:0,right:0,justifyContent:"center"};return M(M({transform:r},i),o)}get isIconString(){return typeof this.toast.icon=="string"}get groupChildrenToastRefs(){return this.toastRef.groupRefs.filter(i=>!!i)}set groupChildrenToastRefs(i){this.toastRef.groupRefs=i}get groupChildrenToasts(){return this.groupChildrenToastRefs.map(i=>i.getToast())}get groupHeight(){return this.visibleToasts.map(i=>i.height).reduce((i,r)=>i+r,0)}get isExpanded(){return this.toastRef.groupExpanded}ngOnChanges(i){i.toast&&!i.toast.firstChange&&i.toast.currentValue?.message&&requestAnimationFrame(()=>{this.height.emit(this.toastBarBase.nativeElement.offsetHeight)})}ngOnInit(){Ig(this.toast.message)&&(this.context={$implicit:this.toastRef}),gu(this.toast.message)&&(this.toastComponentInjector=de.create({providers:[{provide:Ag,useValue:this.toastRef}],parent:this.toast.injector||this.injector}));let i=this.toastBarBase.nativeElement;this.ngZone.runOutsideAngular(()=>{this.unlisteners.push(this.renderer.listen(i,"animationstart",r=>{this.isExitAnimation(r)&&this.ngZone.run(()=>{this.renderer.setStyle(i,"pointer-events","none"),this.renderer.setStyle(i.parentElement,"pointer-events","none"),this.beforeClosed.emit()})}),this.renderer.listen(i,"animationend",r=>{this.isEnterAnimation(r)&&this.ngZone.run(()=>{if(this.toast.autoClose){let o=`hotToastExitAnimation${this.top?"Negative":"Positive"} ${Sh}ms forwards cubic-bezier(0.06, 0.71, 0.55, 1) var(--hot-toast-exit-animation-delay) var(--hot-toast-exit-animation-state)`;this.toastBarBaseStylesSignal.set(De(M({},this.toast.style),{animation:o}))}}),this.isExitAnimation(r)&&this.ngZone.run(()=>this.afterClosed.emit({dismissedByAction:this.isManualClose,id:this.toast.id}))}))})}ngAfterViewInit(){let i=this.toastBarBase.nativeElement;requestAnimationFrame(()=>{this.height.emit(i.offsetHeight)}),this.setToastAttributes()}softClose(){let i=`hotToastExitSoftAnimation${this.top?"Negative":"Positive"} ${Sh}ms forwards cubic-bezier(0.06, 0.71, 0.55, 1)`,r=this.toastBarBase.nativeElement;Dx(this.renderer,r,i),this.softClosed=!0}softOpen(){let i=`hotToastEnterSoftAnimation${top?"Negative":"Positive"} ${wx}ms cubic-bezier(0.21, 1.02, 0.73, 1) forwards`,r=this.toastBarBase.nativeElement;Dx(this.renderer,r,i),this.softClosed=!1}close(){this.isManualClose=!0,this.cdr.markForCheck();let i=`hotToastExitAnimation${this.top?"Negative":"Positive"} ${Sh}ms forwards cubic-bezier(0.06, 0.71, 0.55, 1)`;this.toastBarBaseStylesSignal.set(De(M({},this.toast.style),{animation:i}))}handleMouseEnter(){this.showAllToasts.emit(!0)}handleMouseLeave(){this.showAllToasts.emit(!1)}ngOnDestroy(){for(this.close();this.unlisteners.length;)this.unlisteners.pop()()}isExitAnimation(i){return i.animationName.includes("hotToastExitAnimation")}isEnterAnimation(i){return i.animationName.includes("hotToastEnterAnimation")}setToastAttributes(){let i=this.toast.attributes;for(let[r,o]of Object.entries(i))this.renderer.setAttribute(this.toastBarBase.nativeElement,r,o)}get visibleToasts(){return this.groupChildrenToasts.filter(i=>i.visible)}};n.\u0275fac=function(r){return new(r||n)},n.\u0275cmp=E({type:n,selectors:[["hot-toast-group-item"]],viewQuery:function(r,o){if(r&1&&ie(K3,7),r&2){let a;B(a=j())&&(o.toastBarBase=a.first)}},inputs:{toast:"toast",offset:"offset",defaultConfig:"defaultConfig",toastRef:"toastRef",toastsAfter:"toastsAfter",isShowingAllToasts:"isShowingAllToasts"},outputs:{height:"height",beforeClosed:"beforeClosed",afterClosed:"afterClosed",showAllToasts:"showAllToasts",toggleGroup:"toggleGroup"},features:[Ae],decls:21,vars:25,consts:[["hotToastBarBase",""],[1,"hot-toast-bar-base-container"],[1,"hot-toast-bar-base-wrapper",3,"mouseenter","mouseleave"],[1,"hot-toast-bar-base"],["aria-hidden","true",1,"hot-toast-icon"],[1,"hot-toast-message"],[4,"dynamicView","dynamicViewContext","dynamicViewInjector"],[3,"iconTheme"],[4,"dynamicView"],[3,"theme","type"],["type","button","aria-label","Close",1,"hot-toast-close-btn",3,"click"]],template:function(r,o){if(r&1){let a=Y();h(0,"div",1),_(1,` `),h(2,"div",2),S("mouseenter",function(){return I(a),A(o.handleMouseEnter())})("mouseleave",function(){return I(a),A(o.handleMouseLeave())}),_(3,` `),h(4,"div",3,0),_(6,` `),h(7,"div",4),_(8,` - `),N(9,Die,3,1)(10,Eie,3,2),p(),_(11,` + `),N(9,wie,3,1)(10,Die,3,2),p(),_(11,` `),h(12,"div",5),_(13,` - `),R(14,Mie,1,0,"ng-container",6),_(15,` + `),R(14,Eie,1,0,"ng-container",6),_(15,` `),p(),_(16,` - `),N(17,kie,3,2),p(),_(18,` + `),N(17,Mie,3,2),p(),_(18,` `),p(),_(19,` `),p(),_(20,` -`)}r&2&&(Js(o.containerPositionStyle),it("hot-toast-theme-"+o.toast.theme),Dt("--hot-toast-scale",o.scale)("--hot-toast-translate-y",o.translateY),g(4),Js(o.toastBarBaseStylesSignal()),it(o.toast.className),Dt("--hot-toast-animation-state",o.isManualClose?"running":"paused")("--hot-toast-exit-animation-state",o.isShowingAllToasts?"paused":"running")("--hot-toast-exit-animation-delay",o.exitAnimationDelay),X("aria-live",o.toast.ariaLive)("role",o.toast.role),g(5),L(o.toast.icon!==void 0?9:10),g(5),y("dynamicView",o.toast.message)("dynamicViewContext",o.context)("dynamicViewInjector",o.toastComponentInjector),g(3),L(o.toast.dismissible?17:-1))},dependencies:[J3,X3,Cx],encapsulation:2,changeDetection:0});let t=n;return t})(),Q3=(()=>{let n=class n{constructor(){this.offset=0,this._toastsAfter=0,this.isShowingAllToasts=!1,this.height=new U,this.beforeClosed=new U,this.afterClosed=new U,this.showAllToasts=new U,this.toggleGroup=new U,this.isManualClose=!1,this.isExpanded=!1,this.toastBarBaseStylesSignal=he({}),this.unlisteners=[],this.softClosed=!1,this.groupRefs=[],this.injector=u(de),this.renderer=u(je),this.ngZone=u(ae),this.cdr=u(ye)}set toast(i){this._toast=i;let r=this.toastBarBaseStylesSignal(),o=M({},i.style);if(r.animation?.includes("hotToastExitAnimation"))o.animation=r.animation;else{let s=`hotToastEnterAnimation${i.position.includes("top")?"Negative":"Positive"} ${wx}ms cubic-bezier(0.21, 1.02, 0.73, 1) forwards`;o.animation=s}this.toastBarBaseStylesSignal.set(o)}get toast(){return this._toast}get toastsAfter(){return this._toastsAfter}set toastsAfter(i){this._toastsAfter=i,this.defaultConfig?.visibleToasts>0&&(this.toast.autoClose||(i>=this.defaultConfig?.visibleToasts?this.softClose():this.softClosed&&this.softOpen()))}get toastBarBaseHeight(){return this.toastBarBase.nativeElement.offsetHeight}get scale(){return this.defaultConfig.stacking!=="vertical"&&!this.isShowingAllToasts?this.toastsAfter*-PS+1:1}get translateY(){return this.offset*(this.top?1:-1)+"px"}get exitAnimationDelay(){return this.toast.duration+"ms"}get top(){return this.toast.position.includes("top")}get containerPositionStyle(){let i=this.top?{top:0}:{bottom:0},r="translateY(var(--hot-toast-translate-y)) scale(var(--hot-toast-scale))",o=this.toast.position.includes("left")?{left:0}:this.toast.position.includes("right")?{right:0}:{left:0,right:0,justifyContent:"center"};return M(M({transform:r},i),o)}get isIconString(){return typeof this.toast.icon=="string"}get groupChildrenToastRefs(){return this.groupRefs.filter(i=>!!i)}set groupChildrenToastRefs(i){this.groupRefs=i,this.toastRef.groupRefs=i}get groupChildrenToasts(){return this.groupChildrenToastRefs.map(i=>i.getToast())}get groupHeight(){return this.visibleToasts.slice(-this.defaultConfig.visibleToasts).map(i=>i.height).reduce((i,r)=>i+r,0)}get visibleToasts(){return this.groupChildrenToasts.filter(i=>i.visible)}ngDoCheck(){this.toastRef.groupRefs.length!==this.groupRefs.length&&(this.groupRefs=this.toastRef.groupRefs.slice(),this.cdr.markForCheck(),this.emiHeightWithGroup(this.isExpanded)),this.toastRef.groupExpanded!==this.isExpanded&&(this.isExpanded=this.toastRef.groupExpanded,this.cdr.markForCheck(),this.emiHeightWithGroup(this.isExpanded))}ngOnChanges(i){i.toast&&!i.toast.firstChange&&i.toast.currentValue?.message&&this.emiHeightWithGroup(this.isExpanded)}ngOnInit(){Ig(this.toast.message)&&(this.context={$implicit:this.toastRef}),gu(this.toast.message)&&(this.toastComponentInjector=de.create({providers:[{provide:Ag,useValue:this.toastRef}],parent:this.toast.injector||this.injector}));let i=this.toastBarBase.nativeElement;this.ngZone.runOutsideAngular(()=>{this.unlisteners.push(this.renderer.listen(i,"animationstart",r=>{this.isExitAnimation(r)&&this.ngZone.run(()=>{this.renderer.setStyle(i,"pointer-events","none"),this.renderer.setStyle(i.parentElement,"pointer-events","none"),this.beforeClosed.emit()})}),this.renderer.listen(i,"animationend",r=>{this.isEnterAnimation(r)&&this.ngZone.run(()=>{if(this.toast.autoClose){let o=`hotToastExitAnimation${this.top?"Negative":"Positive"} ${Sh}ms forwards cubic-bezier(0.06, 0.71, 0.55, 1) var(--hot-toast-exit-animation-delay) var(--hot-toast-exit-animation-state)`;this.toastBarBaseStylesSignal.set(De(M({},this.toast.style),{animation:o}))}}),this.isExitAnimation(r)&&this.ngZone.run(()=>this.afterClosed.emit({dismissedByAction:this.isManualClose,id:this.toast.id}))}))})}ngAfterViewInit(){let i=this.toastBarBase.nativeElement;requestAnimationFrame(()=>{this.height.emit(i.offsetHeight)}),this.setToastAttributes()}softClose(){let i=`hotToastExitSoftAnimation${this.top?"Negative":"Positive"} ${Sh}ms forwards cubic-bezier(0.06, 0.71, 0.55, 1)`,r=this.toastBarBase.nativeElement;Dx(this.renderer,r,i),this.softClosed=!0,this.isExpanded&&this.toggleToastGroup()}softOpen(){let i=`hotToastEnterSoftAnimation${top?"Negative":"Positive"} ${wx}ms cubic-bezier(0.21, 1.02, 0.73, 1) forwards`,r=this.toastBarBase.nativeElement;Dx(this.renderer,r,i),this.softClosed=!1}close(){this.isManualClose=!0,this.cdr.markForCheck();let i=`hotToastExitAnimation${this.top?"Negative":"Positive"} ${Sh}ms forwards cubic-bezier(0.06, 0.71, 0.55, 1)`;this.toastBarBaseStylesSignal.set(De(M({},this.toast.style),{animation:i}))}handleMouseEnter(){this.showAllToasts.emit(!0)}handleMouseLeave(){this.showAllToasts.emit(!1)}ngOnDestroy(){for(this.close();this.unlisteners.length;)this.unlisteners.pop()()}isExitAnimation(i){return i.animationName.includes("hotToastExitAnimation")}isEnterAnimation(i){return i.animationName.includes("hotToastEnterAnimation")}setToastAttributes(){let i=this.toast.attributes;for(let[r,o]of Object.entries(i))this.renderer.setAttribute(this.toastBarBase.nativeElement,r,o)}calculateOffset(i){let r=this.visibleToasts,o=r.findIndex(s=>s.id===i);return o!==-1?r.slice(...this.defaultConfig.reverseOrder?[o+1]:[0,o]).reduce((s,l,c)=>this.defaultConfig.visibleToasts!==0&&co.id===i.id)>-1&&(this.groupChildrenToastRefs=this.groupChildrenToastRefs.filter(o=>o.getToast().id!==i.id),this.cdr.markForCheck())}toggleToastGroup(){let i=this.isExpanded?"collapse":"expand";this.toggleGroup.emit({byAction:!0,event:i,id:this.toast.id}),this.emiHeightWithGroup(i==="expand")}emiHeightWithGroup(i){requestAnimationFrame(i?()=>{this.height.emit(this.toastBarBase.nativeElement.offsetHeight+this.groupHeight)}:()=>{this.height.emit(this.toastBarBase.nativeElement.offsetHeight)})}};n.\u0275fac=function(r){return new(r||n)},n.\u0275cmp=E({type:n,selectors:[["hot-toast"]],viewQuery:function(r,o){if(r&1&&ie(Z3,7),r&2){let a;B(a=j())&&(o.toastBarBase=a.first)}},inputs:{toast:"toast",offset:"offset",defaultConfig:"defaultConfig",toastRef:"toastRef",toastsAfter:"toastsAfter",isShowingAllToasts:"isShowingAllToasts"},outputs:{height:"height",beforeClosed:"beforeClosed",afterClosed:"afterClosed",showAllToasts:"showAllToasts",toggleGroup:"toggleGroup"},features:[Ae],decls:23,vars:29,consts:[["hotToastBarBase",""],[1,"hot-toast-bar-base-container"],[1,"hot-toast-bar-base-wrapper",3,"mouseenter","mouseleave"],[1,"hot-toast-bar-base"],["aria-hidden","true",1,"hot-toast-icon"],[1,"hot-toast-message"],[4,"dynamicView","dynamicViewContext","dynamicViewInjector"],[3,"iconTheme","icon"],[4,"dynamicView"],[3,"theme","type"],["type","button",1,"hot-toast-group-btn",3,"click"],["type","button","aria-label","Close",1,"hot-toast-close-btn",3,"click"],["role","list",1,"hot-toast-bar-base-group"],[3,"height","beforeClosed","afterClosed","toast","offset","toastRef","toastsAfter","defaultConfig","isShowingAllToasts"]],template:function(r,o){if(r&1){let a=Y();h(0,"div",1),_(1,` +`)}r&2&&(Js(o.containerPositionStyle),it("hot-toast-theme-"+o.toast.theme),Dt("--hot-toast-scale",o.scale)("--hot-toast-translate-y",o.translateY),g(4),Js(o.toastBarBaseStylesSignal()),it(o.toast.className),Dt("--hot-toast-animation-state",o.isManualClose?"running":"paused")("--hot-toast-exit-animation-state",o.isShowingAllToasts?"paused":"running")("--hot-toast-exit-animation-delay",o.exitAnimationDelay),X("aria-live",o.toast.ariaLive)("role",o.toast.role),g(5),L(o.toast.icon!==void 0?9:10),g(5),y("dynamicView",o.toast.message)("dynamicViewContext",o.context)("dynamicViewInjector",o.toastComponentInjector),g(3),L(o.toast.dismissible?17:-1))},dependencies:[X3,Z3,Cx],encapsulation:2,changeDetection:0});let t=n;return t})(),Y3=(()=>{let n=class n{constructor(){this.offset=0,this._toastsAfter=0,this.isShowingAllToasts=!1,this.height=new U,this.beforeClosed=new U,this.afterClosed=new U,this.showAllToasts=new U,this.toggleGroup=new U,this.isManualClose=!1,this.isExpanded=!1,this.toastBarBaseStylesSignal=he({}),this.unlisteners=[],this.softClosed=!1,this.groupRefs=[],this.injector=u(de),this.renderer=u(je),this.ngZone=u(ae),this.cdr=u(ye)}set toast(i){this._toast=i;let r=this.toastBarBaseStylesSignal(),o=M({},i.style);if(r.animation?.includes("hotToastExitAnimation"))o.animation=r.animation;else{let s=`hotToastEnterAnimation${i.position.includes("top")?"Negative":"Positive"} ${wx}ms cubic-bezier(0.21, 1.02, 0.73, 1) forwards`;o.animation=s}this.toastBarBaseStylesSignal.set(o)}get toast(){return this._toast}get toastsAfter(){return this._toastsAfter}set toastsAfter(i){this._toastsAfter=i,this.defaultConfig?.visibleToasts>0&&(this.toast.autoClose||(i>=this.defaultConfig?.visibleToasts?this.softClose():this.softClosed&&this.softOpen()))}get toastBarBaseHeight(){return this.toastBarBase.nativeElement.offsetHeight}get scale(){return this.defaultConfig.stacking!=="vertical"&&!this.isShowingAllToasts?this.toastsAfter*-PS+1:1}get translateY(){return this.offset*(this.top?1:-1)+"px"}get exitAnimationDelay(){return this.toast.duration+"ms"}get top(){return this.toast.position.includes("top")}get containerPositionStyle(){let i=this.top?{top:0}:{bottom:0},r="translateY(var(--hot-toast-translate-y)) scale(var(--hot-toast-scale))",o=this.toast.position.includes("left")?{left:0}:this.toast.position.includes("right")?{right:0}:{left:0,right:0,justifyContent:"center"};return M(M({transform:r},i),o)}get isIconString(){return typeof this.toast.icon=="string"}get groupChildrenToastRefs(){return this.groupRefs.filter(i=>!!i)}set groupChildrenToastRefs(i){this.groupRefs=i,this.toastRef.groupRefs=i}get groupChildrenToasts(){return this.groupChildrenToastRefs.map(i=>i.getToast())}get groupHeight(){return this.visibleToasts.slice(-this.defaultConfig.visibleToasts).map(i=>i.height).reduce((i,r)=>i+r,0)}get visibleToasts(){return this.groupChildrenToasts.filter(i=>i.visible)}ngDoCheck(){this.toastRef.groupRefs.length!==this.groupRefs.length&&(this.groupRefs=this.toastRef.groupRefs.slice(),this.cdr.markForCheck(),this.emiHeightWithGroup(this.isExpanded)),this.toastRef.groupExpanded!==this.isExpanded&&(this.isExpanded=this.toastRef.groupExpanded,this.cdr.markForCheck(),this.emiHeightWithGroup(this.isExpanded))}ngOnChanges(i){i.toast&&!i.toast.firstChange&&i.toast.currentValue?.message&&this.emiHeightWithGroup(this.isExpanded)}ngOnInit(){Ig(this.toast.message)&&(this.context={$implicit:this.toastRef}),gu(this.toast.message)&&(this.toastComponentInjector=de.create({providers:[{provide:Ag,useValue:this.toastRef}],parent:this.toast.injector||this.injector}));let i=this.toastBarBase.nativeElement;this.ngZone.runOutsideAngular(()=>{this.unlisteners.push(this.renderer.listen(i,"animationstart",r=>{this.isExitAnimation(r)&&this.ngZone.run(()=>{this.renderer.setStyle(i,"pointer-events","none"),this.renderer.setStyle(i.parentElement,"pointer-events","none"),this.beforeClosed.emit()})}),this.renderer.listen(i,"animationend",r=>{this.isEnterAnimation(r)&&this.ngZone.run(()=>{if(this.toast.autoClose){let o=`hotToastExitAnimation${this.top?"Negative":"Positive"} ${Sh}ms forwards cubic-bezier(0.06, 0.71, 0.55, 1) var(--hot-toast-exit-animation-delay) var(--hot-toast-exit-animation-state)`;this.toastBarBaseStylesSignal.set(De(M({},this.toast.style),{animation:o}))}}),this.isExitAnimation(r)&&this.ngZone.run(()=>this.afterClosed.emit({dismissedByAction:this.isManualClose,id:this.toast.id}))}))})}ngAfterViewInit(){let i=this.toastBarBase.nativeElement;requestAnimationFrame(()=>{this.height.emit(i.offsetHeight)}),this.setToastAttributes()}softClose(){let i=`hotToastExitSoftAnimation${this.top?"Negative":"Positive"} ${Sh}ms forwards cubic-bezier(0.06, 0.71, 0.55, 1)`,r=this.toastBarBase.nativeElement;Dx(this.renderer,r,i),this.softClosed=!0,this.isExpanded&&this.toggleToastGroup()}softOpen(){let i=`hotToastEnterSoftAnimation${top?"Negative":"Positive"} ${wx}ms cubic-bezier(0.21, 1.02, 0.73, 1) forwards`,r=this.toastBarBase.nativeElement;Dx(this.renderer,r,i),this.softClosed=!1}close(){this.isManualClose=!0,this.cdr.markForCheck();let i=`hotToastExitAnimation${this.top?"Negative":"Positive"} ${Sh}ms forwards cubic-bezier(0.06, 0.71, 0.55, 1)`;this.toastBarBaseStylesSignal.set(De(M({},this.toast.style),{animation:i}))}handleMouseEnter(){this.showAllToasts.emit(!0)}handleMouseLeave(){this.showAllToasts.emit(!1)}ngOnDestroy(){for(this.close();this.unlisteners.length;)this.unlisteners.pop()()}isExitAnimation(i){return i.animationName.includes("hotToastExitAnimation")}isEnterAnimation(i){return i.animationName.includes("hotToastEnterAnimation")}setToastAttributes(){let i=this.toast.attributes;for(let[r,o]of Object.entries(i))this.renderer.setAttribute(this.toastBarBase.nativeElement,r,o)}calculateOffset(i){let r=this.visibleToasts,o=r.findIndex(s=>s.id===i);return o!==-1?r.slice(...this.defaultConfig.reverseOrder?[o+1]:[0,o]).reduce((s,l,c)=>this.defaultConfig.visibleToasts!==0&&co.id===i.id)>-1&&(this.groupChildrenToastRefs=this.groupChildrenToastRefs.filter(o=>o.getToast().id!==i.id),this.cdr.markForCheck())}toggleToastGroup(){let i=this.isExpanded?"collapse":"expand";this.toggleGroup.emit({byAction:!0,event:i,id:this.toast.id}),this.emiHeightWithGroup(i==="expand")}emiHeightWithGroup(i){requestAnimationFrame(i?()=>{this.height.emit(this.toastBarBase.nativeElement.offsetHeight+this.groupHeight)}:()=>{this.height.emit(this.toastBarBase.nativeElement.offsetHeight)})}};n.\u0275fac=function(r){return new(r||n)},n.\u0275cmp=E({type:n,selectors:[["hot-toast"]],viewQuery:function(r,o){if(r&1&&ie(K3,7),r&2){let a;B(a=j())&&(o.toastBarBase=a.first)}},inputs:{toast:"toast",offset:"offset",defaultConfig:"defaultConfig",toastRef:"toastRef",toastsAfter:"toastsAfter",isShowingAllToasts:"isShowingAllToasts"},outputs:{height:"height",beforeClosed:"beforeClosed",afterClosed:"afterClosed",showAllToasts:"showAllToasts",toggleGroup:"toggleGroup"},features:[Ae],decls:23,vars:29,consts:[["hotToastBarBase",""],[1,"hot-toast-bar-base-container"],[1,"hot-toast-bar-base-wrapper",3,"mouseenter","mouseleave"],[1,"hot-toast-bar-base"],["aria-hidden","true",1,"hot-toast-icon"],[1,"hot-toast-message"],[4,"dynamicView","dynamicViewContext","dynamicViewInjector"],[3,"iconTheme","icon"],[4,"dynamicView"],[3,"theme","type"],["type","button",1,"hot-toast-group-btn",3,"click"],["type","button","aria-label","Close",1,"hot-toast-close-btn",3,"click"],["role","list",1,"hot-toast-bar-base-group"],[3,"height","beforeClosed","afterClosed","toast","offset","toastRef","toastsAfter","defaultConfig","isShowingAllToasts"]],template:function(r,o){if(r&1){let a=Y();h(0,"div",1),_(1,` `),h(2,"div",2),S("mouseenter",function(){return I(a),A(o.handleMouseEnter())})("mouseleave",function(){return I(a),A(o.handleMouseLeave())}),_(3,` `),h(4,"div",3,0),_(6,` `),h(7,"div",4),_(8,` - `),N(9,Oie,3,1)(10,Rie,3,2),p(),_(11,` + `),N(9,Aie,3,1)(10,Oie,3,2),p(),_(11,` `),h(12,"div",5),_(13,` - `),R(14,Pie,1,0,"ng-container",6),_(15,` + `),R(14,Rie,1,0,"ng-container",6),_(15,` `),p(),_(16,` - `),N(17,Fie,3,5),N(18,Nie,3,2),p(),_(19,` + `),N(17,Pie,3,5),N(18,Fie,3,2),p(),_(19,` - `),N(20,Vie,6,4),p(),_(21,` + `),N(20,Lie,6,4),p(),_(21,` `),p(),_(22,` -`)}r&2&&(Js(o.containerPositionStyle),it("hot-toast-theme-"+o.toast.theme),Dt("--hot-toast-scale",o.scale)("--hot-toast-translate-y",o.translateY),g(2),G("expanded",o.isExpanded),g(2),Js(o.toastBarBaseStylesSignal()),it(o.toast.className),Dt("--hot-toast-animation-state",o.isManualClose?"running":"paused")("--hot-toast-exit-animation-state",o.isShowingAllToasts?"paused":"running")("--hot-toast-exit-animation-delay",o.exitAnimationDelay),X("aria-live",o.toast.ariaLive)("role",o.toast.role),g(5),L(o.toast.icon!==void 0?9:10),g(5),y("dynamicView",o.toast.message)("dynamicViewContext",o.context)("dynamicViewInjector",o.toastComponentInjector),g(3),L(o.toast.group!=null&&o.toast.group.expandAndCollapsible&&(o.toast.group!=null&&o.toast.group.children)&&o.visibleToasts.length>0?17:-1),g(),L(o.toast.dismissible?18:-1),g(2),L(o.toast.visible?20:-1))},dependencies:[Cx,X3,J3,Qie],encapsulation:2,changeDetection:0});let t=n;return t})(),K3=(()=>{let n=class n{constructor(){this.toasts=[],this.toastRefs=[],this.isShowingAllToasts=!1,this._onClosed=new z,this._onGroupToggle=new z,this._onGroupRefAttached=new z,this.onClosed$=this._onClosed.asObservable(),this.onGroupToggle$=this._onGroupToggle.asObservable(),this.onGroupRefAttached$=this._onGroupRefAttached.asObservable(),this.cdr=u(ye),this.toastService=u(Rg)}trackById(i,r){return r.id}getVisibleToasts(i){return this.unGroupedToasts.filter(r=>r.visible&&r.position===i)}get unGroupedToasts(){return this.toasts.filter(i=>i.group?.parent===void 0||i.group?.children===void 0||i.group?.children.length===0)}calculateOffset(i,r){let o=this.getVisibleToasts(r),a=o.findIndex(l=>l.id===i);return a!==-1?o.slice(...this.defaultConfig.reverseOrder?[a+1]:[0,a]).reduce((l,c,d)=>{let m=o.length-1-d;return this.defaultConfig.visibleToasts!==0&&dthis.defaultConfig.visibleToasts&&this.toasts.slice(0,this.toasts.length-this.defaultConfig.visibleToasts).forEach(s=>{s.autoClose&&this.closeToast(s.id)}),this.cdr.markForCheck(),this.attachGroupRefs(o,i,r),{dispose:()=>{this.closeToast(o.id)},updateMessage:a=>{o.message=a,this.updateToasts(o),this.cdr.markForCheck()},updateToast:a=>{this.updateToasts(o,a),this.cdr.markForCheck()},afterClosed:this.getAfterClosed(o),afterGroupToggled:this.getAfterGroupToggled(o),afterGroupRefsAttached:this.getAfterGroupRefsAttached(o).pipe(se(a=>a.groupRefs))}}attachGroupRefs(i,r,o){return fn(this,null,function*(){let a=[];if(i.group){if(i.group.children){a=yield this.createGroupRefs(i,r);let s=this.toastRefs.findIndex(l=>l.getToast().id===i.id);s>-1&&(this.toastRefs[s].groupRefs=a,this.cdr.markForCheck(),this._onGroupRefAttached.next({groupRefs:a,id:i.id}))}else if(i.group.parent&&!o){let l=i.group.parent.getToast(),c=this.toastRefs.findIndex(m=>m.getToast().id===l.id),d=this.toasts.findIndex(m=>m.id===l.id);if(c>-1&&d>-1){this.toastRefs[c].groupRefs.push(r);let m=this.toasts[c].group??{},f=this.toasts[c].group?.children??[];f.push({options:De(M({},i),{type:i.type,message:i.message})}),m.children=f,this.toasts[c].group=M({},m),this.cdr.markForCheck(),this._onGroupRefAttached.next({groupRefs:a,id:l.id})}}}})}createGroupRefs(i,r){return new Promise(a=>{let l=i.group.children.map(c=>new Promise(d=>{c.options.group={parent:r},setTimeout(()=>{try{let m=this.toastService.show(c.options.message,c.options,!0);d(m)}catch(m){console.error("Error creating toast",m),d(null)}})}));Promise.all(l).then(c=>a(c))})}closeToast(i){if(i){let r=this.hotToastComponentList.find(o=>o.toast.id===i);r&&(r.close(),this.cdr.markForCheck())}else this.hotToastComponentList.forEach(r=>r.close()),this.cdr.markForCheck()}beforeClosed(i){i.visible=!1,this.cdr.markForCheck()}afterClosed(i){this.toasts.findIndex(o=>o.id===i.id)>-1&&(this._onClosed.next(i),this.toasts=this.toasts.filter(o=>o.id!==i.id),this.toastRefs=this.toastRefs.filter(o=>o.getToast().id!==i.id),this.cdr.markForCheck())}toggleGroup(i){let r=this.toastRefs.findIndex(o=>o.getToast().id===i.id);r>-1&&(this._onGroupToggle.next(i),this.toastRefs[r].groupExpanded=i.event==="expand",this.cdr.markForCheck())}hasToast(i){return this.toasts.findIndex(r=>r.id===i)>-1}showAllToasts(i){this.isShowingAllToasts=i}getAfterClosed(i){return this.onClosed$.pipe(ce(r=>r.id===i.id))}getAfterGroupToggled(i){return this.onGroupToggle$.pipe(ce(r=>r.id===i.id))}getAfterGroupRefsAttached(i){return this.onGroupRefAttached$.pipe(ce(r=>r.id===i.id))}updateToasts(i,r){this.toasts=this.toasts.map(o=>M(M({},o),o.id===i.id&&M(M({},i),r))),this.cdr.markForCheck()}};n.\u0275fac=function(r){return new(r||n)},n.\u0275cmp=E({type:n,selectors:[["hot-toast-container"]],viewQuery:function(r,o){if(r&1&&ie(Q3,5),r&2){let a;B(a=j())&&(o.hotToastComponentList=a)}},inputs:{defaultConfig:"defaultConfig"},decls:11,vars:0,consts:[[1,"hot-toast-container-overlay"],[1,"hot-toast-container-wrapper"],[3,"showAllToasts","height","beforeClosed","afterClosed","toggleGroup","toast","offset","toastRef","toastsAfter","defaultConfig","isShowingAllToasts"]],template:function(r,o){r&1&&(h(0,"div",0),_(1,` +`)}r&2&&(Js(o.containerPositionStyle),it("hot-toast-theme-"+o.toast.theme),Dt("--hot-toast-scale",o.scale)("--hot-toast-translate-y",o.translateY),g(2),G("expanded",o.isExpanded),g(2),Js(o.toastBarBaseStylesSignal()),it(o.toast.className),Dt("--hot-toast-animation-state",o.isManualClose?"running":"paused")("--hot-toast-exit-animation-state",o.isShowingAllToasts?"paused":"running")("--hot-toast-exit-animation-delay",o.exitAnimationDelay),X("aria-live",o.toast.ariaLive)("role",o.toast.role),g(5),L(o.toast.icon!==void 0?9:10),g(5),y("dynamicView",o.toast.message)("dynamicViewContext",o.context)("dynamicViewInjector",o.toastComponentInjector),g(3),L(o.toast.group!=null&&o.toast.group.expandAndCollapsible&&(o.toast.group!=null&&o.toast.group.children)&&o.visibleToasts.length>0?17:-1),g(),L(o.toast.dismissible?18:-1),g(2),L(o.toast.visible?20:-1))},dependencies:[Cx,Z3,X3,Yie],encapsulation:2,changeDetection:0});let t=n;return t})(),Q3=(()=>{let n=class n{constructor(){this.toasts=[],this.toastRefs=[],this.isShowingAllToasts=!1,this._onClosed=new z,this._onGroupToggle=new z,this._onGroupRefAttached=new z,this.onClosed$=this._onClosed.asObservable(),this.onGroupToggle$=this._onGroupToggle.asObservable(),this.onGroupRefAttached$=this._onGroupRefAttached.asObservable(),this.cdr=u(ye),this.toastService=u(Rg)}trackById(i,r){return r.id}getVisibleToasts(i){return this.unGroupedToasts.filter(r=>r.visible&&r.position===i)}get unGroupedToasts(){return this.toasts.filter(i=>i.group?.parent===void 0||i.group?.children===void 0||i.group?.children.length===0)}calculateOffset(i,r){let o=this.getVisibleToasts(r),a=o.findIndex(l=>l.id===i);return a!==-1?o.slice(...this.defaultConfig.reverseOrder?[a+1]:[0,a]).reduce((l,c,d)=>{let m=o.length-1-d;return this.defaultConfig.visibleToasts!==0&&dthis.defaultConfig.visibleToasts&&this.toasts.slice(0,this.toasts.length-this.defaultConfig.visibleToasts).forEach(s=>{s.autoClose&&this.closeToast(s.id)}),this.cdr.markForCheck(),this.attachGroupRefs(o,i,r),{dispose:()=>{this.closeToast(o.id)},updateMessage:a=>{o.message=a,this.updateToasts(o),this.cdr.markForCheck()},updateToast:a=>{this.updateToasts(o,a),this.cdr.markForCheck()},afterClosed:this.getAfterClosed(o),afterGroupToggled:this.getAfterGroupToggled(o),afterGroupRefsAttached:this.getAfterGroupRefsAttached(o).pipe(se(a=>a.groupRefs))}}attachGroupRefs(i,r,o){return fn(this,null,function*(){let a=[];if(i.group){if(i.group.children){a=yield this.createGroupRefs(i,r);let s=this.toastRefs.findIndex(l=>l.getToast().id===i.id);s>-1&&(this.toastRefs[s].groupRefs=a,this.cdr.markForCheck(),this._onGroupRefAttached.next({groupRefs:a,id:i.id}))}else if(i.group.parent&&!o){let l=i.group.parent.getToast(),c=this.toastRefs.findIndex(m=>m.getToast().id===l.id),d=this.toasts.findIndex(m=>m.id===l.id);if(c>-1&&d>-1){this.toastRefs[c].groupRefs.push(r);let m=this.toasts[c].group??{},f=this.toasts[c].group?.children??[];f.push({options:De(M({},i),{type:i.type,message:i.message})}),m.children=f,this.toasts[c].group=M({},m),this.cdr.markForCheck(),this._onGroupRefAttached.next({groupRefs:a,id:l.id})}}}})}createGroupRefs(i,r){return new Promise(a=>{let l=i.group.children.map(c=>new Promise(d=>{c.options.group={parent:r},setTimeout(()=>{try{let m=this.toastService.show(c.options.message,c.options,!0);d(m)}catch(m){console.error("Error creating toast",m),d(null)}})}));Promise.all(l).then(c=>a(c))})}closeToast(i){if(i){let r=this.hotToastComponentList.find(o=>o.toast.id===i);r&&(r.close(),this.cdr.markForCheck())}else this.hotToastComponentList.forEach(r=>r.close()),this.cdr.markForCheck()}beforeClosed(i){i.visible=!1,this.cdr.markForCheck()}afterClosed(i){this.toasts.findIndex(o=>o.id===i.id)>-1&&(this._onClosed.next(i),this.toasts=this.toasts.filter(o=>o.id!==i.id),this.toastRefs=this.toastRefs.filter(o=>o.getToast().id!==i.id),this.cdr.markForCheck())}toggleGroup(i){let r=this.toastRefs.findIndex(o=>o.getToast().id===i.id);r>-1&&(this._onGroupToggle.next(i),this.toastRefs[r].groupExpanded=i.event==="expand",this.cdr.markForCheck())}hasToast(i){return this.toasts.findIndex(r=>r.id===i)>-1}showAllToasts(i){this.isShowingAllToasts=i}getAfterClosed(i){return this.onClosed$.pipe(ce(r=>r.id===i.id))}getAfterGroupToggled(i){return this.onGroupToggle$.pipe(ce(r=>r.id===i.id))}getAfterGroupRefsAttached(i){return this.onGroupRefAttached$.pipe(ce(r=>r.id===i.id))}updateToasts(i,r){this.toasts=this.toasts.map(o=>M(M({},o),o.id===i.id&&M(M({},i),r))),this.cdr.markForCheck()}};n.\u0275fac=function(r){return new(r||n)},n.\u0275cmp=E({type:n,selectors:[["hot-toast-container"]],viewQuery:function(r,o){if(r&1&&ie(Y3,5),r&2){let a;B(a=j())&&(o.hotToastComponentList=a)}},inputs:{defaultConfig:"defaultConfig"},decls:11,vars:0,consts:[[1,"hot-toast-container-overlay"],[1,"hot-toast-container-wrapper"],[3,"showAllToasts","height","beforeClosed","afterClosed","toggleGroup","toast","offset","toastRef","toastsAfter","defaultConfig","isShowingAllToasts"]],template:function(r,o){r&1&&(h(0,"div",0),_(1,` `),h(2,"div",1),_(3,` `),h(4,"div"),_(5,` - `),xt(6,Hie,3,1,null,null,o.trackById,!0),p(),_(8,` + `),xt(6,jie,3,1,null,null,o.trackById,!0),p(),_(8,` `),p(),_(9,` `),p(),_(10,` -`)),r&2&&(g(6),Ct(o.toasts))},dependencies:[Q3],styles:[".hot-toast-container-overlay[_ngcontent-%COMP%]{position:fixed;z-index:var(--hot-toast-container-overlay-z-index, 9999);inset:0;pointer-events:none}.hot-toast-container-wrapper[_ngcontent-%COMP%]{position:relative;height:100%}"],changeDetection:0});let t=n;return t})(),Og=class{constructor(){this.reverseOrder=!1,this.visibleToasts=5,this.stacking="vertical",this.ariaLive="polite",this.role="status",this.position="top-center",this.autoClose=!0,this.theme="toast",this.attributes={},this.info={content:""},this.success={content:""},this.error={content:""},this.loading={content:""},this.blank={content:""},this.warning={content:""}}},Kie=t=>typeof t=="function",Zie=t=>typeof t=="function"&&!!t.\u0275cmp,Xie=(t,n)=>Zie(t)?t:Kie(t)?t(n):t,RS=class{constructor(){this.storage="local",this.key="ngxpert/hototast-${id}",this.count=1,this.enabled=!1}},Jie=new T("HOT_TOAST_CONTAINER_TOKEN"),Rg=(()=>{let n=class n{constructor(){this._isInitialized=!1,this._defaultGlobalConfig=new Og,this._defaultPersistConfig=new RS,this._viewService=u(OS),this._platformId=u(Ks),this._globalConfig=u(Og,{optional:!0}),this._container=u(Jie,{optional:!0}),this._globalConfig&&(this._defaultGlobalConfig=M(M({},this._defaultGlobalConfig),this._globalConfig))}get defaultConfig(){return this._defaultGlobalConfig}set defaultConfig(i){this._defaultGlobalConfig=M(M({},this._defaultGlobalConfig),i),this._componentRef&&this._componentRef.setInput("defaultConfig",this._defaultGlobalConfig)}show(i,r,o){return this.createToast({message:i||this._defaultGlobalConfig.blank.content,type:r?.type??"blank",options:M(M({},this._defaultGlobalConfig),r),skipAttachToParent:o})}error(i,r){return this.createToast({message:i||this._defaultGlobalConfig.error.content,type:"error",options:M(M(M({},this._defaultGlobalConfig),this._defaultGlobalConfig?.error),r)})}success(i,r){return this.createToast({message:i||this._defaultGlobalConfig.success.content,type:"success",options:M(M(M({},this._defaultGlobalConfig),this._defaultGlobalConfig?.success),r)})}loading(i,r){return this.createToast({message:i||this._defaultGlobalConfig.loading.content,type:"loading",options:M(M(M({},this._defaultGlobalConfig),this._defaultGlobalConfig?.loading),r)})}warning(i,r){return this.createToast({message:i||this._defaultGlobalConfig.warning.content,type:"warning",options:M(M(M({},this._defaultGlobalConfig),this._defaultGlobalConfig?.warning),r)})}info(i,r){return this.createToast({message:i||this._defaultGlobalConfig.info.content,type:"info",options:M(M(M({},this._defaultGlobalConfig),this._defaultGlobalConfig?.info),r)})}observe(i){return r=>{let o,a=0,s=i.loading??this._defaultGlobalConfig.loading?.content,l=i.success??this._defaultGlobalConfig.success?.content,c=i.error??this._defaultGlobalConfig.error?.content;return kn(()=>(s&&(o=this.createLoadingToast(s),a=Date.now()),r.pipe(Be(M(M({},l&&{next:d=>{o=this.createOrUpdateToast(i,d,o,"success",a===0?a:Date.now()-a)}}),c&&{error:d=>{o=this.createOrUpdateToast(i,d,o,"error",a===0?a:Date.now()-a)}})))))}}close(i){this._componentRef&&this._componentRef.ref.instance.closeToast(i)}init(){if(!$2(this._platformId))if(this._container){let i=document.querySelector(this._container);i||(console.warn(`No container element found for selector: ${this._container}, using document.body instead as toast container.`),i=document.body),this._componentRef=this._viewService.createComponent(K3).setInput("defaultConfig",this._defaultGlobalConfig).appendTo(i)}else this._componentRef=this._viewService.createComponent(K3).setInput("defaultConfig",this._defaultGlobalConfig).appendTo(document.body)}createOrUpdateToast(i,r,o,a,s){try{let l=null,c={};if({content:l,options:c}=this.getContentAndOptions(a,i[a]||(this._defaultGlobalConfig[a]?this._defaultGlobalConfig[a].content:"")),l=Xie(l,r),o){c.data&&(o.data=c.data),o.updateMessage(l);let d=M(M({type:a,duration:s+Y3[a]},c),c.duration&&{duration:s+c.duration});o.updateToast(d)}else this.createToast({message:l,type:a,options:c});return o}catch(l){console.error(l)}}createToast({message:i,type:r,options:o,observableMessages:a,skipAttachToParent:s}){this._isInitialized||(this._isInitialized=!0,this.init());let l=o?.id??`toast-${n.nextId++}`;if(!this.isDuplicate(l)&&(!o.persist?.enabled||o.persist?.enabled&&this.handleStorageValue(l,o))){let c=M({ariaLive:o?.ariaLive??"polite",createdAt:Date.now(),duration:o?.duration??Y3[r],id:l,message:i,role:o?.role??"status",type:r,visible:!0,observableMessages:a??void 0},o);return new Ag(c).appendTo(this._componentRef.ref.instance,s)}}isDuplicate(i){return this._componentRef.ref.instance.hasToast(i)}handleStorageValue(i,r){let o=1,a=M(M({},this._defaultPersistConfig),r.persist),s=a.storage==="local"?localStorage:sessionStorage,l=a.key.replace(/\${id}/g,i),c=s.getItem(l);return c?(c=parseInt(c,10),c>0?o=c-1:o=c):o=a.count,s.setItem(l,o.toString()),o}getContentAndOptions(i,r){var s;let o,a=M(M({},this._defaultGlobalConfig),this._defaultGlobalConfig[i]);if(typeof r=="string"||Ig(r)||gu(r))o=r;else{let l;s=r,{content:o}=s,l=ed(s,["content"]),a=M(M({},a),l)}return{content:o,options:a}}createLoadingToast(i){let r=null,o={};return{content:r,options:o}=this.getContentAndOptions("loading",i),this.loading(r,o)}};n.nextId=0,n.\u0275fac=function(r){return new(r||n)},n.\u0275prov=O({token:n,factory:n.\u0275fac,providedIn:"root"});let t=n;return t})();function ej(t){return zr([{provide:Og,useValue:t}])}var Mx={REMOVE:"remove",SHOW:"show"},ij=(()=>{let n=class n{constructor(){this.strategiesSource=new tt({}),this.strategies$=this.strategiesSource.asObservable()}};n.\u0275fac=function(r){return new(r||n)},n.\u0275prov=O({token:n,factory:n.\u0275fac});let t=n;return t})(),NS=new T("USE_CONFIGURATION_STORE"),LS=(()=>{let n=class n{constructor(i=!1,r){this.isolate=i,this.configurationStore=r,this.strategiesSource=this.isolate?new tt({}):this.configurationStore.strategiesSource,this.strategies$=this.strategiesSource.asObservable(),this.onAuthorisedDefaultStrategy=this.isolate?void 0:this.configurationStore.onAuthorisedDefaultStrategy,this.onUnAuthorisedDefaultStrategy=this.isolate?void 0:this.configurationStore.onUnAuthorisedDefaultStrategy}setDefaultOnAuthorizedStrategy(i){this.isolate?this.onAuthorisedDefaultStrategy=this.getDefinedStrategy(i):(this.configurationStore.onAuthorisedDefaultStrategy=this.getDefinedStrategy(i),this.onAuthorisedDefaultStrategy=this.configurationStore.onAuthorisedDefaultStrategy)}setDefaultOnUnauthorizedStrategy(i){this.isolate?this.onUnAuthorisedDefaultStrategy=this.getDefinedStrategy(i):(this.configurationStore.onUnAuthorisedDefaultStrategy=this.getDefinedStrategy(i),this.onUnAuthorisedDefaultStrategy=this.configurationStore.onUnAuthorisedDefaultStrategy)}addPermissionStrategy(i,r){this.strategiesSource.value[i]=r}getStrategy(i){return this.strategiesSource.value[i]}getAllStrategies(){return this.strategiesSource.value}getDefinedStrategy(i){if(this.strategiesSource.value[i]||this.isPredefinedStrategy(i))return i;throw new Error(`No ' ${i} ' strategy is found please define one`)}isPredefinedStrategy(i){return i===Mx.SHOW||i===Mx.REMOVE}};n.\u0275fac=function(r){return new(r||n)(pe(NS),pe(ij))},n.\u0275prov=O({token:n,factory:n.\u0275fac});let t=n;return t})();function io(t){return typeof t=="function"}function FS(t){if(Object.prototype.toString.call(t)!=="[object Object]")return!1;{let n=Object.getPrototypeOf(t);return n===null||n===Object.prototype}}function nj(t){return!!t&&typeof t=="string"}function kx(t){return typeof t=="boolean"}function ene(t){return Object.prototype.toString.call(t)==="[object Promise]"}function Ex(t){return Array.isArray(t)?t.length>0:!!t}function Sx(t){return nj(t)?[t]:t}var rj=(()=>{let n=class n{constructor(){this.permissionsSource=new tt({}),this.permissions$=this.permissionsSource.asObservable()}};n.\u0275fac=function(r){return new(r||n)},n.\u0275prov=O({token:n,factory:n.\u0275fac});let t=n;return t})(),VS=new T("USE_PERMISSIONS_STORE"),_u=(()=>{let n=class n{constructor(i=!1,r){this.isolate=i,this.permissionsStore=r,this.permissionsSource=this.isolate?new tt({}):this.permissionsStore.permissionsSource,this.permissions$=this.permissionsSource.asObservable()}flushPermissions(){this.permissionsSource.next({})}hasPermission(i){return!i||Array.isArray(i)&&i.length===0?Promise.resolve(!0):(i=Sx(i),this.hasArrayPermission(i))}loadPermissions(i,r){let o=i.reduce((a,s)=>this.reducePermission(a,s,r),{});this.permissionsSource.next(o)}addPermission(i,r){if(Array.isArray(i)){let o=i.reduce((a,s)=>this.reducePermission(a,s,r),this.permissionsSource.value);this.permissionsSource.next(o)}else{let o=this.reducePermission(this.permissionsSource.value,i,r);this.permissionsSource.next(o)}}removePermission(i){let r=M({},this.permissionsSource.value);delete r[i],this.permissionsSource.next(r)}getPermission(i){return this.permissionsSource.value[i]}getPermissions(){return this.permissionsSource.value}reducePermission(i,r,o){return o&&io(o)?De(M({},i),{[r]:{name:r,validationFunction:o}}):De(M({},i),{[r]:{name:r}})}hasArrayPermission(i){let r=i.map(o=>{if(this.hasPermissionValidationFunction(o)){let a=this.permissionsSource.value[o].validationFunction,s=M({},this.permissionsSource.value);return Q(null).pipe(se(()=>a(o,s)),$e(l=>kx(l)?Q(l):l),fi(()=>Q(!1)))}return Q(!!this.permissionsSource.value[o])});return Ot(r).pipe(uo(),gn(o=>o!==!1,!1),se(o=>o!==!1)).toPromise().then(o=>o)}hasPermissionValidationFunction(i){return!!this.permissionsSource.value[i]&&!!this.permissionsSource.value[i].validationFunction&&io(this.permissionsSource.value[i].validationFunction)}};n.\u0275fac=function(r){return new(r||n)(pe(VS),pe(rj))},n.\u0275prov=O({token:n,factory:n.\u0275fac});let t=n;return t})(),Tx=class{constructor(){this.rolesSource=new tt({}),this.roles$=this.rolesSource.asObservable()}},BS=new T("USE_ROLES_STORE"),Th=(()=>{let n=class n{constructor(i=!1,r,o){this.isolate=i,this.rolesStore=r,this.permissionsService=o,this.rolesSource=this.isolate?new tt({}):this.rolesStore.rolesSource,this.roles$=this.rolesSource.asObservable()}addRole(i,r){let o=De(M({},this.rolesSource.value),{[i]:{name:i,validationFunction:r}});this.rolesSource.next(o)}addRoleWithPermissions(i,r){this.permissionsService.addPermission(r),this.addRole(i,r)}addRoles(i){Object.keys(i).forEach((r,o)=>{this.addRole(r,i[r])})}addRolesWithPermissions(i){Object.keys(i).forEach((r,o)=>{this.addRoleWithPermissions(r,i[r])})}flushRoles(){this.rolesSource.next({})}flushRolesAndPermissions(){this.flushRoles(),this.permissionsService.flushPermissions()}removeRole(i){let r=M({},this.rolesSource.value);delete r[i],this.rolesSource.next(r)}getRoles(){return this.rolesSource.value}getRole(i){return this.rolesSource.value[i]}hasOnlyRoles(i){return!i||Array.isArray(i)&&i.length===0?Promise.resolve(!0):(i=Sx(i),Promise.all([this.hasRoleKey(i),this.hasRolePermission(this.rolesSource.value,i)]).then(([o,a])=>o||a))}hasRoleKey(i){let r=i.map(o=>{if(!!this.rolesSource.value[o]&&!!this.rolesSource.value[o].validationFunction&&io(this.rolesSource.value[o].validationFunction)&&!ene(this.rolesSource.value[o].validationFunction)){let s=this.rolesSource.value[o].validationFunction,l=M({},this.rolesSource.value);return Q(null).pipe(se(()=>s(o,l)),$e(c=>kx(c)?Q(c):c),fi(()=>Q(!1)))}return Q(!1)});return Ot(r).pipe(uo(),gn(o=>o!==!1,!1),se(o=>o!==!1)).toPromise().then(o=>o)}hasRolePermission(i,r){return Ot(r).pipe(Mt(o=>i[o]&&Array.isArray(i[o].validationFunction)?Ot(i[o].validationFunction).pipe(Mt(a=>this.permissionsService.hasPermission(a)),Yw(a=>a===!0)):Q(!1)),gn(o=>o===!0,!1)).toPromise()}};n.\u0275fac=function(r){return new(r||n)(pe(BS),pe(Tx),pe(_u))},n.\u0275prov=O({token:n,factory:n.\u0275fac});let t=n;return t})(),Ih=(()=>{let n=class n{constructor(){this.permissionsAuthorized=new U,this.permissionsUnauthorized=new U,this.firstMergeUnusedRun=1,this.permissionsService=u(_u),this.configurationService=u(LS),this.rolesService=u(Th),this.viewContainer=u(nt),this.changeDetector=u(ye),this.templateRef=u(te)}ngOnInit(){this.viewContainer.clear(),this.initPermissionSubscription=this.validateExceptOnlyPermissions()}ngOnChanges(i){let r=i.ngxPermissionsOnly,o=i.ngxPermissionsExcept;if(r||o){if(r&&r.firstChange||o&&o.firstChange)return;Je(this.permissionsService.permissions$,this.rolesService.roles$).pipe(Ya(this.firstMergeUnusedRun),lt(1)).subscribe(()=>{if(Ex(this.ngxPermissionsExcept)){this.validateExceptAndOnlyPermissions();return}if(Ex(this.ngxPermissionsOnly)){this.validateOnlyPermissions();return}this.handleAuthorisedPermission(this.getAuthorisedTemplates())})}}ngOnDestroy(){this.initPermissionSubscription&&this.initPermissionSubscription.unsubscribe()}validateExceptOnlyPermissions(){return Je(this.permissionsService.permissions$,this.rolesService.roles$).pipe(Ya(this.firstMergeUnusedRun)).subscribe(()=>{if(Ex(this.ngxPermissionsExcept)){this.validateExceptAndOnlyPermissions();return}if(Ex(this.ngxPermissionsOnly)){this.validateOnlyPermissions();return}this.handleAuthorisedPermission(this.getAuthorisedTemplates())})}validateExceptAndOnlyPermissions(){Promise.all([this.permissionsService.hasPermission(this.ngxPermissionsExcept),this.rolesService.hasOnlyRoles(this.ngxPermissionsExcept)]).then(([i,r])=>{if(i||r){this.handleUnauthorisedPermission(this.ngxPermissionsExceptElse||this.ngxPermissionsElse);return}if(this.ngxPermissionsOnly)throw!1;this.handleAuthorisedPermission(this.ngxPermissionsExceptThen||this.ngxPermissionsThen||this.templateRef)}).catch(()=>{this.ngxPermissionsOnly?this.validateOnlyPermissions():this.handleAuthorisedPermission(this.ngxPermissionsExceptThen||this.ngxPermissionsThen||this.templateRef)})}validateOnlyPermissions(){Promise.all([this.permissionsService.hasPermission(this.ngxPermissionsOnly),this.rolesService.hasOnlyRoles(this.ngxPermissionsOnly)]).then(([i,r])=>{i||r?this.handleAuthorisedPermission(this.ngxPermissionsOnlyThen||this.ngxPermissionsThen||this.templateRef):this.handleUnauthorisedPermission(this.ngxPermissionsOnlyElse||this.ngxPermissionsElse)}).catch(()=>{this.handleUnauthorisedPermission(this.ngxPermissionsOnlyElse||this.ngxPermissionsElse)})}handleUnauthorisedPermission(i){if(!(kx(this.currentAuthorizedState)&&!this.currentAuthorizedState)){if(this.currentAuthorizedState=!1,this.permissionsUnauthorized.emit(),this.getUnAuthorizedStrategyInput()){this.applyStrategyAccordingToStrategyType(this.getUnAuthorizedStrategyInput());return}this.configurationService.onUnAuthorisedDefaultStrategy&&!this.elseBlockDefined()?this.applyStrategy(this.configurationService.onUnAuthorisedDefaultStrategy):this.showTemplateBlockInView(i)}}handleAuthorisedPermission(i){if(!(kx(this.currentAuthorizedState)&&this.currentAuthorizedState)){if(this.currentAuthorizedState=!0,this.permissionsAuthorized.emit(),this.getAuthorizedStrategyInput()){this.applyStrategyAccordingToStrategyType(this.getAuthorizedStrategyInput());return}this.configurationService.onAuthorisedDefaultStrategy&&!this.thenBlockDefined()?this.applyStrategy(this.configurationService.onAuthorisedDefaultStrategy):this.showTemplateBlockInView(i)}}applyStrategyAccordingToStrategyType(i){if(nj(i)){this.applyStrategy(i);return}if(io(i)){this.showTemplateBlockInView(this.templateRef),i(this.templateRef);return}}showTemplateBlockInView(i){this.viewContainer.clear(),i&&(this.viewContainer.createEmbeddedView(i),this.changeDetector.markForCheck())}getAuthorisedTemplates(){return this.ngxPermissionsOnlyThen||this.ngxPermissionsExceptThen||this.ngxPermissionsThen||this.templateRef}elseBlockDefined(){return!!this.ngxPermissionsExceptElse||!!this.ngxPermissionsElse}thenBlockDefined(){return!!this.ngxPermissionsExceptThen||!!this.ngxPermissionsThen}getAuthorizedStrategyInput(){return this.ngxPermissionsOnlyAuthorisedStrategy||this.ngxPermissionsExceptAuthorisedStrategy||this.ngxPermissionsAuthorisedStrategy}getUnAuthorizedStrategyInput(){return this.ngxPermissionsOnlyUnauthorisedStrategy||this.ngxPermissionsExceptUnauthorisedStrategy||this.ngxPermissionsUnauthorisedStrategy}applyStrategy(i){if(i===Mx.SHOW){this.showTemplateBlockInView(this.templateRef);return}if(i===Mx.REMOVE){this.viewContainer.clear();return}let r=this.configurationService.getStrategy(i);this.showTemplateBlockInView(this.templateRef),r(this.templateRef)}};n.\u0275fac=function(r){return new(r||n)},n.\u0275dir=F({type:n,selectors:[["","ngxPermissionsOnly",""],["","ngxPermissionsExcept",""]],inputs:{ngxPermissionsOnly:"ngxPermissionsOnly",ngxPermissionsOnlyThen:"ngxPermissionsOnlyThen",ngxPermissionsOnlyElse:"ngxPermissionsOnlyElse",ngxPermissionsExcept:"ngxPermissionsExcept",ngxPermissionsExceptElse:"ngxPermissionsExceptElse",ngxPermissionsExceptThen:"ngxPermissionsExceptThen",ngxPermissionsThen:"ngxPermissionsThen",ngxPermissionsElse:"ngxPermissionsElse",ngxPermissionsOnlyAuthorisedStrategy:"ngxPermissionsOnlyAuthorisedStrategy",ngxPermissionsOnlyUnauthorisedStrategy:"ngxPermissionsOnlyUnauthorisedStrategy",ngxPermissionsExceptUnauthorisedStrategy:"ngxPermissionsExceptUnauthorisedStrategy",ngxPermissionsExceptAuthorisedStrategy:"ngxPermissionsExceptAuthorisedStrategy",ngxPermissionsUnauthorisedStrategy:"ngxPermissionsUnauthorisedStrategy",ngxPermissionsAuthorisedStrategy:"ngxPermissionsAuthorisedStrategy"},outputs:{permissionsAuthorized:"permissionsAuthorized",permissionsUnauthorized:"permissionsUnauthorized"},standalone:!1,features:[Ae]});let t=n;return t})(),tne="default";var tj=(()=>{let n=class n{constructor(i,r,o){this.permissionsService=i,this.rolesService=r,this.router=o}canActivate(i,r){return this.hasPermissions(i,r)}canActivateChild(i,r){return this.hasPermissions(i,r)}canLoad(i){return this.hasPermissions(i)}canMatch(i){return this.hasPermissions(i)}hasPermissions(i,r){let o=i&&i.data?i.data.permissions:{},a=this.transformPermission(o,i,r);return this.isParameterAvailable(a.except)?this.passingExceptPermissionsValidation(a,i,r):this.isParameterAvailable(a.only)?this.passingOnlyPermissionsValidation(a,i,r):!0}transformPermission(i,r,o){let a=io(i.only)?i.only(r,o):Sx(i.only),s=io(i.except)?i.except(r,o):Sx(i.except),l=i.redirectTo;return{only:a,except:s,redirectTo:l}}isParameterAvailable(i){return!!i&&i.length>0}passingExceptPermissionsValidation(i,r,o){if(i.redirectTo&&(io(i.redirectTo)||FS(i.redirectTo)&&!this.isRedirectionWithParameters(i.redirectTo))){let a="";return Ot(i.except).pipe(Mt(s=>Ga([this.permissionsService.hasPermission(s),this.rolesService.hasOnlyRoles(s)]).pipe(Be(l=>{l.every(d=>d===!1)||(a=s)}))),gn(s=>s.some(l=>l===!0),!1),Mt(s=>a?(this.handleRedirectOfFailedPermission(i,a,r,o),Q(!1)):!s&&i.only?this.onlyRedirectCheck(i,r,o):Q(!s))).toPromise()}return Promise.all([this.permissionsService.hasPermission(i.except),this.rolesService.hasOnlyRoles(i.except)]).then(([a,s])=>a||s?(i.redirectTo&&this.redirectToAnotherRoute(i.redirectTo,r,o),!1):i.only?this.checkOnlyPermissions(i,r,o):!0)}redirectToAnotherRoute(i,r,o,a){let s=io(i)?i(a,r,o):i;if(this.isRedirectionWithParameters(s)){s.navigationCommands=this.transformNavigationCommands(s.navigationCommands,r,o),s.navigationExtras=this.transformNavigationExtras(s.navigationExtras,r,o),this.router.navigate(s.navigationCommands,s.navigationExtras);return}Array.isArray(s)?this.router.navigate(s):this.router.navigate([s])}isRedirectionWithParameters(i){return FS(i)&&(!!i.navigationCommands||!!i.navigationExtras)}transformNavigationCommands(i,r,o){return io(i)?i(r,o):i}transformNavigationExtras(i,r,o){return io(i)?i(r,o):i}onlyRedirectCheck(i,r,o){let a="";return Ot(i.only).pipe(Mt(s=>Ga([this.permissionsService.hasPermission(s),this.rolesService.hasOnlyRoles(s)]).pipe(Be(l=>{l.every(d=>d===!1)&&(a=s)}))),gn(s=>io(i.redirectTo)?s.some(l=>l===!0):s.every(l=>l===!1),!1),Mt(s=>io(i.redirectTo)?s?Q(!0):(this.handleRedirectOfFailedPermission(i,a,r,o),Q(!1)):(a&&this.handleRedirectOfFailedPermission(i,a,r,o),Q(!s)))).toPromise()}handleRedirectOfFailedPermission(i,r,o,a){this.isFailedPermissionPropertyOfRedirectTo(i,r)?this.redirectToAnotherRoute(i.redirectTo[r],o,a,r):io(i.redirectTo)?this.redirectToAnotherRoute(i.redirectTo,o,a,r):this.redirectToAnotherRoute(i.redirectTo[tne],o,a,r)}isFailedPermissionPropertyOfRedirectTo(i,r){return!!i.redirectTo&&i.redirectTo[r]}checkOnlyPermissions(i,r,o){let a=M({},i);return Promise.all([this.permissionsService.hasPermission(a.only),this.rolesService.hasOnlyRoles(a.only)]).then(([s,l])=>s||l?!0:(a.redirectTo&&this.redirectToAnotherRoute(a.redirectTo,r,o),!1))}passingOnlyPermissionsValidation(i,r,o){return io(i.redirectTo)||FS(i.redirectTo)&&!this.isRedirectionWithParameters(i.redirectTo)?this.onlyRedirectCheck(i,r,o):this.checkOnlyPermissions(i,r,o)}};n.\u0275fac=function(r){return new(r||n)(pe(_u),pe(Th),pe(Re))},n.\u0275prov=O({token:n,factory:n.\u0275fac});let t=n;return t})();var xc=(()=>{let n=class n{static forRoot(i={}){return{ngModule:n,providers:[rj,Tx,ij,_u,tj,Th,LS,{provide:VS,useValue:i.permissionsIsolate},{provide:BS,useValue:i.rolesIsolate},{provide:NS,useValue:i.configurationIsolate}]}}static forChild(i={}){return{ngModule:n,providers:[{provide:VS,useValue:i.permissionsIsolate},{provide:BS,useValue:i.rolesIsolate},{provide:NS,useValue:i.configurationIsolate},LS,_u,Th,tj]}}};n.\u0275fac=function(r){return new(r||n)},n.\u0275mod=ee({type:n}),n.\u0275inj=J({});let t=n;return t})();function Ng(t){return t+.5|0}var Cc=(t,n,e)=>Math.max(Math.min(t,e),n);function Pg(t){return Cc(Ng(t*2.55),0,255)}function wc(t){return Cc(Ng(t*255),0,255)}function pl(t){return Cc(Ng(t/2.55)/100,0,1)}function oj(t){return Cc(Ng(t*100),0,100)}var na={0:0,1:1,2:2,3:3,4:4,5:5,6:6,7:7,8:8,9:9,A:10,B:11,C:12,D:13,E:14,F:15,a:10,b:11,c:12,d:13,e:14,f:15},zS=[..."0123456789ABCDEF"],ine=t=>zS[t&15],nne=t=>zS[(t&240)>>4]+zS[t&15],Ix=t=>(t&240)>>4===(t&15),rne=t=>Ix(t.r)&&Ix(t.g)&&Ix(t.b)&&Ix(t.a);function one(t){var n=t.length,e;return t[0]==="#"&&(n===4||n===5?e={r:255&na[t[1]]*17,g:255&na[t[2]]*17,b:255&na[t[3]]*17,a:n===5?na[t[4]]*17:255}:(n===7||n===9)&&(e={r:na[t[1]]<<4|na[t[2]],g:na[t[3]]<<4|na[t[4]],b:na[t[5]]<<4|na[t[6]],a:n===9?na[t[7]]<<4|na[t[8]]:255})),e}var ane=(t,n)=>t<255?n(t):"";function sne(t){var n=rne(t)?ine:nne;return t?"#"+n(t.r)+n(t.g)+n(t.b)+ane(t.a,n):void 0}var lne=/^(hsla?|hwb|hsv)\(\s*([-+.e\d]+)(?:deg)?[\s,]+([-+.e\d]+)%[\s,]+([-+.e\d]+)%(?:[\s,]+([-+.e\d]+)(%)?)?\s*\)$/;function cj(t,n,e){let i=n*Math.min(e,1-e),r=(o,a=(o+t/30)%12)=>e-i*Math.max(Math.min(a-3,9-a,1),-1);return[r(0),r(8),r(4)]}function cne(t,n,e){let i=(r,o=(r+t/60)%6)=>e-e*n*Math.max(Math.min(o,4-o,1),0);return[i(5),i(3),i(1)]}function dne(t,n,e){let i=cj(t,1,.5),r;for(n+e>1&&(r=1/(n+e),n*=r,e*=r),r=0;r<3;r++)i[r]*=1-n-e,i[r]+=n;return i}function une(t,n,e,i,r){return t===r?(n-e)/i+(n.5?d/(2-o-a):d/(o+a),l=une(e,i,r,d,o),l=l*60+.5),[l|0,c||0,s]}function $S(t,n,e,i){return(Array.isArray(n)?t(n[0],n[1],n[2]):t(n,e,i)).map(wc)}function WS(t,n,e){return $S(cj,t,n,e)}function mne(t,n,e){return $S(dne,t,n,e)}function hne(t,n,e){return $S(cne,t,n,e)}function dj(t){return(t%360+360)%360}function pne(t){let n=lne.exec(t),e=255,i;if(!n)return;n[5]!==i&&(e=n[6]?Pg(+n[5]):wc(+n[5]));let r=dj(+n[2]),o=+n[3]/100,a=+n[4]/100;return n[1]==="hwb"?i=mne(r,o,a):n[1]==="hsv"?i=hne(r,o,a):i=WS(r,o,a),{r:i[0],g:i[1],b:i[2],a:e}}function fne(t,n){var e=US(t);e[0]=dj(e[0]+n),e=WS(e),t.r=e[0],t.g=e[1],t.b=e[2]}function gne(t){if(!t)return;let n=US(t),e=n[0],i=oj(n[1]),r=oj(n[2]);return t.a<255?`hsla(${e}, ${i}%, ${r}%, ${pl(t.a)})`:`hsl(${e}, ${i}%, ${r}%)`}var aj={x:"dark",Z:"light",Y:"re",X:"blu",W:"gr",V:"medium",U:"slate",A:"ee",T:"ol",S:"or",B:"ra",C:"lateg",D:"ights",R:"in",Q:"turquois",E:"hi",P:"ro",O:"al",N:"le",M:"de",L:"yello",F:"en",K:"ch",G:"arks",H:"ea",I:"ightg",J:"wh"},sj={OiceXe:"f0f8ff",antiquewEte:"faebd7",aqua:"ffff",aquamarRe:"7fffd4",azuY:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"0",blanKedOmond:"ffebcd",Xe:"ff",XeviTet:"8a2be2",bPwn:"a52a2a",burlywood:"deb887",caMtXe:"5f9ea0",KartYuse:"7fff00",KocTate:"d2691e",cSO:"ff7f50",cSnflowerXe:"6495ed",cSnsilk:"fff8dc",crimson:"dc143c",cyan:"ffff",xXe:"8b",xcyan:"8b8b",xgTMnPd:"b8860b",xWay:"a9a9a9",xgYF:"6400",xgYy:"a9a9a9",xkhaki:"bdb76b",xmagFta:"8b008b",xTivegYF:"556b2f",xSange:"ff8c00",xScEd:"9932cc",xYd:"8b0000",xsOmon:"e9967a",xsHgYF:"8fbc8f",xUXe:"483d8b",xUWay:"2f4f4f",xUgYy:"2f4f4f",xQe:"ced1",xviTet:"9400d3",dAppRk:"ff1493",dApskyXe:"bfff",dimWay:"696969",dimgYy:"696969",dodgerXe:"1e90ff",fiYbrick:"b22222",flSOwEte:"fffaf0",foYstWAn:"228b22",fuKsia:"ff00ff",gaRsbSo:"dcdcdc",ghostwEte:"f8f8ff",gTd:"ffd700",gTMnPd:"daa520",Way:"808080",gYF:"8000",gYFLw:"adff2f",gYy:"808080",honeyMw:"f0fff0",hotpRk:"ff69b4",RdianYd:"cd5c5c",Rdigo:"4b0082",ivSy:"fffff0",khaki:"f0e68c",lavFMr:"e6e6fa",lavFMrXsh:"fff0f5",lawngYF:"7cfc00",NmoncEffon:"fffacd",ZXe:"add8e6",ZcSO:"f08080",Zcyan:"e0ffff",ZgTMnPdLw:"fafad2",ZWay:"d3d3d3",ZgYF:"90ee90",ZgYy:"d3d3d3",ZpRk:"ffb6c1",ZsOmon:"ffa07a",ZsHgYF:"20b2aa",ZskyXe:"87cefa",ZUWay:"778899",ZUgYy:"778899",ZstAlXe:"b0c4de",ZLw:"ffffe0",lime:"ff00",limegYF:"32cd32",lRF:"faf0e6",magFta:"ff00ff",maPon:"800000",VaquamarRe:"66cdaa",VXe:"cd",VScEd:"ba55d3",VpurpN:"9370db",VsHgYF:"3cb371",VUXe:"7b68ee",VsprRggYF:"fa9a",VQe:"48d1cc",VviTetYd:"c71585",midnightXe:"191970",mRtcYam:"f5fffa",mistyPse:"ffe4e1",moccasR:"ffe4b5",navajowEte:"ffdead",navy:"80",Tdlace:"fdf5e6",Tive:"808000",TivedBb:"6b8e23",Sange:"ffa500",SangeYd:"ff4500",ScEd:"da70d6",pOegTMnPd:"eee8aa",pOegYF:"98fb98",pOeQe:"afeeee",pOeviTetYd:"db7093",papayawEp:"ffefd5",pHKpuff:"ffdab9",peru:"cd853f",pRk:"ffc0cb",plum:"dda0dd",powMrXe:"b0e0e6",purpN:"800080",YbeccapurpN:"663399",Yd:"ff0000",Psybrown:"bc8f8f",PyOXe:"4169e1",saddNbPwn:"8b4513",sOmon:"fa8072",sandybPwn:"f4a460",sHgYF:"2e8b57",sHshell:"fff5ee",siFna:"a0522d",silver:"c0c0c0",skyXe:"87ceeb",UXe:"6a5acd",UWay:"708090",UgYy:"708090",snow:"fffafa",sprRggYF:"ff7f",stAlXe:"4682b4",tan:"d2b48c",teO:"8080",tEstN:"d8bfd8",tomato:"ff6347",Qe:"40e0d0",viTet:"ee82ee",JHt:"f5deb3",wEte:"ffffff",wEtesmoke:"f5f5f5",Lw:"ffff00",LwgYF:"9acd32"};function _ne(){let t={},n=Object.keys(sj),e=Object.keys(aj),i,r,o,a,s;for(i=0;i>16&255,o>>8&255,o&255]}return t}var Ax;function bne(t){Ax||(Ax=_ne(),Ax.transparent=[0,0,0,0]);let n=Ax[t.toLowerCase()];return n&&{r:n[0],g:n[1],b:n[2],a:n.length===4?n[3]:255}}var vne=/^rgba?\(\s*([-+.\d]+)(%)?[\s,]+([-+.e\d]+)(%)?[\s,]+([-+.e\d]+)(%)?(?:[\s,/]+([-+.e\d]+)(%)?)?\s*\)$/;function yne(t){let n=vne.exec(t),e=255,i,r,o;if(n){if(n[7]!==i){let a=+n[7];e=n[8]?Pg(a):Cc(a*255,0,255)}return i=+n[1],r=+n[3],o=+n[5],i=255&(n[2]?Pg(i):Cc(i,0,255)),r=255&(n[4]?Pg(r):Cc(r,0,255)),o=255&(n[6]?Pg(o):Cc(o,0,255)),{r:i,g:r,b:o,a:e}}}function xne(t){return t&&(t.a<255?`rgba(${t.r}, ${t.g}, ${t.b}, ${pl(t.a)})`:`rgb(${t.r}, ${t.g}, ${t.b})`)}var HS=t=>t<=.0031308?t*12.92:Math.pow(t,1/2.4)*1.055-.055,Ah=t=>t<=.04045?t/12.92:Math.pow((t+.055)/1.055,2.4);function Cne(t,n,e){let i=Ah(pl(t.r)),r=Ah(pl(t.g)),o=Ah(pl(t.b));return{r:wc(HS(i+e*(Ah(pl(n.r))-i))),g:wc(HS(r+e*(Ah(pl(n.g))-r))),b:wc(HS(o+e*(Ah(pl(n.b))-o))),a:t.a+e*(n.a-t.a)}}function Ox(t,n,e){if(t){let i=US(t);i[n]=Math.max(0,Math.min(i[n]+i[n]*e,n===0?360:1)),i=WS(i),t.r=i[0],t.g=i[1],t.b=i[2]}}function uj(t,n){return t&&Object.assign(n||{},t)}function lj(t){var n={r:0,g:0,b:0,a:255};return Array.isArray(t)?t.length>=3&&(n={r:t[0],g:t[1],b:t[2],a:255},t.length>3&&(n.a=wc(t[3]))):(n=uj(t,{r:0,g:0,b:0,a:1}),n.a=wc(n.a)),n}function wne(t){return t.charAt(0)==="r"?yne(t):pne(t)}var Fg=class t{constructor(n){if(n instanceof t)return n;let e=typeof n,i;e==="object"?i=lj(n):e==="string"&&(i=one(n)||bne(n)||wne(n)),this._rgb=i,this._valid=!!i}get valid(){return this._valid}get rgb(){var n=uj(this._rgb);return n&&(n.a=pl(n.a)),n}set rgb(n){this._rgb=lj(n)}rgbString(){return this._valid?xne(this._rgb):void 0}hexString(){return this._valid?sne(this._rgb):void 0}hslString(){return this._valid?gne(this._rgb):void 0}mix(n,e){if(n){let i=this.rgb,r=n.rgb,o,a=e===o?.5:e,s=2*a-1,l=i.a-r.a,c=((s*l===-1?s:(s+l)/(1+s*l))+1)/2;o=1-c,i.r=255&c*i.r+o*r.r+.5,i.g=255&c*i.g+o*r.g+.5,i.b=255&c*i.b+o*r.b+.5,i.a=a*i.a+(1-a)*r.a,this.rgb=i}return this}interpolate(n,e){return n&&(this._rgb=Cne(this._rgb,n._rgb,e)),this}clone(){return new t(this.rgb)}alpha(n){return this._rgb.a=wc(n),this}clearer(n){let e=this._rgb;return e.a*=1-n,this}greyscale(){let n=this._rgb,e=Ng(n.r*.3+n.g*.59+n.b*.11);return n.r=n.g=n.b=e,this}opaquer(n){let e=this._rgb;return e.a*=1+n,this}negate(){let n=this._rgb;return n.r=255-n.r,n.g=255-n.g,n.b=255-n.b,this}lighten(n){return Ox(this._rgb,2,n),this}darken(n){return Ox(this._rgb,2,-n),this}saturate(n){return Ox(this._rgb,1,n),this}desaturate(n){return Ox(this._rgb,1,-n),this}rotate(n){return fne(this._rgb,n),this}};function Ts(){}var Cj=(()=>{let t=0;return()=>t++})();function Et(t){return t==null}function Ei(t){if(Array.isArray&&Array.isArray(t))return!0;let n=Object.prototype.toString.call(t);return n.slice(0,7)==="[object"&&n.slice(-6)==="Array]"}function St(t){return t!==null&&Object.prototype.toString.call(t)==="[object Object]"}function Gi(t){return(typeof t=="number"||t instanceof Number)&&isFinite(+t)}function no(t,n){return Gi(t)?t:n}function st(t,n){return typeof t>"u"?n:t}var wj=(t,n)=>typeof t=="string"&&t.endsWith("%")?parseFloat(t)/100:+t/n,QS=(t,n)=>typeof t=="string"&&t.endsWith("%")?parseFloat(t)/100*n:+t;function yi(t,n,e){if(t&&typeof t.call=="function")return t.apply(e,n)}function ii(t,n,e,i){let r,o,a;if(Ei(t))if(o=t.length,i)for(r=o-1;r>=0;r--)n.call(e,t[r],r);else for(r=0;rt,x:t=>t.x,y:t=>t.y};function Mne(t){let n=t.split("."),e=[],i="";for(let r of n)i+=r,i.endsWith("\\")?i=i.slice(0,-1)+".":(e.push(i),i="");return e}function kne(t){let n=Mne(t);return e=>{for(let i of n){if(i==="")break;e=e&&e[i]}return e}}function _l(t,n){return(mj[n]||(mj[n]=kne(n)))(t)}function jx(t){return t.charAt(0).toUpperCase()+t.slice(1)}var Nh=t=>typeof t<"u",fl=t=>typeof t=="function",KS=(t,n)=>{if(t.size!==n.size)return!1;for(let e of t)if(!n.has(e))return!1;return!0};function Ej(t){return t.type==="mouseup"||t.type==="click"||t.type==="contextmenu"}var Ht=Math.PI,Mi=2*Ht,Sne=Mi+Ht,Lx=Number.POSITIVE_INFINITY,Tne=Ht/180,Zi=Ht/2,bu=Ht/4,hj=Ht*2/3,gl=Math.log10,Ba=Math.sign;function Lh(t,n,e){return Math.abs(t-n)r-o).pop(),n}function Ine(t){return typeof t=="symbol"||typeof t=="object"&&t!==null&&!(Symbol.toPrimitive in t||"toString"in t||"valueOf"in t)}function xu(t){return!Ine(t)&&!isNaN(parseFloat(t))&&isFinite(t)}function kj(t,n){let e=Math.round(t);return e-n<=t&&e+n>=t}function XS(t,n,e){let i,r,o;for(i=0,r=t.length;il&&c=Math.min(n,e)-i&&t<=Math.max(n,e)+i}function zx(t,n,e){e=e||(a=>t[a]1;)o=r+i>>1,e(o)?r=o:i=o;return{lo:r,hi:i}}var ks=(t,n,e,i)=>zx(t,e,i?r=>{let o=t[r][n];return ot[r][n]zx(t,e,i=>t[i][n]>=e);function Ij(t,n,e){let i=0,r=t.length;for(;ii&&t[r-1]>e;)r--;return i>0||r{let i="_onData"+jx(e),r=t[e];Object.defineProperty(t,e,{configurable:!0,enumerable:!1,value(...o){let a=r.apply(this,o);return t._chartjs.listeners.forEach(s=>{typeof s[i]=="function"&&s[i](...o)}),a}})})}function tT(t,n){let e=t._chartjs;if(!e)return;let i=e.listeners,r=i.indexOf(n);r!==-1&&i.splice(r,1),!(i.length>0)&&(Aj.forEach(o=>{delete t[o]}),delete t._chartjs)}function iT(t){let n=new Set(t);return n.size===t.length?t:Array.from(n)}var nT=(function(){return typeof window>"u"?function(t){return t()}:window.requestAnimationFrame})();function rT(t,n){let e=[],i=!1;return function(...r){e=r,i||(i=!0,nT.call(window,()=>{i=!1,t.apply(n,e)}))}}function Rj(t,n){let e;return function(...i){return n?(clearTimeout(e),e=setTimeout(t,n,i)):t.apply(this,i),n}}var Ux=t=>t==="start"?"left":t==="end"?"right":"center",ar=(t,n,e)=>t==="start"?n:t==="end"?e:(n+e)/2,Pj=(t,n,e,i)=>t===(i?"left":"right")?e:t==="center"?(n+e)/2:n;function oT(t,n,e){let i=n.length,r=0,o=i;if(t._sorted){let{iScale:a,vScale:s,_parsed:l}=t,c=t.dataset&&t.dataset.options?t.dataset.options.spanGaps:null,d=a.axis,{min:m,max:f,minDefined:b,maxDefined:v}=a.getUserBounds();if(b){if(r=Math.min(ks(l,d,m).lo,e?i:ks(n,d,a.getPixelForValue(m)).lo),c){let w=l.slice(0,r+1).reverse().findIndex(x=>!Et(x[s.axis]));r-=Math.max(0,w)}r=Dn(r,0,i-1)}if(v){let w=Math.max(ks(l,a.axis,f,!0).hi+1,e?0:ks(n,d,a.getPixelForValue(f),!0).hi+1);if(c){let x=l.slice(w-1).findIndex(D=>!Et(D[s.axis]));w+=Math.max(0,x)}o=Dn(w,r,i)-r}else o=i-r}return{start:r,count:o}}function aT(t){let{xScale:n,yScale:e,_scaleRanges:i}=t,r={xmin:n.min,xmax:n.max,ymin:e.min,ymax:e.max};if(!i)return t._scaleRanges=r,!0;let o=i.xmin!==n.min||i.xmax!==n.max||i.ymin!==e.min||i.ymax!==e.max;return Object.assign(i,r),o}var Rx=t=>t===0||t===1,pj=(t,n,e)=>-(Math.pow(2,10*(t-=1))*Math.sin((t-n)*Mi/e)),fj=(t,n,e)=>Math.pow(2,-10*t)*Math.sin((t-n)*Mi/e)+1,Oh={linear:t=>t,easeInQuad:t=>t*t,easeOutQuad:t=>-t*(t-2),easeInOutQuad:t=>(t/=.5)<1?.5*t*t:-.5*(--t*(t-2)-1),easeInCubic:t=>t*t*t,easeOutCubic:t=>(t-=1)*t*t+1,easeInOutCubic:t=>(t/=.5)<1?.5*t*t*t:.5*((t-=2)*t*t+2),easeInQuart:t=>t*t*t*t,easeOutQuart:t=>-((t-=1)*t*t*t-1),easeInOutQuart:t=>(t/=.5)<1?.5*t*t*t*t:-.5*((t-=2)*t*t*t-2),easeInQuint:t=>t*t*t*t*t,easeOutQuint:t=>(t-=1)*t*t*t*t+1,easeInOutQuint:t=>(t/=.5)<1?.5*t*t*t*t*t:.5*((t-=2)*t*t*t*t+2),easeInSine:t=>-Math.cos(t*Zi)+1,easeOutSine:t=>Math.sin(t*Zi),easeInOutSine:t=>-.5*(Math.cos(Ht*t)-1),easeInExpo:t=>t===0?0:Math.pow(2,10*(t-1)),easeOutExpo:t=>t===1?1:-Math.pow(2,-10*t)+1,easeInOutExpo:t=>Rx(t)?t:t<.5?.5*Math.pow(2,10*(t*2-1)):.5*(-Math.pow(2,-10*(t*2-1))+2),easeInCirc:t=>t>=1?t:-(Math.sqrt(1-t*t)-1),easeOutCirc:t=>Math.sqrt(1-(t-=1)*t),easeInOutCirc:t=>(t/=.5)<1?-.5*(Math.sqrt(1-t*t)-1):.5*(Math.sqrt(1-(t-=2)*t)+1),easeInElastic:t=>Rx(t)?t:pj(t,.075,.3),easeOutElastic:t=>Rx(t)?t:fj(t,.075,.3),easeInOutElastic(t){return Rx(t)?t:t<.5?.5*pj(t*2,.1125,.45):.5+.5*fj(t*2-1,.1125,.45)},easeInBack(t){return t*t*((1.70158+1)*t-1.70158)},easeOutBack(t){return(t-=1)*t*((1.70158+1)*t+1.70158)+1},easeInOutBack(t){let n=1.70158;return(t/=.5)<1?.5*(t*t*(((n*=1.525)+1)*t-n)):.5*((t-=2)*t*(((n*=1.525)+1)*t+n)+2)},easeInBounce:t=>1-Oh.easeOutBounce(1-t),easeOutBounce(t){return t<1/2.75?7.5625*t*t:t<2/2.75?7.5625*(t-=1.5/2.75)*t+.75:t<2.5/2.75?7.5625*(t-=2.25/2.75)*t+.9375:7.5625*(t-=2.625/2.75)*t+.984375},easeInOutBounce:t=>t<.5?Oh.easeInBounce(t*2)*.5:Oh.easeOutBounce(t*2-1)*.5+.5};function sT(t){if(t&&typeof t=="object"){let n=t.toString();return n==="[object CanvasPattern]"||n==="[object CanvasGradient]"}return!1}function lT(t){return sT(t)?t:new Fg(t)}function GS(t){return sT(t)?t:new Fg(t).saturate(.5).darken(.1).hexString()}var One=["x","y","borderWidth","radius","tension"],Rne=["color","borderColor","backgroundColor"];function Pne(t){t.set("animation",{delay:void 0,duration:1e3,easing:"easeOutQuart",fn:void 0,from:void 0,loop:void 0,to:void 0,type:void 0}),t.describe("animation",{_fallback:!1,_indexable:!1,_scriptable:n=>n!=="onProgress"&&n!=="onComplete"&&n!=="fn"}),t.set("animations",{colors:{type:"color",properties:Rne},numbers:{type:"number",properties:One}}),t.describe("animations",{_fallback:"animation"}),t.set("transitions",{active:{animation:{duration:400}},resize:{animation:{duration:0}},show:{animations:{colors:{from:"transparent"},visible:{type:"boolean",duration:0}}},hide:{animations:{colors:{to:"transparent"},visible:{type:"boolean",easing:"linear",fn:n=>n|0}}}})}function Fne(t){t.set("layout",{autoPadding:!0,padding:{top:0,right:0,bottom:0,left:0}})}var gj=new Map;function Nne(t,n){n=n||{};let e=t+JSON.stringify(n),i=gj.get(e);return i||(i=new Intl.NumberFormat(t,n),gj.set(e,i)),i}function Bh(t,n,e){return Nne(n,e).format(t)}var Fj={values(t){return Ei(t)?t:""+t},numeric(t,n,e){if(t===0)return"0";let i=this.chart.options.locale,r,o=t;if(e.length>1){let c=Math.max(Math.abs(e[0].value),Math.abs(e[e.length-1].value));(c<1e-4||c>1e15)&&(r="scientific"),o=Lne(t,e)}let a=gl(Math.abs(o)),s=isNaN(a)?1:Math.max(Math.min(-1*Math.floor(a),20),0),l={notation:r,minimumFractionDigits:s,maximumFractionDigits:s};return Object.assign(l,this.options.ticks.format),Bh(t,i,l)},logarithmic(t,n,e){if(t===0)return"0";let i=e[n].significand||t/Math.pow(10,Math.floor(gl(t)));return[1,2,3,5,10,15].includes(i)||n>.8*e.length?Fj.numeric.call(this,t,n,e):""}};function Lne(t,n){let e=n.length>3?n[2].value-n[1].value:n[1].value-n[0].value;return Math.abs(e)>=1&&t!==Math.floor(t)&&(e=t-Math.floor(t)),e}var jg={formatters:Fj};function Vne(t){t.set("scale",{display:!0,offset:!1,reverse:!1,beginAtZero:!1,bounds:"ticks",clip:!0,grace:0,grid:{display:!0,lineWidth:1,drawOnChartArea:!0,drawTicks:!0,tickLength:8,tickWidth:(n,e)=>e.lineWidth,tickColor:(n,e)=>e.color,offset:!1},border:{display:!0,dash:[],dashOffset:0,width:1},title:{display:!1,text:"",padding:{top:4,bottom:4}},ticks:{minRotation:0,maxRotation:50,mirror:!1,textStrokeWidth:0,textStrokeColor:"",padding:3,display:!0,autoSkip:!0,autoSkipPadding:3,labelOffset:0,callback:jg.formatters.values,minor:{},major:{},align:"center",crossAlign:"near",showLabelBackdrop:!1,backdropColor:"rgba(255, 255, 255, 0.75)",backdropPadding:2}}),t.route("scale.ticks","color","","color"),t.route("scale.grid","color","","borderColor"),t.route("scale.border","color","","borderColor"),t.route("scale.title","color","","color"),t.describe("scale",{_fallback:!1,_scriptable:n=>!n.startsWith("before")&&!n.startsWith("after")&&n!=="callback"&&n!=="parser",_indexable:n=>n!=="borderDash"&&n!=="tickBorderDash"&&n!=="dash"}),t.describe("scales",{_fallback:"scale"}),t.describe("scale.ticks",{_scriptable:n=>n!=="backdropPadding"&&n!=="callback",_indexable:n=>n!=="backdropPadding"})}var Mc=Object.create(null),$x=Object.create(null);function Lg(t,n){if(!n)return t;let e=n.split(".");for(let i=0,r=e.length;ii.chart.platform.getDevicePixelRatio(),this.elements={},this.events=["mousemove","mouseout","click","touchstart","touchmove"],this.font={family:"'Helvetica Neue', 'Helvetica', 'Arial', sans-serif",size:12,style:"normal",lineHeight:1.2,weight:null},this.hover={},this.hoverBackgroundColor=(i,r)=>GS(r.backgroundColor),this.hoverBorderColor=(i,r)=>GS(r.borderColor),this.hoverColor=(i,r)=>GS(r.color),this.indexAxis="x",this.interaction={mode:"nearest",intersect:!0,includeInvisible:!1},this.maintainAspectRatio=!0,this.onHover=null,this.onClick=null,this.parsing=!0,this.plugins={},this.responsive=!0,this.scale=void 0,this.scales={},this.showLine=!0,this.drawActiveElementsOnTop=!0,this.describe(n),this.apply(e)}set(n,e){return qS(this,n,e)}get(n){return Lg(this,n)}describe(n,e){return qS($x,n,e)}override(n,e){return qS(Mc,n,e)}route(n,e,i,r){let o=Lg(this,n),a=Lg(this,i),s="_"+e;Object.defineProperties(o,{[s]:{value:o[e],writable:!0},[e]:{enumerable:!0,get(){let l=this[s],c=a[r];return St(l)?Object.assign({},c,l):st(l,c)},set(l){this[s]=l}}})}apply(n){n.forEach(e=>e(this))}},xi=new YS({_scriptable:t=>!t.startsWith("on"),_indexable:t=>t!=="events",hover:{_fallback:"interaction"},interaction:{_scriptable:!1,_indexable:!1}},[Pne,Fne,Vne]);function Bne(t){return!t||Et(t.size)||Et(t.family)?null:(t.style?t.style+" ":"")+(t.weight?t.weight+" ":"")+t.size+"px "+t.family}function Vg(t,n,e,i,r){let o=n[r];return o||(o=n[r]=t.measureText(r).width,e.push(r)),o>i&&(i=o),i}function Nj(t,n,e,i){i=i||{};let r=i.data=i.data||{},o=i.garbageCollect=i.garbageCollect||[];i.font!==n&&(r=i.data={},o=i.garbageCollect=[],i.font=n),t.save(),t.font=n;let a=0,s=e.length,l,c,d,m,f;for(l=0;le.length){for(l=0;l0&&t.stroke()}}function Ss(t,n,e){return e=e||.5,!n||t&&t.x>n.left-e&&t.xn.top-e&&t.y0&&o.strokeColor!=="",l,c;for(t.save(),t.font=r.string,jne(t,o),l=0;l+t||0;function Gx(t,n){let e={},i=St(n),r=i?Object.keys(n):n,o=St(t)?i?a=>st(t[a],t[n[a]]):a=>t[a]:()=>t;for(let a of r)e[a]=Gne(o(a));return e}function uT(t){return Gx(t,{top:"y",right:"x",bottom:"y",left:"x"})}function Tc(t){return Gx(t,["topLeft","topRight","bottomLeft","bottomRight"])}function sr(t){let n=uT(t);return n.width=n.left+n.right,n.height=n.top+n.bottom,n}function pn(t,n){t=t||{},n=n||xi.font;let e=st(t.size,n.size);typeof e=="string"&&(e=parseInt(e,10));let i=st(t.style,n.style);i&&!(""+i).match($ne)&&(console.warn('Invalid font style specified: "'+i+'"'),i=void 0);let r={family:st(t.family,n.family),lineHeight:Wne(st(t.lineHeight,n.lineHeight),e),size:e,style:i,weight:st(t.weight,n.weight),string:""};return r.string=Bne(r),r}function Hh(t,n,e,i){let r=!0,o,a,s;for(o=0,a=t.length;oe&&s===0?0:s+l;return{min:a(i,-Math.abs(o)),max:a(r,o)}}function bl(t,n){return Object.assign(Object.create(t),n)}function qx(t,n=[""],e,i,r=()=>t[0]){let o=e||t;typeof i>"u"&&(i=zj("_fallback",t));let a={[Symbol.toStringTag]:"Object",_cacheable:!0,_scopes:t,_rootScopes:o,_fallback:i,_getTarget:r,override:s=>qx([s,...t],n,o,i)};return new Proxy(a,{deleteProperty(s,l){return delete s[l],delete s._keys,delete t[0][l],!0},get(s,l){return jj(s,l,()=>ere(l,n,t,s))},getOwnPropertyDescriptor(s,l){return Reflect.getOwnPropertyDescriptor(s._scopes[0],l)},getPrototypeOf(){return Reflect.getPrototypeOf(t[0])},has(s,l){return bj(s).includes(l)},ownKeys(s){return bj(s)},set(s,l,c){let d=s._storage||(s._storage=r());return s[l]=d[l]=c,delete s._keys,!0}})}function yu(t,n,e,i){let r={_cacheable:!1,_proxy:t,_context:n,_subProxy:e,_stack:new Set,_descriptors:mT(t,i),setContext:o=>yu(t,o,e,i),override:o=>yu(t.override(o),n,e,i)};return new Proxy(r,{deleteProperty(o,a){return delete o[a],delete t[a],!0},get(o,a,s){return jj(o,a,()=>Yne(o,a,s))},getOwnPropertyDescriptor(o,a){return o._descriptors.allKeys?Reflect.has(t,a)?{enumerable:!0,configurable:!0}:void 0:Reflect.getOwnPropertyDescriptor(t,a)},getPrototypeOf(){return Reflect.getPrototypeOf(t)},has(o,a){return Reflect.has(t,a)},ownKeys(){return Reflect.ownKeys(t)},set(o,a,s){return t[a]=s,delete o[a],!0}})}function mT(t,n={scriptable:!0,indexable:!0}){let{_scriptable:e=n.scriptable,_indexable:i=n.indexable,_allKeys:r=n.allKeys}=t;return{allKeys:r,scriptable:e,indexable:i,isScriptable:fl(e)?e:()=>e,isIndexable:fl(i)?i:()=>i}}var qne=(t,n)=>t?t+jx(n):n,hT=(t,n)=>St(n)&&t!=="adapters"&&(Object.getPrototypeOf(n)===null||n.constructor===Object);function jj(t,n,e){if(Object.prototype.hasOwnProperty.call(t,n)||n==="constructor")return t[n];let i=e();return t[n]=i,i}function Yne(t,n,e){let{_proxy:i,_context:r,_subProxy:o,_descriptors:a}=t,s=i[n];return fl(s)&&a.isScriptable(n)&&(s=Qne(n,s,t,e)),Ei(s)&&s.length&&(s=Kne(n,s,t,a.isIndexable)),hT(n,s)&&(s=yu(s,r,o&&o[n],a)),s}function Qne(t,n,e,i){let{_proxy:r,_context:o,_subProxy:a,_stack:s}=e;if(s.has(t))throw new Error("Recursion detected: "+Array.from(s).join("->")+"->"+t);s.add(t);let l=n(o,a||i);return s.delete(t),hT(t,l)&&(l=pT(r._scopes,r,t,l)),l}function Kne(t,n,e,i){let{_proxy:r,_context:o,_subProxy:a,_descriptors:s}=e;if(typeof o.index<"u"&&i(t))return n[o.index%n.length];if(St(n[0])){let l=n,c=r._scopes.filter(d=>d!==l);n=[];for(let d of l){let m=pT(c,r,t,d);n.push(yu(m,o,a&&a[t],s))}}return n}function Hj(t,n,e){return fl(t)?t(n,e):t}var Zne=(t,n)=>t===!0?n:typeof t=="string"?_l(n,t):void 0;function Xne(t,n,e,i,r){for(let o of n){let a=Zne(e,o);if(a){t.add(a);let s=Hj(a._fallback,e,r);if(typeof s<"u"&&s!==e&&s!==i)return s}else if(a===!1&&typeof i<"u"&&e!==i)return null}return!1}function pT(t,n,e,i){let r=n._rootScopes,o=Hj(n._fallback,e,i),a=[...t,...r],s=new Set;s.add(i);let l=_j(s,a,e,o||e,i);return l===null||typeof o<"u"&&o!==e&&(l=_j(s,a,o,l,i),l===null)?!1:qx(Array.from(s),[""],r,o,()=>Jne(n,e,i))}function _j(t,n,e,i,r){for(;e;)e=Xne(t,n,e,i,r);return e}function Jne(t,n,e){let i=t._getTarget();n in i||(i[n]={});let r=i[n];return Ei(r)&&St(e)?e:r||{}}function ere(t,n,e,i){let r;for(let o of n)if(r=zj(qne(o,t),e),typeof r<"u")return hT(t,r)?pT(e,i,t,r):r}function zj(t,n){for(let e of n){if(!e)continue;let i=e[t];if(typeof i<"u")return i}}function bj(t){let n=t._keys;return n||(n=t._keys=tre(t._scopes)),n}function tre(t){let n=new Set;for(let e of t)for(let i of Object.keys(e).filter(r=>!r.startsWith("_")))n.add(i);return Array.from(n)}function fT(t,n,e,i){let{iScale:r}=t,{key:o="r"}=this._parsing,a=new Array(i),s,l,c,d;for(s=0,l=i;snt==="x"?"y":"x";function nre(t,n,e,i){let r=t.skip?n:t,o=n,a=e.skip?n:e,s=Vx(o,r),l=Vx(a,o),c=s/(s+l),d=l/(s+l);c=isNaN(c)?0:c,d=isNaN(d)?0:d;let m=i*c,f=i*d;return{previous:{x:o.x-m*(a.x-r.x),y:o.y-m*(a.y-r.y)},next:{x:o.x+f*(a.x-r.x),y:o.y+f*(a.y-r.y)}}}function rre(t,n,e){let i=t.length,r,o,a,s,l,c=Ph(t,0);for(let d=0;d!c.skip)),n.cubicInterpolationMode==="monotone")are(t,r);else{let c=i?t[t.length-1]:t[0];for(o=0,a=t.length;ot.ownerDocument.defaultView.getComputedStyle(t,null);function lre(t,n){return Kx(t).getPropertyValue(n)}var cre=["top","right","bottom","left"];function vu(t,n,e){let i={};e=e?"-"+e:"";for(let r=0;r<4;r++){let o=cre[r];i[o]=parseFloat(t[n+"-"+o+e])||0}return i.width=i.left+i.right,i.height=i.top+i.bottom,i}var dre=(t,n,e)=>(t>0||n>0)&&(!e||!e.shadowRoot);function ure(t,n){let e=t.touches,i=e&&e.length?e[0]:t,{offsetX:r,offsetY:o}=i,a=!1,s,l;if(dre(r,o,t.target))s=r,l=o;else{let c=n.getBoundingClientRect();s=i.clientX-c.left,l=i.clientY-c.top,a=!0}return{x:s,y:l,box:a}}function Ic(t,n){if("native"in t)return t;let{canvas:e,currentDevicePixelRatio:i}=n,r=Kx(e),o=r.boxSizing==="border-box",a=vu(r,"padding"),s=vu(r,"border","width"),{x:l,y:c,box:d}=ure(t,e),m=a.left+(d&&s.left),f=a.top+(d&&s.top),{width:b,height:v}=n;return o&&(b-=a.width+s.width,v-=a.height+s.height),{x:Math.round((l-m)/b*e.width/i),y:Math.round((c-f)/v*e.height/i)}}function mre(t,n,e){let i,r;if(n===void 0||e===void 0){let o=t&&Qx(t);if(!o)n=t.clientWidth,e=t.clientHeight;else{let a=o.getBoundingClientRect(),s=Kx(o),l=vu(s,"border","width"),c=vu(s,"padding");n=a.width-c.width-l.width,e=a.height-c.height-l.height,i=Bx(s.maxWidth,o,"clientWidth"),r=Bx(s.maxHeight,o,"clientHeight")}}return{width:n,height:e,maxWidth:i||Lx,maxHeight:r||Lx}}var Ec=t=>Math.round(t*10)/10;function Wj(t,n,e,i){let r=Kx(t),o=vu(r,"margin"),a=Bx(r.maxWidth,t,"clientWidth")||Lx,s=Bx(r.maxHeight,t,"clientHeight")||Lx,l=mre(t,n,e),{width:c,height:d}=l;if(r.boxSizing==="content-box"){let f=vu(r,"border","width"),b=vu(r,"padding");c-=b.width+f.width,d-=b.height+f.height}return c=Math.max(0,c-o.width),d=Math.max(0,i?c/i:d-o.height),c=Ec(Math.min(c,a,l.maxWidth)),d=Ec(Math.min(d,s,l.maxHeight)),c&&!d&&(d=Ec(c/2)),(n!==void 0||e!==void 0)&&i&&l.height&&d>l.height&&(d=l.height,c=Ec(Math.floor(d*i))),{width:c,height:d}}function gT(t,n,e){let i=n||1,r=Ec(t.height*i),o=Ec(t.width*i);t.height=Ec(t.height),t.width=Ec(t.width);let a=t.canvas;return a.style&&(e||!a.style.height&&!a.style.width)&&(a.style.height=`${t.height}px`,a.style.width=`${t.width}px`),t.currentDevicePixelRatio!==i||a.height!==r||a.width!==o?(t.currentDevicePixelRatio=i,a.height=r,a.width=o,t.ctx.setTransform(i,0,0,i,0,0),!0):!1}var Gj=(function(){let t=!1;try{let n={get passive(){return t=!0,!1}};Yx()&&(window.addEventListener("test",null,n),window.removeEventListener("test",null,n))}catch{}return t})();function _T(t,n){let e=lre(t,n),i=e&&e.match(/^(\d+)(\.\d+)?px$/);return i?+i[1]:void 0}function Dc(t,n,e,i){return{x:t.x+e*(n.x-t.x),y:t.y+e*(n.y-t.y)}}function qj(t,n,e,i){return{x:t.x+e*(n.x-t.x),y:i==="middle"?e<.5?t.y:n.y:i==="after"?e<1?t.y:n.y:e>0?n.y:t.y}}function Yj(t,n,e,i){let r={x:t.cp2x,y:t.cp2y},o={x:n.cp1x,y:n.cp1y},a=Dc(t,r,e),s=Dc(r,o,e),l=Dc(o,n,e),c=Dc(a,s,e),d=Dc(s,l,e);return Dc(c,d,e)}var hre=function(t,n){return{x(e){return t+t+n-e},setWidth(e){n=e},textAlign(e){return e==="center"?e:e==="right"?"left":"right"},xPlus(e,i){return e-i},leftForLtr(e,i){return e-i}}},pre=function(){return{x(t){return t},setWidth(t){},textAlign(t){return t},xPlus(t,n){return t+n},leftForLtr(t,n){return t}}};function Cu(t,n,e){return t?hre(n,e):pre()}function bT(t,n){let e,i;(n==="ltr"||n==="rtl")&&(e=t.canvas.style,i=[e.getPropertyValue("direction"),e.getPropertyPriority("direction")],e.setProperty("direction",n,"important"),t.prevTextDirection=i)}function vT(t,n){n!==void 0&&(delete t.prevTextDirection,t.canvas.style.setProperty("direction",n[0],n[1]))}function Qj(t){return t==="angle"?{between:Vh,compare:Ane,normalize:or}:{between:Is,compare:(n,e)=>n-e,normalize:n=>n}}function vj({start:t,end:n,count:e,loop:i,style:r}){return{start:t%e,end:n%e,loop:i&&(n-t+1)%e===0,style:r}}function fre(t,n,e){let{property:i,start:r,end:o}=e,{between:a,normalize:s}=Qj(i),l=n.length,{start:c,end:d,loop:m}=t,f,b;if(m){for(c+=l,d+=l,f=0,b=l;fl(r,W,D)&&s(r,W)!==0,K=()=>s(o,D)===0||l(o,W,D),re=()=>w||Z(),Ee=()=>!w||K();for(let be=d,Ve=d;be<=m;++be)P=n[be%a],!P.skip&&(D=c(P[i]),D!==W&&(w=l(D,r,o),x===null&&re()&&(x=s(D,r)===0?be:Ve),x!==null&&Ee()&&(v.push(vj({start:x,end:be,loop:f,count:a,style:b})),x=null),Ve=be,W=D));return x!==null&&v.push(vj({start:x,end:m,loop:f,count:a,style:b})),v}function xT(t,n){let e=[],i=t.segments;for(let r=0;rr&&t[o%n].skip;)o--;return o%=n,{start:r,end:o}}function _re(t,n,e,i){let r=t.length,o=[],a=n,s=t[n],l;for(l=n+1;l<=e;++l){let c=t[l%r];c.skip||c.stop?s.skip||(i=!1,o.push({start:n%r,end:(l-1)%r,loop:i}),n=a=c.stop?l:null):(a=l,s.skip&&(n=l)),s=c}return a!==null&&o.push({start:n%r,end:a%r,loop:i}),o}function Kj(t,n){let e=t.points,i=t.options.spanGaps,r=e.length;if(!r)return[];let o=!!t._loop,{start:a,end:s}=gre(e,r,o,i);if(i===!0)return yj(t,[{start:a,end:s,loop:o}],e,n);let l=ss({chart:n,initial:e.initial,numSteps:a,currentStep:Math.min(i-e.start,a)}))}_refresh(){this._request||(this._running=!0,this._request=nT.call(window,()=>{this._update(),this._request=null,this._running&&this._refresh()}))}_update(n=Date.now()){let e=0;this._charts.forEach((i,r)=>{if(!i.running||!i.items.length)return;let o=i.items,a=o.length-1,s=!1,l;for(;a>=0;--a)l=o[a],l._active?(l._total>i.duration&&(i.duration=l._total),l.tick(n),s=!0):(o[a]=o[o.length-1],o.pop());s&&(r.draw(),this._notify(r,i,n,"progress")),o.length||(i.running=!1,this._notify(r,i,n,"complete"),i.initial=!1),e+=o.length}),this._lastDate=n,e===0&&(this._running=!1)}_getAnims(n){let e=this._charts,i=e.get(n);return i||(i={running:!1,initial:!0,items:[],listeners:{complete:[],progress:[]}},e.set(n,i)),i}listen(n,e,i){this._getAnims(n).listeners[e].push(i)}add(n,e){!e||!e.length||this._getAnims(n).items.push(...e)}has(n){return this._getAnims(n).items.length>0}start(n){let e=this._charts.get(n);e&&(e.running=!0,e.start=Date.now(),e.duration=e.items.reduce((i,r)=>Math.max(i,r._duration),0),this._refresh())}running(n){if(!this._running)return!1;let e=this._charts.get(n);return!(!e||!e.running||!e.items.length)}stop(n){let e=this._charts.get(n);if(!e||!e.items.length)return;let i=e.items,r=i.length-1;for(;r>=0;--r)i[r].cancel();e.items=[],this._notify(n,e,Date.now(),"complete")}remove(n){return this._charts.delete(n)}},vl=new PT,Zj="transparent",xre={boolean(t,n,e){return e>.5?n:t},color(t,n,e){let i=lT(t||Zj),r=i.valid&&lT(n||Zj);return r&&r.valid?r.mix(i,e).hexString():n},number(t,n,e){return t+(n-t)*e}},FT=class{constructor(n,e,i,r){let o=e[i];r=Hh([n.to,r,o,n.from]);let a=Hh([n.from,o,r]);this._active=!0,this._fn=n.fn||xre[n.type||typeof a],this._easing=Oh[n.easing]||Oh.linear,this._start=Math.floor(Date.now()+(n.delay||0)),this._duration=this._total=Math.floor(n.duration),this._loop=!!n.loop,this._target=e,this._prop=i,this._from=a,this._to=r,this._promises=void 0}active(){return this._active}update(n,e,i){if(this._active){this._notify(!1);let r=this._target[this._prop],o=i-this._start,a=this._duration-o;this._start=i,this._duration=Math.floor(Math.max(a,n.duration)),this._total+=o,this._loop=!!n.loop,this._to=Hh([n.to,e,r,n.from]),this._from=Hh([n.from,r,e])}}cancel(){this._active&&(this.tick(Date.now()),this._active=!1,this._notify(!1))}tick(n){let e=n-this._start,i=this._duration,r=this._prop,o=this._from,a=this._loop,s=this._to,l;if(this._active=o!==s&&(a||e1?2-l:l,l=this._easing(Math.min(1,Math.max(0,l))),this._target[r]=this._fn(o,s,l)}wait(){let n=this._promises||(this._promises=[]);return new Promise((e,i)=>{n.push({res:e,rej:i})})}_notify(n){let e=n?"res":"rej",i=this._promises||[];for(let r=0;r{let o=n[r];if(!St(o))return;let a={};for(let s of e)a[s]=o[s];(Ei(o.properties)&&o.properties||[r]).forEach(s=>{(s===r||!i.has(s))&&i.set(s,a)})})}_animateOptions(n,e){let i=e.options,r=wre(n,i);if(!r)return[];let o=this._createAnimations(r,i);return i.$shared&&Cre(n.options.$animations,i).then(()=>{n.options=i},()=>{}),o}_createAnimations(n,e){let i=this._properties,r=[],o=n.$animations||(n.$animations={}),a=Object.keys(e),s=Date.now(),l;for(l=a.length-1;l>=0;--l){let c=a[l];if(c.charAt(0)==="$")continue;if(c==="options"){r.push(...this._animateOptions(n,e));continue}let d=e[c],m=o[c],f=i.get(c);if(m)if(f&&m.active()){m.update(f,d,s);continue}else m.cancel();if(!f||!f.duration){n[c]=d;continue}o[c]=m=new FT(f,n,c,d),r.push(m)}return r}update(n,e){if(this._properties.size===0){Object.assign(n,e);return}let i=this._createAnimations(n,e);if(i.length)return vl.add(this._chart,i),!0}};function Cre(t,n){let e=[],i=Object.keys(n);for(let r=0;r0||!e&&o<0)return r.index}return null}function t4(t,n){let{chart:e,_cachedMeta:i}=t,r=e._stacks||(e._stacks={}),{iScale:o,vScale:a,index:s}=i,l=o.axis,c=a.axis,d=kre(o,a,i),m=n.length,f;for(let b=0;be[i].axis===n).shift()}function Ire(t,n){return bl(t,{active:!1,dataset:void 0,datasetIndex:n,index:n,mode:"default",type:"dataset"})}function Are(t,n,e){return bl(t,{active:!1,dataIndex:n,parsed:void 0,raw:void 0,element:e,index:n,mode:"default",type:"data"})}function Ug(t,n){let e=t.controller.index,i=t.vScale&&t.vScale.axis;if(i){n=n||t._parsed;for(let r of n){let o=r._stacks;if(!o||o[i]===void 0||o[i][e]===void 0)return;delete o[i][e],o[i]._visualValues!==void 0&&o[i]._visualValues[e]!==void 0&&delete o[i]._visualValues[e]}}}var ET=t=>t==="reset"||t==="none",i4=(t,n)=>n?t:Object.assign({},t),Ore=(t,n,e)=>t&&!n.hidden&&n._stacked&&{keys:Z4(e,!0),values:null},Oc=(()=>{class t{static defaults={};static datasetElementType=null;static dataElementType=null;constructor(e,i){this.chart=e,this._ctx=e.ctx,this.index=i,this._cachedDataOpts={},this._cachedMeta=this.getMeta(),this._type=this._cachedMeta.type,this.options=void 0,this._parsing=!1,this._data=void 0,this._objectData=void 0,this._sharedOptions=void 0,this._drawStart=void 0,this._drawCount=void 0,this.enableOptionSharing=!1,this.supportsDecimation=!1,this.$context=void 0,this._syncList=[],this.datasetElementType=new.target.datasetElementType,this.dataElementType=new.target.dataElementType,this.initialize()}initialize(){let e=this._cachedMeta;this.configure(),this.linkScales(),e._stacked=wT(e.vScale,e),this.addElements(),this.options.fill&&!this.chart.isPluginEnabled("filler")&&console.warn("Tried to use the 'fill' option without the 'Filler' plugin enabled. Please import and register the 'Filler' plugin and make sure it is not disabled in the options")}updateIndex(e){this.index!==e&&Ug(this._cachedMeta),this.index=e}linkScales(){let e=this.chart,i=this._cachedMeta,r=this.getDataset(),o=(f,b,v,w)=>f==="x"?b:f==="r"?w:v,a=i.xAxisID=st(r.xAxisID,DT(e,"x")),s=i.yAxisID=st(r.yAxisID,DT(e,"y")),l=i.rAxisID=st(r.rAxisID,DT(e,"r")),c=i.indexAxis,d=i.iAxisID=o(c,a,s,l),m=i.vAxisID=o(c,s,a,l);i.xScale=this.getScaleForId(a),i.yScale=this.getScaleForId(s),i.rScale=this.getScaleForId(l),i.iScale=this.getScaleForId(d),i.vScale=this.getScaleForId(m)}getDataset(){return this.chart.data.datasets[this.index]}getMeta(){return this.chart.getDatasetMeta(this.index)}getScaleForId(e){return this.chart.scales[e]}_getOtherScale(e){let i=this._cachedMeta;return e===i.iScale?i.vScale:i.iScale}reset(){this._update("reset")}_destroy(){let e=this._cachedMeta;this._data&&tT(this._data,this),e._stacked&&Ug(e)}_dataCheck(){let e=this.getDataset(),i=e.data||(e.data=[]),r=this._data;if(St(i)){let o=this._cachedMeta;this._data=Mre(i,o)}else if(r!==i){if(r){tT(r,this);let o=this._cachedMeta;Ug(o),o._parsed=[]}i&&Object.isExtensible(i)&&Oj(i,this),this._syncList=[],this._data=i}}addElements(){let e=this._cachedMeta;this._dataCheck(),this.datasetElementType&&(e.dataset=new this.datasetElementType)}buildOrUpdateElements(e){let i=this._cachedMeta,r=this.getDataset(),o=!1;this._dataCheck();let a=i._stacked;i._stacked=wT(i.vScale,i),i.stack!==r.stack&&(o=!0,Ug(i),i.stack=r.stack),this._resyncElements(e),(o||a!==i._stacked)&&(t4(this,i._parsed),i._stacked=wT(i.vScale,i))}configure(){let e=this.chart.config,i=e.datasetScopeKeys(this._type),r=e.getOptionScopes(this.getDataset(),i,!0);this.options=e.createResolver(r,this.getContext()),this._parsing=this.options.parsing,this._cachedDataOpts={}}parse(e,i){let{_cachedMeta:r,_data:o}=this,{iScale:a,_stacked:s}=r,l=a.axis,c=e===0&&i===o.length?!0:r._sorted,d=e>0&&r._parsed[e-1],m,f,b;if(this._parsing===!1)r._parsed=o,r._sorted=!0,b=o;else{Ei(o[e])?b=this.parseArrayData(r,o,e,i):St(o[e])?b=this.parseObjectData(r,o,e,i):b=this.parsePrimitiveData(r,o,e,i);let v=()=>f[l]===null||d&&f[l]x||f=0;--b)if(!w()){this.updateRangeFromParsed(d,e,v,c);break}}return d}getAllParsedValues(e){let i=this._cachedMeta._parsed,r=[],o,a,s;for(o=0,a=i.length;o=0&&ethis.getContext(r,o,i),x=d.resolveNamedOptions(b,v,w,f);return x.$shared&&(x.$shared=c,a[s]=Object.freeze(i4(x,c))),x}_resolveAnimations(e,i,r){let o=this.chart,a=this._cachedDataOpts,s=`animation-${i}`,l=a[s];if(l)return l;let c;if(o.options.animation!==!1){let m=this.chart.config,f=m.datasetAnimationScopeKeys(this._type,i),b=m.getOptionScopes(this.getDataset(),f);c=m.createResolver(b,this.getContext(e,r,i))}let d=new oC(o,c&&c.animations);return c&&c._cacheable&&(a[s]=Object.freeze(d)),d}getSharedOptions(e){if(e.$shared)return this._sharedOptions||(this._sharedOptions=Object.assign({},e))}includeOptions(e,i){return!i||ET(e)||this.chart._animationsDisabled}_getSharedOptions(e,i){let r=this.resolveDataElementOptions(e,i),o=this._sharedOptions,a=this.getSharedOptions(r),s=this.includeOptions(i,a)||a!==o;return this.updateSharedOptions(a,i,r),{sharedOptions:a,includeOptions:s}}updateElement(e,i,r,o){ET(o)?Object.assign(e,r):this._resolveAnimations(i,o).update(e,r)}updateSharedOptions(e,i,r){e&&!ET(i)&&this._resolveAnimations(void 0,i).update(e,r)}_setStyle(e,i,r,o){e.active=o;let a=this.getStyle(i,o);this._resolveAnimations(i,r,o).update(e,{options:!o&&this.getSharedOptions(a)||a})}removeHoverStyle(e,i,r){this._setStyle(e,r,"active",!1)}setHoverStyle(e,i,r){this._setStyle(e,r,"active",!0)}_removeDatasetHoverStyle(){let e=this._cachedMeta.dataset;e&&this._setStyle(e,void 0,"active",!1)}_setDatasetHoverStyle(){let e=this._cachedMeta.dataset;e&&this._setStyle(e,void 0,"active",!0)}_resyncElements(e){let i=this._data,r=this._cachedMeta.data;for(let[l,c,d]of this._syncList)this[l](c,d);this._syncList=[];let o=r.length,a=i.length,s=Math.min(a,o);s&&this.parse(0,s),a>o?this._insertElements(o,a-o,e):a{for(d.length+=i,l=d.length-1;l>=s;l--)d[l]=d[l-i]};for(c(a),l=e;lr-o))}return t._cache.$bar}function Pre(t){let n=t.iScale,e=Rre(n,t.type),i=n._length,r,o,a,s,l=()=>{a===32767||a===-32768||(Nh(s)&&(i=Math.min(i,Math.abs(a-s)||i)),s=a)};for(r=0,o=e.length;r0?r[t-1]:null,s=tMath.abs(s)&&(l=s,c=a),n[e.axis]=c,n._custom={barStart:l,barEnd:c,start:r,end:o,min:a,max:s}}function X4(t,n,e,i){return Ei(t)?Lre(t,n,e,i):n[e.axis]=e.parse(t,i),n}function n4(t,n,e,i){let r=t.iScale,o=t.vScale,a=r.getLabels(),s=r===o,l=[],c,d,m,f;for(c=e,d=e+i;c=e?1:-1)}function Bre(t){let n,e,i,r,o;return t.horizontal?(n=t.base>t.x,e="left",i="right"):(n=t.base{class t extends Oc{static id="bar";static defaults={datasetElementType:!1,dataElementType:"bar",categoryPercentage:.8,barPercentage:.9,grouped:!0,animations:{numbers:{type:"number",properties:["x","y","base","width","height"]}}};static overrides={scales:{_index_:{type:"category",offset:!0,grid:{offset:!0}},_value_:{type:"linear",beginAtZero:!0}}};parsePrimitiveData(e,i,r,o){return n4(e,i,r,o)}parseArrayData(e,i,r,o){return n4(e,i,r,o)}parseObjectData(e,i,r,o){let{iScale:a,vScale:s}=e,{xAxisKey:l="x",yAxisKey:c="y"}=this._parsing,d=a.axis==="x"?l:c,m=s.axis==="x"?l:c,f=[],b,v,w,x;for(b=r,v=r+o;bm.controller.options.grouped),a=r.options.stacked,s=[],l=this._cachedMeta.controller.getParsed(i),c=l&&l[r.axis],d=m=>{let f=m._parsed.find(v=>v[r.axis]===c),b=f&&f[m.vScale.axis];if(Et(b)||isNaN(b))return!0};for(let m of o)if(!(i!==void 0&&d(m))&&((a===!1||s.indexOf(m.stack)===-1||a===void 0&&m.stack===void 0)&&s.push(m.stack),m.index===e))break;return s.length||s.push(void 0),s}_getStackCount(e){return this._getStacks(void 0,e).length}_getAxisCount(){return this._getAxis().length}getFirstScaleIdForIndexAxis(){let e=this.chart.scales,i=this.chart.options.indexAxis;return Object.keys(e).filter(r=>e[r].axis===i).shift()}_getAxis(){let e={},i=this.getFirstScaleIdForIndexAxis();for(let r of this.chart.data.datasets)e[st(this.chart.options.indexAxis==="x"?r.xAxisID:r.yAxisID,i)]=!0;return Object.keys(e)}_getStackIndex(e,i,r){let o=this._getStacks(e,r),a=i!==void 0?o.indexOf(i):-1;return a===-1?o.length-1:a}_getRuler(){let e=this.options,i=this._cachedMeta,r=i.iScale,o=[],a,s;for(a=0,s=i.data.length;a{class t extends Oc{static id="bubble";static defaults={datasetElementType:!1,dataElementType:"point",animations:{numbers:{type:"number",properties:["x","y","borderWidth","radius"]}}};static overrides={scales:{x:{type:"linear"},y:{type:"linear"}}};initialize(){this.enableOptionSharing=!0,super.initialize()}parsePrimitiveData(e,i,r,o){let a=super.parsePrimitiveData(e,i,r,o);for(let s=0;s=0;--r)i=Math.max(i,e[r].size(this.resolveDataElementOptions(r))/2);return i>0&&i}getLabelAndValue(e){let i=this._cachedMeta,r=this.chart.data.labels||[],{xScale:o,yScale:a}=i,s=this.getParsed(e),l=o.getLabelForValue(s.x),c=a.getLabelForValue(s.y),d=s._custom;return{label:r[e]||"",value:"("+l+", "+c+(d?", "+d:"")+")"}}update(e){let i=this._cachedMeta.data;this.updateElements(i,0,i.length,e)}updateElements(e,i,r,o){let a=o==="reset",{iScale:s,vScale:l}=this._cachedMeta,{sharedOptions:c,includeOptions:d}=this._getSharedOptions(i,o),m=s.axis,f=l.axis;for(let b=i;bVh(W,s,l,!0)?1:Math.max(Z,Z*e,K,K*e),v=(W,Z,K)=>Vh(W,s,l,!0)?-1:Math.min(Z,Z*e,K,K*e),w=b(0,c,m),x=b(Zi,d,f),D=v(Ht,c,m),P=v(Ht+Zi,d,f);i=(w-D)/2,r=(x-P)/2,o=-(w+D)/2,a=-(x+P)/2}return{ratioX:i,ratioY:r,offsetX:o,offsetY:a}}var tI=(()=>{class t extends Oc{static id="doughnut";static defaults={datasetElementType:!1,dataElementType:"arc",animation:{animateRotate:!0,animateScale:!1},animations:{numbers:{type:"number",properties:["circumference","endAngle","innerRadius","outerRadius","startAngle","x","y","offset","borderWidth","spacing"]}},cutout:"50%",rotation:0,circumference:360,radius:"100%",spacing:0,indexAxis:"r"};static descriptors={_scriptable:e=>e!=="spacing",_indexable:e=>e!=="spacing"&&!e.startsWith("borderDash")&&!e.startsWith("hoverBorderDash")};static overrides={aspectRatio:1,plugins:{legend:{labels:{generateLabels(e){let i=e.data,{labels:{pointStyle:r,textAlign:o,color:a,useBorderRadius:s,borderRadius:l}}=e.legend.options;return i.labels.length&&i.datasets.length?i.labels.map((c,d)=>{let f=e.getDatasetMeta(0).controller.getStyle(d);return{text:c,fillStyle:f.backgroundColor,fontColor:a,hidden:!e.getDataVisibility(d),lineDash:f.borderDash,lineDashOffset:f.borderDashOffset,lineJoin:f.borderJoinStyle,lineWidth:f.borderWidth,strokeStyle:f.borderColor,textAlign:o,pointStyle:r,borderRadius:s&&(l||f.borderRadius),index:d}}):[]}},onClick(e,i,r){r.chart.toggleDataVisibility(i.index),r.chart.update()}}}};constructor(e,i){super(e,i),this.enableOptionSharing=!0,this.innerRadius=void 0,this.outerRadius=void 0,this.offsetX=void 0,this.offsetY=void 0}linkScales(){}parse(e,i){let r=this.getDataset().data,o=this._cachedMeta;if(this._parsing===!1)o._parsed=r;else{let a=c=>+r[c];if(St(r[e])){let{key:c="value"}=this._parsing;a=d=>+_l(r[d],c)}let s,l;for(s=e,l=e+i;s0&&!isNaN(e)?Mi*(Math.abs(e)/i):0}getLabelAndValue(e){let i=this._cachedMeta,r=this.chart,o=r.data.labels||[],a=Bh(i._parsed[e],r.options.locale);return{label:o[e]||"",value:a}}getMaxBorderWidth(e){let i=0,r=this.chart,o,a,s,l,c;if(!e){for(o=0,a=r.data.datasets.length;o{class t extends Oc{static id="line";static defaults={datasetElementType:"line",dataElementType:"point",showLine:!0,spanGaps:!1};static overrides={scales:{_index_:{type:"category"},_value_:{type:"linear"}}};initialize(){this.enableOptionSharing=!0,this.supportsDecimation=!0,super.initialize()}update(e){let i=this._cachedMeta,{dataset:r,data:o=[],_dataset:a}=i,s=this.chart._animationsDisabled,{start:l,count:c}=oT(i,o,s);this._drawStart=l,this._drawCount=c,aT(i)&&(l=0,c=o.length),r._chart=this.chart,r._datasetIndex=this.index,r._decimated=!!a._decimated,r.points=o;let d=this.resolveDatasetElementOptions(e);this.options.showLine||(d.borderWidth=0),d.segment=this.options.segment,this.updateElement(r,void 0,{animated:!s,options:d},e),this.updateElements(o,l,c,e)}updateElements(e,i,r,o){let a=o==="reset",{iScale:s,vScale:l,_stacked:c,_dataset:d}=this._cachedMeta,{sharedOptions:m,includeOptions:f}=this._getSharedOptions(i,o),b=s.axis,v=l.axis,{spanGaps:w,segment:x}=this.options,D=xu(w)?w:Number.POSITIVE_INFINITY,P=this.chart._animationsDisabled||a||o==="none",W=i+r,Z=e.length,K=i>0&&this.getParsed(i-1);for(let re=0;re=W){be.skip=!0;continue}let Ve=this.getParsed(re),yt=Et(Ve[v]),bt=be[b]=s.getPixelForValue(Ve[b],re),It=be[v]=a||yt?l.getBasePixel():l.getPixelForValue(c?this.applyStack(l,Ve,c):Ve[v],re);be.skip=isNaN(bt)||isNaN(It)||yt,be.stop=re>0&&Math.abs(Ve[b]-K[b])>D,x&&(be.parsed=Ve,be.raw=d.data[re]),f&&(be.options=m||this.resolveDataElementOptions(re,Ee.active?"active":o)),P||this.updateElement(Ee,re,be,o),K=Ve}}getMaxOverflow(){let e=this._cachedMeta,i=e.dataset,r=i.options&&i.options.borderWidth||0,o=e.data||[];if(!o.length)return r;let a=o[0].size(this.resolveDataElementOptions(0)),s=o[o.length-1].size(this.resolveDataElementOptions(o.length-1));return Math.max(r,a,s)/2}draw(){let e=this._cachedMeta;e.dataset.updateControlPoints(this.chart.chartArea,e.iScale.axis),super.draw()}}return t})(),J4=(()=>{class t extends Oc{static id="polarArea";static defaults={dataElementType:"arc",animation:{animateRotate:!0,animateScale:!0},animations:{numbers:{type:"number",properties:["x","y","startAngle","endAngle","innerRadius","outerRadius"]}},indexAxis:"r",startAngle:0};static overrides={aspectRatio:1,plugins:{legend:{labels:{generateLabels(e){let i=e.data;if(i.labels.length&&i.datasets.length){let{labels:{pointStyle:r,color:o}}=e.legend.options;return i.labels.map((a,s)=>{let c=e.getDatasetMeta(0).controller.getStyle(s);return{text:a,fillStyle:c.backgroundColor,strokeStyle:c.borderColor,fontColor:o,lineWidth:c.borderWidth,pointStyle:r,hidden:!e.getDataVisibility(s),index:s}})}return[]}},onClick(e,i,r){r.chart.toggleDataVisibility(i.index),r.chart.update()}}},scales:{r:{type:"radialLinear",angleLines:{display:!1},beginAtZero:!0,grid:{circular:!0},pointLabels:{display:!1},startAngle:0}}};constructor(e,i){super(e,i),this.innerRadius=void 0,this.outerRadius=void 0}getLabelAndValue(e){let i=this._cachedMeta,r=this.chart,o=r.data.labels||[],a=Bh(i._parsed[e].r,r.options.locale);return{label:o[e]||"",value:a}}parseObjectData(e,i,r,o){return fT.bind(this)(e,i,r,o)}update(e){let i=this._cachedMeta.data;this._updateRadius(),this.updateElements(i,0,i.length,e)}getMinMax(){let e=this._cachedMeta,i={min:Number.POSITIVE_INFINITY,max:Number.NEGATIVE_INFINITY};return e.data.forEach((r,o)=>{let a=this.getParsed(o).r;!isNaN(a)&&this.chart.getDataVisibility(o)&&(ai.max&&(i.max=a))}),i}_updateRadius(){let e=this.chart,i=e.chartArea,r=e.options,o=Math.min(i.right-i.left,i.bottom-i.top),a=Math.max(o/2,0),s=Math.max(r.cutoutPercentage?a/100*r.cutoutPercentage:1,0),l=(a-s)/e.getVisibleDatasetCount();this.outerRadius=a-l*this.index,this.innerRadius=this.outerRadius-l}updateElements(e,i,r,o){let a=o==="reset",s=this.chart,c=s.options.animation,d=this._cachedMeta.rScale,m=d.xCenter,f=d.yCenter,b=d.getIndexAngle(0)-.5*Ht,v=b,w,x=360/this.countVisibleElements();for(w=0;w{!isNaN(this.getParsed(o).r)&&this.chart.getDataVisibility(o)&&i++}),i}_computeAngle(e,i,r){return this.chart.getDataVisibility(e)?ra(this.resolveDataElementOptions(e,i).angle||r):0}}return t})(),qre=(()=>{class t extends tI{static id="pie";static defaults={cutout:0,rotation:0,circumference:360,radius:"100%"}}return t})(),Yre=(()=>{class t extends Oc{static id="radar";static defaults={datasetElementType:"line",dataElementType:"point",indexAxis:"r",showLine:!0,elements:{line:{fill:"start"}}};static overrides={aspectRatio:1,scales:{r:{type:"radialLinear"}}};getLabelAndValue(e){let i=this._cachedMeta.vScale,r=this.getParsed(e);return{label:i.getLabels()[e],value:""+i.getLabelForValue(r[i.axis])}}parseObjectData(e,i,r,o){return fT.bind(this)(e,i,r,o)}update(e){let i=this._cachedMeta,r=i.dataset,o=i.data||[],a=i.iScale.getLabels();if(r.points=o,e!=="resize"){let s=this.resolveDatasetElementOptions(e);this.options.showLine||(s.borderWidth=0);let l={_loop:!0,_fullLoop:a.length===o.length,options:s};this.updateElement(r,void 0,l,e)}this.updateElements(o,0,o.length,e)}updateElements(e,i,r,o){let a=this._cachedMeta.rScale,s=o==="reset";for(let l=i;l{class t extends Oc{static id="scatter";static defaults={datasetElementType:!1,dataElementType:"point",showLine:!1,fill:!1};static overrides={interaction:{mode:"point"},scales:{x:{type:"linear"},y:{type:"linear"}}};getLabelAndValue(e){let i=this._cachedMeta,r=this.chart.data.labels||[],{xScale:o,yScale:a}=i,s=this.getParsed(e),l=o.getLabelForValue(s.x),c=a.getLabelForValue(s.y);return{label:r[e]||"",value:"("+l+", "+c+")"}}update(e){let i=this._cachedMeta,{data:r=[]}=i,o=this.chart._animationsDisabled,{start:a,count:s}=oT(i,r,o);if(this._drawStart=a,this._drawCount=s,aT(i)&&(a=0,s=r.length),this.options.showLine){this.datasetElementType||this.addElements();let{dataset:l,_dataset:c}=i;l._chart=this.chart,l._datasetIndex=this.index,l._decimated=!!c._decimated,l.points=r;let d=this.resolveDatasetElementOptions(e);d.segment=this.options.segment,this.updateElement(l,void 0,{animated:!o,options:d},e)}else this.datasetElementType&&(delete i.dataset,this.datasetElementType=!1);this.updateElements(r,a,s,e)}addElements(){let{showLine:e}=this.options;!this.datasetElementType&&e&&(this.datasetElementType=this.chart.registry.getElement("line")),super.addElements()}updateElements(e,i,r,o){let a=o==="reset",{iScale:s,vScale:l,_stacked:c,_dataset:d}=this._cachedMeta,m=this.resolveDataElementOptions(i,o),f=this.getSharedOptions(m),b=this.includeOptions(o,f),v=s.axis,w=l.axis,{spanGaps:x,segment:D}=this.options,P=xu(x)?x:Number.POSITIVE_INFINITY,W=this.chart._animationsDisabled||a||o==="none",Z=i>0&&this.getParsed(i-1);for(let K=i;K0&&Math.abs(Ee[v]-Z[v])>P,D&&(be.parsed=Ee,be.raw=d.data[K]),b&&(be.options=f||this.resolveDataElementOptions(K,re.active?"active":o)),W||this.updateElement(re,K,be,o),Z=Ee}this.updateSharedOptions(f,o,m)}getMaxOverflow(){let e=this._cachedMeta,i=e.data||[];if(!this.options.showLine){let l=0;for(let c=i.length-1;c>=0;--c)l=Math.max(l,i[c].size(this.resolveDataElementOptions(c))/2);return l>0&&l}let r=e.dataset,o=r.options&&r.options.borderWidth||0;if(!i.length)return o;let a=i[0].size(this.resolveDataElementOptions(0)),s=i[i.length-1].size(this.resolveDataElementOptions(i.length-1));return Math.max(o,a,s)/2}}return t})(),Kre=Object.freeze({__proto__:null,BarController:Ure,BubbleController:$re,DoughnutController:tI,LineController:Gre,PieController:qre,PolarAreaController:J4,RadarController:Yre,ScatterController:Qre});function wu(){throw new Error("This method is not implemented: Check that a complete date adapter is provided.")}var NT=class t{static override(n){Object.assign(t.prototype,n)}options;constructor(n){this.options=n||{}}init(){}formats(){return wu()}parse(){return wu()}format(){return wu()}add(){return wu()}diff(){return wu()}startOf(){return wu()}endOf(){return wu()}},Zre={_date:NT};function Xre(t,n,e,i){let{controller:r,data:o,_sorted:a}=t,s=r._cachedMeta.iScale,l=t.dataset&&t.dataset.options?t.dataset.options.spanGaps:null;if(s&&n===s.axis&&n!=="r"&&a&&o.length){let c=s._reversePixels?Tj:ks;if(i){if(r._sharedOptions){let d=o[0],m=typeof d.getRange=="function"&&d.getRange(n);if(m){let f=c(o,n,e-m),b=c(o,n,e+m);return{lo:f.lo,hi:b.hi}}}}else{let d=c(o,n,e);if(l){let{vScale:m}=r._cachedMeta,{_parsed:f}=t,b=f.slice(0,d.lo+1).reverse().findIndex(w=>!Et(w[m.axis]));d.lo-=Math.max(0,b);let v=f.slice(d.hi).findIndex(w=>!Et(w[m.axis]));d.hi+=Math.max(0,v)}return d}}return{lo:0,hi:o.length-1}}function Jg(t,n,e,i,r){let o=t.getSortedVisibleDatasetMetas(),a=e[n];for(let s=0,l=o.length;s{l[a]&&l[a](n[e],r)&&(o.push({element:l,datasetIndex:c,index:d}),s=s||l.inRange(n.x,n.y,r))}),i&&!s?[]:o}var ioe={evaluateInteractionItems:Jg,modes:{index(t,n,e,i){let r=Ic(n,t),o=e.axis||"x",a=e.includeInvisible||!1,s=e.intersect?kT(t,r,o,i,a):ST(t,r,o,!1,i,a),l=[];return s.length?(t.getSortedVisibleDatasetMetas().forEach(c=>{let d=s[0].index,m=c.data[d];m&&!m.skip&&l.push({element:m,datasetIndex:c.index,index:d})}),l):[]},dataset(t,n,e,i){let r=Ic(n,t),o=e.axis||"xy",a=e.includeInvisible||!1,s=e.intersect?kT(t,r,o,i,a):ST(t,r,o,!1,i,a);if(s.length>0){let l=s[0].datasetIndex,c=t.getDatasetMeta(l).data;s=[];for(let d=0;de.pos===n)}function s4(t,n){return t.filter(e=>eH.indexOf(e.pos)===-1&&e.box.axis===n)}function Wg(t,n){return t.sort((e,i)=>{let r=n?i:e,o=n?e:i;return r.weight===o.weight?r.index-o.index:r.weight-o.weight})}function noe(t){let n=[],e,i,r,o,a,s;for(e=0,i=(t||[]).length;ec.box.fullSize),!0),i=Wg($g(n,"left"),!0),r=Wg($g(n,"right")),o=Wg($g(n,"top"),!0),a=Wg($g(n,"bottom")),s=s4(n,"x"),l=s4(n,"y");return{fullSize:e,leftAndTop:i.concat(o),rightAndBottom:r.concat(l).concat(a).concat(s),chartArea:$g(n,"chartArea"),vertical:i.concat(r).concat(l),horizontal:o.concat(a).concat(s)}}function l4(t,n,e,i){return Math.max(t[e],n[e])+Math.max(t[i],n[i])}function tH(t,n){t.top=Math.max(t.top,n.top),t.left=Math.max(t.left,n.left),t.bottom=Math.max(t.bottom,n.bottom),t.right=Math.max(t.right,n.right)}function soe(t,n,e,i){let{pos:r,box:o}=e,a=t.maxPadding;if(!St(r)){e.size&&(t[r]-=e.size);let m=i[e.stack]||{size:0,count:1};m.size=Math.max(m.size,e.horizontal?o.height:o.width),e.size=m.size/m.count,t[r]+=e.size}o.getPadding&&tH(a,o.getPadding());let s=Math.max(0,n.outerWidth-l4(a,t,"left","right")),l=Math.max(0,n.outerHeight-l4(a,t,"top","bottom")),c=s!==t.w,d=l!==t.h;return t.w=s,t.h=l,e.horizontal?{same:c,other:d}:{same:d,other:c}}function loe(t){let n=t.maxPadding;function e(i){let r=Math.max(n[i]-t[i],0);return t[i]+=r,r}t.y+=e("top"),t.x+=e("left"),e("right"),e("bottom")}function coe(t,n){let e=n.maxPadding;function i(r){let o={left:0,top:0,right:0,bottom:0};return r.forEach(a=>{o[a]=Math.max(n[a],e[a])}),o}return i(t?["left","right"]:["top","bottom"])}function Yg(t,n,e,i){let r=[],o,a,s,l,c,d;for(o=0,a=t.length,c=0;o{typeof w.beforeLayout=="function"&&w.beforeLayout()});let d=l.reduce((w,x)=>x.box.options&&x.box.options.display===!1?w:w+1,0)||1,m=Object.freeze({outerWidth:n,outerHeight:e,padding:r,availableWidth:o,availableHeight:a,vBoxMaxWidth:o/2/d,hBoxMaxHeight:a/2}),f=Object.assign({},r);tH(f,sr(i));let b=Object.assign({maxPadding:f,w:o,h:a,x:r.left,y:r.top},r),v=ooe(l.concat(c),m);Yg(s.fullSize,b,m,v),Yg(l,b,m,v),Yg(c,b,m,v)&&Yg(l,b,m,v),loe(b),c4(s.leftAndTop,b,m,v),b.x+=b.w,b.y+=b.h,c4(s.rightAndBottom,b,m,v),t.chartArea={left:b.left,top:b.top,right:b.left+b.w,bottom:b.top+b.h,height:b.h,width:b.w},ii(s.chartArea,w=>{let x=w.box;Object.assign(x,t.chartArea),x.update(b.w,b.h,{left:0,top:0,right:0,bottom:0})})}},aC=class{acquireContext(n,e){}releaseContext(n){return!1}addEventListener(n,e,i){}removeEventListener(n,e,i){}getDevicePixelRatio(){return 1}getMaximumSize(n,e,i,r){return e=Math.max(0,e||n.width),i=i||n.height,{width:e,height:Math.max(0,r?Math.floor(e/r):i)}}isAttached(n){return!0}updateConfig(n){}},LT=class extends aC{acquireContext(n){return n&&n.getContext&&n.getContext("2d")||null}updateConfig(n){n.options.animation=!1}},nC="$chartjs",doe={touchstart:"mousedown",touchmove:"mousemove",touchend:"mouseup",pointerenter:"mouseenter",pointerdown:"mousedown",pointermove:"mousemove",pointerup:"mouseup",pointerleave:"mouseout",pointerout:"mouseout"},d4=t=>t===null||t==="";function uoe(t,n){let e=t.style,i=t.getAttribute("height"),r=t.getAttribute("width");if(t[nC]={initial:{height:i,width:r,style:{display:e.display,height:e.height,width:e.width}}},e.display=e.display||"block",e.boxSizing=e.boxSizing||"border-box",d4(r)){let o=_T(t,"width");o!==void 0&&(t.width=o)}if(d4(i))if(t.style.height==="")t.height=t.width/(n||2);else{let o=_T(t,"height");o!==void 0&&(t.height=o)}return t}var iH=Gj?{passive:!0}:!1;function moe(t,n,e){t&&t.addEventListener(n,e,iH)}function hoe(t,n,e){t&&t.canvas&&t.canvas.removeEventListener(n,e,iH)}function poe(t,n){let e=doe[t.type]||t.type,{x:i,y:r}=Ic(t,n);return{type:e,chart:n,native:t,x:i!==void 0?i:null,y:r!==void 0?r:null}}function sC(t,n){for(let e of t)if(e===n||e.contains(n))return!0}function foe(t,n,e){let i=t.canvas,r=new MutationObserver(o=>{let a=!1;for(let s of o)a=a||sC(s.addedNodes,i),a=a&&!sC(s.removedNodes,i);a&&e()});return r.observe(document,{childList:!0,subtree:!0}),r}function goe(t,n,e){let i=t.canvas,r=new MutationObserver(o=>{let a=!1;for(let s of o)a=a||sC(s.removedNodes,i),a=a&&!sC(s.addedNodes,i);a&&e()});return r.observe(document,{childList:!0,subtree:!0}),r}var Kg=new Map,u4=0;function nH(){let t=window.devicePixelRatio;t!==u4&&(u4=t,Kg.forEach((n,e)=>{e.currentDevicePixelRatio!==t&&n()}))}function _oe(t,n){Kg.size||window.addEventListener("resize",nH),Kg.set(t,n)}function boe(t){Kg.delete(t),Kg.size||window.removeEventListener("resize",nH)}function voe(t,n,e){let i=t.canvas,r=i&&Qx(i);if(!r)return;let o=rT((s,l)=>{let c=r.clientWidth;e(s,l),c{let l=s[0],c=l.contentRect.width,d=l.contentRect.height;c===0&&d===0||o(c,d)});return a.observe(r),_oe(t,o),a}function TT(t,n,e){e&&e.disconnect(),n==="resize"&&boe(t)}function yoe(t,n,e){let i=t.canvas,r=rT(o=>{t.ctx!==null&&e(poe(o,t))},t);return moe(i,n,r),r}var VT=class extends aC{acquireContext(n,e){let i=n&&n.getContext&&n.getContext("2d");return i&&i.canvas===n?(uoe(n,e),i):null}releaseContext(n){let e=n.canvas;if(!e[nC])return!1;let i=e[nC].initial;["height","width"].forEach(o=>{let a=i[o];Et(a)?e.removeAttribute(o):e.setAttribute(o,a)});let r=i.style||{};return Object.keys(r).forEach(o=>{e.style[o]=r[o]}),e.width=e.width,delete e[nC],!0}addEventListener(n,e,i){this.removeEventListener(n,e);let r=n.$proxies||(n.$proxies={}),a={attach:foe,detach:goe,resize:voe}[e]||yoe;r[e]=a(n,e,i)}removeEventListener(n,e){let i=n.$proxies||(n.$proxies={}),r=i[e];if(!r)return;({attach:TT,detach:TT,resize:TT}[e]||hoe)(n,e,r),i[e]=void 0}getDevicePixelRatio(){return window.devicePixelRatio}getMaximumSize(n,e,i,r){return Wj(n,e,i,r)}isAttached(n){let e=n&&Qx(n);return!!(e&&e.isConnected)}};function xoe(t){return!Yx()||typeof OffscreenCanvas<"u"&&t instanceof OffscreenCanvas?LT:VT}var ja=class{static defaults={};static defaultRoutes=void 0;x;y;active=!1;options;$animations;tooltipPosition(n){let{x:e,y:i}=this.getProps(["x","y"],n);return{x:e,y:i}}hasValue(){return xu(this.x)&&xu(this.y)}getProps(n,e){let i=this.$animations;if(!e||!i)return this;let r={};return n.forEach(o=>{r[o]=i[o]&&i[o].active()?i[o]._to:this[o]}),r}};function Coe(t,n){let e=t.options.ticks,i=woe(t),r=Math.min(e.maxTicksLimit||i,i),o=e.major.enabled?Eoe(n):[],a=o.length,s=o[0],l=o[a-1],c=[];if(a>r)return Moe(n,c,o,a/r),c;let d=Doe(o,n,r);if(a>0){let m,f,b=a>1?Math.round((l-s)/(a-1)):null;for(Xx(n,c,d,Et(b)?0:s-b,s),m=0,f=a-1;mr)return l}return Math.max(r,1)}function Eoe(t){let n=[],e,i;for(e=0,i=t.length;et==="left"?"right":t==="right"?"left":t,m4=(t,n,e)=>n==="top"||n==="left"?t[n]+e:t[n]-e,h4=(t,n)=>Math.min(n||t,t);function p4(t,n){let e=[],i=t.length/n,r=t.length,o=0;for(;oa+s)))return l}function Ioe(t,n){ii(t,e=>{let i=e.gc,r=i.length/2,o;if(r>n){for(o=0;oi?i:e,i=r&&e>i?e:i,{min:no(e,no(i,e)),max:no(i,no(e,i))}}getPadding(){return{left:this.paddingLeft||0,top:this.paddingTop||0,right:this.paddingRight||0,bottom:this.paddingBottom||0}}getTicks(){return this.ticks}getLabels(){let n=this.chart.data;return this.options.labels||(this.isHorizontal()?n.xLabels:n.yLabels)||n.labels||[]}getLabelItems(n=this.chart.chartArea){return this._labelItems||(this._labelItems=this._computeLabelItems(n))}beforeLayout(){this._cache={},this._dataLimitsCached=!1}beforeUpdate(){yi(this.options.beforeUpdate,[this])}update(n,e,i){let{beginAtZero:r,grace:o,ticks:a}=this.options,s=a.sampleSize;this.beforeUpdate(),this.maxWidth=n,this.maxHeight=e,this._margins=i=Object.assign({left:0,right:0,top:0,bottom:0},i),this.ticks=null,this._labelSizes=null,this._gridLineItems=null,this._labelItems=null,this.beforeSetDimensions(),this.setDimensions(),this.afterSetDimensions(),this._maxLength=this.isHorizontal()?this.width+i.left+i.right:this.height+i.top+i.bottom,this._dataLimitsCached||(this.beforeDataLimits(),this.determineDataLimits(),this.afterDataLimits(),this._range=Bj(this,o,r),this._dataLimitsCached=!0),this.beforeBuildTicks(),this.ticks=this.buildTicks()||[],this.afterBuildTicks();let l=s=o||i<=1||!this.isHorizontal()){this.labelRotation=r;return}let d=this._getLabelSizes(),m=d.widest.width,f=d.highest.height,b=Dn(this.chart.width-m,0,this.maxWidth);s=n.offset?this.maxWidth/i:b/(i-1),m+6>s&&(s=b/(i-(n.offset?.5:1)),l=this.maxHeight-Gg(n.grid)-e.padding-f4(n.title,this.chart.options.font),c=Math.sqrt(m*m+f*f),a=Hx(Math.min(Math.asin(Dn((d.highest.height+6)/s,-1,1)),Math.asin(Dn(l/c,-1,1))-Math.asin(Dn(f/c,-1,1)))),a=Math.max(r,Math.min(o,a))),this.labelRotation=a}afterCalculateLabelRotation(){yi(this.options.afterCalculateLabelRotation,[this])}afterAutoSkip(){}beforeFit(){yi(this.options.beforeFit,[this])}fit(){let n={width:0,height:0},{chart:e,options:{ticks:i,title:r,grid:o}}=this,a=this._isVisible(),s=this.isHorizontal();if(a){let l=f4(r,e.options.font);if(s?(n.width=this.maxWidth,n.height=Gg(o)+l):(n.height=this.maxHeight,n.width=Gg(o)+l),i.display&&this.ticks.length){let{first:c,last:d,widest:m,highest:f}=this._getLabelSizes(),b=i.padding*2,v=ra(this.labelRotation),w=Math.cos(v),x=Math.sin(v);if(s){let D=i.mirror?0:x*m.width+w*f.height;n.height=Math.min(this.maxHeight,n.height+D+b)}else{let D=i.mirror?0:w*m.width+x*f.height;n.width=Math.min(this.maxWidth,n.width+D+b)}this._calculatePadding(c,d,x,w)}}this._handleMargins(),s?(this.width=this._length=e.width-this._margins.left-this._margins.right,this.height=n.height):(this.width=n.width,this.height=this._length=e.height-this._margins.top-this._margins.bottom)}_calculatePadding(n,e,i,r){let{ticks:{align:o,padding:a},position:s}=this.options,l=this.labelRotation!==0,c=s!=="top"&&this.axis==="x";if(this.isHorizontal()){let d=this.getPixelForTick(0)-this.left,m=this.right-this.getPixelForTick(this.ticks.length-1),f=0,b=0;l?c?(f=r*n.width,b=i*e.height):(f=i*n.height,b=r*e.width):o==="start"?b=e.width:o==="end"?f=n.width:o!=="inner"&&(f=n.width/2,b=e.width/2),this.paddingLeft=Math.max((f-d+a)*this.width/(this.width-d),0),this.paddingRight=Math.max((b-m+a)*this.width/(this.width-m),0)}else{let d=e.height/2,m=n.height/2;o==="start"?(d=0,m=n.height):o==="end"&&(d=e.height,m=0),this.paddingTop=d+a,this.paddingBottom=m+a}}_handleMargins(){this._margins&&(this._margins.left=Math.max(this.paddingLeft,this._margins.left),this._margins.top=Math.max(this.paddingTop,this._margins.top),this._margins.right=Math.max(this.paddingRight,this._margins.right),this._margins.bottom=Math.max(this.paddingBottom,this._margins.bottom))}afterFit(){yi(this.options.afterFit,[this])}isHorizontal(){let{axis:n,position:e}=this.options;return e==="top"||e==="bottom"||n==="x"}isFullSize(){return this.options.fullSize}_convertTicksToLabels(n){this.beforeTickToLabelConversion(),this.generateTickLabels(n);let e,i;for(e=0,i=n.length;e({width:a[Ve]||0,height:s[Ve]||0});return{first:be(0),last:be(e-1),widest:be(re),highest:be(Ee),widths:a,heights:s}}getLabelForValue(n){return n}getPixelForValue(n,e){return NaN}getValueForPixel(n){}getPixelForTick(n){let e=this.ticks;return n<0||n>e.length-1?null:this.getPixelForValue(e[n].value)}getPixelForDecimal(n){this._reversePixels&&(n=1-n);let e=this._startPixel+n*this._length;return Sj(this._alignToPixels?kc(this.chart,e,0):e)}getDecimalForPixel(n){let e=(n-this._startPixel)/this._length;return this._reversePixels?1-e:e}getBasePixel(){return this.getPixelForValue(this.getBaseValue())}getBaseValue(){let{min:n,max:e}=this;return n<0&&e<0?e:n>0&&e>0?n:0}getContext(n){let e=this.ticks||[];if(n>=0&&ns*r?s/i:l/r:l*r0}_computeGridLineItems(n){let e=this.axis,i=this.chart,r=this.options,{grid:o,position:a,border:s}=r,l=o.offset,c=this.isHorizontal(),m=this.ticks.length+(l?1:0),f=Gg(o),b=[],v=s.setContext(this.getContext()),w=v.display?v.width:0,x=w/2,D=function(Pi){return kc(i,Pi,w)},P,W,Z,K,re,Ee,be,Ve,yt,bt,It,$n;if(a==="top")P=D(this.bottom),Ee=this.bottom-f,Ve=P-x,bt=D(n.top)+x,$n=n.bottom;else if(a==="bottom")P=D(this.top),bt=n.top,$n=D(n.bottom)-x,Ee=P+x,Ve=this.top+f;else if(a==="left")P=D(this.right),re=this.right-f,be=P-x,yt=D(n.left)+x,It=n.right;else if(a==="right")P=D(this.left),yt=n.left,It=D(n.right)-x,re=P+x,be=this.left+f;else if(e==="x"){if(a==="center")P=D((n.top+n.bottom)/2+.5);else if(St(a)){let Pi=Object.keys(a)[0],en=a[Pi];P=D(this.chart.scales[Pi].getPixelForValue(en))}bt=n.top,$n=n.bottom,Ee=P+x,Ve=Ee+f}else if(e==="y"){if(a==="center")P=D((n.left+n.right)/2);else if(St(a)){let Pi=Object.keys(a)[0],en=a[Pi];P=D(this.chart.scales[Pi].getPixelForValue(en))}re=P-x,be=re-f,yt=n.left,It=n.right}let lo=st(r.ticks.maxTicksLimit,m),ui=Math.max(1,Math.ceil(m/lo));for(W=0;W0&&(Jc-=Xc/2);break}D_={left:Jc,top:mp,width:Xc+Pu.width,height:up+Pu.height,color:ui.backdropColor}}x.push({label:Z,font:Ve,textOffset:It,options:{rotation:w,color:en,strokeColor:ma,strokeWidth:lr,textAlign:Ru,textBaseline:$n,translation:[K,re],backdrop:D_}})}return x}_getXAxisLabelAlignment(){let{position:n,ticks:e}=this.options;if(-ra(this.labelRotation))return n==="top"?"left":"right";let r="center";return e.align==="start"?r="left":e.align==="end"?r="right":e.align==="inner"&&(r="inner"),r}_getYAxisLabelAlignment(n){let{position:e,ticks:{crossAlign:i,mirror:r,padding:o}}=this.options,a=this._getLabelSizes(),s=n+o,l=a.widest.width,c,d;return e==="left"?r?(d=this.right+o,i==="near"?c="left":i==="center"?(c="center",d+=l/2):(c="right",d+=l)):(d=this.right-s,i==="near"?c="right":i==="center"?(c="center",d-=l/2):(c="left",d=this.left)):e==="right"?r?(d=this.left+o,i==="near"?c="right":i==="center"?(c="center",d-=l/2):(c="left",d-=l)):(d=this.left+s,i==="near"?c="left":i==="center"?(c="center",d+=l/2):(c="right",d=this.right)):c="right",{textAlign:c,x:d}}_computeLabelArea(){if(this.options.ticks.mirror)return;let n=this.chart,e=this.options.position;if(e==="left"||e==="right")return{top:0,left:this.left,bottom:n.height,right:this.right};if(e==="top"||e==="bottom")return{top:this.top,left:0,bottom:this.bottom,right:n.width}}drawBackground(){let{ctx:n,options:{backgroundColor:e},left:i,top:r,width:o,height:a}=this;e&&(n.save(),n.fillStyle=e,n.fillRect(i,r,o,a),n.restore())}getLineWidthForValue(n){let e=this.options.grid;if(!this._isVisible()||!e.display)return 0;let r=this.ticks.findIndex(o=>o.value===n);return r>=0?e.setContext(this.getContext(r)).lineWidth:0}drawGrid(n){let e=this.options.grid,i=this.ctx,r=this._gridLineItems||(this._gridLineItems=this._computeGridLineItems(n)),o,a,s=(l,c,d)=>{!d.width||!d.color||(i.save(),i.lineWidth=d.width,i.strokeStyle=d.color,i.setLineDash(d.borderDash||[]),i.lineDashOffset=d.borderDashOffset,i.beginPath(),i.moveTo(l.x,l.y),i.lineTo(c.x,c.y),i.stroke(),i.restore())};if(e.display)for(o=0,a=r.length;o{this.draw(o)}}]:[{z:i,draw:o=>{this.drawBackground(),this.drawGrid(o),this.drawTitle()}},{z:r,draw:()=>{this.drawBorder()}},{z:e,draw:o=>{this.drawLabels(o)}}]}getMatchingVisibleMetas(n){let e=this.chart.getSortedVisibleDatasetMetas(),i=this.axis+"AxisID",r=[],o,a;for(o=0,a=e.length;o{let i=e.split("."),r=i.pop(),o=[t].concat(i).join("."),a=n[e].split("."),s=a.pop(),l=a.join(".");xi.route(o,r,l,s)})}function Loe(t){return"id"in t&&"defaults"in t}var BT=class{constructor(){this.controllers=new Uh(Oc,"datasets",!0),this.elements=new Uh(ja,"elements"),this.plugins=new Uh(Object,"plugins"),this.scales=new Uh(Eu,"scales"),this._typedRegistries=[this.controllers,this.scales,this.elements]}add(...n){this._each("register",n)}remove(...n){this._each("unregister",n)}addControllers(...n){this._each("register",n,this.controllers)}addElements(...n){this._each("register",n,this.elements)}addPlugins(...n){this._each("register",n,this.plugins)}addScales(...n){this._each("register",n,this.scales)}getController(n){return this._get(n,this.controllers,"controller")}getElement(n){return this._get(n,this.elements,"element")}getPlugin(n){return this._get(n,this.plugins,"plugin")}getScale(n){return this._get(n,this.scales,"scale")}removeControllers(...n){this._each("unregister",n,this.controllers)}removeElements(...n){this._each("unregister",n,this.elements)}removePlugins(...n){this._each("unregister",n,this.plugins)}removeScales(...n){this._each("unregister",n,this.scales)}_each(n,e,i){[...e].forEach(r=>{let o=i||this._getRegistryForType(r);i||o.isForType(r)||o===this.plugins&&r.id?this._exec(n,o,r):ii(r,a=>{let s=i||this._getRegistryForType(a);this._exec(n,s,a)})})}_exec(n,e,i){let r=jx(n);yi(i["before"+r],[],i),e[n](i),yi(i["after"+r],[],i)}_getRegistryForType(n){for(let e=0;eo.filter(s=>!a.some(l=>s.plugin.id===l.plugin.id));this._notify(r(e,i),n,"stop"),this._notify(r(i,e),n,"start")}};function Voe(t){let n={},e=[],i=Object.keys(Os.plugins.items);for(let o=0;o1&&g4(t[0].toLowerCase());if(i)return i}throw new Error(`Cannot determine type of '${t}' axis. Please provide 'axis' or 'position' option.`)}function _4(t,n,e){if(e[n+"AxisID"]===t)return{axis:n}}function Woe(t,n){if(n.data&&n.data.datasets){let e=n.data.datasets.filter(i=>i.xAxisID===t||i.yAxisID===t);if(e.length)return _4(t,"x",e[0])||_4(t,"y",e[0])}return{}}function Goe(t,n){let e=Mc[t.type]||{scales:{}},i=n.scales||{},r=HT(t.type,n),o=Object.create(null);return Object.keys(i).forEach(a=>{let s=i[a];if(!St(s))return console.error(`Invalid scale configuration for scale: ${a}`);if(s._proxy)return console.warn(`Ignoring resolver passed as options for scale: ${a}`);let l=zT(a,s,Woe(a,t),xi.scales[s.type]),c=Uoe(l,r),d=e.scales||{};o[a]=Fh(Object.create(null),[{axis:l},s,d[l],d[c]])}),t.data.datasets.forEach(a=>{let s=a.type||t.type,l=a.indexAxis||HT(s,n),d=(Mc[s]||{}).scales||{};Object.keys(d).forEach(m=>{let f=zoe(m,l),b=a[f+"AxisID"]||f;o[b]=o[b]||Object.create(null),Fh(o[b],[{axis:f},i[b],d[m]])})}),Object.keys(o).forEach(a=>{let s=o[a];Fh(s,[xi.scales[s.type],xi.scale])}),o}function rH(t){let n=t.options||(t.options={});n.plugins=st(n.plugins,{}),n.scales=Goe(t,n)}function oH(t){return t=t||{},t.datasets=t.datasets||[],t.labels=t.labels||[],t}function qoe(t){return t=t||{},t.data=oH(t.data),rH(t),t}var b4=new Map,aH=new Set;function Jx(t,n){let e=b4.get(t);return e||(e=n(),b4.set(t,e),aH.add(e)),e}var qg=(t,n,e)=>{let i=_l(n,e);i!==void 0&&t.add(i)},UT=class{constructor(n){this._config=qoe(n),this._scopeCache=new Map,this._resolverCache=new Map}get platform(){return this._config.platform}get type(){return this._config.type}set type(n){this._config.type=n}get data(){return this._config.data}set data(n){this._config.data=oH(n)}get options(){return this._config.options}set options(n){this._config.options=n}get plugins(){return this._config.plugins}update(){let n=this._config;this.clearCache(),rH(n)}clearCache(){this._scopeCache.clear(),this._resolverCache.clear()}datasetScopeKeys(n){return Jx(n,()=>[[`datasets.${n}`,""]])}datasetAnimationScopeKeys(n,e){return Jx(`${n}.transition.${e}`,()=>[[`datasets.${n}.transitions.${e}`,`transitions.${e}`],[`datasets.${n}`,""]])}datasetElementScopeKeys(n,e){return Jx(`${n}-${e}`,()=>[[`datasets.${n}.elements.${e}`,`datasets.${n}`,`elements.${e}`,""]])}pluginScopeKeys(n){let e=n.id,i=this.type;return Jx(`${i}-plugin-${e}`,()=>[[`plugins.${e}`,...n.additionalOptionScopes||[]]])}_cachedScopes(n,e){let i=this._scopeCache,r=i.get(n);return(!r||e)&&(r=new Map,i.set(n,r)),r}getOptionScopes(n,e,i){let{options:r,type:o}=this,a=this._cachedScopes(n,i),s=a.get(e);if(s)return s;let l=new Set;e.forEach(d=>{n&&(l.add(n),d.forEach(m=>qg(l,n,m))),d.forEach(m=>qg(l,r,m)),d.forEach(m=>qg(l,Mc[o]||{},m)),d.forEach(m=>qg(l,xi,m)),d.forEach(m=>qg(l,$x,m))});let c=Array.from(l);return c.length===0&&c.push(Object.create(null)),aH.has(e)&&a.set(e,c),c}chartOptionScopes(){let{options:n,type:e}=this;return[n,Mc[e]||{},xi.datasets[e]||{},{type:e},xi,$x]}resolveNamedOptions(n,e,i,r=[""]){let o={$shared:!0},{resolver:a,subPrefixes:s}=v4(this._resolverCache,n,r),l=a;if(Qoe(a,e)){o.$shared=!1,i=fl(i)?i():i;let c=this.createResolver(n,i,s);l=yu(a,i,c)}for(let c of e)o[c]=l[c];return o}createResolver(n,e,i=[""],r){let{resolver:o}=v4(this._resolverCache,n,i);return St(e)?yu(o,e,void 0,r):o}};function v4(t,n,e){let i=t.get(n);i||(i=new Map,t.set(n,i));let r=e.join(),o=i.get(r);return o||(o={resolver:qx(n,e),subPrefixes:e.filter(s=>!s.toLowerCase().includes("hover"))},i.set(r,o)),o}var Yoe=t=>St(t)&&Object.getOwnPropertyNames(t).some(n=>fl(t[n]));function Qoe(t,n){let{isScriptable:e,isIndexable:i}=mT(t);for(let r of n){let o=e(r),a=i(r),s=(a||o)&&t[r];if(o&&(fl(s)||Yoe(s))||a&&Ei(s))return!0}return!1}var Koe="4.5.1",Zoe=["top","bottom","left","right","chartArea"];function y4(t,n){return t==="top"||t==="bottom"||Zoe.indexOf(t)===-1&&n==="x"}function x4(t,n){return function(e,i){return e[t]===i[t]?e[n]-i[n]:e[t]-i[t]}}function C4(t){let n=t.chart,e=n.options.animation;n.notifyPlugins("afterRender"),yi(e&&e.onComplete,[t],n)}function Xoe(t){let n=t.chart,e=n.options.animation;yi(e&&e.onProgress,[t],n)}function sH(t){return Yx()&&typeof t=="string"?t=document.getElementById(t):t&&t.length&&(t=t[0]),t&&t.canvas&&(t=t.canvas),t}var rC={},w4=t=>{let n=sH(t);return Object.values(rC).filter(e=>e.canvas===n).pop()};function Joe(t,n,e){let i=Object.keys(t);for(let r of i){let o=+r;if(o>=n){let a=t[r];delete t[r],(e>0||o>n)&&(t[o+e]=a)}}}function eae(t,n,e,i){return!e||t.type==="mouseout"?null:i?n:t}var uC=(()=>{class t{static defaults=xi;static instances=rC;static overrides=Mc;static registry=Os;static version=Koe;static getChart=w4;static register(...e){Os.add(...e),D4()}static unregister(...e){Os.remove(...e),D4()}constructor(e,i){let r=this.config=new UT(i),o=sH(e),a=w4(o);if(a)throw new Error("Canvas is already in use. Chart with ID '"+a.id+"' must be destroyed before the canvas with ID '"+a.canvas.id+"' can be reused.");let s=r.createResolver(r.chartOptionScopes(),this.getContext());this.platform=new(r.platform||xoe(o)),this.platform.updateConfig(r);let l=this.platform.acquireContext(o,s.aspectRatio),c=l&&l.canvas,d=c&&c.height,m=c&&c.width;if(this.id=Cj(),this.ctx=l,this.canvas=c,this.width=m,this.height=d,this._options=s,this._aspectRatio=this.aspectRatio,this._layers=[],this._metasets=[],this._stacks=void 0,this.boxes=[],this.currentDevicePixelRatio=void 0,this.chartArea=void 0,this._active=[],this._lastEvent=void 0,this._listeners={},this._responsiveListeners=void 0,this._sortedMetasets=[],this.scales={},this._plugins=new jT,this.$proxies={},this._hiddenIndices={},this.attached=!1,this._animationsDisabled=void 0,this.$context=void 0,this._doResize=Rj(f=>this.update(f),s.resizeDelay||0),this._dataChanges=[],rC[this.id]=this,!l||!c){console.error("Failed to create chart: can't acquire context from the given item");return}vl.listen(this,"complete",C4),vl.listen(this,"progress",Xoe),this._initialize(),this.attached&&this.update()}get aspectRatio(){let{options:{aspectRatio:e,maintainAspectRatio:i},width:r,height:o,_aspectRatio:a}=this;return Et(e)?i&&a?a:o?r/o:null:e}get data(){return this.config.data}set data(e){this.config.data=e}get options(){return this._options}set options(e){this.config.options=e}get registry(){return Os}_initialize(){return this.notifyPlugins("beforeInit"),this.options.responsive?this.resize():gT(this,this.options.devicePixelRatio),this.bindEvents(),this.notifyPlugins("afterInit"),this}clear(){return cT(this.canvas,this.ctx),this}stop(){return vl.stop(this),this}resize(e,i){vl.running(this)?this._resizeBeforeDraw={width:e,height:i}:this._resize(e,i)}_resize(e,i){let r=this.options,o=this.canvas,a=r.maintainAspectRatio&&this.aspectRatio,s=this.platform.getMaximumSize(o,e,i,a),l=r.devicePixelRatio||this.platform.getDevicePixelRatio(),c=this.width?"resize":"attach";this.width=s.width,this.height=s.height,this._aspectRatio=this.aspectRatio,gT(this,l,!0)&&(this.notifyPlugins("resize",{size:s}),yi(r.onResize,[this,s],this),this.attached&&this._doResize(c)&&this.render())}ensureScalesHaveIDs(){let i=this.options.scales||{};ii(i,(r,o)=>{r.id=o})}buildOrUpdateScales(){let e=this.options,i=e.scales,r=this.scales,o=Object.keys(r).reduce((s,l)=>(s[l]=!1,s),{}),a=[];i&&(a=a.concat(Object.keys(i).map(s=>{let l=i[s],c=zT(s,l),d=c==="r",m=c==="x";return{options:l,dposition:d?"chartArea":m?"bottom":"left",dtype:d?"radialLinear":m?"category":"linear"}}))),ii(a,s=>{let l=s.options,c=l.id,d=zT(c,l),m=st(l.type,s.dtype);(l.position===void 0||y4(l.position,d)!==y4(s.dposition))&&(l.position=s.dposition),o[c]=!0;let f=null;if(c in r&&r[c].type===m)f=r[c];else{let b=Os.getScale(m);f=new b({id:c,type:m,ctx:this.ctx,chart:this}),r[f.id]=f}f.init(l,e)}),ii(o,(s,l)=>{s||delete r[l]}),ii(r,s=>{Dr.configure(this,s,s.options),Dr.addBox(this,s)})}_updateMetasets(){let e=this._metasets,i=this.data.datasets.length,r=e.length;if(e.sort((o,a)=>o.index-a.index),r>i){for(let o=i;oi.length&&delete this._stacks,e.forEach((r,o)=>{i.filter(a=>a===r._dataset).length===0&&this._destroyDatasetMeta(o)})}buildOrUpdateControllers(){let e=[],i=this.data.datasets,r,o;for(this._removeUnreferencedMetasets(),r=0,o=i.length;r{this.getDatasetMeta(i).controller.reset()},this)}reset(){this._resetElements(),this.notifyPlugins("reset")}update(e){let i=this.config;i.update();let r=this._options=i.createResolver(i.chartOptionScopes(),this.getContext()),o=this._animationsDisabled=!r.animation;if(this._updateScales(),this._checkEventBindings(),this._updateHiddenIndices(),this._plugins.invalidate(),this.notifyPlugins("beforeUpdate",{mode:e,cancelable:!0})===!1)return;let a=this.buildOrUpdateControllers();this.notifyPlugins("beforeElementsUpdate");let s=0;for(let d=0,m=this.data.datasets.length;d{d.reset()}),this._updateDatasets(e),this.notifyPlugins("afterUpdate",{mode:e}),this._layers.sort(x4("z","_idx"));let{_active:l,_lastEvent:c}=this;c?this._eventHandler(c,!0):l.length&&this._updateHoverStyles(l,l,!0),this.render()}_updateScales(){ii(this.scales,e=>{Dr.removeBox(this,e)}),this.ensureScalesHaveIDs(),this.buildOrUpdateScales()}_checkEventBindings(){let e=this.options,i=new Set(Object.keys(this._listeners)),r=new Set(e.events);(!KS(i,r)||!!this._responsiveListeners!==e.responsive)&&(this.unbindEvents(),this.bindEvents())}_updateHiddenIndices(){let{_hiddenIndices:e}=this,i=this._getUniformDataChanges()||[];for(let{method:r,start:o,count:a}of i){let s=r==="_removeElements"?-a:a;Joe(e,o,s)}}_getUniformDataChanges(){let e=this._dataChanges;if(!e||!e.length)return;this._dataChanges=[];let i=this.data.datasets.length,r=a=>new Set(e.filter(s=>s[0]===a).map((s,l)=>l+","+s.splice(1).join(","))),o=r(0);for(let a=1;aa.split(",")).map(a=>({method:a[1],start:+a[2],count:+a[3]}))}_updateLayout(e){if(this.notifyPlugins("beforeLayout",{cancelable:!0})===!1)return;Dr.update(this,this.width,this.height,e);let i=this.chartArea,r=i.width<=0||i.height<=0;this._layers=[],ii(this.boxes,o=>{r&&o.position==="chartArea"||(o.configure&&o.configure(),this._layers.push(...o._layers()))},this),this._layers.forEach((o,a)=>{o._idx=a}),this.notifyPlugins("afterLayout")}_updateDatasets(e){if(this.notifyPlugins("beforeDatasetsUpdate",{mode:e,cancelable:!0})!==!1){for(let i=0,r=this.data.datasets.length;i=0;--i)this._drawDataset(e[i]);this.notifyPlugins("afterDatasetsDraw")}_drawDataset(e){let i=this.ctx,r={meta:e,index:e.index,cancelable:!0},o=CT(this,e);this.notifyPlugins("beforeDatasetDraw",r)!==!1&&(o&&Hg(i,o),e.controller.draw(),o&&zg(i),r.cancelable=!1,this.notifyPlugins("afterDatasetDraw",r))}isPointInArea(e){return Ss(e,this.chartArea,this._minPadding)}getElementsAtEventForMode(e,i,r,o){let a=ioe.modes[i];return typeof a=="function"?a(this,e,r,o):[]}getDatasetMeta(e){let i=this.data.datasets[e],r=this._metasets,o=r.filter(a=>a&&a._dataset===i).pop();return o||(o={type:null,data:[],dataset:null,controller:null,hidden:null,xAxisID:null,yAxisID:null,order:i&&i.order||0,index:e,_dataset:i,_parsed:[],_sorted:!1},r.push(o)),o}getContext(){return this.$context||(this.$context=bl(null,{chart:this,type:"chart"}))}getVisibleDatasetCount(){return this.getSortedVisibleDatasetMetas().length}isDatasetVisible(e){let i=this.data.datasets[e];if(!i)return!1;let r=this.getDatasetMeta(e);return typeof r.hidden=="boolean"?!r.hidden:!i.hidden}setDatasetVisibility(e,i){let r=this.getDatasetMeta(e);r.hidden=!i}toggleDataVisibility(e){this._hiddenIndices[e]=!this._hiddenIndices[e]}getDataVisibility(e){return!this._hiddenIndices[e]}_updateVisibility(e,i,r){let o=r?"show":"hide",a=this.getDatasetMeta(e),s=a.controller._resolveAnimations(void 0,o);Nh(i)?(a.data[i].hidden=!r,this.update()):(this.setDatasetVisibility(e,r),s.update(a,{visible:r}),this.update(l=>l.datasetIndex===e?o:void 0))}hide(e,i){this._updateVisibility(e,i,!1)}show(e,i){this._updateVisibility(e,i,!0)}_destroyDatasetMeta(e){let i=this._metasets[e];i&&i.controller&&i.controller._destroy(),delete this._metasets[e]}_stop(){let e,i;for(this.stop(),vl.remove(this),e=0,i=this.data.datasets.length;e{i.addEventListener(this,a,s),e[a]=s},o=(a,s,l)=>{a.offsetX=s,a.offsetY=l,this._eventHandler(a)};ii(this.options.events,a=>r(a,o))}bindResponsiveEvents(){this._responsiveListeners||(this._responsiveListeners={});let e=this._responsiveListeners,i=this.platform,r=(c,d)=>{i.addEventListener(this,c,d),e[c]=d},o=(c,d)=>{e[c]&&(i.removeEventListener(this,c,d),delete e[c])},a=(c,d)=>{this.canvas&&this.resize(c,d)},s,l=()=>{o("attach",l),this.attached=!0,this.resize(),r("resize",a),r("detach",s)};s=()=>{this.attached=!1,o("resize",a),this._stop(),this._resize(0,0),r("attach",l)},i.isAttached(this.canvas)?l():s()}unbindEvents(){ii(this._listeners,(e,i)=>{this.platform.removeEventListener(this,i,e)}),this._listeners={},ii(this._responsiveListeners,(e,i)=>{this.platform.removeEventListener(this,i,e)}),this._responsiveListeners=void 0}updateHoverStyle(e,i,r){let o=r?"set":"remove",a,s,l,c;for(i==="dataset"&&(a=this.getDatasetMeta(e[0].datasetIndex),a.controller["_"+o+"DatasetHoverStyle"]()),l=0,c=e.length;l{let l=this.getDatasetMeta(a);if(!l)throw new Error("No dataset found at index "+a);return{datasetIndex:a,element:l.data[s],index:s}});!Bg(r,i)&&(this._active=r,this._lastEvent=null,this._updateHoverStyles(r,i))}notifyPlugins(e,i,r){return this._plugins.notify(this,e,i,r)}isPluginEnabled(e){return this._plugins._cache.filter(i=>i.plugin.id===e).length===1}_updateHoverStyles(e,i,r){let o=this.options.hover,a=(c,d)=>c.filter(m=>!d.some(f=>m.datasetIndex===f.datasetIndex&&m.index===f.index)),s=a(i,e),l=r?e:a(e,i);s.length&&this.updateHoverStyle(s,o.mode,!1),l.length&&o.mode&&this.updateHoverStyle(l,o.mode,!0)}_eventHandler(e,i){let r={event:e,replay:i,cancelable:!0,inChartArea:this.isPointInArea(e)},o=s=>(s.options.events||this.options.events).includes(e.native.type);if(this.notifyPlugins("beforeEvent",r,o)===!1)return;let a=this._handleEvent(e,i,r.inChartArea);return r.cancelable=!1,this.notifyPlugins("afterEvent",r,o),(a||r.changed)&&this.render(),this}_handleEvent(e,i,r){let{_active:o=[],options:a}=this,s=i,l=this._getActiveElements(e,o,r,s),c=Ej(e),d=eae(e,this._lastEvent,r,c);r&&(this._lastEvent=null,yi(a.onHover,[e,l,this],this),c&&yi(a.onClick,[e,l,this],this));let m=!Bg(l,o);return(m||i)&&(this._active=l,this._updateHoverStyles(l,o,i)),this._lastEvent=d,m}_getActiveElements(e,i,r,o){if(e.type==="mouseout")return[];if(!r)return i;let a=this.options.hover;return this.getElementsAtEventForMode(e,a.mode,a,o)}}return t})();function D4(){return ii(uC.instances,t=>t._plugins.invalidate())}function tae(t,n,e){let{startAngle:i,x:r,y:o,outerRadius:a,innerRadius:s,options:l}=n,{borderWidth:c,borderJoinStyle:d}=l,m=Math.min(c/a,or(i-e));if(t.beginPath(),t.arc(r,o,a-c/2,i+m/2,e-m/2),s>0){let f=Math.min(c/s,or(i-e));t.arc(r,o,s+c/2,e-f/2,i+f/2,!0)}else{let f=Math.min(c/2,a*or(i-e));if(d==="round")t.arc(r,o,f,e-Ht/2,i+Ht/2,!0);else if(d==="bevel"){let b=2*f*f,v=-b*Math.cos(e+Ht/2)+r,w=-b*Math.sin(e+Ht/2)+o,x=b*Math.cos(i+Ht/2)+r,D=b*Math.sin(i+Ht/2)+o;t.lineTo(v,w),t.lineTo(x,D)}}t.closePath(),t.moveTo(0,0),t.rect(0,0,t.canvas.width,t.canvas.height),t.clip("evenodd")}function iae(t,n,e){let{startAngle:i,pixelMargin:r,x:o,y:a,outerRadius:s,innerRadius:l}=n,c=r/s;t.beginPath(),t.arc(o,a,s,i-c,e+c),l>r?(c=r/l,t.arc(o,a,l,e+c,i-c,!0)):t.arc(o,a,r,e+Zi,i-Zi),t.closePath(),t.clip()}function nae(t){return Gx(t,["outerStart","outerEnd","innerStart","innerEnd"])}function rae(t,n,e,i){let r=nae(t.options.borderRadius),o=(e-n)/2,a=Math.min(o,i*n/2),s=l=>{let c=(e-Math.min(o,l))*i/2;return Dn(l,0,Math.min(o,c))};return{outerStart:s(r.outerStart),outerEnd:s(r.outerEnd),innerStart:Dn(r.innerStart,0,a),innerEnd:Dn(r.innerEnd,0,a)}}function zh(t,n,e,i){return{x:e+t*Math.cos(n),y:i+t*Math.sin(n)}}function lC(t,n,e,i,r,o){let{x:a,y:s,startAngle:l,pixelMargin:c,innerRadius:d}=n,m=Math.max(n.outerRadius+i+e-c,0),f=d>0?d+i+e+c:0,b=0,v=r-l;if(i){let ui=d>0?d-i:0,Pi=m>0?m-i:0,en=(ui+Pi)/2,ma=en!==0?v*en/(en+i):v;b=(v-ma)/2}let w=Math.max(.001,v*m-e/Ht)/m,x=(v-w)/2,D=l+x+b,P=r-x-b,{outerStart:W,outerEnd:Z,innerStart:K,innerEnd:re}=rae(n,f,m,P-D),Ee=m-W,be=m-Z,Ve=D+W/Ee,yt=P-Z/be,bt=f+K,It=f+re,$n=D+K/bt,lo=P-re/It;if(t.beginPath(),o){let ui=(Ve+yt)/2;if(t.arc(a,s,m,Ve,ui),t.arc(a,s,m,ui,yt),Z>0){let lr=zh(be,yt,a,s);t.arc(lr.x,lr.y,Z,yt,P+Zi)}let Pi=zh(It,P,a,s);if(t.lineTo(Pi.x,Pi.y),re>0){let lr=zh(It,lo,a,s);t.arc(lr.x,lr.y,re,P+Zi,lo+Math.PI)}let en=(P-re/f+(D+K/f))/2;if(t.arc(a,s,f,P-re/f,en,!0),t.arc(a,s,f,en,D+K/f,!0),K>0){let lr=zh(bt,$n,a,s);t.arc(lr.x,lr.y,K,$n+Math.PI,D-Zi)}let ma=zh(Ee,D,a,s);if(t.lineTo(ma.x,ma.y),W>0){let lr=zh(Ee,Ve,a,s);t.arc(lr.x,lr.y,W,D-Zi,Ve)}}else{t.moveTo(a,s);let ui=Math.cos(Ve)*m+a,Pi=Math.sin(Ve)*m+s;t.lineTo(ui,Pi);let en=Math.cos(yt)*m+a,ma=Math.sin(yt)*m+s;t.lineTo(en,ma)}t.closePath()}function oae(t,n,e,i,r){let{fullCircles:o,startAngle:a,circumference:s}=n,l=n.endAngle;if(o){lC(t,n,e,i,l,r);for(let c=0;c=Ht&&b===0&&d!=="miter"&&tae(t,n,w),o||(lC(t,n,e,i,w,r),t.stroke())}var $T=class extends ja{static id="arc";static defaults={borderAlign:"center",borderColor:"#fff",borderDash:[],borderDashOffset:0,borderJoinStyle:void 0,borderRadius:0,borderWidth:2,offset:0,spacing:0,angle:void 0,circular:!0,selfJoin:!1};static defaultRoutes={backgroundColor:"backgroundColor"};static descriptors={_scriptable:!0,_indexable:n=>n!=="borderDash"};circumference;endAngle;fullCircles;innerRadius;outerRadius;pixelMargin;startAngle;constructor(n){super(),this.options=void 0,this.circumference=void 0,this.startAngle=void 0,this.endAngle=void 0,this.innerRadius=void 0,this.outerRadius=void 0,this.pixelMargin=0,this.fullCircles=0,n&&Object.assign(this,n)}inRange(n,e,i){let r=this.getProps(["x","y"],i),{angle:o,distance:a}=eT(r,{x:n,y:e}),{startAngle:s,endAngle:l,innerRadius:c,outerRadius:d,circumference:m}=this.getProps(["startAngle","endAngle","innerRadius","outerRadius","circumference"],i),f=(this.options.spacing+this.options.borderWidth)/2,b=st(m,l-s),v=Vh(o,s,l)&&s!==l,w=b>=Mi||v,x=Is(a,c+f,d+f);return w&&x}getCenterPoint(n){let{x:e,y:i,startAngle:r,endAngle:o,innerRadius:a,outerRadius:s}=this.getProps(["x","y","startAngle","endAngle","innerRadius","outerRadius"],n),{offset:l,spacing:c}=this.options,d=(r+o)/2,m=(a+s+c+l)/2;return{x:e+Math.cos(d)*m,y:i+Math.sin(d)*m}}tooltipPosition(n){return this.getCenterPoint(n)}draw(n){let{options:e,circumference:i}=this,r=(e.offset||0)/4,o=(e.spacing||0)/2,a=e.circular;if(this.pixelMargin=e.borderAlign==="inner"?.33:0,this.fullCircles=i>Mi?Math.floor(i/Mi):0,i===0||this.innerRadius<0||this.outerRadius<0)return;n.save();let s=(this.startAngle+this.endAngle)/2;n.translate(Math.cos(s)*r,Math.sin(s)*r);let l=1-Math.sin(Math.min(Ht,i||0)),c=r*l;n.fillStyle=e.backgroundColor,n.strokeStyle=e.borderColor,oae(n,this,c,o,a),aae(n,this,c,o,a),n.restore()}};function lH(t,n,e=n){t.lineCap=st(e.borderCapStyle,n.borderCapStyle),t.setLineDash(st(e.borderDash,n.borderDash)),t.lineDashOffset=st(e.borderDashOffset,n.borderDashOffset),t.lineJoin=st(e.borderJoinStyle,n.borderJoinStyle),t.lineWidth=st(e.borderWidth,n.borderWidth),t.strokeStyle=st(e.borderColor,n.borderColor)}function sae(t,n,e){t.lineTo(e.x,e.y)}function lae(t){return t.stepped?Lj:t.tension||t.cubicInterpolationMode==="monotone"?Vj:sae}function cH(t,n,e={}){let i=t.length,{start:r=0,end:o=i-1}=e,{start:a,end:s}=n,l=Math.max(r,a),c=Math.min(o,s),d=rs&&o>s;return{count:i,start:l,loop:n.loop,ilen:c(a+(c?s-Z:Z))%o,W=()=>{w!==x&&(t.lineTo(d,x),t.lineTo(d,w),t.lineTo(d,D))};for(l&&(b=r[P(0)],t.moveTo(b.x,b.y)),f=0;f<=s;++f){if(b=r[P(f)],b.skip)continue;let Z=b.x,K=b.y,re=Z|0;re===v?(Kx&&(x=K),d=(m*d+Z)/++m):(W(),t.lineTo(Z,K),v=re,m=0,w=x=K),D=K}W()}function WT(t){let n=t.options,e=n.borderDash&&n.borderDash.length;return!t._decimated&&!t._loop&&!n.tension&&n.cubicInterpolationMode!=="monotone"&&!n.stepped&&!e?dae:cae}function uae(t){return t.stepped?qj:t.tension||t.cubicInterpolationMode==="monotone"?Yj:Dc}function mae(t,n,e,i){let r=n._path;r||(r=n._path=new Path2D,n.path(r,e,i)&&r.closePath()),lH(t,n.options),t.stroke(r)}function hae(t,n,e,i){let{segments:r,options:o}=n,a=WT(n);for(let s of r)lH(t,o,s.style),t.beginPath(),a(t,n,s,{start:e,end:e+i-1})&&t.closePath(),t.stroke()}var pae=typeof Path2D=="function";function fae(t,n,e,i){pae&&!n.options.segment?mae(t,n,e,i):hae(t,n,e,i)}var mC=(()=>{class t extends ja{static id="line";static defaults={borderCapStyle:"butt",borderDash:[],borderDashOffset:0,borderJoinStyle:"miter",borderWidth:3,capBezierPoints:!0,cubicInterpolationMode:"default",fill:!1,spanGaps:!1,stepped:!1,tension:0};static defaultRoutes={backgroundColor:"backgroundColor",borderColor:"borderColor"};static descriptors={_scriptable:!0,_indexable:e=>e!=="borderDash"&&e!=="fill"};constructor(e){super(),this.animated=!0,this.options=void 0,this._chart=void 0,this._loop=void 0,this._fullLoop=void 0,this._path=void 0,this._points=void 0,this._segments=void 0,this._decimated=!1,this._pointsUpdated=!1,this._datasetIndex=void 0,e&&Object.assign(this,e)}updateControlPoints(e,i){let r=this.options;if((r.tension||r.cubicInterpolationMode==="monotone")&&!r.stepped&&!this._pointsUpdated){let o=r.spanGaps?this._loop:this._fullLoop;$j(this._points,r,e,o,i),this._pointsUpdated=!0}}set points(e){this._points=e,delete this._segments,delete this._path,this._pointsUpdated=!1}get points(){return this._points}get segments(){return this._segments||(this._segments=Kj(this,this.options.segment))}first(){let e=this.segments,i=this.points;return e.length&&i[e[0].start]}last(){let e=this.segments,i=this.points,r=e.length;return r&&i[e[r-1].end]}interpolate(e,i){let r=this.options,o=e[i],a=this.points,s=xT(this,{property:i,start:o,end:o});if(!s.length)return;let l=[],c=uae(r),d,m;for(d=0,m=s.length;d{class t extends ja{static id="point";parsed;skip;stop;static defaults={borderWidth:1,hitRadius:1,hoverBorderWidth:1,hoverRadius:4,pointStyle:"circle",radius:3,rotation:0};static defaultRoutes={backgroundColor:"backgroundColor",borderColor:"borderColor"};constructor(e){super(),this.options=void 0,this.parsed=void 0,this.skip=void 0,this.stop=void 0,e&&Object.assign(this,e)}inRange(e,i,r){let o=this.options,{x:a,y:s}=this.getProps(["x","y"],r);return Math.pow(e-a,2)+Math.pow(i-s,2)t.replace("rgb(","rgba(").replace(")",", 0.5)"));function uH(t){return qT[t%qT.length]}function mH(t){return M4[t%M4.length]}function wae(t,n){return t.borderColor=uH(n),t.backgroundColor=mH(n),++n}function Dae(t,n){return t.backgroundColor=t.data.map(()=>uH(n++)),n}function Eae(t,n){return t.backgroundColor=t.data.map(()=>mH(n++)),n}function Mae(t){let n=0;return(e,i)=>{let r=t.getDatasetMeta(i).controller;r instanceof tI?n=Dae(e,n):r instanceof J4?n=Eae(e,n):r&&(n=wae(e,n))}}function k4(t){let n;for(n in t)if(t[n].borderColor||t[n].backgroundColor)return!0;return!1}function kae(t){return t&&(t.borderColor||t.backgroundColor)}function Sae(){return xi.borderColor!=="rgba(0,0,0,0.1)"||xi.backgroundColor!=="rgba(0,0,0,0.1)"}var Tae={id:"colors",defaults:{enabled:!0,forceOverride:!1},beforeLayout(t,n,e){if(!e.enabled)return;let{data:{datasets:i},options:r}=t.config,{elements:o}=r,a=k4(i)||kae(r)||o&&k4(o)||Sae();if(!e.forceOverride&&a)return;let s=Mae(t);i.forEach(s)}};function Iae(t,n,e,i,r){let o=r.samples||i;if(o>=e)return t.slice(n,n+e);let a=[],s=(e-2)/(o-2),l=0,c=n+e-1,d=n,m,f,b,v,w;for(a[l++]=t[d],m=0;mb&&(b=v,f=t[P],w=P);a[l++]=f,d=w}return a[l++]=t[c],a}function Aae(t,n,e,i){let r=0,o=0,a,s,l,c,d,m,f,b,v,w,x=[],D=n+e-1,P=t[n].x,Z=t[D].x-P;for(a=n;aw&&(w=c,f=a),r=(o*r+s.x)/++o;else{let re=a-1;if(!Et(m)&&!Et(f)){let Ee=Math.min(m,f),be=Math.max(m,f);Ee!==b&&Ee!==re&&x.push(De(M({},t[Ee]),{x:r})),be!==b&&be!==re&&x.push(De(M({},t[be]),{x:r}))}a>0&&re!==b&&x.push(t[re]),x.push(s),d=K,o=0,v=w=c,m=f=b=a}}return x}function hH(t){if(t._decimated){let n=t._data;delete t._decimated,delete t._data,Object.defineProperty(t,"data",{configurable:!0,enumerable:!0,writable:!0,value:n})}}function S4(t){t.data.datasets.forEach(n=>{hH(n)})}function Oae(t,n){let e=n.length,i=0,r,{iScale:o}=t,{min:a,max:s,minDefined:l,maxDefined:c}=o.getUserBounds();return l&&(i=Dn(ks(n,o.axis,a).lo,0,e-1)),c?r=Dn(ks(n,o.axis,s).hi+1,i,e)-i:r=e-i,{start:i,count:r}}var Rae={id:"decimation",defaults:{algorithm:"min-max",enabled:!1},beforeElementsUpdate:(t,n,e)=>{if(!e.enabled){S4(t);return}let i=t.width;t.data.datasets.forEach((r,o)=>{let{_data:a,indexAxis:s}=r,l=t.getDatasetMeta(o),c=a||r.data;if(Hh([s,t.options.indexAxis])==="y"||!l.controller.supportsDecimation)return;let d=t.scales[l.xAxisID];if(d.type!=="linear"&&d.type!=="time"||t.options.parsing)return;let{start:m,count:f}=Oae(l,c),b=e.threshold||4*i;if(f<=b){hH(r);return}Et(a)&&(r._data=c,delete r.data,Object.defineProperty(r,"data",{configurable:!0,enumerable:!0,get:function(){return this._decimated},set:function(w){this._data=w}}));let v;switch(e.algorithm){case"lttb":v=Iae(c,m,f,i,e);break;case"min-max":v=Aae(c,m,f,i);break;default:throw new Error(`Unsupported decimation algorithm '${e.algorithm}'`)}r._decimated=v})},destroy(t){S4(t)}};function Pae(t,n,e){let i=t.segments,r=t.points,o=n.points,a=[];for(let s of i){let{start:l,end:c}=s;c=hC(l,c,r);let d=YT(e,r[l],r[c],s.loop);if(!n.segments){a.push({source:s,target:d,start:r[l],end:r[c]});continue}let m=xT(n,d);for(let f of m){let b=YT(e,o[f.start],o[f.end],f.loop),v=yT(s,r,b);for(let w of v)a.push({source:w,target:f,start:{[e]:T4(d,b,"start",Math.max)},end:{[e]:T4(d,b,"end",Math.min)}})}}return a}function YT(t,n,e,i){if(i)return;let r=n[t],o=e[t];return t==="angle"&&(r=or(r),o=or(o)),{property:t,start:r,end:o}}function Fae(t,n){let{x:e=null,y:i=null}=t||{},r=n.points,o=[];return n.segments.forEach(({start:a,end:s})=>{s=hC(a,s,r);let l=r[a],c=r[s];i!==null?(o.push({x:l.x,y:i}),o.push({x:c.x,y:i})):e!==null&&(o.push({x:e,y:l.y}),o.push({x:e,y:c.y}))}),o}function hC(t,n,e){for(;n>t;n--){let i=e[n];if(!isNaN(i.x)&&!isNaN(i.y))break}return n}function T4(t,n,e,i){return t&&n?i(t[e],n[e]):t?t[e]:n?n[e]:0}function pH(t,n){let e=[],i=!1;return Ei(t)?(i=!0,e=t):e=Fae(t,n),e.length?new mC({points:e,options:{tension:0},_loop:i,_fullLoop:i}):null}function I4(t){return t&&t.fill!==!1}function Nae(t,n,e){let r=t[n].fill,o=[n],a;if(!e)return r;for(;r!==!1&&o.indexOf(r)===-1;){if(!Gi(r))return r;if(a=t[r],!a)return!1;if(a.visible)return r;o.push(r),r=a.fill}return!1}function Lae(t,n,e){let i=Hae(t);if(St(i))return isNaN(i.value)?!1:i;let r=parseFloat(i);return Gi(r)&&Math.floor(r)===r?Vae(i[0],n,r,e):["origin","start","end","stack","shape"].indexOf(i)>=0&&i}function Vae(t,n,e,i){return(t==="-"||t==="+")&&(e=n+e),e===n||e<0||e>=i?!1:e}function Bae(t,n){let e=null;return t==="start"?e=n.bottom:t==="end"?e=n.top:St(t)?e=n.getPixelForValue(t.value):n.getBasePixel&&(e=n.getBasePixel()),e}function jae(t,n,e){let i;return t==="start"?i=e:t==="end"?i=n.options.reverse?n.min:n.max:St(t)?i=t.value:i=n.getBaseValue(),i}function Hae(t){let n=t.options,e=n.fill,i=st(e&&e.target,e);return i===void 0&&(i=!!n.backgroundColor),i===!1||i===null?!1:i===!0?"origin":i}function zae(t){let{scale:n,index:e,line:i}=t,r=[],o=i.segments,a=i.points,s=Uae(n,e);s.push(pH({x:null,y:n.bottom},i));for(let l=0;l=0;--a){let s=r[a].$filler;s&&(s.line.updateControlPoints(o,s.axis),i&&s.fill&&OT(t.ctx,s,o))}},beforeDatasetsDraw(t,n,e){if(e.drawTime!=="beforeDatasetsDraw")return;let i=t.getSortedVisibleDatasetMetas();for(let r=i.length-1;r>=0;--r){let o=i[r].$filler;I4(o)&&OT(t.ctx,o,t.chartArea)}},beforeDatasetDraw(t,n,e){let i=n.meta.$filler;!I4(i)||e.drawTime!=="beforeDatasetDraw"||OT(t.ctx,i,t.chartArea)},defaults:{propagate:!0,drawTime:"beforeDatasetDraw"}},P4=(t,n)=>{let{boxHeight:e=n,boxWidth:i=n}=t;return t.usePointStyle&&(e=Math.min(e,n),i=t.pointStyleWidth||Math.min(i,n)),{boxWidth:i,boxHeight:e,itemHeight:Math.max(n,e)}},ese=(t,n)=>t!==null&&n!==null&&t.datasetIndex===n.datasetIndex&&t.index===n.index,dC=class extends ja{constructor(n){super(),this._added=!1,this.legendHitBoxes=[],this._hoveredItem=null,this.doughnutMode=!1,this.chart=n.chart,this.options=n.options,this.ctx=n.ctx,this.legendItems=void 0,this.columnSizes=void 0,this.lineWidths=void 0,this.maxHeight=void 0,this.maxWidth=void 0,this.top=void 0,this.bottom=void 0,this.left=void 0,this.right=void 0,this.height=void 0,this.width=void 0,this._margins=void 0,this.position=void 0,this.weight=void 0,this.fullSize=void 0}update(n,e,i){this.maxWidth=n,this.maxHeight=e,this._margins=i,this.setDimensions(),this.buildLabels(),this.fit()}setDimensions(){this.isHorizontal()?(this.width=this.maxWidth,this.left=this._margins.left,this.right=this.width):(this.height=this.maxHeight,this.top=this._margins.top,this.bottom=this.height)}buildLabels(){let n=this.options.labels||{},e=yi(n.generateLabels,[this.chart],this)||[];n.filter&&(e=e.filter(i=>n.filter(i,this.chart.data))),n.sort&&(e=e.sort((i,r)=>n.sort(i,r,this.chart.data))),this.options.reverse&&e.reverse(),this.legendItems=e}fit(){let{options:n,ctx:e}=this;if(!n.display){this.width=this.height=0;return}let i=n.labels,r=pn(i.font),o=r.size,a=this._computeTitleHeight(),{boxWidth:s,itemHeight:l}=P4(i,o),c,d;e.font=r.string,this.isHorizontal()?(c=this.maxWidth,d=this._fitRows(a,o,s,l)+10):(d=this.maxHeight,c=this._fitCols(a,r,s,l)+10),this.width=Math.min(c,n.maxWidth||this.maxWidth),this.height=Math.min(d,n.maxHeight||this.maxHeight)}_fitRows(n,e,i,r){let{ctx:o,maxWidth:a,options:{labels:{padding:s}}}=this,l=this.legendHitBoxes=[],c=this.lineWidths=[0],d=r+s,m=n;o.textAlign="left",o.textBaseline="middle";let f=-1,b=-d;return this.legendItems.forEach((v,w)=>{let x=i+e/2+o.measureText(v.text).width;(w===0||c[c.length-1]+x+2*s>a)&&(m+=d,c[c.length-(w>0?0:1)]=0,b+=d,f++),l[w]={left:0,top:b,row:f,width:x,height:r},c[c.length-1]+=x+s}),m}_fitCols(n,e,i,r){let{ctx:o,maxHeight:a,options:{labels:{padding:s}}}=this,l=this.legendHitBoxes=[],c=this.columnSizes=[],d=a-n,m=s,f=0,b=0,v=0,w=0;return this.legendItems.forEach((x,D)=>{let{itemWidth:P,itemHeight:W}=tse(i,e,o,x,r);D>0&&b+W+2*s>d&&(m+=f+s,c.push({width:f,height:b}),v+=f+s,w++,f=b=0),l[D]={left:v,top:b,col:w,width:P,height:W},f=Math.max(f,P),b+=W+s}),m+=f,c.push({width:f,height:b}),m}adjustHitBoxes(){if(!this.options.display)return;let n=this._computeTitleHeight(),{legendHitBoxes:e,options:{align:i,labels:{padding:r},rtl:o}}=this,a=Cu(o,this.left,this.width);if(this.isHorizontal()){let s=0,l=ar(i,this.left+r,this.right-this.lineWidths[s]);for(let c of e)s!==c.row&&(s=c.row,l=ar(i,this.left+r,this.right-this.lineWidths[s])),c.top+=this.top+n+r,c.left=a.leftForLtr(a.x(l),c.width),l+=c.width+r}else{let s=0,l=ar(i,this.top+n+r,this.bottom-this.columnSizes[s].height);for(let c of e)c.col!==s&&(s=c.col,l=ar(i,this.top+n+r,this.bottom-this.columnSizes[s].height)),c.top=l,c.left+=this.left+r,c.left=a.leftForLtr(a.x(c.left),c.width),l+=c.height+r}}isHorizontal(){return this.options.position==="top"||this.options.position==="bottom"}draw(){if(this.options.display){let n=this.ctx;Hg(n,this),this._draw(),zg(n)}}_draw(){let{options:n,columnSizes:e,lineWidths:i,ctx:r}=this,{align:o,labels:a}=n,s=xi.color,l=Cu(n.rtl,this.left,this.width),c=pn(a.font),{padding:d}=a,m=c.size,f=m/2,b;this.drawTitle(),r.textAlign=l.textAlign("left"),r.textBaseline="middle",r.lineWidth=.5,r.font=c.string;let{boxWidth:v,boxHeight:w,itemHeight:x}=P4(a,m),D=function(re,Ee,be){if(isNaN(v)||v<=0||isNaN(w)||w<0)return;r.save();let Ve=st(be.lineWidth,1);if(r.fillStyle=st(be.fillStyle,s),r.lineCap=st(be.lineCap,"butt"),r.lineDashOffset=st(be.lineDashOffset,0),r.lineJoin=st(be.lineJoin,"miter"),r.lineWidth=Ve,r.strokeStyle=st(be.strokeStyle,s),r.setLineDash(st(be.lineDash,[])),a.usePointStyle){let yt={radius:w*Math.SQRT2/2,pointStyle:be.pointStyle,rotation:be.rotation,borderWidth:Ve},bt=l.xPlus(re,v/2),It=Ee+f;dT(r,yt,bt,It,a.pointStyleWidth&&v)}else{let yt=Ee+Math.max((m-w)/2,0),bt=l.leftForLtr(re,v),It=Tc(be.borderRadius);r.beginPath(),Object.values(It).some($n=>$n!==0)?jh(r,{x:bt,y:yt,w:v,h:w,radius:It}):r.rect(bt,yt,v,w),r.fill(),Ve!==0&&r.stroke()}r.restore()},P=function(re,Ee,be){Sc(r,be.text,re,Ee+x/2,c,{strikethrough:be.hidden,textAlign:l.textAlign(be.textAlign)})},W=this.isHorizontal(),Z=this._computeTitleHeight();W?b={x:ar(o,this.left+d,this.right-i[0]),y:this.top+d+Z,line:0}:b={x:this.left+d,y:ar(o,this.top+Z+d,this.bottom-e[0].height),line:0},bT(this.ctx,n.textDirection);let K=x+d;this.legendItems.forEach((re,Ee)=>{r.strokeStyle=re.fontColor,r.fillStyle=re.fontColor;let be=r.measureText(re.text).width,Ve=l.textAlign(re.textAlign||(re.textAlign=a.textAlign)),yt=v+f+be,bt=b.x,It=b.y;l.setWidth(this.width),W?Ee>0&&bt+yt+d>this.right&&(It=b.y+=K,b.line++,bt=b.x=ar(o,this.left+d,this.right-i[b.line])):Ee>0&&It+K>this.bottom&&(bt=b.x=bt+e[b.line].width+d,b.line++,It=b.y=ar(o,this.top+Z+d,this.bottom-e[b.line].height));let $n=l.x(bt);if(D($n,It,re),bt=Pj(Ve,bt+v+f,W?bt+yt:this.right,n.rtl),P(l.x(bt),It,re),W)b.x+=yt+d;else if(typeof re.text!="string"){let lo=c.lineHeight;b.y+=fH(re,lo)+d}else b.y+=K}),vT(this.ctx,n.textDirection)}drawTitle(){let n=this.options,e=n.title,i=pn(e.font),r=sr(e.padding);if(!e.display)return;let o=Cu(n.rtl,this.left,this.width),a=this.ctx,s=e.position,l=i.size/2,c=r.top+l,d,m=this.left,f=this.width;if(this.isHorizontal())f=Math.max(...this.lineWidths),d=this.top+c,m=ar(n.align,m,this.right-f);else{let v=this.columnSizes.reduce((w,x)=>Math.max(w,x.height),0);d=c+ar(n.align,this.top,this.bottom-v-n.labels.padding-this._computeTitleHeight())}let b=ar(s,m,m+f);a.textAlign=o.textAlign(Ux(s)),a.textBaseline="middle",a.strokeStyle=e.color,a.fillStyle=e.color,a.font=i.string,Sc(a,e.text,b,d,i)}_computeTitleHeight(){let n=this.options.title,e=pn(n.font),i=sr(n.padding);return n.display?e.lineHeight+i.height:0}_getLegendItemAt(n,e){let i,r,o;if(Is(n,this.left,this.right)&&Is(e,this.top,this.bottom)){for(o=this.legendHitBoxes,i=0;io.length>a.length?o:a)),n+e.size/2+i.measureText(r).width}function nse(t,n,e){let i=t;return typeof n.text!="string"&&(i=fH(n,e)),i}function fH(t,n){let e=t.text?t.text.length:0;return n*e}function rse(t,n){return!!((t==="mousemove"||t==="mouseout")&&(n.onHover||n.onLeave)||n.onClick&&(t==="click"||t==="mouseup"))}var ose={id:"legend",_element:dC,start(t,n,e){let i=t.legend=new dC({ctx:t.ctx,options:e,chart:t});Dr.configure(t,i,e),Dr.addBox(t,i)},stop(t){Dr.removeBox(t,t.legend),delete t.legend},beforeUpdate(t,n,e){let i=t.legend;Dr.configure(t,i,e),i.options=e},afterUpdate(t){let n=t.legend;n.buildLabels(),n.adjustHitBoxes()},afterEvent(t,n){n.replay||t.legend.handleEvent(n.event)},defaults:{display:!0,position:"top",align:"center",fullSize:!0,reverse:!1,weight:1e3,onClick(t,n,e){let i=n.datasetIndex,r=e.chart;r.isDatasetVisible(i)?(r.hide(i),n.hidden=!0):(r.show(i),n.hidden=!1)},onHover:null,onLeave:null,labels:{color:t=>t.chart.options.color,boxWidth:40,padding:10,generateLabels(t){let n=t.data.datasets,{labels:{usePointStyle:e,pointStyle:i,textAlign:r,color:o,useBorderRadius:a,borderRadius:s}}=t.legend.options;return t._getSortedDatasetMetas().map(l=>{let c=l.controller.getStyle(e?0:void 0),d=sr(c.borderWidth);return{text:n[l.index].label,fillStyle:c.backgroundColor,fontColor:o,hidden:!l.visible,lineCap:c.borderCapStyle,lineDash:c.borderDash,lineDashOffset:c.borderDashOffset,lineJoin:c.borderJoinStyle,lineWidth:(d.width+d.height)/4,strokeStyle:c.borderColor,pointStyle:i||c.pointStyle,rotation:c.rotation,textAlign:r||c.textAlign,borderRadius:a&&(s||c.borderRadius),datasetIndex:l.index}},this)}},title:{color:t=>t.chart.options.color,display:!1,position:"center",text:""}},descriptors:{_scriptable:t=>!t.startsWith("on"),labels:{_scriptable:t=>!["generateLabels","filter","sort"].includes(t)}}},Zg=class extends ja{constructor(n){super(),this.chart=n.chart,this.options=n.options,this.ctx=n.ctx,this._padding=void 0,this.top=void 0,this.bottom=void 0,this.left=void 0,this.right=void 0,this.width=void 0,this.height=void 0,this.position=void 0,this.weight=void 0,this.fullSize=void 0}update(n,e){let i=this.options;if(this.left=0,this.top=0,!i.display){this.width=this.height=this.right=this.bottom=0;return}this.width=this.right=n,this.height=this.bottom=e;let r=Ei(i.text)?i.text.length:1;this._padding=sr(i.padding);let o=r*pn(i.font).lineHeight+this._padding.height;this.isHorizontal()?this.height=o:this.width=o}isHorizontal(){let n=this.options.position;return n==="top"||n==="bottom"}_drawArgs(n){let{top:e,left:i,bottom:r,right:o,options:a}=this,s=a.align,l=0,c,d,m;return this.isHorizontal()?(d=ar(s,i,o),m=e+n,c=o-i):(a.position==="left"?(d=i+n,m=ar(s,r,e),l=Ht*-.5):(d=o-n,m=ar(s,e,r),l=Ht*.5),c=r-e),{titleX:d,titleY:m,maxWidth:c,rotation:l}}draw(){let n=this.ctx,e=this.options;if(!e.display)return;let i=pn(e.font),o=i.lineHeight/2+this._padding.top,{titleX:a,titleY:s,maxWidth:l,rotation:c}=this._drawArgs(o);Sc(n,e.text,0,0,i,{color:e.color,maxWidth:l,rotation:c,textAlign:Ux(e.align),textBaseline:"middle",translation:[a,s]})}};function ase(t,n){let e=new Zg({ctx:t.ctx,options:n,chart:t});Dr.configure(t,e,n),Dr.addBox(t,e),t.titleBlock=e}var sse={id:"title",_element:Zg,start(t,n,e){ase(t,e)},stop(t){let n=t.titleBlock;Dr.removeBox(t,n),delete t.titleBlock},beforeUpdate(t,n,e){let i=t.titleBlock;Dr.configure(t,i,e),i.options=e},defaults:{align:"center",display:!1,font:{weight:"bold"},fullSize:!0,padding:10,position:"top",text:"",weight:2e3},defaultRoutes:{color:"color"},descriptors:{_scriptable:!0,_indexable:!1}},eC=new WeakMap,lse={id:"subtitle",start(t,n,e){let i=new Zg({ctx:t.ctx,options:e,chart:t});Dr.configure(t,i,e),Dr.addBox(t,i),eC.set(t,i)},stop(t){Dr.removeBox(t,eC.get(t)),eC.delete(t)},beforeUpdate(t,n,e){let i=eC.get(t);Dr.configure(t,i,e),i.options=e},defaults:{align:"center",display:!1,font:{weight:"normal"},fullSize:!0,padding:0,position:"top",text:"",weight:1500},defaultRoutes:{color:"color"},descriptors:{_scriptable:!0,_indexable:!1}},Qg={average(t){if(!t.length)return!1;let n,e,i=new Set,r=0,o=0;for(n=0,e=t.length;ns+l)/i.size,y:r/o}},nearest(t,n){if(!t.length)return!1;let e=n.x,i=n.y,r=Number.POSITIVE_INFINITY,o,a,s;for(o=0,a=t.length;otypeof t=="function",Kie=t=>typeof t=="function"&&!!t.\u0275cmp,Zie=(t,n)=>Kie(t)?t:Qie(t)?t(n):t,RS=class{constructor(){this.storage="local",this.key="ngxpert/hototast-${id}",this.count=1,this.enabled=!1}},Xie=new T("HOT_TOAST_CONTAINER_TOKEN"),Rg=(()=>{let n=class n{constructor(){this._isInitialized=!1,this._defaultGlobalConfig=new Og,this._defaultPersistConfig=new RS,this._viewService=u(OS),this._platformId=u(Ks),this._globalConfig=u(Og,{optional:!0}),this._container=u(Xie,{optional:!0}),this._globalConfig&&(this._defaultGlobalConfig=M(M({},this._defaultGlobalConfig),this._globalConfig))}get defaultConfig(){return this._defaultGlobalConfig}set defaultConfig(i){this._defaultGlobalConfig=M(M({},this._defaultGlobalConfig),i),this._componentRef&&this._componentRef.setInput("defaultConfig",this._defaultGlobalConfig)}show(i,r,o){return this.createToast({message:i||this._defaultGlobalConfig.blank.content,type:r?.type??"blank",options:M(M({},this._defaultGlobalConfig),r),skipAttachToParent:o})}error(i,r){return this.createToast({message:i||this._defaultGlobalConfig.error.content,type:"error",options:M(M(M({},this._defaultGlobalConfig),this._defaultGlobalConfig?.error),r)})}success(i,r){return this.createToast({message:i||this._defaultGlobalConfig.success.content,type:"success",options:M(M(M({},this._defaultGlobalConfig),this._defaultGlobalConfig?.success),r)})}loading(i,r){return this.createToast({message:i||this._defaultGlobalConfig.loading.content,type:"loading",options:M(M(M({},this._defaultGlobalConfig),this._defaultGlobalConfig?.loading),r)})}warning(i,r){return this.createToast({message:i||this._defaultGlobalConfig.warning.content,type:"warning",options:M(M(M({},this._defaultGlobalConfig),this._defaultGlobalConfig?.warning),r)})}info(i,r){return this.createToast({message:i||this._defaultGlobalConfig.info.content,type:"info",options:M(M(M({},this._defaultGlobalConfig),this._defaultGlobalConfig?.info),r)})}observe(i){return r=>{let o,a=0,s=i.loading??this._defaultGlobalConfig.loading?.content,l=i.success??this._defaultGlobalConfig.success?.content,c=i.error??this._defaultGlobalConfig.error?.content;return kn(()=>(s&&(o=this.createLoadingToast(s),a=Date.now()),r.pipe(Be(M(M({},l&&{next:d=>{o=this.createOrUpdateToast(i,d,o,"success",a===0?a:Date.now()-a)}}),c&&{error:d=>{o=this.createOrUpdateToast(i,d,o,"error",a===0?a:Date.now()-a)}})))))}}close(i){this._componentRef&&this._componentRef.ref.instance.closeToast(i)}init(){if(!U2(this._platformId))if(this._container){let i=document.querySelector(this._container);i||(console.warn(`No container element found for selector: ${this._container}, using document.body instead as toast container.`),i=document.body),this._componentRef=this._viewService.createComponent(Q3).setInput("defaultConfig",this._defaultGlobalConfig).appendTo(i)}else this._componentRef=this._viewService.createComponent(Q3).setInput("defaultConfig",this._defaultGlobalConfig).appendTo(document.body)}createOrUpdateToast(i,r,o,a,s){try{let l=null,c={};if({content:l,options:c}=this.getContentAndOptions(a,i[a]||(this._defaultGlobalConfig[a]?this._defaultGlobalConfig[a].content:"")),l=Zie(l,r),o){c.data&&(o.data=c.data),o.updateMessage(l);let d=M(M({type:a,duration:s+q3[a]},c),c.duration&&{duration:s+c.duration});o.updateToast(d)}else this.createToast({message:l,type:a,options:c});return o}catch(l){console.error(l)}}createToast({message:i,type:r,options:o,observableMessages:a,skipAttachToParent:s}){this._isInitialized||(this._isInitialized=!0,this.init());let l=o?.id??`toast-${n.nextId++}`;if(!this.isDuplicate(l)&&(!o.persist?.enabled||o.persist?.enabled&&this.handleStorageValue(l,o))){let c=M({ariaLive:o?.ariaLive??"polite",createdAt:Date.now(),duration:o?.duration??q3[r],id:l,message:i,role:o?.role??"status",type:r,visible:!0,observableMessages:a??void 0},o);return new Ag(c).appendTo(this._componentRef.ref.instance,s)}}isDuplicate(i){return this._componentRef.ref.instance.hasToast(i)}handleStorageValue(i,r){let o=1,a=M(M({},this._defaultPersistConfig),r.persist),s=a.storage==="local"?localStorage:sessionStorage,l=a.key.replace(/\${id}/g,i),c=s.getItem(l);return c?(c=parseInt(c,10),c>0?o=c-1:o=c):o=a.count,s.setItem(l,o.toString()),o}getContentAndOptions(i,r){var s;let o,a=M(M({},this._defaultGlobalConfig),this._defaultGlobalConfig[i]);if(typeof r=="string"||Ig(r)||gu(r))o=r;else{let l;s=r,{content:o}=s,l=ed(s,["content"]),a=M(M({},a),l)}return{content:o,options:a}}createLoadingToast(i){let r=null,o={};return{content:r,options:o}=this.getContentAndOptions("loading",i),this.loading(r,o)}};n.nextId=0,n.\u0275fac=function(r){return new(r||n)},n.\u0275prov=O({token:n,factory:n.\u0275fac,providedIn:"root"});let t=n;return t})();function J3(t){return zr([{provide:Og,useValue:t}])}var Mx={REMOVE:"remove",SHOW:"show"},tj=(()=>{let n=class n{constructor(){this.strategiesSource=new tt({}),this.strategies$=this.strategiesSource.asObservable()}};n.\u0275fac=function(r){return new(r||n)},n.\u0275prov=O({token:n,factory:n.\u0275fac});let t=n;return t})(),NS=new T("USE_CONFIGURATION_STORE"),LS=(()=>{let n=class n{constructor(i=!1,r){this.isolate=i,this.configurationStore=r,this.strategiesSource=this.isolate?new tt({}):this.configurationStore.strategiesSource,this.strategies$=this.strategiesSource.asObservable(),this.onAuthorisedDefaultStrategy=this.isolate?void 0:this.configurationStore.onAuthorisedDefaultStrategy,this.onUnAuthorisedDefaultStrategy=this.isolate?void 0:this.configurationStore.onUnAuthorisedDefaultStrategy}setDefaultOnAuthorizedStrategy(i){this.isolate?this.onAuthorisedDefaultStrategy=this.getDefinedStrategy(i):(this.configurationStore.onAuthorisedDefaultStrategy=this.getDefinedStrategy(i),this.onAuthorisedDefaultStrategy=this.configurationStore.onAuthorisedDefaultStrategy)}setDefaultOnUnauthorizedStrategy(i){this.isolate?this.onUnAuthorisedDefaultStrategy=this.getDefinedStrategy(i):(this.configurationStore.onUnAuthorisedDefaultStrategy=this.getDefinedStrategy(i),this.onUnAuthorisedDefaultStrategy=this.configurationStore.onUnAuthorisedDefaultStrategy)}addPermissionStrategy(i,r){this.strategiesSource.value[i]=r}getStrategy(i){return this.strategiesSource.value[i]}getAllStrategies(){return this.strategiesSource.value}getDefinedStrategy(i){if(this.strategiesSource.value[i]||this.isPredefinedStrategy(i))return i;throw new Error(`No ' ${i} ' strategy is found please define one`)}isPredefinedStrategy(i){return i===Mx.SHOW||i===Mx.REMOVE}};n.\u0275fac=function(r){return new(r||n)(pe(NS),pe(tj))},n.\u0275prov=O({token:n,factory:n.\u0275fac});let t=n;return t})();function io(t){return typeof t=="function"}function FS(t){if(Object.prototype.toString.call(t)!=="[object Object]")return!1;{let n=Object.getPrototypeOf(t);return n===null||n===Object.prototype}}function ij(t){return!!t&&typeof t=="string"}function kx(t){return typeof t=="boolean"}function Jie(t){return Object.prototype.toString.call(t)==="[object Promise]"}function Ex(t){return Array.isArray(t)?t.length>0:!!t}function Sx(t){return ij(t)?[t]:t}var nj=(()=>{let n=class n{constructor(){this.permissionsSource=new tt({}),this.permissions$=this.permissionsSource.asObservable()}};n.\u0275fac=function(r){return new(r||n)},n.\u0275prov=O({token:n,factory:n.\u0275fac});let t=n;return t})(),VS=new T("USE_PERMISSIONS_STORE"),_u=(()=>{let n=class n{constructor(i=!1,r){this.isolate=i,this.permissionsStore=r,this.permissionsSource=this.isolate?new tt({}):this.permissionsStore.permissionsSource,this.permissions$=this.permissionsSource.asObservable()}flushPermissions(){this.permissionsSource.next({})}hasPermission(i){return!i||Array.isArray(i)&&i.length===0?Promise.resolve(!0):(i=Sx(i),this.hasArrayPermission(i))}loadPermissions(i,r){let o=i.reduce((a,s)=>this.reducePermission(a,s,r),{});this.permissionsSource.next(o)}addPermission(i,r){if(Array.isArray(i)){let o=i.reduce((a,s)=>this.reducePermission(a,s,r),this.permissionsSource.value);this.permissionsSource.next(o)}else{let o=this.reducePermission(this.permissionsSource.value,i,r);this.permissionsSource.next(o)}}removePermission(i){let r=M({},this.permissionsSource.value);delete r[i],this.permissionsSource.next(r)}getPermission(i){return this.permissionsSource.value[i]}getPermissions(){return this.permissionsSource.value}reducePermission(i,r,o){return o&&io(o)?De(M({},i),{[r]:{name:r,validationFunction:o}}):De(M({},i),{[r]:{name:r}})}hasArrayPermission(i){let r=i.map(o=>{if(this.hasPermissionValidationFunction(o)){let a=this.permissionsSource.value[o].validationFunction,s=M({},this.permissionsSource.value);return Q(null).pipe(se(()=>a(o,s)),$e(l=>kx(l)?Q(l):l),fi(()=>Q(!1)))}return Q(!!this.permissionsSource.value[o])});return Ot(r).pipe(uo(),gn(o=>o!==!1,!1),se(o=>o!==!1)).toPromise().then(o=>o)}hasPermissionValidationFunction(i){return!!this.permissionsSource.value[i]&&!!this.permissionsSource.value[i].validationFunction&&io(this.permissionsSource.value[i].validationFunction)}};n.\u0275fac=function(r){return new(r||n)(pe(VS),pe(nj))},n.\u0275prov=O({token:n,factory:n.\u0275fac});let t=n;return t})(),Tx=class{constructor(){this.rolesSource=new tt({}),this.roles$=this.rolesSource.asObservable()}},BS=new T("USE_ROLES_STORE"),Th=(()=>{let n=class n{constructor(i=!1,r,o){this.isolate=i,this.rolesStore=r,this.permissionsService=o,this.rolesSource=this.isolate?new tt({}):this.rolesStore.rolesSource,this.roles$=this.rolesSource.asObservable()}addRole(i,r){let o=De(M({},this.rolesSource.value),{[i]:{name:i,validationFunction:r}});this.rolesSource.next(o)}addRoleWithPermissions(i,r){this.permissionsService.addPermission(r),this.addRole(i,r)}addRoles(i){Object.keys(i).forEach((r,o)=>{this.addRole(r,i[r])})}addRolesWithPermissions(i){Object.keys(i).forEach((r,o)=>{this.addRoleWithPermissions(r,i[r])})}flushRoles(){this.rolesSource.next({})}flushRolesAndPermissions(){this.flushRoles(),this.permissionsService.flushPermissions()}removeRole(i){let r=M({},this.rolesSource.value);delete r[i],this.rolesSource.next(r)}getRoles(){return this.rolesSource.value}getRole(i){return this.rolesSource.value[i]}hasOnlyRoles(i){return!i||Array.isArray(i)&&i.length===0?Promise.resolve(!0):(i=Sx(i),Promise.all([this.hasRoleKey(i),this.hasRolePermission(this.rolesSource.value,i)]).then(([o,a])=>o||a))}hasRoleKey(i){let r=i.map(o=>{if(!!this.rolesSource.value[o]&&!!this.rolesSource.value[o].validationFunction&&io(this.rolesSource.value[o].validationFunction)&&!Jie(this.rolesSource.value[o].validationFunction)){let s=this.rolesSource.value[o].validationFunction,l=M({},this.rolesSource.value);return Q(null).pipe(se(()=>s(o,l)),$e(c=>kx(c)?Q(c):c),fi(()=>Q(!1)))}return Q(!1)});return Ot(r).pipe(uo(),gn(o=>o!==!1,!1),se(o=>o!==!1)).toPromise().then(o=>o)}hasRolePermission(i,r){return Ot(r).pipe(Mt(o=>i[o]&&Array.isArray(i[o].validationFunction)?Ot(i[o].validationFunction).pipe(Mt(a=>this.permissionsService.hasPermission(a)),Yw(a=>a===!0)):Q(!1)),gn(o=>o===!0,!1)).toPromise()}};n.\u0275fac=function(r){return new(r||n)(pe(BS),pe(Tx),pe(_u))},n.\u0275prov=O({token:n,factory:n.\u0275fac});let t=n;return t})(),Ih=(()=>{let n=class n{constructor(){this.permissionsAuthorized=new U,this.permissionsUnauthorized=new U,this.firstMergeUnusedRun=1,this.permissionsService=u(_u),this.configurationService=u(LS),this.rolesService=u(Th),this.viewContainer=u(nt),this.changeDetector=u(ye),this.templateRef=u(te)}ngOnInit(){this.viewContainer.clear(),this.initPermissionSubscription=this.validateExceptOnlyPermissions()}ngOnChanges(i){let r=i.ngxPermissionsOnly,o=i.ngxPermissionsExcept;if(r||o){if(r&&r.firstChange||o&&o.firstChange)return;Je(this.permissionsService.permissions$,this.rolesService.roles$).pipe(Ya(this.firstMergeUnusedRun),lt(1)).subscribe(()=>{if(Ex(this.ngxPermissionsExcept)){this.validateExceptAndOnlyPermissions();return}if(Ex(this.ngxPermissionsOnly)){this.validateOnlyPermissions();return}this.handleAuthorisedPermission(this.getAuthorisedTemplates())})}}ngOnDestroy(){this.initPermissionSubscription&&this.initPermissionSubscription.unsubscribe()}validateExceptOnlyPermissions(){return Je(this.permissionsService.permissions$,this.rolesService.roles$).pipe(Ya(this.firstMergeUnusedRun)).subscribe(()=>{if(Ex(this.ngxPermissionsExcept)){this.validateExceptAndOnlyPermissions();return}if(Ex(this.ngxPermissionsOnly)){this.validateOnlyPermissions();return}this.handleAuthorisedPermission(this.getAuthorisedTemplates())})}validateExceptAndOnlyPermissions(){Promise.all([this.permissionsService.hasPermission(this.ngxPermissionsExcept),this.rolesService.hasOnlyRoles(this.ngxPermissionsExcept)]).then(([i,r])=>{if(i||r){this.handleUnauthorisedPermission(this.ngxPermissionsExceptElse||this.ngxPermissionsElse);return}if(this.ngxPermissionsOnly)throw!1;this.handleAuthorisedPermission(this.ngxPermissionsExceptThen||this.ngxPermissionsThen||this.templateRef)}).catch(()=>{this.ngxPermissionsOnly?this.validateOnlyPermissions():this.handleAuthorisedPermission(this.ngxPermissionsExceptThen||this.ngxPermissionsThen||this.templateRef)})}validateOnlyPermissions(){Promise.all([this.permissionsService.hasPermission(this.ngxPermissionsOnly),this.rolesService.hasOnlyRoles(this.ngxPermissionsOnly)]).then(([i,r])=>{i||r?this.handleAuthorisedPermission(this.ngxPermissionsOnlyThen||this.ngxPermissionsThen||this.templateRef):this.handleUnauthorisedPermission(this.ngxPermissionsOnlyElse||this.ngxPermissionsElse)}).catch(()=>{this.handleUnauthorisedPermission(this.ngxPermissionsOnlyElse||this.ngxPermissionsElse)})}handleUnauthorisedPermission(i){if(!(kx(this.currentAuthorizedState)&&!this.currentAuthorizedState)){if(this.currentAuthorizedState=!1,this.permissionsUnauthorized.emit(),this.getUnAuthorizedStrategyInput()){this.applyStrategyAccordingToStrategyType(this.getUnAuthorizedStrategyInput());return}this.configurationService.onUnAuthorisedDefaultStrategy&&!this.elseBlockDefined()?this.applyStrategy(this.configurationService.onUnAuthorisedDefaultStrategy):this.showTemplateBlockInView(i)}}handleAuthorisedPermission(i){if(!(kx(this.currentAuthorizedState)&&this.currentAuthorizedState)){if(this.currentAuthorizedState=!0,this.permissionsAuthorized.emit(),this.getAuthorizedStrategyInput()){this.applyStrategyAccordingToStrategyType(this.getAuthorizedStrategyInput());return}this.configurationService.onAuthorisedDefaultStrategy&&!this.thenBlockDefined()?this.applyStrategy(this.configurationService.onAuthorisedDefaultStrategy):this.showTemplateBlockInView(i)}}applyStrategyAccordingToStrategyType(i){if(ij(i)){this.applyStrategy(i);return}if(io(i)){this.showTemplateBlockInView(this.templateRef),i(this.templateRef);return}}showTemplateBlockInView(i){this.viewContainer.clear(),i&&(this.viewContainer.createEmbeddedView(i),this.changeDetector.markForCheck())}getAuthorisedTemplates(){return this.ngxPermissionsOnlyThen||this.ngxPermissionsExceptThen||this.ngxPermissionsThen||this.templateRef}elseBlockDefined(){return!!this.ngxPermissionsExceptElse||!!this.ngxPermissionsElse}thenBlockDefined(){return!!this.ngxPermissionsExceptThen||!!this.ngxPermissionsThen}getAuthorizedStrategyInput(){return this.ngxPermissionsOnlyAuthorisedStrategy||this.ngxPermissionsExceptAuthorisedStrategy||this.ngxPermissionsAuthorisedStrategy}getUnAuthorizedStrategyInput(){return this.ngxPermissionsOnlyUnauthorisedStrategy||this.ngxPermissionsExceptUnauthorisedStrategy||this.ngxPermissionsUnauthorisedStrategy}applyStrategy(i){if(i===Mx.SHOW){this.showTemplateBlockInView(this.templateRef);return}if(i===Mx.REMOVE){this.viewContainer.clear();return}let r=this.configurationService.getStrategy(i);this.showTemplateBlockInView(this.templateRef),r(this.templateRef)}};n.\u0275fac=function(r){return new(r||n)},n.\u0275dir=F({type:n,selectors:[["","ngxPermissionsOnly",""],["","ngxPermissionsExcept",""]],inputs:{ngxPermissionsOnly:"ngxPermissionsOnly",ngxPermissionsOnlyThen:"ngxPermissionsOnlyThen",ngxPermissionsOnlyElse:"ngxPermissionsOnlyElse",ngxPermissionsExcept:"ngxPermissionsExcept",ngxPermissionsExceptElse:"ngxPermissionsExceptElse",ngxPermissionsExceptThen:"ngxPermissionsExceptThen",ngxPermissionsThen:"ngxPermissionsThen",ngxPermissionsElse:"ngxPermissionsElse",ngxPermissionsOnlyAuthorisedStrategy:"ngxPermissionsOnlyAuthorisedStrategy",ngxPermissionsOnlyUnauthorisedStrategy:"ngxPermissionsOnlyUnauthorisedStrategy",ngxPermissionsExceptUnauthorisedStrategy:"ngxPermissionsExceptUnauthorisedStrategy",ngxPermissionsExceptAuthorisedStrategy:"ngxPermissionsExceptAuthorisedStrategy",ngxPermissionsUnauthorisedStrategy:"ngxPermissionsUnauthorisedStrategy",ngxPermissionsAuthorisedStrategy:"ngxPermissionsAuthorisedStrategy"},outputs:{permissionsAuthorized:"permissionsAuthorized",permissionsUnauthorized:"permissionsUnauthorized"},standalone:!1,features:[Ae]});let t=n;return t})(),ene="default";var ej=(()=>{let n=class n{constructor(i,r,o){this.permissionsService=i,this.rolesService=r,this.router=o}canActivate(i,r){return this.hasPermissions(i,r)}canActivateChild(i,r){return this.hasPermissions(i,r)}canLoad(i){return this.hasPermissions(i)}canMatch(i){return this.hasPermissions(i)}hasPermissions(i,r){let o=i&&i.data?i.data.permissions:{},a=this.transformPermission(o,i,r);return this.isParameterAvailable(a.except)?this.passingExceptPermissionsValidation(a,i,r):this.isParameterAvailable(a.only)?this.passingOnlyPermissionsValidation(a,i,r):!0}transformPermission(i,r,o){let a=io(i.only)?i.only(r,o):Sx(i.only),s=io(i.except)?i.except(r,o):Sx(i.except),l=i.redirectTo;return{only:a,except:s,redirectTo:l}}isParameterAvailable(i){return!!i&&i.length>0}passingExceptPermissionsValidation(i,r,o){if(i.redirectTo&&(io(i.redirectTo)||FS(i.redirectTo)&&!this.isRedirectionWithParameters(i.redirectTo))){let a="";return Ot(i.except).pipe(Mt(s=>Ga([this.permissionsService.hasPermission(s),this.rolesService.hasOnlyRoles(s)]).pipe(Be(l=>{l.every(d=>d===!1)||(a=s)}))),gn(s=>s.some(l=>l===!0),!1),Mt(s=>a?(this.handleRedirectOfFailedPermission(i,a,r,o),Q(!1)):!s&&i.only?this.onlyRedirectCheck(i,r,o):Q(!s))).toPromise()}return Promise.all([this.permissionsService.hasPermission(i.except),this.rolesService.hasOnlyRoles(i.except)]).then(([a,s])=>a||s?(i.redirectTo&&this.redirectToAnotherRoute(i.redirectTo,r,o),!1):i.only?this.checkOnlyPermissions(i,r,o):!0)}redirectToAnotherRoute(i,r,o,a){let s=io(i)?i(a,r,o):i;if(this.isRedirectionWithParameters(s)){s.navigationCommands=this.transformNavigationCommands(s.navigationCommands,r,o),s.navigationExtras=this.transformNavigationExtras(s.navigationExtras,r,o),this.router.navigate(s.navigationCommands,s.navigationExtras);return}Array.isArray(s)?this.router.navigate(s):this.router.navigate([s])}isRedirectionWithParameters(i){return FS(i)&&(!!i.navigationCommands||!!i.navigationExtras)}transformNavigationCommands(i,r,o){return io(i)?i(r,o):i}transformNavigationExtras(i,r,o){return io(i)?i(r,o):i}onlyRedirectCheck(i,r,o){let a="";return Ot(i.only).pipe(Mt(s=>Ga([this.permissionsService.hasPermission(s),this.rolesService.hasOnlyRoles(s)]).pipe(Be(l=>{l.every(d=>d===!1)&&(a=s)}))),gn(s=>io(i.redirectTo)?s.some(l=>l===!0):s.every(l=>l===!1),!1),Mt(s=>io(i.redirectTo)?s?Q(!0):(this.handleRedirectOfFailedPermission(i,a,r,o),Q(!1)):(a&&this.handleRedirectOfFailedPermission(i,a,r,o),Q(!s)))).toPromise()}handleRedirectOfFailedPermission(i,r,o,a){this.isFailedPermissionPropertyOfRedirectTo(i,r)?this.redirectToAnotherRoute(i.redirectTo[r],o,a,r):io(i.redirectTo)?this.redirectToAnotherRoute(i.redirectTo,o,a,r):this.redirectToAnotherRoute(i.redirectTo[ene],o,a,r)}isFailedPermissionPropertyOfRedirectTo(i,r){return!!i.redirectTo&&i.redirectTo[r]}checkOnlyPermissions(i,r,o){let a=M({},i);return Promise.all([this.permissionsService.hasPermission(a.only),this.rolesService.hasOnlyRoles(a.only)]).then(([s,l])=>s||l?!0:(a.redirectTo&&this.redirectToAnotherRoute(a.redirectTo,r,o),!1))}passingOnlyPermissionsValidation(i,r,o){return io(i.redirectTo)||FS(i.redirectTo)&&!this.isRedirectionWithParameters(i.redirectTo)?this.onlyRedirectCheck(i,r,o):this.checkOnlyPermissions(i,r,o)}};n.\u0275fac=function(r){return new(r||n)(pe(_u),pe(Th),pe(Re))},n.\u0275prov=O({token:n,factory:n.\u0275fac});let t=n;return t})();var xc=(()=>{let n=class n{static forRoot(i={}){return{ngModule:n,providers:[nj,Tx,tj,_u,ej,Th,LS,{provide:VS,useValue:i.permissionsIsolate},{provide:BS,useValue:i.rolesIsolate},{provide:NS,useValue:i.configurationIsolate}]}}static forChild(i={}){return{ngModule:n,providers:[{provide:VS,useValue:i.permissionsIsolate},{provide:BS,useValue:i.rolesIsolate},{provide:NS,useValue:i.configurationIsolate},LS,_u,Th,ej]}}};n.\u0275fac=function(r){return new(r||n)},n.\u0275mod=ee({type:n}),n.\u0275inj=J({});let t=n;return t})();function Ng(t){return t+.5|0}var Cc=(t,n,e)=>Math.max(Math.min(t,e),n);function Pg(t){return Cc(Ng(t*2.55),0,255)}function wc(t){return Cc(Ng(t*255),0,255)}function pl(t){return Cc(Ng(t/2.55)/100,0,1)}function rj(t){return Cc(Ng(t*100),0,100)}var na={0:0,1:1,2:2,3:3,4:4,5:5,6:6,7:7,8:8,9:9,A:10,B:11,C:12,D:13,E:14,F:15,a:10,b:11,c:12,d:13,e:14,f:15},zS=[..."0123456789ABCDEF"],tne=t=>zS[t&15],ine=t=>zS[(t&240)>>4]+zS[t&15],Ix=t=>(t&240)>>4===(t&15),nne=t=>Ix(t.r)&&Ix(t.g)&&Ix(t.b)&&Ix(t.a);function rne(t){var n=t.length,e;return t[0]==="#"&&(n===4||n===5?e={r:255&na[t[1]]*17,g:255&na[t[2]]*17,b:255&na[t[3]]*17,a:n===5?na[t[4]]*17:255}:(n===7||n===9)&&(e={r:na[t[1]]<<4|na[t[2]],g:na[t[3]]<<4|na[t[4]],b:na[t[5]]<<4|na[t[6]],a:n===9?na[t[7]]<<4|na[t[8]]:255})),e}var one=(t,n)=>t<255?n(t):"";function ane(t){var n=nne(t)?tne:ine;return t?"#"+n(t.r)+n(t.g)+n(t.b)+one(t.a,n):void 0}var sne=/^(hsla?|hwb|hsv)\(\s*([-+.e\d]+)(?:deg)?[\s,]+([-+.e\d]+)%[\s,]+([-+.e\d]+)%(?:[\s,]+([-+.e\d]+)(%)?)?\s*\)$/;function lj(t,n,e){let i=n*Math.min(e,1-e),r=(o,a=(o+t/30)%12)=>e-i*Math.max(Math.min(a-3,9-a,1),-1);return[r(0),r(8),r(4)]}function lne(t,n,e){let i=(r,o=(r+t/60)%6)=>e-e*n*Math.max(Math.min(o,4-o,1),0);return[i(5),i(3),i(1)]}function cne(t,n,e){let i=lj(t,1,.5),r;for(n+e>1&&(r=1/(n+e),n*=r,e*=r),r=0;r<3;r++)i[r]*=1-n-e,i[r]+=n;return i}function dne(t,n,e,i,r){return t===r?(n-e)/i+(n.5?d/(2-o-a):d/(o+a),l=dne(e,i,r,d,o),l=l*60+.5),[l|0,c||0,s]}function $S(t,n,e,i){return(Array.isArray(n)?t(n[0],n[1],n[2]):t(n,e,i)).map(wc)}function WS(t,n,e){return $S(lj,t,n,e)}function une(t,n,e){return $S(cne,t,n,e)}function mne(t,n,e){return $S(lne,t,n,e)}function cj(t){return(t%360+360)%360}function hne(t){let n=sne.exec(t),e=255,i;if(!n)return;n[5]!==i&&(e=n[6]?Pg(+n[5]):wc(+n[5]));let r=cj(+n[2]),o=+n[3]/100,a=+n[4]/100;return n[1]==="hwb"?i=une(r,o,a):n[1]==="hsv"?i=mne(r,o,a):i=WS(r,o,a),{r:i[0],g:i[1],b:i[2],a:e}}function pne(t,n){var e=US(t);e[0]=cj(e[0]+n),e=WS(e),t.r=e[0],t.g=e[1],t.b=e[2]}function fne(t){if(!t)return;let n=US(t),e=n[0],i=rj(n[1]),r=rj(n[2]);return t.a<255?`hsla(${e}, ${i}%, ${r}%, ${pl(t.a)})`:`hsl(${e}, ${i}%, ${r}%)`}var oj={x:"dark",Z:"light",Y:"re",X:"blu",W:"gr",V:"medium",U:"slate",A:"ee",T:"ol",S:"or",B:"ra",C:"lateg",D:"ights",R:"in",Q:"turquois",E:"hi",P:"ro",O:"al",N:"le",M:"de",L:"yello",F:"en",K:"ch",G:"arks",H:"ea",I:"ightg",J:"wh"},aj={OiceXe:"f0f8ff",antiquewEte:"faebd7",aqua:"ffff",aquamarRe:"7fffd4",azuY:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"0",blanKedOmond:"ffebcd",Xe:"ff",XeviTet:"8a2be2",bPwn:"a52a2a",burlywood:"deb887",caMtXe:"5f9ea0",KartYuse:"7fff00",KocTate:"d2691e",cSO:"ff7f50",cSnflowerXe:"6495ed",cSnsilk:"fff8dc",crimson:"dc143c",cyan:"ffff",xXe:"8b",xcyan:"8b8b",xgTMnPd:"b8860b",xWay:"a9a9a9",xgYF:"6400",xgYy:"a9a9a9",xkhaki:"bdb76b",xmagFta:"8b008b",xTivegYF:"556b2f",xSange:"ff8c00",xScEd:"9932cc",xYd:"8b0000",xsOmon:"e9967a",xsHgYF:"8fbc8f",xUXe:"483d8b",xUWay:"2f4f4f",xUgYy:"2f4f4f",xQe:"ced1",xviTet:"9400d3",dAppRk:"ff1493",dApskyXe:"bfff",dimWay:"696969",dimgYy:"696969",dodgerXe:"1e90ff",fiYbrick:"b22222",flSOwEte:"fffaf0",foYstWAn:"228b22",fuKsia:"ff00ff",gaRsbSo:"dcdcdc",ghostwEte:"f8f8ff",gTd:"ffd700",gTMnPd:"daa520",Way:"808080",gYF:"8000",gYFLw:"adff2f",gYy:"808080",honeyMw:"f0fff0",hotpRk:"ff69b4",RdianYd:"cd5c5c",Rdigo:"4b0082",ivSy:"fffff0",khaki:"f0e68c",lavFMr:"e6e6fa",lavFMrXsh:"fff0f5",lawngYF:"7cfc00",NmoncEffon:"fffacd",ZXe:"add8e6",ZcSO:"f08080",Zcyan:"e0ffff",ZgTMnPdLw:"fafad2",ZWay:"d3d3d3",ZgYF:"90ee90",ZgYy:"d3d3d3",ZpRk:"ffb6c1",ZsOmon:"ffa07a",ZsHgYF:"20b2aa",ZskyXe:"87cefa",ZUWay:"778899",ZUgYy:"778899",ZstAlXe:"b0c4de",ZLw:"ffffe0",lime:"ff00",limegYF:"32cd32",lRF:"faf0e6",magFta:"ff00ff",maPon:"800000",VaquamarRe:"66cdaa",VXe:"cd",VScEd:"ba55d3",VpurpN:"9370db",VsHgYF:"3cb371",VUXe:"7b68ee",VsprRggYF:"fa9a",VQe:"48d1cc",VviTetYd:"c71585",midnightXe:"191970",mRtcYam:"f5fffa",mistyPse:"ffe4e1",moccasR:"ffe4b5",navajowEte:"ffdead",navy:"80",Tdlace:"fdf5e6",Tive:"808000",TivedBb:"6b8e23",Sange:"ffa500",SangeYd:"ff4500",ScEd:"da70d6",pOegTMnPd:"eee8aa",pOegYF:"98fb98",pOeQe:"afeeee",pOeviTetYd:"db7093",papayawEp:"ffefd5",pHKpuff:"ffdab9",peru:"cd853f",pRk:"ffc0cb",plum:"dda0dd",powMrXe:"b0e0e6",purpN:"800080",YbeccapurpN:"663399",Yd:"ff0000",Psybrown:"bc8f8f",PyOXe:"4169e1",saddNbPwn:"8b4513",sOmon:"fa8072",sandybPwn:"f4a460",sHgYF:"2e8b57",sHshell:"fff5ee",siFna:"a0522d",silver:"c0c0c0",skyXe:"87ceeb",UXe:"6a5acd",UWay:"708090",UgYy:"708090",snow:"fffafa",sprRggYF:"ff7f",stAlXe:"4682b4",tan:"d2b48c",teO:"8080",tEstN:"d8bfd8",tomato:"ff6347",Qe:"40e0d0",viTet:"ee82ee",JHt:"f5deb3",wEte:"ffffff",wEtesmoke:"f5f5f5",Lw:"ffff00",LwgYF:"9acd32"};function gne(){let t={},n=Object.keys(aj),e=Object.keys(oj),i,r,o,a,s;for(i=0;i>16&255,o>>8&255,o&255]}return t}var Ax;function _ne(t){Ax||(Ax=gne(),Ax.transparent=[0,0,0,0]);let n=Ax[t.toLowerCase()];return n&&{r:n[0],g:n[1],b:n[2],a:n.length===4?n[3]:255}}var bne=/^rgba?\(\s*([-+.\d]+)(%)?[\s,]+([-+.e\d]+)(%)?[\s,]+([-+.e\d]+)(%)?(?:[\s,/]+([-+.e\d]+)(%)?)?\s*\)$/;function vne(t){let n=bne.exec(t),e=255,i,r,o;if(n){if(n[7]!==i){let a=+n[7];e=n[8]?Pg(a):Cc(a*255,0,255)}return i=+n[1],r=+n[3],o=+n[5],i=255&(n[2]?Pg(i):Cc(i,0,255)),r=255&(n[4]?Pg(r):Cc(r,0,255)),o=255&(n[6]?Pg(o):Cc(o,0,255)),{r:i,g:r,b:o,a:e}}}function yne(t){return t&&(t.a<255?`rgba(${t.r}, ${t.g}, ${t.b}, ${pl(t.a)})`:`rgb(${t.r}, ${t.g}, ${t.b})`)}var HS=t=>t<=.0031308?t*12.92:Math.pow(t,1/2.4)*1.055-.055,Ah=t=>t<=.04045?t/12.92:Math.pow((t+.055)/1.055,2.4);function xne(t,n,e){let i=Ah(pl(t.r)),r=Ah(pl(t.g)),o=Ah(pl(t.b));return{r:wc(HS(i+e*(Ah(pl(n.r))-i))),g:wc(HS(r+e*(Ah(pl(n.g))-r))),b:wc(HS(o+e*(Ah(pl(n.b))-o))),a:t.a+e*(n.a-t.a)}}function Ox(t,n,e){if(t){let i=US(t);i[n]=Math.max(0,Math.min(i[n]+i[n]*e,n===0?360:1)),i=WS(i),t.r=i[0],t.g=i[1],t.b=i[2]}}function dj(t,n){return t&&Object.assign(n||{},t)}function sj(t){var n={r:0,g:0,b:0,a:255};return Array.isArray(t)?t.length>=3&&(n={r:t[0],g:t[1],b:t[2],a:255},t.length>3&&(n.a=wc(t[3]))):(n=dj(t,{r:0,g:0,b:0,a:1}),n.a=wc(n.a)),n}function Cne(t){return t.charAt(0)==="r"?vne(t):hne(t)}var Fg=class t{constructor(n){if(n instanceof t)return n;let e=typeof n,i;e==="object"?i=sj(n):e==="string"&&(i=rne(n)||_ne(n)||Cne(n)),this._rgb=i,this._valid=!!i}get valid(){return this._valid}get rgb(){var n=dj(this._rgb);return n&&(n.a=pl(n.a)),n}set rgb(n){this._rgb=sj(n)}rgbString(){return this._valid?yne(this._rgb):void 0}hexString(){return this._valid?ane(this._rgb):void 0}hslString(){return this._valid?fne(this._rgb):void 0}mix(n,e){if(n){let i=this.rgb,r=n.rgb,o,a=e===o?.5:e,s=2*a-1,l=i.a-r.a,c=((s*l===-1?s:(s+l)/(1+s*l))+1)/2;o=1-c,i.r=255&c*i.r+o*r.r+.5,i.g=255&c*i.g+o*r.g+.5,i.b=255&c*i.b+o*r.b+.5,i.a=a*i.a+(1-a)*r.a,this.rgb=i}return this}interpolate(n,e){return n&&(this._rgb=xne(this._rgb,n._rgb,e)),this}clone(){return new t(this.rgb)}alpha(n){return this._rgb.a=wc(n),this}clearer(n){let e=this._rgb;return e.a*=1-n,this}greyscale(){let n=this._rgb,e=Ng(n.r*.3+n.g*.59+n.b*.11);return n.r=n.g=n.b=e,this}opaquer(n){let e=this._rgb;return e.a*=1+n,this}negate(){let n=this._rgb;return n.r=255-n.r,n.g=255-n.g,n.b=255-n.b,this}lighten(n){return Ox(this._rgb,2,n),this}darken(n){return Ox(this._rgb,2,-n),this}saturate(n){return Ox(this._rgb,1,n),this}desaturate(n){return Ox(this._rgb,1,-n),this}rotate(n){return pne(this._rgb,n),this}};function Ts(){}var xj=(()=>{let t=0;return()=>t++})();function Et(t){return t==null}function Ei(t){if(Array.isArray&&Array.isArray(t))return!0;let n=Object.prototype.toString.call(t);return n.slice(0,7)==="[object"&&n.slice(-6)==="Array]"}function St(t){return t!==null&&Object.prototype.toString.call(t)==="[object Object]"}function Gi(t){return(typeof t=="number"||t instanceof Number)&&isFinite(+t)}function no(t,n){return Gi(t)?t:n}function st(t,n){return typeof t>"u"?n:t}var Cj=(t,n)=>typeof t=="string"&&t.endsWith("%")?parseFloat(t)/100:+t/n,QS=(t,n)=>typeof t=="string"&&t.endsWith("%")?parseFloat(t)/100*n:+t;function yi(t,n,e){if(t&&typeof t.call=="function")return t.apply(e,n)}function ii(t,n,e,i){let r,o,a;if(Ei(t))if(o=t.length,i)for(r=o-1;r>=0;r--)n.call(e,t[r],r);else for(r=0;rt,x:t=>t.x,y:t=>t.y};function Ene(t){let n=t.split("."),e=[],i="";for(let r of n)i+=r,i.endsWith("\\")?i=i.slice(0,-1)+".":(e.push(i),i="");return e}function Mne(t){let n=Ene(t);return e=>{for(let i of n){if(i==="")break;e=e&&e[i]}return e}}function _l(t,n){return(uj[n]||(uj[n]=Mne(n)))(t)}function jx(t){return t.charAt(0).toUpperCase()+t.slice(1)}var Nh=t=>typeof t<"u",fl=t=>typeof t=="function",KS=(t,n)=>{if(t.size!==n.size)return!1;for(let e of t)if(!n.has(e))return!1;return!0};function Dj(t){return t.type==="mouseup"||t.type==="click"||t.type==="contextmenu"}var Ht=Math.PI,Mi=2*Ht,kne=Mi+Ht,Lx=Number.POSITIVE_INFINITY,Sne=Ht/180,Zi=Ht/2,bu=Ht/4,mj=Ht*2/3,gl=Math.log10,Ba=Math.sign;function Lh(t,n,e){return Math.abs(t-n)r-o).pop(),n}function Tne(t){return typeof t=="symbol"||typeof t=="object"&&t!==null&&!(Symbol.toPrimitive in t||"toString"in t||"valueOf"in t)}function xu(t){return!Tne(t)&&!isNaN(parseFloat(t))&&isFinite(t)}function Mj(t,n){let e=Math.round(t);return e-n<=t&&e+n>=t}function XS(t,n,e){let i,r,o;for(i=0,r=t.length;il&&c=Math.min(n,e)-i&&t<=Math.max(n,e)+i}function zx(t,n,e){e=e||(a=>t[a]1;)o=r+i>>1,e(o)?r=o:i=o;return{lo:r,hi:i}}var ks=(t,n,e,i)=>zx(t,e,i?r=>{let o=t[r][n];return ot[r][n]zx(t,e,i=>t[i][n]>=e);function Tj(t,n,e){let i=0,r=t.length;for(;ii&&t[r-1]>e;)r--;return i>0||r{let i="_onData"+jx(e),r=t[e];Object.defineProperty(t,e,{configurable:!0,enumerable:!1,value(...o){let a=r.apply(this,o);return t._chartjs.listeners.forEach(s=>{typeof s[i]=="function"&&s[i](...o)}),a}})})}function tT(t,n){let e=t._chartjs;if(!e)return;let i=e.listeners,r=i.indexOf(n);r!==-1&&i.splice(r,1),!(i.length>0)&&(Ij.forEach(o=>{delete t[o]}),delete t._chartjs)}function iT(t){let n=new Set(t);return n.size===t.length?t:Array.from(n)}var nT=(function(){return typeof window>"u"?function(t){return t()}:window.requestAnimationFrame})();function rT(t,n){let e=[],i=!1;return function(...r){e=r,i||(i=!0,nT.call(window,()=>{i=!1,t.apply(n,e)}))}}function Oj(t,n){let e;return function(...i){return n?(clearTimeout(e),e=setTimeout(t,n,i)):t.apply(this,i),n}}var Ux=t=>t==="start"?"left":t==="end"?"right":"center",ar=(t,n,e)=>t==="start"?n:t==="end"?e:(n+e)/2,Rj=(t,n,e,i)=>t===(i?"left":"right")?e:t==="center"?(n+e)/2:n;function oT(t,n,e){let i=n.length,r=0,o=i;if(t._sorted){let{iScale:a,vScale:s,_parsed:l}=t,c=t.dataset&&t.dataset.options?t.dataset.options.spanGaps:null,d=a.axis,{min:m,max:f,minDefined:b,maxDefined:v}=a.getUserBounds();if(b){if(r=Math.min(ks(l,d,m).lo,e?i:ks(n,d,a.getPixelForValue(m)).lo),c){let w=l.slice(0,r+1).reverse().findIndex(x=>!Et(x[s.axis]));r-=Math.max(0,w)}r=Dn(r,0,i-1)}if(v){let w=Math.max(ks(l,a.axis,f,!0).hi+1,e?0:ks(n,d,a.getPixelForValue(f),!0).hi+1);if(c){let x=l.slice(w-1).findIndex(D=>!Et(D[s.axis]));w+=Math.max(0,x)}o=Dn(w,r,i)-r}else o=i-r}return{start:r,count:o}}function aT(t){let{xScale:n,yScale:e,_scaleRanges:i}=t,r={xmin:n.min,xmax:n.max,ymin:e.min,ymax:e.max};if(!i)return t._scaleRanges=r,!0;let o=i.xmin!==n.min||i.xmax!==n.max||i.ymin!==e.min||i.ymax!==e.max;return Object.assign(i,r),o}var Rx=t=>t===0||t===1,hj=(t,n,e)=>-(Math.pow(2,10*(t-=1))*Math.sin((t-n)*Mi/e)),pj=(t,n,e)=>Math.pow(2,-10*t)*Math.sin((t-n)*Mi/e)+1,Oh={linear:t=>t,easeInQuad:t=>t*t,easeOutQuad:t=>-t*(t-2),easeInOutQuad:t=>(t/=.5)<1?.5*t*t:-.5*(--t*(t-2)-1),easeInCubic:t=>t*t*t,easeOutCubic:t=>(t-=1)*t*t+1,easeInOutCubic:t=>(t/=.5)<1?.5*t*t*t:.5*((t-=2)*t*t+2),easeInQuart:t=>t*t*t*t,easeOutQuart:t=>-((t-=1)*t*t*t-1),easeInOutQuart:t=>(t/=.5)<1?.5*t*t*t*t:-.5*((t-=2)*t*t*t-2),easeInQuint:t=>t*t*t*t*t,easeOutQuint:t=>(t-=1)*t*t*t*t+1,easeInOutQuint:t=>(t/=.5)<1?.5*t*t*t*t*t:.5*((t-=2)*t*t*t*t+2),easeInSine:t=>-Math.cos(t*Zi)+1,easeOutSine:t=>Math.sin(t*Zi),easeInOutSine:t=>-.5*(Math.cos(Ht*t)-1),easeInExpo:t=>t===0?0:Math.pow(2,10*(t-1)),easeOutExpo:t=>t===1?1:-Math.pow(2,-10*t)+1,easeInOutExpo:t=>Rx(t)?t:t<.5?.5*Math.pow(2,10*(t*2-1)):.5*(-Math.pow(2,-10*(t*2-1))+2),easeInCirc:t=>t>=1?t:-(Math.sqrt(1-t*t)-1),easeOutCirc:t=>Math.sqrt(1-(t-=1)*t),easeInOutCirc:t=>(t/=.5)<1?-.5*(Math.sqrt(1-t*t)-1):.5*(Math.sqrt(1-(t-=2)*t)+1),easeInElastic:t=>Rx(t)?t:hj(t,.075,.3),easeOutElastic:t=>Rx(t)?t:pj(t,.075,.3),easeInOutElastic(t){return Rx(t)?t:t<.5?.5*hj(t*2,.1125,.45):.5+.5*pj(t*2-1,.1125,.45)},easeInBack(t){return t*t*((1.70158+1)*t-1.70158)},easeOutBack(t){return(t-=1)*t*((1.70158+1)*t+1.70158)+1},easeInOutBack(t){let n=1.70158;return(t/=.5)<1?.5*(t*t*(((n*=1.525)+1)*t-n)):.5*((t-=2)*t*(((n*=1.525)+1)*t+n)+2)},easeInBounce:t=>1-Oh.easeOutBounce(1-t),easeOutBounce(t){return t<1/2.75?7.5625*t*t:t<2/2.75?7.5625*(t-=1.5/2.75)*t+.75:t<2.5/2.75?7.5625*(t-=2.25/2.75)*t+.9375:7.5625*(t-=2.625/2.75)*t+.984375},easeInOutBounce:t=>t<.5?Oh.easeInBounce(t*2)*.5:Oh.easeOutBounce(t*2-1)*.5+.5};function sT(t){if(t&&typeof t=="object"){let n=t.toString();return n==="[object CanvasPattern]"||n==="[object CanvasGradient]"}return!1}function lT(t){return sT(t)?t:new Fg(t)}function GS(t){return sT(t)?t:new Fg(t).saturate(.5).darken(.1).hexString()}var Ane=["x","y","borderWidth","radius","tension"],One=["color","borderColor","backgroundColor"];function Rne(t){t.set("animation",{delay:void 0,duration:1e3,easing:"easeOutQuart",fn:void 0,from:void 0,loop:void 0,to:void 0,type:void 0}),t.describe("animation",{_fallback:!1,_indexable:!1,_scriptable:n=>n!=="onProgress"&&n!=="onComplete"&&n!=="fn"}),t.set("animations",{colors:{type:"color",properties:One},numbers:{type:"number",properties:Ane}}),t.describe("animations",{_fallback:"animation"}),t.set("transitions",{active:{animation:{duration:400}},resize:{animation:{duration:0}},show:{animations:{colors:{from:"transparent"},visible:{type:"boolean",duration:0}}},hide:{animations:{colors:{to:"transparent"},visible:{type:"boolean",easing:"linear",fn:n=>n|0}}}})}function Pne(t){t.set("layout",{autoPadding:!0,padding:{top:0,right:0,bottom:0,left:0}})}var fj=new Map;function Fne(t,n){n=n||{};let e=t+JSON.stringify(n),i=fj.get(e);return i||(i=new Intl.NumberFormat(t,n),fj.set(e,i)),i}function Bh(t,n,e){return Fne(n,e).format(t)}var Pj={values(t){return Ei(t)?t:""+t},numeric(t,n,e){if(t===0)return"0";let i=this.chart.options.locale,r,o=t;if(e.length>1){let c=Math.max(Math.abs(e[0].value),Math.abs(e[e.length-1].value));(c<1e-4||c>1e15)&&(r="scientific"),o=Nne(t,e)}let a=gl(Math.abs(o)),s=isNaN(a)?1:Math.max(Math.min(-1*Math.floor(a),20),0),l={notation:r,minimumFractionDigits:s,maximumFractionDigits:s};return Object.assign(l,this.options.ticks.format),Bh(t,i,l)},logarithmic(t,n,e){if(t===0)return"0";let i=e[n].significand||t/Math.pow(10,Math.floor(gl(t)));return[1,2,3,5,10,15].includes(i)||n>.8*e.length?Pj.numeric.call(this,t,n,e):""}};function Nne(t,n){let e=n.length>3?n[2].value-n[1].value:n[1].value-n[0].value;return Math.abs(e)>=1&&t!==Math.floor(t)&&(e=t-Math.floor(t)),e}var jg={formatters:Pj};function Lne(t){t.set("scale",{display:!0,offset:!1,reverse:!1,beginAtZero:!1,bounds:"ticks",clip:!0,grace:0,grid:{display:!0,lineWidth:1,drawOnChartArea:!0,drawTicks:!0,tickLength:8,tickWidth:(n,e)=>e.lineWidth,tickColor:(n,e)=>e.color,offset:!1},border:{display:!0,dash:[],dashOffset:0,width:1},title:{display:!1,text:"",padding:{top:4,bottom:4}},ticks:{minRotation:0,maxRotation:50,mirror:!1,textStrokeWidth:0,textStrokeColor:"",padding:3,display:!0,autoSkip:!0,autoSkipPadding:3,labelOffset:0,callback:jg.formatters.values,minor:{},major:{},align:"center",crossAlign:"near",showLabelBackdrop:!1,backdropColor:"rgba(255, 255, 255, 0.75)",backdropPadding:2}}),t.route("scale.ticks","color","","color"),t.route("scale.grid","color","","borderColor"),t.route("scale.border","color","","borderColor"),t.route("scale.title","color","","color"),t.describe("scale",{_fallback:!1,_scriptable:n=>!n.startsWith("before")&&!n.startsWith("after")&&n!=="callback"&&n!=="parser",_indexable:n=>n!=="borderDash"&&n!=="tickBorderDash"&&n!=="dash"}),t.describe("scales",{_fallback:"scale"}),t.describe("scale.ticks",{_scriptable:n=>n!=="backdropPadding"&&n!=="callback",_indexable:n=>n!=="backdropPadding"})}var Mc=Object.create(null),$x=Object.create(null);function Lg(t,n){if(!n)return t;let e=n.split(".");for(let i=0,r=e.length;ii.chart.platform.getDevicePixelRatio(),this.elements={},this.events=["mousemove","mouseout","click","touchstart","touchmove"],this.font={family:"'Helvetica Neue', 'Helvetica', 'Arial', sans-serif",size:12,style:"normal",lineHeight:1.2,weight:null},this.hover={},this.hoverBackgroundColor=(i,r)=>GS(r.backgroundColor),this.hoverBorderColor=(i,r)=>GS(r.borderColor),this.hoverColor=(i,r)=>GS(r.color),this.indexAxis="x",this.interaction={mode:"nearest",intersect:!0,includeInvisible:!1},this.maintainAspectRatio=!0,this.onHover=null,this.onClick=null,this.parsing=!0,this.plugins={},this.responsive=!0,this.scale=void 0,this.scales={},this.showLine=!0,this.drawActiveElementsOnTop=!0,this.describe(n),this.apply(e)}set(n,e){return qS(this,n,e)}get(n){return Lg(this,n)}describe(n,e){return qS($x,n,e)}override(n,e){return qS(Mc,n,e)}route(n,e,i,r){let o=Lg(this,n),a=Lg(this,i),s="_"+e;Object.defineProperties(o,{[s]:{value:o[e],writable:!0},[e]:{enumerable:!0,get(){let l=this[s],c=a[r];return St(l)?Object.assign({},c,l):st(l,c)},set(l){this[s]=l}}})}apply(n){n.forEach(e=>e(this))}},xi=new YS({_scriptable:t=>!t.startsWith("on"),_indexable:t=>t!=="events",hover:{_fallback:"interaction"},interaction:{_scriptable:!1,_indexable:!1}},[Rne,Pne,Lne]);function Vne(t){return!t||Et(t.size)||Et(t.family)?null:(t.style?t.style+" ":"")+(t.weight?t.weight+" ":"")+t.size+"px "+t.family}function Vg(t,n,e,i,r){let o=n[r];return o||(o=n[r]=t.measureText(r).width,e.push(r)),o>i&&(i=o),i}function Fj(t,n,e,i){i=i||{};let r=i.data=i.data||{},o=i.garbageCollect=i.garbageCollect||[];i.font!==n&&(r=i.data={},o=i.garbageCollect=[],i.font=n),t.save(),t.font=n;let a=0,s=e.length,l,c,d,m,f;for(l=0;le.length){for(l=0;l0&&t.stroke()}}function Ss(t,n,e){return e=e||.5,!n||t&&t.x>n.left-e&&t.xn.top-e&&t.y0&&o.strokeColor!=="",l,c;for(t.save(),t.font=r.string,Bne(t,o),l=0;l+t||0;function Gx(t,n){let e={},i=St(n),r=i?Object.keys(n):n,o=St(t)?i?a=>st(t[a],t[n[a]]):a=>t[a]:()=>t;for(let a of r)e[a]=Wne(o(a));return e}function uT(t){return Gx(t,{top:"y",right:"x",bottom:"y",left:"x"})}function Tc(t){return Gx(t,["topLeft","topRight","bottomLeft","bottomRight"])}function sr(t){let n=uT(t);return n.width=n.left+n.right,n.height=n.top+n.bottom,n}function pn(t,n){t=t||{},n=n||xi.font;let e=st(t.size,n.size);typeof e=="string"&&(e=parseInt(e,10));let i=st(t.style,n.style);i&&!(""+i).match(Une)&&(console.warn('Invalid font style specified: "'+i+'"'),i=void 0);let r={family:st(t.family,n.family),lineHeight:$ne(st(t.lineHeight,n.lineHeight),e),size:e,style:i,weight:st(t.weight,n.weight),string:""};return r.string=Vne(r),r}function Hh(t,n,e,i){let r=!0,o,a,s;for(o=0,a=t.length;oe&&s===0?0:s+l;return{min:a(i,-Math.abs(o)),max:a(r,o)}}function bl(t,n){return Object.assign(Object.create(t),n)}function qx(t,n=[""],e,i,r=()=>t[0]){let o=e||t;typeof i>"u"&&(i=Hj("_fallback",t));let a={[Symbol.toStringTag]:"Object",_cacheable:!0,_scopes:t,_rootScopes:o,_fallback:i,_getTarget:r,override:s=>qx([s,...t],n,o,i)};return new Proxy(a,{deleteProperty(s,l){return delete s[l],delete s._keys,delete t[0][l],!0},get(s,l){return Bj(s,l,()=>Jne(l,n,t,s))},getOwnPropertyDescriptor(s,l){return Reflect.getOwnPropertyDescriptor(s._scopes[0],l)},getPrototypeOf(){return Reflect.getPrototypeOf(t[0])},has(s,l){return _j(s).includes(l)},ownKeys(s){return _j(s)},set(s,l,c){let d=s._storage||(s._storage=r());return s[l]=d[l]=c,delete s._keys,!0}})}function yu(t,n,e,i){let r={_cacheable:!1,_proxy:t,_context:n,_subProxy:e,_stack:new Set,_descriptors:mT(t,i),setContext:o=>yu(t,o,e,i),override:o=>yu(t.override(o),n,e,i)};return new Proxy(r,{deleteProperty(o,a){return delete o[a],delete t[a],!0},get(o,a,s){return Bj(o,a,()=>qne(o,a,s))},getOwnPropertyDescriptor(o,a){return o._descriptors.allKeys?Reflect.has(t,a)?{enumerable:!0,configurable:!0}:void 0:Reflect.getOwnPropertyDescriptor(t,a)},getPrototypeOf(){return Reflect.getPrototypeOf(t)},has(o,a){return Reflect.has(t,a)},ownKeys(){return Reflect.ownKeys(t)},set(o,a,s){return t[a]=s,delete o[a],!0}})}function mT(t,n={scriptable:!0,indexable:!0}){let{_scriptable:e=n.scriptable,_indexable:i=n.indexable,_allKeys:r=n.allKeys}=t;return{allKeys:r,scriptable:e,indexable:i,isScriptable:fl(e)?e:()=>e,isIndexable:fl(i)?i:()=>i}}var Gne=(t,n)=>t?t+jx(n):n,hT=(t,n)=>St(n)&&t!=="adapters"&&(Object.getPrototypeOf(n)===null||n.constructor===Object);function Bj(t,n,e){if(Object.prototype.hasOwnProperty.call(t,n)||n==="constructor")return t[n];let i=e();return t[n]=i,i}function qne(t,n,e){let{_proxy:i,_context:r,_subProxy:o,_descriptors:a}=t,s=i[n];return fl(s)&&a.isScriptable(n)&&(s=Yne(n,s,t,e)),Ei(s)&&s.length&&(s=Qne(n,s,t,a.isIndexable)),hT(n,s)&&(s=yu(s,r,o&&o[n],a)),s}function Yne(t,n,e,i){let{_proxy:r,_context:o,_subProxy:a,_stack:s}=e;if(s.has(t))throw new Error("Recursion detected: "+Array.from(s).join("->")+"->"+t);s.add(t);let l=n(o,a||i);return s.delete(t),hT(t,l)&&(l=pT(r._scopes,r,t,l)),l}function Qne(t,n,e,i){let{_proxy:r,_context:o,_subProxy:a,_descriptors:s}=e;if(typeof o.index<"u"&&i(t))return n[o.index%n.length];if(St(n[0])){let l=n,c=r._scopes.filter(d=>d!==l);n=[];for(let d of l){let m=pT(c,r,t,d);n.push(yu(m,o,a&&a[t],s))}}return n}function jj(t,n,e){return fl(t)?t(n,e):t}var Kne=(t,n)=>t===!0?n:typeof t=="string"?_l(n,t):void 0;function Zne(t,n,e,i,r){for(let o of n){let a=Kne(e,o);if(a){t.add(a);let s=jj(a._fallback,e,r);if(typeof s<"u"&&s!==e&&s!==i)return s}else if(a===!1&&typeof i<"u"&&e!==i)return null}return!1}function pT(t,n,e,i){let r=n._rootScopes,o=jj(n._fallback,e,i),a=[...t,...r],s=new Set;s.add(i);let l=gj(s,a,e,o||e,i);return l===null||typeof o<"u"&&o!==e&&(l=gj(s,a,o,l,i),l===null)?!1:qx(Array.from(s),[""],r,o,()=>Xne(n,e,i))}function gj(t,n,e,i,r){for(;e;)e=Zne(t,n,e,i,r);return e}function Xne(t,n,e){let i=t._getTarget();n in i||(i[n]={});let r=i[n];return Ei(r)&&St(e)?e:r||{}}function Jne(t,n,e,i){let r;for(let o of n)if(r=Hj(Gne(o,t),e),typeof r<"u")return hT(t,r)?pT(e,i,t,r):r}function Hj(t,n){for(let e of n){if(!e)continue;let i=e[t];if(typeof i<"u")return i}}function _j(t){let n=t._keys;return n||(n=t._keys=ere(t._scopes)),n}function ere(t){let n=new Set;for(let e of t)for(let i of Object.keys(e).filter(r=>!r.startsWith("_")))n.add(i);return Array.from(n)}function fT(t,n,e,i){let{iScale:r}=t,{key:o="r"}=this._parsing,a=new Array(i),s,l,c,d;for(s=0,l=i;snt==="x"?"y":"x";function ire(t,n,e,i){let r=t.skip?n:t,o=n,a=e.skip?n:e,s=Vx(o,r),l=Vx(a,o),c=s/(s+l),d=l/(s+l);c=isNaN(c)?0:c,d=isNaN(d)?0:d;let m=i*c,f=i*d;return{previous:{x:o.x-m*(a.x-r.x),y:o.y-m*(a.y-r.y)},next:{x:o.x+f*(a.x-r.x),y:o.y+f*(a.y-r.y)}}}function nre(t,n,e){let i=t.length,r,o,a,s,l,c=Ph(t,0);for(let d=0;d!c.skip)),n.cubicInterpolationMode==="monotone")ore(t,r);else{let c=i?t[t.length-1]:t[0];for(o=0,a=t.length;ot.ownerDocument.defaultView.getComputedStyle(t,null);function sre(t,n){return Kx(t).getPropertyValue(n)}var lre=["top","right","bottom","left"];function vu(t,n,e){let i={};e=e?"-"+e:"";for(let r=0;r<4;r++){let o=lre[r];i[o]=parseFloat(t[n+"-"+o+e])||0}return i.width=i.left+i.right,i.height=i.top+i.bottom,i}var cre=(t,n,e)=>(t>0||n>0)&&(!e||!e.shadowRoot);function dre(t,n){let e=t.touches,i=e&&e.length?e[0]:t,{offsetX:r,offsetY:o}=i,a=!1,s,l;if(cre(r,o,t.target))s=r,l=o;else{let c=n.getBoundingClientRect();s=i.clientX-c.left,l=i.clientY-c.top,a=!0}return{x:s,y:l,box:a}}function Ic(t,n){if("native"in t)return t;let{canvas:e,currentDevicePixelRatio:i}=n,r=Kx(e),o=r.boxSizing==="border-box",a=vu(r,"padding"),s=vu(r,"border","width"),{x:l,y:c,box:d}=dre(t,e),m=a.left+(d&&s.left),f=a.top+(d&&s.top),{width:b,height:v}=n;return o&&(b-=a.width+s.width,v-=a.height+s.height),{x:Math.round((l-m)/b*e.width/i),y:Math.round((c-f)/v*e.height/i)}}function ure(t,n,e){let i,r;if(n===void 0||e===void 0){let o=t&&Qx(t);if(!o)n=t.clientWidth,e=t.clientHeight;else{let a=o.getBoundingClientRect(),s=Kx(o),l=vu(s,"border","width"),c=vu(s,"padding");n=a.width-c.width-l.width,e=a.height-c.height-l.height,i=Bx(s.maxWidth,o,"clientWidth"),r=Bx(s.maxHeight,o,"clientHeight")}}return{width:n,height:e,maxWidth:i||Lx,maxHeight:r||Lx}}var Ec=t=>Math.round(t*10)/10;function $j(t,n,e,i){let r=Kx(t),o=vu(r,"margin"),a=Bx(r.maxWidth,t,"clientWidth")||Lx,s=Bx(r.maxHeight,t,"clientHeight")||Lx,l=ure(t,n,e),{width:c,height:d}=l;if(r.boxSizing==="content-box"){let f=vu(r,"border","width"),b=vu(r,"padding");c-=b.width+f.width,d-=b.height+f.height}return c=Math.max(0,c-o.width),d=Math.max(0,i?c/i:d-o.height),c=Ec(Math.min(c,a,l.maxWidth)),d=Ec(Math.min(d,s,l.maxHeight)),c&&!d&&(d=Ec(c/2)),(n!==void 0||e!==void 0)&&i&&l.height&&d>l.height&&(d=l.height,c=Ec(Math.floor(d*i))),{width:c,height:d}}function gT(t,n,e){let i=n||1,r=Ec(t.height*i),o=Ec(t.width*i);t.height=Ec(t.height),t.width=Ec(t.width);let a=t.canvas;return a.style&&(e||!a.style.height&&!a.style.width)&&(a.style.height=`${t.height}px`,a.style.width=`${t.width}px`),t.currentDevicePixelRatio!==i||a.height!==r||a.width!==o?(t.currentDevicePixelRatio=i,a.height=r,a.width=o,t.ctx.setTransform(i,0,0,i,0,0),!0):!1}var Wj=(function(){let t=!1;try{let n={get passive(){return t=!0,!1}};Yx()&&(window.addEventListener("test",null,n),window.removeEventListener("test",null,n))}catch{}return t})();function _T(t,n){let e=sre(t,n),i=e&&e.match(/^(\d+)(\.\d+)?px$/);return i?+i[1]:void 0}function Dc(t,n,e,i){return{x:t.x+e*(n.x-t.x),y:t.y+e*(n.y-t.y)}}function Gj(t,n,e,i){return{x:t.x+e*(n.x-t.x),y:i==="middle"?e<.5?t.y:n.y:i==="after"?e<1?t.y:n.y:e>0?n.y:t.y}}function qj(t,n,e,i){let r={x:t.cp2x,y:t.cp2y},o={x:n.cp1x,y:n.cp1y},a=Dc(t,r,e),s=Dc(r,o,e),l=Dc(o,n,e),c=Dc(a,s,e),d=Dc(s,l,e);return Dc(c,d,e)}var mre=function(t,n){return{x(e){return t+t+n-e},setWidth(e){n=e},textAlign(e){return e==="center"?e:e==="right"?"left":"right"},xPlus(e,i){return e-i},leftForLtr(e,i){return e-i}}},hre=function(){return{x(t){return t},setWidth(t){},textAlign(t){return t},xPlus(t,n){return t+n},leftForLtr(t,n){return t}}};function Cu(t,n,e){return t?mre(n,e):hre()}function bT(t,n){let e,i;(n==="ltr"||n==="rtl")&&(e=t.canvas.style,i=[e.getPropertyValue("direction"),e.getPropertyPriority("direction")],e.setProperty("direction",n,"important"),t.prevTextDirection=i)}function vT(t,n){n!==void 0&&(delete t.prevTextDirection,t.canvas.style.setProperty("direction",n[0],n[1]))}function Yj(t){return t==="angle"?{between:Vh,compare:Ine,normalize:or}:{between:Is,compare:(n,e)=>n-e,normalize:n=>n}}function bj({start:t,end:n,count:e,loop:i,style:r}){return{start:t%e,end:n%e,loop:i&&(n-t+1)%e===0,style:r}}function pre(t,n,e){let{property:i,start:r,end:o}=e,{between:a,normalize:s}=Yj(i),l=n.length,{start:c,end:d,loop:m}=t,f,b;if(m){for(c+=l,d+=l,f=0,b=l;fl(r,W,D)&&s(r,W)!==0,K=()=>s(o,D)===0||l(o,W,D),re=()=>w||Z(),Ee=()=>!w||K();for(let be=d,Ve=d;be<=m;++be)P=n[be%a],!P.skip&&(D=c(P[i]),D!==W&&(w=l(D,r,o),x===null&&re()&&(x=s(D,r)===0?be:Ve),x!==null&&Ee()&&(v.push(bj({start:x,end:be,loop:f,count:a,style:b})),x=null),Ve=be,W=D));return x!==null&&v.push(bj({start:x,end:m,loop:f,count:a,style:b})),v}function xT(t,n){let e=[],i=t.segments;for(let r=0;rr&&t[o%n].skip;)o--;return o%=n,{start:r,end:o}}function gre(t,n,e,i){let r=t.length,o=[],a=n,s=t[n],l;for(l=n+1;l<=e;++l){let c=t[l%r];c.skip||c.stop?s.skip||(i=!1,o.push({start:n%r,end:(l-1)%r,loop:i}),n=a=c.stop?l:null):(a=l,s.skip&&(n=l)),s=c}return a!==null&&o.push({start:n%r,end:a%r,loop:i}),o}function Qj(t,n){let e=t.points,i=t.options.spanGaps,r=e.length;if(!r)return[];let o=!!t._loop,{start:a,end:s}=fre(e,r,o,i);if(i===!0)return vj(t,[{start:a,end:s,loop:o}],e,n);let l=ss({chart:n,initial:e.initial,numSteps:a,currentStep:Math.min(i-e.start,a)}))}_refresh(){this._request||(this._running=!0,this._request=nT.call(window,()=>{this._update(),this._request=null,this._running&&this._refresh()}))}_update(n=Date.now()){let e=0;this._charts.forEach((i,r)=>{if(!i.running||!i.items.length)return;let o=i.items,a=o.length-1,s=!1,l;for(;a>=0;--a)l=o[a],l._active?(l._total>i.duration&&(i.duration=l._total),l.tick(n),s=!0):(o[a]=o[o.length-1],o.pop());s&&(r.draw(),this._notify(r,i,n,"progress")),o.length||(i.running=!1,this._notify(r,i,n,"complete"),i.initial=!1),e+=o.length}),this._lastDate=n,e===0&&(this._running=!1)}_getAnims(n){let e=this._charts,i=e.get(n);return i||(i={running:!1,initial:!0,items:[],listeners:{complete:[],progress:[]}},e.set(n,i)),i}listen(n,e,i){this._getAnims(n).listeners[e].push(i)}add(n,e){!e||!e.length||this._getAnims(n).items.push(...e)}has(n){return this._getAnims(n).items.length>0}start(n){let e=this._charts.get(n);e&&(e.running=!0,e.start=Date.now(),e.duration=e.items.reduce((i,r)=>Math.max(i,r._duration),0),this._refresh())}running(n){if(!this._running)return!1;let e=this._charts.get(n);return!(!e||!e.running||!e.items.length)}stop(n){let e=this._charts.get(n);if(!e||!e.items.length)return;let i=e.items,r=i.length-1;for(;r>=0;--r)i[r].cancel();e.items=[],this._notify(n,e,Date.now(),"complete")}remove(n){return this._charts.delete(n)}},vl=new PT,Kj="transparent",yre={boolean(t,n,e){return e>.5?n:t},color(t,n,e){let i=lT(t||Kj),r=i.valid&&lT(n||Kj);return r&&r.valid?r.mix(i,e).hexString():n},number(t,n,e){return t+(n-t)*e}},FT=class{constructor(n,e,i,r){let o=e[i];r=Hh([n.to,r,o,n.from]);let a=Hh([n.from,o,r]);this._active=!0,this._fn=n.fn||yre[n.type||typeof a],this._easing=Oh[n.easing]||Oh.linear,this._start=Math.floor(Date.now()+(n.delay||0)),this._duration=this._total=Math.floor(n.duration),this._loop=!!n.loop,this._target=e,this._prop=i,this._from=a,this._to=r,this._promises=void 0}active(){return this._active}update(n,e,i){if(this._active){this._notify(!1);let r=this._target[this._prop],o=i-this._start,a=this._duration-o;this._start=i,this._duration=Math.floor(Math.max(a,n.duration)),this._total+=o,this._loop=!!n.loop,this._to=Hh([n.to,e,r,n.from]),this._from=Hh([n.from,r,e])}}cancel(){this._active&&(this.tick(Date.now()),this._active=!1,this._notify(!1))}tick(n){let e=n-this._start,i=this._duration,r=this._prop,o=this._from,a=this._loop,s=this._to,l;if(this._active=o!==s&&(a||e1?2-l:l,l=this._easing(Math.min(1,Math.max(0,l))),this._target[r]=this._fn(o,s,l)}wait(){let n=this._promises||(this._promises=[]);return new Promise((e,i)=>{n.push({res:e,rej:i})})}_notify(n){let e=n?"res":"rej",i=this._promises||[];for(let r=0;r{let o=n[r];if(!St(o))return;let a={};for(let s of e)a[s]=o[s];(Ei(o.properties)&&o.properties||[r]).forEach(s=>{(s===r||!i.has(s))&&i.set(s,a)})})}_animateOptions(n,e){let i=e.options,r=Cre(n,i);if(!r)return[];let o=this._createAnimations(r,i);return i.$shared&&xre(n.options.$animations,i).then(()=>{n.options=i},()=>{}),o}_createAnimations(n,e){let i=this._properties,r=[],o=n.$animations||(n.$animations={}),a=Object.keys(e),s=Date.now(),l;for(l=a.length-1;l>=0;--l){let c=a[l];if(c.charAt(0)==="$")continue;if(c==="options"){r.push(...this._animateOptions(n,e));continue}let d=e[c],m=o[c],f=i.get(c);if(m)if(f&&m.active()){m.update(f,d,s);continue}else m.cancel();if(!f||!f.duration){n[c]=d;continue}o[c]=m=new FT(f,n,c,d),r.push(m)}return r}update(n,e){if(this._properties.size===0){Object.assign(n,e);return}let i=this._createAnimations(n,e);if(i.length)return vl.add(this._chart,i),!0}};function xre(t,n){let e=[],i=Object.keys(n);for(let r=0;r0||!e&&o<0)return r.index}return null}function e4(t,n){let{chart:e,_cachedMeta:i}=t,r=e._stacks||(e._stacks={}),{iScale:o,vScale:a,index:s}=i,l=o.axis,c=a.axis,d=Mre(o,a,i),m=n.length,f;for(let b=0;be[i].axis===n).shift()}function Tre(t,n){return bl(t,{active:!1,dataset:void 0,datasetIndex:n,index:n,mode:"default",type:"dataset"})}function Ire(t,n,e){return bl(t,{active:!1,dataIndex:n,parsed:void 0,raw:void 0,element:e,index:n,mode:"default",type:"data"})}function Ug(t,n){let e=t.controller.index,i=t.vScale&&t.vScale.axis;if(i){n=n||t._parsed;for(let r of n){let o=r._stacks;if(!o||o[i]===void 0||o[i][e]===void 0)return;delete o[i][e],o[i]._visualValues!==void 0&&o[i]._visualValues[e]!==void 0&&delete o[i]._visualValues[e]}}}var ET=t=>t==="reset"||t==="none",t4=(t,n)=>n?t:Object.assign({},t),Are=(t,n,e)=>t&&!n.hidden&&n._stacked&&{keys:K4(e,!0),values:null},Oc=(()=>{class t{static defaults={};static datasetElementType=null;static dataElementType=null;constructor(e,i){this.chart=e,this._ctx=e.ctx,this.index=i,this._cachedDataOpts={},this._cachedMeta=this.getMeta(),this._type=this._cachedMeta.type,this.options=void 0,this._parsing=!1,this._data=void 0,this._objectData=void 0,this._sharedOptions=void 0,this._drawStart=void 0,this._drawCount=void 0,this.enableOptionSharing=!1,this.supportsDecimation=!1,this.$context=void 0,this._syncList=[],this.datasetElementType=new.target.datasetElementType,this.dataElementType=new.target.dataElementType,this.initialize()}initialize(){let e=this._cachedMeta;this.configure(),this.linkScales(),e._stacked=wT(e.vScale,e),this.addElements(),this.options.fill&&!this.chart.isPluginEnabled("filler")&&console.warn("Tried to use the 'fill' option without the 'Filler' plugin enabled. Please import and register the 'Filler' plugin and make sure it is not disabled in the options")}updateIndex(e){this.index!==e&&Ug(this._cachedMeta),this.index=e}linkScales(){let e=this.chart,i=this._cachedMeta,r=this.getDataset(),o=(f,b,v,w)=>f==="x"?b:f==="r"?w:v,a=i.xAxisID=st(r.xAxisID,DT(e,"x")),s=i.yAxisID=st(r.yAxisID,DT(e,"y")),l=i.rAxisID=st(r.rAxisID,DT(e,"r")),c=i.indexAxis,d=i.iAxisID=o(c,a,s,l),m=i.vAxisID=o(c,s,a,l);i.xScale=this.getScaleForId(a),i.yScale=this.getScaleForId(s),i.rScale=this.getScaleForId(l),i.iScale=this.getScaleForId(d),i.vScale=this.getScaleForId(m)}getDataset(){return this.chart.data.datasets[this.index]}getMeta(){return this.chart.getDatasetMeta(this.index)}getScaleForId(e){return this.chart.scales[e]}_getOtherScale(e){let i=this._cachedMeta;return e===i.iScale?i.vScale:i.iScale}reset(){this._update("reset")}_destroy(){let e=this._cachedMeta;this._data&&tT(this._data,this),e._stacked&&Ug(e)}_dataCheck(){let e=this.getDataset(),i=e.data||(e.data=[]),r=this._data;if(St(i)){let o=this._cachedMeta;this._data=Ere(i,o)}else if(r!==i){if(r){tT(r,this);let o=this._cachedMeta;Ug(o),o._parsed=[]}i&&Object.isExtensible(i)&&Aj(i,this),this._syncList=[],this._data=i}}addElements(){let e=this._cachedMeta;this._dataCheck(),this.datasetElementType&&(e.dataset=new this.datasetElementType)}buildOrUpdateElements(e){let i=this._cachedMeta,r=this.getDataset(),o=!1;this._dataCheck();let a=i._stacked;i._stacked=wT(i.vScale,i),i.stack!==r.stack&&(o=!0,Ug(i),i.stack=r.stack),this._resyncElements(e),(o||a!==i._stacked)&&(e4(this,i._parsed),i._stacked=wT(i.vScale,i))}configure(){let e=this.chart.config,i=e.datasetScopeKeys(this._type),r=e.getOptionScopes(this.getDataset(),i,!0);this.options=e.createResolver(r,this.getContext()),this._parsing=this.options.parsing,this._cachedDataOpts={}}parse(e,i){let{_cachedMeta:r,_data:o}=this,{iScale:a,_stacked:s}=r,l=a.axis,c=e===0&&i===o.length?!0:r._sorted,d=e>0&&r._parsed[e-1],m,f,b;if(this._parsing===!1)r._parsed=o,r._sorted=!0,b=o;else{Ei(o[e])?b=this.parseArrayData(r,o,e,i):St(o[e])?b=this.parseObjectData(r,o,e,i):b=this.parsePrimitiveData(r,o,e,i);let v=()=>f[l]===null||d&&f[l]x||f=0;--b)if(!w()){this.updateRangeFromParsed(d,e,v,c);break}}return d}getAllParsedValues(e){let i=this._cachedMeta._parsed,r=[],o,a,s;for(o=0,a=i.length;o=0&&ethis.getContext(r,o,i),x=d.resolveNamedOptions(b,v,w,f);return x.$shared&&(x.$shared=c,a[s]=Object.freeze(t4(x,c))),x}_resolveAnimations(e,i,r){let o=this.chart,a=this._cachedDataOpts,s=`animation-${i}`,l=a[s];if(l)return l;let c;if(o.options.animation!==!1){let m=this.chart.config,f=m.datasetAnimationScopeKeys(this._type,i),b=m.getOptionScopes(this.getDataset(),f);c=m.createResolver(b,this.getContext(e,r,i))}let d=new oC(o,c&&c.animations);return c&&c._cacheable&&(a[s]=Object.freeze(d)),d}getSharedOptions(e){if(e.$shared)return this._sharedOptions||(this._sharedOptions=Object.assign({},e))}includeOptions(e,i){return!i||ET(e)||this.chart._animationsDisabled}_getSharedOptions(e,i){let r=this.resolveDataElementOptions(e,i),o=this._sharedOptions,a=this.getSharedOptions(r),s=this.includeOptions(i,a)||a!==o;return this.updateSharedOptions(a,i,r),{sharedOptions:a,includeOptions:s}}updateElement(e,i,r,o){ET(o)?Object.assign(e,r):this._resolveAnimations(i,o).update(e,r)}updateSharedOptions(e,i,r){e&&!ET(i)&&this._resolveAnimations(void 0,i).update(e,r)}_setStyle(e,i,r,o){e.active=o;let a=this.getStyle(i,o);this._resolveAnimations(i,r,o).update(e,{options:!o&&this.getSharedOptions(a)||a})}removeHoverStyle(e,i,r){this._setStyle(e,r,"active",!1)}setHoverStyle(e,i,r){this._setStyle(e,r,"active",!0)}_removeDatasetHoverStyle(){let e=this._cachedMeta.dataset;e&&this._setStyle(e,void 0,"active",!1)}_setDatasetHoverStyle(){let e=this._cachedMeta.dataset;e&&this._setStyle(e,void 0,"active",!0)}_resyncElements(e){let i=this._data,r=this._cachedMeta.data;for(let[l,c,d]of this._syncList)this[l](c,d);this._syncList=[];let o=r.length,a=i.length,s=Math.min(a,o);s&&this.parse(0,s),a>o?this._insertElements(o,a-o,e):a{for(d.length+=i,l=d.length-1;l>=s;l--)d[l]=d[l-i]};for(c(a),l=e;lr-o))}return t._cache.$bar}function Rre(t){let n=t.iScale,e=Ore(n,t.type),i=n._length,r,o,a,s,l=()=>{a===32767||a===-32768||(Nh(s)&&(i=Math.min(i,Math.abs(a-s)||i)),s=a)};for(r=0,o=e.length;r0?r[t-1]:null,s=tMath.abs(s)&&(l=s,c=a),n[e.axis]=c,n._custom={barStart:l,barEnd:c,start:r,end:o,min:a,max:s}}function Z4(t,n,e,i){return Ei(t)?Nre(t,n,e,i):n[e.axis]=e.parse(t,i),n}function i4(t,n,e,i){let r=t.iScale,o=t.vScale,a=r.getLabels(),s=r===o,l=[],c,d,m,f;for(c=e,d=e+i;c=e?1:-1)}function Vre(t){let n,e,i,r,o;return t.horizontal?(n=t.base>t.x,e="left",i="right"):(n=t.base{class t extends Oc{static id="bar";static defaults={datasetElementType:!1,dataElementType:"bar",categoryPercentage:.8,barPercentage:.9,grouped:!0,animations:{numbers:{type:"number",properties:["x","y","base","width","height"]}}};static overrides={scales:{_index_:{type:"category",offset:!0,grid:{offset:!0}},_value_:{type:"linear",beginAtZero:!0}}};parsePrimitiveData(e,i,r,o){return i4(e,i,r,o)}parseArrayData(e,i,r,o){return i4(e,i,r,o)}parseObjectData(e,i,r,o){let{iScale:a,vScale:s}=e,{xAxisKey:l="x",yAxisKey:c="y"}=this._parsing,d=a.axis==="x"?l:c,m=s.axis==="x"?l:c,f=[],b,v,w,x;for(b=r,v=r+o;bm.controller.options.grouped),a=r.options.stacked,s=[],l=this._cachedMeta.controller.getParsed(i),c=l&&l[r.axis],d=m=>{let f=m._parsed.find(v=>v[r.axis]===c),b=f&&f[m.vScale.axis];if(Et(b)||isNaN(b))return!0};for(let m of o)if(!(i!==void 0&&d(m))&&((a===!1||s.indexOf(m.stack)===-1||a===void 0&&m.stack===void 0)&&s.push(m.stack),m.index===e))break;return s.length||s.push(void 0),s}_getStackCount(e){return this._getStacks(void 0,e).length}_getAxisCount(){return this._getAxis().length}getFirstScaleIdForIndexAxis(){let e=this.chart.scales,i=this.chart.options.indexAxis;return Object.keys(e).filter(r=>e[r].axis===i).shift()}_getAxis(){let e={},i=this.getFirstScaleIdForIndexAxis();for(let r of this.chart.data.datasets)e[st(this.chart.options.indexAxis==="x"?r.xAxisID:r.yAxisID,i)]=!0;return Object.keys(e)}_getStackIndex(e,i,r){let o=this._getStacks(e,r),a=i!==void 0?o.indexOf(i):-1;return a===-1?o.length-1:a}_getRuler(){let e=this.options,i=this._cachedMeta,r=i.iScale,o=[],a,s;for(a=0,s=i.data.length;a{class t extends Oc{static id="bubble";static defaults={datasetElementType:!1,dataElementType:"point",animations:{numbers:{type:"number",properties:["x","y","borderWidth","radius"]}}};static overrides={scales:{x:{type:"linear"},y:{type:"linear"}}};initialize(){this.enableOptionSharing=!0,super.initialize()}parsePrimitiveData(e,i,r,o){let a=super.parsePrimitiveData(e,i,r,o);for(let s=0;s=0;--r)i=Math.max(i,e[r].size(this.resolveDataElementOptions(r))/2);return i>0&&i}getLabelAndValue(e){let i=this._cachedMeta,r=this.chart.data.labels||[],{xScale:o,yScale:a}=i,s=this.getParsed(e),l=o.getLabelForValue(s.x),c=a.getLabelForValue(s.y),d=s._custom;return{label:r[e]||"",value:"("+l+", "+c+(d?", "+d:"")+")"}}update(e){let i=this._cachedMeta.data;this.updateElements(i,0,i.length,e)}updateElements(e,i,r,o){let a=o==="reset",{iScale:s,vScale:l}=this._cachedMeta,{sharedOptions:c,includeOptions:d}=this._getSharedOptions(i,o),m=s.axis,f=l.axis;for(let b=i;bVh(W,s,l,!0)?1:Math.max(Z,Z*e,K,K*e),v=(W,Z,K)=>Vh(W,s,l,!0)?-1:Math.min(Z,Z*e,K,K*e),w=b(0,c,m),x=b(Zi,d,f),D=v(Ht,c,m),P=v(Ht+Zi,d,f);i=(w-D)/2,r=(x-P)/2,o=-(w+D)/2,a=-(x+P)/2}return{ratioX:i,ratioY:r,offsetX:o,offsetY:a}}var tI=(()=>{class t extends Oc{static id="doughnut";static defaults={datasetElementType:!1,dataElementType:"arc",animation:{animateRotate:!0,animateScale:!1},animations:{numbers:{type:"number",properties:["circumference","endAngle","innerRadius","outerRadius","startAngle","x","y","offset","borderWidth","spacing"]}},cutout:"50%",rotation:0,circumference:360,radius:"100%",spacing:0,indexAxis:"r"};static descriptors={_scriptable:e=>e!=="spacing",_indexable:e=>e!=="spacing"&&!e.startsWith("borderDash")&&!e.startsWith("hoverBorderDash")};static overrides={aspectRatio:1,plugins:{legend:{labels:{generateLabels(e){let i=e.data,{labels:{pointStyle:r,textAlign:o,color:a,useBorderRadius:s,borderRadius:l}}=e.legend.options;return i.labels.length&&i.datasets.length?i.labels.map((c,d)=>{let f=e.getDatasetMeta(0).controller.getStyle(d);return{text:c,fillStyle:f.backgroundColor,fontColor:a,hidden:!e.getDataVisibility(d),lineDash:f.borderDash,lineDashOffset:f.borderDashOffset,lineJoin:f.borderJoinStyle,lineWidth:f.borderWidth,strokeStyle:f.borderColor,textAlign:o,pointStyle:r,borderRadius:s&&(l||f.borderRadius),index:d}}):[]}},onClick(e,i,r){r.chart.toggleDataVisibility(i.index),r.chart.update()}}}};constructor(e,i){super(e,i),this.enableOptionSharing=!0,this.innerRadius=void 0,this.outerRadius=void 0,this.offsetX=void 0,this.offsetY=void 0}linkScales(){}parse(e,i){let r=this.getDataset().data,o=this._cachedMeta;if(this._parsing===!1)o._parsed=r;else{let a=c=>+r[c];if(St(r[e])){let{key:c="value"}=this._parsing;a=d=>+_l(r[d],c)}let s,l;for(s=e,l=e+i;s0&&!isNaN(e)?Mi*(Math.abs(e)/i):0}getLabelAndValue(e){let i=this._cachedMeta,r=this.chart,o=r.data.labels||[],a=Bh(i._parsed[e],r.options.locale);return{label:o[e]||"",value:a}}getMaxBorderWidth(e){let i=0,r=this.chart,o,a,s,l,c;if(!e){for(o=0,a=r.data.datasets.length;o{class t extends Oc{static id="line";static defaults={datasetElementType:"line",dataElementType:"point",showLine:!0,spanGaps:!1};static overrides={scales:{_index_:{type:"category"},_value_:{type:"linear"}}};initialize(){this.enableOptionSharing=!0,this.supportsDecimation=!0,super.initialize()}update(e){let i=this._cachedMeta,{dataset:r,data:o=[],_dataset:a}=i,s=this.chart._animationsDisabled,{start:l,count:c}=oT(i,o,s);this._drawStart=l,this._drawCount=c,aT(i)&&(l=0,c=o.length),r._chart=this.chart,r._datasetIndex=this.index,r._decimated=!!a._decimated,r.points=o;let d=this.resolveDatasetElementOptions(e);this.options.showLine||(d.borderWidth=0),d.segment=this.options.segment,this.updateElement(r,void 0,{animated:!s,options:d},e),this.updateElements(o,l,c,e)}updateElements(e,i,r,o){let a=o==="reset",{iScale:s,vScale:l,_stacked:c,_dataset:d}=this._cachedMeta,{sharedOptions:m,includeOptions:f}=this._getSharedOptions(i,o),b=s.axis,v=l.axis,{spanGaps:w,segment:x}=this.options,D=xu(w)?w:Number.POSITIVE_INFINITY,P=this.chart._animationsDisabled||a||o==="none",W=i+r,Z=e.length,K=i>0&&this.getParsed(i-1);for(let re=0;re=W){be.skip=!0;continue}let Ve=this.getParsed(re),yt=Et(Ve[v]),bt=be[b]=s.getPixelForValue(Ve[b],re),It=be[v]=a||yt?l.getBasePixel():l.getPixelForValue(c?this.applyStack(l,Ve,c):Ve[v],re);be.skip=isNaN(bt)||isNaN(It)||yt,be.stop=re>0&&Math.abs(Ve[b]-K[b])>D,x&&(be.parsed=Ve,be.raw=d.data[re]),f&&(be.options=m||this.resolveDataElementOptions(re,Ee.active?"active":o)),P||this.updateElement(Ee,re,be,o),K=Ve}}getMaxOverflow(){let e=this._cachedMeta,i=e.dataset,r=i.options&&i.options.borderWidth||0,o=e.data||[];if(!o.length)return r;let a=o[0].size(this.resolveDataElementOptions(0)),s=o[o.length-1].size(this.resolveDataElementOptions(o.length-1));return Math.max(r,a,s)/2}draw(){let e=this._cachedMeta;e.dataset.updateControlPoints(this.chart.chartArea,e.iScale.axis),super.draw()}}return t})(),X4=(()=>{class t extends Oc{static id="polarArea";static defaults={dataElementType:"arc",animation:{animateRotate:!0,animateScale:!0},animations:{numbers:{type:"number",properties:["x","y","startAngle","endAngle","innerRadius","outerRadius"]}},indexAxis:"r",startAngle:0};static overrides={aspectRatio:1,plugins:{legend:{labels:{generateLabels(e){let i=e.data;if(i.labels.length&&i.datasets.length){let{labels:{pointStyle:r,color:o}}=e.legend.options;return i.labels.map((a,s)=>{let c=e.getDatasetMeta(0).controller.getStyle(s);return{text:a,fillStyle:c.backgroundColor,strokeStyle:c.borderColor,fontColor:o,lineWidth:c.borderWidth,pointStyle:r,hidden:!e.getDataVisibility(s),index:s}})}return[]}},onClick(e,i,r){r.chart.toggleDataVisibility(i.index),r.chart.update()}}},scales:{r:{type:"radialLinear",angleLines:{display:!1},beginAtZero:!0,grid:{circular:!0},pointLabels:{display:!1},startAngle:0}}};constructor(e,i){super(e,i),this.innerRadius=void 0,this.outerRadius=void 0}getLabelAndValue(e){let i=this._cachedMeta,r=this.chart,o=r.data.labels||[],a=Bh(i._parsed[e].r,r.options.locale);return{label:o[e]||"",value:a}}parseObjectData(e,i,r,o){return fT.bind(this)(e,i,r,o)}update(e){let i=this._cachedMeta.data;this._updateRadius(),this.updateElements(i,0,i.length,e)}getMinMax(){let e=this._cachedMeta,i={min:Number.POSITIVE_INFINITY,max:Number.NEGATIVE_INFINITY};return e.data.forEach((r,o)=>{let a=this.getParsed(o).r;!isNaN(a)&&this.chart.getDataVisibility(o)&&(ai.max&&(i.max=a))}),i}_updateRadius(){let e=this.chart,i=e.chartArea,r=e.options,o=Math.min(i.right-i.left,i.bottom-i.top),a=Math.max(o/2,0),s=Math.max(r.cutoutPercentage?a/100*r.cutoutPercentage:1,0),l=(a-s)/e.getVisibleDatasetCount();this.outerRadius=a-l*this.index,this.innerRadius=this.outerRadius-l}updateElements(e,i,r,o){let a=o==="reset",s=this.chart,c=s.options.animation,d=this._cachedMeta.rScale,m=d.xCenter,f=d.yCenter,b=d.getIndexAngle(0)-.5*Ht,v=b,w,x=360/this.countVisibleElements();for(w=0;w{!isNaN(this.getParsed(o).r)&&this.chart.getDataVisibility(o)&&i++}),i}_computeAngle(e,i,r){return this.chart.getDataVisibility(e)?ra(this.resolveDataElementOptions(e,i).angle||r):0}}return t})(),Gre=(()=>{class t extends tI{static id="pie";static defaults={cutout:0,rotation:0,circumference:360,radius:"100%"}}return t})(),qre=(()=>{class t extends Oc{static id="radar";static defaults={datasetElementType:"line",dataElementType:"point",indexAxis:"r",showLine:!0,elements:{line:{fill:"start"}}};static overrides={aspectRatio:1,scales:{r:{type:"radialLinear"}}};getLabelAndValue(e){let i=this._cachedMeta.vScale,r=this.getParsed(e);return{label:i.getLabels()[e],value:""+i.getLabelForValue(r[i.axis])}}parseObjectData(e,i,r,o){return fT.bind(this)(e,i,r,o)}update(e){let i=this._cachedMeta,r=i.dataset,o=i.data||[],a=i.iScale.getLabels();if(r.points=o,e!=="resize"){let s=this.resolveDatasetElementOptions(e);this.options.showLine||(s.borderWidth=0);let l={_loop:!0,_fullLoop:a.length===o.length,options:s};this.updateElement(r,void 0,l,e)}this.updateElements(o,0,o.length,e)}updateElements(e,i,r,o){let a=this._cachedMeta.rScale,s=o==="reset";for(let l=i;l{class t extends Oc{static id="scatter";static defaults={datasetElementType:!1,dataElementType:"point",showLine:!1,fill:!1};static overrides={interaction:{mode:"point"},scales:{x:{type:"linear"},y:{type:"linear"}}};getLabelAndValue(e){let i=this._cachedMeta,r=this.chart.data.labels||[],{xScale:o,yScale:a}=i,s=this.getParsed(e),l=o.getLabelForValue(s.x),c=a.getLabelForValue(s.y);return{label:r[e]||"",value:"("+l+", "+c+")"}}update(e){let i=this._cachedMeta,{data:r=[]}=i,o=this.chart._animationsDisabled,{start:a,count:s}=oT(i,r,o);if(this._drawStart=a,this._drawCount=s,aT(i)&&(a=0,s=r.length),this.options.showLine){this.datasetElementType||this.addElements();let{dataset:l,_dataset:c}=i;l._chart=this.chart,l._datasetIndex=this.index,l._decimated=!!c._decimated,l.points=r;let d=this.resolveDatasetElementOptions(e);d.segment=this.options.segment,this.updateElement(l,void 0,{animated:!o,options:d},e)}else this.datasetElementType&&(delete i.dataset,this.datasetElementType=!1);this.updateElements(r,a,s,e)}addElements(){let{showLine:e}=this.options;!this.datasetElementType&&e&&(this.datasetElementType=this.chart.registry.getElement("line")),super.addElements()}updateElements(e,i,r,o){let a=o==="reset",{iScale:s,vScale:l,_stacked:c,_dataset:d}=this._cachedMeta,m=this.resolveDataElementOptions(i,o),f=this.getSharedOptions(m),b=this.includeOptions(o,f),v=s.axis,w=l.axis,{spanGaps:x,segment:D}=this.options,P=xu(x)?x:Number.POSITIVE_INFINITY,W=this.chart._animationsDisabled||a||o==="none",Z=i>0&&this.getParsed(i-1);for(let K=i;K0&&Math.abs(Ee[v]-Z[v])>P,D&&(be.parsed=Ee,be.raw=d.data[K]),b&&(be.options=f||this.resolveDataElementOptions(K,re.active?"active":o)),W||this.updateElement(re,K,be,o),Z=Ee}this.updateSharedOptions(f,o,m)}getMaxOverflow(){let e=this._cachedMeta,i=e.data||[];if(!this.options.showLine){let l=0;for(let c=i.length-1;c>=0;--c)l=Math.max(l,i[c].size(this.resolveDataElementOptions(c))/2);return l>0&&l}let r=e.dataset,o=r.options&&r.options.borderWidth||0;if(!i.length)return o;let a=i[0].size(this.resolveDataElementOptions(0)),s=i[i.length-1].size(this.resolveDataElementOptions(i.length-1));return Math.max(o,a,s)/2}}return t})(),Qre=Object.freeze({__proto__:null,BarController:zre,BubbleController:Ure,DoughnutController:tI,LineController:Wre,PieController:Gre,PolarAreaController:X4,RadarController:qre,ScatterController:Yre});function wu(){throw new Error("This method is not implemented: Check that a complete date adapter is provided.")}var NT=class t{static override(n){Object.assign(t.prototype,n)}options;constructor(n){this.options=n||{}}init(){}formats(){return wu()}parse(){return wu()}format(){return wu()}add(){return wu()}diff(){return wu()}startOf(){return wu()}endOf(){return wu()}},Kre={_date:NT};function Zre(t,n,e,i){let{controller:r,data:o,_sorted:a}=t,s=r._cachedMeta.iScale,l=t.dataset&&t.dataset.options?t.dataset.options.spanGaps:null;if(s&&n===s.axis&&n!=="r"&&a&&o.length){let c=s._reversePixels?Sj:ks;if(i){if(r._sharedOptions){let d=o[0],m=typeof d.getRange=="function"&&d.getRange(n);if(m){let f=c(o,n,e-m),b=c(o,n,e+m);return{lo:f.lo,hi:b.hi}}}}else{let d=c(o,n,e);if(l){let{vScale:m}=r._cachedMeta,{_parsed:f}=t,b=f.slice(0,d.lo+1).reverse().findIndex(w=>!Et(w[m.axis]));d.lo-=Math.max(0,b);let v=f.slice(d.hi).findIndex(w=>!Et(w[m.axis]));d.hi+=Math.max(0,v)}return d}}return{lo:0,hi:o.length-1}}function Jg(t,n,e,i,r){let o=t.getSortedVisibleDatasetMetas(),a=e[n];for(let s=0,l=o.length;s{l[a]&&l[a](n[e],r)&&(o.push({element:l,datasetIndex:c,index:d}),s=s||l.inRange(n.x,n.y,r))}),i&&!s?[]:o}var toe={evaluateInteractionItems:Jg,modes:{index(t,n,e,i){let r=Ic(n,t),o=e.axis||"x",a=e.includeInvisible||!1,s=e.intersect?kT(t,r,o,i,a):ST(t,r,o,!1,i,a),l=[];return s.length?(t.getSortedVisibleDatasetMetas().forEach(c=>{let d=s[0].index,m=c.data[d];m&&!m.skip&&l.push({element:m,datasetIndex:c.index,index:d})}),l):[]},dataset(t,n,e,i){let r=Ic(n,t),o=e.axis||"xy",a=e.includeInvisible||!1,s=e.intersect?kT(t,r,o,i,a):ST(t,r,o,!1,i,a);if(s.length>0){let l=s[0].datasetIndex,c=t.getDatasetMeta(l).data;s=[];for(let d=0;de.pos===n)}function a4(t,n){return t.filter(e=>J4.indexOf(e.pos)===-1&&e.box.axis===n)}function Wg(t,n){return t.sort((e,i)=>{let r=n?i:e,o=n?e:i;return r.weight===o.weight?r.index-o.index:r.weight-o.weight})}function ioe(t){let n=[],e,i,r,o,a,s;for(e=0,i=(t||[]).length;ec.box.fullSize),!0),i=Wg($g(n,"left"),!0),r=Wg($g(n,"right")),o=Wg($g(n,"top"),!0),a=Wg($g(n,"bottom")),s=a4(n,"x"),l=a4(n,"y");return{fullSize:e,leftAndTop:i.concat(o),rightAndBottom:r.concat(l).concat(a).concat(s),chartArea:$g(n,"chartArea"),vertical:i.concat(r).concat(l),horizontal:o.concat(a).concat(s)}}function s4(t,n,e,i){return Math.max(t[e],n[e])+Math.max(t[i],n[i])}function eH(t,n){t.top=Math.max(t.top,n.top),t.left=Math.max(t.left,n.left),t.bottom=Math.max(t.bottom,n.bottom),t.right=Math.max(t.right,n.right)}function aoe(t,n,e,i){let{pos:r,box:o}=e,a=t.maxPadding;if(!St(r)){e.size&&(t[r]-=e.size);let m=i[e.stack]||{size:0,count:1};m.size=Math.max(m.size,e.horizontal?o.height:o.width),e.size=m.size/m.count,t[r]+=e.size}o.getPadding&&eH(a,o.getPadding());let s=Math.max(0,n.outerWidth-s4(a,t,"left","right")),l=Math.max(0,n.outerHeight-s4(a,t,"top","bottom")),c=s!==t.w,d=l!==t.h;return t.w=s,t.h=l,e.horizontal?{same:c,other:d}:{same:d,other:c}}function soe(t){let n=t.maxPadding;function e(i){let r=Math.max(n[i]-t[i],0);return t[i]+=r,r}t.y+=e("top"),t.x+=e("left"),e("right"),e("bottom")}function loe(t,n){let e=n.maxPadding;function i(r){let o={left:0,top:0,right:0,bottom:0};return r.forEach(a=>{o[a]=Math.max(n[a],e[a])}),o}return i(t?["left","right"]:["top","bottom"])}function Yg(t,n,e,i){let r=[],o,a,s,l,c,d;for(o=0,a=t.length,c=0;o{typeof w.beforeLayout=="function"&&w.beforeLayout()});let d=l.reduce((w,x)=>x.box.options&&x.box.options.display===!1?w:w+1,0)||1,m=Object.freeze({outerWidth:n,outerHeight:e,padding:r,availableWidth:o,availableHeight:a,vBoxMaxWidth:o/2/d,hBoxMaxHeight:a/2}),f=Object.assign({},r);eH(f,sr(i));let b=Object.assign({maxPadding:f,w:o,h:a,x:r.left,y:r.top},r),v=roe(l.concat(c),m);Yg(s.fullSize,b,m,v),Yg(l,b,m,v),Yg(c,b,m,v)&&Yg(l,b,m,v),soe(b),l4(s.leftAndTop,b,m,v),b.x+=b.w,b.y+=b.h,l4(s.rightAndBottom,b,m,v),t.chartArea={left:b.left,top:b.top,right:b.left+b.w,bottom:b.top+b.h,height:b.h,width:b.w},ii(s.chartArea,w=>{let x=w.box;Object.assign(x,t.chartArea),x.update(b.w,b.h,{left:0,top:0,right:0,bottom:0})})}},aC=class{acquireContext(n,e){}releaseContext(n){return!1}addEventListener(n,e,i){}removeEventListener(n,e,i){}getDevicePixelRatio(){return 1}getMaximumSize(n,e,i,r){return e=Math.max(0,e||n.width),i=i||n.height,{width:e,height:Math.max(0,r?Math.floor(e/r):i)}}isAttached(n){return!0}updateConfig(n){}},LT=class extends aC{acquireContext(n){return n&&n.getContext&&n.getContext("2d")||null}updateConfig(n){n.options.animation=!1}},nC="$chartjs",coe={touchstart:"mousedown",touchmove:"mousemove",touchend:"mouseup",pointerenter:"mouseenter",pointerdown:"mousedown",pointermove:"mousemove",pointerup:"mouseup",pointerleave:"mouseout",pointerout:"mouseout"},c4=t=>t===null||t==="";function doe(t,n){let e=t.style,i=t.getAttribute("height"),r=t.getAttribute("width");if(t[nC]={initial:{height:i,width:r,style:{display:e.display,height:e.height,width:e.width}}},e.display=e.display||"block",e.boxSizing=e.boxSizing||"border-box",c4(r)){let o=_T(t,"width");o!==void 0&&(t.width=o)}if(c4(i))if(t.style.height==="")t.height=t.width/(n||2);else{let o=_T(t,"height");o!==void 0&&(t.height=o)}return t}var tH=Wj?{passive:!0}:!1;function uoe(t,n,e){t&&t.addEventListener(n,e,tH)}function moe(t,n,e){t&&t.canvas&&t.canvas.removeEventListener(n,e,tH)}function hoe(t,n){let e=coe[t.type]||t.type,{x:i,y:r}=Ic(t,n);return{type:e,chart:n,native:t,x:i!==void 0?i:null,y:r!==void 0?r:null}}function sC(t,n){for(let e of t)if(e===n||e.contains(n))return!0}function poe(t,n,e){let i=t.canvas,r=new MutationObserver(o=>{let a=!1;for(let s of o)a=a||sC(s.addedNodes,i),a=a&&!sC(s.removedNodes,i);a&&e()});return r.observe(document,{childList:!0,subtree:!0}),r}function foe(t,n,e){let i=t.canvas,r=new MutationObserver(o=>{let a=!1;for(let s of o)a=a||sC(s.removedNodes,i),a=a&&!sC(s.addedNodes,i);a&&e()});return r.observe(document,{childList:!0,subtree:!0}),r}var Kg=new Map,d4=0;function iH(){let t=window.devicePixelRatio;t!==d4&&(d4=t,Kg.forEach((n,e)=>{e.currentDevicePixelRatio!==t&&n()}))}function goe(t,n){Kg.size||window.addEventListener("resize",iH),Kg.set(t,n)}function _oe(t){Kg.delete(t),Kg.size||window.removeEventListener("resize",iH)}function boe(t,n,e){let i=t.canvas,r=i&&Qx(i);if(!r)return;let o=rT((s,l)=>{let c=r.clientWidth;e(s,l),c{let l=s[0],c=l.contentRect.width,d=l.contentRect.height;c===0&&d===0||o(c,d)});return a.observe(r),goe(t,o),a}function TT(t,n,e){e&&e.disconnect(),n==="resize"&&_oe(t)}function voe(t,n,e){let i=t.canvas,r=rT(o=>{t.ctx!==null&&e(hoe(o,t))},t);return uoe(i,n,r),r}var VT=class extends aC{acquireContext(n,e){let i=n&&n.getContext&&n.getContext("2d");return i&&i.canvas===n?(doe(n,e),i):null}releaseContext(n){let e=n.canvas;if(!e[nC])return!1;let i=e[nC].initial;["height","width"].forEach(o=>{let a=i[o];Et(a)?e.removeAttribute(o):e.setAttribute(o,a)});let r=i.style||{};return Object.keys(r).forEach(o=>{e.style[o]=r[o]}),e.width=e.width,delete e[nC],!0}addEventListener(n,e,i){this.removeEventListener(n,e);let r=n.$proxies||(n.$proxies={}),a={attach:poe,detach:foe,resize:boe}[e]||voe;r[e]=a(n,e,i)}removeEventListener(n,e){let i=n.$proxies||(n.$proxies={}),r=i[e];if(!r)return;({attach:TT,detach:TT,resize:TT}[e]||moe)(n,e,r),i[e]=void 0}getDevicePixelRatio(){return window.devicePixelRatio}getMaximumSize(n,e,i,r){return $j(n,e,i,r)}isAttached(n){let e=n&&Qx(n);return!!(e&&e.isConnected)}};function yoe(t){return!Yx()||typeof OffscreenCanvas<"u"&&t instanceof OffscreenCanvas?LT:VT}var ja=class{static defaults={};static defaultRoutes=void 0;x;y;active=!1;options;$animations;tooltipPosition(n){let{x:e,y:i}=this.getProps(["x","y"],n);return{x:e,y:i}}hasValue(){return xu(this.x)&&xu(this.y)}getProps(n,e){let i=this.$animations;if(!e||!i)return this;let r={};return n.forEach(o=>{r[o]=i[o]&&i[o].active()?i[o]._to:this[o]}),r}};function xoe(t,n){let e=t.options.ticks,i=Coe(t),r=Math.min(e.maxTicksLimit||i,i),o=e.major.enabled?Doe(n):[],a=o.length,s=o[0],l=o[a-1],c=[];if(a>r)return Eoe(n,c,o,a/r),c;let d=woe(o,n,r);if(a>0){let m,f,b=a>1?Math.round((l-s)/(a-1)):null;for(Xx(n,c,d,Et(b)?0:s-b,s),m=0,f=a-1;mr)return l}return Math.max(r,1)}function Doe(t){let n=[],e,i;for(e=0,i=t.length;et==="left"?"right":t==="right"?"left":t,u4=(t,n,e)=>n==="top"||n==="left"?t[n]+e:t[n]-e,m4=(t,n)=>Math.min(n||t,t);function h4(t,n){let e=[],i=t.length/n,r=t.length,o=0;for(;oa+s)))return l}function Toe(t,n){ii(t,e=>{let i=e.gc,r=i.length/2,o;if(r>n){for(o=0;oi?i:e,i=r&&e>i?e:i,{min:no(e,no(i,e)),max:no(i,no(e,i))}}getPadding(){return{left:this.paddingLeft||0,top:this.paddingTop||0,right:this.paddingRight||0,bottom:this.paddingBottom||0}}getTicks(){return this.ticks}getLabels(){let n=this.chart.data;return this.options.labels||(this.isHorizontal()?n.xLabels:n.yLabels)||n.labels||[]}getLabelItems(n=this.chart.chartArea){return this._labelItems||(this._labelItems=this._computeLabelItems(n))}beforeLayout(){this._cache={},this._dataLimitsCached=!1}beforeUpdate(){yi(this.options.beforeUpdate,[this])}update(n,e,i){let{beginAtZero:r,grace:o,ticks:a}=this.options,s=a.sampleSize;this.beforeUpdate(),this.maxWidth=n,this.maxHeight=e,this._margins=i=Object.assign({left:0,right:0,top:0,bottom:0},i),this.ticks=null,this._labelSizes=null,this._gridLineItems=null,this._labelItems=null,this.beforeSetDimensions(),this.setDimensions(),this.afterSetDimensions(),this._maxLength=this.isHorizontal()?this.width+i.left+i.right:this.height+i.top+i.bottom,this._dataLimitsCached||(this.beforeDataLimits(),this.determineDataLimits(),this.afterDataLimits(),this._range=Vj(this,o,r),this._dataLimitsCached=!0),this.beforeBuildTicks(),this.ticks=this.buildTicks()||[],this.afterBuildTicks();let l=s=o||i<=1||!this.isHorizontal()){this.labelRotation=r;return}let d=this._getLabelSizes(),m=d.widest.width,f=d.highest.height,b=Dn(this.chart.width-m,0,this.maxWidth);s=n.offset?this.maxWidth/i:b/(i-1),m+6>s&&(s=b/(i-(n.offset?.5:1)),l=this.maxHeight-Gg(n.grid)-e.padding-p4(n.title,this.chart.options.font),c=Math.sqrt(m*m+f*f),a=Hx(Math.min(Math.asin(Dn((d.highest.height+6)/s,-1,1)),Math.asin(Dn(l/c,-1,1))-Math.asin(Dn(f/c,-1,1)))),a=Math.max(r,Math.min(o,a))),this.labelRotation=a}afterCalculateLabelRotation(){yi(this.options.afterCalculateLabelRotation,[this])}afterAutoSkip(){}beforeFit(){yi(this.options.beforeFit,[this])}fit(){let n={width:0,height:0},{chart:e,options:{ticks:i,title:r,grid:o}}=this,a=this._isVisible(),s=this.isHorizontal();if(a){let l=p4(r,e.options.font);if(s?(n.width=this.maxWidth,n.height=Gg(o)+l):(n.height=this.maxHeight,n.width=Gg(o)+l),i.display&&this.ticks.length){let{first:c,last:d,widest:m,highest:f}=this._getLabelSizes(),b=i.padding*2,v=ra(this.labelRotation),w=Math.cos(v),x=Math.sin(v);if(s){let D=i.mirror?0:x*m.width+w*f.height;n.height=Math.min(this.maxHeight,n.height+D+b)}else{let D=i.mirror?0:w*m.width+x*f.height;n.width=Math.min(this.maxWidth,n.width+D+b)}this._calculatePadding(c,d,x,w)}}this._handleMargins(),s?(this.width=this._length=e.width-this._margins.left-this._margins.right,this.height=n.height):(this.width=n.width,this.height=this._length=e.height-this._margins.top-this._margins.bottom)}_calculatePadding(n,e,i,r){let{ticks:{align:o,padding:a},position:s}=this.options,l=this.labelRotation!==0,c=s!=="top"&&this.axis==="x";if(this.isHorizontal()){let d=this.getPixelForTick(0)-this.left,m=this.right-this.getPixelForTick(this.ticks.length-1),f=0,b=0;l?c?(f=r*n.width,b=i*e.height):(f=i*n.height,b=r*e.width):o==="start"?b=e.width:o==="end"?f=n.width:o!=="inner"&&(f=n.width/2,b=e.width/2),this.paddingLeft=Math.max((f-d+a)*this.width/(this.width-d),0),this.paddingRight=Math.max((b-m+a)*this.width/(this.width-m),0)}else{let d=e.height/2,m=n.height/2;o==="start"?(d=0,m=n.height):o==="end"&&(d=e.height,m=0),this.paddingTop=d+a,this.paddingBottom=m+a}}_handleMargins(){this._margins&&(this._margins.left=Math.max(this.paddingLeft,this._margins.left),this._margins.top=Math.max(this.paddingTop,this._margins.top),this._margins.right=Math.max(this.paddingRight,this._margins.right),this._margins.bottom=Math.max(this.paddingBottom,this._margins.bottom))}afterFit(){yi(this.options.afterFit,[this])}isHorizontal(){let{axis:n,position:e}=this.options;return e==="top"||e==="bottom"||n==="x"}isFullSize(){return this.options.fullSize}_convertTicksToLabels(n){this.beforeTickToLabelConversion(),this.generateTickLabels(n);let e,i;for(e=0,i=n.length;e({width:a[Ve]||0,height:s[Ve]||0});return{first:be(0),last:be(e-1),widest:be(re),highest:be(Ee),widths:a,heights:s}}getLabelForValue(n){return n}getPixelForValue(n,e){return NaN}getValueForPixel(n){}getPixelForTick(n){let e=this.ticks;return n<0||n>e.length-1?null:this.getPixelForValue(e[n].value)}getPixelForDecimal(n){this._reversePixels&&(n=1-n);let e=this._startPixel+n*this._length;return kj(this._alignToPixels?kc(this.chart,e,0):e)}getDecimalForPixel(n){let e=(n-this._startPixel)/this._length;return this._reversePixels?1-e:e}getBasePixel(){return this.getPixelForValue(this.getBaseValue())}getBaseValue(){let{min:n,max:e}=this;return n<0&&e<0?e:n>0&&e>0?n:0}getContext(n){let e=this.ticks||[];if(n>=0&&ns*r?s/i:l/r:l*r0}_computeGridLineItems(n){let e=this.axis,i=this.chart,r=this.options,{grid:o,position:a,border:s}=r,l=o.offset,c=this.isHorizontal(),m=this.ticks.length+(l?1:0),f=Gg(o),b=[],v=s.setContext(this.getContext()),w=v.display?v.width:0,x=w/2,D=function(Pi){return kc(i,Pi,w)},P,W,Z,K,re,Ee,be,Ve,yt,bt,It,$n;if(a==="top")P=D(this.bottom),Ee=this.bottom-f,Ve=P-x,bt=D(n.top)+x,$n=n.bottom;else if(a==="bottom")P=D(this.top),bt=n.top,$n=D(n.bottom)-x,Ee=P+x,Ve=this.top+f;else if(a==="left")P=D(this.right),re=this.right-f,be=P-x,yt=D(n.left)+x,It=n.right;else if(a==="right")P=D(this.left),yt=n.left,It=D(n.right)-x,re=P+x,be=this.left+f;else if(e==="x"){if(a==="center")P=D((n.top+n.bottom)/2+.5);else if(St(a)){let Pi=Object.keys(a)[0],en=a[Pi];P=D(this.chart.scales[Pi].getPixelForValue(en))}bt=n.top,$n=n.bottom,Ee=P+x,Ve=Ee+f}else if(e==="y"){if(a==="center")P=D((n.left+n.right)/2);else if(St(a)){let Pi=Object.keys(a)[0],en=a[Pi];P=D(this.chart.scales[Pi].getPixelForValue(en))}re=P-x,be=re-f,yt=n.left,It=n.right}let lo=st(r.ticks.maxTicksLimit,m),ui=Math.max(1,Math.ceil(m/lo));for(W=0;W0&&(Jc-=Xc/2);break}D_={left:Jc,top:mp,width:Xc+Pu.width,height:up+Pu.height,color:ui.backdropColor}}x.push({label:Z,font:Ve,textOffset:It,options:{rotation:w,color:en,strokeColor:ma,strokeWidth:lr,textAlign:Ru,textBaseline:$n,translation:[K,re],backdrop:D_}})}return x}_getXAxisLabelAlignment(){let{position:n,ticks:e}=this.options;if(-ra(this.labelRotation))return n==="top"?"left":"right";let r="center";return e.align==="start"?r="left":e.align==="end"?r="right":e.align==="inner"&&(r="inner"),r}_getYAxisLabelAlignment(n){let{position:e,ticks:{crossAlign:i,mirror:r,padding:o}}=this.options,a=this._getLabelSizes(),s=n+o,l=a.widest.width,c,d;return e==="left"?r?(d=this.right+o,i==="near"?c="left":i==="center"?(c="center",d+=l/2):(c="right",d+=l)):(d=this.right-s,i==="near"?c="right":i==="center"?(c="center",d-=l/2):(c="left",d=this.left)):e==="right"?r?(d=this.left+o,i==="near"?c="right":i==="center"?(c="center",d-=l/2):(c="left",d-=l)):(d=this.left+s,i==="near"?c="left":i==="center"?(c="center",d+=l/2):(c="right",d=this.right)):c="right",{textAlign:c,x:d}}_computeLabelArea(){if(this.options.ticks.mirror)return;let n=this.chart,e=this.options.position;if(e==="left"||e==="right")return{top:0,left:this.left,bottom:n.height,right:this.right};if(e==="top"||e==="bottom")return{top:this.top,left:0,bottom:this.bottom,right:n.width}}drawBackground(){let{ctx:n,options:{backgroundColor:e},left:i,top:r,width:o,height:a}=this;e&&(n.save(),n.fillStyle=e,n.fillRect(i,r,o,a),n.restore())}getLineWidthForValue(n){let e=this.options.grid;if(!this._isVisible()||!e.display)return 0;let r=this.ticks.findIndex(o=>o.value===n);return r>=0?e.setContext(this.getContext(r)).lineWidth:0}drawGrid(n){let e=this.options.grid,i=this.ctx,r=this._gridLineItems||(this._gridLineItems=this._computeGridLineItems(n)),o,a,s=(l,c,d)=>{!d.width||!d.color||(i.save(),i.lineWidth=d.width,i.strokeStyle=d.color,i.setLineDash(d.borderDash||[]),i.lineDashOffset=d.borderDashOffset,i.beginPath(),i.moveTo(l.x,l.y),i.lineTo(c.x,c.y),i.stroke(),i.restore())};if(e.display)for(o=0,a=r.length;o{this.draw(o)}}]:[{z:i,draw:o=>{this.drawBackground(),this.drawGrid(o),this.drawTitle()}},{z:r,draw:()=>{this.drawBorder()}},{z:e,draw:o=>{this.drawLabels(o)}}]}getMatchingVisibleMetas(n){let e=this.chart.getSortedVisibleDatasetMetas(),i=this.axis+"AxisID",r=[],o,a;for(o=0,a=e.length;o{let i=e.split("."),r=i.pop(),o=[t].concat(i).join("."),a=n[e].split("."),s=a.pop(),l=a.join(".");xi.route(o,r,l,s)})}function Noe(t){return"id"in t&&"defaults"in t}var BT=class{constructor(){this.controllers=new Uh(Oc,"datasets",!0),this.elements=new Uh(ja,"elements"),this.plugins=new Uh(Object,"plugins"),this.scales=new Uh(Eu,"scales"),this._typedRegistries=[this.controllers,this.scales,this.elements]}add(...n){this._each("register",n)}remove(...n){this._each("unregister",n)}addControllers(...n){this._each("register",n,this.controllers)}addElements(...n){this._each("register",n,this.elements)}addPlugins(...n){this._each("register",n,this.plugins)}addScales(...n){this._each("register",n,this.scales)}getController(n){return this._get(n,this.controllers,"controller")}getElement(n){return this._get(n,this.elements,"element")}getPlugin(n){return this._get(n,this.plugins,"plugin")}getScale(n){return this._get(n,this.scales,"scale")}removeControllers(...n){this._each("unregister",n,this.controllers)}removeElements(...n){this._each("unregister",n,this.elements)}removePlugins(...n){this._each("unregister",n,this.plugins)}removeScales(...n){this._each("unregister",n,this.scales)}_each(n,e,i){[...e].forEach(r=>{let o=i||this._getRegistryForType(r);i||o.isForType(r)||o===this.plugins&&r.id?this._exec(n,o,r):ii(r,a=>{let s=i||this._getRegistryForType(a);this._exec(n,s,a)})})}_exec(n,e,i){let r=jx(n);yi(i["before"+r],[],i),e[n](i),yi(i["after"+r],[],i)}_getRegistryForType(n){for(let e=0;eo.filter(s=>!a.some(l=>s.plugin.id===l.plugin.id));this._notify(r(e,i),n,"stop"),this._notify(r(i,e),n,"start")}};function Loe(t){let n={},e=[],i=Object.keys(Os.plugins.items);for(let o=0;o1&&f4(t[0].toLowerCase());if(i)return i}throw new Error(`Cannot determine type of '${t}' axis. Please provide 'axis' or 'position' option.`)}function g4(t,n,e){if(e[n+"AxisID"]===t)return{axis:n}}function $oe(t,n){if(n.data&&n.data.datasets){let e=n.data.datasets.filter(i=>i.xAxisID===t||i.yAxisID===t);if(e.length)return g4(t,"x",e[0])||g4(t,"y",e[0])}return{}}function Woe(t,n){let e=Mc[t.type]||{scales:{}},i=n.scales||{},r=HT(t.type,n),o=Object.create(null);return Object.keys(i).forEach(a=>{let s=i[a];if(!St(s))return console.error(`Invalid scale configuration for scale: ${a}`);if(s._proxy)return console.warn(`Ignoring resolver passed as options for scale: ${a}`);let l=zT(a,s,$oe(a,t),xi.scales[s.type]),c=zoe(l,r),d=e.scales||{};o[a]=Fh(Object.create(null),[{axis:l},s,d[l],d[c]])}),t.data.datasets.forEach(a=>{let s=a.type||t.type,l=a.indexAxis||HT(s,n),d=(Mc[s]||{}).scales||{};Object.keys(d).forEach(m=>{let f=Hoe(m,l),b=a[f+"AxisID"]||f;o[b]=o[b]||Object.create(null),Fh(o[b],[{axis:f},i[b],d[m]])})}),Object.keys(o).forEach(a=>{let s=o[a];Fh(s,[xi.scales[s.type],xi.scale])}),o}function nH(t){let n=t.options||(t.options={});n.plugins=st(n.plugins,{}),n.scales=Woe(t,n)}function rH(t){return t=t||{},t.datasets=t.datasets||[],t.labels=t.labels||[],t}function Goe(t){return t=t||{},t.data=rH(t.data),nH(t),t}var _4=new Map,oH=new Set;function Jx(t,n){let e=_4.get(t);return e||(e=n(),_4.set(t,e),oH.add(e)),e}var qg=(t,n,e)=>{let i=_l(n,e);i!==void 0&&t.add(i)},UT=class{constructor(n){this._config=Goe(n),this._scopeCache=new Map,this._resolverCache=new Map}get platform(){return this._config.platform}get type(){return this._config.type}set type(n){this._config.type=n}get data(){return this._config.data}set data(n){this._config.data=rH(n)}get options(){return this._config.options}set options(n){this._config.options=n}get plugins(){return this._config.plugins}update(){let n=this._config;this.clearCache(),nH(n)}clearCache(){this._scopeCache.clear(),this._resolverCache.clear()}datasetScopeKeys(n){return Jx(n,()=>[[`datasets.${n}`,""]])}datasetAnimationScopeKeys(n,e){return Jx(`${n}.transition.${e}`,()=>[[`datasets.${n}.transitions.${e}`,`transitions.${e}`],[`datasets.${n}`,""]])}datasetElementScopeKeys(n,e){return Jx(`${n}-${e}`,()=>[[`datasets.${n}.elements.${e}`,`datasets.${n}`,`elements.${e}`,""]])}pluginScopeKeys(n){let e=n.id,i=this.type;return Jx(`${i}-plugin-${e}`,()=>[[`plugins.${e}`,...n.additionalOptionScopes||[]]])}_cachedScopes(n,e){let i=this._scopeCache,r=i.get(n);return(!r||e)&&(r=new Map,i.set(n,r)),r}getOptionScopes(n,e,i){let{options:r,type:o}=this,a=this._cachedScopes(n,i),s=a.get(e);if(s)return s;let l=new Set;e.forEach(d=>{n&&(l.add(n),d.forEach(m=>qg(l,n,m))),d.forEach(m=>qg(l,r,m)),d.forEach(m=>qg(l,Mc[o]||{},m)),d.forEach(m=>qg(l,xi,m)),d.forEach(m=>qg(l,$x,m))});let c=Array.from(l);return c.length===0&&c.push(Object.create(null)),oH.has(e)&&a.set(e,c),c}chartOptionScopes(){let{options:n,type:e}=this;return[n,Mc[e]||{},xi.datasets[e]||{},{type:e},xi,$x]}resolveNamedOptions(n,e,i,r=[""]){let o={$shared:!0},{resolver:a,subPrefixes:s}=b4(this._resolverCache,n,r),l=a;if(Yoe(a,e)){o.$shared=!1,i=fl(i)?i():i;let c=this.createResolver(n,i,s);l=yu(a,i,c)}for(let c of e)o[c]=l[c];return o}createResolver(n,e,i=[""],r){let{resolver:o}=b4(this._resolverCache,n,i);return St(e)?yu(o,e,void 0,r):o}};function b4(t,n,e){let i=t.get(n);i||(i=new Map,t.set(n,i));let r=e.join(),o=i.get(r);return o||(o={resolver:qx(n,e),subPrefixes:e.filter(s=>!s.toLowerCase().includes("hover"))},i.set(r,o)),o}var qoe=t=>St(t)&&Object.getOwnPropertyNames(t).some(n=>fl(t[n]));function Yoe(t,n){let{isScriptable:e,isIndexable:i}=mT(t);for(let r of n){let o=e(r),a=i(r),s=(a||o)&&t[r];if(o&&(fl(s)||qoe(s))||a&&Ei(s))return!0}return!1}var Qoe="4.5.1",Koe=["top","bottom","left","right","chartArea"];function v4(t,n){return t==="top"||t==="bottom"||Koe.indexOf(t)===-1&&n==="x"}function y4(t,n){return function(e,i){return e[t]===i[t]?e[n]-i[n]:e[t]-i[t]}}function x4(t){let n=t.chart,e=n.options.animation;n.notifyPlugins("afterRender"),yi(e&&e.onComplete,[t],n)}function Zoe(t){let n=t.chart,e=n.options.animation;yi(e&&e.onProgress,[t],n)}function aH(t){return Yx()&&typeof t=="string"?t=document.getElementById(t):t&&t.length&&(t=t[0]),t&&t.canvas&&(t=t.canvas),t}var rC={},C4=t=>{let n=aH(t);return Object.values(rC).filter(e=>e.canvas===n).pop()};function Xoe(t,n,e){let i=Object.keys(t);for(let r of i){let o=+r;if(o>=n){let a=t[r];delete t[r],(e>0||o>n)&&(t[o+e]=a)}}}function Joe(t,n,e,i){return!e||t.type==="mouseout"?null:i?n:t}var uC=(()=>{class t{static defaults=xi;static instances=rC;static overrides=Mc;static registry=Os;static version=Qoe;static getChart=C4;static register(...e){Os.add(...e),w4()}static unregister(...e){Os.remove(...e),w4()}constructor(e,i){let r=this.config=new UT(i),o=aH(e),a=C4(o);if(a)throw new Error("Canvas is already in use. Chart with ID '"+a.id+"' must be destroyed before the canvas with ID '"+a.canvas.id+"' can be reused.");let s=r.createResolver(r.chartOptionScopes(),this.getContext());this.platform=new(r.platform||yoe(o)),this.platform.updateConfig(r);let l=this.platform.acquireContext(o,s.aspectRatio),c=l&&l.canvas,d=c&&c.height,m=c&&c.width;if(this.id=xj(),this.ctx=l,this.canvas=c,this.width=m,this.height=d,this._options=s,this._aspectRatio=this.aspectRatio,this._layers=[],this._metasets=[],this._stacks=void 0,this.boxes=[],this.currentDevicePixelRatio=void 0,this.chartArea=void 0,this._active=[],this._lastEvent=void 0,this._listeners={},this._responsiveListeners=void 0,this._sortedMetasets=[],this.scales={},this._plugins=new jT,this.$proxies={},this._hiddenIndices={},this.attached=!1,this._animationsDisabled=void 0,this.$context=void 0,this._doResize=Oj(f=>this.update(f),s.resizeDelay||0),this._dataChanges=[],rC[this.id]=this,!l||!c){console.error("Failed to create chart: can't acquire context from the given item");return}vl.listen(this,"complete",x4),vl.listen(this,"progress",Zoe),this._initialize(),this.attached&&this.update()}get aspectRatio(){let{options:{aspectRatio:e,maintainAspectRatio:i},width:r,height:o,_aspectRatio:a}=this;return Et(e)?i&&a?a:o?r/o:null:e}get data(){return this.config.data}set data(e){this.config.data=e}get options(){return this._options}set options(e){this.config.options=e}get registry(){return Os}_initialize(){return this.notifyPlugins("beforeInit"),this.options.responsive?this.resize():gT(this,this.options.devicePixelRatio),this.bindEvents(),this.notifyPlugins("afterInit"),this}clear(){return cT(this.canvas,this.ctx),this}stop(){return vl.stop(this),this}resize(e,i){vl.running(this)?this._resizeBeforeDraw={width:e,height:i}:this._resize(e,i)}_resize(e,i){let r=this.options,o=this.canvas,a=r.maintainAspectRatio&&this.aspectRatio,s=this.platform.getMaximumSize(o,e,i,a),l=r.devicePixelRatio||this.platform.getDevicePixelRatio(),c=this.width?"resize":"attach";this.width=s.width,this.height=s.height,this._aspectRatio=this.aspectRatio,gT(this,l,!0)&&(this.notifyPlugins("resize",{size:s}),yi(r.onResize,[this,s],this),this.attached&&this._doResize(c)&&this.render())}ensureScalesHaveIDs(){let i=this.options.scales||{};ii(i,(r,o)=>{r.id=o})}buildOrUpdateScales(){let e=this.options,i=e.scales,r=this.scales,o=Object.keys(r).reduce((s,l)=>(s[l]=!1,s),{}),a=[];i&&(a=a.concat(Object.keys(i).map(s=>{let l=i[s],c=zT(s,l),d=c==="r",m=c==="x";return{options:l,dposition:d?"chartArea":m?"bottom":"left",dtype:d?"radialLinear":m?"category":"linear"}}))),ii(a,s=>{let l=s.options,c=l.id,d=zT(c,l),m=st(l.type,s.dtype);(l.position===void 0||v4(l.position,d)!==v4(s.dposition))&&(l.position=s.dposition),o[c]=!0;let f=null;if(c in r&&r[c].type===m)f=r[c];else{let b=Os.getScale(m);f=new b({id:c,type:m,ctx:this.ctx,chart:this}),r[f.id]=f}f.init(l,e)}),ii(o,(s,l)=>{s||delete r[l]}),ii(r,s=>{Dr.configure(this,s,s.options),Dr.addBox(this,s)})}_updateMetasets(){let e=this._metasets,i=this.data.datasets.length,r=e.length;if(e.sort((o,a)=>o.index-a.index),r>i){for(let o=i;oi.length&&delete this._stacks,e.forEach((r,o)=>{i.filter(a=>a===r._dataset).length===0&&this._destroyDatasetMeta(o)})}buildOrUpdateControllers(){let e=[],i=this.data.datasets,r,o;for(this._removeUnreferencedMetasets(),r=0,o=i.length;r{this.getDatasetMeta(i).controller.reset()},this)}reset(){this._resetElements(),this.notifyPlugins("reset")}update(e){let i=this.config;i.update();let r=this._options=i.createResolver(i.chartOptionScopes(),this.getContext()),o=this._animationsDisabled=!r.animation;if(this._updateScales(),this._checkEventBindings(),this._updateHiddenIndices(),this._plugins.invalidate(),this.notifyPlugins("beforeUpdate",{mode:e,cancelable:!0})===!1)return;let a=this.buildOrUpdateControllers();this.notifyPlugins("beforeElementsUpdate");let s=0;for(let d=0,m=this.data.datasets.length;d{d.reset()}),this._updateDatasets(e),this.notifyPlugins("afterUpdate",{mode:e}),this._layers.sort(y4("z","_idx"));let{_active:l,_lastEvent:c}=this;c?this._eventHandler(c,!0):l.length&&this._updateHoverStyles(l,l,!0),this.render()}_updateScales(){ii(this.scales,e=>{Dr.removeBox(this,e)}),this.ensureScalesHaveIDs(),this.buildOrUpdateScales()}_checkEventBindings(){let e=this.options,i=new Set(Object.keys(this._listeners)),r=new Set(e.events);(!KS(i,r)||!!this._responsiveListeners!==e.responsive)&&(this.unbindEvents(),this.bindEvents())}_updateHiddenIndices(){let{_hiddenIndices:e}=this,i=this._getUniformDataChanges()||[];for(let{method:r,start:o,count:a}of i){let s=r==="_removeElements"?-a:a;Xoe(e,o,s)}}_getUniformDataChanges(){let e=this._dataChanges;if(!e||!e.length)return;this._dataChanges=[];let i=this.data.datasets.length,r=a=>new Set(e.filter(s=>s[0]===a).map((s,l)=>l+","+s.splice(1).join(","))),o=r(0);for(let a=1;aa.split(",")).map(a=>({method:a[1],start:+a[2],count:+a[3]}))}_updateLayout(e){if(this.notifyPlugins("beforeLayout",{cancelable:!0})===!1)return;Dr.update(this,this.width,this.height,e);let i=this.chartArea,r=i.width<=0||i.height<=0;this._layers=[],ii(this.boxes,o=>{r&&o.position==="chartArea"||(o.configure&&o.configure(),this._layers.push(...o._layers()))},this),this._layers.forEach((o,a)=>{o._idx=a}),this.notifyPlugins("afterLayout")}_updateDatasets(e){if(this.notifyPlugins("beforeDatasetsUpdate",{mode:e,cancelable:!0})!==!1){for(let i=0,r=this.data.datasets.length;i=0;--i)this._drawDataset(e[i]);this.notifyPlugins("afterDatasetsDraw")}_drawDataset(e){let i=this.ctx,r={meta:e,index:e.index,cancelable:!0},o=CT(this,e);this.notifyPlugins("beforeDatasetDraw",r)!==!1&&(o&&Hg(i,o),e.controller.draw(),o&&zg(i),r.cancelable=!1,this.notifyPlugins("afterDatasetDraw",r))}isPointInArea(e){return Ss(e,this.chartArea,this._minPadding)}getElementsAtEventForMode(e,i,r,o){let a=toe.modes[i];return typeof a=="function"?a(this,e,r,o):[]}getDatasetMeta(e){let i=this.data.datasets[e],r=this._metasets,o=r.filter(a=>a&&a._dataset===i).pop();return o||(o={type:null,data:[],dataset:null,controller:null,hidden:null,xAxisID:null,yAxisID:null,order:i&&i.order||0,index:e,_dataset:i,_parsed:[],_sorted:!1},r.push(o)),o}getContext(){return this.$context||(this.$context=bl(null,{chart:this,type:"chart"}))}getVisibleDatasetCount(){return this.getSortedVisibleDatasetMetas().length}isDatasetVisible(e){let i=this.data.datasets[e];if(!i)return!1;let r=this.getDatasetMeta(e);return typeof r.hidden=="boolean"?!r.hidden:!i.hidden}setDatasetVisibility(e,i){let r=this.getDatasetMeta(e);r.hidden=!i}toggleDataVisibility(e){this._hiddenIndices[e]=!this._hiddenIndices[e]}getDataVisibility(e){return!this._hiddenIndices[e]}_updateVisibility(e,i,r){let o=r?"show":"hide",a=this.getDatasetMeta(e),s=a.controller._resolveAnimations(void 0,o);Nh(i)?(a.data[i].hidden=!r,this.update()):(this.setDatasetVisibility(e,r),s.update(a,{visible:r}),this.update(l=>l.datasetIndex===e?o:void 0))}hide(e,i){this._updateVisibility(e,i,!1)}show(e,i){this._updateVisibility(e,i,!0)}_destroyDatasetMeta(e){let i=this._metasets[e];i&&i.controller&&i.controller._destroy(),delete this._metasets[e]}_stop(){let e,i;for(this.stop(),vl.remove(this),e=0,i=this.data.datasets.length;e{i.addEventListener(this,a,s),e[a]=s},o=(a,s,l)=>{a.offsetX=s,a.offsetY=l,this._eventHandler(a)};ii(this.options.events,a=>r(a,o))}bindResponsiveEvents(){this._responsiveListeners||(this._responsiveListeners={});let e=this._responsiveListeners,i=this.platform,r=(c,d)=>{i.addEventListener(this,c,d),e[c]=d},o=(c,d)=>{e[c]&&(i.removeEventListener(this,c,d),delete e[c])},a=(c,d)=>{this.canvas&&this.resize(c,d)},s,l=()=>{o("attach",l),this.attached=!0,this.resize(),r("resize",a),r("detach",s)};s=()=>{this.attached=!1,o("resize",a),this._stop(),this._resize(0,0),r("attach",l)},i.isAttached(this.canvas)?l():s()}unbindEvents(){ii(this._listeners,(e,i)=>{this.platform.removeEventListener(this,i,e)}),this._listeners={},ii(this._responsiveListeners,(e,i)=>{this.platform.removeEventListener(this,i,e)}),this._responsiveListeners=void 0}updateHoverStyle(e,i,r){let o=r?"set":"remove",a,s,l,c;for(i==="dataset"&&(a=this.getDatasetMeta(e[0].datasetIndex),a.controller["_"+o+"DatasetHoverStyle"]()),l=0,c=e.length;l{let l=this.getDatasetMeta(a);if(!l)throw new Error("No dataset found at index "+a);return{datasetIndex:a,element:l.data[s],index:s}});!Bg(r,i)&&(this._active=r,this._lastEvent=null,this._updateHoverStyles(r,i))}notifyPlugins(e,i,r){return this._plugins.notify(this,e,i,r)}isPluginEnabled(e){return this._plugins._cache.filter(i=>i.plugin.id===e).length===1}_updateHoverStyles(e,i,r){let o=this.options.hover,a=(c,d)=>c.filter(m=>!d.some(f=>m.datasetIndex===f.datasetIndex&&m.index===f.index)),s=a(i,e),l=r?e:a(e,i);s.length&&this.updateHoverStyle(s,o.mode,!1),l.length&&o.mode&&this.updateHoverStyle(l,o.mode,!0)}_eventHandler(e,i){let r={event:e,replay:i,cancelable:!0,inChartArea:this.isPointInArea(e)},o=s=>(s.options.events||this.options.events).includes(e.native.type);if(this.notifyPlugins("beforeEvent",r,o)===!1)return;let a=this._handleEvent(e,i,r.inChartArea);return r.cancelable=!1,this.notifyPlugins("afterEvent",r,o),(a||r.changed)&&this.render(),this}_handleEvent(e,i,r){let{_active:o=[],options:a}=this,s=i,l=this._getActiveElements(e,o,r,s),c=Dj(e),d=Joe(e,this._lastEvent,r,c);r&&(this._lastEvent=null,yi(a.onHover,[e,l,this],this),c&&yi(a.onClick,[e,l,this],this));let m=!Bg(l,o);return(m||i)&&(this._active=l,this._updateHoverStyles(l,o,i)),this._lastEvent=d,m}_getActiveElements(e,i,r,o){if(e.type==="mouseout")return[];if(!r)return i;let a=this.options.hover;return this.getElementsAtEventForMode(e,a.mode,a,o)}}return t})();function w4(){return ii(uC.instances,t=>t._plugins.invalidate())}function eae(t,n,e){let{startAngle:i,x:r,y:o,outerRadius:a,innerRadius:s,options:l}=n,{borderWidth:c,borderJoinStyle:d}=l,m=Math.min(c/a,or(i-e));if(t.beginPath(),t.arc(r,o,a-c/2,i+m/2,e-m/2),s>0){let f=Math.min(c/s,or(i-e));t.arc(r,o,s+c/2,e-f/2,i+f/2,!0)}else{let f=Math.min(c/2,a*or(i-e));if(d==="round")t.arc(r,o,f,e-Ht/2,i+Ht/2,!0);else if(d==="bevel"){let b=2*f*f,v=-b*Math.cos(e+Ht/2)+r,w=-b*Math.sin(e+Ht/2)+o,x=b*Math.cos(i+Ht/2)+r,D=b*Math.sin(i+Ht/2)+o;t.lineTo(v,w),t.lineTo(x,D)}}t.closePath(),t.moveTo(0,0),t.rect(0,0,t.canvas.width,t.canvas.height),t.clip("evenodd")}function tae(t,n,e){let{startAngle:i,pixelMargin:r,x:o,y:a,outerRadius:s,innerRadius:l}=n,c=r/s;t.beginPath(),t.arc(o,a,s,i-c,e+c),l>r?(c=r/l,t.arc(o,a,l,e+c,i-c,!0)):t.arc(o,a,r,e+Zi,i-Zi),t.closePath(),t.clip()}function iae(t){return Gx(t,["outerStart","outerEnd","innerStart","innerEnd"])}function nae(t,n,e,i){let r=iae(t.options.borderRadius),o=(e-n)/2,a=Math.min(o,i*n/2),s=l=>{let c=(e-Math.min(o,l))*i/2;return Dn(l,0,Math.min(o,c))};return{outerStart:s(r.outerStart),outerEnd:s(r.outerEnd),innerStart:Dn(r.innerStart,0,a),innerEnd:Dn(r.innerEnd,0,a)}}function zh(t,n,e,i){return{x:e+t*Math.cos(n),y:i+t*Math.sin(n)}}function lC(t,n,e,i,r,o){let{x:a,y:s,startAngle:l,pixelMargin:c,innerRadius:d}=n,m=Math.max(n.outerRadius+i+e-c,0),f=d>0?d+i+e+c:0,b=0,v=r-l;if(i){let ui=d>0?d-i:0,Pi=m>0?m-i:0,en=(ui+Pi)/2,ma=en!==0?v*en/(en+i):v;b=(v-ma)/2}let w=Math.max(.001,v*m-e/Ht)/m,x=(v-w)/2,D=l+x+b,P=r-x-b,{outerStart:W,outerEnd:Z,innerStart:K,innerEnd:re}=nae(n,f,m,P-D),Ee=m-W,be=m-Z,Ve=D+W/Ee,yt=P-Z/be,bt=f+K,It=f+re,$n=D+K/bt,lo=P-re/It;if(t.beginPath(),o){let ui=(Ve+yt)/2;if(t.arc(a,s,m,Ve,ui),t.arc(a,s,m,ui,yt),Z>0){let lr=zh(be,yt,a,s);t.arc(lr.x,lr.y,Z,yt,P+Zi)}let Pi=zh(It,P,a,s);if(t.lineTo(Pi.x,Pi.y),re>0){let lr=zh(It,lo,a,s);t.arc(lr.x,lr.y,re,P+Zi,lo+Math.PI)}let en=(P-re/f+(D+K/f))/2;if(t.arc(a,s,f,P-re/f,en,!0),t.arc(a,s,f,en,D+K/f,!0),K>0){let lr=zh(bt,$n,a,s);t.arc(lr.x,lr.y,K,$n+Math.PI,D-Zi)}let ma=zh(Ee,D,a,s);if(t.lineTo(ma.x,ma.y),W>0){let lr=zh(Ee,Ve,a,s);t.arc(lr.x,lr.y,W,D-Zi,Ve)}}else{t.moveTo(a,s);let ui=Math.cos(Ve)*m+a,Pi=Math.sin(Ve)*m+s;t.lineTo(ui,Pi);let en=Math.cos(yt)*m+a,ma=Math.sin(yt)*m+s;t.lineTo(en,ma)}t.closePath()}function rae(t,n,e,i,r){let{fullCircles:o,startAngle:a,circumference:s}=n,l=n.endAngle;if(o){lC(t,n,e,i,l,r);for(let c=0;c=Ht&&b===0&&d!=="miter"&&eae(t,n,w),o||(lC(t,n,e,i,w,r),t.stroke())}var $T=class extends ja{static id="arc";static defaults={borderAlign:"center",borderColor:"#fff",borderDash:[],borderDashOffset:0,borderJoinStyle:void 0,borderRadius:0,borderWidth:2,offset:0,spacing:0,angle:void 0,circular:!0,selfJoin:!1};static defaultRoutes={backgroundColor:"backgroundColor"};static descriptors={_scriptable:!0,_indexable:n=>n!=="borderDash"};circumference;endAngle;fullCircles;innerRadius;outerRadius;pixelMargin;startAngle;constructor(n){super(),this.options=void 0,this.circumference=void 0,this.startAngle=void 0,this.endAngle=void 0,this.innerRadius=void 0,this.outerRadius=void 0,this.pixelMargin=0,this.fullCircles=0,n&&Object.assign(this,n)}inRange(n,e,i){let r=this.getProps(["x","y"],i),{angle:o,distance:a}=eT(r,{x:n,y:e}),{startAngle:s,endAngle:l,innerRadius:c,outerRadius:d,circumference:m}=this.getProps(["startAngle","endAngle","innerRadius","outerRadius","circumference"],i),f=(this.options.spacing+this.options.borderWidth)/2,b=st(m,l-s),v=Vh(o,s,l)&&s!==l,w=b>=Mi||v,x=Is(a,c+f,d+f);return w&&x}getCenterPoint(n){let{x:e,y:i,startAngle:r,endAngle:o,innerRadius:a,outerRadius:s}=this.getProps(["x","y","startAngle","endAngle","innerRadius","outerRadius"],n),{offset:l,spacing:c}=this.options,d=(r+o)/2,m=(a+s+c+l)/2;return{x:e+Math.cos(d)*m,y:i+Math.sin(d)*m}}tooltipPosition(n){return this.getCenterPoint(n)}draw(n){let{options:e,circumference:i}=this,r=(e.offset||0)/4,o=(e.spacing||0)/2,a=e.circular;if(this.pixelMargin=e.borderAlign==="inner"?.33:0,this.fullCircles=i>Mi?Math.floor(i/Mi):0,i===0||this.innerRadius<0||this.outerRadius<0)return;n.save();let s=(this.startAngle+this.endAngle)/2;n.translate(Math.cos(s)*r,Math.sin(s)*r);let l=1-Math.sin(Math.min(Ht,i||0)),c=r*l;n.fillStyle=e.backgroundColor,n.strokeStyle=e.borderColor,rae(n,this,c,o,a),oae(n,this,c,o,a),n.restore()}};function sH(t,n,e=n){t.lineCap=st(e.borderCapStyle,n.borderCapStyle),t.setLineDash(st(e.borderDash,n.borderDash)),t.lineDashOffset=st(e.borderDashOffset,n.borderDashOffset),t.lineJoin=st(e.borderJoinStyle,n.borderJoinStyle),t.lineWidth=st(e.borderWidth,n.borderWidth),t.strokeStyle=st(e.borderColor,n.borderColor)}function aae(t,n,e){t.lineTo(e.x,e.y)}function sae(t){return t.stepped?Nj:t.tension||t.cubicInterpolationMode==="monotone"?Lj:aae}function lH(t,n,e={}){let i=t.length,{start:r=0,end:o=i-1}=e,{start:a,end:s}=n,l=Math.max(r,a),c=Math.min(o,s),d=rs&&o>s;return{count:i,start:l,loop:n.loop,ilen:c(a+(c?s-Z:Z))%o,W=()=>{w!==x&&(t.lineTo(d,x),t.lineTo(d,w),t.lineTo(d,D))};for(l&&(b=r[P(0)],t.moveTo(b.x,b.y)),f=0;f<=s;++f){if(b=r[P(f)],b.skip)continue;let Z=b.x,K=b.y,re=Z|0;re===v?(Kx&&(x=K),d=(m*d+Z)/++m):(W(),t.lineTo(Z,K),v=re,m=0,w=x=K),D=K}W()}function WT(t){let n=t.options,e=n.borderDash&&n.borderDash.length;return!t._decimated&&!t._loop&&!n.tension&&n.cubicInterpolationMode!=="monotone"&&!n.stepped&&!e?cae:lae}function dae(t){return t.stepped?Gj:t.tension||t.cubicInterpolationMode==="monotone"?qj:Dc}function uae(t,n,e,i){let r=n._path;r||(r=n._path=new Path2D,n.path(r,e,i)&&r.closePath()),sH(t,n.options),t.stroke(r)}function mae(t,n,e,i){let{segments:r,options:o}=n,a=WT(n);for(let s of r)sH(t,o,s.style),t.beginPath(),a(t,n,s,{start:e,end:e+i-1})&&t.closePath(),t.stroke()}var hae=typeof Path2D=="function";function pae(t,n,e,i){hae&&!n.options.segment?uae(t,n,e,i):mae(t,n,e,i)}var mC=(()=>{class t extends ja{static id="line";static defaults={borderCapStyle:"butt",borderDash:[],borderDashOffset:0,borderJoinStyle:"miter",borderWidth:3,capBezierPoints:!0,cubicInterpolationMode:"default",fill:!1,spanGaps:!1,stepped:!1,tension:0};static defaultRoutes={backgroundColor:"backgroundColor",borderColor:"borderColor"};static descriptors={_scriptable:!0,_indexable:e=>e!=="borderDash"&&e!=="fill"};constructor(e){super(),this.animated=!0,this.options=void 0,this._chart=void 0,this._loop=void 0,this._fullLoop=void 0,this._path=void 0,this._points=void 0,this._segments=void 0,this._decimated=!1,this._pointsUpdated=!1,this._datasetIndex=void 0,e&&Object.assign(this,e)}updateControlPoints(e,i){let r=this.options;if((r.tension||r.cubicInterpolationMode==="monotone")&&!r.stepped&&!this._pointsUpdated){let o=r.spanGaps?this._loop:this._fullLoop;Uj(this._points,r,e,o,i),this._pointsUpdated=!0}}set points(e){this._points=e,delete this._segments,delete this._path,this._pointsUpdated=!1}get points(){return this._points}get segments(){return this._segments||(this._segments=Qj(this,this.options.segment))}first(){let e=this.segments,i=this.points;return e.length&&i[e[0].start]}last(){let e=this.segments,i=this.points,r=e.length;return r&&i[e[r-1].end]}interpolate(e,i){let r=this.options,o=e[i],a=this.points,s=xT(this,{property:i,start:o,end:o});if(!s.length)return;let l=[],c=dae(r),d,m;for(d=0,m=s.length;d{class t extends ja{static id="point";parsed;skip;stop;static defaults={borderWidth:1,hitRadius:1,hoverBorderWidth:1,hoverRadius:4,pointStyle:"circle",radius:3,rotation:0};static defaultRoutes={backgroundColor:"backgroundColor",borderColor:"borderColor"};constructor(e){super(),this.options=void 0,this.parsed=void 0,this.skip=void 0,this.stop=void 0,e&&Object.assign(this,e)}inRange(e,i,r){let o=this.options,{x:a,y:s}=this.getProps(["x","y"],r);return Math.pow(e-a,2)+Math.pow(i-s,2)t.replace("rgb(","rgba(").replace(")",", 0.5)"));function dH(t){return qT[t%qT.length]}function uH(t){return E4[t%E4.length]}function Cae(t,n){return t.borderColor=dH(n),t.backgroundColor=uH(n),++n}function wae(t,n){return t.backgroundColor=t.data.map(()=>dH(n++)),n}function Dae(t,n){return t.backgroundColor=t.data.map(()=>uH(n++)),n}function Eae(t){let n=0;return(e,i)=>{let r=t.getDatasetMeta(i).controller;r instanceof tI?n=wae(e,n):r instanceof X4?n=Dae(e,n):r&&(n=Cae(e,n))}}function M4(t){let n;for(n in t)if(t[n].borderColor||t[n].backgroundColor)return!0;return!1}function Mae(t){return t&&(t.borderColor||t.backgroundColor)}function kae(){return xi.borderColor!=="rgba(0,0,0,0.1)"||xi.backgroundColor!=="rgba(0,0,0,0.1)"}var Sae={id:"colors",defaults:{enabled:!0,forceOverride:!1},beforeLayout(t,n,e){if(!e.enabled)return;let{data:{datasets:i},options:r}=t.config,{elements:o}=r,a=M4(i)||Mae(r)||o&&M4(o)||kae();if(!e.forceOverride&&a)return;let s=Eae(t);i.forEach(s)}};function Tae(t,n,e,i,r){let o=r.samples||i;if(o>=e)return t.slice(n,n+e);let a=[],s=(e-2)/(o-2),l=0,c=n+e-1,d=n,m,f,b,v,w;for(a[l++]=t[d],m=0;mb&&(b=v,f=t[P],w=P);a[l++]=f,d=w}return a[l++]=t[c],a}function Iae(t,n,e,i){let r=0,o=0,a,s,l,c,d,m,f,b,v,w,x=[],D=n+e-1,P=t[n].x,Z=t[D].x-P;for(a=n;aw&&(w=c,f=a),r=(o*r+s.x)/++o;else{let re=a-1;if(!Et(m)&&!Et(f)){let Ee=Math.min(m,f),be=Math.max(m,f);Ee!==b&&Ee!==re&&x.push(De(M({},t[Ee]),{x:r})),be!==b&&be!==re&&x.push(De(M({},t[be]),{x:r}))}a>0&&re!==b&&x.push(t[re]),x.push(s),d=K,o=0,v=w=c,m=f=b=a}}return x}function mH(t){if(t._decimated){let n=t._data;delete t._decimated,delete t._data,Object.defineProperty(t,"data",{configurable:!0,enumerable:!0,writable:!0,value:n})}}function k4(t){t.data.datasets.forEach(n=>{mH(n)})}function Aae(t,n){let e=n.length,i=0,r,{iScale:o}=t,{min:a,max:s,minDefined:l,maxDefined:c}=o.getUserBounds();return l&&(i=Dn(ks(n,o.axis,a).lo,0,e-1)),c?r=Dn(ks(n,o.axis,s).hi+1,i,e)-i:r=e-i,{start:i,count:r}}var Oae={id:"decimation",defaults:{algorithm:"min-max",enabled:!1},beforeElementsUpdate:(t,n,e)=>{if(!e.enabled){k4(t);return}let i=t.width;t.data.datasets.forEach((r,o)=>{let{_data:a,indexAxis:s}=r,l=t.getDatasetMeta(o),c=a||r.data;if(Hh([s,t.options.indexAxis])==="y"||!l.controller.supportsDecimation)return;let d=t.scales[l.xAxisID];if(d.type!=="linear"&&d.type!=="time"||t.options.parsing)return;let{start:m,count:f}=Aae(l,c),b=e.threshold||4*i;if(f<=b){mH(r);return}Et(a)&&(r._data=c,delete r.data,Object.defineProperty(r,"data",{configurable:!0,enumerable:!0,get:function(){return this._decimated},set:function(w){this._data=w}}));let v;switch(e.algorithm){case"lttb":v=Tae(c,m,f,i,e);break;case"min-max":v=Iae(c,m,f,i);break;default:throw new Error(`Unsupported decimation algorithm '${e.algorithm}'`)}r._decimated=v})},destroy(t){k4(t)}};function Rae(t,n,e){let i=t.segments,r=t.points,o=n.points,a=[];for(let s of i){let{start:l,end:c}=s;c=hC(l,c,r);let d=YT(e,r[l],r[c],s.loop);if(!n.segments){a.push({source:s,target:d,start:r[l],end:r[c]});continue}let m=xT(n,d);for(let f of m){let b=YT(e,o[f.start],o[f.end],f.loop),v=yT(s,r,b);for(let w of v)a.push({source:w,target:f,start:{[e]:S4(d,b,"start",Math.max)},end:{[e]:S4(d,b,"end",Math.min)}})}}return a}function YT(t,n,e,i){if(i)return;let r=n[t],o=e[t];return t==="angle"&&(r=or(r),o=or(o)),{property:t,start:r,end:o}}function Pae(t,n){let{x:e=null,y:i=null}=t||{},r=n.points,o=[];return n.segments.forEach(({start:a,end:s})=>{s=hC(a,s,r);let l=r[a],c=r[s];i!==null?(o.push({x:l.x,y:i}),o.push({x:c.x,y:i})):e!==null&&(o.push({x:e,y:l.y}),o.push({x:e,y:c.y}))}),o}function hC(t,n,e){for(;n>t;n--){let i=e[n];if(!isNaN(i.x)&&!isNaN(i.y))break}return n}function S4(t,n,e,i){return t&&n?i(t[e],n[e]):t?t[e]:n?n[e]:0}function hH(t,n){let e=[],i=!1;return Ei(t)?(i=!0,e=t):e=Pae(t,n),e.length?new mC({points:e,options:{tension:0},_loop:i,_fullLoop:i}):null}function T4(t){return t&&t.fill!==!1}function Fae(t,n,e){let r=t[n].fill,o=[n],a;if(!e)return r;for(;r!==!1&&o.indexOf(r)===-1;){if(!Gi(r))return r;if(a=t[r],!a)return!1;if(a.visible)return r;o.push(r),r=a.fill}return!1}function Nae(t,n,e){let i=jae(t);if(St(i))return isNaN(i.value)?!1:i;let r=parseFloat(i);return Gi(r)&&Math.floor(r)===r?Lae(i[0],n,r,e):["origin","start","end","stack","shape"].indexOf(i)>=0&&i}function Lae(t,n,e,i){return(t==="-"||t==="+")&&(e=n+e),e===n||e<0||e>=i?!1:e}function Vae(t,n){let e=null;return t==="start"?e=n.bottom:t==="end"?e=n.top:St(t)?e=n.getPixelForValue(t.value):n.getBasePixel&&(e=n.getBasePixel()),e}function Bae(t,n,e){let i;return t==="start"?i=e:t==="end"?i=n.options.reverse?n.min:n.max:St(t)?i=t.value:i=n.getBaseValue(),i}function jae(t){let n=t.options,e=n.fill,i=st(e&&e.target,e);return i===void 0&&(i=!!n.backgroundColor),i===!1||i===null?!1:i===!0?"origin":i}function Hae(t){let{scale:n,index:e,line:i}=t,r=[],o=i.segments,a=i.points,s=zae(n,e);s.push(hH({x:null,y:n.bottom},i));for(let l=0;l=0;--a){let s=r[a].$filler;s&&(s.line.updateControlPoints(o,s.axis),i&&s.fill&&OT(t.ctx,s,o))}},beforeDatasetsDraw(t,n,e){if(e.drawTime!=="beforeDatasetsDraw")return;let i=t.getSortedVisibleDatasetMetas();for(let r=i.length-1;r>=0;--r){let o=i[r].$filler;T4(o)&&OT(t.ctx,o,t.chartArea)}},beforeDatasetDraw(t,n,e){let i=n.meta.$filler;!T4(i)||e.drawTime!=="beforeDatasetDraw"||OT(t.ctx,i,t.chartArea)},defaults:{propagate:!0,drawTime:"beforeDatasetDraw"}},R4=(t,n)=>{let{boxHeight:e=n,boxWidth:i=n}=t;return t.usePointStyle&&(e=Math.min(e,n),i=t.pointStyleWidth||Math.min(i,n)),{boxWidth:i,boxHeight:e,itemHeight:Math.max(n,e)}},Jae=(t,n)=>t!==null&&n!==null&&t.datasetIndex===n.datasetIndex&&t.index===n.index,dC=class extends ja{constructor(n){super(),this._added=!1,this.legendHitBoxes=[],this._hoveredItem=null,this.doughnutMode=!1,this.chart=n.chart,this.options=n.options,this.ctx=n.ctx,this.legendItems=void 0,this.columnSizes=void 0,this.lineWidths=void 0,this.maxHeight=void 0,this.maxWidth=void 0,this.top=void 0,this.bottom=void 0,this.left=void 0,this.right=void 0,this.height=void 0,this.width=void 0,this._margins=void 0,this.position=void 0,this.weight=void 0,this.fullSize=void 0}update(n,e,i){this.maxWidth=n,this.maxHeight=e,this._margins=i,this.setDimensions(),this.buildLabels(),this.fit()}setDimensions(){this.isHorizontal()?(this.width=this.maxWidth,this.left=this._margins.left,this.right=this.width):(this.height=this.maxHeight,this.top=this._margins.top,this.bottom=this.height)}buildLabels(){let n=this.options.labels||{},e=yi(n.generateLabels,[this.chart],this)||[];n.filter&&(e=e.filter(i=>n.filter(i,this.chart.data))),n.sort&&(e=e.sort((i,r)=>n.sort(i,r,this.chart.data))),this.options.reverse&&e.reverse(),this.legendItems=e}fit(){let{options:n,ctx:e}=this;if(!n.display){this.width=this.height=0;return}let i=n.labels,r=pn(i.font),o=r.size,a=this._computeTitleHeight(),{boxWidth:s,itemHeight:l}=R4(i,o),c,d;e.font=r.string,this.isHorizontal()?(c=this.maxWidth,d=this._fitRows(a,o,s,l)+10):(d=this.maxHeight,c=this._fitCols(a,r,s,l)+10),this.width=Math.min(c,n.maxWidth||this.maxWidth),this.height=Math.min(d,n.maxHeight||this.maxHeight)}_fitRows(n,e,i,r){let{ctx:o,maxWidth:a,options:{labels:{padding:s}}}=this,l=this.legendHitBoxes=[],c=this.lineWidths=[0],d=r+s,m=n;o.textAlign="left",o.textBaseline="middle";let f=-1,b=-d;return this.legendItems.forEach((v,w)=>{let x=i+e/2+o.measureText(v.text).width;(w===0||c[c.length-1]+x+2*s>a)&&(m+=d,c[c.length-(w>0?0:1)]=0,b+=d,f++),l[w]={left:0,top:b,row:f,width:x,height:r},c[c.length-1]+=x+s}),m}_fitCols(n,e,i,r){let{ctx:o,maxHeight:a,options:{labels:{padding:s}}}=this,l=this.legendHitBoxes=[],c=this.columnSizes=[],d=a-n,m=s,f=0,b=0,v=0,w=0;return this.legendItems.forEach((x,D)=>{let{itemWidth:P,itemHeight:W}=ese(i,e,o,x,r);D>0&&b+W+2*s>d&&(m+=f+s,c.push({width:f,height:b}),v+=f+s,w++,f=b=0),l[D]={left:v,top:b,col:w,width:P,height:W},f=Math.max(f,P),b+=W+s}),m+=f,c.push({width:f,height:b}),m}adjustHitBoxes(){if(!this.options.display)return;let n=this._computeTitleHeight(),{legendHitBoxes:e,options:{align:i,labels:{padding:r},rtl:o}}=this,a=Cu(o,this.left,this.width);if(this.isHorizontal()){let s=0,l=ar(i,this.left+r,this.right-this.lineWidths[s]);for(let c of e)s!==c.row&&(s=c.row,l=ar(i,this.left+r,this.right-this.lineWidths[s])),c.top+=this.top+n+r,c.left=a.leftForLtr(a.x(l),c.width),l+=c.width+r}else{let s=0,l=ar(i,this.top+n+r,this.bottom-this.columnSizes[s].height);for(let c of e)c.col!==s&&(s=c.col,l=ar(i,this.top+n+r,this.bottom-this.columnSizes[s].height)),c.top=l,c.left+=this.left+r,c.left=a.leftForLtr(a.x(c.left),c.width),l+=c.height+r}}isHorizontal(){return this.options.position==="top"||this.options.position==="bottom"}draw(){if(this.options.display){let n=this.ctx;Hg(n,this),this._draw(),zg(n)}}_draw(){let{options:n,columnSizes:e,lineWidths:i,ctx:r}=this,{align:o,labels:a}=n,s=xi.color,l=Cu(n.rtl,this.left,this.width),c=pn(a.font),{padding:d}=a,m=c.size,f=m/2,b;this.drawTitle(),r.textAlign=l.textAlign("left"),r.textBaseline="middle",r.lineWidth=.5,r.font=c.string;let{boxWidth:v,boxHeight:w,itemHeight:x}=R4(a,m),D=function(re,Ee,be){if(isNaN(v)||v<=0||isNaN(w)||w<0)return;r.save();let Ve=st(be.lineWidth,1);if(r.fillStyle=st(be.fillStyle,s),r.lineCap=st(be.lineCap,"butt"),r.lineDashOffset=st(be.lineDashOffset,0),r.lineJoin=st(be.lineJoin,"miter"),r.lineWidth=Ve,r.strokeStyle=st(be.strokeStyle,s),r.setLineDash(st(be.lineDash,[])),a.usePointStyle){let yt={radius:w*Math.SQRT2/2,pointStyle:be.pointStyle,rotation:be.rotation,borderWidth:Ve},bt=l.xPlus(re,v/2),It=Ee+f;dT(r,yt,bt,It,a.pointStyleWidth&&v)}else{let yt=Ee+Math.max((m-w)/2,0),bt=l.leftForLtr(re,v),It=Tc(be.borderRadius);r.beginPath(),Object.values(It).some($n=>$n!==0)?jh(r,{x:bt,y:yt,w:v,h:w,radius:It}):r.rect(bt,yt,v,w),r.fill(),Ve!==0&&r.stroke()}r.restore()},P=function(re,Ee,be){Sc(r,be.text,re,Ee+x/2,c,{strikethrough:be.hidden,textAlign:l.textAlign(be.textAlign)})},W=this.isHorizontal(),Z=this._computeTitleHeight();W?b={x:ar(o,this.left+d,this.right-i[0]),y:this.top+d+Z,line:0}:b={x:this.left+d,y:ar(o,this.top+Z+d,this.bottom-e[0].height),line:0},bT(this.ctx,n.textDirection);let K=x+d;this.legendItems.forEach((re,Ee)=>{r.strokeStyle=re.fontColor,r.fillStyle=re.fontColor;let be=r.measureText(re.text).width,Ve=l.textAlign(re.textAlign||(re.textAlign=a.textAlign)),yt=v+f+be,bt=b.x,It=b.y;l.setWidth(this.width),W?Ee>0&&bt+yt+d>this.right&&(It=b.y+=K,b.line++,bt=b.x=ar(o,this.left+d,this.right-i[b.line])):Ee>0&&It+K>this.bottom&&(bt=b.x=bt+e[b.line].width+d,b.line++,It=b.y=ar(o,this.top+Z+d,this.bottom-e[b.line].height));let $n=l.x(bt);if(D($n,It,re),bt=Rj(Ve,bt+v+f,W?bt+yt:this.right,n.rtl),P(l.x(bt),It,re),W)b.x+=yt+d;else if(typeof re.text!="string"){let lo=c.lineHeight;b.y+=pH(re,lo)+d}else b.y+=K}),vT(this.ctx,n.textDirection)}drawTitle(){let n=this.options,e=n.title,i=pn(e.font),r=sr(e.padding);if(!e.display)return;let o=Cu(n.rtl,this.left,this.width),a=this.ctx,s=e.position,l=i.size/2,c=r.top+l,d,m=this.left,f=this.width;if(this.isHorizontal())f=Math.max(...this.lineWidths),d=this.top+c,m=ar(n.align,m,this.right-f);else{let v=this.columnSizes.reduce((w,x)=>Math.max(w,x.height),0);d=c+ar(n.align,this.top,this.bottom-v-n.labels.padding-this._computeTitleHeight())}let b=ar(s,m,m+f);a.textAlign=o.textAlign(Ux(s)),a.textBaseline="middle",a.strokeStyle=e.color,a.fillStyle=e.color,a.font=i.string,Sc(a,e.text,b,d,i)}_computeTitleHeight(){let n=this.options.title,e=pn(n.font),i=sr(n.padding);return n.display?e.lineHeight+i.height:0}_getLegendItemAt(n,e){let i,r,o;if(Is(n,this.left,this.right)&&Is(e,this.top,this.bottom)){for(o=this.legendHitBoxes,i=0;io.length>a.length?o:a)),n+e.size/2+i.measureText(r).width}function ise(t,n,e){let i=t;return typeof n.text!="string"&&(i=pH(n,e)),i}function pH(t,n){let e=t.text?t.text.length:0;return n*e}function nse(t,n){return!!((t==="mousemove"||t==="mouseout")&&(n.onHover||n.onLeave)||n.onClick&&(t==="click"||t==="mouseup"))}var rse={id:"legend",_element:dC,start(t,n,e){let i=t.legend=new dC({ctx:t.ctx,options:e,chart:t});Dr.configure(t,i,e),Dr.addBox(t,i)},stop(t){Dr.removeBox(t,t.legend),delete t.legend},beforeUpdate(t,n,e){let i=t.legend;Dr.configure(t,i,e),i.options=e},afterUpdate(t){let n=t.legend;n.buildLabels(),n.adjustHitBoxes()},afterEvent(t,n){n.replay||t.legend.handleEvent(n.event)},defaults:{display:!0,position:"top",align:"center",fullSize:!0,reverse:!1,weight:1e3,onClick(t,n,e){let i=n.datasetIndex,r=e.chart;r.isDatasetVisible(i)?(r.hide(i),n.hidden=!0):(r.show(i),n.hidden=!1)},onHover:null,onLeave:null,labels:{color:t=>t.chart.options.color,boxWidth:40,padding:10,generateLabels(t){let n=t.data.datasets,{labels:{usePointStyle:e,pointStyle:i,textAlign:r,color:o,useBorderRadius:a,borderRadius:s}}=t.legend.options;return t._getSortedDatasetMetas().map(l=>{let c=l.controller.getStyle(e?0:void 0),d=sr(c.borderWidth);return{text:n[l.index].label,fillStyle:c.backgroundColor,fontColor:o,hidden:!l.visible,lineCap:c.borderCapStyle,lineDash:c.borderDash,lineDashOffset:c.borderDashOffset,lineJoin:c.borderJoinStyle,lineWidth:(d.width+d.height)/4,strokeStyle:c.borderColor,pointStyle:i||c.pointStyle,rotation:c.rotation,textAlign:r||c.textAlign,borderRadius:a&&(s||c.borderRadius),datasetIndex:l.index}},this)}},title:{color:t=>t.chart.options.color,display:!1,position:"center",text:""}},descriptors:{_scriptable:t=>!t.startsWith("on"),labels:{_scriptable:t=>!["generateLabels","filter","sort"].includes(t)}}},Zg=class extends ja{constructor(n){super(),this.chart=n.chart,this.options=n.options,this.ctx=n.ctx,this._padding=void 0,this.top=void 0,this.bottom=void 0,this.left=void 0,this.right=void 0,this.width=void 0,this.height=void 0,this.position=void 0,this.weight=void 0,this.fullSize=void 0}update(n,e){let i=this.options;if(this.left=0,this.top=0,!i.display){this.width=this.height=this.right=this.bottom=0;return}this.width=this.right=n,this.height=this.bottom=e;let r=Ei(i.text)?i.text.length:1;this._padding=sr(i.padding);let o=r*pn(i.font).lineHeight+this._padding.height;this.isHorizontal()?this.height=o:this.width=o}isHorizontal(){let n=this.options.position;return n==="top"||n==="bottom"}_drawArgs(n){let{top:e,left:i,bottom:r,right:o,options:a}=this,s=a.align,l=0,c,d,m;return this.isHorizontal()?(d=ar(s,i,o),m=e+n,c=o-i):(a.position==="left"?(d=i+n,m=ar(s,r,e),l=Ht*-.5):(d=o-n,m=ar(s,e,r),l=Ht*.5),c=r-e),{titleX:d,titleY:m,maxWidth:c,rotation:l}}draw(){let n=this.ctx,e=this.options;if(!e.display)return;let i=pn(e.font),o=i.lineHeight/2+this._padding.top,{titleX:a,titleY:s,maxWidth:l,rotation:c}=this._drawArgs(o);Sc(n,e.text,0,0,i,{color:e.color,maxWidth:l,rotation:c,textAlign:Ux(e.align),textBaseline:"middle",translation:[a,s]})}};function ose(t,n){let e=new Zg({ctx:t.ctx,options:n,chart:t});Dr.configure(t,e,n),Dr.addBox(t,e),t.titleBlock=e}var ase={id:"title",_element:Zg,start(t,n,e){ose(t,e)},stop(t){let n=t.titleBlock;Dr.removeBox(t,n),delete t.titleBlock},beforeUpdate(t,n,e){let i=t.titleBlock;Dr.configure(t,i,e),i.options=e},defaults:{align:"center",display:!1,font:{weight:"bold"},fullSize:!0,padding:10,position:"top",text:"",weight:2e3},defaultRoutes:{color:"color"},descriptors:{_scriptable:!0,_indexable:!1}},eC=new WeakMap,sse={id:"subtitle",start(t,n,e){let i=new Zg({ctx:t.ctx,options:e,chart:t});Dr.configure(t,i,e),Dr.addBox(t,i),eC.set(t,i)},stop(t){Dr.removeBox(t,eC.get(t)),eC.delete(t)},beforeUpdate(t,n,e){let i=eC.get(t);Dr.configure(t,i,e),i.options=e},defaults:{align:"center",display:!1,font:{weight:"normal"},fullSize:!0,padding:0,position:"top",text:"",weight:1500},defaultRoutes:{color:"color"},descriptors:{_scriptable:!0,_indexable:!1}},Qg={average(t){if(!t.length)return!1;let n,e,i=new Set,r=0,o=0;for(n=0,e=t.length;ns+l)/i.size,y:r/o}},nearest(t,n){if(!t.length)return!1;let e=n.x,i=n.y,r=Number.POSITIVE_INFINITY,o,a,s;for(o=0,a=t.length;o-1?t.split(` -`):t}function cse(t,n){let{element:e,datasetIndex:i,index:r}=n,o=t.getDatasetMeta(i).controller,{label:a,value:s}=o.getLabelAndValue(r);return{chart:t,label:a,parsed:o.getParsed(r),raw:t.data.datasets[i].data[r],formattedValue:s,dataset:o.getDataset(),dataIndex:r,datasetIndex:i,element:e}}function F4(t,n){let e=t.chart.ctx,{body:i,footer:r,title:o}=t,{boxWidth:a,boxHeight:s}=n,l=pn(n.bodyFont),c=pn(n.titleFont),d=pn(n.footerFont),m=o.length,f=r.length,b=i.length,v=sr(n.padding),w=v.height,x=0,D=i.reduce((Z,K)=>Z+K.before.length+K.lines.length+K.after.length,0);if(D+=t.beforeBody.length+t.afterBody.length,m&&(w+=m*c.lineHeight+(m-1)*n.titleSpacing+n.titleMarginBottom),D){let Z=n.displayColors?Math.max(s,l.lineHeight):l.lineHeight;w+=b*Z+(D-b)*l.lineHeight+(D-1)*n.bodySpacing}f&&(w+=n.footerMarginTop+f*d.lineHeight+(f-1)*n.footerSpacing);let P=0,W=function(Z){x=Math.max(x,e.measureText(Z).width+P)};return e.save(),e.font=c.string,ii(t.title,W),e.font=l.string,ii(t.beforeBody.concat(t.afterBody),W),P=n.displayColors?a+2+n.boxPadding:0,ii(i,Z=>{ii(Z.before,W),ii(Z.lines,W),ii(Z.after,W)}),P=0,e.font=d.string,ii(t.footer,W),e.restore(),x+=v.width,{width:x,height:w}}function dse(t,n){let{y:e,height:i}=n;return et.height-i/2?"bottom":"center"}function use(t,n,e,i){let{x:r,width:o}=i,a=e.caretSize+e.caretPadding;if(t==="left"&&r+o+a>n.width||t==="right"&&r-o-a<0)return!0}function mse(t,n,e,i){let{x:r,width:o}=e,{width:a,chartArea:{left:s,right:l}}=t,c="center";return i==="center"?c=r<=(s+l)/2?"left":"right":r<=o/2?c="left":r>=a-o/2&&(c="right"),use(c,t,n,e)&&(c="center"),c}function N4(t,n,e){let i=e.yAlign||n.yAlign||dse(t,e);return{xAlign:e.xAlign||n.xAlign||mse(t,n,e,i),yAlign:i}}function hse(t,n){let{x:e,width:i}=t;return n==="right"?e-=i:n==="center"&&(e-=i/2),e}function pse(t,n,e){let{y:i,height:r}=t;return n==="top"?i+=e:n==="bottom"?i-=r+e:i-=r/2,i}function L4(t,n,e,i){let{caretSize:r,caretPadding:o,cornerRadius:a}=t,{xAlign:s,yAlign:l}=e,c=r+o,{topLeft:d,topRight:m,bottomLeft:f,bottomRight:b}=Tc(a),v=hse(n,s),w=pse(n,l,c);return l==="center"?s==="left"?v+=c:s==="right"&&(v-=c):s==="left"?v-=Math.max(d,f)+r:s==="right"&&(v+=Math.max(m,b)+r),{x:Dn(v,0,i.width-n.width),y:Dn(w,0,i.height-n.height)}}function tC(t,n,e){let i=sr(e.padding);return n==="center"?t.x+t.width/2:n==="right"?t.x+t.width-i.right:t.x+i.left}function V4(t){return As([],yl(t))}function fse(t,n,e){return bl(t,{tooltip:n,tooltipItems:e,type:"tooltip"})}function B4(t,n){let e=n&&n.dataset&&n.dataset.tooltip&&n.dataset.tooltip.callbacks;return e?t.override(e):t}var gH={beforeTitle:Ts,title(t){if(t.length>0){let n=t[0],e=n.chart.data.labels,i=e?e.length:0;if(this&&this.options&&this.options.mode==="dataset")return n.dataset.label||"";if(n.label)return n.label;if(i>0&&n.dataIndex"u"?gH[n].call(e,i):r}var j4=(()=>{class t extends ja{static positioners=Qg;constructor(e){super(),this.opacity=0,this._active=[],this._eventPosition=void 0,this._size=void 0,this._cachedAnimations=void 0,this._tooltipItems=[],this.$animations=void 0,this.$context=void 0,this.chart=e.chart,this.options=e.options,this.dataPoints=void 0,this.title=void 0,this.beforeBody=void 0,this.body=void 0,this.afterBody=void 0,this.footer=void 0,this.xAlign=void 0,this.yAlign=void 0,this.x=void 0,this.y=void 0,this.height=void 0,this.width=void 0,this.caretX=void 0,this.caretY=void 0,this.labelColors=void 0,this.labelPointStyles=void 0,this.labelTextColors=void 0}initialize(e){this.options=e,this._cachedAnimations=void 0,this.$context=void 0}_resolveAnimations(){let e=this._cachedAnimations;if(e)return e;let i=this.chart,r=this.options.setContext(this.getContext()),o=r.enabled&&i.options.animation&&r.animations,a=new oC(this.chart,o);return o._cacheable&&(this._cachedAnimations=Object.freeze(a)),a}getContext(){return this.$context||(this.$context=fse(this.chart.getContext(),this,this._tooltipItems))}getTitle(e,i){let{callbacks:r}=i,o=ro(r,"beforeTitle",this,e),a=ro(r,"title",this,e),s=ro(r,"afterTitle",this,e),l=[];return l=As(l,yl(o)),l=As(l,yl(a)),l=As(l,yl(s)),l}getBeforeBody(e,i){return V4(ro(i.callbacks,"beforeBody",this,e))}getBody(e,i){let{callbacks:r}=i,o=[];return ii(e,a=>{let s={before:[],lines:[],after:[]},l=B4(r,a);As(s.before,yl(ro(l,"beforeLabel",this,a))),As(s.lines,ro(l,"label",this,a)),As(s.after,yl(ro(l,"afterLabel",this,a))),o.push(s)}),o}getAfterBody(e,i){return V4(ro(i.callbacks,"afterBody",this,e))}getFooter(e,i){let{callbacks:r}=i,o=ro(r,"beforeFooter",this,e),a=ro(r,"footer",this,e),s=ro(r,"afterFooter",this,e),l=[];return l=As(l,yl(o)),l=As(l,yl(a)),l=As(l,yl(s)),l}_createItems(e){let i=this._active,r=this.chart.data,o=[],a=[],s=[],l=[],c,d;for(c=0,d=i.length;ce.filter(m,f,b,r))),e.itemSort&&(l=l.sort((m,f)=>e.itemSort(m,f,r))),ii(l,m=>{let f=B4(e.callbacks,m);o.push(ro(f,"labelColor",this,m)),a.push(ro(f,"labelPointStyle",this,m)),s.push(ro(f,"labelTextColor",this,m))}),this.labelColors=o,this.labelPointStyles=a,this.labelTextColors=s,this.dataPoints=l,l}update(e,i){let r=this.options.setContext(this.getContext()),o=this._active,a,s=[];if(!o.length)this.opacity!==0&&(a={opacity:0});else{let l=Qg[r.position].call(this,o,this._eventPosition);s=this._createItems(r),this.title=this.getTitle(s,r),this.beforeBody=this.getBeforeBody(s,r),this.body=this.getBody(s,r),this.afterBody=this.getAfterBody(s,r),this.footer=this.getFooter(s,r);let c=this._size=F4(this,r),d=Object.assign({},l,c),m=N4(this.chart,r,d),f=L4(r,d,m,this.chart);this.xAlign=m.xAlign,this.yAlign=m.yAlign,a={opacity:1,x:f.x,y:f.y,width:c.width,height:c.height,caretX:l.x,caretY:l.y}}this._tooltipItems=s,this.$context=void 0,a&&this._resolveAnimations().update(this,a),e&&r.external&&r.external.call(this,{chart:this.chart,tooltip:this,replay:i})}drawCaret(e,i,r,o){let a=this.getCaretPosition(e,r,o);i.lineTo(a.x1,a.y1),i.lineTo(a.x2,a.y2),i.lineTo(a.x3,a.y3)}getCaretPosition(e,i,r){let{xAlign:o,yAlign:a}=this,{caretSize:s,cornerRadius:l}=r,{topLeft:c,topRight:d,bottomLeft:m,bottomRight:f}=Tc(l),{x:b,y:v}=e,{width:w,height:x}=i,D,P,W,Z,K,re;return a==="center"?(K=v+x/2,o==="left"?(D=b,P=D-s,Z=K+s,re=K-s):(D=b+w,P=D+s,Z=K-s,re=K+s),W=D):(o==="left"?P=b+Math.max(c,m)+s:o==="right"?P=b+w-Math.max(d,f)-s:P=this.caretX,a==="top"?(Z=v,K=Z-s,D=P-s,W=P+s):(Z=v+x,K=Z+s,D=P+s,W=P-s),re=Z),{x1:D,x2:P,x3:W,y1:Z,y2:K,y3:re}}drawTitle(e,i,r){let o=this.title,a=o.length,s,l,c;if(a){let d=Cu(r.rtl,this.x,this.width);for(e.x=tC(this,r.titleAlign,r),i.textAlign=d.textAlign(r.titleAlign),i.textBaseline="middle",s=pn(r.titleFont),l=r.titleSpacing,i.fillStyle=r.titleColor,i.font=s.string,c=0;cW!==0)?(e.beginPath(),e.fillStyle=a.multiKeyBackground,jh(e,{x,y:w,w:d,h:c,radius:P}),e.fill(),e.stroke(),e.fillStyle=s.backgroundColor,e.beginPath(),jh(e,{x:D,y:w+1,w:d-2,h:c-2,radius:P}),e.fill()):(e.fillStyle=a.multiKeyBackground,e.fillRect(x,w,d,c),e.strokeRect(x,w,d,c),e.fillStyle=s.backgroundColor,e.fillRect(D,w+1,d-2,c-2))}e.fillStyle=this.labelTextColors[r]}drawBody(e,i,r){let{body:o}=this,{bodySpacing:a,bodyAlign:s,displayColors:l,boxHeight:c,boxWidth:d,boxPadding:m}=r,f=pn(r.bodyFont),b=f.lineHeight,v=0,w=Cu(r.rtl,this.x,this.width),x=function(Ve){i.fillText(Ve,w.x(e.x+v),e.y+b/2),e.y+=b+a},D=w.textAlign(s),P,W,Z,K,re,Ee,be;for(i.textAlign=s,i.textBaseline="middle",i.font=f.string,e.x=tC(this,D,r),i.fillStyle=r.bodyColor,ii(this.beforeBody,x),v=l&&D!=="right"?s==="center"?d/2+m:d+2+m:0,K=0,Ee=o.length;K0&&i.stroke()}_updateAnimationTarget(e){let i=this.chart,r=this.$animations,o=r&&r.x,a=r&&r.y;if(o||a){let s=Qg[e.position].call(this,this._active,this._eventPosition);if(!s)return;let l=this._size=F4(this,e),c=Object.assign({},s,this._size),d=N4(i,e,c),m=L4(e,c,d,i);(o._to!==m.x||a._to!==m.y)&&(this.xAlign=d.xAlign,this.yAlign=d.yAlign,this.width=l.width,this.height=l.height,this.caretX=s.x,this.caretY=s.y,this._resolveAnimations().update(this,m))}}_willRender(){return!!this.opacity}draw(e){let i=this.options.setContext(this.getContext()),r=this.opacity;if(!r)return;this._updateAnimationTarget(i);let o={width:this.width,height:this.height},a={x:this.x,y:this.y};r=Math.abs(r)<.001?0:r;let s=sr(i.padding),l=this.title.length||this.beforeBody.length||this.body.length||this.afterBody.length||this.footer.length;i.enabled&&l&&(e.save(),e.globalAlpha=r,this.drawBackground(a,e,o,i),bT(e,i.textDirection),a.y+=s.top,this.drawTitle(a,e,i),this.drawBody(a,e,i),this.drawFooter(a,e,i),vT(e,i.textDirection),e.restore())}getActiveElements(){return this._active||[]}setActiveElements(e,i){let r=this._active,o=e.map(({datasetIndex:l,index:c})=>{let d=this.chart.getDatasetMeta(l);if(!d)throw new Error("Cannot find a dataset at index "+l);return{datasetIndex:l,element:d.data[c],index:c}}),a=!Bg(r,o),s=this._positionChanged(o,i);(a||s)&&(this._active=o,this._eventPosition=i,this._ignoreReplayEvents=!0,this.update(!0))}handleEvent(e,i,r=!0){if(i&&this._ignoreReplayEvents)return!1;this._ignoreReplayEvents=!1;let o=this.options,a=this._active||[],s=this._getActiveElements(e,a,i,r),l=this._positionChanged(s,e),c=i||!Bg(s,a)||l;return c&&(this._active=s,(o.enabled||o.external)&&(this._eventPosition={x:e.x,y:e.y},this.update(!0,i))),c}_getActiveElements(e,i,r,o){let a=this.options;if(e.type==="mouseout")return[];if(!o)return i.filter(l=>this.chart.data.datasets[l.datasetIndex]&&this.chart.getDatasetMeta(l.datasetIndex).controller.getParsed(l.index)!==void 0);let s=this.chart.getElementsAtEventForMode(e,a.mode,a,r);return a.reverse&&s.reverse(),s}_positionChanged(e,i){let{caretX:r,caretY:o,options:a}=this,s=Qg[a.position].call(this,e,i);return s!==!1&&(r!==s.x||o!==s.y)}}return t})(),gse={id:"tooltip",_element:j4,positioners:Qg,afterInit(t,n,e){e&&(t.tooltip=new j4({chart:t,options:e}))},beforeUpdate(t,n,e){t.tooltip&&t.tooltip.initialize(e)},reset(t,n,e){t.tooltip&&t.tooltip.initialize(e)},afterDraw(t){let n=t.tooltip;if(n&&n._willRender()){let e={tooltip:n};if(t.notifyPlugins("beforeTooltipDraw",De(M({},e),{cancelable:!0}))===!1)return;n.draw(t.ctx),t.notifyPlugins("afterTooltipDraw",e)}},afterEvent(t,n){if(t.tooltip){let e=n.replay;t.tooltip.handleEvent(n.event,e,n.inChartArea)&&(n.changed=!0)}},defaults:{enabled:!0,external:null,position:"average",backgroundColor:"rgba(0,0,0,0.8)",titleColor:"#fff",titleFont:{weight:"bold"},titleSpacing:2,titleMarginBottom:6,titleAlign:"left",bodyColor:"#fff",bodySpacing:2,bodyFont:{},bodyAlign:"left",footerColor:"#fff",footerSpacing:2,footerMarginTop:6,footerFont:{weight:"bold"},footerAlign:"left",padding:6,caretPadding:2,caretSize:5,cornerRadius:6,boxHeight:(t,n)=>n.bodyFont.size,boxWidth:(t,n)=>n.bodyFont.size,multiKeyBackground:"#fff",displayColors:!0,boxPadding:0,borderColor:"rgba(0,0,0,0)",borderWidth:0,animation:{duration:400,easing:"easeOutQuart"},animations:{numbers:{type:"number",properties:["x","y","width","height","caretX","caretY"]},opacity:{easing:"linear",duration:200}},callbacks:gH},defaultRoutes:{bodyFont:"font",footerFont:"font",titleFont:"font"},descriptors:{_scriptable:t=>t!=="filter"&&t!=="itemSort"&&t!=="external",_indexable:!1,callbacks:{_scriptable:!1,_indexable:!1},animation:{_fallback:!1},animations:{_fallback:"animation"}},additionalOptionScopes:["interaction"]},_se=Object.freeze({__proto__:null,Colors:Tae,Decimation:Rae,Filler:Jae,Legend:ose,SubTitle:lse,Title:sse,Tooltip:gse}),bse=(t,n,e,i)=>(typeof n=="string"?(e=t.push(n)-1,i.unshift({index:e,label:n})):isNaN(n)&&(e=null),e);function vse(t,n,e,i){let r=t.indexOf(n);if(r===-1)return bse(t,n,e,i);let o=t.lastIndexOf(n);return r!==o?e:r}var yse=(t,n)=>t===null?null:Dn(Math.round(t),0,n);function H4(t){let n=this.getLabels();return t>=0&&t{class t extends Eu{static id="category";static defaults={ticks:{callback:H4}};constructor(e){super(e),this._startValue=void 0,this._valueRange=0,this._addedLabels=[]}init(e){let i=this._addedLabels;if(i.length){let r=this.getLabels();for(let{index:o,label:a}of i)r[o]===a&&r.splice(o,1);this._addedLabels=[]}super.init(e)}parse(e,i){if(Et(e))return null;let r=this.getLabels();return i=isFinite(i)&&r[i]===e?i:vse(r,e,st(i,e),this._addedLabels),yse(i,r.length-1)}determineDataLimits(){let{minDefined:e,maxDefined:i}=this.getUserBounds(),{min:r,max:o}=this.getMinMax(!0);this.options.bounds==="ticks"&&(e||(r=0),i||(o=this.getLabels().length-1)),this.min=r,this.max=o}buildTicks(){let e=this.min,i=this.max,r=this.options.offset,o=[],a=this.getLabels();a=e===0&&i===a.length-1?a:a.slice(e,i+1),this._valueRange=Math.max(a.length-(r?0:1),1),this._startValue=this.min-(r?.5:0);for(let s=e;s<=i;s++)o.push({value:s});return o}getLabelForValue(e){return H4.call(this,e)}configure(){super.configure(),this.isHorizontal()||(this._reversePixels=!this._reversePixels)}getPixelForValue(e){return typeof e!="number"&&(e=this.parse(e)),e===null?NaN:this.getPixelForDecimal((e-this._startValue)/this._valueRange)}getPixelForTick(e){let i=this.ticks;return e<0||e>i.length-1?null:this.getPixelForValue(i[e].value)}getValueForPixel(e){return Math.round(this._startValue+this.getDecimalForPixel(e)*this._valueRange)}getBasePixel(){return this.bottom}}return t})();function Cse(t,n){let e=[],{bounds:r,step:o,min:a,max:s,precision:l,count:c,maxTicks:d,maxDigits:m,includeBounds:f}=t,b=o||1,v=d-1,{min:w,max:x}=n,D=!Et(a),P=!Et(s),W=!Et(c),Z=(x-w)/(m+1),K=ZS((x-w)/v/b)*b,re,Ee,be,Ve;if(K<1e-14&&!D&&!P)return[{value:w},{value:x}];Ve=Math.ceil(x/K)-Math.floor(w/K),Ve>v&&(K=ZS(Ve*K/v/b)*b),Et(l)||(re=Math.pow(10,l),K=Math.ceil(K*re)/re),r==="ticks"?(Ee=Math.floor(w/K)*K,be=Math.ceil(x/K)*K):(Ee=w,be=x),D&&P&&o&&kj((s-a)/o,K/1e3)?(Ve=Math.round(Math.min((s-a)/K,d)),K=(s-a)/Ve,Ee=a,be=s):W?(Ee=D?a:Ee,be=P?s:be,Ve=c-1,K=(be-Ee)/Ve):(Ve=(be-Ee)/K,Lh(Ve,Math.round(Ve),K/1e3)?Ve=Math.round(Ve):Ve=Math.ceil(Ve));let yt=Math.max(JS(K),JS(Ee));re=Math.pow(10,Et(l)?yt:l),Ee=Math.round(Ee*re)/re,be=Math.round(be*re)/re;let bt=0;for(D&&(f&&Ee!==a?(e.push({value:a}),Ees)break;e.push({value:It})}return P&&f&&be!==s?e.length&&Lh(e[e.length-1].value,s,z4(s,Z,t))?e[e.length-1].value=s:e.push({value:s}):(!P||be===s)&&e.push({value:be}),e}function z4(t,n,{horizontal:e,minRotation:i}){let r=ra(i),o=(e?Math.sin(r):Math.cos(r))||.001,a=.75*n*(""+t).length;return Math.min(n/o,a)}var $h=class extends Eu{constructor(n){super(n),this.start=void 0,this.end=void 0,this._startValue=void 0,this._endValue=void 0,this._valueRange=0}parse(n,e){return Et(n)||(typeof n=="number"||n instanceof Number)&&!isFinite(+n)?null:+n}handleTickRangeOptions(){let{beginAtZero:n}=this.options,{minDefined:e,maxDefined:i}=this.getUserBounds(),{min:r,max:o}=this,a=l=>r=e?r:l,s=l=>o=i?o:l;if(n){let l=Ba(r),c=Ba(o);l<0&&c<0?s(0):l>0&&c>0&&a(0)}if(r===o){let l=o===0?1:Math.abs(o*.05);s(o+l),n||a(r-l)}this.min=r,this.max=o}getTickLimit(){let n=this.options.ticks,{maxTicksLimit:e,stepSize:i}=n,r;return i?(r=Math.ceil(this.max/i)-Math.floor(this.min/i)+1,r>1e3&&(console.warn(`scales.${this.id}.ticks.stepSize: ${i} would result generating up to ${r} ticks. Limiting to 1000.`),r=1e3)):(r=this.computeTickLimit(),e=e||11),e&&(r=Math.min(e,r)),r}computeTickLimit(){return Number.POSITIVE_INFINITY}buildTicks(){let n=this.options,e=n.ticks,i=this.getTickLimit();i=Math.max(2,i);let r={maxTicks:i,bounds:n.bounds,min:n.min,max:n.max,precision:e.precision,step:e.stepSize,count:e.count,maxDigits:this._maxDigits(),horizontal:this.isHorizontal(),minRotation:e.minRotation||0,includeBounds:e.includeBounds!==!1},o=this._range||this,a=Cse(r,o);return n.bounds==="ticks"&&XS(a,this,"value"),n.reverse?(a.reverse(),this.start=this.max,this.end=this.min):(this.start=this.min,this.end=this.max),a}configure(){let n=this.ticks,e=this.min,i=this.max;if(super.configure(),this.options.offset&&n.length){let r=(i-e)/Math.max(n.length-1,1)/2;e-=r,i+=r}this._startValue=e,this._endValue=i,this._valueRange=i-e}getLabelForValue(n){return Bh(n,this.chart.options.locale,this.options.ticks.format)}},QT=class extends $h{static id="linear";static defaults={ticks:{callback:jg.formatters.numeric}};determineDataLimits(){let{min:n,max:e}=this.getMinMax(!0);this.min=Gi(n)?n:0,this.max=Gi(e)?e:1,this.handleTickRangeOptions()}computeTickLimit(){let n=this.isHorizontal(),e=n?this.width:this.height,i=ra(this.options.ticks.minRotation),r=(n?Math.sin(i):Math.cos(i))||.001,o=this._resolveTickFontOptions(0);return Math.ceil(e/Math.min(40,o.lineHeight/r))}getPixelForValue(n){return n===null?NaN:this.getPixelForDecimal((n-this._startValue)/this._valueRange)}getValueForPixel(n){return this._startValue+this.getDecimalForPixel(n)*this._valueRange}},Xg=t=>Math.floor(gl(t)),Du=(t,n)=>Math.pow(10,Xg(t)+n);function U4(t){return t/Math.pow(10,Xg(t))===1}function $4(t,n,e){let i=Math.pow(10,e),r=Math.floor(t/i);return Math.ceil(n/i)-r}function wse(t,n){let e=n-t,i=Xg(e);for(;$4(t,n,i)>10;)i++;for(;$4(t,n,i)<10;)i--;return Math.min(i,Xg(t))}function Dse(t,{min:n,max:e}){n=no(t.min,n);let i=[],r=Xg(n),o=wse(n,e),a=o<0?Math.pow(10,Math.abs(o)):1,s=Math.pow(10,o),l=r>o?Math.pow(10,r):0,c=Math.round((n-l)*a)/a,d=Math.floor((n-l)/s/10)*s*10,m=Math.floor((c-d)/Math.pow(10,o)),f=no(t.min,Math.round((l+d+m*Math.pow(10,o))*a)/a);for(;f=10?m=m<15?15:20:m++,m>=20&&(o++,m=2,a=o>=0?1:a),f=Math.round((l+d+m*Math.pow(10,o))*a)/a;let b=no(t.max,f);return i.push({value:b,major:U4(b),significand:m}),i}var KT=class extends Eu{static id="logarithmic";static defaults={ticks:{callback:jg.formatters.logarithmic,major:{enabled:!0}}};constructor(n){super(n),this.start=void 0,this.end=void 0,this._startValue=void 0,this._valueRange=0}parse(n,e){let i=$h.prototype.parse.apply(this,[n,e]);if(i===0){this._zero=!0;return}return Gi(i)&&i>0?i:null}determineDataLimits(){let{min:n,max:e}=this.getMinMax(!0);this.min=Gi(n)?Math.max(0,n):null,this.max=Gi(e)?Math.max(0,e):null,this.options.beginAtZero&&(this._zero=!0),this._zero&&this.min!==this._suggestedMin&&!Gi(this._userMin)&&(this.min=n===Du(this.min,0)?Du(this.min,-1):Du(this.min,0)),this.handleTickRangeOptions()}handleTickRangeOptions(){let{minDefined:n,maxDefined:e}=this.getUserBounds(),i=this.min,r=this.max,o=s=>i=n?i:s,a=s=>r=e?r:s;i===r&&(i<=0?(o(1),a(10)):(o(Du(i,-1)),a(Du(r,1)))),i<=0&&o(Du(r,-1)),r<=0&&a(Du(i,1)),this.min=i,this.max=r}buildTicks(){let n=this.options,e={min:this._userMin,max:this._userMax},i=Dse(e,this);return n.bounds==="ticks"&&XS(i,this,"value"),n.reverse?(i.reverse(),this.start=this.max,this.end=this.min):(this.start=this.min,this.end=this.max),i}getLabelForValue(n){return n===void 0?"0":Bh(n,this.chart.options.locale,this.options.ticks.format)}configure(){let n=this.min;super.configure(),this._startValue=gl(n),this._valueRange=gl(this.max)-gl(n)}getPixelForValue(n){return(n===void 0||n===0)&&(n=this.min),n===null||isNaN(n)?NaN:this.getPixelForDecimal(n===this.min?0:(gl(n)-this._startValue)/this._valueRange)}getValueForPixel(n){let e=this.getDecimalForPixel(n);return Math.pow(10,this._startValue+e*this._valueRange)}};function ZT(t){let n=t.ticks;if(n.display&&t.display){let e=sr(n.backdropPadding);return st(n.font&&n.font.size,xi.font.size)+e.height}return 0}function Ese(t,n,e){return e=Ei(e)?e:[e],{w:Nj(t,n.string,e),h:e.length*n.lineHeight}}function W4(t,n,e,i,r){return t===i||t===r?{start:n-e/2,end:n+e/2}:tr?{start:n-e,end:n}:{start:n,end:n+e}}function Mse(t){let n={l:t.left+t._padding.left,r:t.right-t._padding.right,t:t.top+t._padding.top,b:t.bottom-t._padding.bottom},e=Object.assign({},n),i=[],r=[],o=t._pointLabels.length,a=t.options.pointLabels,s=a.centerPointLabels?Ht/o:0;for(let l=0;ln.r&&(s=(i.end-n.r)/o,t.r=Math.max(t.r,n.r+s)),r.startn.b&&(l=(r.end-n.b)/a,t.b=Math.max(t.b,n.b+l))}function Sse(t,n,e){let i=t.drawingArea,{extra:r,additionalAngle:o,padding:a,size:s}=e,l=t.getPointPosition(n,i+r+a,o),c=Math.round(Hx(or(l.angle+Zi))),d=Rse(l.y,s.h,c),m=Ase(c),f=Ose(l.x,s.w,m);return{visible:!0,x:l.x,y:d,textAlign:m,left:f,top:d,right:f+s.w,bottom:d+s.h}}function Tse(t,n){if(!n)return!0;let{left:e,top:i,right:r,bottom:o}=t;return!(Ss({x:e,y:i},n)||Ss({x:e,y:o},n)||Ss({x:r,y:i},n)||Ss({x:r,y:o},n))}function Ise(t,n,e){let i=[],r=t._pointLabels.length,o=t.options,{centerPointLabels:a,display:s}=o.pointLabels,l={extra:ZT(o)/2,additionalAngle:a?Ht/r:0},c;for(let d=0;d270||e<90)&&(t-=n),t}function Pse(t,n,e){let{left:i,top:r,right:o,bottom:a}=e,{backdropColor:s}=n;if(!Et(s)){let l=Tc(n.borderRadius),c=sr(n.backdropPadding);t.fillStyle=s;let d=i-c.left,m=r-c.top,f=o-i+c.width,b=a-r+c.height;Object.values(l).some(v=>v!==0)?(t.beginPath(),jh(t,{x:d,y:m,w:f,h:b,radius:l}),t.fill()):t.fillRect(d,m,f,b)}}function Fse(t,n){let{ctx:e,options:{pointLabels:i}}=t;for(let r=n-1;r>=0;r--){let o=t._pointLabelItems[r];if(!o.visible)continue;let a=i.setContext(t.getPointLabelContext(r));Pse(e,a,o);let s=pn(a.font),{x:l,y:c,textAlign:d}=o;Sc(e,t._pointLabels[r],l,c+s.lineHeight/2,s,{color:a.color,textAlign:d,textBaseline:"middle"})}}function _H(t,n,e,i){let{ctx:r}=t;if(e)r.arc(t.xCenter,t.yCenter,n,0,Mi);else{let o=t.getPointPosition(0,n);r.moveTo(o.x,o.y);for(let a=1;a{let r=yi(this.options.pointLabels.callback,[e,i],this);return r||r===0?r:""}).filter((e,i)=>this.chart.getDataVisibility(i))}fit(){let n=this.options;n.display&&n.pointLabels.display?Mse(this):this.setCenterPoint(0,0,0,0)}setCenterPoint(n,e,i,r){this.xCenter+=Math.floor((n-e)/2),this.yCenter+=Math.floor((i-r)/2),this.drawingArea-=Math.min(this.drawingArea/2,Math.max(n,e,i,r))}getIndexAngle(n){let e=Mi/(this._pointLabels.length||1),i=this.options.startAngle||0;return or(n*e+ra(i))}getDistanceFromCenterForValue(n){if(Et(n))return NaN;let e=this.drawingArea/(this.max-this.min);return this.options.reverse?(this.max-n)*e:(n-this.min)*e}getValueForDistanceFromCenter(n){if(Et(n))return NaN;let e=n/(this.drawingArea/(this.max-this.min));return this.options.reverse?this.max-e:this.min+e}getPointLabelContext(n){let e=this._pointLabels||[];if(n>=0&&n{if(m!==0||m===0&&this.min<0){l=this.getDistanceFromCenterForValue(d.value);let f=this.getContext(m),b=r.setContext(f),v=o.setContext(f);Nse(this,b,l,a,v)}}),i.display){for(n.save(),s=a-1;s>=0;s--){let d=i.setContext(this.getPointLabelContext(s)),{color:m,lineWidth:f}=d;!f||!m||(n.lineWidth=f,n.strokeStyle=m,n.setLineDash(d.borderDash),n.lineDashOffset=d.borderDashOffset,l=this.getDistanceFromCenterForValue(e.reverse?this.min:this.max),c=this.getPointPosition(s,l),n.beginPath(),n.moveTo(this.xCenter,this.yCenter),n.lineTo(c.x,c.y),n.stroke())}n.restore()}}drawBorder(){}drawLabels(){let n=this.ctx,e=this.options,i=e.ticks;if(!i.display)return;let r=this.getIndexAngle(0),o,a;n.save(),n.translate(this.xCenter,this.yCenter),n.rotate(r),n.textAlign="center",n.textBaseline="middle",this.ticks.forEach((s,l)=>{if(l===0&&this.min>=0&&!e.reverse)return;let c=i.setContext(this.getContext(l)),d=pn(c.font);if(o=this.getDistanceFromCenterForValue(this.ticks[l].value),c.showLabelBackdrop){n.font=d.string,a=n.measureText(s.label).width,n.fillStyle=c.backdropColor;let m=sr(c.backdropPadding);n.fillRect(-a/2-m.left,-o-d.size/2-m.top,a+m.width,d.size+m.height)}Sc(n,s.label,0,-o,d,{color:c.color,strokeColor:c.textStrokeColor,strokeWidth:c.textStrokeWidth})}),n.restore()}drawTitle(){}},pC={millisecond:{common:!0,size:1,steps:1e3},second:{common:!0,size:1e3,steps:60},minute:{common:!0,size:6e4,steps:60},hour:{common:!0,size:36e5,steps:24},day:{common:!0,size:864e5,steps:30},week:{common:!1,size:6048e5,steps:4},month:{common:!0,size:2628e6,steps:12},quarter:{common:!1,size:7884e6,steps:4},year:{common:!0,size:3154e7}},oo=Object.keys(pC);function G4(t,n){return t-n}function q4(t,n){if(Et(n))return null;let e=t._adapter,{parser:i,round:r,isoWeekday:o}=t._parseOpts,a=n;return typeof i=="function"&&(a=i(a)),Gi(a)||(a=typeof i=="string"?e.parse(a,i):e.parse(a)),a===null?null:(r&&(a=r==="week"&&(xu(o)||o===!0)?e.startOf(a,"isoWeek",o):e.startOf(a,r)),+a)}function Y4(t,n,e,i){let r=oo.length;for(let o=oo.indexOf(t);o=oo.indexOf(e);o--){let a=oo[o];if(pC[a].common&&t._adapter.diff(r,i,a)>=n-1)return a}return oo[e?oo.indexOf(e):0]}function Bse(t){for(let n=oo.indexOf(t)+1,e=oo.length;n=n?e[i]:e[r];t[o]=!0}}function jse(t,n,e,i){let r=t._adapter,o=+r.startOf(n[0].value,i),a=n[n.length-1].value,s,l;for(s=o;s<=a;s=+r.add(s,1,i))l=e[s],l>=0&&(n[l].major=!0);return n}function K4(t,n,e){let i=[],r={},o=n.length,a,s;for(a=0;a{class t extends Eu{static id="time";static defaults={bounds:"data",adapters:{},time:{parser:!1,unit:!1,round:!1,isoWeekday:!1,minUnit:"millisecond",displayFormats:{}},ticks:{source:"auto",callback:!1,major:{enabled:!1}}};constructor(e){super(e),this._cache={data:[],labels:[],all:[]},this._unit="day",this._majorUnit=void 0,this._offsets={},this._normalized=!1,this._parseOpts=void 0}init(e,i={}){let r=e.time||(e.time={}),o=this._adapter=new Zre._date(e.adapters.date);o.init(i),Fh(r.displayFormats,o.formats()),this._parseOpts={parser:r.parser,round:r.round,isoWeekday:r.isoWeekday},super.init(e),this._normalized=i.normalized}parse(e,i){return e===void 0?null:q4(this,e)}beforeLayout(){super.beforeLayout(),this._cache={data:[],labels:[],all:[]}}determineDataLimits(){let e=this.options,i=this._adapter,r=e.time.unit||"day",{min:o,max:a,minDefined:s,maxDefined:l}=this.getUserBounds();function c(d){!s&&!isNaN(d.min)&&(o=Math.min(o,d.min)),!l&&!isNaN(d.max)&&(a=Math.max(a,d.max))}(!s||!l)&&(c(this._getLabelBounds()),(e.bounds!=="ticks"||e.ticks.source!=="labels")&&c(this.getMinMax(!1))),o=Gi(o)&&!isNaN(o)?o:+i.startOf(Date.now(),r),a=Gi(a)&&!isNaN(a)?a:+i.endOf(Date.now(),r)+1,this.min=Math.min(o,a-1),this.max=Math.max(o+1,a)}_getLabelBounds(){let e=this.getLabelTimestamps(),i=Number.POSITIVE_INFINITY,r=Number.NEGATIVE_INFINITY;return e.length&&(i=e[0],r=e[e.length-1]),{min:i,max:r}}buildTicks(){let e=this.options,i=e.time,r=e.ticks,o=r.source==="labels"?this.getLabelTimestamps():this._generate();e.bounds==="ticks"&&o.length&&(this.min=this._userMin||o[0],this.max=this._userMax||o[o.length-1]);let a=this.min,s=this.max,l=Ij(o,a,s);return this._unit=i.unit||(r.autoSkip?Y4(i.minUnit,this.min,this.max,this._getLabelCapacity(a)):Vse(this,l.length,i.minUnit,this.min,this.max)),this._majorUnit=!r.major.enabled||this._unit==="year"?void 0:Bse(this._unit),this.initOffsets(o),e.reverse&&l.reverse(),K4(this,l,this._majorUnit)}afterAutoSkip(){this.options.offsetAfterAutoskip&&this.initOffsets(this.ticks.map(e=>+e.value))}initOffsets(e=[]){let i=0,r=0,o,a;this.options.offset&&e.length&&(o=this.getDecimalForValue(e[0]),e.length===1?i=1-o:i=(this.getDecimalForValue(e[1])-o)/2,a=this.getDecimalForValue(e[e.length-1]),e.length===1?r=a:r=(a-this.getDecimalForValue(e[e.length-2]))/2);let s=e.length<3?.5:.25;i=Dn(i,0,s),r=Dn(r,0,s),this._offsets={start:i,end:r,factor:1/(i+1+r)}}_generate(){let e=this._adapter,i=this.min,r=this.max,o=this.options,a=o.time,s=a.unit||Y4(a.minUnit,i,r,this._getLabelCapacity(i)),l=st(o.ticks.stepSize,1),c=s==="week"?a.isoWeekday:!1,d=xu(c)||c===!0,m={},f=i,b,v;if(d&&(f=+e.startOf(f,"isoWeek",c)),f=+e.startOf(f,d?"day":s),e.diff(r,i,s)>1e5*l)throw new Error(i+" and "+r+" are too far apart with stepSize of "+l+" "+s);let w=o.ticks.source==="data"&&this.getDataTimestamps();for(b=f,v=0;b+x)}getLabelForValue(e){let i=this._adapter,r=this.options.time;return r.tooltipFormat?i.format(e,r.tooltipFormat):i.format(e,r.displayFormats.datetime)}format(e,i){let o=this.options.time.displayFormats,a=this._unit,s=i||o[a];return this._adapter.format(e,s)}_tickFormatFunction(e,i,r,o){let a=this.options,s=a.ticks.callback;if(s)return yi(s,[e,i,r],this);let l=a.time.displayFormats,c=this._unit,d=this._majorUnit,m=c&&l[c],f=d&&l[d],b=r[i],v=d&&f&&b&&b.major;return this._adapter.format(e,o||(v?f:m))}generateTickLabels(e){let i,r,o;for(i=0,r=e.length;i0?l:1}getDataTimestamps(){let e=this._cache.data||[],i,r;if(e.length)return e;let o=this.getMatchingVisibleMetas();if(this._normalized&&o.length)return this._cache.data=o[0].controller.getAllParsedValues(this);for(i=0,r=o.length;i=t[i].pos&&n<=t[r].pos&&({lo:i,hi:r}=ks(t,"pos",n)),{pos:o,time:s}=t[i],{pos:a,time:l}=t[r]):(n>=t[i].time&&n<=t[r].time&&({lo:i,hi:r}=ks(t,"time",n)),{time:o,pos:s}=t[i],{time:a,pos:l}=t[r]);let c=a-o;return c?s+(l-s)*(n-o)/c:s}var eI=class extends JT{static id="timeseries";static defaults=JT.defaults;constructor(n){super(n),this._table=[],this._minPos=void 0,this._tableRange=void 0}initOffsets(){let n=this._getTimestampsForTable(),e=this._table=this.buildLookupTable(n);this._minPos=iC(e,this.min),this._tableRange=iC(e,this.max)-this._minPos,super.initOffsets(n)}buildLookupTable(n){let{min:e,max:i}=this,r=[],o=[],a,s,l,c,d;for(a=0,s=n.length;a=e&&c<=i&&r.push(c);if(r.length<2)return[{time:e,pos:0},{time:i,pos:1}];for(a=0,s=r.length;ar-o)}_getTimestampsForTable(){let n=this._cache.all||[];if(n.length)return n;let e=this.getDataTimestamps(),i=this.getLabelTimestamps();return e.length&&i.length?n=this.normalize(e.concat(i)):n=e.length?e:i,n=this._cache.all=n,n}getDecimalForValue(n){return(iC(this._table,n)-this._minPos)/this._tableRange}getValueForPixel(n){let e=this._offsets,i=this.getDecimalForPixel(n)/e.factor-e.end;return iC(this._table,i*this._tableRange+this._minPos,!0)}},Hse=Object.freeze({__proto__:null,CategoryScale:xse,LinearScale:QT,LogarithmicScale:KT,RadialLinearScale:XT,TimeScale:JT,TimeSeriesScale:eI}),bH=[Kre,Cae,_se,Hse];var zse=typeof global=="object"&&global&&global.Object===Object&&global,fC=zse;var Use=typeof self=="object"&&self&&self.Object===Object&&self,$se=fC||Use||Function("return this")(),oa=$se;var Wse=oa.Symbol,Wh=Wse;var vH=Object.prototype,Gse=vH.hasOwnProperty,qse=vH.toString,e_=Wh?Wh.toStringTag:void 0;function Yse(t){var n=Gse.call(t,e_),e=t[e_];try{t[e_]=void 0;var i=!0}catch{}var r=qse.call(t);return i&&(n?t[e_]=e:delete t[e_]),r}var yH=Yse;var Qse=Object.prototype,Kse=Qse.toString;function Zse(t){return Kse.call(t)}var xH=Zse;var Xse="[object Null]",Jse="[object Undefined]",CH=Wh?Wh.toStringTag:void 0;function ele(t){return t==null?t===void 0?Jse:Xse:CH&&CH in Object(t)?yH(t):xH(t)}var Rc=ele;function tle(t){return t!=null&&typeof t=="object"}var Rs=tle;var ile=Array.isArray,t_=ile;function nle(t){var n=typeof t;return t!=null&&(n=="object"||n=="function")}var ao=nle;function rle(t){return t}var gC=rle;var ole="[object AsyncFunction]",ale="[object Function]",sle="[object GeneratorFunction]",lle="[object Proxy]";function cle(t){if(!ao(t))return!1;var n=Rc(t);return n==ale||n==sle||n==ole||n==lle}var Gh=cle;var dle=oa["__core-js_shared__"],_C=dle;var wH=(function(){var t=/[^.]+$/.exec(_C&&_C.keys&&_C.keys.IE_PROTO||"");return t?"Symbol(src)_1."+t:""})();function ule(t){return!!wH&&wH in t}var DH=ule;var mle=Function.prototype,hle=mle.toString;function ple(t){if(t!=null){try{return hle.call(t)}catch{}try{return t+""}catch{}}return""}var EH=ple;var fle=/[\\^$.*+?()[\]{}|]/g,gle=/^\[object .+?Constructor\]$/,_le=Function.prototype,ble=Object.prototype,vle=_le.toString,yle=ble.hasOwnProperty,xle=RegExp("^"+vle.call(yle).replace(fle,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function Cle(t){if(!ao(t)||DH(t))return!1;var n=Gh(t)?xle:gle;return n.test(EH(t))}var MH=Cle;function wle(t,n){return t?.[n]}var kH=wle;function Dle(t,n){var e=kH(t,n);return MH(e)?e:void 0}var qh=Dle;var SH=Object.create,Ele=(function(){function t(){}return function(n){if(!ao(n))return{};if(SH)return SH(n);t.prototype=n;var e=new t;return t.prototype=void 0,e}})(),TH=Ele;function Mle(t,n,e){switch(e.length){case 0:return t.call(n);case 1:return t.call(n,e[0]);case 2:return t.call(n,e[0],e[1]);case 3:return t.call(n,e[0],e[1],e[2])}return t.apply(n,e)}var IH=Mle;function kle(t,n){var e=-1,i=t.length;for(n||(n=Array(i));++e0){if(++n>=Sle)return arguments[0]}else n=0;return t.apply(void 0,arguments)}}var OH=Ale;function Ole(t){return function(){return t}}var RH=Ole;var Rle=(function(){try{var t=qh(Object,"defineProperty");return t({},"",{}),t}catch{}})(),Yh=Rle;var Ple=Yh?function(t,n){return Yh(t,"toString",{configurable:!0,enumerable:!1,value:RH(n),writable:!0})}:gC,PH=Ple;var Fle=OH(PH),FH=Fle;var Nle=9007199254740991,Lle=/^(?:0|[1-9]\d*)$/;function Vle(t,n){var e=typeof t;return n=n??Nle,!!n&&(e=="number"||e!="symbol"&&Lle.test(t))&&t>-1&&t%1==0&&t-1&&t%1==0&&t<=qle}var vC=Yle;function Qle(t){return t!=null&&vC(t.length)&&!Gh(t)}var Kh=Qle;function Kle(t,n,e){if(!ao(e))return!1;var i=typeof n;return(i=="number"?Kh(e)&&bC(n,e.length):i=="string"&&n in e)?Pc(e[n],t):!1}var HH=Kle;function Zle(t){return jH(function(n,e){var i=-1,r=e.length,o=r>1?e[r-1]:void 0,a=r>2?e[2]:void 0;for(o=t.length>3&&typeof o=="function"?(r--,o):void 0,a&&HH(e[0],e[1],a)&&(o=r<3?void 0:o,r=1),n=Object(n);++i-1}var u5=mde;function hde(t,n){var e=this.__data__,i=Fc(e,t);return i<0?(++this.size,e.push([t,n])):e[i][1]=n,this}var m5=hde;function Xh(t){var n=-1,e=t==null?0:t.length;for(this.clear();++n{let n=class n{constructor(){this.colorschemesOptions=new tt(void 0)}setColorschemesOptions(i){this.pColorschemesOptions=i,this.colorschemesOptions.next(i)}getColorschemesOptions(){return this.pColorschemesOptions}};n.\u0275fac=function(r){return new(r||n)},n.\u0275prov=O({token:n,factory:n.\u0275fac,providedIn:"root"});let t=n;return t})(),G5=(()=>{let n=class n{constructor(i,r,o,a){this.zone=r,this.themeService=o,this.type="bar",this.plugins=[],this.chartClick=new U,this.chartHover=new U,this.subs=[],this.themeOverrides={},a?.registerables&&uC.register(...a.registerables),a?.defaults&&xi.set(a.defaults),this.ctx=i.nativeElement.getContext("2d"),this.subs.push(this.themeService.colorschemesOptions.pipe(Sn()).subscribe(s=>this.themeChanged(s)))}ngOnChanges(i){let r=["type"],o=Object.getOwnPropertyNames(i);if(o.some(a=>r.includes(a))||o.every(a=>i[a].isFirstChange()))this.render();else{let a=this.getChartConfiguration();this.chart&&(Object.assign(this.chart.config.data,a.data),this.chart.config.plugins&&Object.assign(this.chart.config.plugins,a.plugins),this.chart.config.options&&Object.assign(this.chart.config.options,a.options)),this.update()}}ngOnDestroy(){this.chart&&(this.chart.destroy(),this.chart=void 0),this.subs.forEach(i=>i.unsubscribe())}render(){return this.chart&&this.chart.destroy(),this.zone.runOutsideAngular(()=>this.chart=new uC(this.ctx,this.getChartConfiguration()))}update(i){this.chart&&this.zone.runOutsideAngular(()=>this.chart?.update(i))}hideDataset(i,r){this.chart&&(this.chart.getDatasetMeta(i).hidden=r,this.update())}isDatasetHidden(i){return this.chart?.getDatasetMeta(i)?.hidden}toBase64Image(){return this.chart?.toBase64Image()}themeChanged(i){this.themeOverrides=i,this.chart&&(this.chart.config.options&&Object.assign(this.chart.config.options,this.getChartOptions()),this.update())}getChartOptions(){return MC({onHover:(i,r)=>{!this.chartHover.observed&&!this.chartHover.observers?.length||this.zone.run(()=>this.chartHover.emit({event:i,active:r}))},onClick:(i,r)=>{!this.chartClick.observed&&!this.chartClick.observers?.length||this.zone.run(()=>this.chartClick.emit({event:i,active:r}))}},this.themeOverrides,this.options,{plugins:{legend:{display:this.legend}}})}getChartConfiguration(){return{type:this.type,data:this.getChartData(),options:this.getChartOptions(),plugins:this.plugins}}getChartData(){return this.data?this.data:{labels:this.labels||[],datasets:this.datasets||[]}}};n.\u0275fac=function(r){return new(r||n)(_e(q),_e(ae),_e(Qde),_e(U5,8))},n.\u0275dir=F({type:n,selectors:[["canvas","baseChart",""]],inputs:{type:"type",legend:"legend",data:"data",options:"options",plugins:"plugins",labels:"labels",datasets:"datasets"},outputs:{chartClick:"chartClick",chartHover:"chartHover"},exportAs:["base-chart"],features:[Ae]});let t=n;return t})();var ko={production:!0,baseUrl:"",useHash:!1,apiUrl:"https://app-talent-api-dev.azurewebsites.net/api/v1",identityServerUrl:"https://app-talent-ids-dev.azurewebsites.net",clientId:"TalentManagement",scope:"openid profile email roles app.api.talentmanagement.read app.api.talentmanagement.write",allowAnonymousAccess:!1};var sI=document.baseURI.endsWith("/")?document.baseURI.slice(0,-1):document.baseURI,q5={issuer:ko.identityServerUrl,redirectUri:sI+"/callback",postLogoutRedirectUri:sI,clientId:ko.clientId,scope:ko.scope,responseType:"code",showDebugInformation:!ko.production,useSilentRefresh:!0,silentRefreshRedirectUri:sI+"/silent-refresh.html",silentRefreshTimeout:5e3,timeoutFactor:.75,sessionChecksEnabled:!0,clearHashAfterLogin:!0,strictDiscoveryDocumentValidation:!1,skipIssuerCheck:!ko.production,requireHttps:ko.production,requestAccessToken:!0,dummyClientSecret:void 0,customQueryParams:{}};var Tt=(()=>{let n=class n{constructor(){this.oauthService=u(Wm),this.router=u(Re),this.isAuthenticatedSubject=new tt(!1),this.isAuthenticated$=this.isAuthenticatedSubject.asObservable(),this.userInfoSubject=new tt(null),this.userInfo$=this.userInfoSubject.asObservable(),this.permissionsChangeSubject=new z,this.permissionsChange$=this.permissionsChangeSubject.asObservable(),this.configureOAuth()}configureOAuth(){this.oauthService.configure(q5),this.oauthService.events.pipe(ce(i=>i.type==="token_received")).subscribe(()=>{this.handleSuccessfulLogin()}),this.oauthService.events.pipe(ce(i=>i.type==="token_error"||i.type==="token_refresh_error")).subscribe(()=>{console.error("Token error occurred")}),this.oauthService.setupAutomaticSilentRefresh()}initAuth(){return fn(this,null,function*(){try{return yield this.oauthService.loadDiscoveryDocument(),yield this.oauthService.tryLogin(),this.oauthService.hasValidAccessToken()?(yield this.handleSuccessfulLogin(),!0):!1}catch(i){return console.error("Error during authentication initialization:",i),!1}})}login(i){i?this.oauthService.initCodeFlow(i):this.oauthService.initCodeFlow()}logout(){this.oauthService.logOut(),this.isAuthenticatedSubject.next(!1),this.userInfoSubject.next(null),this.permissionsChangeSubject.next()}handleSuccessfulLogin(){return fn(this,null,function*(){try{let i=this.oauthService.getIdentityClaims();this.userInfoSubject.next(i),this.isAuthenticatedSubject.next(!0),this.permissionsChangeSubject.next()}catch(i){console.error("Error loading user info:",i)}})}isAuthenticated(){return this.oauthService.hasValidAccessToken()}getAccessToken(){return this.oauthService.getAccessToken()}getUserInfo(){return this.userInfoSubject.value}getUserRoles(){let i=this.oauthService.getIdentityClaims();if(!i)return[];let r=i.role;return Array.isArray(r)?r:typeof r=="string"?[r]:[]}hasRole(i){return this.getUserRoles().includes(i)}isEmployee(){return this.hasRole("Employee")}isManager(){return this.hasRole("Manager")}isHRAdmin(){return this.hasRole("HRAdmin")}hasAnyRole(i){let r=this.getUserRoles();return i.some(o=>r.includes(o))}getUserDisplayName(){let i=this.getUserInfo();return i?.name||i?.email||"User"}};n.\u0275fac=function(r){return new(r||n)},n.\u0275prov=O({token:n,factory:n.\u0275fac,providedIn:"root"});let t=n;return t})();var lI=(t,n)=>{let e=u(Tt);return ko.allowAnonymousAccess||e.isAuthenticated()?!0:(e.login(n?.url),!1)};var a_=t=>{let n=u(Tt),e=u(Re);return n.isAuthenticated()?n.isManager()||n.isHRAdmin()?!0:(e.navigate(["/403"]),!1):(n.login(),!1)},s_=t=>{let n=u(Tt),e=u(Re);return n.isAuthenticated()?n.isHRAdmin()?!0:(e.navigate(["/403"]),!1):(n.login(),!1)};var so=(()=>{let n=class n{constructor(){this.menu$=new tt([])}getAll(){return this.menu$.asObservable()}change(){return this.menu$.pipe(Nl())}set(i){return this.menu$.next(i),this.menu$.asObservable()}add(i){let r=this.menu$.value;r.push(i),this.menu$.next(r)}reset(){this.menu$.next([])}buildRoute(i){let r="";return i.forEach(o=>{o&&o.trim()&&(r+="/"+o.replace(/^\/+|\/+$/g,""))}),r}getItemName(i){return this.getLevel(i)[i.length-1]}isLeafItem(i){let r=i.route===void 0,o=i.children===void 0,a=!o&&i.children?.length===0;return r||o||a}deepClone(i){return JSON.parse(JSON.stringify(i))}isJsonObjEqual(i,r){return JSON.stringify(i)===JSON.stringify(r)}isRouteEqual(i,r){return r=this.deepClone(r),r=r.filter(o=>o!==""),this.isJsonObjEqual(i,r)}getLevel(i){let r=[];return this.menu$.value.forEach(o=>{let a=[{item:o,parentNamePathList:[],realRouteArr:[]}];for(;a.length>0;){let s=[];for(let l of a){let c=l.item,d=this.deepClone(l.parentNamePathList).concat(c.name),m=this.deepClone(l.realRouteArr).concat(c.route);if(this.isRouteEqual(i,m)){r=d;break}if(!this.isLeafItem(c)){let f=c.children?.map(b=>({item:b,parentNamePathList:d,realRouteArr:m}));s=s.concat(f)}}a=s}}),r}addNamespace(i,r){i.forEach(o=>{o.name=`${r}.${o.name}`,o.children&&o.children.length>0&&this.addNamespace(o.children,o.name)})}};n.\u0275fac=function(r){return new(r||n)},n.\u0275prov=O({token:n,factory:n.\u0275fac,providedIn:"root"});let t=n;return t})();var kC;function Kde(){if(kC===void 0&&(kC=null,typeof window<"u")){let t=window;t.trustedTypes!==void 0&&(kC=t.trustedTypes.createPolicy("angular#components",{createHTML:n=>n}))}return kC}function l_(t){return Kde()?.createHTML(t)||t}function Y5(t){return Error(`Unable to find icon with the name "${t}"`)}function Zde(){return Error("Could not find HttpClient for use with Angular Material icons. Please add provideHttpClient() to your providers.")}function Q5(t){return Error(`The URL provided to MatIconRegistry was not trusted as a resource URL via Angular's DomSanitizer. Attempted URL was "${t}".`)}function K5(t){return Error(`The literal provided to MatIconRegistry was not trusted as safe HTML by Angular's DomSanitizer. Attempted literal was "${t}".`)}var Cl=class{url;svgText;options;svgElement;constructor(n,e,i){this.url=n,this.svgText=e,this.options=i}},X5=(()=>{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,i,r,o){this._httpClient=e,this._sanitizer=i,this._errorHandler=o,this._document=r}addSvgIcon(e,i,r){return this.addSvgIconInNamespace("",e,i,r)}addSvgIconLiteral(e,i,r){return this.addSvgIconLiteralInNamespace("",e,i,r)}addSvgIconInNamespace(e,i,r,o){return this._addSvgIconConfig(e,i,new Cl(r,null,o))}addSvgIconResolver(e){return this._resolvers.push(e),this}addSvgIconLiteralInNamespace(e,i,r,o){let a=this._sanitizer.sanitize(An.HTML,r);if(!a)throw K5(r);let s=l_(a);return this._addSvgIconConfig(e,i,new Cl("",s,o))}addSvgIconSet(e,i){return this.addSvgIconSetInNamespace("",e,i)}addSvgIconSetLiteral(e,i){return this.addSvgIconSetLiteralInNamespace("",e,i)}addSvgIconSetInNamespace(e,i,r){return this._addSvgIconSetConfig(e,new Cl(i,null,r))}addSvgIconSetLiteralInNamespace(e,i,r){let o=this._sanitizer.sanitize(An.HTML,i);if(!o)throw K5(i);let a=l_(o);return this._addSvgIconSetConfig(e,new Cl("",a,r))}registerFontClassAlias(e,i=e){return this._fontCssClassesByAlias.set(e,i),this}classNameForFontAlias(e){return this._fontCssClassesByAlias.get(e)||e}setDefaultFontSetClass(...e){return this._defaultFontSetClass=e,this}getDefaultFontSetClass(){return this._defaultFontSetClass}getSvgIconFromUrl(e){let i=this._sanitizer.sanitize(An.RESOURCE_URL,e);if(!i)throw Q5(e);let r=this._cachedIconsByUrl.get(i);return r?Q(SC(r)):this._loadSvgIconFromConfig(new Cl(e,null)).pipe(Be(o=>this._cachedIconsByUrl.set(i,o)),se(o=>SC(o)))}getNamedSvgIcon(e,i=""){let r=Z5(i,e),o=this._svgIconConfigs.get(r);if(o)return this._getSvgFromConfig(o);if(o=this._getIconConfigFromResolvers(i,e),o)return this._svgIconConfigs.set(r,o),this._getSvgFromConfig(o);let a=this._iconSetConfigs.get(i);return a?this._getSvgFromIconSetConfigs(e,a):Wn(Y5(r))}ngOnDestroy(){this._resolvers=[],this._svgIconConfigs.clear(),this._iconSetConfigs.clear(),this._cachedIconsByUrl.clear()}_getSvgFromConfig(e){return e.svgText?Q(SC(this._svgElementFromConfig(e))):this._loadSvgIconFromConfig(e).pipe(se(i=>SC(i)))}_getSvgFromIconSetConfigs(e,i){let r=this._extractIconWithNameFromAnySet(e,i);if(r)return Q(r);let o=i.filter(a=>!a.svgText).map(a=>this._loadSvgIconSetFromConfig(a).pipe(fi(s=>{let c=`Loading icon set URL: ${this._sanitizer.sanitize(An.RESOURCE_URL,a.url)} failed: ${s.message}`;return this._errorHandler.handleError(new Error(c)),Q(null)})));return Ga(o).pipe(se(()=>{let a=this._extractIconWithNameFromAnySet(e,i);if(!a)throw Y5(e);return a}))}_extractIconWithNameFromAnySet(e,i){for(let r=i.length-1;r>=0;r--){let o=i[r];if(o.svgText&&o.svgText.toString().indexOf(e)>-1){let a=this._svgElementFromConfig(o),s=this._extractSvgIconFromSet(a,e,o.options);if(s)return s}}return null}_loadSvgIconFromConfig(e){return this._fetchIcon(e).pipe(Be(i=>e.svgText=i),se(()=>this._svgElementFromConfig(e)))}_loadSvgIconSetFromConfig(e){return e.svgText?Q(null):this._fetchIcon(e).pipe(Be(i=>e.svgText=i))}_extractSvgIconFromSet(e,i,r){let o=e.querySelector(`[id="${i}"]`);if(!o)return null;let a=o.cloneNode(!0);if(a.removeAttribute("id"),a.nodeName.toLowerCase()==="svg")return this._setSvgAttributes(a,r);if(a.nodeName.toLowerCase()==="symbol")return this._setSvgAttributes(this._toSvgElement(a),r);let s=this._svgElementFromString(l_(""));return s.appendChild(a),this._setSvgAttributes(s,r)}_svgElementFromString(e){let i=this._document.createElement("DIV");i.innerHTML=e;let r=i.querySelector("svg");if(!r)throw Error(" tag not found");return r}_toSvgElement(e){let i=this._svgElementFromString(l_("")),r=e.attributes;for(let o=0;ol_(c)),Hr(()=>this._inProgressUrlFetches.delete(a)),Nl());return this._inProgressUrlFetches.set(a,l),l}_addSvgIconConfig(e,i,r){return this._svgIconConfigs.set(Z5(e,i),r),this}_addSvgIconSetConfig(e,i){let r=this._iconSetConfigs.get(e);return r?r.push(i):this._iconSetConfigs.set(e,[i]),this}_svgElementFromConfig(e){if(!e.svgElement){let i=this._svgElementFromString(e.svgText);this._setSvgAttributes(i,e.options),e.svgElement=i}return e.svgElement}_getIconConfigFromResolvers(e,i){for(let r=0;rn?n.pathname+n.search:""}}var J5=["clip-path","color-profile","src","cursor","fill","filter","marker","marker-start","marker-mid","marker-end","mask","stroke"],nue=J5.map(t=>`[${t}]`).join(", "),rue=/^url\(['"]?#(.*?)['"]?\)$/,mt=(()=>{class t{_elementRef=u(q);_iconRegistry=u(X5);_location=u(tue);_errorHandler=u(Tn);_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 i=this._cleanupFontValue(e);i!==this._fontSet&&(this._fontSet=i,this._updateFontIconClasses())}_fontSet;get fontIcon(){return this._fontIcon}set fontIcon(e){let i=this._cleanupFontValue(e);i!==this._fontIcon&&(this._fontIcon=i,this._updateFontIconClasses())}_fontIcon;_previousFontSetClass=[];_previousFontIconClass;_svgName;_svgNamespace;_previousPath;_elementsWithExternalReferences;_currentIconFetch=ke.EMPTY;constructor(){let e=u(new Ii("aria-hidden"),{optional:!0}),i=u(eue,{optional:!0});i&&(i.color&&(this.color=this._defaultColor=i.color),i.fontSet&&(this.fontSet=i.fontSet)),e||this._elementRef.nativeElement.setAttribute("aria-hidden","true")}_splitIconName(e){if(!e)return["",""];let i=e.split(":");switch(i.length){case 1:return["",i[0]];case 2:return i;default:throw Error(`Invalid icon name: "${e}"`)}}ngOnInit(){this._updateFontIconClasses()}ngAfterViewChecked(){let e=this._elementsWithExternalReferences;if(e&&e.size){let i=this._location.getPathname();i!==this._previousPath&&(this._previousPath=i,this._prependPathToReferences(i))}}ngOnDestroy(){this._currentIconFetch.unsubscribe(),this._elementsWithExternalReferences&&this._elementsWithExternalReferences.clear()}_usingFontIcon(){return!this.svgIcon}_setSvgElement(e){this._clearSvgElement();let i=this._location.getPathname();this._previousPath=i,this._cacheChildrenWithExternalReferences(e),this._prependPathToReferences(i),this._elementRef.nativeElement.appendChild(e)}_clearSvgElement(){let e=this._elementRef.nativeElement,i=e.childNodes.length;for(this._elementsWithExternalReferences&&this._elementsWithExternalReferences.clear();i--;){let r=e.childNodes[i];(r.nodeType!==1||r.nodeName.toLowerCase()==="svg")&&r.remove()}}_updateFontIconClasses(){if(!this._usingFontIcon())return;let e=this._elementRef.nativeElement,i=(this.fontSet?this._iconRegistry.classNameForFontAlias(this.fontSet).split(/ +/):this._iconRegistry.getDefaultFontSetClass()).filter(r=>r.length>0);this._previousFontSetClass.forEach(r=>e.classList.remove(r)),i.forEach(r=>e.classList.add(r)),this._previousFontSetClass=i,this.fontIcon!==this._previousFontIconClass&&!i.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 i=this._elementsWithExternalReferences;i&&i.forEach((r,o)=>{r.forEach(a=>{o.setAttribute(a.name,`url('${e}#${a.value}')`)})})}_cacheChildrenWithExternalReferences(e){let i=e.querySelectorAll(nue),r=this._elementsWithExternalReferences=this._elementsWithExternalReferences||new Map;for(let o=0;o{let s=i[o],l=s.getAttribute(a),c=l?l.match(rue):null;if(c){let d=r.get(s);d||(d=[],r.set(s,d)),d.push({name:a,value:c[1]})}})}_updateSvgIcon(e){if(this._svgNamespace=null,this._svgName=null,this._currentIconFetch.unsubscribe(),e){let[i,r]=this._splitIconName(e);i&&(this._svgNamespace=i),r&&(this._svgName=r),this._currentIconFetch=this._iconRegistry.getNamedSvgIcon(r,i).pipe(lt(1)).subscribe(o=>this._setSvgElement(o),o=>{let a=`Error retrieving icon ${i}:${r}! ${o.message}`;this._errorHandler.handleError(new Error(a))})}}static \u0275fac=function(i){return new(i||t)};static \u0275cmp=E({type:t,selectors:[["mat-icon"]],hostAttrs:["role","img",1,"mat-icon","notranslate"],hostVars:10,hostBindings:function(i,r){i&2&&(X("data-mat-icon-type",r._usingFontIcon()?"font":"svg")("data-mat-icon-name",r._svgName||r.fontIcon)("data-mat-icon-namespace",r._svgNamespace||r.fontSet)("fontIcon",r._usingFontIcon()?r.fontIcon:null),it(r.color?"mat-"+r.color:""),G("mat-icon-inline",r.inline)("mat-icon-no-color",r.color!=="primary"&&r.color!=="accent"&&r.color!=="warn"))},inputs:{color:"color",inline:[2,"inline","inline",V],svgIcon:"svgIcon",fontSet:"fontSet",fontIcon:"fontIcon"},exportAs:["matIcon"],ngContentSelectors:Jde,decls:1,vars:0,template:function(i,r){i&1&&(Me(),oe(0))},styles:[`mat-icon,mat-icon.mat-primary,mat-icon.mat-accent,mat-icon.mat-warn{color:var(--mat-icon-color, inherit)}.mat-icon{-webkit-user-select:none;user-select:none;background-repeat:no-repeat;display:inline-block;fill:currentColor;height:24px;width:24px;overflow:hidden}.mat-icon.mat-icon-inline{font-size:inherit;height:inherit;line-height:inherit;width:inherit}.mat-icon.mat-ligature-font[fontIcon]::before{content:attr(fontIcon)}[dir=rtl] .mat-icon-rtl-mirror{transform:scale(-1, 1)}.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-prefix .mat-icon,.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-suffix .mat-icon{display:block}.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-prefix .mat-icon-button .mat-icon,.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})(),ot=(()=>{class t{static \u0275fac=function(i){return new(i||t)};static \u0275mod=ee({type:t});static \u0275inj=J({imports:[we,we]})}return t})();function oue(t,n){if(t&1&&(h(0,"a",3),_(1),p()),t&2){let e=C().$implicit;g(),H(e)}}function aue(t,n){if(t&1&&(h(0,"mat-icon",4),_(1,"chevron_right"),p(),h(2,"span"),_(3),me(4,"translate"),p()),t&2){let e=C().$implicit;g(3),H(Oe(4,1,e))}}function sue(t,n){if(t&1&&(h(0,"li",2),N(1,oue,2,1,"a",3),N(2,aue,5,3),p()),t&2){let e=n.$index;g(),L(e===0?1:-1),g(),L(e!==0?2:-1)}}var ez=(()=>{let n=class n{constructor(){this.router=u(Re),this.menu=u(so),this.nav=ne([]),this.navItems=[]}ngOnInit(){this.router.events.pipe(ce(i=>i instanceof vi),He(this.router)).subscribe(()=>{this.genBreadcrumb()})}genBreadcrumb(){let i=this.router.url.slice(1).split("/");this.nav().length>0?this.navItems=[...this.nav()]:(this.navItems=this.menu.getLevel(i),this.navItems.unshift("home"))}};n.\u0275fac=function(r){return new(r||n)},n.\u0275cmp=E({type:n,selectors:[["breadcrumb"]],inputs:{nav:[1,"nav"]},decls:4,vars:0,consts:[["aria-label","breadcrumb"],[1,"matero-breadcrumb"],[1,"matero-breadcrumb-item"],["href","#",1,"link"],[1,"chevron"]],template:function(r,o){r&1&&(h(0,"nav",0)(1,"ol",1),xt(2,sue,3,2,"li",2,Hi),p()()),r&2&&(g(2),Ct(o.navItems))},dependencies:[ot,mt,wr,Cr],styles:[`.matero-breadcrumb{display:flex;flex-wrap:wrap;padding:0;margin-bottom:1rem;font-size:.875rem;list-style:none}.matero-breadcrumb-item{line-height:1.125rem;text-transform:capitalize}.matero-breadcrumb-item>*{vertical-align:middle}.matero-breadcrumb-item>a.link{color:currentColor;text-decoration:none}.matero-breadcrumb-item>a.link:hover{color:currentColor;text-decoration:underline}.matero-breadcrumb-item>.chevron{width:1.125rem;height:1.125rem;font-size:1.125rem;-webkit-user-select:none;user-select:none} -`],encapsulation:2});let t=n;return t})();function lue(t,n){}var Vc=class{viewContainerRef;injector;id;role="dialog";panelClass="";hasBackdrop=!0;backdropClass="";disableClose=!1;closePredicate;width="";height="";minWidth;minHeight;maxWidth;maxHeight;positionStrategy;data=null;direction;ariaDescribedBy=null;ariaLabelledBy=null;ariaLabel=null;ariaModal=!1;autoFocus="first-tabbable";restoreFocus=!0;scrollStrategy;closeOnNavigation=!0;closeOnDestroy=!0;closeOnOverlayDetachments=!0;disableAnimations=!1;providers;container;templateContext};var dI=(()=>{class t extends dc{_elementRef=u(q);_focusTrapFactory=u(Qm);_config;_interactivityChecker=u(ac);_ngZone=u(ae);_focusMonitor=u(Yt);_renderer=u(je);_changeDetectorRef=u(ye);_injector=u(de);_platform=u(qe);_document=u(ge);_portalOutlet;_focusTrapped=new z;_focusTrap=null;_elementFocusedBeforeDialogWasOpened=null;_closeInteractionType=null;_ariaLabelledByQueue=[];_isDestroyed=!1;constructor(){super(),this._config=u(Vc,{optional:!0})||new Vc,this._config.ariaLabelledBy&&this._ariaLabelledByQueue.push(this._config.ariaLabelledBy)}_addAriaLabelledBy(e){this._ariaLabelledByQueue.push(e),this._changeDetectorRef.markForCheck()}_removeAriaLabelledBy(e){let i=this._ariaLabelledByQueue.indexOf(e);i>-1&&(this._ariaLabelledByQueue.splice(i,1),this._changeDetectorRef.markForCheck())}_contentAttached(){this._initializeFocusTrap(),this._captureInitialFocus()}_captureInitialFocus(){this._trapFocus()}ngOnDestroy(){this._focusTrapped.complete(),this._isDestroyed=!0,this._restoreFocus()}attachComponentPortal(e){this._portalOutlet.hasAttached();let i=this._portalOutlet.attachComponentPortal(e);return this._contentAttached(),i}attachTemplatePortal(e){this._portalOutlet.hasAttached();let i=this._portalOutlet.attachTemplatePortal(e);return this._contentAttached(),i}attachDomPortal=e=>{this._portalOutlet.hasAttached();let i=this._portalOutlet.attachDomPortal(e);return this._contentAttached(),i};_recaptureFocus(){this._containsFocus()||this._trapFocus()}_forceFocus(e,i){this._interactivityChecker.isFocusable(e)||(e.tabIndex=-1,this._ngZone.runOutsideAngular(()=>{let r=()=>{o(),a(),e.removeAttribute("tabindex")},o=this._renderer.listen(e,"blur",r),a=this._renderer.listen(e,"mousedown",r)})),e.focus(i)}_focusByCssSelector(e,i){let r=this._elementRef.nativeElement.querySelector(e);r&&this._forceFocus(r,i)}_trapFocus(e){this._isDestroyed||pt(()=>{let i=this._elementRef.nativeElement;switch(this._config.autoFocus){case!1:case"dialog":this._containsFocus()||i.focus(e);break;case!0:case"first-tabbable":this._focusTrap?.focusInitialElement(e)||this._focusDialogContainer(e);break;case"first-heading":this._focusByCssSelector('h1, h2, h3, h4, h5, h6, [role="heading"]',e);break;default:this._focusByCssSelector(this._config.autoFocus,e);break}this._focusTrapped.next()},{injector:this._injector})}_restoreFocus(){let e=this._config.restoreFocus,i=null;if(typeof e=="string"?i=this._document.querySelector(e):typeof e=="boolean"?i=e?this._elementFocusedBeforeDialogWasOpened:null:e&&(i=e),this._config.restoreFocus&&i&&typeof i.focus=="function"){let r=_o(),o=this._elementRef.nativeElement;(!r||r===this._document.body||r===o||o.contains(r))&&(this._focusMonitor?(this._focusMonitor.focusVia(i,this._closeInteractionType),this._closeInteractionType=null):i.focus())}this._focusTrap&&this._focusTrap.destroy()}_focusDialogContainer(e){this._elementRef.nativeElement.focus?.(e)}_containsFocus(){let e=this._elementRef.nativeElement,i=_o();return e===i||e.contains(i)}_initializeFocusTrap(){this._platform.isBrowser&&(this._focusTrap=this._focusTrapFactory.create(this._elementRef.nativeElement),this._document&&(this._elementFocusedBeforeDialogWasOpened=_o()))}static \u0275fac=function(i){return new(i||t)};static \u0275cmp=E({type:t,selectors:[["cdk-dialog-container"]],viewQuery:function(i,r){if(i&1&&ie(yr,7),i&2){let o;B(o=j())&&(r._portalOutlet=o.first)}},hostAttrs:["tabindex","-1",1,"cdk-dialog-container"],hostVars:6,hostBindings:function(i,r){i&2&&X("id",r._config.id||null)("role",r._config.role)("aria-modal",r._config.ariaModal)("aria-labelledby",r._config.ariaLabel?null:r._ariaLabelledByQueue[0])("aria-label",r._config.ariaLabel)("aria-describedby",r._config.ariaDescribedBy||null)},features:[le],decls:1,vars:0,consts:[["cdkPortalOutlet",""]],template:function(i,r){i&1&&R(0,lue,0,0,"ng-template",0)},dependencies:[yr],styles:[`.cdk-dialog-container{display:block;width:100%;height:100%;min-height:inherit;max-height:inherit} -`],encapsulation:2})}return t})(),c_=class{overlayRef;config;componentInstance;componentRef;containerInstance;disableClose;closed=new z;backdropClick;keydownEvents;outsidePointerEvents;id;_detachSubscription;constructor(n,e){this.overlayRef=n,this.config=e,this.disableClose=e.disableClose,this.backdropClick=n.backdropClick(),this.keydownEvents=n.keydownEvents(),this.outsidePointerEvents=n.outsidePointerEvents(),this.id=e.id,this.keydownEvents.subscribe(i=>{i.keyCode===27&&!this.disableClose&&!Ft(i)&&(i.preventDefault(),this.close(void 0,{focusOrigin:"keyboard"}))}),this.backdropClick.subscribe(()=>{!this.disableClose&&this._canClose()?this.close(void 0,{focusOrigin:"mouse"}):this.containerInstance._recaptureFocus?.()}),this._detachSubscription=n.detachments().subscribe(()=>{e.closeOnOverlayDetachments!==!1&&this.close()})}close(n,e){if(this._canClose(n)){let i=this.closed;this.containerInstance._closeInteractionType=e?.focusOrigin||"program",this._detachSubscription.unsubscribe(),this.overlayRef.dispose(),i.next(n),i.complete(),this.componentInstance=this.containerInstance=null}}updatePosition(){return this.overlayRef.updatePosition(),this}updateSize(n="",e=""){return this.overlayRef.updateSize({width:n,height:e}),this}addPanelClass(n){return this.overlayRef.addPanelClass(n),this}removePanelClass(n){return this.overlayRef.removePanelClass(n),this}_canClose(n){let e=this.config;return!!this.containerInstance&&(!e.closePredicate||e.closePredicate(n,e,this.componentInstance))}},cue=new T("DialogScrollStrategy",{providedIn:"root",factory:()=>{let t=u(de);return()=>uc(t)}}),due=new T("DialogData"),uue=new T("DefaultDialogConfig");function mue(t){let n=he(t),e=new U;return{valueSignal:n,get value(){return n()},change:e,ngOnDestroy(){e.complete()}}}var uI=(()=>{class t{_injector=u(de);_defaultOptions=u(uue,{optional:!0});_parentDialog=u(t,{optional:!0,skipSelf:!0});_overlayContainer=u(ex);_idGenerator=u(Ze);_openDialogsAtThisLevel=[];_afterAllClosedAtThisLevel=new z;_afterOpenedAtThisLevel=new z;_ariaHiddenElements=new Map;_scrollStrategy=u(cue);get openDialogs(){return this._parentDialog?this._parentDialog.openDialogs:this._openDialogsAtThisLevel}get afterOpened(){return this._parentDialog?this._parentDialog.afterOpened:this._afterOpenedAtThisLevel}afterAllClosed=kn(()=>this.openDialogs.length?this._getAfterAllClosed():this._getAfterAllClosed().pipe(He(void 0)));constructor(){}open(e,i){let r=this._defaultOptions||new Vc;i=M(M({},r),i),i.id=i.id||this._idGenerator.getId("cdk-dialog-"),i.id&&this.getDialogById(i.id);let o=this._getOverlayConfig(i),a=Nr(this._injector,o),s=new c_(a,i),l=this._attachContainer(a,s,i);if(s.containerInstance=l,!this.openDialogs.length){let c=this._overlayContainer.getContainerElement();l._focusTrapped?l._focusTrapped.pipe(lt(1)).subscribe(()=>{this._hideNonDialogContentFromAssistiveTechnology(c)}):this._hideNonDialogContentFromAssistiveTechnology(c)}return this._attachDialogContent(e,s,l,i),this.openDialogs.push(s),s.closed.subscribe(()=>this._removeOpenDialog(s,!0)),this.afterOpened.next(s),s}closeAll(){cI(this.openDialogs,e=>e.close())}getDialogById(e){return this.openDialogs.find(i=>i.id===e)}ngOnDestroy(){cI(this._openDialogsAtThisLevel,e=>{e.config.closeOnDestroy===!1&&this._removeOpenDialog(e,!1)}),cI(this._openDialogsAtThisLevel,e=>e.close()),this._afterAllClosedAtThisLevel.complete(),this._afterOpenedAtThisLevel.complete(),this._openDialogsAtThisLevel=[]}_getOverlayConfig(e){let i=new Fr({positionStrategy:e.positionStrategy||Ds().centerHorizontally().centerVertically(),scrollStrategy:e.scrollStrategy||this._scrollStrategy(),panelClass:e.panelClass,hasBackdrop:e.hasBackdrop,direction:e.direction,minWidth:e.minWidth,minHeight:e.minHeight,maxWidth:e.maxWidth,maxHeight:e.maxHeight,width:e.width,height:e.height,disposeOnNavigation:e.closeOnNavigation,disableAnimations:e.disableAnimations});return e.backdropClass&&(i.backdropClass=e.backdropClass),i}_attachContainer(e,i,r){let o=r.injector||r.viewContainerRef?.injector,a=[{provide:Vc,useValue:r},{provide:c_,useValue:i},{provide:gh,useValue:e}],s;r.container?typeof r.container=="function"?s=r.container:(s=r.container.type,a.push(...r.container.providers(r))):s=dI;let l=new Zr(s,r.viewContainerRef,de.create({parent:o||this._injector,providers:a}));return e.attach(l).instance}_attachDialogContent(e,i,r,o){if(e instanceof te){let a=this._createInjector(o,i,r,void 0),s={$implicit:o.data,dialogRef:i};o.templateContext&&(s=M(M({},s),typeof o.templateContext=="function"?o.templateContext():o.templateContext)),r.attachTemplatePortal(new Cn(e,null,s,a))}else{let a=this._createInjector(o,i,r,this._injector),s=r.attachComponentPortal(new Zr(e,o.viewContainerRef,a));i.componentRef=s,i.componentInstance=s.instance}}_createInjector(e,i,r,o){let a=e.injector||e.viewContainerRef?.injector,s=[{provide:due,useValue:e.data},{provide:c_,useValue:i}];return e.providers&&(typeof e.providers=="function"?s.push(...e.providers(i,e,r)):s.push(...e.providers)),e.direction&&(!a||!a.get(Vt,null,{optional:!0}))&&s.push({provide:Vt,useValue:mue(e.direction)}),de.create({parent:a||o,providers:s})}_removeOpenDialog(e,i){let r=this.openDialogs.indexOf(e);r>-1&&(this.openDialogs.splice(r,1),this.openDialogs.length||(this._ariaHiddenElements.forEach((o,a)=>{o?a.setAttribute("aria-hidden",o):a.removeAttribute("aria-hidden")}),this._ariaHiddenElements.clear(),i&&this._getAfterAllClosed().next()))}_hideNonDialogContentFromAssistiveTechnology(e){if(e.parentElement){let i=e.parentElement.children;for(let r=i.length-1;r>-1;r--){let o=i[r];o!==e&&o.nodeName!=="SCRIPT"&&o.nodeName!=="STYLE"&&!o.hasAttribute("aria-live")&&(this._ariaHiddenElements.set(o,o.getAttribute("aria-hidden")),o.setAttribute("aria-hidden","true"))}}}_getAfterAllClosed(){let e=this._parentDialog;return e?e._getAfterAllClosed():this._afterAllClosedAtThisLevel}static \u0275fac=function(i){return new(i||t)};static \u0275prov=O({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();function cI(t,n){let e=t.length;for(;e--;)n(t[e])}var tz=(()=>{class t{static \u0275fac=function(i){return new(i||t)};static \u0275mod=ee({type:t});static \u0275inj=J({providers:[uI],imports:[er,Co,ll,Co]})}return t})();function hue(t,n){}var u_=class{viewContainerRef;injector;id;role="dialog";panelClass="";hasBackdrop=!0;backdropClass="";disableClose=!1;closePredicate;width="";height="";minWidth;minHeight;maxWidth;maxHeight;position;data=null;direction;ariaDescribedBy=null;ariaLabelledBy=null;ariaLabel=null;ariaModal=!1;autoFocus="first-tabbable";restoreFocus=!0;delayFocusTrap=!0;scrollStrategy;closeOnNavigation=!0;enterAnimationDuration;exitAnimationDuration},mI="mdc-dialog--open",iz="mdc-dialog--opening",nz="mdc-dialog--closing",pue=150,fue=75,az=(()=>{class t extends dI{_animationStateChanged=new U;_animationsEnabled=!Ye();_actionSectionCount=0;_hostElement=this._elementRef.nativeElement;_enterAnimationDuration=this._animationsEnabled?oz(this._config.enterAnimationDuration)??pue:0;_exitAnimationDuration=this._animationsEnabled?oz(this._config.exitAnimationDuration)??fue:0;_animationTimer=null;_contentAttached(){super._contentAttached(),this._startOpenAnimation()}_startOpenAnimation(){this._animationStateChanged.emit({state:"opening",totalTime:this._enterAnimationDuration}),this._animationsEnabled?(this._hostElement.style.setProperty(rz,`${this._enterAnimationDuration}ms`),this._requestAnimationFrame(()=>this._hostElement.classList.add(iz,mI)),this._waitForAnimationToComplete(this._enterAnimationDuration,this._finishDialogOpen)):(this._hostElement.classList.add(mI),Promise.resolve().then(()=>this._finishDialogOpen()))}_startExitAnimation(){this._animationStateChanged.emit({state:"closing",totalTime:this._exitAnimationDuration}),this._hostElement.classList.remove(mI),this._animationsEnabled?(this._hostElement.style.setProperty(rz,`${this._exitAnimationDuration}ms`),this._requestAnimationFrame(()=>this._hostElement.classList.add(nz)),this._waitForAnimationToComplete(this._exitAnimationDuration,this._finishDialogClose)):Promise.resolve().then(()=>this._finishDialogClose())}_updateActionSectionCount(e){this._actionSectionCount+=e,this._changeDetectorRef.markForCheck()}_finishDialogOpen=()=>{this._clearAnimationClasses(),this._openAnimationDone(this._enterAnimationDuration)};_finishDialogClose=()=>{this._clearAnimationClasses(),this._animationStateChanged.emit({state:"closed",totalTime:this._exitAnimationDuration})};_clearAnimationClasses(){this._hostElement.classList.remove(iz,nz)}_waitForAnimationToComplete(e,i){this._animationTimer!==null&&clearTimeout(this._animationTimer),this._animationTimer=setTimeout(i,e)}_requestAnimationFrame(e){this._ngZone.runOutsideAngular(()=>{typeof requestAnimationFrame=="function"?requestAnimationFrame(e):e()})}_captureInitialFocus(){this._config.delayFocusTrap||this._trapFocus()}_openAnimationDone(e){this._config.delayFocusTrap&&this._trapFocus(),this._animationStateChanged.next({state:"opened",totalTime:e})}ngOnDestroy(){super.ngOnDestroy(),this._animationTimer!==null&&clearTimeout(this._animationTimer)}attachComponentPortal(e){let i=super.attachComponentPortal(e);return i.location.nativeElement.classList.add("mat-mdc-dialog-component-host"),i}static \u0275fac=(()=>{let e;return function(r){return(e||(e=fe(t)))(r||t)}})();static \u0275cmp=E({type:t,selectors:[["mat-dialog-container"]],hostAttrs:["tabindex","-1",1,"mat-mdc-dialog-container","mdc-dialog"],hostVars:10,hostBindings:function(i,r){i&2&&(si("id",r._config.id),X("aria-modal",r._config.ariaModal)("role",r._config.role)("aria-labelledby",r._config.ariaLabel?null:r._ariaLabelledByQueue[0])("aria-label",r._config.ariaLabel)("aria-describedby",r._config.ariaDescribedBy||null),G("_mat-animation-noopable",!r._animationsEnabled)("mat-mdc-dialog-container-with-actions",r._actionSectionCount>0))},features:[le],decls:3,vars:0,consts:[[1,"mat-mdc-dialog-inner-container","mdc-dialog__container"],[1,"mat-mdc-dialog-surface","mdc-dialog__surface"],["cdkPortalOutlet",""]],template:function(i,r){i&1&&(h(0,"div",0)(1,"div",1),R(2,hue,0,0,"ng-template",2),p()())},dependencies:[yr],styles:[`.mat-mdc-dialog-container{width:100%;height:100%;display:block;box-sizing:border-box;max-height:inherit;min-height:inherit;min-width:inherit;max-width:inherit;outline:0}.cdk-overlay-pane.mat-mdc-dialog-panel{max-width:var(--mat-dialog-container-max-width, 560px);min-width:var(--mat-dialog-container-min-width, 280px)}@media(max-width: 599px){.cdk-overlay-pane.mat-mdc-dialog-panel{max-width:var(--mat-dialog-container-small-max-width, calc(100vw - 32px))}}.mat-mdc-dialog-inner-container{display:flex;flex-direction:row;align-items:center;justify-content:space-around;box-sizing:border-box;height:100%;opacity:0;transition:opacity linear var(--mat-dialog-transition-duration, 0ms);max-height:inherit;min-height:inherit;min-width:inherit;max-width:inherit}.mdc-dialog--closing .mat-mdc-dialog-inner-container{transition:opacity 75ms linear;transform:none}.mdc-dialog--open .mat-mdc-dialog-inner-container{opacity:1}._mat-animation-noopable .mat-mdc-dialog-inner-container{transition:none}.mat-mdc-dialog-surface{display:flex;flex-direction:column;flex-grow:0;flex-shrink:0;box-sizing:border-box;width:100%;height:100%;position:relative;overflow-y:auto;outline:0;transform:scale(0.8);transition:transform var(--mat-dialog-transition-duration, 0ms) cubic-bezier(0, 0, 0.2, 1);max-height:inherit;min-height:inherit;min-width:inherit;max-width:inherit;box-shadow:var(--mat-dialog-container-elevation-shadow, none);border-radius:var(--mat-dialog-container-shape, var(--mat-sys-corner-extra-large, 4px));background-color:var(--mat-dialog-container-color, var(--mat-sys-surface, white))}[dir=rtl] .mat-mdc-dialog-surface{text-align:right}.mdc-dialog--open .mat-mdc-dialog-surface,.mdc-dialog--closing .mat-mdc-dialog-surface{transform:none}._mat-animation-noopable .mat-mdc-dialog-surface{transition:none}.mat-mdc-dialog-surface::before{position:absolute;box-sizing:border-box;width:100%;height:100%;top:0;left:0;border:2px solid rgba(0,0,0,0);border-radius:inherit;content:"";pointer-events:none}.mat-mdc-dialog-title{display:block;position:relative;flex-shrink:0;box-sizing:border-box;margin:0 0 1px;padding:var(--mat-dialog-headline-padding, 6px 24px 13px)}.mat-mdc-dialog-title::before{display:inline-block;width:0;height:40px;content:"";vertical-align:0}[dir=rtl] .mat-mdc-dialog-title{text-align:right}.mat-mdc-dialog-container .mat-mdc-dialog-title{color:var(--mat-dialog-subhead-color, var(--mat-sys-on-surface, rgba(0, 0, 0, 0.87)));font-family:var(--mat-dialog-subhead-font, var(--mat-sys-headline-small-font, inherit));line-height:var(--mat-dialog-subhead-line-height, var(--mat-sys-headline-small-line-height, 1.5rem));font-size:var(--mat-dialog-subhead-size, var(--mat-sys-headline-small-size, 1rem));font-weight:var(--mat-dialog-subhead-weight, var(--mat-sys-headline-small-weight, 400));letter-spacing:var(--mat-dialog-subhead-tracking, var(--mat-sys-headline-small-tracking, 0.03125em))}.mat-mdc-dialog-content{display:block;flex-grow:1;box-sizing:border-box;margin:0;overflow:auto;max-height:65vh}.mat-mdc-dialog-content>:first-child{margin-top:0}.mat-mdc-dialog-content>:last-child{margin-bottom:0}.mat-mdc-dialog-container .mat-mdc-dialog-content{color:var(--mat-dialog-supporting-text-color, var(--mat-sys-on-surface-variant, rgba(0, 0, 0, 0.6)));font-family:var(--mat-dialog-supporting-text-font, var(--mat-sys-body-medium-font, inherit));line-height:var(--mat-dialog-supporting-text-line-height, var(--mat-sys-body-medium-line-height, 1.5rem));font-size:var(--mat-dialog-supporting-text-size, var(--mat-sys-body-medium-size, 1rem));font-weight:var(--mat-dialog-supporting-text-weight, var(--mat-sys-body-medium-weight, 400));letter-spacing:var(--mat-dialog-supporting-text-tracking, var(--mat-sys-body-medium-tracking, 0.03125em))}.mat-mdc-dialog-container .mat-mdc-dialog-content{padding:var(--mat-dialog-content-padding, 20px 24px)}.mat-mdc-dialog-container-with-actions .mat-mdc-dialog-content{padding:var(--mat-dialog-with-actions-content-padding, 20px 24px 0)}.mat-mdc-dialog-container .mat-mdc-dialog-title+.mat-mdc-dialog-content{padding-top:0}.mat-mdc-dialog-actions{display:flex;position:relative;flex-shrink:0;flex-wrap:wrap;align-items:center;box-sizing:border-box;min-height:52px;margin:0;border-top:1px solid rgba(0,0,0,0);padding:var(--mat-dialog-actions-padding, 16px 24px);justify-content:var(--mat-dialog-actions-alignment, flex-end)}@media(forced-colors: active){.mat-mdc-dialog-actions{border-top-color:CanvasText}}.mat-mdc-dialog-actions.mat-mdc-dialog-actions-align-start,.mat-mdc-dialog-actions[align=start]{justify-content:start}.mat-mdc-dialog-actions.mat-mdc-dialog-actions-align-center,.mat-mdc-dialog-actions[align=center]{justify-content:center}.mat-mdc-dialog-actions.mat-mdc-dialog-actions-align-end,.mat-mdc-dialog-actions[align=end]{justify-content:flex-end}.mat-mdc-dialog-actions .mat-button-base+.mat-button-base,.mat-mdc-dialog-actions .mat-mdc-button-base+.mat-mdc-button-base{margin-left:8px}[dir=rtl] .mat-mdc-dialog-actions .mat-button-base+.mat-button-base,[dir=rtl] .mat-mdc-dialog-actions .mat-mdc-button-base+.mat-mdc-button-base{margin-left:0;margin-right:8px}.mat-mdc-dialog-component-host{display:contents} -`],encapsulation:2})}return t})(),rz="--mat-dialog-transition-duration";function oz(t){return t==null?null:typeof t=="number"?t:t.endsWith("ms")?Ln(t.substring(0,t.length-2)):t.endsWith("s")?Ln(t.substring(0,t.length-1))*1e3:t==="0"?0:null}var d_=(function(t){return t[t.OPEN=0]="OPEN",t[t.CLOSING=1]="CLOSING",t[t.CLOSED=2]="CLOSED",t})(d_||{}),Mu=class{_ref;_config;_containerInstance;componentInstance;componentRef;disableClose;id;_afterOpened=new z;_beforeClosed=new z;_result;_closeFallbackTimeout;_state=d_.OPEN;_closeInteractionType;constructor(n,e,i){this._ref=n,this._config=e,this._containerInstance=i,this.disableClose=e.disableClose,this.id=n.id,n.addPanelClass("mat-mdc-dialog-panel"),i._animationStateChanged.pipe(ce(r=>r.state==="opened"),lt(1)).subscribe(()=>{this._afterOpened.next(),this._afterOpened.complete()}),i._animationStateChanged.pipe(ce(r=>r.state==="closed"),lt(1)).subscribe(()=>{clearTimeout(this._closeFallbackTimeout),this._finishDialogClose()}),n.overlayRef.detachments().subscribe(()=>{this._beforeClosed.next(this._result),this._beforeClosed.complete(),this._finishDialogClose()}),Je(this.backdropClick(),this.keydownEvents().pipe(ce(r=>r.keyCode===27&&!this.disableClose&&!Ft(r)))).subscribe(r=>{this.disableClose||(r.preventDefault(),sz(this,r.type==="keydown"?"keyboard":"mouse"))})}close(n){let e=this._config.closePredicate;e&&!e(n,this._config,this.componentInstance)||(this._result=n,this._containerInstance._animationStateChanged.pipe(ce(i=>i.state==="closing"),lt(1)).subscribe(i=>{this._beforeClosed.next(n),this._beforeClosed.complete(),this._ref.overlayRef.detachBackdrop(),this._closeFallbackTimeout=setTimeout(()=>this._finishDialogClose(),i.totalTime+100)}),this._state=d_.CLOSING,this._containerInstance._startExitAnimation())}afterOpened(){return this._afterOpened}afterClosed(){return this._ref.closed}beforeClosed(){return this._beforeClosed}backdropClick(){return this._ref.backdropClick}keydownEvents(){return this._ref.keydownEvents}updatePosition(n){let e=this._ref.config.positionStrategy;return n&&(n.left||n.right)?n.left?e.left(n.left):e.right(n.right):e.centerHorizontally(),n&&(n.top||n.bottom)?n.top?e.top(n.top):e.bottom(n.bottom):e.centerVertically(),this._ref.updatePosition(),this}updateSize(n="",e=""){return this._ref.updateSize(n,e),this}addPanelClass(n){return this._ref.addPanelClass(n),this}removePanelClass(n){return this._ref.removePanelClass(n),this}getState(){return this._state}_finishDialogClose(){this._state=d_.CLOSED,this._ref.close(this._result,{focusOrigin:this._closeInteractionType}),this.componentInstance=null}};function sz(t,n,e){return t._closeInteractionType=n,t.close(e)}var TC=new T("MatMdcDialogData"),lz=new T("mat-mdc-dialog-default-options"),cz=new T("mat-mdc-dialog-scroll-strategy",{providedIn:"root",factory:()=>{let t=u(de);return()=>uc(t)}}),En=(()=>{class t{_defaultOptions=u(lz,{optional:!0});_scrollStrategy=u(cz);_parentDialog=u(t,{optional:!0,skipSelf:!0});_idGenerator=u(Ze);_injector=u(de);_dialog=u(uI);_animationsDisabled=Ye();_openDialogsAtThisLevel=[];_afterAllClosedAtThisLevel=new z;_afterOpenedAtThisLevel=new z;dialogConfigClass=u_;_dialogRefConstructor;_dialogContainerType;_dialogDataToken;get openDialogs(){return this._parentDialog?this._parentDialog.openDialogs:this._openDialogsAtThisLevel}get afterOpened(){return this._parentDialog?this._parentDialog.afterOpened:this._afterOpenedAtThisLevel}_getAfterAllClosed(){let e=this._parentDialog;return e?e._getAfterAllClosed():this._afterAllClosedAtThisLevel}afterAllClosed=kn(()=>this.openDialogs.length?this._getAfterAllClosed():this._getAfterAllClosed().pipe(He(void 0)));constructor(){this._dialogRefConstructor=Mu,this._dialogContainerType=az,this._dialogDataToken=TC}open(e,i){let r;i=M(M({},this._defaultOptions||new u_),i),i.id=i.id||this._idGenerator.getId("mat-mdc-dialog-"),i.scrollStrategy=i.scrollStrategy||this._scrollStrategy();let o=this._dialog.open(e,De(M({},i),{positionStrategy:Ds(this._injector).centerHorizontally().centerVertically(),disableClose:!0,closePredicate:void 0,closeOnDestroy:!1,closeOnOverlayDetachments:!1,disableAnimations:this._animationsDisabled||i.enterAnimationDuration?.toLocaleString()==="0"||i.exitAnimationDuration?.toString()==="0",container:{type:this._dialogContainerType,providers:()=>[{provide:this.dialogConfigClass,useValue:i},{provide:Vc,useValue:i}]},templateContext:()=>({dialogRef:r}),providers:(a,s,l)=>(r=new this._dialogRefConstructor(a,i,l),r.updatePosition(i?.position),[{provide:this._dialogContainerType,useValue:l},{provide:this._dialogDataToken,useValue:s.data},{provide:this._dialogRefConstructor,useValue:r}])}));return r.componentRef=o.componentRef,r.componentInstance=o.componentInstance,this.openDialogs.push(r),this.afterOpened.next(r),r.afterClosed().subscribe(()=>{let a=this.openDialogs.indexOf(r);a>-1&&(this.openDialogs.splice(a,1),this.openDialogs.length||this._getAfterAllClosed().next())}),r}closeAll(){this._closeDialogs(this.openDialogs)}getDialogById(e){return this.openDialogs.find(i=>i.id===e)}ngOnDestroy(){this._closeDialogs(this._openDialogsAtThisLevel),this._afterAllClosedAtThisLevel.complete(),this._afterOpenedAtThisLevel.complete()}_closeDialogs(e){let i=e.length;for(;i--;)e[i].close()}static \u0275fac=function(i){return new(i||t)};static \u0275prov=O({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();var dz=(()=>{class t{_dialogRef=u(Mu,{optional:!0});_elementRef=u(q);_dialog=u(En);constructor(){}ngOnInit(){this._dialogRef||(this._dialogRef=gue(this._elementRef,this._dialog.openDialogs)),this._dialogRef&&Promise.resolve().then(()=>{this._onAdd()})}ngOnDestroy(){this._dialogRef?._containerInstance&&Promise.resolve().then(()=>{this._onRemove()})}static \u0275fac=function(i){return new(i||t)};static \u0275dir=F({type:t})}return t})(),hI=(()=>{class t extends dz{id=u(Ze).getId("mat-mdc-dialog-title-");_onAdd(){this._dialogRef._containerInstance?._addAriaLabelledBy?.(this.id)}_onRemove(){this._dialogRef?._containerInstance?._removeAriaLabelledBy?.(this.id)}static \u0275fac=(()=>{let e;return function(r){return(e||(e=fe(t)))(r||t)}})();static \u0275dir=F({type:t,selectors:[["","mat-dialog-title",""],["","matDialogTitle",""]],hostAttrs:[1,"mat-mdc-dialog-title","mdc-dialog__title"],hostVars:1,hostBindings:function(i,r){i&2&&si("id",r.id)},inputs:{id:"id"},exportAs:["matDialogTitle"],features:[le]})}return t})(),pI=(()=>{class t{static \u0275fac=function(i){return new(i||t)};static \u0275dir=F({type:t,selectors:[["","mat-dialog-content",""],["mat-dialog-content"],["","matDialogContent",""]],hostAttrs:[1,"mat-mdc-dialog-content","mdc-dialog__content"],features:[ym([Pa])]})}return t})(),fI=(()=>{class t extends dz{align;_onAdd(){this._dialogRef._containerInstance?._updateActionSectionCount?.(1)}_onRemove(){this._dialogRef._containerInstance?._updateActionSectionCount?.(-1)}static \u0275fac=(()=>{let e;return function(r){return(e||(e=fe(t)))(r||t)}})();static \u0275dir=F({type:t,selectors:[["","mat-dialog-actions",""],["mat-dialog-actions"],["","matDialogActions",""]],hostAttrs:[1,"mat-mdc-dialog-actions","mdc-dialog__actions"],hostVars:6,hostBindings:function(i,r){i&2&&G("mat-mdc-dialog-actions-align-start",r.align==="start")("mat-mdc-dialog-actions-align-center",r.align==="center")("mat-mdc-dialog-actions-align-end",r.align==="end")},inputs:{align:"align"},features:[le]})}return t})();function gue(t,n){let e=t.nativeElement.parentElement;for(;e&&!e.classList.contains("mat-mdc-dialog-container");)e=e.parentElement;return e?n.find(i=>i.id===e.id):null}var Mn=(()=>{class t{static \u0275fac=function(i){return new(i||t)};static \u0275mod=ee({type:t});static \u0275inj=J({providers:[En],imports:[tz,er,Co,we,we]})}return t})();var Er=(()=>{let n=class n{constructor(){this.dialogRef=u(Mu),this.data=u(TC)}confirm(){this.dialogRef.close(!0)}cancel(){this.dialogRef.close(!1)}};n.\u0275fac=function(r){return new(r||n)},n.\u0275cmp=E({type:n,selectors:[["app-confirm-dialog"]],decls:12,vars:4,consts:[["mat-dialog-title",""],["color","warn",2,"vertical-align","middle","margin-right","8px"],["align","end"],["mat-button","",3,"click"],["mat-raised-button","","color","warn","cdkFocusInitial","",3,"click"]],template:function(r,o){r&1&&(h(0,"h2",0)(1,"mat-icon",1),_(2,"warning"),p(),_(3),p(),h(4,"mat-dialog-content")(5,"p"),_(6),p()(),h(7,"mat-dialog-actions",2)(8,"button",3),S("click",function(){return o.cancel()}),_(9),p(),h(10,"button",4),S("click",function(){return o.confirm()}),_(11),p()()),r&2&&(g(3),ve(" ",o.data.title,` -`),g(3),H(o.data.message),g(3),ve(" ",o.data.cancelText||"Cancel"," "),g(2),ve(" ",o.data.confirmText||"Delete"," "))},dependencies:[Mn,hI,fI,pI,ze,kt,ot,mt],encapsulation:2});let t=n;return t})();function bue(t,n){if(t&1&&(h(0,"div",2),_(1),p()),t&2){let e=C();g(),H(e.title())}}function vue(t,n){if(t&1&&(h(0,"div",3),_(1),p()),t&2){let e=C();g(),H(e.message())}}var tp=(()=>{let n=class n{constructor(){this.code=ne(""),this.title=ne(""),this.message=ne("")}};n.\u0275fac=function(r){return new(r||n)},n.\u0275cmp=E({type:n,selectors:[["error-code"]],inputs:{code:[1,"code"],title:[1,"title"],message:[1,"message"]},decls:8,vars:3,consts:[[1,"matero-error-wrap"],[1,"matero-error-code"],[1,"matero-error-title"],[1,"matero-error-message"],["matButton","elevated","color","primary","routerLink","/"]],template:function(r,o){r&1&&(h(0,"div",0)(1,"div",1),_(2),p(),N(3,bue,2,1,"div",2),N(4,vue,2,1,"div",3),h(5,"div")(6,"a",4),_(7,"Back to Home"),p()()()),r&2&&(g(2),H(o.code()),g(),L(o.title()?3:-1),g(),L(o.message()?4:-1))},dependencies:[Nn,ze,kt],styles:[`.matero-error-wrap{text-align:center}.matero-error-code{padding:1.25rem 0;font-size:10rem;text-shadow:.1325825215rem .1325825215rem 0 rgba(0,0,0,.028575),.2651650429rem .2651650429rem 0 rgba(0,0,0,.02715),.3977475644rem .3977475644rem 0 rgba(0,0,0,.025725),.5303300859rem .5303300859rem 0 rgba(0,0,0,.0243),.6629126074rem .6629126074rem 0 rgba(0,0,0,.022875),.7954951288rem .7954951288rem 0 rgba(0,0,0,.02145),.9280776503rem .9280776503rem 0 rgba(0,0,0,.020025),1.0606601718rem 1.0606601718rem 0 rgba(0,0,0,.0186),1.1932426933rem 1.1932426933rem 0 rgba(0,0,0,.017175),1.3258252147rem 1.3258252147rem 0 rgba(0,0,0,.01575),1.4584077362rem 1.4584077362rem 0 rgba(0,0,0,.014325),1.5909902577rem 1.5909902577rem 0 rgba(0,0,0,.0129),1.7235727791rem 1.7235727791rem 0 rgba(0,0,0,.011475),1.8561553006rem 1.8561553006rem 0 rgba(0,0,0,.01005),1.9887378221rem 1.9887378221rem 0 rgba(0,0,0,.008625),2.1213203436rem 2.1213203436rem 0 rgba(0,0,0,.0072),2.253902865rem 2.253902865rem 0 rgba(0,0,0,.005775),2.3864853865rem 2.3864853865rem 0 rgba(0,0,0,.00435),2.519067908rem 2.519067908rem 0 rgba(0,0,0,.002925),2.6516504294rem 2.6516504294rem 0 rgba(0,0,0,.0015)}.matero-error-title{margin:0 0 1rem;font-size:1.25rem;font-weight:500;line-height:2rem}.matero-error-message{margin:0 0 1rem;font-size:1rem;font-weight:400;line-height:1.75rem} -`],encapsulation:2});let t=n;return t})();function yue(t,n){if(t&1&&k(0,"breadcrumb",2),t&2){let e=C();y("nav",e.nav())}}var ni=(()=>{let n=class n{constructor(){this.router=u(Re),this.menu=u(so),this.title=ne(""),this.subtitle=ne(""),this.nav=ne([]),this.hideBreadcrumb=ne(!1,{transform:V}),this.titleName=Zt(()=>{let i=this.router.url.slice(1).split("/"),r=this.menu.getLevel(i);return this.title()||r[r.length-1]})}};n.\u0275fac=function(r){return new(r||n)},n.\u0275cmp=E({type:n,selectors:[["page-header"]],hostAttrs:[1,"matero-page-header"],inputs:{title:[1,"title"],subtitle:[1,"subtitle"],nav:[1,"nav"],hideBreadcrumb:[1,"hideBreadcrumb"]},decls:7,vars:5,consts:[[1,"matero-page-header-inner"],[1,"matero-page-title"],[3,"nav"]],template:function(r,o){r&1&&(h(0,"div",0)(1,"h1",1),_(2),me(3,"translate"),h(4,"small"),_(5),p()(),N(6,yue,1,1,"breadcrumb",2),p()),r&2&&(g(2),ve(" ",Oe(3,3,o.titleName())," "),g(3),H(o.subtitle()),g(),L(o.hideBreadcrumb()?-1:6))},dependencies:[ez,wr,Cr],styles:[`.matero-page-header{display:block;padding:1rem;margin-bottom:1rem;color:#ffffffde;background-color:#0074e9;border-radius:var(--mat-sys-corner-medium)}.matero-page-header .matero-breadcrumb{margin-top:.5rem;margin-bottom:0}.matero-page-title{margin:0;font-size:1.5rem;font-weight:400} -`],encapsulation:2});let t=n;return t})();var uz=(()=>{let n=class n{constructor(){this.change=new U,this.valueSignal=he("ltr")}get value(){return this.valueSignal()}set value(i){this.valueSignal.set(i),this.change.next(i)}ngOnDestroy(){this.change.complete()}};n.\u0275fac=function(r){return new(r||n)},n.\u0275prov=O({token:n,factory:n.\u0275fac,providedIn:"root"});let t=n;return t})();var mz=(()=>{let n=class n{constructor(){this.messages=[]}add(i){this.messages.push(i)}clear(){this.messages=[]}};n.\u0275fac=function(r){return new(r||n)},n.\u0275prov=O({token:n,factory:n.\u0275fac,providedIn:"root"});let t=n;return t})();var hz=(()=>{let n=class n{get(i){return JSON.parse(localStorage.getItem(i)||"{}")||{}}set(i,r){return localStorage.setItem(i,JSON.stringify(r)),!0}has(i){return!!localStorage.getItem(i)}remove(i){localStorage.removeItem(i)}clear(){localStorage.clear()}};n.\u0275fac=function(r){return new(r||n)},n.\u0275prov=O({token:n,factory:n.\u0275fac,providedIn:"root"});let t=n;return t})();var pz=(()=>{let n=class n{constructor(){this.translate=u(ia),this.paginatorIntl=new gc,this.translate.onLangChange.subscribe(i=>this.getPaginatorIntl())}getPaginatorIntl(){return this.paginatorIntl.itemsPerPageLabel=this.translate.instant("paginator.items_per_page_label"),this.paginatorIntl.previousPageLabel=this.translate.instant("paginator.previous_page_label"),this.paginatorIntl.nextPageLabel=this.translate.instant("paginator.next_page_label"),this.paginatorIntl.firstPageLabel=this.translate.instant("paginator.first_page_label"),this.paginatorIntl.lastPageLabel=this.translate.instant("paginator.last_page_label"),this.paginatorIntl.getRangeLabel=this.getRangeLabel.bind(this),this.paginatorIntl.changes.next(),this.paginatorIntl}getRangeLabel(i,r,o){if(o===0||r===0)return this.translate.instant("paginator.range_page_label_1",{length:o});o=Math.max(o,0);let a=i*r,s=a{if(t.destroyed){e.next();return}return t.onDestroy(e.next.bind(e))});return e=>e.pipe(Te(n))}function fz(t){let n=UM(t);return new Fe(e=>{let i=n?.onDestroy(()=>e.complete()),r=t.subscribe(o=>e.next(o));return()=>{r.unsubscribe(),i?.()}})}var xue=["content"],Cue=["scroll"],wue=["padding"],bz=["*"],m_=t=>({searchTerm:t});function Due(t,n){if(t&1&&(h(0,"div",3),Ge(1,6),p()),t&2){let e=C();g(),y("ngTemplateOutlet",e.headerTemplate())("ngTemplateOutletContext",Pt(2,m_,e.filterValue()))}}function Eue(t,n){if(t&1&&(h(0,"div",5),Ge(1,6),p()),t&2){let e=C();g(),y("ngTemplateOutlet",e.footerTemplate())("ngTemplateOutletContext",Pt(2,m_,e.filterValue()))}}var Mue=["searchInput"],kue=["clearButton"],Sue=(t,n,e)=>({item:t,clear:n,label:e}),Tue=(t,n)=>({items:t,clear:n}),Iue=(t,n,e,i)=>({item:t,item$:n,index:e,searchTerm:i});function Aue(t,n){if(t&1&&(h(0,"div",20),_(1),p()),t&2){let e=C(2);g(),H(e.placeholder()??e.config.placeholder)}}function Oue(t,n){}function Rue(t,n){if(t&1&&R(0,Aue,2,1,"ng-template",null,1,_i)(2,Oue,0,0,"ng-template",19),t&2){let e=Se(1),i=C();g(2),y("ngTemplateOutlet",i.placeholderTemplate()||e)}}function Pue(t,n){if(t&1){let e=Y();h(0,"span",23),S("click",function(){I(e);let r=C().$implicit,o=C(2);return A(o.unselect(r))}),_(1,"\xD7"),p(),k(2,"span",24)}if(t&2){let e=C().$implicit,i=C(2);g(2),y("ngItemLabel",e.label)("escape",i.escapeHTML)}}function Fue(t,n){}function Nue(t,n){if(t&1&&(h(0,"div",22),R(1,Pue,3,2,"ng-template",null,2,_i)(3,Fue,0,0,"ng-template",12),p()),t&2){let e=n.$implicit,i=Se(2),r=C(2);G("ng-value-disabled",e.disabled),g(3),y("ngTemplateOutlet",r.labelTemplate()||i)("ngTemplateOutletContext",Rd(4,Sue,e.value,r.clearItem,e.label))}}function Lue(t,n){if(t&1&&xt(0,Nue,4,8,"div",21,Mv().trackByOption,!0),t&2){let e=C();Ct(e.selectedItems)}}function Vue(t,n){}function Bue(t,n){if(t&1&&R(0,Vue,0,0,"ng-template",12),t&2){let e=C();y("ngTemplateOutlet",e.multiLabelTemplate())("ngTemplateOutletContext",wa(2,Tue,e.selectedValues,e.clearItem))}}function jue(t,n){t&1&&k(0,"div",25)}function Hue(t,n){}function zue(t,n){if(t&1&&R(0,jue,1,0,"ng-template",null,3,_i)(2,Hue,0,0,"ng-template",19),t&2){let e=Se(1),i=C();g(2),y("ngTemplateOutlet",i.loadingSpinnerTemplate()||e)}}function Uue(t,n){if(t&1&&Ge(0,19),t&2){let e=C(2);y("ngTemplateOutlet",e.clearButtonTemplate())}}function $ue(t,n){if(t&1){let e=Y();h(0,"span",27,4),S("click",function(r){I(e);let o=C(2);return A(o.handleClearClick(r))}),h(2,"span",28),_(3,"\xD7"),p()()}if(t&2){let e=C(2);y("title",VM(e.clearAllText()||e.config.clearAllText)),X("tabindex",e.tabFocusOnClear()?0:-1)}}function Wue(t,n){if(t&1&&N(0,Uue,1,1,"ng-container",19)(1,$ue,4,3,"span",26),t&2){let e=C();L(e.clearButtonTemplate()?0:1)}}function Gue(t,n){if(t&1&&k(0,"span",33),t&2){let e=C().$implicit,i=C(2);y("ngItemLabel",e.label)("escape",i.escapeHTML)}}function que(t,n){}function Yue(t,n){if(t&1){let e=Y();h(0,"div",32),S("click",function(){let r=I(e).$implicit,o=C(2);return A(o.toggleItem(r))})("mouseover",function(){let r=I(e).$implicit,o=C(2);return A(o.onItemHover(r))}),R(1,Gue,1,2,"ng-template",null,5,_i)(3,que,0,0,"ng-template",12),p()}if(t&2){let e=n.$implicit,i=Se(2),r=C(2);G("ng-option-disabled",e.disabled)("ng-option-selected",e.selected)("ng-optgroup",e.children)("ng-option",!e.children)("ng-option-child",!!e.parent)("ng-option-marked",e===r.itemsList.markedItem),X("role",e.children?"group":"option")("aria-selected",e.selected)("id",e==null?null:e.htmlId)("aria-setsize",r.itemsList.filteredItems.length)("aria-posinset",e.index+1),g(3),y("ngTemplateOutlet",e.children?r.optgroupTemplate()||i:r.optionTemplate()||i)("ngTemplateOutletContext",wm(19,Iue,e.value,e,e.index,r.searchTerm))}}function Que(t,n){if(t&1&&(h(0,"span")(1,"span",35),_(2),p(),_(3),p()),t&2){let e=C(3);g(2),H(e.addTagText()||e.config.addTagText),g(),ve('"',e.searchTerm,'"')}}function Kue(t,n){}function Zue(t,n){if(t&1){let e=Y();h(0,"div",34),S("mouseover",function(){I(e);let r=C(2);return A(r.itemsList.unmarkItem())})("click",function(){I(e);let r=C(2);return A(r.selectTag())}),R(1,Que,4,2,"ng-template",null,6,_i)(3,Kue,0,0,"ng-template",12),p()}if(t&2){let e=Se(2),i=C(2);G("ng-option-marked",!i.itemsList.markedItem),g(3),y("ngTemplateOutlet",i.tagTemplate()||e)("ngTemplateOutletContext",Pt(4,m_,i.searchTerm))}}function Xue(t,n){if(t&1&&(h(0,"div",36),_(1),p()),t&2){let e=C(3);g(),H(e.notFoundText()??e.config.notFoundText)}}function Jue(t,n){}function eme(t,n){if(t&1&&R(0,Xue,2,1,"ng-template",null,7,_i)(2,Jue,0,0,"ng-template",12),t&2){let e=Se(1),i=C(2);g(2),y("ngTemplateOutlet",i.notFoundTemplate()||e)("ngTemplateOutletContext",Pt(2,m_,i.searchTerm))}}function tme(t,n){if(t&1&&(h(0,"div",36),_(1),p()),t&2){let e=C(3);g(),H(e.typeToSearchText()||e.config.typeToSearchText)}}function ime(t,n){}function nme(t,n){if(t&1&&R(0,tme,2,1,"ng-template",null,8,_i)(2,ime,0,0,"ng-template",19),t&2){let e=Se(1),i=C(2);g(2),y("ngTemplateOutlet",i.typeToSearchTemplate()||e)}}function rme(t,n){if(t&1&&(h(0,"div",36),_(1),p()),t&2){let e=C(3);g(),H(e.loadingText()||e.config.loadingText)}}function ome(t,n){}function ame(t,n){if(t&1&&R(0,rme,2,1,"ng-template",null,9,_i)(2,ome,0,0,"ng-template",12),t&2){let e=Se(1),i=C(2);g(2),y("ngTemplateOutlet",i.loadingTextTemplate()||e)("ngTemplateOutletContext",Pt(2,m_,i.searchTerm))}}function sme(t,n){if(t&1){let e=Y();h(0,"ng-dropdown-panel",29),S("update",function(r){I(e);let o=C();return A(o.viewPortItems=r)})("scroll",function(r){I(e);let o=C();return A(o.scroll.emit(r))})("scrollToEnd",function(r){I(e);let o=C();return A(o.scrollToEnd.emit(r))})("outsideClick",function(){I(e);let r=C();return A(r.close())}),jt(1),xt(2,Yue,4,24,"div",30,Mv().trackByOption,!0),N(4,Zue,4,6,"div",31),Lt(),N(5,eme,3,4),N(6,nme,3,1),N(7,ame,3,4),p()}if(t&2){let e=C(),i=e.appendTo()||e.config.appendTo;it(i?e.ngClass()?e.ngClass():e.classes:null),G("ng-select-multiple",e.multiple()),y("virtualScroll",e.virtualScroll()??!e.config.disableVirtualScroll??!1)("bufferAmount",e.bufferAmount())("appendTo",i)("position",e.dropdownPosition())("outsideClickEvent",e.outsideClickEvent())("headerTemplate",e.headerTemplate())("footerTemplate",e.footerTemplate())("filterValue",e.searchTerm)("items",e.itemsList.filteredItems)("showAddTag",e.showAddTag)("markedItem",e.itemsList.markedItem)("id",e.dropdownId)("ariaLabelDropdown",e.ariaLabelDropdown()),g(2),Ct(e.viewPortItems),g(2),L(e.showAddTag?4:-1),g(),L(e.showNoItemsFound()?5:-1),g(),L(e.showTypeToSearch()?6:-1),g(),L(e.loading()&&e.itemsList.filteredItems.length===0?7:-1)}}function lme(t,n){if(t&1&&_(0),t&2){let e=C();ve(" ",e.notFoundText()??e.config.notFoundText," ")}}var vz=/[&<>"']/g,cme=RegExp(vz.source),dme={"&":"&","<":"<",">":">",'"':""","'":"'"};function ume(t){return t&&cme.test(t)?t.replace(vz,n=>dme[n]):t}function Ji(t){return t!=null}function Su(t){return typeof t=="object"&&Ji(t)}function mme(t){return t instanceof Promise}function AC(t){return t instanceof Function}var hme=(()=>{let n=class n{constructor(){this.element=u(q),this.ngItemLabel=ne(),this.escape=ne(!0),Ar(()=>{this.element.nativeElement.innerHTML=this.escape()?ume(this.ngItemLabel()):this.ngItemLabel()})}};n.\u0275fac=function(r){return new(r||n)},n.\u0275dir=F({type:n,selectors:[["","ngItemLabel",""]],inputs:{ngItemLabel:[1,"ngItemLabel"],escape:[1,"escape"]}});let t=n;return t})(),OC=(()=>{let n=class n{constructor(){this.template=u(te)}};n.\u0275fac=function(r){return new(r||n)},n.\u0275dir=F({type:n,selectors:[["","ng-option-tmp",""]]});let t=n;return t})(),RC=(()=>{let n=class n{constructor(){this.template=u(te)}};n.\u0275fac=function(r){return new(r||n)},n.\u0275dir=F({type:n,selectors:[["","ng-optgroup-tmp",""]]});let t=n;return t})(),PC=(()=>{let n=class n{constructor(){this.template=u(te)}};n.\u0275fac=function(r){return new(r||n)},n.\u0275dir=F({type:n,selectors:[["","ng-label-tmp",""]]});let t=n;return t})(),FC=(()=>{let n=class n{constructor(){this.template=u(te)}};n.\u0275fac=function(r){return new(r||n)},n.\u0275dir=F({type:n,selectors:[["","ng-multi-label-tmp",""]]});let t=n;return t})(),NC=(()=>{let n=class n{constructor(){this.template=u(te)}};n.\u0275fac=function(r){return new(r||n)},n.\u0275dir=F({type:n,selectors:[["","ng-header-tmp",""]]});let t=n;return t})(),LC=(()=>{let n=class n{constructor(){this.template=u(te)}};n.\u0275fac=function(r){return new(r||n)},n.\u0275dir=F({type:n,selectors:[["","ng-footer-tmp",""]]});let t=n;return t})(),VC=(()=>{let n=class n{constructor(){this.template=u(te)}};n.\u0275fac=function(r){return new(r||n)},n.\u0275dir=F({type:n,selectors:[["","ng-notfound-tmp",""]]});let t=n;return t})(),BC=(()=>{let n=class n{constructor(){this.template=u(te)}};n.\u0275fac=function(r){return new(r||n)},n.\u0275dir=F({type:n,selectors:[["","ng-placeholder-tmp",""]]});let t=n;return t})(),jC=(()=>{let n=class n{constructor(){this.template=u(te)}};n.\u0275fac=function(r){return new(r||n)},n.\u0275dir=F({type:n,selectors:[["","ng-typetosearch-tmp",""]]});let t=n;return t})(),HC=(()=>{let n=class n{constructor(){this.template=u(te)}};n.\u0275fac=function(r){return new(r||n)},n.\u0275dir=F({type:n,selectors:[["","ng-loadingtext-tmp",""]]});let t=n;return t})(),zC=(()=>{let n=class n{constructor(){this.template=u(te)}};n.\u0275fac=function(r){return new(r||n)},n.\u0275dir=F({type:n,selectors:[["","ng-tag-tmp",""]]});let t=n;return t})(),UC=(()=>{let n=class n{constructor(){this.template=u(te)}};n.\u0275fac=function(r){return new(r||n)},n.\u0275dir=F({type:n,selectors:[["","ng-loadingspinner-tmp",""]]});let t=n;return t})(),$C=(()=>{let n=class n{constructor(){this.template=u(te)}};n.\u0275fac=function(r){return new(r||n)},n.\u0275dir=F({type:n,selectors:[["","ng-clearbutton-tmp",""]]});let t=n;return t})(),pme=(()=>{let n=class n{constructor(){this.fixedPlaceholder=!0,this.notFoundText="No items found",this.typeToSearchText="Type to search",this.addTagText="Add item",this.loadingText="Loading...",this.clearAllText="Clear all",this.disableVirtualScroll=!0,this.openOnEnter=!0,this.appearance="underline",this.tabFocusOnClear=!0,this.outsideClickEvent="click"}};n.\u0275fac=function(r){return new(r||n)},n.\u0275prov=O({token:n,factory:n.\u0275fac,providedIn:"root"});let t=n;return t})(),fme=(()=>{let n=class n{warn(i){console.warn(i)}};n.\u0275fac=function(r){return new(r||n)},n.\u0275prov=O({token:n,factory:n.\u0275fac,providedIn:"root"});let t=n;return t})();function yz(){return"axxxxxxxxxxx".replace(/[x]/g,()=>(Math.random()*16|0).toString(16))}var gme={"\u24B6":"A",\uFF21:"A",\u00C0:"A",\u00C1:"A",\u00C2:"A",\u1EA6:"A",\u1EA4:"A",\u1EAA:"A",\u1EA8:"A",\u00C3:"A",\u0100:"A",\u0102:"A",\u1EB0:"A",\u1EAE:"A",\u1EB4:"A",\u1EB2:"A",\u0226:"A",\u01E0:"A",\u00C4:"A",\u01DE:"A",\u1EA2:"A",\u00C5:"A",\u01FA:"A",\u01CD:"A",\u0200:"A",\u0202:"A",\u1EA0:"A",\u1EAC:"A",\u1EB6:"A",\u1E00:"A",\u0104:"A","\u023A":"A","\u2C6F":"A","\uA732":"AA",\u00C6:"AE",\u01FC:"AE",\u01E2:"AE","\uA734":"AO","\uA736":"AU","\uA738":"AV","\uA73A":"AV","\uA73C":"AY","\u24B7":"B",\uFF22:"B",\u1E02:"B",\u1E04:"B",\u1E06:"B","\u0243":"B",\u0182:"B",\u0181:"B","\u24B8":"C",\uFF23:"C",\u0106:"C",\u0108:"C",\u010A:"C",\u010C:"C",\u00C7:"C",\u1E08:"C",\u0187:"C","\u023B":"C","\uA73E":"C","\u24B9":"D",\uFF24:"D",\u1E0A:"D",\u010E:"D",\u1E0C:"D",\u1E10:"D",\u1E12:"D",\u1E0E:"D",\u0110:"D",\u018B:"D",\u018A:"D",\u0189:"D","\uA779":"D",\u01F1:"DZ",\u01C4:"DZ",\u01F2:"Dz",\u01C5:"Dz","\u24BA":"E",\uFF25:"E",\u00C8:"E",\u00C9:"E",\u00CA:"E",\u1EC0:"E",\u1EBE:"E",\u1EC4:"E",\u1EC2:"E",\u1EBC:"E",\u0112:"E",\u1E14:"E",\u1E16:"E",\u0114:"E",\u0116:"E",\u00CB:"E",\u1EBA:"E",\u011A:"E",\u0204:"E",\u0206:"E",\u1EB8:"E",\u1EC6:"E",\u0228:"E",\u1E1C:"E",\u0118:"E",\u1E18:"E",\u1E1A:"E",\u0190:"E",\u018E:"E","\u24BB":"F",\uFF26:"F",\u1E1E:"F",\u0191:"F","\uA77B":"F","\u24BC":"G",\uFF27:"G",\u01F4:"G",\u011C:"G",\u1E20:"G",\u011E:"G",\u0120:"G",\u01E6:"G",\u0122:"G",\u01E4:"G",\u0193:"G","\uA7A0":"G","\uA77D":"G","\uA77E":"G","\u24BD":"H",\uFF28:"H",\u0124:"H",\u1E22:"H",\u1E26:"H",\u021E:"H",\u1E24:"H",\u1E28:"H",\u1E2A:"H",\u0126:"H","\u2C67":"H","\u2C75":"H","\uA78D":"H","\u24BE":"I",\uFF29:"I",\u00CC:"I",\u00CD:"I",\u00CE:"I",\u0128:"I",\u012A:"I",\u012C:"I",\u0130:"I",\u00CF:"I",\u1E2E:"I",\u1EC8:"I",\u01CF:"I",\u0208:"I",\u020A:"I",\u1ECA:"I",\u012E:"I",\u1E2C:"I",\u0197:"I","\u24BF":"J",\uFF2A:"J",\u0134:"J","\u0248":"J","\u24C0":"K",\uFF2B:"K",\u1E30:"K",\u01E8:"K",\u1E32:"K",\u0136:"K",\u1E34:"K",\u0198:"K","\u2C69":"K","\uA740":"K","\uA742":"K","\uA744":"K","\uA7A2":"K","\u24C1":"L",\uFF2C:"L",\u013F:"L",\u0139:"L",\u013D:"L",\u1E36:"L",\u1E38:"L",\u013B:"L",\u1E3C:"L",\u1E3A:"L",\u0141:"L","\u023D":"L","\u2C62":"L","\u2C60":"L","\uA748":"L","\uA746":"L","\uA780":"L",\u01C7:"LJ",\u01C8:"Lj","\u24C2":"M",\uFF2D:"M",\u1E3E:"M",\u1E40:"M",\u1E42:"M","\u2C6E":"M",\u019C:"M","\u24C3":"N",\uFF2E:"N",\u01F8:"N",\u0143:"N",\u00D1:"N",\u1E44:"N",\u0147:"N",\u1E46:"N",\u0145:"N",\u1E4A:"N",\u1E48:"N","\u0220":"N",\u019D:"N","\uA790":"N","\uA7A4":"N",\u01CA:"NJ",\u01CB:"Nj","\u24C4":"O",\uFF2F:"O",\u00D2:"O",\u00D3:"O",\u00D4:"O",\u1ED2:"O",\u1ED0:"O",\u1ED6:"O",\u1ED4:"O",\u00D5:"O",\u1E4C:"O",\u022C:"O",\u1E4E:"O",\u014C:"O",\u1E50:"O",\u1E52:"O",\u014E:"O",\u022E:"O",\u0230:"O",\u00D6:"O",\u022A:"O",\u1ECE:"O",\u0150:"O",\u01D1:"O",\u020C:"O",\u020E:"O",\u01A0:"O",\u1EDC:"O",\u1EDA:"O",\u1EE0:"O",\u1EDE:"O",\u1EE2:"O",\u1ECC:"O",\u1ED8:"O",\u01EA:"O",\u01EC:"O",\u00D8:"O",\u01FE:"O",\u0186:"O",\u019F:"O","\uA74A":"O","\uA74C":"O",\u01A2:"OI","\uA74E":"OO",\u0222:"OU","\u24C5":"P",\uFF30:"P",\u1E54:"P",\u1E56:"P",\u01A4:"P","\u2C63":"P","\uA750":"P","\uA752":"P","\uA754":"P","\u24C6":"Q",\uFF31:"Q","\uA756":"Q","\uA758":"Q","\u024A":"Q","\u24C7":"R",\uFF32:"R",\u0154:"R",\u1E58:"R",\u0158:"R",\u0210:"R",\u0212:"R",\u1E5A:"R",\u1E5C:"R",\u0156:"R",\u1E5E:"R","\u024C":"R","\u2C64":"R","\uA75A":"R","\uA7A6":"R","\uA782":"R","\u24C8":"S",\uFF33:"S","\u1E9E":"S",\u015A:"S",\u1E64:"S",\u015C:"S",\u1E60:"S",\u0160:"S",\u1E66:"S",\u1E62:"S",\u1E68:"S",\u0218:"S",\u015E:"S","\u2C7E":"S","\uA7A8":"S","\uA784":"S","\u24C9":"T",\uFF34:"T",\u1E6A:"T",\u0164:"T",\u1E6C:"T",\u021A:"T",\u0162:"T",\u1E70:"T",\u1E6E:"T",\u0166:"T",\u01AC:"T",\u01AE:"T","\u023E":"T","\uA786":"T","\uA728":"TZ","\u24CA":"U",\uFF35:"U",\u00D9:"U",\u00DA:"U",\u00DB:"U",\u0168:"U",\u1E78:"U",\u016A:"U",\u1E7A:"U",\u016C:"U",\u00DC:"U",\u01DB:"U",\u01D7:"U",\u01D5:"U",\u01D9:"U",\u1EE6:"U",\u016E:"U",\u0170:"U",\u01D3:"U",\u0214:"U",\u0216:"U",\u01AF:"U",\u1EEA:"U",\u1EE8:"U",\u1EEE:"U",\u1EEC:"U",\u1EF0:"U",\u1EE4:"U",\u1E72:"U",\u0172:"U",\u1E76:"U",\u1E74:"U","\u0244":"U","\u24CB":"V",\uFF36:"V",\u1E7C:"V",\u1E7E:"V",\u01B2:"V","\uA75E":"V","\u0245":"V","\uA760":"VY","\u24CC":"W",\uFF37:"W",\u1E80:"W",\u1E82:"W",\u0174:"W",\u1E86:"W",\u1E84:"W",\u1E88:"W","\u2C72":"W","\u24CD":"X",\uFF38:"X",\u1E8A:"X",\u1E8C:"X","\u24CE":"Y",\uFF39:"Y",\u1EF2:"Y",\u00DD:"Y",\u0176:"Y",\u1EF8:"Y",\u0232:"Y",\u1E8E:"Y",\u0178:"Y",\u1EF6:"Y",\u1EF4:"Y",\u01B3:"Y","\u024E":"Y","\u1EFE":"Y","\u24CF":"Z",\uFF3A:"Z",\u0179:"Z",\u1E90:"Z",\u017B:"Z",\u017D:"Z",\u1E92:"Z",\u1E94:"Z",\u01B5:"Z",\u0224:"Z","\u2C7F":"Z","\u2C6B":"Z","\uA762":"Z","\u24D0":"a",\uFF41:"a",\u1E9A:"a",\u00E0:"a",\u00E1:"a",\u00E2:"a",\u1EA7:"a",\u1EA5:"a",\u1EAB:"a",\u1EA9:"a",\u00E3:"a",\u0101:"a",\u0103:"a",\u1EB1:"a",\u1EAF:"a",\u1EB5:"a",\u1EB3:"a",\u0227:"a",\u01E1:"a",\u00E4:"a",\u01DF:"a",\u1EA3:"a",\u00E5:"a",\u01FB:"a",\u01CE:"a",\u0201:"a",\u0203:"a",\u1EA1:"a",\u1EAD:"a",\u1EB7:"a",\u1E01:"a",\u0105:"a","\u2C65":"a",\u0250:"a","\uA733":"aa",\u00E6:"ae",\u01FD:"ae",\u01E3:"ae","\uA735":"ao","\uA737":"au","\uA739":"av","\uA73B":"av","\uA73D":"ay","\u24D1":"b",\uFF42:"b",\u1E03:"b",\u1E05:"b",\u1E07:"b",\u0180:"b",\u0183:"b",\u0253:"b","\u24D2":"c",\uFF43:"c",\u0107:"c",\u0109:"c",\u010B:"c",\u010D:"c",\u00E7:"c",\u1E09:"c",\u0188:"c","\u023C":"c","\uA73F":"c","\u2184":"c","\u24D3":"d",\uFF44:"d",\u1E0B:"d",\u010F:"d",\u1E0D:"d",\u1E11:"d",\u1E13:"d",\u1E0F:"d",\u0111:"d",\u018C:"d",\u0256:"d",\u0257:"d","\uA77A":"d",\u01F3:"dz",\u01C6:"dz","\u24D4":"e",\uFF45:"e",\u00E8:"e",\u00E9:"e",\u00EA:"e",\u1EC1:"e",\u1EBF:"e",\u1EC5:"e",\u1EC3:"e",\u1EBD:"e",\u0113:"e",\u1E15:"e",\u1E17:"e",\u0115:"e",\u0117:"e",\u00EB:"e",\u1EBB:"e",\u011B:"e",\u0205:"e",\u0207:"e",\u1EB9:"e",\u1EC7:"e",\u0229:"e",\u1E1D:"e",\u0119:"e",\u1E19:"e",\u1E1B:"e","\u0247":"e",\u025B:"e",\u01DD:"e","\u24D5":"f",\uFF46:"f",\u1E1F:"f",\u0192:"f","\uA77C":"f","\u24D6":"g",\uFF47:"g",\u01F5:"g",\u011D:"g",\u1E21:"g",\u011F:"g",\u0121:"g",\u01E7:"g",\u0123:"g",\u01E5:"g",\u0260:"g","\uA7A1":"g","\u1D79":"g","\uA77F":"g","\u24D7":"h",\uFF48:"h",\u0125:"h",\u1E23:"h",\u1E27:"h",\u021F:"h",\u1E25:"h",\u1E29:"h",\u1E2B:"h",\u1E96:"h",\u0127:"h","\u2C68":"h","\u2C76":"h",\u0265:"h",\u0195:"hv","\u24D8":"i",\uFF49:"i",\u00EC:"i",\u00ED:"i",\u00EE:"i",\u0129:"i",\u012B:"i",\u012D:"i",\u00EF:"i",\u1E2F:"i",\u1EC9:"i",\u01D0:"i",\u0209:"i",\u020B:"i",\u1ECB:"i",\u012F:"i",\u1E2D:"i",\u0268:"i",\u0131:"i","\u24D9":"j",\uFF4A:"j",\u0135:"j",\u01F0:"j","\u0249":"j","\u24DA":"k",\uFF4B:"k",\u1E31:"k",\u01E9:"k",\u1E33:"k",\u0137:"k",\u1E35:"k",\u0199:"k","\u2C6A":"k","\uA741":"k","\uA743":"k","\uA745":"k","\uA7A3":"k","\u24DB":"l",\uFF4C:"l",\u0140:"l",\u013A:"l",\u013E:"l",\u1E37:"l",\u1E39:"l",\u013C:"l",\u1E3D:"l",\u1E3B:"l",\u017F:"l",\u0142:"l",\u019A:"l",\u026B:"l","\u2C61":"l","\uA749":"l","\uA781":"l","\uA747":"l",\u01C9:"lj","\u24DC":"m",\uFF4D:"m",\u1E3F:"m",\u1E41:"m",\u1E43:"m",\u0271:"m",\u026F:"m","\u24DD":"n",\uFF4E:"n",\u01F9:"n",\u0144:"n",\u00F1:"n",\u1E45:"n",\u0148:"n",\u1E47:"n",\u0146:"n",\u1E4B:"n",\u1E49:"n",\u019E:"n",\u0272:"n",\u0149:"n","\uA791":"n","\uA7A5":"n",\u01CC:"nj","\u24DE":"o",\uFF4F:"o",\u00F2:"o",\u00F3:"o",\u00F4:"o",\u1ED3:"o",\u1ED1:"o",\u1ED7:"o",\u1ED5:"o",\u00F5:"o",\u1E4D:"o",\u022D:"o",\u1E4F:"o",\u014D:"o",\u1E51:"o",\u1E53:"o",\u014F:"o",\u022F:"o",\u0231:"o",\u00F6:"o",\u022B:"o",\u1ECF:"o",\u0151:"o",\u01D2:"o",\u020D:"o",\u020F:"o",\u01A1:"o",\u1EDD:"o",\u1EDB:"o",\u1EE1:"o",\u1EDF:"o",\u1EE3:"o",\u1ECD:"o",\u1ED9:"o",\u01EB:"o",\u01ED:"o",\u00F8:"o",\u01FF:"o",\u0254:"o","\uA74B":"o","\uA74D":"o",\u0275:"o",\u01A3:"oi",\u0223:"ou","\uA74F":"oo","\u24DF":"p",\uFF50:"p",\u1E55:"p",\u1E57:"p",\u01A5:"p","\u1D7D":"p","\uA751":"p","\uA753":"p","\uA755":"p","\u24E0":"q",\uFF51:"q","\u024B":"q","\uA757":"q","\uA759":"q","\u24E1":"r",\uFF52:"r",\u0155:"r",\u1E59:"r",\u0159:"r",\u0211:"r",\u0213:"r",\u1E5B:"r",\u1E5D:"r",\u0157:"r",\u1E5F:"r","\u024D":"r",\u027D:"r","\uA75B":"r","\uA7A7":"r","\uA783":"r","\u24E2":"s",\uFF53:"s",\u00DF:"s",\u015B:"s",\u1E65:"s",\u015D:"s",\u1E61:"s",\u0161:"s",\u1E67:"s",\u1E63:"s",\u1E69:"s",\u0219:"s",\u015F:"s","\u023F":"s","\uA7A9":"s","\uA785":"s",\u1E9B:"s","\u24E3":"t",\uFF54:"t",\u1E6B:"t",\u1E97:"t",\u0165:"t",\u1E6D:"t",\u021B:"t",\u0163:"t",\u1E71:"t",\u1E6F:"t",\u0167:"t",\u01AD:"t",\u0288:"t","\u2C66":"t","\uA787":"t","\uA729":"tz","\u24E4":"u",\uFF55:"u",\u00F9:"u",\u00FA:"u",\u00FB:"u",\u0169:"u",\u1E79:"u",\u016B:"u",\u1E7B:"u",\u016D:"u",\u00FC:"u",\u01DC:"u",\u01D8:"u",\u01D6:"u",\u01DA:"u",\u1EE7:"u",\u016F:"u",\u0171:"u",\u01D4:"u",\u0215:"u",\u0217:"u",\u01B0:"u",\u1EEB:"u",\u1EE9:"u",\u1EEF:"u",\u1EED:"u",\u1EF1:"u",\u1EE5:"u",\u1E73:"u",\u0173:"u",\u1E77:"u",\u1E75:"u",\u0289:"u","\u24E5":"v",\uFF56:"v",\u1E7D:"v",\u1E7F:"v",\u028B:"v","\uA75F":"v",\u028C:"v","\uA761":"vy","\u24E6":"w",\uFF57:"w",\u1E81:"w",\u1E83:"w",\u0175:"w",\u1E87:"w",\u1E85:"w",\u1E98:"w",\u1E89:"w","\u2C73":"w","\u24E7":"x",\uFF58:"x",\u1E8B:"x",\u1E8D:"x","\u24E8":"y",\uFF59:"y",\u1EF3:"y",\u00FD:"y",\u0177:"y",\u1EF9:"y",\u0233:"y",\u1E8F:"y",\u00FF:"y",\u1EF7:"y",\u1E99:"y",\u1EF5:"y",\u01B4:"y","\u024F":"y","\u1EFF":"y","\u24E9":"z",\uFF5A:"z",\u017A:"z",\u1E91:"z",\u017C:"z",\u017E:"z",\u1E93:"z",\u1E95:"z",\u01B6:"z",\u0225:"z","\u0240":"z","\u2C6C":"z","\uA763":"z",\u0386:"\u0391",\u0388:"\u0395",\u0389:"\u0397",\u038A:"\u0399",\u03AA:"\u0399",\u038C:"\u039F",\u038E:"\u03A5",\u03AB:"\u03A5",\u038F:"\u03A9",\u03AC:"\u03B1",\u03AD:"\u03B5",\u03AE:"\u03B7",\u03AF:"\u03B9",\u03CA:"\u03B9",\u0390:"\u03B9",\u03CC:"\u03BF",\u03CD:"\u03C5",\u03CB:"\u03C5",\u03B0:"\u03C5",\u03C9:"\u03C9",\u03C2:"\u03C3"};function IC(t){let n=e=>gme[e]||e;return t.replace(/[^\u0000-\u007E]/g,n)}var _I=class{constructor(n,e){this._ngSelect=n,this._selectionModel=e,this._items=[],this._filteredItems=[],this._markedIndex=-1}get items(){return this._items}get filteredItems(){return this._filteredItems}get markedIndex(){return this._markedIndex}get selectedItems(){return this._selectionModel.value}get markedItem(){return this._filteredItems[this._markedIndex]}get noItemsToSelect(){return this._ngSelect.hideSelected()&&this._items.length===this.selectedItems.length}get maxItemsSelected(){return this._ngSelect.multiple()&&this._ngSelect.maxSelectedItems()<=this.selectedItems.length}get lastSelectedItem(){let n=this.selectedItems.length-1;for(;n>=0;n--){let e=this.selectedItems[n];if(!e.disabled)return e}return null}setItems(n){this._items=n.map((i,r)=>this.mapItem(i,r));let e=this._ngSelect.groupBy();e?(this._groups=this._groupBy(this._items,e),this._items=this._flatten(this._groups)):(this._groups=new Map,this._groups.set(void 0,this._items)),this._filteredItems=[...this._items]}select(n){if(n.selected||this.maxItemsSelected)return;let e=this._ngSelect.multiple();e||this.clearSelected(),this._selectionModel.select(n,e,this._ngSelect.selectableGroupAsModel()),this._ngSelect.hideSelected()&&this._hideSelected(n)}unselect(n){if(!n.selected)return;let e=this._ngSelect.multiple();this._selectionModel.unselect(n,e),this._ngSelect.hideSelected()&&Ji(n.index)&&e&&this._showSelected(n)}findItem(n){let e;return this._ngSelect.compareWith()?e=i=>this._ngSelect.compareWith()(i.value,n):this._ngSelect.bindValue()?e=i=>!i.children&&this.resolveNested(i.value,this._ngSelect.bindValue())===n:e=i=>i.value===n||!i.children&&i.label&&i.label===this.resolveNested(n,this._ngSelect.bindLabel()),this._items.find(i=>e(i))}addItem(n){let e=this.mapItem(n,this._items.length);return this._items.push(e),this._filteredItems.push(e),e}clearSelected(n=!1){this._selectionModel.clear(n),this._items.forEach(e=>{e.selected=n&&e.selected&&e.disabled,e.marked=!1}),this._ngSelect.hideSelected()&&this.resetFilteredItems()}findByLabel(n){return n=IC(n).toLocaleLowerCase(),this.filteredItems.find(e=>IC(e.label).toLocaleLowerCase().substr(0,n.length)===n)}filter(n){if(!n){this.resetFilteredItems();return}this._filteredItems=[],n=this._ngSelect.searchFn()?n:IC(n).toLocaleLowerCase();let e=this._ngSelect.searchFn()||this._defaultSearchFn,i=this._ngSelect.hideSelected();for(let r of Array.from(this._groups.keys())){let o=[];for(let a of this._groups.get(r)){if(i&&(a.parent&&a.parent.selected||a.selected))continue;let s=this._ngSelect.searchFn()?a.value:a;e(n,s)&&o.push(a)}if(o.length>0){let[a]=o.slice(-1);if(a.parent){let s=this._items.find(l=>l===a.parent);this._filteredItems.push(s)}this._filteredItems.push(...o)}}}resetFilteredItems(){this._filteredItems.length!==this._items.length&&(this._ngSelect.hideSelected()&&this.selectedItems.length>0?this._filteredItems=this._items.filter(n=>!n.selected):this._filteredItems=this._items)}unmarkItem(){this._markedIndex=-1}markNextItem(){this._stepToItem(1)}markPreviousItem(){this._stepToItem(-1)}markItem(n){this._markedIndex=this._filteredItems.indexOf(n)}markSelectedOrDefault(n){if(this._filteredItems.length===0)return;let e=this._getLastMarkedIndex();e>-1?this._markedIndex=e:this._markedIndex=n?this.filteredItems.findIndex(i=>!i.disabled):-1}resolveNested(n,e){if(!Su(n))return n;if(e.indexOf(".")===-1)return n[e];{let i=e.split("."),r=n;for(let o=0,a=i.length;othis._ngSelect.compareWith()(o.value,e.value));else{let o=i?this.resolveNested(e.value,i):e.value;r=Ji(o)?this.findItem(o):null}this._selectionModel.unselect(e,n),this._selectionModel.select(r||e,n,this._ngSelect.selectableGroupAsModel())}this._ngSelect.hideSelected()&&(this._filteredItems=this.filteredItems.filter(e=>this.selectedItems.indexOf(e)===-1))}_showSelected(n){if(this._filteredItems.push(n),n.parent){let e=n.parent;this._filteredItems.find(r=>r===e)||this._filteredItems.push(e)}else if(n.children)for(let e of n.children)e.selected=!1,this._filteredItems.push(e);this._filteredItems=[...this._filteredItems.sort((e,i)=>e.index-i.index)]}_hideSelected(n){this._filteredItems=this._filteredItems.filter(e=>e!==n),n.parent?n.parent.children.every(i=>i.selected)&&(this._filteredItems=this._filteredItems.filter(i=>i!==n.parent)):n.children&&(this._filteredItems=this.filteredItems.filter(e=>e.parent!==n))}_defaultSearchFn(n,e){return IC(e.label).toLocaleLowerCase().indexOf(n)>-1}_getNextItemIndex(n){return n>0?this._markedIndex>=this._filteredItems.length-1?0:this._markedIndex+1:this._markedIndex<=0?this._filteredItems.length-1:this._markedIndex-1}_stepToItem(n){this._filteredItems.length===0||this._filteredItems.every(e=>e.disabled)||(this._markedIndex=this._getNextItemIndex(n),this.markedItem.disabled&&this._stepToItem(n))}_getLastMarkedIndex(){if(this._ngSelect.hideSelected()||this._markedIndex>-1&&this.markedItem===void 0)return-1;let n=this._filteredItems.indexOf(this.lastSelectedItem);return this.lastSelectedItem&&n<0?-1:Math.max(this.markedIndex,n)}_groupBy(n,e){let i=new Map;if(n.length===0)return i;if(Array.isArray(n[0].value[e])){for(let a of n){let s=(a.value[e]||[]).map((l,c)=>this.mapItem(l,c));i.set(a,s)}return i}let r=AC(this._ngSelect.groupBy()),o=a=>{let s=r?e(a.value):a.value[e];return Ji(s)?s:void 0};for(let a of n){let s=o(a),l=i.get(s);l?l.push(a):i.set(s,[a])}return i}_flatten(n){let e=AC(this._ngSelect.groupBy()),i=[];for(let r of Array.from(n.keys())){let o=i.length;if(r===void 0){let m=n.get(void 0)||[];i.push(...m.map(f=>(f.index=o++,f)));continue}let a=Su(r),s={label:a?"":String(r),children:void 0,parent:null,index:o++,disabled:!this._ngSelect.selectableGroup(),htmlId:yz()},l=e?this._ngSelect.bindLabel():this._ngSelect.groupBy(),c=this._ngSelect.groupValue()||(()=>a?r.value:{[l]:r}),d=n.get(r).map(m=>(m.parent=s,m.children=void 0,m.index=o++,m));s.children=d,s.value=c(r,d.map(m=>m.value)),i.push(s),i.push(...d)}return i}},xz=(()=>{let n=class n{constructor(){this._dimensions={itemHeight:0,panelHeight:0,itemsPerViewport:0}}get dimensions(){return this._dimensions}calculateItems(i,r,o){let a=this._dimensions,s=a.itemHeight*r,c=Math.max(0,i)/s*r,d=Math.min(r,Math.ceil(c)+(a.itemsPerViewport+1)),f=Math.max(0,d-a.itemsPerViewport),b=Math.min(f,Math.floor(c)),v=a.itemHeight*Math.ceil(b)-a.itemHeight*Math.min(b,o);return v=isNaN(v)?0:v,b=isNaN(b)?-1:b,d=isNaN(d)?-1:d,b-=o,b=Math.max(0,b),d+=o,d=Math.min(r,d),{topPadding:v,scrollHeight:s,start:b,end:d}}setDimensions(i,r){let o=Math.max(1,Math.floor(r/i));this._dimensions={itemHeight:i,panelHeight:r,itemsPerViewport:o}}getScrollTo(i,r,o){let{panelHeight:a}=this.dimensions,s=i+r,l=o,c=l+a;return a>=s&&o===i?null:s>c?l+s-c:i<=l?i:null}};n.\u0275fac=function(r){return new(r||n)},n.\u0275prov=O({token:n,factory:n.\u0275fac});let t=n;return t})(),gz=["top","right","bottom","left"],_me=typeof requestAnimationFrame<"u"?G_:U_,gI=(()=>{let n=class n{get currentPosition(){return this._currentPosition}get itemsLength(){return this._itemsLength}set itemsLength(i){i!==this._itemsLength&&(this._itemsLength=i,this._onItemsLengthChanged())}get _startOffset(){if(this.markedItem()){let{itemHeight:i,panelHeight:r}=this._panelService.dimensions,o=this.markedItem().index*i;return r>o?0:o}return 0}constructor(){this._renderer=u(je),this._zone=u(ae),this._panelService=u(xz),this._document=u(ge,{optional:!0}),this._destroyRef=u(nn),this._dropdown=u(q).nativeElement,this.items=ne([]),this.showAddTag=ne(!1,{transform:V}),this.markedItem=ne(void 0),this.position=ne("auto"),this.appendTo=ne(void 0),this.bufferAmount=ne(void 0),this.virtualScroll=ne(!1,{transform:V}),this.headerTemplate=ne(void 0),this.footerTemplate=ne(void 0),this.filterValue=ne(null),this.ariaLabelDropdown=ne(null),this.outsideClickEvent=ne("click"),this.update=bi(),this.scroll=bi(),this.scrollToEnd=bi(),this.outsideClick=bi(),this.contentElementRef=qn("content",{read:q}),this.scrollElementRef=qn("scroll",{read:q}),this.paddingElementRef=qn("padding",{read:q}),this._virtualPadding=Zt(()=>this.paddingElementRef()?.nativeElement),this._scrollablePanel=Zt(()=>this.scrollElementRef()?.nativeElement),this._contentPanel=Zt(()=>this.contentElementRef()?.nativeElement),this._scrollToEndFired=!1,this._updateScrollHeight=!1,this._lastScrollPosition=0,this._destroyRef.onDestroy(()=>{this.appendTo()&&this._renderer.removeChild(this._dropdown.parentNode,this._dropdown)})}ngOnInit(){this._select=this._dropdown.parentElement,this._handleScroll(),this._handleOutsideClick(),this._appendDropdown(),this._setupMousedownListener()}ngOnChanges(i){if(i.items){let r=i.items;this._onItemsOrShowAddTagChange(r.currentValue,this.showAddTag(),r.firstChange)}if(i.showAddTag){let r=i.showAddTag;this._onItemsOrShowAddTagChange(this.items(),r.currentValue,r.firstChange)}}scrollTo(i,r=!1){if(!i)return;let o=this.items().indexOf(i);if(o<0||o>=this.itemsLength)return;let a;if(this.virtualScroll()){let s=this._panelService.dimensions.itemHeight;a=this._panelService.getScrollTo(o*s,s,this._lastScrollPosition)}else{let s=this._dropdown.querySelector(`#${i.htmlId}`),l=r?s.offsetTop:this._lastScrollPosition;a=this._panelService.getScrollTo(s.offsetTop,s.clientHeight,l)}Ji(a)&&(this._scrollablePanel().scrollTop=a)}scrollToTag(){let i=this._scrollablePanel();i.scrollTop=i.scrollHeight-i.clientHeight}adjustPosition(){this._updateYPosition()}_handleDropdownPosition(){this._currentPosition=this._calculateCurrentPosition(this._dropdown),gz.includes(this._currentPosition)?this._updateDropdownClass(this._currentPosition):this._updateDropdownClass("bottom"),this.appendTo()&&this._updateYPosition(),this._dropdown.style.opacity="1"}_updateDropdownClass(i){gz.forEach(o=>{let a=`ng-select-${o}`;this._renderer.removeClass(this._dropdown,a),this._renderer.removeClass(this._select,a)});let r=`ng-select-${i}`;this._renderer.addClass(this._dropdown,r),this._renderer.addClass(this._select,r)}_handleScroll(){this._zone.runOutsideAngular(()=>{this._scrollablePanel()&&zs(this._scrollablePanel(),"scroll").pipe(ku(this._destroyRef),Pl(0,_me)).subscribe(i=>{let r=i.target;r&&"scrollTop"in r&&this._onContentScrolled(r.scrollTop)})})}_handleOutsideClick(){this._document&&this._zone.runOutsideAngular(()=>{zs(this._document,this.outsideClickEvent(),{capture:!0}).pipe(ku(this._destroyRef)).subscribe(i=>this._checkToClose(i))})}_checkToClose(i){if(this._select.contains(i.target)||this._dropdown.contains(i.target))return;let r=i.path||i.composedPath&&i.composedPath();i.target&&i.target.shadowRoot&&r&&r[0]&&this._select.contains(r[0])||this._zone.run(()=>this.outsideClick.emit())}_onItemsOrShowAddTagChange(i=[],r,o){this._scrollToEndFired=!1,this.itemsLength=i.length,r&&i.length&&this.itemsLength++,this.virtualScroll()?this._updateItemsRange(o):(this._setVirtualHeight(),this._updateItems(o))}_updateItems(i){this.update.emit(this.items()),i!==!1&&this._zone.runOutsideAngular(()=>{Promise.resolve().then(()=>{let r=this._scrollablePanel().clientHeight;this._panelService.setDimensions(0,r),this._handleDropdownPosition(),this.scrollTo(this.markedItem(),i)})})}_updateItemsRange(i){this._zone.runOutsideAngular(()=>{this._measureDimensions().then(()=>{i?(this._renderItemsRange(this._startOffset),this._handleDropdownPosition()):this._renderItemsRange()})})}_onContentScrolled(i){this.virtualScroll()&&this._renderItemsRange(i),this._lastScrollPosition=i,this._fireScrollToEnd(i)}_updateVirtualHeight(i){this._updateScrollHeight&&(this._virtualPadding().style.height=`${i}px`,this._updateScrollHeight=!1)}_setVirtualHeight(){this._virtualPadding()&&(this._virtualPadding().style.height="0px")}_onItemsLengthChanged(){this._updateScrollHeight=!0}_renderItemsRange(i=null){if(i&&this._lastScrollPosition===i)return;i=i||this._scrollablePanel().scrollTop;let r=this._panelService.calculateItems(i,this.itemsLength,this.bufferAmount());this._updateVirtualHeight(r.scrollHeight),this._contentPanel().style.transform=`translateY(${r.topPadding}px)`,this._zone.run(()=>{this.update.emit(this.items().slice(r.start,r.end)),this.scroll.emit({start:r.start,end:r.end})}),Ji(i)&&this._lastScrollPosition===0&&(this._scrollablePanel().scrollTop=i,this._lastScrollPosition=i)}_measureDimensions(){if(this._panelService.dimensions.itemHeight>0||this.itemsLength===0)return Promise.resolve(this._panelService.dimensions);let[i]=this.items();return this.update.emit([i]),Promise.resolve().then(()=>{let o=this._dropdown.querySelector(`#${i.htmlId}`).clientHeight;this._virtualPadding().style.height=`${o*this.itemsLength}px`;let a=this._scrollablePanel().clientHeight;return this._panelService.setDimensions(o,a),this._panelService.dimensions})}_fireScrollToEnd(i){if(this._scrollToEndFired||i===0)return;let r=this.virtualScroll()?this._virtualPadding():this._contentPanel();i+this._dropdown.clientHeight>=r.clientHeight-1&&(this._zone.run(()=>this.scrollToEnd.emit()),this._scrollToEndFired=!0)}_calculateCurrentPosition(i){let r=this.position();if(r!=="auto")return r;let o=this._select.getBoundingClientRect(),a=document.documentElement.scrollTop||document.body.scrollTop,s=o.top+window.pageYOffset,l=o.height,c=i.getBoundingClientRect().height;return s+l+c>a+document.documentElement.clientHeight?"top":"bottom"}_appendDropdown(){if(this.appendTo()){if(this._parent=this._dropdown.shadowRoot?this._dropdown.shadowRoot.querySelector(this.appendTo()):document.querySelector(this.appendTo()),!this._parent)throw new Error(`appendTo selector ${this.appendTo()} did not found any parent element`);this._updateXPosition(),this._parent.appendChild(this._dropdown)}}_updateXPosition(){let i=this._select.getBoundingClientRect(),r=this._parent.getBoundingClientRect(),o=document.documentElement.dir==="rtl",a=i.left-r.left;if(o){let s=r.right-i.right;this._dropdown.style.right=s+"px",this._dropdown.style.left="auto"}else this._dropdown.style.left=a+"px",this._dropdown.style.right="auto";this._dropdown.style.width=i.width+"px",this._dropdown.style.minWidth=i.width+"px"}_updateYPosition(){let i=this._select.getBoundingClientRect(),r=this._parent.getBoundingClientRect(),o=i.height;if(this._currentPosition==="top"){let a=r.bottom-i.bottom;this._dropdown.style.bottom=a+o+"px",this._dropdown.style.top="auto"}else if(this._currentPosition==="bottom"){let a=i.top-r.top;this._dropdown.style.top=a+o+"px",this._dropdown.style.bottom="auto"}}_setupMousedownListener(){this._zone.runOutsideAngular(()=>{zs(this._dropdown,"mousedown").pipe(ku(this._destroyRef)).subscribe(i=>{i.target.tagName!=="INPUT"&&i.preventDefault()})})}};n.\u0275fac=function(r){return new(r||n)},n.\u0275cmp=E({type:n,selectors:[["ng-dropdown-panel"]],viewQuery:function(r,o){r&1&&(Pn(o.contentElementRef,xue,5,q),Pn(o.scrollElementRef,Cue,5,q),Pn(o.paddingElementRef,wue,5,q)),r&2&&Ho(3)},inputs:{items:[1,"items"],showAddTag:[1,"showAddTag"],markedItem:[1,"markedItem"],position:[1,"position"],appendTo:[1,"appendTo"],bufferAmount:[1,"bufferAmount"],virtualScroll:[1,"virtualScroll"],headerTemplate:[1,"headerTemplate"],footerTemplate:[1,"footerTemplate"],filterValue:[1,"filterValue"],ariaLabelDropdown:[1,"ariaLabelDropdown"],outsideClickEvent:[1,"outsideClickEvent"]},outputs:{update:"update",scroll:"scroll",scrollToEnd:"scrollToEnd",outsideClick:"outsideClick"},features:[Ae],ngContentSelectors:bz,decls:9,vars:7,consts:[["scroll",""],["padding",""],["content",""],[1,"ng-dropdown-header"],["role","listbox",1,"ng-dropdown-panel-items","scroll-host"],[1,"ng-dropdown-footer"],[3,"ngTemplateOutlet","ngTemplateOutletContext"]],template:function(r,o){r&1&&(Me(),N(0,Due,2,4,"div",3),h(1,"div",4,0),k(3,"div",null,1),h(5,"div",null,2),oe(7),p()(),N(8,Eue,2,4,"div",5)),r&2&&(L(o.headerTemplate()?0:-1),g(),X("aria-label",o.ariaLabelDropdown()),g(2),G("total-padding",o.virtualScroll()),g(2),G("scrollable-content",o.virtualScroll()&&o.items().length),g(3),L(o.footerTemplate()?8:-1))},dependencies:[Fn],encapsulation:2,changeDetection:0});let t=n;return t})(),_z=(()=>{let n=class n{constructor(){this.value=ne(),this.disabled=ne(!1,{transform:V}),this.elementRef=u(q),this.label=he(""),pt(()=>{let i=(this.elementRef.nativeElement.innerHTML||"").trim();i!==this.label()&&this.label.set(i)})}};n.\u0275fac=function(r){return new(r||n)},n.\u0275cmp=E({type:n,selectors:[["ng-option"]],inputs:{value:[1,"value"],disabled:[1,"disabled"]},ngContentSelectors:bz,decls:1,vars:0,template:function(r,o){r&1&&(Me(),oe(0))},encapsulation:2,changeDetection:0});let t=n;return t})(),Ps=(function(t){return t.Tab="Tab",t.Enter="Enter",t.Esc="Escape",t.Space=" ",t.ArrowUp="ArrowUp",t.ArrowDown="ArrowDown",t.Backspace="Backspace",t})(Ps||{});function Cz(){return new bI}var bI=class{constructor(){this._selected=[]}get value(){return this._selected}select(n,e,i){if(n.selected=!0,(!n.children||!e&&i)&&this._selected.push(n),e)if(n.parent){let r=n.parent.children.length,o=n.parent.children.filter(a=>a.selected).length;n.parent.selected=r===o}else n.children&&(this._setChildrenSelectedState(n.children,!0),this._removeChildren(n),i&&this._activeChildren(n)?this._selected=[...this._selected.filter(r=>r.parent!==n),n]:this._selected=[...this._selected,...n.children.filter(r=>!r.disabled)])}unselect(n,e){if(this._selected=this._selected.filter(i=>i!==n),n.selected=!1,e)if(n.parent&&n.parent.selected){let i=n.parent.children;this._removeParent(n.parent),this._removeChildren(n.parent),this._selected.push(...i.filter(r=>r!==n&&!r.disabled)),n.parent.selected=!1}else n.children&&(this._setChildrenSelectedState(n.children,!1),this._removeChildren(n))}clear(n){this._selected=n?this._selected.filter(e=>e.disabled):[]}_setChildrenSelectedState(n,e){for(let i of n)i.disabled||(i.selected=e)}_removeChildren(n){this._selected=[...this._selected.filter(e=>e.parent!==n),...n.children.filter(e=>e.parent===n&&e.disabled&&e.selected)]}_removeParent(n){this._selected=this._selected.filter(e=>e!==n)}_activeChildren(n){return n.children.every(e=>!e.disabled||e.selected)}},wz=new T("ng-select-selection-model"),Dz=(()=>{let n=class n{constructor(){this.classes=u(new Ii("class"),{optional:!0}),this.config=u(pme),this._cd=u(ye),this._console=u(fme),this._destroyRef=u(nn),this._disabled=he(!1),this.ariaLabelDropdown=ne("Options List"),this.ariaLabel=ne(void 0),this.markFirst=ne(!0,{transform:V}),this.placeholder=ne(this.config.placeholder),this.fixedPlaceholder=ne(!0),this.notFoundText=ne(void 0),this.typeToSearchText=ne(void 0),this.preventToggleOnRightClick=ne(!1),this.addTagText=ne(void 0),this.loadingText=ne(void 0),this.clearAllText=ne(void 0),this.dropdownPosition=ne("auto"),this.appendTo=ne(void 0),this.outsideClickEvent=ne(this.config.outsideClickEvent),this.loading=ne(!1,{transform:V}),this.closeOnSelect=ne(!0,{transform:V}),this.hideSelected=ne(!1,{transform:V}),this.selectOnTab=ne(!1,{transform:V}),this.openOnEnter=ne(void 0,{transform:V}),this.maxSelectedItems=ne(void 0,{transform:ct}),this.groupBy=ne(void 0),this.groupValue=ne(void 0),this.bufferAmount=ne(4,{transform:ct}),this.virtualScroll=ne(void 0,{transform:V}),this.selectableGroup=ne(!1,{transform:V}),this.tabFocusOnClearButton=ne(),this.selectableGroupAsModel=ne(!0,{transform:V}),this.searchFn=ne(null),this.trackByFn=ne(null),this.clearOnBackspace=ne(!0,{transform:V}),this.labelForId=ne(null),this.inputAttrs=ne({}),this.tabIndex=ne(void 0,{transform:ct}),this.readonly=ne(!1,{transform:V}),this.searchWhileComposing=ne(!0,{transform:V}),this.minTermLength=ne(0,{transform:ct}),this.editableSearchTerm=ne(!1,{transform:V}),this.ngClass=ne(null),this.typeahead=ne(void 0),this.multiple=ne(!1,{transform:V}),this.addTag=ne(!1),this.searchable=ne(!0,{transform:V}),this.clearable=ne(!0,{transform:V}),this.deselectOnClick=ne(),this.clearSearchOnAdd=ne(void 0),this.compareWith=ne(void 0,{transform:a=>{if(a!=null&&!AC(a))throw Error("`compareWith` must be a function.");return a}}),this.keyDownFn=ne(a=>!0),this.bindLabel=Em(void 0),this.bindValue=Em(void 0),this.appearance=Em(void 0),this.isOpen=Em(!1),this.items=Em([]),this.blurEvent=bi({alias:"blur"}),this.focusEvent=bi({alias:"focus"}),this.changeEvent=bi({alias:"change"}),this.openEvent=bi({alias:"open"}),this.closeEvent=bi({alias:"close"}),this.searchEvent=bi({alias:"search"}),this.clearEvent=bi({alias:"clear"}),this.addEvent=bi({alias:"add"}),this.removeEvent=bi({alias:"remove"}),this.scroll=bi({alias:"scroll"}),this.scrollToEnd=bi({alias:"scrollToEnd"}),this.disabled=Zt(()=>this.readonly()||this._disabled()),this.clearSearchOnAddValue=Zt(()=>Ji(this.clearSearchOnAdd())?this.clearSearchOnAdd():Ji(this.config.clearSearchOnAdd)?this.config.clearSearchOnAdd:this.closeOnSelect()),this.deselectOnClickValue=Zt(()=>Ji(this.deselectOnClick())?this.deselectOnClick():Ji(this.config.deselectOnClick)?this.config.deselectOnClick:this.multiple()),this.optionTemplate=fr(OC,{read:te}),this.optgroupTemplate=fr(RC,{read:te}),this.labelTemplate=fr(PC,{read:te}),this.multiLabelTemplate=fr(FC,{read:te}),this.headerTemplate=fr(NC,{read:te}),this.footerTemplate=fr(LC,{read:te}),this.notFoundTemplate=fr(VC,{read:te}),this.placeholderTemplate=fr(BC,{read:te}),this.typeToSearchTemplate=fr(jC,{read:te}),this.loadingTextTemplate=fr(HC,{read:te}),this.tagTemplate=fr(zC,{read:te}),this.loadingSpinnerTemplate=fr(UC,{read:te}),this.clearButtonTemplate=fr($C,{read:te}),this.ngOptions=o2(_z,{descendants:!0}),this.dropdownPanel=qn(Kt(()=>gI)),this.searchInput=qn("searchInput"),this.clearButton=qn("clearButton"),this.dropdownId=yz(),this.escapeHTML=!0,this.viewPortItems=[],this.tabFocusOnClear=he(!0),this.autoFocus=u(new Ii("autofocus"),{optional:!0}),this._defaultLabel="label",this._editableSearchTerm=Zt(()=>this.editableSearchTerm()&&!this.multiple()),this._injector=u(de),this._isComposing=!1,this._keyPress$=new z,this._pressedKeys=[],this._searchTerm=he(null),this._validTerm=Zt(()=>{let a=this._searchTerm()?.trim();return a&&a.length>=this.minTermLength()}),this.clearItem=a=>{let s=this.selectedItems.find(l=>l.value===a);this.unselect(s)},this.trackByOption=(a,s)=>this.trackByFn()?this.trackByFn()(s.value):s,this._onChange=a=>{},this._onTouched=()=>{};let i=this.config,r=u(wz,{optional:!0}),o=u(q);this._mergeGlobalConfig(i),this.itemsList=new _I(this,r?r():Cz()),this.element=o.nativeElement}get filtered(){return!!this.searchTerm&&this.searchable()||this._isComposing}get focused(){return this._focused}get searchTerm(){return this._searchTerm()}get selectedItems(){return this.itemsList.selectedItems}get selectedValues(){return this.selectedItems.map(i=>i.value)}get hasValue(){return this.selectedItems.length>0}get currentPanelPosition(){if(this.dropdownPanel())return this.dropdownPanel().currentPosition}get showAddTag(){if(!this._validTerm())return!1;let i=this.searchTerm.toLowerCase().trim();return this.addTag()&&!this.itemsList.filteredItems.some(r=>r.label.toLowerCase()===i)&&(!this.hideSelected()&&this.isOpen()||!this.selectedItems.some(r=>r.label.toLowerCase()===i))&&!this.loading()}ngOnInit(){this._handleKeyPresses(),this._setInputAttributes()}ngOnChanges(i){i.multiple&&this.itemsList.clearSelected(),i.items&&(this._itemsAreUsed=!0,this._setItems(i.items.currentValue||[])),i.isOpen&&(this._manualOpen=Ji(i.isOpen.currentValue)),i.groupBy&&(i.items||this._setItems([...this.items()])),i.inputAttrs&&this._setInputAttributes(),this._setTabFocusOnClear()}ngAfterViewInit(){this._itemsAreUsed||(this.escapeHTML=!1,this._setItemsFromNgOptions()),Ji(this.autoFocus)&&this.focus()}handleKeyDown(i){let r=i.key;if(Object.values(Ps).includes(r)){if(this.keyDownFn()(i)===!1)return;this.handleKeyCode(i)}else r&&r.length===1&&this._keyPress$.next(r.toLocaleLowerCase())}handleKeyCode(i){let r=i.target;this.clearButton()&&this.clearButton().nativeElement===r?this.handleKeyCodeClear(i):this.handleKeyCodeInput(i)}handleKeyCodeInput(i){switch(i.key){case Ps.ArrowDown:this._handleArrowDown(i);break;case Ps.ArrowUp:this._handleArrowUp(i);break;case Ps.Space:this._handleSpace(i);break;case Ps.Enter:this._handleEnter(i);break;case Ps.Tab:this._handleTab(i);break;case Ps.Esc:this.close(),i.preventDefault();break;case Ps.Backspace:this._handleBackspace();break}}handleKeyCodeClear(i){switch(i.key){case Ps.Enter:this.handleClearClick(),i.preventDefault();break}}handleMousedown(i){if(this.disabled())return;if(this.preventToggleOnRightClick()&&i.button===2)return!1;let r=i.target;if(r.tagName!=="INPUT"&&i.preventDefault(),!r.classList.contains("ng-clear-wrapper")){if(r.classList.contains("ng-arrow-wrapper")){this.handleArrowClick();return}r.classList.contains("ng-value-icon")||(this._focused||this.focus(),this.searchable()?this.open():this.toggle())}}handleArrowClick(){this.isOpen()?this.close():this.open()}handleClearClick(i){this.hasValue&&(this.itemsList.clearSelected(!0),this._updateNgModel()),this._clearSearch(),this.focus(),this.clearEvent.emit(),this._onSelectionChanged()}clearModel(){this.clearable()&&(this.itemsList.clearSelected(),this._updateNgModel())}writeValue(i){this.itemsList.clearSelected(),this._handleWriteValue(i),this._editableSearchTerm()&&this._setSearchTermFromItems(),this._cd.markForCheck()}registerOnChange(i){this._onChange=i}registerOnTouched(i){this._onTouched=i}setDisabledState(i){this._disabled.set(i),this._cd.markForCheck()}toggle(){this.isOpen()?this.close():this.open()}open(){this.disabled()||this.isOpen()||this._manualOpen||!this.typeahead()?.observed&&!this.addTag()&&this.itemsList.noItemsToSelect||(this.isOpen.set(!0),this.itemsList.markSelectedOrDefault(this.markFirst()),this.openEvent.emit(),this.searchTerm||this.focus(),this.detectChanges())}close(){!this.isOpen()||this._manualOpen||(this.isOpen.set(!1),this._isComposing=!1,this._editableSearchTerm()?this.itemsList.resetFilteredItems():this._clearSearch(),this.itemsList.unmarkItem(),this._onTouched(),this.closeEvent.emit(),this._cd.markForCheck())}toggleItem(i){!i||i.disabled||this.disabled()||(this.deselectOnClickValue()&&i.selected?this.unselect(i):this.select(i),this._editableSearchTerm()&&this._setSearchTermFromItems())}select(i){i.selected||(this.itemsList.select(i),this.clearSearchOnAddValue()&&!this._editableSearchTerm()&&this._clearSearch(),this._updateNgModel(),this.multiple()&&this.addEvent.emit(i.value)),(this.closeOnSelect()||this.itemsList.noItemsToSelect)&&this.close(),this._onSelectionChanged()}focus(){this.searchInput().nativeElement.focus()}blur(){this.searchInput().nativeElement.blur()}unselect(i){i&&(this.itemsList.unselect(i),this.focus(),this._updateNgModel(),this.removeEvent.emit(i.value),this._onSelectionChanged())}selectTag(){let i;AC(this.addTag())?i=this.addTag()(this.searchTerm):i=this._primitive?this.searchTerm:{[this.bindLabel()]:this.searchTerm};let r=o=>this.typeahead()?.observed||!this.isOpen()?this.itemsList.mapItem(o,null):this.itemsList.addItem(o);mme(i)?i.then(o=>this.select(r(o))).catch(()=>{}):i&&this.select(r(i))}showClear(){return this.clearable()&&(this.hasValue||this.searchTerm)&&!this.disabled()}focusOnClear(){this.blur(),this.clearButton()&&this.clearButton().nativeElement.focus()}showNoItemsFound(){let i=this.itemsList.filteredItems.length===0;return(i&&!this.typeahead()?.observed&&!this.loading()||i&&this.typeahead()?.observed&&this._validTerm()&&!this.loading())&&!this.showAddTag}showTypeToSearch(){return this.itemsList.filteredItems.length===0&&this.typeahead()?.observed&&!this._validTerm()&&!this.loading()}onCompositionStart(){this._isComposing=!0}onCompositionEnd(i){this._isComposing=!1,!this.searchWhileComposing()&&this.filter(i)}filter(i){this._isComposing&&!this.searchWhileComposing()||(this._searchTerm.set(i),this.typeahead()?.observed&&(this._validTerm()||this.minTermLength()===0)&&this.typeahead().next(i),this.typeahead()?.observed||(this.itemsList.filter(i),this.isOpen()&&this.itemsList.markSelectedOrDefault(this.markFirst())),this.searchEvent.emit({term:i,items:this.itemsList.filteredItems.map(r=>r.value)}),this.open())}onInputFocus(i){this._focused||(this._editableSearchTerm()&&this._setSearchTermFromItems(),this.element.classList.add("ng-select-focused"),this.focusEvent.emit(i),this._focused=!0)}onInputBlur(i){this.element.classList.remove("ng-select-focused"),this.blurEvent.emit(i),!this.isOpen()&&!this.disabled()&&this._onTouched(),this._editableSearchTerm()&&this._setSearchTermFromItems(),this._focused=!1}onItemHover(i){i.disabled||this.itemsList.markItem(i)}detectChanges(){this._cd.destroyed||this._cd.detectChanges()}_setSearchTermFromItems(){let i=this.selectedItems?.[0];this._searchTerm.set(i?.label??null)}_setItems(i){let r=i[0];this.bindLabel.set(this.bindLabel()||this._defaultLabel),this._primitive=Ji(r)?!Su(r):this._primitive||this.bindLabel()===this._defaultLabel,this.itemsList.setItems(i),i.length>0&&this.hasValue&&this.itemsList.mapSelectedItems(),this.isOpen()&&Ji(this.searchTerm)&&!this.typeahead()?.observed&&this.itemsList.filter(this.searchTerm),(this.typeahead()?.observed||this.isOpen())&&this.itemsList.markSelectedOrDefault(this.markFirst())}_setItemsFromNgOptions(){Ar(()=>{let i=this.ngOptions();this.bindLabel.set(this._defaultLabel);let r=i.map(o=>({$ngOptionValue:o.value(),$ngOptionLabel:o.elementRef.nativeElement.innerHTML,disabled:o.disabled()}))??[];this.items.set(r),this.itemsList.setItems(r),this.hasValue&&this.itemsList.mapSelectedItems(),this._cd.detectChanges(),i.map(o=>({option:o,item:this.itemsList.findItem(o.value())})).filter(({item:o})=>Ji(o)).forEach(({option:o,item:a})=>{a.disabled=o.disabled(),a.label=o.label()||a.label})},{injector:this._injector})}_isValidWriteValue(i){if(!Ji(i)||this.multiple()&&i===""||Array.isArray(i)&&i.length===0)return!1;let r=o=>!Ji(this.compareWith())&&Su(o)&&this.bindValue()?(this._console.warn(`Setting object(${JSON.stringify(o)}) as your model with bindValue is not allowed unless [compareWith] is used.`),!1):!0;return this.multiple()?Array.isArray(i)?i.every(o=>r(o)):(this._console.warn("Multiple select ngModel should be array."),!1):r(i)}_handleWriteValue(i){if(!this._isValidWriteValue(i))return;let r=o=>{let a=this.itemsList.findItem(o);if(a)this.itemsList.select(a);else{let s=Su(o),l=!s&&!this.bindValue();s||l?this.itemsList.select(this.itemsList.mapItem(o,null)):this.bindValue()&&(a={[this.bindLabel()]:null,[this.bindValue()]:o},this.itemsList.select(this.itemsList.mapItem(a,null)))}};this.multiple()?i.forEach(o=>r(o)):r(i)}_handleKeyPresses(){this.searchable()||this._keyPress$.pipe(ku(this._destroyRef),Be(i=>this._pressedKeys.push(i)),Rt(200),ce(()=>this._pressedKeys.length>0),se(()=>this._pressedKeys.join(""))).subscribe(i=>{let r=this.itemsList.findByLabel(i);r&&(this.isOpen()?(this.itemsList.markItem(r),this._scrollToMarked(),this._cd.markForCheck()):this.select(r)),this._pressedKeys=[]})}_setInputAttributes(){let i=this.searchInput().nativeElement,r=M({type:"text",autocorrect:"off",autocapitalize:"off",autocomplete:"off","aria-controls":this.dropdownId},this.inputAttrs());for(let o of Object.keys(r))i.setAttribute(o,r[o])}_setTabFocusOnClear(){this.tabFocusOnClear.set(Ji(this.tabFocusOnClearButton())?!!this.tabFocusOnClearButton():this.config.tabFocusOnClear)}_updateNgModel(){let i=[];for(let o of this.selectedItems)if(this.bindValue()){let a=null;if(o.children){let s=this.groupValue()?this.bindValue():this.groupBy();a=o.value[s||this.groupBy()]}else a=this.itemsList.resolveNested(o.value,this.bindValue());i.push(a)}else i.push(o.value);let r=this.selectedItems.map(o=>o.value);this.multiple()?(this._onChange(i),this.changeEvent.emit(r)):(this._onChange(Ji(i[0])?i[0]:null),this.changeEvent.emit(r[0])),this._cd.markForCheck()}_clearSearch(){this.searchTerm&&(this._changeSearch(null),this.itemsList.resetFilteredItems())}_changeSearch(i){this._searchTerm.set(i),this.typeahead()?.observed&&this.typeahead().next(i)}_scrollToMarked(){!this.isOpen()||!this.dropdownPanel()||this.dropdownPanel().scrollTo(this.itemsList.markedItem)}_scrollToTag(){!this.isOpen()||!this.dropdownPanel()||this.dropdownPanel().scrollToTag()}_onSelectionChanged(){let i=this.appendTo()??this.config.appendTo;this.isOpen()&&this.deselectOnClickValue()&&i&&(this._cd.detectChanges(),this.dropdownPanel().adjustPosition())}_handleTab(i){if(this.isOpen()===!1){if(this.showClear()&&!i.shiftKey&&this.tabFocusOnClear())this.focusOnClear(),i.preventDefault();else if(!this.addTag())return}this.selectOnTab()?this.itemsList.markedItem?(this.toggleItem(this.itemsList.markedItem),i.preventDefault()):this.showAddTag?(this.selectTag(),i.preventDefault()):this.close():this.close()}_handleEnter(i){let r=this.openOnEnter()??this.config.openOnEnter;if(this.isOpen()||this._manualOpen)this.itemsList.markedItem?this.toggleItem(this.itemsList.markedItem):this.showAddTag&&this.selectTag();else if(r)this.open();else return;i.preventDefault()}_handleSpace(i){this.isOpen()||this._manualOpen||(this.open(),i.preventDefault())}_handleArrowDown(i){this._nextItemIsTag(1)?(this.itemsList.unmarkItem(),this._scrollToTag()):(this.itemsList.markNextItem(),this._scrollToMarked()),this.open(),i.preventDefault()}_handleArrowUp(i){this.isOpen()&&(this._nextItemIsTag(-1)?(this.itemsList.unmarkItem(),this._scrollToTag()):(this.itemsList.markPreviousItem(),this._scrollToMarked()),i.preventDefault())}_nextItemIsTag(i){let r=this.itemsList.markedIndex+i;return this.addTag()&&this.searchTerm&&this.itemsList.markedItem&&(r<0||r===this.itemsList.filteredItems.length)}_handleBackspace(){this.searchTerm||!this.clearable()||!this.clearOnBackspace()||!this.hasValue||(this.multiple()?this.unselect(this.itemsList.lastSelectedItem):this.clearModel())}_mergeGlobalConfig(i){this.bindValue.set(this.bindValue()||i.bindValue),this.bindLabel.set(this.bindLabel()||i.bindLabel),this.appearance.set(this.appearance()||i.appearance),this._setTabFocusOnClear()}getVirtualScroll(i){return Ji(this.virtualScroll)?this.virtualScroll():this.isVirtualScrollDisabled(i)}isVirtualScrollDisabled(i){return Ji(i.disableVirtualScroll)?!i.disableVirtualScroll:!1}};n.\u0275fac=function(r){return new(r||n)},n.\u0275cmp=E({type:n,selectors:[["ng-select"]],contentQueries:function(r,o,a){r&1&&(Rn(a,o.optionTemplate,OC,5,te),Rn(a,o.optgroupTemplate,RC,5,te),Rn(a,o.labelTemplate,PC,5,te),Rn(a,o.multiLabelTemplate,FC,5,te),Rn(a,o.headerTemplate,NC,5,te),Rn(a,o.footerTemplate,LC,5,te),Rn(a,o.notFoundTemplate,VC,5,te),Rn(a,o.placeholderTemplate,BC,5,te),Rn(a,o.typeToSearchTemplate,jC,5,te),Rn(a,o.loadingTextTemplate,HC,5,te),Rn(a,o.tagTemplate,zC,5,te),Rn(a,o.loadingSpinnerTemplate,UC,5,te),Rn(a,o.clearButtonTemplate,$C,5,te),Rn(a,o.ngOptions,_z,5)),r&2&&Ho(14)},viewQuery:function(r,o){r&1&&(Pn(o.dropdownPanel,gI,5),Pn(o.searchInput,Mue,5),Pn(o.clearButton,kue,5)),r&2&&Ho(3)},hostVars:20,hostBindings:function(r,o){r&1&&S("keydown",function(s){return o.handleKeyDown(s)}),r&2&&G("ng-select",!0)("ng-select-single",!o.multiple())("ng-select-typeahead",o.typeahead())("ng-select-multiple",o.multiple())("ng-select-taggable",o.addTag())("ng-select-searchable",o.searchable())("ng-select-clearable",o.clearable())("ng-select-opened",o.isOpen())("ng-select-filtered",o.filtered)("ng-select-disabled",o.disabled())},inputs:{ariaLabelDropdown:[1,"ariaLabelDropdown"],ariaLabel:[1,"ariaLabel"],markFirst:[1,"markFirst"],placeholder:[1,"placeholder"],fixedPlaceholder:[1,"fixedPlaceholder"],notFoundText:[1,"notFoundText"],typeToSearchText:[1,"typeToSearchText"],preventToggleOnRightClick:[1,"preventToggleOnRightClick"],addTagText:[1,"addTagText"],loadingText:[1,"loadingText"],clearAllText:[1,"clearAllText"],dropdownPosition:[1,"dropdownPosition"],appendTo:[1,"appendTo"],outsideClickEvent:[1,"outsideClickEvent"],loading:[1,"loading"],closeOnSelect:[1,"closeOnSelect"],hideSelected:[1,"hideSelected"],selectOnTab:[1,"selectOnTab"],openOnEnter:[1,"openOnEnter"],maxSelectedItems:[1,"maxSelectedItems"],groupBy:[1,"groupBy"],groupValue:[1,"groupValue"],bufferAmount:[1,"bufferAmount"],virtualScroll:[1,"virtualScroll"],selectableGroup:[1,"selectableGroup"],tabFocusOnClearButton:[1,"tabFocusOnClearButton"],selectableGroupAsModel:[1,"selectableGroupAsModel"],searchFn:[1,"searchFn"],trackByFn:[1,"trackByFn"],clearOnBackspace:[1,"clearOnBackspace"],labelForId:[1,"labelForId"],inputAttrs:[1,"inputAttrs"],tabIndex:[1,"tabIndex"],readonly:[1,"readonly"],searchWhileComposing:[1,"searchWhileComposing"],minTermLength:[1,"minTermLength"],editableSearchTerm:[1,"editableSearchTerm"],ngClass:[1,"ngClass"],typeahead:[1,"typeahead"],multiple:[1,"multiple"],addTag:[1,"addTag"],searchable:[1,"searchable"],clearable:[1,"clearable"],deselectOnClick:[1,"deselectOnClick"],clearSearchOnAdd:[1,"clearSearchOnAdd"],compareWith:[1,"compareWith"],keyDownFn:[1,"keyDownFn"],bindLabel:[1,"bindLabel"],bindValue:[1,"bindValue"],appearance:[1,"appearance"],isOpen:[1,"isOpen"],items:[1,"items"]},outputs:{bindLabel:"bindLabelChange",bindValue:"bindValueChange",appearance:"appearanceChange",isOpen:"isOpenChange",items:"itemsChange",blurEvent:"blur",focusEvent:"focus",changeEvent:"change",openEvent:"open",closeEvent:"close",searchEvent:"search",clearEvent:"clear",addEvent:"add",removeEvent:"remove",scroll:"scroll",scrollToEnd:"scrollToEnd"},exportAs:["ngSelect"],features:[Ce([{provide:tr,useExisting:Kt(()=>n),multi:!0},xz]),Ae],decls:15,vars:20,consts:[["searchInput",""],["defaultPlaceholderTemplate",""],["defaultLabelTemplate",""],["defaultLoadingSpinnerTemplate",""],["clearButton",""],["defaultOptionTemplate",""],["defaultTagTemplate",""],["defaultNotFoundTemplate",""],["defaultTypeToSearchTemplate",""],["defaultLoadingTextTemplate",""],[1,"ng-select-container",3,"mousedown"],[1,"ng-value-container"],[3,"ngTemplateOutlet","ngTemplateOutletContext"],[1,"ng-input"],["aria-autocomplete","list","role","combobox",3,"blur","change","compositionend","compositionstart","focus","input","disabled","readOnly","value"],[1,"ng-arrow-wrapper"],[1,"ng-arrow"],[1,"ng-dropdown-panel",3,"virtualScroll","bufferAmount","appendTo","position","outsideClickEvent","headerTemplate","footerTemplate","filterValue","items","showAddTag","markedItem","ng-select-multiple","class","id","ariaLabelDropdown"],["aria-atomic","true","aria-live","polite","role","status",1,"ng-visually-hidden"],[3,"ngTemplateOutlet"],[1,"ng-placeholder"],[1,"ng-value",3,"ng-value-disabled"],[1,"ng-value"],["aria-hidden","true",1,"ng-value-icon","left",3,"click"],[1,"ng-value-label",3,"ngItemLabel","escape"],[1,"ng-spinner-loader"],["role","button","tabindex","0",1,"ng-clear-wrapper",3,"title"],["role","button","tabindex","0",1,"ng-clear-wrapper",3,"click","title"],["aria-hidden","true",1,"ng-clear"],[1,"ng-dropdown-panel",3,"update","scroll","scrollToEnd","outsideClick","virtualScroll","bufferAmount","appendTo","position","outsideClickEvent","headerTemplate","footerTemplate","filterValue","items","showAddTag","markedItem","id","ariaLabelDropdown"],[1,"ng-option",3,"ng-option-disabled","ng-option-selected","ng-optgroup","ng-option","ng-option-child","ng-option-marked"],["role","option",1,"ng-option",3,"ng-option-marked"],[1,"ng-option",3,"click","mouseover"],[1,"ng-option-label",3,"ngItemLabel","escape"],["role","option",1,"ng-option",3,"mouseover","click"],[1,"ng-tag-label"],[1,"ng-option","ng-option-disabled"]],template:function(r,o){if(r&1){let a=Y();h(0,"div",10),S("mousedown",function(l){return I(a),A(o.handleMousedown(l))}),h(1,"div",11),N(2,Rue,3,1),N(3,Lue,2,0),N(4,Bue,1,5,null,12),h(5,"div",13)(6,"input",14,0),S("blur",function(l){return I(a),A(o.onInputBlur(l))})("change",function(l){return I(a),A(l.stopPropagation())})("compositionend",function(){I(a);let l=Se(7);return A(o.onCompositionEnd(l.value))})("compositionstart",function(){return I(a),A(o.onCompositionStart())})("focus",function(l){return I(a),A(o.onInputFocus(l))})("input",function(){I(a);let l=Se(7);return A(o.filter(l.value))}),p()()(),N(8,zue,3,1),N(9,Wue,2,1),h(10,"span",15),k(11,"span",16),p()(),N(12,sme,8,21,"ng-dropdown-panel",17),h(13,"div",18),N(14,lme,1,1),p()}r&2&&(G("ng-appearance-outline",o.appearance()==="outline")("ng-has-value",o.hasValue),g(2),L(o.selectedItems.length===0&&!o.searchTerm||(o.fixedPlaceholder()??o.config.fixedPlaceholder)?2:-1),g(),L((!o.multiLabelTemplate()||!o.multiple())&&o.selectedItems.length>0?3:-1),g(),L(o.multiple()&&o.multiLabelTemplate()&&o.selectedValues.length>0?4:-1),g(2),y("disabled",o.disabled())("readOnly",!o.searchable()||o.itemsList.maxItemsSelected)("value",o.searchTerm??""),X("aria-activedescendant",o.isOpen()?o.itemsList==null||o.itemsList.markedItem==null?null:o.itemsList.markedItem.htmlId:null)("aria-controls",o.isOpen()?o.dropdownId:null)("aria-expanded",o.isOpen())("aria-label",o.ariaLabel())("id",o.labelForId())("tabindex",o.tabIndex()),g(2),L(o.loading()?8:-1),g(),L(o.showClear()?9:-1),g(3),L(o.isOpen()?12:-1),g(2),L(o.isOpen()&&o.showNoItemsFound()?14:-1))},dependencies:[Fn,hme,gI],styles:[`@charset "UTF-8";.ng-select{position:relative;display:block;-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box}.ng-select div,.ng-select input,.ng-select span{-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box}.ng-select [hidden]{display:none}.ng-select.ng-select-searchable .ng-select-container .ng-value-container .ng-input{opacity:1}.ng-select.ng-select-opened .ng-select-container{z-index:1001}.ng-select.ng-select-disabled .ng-select-container .ng-value-container .ng-placeholder,.ng-select.ng-select-disabled .ng-select-container .ng-value-container .ng-value{-webkit-user-select:none;user-select:none;cursor:default}.ng-select.ng-select-disabled .ng-arrow-wrapper{cursor:default}.ng-select.ng-select-filtered .ng-placeholder{display:none}.ng-select .ng-select-container{cursor:default;display:flex;outline:none;overflow:hidden;position:relative;width:100%}.ng-select .ng-select-container .ng-value-container{display:flex;flex:1}.ng-select .ng-select-container .ng-value-container .ng-input{opacity:0}.ng-select .ng-select-container .ng-value-container .ng-input>input{box-sizing:content-box;background:none transparent;border:0 none;box-shadow:none;outline:none;padding:0;cursor:default;width:100%}.ng-select .ng-select-container .ng-value-container .ng-input>input::-ms-clear{display:none}.ng-select .ng-select-container .ng-value-container .ng-input>input[readonly]{-webkit-user-select:unset;user-select:unset;width:0;padding:0}.ng-select.ng-select-single.ng-select-filtered .ng-select-container .ng-value-container .ng-value{visibility:hidden}.ng-select.ng-select-single .ng-select-container .ng-value-container,.ng-select.ng-select-single .ng-select-container .ng-value-container .ng-value{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.ng-select.ng-select-single .ng-select-container .ng-value-container .ng-value .ng-value-icon{display:none}.ng-select.ng-select-single .ng-select-container .ng-value-container .ng-input{position:absolute;left:0;width:100%}.ng-select.ng-select-multiple.ng-select-disabled>.ng-select-container .ng-value-container .ng-value .ng-value-icon{display:none}.ng-select.ng-select-multiple .ng-select-container .ng-value-container{flex-wrap:wrap}.ng-select.ng-select-multiple .ng-select-container .ng-value-container .ng-placeholder{position:absolute}.ng-select.ng-select-multiple .ng-select-container .ng-value-container .ng-value{white-space:nowrap}.ng-select.ng-select-multiple .ng-select-container .ng-value-container .ng-value.ng-value-disabled .ng-value-icon{display:none}.ng-select.ng-select-multiple .ng-select-container .ng-value-container .ng-value .ng-value-icon{cursor:pointer}.ng-select.ng-select-multiple .ng-select-container .ng-value-container .ng-input{flex:1;z-index:2}.ng-select.ng-select-multiple .ng-select-container .ng-value-container .ng-placeholder{z-index:1}.ng-select .ng-clear-wrapper{cursor:pointer;position:relative;width:17px;-webkit-user-select:none;user-select:none}.ng-select .ng-clear-wrapper .ng-clear{display:inline-block;font-size:18px;line-height:1;pointer-events:none}.ng-select .ng-spinner-loader{border-radius:50%;width:17px;height:17px;margin-right:5px;font-size:10px;position:relative;text-indent:-9999em;border-top:2px solid rgba(66,66,66,.2);border-right:2px solid rgba(66,66,66,.2);border-bottom:2px solid rgba(66,66,66,.2);border-left:2px solid #424242;transform:translateZ(0);animation:load8 .8s infinite linear}.ng-select .ng-spinner-loader:after{border-radius:50%;width:17px;height:17px}@-webkit-keyframes load8{0%{-webkit-transform:rotate(0deg);transform:rotate(0)}to{-webkit-transform:rotate(360deg);transform:rotate(360deg)}}@keyframes load8{0%{-webkit-transform:rotate(0deg);transform:rotate(0)}to{-webkit-transform:rotate(360deg);transform:rotate(360deg)}}.ng-select .ng-arrow-wrapper{cursor:pointer;position:relative;text-align:center;-webkit-user-select:none;user-select:none}.ng-select .ng-arrow-wrapper .ng-arrow{pointer-events:none;display:inline-block;height:0;width:0;position:relative}.ng-dropdown-panel{box-sizing:border-box;position:absolute;opacity:0;width:100%;z-index:1050;-webkit-overflow-scrolling:touch}.ng-dropdown-panel .ng-dropdown-panel-items{display:block;height:auto;-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box;max-height:240px;overflow-y:auto}.ng-dropdown-panel .ng-dropdown-panel-items .ng-optgroup{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.ng-dropdown-panel .ng-dropdown-panel-items .ng-option{box-sizing:border-box;cursor:pointer;display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.ng-dropdown-panel .ng-dropdown-panel-items .ng-option .ng-option-label:empty:before{content:"\\200b"}.ng-dropdown-panel .ng-dropdown-panel-items .ng-option .highlighted{font-weight:700;text-decoration:underline}.ng-dropdown-panel .ng-dropdown-panel-items .ng-option.disabled{cursor:default}.ng-dropdown-panel .scroll-host{overflow:hidden;overflow-y:auto;position:relative;display:block;-webkit-overflow-scrolling:touch}.ng-dropdown-panel .scrollable-content{top:0;left:0;width:100%;height:100%;position:absolute}.ng-dropdown-panel .total-padding{width:1px;opacity:0}.ng-visually-hidden{position:absolute!important;width:1px;height:1px;margin:-1px;padding:0;overflow:hidden;clip:rect(0 0 0 0);border:0;white-space:nowrap} -`],encapsulation:2,changeDetection:0});let t=n;return t})(),vI=(()=>{let n=class n{};n.\u0275fac=function(r){return new(r||n)},n.\u0275mod=ee({type:n}),n.\u0275inj=J({providers:bme()});let t=n;return t})();function bme(){return[{provide:wz,useValue:Cz}]}var yme=["*"],xme=["ngSelect"],Cme=()=>({standalone:!0}),Mz=(t,n,e,i)=>({item:t,item$:n,index:e,searchTerm:i}),wme=(t,n,e)=>({item:t,clear:n,label:e}),Dme=(t,n)=>({items:t,clear:n}),yI=t=>({searchTerm:t});function Eme(t,n){}function Mme(t,n){if(t&1&&R(0,Eme,0,0,"ng-template",15),t&2){let e=n.item,i=n.item$,r=n.index,o=n.searchTerm,a=C(2);y("ngTemplateOutlet",a.optionTemplate)("ngTemplateOutletContext",wm(2,Mz,e,i,r,o))}}function kme(t,n){t&1&&R(0,Mme,1,7,"ng-template",2)}function Sme(t,n){}function Tme(t,n){if(t&1&&R(0,Sme,0,0,"ng-template",15),t&2){let e=n.item,i=n.item$,r=n.index,o=n.searchTerm,a=C(2);y("ngTemplateOutlet",a.optgroupTemplate)("ngTemplateOutletContext",wm(2,Mz,e,i,r,o))}}function Ime(t,n){t&1&&R(0,Tme,1,7,"ng-template",3)}function Ame(t,n){}function Ome(t,n){if(t&1&&R(0,Ame,0,0,"ng-template",15),t&2){let e=n.item,i=n.clear,r=n.label,o=C(2);y("ngTemplateOutlet",o.labelTemplate)("ngTemplateOutletContext",Rd(2,wme,e,i,r))}}function Rme(t,n){t&1&&R(0,Ome,1,6,"ng-template",4)}function Pme(t,n){}function Fme(t,n){if(t&1&&R(0,Pme,0,0,"ng-template",15),t&2){let e=n.items,i=n.clear,r=C(2);y("ngTemplateOutlet",r.multiLabelTemplate)("ngTemplateOutletContext",wa(2,Dme,e,i))}}function Nme(t,n){t&1&&R(0,Fme,1,5,"ng-template",5)}function Lme(t,n){}function Vme(t,n){if(t&1&&R(0,Lme,0,0,"ng-template",16),t&2){let e=C(2);y("ngTemplateOutlet",e.headerTemplate)}}function Bme(t,n){t&1&&R(0,Vme,1,1,"ng-template",6)}function jme(t,n){}function Hme(t,n){if(t&1&&R(0,jme,0,0,"ng-template",16),t&2){let e=C(2);y("ngTemplateOutlet",e.footerTemplate)}}function zme(t,n){t&1&&R(0,Hme,1,1,"ng-template",7)}function Ume(t,n){}function $me(t,n){if(t&1&&R(0,Ume,0,0,"ng-template",15),t&2){let e=n.searchTerm,i=C(2);y("ngTemplateOutlet",i.notFoundTemplate)("ngTemplateOutletContext",Pt(2,yI,e))}}function Wme(t,n){t&1&&R(0,$me,1,4,"ng-template",8)}function Gme(t,n){}function qme(t,n){if(t&1&&R(0,Gme,0,0,"ng-template",16),t&2){let e=C(2);y("ngTemplateOutlet",e.typeToSearchTemplate)}}function Yme(t,n){t&1&&R(0,qme,1,1,"ng-template",9)}function Qme(t,n){}function Kme(t,n){if(t&1&&R(0,Qme,0,0,"ng-template",15),t&2){let e=n.searchTerm,i=C(2);y("ngTemplateOutlet",i.loadingTextTemplate)("ngTemplateOutletContext",Pt(2,yI,e))}}function Zme(t,n){t&1&&R(0,Kme,1,4,"ng-template",10)}function Xme(t,n){}function Jme(t,n){if(t&1&&R(0,Xme,0,0,"ng-template",15),t&2){let e=n.searchTerm,i=C(2);y("ngTemplateOutlet",i.tagTemplate)("ngTemplateOutletContext",Pt(2,yI,e))}}function ehe(t,n){t&1&&R(0,Jme,1,4,"ng-template",11)}function the(t,n){}function ihe(t,n){if(t&1&&R(0,the,0,0,"ng-template",16),t&2){let e=C(2);y("ngTemplateOutlet",e.loadingSpinnerTemplate)}}function nhe(t,n){t&1&&R(0,ihe,1,1,"ng-template",12)}function rhe(t,n){}function ohe(t,n){if(t&1&&R(0,rhe,0,0,"ng-template",16),t&2){let e=C(2);y("ngTemplateOutlet",e.placeholderTemplate)}}function ahe(t,n){t&1&&R(0,ohe,1,1,"ng-template",13)}function she(t,n){}function lhe(t,n){if(t&1&&R(0,she,0,0,"ng-template",16),t&2){let e=C(2);y("ngTemplateOutlet",e.clearbuttonTemplate)}}function che(t,n){t&1&&R(0,lhe,1,1,"ng-template",14)}var dhe=(()=>{let n=class n{constructor(){this.elementRef=u(q),this.disabled=!1,this.stateChange$=new z}get label(){return(this.elementRef.nativeElement.textContent||"").trim()}ngOnChanges(i){i.disabled&&this.stateChange$.next({value:this.value,disabled:this.disabled})}ngAfterViewChecked(){this.label!==this._previousLabel&&(this._previousLabel=this.label,this.stateChange$.next({value:this.value,disabled:this.disabled,label:this.elementRef.nativeElement.innerHTML}))}ngOnDestroy(){this.stateChange$.complete()}};n.\u0275fac=function(r){return new(r||n)},n.\u0275cmp=E({type:n,selectors:[["mtx-option"]],inputs:{value:"value",disabled:[2,"disabled","disabled",V]},exportAs:["mtxOption"],features:[Ae],ngContentSelectors:yme,decls:1,vars:0,template:function(r,o){r&1&&(Me(),oe(0))},encapsulation:2,changeDetection:0});let t=n;return t})(),uhe=(()=>{let n=class n{constructor(){this._defaultOptions=u(kz,{optional:!0}),this.changes=new z,this.placeholder=this._defaultOptions?.placeholder,this.notFoundText=this._defaultOptions?.notFoundText??"No items found",this.typeToSearchText=this._defaultOptions?.typeToSearchText??"Type to search",this.addTagText=this._defaultOptions?.addTagText??"Add item",this.loadingText=this._defaultOptions?.loadingText??"Loading...",this.clearAllText=this._defaultOptions?.clearAllText??"Clear all"}};n.\u0275fac=function(r){return new(r||n)},n.\u0275prov=O({token:n,factory:n.\u0275fac,providedIn:"root"});let t=n;return t})(),mhe=(()=>{let n=class n{constructor(){this.template=u(te)}};n.\u0275fac=function(r){return new(r||n)},n.\u0275dir=F({type:n,selectors:[["","ng-option-tmp",""]]});let t=n;return t})(),hhe=(()=>{let n=class n{constructor(){this.template=u(te)}};n.\u0275fac=function(r){return new(r||n)},n.\u0275dir=F({type:n,selectors:[["","ng-optgroup-tmp",""]]});let t=n;return t})(),phe=(()=>{let n=class n{constructor(){this.template=u(te)}};n.\u0275fac=function(r){return new(r||n)},n.\u0275dir=F({type:n,selectors:[["","ng-label-tmp",""]]});let t=n;return t})(),fhe=(()=>{let n=class n{constructor(){this.template=u(te)}};n.\u0275fac=function(r){return new(r||n)},n.\u0275dir=F({type:n,selectors:[["","ng-multi-label-tmp",""]]});let t=n;return t})(),ghe=(()=>{let n=class n{constructor(){this.template=u(te)}};n.\u0275fac=function(r){return new(r||n)},n.\u0275dir=F({type:n,selectors:[["","ng-header-tmp",""]]});let t=n;return t})(),_he=(()=>{let n=class n{constructor(){this.template=u(te)}};n.\u0275fac=function(r){return new(r||n)},n.\u0275dir=F({type:n,selectors:[["","ng-footer-tmp",""]]});let t=n;return t})(),bhe=(()=>{let n=class n{constructor(){this.template=u(te)}};n.\u0275fac=function(r){return new(r||n)},n.\u0275dir=F({type:n,selectors:[["","ng-notfound-tmp",""]]});let t=n;return t})(),vhe=(()=>{let n=class n{constructor(){this.template=u(te)}};n.\u0275fac=function(r){return new(r||n)},n.\u0275dir=F({type:n,selectors:[["","ng-typetosearch-tmp",""]]});let t=n;return t})(),yhe=(()=>{let n=class n{constructor(){this.template=u(te)}};n.\u0275fac=function(r){return new(r||n)},n.\u0275dir=F({type:n,selectors:[["","ng-loadingtext-tmp",""]]});let t=n;return t})(),xhe=(()=>{let n=class n{constructor(){this.template=u(te)}};n.\u0275fac=function(r){return new(r||n)},n.\u0275dir=F({type:n,selectors:[["","ng-tag-tmp",""]]});let t=n;return t})(),Che=(()=>{let n=class n{constructor(){this.template=u(te)}};n.\u0275fac=function(r){return new(r||n)},n.\u0275dir=F({type:n,selectors:[["","ng-loadingspinner-tmp",""]]});let t=n;return t})(),whe=(()=>{let n=class n{constructor(){this.template=u(te)}};n.\u0275fac=function(r){return new(r||n)},n.\u0275dir=F({type:n,selectors:[["","ng-placeholder-tmp",""]]});let t=n;return t})(),Dhe=(()=>{let n=class n{constructor(){this.template=u(te)}};n.\u0275fac=function(r){return new(r||n)},n.\u0275dir=F({type:n,selectors:[["","ng-clearbutton-tmp",""]]});let t=n;return t})(),kz=new T("mtx-select-default-options"),Ez=0,xI=(()=>{let n=class n{get clearSearchOnAdd(){return this._clearSearchOnAdd??this.closeOnSelect}set clearSearchOnAdd(i){this._clearSearchOnAdd=i}get items(){return this._items}set items(i){this._itemsAreUsed=!0,this._items=i}get value(){return this._value}set value(i){this._assignValue(i)&&this._onChange(i)}get id(){return this._id}set id(i){this._id=i||this._uid,this.stateChanges.next()}get placeholder(){return this._placeholder}set placeholder(i){this._placeholder=i,this.stateChanges.next()}get focused(){return this._focused}get empty(){return this.value==null||Array.isArray(this.value)&&this.value.length===0}get shouldLabelFloat(){return this.focused||!this.empty}get required(){return this._required??this.ngControl?.control?.hasValidator(Le.required)??!1}set required(i){this._required=i,this.stateChanges.next()}get errorStateMatcher(){return this._errorStateTracker.matcher}set errorStateMatcher(i){this._errorStateTracker.matcher=i}get panelOpen(){return!!this.ngSelect.isOpen}get errorState(){return this._errorStateTracker.errorState}set errorState(i){this._errorStateTracker.errorState=i}constructor(){this._intl=u(uhe),this._changeDetectorRef=u(ye),this._elementRef=u(q),this._focusMonitor=u(Yt),this.ngControl=u(Hn,{optional:!0,self:!0}),this._parentFormField=u(Xo,{optional:!0}),this._defaultOptions=u(kz,{optional:!0}),this._document=u(ge),this.addTag=!1,this.appearance="underline",this.appendTo=this._defaultOptions?.appendTo??"body",this.bindLabel=this._defaultOptions?.bindLabel,this.bindValue=this._defaultOptions?.bindValue,this.closeOnSelect=!0,this.clearable=!0,this.clearOnBackspace=!0,this.dropdownPosition="auto",this.bufferAmount=4,this.selectableGroup=!1,this.selectableGroupAsModel=!0,this.hideSelected=!1,this.loading=!1,this.labelForId=null,this.markFirst=!0,this.multiple=!1,this.searchable=!0,this.readonly=!1,this.searchFn=null,this.searchWhileComposing=!0,this.selectOnTab=!1,this.trackByFn=null,this.inputAttrs={},this.openOnEnter=this._defaultOptions?.openOnEnter??!0,this.minTermLength=0,this.editableSearchTerm=!1,this.keyDownFn=l=>!0,this.virtualScroll=this._defaultOptions?.virtualScroll??!1,this.fixedPlaceholder=this._defaultOptions?.fixedPlaceholder??!1,this.deselectOnClick=this._defaultOptions?.deselectOnClick??!1,this.blurEvent=new U,this.focusEvent=new U,this.changeEvent=new U,this.openEvent=new U,this.closeEvent=new U,this.searchEvent=new U,this.clearEvent=new U,this.addEvent=new U,this.removeEvent=new U,this.scroll=new U,this.scrollToEnd=new U,this._clearSearchOnAdd=this._defaultOptions?.clearSearchOnAdd,this._items=[],this._itemsAreUsed=!1,this._destroy$=new z,this._value=null,this.stateChanges=new z,this._uid=`mtx-select-${Ez++}`,this._focused=!1,this.disabled=!1,this.ariaLabel="",this.ariaLabelledby=null,this._ariaDescribedby=null,this.controlType="mtx-select",this._onChange=()=>{},this._onTouched=()=>{},this._valueId=`mtx-select-value-${Ez++}`,this._intlChangesSubscription=ke.EMPTY;let i=this._focusMonitor,r=u(dl),o=u(pc,{optional:!0}),a=u(Ki,{optional:!0}),s=this.ngControl;this._intlChangesSubscription=this._intl.changes.subscribe(()=>{this._changeDetectorRef.detectChanges()}),i.monitor(this._elementRef,!0).subscribe(l=>{this._focused&&!l&&this._onTouched(),this._focused=!!l,this.stateChanges.next()}),this.ngControl&&(this.ngControl.valueAccessor=this),this._errorStateTracker=new cl(r,s,a,o,this.stateChanges),this.id=this.id}ngOnInit(){this.compareWith&&(this.ngSelect.compareWith=this.compareWith)}ngAfterViewInit(){this._itemsAreUsed||(this.ngSelect.escapeHTML=!1,this._setItemsFromMtxOptions())}ngDoCheck(){if(this.ngControl){let i=this.ngControl;this._previousControl!==i.control&&(this._previousControl!==void 0&&i.disabled!==null&&i.disabled!==this.disabled&&(this.disabled=i.disabled),this._previousControl=i.control),this.updateErrorState()}}ngOnDestroy(){this._destroy$.next(),this._destroy$.complete(),this.stateChanges.complete(),this._focusMonitor.stopMonitoring(this._elementRef),this._intlChangesSubscription.unsubscribe()}_getAriaLabelledby(){if(this.ariaLabel)return null;let i=this._parentFormField?.getLabelId(),r=(i?i+" ":"")+this._valueId;return this.ariaLabelledby&&(r+=" "+this.ariaLabelledby),r}setDescribedByIds(i){this._ariaDescribedby=i.length?i.join(" "):null}setDisabledState(i){this.disabled=i,this._changeDetectorRef.markForCheck(),this.stateChanges.next()}onContainerClick(i){i.target.classList.contains("ng-arrow-wrapper")||(this.focus(),this.open())}writeValue(i){this._assignValue(i)}registerOnChange(i){this._onChange=i}registerOnTouched(i){this._onTouched=i}updateErrorState(){this._errorStateTracker.updateErrorState()}_assignValue(i){return i!==this._value||this.multiple&&Array.isArray(i)?(this._value=i,this._changeDetectorRef.markForCheck(),!0):!1}_setItemsFromMtxOptions(){let i=o=>{this.items=o.map(a=>({$ngOptionValue:a.value,$ngOptionLabel:a.elementRef.nativeElement.innerHTML,disabled:a.disabled})),this.ngSelect.itemsList.setItems(this.items),this.ngSelect.hasValue&&this.ngSelect.itemsList.mapSelectedItems(),this.ngSelect.detectChanges()},r=()=>{let o=Je(this.mtxOptions.changes,this._destroy$);Je(...this.mtxOptions.map(a=>a.stateChange$)).pipe(Te(o)).subscribe(a=>{let s=this.ngSelect.itemsList.findItem(a.value);s.disabled=a.disabled,s.label=a.label||s.label,this.ngSelect.detectChanges()})};this.mtxOptions.changes.pipe(He(this.mtxOptions),Te(this._destroy$)).subscribe(o=>{i(o),r()})}open(){this.ngSelect.open()}close(){this.ngSelect.close()}focus(){this.ngSelect.focus()}blur(){this.ngSelect.blur()}openChange(){this.openEvent.emit(),setTimeout(()=>{this._document.getElementById(this.ngSelect.dropdownId)?.classList.add("mat-"+this._parentFormField?.color)})}};n.\u0275fac=function(r){return new(r||n)},n.\u0275cmp=E({type:n,selectors:[["mtx-select"]],contentQueries:function(r,o,a){if(r&1&&(xe(a,mhe,5,te),xe(a,hhe,5,te),xe(a,phe,5,te),xe(a,fhe,5,te),xe(a,ghe,5,te),xe(a,_he,5,te),xe(a,bhe,5,te),xe(a,vhe,5,te),xe(a,yhe,5,te),xe(a,xhe,5,te),xe(a,Che,5,te),xe(a,whe,5,te),xe(a,Dhe,5,te),xe(a,dhe,5)),r&2){let s;B(s=j())&&(o.optionTemplate=s.first),B(s=j())&&(o.optgroupTemplate=s.first),B(s=j())&&(o.labelTemplate=s.first),B(s=j())&&(o.multiLabelTemplate=s.first),B(s=j())&&(o.headerTemplate=s.first),B(s=j())&&(o.footerTemplate=s.first),B(s=j())&&(o.notFoundTemplate=s.first),B(s=j())&&(o.typeToSearchTemplate=s.first),B(s=j())&&(o.loadingTextTemplate=s.first),B(s=j())&&(o.tagTemplate=s.first),B(s=j())&&(o.loadingSpinnerTemplate=s.first),B(s=j())&&(o.placeholderTemplate=s.first),B(s=j())&&(o.clearbuttonTemplate=s.first),B(s=j())&&(o.mtxOptions=s)}},viewQuery:function(r,o){if(r&1&&ie(xme,7),r&2){let a;B(a=j())&&(o.ngSelect=a.first)}},hostAttrs:["role","combobox","aria-autocomplete","none",1,"mtx-select"],hostVars:20,hostBindings:function(r,o){r&2&&(X("id",o.id)("aria-expanded",o.panelOpen)("aria-label",o.ariaLabel||null)("aria-labelledby",o._getAriaLabelledby())("aria-describedby",o._ariaDescribedby||null)("aria-required",o.required.toString())("aria-disabled",o.disabled.toString())("aria-invalid",o.errorState),G("mtx-select-floating",o.shouldLabelFloat)("mtx-select-disabled",o.disabled)("mtx-select-invalid",o.errorState)("mtx-select-required",o.required)("mtx-select-empty",o.empty)("mtx-select-multiple",o.multiple))},inputs:{addTag:"addTag",addTagText:"addTagText",appearance:"appearance",appendTo:"appendTo",bindLabel:"bindLabel",bindValue:"bindValue",closeOnSelect:[2,"closeOnSelect","closeOnSelect",V],clearAllText:"clearAllText",clearable:[2,"clearable","clearable",V],clearOnBackspace:[2,"clearOnBackspace","clearOnBackspace",V],compareWith:"compareWith",dropdownPosition:"dropdownPosition",groupBy:"groupBy",groupValue:"groupValue",bufferAmount:"bufferAmount",selectableGroup:[2,"selectableGroup","selectableGroup",V],selectableGroupAsModel:[2,"selectableGroupAsModel","selectableGroupAsModel",V],hideSelected:[2,"hideSelected","hideSelected",V],loading:[2,"loading","loading",V],loadingText:"loadingText",labelForId:"labelForId",markFirst:[2,"markFirst","markFirst",V],maxSelectedItems:"maxSelectedItems",multiple:[2,"multiple","multiple",V],notFoundText:"notFoundText",searchable:[2,"searchable","searchable",V],readonly:[2,"readonly","readonly",V],searchFn:"searchFn",searchWhileComposing:[2,"searchWhileComposing","searchWhileComposing",V],selectOnTab:[2,"selectOnTab","selectOnTab",V],trackByFn:"trackByFn",inputAttrs:"inputAttrs",tabIndex:"tabIndex",openOnEnter:[2,"openOnEnter","openOnEnter",V],minTermLength:"minTermLength",editableSearchTerm:[2,"editableSearchTerm","editableSearchTerm",V],keyDownFn:"keyDownFn",virtualScroll:[2,"virtualScroll","virtualScroll",V],typeToSearchText:"typeToSearchText",typeahead:"typeahead",isOpen:"isOpen",fixedPlaceholder:[2,"fixedPlaceholder","fixedPlaceholder",V],deselectOnClick:[2,"deselectOnClick","deselectOnClick",V],clearSearchOnAdd:"clearSearchOnAdd",items:"items",value:"value",id:"id",placeholder:"placeholder",disabled:[2,"disabled","disabled",V],required:[2,"required","required",V],errorStateMatcher:"errorStateMatcher",ariaLabel:[0,"aria-label","ariaLabel"],ariaLabelledby:[0,"aria-labelledby","ariaLabelledby"]},outputs:{blurEvent:"blur",focusEvent:"focus",changeEvent:"change",openEvent:"open",closeEvent:"close",searchEvent:"search",clearEvent:"clear",addEvent:"add",removeEvent:"remove",scroll:"scroll",scrollToEnd:"scrollToEnd"},exportAs:["mtxSelect"],features:[Ce([{provide:Ra,useExisting:n}])],decls:15,vars:63,consts:[["ngSelect",""],[3,"ngModelChange","blur","focus","change","open","close","search","clear","add","remove","scroll","scrollToEnd","ngModel","ngModelOptions","placeholder","items","addTag","addTagText","appendTo","appearance","bindLabel","bindValue","closeOnSelect","clearAllText","clearable","clearOnBackspace","dropdownPosition","groupBy","groupValue","bufferAmount","hideSelected","isOpen","inputAttrs","loading","loadingText","labelForId","markFirst","maxSelectedItems","multiple","notFoundText","readonly","typeahead","typeToSearchText","trackByFn","searchable","searchFn","searchWhileComposing","clearSearchOnAdd","selectableGroup","selectableGroupAsModel","selectOnTab","tabIndex","openOnEnter","minTermLength","editableSearchTerm","keyDownFn","virtualScroll","fixedPlaceholder","deselectOnClick"],["ng-option-tmp",""],["ng-optgroup-tmp",""],["ng-label-tmp",""],["ng-multi-label-tmp",""],["ng-header-tmp",""],["ng-footer-tmp",""],["ng-notfound-tmp",""],["ng-typetosearch-tmp",""],["ng-loadingtext-tmp",""],["ng-tag-tmp",""],["ng-loadingspinner-tmp",""],["ng-placeholder-tmp",""],["ng-clearbutton-tmp",""],[3,"ngTemplateOutlet","ngTemplateOutletContext"],[3,"ngTemplateOutlet"]],template:function(r,o){if(r&1){let a=Y();h(0,"ng-select",1,0),Uo("ngModelChange",function(l){return I(a),Ca(o.value,l)||(o.value=l),A(l)}),S("blur",function(l){return I(a),A(o.blurEvent.emit(l))})("focus",function(l){return I(a),A(o.focusEvent.emit(l))})("change",function(l){return I(a),A(o.changeEvent.emit(l))})("open",function(){return I(a),A(o.openChange())})("close",function(){return I(a),A(o.closeEvent.emit())})("search",function(l){return I(a),A(o.searchEvent.emit(l))})("clear",function(l){return I(a),A(o.clearEvent.emit(l))})("add",function(l){return I(a),A(o.addEvent.emit(l))})("remove",function(l){return I(a),A(o.removeEvent.emit(l))})("scroll",function(l){return I(a),A(o.scroll.emit(l))})("scrollToEnd",function(){return I(a),A(o.scrollToEnd.emit())}),N(2,kme,1,0,null,2),N(3,Ime,1,0,null,3),N(4,Rme,1,0,null,4),N(5,Nme,1,0,null,5),N(6,Bme,1,0,null,6),N(7,zme,1,0,null,7),N(8,Wme,1,0,null,8),N(9,Yme,1,0,null,9),N(10,Zme,1,0,null,10),N(11,ehe,1,0,null,11),N(12,nhe,1,0,null,12),N(13,ahe,1,0,null,13),N(14,che,1,0,null,14),p()}r&2&&(G("ng-select-invalid",o.errorState),zo("ngModel",o.value),y("ngModelOptions",at(62,Cme))("placeholder",o.placeholder||o._intl.placeholder)("items",o.items)("addTag",o.addTag)("addTagText",o.addTagText||o._intl.addTagText)("appendTo",o.appendTo)("appearance",o.appearance)("bindLabel",o.bindLabel)("bindValue",o.bindValue)("closeOnSelect",o.closeOnSelect)("clearAllText",o.clearAllText||o._intl.clearAllText)("clearable",o.clearable)("clearOnBackspace",o.clearOnBackspace)("dropdownPosition",o.dropdownPosition)("groupBy",o.groupBy)("groupValue",o.groupValue)("bufferAmount",o.bufferAmount)("hideSelected",o.hideSelected)("isOpen",o.isOpen)("inputAttrs",o.inputAttrs)("loading",o.loading)("loadingText",o.loadingText||o._intl.loadingText)("labelForId",o.labelForId)("markFirst",o.markFirst)("maxSelectedItems",o.maxSelectedItems)("multiple",o.multiple)("notFoundText",o.notFoundText||o._intl.notFoundText)("readonly",o.readonly||o.disabled)("typeahead",o.typeahead)("typeToSearchText",o.typeToSearchText||o._intl.typeToSearchText)("trackByFn",o.trackByFn)("searchable",o.searchable)("searchFn",o.searchFn)("searchWhileComposing",o.searchWhileComposing)("clearSearchOnAdd",o.clearSearchOnAdd)("selectableGroup",o.selectableGroup)("selectableGroupAsModel",o.selectableGroupAsModel)("selectOnTab",o.selectOnTab)("tabIndex",o.tabIndex)("openOnEnter",o.openOnEnter)("minTermLength",o.minTermLength)("editableSearchTerm",o.editableSearchTerm)("keyDownFn",o.keyDownFn)("virtualScroll",o.virtualScroll)("fixedPlaceholder",o.fixedPlaceholder)("deselectOnClick",o.deselectOnClick),g(2),L(o.optionTemplate?2:-1),g(),L(o.optgroupTemplate?3:-1),g(),L(o.labelTemplate?4:-1),g(),L(o.multiLabelTemplate?5:-1),g(),L(o.headerTemplate?6:-1),g(),L(o.footerTemplate?7:-1),g(),L(o.notFoundTemplate?8:-1),g(),L(o.typeToSearchTemplate?9:-1),g(),L(o.loadingTextTemplate?10:-1),g(),L(o.tagTemplate?11:-1),g(),L(o.loadingSpinnerTemplate?12:-1),g(),L(o.placeholderTemplate?13:-1),g(),L(o.clearbuttonTemplate?14:-1))},dependencies:[vI,Dz,RC,OC,PC,FC,NC,LC,BC,VC,jC,HC,zC,UC,$C,du,ei,gg,Fn],styles:[`.ng-select{padding:var(--mat-form-field-filled-with-label-container-padding-top, 24px) 16px var(--mat-form-field-filled-with-label-container-padding-bottom, 8px);margin:calc(var(--mat-form-field-filled-with-label-container-padding-top, 24px) * -1) -16px calc(var(--mat-form-field-filled-with-label-container-padding-bottom, 8px) * -1)}.mdc-text-field--outlined .ng-select,.mdc-text-field--no-label .ng-select{padding-top:var(--mat-form-field-container-vertical-padding, 16px);padding-bottom:var(--mat-form-field-container-vertical-padding, 16px);margin-top:calc(var(--mat-form-field-container-vertical-padding, 16px) * -1);margin-bottom:calc(var(--mat-form-field-container-vertical-padding, 16px) * -1)}.ng-select .ng-select-container{align-items:center;color:var(--mtx-select-container-text-color, var(--mat-sys-on-surface))}.ng-select .ng-select-container .ng-value-container{align-items:center;gap:4px}.ng-select .ng-select-container .ng-value-container .ng-input>input{height:var(--mat-form-field-container-text-line-height, var(--mat-sys-body-large-line-height));color:inherit;font:inherit}.ng-select .ng-select-container .ng-clear-wrapper{display:inline-flex;justify-content:center;align-items:center;width:24px;height:var(--mat-form-field-container-text-line-height, var(--mat-sys-body-large-line-height))}.ng-select .ng-placeholder{transition:opacity .2s;opacity:1;color:var(--mtx-select-placeholder-text-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent))}.mat-form-field-hide-placeholder .ng-select .ng-placeholder{opacity:0}.ng-select .ng-has-value .ng-placeholder{display:none}.ng-select .ng-clear-wrapper{color:var(--mtx-select-clear-icon-color, var(--mat-sys-on-surface))}.ng-select .ng-clear-wrapper:hover .ng-clear{color:var(--mtx-select-clear-icon-hover-color, var(--mat-sys-error))}.ng-select.ng-select-disabled .ng-value{color:var(--mtx-select-disabled-text-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent))}.ng-select.ng-select-opened .ng-arrow-wrapper .ng-arrow{top:-2px;border-width:0 5px 5px}.ng-select.ng-select-single.ng-select-filtered .ng-placeholder{display:initial;visibility:hidden}.ng-select.ng-select-multiple .ng-select-container .ng-value-container .ng-value{display:inline-flex;align-items:center;height:var(--mat-form-field-container-text-line-height, var(--mat-sys-body-large-line-height));padding:0 calc((var(--mat-form-field-container-text-line-height, var(--mat-sys-body-large-line-height)) - 16px) / 2);border-radius:9999px;font-size:.875em;background-color:var(--mtx-select-multiple-value-background-color, transparent);border:1px solid var(--mtx-select-multiple-value-outline-color, var(--mat-sys-outline))}.ng-select.ng-select-multiple .ng-select-container .ng-value-container .ng-value.ng-value-disabled{opacity:.4}.ng-select.ng-select-multiple .ng-select-container .ng-value-container .ng-value .ng-value-label{display:inline-block;margin:0 4px;line-height:16px}.ng-select.ng-select-multiple .ng-select-container .ng-value-container .ng-value .ng-value-icon{width:16px;height:16px;line-height:16px;border-radius:50%;text-align:center}.ng-select.ng-select-multiple .ng-select-container .ng-value-container .ng-value .ng-value-icon:hover{background-color:var(--mtx-select-multiple-value-icon-hover-background-color, var(--mat-sys-outline-variant))}.ng-select.ng-select-multiple.ng-select-disabled .ng-select-container .ng-value-container .ng-value{border-color:var(--mtx-select-multiple-value-disabled-outline-color, color-mix(in srgb, var(--mat-sys-outline) 38%, transparent))}.ng-select .ng-arrow-wrapper{width:10px}.ng-select .ng-arrow{border-width:5px 5px 2px;border-style:solid;border-color:var(--mtx-select-enabled-arrow-color, var(--mat-sys-on-surface)) transparent transparent}.ng-select.ng-select-disabled .ng-arrow{border-color:var(--mtx-select-disabled-arrow-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent)) transparent transparent}.ng-select.ng-select-invalid .ng-arrow{border-color:var(--mtx-select-invalid-arrow-color, var(--mat-sys-error)) transparent transparent}.ng-select.ng-select-opened .ng-arrow{border-color:transparent transparent var(--mtx-select-enabled-arrow-color, var(--mat-sys-on-surface))}.ng-select.ng-select-opened.ng-select-invalid .ng-arrow{border-color:transparent transparent var(--mtx-select-invalid-arrow-color, var(--mat-sys-error))}.ng-dropdown-panel{background-color:var(--mtx-select-panel-background-color, var(--mat-sys-surface-container))}.ng-dropdown-panel.ng-select-bottom{top:100%;border-bottom-left-radius:var(--mtx-select-container-shape, var(--mat-sys-corner-extra-small));border-bottom-right-radius:var(--mtx-select-container-shape, var(--mat-sys-corner-extra-small));box-shadow:var(--mtx-select-container-elevation-shadow, 0px 3px 1px -2px rgba(0, 0, 0, .2), 0px 2px 2px 0px rgba(0, 0, 0, .14), 0px 1px 5px 0px rgba(0, 0, 0, .12))}.ng-dropdown-panel.ng-select-top{bottom:100%;border-top-left-radius:var(--mtx-select-container-shape, var(--mat-sys-corner-extra-small));border-top-right-radius:var(--mtx-select-container-shape, var(--mat-sys-corner-extra-small));box-shadow:var(--mtx-select-container-elevation-shadow, 0px 3px 1px -2px rgba(0, 0, 0, .2), 0px 2px 2px 0px rgba(0, 0, 0, .14), 0px 1px 5px 0px rgba(0, 0, 0, .12))}.ng-dropdown-panel .ng-dropdown-header,.ng-dropdown-panel .ng-dropdown-footer{padding:14px 16px}.ng-dropdown-panel .ng-dropdown-header{border-bottom:1px solid var(--mtx-select-panel-divider-color, var(--mat-sys-outline))}.ng-dropdown-panel .ng-dropdown-footer{border-top:1px solid var(--mtx-select-panel-divider-color, var(--mat-sys-outline))}.ng-dropdown-panel .ng-dropdown-panel-items .ng-optgroup{padding:14px 16px;font-weight:500;-webkit-user-select:none;user-select:none;cursor:pointer;color:var(--mtx-select-optgroup-label-text-color, var(--mat-sys-on-surface))}.ng-dropdown-panel .ng-dropdown-panel-items .ng-optgroup.ng-option-disabled{cursor:default}.ng-dropdown-panel .ng-dropdown-panel-items .ng-optgroup.ng-option-marked{background-color:var(--mtx-select-option-hover-state-background-color, color-mix(in srgb, var(--mat-sys-on-surface) calc(var(--mat-sys-hover-state-layer-opacity) * 100%), transparent))}.ng-dropdown-panel .ng-dropdown-panel-items .ng-optgroup.ng-option-selected{background-color:var(--mtx-select-option-selected-state-background-color, var(--mat-sys-secondary-container));color:var(--mtx-select-option-selected-state-text-color, var(--mat-sys-on-surface))}.ng-dropdown-panel .ng-dropdown-panel-items .ng-option{position:relative;padding:14px 16px;text-overflow:ellipsis;text-decoration:none;text-align:left;white-space:nowrap;overflow:hidden;color:var(--mtx-select-option-label-text-color, var(--mat-sys-on-surface))}.ng-dropdown-panel .ng-dropdown-panel-items .ng-option.ng-option-marked{background-color:var(--mtx-select-option-hover-state-background-color, color-mix(in srgb, var(--mat-sys-on-surface) calc(var(--mat-sys-hover-state-layer-opacity) * 100%), transparent))}.ng-dropdown-panel .ng-dropdown-panel-items .ng-option.ng-option-selected{background-color:var(--mtx-select-option-selected-state-background-color, var(--mat-sys-secondary-container));color:var(--mtx-select-option-selected-state-text-color, var(--mat-sys-on-surface))}.ng-dropdown-panel .ng-dropdown-panel-items .ng-option.ng-option-disabled{color:var(--mtx-select-option-disabled-state-text-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent))}[dir=rtl] .ng-dropdown-panel .ng-dropdown-panel-items .ng-option{text-align:right}.ng-dropdown-panel .ng-dropdown-panel-items .ng-option.ng-option-child{padding-left:32px}[dir=rtl] .ng-dropdown-panel .ng-dropdown-panel-items .ng-option.ng-option-child{padding-right:32px;padding-left:0}.ng-dropdown-panel .ng-dropdown-panel-items .ng-option .ng-tag-label{margin-right:6px;font-size:80%}[dir=rtl] .ng-dropdown-panel .ng-dropdown-panel-items .ng-option .ng-tag-label{margin-left:6px;margin-right:0} -`],encapsulation:2,changeDetection:0});let t=n;return t})(),Sz=(()=>{let n=class n{};n.\u0275fac=function(r){return new(r||n)},n.\u0275mod=ee({type:n}),n.\u0275inj=J({imports:[gt,du,zn,vI,xI]});let t=n;return t})();var Tz=(()=>{let n=class n extends to{get bindLabel(){return typeof this.props.labelProp=="string"?this.props.labelProp:""}get bindValue(){return typeof this.props.valueProp=="string"?this.props.valueProp:void 0}};n.\u0275fac=(()=>{let i;return function(o){return(i||(i=fe(n)))(o||n)}})(),n.\u0275cmp=E({type:n,selectors:[["formly-field-combobox"]],features:[le],decls:4,vars:13,consts:[["select",""],[3,"formControl","items","bindLabel","bindValue","multiple","placeholder","required","closeOnSelect","compareWith"]],template:function(r,o){r&1&&(k(0,"mtx-select",1,0),me(2,"toObservable"),me(3,"async")),r&2&&y("formControl",o.formControl)("items",Oe(3,11,Oe(2,9,o.props.options)))("bindLabel",o.bindLabel)("bindValue",o.bindValue)("multiple",o.props.multiple)("placeholder",o.props.placeholder)("required",o.props.required)("closeOnSelect",!o.props.multiple)("compareWith",o.props.compareWith)},dependencies:[zn,ei,Do,wo,Sz,xI,s3,rn,a3],encapsulation:2});let t=n;return t})();var Iz=(()=>{let n=class n extends Cg{};n.\u0275fac=(()=>{let i;return function(o){return(i||(i=fe(n)))(o||n)}})(),n.\u0275cmp=E({type:n,selectors:[["formly-wrapper-card"]],features:[le],decls:8,vars:1,consts:[["fieldComponent",""],[1,"card"],[1,"card-header"],[1,"card-body"]],template:function(r,o){r&1&&(ft(0,"div",1)(1,"h3",2),_(2,"Its time to party"),vt(),ft(3,"h3",2),_(4),vt(),ft(5,"div",3),rf(6,null,0),vt()()),r&2&&(g(4),H(o.props.label))},encapsulation:2});let t=n;return t})(),Az=(()=>{let n=class n extends Cg{};n.\u0275fac=(()=>{let i;return function(o){return(i||(i=fe(n)))(o||n)}})(),n.\u0275cmp=E({type:n,selectors:[["formly-wrapper-div"]],features:[le],decls:3,vars:0,consts:[["fieldComponent",""]],template:function(r,o){r&1&&(ft(0,"div"),rf(1,null,0),vt())},encapsulation:2});let t=n;return t})();function Oz(t){return{types:[{name:"combobox",component:Tz,wrappers:["form-field"]}],wrappers:[{name:"card",component:Iz},{name:"div",component:Az}],validators:[],validationMessages:[{name:"required",message:(n,e)=>t.stream("validation.required")},{name:"min",message:(n,e)=>t.stream("validation.min",{number:e.props?.min})},{name:"max",message:(n,e)=>t.stream("validation.max",{number:e.props?.max})},{name:"minLength",message:(n,e)=>t.stream("validation.min_length",{number:e.props?.minLength})},{name:"maxLength",message:(n,e)=>t.stream("validation.max_length",{number:e.props?.maxLength})}]}}var Mhe={lessThanXSeconds:{one:"\u4E0D\u5230 1 \u79D2",other:"\u4E0D\u5230 {{count}} \u79D2"},xSeconds:{one:"1 \u79D2",other:"{{count}} \u79D2"},halfAMinute:"\u534A\u5206\u949F",lessThanXMinutes:{one:"\u4E0D\u5230 1 \u5206\u949F",other:"\u4E0D\u5230 {{count}} \u5206\u949F"},xMinutes:{one:"1 \u5206\u949F",other:"{{count}} \u5206\u949F"},xHours:{one:"1 \u5C0F\u65F6",other:"{{count}} \u5C0F\u65F6"},aboutXHours:{one:"\u5927\u7EA6 1 \u5C0F\u65F6",other:"\u5927\u7EA6 {{count}} \u5C0F\u65F6"},xDays:{one:"1 \u5929",other:"{{count}} \u5929"},aboutXWeeks:{one:"\u5927\u7EA6 1 \u4E2A\u661F\u671F",other:"\u5927\u7EA6 {{count}} \u4E2A\u661F\u671F"},xWeeks:{one:"1 \u4E2A\u661F\u671F",other:"{{count}} \u4E2A\u661F\u671F"},aboutXMonths:{one:"\u5927\u7EA6 1 \u4E2A\u6708",other:"\u5927\u7EA6 {{count}} \u4E2A\u6708"},xMonths:{one:"1 \u4E2A\u6708",other:"{{count}} \u4E2A\u6708"},aboutXYears:{one:"\u5927\u7EA6 1 \u5E74",other:"\u5927\u7EA6 {{count}} \u5E74"},xYears:{one:"1 \u5E74",other:"{{count}} \u5E74"},overXYears:{one:"\u8D85\u8FC7 1 \u5E74",other:"\u8D85\u8FC7 {{count}} \u5E74"},almostXYears:{one:"\u5C06\u8FD1 1 \u5E74",other:"\u5C06\u8FD1 {{count}} \u5E74"}},Rz=(t,n,e)=>{let i,r=Mhe[t];return typeof r=="string"?i=r:n===1?i=r.one:i=r.other.replace("{{count}}",String(n)),e?.addSuffix?e.comparison&&e.comparison>0?i+"\u5185":i+"\u524D":i};var khe={full:"y'\u5E74'M'\u6708'd'\u65E5' EEEE",long:"y'\u5E74'M'\u6708'd'\u65E5'",medium:"yyyy-MM-dd",short:"yy-MM-dd"},She={full:"zzzz a h:mm:ss",long:"z a h:mm:ss",medium:"a h:mm:ss",short:"a h:mm"},The={full:"{{date}} {{time}}",long:"{{date}} {{time}}",medium:"{{date}} {{time}}",short:"{{date}} {{time}}"},Pz={date:Qo({formats:khe,defaultWidth:"full"}),time:Qo({formats:She,defaultWidth:"full"}),dateTime:Qo({formats:The,defaultWidth:"full"})};function Fz(t,n,e){let i="eeee p";return NV(t,n,e)?i:t.getTime()>n.getTime()?"'\u4E0B\u4E2A'"+i:"'\u4E0A\u4E2A'"+i}var Ihe={lastWeek:Fz,yesterday:"'\u6628\u5929' p",today:"'\u4ECA\u5929' p",tomorrow:"'\u660E\u5929' p",nextWeek:Fz,other:"PP p"},Nz=(t,n,e,i)=>{let r=Ihe[t];return typeof r=="function"?r(n,e,i):r};var Ahe={narrow:["\u524D","\u516C\u5143"],abbreviated:["\u524D","\u516C\u5143"],wide:["\u516C\u5143\u524D","\u516C\u5143"]},Ohe={narrow:["1","2","3","4"],abbreviated:["\u7B2C\u4E00\u5B63","\u7B2C\u4E8C\u5B63","\u7B2C\u4E09\u5B63","\u7B2C\u56DB\u5B63"],wide:["\u7B2C\u4E00\u5B63\u5EA6","\u7B2C\u4E8C\u5B63\u5EA6","\u7B2C\u4E09\u5B63\u5EA6","\u7B2C\u56DB\u5B63\u5EA6"]},Rhe={narrow:["\u4E00","\u4E8C","\u4E09","\u56DB","\u4E94","\u516D","\u4E03","\u516B","\u4E5D","\u5341","\u5341\u4E00","\u5341\u4E8C"],abbreviated:["1\u6708","2\u6708","3\u6708","4\u6708","5\u6708","6\u6708","7\u6708","8\u6708","9\u6708","10\u6708","11\u6708","12\u6708"],wide:["\u4E00\u6708","\u4E8C\u6708","\u4E09\u6708","\u56DB\u6708","\u4E94\u6708","\u516D\u6708","\u4E03\u6708","\u516B\u6708","\u4E5D\u6708","\u5341\u6708","\u5341\u4E00\u6708","\u5341\u4E8C\u6708"]},Phe={narrow:["\u65E5","\u4E00","\u4E8C","\u4E09","\u56DB","\u4E94","\u516D"],short:["\u65E5","\u4E00","\u4E8C","\u4E09","\u56DB","\u4E94","\u516D"],abbreviated:["\u5468\u65E5","\u5468\u4E00","\u5468\u4E8C","\u5468\u4E09","\u5468\u56DB","\u5468\u4E94","\u5468\u516D"],wide:["\u661F\u671F\u65E5","\u661F\u671F\u4E00","\u661F\u671F\u4E8C","\u661F\u671F\u4E09","\u661F\u671F\u56DB","\u661F\u671F\u4E94","\u661F\u671F\u516D"]},Fhe={narrow:{am:"\u4E0A",pm:"\u4E0B",midnight:"\u51CC\u6668",noon:"\u5348",morning:"\u65E9",afternoon:"\u4E0B\u5348",evening:"\u665A",night:"\u591C"},abbreviated:{am:"\u4E0A\u5348",pm:"\u4E0B\u5348",midnight:"\u51CC\u6668",noon:"\u4E2D\u5348",morning:"\u65E9\u6668",afternoon:"\u4E2D\u5348",evening:"\u665A\u4E0A",night:"\u591C\u95F4"},wide:{am:"\u4E0A\u5348",pm:"\u4E0B\u5348",midnight:"\u51CC\u6668",noon:"\u4E2D\u5348",morning:"\u65E9\u6668",afternoon:"\u4E2D\u5348",evening:"\u665A\u4E0A",night:"\u591C\u95F4"}},Nhe={narrow:{am:"\u4E0A",pm:"\u4E0B",midnight:"\u51CC\u6668",noon:"\u5348",morning:"\u65E9",afternoon:"\u4E0B\u5348",evening:"\u665A",night:"\u591C"},abbreviated:{am:"\u4E0A\u5348",pm:"\u4E0B\u5348",midnight:"\u51CC\u6668",noon:"\u4E2D\u5348",morning:"\u65E9\u6668",afternoon:"\u4E2D\u5348",evening:"\u665A\u4E0A",night:"\u591C\u95F4"},wide:{am:"\u4E0A\u5348",pm:"\u4E0B\u5348",midnight:"\u51CC\u6668",noon:"\u4E2D\u5348",morning:"\u65E9\u6668",afternoon:"\u4E2D\u5348",evening:"\u665A\u4E0A",night:"\u591C\u95F4"}},Lhe=(t,n)=>{let e=Number(t);switch(n?.unit){case"date":return e.toString()+"\u65E5";case"hour":return e.toString()+"\u65F6";case"minute":return e.toString()+"\u5206";case"second":return e.toString()+"\u79D2";default:return"\u7B2C "+e.toString()}},Lz={ordinalNumber:Lhe,era:Bn({values:Ahe,defaultWidth:"wide"}),quarter:Bn({values:Ohe,defaultWidth:"wide",argumentCallback:t=>t-1}),month:Bn({values:Rhe,defaultWidth:"wide"}),day:Bn({values:Phe,defaultWidth:"wide"}),dayPeriod:Bn({values:Fhe,defaultWidth:"wide",formattingValues:Nhe,defaultFormattingWidth:"wide"})};var Vhe=/^(第\s*)?\d+(日|时|分|秒)?/i,Bhe=/\d+/i,jhe={narrow:/^(前)/i,abbreviated:/^(前)/i,wide:/^(公元前|公元)/i},Hhe={any:[/^(前)/i,/^(公元)/i]},zhe={narrow:/^[1234]/i,abbreviated:/^第[一二三四]刻/i,wide:/^第[一二三四]刻钟/i},Uhe={any:[/(1|一)/i,/(2|二)/i,/(3|三)/i,/(4|四)/i]},$he={narrow:/^(一|二|三|四|五|六|七|八|九|十[二一])/i,abbreviated:/^(一|二|三|四|五|六|七|八|九|十[二一]|\d|1[12])月/i,wide:/^(一|二|三|四|五|六|七|八|九|十[二一])月/i},Whe={narrow:[/^一/i,/^二/i,/^三/i,/^四/i,/^五/i,/^六/i,/^七/i,/^八/i,/^九/i,/^十(?!(一|二))/i,/^十一/i,/^十二/i],any:[/^一|1/i,/^二|2/i,/^三|3/i,/^四|4/i,/^五|5/i,/^六|6/i,/^七|7/i,/^八|8/i,/^九|9/i,/^十(?!(一|二))|10/i,/^十一|11/i,/^十二|12/i]},Ghe={narrow:/^[一二三四五六日]/i,short:/^[一二三四五六日]/i,abbreviated:/^周[一二三四五六日]/i,wide:/^星期[一二三四五六日]/i},qhe={any:[/日/i,/一/i,/二/i,/三/i,/四/i,/五/i,/六/i]},Yhe={any:/^(上午?|下午?|午夜|[中正]午|早上?|下午|晚上?|凌晨|)/i},Qhe={any:{am:/^上午?/i,pm:/^下午?/i,midnight:/^午夜/i,noon:/^[中正]午/i,morning:/^早上/i,afternoon:/^下午/i,evening:/^晚上?/i,night:/^凌晨/i}},Vz={ordinalNumber:lh({matchPattern:Vhe,parsePattern:Bhe,valueCallback:t=>parseInt(t,10)}),era:jn({matchPatterns:jhe,defaultMatchWidth:"wide",parsePatterns:Hhe,defaultParseWidth:"any"}),quarter:jn({matchPatterns:zhe,defaultMatchWidth:"wide",parsePatterns:Uhe,defaultParseWidth:"any",valueCallback:t=>t+1}),month:jn({matchPatterns:$he,defaultMatchWidth:"wide",parsePatterns:Whe,defaultParseWidth:"any"}),day:jn({matchPatterns:Ghe,defaultMatchWidth:"wide",parsePatterns:qhe,defaultParseWidth:"any"}),dayPeriod:jn({matchPatterns:Yhe,defaultMatchWidth:"any",parsePatterns:Qhe,defaultParseWidth:"any"})};var Bz={code:"zh-CN",formatDistance:Rz,formatLong:Pz,formatRelative:Nz,localize:Lz,match:Vz,options:{weekStartsOn:1,firstWeekContainsDate:4}};var Khe={lessThanXSeconds:{one:"\u5C11\u65BC 1 \u79D2",other:"\u5C11\u65BC {{count}} \u79D2"},xSeconds:{one:"1 \u79D2",other:"{{count}} \u79D2"},halfAMinute:"\u534A\u5206\u9418",lessThanXMinutes:{one:"\u5C11\u65BC 1 \u5206\u9418",other:"\u5C11\u65BC {{count}} \u5206\u9418"},xMinutes:{one:"1 \u5206\u9418",other:"{{count}} \u5206\u9418"},xHours:{one:"1 \u5C0F\u6642",other:"{{count}} \u5C0F\u6642"},aboutXHours:{one:"\u5927\u7D04 1 \u5C0F\u6642",other:"\u5927\u7D04 {{count}} \u5C0F\u6642"},xDays:{one:"1 \u5929",other:"{{count}} \u5929"},aboutXWeeks:{one:"\u5927\u7D04 1 \u500B\u661F\u671F",other:"\u5927\u7D04 {{count}} \u500B\u661F\u671F"},xWeeks:{one:"1 \u500B\u661F\u671F",other:"{{count}} \u500B\u661F\u671F"},aboutXMonths:{one:"\u5927\u7D04 1 \u500B\u6708",other:"\u5927\u7D04 {{count}} \u500B\u6708"},xMonths:{one:"1 \u500B\u6708",other:"{{count}} \u500B\u6708"},aboutXYears:{one:"\u5927\u7D04 1 \u5E74",other:"\u5927\u7D04 {{count}} \u5E74"},xYears:{one:"1 \u5E74",other:"{{count}} \u5E74"},overXYears:{one:"\u8D85\u904E 1 \u5E74",other:"\u8D85\u904E {{count}} \u5E74"},almostXYears:{one:"\u5C07\u8FD1 1 \u5E74",other:"\u5C07\u8FD1 {{count}} \u5E74"}},jz=(t,n,e)=>{let i,r=Khe[t];return typeof r=="string"?i=r:n===1?i=r.one:i=r.other.replace("{{count}}",String(n)),e?.addSuffix?e.comparison&&e.comparison>0?i+"\u5167":i+"\u524D":i};var Zhe={full:"y'\u5E74'M'\u6708'd'\u65E5' EEEE",long:"y'\u5E74'M'\u6708'd'\u65E5'",medium:"yyyy-MM-dd",short:"yy-MM-dd"},Xhe={full:"zzzz a h:mm:ss",long:"z a h:mm:ss",medium:"a h:mm:ss",short:"a h:mm"},Jhe={full:"{{date}} {{time}}",long:"{{date}} {{time}}",medium:"{{date}} {{time}}",short:"{{date}} {{time}}"},Hz={date:Qo({formats:Zhe,defaultWidth:"full"}),time:Qo({formats:Xhe,defaultWidth:"full"}),dateTime:Qo({formats:Jhe,defaultWidth:"full"})};var epe={lastWeek:"'\u4E0A\u500B'eeee p",yesterday:"'\u6628\u5929' p",today:"'\u4ECA\u5929' p",tomorrow:"'\u660E\u5929' p",nextWeek:"'\u4E0B\u500B'eeee p",other:"P"},zz=(t,n,e,i)=>epe[t];var tpe={narrow:["\u524D","\u516C\u5143"],abbreviated:["\u524D","\u516C\u5143"],wide:["\u516C\u5143\u524D","\u516C\u5143"]},ipe={narrow:["1","2","3","4"],abbreviated:["\u7B2C\u4E00\u523B","\u7B2C\u4E8C\u523B","\u7B2C\u4E09\u523B","\u7B2C\u56DB\u523B"],wide:["\u7B2C\u4E00\u523B\u9418","\u7B2C\u4E8C\u523B\u9418","\u7B2C\u4E09\u523B\u9418","\u7B2C\u56DB\u523B\u9418"]},npe={narrow:["\u4E00","\u4E8C","\u4E09","\u56DB","\u4E94","\u516D","\u4E03","\u516B","\u4E5D","\u5341","\u5341\u4E00","\u5341\u4E8C"],abbreviated:["1\u6708","2\u6708","3\u6708","4\u6708","5\u6708","6\u6708","7\u6708","8\u6708","9\u6708","10\u6708","11\u6708","12\u6708"],wide:["\u4E00\u6708","\u4E8C\u6708","\u4E09\u6708","\u56DB\u6708","\u4E94\u6708","\u516D\u6708","\u4E03\u6708","\u516B\u6708","\u4E5D\u6708","\u5341\u6708","\u5341\u4E00\u6708","\u5341\u4E8C\u6708"]},rpe={narrow:["\u65E5","\u4E00","\u4E8C","\u4E09","\u56DB","\u4E94","\u516D"],short:["\u65E5","\u4E00","\u4E8C","\u4E09","\u56DB","\u4E94","\u516D"],abbreviated:["\u9031\u65E5","\u9031\u4E00","\u9031\u4E8C","\u9031\u4E09","\u9031\u56DB","\u9031\u4E94","\u9031\u516D"],wide:["\u661F\u671F\u65E5","\u661F\u671F\u4E00","\u661F\u671F\u4E8C","\u661F\u671F\u4E09","\u661F\u671F\u56DB","\u661F\u671F\u4E94","\u661F\u671F\u516D"]},ope={narrow:{am:"\u4E0A",pm:"\u4E0B",midnight:"\u51CC\u6668",noon:"\u5348",morning:"\u65E9",afternoon:"\u4E0B\u5348",evening:"\u665A",night:"\u591C"},abbreviated:{am:"\u4E0A\u5348",pm:"\u4E0B\u5348",midnight:"\u51CC\u6668",noon:"\u4E2D\u5348",morning:"\u65E9\u6668",afternoon:"\u4E2D\u5348",evening:"\u665A\u4E0A",night:"\u591C\u9593"},wide:{am:"\u4E0A\u5348",pm:"\u4E0B\u5348",midnight:"\u51CC\u6668",noon:"\u4E2D\u5348",morning:"\u65E9\u6668",afternoon:"\u4E2D\u5348",evening:"\u665A\u4E0A",night:"\u591C\u9593"}},ape={narrow:{am:"\u4E0A",pm:"\u4E0B",midnight:"\u51CC\u6668",noon:"\u5348",morning:"\u65E9",afternoon:"\u4E0B\u5348",evening:"\u665A",night:"\u591C"},abbreviated:{am:"\u4E0A\u5348",pm:"\u4E0B\u5348",midnight:"\u51CC\u6668",noon:"\u4E2D\u5348",morning:"\u65E9\u6668",afternoon:"\u4E2D\u5348",evening:"\u665A\u4E0A",night:"\u591C\u9593"},wide:{am:"\u4E0A\u5348",pm:"\u4E0B\u5348",midnight:"\u51CC\u6668",noon:"\u4E2D\u5348",morning:"\u65E9\u6668",afternoon:"\u4E2D\u5348",evening:"\u665A\u4E0A",night:"\u591C\u9593"}},spe=(t,n)=>{let e=Number(t);switch(n?.unit){case"date":return e+"\u65E5";case"hour":return e+"\u6642";case"minute":return e+"\u5206";case"second":return e+"\u79D2";default:return"\u7B2C "+e}},Uz={ordinalNumber:spe,era:Bn({values:tpe,defaultWidth:"wide"}),quarter:Bn({values:ipe,defaultWidth:"wide",argumentCallback:t=>t-1}),month:Bn({values:npe,defaultWidth:"wide"}),day:Bn({values:rpe,defaultWidth:"wide"}),dayPeriod:Bn({values:ope,defaultWidth:"wide",formattingValues:ape,defaultFormattingWidth:"wide"})};var lpe=/^(第\s*)?\d+(日|時|分|秒)?/i,cpe=/\d+/i,dpe={narrow:/^(前)/i,abbreviated:/^(前)/i,wide:/^(公元前|公元)/i},upe={any:[/^(前)/i,/^(公元)/i]},mpe={narrow:/^[1234]/i,abbreviated:/^第[一二三四]刻/i,wide:/^第[一二三四]刻鐘/i},hpe={any:[/(1|一)/i,/(2|二)/i,/(3|三)/i,/(4|四)/i]},ppe={narrow:/^(一|二|三|四|五|六|七|八|九|十[二一])/i,abbreviated:/^(一|二|三|四|五|六|七|八|九|十[二一]|\d|1[12])月/i,wide:/^(一|二|三|四|五|六|七|八|九|十[二一])月/i},fpe={narrow:[/^一/i,/^二/i,/^三/i,/^四/i,/^五/i,/^六/i,/^七/i,/^八/i,/^九/i,/^十(?!(一|二))/i,/^十一/i,/^十二/i],any:[/^一|1/i,/^二|2/i,/^三|3/i,/^四|4/i,/^五|5/i,/^六|6/i,/^七|7/i,/^八|8/i,/^九|9/i,/^十(?!(一|二))|10/i,/^十一|11/i,/^十二|12/i]},gpe={narrow:/^[一二三四五六日]/i,short:/^[一二三四五六日]/i,abbreviated:/^週[一二三四五六日]/i,wide:/^星期[一二三四五六日]/i},_pe={any:[/日/i,/一/i,/二/i,/三/i,/四/i,/五/i,/六/i]},bpe={any:/^(上午?|下午?|午夜|[中正]午|早上?|下午|晚上?|凌晨)/i},vpe={any:{am:/^上午?/i,pm:/^下午?/i,midnight:/^午夜/i,noon:/^[中正]午/i,morning:/^早上/i,afternoon:/^下午/i,evening:/^晚上?/i,night:/^凌晨/i}},$z={ordinalNumber:lh({matchPattern:lpe,parsePattern:cpe,valueCallback:t=>parseInt(t,10)}),era:jn({matchPatterns:dpe,defaultMatchWidth:"wide",parsePatterns:upe,defaultParseWidth:"any"}),quarter:jn({matchPatterns:mpe,defaultMatchWidth:"wide",parsePatterns:hpe,defaultParseWidth:"any",valueCallback:t=>t+1}),month:jn({matchPatterns:ppe,defaultMatchWidth:"wide",parsePatterns:fpe,defaultParseWidth:"any"}),day:jn({matchPatterns:gpe,defaultMatchWidth:"wide",parsePatterns:_pe,defaultParseWidth:"any"}),dayPeriod:jn({matchPatterns:bpe,defaultMatchWidth:"any",parsePatterns:vpe,defaultParseWidth:"any"})};var Wz={code:"zh-TW",formatDistance:jz,formatLong:Hz,formatRelative:zz,localize:Uz,match:$z,options:{weekStartsOn:1,firstWeekContainsDate:4}};var CI={navPos:"side",theme:"auto",dir:"ltr",showHeader:!0,headerPos:"fixed",showUserPanel:!0,sidenavOpened:!0,sidenavCollapsed:!1,language:"auto"};var aa=(()=>{let n=class n{get notify(){return this.notify$.asObservable()}constructor(){this.key="ng-matero-settings",this.document=u(ge),this.translate=u(ia),this.store=u(hz),this.mediaMatcher=u(qm),this.dir=u(uz),this.notify$=new tt({}),this.htmlElement=this.document.querySelector("html"),this.storedOptions=this.store.get(this.key),this.options=Object.assign(CI,this.storedOptions),this.languages=["en-US","zh-CN","zh-TW"],this.localeMap={"en-US":tu,"zh-CN":Bz,"zh-TW":Wz},this.translate.addLangs(this.languages)}reset(){this.store.remove(this.key)}setOptions(i){this.options=Object.assign(CI,this.options,i),this.store.set(this.key,this.options),this.notify$.next(this.options)}setDirection(i){i&&this.setOptions({dir:i}),this.dir.value=this.options.dir,this.htmlElement.dir=this.options.dir}getThemeColor(){return this.options.theme==="auto"&&this.mediaMatcher.matchMedia("(prefers-color-scheme)").media!=="not all"?this.mediaMatcher.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light":this.options.theme}setTheme(i){i&&this.setOptions({theme:i}),this.getThemeColor()==="dark"?this.htmlElement.classList.add("theme-dark"):this.htmlElement.classList.remove("theme-dark")}getTranslateLang(){if(this.options.language==="auto"){let i=navigator.language;return this.languages.includes(i)?i:"en-US"}return this.options.language}setLanguage(i){i&&this.setOptions({language:i}),this.translate.use(this.getTranslateLang())}getLocale(){return this.localeMap[this.getTranslateLang()]}};n.\u0275fac=function(r){return new(r||n)},n.\u0275prov=O({token:n,factory:n.\u0275fac,providedIn:"root"});let t=n;return t})();var Gz=(()=>{let n=class n{constructor(){this.http=u(Yr),this.oidcAuth=u(Tt),this.menuService=u(so),this.permissonsService=u(_u),this.rolesService=u(Th),this.oidcAuth.permissionsChange$.subscribe(()=>{console.log("StartupService: Permission change event received, refreshing permissions"),this.setPermissions()})}load(){return new Promise((i,r)=>{this.http.get("data/menu.json").pipe(Be(o=>this.setMenu(o.menu))).subscribe({next:()=>{this.setPermissions(),i()},error:o=>{console.error("Error loading menu:",o),this.setPermissions(),i()}})})}setMenu(i){this.menuService.addNamespace(i,"menu"),this.menuService.set(i)}setPermissions(){let i=this.oidcAuth.getUserRoles();console.log("StartupService: User roles from token:",i);let r=["canAdd","canDelete","canEdit","canRead"];this.rolesService.flushRoles(),i.length>0?(this.permissonsService.loadPermissions(r),console.log("StartupService: Loaded permissions:",r),i.includes("HRAdmin")&&(this.rolesService.addRoles({HRAdmin:r}),console.log("StartupService: Added HRAdmin role with permissions:",r)),i.includes("Manager")&&(this.rolesService.addRoles({Manager:r}),console.log("StartupService: Added Manager role with permissions:",r)),i.includes("Employee")&&(this.rolesService.addRoles({Employee:["canRead"]}),console.log("StartupService: Added Employee role with canRead permission"))):(console.log("StartupService: No roles found - setting Guest permissions"),this.permissonsService.loadPermissions(["canRead"]),this.rolesService.addRoles({Guest:["canRead"]}))}};n.\u0275fac=function(r){return new(r||n)},n.\u0275prov=O({token:n,factory:n.\u0275fac,providedIn:"root"});let t=n;return t})();var qz=(()=>{let n=class n{constructor(){this.document=u(ge),this.selector="globalLoader"}getElement(){return this.document.getElementById(this.selector)}hide(){let i=this.getElement();i&&(i.addEventListener("transitionend",()=>{i.className="global-loader-hidden"}),i.classList.contains("global-loader-hidden")||(i.className+=" global-loader-fade-out"))}};n.\u0275fac=function(r){return new(r||n)},n.\u0275prov=O({token:n,factory:n.\u0275fac,providedIn:"root"});let t=n;return t})();var Yz=(()=>{let n=class n{constructor(){this.translate=u(ia),this.settings=u(aa)}load(){return new Promise(i=>{let r=this.settings.getTranslateLang();this.translate.setFallbackLang(r),this.translate.use(r).subscribe({next:()=>console.log(`Successfully initialized '${r}' language.'`),error:()=>console.error(`Problem with '${r}' language initialization.'`),complete:()=>i()})})}};n.\u0275fac=function(r){return new(r||n)},n.\u0275prov=O({token:n,factory:n.\u0275fac,providedIn:"root"});let t=n;return t})();function Qz(t,n){return n(t)}var wI=new T("BASE_URL");function ype(t){return new RegExp("^http(s)?://","i").test(t)}function Kz(t,n){let e=u(wI,{optional:!0}),i=o=>e&&ype(o),r=o=>[e?.replace(/\/$/g,""),o.replace(/^\.?\//,"")].filter(a=>a).join("/");return i(t.url)===!1?n(t.clone({url:r(t.url)})):n(t)}function Zz(t,n){let e=u(aa);return n(t.clone({headers:t.headers.append("Accept-Language",e.getTranslateLang())}))}function Xz(t,n){let e=u(Rg);return t.url.includes("/api/")?n(t).pipe(Mt(i=>{if(i instanceof nl){let r=i.body;if(r&&"code"in r&&r.code!==0)return r.msg&&e.error(r.msg),Wn(()=>[])}return Q(i)})):n(t)}var h_=(function(t){return t[t.UNAUTHORIZED=401]="UNAUTHORIZED",t[t.FORBIDDEN=403]="FORBIDDEN",t[t.NOT_FOUND=404]="NOT_FOUND",t[t.INTERNAL_SERVER_ERROR=500]="INTERNAL_SERVER_ERROR",t})(h_||{});function Jz(t,n){let e=u(Re),i=u(Rg),r=[h_.FORBIDDEN,h_.NOT_FOUND,h_.INTERNAL_SERVER_ERROR],o=a=>a.error?.message?a.error.message:a.error?.msg?a.error.msg:a.status===0?"Network error - please check your connection":`${a.status} ${a.statusText}`;return n(t).pipe(fi(a=>a.status===0?(console.warn("Network error (possible CORS issue):",a),Wn(()=>a)):(r.includes(a.status)?e.navigateByUrl(`/${a.status}`,{skipLocationChange:!0}):(console.error("ERROR",a),i.error(o(a)),a.status===h_.UNAUTHORIZED&&console.warn("Unauthorized access - authentication required")),Wn(()=>a))))}function e8(t,n){let e=u(mz),i=Date.now(),r;return n(t).pipe(Be({next:o=>r=o instanceof nl?"succeeded":"",error:o=>r="failed"}),Hr(()=>{let o=Date.now()-i,a=`${t.method} "${t.urlWithParams}" ${r} in ${o} ms.`;e.add(a)}))}var t8=[Qz,Kz,Zz,Xz,Jz,e8];var qC=["*"],xpe=["content"],Cpe=[[["mat-drawer"]],[["mat-drawer-content"]],"*"],wpe=["mat-drawer","mat-drawer-content","*"];function Dpe(t,n){if(t&1){let e=Y();h(0,"div",1),S("click",function(){I(e);let r=C();return A(r._onBackdropClicked())}),p()}if(t&2){let e=C();G("mat-drawer-shown",e._isShowingBackdrop())}}function Epe(t,n){t&1&&(h(0,"mat-drawer-content"),oe(1,2),p())}var Mpe=[[["mat-sidenav"]],[["mat-sidenav-content"]],"*"],kpe=["mat-sidenav","mat-sidenav-content","*"];function Spe(t,n){if(t&1){let e=Y();h(0,"div",1),S("click",function(){I(e);let r=C();return A(r._onBackdropClicked())}),p()}if(t&2){let e=C();G("mat-drawer-shown",e._isShowingBackdrop())}}function Tpe(t,n){t&1&&(h(0,"mat-sidenav-content"),oe(1,2),p())}var Ipe=`.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:.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} -`;var Ape=new T("MAT_DRAWER_DEFAULT_AUTOSIZE",{providedIn:"root",factory:Ope}),MI=new T("MAT_DRAWER_CONTAINER");function Ope(){return!1}var WC=(()=>{class t extends Pa{_platform=u(qe);_changeDetectorRef=u(ye);_container=u(EI);constructor(){let e=u(q),i=u(ws),r=u(ae);super(e,i,r)}ngAfterContentInit(){this._container._contentMarginChanges.subscribe(()=>{this._changeDetectorRef.markForCheck()})}_shouldBeHidden(){if(this._platform.isBrowser)return!1;let{start:e,end:i}=this._container;return e!=null&&e.mode!=="over"&&e.opened||i!=null&&i.mode!=="over"&&i.opened}static \u0275fac=function(i){return new(i||t)};static \u0275cmp=E({type:t,selectors:[["mat-drawer-content"]],hostAttrs:[1,"mat-drawer-content"],hostVars:6,hostBindings:function(i,r){i&2&&(Dt("margin-left",r._container._contentMargins.left,"px")("margin-right",r._container._contentMargins.right,"px"),G("mat-drawer-content-hidden",r._shouldBeHidden()))},features:[Ce([{provide:Pa,useExisting:t}]),le],ngContentSelectors:qC,decls:1,vars:0,template:function(i,r){i&1&&(Me(),oe(0))},encapsulation:2,changeDetection:0})}return t})(),DI=(()=>{class t{_elementRef=u(q);_focusTrapFactory=u(Qm);_focusMonitor=u(Yt);_platform=u(qe);_ngZone=u(ae);_renderer=u(je);_interactivityChecker=u(ac);_doc=u(ge);_container=u(MI,{optional:!0});_focusTrap=null;_elementFocusedBeforeDrawerWasOpened=null;_eventCleanups;_isAttached;_anchor;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=Ai(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=Ai(e)),this._autoFocus=e}_autoFocus;get opened(){return this._opened()}set opened(e){this.toggle(Ai(e))}_opened=he(!1);_openedVia;_animationStarted=new z;_animationEnd=new z;openedChange=new U(!0);_openedStream=this.openedChange.pipe(ce(e=>e),se(()=>{}));openedStart=this._animationStarted.pipe(ce(()=>this.opened),Gu(void 0));_closedStream=this.openedChange.pipe(ce(e=>!e),se(()=>{}));closedStart=this._animationStarted.pipe(ce(()=>!this.opened),Gu(void 0));_destroyed=new z;onPositionChanged=new U;_content;_modeChanged=new z;_injector=u(de);_changeDetectorRef=u(ye);constructor(){this.openedChange.pipe(Te(this._destroyed)).subscribe(e=>{e?(this._elementFocusedBeforeDrawerWasOpened=this._doc.activeElement,this._takeFocus()):this._isFocusWithinDrawer()&&this._restoreFocus(this._openedVia||"program")}),this._ngZone.runOutsideAngular(()=>{let e=this._elementRef.nativeElement;zs(e,"keydown").pipe(ce(i=>i.keyCode===27&&!this.disableClose&&!Ft(i)),Te(this._destroyed)).subscribe(i=>this._ngZone.run(()=>{this.close(),i.stopPropagation(),i.preventDefault()})),this._eventCleanups=[this._renderer.listen(e,"transitionrun",this._handleTransitionEvent),this._renderer.listen(e,"transitionend",this._handleTransitionEvent),this._renderer.listen(e,"transitioncancel",this._handleTransitionEvent)]}),this._animationEnd.subscribe(()=>{this.openedChange.emit(this.opened)})}_forceFocus(e,i){this._interactivityChecker.isFocusable(e)||(e.tabIndex=-1,this._ngZone.runOutsideAngular(()=>{let r=()=>{o(),a(),e.removeAttribute("tabindex")},o=this._renderer.listen(e,"blur",r),a=this._renderer.listen(e,"mousedown",r)})),e.focus(i)}_focusByCssSelector(e,i){let r=this._elementRef.nativeElement.querySelector(e);r&&this._forceFocus(r,i)}_takeFocus(){if(!this._focusTrap)return;let e=this._elementRef.nativeElement;switch(this.autoFocus){case!1:case"dialog":return;case!0:case"first-tabbable":pt(()=>{!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,i){e&&i&&(this._openedVia=i);let r=this._setOpen(e,!e&&this._isFocusWithinDrawer(),this._openedVia||"program");return e||(this._openedVia=null),r}_setOpen(e,i,r){return e===this.opened?Promise.resolve(e?"open":"close"):(this._opened.set(e),this._container?._transitionsEnabled?this._setIsAnimating(!0):setTimeout(()=>{this._animationStarted.next(),this._animationEnd.next()}),this._elementRef.nativeElement.classList.toggle("mat-drawer-opened",e),!e&&i&&this._restoreFocus(r),this._changeDetectorRef.markForCheck(),this._updateFocusTrapState(),new Promise(o=>{this.openedChange.pipe(lt(1)).subscribe(a=>o(a?"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._container?.hasBackdrop&&this.opened)}_updatePositionInParent(e){if(!this._platform.isBrowser)return;let i=this._elementRef.nativeElement,r=i.parentNode;e==="end"?(this._anchor||(this._anchor=this._doc.createComment("mat-drawer-anchor"),r.insertBefore(this._anchor,i)),r.appendChild(i)):this._anchor&&this._anchor.parentNode.insertBefore(i,this._anchor)}_handleTransitionEvent=e=>{let i=this._elementRef.nativeElement;e.target===i&&this._ngZone.run(()=>{e.type==="transitionrun"?this._animationStarted.next(e):(e.type==="transitionend"&&this._setIsAnimating(!1),this._animationEnd.next(e))})};static \u0275fac=function(i){return new(i||t)};static \u0275cmp=E({type:t,selectors:[["mat-drawer"]],viewQuery:function(i,r){if(i&1&&ie(xpe,5),i&2){let o;B(o=j())&&(r._content=o.first)}},hostAttrs:[1,"mat-drawer"],hostVars:12,hostBindings:function(i,r){i&2&&(X("align",null)("tabIndex",r.mode!=="side"?"-1":null),Dt("visibility",!r._container&&!r.opened?"hidden":null),G("mat-drawer-end",r.position==="end")("mat-drawer-over",r.mode==="over")("mat-drawer-push",r.mode==="push")("mat-drawer-side",r.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:qC,decls:3,vars:0,consts:[["content",""],["cdkScrollable","",1,"mat-drawer-inner-container"]],template:function(i,r){i&1&&(Me(),h(0,"div",1,0),oe(2),p())},dependencies:[Pa],encapsulation:2,changeDetection:0})}return t})(),EI=(()=>{class t{_dir=u(Vt,{optional:!0});_element=u(q);_ngZone=u(ae);_changeDetectorRef=u(ye);_animationDisabled=Ye();_transitionsEnabled=!1;_allDrawers;_drawers=new pr;_content;_userContent;get start(){return this._start}get end(){return this._end}get autosize(){return this._autosize}set autosize(e){this._autosize=Ai(e)}_autosize=u(Ape);get hasBackdrop(){return this._drawerHasBackdrop(this._start)||this._drawerHasBackdrop(this._end)}set hasBackdrop(e){this._backdropOverride=e==null?null:Ai(e)}_backdropOverride;backdropClick=new U;_start;_end;_left;_right;_destroyed=new z;_doCheckSubject=new z;_contentMargins={left:null,right:null};_contentMarginChanges=new z;get scrollable(){return this._userContent||this._content}_injector=u(de);constructor(){let e=u(qe),i=u(Xn);this._dir?.change.pipe(Te(this._destroyed)).subscribe(()=>{this._validateDrawers(),this.updateContentMargins()}),i.change().pipe(Te(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(He(this._allDrawers),Te(this._destroyed)).subscribe(e=>{this._drawers.reset(e.filter(i=>!i._container||i._container===this)),this._drawers.notifyOnChanges()}),this._drawers.changes.pipe(He(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(Rt(10),Te(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,i=0;if(this._left&&this._left.opened){if(this._left.mode=="side")e+=this._left._getWidth();else if(this._left.mode=="push"){let r=this._left._getWidth();e+=r,i-=r}}if(this._right&&this._right.opened){if(this._right.mode=="side")i+=this._right._getWidth();else if(this._right.mode=="push"){let r=this._right._getWidth();i+=r,e-=r}}e=e||null,i=i||null,(e!==this._contentMargins.left||i!==this._contentMargins.right)&&(this._contentMargins={left:e,right:i},this._ngZone.run(()=>this._contentMarginChanges.next(this._contentMargins)))}ngDoCheck(){this._autosize&&this._isPushed()&&this._ngZone.runOutsideAngular(()=>this._doCheckSubject.next())}_watchDrawerToggle(e){e._animationStarted.pipe(Te(this._drawers.changes)).subscribe(()=>{this.updateContentMargins(),this._changeDetectorRef.markForCheck()}),e.mode!=="side"&&e.openedChange.pipe(Te(this._drawers.changes)).subscribe(()=>this._setContainerClass(e.opened))}_watchDrawerPosition(e){e.onPositionChanged.pipe(Te(this._drawers.changes)).subscribe(()=>{pt({read:()=>this._validateDrawers()},{injector:this._injector})})}_watchDrawerMode(e){e._modeChanged.pipe(Te(Je(this._drawers.changes,this._destroyed))).subscribe(()=>{this.updateContentMargins(),this._changeDetectorRef.markForCheck()})}_setContainerClass(e){let i=this._element.nativeElement.classList,r="mat-drawer-container-has-open";e?i.add(r):i.remove(r)}_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(i){return new(i||t)};static \u0275cmp=E({type:t,selectors:[["mat-drawer-container"]],contentQueries:function(i,r,o){if(i&1&&(xe(o,WC,5),xe(o,DI,5)),i&2){let a;B(a=j())&&(r._content=a.first),B(a=j())&&(r._allDrawers=a)}},viewQuery:function(i,r){if(i&1&&ie(WC,5),i&2){let o;B(o=j())&&(r._userContent=o.first)}},hostAttrs:[1,"mat-drawer-container"],hostVars:2,hostBindings:function(i,r){i&2&&G("mat-drawer-container-explicit-backdrop",r._backdropOverride)},inputs:{autosize:"autosize",hasBackdrop:"hasBackdrop"},outputs:{backdropClick:"backdropClick"},exportAs:["matDrawerContainer"],features:[Ce([{provide:MI,useExisting:t}])],ngContentSelectors:wpe,decls:4,vars:2,consts:[[1,"mat-drawer-backdrop",3,"mat-drawer-shown"],[1,"mat-drawer-backdrop",3,"click"]],template:function(i,r){i&1&&(Me(Cpe),N(0,Dpe,1,2,"div",0),oe(1),oe(2,1),N(3,Epe,2,0,"mat-drawer-content")),i&2&&(L(r.hasBackdrop?0:-1),g(3),L(r._content?-1:3))},dependencies:[WC],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:.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 t})(),GC=(()=>{class t extends WC{static \u0275fac=(()=>{let e;return function(r){return(e||(e=fe(t)))(r||t)}})();static \u0275cmp=E({type:t,selectors:[["mat-sidenav-content"]],hostAttrs:[1,"mat-drawer-content","mat-sidenav-content"],features:[Ce([{provide:Pa,useExisting:t}]),le],ngContentSelectors:qC,decls:1,vars:0,template:function(i,r){i&1&&(Me(),oe(0))},encapsulation:2,changeDetection:0})}return t})(),kI=(()=>{class t extends DI{get fixedInViewport(){return this._fixedInViewport}set fixedInViewport(e){this._fixedInViewport=Ai(e)}_fixedInViewport=!1;get fixedTopGap(){return this._fixedTopGap}set fixedTopGap(e){this._fixedTopGap=Ln(e)}_fixedTopGap=0;get fixedBottomGap(){return this._fixedBottomGap}set fixedBottomGap(e){this._fixedBottomGap=Ln(e)}_fixedBottomGap=0;static \u0275fac=(()=>{let e;return function(r){return(e||(e=fe(t)))(r||t)}})();static \u0275cmp=E({type:t,selectors:[["mat-sidenav"]],hostAttrs:[1,"mat-drawer","mat-sidenav"],hostVars:16,hostBindings:function(i,r){i&2&&(X("tabIndex",r.mode!=="side"?"-1":null)("align",null),Dt("top",r.fixedInViewport?r.fixedTopGap:null,"px")("bottom",r.fixedInViewport?r.fixedBottomGap:null,"px"),G("mat-drawer-end",r.position==="end")("mat-drawer-over",r.mode==="over")("mat-drawer-push",r.mode==="push")("mat-drawer-side",r.mode==="side")("mat-sidenav-fixed",r.fixedInViewport))},inputs:{fixedInViewport:"fixedInViewport",fixedTopGap:"fixedTopGap",fixedBottomGap:"fixedBottomGap"},exportAs:["matSidenav"],features:[Ce([{provide:DI,useExisting:t}]),le],ngContentSelectors:qC,decls:3,vars:0,consts:[["content",""],["cdkScrollable","",1,"mat-drawer-inner-container"]],template:function(i,r){i&1&&(Me(),h(0,"div",1,0),oe(2),p())},dependencies:[Pa],encapsulation:2,changeDetection:0})}return t})(),i8=(()=>{class t extends EI{_allDrawers=void 0;_content=void 0;static \u0275fac=(()=>{let e;return function(r){return(e||(e=fe(t)))(r||t)}})();static \u0275cmp=E({type:t,selectors:[["mat-sidenav-container"]],contentQueries:function(i,r,o){if(i&1&&(xe(o,GC,5),xe(o,kI,5)),i&2){let a;B(a=j())&&(r._content=a.first),B(a=j())&&(r._allDrawers=a)}},hostAttrs:[1,"mat-drawer-container","mat-sidenav-container"],hostVars:2,hostBindings:function(i,r){i&2&&G("mat-drawer-container-explicit-backdrop",r._backdropOverride)},exportAs:["matSidenavContainer"],features:[Ce([{provide:MI,useExisting:t},{provide:EI,useExisting:t}]),le],ngContentSelectors:kpe,decls:4,vars:2,consts:[[1,"mat-drawer-backdrop",3,"mat-drawer-shown"],[1,"mat-drawer-backdrop",3,"click"]],template:function(i,r){i&1&&(Me(Mpe),N(0,Spe,1,2,"div",0),oe(1),oe(2,1),N(3,Tpe,2,0,"mat-sidenav-content")),i&2&&(L(r.hasBackdrop?0:-1),g(3),L(r._content?-1:3))},dependencies:[GC],styles:[Ipe],encapsulation:2,changeDetection:0})}return t})(),n8=(()=>{class t{static \u0275fac=function(i){return new(i||t)};static \u0275mod=ee({type:t});static \u0275inj=J({imports:[we,vr,vr,we]})}return t})();function Ppe(t,n){t&1&&ai(0,"div",3)}function Fpe(t,n){t&1&&(ft(0,"div",4),ai(1,"div",5),vt())}var Npe={min:8,max:100,speed:200,debounceTime:0,trickleSpeed:300,fadeOutSpeed:50,relative:!1,flat:!1,spinner:!1,direction:"ltr+",spinnerPosition:"right",trickleFunc:t=>t>=0&&t<20?10:t>=20&&t<50?4:t>=50&&t<80?2:t>=80&&t<99?.5:0},r8=new T("NG_PROGRESS_OPTIONS",{providedIn:"root",factory:()=>Npe});var YC=(function(t){return t.START="START",t.COMPLETE="COMPLETE",t})(YC||{});function Lpe(t){let n=ct(t)||0;return n<100&&n>=0?n:0}function Vpe(t){let n=ct(t)||100;return n>0&&n<=100?n:100}var QC=(()=>{let n=class n{constructor(){this.defaultOptions=u(r8),this.min=ne(this.defaultOptions.min,{transform:Lpe}),this.max=ne(this.defaultOptions.max,{transform:Vpe}),this.speed=ne(this.defaultOptions.speed,{transform:ct}),this.trickleSpeed=ne(this.defaultOptions.trickleSpeed,{transform:ct}),this.fadeOutSpeed=ne(this.defaultOptions.fadeOutSpeed,{transform:ct}),this.debounceTime=ne(this.defaultOptions.debounceTime,{transform:ct}),this.trickleFunc=ne(this.defaultOptions.trickleFunc),this.config=Zt(()=>({max:this.max(),min:this.min(),speed:this.speed(),trickleSpeed:this.trickleSpeed(),fadeOutSpeed:this.fadeOutSpeed(),trickleFunc:this.trickleFunc(),debounceTime:this.debounceTime()})),this._progress=he(0),this._active=he(!1),this.active=Zt(()=>this._active()),this.progress=Zt(()=>this._progress()),this.started=bi(),this.completed=bi(),this._trigger=new tt(null);let i;Ar(r=>{let o=this.config();Ti(()=>{i=this._trigger.pipe(ce(a=>!!a),$e(a=>a===YC.START?qa(o.debounceTime).pipe($e(()=>this.onTrickling(o))):this.onComplete(o))).subscribe(),r(()=>i?.unsubscribe())})})}start(){this.started.emit(),this._trigger.next(YC.START),this._active.set(!0)}complete(){this._trigger.next(YC.COMPLETE)}inc(i){let r=this.progress();this.active()?(typeof i!="number"&&(i=this.config().trickleFunc(r)),this.set(r+i)):this.start()}set(i){this._active.set(!0),this._progress.set(this.clamp(i))}clamp(i){return Math.max(this.config().min,Math.min(this.config().max,i))}onTrickling(i){return this.active()||this.set(i.min),qa(0,i.trickleSpeed).pipe(Be(()=>this.inc()))}onComplete(i){return this.active()?(this.completed.emit(),Q({}).pipe(Be(()=>this._progress.set(100)),pa(i.speed+140),Be(()=>this._active.set(!1)),pa(i.fadeOutSpeed),Hr(()=>this._progress.set(0)),Te(fz(this.started)))):Fi}};n.\u0275fac=function(r){return new(r||n)},n.\u0275dir=F({type:n,selectors:[["","ngProgressRef",""]],inputs:{min:[1,"min"],max:[1,"max"],speed:[1,"speed"],trickleSpeed:[1,"trickleSpeed"],fadeOutSpeed:[1,"fadeOutSpeed"],debounceTime:[1,"debounceTime"],trickleFunc:[1,"trickleFunc"]},outputs:{started:"started",completed:"completed"},exportAs:["ngProgressRef"]});let t=n;return t})(),o8=(()=>{let n=class n{constructor(){this.config=u(r8),this.progressRef=u(QC,{host:!0,self:!0}),this.flat=ne(this.config.flat,{transform:V}),this.spinner=ne(this.config.spinner,{transform:V}),this.relative=ne(this.config.relative,{transform:V}),this.spinnerPosition=ne(this.config.spinnerPosition),this.direction=ne(this.config.direction),this.progressTransform=Zt(()=>`translate3d(${this.progressRef.progress()}%,0,0)`)}};n.\u0275fac=function(r){return new(r||n)},n.\u0275cmp=E({type:n,selectors:[["ng-progress"]],hostAttrs:["role","progressbar"],hostVars:12,hostBindings:function(r,o){r&2&&(X("spinnerPosition",o.spinnerPosition())("direction",o.direction()),Dt("--_ng-progress-speed",o.progressRef.speed()+"ms")("--_ng-progress-fade-out-speed",o.progressRef.fadeOutSpeed()+"ms"),G("ng-progress-bar",!0)("ng-progress-bar-active",o.progressRef.active())("ng-progress-bar-relative",o.relative()))},inputs:{flat:[1,"flat"],spinner:[1,"spinner"],relative:[1,"relative"],spinnerPosition:[1,"spinnerPosition"],direction:[1,"direction"]},exportAs:["ngProgress"],features:[ym([{directive:QC,inputs:["min","min","max","max","speed","speed","trickleSpeed","trickleSpeed","fadeOutSpeed","fadeOutSpeed","debounceTime","debounceTime"],outputs:["started","started","completed","completed"]}])],decls:5,vars:4,consts:[[1,"ng-progress-bar-wrapper"],[1,"ng-bar-placeholder"],[1,"ng-bar"],[1,"ng-meteor"],[1,"ng-spinner"],[1,"ng-spinner-icon"]],template:function(r,o){r&1&&(ft(0,"div",0)(1,"div",1)(2,"div",2),N(3,Ppe,1,0,"div",3),vt()(),N(4,Fpe,2,0,"div",4),vt()),r&2&&(g(2),Dt("transform",o.progressTransform()),g(),L(o.flat()?-1:3),g(),L(o.spinner()?4:-1))},styles:['[_nghost-%COMP%]{--_ng-progress-thickness: var(--ng-progress-thickness, 2);--_ng-progress-thickness-px: calc(var(--_ng-progress-thickness) * 1px);--_ng-progress-thickness-add-one: calc(var(--_ng-progress-thickness) + 1);--_ng-progress-meteor-position-px: calc(var(--_ng-progress-thickness-add-one) * -1px);--_ng-progress-color: var(--ng-progress-color, #1B95E0);--_ng-progress-holder-color: var(--ng-progress-holder-color, transparent);--_ng-progress-ease: var(--ng-progress-ease, linear);--_ng-progress-spinner-thickness: var(--ng-progress-spinner-thickness, 2);--_ng-progress-spinner-thickness-px: calc(var(--_ng-progress-spinner-thickness) * 1px);--_ng-progress-spinner-spacing: var(--ng-progress-spinner-spacing, 15);--_ng-progress-spinner-spacing-px: calc(var(--_ng-progress-spinner-spacing) * 1px);--_ng-progress-spinner-size: var(--ng-progress-spinner-size, 18);--_ng-progress-spinner-size-px: calc(var(--_ng-progress-spinner-size) * 1px);--_ng-progress-spinner-speed: var(--ng-progress-spinner-speed, .25s);z-index:999999;pointer-events:none}.ng-progress-bar-active[_nghost-%COMP%] .ng-progress-bar-wrapper[_ngcontent-%COMP%]{filter:alpha(opacity=100);opacity:1;transition:none}.ng-progress-bar-active[_nghost-%COMP%] .ng-bar[_ngcontent-%COMP%]{transition:all var(--_ng-progress-speed) var(--_ng-progress-ease)}.ng-progress-bar-relative[_nghost-%COMP%] .ng-progress-bar-wrapper[_ngcontent-%COMP%]{position:relative}[direction="ltr+"][_nghost-%COMP%] .ng-meteor[_ngcontent-%COMP%], [direction=ltr-][_nghost-%COMP%] .ng-meteor[_ngcontent-%COMP%]{rotate:calc(var(--_ng-progress-thickness-add-one) * 1deg)}[direction="ltr+"][_nghost-%COMP%] .ng-bar[_ngcontent-%COMP%], [direction="rtl+"][_nghost-%COMP%] .ng-bar[_ngcontent-%COMP%]{margin-left:-100%}[direction="ltr+"][_nghost-%COMP%] .ng-meteor[_ngcontent-%COMP%], [direction="rtl+"][_nghost-%COMP%] .ng-meteor[_ngcontent-%COMP%]{right:0}[direction="ltr+"][_nghost-%COMP%] .ng-meteor[_ngcontent-%COMP%], [direction=rtl-][_nghost-%COMP%] .ng-meteor[_ngcontent-%COMP%]{top:var(--_ng-progress-meteor-position-px)}[direction=ltr-][_nghost-%COMP%] .ng-meteor[_ngcontent-%COMP%], [direction="rtl+"][_nghost-%COMP%] .ng-meteor[_ngcontent-%COMP%]{bottom:var(--_ng-progress-meteor-position-px)}[direction=ltr-][_nghost-%COMP%] .ng-bar-placeholder[_ngcontent-%COMP%], [direction="rtl+"][_nghost-%COMP%] .ng-bar-placeholder[_ngcontent-%COMP%]{transform:rotate(180deg)}[direction=ltr-][_nghost-%COMP%] .ng-spinner-icon[_ngcontent-%COMP%], [direction="rtl+"][_nghost-%COMP%] .ng-spinner-icon[_ngcontent-%COMP%]{animation-direction:reverse}[direction="rtl+"][_nghost-%COMP%] .ng-meteor[_ngcontent-%COMP%], [direction=rtl-][_nghost-%COMP%] .ng-meteor[_ngcontent-%COMP%]{rotate:calc(var(--_ng-progress-thickness-add-one) * -1deg)}[_nghost-%COMP%] .ng-spinner[_ngcontent-%COMP%]{top:var(--_ng-progress-spinner-spacing-px)}[spinnerPosition=left][_nghost-%COMP%] .ng-spinner[_ngcontent-%COMP%]{left:var(--_ng-progress-spinner-spacing-px)}[spinnerPosition=right][_nghost-%COMP%] .ng-spinner[_ngcontent-%COMP%]{right:var(--_ng-progress-spinner-spacing-px)}.ng-progress-bar-wrapper[_ngcontent-%COMP%]{position:fixed;z-index:999999;top:0;left:0;width:100%;transform:scale(1);filter:alpha(opacity=0);opacity:0;transition:opacity var(--_ng-progress-fade-out-speed) linear}.ng-bar-placeholder[_ngcontent-%COMP%]{position:absolute;height:var(--_ng-progress-thickness-px);width:100%}.ng-bar[_ngcontent-%COMP%]{width:100%;height:100%;transform:translate(-100%,0,0);background:var(--_ng-progress-color)}.ng-meteor[_ngcontent-%COMP%]{display:block;position:absolute;width:100px;height:100%;opacity:1;box-shadow:0 0 10px var(--_ng-progress-color),0 0 5px var(--_ng-progress-color)}.ng-spinner[_ngcontent-%COMP%]{position:absolute;display:block;z-index:1031;top:10px}.ng-spinner-icon[_ngcontent-%COMP%]{box-sizing:border-box;animation:_ngcontent-%COMP%_spinner-animation var(--_ng-progress-spinner-speed) linear infinite;border-style:solid;border-color:transparent;border-radius:50%;border-top-color:var(--_ng-progress-color);border-left-color:var(--_ng-progress-color);width:var(--_ng-progress-spinner-size-px);height:var(--_ng-progress-spinner-size-px);border-width:var(--_ng-progress-spinner-thickness-px)}@keyframes _ngcontent-%COMP%_spinner-animation{0%{transform:rotate(0)}to{transform:rotate(360deg)}}'],changeDetection:0});let t=n;return t})();var Bpe={minDuration:0,startEvents:[ps],completeEvents:[vi,qo,tc]},jpe=new T("NG_PROGRESS_ROUTER_OPTIONS",{providedIn:"root",factory:()=>Bpe});function a8(t,n){return n.some(e=>t instanceof e)}var Hpe=(()=>{let n=class n{constructor(){this.router=u(Re),this.config=u(jpe),this.progressRef=u(QC,{host:!0,self:!0});let i;this.router.events.pipe(ce(r=>a8(r,[...this.config.startEvents,...this.config.completeEvents])),se(r=>a8(r,this.config.startEvents)),Be(r=>{clearTimeout(i),r?this.progressRef.start():i=setTimeout(()=>{this.progressRef.complete()},this.config.minDuration)}),ku()).subscribe()}};n.\u0275fac=function(r){return new(r||n)},n.\u0275dir=F({type:n});let t=n;return t})(),s8=(()=>{let n=class n extends Hpe{};n.\u0275fac=(()=>{let i;return function(o){return(i||(i=fe(n)))(o||n)}})(),n.\u0275dir=F({type:n,selectors:[["ng-progress","ngProgressRouter",""]],features:[le]});let t=n;return t})();var zpe=["*",[["mat-toolbar-row"]]],Upe=["*","mat-toolbar-row"],$pe=(()=>{class t{static \u0275fac=function(i){return new(i||t)};static \u0275dir=F({type:t,selectors:[["mat-toolbar-row"]],hostAttrs:[1,"mat-toolbar-row"],exportAs:["matToolbarRow"]})}return t})(),KC=(()=>{class t{_elementRef=u(q);_platform=u(qe);_document=u(ge);color;_toolbarRows;constructor(){}ngAfterViewInit(){this._platform.isBrowser&&(this._checkToolbarMixedModes(),this._toolbarRows.changes.subscribe(()=>this._checkToolbarMixedModes()))}_checkToolbarMixedModes(){this._toolbarRows.length}static \u0275fac=function(i){return new(i||t)};static \u0275cmp=E({type:t,selectors:[["mat-toolbar"]],contentQueries:function(i,r,o){if(i&1&&xe(o,$pe,5),i&2){let a;B(a=j())&&(r._toolbarRows=a)}},hostAttrs:[1,"mat-toolbar"],hostVars:6,hostBindings:function(i,r){i&2&&(it(r.color?"mat-"+r.color:""),G("mat-toolbar-multiple-rows",r._toolbarRows.length>0)("mat-toolbar-single-row",r._toolbarRows.length===0))},inputs:{color:"color"},exportAs:["matToolbar"],ngContentSelectors:Upe,decls:2,vars:0,template:function(i,r){i&1&&(Me(zpe),oe(0),oe(1,1))},styles:[`.mat-toolbar{background:var(--mat-toolbar-container-background-color, var(--mat-sys-surface));color:var(--mat-toolbar-container-text-color, var(--mat-sys-on-surface))}.mat-toolbar,.mat-toolbar h1,.mat-toolbar h2,.mat-toolbar h3,.mat-toolbar h4,.mat-toolbar h5,.mat-toolbar h6{font-family:var(--mat-toolbar-title-text-font, var(--mat-sys-title-large-font));font-size:var(--mat-toolbar-title-text-size, var(--mat-sys-title-large-size));line-height:var(--mat-toolbar-title-text-line-height, var(--mat-sys-title-large-line-height));font-weight:var(--mat-toolbar-title-text-weight, var(--mat-sys-title-large-weight));letter-spacing:var(--mat-toolbar-title-text-tracking, var(--mat-sys-title-large-tracking));margin:0}@media(forced-colors: active){.mat-toolbar{outline:solid 1px}}.mat-toolbar .mat-form-field-underline,.mat-toolbar .mat-form-field-ripple,.mat-toolbar .mat-focused .mat-form-field-ripple{background-color:currentColor}.mat-toolbar .mat-form-field-label,.mat-toolbar .mat-focused .mat-form-field-label,.mat-toolbar .mat-select-value,.mat-toolbar .mat-select-arrow,.mat-toolbar .mat-form-field.mat-focused .mat-select-arrow{color:inherit}.mat-toolbar .mat-input-element{caret-color:currentColor}.mat-toolbar .mat-mdc-button-base.mat-mdc-button-base.mat-unthemed{--mat-button-text-label-text-color: var(--mat-toolbar-container-text-color, var(--mat-sys-on-surface));--mat-button-outlined-label-text-color: var(--mat-toolbar-container-text-color, var(--mat-sys-on-surface))}.mat-toolbar-row,.mat-toolbar-single-row{display:flex;box-sizing:border-box;padding:0 16px;width:100%;flex-direction:row;align-items:center;white-space:nowrap;height:var(--mat-toolbar-standard-height, 64px)}@media(max-width: 599px){.mat-toolbar-row,.mat-toolbar-single-row{height:var(--mat-toolbar-mobile-height, 56px)}}.mat-toolbar-multiple-rows{display:flex;box-sizing:border-box;flex-direction:column;width:100%;min-height:var(--mat-toolbar-standard-height, 64px)}@media(max-width: 599px){.mat-toolbar-multiple-rows{min-height:var(--mat-toolbar-mobile-height, 56px)}} -`],encapsulation:2,changeDetection:0})}return t})();var ZC=(()=>{class t{static \u0275fac=function(i){return new(i||t)};static \u0275mod=ee({type:t});static \u0275inj=J({imports:[we,we]})}return t})();var c8=[["requestFullscreen","exitFullscreen","fullscreenElement","fullscreenEnabled","fullscreenchange","fullscreenerror"],["webkitRequestFullscreen","webkitExitFullscreen","webkitFullscreenElement","webkitFullscreenEnabled","webkitfullscreenchange","webkitfullscreenerror"],["webkitRequestFullScreen","webkitCancelFullScreen","webkitCurrentFullScreenElement","webkitCancelFullScreen","webkitfullscreenchange","webkitfullscreenerror"],["mozRequestFullScreen","mozCancelFullScreen","mozFullScreenElement","mozFullScreenEnabled","mozfullscreenchange","mozfullscreenerror"],["msRequestFullscreen","msExitFullscreen","msFullscreenElement","msFullscreenEnabled","MSFullscreenChange","MSFullscreenError"]],wl=(()=>{if(typeof document>"u")return!1;let t=c8[0],n={};for(let e of c8)if(e?.[1]in document){for(let[r,o]of e.entries())n[t[r]]=o;return n}return!1})(),d8={change:wl.fullscreenchange,error:wl.fullscreenerror},So={request(t=document.documentElement,n){return new Promise((e,i)=>{let r=()=>{So.off("change",r),e()};So.on("change",r);let o=t[wl.requestFullscreen](n);o instanceof Promise&&o.then(r).catch(i)})},exit(){return new Promise((t,n)=>{if(!So.isFullscreen){t();return}let e=()=>{So.off("change",e),t()};So.on("change",e);let i=document[wl.exitFullscreen]();i instanceof Promise&&i.then(e).catch(n)})},toggle(t,n){return So.isFullscreen?So.exit():So.request(t,n)},onchange(t){So.on("change",t)},onerror(t){So.on("error",t)},on(t,n){let e=d8[t];e&&document.addEventListener(e,n,!1)},off(t,n){let e=d8[t];e&&document.removeEventListener(e,n,!1)},raw:wl};Object.defineProperties(So,{isFullscreen:{get:()=>!!document[wl.fullscreenElement]},element:{enumerable:!0,get:()=>document[wl.fullscreenElement]??void 0},isEnabled:{enumerable:!0,get:()=>!!document[wl.fullscreenEnabled]}});wl||(So={isEnabled:!1});var SI=So;function Wpe(t,n){t&1&&(ft(0,"span",2),_(1,"Talent Management"),vt())}var XC=(()=>{let n=class n{constructor(){this.showName=ne(!0)}};n.\u0275fac=function(r){return new(r||n)},n.\u0275cmp=E({type:n,selectors:[["app-branding"]],inputs:{showName:[1,"showName"]},decls:3,vars:1,consts:[["href","/",1,"branding"],["src","images/matero.png","alt","logo",1,"branding-logo"],[1,"branding-name"]],template:function(r,o){r&1&&(ft(0,"a",0),ai(1,"img",1),N(2,Wpe,2,0,"span",2),vt()),r&2&&(g(2),L(o.showName()?2:-1))},styles:[".branding[_ngcontent-%COMP%]{display:flex;align-items:center;margin:0 .5rem;text-decoration:none;white-space:nowrap;color:inherit;border-radius:50rem}.branding-logo[_ngcontent-%COMP%]{width:2rem;height:2rem;border-radius:50rem}.branding-name[_ngcontent-%COMP%]{margin:0 .5rem;font-size:1rem;font-weight:500}"]});let t=n;return t})();var u8=(()=>{let n=class n{};n.\u0275fac=function(r){return new(r||n)},n.\u0275cmp=E({type:n,selectors:[["app-github-button"]],decls:3,vars:0,consts:[["matIconButton","","href","https://github.com/ng-matero/ng-matero","target","_blank"],["viewBox","0 0 16 16"],["fill","currentColor","d",`M7.999,0.431c-4.285,0-7.76,3.474-7.76,7.761 c0,3.428,2.223,6.337,5.307,7.363c0.388, +`):t}function lse(t,n){let{element:e,datasetIndex:i,index:r}=n,o=t.getDatasetMeta(i).controller,{label:a,value:s}=o.getLabelAndValue(r);return{chart:t,label:a,parsed:o.getParsed(r),raw:t.data.datasets[i].data[r],formattedValue:s,dataset:o.getDataset(),dataIndex:r,datasetIndex:i,element:e}}function P4(t,n){let e=t.chart.ctx,{body:i,footer:r,title:o}=t,{boxWidth:a,boxHeight:s}=n,l=pn(n.bodyFont),c=pn(n.titleFont),d=pn(n.footerFont),m=o.length,f=r.length,b=i.length,v=sr(n.padding),w=v.height,x=0,D=i.reduce((Z,K)=>Z+K.before.length+K.lines.length+K.after.length,0);if(D+=t.beforeBody.length+t.afterBody.length,m&&(w+=m*c.lineHeight+(m-1)*n.titleSpacing+n.titleMarginBottom),D){let Z=n.displayColors?Math.max(s,l.lineHeight):l.lineHeight;w+=b*Z+(D-b)*l.lineHeight+(D-1)*n.bodySpacing}f&&(w+=n.footerMarginTop+f*d.lineHeight+(f-1)*n.footerSpacing);let P=0,W=function(Z){x=Math.max(x,e.measureText(Z).width+P)};return e.save(),e.font=c.string,ii(t.title,W),e.font=l.string,ii(t.beforeBody.concat(t.afterBody),W),P=n.displayColors?a+2+n.boxPadding:0,ii(i,Z=>{ii(Z.before,W),ii(Z.lines,W),ii(Z.after,W)}),P=0,e.font=d.string,ii(t.footer,W),e.restore(),x+=v.width,{width:x,height:w}}function cse(t,n){let{y:e,height:i}=n;return et.height-i/2?"bottom":"center"}function dse(t,n,e,i){let{x:r,width:o}=i,a=e.caretSize+e.caretPadding;if(t==="left"&&r+o+a>n.width||t==="right"&&r-o-a<0)return!0}function use(t,n,e,i){let{x:r,width:o}=e,{width:a,chartArea:{left:s,right:l}}=t,c="center";return i==="center"?c=r<=(s+l)/2?"left":"right":r<=o/2?c="left":r>=a-o/2&&(c="right"),dse(c,t,n,e)&&(c="center"),c}function F4(t,n,e){let i=e.yAlign||n.yAlign||cse(t,e);return{xAlign:e.xAlign||n.xAlign||use(t,n,e,i),yAlign:i}}function mse(t,n){let{x:e,width:i}=t;return n==="right"?e-=i:n==="center"&&(e-=i/2),e}function hse(t,n,e){let{y:i,height:r}=t;return n==="top"?i+=e:n==="bottom"?i-=r+e:i-=r/2,i}function N4(t,n,e,i){let{caretSize:r,caretPadding:o,cornerRadius:a}=t,{xAlign:s,yAlign:l}=e,c=r+o,{topLeft:d,topRight:m,bottomLeft:f,bottomRight:b}=Tc(a),v=mse(n,s),w=hse(n,l,c);return l==="center"?s==="left"?v+=c:s==="right"&&(v-=c):s==="left"?v-=Math.max(d,f)+r:s==="right"&&(v+=Math.max(m,b)+r),{x:Dn(v,0,i.width-n.width),y:Dn(w,0,i.height-n.height)}}function tC(t,n,e){let i=sr(e.padding);return n==="center"?t.x+t.width/2:n==="right"?t.x+t.width-i.right:t.x+i.left}function L4(t){return As([],yl(t))}function pse(t,n,e){return bl(t,{tooltip:n,tooltipItems:e,type:"tooltip"})}function V4(t,n){let e=n&&n.dataset&&n.dataset.tooltip&&n.dataset.tooltip.callbacks;return e?t.override(e):t}var fH={beforeTitle:Ts,title(t){if(t.length>0){let n=t[0],e=n.chart.data.labels,i=e?e.length:0;if(this&&this.options&&this.options.mode==="dataset")return n.dataset.label||"";if(n.label)return n.label;if(i>0&&n.dataIndex"u"?fH[n].call(e,i):r}var B4=(()=>{class t extends ja{static positioners=Qg;constructor(e){super(),this.opacity=0,this._active=[],this._eventPosition=void 0,this._size=void 0,this._cachedAnimations=void 0,this._tooltipItems=[],this.$animations=void 0,this.$context=void 0,this.chart=e.chart,this.options=e.options,this.dataPoints=void 0,this.title=void 0,this.beforeBody=void 0,this.body=void 0,this.afterBody=void 0,this.footer=void 0,this.xAlign=void 0,this.yAlign=void 0,this.x=void 0,this.y=void 0,this.height=void 0,this.width=void 0,this.caretX=void 0,this.caretY=void 0,this.labelColors=void 0,this.labelPointStyles=void 0,this.labelTextColors=void 0}initialize(e){this.options=e,this._cachedAnimations=void 0,this.$context=void 0}_resolveAnimations(){let e=this._cachedAnimations;if(e)return e;let i=this.chart,r=this.options.setContext(this.getContext()),o=r.enabled&&i.options.animation&&r.animations,a=new oC(this.chart,o);return o._cacheable&&(this._cachedAnimations=Object.freeze(a)),a}getContext(){return this.$context||(this.$context=pse(this.chart.getContext(),this,this._tooltipItems))}getTitle(e,i){let{callbacks:r}=i,o=ro(r,"beforeTitle",this,e),a=ro(r,"title",this,e),s=ro(r,"afterTitle",this,e),l=[];return l=As(l,yl(o)),l=As(l,yl(a)),l=As(l,yl(s)),l}getBeforeBody(e,i){return L4(ro(i.callbacks,"beforeBody",this,e))}getBody(e,i){let{callbacks:r}=i,o=[];return ii(e,a=>{let s={before:[],lines:[],after:[]},l=V4(r,a);As(s.before,yl(ro(l,"beforeLabel",this,a))),As(s.lines,ro(l,"label",this,a)),As(s.after,yl(ro(l,"afterLabel",this,a))),o.push(s)}),o}getAfterBody(e,i){return L4(ro(i.callbacks,"afterBody",this,e))}getFooter(e,i){let{callbacks:r}=i,o=ro(r,"beforeFooter",this,e),a=ro(r,"footer",this,e),s=ro(r,"afterFooter",this,e),l=[];return l=As(l,yl(o)),l=As(l,yl(a)),l=As(l,yl(s)),l}_createItems(e){let i=this._active,r=this.chart.data,o=[],a=[],s=[],l=[],c,d;for(c=0,d=i.length;ce.filter(m,f,b,r))),e.itemSort&&(l=l.sort((m,f)=>e.itemSort(m,f,r))),ii(l,m=>{let f=V4(e.callbacks,m);o.push(ro(f,"labelColor",this,m)),a.push(ro(f,"labelPointStyle",this,m)),s.push(ro(f,"labelTextColor",this,m))}),this.labelColors=o,this.labelPointStyles=a,this.labelTextColors=s,this.dataPoints=l,l}update(e,i){let r=this.options.setContext(this.getContext()),o=this._active,a,s=[];if(!o.length)this.opacity!==0&&(a={opacity:0});else{let l=Qg[r.position].call(this,o,this._eventPosition);s=this._createItems(r),this.title=this.getTitle(s,r),this.beforeBody=this.getBeforeBody(s,r),this.body=this.getBody(s,r),this.afterBody=this.getAfterBody(s,r),this.footer=this.getFooter(s,r);let c=this._size=P4(this,r),d=Object.assign({},l,c),m=F4(this.chart,r,d),f=N4(r,d,m,this.chart);this.xAlign=m.xAlign,this.yAlign=m.yAlign,a={opacity:1,x:f.x,y:f.y,width:c.width,height:c.height,caretX:l.x,caretY:l.y}}this._tooltipItems=s,this.$context=void 0,a&&this._resolveAnimations().update(this,a),e&&r.external&&r.external.call(this,{chart:this.chart,tooltip:this,replay:i})}drawCaret(e,i,r,o){let a=this.getCaretPosition(e,r,o);i.lineTo(a.x1,a.y1),i.lineTo(a.x2,a.y2),i.lineTo(a.x3,a.y3)}getCaretPosition(e,i,r){let{xAlign:o,yAlign:a}=this,{caretSize:s,cornerRadius:l}=r,{topLeft:c,topRight:d,bottomLeft:m,bottomRight:f}=Tc(l),{x:b,y:v}=e,{width:w,height:x}=i,D,P,W,Z,K,re;return a==="center"?(K=v+x/2,o==="left"?(D=b,P=D-s,Z=K+s,re=K-s):(D=b+w,P=D+s,Z=K-s,re=K+s),W=D):(o==="left"?P=b+Math.max(c,m)+s:o==="right"?P=b+w-Math.max(d,f)-s:P=this.caretX,a==="top"?(Z=v,K=Z-s,D=P-s,W=P+s):(Z=v+x,K=Z+s,D=P+s,W=P-s),re=Z),{x1:D,x2:P,x3:W,y1:Z,y2:K,y3:re}}drawTitle(e,i,r){let o=this.title,a=o.length,s,l,c;if(a){let d=Cu(r.rtl,this.x,this.width);for(e.x=tC(this,r.titleAlign,r),i.textAlign=d.textAlign(r.titleAlign),i.textBaseline="middle",s=pn(r.titleFont),l=r.titleSpacing,i.fillStyle=r.titleColor,i.font=s.string,c=0;cW!==0)?(e.beginPath(),e.fillStyle=a.multiKeyBackground,jh(e,{x,y:w,w:d,h:c,radius:P}),e.fill(),e.stroke(),e.fillStyle=s.backgroundColor,e.beginPath(),jh(e,{x:D,y:w+1,w:d-2,h:c-2,radius:P}),e.fill()):(e.fillStyle=a.multiKeyBackground,e.fillRect(x,w,d,c),e.strokeRect(x,w,d,c),e.fillStyle=s.backgroundColor,e.fillRect(D,w+1,d-2,c-2))}e.fillStyle=this.labelTextColors[r]}drawBody(e,i,r){let{body:o}=this,{bodySpacing:a,bodyAlign:s,displayColors:l,boxHeight:c,boxWidth:d,boxPadding:m}=r,f=pn(r.bodyFont),b=f.lineHeight,v=0,w=Cu(r.rtl,this.x,this.width),x=function(Ve){i.fillText(Ve,w.x(e.x+v),e.y+b/2),e.y+=b+a},D=w.textAlign(s),P,W,Z,K,re,Ee,be;for(i.textAlign=s,i.textBaseline="middle",i.font=f.string,e.x=tC(this,D,r),i.fillStyle=r.bodyColor,ii(this.beforeBody,x),v=l&&D!=="right"?s==="center"?d/2+m:d+2+m:0,K=0,Ee=o.length;K0&&i.stroke()}_updateAnimationTarget(e){let i=this.chart,r=this.$animations,o=r&&r.x,a=r&&r.y;if(o||a){let s=Qg[e.position].call(this,this._active,this._eventPosition);if(!s)return;let l=this._size=P4(this,e),c=Object.assign({},s,this._size),d=F4(i,e,c),m=N4(e,c,d,i);(o._to!==m.x||a._to!==m.y)&&(this.xAlign=d.xAlign,this.yAlign=d.yAlign,this.width=l.width,this.height=l.height,this.caretX=s.x,this.caretY=s.y,this._resolveAnimations().update(this,m))}}_willRender(){return!!this.opacity}draw(e){let i=this.options.setContext(this.getContext()),r=this.opacity;if(!r)return;this._updateAnimationTarget(i);let o={width:this.width,height:this.height},a={x:this.x,y:this.y};r=Math.abs(r)<.001?0:r;let s=sr(i.padding),l=this.title.length||this.beforeBody.length||this.body.length||this.afterBody.length||this.footer.length;i.enabled&&l&&(e.save(),e.globalAlpha=r,this.drawBackground(a,e,o,i),bT(e,i.textDirection),a.y+=s.top,this.drawTitle(a,e,i),this.drawBody(a,e,i),this.drawFooter(a,e,i),vT(e,i.textDirection),e.restore())}getActiveElements(){return this._active||[]}setActiveElements(e,i){let r=this._active,o=e.map(({datasetIndex:l,index:c})=>{let d=this.chart.getDatasetMeta(l);if(!d)throw new Error("Cannot find a dataset at index "+l);return{datasetIndex:l,element:d.data[c],index:c}}),a=!Bg(r,o),s=this._positionChanged(o,i);(a||s)&&(this._active=o,this._eventPosition=i,this._ignoreReplayEvents=!0,this.update(!0))}handleEvent(e,i,r=!0){if(i&&this._ignoreReplayEvents)return!1;this._ignoreReplayEvents=!1;let o=this.options,a=this._active||[],s=this._getActiveElements(e,a,i,r),l=this._positionChanged(s,e),c=i||!Bg(s,a)||l;return c&&(this._active=s,(o.enabled||o.external)&&(this._eventPosition={x:e.x,y:e.y},this.update(!0,i))),c}_getActiveElements(e,i,r,o){let a=this.options;if(e.type==="mouseout")return[];if(!o)return i.filter(l=>this.chart.data.datasets[l.datasetIndex]&&this.chart.getDatasetMeta(l.datasetIndex).controller.getParsed(l.index)!==void 0);let s=this.chart.getElementsAtEventForMode(e,a.mode,a,r);return a.reverse&&s.reverse(),s}_positionChanged(e,i){let{caretX:r,caretY:o,options:a}=this,s=Qg[a.position].call(this,e,i);return s!==!1&&(r!==s.x||o!==s.y)}}return t})(),fse={id:"tooltip",_element:B4,positioners:Qg,afterInit(t,n,e){e&&(t.tooltip=new B4({chart:t,options:e}))},beforeUpdate(t,n,e){t.tooltip&&t.tooltip.initialize(e)},reset(t,n,e){t.tooltip&&t.tooltip.initialize(e)},afterDraw(t){let n=t.tooltip;if(n&&n._willRender()){let e={tooltip:n};if(t.notifyPlugins("beforeTooltipDraw",De(M({},e),{cancelable:!0}))===!1)return;n.draw(t.ctx),t.notifyPlugins("afterTooltipDraw",e)}},afterEvent(t,n){if(t.tooltip){let e=n.replay;t.tooltip.handleEvent(n.event,e,n.inChartArea)&&(n.changed=!0)}},defaults:{enabled:!0,external:null,position:"average",backgroundColor:"rgba(0,0,0,0.8)",titleColor:"#fff",titleFont:{weight:"bold"},titleSpacing:2,titleMarginBottom:6,titleAlign:"left",bodyColor:"#fff",bodySpacing:2,bodyFont:{},bodyAlign:"left",footerColor:"#fff",footerSpacing:2,footerMarginTop:6,footerFont:{weight:"bold"},footerAlign:"left",padding:6,caretPadding:2,caretSize:5,cornerRadius:6,boxHeight:(t,n)=>n.bodyFont.size,boxWidth:(t,n)=>n.bodyFont.size,multiKeyBackground:"#fff",displayColors:!0,boxPadding:0,borderColor:"rgba(0,0,0,0)",borderWidth:0,animation:{duration:400,easing:"easeOutQuart"},animations:{numbers:{type:"number",properties:["x","y","width","height","caretX","caretY"]},opacity:{easing:"linear",duration:200}},callbacks:fH},defaultRoutes:{bodyFont:"font",footerFont:"font",titleFont:"font"},descriptors:{_scriptable:t=>t!=="filter"&&t!=="itemSort"&&t!=="external",_indexable:!1,callbacks:{_scriptable:!1,_indexable:!1},animation:{_fallback:!1},animations:{_fallback:"animation"}},additionalOptionScopes:["interaction"]},gse=Object.freeze({__proto__:null,Colors:Sae,Decimation:Oae,Filler:Xae,Legend:rse,SubTitle:sse,Title:ase,Tooltip:fse}),_se=(t,n,e,i)=>(typeof n=="string"?(e=t.push(n)-1,i.unshift({index:e,label:n})):isNaN(n)&&(e=null),e);function bse(t,n,e,i){let r=t.indexOf(n);if(r===-1)return _se(t,n,e,i);let o=t.lastIndexOf(n);return r!==o?e:r}var vse=(t,n)=>t===null?null:Dn(Math.round(t),0,n);function j4(t){let n=this.getLabels();return t>=0&&t{class t extends Eu{static id="category";static defaults={ticks:{callback:j4}};constructor(e){super(e),this._startValue=void 0,this._valueRange=0,this._addedLabels=[]}init(e){let i=this._addedLabels;if(i.length){let r=this.getLabels();for(let{index:o,label:a}of i)r[o]===a&&r.splice(o,1);this._addedLabels=[]}super.init(e)}parse(e,i){if(Et(e))return null;let r=this.getLabels();return i=isFinite(i)&&r[i]===e?i:bse(r,e,st(i,e),this._addedLabels),vse(i,r.length-1)}determineDataLimits(){let{minDefined:e,maxDefined:i}=this.getUserBounds(),{min:r,max:o}=this.getMinMax(!0);this.options.bounds==="ticks"&&(e||(r=0),i||(o=this.getLabels().length-1)),this.min=r,this.max=o}buildTicks(){let e=this.min,i=this.max,r=this.options.offset,o=[],a=this.getLabels();a=e===0&&i===a.length-1?a:a.slice(e,i+1),this._valueRange=Math.max(a.length-(r?0:1),1),this._startValue=this.min-(r?.5:0);for(let s=e;s<=i;s++)o.push({value:s});return o}getLabelForValue(e){return j4.call(this,e)}configure(){super.configure(),this.isHorizontal()||(this._reversePixels=!this._reversePixels)}getPixelForValue(e){return typeof e!="number"&&(e=this.parse(e)),e===null?NaN:this.getPixelForDecimal((e-this._startValue)/this._valueRange)}getPixelForTick(e){let i=this.ticks;return e<0||e>i.length-1?null:this.getPixelForValue(i[e].value)}getValueForPixel(e){return Math.round(this._startValue+this.getDecimalForPixel(e)*this._valueRange)}getBasePixel(){return this.bottom}}return t})();function xse(t,n){let e=[],{bounds:r,step:o,min:a,max:s,precision:l,count:c,maxTicks:d,maxDigits:m,includeBounds:f}=t,b=o||1,v=d-1,{min:w,max:x}=n,D=!Et(a),P=!Et(s),W=!Et(c),Z=(x-w)/(m+1),K=ZS((x-w)/v/b)*b,re,Ee,be,Ve;if(K<1e-14&&!D&&!P)return[{value:w},{value:x}];Ve=Math.ceil(x/K)-Math.floor(w/K),Ve>v&&(K=ZS(Ve*K/v/b)*b),Et(l)||(re=Math.pow(10,l),K=Math.ceil(K*re)/re),r==="ticks"?(Ee=Math.floor(w/K)*K,be=Math.ceil(x/K)*K):(Ee=w,be=x),D&&P&&o&&Mj((s-a)/o,K/1e3)?(Ve=Math.round(Math.min((s-a)/K,d)),K=(s-a)/Ve,Ee=a,be=s):W?(Ee=D?a:Ee,be=P?s:be,Ve=c-1,K=(be-Ee)/Ve):(Ve=(be-Ee)/K,Lh(Ve,Math.round(Ve),K/1e3)?Ve=Math.round(Ve):Ve=Math.ceil(Ve));let yt=Math.max(JS(K),JS(Ee));re=Math.pow(10,Et(l)?yt:l),Ee=Math.round(Ee*re)/re,be=Math.round(be*re)/re;let bt=0;for(D&&(f&&Ee!==a?(e.push({value:a}),Ees)break;e.push({value:It})}return P&&f&&be!==s?e.length&&Lh(e[e.length-1].value,s,H4(s,Z,t))?e[e.length-1].value=s:e.push({value:s}):(!P||be===s)&&e.push({value:be}),e}function H4(t,n,{horizontal:e,minRotation:i}){let r=ra(i),o=(e?Math.sin(r):Math.cos(r))||.001,a=.75*n*(""+t).length;return Math.min(n/o,a)}var $h=class extends Eu{constructor(n){super(n),this.start=void 0,this.end=void 0,this._startValue=void 0,this._endValue=void 0,this._valueRange=0}parse(n,e){return Et(n)||(typeof n=="number"||n instanceof Number)&&!isFinite(+n)?null:+n}handleTickRangeOptions(){let{beginAtZero:n}=this.options,{minDefined:e,maxDefined:i}=this.getUserBounds(),{min:r,max:o}=this,a=l=>r=e?r:l,s=l=>o=i?o:l;if(n){let l=Ba(r),c=Ba(o);l<0&&c<0?s(0):l>0&&c>0&&a(0)}if(r===o){let l=o===0?1:Math.abs(o*.05);s(o+l),n||a(r-l)}this.min=r,this.max=o}getTickLimit(){let n=this.options.ticks,{maxTicksLimit:e,stepSize:i}=n,r;return i?(r=Math.ceil(this.max/i)-Math.floor(this.min/i)+1,r>1e3&&(console.warn(`scales.${this.id}.ticks.stepSize: ${i} would result generating up to ${r} ticks. Limiting to 1000.`),r=1e3)):(r=this.computeTickLimit(),e=e||11),e&&(r=Math.min(e,r)),r}computeTickLimit(){return Number.POSITIVE_INFINITY}buildTicks(){let n=this.options,e=n.ticks,i=this.getTickLimit();i=Math.max(2,i);let r={maxTicks:i,bounds:n.bounds,min:n.min,max:n.max,precision:e.precision,step:e.stepSize,count:e.count,maxDigits:this._maxDigits(),horizontal:this.isHorizontal(),minRotation:e.minRotation||0,includeBounds:e.includeBounds!==!1},o=this._range||this,a=xse(r,o);return n.bounds==="ticks"&&XS(a,this,"value"),n.reverse?(a.reverse(),this.start=this.max,this.end=this.min):(this.start=this.min,this.end=this.max),a}configure(){let n=this.ticks,e=this.min,i=this.max;if(super.configure(),this.options.offset&&n.length){let r=(i-e)/Math.max(n.length-1,1)/2;e-=r,i+=r}this._startValue=e,this._endValue=i,this._valueRange=i-e}getLabelForValue(n){return Bh(n,this.chart.options.locale,this.options.ticks.format)}},QT=class extends $h{static id="linear";static defaults={ticks:{callback:jg.formatters.numeric}};determineDataLimits(){let{min:n,max:e}=this.getMinMax(!0);this.min=Gi(n)?n:0,this.max=Gi(e)?e:1,this.handleTickRangeOptions()}computeTickLimit(){let n=this.isHorizontal(),e=n?this.width:this.height,i=ra(this.options.ticks.minRotation),r=(n?Math.sin(i):Math.cos(i))||.001,o=this._resolveTickFontOptions(0);return Math.ceil(e/Math.min(40,o.lineHeight/r))}getPixelForValue(n){return n===null?NaN:this.getPixelForDecimal((n-this._startValue)/this._valueRange)}getValueForPixel(n){return this._startValue+this.getDecimalForPixel(n)*this._valueRange}},Xg=t=>Math.floor(gl(t)),Du=(t,n)=>Math.pow(10,Xg(t)+n);function z4(t){return t/Math.pow(10,Xg(t))===1}function U4(t,n,e){let i=Math.pow(10,e),r=Math.floor(t/i);return Math.ceil(n/i)-r}function Cse(t,n){let e=n-t,i=Xg(e);for(;U4(t,n,i)>10;)i++;for(;U4(t,n,i)<10;)i--;return Math.min(i,Xg(t))}function wse(t,{min:n,max:e}){n=no(t.min,n);let i=[],r=Xg(n),o=Cse(n,e),a=o<0?Math.pow(10,Math.abs(o)):1,s=Math.pow(10,o),l=r>o?Math.pow(10,r):0,c=Math.round((n-l)*a)/a,d=Math.floor((n-l)/s/10)*s*10,m=Math.floor((c-d)/Math.pow(10,o)),f=no(t.min,Math.round((l+d+m*Math.pow(10,o))*a)/a);for(;f=10?m=m<15?15:20:m++,m>=20&&(o++,m=2,a=o>=0?1:a),f=Math.round((l+d+m*Math.pow(10,o))*a)/a;let b=no(t.max,f);return i.push({value:b,major:z4(b),significand:m}),i}var KT=class extends Eu{static id="logarithmic";static defaults={ticks:{callback:jg.formatters.logarithmic,major:{enabled:!0}}};constructor(n){super(n),this.start=void 0,this.end=void 0,this._startValue=void 0,this._valueRange=0}parse(n,e){let i=$h.prototype.parse.apply(this,[n,e]);if(i===0){this._zero=!0;return}return Gi(i)&&i>0?i:null}determineDataLimits(){let{min:n,max:e}=this.getMinMax(!0);this.min=Gi(n)?Math.max(0,n):null,this.max=Gi(e)?Math.max(0,e):null,this.options.beginAtZero&&(this._zero=!0),this._zero&&this.min!==this._suggestedMin&&!Gi(this._userMin)&&(this.min=n===Du(this.min,0)?Du(this.min,-1):Du(this.min,0)),this.handleTickRangeOptions()}handleTickRangeOptions(){let{minDefined:n,maxDefined:e}=this.getUserBounds(),i=this.min,r=this.max,o=s=>i=n?i:s,a=s=>r=e?r:s;i===r&&(i<=0?(o(1),a(10)):(o(Du(i,-1)),a(Du(r,1)))),i<=0&&o(Du(r,-1)),r<=0&&a(Du(i,1)),this.min=i,this.max=r}buildTicks(){let n=this.options,e={min:this._userMin,max:this._userMax},i=wse(e,this);return n.bounds==="ticks"&&XS(i,this,"value"),n.reverse?(i.reverse(),this.start=this.max,this.end=this.min):(this.start=this.min,this.end=this.max),i}getLabelForValue(n){return n===void 0?"0":Bh(n,this.chart.options.locale,this.options.ticks.format)}configure(){let n=this.min;super.configure(),this._startValue=gl(n),this._valueRange=gl(this.max)-gl(n)}getPixelForValue(n){return(n===void 0||n===0)&&(n=this.min),n===null||isNaN(n)?NaN:this.getPixelForDecimal(n===this.min?0:(gl(n)-this._startValue)/this._valueRange)}getValueForPixel(n){let e=this.getDecimalForPixel(n);return Math.pow(10,this._startValue+e*this._valueRange)}};function ZT(t){let n=t.ticks;if(n.display&&t.display){let e=sr(n.backdropPadding);return st(n.font&&n.font.size,xi.font.size)+e.height}return 0}function Dse(t,n,e){return e=Ei(e)?e:[e],{w:Fj(t,n.string,e),h:e.length*n.lineHeight}}function $4(t,n,e,i,r){return t===i||t===r?{start:n-e/2,end:n+e/2}:tr?{start:n-e,end:n}:{start:n,end:n+e}}function Ese(t){let n={l:t.left+t._padding.left,r:t.right-t._padding.right,t:t.top+t._padding.top,b:t.bottom-t._padding.bottom},e=Object.assign({},n),i=[],r=[],o=t._pointLabels.length,a=t.options.pointLabels,s=a.centerPointLabels?Ht/o:0;for(let l=0;ln.r&&(s=(i.end-n.r)/o,t.r=Math.max(t.r,n.r+s)),r.startn.b&&(l=(r.end-n.b)/a,t.b=Math.max(t.b,n.b+l))}function kse(t,n,e){let i=t.drawingArea,{extra:r,additionalAngle:o,padding:a,size:s}=e,l=t.getPointPosition(n,i+r+a,o),c=Math.round(Hx(or(l.angle+Zi))),d=Ose(l.y,s.h,c),m=Ise(c),f=Ase(l.x,s.w,m);return{visible:!0,x:l.x,y:d,textAlign:m,left:f,top:d,right:f+s.w,bottom:d+s.h}}function Sse(t,n){if(!n)return!0;let{left:e,top:i,right:r,bottom:o}=t;return!(Ss({x:e,y:i},n)||Ss({x:e,y:o},n)||Ss({x:r,y:i},n)||Ss({x:r,y:o},n))}function Tse(t,n,e){let i=[],r=t._pointLabels.length,o=t.options,{centerPointLabels:a,display:s}=o.pointLabels,l={extra:ZT(o)/2,additionalAngle:a?Ht/r:0},c;for(let d=0;d270||e<90)&&(t-=n),t}function Rse(t,n,e){let{left:i,top:r,right:o,bottom:a}=e,{backdropColor:s}=n;if(!Et(s)){let l=Tc(n.borderRadius),c=sr(n.backdropPadding);t.fillStyle=s;let d=i-c.left,m=r-c.top,f=o-i+c.width,b=a-r+c.height;Object.values(l).some(v=>v!==0)?(t.beginPath(),jh(t,{x:d,y:m,w:f,h:b,radius:l}),t.fill()):t.fillRect(d,m,f,b)}}function Pse(t,n){let{ctx:e,options:{pointLabels:i}}=t;for(let r=n-1;r>=0;r--){let o=t._pointLabelItems[r];if(!o.visible)continue;let a=i.setContext(t.getPointLabelContext(r));Rse(e,a,o);let s=pn(a.font),{x:l,y:c,textAlign:d}=o;Sc(e,t._pointLabels[r],l,c+s.lineHeight/2,s,{color:a.color,textAlign:d,textBaseline:"middle"})}}function gH(t,n,e,i){let{ctx:r}=t;if(e)r.arc(t.xCenter,t.yCenter,n,0,Mi);else{let o=t.getPointPosition(0,n);r.moveTo(o.x,o.y);for(let a=1;a{let r=yi(this.options.pointLabels.callback,[e,i],this);return r||r===0?r:""}).filter((e,i)=>this.chart.getDataVisibility(i))}fit(){let n=this.options;n.display&&n.pointLabels.display?Ese(this):this.setCenterPoint(0,0,0,0)}setCenterPoint(n,e,i,r){this.xCenter+=Math.floor((n-e)/2),this.yCenter+=Math.floor((i-r)/2),this.drawingArea-=Math.min(this.drawingArea/2,Math.max(n,e,i,r))}getIndexAngle(n){let e=Mi/(this._pointLabels.length||1),i=this.options.startAngle||0;return or(n*e+ra(i))}getDistanceFromCenterForValue(n){if(Et(n))return NaN;let e=this.drawingArea/(this.max-this.min);return this.options.reverse?(this.max-n)*e:(n-this.min)*e}getValueForDistanceFromCenter(n){if(Et(n))return NaN;let e=n/(this.drawingArea/(this.max-this.min));return this.options.reverse?this.max-e:this.min+e}getPointLabelContext(n){let e=this._pointLabels||[];if(n>=0&&n{if(m!==0||m===0&&this.min<0){l=this.getDistanceFromCenterForValue(d.value);let f=this.getContext(m),b=r.setContext(f),v=o.setContext(f);Fse(this,b,l,a,v)}}),i.display){for(n.save(),s=a-1;s>=0;s--){let d=i.setContext(this.getPointLabelContext(s)),{color:m,lineWidth:f}=d;!f||!m||(n.lineWidth=f,n.strokeStyle=m,n.setLineDash(d.borderDash),n.lineDashOffset=d.borderDashOffset,l=this.getDistanceFromCenterForValue(e.reverse?this.min:this.max),c=this.getPointPosition(s,l),n.beginPath(),n.moveTo(this.xCenter,this.yCenter),n.lineTo(c.x,c.y),n.stroke())}n.restore()}}drawBorder(){}drawLabels(){let n=this.ctx,e=this.options,i=e.ticks;if(!i.display)return;let r=this.getIndexAngle(0),o,a;n.save(),n.translate(this.xCenter,this.yCenter),n.rotate(r),n.textAlign="center",n.textBaseline="middle",this.ticks.forEach((s,l)=>{if(l===0&&this.min>=0&&!e.reverse)return;let c=i.setContext(this.getContext(l)),d=pn(c.font);if(o=this.getDistanceFromCenterForValue(this.ticks[l].value),c.showLabelBackdrop){n.font=d.string,a=n.measureText(s.label).width,n.fillStyle=c.backdropColor;let m=sr(c.backdropPadding);n.fillRect(-a/2-m.left,-o-d.size/2-m.top,a+m.width,d.size+m.height)}Sc(n,s.label,0,-o,d,{color:c.color,strokeColor:c.textStrokeColor,strokeWidth:c.textStrokeWidth})}),n.restore()}drawTitle(){}},pC={millisecond:{common:!0,size:1,steps:1e3},second:{common:!0,size:1e3,steps:60},minute:{common:!0,size:6e4,steps:60},hour:{common:!0,size:36e5,steps:24},day:{common:!0,size:864e5,steps:30},week:{common:!1,size:6048e5,steps:4},month:{common:!0,size:2628e6,steps:12},quarter:{common:!1,size:7884e6,steps:4},year:{common:!0,size:3154e7}},oo=Object.keys(pC);function W4(t,n){return t-n}function G4(t,n){if(Et(n))return null;let e=t._adapter,{parser:i,round:r,isoWeekday:o}=t._parseOpts,a=n;return typeof i=="function"&&(a=i(a)),Gi(a)||(a=typeof i=="string"?e.parse(a,i):e.parse(a)),a===null?null:(r&&(a=r==="week"&&(xu(o)||o===!0)?e.startOf(a,"isoWeek",o):e.startOf(a,r)),+a)}function q4(t,n,e,i){let r=oo.length;for(let o=oo.indexOf(t);o=oo.indexOf(e);o--){let a=oo[o];if(pC[a].common&&t._adapter.diff(r,i,a)>=n-1)return a}return oo[e?oo.indexOf(e):0]}function Vse(t){for(let n=oo.indexOf(t)+1,e=oo.length;n=n?e[i]:e[r];t[o]=!0}}function Bse(t,n,e,i){let r=t._adapter,o=+r.startOf(n[0].value,i),a=n[n.length-1].value,s,l;for(s=o;s<=a;s=+r.add(s,1,i))l=e[s],l>=0&&(n[l].major=!0);return n}function Q4(t,n,e){let i=[],r={},o=n.length,a,s;for(a=0;a{class t extends Eu{static id="time";static defaults={bounds:"data",adapters:{},time:{parser:!1,unit:!1,round:!1,isoWeekday:!1,minUnit:"millisecond",displayFormats:{}},ticks:{source:"auto",callback:!1,major:{enabled:!1}}};constructor(e){super(e),this._cache={data:[],labels:[],all:[]},this._unit="day",this._majorUnit=void 0,this._offsets={},this._normalized=!1,this._parseOpts=void 0}init(e,i={}){let r=e.time||(e.time={}),o=this._adapter=new Kre._date(e.adapters.date);o.init(i),Fh(r.displayFormats,o.formats()),this._parseOpts={parser:r.parser,round:r.round,isoWeekday:r.isoWeekday},super.init(e),this._normalized=i.normalized}parse(e,i){return e===void 0?null:G4(this,e)}beforeLayout(){super.beforeLayout(),this._cache={data:[],labels:[],all:[]}}determineDataLimits(){let e=this.options,i=this._adapter,r=e.time.unit||"day",{min:o,max:a,minDefined:s,maxDefined:l}=this.getUserBounds();function c(d){!s&&!isNaN(d.min)&&(o=Math.min(o,d.min)),!l&&!isNaN(d.max)&&(a=Math.max(a,d.max))}(!s||!l)&&(c(this._getLabelBounds()),(e.bounds!=="ticks"||e.ticks.source!=="labels")&&c(this.getMinMax(!1))),o=Gi(o)&&!isNaN(o)?o:+i.startOf(Date.now(),r),a=Gi(a)&&!isNaN(a)?a:+i.endOf(Date.now(),r)+1,this.min=Math.min(o,a-1),this.max=Math.max(o+1,a)}_getLabelBounds(){let e=this.getLabelTimestamps(),i=Number.POSITIVE_INFINITY,r=Number.NEGATIVE_INFINITY;return e.length&&(i=e[0],r=e[e.length-1]),{min:i,max:r}}buildTicks(){let e=this.options,i=e.time,r=e.ticks,o=r.source==="labels"?this.getLabelTimestamps():this._generate();e.bounds==="ticks"&&o.length&&(this.min=this._userMin||o[0],this.max=this._userMax||o[o.length-1]);let a=this.min,s=this.max,l=Tj(o,a,s);return this._unit=i.unit||(r.autoSkip?q4(i.minUnit,this.min,this.max,this._getLabelCapacity(a)):Lse(this,l.length,i.minUnit,this.min,this.max)),this._majorUnit=!r.major.enabled||this._unit==="year"?void 0:Vse(this._unit),this.initOffsets(o),e.reverse&&l.reverse(),Q4(this,l,this._majorUnit)}afterAutoSkip(){this.options.offsetAfterAutoskip&&this.initOffsets(this.ticks.map(e=>+e.value))}initOffsets(e=[]){let i=0,r=0,o,a;this.options.offset&&e.length&&(o=this.getDecimalForValue(e[0]),e.length===1?i=1-o:i=(this.getDecimalForValue(e[1])-o)/2,a=this.getDecimalForValue(e[e.length-1]),e.length===1?r=a:r=(a-this.getDecimalForValue(e[e.length-2]))/2);let s=e.length<3?.5:.25;i=Dn(i,0,s),r=Dn(r,0,s),this._offsets={start:i,end:r,factor:1/(i+1+r)}}_generate(){let e=this._adapter,i=this.min,r=this.max,o=this.options,a=o.time,s=a.unit||q4(a.minUnit,i,r,this._getLabelCapacity(i)),l=st(o.ticks.stepSize,1),c=s==="week"?a.isoWeekday:!1,d=xu(c)||c===!0,m={},f=i,b,v;if(d&&(f=+e.startOf(f,"isoWeek",c)),f=+e.startOf(f,d?"day":s),e.diff(r,i,s)>1e5*l)throw new Error(i+" and "+r+" are too far apart with stepSize of "+l+" "+s);let w=o.ticks.source==="data"&&this.getDataTimestamps();for(b=f,v=0;b+x)}getLabelForValue(e){let i=this._adapter,r=this.options.time;return r.tooltipFormat?i.format(e,r.tooltipFormat):i.format(e,r.displayFormats.datetime)}format(e,i){let o=this.options.time.displayFormats,a=this._unit,s=i||o[a];return this._adapter.format(e,s)}_tickFormatFunction(e,i,r,o){let a=this.options,s=a.ticks.callback;if(s)return yi(s,[e,i,r],this);let l=a.time.displayFormats,c=this._unit,d=this._majorUnit,m=c&&l[c],f=d&&l[d],b=r[i],v=d&&f&&b&&b.major;return this._adapter.format(e,o||(v?f:m))}generateTickLabels(e){let i,r,o;for(i=0,r=e.length;i0?l:1}getDataTimestamps(){let e=this._cache.data||[],i,r;if(e.length)return e;let o=this.getMatchingVisibleMetas();if(this._normalized&&o.length)return this._cache.data=o[0].controller.getAllParsedValues(this);for(i=0,r=o.length;i=t[i].pos&&n<=t[r].pos&&({lo:i,hi:r}=ks(t,"pos",n)),{pos:o,time:s}=t[i],{pos:a,time:l}=t[r]):(n>=t[i].time&&n<=t[r].time&&({lo:i,hi:r}=ks(t,"time",n)),{time:o,pos:s}=t[i],{time:a,pos:l}=t[r]);let c=a-o;return c?s+(l-s)*(n-o)/c:s}var eI=class extends JT{static id="timeseries";static defaults=JT.defaults;constructor(n){super(n),this._table=[],this._minPos=void 0,this._tableRange=void 0}initOffsets(){let n=this._getTimestampsForTable(),e=this._table=this.buildLookupTable(n);this._minPos=iC(e,this.min),this._tableRange=iC(e,this.max)-this._minPos,super.initOffsets(n)}buildLookupTable(n){let{min:e,max:i}=this,r=[],o=[],a,s,l,c,d;for(a=0,s=n.length;a=e&&c<=i&&r.push(c);if(r.length<2)return[{time:e,pos:0},{time:i,pos:1}];for(a=0,s=r.length;ar-o)}_getTimestampsForTable(){let n=this._cache.all||[];if(n.length)return n;let e=this.getDataTimestamps(),i=this.getLabelTimestamps();return e.length&&i.length?n=this.normalize(e.concat(i)):n=e.length?e:i,n=this._cache.all=n,n}getDecimalForValue(n){return(iC(this._table,n)-this._minPos)/this._tableRange}getValueForPixel(n){let e=this._offsets,i=this.getDecimalForPixel(n)/e.factor-e.end;return iC(this._table,i*this._tableRange+this._minPos,!0)}},jse=Object.freeze({__proto__:null,CategoryScale:yse,LinearScale:QT,LogarithmicScale:KT,RadialLinearScale:XT,TimeScale:JT,TimeSeriesScale:eI}),_H=[Qre,xae,gse,jse];var Hse=typeof global=="object"&&global&&global.Object===Object&&global,fC=Hse;var zse=typeof self=="object"&&self&&self.Object===Object&&self,Use=fC||zse||Function("return this")(),oa=Use;var $se=oa.Symbol,Wh=$se;var bH=Object.prototype,Wse=bH.hasOwnProperty,Gse=bH.toString,e_=Wh?Wh.toStringTag:void 0;function qse(t){var n=Wse.call(t,e_),e=t[e_];try{t[e_]=void 0;var i=!0}catch{}var r=Gse.call(t);return i&&(n?t[e_]=e:delete t[e_]),r}var vH=qse;var Yse=Object.prototype,Qse=Yse.toString;function Kse(t){return Qse.call(t)}var yH=Kse;var Zse="[object Null]",Xse="[object Undefined]",xH=Wh?Wh.toStringTag:void 0;function Jse(t){return t==null?t===void 0?Xse:Zse:xH&&xH in Object(t)?vH(t):yH(t)}var Rc=Jse;function ele(t){return t!=null&&typeof t=="object"}var Rs=ele;var tle=Array.isArray,t_=tle;function ile(t){var n=typeof t;return t!=null&&(n=="object"||n=="function")}var ao=ile;function nle(t){return t}var gC=nle;var rle="[object AsyncFunction]",ole="[object Function]",ale="[object GeneratorFunction]",sle="[object Proxy]";function lle(t){if(!ao(t))return!1;var n=Rc(t);return n==ole||n==ale||n==rle||n==sle}var Gh=lle;var cle=oa["__core-js_shared__"],_C=cle;var CH=(function(){var t=/[^.]+$/.exec(_C&&_C.keys&&_C.keys.IE_PROTO||"");return t?"Symbol(src)_1."+t:""})();function dle(t){return!!CH&&CH in t}var wH=dle;var ule=Function.prototype,mle=ule.toString;function hle(t){if(t!=null){try{return mle.call(t)}catch{}try{return t+""}catch{}}return""}var DH=hle;var ple=/[\\^$.*+?()[\]{}|]/g,fle=/^\[object .+?Constructor\]$/,gle=Function.prototype,_le=Object.prototype,ble=gle.toString,vle=_le.hasOwnProperty,yle=RegExp("^"+ble.call(vle).replace(ple,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function xle(t){if(!ao(t)||wH(t))return!1;var n=Gh(t)?yle:fle;return n.test(DH(t))}var EH=xle;function Cle(t,n){return t?.[n]}var MH=Cle;function wle(t,n){var e=MH(t,n);return EH(e)?e:void 0}var qh=wle;var kH=Object.create,Dle=(function(){function t(){}return function(n){if(!ao(n))return{};if(kH)return kH(n);t.prototype=n;var e=new t;return t.prototype=void 0,e}})(),SH=Dle;function Ele(t,n,e){switch(e.length){case 0:return t.call(n);case 1:return t.call(n,e[0]);case 2:return t.call(n,e[0],e[1]);case 3:return t.call(n,e[0],e[1],e[2])}return t.apply(n,e)}var TH=Ele;function Mle(t,n){var e=-1,i=t.length;for(n||(n=Array(i));++e0){if(++n>=kle)return arguments[0]}else n=0;return t.apply(void 0,arguments)}}var AH=Ile;function Ale(t){return function(){return t}}var OH=Ale;var Ole=(function(){try{var t=qh(Object,"defineProperty");return t({},"",{}),t}catch{}})(),Yh=Ole;var Rle=Yh?function(t,n){return Yh(t,"toString",{configurable:!0,enumerable:!1,value:OH(n),writable:!0})}:gC,RH=Rle;var Ple=AH(RH),PH=Ple;var Fle=9007199254740991,Nle=/^(?:0|[1-9]\d*)$/;function Lle(t,n){var e=typeof t;return n=n??Fle,!!n&&(e=="number"||e!="symbol"&&Nle.test(t))&&t>-1&&t%1==0&&t-1&&t%1==0&&t<=Gle}var vC=qle;function Yle(t){return t!=null&&vC(t.length)&&!Gh(t)}var Kh=Yle;function Qle(t,n,e){if(!ao(e))return!1;var i=typeof n;return(i=="number"?Kh(e)&&bC(n,e.length):i=="string"&&n in e)?Pc(e[n],t):!1}var jH=Qle;function Kle(t){return BH(function(n,e){var i=-1,r=e.length,o=r>1?e[r-1]:void 0,a=r>2?e[2]:void 0;for(o=t.length>3&&typeof o=="function"?(r--,o):void 0,a&&jH(e[0],e[1],a)&&(o=r<3?void 0:o,r=1),n=Object(n);++i-1}var d5=ude;function mde(t,n){var e=this.__data__,i=Fc(e,t);return i<0?(++this.size,e.push([t,n])):e[i][1]=n,this}var u5=mde;function Xh(t){var n=-1,e=t==null?0:t.length;for(this.clear();++n{let n=class n{constructor(){this.colorschemesOptions=new tt(void 0)}setColorschemesOptions(i){this.pColorschemesOptions=i,this.colorschemesOptions.next(i)}getColorschemesOptions(){return this.pColorschemesOptions}};n.\u0275fac=function(r){return new(r||n)},n.\u0275prov=O({token:n,factory:n.\u0275fac,providedIn:"root"});let t=n;return t})(),W5=(()=>{let n=class n{constructor(i,r,o,a){this.zone=r,this.themeService=o,this.type="bar",this.plugins=[],this.chartClick=new U,this.chartHover=new U,this.subs=[],this.themeOverrides={},a?.registerables&&uC.register(...a.registerables),a?.defaults&&xi.set(a.defaults),this.ctx=i.nativeElement.getContext("2d"),this.subs.push(this.themeService.colorschemesOptions.pipe(Sn()).subscribe(s=>this.themeChanged(s)))}ngOnChanges(i){let r=["type"],o=Object.getOwnPropertyNames(i);if(o.some(a=>r.includes(a))||o.every(a=>i[a].isFirstChange()))this.render();else{let a=this.getChartConfiguration();this.chart&&(Object.assign(this.chart.config.data,a.data),this.chart.config.plugins&&Object.assign(this.chart.config.plugins,a.plugins),this.chart.config.options&&Object.assign(this.chart.config.options,a.options)),this.update()}}ngOnDestroy(){this.chart&&(this.chart.destroy(),this.chart=void 0),this.subs.forEach(i=>i.unsubscribe())}render(){return this.chart&&this.chart.destroy(),this.zone.runOutsideAngular(()=>this.chart=new uC(this.ctx,this.getChartConfiguration()))}update(i){this.chart&&this.zone.runOutsideAngular(()=>this.chart?.update(i))}hideDataset(i,r){this.chart&&(this.chart.getDatasetMeta(i).hidden=r,this.update())}isDatasetHidden(i){return this.chart?.getDatasetMeta(i)?.hidden}toBase64Image(){return this.chart?.toBase64Image()}themeChanged(i){this.themeOverrides=i,this.chart&&(this.chart.config.options&&Object.assign(this.chart.config.options,this.getChartOptions()),this.update())}getChartOptions(){return MC({onHover:(i,r)=>{!this.chartHover.observed&&!this.chartHover.observers?.length||this.zone.run(()=>this.chartHover.emit({event:i,active:r}))},onClick:(i,r)=>{!this.chartClick.observed&&!this.chartClick.observers?.length||this.zone.run(()=>this.chartClick.emit({event:i,active:r}))}},this.themeOverrides,this.options,{plugins:{legend:{display:this.legend}}})}getChartConfiguration(){return{type:this.type,data:this.getChartData(),options:this.getChartOptions(),plugins:this.plugins}}getChartData(){return this.data?this.data:{labels:this.labels||[],datasets:this.datasets||[]}}};n.\u0275fac=function(r){return new(r||n)(_e(q),_e(ae),_e(Yde),_e(z5,8))},n.\u0275dir=F({type:n,selectors:[["canvas","baseChart",""]],inputs:{type:"type",legend:"legend",data:"data",options:"options",plugins:"plugins",labels:"labels",datasets:"datasets"},outputs:{chartClick:"chartClick",chartHover:"chartHover"},exportAs:["base-chart"],features:[Ae]});let t=n;return t})();var ko={production:!0,baseUrl:"",useHash:!1,apiUrl:"https://app-talent-api-dev.azurewebsites.net/api/v1",identityServerUrl:"https://app-talent-ids-dev.azurewebsites.net",clientId:"TalentManagement",scope:"openid profile email roles app.api.talentmanagement.read app.api.talentmanagement.write",allowAnonymousAccess:!0};var G5={issuer:ko.identityServerUrl,redirectUri:window.location.origin+"/callback",postLogoutRedirectUri:window.location.origin,clientId:ko.clientId,scope:ko.scope,responseType:"code",showDebugInformation:!ko.production,useSilentRefresh:!0,silentRefreshRedirectUri:window.location.origin+"/silent-refresh.html",silentRefreshTimeout:5e3,timeoutFactor:.75,sessionChecksEnabled:!0,clearHashAfterLogin:!0,strictDiscoveryDocumentValidation:!1,skipIssuerCheck:!ko.production,requireHttps:ko.production,requestAccessToken:!0,dummyClientSecret:void 0,customQueryParams:{}};var Tt=(()=>{let n=class n{constructor(){this.oauthService=u(Wm),this.router=u(Re),this.isAuthenticatedSubject=new tt(!1),this.isAuthenticated$=this.isAuthenticatedSubject.asObservable(),this.userInfoSubject=new tt(null),this.userInfo$=this.userInfoSubject.asObservable(),this.permissionsChangeSubject=new z,this.permissionsChange$=this.permissionsChangeSubject.asObservable(),this.configureOAuth()}configureOAuth(){this.oauthService.configure(G5),this.oauthService.events.pipe(ce(i=>i.type==="token_received")).subscribe(()=>{this.handleSuccessfulLogin()}),this.oauthService.events.pipe(ce(i=>i.type==="token_error"||i.type==="token_refresh_error")).subscribe(()=>{console.error("Token error occurred")}),this.oauthService.setupAutomaticSilentRefresh()}initAuth(){return fn(this,null,function*(){try{return yield this.oauthService.loadDiscoveryDocument(),yield this.oauthService.tryLogin(),this.oauthService.hasValidAccessToken()?(yield this.handleSuccessfulLogin(),!0):!1}catch(i){return console.error("Error during authentication initialization:",i),!1}})}login(i){i?this.oauthService.initCodeFlow(i):this.oauthService.initCodeFlow()}logout(){this.oauthService.logOut(),this.isAuthenticatedSubject.next(!1),this.userInfoSubject.next(null),this.permissionsChangeSubject.next()}handleSuccessfulLogin(){return fn(this,null,function*(){try{let i=this.oauthService.getIdentityClaims();this.userInfoSubject.next(i),this.isAuthenticatedSubject.next(!0),this.permissionsChangeSubject.next()}catch(i){console.error("Error loading user info:",i)}})}isAuthenticated(){return this.oauthService.hasValidAccessToken()}getAccessToken(){return this.oauthService.getAccessToken()}getUserInfo(){return this.userInfoSubject.value}getUserRoles(){let i=this.oauthService.getIdentityClaims();if(!i)return[];let r=i.role;return Array.isArray(r)?r:typeof r=="string"?[r]:[]}hasRole(i){return this.getUserRoles().includes(i)}isEmployee(){return this.hasRole("Employee")}isManager(){return this.hasRole("Manager")}isHRAdmin(){return this.hasRole("HRAdmin")}hasAnyRole(i){let r=this.getUserRoles();return i.some(o=>r.includes(o))}getUserDisplayName(){let i=this.getUserInfo();return i?.name||i?.email||"User"}};n.\u0275fac=function(r){return new(r||n)},n.\u0275prov=O({token:n,factory:n.\u0275fac,providedIn:"root"});let t=n;return t})();var sI=(t,n)=>{let e=u(Tt);return ko.allowAnonymousAccess||e.isAuthenticated()?!0:(e.login(n?.url),!1)};var a_=t=>{let n=u(Tt),e=u(Re);return n.isAuthenticated()?n.isManager()||n.isHRAdmin()?!0:(e.navigate(["/403"]),!1):(n.login(),!1)},s_=t=>{let n=u(Tt),e=u(Re);return n.isAuthenticated()?n.isHRAdmin()?!0:(e.navigate(["/403"]),!1):(n.login(),!1)};var so=(()=>{let n=class n{constructor(){this.menu$=new tt([])}getAll(){return this.menu$.asObservable()}change(){return this.menu$.pipe(Nl())}set(i){return this.menu$.next(i),this.menu$.asObservable()}add(i){let r=this.menu$.value;r.push(i),this.menu$.next(r)}reset(){this.menu$.next([])}buildRoute(i){let r="";return i.forEach(o=>{o&&o.trim()&&(r+="/"+o.replace(/^\/+|\/+$/g,""))}),r}getItemName(i){return this.getLevel(i)[i.length-1]}isLeafItem(i){let r=i.route===void 0,o=i.children===void 0,a=!o&&i.children?.length===0;return r||o||a}deepClone(i){return JSON.parse(JSON.stringify(i))}isJsonObjEqual(i,r){return JSON.stringify(i)===JSON.stringify(r)}isRouteEqual(i,r){return r=this.deepClone(r),r=r.filter(o=>o!==""),this.isJsonObjEqual(i,r)}getLevel(i){let r=[];return this.menu$.value.forEach(o=>{let a=[{item:o,parentNamePathList:[],realRouteArr:[]}];for(;a.length>0;){let s=[];for(let l of a){let c=l.item,d=this.deepClone(l.parentNamePathList).concat(c.name),m=this.deepClone(l.realRouteArr).concat(c.route);if(this.isRouteEqual(i,m)){r=d;break}if(!this.isLeafItem(c)){let f=c.children?.map(b=>({item:b,parentNamePathList:d,realRouteArr:m}));s=s.concat(f)}}a=s}}),r}addNamespace(i,r){i.forEach(o=>{o.name=`${r}.${o.name}`,o.children&&o.children.length>0&&this.addNamespace(o.children,o.name)})}};n.\u0275fac=function(r){return new(r||n)},n.\u0275prov=O({token:n,factory:n.\u0275fac,providedIn:"root"});let t=n;return t})();var kC;function Qde(){if(kC===void 0&&(kC=null,typeof window<"u")){let t=window;t.trustedTypes!==void 0&&(kC=t.trustedTypes.createPolicy("angular#components",{createHTML:n=>n}))}return kC}function l_(t){return Qde()?.createHTML(t)||t}function q5(t){return Error(`Unable to find icon with the name "${t}"`)}function Kde(){return Error("Could not find HttpClient for use with Angular Material icons. Please add provideHttpClient() to your providers.")}function Y5(t){return Error(`The URL provided to MatIconRegistry was not trusted as a resource URL via Angular's DomSanitizer. Attempted URL was "${t}".`)}function Q5(t){return Error(`The literal provided to MatIconRegistry was not trusted as safe HTML by Angular's DomSanitizer. Attempted literal was "${t}".`)}var Cl=class{url;svgText;options;svgElement;constructor(n,e,i){this.url=n,this.svgText=e,this.options=i}},Z5=(()=>{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,i,r,o){this._httpClient=e,this._sanitizer=i,this._errorHandler=o,this._document=r}addSvgIcon(e,i,r){return this.addSvgIconInNamespace("",e,i,r)}addSvgIconLiteral(e,i,r){return this.addSvgIconLiteralInNamespace("",e,i,r)}addSvgIconInNamespace(e,i,r,o){return this._addSvgIconConfig(e,i,new Cl(r,null,o))}addSvgIconResolver(e){return this._resolvers.push(e),this}addSvgIconLiteralInNamespace(e,i,r,o){let a=this._sanitizer.sanitize(An.HTML,r);if(!a)throw Q5(r);let s=l_(a);return this._addSvgIconConfig(e,i,new Cl("",s,o))}addSvgIconSet(e,i){return this.addSvgIconSetInNamespace("",e,i)}addSvgIconSetLiteral(e,i){return this.addSvgIconSetLiteralInNamespace("",e,i)}addSvgIconSetInNamespace(e,i,r){return this._addSvgIconSetConfig(e,new Cl(i,null,r))}addSvgIconSetLiteralInNamespace(e,i,r){let o=this._sanitizer.sanitize(An.HTML,i);if(!o)throw Q5(i);let a=l_(o);return this._addSvgIconSetConfig(e,new Cl("",a,r))}registerFontClassAlias(e,i=e){return this._fontCssClassesByAlias.set(e,i),this}classNameForFontAlias(e){return this._fontCssClassesByAlias.get(e)||e}setDefaultFontSetClass(...e){return this._defaultFontSetClass=e,this}getDefaultFontSetClass(){return this._defaultFontSetClass}getSvgIconFromUrl(e){let i=this._sanitizer.sanitize(An.RESOURCE_URL,e);if(!i)throw Y5(e);let r=this._cachedIconsByUrl.get(i);return r?Q(SC(r)):this._loadSvgIconFromConfig(new Cl(e,null)).pipe(Be(o=>this._cachedIconsByUrl.set(i,o)),se(o=>SC(o)))}getNamedSvgIcon(e,i=""){let r=K5(i,e),o=this._svgIconConfigs.get(r);if(o)return this._getSvgFromConfig(o);if(o=this._getIconConfigFromResolvers(i,e),o)return this._svgIconConfigs.set(r,o),this._getSvgFromConfig(o);let a=this._iconSetConfigs.get(i);return a?this._getSvgFromIconSetConfigs(e,a):Wn(q5(r))}ngOnDestroy(){this._resolvers=[],this._svgIconConfigs.clear(),this._iconSetConfigs.clear(),this._cachedIconsByUrl.clear()}_getSvgFromConfig(e){return e.svgText?Q(SC(this._svgElementFromConfig(e))):this._loadSvgIconFromConfig(e).pipe(se(i=>SC(i)))}_getSvgFromIconSetConfigs(e,i){let r=this._extractIconWithNameFromAnySet(e,i);if(r)return Q(r);let o=i.filter(a=>!a.svgText).map(a=>this._loadSvgIconSetFromConfig(a).pipe(fi(s=>{let c=`Loading icon set URL: ${this._sanitizer.sanitize(An.RESOURCE_URL,a.url)} failed: ${s.message}`;return this._errorHandler.handleError(new Error(c)),Q(null)})));return Ga(o).pipe(se(()=>{let a=this._extractIconWithNameFromAnySet(e,i);if(!a)throw q5(e);return a}))}_extractIconWithNameFromAnySet(e,i){for(let r=i.length-1;r>=0;r--){let o=i[r];if(o.svgText&&o.svgText.toString().indexOf(e)>-1){let a=this._svgElementFromConfig(o),s=this._extractSvgIconFromSet(a,e,o.options);if(s)return s}}return null}_loadSvgIconFromConfig(e){return this._fetchIcon(e).pipe(Be(i=>e.svgText=i),se(()=>this._svgElementFromConfig(e)))}_loadSvgIconSetFromConfig(e){return e.svgText?Q(null):this._fetchIcon(e).pipe(Be(i=>e.svgText=i))}_extractSvgIconFromSet(e,i,r){let o=e.querySelector(`[id="${i}"]`);if(!o)return null;let a=o.cloneNode(!0);if(a.removeAttribute("id"),a.nodeName.toLowerCase()==="svg")return this._setSvgAttributes(a,r);if(a.nodeName.toLowerCase()==="symbol")return this._setSvgAttributes(this._toSvgElement(a),r);let s=this._svgElementFromString(l_(""));return s.appendChild(a),this._setSvgAttributes(s,r)}_svgElementFromString(e){let i=this._document.createElement("DIV");i.innerHTML=e;let r=i.querySelector("svg");if(!r)throw Error(" tag not found");return r}_toSvgElement(e){let i=this._svgElementFromString(l_("")),r=e.attributes;for(let o=0;ol_(c)),Hr(()=>this._inProgressUrlFetches.delete(a)),Nl());return this._inProgressUrlFetches.set(a,l),l}_addSvgIconConfig(e,i,r){return this._svgIconConfigs.set(K5(e,i),r),this}_addSvgIconSetConfig(e,i){let r=this._iconSetConfigs.get(e);return r?r.push(i):this._iconSetConfigs.set(e,[i]),this}_svgElementFromConfig(e){if(!e.svgElement){let i=this._svgElementFromString(e.svgText);this._setSvgAttributes(i,e.options),e.svgElement=i}return e.svgElement}_getIconConfigFromResolvers(e,i){for(let r=0;rn?n.pathname+n.search:""}}var X5=["clip-path","color-profile","src","cursor","fill","filter","marker","marker-start","marker-mid","marker-end","mask","stroke"],iue=X5.map(t=>`[${t}]`).join(", "),nue=/^url\(['"]?#(.*?)['"]?\)$/,mt=(()=>{class t{_elementRef=u(q);_iconRegistry=u(Z5);_location=u(eue);_errorHandler=u(Tn);_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 i=this._cleanupFontValue(e);i!==this._fontSet&&(this._fontSet=i,this._updateFontIconClasses())}_fontSet;get fontIcon(){return this._fontIcon}set fontIcon(e){let i=this._cleanupFontValue(e);i!==this._fontIcon&&(this._fontIcon=i,this._updateFontIconClasses())}_fontIcon;_previousFontSetClass=[];_previousFontIconClass;_svgName;_svgNamespace;_previousPath;_elementsWithExternalReferences;_currentIconFetch=ke.EMPTY;constructor(){let e=u(new Ii("aria-hidden"),{optional:!0}),i=u(Jde,{optional:!0});i&&(i.color&&(this.color=this._defaultColor=i.color),i.fontSet&&(this.fontSet=i.fontSet)),e||this._elementRef.nativeElement.setAttribute("aria-hidden","true")}_splitIconName(e){if(!e)return["",""];let i=e.split(":");switch(i.length){case 1:return["",i[0]];case 2:return i;default:throw Error(`Invalid icon name: "${e}"`)}}ngOnInit(){this._updateFontIconClasses()}ngAfterViewChecked(){let e=this._elementsWithExternalReferences;if(e&&e.size){let i=this._location.getPathname();i!==this._previousPath&&(this._previousPath=i,this._prependPathToReferences(i))}}ngOnDestroy(){this._currentIconFetch.unsubscribe(),this._elementsWithExternalReferences&&this._elementsWithExternalReferences.clear()}_usingFontIcon(){return!this.svgIcon}_setSvgElement(e){this._clearSvgElement();let i=this._location.getPathname();this._previousPath=i,this._cacheChildrenWithExternalReferences(e),this._prependPathToReferences(i),this._elementRef.nativeElement.appendChild(e)}_clearSvgElement(){let e=this._elementRef.nativeElement,i=e.childNodes.length;for(this._elementsWithExternalReferences&&this._elementsWithExternalReferences.clear();i--;){let r=e.childNodes[i];(r.nodeType!==1||r.nodeName.toLowerCase()==="svg")&&r.remove()}}_updateFontIconClasses(){if(!this._usingFontIcon())return;let e=this._elementRef.nativeElement,i=(this.fontSet?this._iconRegistry.classNameForFontAlias(this.fontSet).split(/ +/):this._iconRegistry.getDefaultFontSetClass()).filter(r=>r.length>0);this._previousFontSetClass.forEach(r=>e.classList.remove(r)),i.forEach(r=>e.classList.add(r)),this._previousFontSetClass=i,this.fontIcon!==this._previousFontIconClass&&!i.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 i=this._elementsWithExternalReferences;i&&i.forEach((r,o)=>{r.forEach(a=>{o.setAttribute(a.name,`url('${e}#${a.value}')`)})})}_cacheChildrenWithExternalReferences(e){let i=e.querySelectorAll(iue),r=this._elementsWithExternalReferences=this._elementsWithExternalReferences||new Map;for(let o=0;o{let s=i[o],l=s.getAttribute(a),c=l?l.match(nue):null;if(c){let d=r.get(s);d||(d=[],r.set(s,d)),d.push({name:a,value:c[1]})}})}_updateSvgIcon(e){if(this._svgNamespace=null,this._svgName=null,this._currentIconFetch.unsubscribe(),e){let[i,r]=this._splitIconName(e);i&&(this._svgNamespace=i),r&&(this._svgName=r),this._currentIconFetch=this._iconRegistry.getNamedSvgIcon(r,i).pipe(lt(1)).subscribe(o=>this._setSvgElement(o),o=>{let a=`Error retrieving icon ${i}:${r}! ${o.message}`;this._errorHandler.handleError(new Error(a))})}}static \u0275fac=function(i){return new(i||t)};static \u0275cmp=E({type:t,selectors:[["mat-icon"]],hostAttrs:["role","img",1,"mat-icon","notranslate"],hostVars:10,hostBindings:function(i,r){i&2&&(X("data-mat-icon-type",r._usingFontIcon()?"font":"svg")("data-mat-icon-name",r._svgName||r.fontIcon)("data-mat-icon-namespace",r._svgNamespace||r.fontSet)("fontIcon",r._usingFontIcon()?r.fontIcon:null),it(r.color?"mat-"+r.color:""),G("mat-icon-inline",r.inline)("mat-icon-no-color",r.color!=="primary"&&r.color!=="accent"&&r.color!=="warn"))},inputs:{color:"color",inline:[2,"inline","inline",V],svgIcon:"svgIcon",fontSet:"fontSet",fontIcon:"fontIcon"},exportAs:["matIcon"],ngContentSelectors:Xde,decls:1,vars:0,template:function(i,r){i&1&&(Me(),oe(0))},styles:[`mat-icon,mat-icon.mat-primary,mat-icon.mat-accent,mat-icon.mat-warn{color:var(--mat-icon-color, inherit)}.mat-icon{-webkit-user-select:none;user-select:none;background-repeat:no-repeat;display:inline-block;fill:currentColor;height:24px;width:24px;overflow:hidden}.mat-icon.mat-icon-inline{font-size:inherit;height:inherit;line-height:inherit;width:inherit}.mat-icon.mat-ligature-font[fontIcon]::before{content:attr(fontIcon)}[dir=rtl] .mat-icon-rtl-mirror{transform:scale(-1, 1)}.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-prefix .mat-icon,.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-suffix .mat-icon{display:block}.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-prefix .mat-icon-button .mat-icon,.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})(),ot=(()=>{class t{static \u0275fac=function(i){return new(i||t)};static \u0275mod=ee({type:t});static \u0275inj=J({imports:[we,we]})}return t})();function rue(t,n){if(t&1&&(h(0,"a",3),_(1),p()),t&2){let e=C().$implicit;g(),H(e)}}function oue(t,n){if(t&1&&(h(0,"mat-icon",4),_(1,"chevron_right"),p(),h(2,"span"),_(3),me(4,"translate"),p()),t&2){let e=C().$implicit;g(3),H(Oe(4,1,e))}}function aue(t,n){if(t&1&&(h(0,"li",2),N(1,rue,2,1,"a",3),N(2,oue,5,3),p()),t&2){let e=n.$index;g(),L(e===0?1:-1),g(),L(e!==0?2:-1)}}var J5=(()=>{let n=class n{constructor(){this.router=u(Re),this.menu=u(so),this.nav=ne([]),this.navItems=[]}ngOnInit(){this.router.events.pipe(ce(i=>i instanceof vi),He(this.router)).subscribe(()=>{this.genBreadcrumb()})}genBreadcrumb(){let i=this.router.url.slice(1).split("/");this.nav().length>0?this.navItems=[...this.nav()]:(this.navItems=this.menu.getLevel(i),this.navItems.unshift("home"))}};n.\u0275fac=function(r){return new(r||n)},n.\u0275cmp=E({type:n,selectors:[["breadcrumb"]],inputs:{nav:[1,"nav"]},decls:4,vars:0,consts:[["aria-label","breadcrumb"],[1,"matero-breadcrumb"],[1,"matero-breadcrumb-item"],["href","#",1,"link"],[1,"chevron"]],template:function(r,o){r&1&&(h(0,"nav",0)(1,"ol",1),xt(2,aue,3,2,"li",2,Hi),p()()),r&2&&(g(2),Ct(o.navItems))},dependencies:[ot,mt,wr,Cr],styles:[`.matero-breadcrumb{display:flex;flex-wrap:wrap;padding:0;margin-bottom:1rem;font-size:.875rem;list-style:none}.matero-breadcrumb-item{line-height:1.125rem;text-transform:capitalize}.matero-breadcrumb-item>*{vertical-align:middle}.matero-breadcrumb-item>a.link{color:currentColor;text-decoration:none}.matero-breadcrumb-item>a.link:hover{color:currentColor;text-decoration:underline}.matero-breadcrumb-item>.chevron{width:1.125rem;height:1.125rem;font-size:1.125rem;-webkit-user-select:none;user-select:none} +`],encapsulation:2});let t=n;return t})();function sue(t,n){}var Vc=class{viewContainerRef;injector;id;role="dialog";panelClass="";hasBackdrop=!0;backdropClass="";disableClose=!1;closePredicate;width="";height="";minWidth;minHeight;maxWidth;maxHeight;positionStrategy;data=null;direction;ariaDescribedBy=null;ariaLabelledBy=null;ariaLabel=null;ariaModal=!1;autoFocus="first-tabbable";restoreFocus=!0;scrollStrategy;closeOnNavigation=!0;closeOnDestroy=!0;closeOnOverlayDetachments=!0;disableAnimations=!1;providers;container;templateContext};var cI=(()=>{class t extends dc{_elementRef=u(q);_focusTrapFactory=u(Qm);_config;_interactivityChecker=u(ac);_ngZone=u(ae);_focusMonitor=u(Yt);_renderer=u(je);_changeDetectorRef=u(ye);_injector=u(de);_platform=u(qe);_document=u(ge);_portalOutlet;_focusTrapped=new z;_focusTrap=null;_elementFocusedBeforeDialogWasOpened=null;_closeInteractionType=null;_ariaLabelledByQueue=[];_isDestroyed=!1;constructor(){super(),this._config=u(Vc,{optional:!0})||new Vc,this._config.ariaLabelledBy&&this._ariaLabelledByQueue.push(this._config.ariaLabelledBy)}_addAriaLabelledBy(e){this._ariaLabelledByQueue.push(e),this._changeDetectorRef.markForCheck()}_removeAriaLabelledBy(e){let i=this._ariaLabelledByQueue.indexOf(e);i>-1&&(this._ariaLabelledByQueue.splice(i,1),this._changeDetectorRef.markForCheck())}_contentAttached(){this._initializeFocusTrap(),this._captureInitialFocus()}_captureInitialFocus(){this._trapFocus()}ngOnDestroy(){this._focusTrapped.complete(),this._isDestroyed=!0,this._restoreFocus()}attachComponentPortal(e){this._portalOutlet.hasAttached();let i=this._portalOutlet.attachComponentPortal(e);return this._contentAttached(),i}attachTemplatePortal(e){this._portalOutlet.hasAttached();let i=this._portalOutlet.attachTemplatePortal(e);return this._contentAttached(),i}attachDomPortal=e=>{this._portalOutlet.hasAttached();let i=this._portalOutlet.attachDomPortal(e);return this._contentAttached(),i};_recaptureFocus(){this._containsFocus()||this._trapFocus()}_forceFocus(e,i){this._interactivityChecker.isFocusable(e)||(e.tabIndex=-1,this._ngZone.runOutsideAngular(()=>{let r=()=>{o(),a(),e.removeAttribute("tabindex")},o=this._renderer.listen(e,"blur",r),a=this._renderer.listen(e,"mousedown",r)})),e.focus(i)}_focusByCssSelector(e,i){let r=this._elementRef.nativeElement.querySelector(e);r&&this._forceFocus(r,i)}_trapFocus(e){this._isDestroyed||pt(()=>{let i=this._elementRef.nativeElement;switch(this._config.autoFocus){case!1:case"dialog":this._containsFocus()||i.focus(e);break;case!0:case"first-tabbable":this._focusTrap?.focusInitialElement(e)||this._focusDialogContainer(e);break;case"first-heading":this._focusByCssSelector('h1, h2, h3, h4, h5, h6, [role="heading"]',e);break;default:this._focusByCssSelector(this._config.autoFocus,e);break}this._focusTrapped.next()},{injector:this._injector})}_restoreFocus(){let e=this._config.restoreFocus,i=null;if(typeof e=="string"?i=this._document.querySelector(e):typeof e=="boolean"?i=e?this._elementFocusedBeforeDialogWasOpened:null:e&&(i=e),this._config.restoreFocus&&i&&typeof i.focus=="function"){let r=_o(),o=this._elementRef.nativeElement;(!r||r===this._document.body||r===o||o.contains(r))&&(this._focusMonitor?(this._focusMonitor.focusVia(i,this._closeInteractionType),this._closeInteractionType=null):i.focus())}this._focusTrap&&this._focusTrap.destroy()}_focusDialogContainer(e){this._elementRef.nativeElement.focus?.(e)}_containsFocus(){let e=this._elementRef.nativeElement,i=_o();return e===i||e.contains(i)}_initializeFocusTrap(){this._platform.isBrowser&&(this._focusTrap=this._focusTrapFactory.create(this._elementRef.nativeElement),this._document&&(this._elementFocusedBeforeDialogWasOpened=_o()))}static \u0275fac=function(i){return new(i||t)};static \u0275cmp=E({type:t,selectors:[["cdk-dialog-container"]],viewQuery:function(i,r){if(i&1&&ie(yr,7),i&2){let o;B(o=j())&&(r._portalOutlet=o.first)}},hostAttrs:["tabindex","-1",1,"cdk-dialog-container"],hostVars:6,hostBindings:function(i,r){i&2&&X("id",r._config.id||null)("role",r._config.role)("aria-modal",r._config.ariaModal)("aria-labelledby",r._config.ariaLabel?null:r._ariaLabelledByQueue[0])("aria-label",r._config.ariaLabel)("aria-describedby",r._config.ariaDescribedBy||null)},features:[le],decls:1,vars:0,consts:[["cdkPortalOutlet",""]],template:function(i,r){i&1&&R(0,sue,0,0,"ng-template",0)},dependencies:[yr],styles:[`.cdk-dialog-container{display:block;width:100%;height:100%;min-height:inherit;max-height:inherit} +`],encapsulation:2})}return t})(),c_=class{overlayRef;config;componentInstance;componentRef;containerInstance;disableClose;closed=new z;backdropClick;keydownEvents;outsidePointerEvents;id;_detachSubscription;constructor(n,e){this.overlayRef=n,this.config=e,this.disableClose=e.disableClose,this.backdropClick=n.backdropClick(),this.keydownEvents=n.keydownEvents(),this.outsidePointerEvents=n.outsidePointerEvents(),this.id=e.id,this.keydownEvents.subscribe(i=>{i.keyCode===27&&!this.disableClose&&!Ft(i)&&(i.preventDefault(),this.close(void 0,{focusOrigin:"keyboard"}))}),this.backdropClick.subscribe(()=>{!this.disableClose&&this._canClose()?this.close(void 0,{focusOrigin:"mouse"}):this.containerInstance._recaptureFocus?.()}),this._detachSubscription=n.detachments().subscribe(()=>{e.closeOnOverlayDetachments!==!1&&this.close()})}close(n,e){if(this._canClose(n)){let i=this.closed;this.containerInstance._closeInteractionType=e?.focusOrigin||"program",this._detachSubscription.unsubscribe(),this.overlayRef.dispose(),i.next(n),i.complete(),this.componentInstance=this.containerInstance=null}}updatePosition(){return this.overlayRef.updatePosition(),this}updateSize(n="",e=""){return this.overlayRef.updateSize({width:n,height:e}),this}addPanelClass(n){return this.overlayRef.addPanelClass(n),this}removePanelClass(n){return this.overlayRef.removePanelClass(n),this}_canClose(n){let e=this.config;return!!this.containerInstance&&(!e.closePredicate||e.closePredicate(n,e,this.componentInstance))}},lue=new T("DialogScrollStrategy",{providedIn:"root",factory:()=>{let t=u(de);return()=>uc(t)}}),cue=new T("DialogData"),due=new T("DefaultDialogConfig");function uue(t){let n=he(t),e=new U;return{valueSignal:n,get value(){return n()},change:e,ngOnDestroy(){e.complete()}}}var dI=(()=>{class t{_injector=u(de);_defaultOptions=u(due,{optional:!0});_parentDialog=u(t,{optional:!0,skipSelf:!0});_overlayContainer=u(ex);_idGenerator=u(Ze);_openDialogsAtThisLevel=[];_afterAllClosedAtThisLevel=new z;_afterOpenedAtThisLevel=new z;_ariaHiddenElements=new Map;_scrollStrategy=u(lue);get openDialogs(){return this._parentDialog?this._parentDialog.openDialogs:this._openDialogsAtThisLevel}get afterOpened(){return this._parentDialog?this._parentDialog.afterOpened:this._afterOpenedAtThisLevel}afterAllClosed=kn(()=>this.openDialogs.length?this._getAfterAllClosed():this._getAfterAllClosed().pipe(He(void 0)));constructor(){}open(e,i){let r=this._defaultOptions||new Vc;i=M(M({},r),i),i.id=i.id||this._idGenerator.getId("cdk-dialog-"),i.id&&this.getDialogById(i.id);let o=this._getOverlayConfig(i),a=Nr(this._injector,o),s=new c_(a,i),l=this._attachContainer(a,s,i);if(s.containerInstance=l,!this.openDialogs.length){let c=this._overlayContainer.getContainerElement();l._focusTrapped?l._focusTrapped.pipe(lt(1)).subscribe(()=>{this._hideNonDialogContentFromAssistiveTechnology(c)}):this._hideNonDialogContentFromAssistiveTechnology(c)}return this._attachDialogContent(e,s,l,i),this.openDialogs.push(s),s.closed.subscribe(()=>this._removeOpenDialog(s,!0)),this.afterOpened.next(s),s}closeAll(){lI(this.openDialogs,e=>e.close())}getDialogById(e){return this.openDialogs.find(i=>i.id===e)}ngOnDestroy(){lI(this._openDialogsAtThisLevel,e=>{e.config.closeOnDestroy===!1&&this._removeOpenDialog(e,!1)}),lI(this._openDialogsAtThisLevel,e=>e.close()),this._afterAllClosedAtThisLevel.complete(),this._afterOpenedAtThisLevel.complete(),this._openDialogsAtThisLevel=[]}_getOverlayConfig(e){let i=new Fr({positionStrategy:e.positionStrategy||Ds().centerHorizontally().centerVertically(),scrollStrategy:e.scrollStrategy||this._scrollStrategy(),panelClass:e.panelClass,hasBackdrop:e.hasBackdrop,direction:e.direction,minWidth:e.minWidth,minHeight:e.minHeight,maxWidth:e.maxWidth,maxHeight:e.maxHeight,width:e.width,height:e.height,disposeOnNavigation:e.closeOnNavigation,disableAnimations:e.disableAnimations});return e.backdropClass&&(i.backdropClass=e.backdropClass),i}_attachContainer(e,i,r){let o=r.injector||r.viewContainerRef?.injector,a=[{provide:Vc,useValue:r},{provide:c_,useValue:i},{provide:gh,useValue:e}],s;r.container?typeof r.container=="function"?s=r.container:(s=r.container.type,a.push(...r.container.providers(r))):s=cI;let l=new Zr(s,r.viewContainerRef,de.create({parent:o||this._injector,providers:a}));return e.attach(l).instance}_attachDialogContent(e,i,r,o){if(e instanceof te){let a=this._createInjector(o,i,r,void 0),s={$implicit:o.data,dialogRef:i};o.templateContext&&(s=M(M({},s),typeof o.templateContext=="function"?o.templateContext():o.templateContext)),r.attachTemplatePortal(new Cn(e,null,s,a))}else{let a=this._createInjector(o,i,r,this._injector),s=r.attachComponentPortal(new Zr(e,o.viewContainerRef,a));i.componentRef=s,i.componentInstance=s.instance}}_createInjector(e,i,r,o){let a=e.injector||e.viewContainerRef?.injector,s=[{provide:cue,useValue:e.data},{provide:c_,useValue:i}];return e.providers&&(typeof e.providers=="function"?s.push(...e.providers(i,e,r)):s.push(...e.providers)),e.direction&&(!a||!a.get(Vt,null,{optional:!0}))&&s.push({provide:Vt,useValue:uue(e.direction)}),de.create({parent:a||o,providers:s})}_removeOpenDialog(e,i){let r=this.openDialogs.indexOf(e);r>-1&&(this.openDialogs.splice(r,1),this.openDialogs.length||(this._ariaHiddenElements.forEach((o,a)=>{o?a.setAttribute("aria-hidden",o):a.removeAttribute("aria-hidden")}),this._ariaHiddenElements.clear(),i&&this._getAfterAllClosed().next()))}_hideNonDialogContentFromAssistiveTechnology(e){if(e.parentElement){let i=e.parentElement.children;for(let r=i.length-1;r>-1;r--){let o=i[r];o!==e&&o.nodeName!=="SCRIPT"&&o.nodeName!=="STYLE"&&!o.hasAttribute("aria-live")&&(this._ariaHiddenElements.set(o,o.getAttribute("aria-hidden")),o.setAttribute("aria-hidden","true"))}}}_getAfterAllClosed(){let e=this._parentDialog;return e?e._getAfterAllClosed():this._afterAllClosedAtThisLevel}static \u0275fac=function(i){return new(i||t)};static \u0275prov=O({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();function lI(t,n){let e=t.length;for(;e--;)n(t[e])}var ez=(()=>{class t{static \u0275fac=function(i){return new(i||t)};static \u0275mod=ee({type:t});static \u0275inj=J({providers:[dI],imports:[er,Co,ll,Co]})}return t})();function mue(t,n){}var u_=class{viewContainerRef;injector;id;role="dialog";panelClass="";hasBackdrop=!0;backdropClass="";disableClose=!1;closePredicate;width="";height="";minWidth;minHeight;maxWidth;maxHeight;position;data=null;direction;ariaDescribedBy=null;ariaLabelledBy=null;ariaLabel=null;ariaModal=!1;autoFocus="first-tabbable";restoreFocus=!0;delayFocusTrap=!0;scrollStrategy;closeOnNavigation=!0;enterAnimationDuration;exitAnimationDuration},uI="mdc-dialog--open",tz="mdc-dialog--opening",iz="mdc-dialog--closing",hue=150,pue=75,oz=(()=>{class t extends cI{_animationStateChanged=new U;_animationsEnabled=!Ye();_actionSectionCount=0;_hostElement=this._elementRef.nativeElement;_enterAnimationDuration=this._animationsEnabled?rz(this._config.enterAnimationDuration)??hue:0;_exitAnimationDuration=this._animationsEnabled?rz(this._config.exitAnimationDuration)??pue:0;_animationTimer=null;_contentAttached(){super._contentAttached(),this._startOpenAnimation()}_startOpenAnimation(){this._animationStateChanged.emit({state:"opening",totalTime:this._enterAnimationDuration}),this._animationsEnabled?(this._hostElement.style.setProperty(nz,`${this._enterAnimationDuration}ms`),this._requestAnimationFrame(()=>this._hostElement.classList.add(tz,uI)),this._waitForAnimationToComplete(this._enterAnimationDuration,this._finishDialogOpen)):(this._hostElement.classList.add(uI),Promise.resolve().then(()=>this._finishDialogOpen()))}_startExitAnimation(){this._animationStateChanged.emit({state:"closing",totalTime:this._exitAnimationDuration}),this._hostElement.classList.remove(uI),this._animationsEnabled?(this._hostElement.style.setProperty(nz,`${this._exitAnimationDuration}ms`),this._requestAnimationFrame(()=>this._hostElement.classList.add(iz)),this._waitForAnimationToComplete(this._exitAnimationDuration,this._finishDialogClose)):Promise.resolve().then(()=>this._finishDialogClose())}_updateActionSectionCount(e){this._actionSectionCount+=e,this._changeDetectorRef.markForCheck()}_finishDialogOpen=()=>{this._clearAnimationClasses(),this._openAnimationDone(this._enterAnimationDuration)};_finishDialogClose=()=>{this._clearAnimationClasses(),this._animationStateChanged.emit({state:"closed",totalTime:this._exitAnimationDuration})};_clearAnimationClasses(){this._hostElement.classList.remove(tz,iz)}_waitForAnimationToComplete(e,i){this._animationTimer!==null&&clearTimeout(this._animationTimer),this._animationTimer=setTimeout(i,e)}_requestAnimationFrame(e){this._ngZone.runOutsideAngular(()=>{typeof requestAnimationFrame=="function"?requestAnimationFrame(e):e()})}_captureInitialFocus(){this._config.delayFocusTrap||this._trapFocus()}_openAnimationDone(e){this._config.delayFocusTrap&&this._trapFocus(),this._animationStateChanged.next({state:"opened",totalTime:e})}ngOnDestroy(){super.ngOnDestroy(),this._animationTimer!==null&&clearTimeout(this._animationTimer)}attachComponentPortal(e){let i=super.attachComponentPortal(e);return i.location.nativeElement.classList.add("mat-mdc-dialog-component-host"),i}static \u0275fac=(()=>{let e;return function(r){return(e||(e=fe(t)))(r||t)}})();static \u0275cmp=E({type:t,selectors:[["mat-dialog-container"]],hostAttrs:["tabindex","-1",1,"mat-mdc-dialog-container","mdc-dialog"],hostVars:10,hostBindings:function(i,r){i&2&&(si("id",r._config.id),X("aria-modal",r._config.ariaModal)("role",r._config.role)("aria-labelledby",r._config.ariaLabel?null:r._ariaLabelledByQueue[0])("aria-label",r._config.ariaLabel)("aria-describedby",r._config.ariaDescribedBy||null),G("_mat-animation-noopable",!r._animationsEnabled)("mat-mdc-dialog-container-with-actions",r._actionSectionCount>0))},features:[le],decls:3,vars:0,consts:[[1,"mat-mdc-dialog-inner-container","mdc-dialog__container"],[1,"mat-mdc-dialog-surface","mdc-dialog__surface"],["cdkPortalOutlet",""]],template:function(i,r){i&1&&(h(0,"div",0)(1,"div",1),R(2,mue,0,0,"ng-template",2),p()())},dependencies:[yr],styles:[`.mat-mdc-dialog-container{width:100%;height:100%;display:block;box-sizing:border-box;max-height:inherit;min-height:inherit;min-width:inherit;max-width:inherit;outline:0}.cdk-overlay-pane.mat-mdc-dialog-panel{max-width:var(--mat-dialog-container-max-width, 560px);min-width:var(--mat-dialog-container-min-width, 280px)}@media(max-width: 599px){.cdk-overlay-pane.mat-mdc-dialog-panel{max-width:var(--mat-dialog-container-small-max-width, calc(100vw - 32px))}}.mat-mdc-dialog-inner-container{display:flex;flex-direction:row;align-items:center;justify-content:space-around;box-sizing:border-box;height:100%;opacity:0;transition:opacity linear var(--mat-dialog-transition-duration, 0ms);max-height:inherit;min-height:inherit;min-width:inherit;max-width:inherit}.mdc-dialog--closing .mat-mdc-dialog-inner-container{transition:opacity 75ms linear;transform:none}.mdc-dialog--open .mat-mdc-dialog-inner-container{opacity:1}._mat-animation-noopable .mat-mdc-dialog-inner-container{transition:none}.mat-mdc-dialog-surface{display:flex;flex-direction:column;flex-grow:0;flex-shrink:0;box-sizing:border-box;width:100%;height:100%;position:relative;overflow-y:auto;outline:0;transform:scale(0.8);transition:transform var(--mat-dialog-transition-duration, 0ms) cubic-bezier(0, 0, 0.2, 1);max-height:inherit;min-height:inherit;min-width:inherit;max-width:inherit;box-shadow:var(--mat-dialog-container-elevation-shadow, none);border-radius:var(--mat-dialog-container-shape, var(--mat-sys-corner-extra-large, 4px));background-color:var(--mat-dialog-container-color, var(--mat-sys-surface, white))}[dir=rtl] .mat-mdc-dialog-surface{text-align:right}.mdc-dialog--open .mat-mdc-dialog-surface,.mdc-dialog--closing .mat-mdc-dialog-surface{transform:none}._mat-animation-noopable .mat-mdc-dialog-surface{transition:none}.mat-mdc-dialog-surface::before{position:absolute;box-sizing:border-box;width:100%;height:100%;top:0;left:0;border:2px solid rgba(0,0,0,0);border-radius:inherit;content:"";pointer-events:none}.mat-mdc-dialog-title{display:block;position:relative;flex-shrink:0;box-sizing:border-box;margin:0 0 1px;padding:var(--mat-dialog-headline-padding, 6px 24px 13px)}.mat-mdc-dialog-title::before{display:inline-block;width:0;height:40px;content:"";vertical-align:0}[dir=rtl] .mat-mdc-dialog-title{text-align:right}.mat-mdc-dialog-container .mat-mdc-dialog-title{color:var(--mat-dialog-subhead-color, var(--mat-sys-on-surface, rgba(0, 0, 0, 0.87)));font-family:var(--mat-dialog-subhead-font, var(--mat-sys-headline-small-font, inherit));line-height:var(--mat-dialog-subhead-line-height, var(--mat-sys-headline-small-line-height, 1.5rem));font-size:var(--mat-dialog-subhead-size, var(--mat-sys-headline-small-size, 1rem));font-weight:var(--mat-dialog-subhead-weight, var(--mat-sys-headline-small-weight, 400));letter-spacing:var(--mat-dialog-subhead-tracking, var(--mat-sys-headline-small-tracking, 0.03125em))}.mat-mdc-dialog-content{display:block;flex-grow:1;box-sizing:border-box;margin:0;overflow:auto;max-height:65vh}.mat-mdc-dialog-content>:first-child{margin-top:0}.mat-mdc-dialog-content>:last-child{margin-bottom:0}.mat-mdc-dialog-container .mat-mdc-dialog-content{color:var(--mat-dialog-supporting-text-color, var(--mat-sys-on-surface-variant, rgba(0, 0, 0, 0.6)));font-family:var(--mat-dialog-supporting-text-font, var(--mat-sys-body-medium-font, inherit));line-height:var(--mat-dialog-supporting-text-line-height, var(--mat-sys-body-medium-line-height, 1.5rem));font-size:var(--mat-dialog-supporting-text-size, var(--mat-sys-body-medium-size, 1rem));font-weight:var(--mat-dialog-supporting-text-weight, var(--mat-sys-body-medium-weight, 400));letter-spacing:var(--mat-dialog-supporting-text-tracking, var(--mat-sys-body-medium-tracking, 0.03125em))}.mat-mdc-dialog-container .mat-mdc-dialog-content{padding:var(--mat-dialog-content-padding, 20px 24px)}.mat-mdc-dialog-container-with-actions .mat-mdc-dialog-content{padding:var(--mat-dialog-with-actions-content-padding, 20px 24px 0)}.mat-mdc-dialog-container .mat-mdc-dialog-title+.mat-mdc-dialog-content{padding-top:0}.mat-mdc-dialog-actions{display:flex;position:relative;flex-shrink:0;flex-wrap:wrap;align-items:center;box-sizing:border-box;min-height:52px;margin:0;border-top:1px solid rgba(0,0,0,0);padding:var(--mat-dialog-actions-padding, 16px 24px);justify-content:var(--mat-dialog-actions-alignment, flex-end)}@media(forced-colors: active){.mat-mdc-dialog-actions{border-top-color:CanvasText}}.mat-mdc-dialog-actions.mat-mdc-dialog-actions-align-start,.mat-mdc-dialog-actions[align=start]{justify-content:start}.mat-mdc-dialog-actions.mat-mdc-dialog-actions-align-center,.mat-mdc-dialog-actions[align=center]{justify-content:center}.mat-mdc-dialog-actions.mat-mdc-dialog-actions-align-end,.mat-mdc-dialog-actions[align=end]{justify-content:flex-end}.mat-mdc-dialog-actions .mat-button-base+.mat-button-base,.mat-mdc-dialog-actions .mat-mdc-button-base+.mat-mdc-button-base{margin-left:8px}[dir=rtl] .mat-mdc-dialog-actions .mat-button-base+.mat-button-base,[dir=rtl] .mat-mdc-dialog-actions .mat-mdc-button-base+.mat-mdc-button-base{margin-left:0;margin-right:8px}.mat-mdc-dialog-component-host{display:contents} +`],encapsulation:2})}return t})(),nz="--mat-dialog-transition-duration";function rz(t){return t==null?null:typeof t=="number"?t:t.endsWith("ms")?Ln(t.substring(0,t.length-2)):t.endsWith("s")?Ln(t.substring(0,t.length-1))*1e3:t==="0"?0:null}var d_=(function(t){return t[t.OPEN=0]="OPEN",t[t.CLOSING=1]="CLOSING",t[t.CLOSED=2]="CLOSED",t})(d_||{}),Mu=class{_ref;_config;_containerInstance;componentInstance;componentRef;disableClose;id;_afterOpened=new z;_beforeClosed=new z;_result;_closeFallbackTimeout;_state=d_.OPEN;_closeInteractionType;constructor(n,e,i){this._ref=n,this._config=e,this._containerInstance=i,this.disableClose=e.disableClose,this.id=n.id,n.addPanelClass("mat-mdc-dialog-panel"),i._animationStateChanged.pipe(ce(r=>r.state==="opened"),lt(1)).subscribe(()=>{this._afterOpened.next(),this._afterOpened.complete()}),i._animationStateChanged.pipe(ce(r=>r.state==="closed"),lt(1)).subscribe(()=>{clearTimeout(this._closeFallbackTimeout),this._finishDialogClose()}),n.overlayRef.detachments().subscribe(()=>{this._beforeClosed.next(this._result),this._beforeClosed.complete(),this._finishDialogClose()}),Je(this.backdropClick(),this.keydownEvents().pipe(ce(r=>r.keyCode===27&&!this.disableClose&&!Ft(r)))).subscribe(r=>{this.disableClose||(r.preventDefault(),az(this,r.type==="keydown"?"keyboard":"mouse"))})}close(n){let e=this._config.closePredicate;e&&!e(n,this._config,this.componentInstance)||(this._result=n,this._containerInstance._animationStateChanged.pipe(ce(i=>i.state==="closing"),lt(1)).subscribe(i=>{this._beforeClosed.next(n),this._beforeClosed.complete(),this._ref.overlayRef.detachBackdrop(),this._closeFallbackTimeout=setTimeout(()=>this._finishDialogClose(),i.totalTime+100)}),this._state=d_.CLOSING,this._containerInstance._startExitAnimation())}afterOpened(){return this._afterOpened}afterClosed(){return this._ref.closed}beforeClosed(){return this._beforeClosed}backdropClick(){return this._ref.backdropClick}keydownEvents(){return this._ref.keydownEvents}updatePosition(n){let e=this._ref.config.positionStrategy;return n&&(n.left||n.right)?n.left?e.left(n.left):e.right(n.right):e.centerHorizontally(),n&&(n.top||n.bottom)?n.top?e.top(n.top):e.bottom(n.bottom):e.centerVertically(),this._ref.updatePosition(),this}updateSize(n="",e=""){return this._ref.updateSize(n,e),this}addPanelClass(n){return this._ref.addPanelClass(n),this}removePanelClass(n){return this._ref.removePanelClass(n),this}getState(){return this._state}_finishDialogClose(){this._state=d_.CLOSED,this._ref.close(this._result,{focusOrigin:this._closeInteractionType}),this.componentInstance=null}};function az(t,n,e){return t._closeInteractionType=n,t.close(e)}var TC=new T("MatMdcDialogData"),sz=new T("mat-mdc-dialog-default-options"),lz=new T("mat-mdc-dialog-scroll-strategy",{providedIn:"root",factory:()=>{let t=u(de);return()=>uc(t)}}),En=(()=>{class t{_defaultOptions=u(sz,{optional:!0});_scrollStrategy=u(lz);_parentDialog=u(t,{optional:!0,skipSelf:!0});_idGenerator=u(Ze);_injector=u(de);_dialog=u(dI);_animationsDisabled=Ye();_openDialogsAtThisLevel=[];_afterAllClosedAtThisLevel=new z;_afterOpenedAtThisLevel=new z;dialogConfigClass=u_;_dialogRefConstructor;_dialogContainerType;_dialogDataToken;get openDialogs(){return this._parentDialog?this._parentDialog.openDialogs:this._openDialogsAtThisLevel}get afterOpened(){return this._parentDialog?this._parentDialog.afterOpened:this._afterOpenedAtThisLevel}_getAfterAllClosed(){let e=this._parentDialog;return e?e._getAfterAllClosed():this._afterAllClosedAtThisLevel}afterAllClosed=kn(()=>this.openDialogs.length?this._getAfterAllClosed():this._getAfterAllClosed().pipe(He(void 0)));constructor(){this._dialogRefConstructor=Mu,this._dialogContainerType=oz,this._dialogDataToken=TC}open(e,i){let r;i=M(M({},this._defaultOptions||new u_),i),i.id=i.id||this._idGenerator.getId("mat-mdc-dialog-"),i.scrollStrategy=i.scrollStrategy||this._scrollStrategy();let o=this._dialog.open(e,De(M({},i),{positionStrategy:Ds(this._injector).centerHorizontally().centerVertically(),disableClose:!0,closePredicate:void 0,closeOnDestroy:!1,closeOnOverlayDetachments:!1,disableAnimations:this._animationsDisabled||i.enterAnimationDuration?.toLocaleString()==="0"||i.exitAnimationDuration?.toString()==="0",container:{type:this._dialogContainerType,providers:()=>[{provide:this.dialogConfigClass,useValue:i},{provide:Vc,useValue:i}]},templateContext:()=>({dialogRef:r}),providers:(a,s,l)=>(r=new this._dialogRefConstructor(a,i,l),r.updatePosition(i?.position),[{provide:this._dialogContainerType,useValue:l},{provide:this._dialogDataToken,useValue:s.data},{provide:this._dialogRefConstructor,useValue:r}])}));return r.componentRef=o.componentRef,r.componentInstance=o.componentInstance,this.openDialogs.push(r),this.afterOpened.next(r),r.afterClosed().subscribe(()=>{let a=this.openDialogs.indexOf(r);a>-1&&(this.openDialogs.splice(a,1),this.openDialogs.length||this._getAfterAllClosed().next())}),r}closeAll(){this._closeDialogs(this.openDialogs)}getDialogById(e){return this.openDialogs.find(i=>i.id===e)}ngOnDestroy(){this._closeDialogs(this._openDialogsAtThisLevel),this._afterAllClosedAtThisLevel.complete(),this._afterOpenedAtThisLevel.complete()}_closeDialogs(e){let i=e.length;for(;i--;)e[i].close()}static \u0275fac=function(i){return new(i||t)};static \u0275prov=O({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();var cz=(()=>{class t{_dialogRef=u(Mu,{optional:!0});_elementRef=u(q);_dialog=u(En);constructor(){}ngOnInit(){this._dialogRef||(this._dialogRef=fue(this._elementRef,this._dialog.openDialogs)),this._dialogRef&&Promise.resolve().then(()=>{this._onAdd()})}ngOnDestroy(){this._dialogRef?._containerInstance&&Promise.resolve().then(()=>{this._onRemove()})}static \u0275fac=function(i){return new(i||t)};static \u0275dir=F({type:t})}return t})(),mI=(()=>{class t extends cz{id=u(Ze).getId("mat-mdc-dialog-title-");_onAdd(){this._dialogRef._containerInstance?._addAriaLabelledBy?.(this.id)}_onRemove(){this._dialogRef?._containerInstance?._removeAriaLabelledBy?.(this.id)}static \u0275fac=(()=>{let e;return function(r){return(e||(e=fe(t)))(r||t)}})();static \u0275dir=F({type:t,selectors:[["","mat-dialog-title",""],["","matDialogTitle",""]],hostAttrs:[1,"mat-mdc-dialog-title","mdc-dialog__title"],hostVars:1,hostBindings:function(i,r){i&2&&si("id",r.id)},inputs:{id:"id"},exportAs:["matDialogTitle"],features:[le]})}return t})(),hI=(()=>{class t{static \u0275fac=function(i){return new(i||t)};static \u0275dir=F({type:t,selectors:[["","mat-dialog-content",""],["mat-dialog-content"],["","matDialogContent",""]],hostAttrs:[1,"mat-mdc-dialog-content","mdc-dialog__content"],features:[ym([Pa])]})}return t})(),pI=(()=>{class t extends cz{align;_onAdd(){this._dialogRef._containerInstance?._updateActionSectionCount?.(1)}_onRemove(){this._dialogRef._containerInstance?._updateActionSectionCount?.(-1)}static \u0275fac=(()=>{let e;return function(r){return(e||(e=fe(t)))(r||t)}})();static \u0275dir=F({type:t,selectors:[["","mat-dialog-actions",""],["mat-dialog-actions"],["","matDialogActions",""]],hostAttrs:[1,"mat-mdc-dialog-actions","mdc-dialog__actions"],hostVars:6,hostBindings:function(i,r){i&2&&G("mat-mdc-dialog-actions-align-start",r.align==="start")("mat-mdc-dialog-actions-align-center",r.align==="center")("mat-mdc-dialog-actions-align-end",r.align==="end")},inputs:{align:"align"},features:[le]})}return t})();function fue(t,n){let e=t.nativeElement.parentElement;for(;e&&!e.classList.contains("mat-mdc-dialog-container");)e=e.parentElement;return e?n.find(i=>i.id===e.id):null}var Mn=(()=>{class t{static \u0275fac=function(i){return new(i||t)};static \u0275mod=ee({type:t});static \u0275inj=J({providers:[En],imports:[ez,er,Co,we,we]})}return t})();var Er=(()=>{let n=class n{constructor(){this.dialogRef=u(Mu),this.data=u(TC)}confirm(){this.dialogRef.close(!0)}cancel(){this.dialogRef.close(!1)}};n.\u0275fac=function(r){return new(r||n)},n.\u0275cmp=E({type:n,selectors:[["app-confirm-dialog"]],decls:12,vars:4,consts:[["mat-dialog-title",""],["color","warn",2,"vertical-align","middle","margin-right","8px"],["align","end"],["mat-button","",3,"click"],["mat-raised-button","","color","warn","cdkFocusInitial","",3,"click"]],template:function(r,o){r&1&&(h(0,"h2",0)(1,"mat-icon",1),_(2,"warning"),p(),_(3),p(),h(4,"mat-dialog-content")(5,"p"),_(6),p()(),h(7,"mat-dialog-actions",2)(8,"button",3),S("click",function(){return o.cancel()}),_(9),p(),h(10,"button",4),S("click",function(){return o.confirm()}),_(11),p()()),r&2&&(g(3),ve(" ",o.data.title,` +`),g(3),H(o.data.message),g(3),ve(" ",o.data.cancelText||"Cancel"," "),g(2),ve(" ",o.data.confirmText||"Delete"," "))},dependencies:[Mn,mI,pI,hI,ze,kt,ot,mt],encapsulation:2});let t=n;return t})();function _ue(t,n){if(t&1&&(h(0,"div",2),_(1),p()),t&2){let e=C();g(),H(e.title())}}function bue(t,n){if(t&1&&(h(0,"div",3),_(1),p()),t&2){let e=C();g(),H(e.message())}}var tp=(()=>{let n=class n{constructor(){this.code=ne(""),this.title=ne(""),this.message=ne("")}};n.\u0275fac=function(r){return new(r||n)},n.\u0275cmp=E({type:n,selectors:[["error-code"]],inputs:{code:[1,"code"],title:[1,"title"],message:[1,"message"]},decls:8,vars:3,consts:[[1,"matero-error-wrap"],[1,"matero-error-code"],[1,"matero-error-title"],[1,"matero-error-message"],["matButton","elevated","color","primary","routerLink","/"]],template:function(r,o){r&1&&(h(0,"div",0)(1,"div",1),_(2),p(),N(3,_ue,2,1,"div",2),N(4,bue,2,1,"div",3),h(5,"div")(6,"a",4),_(7,"Back to Home"),p()()()),r&2&&(g(2),H(o.code()),g(),L(o.title()?3:-1),g(),L(o.message()?4:-1))},dependencies:[Nn,ze,kt],styles:[`.matero-error-wrap{text-align:center}.matero-error-code{padding:1.25rem 0;font-size:10rem;text-shadow:.1325825215rem .1325825215rem 0 rgba(0,0,0,.028575),.2651650429rem .2651650429rem 0 rgba(0,0,0,.02715),.3977475644rem .3977475644rem 0 rgba(0,0,0,.025725),.5303300859rem .5303300859rem 0 rgba(0,0,0,.0243),.6629126074rem .6629126074rem 0 rgba(0,0,0,.022875),.7954951288rem .7954951288rem 0 rgba(0,0,0,.02145),.9280776503rem .9280776503rem 0 rgba(0,0,0,.020025),1.0606601718rem 1.0606601718rem 0 rgba(0,0,0,.0186),1.1932426933rem 1.1932426933rem 0 rgba(0,0,0,.017175),1.3258252147rem 1.3258252147rem 0 rgba(0,0,0,.01575),1.4584077362rem 1.4584077362rem 0 rgba(0,0,0,.014325),1.5909902577rem 1.5909902577rem 0 rgba(0,0,0,.0129),1.7235727791rem 1.7235727791rem 0 rgba(0,0,0,.011475),1.8561553006rem 1.8561553006rem 0 rgba(0,0,0,.01005),1.9887378221rem 1.9887378221rem 0 rgba(0,0,0,.008625),2.1213203436rem 2.1213203436rem 0 rgba(0,0,0,.0072),2.253902865rem 2.253902865rem 0 rgba(0,0,0,.005775),2.3864853865rem 2.3864853865rem 0 rgba(0,0,0,.00435),2.519067908rem 2.519067908rem 0 rgba(0,0,0,.002925),2.6516504294rem 2.6516504294rem 0 rgba(0,0,0,.0015)}.matero-error-title{margin:0 0 1rem;font-size:1.25rem;font-weight:500;line-height:2rem}.matero-error-message{margin:0 0 1rem;font-size:1rem;font-weight:400;line-height:1.75rem} +`],encapsulation:2});let t=n;return t})();function vue(t,n){if(t&1&&k(0,"breadcrumb",2),t&2){let e=C();y("nav",e.nav())}}var ni=(()=>{let n=class n{constructor(){this.router=u(Re),this.menu=u(so),this.title=ne(""),this.subtitle=ne(""),this.nav=ne([]),this.hideBreadcrumb=ne(!1,{transform:V}),this.titleName=Zt(()=>{let i=this.router.url.slice(1).split("/"),r=this.menu.getLevel(i);return this.title()||r[r.length-1]})}};n.\u0275fac=function(r){return new(r||n)},n.\u0275cmp=E({type:n,selectors:[["page-header"]],hostAttrs:[1,"matero-page-header"],inputs:{title:[1,"title"],subtitle:[1,"subtitle"],nav:[1,"nav"],hideBreadcrumb:[1,"hideBreadcrumb"]},decls:7,vars:5,consts:[[1,"matero-page-header-inner"],[1,"matero-page-title"],[3,"nav"]],template:function(r,o){r&1&&(h(0,"div",0)(1,"h1",1),_(2),me(3,"translate"),h(4,"small"),_(5),p()(),N(6,vue,1,1,"breadcrumb",2),p()),r&2&&(g(2),ve(" ",Oe(3,3,o.titleName())," "),g(3),H(o.subtitle()),g(),L(o.hideBreadcrumb()?-1:6))},dependencies:[J5,wr,Cr],styles:[`.matero-page-header{display:block;padding:1rem;margin-bottom:1rem;color:#ffffffde;background-color:#0074e9;border-radius:var(--mat-sys-corner-medium)}.matero-page-header .matero-breadcrumb{margin-top:.5rem;margin-bottom:0}.matero-page-title{margin:0;font-size:1.5rem;font-weight:400} +`],encapsulation:2});let t=n;return t})();var dz=(()=>{let n=class n{constructor(){this.change=new U,this.valueSignal=he("ltr")}get value(){return this.valueSignal()}set value(i){this.valueSignal.set(i),this.change.next(i)}ngOnDestroy(){this.change.complete()}};n.\u0275fac=function(r){return new(r||n)},n.\u0275prov=O({token:n,factory:n.\u0275fac,providedIn:"root"});let t=n;return t})();var uz=(()=>{let n=class n{constructor(){this.messages=[]}add(i){this.messages.push(i)}clear(){this.messages=[]}};n.\u0275fac=function(r){return new(r||n)},n.\u0275prov=O({token:n,factory:n.\u0275fac,providedIn:"root"});let t=n;return t})();var mz=(()=>{let n=class n{get(i){return JSON.parse(localStorage.getItem(i)||"{}")||{}}set(i,r){return localStorage.setItem(i,JSON.stringify(r)),!0}has(i){return!!localStorage.getItem(i)}remove(i){localStorage.removeItem(i)}clear(){localStorage.clear()}};n.\u0275fac=function(r){return new(r||n)},n.\u0275prov=O({token:n,factory:n.\u0275fac,providedIn:"root"});let t=n;return t})();var hz=(()=>{let n=class n{constructor(){this.translate=u(ia),this.paginatorIntl=new gc,this.translate.onLangChange.subscribe(i=>this.getPaginatorIntl())}getPaginatorIntl(){return this.paginatorIntl.itemsPerPageLabel=this.translate.instant("paginator.items_per_page_label"),this.paginatorIntl.previousPageLabel=this.translate.instant("paginator.previous_page_label"),this.paginatorIntl.nextPageLabel=this.translate.instant("paginator.next_page_label"),this.paginatorIntl.firstPageLabel=this.translate.instant("paginator.first_page_label"),this.paginatorIntl.lastPageLabel=this.translate.instant("paginator.last_page_label"),this.paginatorIntl.getRangeLabel=this.getRangeLabel.bind(this),this.paginatorIntl.changes.next(),this.paginatorIntl}getRangeLabel(i,r,o){if(o===0||r===0)return this.translate.instant("paginator.range_page_label_1",{length:o});o=Math.max(o,0);let a=i*r,s=a{if(t.destroyed){e.next();return}return t.onDestroy(e.next.bind(e))});return e=>e.pipe(Te(n))}function pz(t){let n=UM(t);return new Fe(e=>{let i=n?.onDestroy(()=>e.complete()),r=t.subscribe(o=>e.next(o));return()=>{r.unsubscribe(),i?.()}})}var yue=["content"],xue=["scroll"],Cue=["padding"],_z=["*"],m_=t=>({searchTerm:t});function wue(t,n){if(t&1&&(h(0,"div",3),Ge(1,6),p()),t&2){let e=C();g(),y("ngTemplateOutlet",e.headerTemplate())("ngTemplateOutletContext",Pt(2,m_,e.filterValue()))}}function Due(t,n){if(t&1&&(h(0,"div",5),Ge(1,6),p()),t&2){let e=C();g(),y("ngTemplateOutlet",e.footerTemplate())("ngTemplateOutletContext",Pt(2,m_,e.filterValue()))}}var Eue=["searchInput"],Mue=["clearButton"],kue=(t,n,e)=>({item:t,clear:n,label:e}),Sue=(t,n)=>({items:t,clear:n}),Tue=(t,n,e,i)=>({item:t,item$:n,index:e,searchTerm:i});function Iue(t,n){if(t&1&&(h(0,"div",20),_(1),p()),t&2){let e=C(2);g(),H(e.placeholder()??e.config.placeholder)}}function Aue(t,n){}function Oue(t,n){if(t&1&&R(0,Iue,2,1,"ng-template",null,1,_i)(2,Aue,0,0,"ng-template",19),t&2){let e=Se(1),i=C();g(2),y("ngTemplateOutlet",i.placeholderTemplate()||e)}}function Rue(t,n){if(t&1){let e=Y();h(0,"span",23),S("click",function(){I(e);let r=C().$implicit,o=C(2);return A(o.unselect(r))}),_(1,"\xD7"),p(),k(2,"span",24)}if(t&2){let e=C().$implicit,i=C(2);g(2),y("ngItemLabel",e.label)("escape",i.escapeHTML)}}function Pue(t,n){}function Fue(t,n){if(t&1&&(h(0,"div",22),R(1,Rue,3,2,"ng-template",null,2,_i)(3,Pue,0,0,"ng-template",12),p()),t&2){let e=n.$implicit,i=Se(2),r=C(2);G("ng-value-disabled",e.disabled),g(3),y("ngTemplateOutlet",r.labelTemplate()||i)("ngTemplateOutletContext",Rd(4,kue,e.value,r.clearItem,e.label))}}function Nue(t,n){if(t&1&&xt(0,Fue,4,8,"div",21,Mv().trackByOption,!0),t&2){let e=C();Ct(e.selectedItems)}}function Lue(t,n){}function Vue(t,n){if(t&1&&R(0,Lue,0,0,"ng-template",12),t&2){let e=C();y("ngTemplateOutlet",e.multiLabelTemplate())("ngTemplateOutletContext",wa(2,Sue,e.selectedValues,e.clearItem))}}function Bue(t,n){t&1&&k(0,"div",25)}function jue(t,n){}function Hue(t,n){if(t&1&&R(0,Bue,1,0,"ng-template",null,3,_i)(2,jue,0,0,"ng-template",19),t&2){let e=Se(1),i=C();g(2),y("ngTemplateOutlet",i.loadingSpinnerTemplate()||e)}}function zue(t,n){if(t&1&&Ge(0,19),t&2){let e=C(2);y("ngTemplateOutlet",e.clearButtonTemplate())}}function Uue(t,n){if(t&1){let e=Y();h(0,"span",27,4),S("click",function(r){I(e);let o=C(2);return A(o.handleClearClick(r))}),h(2,"span",28),_(3,"\xD7"),p()()}if(t&2){let e=C(2);y("title",VM(e.clearAllText()||e.config.clearAllText)),X("tabindex",e.tabFocusOnClear()?0:-1)}}function $ue(t,n){if(t&1&&N(0,zue,1,1,"ng-container",19)(1,Uue,4,3,"span",26),t&2){let e=C();L(e.clearButtonTemplate()?0:1)}}function Wue(t,n){if(t&1&&k(0,"span",33),t&2){let e=C().$implicit,i=C(2);y("ngItemLabel",e.label)("escape",i.escapeHTML)}}function Gue(t,n){}function que(t,n){if(t&1){let e=Y();h(0,"div",32),S("click",function(){let r=I(e).$implicit,o=C(2);return A(o.toggleItem(r))})("mouseover",function(){let r=I(e).$implicit,o=C(2);return A(o.onItemHover(r))}),R(1,Wue,1,2,"ng-template",null,5,_i)(3,Gue,0,0,"ng-template",12),p()}if(t&2){let e=n.$implicit,i=Se(2),r=C(2);G("ng-option-disabled",e.disabled)("ng-option-selected",e.selected)("ng-optgroup",e.children)("ng-option",!e.children)("ng-option-child",!!e.parent)("ng-option-marked",e===r.itemsList.markedItem),X("role",e.children?"group":"option")("aria-selected",e.selected)("id",e==null?null:e.htmlId)("aria-setsize",r.itemsList.filteredItems.length)("aria-posinset",e.index+1),g(3),y("ngTemplateOutlet",e.children?r.optgroupTemplate()||i:r.optionTemplate()||i)("ngTemplateOutletContext",wm(19,Tue,e.value,e,e.index,r.searchTerm))}}function Yue(t,n){if(t&1&&(h(0,"span")(1,"span",35),_(2),p(),_(3),p()),t&2){let e=C(3);g(2),H(e.addTagText()||e.config.addTagText),g(),ve('"',e.searchTerm,'"')}}function Que(t,n){}function Kue(t,n){if(t&1){let e=Y();h(0,"div",34),S("mouseover",function(){I(e);let r=C(2);return A(r.itemsList.unmarkItem())})("click",function(){I(e);let r=C(2);return A(r.selectTag())}),R(1,Yue,4,2,"ng-template",null,6,_i)(3,Que,0,0,"ng-template",12),p()}if(t&2){let e=Se(2),i=C(2);G("ng-option-marked",!i.itemsList.markedItem),g(3),y("ngTemplateOutlet",i.tagTemplate()||e)("ngTemplateOutletContext",Pt(4,m_,i.searchTerm))}}function Zue(t,n){if(t&1&&(h(0,"div",36),_(1),p()),t&2){let e=C(3);g(),H(e.notFoundText()??e.config.notFoundText)}}function Xue(t,n){}function Jue(t,n){if(t&1&&R(0,Zue,2,1,"ng-template",null,7,_i)(2,Xue,0,0,"ng-template",12),t&2){let e=Se(1),i=C(2);g(2),y("ngTemplateOutlet",i.notFoundTemplate()||e)("ngTemplateOutletContext",Pt(2,m_,i.searchTerm))}}function eme(t,n){if(t&1&&(h(0,"div",36),_(1),p()),t&2){let e=C(3);g(),H(e.typeToSearchText()||e.config.typeToSearchText)}}function tme(t,n){}function ime(t,n){if(t&1&&R(0,eme,2,1,"ng-template",null,8,_i)(2,tme,0,0,"ng-template",19),t&2){let e=Se(1),i=C(2);g(2),y("ngTemplateOutlet",i.typeToSearchTemplate()||e)}}function nme(t,n){if(t&1&&(h(0,"div",36),_(1),p()),t&2){let e=C(3);g(),H(e.loadingText()||e.config.loadingText)}}function rme(t,n){}function ome(t,n){if(t&1&&R(0,nme,2,1,"ng-template",null,9,_i)(2,rme,0,0,"ng-template",12),t&2){let e=Se(1),i=C(2);g(2),y("ngTemplateOutlet",i.loadingTextTemplate()||e)("ngTemplateOutletContext",Pt(2,m_,i.searchTerm))}}function ame(t,n){if(t&1){let e=Y();h(0,"ng-dropdown-panel",29),S("update",function(r){I(e);let o=C();return A(o.viewPortItems=r)})("scroll",function(r){I(e);let o=C();return A(o.scroll.emit(r))})("scrollToEnd",function(r){I(e);let o=C();return A(o.scrollToEnd.emit(r))})("outsideClick",function(){I(e);let r=C();return A(r.close())}),jt(1),xt(2,que,4,24,"div",30,Mv().trackByOption,!0),N(4,Kue,4,6,"div",31),Lt(),N(5,Jue,3,4),N(6,ime,3,1),N(7,ome,3,4),p()}if(t&2){let e=C(),i=e.appendTo()||e.config.appendTo;it(i?e.ngClass()?e.ngClass():e.classes:null),G("ng-select-multiple",e.multiple()),y("virtualScroll",e.virtualScroll()??!e.config.disableVirtualScroll??!1)("bufferAmount",e.bufferAmount())("appendTo",i)("position",e.dropdownPosition())("outsideClickEvent",e.outsideClickEvent())("headerTemplate",e.headerTemplate())("footerTemplate",e.footerTemplate())("filterValue",e.searchTerm)("items",e.itemsList.filteredItems)("showAddTag",e.showAddTag)("markedItem",e.itemsList.markedItem)("id",e.dropdownId)("ariaLabelDropdown",e.ariaLabelDropdown()),g(2),Ct(e.viewPortItems),g(2),L(e.showAddTag?4:-1),g(),L(e.showNoItemsFound()?5:-1),g(),L(e.showTypeToSearch()?6:-1),g(),L(e.loading()&&e.itemsList.filteredItems.length===0?7:-1)}}function sme(t,n){if(t&1&&_(0),t&2){let e=C();ve(" ",e.notFoundText()??e.config.notFoundText," ")}}var bz=/[&<>"']/g,lme=RegExp(bz.source),cme={"&":"&","<":"<",">":">",'"':""","'":"'"};function dme(t){return t&&lme.test(t)?t.replace(bz,n=>cme[n]):t}function Ji(t){return t!=null}function Su(t){return typeof t=="object"&&Ji(t)}function ume(t){return t instanceof Promise}function AC(t){return t instanceof Function}var mme=(()=>{let n=class n{constructor(){this.element=u(q),this.ngItemLabel=ne(),this.escape=ne(!0),Ar(()=>{this.element.nativeElement.innerHTML=this.escape()?dme(this.ngItemLabel()):this.ngItemLabel()})}};n.\u0275fac=function(r){return new(r||n)},n.\u0275dir=F({type:n,selectors:[["","ngItemLabel",""]],inputs:{ngItemLabel:[1,"ngItemLabel"],escape:[1,"escape"]}});let t=n;return t})(),OC=(()=>{let n=class n{constructor(){this.template=u(te)}};n.\u0275fac=function(r){return new(r||n)},n.\u0275dir=F({type:n,selectors:[["","ng-option-tmp",""]]});let t=n;return t})(),RC=(()=>{let n=class n{constructor(){this.template=u(te)}};n.\u0275fac=function(r){return new(r||n)},n.\u0275dir=F({type:n,selectors:[["","ng-optgroup-tmp",""]]});let t=n;return t})(),PC=(()=>{let n=class n{constructor(){this.template=u(te)}};n.\u0275fac=function(r){return new(r||n)},n.\u0275dir=F({type:n,selectors:[["","ng-label-tmp",""]]});let t=n;return t})(),FC=(()=>{let n=class n{constructor(){this.template=u(te)}};n.\u0275fac=function(r){return new(r||n)},n.\u0275dir=F({type:n,selectors:[["","ng-multi-label-tmp",""]]});let t=n;return t})(),NC=(()=>{let n=class n{constructor(){this.template=u(te)}};n.\u0275fac=function(r){return new(r||n)},n.\u0275dir=F({type:n,selectors:[["","ng-header-tmp",""]]});let t=n;return t})(),LC=(()=>{let n=class n{constructor(){this.template=u(te)}};n.\u0275fac=function(r){return new(r||n)},n.\u0275dir=F({type:n,selectors:[["","ng-footer-tmp",""]]});let t=n;return t})(),VC=(()=>{let n=class n{constructor(){this.template=u(te)}};n.\u0275fac=function(r){return new(r||n)},n.\u0275dir=F({type:n,selectors:[["","ng-notfound-tmp",""]]});let t=n;return t})(),BC=(()=>{let n=class n{constructor(){this.template=u(te)}};n.\u0275fac=function(r){return new(r||n)},n.\u0275dir=F({type:n,selectors:[["","ng-placeholder-tmp",""]]});let t=n;return t})(),jC=(()=>{let n=class n{constructor(){this.template=u(te)}};n.\u0275fac=function(r){return new(r||n)},n.\u0275dir=F({type:n,selectors:[["","ng-typetosearch-tmp",""]]});let t=n;return t})(),HC=(()=>{let n=class n{constructor(){this.template=u(te)}};n.\u0275fac=function(r){return new(r||n)},n.\u0275dir=F({type:n,selectors:[["","ng-loadingtext-tmp",""]]});let t=n;return t})(),zC=(()=>{let n=class n{constructor(){this.template=u(te)}};n.\u0275fac=function(r){return new(r||n)},n.\u0275dir=F({type:n,selectors:[["","ng-tag-tmp",""]]});let t=n;return t})(),UC=(()=>{let n=class n{constructor(){this.template=u(te)}};n.\u0275fac=function(r){return new(r||n)},n.\u0275dir=F({type:n,selectors:[["","ng-loadingspinner-tmp",""]]});let t=n;return t})(),$C=(()=>{let n=class n{constructor(){this.template=u(te)}};n.\u0275fac=function(r){return new(r||n)},n.\u0275dir=F({type:n,selectors:[["","ng-clearbutton-tmp",""]]});let t=n;return t})(),hme=(()=>{let n=class n{constructor(){this.fixedPlaceholder=!0,this.notFoundText="No items found",this.typeToSearchText="Type to search",this.addTagText="Add item",this.loadingText="Loading...",this.clearAllText="Clear all",this.disableVirtualScroll=!0,this.openOnEnter=!0,this.appearance="underline",this.tabFocusOnClear=!0,this.outsideClickEvent="click"}};n.\u0275fac=function(r){return new(r||n)},n.\u0275prov=O({token:n,factory:n.\u0275fac,providedIn:"root"});let t=n;return t})(),pme=(()=>{let n=class n{warn(i){console.warn(i)}};n.\u0275fac=function(r){return new(r||n)},n.\u0275prov=O({token:n,factory:n.\u0275fac,providedIn:"root"});let t=n;return t})();function vz(){return"axxxxxxxxxxx".replace(/[x]/g,()=>(Math.random()*16|0).toString(16))}var fme={"\u24B6":"A",\uFF21:"A",\u00C0:"A",\u00C1:"A",\u00C2:"A",\u1EA6:"A",\u1EA4:"A",\u1EAA:"A",\u1EA8:"A",\u00C3:"A",\u0100:"A",\u0102:"A",\u1EB0:"A",\u1EAE:"A",\u1EB4:"A",\u1EB2:"A",\u0226:"A",\u01E0:"A",\u00C4:"A",\u01DE:"A",\u1EA2:"A",\u00C5:"A",\u01FA:"A",\u01CD:"A",\u0200:"A",\u0202:"A",\u1EA0:"A",\u1EAC:"A",\u1EB6:"A",\u1E00:"A",\u0104:"A","\u023A":"A","\u2C6F":"A","\uA732":"AA",\u00C6:"AE",\u01FC:"AE",\u01E2:"AE","\uA734":"AO","\uA736":"AU","\uA738":"AV","\uA73A":"AV","\uA73C":"AY","\u24B7":"B",\uFF22:"B",\u1E02:"B",\u1E04:"B",\u1E06:"B","\u0243":"B",\u0182:"B",\u0181:"B","\u24B8":"C",\uFF23:"C",\u0106:"C",\u0108:"C",\u010A:"C",\u010C:"C",\u00C7:"C",\u1E08:"C",\u0187:"C","\u023B":"C","\uA73E":"C","\u24B9":"D",\uFF24:"D",\u1E0A:"D",\u010E:"D",\u1E0C:"D",\u1E10:"D",\u1E12:"D",\u1E0E:"D",\u0110:"D",\u018B:"D",\u018A:"D",\u0189:"D","\uA779":"D",\u01F1:"DZ",\u01C4:"DZ",\u01F2:"Dz",\u01C5:"Dz","\u24BA":"E",\uFF25:"E",\u00C8:"E",\u00C9:"E",\u00CA:"E",\u1EC0:"E",\u1EBE:"E",\u1EC4:"E",\u1EC2:"E",\u1EBC:"E",\u0112:"E",\u1E14:"E",\u1E16:"E",\u0114:"E",\u0116:"E",\u00CB:"E",\u1EBA:"E",\u011A:"E",\u0204:"E",\u0206:"E",\u1EB8:"E",\u1EC6:"E",\u0228:"E",\u1E1C:"E",\u0118:"E",\u1E18:"E",\u1E1A:"E",\u0190:"E",\u018E:"E","\u24BB":"F",\uFF26:"F",\u1E1E:"F",\u0191:"F","\uA77B":"F","\u24BC":"G",\uFF27:"G",\u01F4:"G",\u011C:"G",\u1E20:"G",\u011E:"G",\u0120:"G",\u01E6:"G",\u0122:"G",\u01E4:"G",\u0193:"G","\uA7A0":"G","\uA77D":"G","\uA77E":"G","\u24BD":"H",\uFF28:"H",\u0124:"H",\u1E22:"H",\u1E26:"H",\u021E:"H",\u1E24:"H",\u1E28:"H",\u1E2A:"H",\u0126:"H","\u2C67":"H","\u2C75":"H","\uA78D":"H","\u24BE":"I",\uFF29:"I",\u00CC:"I",\u00CD:"I",\u00CE:"I",\u0128:"I",\u012A:"I",\u012C:"I",\u0130:"I",\u00CF:"I",\u1E2E:"I",\u1EC8:"I",\u01CF:"I",\u0208:"I",\u020A:"I",\u1ECA:"I",\u012E:"I",\u1E2C:"I",\u0197:"I","\u24BF":"J",\uFF2A:"J",\u0134:"J","\u0248":"J","\u24C0":"K",\uFF2B:"K",\u1E30:"K",\u01E8:"K",\u1E32:"K",\u0136:"K",\u1E34:"K",\u0198:"K","\u2C69":"K","\uA740":"K","\uA742":"K","\uA744":"K","\uA7A2":"K","\u24C1":"L",\uFF2C:"L",\u013F:"L",\u0139:"L",\u013D:"L",\u1E36:"L",\u1E38:"L",\u013B:"L",\u1E3C:"L",\u1E3A:"L",\u0141:"L","\u023D":"L","\u2C62":"L","\u2C60":"L","\uA748":"L","\uA746":"L","\uA780":"L",\u01C7:"LJ",\u01C8:"Lj","\u24C2":"M",\uFF2D:"M",\u1E3E:"M",\u1E40:"M",\u1E42:"M","\u2C6E":"M",\u019C:"M","\u24C3":"N",\uFF2E:"N",\u01F8:"N",\u0143:"N",\u00D1:"N",\u1E44:"N",\u0147:"N",\u1E46:"N",\u0145:"N",\u1E4A:"N",\u1E48:"N","\u0220":"N",\u019D:"N","\uA790":"N","\uA7A4":"N",\u01CA:"NJ",\u01CB:"Nj","\u24C4":"O",\uFF2F:"O",\u00D2:"O",\u00D3:"O",\u00D4:"O",\u1ED2:"O",\u1ED0:"O",\u1ED6:"O",\u1ED4:"O",\u00D5:"O",\u1E4C:"O",\u022C:"O",\u1E4E:"O",\u014C:"O",\u1E50:"O",\u1E52:"O",\u014E:"O",\u022E:"O",\u0230:"O",\u00D6:"O",\u022A:"O",\u1ECE:"O",\u0150:"O",\u01D1:"O",\u020C:"O",\u020E:"O",\u01A0:"O",\u1EDC:"O",\u1EDA:"O",\u1EE0:"O",\u1EDE:"O",\u1EE2:"O",\u1ECC:"O",\u1ED8:"O",\u01EA:"O",\u01EC:"O",\u00D8:"O",\u01FE:"O",\u0186:"O",\u019F:"O","\uA74A":"O","\uA74C":"O",\u01A2:"OI","\uA74E":"OO",\u0222:"OU","\u24C5":"P",\uFF30:"P",\u1E54:"P",\u1E56:"P",\u01A4:"P","\u2C63":"P","\uA750":"P","\uA752":"P","\uA754":"P","\u24C6":"Q",\uFF31:"Q","\uA756":"Q","\uA758":"Q","\u024A":"Q","\u24C7":"R",\uFF32:"R",\u0154:"R",\u1E58:"R",\u0158:"R",\u0210:"R",\u0212:"R",\u1E5A:"R",\u1E5C:"R",\u0156:"R",\u1E5E:"R","\u024C":"R","\u2C64":"R","\uA75A":"R","\uA7A6":"R","\uA782":"R","\u24C8":"S",\uFF33:"S","\u1E9E":"S",\u015A:"S",\u1E64:"S",\u015C:"S",\u1E60:"S",\u0160:"S",\u1E66:"S",\u1E62:"S",\u1E68:"S",\u0218:"S",\u015E:"S","\u2C7E":"S","\uA7A8":"S","\uA784":"S","\u24C9":"T",\uFF34:"T",\u1E6A:"T",\u0164:"T",\u1E6C:"T",\u021A:"T",\u0162:"T",\u1E70:"T",\u1E6E:"T",\u0166:"T",\u01AC:"T",\u01AE:"T","\u023E":"T","\uA786":"T","\uA728":"TZ","\u24CA":"U",\uFF35:"U",\u00D9:"U",\u00DA:"U",\u00DB:"U",\u0168:"U",\u1E78:"U",\u016A:"U",\u1E7A:"U",\u016C:"U",\u00DC:"U",\u01DB:"U",\u01D7:"U",\u01D5:"U",\u01D9:"U",\u1EE6:"U",\u016E:"U",\u0170:"U",\u01D3:"U",\u0214:"U",\u0216:"U",\u01AF:"U",\u1EEA:"U",\u1EE8:"U",\u1EEE:"U",\u1EEC:"U",\u1EF0:"U",\u1EE4:"U",\u1E72:"U",\u0172:"U",\u1E76:"U",\u1E74:"U","\u0244":"U","\u24CB":"V",\uFF36:"V",\u1E7C:"V",\u1E7E:"V",\u01B2:"V","\uA75E":"V","\u0245":"V","\uA760":"VY","\u24CC":"W",\uFF37:"W",\u1E80:"W",\u1E82:"W",\u0174:"W",\u1E86:"W",\u1E84:"W",\u1E88:"W","\u2C72":"W","\u24CD":"X",\uFF38:"X",\u1E8A:"X",\u1E8C:"X","\u24CE":"Y",\uFF39:"Y",\u1EF2:"Y",\u00DD:"Y",\u0176:"Y",\u1EF8:"Y",\u0232:"Y",\u1E8E:"Y",\u0178:"Y",\u1EF6:"Y",\u1EF4:"Y",\u01B3:"Y","\u024E":"Y","\u1EFE":"Y","\u24CF":"Z",\uFF3A:"Z",\u0179:"Z",\u1E90:"Z",\u017B:"Z",\u017D:"Z",\u1E92:"Z",\u1E94:"Z",\u01B5:"Z",\u0224:"Z","\u2C7F":"Z","\u2C6B":"Z","\uA762":"Z","\u24D0":"a",\uFF41:"a",\u1E9A:"a",\u00E0:"a",\u00E1:"a",\u00E2:"a",\u1EA7:"a",\u1EA5:"a",\u1EAB:"a",\u1EA9:"a",\u00E3:"a",\u0101:"a",\u0103:"a",\u1EB1:"a",\u1EAF:"a",\u1EB5:"a",\u1EB3:"a",\u0227:"a",\u01E1:"a",\u00E4:"a",\u01DF:"a",\u1EA3:"a",\u00E5:"a",\u01FB:"a",\u01CE:"a",\u0201:"a",\u0203:"a",\u1EA1:"a",\u1EAD:"a",\u1EB7:"a",\u1E01:"a",\u0105:"a","\u2C65":"a",\u0250:"a","\uA733":"aa",\u00E6:"ae",\u01FD:"ae",\u01E3:"ae","\uA735":"ao","\uA737":"au","\uA739":"av","\uA73B":"av","\uA73D":"ay","\u24D1":"b",\uFF42:"b",\u1E03:"b",\u1E05:"b",\u1E07:"b",\u0180:"b",\u0183:"b",\u0253:"b","\u24D2":"c",\uFF43:"c",\u0107:"c",\u0109:"c",\u010B:"c",\u010D:"c",\u00E7:"c",\u1E09:"c",\u0188:"c","\u023C":"c","\uA73F":"c","\u2184":"c","\u24D3":"d",\uFF44:"d",\u1E0B:"d",\u010F:"d",\u1E0D:"d",\u1E11:"d",\u1E13:"d",\u1E0F:"d",\u0111:"d",\u018C:"d",\u0256:"d",\u0257:"d","\uA77A":"d",\u01F3:"dz",\u01C6:"dz","\u24D4":"e",\uFF45:"e",\u00E8:"e",\u00E9:"e",\u00EA:"e",\u1EC1:"e",\u1EBF:"e",\u1EC5:"e",\u1EC3:"e",\u1EBD:"e",\u0113:"e",\u1E15:"e",\u1E17:"e",\u0115:"e",\u0117:"e",\u00EB:"e",\u1EBB:"e",\u011B:"e",\u0205:"e",\u0207:"e",\u1EB9:"e",\u1EC7:"e",\u0229:"e",\u1E1D:"e",\u0119:"e",\u1E19:"e",\u1E1B:"e","\u0247":"e",\u025B:"e",\u01DD:"e","\u24D5":"f",\uFF46:"f",\u1E1F:"f",\u0192:"f","\uA77C":"f","\u24D6":"g",\uFF47:"g",\u01F5:"g",\u011D:"g",\u1E21:"g",\u011F:"g",\u0121:"g",\u01E7:"g",\u0123:"g",\u01E5:"g",\u0260:"g","\uA7A1":"g","\u1D79":"g","\uA77F":"g","\u24D7":"h",\uFF48:"h",\u0125:"h",\u1E23:"h",\u1E27:"h",\u021F:"h",\u1E25:"h",\u1E29:"h",\u1E2B:"h",\u1E96:"h",\u0127:"h","\u2C68":"h","\u2C76":"h",\u0265:"h",\u0195:"hv","\u24D8":"i",\uFF49:"i",\u00EC:"i",\u00ED:"i",\u00EE:"i",\u0129:"i",\u012B:"i",\u012D:"i",\u00EF:"i",\u1E2F:"i",\u1EC9:"i",\u01D0:"i",\u0209:"i",\u020B:"i",\u1ECB:"i",\u012F:"i",\u1E2D:"i",\u0268:"i",\u0131:"i","\u24D9":"j",\uFF4A:"j",\u0135:"j",\u01F0:"j","\u0249":"j","\u24DA":"k",\uFF4B:"k",\u1E31:"k",\u01E9:"k",\u1E33:"k",\u0137:"k",\u1E35:"k",\u0199:"k","\u2C6A":"k","\uA741":"k","\uA743":"k","\uA745":"k","\uA7A3":"k","\u24DB":"l",\uFF4C:"l",\u0140:"l",\u013A:"l",\u013E:"l",\u1E37:"l",\u1E39:"l",\u013C:"l",\u1E3D:"l",\u1E3B:"l",\u017F:"l",\u0142:"l",\u019A:"l",\u026B:"l","\u2C61":"l","\uA749":"l","\uA781":"l","\uA747":"l",\u01C9:"lj","\u24DC":"m",\uFF4D:"m",\u1E3F:"m",\u1E41:"m",\u1E43:"m",\u0271:"m",\u026F:"m","\u24DD":"n",\uFF4E:"n",\u01F9:"n",\u0144:"n",\u00F1:"n",\u1E45:"n",\u0148:"n",\u1E47:"n",\u0146:"n",\u1E4B:"n",\u1E49:"n",\u019E:"n",\u0272:"n",\u0149:"n","\uA791":"n","\uA7A5":"n",\u01CC:"nj","\u24DE":"o",\uFF4F:"o",\u00F2:"o",\u00F3:"o",\u00F4:"o",\u1ED3:"o",\u1ED1:"o",\u1ED7:"o",\u1ED5:"o",\u00F5:"o",\u1E4D:"o",\u022D:"o",\u1E4F:"o",\u014D:"o",\u1E51:"o",\u1E53:"o",\u014F:"o",\u022F:"o",\u0231:"o",\u00F6:"o",\u022B:"o",\u1ECF:"o",\u0151:"o",\u01D2:"o",\u020D:"o",\u020F:"o",\u01A1:"o",\u1EDD:"o",\u1EDB:"o",\u1EE1:"o",\u1EDF:"o",\u1EE3:"o",\u1ECD:"o",\u1ED9:"o",\u01EB:"o",\u01ED:"o",\u00F8:"o",\u01FF:"o",\u0254:"o","\uA74B":"o","\uA74D":"o",\u0275:"o",\u01A3:"oi",\u0223:"ou","\uA74F":"oo","\u24DF":"p",\uFF50:"p",\u1E55:"p",\u1E57:"p",\u01A5:"p","\u1D7D":"p","\uA751":"p","\uA753":"p","\uA755":"p","\u24E0":"q",\uFF51:"q","\u024B":"q","\uA757":"q","\uA759":"q","\u24E1":"r",\uFF52:"r",\u0155:"r",\u1E59:"r",\u0159:"r",\u0211:"r",\u0213:"r",\u1E5B:"r",\u1E5D:"r",\u0157:"r",\u1E5F:"r","\u024D":"r",\u027D:"r","\uA75B":"r","\uA7A7":"r","\uA783":"r","\u24E2":"s",\uFF53:"s",\u00DF:"s",\u015B:"s",\u1E65:"s",\u015D:"s",\u1E61:"s",\u0161:"s",\u1E67:"s",\u1E63:"s",\u1E69:"s",\u0219:"s",\u015F:"s","\u023F":"s","\uA7A9":"s","\uA785":"s",\u1E9B:"s","\u24E3":"t",\uFF54:"t",\u1E6B:"t",\u1E97:"t",\u0165:"t",\u1E6D:"t",\u021B:"t",\u0163:"t",\u1E71:"t",\u1E6F:"t",\u0167:"t",\u01AD:"t",\u0288:"t","\u2C66":"t","\uA787":"t","\uA729":"tz","\u24E4":"u",\uFF55:"u",\u00F9:"u",\u00FA:"u",\u00FB:"u",\u0169:"u",\u1E79:"u",\u016B:"u",\u1E7B:"u",\u016D:"u",\u00FC:"u",\u01DC:"u",\u01D8:"u",\u01D6:"u",\u01DA:"u",\u1EE7:"u",\u016F:"u",\u0171:"u",\u01D4:"u",\u0215:"u",\u0217:"u",\u01B0:"u",\u1EEB:"u",\u1EE9:"u",\u1EEF:"u",\u1EED:"u",\u1EF1:"u",\u1EE5:"u",\u1E73:"u",\u0173:"u",\u1E77:"u",\u1E75:"u",\u0289:"u","\u24E5":"v",\uFF56:"v",\u1E7D:"v",\u1E7F:"v",\u028B:"v","\uA75F":"v",\u028C:"v","\uA761":"vy","\u24E6":"w",\uFF57:"w",\u1E81:"w",\u1E83:"w",\u0175:"w",\u1E87:"w",\u1E85:"w",\u1E98:"w",\u1E89:"w","\u2C73":"w","\u24E7":"x",\uFF58:"x",\u1E8B:"x",\u1E8D:"x","\u24E8":"y",\uFF59:"y",\u1EF3:"y",\u00FD:"y",\u0177:"y",\u1EF9:"y",\u0233:"y",\u1E8F:"y",\u00FF:"y",\u1EF7:"y",\u1E99:"y",\u1EF5:"y",\u01B4:"y","\u024F":"y","\u1EFF":"y","\u24E9":"z",\uFF5A:"z",\u017A:"z",\u1E91:"z",\u017C:"z",\u017E:"z",\u1E93:"z",\u1E95:"z",\u01B6:"z",\u0225:"z","\u0240":"z","\u2C6C":"z","\uA763":"z",\u0386:"\u0391",\u0388:"\u0395",\u0389:"\u0397",\u038A:"\u0399",\u03AA:"\u0399",\u038C:"\u039F",\u038E:"\u03A5",\u03AB:"\u03A5",\u038F:"\u03A9",\u03AC:"\u03B1",\u03AD:"\u03B5",\u03AE:"\u03B7",\u03AF:"\u03B9",\u03CA:"\u03B9",\u0390:"\u03B9",\u03CC:"\u03BF",\u03CD:"\u03C5",\u03CB:"\u03C5",\u03B0:"\u03C5",\u03C9:"\u03C9",\u03C2:"\u03C3"};function IC(t){let n=e=>fme[e]||e;return t.replace(/[^\u0000-\u007E]/g,n)}var gI=class{constructor(n,e){this._ngSelect=n,this._selectionModel=e,this._items=[],this._filteredItems=[],this._markedIndex=-1}get items(){return this._items}get filteredItems(){return this._filteredItems}get markedIndex(){return this._markedIndex}get selectedItems(){return this._selectionModel.value}get markedItem(){return this._filteredItems[this._markedIndex]}get noItemsToSelect(){return this._ngSelect.hideSelected()&&this._items.length===this.selectedItems.length}get maxItemsSelected(){return this._ngSelect.multiple()&&this._ngSelect.maxSelectedItems()<=this.selectedItems.length}get lastSelectedItem(){let n=this.selectedItems.length-1;for(;n>=0;n--){let e=this.selectedItems[n];if(!e.disabled)return e}return null}setItems(n){this._items=n.map((i,r)=>this.mapItem(i,r));let e=this._ngSelect.groupBy();e?(this._groups=this._groupBy(this._items,e),this._items=this._flatten(this._groups)):(this._groups=new Map,this._groups.set(void 0,this._items)),this._filteredItems=[...this._items]}select(n){if(n.selected||this.maxItemsSelected)return;let e=this._ngSelect.multiple();e||this.clearSelected(),this._selectionModel.select(n,e,this._ngSelect.selectableGroupAsModel()),this._ngSelect.hideSelected()&&this._hideSelected(n)}unselect(n){if(!n.selected)return;let e=this._ngSelect.multiple();this._selectionModel.unselect(n,e),this._ngSelect.hideSelected()&&Ji(n.index)&&e&&this._showSelected(n)}findItem(n){let e;return this._ngSelect.compareWith()?e=i=>this._ngSelect.compareWith()(i.value,n):this._ngSelect.bindValue()?e=i=>!i.children&&this.resolveNested(i.value,this._ngSelect.bindValue())===n:e=i=>i.value===n||!i.children&&i.label&&i.label===this.resolveNested(n,this._ngSelect.bindLabel()),this._items.find(i=>e(i))}addItem(n){let e=this.mapItem(n,this._items.length);return this._items.push(e),this._filteredItems.push(e),e}clearSelected(n=!1){this._selectionModel.clear(n),this._items.forEach(e=>{e.selected=n&&e.selected&&e.disabled,e.marked=!1}),this._ngSelect.hideSelected()&&this.resetFilteredItems()}findByLabel(n){return n=IC(n).toLocaleLowerCase(),this.filteredItems.find(e=>IC(e.label).toLocaleLowerCase().substr(0,n.length)===n)}filter(n){if(!n){this.resetFilteredItems();return}this._filteredItems=[],n=this._ngSelect.searchFn()?n:IC(n).toLocaleLowerCase();let e=this._ngSelect.searchFn()||this._defaultSearchFn,i=this._ngSelect.hideSelected();for(let r of Array.from(this._groups.keys())){let o=[];for(let a of this._groups.get(r)){if(i&&(a.parent&&a.parent.selected||a.selected))continue;let s=this._ngSelect.searchFn()?a.value:a;e(n,s)&&o.push(a)}if(o.length>0){let[a]=o.slice(-1);if(a.parent){let s=this._items.find(l=>l===a.parent);this._filteredItems.push(s)}this._filteredItems.push(...o)}}}resetFilteredItems(){this._filteredItems.length!==this._items.length&&(this._ngSelect.hideSelected()&&this.selectedItems.length>0?this._filteredItems=this._items.filter(n=>!n.selected):this._filteredItems=this._items)}unmarkItem(){this._markedIndex=-1}markNextItem(){this._stepToItem(1)}markPreviousItem(){this._stepToItem(-1)}markItem(n){this._markedIndex=this._filteredItems.indexOf(n)}markSelectedOrDefault(n){if(this._filteredItems.length===0)return;let e=this._getLastMarkedIndex();e>-1?this._markedIndex=e:this._markedIndex=n?this.filteredItems.findIndex(i=>!i.disabled):-1}resolveNested(n,e){if(!Su(n))return n;if(e.indexOf(".")===-1)return n[e];{let i=e.split("."),r=n;for(let o=0,a=i.length;othis._ngSelect.compareWith()(o.value,e.value));else{let o=i?this.resolveNested(e.value,i):e.value;r=Ji(o)?this.findItem(o):null}this._selectionModel.unselect(e,n),this._selectionModel.select(r||e,n,this._ngSelect.selectableGroupAsModel())}this._ngSelect.hideSelected()&&(this._filteredItems=this.filteredItems.filter(e=>this.selectedItems.indexOf(e)===-1))}_showSelected(n){if(this._filteredItems.push(n),n.parent){let e=n.parent;this._filteredItems.find(r=>r===e)||this._filteredItems.push(e)}else if(n.children)for(let e of n.children)e.selected=!1,this._filteredItems.push(e);this._filteredItems=[...this._filteredItems.sort((e,i)=>e.index-i.index)]}_hideSelected(n){this._filteredItems=this._filteredItems.filter(e=>e!==n),n.parent?n.parent.children.every(i=>i.selected)&&(this._filteredItems=this._filteredItems.filter(i=>i!==n.parent)):n.children&&(this._filteredItems=this.filteredItems.filter(e=>e.parent!==n))}_defaultSearchFn(n,e){return IC(e.label).toLocaleLowerCase().indexOf(n)>-1}_getNextItemIndex(n){return n>0?this._markedIndex>=this._filteredItems.length-1?0:this._markedIndex+1:this._markedIndex<=0?this._filteredItems.length-1:this._markedIndex-1}_stepToItem(n){this._filteredItems.length===0||this._filteredItems.every(e=>e.disabled)||(this._markedIndex=this._getNextItemIndex(n),this.markedItem.disabled&&this._stepToItem(n))}_getLastMarkedIndex(){if(this._ngSelect.hideSelected()||this._markedIndex>-1&&this.markedItem===void 0)return-1;let n=this._filteredItems.indexOf(this.lastSelectedItem);return this.lastSelectedItem&&n<0?-1:Math.max(this.markedIndex,n)}_groupBy(n,e){let i=new Map;if(n.length===0)return i;if(Array.isArray(n[0].value[e])){for(let a of n){let s=(a.value[e]||[]).map((l,c)=>this.mapItem(l,c));i.set(a,s)}return i}let r=AC(this._ngSelect.groupBy()),o=a=>{let s=r?e(a.value):a.value[e];return Ji(s)?s:void 0};for(let a of n){let s=o(a),l=i.get(s);l?l.push(a):i.set(s,[a])}return i}_flatten(n){let e=AC(this._ngSelect.groupBy()),i=[];for(let r of Array.from(n.keys())){let o=i.length;if(r===void 0){let m=n.get(void 0)||[];i.push(...m.map(f=>(f.index=o++,f)));continue}let a=Su(r),s={label:a?"":String(r),children:void 0,parent:null,index:o++,disabled:!this._ngSelect.selectableGroup(),htmlId:vz()},l=e?this._ngSelect.bindLabel():this._ngSelect.groupBy(),c=this._ngSelect.groupValue()||(()=>a?r.value:{[l]:r}),d=n.get(r).map(m=>(m.parent=s,m.children=void 0,m.index=o++,m));s.children=d,s.value=c(r,d.map(m=>m.value)),i.push(s),i.push(...d)}return i}},yz=(()=>{let n=class n{constructor(){this._dimensions={itemHeight:0,panelHeight:0,itemsPerViewport:0}}get dimensions(){return this._dimensions}calculateItems(i,r,o){let a=this._dimensions,s=a.itemHeight*r,c=Math.max(0,i)/s*r,d=Math.min(r,Math.ceil(c)+(a.itemsPerViewport+1)),f=Math.max(0,d-a.itemsPerViewport),b=Math.min(f,Math.floor(c)),v=a.itemHeight*Math.ceil(b)-a.itemHeight*Math.min(b,o);return v=isNaN(v)?0:v,b=isNaN(b)?-1:b,d=isNaN(d)?-1:d,b-=o,b=Math.max(0,b),d+=o,d=Math.min(r,d),{topPadding:v,scrollHeight:s,start:b,end:d}}setDimensions(i,r){let o=Math.max(1,Math.floor(r/i));this._dimensions={itemHeight:i,panelHeight:r,itemsPerViewport:o}}getScrollTo(i,r,o){let{panelHeight:a}=this.dimensions,s=i+r,l=o,c=l+a;return a>=s&&o===i?null:s>c?l+s-c:i<=l?i:null}};n.\u0275fac=function(r){return new(r||n)},n.\u0275prov=O({token:n,factory:n.\u0275fac});let t=n;return t})(),fz=["top","right","bottom","left"],gme=typeof requestAnimationFrame<"u"?G_:U_,fI=(()=>{let n=class n{get currentPosition(){return this._currentPosition}get itemsLength(){return this._itemsLength}set itemsLength(i){i!==this._itemsLength&&(this._itemsLength=i,this._onItemsLengthChanged())}get _startOffset(){if(this.markedItem()){let{itemHeight:i,panelHeight:r}=this._panelService.dimensions,o=this.markedItem().index*i;return r>o?0:o}return 0}constructor(){this._renderer=u(je),this._zone=u(ae),this._panelService=u(yz),this._document=u(ge,{optional:!0}),this._destroyRef=u(nn),this._dropdown=u(q).nativeElement,this.items=ne([]),this.showAddTag=ne(!1,{transform:V}),this.markedItem=ne(void 0),this.position=ne("auto"),this.appendTo=ne(void 0),this.bufferAmount=ne(void 0),this.virtualScroll=ne(!1,{transform:V}),this.headerTemplate=ne(void 0),this.footerTemplate=ne(void 0),this.filterValue=ne(null),this.ariaLabelDropdown=ne(null),this.outsideClickEvent=ne("click"),this.update=bi(),this.scroll=bi(),this.scrollToEnd=bi(),this.outsideClick=bi(),this.contentElementRef=qn("content",{read:q}),this.scrollElementRef=qn("scroll",{read:q}),this.paddingElementRef=qn("padding",{read:q}),this._virtualPadding=Zt(()=>this.paddingElementRef()?.nativeElement),this._scrollablePanel=Zt(()=>this.scrollElementRef()?.nativeElement),this._contentPanel=Zt(()=>this.contentElementRef()?.nativeElement),this._scrollToEndFired=!1,this._updateScrollHeight=!1,this._lastScrollPosition=0,this._destroyRef.onDestroy(()=>{this.appendTo()&&this._renderer.removeChild(this._dropdown.parentNode,this._dropdown)})}ngOnInit(){this._select=this._dropdown.parentElement,this._handleScroll(),this._handleOutsideClick(),this._appendDropdown(),this._setupMousedownListener()}ngOnChanges(i){if(i.items){let r=i.items;this._onItemsOrShowAddTagChange(r.currentValue,this.showAddTag(),r.firstChange)}if(i.showAddTag){let r=i.showAddTag;this._onItemsOrShowAddTagChange(this.items(),r.currentValue,r.firstChange)}}scrollTo(i,r=!1){if(!i)return;let o=this.items().indexOf(i);if(o<0||o>=this.itemsLength)return;let a;if(this.virtualScroll()){let s=this._panelService.dimensions.itemHeight;a=this._panelService.getScrollTo(o*s,s,this._lastScrollPosition)}else{let s=this._dropdown.querySelector(`#${i.htmlId}`),l=r?s.offsetTop:this._lastScrollPosition;a=this._panelService.getScrollTo(s.offsetTop,s.clientHeight,l)}Ji(a)&&(this._scrollablePanel().scrollTop=a)}scrollToTag(){let i=this._scrollablePanel();i.scrollTop=i.scrollHeight-i.clientHeight}adjustPosition(){this._updateYPosition()}_handleDropdownPosition(){this._currentPosition=this._calculateCurrentPosition(this._dropdown),fz.includes(this._currentPosition)?this._updateDropdownClass(this._currentPosition):this._updateDropdownClass("bottom"),this.appendTo()&&this._updateYPosition(),this._dropdown.style.opacity="1"}_updateDropdownClass(i){fz.forEach(o=>{let a=`ng-select-${o}`;this._renderer.removeClass(this._dropdown,a),this._renderer.removeClass(this._select,a)});let r=`ng-select-${i}`;this._renderer.addClass(this._dropdown,r),this._renderer.addClass(this._select,r)}_handleScroll(){this._zone.runOutsideAngular(()=>{this._scrollablePanel()&&zs(this._scrollablePanel(),"scroll").pipe(ku(this._destroyRef),Pl(0,gme)).subscribe(i=>{let r=i.target;r&&"scrollTop"in r&&this._onContentScrolled(r.scrollTop)})})}_handleOutsideClick(){this._document&&this._zone.runOutsideAngular(()=>{zs(this._document,this.outsideClickEvent(),{capture:!0}).pipe(ku(this._destroyRef)).subscribe(i=>this._checkToClose(i))})}_checkToClose(i){if(this._select.contains(i.target)||this._dropdown.contains(i.target))return;let r=i.path||i.composedPath&&i.composedPath();i.target&&i.target.shadowRoot&&r&&r[0]&&this._select.contains(r[0])||this._zone.run(()=>this.outsideClick.emit())}_onItemsOrShowAddTagChange(i=[],r,o){this._scrollToEndFired=!1,this.itemsLength=i.length,r&&i.length&&this.itemsLength++,this.virtualScroll()?this._updateItemsRange(o):(this._setVirtualHeight(),this._updateItems(o))}_updateItems(i){this.update.emit(this.items()),i!==!1&&this._zone.runOutsideAngular(()=>{Promise.resolve().then(()=>{let r=this._scrollablePanel().clientHeight;this._panelService.setDimensions(0,r),this._handleDropdownPosition(),this.scrollTo(this.markedItem(),i)})})}_updateItemsRange(i){this._zone.runOutsideAngular(()=>{this._measureDimensions().then(()=>{i?(this._renderItemsRange(this._startOffset),this._handleDropdownPosition()):this._renderItemsRange()})})}_onContentScrolled(i){this.virtualScroll()&&this._renderItemsRange(i),this._lastScrollPosition=i,this._fireScrollToEnd(i)}_updateVirtualHeight(i){this._updateScrollHeight&&(this._virtualPadding().style.height=`${i}px`,this._updateScrollHeight=!1)}_setVirtualHeight(){this._virtualPadding()&&(this._virtualPadding().style.height="0px")}_onItemsLengthChanged(){this._updateScrollHeight=!0}_renderItemsRange(i=null){if(i&&this._lastScrollPosition===i)return;i=i||this._scrollablePanel().scrollTop;let r=this._panelService.calculateItems(i,this.itemsLength,this.bufferAmount());this._updateVirtualHeight(r.scrollHeight),this._contentPanel().style.transform=`translateY(${r.topPadding}px)`,this._zone.run(()=>{this.update.emit(this.items().slice(r.start,r.end)),this.scroll.emit({start:r.start,end:r.end})}),Ji(i)&&this._lastScrollPosition===0&&(this._scrollablePanel().scrollTop=i,this._lastScrollPosition=i)}_measureDimensions(){if(this._panelService.dimensions.itemHeight>0||this.itemsLength===0)return Promise.resolve(this._panelService.dimensions);let[i]=this.items();return this.update.emit([i]),Promise.resolve().then(()=>{let o=this._dropdown.querySelector(`#${i.htmlId}`).clientHeight;this._virtualPadding().style.height=`${o*this.itemsLength}px`;let a=this._scrollablePanel().clientHeight;return this._panelService.setDimensions(o,a),this._panelService.dimensions})}_fireScrollToEnd(i){if(this._scrollToEndFired||i===0)return;let r=this.virtualScroll()?this._virtualPadding():this._contentPanel();i+this._dropdown.clientHeight>=r.clientHeight-1&&(this._zone.run(()=>this.scrollToEnd.emit()),this._scrollToEndFired=!0)}_calculateCurrentPosition(i){let r=this.position();if(r!=="auto")return r;let o=this._select.getBoundingClientRect(),a=document.documentElement.scrollTop||document.body.scrollTop,s=o.top+window.pageYOffset,l=o.height,c=i.getBoundingClientRect().height;return s+l+c>a+document.documentElement.clientHeight?"top":"bottom"}_appendDropdown(){if(this.appendTo()){if(this._parent=this._dropdown.shadowRoot?this._dropdown.shadowRoot.querySelector(this.appendTo()):document.querySelector(this.appendTo()),!this._parent)throw new Error(`appendTo selector ${this.appendTo()} did not found any parent element`);this._updateXPosition(),this._parent.appendChild(this._dropdown)}}_updateXPosition(){let i=this._select.getBoundingClientRect(),r=this._parent.getBoundingClientRect(),o=document.documentElement.dir==="rtl",a=i.left-r.left;if(o){let s=r.right-i.right;this._dropdown.style.right=s+"px",this._dropdown.style.left="auto"}else this._dropdown.style.left=a+"px",this._dropdown.style.right="auto";this._dropdown.style.width=i.width+"px",this._dropdown.style.minWidth=i.width+"px"}_updateYPosition(){let i=this._select.getBoundingClientRect(),r=this._parent.getBoundingClientRect(),o=i.height;if(this._currentPosition==="top"){let a=r.bottom-i.bottom;this._dropdown.style.bottom=a+o+"px",this._dropdown.style.top="auto"}else if(this._currentPosition==="bottom"){let a=i.top-r.top;this._dropdown.style.top=a+o+"px",this._dropdown.style.bottom="auto"}}_setupMousedownListener(){this._zone.runOutsideAngular(()=>{zs(this._dropdown,"mousedown").pipe(ku(this._destroyRef)).subscribe(i=>{i.target.tagName!=="INPUT"&&i.preventDefault()})})}};n.\u0275fac=function(r){return new(r||n)},n.\u0275cmp=E({type:n,selectors:[["ng-dropdown-panel"]],viewQuery:function(r,o){r&1&&(Pn(o.contentElementRef,yue,5,q),Pn(o.scrollElementRef,xue,5,q),Pn(o.paddingElementRef,Cue,5,q)),r&2&&Ho(3)},inputs:{items:[1,"items"],showAddTag:[1,"showAddTag"],markedItem:[1,"markedItem"],position:[1,"position"],appendTo:[1,"appendTo"],bufferAmount:[1,"bufferAmount"],virtualScroll:[1,"virtualScroll"],headerTemplate:[1,"headerTemplate"],footerTemplate:[1,"footerTemplate"],filterValue:[1,"filterValue"],ariaLabelDropdown:[1,"ariaLabelDropdown"],outsideClickEvent:[1,"outsideClickEvent"]},outputs:{update:"update",scroll:"scroll",scrollToEnd:"scrollToEnd",outsideClick:"outsideClick"},features:[Ae],ngContentSelectors:_z,decls:9,vars:7,consts:[["scroll",""],["padding",""],["content",""],[1,"ng-dropdown-header"],["role","listbox",1,"ng-dropdown-panel-items","scroll-host"],[1,"ng-dropdown-footer"],[3,"ngTemplateOutlet","ngTemplateOutletContext"]],template:function(r,o){r&1&&(Me(),N(0,wue,2,4,"div",3),h(1,"div",4,0),k(3,"div",null,1),h(5,"div",null,2),oe(7),p()(),N(8,Due,2,4,"div",5)),r&2&&(L(o.headerTemplate()?0:-1),g(),X("aria-label",o.ariaLabelDropdown()),g(2),G("total-padding",o.virtualScroll()),g(2),G("scrollable-content",o.virtualScroll()&&o.items().length),g(3),L(o.footerTemplate()?8:-1))},dependencies:[Fn],encapsulation:2,changeDetection:0});let t=n;return t})(),gz=(()=>{let n=class n{constructor(){this.value=ne(),this.disabled=ne(!1,{transform:V}),this.elementRef=u(q),this.label=he(""),pt(()=>{let i=(this.elementRef.nativeElement.innerHTML||"").trim();i!==this.label()&&this.label.set(i)})}};n.\u0275fac=function(r){return new(r||n)},n.\u0275cmp=E({type:n,selectors:[["ng-option"]],inputs:{value:[1,"value"],disabled:[1,"disabled"]},ngContentSelectors:_z,decls:1,vars:0,template:function(r,o){r&1&&(Me(),oe(0))},encapsulation:2,changeDetection:0});let t=n;return t})(),Ps=(function(t){return t.Tab="Tab",t.Enter="Enter",t.Esc="Escape",t.Space=" ",t.ArrowUp="ArrowUp",t.ArrowDown="ArrowDown",t.Backspace="Backspace",t})(Ps||{});function xz(){return new _I}var _I=class{constructor(){this._selected=[]}get value(){return this._selected}select(n,e,i){if(n.selected=!0,(!n.children||!e&&i)&&this._selected.push(n),e)if(n.parent){let r=n.parent.children.length,o=n.parent.children.filter(a=>a.selected).length;n.parent.selected=r===o}else n.children&&(this._setChildrenSelectedState(n.children,!0),this._removeChildren(n),i&&this._activeChildren(n)?this._selected=[...this._selected.filter(r=>r.parent!==n),n]:this._selected=[...this._selected,...n.children.filter(r=>!r.disabled)])}unselect(n,e){if(this._selected=this._selected.filter(i=>i!==n),n.selected=!1,e)if(n.parent&&n.parent.selected){let i=n.parent.children;this._removeParent(n.parent),this._removeChildren(n.parent),this._selected.push(...i.filter(r=>r!==n&&!r.disabled)),n.parent.selected=!1}else n.children&&(this._setChildrenSelectedState(n.children,!1),this._removeChildren(n))}clear(n){this._selected=n?this._selected.filter(e=>e.disabled):[]}_setChildrenSelectedState(n,e){for(let i of n)i.disabled||(i.selected=e)}_removeChildren(n){this._selected=[...this._selected.filter(e=>e.parent!==n),...n.children.filter(e=>e.parent===n&&e.disabled&&e.selected)]}_removeParent(n){this._selected=this._selected.filter(e=>e!==n)}_activeChildren(n){return n.children.every(e=>!e.disabled||e.selected)}},Cz=new T("ng-select-selection-model"),wz=(()=>{let n=class n{constructor(){this.classes=u(new Ii("class"),{optional:!0}),this.config=u(hme),this._cd=u(ye),this._console=u(pme),this._destroyRef=u(nn),this._disabled=he(!1),this.ariaLabelDropdown=ne("Options List"),this.ariaLabel=ne(void 0),this.markFirst=ne(!0,{transform:V}),this.placeholder=ne(this.config.placeholder),this.fixedPlaceholder=ne(!0),this.notFoundText=ne(void 0),this.typeToSearchText=ne(void 0),this.preventToggleOnRightClick=ne(!1),this.addTagText=ne(void 0),this.loadingText=ne(void 0),this.clearAllText=ne(void 0),this.dropdownPosition=ne("auto"),this.appendTo=ne(void 0),this.outsideClickEvent=ne(this.config.outsideClickEvent),this.loading=ne(!1,{transform:V}),this.closeOnSelect=ne(!0,{transform:V}),this.hideSelected=ne(!1,{transform:V}),this.selectOnTab=ne(!1,{transform:V}),this.openOnEnter=ne(void 0,{transform:V}),this.maxSelectedItems=ne(void 0,{transform:ct}),this.groupBy=ne(void 0),this.groupValue=ne(void 0),this.bufferAmount=ne(4,{transform:ct}),this.virtualScroll=ne(void 0,{transform:V}),this.selectableGroup=ne(!1,{transform:V}),this.tabFocusOnClearButton=ne(),this.selectableGroupAsModel=ne(!0,{transform:V}),this.searchFn=ne(null),this.trackByFn=ne(null),this.clearOnBackspace=ne(!0,{transform:V}),this.labelForId=ne(null),this.inputAttrs=ne({}),this.tabIndex=ne(void 0,{transform:ct}),this.readonly=ne(!1,{transform:V}),this.searchWhileComposing=ne(!0,{transform:V}),this.minTermLength=ne(0,{transform:ct}),this.editableSearchTerm=ne(!1,{transform:V}),this.ngClass=ne(null),this.typeahead=ne(void 0),this.multiple=ne(!1,{transform:V}),this.addTag=ne(!1),this.searchable=ne(!0,{transform:V}),this.clearable=ne(!0,{transform:V}),this.deselectOnClick=ne(),this.clearSearchOnAdd=ne(void 0),this.compareWith=ne(void 0,{transform:a=>{if(a!=null&&!AC(a))throw Error("`compareWith` must be a function.");return a}}),this.keyDownFn=ne(a=>!0),this.bindLabel=Em(void 0),this.bindValue=Em(void 0),this.appearance=Em(void 0),this.isOpen=Em(!1),this.items=Em([]),this.blurEvent=bi({alias:"blur"}),this.focusEvent=bi({alias:"focus"}),this.changeEvent=bi({alias:"change"}),this.openEvent=bi({alias:"open"}),this.closeEvent=bi({alias:"close"}),this.searchEvent=bi({alias:"search"}),this.clearEvent=bi({alias:"clear"}),this.addEvent=bi({alias:"add"}),this.removeEvent=bi({alias:"remove"}),this.scroll=bi({alias:"scroll"}),this.scrollToEnd=bi({alias:"scrollToEnd"}),this.disabled=Zt(()=>this.readonly()||this._disabled()),this.clearSearchOnAddValue=Zt(()=>Ji(this.clearSearchOnAdd())?this.clearSearchOnAdd():Ji(this.config.clearSearchOnAdd)?this.config.clearSearchOnAdd:this.closeOnSelect()),this.deselectOnClickValue=Zt(()=>Ji(this.deselectOnClick())?this.deselectOnClick():Ji(this.config.deselectOnClick)?this.config.deselectOnClick:this.multiple()),this.optionTemplate=fr(OC,{read:te}),this.optgroupTemplate=fr(RC,{read:te}),this.labelTemplate=fr(PC,{read:te}),this.multiLabelTemplate=fr(FC,{read:te}),this.headerTemplate=fr(NC,{read:te}),this.footerTemplate=fr(LC,{read:te}),this.notFoundTemplate=fr(VC,{read:te}),this.placeholderTemplate=fr(BC,{read:te}),this.typeToSearchTemplate=fr(jC,{read:te}),this.loadingTextTemplate=fr(HC,{read:te}),this.tagTemplate=fr(zC,{read:te}),this.loadingSpinnerTemplate=fr(UC,{read:te}),this.clearButtonTemplate=fr($C,{read:te}),this.ngOptions=r2(gz,{descendants:!0}),this.dropdownPanel=qn(Kt(()=>fI)),this.searchInput=qn("searchInput"),this.clearButton=qn("clearButton"),this.dropdownId=vz(),this.escapeHTML=!0,this.viewPortItems=[],this.tabFocusOnClear=he(!0),this.autoFocus=u(new Ii("autofocus"),{optional:!0}),this._defaultLabel="label",this._editableSearchTerm=Zt(()=>this.editableSearchTerm()&&!this.multiple()),this._injector=u(de),this._isComposing=!1,this._keyPress$=new z,this._pressedKeys=[],this._searchTerm=he(null),this._validTerm=Zt(()=>{let a=this._searchTerm()?.trim();return a&&a.length>=this.minTermLength()}),this.clearItem=a=>{let s=this.selectedItems.find(l=>l.value===a);this.unselect(s)},this.trackByOption=(a,s)=>this.trackByFn()?this.trackByFn()(s.value):s,this._onChange=a=>{},this._onTouched=()=>{};let i=this.config,r=u(Cz,{optional:!0}),o=u(q);this._mergeGlobalConfig(i),this.itemsList=new gI(this,r?r():xz()),this.element=o.nativeElement}get filtered(){return!!this.searchTerm&&this.searchable()||this._isComposing}get focused(){return this._focused}get searchTerm(){return this._searchTerm()}get selectedItems(){return this.itemsList.selectedItems}get selectedValues(){return this.selectedItems.map(i=>i.value)}get hasValue(){return this.selectedItems.length>0}get currentPanelPosition(){if(this.dropdownPanel())return this.dropdownPanel().currentPosition}get showAddTag(){if(!this._validTerm())return!1;let i=this.searchTerm.toLowerCase().trim();return this.addTag()&&!this.itemsList.filteredItems.some(r=>r.label.toLowerCase()===i)&&(!this.hideSelected()&&this.isOpen()||!this.selectedItems.some(r=>r.label.toLowerCase()===i))&&!this.loading()}ngOnInit(){this._handleKeyPresses(),this._setInputAttributes()}ngOnChanges(i){i.multiple&&this.itemsList.clearSelected(),i.items&&(this._itemsAreUsed=!0,this._setItems(i.items.currentValue||[])),i.isOpen&&(this._manualOpen=Ji(i.isOpen.currentValue)),i.groupBy&&(i.items||this._setItems([...this.items()])),i.inputAttrs&&this._setInputAttributes(),this._setTabFocusOnClear()}ngAfterViewInit(){this._itemsAreUsed||(this.escapeHTML=!1,this._setItemsFromNgOptions()),Ji(this.autoFocus)&&this.focus()}handleKeyDown(i){let r=i.key;if(Object.values(Ps).includes(r)){if(this.keyDownFn()(i)===!1)return;this.handleKeyCode(i)}else r&&r.length===1&&this._keyPress$.next(r.toLocaleLowerCase())}handleKeyCode(i){let r=i.target;this.clearButton()&&this.clearButton().nativeElement===r?this.handleKeyCodeClear(i):this.handleKeyCodeInput(i)}handleKeyCodeInput(i){switch(i.key){case Ps.ArrowDown:this._handleArrowDown(i);break;case Ps.ArrowUp:this._handleArrowUp(i);break;case Ps.Space:this._handleSpace(i);break;case Ps.Enter:this._handleEnter(i);break;case Ps.Tab:this._handleTab(i);break;case Ps.Esc:this.close(),i.preventDefault();break;case Ps.Backspace:this._handleBackspace();break}}handleKeyCodeClear(i){switch(i.key){case Ps.Enter:this.handleClearClick(),i.preventDefault();break}}handleMousedown(i){if(this.disabled())return;if(this.preventToggleOnRightClick()&&i.button===2)return!1;let r=i.target;if(r.tagName!=="INPUT"&&i.preventDefault(),!r.classList.contains("ng-clear-wrapper")){if(r.classList.contains("ng-arrow-wrapper")){this.handleArrowClick();return}r.classList.contains("ng-value-icon")||(this._focused||this.focus(),this.searchable()?this.open():this.toggle())}}handleArrowClick(){this.isOpen()?this.close():this.open()}handleClearClick(i){this.hasValue&&(this.itemsList.clearSelected(!0),this._updateNgModel()),this._clearSearch(),this.focus(),this.clearEvent.emit(),this._onSelectionChanged()}clearModel(){this.clearable()&&(this.itemsList.clearSelected(),this._updateNgModel())}writeValue(i){this.itemsList.clearSelected(),this._handleWriteValue(i),this._editableSearchTerm()&&this._setSearchTermFromItems(),this._cd.markForCheck()}registerOnChange(i){this._onChange=i}registerOnTouched(i){this._onTouched=i}setDisabledState(i){this._disabled.set(i),this._cd.markForCheck()}toggle(){this.isOpen()?this.close():this.open()}open(){this.disabled()||this.isOpen()||this._manualOpen||!this.typeahead()?.observed&&!this.addTag()&&this.itemsList.noItemsToSelect||(this.isOpen.set(!0),this.itemsList.markSelectedOrDefault(this.markFirst()),this.openEvent.emit(),this.searchTerm||this.focus(),this.detectChanges())}close(){!this.isOpen()||this._manualOpen||(this.isOpen.set(!1),this._isComposing=!1,this._editableSearchTerm()?this.itemsList.resetFilteredItems():this._clearSearch(),this.itemsList.unmarkItem(),this._onTouched(),this.closeEvent.emit(),this._cd.markForCheck())}toggleItem(i){!i||i.disabled||this.disabled()||(this.deselectOnClickValue()&&i.selected?this.unselect(i):this.select(i),this._editableSearchTerm()&&this._setSearchTermFromItems())}select(i){i.selected||(this.itemsList.select(i),this.clearSearchOnAddValue()&&!this._editableSearchTerm()&&this._clearSearch(),this._updateNgModel(),this.multiple()&&this.addEvent.emit(i.value)),(this.closeOnSelect()||this.itemsList.noItemsToSelect)&&this.close(),this._onSelectionChanged()}focus(){this.searchInput().nativeElement.focus()}blur(){this.searchInput().nativeElement.blur()}unselect(i){i&&(this.itemsList.unselect(i),this.focus(),this._updateNgModel(),this.removeEvent.emit(i.value),this._onSelectionChanged())}selectTag(){let i;AC(this.addTag())?i=this.addTag()(this.searchTerm):i=this._primitive?this.searchTerm:{[this.bindLabel()]:this.searchTerm};let r=o=>this.typeahead()?.observed||!this.isOpen()?this.itemsList.mapItem(o,null):this.itemsList.addItem(o);ume(i)?i.then(o=>this.select(r(o))).catch(()=>{}):i&&this.select(r(i))}showClear(){return this.clearable()&&(this.hasValue||this.searchTerm)&&!this.disabled()}focusOnClear(){this.blur(),this.clearButton()&&this.clearButton().nativeElement.focus()}showNoItemsFound(){let i=this.itemsList.filteredItems.length===0;return(i&&!this.typeahead()?.observed&&!this.loading()||i&&this.typeahead()?.observed&&this._validTerm()&&!this.loading())&&!this.showAddTag}showTypeToSearch(){return this.itemsList.filteredItems.length===0&&this.typeahead()?.observed&&!this._validTerm()&&!this.loading()}onCompositionStart(){this._isComposing=!0}onCompositionEnd(i){this._isComposing=!1,!this.searchWhileComposing()&&this.filter(i)}filter(i){this._isComposing&&!this.searchWhileComposing()||(this._searchTerm.set(i),this.typeahead()?.observed&&(this._validTerm()||this.minTermLength()===0)&&this.typeahead().next(i),this.typeahead()?.observed||(this.itemsList.filter(i),this.isOpen()&&this.itemsList.markSelectedOrDefault(this.markFirst())),this.searchEvent.emit({term:i,items:this.itemsList.filteredItems.map(r=>r.value)}),this.open())}onInputFocus(i){this._focused||(this._editableSearchTerm()&&this._setSearchTermFromItems(),this.element.classList.add("ng-select-focused"),this.focusEvent.emit(i),this._focused=!0)}onInputBlur(i){this.element.classList.remove("ng-select-focused"),this.blurEvent.emit(i),!this.isOpen()&&!this.disabled()&&this._onTouched(),this._editableSearchTerm()&&this._setSearchTermFromItems(),this._focused=!1}onItemHover(i){i.disabled||this.itemsList.markItem(i)}detectChanges(){this._cd.destroyed||this._cd.detectChanges()}_setSearchTermFromItems(){let i=this.selectedItems?.[0];this._searchTerm.set(i?.label??null)}_setItems(i){let r=i[0];this.bindLabel.set(this.bindLabel()||this._defaultLabel),this._primitive=Ji(r)?!Su(r):this._primitive||this.bindLabel()===this._defaultLabel,this.itemsList.setItems(i),i.length>0&&this.hasValue&&this.itemsList.mapSelectedItems(),this.isOpen()&&Ji(this.searchTerm)&&!this.typeahead()?.observed&&this.itemsList.filter(this.searchTerm),(this.typeahead()?.observed||this.isOpen())&&this.itemsList.markSelectedOrDefault(this.markFirst())}_setItemsFromNgOptions(){Ar(()=>{let i=this.ngOptions();this.bindLabel.set(this._defaultLabel);let r=i.map(o=>({$ngOptionValue:o.value(),$ngOptionLabel:o.elementRef.nativeElement.innerHTML,disabled:o.disabled()}))??[];this.items.set(r),this.itemsList.setItems(r),this.hasValue&&this.itemsList.mapSelectedItems(),this._cd.detectChanges(),i.map(o=>({option:o,item:this.itemsList.findItem(o.value())})).filter(({item:o})=>Ji(o)).forEach(({option:o,item:a})=>{a.disabled=o.disabled(),a.label=o.label()||a.label})},{injector:this._injector})}_isValidWriteValue(i){if(!Ji(i)||this.multiple()&&i===""||Array.isArray(i)&&i.length===0)return!1;let r=o=>!Ji(this.compareWith())&&Su(o)&&this.bindValue()?(this._console.warn(`Setting object(${JSON.stringify(o)}) as your model with bindValue is not allowed unless [compareWith] is used.`),!1):!0;return this.multiple()?Array.isArray(i)?i.every(o=>r(o)):(this._console.warn("Multiple select ngModel should be array."),!1):r(i)}_handleWriteValue(i){if(!this._isValidWriteValue(i))return;let r=o=>{let a=this.itemsList.findItem(o);if(a)this.itemsList.select(a);else{let s=Su(o),l=!s&&!this.bindValue();s||l?this.itemsList.select(this.itemsList.mapItem(o,null)):this.bindValue()&&(a={[this.bindLabel()]:null,[this.bindValue()]:o},this.itemsList.select(this.itemsList.mapItem(a,null)))}};this.multiple()?i.forEach(o=>r(o)):r(i)}_handleKeyPresses(){this.searchable()||this._keyPress$.pipe(ku(this._destroyRef),Be(i=>this._pressedKeys.push(i)),Rt(200),ce(()=>this._pressedKeys.length>0),se(()=>this._pressedKeys.join(""))).subscribe(i=>{let r=this.itemsList.findByLabel(i);r&&(this.isOpen()?(this.itemsList.markItem(r),this._scrollToMarked(),this._cd.markForCheck()):this.select(r)),this._pressedKeys=[]})}_setInputAttributes(){let i=this.searchInput().nativeElement,r=M({type:"text",autocorrect:"off",autocapitalize:"off",autocomplete:"off","aria-controls":this.dropdownId},this.inputAttrs());for(let o of Object.keys(r))i.setAttribute(o,r[o])}_setTabFocusOnClear(){this.tabFocusOnClear.set(Ji(this.tabFocusOnClearButton())?!!this.tabFocusOnClearButton():this.config.tabFocusOnClear)}_updateNgModel(){let i=[];for(let o of this.selectedItems)if(this.bindValue()){let a=null;if(o.children){let s=this.groupValue()?this.bindValue():this.groupBy();a=o.value[s||this.groupBy()]}else a=this.itemsList.resolveNested(o.value,this.bindValue());i.push(a)}else i.push(o.value);let r=this.selectedItems.map(o=>o.value);this.multiple()?(this._onChange(i),this.changeEvent.emit(r)):(this._onChange(Ji(i[0])?i[0]:null),this.changeEvent.emit(r[0])),this._cd.markForCheck()}_clearSearch(){this.searchTerm&&(this._changeSearch(null),this.itemsList.resetFilteredItems())}_changeSearch(i){this._searchTerm.set(i),this.typeahead()?.observed&&this.typeahead().next(i)}_scrollToMarked(){!this.isOpen()||!this.dropdownPanel()||this.dropdownPanel().scrollTo(this.itemsList.markedItem)}_scrollToTag(){!this.isOpen()||!this.dropdownPanel()||this.dropdownPanel().scrollToTag()}_onSelectionChanged(){let i=this.appendTo()??this.config.appendTo;this.isOpen()&&this.deselectOnClickValue()&&i&&(this._cd.detectChanges(),this.dropdownPanel().adjustPosition())}_handleTab(i){if(this.isOpen()===!1){if(this.showClear()&&!i.shiftKey&&this.tabFocusOnClear())this.focusOnClear(),i.preventDefault();else if(!this.addTag())return}this.selectOnTab()?this.itemsList.markedItem?(this.toggleItem(this.itemsList.markedItem),i.preventDefault()):this.showAddTag?(this.selectTag(),i.preventDefault()):this.close():this.close()}_handleEnter(i){let r=this.openOnEnter()??this.config.openOnEnter;if(this.isOpen()||this._manualOpen)this.itemsList.markedItem?this.toggleItem(this.itemsList.markedItem):this.showAddTag&&this.selectTag();else if(r)this.open();else return;i.preventDefault()}_handleSpace(i){this.isOpen()||this._manualOpen||(this.open(),i.preventDefault())}_handleArrowDown(i){this._nextItemIsTag(1)?(this.itemsList.unmarkItem(),this._scrollToTag()):(this.itemsList.markNextItem(),this._scrollToMarked()),this.open(),i.preventDefault()}_handleArrowUp(i){this.isOpen()&&(this._nextItemIsTag(-1)?(this.itemsList.unmarkItem(),this._scrollToTag()):(this.itemsList.markPreviousItem(),this._scrollToMarked()),i.preventDefault())}_nextItemIsTag(i){let r=this.itemsList.markedIndex+i;return this.addTag()&&this.searchTerm&&this.itemsList.markedItem&&(r<0||r===this.itemsList.filteredItems.length)}_handleBackspace(){this.searchTerm||!this.clearable()||!this.clearOnBackspace()||!this.hasValue||(this.multiple()?this.unselect(this.itemsList.lastSelectedItem):this.clearModel())}_mergeGlobalConfig(i){this.bindValue.set(this.bindValue()||i.bindValue),this.bindLabel.set(this.bindLabel()||i.bindLabel),this.appearance.set(this.appearance()||i.appearance),this._setTabFocusOnClear()}getVirtualScroll(i){return Ji(this.virtualScroll)?this.virtualScroll():this.isVirtualScrollDisabled(i)}isVirtualScrollDisabled(i){return Ji(i.disableVirtualScroll)?!i.disableVirtualScroll:!1}};n.\u0275fac=function(r){return new(r||n)},n.\u0275cmp=E({type:n,selectors:[["ng-select"]],contentQueries:function(r,o,a){r&1&&(Rn(a,o.optionTemplate,OC,5,te),Rn(a,o.optgroupTemplate,RC,5,te),Rn(a,o.labelTemplate,PC,5,te),Rn(a,o.multiLabelTemplate,FC,5,te),Rn(a,o.headerTemplate,NC,5,te),Rn(a,o.footerTemplate,LC,5,te),Rn(a,o.notFoundTemplate,VC,5,te),Rn(a,o.placeholderTemplate,BC,5,te),Rn(a,o.typeToSearchTemplate,jC,5,te),Rn(a,o.loadingTextTemplate,HC,5,te),Rn(a,o.tagTemplate,zC,5,te),Rn(a,o.loadingSpinnerTemplate,UC,5,te),Rn(a,o.clearButtonTemplate,$C,5,te),Rn(a,o.ngOptions,gz,5)),r&2&&Ho(14)},viewQuery:function(r,o){r&1&&(Pn(o.dropdownPanel,fI,5),Pn(o.searchInput,Eue,5),Pn(o.clearButton,Mue,5)),r&2&&Ho(3)},hostVars:20,hostBindings:function(r,o){r&1&&S("keydown",function(s){return o.handleKeyDown(s)}),r&2&&G("ng-select",!0)("ng-select-single",!o.multiple())("ng-select-typeahead",o.typeahead())("ng-select-multiple",o.multiple())("ng-select-taggable",o.addTag())("ng-select-searchable",o.searchable())("ng-select-clearable",o.clearable())("ng-select-opened",o.isOpen())("ng-select-filtered",o.filtered)("ng-select-disabled",o.disabled())},inputs:{ariaLabelDropdown:[1,"ariaLabelDropdown"],ariaLabel:[1,"ariaLabel"],markFirst:[1,"markFirst"],placeholder:[1,"placeholder"],fixedPlaceholder:[1,"fixedPlaceholder"],notFoundText:[1,"notFoundText"],typeToSearchText:[1,"typeToSearchText"],preventToggleOnRightClick:[1,"preventToggleOnRightClick"],addTagText:[1,"addTagText"],loadingText:[1,"loadingText"],clearAllText:[1,"clearAllText"],dropdownPosition:[1,"dropdownPosition"],appendTo:[1,"appendTo"],outsideClickEvent:[1,"outsideClickEvent"],loading:[1,"loading"],closeOnSelect:[1,"closeOnSelect"],hideSelected:[1,"hideSelected"],selectOnTab:[1,"selectOnTab"],openOnEnter:[1,"openOnEnter"],maxSelectedItems:[1,"maxSelectedItems"],groupBy:[1,"groupBy"],groupValue:[1,"groupValue"],bufferAmount:[1,"bufferAmount"],virtualScroll:[1,"virtualScroll"],selectableGroup:[1,"selectableGroup"],tabFocusOnClearButton:[1,"tabFocusOnClearButton"],selectableGroupAsModel:[1,"selectableGroupAsModel"],searchFn:[1,"searchFn"],trackByFn:[1,"trackByFn"],clearOnBackspace:[1,"clearOnBackspace"],labelForId:[1,"labelForId"],inputAttrs:[1,"inputAttrs"],tabIndex:[1,"tabIndex"],readonly:[1,"readonly"],searchWhileComposing:[1,"searchWhileComposing"],minTermLength:[1,"minTermLength"],editableSearchTerm:[1,"editableSearchTerm"],ngClass:[1,"ngClass"],typeahead:[1,"typeahead"],multiple:[1,"multiple"],addTag:[1,"addTag"],searchable:[1,"searchable"],clearable:[1,"clearable"],deselectOnClick:[1,"deselectOnClick"],clearSearchOnAdd:[1,"clearSearchOnAdd"],compareWith:[1,"compareWith"],keyDownFn:[1,"keyDownFn"],bindLabel:[1,"bindLabel"],bindValue:[1,"bindValue"],appearance:[1,"appearance"],isOpen:[1,"isOpen"],items:[1,"items"]},outputs:{bindLabel:"bindLabelChange",bindValue:"bindValueChange",appearance:"appearanceChange",isOpen:"isOpenChange",items:"itemsChange",blurEvent:"blur",focusEvent:"focus",changeEvent:"change",openEvent:"open",closeEvent:"close",searchEvent:"search",clearEvent:"clear",addEvent:"add",removeEvent:"remove",scroll:"scroll",scrollToEnd:"scrollToEnd"},exportAs:["ngSelect"],features:[Ce([{provide:tr,useExisting:Kt(()=>n),multi:!0},yz]),Ae],decls:15,vars:20,consts:[["searchInput",""],["defaultPlaceholderTemplate",""],["defaultLabelTemplate",""],["defaultLoadingSpinnerTemplate",""],["clearButton",""],["defaultOptionTemplate",""],["defaultTagTemplate",""],["defaultNotFoundTemplate",""],["defaultTypeToSearchTemplate",""],["defaultLoadingTextTemplate",""],[1,"ng-select-container",3,"mousedown"],[1,"ng-value-container"],[3,"ngTemplateOutlet","ngTemplateOutletContext"],[1,"ng-input"],["aria-autocomplete","list","role","combobox",3,"blur","change","compositionend","compositionstart","focus","input","disabled","readOnly","value"],[1,"ng-arrow-wrapper"],[1,"ng-arrow"],[1,"ng-dropdown-panel",3,"virtualScroll","bufferAmount","appendTo","position","outsideClickEvent","headerTemplate","footerTemplate","filterValue","items","showAddTag","markedItem","ng-select-multiple","class","id","ariaLabelDropdown"],["aria-atomic","true","aria-live","polite","role","status",1,"ng-visually-hidden"],[3,"ngTemplateOutlet"],[1,"ng-placeholder"],[1,"ng-value",3,"ng-value-disabled"],[1,"ng-value"],["aria-hidden","true",1,"ng-value-icon","left",3,"click"],[1,"ng-value-label",3,"ngItemLabel","escape"],[1,"ng-spinner-loader"],["role","button","tabindex","0",1,"ng-clear-wrapper",3,"title"],["role","button","tabindex","0",1,"ng-clear-wrapper",3,"click","title"],["aria-hidden","true",1,"ng-clear"],[1,"ng-dropdown-panel",3,"update","scroll","scrollToEnd","outsideClick","virtualScroll","bufferAmount","appendTo","position","outsideClickEvent","headerTemplate","footerTemplate","filterValue","items","showAddTag","markedItem","id","ariaLabelDropdown"],[1,"ng-option",3,"ng-option-disabled","ng-option-selected","ng-optgroup","ng-option","ng-option-child","ng-option-marked"],["role","option",1,"ng-option",3,"ng-option-marked"],[1,"ng-option",3,"click","mouseover"],[1,"ng-option-label",3,"ngItemLabel","escape"],["role","option",1,"ng-option",3,"mouseover","click"],[1,"ng-tag-label"],[1,"ng-option","ng-option-disabled"]],template:function(r,o){if(r&1){let a=Y();h(0,"div",10),S("mousedown",function(l){return I(a),A(o.handleMousedown(l))}),h(1,"div",11),N(2,Oue,3,1),N(3,Nue,2,0),N(4,Vue,1,5,null,12),h(5,"div",13)(6,"input",14,0),S("blur",function(l){return I(a),A(o.onInputBlur(l))})("change",function(l){return I(a),A(l.stopPropagation())})("compositionend",function(){I(a);let l=Se(7);return A(o.onCompositionEnd(l.value))})("compositionstart",function(){return I(a),A(o.onCompositionStart())})("focus",function(l){return I(a),A(o.onInputFocus(l))})("input",function(){I(a);let l=Se(7);return A(o.filter(l.value))}),p()()(),N(8,Hue,3,1),N(9,$ue,2,1),h(10,"span",15),k(11,"span",16),p()(),N(12,ame,8,21,"ng-dropdown-panel",17),h(13,"div",18),N(14,sme,1,1),p()}r&2&&(G("ng-appearance-outline",o.appearance()==="outline")("ng-has-value",o.hasValue),g(2),L(o.selectedItems.length===0&&!o.searchTerm||(o.fixedPlaceholder()??o.config.fixedPlaceholder)?2:-1),g(),L((!o.multiLabelTemplate()||!o.multiple())&&o.selectedItems.length>0?3:-1),g(),L(o.multiple()&&o.multiLabelTemplate()&&o.selectedValues.length>0?4:-1),g(2),y("disabled",o.disabled())("readOnly",!o.searchable()||o.itemsList.maxItemsSelected)("value",o.searchTerm??""),X("aria-activedescendant",o.isOpen()?o.itemsList==null||o.itemsList.markedItem==null?null:o.itemsList.markedItem.htmlId:null)("aria-controls",o.isOpen()?o.dropdownId:null)("aria-expanded",o.isOpen())("aria-label",o.ariaLabel())("id",o.labelForId())("tabindex",o.tabIndex()),g(2),L(o.loading()?8:-1),g(),L(o.showClear()?9:-1),g(3),L(o.isOpen()?12:-1),g(2),L(o.isOpen()&&o.showNoItemsFound()?14:-1))},dependencies:[Fn,mme,fI],styles:[`@charset "UTF-8";.ng-select{position:relative;display:block;-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box}.ng-select div,.ng-select input,.ng-select span{-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box}.ng-select [hidden]{display:none}.ng-select.ng-select-searchable .ng-select-container .ng-value-container .ng-input{opacity:1}.ng-select.ng-select-opened .ng-select-container{z-index:1001}.ng-select.ng-select-disabled .ng-select-container .ng-value-container .ng-placeholder,.ng-select.ng-select-disabled .ng-select-container .ng-value-container .ng-value{-webkit-user-select:none;user-select:none;cursor:default}.ng-select.ng-select-disabled .ng-arrow-wrapper{cursor:default}.ng-select.ng-select-filtered .ng-placeholder{display:none}.ng-select .ng-select-container{cursor:default;display:flex;outline:none;overflow:hidden;position:relative;width:100%}.ng-select .ng-select-container .ng-value-container{display:flex;flex:1}.ng-select .ng-select-container .ng-value-container .ng-input{opacity:0}.ng-select .ng-select-container .ng-value-container .ng-input>input{box-sizing:content-box;background:none transparent;border:0 none;box-shadow:none;outline:none;padding:0;cursor:default;width:100%}.ng-select .ng-select-container .ng-value-container .ng-input>input::-ms-clear{display:none}.ng-select .ng-select-container .ng-value-container .ng-input>input[readonly]{-webkit-user-select:unset;user-select:unset;width:0;padding:0}.ng-select.ng-select-single.ng-select-filtered .ng-select-container .ng-value-container .ng-value{visibility:hidden}.ng-select.ng-select-single .ng-select-container .ng-value-container,.ng-select.ng-select-single .ng-select-container .ng-value-container .ng-value{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.ng-select.ng-select-single .ng-select-container .ng-value-container .ng-value .ng-value-icon{display:none}.ng-select.ng-select-single .ng-select-container .ng-value-container .ng-input{position:absolute;left:0;width:100%}.ng-select.ng-select-multiple.ng-select-disabled>.ng-select-container .ng-value-container .ng-value .ng-value-icon{display:none}.ng-select.ng-select-multiple .ng-select-container .ng-value-container{flex-wrap:wrap}.ng-select.ng-select-multiple .ng-select-container .ng-value-container .ng-placeholder{position:absolute}.ng-select.ng-select-multiple .ng-select-container .ng-value-container .ng-value{white-space:nowrap}.ng-select.ng-select-multiple .ng-select-container .ng-value-container .ng-value.ng-value-disabled .ng-value-icon{display:none}.ng-select.ng-select-multiple .ng-select-container .ng-value-container .ng-value .ng-value-icon{cursor:pointer}.ng-select.ng-select-multiple .ng-select-container .ng-value-container .ng-input{flex:1;z-index:2}.ng-select.ng-select-multiple .ng-select-container .ng-value-container .ng-placeholder{z-index:1}.ng-select .ng-clear-wrapper{cursor:pointer;position:relative;width:17px;-webkit-user-select:none;user-select:none}.ng-select .ng-clear-wrapper .ng-clear{display:inline-block;font-size:18px;line-height:1;pointer-events:none}.ng-select .ng-spinner-loader{border-radius:50%;width:17px;height:17px;margin-right:5px;font-size:10px;position:relative;text-indent:-9999em;border-top:2px solid rgba(66,66,66,.2);border-right:2px solid rgba(66,66,66,.2);border-bottom:2px solid rgba(66,66,66,.2);border-left:2px solid #424242;transform:translateZ(0);animation:load8 .8s infinite linear}.ng-select .ng-spinner-loader:after{border-radius:50%;width:17px;height:17px}@-webkit-keyframes load8{0%{-webkit-transform:rotate(0deg);transform:rotate(0)}to{-webkit-transform:rotate(360deg);transform:rotate(360deg)}}@keyframes load8{0%{-webkit-transform:rotate(0deg);transform:rotate(0)}to{-webkit-transform:rotate(360deg);transform:rotate(360deg)}}.ng-select .ng-arrow-wrapper{cursor:pointer;position:relative;text-align:center;-webkit-user-select:none;user-select:none}.ng-select .ng-arrow-wrapper .ng-arrow{pointer-events:none;display:inline-block;height:0;width:0;position:relative}.ng-dropdown-panel{box-sizing:border-box;position:absolute;opacity:0;width:100%;z-index:1050;-webkit-overflow-scrolling:touch}.ng-dropdown-panel .ng-dropdown-panel-items{display:block;height:auto;-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box;max-height:240px;overflow-y:auto}.ng-dropdown-panel .ng-dropdown-panel-items .ng-optgroup{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.ng-dropdown-panel .ng-dropdown-panel-items .ng-option{box-sizing:border-box;cursor:pointer;display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.ng-dropdown-panel .ng-dropdown-panel-items .ng-option .ng-option-label:empty:before{content:"\\200b"}.ng-dropdown-panel .ng-dropdown-panel-items .ng-option .highlighted{font-weight:700;text-decoration:underline}.ng-dropdown-panel .ng-dropdown-panel-items .ng-option.disabled{cursor:default}.ng-dropdown-panel .scroll-host{overflow:hidden;overflow-y:auto;position:relative;display:block;-webkit-overflow-scrolling:touch}.ng-dropdown-panel .scrollable-content{top:0;left:0;width:100%;height:100%;position:absolute}.ng-dropdown-panel .total-padding{width:1px;opacity:0}.ng-visually-hidden{position:absolute!important;width:1px;height:1px;margin:-1px;padding:0;overflow:hidden;clip:rect(0 0 0 0);border:0;white-space:nowrap} +`],encapsulation:2,changeDetection:0});let t=n;return t})(),bI=(()=>{let n=class n{};n.\u0275fac=function(r){return new(r||n)},n.\u0275mod=ee({type:n}),n.\u0275inj=J({providers:_me()});let t=n;return t})();function _me(){return[{provide:Cz,useValue:xz}]}var vme=["*"],yme=["ngSelect"],xme=()=>({standalone:!0}),Ez=(t,n,e,i)=>({item:t,item$:n,index:e,searchTerm:i}),Cme=(t,n,e)=>({item:t,clear:n,label:e}),wme=(t,n)=>({items:t,clear:n}),vI=t=>({searchTerm:t});function Dme(t,n){}function Eme(t,n){if(t&1&&R(0,Dme,0,0,"ng-template",15),t&2){let e=n.item,i=n.item$,r=n.index,o=n.searchTerm,a=C(2);y("ngTemplateOutlet",a.optionTemplate)("ngTemplateOutletContext",wm(2,Ez,e,i,r,o))}}function Mme(t,n){t&1&&R(0,Eme,1,7,"ng-template",2)}function kme(t,n){}function Sme(t,n){if(t&1&&R(0,kme,0,0,"ng-template",15),t&2){let e=n.item,i=n.item$,r=n.index,o=n.searchTerm,a=C(2);y("ngTemplateOutlet",a.optgroupTemplate)("ngTemplateOutletContext",wm(2,Ez,e,i,r,o))}}function Tme(t,n){t&1&&R(0,Sme,1,7,"ng-template",3)}function Ime(t,n){}function Ame(t,n){if(t&1&&R(0,Ime,0,0,"ng-template",15),t&2){let e=n.item,i=n.clear,r=n.label,o=C(2);y("ngTemplateOutlet",o.labelTemplate)("ngTemplateOutletContext",Rd(2,Cme,e,i,r))}}function Ome(t,n){t&1&&R(0,Ame,1,6,"ng-template",4)}function Rme(t,n){}function Pme(t,n){if(t&1&&R(0,Rme,0,0,"ng-template",15),t&2){let e=n.items,i=n.clear,r=C(2);y("ngTemplateOutlet",r.multiLabelTemplate)("ngTemplateOutletContext",wa(2,wme,e,i))}}function Fme(t,n){t&1&&R(0,Pme,1,5,"ng-template",5)}function Nme(t,n){}function Lme(t,n){if(t&1&&R(0,Nme,0,0,"ng-template",16),t&2){let e=C(2);y("ngTemplateOutlet",e.headerTemplate)}}function Vme(t,n){t&1&&R(0,Lme,1,1,"ng-template",6)}function Bme(t,n){}function jme(t,n){if(t&1&&R(0,Bme,0,0,"ng-template",16),t&2){let e=C(2);y("ngTemplateOutlet",e.footerTemplate)}}function Hme(t,n){t&1&&R(0,jme,1,1,"ng-template",7)}function zme(t,n){}function Ume(t,n){if(t&1&&R(0,zme,0,0,"ng-template",15),t&2){let e=n.searchTerm,i=C(2);y("ngTemplateOutlet",i.notFoundTemplate)("ngTemplateOutletContext",Pt(2,vI,e))}}function $me(t,n){t&1&&R(0,Ume,1,4,"ng-template",8)}function Wme(t,n){}function Gme(t,n){if(t&1&&R(0,Wme,0,0,"ng-template",16),t&2){let e=C(2);y("ngTemplateOutlet",e.typeToSearchTemplate)}}function qme(t,n){t&1&&R(0,Gme,1,1,"ng-template",9)}function Yme(t,n){}function Qme(t,n){if(t&1&&R(0,Yme,0,0,"ng-template",15),t&2){let e=n.searchTerm,i=C(2);y("ngTemplateOutlet",i.loadingTextTemplate)("ngTemplateOutletContext",Pt(2,vI,e))}}function Kme(t,n){t&1&&R(0,Qme,1,4,"ng-template",10)}function Zme(t,n){}function Xme(t,n){if(t&1&&R(0,Zme,0,0,"ng-template",15),t&2){let e=n.searchTerm,i=C(2);y("ngTemplateOutlet",i.tagTemplate)("ngTemplateOutletContext",Pt(2,vI,e))}}function Jme(t,n){t&1&&R(0,Xme,1,4,"ng-template",11)}function ehe(t,n){}function the(t,n){if(t&1&&R(0,ehe,0,0,"ng-template",16),t&2){let e=C(2);y("ngTemplateOutlet",e.loadingSpinnerTemplate)}}function ihe(t,n){t&1&&R(0,the,1,1,"ng-template",12)}function nhe(t,n){}function rhe(t,n){if(t&1&&R(0,nhe,0,0,"ng-template",16),t&2){let e=C(2);y("ngTemplateOutlet",e.placeholderTemplate)}}function ohe(t,n){t&1&&R(0,rhe,1,1,"ng-template",13)}function ahe(t,n){}function she(t,n){if(t&1&&R(0,ahe,0,0,"ng-template",16),t&2){let e=C(2);y("ngTemplateOutlet",e.clearbuttonTemplate)}}function lhe(t,n){t&1&&R(0,she,1,1,"ng-template",14)}var che=(()=>{let n=class n{constructor(){this.elementRef=u(q),this.disabled=!1,this.stateChange$=new z}get label(){return(this.elementRef.nativeElement.textContent||"").trim()}ngOnChanges(i){i.disabled&&this.stateChange$.next({value:this.value,disabled:this.disabled})}ngAfterViewChecked(){this.label!==this._previousLabel&&(this._previousLabel=this.label,this.stateChange$.next({value:this.value,disabled:this.disabled,label:this.elementRef.nativeElement.innerHTML}))}ngOnDestroy(){this.stateChange$.complete()}};n.\u0275fac=function(r){return new(r||n)},n.\u0275cmp=E({type:n,selectors:[["mtx-option"]],inputs:{value:"value",disabled:[2,"disabled","disabled",V]},exportAs:["mtxOption"],features:[Ae],ngContentSelectors:vme,decls:1,vars:0,template:function(r,o){r&1&&(Me(),oe(0))},encapsulation:2,changeDetection:0});let t=n;return t})(),dhe=(()=>{let n=class n{constructor(){this._defaultOptions=u(Mz,{optional:!0}),this.changes=new z,this.placeholder=this._defaultOptions?.placeholder,this.notFoundText=this._defaultOptions?.notFoundText??"No items found",this.typeToSearchText=this._defaultOptions?.typeToSearchText??"Type to search",this.addTagText=this._defaultOptions?.addTagText??"Add item",this.loadingText=this._defaultOptions?.loadingText??"Loading...",this.clearAllText=this._defaultOptions?.clearAllText??"Clear all"}};n.\u0275fac=function(r){return new(r||n)},n.\u0275prov=O({token:n,factory:n.\u0275fac,providedIn:"root"});let t=n;return t})(),uhe=(()=>{let n=class n{constructor(){this.template=u(te)}};n.\u0275fac=function(r){return new(r||n)},n.\u0275dir=F({type:n,selectors:[["","ng-option-tmp",""]]});let t=n;return t})(),mhe=(()=>{let n=class n{constructor(){this.template=u(te)}};n.\u0275fac=function(r){return new(r||n)},n.\u0275dir=F({type:n,selectors:[["","ng-optgroup-tmp",""]]});let t=n;return t})(),hhe=(()=>{let n=class n{constructor(){this.template=u(te)}};n.\u0275fac=function(r){return new(r||n)},n.\u0275dir=F({type:n,selectors:[["","ng-label-tmp",""]]});let t=n;return t})(),phe=(()=>{let n=class n{constructor(){this.template=u(te)}};n.\u0275fac=function(r){return new(r||n)},n.\u0275dir=F({type:n,selectors:[["","ng-multi-label-tmp",""]]});let t=n;return t})(),fhe=(()=>{let n=class n{constructor(){this.template=u(te)}};n.\u0275fac=function(r){return new(r||n)},n.\u0275dir=F({type:n,selectors:[["","ng-header-tmp",""]]});let t=n;return t})(),ghe=(()=>{let n=class n{constructor(){this.template=u(te)}};n.\u0275fac=function(r){return new(r||n)},n.\u0275dir=F({type:n,selectors:[["","ng-footer-tmp",""]]});let t=n;return t})(),_he=(()=>{let n=class n{constructor(){this.template=u(te)}};n.\u0275fac=function(r){return new(r||n)},n.\u0275dir=F({type:n,selectors:[["","ng-notfound-tmp",""]]});let t=n;return t})(),bhe=(()=>{let n=class n{constructor(){this.template=u(te)}};n.\u0275fac=function(r){return new(r||n)},n.\u0275dir=F({type:n,selectors:[["","ng-typetosearch-tmp",""]]});let t=n;return t})(),vhe=(()=>{let n=class n{constructor(){this.template=u(te)}};n.\u0275fac=function(r){return new(r||n)},n.\u0275dir=F({type:n,selectors:[["","ng-loadingtext-tmp",""]]});let t=n;return t})(),yhe=(()=>{let n=class n{constructor(){this.template=u(te)}};n.\u0275fac=function(r){return new(r||n)},n.\u0275dir=F({type:n,selectors:[["","ng-tag-tmp",""]]});let t=n;return t})(),xhe=(()=>{let n=class n{constructor(){this.template=u(te)}};n.\u0275fac=function(r){return new(r||n)},n.\u0275dir=F({type:n,selectors:[["","ng-loadingspinner-tmp",""]]});let t=n;return t})(),Che=(()=>{let n=class n{constructor(){this.template=u(te)}};n.\u0275fac=function(r){return new(r||n)},n.\u0275dir=F({type:n,selectors:[["","ng-placeholder-tmp",""]]});let t=n;return t})(),whe=(()=>{let n=class n{constructor(){this.template=u(te)}};n.\u0275fac=function(r){return new(r||n)},n.\u0275dir=F({type:n,selectors:[["","ng-clearbutton-tmp",""]]});let t=n;return t})(),Mz=new T("mtx-select-default-options"),Dz=0,yI=(()=>{let n=class n{get clearSearchOnAdd(){return this._clearSearchOnAdd??this.closeOnSelect}set clearSearchOnAdd(i){this._clearSearchOnAdd=i}get items(){return this._items}set items(i){this._itemsAreUsed=!0,this._items=i}get value(){return this._value}set value(i){this._assignValue(i)&&this._onChange(i)}get id(){return this._id}set id(i){this._id=i||this._uid,this.stateChanges.next()}get placeholder(){return this._placeholder}set placeholder(i){this._placeholder=i,this.stateChanges.next()}get focused(){return this._focused}get empty(){return this.value==null||Array.isArray(this.value)&&this.value.length===0}get shouldLabelFloat(){return this.focused||!this.empty}get required(){return this._required??this.ngControl?.control?.hasValidator(Le.required)??!1}set required(i){this._required=i,this.stateChanges.next()}get errorStateMatcher(){return this._errorStateTracker.matcher}set errorStateMatcher(i){this._errorStateTracker.matcher=i}get panelOpen(){return!!this.ngSelect.isOpen}get errorState(){return this._errorStateTracker.errorState}set errorState(i){this._errorStateTracker.errorState=i}constructor(){this._intl=u(dhe),this._changeDetectorRef=u(ye),this._elementRef=u(q),this._focusMonitor=u(Yt),this.ngControl=u(Hn,{optional:!0,self:!0}),this._parentFormField=u(Xo,{optional:!0}),this._defaultOptions=u(Mz,{optional:!0}),this._document=u(ge),this.addTag=!1,this.appearance="underline",this.appendTo=this._defaultOptions?.appendTo??"body",this.bindLabel=this._defaultOptions?.bindLabel,this.bindValue=this._defaultOptions?.bindValue,this.closeOnSelect=!0,this.clearable=!0,this.clearOnBackspace=!0,this.dropdownPosition="auto",this.bufferAmount=4,this.selectableGroup=!1,this.selectableGroupAsModel=!0,this.hideSelected=!1,this.loading=!1,this.labelForId=null,this.markFirst=!0,this.multiple=!1,this.searchable=!0,this.readonly=!1,this.searchFn=null,this.searchWhileComposing=!0,this.selectOnTab=!1,this.trackByFn=null,this.inputAttrs={},this.openOnEnter=this._defaultOptions?.openOnEnter??!0,this.minTermLength=0,this.editableSearchTerm=!1,this.keyDownFn=l=>!0,this.virtualScroll=this._defaultOptions?.virtualScroll??!1,this.fixedPlaceholder=this._defaultOptions?.fixedPlaceholder??!1,this.deselectOnClick=this._defaultOptions?.deselectOnClick??!1,this.blurEvent=new U,this.focusEvent=new U,this.changeEvent=new U,this.openEvent=new U,this.closeEvent=new U,this.searchEvent=new U,this.clearEvent=new U,this.addEvent=new U,this.removeEvent=new U,this.scroll=new U,this.scrollToEnd=new U,this._clearSearchOnAdd=this._defaultOptions?.clearSearchOnAdd,this._items=[],this._itemsAreUsed=!1,this._destroy$=new z,this._value=null,this.stateChanges=new z,this._uid=`mtx-select-${Dz++}`,this._focused=!1,this.disabled=!1,this.ariaLabel="",this.ariaLabelledby=null,this._ariaDescribedby=null,this.controlType="mtx-select",this._onChange=()=>{},this._onTouched=()=>{},this._valueId=`mtx-select-value-${Dz++}`,this._intlChangesSubscription=ke.EMPTY;let i=this._focusMonitor,r=u(dl),o=u(pc,{optional:!0}),a=u(Ki,{optional:!0}),s=this.ngControl;this._intlChangesSubscription=this._intl.changes.subscribe(()=>{this._changeDetectorRef.detectChanges()}),i.monitor(this._elementRef,!0).subscribe(l=>{this._focused&&!l&&this._onTouched(),this._focused=!!l,this.stateChanges.next()}),this.ngControl&&(this.ngControl.valueAccessor=this),this._errorStateTracker=new cl(r,s,a,o,this.stateChanges),this.id=this.id}ngOnInit(){this.compareWith&&(this.ngSelect.compareWith=this.compareWith)}ngAfterViewInit(){this._itemsAreUsed||(this.ngSelect.escapeHTML=!1,this._setItemsFromMtxOptions())}ngDoCheck(){if(this.ngControl){let i=this.ngControl;this._previousControl!==i.control&&(this._previousControl!==void 0&&i.disabled!==null&&i.disabled!==this.disabled&&(this.disabled=i.disabled),this._previousControl=i.control),this.updateErrorState()}}ngOnDestroy(){this._destroy$.next(),this._destroy$.complete(),this.stateChanges.complete(),this._focusMonitor.stopMonitoring(this._elementRef),this._intlChangesSubscription.unsubscribe()}_getAriaLabelledby(){if(this.ariaLabel)return null;let i=this._parentFormField?.getLabelId(),r=(i?i+" ":"")+this._valueId;return this.ariaLabelledby&&(r+=" "+this.ariaLabelledby),r}setDescribedByIds(i){this._ariaDescribedby=i.length?i.join(" "):null}setDisabledState(i){this.disabled=i,this._changeDetectorRef.markForCheck(),this.stateChanges.next()}onContainerClick(i){i.target.classList.contains("ng-arrow-wrapper")||(this.focus(),this.open())}writeValue(i){this._assignValue(i)}registerOnChange(i){this._onChange=i}registerOnTouched(i){this._onTouched=i}updateErrorState(){this._errorStateTracker.updateErrorState()}_assignValue(i){return i!==this._value||this.multiple&&Array.isArray(i)?(this._value=i,this._changeDetectorRef.markForCheck(),!0):!1}_setItemsFromMtxOptions(){let i=o=>{this.items=o.map(a=>({$ngOptionValue:a.value,$ngOptionLabel:a.elementRef.nativeElement.innerHTML,disabled:a.disabled})),this.ngSelect.itemsList.setItems(this.items),this.ngSelect.hasValue&&this.ngSelect.itemsList.mapSelectedItems(),this.ngSelect.detectChanges()},r=()=>{let o=Je(this.mtxOptions.changes,this._destroy$);Je(...this.mtxOptions.map(a=>a.stateChange$)).pipe(Te(o)).subscribe(a=>{let s=this.ngSelect.itemsList.findItem(a.value);s.disabled=a.disabled,s.label=a.label||s.label,this.ngSelect.detectChanges()})};this.mtxOptions.changes.pipe(He(this.mtxOptions),Te(this._destroy$)).subscribe(o=>{i(o),r()})}open(){this.ngSelect.open()}close(){this.ngSelect.close()}focus(){this.ngSelect.focus()}blur(){this.ngSelect.blur()}openChange(){this.openEvent.emit(),setTimeout(()=>{this._document.getElementById(this.ngSelect.dropdownId)?.classList.add("mat-"+this._parentFormField?.color)})}};n.\u0275fac=function(r){return new(r||n)},n.\u0275cmp=E({type:n,selectors:[["mtx-select"]],contentQueries:function(r,o,a){if(r&1&&(xe(a,uhe,5,te),xe(a,mhe,5,te),xe(a,hhe,5,te),xe(a,phe,5,te),xe(a,fhe,5,te),xe(a,ghe,5,te),xe(a,_he,5,te),xe(a,bhe,5,te),xe(a,vhe,5,te),xe(a,yhe,5,te),xe(a,xhe,5,te),xe(a,Che,5,te),xe(a,whe,5,te),xe(a,che,5)),r&2){let s;B(s=j())&&(o.optionTemplate=s.first),B(s=j())&&(o.optgroupTemplate=s.first),B(s=j())&&(o.labelTemplate=s.first),B(s=j())&&(o.multiLabelTemplate=s.first),B(s=j())&&(o.headerTemplate=s.first),B(s=j())&&(o.footerTemplate=s.first),B(s=j())&&(o.notFoundTemplate=s.first),B(s=j())&&(o.typeToSearchTemplate=s.first),B(s=j())&&(o.loadingTextTemplate=s.first),B(s=j())&&(o.tagTemplate=s.first),B(s=j())&&(o.loadingSpinnerTemplate=s.first),B(s=j())&&(o.placeholderTemplate=s.first),B(s=j())&&(o.clearbuttonTemplate=s.first),B(s=j())&&(o.mtxOptions=s)}},viewQuery:function(r,o){if(r&1&&ie(yme,7),r&2){let a;B(a=j())&&(o.ngSelect=a.first)}},hostAttrs:["role","combobox","aria-autocomplete","none",1,"mtx-select"],hostVars:20,hostBindings:function(r,o){r&2&&(X("id",o.id)("aria-expanded",o.panelOpen)("aria-label",o.ariaLabel||null)("aria-labelledby",o._getAriaLabelledby())("aria-describedby",o._ariaDescribedby||null)("aria-required",o.required.toString())("aria-disabled",o.disabled.toString())("aria-invalid",o.errorState),G("mtx-select-floating",o.shouldLabelFloat)("mtx-select-disabled",o.disabled)("mtx-select-invalid",o.errorState)("mtx-select-required",o.required)("mtx-select-empty",o.empty)("mtx-select-multiple",o.multiple))},inputs:{addTag:"addTag",addTagText:"addTagText",appearance:"appearance",appendTo:"appendTo",bindLabel:"bindLabel",bindValue:"bindValue",closeOnSelect:[2,"closeOnSelect","closeOnSelect",V],clearAllText:"clearAllText",clearable:[2,"clearable","clearable",V],clearOnBackspace:[2,"clearOnBackspace","clearOnBackspace",V],compareWith:"compareWith",dropdownPosition:"dropdownPosition",groupBy:"groupBy",groupValue:"groupValue",bufferAmount:"bufferAmount",selectableGroup:[2,"selectableGroup","selectableGroup",V],selectableGroupAsModel:[2,"selectableGroupAsModel","selectableGroupAsModel",V],hideSelected:[2,"hideSelected","hideSelected",V],loading:[2,"loading","loading",V],loadingText:"loadingText",labelForId:"labelForId",markFirst:[2,"markFirst","markFirst",V],maxSelectedItems:"maxSelectedItems",multiple:[2,"multiple","multiple",V],notFoundText:"notFoundText",searchable:[2,"searchable","searchable",V],readonly:[2,"readonly","readonly",V],searchFn:"searchFn",searchWhileComposing:[2,"searchWhileComposing","searchWhileComposing",V],selectOnTab:[2,"selectOnTab","selectOnTab",V],trackByFn:"trackByFn",inputAttrs:"inputAttrs",tabIndex:"tabIndex",openOnEnter:[2,"openOnEnter","openOnEnter",V],minTermLength:"minTermLength",editableSearchTerm:[2,"editableSearchTerm","editableSearchTerm",V],keyDownFn:"keyDownFn",virtualScroll:[2,"virtualScroll","virtualScroll",V],typeToSearchText:"typeToSearchText",typeahead:"typeahead",isOpen:"isOpen",fixedPlaceholder:[2,"fixedPlaceholder","fixedPlaceholder",V],deselectOnClick:[2,"deselectOnClick","deselectOnClick",V],clearSearchOnAdd:"clearSearchOnAdd",items:"items",value:"value",id:"id",placeholder:"placeholder",disabled:[2,"disabled","disabled",V],required:[2,"required","required",V],errorStateMatcher:"errorStateMatcher",ariaLabel:[0,"aria-label","ariaLabel"],ariaLabelledby:[0,"aria-labelledby","ariaLabelledby"]},outputs:{blurEvent:"blur",focusEvent:"focus",changeEvent:"change",openEvent:"open",closeEvent:"close",searchEvent:"search",clearEvent:"clear",addEvent:"add",removeEvent:"remove",scroll:"scroll",scrollToEnd:"scrollToEnd"},exportAs:["mtxSelect"],features:[Ce([{provide:Ra,useExisting:n}])],decls:15,vars:63,consts:[["ngSelect",""],[3,"ngModelChange","blur","focus","change","open","close","search","clear","add","remove","scroll","scrollToEnd","ngModel","ngModelOptions","placeholder","items","addTag","addTagText","appendTo","appearance","bindLabel","bindValue","closeOnSelect","clearAllText","clearable","clearOnBackspace","dropdownPosition","groupBy","groupValue","bufferAmount","hideSelected","isOpen","inputAttrs","loading","loadingText","labelForId","markFirst","maxSelectedItems","multiple","notFoundText","readonly","typeahead","typeToSearchText","trackByFn","searchable","searchFn","searchWhileComposing","clearSearchOnAdd","selectableGroup","selectableGroupAsModel","selectOnTab","tabIndex","openOnEnter","minTermLength","editableSearchTerm","keyDownFn","virtualScroll","fixedPlaceholder","deselectOnClick"],["ng-option-tmp",""],["ng-optgroup-tmp",""],["ng-label-tmp",""],["ng-multi-label-tmp",""],["ng-header-tmp",""],["ng-footer-tmp",""],["ng-notfound-tmp",""],["ng-typetosearch-tmp",""],["ng-loadingtext-tmp",""],["ng-tag-tmp",""],["ng-loadingspinner-tmp",""],["ng-placeholder-tmp",""],["ng-clearbutton-tmp",""],[3,"ngTemplateOutlet","ngTemplateOutletContext"],[3,"ngTemplateOutlet"]],template:function(r,o){if(r&1){let a=Y();h(0,"ng-select",1,0),Uo("ngModelChange",function(l){return I(a),Ca(o.value,l)||(o.value=l),A(l)}),S("blur",function(l){return I(a),A(o.blurEvent.emit(l))})("focus",function(l){return I(a),A(o.focusEvent.emit(l))})("change",function(l){return I(a),A(o.changeEvent.emit(l))})("open",function(){return I(a),A(o.openChange())})("close",function(){return I(a),A(o.closeEvent.emit())})("search",function(l){return I(a),A(o.searchEvent.emit(l))})("clear",function(l){return I(a),A(o.clearEvent.emit(l))})("add",function(l){return I(a),A(o.addEvent.emit(l))})("remove",function(l){return I(a),A(o.removeEvent.emit(l))})("scroll",function(l){return I(a),A(o.scroll.emit(l))})("scrollToEnd",function(){return I(a),A(o.scrollToEnd.emit())}),N(2,Mme,1,0,null,2),N(3,Tme,1,0,null,3),N(4,Ome,1,0,null,4),N(5,Fme,1,0,null,5),N(6,Vme,1,0,null,6),N(7,Hme,1,0,null,7),N(8,$me,1,0,null,8),N(9,qme,1,0,null,9),N(10,Kme,1,0,null,10),N(11,Jme,1,0,null,11),N(12,ihe,1,0,null,12),N(13,ohe,1,0,null,13),N(14,lhe,1,0,null,14),p()}r&2&&(G("ng-select-invalid",o.errorState),zo("ngModel",o.value),y("ngModelOptions",at(62,xme))("placeholder",o.placeholder||o._intl.placeholder)("items",o.items)("addTag",o.addTag)("addTagText",o.addTagText||o._intl.addTagText)("appendTo",o.appendTo)("appearance",o.appearance)("bindLabel",o.bindLabel)("bindValue",o.bindValue)("closeOnSelect",o.closeOnSelect)("clearAllText",o.clearAllText||o._intl.clearAllText)("clearable",o.clearable)("clearOnBackspace",o.clearOnBackspace)("dropdownPosition",o.dropdownPosition)("groupBy",o.groupBy)("groupValue",o.groupValue)("bufferAmount",o.bufferAmount)("hideSelected",o.hideSelected)("isOpen",o.isOpen)("inputAttrs",o.inputAttrs)("loading",o.loading)("loadingText",o.loadingText||o._intl.loadingText)("labelForId",o.labelForId)("markFirst",o.markFirst)("maxSelectedItems",o.maxSelectedItems)("multiple",o.multiple)("notFoundText",o.notFoundText||o._intl.notFoundText)("readonly",o.readonly||o.disabled)("typeahead",o.typeahead)("typeToSearchText",o.typeToSearchText||o._intl.typeToSearchText)("trackByFn",o.trackByFn)("searchable",o.searchable)("searchFn",o.searchFn)("searchWhileComposing",o.searchWhileComposing)("clearSearchOnAdd",o.clearSearchOnAdd)("selectableGroup",o.selectableGroup)("selectableGroupAsModel",o.selectableGroupAsModel)("selectOnTab",o.selectOnTab)("tabIndex",o.tabIndex)("openOnEnter",o.openOnEnter)("minTermLength",o.minTermLength)("editableSearchTerm",o.editableSearchTerm)("keyDownFn",o.keyDownFn)("virtualScroll",o.virtualScroll)("fixedPlaceholder",o.fixedPlaceholder)("deselectOnClick",o.deselectOnClick),g(2),L(o.optionTemplate?2:-1),g(),L(o.optgroupTemplate?3:-1),g(),L(o.labelTemplate?4:-1),g(),L(o.multiLabelTemplate?5:-1),g(),L(o.headerTemplate?6:-1),g(),L(o.footerTemplate?7:-1),g(),L(o.notFoundTemplate?8:-1),g(),L(o.typeToSearchTemplate?9:-1),g(),L(o.loadingTextTemplate?10:-1),g(),L(o.tagTemplate?11:-1),g(),L(o.loadingSpinnerTemplate?12:-1),g(),L(o.placeholderTemplate?13:-1),g(),L(o.clearbuttonTemplate?14:-1))},dependencies:[bI,wz,RC,OC,PC,FC,NC,LC,BC,VC,jC,HC,zC,UC,$C,du,ei,gg,Fn],styles:[`.ng-select{padding:var(--mat-form-field-filled-with-label-container-padding-top, 24px) 16px var(--mat-form-field-filled-with-label-container-padding-bottom, 8px);margin:calc(var(--mat-form-field-filled-with-label-container-padding-top, 24px) * -1) -16px calc(var(--mat-form-field-filled-with-label-container-padding-bottom, 8px) * -1)}.mdc-text-field--outlined .ng-select,.mdc-text-field--no-label .ng-select{padding-top:var(--mat-form-field-container-vertical-padding, 16px);padding-bottom:var(--mat-form-field-container-vertical-padding, 16px);margin-top:calc(var(--mat-form-field-container-vertical-padding, 16px) * -1);margin-bottom:calc(var(--mat-form-field-container-vertical-padding, 16px) * -1)}.ng-select .ng-select-container{align-items:center;color:var(--mtx-select-container-text-color, var(--mat-sys-on-surface))}.ng-select .ng-select-container .ng-value-container{align-items:center;gap:4px}.ng-select .ng-select-container .ng-value-container .ng-input>input{height:var(--mat-form-field-container-text-line-height, var(--mat-sys-body-large-line-height));color:inherit;font:inherit}.ng-select .ng-select-container .ng-clear-wrapper{display:inline-flex;justify-content:center;align-items:center;width:24px;height:var(--mat-form-field-container-text-line-height, var(--mat-sys-body-large-line-height))}.ng-select .ng-placeholder{transition:opacity .2s;opacity:1;color:var(--mtx-select-placeholder-text-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent))}.mat-form-field-hide-placeholder .ng-select .ng-placeholder{opacity:0}.ng-select .ng-has-value .ng-placeholder{display:none}.ng-select .ng-clear-wrapper{color:var(--mtx-select-clear-icon-color, var(--mat-sys-on-surface))}.ng-select .ng-clear-wrapper:hover .ng-clear{color:var(--mtx-select-clear-icon-hover-color, var(--mat-sys-error))}.ng-select.ng-select-disabled .ng-value{color:var(--mtx-select-disabled-text-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent))}.ng-select.ng-select-opened .ng-arrow-wrapper .ng-arrow{top:-2px;border-width:0 5px 5px}.ng-select.ng-select-single.ng-select-filtered .ng-placeholder{display:initial;visibility:hidden}.ng-select.ng-select-multiple .ng-select-container .ng-value-container .ng-value{display:inline-flex;align-items:center;height:var(--mat-form-field-container-text-line-height, var(--mat-sys-body-large-line-height));padding:0 calc((var(--mat-form-field-container-text-line-height, var(--mat-sys-body-large-line-height)) - 16px) / 2);border-radius:9999px;font-size:.875em;background-color:var(--mtx-select-multiple-value-background-color, transparent);border:1px solid var(--mtx-select-multiple-value-outline-color, var(--mat-sys-outline))}.ng-select.ng-select-multiple .ng-select-container .ng-value-container .ng-value.ng-value-disabled{opacity:.4}.ng-select.ng-select-multiple .ng-select-container .ng-value-container .ng-value .ng-value-label{display:inline-block;margin:0 4px;line-height:16px}.ng-select.ng-select-multiple .ng-select-container .ng-value-container .ng-value .ng-value-icon{width:16px;height:16px;line-height:16px;border-radius:50%;text-align:center}.ng-select.ng-select-multiple .ng-select-container .ng-value-container .ng-value .ng-value-icon:hover{background-color:var(--mtx-select-multiple-value-icon-hover-background-color, var(--mat-sys-outline-variant))}.ng-select.ng-select-multiple.ng-select-disabled .ng-select-container .ng-value-container .ng-value{border-color:var(--mtx-select-multiple-value-disabled-outline-color, color-mix(in srgb, var(--mat-sys-outline) 38%, transparent))}.ng-select .ng-arrow-wrapper{width:10px}.ng-select .ng-arrow{border-width:5px 5px 2px;border-style:solid;border-color:var(--mtx-select-enabled-arrow-color, var(--mat-sys-on-surface)) transparent transparent}.ng-select.ng-select-disabled .ng-arrow{border-color:var(--mtx-select-disabled-arrow-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent)) transparent transparent}.ng-select.ng-select-invalid .ng-arrow{border-color:var(--mtx-select-invalid-arrow-color, var(--mat-sys-error)) transparent transparent}.ng-select.ng-select-opened .ng-arrow{border-color:transparent transparent var(--mtx-select-enabled-arrow-color, var(--mat-sys-on-surface))}.ng-select.ng-select-opened.ng-select-invalid .ng-arrow{border-color:transparent transparent var(--mtx-select-invalid-arrow-color, var(--mat-sys-error))}.ng-dropdown-panel{background-color:var(--mtx-select-panel-background-color, var(--mat-sys-surface-container))}.ng-dropdown-panel.ng-select-bottom{top:100%;border-bottom-left-radius:var(--mtx-select-container-shape, var(--mat-sys-corner-extra-small));border-bottom-right-radius:var(--mtx-select-container-shape, var(--mat-sys-corner-extra-small));box-shadow:var(--mtx-select-container-elevation-shadow, 0px 3px 1px -2px rgba(0, 0, 0, .2), 0px 2px 2px 0px rgba(0, 0, 0, .14), 0px 1px 5px 0px rgba(0, 0, 0, .12))}.ng-dropdown-panel.ng-select-top{bottom:100%;border-top-left-radius:var(--mtx-select-container-shape, var(--mat-sys-corner-extra-small));border-top-right-radius:var(--mtx-select-container-shape, var(--mat-sys-corner-extra-small));box-shadow:var(--mtx-select-container-elevation-shadow, 0px 3px 1px -2px rgba(0, 0, 0, .2), 0px 2px 2px 0px rgba(0, 0, 0, .14), 0px 1px 5px 0px rgba(0, 0, 0, .12))}.ng-dropdown-panel .ng-dropdown-header,.ng-dropdown-panel .ng-dropdown-footer{padding:14px 16px}.ng-dropdown-panel .ng-dropdown-header{border-bottom:1px solid var(--mtx-select-panel-divider-color, var(--mat-sys-outline))}.ng-dropdown-panel .ng-dropdown-footer{border-top:1px solid var(--mtx-select-panel-divider-color, var(--mat-sys-outline))}.ng-dropdown-panel .ng-dropdown-panel-items .ng-optgroup{padding:14px 16px;font-weight:500;-webkit-user-select:none;user-select:none;cursor:pointer;color:var(--mtx-select-optgroup-label-text-color, var(--mat-sys-on-surface))}.ng-dropdown-panel .ng-dropdown-panel-items .ng-optgroup.ng-option-disabled{cursor:default}.ng-dropdown-panel .ng-dropdown-panel-items .ng-optgroup.ng-option-marked{background-color:var(--mtx-select-option-hover-state-background-color, color-mix(in srgb, var(--mat-sys-on-surface) calc(var(--mat-sys-hover-state-layer-opacity) * 100%), transparent))}.ng-dropdown-panel .ng-dropdown-panel-items .ng-optgroup.ng-option-selected{background-color:var(--mtx-select-option-selected-state-background-color, var(--mat-sys-secondary-container));color:var(--mtx-select-option-selected-state-text-color, var(--mat-sys-on-surface))}.ng-dropdown-panel .ng-dropdown-panel-items .ng-option{position:relative;padding:14px 16px;text-overflow:ellipsis;text-decoration:none;text-align:left;white-space:nowrap;overflow:hidden;color:var(--mtx-select-option-label-text-color, var(--mat-sys-on-surface))}.ng-dropdown-panel .ng-dropdown-panel-items .ng-option.ng-option-marked{background-color:var(--mtx-select-option-hover-state-background-color, color-mix(in srgb, var(--mat-sys-on-surface) calc(var(--mat-sys-hover-state-layer-opacity) * 100%), transparent))}.ng-dropdown-panel .ng-dropdown-panel-items .ng-option.ng-option-selected{background-color:var(--mtx-select-option-selected-state-background-color, var(--mat-sys-secondary-container));color:var(--mtx-select-option-selected-state-text-color, var(--mat-sys-on-surface))}.ng-dropdown-panel .ng-dropdown-panel-items .ng-option.ng-option-disabled{color:var(--mtx-select-option-disabled-state-text-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent))}[dir=rtl] .ng-dropdown-panel .ng-dropdown-panel-items .ng-option{text-align:right}.ng-dropdown-panel .ng-dropdown-panel-items .ng-option.ng-option-child{padding-left:32px}[dir=rtl] .ng-dropdown-panel .ng-dropdown-panel-items .ng-option.ng-option-child{padding-right:32px;padding-left:0}.ng-dropdown-panel .ng-dropdown-panel-items .ng-option .ng-tag-label{margin-right:6px;font-size:80%}[dir=rtl] .ng-dropdown-panel .ng-dropdown-panel-items .ng-option .ng-tag-label{margin-left:6px;margin-right:0} +`],encapsulation:2,changeDetection:0});let t=n;return t})(),kz=(()=>{let n=class n{};n.\u0275fac=function(r){return new(r||n)},n.\u0275mod=ee({type:n}),n.\u0275inj=J({imports:[gt,du,zn,bI,yI]});let t=n;return t})();var Sz=(()=>{let n=class n extends to{get bindLabel(){return typeof this.props.labelProp=="string"?this.props.labelProp:""}get bindValue(){return typeof this.props.valueProp=="string"?this.props.valueProp:void 0}};n.\u0275fac=(()=>{let i;return function(o){return(i||(i=fe(n)))(o||n)}})(),n.\u0275cmp=E({type:n,selectors:[["formly-field-combobox"]],features:[le],decls:4,vars:13,consts:[["select",""],[3,"formControl","items","bindLabel","bindValue","multiple","placeholder","required","closeOnSelect","compareWith"]],template:function(r,o){r&1&&(k(0,"mtx-select",1,0),me(2,"toObservable"),me(3,"async")),r&2&&y("formControl",o.formControl)("items",Oe(3,11,Oe(2,9,o.props.options)))("bindLabel",o.bindLabel)("bindValue",o.bindValue)("multiple",o.props.multiple)("placeholder",o.props.placeholder)("required",o.props.required)("closeOnSelect",!o.props.multiple)("compareWith",o.props.compareWith)},dependencies:[zn,ei,Do,wo,kz,yI,a3,rn,o3],encapsulation:2});let t=n;return t})();var Tz=(()=>{let n=class n extends Cg{};n.\u0275fac=(()=>{let i;return function(o){return(i||(i=fe(n)))(o||n)}})(),n.\u0275cmp=E({type:n,selectors:[["formly-wrapper-card"]],features:[le],decls:8,vars:1,consts:[["fieldComponent",""],[1,"card"],[1,"card-header"],[1,"card-body"]],template:function(r,o){r&1&&(ft(0,"div",1)(1,"h3",2),_(2,"Its time to party"),vt(),ft(3,"h3",2),_(4),vt(),ft(5,"div",3),rf(6,null,0),vt()()),r&2&&(g(4),H(o.props.label))},encapsulation:2});let t=n;return t})(),Iz=(()=>{let n=class n extends Cg{};n.\u0275fac=(()=>{let i;return function(o){return(i||(i=fe(n)))(o||n)}})(),n.\u0275cmp=E({type:n,selectors:[["formly-wrapper-div"]],features:[le],decls:3,vars:0,consts:[["fieldComponent",""]],template:function(r,o){r&1&&(ft(0,"div"),rf(1,null,0),vt())},encapsulation:2});let t=n;return t})();function Az(t){return{types:[{name:"combobox",component:Sz,wrappers:["form-field"]}],wrappers:[{name:"card",component:Tz},{name:"div",component:Iz}],validators:[],validationMessages:[{name:"required",message:(n,e)=>t.stream("validation.required")},{name:"min",message:(n,e)=>t.stream("validation.min",{number:e.props?.min})},{name:"max",message:(n,e)=>t.stream("validation.max",{number:e.props?.max})},{name:"minLength",message:(n,e)=>t.stream("validation.min_length",{number:e.props?.minLength})},{name:"maxLength",message:(n,e)=>t.stream("validation.max_length",{number:e.props?.maxLength})}]}}var Ehe={lessThanXSeconds:{one:"\u4E0D\u5230 1 \u79D2",other:"\u4E0D\u5230 {{count}} \u79D2"},xSeconds:{one:"1 \u79D2",other:"{{count}} \u79D2"},halfAMinute:"\u534A\u5206\u949F",lessThanXMinutes:{one:"\u4E0D\u5230 1 \u5206\u949F",other:"\u4E0D\u5230 {{count}} \u5206\u949F"},xMinutes:{one:"1 \u5206\u949F",other:"{{count}} \u5206\u949F"},xHours:{one:"1 \u5C0F\u65F6",other:"{{count}} \u5C0F\u65F6"},aboutXHours:{one:"\u5927\u7EA6 1 \u5C0F\u65F6",other:"\u5927\u7EA6 {{count}} \u5C0F\u65F6"},xDays:{one:"1 \u5929",other:"{{count}} \u5929"},aboutXWeeks:{one:"\u5927\u7EA6 1 \u4E2A\u661F\u671F",other:"\u5927\u7EA6 {{count}} \u4E2A\u661F\u671F"},xWeeks:{one:"1 \u4E2A\u661F\u671F",other:"{{count}} \u4E2A\u661F\u671F"},aboutXMonths:{one:"\u5927\u7EA6 1 \u4E2A\u6708",other:"\u5927\u7EA6 {{count}} \u4E2A\u6708"},xMonths:{one:"1 \u4E2A\u6708",other:"{{count}} \u4E2A\u6708"},aboutXYears:{one:"\u5927\u7EA6 1 \u5E74",other:"\u5927\u7EA6 {{count}} \u5E74"},xYears:{one:"1 \u5E74",other:"{{count}} \u5E74"},overXYears:{one:"\u8D85\u8FC7 1 \u5E74",other:"\u8D85\u8FC7 {{count}} \u5E74"},almostXYears:{one:"\u5C06\u8FD1 1 \u5E74",other:"\u5C06\u8FD1 {{count}} \u5E74"}},Oz=(t,n,e)=>{let i,r=Ehe[t];return typeof r=="string"?i=r:n===1?i=r.one:i=r.other.replace("{{count}}",String(n)),e?.addSuffix?e.comparison&&e.comparison>0?i+"\u5185":i+"\u524D":i};var Mhe={full:"y'\u5E74'M'\u6708'd'\u65E5' EEEE",long:"y'\u5E74'M'\u6708'd'\u65E5'",medium:"yyyy-MM-dd",short:"yy-MM-dd"},khe={full:"zzzz a h:mm:ss",long:"z a h:mm:ss",medium:"a h:mm:ss",short:"a h:mm"},She={full:"{{date}} {{time}}",long:"{{date}} {{time}}",medium:"{{date}} {{time}}",short:"{{date}} {{time}}"},Rz={date:Qo({formats:Mhe,defaultWidth:"full"}),time:Qo({formats:khe,defaultWidth:"full"}),dateTime:Qo({formats:She,defaultWidth:"full"})};function Pz(t,n,e){let i="eeee p";return FV(t,n,e)?i:t.getTime()>n.getTime()?"'\u4E0B\u4E2A'"+i:"'\u4E0A\u4E2A'"+i}var The={lastWeek:Pz,yesterday:"'\u6628\u5929' p",today:"'\u4ECA\u5929' p",tomorrow:"'\u660E\u5929' p",nextWeek:Pz,other:"PP p"},Fz=(t,n,e,i)=>{let r=The[t];return typeof r=="function"?r(n,e,i):r};var Ihe={narrow:["\u524D","\u516C\u5143"],abbreviated:["\u524D","\u516C\u5143"],wide:["\u516C\u5143\u524D","\u516C\u5143"]},Ahe={narrow:["1","2","3","4"],abbreviated:["\u7B2C\u4E00\u5B63","\u7B2C\u4E8C\u5B63","\u7B2C\u4E09\u5B63","\u7B2C\u56DB\u5B63"],wide:["\u7B2C\u4E00\u5B63\u5EA6","\u7B2C\u4E8C\u5B63\u5EA6","\u7B2C\u4E09\u5B63\u5EA6","\u7B2C\u56DB\u5B63\u5EA6"]},Ohe={narrow:["\u4E00","\u4E8C","\u4E09","\u56DB","\u4E94","\u516D","\u4E03","\u516B","\u4E5D","\u5341","\u5341\u4E00","\u5341\u4E8C"],abbreviated:["1\u6708","2\u6708","3\u6708","4\u6708","5\u6708","6\u6708","7\u6708","8\u6708","9\u6708","10\u6708","11\u6708","12\u6708"],wide:["\u4E00\u6708","\u4E8C\u6708","\u4E09\u6708","\u56DB\u6708","\u4E94\u6708","\u516D\u6708","\u4E03\u6708","\u516B\u6708","\u4E5D\u6708","\u5341\u6708","\u5341\u4E00\u6708","\u5341\u4E8C\u6708"]},Rhe={narrow:["\u65E5","\u4E00","\u4E8C","\u4E09","\u56DB","\u4E94","\u516D"],short:["\u65E5","\u4E00","\u4E8C","\u4E09","\u56DB","\u4E94","\u516D"],abbreviated:["\u5468\u65E5","\u5468\u4E00","\u5468\u4E8C","\u5468\u4E09","\u5468\u56DB","\u5468\u4E94","\u5468\u516D"],wide:["\u661F\u671F\u65E5","\u661F\u671F\u4E00","\u661F\u671F\u4E8C","\u661F\u671F\u4E09","\u661F\u671F\u56DB","\u661F\u671F\u4E94","\u661F\u671F\u516D"]},Phe={narrow:{am:"\u4E0A",pm:"\u4E0B",midnight:"\u51CC\u6668",noon:"\u5348",morning:"\u65E9",afternoon:"\u4E0B\u5348",evening:"\u665A",night:"\u591C"},abbreviated:{am:"\u4E0A\u5348",pm:"\u4E0B\u5348",midnight:"\u51CC\u6668",noon:"\u4E2D\u5348",morning:"\u65E9\u6668",afternoon:"\u4E2D\u5348",evening:"\u665A\u4E0A",night:"\u591C\u95F4"},wide:{am:"\u4E0A\u5348",pm:"\u4E0B\u5348",midnight:"\u51CC\u6668",noon:"\u4E2D\u5348",morning:"\u65E9\u6668",afternoon:"\u4E2D\u5348",evening:"\u665A\u4E0A",night:"\u591C\u95F4"}},Fhe={narrow:{am:"\u4E0A",pm:"\u4E0B",midnight:"\u51CC\u6668",noon:"\u5348",morning:"\u65E9",afternoon:"\u4E0B\u5348",evening:"\u665A",night:"\u591C"},abbreviated:{am:"\u4E0A\u5348",pm:"\u4E0B\u5348",midnight:"\u51CC\u6668",noon:"\u4E2D\u5348",morning:"\u65E9\u6668",afternoon:"\u4E2D\u5348",evening:"\u665A\u4E0A",night:"\u591C\u95F4"},wide:{am:"\u4E0A\u5348",pm:"\u4E0B\u5348",midnight:"\u51CC\u6668",noon:"\u4E2D\u5348",morning:"\u65E9\u6668",afternoon:"\u4E2D\u5348",evening:"\u665A\u4E0A",night:"\u591C\u95F4"}},Nhe=(t,n)=>{let e=Number(t);switch(n?.unit){case"date":return e.toString()+"\u65E5";case"hour":return e.toString()+"\u65F6";case"minute":return e.toString()+"\u5206";case"second":return e.toString()+"\u79D2";default:return"\u7B2C "+e.toString()}},Nz={ordinalNumber:Nhe,era:Bn({values:Ihe,defaultWidth:"wide"}),quarter:Bn({values:Ahe,defaultWidth:"wide",argumentCallback:t=>t-1}),month:Bn({values:Ohe,defaultWidth:"wide"}),day:Bn({values:Rhe,defaultWidth:"wide"}),dayPeriod:Bn({values:Phe,defaultWidth:"wide",formattingValues:Fhe,defaultFormattingWidth:"wide"})};var Lhe=/^(第\s*)?\d+(日|时|分|秒)?/i,Vhe=/\d+/i,Bhe={narrow:/^(前)/i,abbreviated:/^(前)/i,wide:/^(公元前|公元)/i},jhe={any:[/^(前)/i,/^(公元)/i]},Hhe={narrow:/^[1234]/i,abbreviated:/^第[一二三四]刻/i,wide:/^第[一二三四]刻钟/i},zhe={any:[/(1|一)/i,/(2|二)/i,/(3|三)/i,/(4|四)/i]},Uhe={narrow:/^(一|二|三|四|五|六|七|八|九|十[二一])/i,abbreviated:/^(一|二|三|四|五|六|七|八|九|十[二一]|\d|1[12])月/i,wide:/^(一|二|三|四|五|六|七|八|九|十[二一])月/i},$he={narrow:[/^一/i,/^二/i,/^三/i,/^四/i,/^五/i,/^六/i,/^七/i,/^八/i,/^九/i,/^十(?!(一|二))/i,/^十一/i,/^十二/i],any:[/^一|1/i,/^二|2/i,/^三|3/i,/^四|4/i,/^五|5/i,/^六|6/i,/^七|7/i,/^八|8/i,/^九|9/i,/^十(?!(一|二))|10/i,/^十一|11/i,/^十二|12/i]},Whe={narrow:/^[一二三四五六日]/i,short:/^[一二三四五六日]/i,abbreviated:/^周[一二三四五六日]/i,wide:/^星期[一二三四五六日]/i},Ghe={any:[/日/i,/一/i,/二/i,/三/i,/四/i,/五/i,/六/i]},qhe={any:/^(上午?|下午?|午夜|[中正]午|早上?|下午|晚上?|凌晨|)/i},Yhe={any:{am:/^上午?/i,pm:/^下午?/i,midnight:/^午夜/i,noon:/^[中正]午/i,morning:/^早上/i,afternoon:/^下午/i,evening:/^晚上?/i,night:/^凌晨/i}},Lz={ordinalNumber:lh({matchPattern:Lhe,parsePattern:Vhe,valueCallback:t=>parseInt(t,10)}),era:jn({matchPatterns:Bhe,defaultMatchWidth:"wide",parsePatterns:jhe,defaultParseWidth:"any"}),quarter:jn({matchPatterns:Hhe,defaultMatchWidth:"wide",parsePatterns:zhe,defaultParseWidth:"any",valueCallback:t=>t+1}),month:jn({matchPatterns:Uhe,defaultMatchWidth:"wide",parsePatterns:$he,defaultParseWidth:"any"}),day:jn({matchPatterns:Whe,defaultMatchWidth:"wide",parsePatterns:Ghe,defaultParseWidth:"any"}),dayPeriod:jn({matchPatterns:qhe,defaultMatchWidth:"any",parsePatterns:Yhe,defaultParseWidth:"any"})};var Vz={code:"zh-CN",formatDistance:Oz,formatLong:Rz,formatRelative:Fz,localize:Nz,match:Lz,options:{weekStartsOn:1,firstWeekContainsDate:4}};var Qhe={lessThanXSeconds:{one:"\u5C11\u65BC 1 \u79D2",other:"\u5C11\u65BC {{count}} \u79D2"},xSeconds:{one:"1 \u79D2",other:"{{count}} \u79D2"},halfAMinute:"\u534A\u5206\u9418",lessThanXMinutes:{one:"\u5C11\u65BC 1 \u5206\u9418",other:"\u5C11\u65BC {{count}} \u5206\u9418"},xMinutes:{one:"1 \u5206\u9418",other:"{{count}} \u5206\u9418"},xHours:{one:"1 \u5C0F\u6642",other:"{{count}} \u5C0F\u6642"},aboutXHours:{one:"\u5927\u7D04 1 \u5C0F\u6642",other:"\u5927\u7D04 {{count}} \u5C0F\u6642"},xDays:{one:"1 \u5929",other:"{{count}} \u5929"},aboutXWeeks:{one:"\u5927\u7D04 1 \u500B\u661F\u671F",other:"\u5927\u7D04 {{count}} \u500B\u661F\u671F"},xWeeks:{one:"1 \u500B\u661F\u671F",other:"{{count}} \u500B\u661F\u671F"},aboutXMonths:{one:"\u5927\u7D04 1 \u500B\u6708",other:"\u5927\u7D04 {{count}} \u500B\u6708"},xMonths:{one:"1 \u500B\u6708",other:"{{count}} \u500B\u6708"},aboutXYears:{one:"\u5927\u7D04 1 \u5E74",other:"\u5927\u7D04 {{count}} \u5E74"},xYears:{one:"1 \u5E74",other:"{{count}} \u5E74"},overXYears:{one:"\u8D85\u904E 1 \u5E74",other:"\u8D85\u904E {{count}} \u5E74"},almostXYears:{one:"\u5C07\u8FD1 1 \u5E74",other:"\u5C07\u8FD1 {{count}} \u5E74"}},Bz=(t,n,e)=>{let i,r=Qhe[t];return typeof r=="string"?i=r:n===1?i=r.one:i=r.other.replace("{{count}}",String(n)),e?.addSuffix?e.comparison&&e.comparison>0?i+"\u5167":i+"\u524D":i};var Khe={full:"y'\u5E74'M'\u6708'd'\u65E5' EEEE",long:"y'\u5E74'M'\u6708'd'\u65E5'",medium:"yyyy-MM-dd",short:"yy-MM-dd"},Zhe={full:"zzzz a h:mm:ss",long:"z a h:mm:ss",medium:"a h:mm:ss",short:"a h:mm"},Xhe={full:"{{date}} {{time}}",long:"{{date}} {{time}}",medium:"{{date}} {{time}}",short:"{{date}} {{time}}"},jz={date:Qo({formats:Khe,defaultWidth:"full"}),time:Qo({formats:Zhe,defaultWidth:"full"}),dateTime:Qo({formats:Xhe,defaultWidth:"full"})};var Jhe={lastWeek:"'\u4E0A\u500B'eeee p",yesterday:"'\u6628\u5929' p",today:"'\u4ECA\u5929' p",tomorrow:"'\u660E\u5929' p",nextWeek:"'\u4E0B\u500B'eeee p",other:"P"},Hz=(t,n,e,i)=>Jhe[t];var epe={narrow:["\u524D","\u516C\u5143"],abbreviated:["\u524D","\u516C\u5143"],wide:["\u516C\u5143\u524D","\u516C\u5143"]},tpe={narrow:["1","2","3","4"],abbreviated:["\u7B2C\u4E00\u523B","\u7B2C\u4E8C\u523B","\u7B2C\u4E09\u523B","\u7B2C\u56DB\u523B"],wide:["\u7B2C\u4E00\u523B\u9418","\u7B2C\u4E8C\u523B\u9418","\u7B2C\u4E09\u523B\u9418","\u7B2C\u56DB\u523B\u9418"]},ipe={narrow:["\u4E00","\u4E8C","\u4E09","\u56DB","\u4E94","\u516D","\u4E03","\u516B","\u4E5D","\u5341","\u5341\u4E00","\u5341\u4E8C"],abbreviated:["1\u6708","2\u6708","3\u6708","4\u6708","5\u6708","6\u6708","7\u6708","8\u6708","9\u6708","10\u6708","11\u6708","12\u6708"],wide:["\u4E00\u6708","\u4E8C\u6708","\u4E09\u6708","\u56DB\u6708","\u4E94\u6708","\u516D\u6708","\u4E03\u6708","\u516B\u6708","\u4E5D\u6708","\u5341\u6708","\u5341\u4E00\u6708","\u5341\u4E8C\u6708"]},npe={narrow:["\u65E5","\u4E00","\u4E8C","\u4E09","\u56DB","\u4E94","\u516D"],short:["\u65E5","\u4E00","\u4E8C","\u4E09","\u56DB","\u4E94","\u516D"],abbreviated:["\u9031\u65E5","\u9031\u4E00","\u9031\u4E8C","\u9031\u4E09","\u9031\u56DB","\u9031\u4E94","\u9031\u516D"],wide:["\u661F\u671F\u65E5","\u661F\u671F\u4E00","\u661F\u671F\u4E8C","\u661F\u671F\u4E09","\u661F\u671F\u56DB","\u661F\u671F\u4E94","\u661F\u671F\u516D"]},rpe={narrow:{am:"\u4E0A",pm:"\u4E0B",midnight:"\u51CC\u6668",noon:"\u5348",morning:"\u65E9",afternoon:"\u4E0B\u5348",evening:"\u665A",night:"\u591C"},abbreviated:{am:"\u4E0A\u5348",pm:"\u4E0B\u5348",midnight:"\u51CC\u6668",noon:"\u4E2D\u5348",morning:"\u65E9\u6668",afternoon:"\u4E2D\u5348",evening:"\u665A\u4E0A",night:"\u591C\u9593"},wide:{am:"\u4E0A\u5348",pm:"\u4E0B\u5348",midnight:"\u51CC\u6668",noon:"\u4E2D\u5348",morning:"\u65E9\u6668",afternoon:"\u4E2D\u5348",evening:"\u665A\u4E0A",night:"\u591C\u9593"}},ope={narrow:{am:"\u4E0A",pm:"\u4E0B",midnight:"\u51CC\u6668",noon:"\u5348",morning:"\u65E9",afternoon:"\u4E0B\u5348",evening:"\u665A",night:"\u591C"},abbreviated:{am:"\u4E0A\u5348",pm:"\u4E0B\u5348",midnight:"\u51CC\u6668",noon:"\u4E2D\u5348",morning:"\u65E9\u6668",afternoon:"\u4E2D\u5348",evening:"\u665A\u4E0A",night:"\u591C\u9593"},wide:{am:"\u4E0A\u5348",pm:"\u4E0B\u5348",midnight:"\u51CC\u6668",noon:"\u4E2D\u5348",morning:"\u65E9\u6668",afternoon:"\u4E2D\u5348",evening:"\u665A\u4E0A",night:"\u591C\u9593"}},ape=(t,n)=>{let e=Number(t);switch(n?.unit){case"date":return e+"\u65E5";case"hour":return e+"\u6642";case"minute":return e+"\u5206";case"second":return e+"\u79D2";default:return"\u7B2C "+e}},zz={ordinalNumber:ape,era:Bn({values:epe,defaultWidth:"wide"}),quarter:Bn({values:tpe,defaultWidth:"wide",argumentCallback:t=>t-1}),month:Bn({values:ipe,defaultWidth:"wide"}),day:Bn({values:npe,defaultWidth:"wide"}),dayPeriod:Bn({values:rpe,defaultWidth:"wide",formattingValues:ope,defaultFormattingWidth:"wide"})};var spe=/^(第\s*)?\d+(日|時|分|秒)?/i,lpe=/\d+/i,cpe={narrow:/^(前)/i,abbreviated:/^(前)/i,wide:/^(公元前|公元)/i},dpe={any:[/^(前)/i,/^(公元)/i]},upe={narrow:/^[1234]/i,abbreviated:/^第[一二三四]刻/i,wide:/^第[一二三四]刻鐘/i},mpe={any:[/(1|一)/i,/(2|二)/i,/(3|三)/i,/(4|四)/i]},hpe={narrow:/^(一|二|三|四|五|六|七|八|九|十[二一])/i,abbreviated:/^(一|二|三|四|五|六|七|八|九|十[二一]|\d|1[12])月/i,wide:/^(一|二|三|四|五|六|七|八|九|十[二一])月/i},ppe={narrow:[/^一/i,/^二/i,/^三/i,/^四/i,/^五/i,/^六/i,/^七/i,/^八/i,/^九/i,/^十(?!(一|二))/i,/^十一/i,/^十二/i],any:[/^一|1/i,/^二|2/i,/^三|3/i,/^四|4/i,/^五|5/i,/^六|6/i,/^七|7/i,/^八|8/i,/^九|9/i,/^十(?!(一|二))|10/i,/^十一|11/i,/^十二|12/i]},fpe={narrow:/^[一二三四五六日]/i,short:/^[一二三四五六日]/i,abbreviated:/^週[一二三四五六日]/i,wide:/^星期[一二三四五六日]/i},gpe={any:[/日/i,/一/i,/二/i,/三/i,/四/i,/五/i,/六/i]},_pe={any:/^(上午?|下午?|午夜|[中正]午|早上?|下午|晚上?|凌晨)/i},bpe={any:{am:/^上午?/i,pm:/^下午?/i,midnight:/^午夜/i,noon:/^[中正]午/i,morning:/^早上/i,afternoon:/^下午/i,evening:/^晚上?/i,night:/^凌晨/i}},Uz={ordinalNumber:lh({matchPattern:spe,parsePattern:lpe,valueCallback:t=>parseInt(t,10)}),era:jn({matchPatterns:cpe,defaultMatchWidth:"wide",parsePatterns:dpe,defaultParseWidth:"any"}),quarter:jn({matchPatterns:upe,defaultMatchWidth:"wide",parsePatterns:mpe,defaultParseWidth:"any",valueCallback:t=>t+1}),month:jn({matchPatterns:hpe,defaultMatchWidth:"wide",parsePatterns:ppe,defaultParseWidth:"any"}),day:jn({matchPatterns:fpe,defaultMatchWidth:"wide",parsePatterns:gpe,defaultParseWidth:"any"}),dayPeriod:jn({matchPatterns:_pe,defaultMatchWidth:"any",parsePatterns:bpe,defaultParseWidth:"any"})};var $z={code:"zh-TW",formatDistance:Bz,formatLong:jz,formatRelative:Hz,localize:zz,match:Uz,options:{weekStartsOn:1,firstWeekContainsDate:4}};var xI={navPos:"side",theme:"auto",dir:"ltr",showHeader:!0,headerPos:"fixed",showUserPanel:!0,sidenavOpened:!0,sidenavCollapsed:!1,language:"auto"};var aa=(()=>{let n=class n{get notify(){return this.notify$.asObservable()}constructor(){this.key="ng-matero-settings",this.document=u(ge),this.translate=u(ia),this.store=u(mz),this.mediaMatcher=u(qm),this.dir=u(dz),this.notify$=new tt({}),this.htmlElement=this.document.querySelector("html"),this.storedOptions=this.store.get(this.key),this.options=Object.assign(xI,this.storedOptions),this.languages=["en-US","zh-CN","zh-TW"],this.localeMap={"en-US":tu,"zh-CN":Vz,"zh-TW":$z},this.translate.addLangs(this.languages)}reset(){this.store.remove(this.key)}setOptions(i){this.options=Object.assign(xI,this.options,i),this.store.set(this.key,this.options),this.notify$.next(this.options)}setDirection(i){i&&this.setOptions({dir:i}),this.dir.value=this.options.dir,this.htmlElement.dir=this.options.dir}getThemeColor(){return this.options.theme==="auto"&&this.mediaMatcher.matchMedia("(prefers-color-scheme)").media!=="not all"?this.mediaMatcher.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light":this.options.theme}setTheme(i){i&&this.setOptions({theme:i}),this.getThemeColor()==="dark"?this.htmlElement.classList.add("theme-dark"):this.htmlElement.classList.remove("theme-dark")}getTranslateLang(){if(this.options.language==="auto"){let i=navigator.language;return this.languages.includes(i)?i:"en-US"}return this.options.language}setLanguage(i){i&&this.setOptions({language:i}),this.translate.use(this.getTranslateLang())}getLocale(){return this.localeMap[this.getTranslateLang()]}};n.\u0275fac=function(r){return new(r||n)},n.\u0275prov=O({token:n,factory:n.\u0275fac,providedIn:"root"});let t=n;return t})();var Wz=(()=>{let n=class n{constructor(){this.http=u(Yr),this.oidcAuth=u(Tt),this.menuService=u(so),this.permissonsService=u(_u),this.rolesService=u(Th),this.oidcAuth.permissionsChange$.subscribe(()=>{console.log("StartupService: Permission change event received, refreshing permissions"),this.setPermissions()})}load(){return new Promise((i,r)=>{this.http.get("data/menu.json").pipe(Be(o=>this.setMenu(o.menu))).subscribe({next:()=>{this.setPermissions(),i()},error:o=>{console.error("Error loading menu:",o),this.setPermissions(),i()}})})}setMenu(i){this.menuService.addNamespace(i,"menu"),this.menuService.set(i)}setPermissions(){let i=this.oidcAuth.getUserRoles();console.log("StartupService: User roles from token:",i);let r=["canAdd","canDelete","canEdit","canRead"];this.rolesService.flushRoles(),i.length>0?(this.permissonsService.loadPermissions(r),console.log("StartupService: Loaded permissions:",r),i.includes("HRAdmin")&&(this.rolesService.addRoles({HRAdmin:r}),console.log("StartupService: Added HRAdmin role with permissions:",r)),i.includes("Manager")&&(this.rolesService.addRoles({Manager:r}),console.log("StartupService: Added Manager role with permissions:",r)),i.includes("Employee")&&(this.rolesService.addRoles({Employee:["canRead"]}),console.log("StartupService: Added Employee role with canRead permission"))):(console.log("StartupService: No roles found - setting Guest permissions"),this.permissonsService.loadPermissions(["canRead"]),this.rolesService.addRoles({Guest:["canRead"]}))}};n.\u0275fac=function(r){return new(r||n)},n.\u0275prov=O({token:n,factory:n.\u0275fac,providedIn:"root"});let t=n;return t})();var Gz=(()=>{let n=class n{constructor(){this.document=u(ge),this.selector="globalLoader"}getElement(){return this.document.getElementById(this.selector)}hide(){let i=this.getElement();i&&(i.addEventListener("transitionend",()=>{i.className="global-loader-hidden"}),i.classList.contains("global-loader-hidden")||(i.className+=" global-loader-fade-out"))}};n.\u0275fac=function(r){return new(r||n)},n.\u0275prov=O({token:n,factory:n.\u0275fac,providedIn:"root"});let t=n;return t})();var qz=(()=>{let n=class n{constructor(){this.translate=u(ia),this.settings=u(aa)}load(){return new Promise(i=>{let r=this.settings.getTranslateLang();this.translate.setFallbackLang(r),this.translate.use(r).subscribe({next:()=>console.log(`Successfully initialized '${r}' language.'`),error:()=>console.error(`Problem with '${r}' language initialization.'`),complete:()=>i()})})}};n.\u0275fac=function(r){return new(r||n)},n.\u0275prov=O({token:n,factory:n.\u0275fac,providedIn:"root"});let t=n;return t})();function Yz(t,n){return n(t)}var CI=new T("BASE_URL");function vpe(t){return new RegExp("^http(s)?://","i").test(t)}function Qz(t,n){let e=u(CI,{optional:!0}),i=o=>e&&vpe(o),r=o=>[e?.replace(/\/$/g,""),o.replace(/^\.?\//,"")].filter(a=>a).join("/");return i(t.url)===!1?n(t.clone({url:r(t.url)})):n(t)}function Kz(t,n){let e=u(aa);return n(t.clone({headers:t.headers.append("Accept-Language",e.getTranslateLang())}))}function Zz(t,n){let e=u(Rg);return t.url.includes("/api/")?n(t).pipe(Mt(i=>{if(i instanceof nl){let r=i.body;if(r&&"code"in r&&r.code!==0)return r.msg&&e.error(r.msg),Wn(()=>[])}return Q(i)})):n(t)}var h_=(function(t){return t[t.UNAUTHORIZED=401]="UNAUTHORIZED",t[t.FORBIDDEN=403]="FORBIDDEN",t[t.NOT_FOUND=404]="NOT_FOUND",t[t.INTERNAL_SERVER_ERROR=500]="INTERNAL_SERVER_ERROR",t})(h_||{});function Xz(t,n){let e=u(Re),i=u(Rg),r=[h_.FORBIDDEN,h_.NOT_FOUND,h_.INTERNAL_SERVER_ERROR],o=a=>a.error?.message?a.error.message:a.error?.msg?a.error.msg:a.status===0?"Network error - please check your connection":`${a.status} ${a.statusText}`;return n(t).pipe(fi(a=>a.status===0?(console.warn("Network error (possible CORS issue):",a),Wn(()=>a)):(r.includes(a.status)?e.navigateByUrl(`/${a.status}`,{skipLocationChange:!0}):(console.error("ERROR",a),i.error(o(a)),a.status===h_.UNAUTHORIZED&&console.warn("Unauthorized access - authentication required")),Wn(()=>a))))}function Jz(t,n){let e=u(uz),i=Date.now(),r;return n(t).pipe(Be({next:o=>r=o instanceof nl?"succeeded":"",error:o=>r="failed"}),Hr(()=>{let o=Date.now()-i,a=`${t.method} "${t.urlWithParams}" ${r} in ${o} ms.`;e.add(a)}))}var e8=[Yz,Qz,Kz,Zz,Xz,Jz];var qC=["*"],ype=["content"],xpe=[[["mat-drawer"]],[["mat-drawer-content"]],"*"],Cpe=["mat-drawer","mat-drawer-content","*"];function wpe(t,n){if(t&1){let e=Y();h(0,"div",1),S("click",function(){I(e);let r=C();return A(r._onBackdropClicked())}),p()}if(t&2){let e=C();G("mat-drawer-shown",e._isShowingBackdrop())}}function Dpe(t,n){t&1&&(h(0,"mat-drawer-content"),oe(1,2),p())}var Epe=[[["mat-sidenav"]],[["mat-sidenav-content"]],"*"],Mpe=["mat-sidenav","mat-sidenav-content","*"];function kpe(t,n){if(t&1){let e=Y();h(0,"div",1),S("click",function(){I(e);let r=C();return A(r._onBackdropClicked())}),p()}if(t&2){let e=C();G("mat-drawer-shown",e._isShowingBackdrop())}}function Spe(t,n){t&1&&(h(0,"mat-sidenav-content"),oe(1,2),p())}var Tpe=`.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:.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} +`;var Ipe=new T("MAT_DRAWER_DEFAULT_AUTOSIZE",{providedIn:"root",factory:Ape}),EI=new T("MAT_DRAWER_CONTAINER");function Ape(){return!1}var WC=(()=>{class t extends Pa{_platform=u(qe);_changeDetectorRef=u(ye);_container=u(DI);constructor(){let e=u(q),i=u(ws),r=u(ae);super(e,i,r)}ngAfterContentInit(){this._container._contentMarginChanges.subscribe(()=>{this._changeDetectorRef.markForCheck()})}_shouldBeHidden(){if(this._platform.isBrowser)return!1;let{start:e,end:i}=this._container;return e!=null&&e.mode!=="over"&&e.opened||i!=null&&i.mode!=="over"&&i.opened}static \u0275fac=function(i){return new(i||t)};static \u0275cmp=E({type:t,selectors:[["mat-drawer-content"]],hostAttrs:[1,"mat-drawer-content"],hostVars:6,hostBindings:function(i,r){i&2&&(Dt("margin-left",r._container._contentMargins.left,"px")("margin-right",r._container._contentMargins.right,"px"),G("mat-drawer-content-hidden",r._shouldBeHidden()))},features:[Ce([{provide:Pa,useExisting:t}]),le],ngContentSelectors:qC,decls:1,vars:0,template:function(i,r){i&1&&(Me(),oe(0))},encapsulation:2,changeDetection:0})}return t})(),wI=(()=>{class t{_elementRef=u(q);_focusTrapFactory=u(Qm);_focusMonitor=u(Yt);_platform=u(qe);_ngZone=u(ae);_renderer=u(je);_interactivityChecker=u(ac);_doc=u(ge);_container=u(EI,{optional:!0});_focusTrap=null;_elementFocusedBeforeDrawerWasOpened=null;_eventCleanups;_isAttached;_anchor;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=Ai(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=Ai(e)),this._autoFocus=e}_autoFocus;get opened(){return this._opened()}set opened(e){this.toggle(Ai(e))}_opened=he(!1);_openedVia;_animationStarted=new z;_animationEnd=new z;openedChange=new U(!0);_openedStream=this.openedChange.pipe(ce(e=>e),se(()=>{}));openedStart=this._animationStarted.pipe(ce(()=>this.opened),Gu(void 0));_closedStream=this.openedChange.pipe(ce(e=>!e),se(()=>{}));closedStart=this._animationStarted.pipe(ce(()=>!this.opened),Gu(void 0));_destroyed=new z;onPositionChanged=new U;_content;_modeChanged=new z;_injector=u(de);_changeDetectorRef=u(ye);constructor(){this.openedChange.pipe(Te(this._destroyed)).subscribe(e=>{e?(this._elementFocusedBeforeDrawerWasOpened=this._doc.activeElement,this._takeFocus()):this._isFocusWithinDrawer()&&this._restoreFocus(this._openedVia||"program")}),this._ngZone.runOutsideAngular(()=>{let e=this._elementRef.nativeElement;zs(e,"keydown").pipe(ce(i=>i.keyCode===27&&!this.disableClose&&!Ft(i)),Te(this._destroyed)).subscribe(i=>this._ngZone.run(()=>{this.close(),i.stopPropagation(),i.preventDefault()})),this._eventCleanups=[this._renderer.listen(e,"transitionrun",this._handleTransitionEvent),this._renderer.listen(e,"transitionend",this._handleTransitionEvent),this._renderer.listen(e,"transitioncancel",this._handleTransitionEvent)]}),this._animationEnd.subscribe(()=>{this.openedChange.emit(this.opened)})}_forceFocus(e,i){this._interactivityChecker.isFocusable(e)||(e.tabIndex=-1,this._ngZone.runOutsideAngular(()=>{let r=()=>{o(),a(),e.removeAttribute("tabindex")},o=this._renderer.listen(e,"blur",r),a=this._renderer.listen(e,"mousedown",r)})),e.focus(i)}_focusByCssSelector(e,i){let r=this._elementRef.nativeElement.querySelector(e);r&&this._forceFocus(r,i)}_takeFocus(){if(!this._focusTrap)return;let e=this._elementRef.nativeElement;switch(this.autoFocus){case!1:case"dialog":return;case!0:case"first-tabbable":pt(()=>{!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,i){e&&i&&(this._openedVia=i);let r=this._setOpen(e,!e&&this._isFocusWithinDrawer(),this._openedVia||"program");return e||(this._openedVia=null),r}_setOpen(e,i,r){return e===this.opened?Promise.resolve(e?"open":"close"):(this._opened.set(e),this._container?._transitionsEnabled?this._setIsAnimating(!0):setTimeout(()=>{this._animationStarted.next(),this._animationEnd.next()}),this._elementRef.nativeElement.classList.toggle("mat-drawer-opened",e),!e&&i&&this._restoreFocus(r),this._changeDetectorRef.markForCheck(),this._updateFocusTrapState(),new Promise(o=>{this.openedChange.pipe(lt(1)).subscribe(a=>o(a?"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._container?.hasBackdrop&&this.opened)}_updatePositionInParent(e){if(!this._platform.isBrowser)return;let i=this._elementRef.nativeElement,r=i.parentNode;e==="end"?(this._anchor||(this._anchor=this._doc.createComment("mat-drawer-anchor"),r.insertBefore(this._anchor,i)),r.appendChild(i)):this._anchor&&this._anchor.parentNode.insertBefore(i,this._anchor)}_handleTransitionEvent=e=>{let i=this._elementRef.nativeElement;e.target===i&&this._ngZone.run(()=>{e.type==="transitionrun"?this._animationStarted.next(e):(e.type==="transitionend"&&this._setIsAnimating(!1),this._animationEnd.next(e))})};static \u0275fac=function(i){return new(i||t)};static \u0275cmp=E({type:t,selectors:[["mat-drawer"]],viewQuery:function(i,r){if(i&1&&ie(ype,5),i&2){let o;B(o=j())&&(r._content=o.first)}},hostAttrs:[1,"mat-drawer"],hostVars:12,hostBindings:function(i,r){i&2&&(X("align",null)("tabIndex",r.mode!=="side"?"-1":null),Dt("visibility",!r._container&&!r.opened?"hidden":null),G("mat-drawer-end",r.position==="end")("mat-drawer-over",r.mode==="over")("mat-drawer-push",r.mode==="push")("mat-drawer-side",r.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:qC,decls:3,vars:0,consts:[["content",""],["cdkScrollable","",1,"mat-drawer-inner-container"]],template:function(i,r){i&1&&(Me(),h(0,"div",1,0),oe(2),p())},dependencies:[Pa],encapsulation:2,changeDetection:0})}return t})(),DI=(()=>{class t{_dir=u(Vt,{optional:!0});_element=u(q);_ngZone=u(ae);_changeDetectorRef=u(ye);_animationDisabled=Ye();_transitionsEnabled=!1;_allDrawers;_drawers=new pr;_content;_userContent;get start(){return this._start}get end(){return this._end}get autosize(){return this._autosize}set autosize(e){this._autosize=Ai(e)}_autosize=u(Ipe);get hasBackdrop(){return this._drawerHasBackdrop(this._start)||this._drawerHasBackdrop(this._end)}set hasBackdrop(e){this._backdropOverride=e==null?null:Ai(e)}_backdropOverride;backdropClick=new U;_start;_end;_left;_right;_destroyed=new z;_doCheckSubject=new z;_contentMargins={left:null,right:null};_contentMarginChanges=new z;get scrollable(){return this._userContent||this._content}_injector=u(de);constructor(){let e=u(qe),i=u(Xn);this._dir?.change.pipe(Te(this._destroyed)).subscribe(()=>{this._validateDrawers(),this.updateContentMargins()}),i.change().pipe(Te(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(He(this._allDrawers),Te(this._destroyed)).subscribe(e=>{this._drawers.reset(e.filter(i=>!i._container||i._container===this)),this._drawers.notifyOnChanges()}),this._drawers.changes.pipe(He(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(Rt(10),Te(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,i=0;if(this._left&&this._left.opened){if(this._left.mode=="side")e+=this._left._getWidth();else if(this._left.mode=="push"){let r=this._left._getWidth();e+=r,i-=r}}if(this._right&&this._right.opened){if(this._right.mode=="side")i+=this._right._getWidth();else if(this._right.mode=="push"){let r=this._right._getWidth();i+=r,e-=r}}e=e||null,i=i||null,(e!==this._contentMargins.left||i!==this._contentMargins.right)&&(this._contentMargins={left:e,right:i},this._ngZone.run(()=>this._contentMarginChanges.next(this._contentMargins)))}ngDoCheck(){this._autosize&&this._isPushed()&&this._ngZone.runOutsideAngular(()=>this._doCheckSubject.next())}_watchDrawerToggle(e){e._animationStarted.pipe(Te(this._drawers.changes)).subscribe(()=>{this.updateContentMargins(),this._changeDetectorRef.markForCheck()}),e.mode!=="side"&&e.openedChange.pipe(Te(this._drawers.changes)).subscribe(()=>this._setContainerClass(e.opened))}_watchDrawerPosition(e){e.onPositionChanged.pipe(Te(this._drawers.changes)).subscribe(()=>{pt({read:()=>this._validateDrawers()},{injector:this._injector})})}_watchDrawerMode(e){e._modeChanged.pipe(Te(Je(this._drawers.changes,this._destroyed))).subscribe(()=>{this.updateContentMargins(),this._changeDetectorRef.markForCheck()})}_setContainerClass(e){let i=this._element.nativeElement.classList,r="mat-drawer-container-has-open";e?i.add(r):i.remove(r)}_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(i){return new(i||t)};static \u0275cmp=E({type:t,selectors:[["mat-drawer-container"]],contentQueries:function(i,r,o){if(i&1&&(xe(o,WC,5),xe(o,wI,5)),i&2){let a;B(a=j())&&(r._content=a.first),B(a=j())&&(r._allDrawers=a)}},viewQuery:function(i,r){if(i&1&&ie(WC,5),i&2){let o;B(o=j())&&(r._userContent=o.first)}},hostAttrs:[1,"mat-drawer-container"],hostVars:2,hostBindings:function(i,r){i&2&&G("mat-drawer-container-explicit-backdrop",r._backdropOverride)},inputs:{autosize:"autosize",hasBackdrop:"hasBackdrop"},outputs:{backdropClick:"backdropClick"},exportAs:["matDrawerContainer"],features:[Ce([{provide:EI,useExisting:t}])],ngContentSelectors:Cpe,decls:4,vars:2,consts:[[1,"mat-drawer-backdrop",3,"mat-drawer-shown"],[1,"mat-drawer-backdrop",3,"click"]],template:function(i,r){i&1&&(Me(xpe),N(0,wpe,1,2,"div",0),oe(1),oe(2,1),N(3,Dpe,2,0,"mat-drawer-content")),i&2&&(L(r.hasBackdrop?0:-1),g(3),L(r._content?-1:3))},dependencies:[WC],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:.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 t})(),GC=(()=>{class t extends WC{static \u0275fac=(()=>{let e;return function(r){return(e||(e=fe(t)))(r||t)}})();static \u0275cmp=E({type:t,selectors:[["mat-sidenav-content"]],hostAttrs:[1,"mat-drawer-content","mat-sidenav-content"],features:[Ce([{provide:Pa,useExisting:t}]),le],ngContentSelectors:qC,decls:1,vars:0,template:function(i,r){i&1&&(Me(),oe(0))},encapsulation:2,changeDetection:0})}return t})(),MI=(()=>{class t extends wI{get fixedInViewport(){return this._fixedInViewport}set fixedInViewport(e){this._fixedInViewport=Ai(e)}_fixedInViewport=!1;get fixedTopGap(){return this._fixedTopGap}set fixedTopGap(e){this._fixedTopGap=Ln(e)}_fixedTopGap=0;get fixedBottomGap(){return this._fixedBottomGap}set fixedBottomGap(e){this._fixedBottomGap=Ln(e)}_fixedBottomGap=0;static \u0275fac=(()=>{let e;return function(r){return(e||(e=fe(t)))(r||t)}})();static \u0275cmp=E({type:t,selectors:[["mat-sidenav"]],hostAttrs:[1,"mat-drawer","mat-sidenav"],hostVars:16,hostBindings:function(i,r){i&2&&(X("tabIndex",r.mode!=="side"?"-1":null)("align",null),Dt("top",r.fixedInViewport?r.fixedTopGap:null,"px")("bottom",r.fixedInViewport?r.fixedBottomGap:null,"px"),G("mat-drawer-end",r.position==="end")("mat-drawer-over",r.mode==="over")("mat-drawer-push",r.mode==="push")("mat-drawer-side",r.mode==="side")("mat-sidenav-fixed",r.fixedInViewport))},inputs:{fixedInViewport:"fixedInViewport",fixedTopGap:"fixedTopGap",fixedBottomGap:"fixedBottomGap"},exportAs:["matSidenav"],features:[Ce([{provide:wI,useExisting:t}]),le],ngContentSelectors:qC,decls:3,vars:0,consts:[["content",""],["cdkScrollable","",1,"mat-drawer-inner-container"]],template:function(i,r){i&1&&(Me(),h(0,"div",1,0),oe(2),p())},dependencies:[Pa],encapsulation:2,changeDetection:0})}return t})(),t8=(()=>{class t extends DI{_allDrawers=void 0;_content=void 0;static \u0275fac=(()=>{let e;return function(r){return(e||(e=fe(t)))(r||t)}})();static \u0275cmp=E({type:t,selectors:[["mat-sidenav-container"]],contentQueries:function(i,r,o){if(i&1&&(xe(o,GC,5),xe(o,MI,5)),i&2){let a;B(a=j())&&(r._content=a.first),B(a=j())&&(r._allDrawers=a)}},hostAttrs:[1,"mat-drawer-container","mat-sidenav-container"],hostVars:2,hostBindings:function(i,r){i&2&&G("mat-drawer-container-explicit-backdrop",r._backdropOverride)},exportAs:["matSidenavContainer"],features:[Ce([{provide:EI,useExisting:t},{provide:DI,useExisting:t}]),le],ngContentSelectors:Mpe,decls:4,vars:2,consts:[[1,"mat-drawer-backdrop",3,"mat-drawer-shown"],[1,"mat-drawer-backdrop",3,"click"]],template:function(i,r){i&1&&(Me(Epe),N(0,kpe,1,2,"div",0),oe(1),oe(2,1),N(3,Spe,2,0,"mat-sidenav-content")),i&2&&(L(r.hasBackdrop?0:-1),g(3),L(r._content?-1:3))},dependencies:[GC],styles:[Tpe],encapsulation:2,changeDetection:0})}return t})(),i8=(()=>{class t{static \u0275fac=function(i){return new(i||t)};static \u0275mod=ee({type:t});static \u0275inj=J({imports:[we,vr,vr,we]})}return t})();function Rpe(t,n){t&1&&ai(0,"div",3)}function Ppe(t,n){t&1&&(ft(0,"div",4),ai(1,"div",5),vt())}var Fpe={min:8,max:100,speed:200,debounceTime:0,trickleSpeed:300,fadeOutSpeed:50,relative:!1,flat:!1,spinner:!1,direction:"ltr+",spinnerPosition:"right",trickleFunc:t=>t>=0&&t<20?10:t>=20&&t<50?4:t>=50&&t<80?2:t>=80&&t<99?.5:0},n8=new T("NG_PROGRESS_OPTIONS",{providedIn:"root",factory:()=>Fpe});var YC=(function(t){return t.START="START",t.COMPLETE="COMPLETE",t})(YC||{});function Npe(t){let n=ct(t)||0;return n<100&&n>=0?n:0}function Lpe(t){let n=ct(t)||100;return n>0&&n<=100?n:100}var QC=(()=>{let n=class n{constructor(){this.defaultOptions=u(n8),this.min=ne(this.defaultOptions.min,{transform:Npe}),this.max=ne(this.defaultOptions.max,{transform:Lpe}),this.speed=ne(this.defaultOptions.speed,{transform:ct}),this.trickleSpeed=ne(this.defaultOptions.trickleSpeed,{transform:ct}),this.fadeOutSpeed=ne(this.defaultOptions.fadeOutSpeed,{transform:ct}),this.debounceTime=ne(this.defaultOptions.debounceTime,{transform:ct}),this.trickleFunc=ne(this.defaultOptions.trickleFunc),this.config=Zt(()=>({max:this.max(),min:this.min(),speed:this.speed(),trickleSpeed:this.trickleSpeed(),fadeOutSpeed:this.fadeOutSpeed(),trickleFunc:this.trickleFunc(),debounceTime:this.debounceTime()})),this._progress=he(0),this._active=he(!1),this.active=Zt(()=>this._active()),this.progress=Zt(()=>this._progress()),this.started=bi(),this.completed=bi(),this._trigger=new tt(null);let i;Ar(r=>{let o=this.config();Ti(()=>{i=this._trigger.pipe(ce(a=>!!a),$e(a=>a===YC.START?qa(o.debounceTime).pipe($e(()=>this.onTrickling(o))):this.onComplete(o))).subscribe(),r(()=>i?.unsubscribe())})})}start(){this.started.emit(),this._trigger.next(YC.START),this._active.set(!0)}complete(){this._trigger.next(YC.COMPLETE)}inc(i){let r=this.progress();this.active()?(typeof i!="number"&&(i=this.config().trickleFunc(r)),this.set(r+i)):this.start()}set(i){this._active.set(!0),this._progress.set(this.clamp(i))}clamp(i){return Math.max(this.config().min,Math.min(this.config().max,i))}onTrickling(i){return this.active()||this.set(i.min),qa(0,i.trickleSpeed).pipe(Be(()=>this.inc()))}onComplete(i){return this.active()?(this.completed.emit(),Q({}).pipe(Be(()=>this._progress.set(100)),pa(i.speed+140),Be(()=>this._active.set(!1)),pa(i.fadeOutSpeed),Hr(()=>this._progress.set(0)),Te(pz(this.started)))):Fi}};n.\u0275fac=function(r){return new(r||n)},n.\u0275dir=F({type:n,selectors:[["","ngProgressRef",""]],inputs:{min:[1,"min"],max:[1,"max"],speed:[1,"speed"],trickleSpeed:[1,"trickleSpeed"],fadeOutSpeed:[1,"fadeOutSpeed"],debounceTime:[1,"debounceTime"],trickleFunc:[1,"trickleFunc"]},outputs:{started:"started",completed:"completed"},exportAs:["ngProgressRef"]});let t=n;return t})(),r8=(()=>{let n=class n{constructor(){this.config=u(n8),this.progressRef=u(QC,{host:!0,self:!0}),this.flat=ne(this.config.flat,{transform:V}),this.spinner=ne(this.config.spinner,{transform:V}),this.relative=ne(this.config.relative,{transform:V}),this.spinnerPosition=ne(this.config.spinnerPosition),this.direction=ne(this.config.direction),this.progressTransform=Zt(()=>`translate3d(${this.progressRef.progress()}%,0,0)`)}};n.\u0275fac=function(r){return new(r||n)},n.\u0275cmp=E({type:n,selectors:[["ng-progress"]],hostAttrs:["role","progressbar"],hostVars:12,hostBindings:function(r,o){r&2&&(X("spinnerPosition",o.spinnerPosition())("direction",o.direction()),Dt("--_ng-progress-speed",o.progressRef.speed()+"ms")("--_ng-progress-fade-out-speed",o.progressRef.fadeOutSpeed()+"ms"),G("ng-progress-bar",!0)("ng-progress-bar-active",o.progressRef.active())("ng-progress-bar-relative",o.relative()))},inputs:{flat:[1,"flat"],spinner:[1,"spinner"],relative:[1,"relative"],spinnerPosition:[1,"spinnerPosition"],direction:[1,"direction"]},exportAs:["ngProgress"],features:[ym([{directive:QC,inputs:["min","min","max","max","speed","speed","trickleSpeed","trickleSpeed","fadeOutSpeed","fadeOutSpeed","debounceTime","debounceTime"],outputs:["started","started","completed","completed"]}])],decls:5,vars:4,consts:[[1,"ng-progress-bar-wrapper"],[1,"ng-bar-placeholder"],[1,"ng-bar"],[1,"ng-meteor"],[1,"ng-spinner"],[1,"ng-spinner-icon"]],template:function(r,o){r&1&&(ft(0,"div",0)(1,"div",1)(2,"div",2),N(3,Rpe,1,0,"div",3),vt()(),N(4,Ppe,2,0,"div",4),vt()),r&2&&(g(2),Dt("transform",o.progressTransform()),g(),L(o.flat()?-1:3),g(),L(o.spinner()?4:-1))},styles:['[_nghost-%COMP%]{--_ng-progress-thickness: var(--ng-progress-thickness, 2);--_ng-progress-thickness-px: calc(var(--_ng-progress-thickness) * 1px);--_ng-progress-thickness-add-one: calc(var(--_ng-progress-thickness) + 1);--_ng-progress-meteor-position-px: calc(var(--_ng-progress-thickness-add-one) * -1px);--_ng-progress-color: var(--ng-progress-color, #1B95E0);--_ng-progress-holder-color: var(--ng-progress-holder-color, transparent);--_ng-progress-ease: var(--ng-progress-ease, linear);--_ng-progress-spinner-thickness: var(--ng-progress-spinner-thickness, 2);--_ng-progress-spinner-thickness-px: calc(var(--_ng-progress-spinner-thickness) * 1px);--_ng-progress-spinner-spacing: var(--ng-progress-spinner-spacing, 15);--_ng-progress-spinner-spacing-px: calc(var(--_ng-progress-spinner-spacing) * 1px);--_ng-progress-spinner-size: var(--ng-progress-spinner-size, 18);--_ng-progress-spinner-size-px: calc(var(--_ng-progress-spinner-size) * 1px);--_ng-progress-spinner-speed: var(--ng-progress-spinner-speed, .25s);z-index:999999;pointer-events:none}.ng-progress-bar-active[_nghost-%COMP%] .ng-progress-bar-wrapper[_ngcontent-%COMP%]{filter:alpha(opacity=100);opacity:1;transition:none}.ng-progress-bar-active[_nghost-%COMP%] .ng-bar[_ngcontent-%COMP%]{transition:all var(--_ng-progress-speed) var(--_ng-progress-ease)}.ng-progress-bar-relative[_nghost-%COMP%] .ng-progress-bar-wrapper[_ngcontent-%COMP%]{position:relative}[direction="ltr+"][_nghost-%COMP%] .ng-meteor[_ngcontent-%COMP%], [direction=ltr-][_nghost-%COMP%] .ng-meteor[_ngcontent-%COMP%]{rotate:calc(var(--_ng-progress-thickness-add-one) * 1deg)}[direction="ltr+"][_nghost-%COMP%] .ng-bar[_ngcontent-%COMP%], [direction="rtl+"][_nghost-%COMP%] .ng-bar[_ngcontent-%COMP%]{margin-left:-100%}[direction="ltr+"][_nghost-%COMP%] .ng-meteor[_ngcontent-%COMP%], [direction="rtl+"][_nghost-%COMP%] .ng-meteor[_ngcontent-%COMP%]{right:0}[direction="ltr+"][_nghost-%COMP%] .ng-meteor[_ngcontent-%COMP%], [direction=rtl-][_nghost-%COMP%] .ng-meteor[_ngcontent-%COMP%]{top:var(--_ng-progress-meteor-position-px)}[direction=ltr-][_nghost-%COMP%] .ng-meteor[_ngcontent-%COMP%], [direction="rtl+"][_nghost-%COMP%] .ng-meteor[_ngcontent-%COMP%]{bottom:var(--_ng-progress-meteor-position-px)}[direction=ltr-][_nghost-%COMP%] .ng-bar-placeholder[_ngcontent-%COMP%], [direction="rtl+"][_nghost-%COMP%] .ng-bar-placeholder[_ngcontent-%COMP%]{transform:rotate(180deg)}[direction=ltr-][_nghost-%COMP%] .ng-spinner-icon[_ngcontent-%COMP%], [direction="rtl+"][_nghost-%COMP%] .ng-spinner-icon[_ngcontent-%COMP%]{animation-direction:reverse}[direction="rtl+"][_nghost-%COMP%] .ng-meteor[_ngcontent-%COMP%], [direction=rtl-][_nghost-%COMP%] .ng-meteor[_ngcontent-%COMP%]{rotate:calc(var(--_ng-progress-thickness-add-one) * -1deg)}[_nghost-%COMP%] .ng-spinner[_ngcontent-%COMP%]{top:var(--_ng-progress-spinner-spacing-px)}[spinnerPosition=left][_nghost-%COMP%] .ng-spinner[_ngcontent-%COMP%]{left:var(--_ng-progress-spinner-spacing-px)}[spinnerPosition=right][_nghost-%COMP%] .ng-spinner[_ngcontent-%COMP%]{right:var(--_ng-progress-spinner-spacing-px)}.ng-progress-bar-wrapper[_ngcontent-%COMP%]{position:fixed;z-index:999999;top:0;left:0;width:100%;transform:scale(1);filter:alpha(opacity=0);opacity:0;transition:opacity var(--_ng-progress-fade-out-speed) linear}.ng-bar-placeholder[_ngcontent-%COMP%]{position:absolute;height:var(--_ng-progress-thickness-px);width:100%}.ng-bar[_ngcontent-%COMP%]{width:100%;height:100%;transform:translate(-100%,0,0);background:var(--_ng-progress-color)}.ng-meteor[_ngcontent-%COMP%]{display:block;position:absolute;width:100px;height:100%;opacity:1;box-shadow:0 0 10px var(--_ng-progress-color),0 0 5px var(--_ng-progress-color)}.ng-spinner[_ngcontent-%COMP%]{position:absolute;display:block;z-index:1031;top:10px}.ng-spinner-icon[_ngcontent-%COMP%]{box-sizing:border-box;animation:_ngcontent-%COMP%_spinner-animation var(--_ng-progress-spinner-speed) linear infinite;border-style:solid;border-color:transparent;border-radius:50%;border-top-color:var(--_ng-progress-color);border-left-color:var(--_ng-progress-color);width:var(--_ng-progress-spinner-size-px);height:var(--_ng-progress-spinner-size-px);border-width:var(--_ng-progress-spinner-thickness-px)}@keyframes _ngcontent-%COMP%_spinner-animation{0%{transform:rotate(0)}to{transform:rotate(360deg)}}'],changeDetection:0});let t=n;return t})();var Vpe={minDuration:0,startEvents:[ps],completeEvents:[vi,qo,tc]},Bpe=new T("NG_PROGRESS_ROUTER_OPTIONS",{providedIn:"root",factory:()=>Vpe});function o8(t,n){return n.some(e=>t instanceof e)}var jpe=(()=>{let n=class n{constructor(){this.router=u(Re),this.config=u(Bpe),this.progressRef=u(QC,{host:!0,self:!0});let i;this.router.events.pipe(ce(r=>o8(r,[...this.config.startEvents,...this.config.completeEvents])),se(r=>o8(r,this.config.startEvents)),Be(r=>{clearTimeout(i),r?this.progressRef.start():i=setTimeout(()=>{this.progressRef.complete()},this.config.minDuration)}),ku()).subscribe()}};n.\u0275fac=function(r){return new(r||n)},n.\u0275dir=F({type:n});let t=n;return t})(),a8=(()=>{let n=class n extends jpe{};n.\u0275fac=(()=>{let i;return function(o){return(i||(i=fe(n)))(o||n)}})(),n.\u0275dir=F({type:n,selectors:[["ng-progress","ngProgressRouter",""]],features:[le]});let t=n;return t})();var Hpe=["*",[["mat-toolbar-row"]]],zpe=["*","mat-toolbar-row"],Upe=(()=>{class t{static \u0275fac=function(i){return new(i||t)};static \u0275dir=F({type:t,selectors:[["mat-toolbar-row"]],hostAttrs:[1,"mat-toolbar-row"],exportAs:["matToolbarRow"]})}return t})(),KC=(()=>{class t{_elementRef=u(q);_platform=u(qe);_document=u(ge);color;_toolbarRows;constructor(){}ngAfterViewInit(){this._platform.isBrowser&&(this._checkToolbarMixedModes(),this._toolbarRows.changes.subscribe(()=>this._checkToolbarMixedModes()))}_checkToolbarMixedModes(){this._toolbarRows.length}static \u0275fac=function(i){return new(i||t)};static \u0275cmp=E({type:t,selectors:[["mat-toolbar"]],contentQueries:function(i,r,o){if(i&1&&xe(o,Upe,5),i&2){let a;B(a=j())&&(r._toolbarRows=a)}},hostAttrs:[1,"mat-toolbar"],hostVars:6,hostBindings:function(i,r){i&2&&(it(r.color?"mat-"+r.color:""),G("mat-toolbar-multiple-rows",r._toolbarRows.length>0)("mat-toolbar-single-row",r._toolbarRows.length===0))},inputs:{color:"color"},exportAs:["matToolbar"],ngContentSelectors:zpe,decls:2,vars:0,template:function(i,r){i&1&&(Me(Hpe),oe(0),oe(1,1))},styles:[`.mat-toolbar{background:var(--mat-toolbar-container-background-color, var(--mat-sys-surface));color:var(--mat-toolbar-container-text-color, var(--mat-sys-on-surface))}.mat-toolbar,.mat-toolbar h1,.mat-toolbar h2,.mat-toolbar h3,.mat-toolbar h4,.mat-toolbar h5,.mat-toolbar h6{font-family:var(--mat-toolbar-title-text-font, var(--mat-sys-title-large-font));font-size:var(--mat-toolbar-title-text-size, var(--mat-sys-title-large-size));line-height:var(--mat-toolbar-title-text-line-height, var(--mat-sys-title-large-line-height));font-weight:var(--mat-toolbar-title-text-weight, var(--mat-sys-title-large-weight));letter-spacing:var(--mat-toolbar-title-text-tracking, var(--mat-sys-title-large-tracking));margin:0}@media(forced-colors: active){.mat-toolbar{outline:solid 1px}}.mat-toolbar .mat-form-field-underline,.mat-toolbar .mat-form-field-ripple,.mat-toolbar .mat-focused .mat-form-field-ripple{background-color:currentColor}.mat-toolbar .mat-form-field-label,.mat-toolbar .mat-focused .mat-form-field-label,.mat-toolbar .mat-select-value,.mat-toolbar .mat-select-arrow,.mat-toolbar .mat-form-field.mat-focused .mat-select-arrow{color:inherit}.mat-toolbar .mat-input-element{caret-color:currentColor}.mat-toolbar .mat-mdc-button-base.mat-mdc-button-base.mat-unthemed{--mat-button-text-label-text-color: var(--mat-toolbar-container-text-color, var(--mat-sys-on-surface));--mat-button-outlined-label-text-color: var(--mat-toolbar-container-text-color, var(--mat-sys-on-surface))}.mat-toolbar-row,.mat-toolbar-single-row{display:flex;box-sizing:border-box;padding:0 16px;width:100%;flex-direction:row;align-items:center;white-space:nowrap;height:var(--mat-toolbar-standard-height, 64px)}@media(max-width: 599px){.mat-toolbar-row,.mat-toolbar-single-row{height:var(--mat-toolbar-mobile-height, 56px)}}.mat-toolbar-multiple-rows{display:flex;box-sizing:border-box;flex-direction:column;width:100%;min-height:var(--mat-toolbar-standard-height, 64px)}@media(max-width: 599px){.mat-toolbar-multiple-rows{min-height:var(--mat-toolbar-mobile-height, 56px)}} +`],encapsulation:2,changeDetection:0})}return t})();var ZC=(()=>{class t{static \u0275fac=function(i){return new(i||t)};static \u0275mod=ee({type:t});static \u0275inj=J({imports:[we,we]})}return t})();var l8=[["requestFullscreen","exitFullscreen","fullscreenElement","fullscreenEnabled","fullscreenchange","fullscreenerror"],["webkitRequestFullscreen","webkitExitFullscreen","webkitFullscreenElement","webkitFullscreenEnabled","webkitfullscreenchange","webkitfullscreenerror"],["webkitRequestFullScreen","webkitCancelFullScreen","webkitCurrentFullScreenElement","webkitCancelFullScreen","webkitfullscreenchange","webkitfullscreenerror"],["mozRequestFullScreen","mozCancelFullScreen","mozFullScreenElement","mozFullScreenEnabled","mozfullscreenchange","mozfullscreenerror"],["msRequestFullscreen","msExitFullscreen","msFullscreenElement","msFullscreenEnabled","MSFullscreenChange","MSFullscreenError"]],wl=(()=>{if(typeof document>"u")return!1;let t=l8[0],n={};for(let e of l8)if(e?.[1]in document){for(let[r,o]of e.entries())n[t[r]]=o;return n}return!1})(),c8={change:wl.fullscreenchange,error:wl.fullscreenerror},So={request(t=document.documentElement,n){return new Promise((e,i)=>{let r=()=>{So.off("change",r),e()};So.on("change",r);let o=t[wl.requestFullscreen](n);o instanceof Promise&&o.then(r).catch(i)})},exit(){return new Promise((t,n)=>{if(!So.isFullscreen){t();return}let e=()=>{So.off("change",e),t()};So.on("change",e);let i=document[wl.exitFullscreen]();i instanceof Promise&&i.then(e).catch(n)})},toggle(t,n){return So.isFullscreen?So.exit():So.request(t,n)},onchange(t){So.on("change",t)},onerror(t){So.on("error",t)},on(t,n){let e=c8[t];e&&document.addEventListener(e,n,!1)},off(t,n){let e=c8[t];e&&document.removeEventListener(e,n,!1)},raw:wl};Object.defineProperties(So,{isFullscreen:{get:()=>!!document[wl.fullscreenElement]},element:{enumerable:!0,get:()=>document[wl.fullscreenElement]??void 0},isEnabled:{enumerable:!0,get:()=>!!document[wl.fullscreenEnabled]}});wl||(So={isEnabled:!1});var kI=So;function $pe(t,n){t&1&&(ft(0,"span",2),_(1,"Talent Management"),vt())}var XC=(()=>{let n=class n{constructor(){this.showName=ne(!0)}};n.\u0275fac=function(r){return new(r||n)},n.\u0275cmp=E({type:n,selectors:[["app-branding"]],inputs:{showName:[1,"showName"]},decls:3,vars:1,consts:[["href","/",1,"branding"],["src","images/matero.png","alt","logo",1,"branding-logo"],[1,"branding-name"]],template:function(r,o){r&1&&(ft(0,"a",0),ai(1,"img",1),N(2,$pe,2,0,"span",2),vt()),r&2&&(g(2),L(o.showName()?2:-1))},styles:[".branding[_ngcontent-%COMP%]{display:flex;align-items:center;margin:0 .5rem;text-decoration:none;white-space:nowrap;color:inherit;border-radius:50rem}.branding-logo[_ngcontent-%COMP%]{width:2rem;height:2rem;border-radius:50rem}.branding-name[_ngcontent-%COMP%]{margin:0 .5rem;font-size:1rem;font-weight:500}"]});let t=n;return t})();var d8=(()=>{let n=class n{};n.\u0275fac=function(r){return new(r||n)},n.\u0275cmp=E({type:n,selectors:[["app-github-button"]],decls:3,vars:0,consts:[["matIconButton","","href","https://github.com/ng-matero/ng-matero","target","_blank"],["viewBox","0 0 16 16"],["fill","currentColor","d",`M7.999,0.431c-4.285,0-7.76,3.474-7.76,7.761 c0,3.428,2.223,6.337,5.307,7.363c0.388, 0.071,0.53-0.168,0.53-0.374c0-0.184-0.007-0.672-0.01-1.32 c-2.159, 0.469-2.614-1.04-2.614-1.04c-0.353-0.896-0.862-1.135-0.862-1.135c-0.705-0.481, 0.053-0.472,0.053-0.472 c0.779,0.055,1.189,0.8,1.189,0.8c0.692,1.186,1.816,0.843,2.258, @@ -147,43 +147,43 @@ if you are not using oidc but just oauth2 password flow set oidc to false`);retu 0.261 c1.482-1.004,2.132-0.796,2.132-0.796c0.423,1.068,0.157,1.857,0.077,2.054c0.497, 0.542,0.798,1.235,0.798,2.082 c0,2.981-1.814,3.637-3.543,3.829c0.279,0.24,0.527,0.713, 0.527,1.437c0,1.037-0.01,1.874-0.01,2.129 c0,0.208,0.14,0.449,0.534,0.373c3.081-1.028, - 5.302-3.935,5.302-7.362C15.76,3.906,12.285,0.431,7.999,0.431z`]],template:function(r,o){r&1&&(h(0,"a",0),Gt(),h(1,"svg",1),k(2,"path",2),p()())},dependencies:[ze,ti],encapsulation:2});let t=n;return t})();var m8="mat-badge-content",Gpe=(()=>{class t{static \u0275fac=function(i){return new(i||t)};static \u0275cmp=E({type:t,selectors:[["ng-component"]],decls:0,vars:0,template:function(i,r){},styles:[`.mat-badge{position:relative}.mat-badge.mat-badge{overflow:visible}.mat-badge-content{position:absolute;text-align:center;display:inline-block;transition:transform 200ms ease-in-out;transform:scale(0.6);overflow:hidden;white-space:nowrap;text-overflow:ellipsis;box-sizing:border-box;pointer-events:none;background-color:var(--mat-badge-background-color, var(--mat-sys-error));color:var(--mat-badge-text-color, var(--mat-sys-on-error));font-family:var(--mat-badge-text-font, var(--mat-sys-label-small-font));font-weight:var(--mat-badge-text-weight, var(--mat-sys-label-small-weight));border-radius:var(--mat-badge-container-shape, var(--mat-sys-corner-full))}.mat-badge-above .mat-badge-content{bottom:100%}.mat-badge-below .mat-badge-content{top:100%}.mat-badge-before .mat-badge-content{right:100%}[dir=rtl] .mat-badge-before .mat-badge-content{right:auto;left:100%}.mat-badge-after .mat-badge-content{left:100%}[dir=rtl] .mat-badge-after .mat-badge-content{left:auto;right:100%}@media(forced-colors: active){.mat-badge-content{outline:solid 1px;border-radius:0}}.mat-badge-disabled .mat-badge-content{background-color:var(--mat-badge-disabled-state-background-color, color-mix(in srgb, var(--mat-sys-error) 38%, transparent));color:var(--mat-badge-disabled-state-text-color, var(--mat-sys-on-error))}.mat-badge-hidden .mat-badge-content{display:none}.ng-animate-disabled .mat-badge-content,.mat-badge-content._mat-animation-noopable{transition:none}.mat-badge-content.mat-badge-active{transform:none}.mat-badge-small .mat-badge-content{width:var(--mat-badge-legacy-small-size-container-size, unset);height:var(--mat-badge-legacy-small-size-container-size, unset);min-width:var(--mat-badge-small-size-container-size, 6px);min-height:var(--mat-badge-small-size-container-size, 6px);line-height:var(--mat-badge-small-size-line-height, 6px);padding:var(--mat-badge-small-size-container-padding, 0);font-size:var(--mat-badge-small-size-text-size, 0);margin:var(--mat-badge-small-size-container-offset, -6px 0)}.mat-badge-small.mat-badge-overlap .mat-badge-content{margin:var(--mat-badge-small-size-container-overlap-offset, -6px)}.mat-badge-medium .mat-badge-content{width:var(--mat-badge-legacy-container-size, unset);height:var(--mat-badge-legacy-container-size, unset);min-width:var(--mat-badge-container-size, 16px);min-height:var(--mat-badge-container-size, 16px);line-height:var(--mat-badge-line-height, 16px);padding:var(--mat-badge-container-padding, 0 4px);font-size:var(--mat-badge-text-size, var(--mat-sys-label-small-size));margin:var(--mat-badge-container-offset, -12px 0)}.mat-badge-medium.mat-badge-overlap .mat-badge-content{margin:var(--mat-badge-container-overlap-offset, -12px)}.mat-badge-large .mat-badge-content{width:var(--mat-badge-legacy-large-size-container-size, unset);height:var(--mat-badge-legacy-large-size-container-size, unset);min-width:var(--mat-badge-large-size-container-size, 16px);min-height:var(--mat-badge-large-size-container-size, 16px);line-height:var(--mat-badge-large-size-line-height, 16px);padding:var(--mat-badge-large-size-container-padding, 0 4px);font-size:var(--mat-badge-large-size-text-size, var(--mat-sys-label-small-size));margin:var(--mat-badge-large-size-container-offset, -12px 0)}.mat-badge-large.mat-badge-overlap .mat-badge-content{margin:var(--mat-badge-large-size-container-overlap-offset, -12px)} -`],encapsulation:2,changeDetection:0})}return t})(),h8=(()=>{class t{_ngZone=u(ae);_elementRef=u(q);_ariaDescriber=u(Xm);_renderer=u(je);_animationsDisabled=Ye();_idGenerator=u(Ze);get color(){return this._color}set color(e){this._setColor(e),this._color=e}_color="primary";overlap=!0;disabled;position="above after";get content(){return this._content}set content(e){this._updateRenderedContent(e)}_content;get description(){return this._description}set description(e){this._updateDescription(e)}_description;size="medium";hidden;_badgeElement;_inlineBadgeDescription;_isInitialized=!1;_interactivityChecker=u(ac);_document=u(ge);constructor(){let e=u(ut);e.load(Gpe),e.load(Qr)}isAbove(){return this.position.indexOf("below")===-1}isAfter(){return this.position.indexOf("before")===-1}getBadgeElement(){return this._badgeElement}ngOnInit(){this._clearExistingBadges(),this.content&&!this._badgeElement&&(this._badgeElement=this._createBadgeElement(),this._updateRenderedContent(this.content)),this._isInitialized=!0}ngOnDestroy(){this._renderer.destroyNode&&(this._renderer.destroyNode(this._badgeElement),this._inlineBadgeDescription?.remove()),this._ariaDescriber.removeDescription(this._elementRef.nativeElement,this.description)}_isHostInteractive(){return this._interactivityChecker.isFocusable(this._elementRef.nativeElement,{ignoreVisibility:!0})}_createBadgeElement(){let e=this._renderer.createElement("span"),i="mat-badge-active";return e.setAttribute("id",this._idGenerator.getId("mat-badge-content-")),e.setAttribute("aria-hidden","true"),e.classList.add(m8),this._animationsDisabled&&e.classList.add("_mat-animation-noopable"),this._elementRef.nativeElement.appendChild(e),typeof requestAnimationFrame=="function"&&!this._animationsDisabled?this._ngZone.runOutsideAngular(()=>{requestAnimationFrame(()=>{e.classList.add(i)})}):e.classList.add(i),e}_updateRenderedContent(e){let i=`${e??""}`.trim();this._isInitialized&&i&&!this._badgeElement&&(this._badgeElement=this._createBadgeElement()),this._badgeElement&&(this._badgeElement.textContent=i),this._content=i}_updateDescription(e){this._ariaDescriber.removeDescription(this._elementRef.nativeElement,this.description),(!e||this._isHostInteractive())&&this._removeInlineDescription(),this._description=e,this._isHostInteractive()?this._ariaDescriber.describe(this._elementRef.nativeElement,e):this._updateInlineDescription()}_updateInlineDescription(){this._inlineBadgeDescription||(this._inlineBadgeDescription=this._document.createElement("span"),this._inlineBadgeDescription.classList.add("cdk-visually-hidden")),this._inlineBadgeDescription.textContent=this.description,this._badgeElement?.appendChild(this._inlineBadgeDescription)}_removeInlineDescription(){this._inlineBadgeDescription?.remove(),this._inlineBadgeDescription=void 0}_setColor(e){let i=this._elementRef.nativeElement.classList;i.remove(`mat-badge-${this._color}`),e&&i.add(`mat-badge-${e}`)}_clearExistingBadges(){let e=this._elementRef.nativeElement.querySelectorAll(`:scope > .${m8}`);for(let i of Array.from(e))i!==this._badgeElement&&i.remove()}static \u0275fac=function(i){return new(i||t)};static \u0275dir=F({type:t,selectors:[["","matBadge",""]],hostAttrs:[1,"mat-badge"],hostVars:20,hostBindings:function(i,r){i&2&&G("mat-badge-overlap",r.overlap)("mat-badge-above",r.isAbove())("mat-badge-below",!r.isAbove())("mat-badge-before",!r.isAfter())("mat-badge-after",r.isAfter())("mat-badge-small",r.size==="small")("mat-badge-medium",r.size==="medium")("mat-badge-large",r.size==="large")("mat-badge-hidden",r.hidden||!r.content)("mat-badge-disabled",r.disabled)},inputs:{color:[0,"matBadgeColor","color"],overlap:[2,"matBadgeOverlap","overlap",V],disabled:[2,"matBadgeDisabled","disabled",V],position:[0,"matBadgePosition","position"],content:[0,"matBadge","content"],description:[0,"matBadgeDescription","description"],size:[0,"matBadgeSize","size"],hidden:[2,"matBadgeHidden","hidden",V]}})}return t})(),p8=(()=>{class t{static \u0275fac=function(i){return new(i||t)};static \u0275mod=ee({type:t});static \u0275inj=J({imports:[ll,we,we]})}return t})();var Ha=(()=>{class t{get vertical(){return this._vertical}set vertical(e){this._vertical=Ai(e)}_vertical=!1;get inset(){return this._inset}set inset(e){this._inset=Ai(e)}_inset=!1;static \u0275fac=function(i){return new(i||t)};static \u0275cmp=E({type:t,selectors:[["mat-divider"]],hostAttrs:["role","separator",1,"mat-divider"],hostVars:7,hostBindings:function(i,r){i&2&&(X("aria-orientation",r.vertical?"vertical":"horizontal"),G("mat-divider-vertical",r.vertical)("mat-divider-horizontal",!r.vertical)("mat-divider-inset",r.inset))},inputs:{vertical:"vertical",inset:"inset"},decls:0,vars:0,template:function(i,r){},styles:[`.mat-divider{display:block;margin:0;border-top-style:solid;border-top-color:var(--mat-divider-color, var(--mat-sys-outline-variant));border-top-width:var(--mat-divider-width, 1px)}.mat-divider.mat-divider-vertical{border-top:0;border-right-style:solid;border-right-color:var(--mat-divider-color, var(--mat-sys-outline-variant));border-right-width:var(--mat-divider-width, 1px)}.mat-divider.mat-divider-inset{margin-left:80px}[dir=rtl] .mat-divider.mat-divider-inset{margin-left:auto;margin-right:80px} -`],encapsulation:2,changeDetection:0})}return t})(),sa=(()=>{class t{static \u0275fac=function(i){return new(i||t)};static \u0275mod=ee({type:t});static \u0275inj=J({imports:[we,we]})}return t})();var f8=["*"],g8=`.mdc-list{margin:0;padding:8px 0;list-style-type:none}.mdc-list:focus{outline:none}.mdc-list-item{display:flex;position:relative;justify-content:flex-start;overflow:hidden;padding:0;align-items:stretch;cursor:pointer;padding-left:16px;padding-right:16px;background-color:var(--mat-list-list-item-container-color, transparent);border-radius:var(--mat-list-list-item-container-shape, var(--mat-sys-corner-none))}.mdc-list-item.mdc-list-item--selected{background-color:var(--mat-list-list-item-selected-container-color)}.mdc-list-item:focus{outline:0}.mdc-list-item.mdc-list-item--disabled{cursor:auto}.mdc-list-item.mdc-list-item--with-one-line{height:var(--mat-list-list-item-one-line-container-height, 48px)}.mdc-list-item.mdc-list-item--with-one-line .mdc-list-item__start{align-self:center;margin-top:0}.mdc-list-item.mdc-list-item--with-one-line .mdc-list-item__end{align-self:center;margin-top:0}.mdc-list-item.mdc-list-item--with-two-lines{height:var(--mat-list-list-item-two-line-container-height, 64px)}.mdc-list-item.mdc-list-item--with-two-lines .mdc-list-item__start{align-self:flex-start;margin-top:16px}.mdc-list-item.mdc-list-item--with-two-lines .mdc-list-item__end{align-self:center;margin-top:0}.mdc-list-item.mdc-list-item--with-three-lines{height:var(--mat-list-list-item-three-line-container-height, 88px)}.mdc-list-item.mdc-list-item--with-three-lines .mdc-list-item__start{align-self:flex-start;margin-top:16px}.mdc-list-item.mdc-list-item--with-three-lines .mdc-list-item__end{align-self:flex-start;margin-top:16px}.mdc-list-item.mdc-list-item--selected::before,.mdc-list-item.mdc-list-item--selected:focus::before,.mdc-list-item:not(.mdc-list-item--selected):focus::before{position:absolute;box-sizing:border-box;width:100%;height:100%;top:0;left:0;content:"";pointer-events:none}a.mdc-list-item{color:inherit;text-decoration:none}.mdc-list-item__start{fill:currentColor;flex-shrink:0;pointer-events:none}.mdc-list-item--with-leading-icon .mdc-list-item__start{color:var(--mat-list-list-item-leading-icon-color, var(--mat-sys-on-surface-variant));width:var(--mat-list-list-item-leading-icon-size, 24px);height:var(--mat-list-list-item-leading-icon-size, 24px);margin-left:16px;margin-right:32px}[dir=rtl] .mdc-list-item--with-leading-icon .mdc-list-item__start{margin-left:32px;margin-right:16px}.mdc-list-item--with-leading-icon:hover .mdc-list-item__start{color:var(--mat-list-list-item-hover-leading-icon-color)}.mdc-list-item--with-leading-avatar .mdc-list-item__start{width:var(--mat-list-list-item-leading-avatar-size, 40px);height:var(--mat-list-list-item-leading-avatar-size, 40px);margin-left:16px;margin-right:16px;border-radius:50%}.mdc-list-item--with-leading-avatar .mdc-list-item__start,[dir=rtl] .mdc-list-item--with-leading-avatar .mdc-list-item__start{margin-left:16px;margin-right:16px;border-radius:50%}.mdc-list-item__end{flex-shrink:0;pointer-events:none}.mdc-list-item--with-trailing-meta .mdc-list-item__end{font-family:var(--mat-list-list-item-trailing-supporting-text-font, var(--mat-sys-label-small-font));line-height:var(--mat-list-list-item-trailing-supporting-text-line-height, var(--mat-sys-label-small-line-height));font-size:var(--mat-list-list-item-trailing-supporting-text-size, var(--mat-sys-label-small-size));font-weight:var(--mat-list-list-item-trailing-supporting-text-weight, var(--mat-sys-label-small-weight));letter-spacing:var(--mat-list-list-item-trailing-supporting-text-tracking, var(--mat-sys-label-small-tracking))}.mdc-list-item--with-trailing-icon .mdc-list-item__end{color:var(--mat-list-list-item-trailing-icon-color, var(--mat-sys-on-surface-variant));width:var(--mat-list-list-item-trailing-icon-size, 24px);height:var(--mat-list-list-item-trailing-icon-size, 24px)}.mdc-list-item--with-trailing-icon:hover .mdc-list-item__end{color:var(--mat-list-list-item-hover-trailing-icon-color)}.mdc-list-item.mdc-list-item--with-trailing-meta .mdc-list-item__end{color:var(--mat-list-list-item-trailing-supporting-text-color, var(--mat-sys-on-surface-variant))}.mdc-list-item--selected.mdc-list-item--with-trailing-icon .mdc-list-item__end{color:var(--mat-list-list-item-selected-trailing-icon-color, var(--mat-sys-primary))}.mdc-list-item__content{text-overflow:ellipsis;white-space:nowrap;overflow:hidden;align-self:center;flex:1;pointer-events:none}.mdc-list-item--with-two-lines .mdc-list-item__content,.mdc-list-item--with-three-lines .mdc-list-item__content{align-self:stretch}.mdc-list-item__primary-text{text-overflow:ellipsis;white-space:nowrap;overflow:hidden;color:var(--mat-list-list-item-label-text-color, var(--mat-sys-on-surface));font-family:var(--mat-list-list-item-label-text-font, var(--mat-sys-body-large-font));line-height:var(--mat-list-list-item-label-text-line-height, var(--mat-sys-body-large-line-height));font-size:var(--mat-list-list-item-label-text-size, var(--mat-sys-body-large-size));font-weight:var(--mat-list-list-item-label-text-weight, var(--mat-sys-body-large-weight));letter-spacing:var(--mat-list-list-item-label-text-tracking, var(--mat-sys-body-large-tracking))}.mdc-list-item:hover .mdc-list-item__primary-text{color:var(--mat-list-list-item-hover-label-text-color, var(--mat-sys-on-surface))}.mdc-list-item:focus .mdc-list-item__primary-text{color:var(--mat-list-list-item-focus-label-text-color, var(--mat-sys-on-surface))}.mdc-list-item--with-two-lines .mdc-list-item__primary-text,.mdc-list-item--with-three-lines .mdc-list-item__primary-text{display:block;margin-top:0;line-height:normal;margin-bottom:-20px}.mdc-list-item--with-two-lines .mdc-list-item__primary-text::before,.mdc-list-item--with-three-lines .mdc-list-item__primary-text::before{display:inline-block;width:0;height:28px;content:"";vertical-align:0}.mdc-list-item--with-two-lines .mdc-list-item__primary-text::after,.mdc-list-item--with-three-lines .mdc-list-item__primary-text::after{display:inline-block;width:0;height:20px;content:"";vertical-align:-20px}.mdc-list-item__secondary-text{text-overflow:ellipsis;white-space:nowrap;overflow:hidden;display:block;margin-top:0;color:var(--mat-list-list-item-supporting-text-color, var(--mat-sys-on-surface-variant));font-family:var(--mat-list-list-item-supporting-text-font, var(--mat-sys-body-medium-font));line-height:var(--mat-list-list-item-supporting-text-line-height, var(--mat-sys-body-medium-line-height));font-size:var(--mat-list-list-item-supporting-text-size, var(--mat-sys-body-medium-size));font-weight:var(--mat-list-list-item-supporting-text-weight, var(--mat-sys-body-medium-weight));letter-spacing:var(--mat-list-list-item-supporting-text-tracking, var(--mat-sys-body-medium-tracking))}.mdc-list-item__secondary-text::before{display:inline-block;width:0;height:20px;content:"";vertical-align:0}.mdc-list-item--with-three-lines .mdc-list-item__secondary-text{white-space:normal;line-height:20px}.mdc-list-item--with-overline .mdc-list-item__secondary-text{white-space:nowrap;line-height:auto}.mdc-list-item--with-leading-radio.mdc-list-item,.mdc-list-item--with-leading-checkbox.mdc-list-item,.mdc-list-item--with-leading-icon.mdc-list-item,.mdc-list-item--with-leading-avatar.mdc-list-item{padding-left:0;padding-right:16px}[dir=rtl] .mdc-list-item--with-leading-radio.mdc-list-item,[dir=rtl] .mdc-list-item--with-leading-checkbox.mdc-list-item,[dir=rtl] .mdc-list-item--with-leading-icon.mdc-list-item,[dir=rtl] .mdc-list-item--with-leading-avatar.mdc-list-item{padding-left:16px;padding-right:0}.mdc-list-item--with-leading-radio.mdc-list-item--with-two-lines .mdc-list-item__primary-text,.mdc-list-item--with-leading-checkbox.mdc-list-item--with-two-lines .mdc-list-item__primary-text,.mdc-list-item--with-leading-icon.mdc-list-item--with-two-lines .mdc-list-item__primary-text,.mdc-list-item--with-leading-avatar.mdc-list-item--with-two-lines .mdc-list-item__primary-text{display:block;margin-top:0;line-height:normal;margin-bottom:-20px}.mdc-list-item--with-leading-radio.mdc-list-item--with-two-lines .mdc-list-item__primary-text::before,.mdc-list-item--with-leading-checkbox.mdc-list-item--with-two-lines .mdc-list-item__primary-text::before,.mdc-list-item--with-leading-icon.mdc-list-item--with-two-lines .mdc-list-item__primary-text::before,.mdc-list-item--with-leading-avatar.mdc-list-item--with-two-lines .mdc-list-item__primary-text::before{display:inline-block;width:0;height:32px;content:"";vertical-align:0}.mdc-list-item--with-leading-radio.mdc-list-item--with-two-lines .mdc-list-item__primary-text::after,.mdc-list-item--with-leading-checkbox.mdc-list-item--with-two-lines .mdc-list-item__primary-text::after,.mdc-list-item--with-leading-icon.mdc-list-item--with-two-lines .mdc-list-item__primary-text::after,.mdc-list-item--with-leading-avatar.mdc-list-item--with-two-lines .mdc-list-item__primary-text::after{display:inline-block;width:0;height:20px;content:"";vertical-align:-20px}.mdc-list-item--with-leading-radio.mdc-list-item--with-two-lines.mdc-list-item--with-trailing-meta .mdc-list-item__end,.mdc-list-item--with-leading-checkbox.mdc-list-item--with-two-lines.mdc-list-item--with-trailing-meta .mdc-list-item__end,.mdc-list-item--with-leading-icon.mdc-list-item--with-two-lines.mdc-list-item--with-trailing-meta .mdc-list-item__end,.mdc-list-item--with-leading-avatar.mdc-list-item--with-two-lines.mdc-list-item--with-trailing-meta .mdc-list-item__end{display:block;margin-top:0;line-height:normal}.mdc-list-item--with-leading-radio.mdc-list-item--with-two-lines.mdc-list-item--with-trailing-meta .mdc-list-item__end::before,.mdc-list-item--with-leading-checkbox.mdc-list-item--with-two-lines.mdc-list-item--with-trailing-meta .mdc-list-item__end::before,.mdc-list-item--with-leading-icon.mdc-list-item--with-two-lines.mdc-list-item--with-trailing-meta .mdc-list-item__end::before,.mdc-list-item--with-leading-avatar.mdc-list-item--with-two-lines.mdc-list-item--with-trailing-meta .mdc-list-item__end::before{display:inline-block;width:0;height:32px;content:"";vertical-align:0}.mdc-list-item--with-trailing-icon.mdc-list-item,[dir=rtl] .mdc-list-item--with-trailing-icon.mdc-list-item{padding-left:0;padding-right:0}.mdc-list-item--with-trailing-icon .mdc-list-item__end{margin-left:16px;margin-right:16px}.mdc-list-item--with-trailing-meta.mdc-list-item{padding-left:16px;padding-right:0}[dir=rtl] .mdc-list-item--with-trailing-meta.mdc-list-item{padding-left:0;padding-right:16px}.mdc-list-item--with-trailing-meta .mdc-list-item__end{-webkit-user-select:none;user-select:none;margin-left:28px;margin-right:16px}[dir=rtl] .mdc-list-item--with-trailing-meta .mdc-list-item__end{margin-left:16px;margin-right:28px}.mdc-list-item--with-trailing-meta.mdc-list-item--with-three-lines .mdc-list-item__end,.mdc-list-item--with-trailing-meta.mdc-list-item--with-two-lines .mdc-list-item__end{display:block;line-height:normal;align-self:flex-start;margin-top:0}.mdc-list-item--with-trailing-meta.mdc-list-item--with-three-lines .mdc-list-item__end::before,.mdc-list-item--with-trailing-meta.mdc-list-item--with-two-lines .mdc-list-item__end::before{display:inline-block;width:0;height:28px;content:"";vertical-align:0}.mdc-list-item--with-leading-radio .mdc-list-item__start,.mdc-list-item--with-leading-checkbox .mdc-list-item__start{margin-left:8px;margin-right:24px}[dir=rtl] .mdc-list-item--with-leading-radio .mdc-list-item__start,[dir=rtl] .mdc-list-item--with-leading-checkbox .mdc-list-item__start{margin-left:24px;margin-right:8px}.mdc-list-item--with-leading-radio.mdc-list-item--with-two-lines .mdc-list-item__start,.mdc-list-item--with-leading-checkbox.mdc-list-item--with-two-lines .mdc-list-item__start{align-self:flex-start;margin-top:8px}.mdc-list-item--with-trailing-radio.mdc-list-item,.mdc-list-item--with-trailing-checkbox.mdc-list-item{padding-left:16px;padding-right:0}[dir=rtl] .mdc-list-item--with-trailing-radio.mdc-list-item,[dir=rtl] .mdc-list-item--with-trailing-checkbox.mdc-list-item{padding-left:0;padding-right:16px}.mdc-list-item--with-trailing-radio.mdc-list-item--with-leading-icon,.mdc-list-item--with-trailing-radio.mdc-list-item--with-leading-avatar,.mdc-list-item--with-trailing-checkbox.mdc-list-item--with-leading-icon,.mdc-list-item--with-trailing-checkbox.mdc-list-item--with-leading-avatar{padding-left:0}[dir=rtl] .mdc-list-item--with-trailing-radio.mdc-list-item--with-leading-icon,[dir=rtl] .mdc-list-item--with-trailing-radio.mdc-list-item--with-leading-avatar,[dir=rtl] .mdc-list-item--with-trailing-checkbox.mdc-list-item--with-leading-icon,[dir=rtl] .mdc-list-item--with-trailing-checkbox.mdc-list-item--with-leading-avatar{padding-right:0}.mdc-list-item--with-trailing-radio .mdc-list-item__end,.mdc-list-item--with-trailing-checkbox .mdc-list-item__end{margin-left:24px;margin-right:8px}[dir=rtl] .mdc-list-item--with-trailing-radio .mdc-list-item__end,[dir=rtl] .mdc-list-item--with-trailing-checkbox .mdc-list-item__end{margin-left:8px;margin-right:24px}.mdc-list-item--with-trailing-radio.mdc-list-item--with-three-lines .mdc-list-item__end,.mdc-list-item--with-trailing-checkbox.mdc-list-item--with-three-lines .mdc-list-item__end{align-self:flex-start;margin-top:8px}.mdc-list-group__subheader{margin:.75rem 16px}.mdc-list-item--disabled .mdc-list-item__start,.mdc-list-item--disabled .mdc-list-item__content,.mdc-list-item--disabled .mdc-list-item__end{opacity:1}.mdc-list-item--disabled .mdc-list-item__primary-text,.mdc-list-item--disabled .mdc-list-item__secondary-text{opacity:var(--mat-list-list-item-disabled-label-text-opacity, 0.3)}.mdc-list-item--disabled.mdc-list-item--with-leading-icon .mdc-list-item__start{color:var(--mat-list-list-item-disabled-leading-icon-color, var(--mat-sys-on-surface));opacity:var(--mat-list-list-item-disabled-leading-icon-opacity, 0.38)}.mdc-list-item--disabled.mdc-list-item--with-trailing-icon .mdc-list-item__end{color:var(--mat-list-list-item-disabled-trailing-icon-color, var(--mat-sys-on-surface));opacity:var(--mat-list-list-item-disabled-trailing-icon-opacity, 0.38)}.mat-mdc-list-item.mat-mdc-list-item-both-leading-and-trailing,[dir=rtl] .mat-mdc-list-item.mat-mdc-list-item-both-leading-and-trailing{padding-left:0;padding-right:0}.mdc-list-item.mdc-list-item--disabled .mdc-list-item__primary-text{color:var(--mat-list-list-item-disabled-label-text-color, var(--mat-sys-on-surface))}.mdc-list-item:hover::before{background-color:var(--mat-list-list-item-hover-state-layer-color, var(--mat-sys-on-surface));opacity:var(--mat-list-list-item-hover-state-layer-opacity, var(--mat-sys-hover-state-layer-opacity))}.mdc-list-item.mdc-list-item--disabled::before{background-color:var(--mat-list-list-item-disabled-state-layer-color, var(--mat-sys-on-surface));opacity:var(--mat-list-list-item-disabled-state-layer-opacity, var(--mat-sys-focus-state-layer-opacity))}.mdc-list-item:focus::before{background-color:var(--mat-list-list-item-focus-state-layer-color, var(--mat-sys-on-surface));opacity:var(--mat-list-list-item-focus-state-layer-opacity, var(--mat-sys-focus-state-layer-opacity))}.mdc-list-item--disabled .mdc-radio,.mdc-list-item--disabled .mdc-checkbox{opacity:var(--mat-list-list-item-disabled-label-text-opacity, 0.3)}.mdc-list-item--with-leading-avatar .mat-mdc-list-item-avatar{border-radius:var(--mat-list-list-item-leading-avatar-shape, var(--mat-sys-corner-full));background-color:var(--mat-list-list-item-leading-avatar-color, var(--mat-sys-primary-container))}.mat-mdc-list-item-icon{font-size:var(--mat-list-list-item-leading-icon-size, 24px)}@media(forced-colors: active){a.mdc-list-item--activated::after{content:"";position:absolute;top:50%;right:16px;transform:translateY(-50%);width:10px;height:0;border-bottom:solid 10px;border-radius:10px}a.mdc-list-item--activated [dir=rtl]::after{right:auto;left:16px}}.mat-mdc-list-base{display:block}.mat-mdc-list-base .mdc-list-item__start,.mat-mdc-list-base .mdc-list-item__end,.mat-mdc-list-base .mdc-list-item__content{pointer-events:auto}.mat-mdc-list-item,.mat-mdc-list-option{width:100%;box-sizing:border-box;-webkit-tap-highlight-color:rgba(0,0,0,0)}.mat-mdc-list-item:not(.mat-mdc-list-item-interactive),.mat-mdc-list-option:not(.mat-mdc-list-item-interactive){cursor:default}.mat-mdc-list-item .mat-divider-inset,.mat-mdc-list-option .mat-divider-inset{position:absolute;left:0;right:0;bottom:0}.mat-mdc-list-item .mat-mdc-list-item-avatar~.mat-divider-inset,.mat-mdc-list-option .mat-mdc-list-item-avatar~.mat-divider-inset{margin-left:72px}[dir=rtl] .mat-mdc-list-item .mat-mdc-list-item-avatar~.mat-divider-inset,[dir=rtl] .mat-mdc-list-option .mat-mdc-list-item-avatar~.mat-divider-inset{margin-right:72px}.mat-mdc-list-item-interactive::before{top:0;left:0;right:0;bottom:0;position:absolute;content:"";opacity:0;pointer-events:none;border-radius:inherit}.mat-mdc-list-item>.mat-focus-indicator{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none}.mat-mdc-list-item:focus>.mat-focus-indicator::before{content:""}.mat-mdc-list-item.mdc-list-item--with-three-lines .mat-mdc-list-item-line.mdc-list-item__secondary-text{white-space:nowrap;line-height:normal}.mat-mdc-list-item.mdc-list-item--with-three-lines .mat-mdc-list-item-unscoped-content.mdc-list-item__secondary-text{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2}mat-action-list button{background:none;color:inherit;border:none;font:inherit;outline:inherit;-webkit-tap-highlight-color:rgba(0,0,0,0);text-align:start}mat-action-list button::-moz-focus-inner{border:0}.mdc-list-item--with-leading-icon .mdc-list-item__start{margin-inline-start:var(--mat-list-list-item-leading-icon-start-space, 16px);margin-inline-end:var(--mat-list-list-item-leading-icon-end-space, 16px)}.mat-mdc-nav-list .mat-mdc-list-item{border-radius:var(--mat-list-active-indicator-shape, var(--mat-sys-corner-full));--mat-focus-indicator-border-radius: var(--mat-list-active-indicator-shape, var(--mat-sys-corner-full))}.mat-mdc-nav-list .mat-mdc-list-item.mdc-list-item--activated{background-color:var(--mat-list-active-indicator-color, var(--mat-sys-secondary-container))} -`,Ype=["unscopedContent"],Qpe=["text"],Kpe=[[["","matListItemAvatar",""],["","matListItemIcon",""]],[["","matListItemTitle",""]],[["","matListItemLine",""]],"*",[["","matListItemMeta",""]],[["mat-divider"]]],Zpe=["[matListItemAvatar],[matListItemIcon]","[matListItemTitle]","[matListItemLine]","*","[matListItemMeta]","mat-divider"];var Xpe=new T("ListOption"),Dl=(()=>{class t{_elementRef=u(q);constructor(){}static \u0275fac=function(i){return new(i||t)};static \u0275dir=F({type:t,selectors:[["","matListItemTitle",""]],hostAttrs:[1,"mat-mdc-list-item-title","mdc-list-item__primary-text"]})}return t})(),Tu=(()=>{class t{_elementRef=u(q);constructor(){}static \u0275fac=function(i){return new(i||t)};static \u0275dir=F({type:t,selectors:[["","matListItemLine",""]],hostAttrs:[1,"mat-mdc-list-item-line","mdc-list-item__secondary-text"]})}return t})(),TI=(()=>{class t{static \u0275fac=function(i){return new(i||t)};static \u0275dir=F({type:t,selectors:[["","matListItemMeta",""]],hostAttrs:[1,"mat-mdc-list-item-meta","mdc-list-item__end"]})}return t})(),_8=(()=>{class t{_listOption=u(Xpe,{optional:!0});constructor(){}_isAlignedAtStart(){return!this._listOption||this._listOption?._getTogglePosition()==="after"}static \u0275fac=function(i){return new(i||t)};static \u0275dir=F({type:t,hostVars:4,hostBindings:function(i,r){i&2&&G("mdc-list-item__start",r._isAlignedAtStart())("mdc-list-item__end",!r._isAlignedAtStart())}})}return t})(),Jpe=(()=>{class t extends _8{static \u0275fac=(()=>{let e;return function(r){return(e||(e=fe(t)))(r||t)}})();static \u0275dir=F({type:t,selectors:[["","matListItemAvatar",""]],hostAttrs:[1,"mat-mdc-list-item-avatar"],features:[le]})}return t})(),f_=(()=>{class t extends _8{static \u0275fac=(()=>{let e;return function(r){return(e||(e=fe(t)))(r||t)}})();static \u0275dir=F({type:t,selectors:[["","matListItemIcon",""]],hostAttrs:[1,"mat-mdc-list-item-icon"],features:[le]})}return t})(),efe=new T("MAT_LIST_CONFIG"),p_=(()=>{class t{_isNonInteractive=!0;get disableRipple(){return this._disableRipple}set disableRipple(e){this._disableRipple=Ai(e)}_disableRipple=!1;get disabled(){return this._disabled()}set disabled(e){this._disabled.set(Ai(e))}_disabled=he(!1);_defaultOptions=u(efe,{optional:!0});static \u0275fac=function(i){return new(i||t)};static \u0275dir=F({type:t,hostVars:1,hostBindings:function(i,r){i&2&&X("aria-disabled",r.disabled)},inputs:{disableRipple:"disableRipple",disabled:"disabled"}})}return t})(),tfe=(()=>{class t{_elementRef=u(q);_ngZone=u(ae);_listBase=u(p_,{optional:!0});_platform=u(qe);_hostElement;_isButtonElement;_noopAnimations=Ye();_avatars;_icons;set lines(e){this._explicitLines=Ln(e,null),this._updateItemLines(!1)}_explicitLines=null;get disableRipple(){return this.disabled||this._disableRipple||this._noopAnimations||!!this._listBase?.disableRipple}set disableRipple(e){this._disableRipple=Ai(e)}_disableRipple=!1;get disabled(){return this._disabled()||!!this._listBase?.disabled}set disabled(e){this._disabled.set(Ai(e))}_disabled=he(!1);_subscriptions=new ke;_rippleRenderer=null;_hasUnscopedTextContent=!1;rippleConfig;get rippleDisabled(){return this.disableRipple||!!this.rippleConfig.disabled}constructor(){u(ut).load(Di);let e=u(Cs,{optional:!0});this.rippleConfig=e||{},this._hostElement=this._elementRef.nativeElement,this._isButtonElement=this._hostElement.nodeName.toLowerCase()==="button",this._listBase&&!this._listBase._isNonInteractive&&this._initInteractiveListItem(),this._isButtonElement&&!this._hostElement.hasAttribute("type")&&this._hostElement.setAttribute("type","button")}ngAfterViewInit(){this._monitorProjectedLinesAndTitle(),this._updateItemLines(!0)}ngOnDestroy(){this._subscriptions.unsubscribe(),this._rippleRenderer!==null&&this._rippleRenderer._removeTriggerEvents()}_hasIconOrAvatar(){return!!(this._avatars.length||this._icons.length)}_initInteractiveListItem(){this._hostElement.classList.add("mat-mdc-list-item-interactive"),this._rippleRenderer=new lc(this,this._ngZone,this._hostElement,this._platform,u(de)),this._rippleRenderer.setupTriggerEvents(this._hostElement)}_monitorProjectedLinesAndTitle(){this._ngZone.runOutsideAngular(()=>{this._subscriptions.add(Je(this._lines.changes,this._titles.changes).subscribe(()=>this._updateItemLines(!1)))})}_updateItemLines(e){if(!this._lines||!this._titles||!this._unscopedContent)return;e&&this._checkDomForUnscopedTextContent();let i=this._explicitLines??this._inferLinesFromContent(),r=this._unscopedContent.nativeElement;if(this._hostElement.classList.toggle("mat-mdc-list-item-single-line",i<=1),this._hostElement.classList.toggle("mdc-list-item--with-one-line",i<=1),this._hostElement.classList.toggle("mdc-list-item--with-two-lines",i===2),this._hostElement.classList.toggle("mdc-list-item--with-three-lines",i===3),this._hasUnscopedTextContent){let o=this._titles.length===0&&i===1;r.classList.toggle("mdc-list-item__primary-text",o),r.classList.toggle("mdc-list-item__secondary-text",!o)}else r.classList.remove("mdc-list-item__primary-text"),r.classList.remove("mdc-list-item__secondary-text")}_inferLinesFromContent(){let e=this._titles.length+this._lines.length;return this._hasUnscopedTextContent&&(e+=1),e}_checkDomForUnscopedTextContent(){this._hasUnscopedTextContent=Array.from(this._unscopedContent.nativeElement.childNodes).filter(e=>e.nodeType!==e.COMMENT_NODE).some(e=>!!(e.textContent&&e.textContent.trim()))}static \u0275fac=function(i){return new(i||t)};static \u0275dir=F({type:t,contentQueries:function(i,r,o){if(i&1&&(xe(o,Jpe,4),xe(o,f_,4)),i&2){let a;B(a=j())&&(r._avatars=a),B(a=j())&&(r._icons=a)}},hostVars:4,hostBindings:function(i,r){i&2&&(X("aria-disabled",r.disabled)("disabled",r._isButtonElement&&r.disabled||null),G("mdc-list-item--disabled",r.disabled))},inputs:{lines:"lines",disableRipple:"disableRipple",disabled:"disabled"}})}return t})();var Fs=(()=>{class t extends p_{static \u0275fac=(()=>{let e;return function(r){return(e||(e=fe(t)))(r||t)}})();static \u0275cmp=E({type:t,selectors:[["mat-list"]],hostAttrs:[1,"mat-mdc-list","mat-mdc-list-base","mdc-list"],exportAs:["matList"],features:[Ce([{provide:p_,useExisting:t}]),le],ngContentSelectors:f8,decls:1,vars:0,template:function(i,r){i&1&&(Me(),oe(0))},styles:[g8],encapsulation:2,changeDetection:0})}return t})(),la=(()=>{class t extends tfe{_lines;_titles;_meta;_unscopedContent;_itemText;get activated(){return this._activated}set activated(e){this._activated=Ai(e)}_activated=!1;_getAriaCurrent(){return this._hostElement.nodeName==="A"&&this._activated?"page":null}_hasBothLeadingAndTrailing(){return this._meta.length!==0&&(this._avatars.length!==0||this._icons.length!==0)}static \u0275fac=(()=>{let e;return function(r){return(e||(e=fe(t)))(r||t)}})();static \u0275cmp=E({type:t,selectors:[["mat-list-item"],["a","mat-list-item",""],["button","mat-list-item",""]],contentQueries:function(i,r,o){if(i&1&&(xe(o,Tu,5),xe(o,Dl,5),xe(o,TI,5)),i&2){let a;B(a=j())&&(r._lines=a),B(a=j())&&(r._titles=a),B(a=j())&&(r._meta=a)}},viewQuery:function(i,r){if(i&1&&(ie(Ype,5),ie(Qpe,5)),i&2){let o;B(o=j())&&(r._unscopedContent=o.first),B(o=j())&&(r._itemText=o.first)}},hostAttrs:[1,"mat-mdc-list-item","mdc-list-item"],hostVars:13,hostBindings:function(i,r){i&2&&(X("aria-current",r._getAriaCurrent()),G("mdc-list-item--activated",r.activated)("mdc-list-item--with-leading-avatar",r._avatars.length!==0)("mdc-list-item--with-leading-icon",r._icons.length!==0)("mdc-list-item--with-trailing-meta",r._meta.length!==0)("mat-mdc-list-item-both-leading-and-trailing",r._hasBothLeadingAndTrailing())("_mat-animation-noopable",r._noopAnimations))},inputs:{activated:"activated"},exportAs:["matListItem"],features:[le],ngContentSelectors:Zpe,decls:10,vars:0,consts:[["unscopedContent",""],[1,"mdc-list-item__content"],[1,"mat-mdc-list-item-unscoped-content",3,"cdkObserveContent"],[1,"mat-focus-indicator"]],template:function(i,r){if(i&1){let o=Y();Me(Kpe),oe(0),h(1,"span",1),oe(2,1),oe(3,2),h(4,"span",2,0),S("cdkObserveContent",function(){return I(o),A(r._updateItemLines(!0))}),oe(6,3),p()(),oe(7,4),oe(8,5),k(9,"div",3)}},dependencies:[Wf],encapsulation:2,changeDetection:0})}return t})();var b8=(()=>{class t extends p_{_isNonInteractive=!1;static \u0275fac=(()=>{let e;return function(r){return(e||(e=fe(t)))(r||t)}})();static \u0275cmp=E({type:t,selectors:[["mat-nav-list"]],hostAttrs:["role","navigation",1,"mat-mdc-nav-list","mat-mdc-list-base","mdc-list"],exportAs:["matNavList"],features:[Ce([{provide:p_,useExisting:t}]),le],ngContentSelectors:f8,decls:1,vars:0,template:function(i,r){i&1&&(Me(),oe(0))},styles:[g8],encapsulation:2,changeDetection:0})}return t})();var ca=(()=>{class t{static \u0275fac=function(i){return new(i||t)};static \u0275mod=ee({type:t});static \u0275inj=J({imports:[Ym,we,yo,Q0,sa]})}return t})();var ife=["mat-menu-item",""],nfe=[[["mat-icon"],["","matMenuItemIcon",""]],"*"],rfe=["mat-icon, [matMenuItemIcon]","*"];function ofe(t,n){t&1&&(Gt(),h(0,"svg",2),k(1,"polygon",3),p())}var afe=["*"];function sfe(t,n){if(t&1){let e=Y();ft(0,"div",0),kv("click",function(){I(e);let r=C();return A(r.closed.emit("click"))})("animationstart",function(r){I(e);let o=C();return A(o._onAnimationStart(r.animationName))})("animationend",function(r){I(e);let o=C();return A(o._onAnimationDone(r.animationName))})("animationcancel",function(r){I(e);let o=C();return A(o._onAnimationDone(r.animationName))}),ft(1,"div",1),oe(2),vt()()}if(t&2){let e=C();it(e._classList),G("mat-menu-panel-animations-disabled",e._animationsDisabled)("mat-menu-panel-exit-animation",e._panelAnimationState==="void")("mat-menu-panel-animating",e._isAnimating()),si("id",e.panelId),X("aria-label",e.ariaLabel||null)("aria-labelledby",e.ariaLabelledby||null)("aria-describedby",e.ariaDescribedby||null)}}var AI=new T("MAT_MENU_PANEL"),El=(()=>{class t{_elementRef=u(q);_document=u(ge);_focusMonitor=u(Yt);_parentMenu=u(AI,{optional:!0});_changeDetectorRef=u(ye);role="menuitem";disabled=!1;disableRipple=!1;_hovered=new z;_focused=new z;_highlighted=!1;_triggersSubmenu=!1;constructor(){u(ut).load(Di),this._parentMenu?.addItem?.(this)}focus(e,i){this._focusMonitor&&e?this._focusMonitor.focusVia(this._getHostElement(),e,i):this._getHostElement().focus(i),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),i=e.querySelectorAll("mat-icon, .material-icons");for(let r=0;r{class t{_elementRef=u(q);_changeDetectorRef=u(ye);_injector=u(de);_keyManager;_xPosition;_yPosition;_firstItemFocusRef;_exitFallbackTimeout;_animationsDisabled=Ye();_allItems;_directDescendantItems=new pr;_classList={};_panelAnimationState="void";_animationDone=new z;_isAnimating=he(!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;hasBackdrop;set panelClass(e){let i=this._previousPanelClass,r=M({},this._classList);i&&i.length&&i.split(" ").forEach(o=>{r[o]=!1}),this._previousPanelClass=e,e&&e.length&&(e.split(" ").forEach(o=>{r[o]=!0}),this._elementRef.nativeElement.className=""),this._classList=r}_previousPanelClass;get classList(){return this.panelClass}set classList(e){this.panelClass=e}closed=new U;close=this.closed;panelId=u(Ze).getId("mat-menu-panel-");constructor(){let e=u(cfe);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 bs(this._directDescendantItems).withWrap().withTypeAhead().withHomeAndEnd(),this._keyManager.tabOut.subscribe(()=>this.closed.emit("tab")),this._directDescendantItems.changes.pipe(He(this._directDescendantItems),$e(e=>Je(...e.map(i=>i._focused)))).subscribe(e=>this._keyManager.updateActiveItem(e)),this._directDescendantItems.changes.subscribe(e=>{let i=this._keyManager;if(this._panelAnimationState==="enter"&&i.activeItem?._hasFocus()){let r=e.toArray(),o=Math.max(0,Math.min(r.length-1,i.activeItemIndex||0));r[o]&&!r[o].disabled?i.setActiveItem(o):i.setNextItemActive()}})}ngOnDestroy(){this._keyManager?.destroy(),this._directDescendantItems.destroy(),this.closed.complete(),this._firstItemFocusRef?.destroy(),clearTimeout(this._exitFallbackTimeout)}_hovered(){return this._directDescendantItems.changes.pipe(He(this._directDescendantItems),$e(i=>Je(...i.map(r=>r._hovered))))}addItem(e){}removeItem(e){}_handleKeydown(e){let i=e.keyCode,r=this._keyManager;switch(i){case 27:Ft(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:(i===38||i===40)&&r.setFocusOrigin("keyboard"),r.onKeydown(e);return}}focusFirstItem(e="program"){this._firstItemFocusRef?.destroy(),this._firstItemFocusRef=pt(()=>{let i=this._resolvePanel();if(!i||!i.contains(document.activeElement)){let r=this._keyManager;r.setFocusOrigin(e).setFirstItemActive(),!r.activeItem&&i&&i.focus()}},{injector:this._injector})}resetActiveItem(){this._keyManager.setActiveItem(-1)}setElevation(e){}setPositionClasses(e=this.xPosition,i=this.yPosition){this._classList=De(M({},this._classList),{"mat-menu-before":e==="before","mat-menu-after":e==="after","mat-menu-above":i==="above","mat-menu-below":i==="below"}),this._changeDetectorRef.markForCheck()}_onAnimationDone(e){let i=e===JC;(i||e===II)&&(i&&(clearTimeout(this._exitFallbackTimeout),this._exitFallbackTimeout=void 0),this._animationDone.next(i?"void":"enter"),this._isAnimating.set(!1))}_onAnimationStart(e){(e===II||e===JC)&&this._isAnimating.set(!0)}_setIsOpen(e){if(this._panelAnimationState=e?"enter":"void",e){if(this._keyManager.activeItemIndex===0){let i=this._resolvePanel();i&&(i.scrollTop=0)}}else this._animationsDisabled||(this._exitFallbackTimeout=setTimeout(()=>this._onAnimationDone(JC),200));this._animationsDisabled&&setTimeout(()=>{this._onAnimationDone(e?II:JC)}),this._changeDetectorRef.markForCheck()}_updateDirectDescendants(){this._allItems.changes.pipe(He(this._allItems)).subscribe(e=>{this._directDescendantItems.reset(e.filter(i=>i._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(i){return new(i||t)};static \u0275cmp=E({type:t,selectors:[["mat-menu"]],contentQueries:function(i,r,o){if(i&1&&(xe(o,lfe,5),xe(o,El,5),xe(o,El,4)),i&2){let a;B(a=j())&&(r.lazyContent=a.first),B(a=j())&&(r._allItems=a),B(a=j())&&(r.items=a)}},viewQuery:function(i,r){if(i&1&&ie(te,5),i&2){let o;B(o=j())&&(r.templateRef=o.first)}},hostVars:3,hostBindings:function(i,r){i&2&&X("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",V],hasBackdrop:[2,"hasBackdrop","hasBackdrop",e=>e==null?null:V(e)],panelClass:[0,"class","panelClass"],classList:"classList"},outputs:{closed:"closed",close:"close"},exportAs:["matMenu"],features:[Ce([{provide:AI,useExisting:t}])],ngContentSelectors:afe,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(i,r){i&1&&(Me(),xa(0,sfe,3,12,"ng-template"))},styles:[`mat-menu{display:none}.mat-mdc-menu-content{margin:0;padding:8px 0;outline:0}.mat-mdc-menu-content,.mat-mdc-menu-content .mat-mdc-menu-item .mat-mdc-menu-item-text{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;flex:1;white-space:normal;font-family:var(--mat-menu-item-label-text-font, var(--mat-sys-label-large-font));line-height:var(--mat-menu-item-label-text-line-height, var(--mat-sys-label-large-line-height));font-size:var(--mat-menu-item-label-text-size, var(--mat-sys-label-large-size));letter-spacing:var(--mat-menu-item-label-text-tracking, var(--mat-sys-label-large-tracking));font-weight:var(--mat-menu-item-label-text-weight, var(--mat-sys-label-large-weight))}@keyframes _mat-menu-enter{from{opacity:0;transform:scale(0.8)}to{opacity:1;transform:none}}@keyframes _mat-menu-exit{from{opacity:1}to{opacity:0}}.mat-mdc-menu-panel{min-width:112px;max-width:280px;overflow:auto;box-sizing:border-box;outline:0;animation:_mat-menu-enter 120ms cubic-bezier(0, 0, 0.2, 1);border-radius:var(--mat-menu-container-shape, var(--mat-sys-corner-extra-small));background-color:var(--mat-menu-container-color, var(--mat-sys-surface-container));box-shadow:var(--mat-menu-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));will-change:transform,opacity}.mat-mdc-menu-panel.mat-menu-panel-exit-animation{animation:_mat-menu-exit 100ms 25ms linear forwards}.mat-mdc-menu-panel.mat-menu-panel-animations-disabled{animation:none}.mat-mdc-menu-panel.mat-menu-panel-animating{pointer-events:none}.mat-mdc-menu-panel.mat-menu-panel-animating:has(.mat-mdc-menu-content:empty){display:none}@media(forced-colors: active){.mat-mdc-menu-panel{outline:solid 1px}}.mat-mdc-menu-panel .mat-divider{color:var(--mat-menu-divider-color, var(--mat-sys-surface-variant));margin-bottom:var(--mat-menu-divider-bottom-spacing, 8px);margin-top:var(--mat-menu-divider-top-spacing, 8px)}.mat-mdc-menu-item{display:flex;position:relative;align-items:center;justify-content:flex-start;overflow:hidden;padding:0;cursor:pointer;width:100%;text-align:left;box-sizing:border-box;color:inherit;font-size:inherit;background:none;text-decoration:none;margin:0;min-height:48px;padding-left:var(--mat-menu-item-leading-spacing, 12px);padding-right:var(--mat-menu-item-trailing-spacing, 12px);-webkit-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:rgba(0,0,0,0)}.mat-mdc-menu-item::-moz-focus-inner{border:0}[dir=rtl] .mat-mdc-menu-item{padding-left:var(--mat-menu-item-trailing-spacing, 12px);padding-right:var(--mat-menu-item-leading-spacing, 12px)}.mat-mdc-menu-item:has(.material-icons,mat-icon,[matButtonIcon]){padding-left:var(--mat-menu-item-with-icon-leading-spacing, 12px);padding-right:var(--mat-menu-item-with-icon-trailing-spacing, 12px)}[dir=rtl] .mat-mdc-menu-item:has(.material-icons,mat-icon,[matButtonIcon]){padding-left:var(--mat-menu-item-with-icon-trailing-spacing, 12px);padding-right:var(--mat-menu-item-with-icon-leading-spacing, 12px)}.mat-mdc-menu-item,.mat-mdc-menu-item:visited,.mat-mdc-menu-item:link{color:var(--mat-menu-item-label-text-color, var(--mat-sys-on-surface))}.mat-mdc-menu-item .mat-icon-no-color,.mat-mdc-menu-item .mat-mdc-menu-submenu-icon{color:var(--mat-menu-item-icon-color, var(--mat-sys-on-surface-variant))}.mat-mdc-menu-item[disabled]{cursor:default;opacity:.38}.mat-mdc-menu-item[disabled]::after{display:block;position:absolute;content:"";top:0;left:0;bottom:0;right:0}.mat-mdc-menu-item:focus{outline:0}.mat-mdc-menu-item .mat-icon{flex-shrink:0;margin-right:var(--mat-menu-item-spacing, 12px);height:var(--mat-menu-item-icon-size, 24px);width:var(--mat-menu-item-icon-size, 24px)}[dir=rtl] .mat-mdc-menu-item{text-align:right}[dir=rtl] .mat-mdc-menu-item .mat-icon{margin-right:0;margin-left:var(--mat-menu-item-spacing, 12px)}.mat-mdc-menu-item:not([disabled]):hover{background-color:var(--mat-menu-item-hover-state-layer-color, color-mix(in srgb, var(--mat-sys-on-surface) calc(var(--mat-sys-hover-state-layer-opacity) * 100%), transparent))}.mat-mdc-menu-item:not([disabled]).cdk-program-focused,.mat-mdc-menu-item:not([disabled]).cdk-keyboard-focused,.mat-mdc-menu-item:not([disabled]).mat-mdc-menu-item-highlighted{background-color:var(--mat-menu-item-focus-state-layer-color, color-mix(in srgb, var(--mat-sys-on-surface) calc(var(--mat-sys-focus-state-layer-opacity) * 100%), transparent))}@media(forced-colors: active){.mat-mdc-menu-item{margin-top:1px}}.mat-mdc-menu-submenu-icon{width:var(--mat-menu-item-icon-size, 24px);height:10px;fill:currentColor;padding-left:var(--mat-menu-item-spacing, 12px)}[dir=rtl] .mat-mdc-menu-submenu-icon{padding-right:var(--mat-menu-item-spacing, 12px);padding-left:0}[dir=rtl] .mat-mdc-menu-submenu-icon polygon{transform:scaleX(-1);transform-origin:center}@media(forced-colors: active){.mat-mdc-menu-submenu-icon{fill:CanvasText}}.mat-mdc-menu-item .mat-mdc-menu-ripple{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none} -`],encapsulation:2,changeDetection:0})}return t})(),v8=new T("mat-menu-scroll-strategy",{providedIn:"root",factory:()=>{let t=u(de);return()=>wn(t)}});function ufe(t){let n=u(de);return()=>wn(n)}var mfe={provide:v8,deps:[],useFactory:ufe};var ip=new WeakMap,hfe=(()=>{class t{_canHaveBackdrop;_element=u(q);_viewContainerRef=u(nt);_menuItemInstance=u(El,{optional:!0,self:!0});_dir=u(Vt,{optional:!0});_focusMonitor=u(Yt);_ngZone=u(ae);_injector=u(de);_scrollStrategy=u(v8);_changeDetectorRef=u(ye);_animationsDisabled=Ye();_portal;_overlayRef=null;_menuOpen=!1;_closingActionsSubscription=ke.EMPTY;_menuCloseSubscription=ke.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(i=>{this._destroyMenu(i),(i==="click"||i==="tab")&&this._parentMaterialMenu&&this._parentMaterialMenu.closed.emit(i)})),this._menuItemInstance?._setTriggersSubmenu(this._triggersSubmenu()))}_menuInternal;constructor(e){this._canHaveBackdrop=e;let i=u(AI,{optional:!0});this._parentMaterialMenu=i instanceof jr?i:void 0}ngOnDestroy(){this._menu&&this._ownsMenu(this._menu)&&ip.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){let i=this._menu;if(this._menuOpen||!i)return;this._pendingRemoval?.unsubscribe();let r=ip.get(i);ip.set(i,this),r&&r!==this&&r._closeMenu();let o=this._createOverlay(i),a=o.getConfig(),s=a.positionStrategy;this._setPosition(i,s),this._canHaveBackdrop?a.hasBackdrop=i.hasBackdrop==null?!this._triggersSubmenu():i.hasBackdrop:a.hasBackdrop=!1,o.hasAttached()||(o.attach(this._getPortal(i)),i.lazyContent?.attach(this.menuData)),this._closingActionsSubscription=this._menuClosingActions().subscribe(()=>this._closeMenu()),i.parentMenu=this._triggersSubmenu()?this._parentMaterialMenu:void 0,i.direction=this.dir,e&&i.focusFirstItem(this._openedBy||"program"),this._setIsMenuOpen(!0),i instanceof jr&&(i._setIsOpen(!0),i._directDescendantItems.changes.pipe(Te(i.close)).subscribe(()=>{s.withLockedPosition(!1).reapplyLastPosition(),s.withLockedPosition(!0)}))}focus(e,i){this._focusMonitor&&e?this._focusMonitor.focusVia(this._element,e,i):this._element.nativeElement.focus(i)}_destroyMenu(e){let i=this._overlayRef,r=this._menu;!i||!this.menuOpen||(this._closingActionsSubscription.unsubscribe(),this._pendingRemoval?.unsubscribe(),r instanceof jr&&this._ownsMenu(r)?(this._pendingRemoval=r._animationDone.pipe(lt(1)).subscribe(()=>{i.detach(),ip.has(r)||r.lazyContent?.detach()}),r._setIsOpen(!1)):(i.detach(),r?.lazyContent?.detach()),r&&this._ownsMenu(r)&&ip.delete(r),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 i=this._getOverlayConfig(e);this._subscribeToPositions(e,i.positionStrategy),this._overlayRef=Nr(this._injector,i),this._overlayRef.keydownEvents().subscribe(r=>{this._menu instanceof jr&&this._menu._handleKeydown(r)})}return this._overlayRef}_getOverlayConfig(e){return new Fr({positionStrategy:Fa(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,i){e.setPositionClasses&&i.positionChanges.subscribe(r=>{this._ngZone.run(()=>{let o=r.connectionPair.overlayX==="start"?"after":"before",a=r.connectionPair.overlayY==="top"?"below":"above";e.setPositionClasses(o,a)})})}_setPosition(e,i){let[r,o]=e.xPosition==="before"?["end","start"]:["start","end"],[a,s]=e.yPosition==="above"?["bottom","top"]:["top","bottom"],[l,c]=[a,s],[d,m]=[r,o],f=0;if(this._triggersSubmenu()){if(m=r=e.xPosition==="before"?"start":"end",o=d=r==="end"?"start":"end",this._parentMaterialMenu){if(this._parentInnerPadding==null){let b=this._parentMaterialMenu.items.first;this._parentInnerPadding=b?b._getHostElement().offsetTop:0}f=a==="bottom"?this._parentInnerPadding:-this._parentInnerPadding}}else e.overlapTrigger||(l=a==="top"?"bottom":"top",c=s==="top"?"bottom":"top");i.withPositions([{originX:r,originY:l,overlayX:d,overlayY:a,offsetY:f},{originX:o,originY:l,overlayX:m,overlayY:a,offsetY:f},{originX:r,originY:c,overlayX:d,overlayY:s,offsetY:-f},{originX:o,originY:c,overlayX:m,overlayY:s,offsetY:-f}])}_menuClosingActions(){let e=this._getOutsideClickStream(this._overlayRef),i=this._overlayRef.detachments(),r=this._parentMaterialMenu?this._parentMaterialMenu.closed:Q(),o=this._parentMaterialMenu?this._parentMaterialMenu._hovered().pipe(ce(a=>this._menuOpen&&a!==this._menuItemInstance)):Q();return Je(e,r,o,i)}_getPortal(e){return(!this._portal||this._portal.templateRef!==e.templateRef)&&(this._portal=new Cn(e.templateRef,this._viewContainerRef)),this._portal}_ownsMenu(e){return ip.get(e)===this}static \u0275fac=function(i){Ad()};static \u0275dir=F({type:t})}return t})(),Ns=(()=>{class t extends hfe{_cleanupTouchstart;_hoverSubscription=ke.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 U;onMenuOpen=this.menuOpened;menuClosed=new U;onMenuClose=this.menuClosed;constructor(){super(!0);let e=u(je);this._cleanupTouchstart=e.listen(this._element.nativeElement,"touchstart",i=>{Gd(i)||(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){Wd(e)||(this._openedBy=e.button===0?"mouse":void 0,this.triggersSubmenu()&&e.preventDefault())}_handleKeydown(e){let i=e.keyCode;(i===13||i===32)&&(this._openedBy="keyboard"),this.triggersSubmenu()&&(i===39&&this.dir==="ltr"||i===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(i){return new(i||t)};static \u0275dir=F({type:t,selectors:[["","mat-menu-trigger-for",""],["","matMenuTriggerFor",""]],hostAttrs:[1,"mat-mdc-menu-trigger"],hostVars:3,hostBindings:function(i,r){i&1&&S("click",function(a){return r._handleClick(a)})("mousedown",function(a){return r._handleMousedown(a)})("keydown",function(a){return r._handleKeydown(a)}),i&2&&X("aria-haspopup",r.menu?"menu":null)("aria-expanded",r.menuOpen)("aria-controls",r.menuOpen?r.menu==null?null:r.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:[le]})}return t})();var Ls=(()=>{class t{static \u0275fac=function(i){return new(i||t)};static \u0275mod=ee({type:t});static \u0275inj=J({providers:[mfe],imports:[yo,we,er,vr,we]})}return t})(),y8={transformMenu:{type:7,name:"transformMenu",definitions:[{type:0,name:"void",styles:{type:6,styles:{opacity:0,transform:"scale(0.8)"},offset:null}},{type:1,expr:"void => enter",animation:{type:4,styles:{type:6,styles:{opacity:1,transform:"scale(1)"},offset:null},timings:"120ms cubic-bezier(0, 0, 0.2, 1)"},options:null},{type:1,expr:"* => void",animation:{type:4,styles:{type:6,styles:{opacity:0},offset:null},timings:"100ms 25ms linear"},options:null}],options:{}},fadeInItems:{type:7,name:"fadeInItems",definitions:[{type:0,name:"showing",styles:{type:6,styles:{opacity:1},offset:null}},{type:1,expr:"void => *",animation:[{type:6,styles:{opacity:0},offset:null},{type:4,styles:null,timings:"400ms 100ms cubic-bezier(0.55, 0, 0.55, 0.2)"}],options:null}],options:{}}},ult=y8.fadeInItems,mlt=y8.transformMenu;function pfe(t,n){if(t&1&&(h(0,"mat-list-item")(1,"mat-icon",3),_(2,"info"),p(),h(3,"a",4),_(4),p()()),t&2){let e=n.$implicit;g(4),H(e)}}var x8=(()=>{let n=class n{constructor(){this.messages=["Server Error Reports 1","Server Error Reports 2","Server Error Reports 3"]}};n.\u0275fac=function(r){return new(r||n)},n.\u0275cmp=E({type:n,selectors:[["app-notification"]],decls:8,vars:1,consts:[["menu","matMenu"],["matIconButton","",3,"matMenuTriggerFor"],["matBadge","5","matBadgeColor","warn","aria-hidden","false"],["matListItemIcon","",1,"m-x-16"],["matListItemTitle","","href","#"]],template:function(r,o){if(r&1&&(h(0,"button",1)(1,"mat-icon",2),_(2,"notifications"),p()(),h(3,"mat-menu",null,0)(5,"mat-nav-list"),xt(6,pfe,5,1,"mat-list-item",null,Hi),p()()),r&2){let a=Se(4);y("matMenuTriggerFor",a),g(6),Ct(o.messages)}},dependencies:[p8,h8,ze,ti,ot,mt,ca,b8,la,f_,Dl,Ls,jr,Ns],styles:["[_nghost-%COMP%] .mat-badge-content{--mat-badge-background-color: #ef0000;--mat-badge-text-color: #fff}"]});let t=n;return t})();var ffe=(t,n)=>n.value;function gfe(t,n){t&1&&k(0,"mat-pseudo-checkbox",5)}function _fe(t,n){if(t&1){let e=Y();h(0,"button",3),S("click",function(){let r=I(e).$implicit,o=C();return A(o.changeLang(r.value))}),h(1,"span",4),_(2),me(3,"translate"),N(4,gfe,1,0,"mat-pseudo-checkbox",5),p()()}if(t&2){let e=n.$implicit,i=C();g(2),ve(" ",Oe(3,2,e.name)," "),g(2),L(e.value===i.options.language?4:-1)}}var C8=(()=>{let n=class n{constructor(){this.settings=u(aa),this.options=this.settings.options,this.langs=[{value:"en-US",name:"en_us"},{value:"zh-CN",name:"zh_cn"},{value:"zh-TW",name:"zh_tw"},{value:"auto",name:"system"}]}changeLang(i){this.settings.setLanguage(i)}};n.\u0275fac=function(r){return new(r||n)},n.\u0275cmp=E({type:n,selectors:[["app-translate"]],decls:7,vars:1,consts:[["menu","matMenu"],["matIconButton","",3,"matMenuTriggerFor"],["mat-menu-item",""],["mat-menu-item","",3,"click"],[1,"d-flex","justify-content-between","gap-8"],["state","checked","appearance","minimal"]],template:function(r,o){if(r&1&&(h(0,"button",1)(1,"mat-icon"),_(2,"translate"),p()(),h(3,"mat-menu",null,0),xt(5,_fe,5,4,"button",2,ffe),p()),r&2){let a=Se(4);y("matMenuTriggerFor",a),g(5),Ct(o.langs)}},dependencies:[ze,ti,ot,mt,Ls,jr,El,Ns,Qd,Cr],encapsulation:2});let t=n;return t})();function bfe(t,n){t&1&&(h(0,"button",8)(1,"mat-icon"),_(2,"account_circle"),p(),h(3,"span"),_(4),me(5,"translate"),p()(),h(6,"button",9)(7,"mat-icon"),_(8,"edit"),p(),h(9,"span"),_(10),me(11,"translate"),p()()),t&2&&(g(4),H(Oe(5,2,"profile")),g(6),H(Oe(11,4,"edit_profile")))}function vfe(t,n){if(t&1){let e=Y();h(0,"button",6),S("click",function(){I(e);let r=C();return A(r.logout())}),h(1,"mat-icon"),_(2,"exit_to_app"),p(),h(3,"span"),_(4),me(5,"translate"),p()()}t&2&&(g(4),H(Oe(5,1,"logout")))}function yfe(t,n){if(t&1){let e=Y();h(0,"button",6),S("click",function(){I(e);let r=C();return A(r.login())}),h(1,"mat-icon"),_(2,"login"),p(),h(3,"span"),_(4),me(5,"translate"),p()()}t&2&&(g(4),H(Oe(5,1,"login")))}var w8=(()=>{let n=class n{constructor(){this.oidcAuth=u(Tt),this.router=u(Re),this.settings=u(aa),this.userName="Guest",this.userEmail="",this.userRoles="Anonymous User"}ngOnInit(){this.updateUserInfo(),this.authSubscription=this.oidcAuth.isAuthenticated$.subscribe(()=>{this.updateUserInfo()})}ngOnDestroy(){this.authSubscription?.unsubscribe()}updateUserInfo(){if(!this.oidcAuth.isAuthenticated()){this.userName="Guest",this.userEmail="",this.userRoles="Anonymous User";return}let i=this.oidcAuth.getUserInfo();console.log("UserButton: User info:",i),console.log("UserButton: Available claims:",i?Object.keys(i):"null"),this.userName=i?.name||i?.preferred_username||i?.given_name||i?.["http://schemas.xmlsoap.org/ws/2005/05/identity/claims/name"]||i?.sub||"User",this.userEmail=i?.email||i?.["http://schemas.xmlsoap.org/ws/2005/05/identity/claims/emailaddress"]||"";let r=this.oidcAuth.getUserRoles();this.userRoles=r.length>0?r.join(", "):"No roles",console.log("UserButton: Set userName to:",this.userName,"email to:",this.userEmail,"roles:",this.userRoles)}isAuthenticated(){return this.oidcAuth.isAuthenticated()}login(){this.oidcAuth.login()}logout(){this.oidcAuth.logout(),this.router.navigateByUrl("/dashboard")}restore(){this.settings.reset(),window.location.reload()}};n.\u0275fac=function(r){return new(r||n)},n.\u0275cmp=E({type:n,selectors:[["app-user"]],decls:22,vars:9,consts:[["menu","matMenu"],["matIconButton","",1,"user-button",3,"matMenuTriggerFor"],[1,"user-info"],[1,"user-name"],[1,"user-email"],[1,"user-roles"],["mat-menu-item","",3,"click"],["mat-menu-item",""],["routerLink","/profile/overview","mat-menu-item",""],["routerLink","/profile/settings","mat-menu-item",""]],template:function(r,o){if(r&1){let a=Y();h(0,"button",1)(1,"mat-icon"),_(2,"account_circle"),p()(),h(3,"mat-menu",null,0)(5,"div",2)(6,"div",3),_(7),p(),h(8,"div",4),_(9),p(),h(10,"div",5),_(11),p()(),k(12,"mat-divider"),N(13,bfe,12,6),h(14,"button",6),S("click",function(){return I(a),A(o.restore())}),h(15,"mat-icon"),_(16,"restore"),p(),h(17,"span"),_(18),me(19,"translate"),p()(),N(20,vfe,6,3,"button",7)(21,yfe,6,3,"button",7),p()}if(r&2){let a=Se(4);y("matMenuTriggerFor",a),g(7),H(o.userName),g(2),H(o.userEmail),g(2),H(o.userRoles),g(2),L(o.isAuthenticated()?13:-1),g(5),H(Oe(19,7,"restore_defaults")),g(2),L(o.isAuthenticated()?20:21)}},dependencies:[gt,Nn,ze,ti,ot,mt,Ls,jr,El,Ns,sa,Ha,wr,Cr],styles:["[_nghost-%COMP%]{display:inline-block}.user-button[_ngcontent-%COMP%]{display:inline-flex!important}.user-info[_ngcontent-%COMP%]{padding:16px;max-width:250px}.user-info[_ngcontent-%COMP%] .user-name[_ngcontent-%COMP%]{font-weight:500;font-size:14px;margin-bottom:4px}.user-info[_ngcontent-%COMP%] .user-email[_ngcontent-%COMP%]{font-size:12px;color:#0009;margin-bottom:4px}.user-info[_ngcontent-%COMP%] .user-roles[_ngcontent-%COMP%]{font-size:11px;color:#00000080;font-style:italic}"]});let t=n;return t})();function xfe(t,n){if(t&1){let e=Y();h(0,"button",4),S("click",function(){I(e);let r=C();return A(r.toggleSidenav.emit())}),h(1,"mat-icon"),_(2,"menu"),p()()}}function Cfe(t,n){t&1&&k(0,"app-branding")}var D8=(()=>{let n=class n{constructor(){this.showToggle=ne(!0),this.showBranding=ne(!1),this.toggleSidenav=bi(),this.toggleSidenavNotice=bi()}toggleFullscreen(){SI.isEnabled&&SI.toggle()}};n.\u0275fac=function(r){return new(r||n)},n.\u0275cmp=E({type:n,selectors:[["app-header"]],hostAttrs:[1,"matero-header"],inputs:{showToggle:[1,"showToggle"],showBranding:[1,"showBranding"]},outputs:{toggleSidenav:"toggleSidenav",toggleSidenavNotice:"toggleSidenavNotice"},decls:17,vars:2,consts:[["matIconButton",""],[1,"flex-fill"],["matIconButton","",1,"hide-small",3,"click"],[1,"hide-small"],["matIconButton","",3,"click"]],template:function(r,o){r&1&&(h(0,"mat-toolbar"),N(1,xfe,3,0,"button",0),N(2,Cfe,1,0,"app-branding"),k(3,"span",1)(4,"app-github-button"),h(5,"button",0)(6,"mat-icon"),_(7,"search"),p()(),k(8,"app-translate"),h(9,"button",2),S("click",function(){return o.toggleFullscreen()}),h(10,"mat-icon"),_(11,"fullscreen"),p()(),k(12,"app-notification",3)(13,"app-user"),h(14,"button",2),S("click",function(){return o.toggleSidenavNotice.emit()}),h(15,"mat-icon"),_(16,"list"),p()()()),r&2&&(g(),L(o.showToggle()?1:-1),g(),L(o.showBranding()?2:-1))},dependencies:[ZC,KC,ze,ti,ot,mt,XC,u8,x8,C8,w8],styles:[`.matero-header{--mat-toolbar-container-background-color: transparent;position:relative;z-index:200;display:block;background-color:var(--header-background-color);-webkit-backdrop-filter:blur(8px);backdrop-filter:blur(8px)} -`],encapsulation:2});let t=n;return t})();var np=["*"];function wfe(t,n){t&1&&oe(0)}var S8=["tabListContainer"],T8=["tabList"],I8=["tabListInner"],A8=["nextPaginator"],O8=["previousPaginator"],Dfe=["content"];function Efe(t,n){}var Mfe=["tabBodyWrapper"],kfe=["tabHeader"];function Sfe(t,n){}function Tfe(t,n){if(t&1&&R(0,Sfe,0,0,"ng-template",12),t&2){let e=C().$implicit;y("cdkPortalOutlet",e.templateLabel)}}function Ife(t,n){if(t&1&&_(0),t&2){let e=C().$implicit;H(e.textLabel)}}function Afe(t,n){if(t&1){let e=Y();h(0,"div",7,2),S("click",function(){let r=I(e),o=r.$implicit,a=r.$index,s=C(),l=Se(1);return A(s._handleClick(o,l,a))})("cdkFocusChange",function(r){let o=I(e).$index,a=C();return A(a._tabFocusChanged(r,o))}),k(2,"span",8)(3,"div",9),h(4,"span",10)(5,"span",11),N(6,Tfe,1,1,null,12)(7,Ife,1,1),p()()()}if(t&2){let e=n.$implicit,i=n.$index,r=Se(1),o=C();it(e.labelClass),G("mdc-tab--active",o.selectedIndex===i),y("id",o._getTabLabelId(e,i))("disabled",e.disabled)("fitInkBarToContent",o.fitInkBarToContent),X("tabIndex",o._getTabIndex(i))("aria-posinset",i+1)("aria-setsize",o._tabs.length)("aria-controls",o._getTabContentId(i))("aria-selected",o.selectedIndex===i)("aria-label",e.ariaLabel||null)("aria-labelledby",!e.ariaLabel&&e.ariaLabelledby?e.ariaLabelledby:null),g(3),y("matRippleTrigger",r)("matRippleDisabled",e.disabled||o.disableRipple),g(3),L(e.templateLabel?6:7)}}function Ofe(t,n){t&1&&oe(0)}function Rfe(t,n){if(t&1){let e=Y();h(0,"mat-tab-body",13),S("_onCentered",function(){I(e);let r=C();return A(r._removeTabBodyWrapperHeight())})("_onCentering",function(r){I(e);let o=C();return A(o._setTabBodyWrapperHeight(r))})("_beforeCentering",function(r){I(e);let o=C();return A(o._bodyCentered(r))}),p()}if(t&2){let e=n.$implicit,i=n.$index,r=C();it(e.bodyClass),y("id",r._getTabContentId(i))("content",e.content)("position",e.position)("animationDuration",r.animationDuration)("preserveContent",r.preserveContent),X("tabindex",r.contentTabIndex!=null&&r.selectedIndex===i?r.contentTabIndex:null)("aria-labelledby",r._getTabLabelId(e,i))("aria-hidden",r.selectedIndex!==i)}}var Pfe=["mat-tab-nav-bar",""],Ffe=["mat-tab-link",""],Nfe=new T("MatTabContent"),Lfe=(()=>{class t{template=u(te);constructor(){}static \u0275fac=function(i){return new(i||t)};static \u0275dir=F({type:t,selectors:[["","matTabContent",""]],features:[Ce([{provide:Nfe,useExisting:t}])]})}return t})(),Vfe=new T("MatTabLabel"),R8=new T("MAT_TAB"),Bfe=(()=>{class t extends tB{_closestTab=u(R8,{optional:!0});static \u0275fac=(()=>{let e;return function(r){return(e||(e=fe(t)))(r||t)}})();static \u0275dir=F({type:t,selectors:[["","mat-tab-label",""],["","matTabLabel",""]],features:[Ce([{provide:Vfe,useExisting:t}]),le]})}return t})(),P8=new T("MAT_TAB_GROUP"),__=(()=>{class t{_viewContainerRef=u(nt);_closestTabGroup=u(P8,{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 z;position=null;origin=null;isActive=!1;constructor(){u(ut).load(Di)}ngOnChanges(e){(e.hasOwnProperty("textLabel")||e.hasOwnProperty("disabled"))&&this._stateChanges.next()}ngOnDestroy(){this._stateChanges.complete()}ngOnInit(){this._contentPortal=new Cn(this._explicitContent||this._implicitContent,this._viewContainerRef)}_setTemplateLabelInput(e){e&&e._closestTab===this&&(this._templateLabel=e)}static \u0275fac=function(i){return new(i||t)};static \u0275cmp=E({type:t,selectors:[["mat-tab"]],contentQueries:function(i,r,o){if(i&1&&(xe(o,Bfe,5),xe(o,Lfe,7,te)),i&2){let a;B(a=j())&&(r.templateLabel=a.first),B(a=j())&&(r._explicitContent=a.first)}},viewQuery:function(i,r){if(i&1&&ie(te,7),i&2){let o;B(o=j())&&(r._implicitContent=o.first)}},hostAttrs:["hidden",""],hostVars:1,hostBindings:function(i,r){i&2&&X("id",null)},inputs:{disabled:[2,"disabled","disabled",V],textLabel:[0,"label","textLabel"],ariaLabel:[0,"aria-label","ariaLabel"],ariaLabelledby:[0,"aria-labelledby","ariaLabelledby"],labelClass:"labelClass",bodyClass:"bodyClass",id:"id"},exportAs:["matTab"],features:[Ce([{provide:R8,useExisting:t}]),Ae],ngContentSelectors:np,decls:1,vars:0,template:function(i,r){i&1&&(Me(),xa(0,wfe,1,0,"ng-template"))},encapsulation:2})}return t})(),OI="mdc-tab-indicator--active",E8="mdc-tab-indicator--no-transition",ew=class{_items;_currentItem;constructor(n){this._items=n}hide(){this._items.forEach(n=>n.deactivateInkBar()),this._currentItem=void 0}alignToElement(n){let e=this._items.find(r=>r.elementRef.nativeElement===n),i=this._currentItem;if(e!==i&&(i?.deactivateInkBar(),e)){let r=i?.elementRef.nativeElement.getBoundingClientRect?.();e.activateInkBar(r),this._currentItem=e}}},F8=(()=>{class t{_elementRef=u(q);_inkBarElement;_inkBarContentElement;_fitToContent=!1;get fitInkBarToContent(){return this._fitToContent}set fitInkBarToContent(e){this._fitToContent!==e&&(this._fitToContent=e,this._inkBarElement&&this._appendInkBarElement())}activateInkBar(e){let i=this._elementRef.nativeElement;if(!e||!i.getBoundingClientRect||!this._inkBarContentElement){i.classList.add(OI);return}let r=i.getBoundingClientRect(),o=e.width/r.width,a=e.left-r.left;i.classList.add(E8),this._inkBarContentElement.style.setProperty("transform",`translateX(${a}px) scaleX(${o})`),i.getBoundingClientRect(),i.classList.remove(E8),i.classList.add(OI),this._inkBarContentElement.style.setProperty("transform","")}deactivateInkBar(){this._elementRef.nativeElement.classList.remove(OI)}ngOnInit(){this._createInkBarElement()}ngOnDestroy(){this._inkBarElement?.remove(),this._inkBarElement=this._inkBarContentElement=null}_createInkBarElement(){let e=this._elementRef.nativeElement.ownerDocument||document,i=this._inkBarElement=e.createElement("span"),r=this._inkBarContentElement=e.createElement("span");i.className="mdc-tab-indicator",r.className="mdc-tab-indicator__content mdc-tab-indicator__content--underline",i.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(i){return new(i||t)};static \u0275dir=F({type:t,inputs:{fitInkBarToContent:[2,"fitInkBarToContent","fitInkBarToContent",V]}})}return t})();var N8=(()=>{class t extends F8{elementRef=u(q);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(r){return(e||(e=fe(t)))(r||t)}})();static \u0275dir=F({type:t,selectors:[["","matTabLabelWrapper",""]],hostVars:3,hostBindings:function(i,r){i&2&&(X("aria-disabled",!!r.disabled),G("mat-mdc-tab-disabled",r.disabled))},inputs:{disabled:[2,"disabled","disabled",V]},features:[le]})}return t})(),M8={passive:!0},jfe=650,Hfe=100,L8=(()=>{class t{_elementRef=u(q);_changeDetectorRef=u(ye);_viewportRuler=u(Xn);_dir=u(Vt,{optional:!0});_ngZone=u(ae);_platform=u(qe);_sharedResizeObserver=u(qy);_injector=u(de);_renderer=u(je);_animationsDisabled=Ye();_eventCleanups;_scrollDistance=0;_selectedIndexChanged=!1;_destroyed=new z;_showPaginationControls=!1;_disableScrollAfter=!0;_disableScrollBefore=!0;_tabLabelCount;_scrollDistanceChanged;_keyManager;_currentTextContent;_stopScrolling=new z;disablePagination=!1;get selectedIndex(){return this._selectedIndex}set selectedIndex(e){let i=isNaN(e)?0:e;this._selectedIndex!=i&&(this._selectedIndexChanged=!0,this._selectedIndex=i,this._keyManager&&this._keyManager.updateActiveItem(i))}_selectedIndex=0;selectFocusedIndex=new U;indexFocused=new U;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"),M8),this._renderer.listen(this._nextPaginator.nativeElement,"touchstart",()=>this._handlePaginatorPress("after"),M8))}ngAfterContentInit(){let e=this._dir?this._dir.change:Q("ltr"),i=this._sharedResizeObserver.observe(this._elementRef.nativeElement).pipe(Rt(32),Te(this._destroyed)),r=this._viewportRuler.change(150).pipe(Te(this._destroyed)),o=()=>{this.updatePagination(),this._alignInkBarToSelectedTab()};this._keyManager=new bs(this._items).withHorizontalOrientation(this._getLayoutDirection()).withHomeAndEnd().withWrap().skipPredicate(()=>!1),this._keyManager.updateActiveItem(Math.max(this._selectedIndex,0)),pt(o,{injector:this._injector}),Je(e,r,i,this._items.changes,this._itemsResized()).pipe(Te(this._destroyed)).subscribe(()=>{this._ngZone.run(()=>{Promise.resolve().then(()=>{this._scrollDistance=Math.max(0,Math.min(this._getMaxScrollDistance(),this._scrollDistance)),o()})}),this._keyManager?.withHorizontalOrientation(this._getLayoutDirection())}),this._keyManager.change.subscribe(a=>{this.indexFocused.emit(a),this._setTabFocus(a)})}_itemsResized(){return typeof ResizeObserver!="function"?Fi:this._items.changes.pipe(He(this._items),$e(e=>new Fe(i=>this._ngZone.runOutsideAngular(()=>{let r=new ResizeObserver(o=>i.next(o));return e.forEach(o=>r.observe(o.elementRef.nativeElement)),()=>{r.disconnect()}}))),Ya(1),ce(e=>e.some(i=>i.contentRect.width>0&&i.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(!Ft(e))switch(e.keyCode){case 13:case 32:if(this.focusIndex!==this.selectedIndex){let i=this._items.get(this.focusIndex);i&&!i.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 i=this._tabListContainer.nativeElement;this._getLayoutDirection()=="ltr"?i.scrollLeft=0:i.scrollLeft=i.scrollWidth-i.offsetWidth}}_getLayoutDirection(){return this._dir&&this._dir.value==="rtl"?"rtl":"ltr"}_updateTabScrollPosition(){if(this.disablePagination)return;let e=this.scrollDistance,i=this._getLayoutDirection()==="ltr"?-e:e;this._tabList.nativeElement.style.transform=`translateX(${Math.round(i)}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 i=this._tabListContainer.nativeElement.offsetWidth,r=(e=="before"?-1:1)*i/3;return this._scrollTo(this._scrollDistance+r)}_handlePaginatorClick(e){this._stopInterval(),this._scrollHeader(e)}_scrollToLabel(e){if(this.disablePagination)return;let i=this._items?this._items.toArray()[e]:null;if(!i)return;let r=this._tabListContainer.nativeElement.offsetWidth,{offsetLeft:o,offsetWidth:a}=i.elementRef.nativeElement,s,l;this._getLayoutDirection()=="ltr"?(s=o,l=s+a):(l=this._tabListInner.nativeElement.offsetWidth-o,s=l-a);let c=this.scrollDistance,d=this.scrollDistance+r;sd&&(this.scrollDistance+=Math.min(l-d,s-c))}_checkPaginationEnabled(){if(this.disablePagination)this._showPaginationControls=!1;else{let e=this._tabListInner.nativeElement.scrollWidth,i=this._elementRef.nativeElement.offsetWidth,r=e-i>=5;r||(this.scrollDistance=0),r!==this._showPaginationControls&&(this._showPaginationControls=r,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,i=this._tabListContainer.nativeElement.offsetWidth;return e-i||0}_alignInkBarToSelectedTab(){let e=this._items&&this._items.length?this._items.toArray()[this.selectedIndex]:null,i=e?e.elementRef.nativeElement:null;i?this._inkBar.alignToElement(i):this._inkBar.hide()}_stopInterval(){this._stopScrolling.next()}_handlePaginatorPress(e,i){i&&i.button!=null&&i.button!==0||(this._stopInterval(),qa(jfe,Hfe).pipe(Te(Je(this._stopScrolling,this._destroyed))).subscribe(()=>{let{maxScrollDistance:r,distance:o}=this._scrollHeader(e);(o===0||o>=r)&&this._stopInterval()}))}_scrollTo(e){if(this.disablePagination)return{maxScrollDistance:0,distance:0};let i=this._getMaxScrollDistance();return this._scrollDistance=Math.max(0,Math.min(i,e)),this._scrollDistanceChanged=!0,this._checkScrollingControls(),{maxScrollDistance:i,distance:this._scrollDistance}}static \u0275fac=function(i){return new(i||t)};static \u0275dir=F({type:t,inputs:{disablePagination:[2,"disablePagination","disablePagination",V],selectedIndex:[2,"selectedIndex","selectedIndex",ct]},outputs:{selectFocusedIndex:"selectFocusedIndex",indexFocused:"indexFocused"}})}return t})(),zfe=(()=>{class t extends L8{_items;_tabListContainer;_tabList;_tabListInner;_nextPaginator;_previousPaginator;_inkBar;ariaLabel;ariaLabelledby;disableRipple=!1;ngAfterContentInit(){this._inkBar=new ew(this._items),super.ngAfterContentInit()}_itemSelected(e){e.preventDefault()}static \u0275fac=(()=>{let e;return function(r){return(e||(e=fe(t)))(r||t)}})();static \u0275cmp=E({type:t,selectors:[["mat-tab-header"]],contentQueries:function(i,r,o){if(i&1&&xe(o,N8,4),i&2){let a;B(a=j())&&(r._items=a)}},viewQuery:function(i,r){if(i&1&&(ie(S8,7),ie(T8,7),ie(I8,7),ie(A8,5),ie(O8,5)),i&2){let o;B(o=j())&&(r._tabListContainer=o.first),B(o=j())&&(r._tabList=o.first),B(o=j())&&(r._tabListInner=o.first),B(o=j())&&(r._nextPaginator=o.first),B(o=j())&&(r._previousPaginator=o.first)}},hostAttrs:[1,"mat-mdc-tab-header"],hostVars:4,hostBindings:function(i,r){i&2&&G("mat-mdc-tab-header-pagination-controls-enabled",r._showPaginationControls)("mat-mdc-tab-header-rtl",r._getLayoutDirection()=="rtl")},inputs:{ariaLabel:[0,"aria-label","ariaLabel"],ariaLabelledby:[0,"aria-labelledby","ariaLabelledby"],disableRipple:[2,"disableRipple","disableRipple",V]},features:[le],ngContentSelectors:np,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(i,r){if(i&1){let o=Y();Me(),h(0,"div",5,0),S("click",function(){return I(o),A(r._handlePaginatorClick("before"))})("mousedown",function(s){return I(o),A(r._handlePaginatorPress("before",s))})("touchend",function(){return I(o),A(r._stopInterval())}),k(2,"div",6),p(),h(3,"div",7,1),S("keydown",function(s){return I(o),A(r._handleKeydown(s))}),h(5,"div",8,2),S("cdkObserveContent",function(){return I(o),A(r._onContentChanges())}),h(7,"div",9,3),oe(9),p()()(),h(10,"div",10,4),S("mousedown",function(s){return I(o),A(r._handlePaginatorPress("after",s))})("click",function(){return I(o),A(r._handlePaginatorClick("after"))})("touchend",function(){return I(o),A(r._stopInterval())}),k(12,"div",6),p()}i&2&&(G("mat-mdc-tab-header-pagination-disabled",r._disableScrollBefore),y("matRippleDisabled",r._disableScrollBefore||r.disableRipple),g(3),G("_mat-animation-noopable",r._animationsDisabled),g(2),X("aria-label",r.ariaLabel||null)("aria-labelledby",r.ariaLabelledby||null),g(5),G("mat-mdc-tab-header-pagination-disabled",r._disableScrollAfter),y("matRippleDisabled",r._disableScrollAfter||r.disableRipple))},dependencies:[Vn,Wf],styles:[`.mat-mdc-tab-header{display:flex;overflow:hidden;position:relative;flex-shrink:0}.mdc-tab-indicator .mdc-tab-indicator__content{transition-duration:var(--mat-tab-animation-duration, 250ms)}.mat-mdc-tab-header-pagination{-webkit-user-select:none;user-select:none;position:relative;display:none;justify-content:center;align-items:center;min-width:32px;cursor:pointer;z-index:2;-webkit-tap-highlight-color:rgba(0,0,0,0);touch-action:none;box-sizing:content-box;outline:0}.mat-mdc-tab-header-pagination::-moz-focus-inner{border:0}.mat-mdc-tab-header-pagination .mat-ripple-element{opacity:.12;background-color:var(--mat-tab-inactive-ripple-color, var(--mat-sys-on-surface))}.mat-mdc-tab-header-pagination-controls-enabled .mat-mdc-tab-header-pagination{display:flex}.mat-mdc-tab-header-pagination-before,.mat-mdc-tab-header-rtl .mat-mdc-tab-header-pagination-after{padding-left:4px}.mat-mdc-tab-header-pagination-before .mat-mdc-tab-header-pagination-chevron,.mat-mdc-tab-header-rtl .mat-mdc-tab-header-pagination-after .mat-mdc-tab-header-pagination-chevron{transform:rotate(-135deg)}.mat-mdc-tab-header-rtl .mat-mdc-tab-header-pagination-before,.mat-mdc-tab-header-pagination-after{padding-right:4px}.mat-mdc-tab-header-rtl .mat-mdc-tab-header-pagination-before .mat-mdc-tab-header-pagination-chevron,.mat-mdc-tab-header-pagination-after .mat-mdc-tab-header-pagination-chevron{transform:rotate(45deg)}.mat-mdc-tab-header-pagination-chevron{border-style:solid;border-width:2px 2px 0 0;height:8px;width:8px;border-color:var(--mat-tab-pagination-icon-color, var(--mat-sys-on-surface))}.mat-mdc-tab-header-pagination-disabled{box-shadow:none;cursor:default;pointer-events:none}.mat-mdc-tab-header-pagination-disabled .mat-mdc-tab-header-pagination-chevron{opacity:.4}.mat-mdc-tab-list{flex-grow:1;position:relative;transition:transform 500ms cubic-bezier(0.35, 0, 0.25, 1)}._mat-animation-noopable .mat-mdc-tab-list{transition:none}.mat-mdc-tab-label-container{display:flex;flex-grow:1;overflow:hidden;z-index:1;border-bottom-style:solid;border-bottom-width:var(--mat-tab-divider-height, 1px);border-bottom-color:var(--mat-tab-divider-color, var(--mat-sys-surface-variant))}.mat-mdc-tab-group-inverted-header .mat-mdc-tab-label-container{border-bottom:none;border-top-style:solid;border-top-width:var(--mat-tab-divider-height, 1px);border-top-color:var(--mat-tab-divider-color, var(--mat-sys-surface-variant))}.mat-mdc-tab-labels{display:flex;flex:1 0 auto}[mat-align-tabs=center]>.mat-mdc-tab-header .mat-mdc-tab-labels{justify-content:center}[mat-align-tabs=end]>.mat-mdc-tab-header .mat-mdc-tab-labels{justify-content:flex-end}.cdk-drop-list .mat-mdc-tab-labels,.mat-mdc-tab-labels.cdk-drop-list{min-height:var(--mat-tab-container-height, 48px)}.mat-mdc-tab::before{margin:5px}@media(forced-colors: active){.mat-mdc-tab[aria-disabled=true]{color:GrayText}} -`],encapsulation:2})}return t})(),V8=new T("MAT_TABS_CONFIG"),k8=(()=>{class t extends yr{_host=u(RI);_ngZone=u(ae);_centeringSub=ke.EMPTY;_leavingSub=ke.EMPTY;constructor(){super()}ngOnInit(){super.ngOnInit(),this._centeringSub=this._host._beforeCentering.pipe(He(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(i){return new(i||t)};static \u0275dir=F({type:t,selectors:[["","matTabBodyHost",""]],features:[le]})}return t})(),RI=(()=>{class t{_elementRef=u(q);_dir=u(Vt,{optional:!0});_ngZone=u(ae);_injector=u(de);_renderer=u(je);_diAnimationsDisabled=Ye();_eventCleanups;_initialized;_fallbackTimer;_positionIndex;_dirChangeSubscription=ke.EMPTY;_position;_previousPosition;_onCentering=new U;_beforeCentering=new U;_afterLeavingCenter=new U;_onCentered=new U(!0);_portalHost;_contentElement;_content;animationDuration="500ms";preserveContent=!1;set position(e){this._positionIndex=e,this._computePositionAnimationState()}constructor(){if(this._dir){let e=u(ye);this._dirChangeSubscription=this._dir.change.subscribe(i=>{this._computePositionAnimationState(i),e.markForCheck()})}}ngOnInit(){this._bindTransitionEvents(),this._position==="center"&&(this._setActiveClass(!0),pt(()=>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,i=r=>{r.target===this._contentElement?.nativeElement&&(this._elementRef.nativeElement.classList.remove("mat-tab-body-animating"),r.type==="transitionend"&&this._transitionDone())};this._eventCleanups=[this._renderer.listen(e,"transitionstart",r=>{r.target===this._contentElement?.nativeElement&&(this._elementRef.nativeElement.classList.add("mat-tab-body-animating"),this._transitionStarted())}),this._renderer.listen(e,"transitionend",i),this._renderer.listen(e,"transitioncancel",i)]})}_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(),pt(()=>this._transitionDone(),{injector:this._injector})}_animationsDisabled(){return this._diAnimationsDisabled||this.animationDuration==="0ms"||this.animationDuration==="0s"}static \u0275fac=function(i){return new(i||t)};static \u0275cmp=E({type:t,selectors:[["mat-tab-body"]],viewQuery:function(i,r){if(i&1&&(ie(k8,5),ie(Dfe,5)),i&2){let o;B(o=j())&&(r._portalHost=o.first),B(o=j())&&(r._contentElement=o.first)}},hostAttrs:[1,"mat-mdc-tab-body"],hostVars:1,hostBindings:function(i,r){i&2&&X("inert",r._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(i,r){i&1&&(h(0,"div",1,0),R(2,Efe,0,0,"ng-template",2),p()),i&2&&G("mat-tab-body-content-left",r._position==="left")("mat-tab-body-content-right",r._position==="right")("mat-tab-body-content-can-animate",r._position==="center"||r._previousPosition==="center")},dependencies:[k8,Pa],styles:[`.mat-mdc-tab-body{top:0;left:0;right:0;bottom:0;position:absolute;display:block;overflow:hidden;outline:0;flex-basis:100%}.mat-mdc-tab-body.mat-mdc-tab-body-active{position:relative;overflow-x:hidden;overflow-y:auto;z-index:1;flex-grow:1}.mat-mdc-tab-group.mat-mdc-tab-group-dynamic-height .mat-mdc-tab-body.mat-mdc-tab-body-active{overflow-y:hidden}.mat-mdc-tab-body-content{height:100%;overflow:auto;transform:none;visibility:hidden}.mat-tab-body-animating>.mat-mdc-tab-body-content,.mat-mdc-tab-body-active>.mat-mdc-tab-body-content{visibility:visible}.mat-tab-body-animating>.mat-mdc-tab-body-content{min-height:1px}.mat-mdc-tab-group-dynamic-height .mat-mdc-tab-body-content{overflow:hidden}.mat-tab-body-content-can-animate{transition:transform var(--mat-tab-animation-duration) 1ms cubic-bezier(0.35, 0, 0.25, 1)}.mat-mdc-tab-body-wrapper._mat-animation-noopable .mat-tab-body-content-can-animate{transition:none}.mat-tab-body-content-left{transform:translate3d(-100%, 0, 0)}.mat-tab-body-content-right{transform:translate3d(100%, 0, 0)} -`],encapsulation:2})}return t})(),tw=(()=>{class t{_elementRef=u(q);_changeDetectorRef=u(ye);_ngZone=u(ae);_tabsSubscription=ke.EMPTY;_tabLabelSubscription=ke.EMPTY;_tabBodySubscription=ke.EMPTY;_diAnimationsDisabled=Ye();_allTabs;_tabBodies;_tabBodyWrapper;_tabHeader;_tabs=new pr;_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 i=e+"";this._animationDuration=/^\d+$/.test(i)?e+"ms":i}_animationDuration;get contentTabIndex(){return this._contentTabIndex}set contentTabIndex(e){this._contentTabIndex=isNaN(e)?null:e}_contentTabIndex;disablePagination=!1;disableRipple=!1;preserveContent=!1;get backgroundColor(){return this._backgroundColor}set backgroundColor(e){let i=this._elementRef.nativeElement.classList;i.remove("mat-tabs-with-background",`mat-background-${this.backgroundColor}`),e&&i.add("mat-tabs-with-background",`mat-background-${e}`),this._backgroundColor=e}_backgroundColor;ariaLabel;ariaLabelledby;selectedIndexChange=new U;focusChange=new U;animationDone=new U;selectedTabChange=new U(!0);_groupId;_isServer=!u(qe).isBrowser;constructor(){let e=u(V8,{optional:!0});this._groupId=u(Ze).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 i=this._selectedIndex==null;if(!i){this.selectedTabChange.emit(this._createChangeEvent(e));let r=this._tabBodyWrapper.nativeElement;r.style.minHeight=r.clientHeight+"px"}Promise.resolve().then(()=>{this._tabs.forEach((r,o)=>r.isActive=o===e),i||(this.selectedIndexChange.emit(e),this._tabBodyWrapper.nativeElement.style.minHeight="")})}this._tabs.forEach((i,r)=>{i.position=r-e,this._selectedIndex!=null&&i.position==0&&!i.origin&&(i.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 i=this._tabs.toArray(),r;for(let o=0;o{i[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(He(this._allTabs)).subscribe(e=>{this._tabs.reset(e.filter(i=>i._closestTabGroup===this||!i._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 i=this._tabHeader;i&&(i.focusIndex=e)}_focusChanged(e){this._lastFocusedTabIndex=e,this.focusChange.emit(this._createChangeEvent(e))}_createChangeEvent(e){let i=new PI;return i.index=e,this._tabs&&this._tabs.length&&(i.tab=this._tabs.toArray()[e]),i}_subscribeToTabLabels(){this._tabLabelSubscription&&this._tabLabelSubscription.unsubscribe(),this._tabLabelSubscription=Je(...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,i){return e.id||`${this._groupId}-label-${i}`}_getTabContentId(e){return`${this._groupId}-content-${e}`}_setTabBodyWrapperHeight(e){if(!this.dynamicHeight||!this._tabBodyWrapperHeight){this._tabBodyWrapperHeight=e;return}let i=this._tabBodyWrapper.nativeElement;i.style.height=this._tabBodyWrapperHeight+"px",this._tabBodyWrapper.nativeElement.offsetHeight&&(i.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,i,r){i.focusIndex=r,e.disabled||(this.selectedIndex=r)}_getTabIndex(e){let i=this._lastFocusedTabIndex??this.selectedIndex;return e===i?0:-1}_tabFocusChanged(e,i){e&&e!=="mouse"&&e!=="touch"&&(this._tabHeader.focusIndex=i)}_bodyCentered(e){e&&this._tabBodies?.forEach((i,r)=>i._setActiveClass(r===this._selectedIndex))}_animationsDisabled(){return this._diAnimationsDisabled||this.animationDuration==="0"||this.animationDuration==="0ms"}static \u0275fac=function(i){return new(i||t)};static \u0275cmp=E({type:t,selectors:[["mat-tab-group"]],contentQueries:function(i,r,o){if(i&1&&xe(o,__,5),i&2){let a;B(a=j())&&(r._allTabs=a)}},viewQuery:function(i,r){if(i&1&&(ie(Mfe,5),ie(kfe,5),ie(RI,5)),i&2){let o;B(o=j())&&(r._tabBodyWrapper=o.first),B(o=j())&&(r._tabHeader=o.first),B(o=j())&&(r._tabBodies=o)}},hostAttrs:[1,"mat-mdc-tab-group"],hostVars:11,hostBindings:function(i,r){i&2&&(X("mat-align-tabs",r.alignTabs),it("mat-"+(r.color||"primary")),Dt("--mat-tab-animation-duration",r.animationDuration),G("mat-mdc-tab-group-dynamic-height",r.dynamicHeight)("mat-mdc-tab-group-inverted-header",r.headerPosition==="below")("mat-mdc-tab-group-stretch-tabs",r.stretchTabs))},inputs:{color:"color",fitInkBarToContent:[2,"fitInkBarToContent","fitInkBarToContent",V],stretchTabs:[2,"mat-stretch-tabs","stretchTabs",V],alignTabs:[0,"mat-align-tabs","alignTabs"],dynamicHeight:[2,"dynamicHeight","dynamicHeight",V],selectedIndex:[2,"selectedIndex","selectedIndex",ct],headerPosition:"headerPosition",animationDuration:"animationDuration",contentTabIndex:[2,"contentTabIndex","contentTabIndex",ct],disablePagination:[2,"disablePagination","disablePagination",V],disableRipple:[2,"disableRipple","disableRipple",V],preserveContent:[2,"preserveContent","preserveContent",V],backgroundColor:"backgroundColor",ariaLabel:[0,"aria-label","ariaLabel"],ariaLabelledby:[0,"aria-labelledby","ariaLabelledby"]},outputs:{selectedIndexChange:"selectedIndexChange",focusChange:"focusChange",animationDone:"animationDone",selectedTabChange:"selectedTabChange"},exportAs:["matTabGroup"],features:[Ce([{provide:P8,useExisting:t}])],ngContentSelectors:np,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(i,r){if(i&1){let o=Y();Me(),h(0,"mat-tab-header",3,0),S("indexFocused",function(s){return I(o),A(r._focusChanged(s))})("selectFocusedIndex",function(s){return I(o),A(r.selectedIndex=s)}),xt(2,Afe,8,17,"div",4,xm),p(),N(4,Ofe,1,0),h(5,"div",5,1),xt(7,Rfe,1,10,"mat-tab-body",6,xm),p()}i&2&&(y("selectedIndex",r.selectedIndex||0)("disableRipple",r.disableRipple)("disablePagination",r.disablePagination),Kl("aria-label",r.ariaLabel)("aria-labelledby",r.ariaLabelledby),g(2),Ct(r._tabs),g(2),L(r._isServer?4:-1),g(),G("_mat-animation-noopable",r._animationsDisabled()),g(2),Ct(r._tabs))},dependencies:[zfe,N8,$f,Vn,yr,RI],styles:[`.mdc-tab{min-width:90px;padding:0 24px;display:flex;flex:1 0 auto;justify-content:center;box-sizing:border-box;border:none;outline:none;text-align:center;white-space:nowrap;cursor:pointer;z-index:1;touch-action:manipulation}.mdc-tab__content{display:flex;align-items:center;justify-content:center;height:inherit;pointer-events:none}.mdc-tab__text-label{transition:150ms color linear;display:inline-block;line-height:1;z-index:2}.mdc-tab--active .mdc-tab__text-label{transition-delay:100ms}._mat-animation-noopable .mdc-tab__text-label{transition:none}.mdc-tab-indicator{display:flex;position:absolute;top:0;left:0;justify-content:center;width:100%;height:100%;pointer-events:none;z-index:1}.mdc-tab-indicator__content{transition:var(--mat-tab-animation-duration, 250ms) transform cubic-bezier(0.4, 0, 0.2, 1);transform-origin:left;opacity:0}.mdc-tab-indicator__content--underline{align-self:flex-end;box-sizing:border-box;width:100%;border-top-style:solid}.mdc-tab-indicator--active .mdc-tab-indicator__content{opacity:1}._mat-animation-noopable .mdc-tab-indicator__content,.mdc-tab-indicator--no-transition .mdc-tab-indicator__content{transition:none}.mat-mdc-tab-ripple.mat-mdc-tab-ripple{position:absolute;top:0;left:0;bottom:0;right:0;pointer-events:none}.mat-mdc-tab{-webkit-tap-highlight-color:rgba(0,0,0,0);-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;text-decoration:none;background:none;height:var(--mat-tab-container-height, 48px);font-family:var(--mat-tab-label-text-font, var(--mat-sys-title-small-font));font-size:var(--mat-tab-label-text-size, var(--mat-sys-title-small-size));letter-spacing:var(--mat-tab-label-text-tracking, var(--mat-sys-title-small-tracking));line-height:var(--mat-tab-label-text-line-height, var(--mat-sys-title-small-line-height));font-weight:var(--mat-tab-label-text-weight, var(--mat-sys-title-small-weight))}.mat-mdc-tab.mdc-tab{flex-grow:0}.mat-mdc-tab .mdc-tab-indicator__content--underline{border-color:var(--mat-tab-active-indicator-color, var(--mat-sys-primary));border-top-width:var(--mat-tab-active-indicator-height, 2px);border-radius:var(--mat-tab-active-indicator-shape, 0)}.mat-mdc-tab:hover .mdc-tab__text-label{color:var(--mat-tab-inactive-hover-label-text-color, var(--mat-sys-on-surface))}.mat-mdc-tab:focus .mdc-tab__text-label{color:var(--mat-tab-inactive-focus-label-text-color, var(--mat-sys-on-surface))}.mat-mdc-tab.mdc-tab--active .mdc-tab__text-label{color:var(--mat-tab-active-label-text-color, var(--mat-sys-on-surface))}.mat-mdc-tab.mdc-tab--active .mdc-tab__ripple::before,.mat-mdc-tab.mdc-tab--active .mat-ripple-element{background-color:var(--mat-tab-active-ripple-color, var(--mat-sys-on-surface))}.mat-mdc-tab.mdc-tab--active:hover .mdc-tab__text-label{color:var(--mat-tab-active-hover-label-text-color, var(--mat-sys-on-surface))}.mat-mdc-tab.mdc-tab--active:hover .mdc-tab-indicator__content--underline{border-color:var(--mat-tab-active-hover-indicator-color, var(--mat-sys-primary))}.mat-mdc-tab.mdc-tab--active:focus .mdc-tab__text-label{color:var(--mat-tab-active-focus-label-text-color, var(--mat-sys-on-surface))}.mat-mdc-tab.mdc-tab--active:focus .mdc-tab-indicator__content--underline{border-color:var(--mat-tab-active-focus-indicator-color, var(--mat-sys-primary))}.mat-mdc-tab.mat-mdc-tab-disabled{opacity:.4;pointer-events:none}.mat-mdc-tab.mat-mdc-tab-disabled .mdc-tab__content{pointer-events:none}.mat-mdc-tab.mat-mdc-tab-disabled .mdc-tab__ripple::before,.mat-mdc-tab.mat-mdc-tab-disabled .mat-ripple-element{background-color:var(--mat-tab-disabled-ripple-color, var(--mat-sys-on-surface-variant))}.mat-mdc-tab .mdc-tab__ripple::before{content:"";display:block;position:absolute;top:0;left:0;right:0;bottom:0;opacity:0;pointer-events:none;background-color:var(--mat-tab-inactive-ripple-color, var(--mat-sys-on-surface))}.mat-mdc-tab .mdc-tab__text-label{color:var(--mat-tab-inactive-label-text-color, var(--mat-sys-on-surface));display:inline-flex;align-items:center}.mat-mdc-tab .mdc-tab__content{position:relative;pointer-events:auto}.mat-mdc-tab:hover .mdc-tab__ripple::before{opacity:.04}.mat-mdc-tab.cdk-program-focused .mdc-tab__ripple::before,.mat-mdc-tab.cdk-keyboard-focused .mdc-tab__ripple::before{opacity:.12}.mat-mdc-tab .mat-ripple-element{opacity:.12;background-color:var(--mat-tab-inactive-ripple-color, var(--mat-sys-on-surface))}.mat-mdc-tab-group.mat-mdc-tab-group-stretch-tabs>.mat-mdc-tab-header .mat-mdc-tab{flex-grow:1}.mat-mdc-tab-group{display:flex;flex-direction:column;max-width:100%}.mat-mdc-tab-group.mat-tabs-with-background>.mat-mdc-tab-header,.mat-mdc-tab-group.mat-tabs-with-background>.mat-mdc-tab-header-pagination{background-color:var(--mat-tab-background-color)}.mat-mdc-tab-group.mat-tabs-with-background.mat-primary>.mat-mdc-tab-header .mat-mdc-tab .mdc-tab__text-label{color:var(--mat-tab-foreground-color)}.mat-mdc-tab-group.mat-tabs-with-background.mat-primary>.mat-mdc-tab-header .mdc-tab-indicator__content--underline{border-color:var(--mat-tab-foreground-color)}.mat-mdc-tab-group.mat-tabs-with-background:not(.mat-primary)>.mat-mdc-tab-header .mat-mdc-tab:not(.mdc-tab--active) .mdc-tab__text-label{color:var(--mat-tab-foreground-color)}.mat-mdc-tab-group.mat-tabs-with-background:not(.mat-primary)>.mat-mdc-tab-header .mat-mdc-tab:not(.mdc-tab--active) .mdc-tab-indicator__content--underline{border-color:var(--mat-tab-foreground-color)}.mat-mdc-tab-group.mat-tabs-with-background>.mat-mdc-tab-header .mat-mdc-tab-header-pagination-chevron,.mat-mdc-tab-group.mat-tabs-with-background>.mat-mdc-tab-header .mat-focus-indicator::before,.mat-mdc-tab-group.mat-tabs-with-background>.mat-mdc-tab-header-pagination .mat-mdc-tab-header-pagination-chevron,.mat-mdc-tab-group.mat-tabs-with-background>.mat-mdc-tab-header-pagination .mat-focus-indicator::before{border-color:var(--mat-tab-foreground-color)}.mat-mdc-tab-group.mat-tabs-with-background>.mat-mdc-tab-header .mat-ripple-element,.mat-mdc-tab-group.mat-tabs-with-background>.mat-mdc-tab-header .mdc-tab__ripple::before,.mat-mdc-tab-group.mat-tabs-with-background>.mat-mdc-tab-header-pagination .mat-ripple-element,.mat-mdc-tab-group.mat-tabs-with-background>.mat-mdc-tab-header-pagination .mdc-tab__ripple::before{background-color:var(--mat-tab-foreground-color)}.mat-mdc-tab-group.mat-tabs-with-background>.mat-mdc-tab-header .mat-mdc-tab-header-pagination-chevron,.mat-mdc-tab-group.mat-tabs-with-background>.mat-mdc-tab-header-pagination .mat-mdc-tab-header-pagination-chevron{color:var(--mat-tab-foreground-color)}.mat-mdc-tab-group.mat-mdc-tab-group-inverted-header{flex-direction:column-reverse}.mat-mdc-tab-group.mat-mdc-tab-group-inverted-header .mdc-tab-indicator__content--underline{align-self:flex-start}.mat-mdc-tab-body-wrapper{position:relative;overflow:hidden;display:flex;transition:height 500ms cubic-bezier(0.35, 0, 0.25, 1)}.mat-mdc-tab-body-wrapper._mat-animation-noopable{transition:none !important;animation:none !important} -`],encapsulation:2})}return t})(),PI=class{index;tab},FI=(()=>{class t extends L8{_focusedItem=he(null);get fitInkBarToContent(){return this._fitInkBarToContent.value}set fitInkBarToContent(e){this._fitInkBarToContent.next(e),this._changeDetectorRef.markForCheck()}_fitInkBarToContent=new tt(!1);stretchTabs=!0;get animationDuration(){return this._animationDuration}set animationDuration(e){let i=e+"";this._animationDuration=/^\d+$/.test(i)?e+"ms":i}_animationDuration;_items;get backgroundColor(){return this._backgroundColor}set backgroundColor(e){let i=this._elementRef.nativeElement.classList;i.remove("mat-tabs-with-background",`mat-background-${this.backgroundColor}`),e&&i.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=he(!1);color="primary";tabPanel;_tabListContainer;_tabList;_tabListInner;_nextPaginator;_previousPaginator;_inkBar;constructor(){let e=u(V8,{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 ew(this._items),this._items.changes.pipe(He(null),Te(this._destroyed)).subscribe(()=>this.updateActiveLink()),super.ngAfterContentInit(),this._keyManager.change.pipe(He(null),Te(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 i=0;i.mat-mdc-tab-link-container .mat-mdc-tab-links{justify-content:center}[mat-align-tabs=end]>.mat-mdc-tab-link-container .mat-mdc-tab-links{justify-content:flex-end}.cdk-drop-list .mat-mdc-tab-links,.mat-mdc-tab-links.cdk-drop-list{min-height:var(--mat-tab-container-height, 48px)}.mat-mdc-tab-link-container{display:flex;flex-grow:1;overflow:hidden;z-index:1;border-bottom-style:solid;border-bottom-width:var(--mat-tab-divider-height, 1px);border-bottom-color:var(--mat-tab-divider-color, var(--mat-sys-surface-variant))}.mat-mdc-tab-nav-bar.mat-tabs-with-background>.mat-mdc-tab-link-container,.mat-mdc-tab-nav-bar.mat-tabs-with-background>.mat-mdc-tab-header-pagination{background-color:var(--mat-tab-background-color)}.mat-mdc-tab-nav-bar.mat-tabs-with-background.mat-primary>.mat-mdc-tab-link-container .mat-mdc-tab-link .mdc-tab__text-label{color:var(--mat-tab-foreground-color)}.mat-mdc-tab-nav-bar.mat-tabs-with-background.mat-primary>.mat-mdc-tab-link-container .mdc-tab-indicator__content--underline{border-color:var(--mat-tab-foreground-color)}.mat-mdc-tab-nav-bar.mat-tabs-with-background:not(.mat-primary)>.mat-mdc-tab-link-container .mat-mdc-tab-link:not(.mdc-tab--active) .mdc-tab__text-label{color:var(--mat-tab-foreground-color)}.mat-mdc-tab-nav-bar.mat-tabs-with-background:not(.mat-primary)>.mat-mdc-tab-link-container .mat-mdc-tab-link:not(.mdc-tab--active) .mdc-tab-indicator__content--underline{border-color:var(--mat-tab-foreground-color)}.mat-mdc-tab-nav-bar.mat-tabs-with-background>.mat-mdc-tab-link-container .mat-mdc-tab-header-pagination-chevron,.mat-mdc-tab-nav-bar.mat-tabs-with-background>.mat-mdc-tab-link-container .mat-focus-indicator::before,.mat-mdc-tab-nav-bar.mat-tabs-with-background>.mat-mdc-tab-header-pagination .mat-mdc-tab-header-pagination-chevron,.mat-mdc-tab-nav-bar.mat-tabs-with-background>.mat-mdc-tab-header-pagination .mat-focus-indicator::before{border-color:var(--mat-tab-foreground-color)}.mat-mdc-tab-nav-bar.mat-tabs-with-background>.mat-mdc-tab-link-container .mat-ripple-element,.mat-mdc-tab-nav-bar.mat-tabs-with-background>.mat-mdc-tab-link-container .mdc-tab__ripple::before,.mat-mdc-tab-nav-bar.mat-tabs-with-background>.mat-mdc-tab-header-pagination .mat-ripple-element,.mat-mdc-tab-nav-bar.mat-tabs-with-background>.mat-mdc-tab-header-pagination .mdc-tab__ripple::before{background-color:var(--mat-tab-foreground-color)}.mat-mdc-tab-nav-bar.mat-tabs-with-background>.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 t})(),Ufe=(()=>{class t extends F8{_tabNavBar=u(FI);elementRef=u(q);_focusMonitor=u(Yt);_destroyed=new z;_isActive=!1;_tabIndex=Zt(()=>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=he(!1);tabIndex=0;rippleConfig;get rippleDisabled(){return this.disabled||this.disableRipple||this._tabNavBar.disableRipple||!!this.rippleConfig.disabled}id=u(Ze).getId("mat-tab-link-");constructor(){super(),u(ut).load(Di);let e=u(Cs,{optional:!0}),i=u(new Ii("tabindex"),{optional:!0});this.rippleConfig=e||{},this.tabIndex=i==null?0:parseInt(i)||0,Ye()&&(this.rippleConfig.animation={enterDuration:0,exitDuration:0}),this._tabNavBar._fitInkBarToContent.pipe(Te(this._destroyed)).subscribe(r=>{this.fitInkBarToContent=r})}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(i){return new(i||t)};static \u0275cmp=E({type:t,selectors:[["","mat-tab-link",""],["","matTabLink",""]],hostAttrs:[1,"mdc-tab","mat-mdc-tab-link","mat-focus-indicator"],hostVars:11,hostBindings:function(i,r){i&1&&S("focus",function(){return r._handleFocus()})("keydown",function(a){return r._handleKeydown(a)}),i&2&&(X("aria-controls",r._getAriaControls())("aria-current",r._getAriaCurrent())("aria-disabled",r.disabled)("aria-selected",r._getAriaSelected())("id",r.id)("tabIndex",r._tabIndex())("role",r._getRole()),G("mat-mdc-tab-disabled",r.disabled)("mdc-tab--active",r.active))},inputs:{active:[2,"active","active",V],disabled:[2,"disabled","disabled",V],disableRipple:[2,"disableRipple","disableRipple",V],tabIndex:[2,"tabIndex","tabIndex",e=>e==null?0:ct(e)],id:"id"},exportAs:["matTabLink"],features:[le],attrs:Ffe,ngContentSelectors:np,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(i,r){i&1&&(Me(),k(0,"span",0)(1,"div",1),h(2,"span",2)(3,"span",3),oe(4),p()()),i&2&&(g(),y("matRippleTrigger",r.elementRef.nativeElement)("matRippleDisabled",r.rippleDisabled))},dependencies:[Vn],styles:[`.mat-mdc-tab-link{-webkit-tap-highlight-color:rgba(0,0,0,0);-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;text-decoration:none;background:none;height:var(--mat-tab-container-height, 48px);font-family:var(--mat-tab-label-text-font, var(--mat-sys-title-small-font));font-size:var(--mat-tab-label-text-size, var(--mat-sys-title-small-size));letter-spacing:var(--mat-tab-label-text-tracking, var(--mat-sys-title-small-tracking));line-height:var(--mat-tab-label-text-line-height, var(--mat-sys-title-small-line-height));font-weight:var(--mat-tab-label-text-weight, var(--mat-sys-title-small-weight))}.mat-mdc-tab-link.mdc-tab{flex-grow:0}.mat-mdc-tab-link .mdc-tab-indicator__content--underline{border-color:var(--mat-tab-active-indicator-color, var(--mat-sys-primary));border-top-width:var(--mat-tab-active-indicator-height, 2px);border-radius:var(--mat-tab-active-indicator-shape, 0)}.mat-mdc-tab-link:hover .mdc-tab__text-label{color:var(--mat-tab-inactive-hover-label-text-color, var(--mat-sys-on-surface))}.mat-mdc-tab-link:focus .mdc-tab__text-label{color:var(--mat-tab-inactive-focus-label-text-color, var(--mat-sys-on-surface))}.mat-mdc-tab-link.mdc-tab--active .mdc-tab__text-label{color:var(--mat-tab-active-label-text-color, var(--mat-sys-on-surface))}.mat-mdc-tab-link.mdc-tab--active .mdc-tab__ripple::before,.mat-mdc-tab-link.mdc-tab--active .mat-ripple-element{background-color:var(--mat-tab-active-ripple-color, var(--mat-sys-on-surface))}.mat-mdc-tab-link.mdc-tab--active:hover .mdc-tab__text-label{color:var(--mat-tab-active-hover-label-text-color, var(--mat-sys-on-surface))}.mat-mdc-tab-link.mdc-tab--active:hover .mdc-tab-indicator__content--underline{border-color:var(--mat-tab-active-hover-indicator-color, var(--mat-sys-primary))}.mat-mdc-tab-link.mdc-tab--active:focus .mdc-tab__text-label{color:var(--mat-tab-active-focus-label-text-color, var(--mat-sys-on-surface))}.mat-mdc-tab-link.mdc-tab--active:focus .mdc-tab-indicator__content--underline{border-color:var(--mat-tab-active-focus-indicator-color, var(--mat-sys-primary))}.mat-mdc-tab-link.mat-mdc-tab-disabled{opacity:.4;pointer-events:none}.mat-mdc-tab-link.mat-mdc-tab-disabled .mdc-tab__content{pointer-events:none}.mat-mdc-tab-link.mat-mdc-tab-disabled .mdc-tab__ripple::before,.mat-mdc-tab-link.mat-mdc-tab-disabled .mat-ripple-element{background-color:var(--mat-tab-disabled-ripple-color, var(--mat-sys-on-surface-variant))}.mat-mdc-tab-link .mdc-tab__ripple::before{content:"";display:block;position:absolute;top:0;left:0;right:0;bottom:0;opacity:0;pointer-events:none;background-color:var(--mat-tab-inactive-ripple-color, var(--mat-sys-on-surface))}.mat-mdc-tab-link .mdc-tab__text-label{color:var(--mat-tab-inactive-label-text-color, var(--mat-sys-on-surface));display:inline-flex;align-items:center}.mat-mdc-tab-link .mdc-tab__content{position:relative;pointer-events:auto}.mat-mdc-tab-link:hover .mdc-tab__ripple::before{opacity:.04}.mat-mdc-tab-link.cdk-program-focused .mdc-tab__ripple::before,.mat-mdc-tab-link.cdk-keyboard-focused .mdc-tab__ripple::before{opacity:.12}.mat-mdc-tab-link .mat-ripple-element{opacity:.12;background-color:var(--mat-tab-inactive-ripple-color, var(--mat-sys-on-surface))}.mat-mdc-tab-header.mat-mdc-tab-nav-bar-stretch-tabs .mat-mdc-tab-link{flex-grow:1}.mat-mdc-tab-link::before{margin:5px}@media(max-width: 599px){.mat-mdc-tab-link{min-width:72px}} -`],encapsulation:2,changeDetection:0})}return t})(),B8=(()=>{class t{id=u(Ze).getId("mat-tab-nav-panel-");_activeTabId;static \u0275fac=function(i){return new(i||t)};static \u0275cmp=E({type:t,selectors:[["mat-tab-nav-panel"]],hostAttrs:["role","tabpanel",1,"mat-mdc-tab-nav-panel"],hostVars:2,hostBindings:function(i,r){i&2&&X("aria-labelledby",r._activeTabId)("id",r.id)},inputs:{id:"id"},exportAs:["matTabNavPanel"],ngContentSelectors:np,decls:1,vars:0,template:function(i,r){i&1&&(Me(),oe(0))},encapsulation:2,changeDetection:0})}return t})(),rp=(()=>{class t{static \u0275fac=function(i){return new(i||t)};static \u0275mod=ee({type:t});static \u0275inj=J({imports:[we,we]})}return t})();function $fe(t,n){if(t&1&&(h(0,"div",1)(1,"div"),_(2),p(),h(3,"div",2)(4,"div",3),_(5),p(),h(6,"div",4),_(7),p()()()),t&2){let e=n.$implicit;g(),it($o("d-flex align-items-center justify-content-center r-12 ",e.color)),Dt("width",3,"rem")("height",3,"rem"),g(),ve(" ",e.icon," "),g(3),H(e.title),g(2),H(e.content)}}function Wfe(t,n){if(t&1&&(h(0,"mat-tab",0),xt(1,$fe,8,10,"div",1,Hi),p()),t&2){let e=n.$implicit;y("label",e.label),g(),Ct(e.messages)}}var j8=(()=>{let n=class n{constructor(){this.tabs=[{label:"Today",messages:[{icon:"\u{1F514}",color:"bg-red-95",title:"General Meeting for update",content:"You can use the Dashboard to explore how many new users download reports daily and monthly."},{icon:"\u{1F4E2}",color:"bg-azure-95",title:"Widgets update",content:"We've made some updates to the emendable widget which we think you are going to love."},{icon:"\u23F3",color:"bg-violet-95",title:"Coming soon new features",content:"More new features are coming soon, so stay patient!"}]},{label:"Notifications",messages:[{icon:"\u{1F4E9}",color:"bg-magenta-95",title:"Weekly reports are available",content:"Please go to the notification center to check your reports."}]}]}};n.\u0275fac=function(r){return new(r||n)},n.\u0275cmp=E({type:n,selectors:[["app-sidebar-notice"]],hostAttrs:[1,"matero-sidebar-notice"],decls:3,vars:0,consts:[[3,"label"],[1,"d-flex","align-items-center","gap-16","p-16","m-b-16","b-1","r-12"],[1,"flex-grow-1","w-0"],[1,"f-w-600"],[1,"f-s-14"]],template:function(r,o){r&1&&(h(0,"mat-tab-group"),xt(1,Wfe,3,1,"mat-tab",0,Hi),p()),r&2&&(g(),Ct(o.tabs))},dependencies:[rp,__,tw],styles:[`.matero-sidebar-notice{display:block;height:100%}.matero-sidebar-notice .mat-mdc-tab-group{height:100%}.matero-sidebar-notice .mat-mdc-tab-body-wrapper{flex:1}.matero-sidebar-notice .mat-mdc-tab-body-content{padding:1rem} -`],encapsulation:2});let t=n;return t})();var Gfe=["switch"],qfe=["*"];function Yfe(t,n){t&1&&(h(0,"span",11),Gt(),h(1,"svg",13),k(2,"path",14),p(),h(3,"svg",15),k(4,"path",16),p()())}var Qfe=new T("mat-slide-toggle-default-options",{providedIn:"root",factory:()=>({disableToggleValue:!1,hideIcon:!1,disabledInteractive:!1})}),iw=class{source;checked;constructor(n,e){this.source=n,this.checked=e}},LI=(()=>{class t{_elementRef=u(q);_focusMonitor=u(Yt);_changeDetectorRef=u(ye);defaults=u(Qfe);_onChange=e=>{};_onTouched=()=>{};_validatorOnChange=()=>{};_uniqueId;_checked=!1;_createChangeEvent(e){return new iw(this,e)}_labelId;get buttonId(){return`${this.id||this._uniqueId}-button`}_switchElement;focus(){this._switchElement.nativeElement.focus()}_noopAnimations=Ye();_focused;name=null;id;labelPosition="after";ariaLabel=null;ariaLabelledby=null;ariaDescribedby;required;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 U;toggleChange=new U;get inputId(){return`${this.id||this._uniqueId}-input`}constructor(){u(ut).load(Di);let e=u(new Ii("tabindex"),{optional:!0}),i=this.defaults;this.tabIndex=e==null?0:parseInt(e)||0,this.color=i.color||"accent",this.id=this._uniqueId=u(Ze).getId("mat-mdc-slide-toggle-"),this.hideIcon=i.hideIcon??!1,this.disabledInteractive=i.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 iw(this,this.checked))))}_getAriaLabelledBy(){return this.ariaLabelledby?this.ariaLabelledby:this.ariaLabel?null:this._labelId}static \u0275fac=function(i){return new(i||t)};static \u0275cmp=E({type:t,selectors:[["mat-slide-toggle"]],viewQuery:function(i,r){if(i&1&&ie(Gfe,5),i&2){let o;B(o=j())&&(r._switchElement=o.first)}},hostAttrs:[1,"mat-mdc-slide-toggle"],hostVars:13,hostBindings:function(i,r){i&2&&(si("id",r.id),X("tabindex",null)("aria-label",null)("name",null)("aria-labelledby",null),it(r.color?"mat-"+r.color:""),G("mat-mdc-slide-toggle-focused",r._focused)("mat-mdc-slide-toggle-checked",r.checked)("_mat-animation-noopable",r._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",V],color:"color",disabled:[2,"disabled","disabled",V],disableRipple:[2,"disableRipple","disableRipple",V],tabIndex:[2,"tabIndex","tabIndex",e=>e==null?0:ct(e)],checked:[2,"checked","checked",V],hideIcon:[2,"hideIcon","hideIcon",V],disabledInteractive:[2,"disabledInteractive","disabledInteractive",V]},outputs:{change:"change",toggleChange:"toggleChange"},exportAs:["matSlideToggle"],features:[Ce([{provide:tr,useExisting:Kt(()=>t),multi:!0},{provide:ea,useExisting:t,multi:!0}]),Ae],ngContentSelectors:qfe,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(i,r){if(i&1){let o=Y();Me(),h(0,"div",1)(1,"button",2,0),S("click",function(){return I(o),A(r._handleClick())}),k(3,"div",3)(4,"span",4),h(5,"span",5)(6,"span",6)(7,"span",7),k(8,"span",8),p(),h(9,"span",9),k(10,"span",10),p(),N(11,Yfe,5,0,"span",11),p()()(),h(12,"label",12),S("click",function(s){return I(o),A(s.stopPropagation())}),oe(13),p()()}if(i&2){let o=Se(2);y("labelPosition",r.labelPosition),g(),G("mdc-switch--selected",r.checked)("mdc-switch--unselected",!r.checked)("mdc-switch--checked",r.checked)("mdc-switch--disabled",r.disabled)("mat-mdc-slide-toggle-disabled-interactive",r.disabledInteractive),y("tabIndex",r.disabled&&!r.disabledInteractive?-1:r.tabIndex)("disabled",r.disabled&&!r.disabledInteractive),X("id",r.buttonId)("name",r.name)("aria-label",r.ariaLabel)("aria-labelledby",r._getAriaLabelledBy())("aria-describedby",r.ariaDescribedby)("aria-required",r.required||null)("aria-checked",r.checked)("aria-disabled",r.disabled&&r.disabledInteractive?"true":null),g(9),y("matRippleTrigger",o)("matRippleDisabled",r.disableRipple||r.disabled)("matRippleCentered",!0),g(),L(r.hideIcon?-1:11),g(),y("for",r.buttonId),X("id",r._labelId)}},dependencies:[Vn,Gm],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 rgba(0,0,0,0);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 rgba(0,0,0,0);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:rgba(0,0,0,0);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:.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-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 t})(),H8=(()=>{class t{static \u0275fac=function(i){return new(i||t)};static \u0275mod=ee({type:t});static \u0275inj=J({imports:[LI,we,we]})}return t})();var nw=(()=>{let n=class n{constructor(){this.router=u(Re),this.menu=u(so),this.navItems=[],this.router.events.pipe(ce(i=>i instanceof vi)).subscribe(()=>this.checkOpenedItems()),this.menu.change().pipe(Rt(10)).subscribe(()=>{setTimeout(()=>this.checkOpenedItems())})}addItem(i){this.navItems.push(i)}removeItem(i){let r=this.navItems.indexOf(i);r!==-1&&this.navItems.splice(r,1)}closeOtherItems(i){this.navItems.forEach(r=>{r!==i&&r.setExpanded(!1)})}checkOpenedItems(){this.navItems.forEach(i=>{let r=i.route();r&&this.router.url.split("/").includes(r)&&(i.setExpanded(!0),this.closeOtherItems(i))})}};n.\u0275fac=function(r){return new(r||n)},n.\u0275dir=F({type:n,selectors:[["","navAccordion",""]],exportAs:["navAccordion"]});let t=n;return t})();var rw=(()=>{let n=class n{constructor(){this.nav=u(nw),this.route=ne(""),this.expanded=he(!1)}ngOnInit(){this.nav.addItem(this)}ngOnDestroy(){this.nav.removeItem(this)}toggle(){this.expanded.update(i=>!i),this.expanded()&&this.nav.closeOtherItems(this)}setExpanded(i){this.expanded()!==i&&this.expanded.set(i)}};n.\u0275fac=function(r){return new(r||n)},n.\u0275dir=F({type:n,selectors:[["","navAccordionItem",""]],hostVars:2,hostBindings:function(r,o){r&2&&G("expanded",o.expanded())},inputs:{route:[1,"route"]},exportAs:["navAccordionItem"]});let t=n;return t})();var z8=(()=>{let n=class n{constructor(){this.navItem=u(rw)}onClick(){this.navItem.toggle()}};n.\u0275fac=function(r){return new(r||n)},n.\u0275dir=F({type:n,selectors:[["","navAccordionToggle",""]],hostBindings:function(r,o){r&1&&S("click",function(){return o.onClick()})},exportAs:["navAccordionToggle"]});let t=n;return t})();var Zfe=()=>[],Xfe=(t,n)=>({menuList:t,parentRoute:n,level:0}),U8=t=>[t],ow=(t,n)=>({item:t,level:n}),Jfe=(t,n,e)=>({menuList:t,parentRoute:n,level:e});function ege(t,n){if(t&1&&(h(0,"a",6),Ge(1,2),p()),t&2){let e=C(2).$implicit,i=C(),r=i.parentRoute,o=i.level,a=C(),s=Se(5);y("routerLink",a.menu.buildRoute(r.concat(Pt(3,U8,e.route)))),g(),y("ngTemplateOutlet",s)("ngTemplateOutletContext",wa(5,ow,e,o))}}function tge(t,n){if(t&1&&(h(0,"a",7),Ge(1,2),p()),t&2){let e=C(2).$implicit,i=C().level;C();let r=Se(5);y("href",e.route,$r),g(),y("ngTemplateOutlet",r)("ngTemplateOutletContext",wa(3,ow,e,i))}}function ige(t,n){if(t&1&&(h(0,"a",8),Ge(1,2),p()),t&2){let e=C(2).$implicit,i=C().level;C();let r=Se(5);y("href",e.route,$r),g(),y("ngTemplateOutlet",r)("ngTemplateOutletContext",wa(3,ow,e,i))}}function nge(t,n){if(t&1&&(h(0,"button",9),Ge(1,2),p(),Ge(2,2)),t&2){let e=C(2).$implicit,i=C(),r=i.parentRoute,o=i.level;C();let a=Se(3),s=Se(5);g(),y("ngTemplateOutlet",s)("ngTemplateOutletContext",wa(4,ow,e,o)),g(),y("ngTemplateOutlet",a)("ngTemplateOutletContext",Rd(9,Jfe,e.children,r.concat(Pt(7,U8,e.route)),o+1))}}function rge(t,n){if(t&1&&(h(0,"li",5),N(1,ege,2,8,"a",6),N(2,tge,2,6,"a",7),N(3,ige,2,6,"a",8),N(4,nge,3,13),p()),t&2){let e=C().$implicit;y("route",e.route),g(),L(e.type==="link"?1:-1),g(),L(e.type==="extLink"?2:-1),g(),L(e.type==="extTabLink"?3:-1),g(),L(e.type==="sub"?4:-1)}}function oge(t,n){if(t&1&&R(0,rge,5,5,"ng-template",4),t&2){let e=n.$implicit;y("ngxPermissionsOnly",e.permissions==null?null:e.permissions.only)("ngxPermissionsExcept",e.permissions==null?null:e.permissions.except)}}function age(t,n){if(t&1&&(h(0,"ul",3),xt(1,oge,1,2,null,4,Hi),p()),t&2){let e=n.menuList,i=n.level;it($o("matero-sidemenu level-",i)),G("submenu",i>0),g(),Ct(e)}}function sge(t,n){if(t&1&&(h(0,"mat-icon",14),_(1),p()),t&2){let e=C(),i=e.item,r=e.level;G("submenu-icon",r>0),g(),H(i.icon)}}function lge(t,n){if(t&1&&(h(0,"span",14),_(1),me(2,"translate"),me(3,"slice"),p()),t&2){let e=C(),i=e.item,r=e.level;G("submenu-icon",r>0),g(),ve(" ",BM(3,5,Oe(2,3,i.name),0,1)," ")}}function cge(t,n){if(t&1&&(h(0,"span"),_(1),p()),t&2){let e=C().item;it($o("menu-label bg-",e.label.color)),g(),H(e.label.value)}}function dge(t,n){if(t&1&&(h(0,"span"),_(1),p()),t&2){let e=C().item;it($o("menu-badge bg-",e.badge.color)),g(),H(e.badge.value)}}function uge(t,n){if(t&1&&(h(0,"mat-icon",13),_(1),p()),t&2){let e=C().item;g(),H(e.type==="sub"?"arrow_drop_down":"launch")}}function mge(t,n){if(t&1&&(N(0,sge,2,3,"mat-icon",10)(1,lge,4,9,"span",10),h(2,"span",11),_(3),me(4,"translate"),p(),N(5,cge,2,4,"span",12),N(6,dge,2,4,"span",12),N(7,uge,2,1,"mat-icon",13)),t&2){let e=n.item;L(e.icon?0:1),g(3),H(Oe(4,5,e.name)),g(2),L(e.label?5:-1),g(),L(e.badge?6:-1),g(),L(e.type!=="link"?7:-1)}}var $8=(()=>{let n=class n{constructor(){this.menu=u(so)}};n.\u0275fac=function(r){return new(r||n)},n.\u0275cmp=E({type:n,selectors:[["app-sidemenu"]],decls:6,vars:8,consts:[["menuTpl",""],["linkTypeTpl",""],[3,"ngTemplateOutlet","ngTemplateOutletContext"],["navAccordion",""],[3,"ngxPermissionsOnly","ngxPermissionsExcept"],["navAccordionItem","","routerLinkActive","active",1,"menu-item",3,"route"],["matRipple","",1,"menu-heading",3,"routerLink"],["matRipple","",1,"menu-heading",3,"href"],["target","_blank","matRipple","",1,"menu-heading",3,"href"],["navAccordionToggle","","matRipple","",1,"menu-heading","menu-toggle"],[1,"menu-icon",3,"submenu-icon"],[1,"menu-name"],[3,"class"],[1,"menu-caret"],[1,"menu-icon"]],template:function(r,o){if(r&1&&(Ge(0,2),me(1,"async"),R(2,age,3,5,"ng-template",null,0,_i)(4,mge,8,7,"ng-template",null,1,_i)),r&2){let a=Se(3);y("ngTemplateOutlet",a)("ngTemplateOutletContext",wa(5,Xfe,Oe(1,2,o.menu.getAll()),at(4,Zfe)))}},dependencies:[Fn,Nn,zd,xc,Ih,ot,mt,yo,Vn,wr,nw,rw,z8,rn,d1,Cr],styles:[`.matero-sidemenu{padding:0;margin:0;list-style:none}.matero-sidemenu .menu-item{overflow:hidden;border-radius:1.5rem;transition:background 225ms cubic-bezier(.4,0,.2,1)}.matero-sidemenu .menu-item>.submenu{visibility:hidden;height:0;transition:all 225ms cubic-bezier(.4,0,.2,1)}.matero-sidemenu .menu-item>.menu-heading:hover,.matero-sidemenu .menu-item>.menu-heading:focus{background-color:var(--sidemenu-heading-hover-background-color)}.matero-sidemenu .menu-item.active>.menu-heading{color:var(--sidemenu-active-heading-text-color);background-color:var(--sidemenu-active-heading-background-color)}.matero-sidemenu .menu-item.active>.menu-heading:hover,.matero-sidemenu .menu-item.active>.menu-heading:focus{background-color:var(--sidemenu-active-heading-hover-background-color)}.matero-sidemenu .menu-item.expanded{background-color:var(--sidemenu-expanded-background-color)}.matero-sidemenu .menu-item.expanded>.submenu{visibility:visible;height:auto;height:calc-size(auto,size)}.matero-sidemenu .menu-item.expanded>.menu-toggle>.menu-caret{transform:rotate(-180deg)}.matero-sidemenu .menu-item:has(.active)>.menu-heading{color:var(--sidemenu-active-heading-text-color)}.matero-sidemenu .menu-heading{position:relative;display:flex;align-items:center;width:calc(var(--sidenav-width) - 1rem);padding:.75rem;font-size:inherit;color:inherit;text-decoration:none;cursor:pointer;outline:none;background-color:transparent;border:none;border-radius:1.5rem}.matero-sidemenu .menu-icon{width:1.5rem;height:1.5rem;margin-right:.75rem;font-size:1.25rem;line-height:1.5rem;text-align:center}[dir=rtl] .matero-sidemenu .menu-icon{margin-right:0;margin-left:.75rem}.matero-sidemenu .menu-icon.submenu-icon{position:absolute;left:.75rem;width:1.5rem;height:1.5rem;font-size:1rem;line-height:1.5rem;opacity:0}[dir=rtl] .matero-sidemenu .menu-icon.submenu-icon{right:.75rem;left:0}.matero-sidemenu .menu-caret{display:block;width:1.5rem;height:1.5rem;font-size:1.5rem;line-height:1.5rem;text-align:center;transition:transform .4s cubic-bezier(.25,.8,.25,1)}.matero-sidemenu .menu-name{flex:1;overflow:hidden;text-overflow:ellipsis;text-align:initial}.matero-sidemenu .menu-icon,.matero-sidemenu .menu-name,.matero-sidemenu .menu-label,.matero-sidemenu .menu-badge{transition:opacity .4s cubic-bezier(.25,.8,.25,1)}.matero-sidemenu .menu-label,.matero-sidemenu .menu-badge{padding:.25rem .5rem;font-size:.75rem;font-weight:700;line-height:1;color:#fff;background-color:#757575;border-radius:.375rem}.matero-sidemenu .menu-badge{border-radius:50rem}.matero-sidemenu.level-1>li>.menu-heading{padding-left:3rem}[dir=rtl] .matero-sidemenu.level-1>li>.menu-heading{padding-right:3rem;padding-left:1rem}.matero-sidemenu.level-2>li>.menu-heading{padding-left:4rem}[dir=rtl] .matero-sidemenu.level-2>li>.menu-heading{padding-right:4rem;padding-left:1rem}.matero-sidemenu.level-2 [class^=level-]>li>.menu-heading{padding-left:5rem}[dir=rtl] .matero-sidemenu.level-2 [class^=level-]>li>.menu-heading{padding-right:5rem;padding-left:1rem} -`],encapsulation:2});let t=n;return t})();var W8=(()=>{let n=class n{constructor(){this.oidcAuth=u(Tt),this.userName="Guest",this.userEmail="Anonymous"}ngOnInit(){this.updateUserInfo(),this.authSubscription=this.oidcAuth.isAuthenticated$.subscribe(i=>{console.log("UserPanel: Auth state changed:",i),this.updateUserInfo()})}ngOnDestroy(){this.authSubscription?.unsubscribe()}updateUserInfo(){let i=this.oidcAuth.isAuthenticated();if(console.log("UserPanel: Updating user info, isAuthenticated:",i),!i){this.userName="Guest",this.userEmail="Anonymous";return}let r=this.oidcAuth.getUserInfo();console.log("UserPanel: User info from service:",r),console.log("UserPanel: Available claims:",r?Object.keys(r):"null"),this.userName=r?.name||r?.preferred_username||r?.given_name||r?.["http://schemas.xmlsoap.org/ws/2005/05/identity/claims/name"]||r?.sub||"User",this.userEmail=r?.email||r?.["http://schemas.xmlsoap.org/ws/2005/05/identity/claims/emailaddress"]||"",console.log("UserPanel: Set userName to:",this.userName,"email to:",this.userEmail)}};n.\u0275fac=function(r){return new(r||n)},n.\u0275cmp=E({type:n,selectors:[["app-user-panel"]],decls:8,vars:4,consts:[[1,"matero-user-panel"],[1,"matero-user-panel-avatar"],[1,"matero-user-panel-info"]],template:function(r,o){r&1&&(h(0,"div",0)(1,"mat-icon",1),_(2,"account_circle"),p(),h(3,"div",2)(4,"h4"),_(5),p(),h(6,"h5"),_(7),p()()()),r&2&&(G("authenticated",o.oidcAuth.isAuthenticated()),g(5),H(o.userName),g(2),H(o.userEmail))},dependencies:[gt,ze,ot,mt,Br,wr],styles:[`.matero-user-panel{display:flex;align-items:center;padding:.75rem;margin-bottom:.75rem;cursor:pointer;outline:none;background-color:var(--user-panel-background-color);border-radius:.75rem}.matero-user-panel:hover,.matero-user-panel:focus{background-color:var(--user-panel-hover-background-color)}.matero-user-panel-avatar{width:3rem;height:3rem;font-size:3rem;border-radius:50rem;color:#0000008a;transform-origin:0 1.5rem;transition:transform .4s cubic-bezier(.25,.8,.25,1)}[dir=rtl] .matero-user-panel-avatar{transform-origin:3rem 1.5rem}.matero-user-panel-info{flex:1;width:0;margin-left:.75rem;opacity:1;transition:opacity .4s cubic-bezier(.25,.8,.25,1)}[dir=rtl] .matero-user-panel-info{margin-right:.75rem;margin-left:0}.matero-user-panel-info h4,.matero-user-panel-info h5{margin:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.matero-user-panel-info h4{margin-bottom:4px;font-size:1rem;font-weight:500}.matero-user-panel-info h5{font-size:.75rem;font-weight:400} -`],encapsulation:2});let t=n;return t})();function hge(t,n){if(t&1){let e=Y();h(0,"mat-slide-toggle",6),S("change",function(){I(e);let r=C(2);return A(r.toggleCollapsed.emit())}),p()}if(t&2){let e=C(2);y("checked",e.toggleChecked())}}function pge(t,n){if(t&1){let e=Y();h(0,"button",7),S("click",function(){I(e);let r=C(2);return A(r.closeSidenav.emit())}),h(1,"mat-icon"),_(2,"close"),p()()}}function fge(t,n){if(t&1&&(h(0,"div",0)(1,"mat-toolbar"),k(2,"app-branding",2)(3,"span",3),N(4,hge,1,1,"mat-slide-toggle",4)(5,pge,3,0,"button",5),p()()),t&2){let e=C();g(2),y("showName",!e.toggleChecked()),g(2),L(e.showToggle()?4:5)}}function gge(t,n){t&1&&k(0,"app-user-panel")}var G8=(()=>{let n=class n{constructor(){this.showToggle=ne(!0),this.showUser=ne(!0),this.showHeader=ne(!0),this.toggleChecked=ne(!1),this.toggleCollapsed=bi(),this.closeSidenav=bi()}};n.\u0275fac=function(r){return new(r||n)},n.\u0275cmp=E({type:n,selectors:[["app-sidebar"]],inputs:{showToggle:[1,"showToggle"],showUser:[1,"showUser"],showHeader:[1,"showHeader"],toggleChecked:[1,"toggleChecked"]},outputs:{toggleCollapsed:"toggleCollapsed",closeSidenav:"closeSidenav"},decls:4,vars:2,consts:[[1,"matero-sidebar-header"],[1,"matero-sidebar-main"],[3,"showName"],[1,"flex-fill"],["hideIcon","",3,"checked"],["mat-icon-button",""],["hideIcon","",3,"change","checked"],["mat-icon-button","",3,"click"]],template:function(r,o){r&1&&(N(0,fge,6,2,"div",0),h(1,"div",1),N(2,gge,1,0,"app-user-panel"),k(3,"app-sidemenu"),p()),r&2&&(L(o.showHeader()?0:-1),g(2),L(o.showUser()?2:-1))},dependencies:[H8,LI,ot,mt,ze,ti,ZC,KC,XC,$8,W8],styles:[`.matero-sidebar-header{overflow:hidden}.matero-sidebar-header mat-toolbar{width:var(--sidenav-width);padding:0 .5rem}.matero-sidebar-header mat-slide-toggle .mdc-label{display:none}.matero-sidebar-main{height:calc(100% - var(--mat-toolbar-standard-height));padding:0 .5rem .5rem;overflow:auto;scrollbar-width:none}@media (max-width: 599px){.matero-sidebar-main{height:calc(100% - var(--mat-toolbar-mobile-height))}} -`],encapsulation:2});let t=n;return t})();var q8=t=>[t],_ge=()=>[];function bge(t,n){if(t&1){let e=Y();h(0,"a",8,0),S("click",function(){I(e);let r=Se(1),o=C(3);return A(o.onRouterLinkClick(r))}),_(2),me(3,"translate"),p()}if(t&2){let e=C(2).$implicit,i=C();y("routerLink",i.menu.buildRoute(i.parentRoute().concat(Pt(4,q8,e.route)))),g(2),ve(" ",Oe(3,2,e.name)," ")}}function vge(t,n){if(t&1&&(h(0,"a",5)(1,"span",9),_(2),me(3,"translate"),p(),h(4,"mat-icon"),_(5,"launch"),p()()),t&2){let e=C(2).$implicit;y("href",e.route,$r),g(2),H(Oe(3,2,e.name))}}function yge(t,n){if(t&1&&(h(0,"a",6)(1,"span",9),_(2),me(3,"translate"),p(),h(4,"mat-icon"),_(5,"launch"),p()()),t&2){let e=C(2).$implicit;y("href",e.route,$r),g(2),H(Oe(3,2,e.name))}}function xge(t,n){if(t&1){let e=Y();h(0,"button",10),_(1),me(2,"translate"),h(3,"app-topmenu-panel",11,1),S("routeChange",function(r){I(e);let o=C(2).$implicit,a=C();return A(a.onRouteChange(r,o))}),p()()}if(t&2){let e=Se(4),i=C(2).$implicit,r=C();G("active",i.active==null?null:i.active()),y("matMenuTriggerFor",e.menuPanel()),g(),ve(" ",Oe(2,7,i.name)," "),g(2),y("items",i.children||at(9,_ge))("parentRoute",r.parentRoute().concat(Pt(10,q8,i.route)))("level",r.level()+1)}}function Cge(t,n){if(t&1&&(N(0,bge,4,6,"a",4),N(1,vge,6,4,"a",5),N(2,yge,6,4,"a",6),N(3,xge,5,12,"button",7)),t&2){let e=C().$implicit;L(e.type==="link"?0:-1),g(),L(e.type==="extLink"?1:-1),g(),L(e.type==="extTabLink"?2:-1),g(),L(e.type==="sub"?3:-1)}}function wge(t,n){if(t&1&&R(0,Cge,4,4,"ng-template",3),t&2){let e=n.$implicit;y("ngxPermissionsOnly",e.permissions==null?null:e.permissions.only)("ngxPermissionsExcept",e.permissions==null?null:e.permissions.except)}}var Y8=(()=>{let n=class n{constructor(){this.router=u(Re),this.menu=u(so),this.menuPanel=qn.required(jr),this.items=ne([]),this.parentRoute=ne([]),this.level=ne(1),this.routeChange=bi(),this.routerSubscription=this.router.events.pipe(ce(i=>i instanceof vi)).subscribe(i=>{this.items().map(r=>r.active?.set(!1))})}ngOnInit(){this.items().forEach(i=>{i.active=he(this.checkRoute(i))})}ngOnDestroy(){this.routerSubscription.unsubscribe()}checkRoute(i){return i.route?this.router.url.split("/").includes(i.route):this.checkChildRoute(i.children)}checkChildRoute(i=[]){return i.some(r=>this.router.url.split("/").includes(r.route)?!0:(!r.route&&r.children&&this.checkChildRoute(r.children),!1))}onRouterLinkClick(i){this.routeChange.emit(i)}onRouteChange(i,r){this.routeChange.emit(i),this.routerSubscription.unsubscribe(),this.routerSubscription=this.router.events.pipe(ce(o=>o instanceof vi),Be(()=>{this.items().filter(a=>a!=r).map(a=>a.active?.set(!1))}),Rt(10),Be(()=>{r.active?.set(i.isActive)})).subscribe()}};n.\u0275fac=function(r){return new(r||n)},n.\u0275cmp=E({type:n,selectors:[["app-topmenu-panel"]],viewQuery:function(r,o){r&1&&Pn(o.menuPanel,jr,5),r&2&&Ho()},inputs:{items:[1,"items"],parentRoute:[1,"parentRoute"],level:[1,"level"]},outputs:{routeChange:"routeChange"},decls:3,vars:0,consts:[["rla","routerLinkActive"],["submenu",""],[1,"matero-topmenu-panel"],[3,"ngxPermissionsOnly","ngxPermissionsExcept"],["mat-menu-item","","routerLinkActive","active",3,"routerLink"],["mat-menu-item","",3,"href"],["mat-menu-item","","target","_blank",3,"href"],["mat-menu-item","",3,"matMenuTriggerFor","active"],["mat-menu-item","","routerLinkActive","active",3,"click","routerLink"],[1,"menu-name"],["mat-menu-item","",3,"matMenuTriggerFor"],[3,"routeChange","items","parentRoute","level"]],template:function(r,o){r&1&&(h(0,"mat-menu",2),xt(1,wge,1,2,null,3,Hi),p()),r&2&&(g(),Ct(o.items()))},dependencies:[n,Nn,zd,ot,mt,Ls,jr,El,Ns,xc,Ih,wr,Cr],encapsulation:2});let t=n;return t})();var Q8=t=>[t],sw=t=>({item:t}),Dge=()=>[];function Ege(t,n){if(t&1&&(h(0,"a",5),Ge(1,9),p()),t&2){let e=C(2).$implicit,i=C(),r=Se(7);y("routerLink",i.menu.buildRoute(Pt(3,Q8,e.route))),g(),y("ngTemplateOutlet",r)("ngTemplateOutletContext",Pt(5,sw,e))}}function Mge(t,n){if(t&1&&(h(0,"a",6),Ge(1,9),p()),t&2){let e=C(2).$implicit;C();let i=Se(7);y("href",e.route,$r),g(),y("ngTemplateOutlet",i)("ngTemplateOutletContext",Pt(3,sw,e))}}function kge(t,n){if(t&1&&(h(0,"a",7),Ge(1,9),p()),t&2){let e=C(2).$implicit;C();let i=Se(7);y("href",e.route,$r),g(),y("ngTemplateOutlet",i)("ngTemplateOutletContext",Pt(3,sw,e))}}function Sge(t,n){if(t&1){let e=Y();h(0,"button",10),Ge(1,9),h(2,"app-topmenu-panel",11,2),S("routeChange",function(r){I(e);let o=C(2).$implicit,a=C();return A(a.onRouteChange(r,o))}),p()()}if(t&2){let e=Se(3),i=C(2).$implicit;C();let r=Se(7);G("active",i.active==null?null:i.active()),y("matMenuTriggerFor",e.menuPanel()),g(),y("ngTemplateOutlet",r)("ngTemplateOutletContext",Pt(8,sw,i)),g(),y("items",i.children||at(10,Dge))("parentRoute",Pt(11,Q8,i.route))("level",1)}}function Tge(t,n){if(t&1&&(N(0,Ege,2,7,"a",5),N(1,Mge,2,5,"a",6),N(2,kge,2,5,"a",7),N(3,Sge,4,13,"button",8)),t&2){let e=C().$implicit;L(e.type==="link"?0:-1),g(),L(e.type==="extLink"?1:-1),g(),L(e.type==="extTabLink"?2:-1),g(),L(e.type==="sub"?3:-1)}}function Ige(t,n){if(t&1&&R(0,Tge,4,4,"ng-template",4),t&2){let e=n.$implicit;y("ngxPermissionsOnly",e.permissions==null?null:e.permissions.only)("ngxPermissionsExcept",e.permissions==null?null:e.permissions.except)}}function Age(t,n){if(t&1&&(h(0,"span"),_(1),p()),t&2){let e=C().item;it($o("menu-label bg-",e.label.color)),g(),H(e.label.value)}}function Oge(t,n){if(t&1&&(h(0,"span"),_(1),p()),t&2){let e=C().item;it($o("menu-badge bg-",e.badge.color)),g(),H(e.badge.value)}}function Rge(t,n){if(t&1&&(h(0,"mat-icon",15),_(1),p()),t&2){let e=C().item;g(),H(e.type==="sub"?"arrow_drop_down":"launch")}}function Pge(t,n){if(t&1&&(h(0,"mat-icon",12),_(1),p(),h(2,"span",13),_(3),me(4,"translate"),p(),N(5,Age,2,4,"span",14),N(6,Oge,2,4,"span",14),N(7,Rge,2,1,"mat-icon",15)),t&2){let e=n.item;g(),H(e.icon),g(2),H(Oe(4,5,e.name)),g(2),L(e.label?5:-1),g(),L(e.badge?6:-1),g(),L(e.type!=="link"?7:-1)}}var K8=(()=>{let n=class n{constructor(){this.router=u(Re),this.menu=u(so),this.menuList=[],this.menuSubscription=this.menu.getAll().subscribe(i=>{this.menuList=i.map(r=>{let o=this.router.url.split("/").includes(r.route);return r.active=he(o),r})}),this.routerSubscription=this.router.events.pipe(ce(i=>i instanceof vi)).subscribe(i=>{this.menuList.map(r=>r.active?.set(!1))})}ngOnDestroy(){this.menuSubscription.unsubscribe(),this.routerSubscription.unsubscribe()}onRouteChange(i,r){this.routerSubscription.unsubscribe(),this.routerSubscription=this.router.events.pipe(ce(o=>o instanceof vi),Be(()=>{this.menuList.filter(o=>o!=r).map(o=>o.active?.set(!1))}),Rt(10),Be(()=>{r.active?.set(i.isActive)})).subscribe()}};n.\u0275fac=function(r){return new(r||n)},n.\u0275cmp=E({type:n,selectors:[["app-topmenu"]],hostAttrs:[1,"matero-topmenu"],decls:8,vars:3,consts:[["tabPanel",""],["linkTypeTpl",""],["submenu",""],["mat-tab-nav-bar","",3,"tabPanel"],[3,"ngxPermissionsOnly","ngxPermissionsExcept"],["matButton","","routerLinkActive","active",3,"routerLink"],["matButton","",3,"href"],["matButton","","target","_blank",3,"href"],["matButton","",3,"matMenuTriggerFor","active"],[3,"ngTemplateOutlet","ngTemplateOutletContext"],["matButton","",3,"matMenuTriggerFor"],[3,"routeChange","items","parentRoute","level"],[1,"menu-icon"],[1,"menu-name"],[3,"class"],[1,"menu-caret"]],template:function(r,o){if(r&1&&(h(0,"nav",3),xt(1,Ige,1,2,null,4,Hi),me(3,"async"),p(),k(4,"mat-tab-nav-panel",null,0),R(6,Pge,8,7,"ng-template",null,1,_i)),r&2){let a=Se(5);y("tabPanel",a),g(),Ct(Oe(3,1,o.menu.getAll()))}},dependencies:[Fn,Nn,zd,ze,kt,ot,mt,Ls,Ns,rp,FI,B8,xc,Ih,wr,Y8,rn,Cr],styles:[`.matero-topmenu{--mat-tab-divider-height: 0;--mat-button-text-label-text-color: var(--topmenu-text-color);position:sticky;z-index:200;display:block;padding:.5rem;background-color:var(--topmenu-background-color);-webkit-backdrop-filter:blur(8px);backdrop-filter:blur(8px)}.matero-topmenu .mat-mdc-button{padding:0 1rem;white-space:nowrap}.matero-topmenu .mat-mdc-button.active{background-color:var(--topmenu-item-active-background-color)}.matero-topmenu .menu-icon,.matero-topmenu .menu-caret,.matero-topmenu .menu-name{vertical-align:middle}.matero-topmenu .mat-icon.menu-icon{width:1.125rem;height:1.125rem;margin-right:.5rem;font-size:1.125rem;line-height:1.125rem}[dir=rtl] .matero-topmenu .mat-icon.menu-icon{margin-right:auto;margin-left:.5rem}.matero-topmenu .mat-icon.menu-caret{margin-right:-.5rem}[dir=rtl] .matero-topmenu .mat-icon.menu-caret{margin-right:auto;margin-left:-.5rem}.matero-topmenu .menu-label,.matero-topmenu .menu-badge{padding:.25rem .5rem;margin-left:.5rem;font-size:.75rem;font-weight:700;line-height:1;color:#fff;background-color:#757575;border-radius:.375rem}[dir=rtl] .matero-topmenu .menu-label,[dir=rtl] .matero-topmenu .menu-badge{margin-right:.5rem;margin-left:auto}.matero-topmenu .menu-badge{border-radius:50rem}.matero-topmenu .mat-tab-nav-bar,.matero-topmenu .mat-tab-header{border-bottom:none}.matero-topmenu-panel .mat-mdc-menu-item.active{color:var(--topmenu-dropdown-item-active-text-color)} -`],encapsulation:2});let t=n;return t})();var Fge=["sidenav"],Nge=["content"];function Lge(t,n){if(t&1){let e=Y();h(0,"app-header",13),S("toggleSidenav",function(){I(e),C();let r=Se(5);return A(r.toggle())})("toggleSidenavNotice",function(){I(e),C();let r=Se(8);return A(r.toggle())}),p()}t&2&&y("showBranding",!0)}function Vge(t,n){if(t&1){let e=Y();h(0,"app-header",14),S("toggleSidenav",function(){I(e),C();let r=Se(5);return A(r.toggle())})("toggleSidenavNotice",function(){I(e),C();let r=Se(8);return A(r.toggle())}),p()}if(t&2){let e=C();y("showToggle",!e.options.sidenavCollapsed&&e.options.navPos!=="top")("showBranding",e.options.navPos==="top")}}function Bge(t,n){t&1&&k(0,"app-topmenu")}var Z8="screen and (max-width: 599px)",X8="screen and (min-width: 600px) and (max-width: 959px)",J8="screen and (min-width: 960px)",eU=(()=>{let n=class n{get themeColor(){return this.settings.getThemeColor()}get isOver(){return this.isMobileScreen}get contentWidthFix(){return this.isContentWidthFixed&&this.options.navPos==="side"&&this.options.sidenavOpened&&!this.isOver}get collapsedWidthFix(){return this.isCollapsedWidthFixed&&(this.options.navPos==="top"||this.options.sidenavOpened&&this.isOver)}constructor(){this.sidenav=qn.required("sidenav"),this.content=qn.required("content"),this.breakpointObserver=u(sl),this.router=u(Re),this.settings=u(aa),this.options=this.settings.options,this.isMobileScreen=!1,this.isContentWidthFixed=!0,this.isCollapsedWidthFixed=!1,this.layoutChangesSubscription=ke.EMPTY,this.layoutChangesSubscription=this.breakpointObserver.observe([Z8,X8,J8]).subscribe(i=>{this.options.sidenavOpened=!0,this.isMobileScreen=i.breakpoints[Z8],this.options.sidenavCollapsed=i.breakpoints[X8],this.isContentWidthFixed=i.breakpoints[J8]}),this.router.events.pipe(ce(i=>i instanceof vi)).subscribe(i=>{this.isOver&&this.sidenav().close(),this.content().scrollTo({top:0})})}ngOnDestroy(){this.layoutChangesSubscription.unsubscribe()}toggleCollapsed(){this.isContentWidthFixed=!1,this.options.sidenavCollapsed=!this.options.sidenavCollapsed,this.resetCollapsedState()}resetCollapsedState(i=400){setTimeout(()=>{this.settings.setOptions(this.options)},i)}onSidenavClosedStart(){this.isContentWidthFixed=!1}onSidenavOpenedChange(i){this.isCollapsedWidthFixed=!this.isOver,this.options.sidenavOpened=i,this.settings.setOptions(this.options)}updateOptions(i){this.options=i,this.settings.setOptions(i),this.settings.setDirection(),this.settings.setTheme()}};n.\u0275fac=function(r){return new(r||n)},n.\u0275cmp=E({type:n,selectors:[["app-admin-layout"]],viewQuery:function(r,o){r&1&&(Pn(o.sidenav,Fge,5),Pn(o.content,Nge,5)),r&2&&Ho(2)},hostVars:4,hostBindings:function(r,o){r&2&&G("matero-content-width-fix",o.contentWidthFix)("matero-sidenav-collapsed-fix",o.collapsedWidthFix)},decls:16,vars:20,consts:[["sidenav",""],["sidenavNotice",""],["content",""],[1,"matero-container-wrap",3,"dir"],["ngProgressRouter",""],[3,"showBranding"],["autosize","","autoFocus","",1,"matero-container"],[1,"matero-sidenav",3,"openedChange","closedStart","mode","opened"],[3,"toggleCollapsed","closeSidenav","showToggle","showUser","showHeader","toggleChecked"],["position","end","mode","over"],[1,"matero-content"],[3,"showToggle","showBranding"],[1,"matero-page-content"],[3,"toggleSidenav","toggleSidenavNotice","showBranding"],[3,"toggleSidenav","toggleSidenavNotice","showToggle","showBranding"]],template:function(r,o){if(r&1){let a=Y();h(0,"div",3),k(1,"ng-progress",4),N(2,Lge,1,1,"app-header",5),h(3,"mat-sidenav-container",6)(4,"mat-sidenav",7,0),S("openedChange",function(l){return I(a),A(o.onSidenavOpenedChange(l))})("closedStart",function(){return I(a),A(o.onSidenavClosedStart())}),h(6,"app-sidebar",8),S("toggleCollapsed",function(){return I(a),A(o.toggleCollapsed())})("closeSidenav",function(){I(a);let l=Se(5);return A(l.close())}),p()(),h(7,"mat-sidenav",9,1),k(9,"app-sidebar-notice"),p(),h(10,"mat-sidenav-content",10,2),N(12,Vge,1,2,"app-header",11),N(13,Bge,1,0,"app-topmenu"),h(14,"main",12),k(15,"router-outlet"),p()()()()}r&2&&(G("matero-sidenav-collapsed",o.options.sidenavCollapsed&&o.options.navPos!=="top")("matero-navbar-side",o.options.navPos==="side")("matero-navbar-top",o.options.navPos==="top")("matero-header-above",o.options.headerPos==="above")("matero-header-fixed",o.options.headerPos==="fixed"),y("dir",o.options.dir),g(2),L(o.options.showHeader&&o.options.headerPos==="above"?2:-1),g(2),y("mode",o.isOver?"over":"side")("opened",o.options.navPos==="side"&&o.options.sidenavOpened&&!o.isOver),g(2),y("showToggle",!o.isOver)("showUser",!!o.options.showUserPanel)("showHeader",o.options.headerPos!=="above")("toggleChecked",!!o.options.sidenavCollapsed),g(6),L(o.options.showHeader&&o.options.headerPos!=="above"?12:-1),g(),L(o.options.navPos==="top"?13:-1))},dependencies:[ol,vs,zL,n8,kI,i8,GC,o8,s8,D8,K8,G8,j8],styles:[`.matero-container-wrap,.matero-container{--mat-sidenav-content-background-color: transparent;height:100%}.matero-sidenav{--mat-sidenav-container-width: var(--sidenav-width);position:absolute;overflow-x:hidden;border-width:0!important;transition-property:transform,width!important}.matero-header-above .matero-container{height:calc(100% - var(--mat-toolbar-standard-height))!important}@media (max-width: 599px){.matero-header-above .matero-container{height:calc(100% - var(--mat-toolbar-mobile-height))!important}}.matero-header-above .matero-sidebar-main{height:100%!important;padding-top:.5rem}.matero-sidenav-collapsed .matero-sidenav,.matero-sidenav-collapsed-fix .matero-sidenav{width:var(--sidenav-collapsed-width)}.matero-sidenav-collapsed .matero-sidenav .menu-name,.matero-sidenav-collapsed .matero-sidenav .menu-label,.matero-sidenav-collapsed .matero-sidenav .menu-badge,.matero-sidenav-collapsed .matero-sidenav .menu-caret,.matero-sidenav-collapsed .matero-sidenav .matero-user-panel-info,.matero-sidenav-collapsed-fix .matero-sidenav .menu-name,.matero-sidenav-collapsed-fix .matero-sidenav .menu-label,.matero-sidenav-collapsed-fix .matero-sidenav .menu-badge,.matero-sidenav-collapsed-fix .matero-sidenav .menu-caret,.matero-sidenav-collapsed-fix .matero-sidenav .matero-user-panel-info{opacity:0}.matero-sidenav-collapsed .matero-sidenav .menu-icon.submenu-icon,.matero-sidenav-collapsed-fix .matero-sidenav .menu-icon.submenu-icon{opacity:1}.matero-sidenav-collapsed .matero-sidenav .matero-user-panel-avatar,.matero-sidenav-collapsed-fix .matero-sidenav .matero-user-panel-avatar{transform:scale(.5)}.matero-sidenav-collapsed .matero-sidenav:hover,.matero-sidenav-collapsed-fix .matero-sidenav:hover{width:var(--sidenav-width)}.matero-sidenav-collapsed .matero-sidenav:hover .menu-name,.matero-sidenav-collapsed .matero-sidenav:hover .menu-label,.matero-sidenav-collapsed .matero-sidenav:hover .menu-badge,.matero-sidenav-collapsed .matero-sidenav:hover .menu-caret,.matero-sidenav-collapsed .matero-sidenav:hover .matero-user-panel-info,.matero-sidenav-collapsed-fix .matero-sidenav:hover .menu-name,.matero-sidenav-collapsed-fix .matero-sidenav:hover .menu-label,.matero-sidenav-collapsed-fix .matero-sidenav:hover .menu-badge,.matero-sidenav-collapsed-fix .matero-sidenav:hover .menu-caret,.matero-sidenav-collapsed-fix .matero-sidenav:hover .matero-user-panel-info{opacity:1}.matero-sidenav-collapsed .matero-sidenav:hover .menu-icon.submenu-icon,.matero-sidenav-collapsed-fix .matero-sidenav:hover .menu-icon.submenu-icon{opacity:0}.matero-sidenav-collapsed .matero-sidenav:hover .matero-user-panel-avatar,.matero-sidenav-collapsed-fix .matero-sidenav:hover .matero-user-panel-avatar{transform:scale(1)}.matero-sidenav-collapsed .matero-content{margin-left:var(--sidenav-collapsed-width)!important}[dir=rtl] .matero-sidenav-collapsed .matero-content,.matero-sidenav-collapsed[dir=rtl] .matero-content{margin-right:var(--sidenav-collapsed-width)!important;margin-left:auto!important}.matero-navbar-top .matero-topmenu{top:0}.matero-navbar-top .matero-branding{margin-left:1rem}[dir=rtl] .matero-navbar-top .matero-branding{margin-right:1rem;margin-left:auto}.matero-header-fixed .matero-header{position:sticky;top:0}.matero-header-fixed .matero-topmenu{top:var(--mat-toolbar-standard-height)}@media (max-width: 599px){.matero-header-fixed .matero-topmenu{top:var(--mat-toolbar-mobile-height)}}.matero-content-width-fix .matero-content{margin-left:var(--sidenav-width)!important}[dir=rtl] .matero-content-width-fix .matero-content{margin-right:var(--sidenav-width)!important;margin-left:auto!important}.matero-page-content{position:relative;padding:var(--gutter)}.matero-header+.matero-page-content,.matero-header-above .matero-page-content,.matero-navbar-top .matero-page-content{padding-top:0} -`],encapsulation:2});let t=n;return t})();var tU=(()=>{let n=class n{};n.\u0275fac=function(r){return new(r||n)},n.\u0275cmp=E({type:n,selectors:[["app-auth-layout"]],decls:2,vars:0,consts:[[1,"matero-auth-container"]],template:function(r,o){r&1&&(h(0,"div",0),k(1,"router-outlet"),p())},dependencies:[ol],styles:[`.matero-auth-container{position:relative;display:flex;justify-content:center;min-height:100%;background-image:radial-gradient(at 97% 21%,hsla(125,98%,72%,.3) 0,transparent 50%),radial-gradient(at 52% 99%,hsla(354,98%,61%,.3) 0,transparent 50%),radial-gradient(at 10% 29%,hsla(256,96%,67%,.3) 0,transparent 50%),radial-gradient(at 97% 96%,hsla(38,60%,74%,.3) 0,transparent 50%),radial-gradient(at 33% 50%,hsla(222,67%,73%,.3) 0,transparent 50%),radial-gradient(at 79% 53%,hsla(343,68%,79%,.3) 0,transparent 50%)} -`],encapsulation:2});let t=n;return t})();var jge=["determinateSpinner"];function Hge(t,n){if(t&1&&(Gt(),h(0,"svg",11),k(1,"circle",12),p()),t&2){let e=C();X("viewBox",e._viewBox()),g(),Dt("stroke-dasharray",e._strokeCircumference(),"px")("stroke-dashoffset",e._strokeCircumference()/2,"px")("stroke-width",e._circleStrokeWidth(),"%"),X("r",e._circleRadius())}}var zge=new T("mat-progress-spinner-default-options",{providedIn:"root",factory:Uge});function Uge(){return{diameter:iU}}var iU=100,$ge=10,ki=(()=>{class t{_elementRef=u(q);_noopAnimations;get color(){return this._color||this._defaultColor}set color(e){this._color=e}_color;_defaultColor="primary";_determinateCircle;constructor(){let e=u(zge),i=pk(),r=this._elementRef.nativeElement;this._noopAnimations=i==="di-disabled"&&!!e&&!e._forceAnimations,this.mode=r.nodeName.toLowerCase()==="mat-spinner"?"indeterminate":"determinate",!this._noopAnimations&&i==="reduced-motion"&&r.classList.add("mat-progress-spinner-reduced-motion"),e&&(e.color&&(this.color=this._defaultColor=e.color),e.diameter&&(this.diameter=e.diameter),e.strokeWidth&&(this.strokeWidth=e.strokeWidth))}mode;get value(){return this.mode==="determinate"?this._value:0}set value(e){this._value=Math.max(0,Math.min(100,e||0))}_value=0;get diameter(){return this._diameter}set diameter(e){this._diameter=e||0}_diameter=iU;get strokeWidth(){return this._strokeWidth??this.diameter/10}set strokeWidth(e){this._strokeWidth=e||0}_strokeWidth;_circleRadius(){return(this.diameter-$ge)/2}_viewBox(){let e=this._circleRadius()*2+this.strokeWidth;return`0 0 ${e} ${e}`}_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(i){return new(i||t)};static \u0275cmp=E({type:t,selectors:[["mat-progress-spinner"],["mat-spinner"]],viewQuery:function(i,r){if(i&1&&ie(jge,5),i&2){let o;B(o=j())&&(r._determinateCircle=o.first)}},hostAttrs:["role","progressbar","tabindex","-1",1,"mat-mdc-progress-spinner","mdc-circular-progress"],hostVars:18,hostBindings:function(i,r){i&2&&(X("aria-valuemin",0)("aria-valuemax",100)("aria-valuenow",r.mode==="determinate"?r.value:null)("mode",r.mode),it("mat-"+r.color),Dt("width",r.diameter,"px")("height",r.diameter,"px")("--mat-progress-spinner-size",r.diameter+"px")("--mat-progress-spinner-active-indicator-width",r.diameter+"px"),G("_mat-animation-noopable",r._noopAnimations)("mdc-circular-progress--indeterminate",r.mode==="indeterminate"))},inputs:{color:"color",mode:"mode",value:[2,"value","value",ct],diameter:[2,"diameter","diameter",ct],strokeWidth:[2,"strokeWidth","strokeWidth",ct]},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(i,r){if(i&1&&(R(0,Hge,2,8,"ng-template",null,0,_i),h(2,"div",2,1),Gt(),h(4,"svg",3),k(5,"circle",4),p()(),jo(),h(6,"div",5)(7,"div",6)(8,"div",7),Ge(9,8),p(),h(10,"div",9),Ge(11,8),p(),h(12,"div",10),Ge(13,8),p()()()),i&2){let o=Se(1);g(4),X("viewBox",r._viewBox()),g(),Dt("stroke-dasharray",r._strokeCircumference(),"px")("stroke-dashoffset",r._strokeDashOffset(),"px")("stroke-width",r._circleStrokeWidth(),"%"),X("r",r._circleRadius()),g(4),y("ngTemplateOutlet",o),g(2),y("ngTemplateOutlet",o),g(2),y("ngTemplateOutlet",o)}},dependencies:[Fn],styles:[`.mat-mdc-progress-spinner{--mat-progress-spinner-animation-multiplier: 1;display:block;overflow:hidden;line-height:0;position:relative;direction:ltr;transition:opacity 250ms cubic-bezier(0.4, 0, 0.6, 1)}.mat-mdc-progress-spinner circle{stroke-width:var(--mat-progress-spinner-active-indicator-width, 4px)}.mat-mdc-progress-spinner._mat-animation-noopable,.mat-mdc-progress-spinner._mat-animation-noopable .mdc-circular-progress__determinate-circle{transition:none !important}.mat-mdc-progress-spinner._mat-animation-noopable .mdc-circular-progress__indeterminate-circle-graphic,.mat-mdc-progress-spinner._mat-animation-noopable .mdc-circular-progress__spinner-layer,.mat-mdc-progress-spinner._mat-animation-noopable .mdc-circular-progress__indeterminate-container{animation:none !important}.mat-mdc-progress-spinner._mat-animation-noopable .mdc-circular-progress__indeterminate-container circle{stroke-dasharray:0 !important}@media(forced-colors: active){.mat-mdc-progress-spinner .mdc-circular-progress__indeterminate-circle-graphic,.mat-mdc-progress-spinner .mdc-circular-progress__determinate-circle{stroke:currentColor;stroke:CanvasText}}.mat-progress-spinner-reduced-motion{--mat-progress-spinner-animation-multiplier: 1.25}.mdc-circular-progress__determinate-container,.mdc-circular-progress__indeterminate-circle-graphic,.mdc-circular-progress__indeterminate-container,.mdc-circular-progress__spinner-layer{position:absolute;width:100%;height:100%}.mdc-circular-progress__determinate-container{transform:rotate(-90deg)}.mdc-circular-progress--indeterminate .mdc-circular-progress__determinate-container{opacity:0}.mdc-circular-progress__indeterminate-container{font-size:0;letter-spacing:0;white-space:nowrap;opacity:0}.mdc-circular-progress--indeterminate .mdc-circular-progress__indeterminate-container{opacity:1;animation:mdc-circular-progress-container-rotate calc(1568.2352941176ms*var(--mat-progress-spinner-animation-multiplier)) linear infinite}.mdc-circular-progress__determinate-circle-graphic,.mdc-circular-progress__indeterminate-circle-graphic{fill:rgba(0,0,0,0)}.mat-mdc-progress-spinner .mdc-circular-progress__determinate-circle,.mat-mdc-progress-spinner .mdc-circular-progress__indeterminate-circle-graphic{stroke:var(--mat-progress-spinner-active-indicator-color, var(--mat-sys-primary))}@media(forced-colors: active){.mat-mdc-progress-spinner .mdc-circular-progress__determinate-circle,.mat-mdc-progress-spinner .mdc-circular-progress__indeterminate-circle-graphic{stroke:CanvasText}}.mdc-circular-progress__determinate-circle{transition:stroke-dashoffset 500ms cubic-bezier(0, 0, 0.2, 1)}.mdc-circular-progress__gap-patch{position:absolute;top:0;left:47.5%;box-sizing:border-box;width:5%;height:100%;overflow:hidden}.mdc-circular-progress__gap-patch .mdc-circular-progress__indeterminate-circle-graphic{left:-900%;width:2000%;transform:rotate(180deg)}.mdc-circular-progress__circle-clipper .mdc-circular-progress__indeterminate-circle-graphic{width:200%}.mdc-circular-progress__circle-right .mdc-circular-progress__indeterminate-circle-graphic{left:-100%}.mdc-circular-progress--indeterminate .mdc-circular-progress__circle-left .mdc-circular-progress__indeterminate-circle-graphic{animation:mdc-circular-progress-left-spin calc(1333ms*var(--mat-progress-spinner-animation-multiplier)) cubic-bezier(0.4, 0, 0.2, 1) infinite both}.mdc-circular-progress--indeterminate .mdc-circular-progress__circle-right .mdc-circular-progress__indeterminate-circle-graphic{animation:mdc-circular-progress-right-spin calc(1333ms*var(--mat-progress-spinner-animation-multiplier)) cubic-bezier(0.4, 0, 0.2, 1) infinite both}.mdc-circular-progress__circle-clipper{display:inline-flex;position:relative;width:50%;height:100%;overflow:hidden}.mdc-circular-progress--indeterminate .mdc-circular-progress__spinner-layer{animation:mdc-circular-progress-spinner-layer-rotate calc(5332ms*var(--mat-progress-spinner-animation-multiplier)) cubic-bezier(0.4, 0, 0.2, 1) infinite both}@keyframes mdc-circular-progress-container-rotate{to{transform:rotate(360deg)}}@keyframes mdc-circular-progress-spinner-layer-rotate{12.5%{transform:rotate(135deg)}25%{transform:rotate(270deg)}37.5%{transform:rotate(405deg)}50%{transform:rotate(540deg)}62.5%{transform:rotate(675deg)}75%{transform:rotate(810deg)}87.5%{transform:rotate(945deg)}100%{transform:rotate(1080deg)}}@keyframes mdc-circular-progress-left-spin{from{transform:rotate(265deg)}50%{transform:rotate(130deg)}to{transform:rotate(265deg)}}@keyframes mdc-circular-progress-right-spin{from{transform:rotate(-265deg)}50%{transform:rotate(-130deg)}to{transform:rotate(-265deg)}} -`],encapsulation:2,changeDetection:0})}return t})();var Si=(()=>{class t{static \u0275fac=function(i){return new(i||t)};static \u0275mod=ee({type:t});static \u0275inj=J({imports:[we]})}return t})();function Wge(t,n){if(t&1){let e=Y();h(0,"div",1)(1,"button",2),S("click",function(){I(e);let r=C();return A(r.action())}),_(2),p()()}if(t&2){let e=C();g(2),ve(" ",e.data.action," ")}}var Gge=["label"];function qge(t,n){}var Yge=Math.pow(2,31)-1,b_=class{_overlayRef;instance;containerInstance;_afterDismissed=new z;_afterOpened=new z;_onAction=new z;_durationTimeoutId;_dismissedByAction=!1;constructor(n,e){this._overlayRef=e,this.containerInstance=n,n._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(n){this._durationTimeoutId=setTimeout(()=>this.dismiss(),Math.min(n,Yge))}_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}},nU=new T("MatSnackBarData"),op=class{politeness="polite";announcementMessage="";viewContainerRef;duration=0;panelClass;direction;data=null;horizontalPosition="center";verticalPosition="bottom"},Qge=(()=>{class t{static \u0275fac=function(i){return new(i||t)};static \u0275dir=F({type:t,selectors:[["","matSnackBarLabel",""]],hostAttrs:[1,"mat-mdc-snack-bar-label","mdc-snackbar__label"]})}return t})(),Kge=(()=>{class t{static \u0275fac=function(i){return new(i||t)};static \u0275dir=F({type:t,selectors:[["","matSnackBarActions",""]],hostAttrs:[1,"mat-mdc-snack-bar-actions","mdc-snackbar__actions"]})}return t})(),Zge=(()=>{class t{static \u0275fac=function(i){return new(i||t)};static \u0275dir=F({type:t,selectors:[["","matSnackBarAction",""]],hostAttrs:[1,"mat-mdc-snack-bar-action","mdc-snackbar__action"]})}return t})(),rU=(()=>{class t{snackBarRef=u(b_);data=u(nU);constructor(){}action(){this.snackBarRef.dismissWithAction()}get hasAction(){return!!this.data.action}static \u0275fac=function(i){return new(i||t)};static \u0275cmp=E({type:t,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(i,r){i&1&&(h(0,"div",0),_(1),p(),N(2,Wge,3,1,"div",1)),i&2&&(g(),ve(" ",r.data.message,` -`),g(),L(r.hasAction?2:-1))},dependencies:[kt,Qge,Kge,Zge],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 t})(),VI="_mat-snack-bar-enter",BI="_mat-snack-bar-exit",Xge=(()=>{class t extends dc{_ngZone=u(ae);_elementRef=u(q);_changeDetectorRef=u(ye);_platform=u(qe);_animationsDisabled=Ye();snackBarConfig=u(op);_document=u(ge);_trackedModals=new Set;_enterFallback;_exitFallback;_injector=u(de);_announceDelay=150;_announceTimeoutId;_destroyed=!1;_portalOutlet;_onAnnounce=new z;_onExit=new z;_onEnter=new z;_animationState="void";_live;_label;_role;_liveElementId=u(Ze).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 i=this._portalOutlet.attachComponentPortal(e);return this._afterPortalAttached(),i}attachTemplatePortal(e){this._assertNotAttached();let i=this._portalOutlet.attachTemplatePortal(e);return this._afterPortalAttached(),i}attachDomPortal=e=>{this._assertNotAttached();let i=this._portalOutlet.attachDomPortal(e);return this._afterPortalAttached(),i};onAnimationEnd(e){e===BI?this._completeExit():e===VI&&(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?pt(()=>{this._ngZone.run(()=>queueMicrotask(()=>this.onAnimationEnd(VI)))},{injector:this._injector}):(clearTimeout(this._enterFallback),this._enterFallback=setTimeout(()=>{this._elementRef.nativeElement.classList.add("mat-snack-bar-fallback-visible"),this.onAnimationEnd(VI)},200)))}exit(){return this._destroyed?Q(void 0):(this._ngZone.run(()=>{this._animationState="hidden",this._changeDetectorRef.markForCheck(),this._elementRef.nativeElement.setAttribute("mat-exit",""),clearTimeout(this._announceTimeoutId),this._animationsDisabled?pt(()=>{this._ngZone.run(()=>queueMicrotask(()=>this.onAnimationEnd(BI)))},{injector:this._injector}):(clearTimeout(this._exitFallback),this._exitFallback=setTimeout(()=>this.onAnimationEnd(BI),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,i=this.snackBarConfig.panelClass;i&&(Array.isArray(i)?i.forEach(a=>e.classList.add(a)):e.classList.add(i)),this._exposeToModals();let r=this._label.nativeElement,o="mdc-snackbar__label";r.classList.toggle(o,!r.querySelector(`.${o}`))}_exposeToModals(){let e=this._liveElementId,i=this._document.querySelectorAll('body > .cdk-overlay-container [aria-modal="true"]');for(let r=0;r{let i=e.getAttribute("aria-owns");if(i){let r=i.replace(this._liveElementId,"").trim();r.length>0?e.setAttribute("aria-owns",r):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,i=e.querySelector("[aria-hidden]"),r=e.querySelector("[aria-live]");if(i&&r){let o=null;this._platform.isBrowser&&document.activeElement instanceof HTMLElement&&i.contains(document.activeElement)&&(o=document.activeElement),i.removeAttribute("aria-hidden"),r.appendChild(i),o?.focus(),this._onAnnounce.next(),this._onAnnounce.complete()}},this._announceDelay)})}static \u0275fac=function(i){return new(i||t)};static \u0275cmp=E({type:t,selectors:[["mat-snack-bar-container"]],viewQuery:function(i,r){if(i&1&&(ie(yr,7),ie(Gge,7)),i&2){let o;B(o=j())&&(r._portalOutlet=o.first),B(o=j())&&(r._label=o.first)}},hostAttrs:[1,"mdc-snackbar","mat-mdc-snack-bar-container"],hostVars:6,hostBindings:function(i,r){i&1&&S("animationend",function(a){return r.onAnimationEnd(a.animationName)})("animationcancel",function(a){return r.onAnimationEnd(a.animationName)}),i&2&&G("mat-snack-bar-container-enter",r._animationState==="visible")("mat-snack-bar-container-exit",r._animationState==="hidden")("mat-snack-bar-container-animations-enabled",!r._animationsDisabled)},features:[le],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(i,r){i&1&&(h(0,"div",1)(1,"div",2,0)(3,"div",3),R(4,qge,0,0,"ng-template",4),p(),k(5,"div"),p()()),i&2&&(g(5),X("aria-live",r._live)("role",r._role)("id",r._liveElementId))},dependencies:[yr],styles:[`@keyframes _mat-snack-bar-enter{from{transform:scale(0.8);opacity:0}to{transform:scale(1);opacity:1}}@keyframes _mat-snack-bar-exit{from{opacity:1}to{opacity:0}}.mat-mdc-snack-bar-container{display:flex;align-items:center;justify-content:center;box-sizing:border-box;-webkit-tap-highlight-color:rgba(0,0,0,0);margin:8px}.mat-mdc-snack-bar-handset .mat-mdc-snack-bar-container{width:100vw}.mat-snack-bar-container-animations-enabled{opacity:0}.mat-snack-bar-container-animations-enabled.mat-snack-bar-fallback-visible{opacity:1}.mat-snack-bar-container-animations-enabled.mat-snack-bar-container-enter{animation:_mat-snack-bar-enter 150ms cubic-bezier(0, 0, 0.2, 1) forwards}.mat-snack-bar-container-animations-enabled.mat-snack-bar-container-exit{animation:_mat-snack-bar-exit 75ms cubic-bezier(0.4, 0, 1, 1) forwards}.mat-mdc-snackbar-surface{box-shadow:0px 3px 5px -1px rgba(0, 0, 0, 0.2), 0px 6px 10px 0px rgba(0, 0, 0, 0.14), 0px 1px 18px 0px rgba(0, 0, 0, 0.12);display:flex;align-items:center;justify-content:flex-start;box-sizing:border-box;padding-left:0;padding-right:8px}[dir=rtl] .mat-mdc-snackbar-surface{padding-right:0;padding-left:8px}.mat-mdc-snack-bar-container .mat-mdc-snackbar-surface{min-width:344px;max-width:672px}.mat-mdc-snack-bar-handset .mat-mdc-snackbar-surface{width:100%;min-width:0}@media(forced-colors: active){.mat-mdc-snackbar-surface{outline:solid 1px}}.mat-mdc-snack-bar-container .mat-mdc-snackbar-surface{color:var(--mat-snack-bar-supporting-text-color, var(--mat-sys-inverse-on-surface));border-radius:var(--mat-snack-bar-container-shape, var(--mat-sys-corner-extra-small));background-color:var(--mat-snack-bar-container-color, var(--mat-sys-inverse-surface))}.mdc-snackbar__label{width:100%;flex-grow:1;box-sizing:border-box;margin:0;padding:14px 8px 14px 16px}[dir=rtl] .mdc-snackbar__label{padding-left:8px;padding-right:16px}.mat-mdc-snack-bar-container .mdc-snackbar__label{font-family:var(--mat-snack-bar-supporting-text-font, var(--mat-sys-body-medium-font));font-size:var(--mat-snack-bar-supporting-text-size, var(--mat-sys-body-medium-size));font-weight:var(--mat-snack-bar-supporting-text-weight, var(--mat-sys-body-medium-weight));line-height:var(--mat-snack-bar-supporting-text-line-height, var(--mat-sys-body-medium-line-height))}.mat-mdc-snack-bar-actions{display:flex;flex-shrink:0;align-items:center;box-sizing:border-box}.mat-mdc-snack-bar-handset,.mat-mdc-snack-bar-container,.mat-mdc-snack-bar-label{flex:1 1 auto}.mat-mdc-snack-bar-container .mat-mdc-button.mat-mdc-snack-bar-action:not(:disabled){--mat-button-text-state-layer-color: currentColor;--mat-button-text-ripple-color: currentColor}.mat-mdc-snack-bar-container .mat-mdc-button.mat-mdc-snack-bar-action:not(:disabled).mat-unthemed{color:var(--mat-snack-bar-button-color, var(--mat-sys-inverse-primary))}.mat-mdc-snack-bar-container .mat-mdc-button.mat-mdc-snack-bar-action:not(:disabled) .mat-ripple-element{opacity:.1} -`],encapsulation:2})}return t})();function Jge(){return new op}var e_e=new T("mat-snack-bar-default-options",{providedIn:"root",factory:Jge}),di=(()=>{class t{_live=u(Gf);_injector=u(de);_breakpointObserver=u(sl);_parentSnackBar=u(t,{optional:!0,skipSelf:!0});_defaultConfig=u(e_e);_animationsDisabled=Ye();_snackBarRefAtThisLevel=null;simpleSnackBarComponent=rU;snackBarContainerComponent=Xge;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,i){return this._attach(e,i)}openFromTemplate(e,i){return this._attach(e,i)}open(e,i="",r){let o=M(M({},this._defaultConfig),r);return o.data={message:e,action:i},o.announcementMessage===e&&(o.announcementMessage=void 0),this.openFromComponent(this.simpleSnackBarComponent,o)}dismiss(){this._openedSnackBarRef&&this._openedSnackBarRef.dismiss()}ngOnDestroy(){this._snackBarRefAtThisLevel&&this._snackBarRefAtThisLevel.dismiss()}_attachSnackBarContainer(e,i){let r=i&&i.viewContainerRef&&i.viewContainerRef.injector,o=de.create({parent:r||this._injector,providers:[{provide:op,useValue:i}]}),a=new Zr(this.snackBarContainerComponent,i.viewContainerRef,o),s=e.attach(a);return s.instance.snackBarConfig=i,s.instance}_attach(e,i){let r=M(M(M({},new op),this._defaultConfig),i),o=this._createOverlay(r),a=this._attachSnackBarContainer(o,r),s=new b_(a,o);if(e instanceof te){let l=new Cn(e,null,{$implicit:r.data,snackBarRef:s});s.instance=a.attachTemplatePortal(l)}else{let l=this._createInjector(r,s),c=new Zr(e,void 0,l),d=a.attachComponentPortal(c);s.instance=d.instance}return this._breakpointObserver.observe(F0.HandsetPortrait).pipe(Te(o.detachments())).subscribe(l=>{o.overlayElement.classList.toggle(this.handsetCssClass,l.matches)}),r.announcementMessage&&a._onAnnounce.subscribe(()=>{this._live.announce(r.announcementMessage,r.politeness)}),this._animateSnackBar(s,r),this._openedSnackBarRef=s,this._openedSnackBarRef}_animateSnackBar(e,i){e.afterDismissed().subscribe(()=>{this._openedSnackBarRef==e&&(this._openedSnackBarRef=null),i.announcementMessage&&this._live.clear()}),i.duration&&i.duration>0&&e.afterOpened().subscribe(()=>e._dismissAfter(i.duration)),this._openedSnackBarRef?(this._openedSnackBarRef.afterDismissed().subscribe(()=>{e.containerInstance.enter()}),this._openedSnackBarRef.dismiss()):e.containerInstance.enter()}_createOverlay(e){let i=new Fr;i.direction=e.direction;let r=Ds(this._injector),o=e.direction==="rtl",a=e.horizontalPosition==="left"||e.horizontalPosition==="start"&&!o||e.horizontalPosition==="end"&&o,s=!a&&e.horizontalPosition!=="center";return a?r.left("0"):s?r.right("0"):r.centerHorizontally(),e.verticalPosition==="top"?r.top("0"):r.bottom("0"),i.positionStrategy=r,i.disableAnimations=this._animationsDisabled,Nr(this._injector,i)}_createInjector(e,i){let r=e&&e.viewContainerRef&&e.viewContainerRef.injector;return de.create({parent:r||this._injector,providers:[{provide:b_,useValue:i},{provide:nU,useValue:e.data}]})}static \u0275fac=function(i){return new(i||t)};static \u0275prov=O({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();var pi=(()=>{class t{static \u0275fac=function(i){return new(i||t)};static \u0275mod=ee({type:t});static \u0275inj=J({providers:[di],imports:[er,Co,ze,we,rU,we]})}return t})();var Un=(()=>{let n=class n{constructor(){this.authService=u(Tt),this.templateRef=u(te),this.viewContainer=u(nt)}set appHasRole(i){this.updateView(i)}ngOnInit(){this.subscription=this.authService.isAuthenticated$.subscribe(()=>{let i=this.roles;i&&this.updateView(i)})}ngOnDestroy(){this.subscription?.unsubscribe()}updateView(i){this.roles=i,this.viewContainer.clear(),this.checkRole(i)&&this.viewContainer.createEmbeddedView(this.templateRef)}checkRole(i){return this.authService.isAuthenticated()?typeof i=="string"?this.authService.hasRole(i):Array.isArray(i)?this.authService.hasAnyRole(i):!1:!1}};n.\u0275fac=function(r){return new(r||n)},n.\u0275dir=F({type:n,selectors:[["","appHasRole",""]],inputs:{appHasRole:"appHasRole"}});let t=n;return t})();var da=class{constructor(){this.http=u(Yr),this.apiUrl=ko.apiUrl}getAll(n){let e=this.buildHttpParams(n);return this.http.get(`${this.apiUrl}/${this.endpoint}`,{params:e}).pipe(se(i=>i.value))}getAllPaged(n){let e=this.buildHttpParams(n);return this.http.get(`${this.apiUrl}/${this.endpoint}`,{params:e})}getById(n){return this.http.get(`${this.apiUrl}/${this.endpoint}/${n}`).pipe(se(e=>e.value))}create(n){return this.http.post(`${this.apiUrl}/${this.endpoint}`,n).pipe(se(e=>e&&"value"in e&&typeof e.value=="string"?{id:e.value}:e))}update(n,e){return this.http.put(`${this.apiUrl}/${this.endpoint}/${n}`,e)}delete(n){return this.http.delete(`${this.apiUrl}/${this.endpoint}/${n}`)}buildHttpParams(n){let e=new Qn;return n&&Object.keys(n).forEach(i=>{let r=n[i];r!=null&&(e=e.set(i,r.toString()))}),e}};var oU=(()=>{let n=class n extends da{constructor(){super(...arguments),this.endpoint="Dashboard"}getDashboardMetrics(){return this.http.get(`${this.apiUrl}/${this.endpoint}/Metrics`).pipe(se(i=>{if(i.isSuccess&&i.value)return i.value;throw new Error(i.message||"Failed to load dashboard metrics")}))}};n.\u0275fac=(()=>{let i;return function(o){return(i||(i=fe(n)))(o||n)}})(),n.\u0275prov=O({token:n,factory:n.\u0275fac,providedIn:"root"});let t=n;return t})();var Vs=(()=>{let n=class n extends da{constructor(){super(...arguments),this.endpoint="Departments"}createDepartment(i){return this.create(i)}updateDepartment(i){return this.update(i.id,i)}};n.\u0275fac=(()=>{let i;return function(o){return(i||(i=fe(n)))(o||n)}})(),n.\u0275prov=O({token:n,factory:n.\u0275fac,providedIn:"root"});let t=n;return t})();var ap=(()=>{let n=class n extends da{constructor(){super(...arguments),this.endpoint="Employees"}createEmployee(i){return this.create(i)}updateEmployee(i){return this.update(i.id,i)}};n.\u0275fac=(()=>{let i;return function(o){return(i||(i=fe(n)))(o||n)}})(),n.\u0275prov=O({token:n,factory:n.\u0275fac,providedIn:"root"});let t=n;return t})();var Bc=(()=>{let n=class n extends da{constructor(){super(...arguments),this.endpoint="Positions"}createPosition(i){return this.create(i)}updatePosition(i){return this.update(i.id,i)}getAllPaged(i){let r=this.buildHttpParams(i);return this.http.get(`${this.apiUrl}/${this.endpoint}`,{params:r})}addMockPositions(i){return this.http.post(`${this.apiUrl}/${this.endpoint}/AddMock`,i)}};n.\u0275fac=(()=>{let i;return function(o){return(i||(i=fe(n)))(o||n)}})(),n.\u0275prov=O({token:n,factory:n.\u0275fac,providedIn:"root"});let t=n;return t})();var jc=(()=>{let n=class n extends da{constructor(){super(...arguments),this.endpoint="SalaryRanges"}createSalaryRange(i){return this.create(i)}updateSalaryRange(i){return this.update(i.id,i)}};n.\u0275fac=(()=>{let i;return function(o){return(i||(i=fe(n)))(o||n)}})(),n.\u0275prov=O({token:n,factory:n.\u0275fac,providedIn:"root"});let t=n;return t})();var aU=(()=>{let n=class n{decodeToken(i){if(!i)return null;try{let r=i.split(".");if(r.length!==3)return console.warn("Invalid JWT token format"),null;let o=this.decodeBase64Url(r[0]),a=this.decodeBase64Url(r[1]),s=r[2],l=JSON.parse(a),c=l.iat?new Date(l.iat*1e3):void 0,d=l.exp?new Date(l.exp*1e3):void 0,m=new Date,f=d?d24){let s=Math.floor(o/24);return`Expires in ${s} day${s>1?"s":""}`}else return o>0?`Expires in ${o}h ${a}m`:a>0?`Expires in ${a}m`:"Expires soon"}};n.\u0275fac=function(r){return new(r||n)},n.\u0275prov=O({token:n,factory:n.\u0275fac,providedIn:"root"});let t=n;return t})();var t_e=()=>["HRAdmin","Manager"],sU=()=>["HRAdmin"];function i_e(t,n){t&1&&(h(0,"div",3),k(1,"mat-spinner"),p())}function n_e(t,n){if(t&1&&(h(0,"div",21),k(1,"canvas",22),p()),t&2){let e=C(2);g(),y("data",e.departmentChartData)("options",e.departmentChartOptions)}}function r_e(t,n){t&1&&(h(0,"div",23)(1,"mat-icon"),_(2,"pie_chart"),p(),h(3,"p"),_(4,"No department data available"),p()())}function o_e(t,n){if(t&1&&(h(0,"div",21),k(1,"canvas",24),p()),t&2){let e=C(2);g(),y("data",e.positionChartData)("options",e.positionChartOptions)}}function a_e(t,n){t&1&&(h(0,"div",23)(1,"mat-icon"),_(2,"bar_chart"),p(),h(3,"p"),_(4,"No position data available"),p()())}function s_e(t,n){if(t&1&&(h(0,"div",21),k(1,"canvas",25),p()),t&2){let e=C(2);g(),y("data",e.genderChartData)("options",e.genderChartOptions)}}function l_e(t,n){t&1&&(h(0,"div",23)(1,"mat-icon"),_(2,"donut_large"),p(),h(3,"p"),_(4,"No gender data available"),p()())}function c_e(t,n){if(t&1&&(h(0,"div",21),k(1,"canvas",24),p()),t&2){let e=C(2);g(),y("data",e.salaryChartData)("options",e.salaryChartOptions)}}function d_e(t,n){t&1&&(h(0,"div",23)(1,"mat-icon"),_(2,"bar_chart"),p(),h(3,"p"),_(4,"No salary range data available"),p()())}function u_e(t,n){if(t&1){let e=Y();h(0,"mat-list-item",27),S("click",function(){let r=I(e).$implicit,o=C(3);return A(o.navigateToEmployee(r.id))}),h(1,"mat-icon",28),_(2,"person"),p(),h(3,"div",29),_(4),p(),h(5,"div",30),_(6),p(),h(7,"div",31),_(8),me(9,"date"),p()()}if(t&2){let e=n.$implicit;g(4),H(e.fullName),g(2),Od("",e.positionTitle," \u2022 ",e.departmentName),g(2),H(Ni(9,4,e.createdAt,"MMM d, y"))}}function m_e(t,n){if(t&1&&(h(0,"mat-list"),R(1,u_e,10,7,"mat-list-item",26),p()),t&2){let e=C(2);g(),y("ngForOf",e.metrics.recentEmployees)}}function h_e(t,n){t&1&&(h(0,"div",23)(1,"mat-icon"),_(2,"people_outline"),p(),h(3,"p"),_(4,"No recent employees"),p()())}function p_e(t,n){if(t&1){let e=Y();h(0,"button",36),S("click",function(){I(e);let r=C(3);return A(r.navigateToAddDepartment())}),h(1,"mat-icon"),_(2,"add_business"),p(),_(3," Add Department "),p()}}function f_e(t,n){if(t&1){let e=Y();h(0,"button",36),S("click",function(){I(e);let r=C(3);return A(r.navigateToAddPosition())}),h(1,"mat-icon"),_(2,"work_outline"),p(),_(3," Add Position "),p()}}function g_e(t,n){if(t&1){let e=Y();h(0,"div",32)(1,"mat-card")(2,"mat-card-header")(3,"mat-card-title"),_(4,"Quick Actions"),p()(),h(5,"mat-card-content")(6,"div",33)(7,"button",34),S("click",function(){I(e);let r=C(2);return A(r.navigateToAddEmployee())}),h(8,"mat-icon"),_(9,"person_add"),p(),_(10," Add Employee "),p(),R(11,p_e,4,0,"button",35)(12,f_e,4,0,"button",35),p()()()()}t&2&&(g(11),y("appHasRole",at(2,sU)),g(),y("appHasRole",at(3,sU)))}function __e(t,n){if(t&1){let e=Y();h(0,"div",4)(1,"div",5)(2,"mat-card",6)(3,"mat-card-content")(4,"div",7)(5,"mat-icon"),_(6,"people"),p()(),h(7,"div",8),_(8),p(),h(9,"div",9),_(10,"Total Employees"),p()()(),h(11,"mat-card",6)(12,"mat-card-content")(13,"div",7)(14,"mat-icon"),_(15,"business"),p()(),h(16,"div",8),_(17),p(),h(18,"div",9),_(19,"Departments"),p()()(),h(20,"mat-card",6)(21,"mat-card-content")(22,"div",7)(23,"mat-icon"),_(24,"work"),p()(),h(25,"div",8),_(26),p(),h(27,"div",9),_(28,"Positions"),p()()(),h(29,"mat-card",6)(30,"mat-card-content")(31,"div",7)(32,"mat-icon"),_(33,"attach_money"),p()(),h(34,"div",8),_(35),p(),h(36,"div",9),_(37,"Salary Ranges"),p()()()(),h(38,"div",10)(39,"mat-card",11)(40,"mat-card-content")(41,"div",12)(42,"mat-icon"),_(43,"person_add"),p()(),h(44,"div",8),_(45),p(),h(46,"div",9),_(47,"New Hires This Month"),p()()(),h(48,"mat-card",11)(49,"mat-card-content")(50,"div",12)(51,"mat-icon"),_(52,"payments"),p()(),h(53,"div",8),_(54),me(55,"currency"),p(),h(56,"div",9),_(57,"Average Salary"),p()()()(),h(58,"div",13)(59,"mat-card",14)(60,"mat-card-header")(61,"mat-card-title"),_(62,"Employees by Department"),p()(),h(63,"mat-card-content"),R(64,n_e,2,2,"div",15)(65,r_e,5,0,"div",16),p()(),h(66,"mat-card",14)(67,"mat-card-header")(68,"mat-card-title"),_(69,"Top 10 Positions"),p()(),h(70,"mat-card-content"),R(71,o_e,2,2,"div",15)(72,a_e,5,0,"div",16),p()()(),h(73,"div",13)(74,"mat-card",14)(75,"mat-card-header")(76,"mat-card-title"),_(77,"Gender Distribution"),p()(),h(78,"mat-card-content"),R(79,s_e,2,2,"div",15)(80,l_e,5,0,"div",16),p()(),h(81,"mat-card",14)(82,"mat-card-header")(83,"mat-card-title"),_(84,"Salary Range Distribution"),p()(),h(85,"mat-card-content"),R(86,c_e,2,2,"div",15)(87,d_e,5,0,"div",16),p()()(),h(88,"div",17)(89,"mat-card")(90,"mat-card-header")(91,"mat-card-title"),_(92,"Recent Employees"),p(),h(93,"button",18),S("click",function(){I(e);let r=C();return A(r.navigateToEmployees())}),_(94," View All "),h(95,"mat-icon"),_(96,"arrow_forward"),p()()(),h(97,"mat-card-content"),R(98,m_e,2,1,"mat-list",19)(99,h_e,5,0,"div",16),p()()(),R(100,g_e,13,4,"div",20),p()}if(t&2){let e=C();g(8),H(e.metrics.totalEmployees),g(9),H(e.metrics.totalDepartments),g(9),H(e.metrics.totalPositions),g(9),H(e.metrics.totalSalaryRanges),g(10),H(e.metrics.newHiresThisMonth),g(9),H(Dm(55,17,e.metrics.averageSalary,"USD","symbol","1.0-0")),g(10),y("ngIf",e.departmentChartData),g(),y("ngIf",!e.departmentChartData),g(6),y("ngIf",e.positionChartData),g(),y("ngIf",!e.positionChartData),g(7),y("ngIf",e.genderChartData),g(),y("ngIf",!e.genderChartData),g(6),y("ngIf",e.salaryChartData),g(),y("ngIf",!e.salaryChartData),g(11),y("ngIf",e.metrics.recentEmployees&&e.metrics.recentEmployees.length>0),g(),y("ngIf",!e.metrics.recentEmployees||e.metrics.recentEmployees.length===0),g(),y("appHasRole",at(22,t_e))}}function b_e(t,n){if(t&1){let e=Y();h(0,"div",37)(1,"mat-card")(2,"mat-card-content")(3,"div",23)(4,"mat-icon"),_(5,"error_outline"),p(),h(6,"p"),_(7,"Unable to load dashboard data"),p(),h(8,"button",34),S("click",function(){I(e);let r=C();return A(r.loadDashboardMetrics())}),h(9,"mat-icon"),_(10,"refresh"),p(),_(11," Retry "),p()()()()()}}var lU=(()=>{let n=class n{constructor(){this.dashboardService=u(oU),this.router=u(Re),this.snackBar=u(di),this.loading=!0,this.metrics=null,this.departmentChartData=null,this.departmentChartOptions={responsive:!0,maintainAspectRatio:!1,plugins:{legend:{position:"bottom"},tooltip:{callbacks:{label:i=>{let r=i.label||"",o=i.parsed||0;return`${r}: ${o} employees`}}}}},this.positionChartData=null,this.positionChartOptions={responsive:!0,maintainAspectRatio:!1,indexAxis:"y",plugins:{legend:{display:!1},tooltip:{callbacks:{label:i=>`${i.parsed.x} employees`}}},scales:{x:{beginAtZero:!0,ticks:{precision:0}}}},this.genderChartData=null,this.genderChartOptions={responsive:!0,maintainAspectRatio:!1,plugins:{legend:{position:"bottom"},tooltip:{callbacks:{label:i=>{let r=i.label||"",o=i.parsed||0;return`${r}: ${o} employees`}}}}},this.salaryChartData=null,this.salaryChartOptions={responsive:!0,maintainAspectRatio:!1,plugins:{legend:{display:!1},tooltip:{callbacks:{label:i=>`${i.parsed.y} employees`}}},scales:{y:{beginAtZero:!0,ticks:{precision:0}}}}}ngOnInit(){this.loadDashboardMetrics()}loadDashboardMetrics(){this.loading=!0,this.dashboardService.getDashboardMetrics().subscribe({next:i=>{this.metrics=i,this.prepareCharts(i),this.loading=!1},error:i=>{console.error("Error loading dashboard metrics:",i),this.showMessage("Error loading dashboard data"),this.loading=!1}})}prepareCharts(i){this.prepareDepartmentChart(i.employeesByDepartment),this.preparePositionChart(i.employeesByPosition),this.prepareGenderChart(i.genderDistribution),this.prepareSalaryChart(i.employeesBySalaryRange)}prepareDepartmentChart(i){if(!i||i.length===0){this.departmentChartData=null;return}this.departmentChartData={labels:i.map(r=>r.departmentName),datasets:[{data:i.map(r=>r.employeeCount),backgroundColor:["#FF6384","#36A2EB","#FFCE56","#4BC0C0","#9966FF","#FF9F40","#FF6384","#C9CBCF"]}]}}preparePositionChart(i){if(!i||i.length===0){this.positionChartData=null;return}this.positionChartData={labels:i.map(r=>r.positionTitle),datasets:[{label:"Employees",data:i.map(r=>r.employeeCount),backgroundColor:"#36A2EB"}]}}prepareGenderChart(i){if(!i){this.genderChartData=null;return}this.genderChartData={labels:["Male","Female"],datasets:[{data:[i.male,i.female],backgroundColor:["#36A2EB","#FF6384"]}]}}prepareSalaryChart(i){if(!i||i.length===0){this.salaryChartData=null;return}this.salaryChartData={labels:i.map(r=>r.rangeName),datasets:[{label:"Employees",data:i.map(r=>r.employeeCount),backgroundColor:"#4BC0C0"}]}}navigateToAddEmployee(){this.router.navigate(["/employees/create"])}navigateToAddDepartment(){this.router.navigate(["/departments/create"])}navigateToAddPosition(){this.router.navigate(["/positions/create"])}navigateToEmployees(){this.router.navigate(["/employees"])}navigateToEmployee(i){this.router.navigate(["/employees",i])}showMessage(i){this.snackBar.open(i,"Close",{duration:3e3,horizontalPosition:"end",verticalPosition:"top"})}};n.\u0275fac=function(r){return new(r||n)},n.\u0275cmp=E({type:n,selectors:[["app-dashboard"]],decls:4,vars:3,consts:[["class","loading-spinner",4,"ngIf"],["class","dashboard-container",4,"ngIf"],["class","error-state",4,"ngIf"],[1,"loading-spinner"],[1,"dashboard-container"],[1,"metrics-row"],[1,"metric-card"],[1,"metric-icon"],[1,"metric-value"],[1,"metric-label"],[1,"secondary-metrics-row"],[1,"metric-card","secondary"],[1,"metric-icon","secondary"],[1,"charts-row"],[1,"chart-card"],["class","chart-container",4,"ngIf"],["class","no-data",4,"ngIf"],[1,"activity-row"],["mat-button","","color","primary",3,"click"],[4,"ngIf"],["class","actions-row",4,"appHasRole"],[1,"chart-container"],["baseChart","","type","pie",3,"data","options"],[1,"no-data"],["baseChart","","type","bar",3,"data","options"],["baseChart","","type","doughnut",3,"data","options"],["class","clickable-item",3,"click",4,"ngFor","ngForOf"],[1,"clickable-item",3,"click"],["matListItemIcon",""],["matListItemTitle",""],["matListItemLine",""],["matListItemMeta",""],[1,"actions-row"],[1,"action-buttons"],["mat-raised-button","","color","primary",3,"click"],["mat-raised-button","","color","accent",3,"click",4,"appHasRole"],["mat-raised-button","","color","accent",3,"click"],[1,"error-state"]],template:function(r,o){r&1&&(k(0,"page-header"),R(1,i_e,2,0,"div",0)(2,__e,101,23,"div",1)(3,b_e,12,0,"div",2)),r&2&&(g(),y("ngIf",o.loading),g(),y("ngIf",!o.loading&&o.metrics),g(),y("ngIf",!o.loading&&!o.metrics))},dependencies:[gt,qr,li,$t,zt,Ut,Jt,Xt,ot,mt,ze,kt,Si,ki,ca,Fs,la,f_,Tu,Dl,TI,pi,G5,ni,Un,il,Sa],styles:[".loading-spinner[_ngcontent-%COMP%]{display:flex;justify-content:center;align-items:center;min-height:400px}.dashboard-container[_ngcontent-%COMP%]{padding:16px;max-width:1400px;margin:0 auto}.metrics-row[_ngcontent-%COMP%], .secondary-metrics-row[_ngcontent-%COMP%]{display:grid;grid-template-columns:repeat(auto-fit,minmax(200px,1fr));gap:16px;margin-bottom:24px}@media (max-width: 768px){.metrics-row[_ngcontent-%COMP%], .secondary-metrics-row[_ngcontent-%COMP%]{grid-template-columns:repeat(2,1fr)}}@media (max-width: 480px){.metrics-row[_ngcontent-%COMP%], .secondary-metrics-row[_ngcontent-%COMP%]{grid-template-columns:1fr}}.secondary-metrics-row[_ngcontent-%COMP%]{grid-template-columns:repeat(auto-fit,minmax(250px,1fr))}.metric-card[_ngcontent-%COMP%] mat-card-content[_ngcontent-%COMP%]{padding:24px!important;text-align:center}.metric-card[_ngcontent-%COMP%] .metric-icon[_ngcontent-%COMP%]{display:inline-flex;align-items:center;justify-content:center;width:64px;height:64px;border-radius:50%;background-color:#3f51b51a;margin-bottom:16px}.metric-card[_ngcontent-%COMP%] .metric-icon[_ngcontent-%COMP%] mat-icon[_ngcontent-%COMP%]{font-size:32px;width:32px;height:32px;color:#3f51b5}.metric-card[_ngcontent-%COMP%] .metric-icon.secondary[_ngcontent-%COMP%]{background-color:#ff98001a}.metric-card[_ngcontent-%COMP%] .metric-icon.secondary[_ngcontent-%COMP%] mat-icon[_ngcontent-%COMP%]{color:#ff9800}.metric-card[_ngcontent-%COMP%] .metric-value[_ngcontent-%COMP%]{font-size:32px;font-weight:600;color:#000000de;margin-bottom:8px;line-height:1.2}.metric-card[_ngcontent-%COMP%] .metric-label[_ngcontent-%COMP%]{font-size:14px;color:#0009;text-transform:uppercase;letter-spacing:.5px}.metric-card[_ngcontent-%COMP%]:hover{box-shadow:0 4px 8px #00000026;transition:box-shadow .3s ease}.charts-row[_ngcontent-%COMP%]{display:grid;grid-template-columns:repeat(auto-fit,minmax(400px,1fr));gap:24px;margin-bottom:24px}@media (max-width: 900px){.charts-row[_ngcontent-%COMP%]{grid-template-columns:1fr}}.chart-card[_ngcontent-%COMP%] mat-card-header[_ngcontent-%COMP%]{padding:16px 16px 0;margin-bottom:16px}.chart-card[_ngcontent-%COMP%] mat-card-header[_ngcontent-%COMP%] mat-card-title[_ngcontent-%COMP%]{font-size:18px;font-weight:500;margin:0}.chart-card[_ngcontent-%COMP%] mat-card-content[_ngcontent-%COMP%]{padding:0 16px 16px}.chart-card[_ngcontent-%COMP%] .chart-container[_ngcontent-%COMP%]{position:relative;height:300px;width:100%}.chart-card[_ngcontent-%COMP%] .no-data[_ngcontent-%COMP%]{display:flex;flex-direction:column;align-items:center;justify-content:center;min-height:300px;color:#00000061}.chart-card[_ngcontent-%COMP%] .no-data[_ngcontent-%COMP%] mat-icon[_ngcontent-%COMP%]{font-size:48px;width:48px;height:48px;margin-bottom:12px}.chart-card[_ngcontent-%COMP%] .no-data[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{margin:0;font-size:14px}.activity-row[_ngcontent-%COMP%]{margin-bottom:24px}.activity-row[_ngcontent-%COMP%] mat-card-header[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:space-between;padding:16px;border-bottom:1px solid rgba(0,0,0,.12)}.activity-row[_ngcontent-%COMP%] mat-card-header[_ngcontent-%COMP%] mat-card-title[_ngcontent-%COMP%]{font-size:18px;font-weight:500;margin:0}.activity-row[_ngcontent-%COMP%] mat-card-header[_ngcontent-%COMP%] button[_ngcontent-%COMP%] mat-icon[_ngcontent-%COMP%]{margin-left:4px;font-size:18px;width:18px;height:18px}.activity-row[_ngcontent-%COMP%] mat-card-content[_ngcontent-%COMP%]{padding:0}.activity-row[_ngcontent-%COMP%] mat-list[_ngcontent-%COMP%]{padding:0}.activity-row[_ngcontent-%COMP%] mat-list-item[_ngcontent-%COMP%]{height:auto;padding:12px 16px;cursor:pointer;transition:background-color .2s ease}.activity-row[_ngcontent-%COMP%] mat-list-item[_ngcontent-%COMP%]:hover{background-color:#0000000a}.activity-row[_ngcontent-%COMP%] mat-list-item[_ngcontent-%COMP%]:not(:last-child){border-bottom:1px solid rgba(0,0,0,.08)}.activity-row[_ngcontent-%COMP%] mat-list-item[_ngcontent-%COMP%] mat-icon[_ngcontent-%COMP%]{color:#0000008a}.activity-row[_ngcontent-%COMP%] .clickable-item[_ngcontent-%COMP%]{cursor:pointer}.activity-row[_ngcontent-%COMP%] .no-data[_ngcontent-%COMP%]{display:flex;flex-direction:column;align-items:center;justify-content:center;padding:48px 16px;color:#00000061}.activity-row[_ngcontent-%COMP%] .no-data[_ngcontent-%COMP%] mat-icon[_ngcontent-%COMP%]{font-size:48px;width:48px;height:48px;margin-bottom:12px}.activity-row[_ngcontent-%COMP%] .no-data[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{margin:0;font-size:14px}.actions-row[_ngcontent-%COMP%]{margin-bottom:24px}.actions-row[_ngcontent-%COMP%] mat-card-header[_ngcontent-%COMP%]{padding:16px;border-bottom:1px solid rgba(0,0,0,.12)}.actions-row[_ngcontent-%COMP%] mat-card-header[_ngcontent-%COMP%] mat-card-title[_ngcontent-%COMP%]{font-size:18px;font-weight:500;margin:0}.actions-row[_ngcontent-%COMP%] mat-card-content[_ngcontent-%COMP%]{padding:24px 16px}.actions-row[_ngcontent-%COMP%] .action-buttons[_ngcontent-%COMP%]{display:flex;gap:12px;flex-wrap:wrap}.actions-row[_ngcontent-%COMP%] .action-buttons[_ngcontent-%COMP%] button[_ngcontent-%COMP%] mat-icon[_ngcontent-%COMP%]{margin-right:8px}@media (max-width: 600px){.actions-row[_ngcontent-%COMP%] .action-buttons[_ngcontent-%COMP%]{flex-direction:column}.actions-row[_ngcontent-%COMP%] .action-buttons[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{width:100%}}.error-state[_ngcontent-%COMP%]{padding:16px}.error-state[_ngcontent-%COMP%] mat-card[_ngcontent-%COMP%]{max-width:600px;margin:0 auto}.error-state[_ngcontent-%COMP%] .no-data[_ngcontent-%COMP%]{display:flex;flex-direction:column;align-items:center;justify-content:center;padding:48px 16px;color:#0000008a}.error-state[_ngcontent-%COMP%] .no-data[_ngcontent-%COMP%] mat-icon[_ngcontent-%COMP%]{font-size:64px;width:64px;height:64px;margin-bottom:16px;color:#f44336}.error-state[_ngcontent-%COMP%] .no-data[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{margin:0 0 24px;font-size:16px}.error-state[_ngcontent-%COMP%] .no-data[_ngcontent-%COMP%] button[_ngcontent-%COMP%] mat-icon[_ngcontent-%COMP%]{margin-right:8px;font-size:20px;width:20px;height:20px}@media (max-width: 1200px){.dashboard-container[_ngcontent-%COMP%]{padding:12px}.charts-row[_ngcontent-%COMP%]{gap:16px}}@media (max-width: 768px){.metric-card[_ngcontent-%COMP%] mat-card-content[_ngcontent-%COMP%]{padding:16px!important}.metric-card[_ngcontent-%COMP%] .metric-icon[_ngcontent-%COMP%]{width:56px;height:56px}.metric-card[_ngcontent-%COMP%] .metric-icon[_ngcontent-%COMP%] mat-icon[_ngcontent-%COMP%]{font-size:28px;width:28px;height:28px}.metric-card[_ngcontent-%COMP%] .metric-value[_ngcontent-%COMP%]{font-size:28px}.metric-card[_ngcontent-%COMP%] .metric-label[_ngcontent-%COMP%]{font-size:12px}.chart-card[_ngcontent-%COMP%] .chart-container[_ngcontent-%COMP%]{height:250px}}@media (max-width: 480px){.dashboard-container[_ngcontent-%COMP%]{padding:8px}.metrics-row[_ngcontent-%COMP%], .secondary-metrics-row[_ngcontent-%COMP%], .charts-row[_ngcontent-%COMP%]{gap:12px;margin-bottom:16px}.metric-card[_ngcontent-%COMP%] .metric-value[_ngcontent-%COMP%]{font-size:24px}.chart-card[_ngcontent-%COMP%] .chart-container[_ngcontent-%COMP%]{height:200px}}"]});let t=n;return t})();var cU=(()=>{let n=class n{};n.\u0275fac=function(r){return new(r||n)},n.\u0275cmp=E({type:n,selectors:[["app-error-403"]],decls:1,vars:0,consts:[["code","403","title","Permission denied!","message","You do not have permission to access the requested data."]],template:function(r,o){r&1&&k(0,"error-code",0)},dependencies:[tp],encapsulation:2});let t=n;return t})();var dU=(()=>{let n=class n{};n.\u0275fac=function(r){return new(r||n)},n.\u0275cmp=E({type:n,selectors:[["app-error-404"]],decls:1,vars:0,consts:[["code","404","title","Page not found!","message","This is not the web page you are looking for."]],template:function(r,o){r&1&&k(0,"error-code",0)},dependencies:[tp],encapsulation:2});let t=n;return t})();var uU=(()=>{let n=class n{};n.\u0275fac=function(r){return new(r||n)},n.\u0275cmp=E({type:n,selectors:[["app-error-500"]],decls:1,vars:0,consts:[["code","500","title","Server went wrong!","message","Just kidding, looks like we have an internal issue, please try refreshing."]],template:function(r,o){r&1&&k(0,"error-code",0)},dependencies:[tp],encapsulation:2});let t=n;return t})();var v_e=t=>({value:t});function y_e(t,n){t&1&&(h(0,"mat-error")(1,"span"),_(2),me(3,"translate"),p()()),t&2&&(g(2),H(Oe(3,1,"validation.required")))}function x_e(t,n){t&1&&(h(0,"mat-error")(1,"span"),_(2),me(3,"translate"),p()()),t&2&&(g(2),H(Oe(3,1,"validation.required")))}function C_e(t,n){t&1&&(h(0,"mat-error")(1,"span"),_(2),me(3,"translate"),p()()),t&2&&(g(2),H(Oe(3,1,"validation.required")))}function w_e(t,n){t&1&&(h(0,"mat-error",8),me(1,"translate"),h(2,"span"),_(3),p()()),t&2&&(y("translateParams",Pt(4,v_e,Oe(1,2,"login.password"))),g(3),H("validation.inconsistent"))}var mU=(()=>{let n=class n{constructor(){this.fb=u(eo),this.registerForm=this.fb.nonNullable.group({username:["",[Le.required]],password:["",[Le.required]],confirmPassword:["",[Le.required]]},{validators:[this.matchValidator("password","confirmPassword")]})}matchValidator(i,r){return o=>{let a=o.get(i),s=o.get(r);return s.errors&&!s.errors.mismatch?null:a.value!==s.value?(s.setErrors({mismatch:!0}),{mismatch:!0}):(s.setErrors(null),null)}}};n.\u0275fac=function(r){return new(r||n)},n.\u0275cmp=E({type:n,selectors:[["app-register"]],decls:43,vars:32,consts:[[1,"d-flex","w-full","h-full"],[1,"m-auto",2,"max-width","380px"],[1,"m-b-24"],[1,"form-field-full",3,"formGroup"],["appearance","outline"],["matInput","","formControlName","username","required",""],["matInput","","type","password","formControlName","password","required",""],["matInput","","type","password","formControlName","confirmPassword","required",""],["translate","",3,"translateParams"],["matButton","filled",1,"w-full","m-y-16"],["routerLink","/auth/login"]],template:function(r,o){if(r&1&&(h(0,"div",0)(1,"mat-card",1)(2,"mat-card-header",2)(3,"mat-card-title"),_(4),me(5,"translate"),k(6,"br"),_(7),me(8,"translate"),p()(),h(9,"mat-card-content")(10,"form",3)(11,"mat-form-field",4)(12,"mat-label"),_(13),me(14,"translate"),p(),k(15,"input",5),N(16,y_e,4,3,"mat-error"),p(),h(17,"mat-form-field",4)(18,"mat-label"),_(19),me(20,"translate"),p(),k(21,"input",6),N(22,x_e,4,3,"mat-error"),p(),h(23,"mat-form-field",4)(24,"mat-label"),_(25),me(26,"translate"),p(),k(27,"input",7),N(28,C_e,4,3,"mat-error"),N(29,w_e,4,6,"mat-error",8),p(),h(30,"mat-checkbox"),_(31),me(32,"translate"),p(),h(33,"button",9),_(34),me(35,"translate"),p(),h(36,"div")(37,"span"),_(38),me(39,"translate"),p(),h(40,"a",10),_(41),me(42,"translate"),p()()()()()()),r&2){let a,s,l,c;g(4),ve(" ",Oe(5,14,"register_welcome"),", "),g(3),ve(" ",Oe(8,16,"register_title")," "),g(3),y("formGroup",o.registerForm),g(3),H(Oe(14,18,"username")),g(3),L((a=o.registerForm.get("username"))!=null&&a.invalid?16:-1),g(3),H(Oe(20,20,"password")),g(3),L((s=o.registerForm.get("password"))!=null&&s.invalid?22:-1),g(3),H(Oe(26,22,"confirm_password")),g(3),L((l=o.registerForm.get("confirmPassword"))!=null&&l.hasError("required")?28:-1),g(),L((c=o.registerForm.get("confirmPassword"))!=null&&c.hasError("mismatch")?29:-1),g(2),H(Oe(32,24,"read_and_agree")),g(3),H(Oe(35,26,"register")),g(4),ve("",Oe(39,28,"have_an_account"),"?"),g(3),H(Oe(42,30,"login"))}},dependencies:[Nn,du,Jr,Qi,ei,Xr,Do,zn,Ki,Lr,ze,kt,$t,zt,Ut,Jt,Xt,yx,Va,$i,Oi,sn,xo,rr,hn,wr,j3,Cr],encapsulation:2});let t=n;return t})();var hU=(()=>{let n=class n{constructor(){this.authService=u(Tt),this.router=u(Re)}ngOnInit(){return fn(this,null,function*(){try{(yield this.authService.initAuth())?this.router.navigate(["/dashboard"]):(console.warn("Authentication callback failed, redirecting to dashboard as guest"),this.router.navigate(["/dashboard"]))}catch(i){console.error("Error processing callback:",i),this.router.navigate(["/dashboard"])}})}};n.\u0275fac=function(r){return new(r||n)},n.\u0275cmp=E({type:n,selectors:[["app-callback"]],decls:5,vars:0,consts:[[1,"callback-container"]],template:function(r,o){r&1&&(ft(0,"div",0)(1,"h2"),_(2,"Processing login..."),vt(),ft(3,"p"),_(4,"Please wait while we complete your authentication."),vt()())},styles:[".callback-container[_ngcontent-%COMP%]{display:flex;flex-direction:column;align-items:center;justify-content:center;height:100vh;text-align:center}"]});let t=n;return t})();var D_e=[[["caption"]],[["colgroup"],["col"]],"*"],E_e=["caption","colgroup, col","*"];function M_e(t,n){t&1&&oe(0,2)}function k_e(t,n){t&1&&(h(0,"thead",0),Ge(1,1),p(),h(2,"tbody",0),Ge(3,2)(4,3),p(),h(5,"tfoot",0),Ge(6,4),p())}function S_e(t,n){t&1&&Ge(0,1)(1,2)(2,3)(3,4)}var za=new T("CDK_TABLE");var uw=(()=>{class t{template=u(te);constructor(){}static \u0275fac=function(i){return new(i||t)};static \u0275dir=F({type:t,selectors:[["","cdkCellDef",""]]})}return t})(),mw=(()=>{class t{template=u(te);constructor(){}static \u0275fac=function(i){return new(i||t)};static \u0275dir=F({type:t,selectors:[["","cdkHeaderCellDef",""]]})}return t})(),gU=(()=>{class t{template=u(te);constructor(){}static \u0275fac=function(i){return new(i||t)};static \u0275dir=F({type:t,selectors:[["","cdkFooterCellDef",""]]})}return t})(),sp=(()=>{class t{_table=u(za,{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(i){return new(i||t)};static \u0275dir=F({type:t,selectors:[["","cdkColumnDef",""]],contentQueries:function(i,r,o){if(i&1&&(xe(o,uw,5),xe(o,mw,5),xe(o,gU,5)),i&2){let a;B(a=j())&&(r.cell=a.first),B(a=j())&&(r.headerCell=a.first),B(a=j())&&(r.footerCell=a.first)}},inputs:{name:[0,"cdkColumnDef","name"],sticky:[2,"sticky","sticky",V],stickyEnd:[2,"stickyEnd","stickyEnd",V]},features:[Ce([{provide:"MAT_SORT_HEADER_COLUMN_DEF",useExisting:t}])]})}return t})(),cw=class{constructor(n,e){e.nativeElement.classList.add(...n._columnCssClassName)}},_U=(()=>{class t extends cw{constructor(){super(u(sp),u(q))}static \u0275fac=function(i){return new(i||t)};static \u0275dir=F({type:t,selectors:[["cdk-header-cell"],["th","cdk-header-cell",""]],hostAttrs:["role","columnheader",1,"cdk-header-cell"],features:[le]})}return t})();var bU=(()=>{class t extends cw{constructor(){let e=u(sp),i=u(q);super(e,i);let r=e._table?._getCellRole();r&&i.nativeElement.setAttribute("role",r)}static \u0275fac=function(i){return new(i||t)};static \u0275dir=F({type:t,selectors:[["cdk-cell"],["td","cdk-cell",""]],hostAttrs:[1,"cdk-cell"],features:[le]})}return t})();var HI=(()=>{class t{template=u(te);_differs=u(ds);columns;_columnsDiffer;constructor(){}ngOnChanges(e){if(!this._columnsDiffer){let i=e.columns&&e.columns.currentValue||[];this._columnsDiffer=this._differs.find(i).create(),this._columnsDiffer.diff(i)}}getColumnsDiff(){return this._columnsDiffer.diff(this.columns)}extractCellTemplate(e){return this instanceof v_?e.headerCell.template:this instanceof zI?e.footerCell.template:e.cell.template}static \u0275fac=function(i){return new(i||t)};static \u0275dir=F({type:t,features:[Ae]})}return t})(),v_=(()=>{class t extends HI{_table=u(za,{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(u(te),u(ds))}ngOnChanges(e){super.ngOnChanges(e)}hasStickyChanged(){let e=this._hasStickyChanged;return this.resetStickyChanged(),e}resetStickyChanged(){this._hasStickyChanged=!1}static \u0275fac=function(i){return new(i||t)};static \u0275dir=F({type:t,selectors:[["","cdkHeaderRowDef",""]],inputs:{columns:[0,"cdkHeaderRowDef","columns"],sticky:[2,"cdkHeaderRowDefSticky","sticky",V]},features:[le,Ae]})}return t})(),zI=(()=>{class t extends HI{_table=u(za,{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(u(te),u(ds))}ngOnChanges(e){super.ngOnChanges(e)}hasStickyChanged(){let e=this._hasStickyChanged;return this.resetStickyChanged(),e}resetStickyChanged(){this._hasStickyChanged=!1}static \u0275fac=function(i){return new(i||t)};static \u0275dir=F({type:t,selectors:[["","cdkFooterRowDef",""]],inputs:{columns:[0,"cdkFooterRowDef","columns"],sticky:[2,"cdkFooterRowDefSticky","sticky",V]},features:[le,Ae]})}return t})(),hw=(()=>{class t extends HI{_table=u(za,{optional:!0});when;constructor(){super(u(te),u(ds))}static \u0275fac=function(i){return new(i||t)};static \u0275dir=F({type:t,selectors:[["","cdkRowDef",""]],inputs:{columns:[0,"cdkRowDefColumns","columns"],when:[0,"cdkRowDefWhen","when"]},features:[le]})}return t})(),Au=(()=>{class t{_viewContainer=u(nt);cells;context;static mostRecentCellOutlet=null;constructor(){t.mostRecentCellOutlet=this}ngOnDestroy(){t.mostRecentCellOutlet===this&&(t.mostRecentCellOutlet=null)}static \u0275fac=function(i){return new(i||t)};static \u0275dir=F({type:t,selectors:[["","cdkCellOutlet",""]]})}return t})(),UI=(()=>{class t{static \u0275fac=function(i){return new(i||t)};static \u0275cmp=E({type:t,selectors:[["cdk-header-row"],["tr","cdk-header-row",""]],hostAttrs:["role","row",1,"cdk-header-row"],decls:1,vars:0,consts:[["cdkCellOutlet",""]],template:function(i,r){i&1&&Ge(0,0)},dependencies:[Au],encapsulation:2})}return t})();var $I=(()=>{class t{static \u0275fac=function(i){return new(i||t)};static \u0275cmp=E({type:t,selectors:[["cdk-row"],["tr","cdk-row",""]],hostAttrs:["role","row",1,"cdk-row"],decls:1,vars:0,consts:[["cdkCellOutlet",""]],template:function(i,r){i&1&&Ge(0,0)},dependencies:[Au],encapsulation:2})}return t})(),pw=(()=>{class t{templateRef=u(te);_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(i){return new(i||t)};static \u0275dir=F({type:t,selectors:[["ng-template","cdkNoDataRow",""]]})}return t})(),pU=["top","bottom","left","right"],jI=class{_isNativeHtmlTable;_stickCellCss;_isBrowser;_needsPositionStickyOnElement;direction;_positionListener;_tableInjector;_elemSizeCache=new WeakMap;_resizeObserver=globalThis?.ResizeObserver?new globalThis.ResizeObserver(n=>this._updateCachedSizes(n)):null;_updatedStickyColumnsParamsToReplay=[];_stickyColumnsReplayTimeout=null;_cachedCellWidths=[];_borderCellCss;_destroyed=!1;constructor(n,e,i=!0,r=!0,o,a,s){this._isNativeHtmlTable=n,this._stickCellCss=e,this._isBrowser=i,this._needsPositionStickyOnElement=r,this.direction=o,this._positionListener=a,this._tableInjector=s,this._borderCellCss={top:`${e}-border-elem-top`,bottom:`${e}-border-elem-bottom`,left:`${e}-border-elem-left`,right:`${e}-border-elem-right`}}clearStickyPositioning(n,e){(e.includes("left")||e.includes("right"))&&this._removeFromStickyColumnReplayQueue(n);let i=[];for(let r of n)r.nodeType===r.ELEMENT_NODE&&i.push(r,...Array.from(r.children));pt({write:()=>{for(let r of i)this._removeStickyStyle(r,e)}},{injector:this._tableInjector})}updateStickyColumns(n,e,i,r=!0,o=!0){if(!n.length||!this._isBrowser||!(e.some(x=>x)||i.some(x=>x))){this._positionListener?.stickyColumnsUpdated({sizes:[]}),this._positionListener?.stickyEndColumnsUpdated({sizes:[]});return}let a=n[0],s=a.children.length,l=this.direction==="rtl",c=l?"right":"left",d=l?"left":"right",m=e.lastIndexOf(!0),f=i.indexOf(!0),b,v,w;o&&this._updateStickyColumnReplayQueue({rows:[...n],stickyStartStates:[...e],stickyEndStates:[...i]}),pt({earlyRead:()=>{b=this._getCellWidths(a,r),v=this._getStickyStartColumnPositions(b,e),w=this._getStickyEndColumnPositions(b,i)},write:()=>{for(let x of n)for(let D=0;D!!x)&&(this._positionListener.stickyColumnsUpdated({sizes:m===-1?[]:b.slice(0,m+1).map((x,D)=>e[D]?x:null)}),this._positionListener.stickyEndColumnsUpdated({sizes:f===-1?[]:b.slice(f).map((x,D)=>i[D+f]?x:null).reverse()}))}},{injector:this._tableInjector})}stickRows(n,e,i){if(!this._isBrowser)return;let r=i==="bottom"?n.slice().reverse():n,o=i==="bottom"?e.slice().reverse():e,a=[],s=[],l=[];pt({earlyRead:()=>{for(let c=0,d=0;c{let c=o.lastIndexOf(!0);for(let d=0;d{let i=n.querySelector("tfoot");i&&(e.some(r=>!r)?this._removeStickyStyle(i,["bottom"]):this._addStickyStyle(i,"bottom",0,!1))}},{injector:this._tableInjector})}destroy(){this._stickyColumnsReplayTimeout&&clearTimeout(this._stickyColumnsReplayTimeout),this._resizeObserver?.disconnect(),this._destroyed=!0}_removeStickyStyle(n,e){if(!n.classList.contains(this._stickCellCss))return;for(let r of e)n.style[r]="",n.classList.remove(this._borderCellCss[r]);pU.some(r=>e.indexOf(r)===-1&&n.style[r])?n.style.zIndex=this._getCalculatedZIndex(n):(n.style.zIndex="",this._needsPositionStickyOnElement&&(n.style.position=""),n.classList.remove(this._stickCellCss))}_addStickyStyle(n,e,i,r){n.classList.add(this._stickCellCss),r&&n.classList.add(this._borderCellCss[e]),n.style[e]=`${i}px`,n.style.zIndex=this._getCalculatedZIndex(n),this._needsPositionStickyOnElement&&(n.style.cssText+="position: -webkit-sticky; position: sticky; ")}_getCalculatedZIndex(n){let e={top:100,bottom:10,left:1,right:1},i=0;for(let r of pU)n.style[r]&&(i+=e[r]);return i?`${i}`:""}_getCellWidths(n,e=!0){if(!e&&this._cachedCellWidths.length)return this._cachedCellWidths;let i=[],r=n.children;for(let o=0;o0;o--)e[o]&&(i[o]=r,r+=n[o]);return i}_retrieveElementSize(n){let e=this._elemSizeCache.get(n);if(e)return e;let i=n.getBoundingClientRect(),r={width:i.width,height:i.height};return this._resizeObserver&&(this._elemSizeCache.set(n,r),this._resizeObserver.observe(n,{box:"border-box"})),r}_updateStickyColumnReplayQueue(n){this._removeFromStickyColumnReplayQueue(n.rows),this._stickyColumnsReplayTimeout||this._updatedStickyColumnsParamsToReplay.push(n)}_removeFromStickyColumnReplayQueue(n){let e=new Set(n);for(let i of this._updatedStickyColumnsParamsToReplay)i.rows=i.rows.filter(r=>!e.has(r));this._updatedStickyColumnsParamsToReplay=this._updatedStickyColumnsParamsToReplay.filter(i=>!!i.rows.length)}_updateCachedSizes(n){let e=!1;for(let i of n){let r=i.borderBoxSize?.length?{width:i.borderBoxSize[0].inlineSize,height:i.borderBoxSize[0].blockSize}:{width:i.contentRect.width,height:i.contentRect.height};r.width!==this._elemSizeCache.get(i.target)?.width&&T_e(i.target)&&(e=!0),this._elemSizeCache.set(i.target,r)}e&&this._updatedStickyColumnsParamsToReplay.length&&(this._stickyColumnsReplayTimeout&&clearTimeout(this._stickyColumnsReplayTimeout),this._stickyColumnsReplayTimeout=setTimeout(()=>{if(!this._destroyed){for(let i of this._updatedStickyColumnsParamsToReplay)this.updateStickyColumns(i.rows,i.stickyStartStates,i.stickyEndStates,!0,!1);this._updatedStickyColumnsParamsToReplay=[],this._stickyColumnsReplayTimeout=null}},0))}};function T_e(t){return["cdk-cell","cdk-header-cell","cdk-footer-cell"].some(n=>t.classList.contains(n))}var dw=new T("CDK_SPL");var WI=(()=>{class t{viewContainer=u(nt);elementRef=u(q);constructor(){let e=u(za);e._rowOutlet=this,e._outletAssigned()}static \u0275fac=function(i){return new(i||t)};static \u0275dir=F({type:t,selectors:[["","rowOutlet",""]]})}return t})(),GI=(()=>{class t{viewContainer=u(nt);elementRef=u(q);constructor(){let e=u(za);e._headerRowOutlet=this,e._outletAssigned()}static \u0275fac=function(i){return new(i||t)};static \u0275dir=F({type:t,selectors:[["","headerRowOutlet",""]]})}return t})(),qI=(()=>{class t{viewContainer=u(nt);elementRef=u(q);constructor(){let e=u(za);e._footerRowOutlet=this,e._outletAssigned()}static \u0275fac=function(i){return new(i||t)};static \u0275dir=F({type:t,selectors:[["","footerRowOutlet",""]]})}return t})(),YI=(()=>{class t{viewContainer=u(nt);elementRef=u(q);constructor(){let e=u(za);e._noDataRowOutlet=this,e._outletAssigned()}static \u0275fac=function(i){return new(i||t)};static \u0275dir=F({type:t,selectors:[["","noDataRowOutlet",""]]})}return t})(),QI=(()=>{class t{_differs=u(ds);_changeDetectorRef=u(ye);_elementRef=u(q);_dir=u(Vt,{optional:!0});_platform=u(qe);_viewRepeater=u(fh);_viewportRuler=u(Xn);_stickyPositioningListener=u(dw,{optional:!0,skipSelf:!0});_document=u(ge);_data;_onDestroy=new z;_renderRows;_renderChangeSubscription;_columnDefsByName=new Map;_rowDefs;_headerRowDefs;_footerRowDefs;_dataDiffer;_defaultRowDef;_customColumnDefs=new Set;_customRowDefs=new Set;_customHeaderRowDefs=new Set;_customFooterRowDefs=new Set;_customNoDataRow;_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;_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)}_dataSource;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._fixedLayout}set fixedLayout(e){this._fixedLayout=e,this._forceRecalculateCellWidths=!0,this._stickyColumnStylesNeedReset=!0}_fixedLayout=!1;contentChanged=new U;viewChange=new tt({start:0,end:Number.MAX_VALUE});_rowOutlet;_headerRowOutlet;_footerRowOutlet;_noDataRowOutlet;_contentColumnDefs;_contentRowDefs;_contentHeaderRowDefs;_contentFooterRowDefs;_noDataRow;_injector=u(de);constructor(){u(new Ii("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((i,r)=>this.trackBy?this.trackBy(r.dataIndex,r.data):r)}ngOnInit(){this._setupStickyStyler(),this._viewportRuler.change().pipe(Te(this._onDestroy)).subscribe(()=>{this._forceRecalculateCellWidths=!0})}ngAfterContentInit(){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._onDestroy.next(),this._onDestroy.complete(),ig(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 i=this._rowOutlet.viewContainer;this._viewRepeater.applyChanges(e,i,(r,o,a)=>this._getEmbeddedViewArgs(r.item,a),r=>r.item.data,r=>{r.operation===cc.INSERTED&&r.context&&this._renderCellTemplateForItem(r.record.item.rowDef,r.context)}),this._updateRowIndexContext(),e.forEachIdentityChange(r=>{let o=i.get(r.currentIndex);o.context.$implicit=r.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 r=fU(this._headerRowOutlet,"thead");r&&(r.style.display=e.length?"":"none")}let i=this._headerRowDefs.map(r=>r.sticky);this._stickyStyler.clearStickyPositioning(e,["top"]),this._stickyStyler.stickRows(e,i,"top"),this._headerRowDefs.forEach(r=>r.resetStickyChanged())}updateStickyFooterRowStyles(){let e=this._getRenderedRows(this._footerRowOutlet);if(this._isNativeHtmlTable){let r=fU(this._footerRowOutlet,"tfoot");r&&(r.style.display=e.length?"":"none")}let i=this._footerRowDefs.map(r=>r.sticky);this._stickyStyler.clearStickyPositioning(e,["bottom"]),this._stickyStyler.stickRows(e,i,"bottom"),this._stickyStyler.updateStickyFooterContainer(this._elementRef.nativeElement,i),this._footerRowDefs.forEach(r=>r.resetStickyChanged())}updateStickyColumnStyles(){let e=this._getRenderedRows(this._headerRowOutlet),i=this._getRenderedRows(this._rowOutlet),r=this._getRenderedRows(this._footerRowOutlet);(this._isNativeHtmlTable&&!this._fixedLayout||this._stickyColumnStylesNeedReset)&&(this._stickyStyler.clearStickyPositioning([...e,...i,...r],["left","right"]),this._stickyColumnStylesNeedReset=!1),e.forEach((o,a)=>{this._addStickyColumnStyles([o],this._headerRowDefs[a])}),this._rowDefs.forEach(o=>{let a=[];for(let s=0;s{this._addStickyColumnStyles([o],this._footerRowDefs[a])}),Array.from(this._columnDefsByName.values()).forEach(o=>o.resetStickyChanged())}_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 i=this._renderUpdatedColumns()||this._headerRowDefChanged||this._footerRowDefChanged;this._stickyColumnStylesNeedReset=this._stickyColumnStylesNeedReset||i,this._forceRecalculateCellWidths=i,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(){let e=[],i=this._cachedRenderRowsMap;if(this._cachedRenderRowsMap=new Map,!this._data)return e;for(let r=0;r{let s=r&&r.has(a)?r.get(a):[];if(s.length){let l=s.shift();return l.dataIndex=i,l}else return{data:e,rowDef:a,dataIndex:i}})}_cacheColumnDefs(){this._columnDefsByName.clear(),lw(this._getOwnDefs(this._contentColumnDefs),this._customColumnDefs).forEach(i=>{this._columnDefsByName.has(i.name),this._columnDefsByName.set(i.name,i)})}_cacheRowDefs(){this._headerRowDefs=lw(this._getOwnDefs(this._contentHeaderRowDefs),this._customHeaderRowDefs),this._footerRowDefs=lw(this._getOwnDefs(this._contentFooterRowDefs),this._customFooterRowDefs),this._rowDefs=lw(this._getOwnDefs(this._contentRowDefs),this._customRowDefs);let e=this._rowDefs.filter(i=>!i.when);!this.multiTemplateDataRows&&e.length>1,this._defaultRowDef=e[0]}_renderUpdatedColumns(){let e=(a,s)=>{let l=!!s.getColumnsDiff();return a||l},i=this._rowDefs.reduce(e,!1);i&&this._forceRenderDataRows();let r=this._headerRowDefs.reduce(e,!1);r&&this._forceRenderHeaderRows();let o=this._footerRowDefs.reduce(e,!1);return o&&this._forceRenderFooterRows(),i||r||o}_switchDataSource(e){this._data=[],ig(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;ig(this.dataSource)?e=this.dataSource.connect(this):ji(this.dataSource)?e=this.dataSource:Array.isArray(this.dataSource)&&(e=Q(this.dataSource)),this._renderChangeSubscription=e.pipe(Te(this._onDestroy)).subscribe(i=>{this._data=i||[],this.renderRows()})}_forceRenderHeaderRows(){this._headerRowOutlet.viewContainer.length>0&&this._headerRowOutlet.viewContainer.clear(),this._headerRowDefs.forEach((e,i)=>this._renderRow(this._headerRowOutlet,e,i)),this.updateStickyHeaderRowStyles()}_forceRenderFooterRows(){this._footerRowOutlet.viewContainer.length>0&&this._footerRowOutlet.viewContainer.clear(),this._footerRowDefs.forEach((e,i)=>this._renderRow(this._footerRowOutlet,e,i)),this.updateStickyFooterRowStyles()}_addStickyColumnStyles(e,i){let r=Array.from(i?.columns||[]).map(s=>{let l=this._columnDefsByName.get(s);return l}),o=r.map(s=>s.sticky),a=r.map(s=>s.stickyEnd);this._stickyStyler.updateStickyColumns(e,o,a,!this._fixedLayout||this._forceRecalculateCellWidths)}_getRenderedRows(e){let i=[];for(let r=0;r!o.when||o.when(i,e));else{let o=this._rowDefs.find(a=>a.when&&a.when(i,e))||this._defaultRowDef;o&&r.push(o)}return r.length,r}_getEmbeddedViewArgs(e,i){let r=e.rowDef,o={$implicit:e.data};return{templateRef:r.template,context:o,index:i}}_renderRow(e,i,r,o={}){let a=e.viewContainer.createEmbeddedView(i.template,o,r);return this._renderCellTemplateForItem(i,o),a}_renderCellTemplateForItem(e,i){for(let r of this._getCellTemplates(e))Au.mostRecentCellOutlet&&Au.mostRecentCellOutlet._viewContainer.createEmbeddedView(r,i);this._changeDetectorRef.markForCheck()}_updateRowIndexContext(){let e=this._rowOutlet.viewContainer;for(let i=0,r=e.length;i{let r=this._columnDefsByName.get(i);return e.extractCellTemplate(r)})}_forceRenderDataRows(){this._dataDiffer.diff([]),this._rowOutlet.viewContainer.clear(),this.renderRows()}_checkStickyStates(){let e=(i,r)=>i||r.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";this._stickyStyler=new jI(this._isNativeHtmlTable,this.stickyCssClass,this._platform.isBrowser,this.needsPositionStickyOnElement,e,this._stickyPositioningListener,this._injector),(this._dir?this._dir.change:Q()).pipe(Te(this._onDestroy)).subscribe(i=>{this._stickyStyler.direction=i,this.updateStickyColumnStyles()})}_getOwnDefs(e){return e.filter(i=>!i._table||i._table===this)}_updateNoDataRow(){let e=this._customNoDataRow||this._noDataRow;if(!e)return;let i=this._rowOutlet.viewContainer.length===0;if(i===this._isShowingNoDataRow)return;let r=this._noDataRowOutlet.viewContainer;if(i){let o=r.createEmbeddedView(e.templateRef),a=o.rootNodes[0];if(o.rootNodes.length===1&&a?.nodeType===this._document.ELEMENT_NODE){a.setAttribute("role","row"),a.classList.add(...e._contentClassNames);let s=a.querySelectorAll(e._cellSelector);for(let l=0;l{class t{static \u0275fac=function(i){return new(i||t)};static \u0275mod=ee({type:t});static \u0275inj=J({imports:[ng]})}return t})();var I_e=[[["caption"]],[["colgroup"],["col"]],"*"],A_e=["caption","colgroup, col","*"];function O_e(t,n){t&1&&oe(0,2)}function R_e(t,n){t&1&&(h(0,"thead",0),Ge(1,1),p(),h(2,"tbody",2),Ge(3,3)(4,4),p(),h(5,"tfoot",0),Ge(6,5),p())}function P_e(t,n){t&1&&Ge(0,1)(1,3)(2,4)(3,5)}var Hc=(()=>{class t extends QI{stickyCssClass="mat-mdc-table-sticky";needsPositionStickyOnElement=!1;static \u0275fac=(()=>{let e;return function(r){return(e||(e=fe(t)))(r||t)}})();static \u0275cmp=E({type:t,selectors:[["mat-table"],["table","mat-table",""]],hostAttrs:[1,"mat-mdc-table","mdc-data-table__table"],hostVars:2,hostBindings:function(i,r){i&2&&G("mdc-table-fixed-layout",r.fixedLayout)},exportAs:["matTable"],features:[Ce([{provide:QI,useExisting:t},{provide:za,useExisting:t},{provide:fh,useClass:su},{provide:dw,useValue:null}]),le],ngContentSelectors:A_e,decls:5,vars:2,consts:[["role","rowgroup"],["headerRowOutlet",""],["role","rowgroup",1,"mdc-data-table__content"],["rowOutlet",""],["noDataRowOutlet",""],["footerRowOutlet",""]],template:function(i,r){i&1&&(Me(I_e),oe(0),oe(1,1),N(2,O_e,1,0),N(3,R_e,7,0)(4,P_e,4,0)),i&2&&(g(2),L(r._isServer?2:-1),g(),L(r._isNativeHtmlTable?3:4))},dependencies:[GI,WI,YI,qI],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))}.mdc-data-table__cell{box-sizing:border-box;overflow:hidden;text-align:left;text-overflow:ellipsis}[dir=rtl] .mdc-data-table__cell{text-align:right}.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:left}[dir=rtl] .mat-mdc-header-cell{text-align:right}.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 t})(),zc=(()=>{class t extends uw{static \u0275fac=(()=>{let e;return function(r){return(e||(e=fe(t)))(r||t)}})();static \u0275dir=F({type:t,selectors:[["","matCellDef",""]],features:[Ce([{provide:uw,useExisting:t}]),le]})}return t})(),Uc=(()=>{class t extends mw{static \u0275fac=(()=>{let e;return function(r){return(e||(e=fe(t)))(r||t)}})();static \u0275dir=F({type:t,selectors:[["","matHeaderCellDef",""]],features:[Ce([{provide:mw,useExisting:t}]),le]})}return t})();var $c=(()=>{class t extends sp{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(r){return(e||(e=fe(t)))(r||t)}})();static \u0275dir=F({type:t,selectors:[["","matColumnDef",""]],inputs:{name:[0,"matColumnDef","name"]},features:[Ce([{provide:sp,useExisting:t},{provide:"MAT_SORT_HEADER_COLUMN_DEF",useExisting:t}]),le]})}return t})(),Wc=(()=>{class t extends _U{static \u0275fac=(()=>{let e;return function(r){return(e||(e=fe(t)))(r||t)}})();static \u0275dir=F({type:t,selectors:[["mat-header-cell"],["th","mat-header-cell",""]],hostAttrs:["role","columnheader",1,"mat-mdc-header-cell","mdc-data-table__header-cell"],features:[le]})}return t})();var Gc=(()=>{class t extends bU{static \u0275fac=(()=>{let e;return function(r){return(e||(e=fe(t)))(r||t)}})();static \u0275dir=F({type:t,selectors:[["mat-cell"],["td","mat-cell",""]],hostAttrs:[1,"mat-mdc-cell","mdc-data-table__cell"],features:[le]})}return t})();var qc=(()=>{class t extends v_{static \u0275fac=(()=>{let e;return function(r){return(e||(e=fe(t)))(r||t)}})();static \u0275dir=F({type:t,selectors:[["","matHeaderRowDef",""]],inputs:{columns:[0,"matHeaderRowDef","columns"],sticky:[2,"matHeaderRowDefSticky","sticky",V]},features:[Ce([{provide:v_,useExisting:t}]),le]})}return t})();var Yc=(()=>{class t extends hw{static \u0275fac=(()=>{let e;return function(r){return(e||(e=fe(t)))(r||t)}})();static \u0275dir=F({type:t,selectors:[["","matRowDef",""]],inputs:{columns:[0,"matRowDefColumns","columns"],when:[0,"matRowDefWhen","when"]},features:[Ce([{provide:hw,useExisting:t}]),le]})}return t})(),Qc=(()=>{class t extends UI{static \u0275fac=(()=>{let e;return function(r){return(e||(e=fe(t)))(r||t)}})();static \u0275cmp=E({type:t,selectors:[["mat-header-row"],["tr","mat-header-row",""]],hostAttrs:["role","row",1,"mat-mdc-header-row","mdc-data-table__header-row"],exportAs:["matHeaderRow"],features:[Ce([{provide:UI,useExisting:t}]),le],decls:1,vars:0,consts:[["cdkCellOutlet",""]],template:function(i,r){i&1&&Ge(0,0)},dependencies:[Au],encapsulation:2})}return t})();var Kc=(()=>{class t extends $I{static \u0275fac=(()=>{let e;return function(r){return(e||(e=fe(t)))(r||t)}})();static \u0275cmp=E({type:t,selectors:[["mat-row"],["tr","mat-row",""]],hostAttrs:["role","row",1,"mat-mdc-row","mdc-data-table__row"],exportAs:["matRow"],features:[Ce([{provide:$I,useExisting:t}]),le],decls:1,vars:0,consts:[["cdkCellOutlet",""]],template:function(i,r){i&1&&Ge(0,0)},dependencies:[Au],encapsulation:2})}return t})(),gw=(()=>{class t extends pw{_cellSelector="td, mat-cell, [mat-cell], .mat-cell";constructor(){super(),this._contentClassNames.push("mat-mdc-no-data-row","mat-mdc-row","mdc-data-table__row"),this._cellClassNames.push("mat-mdc-cell","mdc-data-table__cell","mat-no-data-cell")}static \u0275fac=function(i){return new(i||t)};static \u0275dir=F({type:t,selectors:[["ng-template","matNoDataRow",""]],features:[Ce([{provide:pw,useExisting:t}]),le]})}return t})();var Zc=(()=>{class t{static \u0275fac=function(i){return new(i||t)};static \u0275mod=ee({type:t});static \u0275inj=J({imports:[we,vU,we]})}return t})(),F_e=9007199254740991,fw=class extends tg{_data;_renderData=new tt([]);_filter=new tt("");_internalPageChanges=new z;_renderChangesSubscription=null;filteredData;get data(){return this._data.value}set data(n){n=Array.isArray(n)?n:[],this._data.next(n),this._renderChangesSubscription||this._filterData(n)}get filter(){return this._filter.value}set filter(n){this._filter.next(n),this._renderChangesSubscription||this._filterData(this.data)}get sort(){return this._sort}set sort(n){this._sort=n,this._updateChangeSubscription()}_sort;get paginator(){return this._paginator}set paginator(n){this._paginator=n,this._updateChangeSubscription()}_paginator;sortingDataAccessor=(n,e)=>{let i=n[e];if(N0(i)){let r=Number(i);return r{let i=e.active,r=e.direction;return!i||r==""?n:n.sort((o,a)=>{let s=this.sortingDataAccessor(o,i),l=this.sortingDataAccessor(a,i),c=typeof s,d=typeof l;c!==d&&(c==="number"&&(s+=""),d==="number"&&(l+=""));let m=0;return s!=null&&l!=null?s>l?m=1:s{let i=e.trim().toLowerCase();return Object.values(n).some(r=>`${r}`.toLowerCase().includes(i))};constructor(n=[]){super(),this._data=new tt(n),this._updateChangeSubscription()}_updateChangeSubscription(){let n=this._sort?Je(this._sort.sortChange,this._sort.initialized):Q(null),e=this._paginator?Je(this._paginator.page,this._internalPageChanges,this._paginator.initialized):Q(null),i=this._data,r=co([i,this._filter]).pipe(se(([s])=>this._filterData(s))),o=co([r,n]).pipe(se(([s])=>this._orderData(s))),a=co([o,e]).pipe(se(([s])=>this._pageData(s)));this._renderChangesSubscription?.unsubscribe(),this._renderChangesSubscription=a.subscribe(s=>this._renderData.next(s))}_filterData(n){return this.filteredData=this.filter==null||this.filter===""?n:n.filter(e=>this.filterPredicate(e,this.filter)),this.paginator&&this._updatePaginator(this.filteredData.length),this.filteredData}_orderData(n){return this.sort?this.sortData(n.slice(),this.sort):n}_pageData(n){if(!this.paginator)return n;let e=this.paginator.pageIndex*this.paginator.pageSize;return n.slice(e,e+this.paginator.pageSize)}_updatePaginator(n){Promise.resolve().then(()=>{let e=this.paginator;if(e&&(e.length=n,e.pageIndex>0)){let i=Math.ceil(e.length/e.pageSize)-1||0,r=Math.min(e.pageIndex,i);r!==e.pageIndex&&(e.pageIndex=r,this._internalPageChanges.next())}})}connect(){return this._renderChangesSubscription||this._updateChangeSubscription(),this._renderData}disconnect(){this._renderChangesSubscription?.unsubscribe(),this._renderChangesSubscription=null}};var N_e=["panel"],L_e=["*"];function V_e(t,n){if(t&1&&(ft(0,"div",1,0),oe(2),vt()),t&2){let e=n.id,i=C();it(i._classList),G("mat-mdc-autocomplete-visible",i.showPanel)("mat-mdc-autocomplete-hidden",!i.showPanel)("mat-autocomplete-panel-animations-enabled",!i._animationsDisabled)("mat-primary",i._color==="primary")("mat-accent",i._color==="accent")("mat-warn",i._color==="warn"),si("id",i.id),X("aria-label",i.ariaLabel||null)("aria-labelledby",i._getPanelAriaLabelledby(e))}}var KI=class{source;option;constructor(n,e){this.source=n,this.option=e}},yU=new T("mat-autocomplete-default-options",{providedIn:"root",factory:B_e});function B_e(){return{autoActiveFirstOption:!1,autoSelectActiveOption:!1,hideSingleSelectionIndicator:!1,requireSelection:!1,hasBackdrop:!1}}var bw=(()=>{class t{_changeDetectorRef=u(ye);_elementRef=u(q);_defaults=u(yU);_animationsDisabled=Ye();_activeOptionChanges=ke.EMPTY;_keyManager;showPanel=!1;get isOpen(){return this._isOpen&&this.showPanel}_isOpen=!1;_latestOpeningTrigger;_setColor(e){this._color=e,this._changeDetectorRef.markForCheck()}_color;template;panel;options;optionGroups;ariaLabel;ariaLabelledby;displayWith=null;autoActiveFirstOption;autoSelectActiveOption;requireSelection;panelWidth;disableRipple;optionSelected=new U;opened=new U;closed=new U;optionActivated=new U;set classList(e){this._classList=e,this._elementRef.nativeElement.className=""}_classList;get hideSingleSelectionIndicator(){return this._hideSingleSelectionIndicator}set hideSingleSelectionIndicator(e){this._hideSingleSelectionIndicator=e,this._syncParentProperties()}_hideSingleSelectionIndicator;_syncParentProperties(){if(this.options)for(let e of this.options)e._changeDetectorRef.markForCheck()}id=u(Ze).getId("mat-autocomplete-");inertGroups;constructor(){let e=u(qe);this.inertGroups=e?.SAFARI||!1,this.autoActiveFirstOption=!!this._defaults.autoActiveFirstOption,this.autoSelectActiveOption=!!this._defaults.autoSelectActiveOption,this.requireSelection=!!this._defaults.requireSelection,this._hideSingleSelectionIndicator=this._defaults.hideSingleSelectionIndicator??!1}ngAfterContentInit(){this._keyManager=new qd(this.options).withWrap().skipPredicate(this._skipPredicate),this._activeOptionChanges=this._keyManager.change.subscribe(e=>{this.isOpen&&this.optionActivated.emit({source:this,option:this.options.toArray()[e]||null})}),this._setVisibility()}ngOnDestroy(){this._keyManager?.destroy(),this._activeOptionChanges.unsubscribe()}_setScrollTop(e){this.panel&&(this.panel.nativeElement.scrollTop=e)}_getScrollTop(){return this.panel?this.panel.nativeElement.scrollTop:0}_setVisibility(){this.showPanel=!!this.options?.length,this._changeDetectorRef.markForCheck()}_emitSelectEvent(e){let i=new KI(this,e);this.optionSelected.emit(i)}_getPanelAriaLabelledby(e){if(this.ariaLabel)return null;let i=e?e+" ":"";return this.ariaLabelledby?i+this.ariaLabelledby:e}_skipPredicate(){return!1}static \u0275fac=function(i){return new(i||t)};static \u0275cmp=E({type:t,selectors:[["mat-autocomplete"]],contentQueries:function(i,r,o){if(i&1&&(xe(o,xn,5),xe(o,Zd,5)),i&2){let a;B(a=j())&&(r.options=a),B(a=j())&&(r.optionGroups=a)}},viewQuery:function(i,r){if(i&1&&(ie(te,7),ie(N_e,5)),i&2){let o;B(o=j())&&(r.template=o.first),B(o=j())&&(r.panel=o.first)}},hostAttrs:[1,"mat-mdc-autocomplete"],inputs:{ariaLabel:[0,"aria-label","ariaLabel"],ariaLabelledby:[0,"aria-labelledby","ariaLabelledby"],displayWith:"displayWith",autoActiveFirstOption:[2,"autoActiveFirstOption","autoActiveFirstOption",V],autoSelectActiveOption:[2,"autoSelectActiveOption","autoSelectActiveOption",V],requireSelection:[2,"requireSelection","requireSelection",V],panelWidth:"panelWidth",disableRipple:[2,"disableRipple","disableRipple",V],classList:[0,"class","classList"],hideSingleSelectionIndicator:[2,"hideSingleSelectionIndicator","hideSingleSelectionIndicator",V]},outputs:{optionSelected:"optionSelected",opened:"opened",closed:"closed",optionActivated:"optionActivated"},exportAs:["matAutocomplete"],features:[Ce([{provide:Kd,useExisting:t}])],ngContentSelectors:L_e,decls:1,vars:0,consts:[["panel",""],["role","listbox",1,"mat-mdc-autocomplete-panel","mdc-menu-surface","mdc-menu-surface--open",3,"id"]],template:function(i,r){i&1&&(Me(),xa(0,V_e,3,17,"ng-template"))},styles:[`div.mat-mdc-autocomplete-panel{width:100%;max-height:256px;visibility:hidden;transform-origin:center top;overflow:auto;padding:8px 0;box-sizing:border-box;position:relative;border-radius:var(--mat-autocomplete-container-shape, var(--mat-sys-corner-extra-small));box-shadow:var(--mat-autocomplete-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));background-color:var(--mat-autocomplete-background-color, var(--mat-sys-surface-container))}@media(forced-colors: active){div.mat-mdc-autocomplete-panel{outline:solid 1px}}.cdk-overlay-pane:not(.mat-mdc-autocomplete-panel-above) div.mat-mdc-autocomplete-panel{border-top-left-radius:0;border-top-right-radius:0}.mat-mdc-autocomplete-panel-above div.mat-mdc-autocomplete-panel{border-bottom-left-radius:0;border-bottom-right-radius:0;transform-origin:center bottom}div.mat-mdc-autocomplete-panel.mat-mdc-autocomplete-visible{visibility:visible}div.mat-mdc-autocomplete-panel.mat-mdc-autocomplete-hidden{visibility:hidden;pointer-events:none}@keyframes _mat-autocomplete-enter{from{opacity:0;transform:scaleY(0.8)}to{opacity:1;transform:none}}.mat-autocomplete-panel-animations-enabled{animation:_mat-autocomplete-enter 120ms cubic-bezier(0, 0, 0.2, 1)}mat-autocomplete{display:none} -`],encapsulation:2,changeDetection:0})}return t})();var j_e={provide:tr,useExisting:Kt(()=>y_),multi:!0};var xU=new T("mat-autocomplete-scroll-strategy",{providedIn:"root",factory:()=>{let t=u(de);return()=>wn(t)}});function H_e(t){let n=u(de);return()=>wn(n)}var z_e={provide:xU,deps:[],useFactory:H_e},y_=(()=>{class t{_environmentInjector=u(Wt);_element=u(q);_injector=u(de);_viewContainerRef=u(nt);_zone=u(ae);_changeDetectorRef=u(ye);_dir=u(Vt,{optional:!0});_formField=u(Xo,{optional:!0,host:!0});_viewportRuler=u(Xn);_scrollStrategy=u(xU);_renderer=u(je);_animationsDisabled=Ye();_defaults=u(yU,{optional:!0});_overlayRef;_portal;_componentDestroyed=!1;_initialized=new z;_keydownSubscription;_outsideClickSubscription;_cleanupWindowBlur;_previousValue;_valueOnAttach;_valueOnLastKeydown;_positionStrategy;_manuallyFloatingLabel=!1;_closingActionsSubscription;_viewportSubscription=ke.EMPTY;_breakpointObserver=u(sl);_handsetLandscapeSubscription=ke.EMPTY;_canOpenOnNextFocus=!0;_valueBeforeAutoSelection;_pendingAutoselectedOption;_closeKeyEventStream=new z;_overlayPanelClass=al(this._defaults?.overlayPanelClass||[]);_windowBlurHandler=()=>{this._canOpenOnNextFocus=this.panelOpen||!this._hasFocus()};_onChange=()=>{};_onTouched=()=>{};autocomplete;position="auto";connectedTo;autocompleteAttribute="off";autocompleteDisabled;constructor(){}_aboveClass="mat-mdc-autocomplete-panel-above";ngAfterViewInit(){this._initialized.next(),this._initialized.complete(),this._cleanupWindowBlur=this._renderer.listen("window","blur",this._windowBlurHandler)}ngOnChanges(e){e.position&&this._positionStrategy&&(this._setStrategyPositions(this._positionStrategy),this.panelOpen&&this._overlayRef.updatePosition())}ngOnDestroy(){this._cleanupWindowBlur?.(),this._handsetLandscapeSubscription.unsubscribe(),this._viewportSubscription.unsubscribe(),this._componentDestroyed=!0,this._destroyPanel(),this._closeKeyEventStream.complete(),this._clearFromModal()}get panelOpen(){return this._overlayAttached&&this.autocomplete.showPanel}_overlayAttached=!1;openPanel(){this._openPanelInternal()}closePanel(){this._resetLabel(),this._overlayAttached&&(this.panelOpen&&this._zone.run(()=>{this.autocomplete.closed.emit()}),this.autocomplete._latestOpeningTrigger===this&&(this.autocomplete._isOpen=!1,this.autocomplete._latestOpeningTrigger=null),this._overlayAttached=!1,this._pendingAutoselectedOption=null,this._overlayRef&&this._overlayRef.hasAttached()&&(this._overlayRef.detach(),this._closingActionsSubscription.unsubscribe()),this._updatePanelState(),this._componentDestroyed||this._changeDetectorRef.detectChanges(),this._trackedModal&&sc(this._trackedModal,"aria-owns",this.autocomplete.id))}updatePosition(){this._overlayAttached&&this._overlayRef.updatePosition()}get panelClosingActions(){return Je(this.optionSelections,this.autocomplete._keyManager.tabOut.pipe(ce(()=>this._overlayAttached)),this._closeKeyEventStream,this._getOutsideClickStream(),this._overlayRef?this._overlayRef.detachments().pipe(ce(()=>this._overlayAttached)):Q()).pipe(se(e=>e instanceof nh?e:null))}optionSelections=kn(()=>{let e=this.autocomplete?this.autocomplete.options:null;return e?e.changes.pipe(He(e),$e(()=>Je(...e.map(i=>i.onSelectionChange)))):this._initialized.pipe($e(()=>this.optionSelections))});get activeOption(){return this.autocomplete&&this.autocomplete._keyManager?this.autocomplete._keyManager.activeItem:null}_getOutsideClickStream(){return new Fe(e=>{let i=o=>{let a=Kn(o),s=this._formField?this._formField.getConnectedOverlayOrigin().nativeElement:null,l=this.connectedTo?this.connectedTo.elementRef.nativeElement:null;this._overlayAttached&&a!==this._element.nativeElement&&!this._hasFocus()&&(!s||!s.contains(a))&&(!l||!l.contains(a))&&this._overlayRef&&!this._overlayRef.overlayElement.contains(a)&&e.next(o)},r=[this._renderer.listen("document","click",i),this._renderer.listen("document","auxclick",i),this._renderer.listen("document","touchend",i)];return()=>{r.forEach(o=>o())}})}writeValue(e){Promise.resolve(null).then(()=>this._assignOptionValue(e))}registerOnChange(e){this._onChange=e}registerOnTouched(e){this._onTouched=e}setDisabledState(e){this._element.nativeElement.disabled=e}_handleKeydown(e){let i=e,r=i.keyCode,o=Ft(i);if(r===27&&!o&&i.preventDefault(),this._valueOnLastKeydown=this._element.nativeElement.value,this.activeOption&&r===13&&this.panelOpen&&!o)this.activeOption._selectViaInteraction(),this._resetActiveItem(),i.preventDefault();else if(this.autocomplete){let a=this.autocomplete._keyManager.activeItem,s=r===38||r===40;r===9||s&&!o&&this.panelOpen?this.autocomplete._keyManager.onKeydown(i):s&&this._canOpen()&&this._openPanelInternal(this._valueOnLastKeydown),(s||this.autocomplete._keyManager.activeItem!==a)&&(this._scrollToOption(this.autocomplete._keyManager.activeItemIndex||0),this.autocomplete.autoSelectActiveOption&&this.activeOption&&(this._pendingAutoselectedOption||(this._valueBeforeAutoSelection=this._valueOnLastKeydown),this._pendingAutoselectedOption=this.activeOption,this._assignOptionValue(this.activeOption.value)))}}_handleInput(e){let i=e.target,r=i.value;if(i.type==="number"&&(r=r==""?null:parseFloat(r)),this._previousValue!==r){if(this._previousValue=r,this._pendingAutoselectedOption=null,(!this.autocomplete||!this.autocomplete.requireSelection)&&this._onChange(r),!r)this._clearPreviousSelectedOption(null,!1);else if(this.panelOpen&&!this.autocomplete.requireSelection){let o=this.autocomplete.options?.find(a=>a.selected);if(o){let a=this._getDisplayValue(o.value);r!==a&&o.deselect(!1)}}if(this._canOpen()&&this._hasFocus()){let o=this._valueOnLastKeydown??this._element.nativeElement.value;this._valueOnLastKeydown=null,this._openPanelInternal(o)}}}_handleFocus(){this._canOpenOnNextFocus?this._canOpen()&&(this._previousValue=this._element.nativeElement.value,this._attachOverlay(this._previousValue),this._floatLabel(!0)):this._canOpenOnNextFocus=!0}_handleClick(){this._canOpen()&&!this.panelOpen&&this._openPanelInternal()}_hasFocus(){return _o()===this._element.nativeElement}_floatLabel(e=!1){this._formField&&this._formField.floatLabel==="auto"&&(e?this._formField._animateAndLockLabel():this._formField.floatLabel="always",this._manuallyFloatingLabel=!0)}_resetLabel(){this._manuallyFloatingLabel&&(this._formField&&(this._formField.floatLabel="auto"),this._manuallyFloatingLabel=!1)}_subscribeToClosingActions(){let e=new Fe(r=>{pt(()=>{r.next()},{injector:this._environmentInjector})}),i=this.autocomplete.options?.changes.pipe(Be(()=>this._positionStrategy.reapplyLastPosition()),pa(0))??Q();return Je(e,i).pipe($e(()=>this._zone.run(()=>{let r=this.panelOpen;return this._resetActiveItem(),this._updatePanelState(),this._changeDetectorRef.detectChanges(),this.panelOpen&&this._overlayRef.updatePosition(),r!==this.panelOpen&&(this.panelOpen?this._emitOpened():this.autocomplete.closed.emit()),this.panelClosingActions})),lt(1)).subscribe(r=>this._setValueAndClose(r))}_emitOpened(){this.autocomplete.opened.emit()}_destroyPanel(){this._overlayRef&&(this.closePanel(),this._overlayRef.dispose(),this._overlayRef=null)}_getDisplayValue(e){let i=this.autocomplete;return i&&i.displayWith?i.displayWith(e):e}_assignOptionValue(e){let i=this._getDisplayValue(e);e==null&&this._clearPreviousSelectedOption(null,!1),this._updateNativeInputValue(i??"")}_updateNativeInputValue(e){this._formField?this._formField._control.value=e:this._element.nativeElement.value=e,this._previousValue=e}_setValueAndClose(e){let i=this.autocomplete,r=e?e.source:this._pendingAutoselectedOption;r?(this._clearPreviousSelectedOption(r),this._assignOptionValue(r.value),this._onChange(r.value),i._emitSelectEvent(r),this._element.nativeElement.focus()):i.requireSelection&&this._element.nativeElement.value!==this._valueOnAttach&&(this._clearPreviousSelectedOption(null),this._assignOptionValue(null),this._onChange(null)),this.closePanel()}_clearPreviousSelectedOption(e,i){this.autocomplete?.options?.forEach(r=>{r!==e&&r.selected&&r.deselect(i)})}_openPanelInternal(e=this._element.nativeElement.value){if(this._attachOverlay(e),this._floatLabel(),this._trackedModal){let i=this.autocomplete.id;Zm(this._trackedModal,"aria-owns",i)}}_attachOverlay(e){this.autocomplete;let i=this._overlayRef;i?(this._positionStrategy.setOrigin(this._getConnectedElement()),i.updateSize({width:this._getPanelWidth()})):(this._portal=new Cn(this.autocomplete.template,this._viewContainerRef,{id:this._formField?.getLabelId()}),i=Nr(this._injector,this._getOverlayConfig()),this._overlayRef=i,this._viewportSubscription=this._viewportRuler.change().subscribe(()=>{this.panelOpen&&i&&i.updateSize({width:this._getPanelWidth()})}),this._handsetLandscapeSubscription=this._breakpointObserver.observe(F0.HandsetLandscape).subscribe(o=>{o.matches?this._positionStrategy.withFlexibleDimensions(!0).withGrowAfterOpen(!0).withViewportMargin(8):this._positionStrategy.withFlexibleDimensions(!1).withGrowAfterOpen(!1).withViewportMargin(0)})),i&&!i.hasAttached()&&(i.attach(this._portal),this._valueOnAttach=e,this._valueOnLastKeydown=null,this._closingActionsSubscription=this._subscribeToClosingActions());let r=this.panelOpen;this.autocomplete._isOpen=this._overlayAttached=!0,this.autocomplete._latestOpeningTrigger=this,this.autocomplete._setColor(this._formField?.color),this._updatePanelState(),this._applyModalPanelOwnership(),this.panelOpen&&r!==this.panelOpen&&this._emitOpened()}_handlePanelKeydown=e=>{(e.keyCode===27&&!Ft(e)||e.keyCode===38&&Ft(e,"altKey"))&&(this._pendingAutoselectedOption&&(this._updateNativeInputValue(this._valueBeforeAutoSelection??""),this._pendingAutoselectedOption=null),this._closeKeyEventStream.next(),this._resetActiveItem(),e.stopPropagation(),e.preventDefault())};_updatePanelState(){if(this.autocomplete._setVisibility(),this.panelOpen){let e=this._overlayRef;this._keydownSubscription||(this._keydownSubscription=e.keydownEvents().subscribe(this._handlePanelKeydown)),this._outsideClickSubscription||(this._outsideClickSubscription=e.outsidePointerEvents().subscribe())}else this._keydownSubscription?.unsubscribe(),this._outsideClickSubscription?.unsubscribe(),this._keydownSubscription=this._outsideClickSubscription=null}_getOverlayConfig(){return new Fr({positionStrategy:this._getOverlayPosition(),scrollStrategy:this._scrollStrategy(),width:this._getPanelWidth(),direction:this._dir??void 0,hasBackdrop:this._defaults?.hasBackdrop,backdropClass:this._defaults?.backdropClass||"cdk-overlay-transparent-backdrop",panelClass:this._overlayPanelClass,disableAnimations:this._animationsDisabled})}_getOverlayPosition(){let e=Fa(this._injector,this._getConnectedElement()).withFlexibleDimensions(!1).withPush(!1);return this._setStrategyPositions(e),this._positionStrategy=e,e}_setStrategyPositions(e){let i=[{originX:"start",originY:"bottom",overlayX:"start",overlayY:"top"},{originX:"end",originY:"bottom",overlayX:"end",overlayY:"top"}],r=this._aboveClass,o=[{originX:"start",originY:"top",overlayX:"start",overlayY:"bottom",panelClass:r},{originX:"end",originY:"top",overlayX:"end",overlayY:"bottom",panelClass:r}],a;this.position==="above"?a=o:this.position==="below"?a=i:a=[...i,...o],e.withPositions(a)}_getConnectedElement(){return this.connectedTo?this.connectedTo.elementRef:this._formField?this._formField.getConnectedOverlayOrigin():this._element}_getPanelWidth(){return this.autocomplete.panelWidth||this._getHostWidth()}_getHostWidth(){return this._getConnectedElement().nativeElement.getBoundingClientRect().width}_resetActiveItem(){let e=this.autocomplete;if(e.autoActiveFirstOption){let i=-1;for(let r=0;r .cdk-overlay-container [aria-modal="true"]');if(!e)return;let i=this.autocomplete.id;this._trackedModal&&sc(this._trackedModal,"aria-owns",i),Zm(e,"aria-owns",i),this._trackedModal=e}_clearFromModal(){if(this._trackedModal){let e=this.autocomplete.id;sc(this._trackedModal,"aria-owns",e),this._trackedModal=null}}static \u0275fac=function(i){return new(i||t)};static \u0275dir=F({type:t,selectors:[["input","matAutocomplete",""],["textarea","matAutocomplete",""]],hostAttrs:[1,"mat-mdc-autocomplete-trigger"],hostVars:7,hostBindings:function(i,r){i&1&&S("focusin",function(){return r._handleFocus()})("blur",function(){return r._onTouched()})("input",function(a){return r._handleInput(a)})("keydown",function(a){return r._handleKeydown(a)})("click",function(){return r._handleClick()}),i&2&&X("autocomplete",r.autocompleteAttribute)("role",r.autocompleteDisabled?null:"combobox")("aria-autocomplete",r.autocompleteDisabled?null:"list")("aria-activedescendant",r.panelOpen&&r.activeOption?r.activeOption.id:null)("aria-expanded",r.autocompleteDisabled?null:r.panelOpen.toString())("aria-controls",r.autocompleteDisabled||!r.panelOpen||r.autocomplete==null?null:r.autocomplete.id)("aria-haspopup",r.autocompleteDisabled?null:"listbox")},inputs:{autocomplete:[0,"matAutocomplete","autocomplete"],position:[0,"matAutocompletePosition","position"],connectedTo:[0,"matAutocompleteConnectedTo","connectedTo"],autocompleteAttribute:[0,"autocomplete","autocompleteAttribute"],autocompleteDisabled:[2,"matAutocompleteDisabled","autocompleteDisabled",V]},exportAs:["matAutocompleteTrigger"],features:[Ce([j_e]),Ae]})}return t})(),vw=(()=>{class t{static \u0275fac=function(i){return new(i||t)};static \u0275mod=ee({type:t});static \u0275inj=J({providers:[z_e],imports:[er,rh,we,vr,rh,we]})}return t})();var CU=()=>["HRAdmin","Manager"],U_e=()=>[5,10,25,50,100],$_e=()=>["HRAdmin"];function W_e(t,n){if(t&1){let e=Y();h(0,"button",22),S("click",function(){I(e);let r=C();return A(r.createEmployee())}),h(1,"mat-icon"),_(2,"add"),p(),_(3," Add Employee "),p()}}function G_e(t,n){if(t&1&&(h(0,"mat-option",23),_(1),p()),t&2){let e=n.$implicit;y("value",e),g(),ve(" ",e," ")}}function q_e(t,n){if(t&1&&(h(0,"mat-option",23),_(1),p()),t&2){let e=n.$implicit;y("value",e),g(),ve(" ",e," ")}}function Y_e(t,n){if(t&1&&(h(0,"mat-option",23),_(1),p()),t&2){let e=n.$implicit;y("value",e),g(),ve(" ",e," ")}}function Q_e(t,n){if(t&1&&(h(0,"mat-option",23),_(1),p()),t&2){let e=n.$implicit;y("value",e),g(),ve(" ",e," ")}}function K_e(t,n){if(t&1&&(h(0,"mat-option",23),_(1),p()),t&2){let e=n.$implicit;y("value",e),g(),ve(" ",e," ")}}function Z_e(t,n){t&1&&(h(0,"div",24),k(1,"mat-spinner"),p())}function X_e(t,n){t&1&&(h(0,"th",37),_(1,"Employee #"),p())}function J_e(t,n){if(t&1&&(h(0,"td",38),_(1),p()),t&2){let e=n.$implicit;g(),H(e.employeeNumber)}}function ebe(t,n){t&1&&(h(0,"th",37),_(1,"Name"),p())}function tbe(t,n){if(t&1&&(h(0,"td",38),_(1),p()),t&2){let e=n.$implicit,i=C(2);g(),H(i.getFullName(e))}}function ibe(t,n){t&1&&(h(0,"th",37),_(1,"Email"),p())}function nbe(t,n){if(t&1&&(h(0,"td",38),_(1),p()),t&2){let e=n.$implicit;g(),H(e.email)}}function rbe(t,n){t&1&&(h(0,"th",37),_(1,"Phone"),p())}function obe(t,n){if(t&1&&(h(0,"td",38),_(1),p()),t&2){let e=n.$implicit;g(),H(e.phoneNumber||e.phone||"-")}}function abe(t,n){t&1&&(h(0,"th",37),_(1,"Position"),p())}function sbe(t,n){if(t&1&&(h(0,"td",38),_(1),p()),t&2){let e=n.$implicit;g(),H(e.positionTitle||(e.position==null?null:e.position.positionTitle)||"-")}}function lbe(t,n){t&1&&(h(0,"th",37),_(1,"Actions"),p())}function cbe(t,n){if(t&1){let e=Y();h(0,"button",43),S("click",function(){I(e);let r=C().$implicit,o=C(2);return A(o.editEmployee(r))}),h(1,"mat-icon"),_(2,"edit"),p()()}}function dbe(t,n){if(t&1){let e=Y();h(0,"button",44),S("click",function(){I(e);let r=C().$implicit,o=C(2);return A(o.deleteEmployee(r))}),h(1,"mat-icon"),_(2,"delete"),p()()}}function ube(t,n){if(t&1){let e=Y();h(0,"td",38)(1,"div",39)(2,"button",40),S("click",function(){let r=I(e).$implicit,o=C(2);return A(o.viewEmployee(r))}),h(3,"mat-icon"),_(4,"visibility"),p()(),R(5,cbe,3,0,"button",41)(6,dbe,3,0,"button",42),p()()}t&2&&(g(5),y("appHasRole",at(2,CU)),g(),y("appHasRole",at(3,$_e)))}function mbe(t,n){t&1&&k(0,"tr",45)}function hbe(t,n){t&1&&k(0,"tr",46)}function pbe(t,n){if(t&1&&(h(0,"tr",47)(1,"td",48)(2,"div",49)(3,"mat-icon"),_(4,"info"),p(),h(5,"p"),_(6,"No employees found"),p()()()()),t&2){let e=C(2);g(),X("colspan",e.displayedColumns.length)}}function fbe(t,n){if(t&1&&(h(0,"table",25),jt(1,26),R(2,X_e,2,0,"th",27)(3,J_e,2,1,"td",28),Lt(),jt(4,29),R(5,ebe,2,0,"th",27)(6,tbe,2,1,"td",28),Lt(),jt(7,30),R(8,ibe,2,0,"th",27)(9,nbe,2,1,"td",28),Lt(),jt(10,31),R(11,rbe,2,0,"th",27)(12,obe,2,1,"td",28),Lt(),jt(13,32),R(14,abe,2,0,"th",27)(15,sbe,2,1,"td",28),Lt(),jt(16,33),R(17,lbe,2,0,"th",27)(18,ube,7,4,"td",28),Lt(),R(19,mbe,1,0,"tr",34)(20,hbe,1,0,"tr",35)(21,pbe,7,1,"tr",36),p()),t&2){let e=C();y("dataSource",e.employees),g(19),y("matHeaderRowDef",e.displayedColumns),g(),y("matRowDefColumns",e.displayedColumns),g(),y("ngIf",e.employees.length===0)}}var wU=(()=>{let n=class n{constructor(){this.employeeService=u(ap),this.authService=u(Tt),this.router=u(Re),this.fb=u(eo),this.snackBar=u(di),this.dialog=u(En),this.employees=[],this.loading=!1,this.totalCount=0,this.pageSize=10,this.pageNumber=1,this.destroy$=new z,this.displayedColumns=["employeeNumber","name","email","phone","positionTitle","actions"]}ngOnInit(){this.initSearchForm(),this.setupAutocomplete(),this.setupAutoSubmit(),this.loadEmployees()}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete()}initSearchForm(){this.searchForm=this.fb.group({FirstName:[""],LastName:[""],Email:[""],EmployeeNumber:[""],PositionTitle:[""]})}setupAutocomplete(){this.filteredEmployeeNumbers$=this.searchForm.get("EmployeeNumber").valueChanges.pipe(He(""),Rt(300),Sn(),$e(i=>this.getAutocompleteOptions("EmployeeNumber",i))),this.filteredFirstNames$=this.searchForm.get("FirstName").valueChanges.pipe(He(""),Rt(300),Sn(),$e(i=>this.getAutocompleteOptions("FirstName",i))),this.filteredLastNames$=this.searchForm.get("LastName").valueChanges.pipe(He(""),Rt(300),Sn(),$e(i=>this.getAutocompleteOptions("LastName",i))),this.filteredEmails$=this.searchForm.get("Email").valueChanges.pipe(He(""),Rt(300),Sn(),$e(i=>this.getAutocompleteOptions("Email",i))),this.filteredPositionTitles$=this.searchForm.get("PositionTitle").valueChanges.pipe(He(""),Rt(300),Sn(),$e(i=>this.getAutocompleteOptions("PositionTitle",i)))}setupAutoSubmit(){this.searchForm.valueChanges.pipe(Rt(500),Sn((i,r)=>JSON.stringify(i)===JSON.stringify(r)),Te(this.destroy$)).subscribe(()=>{this.pageNumber=1,this.loadEmployees()})}getAutocompleteOptions(i,r){if(!r||r.length<2)return Q([]);let o={PageNumber:1,PageSize:10,[i]:r};return this.employeeService.getAllPaged(o).pipe(se(a=>{let s={EmployeeNumber:c=>c.employeeNumber,FirstName:c=>c.firstName,LastName:c=>c.lastName,Email:c=>c.email,PositionTitle:c=>c.positionTitle||""};return a.value.map(c=>s[i](c)).filter((c,d,m)=>c&&m.indexOf(c)===d)}),fi(()=>Q([])))}loadEmployees(){this.loading=!0;let i=M({PageNumber:this.pageNumber,PageSize:this.pageSize},this.searchForm.value);Object.keys(i).forEach(r=>{(i[r]===""||i[r]===null||i[r]===void 0)&&delete i[r]}),this.employeeService.getAllPaged(i).subscribe({next:r=>{this.employees=r.value,this.totalCount=r.recordsTotal,this.loading=!1},error:r=>{console.error("Error loading employees:",r),this.loading=!1}})}onClearSearch(){this.searchForm.reset(),this.pageNumber=1,this.paginator&&(this.paginator.pageIndex=0),this.loadEmployees()}onPageChange(i){this.pageSize=i.pageSize,this.pageNumber=i.pageIndex+1,this.loadEmployees()}getFullName(i){return[i.prefix,i.firstName,i.middleName,i.lastName].filter(Boolean).join(" ")}viewEmployee(i){this.router.navigate(["/employees",i.id])}editEmployee(i){this.router.navigate(["/employees","edit",i.id])}deleteEmployee(i){let r=this.getFullName(i);this.dialog.open(Er,{width:"400px",data:{title:"Delete Employee",message:`Are you sure you want to delete ${r}? This action cannot be undone.`,confirmText:"Delete",cancelText:"Cancel"}}).afterClosed().subscribe(a=>{a&&this.employeeService.delete(i.id).subscribe({next:()=>{this.snackBar.open(`${r} has been deleted.`,"Close",{duration:3e3,horizontalPosition:"end",verticalPosition:"top"}),this.loadEmployees()},error:s=>{console.error("Error deleting employee:",s),this.snackBar.open("Failed to delete employee. Please try again.","Close",{duration:4e3,horizontalPosition:"end",verticalPosition:"top"})}})})}createEmployee(){this.router.navigate(["/employees","create"])}canEdit(){return this.authService.isHRAdmin()||this.authService.isManager()}canDelete(){return this.authService.isHRAdmin()}canCreate(){return this.authService.isHRAdmin()||this.authService.isManager()}};n.\u0275fac=function(r){return new(r||n)},n.\u0275cmp=E({type:n,selectors:[["app-employee-list"]],viewQuery:function(r,o){if(r&1&&ie(ir,5),r&2){let a;B(a=j())&&(o.paginator=a.first)}},decls:59,vars:30,consts:[["autoEmployeeNumber","matAutocomplete"],["autoFirstName","matAutocomplete"],["autoLastName","matAutocomplete"],["autoEmail","matAutocomplete"],["autoPositionTitle","matAutocomplete"],[1,"flex-spacer"],["mat-raised-button","","color","primary",3,"click",4,"appHasRole"],[1,"search-form",3,"formGroup"],[1,"search-row"],["appearance","outline"],["matInput","","formControlName","EmployeeNumber",3,"matAutocomplete"],[3,"value",4,"ngFor","ngForOf"],["matInput","","formControlName","FirstName",3,"matAutocomplete"],["matInput","","formControlName","LastName",3,"matAutocomplete"],["matInput","","formControlName","Email",3,"matAutocomplete"],["matInput","","formControlName","PositionTitle",3,"matAutocomplete"],[1,"search-buttons"],["mat-raised-button","","color","accent","type","button",3,"click"],[1,"table-container"],["class","loading-spinner",4,"ngIf"],["mat-table","","class","employee-table",3,"dataSource",4,"ngIf"],["showFirstLastButtons","",3,"page","length","pageSize","pageSizeOptions","pageIndex"],["mat-raised-button","","color","primary",3,"click"],[3,"value"],[1,"loading-spinner"],["mat-table","",1,"employee-table",3,"dataSource"],["matColumnDef","employeeNumber"],["mat-header-cell","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","name"],["matColumnDef","email"],["matColumnDef","phone"],["matColumnDef","positionTitle"],["matColumnDef","actions"],["mat-header-row","",4,"matHeaderRowDef"],["mat-row","",4,"matRowDef","matRowDefColumns"],["class","mat-row",4,"ngIf"],["mat-header-cell",""],["mat-cell",""],[1,"action-buttons"],["mat-icon-button","","color","primary","matTooltip","View Details",3,"click"],["mat-icon-button","","color","accent","matTooltip","Edit Employee",3,"click",4,"appHasRole"],["mat-icon-button","","color","warn","matTooltip","Delete Employee",3,"click",4,"appHasRole"],["mat-icon-button","","color","accent","matTooltip","Edit Employee",3,"click"],["mat-icon-button","","color","warn","matTooltip","Delete Employee",3,"click"],["mat-header-row",""],["mat-row",""],[1,"mat-row"],[1,"mat-cell"],[1,"no-data"]],template:function(r,o){if(r&1){let a=Y();k(0,"page-header"),h(1,"mat-card")(2,"mat-card-header")(3,"mat-card-title"),_(4,"Employee Directory"),p(),k(5,"div",5),R(6,W_e,4,0,"button",6),p(),h(7,"mat-card-content")(8,"form",7)(9,"div",8)(10,"mat-form-field",9)(11,"mat-label"),_(12,"Employee Number"),p(),k(13,"input",10),h(14,"mat-autocomplete",null,0),R(16,G_e,2,2,"mat-option",11),me(17,"async"),p()(),h(18,"mat-form-field",9)(19,"mat-label"),_(20,"First Name"),p(),k(21,"input",12),h(22,"mat-autocomplete",null,1),R(24,q_e,2,2,"mat-option",11),me(25,"async"),p()(),h(26,"mat-form-field",9)(27,"mat-label"),_(28,"Last Name"),p(),k(29,"input",13),h(30,"mat-autocomplete",null,2),R(32,Y_e,2,2,"mat-option",11),me(33,"async"),p()(),h(34,"mat-form-field",9)(35,"mat-label"),_(36,"Email"),p(),k(37,"input",14),h(38,"mat-autocomplete",null,3),R(40,Q_e,2,2,"mat-option",11),me(41,"async"),p()(),h(42,"mat-form-field",9)(43,"mat-label"),_(44,"Position Title"),p(),k(45,"input",15),h(46,"mat-autocomplete",null,4),R(48,K_e,2,2,"mat-option",11),me(49,"async"),p()(),h(50,"div",16)(51,"button",17),S("click",function(){return I(a),A(o.onClearSearch())}),h(52,"mat-icon"),_(53,"clear"),p(),_(54," Clear Filters "),p()()()(),h(55,"div",18),R(56,Z_e,2,0,"div",19)(57,fbe,22,4,"table",20),p(),h(58,"mat-paginator",21),S("page",function(l){return I(a),A(o.onPageChange(l))}),p()()()}if(r&2){let a=Se(15),s=Se(23),l=Se(31),c=Se(39),d=Se(47);g(6),y("appHasRole",at(28,CU)),g(2),y("formGroup",o.searchForm),g(5),y("matAutocomplete",a),g(3),y("ngForOf",Oe(17,18,o.filteredEmployeeNumbers$)),g(5),y("matAutocomplete",s),g(3),y("ngForOf",Oe(25,20,o.filteredFirstNames$)),g(5),y("matAutocomplete",l),g(3),y("ngForOf",Oe(33,22,o.filteredLastNames$)),g(5),y("matAutocomplete",c),g(3),y("ngForOf",Oe(41,24,o.filteredEmails$)),g(5),y("matAutocomplete",d),g(3),y("ngForOf",Oe(49,26,o.filteredPositionTitles$)),g(8),y("ngIf",o.loading),g(),y("ngIf",!o.loading),g(),y("length",o.totalCount)("pageSize",o.pageSize)("pageSizeOptions",at(29,U_e))("pageIndex",o.pageNumber-1)}},dependencies:[gt,qr,li,zn,Jr,Qi,ei,Xr,Ki,Lr,ze,kt,ti,$t,zt,Ut,Jt,Xt,ot,mt,rr,hn,Oi,sn,$i,Zc,Hc,Uc,qc,$c,zc,Yc,Wc,Gc,Qc,Kc,_c,ir,Si,ki,Br,Eo,vw,bw,xn,y_,pi,Mn,ni,Un,rn],styles:["mat-card[_ngcontent-%COMP%]{margin:16px}mat-card-header[_ngcontent-%COMP%]{display:flex;align-items:center;margin-bottom:16px;padding:16px;border-bottom:1px solid rgba(0,0,0,.12)}mat-card-header[_ngcontent-%COMP%] mat-card-title[_ngcontent-%COMP%]{font-size:20px;font-weight:500;margin:0}mat-card-header[_ngcontent-%COMP%] .flex-spacer[_ngcontent-%COMP%]{flex:1 1 auto}mat-card-header[_ngcontent-%COMP%] button[_ngcontent-%COMP%] mat-icon[_ngcontent-%COMP%]{margin-right:4px}mat-card-content[_ngcontent-%COMP%]{padding:0}.search-form[_ngcontent-%COMP%]{padding:16px;background-color:#f5f5f5;margin-bottom:0}.search-form[_ngcontent-%COMP%] .search-row[_ngcontent-%COMP%]{display:grid;grid-template-columns:repeat(auto-fit,minmax(180px,1fr));gap:16px;align-items:start}.search-form[_ngcontent-%COMP%] .search-row[_ngcontent-%COMP%] mat-form-field[_ngcontent-%COMP%]{width:100%}.search-form[_ngcontent-%COMP%] .search-row[_ngcontent-%COMP%] .search-buttons[_ngcontent-%COMP%]{display:flex;gap:8px;align-items:center}.search-form[_ngcontent-%COMP%] .search-row[_ngcontent-%COMP%] .search-buttons[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{white-space:nowrap}.search-form[_ngcontent-%COMP%] .search-row[_ngcontent-%COMP%] .search-buttons[_ngcontent-%COMP%] button[_ngcontent-%COMP%] mat-icon[_ngcontent-%COMP%]{margin-right:4px}.table-container[_ngcontent-%COMP%]{position:relative;min-height:300px;overflow-x:auto}.loading-spinner[_ngcontent-%COMP%]{display:flex;justify-content:center;align-items:center;min-height:300px}.employee-table[_ngcontent-%COMP%]{width:100%}.employee-table[_ngcontent-%COMP%] th[_ngcontent-%COMP%]{font-weight:600;font-size:14px;color:#000000de}.employee-table[_ngcontent-%COMP%] td[_ngcontent-%COMP%]{font-size:14px;color:#000000de}.employee-table[_ngcontent-%COMP%] .mat-column-employeeNumber[_ngcontent-%COMP%]{width:120px}.employee-table[_ngcontent-%COMP%] .mat-column-name[_ngcontent-%COMP%], .employee-table[_ngcontent-%COMP%] .mat-column-email[_ngcontent-%COMP%]{min-width:200px}.employee-table[_ngcontent-%COMP%] .mat-column-phone[_ngcontent-%COMP%]{width:150px}.employee-table[_ngcontent-%COMP%] .mat-column-positionTitle[_ngcontent-%COMP%]{min-width:200px}.employee-table[_ngcontent-%COMP%] .mat-column-actions[_ngcontent-%COMP%]{width:120px;text-align:right}.employee-table[_ngcontent-%COMP%] .mat-column-actions[_ngcontent-%COMP%] .action-buttons[_ngcontent-%COMP%]{display:flex;justify-content:flex-end;align-items:center;gap:4px}.no-data[_ngcontent-%COMP%]{display:flex;flex-direction:column;align-items:center;justify-content:center;padding:48px 16px;color:#0000008a}.no-data[_ngcontent-%COMP%] mat-icon[_ngcontent-%COMP%]{font-size:48px;width:48px;height:48px;margin-bottom:16px}.no-data[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{margin:0;font-size:16px}mat-paginator[_ngcontent-%COMP%]{border-top:1px solid rgba(0,0,0,.12)}"]});let t=n;return t})();var Ou=(function(t){return t[t.Male=0]="Male",t[t.Female=1]="Female",t})(Ou||{});var gbe=()=>["HRAdmin","Manager"],_be=()=>["HRAdmin"];function bbe(t,n){t&1&&(h(0,"div",2),k(1,"mat-spinner"),p())}function vbe(t,n){if(t&1){let e=Y();h(0,"button",14),S("click",function(){I(e);let r=C(2);return A(r.editEmployee())}),h(1,"mat-icon"),_(2,"edit"),p(),_(3," Edit "),p()}}function ybe(t,n){if(t&1){let e=Y();h(0,"button",15),S("click",function(){I(e);let r=C(2);return A(r.deleteEmployee())}),h(1,"mat-icon"),_(2,"delete"),p(),_(3," Delete "),p()}}function xbe(t,n){if(t&1&&(h(0,"mat-list-item")(1,"span",10),_(2,"Address"),p(),h(3,"span",11),_(4),p()()),t&2){let e=C(2);g(4),H(e.employee.address)}}function Cbe(t,n){if(t&1&&(h(0,"mat-list-item")(1,"span",10),_(2,"Hire Date"),p(),h(3,"span",11),_(4),me(5,"date"),p()()),t&2){let e=C(2);g(4),H(Oe(5,1,e.employee.hireDate))}}function wbe(t,n){if(t&1&&(h(0,"mat-list-item")(1,"span",10),_(2,"Salary Range"),p(),h(3,"span",11),_(4),me(5,"number"),me(6,"number"),p()()),t&2){let e=C(2);g(4),Cm(" ",e.employee.salaryRange.name," ($",Oe(5,3,e.employee.salaryRange.minSalary)," - $",Oe(6,5,e.employee.salaryRange.maxSalary),") ")}}function Dbe(t,n){if(t&1&&(h(0,"mat-list-item")(1,"span",10),_(2,"Created"),p(),h(3,"span",11),_(4),me(5,"date"),p()()),t&2){let e=C(3);g(4),H(Ni(5,1,e.employee.createdAt,"medium"))}}function Ebe(t,n){if(t&1&&(h(0,"mat-list-item")(1,"span",10),_(2,"Last Modified"),p(),h(3,"span",11),_(4),me(5,"date"),p()()),t&2){let e=C(3);g(4),H(Ni(5,1,e.employee.lastModifiedAt,"medium"))}}function Mbe(t,n){if(t&1&&(h(0,"div",9)(1,"h3"),_(2,"Audit Information"),p(),k(3,"mat-divider"),h(4,"mat-list"),R(5,Dbe,6,4,"mat-list-item",1)(6,Ebe,6,4,"mat-list-item",1),p()()),t&2){let e=C(2);g(5),y("ngIf",e.employee.createdAt),g(),y("ngIf",e.employee.lastModifiedAt)}}function kbe(t,n){if(t&1){let e=Y();h(0,"mat-card")(1,"mat-card-header")(2,"mat-card-title"),_(3),p(),k(4,"div",3),h(5,"div",4)(6,"button",5),S("click",function(){I(e);let r=C();return A(r.goBack())}),h(7,"mat-icon"),_(8,"arrow_back"),p(),_(9," Back to List "),p(),R(10,vbe,4,0,"button",6)(11,ybe,4,0,"button",7),p()(),h(12,"mat-card-content")(13,"div",8)(14,"div",9)(15,"h3"),_(16,"Personal Information"),p(),k(17,"mat-divider"),h(18,"mat-list")(19,"mat-list-item")(20,"span",10),_(21,"Employee Number"),p(),h(22,"span",11),_(23),p()(),h(24,"mat-list-item")(25,"span",10),_(26,"Full Name"),p(),h(27,"span",11),_(28),p()(),h(29,"mat-list-item")(30,"span",10),_(31,"Date of Birth"),p(),h(32,"span",11),_(33),me(34,"date"),p()(),h(35,"mat-list-item")(36,"span",10),_(37,"Gender"),p(),h(38,"span",11),_(39),p()()()(),h(40,"div",9)(41,"h3"),_(42,"Contact Information"),p(),k(43,"mat-divider"),h(44,"mat-list")(45,"mat-list-item")(46,"span",10),_(47,"Email"),p(),h(48,"span",11)(49,"a",12),_(50),p()()(),h(51,"mat-list-item")(52,"span",10),_(53,"Phone Number"),p(),h(54,"span",11)(55,"a",12),_(56),p()()(),R(57,xbe,5,1,"mat-list-item",1),p()(),h(58,"div",9)(59,"h3"),_(60,"Employment Information"),p(),k(61,"mat-divider"),h(62,"mat-list"),R(63,Cbe,6,3,"mat-list-item",1),h(64,"mat-list-item")(65,"span",10),_(66,"Salary"),p(),h(67,"span",11),_(68),me(69,"currency"),p()(),h(70,"mat-list-item")(71,"span",10),_(72,"Department"),p(),h(73,"span",11),_(74),p()(),h(75,"mat-list-item")(76,"span",10),_(77,"Position"),p(),h(78,"span",11),_(79),p()(),R(80,wbe,7,7,"mat-list-item",1),p()(),R(81,Mbe,7,2,"div",13),p()()()}if(t&2){let e=C();g(3),H(e.getFullName()),g(7),y("appHasRole",at(22,gbe)),g(),y("appHasRole",at(23,_be)),g(12),H(e.employee.employeeNumber),g(5),H(e.getFullName()),g(5),H(Oe(34,18,e.employee.dateOfBirth||e.employee.birthday)),g(6),H(e.getGenderLabel(e.employee.gender)),g(10),y("href","mailto:"+e.employee.email,$r),g(),H(e.employee.email),g(5),y("href","tel:"+(e.employee.phoneNumber||e.employee.phone),$r),g(),H(e.employee.phoneNumber||e.employee.phone),g(),y("ngIf",e.employee.address),g(6),y("ngIf",e.employee.hireDate),g(5),H(Oe(69,20,e.employee.salary)),g(6),H(e.employee.departmentName||(e.employee.department==null?null:e.employee.department.name)||"N/A"),g(5),H(e.employee.positionTitle||(e.employee.position==null?null:e.employee.position.positionTitle)||"N/A"),g(),y("ngIf",e.employee.salaryRange),g(),y("ngIf",e.employee.createdAt||e.employee.lastModifiedAt)}}function Sbe(t,n){if(t&1){let e=Y();h(0,"mat-card")(1,"mat-card-content")(2,"div",16)(3,"mat-icon"),_(4,"error"),p(),h(5,"p"),_(6,"Employee not found"),p(),h(7,"button",17),S("click",function(){I(e);let r=C();return A(r.goBack())}),_(8," Go Back "),p()()()()}}var DU=(()=>{let n=class n{constructor(){this.employeeService=u(ap),this.authService=u(Tt),this.router=u(Re),this.route=u(wi),this.snackBar=u(di),this.dialog=u(En),this.loading=!1}ngOnInit(){let i=this.route.snapshot.paramMap.get("id");i&&this.loadEmployee(i)}loadEmployee(i){this.loading=!0,this.employeeService.getById(i).subscribe({next:r=>{this.employee=r,this.loading=!1},error:r=>{console.error("Error loading employee:",r),this.loading=!1,this.router.navigate(["/employees"])}})}getFullName(){return this.employee?[this.employee.prefix,this.employee.firstName,this.employee.middleName,this.employee.lastName,this.employee.suffix].filter(Boolean).join(" "):""}getGenderLabel(i){return i===Ou.Male?"Male":"Female"}editEmployee(){this.employee&&this.router.navigate(["/employees","edit",this.employee.id])}deleteEmployee(){if(!this.employee)return;let i=this.getFullName();this.dialog.open(Er,{width:"400px",data:{title:"Delete Employee",message:`Are you sure you want to delete ${i}? This action cannot be undone.`,confirmText:"Delete",cancelText:"Cancel"}}).afterClosed().subscribe(o=>{o&&this.employeeService.delete(this.employee.id).subscribe({next:()=>{let a=this.snackBar.open(`${i} has been deleted.`,"Close",{duration:3e3,horizontalPosition:"end",verticalPosition:"top"});a.afterDismissed().subscribe(()=>this.router.navigate(["/employees"])),a.onAction().subscribe(()=>this.router.navigate(["/employees"]))},error:a=>{console.error("Error deleting employee:",a),this.snackBar.open("Failed to delete employee. Please try again.","Close",{duration:4e3,horizontalPosition:"end",verticalPosition:"top"})}})})}goBack(){this.router.navigate(["/employees"])}canEdit(){return this.authService.isHRAdmin()||this.authService.isManager()}canDelete(){return this.authService.isHRAdmin()}};n.\u0275fac=function(r){return new(r||n)},n.\u0275cmp=E({type:n,selectors:[["app-employee-detail"]],decls:4,vars:3,consts:[["class","loading-spinner",4,"ngIf"],[4,"ngIf"],[1,"loading-spinner"],[1,"flex-spacer"],[1,"header-actions"],["mat-stroked-button","",3,"click"],["mat-raised-button","","color","accent",3,"click",4,"appHasRole"],["mat-raised-button","","color","warn",3,"click",4,"appHasRole"],[1,"detail-container"],[1,"detail-section"],["matListItemTitle",""],["matListItemLine",""],[3,"href"],["class","detail-section",4,"ngIf"],["mat-raised-button","","color","accent",3,"click"],["mat-raised-button","","color","warn",3,"click"],[1,"no-data"],["mat-raised-button","","color","primary",3,"click"]],template:function(r,o){r&1&&(k(0,"page-header"),R(1,bbe,2,0,"div",0)(2,kbe,82,24,"mat-card",1)(3,Sbe,9,0,"mat-card",1)),r&2&&(g(),y("ngIf",o.loading),g(),y("ngIf",!o.loading&&o.employee),g(),y("ngIf",!o.loading&&!o.employee))},dependencies:[gt,li,ze,kt,$t,zt,Ut,Jt,Xt,ot,mt,Si,ki,sa,Ha,ca,Fs,la,Tu,Dl,pi,Mn,ni,Un,ff,il,Sa],styles:[".loading-spinner[_ngcontent-%COMP%]{display:flex;justify-content:center;align-items:center;min-height:400px}mat-card[_ngcontent-%COMP%]{margin:16px;max-width:1200px}mat-card-header[_ngcontent-%COMP%]{display:flex;align-items:center;padding:16px;border-bottom:1px solid rgba(0,0,0,.12)}mat-card-header[_ngcontent-%COMP%] mat-card-title[_ngcontent-%COMP%]{font-size:24px;font-weight:500;margin:0}mat-card-header[_ngcontent-%COMP%] .flex-spacer[_ngcontent-%COMP%]{flex:1 1 auto}mat-card-header[_ngcontent-%COMP%] .header-actions[_ngcontent-%COMP%]{display:flex;gap:12px}mat-card-header[_ngcontent-%COMP%] .header-actions[_ngcontent-%COMP%] button[_ngcontent-%COMP%] mat-icon[_ngcontent-%COMP%]{margin-right:4px}mat-card-content[_ngcontent-%COMP%]{padding:24px}.detail-container[_ngcontent-%COMP%]{display:grid;grid-template-columns:1fr 1fr;gap:24px}@media (max-width: 768px){.detail-container[_ngcontent-%COMP%]{grid-template-columns:1fr}}.detail-section[_ngcontent-%COMP%] h3[_ngcontent-%COMP%]{font-size:16px;font-weight:500;margin:0 0 8px;color:#000000de}.detail-section[_ngcontent-%COMP%] mat-divider[_ngcontent-%COMP%]{margin-bottom:16px}.detail-section[_ngcontent-%COMP%] mat-list[_ngcontent-%COMP%]{padding:0}.detail-section[_ngcontent-%COMP%] mat-list-item[_ngcontent-%COMP%]{height:auto;min-height:48px;padding:8px 0}.detail-section[_ngcontent-%COMP%] mat-list-item[_ngcontent-%COMP%] span[matListItemTitle][_ngcontent-%COMP%]{font-weight:500;color:#0009;font-size:12px;text-transform:uppercase;letter-spacing:.5px}.detail-section[_ngcontent-%COMP%] mat-list-item[_ngcontent-%COMP%] span[matListItemLine][_ngcontent-%COMP%]{font-size:14px;color:#000000de;margin-top:4px;white-space:normal;word-break:break-word}.detail-section[_ngcontent-%COMP%] mat-list-item[_ngcontent-%COMP%] span[matListItemLine][_ngcontent-%COMP%] a[_ngcontent-%COMP%]{color:#1976d2;text-decoration:none}.detail-section[_ngcontent-%COMP%] mat-list-item[_ngcontent-%COMP%] span[matListItemLine][_ngcontent-%COMP%] a[_ngcontent-%COMP%]:hover{text-decoration:underline}.no-data[_ngcontent-%COMP%]{display:flex;flex-direction:column;align-items:center;justify-content:center;padding:48px 16px;color:#0000008a}.no-data[_ngcontent-%COMP%] mat-icon[_ngcontent-%COMP%]{font-size:64px;width:64px;height:64px;margin-bottom:16px;color:#f44336}.no-data[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{margin:0 0 24px;font-size:18px}"]});let t=n;return t})();var Ibe=["mat-calendar-body",""];function Abe(t,n){return this._trackRow(n)}var AU=(t,n)=>n.id;function Obe(t,n){if(t&1&&(h(0,"tr",0)(1,"td",3),_(2),p()()),t&2){let e=C();g(),Dt("padding-top",e._cellPadding)("padding-bottom",e._cellPadding),X("colspan",e.numCols),g(),ve(" ",e.label," ")}}function Rbe(t,n){if(t&1&&(h(0,"td",3),_(1),p()),t&2){let e=C(2);Dt("padding-top",e._cellPadding)("padding-bottom",e._cellPadding),X("colspan",e._firstRowOffset),g(),ve(" ",e._firstRowOffset>=e.labelMinRequiredCells?e.label:""," ")}}function Pbe(t,n){if(t&1){let e=Y();h(0,"td",6)(1,"button",7),S("click",function(r){let o=I(e).$implicit,a=C(2);return A(a._cellClicked(o,r))})("focus",function(r){let o=I(e).$implicit,a=C(2);return A(a._emitActiveDateChange(o,r))}),h(2,"span",8),_(3),p(),k(4,"span",9),p()()}if(t&2){let e=n.$implicit,i=n.$index,r=C().$index,o=C();Dt("width",o._cellWidth)("padding-top",o._cellPadding)("padding-bottom",o._cellPadding),X("data-mat-row",r)("data-mat-col",i),g(),G("mat-calendar-body-disabled",!e.enabled)("mat-calendar-body-active",o._isActiveCell(r,i))("mat-calendar-body-range-start",o._isRangeStart(e.compareValue))("mat-calendar-body-range-end",o._isRangeEnd(e.compareValue))("mat-calendar-body-in-range",o._isInRange(e.compareValue))("mat-calendar-body-comparison-bridge-start",o._isComparisonBridgeStart(e.compareValue,r,i))("mat-calendar-body-comparison-bridge-end",o._isComparisonBridgeEnd(e.compareValue,r,i))("mat-calendar-body-comparison-start",o._isComparisonStart(e.compareValue))("mat-calendar-body-comparison-end",o._isComparisonEnd(e.compareValue))("mat-calendar-body-in-comparison-range",o._isInComparisonRange(e.compareValue))("mat-calendar-body-preview-start",o._isPreviewStart(e.compareValue))("mat-calendar-body-preview-end",o._isPreviewEnd(e.compareValue))("mat-calendar-body-in-preview",o._isInPreview(e.compareValue)),y("ngClass",e.cssClasses)("tabindex",o._isActiveCell(r,i)?0:-1),X("aria-label",e.ariaLabel)("aria-disabled",!e.enabled||null)("aria-pressed",o._isSelected(e.compareValue))("aria-current",o.todayValue===e.compareValue?"date":null)("aria-describedby",o._getDescribedby(e.compareValue)),g(),G("mat-calendar-body-selected",o._isSelected(e.compareValue))("mat-calendar-body-comparison-identical",o._isComparisonIdentical(e.compareValue))("mat-calendar-body-today",o.todayValue===e.compareValue),g(),ve(" ",e.displayValue," ")}}function Fbe(t,n){if(t&1&&(h(0,"tr",1),N(1,Rbe,2,6,"td",4),xt(2,Pbe,5,48,"td",5,AU),p()),t&2){let e=n.$implicit,i=n.$index,r=C();g(),L(i===0&&r._firstRowOffset?1:-1),g(),Ct(e)}}function Nbe(t,n){if(t&1&&(h(0,"th",2)(1,"span",6),_(2),p(),h(3,"span",3),_(4),p()()),t&2){let e=n.$implicit;g(2),H(e.long),g(2),H(e.narrow)}}var Lbe=["*"];function Vbe(t,n){}function Bbe(t,n){if(t&1){let e=Y();h(0,"mat-month-view",4),Uo("activeDateChange",function(r){I(e);let o=C();return Ca(o.activeDate,r)||(o.activeDate=r),A(r)}),S("_userSelection",function(r){I(e);let o=C();return A(o._dateSelected(r))})("dragStarted",function(r){I(e);let o=C();return A(o._dragStarted(r))})("dragEnded",function(r){I(e);let o=C();return A(o._dragEnded(r))}),p()}if(t&2){let e=C();zo("activeDate",e.activeDate),y("selected",e.selected)("dateFilter",e.dateFilter)("maxDate",e.maxDate)("minDate",e.minDate)("dateClass",e.dateClass)("comparisonStart",e.comparisonStart)("comparisonEnd",e.comparisonEnd)("startDateAccessibleName",e.startDateAccessibleName)("endDateAccessibleName",e.endDateAccessibleName)("activeDrag",e._activeDrag)}}function jbe(t,n){if(t&1){let e=Y();h(0,"mat-year-view",5),Uo("activeDateChange",function(r){I(e);let o=C();return Ca(o.activeDate,r)||(o.activeDate=r),A(r)}),S("monthSelected",function(r){I(e);let o=C();return A(o._monthSelectedInYearView(r))})("selectedChange",function(r){I(e);let o=C();return A(o._goToDateInView(r,"month"))}),p()}if(t&2){let e=C();zo("activeDate",e.activeDate),y("selected",e.selected)("dateFilter",e.dateFilter)("maxDate",e.maxDate)("minDate",e.minDate)("dateClass",e.dateClass)}}function Hbe(t,n){if(t&1){let e=Y();h(0,"mat-multi-year-view",6),Uo("activeDateChange",function(r){I(e);let o=C();return Ca(o.activeDate,r)||(o.activeDate=r),A(r)}),S("yearSelected",function(r){I(e);let o=C();return A(o._yearSelectedInMultiYearView(r))})("selectedChange",function(r){I(e);let o=C();return A(o._goToDateInView(r,"year"))}),p()}if(t&2){let e=C();zo("activeDate",e.activeDate),y("selected",e.selected)("dateFilter",e.dateFilter)("maxDate",e.maxDate)("minDate",e.minDate)("dateClass",e.dateClass)}}function zbe(t,n){}var Ube=["button"],$be=[[["","matDatepickerToggleIcon",""]]],Wbe=["[matDatepickerToggleIcon]"];function Gbe(t,n){t&1&&(Gt(),h(0,"svg",2),k(1,"path",3),p())}var dp=(()=>{class t{changes=new z;calendarLabel="Calendar";openCalendarLabel="Open calendar";closeCalendarLabel="Close calendar";prevMonthLabel="Previous month";nextMonthLabel="Next month";prevYearLabel="Previous year";nextYearLabel="Next year";prevMultiYearLabel="Previous 24 years";nextMultiYearLabel="Next 24 years";switchToMonthViewLabel="Choose date";switchToMultiYearViewLabel="Choose month and year";startDateLabel="Start date";endDateLabel="End date";comparisonDateLabel="Comparison range";formatYearRange(e,i){return`${e} \u2013 ${i}`}formatYearRangeLabel(e,i){return`${e} to ${i}`}static \u0275fac=function(i){return new(i||t)};static \u0275prov=O({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),qbe=0,C_=class{value;displayValue;ariaLabel;enabled;cssClasses;compareValue;rawValue;id=qbe++;constructor(n,e,i,r,o={},a=n,s){this.value=n,this.displayValue=e,this.ariaLabel=i,this.enabled=r,this.cssClasses=o,this.compareValue=a,this.rawValue=s}},Ybe={passive:!1,capture:!0},xw={passive:!0,capture:!0},EU={passive:!0},cp=(()=>{class t{_elementRef=u(q);_ngZone=u(ae);_platform=u(qe);_intl=u(dp);_eventCleanups;_skipNextFocus;_focusActiveCellAfterViewChecked=!1;label;rows;todayValue;startValue;endValue;labelMinRequiredCells;numCols=7;activeCell=0;ngAfterViewChecked(){this._focusActiveCellAfterViewChecked&&(this._focusActiveCell(),this._focusActiveCellAfterViewChecked=!1)}isRange=!1;cellAspectRatio=1;comparisonStart;comparisonEnd;previewStart=null;previewEnd=null;startDateAccessibleName;endDateAccessibleName;selectedValueChange=new U;previewChange=new U;activeDateChange=new U;dragStarted=new U;dragEnded=new U;_firstRowOffset;_cellPadding;_cellWidth;_startDateLabelId;_endDateLabelId;_comparisonStartDateLabelId;_comparisonEndDateLabelId;_didDragSinceMouseDown=!1;_injector=u(de);comparisonDateAccessibleName=this._intl.comparisonDateLabel;_trackRow=e=>e;constructor(){let e=u(je),i=u(Ze);this._startDateLabelId=i.getId("mat-calendar-body-start-"),this._endDateLabelId=i.getId("mat-calendar-body-end-"),this._comparisonStartDateLabelId=i.getId("mat-calendar-body-comparison-start-"),this._comparisonEndDateLabelId=i.getId("mat-calendar-body-comparison-end-"),u(ut).load(Di),this._ngZone.runOutsideAngular(()=>{let r=this._elementRef.nativeElement,o=[e.listen(r,"touchmove",this._touchmoveHandler,Ybe),e.listen(r,"mouseenter",this._enterHandler,xw),e.listen(r,"focus",this._enterHandler,xw),e.listen(r,"mouseleave",this._leaveHandler,xw),e.listen(r,"blur",this._leaveHandler,xw),e.listen(r,"mousedown",this._mousedownHandler,EU),e.listen(r,"touchstart",this._mousedownHandler,EU)];this._platform.isBrowser&&o.push(e.listen("window","mouseup",this._mouseupHandler),e.listen("window","touchend",this._touchendHandler)),this._eventCleanups=o})}_cellClicked(e,i){this._didDragSinceMouseDown||e.enabled&&this.selectedValueChange.emit({value:e.value,event:i})}_emitActiveDateChange(e,i){e.enabled&&this.activeDateChange.emit({value:e.value,event:i})}_isSelected(e){return this.startValue===e||this.endValue===e}ngOnChanges(e){let i=e.numCols,{rows:r,numCols:o}=this;(e.rows||i)&&(this._firstRowOffset=r&&r.length&&r[0].length?o-r[0].length:0),(e.cellAspectRatio||i||!this._cellPadding)&&(this._cellPadding=`${50*this.cellAspectRatio/o}%`),(i||!this._cellWidth)&&(this._cellWidth=`${100/o}%`)}ngOnDestroy(){this._eventCleanups.forEach(e=>e())}_isActiveCell(e,i){let r=e*this.numCols+i;return e&&(r-=this._firstRowOffset),r==this.activeCell}_focusActiveCell(e=!0){pt(()=>{setTimeout(()=>{let i=this._elementRef.nativeElement.querySelector(".mat-calendar-body-active");i&&(e||(this._skipNextFocus=!0),i.focus())})},{injector:this._injector})}_scheduleFocusActiveCellAfterViewChecked(){this._focusActiveCellAfterViewChecked=!0}_isRangeStart(e){return JI(e,this.startValue,this.endValue)}_isRangeEnd(e){return eA(e,this.startValue,this.endValue)}_isInRange(e){return tA(e,this.startValue,this.endValue,this.isRange)}_isComparisonStart(e){return JI(e,this.comparisonStart,this.comparisonEnd)}_isComparisonBridgeStart(e,i,r){if(!this._isComparisonStart(e)||this._isRangeStart(e)||!this._isInRange(e))return!1;let o=this.rows[i][r-1];if(!o){let a=this.rows[i-1];o=a&&a[a.length-1]}return o&&!this._isRangeEnd(o.compareValue)}_isComparisonBridgeEnd(e,i,r){if(!this._isComparisonEnd(e)||this._isRangeEnd(e)||!this._isInRange(e))return!1;let o=this.rows[i][r+1];if(!o){let a=this.rows[i+1];o=a&&a[0]}return o&&!this._isRangeStart(o.compareValue)}_isComparisonEnd(e){return eA(e,this.comparisonStart,this.comparisonEnd)}_isInComparisonRange(e){return tA(e,this.comparisonStart,this.comparisonEnd,this.isRange)}_isComparisonIdentical(e){return this.comparisonStart===this.comparisonEnd&&e===this.comparisonStart}_isPreviewStart(e){return JI(e,this.previewStart,this.previewEnd)}_isPreviewEnd(e){return eA(e,this.previewStart,this.previewEnd)}_isInPreview(e){return tA(e,this.previewStart,this.previewEnd,this.isRange)}_getDescribedby(e){if(!this.isRange)return null;if(this.startValue===e&&this.endValue===e)return`${this._startDateLabelId} ${this._endDateLabelId}`;if(this.startValue===e)return this._startDateLabelId;if(this.endValue===e)return this._endDateLabelId;if(this.comparisonStart!==null&&this.comparisonEnd!==null){if(e===this.comparisonStart&&e===this.comparisonEnd)return`${this._comparisonStartDateLabelId} ${this._comparisonEndDateLabelId}`;if(e===this.comparisonStart)return this._comparisonStartDateLabelId;if(e===this.comparisonEnd)return this._comparisonEndDateLabelId}return null}_enterHandler=e=>{if(this._skipNextFocus&&e.type==="focus"){this._skipNextFocus=!1;return}if(e.target&&this.isRange){let i=this._getCellFromElement(e.target);i&&this._ngZone.run(()=>this.previewChange.emit({value:i.enabled?i:null,event:e}))}};_touchmoveHandler=e=>{if(!this.isRange)return;let i=MU(e),r=i?this._getCellFromElement(i):null;i!==e.target&&(this._didDragSinceMouseDown=!0),XI(e.target)&&e.preventDefault(),this._ngZone.run(()=>this.previewChange.emit({value:r?.enabled?r:null,event:e}))};_leaveHandler=e=>{this.previewEnd!==null&&this.isRange&&(e.type!=="blur"&&(this._didDragSinceMouseDown=!0),e.target&&this._getCellFromElement(e.target)&&!(e.relatedTarget&&this._getCellFromElement(e.relatedTarget))&&this._ngZone.run(()=>this.previewChange.emit({value:null,event:e})))};_mousedownHandler=e=>{if(!this.isRange)return;this._didDragSinceMouseDown=!1;let i=e.target&&this._getCellFromElement(e.target);!i||!this._isInRange(i.compareValue)||this._ngZone.run(()=>{this.dragStarted.emit({value:i.rawValue,event:e})})};_mouseupHandler=e=>{if(!this.isRange)return;let i=XI(e.target);if(!i){this._ngZone.run(()=>{this.dragEnded.emit({value:null,event:e})});return}i.closest(".mat-calendar-body")===this._elementRef.nativeElement&&this._ngZone.run(()=>{let r=this._getCellFromElement(i);this.dragEnded.emit({value:r?.rawValue??null,event:e})})};_touchendHandler=e=>{let i=MU(e);i&&this._mouseupHandler({target:i})};_getCellFromElement(e){let i=XI(e);if(i){let r=i.getAttribute("data-mat-row"),o=i.getAttribute("data-mat-col");if(r&&o)return this.rows[parseInt(r)]?.[parseInt(o)]||null}return null}static \u0275fac=function(i){return new(i||t)};static \u0275cmp=E({type:t,selectors:[["","mat-calendar-body",""]],hostAttrs:[1,"mat-calendar-body"],inputs:{label:"label",rows:"rows",todayValue:"todayValue",startValue:"startValue",endValue:"endValue",labelMinRequiredCells:"labelMinRequiredCells",numCols:"numCols",activeCell:"activeCell",isRange:"isRange",cellAspectRatio:"cellAspectRatio",comparisonStart:"comparisonStart",comparisonEnd:"comparisonEnd",previewStart:"previewStart",previewEnd:"previewEnd",startDateAccessibleName:"startDateAccessibleName",endDateAccessibleName:"endDateAccessibleName"},outputs:{selectedValueChange:"selectedValueChange",previewChange:"previewChange",activeDateChange:"activeDateChange",dragStarted:"dragStarted",dragEnded:"dragEnded"},exportAs:["matCalendarBody"],features:[Ae],attrs:Ibe,decls:11,vars:11,consts:[["aria-hidden","true"],["role","row"],[1,"mat-calendar-body-hidden-label",3,"id"],[1,"mat-calendar-body-label"],[1,"mat-calendar-body-label",3,"paddingTop","paddingBottom"],["role","gridcell",1,"mat-calendar-body-cell-container",3,"width","paddingTop","paddingBottom"],["role","gridcell",1,"mat-calendar-body-cell-container"],["type","button",1,"mat-calendar-body-cell",3,"click","focus","ngClass","tabindex"],[1,"mat-calendar-body-cell-content","mat-focus-indicator"],["aria-hidden","true",1,"mat-calendar-body-cell-preview"]],template:function(i,r){i&1&&(N(0,Obe,3,6,"tr",0),xt(1,Fbe,4,1,"tr",1,Abe,!0),h(3,"span",2),_(4),p(),h(5,"span",2),_(6),p(),h(7,"span",2),_(8),p(),h(9,"span",2),_(10),p()),i&2&&(L(r._firstRowOffset{class t{static \u0275fac=function(i){return new(i||t)};static \u0275cmp=E({type:t,selectors:[["ng-component"]],decls:0,vars:0,template:function(i,r){},styles:[`.mat-badge{position:relative}.mat-badge.mat-badge{overflow:visible}.mat-badge-content{position:absolute;text-align:center;display:inline-block;transition:transform 200ms ease-in-out;transform:scale(0.6);overflow:hidden;white-space:nowrap;text-overflow:ellipsis;box-sizing:border-box;pointer-events:none;background-color:var(--mat-badge-background-color, var(--mat-sys-error));color:var(--mat-badge-text-color, var(--mat-sys-on-error));font-family:var(--mat-badge-text-font, var(--mat-sys-label-small-font));font-weight:var(--mat-badge-text-weight, var(--mat-sys-label-small-weight));border-radius:var(--mat-badge-container-shape, var(--mat-sys-corner-full))}.mat-badge-above .mat-badge-content{bottom:100%}.mat-badge-below .mat-badge-content{top:100%}.mat-badge-before .mat-badge-content{right:100%}[dir=rtl] .mat-badge-before .mat-badge-content{right:auto;left:100%}.mat-badge-after .mat-badge-content{left:100%}[dir=rtl] .mat-badge-after .mat-badge-content{left:auto;right:100%}@media(forced-colors: active){.mat-badge-content{outline:solid 1px;border-radius:0}}.mat-badge-disabled .mat-badge-content{background-color:var(--mat-badge-disabled-state-background-color, color-mix(in srgb, var(--mat-sys-error) 38%, transparent));color:var(--mat-badge-disabled-state-text-color, var(--mat-sys-on-error))}.mat-badge-hidden .mat-badge-content{display:none}.ng-animate-disabled .mat-badge-content,.mat-badge-content._mat-animation-noopable{transition:none}.mat-badge-content.mat-badge-active{transform:none}.mat-badge-small .mat-badge-content{width:var(--mat-badge-legacy-small-size-container-size, unset);height:var(--mat-badge-legacy-small-size-container-size, unset);min-width:var(--mat-badge-small-size-container-size, 6px);min-height:var(--mat-badge-small-size-container-size, 6px);line-height:var(--mat-badge-small-size-line-height, 6px);padding:var(--mat-badge-small-size-container-padding, 0);font-size:var(--mat-badge-small-size-text-size, 0);margin:var(--mat-badge-small-size-container-offset, -6px 0)}.mat-badge-small.mat-badge-overlap .mat-badge-content{margin:var(--mat-badge-small-size-container-overlap-offset, -6px)}.mat-badge-medium .mat-badge-content{width:var(--mat-badge-legacy-container-size, unset);height:var(--mat-badge-legacy-container-size, unset);min-width:var(--mat-badge-container-size, 16px);min-height:var(--mat-badge-container-size, 16px);line-height:var(--mat-badge-line-height, 16px);padding:var(--mat-badge-container-padding, 0 4px);font-size:var(--mat-badge-text-size, var(--mat-sys-label-small-size));margin:var(--mat-badge-container-offset, -12px 0)}.mat-badge-medium.mat-badge-overlap .mat-badge-content{margin:var(--mat-badge-container-overlap-offset, -12px)}.mat-badge-large .mat-badge-content{width:var(--mat-badge-legacy-large-size-container-size, unset);height:var(--mat-badge-legacy-large-size-container-size, unset);min-width:var(--mat-badge-large-size-container-size, 16px);min-height:var(--mat-badge-large-size-container-size, 16px);line-height:var(--mat-badge-large-size-line-height, 16px);padding:var(--mat-badge-large-size-container-padding, 0 4px);font-size:var(--mat-badge-large-size-text-size, var(--mat-sys-label-small-size));margin:var(--mat-badge-large-size-container-offset, -12px 0)}.mat-badge-large.mat-badge-overlap .mat-badge-content{margin:var(--mat-badge-large-size-container-overlap-offset, -12px)} +`],encapsulation:2,changeDetection:0})}return t})(),m8=(()=>{class t{_ngZone=u(ae);_elementRef=u(q);_ariaDescriber=u(Xm);_renderer=u(je);_animationsDisabled=Ye();_idGenerator=u(Ze);get color(){return this._color}set color(e){this._setColor(e),this._color=e}_color="primary";overlap=!0;disabled;position="above after";get content(){return this._content}set content(e){this._updateRenderedContent(e)}_content;get description(){return this._description}set description(e){this._updateDescription(e)}_description;size="medium";hidden;_badgeElement;_inlineBadgeDescription;_isInitialized=!1;_interactivityChecker=u(ac);_document=u(ge);constructor(){let e=u(ut);e.load(Wpe),e.load(Qr)}isAbove(){return this.position.indexOf("below")===-1}isAfter(){return this.position.indexOf("before")===-1}getBadgeElement(){return this._badgeElement}ngOnInit(){this._clearExistingBadges(),this.content&&!this._badgeElement&&(this._badgeElement=this._createBadgeElement(),this._updateRenderedContent(this.content)),this._isInitialized=!0}ngOnDestroy(){this._renderer.destroyNode&&(this._renderer.destroyNode(this._badgeElement),this._inlineBadgeDescription?.remove()),this._ariaDescriber.removeDescription(this._elementRef.nativeElement,this.description)}_isHostInteractive(){return this._interactivityChecker.isFocusable(this._elementRef.nativeElement,{ignoreVisibility:!0})}_createBadgeElement(){let e=this._renderer.createElement("span"),i="mat-badge-active";return e.setAttribute("id",this._idGenerator.getId("mat-badge-content-")),e.setAttribute("aria-hidden","true"),e.classList.add(u8),this._animationsDisabled&&e.classList.add("_mat-animation-noopable"),this._elementRef.nativeElement.appendChild(e),typeof requestAnimationFrame=="function"&&!this._animationsDisabled?this._ngZone.runOutsideAngular(()=>{requestAnimationFrame(()=>{e.classList.add(i)})}):e.classList.add(i),e}_updateRenderedContent(e){let i=`${e??""}`.trim();this._isInitialized&&i&&!this._badgeElement&&(this._badgeElement=this._createBadgeElement()),this._badgeElement&&(this._badgeElement.textContent=i),this._content=i}_updateDescription(e){this._ariaDescriber.removeDescription(this._elementRef.nativeElement,this.description),(!e||this._isHostInteractive())&&this._removeInlineDescription(),this._description=e,this._isHostInteractive()?this._ariaDescriber.describe(this._elementRef.nativeElement,e):this._updateInlineDescription()}_updateInlineDescription(){this._inlineBadgeDescription||(this._inlineBadgeDescription=this._document.createElement("span"),this._inlineBadgeDescription.classList.add("cdk-visually-hidden")),this._inlineBadgeDescription.textContent=this.description,this._badgeElement?.appendChild(this._inlineBadgeDescription)}_removeInlineDescription(){this._inlineBadgeDescription?.remove(),this._inlineBadgeDescription=void 0}_setColor(e){let i=this._elementRef.nativeElement.classList;i.remove(`mat-badge-${this._color}`),e&&i.add(`mat-badge-${e}`)}_clearExistingBadges(){let e=this._elementRef.nativeElement.querySelectorAll(`:scope > .${u8}`);for(let i of Array.from(e))i!==this._badgeElement&&i.remove()}static \u0275fac=function(i){return new(i||t)};static \u0275dir=F({type:t,selectors:[["","matBadge",""]],hostAttrs:[1,"mat-badge"],hostVars:20,hostBindings:function(i,r){i&2&&G("mat-badge-overlap",r.overlap)("mat-badge-above",r.isAbove())("mat-badge-below",!r.isAbove())("mat-badge-before",!r.isAfter())("mat-badge-after",r.isAfter())("mat-badge-small",r.size==="small")("mat-badge-medium",r.size==="medium")("mat-badge-large",r.size==="large")("mat-badge-hidden",r.hidden||!r.content)("mat-badge-disabled",r.disabled)},inputs:{color:[0,"matBadgeColor","color"],overlap:[2,"matBadgeOverlap","overlap",V],disabled:[2,"matBadgeDisabled","disabled",V],position:[0,"matBadgePosition","position"],content:[0,"matBadge","content"],description:[0,"matBadgeDescription","description"],size:[0,"matBadgeSize","size"],hidden:[2,"matBadgeHidden","hidden",V]}})}return t})(),h8=(()=>{class t{static \u0275fac=function(i){return new(i||t)};static \u0275mod=ee({type:t});static \u0275inj=J({imports:[ll,we,we]})}return t})();var Ha=(()=>{class t{get vertical(){return this._vertical}set vertical(e){this._vertical=Ai(e)}_vertical=!1;get inset(){return this._inset}set inset(e){this._inset=Ai(e)}_inset=!1;static \u0275fac=function(i){return new(i||t)};static \u0275cmp=E({type:t,selectors:[["mat-divider"]],hostAttrs:["role","separator",1,"mat-divider"],hostVars:7,hostBindings:function(i,r){i&2&&(X("aria-orientation",r.vertical?"vertical":"horizontal"),G("mat-divider-vertical",r.vertical)("mat-divider-horizontal",!r.vertical)("mat-divider-inset",r.inset))},inputs:{vertical:"vertical",inset:"inset"},decls:0,vars:0,template:function(i,r){},styles:[`.mat-divider{display:block;margin:0;border-top-style:solid;border-top-color:var(--mat-divider-color, var(--mat-sys-outline-variant));border-top-width:var(--mat-divider-width, 1px)}.mat-divider.mat-divider-vertical{border-top:0;border-right-style:solid;border-right-color:var(--mat-divider-color, var(--mat-sys-outline-variant));border-right-width:var(--mat-divider-width, 1px)}.mat-divider.mat-divider-inset{margin-left:80px}[dir=rtl] .mat-divider.mat-divider-inset{margin-left:auto;margin-right:80px} +`],encapsulation:2,changeDetection:0})}return t})(),sa=(()=>{class t{static \u0275fac=function(i){return new(i||t)};static \u0275mod=ee({type:t});static \u0275inj=J({imports:[we,we]})}return t})();var p8=["*"],f8=`.mdc-list{margin:0;padding:8px 0;list-style-type:none}.mdc-list:focus{outline:none}.mdc-list-item{display:flex;position:relative;justify-content:flex-start;overflow:hidden;padding:0;align-items:stretch;cursor:pointer;padding-left:16px;padding-right:16px;background-color:var(--mat-list-list-item-container-color, transparent);border-radius:var(--mat-list-list-item-container-shape, var(--mat-sys-corner-none))}.mdc-list-item.mdc-list-item--selected{background-color:var(--mat-list-list-item-selected-container-color)}.mdc-list-item:focus{outline:0}.mdc-list-item.mdc-list-item--disabled{cursor:auto}.mdc-list-item.mdc-list-item--with-one-line{height:var(--mat-list-list-item-one-line-container-height, 48px)}.mdc-list-item.mdc-list-item--with-one-line .mdc-list-item__start{align-self:center;margin-top:0}.mdc-list-item.mdc-list-item--with-one-line .mdc-list-item__end{align-self:center;margin-top:0}.mdc-list-item.mdc-list-item--with-two-lines{height:var(--mat-list-list-item-two-line-container-height, 64px)}.mdc-list-item.mdc-list-item--with-two-lines .mdc-list-item__start{align-self:flex-start;margin-top:16px}.mdc-list-item.mdc-list-item--with-two-lines .mdc-list-item__end{align-self:center;margin-top:0}.mdc-list-item.mdc-list-item--with-three-lines{height:var(--mat-list-list-item-three-line-container-height, 88px)}.mdc-list-item.mdc-list-item--with-three-lines .mdc-list-item__start{align-self:flex-start;margin-top:16px}.mdc-list-item.mdc-list-item--with-three-lines .mdc-list-item__end{align-self:flex-start;margin-top:16px}.mdc-list-item.mdc-list-item--selected::before,.mdc-list-item.mdc-list-item--selected:focus::before,.mdc-list-item:not(.mdc-list-item--selected):focus::before{position:absolute;box-sizing:border-box;width:100%;height:100%;top:0;left:0;content:"";pointer-events:none}a.mdc-list-item{color:inherit;text-decoration:none}.mdc-list-item__start{fill:currentColor;flex-shrink:0;pointer-events:none}.mdc-list-item--with-leading-icon .mdc-list-item__start{color:var(--mat-list-list-item-leading-icon-color, var(--mat-sys-on-surface-variant));width:var(--mat-list-list-item-leading-icon-size, 24px);height:var(--mat-list-list-item-leading-icon-size, 24px);margin-left:16px;margin-right:32px}[dir=rtl] .mdc-list-item--with-leading-icon .mdc-list-item__start{margin-left:32px;margin-right:16px}.mdc-list-item--with-leading-icon:hover .mdc-list-item__start{color:var(--mat-list-list-item-hover-leading-icon-color)}.mdc-list-item--with-leading-avatar .mdc-list-item__start{width:var(--mat-list-list-item-leading-avatar-size, 40px);height:var(--mat-list-list-item-leading-avatar-size, 40px);margin-left:16px;margin-right:16px;border-radius:50%}.mdc-list-item--with-leading-avatar .mdc-list-item__start,[dir=rtl] .mdc-list-item--with-leading-avatar .mdc-list-item__start{margin-left:16px;margin-right:16px;border-radius:50%}.mdc-list-item__end{flex-shrink:0;pointer-events:none}.mdc-list-item--with-trailing-meta .mdc-list-item__end{font-family:var(--mat-list-list-item-trailing-supporting-text-font, var(--mat-sys-label-small-font));line-height:var(--mat-list-list-item-trailing-supporting-text-line-height, var(--mat-sys-label-small-line-height));font-size:var(--mat-list-list-item-trailing-supporting-text-size, var(--mat-sys-label-small-size));font-weight:var(--mat-list-list-item-trailing-supporting-text-weight, var(--mat-sys-label-small-weight));letter-spacing:var(--mat-list-list-item-trailing-supporting-text-tracking, var(--mat-sys-label-small-tracking))}.mdc-list-item--with-trailing-icon .mdc-list-item__end{color:var(--mat-list-list-item-trailing-icon-color, var(--mat-sys-on-surface-variant));width:var(--mat-list-list-item-trailing-icon-size, 24px);height:var(--mat-list-list-item-trailing-icon-size, 24px)}.mdc-list-item--with-trailing-icon:hover .mdc-list-item__end{color:var(--mat-list-list-item-hover-trailing-icon-color)}.mdc-list-item.mdc-list-item--with-trailing-meta .mdc-list-item__end{color:var(--mat-list-list-item-trailing-supporting-text-color, var(--mat-sys-on-surface-variant))}.mdc-list-item--selected.mdc-list-item--with-trailing-icon .mdc-list-item__end{color:var(--mat-list-list-item-selected-trailing-icon-color, var(--mat-sys-primary))}.mdc-list-item__content{text-overflow:ellipsis;white-space:nowrap;overflow:hidden;align-self:center;flex:1;pointer-events:none}.mdc-list-item--with-two-lines .mdc-list-item__content,.mdc-list-item--with-three-lines .mdc-list-item__content{align-self:stretch}.mdc-list-item__primary-text{text-overflow:ellipsis;white-space:nowrap;overflow:hidden;color:var(--mat-list-list-item-label-text-color, var(--mat-sys-on-surface));font-family:var(--mat-list-list-item-label-text-font, var(--mat-sys-body-large-font));line-height:var(--mat-list-list-item-label-text-line-height, var(--mat-sys-body-large-line-height));font-size:var(--mat-list-list-item-label-text-size, var(--mat-sys-body-large-size));font-weight:var(--mat-list-list-item-label-text-weight, var(--mat-sys-body-large-weight));letter-spacing:var(--mat-list-list-item-label-text-tracking, var(--mat-sys-body-large-tracking))}.mdc-list-item:hover .mdc-list-item__primary-text{color:var(--mat-list-list-item-hover-label-text-color, var(--mat-sys-on-surface))}.mdc-list-item:focus .mdc-list-item__primary-text{color:var(--mat-list-list-item-focus-label-text-color, var(--mat-sys-on-surface))}.mdc-list-item--with-two-lines .mdc-list-item__primary-text,.mdc-list-item--with-three-lines .mdc-list-item__primary-text{display:block;margin-top:0;line-height:normal;margin-bottom:-20px}.mdc-list-item--with-two-lines .mdc-list-item__primary-text::before,.mdc-list-item--with-three-lines .mdc-list-item__primary-text::before{display:inline-block;width:0;height:28px;content:"";vertical-align:0}.mdc-list-item--with-two-lines .mdc-list-item__primary-text::after,.mdc-list-item--with-three-lines .mdc-list-item__primary-text::after{display:inline-block;width:0;height:20px;content:"";vertical-align:-20px}.mdc-list-item__secondary-text{text-overflow:ellipsis;white-space:nowrap;overflow:hidden;display:block;margin-top:0;color:var(--mat-list-list-item-supporting-text-color, var(--mat-sys-on-surface-variant));font-family:var(--mat-list-list-item-supporting-text-font, var(--mat-sys-body-medium-font));line-height:var(--mat-list-list-item-supporting-text-line-height, var(--mat-sys-body-medium-line-height));font-size:var(--mat-list-list-item-supporting-text-size, var(--mat-sys-body-medium-size));font-weight:var(--mat-list-list-item-supporting-text-weight, var(--mat-sys-body-medium-weight));letter-spacing:var(--mat-list-list-item-supporting-text-tracking, var(--mat-sys-body-medium-tracking))}.mdc-list-item__secondary-text::before{display:inline-block;width:0;height:20px;content:"";vertical-align:0}.mdc-list-item--with-three-lines .mdc-list-item__secondary-text{white-space:normal;line-height:20px}.mdc-list-item--with-overline .mdc-list-item__secondary-text{white-space:nowrap;line-height:auto}.mdc-list-item--with-leading-radio.mdc-list-item,.mdc-list-item--with-leading-checkbox.mdc-list-item,.mdc-list-item--with-leading-icon.mdc-list-item,.mdc-list-item--with-leading-avatar.mdc-list-item{padding-left:0;padding-right:16px}[dir=rtl] .mdc-list-item--with-leading-radio.mdc-list-item,[dir=rtl] .mdc-list-item--with-leading-checkbox.mdc-list-item,[dir=rtl] .mdc-list-item--with-leading-icon.mdc-list-item,[dir=rtl] .mdc-list-item--with-leading-avatar.mdc-list-item{padding-left:16px;padding-right:0}.mdc-list-item--with-leading-radio.mdc-list-item--with-two-lines .mdc-list-item__primary-text,.mdc-list-item--with-leading-checkbox.mdc-list-item--with-two-lines .mdc-list-item__primary-text,.mdc-list-item--with-leading-icon.mdc-list-item--with-two-lines .mdc-list-item__primary-text,.mdc-list-item--with-leading-avatar.mdc-list-item--with-two-lines .mdc-list-item__primary-text{display:block;margin-top:0;line-height:normal;margin-bottom:-20px}.mdc-list-item--with-leading-radio.mdc-list-item--with-two-lines .mdc-list-item__primary-text::before,.mdc-list-item--with-leading-checkbox.mdc-list-item--with-two-lines .mdc-list-item__primary-text::before,.mdc-list-item--with-leading-icon.mdc-list-item--with-two-lines .mdc-list-item__primary-text::before,.mdc-list-item--with-leading-avatar.mdc-list-item--with-two-lines .mdc-list-item__primary-text::before{display:inline-block;width:0;height:32px;content:"";vertical-align:0}.mdc-list-item--with-leading-radio.mdc-list-item--with-two-lines .mdc-list-item__primary-text::after,.mdc-list-item--with-leading-checkbox.mdc-list-item--with-two-lines .mdc-list-item__primary-text::after,.mdc-list-item--with-leading-icon.mdc-list-item--with-two-lines .mdc-list-item__primary-text::after,.mdc-list-item--with-leading-avatar.mdc-list-item--with-two-lines .mdc-list-item__primary-text::after{display:inline-block;width:0;height:20px;content:"";vertical-align:-20px}.mdc-list-item--with-leading-radio.mdc-list-item--with-two-lines.mdc-list-item--with-trailing-meta .mdc-list-item__end,.mdc-list-item--with-leading-checkbox.mdc-list-item--with-two-lines.mdc-list-item--with-trailing-meta .mdc-list-item__end,.mdc-list-item--with-leading-icon.mdc-list-item--with-two-lines.mdc-list-item--with-trailing-meta .mdc-list-item__end,.mdc-list-item--with-leading-avatar.mdc-list-item--with-two-lines.mdc-list-item--with-trailing-meta .mdc-list-item__end{display:block;margin-top:0;line-height:normal}.mdc-list-item--with-leading-radio.mdc-list-item--with-two-lines.mdc-list-item--with-trailing-meta .mdc-list-item__end::before,.mdc-list-item--with-leading-checkbox.mdc-list-item--with-two-lines.mdc-list-item--with-trailing-meta .mdc-list-item__end::before,.mdc-list-item--with-leading-icon.mdc-list-item--with-two-lines.mdc-list-item--with-trailing-meta .mdc-list-item__end::before,.mdc-list-item--with-leading-avatar.mdc-list-item--with-two-lines.mdc-list-item--with-trailing-meta .mdc-list-item__end::before{display:inline-block;width:0;height:32px;content:"";vertical-align:0}.mdc-list-item--with-trailing-icon.mdc-list-item,[dir=rtl] .mdc-list-item--with-trailing-icon.mdc-list-item{padding-left:0;padding-right:0}.mdc-list-item--with-trailing-icon .mdc-list-item__end{margin-left:16px;margin-right:16px}.mdc-list-item--with-trailing-meta.mdc-list-item{padding-left:16px;padding-right:0}[dir=rtl] .mdc-list-item--with-trailing-meta.mdc-list-item{padding-left:0;padding-right:16px}.mdc-list-item--with-trailing-meta .mdc-list-item__end{-webkit-user-select:none;user-select:none;margin-left:28px;margin-right:16px}[dir=rtl] .mdc-list-item--with-trailing-meta .mdc-list-item__end{margin-left:16px;margin-right:28px}.mdc-list-item--with-trailing-meta.mdc-list-item--with-three-lines .mdc-list-item__end,.mdc-list-item--with-trailing-meta.mdc-list-item--with-two-lines .mdc-list-item__end{display:block;line-height:normal;align-self:flex-start;margin-top:0}.mdc-list-item--with-trailing-meta.mdc-list-item--with-three-lines .mdc-list-item__end::before,.mdc-list-item--with-trailing-meta.mdc-list-item--with-two-lines .mdc-list-item__end::before{display:inline-block;width:0;height:28px;content:"";vertical-align:0}.mdc-list-item--with-leading-radio .mdc-list-item__start,.mdc-list-item--with-leading-checkbox .mdc-list-item__start{margin-left:8px;margin-right:24px}[dir=rtl] .mdc-list-item--with-leading-radio .mdc-list-item__start,[dir=rtl] .mdc-list-item--with-leading-checkbox .mdc-list-item__start{margin-left:24px;margin-right:8px}.mdc-list-item--with-leading-radio.mdc-list-item--with-two-lines .mdc-list-item__start,.mdc-list-item--with-leading-checkbox.mdc-list-item--with-two-lines .mdc-list-item__start{align-self:flex-start;margin-top:8px}.mdc-list-item--with-trailing-radio.mdc-list-item,.mdc-list-item--with-trailing-checkbox.mdc-list-item{padding-left:16px;padding-right:0}[dir=rtl] .mdc-list-item--with-trailing-radio.mdc-list-item,[dir=rtl] .mdc-list-item--with-trailing-checkbox.mdc-list-item{padding-left:0;padding-right:16px}.mdc-list-item--with-trailing-radio.mdc-list-item--with-leading-icon,.mdc-list-item--with-trailing-radio.mdc-list-item--with-leading-avatar,.mdc-list-item--with-trailing-checkbox.mdc-list-item--with-leading-icon,.mdc-list-item--with-trailing-checkbox.mdc-list-item--with-leading-avatar{padding-left:0}[dir=rtl] .mdc-list-item--with-trailing-radio.mdc-list-item--with-leading-icon,[dir=rtl] .mdc-list-item--with-trailing-radio.mdc-list-item--with-leading-avatar,[dir=rtl] .mdc-list-item--with-trailing-checkbox.mdc-list-item--with-leading-icon,[dir=rtl] .mdc-list-item--with-trailing-checkbox.mdc-list-item--with-leading-avatar{padding-right:0}.mdc-list-item--with-trailing-radio .mdc-list-item__end,.mdc-list-item--with-trailing-checkbox .mdc-list-item__end{margin-left:24px;margin-right:8px}[dir=rtl] .mdc-list-item--with-trailing-radio .mdc-list-item__end,[dir=rtl] .mdc-list-item--with-trailing-checkbox .mdc-list-item__end{margin-left:8px;margin-right:24px}.mdc-list-item--with-trailing-radio.mdc-list-item--with-three-lines .mdc-list-item__end,.mdc-list-item--with-trailing-checkbox.mdc-list-item--with-three-lines .mdc-list-item__end{align-self:flex-start;margin-top:8px}.mdc-list-group__subheader{margin:.75rem 16px}.mdc-list-item--disabled .mdc-list-item__start,.mdc-list-item--disabled .mdc-list-item__content,.mdc-list-item--disabled .mdc-list-item__end{opacity:1}.mdc-list-item--disabled .mdc-list-item__primary-text,.mdc-list-item--disabled .mdc-list-item__secondary-text{opacity:var(--mat-list-list-item-disabled-label-text-opacity, 0.3)}.mdc-list-item--disabled.mdc-list-item--with-leading-icon .mdc-list-item__start{color:var(--mat-list-list-item-disabled-leading-icon-color, var(--mat-sys-on-surface));opacity:var(--mat-list-list-item-disabled-leading-icon-opacity, 0.38)}.mdc-list-item--disabled.mdc-list-item--with-trailing-icon .mdc-list-item__end{color:var(--mat-list-list-item-disabled-trailing-icon-color, var(--mat-sys-on-surface));opacity:var(--mat-list-list-item-disabled-trailing-icon-opacity, 0.38)}.mat-mdc-list-item.mat-mdc-list-item-both-leading-and-trailing,[dir=rtl] .mat-mdc-list-item.mat-mdc-list-item-both-leading-and-trailing{padding-left:0;padding-right:0}.mdc-list-item.mdc-list-item--disabled .mdc-list-item__primary-text{color:var(--mat-list-list-item-disabled-label-text-color, var(--mat-sys-on-surface))}.mdc-list-item:hover::before{background-color:var(--mat-list-list-item-hover-state-layer-color, var(--mat-sys-on-surface));opacity:var(--mat-list-list-item-hover-state-layer-opacity, var(--mat-sys-hover-state-layer-opacity))}.mdc-list-item.mdc-list-item--disabled::before{background-color:var(--mat-list-list-item-disabled-state-layer-color, var(--mat-sys-on-surface));opacity:var(--mat-list-list-item-disabled-state-layer-opacity, var(--mat-sys-focus-state-layer-opacity))}.mdc-list-item:focus::before{background-color:var(--mat-list-list-item-focus-state-layer-color, var(--mat-sys-on-surface));opacity:var(--mat-list-list-item-focus-state-layer-opacity, var(--mat-sys-focus-state-layer-opacity))}.mdc-list-item--disabled .mdc-radio,.mdc-list-item--disabled .mdc-checkbox{opacity:var(--mat-list-list-item-disabled-label-text-opacity, 0.3)}.mdc-list-item--with-leading-avatar .mat-mdc-list-item-avatar{border-radius:var(--mat-list-list-item-leading-avatar-shape, var(--mat-sys-corner-full));background-color:var(--mat-list-list-item-leading-avatar-color, var(--mat-sys-primary-container))}.mat-mdc-list-item-icon{font-size:var(--mat-list-list-item-leading-icon-size, 24px)}@media(forced-colors: active){a.mdc-list-item--activated::after{content:"";position:absolute;top:50%;right:16px;transform:translateY(-50%);width:10px;height:0;border-bottom:solid 10px;border-radius:10px}a.mdc-list-item--activated [dir=rtl]::after{right:auto;left:16px}}.mat-mdc-list-base{display:block}.mat-mdc-list-base .mdc-list-item__start,.mat-mdc-list-base .mdc-list-item__end,.mat-mdc-list-base .mdc-list-item__content{pointer-events:auto}.mat-mdc-list-item,.mat-mdc-list-option{width:100%;box-sizing:border-box;-webkit-tap-highlight-color:rgba(0,0,0,0)}.mat-mdc-list-item:not(.mat-mdc-list-item-interactive),.mat-mdc-list-option:not(.mat-mdc-list-item-interactive){cursor:default}.mat-mdc-list-item .mat-divider-inset,.mat-mdc-list-option .mat-divider-inset{position:absolute;left:0;right:0;bottom:0}.mat-mdc-list-item .mat-mdc-list-item-avatar~.mat-divider-inset,.mat-mdc-list-option .mat-mdc-list-item-avatar~.mat-divider-inset{margin-left:72px}[dir=rtl] .mat-mdc-list-item .mat-mdc-list-item-avatar~.mat-divider-inset,[dir=rtl] .mat-mdc-list-option .mat-mdc-list-item-avatar~.mat-divider-inset{margin-right:72px}.mat-mdc-list-item-interactive::before{top:0;left:0;right:0;bottom:0;position:absolute;content:"";opacity:0;pointer-events:none;border-radius:inherit}.mat-mdc-list-item>.mat-focus-indicator{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none}.mat-mdc-list-item:focus>.mat-focus-indicator::before{content:""}.mat-mdc-list-item.mdc-list-item--with-three-lines .mat-mdc-list-item-line.mdc-list-item__secondary-text{white-space:nowrap;line-height:normal}.mat-mdc-list-item.mdc-list-item--with-three-lines .mat-mdc-list-item-unscoped-content.mdc-list-item__secondary-text{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2}mat-action-list button{background:none;color:inherit;border:none;font:inherit;outline:inherit;-webkit-tap-highlight-color:rgba(0,0,0,0);text-align:start}mat-action-list button::-moz-focus-inner{border:0}.mdc-list-item--with-leading-icon .mdc-list-item__start{margin-inline-start:var(--mat-list-list-item-leading-icon-start-space, 16px);margin-inline-end:var(--mat-list-list-item-leading-icon-end-space, 16px)}.mat-mdc-nav-list .mat-mdc-list-item{border-radius:var(--mat-list-active-indicator-shape, var(--mat-sys-corner-full));--mat-focus-indicator-border-radius: var(--mat-list-active-indicator-shape, var(--mat-sys-corner-full))}.mat-mdc-nav-list .mat-mdc-list-item.mdc-list-item--activated{background-color:var(--mat-list-active-indicator-color, var(--mat-sys-secondary-container))} +`,qpe=["unscopedContent"],Ype=["text"],Qpe=[[["","matListItemAvatar",""],["","matListItemIcon",""]],[["","matListItemTitle",""]],[["","matListItemLine",""]],"*",[["","matListItemMeta",""]],[["mat-divider"]]],Kpe=["[matListItemAvatar],[matListItemIcon]","[matListItemTitle]","[matListItemLine]","*","[matListItemMeta]","mat-divider"];var Zpe=new T("ListOption"),Dl=(()=>{class t{_elementRef=u(q);constructor(){}static \u0275fac=function(i){return new(i||t)};static \u0275dir=F({type:t,selectors:[["","matListItemTitle",""]],hostAttrs:[1,"mat-mdc-list-item-title","mdc-list-item__primary-text"]})}return t})(),Tu=(()=>{class t{_elementRef=u(q);constructor(){}static \u0275fac=function(i){return new(i||t)};static \u0275dir=F({type:t,selectors:[["","matListItemLine",""]],hostAttrs:[1,"mat-mdc-list-item-line","mdc-list-item__secondary-text"]})}return t})(),SI=(()=>{class t{static \u0275fac=function(i){return new(i||t)};static \u0275dir=F({type:t,selectors:[["","matListItemMeta",""]],hostAttrs:[1,"mat-mdc-list-item-meta","mdc-list-item__end"]})}return t})(),g8=(()=>{class t{_listOption=u(Zpe,{optional:!0});constructor(){}_isAlignedAtStart(){return!this._listOption||this._listOption?._getTogglePosition()==="after"}static \u0275fac=function(i){return new(i||t)};static \u0275dir=F({type:t,hostVars:4,hostBindings:function(i,r){i&2&&G("mdc-list-item__start",r._isAlignedAtStart())("mdc-list-item__end",!r._isAlignedAtStart())}})}return t})(),Xpe=(()=>{class t extends g8{static \u0275fac=(()=>{let e;return function(r){return(e||(e=fe(t)))(r||t)}})();static \u0275dir=F({type:t,selectors:[["","matListItemAvatar",""]],hostAttrs:[1,"mat-mdc-list-item-avatar"],features:[le]})}return t})(),f_=(()=>{class t extends g8{static \u0275fac=(()=>{let e;return function(r){return(e||(e=fe(t)))(r||t)}})();static \u0275dir=F({type:t,selectors:[["","matListItemIcon",""]],hostAttrs:[1,"mat-mdc-list-item-icon"],features:[le]})}return t})(),Jpe=new T("MAT_LIST_CONFIG"),p_=(()=>{class t{_isNonInteractive=!0;get disableRipple(){return this._disableRipple}set disableRipple(e){this._disableRipple=Ai(e)}_disableRipple=!1;get disabled(){return this._disabled()}set disabled(e){this._disabled.set(Ai(e))}_disabled=he(!1);_defaultOptions=u(Jpe,{optional:!0});static \u0275fac=function(i){return new(i||t)};static \u0275dir=F({type:t,hostVars:1,hostBindings:function(i,r){i&2&&X("aria-disabled",r.disabled)},inputs:{disableRipple:"disableRipple",disabled:"disabled"}})}return t})(),efe=(()=>{class t{_elementRef=u(q);_ngZone=u(ae);_listBase=u(p_,{optional:!0});_platform=u(qe);_hostElement;_isButtonElement;_noopAnimations=Ye();_avatars;_icons;set lines(e){this._explicitLines=Ln(e,null),this._updateItemLines(!1)}_explicitLines=null;get disableRipple(){return this.disabled||this._disableRipple||this._noopAnimations||!!this._listBase?.disableRipple}set disableRipple(e){this._disableRipple=Ai(e)}_disableRipple=!1;get disabled(){return this._disabled()||!!this._listBase?.disabled}set disabled(e){this._disabled.set(Ai(e))}_disabled=he(!1);_subscriptions=new ke;_rippleRenderer=null;_hasUnscopedTextContent=!1;rippleConfig;get rippleDisabled(){return this.disableRipple||!!this.rippleConfig.disabled}constructor(){u(ut).load(Di);let e=u(Cs,{optional:!0});this.rippleConfig=e||{},this._hostElement=this._elementRef.nativeElement,this._isButtonElement=this._hostElement.nodeName.toLowerCase()==="button",this._listBase&&!this._listBase._isNonInteractive&&this._initInteractiveListItem(),this._isButtonElement&&!this._hostElement.hasAttribute("type")&&this._hostElement.setAttribute("type","button")}ngAfterViewInit(){this._monitorProjectedLinesAndTitle(),this._updateItemLines(!0)}ngOnDestroy(){this._subscriptions.unsubscribe(),this._rippleRenderer!==null&&this._rippleRenderer._removeTriggerEvents()}_hasIconOrAvatar(){return!!(this._avatars.length||this._icons.length)}_initInteractiveListItem(){this._hostElement.classList.add("mat-mdc-list-item-interactive"),this._rippleRenderer=new lc(this,this._ngZone,this._hostElement,this._platform,u(de)),this._rippleRenderer.setupTriggerEvents(this._hostElement)}_monitorProjectedLinesAndTitle(){this._ngZone.runOutsideAngular(()=>{this._subscriptions.add(Je(this._lines.changes,this._titles.changes).subscribe(()=>this._updateItemLines(!1)))})}_updateItemLines(e){if(!this._lines||!this._titles||!this._unscopedContent)return;e&&this._checkDomForUnscopedTextContent();let i=this._explicitLines??this._inferLinesFromContent(),r=this._unscopedContent.nativeElement;if(this._hostElement.classList.toggle("mat-mdc-list-item-single-line",i<=1),this._hostElement.classList.toggle("mdc-list-item--with-one-line",i<=1),this._hostElement.classList.toggle("mdc-list-item--with-two-lines",i===2),this._hostElement.classList.toggle("mdc-list-item--with-three-lines",i===3),this._hasUnscopedTextContent){let o=this._titles.length===0&&i===1;r.classList.toggle("mdc-list-item__primary-text",o),r.classList.toggle("mdc-list-item__secondary-text",!o)}else r.classList.remove("mdc-list-item__primary-text"),r.classList.remove("mdc-list-item__secondary-text")}_inferLinesFromContent(){let e=this._titles.length+this._lines.length;return this._hasUnscopedTextContent&&(e+=1),e}_checkDomForUnscopedTextContent(){this._hasUnscopedTextContent=Array.from(this._unscopedContent.nativeElement.childNodes).filter(e=>e.nodeType!==e.COMMENT_NODE).some(e=>!!(e.textContent&&e.textContent.trim()))}static \u0275fac=function(i){return new(i||t)};static \u0275dir=F({type:t,contentQueries:function(i,r,o){if(i&1&&(xe(o,Xpe,4),xe(o,f_,4)),i&2){let a;B(a=j())&&(r._avatars=a),B(a=j())&&(r._icons=a)}},hostVars:4,hostBindings:function(i,r){i&2&&(X("aria-disabled",r.disabled)("disabled",r._isButtonElement&&r.disabled||null),G("mdc-list-item--disabled",r.disabled))},inputs:{lines:"lines",disableRipple:"disableRipple",disabled:"disabled"}})}return t})();var Fs=(()=>{class t extends p_{static \u0275fac=(()=>{let e;return function(r){return(e||(e=fe(t)))(r||t)}})();static \u0275cmp=E({type:t,selectors:[["mat-list"]],hostAttrs:[1,"mat-mdc-list","mat-mdc-list-base","mdc-list"],exportAs:["matList"],features:[Ce([{provide:p_,useExisting:t}]),le],ngContentSelectors:p8,decls:1,vars:0,template:function(i,r){i&1&&(Me(),oe(0))},styles:[f8],encapsulation:2,changeDetection:0})}return t})(),la=(()=>{class t extends efe{_lines;_titles;_meta;_unscopedContent;_itemText;get activated(){return this._activated}set activated(e){this._activated=Ai(e)}_activated=!1;_getAriaCurrent(){return this._hostElement.nodeName==="A"&&this._activated?"page":null}_hasBothLeadingAndTrailing(){return this._meta.length!==0&&(this._avatars.length!==0||this._icons.length!==0)}static \u0275fac=(()=>{let e;return function(r){return(e||(e=fe(t)))(r||t)}})();static \u0275cmp=E({type:t,selectors:[["mat-list-item"],["a","mat-list-item",""],["button","mat-list-item",""]],contentQueries:function(i,r,o){if(i&1&&(xe(o,Tu,5),xe(o,Dl,5),xe(o,SI,5)),i&2){let a;B(a=j())&&(r._lines=a),B(a=j())&&(r._titles=a),B(a=j())&&(r._meta=a)}},viewQuery:function(i,r){if(i&1&&(ie(qpe,5),ie(Ype,5)),i&2){let o;B(o=j())&&(r._unscopedContent=o.first),B(o=j())&&(r._itemText=o.first)}},hostAttrs:[1,"mat-mdc-list-item","mdc-list-item"],hostVars:13,hostBindings:function(i,r){i&2&&(X("aria-current",r._getAriaCurrent()),G("mdc-list-item--activated",r.activated)("mdc-list-item--with-leading-avatar",r._avatars.length!==0)("mdc-list-item--with-leading-icon",r._icons.length!==0)("mdc-list-item--with-trailing-meta",r._meta.length!==0)("mat-mdc-list-item-both-leading-and-trailing",r._hasBothLeadingAndTrailing())("_mat-animation-noopable",r._noopAnimations))},inputs:{activated:"activated"},exportAs:["matListItem"],features:[le],ngContentSelectors:Kpe,decls:10,vars:0,consts:[["unscopedContent",""],[1,"mdc-list-item__content"],[1,"mat-mdc-list-item-unscoped-content",3,"cdkObserveContent"],[1,"mat-focus-indicator"]],template:function(i,r){if(i&1){let o=Y();Me(Qpe),oe(0),h(1,"span",1),oe(2,1),oe(3,2),h(4,"span",2,0),S("cdkObserveContent",function(){return I(o),A(r._updateItemLines(!0))}),oe(6,3),p()(),oe(7,4),oe(8,5),k(9,"div",3)}},dependencies:[Wf],encapsulation:2,changeDetection:0})}return t})();var _8=(()=>{class t extends p_{_isNonInteractive=!1;static \u0275fac=(()=>{let e;return function(r){return(e||(e=fe(t)))(r||t)}})();static \u0275cmp=E({type:t,selectors:[["mat-nav-list"]],hostAttrs:["role","navigation",1,"mat-mdc-nav-list","mat-mdc-list-base","mdc-list"],exportAs:["matNavList"],features:[Ce([{provide:p_,useExisting:t}]),le],ngContentSelectors:p8,decls:1,vars:0,template:function(i,r){i&1&&(Me(),oe(0))},styles:[f8],encapsulation:2,changeDetection:0})}return t})();var ca=(()=>{class t{static \u0275fac=function(i){return new(i||t)};static \u0275mod=ee({type:t});static \u0275inj=J({imports:[Ym,we,yo,Q0,sa]})}return t})();var tfe=["mat-menu-item",""],ife=[[["mat-icon"],["","matMenuItemIcon",""]],"*"],nfe=["mat-icon, [matMenuItemIcon]","*"];function rfe(t,n){t&1&&(Gt(),h(0,"svg",2),k(1,"polygon",3),p())}var ofe=["*"];function afe(t,n){if(t&1){let e=Y();ft(0,"div",0),kv("click",function(){I(e);let r=C();return A(r.closed.emit("click"))})("animationstart",function(r){I(e);let o=C();return A(o._onAnimationStart(r.animationName))})("animationend",function(r){I(e);let o=C();return A(o._onAnimationDone(r.animationName))})("animationcancel",function(r){I(e);let o=C();return A(o._onAnimationDone(r.animationName))}),ft(1,"div",1),oe(2),vt()()}if(t&2){let e=C();it(e._classList),G("mat-menu-panel-animations-disabled",e._animationsDisabled)("mat-menu-panel-exit-animation",e._panelAnimationState==="void")("mat-menu-panel-animating",e._isAnimating()),si("id",e.panelId),X("aria-label",e.ariaLabel||null)("aria-labelledby",e.ariaLabelledby||null)("aria-describedby",e.ariaDescribedby||null)}}var II=new T("MAT_MENU_PANEL"),El=(()=>{class t{_elementRef=u(q);_document=u(ge);_focusMonitor=u(Yt);_parentMenu=u(II,{optional:!0});_changeDetectorRef=u(ye);role="menuitem";disabled=!1;disableRipple=!1;_hovered=new z;_focused=new z;_highlighted=!1;_triggersSubmenu=!1;constructor(){u(ut).load(Di),this._parentMenu?.addItem?.(this)}focus(e,i){this._focusMonitor&&e?this._focusMonitor.focusVia(this._getHostElement(),e,i):this._getHostElement().focus(i),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),i=e.querySelectorAll("mat-icon, .material-icons");for(let r=0;r{class t{_elementRef=u(q);_changeDetectorRef=u(ye);_injector=u(de);_keyManager;_xPosition;_yPosition;_firstItemFocusRef;_exitFallbackTimeout;_animationsDisabled=Ye();_allItems;_directDescendantItems=new pr;_classList={};_panelAnimationState="void";_animationDone=new z;_isAnimating=he(!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;hasBackdrop;set panelClass(e){let i=this._previousPanelClass,r=M({},this._classList);i&&i.length&&i.split(" ").forEach(o=>{r[o]=!1}),this._previousPanelClass=e,e&&e.length&&(e.split(" ").forEach(o=>{r[o]=!0}),this._elementRef.nativeElement.className=""),this._classList=r}_previousPanelClass;get classList(){return this.panelClass}set classList(e){this.panelClass=e}closed=new U;close=this.closed;panelId=u(Ze).getId("mat-menu-panel-");constructor(){let e=u(lfe);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 bs(this._directDescendantItems).withWrap().withTypeAhead().withHomeAndEnd(),this._keyManager.tabOut.subscribe(()=>this.closed.emit("tab")),this._directDescendantItems.changes.pipe(He(this._directDescendantItems),$e(e=>Je(...e.map(i=>i._focused)))).subscribe(e=>this._keyManager.updateActiveItem(e)),this._directDescendantItems.changes.subscribe(e=>{let i=this._keyManager;if(this._panelAnimationState==="enter"&&i.activeItem?._hasFocus()){let r=e.toArray(),o=Math.max(0,Math.min(r.length-1,i.activeItemIndex||0));r[o]&&!r[o].disabled?i.setActiveItem(o):i.setNextItemActive()}})}ngOnDestroy(){this._keyManager?.destroy(),this._directDescendantItems.destroy(),this.closed.complete(),this._firstItemFocusRef?.destroy(),clearTimeout(this._exitFallbackTimeout)}_hovered(){return this._directDescendantItems.changes.pipe(He(this._directDescendantItems),$e(i=>Je(...i.map(r=>r._hovered))))}addItem(e){}removeItem(e){}_handleKeydown(e){let i=e.keyCode,r=this._keyManager;switch(i){case 27:Ft(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:(i===38||i===40)&&r.setFocusOrigin("keyboard"),r.onKeydown(e);return}}focusFirstItem(e="program"){this._firstItemFocusRef?.destroy(),this._firstItemFocusRef=pt(()=>{let i=this._resolvePanel();if(!i||!i.contains(document.activeElement)){let r=this._keyManager;r.setFocusOrigin(e).setFirstItemActive(),!r.activeItem&&i&&i.focus()}},{injector:this._injector})}resetActiveItem(){this._keyManager.setActiveItem(-1)}setElevation(e){}setPositionClasses(e=this.xPosition,i=this.yPosition){this._classList=De(M({},this._classList),{"mat-menu-before":e==="before","mat-menu-after":e==="after","mat-menu-above":i==="above","mat-menu-below":i==="below"}),this._changeDetectorRef.markForCheck()}_onAnimationDone(e){let i=e===JC;(i||e===TI)&&(i&&(clearTimeout(this._exitFallbackTimeout),this._exitFallbackTimeout=void 0),this._animationDone.next(i?"void":"enter"),this._isAnimating.set(!1))}_onAnimationStart(e){(e===TI||e===JC)&&this._isAnimating.set(!0)}_setIsOpen(e){if(this._panelAnimationState=e?"enter":"void",e){if(this._keyManager.activeItemIndex===0){let i=this._resolvePanel();i&&(i.scrollTop=0)}}else this._animationsDisabled||(this._exitFallbackTimeout=setTimeout(()=>this._onAnimationDone(JC),200));this._animationsDisabled&&setTimeout(()=>{this._onAnimationDone(e?TI:JC)}),this._changeDetectorRef.markForCheck()}_updateDirectDescendants(){this._allItems.changes.pipe(He(this._allItems)).subscribe(e=>{this._directDescendantItems.reset(e.filter(i=>i._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(i){return new(i||t)};static \u0275cmp=E({type:t,selectors:[["mat-menu"]],contentQueries:function(i,r,o){if(i&1&&(xe(o,sfe,5),xe(o,El,5),xe(o,El,4)),i&2){let a;B(a=j())&&(r.lazyContent=a.first),B(a=j())&&(r._allItems=a),B(a=j())&&(r.items=a)}},viewQuery:function(i,r){if(i&1&&ie(te,5),i&2){let o;B(o=j())&&(r.templateRef=o.first)}},hostVars:3,hostBindings:function(i,r){i&2&&X("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",V],hasBackdrop:[2,"hasBackdrop","hasBackdrop",e=>e==null?null:V(e)],panelClass:[0,"class","panelClass"],classList:"classList"},outputs:{closed:"closed",close:"close"},exportAs:["matMenu"],features:[Ce([{provide:II,useExisting:t}])],ngContentSelectors:ofe,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(i,r){i&1&&(Me(),xa(0,afe,3,12,"ng-template"))},styles:[`mat-menu{display:none}.mat-mdc-menu-content{margin:0;padding:8px 0;outline:0}.mat-mdc-menu-content,.mat-mdc-menu-content .mat-mdc-menu-item .mat-mdc-menu-item-text{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;flex:1;white-space:normal;font-family:var(--mat-menu-item-label-text-font, var(--mat-sys-label-large-font));line-height:var(--mat-menu-item-label-text-line-height, var(--mat-sys-label-large-line-height));font-size:var(--mat-menu-item-label-text-size, var(--mat-sys-label-large-size));letter-spacing:var(--mat-menu-item-label-text-tracking, var(--mat-sys-label-large-tracking));font-weight:var(--mat-menu-item-label-text-weight, var(--mat-sys-label-large-weight))}@keyframes _mat-menu-enter{from{opacity:0;transform:scale(0.8)}to{opacity:1;transform:none}}@keyframes _mat-menu-exit{from{opacity:1}to{opacity:0}}.mat-mdc-menu-panel{min-width:112px;max-width:280px;overflow:auto;box-sizing:border-box;outline:0;animation:_mat-menu-enter 120ms cubic-bezier(0, 0, 0.2, 1);border-radius:var(--mat-menu-container-shape, var(--mat-sys-corner-extra-small));background-color:var(--mat-menu-container-color, var(--mat-sys-surface-container));box-shadow:var(--mat-menu-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));will-change:transform,opacity}.mat-mdc-menu-panel.mat-menu-panel-exit-animation{animation:_mat-menu-exit 100ms 25ms linear forwards}.mat-mdc-menu-panel.mat-menu-panel-animations-disabled{animation:none}.mat-mdc-menu-panel.mat-menu-panel-animating{pointer-events:none}.mat-mdc-menu-panel.mat-menu-panel-animating:has(.mat-mdc-menu-content:empty){display:none}@media(forced-colors: active){.mat-mdc-menu-panel{outline:solid 1px}}.mat-mdc-menu-panel .mat-divider{color:var(--mat-menu-divider-color, var(--mat-sys-surface-variant));margin-bottom:var(--mat-menu-divider-bottom-spacing, 8px);margin-top:var(--mat-menu-divider-top-spacing, 8px)}.mat-mdc-menu-item{display:flex;position:relative;align-items:center;justify-content:flex-start;overflow:hidden;padding:0;cursor:pointer;width:100%;text-align:left;box-sizing:border-box;color:inherit;font-size:inherit;background:none;text-decoration:none;margin:0;min-height:48px;padding-left:var(--mat-menu-item-leading-spacing, 12px);padding-right:var(--mat-menu-item-trailing-spacing, 12px);-webkit-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:rgba(0,0,0,0)}.mat-mdc-menu-item::-moz-focus-inner{border:0}[dir=rtl] .mat-mdc-menu-item{padding-left:var(--mat-menu-item-trailing-spacing, 12px);padding-right:var(--mat-menu-item-leading-spacing, 12px)}.mat-mdc-menu-item:has(.material-icons,mat-icon,[matButtonIcon]){padding-left:var(--mat-menu-item-with-icon-leading-spacing, 12px);padding-right:var(--mat-menu-item-with-icon-trailing-spacing, 12px)}[dir=rtl] .mat-mdc-menu-item:has(.material-icons,mat-icon,[matButtonIcon]){padding-left:var(--mat-menu-item-with-icon-trailing-spacing, 12px);padding-right:var(--mat-menu-item-with-icon-leading-spacing, 12px)}.mat-mdc-menu-item,.mat-mdc-menu-item:visited,.mat-mdc-menu-item:link{color:var(--mat-menu-item-label-text-color, var(--mat-sys-on-surface))}.mat-mdc-menu-item .mat-icon-no-color,.mat-mdc-menu-item .mat-mdc-menu-submenu-icon{color:var(--mat-menu-item-icon-color, var(--mat-sys-on-surface-variant))}.mat-mdc-menu-item[disabled]{cursor:default;opacity:.38}.mat-mdc-menu-item[disabled]::after{display:block;position:absolute;content:"";top:0;left:0;bottom:0;right:0}.mat-mdc-menu-item:focus{outline:0}.mat-mdc-menu-item .mat-icon{flex-shrink:0;margin-right:var(--mat-menu-item-spacing, 12px);height:var(--mat-menu-item-icon-size, 24px);width:var(--mat-menu-item-icon-size, 24px)}[dir=rtl] .mat-mdc-menu-item{text-align:right}[dir=rtl] .mat-mdc-menu-item .mat-icon{margin-right:0;margin-left:var(--mat-menu-item-spacing, 12px)}.mat-mdc-menu-item:not([disabled]):hover{background-color:var(--mat-menu-item-hover-state-layer-color, color-mix(in srgb, var(--mat-sys-on-surface) calc(var(--mat-sys-hover-state-layer-opacity) * 100%), transparent))}.mat-mdc-menu-item:not([disabled]).cdk-program-focused,.mat-mdc-menu-item:not([disabled]).cdk-keyboard-focused,.mat-mdc-menu-item:not([disabled]).mat-mdc-menu-item-highlighted{background-color:var(--mat-menu-item-focus-state-layer-color, color-mix(in srgb, var(--mat-sys-on-surface) calc(var(--mat-sys-focus-state-layer-opacity) * 100%), transparent))}@media(forced-colors: active){.mat-mdc-menu-item{margin-top:1px}}.mat-mdc-menu-submenu-icon{width:var(--mat-menu-item-icon-size, 24px);height:10px;fill:currentColor;padding-left:var(--mat-menu-item-spacing, 12px)}[dir=rtl] .mat-mdc-menu-submenu-icon{padding-right:var(--mat-menu-item-spacing, 12px);padding-left:0}[dir=rtl] .mat-mdc-menu-submenu-icon polygon{transform:scaleX(-1);transform-origin:center}@media(forced-colors: active){.mat-mdc-menu-submenu-icon{fill:CanvasText}}.mat-mdc-menu-item .mat-mdc-menu-ripple{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none} +`],encapsulation:2,changeDetection:0})}return t})(),b8=new T("mat-menu-scroll-strategy",{providedIn:"root",factory:()=>{let t=u(de);return()=>wn(t)}});function dfe(t){let n=u(de);return()=>wn(n)}var ufe={provide:b8,deps:[],useFactory:dfe};var ip=new WeakMap,mfe=(()=>{class t{_canHaveBackdrop;_element=u(q);_viewContainerRef=u(nt);_menuItemInstance=u(El,{optional:!0,self:!0});_dir=u(Vt,{optional:!0});_focusMonitor=u(Yt);_ngZone=u(ae);_injector=u(de);_scrollStrategy=u(b8);_changeDetectorRef=u(ye);_animationsDisabled=Ye();_portal;_overlayRef=null;_menuOpen=!1;_closingActionsSubscription=ke.EMPTY;_menuCloseSubscription=ke.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(i=>{this._destroyMenu(i),(i==="click"||i==="tab")&&this._parentMaterialMenu&&this._parentMaterialMenu.closed.emit(i)})),this._menuItemInstance?._setTriggersSubmenu(this._triggersSubmenu()))}_menuInternal;constructor(e){this._canHaveBackdrop=e;let i=u(II,{optional:!0});this._parentMaterialMenu=i instanceof jr?i:void 0}ngOnDestroy(){this._menu&&this._ownsMenu(this._menu)&&ip.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){let i=this._menu;if(this._menuOpen||!i)return;this._pendingRemoval?.unsubscribe();let r=ip.get(i);ip.set(i,this),r&&r!==this&&r._closeMenu();let o=this._createOverlay(i),a=o.getConfig(),s=a.positionStrategy;this._setPosition(i,s),this._canHaveBackdrop?a.hasBackdrop=i.hasBackdrop==null?!this._triggersSubmenu():i.hasBackdrop:a.hasBackdrop=!1,o.hasAttached()||(o.attach(this._getPortal(i)),i.lazyContent?.attach(this.menuData)),this._closingActionsSubscription=this._menuClosingActions().subscribe(()=>this._closeMenu()),i.parentMenu=this._triggersSubmenu()?this._parentMaterialMenu:void 0,i.direction=this.dir,e&&i.focusFirstItem(this._openedBy||"program"),this._setIsMenuOpen(!0),i instanceof jr&&(i._setIsOpen(!0),i._directDescendantItems.changes.pipe(Te(i.close)).subscribe(()=>{s.withLockedPosition(!1).reapplyLastPosition(),s.withLockedPosition(!0)}))}focus(e,i){this._focusMonitor&&e?this._focusMonitor.focusVia(this._element,e,i):this._element.nativeElement.focus(i)}_destroyMenu(e){let i=this._overlayRef,r=this._menu;!i||!this.menuOpen||(this._closingActionsSubscription.unsubscribe(),this._pendingRemoval?.unsubscribe(),r instanceof jr&&this._ownsMenu(r)?(this._pendingRemoval=r._animationDone.pipe(lt(1)).subscribe(()=>{i.detach(),ip.has(r)||r.lazyContent?.detach()}),r._setIsOpen(!1)):(i.detach(),r?.lazyContent?.detach()),r&&this._ownsMenu(r)&&ip.delete(r),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 i=this._getOverlayConfig(e);this._subscribeToPositions(e,i.positionStrategy),this._overlayRef=Nr(this._injector,i),this._overlayRef.keydownEvents().subscribe(r=>{this._menu instanceof jr&&this._menu._handleKeydown(r)})}return this._overlayRef}_getOverlayConfig(e){return new Fr({positionStrategy:Fa(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,i){e.setPositionClasses&&i.positionChanges.subscribe(r=>{this._ngZone.run(()=>{let o=r.connectionPair.overlayX==="start"?"after":"before",a=r.connectionPair.overlayY==="top"?"below":"above";e.setPositionClasses(o,a)})})}_setPosition(e,i){let[r,o]=e.xPosition==="before"?["end","start"]:["start","end"],[a,s]=e.yPosition==="above"?["bottom","top"]:["top","bottom"],[l,c]=[a,s],[d,m]=[r,o],f=0;if(this._triggersSubmenu()){if(m=r=e.xPosition==="before"?"start":"end",o=d=r==="end"?"start":"end",this._parentMaterialMenu){if(this._parentInnerPadding==null){let b=this._parentMaterialMenu.items.first;this._parentInnerPadding=b?b._getHostElement().offsetTop:0}f=a==="bottom"?this._parentInnerPadding:-this._parentInnerPadding}}else e.overlapTrigger||(l=a==="top"?"bottom":"top",c=s==="top"?"bottom":"top");i.withPositions([{originX:r,originY:l,overlayX:d,overlayY:a,offsetY:f},{originX:o,originY:l,overlayX:m,overlayY:a,offsetY:f},{originX:r,originY:c,overlayX:d,overlayY:s,offsetY:-f},{originX:o,originY:c,overlayX:m,overlayY:s,offsetY:-f}])}_menuClosingActions(){let e=this._getOutsideClickStream(this._overlayRef),i=this._overlayRef.detachments(),r=this._parentMaterialMenu?this._parentMaterialMenu.closed:Q(),o=this._parentMaterialMenu?this._parentMaterialMenu._hovered().pipe(ce(a=>this._menuOpen&&a!==this._menuItemInstance)):Q();return Je(e,r,o,i)}_getPortal(e){return(!this._portal||this._portal.templateRef!==e.templateRef)&&(this._portal=new Cn(e.templateRef,this._viewContainerRef)),this._portal}_ownsMenu(e){return ip.get(e)===this}static \u0275fac=function(i){Ad()};static \u0275dir=F({type:t})}return t})(),Ns=(()=>{class t extends mfe{_cleanupTouchstart;_hoverSubscription=ke.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 U;onMenuOpen=this.menuOpened;menuClosed=new U;onMenuClose=this.menuClosed;constructor(){super(!0);let e=u(je);this._cleanupTouchstart=e.listen(this._element.nativeElement,"touchstart",i=>{Gd(i)||(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){Wd(e)||(this._openedBy=e.button===0?"mouse":void 0,this.triggersSubmenu()&&e.preventDefault())}_handleKeydown(e){let i=e.keyCode;(i===13||i===32)&&(this._openedBy="keyboard"),this.triggersSubmenu()&&(i===39&&this.dir==="ltr"||i===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(i){return new(i||t)};static \u0275dir=F({type:t,selectors:[["","mat-menu-trigger-for",""],["","matMenuTriggerFor",""]],hostAttrs:[1,"mat-mdc-menu-trigger"],hostVars:3,hostBindings:function(i,r){i&1&&S("click",function(a){return r._handleClick(a)})("mousedown",function(a){return r._handleMousedown(a)})("keydown",function(a){return r._handleKeydown(a)}),i&2&&X("aria-haspopup",r.menu?"menu":null)("aria-expanded",r.menuOpen)("aria-controls",r.menuOpen?r.menu==null?null:r.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:[le]})}return t})();var Ls=(()=>{class t{static \u0275fac=function(i){return new(i||t)};static \u0275mod=ee({type:t});static \u0275inj=J({providers:[ufe],imports:[yo,we,er,vr,we]})}return t})(),v8={transformMenu:{type:7,name:"transformMenu",definitions:[{type:0,name:"void",styles:{type:6,styles:{opacity:0,transform:"scale(0.8)"},offset:null}},{type:1,expr:"void => enter",animation:{type:4,styles:{type:6,styles:{opacity:1,transform:"scale(1)"},offset:null},timings:"120ms cubic-bezier(0, 0, 0.2, 1)"},options:null},{type:1,expr:"* => void",animation:{type:4,styles:{type:6,styles:{opacity:0},offset:null},timings:"100ms 25ms linear"},options:null}],options:{}},fadeInItems:{type:7,name:"fadeInItems",definitions:[{type:0,name:"showing",styles:{type:6,styles:{opacity:1},offset:null}},{type:1,expr:"void => *",animation:[{type:6,styles:{opacity:0},offset:null},{type:4,styles:null,timings:"400ms 100ms cubic-bezier(0.55, 0, 0.55, 0.2)"}],options:null}],options:{}}},dlt=v8.fadeInItems,ult=v8.transformMenu;function hfe(t,n){if(t&1&&(h(0,"mat-list-item")(1,"mat-icon",3),_(2,"info"),p(),h(3,"a",4),_(4),p()()),t&2){let e=n.$implicit;g(4),H(e)}}var y8=(()=>{let n=class n{constructor(){this.messages=["Server Error Reports 1","Server Error Reports 2","Server Error Reports 3"]}};n.\u0275fac=function(r){return new(r||n)},n.\u0275cmp=E({type:n,selectors:[["app-notification"]],decls:8,vars:1,consts:[["menu","matMenu"],["matIconButton","",3,"matMenuTriggerFor"],["matBadge","5","matBadgeColor","warn","aria-hidden","false"],["matListItemIcon","",1,"m-x-16"],["matListItemTitle","","href","#"]],template:function(r,o){if(r&1&&(h(0,"button",1)(1,"mat-icon",2),_(2,"notifications"),p()(),h(3,"mat-menu",null,0)(5,"mat-nav-list"),xt(6,hfe,5,1,"mat-list-item",null,Hi),p()()),r&2){let a=Se(4);y("matMenuTriggerFor",a),g(6),Ct(o.messages)}},dependencies:[h8,m8,ze,ti,ot,mt,ca,_8,la,f_,Dl,Ls,jr,Ns],styles:["[_nghost-%COMP%] .mat-badge-content{--mat-badge-background-color: #ef0000;--mat-badge-text-color: #fff}"]});let t=n;return t})();var pfe=(t,n)=>n.value;function ffe(t,n){t&1&&k(0,"mat-pseudo-checkbox",5)}function gfe(t,n){if(t&1){let e=Y();h(0,"button",3),S("click",function(){let r=I(e).$implicit,o=C();return A(o.changeLang(r.value))}),h(1,"span",4),_(2),me(3,"translate"),N(4,ffe,1,0,"mat-pseudo-checkbox",5),p()()}if(t&2){let e=n.$implicit,i=C();g(2),ve(" ",Oe(3,2,e.name)," "),g(2),L(e.value===i.options.language?4:-1)}}var x8=(()=>{let n=class n{constructor(){this.settings=u(aa),this.options=this.settings.options,this.langs=[{value:"en-US",name:"en_us"},{value:"zh-CN",name:"zh_cn"},{value:"zh-TW",name:"zh_tw"},{value:"auto",name:"system"}]}changeLang(i){this.settings.setLanguage(i)}};n.\u0275fac=function(r){return new(r||n)},n.\u0275cmp=E({type:n,selectors:[["app-translate"]],decls:7,vars:1,consts:[["menu","matMenu"],["matIconButton","",3,"matMenuTriggerFor"],["mat-menu-item",""],["mat-menu-item","",3,"click"],[1,"d-flex","justify-content-between","gap-8"],["state","checked","appearance","minimal"]],template:function(r,o){if(r&1&&(h(0,"button",1)(1,"mat-icon"),_(2,"translate"),p()(),h(3,"mat-menu",null,0),xt(5,gfe,5,4,"button",2,pfe),p()),r&2){let a=Se(4);y("matMenuTriggerFor",a),g(5),Ct(o.langs)}},dependencies:[ze,ti,ot,mt,Ls,jr,El,Ns,Qd,Cr],encapsulation:2});let t=n;return t})();function _fe(t,n){t&1&&(h(0,"button",8)(1,"mat-icon"),_(2,"account_circle"),p(),h(3,"span"),_(4),me(5,"translate"),p()(),h(6,"button",9)(7,"mat-icon"),_(8,"edit"),p(),h(9,"span"),_(10),me(11,"translate"),p()()),t&2&&(g(4),H(Oe(5,2,"profile")),g(6),H(Oe(11,4,"edit_profile")))}function bfe(t,n){if(t&1){let e=Y();h(0,"button",6),S("click",function(){I(e);let r=C();return A(r.logout())}),h(1,"mat-icon"),_(2,"exit_to_app"),p(),h(3,"span"),_(4),me(5,"translate"),p()()}t&2&&(g(4),H(Oe(5,1,"logout")))}function vfe(t,n){if(t&1){let e=Y();h(0,"button",6),S("click",function(){I(e);let r=C();return A(r.login())}),h(1,"mat-icon"),_(2,"login"),p(),h(3,"span"),_(4),me(5,"translate"),p()()}t&2&&(g(4),H(Oe(5,1,"login")))}var C8=(()=>{let n=class n{constructor(){this.oidcAuth=u(Tt),this.router=u(Re),this.settings=u(aa),this.userName="Guest",this.userEmail="",this.userRoles="Anonymous User"}ngOnInit(){this.updateUserInfo(),this.authSubscription=this.oidcAuth.isAuthenticated$.subscribe(()=>{this.updateUserInfo()})}ngOnDestroy(){this.authSubscription?.unsubscribe()}updateUserInfo(){if(!this.oidcAuth.isAuthenticated()){this.userName="Guest",this.userEmail="",this.userRoles="Anonymous User";return}let i=this.oidcAuth.getUserInfo();console.log("UserButton: User info:",i),console.log("UserButton: Available claims:",i?Object.keys(i):"null"),this.userName=i?.name||i?.preferred_username||i?.given_name||i?.["http://schemas.xmlsoap.org/ws/2005/05/identity/claims/name"]||i?.sub||"User",this.userEmail=i?.email||i?.["http://schemas.xmlsoap.org/ws/2005/05/identity/claims/emailaddress"]||"";let r=this.oidcAuth.getUserRoles();this.userRoles=r.length>0?r.join(", "):"No roles",console.log("UserButton: Set userName to:",this.userName,"email to:",this.userEmail,"roles:",this.userRoles)}isAuthenticated(){return this.oidcAuth.isAuthenticated()}login(){this.oidcAuth.login()}logout(){this.oidcAuth.logout(),this.router.navigateByUrl("/dashboard")}restore(){this.settings.reset(),window.location.reload()}};n.\u0275fac=function(r){return new(r||n)},n.\u0275cmp=E({type:n,selectors:[["app-user"]],decls:22,vars:9,consts:[["menu","matMenu"],["matIconButton","",1,"user-button",3,"matMenuTriggerFor"],[1,"user-info"],[1,"user-name"],[1,"user-email"],[1,"user-roles"],["mat-menu-item","",3,"click"],["mat-menu-item",""],["routerLink","/profile/overview","mat-menu-item",""],["routerLink","/profile/settings","mat-menu-item",""]],template:function(r,o){if(r&1){let a=Y();h(0,"button",1)(1,"mat-icon"),_(2,"account_circle"),p()(),h(3,"mat-menu",null,0)(5,"div",2)(6,"div",3),_(7),p(),h(8,"div",4),_(9),p(),h(10,"div",5),_(11),p()(),k(12,"mat-divider"),N(13,_fe,12,6),h(14,"button",6),S("click",function(){return I(a),A(o.restore())}),h(15,"mat-icon"),_(16,"restore"),p(),h(17,"span"),_(18),me(19,"translate"),p()(),N(20,bfe,6,3,"button",7)(21,vfe,6,3,"button",7),p()}if(r&2){let a=Se(4);y("matMenuTriggerFor",a),g(7),H(o.userName),g(2),H(o.userEmail),g(2),H(o.userRoles),g(2),L(o.isAuthenticated()?13:-1),g(5),H(Oe(19,7,"restore_defaults")),g(2),L(o.isAuthenticated()?20:21)}},dependencies:[gt,Nn,ze,ti,ot,mt,Ls,jr,El,Ns,sa,Ha,wr,Cr],styles:["[_nghost-%COMP%]{display:inline-block}.user-button[_ngcontent-%COMP%]{display:inline-flex!important}.user-info[_ngcontent-%COMP%]{padding:16px;max-width:250px}.user-info[_ngcontent-%COMP%] .user-name[_ngcontent-%COMP%]{font-weight:500;font-size:14px;margin-bottom:4px}.user-info[_ngcontent-%COMP%] .user-email[_ngcontent-%COMP%]{font-size:12px;color:#0009;margin-bottom:4px}.user-info[_ngcontent-%COMP%] .user-roles[_ngcontent-%COMP%]{font-size:11px;color:#00000080;font-style:italic}"]});let t=n;return t})();function yfe(t,n){if(t&1){let e=Y();h(0,"button",4),S("click",function(){I(e);let r=C();return A(r.toggleSidenav.emit())}),h(1,"mat-icon"),_(2,"menu"),p()()}}function xfe(t,n){t&1&&k(0,"app-branding")}var w8=(()=>{let n=class n{constructor(){this.showToggle=ne(!0),this.showBranding=ne(!1),this.toggleSidenav=bi(),this.toggleSidenavNotice=bi()}toggleFullscreen(){kI.isEnabled&&kI.toggle()}};n.\u0275fac=function(r){return new(r||n)},n.\u0275cmp=E({type:n,selectors:[["app-header"]],hostAttrs:[1,"matero-header"],inputs:{showToggle:[1,"showToggle"],showBranding:[1,"showBranding"]},outputs:{toggleSidenav:"toggleSidenav",toggleSidenavNotice:"toggleSidenavNotice"},decls:17,vars:2,consts:[["matIconButton",""],[1,"flex-fill"],["matIconButton","",1,"hide-small",3,"click"],[1,"hide-small"],["matIconButton","",3,"click"]],template:function(r,o){r&1&&(h(0,"mat-toolbar"),N(1,yfe,3,0,"button",0),N(2,xfe,1,0,"app-branding"),k(3,"span",1)(4,"app-github-button"),h(5,"button",0)(6,"mat-icon"),_(7,"search"),p()(),k(8,"app-translate"),h(9,"button",2),S("click",function(){return o.toggleFullscreen()}),h(10,"mat-icon"),_(11,"fullscreen"),p()(),k(12,"app-notification",3)(13,"app-user"),h(14,"button",2),S("click",function(){return o.toggleSidenavNotice.emit()}),h(15,"mat-icon"),_(16,"list"),p()()()),r&2&&(g(),L(o.showToggle()?1:-1),g(),L(o.showBranding()?2:-1))},dependencies:[ZC,KC,ze,ti,ot,mt,XC,d8,y8,x8,C8],styles:[`.matero-header{--mat-toolbar-container-background-color: transparent;position:relative;z-index:200;display:block;background-color:var(--header-background-color);-webkit-backdrop-filter:blur(8px);backdrop-filter:blur(8px)} +`],encapsulation:2});let t=n;return t})();var np=["*"];function Cfe(t,n){t&1&&oe(0)}var k8=["tabListContainer"],S8=["tabList"],T8=["tabListInner"],I8=["nextPaginator"],A8=["previousPaginator"],wfe=["content"];function Dfe(t,n){}var Efe=["tabBodyWrapper"],Mfe=["tabHeader"];function kfe(t,n){}function Sfe(t,n){if(t&1&&R(0,kfe,0,0,"ng-template",12),t&2){let e=C().$implicit;y("cdkPortalOutlet",e.templateLabel)}}function Tfe(t,n){if(t&1&&_(0),t&2){let e=C().$implicit;H(e.textLabel)}}function Ife(t,n){if(t&1){let e=Y();h(0,"div",7,2),S("click",function(){let r=I(e),o=r.$implicit,a=r.$index,s=C(),l=Se(1);return A(s._handleClick(o,l,a))})("cdkFocusChange",function(r){let o=I(e).$index,a=C();return A(a._tabFocusChanged(r,o))}),k(2,"span",8)(3,"div",9),h(4,"span",10)(5,"span",11),N(6,Sfe,1,1,null,12)(7,Tfe,1,1),p()()()}if(t&2){let e=n.$implicit,i=n.$index,r=Se(1),o=C();it(e.labelClass),G("mdc-tab--active",o.selectedIndex===i),y("id",o._getTabLabelId(e,i))("disabled",e.disabled)("fitInkBarToContent",o.fitInkBarToContent),X("tabIndex",o._getTabIndex(i))("aria-posinset",i+1)("aria-setsize",o._tabs.length)("aria-controls",o._getTabContentId(i))("aria-selected",o.selectedIndex===i)("aria-label",e.ariaLabel||null)("aria-labelledby",!e.ariaLabel&&e.ariaLabelledby?e.ariaLabelledby:null),g(3),y("matRippleTrigger",r)("matRippleDisabled",e.disabled||o.disableRipple),g(3),L(e.templateLabel?6:7)}}function Afe(t,n){t&1&&oe(0)}function Ofe(t,n){if(t&1){let e=Y();h(0,"mat-tab-body",13),S("_onCentered",function(){I(e);let r=C();return A(r._removeTabBodyWrapperHeight())})("_onCentering",function(r){I(e);let o=C();return A(o._setTabBodyWrapperHeight(r))})("_beforeCentering",function(r){I(e);let o=C();return A(o._bodyCentered(r))}),p()}if(t&2){let e=n.$implicit,i=n.$index,r=C();it(e.bodyClass),y("id",r._getTabContentId(i))("content",e.content)("position",e.position)("animationDuration",r.animationDuration)("preserveContent",r.preserveContent),X("tabindex",r.contentTabIndex!=null&&r.selectedIndex===i?r.contentTabIndex:null)("aria-labelledby",r._getTabLabelId(e,i))("aria-hidden",r.selectedIndex!==i)}}var Rfe=["mat-tab-nav-bar",""],Pfe=["mat-tab-link",""],Ffe=new T("MatTabContent"),Nfe=(()=>{class t{template=u(te);constructor(){}static \u0275fac=function(i){return new(i||t)};static \u0275dir=F({type:t,selectors:[["","matTabContent",""]],features:[Ce([{provide:Ffe,useExisting:t}])]})}return t})(),Lfe=new T("MatTabLabel"),O8=new T("MAT_TAB"),Vfe=(()=>{class t extends eB{_closestTab=u(O8,{optional:!0});static \u0275fac=(()=>{let e;return function(r){return(e||(e=fe(t)))(r||t)}})();static \u0275dir=F({type:t,selectors:[["","mat-tab-label",""],["","matTabLabel",""]],features:[Ce([{provide:Lfe,useExisting:t}]),le]})}return t})(),R8=new T("MAT_TAB_GROUP"),__=(()=>{class t{_viewContainerRef=u(nt);_closestTabGroup=u(R8,{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 z;position=null;origin=null;isActive=!1;constructor(){u(ut).load(Di)}ngOnChanges(e){(e.hasOwnProperty("textLabel")||e.hasOwnProperty("disabled"))&&this._stateChanges.next()}ngOnDestroy(){this._stateChanges.complete()}ngOnInit(){this._contentPortal=new Cn(this._explicitContent||this._implicitContent,this._viewContainerRef)}_setTemplateLabelInput(e){e&&e._closestTab===this&&(this._templateLabel=e)}static \u0275fac=function(i){return new(i||t)};static \u0275cmp=E({type:t,selectors:[["mat-tab"]],contentQueries:function(i,r,o){if(i&1&&(xe(o,Vfe,5),xe(o,Nfe,7,te)),i&2){let a;B(a=j())&&(r.templateLabel=a.first),B(a=j())&&(r._explicitContent=a.first)}},viewQuery:function(i,r){if(i&1&&ie(te,7),i&2){let o;B(o=j())&&(r._implicitContent=o.first)}},hostAttrs:["hidden",""],hostVars:1,hostBindings:function(i,r){i&2&&X("id",null)},inputs:{disabled:[2,"disabled","disabled",V],textLabel:[0,"label","textLabel"],ariaLabel:[0,"aria-label","ariaLabel"],ariaLabelledby:[0,"aria-labelledby","ariaLabelledby"],labelClass:"labelClass",bodyClass:"bodyClass",id:"id"},exportAs:["matTab"],features:[Ce([{provide:O8,useExisting:t}]),Ae],ngContentSelectors:np,decls:1,vars:0,template:function(i,r){i&1&&(Me(),xa(0,Cfe,1,0,"ng-template"))},encapsulation:2})}return t})(),AI="mdc-tab-indicator--active",D8="mdc-tab-indicator--no-transition",ew=class{_items;_currentItem;constructor(n){this._items=n}hide(){this._items.forEach(n=>n.deactivateInkBar()),this._currentItem=void 0}alignToElement(n){let e=this._items.find(r=>r.elementRef.nativeElement===n),i=this._currentItem;if(e!==i&&(i?.deactivateInkBar(),e)){let r=i?.elementRef.nativeElement.getBoundingClientRect?.();e.activateInkBar(r),this._currentItem=e}}},P8=(()=>{class t{_elementRef=u(q);_inkBarElement;_inkBarContentElement;_fitToContent=!1;get fitInkBarToContent(){return this._fitToContent}set fitInkBarToContent(e){this._fitToContent!==e&&(this._fitToContent=e,this._inkBarElement&&this._appendInkBarElement())}activateInkBar(e){let i=this._elementRef.nativeElement;if(!e||!i.getBoundingClientRect||!this._inkBarContentElement){i.classList.add(AI);return}let r=i.getBoundingClientRect(),o=e.width/r.width,a=e.left-r.left;i.classList.add(D8),this._inkBarContentElement.style.setProperty("transform",`translateX(${a}px) scaleX(${o})`),i.getBoundingClientRect(),i.classList.remove(D8),i.classList.add(AI),this._inkBarContentElement.style.setProperty("transform","")}deactivateInkBar(){this._elementRef.nativeElement.classList.remove(AI)}ngOnInit(){this._createInkBarElement()}ngOnDestroy(){this._inkBarElement?.remove(),this._inkBarElement=this._inkBarContentElement=null}_createInkBarElement(){let e=this._elementRef.nativeElement.ownerDocument||document,i=this._inkBarElement=e.createElement("span"),r=this._inkBarContentElement=e.createElement("span");i.className="mdc-tab-indicator",r.className="mdc-tab-indicator__content mdc-tab-indicator__content--underline",i.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(i){return new(i||t)};static \u0275dir=F({type:t,inputs:{fitInkBarToContent:[2,"fitInkBarToContent","fitInkBarToContent",V]}})}return t})();var F8=(()=>{class t extends P8{elementRef=u(q);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(r){return(e||(e=fe(t)))(r||t)}})();static \u0275dir=F({type:t,selectors:[["","matTabLabelWrapper",""]],hostVars:3,hostBindings:function(i,r){i&2&&(X("aria-disabled",!!r.disabled),G("mat-mdc-tab-disabled",r.disabled))},inputs:{disabled:[2,"disabled","disabled",V]},features:[le]})}return t})(),E8={passive:!0},Bfe=650,jfe=100,N8=(()=>{class t{_elementRef=u(q);_changeDetectorRef=u(ye);_viewportRuler=u(Xn);_dir=u(Vt,{optional:!0});_ngZone=u(ae);_platform=u(qe);_sharedResizeObserver=u(qy);_injector=u(de);_renderer=u(je);_animationsDisabled=Ye();_eventCleanups;_scrollDistance=0;_selectedIndexChanged=!1;_destroyed=new z;_showPaginationControls=!1;_disableScrollAfter=!0;_disableScrollBefore=!0;_tabLabelCount;_scrollDistanceChanged;_keyManager;_currentTextContent;_stopScrolling=new z;disablePagination=!1;get selectedIndex(){return this._selectedIndex}set selectedIndex(e){let i=isNaN(e)?0:e;this._selectedIndex!=i&&(this._selectedIndexChanged=!0,this._selectedIndex=i,this._keyManager&&this._keyManager.updateActiveItem(i))}_selectedIndex=0;selectFocusedIndex=new U;indexFocused=new U;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"),E8),this._renderer.listen(this._nextPaginator.nativeElement,"touchstart",()=>this._handlePaginatorPress("after"),E8))}ngAfterContentInit(){let e=this._dir?this._dir.change:Q("ltr"),i=this._sharedResizeObserver.observe(this._elementRef.nativeElement).pipe(Rt(32),Te(this._destroyed)),r=this._viewportRuler.change(150).pipe(Te(this._destroyed)),o=()=>{this.updatePagination(),this._alignInkBarToSelectedTab()};this._keyManager=new bs(this._items).withHorizontalOrientation(this._getLayoutDirection()).withHomeAndEnd().withWrap().skipPredicate(()=>!1),this._keyManager.updateActiveItem(Math.max(this._selectedIndex,0)),pt(o,{injector:this._injector}),Je(e,r,i,this._items.changes,this._itemsResized()).pipe(Te(this._destroyed)).subscribe(()=>{this._ngZone.run(()=>{Promise.resolve().then(()=>{this._scrollDistance=Math.max(0,Math.min(this._getMaxScrollDistance(),this._scrollDistance)),o()})}),this._keyManager?.withHorizontalOrientation(this._getLayoutDirection())}),this._keyManager.change.subscribe(a=>{this.indexFocused.emit(a),this._setTabFocus(a)})}_itemsResized(){return typeof ResizeObserver!="function"?Fi:this._items.changes.pipe(He(this._items),$e(e=>new Fe(i=>this._ngZone.runOutsideAngular(()=>{let r=new ResizeObserver(o=>i.next(o));return e.forEach(o=>r.observe(o.elementRef.nativeElement)),()=>{r.disconnect()}}))),Ya(1),ce(e=>e.some(i=>i.contentRect.width>0&&i.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(!Ft(e))switch(e.keyCode){case 13:case 32:if(this.focusIndex!==this.selectedIndex){let i=this._items.get(this.focusIndex);i&&!i.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 i=this._tabListContainer.nativeElement;this._getLayoutDirection()=="ltr"?i.scrollLeft=0:i.scrollLeft=i.scrollWidth-i.offsetWidth}}_getLayoutDirection(){return this._dir&&this._dir.value==="rtl"?"rtl":"ltr"}_updateTabScrollPosition(){if(this.disablePagination)return;let e=this.scrollDistance,i=this._getLayoutDirection()==="ltr"?-e:e;this._tabList.nativeElement.style.transform=`translateX(${Math.round(i)}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 i=this._tabListContainer.nativeElement.offsetWidth,r=(e=="before"?-1:1)*i/3;return this._scrollTo(this._scrollDistance+r)}_handlePaginatorClick(e){this._stopInterval(),this._scrollHeader(e)}_scrollToLabel(e){if(this.disablePagination)return;let i=this._items?this._items.toArray()[e]:null;if(!i)return;let r=this._tabListContainer.nativeElement.offsetWidth,{offsetLeft:o,offsetWidth:a}=i.elementRef.nativeElement,s,l;this._getLayoutDirection()=="ltr"?(s=o,l=s+a):(l=this._tabListInner.nativeElement.offsetWidth-o,s=l-a);let c=this.scrollDistance,d=this.scrollDistance+r;sd&&(this.scrollDistance+=Math.min(l-d,s-c))}_checkPaginationEnabled(){if(this.disablePagination)this._showPaginationControls=!1;else{let e=this._tabListInner.nativeElement.scrollWidth,i=this._elementRef.nativeElement.offsetWidth,r=e-i>=5;r||(this.scrollDistance=0),r!==this._showPaginationControls&&(this._showPaginationControls=r,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,i=this._tabListContainer.nativeElement.offsetWidth;return e-i||0}_alignInkBarToSelectedTab(){let e=this._items&&this._items.length?this._items.toArray()[this.selectedIndex]:null,i=e?e.elementRef.nativeElement:null;i?this._inkBar.alignToElement(i):this._inkBar.hide()}_stopInterval(){this._stopScrolling.next()}_handlePaginatorPress(e,i){i&&i.button!=null&&i.button!==0||(this._stopInterval(),qa(Bfe,jfe).pipe(Te(Je(this._stopScrolling,this._destroyed))).subscribe(()=>{let{maxScrollDistance:r,distance:o}=this._scrollHeader(e);(o===0||o>=r)&&this._stopInterval()}))}_scrollTo(e){if(this.disablePagination)return{maxScrollDistance:0,distance:0};let i=this._getMaxScrollDistance();return this._scrollDistance=Math.max(0,Math.min(i,e)),this._scrollDistanceChanged=!0,this._checkScrollingControls(),{maxScrollDistance:i,distance:this._scrollDistance}}static \u0275fac=function(i){return new(i||t)};static \u0275dir=F({type:t,inputs:{disablePagination:[2,"disablePagination","disablePagination",V],selectedIndex:[2,"selectedIndex","selectedIndex",ct]},outputs:{selectFocusedIndex:"selectFocusedIndex",indexFocused:"indexFocused"}})}return t})(),Hfe=(()=>{class t extends N8{_items;_tabListContainer;_tabList;_tabListInner;_nextPaginator;_previousPaginator;_inkBar;ariaLabel;ariaLabelledby;disableRipple=!1;ngAfterContentInit(){this._inkBar=new ew(this._items),super.ngAfterContentInit()}_itemSelected(e){e.preventDefault()}static \u0275fac=(()=>{let e;return function(r){return(e||(e=fe(t)))(r||t)}})();static \u0275cmp=E({type:t,selectors:[["mat-tab-header"]],contentQueries:function(i,r,o){if(i&1&&xe(o,F8,4),i&2){let a;B(a=j())&&(r._items=a)}},viewQuery:function(i,r){if(i&1&&(ie(k8,7),ie(S8,7),ie(T8,7),ie(I8,5),ie(A8,5)),i&2){let o;B(o=j())&&(r._tabListContainer=o.first),B(o=j())&&(r._tabList=o.first),B(o=j())&&(r._tabListInner=o.first),B(o=j())&&(r._nextPaginator=o.first),B(o=j())&&(r._previousPaginator=o.first)}},hostAttrs:[1,"mat-mdc-tab-header"],hostVars:4,hostBindings:function(i,r){i&2&&G("mat-mdc-tab-header-pagination-controls-enabled",r._showPaginationControls)("mat-mdc-tab-header-rtl",r._getLayoutDirection()=="rtl")},inputs:{ariaLabel:[0,"aria-label","ariaLabel"],ariaLabelledby:[0,"aria-labelledby","ariaLabelledby"],disableRipple:[2,"disableRipple","disableRipple",V]},features:[le],ngContentSelectors:np,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(i,r){if(i&1){let o=Y();Me(),h(0,"div",5,0),S("click",function(){return I(o),A(r._handlePaginatorClick("before"))})("mousedown",function(s){return I(o),A(r._handlePaginatorPress("before",s))})("touchend",function(){return I(o),A(r._stopInterval())}),k(2,"div",6),p(),h(3,"div",7,1),S("keydown",function(s){return I(o),A(r._handleKeydown(s))}),h(5,"div",8,2),S("cdkObserveContent",function(){return I(o),A(r._onContentChanges())}),h(7,"div",9,3),oe(9),p()()(),h(10,"div",10,4),S("mousedown",function(s){return I(o),A(r._handlePaginatorPress("after",s))})("click",function(){return I(o),A(r._handlePaginatorClick("after"))})("touchend",function(){return I(o),A(r._stopInterval())}),k(12,"div",6),p()}i&2&&(G("mat-mdc-tab-header-pagination-disabled",r._disableScrollBefore),y("matRippleDisabled",r._disableScrollBefore||r.disableRipple),g(3),G("_mat-animation-noopable",r._animationsDisabled),g(2),X("aria-label",r.ariaLabel||null)("aria-labelledby",r.ariaLabelledby||null),g(5),G("mat-mdc-tab-header-pagination-disabled",r._disableScrollAfter),y("matRippleDisabled",r._disableScrollAfter||r.disableRipple))},dependencies:[Vn,Wf],styles:[`.mat-mdc-tab-header{display:flex;overflow:hidden;position:relative;flex-shrink:0}.mdc-tab-indicator .mdc-tab-indicator__content{transition-duration:var(--mat-tab-animation-duration, 250ms)}.mat-mdc-tab-header-pagination{-webkit-user-select:none;user-select:none;position:relative;display:none;justify-content:center;align-items:center;min-width:32px;cursor:pointer;z-index:2;-webkit-tap-highlight-color:rgba(0,0,0,0);touch-action:none;box-sizing:content-box;outline:0}.mat-mdc-tab-header-pagination::-moz-focus-inner{border:0}.mat-mdc-tab-header-pagination .mat-ripple-element{opacity:.12;background-color:var(--mat-tab-inactive-ripple-color, var(--mat-sys-on-surface))}.mat-mdc-tab-header-pagination-controls-enabled .mat-mdc-tab-header-pagination{display:flex}.mat-mdc-tab-header-pagination-before,.mat-mdc-tab-header-rtl .mat-mdc-tab-header-pagination-after{padding-left:4px}.mat-mdc-tab-header-pagination-before .mat-mdc-tab-header-pagination-chevron,.mat-mdc-tab-header-rtl .mat-mdc-tab-header-pagination-after .mat-mdc-tab-header-pagination-chevron{transform:rotate(-135deg)}.mat-mdc-tab-header-rtl .mat-mdc-tab-header-pagination-before,.mat-mdc-tab-header-pagination-after{padding-right:4px}.mat-mdc-tab-header-rtl .mat-mdc-tab-header-pagination-before .mat-mdc-tab-header-pagination-chevron,.mat-mdc-tab-header-pagination-after .mat-mdc-tab-header-pagination-chevron{transform:rotate(45deg)}.mat-mdc-tab-header-pagination-chevron{border-style:solid;border-width:2px 2px 0 0;height:8px;width:8px;border-color:var(--mat-tab-pagination-icon-color, var(--mat-sys-on-surface))}.mat-mdc-tab-header-pagination-disabled{box-shadow:none;cursor:default;pointer-events:none}.mat-mdc-tab-header-pagination-disabled .mat-mdc-tab-header-pagination-chevron{opacity:.4}.mat-mdc-tab-list{flex-grow:1;position:relative;transition:transform 500ms cubic-bezier(0.35, 0, 0.25, 1)}._mat-animation-noopable .mat-mdc-tab-list{transition:none}.mat-mdc-tab-label-container{display:flex;flex-grow:1;overflow:hidden;z-index:1;border-bottom-style:solid;border-bottom-width:var(--mat-tab-divider-height, 1px);border-bottom-color:var(--mat-tab-divider-color, var(--mat-sys-surface-variant))}.mat-mdc-tab-group-inverted-header .mat-mdc-tab-label-container{border-bottom:none;border-top-style:solid;border-top-width:var(--mat-tab-divider-height, 1px);border-top-color:var(--mat-tab-divider-color, var(--mat-sys-surface-variant))}.mat-mdc-tab-labels{display:flex;flex:1 0 auto}[mat-align-tabs=center]>.mat-mdc-tab-header .mat-mdc-tab-labels{justify-content:center}[mat-align-tabs=end]>.mat-mdc-tab-header .mat-mdc-tab-labels{justify-content:flex-end}.cdk-drop-list .mat-mdc-tab-labels,.mat-mdc-tab-labels.cdk-drop-list{min-height:var(--mat-tab-container-height, 48px)}.mat-mdc-tab::before{margin:5px}@media(forced-colors: active){.mat-mdc-tab[aria-disabled=true]{color:GrayText}} +`],encapsulation:2})}return t})(),L8=new T("MAT_TABS_CONFIG"),M8=(()=>{class t extends yr{_host=u(OI);_ngZone=u(ae);_centeringSub=ke.EMPTY;_leavingSub=ke.EMPTY;constructor(){super()}ngOnInit(){super.ngOnInit(),this._centeringSub=this._host._beforeCentering.pipe(He(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(i){return new(i||t)};static \u0275dir=F({type:t,selectors:[["","matTabBodyHost",""]],features:[le]})}return t})(),OI=(()=>{class t{_elementRef=u(q);_dir=u(Vt,{optional:!0});_ngZone=u(ae);_injector=u(de);_renderer=u(je);_diAnimationsDisabled=Ye();_eventCleanups;_initialized;_fallbackTimer;_positionIndex;_dirChangeSubscription=ke.EMPTY;_position;_previousPosition;_onCentering=new U;_beforeCentering=new U;_afterLeavingCenter=new U;_onCentered=new U(!0);_portalHost;_contentElement;_content;animationDuration="500ms";preserveContent=!1;set position(e){this._positionIndex=e,this._computePositionAnimationState()}constructor(){if(this._dir){let e=u(ye);this._dirChangeSubscription=this._dir.change.subscribe(i=>{this._computePositionAnimationState(i),e.markForCheck()})}}ngOnInit(){this._bindTransitionEvents(),this._position==="center"&&(this._setActiveClass(!0),pt(()=>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,i=r=>{r.target===this._contentElement?.nativeElement&&(this._elementRef.nativeElement.classList.remove("mat-tab-body-animating"),r.type==="transitionend"&&this._transitionDone())};this._eventCleanups=[this._renderer.listen(e,"transitionstart",r=>{r.target===this._contentElement?.nativeElement&&(this._elementRef.nativeElement.classList.add("mat-tab-body-animating"),this._transitionStarted())}),this._renderer.listen(e,"transitionend",i),this._renderer.listen(e,"transitioncancel",i)]})}_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(),pt(()=>this._transitionDone(),{injector:this._injector})}_animationsDisabled(){return this._diAnimationsDisabled||this.animationDuration==="0ms"||this.animationDuration==="0s"}static \u0275fac=function(i){return new(i||t)};static \u0275cmp=E({type:t,selectors:[["mat-tab-body"]],viewQuery:function(i,r){if(i&1&&(ie(M8,5),ie(wfe,5)),i&2){let o;B(o=j())&&(r._portalHost=o.first),B(o=j())&&(r._contentElement=o.first)}},hostAttrs:[1,"mat-mdc-tab-body"],hostVars:1,hostBindings:function(i,r){i&2&&X("inert",r._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(i,r){i&1&&(h(0,"div",1,0),R(2,Dfe,0,0,"ng-template",2),p()),i&2&&G("mat-tab-body-content-left",r._position==="left")("mat-tab-body-content-right",r._position==="right")("mat-tab-body-content-can-animate",r._position==="center"||r._previousPosition==="center")},dependencies:[M8,Pa],styles:[`.mat-mdc-tab-body{top:0;left:0;right:0;bottom:0;position:absolute;display:block;overflow:hidden;outline:0;flex-basis:100%}.mat-mdc-tab-body.mat-mdc-tab-body-active{position:relative;overflow-x:hidden;overflow-y:auto;z-index:1;flex-grow:1}.mat-mdc-tab-group.mat-mdc-tab-group-dynamic-height .mat-mdc-tab-body.mat-mdc-tab-body-active{overflow-y:hidden}.mat-mdc-tab-body-content{height:100%;overflow:auto;transform:none;visibility:hidden}.mat-tab-body-animating>.mat-mdc-tab-body-content,.mat-mdc-tab-body-active>.mat-mdc-tab-body-content{visibility:visible}.mat-tab-body-animating>.mat-mdc-tab-body-content{min-height:1px}.mat-mdc-tab-group-dynamic-height .mat-mdc-tab-body-content{overflow:hidden}.mat-tab-body-content-can-animate{transition:transform var(--mat-tab-animation-duration) 1ms cubic-bezier(0.35, 0, 0.25, 1)}.mat-mdc-tab-body-wrapper._mat-animation-noopable .mat-tab-body-content-can-animate{transition:none}.mat-tab-body-content-left{transform:translate3d(-100%, 0, 0)}.mat-tab-body-content-right{transform:translate3d(100%, 0, 0)} +`],encapsulation:2})}return t})(),tw=(()=>{class t{_elementRef=u(q);_changeDetectorRef=u(ye);_ngZone=u(ae);_tabsSubscription=ke.EMPTY;_tabLabelSubscription=ke.EMPTY;_tabBodySubscription=ke.EMPTY;_diAnimationsDisabled=Ye();_allTabs;_tabBodies;_tabBodyWrapper;_tabHeader;_tabs=new pr;_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 i=e+"";this._animationDuration=/^\d+$/.test(i)?e+"ms":i}_animationDuration;get contentTabIndex(){return this._contentTabIndex}set contentTabIndex(e){this._contentTabIndex=isNaN(e)?null:e}_contentTabIndex;disablePagination=!1;disableRipple=!1;preserveContent=!1;get backgroundColor(){return this._backgroundColor}set backgroundColor(e){let i=this._elementRef.nativeElement.classList;i.remove("mat-tabs-with-background",`mat-background-${this.backgroundColor}`),e&&i.add("mat-tabs-with-background",`mat-background-${e}`),this._backgroundColor=e}_backgroundColor;ariaLabel;ariaLabelledby;selectedIndexChange=new U;focusChange=new U;animationDone=new U;selectedTabChange=new U(!0);_groupId;_isServer=!u(qe).isBrowser;constructor(){let e=u(L8,{optional:!0});this._groupId=u(Ze).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 i=this._selectedIndex==null;if(!i){this.selectedTabChange.emit(this._createChangeEvent(e));let r=this._tabBodyWrapper.nativeElement;r.style.minHeight=r.clientHeight+"px"}Promise.resolve().then(()=>{this._tabs.forEach((r,o)=>r.isActive=o===e),i||(this.selectedIndexChange.emit(e),this._tabBodyWrapper.nativeElement.style.minHeight="")})}this._tabs.forEach((i,r)=>{i.position=r-e,this._selectedIndex!=null&&i.position==0&&!i.origin&&(i.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 i=this._tabs.toArray(),r;for(let o=0;o{i[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(He(this._allTabs)).subscribe(e=>{this._tabs.reset(e.filter(i=>i._closestTabGroup===this||!i._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 i=this._tabHeader;i&&(i.focusIndex=e)}_focusChanged(e){this._lastFocusedTabIndex=e,this.focusChange.emit(this._createChangeEvent(e))}_createChangeEvent(e){let i=new RI;return i.index=e,this._tabs&&this._tabs.length&&(i.tab=this._tabs.toArray()[e]),i}_subscribeToTabLabels(){this._tabLabelSubscription&&this._tabLabelSubscription.unsubscribe(),this._tabLabelSubscription=Je(...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,i){return e.id||`${this._groupId}-label-${i}`}_getTabContentId(e){return`${this._groupId}-content-${e}`}_setTabBodyWrapperHeight(e){if(!this.dynamicHeight||!this._tabBodyWrapperHeight){this._tabBodyWrapperHeight=e;return}let i=this._tabBodyWrapper.nativeElement;i.style.height=this._tabBodyWrapperHeight+"px",this._tabBodyWrapper.nativeElement.offsetHeight&&(i.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,i,r){i.focusIndex=r,e.disabled||(this.selectedIndex=r)}_getTabIndex(e){let i=this._lastFocusedTabIndex??this.selectedIndex;return e===i?0:-1}_tabFocusChanged(e,i){e&&e!=="mouse"&&e!=="touch"&&(this._tabHeader.focusIndex=i)}_bodyCentered(e){e&&this._tabBodies?.forEach((i,r)=>i._setActiveClass(r===this._selectedIndex))}_animationsDisabled(){return this._diAnimationsDisabled||this.animationDuration==="0"||this.animationDuration==="0ms"}static \u0275fac=function(i){return new(i||t)};static \u0275cmp=E({type:t,selectors:[["mat-tab-group"]],contentQueries:function(i,r,o){if(i&1&&xe(o,__,5),i&2){let a;B(a=j())&&(r._allTabs=a)}},viewQuery:function(i,r){if(i&1&&(ie(Efe,5),ie(Mfe,5),ie(OI,5)),i&2){let o;B(o=j())&&(r._tabBodyWrapper=o.first),B(o=j())&&(r._tabHeader=o.first),B(o=j())&&(r._tabBodies=o)}},hostAttrs:[1,"mat-mdc-tab-group"],hostVars:11,hostBindings:function(i,r){i&2&&(X("mat-align-tabs",r.alignTabs),it("mat-"+(r.color||"primary")),Dt("--mat-tab-animation-duration",r.animationDuration),G("mat-mdc-tab-group-dynamic-height",r.dynamicHeight)("mat-mdc-tab-group-inverted-header",r.headerPosition==="below")("mat-mdc-tab-group-stretch-tabs",r.stretchTabs))},inputs:{color:"color",fitInkBarToContent:[2,"fitInkBarToContent","fitInkBarToContent",V],stretchTabs:[2,"mat-stretch-tabs","stretchTabs",V],alignTabs:[0,"mat-align-tabs","alignTabs"],dynamicHeight:[2,"dynamicHeight","dynamicHeight",V],selectedIndex:[2,"selectedIndex","selectedIndex",ct],headerPosition:"headerPosition",animationDuration:"animationDuration",contentTabIndex:[2,"contentTabIndex","contentTabIndex",ct],disablePagination:[2,"disablePagination","disablePagination",V],disableRipple:[2,"disableRipple","disableRipple",V],preserveContent:[2,"preserveContent","preserveContent",V],backgroundColor:"backgroundColor",ariaLabel:[0,"aria-label","ariaLabel"],ariaLabelledby:[0,"aria-labelledby","ariaLabelledby"]},outputs:{selectedIndexChange:"selectedIndexChange",focusChange:"focusChange",animationDone:"animationDone",selectedTabChange:"selectedTabChange"},exportAs:["matTabGroup"],features:[Ce([{provide:R8,useExisting:t}])],ngContentSelectors:np,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(i,r){if(i&1){let o=Y();Me(),h(0,"mat-tab-header",3,0),S("indexFocused",function(s){return I(o),A(r._focusChanged(s))})("selectFocusedIndex",function(s){return I(o),A(r.selectedIndex=s)}),xt(2,Ife,8,17,"div",4,xm),p(),N(4,Afe,1,0),h(5,"div",5,1),xt(7,Ofe,1,10,"mat-tab-body",6,xm),p()}i&2&&(y("selectedIndex",r.selectedIndex||0)("disableRipple",r.disableRipple)("disablePagination",r.disablePagination),Kl("aria-label",r.ariaLabel)("aria-labelledby",r.ariaLabelledby),g(2),Ct(r._tabs),g(2),L(r._isServer?4:-1),g(),G("_mat-animation-noopable",r._animationsDisabled()),g(2),Ct(r._tabs))},dependencies:[Hfe,F8,$f,Vn,yr,OI],styles:[`.mdc-tab{min-width:90px;padding:0 24px;display:flex;flex:1 0 auto;justify-content:center;box-sizing:border-box;border:none;outline:none;text-align:center;white-space:nowrap;cursor:pointer;z-index:1;touch-action:manipulation}.mdc-tab__content{display:flex;align-items:center;justify-content:center;height:inherit;pointer-events:none}.mdc-tab__text-label{transition:150ms color linear;display:inline-block;line-height:1;z-index:2}.mdc-tab--active .mdc-tab__text-label{transition-delay:100ms}._mat-animation-noopable .mdc-tab__text-label{transition:none}.mdc-tab-indicator{display:flex;position:absolute;top:0;left:0;justify-content:center;width:100%;height:100%;pointer-events:none;z-index:1}.mdc-tab-indicator__content{transition:var(--mat-tab-animation-duration, 250ms) transform cubic-bezier(0.4, 0, 0.2, 1);transform-origin:left;opacity:0}.mdc-tab-indicator__content--underline{align-self:flex-end;box-sizing:border-box;width:100%;border-top-style:solid}.mdc-tab-indicator--active .mdc-tab-indicator__content{opacity:1}._mat-animation-noopable .mdc-tab-indicator__content,.mdc-tab-indicator--no-transition .mdc-tab-indicator__content{transition:none}.mat-mdc-tab-ripple.mat-mdc-tab-ripple{position:absolute;top:0;left:0;bottom:0;right:0;pointer-events:none}.mat-mdc-tab{-webkit-tap-highlight-color:rgba(0,0,0,0);-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;text-decoration:none;background:none;height:var(--mat-tab-container-height, 48px);font-family:var(--mat-tab-label-text-font, var(--mat-sys-title-small-font));font-size:var(--mat-tab-label-text-size, var(--mat-sys-title-small-size));letter-spacing:var(--mat-tab-label-text-tracking, var(--mat-sys-title-small-tracking));line-height:var(--mat-tab-label-text-line-height, var(--mat-sys-title-small-line-height));font-weight:var(--mat-tab-label-text-weight, var(--mat-sys-title-small-weight))}.mat-mdc-tab.mdc-tab{flex-grow:0}.mat-mdc-tab .mdc-tab-indicator__content--underline{border-color:var(--mat-tab-active-indicator-color, var(--mat-sys-primary));border-top-width:var(--mat-tab-active-indicator-height, 2px);border-radius:var(--mat-tab-active-indicator-shape, 0)}.mat-mdc-tab:hover .mdc-tab__text-label{color:var(--mat-tab-inactive-hover-label-text-color, var(--mat-sys-on-surface))}.mat-mdc-tab:focus .mdc-tab__text-label{color:var(--mat-tab-inactive-focus-label-text-color, var(--mat-sys-on-surface))}.mat-mdc-tab.mdc-tab--active .mdc-tab__text-label{color:var(--mat-tab-active-label-text-color, var(--mat-sys-on-surface))}.mat-mdc-tab.mdc-tab--active .mdc-tab__ripple::before,.mat-mdc-tab.mdc-tab--active .mat-ripple-element{background-color:var(--mat-tab-active-ripple-color, var(--mat-sys-on-surface))}.mat-mdc-tab.mdc-tab--active:hover .mdc-tab__text-label{color:var(--mat-tab-active-hover-label-text-color, var(--mat-sys-on-surface))}.mat-mdc-tab.mdc-tab--active:hover .mdc-tab-indicator__content--underline{border-color:var(--mat-tab-active-hover-indicator-color, var(--mat-sys-primary))}.mat-mdc-tab.mdc-tab--active:focus .mdc-tab__text-label{color:var(--mat-tab-active-focus-label-text-color, var(--mat-sys-on-surface))}.mat-mdc-tab.mdc-tab--active:focus .mdc-tab-indicator__content--underline{border-color:var(--mat-tab-active-focus-indicator-color, var(--mat-sys-primary))}.mat-mdc-tab.mat-mdc-tab-disabled{opacity:.4;pointer-events:none}.mat-mdc-tab.mat-mdc-tab-disabled .mdc-tab__content{pointer-events:none}.mat-mdc-tab.mat-mdc-tab-disabled .mdc-tab__ripple::before,.mat-mdc-tab.mat-mdc-tab-disabled .mat-ripple-element{background-color:var(--mat-tab-disabled-ripple-color, var(--mat-sys-on-surface-variant))}.mat-mdc-tab .mdc-tab__ripple::before{content:"";display:block;position:absolute;top:0;left:0;right:0;bottom:0;opacity:0;pointer-events:none;background-color:var(--mat-tab-inactive-ripple-color, var(--mat-sys-on-surface))}.mat-mdc-tab .mdc-tab__text-label{color:var(--mat-tab-inactive-label-text-color, var(--mat-sys-on-surface));display:inline-flex;align-items:center}.mat-mdc-tab .mdc-tab__content{position:relative;pointer-events:auto}.mat-mdc-tab:hover .mdc-tab__ripple::before{opacity:.04}.mat-mdc-tab.cdk-program-focused .mdc-tab__ripple::before,.mat-mdc-tab.cdk-keyboard-focused .mdc-tab__ripple::before{opacity:.12}.mat-mdc-tab .mat-ripple-element{opacity:.12;background-color:var(--mat-tab-inactive-ripple-color, var(--mat-sys-on-surface))}.mat-mdc-tab-group.mat-mdc-tab-group-stretch-tabs>.mat-mdc-tab-header .mat-mdc-tab{flex-grow:1}.mat-mdc-tab-group{display:flex;flex-direction:column;max-width:100%}.mat-mdc-tab-group.mat-tabs-with-background>.mat-mdc-tab-header,.mat-mdc-tab-group.mat-tabs-with-background>.mat-mdc-tab-header-pagination{background-color:var(--mat-tab-background-color)}.mat-mdc-tab-group.mat-tabs-with-background.mat-primary>.mat-mdc-tab-header .mat-mdc-tab .mdc-tab__text-label{color:var(--mat-tab-foreground-color)}.mat-mdc-tab-group.mat-tabs-with-background.mat-primary>.mat-mdc-tab-header .mdc-tab-indicator__content--underline{border-color:var(--mat-tab-foreground-color)}.mat-mdc-tab-group.mat-tabs-with-background:not(.mat-primary)>.mat-mdc-tab-header .mat-mdc-tab:not(.mdc-tab--active) .mdc-tab__text-label{color:var(--mat-tab-foreground-color)}.mat-mdc-tab-group.mat-tabs-with-background:not(.mat-primary)>.mat-mdc-tab-header .mat-mdc-tab:not(.mdc-tab--active) .mdc-tab-indicator__content--underline{border-color:var(--mat-tab-foreground-color)}.mat-mdc-tab-group.mat-tabs-with-background>.mat-mdc-tab-header .mat-mdc-tab-header-pagination-chevron,.mat-mdc-tab-group.mat-tabs-with-background>.mat-mdc-tab-header .mat-focus-indicator::before,.mat-mdc-tab-group.mat-tabs-with-background>.mat-mdc-tab-header-pagination .mat-mdc-tab-header-pagination-chevron,.mat-mdc-tab-group.mat-tabs-with-background>.mat-mdc-tab-header-pagination .mat-focus-indicator::before{border-color:var(--mat-tab-foreground-color)}.mat-mdc-tab-group.mat-tabs-with-background>.mat-mdc-tab-header .mat-ripple-element,.mat-mdc-tab-group.mat-tabs-with-background>.mat-mdc-tab-header .mdc-tab__ripple::before,.mat-mdc-tab-group.mat-tabs-with-background>.mat-mdc-tab-header-pagination .mat-ripple-element,.mat-mdc-tab-group.mat-tabs-with-background>.mat-mdc-tab-header-pagination .mdc-tab__ripple::before{background-color:var(--mat-tab-foreground-color)}.mat-mdc-tab-group.mat-tabs-with-background>.mat-mdc-tab-header .mat-mdc-tab-header-pagination-chevron,.mat-mdc-tab-group.mat-tabs-with-background>.mat-mdc-tab-header-pagination .mat-mdc-tab-header-pagination-chevron{color:var(--mat-tab-foreground-color)}.mat-mdc-tab-group.mat-mdc-tab-group-inverted-header{flex-direction:column-reverse}.mat-mdc-tab-group.mat-mdc-tab-group-inverted-header .mdc-tab-indicator__content--underline{align-self:flex-start}.mat-mdc-tab-body-wrapper{position:relative;overflow:hidden;display:flex;transition:height 500ms cubic-bezier(0.35, 0, 0.25, 1)}.mat-mdc-tab-body-wrapper._mat-animation-noopable{transition:none !important;animation:none !important} +`],encapsulation:2})}return t})(),RI=class{index;tab},PI=(()=>{class t extends N8{_focusedItem=he(null);get fitInkBarToContent(){return this._fitInkBarToContent.value}set fitInkBarToContent(e){this._fitInkBarToContent.next(e),this._changeDetectorRef.markForCheck()}_fitInkBarToContent=new tt(!1);stretchTabs=!0;get animationDuration(){return this._animationDuration}set animationDuration(e){let i=e+"";this._animationDuration=/^\d+$/.test(i)?e+"ms":i}_animationDuration;_items;get backgroundColor(){return this._backgroundColor}set backgroundColor(e){let i=this._elementRef.nativeElement.classList;i.remove("mat-tabs-with-background",`mat-background-${this.backgroundColor}`),e&&i.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=he(!1);color="primary";tabPanel;_tabListContainer;_tabList;_tabListInner;_nextPaginator;_previousPaginator;_inkBar;constructor(){let e=u(L8,{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 ew(this._items),this._items.changes.pipe(He(null),Te(this._destroyed)).subscribe(()=>this.updateActiveLink()),super.ngAfterContentInit(),this._keyManager.change.pipe(He(null),Te(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 i=0;i.mat-mdc-tab-link-container .mat-mdc-tab-links{justify-content:center}[mat-align-tabs=end]>.mat-mdc-tab-link-container .mat-mdc-tab-links{justify-content:flex-end}.cdk-drop-list .mat-mdc-tab-links,.mat-mdc-tab-links.cdk-drop-list{min-height:var(--mat-tab-container-height, 48px)}.mat-mdc-tab-link-container{display:flex;flex-grow:1;overflow:hidden;z-index:1;border-bottom-style:solid;border-bottom-width:var(--mat-tab-divider-height, 1px);border-bottom-color:var(--mat-tab-divider-color, var(--mat-sys-surface-variant))}.mat-mdc-tab-nav-bar.mat-tabs-with-background>.mat-mdc-tab-link-container,.mat-mdc-tab-nav-bar.mat-tabs-with-background>.mat-mdc-tab-header-pagination{background-color:var(--mat-tab-background-color)}.mat-mdc-tab-nav-bar.mat-tabs-with-background.mat-primary>.mat-mdc-tab-link-container .mat-mdc-tab-link .mdc-tab__text-label{color:var(--mat-tab-foreground-color)}.mat-mdc-tab-nav-bar.mat-tabs-with-background.mat-primary>.mat-mdc-tab-link-container .mdc-tab-indicator__content--underline{border-color:var(--mat-tab-foreground-color)}.mat-mdc-tab-nav-bar.mat-tabs-with-background:not(.mat-primary)>.mat-mdc-tab-link-container .mat-mdc-tab-link:not(.mdc-tab--active) .mdc-tab__text-label{color:var(--mat-tab-foreground-color)}.mat-mdc-tab-nav-bar.mat-tabs-with-background:not(.mat-primary)>.mat-mdc-tab-link-container .mat-mdc-tab-link:not(.mdc-tab--active) .mdc-tab-indicator__content--underline{border-color:var(--mat-tab-foreground-color)}.mat-mdc-tab-nav-bar.mat-tabs-with-background>.mat-mdc-tab-link-container .mat-mdc-tab-header-pagination-chevron,.mat-mdc-tab-nav-bar.mat-tabs-with-background>.mat-mdc-tab-link-container .mat-focus-indicator::before,.mat-mdc-tab-nav-bar.mat-tabs-with-background>.mat-mdc-tab-header-pagination .mat-mdc-tab-header-pagination-chevron,.mat-mdc-tab-nav-bar.mat-tabs-with-background>.mat-mdc-tab-header-pagination .mat-focus-indicator::before{border-color:var(--mat-tab-foreground-color)}.mat-mdc-tab-nav-bar.mat-tabs-with-background>.mat-mdc-tab-link-container .mat-ripple-element,.mat-mdc-tab-nav-bar.mat-tabs-with-background>.mat-mdc-tab-link-container .mdc-tab__ripple::before,.mat-mdc-tab-nav-bar.mat-tabs-with-background>.mat-mdc-tab-header-pagination .mat-ripple-element,.mat-mdc-tab-nav-bar.mat-tabs-with-background>.mat-mdc-tab-header-pagination .mdc-tab__ripple::before{background-color:var(--mat-tab-foreground-color)}.mat-mdc-tab-nav-bar.mat-tabs-with-background>.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 t})(),zfe=(()=>{class t extends P8{_tabNavBar=u(PI);elementRef=u(q);_focusMonitor=u(Yt);_destroyed=new z;_isActive=!1;_tabIndex=Zt(()=>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=he(!1);tabIndex=0;rippleConfig;get rippleDisabled(){return this.disabled||this.disableRipple||this._tabNavBar.disableRipple||!!this.rippleConfig.disabled}id=u(Ze).getId("mat-tab-link-");constructor(){super(),u(ut).load(Di);let e=u(Cs,{optional:!0}),i=u(new Ii("tabindex"),{optional:!0});this.rippleConfig=e||{},this.tabIndex=i==null?0:parseInt(i)||0,Ye()&&(this.rippleConfig.animation={enterDuration:0,exitDuration:0}),this._tabNavBar._fitInkBarToContent.pipe(Te(this._destroyed)).subscribe(r=>{this.fitInkBarToContent=r})}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(i){return new(i||t)};static \u0275cmp=E({type:t,selectors:[["","mat-tab-link",""],["","matTabLink",""]],hostAttrs:[1,"mdc-tab","mat-mdc-tab-link","mat-focus-indicator"],hostVars:11,hostBindings:function(i,r){i&1&&S("focus",function(){return r._handleFocus()})("keydown",function(a){return r._handleKeydown(a)}),i&2&&(X("aria-controls",r._getAriaControls())("aria-current",r._getAriaCurrent())("aria-disabled",r.disabled)("aria-selected",r._getAriaSelected())("id",r.id)("tabIndex",r._tabIndex())("role",r._getRole()),G("mat-mdc-tab-disabled",r.disabled)("mdc-tab--active",r.active))},inputs:{active:[2,"active","active",V],disabled:[2,"disabled","disabled",V],disableRipple:[2,"disableRipple","disableRipple",V],tabIndex:[2,"tabIndex","tabIndex",e=>e==null?0:ct(e)],id:"id"},exportAs:["matTabLink"],features:[le],attrs:Pfe,ngContentSelectors:np,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(i,r){i&1&&(Me(),k(0,"span",0)(1,"div",1),h(2,"span",2)(3,"span",3),oe(4),p()()),i&2&&(g(),y("matRippleTrigger",r.elementRef.nativeElement)("matRippleDisabled",r.rippleDisabled))},dependencies:[Vn],styles:[`.mat-mdc-tab-link{-webkit-tap-highlight-color:rgba(0,0,0,0);-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;text-decoration:none;background:none;height:var(--mat-tab-container-height, 48px);font-family:var(--mat-tab-label-text-font, var(--mat-sys-title-small-font));font-size:var(--mat-tab-label-text-size, var(--mat-sys-title-small-size));letter-spacing:var(--mat-tab-label-text-tracking, var(--mat-sys-title-small-tracking));line-height:var(--mat-tab-label-text-line-height, var(--mat-sys-title-small-line-height));font-weight:var(--mat-tab-label-text-weight, var(--mat-sys-title-small-weight))}.mat-mdc-tab-link.mdc-tab{flex-grow:0}.mat-mdc-tab-link .mdc-tab-indicator__content--underline{border-color:var(--mat-tab-active-indicator-color, var(--mat-sys-primary));border-top-width:var(--mat-tab-active-indicator-height, 2px);border-radius:var(--mat-tab-active-indicator-shape, 0)}.mat-mdc-tab-link:hover .mdc-tab__text-label{color:var(--mat-tab-inactive-hover-label-text-color, var(--mat-sys-on-surface))}.mat-mdc-tab-link:focus .mdc-tab__text-label{color:var(--mat-tab-inactive-focus-label-text-color, var(--mat-sys-on-surface))}.mat-mdc-tab-link.mdc-tab--active .mdc-tab__text-label{color:var(--mat-tab-active-label-text-color, var(--mat-sys-on-surface))}.mat-mdc-tab-link.mdc-tab--active .mdc-tab__ripple::before,.mat-mdc-tab-link.mdc-tab--active .mat-ripple-element{background-color:var(--mat-tab-active-ripple-color, var(--mat-sys-on-surface))}.mat-mdc-tab-link.mdc-tab--active:hover .mdc-tab__text-label{color:var(--mat-tab-active-hover-label-text-color, var(--mat-sys-on-surface))}.mat-mdc-tab-link.mdc-tab--active:hover .mdc-tab-indicator__content--underline{border-color:var(--mat-tab-active-hover-indicator-color, var(--mat-sys-primary))}.mat-mdc-tab-link.mdc-tab--active:focus .mdc-tab__text-label{color:var(--mat-tab-active-focus-label-text-color, var(--mat-sys-on-surface))}.mat-mdc-tab-link.mdc-tab--active:focus .mdc-tab-indicator__content--underline{border-color:var(--mat-tab-active-focus-indicator-color, var(--mat-sys-primary))}.mat-mdc-tab-link.mat-mdc-tab-disabled{opacity:.4;pointer-events:none}.mat-mdc-tab-link.mat-mdc-tab-disabled .mdc-tab__content{pointer-events:none}.mat-mdc-tab-link.mat-mdc-tab-disabled .mdc-tab__ripple::before,.mat-mdc-tab-link.mat-mdc-tab-disabled .mat-ripple-element{background-color:var(--mat-tab-disabled-ripple-color, var(--mat-sys-on-surface-variant))}.mat-mdc-tab-link .mdc-tab__ripple::before{content:"";display:block;position:absolute;top:0;left:0;right:0;bottom:0;opacity:0;pointer-events:none;background-color:var(--mat-tab-inactive-ripple-color, var(--mat-sys-on-surface))}.mat-mdc-tab-link .mdc-tab__text-label{color:var(--mat-tab-inactive-label-text-color, var(--mat-sys-on-surface));display:inline-flex;align-items:center}.mat-mdc-tab-link .mdc-tab__content{position:relative;pointer-events:auto}.mat-mdc-tab-link:hover .mdc-tab__ripple::before{opacity:.04}.mat-mdc-tab-link.cdk-program-focused .mdc-tab__ripple::before,.mat-mdc-tab-link.cdk-keyboard-focused .mdc-tab__ripple::before{opacity:.12}.mat-mdc-tab-link .mat-ripple-element{opacity:.12;background-color:var(--mat-tab-inactive-ripple-color, var(--mat-sys-on-surface))}.mat-mdc-tab-header.mat-mdc-tab-nav-bar-stretch-tabs .mat-mdc-tab-link{flex-grow:1}.mat-mdc-tab-link::before{margin:5px}@media(max-width: 599px){.mat-mdc-tab-link{min-width:72px}} +`],encapsulation:2,changeDetection:0})}return t})(),V8=(()=>{class t{id=u(Ze).getId("mat-tab-nav-panel-");_activeTabId;static \u0275fac=function(i){return new(i||t)};static \u0275cmp=E({type:t,selectors:[["mat-tab-nav-panel"]],hostAttrs:["role","tabpanel",1,"mat-mdc-tab-nav-panel"],hostVars:2,hostBindings:function(i,r){i&2&&X("aria-labelledby",r._activeTabId)("id",r.id)},inputs:{id:"id"},exportAs:["matTabNavPanel"],ngContentSelectors:np,decls:1,vars:0,template:function(i,r){i&1&&(Me(),oe(0))},encapsulation:2,changeDetection:0})}return t})(),rp=(()=>{class t{static \u0275fac=function(i){return new(i||t)};static \u0275mod=ee({type:t});static \u0275inj=J({imports:[we,we]})}return t})();function Ufe(t,n){if(t&1&&(h(0,"div",1)(1,"div"),_(2),p(),h(3,"div",2)(4,"div",3),_(5),p(),h(6,"div",4),_(7),p()()()),t&2){let e=n.$implicit;g(),it($o("d-flex align-items-center justify-content-center r-12 ",e.color)),Dt("width",3,"rem")("height",3,"rem"),g(),ve(" ",e.icon," "),g(3),H(e.title),g(2),H(e.content)}}function $fe(t,n){if(t&1&&(h(0,"mat-tab",0),xt(1,Ufe,8,10,"div",1,Hi),p()),t&2){let e=n.$implicit;y("label",e.label),g(),Ct(e.messages)}}var B8=(()=>{let n=class n{constructor(){this.tabs=[{label:"Today",messages:[{icon:"\u{1F514}",color:"bg-red-95",title:"General Meeting for update",content:"You can use the Dashboard to explore how many new users download reports daily and monthly."},{icon:"\u{1F4E2}",color:"bg-azure-95",title:"Widgets update",content:"We've made some updates to the emendable widget which we think you are going to love."},{icon:"\u23F3",color:"bg-violet-95",title:"Coming soon new features",content:"More new features are coming soon, so stay patient!"}]},{label:"Notifications",messages:[{icon:"\u{1F4E9}",color:"bg-magenta-95",title:"Weekly reports are available",content:"Please go to the notification center to check your reports."}]}]}};n.\u0275fac=function(r){return new(r||n)},n.\u0275cmp=E({type:n,selectors:[["app-sidebar-notice"]],hostAttrs:[1,"matero-sidebar-notice"],decls:3,vars:0,consts:[[3,"label"],[1,"d-flex","align-items-center","gap-16","p-16","m-b-16","b-1","r-12"],[1,"flex-grow-1","w-0"],[1,"f-w-600"],[1,"f-s-14"]],template:function(r,o){r&1&&(h(0,"mat-tab-group"),xt(1,$fe,3,1,"mat-tab",0,Hi),p()),r&2&&(g(),Ct(o.tabs))},dependencies:[rp,__,tw],styles:[`.matero-sidebar-notice{display:block;height:100%}.matero-sidebar-notice .mat-mdc-tab-group{height:100%}.matero-sidebar-notice .mat-mdc-tab-body-wrapper{flex:1}.matero-sidebar-notice .mat-mdc-tab-body-content{padding:1rem} +`],encapsulation:2});let t=n;return t})();var Wfe=["switch"],Gfe=["*"];function qfe(t,n){t&1&&(h(0,"span",11),Gt(),h(1,"svg",13),k(2,"path",14),p(),h(3,"svg",15),k(4,"path",16),p()())}var Yfe=new T("mat-slide-toggle-default-options",{providedIn:"root",factory:()=>({disableToggleValue:!1,hideIcon:!1,disabledInteractive:!1})}),iw=class{source;checked;constructor(n,e){this.source=n,this.checked=e}},NI=(()=>{class t{_elementRef=u(q);_focusMonitor=u(Yt);_changeDetectorRef=u(ye);defaults=u(Yfe);_onChange=e=>{};_onTouched=()=>{};_validatorOnChange=()=>{};_uniqueId;_checked=!1;_createChangeEvent(e){return new iw(this,e)}_labelId;get buttonId(){return`${this.id||this._uniqueId}-button`}_switchElement;focus(){this._switchElement.nativeElement.focus()}_noopAnimations=Ye();_focused;name=null;id;labelPosition="after";ariaLabel=null;ariaLabelledby=null;ariaDescribedby;required;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 U;toggleChange=new U;get inputId(){return`${this.id||this._uniqueId}-input`}constructor(){u(ut).load(Di);let e=u(new Ii("tabindex"),{optional:!0}),i=this.defaults;this.tabIndex=e==null?0:parseInt(e)||0,this.color=i.color||"accent",this.id=this._uniqueId=u(Ze).getId("mat-mdc-slide-toggle-"),this.hideIcon=i.hideIcon??!1,this.disabledInteractive=i.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 iw(this,this.checked))))}_getAriaLabelledBy(){return this.ariaLabelledby?this.ariaLabelledby:this.ariaLabel?null:this._labelId}static \u0275fac=function(i){return new(i||t)};static \u0275cmp=E({type:t,selectors:[["mat-slide-toggle"]],viewQuery:function(i,r){if(i&1&&ie(Wfe,5),i&2){let o;B(o=j())&&(r._switchElement=o.first)}},hostAttrs:[1,"mat-mdc-slide-toggle"],hostVars:13,hostBindings:function(i,r){i&2&&(si("id",r.id),X("tabindex",null)("aria-label",null)("name",null)("aria-labelledby",null),it(r.color?"mat-"+r.color:""),G("mat-mdc-slide-toggle-focused",r._focused)("mat-mdc-slide-toggle-checked",r.checked)("_mat-animation-noopable",r._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",V],color:"color",disabled:[2,"disabled","disabled",V],disableRipple:[2,"disableRipple","disableRipple",V],tabIndex:[2,"tabIndex","tabIndex",e=>e==null?0:ct(e)],checked:[2,"checked","checked",V],hideIcon:[2,"hideIcon","hideIcon",V],disabledInteractive:[2,"disabledInteractive","disabledInteractive",V]},outputs:{change:"change",toggleChange:"toggleChange"},exportAs:["matSlideToggle"],features:[Ce([{provide:tr,useExisting:Kt(()=>t),multi:!0},{provide:ea,useExisting:t,multi:!0}]),Ae],ngContentSelectors:Gfe,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(i,r){if(i&1){let o=Y();Me(),h(0,"div",1)(1,"button",2,0),S("click",function(){return I(o),A(r._handleClick())}),k(3,"div",3)(4,"span",4),h(5,"span",5)(6,"span",6)(7,"span",7),k(8,"span",8),p(),h(9,"span",9),k(10,"span",10),p(),N(11,qfe,5,0,"span",11),p()()(),h(12,"label",12),S("click",function(s){return I(o),A(s.stopPropagation())}),oe(13),p()()}if(i&2){let o=Se(2);y("labelPosition",r.labelPosition),g(),G("mdc-switch--selected",r.checked)("mdc-switch--unselected",!r.checked)("mdc-switch--checked",r.checked)("mdc-switch--disabled",r.disabled)("mat-mdc-slide-toggle-disabled-interactive",r.disabledInteractive),y("tabIndex",r.disabled&&!r.disabledInteractive?-1:r.tabIndex)("disabled",r.disabled&&!r.disabledInteractive),X("id",r.buttonId)("name",r.name)("aria-label",r.ariaLabel)("aria-labelledby",r._getAriaLabelledBy())("aria-describedby",r.ariaDescribedby)("aria-required",r.required||null)("aria-checked",r.checked)("aria-disabled",r.disabled&&r.disabledInteractive?"true":null),g(9),y("matRippleTrigger",o)("matRippleDisabled",r.disableRipple||r.disabled)("matRippleCentered",!0),g(),L(r.hideIcon?-1:11),g(),y("for",r.buttonId),X("id",r._labelId)}},dependencies:[Vn,Gm],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 rgba(0,0,0,0);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 rgba(0,0,0,0);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:rgba(0,0,0,0);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:.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-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 t})(),j8=(()=>{class t{static \u0275fac=function(i){return new(i||t)};static \u0275mod=ee({type:t});static \u0275inj=J({imports:[NI,we,we]})}return t})();var nw=(()=>{let n=class n{constructor(){this.router=u(Re),this.menu=u(so),this.navItems=[],this.router.events.pipe(ce(i=>i instanceof vi)).subscribe(()=>this.checkOpenedItems()),this.menu.change().pipe(Rt(10)).subscribe(()=>{setTimeout(()=>this.checkOpenedItems())})}addItem(i){this.navItems.push(i)}removeItem(i){let r=this.navItems.indexOf(i);r!==-1&&this.navItems.splice(r,1)}closeOtherItems(i){this.navItems.forEach(r=>{r!==i&&r.setExpanded(!1)})}checkOpenedItems(){this.navItems.forEach(i=>{let r=i.route();r&&this.router.url.split("/").includes(r)&&(i.setExpanded(!0),this.closeOtherItems(i))})}};n.\u0275fac=function(r){return new(r||n)},n.\u0275dir=F({type:n,selectors:[["","navAccordion",""]],exportAs:["navAccordion"]});let t=n;return t})();var rw=(()=>{let n=class n{constructor(){this.nav=u(nw),this.route=ne(""),this.expanded=he(!1)}ngOnInit(){this.nav.addItem(this)}ngOnDestroy(){this.nav.removeItem(this)}toggle(){this.expanded.update(i=>!i),this.expanded()&&this.nav.closeOtherItems(this)}setExpanded(i){this.expanded()!==i&&this.expanded.set(i)}};n.\u0275fac=function(r){return new(r||n)},n.\u0275dir=F({type:n,selectors:[["","navAccordionItem",""]],hostVars:2,hostBindings:function(r,o){r&2&&G("expanded",o.expanded())},inputs:{route:[1,"route"]},exportAs:["navAccordionItem"]});let t=n;return t})();var H8=(()=>{let n=class n{constructor(){this.navItem=u(rw)}onClick(){this.navItem.toggle()}};n.\u0275fac=function(r){return new(r||n)},n.\u0275dir=F({type:n,selectors:[["","navAccordionToggle",""]],hostBindings:function(r,o){r&1&&S("click",function(){return o.onClick()})},exportAs:["navAccordionToggle"]});let t=n;return t})();var Kfe=()=>[],Zfe=(t,n)=>({menuList:t,parentRoute:n,level:0}),z8=t=>[t],ow=(t,n)=>({item:t,level:n}),Xfe=(t,n,e)=>({menuList:t,parentRoute:n,level:e});function Jfe(t,n){if(t&1&&(h(0,"a",6),Ge(1,2),p()),t&2){let e=C(2).$implicit,i=C(),r=i.parentRoute,o=i.level,a=C(),s=Se(5);y("routerLink",a.menu.buildRoute(r.concat(Pt(3,z8,e.route)))),g(),y("ngTemplateOutlet",s)("ngTemplateOutletContext",wa(5,ow,e,o))}}function ege(t,n){if(t&1&&(h(0,"a",7),Ge(1,2),p()),t&2){let e=C(2).$implicit,i=C().level;C();let r=Se(5);y("href",e.route,$r),g(),y("ngTemplateOutlet",r)("ngTemplateOutletContext",wa(3,ow,e,i))}}function tge(t,n){if(t&1&&(h(0,"a",8),Ge(1,2),p()),t&2){let e=C(2).$implicit,i=C().level;C();let r=Se(5);y("href",e.route,$r),g(),y("ngTemplateOutlet",r)("ngTemplateOutletContext",wa(3,ow,e,i))}}function ige(t,n){if(t&1&&(h(0,"button",9),Ge(1,2),p(),Ge(2,2)),t&2){let e=C(2).$implicit,i=C(),r=i.parentRoute,o=i.level;C();let a=Se(3),s=Se(5);g(),y("ngTemplateOutlet",s)("ngTemplateOutletContext",wa(4,ow,e,o)),g(),y("ngTemplateOutlet",a)("ngTemplateOutletContext",Rd(9,Xfe,e.children,r.concat(Pt(7,z8,e.route)),o+1))}}function nge(t,n){if(t&1&&(h(0,"li",5),N(1,Jfe,2,8,"a",6),N(2,ege,2,6,"a",7),N(3,tge,2,6,"a",8),N(4,ige,3,13),p()),t&2){let e=C().$implicit;y("route",e.route),g(),L(e.type==="link"?1:-1),g(),L(e.type==="extLink"?2:-1),g(),L(e.type==="extTabLink"?3:-1),g(),L(e.type==="sub"?4:-1)}}function rge(t,n){if(t&1&&R(0,nge,5,5,"ng-template",4),t&2){let e=n.$implicit;y("ngxPermissionsOnly",e.permissions==null?null:e.permissions.only)("ngxPermissionsExcept",e.permissions==null?null:e.permissions.except)}}function oge(t,n){if(t&1&&(h(0,"ul",3),xt(1,rge,1,2,null,4,Hi),p()),t&2){let e=n.menuList,i=n.level;it($o("matero-sidemenu level-",i)),G("submenu",i>0),g(),Ct(e)}}function age(t,n){if(t&1&&(h(0,"mat-icon",14),_(1),p()),t&2){let e=C(),i=e.item,r=e.level;G("submenu-icon",r>0),g(),H(i.icon)}}function sge(t,n){if(t&1&&(h(0,"span",14),_(1),me(2,"translate"),me(3,"slice"),p()),t&2){let e=C(),i=e.item,r=e.level;G("submenu-icon",r>0),g(),ve(" ",BM(3,5,Oe(2,3,i.name),0,1)," ")}}function lge(t,n){if(t&1&&(h(0,"span"),_(1),p()),t&2){let e=C().item;it($o("menu-label bg-",e.label.color)),g(),H(e.label.value)}}function cge(t,n){if(t&1&&(h(0,"span"),_(1),p()),t&2){let e=C().item;it($o("menu-badge bg-",e.badge.color)),g(),H(e.badge.value)}}function dge(t,n){if(t&1&&(h(0,"mat-icon",13),_(1),p()),t&2){let e=C().item;g(),H(e.type==="sub"?"arrow_drop_down":"launch")}}function uge(t,n){if(t&1&&(N(0,age,2,3,"mat-icon",10)(1,sge,4,9,"span",10),h(2,"span",11),_(3),me(4,"translate"),p(),N(5,lge,2,4,"span",12),N(6,cge,2,4,"span",12),N(7,dge,2,1,"mat-icon",13)),t&2){let e=n.item;L(e.icon?0:1),g(3),H(Oe(4,5,e.name)),g(2),L(e.label?5:-1),g(),L(e.badge?6:-1),g(),L(e.type!=="link"?7:-1)}}var U8=(()=>{let n=class n{constructor(){this.menu=u(so)}};n.\u0275fac=function(r){return new(r||n)},n.\u0275cmp=E({type:n,selectors:[["app-sidemenu"]],decls:6,vars:8,consts:[["menuTpl",""],["linkTypeTpl",""],[3,"ngTemplateOutlet","ngTemplateOutletContext"],["navAccordion",""],[3,"ngxPermissionsOnly","ngxPermissionsExcept"],["navAccordionItem","","routerLinkActive","active",1,"menu-item",3,"route"],["matRipple","",1,"menu-heading",3,"routerLink"],["matRipple","",1,"menu-heading",3,"href"],["target","_blank","matRipple","",1,"menu-heading",3,"href"],["navAccordionToggle","","matRipple","",1,"menu-heading","menu-toggle"],[1,"menu-icon",3,"submenu-icon"],[1,"menu-name"],[3,"class"],[1,"menu-caret"],[1,"menu-icon"]],template:function(r,o){if(r&1&&(Ge(0,2),me(1,"async"),R(2,oge,3,5,"ng-template",null,0,_i)(4,uge,8,7,"ng-template",null,1,_i)),r&2){let a=Se(3);y("ngTemplateOutlet",a)("ngTemplateOutletContext",wa(5,Zfe,Oe(1,2,o.menu.getAll()),at(4,Kfe)))}},dependencies:[Fn,Nn,zd,xc,Ih,ot,mt,yo,Vn,wr,nw,rw,H8,rn,d1,Cr],styles:[`.matero-sidemenu{padding:0;margin:0;list-style:none}.matero-sidemenu .menu-item{overflow:hidden;border-radius:1.5rem;transition:background 225ms cubic-bezier(.4,0,.2,1)}.matero-sidemenu .menu-item>.submenu{visibility:hidden;height:0;transition:all 225ms cubic-bezier(.4,0,.2,1)}.matero-sidemenu .menu-item>.menu-heading:hover,.matero-sidemenu .menu-item>.menu-heading:focus{background-color:var(--sidemenu-heading-hover-background-color)}.matero-sidemenu .menu-item.active>.menu-heading{color:var(--sidemenu-active-heading-text-color);background-color:var(--sidemenu-active-heading-background-color)}.matero-sidemenu .menu-item.active>.menu-heading:hover,.matero-sidemenu .menu-item.active>.menu-heading:focus{background-color:var(--sidemenu-active-heading-hover-background-color)}.matero-sidemenu .menu-item.expanded{background-color:var(--sidemenu-expanded-background-color)}.matero-sidemenu .menu-item.expanded>.submenu{visibility:visible;height:auto;height:calc-size(auto,size)}.matero-sidemenu .menu-item.expanded>.menu-toggle>.menu-caret{transform:rotate(-180deg)}.matero-sidemenu .menu-item:has(.active)>.menu-heading{color:var(--sidemenu-active-heading-text-color)}.matero-sidemenu .menu-heading{position:relative;display:flex;align-items:center;width:calc(var(--sidenav-width) - 1rem);padding:.75rem;font-size:inherit;color:inherit;text-decoration:none;cursor:pointer;outline:none;background-color:transparent;border:none;border-radius:1.5rem}.matero-sidemenu .menu-icon{width:1.5rem;height:1.5rem;margin-right:.75rem;font-size:1.25rem;line-height:1.5rem;text-align:center}[dir=rtl] .matero-sidemenu .menu-icon{margin-right:0;margin-left:.75rem}.matero-sidemenu .menu-icon.submenu-icon{position:absolute;left:.75rem;width:1.5rem;height:1.5rem;font-size:1rem;line-height:1.5rem;opacity:0}[dir=rtl] .matero-sidemenu .menu-icon.submenu-icon{right:.75rem;left:0}.matero-sidemenu .menu-caret{display:block;width:1.5rem;height:1.5rem;font-size:1.5rem;line-height:1.5rem;text-align:center;transition:transform .4s cubic-bezier(.25,.8,.25,1)}.matero-sidemenu .menu-name{flex:1;overflow:hidden;text-overflow:ellipsis;text-align:initial}.matero-sidemenu .menu-icon,.matero-sidemenu .menu-name,.matero-sidemenu .menu-label,.matero-sidemenu .menu-badge{transition:opacity .4s cubic-bezier(.25,.8,.25,1)}.matero-sidemenu .menu-label,.matero-sidemenu .menu-badge{padding:.25rem .5rem;font-size:.75rem;font-weight:700;line-height:1;color:#fff;background-color:#757575;border-radius:.375rem}.matero-sidemenu .menu-badge{border-radius:50rem}.matero-sidemenu.level-1>li>.menu-heading{padding-left:3rem}[dir=rtl] .matero-sidemenu.level-1>li>.menu-heading{padding-right:3rem;padding-left:1rem}.matero-sidemenu.level-2>li>.menu-heading{padding-left:4rem}[dir=rtl] .matero-sidemenu.level-2>li>.menu-heading{padding-right:4rem;padding-left:1rem}.matero-sidemenu.level-2 [class^=level-]>li>.menu-heading{padding-left:5rem}[dir=rtl] .matero-sidemenu.level-2 [class^=level-]>li>.menu-heading{padding-right:5rem;padding-left:1rem} +`],encapsulation:2});let t=n;return t})();var $8=(()=>{let n=class n{constructor(){this.oidcAuth=u(Tt),this.userName="Guest",this.userEmail="Anonymous"}ngOnInit(){this.updateUserInfo(),this.authSubscription=this.oidcAuth.isAuthenticated$.subscribe(i=>{console.log("UserPanel: Auth state changed:",i),this.updateUserInfo()})}ngOnDestroy(){this.authSubscription?.unsubscribe()}updateUserInfo(){let i=this.oidcAuth.isAuthenticated();if(console.log("UserPanel: Updating user info, isAuthenticated:",i),!i){this.userName="Guest",this.userEmail="Anonymous";return}let r=this.oidcAuth.getUserInfo();console.log("UserPanel: User info from service:",r),console.log("UserPanel: Available claims:",r?Object.keys(r):"null"),this.userName=r?.name||r?.preferred_username||r?.given_name||r?.["http://schemas.xmlsoap.org/ws/2005/05/identity/claims/name"]||r?.sub||"User",this.userEmail=r?.email||r?.["http://schemas.xmlsoap.org/ws/2005/05/identity/claims/emailaddress"]||"",console.log("UserPanel: Set userName to:",this.userName,"email to:",this.userEmail)}};n.\u0275fac=function(r){return new(r||n)},n.\u0275cmp=E({type:n,selectors:[["app-user-panel"]],decls:8,vars:4,consts:[[1,"matero-user-panel"],[1,"matero-user-panel-avatar"],[1,"matero-user-panel-info"]],template:function(r,o){r&1&&(h(0,"div",0)(1,"mat-icon",1),_(2,"account_circle"),p(),h(3,"div",2)(4,"h4"),_(5),p(),h(6,"h5"),_(7),p()()()),r&2&&(G("authenticated",o.oidcAuth.isAuthenticated()),g(5),H(o.userName),g(2),H(o.userEmail))},dependencies:[gt,ze,ot,mt,Br,wr],styles:[`.matero-user-panel{display:flex;align-items:center;padding:.75rem;margin-bottom:.75rem;cursor:pointer;outline:none;background-color:var(--user-panel-background-color);border-radius:.75rem}.matero-user-panel:hover,.matero-user-panel:focus{background-color:var(--user-panel-hover-background-color)}.matero-user-panel-avatar{width:3rem;height:3rem;font-size:3rem;border-radius:50rem;color:#0000008a;transform-origin:0 1.5rem;transition:transform .4s cubic-bezier(.25,.8,.25,1)}[dir=rtl] .matero-user-panel-avatar{transform-origin:3rem 1.5rem}.matero-user-panel-info{flex:1;width:0;margin-left:.75rem;opacity:1;transition:opacity .4s cubic-bezier(.25,.8,.25,1)}[dir=rtl] .matero-user-panel-info{margin-right:.75rem;margin-left:0}.matero-user-panel-info h4,.matero-user-panel-info h5{margin:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.matero-user-panel-info h4{margin-bottom:4px;font-size:1rem;font-weight:500}.matero-user-panel-info h5{font-size:.75rem;font-weight:400} +`],encapsulation:2});let t=n;return t})();function mge(t,n){if(t&1){let e=Y();h(0,"mat-slide-toggle",6),S("change",function(){I(e);let r=C(2);return A(r.toggleCollapsed.emit())}),p()}if(t&2){let e=C(2);y("checked",e.toggleChecked())}}function hge(t,n){if(t&1){let e=Y();h(0,"button",7),S("click",function(){I(e);let r=C(2);return A(r.closeSidenav.emit())}),h(1,"mat-icon"),_(2,"close"),p()()}}function pge(t,n){if(t&1&&(h(0,"div",0)(1,"mat-toolbar"),k(2,"app-branding",2)(3,"span",3),N(4,mge,1,1,"mat-slide-toggle",4)(5,hge,3,0,"button",5),p()()),t&2){let e=C();g(2),y("showName",!e.toggleChecked()),g(2),L(e.showToggle()?4:5)}}function fge(t,n){t&1&&k(0,"app-user-panel")}var W8=(()=>{let n=class n{constructor(){this.showToggle=ne(!0),this.showUser=ne(!0),this.showHeader=ne(!0),this.toggleChecked=ne(!1),this.toggleCollapsed=bi(),this.closeSidenav=bi()}};n.\u0275fac=function(r){return new(r||n)},n.\u0275cmp=E({type:n,selectors:[["app-sidebar"]],inputs:{showToggle:[1,"showToggle"],showUser:[1,"showUser"],showHeader:[1,"showHeader"],toggleChecked:[1,"toggleChecked"]},outputs:{toggleCollapsed:"toggleCollapsed",closeSidenav:"closeSidenav"},decls:4,vars:2,consts:[[1,"matero-sidebar-header"],[1,"matero-sidebar-main"],[3,"showName"],[1,"flex-fill"],["hideIcon","",3,"checked"],["mat-icon-button",""],["hideIcon","",3,"change","checked"],["mat-icon-button","",3,"click"]],template:function(r,o){r&1&&(N(0,pge,6,2,"div",0),h(1,"div",1),N(2,fge,1,0,"app-user-panel"),k(3,"app-sidemenu"),p()),r&2&&(L(o.showHeader()?0:-1),g(2),L(o.showUser()?2:-1))},dependencies:[j8,NI,ot,mt,ze,ti,ZC,KC,XC,U8,$8],styles:[`.matero-sidebar-header{overflow:hidden}.matero-sidebar-header mat-toolbar{width:var(--sidenav-width);padding:0 .5rem}.matero-sidebar-header mat-slide-toggle .mdc-label{display:none}.matero-sidebar-main{height:calc(100% - var(--mat-toolbar-standard-height));padding:0 .5rem .5rem;overflow:auto;scrollbar-width:none}@media (max-width: 599px){.matero-sidebar-main{height:calc(100% - var(--mat-toolbar-mobile-height))}} +`],encapsulation:2});let t=n;return t})();var G8=t=>[t],gge=()=>[];function _ge(t,n){if(t&1){let e=Y();h(0,"a",8,0),S("click",function(){I(e);let r=Se(1),o=C(3);return A(o.onRouterLinkClick(r))}),_(2),me(3,"translate"),p()}if(t&2){let e=C(2).$implicit,i=C();y("routerLink",i.menu.buildRoute(i.parentRoute().concat(Pt(4,G8,e.route)))),g(2),ve(" ",Oe(3,2,e.name)," ")}}function bge(t,n){if(t&1&&(h(0,"a",5)(1,"span",9),_(2),me(3,"translate"),p(),h(4,"mat-icon"),_(5,"launch"),p()()),t&2){let e=C(2).$implicit;y("href",e.route,$r),g(2),H(Oe(3,2,e.name))}}function vge(t,n){if(t&1&&(h(0,"a",6)(1,"span",9),_(2),me(3,"translate"),p(),h(4,"mat-icon"),_(5,"launch"),p()()),t&2){let e=C(2).$implicit;y("href",e.route,$r),g(2),H(Oe(3,2,e.name))}}function yge(t,n){if(t&1){let e=Y();h(0,"button",10),_(1),me(2,"translate"),h(3,"app-topmenu-panel",11,1),S("routeChange",function(r){I(e);let o=C(2).$implicit,a=C();return A(a.onRouteChange(r,o))}),p()()}if(t&2){let e=Se(4),i=C(2).$implicit,r=C();G("active",i.active==null?null:i.active()),y("matMenuTriggerFor",e.menuPanel()),g(),ve(" ",Oe(2,7,i.name)," "),g(2),y("items",i.children||at(9,gge))("parentRoute",r.parentRoute().concat(Pt(10,G8,i.route)))("level",r.level()+1)}}function xge(t,n){if(t&1&&(N(0,_ge,4,6,"a",4),N(1,bge,6,4,"a",5),N(2,vge,6,4,"a",6),N(3,yge,5,12,"button",7)),t&2){let e=C().$implicit;L(e.type==="link"?0:-1),g(),L(e.type==="extLink"?1:-1),g(),L(e.type==="extTabLink"?2:-1),g(),L(e.type==="sub"?3:-1)}}function Cge(t,n){if(t&1&&R(0,xge,4,4,"ng-template",3),t&2){let e=n.$implicit;y("ngxPermissionsOnly",e.permissions==null?null:e.permissions.only)("ngxPermissionsExcept",e.permissions==null?null:e.permissions.except)}}var q8=(()=>{let n=class n{constructor(){this.router=u(Re),this.menu=u(so),this.menuPanel=qn.required(jr),this.items=ne([]),this.parentRoute=ne([]),this.level=ne(1),this.routeChange=bi(),this.routerSubscription=this.router.events.pipe(ce(i=>i instanceof vi)).subscribe(i=>{this.items().map(r=>r.active?.set(!1))})}ngOnInit(){this.items().forEach(i=>{i.active=he(this.checkRoute(i))})}ngOnDestroy(){this.routerSubscription.unsubscribe()}checkRoute(i){return i.route?this.router.url.split("/").includes(i.route):this.checkChildRoute(i.children)}checkChildRoute(i=[]){return i.some(r=>this.router.url.split("/").includes(r.route)?!0:(!r.route&&r.children&&this.checkChildRoute(r.children),!1))}onRouterLinkClick(i){this.routeChange.emit(i)}onRouteChange(i,r){this.routeChange.emit(i),this.routerSubscription.unsubscribe(),this.routerSubscription=this.router.events.pipe(ce(o=>o instanceof vi),Be(()=>{this.items().filter(a=>a!=r).map(a=>a.active?.set(!1))}),Rt(10),Be(()=>{r.active?.set(i.isActive)})).subscribe()}};n.\u0275fac=function(r){return new(r||n)},n.\u0275cmp=E({type:n,selectors:[["app-topmenu-panel"]],viewQuery:function(r,o){r&1&&Pn(o.menuPanel,jr,5),r&2&&Ho()},inputs:{items:[1,"items"],parentRoute:[1,"parentRoute"],level:[1,"level"]},outputs:{routeChange:"routeChange"},decls:3,vars:0,consts:[["rla","routerLinkActive"],["submenu",""],[1,"matero-topmenu-panel"],[3,"ngxPermissionsOnly","ngxPermissionsExcept"],["mat-menu-item","","routerLinkActive","active",3,"routerLink"],["mat-menu-item","",3,"href"],["mat-menu-item","","target","_blank",3,"href"],["mat-menu-item","",3,"matMenuTriggerFor","active"],["mat-menu-item","","routerLinkActive","active",3,"click","routerLink"],[1,"menu-name"],["mat-menu-item","",3,"matMenuTriggerFor"],[3,"routeChange","items","parentRoute","level"]],template:function(r,o){r&1&&(h(0,"mat-menu",2),xt(1,Cge,1,2,null,3,Hi),p()),r&2&&(g(),Ct(o.items()))},dependencies:[n,Nn,zd,ot,mt,Ls,jr,El,Ns,xc,Ih,wr,Cr],encapsulation:2});let t=n;return t})();var Y8=t=>[t],sw=t=>({item:t}),wge=()=>[];function Dge(t,n){if(t&1&&(h(0,"a",5),Ge(1,9),p()),t&2){let e=C(2).$implicit,i=C(),r=Se(7);y("routerLink",i.menu.buildRoute(Pt(3,Y8,e.route))),g(),y("ngTemplateOutlet",r)("ngTemplateOutletContext",Pt(5,sw,e))}}function Ege(t,n){if(t&1&&(h(0,"a",6),Ge(1,9),p()),t&2){let e=C(2).$implicit;C();let i=Se(7);y("href",e.route,$r),g(),y("ngTemplateOutlet",i)("ngTemplateOutletContext",Pt(3,sw,e))}}function Mge(t,n){if(t&1&&(h(0,"a",7),Ge(1,9),p()),t&2){let e=C(2).$implicit;C();let i=Se(7);y("href",e.route,$r),g(),y("ngTemplateOutlet",i)("ngTemplateOutletContext",Pt(3,sw,e))}}function kge(t,n){if(t&1){let e=Y();h(0,"button",10),Ge(1,9),h(2,"app-topmenu-panel",11,2),S("routeChange",function(r){I(e);let o=C(2).$implicit,a=C();return A(a.onRouteChange(r,o))}),p()()}if(t&2){let e=Se(3),i=C(2).$implicit;C();let r=Se(7);G("active",i.active==null?null:i.active()),y("matMenuTriggerFor",e.menuPanel()),g(),y("ngTemplateOutlet",r)("ngTemplateOutletContext",Pt(8,sw,i)),g(),y("items",i.children||at(10,wge))("parentRoute",Pt(11,Y8,i.route))("level",1)}}function Sge(t,n){if(t&1&&(N(0,Dge,2,7,"a",5),N(1,Ege,2,5,"a",6),N(2,Mge,2,5,"a",7),N(3,kge,4,13,"button",8)),t&2){let e=C().$implicit;L(e.type==="link"?0:-1),g(),L(e.type==="extLink"?1:-1),g(),L(e.type==="extTabLink"?2:-1),g(),L(e.type==="sub"?3:-1)}}function Tge(t,n){if(t&1&&R(0,Sge,4,4,"ng-template",4),t&2){let e=n.$implicit;y("ngxPermissionsOnly",e.permissions==null?null:e.permissions.only)("ngxPermissionsExcept",e.permissions==null?null:e.permissions.except)}}function Ige(t,n){if(t&1&&(h(0,"span"),_(1),p()),t&2){let e=C().item;it($o("menu-label bg-",e.label.color)),g(),H(e.label.value)}}function Age(t,n){if(t&1&&(h(0,"span"),_(1),p()),t&2){let e=C().item;it($o("menu-badge bg-",e.badge.color)),g(),H(e.badge.value)}}function Oge(t,n){if(t&1&&(h(0,"mat-icon",15),_(1),p()),t&2){let e=C().item;g(),H(e.type==="sub"?"arrow_drop_down":"launch")}}function Rge(t,n){if(t&1&&(h(0,"mat-icon",12),_(1),p(),h(2,"span",13),_(3),me(4,"translate"),p(),N(5,Ige,2,4,"span",14),N(6,Age,2,4,"span",14),N(7,Oge,2,1,"mat-icon",15)),t&2){let e=n.item;g(),H(e.icon),g(2),H(Oe(4,5,e.name)),g(2),L(e.label?5:-1),g(),L(e.badge?6:-1),g(),L(e.type!=="link"?7:-1)}}var Q8=(()=>{let n=class n{constructor(){this.router=u(Re),this.menu=u(so),this.menuList=[],this.menuSubscription=this.menu.getAll().subscribe(i=>{this.menuList=i.map(r=>{let o=this.router.url.split("/").includes(r.route);return r.active=he(o),r})}),this.routerSubscription=this.router.events.pipe(ce(i=>i instanceof vi)).subscribe(i=>{this.menuList.map(r=>r.active?.set(!1))})}ngOnDestroy(){this.menuSubscription.unsubscribe(),this.routerSubscription.unsubscribe()}onRouteChange(i,r){this.routerSubscription.unsubscribe(),this.routerSubscription=this.router.events.pipe(ce(o=>o instanceof vi),Be(()=>{this.menuList.filter(o=>o!=r).map(o=>o.active?.set(!1))}),Rt(10),Be(()=>{r.active?.set(i.isActive)})).subscribe()}};n.\u0275fac=function(r){return new(r||n)},n.\u0275cmp=E({type:n,selectors:[["app-topmenu"]],hostAttrs:[1,"matero-topmenu"],decls:8,vars:3,consts:[["tabPanel",""],["linkTypeTpl",""],["submenu",""],["mat-tab-nav-bar","",3,"tabPanel"],[3,"ngxPermissionsOnly","ngxPermissionsExcept"],["matButton","","routerLinkActive","active",3,"routerLink"],["matButton","",3,"href"],["matButton","","target","_blank",3,"href"],["matButton","",3,"matMenuTriggerFor","active"],[3,"ngTemplateOutlet","ngTemplateOutletContext"],["matButton","",3,"matMenuTriggerFor"],[3,"routeChange","items","parentRoute","level"],[1,"menu-icon"],[1,"menu-name"],[3,"class"],[1,"menu-caret"]],template:function(r,o){if(r&1&&(h(0,"nav",3),xt(1,Tge,1,2,null,4,Hi),me(3,"async"),p(),k(4,"mat-tab-nav-panel",null,0),R(6,Rge,8,7,"ng-template",null,1,_i)),r&2){let a=Se(5);y("tabPanel",a),g(),Ct(Oe(3,1,o.menu.getAll()))}},dependencies:[Fn,Nn,zd,ze,kt,ot,mt,Ls,Ns,rp,PI,V8,xc,Ih,wr,q8,rn,Cr],styles:[`.matero-topmenu{--mat-tab-divider-height: 0;--mat-button-text-label-text-color: var(--topmenu-text-color);position:sticky;z-index:200;display:block;padding:.5rem;background-color:var(--topmenu-background-color);-webkit-backdrop-filter:blur(8px);backdrop-filter:blur(8px)}.matero-topmenu .mat-mdc-button{padding:0 1rem;white-space:nowrap}.matero-topmenu .mat-mdc-button.active{background-color:var(--topmenu-item-active-background-color)}.matero-topmenu .menu-icon,.matero-topmenu .menu-caret,.matero-topmenu .menu-name{vertical-align:middle}.matero-topmenu .mat-icon.menu-icon{width:1.125rem;height:1.125rem;margin-right:.5rem;font-size:1.125rem;line-height:1.125rem}[dir=rtl] .matero-topmenu .mat-icon.menu-icon{margin-right:auto;margin-left:.5rem}.matero-topmenu .mat-icon.menu-caret{margin-right:-.5rem}[dir=rtl] .matero-topmenu .mat-icon.menu-caret{margin-right:auto;margin-left:-.5rem}.matero-topmenu .menu-label,.matero-topmenu .menu-badge{padding:.25rem .5rem;margin-left:.5rem;font-size:.75rem;font-weight:700;line-height:1;color:#fff;background-color:#757575;border-radius:.375rem}[dir=rtl] .matero-topmenu .menu-label,[dir=rtl] .matero-topmenu .menu-badge{margin-right:.5rem;margin-left:auto}.matero-topmenu .menu-badge{border-radius:50rem}.matero-topmenu .mat-tab-nav-bar,.matero-topmenu .mat-tab-header{border-bottom:none}.matero-topmenu-panel .mat-mdc-menu-item.active{color:var(--topmenu-dropdown-item-active-text-color)} +`],encapsulation:2});let t=n;return t})();var Pge=["sidenav"],Fge=["content"];function Nge(t,n){if(t&1){let e=Y();h(0,"app-header",13),S("toggleSidenav",function(){I(e),C();let r=Se(5);return A(r.toggle())})("toggleSidenavNotice",function(){I(e),C();let r=Se(8);return A(r.toggle())}),p()}t&2&&y("showBranding",!0)}function Lge(t,n){if(t&1){let e=Y();h(0,"app-header",14),S("toggleSidenav",function(){I(e),C();let r=Se(5);return A(r.toggle())})("toggleSidenavNotice",function(){I(e),C();let r=Se(8);return A(r.toggle())}),p()}if(t&2){let e=C();y("showToggle",!e.options.sidenavCollapsed&&e.options.navPos!=="top")("showBranding",e.options.navPos==="top")}}function Vge(t,n){t&1&&k(0,"app-topmenu")}var K8="screen and (max-width: 599px)",Z8="screen and (min-width: 600px) and (max-width: 959px)",X8="screen and (min-width: 960px)",J8=(()=>{let n=class n{get themeColor(){return this.settings.getThemeColor()}get isOver(){return this.isMobileScreen}get contentWidthFix(){return this.isContentWidthFixed&&this.options.navPos==="side"&&this.options.sidenavOpened&&!this.isOver}get collapsedWidthFix(){return this.isCollapsedWidthFixed&&(this.options.navPos==="top"||this.options.sidenavOpened&&this.isOver)}constructor(){this.sidenav=qn.required("sidenav"),this.content=qn.required("content"),this.breakpointObserver=u(sl),this.router=u(Re),this.settings=u(aa),this.options=this.settings.options,this.isMobileScreen=!1,this.isContentWidthFixed=!0,this.isCollapsedWidthFixed=!1,this.layoutChangesSubscription=ke.EMPTY,this.layoutChangesSubscription=this.breakpointObserver.observe([K8,Z8,X8]).subscribe(i=>{this.options.sidenavOpened=!0,this.isMobileScreen=i.breakpoints[K8],this.options.sidenavCollapsed=i.breakpoints[Z8],this.isContentWidthFixed=i.breakpoints[X8]}),this.router.events.pipe(ce(i=>i instanceof vi)).subscribe(i=>{this.isOver&&this.sidenav().close(),this.content().scrollTo({top:0})})}ngOnDestroy(){this.layoutChangesSubscription.unsubscribe()}toggleCollapsed(){this.isContentWidthFixed=!1,this.options.sidenavCollapsed=!this.options.sidenavCollapsed,this.resetCollapsedState()}resetCollapsedState(i=400){setTimeout(()=>{this.settings.setOptions(this.options)},i)}onSidenavClosedStart(){this.isContentWidthFixed=!1}onSidenavOpenedChange(i){this.isCollapsedWidthFixed=!this.isOver,this.options.sidenavOpened=i,this.settings.setOptions(this.options)}updateOptions(i){this.options=i,this.settings.setOptions(i),this.settings.setDirection(),this.settings.setTheme()}};n.\u0275fac=function(r){return new(r||n)},n.\u0275cmp=E({type:n,selectors:[["app-admin-layout"]],viewQuery:function(r,o){r&1&&(Pn(o.sidenav,Pge,5),Pn(o.content,Fge,5)),r&2&&Ho(2)},hostVars:4,hostBindings:function(r,o){r&2&&G("matero-content-width-fix",o.contentWidthFix)("matero-sidenav-collapsed-fix",o.collapsedWidthFix)},decls:16,vars:20,consts:[["sidenav",""],["sidenavNotice",""],["content",""],[1,"matero-container-wrap",3,"dir"],["ngProgressRouter",""],[3,"showBranding"],["autosize","","autoFocus","",1,"matero-container"],[1,"matero-sidenav",3,"openedChange","closedStart","mode","opened"],[3,"toggleCollapsed","closeSidenav","showToggle","showUser","showHeader","toggleChecked"],["position","end","mode","over"],[1,"matero-content"],[3,"showToggle","showBranding"],[1,"matero-page-content"],[3,"toggleSidenav","toggleSidenavNotice","showBranding"],[3,"toggleSidenav","toggleSidenavNotice","showToggle","showBranding"]],template:function(r,o){if(r&1){let a=Y();h(0,"div",3),k(1,"ng-progress",4),N(2,Nge,1,1,"app-header",5),h(3,"mat-sidenav-container",6)(4,"mat-sidenav",7,0),S("openedChange",function(l){return I(a),A(o.onSidenavOpenedChange(l))})("closedStart",function(){return I(a),A(o.onSidenavClosedStart())}),h(6,"app-sidebar",8),S("toggleCollapsed",function(){return I(a),A(o.toggleCollapsed())})("closeSidenav",function(){I(a);let l=Se(5);return A(l.close())}),p()(),h(7,"mat-sidenav",9,1),k(9,"app-sidebar-notice"),p(),h(10,"mat-sidenav-content",10,2),N(12,Lge,1,2,"app-header",11),N(13,Vge,1,0,"app-topmenu"),h(14,"main",12),k(15,"router-outlet"),p()()()()}r&2&&(G("matero-sidenav-collapsed",o.options.sidenavCollapsed&&o.options.navPos!=="top")("matero-navbar-side",o.options.navPos==="side")("matero-navbar-top",o.options.navPos==="top")("matero-header-above",o.options.headerPos==="above")("matero-header-fixed",o.options.headerPos==="fixed"),y("dir",o.options.dir),g(2),L(o.options.showHeader&&o.options.headerPos==="above"?2:-1),g(2),y("mode",o.isOver?"over":"side")("opened",o.options.navPos==="side"&&o.options.sidenavOpened&&!o.isOver),g(2),y("showToggle",!o.isOver)("showUser",!!o.options.showUserPanel)("showHeader",o.options.headerPos!=="above")("toggleChecked",!!o.options.sidenavCollapsed),g(6),L(o.options.showHeader&&o.options.headerPos!=="above"?12:-1),g(),L(o.options.navPos==="top"?13:-1))},dependencies:[ol,vs,HL,i8,MI,t8,GC,r8,a8,w8,Q8,W8,B8],styles:[`.matero-container-wrap,.matero-container{--mat-sidenav-content-background-color: transparent;height:100%}.matero-sidenav{--mat-sidenav-container-width: var(--sidenav-width);position:absolute;overflow-x:hidden;border-width:0!important;transition-property:transform,width!important}.matero-header-above .matero-container{height:calc(100% - var(--mat-toolbar-standard-height))!important}@media (max-width: 599px){.matero-header-above .matero-container{height:calc(100% - var(--mat-toolbar-mobile-height))!important}}.matero-header-above .matero-sidebar-main{height:100%!important;padding-top:.5rem}.matero-sidenav-collapsed .matero-sidenav,.matero-sidenav-collapsed-fix .matero-sidenav{width:var(--sidenav-collapsed-width)}.matero-sidenav-collapsed .matero-sidenav .menu-name,.matero-sidenav-collapsed .matero-sidenav .menu-label,.matero-sidenav-collapsed .matero-sidenav .menu-badge,.matero-sidenav-collapsed .matero-sidenav .menu-caret,.matero-sidenav-collapsed .matero-sidenav .matero-user-panel-info,.matero-sidenav-collapsed-fix .matero-sidenav .menu-name,.matero-sidenav-collapsed-fix .matero-sidenav .menu-label,.matero-sidenav-collapsed-fix .matero-sidenav .menu-badge,.matero-sidenav-collapsed-fix .matero-sidenav .menu-caret,.matero-sidenav-collapsed-fix .matero-sidenav .matero-user-panel-info{opacity:0}.matero-sidenav-collapsed .matero-sidenav .menu-icon.submenu-icon,.matero-sidenav-collapsed-fix .matero-sidenav .menu-icon.submenu-icon{opacity:1}.matero-sidenav-collapsed .matero-sidenav .matero-user-panel-avatar,.matero-sidenav-collapsed-fix .matero-sidenav .matero-user-panel-avatar{transform:scale(.5)}.matero-sidenav-collapsed .matero-sidenav:hover,.matero-sidenav-collapsed-fix .matero-sidenav:hover{width:var(--sidenav-width)}.matero-sidenav-collapsed .matero-sidenav:hover .menu-name,.matero-sidenav-collapsed .matero-sidenav:hover .menu-label,.matero-sidenav-collapsed .matero-sidenav:hover .menu-badge,.matero-sidenav-collapsed .matero-sidenav:hover .menu-caret,.matero-sidenav-collapsed .matero-sidenav:hover .matero-user-panel-info,.matero-sidenav-collapsed-fix .matero-sidenav:hover .menu-name,.matero-sidenav-collapsed-fix .matero-sidenav:hover .menu-label,.matero-sidenav-collapsed-fix .matero-sidenav:hover .menu-badge,.matero-sidenav-collapsed-fix .matero-sidenav:hover .menu-caret,.matero-sidenav-collapsed-fix .matero-sidenav:hover .matero-user-panel-info{opacity:1}.matero-sidenav-collapsed .matero-sidenav:hover .menu-icon.submenu-icon,.matero-sidenav-collapsed-fix .matero-sidenav:hover .menu-icon.submenu-icon{opacity:0}.matero-sidenav-collapsed .matero-sidenav:hover .matero-user-panel-avatar,.matero-sidenav-collapsed-fix .matero-sidenav:hover .matero-user-panel-avatar{transform:scale(1)}.matero-sidenav-collapsed .matero-content{margin-left:var(--sidenav-collapsed-width)!important}[dir=rtl] .matero-sidenav-collapsed .matero-content,.matero-sidenav-collapsed[dir=rtl] .matero-content{margin-right:var(--sidenav-collapsed-width)!important;margin-left:auto!important}.matero-navbar-top .matero-topmenu{top:0}.matero-navbar-top .matero-branding{margin-left:1rem}[dir=rtl] .matero-navbar-top .matero-branding{margin-right:1rem;margin-left:auto}.matero-header-fixed .matero-header{position:sticky;top:0}.matero-header-fixed .matero-topmenu{top:var(--mat-toolbar-standard-height)}@media (max-width: 599px){.matero-header-fixed .matero-topmenu{top:var(--mat-toolbar-mobile-height)}}.matero-content-width-fix .matero-content{margin-left:var(--sidenav-width)!important}[dir=rtl] .matero-content-width-fix .matero-content{margin-right:var(--sidenav-width)!important;margin-left:auto!important}.matero-page-content{position:relative;padding:var(--gutter)}.matero-header+.matero-page-content,.matero-header-above .matero-page-content,.matero-navbar-top .matero-page-content{padding-top:0} +`],encapsulation:2});let t=n;return t})();var eU=(()=>{let n=class n{};n.\u0275fac=function(r){return new(r||n)},n.\u0275cmp=E({type:n,selectors:[["app-auth-layout"]],decls:2,vars:0,consts:[[1,"matero-auth-container"]],template:function(r,o){r&1&&(h(0,"div",0),k(1,"router-outlet"),p())},dependencies:[ol],styles:[`.matero-auth-container{position:relative;display:flex;justify-content:center;min-height:100%;background-image:radial-gradient(at 97% 21%,hsla(125,98%,72%,.3) 0,transparent 50%),radial-gradient(at 52% 99%,hsla(354,98%,61%,.3) 0,transparent 50%),radial-gradient(at 10% 29%,hsla(256,96%,67%,.3) 0,transparent 50%),radial-gradient(at 97% 96%,hsla(38,60%,74%,.3) 0,transparent 50%),radial-gradient(at 33% 50%,hsla(222,67%,73%,.3) 0,transparent 50%),radial-gradient(at 79% 53%,hsla(343,68%,79%,.3) 0,transparent 50%)} +`],encapsulation:2});let t=n;return t})();var Bge=["determinateSpinner"];function jge(t,n){if(t&1&&(Gt(),h(0,"svg",11),k(1,"circle",12),p()),t&2){let e=C();X("viewBox",e._viewBox()),g(),Dt("stroke-dasharray",e._strokeCircumference(),"px")("stroke-dashoffset",e._strokeCircumference()/2,"px")("stroke-width",e._circleStrokeWidth(),"%"),X("r",e._circleRadius())}}var Hge=new T("mat-progress-spinner-default-options",{providedIn:"root",factory:zge});function zge(){return{diameter:tU}}var tU=100,Uge=10,ki=(()=>{class t{_elementRef=u(q);_noopAnimations;get color(){return this._color||this._defaultColor}set color(e){this._color=e}_color;_defaultColor="primary";_determinateCircle;constructor(){let e=u(Hge),i=pk(),r=this._elementRef.nativeElement;this._noopAnimations=i==="di-disabled"&&!!e&&!e._forceAnimations,this.mode=r.nodeName.toLowerCase()==="mat-spinner"?"indeterminate":"determinate",!this._noopAnimations&&i==="reduced-motion"&&r.classList.add("mat-progress-spinner-reduced-motion"),e&&(e.color&&(this.color=this._defaultColor=e.color),e.diameter&&(this.diameter=e.diameter),e.strokeWidth&&(this.strokeWidth=e.strokeWidth))}mode;get value(){return this.mode==="determinate"?this._value:0}set value(e){this._value=Math.max(0,Math.min(100,e||0))}_value=0;get diameter(){return this._diameter}set diameter(e){this._diameter=e||0}_diameter=tU;get strokeWidth(){return this._strokeWidth??this.diameter/10}set strokeWidth(e){this._strokeWidth=e||0}_strokeWidth;_circleRadius(){return(this.diameter-Uge)/2}_viewBox(){let e=this._circleRadius()*2+this.strokeWidth;return`0 0 ${e} ${e}`}_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(i){return new(i||t)};static \u0275cmp=E({type:t,selectors:[["mat-progress-spinner"],["mat-spinner"]],viewQuery:function(i,r){if(i&1&&ie(Bge,5),i&2){let o;B(o=j())&&(r._determinateCircle=o.first)}},hostAttrs:["role","progressbar","tabindex","-1",1,"mat-mdc-progress-spinner","mdc-circular-progress"],hostVars:18,hostBindings:function(i,r){i&2&&(X("aria-valuemin",0)("aria-valuemax",100)("aria-valuenow",r.mode==="determinate"?r.value:null)("mode",r.mode),it("mat-"+r.color),Dt("width",r.diameter,"px")("height",r.diameter,"px")("--mat-progress-spinner-size",r.diameter+"px")("--mat-progress-spinner-active-indicator-width",r.diameter+"px"),G("_mat-animation-noopable",r._noopAnimations)("mdc-circular-progress--indeterminate",r.mode==="indeterminate"))},inputs:{color:"color",mode:"mode",value:[2,"value","value",ct],diameter:[2,"diameter","diameter",ct],strokeWidth:[2,"strokeWidth","strokeWidth",ct]},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(i,r){if(i&1&&(R(0,jge,2,8,"ng-template",null,0,_i),h(2,"div",2,1),Gt(),h(4,"svg",3),k(5,"circle",4),p()(),jo(),h(6,"div",5)(7,"div",6)(8,"div",7),Ge(9,8),p(),h(10,"div",9),Ge(11,8),p(),h(12,"div",10),Ge(13,8),p()()()),i&2){let o=Se(1);g(4),X("viewBox",r._viewBox()),g(),Dt("stroke-dasharray",r._strokeCircumference(),"px")("stroke-dashoffset",r._strokeDashOffset(),"px")("stroke-width",r._circleStrokeWidth(),"%"),X("r",r._circleRadius()),g(4),y("ngTemplateOutlet",o),g(2),y("ngTemplateOutlet",o),g(2),y("ngTemplateOutlet",o)}},dependencies:[Fn],styles:[`.mat-mdc-progress-spinner{--mat-progress-spinner-animation-multiplier: 1;display:block;overflow:hidden;line-height:0;position:relative;direction:ltr;transition:opacity 250ms cubic-bezier(0.4, 0, 0.6, 1)}.mat-mdc-progress-spinner circle{stroke-width:var(--mat-progress-spinner-active-indicator-width, 4px)}.mat-mdc-progress-spinner._mat-animation-noopable,.mat-mdc-progress-spinner._mat-animation-noopable .mdc-circular-progress__determinate-circle{transition:none !important}.mat-mdc-progress-spinner._mat-animation-noopable .mdc-circular-progress__indeterminate-circle-graphic,.mat-mdc-progress-spinner._mat-animation-noopable .mdc-circular-progress__spinner-layer,.mat-mdc-progress-spinner._mat-animation-noopable .mdc-circular-progress__indeterminate-container{animation:none !important}.mat-mdc-progress-spinner._mat-animation-noopable .mdc-circular-progress__indeterminate-container circle{stroke-dasharray:0 !important}@media(forced-colors: active){.mat-mdc-progress-spinner .mdc-circular-progress__indeterminate-circle-graphic,.mat-mdc-progress-spinner .mdc-circular-progress__determinate-circle{stroke:currentColor;stroke:CanvasText}}.mat-progress-spinner-reduced-motion{--mat-progress-spinner-animation-multiplier: 1.25}.mdc-circular-progress__determinate-container,.mdc-circular-progress__indeterminate-circle-graphic,.mdc-circular-progress__indeterminate-container,.mdc-circular-progress__spinner-layer{position:absolute;width:100%;height:100%}.mdc-circular-progress__determinate-container{transform:rotate(-90deg)}.mdc-circular-progress--indeterminate .mdc-circular-progress__determinate-container{opacity:0}.mdc-circular-progress__indeterminate-container{font-size:0;letter-spacing:0;white-space:nowrap;opacity:0}.mdc-circular-progress--indeterminate .mdc-circular-progress__indeterminate-container{opacity:1;animation:mdc-circular-progress-container-rotate calc(1568.2352941176ms*var(--mat-progress-spinner-animation-multiplier)) linear infinite}.mdc-circular-progress__determinate-circle-graphic,.mdc-circular-progress__indeterminate-circle-graphic{fill:rgba(0,0,0,0)}.mat-mdc-progress-spinner .mdc-circular-progress__determinate-circle,.mat-mdc-progress-spinner .mdc-circular-progress__indeterminate-circle-graphic{stroke:var(--mat-progress-spinner-active-indicator-color, var(--mat-sys-primary))}@media(forced-colors: active){.mat-mdc-progress-spinner .mdc-circular-progress__determinate-circle,.mat-mdc-progress-spinner .mdc-circular-progress__indeterminate-circle-graphic{stroke:CanvasText}}.mdc-circular-progress__determinate-circle{transition:stroke-dashoffset 500ms cubic-bezier(0, 0, 0.2, 1)}.mdc-circular-progress__gap-patch{position:absolute;top:0;left:47.5%;box-sizing:border-box;width:5%;height:100%;overflow:hidden}.mdc-circular-progress__gap-patch .mdc-circular-progress__indeterminate-circle-graphic{left:-900%;width:2000%;transform:rotate(180deg)}.mdc-circular-progress__circle-clipper .mdc-circular-progress__indeterminate-circle-graphic{width:200%}.mdc-circular-progress__circle-right .mdc-circular-progress__indeterminate-circle-graphic{left:-100%}.mdc-circular-progress--indeterminate .mdc-circular-progress__circle-left .mdc-circular-progress__indeterminate-circle-graphic{animation:mdc-circular-progress-left-spin calc(1333ms*var(--mat-progress-spinner-animation-multiplier)) cubic-bezier(0.4, 0, 0.2, 1) infinite both}.mdc-circular-progress--indeterminate .mdc-circular-progress__circle-right .mdc-circular-progress__indeterminate-circle-graphic{animation:mdc-circular-progress-right-spin calc(1333ms*var(--mat-progress-spinner-animation-multiplier)) cubic-bezier(0.4, 0, 0.2, 1) infinite both}.mdc-circular-progress__circle-clipper{display:inline-flex;position:relative;width:50%;height:100%;overflow:hidden}.mdc-circular-progress--indeterminate .mdc-circular-progress__spinner-layer{animation:mdc-circular-progress-spinner-layer-rotate calc(5332ms*var(--mat-progress-spinner-animation-multiplier)) cubic-bezier(0.4, 0, 0.2, 1) infinite both}@keyframes mdc-circular-progress-container-rotate{to{transform:rotate(360deg)}}@keyframes mdc-circular-progress-spinner-layer-rotate{12.5%{transform:rotate(135deg)}25%{transform:rotate(270deg)}37.5%{transform:rotate(405deg)}50%{transform:rotate(540deg)}62.5%{transform:rotate(675deg)}75%{transform:rotate(810deg)}87.5%{transform:rotate(945deg)}100%{transform:rotate(1080deg)}}@keyframes mdc-circular-progress-left-spin{from{transform:rotate(265deg)}50%{transform:rotate(130deg)}to{transform:rotate(265deg)}}@keyframes mdc-circular-progress-right-spin{from{transform:rotate(-265deg)}50%{transform:rotate(-130deg)}to{transform:rotate(-265deg)}} +`],encapsulation:2,changeDetection:0})}return t})();var Si=(()=>{class t{static \u0275fac=function(i){return new(i||t)};static \u0275mod=ee({type:t});static \u0275inj=J({imports:[we]})}return t})();function $ge(t,n){if(t&1){let e=Y();h(0,"div",1)(1,"button",2),S("click",function(){I(e);let r=C();return A(r.action())}),_(2),p()()}if(t&2){let e=C();g(2),ve(" ",e.data.action," ")}}var Wge=["label"];function Gge(t,n){}var qge=Math.pow(2,31)-1,b_=class{_overlayRef;instance;containerInstance;_afterDismissed=new z;_afterOpened=new z;_onAction=new z;_durationTimeoutId;_dismissedByAction=!1;constructor(n,e){this._overlayRef=e,this.containerInstance=n,n._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(n){this._durationTimeoutId=setTimeout(()=>this.dismiss(),Math.min(n,qge))}_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}},iU=new T("MatSnackBarData"),op=class{politeness="polite";announcementMessage="";viewContainerRef;duration=0;panelClass;direction;data=null;horizontalPosition="center";verticalPosition="bottom"},Yge=(()=>{class t{static \u0275fac=function(i){return new(i||t)};static \u0275dir=F({type:t,selectors:[["","matSnackBarLabel",""]],hostAttrs:[1,"mat-mdc-snack-bar-label","mdc-snackbar__label"]})}return t})(),Qge=(()=>{class t{static \u0275fac=function(i){return new(i||t)};static \u0275dir=F({type:t,selectors:[["","matSnackBarActions",""]],hostAttrs:[1,"mat-mdc-snack-bar-actions","mdc-snackbar__actions"]})}return t})(),Kge=(()=>{class t{static \u0275fac=function(i){return new(i||t)};static \u0275dir=F({type:t,selectors:[["","matSnackBarAction",""]],hostAttrs:[1,"mat-mdc-snack-bar-action","mdc-snackbar__action"]})}return t})(),nU=(()=>{class t{snackBarRef=u(b_);data=u(iU);constructor(){}action(){this.snackBarRef.dismissWithAction()}get hasAction(){return!!this.data.action}static \u0275fac=function(i){return new(i||t)};static \u0275cmp=E({type:t,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(i,r){i&1&&(h(0,"div",0),_(1),p(),N(2,$ge,3,1,"div",1)),i&2&&(g(),ve(" ",r.data.message,` +`),g(),L(r.hasAction?2:-1))},dependencies:[kt,Yge,Qge,Kge],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 t})(),LI="_mat-snack-bar-enter",VI="_mat-snack-bar-exit",Zge=(()=>{class t extends dc{_ngZone=u(ae);_elementRef=u(q);_changeDetectorRef=u(ye);_platform=u(qe);_animationsDisabled=Ye();snackBarConfig=u(op);_document=u(ge);_trackedModals=new Set;_enterFallback;_exitFallback;_injector=u(de);_announceDelay=150;_announceTimeoutId;_destroyed=!1;_portalOutlet;_onAnnounce=new z;_onExit=new z;_onEnter=new z;_animationState="void";_live;_label;_role;_liveElementId=u(Ze).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 i=this._portalOutlet.attachComponentPortal(e);return this._afterPortalAttached(),i}attachTemplatePortal(e){this._assertNotAttached();let i=this._portalOutlet.attachTemplatePortal(e);return this._afterPortalAttached(),i}attachDomPortal=e=>{this._assertNotAttached();let i=this._portalOutlet.attachDomPortal(e);return this._afterPortalAttached(),i};onAnimationEnd(e){e===VI?this._completeExit():e===LI&&(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?pt(()=>{this._ngZone.run(()=>queueMicrotask(()=>this.onAnimationEnd(LI)))},{injector:this._injector}):(clearTimeout(this._enterFallback),this._enterFallback=setTimeout(()=>{this._elementRef.nativeElement.classList.add("mat-snack-bar-fallback-visible"),this.onAnimationEnd(LI)},200)))}exit(){return this._destroyed?Q(void 0):(this._ngZone.run(()=>{this._animationState="hidden",this._changeDetectorRef.markForCheck(),this._elementRef.nativeElement.setAttribute("mat-exit",""),clearTimeout(this._announceTimeoutId),this._animationsDisabled?pt(()=>{this._ngZone.run(()=>queueMicrotask(()=>this.onAnimationEnd(VI)))},{injector:this._injector}):(clearTimeout(this._exitFallback),this._exitFallback=setTimeout(()=>this.onAnimationEnd(VI),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,i=this.snackBarConfig.panelClass;i&&(Array.isArray(i)?i.forEach(a=>e.classList.add(a)):e.classList.add(i)),this._exposeToModals();let r=this._label.nativeElement,o="mdc-snackbar__label";r.classList.toggle(o,!r.querySelector(`.${o}`))}_exposeToModals(){let e=this._liveElementId,i=this._document.querySelectorAll('body > .cdk-overlay-container [aria-modal="true"]');for(let r=0;r{let i=e.getAttribute("aria-owns");if(i){let r=i.replace(this._liveElementId,"").trim();r.length>0?e.setAttribute("aria-owns",r):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,i=e.querySelector("[aria-hidden]"),r=e.querySelector("[aria-live]");if(i&&r){let o=null;this._platform.isBrowser&&document.activeElement instanceof HTMLElement&&i.contains(document.activeElement)&&(o=document.activeElement),i.removeAttribute("aria-hidden"),r.appendChild(i),o?.focus(),this._onAnnounce.next(),this._onAnnounce.complete()}},this._announceDelay)})}static \u0275fac=function(i){return new(i||t)};static \u0275cmp=E({type:t,selectors:[["mat-snack-bar-container"]],viewQuery:function(i,r){if(i&1&&(ie(yr,7),ie(Wge,7)),i&2){let o;B(o=j())&&(r._portalOutlet=o.first),B(o=j())&&(r._label=o.first)}},hostAttrs:[1,"mdc-snackbar","mat-mdc-snack-bar-container"],hostVars:6,hostBindings:function(i,r){i&1&&S("animationend",function(a){return r.onAnimationEnd(a.animationName)})("animationcancel",function(a){return r.onAnimationEnd(a.animationName)}),i&2&&G("mat-snack-bar-container-enter",r._animationState==="visible")("mat-snack-bar-container-exit",r._animationState==="hidden")("mat-snack-bar-container-animations-enabled",!r._animationsDisabled)},features:[le],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(i,r){i&1&&(h(0,"div",1)(1,"div",2,0)(3,"div",3),R(4,Gge,0,0,"ng-template",4),p(),k(5,"div"),p()()),i&2&&(g(5),X("aria-live",r._live)("role",r._role)("id",r._liveElementId))},dependencies:[yr],styles:[`@keyframes _mat-snack-bar-enter{from{transform:scale(0.8);opacity:0}to{transform:scale(1);opacity:1}}@keyframes _mat-snack-bar-exit{from{opacity:1}to{opacity:0}}.mat-mdc-snack-bar-container{display:flex;align-items:center;justify-content:center;box-sizing:border-box;-webkit-tap-highlight-color:rgba(0,0,0,0);margin:8px}.mat-mdc-snack-bar-handset .mat-mdc-snack-bar-container{width:100vw}.mat-snack-bar-container-animations-enabled{opacity:0}.mat-snack-bar-container-animations-enabled.mat-snack-bar-fallback-visible{opacity:1}.mat-snack-bar-container-animations-enabled.mat-snack-bar-container-enter{animation:_mat-snack-bar-enter 150ms cubic-bezier(0, 0, 0.2, 1) forwards}.mat-snack-bar-container-animations-enabled.mat-snack-bar-container-exit{animation:_mat-snack-bar-exit 75ms cubic-bezier(0.4, 0, 1, 1) forwards}.mat-mdc-snackbar-surface{box-shadow:0px 3px 5px -1px rgba(0, 0, 0, 0.2), 0px 6px 10px 0px rgba(0, 0, 0, 0.14), 0px 1px 18px 0px rgba(0, 0, 0, 0.12);display:flex;align-items:center;justify-content:flex-start;box-sizing:border-box;padding-left:0;padding-right:8px}[dir=rtl] .mat-mdc-snackbar-surface{padding-right:0;padding-left:8px}.mat-mdc-snack-bar-container .mat-mdc-snackbar-surface{min-width:344px;max-width:672px}.mat-mdc-snack-bar-handset .mat-mdc-snackbar-surface{width:100%;min-width:0}@media(forced-colors: active){.mat-mdc-snackbar-surface{outline:solid 1px}}.mat-mdc-snack-bar-container .mat-mdc-snackbar-surface{color:var(--mat-snack-bar-supporting-text-color, var(--mat-sys-inverse-on-surface));border-radius:var(--mat-snack-bar-container-shape, var(--mat-sys-corner-extra-small));background-color:var(--mat-snack-bar-container-color, var(--mat-sys-inverse-surface))}.mdc-snackbar__label{width:100%;flex-grow:1;box-sizing:border-box;margin:0;padding:14px 8px 14px 16px}[dir=rtl] .mdc-snackbar__label{padding-left:8px;padding-right:16px}.mat-mdc-snack-bar-container .mdc-snackbar__label{font-family:var(--mat-snack-bar-supporting-text-font, var(--mat-sys-body-medium-font));font-size:var(--mat-snack-bar-supporting-text-size, var(--mat-sys-body-medium-size));font-weight:var(--mat-snack-bar-supporting-text-weight, var(--mat-sys-body-medium-weight));line-height:var(--mat-snack-bar-supporting-text-line-height, var(--mat-sys-body-medium-line-height))}.mat-mdc-snack-bar-actions{display:flex;flex-shrink:0;align-items:center;box-sizing:border-box}.mat-mdc-snack-bar-handset,.mat-mdc-snack-bar-container,.mat-mdc-snack-bar-label{flex:1 1 auto}.mat-mdc-snack-bar-container .mat-mdc-button.mat-mdc-snack-bar-action:not(:disabled){--mat-button-text-state-layer-color: currentColor;--mat-button-text-ripple-color: currentColor}.mat-mdc-snack-bar-container .mat-mdc-button.mat-mdc-snack-bar-action:not(:disabled).mat-unthemed{color:var(--mat-snack-bar-button-color, var(--mat-sys-inverse-primary))}.mat-mdc-snack-bar-container .mat-mdc-button.mat-mdc-snack-bar-action:not(:disabled) .mat-ripple-element{opacity:.1} +`],encapsulation:2})}return t})();function Xge(){return new op}var Jge=new T("mat-snack-bar-default-options",{providedIn:"root",factory:Xge}),di=(()=>{class t{_live=u(Gf);_injector=u(de);_breakpointObserver=u(sl);_parentSnackBar=u(t,{optional:!0,skipSelf:!0});_defaultConfig=u(Jge);_animationsDisabled=Ye();_snackBarRefAtThisLevel=null;simpleSnackBarComponent=nU;snackBarContainerComponent=Zge;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,i){return this._attach(e,i)}openFromTemplate(e,i){return this._attach(e,i)}open(e,i="",r){let o=M(M({},this._defaultConfig),r);return o.data={message:e,action:i},o.announcementMessage===e&&(o.announcementMessage=void 0),this.openFromComponent(this.simpleSnackBarComponent,o)}dismiss(){this._openedSnackBarRef&&this._openedSnackBarRef.dismiss()}ngOnDestroy(){this._snackBarRefAtThisLevel&&this._snackBarRefAtThisLevel.dismiss()}_attachSnackBarContainer(e,i){let r=i&&i.viewContainerRef&&i.viewContainerRef.injector,o=de.create({parent:r||this._injector,providers:[{provide:op,useValue:i}]}),a=new Zr(this.snackBarContainerComponent,i.viewContainerRef,o),s=e.attach(a);return s.instance.snackBarConfig=i,s.instance}_attach(e,i){let r=M(M(M({},new op),this._defaultConfig),i),o=this._createOverlay(r),a=this._attachSnackBarContainer(o,r),s=new b_(a,o);if(e instanceof te){let l=new Cn(e,null,{$implicit:r.data,snackBarRef:s});s.instance=a.attachTemplatePortal(l)}else{let l=this._createInjector(r,s),c=new Zr(e,void 0,l),d=a.attachComponentPortal(c);s.instance=d.instance}return this._breakpointObserver.observe(F0.HandsetPortrait).pipe(Te(o.detachments())).subscribe(l=>{o.overlayElement.classList.toggle(this.handsetCssClass,l.matches)}),r.announcementMessage&&a._onAnnounce.subscribe(()=>{this._live.announce(r.announcementMessage,r.politeness)}),this._animateSnackBar(s,r),this._openedSnackBarRef=s,this._openedSnackBarRef}_animateSnackBar(e,i){e.afterDismissed().subscribe(()=>{this._openedSnackBarRef==e&&(this._openedSnackBarRef=null),i.announcementMessage&&this._live.clear()}),i.duration&&i.duration>0&&e.afterOpened().subscribe(()=>e._dismissAfter(i.duration)),this._openedSnackBarRef?(this._openedSnackBarRef.afterDismissed().subscribe(()=>{e.containerInstance.enter()}),this._openedSnackBarRef.dismiss()):e.containerInstance.enter()}_createOverlay(e){let i=new Fr;i.direction=e.direction;let r=Ds(this._injector),o=e.direction==="rtl",a=e.horizontalPosition==="left"||e.horizontalPosition==="start"&&!o||e.horizontalPosition==="end"&&o,s=!a&&e.horizontalPosition!=="center";return a?r.left("0"):s?r.right("0"):r.centerHorizontally(),e.verticalPosition==="top"?r.top("0"):r.bottom("0"),i.positionStrategy=r,i.disableAnimations=this._animationsDisabled,Nr(this._injector,i)}_createInjector(e,i){let r=e&&e.viewContainerRef&&e.viewContainerRef.injector;return de.create({parent:r||this._injector,providers:[{provide:b_,useValue:i},{provide:iU,useValue:e.data}]})}static \u0275fac=function(i){return new(i||t)};static \u0275prov=O({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();var pi=(()=>{class t{static \u0275fac=function(i){return new(i||t)};static \u0275mod=ee({type:t});static \u0275inj=J({providers:[di],imports:[er,Co,ze,we,nU,we]})}return t})();var Un=(()=>{let n=class n{constructor(){this.authService=u(Tt),this.templateRef=u(te),this.viewContainer=u(nt)}set appHasRole(i){this.updateView(i)}ngOnInit(){this.subscription=this.authService.isAuthenticated$.subscribe(()=>{let i=this.roles;i&&this.updateView(i)})}ngOnDestroy(){this.subscription?.unsubscribe()}updateView(i){this.roles=i,this.viewContainer.clear(),this.checkRole(i)&&this.viewContainer.createEmbeddedView(this.templateRef)}checkRole(i){return this.authService.isAuthenticated()?typeof i=="string"?this.authService.hasRole(i):Array.isArray(i)?this.authService.hasAnyRole(i):!1:!1}};n.\u0275fac=function(r){return new(r||n)},n.\u0275dir=F({type:n,selectors:[["","appHasRole",""]],inputs:{appHasRole:"appHasRole"}});let t=n;return t})();var da=class{constructor(){this.http=u(Yr),this.apiUrl=ko.apiUrl}getAll(n){let e=this.buildHttpParams(n);return this.http.get(`${this.apiUrl}/${this.endpoint}`,{params:e}).pipe(se(i=>i.value))}getAllPaged(n){let e=this.buildHttpParams(n);return this.http.get(`${this.apiUrl}/${this.endpoint}`,{params:e})}getById(n){return this.http.get(`${this.apiUrl}/${this.endpoint}/${n}`).pipe(se(e=>e.value))}create(n){return this.http.post(`${this.apiUrl}/${this.endpoint}`,n).pipe(se(e=>e&&"value"in e&&typeof e.value=="string"?{id:e.value}:e))}update(n,e){return this.http.put(`${this.apiUrl}/${this.endpoint}/${n}`,e)}delete(n){return this.http.delete(`${this.apiUrl}/${this.endpoint}/${n}`)}buildHttpParams(n){let e=new Qn;return n&&Object.keys(n).forEach(i=>{let r=n[i];r!=null&&(e=e.set(i,r.toString()))}),e}};var rU=(()=>{let n=class n extends da{constructor(){super(...arguments),this.endpoint="Dashboard"}getDashboardMetrics(){return this.http.get(`${this.apiUrl}/${this.endpoint}/Metrics`).pipe(se(i=>{if(i.isSuccess&&i.value)return i.value;throw new Error(i.message||"Failed to load dashboard metrics")}))}};n.\u0275fac=(()=>{let i;return function(o){return(i||(i=fe(n)))(o||n)}})(),n.\u0275prov=O({token:n,factory:n.\u0275fac,providedIn:"root"});let t=n;return t})();var Vs=(()=>{let n=class n extends da{constructor(){super(...arguments),this.endpoint="Departments"}createDepartment(i){return this.create(i)}updateDepartment(i){return this.update(i.id,i)}};n.\u0275fac=(()=>{let i;return function(o){return(i||(i=fe(n)))(o||n)}})(),n.\u0275prov=O({token:n,factory:n.\u0275fac,providedIn:"root"});let t=n;return t})();var ap=(()=>{let n=class n extends da{constructor(){super(...arguments),this.endpoint="Employees"}createEmployee(i){return this.create(i)}updateEmployee(i){return this.update(i.id,i)}};n.\u0275fac=(()=>{let i;return function(o){return(i||(i=fe(n)))(o||n)}})(),n.\u0275prov=O({token:n,factory:n.\u0275fac,providedIn:"root"});let t=n;return t})();var Bc=(()=>{let n=class n extends da{constructor(){super(...arguments),this.endpoint="Positions"}createPosition(i){return this.create(i)}updatePosition(i){return this.update(i.id,i)}getAllPaged(i){let r=this.buildHttpParams(i);return this.http.get(`${this.apiUrl}/${this.endpoint}`,{params:r})}addMockPositions(i){return this.http.post(`${this.apiUrl}/${this.endpoint}/AddMock`,i)}};n.\u0275fac=(()=>{let i;return function(o){return(i||(i=fe(n)))(o||n)}})(),n.\u0275prov=O({token:n,factory:n.\u0275fac,providedIn:"root"});let t=n;return t})();var jc=(()=>{let n=class n extends da{constructor(){super(...arguments),this.endpoint="SalaryRanges"}createSalaryRange(i){return this.create(i)}updateSalaryRange(i){return this.update(i.id,i)}};n.\u0275fac=(()=>{let i;return function(o){return(i||(i=fe(n)))(o||n)}})(),n.\u0275prov=O({token:n,factory:n.\u0275fac,providedIn:"root"});let t=n;return t})();var oU=(()=>{let n=class n{decodeToken(i){if(!i)return null;try{let r=i.split(".");if(r.length!==3)return console.warn("Invalid JWT token format"),null;let o=this.decodeBase64Url(r[0]),a=this.decodeBase64Url(r[1]),s=r[2],l=JSON.parse(a),c=l.iat?new Date(l.iat*1e3):void 0,d=l.exp?new Date(l.exp*1e3):void 0,m=new Date,f=d?d24){let s=Math.floor(o/24);return`Expires in ${s} day${s>1?"s":""}`}else return o>0?`Expires in ${o}h ${a}m`:a>0?`Expires in ${a}m`:"Expires soon"}};n.\u0275fac=function(r){return new(r||n)},n.\u0275prov=O({token:n,factory:n.\u0275fac,providedIn:"root"});let t=n;return t})();var e_e=()=>["HRAdmin","Manager"],aU=()=>["HRAdmin"];function t_e(t,n){t&1&&(h(0,"div",3),k(1,"mat-spinner"),p())}function i_e(t,n){if(t&1&&(h(0,"div",21),k(1,"canvas",22),p()),t&2){let e=C(2);g(),y("data",e.departmentChartData)("options",e.departmentChartOptions)}}function n_e(t,n){t&1&&(h(0,"div",23)(1,"mat-icon"),_(2,"pie_chart"),p(),h(3,"p"),_(4,"No department data available"),p()())}function r_e(t,n){if(t&1&&(h(0,"div",21),k(1,"canvas",24),p()),t&2){let e=C(2);g(),y("data",e.positionChartData)("options",e.positionChartOptions)}}function o_e(t,n){t&1&&(h(0,"div",23)(1,"mat-icon"),_(2,"bar_chart"),p(),h(3,"p"),_(4,"No position data available"),p()())}function a_e(t,n){if(t&1&&(h(0,"div",21),k(1,"canvas",25),p()),t&2){let e=C(2);g(),y("data",e.genderChartData)("options",e.genderChartOptions)}}function s_e(t,n){t&1&&(h(0,"div",23)(1,"mat-icon"),_(2,"donut_large"),p(),h(3,"p"),_(4,"No gender data available"),p()())}function l_e(t,n){if(t&1&&(h(0,"div",21),k(1,"canvas",24),p()),t&2){let e=C(2);g(),y("data",e.salaryChartData)("options",e.salaryChartOptions)}}function c_e(t,n){t&1&&(h(0,"div",23)(1,"mat-icon"),_(2,"bar_chart"),p(),h(3,"p"),_(4,"No salary range data available"),p()())}function d_e(t,n){if(t&1){let e=Y();h(0,"mat-list-item",27),S("click",function(){let r=I(e).$implicit,o=C(3);return A(o.navigateToEmployee(r.id))}),h(1,"mat-icon",28),_(2,"person"),p(),h(3,"div",29),_(4),p(),h(5,"div",30),_(6),p(),h(7,"div",31),_(8),me(9,"date"),p()()}if(t&2){let e=n.$implicit;g(4),H(e.fullName),g(2),Od("",e.positionTitle," \u2022 ",e.departmentName),g(2),H(Ni(9,4,e.createdAt,"MMM d, y"))}}function u_e(t,n){if(t&1&&(h(0,"mat-list"),R(1,d_e,10,7,"mat-list-item",26),p()),t&2){let e=C(2);g(),y("ngForOf",e.metrics.recentEmployees)}}function m_e(t,n){t&1&&(h(0,"div",23)(1,"mat-icon"),_(2,"people_outline"),p(),h(3,"p"),_(4,"No recent employees"),p()())}function h_e(t,n){if(t&1){let e=Y();h(0,"button",36),S("click",function(){I(e);let r=C(3);return A(r.navigateToAddDepartment())}),h(1,"mat-icon"),_(2,"add_business"),p(),_(3," Add Department "),p()}}function p_e(t,n){if(t&1){let e=Y();h(0,"button",36),S("click",function(){I(e);let r=C(3);return A(r.navigateToAddPosition())}),h(1,"mat-icon"),_(2,"work_outline"),p(),_(3," Add Position "),p()}}function f_e(t,n){if(t&1){let e=Y();h(0,"div",32)(1,"mat-card")(2,"mat-card-header")(3,"mat-card-title"),_(4,"Quick Actions"),p()(),h(5,"mat-card-content")(6,"div",33)(7,"button",34),S("click",function(){I(e);let r=C(2);return A(r.navigateToAddEmployee())}),h(8,"mat-icon"),_(9,"person_add"),p(),_(10," Add Employee "),p(),R(11,h_e,4,0,"button",35)(12,p_e,4,0,"button",35),p()()()()}t&2&&(g(11),y("appHasRole",at(2,aU)),g(),y("appHasRole",at(3,aU)))}function g_e(t,n){if(t&1){let e=Y();h(0,"div",4)(1,"div",5)(2,"mat-card",6)(3,"mat-card-content")(4,"div",7)(5,"mat-icon"),_(6,"people"),p()(),h(7,"div",8),_(8),p(),h(9,"div",9),_(10,"Total Employees"),p()()(),h(11,"mat-card",6)(12,"mat-card-content")(13,"div",7)(14,"mat-icon"),_(15,"business"),p()(),h(16,"div",8),_(17),p(),h(18,"div",9),_(19,"Departments"),p()()(),h(20,"mat-card",6)(21,"mat-card-content")(22,"div",7)(23,"mat-icon"),_(24,"work"),p()(),h(25,"div",8),_(26),p(),h(27,"div",9),_(28,"Positions"),p()()(),h(29,"mat-card",6)(30,"mat-card-content")(31,"div",7)(32,"mat-icon"),_(33,"attach_money"),p()(),h(34,"div",8),_(35),p(),h(36,"div",9),_(37,"Salary Ranges"),p()()()(),h(38,"div",10)(39,"mat-card",11)(40,"mat-card-content")(41,"div",12)(42,"mat-icon"),_(43,"person_add"),p()(),h(44,"div",8),_(45),p(),h(46,"div",9),_(47,"New Hires This Month"),p()()(),h(48,"mat-card",11)(49,"mat-card-content")(50,"div",12)(51,"mat-icon"),_(52,"payments"),p()(),h(53,"div",8),_(54),me(55,"currency"),p(),h(56,"div",9),_(57,"Average Salary"),p()()()(),h(58,"div",13)(59,"mat-card",14)(60,"mat-card-header")(61,"mat-card-title"),_(62,"Employees by Department"),p()(),h(63,"mat-card-content"),R(64,i_e,2,2,"div",15)(65,n_e,5,0,"div",16),p()(),h(66,"mat-card",14)(67,"mat-card-header")(68,"mat-card-title"),_(69,"Top 10 Positions"),p()(),h(70,"mat-card-content"),R(71,r_e,2,2,"div",15)(72,o_e,5,0,"div",16),p()()(),h(73,"div",13)(74,"mat-card",14)(75,"mat-card-header")(76,"mat-card-title"),_(77,"Gender Distribution"),p()(),h(78,"mat-card-content"),R(79,a_e,2,2,"div",15)(80,s_e,5,0,"div",16),p()(),h(81,"mat-card",14)(82,"mat-card-header")(83,"mat-card-title"),_(84,"Salary Range Distribution"),p()(),h(85,"mat-card-content"),R(86,l_e,2,2,"div",15)(87,c_e,5,0,"div",16),p()()(),h(88,"div",17)(89,"mat-card")(90,"mat-card-header")(91,"mat-card-title"),_(92,"Recent Employees"),p(),h(93,"button",18),S("click",function(){I(e);let r=C();return A(r.navigateToEmployees())}),_(94," View All "),h(95,"mat-icon"),_(96,"arrow_forward"),p()()(),h(97,"mat-card-content"),R(98,u_e,2,1,"mat-list",19)(99,m_e,5,0,"div",16),p()()(),R(100,f_e,13,4,"div",20),p()}if(t&2){let e=C();g(8),H(e.metrics.totalEmployees),g(9),H(e.metrics.totalDepartments),g(9),H(e.metrics.totalPositions),g(9),H(e.metrics.totalSalaryRanges),g(10),H(e.metrics.newHiresThisMonth),g(9),H(Dm(55,17,e.metrics.averageSalary,"USD","symbol","1.0-0")),g(10),y("ngIf",e.departmentChartData),g(),y("ngIf",!e.departmentChartData),g(6),y("ngIf",e.positionChartData),g(),y("ngIf",!e.positionChartData),g(7),y("ngIf",e.genderChartData),g(),y("ngIf",!e.genderChartData),g(6),y("ngIf",e.salaryChartData),g(),y("ngIf",!e.salaryChartData),g(11),y("ngIf",e.metrics.recentEmployees&&e.metrics.recentEmployees.length>0),g(),y("ngIf",!e.metrics.recentEmployees||e.metrics.recentEmployees.length===0),g(),y("appHasRole",at(22,e_e))}}function __e(t,n){if(t&1){let e=Y();h(0,"div",37)(1,"mat-card")(2,"mat-card-content")(3,"div",23)(4,"mat-icon"),_(5,"error_outline"),p(),h(6,"p"),_(7,"Unable to load dashboard data"),p(),h(8,"button",34),S("click",function(){I(e);let r=C();return A(r.loadDashboardMetrics())}),h(9,"mat-icon"),_(10,"refresh"),p(),_(11," Retry "),p()()()()()}}var sU=(()=>{let n=class n{constructor(){this.dashboardService=u(rU),this.router=u(Re),this.snackBar=u(di),this.loading=!0,this.metrics=null,this.departmentChartData=null,this.departmentChartOptions={responsive:!0,maintainAspectRatio:!1,plugins:{legend:{position:"bottom"},tooltip:{callbacks:{label:i=>{let r=i.label||"",o=i.parsed||0;return`${r}: ${o} employees`}}}}},this.positionChartData=null,this.positionChartOptions={responsive:!0,maintainAspectRatio:!1,indexAxis:"y",plugins:{legend:{display:!1},tooltip:{callbacks:{label:i=>`${i.parsed.x} employees`}}},scales:{x:{beginAtZero:!0,ticks:{precision:0}}}},this.genderChartData=null,this.genderChartOptions={responsive:!0,maintainAspectRatio:!1,plugins:{legend:{position:"bottom"},tooltip:{callbacks:{label:i=>{let r=i.label||"",o=i.parsed||0;return`${r}: ${o} employees`}}}}},this.salaryChartData=null,this.salaryChartOptions={responsive:!0,maintainAspectRatio:!1,plugins:{legend:{display:!1},tooltip:{callbacks:{label:i=>`${i.parsed.y} employees`}}},scales:{y:{beginAtZero:!0,ticks:{precision:0}}}}}ngOnInit(){this.loadDashboardMetrics()}loadDashboardMetrics(){this.loading=!0,this.dashboardService.getDashboardMetrics().subscribe({next:i=>{this.metrics=i,this.prepareCharts(i),this.loading=!1},error:i=>{console.error("Error loading dashboard metrics:",i),this.showMessage("Error loading dashboard data"),this.loading=!1}})}prepareCharts(i){this.prepareDepartmentChart(i.employeesByDepartment),this.preparePositionChart(i.employeesByPosition),this.prepareGenderChart(i.genderDistribution),this.prepareSalaryChart(i.employeesBySalaryRange)}prepareDepartmentChart(i){if(!i||i.length===0){this.departmentChartData=null;return}this.departmentChartData={labels:i.map(r=>r.departmentName),datasets:[{data:i.map(r=>r.employeeCount),backgroundColor:["#FF6384","#36A2EB","#FFCE56","#4BC0C0","#9966FF","#FF9F40","#FF6384","#C9CBCF"]}]}}preparePositionChart(i){if(!i||i.length===0){this.positionChartData=null;return}this.positionChartData={labels:i.map(r=>r.positionTitle),datasets:[{label:"Employees",data:i.map(r=>r.employeeCount),backgroundColor:"#36A2EB"}]}}prepareGenderChart(i){if(!i){this.genderChartData=null;return}this.genderChartData={labels:["Male","Female"],datasets:[{data:[i.male,i.female],backgroundColor:["#36A2EB","#FF6384"]}]}}prepareSalaryChart(i){if(!i||i.length===0){this.salaryChartData=null;return}this.salaryChartData={labels:i.map(r=>r.rangeName),datasets:[{label:"Employees",data:i.map(r=>r.employeeCount),backgroundColor:"#4BC0C0"}]}}navigateToAddEmployee(){this.router.navigate(["/employees/create"])}navigateToAddDepartment(){this.router.navigate(["/departments/create"])}navigateToAddPosition(){this.router.navigate(["/positions/create"])}navigateToEmployees(){this.router.navigate(["/employees"])}navigateToEmployee(i){this.router.navigate(["/employees",i])}showMessage(i){this.snackBar.open(i,"Close",{duration:3e3,horizontalPosition:"end",verticalPosition:"top"})}};n.\u0275fac=function(r){return new(r||n)},n.\u0275cmp=E({type:n,selectors:[["app-dashboard"]],decls:4,vars:3,consts:[["class","loading-spinner",4,"ngIf"],["class","dashboard-container",4,"ngIf"],["class","error-state",4,"ngIf"],[1,"loading-spinner"],[1,"dashboard-container"],[1,"metrics-row"],[1,"metric-card"],[1,"metric-icon"],[1,"metric-value"],[1,"metric-label"],[1,"secondary-metrics-row"],[1,"metric-card","secondary"],[1,"metric-icon","secondary"],[1,"charts-row"],[1,"chart-card"],["class","chart-container",4,"ngIf"],["class","no-data",4,"ngIf"],[1,"activity-row"],["mat-button","","color","primary",3,"click"],[4,"ngIf"],["class","actions-row",4,"appHasRole"],[1,"chart-container"],["baseChart","","type","pie",3,"data","options"],[1,"no-data"],["baseChart","","type","bar",3,"data","options"],["baseChart","","type","doughnut",3,"data","options"],["class","clickable-item",3,"click",4,"ngFor","ngForOf"],[1,"clickable-item",3,"click"],["matListItemIcon",""],["matListItemTitle",""],["matListItemLine",""],["matListItemMeta",""],[1,"actions-row"],[1,"action-buttons"],["mat-raised-button","","color","primary",3,"click"],["mat-raised-button","","color","accent",3,"click",4,"appHasRole"],["mat-raised-button","","color","accent",3,"click"],[1,"error-state"]],template:function(r,o){r&1&&(k(0,"page-header"),R(1,t_e,2,0,"div",0)(2,g_e,101,23,"div",1)(3,__e,12,0,"div",2)),r&2&&(g(),y("ngIf",o.loading),g(),y("ngIf",!o.loading&&o.metrics),g(),y("ngIf",!o.loading&&!o.metrics))},dependencies:[gt,qr,li,$t,zt,Ut,Jt,Xt,ot,mt,ze,kt,Si,ki,ca,Fs,la,f_,Tu,Dl,SI,pi,W5,ni,Un,il,Sa],styles:[".loading-spinner[_ngcontent-%COMP%]{display:flex;justify-content:center;align-items:center;min-height:400px}.dashboard-container[_ngcontent-%COMP%]{padding:16px;max-width:1400px;margin:0 auto}.metrics-row[_ngcontent-%COMP%], .secondary-metrics-row[_ngcontent-%COMP%]{display:grid;grid-template-columns:repeat(auto-fit,minmax(200px,1fr));gap:16px;margin-bottom:24px}@media (max-width: 768px){.metrics-row[_ngcontent-%COMP%], .secondary-metrics-row[_ngcontent-%COMP%]{grid-template-columns:repeat(2,1fr)}}@media (max-width: 480px){.metrics-row[_ngcontent-%COMP%], .secondary-metrics-row[_ngcontent-%COMP%]{grid-template-columns:1fr}}.secondary-metrics-row[_ngcontent-%COMP%]{grid-template-columns:repeat(auto-fit,minmax(250px,1fr))}.metric-card[_ngcontent-%COMP%] mat-card-content[_ngcontent-%COMP%]{padding:24px!important;text-align:center}.metric-card[_ngcontent-%COMP%] .metric-icon[_ngcontent-%COMP%]{display:inline-flex;align-items:center;justify-content:center;width:64px;height:64px;border-radius:50%;background-color:#3f51b51a;margin-bottom:16px}.metric-card[_ngcontent-%COMP%] .metric-icon[_ngcontent-%COMP%] mat-icon[_ngcontent-%COMP%]{font-size:32px;width:32px;height:32px;color:#3f51b5}.metric-card[_ngcontent-%COMP%] .metric-icon.secondary[_ngcontent-%COMP%]{background-color:#ff98001a}.metric-card[_ngcontent-%COMP%] .metric-icon.secondary[_ngcontent-%COMP%] mat-icon[_ngcontent-%COMP%]{color:#ff9800}.metric-card[_ngcontent-%COMP%] .metric-value[_ngcontent-%COMP%]{font-size:32px;font-weight:600;color:#000000de;margin-bottom:8px;line-height:1.2}.metric-card[_ngcontent-%COMP%] .metric-label[_ngcontent-%COMP%]{font-size:14px;color:#0009;text-transform:uppercase;letter-spacing:.5px}.metric-card[_ngcontent-%COMP%]:hover{box-shadow:0 4px 8px #00000026;transition:box-shadow .3s ease}.charts-row[_ngcontent-%COMP%]{display:grid;grid-template-columns:repeat(auto-fit,minmax(400px,1fr));gap:24px;margin-bottom:24px}@media (max-width: 900px){.charts-row[_ngcontent-%COMP%]{grid-template-columns:1fr}}.chart-card[_ngcontent-%COMP%] mat-card-header[_ngcontent-%COMP%]{padding:16px 16px 0;margin-bottom:16px}.chart-card[_ngcontent-%COMP%] mat-card-header[_ngcontent-%COMP%] mat-card-title[_ngcontent-%COMP%]{font-size:18px;font-weight:500;margin:0}.chart-card[_ngcontent-%COMP%] mat-card-content[_ngcontent-%COMP%]{padding:0 16px 16px}.chart-card[_ngcontent-%COMP%] .chart-container[_ngcontent-%COMP%]{position:relative;height:300px;width:100%}.chart-card[_ngcontent-%COMP%] .no-data[_ngcontent-%COMP%]{display:flex;flex-direction:column;align-items:center;justify-content:center;min-height:300px;color:#00000061}.chart-card[_ngcontent-%COMP%] .no-data[_ngcontent-%COMP%] mat-icon[_ngcontent-%COMP%]{font-size:48px;width:48px;height:48px;margin-bottom:12px}.chart-card[_ngcontent-%COMP%] .no-data[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{margin:0;font-size:14px}.activity-row[_ngcontent-%COMP%]{margin-bottom:24px}.activity-row[_ngcontent-%COMP%] mat-card-header[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:space-between;padding:16px;border-bottom:1px solid rgba(0,0,0,.12)}.activity-row[_ngcontent-%COMP%] mat-card-header[_ngcontent-%COMP%] mat-card-title[_ngcontent-%COMP%]{font-size:18px;font-weight:500;margin:0}.activity-row[_ngcontent-%COMP%] mat-card-header[_ngcontent-%COMP%] button[_ngcontent-%COMP%] mat-icon[_ngcontent-%COMP%]{margin-left:4px;font-size:18px;width:18px;height:18px}.activity-row[_ngcontent-%COMP%] mat-card-content[_ngcontent-%COMP%]{padding:0}.activity-row[_ngcontent-%COMP%] mat-list[_ngcontent-%COMP%]{padding:0}.activity-row[_ngcontent-%COMP%] mat-list-item[_ngcontent-%COMP%]{height:auto;padding:12px 16px;cursor:pointer;transition:background-color .2s ease}.activity-row[_ngcontent-%COMP%] mat-list-item[_ngcontent-%COMP%]:hover{background-color:#0000000a}.activity-row[_ngcontent-%COMP%] mat-list-item[_ngcontent-%COMP%]:not(:last-child){border-bottom:1px solid rgba(0,0,0,.08)}.activity-row[_ngcontent-%COMP%] mat-list-item[_ngcontent-%COMP%] mat-icon[_ngcontent-%COMP%]{color:#0000008a}.activity-row[_ngcontent-%COMP%] .clickable-item[_ngcontent-%COMP%]{cursor:pointer}.activity-row[_ngcontent-%COMP%] .no-data[_ngcontent-%COMP%]{display:flex;flex-direction:column;align-items:center;justify-content:center;padding:48px 16px;color:#00000061}.activity-row[_ngcontent-%COMP%] .no-data[_ngcontent-%COMP%] mat-icon[_ngcontent-%COMP%]{font-size:48px;width:48px;height:48px;margin-bottom:12px}.activity-row[_ngcontent-%COMP%] .no-data[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{margin:0;font-size:14px}.actions-row[_ngcontent-%COMP%]{margin-bottom:24px}.actions-row[_ngcontent-%COMP%] mat-card-header[_ngcontent-%COMP%]{padding:16px;border-bottom:1px solid rgba(0,0,0,.12)}.actions-row[_ngcontent-%COMP%] mat-card-header[_ngcontent-%COMP%] mat-card-title[_ngcontent-%COMP%]{font-size:18px;font-weight:500;margin:0}.actions-row[_ngcontent-%COMP%] mat-card-content[_ngcontent-%COMP%]{padding:24px 16px}.actions-row[_ngcontent-%COMP%] .action-buttons[_ngcontent-%COMP%]{display:flex;gap:12px;flex-wrap:wrap}.actions-row[_ngcontent-%COMP%] .action-buttons[_ngcontent-%COMP%] button[_ngcontent-%COMP%] mat-icon[_ngcontent-%COMP%]{margin-right:8px}@media (max-width: 600px){.actions-row[_ngcontent-%COMP%] .action-buttons[_ngcontent-%COMP%]{flex-direction:column}.actions-row[_ngcontent-%COMP%] .action-buttons[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{width:100%}}.error-state[_ngcontent-%COMP%]{padding:16px}.error-state[_ngcontent-%COMP%] mat-card[_ngcontent-%COMP%]{max-width:600px;margin:0 auto}.error-state[_ngcontent-%COMP%] .no-data[_ngcontent-%COMP%]{display:flex;flex-direction:column;align-items:center;justify-content:center;padding:48px 16px;color:#0000008a}.error-state[_ngcontent-%COMP%] .no-data[_ngcontent-%COMP%] mat-icon[_ngcontent-%COMP%]{font-size:64px;width:64px;height:64px;margin-bottom:16px;color:#f44336}.error-state[_ngcontent-%COMP%] .no-data[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{margin:0 0 24px;font-size:16px}.error-state[_ngcontent-%COMP%] .no-data[_ngcontent-%COMP%] button[_ngcontent-%COMP%] mat-icon[_ngcontent-%COMP%]{margin-right:8px;font-size:20px;width:20px;height:20px}@media (max-width: 1200px){.dashboard-container[_ngcontent-%COMP%]{padding:12px}.charts-row[_ngcontent-%COMP%]{gap:16px}}@media (max-width: 768px){.metric-card[_ngcontent-%COMP%] mat-card-content[_ngcontent-%COMP%]{padding:16px!important}.metric-card[_ngcontent-%COMP%] .metric-icon[_ngcontent-%COMP%]{width:56px;height:56px}.metric-card[_ngcontent-%COMP%] .metric-icon[_ngcontent-%COMP%] mat-icon[_ngcontent-%COMP%]{font-size:28px;width:28px;height:28px}.metric-card[_ngcontent-%COMP%] .metric-value[_ngcontent-%COMP%]{font-size:28px}.metric-card[_ngcontent-%COMP%] .metric-label[_ngcontent-%COMP%]{font-size:12px}.chart-card[_ngcontent-%COMP%] .chart-container[_ngcontent-%COMP%]{height:250px}}@media (max-width: 480px){.dashboard-container[_ngcontent-%COMP%]{padding:8px}.metrics-row[_ngcontent-%COMP%], .secondary-metrics-row[_ngcontent-%COMP%], .charts-row[_ngcontent-%COMP%]{gap:12px;margin-bottom:16px}.metric-card[_ngcontent-%COMP%] .metric-value[_ngcontent-%COMP%]{font-size:24px}.chart-card[_ngcontent-%COMP%] .chart-container[_ngcontent-%COMP%]{height:200px}}"]});let t=n;return t})();var lU=(()=>{let n=class n{};n.\u0275fac=function(r){return new(r||n)},n.\u0275cmp=E({type:n,selectors:[["app-error-403"]],decls:1,vars:0,consts:[["code","403","title","Permission denied!","message","You do not have permission to access the requested data."]],template:function(r,o){r&1&&k(0,"error-code",0)},dependencies:[tp],encapsulation:2});let t=n;return t})();var cU=(()=>{let n=class n{};n.\u0275fac=function(r){return new(r||n)},n.\u0275cmp=E({type:n,selectors:[["app-error-404"]],decls:1,vars:0,consts:[["code","404","title","Page not found!","message","This is not the web page you are looking for."]],template:function(r,o){r&1&&k(0,"error-code",0)},dependencies:[tp],encapsulation:2});let t=n;return t})();var dU=(()=>{let n=class n{};n.\u0275fac=function(r){return new(r||n)},n.\u0275cmp=E({type:n,selectors:[["app-error-500"]],decls:1,vars:0,consts:[["code","500","title","Server went wrong!","message","Just kidding, looks like we have an internal issue, please try refreshing."]],template:function(r,o){r&1&&k(0,"error-code",0)},dependencies:[tp],encapsulation:2});let t=n;return t})();var b_e=t=>({value:t});function v_e(t,n){t&1&&(h(0,"mat-error")(1,"span"),_(2),me(3,"translate"),p()()),t&2&&(g(2),H(Oe(3,1,"validation.required")))}function y_e(t,n){t&1&&(h(0,"mat-error")(1,"span"),_(2),me(3,"translate"),p()()),t&2&&(g(2),H(Oe(3,1,"validation.required")))}function x_e(t,n){t&1&&(h(0,"mat-error")(1,"span"),_(2),me(3,"translate"),p()()),t&2&&(g(2),H(Oe(3,1,"validation.required")))}function C_e(t,n){t&1&&(h(0,"mat-error",8),me(1,"translate"),h(2,"span"),_(3),p()()),t&2&&(y("translateParams",Pt(4,b_e,Oe(1,2,"login.password"))),g(3),H("validation.inconsistent"))}var uU=(()=>{let n=class n{constructor(){this.fb=u(eo),this.registerForm=this.fb.nonNullable.group({username:["",[Le.required]],password:["",[Le.required]],confirmPassword:["",[Le.required]]},{validators:[this.matchValidator("password","confirmPassword")]})}matchValidator(i,r){return o=>{let a=o.get(i),s=o.get(r);return s.errors&&!s.errors.mismatch?null:a.value!==s.value?(s.setErrors({mismatch:!0}),{mismatch:!0}):(s.setErrors(null),null)}}};n.\u0275fac=function(r){return new(r||n)},n.\u0275cmp=E({type:n,selectors:[["app-register"]],decls:43,vars:32,consts:[[1,"d-flex","w-full","h-full"],[1,"m-auto",2,"max-width","380px"],[1,"m-b-24"],[1,"form-field-full",3,"formGroup"],["appearance","outline"],["matInput","","formControlName","username","required",""],["matInput","","type","password","formControlName","password","required",""],["matInput","","type","password","formControlName","confirmPassword","required",""],["translate","",3,"translateParams"],["matButton","filled",1,"w-full","m-y-16"],["routerLink","/auth/login"]],template:function(r,o){if(r&1&&(h(0,"div",0)(1,"mat-card",1)(2,"mat-card-header",2)(3,"mat-card-title"),_(4),me(5,"translate"),k(6,"br"),_(7),me(8,"translate"),p()(),h(9,"mat-card-content")(10,"form",3)(11,"mat-form-field",4)(12,"mat-label"),_(13),me(14,"translate"),p(),k(15,"input",5),N(16,v_e,4,3,"mat-error"),p(),h(17,"mat-form-field",4)(18,"mat-label"),_(19),me(20,"translate"),p(),k(21,"input",6),N(22,y_e,4,3,"mat-error"),p(),h(23,"mat-form-field",4)(24,"mat-label"),_(25),me(26,"translate"),p(),k(27,"input",7),N(28,x_e,4,3,"mat-error"),N(29,C_e,4,6,"mat-error",8),p(),h(30,"mat-checkbox"),_(31),me(32,"translate"),p(),h(33,"button",9),_(34),me(35,"translate"),p(),h(36,"div")(37,"span"),_(38),me(39,"translate"),p(),h(40,"a",10),_(41),me(42,"translate"),p()()()()()()),r&2){let a,s,l,c;g(4),ve(" ",Oe(5,14,"register_welcome"),", "),g(3),ve(" ",Oe(8,16,"register_title")," "),g(3),y("formGroup",o.registerForm),g(3),H(Oe(14,18,"username")),g(3),L((a=o.registerForm.get("username"))!=null&&a.invalid?16:-1),g(3),H(Oe(20,20,"password")),g(3),L((s=o.registerForm.get("password"))!=null&&s.invalid?22:-1),g(3),H(Oe(26,22,"confirm_password")),g(3),L((l=o.registerForm.get("confirmPassword"))!=null&&l.hasError("required")?28:-1),g(),L((c=o.registerForm.get("confirmPassword"))!=null&&c.hasError("mismatch")?29:-1),g(2),H(Oe(32,24,"read_and_agree")),g(3),H(Oe(35,26,"register")),g(4),ve("",Oe(39,28,"have_an_account"),"?"),g(3),H(Oe(42,30,"login"))}},dependencies:[Nn,du,Jr,Qi,ei,Xr,Do,zn,Ki,Lr,ze,kt,$t,zt,Ut,Jt,Xt,yx,Va,$i,Oi,sn,xo,rr,hn,wr,B3,Cr],encapsulation:2});let t=n;return t})();var mU=(()=>{let n=class n{constructor(){this.authService=u(Tt),this.router=u(Re)}ngOnInit(){return fn(this,null,function*(){try{(yield this.authService.initAuth())?this.router.navigate(["/dashboard"]):(console.warn("Authentication callback failed, redirecting to dashboard as guest"),this.router.navigate(["/dashboard"]))}catch(i){console.error("Error processing callback:",i),this.router.navigate(["/dashboard"])}})}};n.\u0275fac=function(r){return new(r||n)},n.\u0275cmp=E({type:n,selectors:[["app-callback"]],decls:5,vars:0,consts:[[1,"callback-container"]],template:function(r,o){r&1&&(ft(0,"div",0)(1,"h2"),_(2,"Processing login..."),vt(),ft(3,"p"),_(4,"Please wait while we complete your authentication."),vt()())},styles:[".callback-container[_ngcontent-%COMP%]{display:flex;flex-direction:column;align-items:center;justify-content:center;height:100vh;text-align:center}"]});let t=n;return t})();var w_e=[[["caption"]],[["colgroup"],["col"]],"*"],D_e=["caption","colgroup, col","*"];function E_e(t,n){t&1&&oe(0,2)}function M_e(t,n){t&1&&(h(0,"thead",0),Ge(1,1),p(),h(2,"tbody",0),Ge(3,2)(4,3),p(),h(5,"tfoot",0),Ge(6,4),p())}function k_e(t,n){t&1&&Ge(0,1)(1,2)(2,3)(3,4)}var za=new T("CDK_TABLE");var uw=(()=>{class t{template=u(te);constructor(){}static \u0275fac=function(i){return new(i||t)};static \u0275dir=F({type:t,selectors:[["","cdkCellDef",""]]})}return t})(),mw=(()=>{class t{template=u(te);constructor(){}static \u0275fac=function(i){return new(i||t)};static \u0275dir=F({type:t,selectors:[["","cdkHeaderCellDef",""]]})}return t})(),fU=(()=>{class t{template=u(te);constructor(){}static \u0275fac=function(i){return new(i||t)};static \u0275dir=F({type:t,selectors:[["","cdkFooterCellDef",""]]})}return t})(),sp=(()=>{class t{_table=u(za,{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(i){return new(i||t)};static \u0275dir=F({type:t,selectors:[["","cdkColumnDef",""]],contentQueries:function(i,r,o){if(i&1&&(xe(o,uw,5),xe(o,mw,5),xe(o,fU,5)),i&2){let a;B(a=j())&&(r.cell=a.first),B(a=j())&&(r.headerCell=a.first),B(a=j())&&(r.footerCell=a.first)}},inputs:{name:[0,"cdkColumnDef","name"],sticky:[2,"sticky","sticky",V],stickyEnd:[2,"stickyEnd","stickyEnd",V]},features:[Ce([{provide:"MAT_SORT_HEADER_COLUMN_DEF",useExisting:t}])]})}return t})(),cw=class{constructor(n,e){e.nativeElement.classList.add(...n._columnCssClassName)}},gU=(()=>{class t extends cw{constructor(){super(u(sp),u(q))}static \u0275fac=function(i){return new(i||t)};static \u0275dir=F({type:t,selectors:[["cdk-header-cell"],["th","cdk-header-cell",""]],hostAttrs:["role","columnheader",1,"cdk-header-cell"],features:[le]})}return t})();var _U=(()=>{class t extends cw{constructor(){let e=u(sp),i=u(q);super(e,i);let r=e._table?._getCellRole();r&&i.nativeElement.setAttribute("role",r)}static \u0275fac=function(i){return new(i||t)};static \u0275dir=F({type:t,selectors:[["cdk-cell"],["td","cdk-cell",""]],hostAttrs:[1,"cdk-cell"],features:[le]})}return t})();var jI=(()=>{class t{template=u(te);_differs=u(ds);columns;_columnsDiffer;constructor(){}ngOnChanges(e){if(!this._columnsDiffer){let i=e.columns&&e.columns.currentValue||[];this._columnsDiffer=this._differs.find(i).create(),this._columnsDiffer.diff(i)}}getColumnsDiff(){return this._columnsDiffer.diff(this.columns)}extractCellTemplate(e){return this instanceof v_?e.headerCell.template:this instanceof HI?e.footerCell.template:e.cell.template}static \u0275fac=function(i){return new(i||t)};static \u0275dir=F({type:t,features:[Ae]})}return t})(),v_=(()=>{class t extends jI{_table=u(za,{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(u(te),u(ds))}ngOnChanges(e){super.ngOnChanges(e)}hasStickyChanged(){let e=this._hasStickyChanged;return this.resetStickyChanged(),e}resetStickyChanged(){this._hasStickyChanged=!1}static \u0275fac=function(i){return new(i||t)};static \u0275dir=F({type:t,selectors:[["","cdkHeaderRowDef",""]],inputs:{columns:[0,"cdkHeaderRowDef","columns"],sticky:[2,"cdkHeaderRowDefSticky","sticky",V]},features:[le,Ae]})}return t})(),HI=(()=>{class t extends jI{_table=u(za,{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(u(te),u(ds))}ngOnChanges(e){super.ngOnChanges(e)}hasStickyChanged(){let e=this._hasStickyChanged;return this.resetStickyChanged(),e}resetStickyChanged(){this._hasStickyChanged=!1}static \u0275fac=function(i){return new(i||t)};static \u0275dir=F({type:t,selectors:[["","cdkFooterRowDef",""]],inputs:{columns:[0,"cdkFooterRowDef","columns"],sticky:[2,"cdkFooterRowDefSticky","sticky",V]},features:[le,Ae]})}return t})(),hw=(()=>{class t extends jI{_table=u(za,{optional:!0});when;constructor(){super(u(te),u(ds))}static \u0275fac=function(i){return new(i||t)};static \u0275dir=F({type:t,selectors:[["","cdkRowDef",""]],inputs:{columns:[0,"cdkRowDefColumns","columns"],when:[0,"cdkRowDefWhen","when"]},features:[le]})}return t})(),Au=(()=>{class t{_viewContainer=u(nt);cells;context;static mostRecentCellOutlet=null;constructor(){t.mostRecentCellOutlet=this}ngOnDestroy(){t.mostRecentCellOutlet===this&&(t.mostRecentCellOutlet=null)}static \u0275fac=function(i){return new(i||t)};static \u0275dir=F({type:t,selectors:[["","cdkCellOutlet",""]]})}return t})(),zI=(()=>{class t{static \u0275fac=function(i){return new(i||t)};static \u0275cmp=E({type:t,selectors:[["cdk-header-row"],["tr","cdk-header-row",""]],hostAttrs:["role","row",1,"cdk-header-row"],decls:1,vars:0,consts:[["cdkCellOutlet",""]],template:function(i,r){i&1&&Ge(0,0)},dependencies:[Au],encapsulation:2})}return t})();var UI=(()=>{class t{static \u0275fac=function(i){return new(i||t)};static \u0275cmp=E({type:t,selectors:[["cdk-row"],["tr","cdk-row",""]],hostAttrs:["role","row",1,"cdk-row"],decls:1,vars:0,consts:[["cdkCellOutlet",""]],template:function(i,r){i&1&&Ge(0,0)},dependencies:[Au],encapsulation:2})}return t})(),pw=(()=>{class t{templateRef=u(te);_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(i){return new(i||t)};static \u0275dir=F({type:t,selectors:[["ng-template","cdkNoDataRow",""]]})}return t})(),hU=["top","bottom","left","right"],BI=class{_isNativeHtmlTable;_stickCellCss;_isBrowser;_needsPositionStickyOnElement;direction;_positionListener;_tableInjector;_elemSizeCache=new WeakMap;_resizeObserver=globalThis?.ResizeObserver?new globalThis.ResizeObserver(n=>this._updateCachedSizes(n)):null;_updatedStickyColumnsParamsToReplay=[];_stickyColumnsReplayTimeout=null;_cachedCellWidths=[];_borderCellCss;_destroyed=!1;constructor(n,e,i=!0,r=!0,o,a,s){this._isNativeHtmlTable=n,this._stickCellCss=e,this._isBrowser=i,this._needsPositionStickyOnElement=r,this.direction=o,this._positionListener=a,this._tableInjector=s,this._borderCellCss={top:`${e}-border-elem-top`,bottom:`${e}-border-elem-bottom`,left:`${e}-border-elem-left`,right:`${e}-border-elem-right`}}clearStickyPositioning(n,e){(e.includes("left")||e.includes("right"))&&this._removeFromStickyColumnReplayQueue(n);let i=[];for(let r of n)r.nodeType===r.ELEMENT_NODE&&i.push(r,...Array.from(r.children));pt({write:()=>{for(let r of i)this._removeStickyStyle(r,e)}},{injector:this._tableInjector})}updateStickyColumns(n,e,i,r=!0,o=!0){if(!n.length||!this._isBrowser||!(e.some(x=>x)||i.some(x=>x))){this._positionListener?.stickyColumnsUpdated({sizes:[]}),this._positionListener?.stickyEndColumnsUpdated({sizes:[]});return}let a=n[0],s=a.children.length,l=this.direction==="rtl",c=l?"right":"left",d=l?"left":"right",m=e.lastIndexOf(!0),f=i.indexOf(!0),b,v,w;o&&this._updateStickyColumnReplayQueue({rows:[...n],stickyStartStates:[...e],stickyEndStates:[...i]}),pt({earlyRead:()=>{b=this._getCellWidths(a,r),v=this._getStickyStartColumnPositions(b,e),w=this._getStickyEndColumnPositions(b,i)},write:()=>{for(let x of n)for(let D=0;D!!x)&&(this._positionListener.stickyColumnsUpdated({sizes:m===-1?[]:b.slice(0,m+1).map((x,D)=>e[D]?x:null)}),this._positionListener.stickyEndColumnsUpdated({sizes:f===-1?[]:b.slice(f).map((x,D)=>i[D+f]?x:null).reverse()}))}},{injector:this._tableInjector})}stickRows(n,e,i){if(!this._isBrowser)return;let r=i==="bottom"?n.slice().reverse():n,o=i==="bottom"?e.slice().reverse():e,a=[],s=[],l=[];pt({earlyRead:()=>{for(let c=0,d=0;c{let c=o.lastIndexOf(!0);for(let d=0;d{let i=n.querySelector("tfoot");i&&(e.some(r=>!r)?this._removeStickyStyle(i,["bottom"]):this._addStickyStyle(i,"bottom",0,!1))}},{injector:this._tableInjector})}destroy(){this._stickyColumnsReplayTimeout&&clearTimeout(this._stickyColumnsReplayTimeout),this._resizeObserver?.disconnect(),this._destroyed=!0}_removeStickyStyle(n,e){if(!n.classList.contains(this._stickCellCss))return;for(let r of e)n.style[r]="",n.classList.remove(this._borderCellCss[r]);hU.some(r=>e.indexOf(r)===-1&&n.style[r])?n.style.zIndex=this._getCalculatedZIndex(n):(n.style.zIndex="",this._needsPositionStickyOnElement&&(n.style.position=""),n.classList.remove(this._stickCellCss))}_addStickyStyle(n,e,i,r){n.classList.add(this._stickCellCss),r&&n.classList.add(this._borderCellCss[e]),n.style[e]=`${i}px`,n.style.zIndex=this._getCalculatedZIndex(n),this._needsPositionStickyOnElement&&(n.style.cssText+="position: -webkit-sticky; position: sticky; ")}_getCalculatedZIndex(n){let e={top:100,bottom:10,left:1,right:1},i=0;for(let r of hU)n.style[r]&&(i+=e[r]);return i?`${i}`:""}_getCellWidths(n,e=!0){if(!e&&this._cachedCellWidths.length)return this._cachedCellWidths;let i=[],r=n.children;for(let o=0;o0;o--)e[o]&&(i[o]=r,r+=n[o]);return i}_retrieveElementSize(n){let e=this._elemSizeCache.get(n);if(e)return e;let i=n.getBoundingClientRect(),r={width:i.width,height:i.height};return this._resizeObserver&&(this._elemSizeCache.set(n,r),this._resizeObserver.observe(n,{box:"border-box"})),r}_updateStickyColumnReplayQueue(n){this._removeFromStickyColumnReplayQueue(n.rows),this._stickyColumnsReplayTimeout||this._updatedStickyColumnsParamsToReplay.push(n)}_removeFromStickyColumnReplayQueue(n){let e=new Set(n);for(let i of this._updatedStickyColumnsParamsToReplay)i.rows=i.rows.filter(r=>!e.has(r));this._updatedStickyColumnsParamsToReplay=this._updatedStickyColumnsParamsToReplay.filter(i=>!!i.rows.length)}_updateCachedSizes(n){let e=!1;for(let i of n){let r=i.borderBoxSize?.length?{width:i.borderBoxSize[0].inlineSize,height:i.borderBoxSize[0].blockSize}:{width:i.contentRect.width,height:i.contentRect.height};r.width!==this._elemSizeCache.get(i.target)?.width&&S_e(i.target)&&(e=!0),this._elemSizeCache.set(i.target,r)}e&&this._updatedStickyColumnsParamsToReplay.length&&(this._stickyColumnsReplayTimeout&&clearTimeout(this._stickyColumnsReplayTimeout),this._stickyColumnsReplayTimeout=setTimeout(()=>{if(!this._destroyed){for(let i of this._updatedStickyColumnsParamsToReplay)this.updateStickyColumns(i.rows,i.stickyStartStates,i.stickyEndStates,!0,!1);this._updatedStickyColumnsParamsToReplay=[],this._stickyColumnsReplayTimeout=null}},0))}};function S_e(t){return["cdk-cell","cdk-header-cell","cdk-footer-cell"].some(n=>t.classList.contains(n))}var dw=new T("CDK_SPL");var $I=(()=>{class t{viewContainer=u(nt);elementRef=u(q);constructor(){let e=u(za);e._rowOutlet=this,e._outletAssigned()}static \u0275fac=function(i){return new(i||t)};static \u0275dir=F({type:t,selectors:[["","rowOutlet",""]]})}return t})(),WI=(()=>{class t{viewContainer=u(nt);elementRef=u(q);constructor(){let e=u(za);e._headerRowOutlet=this,e._outletAssigned()}static \u0275fac=function(i){return new(i||t)};static \u0275dir=F({type:t,selectors:[["","headerRowOutlet",""]]})}return t})(),GI=(()=>{class t{viewContainer=u(nt);elementRef=u(q);constructor(){let e=u(za);e._footerRowOutlet=this,e._outletAssigned()}static \u0275fac=function(i){return new(i||t)};static \u0275dir=F({type:t,selectors:[["","footerRowOutlet",""]]})}return t})(),qI=(()=>{class t{viewContainer=u(nt);elementRef=u(q);constructor(){let e=u(za);e._noDataRowOutlet=this,e._outletAssigned()}static \u0275fac=function(i){return new(i||t)};static \u0275dir=F({type:t,selectors:[["","noDataRowOutlet",""]]})}return t})(),YI=(()=>{class t{_differs=u(ds);_changeDetectorRef=u(ye);_elementRef=u(q);_dir=u(Vt,{optional:!0});_platform=u(qe);_viewRepeater=u(fh);_viewportRuler=u(Xn);_stickyPositioningListener=u(dw,{optional:!0,skipSelf:!0});_document=u(ge);_data;_onDestroy=new z;_renderRows;_renderChangeSubscription;_columnDefsByName=new Map;_rowDefs;_headerRowDefs;_footerRowDefs;_dataDiffer;_defaultRowDef;_customColumnDefs=new Set;_customRowDefs=new Set;_customHeaderRowDefs=new Set;_customFooterRowDefs=new Set;_customNoDataRow;_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;_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)}_dataSource;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._fixedLayout}set fixedLayout(e){this._fixedLayout=e,this._forceRecalculateCellWidths=!0,this._stickyColumnStylesNeedReset=!0}_fixedLayout=!1;contentChanged=new U;viewChange=new tt({start:0,end:Number.MAX_VALUE});_rowOutlet;_headerRowOutlet;_footerRowOutlet;_noDataRowOutlet;_contentColumnDefs;_contentRowDefs;_contentHeaderRowDefs;_contentFooterRowDefs;_noDataRow;_injector=u(de);constructor(){u(new Ii("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((i,r)=>this.trackBy?this.trackBy(r.dataIndex,r.data):r)}ngOnInit(){this._setupStickyStyler(),this._viewportRuler.change().pipe(Te(this._onDestroy)).subscribe(()=>{this._forceRecalculateCellWidths=!0})}ngAfterContentInit(){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._onDestroy.next(),this._onDestroy.complete(),ig(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 i=this._rowOutlet.viewContainer;this._viewRepeater.applyChanges(e,i,(r,o,a)=>this._getEmbeddedViewArgs(r.item,a),r=>r.item.data,r=>{r.operation===cc.INSERTED&&r.context&&this._renderCellTemplateForItem(r.record.item.rowDef,r.context)}),this._updateRowIndexContext(),e.forEachIdentityChange(r=>{let o=i.get(r.currentIndex);o.context.$implicit=r.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 r=pU(this._headerRowOutlet,"thead");r&&(r.style.display=e.length?"":"none")}let i=this._headerRowDefs.map(r=>r.sticky);this._stickyStyler.clearStickyPositioning(e,["top"]),this._stickyStyler.stickRows(e,i,"top"),this._headerRowDefs.forEach(r=>r.resetStickyChanged())}updateStickyFooterRowStyles(){let e=this._getRenderedRows(this._footerRowOutlet);if(this._isNativeHtmlTable){let r=pU(this._footerRowOutlet,"tfoot");r&&(r.style.display=e.length?"":"none")}let i=this._footerRowDefs.map(r=>r.sticky);this._stickyStyler.clearStickyPositioning(e,["bottom"]),this._stickyStyler.stickRows(e,i,"bottom"),this._stickyStyler.updateStickyFooterContainer(this._elementRef.nativeElement,i),this._footerRowDefs.forEach(r=>r.resetStickyChanged())}updateStickyColumnStyles(){let e=this._getRenderedRows(this._headerRowOutlet),i=this._getRenderedRows(this._rowOutlet),r=this._getRenderedRows(this._footerRowOutlet);(this._isNativeHtmlTable&&!this._fixedLayout||this._stickyColumnStylesNeedReset)&&(this._stickyStyler.clearStickyPositioning([...e,...i,...r],["left","right"]),this._stickyColumnStylesNeedReset=!1),e.forEach((o,a)=>{this._addStickyColumnStyles([o],this._headerRowDefs[a])}),this._rowDefs.forEach(o=>{let a=[];for(let s=0;s{this._addStickyColumnStyles([o],this._footerRowDefs[a])}),Array.from(this._columnDefsByName.values()).forEach(o=>o.resetStickyChanged())}_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 i=this._renderUpdatedColumns()||this._headerRowDefChanged||this._footerRowDefChanged;this._stickyColumnStylesNeedReset=this._stickyColumnStylesNeedReset||i,this._forceRecalculateCellWidths=i,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(){let e=[],i=this._cachedRenderRowsMap;if(this._cachedRenderRowsMap=new Map,!this._data)return e;for(let r=0;r{let s=r&&r.has(a)?r.get(a):[];if(s.length){let l=s.shift();return l.dataIndex=i,l}else return{data:e,rowDef:a,dataIndex:i}})}_cacheColumnDefs(){this._columnDefsByName.clear(),lw(this._getOwnDefs(this._contentColumnDefs),this._customColumnDefs).forEach(i=>{this._columnDefsByName.has(i.name),this._columnDefsByName.set(i.name,i)})}_cacheRowDefs(){this._headerRowDefs=lw(this._getOwnDefs(this._contentHeaderRowDefs),this._customHeaderRowDefs),this._footerRowDefs=lw(this._getOwnDefs(this._contentFooterRowDefs),this._customFooterRowDefs),this._rowDefs=lw(this._getOwnDefs(this._contentRowDefs),this._customRowDefs);let e=this._rowDefs.filter(i=>!i.when);!this.multiTemplateDataRows&&e.length>1,this._defaultRowDef=e[0]}_renderUpdatedColumns(){let e=(a,s)=>{let l=!!s.getColumnsDiff();return a||l},i=this._rowDefs.reduce(e,!1);i&&this._forceRenderDataRows();let r=this._headerRowDefs.reduce(e,!1);r&&this._forceRenderHeaderRows();let o=this._footerRowDefs.reduce(e,!1);return o&&this._forceRenderFooterRows(),i||r||o}_switchDataSource(e){this._data=[],ig(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;ig(this.dataSource)?e=this.dataSource.connect(this):ji(this.dataSource)?e=this.dataSource:Array.isArray(this.dataSource)&&(e=Q(this.dataSource)),this._renderChangeSubscription=e.pipe(Te(this._onDestroy)).subscribe(i=>{this._data=i||[],this.renderRows()})}_forceRenderHeaderRows(){this._headerRowOutlet.viewContainer.length>0&&this._headerRowOutlet.viewContainer.clear(),this._headerRowDefs.forEach((e,i)=>this._renderRow(this._headerRowOutlet,e,i)),this.updateStickyHeaderRowStyles()}_forceRenderFooterRows(){this._footerRowOutlet.viewContainer.length>0&&this._footerRowOutlet.viewContainer.clear(),this._footerRowDefs.forEach((e,i)=>this._renderRow(this._footerRowOutlet,e,i)),this.updateStickyFooterRowStyles()}_addStickyColumnStyles(e,i){let r=Array.from(i?.columns||[]).map(s=>{let l=this._columnDefsByName.get(s);return l}),o=r.map(s=>s.sticky),a=r.map(s=>s.stickyEnd);this._stickyStyler.updateStickyColumns(e,o,a,!this._fixedLayout||this._forceRecalculateCellWidths)}_getRenderedRows(e){let i=[];for(let r=0;r!o.when||o.when(i,e));else{let o=this._rowDefs.find(a=>a.when&&a.when(i,e))||this._defaultRowDef;o&&r.push(o)}return r.length,r}_getEmbeddedViewArgs(e,i){let r=e.rowDef,o={$implicit:e.data};return{templateRef:r.template,context:o,index:i}}_renderRow(e,i,r,o={}){let a=e.viewContainer.createEmbeddedView(i.template,o,r);return this._renderCellTemplateForItem(i,o),a}_renderCellTemplateForItem(e,i){for(let r of this._getCellTemplates(e))Au.mostRecentCellOutlet&&Au.mostRecentCellOutlet._viewContainer.createEmbeddedView(r,i);this._changeDetectorRef.markForCheck()}_updateRowIndexContext(){let e=this._rowOutlet.viewContainer;for(let i=0,r=e.length;i{let r=this._columnDefsByName.get(i);return e.extractCellTemplate(r)})}_forceRenderDataRows(){this._dataDiffer.diff([]),this._rowOutlet.viewContainer.clear(),this.renderRows()}_checkStickyStates(){let e=(i,r)=>i||r.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";this._stickyStyler=new BI(this._isNativeHtmlTable,this.stickyCssClass,this._platform.isBrowser,this.needsPositionStickyOnElement,e,this._stickyPositioningListener,this._injector),(this._dir?this._dir.change:Q()).pipe(Te(this._onDestroy)).subscribe(i=>{this._stickyStyler.direction=i,this.updateStickyColumnStyles()})}_getOwnDefs(e){return e.filter(i=>!i._table||i._table===this)}_updateNoDataRow(){let e=this._customNoDataRow||this._noDataRow;if(!e)return;let i=this._rowOutlet.viewContainer.length===0;if(i===this._isShowingNoDataRow)return;let r=this._noDataRowOutlet.viewContainer;if(i){let o=r.createEmbeddedView(e.templateRef),a=o.rootNodes[0];if(o.rootNodes.length===1&&a?.nodeType===this._document.ELEMENT_NODE){a.setAttribute("role","row"),a.classList.add(...e._contentClassNames);let s=a.querySelectorAll(e._cellSelector);for(let l=0;l{class t{static \u0275fac=function(i){return new(i||t)};static \u0275mod=ee({type:t});static \u0275inj=J({imports:[ng]})}return t})();var T_e=[[["caption"]],[["colgroup"],["col"]],"*"],I_e=["caption","colgroup, col","*"];function A_e(t,n){t&1&&oe(0,2)}function O_e(t,n){t&1&&(h(0,"thead",0),Ge(1,1),p(),h(2,"tbody",2),Ge(3,3)(4,4),p(),h(5,"tfoot",0),Ge(6,5),p())}function R_e(t,n){t&1&&Ge(0,1)(1,3)(2,4)(3,5)}var Hc=(()=>{class t extends YI{stickyCssClass="mat-mdc-table-sticky";needsPositionStickyOnElement=!1;static \u0275fac=(()=>{let e;return function(r){return(e||(e=fe(t)))(r||t)}})();static \u0275cmp=E({type:t,selectors:[["mat-table"],["table","mat-table",""]],hostAttrs:[1,"mat-mdc-table","mdc-data-table__table"],hostVars:2,hostBindings:function(i,r){i&2&&G("mdc-table-fixed-layout",r.fixedLayout)},exportAs:["matTable"],features:[Ce([{provide:YI,useExisting:t},{provide:za,useExisting:t},{provide:fh,useClass:su},{provide:dw,useValue:null}]),le],ngContentSelectors:I_e,decls:5,vars:2,consts:[["role","rowgroup"],["headerRowOutlet",""],["role","rowgroup",1,"mdc-data-table__content"],["rowOutlet",""],["noDataRowOutlet",""],["footerRowOutlet",""]],template:function(i,r){i&1&&(Me(T_e),oe(0),oe(1,1),N(2,A_e,1,0),N(3,O_e,7,0)(4,R_e,4,0)),i&2&&(g(2),L(r._isServer?2:-1),g(),L(r._isNativeHtmlTable?3:4))},dependencies:[WI,$I,qI,GI],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))}.mdc-data-table__cell{box-sizing:border-box;overflow:hidden;text-align:left;text-overflow:ellipsis}[dir=rtl] .mdc-data-table__cell{text-align:right}.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:left}[dir=rtl] .mat-mdc-header-cell{text-align:right}.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 t})(),zc=(()=>{class t extends uw{static \u0275fac=(()=>{let e;return function(r){return(e||(e=fe(t)))(r||t)}})();static \u0275dir=F({type:t,selectors:[["","matCellDef",""]],features:[Ce([{provide:uw,useExisting:t}]),le]})}return t})(),Uc=(()=>{class t extends mw{static \u0275fac=(()=>{let e;return function(r){return(e||(e=fe(t)))(r||t)}})();static \u0275dir=F({type:t,selectors:[["","matHeaderCellDef",""]],features:[Ce([{provide:mw,useExisting:t}]),le]})}return t})();var $c=(()=>{class t extends sp{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(r){return(e||(e=fe(t)))(r||t)}})();static \u0275dir=F({type:t,selectors:[["","matColumnDef",""]],inputs:{name:[0,"matColumnDef","name"]},features:[Ce([{provide:sp,useExisting:t},{provide:"MAT_SORT_HEADER_COLUMN_DEF",useExisting:t}]),le]})}return t})(),Wc=(()=>{class t extends gU{static \u0275fac=(()=>{let e;return function(r){return(e||(e=fe(t)))(r||t)}})();static \u0275dir=F({type:t,selectors:[["mat-header-cell"],["th","mat-header-cell",""]],hostAttrs:["role","columnheader",1,"mat-mdc-header-cell","mdc-data-table__header-cell"],features:[le]})}return t})();var Gc=(()=>{class t extends _U{static \u0275fac=(()=>{let e;return function(r){return(e||(e=fe(t)))(r||t)}})();static \u0275dir=F({type:t,selectors:[["mat-cell"],["td","mat-cell",""]],hostAttrs:[1,"mat-mdc-cell","mdc-data-table__cell"],features:[le]})}return t})();var qc=(()=>{class t extends v_{static \u0275fac=(()=>{let e;return function(r){return(e||(e=fe(t)))(r||t)}})();static \u0275dir=F({type:t,selectors:[["","matHeaderRowDef",""]],inputs:{columns:[0,"matHeaderRowDef","columns"],sticky:[2,"matHeaderRowDefSticky","sticky",V]},features:[Ce([{provide:v_,useExisting:t}]),le]})}return t})();var Yc=(()=>{class t extends hw{static \u0275fac=(()=>{let e;return function(r){return(e||(e=fe(t)))(r||t)}})();static \u0275dir=F({type:t,selectors:[["","matRowDef",""]],inputs:{columns:[0,"matRowDefColumns","columns"],when:[0,"matRowDefWhen","when"]},features:[Ce([{provide:hw,useExisting:t}]),le]})}return t})(),Qc=(()=>{class t extends zI{static \u0275fac=(()=>{let e;return function(r){return(e||(e=fe(t)))(r||t)}})();static \u0275cmp=E({type:t,selectors:[["mat-header-row"],["tr","mat-header-row",""]],hostAttrs:["role","row",1,"mat-mdc-header-row","mdc-data-table__header-row"],exportAs:["matHeaderRow"],features:[Ce([{provide:zI,useExisting:t}]),le],decls:1,vars:0,consts:[["cdkCellOutlet",""]],template:function(i,r){i&1&&Ge(0,0)},dependencies:[Au],encapsulation:2})}return t})();var Kc=(()=>{class t extends UI{static \u0275fac=(()=>{let e;return function(r){return(e||(e=fe(t)))(r||t)}})();static \u0275cmp=E({type:t,selectors:[["mat-row"],["tr","mat-row",""]],hostAttrs:["role","row",1,"mat-mdc-row","mdc-data-table__row"],exportAs:["matRow"],features:[Ce([{provide:UI,useExisting:t}]),le],decls:1,vars:0,consts:[["cdkCellOutlet",""]],template:function(i,r){i&1&&Ge(0,0)},dependencies:[Au],encapsulation:2})}return t})(),gw=(()=>{class t extends pw{_cellSelector="td, mat-cell, [mat-cell], .mat-cell";constructor(){super(),this._contentClassNames.push("mat-mdc-no-data-row","mat-mdc-row","mdc-data-table__row"),this._cellClassNames.push("mat-mdc-cell","mdc-data-table__cell","mat-no-data-cell")}static \u0275fac=function(i){return new(i||t)};static \u0275dir=F({type:t,selectors:[["ng-template","matNoDataRow",""]],features:[Ce([{provide:pw,useExisting:t}]),le]})}return t})();var Zc=(()=>{class t{static \u0275fac=function(i){return new(i||t)};static \u0275mod=ee({type:t});static \u0275inj=J({imports:[we,bU,we]})}return t})(),P_e=9007199254740991,fw=class extends tg{_data;_renderData=new tt([]);_filter=new tt("");_internalPageChanges=new z;_renderChangesSubscription=null;filteredData;get data(){return this._data.value}set data(n){n=Array.isArray(n)?n:[],this._data.next(n),this._renderChangesSubscription||this._filterData(n)}get filter(){return this._filter.value}set filter(n){this._filter.next(n),this._renderChangesSubscription||this._filterData(this.data)}get sort(){return this._sort}set sort(n){this._sort=n,this._updateChangeSubscription()}_sort;get paginator(){return this._paginator}set paginator(n){this._paginator=n,this._updateChangeSubscription()}_paginator;sortingDataAccessor=(n,e)=>{let i=n[e];if(N0(i)){let r=Number(i);return r{let i=e.active,r=e.direction;return!i||r==""?n:n.sort((o,a)=>{let s=this.sortingDataAccessor(o,i),l=this.sortingDataAccessor(a,i),c=typeof s,d=typeof l;c!==d&&(c==="number"&&(s+=""),d==="number"&&(l+=""));let m=0;return s!=null&&l!=null?s>l?m=1:s{let i=e.trim().toLowerCase();return Object.values(n).some(r=>`${r}`.toLowerCase().includes(i))};constructor(n=[]){super(),this._data=new tt(n),this._updateChangeSubscription()}_updateChangeSubscription(){let n=this._sort?Je(this._sort.sortChange,this._sort.initialized):Q(null),e=this._paginator?Je(this._paginator.page,this._internalPageChanges,this._paginator.initialized):Q(null),i=this._data,r=co([i,this._filter]).pipe(se(([s])=>this._filterData(s))),o=co([r,n]).pipe(se(([s])=>this._orderData(s))),a=co([o,e]).pipe(se(([s])=>this._pageData(s)));this._renderChangesSubscription?.unsubscribe(),this._renderChangesSubscription=a.subscribe(s=>this._renderData.next(s))}_filterData(n){return this.filteredData=this.filter==null||this.filter===""?n:n.filter(e=>this.filterPredicate(e,this.filter)),this.paginator&&this._updatePaginator(this.filteredData.length),this.filteredData}_orderData(n){return this.sort?this.sortData(n.slice(),this.sort):n}_pageData(n){if(!this.paginator)return n;let e=this.paginator.pageIndex*this.paginator.pageSize;return n.slice(e,e+this.paginator.pageSize)}_updatePaginator(n){Promise.resolve().then(()=>{let e=this.paginator;if(e&&(e.length=n,e.pageIndex>0)){let i=Math.ceil(e.length/e.pageSize)-1||0,r=Math.min(e.pageIndex,i);r!==e.pageIndex&&(e.pageIndex=r,this._internalPageChanges.next())}})}connect(){return this._renderChangesSubscription||this._updateChangeSubscription(),this._renderData}disconnect(){this._renderChangesSubscription?.unsubscribe(),this._renderChangesSubscription=null}};var F_e=["panel"],N_e=["*"];function L_e(t,n){if(t&1&&(ft(0,"div",1,0),oe(2),vt()),t&2){let e=n.id,i=C();it(i._classList),G("mat-mdc-autocomplete-visible",i.showPanel)("mat-mdc-autocomplete-hidden",!i.showPanel)("mat-autocomplete-panel-animations-enabled",!i._animationsDisabled)("mat-primary",i._color==="primary")("mat-accent",i._color==="accent")("mat-warn",i._color==="warn"),si("id",i.id),X("aria-label",i.ariaLabel||null)("aria-labelledby",i._getPanelAriaLabelledby(e))}}var QI=class{source;option;constructor(n,e){this.source=n,this.option=e}},vU=new T("mat-autocomplete-default-options",{providedIn:"root",factory:V_e});function V_e(){return{autoActiveFirstOption:!1,autoSelectActiveOption:!1,hideSingleSelectionIndicator:!1,requireSelection:!1,hasBackdrop:!1}}var bw=(()=>{class t{_changeDetectorRef=u(ye);_elementRef=u(q);_defaults=u(vU);_animationsDisabled=Ye();_activeOptionChanges=ke.EMPTY;_keyManager;showPanel=!1;get isOpen(){return this._isOpen&&this.showPanel}_isOpen=!1;_latestOpeningTrigger;_setColor(e){this._color=e,this._changeDetectorRef.markForCheck()}_color;template;panel;options;optionGroups;ariaLabel;ariaLabelledby;displayWith=null;autoActiveFirstOption;autoSelectActiveOption;requireSelection;panelWidth;disableRipple;optionSelected=new U;opened=new U;closed=new U;optionActivated=new U;set classList(e){this._classList=e,this._elementRef.nativeElement.className=""}_classList;get hideSingleSelectionIndicator(){return this._hideSingleSelectionIndicator}set hideSingleSelectionIndicator(e){this._hideSingleSelectionIndicator=e,this._syncParentProperties()}_hideSingleSelectionIndicator;_syncParentProperties(){if(this.options)for(let e of this.options)e._changeDetectorRef.markForCheck()}id=u(Ze).getId("mat-autocomplete-");inertGroups;constructor(){let e=u(qe);this.inertGroups=e?.SAFARI||!1,this.autoActiveFirstOption=!!this._defaults.autoActiveFirstOption,this.autoSelectActiveOption=!!this._defaults.autoSelectActiveOption,this.requireSelection=!!this._defaults.requireSelection,this._hideSingleSelectionIndicator=this._defaults.hideSingleSelectionIndicator??!1}ngAfterContentInit(){this._keyManager=new qd(this.options).withWrap().skipPredicate(this._skipPredicate),this._activeOptionChanges=this._keyManager.change.subscribe(e=>{this.isOpen&&this.optionActivated.emit({source:this,option:this.options.toArray()[e]||null})}),this._setVisibility()}ngOnDestroy(){this._keyManager?.destroy(),this._activeOptionChanges.unsubscribe()}_setScrollTop(e){this.panel&&(this.panel.nativeElement.scrollTop=e)}_getScrollTop(){return this.panel?this.panel.nativeElement.scrollTop:0}_setVisibility(){this.showPanel=!!this.options?.length,this._changeDetectorRef.markForCheck()}_emitSelectEvent(e){let i=new QI(this,e);this.optionSelected.emit(i)}_getPanelAriaLabelledby(e){if(this.ariaLabel)return null;let i=e?e+" ":"";return this.ariaLabelledby?i+this.ariaLabelledby:e}_skipPredicate(){return!1}static \u0275fac=function(i){return new(i||t)};static \u0275cmp=E({type:t,selectors:[["mat-autocomplete"]],contentQueries:function(i,r,o){if(i&1&&(xe(o,xn,5),xe(o,Zd,5)),i&2){let a;B(a=j())&&(r.options=a),B(a=j())&&(r.optionGroups=a)}},viewQuery:function(i,r){if(i&1&&(ie(te,7),ie(F_e,5)),i&2){let o;B(o=j())&&(r.template=o.first),B(o=j())&&(r.panel=o.first)}},hostAttrs:[1,"mat-mdc-autocomplete"],inputs:{ariaLabel:[0,"aria-label","ariaLabel"],ariaLabelledby:[0,"aria-labelledby","ariaLabelledby"],displayWith:"displayWith",autoActiveFirstOption:[2,"autoActiveFirstOption","autoActiveFirstOption",V],autoSelectActiveOption:[2,"autoSelectActiveOption","autoSelectActiveOption",V],requireSelection:[2,"requireSelection","requireSelection",V],panelWidth:"panelWidth",disableRipple:[2,"disableRipple","disableRipple",V],classList:[0,"class","classList"],hideSingleSelectionIndicator:[2,"hideSingleSelectionIndicator","hideSingleSelectionIndicator",V]},outputs:{optionSelected:"optionSelected",opened:"opened",closed:"closed",optionActivated:"optionActivated"},exportAs:["matAutocomplete"],features:[Ce([{provide:Kd,useExisting:t}])],ngContentSelectors:N_e,decls:1,vars:0,consts:[["panel",""],["role","listbox",1,"mat-mdc-autocomplete-panel","mdc-menu-surface","mdc-menu-surface--open",3,"id"]],template:function(i,r){i&1&&(Me(),xa(0,L_e,3,17,"ng-template"))},styles:[`div.mat-mdc-autocomplete-panel{width:100%;max-height:256px;visibility:hidden;transform-origin:center top;overflow:auto;padding:8px 0;box-sizing:border-box;position:relative;border-radius:var(--mat-autocomplete-container-shape, var(--mat-sys-corner-extra-small));box-shadow:var(--mat-autocomplete-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));background-color:var(--mat-autocomplete-background-color, var(--mat-sys-surface-container))}@media(forced-colors: active){div.mat-mdc-autocomplete-panel{outline:solid 1px}}.cdk-overlay-pane:not(.mat-mdc-autocomplete-panel-above) div.mat-mdc-autocomplete-panel{border-top-left-radius:0;border-top-right-radius:0}.mat-mdc-autocomplete-panel-above div.mat-mdc-autocomplete-panel{border-bottom-left-radius:0;border-bottom-right-radius:0;transform-origin:center bottom}div.mat-mdc-autocomplete-panel.mat-mdc-autocomplete-visible{visibility:visible}div.mat-mdc-autocomplete-panel.mat-mdc-autocomplete-hidden{visibility:hidden;pointer-events:none}@keyframes _mat-autocomplete-enter{from{opacity:0;transform:scaleY(0.8)}to{opacity:1;transform:none}}.mat-autocomplete-panel-animations-enabled{animation:_mat-autocomplete-enter 120ms cubic-bezier(0, 0, 0.2, 1)}mat-autocomplete{display:none} +`],encapsulation:2,changeDetection:0})}return t})();var B_e={provide:tr,useExisting:Kt(()=>y_),multi:!0};var yU=new T("mat-autocomplete-scroll-strategy",{providedIn:"root",factory:()=>{let t=u(de);return()=>wn(t)}});function j_e(t){let n=u(de);return()=>wn(n)}var H_e={provide:yU,deps:[],useFactory:j_e},y_=(()=>{class t{_environmentInjector=u(Wt);_element=u(q);_injector=u(de);_viewContainerRef=u(nt);_zone=u(ae);_changeDetectorRef=u(ye);_dir=u(Vt,{optional:!0});_formField=u(Xo,{optional:!0,host:!0});_viewportRuler=u(Xn);_scrollStrategy=u(yU);_renderer=u(je);_animationsDisabled=Ye();_defaults=u(vU,{optional:!0});_overlayRef;_portal;_componentDestroyed=!1;_initialized=new z;_keydownSubscription;_outsideClickSubscription;_cleanupWindowBlur;_previousValue;_valueOnAttach;_valueOnLastKeydown;_positionStrategy;_manuallyFloatingLabel=!1;_closingActionsSubscription;_viewportSubscription=ke.EMPTY;_breakpointObserver=u(sl);_handsetLandscapeSubscription=ke.EMPTY;_canOpenOnNextFocus=!0;_valueBeforeAutoSelection;_pendingAutoselectedOption;_closeKeyEventStream=new z;_overlayPanelClass=al(this._defaults?.overlayPanelClass||[]);_windowBlurHandler=()=>{this._canOpenOnNextFocus=this.panelOpen||!this._hasFocus()};_onChange=()=>{};_onTouched=()=>{};autocomplete;position="auto";connectedTo;autocompleteAttribute="off";autocompleteDisabled;constructor(){}_aboveClass="mat-mdc-autocomplete-panel-above";ngAfterViewInit(){this._initialized.next(),this._initialized.complete(),this._cleanupWindowBlur=this._renderer.listen("window","blur",this._windowBlurHandler)}ngOnChanges(e){e.position&&this._positionStrategy&&(this._setStrategyPositions(this._positionStrategy),this.panelOpen&&this._overlayRef.updatePosition())}ngOnDestroy(){this._cleanupWindowBlur?.(),this._handsetLandscapeSubscription.unsubscribe(),this._viewportSubscription.unsubscribe(),this._componentDestroyed=!0,this._destroyPanel(),this._closeKeyEventStream.complete(),this._clearFromModal()}get panelOpen(){return this._overlayAttached&&this.autocomplete.showPanel}_overlayAttached=!1;openPanel(){this._openPanelInternal()}closePanel(){this._resetLabel(),this._overlayAttached&&(this.panelOpen&&this._zone.run(()=>{this.autocomplete.closed.emit()}),this.autocomplete._latestOpeningTrigger===this&&(this.autocomplete._isOpen=!1,this.autocomplete._latestOpeningTrigger=null),this._overlayAttached=!1,this._pendingAutoselectedOption=null,this._overlayRef&&this._overlayRef.hasAttached()&&(this._overlayRef.detach(),this._closingActionsSubscription.unsubscribe()),this._updatePanelState(),this._componentDestroyed||this._changeDetectorRef.detectChanges(),this._trackedModal&&sc(this._trackedModal,"aria-owns",this.autocomplete.id))}updatePosition(){this._overlayAttached&&this._overlayRef.updatePosition()}get panelClosingActions(){return Je(this.optionSelections,this.autocomplete._keyManager.tabOut.pipe(ce(()=>this._overlayAttached)),this._closeKeyEventStream,this._getOutsideClickStream(),this._overlayRef?this._overlayRef.detachments().pipe(ce(()=>this._overlayAttached)):Q()).pipe(se(e=>e instanceof nh?e:null))}optionSelections=kn(()=>{let e=this.autocomplete?this.autocomplete.options:null;return e?e.changes.pipe(He(e),$e(()=>Je(...e.map(i=>i.onSelectionChange)))):this._initialized.pipe($e(()=>this.optionSelections))});get activeOption(){return this.autocomplete&&this.autocomplete._keyManager?this.autocomplete._keyManager.activeItem:null}_getOutsideClickStream(){return new Fe(e=>{let i=o=>{let a=Kn(o),s=this._formField?this._formField.getConnectedOverlayOrigin().nativeElement:null,l=this.connectedTo?this.connectedTo.elementRef.nativeElement:null;this._overlayAttached&&a!==this._element.nativeElement&&!this._hasFocus()&&(!s||!s.contains(a))&&(!l||!l.contains(a))&&this._overlayRef&&!this._overlayRef.overlayElement.contains(a)&&e.next(o)},r=[this._renderer.listen("document","click",i),this._renderer.listen("document","auxclick",i),this._renderer.listen("document","touchend",i)];return()=>{r.forEach(o=>o())}})}writeValue(e){Promise.resolve(null).then(()=>this._assignOptionValue(e))}registerOnChange(e){this._onChange=e}registerOnTouched(e){this._onTouched=e}setDisabledState(e){this._element.nativeElement.disabled=e}_handleKeydown(e){let i=e,r=i.keyCode,o=Ft(i);if(r===27&&!o&&i.preventDefault(),this._valueOnLastKeydown=this._element.nativeElement.value,this.activeOption&&r===13&&this.panelOpen&&!o)this.activeOption._selectViaInteraction(),this._resetActiveItem(),i.preventDefault();else if(this.autocomplete){let a=this.autocomplete._keyManager.activeItem,s=r===38||r===40;r===9||s&&!o&&this.panelOpen?this.autocomplete._keyManager.onKeydown(i):s&&this._canOpen()&&this._openPanelInternal(this._valueOnLastKeydown),(s||this.autocomplete._keyManager.activeItem!==a)&&(this._scrollToOption(this.autocomplete._keyManager.activeItemIndex||0),this.autocomplete.autoSelectActiveOption&&this.activeOption&&(this._pendingAutoselectedOption||(this._valueBeforeAutoSelection=this._valueOnLastKeydown),this._pendingAutoselectedOption=this.activeOption,this._assignOptionValue(this.activeOption.value)))}}_handleInput(e){let i=e.target,r=i.value;if(i.type==="number"&&(r=r==""?null:parseFloat(r)),this._previousValue!==r){if(this._previousValue=r,this._pendingAutoselectedOption=null,(!this.autocomplete||!this.autocomplete.requireSelection)&&this._onChange(r),!r)this._clearPreviousSelectedOption(null,!1);else if(this.panelOpen&&!this.autocomplete.requireSelection){let o=this.autocomplete.options?.find(a=>a.selected);if(o){let a=this._getDisplayValue(o.value);r!==a&&o.deselect(!1)}}if(this._canOpen()&&this._hasFocus()){let o=this._valueOnLastKeydown??this._element.nativeElement.value;this._valueOnLastKeydown=null,this._openPanelInternal(o)}}}_handleFocus(){this._canOpenOnNextFocus?this._canOpen()&&(this._previousValue=this._element.nativeElement.value,this._attachOverlay(this._previousValue),this._floatLabel(!0)):this._canOpenOnNextFocus=!0}_handleClick(){this._canOpen()&&!this.panelOpen&&this._openPanelInternal()}_hasFocus(){return _o()===this._element.nativeElement}_floatLabel(e=!1){this._formField&&this._formField.floatLabel==="auto"&&(e?this._formField._animateAndLockLabel():this._formField.floatLabel="always",this._manuallyFloatingLabel=!0)}_resetLabel(){this._manuallyFloatingLabel&&(this._formField&&(this._formField.floatLabel="auto"),this._manuallyFloatingLabel=!1)}_subscribeToClosingActions(){let e=new Fe(r=>{pt(()=>{r.next()},{injector:this._environmentInjector})}),i=this.autocomplete.options?.changes.pipe(Be(()=>this._positionStrategy.reapplyLastPosition()),pa(0))??Q();return Je(e,i).pipe($e(()=>this._zone.run(()=>{let r=this.panelOpen;return this._resetActiveItem(),this._updatePanelState(),this._changeDetectorRef.detectChanges(),this.panelOpen&&this._overlayRef.updatePosition(),r!==this.panelOpen&&(this.panelOpen?this._emitOpened():this.autocomplete.closed.emit()),this.panelClosingActions})),lt(1)).subscribe(r=>this._setValueAndClose(r))}_emitOpened(){this.autocomplete.opened.emit()}_destroyPanel(){this._overlayRef&&(this.closePanel(),this._overlayRef.dispose(),this._overlayRef=null)}_getDisplayValue(e){let i=this.autocomplete;return i&&i.displayWith?i.displayWith(e):e}_assignOptionValue(e){let i=this._getDisplayValue(e);e==null&&this._clearPreviousSelectedOption(null,!1),this._updateNativeInputValue(i??"")}_updateNativeInputValue(e){this._formField?this._formField._control.value=e:this._element.nativeElement.value=e,this._previousValue=e}_setValueAndClose(e){let i=this.autocomplete,r=e?e.source:this._pendingAutoselectedOption;r?(this._clearPreviousSelectedOption(r),this._assignOptionValue(r.value),this._onChange(r.value),i._emitSelectEvent(r),this._element.nativeElement.focus()):i.requireSelection&&this._element.nativeElement.value!==this._valueOnAttach&&(this._clearPreviousSelectedOption(null),this._assignOptionValue(null),this._onChange(null)),this.closePanel()}_clearPreviousSelectedOption(e,i){this.autocomplete?.options?.forEach(r=>{r!==e&&r.selected&&r.deselect(i)})}_openPanelInternal(e=this._element.nativeElement.value){if(this._attachOverlay(e),this._floatLabel(),this._trackedModal){let i=this.autocomplete.id;Zm(this._trackedModal,"aria-owns",i)}}_attachOverlay(e){this.autocomplete;let i=this._overlayRef;i?(this._positionStrategy.setOrigin(this._getConnectedElement()),i.updateSize({width:this._getPanelWidth()})):(this._portal=new Cn(this.autocomplete.template,this._viewContainerRef,{id:this._formField?.getLabelId()}),i=Nr(this._injector,this._getOverlayConfig()),this._overlayRef=i,this._viewportSubscription=this._viewportRuler.change().subscribe(()=>{this.panelOpen&&i&&i.updateSize({width:this._getPanelWidth()})}),this._handsetLandscapeSubscription=this._breakpointObserver.observe(F0.HandsetLandscape).subscribe(o=>{o.matches?this._positionStrategy.withFlexibleDimensions(!0).withGrowAfterOpen(!0).withViewportMargin(8):this._positionStrategy.withFlexibleDimensions(!1).withGrowAfterOpen(!1).withViewportMargin(0)})),i&&!i.hasAttached()&&(i.attach(this._portal),this._valueOnAttach=e,this._valueOnLastKeydown=null,this._closingActionsSubscription=this._subscribeToClosingActions());let r=this.panelOpen;this.autocomplete._isOpen=this._overlayAttached=!0,this.autocomplete._latestOpeningTrigger=this,this.autocomplete._setColor(this._formField?.color),this._updatePanelState(),this._applyModalPanelOwnership(),this.panelOpen&&r!==this.panelOpen&&this._emitOpened()}_handlePanelKeydown=e=>{(e.keyCode===27&&!Ft(e)||e.keyCode===38&&Ft(e,"altKey"))&&(this._pendingAutoselectedOption&&(this._updateNativeInputValue(this._valueBeforeAutoSelection??""),this._pendingAutoselectedOption=null),this._closeKeyEventStream.next(),this._resetActiveItem(),e.stopPropagation(),e.preventDefault())};_updatePanelState(){if(this.autocomplete._setVisibility(),this.panelOpen){let e=this._overlayRef;this._keydownSubscription||(this._keydownSubscription=e.keydownEvents().subscribe(this._handlePanelKeydown)),this._outsideClickSubscription||(this._outsideClickSubscription=e.outsidePointerEvents().subscribe())}else this._keydownSubscription?.unsubscribe(),this._outsideClickSubscription?.unsubscribe(),this._keydownSubscription=this._outsideClickSubscription=null}_getOverlayConfig(){return new Fr({positionStrategy:this._getOverlayPosition(),scrollStrategy:this._scrollStrategy(),width:this._getPanelWidth(),direction:this._dir??void 0,hasBackdrop:this._defaults?.hasBackdrop,backdropClass:this._defaults?.backdropClass||"cdk-overlay-transparent-backdrop",panelClass:this._overlayPanelClass,disableAnimations:this._animationsDisabled})}_getOverlayPosition(){let e=Fa(this._injector,this._getConnectedElement()).withFlexibleDimensions(!1).withPush(!1);return this._setStrategyPositions(e),this._positionStrategy=e,e}_setStrategyPositions(e){let i=[{originX:"start",originY:"bottom",overlayX:"start",overlayY:"top"},{originX:"end",originY:"bottom",overlayX:"end",overlayY:"top"}],r=this._aboveClass,o=[{originX:"start",originY:"top",overlayX:"start",overlayY:"bottom",panelClass:r},{originX:"end",originY:"top",overlayX:"end",overlayY:"bottom",panelClass:r}],a;this.position==="above"?a=o:this.position==="below"?a=i:a=[...i,...o],e.withPositions(a)}_getConnectedElement(){return this.connectedTo?this.connectedTo.elementRef:this._formField?this._formField.getConnectedOverlayOrigin():this._element}_getPanelWidth(){return this.autocomplete.panelWidth||this._getHostWidth()}_getHostWidth(){return this._getConnectedElement().nativeElement.getBoundingClientRect().width}_resetActiveItem(){let e=this.autocomplete;if(e.autoActiveFirstOption){let i=-1;for(let r=0;r .cdk-overlay-container [aria-modal="true"]');if(!e)return;let i=this.autocomplete.id;this._trackedModal&&sc(this._trackedModal,"aria-owns",i),Zm(e,"aria-owns",i),this._trackedModal=e}_clearFromModal(){if(this._trackedModal){let e=this.autocomplete.id;sc(this._trackedModal,"aria-owns",e),this._trackedModal=null}}static \u0275fac=function(i){return new(i||t)};static \u0275dir=F({type:t,selectors:[["input","matAutocomplete",""],["textarea","matAutocomplete",""]],hostAttrs:[1,"mat-mdc-autocomplete-trigger"],hostVars:7,hostBindings:function(i,r){i&1&&S("focusin",function(){return r._handleFocus()})("blur",function(){return r._onTouched()})("input",function(a){return r._handleInput(a)})("keydown",function(a){return r._handleKeydown(a)})("click",function(){return r._handleClick()}),i&2&&X("autocomplete",r.autocompleteAttribute)("role",r.autocompleteDisabled?null:"combobox")("aria-autocomplete",r.autocompleteDisabled?null:"list")("aria-activedescendant",r.panelOpen&&r.activeOption?r.activeOption.id:null)("aria-expanded",r.autocompleteDisabled?null:r.panelOpen.toString())("aria-controls",r.autocompleteDisabled||!r.panelOpen||r.autocomplete==null?null:r.autocomplete.id)("aria-haspopup",r.autocompleteDisabled?null:"listbox")},inputs:{autocomplete:[0,"matAutocomplete","autocomplete"],position:[0,"matAutocompletePosition","position"],connectedTo:[0,"matAutocompleteConnectedTo","connectedTo"],autocompleteAttribute:[0,"autocomplete","autocompleteAttribute"],autocompleteDisabled:[2,"matAutocompleteDisabled","autocompleteDisabled",V]},exportAs:["matAutocompleteTrigger"],features:[Ce([B_e]),Ae]})}return t})(),vw=(()=>{class t{static \u0275fac=function(i){return new(i||t)};static \u0275mod=ee({type:t});static \u0275inj=J({providers:[H_e],imports:[er,rh,we,vr,rh,we]})}return t})();var xU=()=>["HRAdmin","Manager"],z_e=()=>[5,10,25,50,100],U_e=()=>["HRAdmin"];function $_e(t,n){if(t&1){let e=Y();h(0,"button",22),S("click",function(){I(e);let r=C();return A(r.createEmployee())}),h(1,"mat-icon"),_(2,"add"),p(),_(3," Add Employee "),p()}}function W_e(t,n){if(t&1&&(h(0,"mat-option",23),_(1),p()),t&2){let e=n.$implicit;y("value",e),g(),ve(" ",e," ")}}function G_e(t,n){if(t&1&&(h(0,"mat-option",23),_(1),p()),t&2){let e=n.$implicit;y("value",e),g(),ve(" ",e," ")}}function q_e(t,n){if(t&1&&(h(0,"mat-option",23),_(1),p()),t&2){let e=n.$implicit;y("value",e),g(),ve(" ",e," ")}}function Y_e(t,n){if(t&1&&(h(0,"mat-option",23),_(1),p()),t&2){let e=n.$implicit;y("value",e),g(),ve(" ",e," ")}}function Q_e(t,n){if(t&1&&(h(0,"mat-option",23),_(1),p()),t&2){let e=n.$implicit;y("value",e),g(),ve(" ",e," ")}}function K_e(t,n){t&1&&(h(0,"div",24),k(1,"mat-spinner"),p())}function Z_e(t,n){t&1&&(h(0,"th",37),_(1,"Employee #"),p())}function X_e(t,n){if(t&1&&(h(0,"td",38),_(1),p()),t&2){let e=n.$implicit;g(),H(e.employeeNumber)}}function J_e(t,n){t&1&&(h(0,"th",37),_(1,"Name"),p())}function ebe(t,n){if(t&1&&(h(0,"td",38),_(1),p()),t&2){let e=n.$implicit,i=C(2);g(),H(i.getFullName(e))}}function tbe(t,n){t&1&&(h(0,"th",37),_(1,"Email"),p())}function ibe(t,n){if(t&1&&(h(0,"td",38),_(1),p()),t&2){let e=n.$implicit;g(),H(e.email)}}function nbe(t,n){t&1&&(h(0,"th",37),_(1,"Phone"),p())}function rbe(t,n){if(t&1&&(h(0,"td",38),_(1),p()),t&2){let e=n.$implicit;g(),H(e.phoneNumber||e.phone||"-")}}function obe(t,n){t&1&&(h(0,"th",37),_(1,"Position"),p())}function abe(t,n){if(t&1&&(h(0,"td",38),_(1),p()),t&2){let e=n.$implicit;g(),H(e.positionTitle||(e.position==null?null:e.position.positionTitle)||"-")}}function sbe(t,n){t&1&&(h(0,"th",37),_(1,"Actions"),p())}function lbe(t,n){if(t&1){let e=Y();h(0,"button",43),S("click",function(){I(e);let r=C().$implicit,o=C(2);return A(o.editEmployee(r))}),h(1,"mat-icon"),_(2,"edit"),p()()}}function cbe(t,n){if(t&1){let e=Y();h(0,"button",44),S("click",function(){I(e);let r=C().$implicit,o=C(2);return A(o.deleteEmployee(r))}),h(1,"mat-icon"),_(2,"delete"),p()()}}function dbe(t,n){if(t&1){let e=Y();h(0,"td",38)(1,"div",39)(2,"button",40),S("click",function(){let r=I(e).$implicit,o=C(2);return A(o.viewEmployee(r))}),h(3,"mat-icon"),_(4,"visibility"),p()(),R(5,lbe,3,0,"button",41)(6,cbe,3,0,"button",42),p()()}t&2&&(g(5),y("appHasRole",at(2,xU)),g(),y("appHasRole",at(3,U_e)))}function ube(t,n){t&1&&k(0,"tr",45)}function mbe(t,n){t&1&&k(0,"tr",46)}function hbe(t,n){if(t&1&&(h(0,"tr",47)(1,"td",48)(2,"div",49)(3,"mat-icon"),_(4,"info"),p(),h(5,"p"),_(6,"No employees found"),p()()()()),t&2){let e=C(2);g(),X("colspan",e.displayedColumns.length)}}function pbe(t,n){if(t&1&&(h(0,"table",25),jt(1,26),R(2,Z_e,2,0,"th",27)(3,X_e,2,1,"td",28),Lt(),jt(4,29),R(5,J_e,2,0,"th",27)(6,ebe,2,1,"td",28),Lt(),jt(7,30),R(8,tbe,2,0,"th",27)(9,ibe,2,1,"td",28),Lt(),jt(10,31),R(11,nbe,2,0,"th",27)(12,rbe,2,1,"td",28),Lt(),jt(13,32),R(14,obe,2,0,"th",27)(15,abe,2,1,"td",28),Lt(),jt(16,33),R(17,sbe,2,0,"th",27)(18,dbe,7,4,"td",28),Lt(),R(19,ube,1,0,"tr",34)(20,mbe,1,0,"tr",35)(21,hbe,7,1,"tr",36),p()),t&2){let e=C();y("dataSource",e.employees),g(19),y("matHeaderRowDef",e.displayedColumns),g(),y("matRowDefColumns",e.displayedColumns),g(),y("ngIf",e.employees.length===0)}}var CU=(()=>{let n=class n{constructor(){this.employeeService=u(ap),this.authService=u(Tt),this.router=u(Re),this.fb=u(eo),this.snackBar=u(di),this.dialog=u(En),this.employees=[],this.loading=!1,this.totalCount=0,this.pageSize=10,this.pageNumber=1,this.destroy$=new z,this.displayedColumns=["employeeNumber","name","email","phone","positionTitle","actions"]}ngOnInit(){this.initSearchForm(),this.setupAutocomplete(),this.setupAutoSubmit(),this.loadEmployees()}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete()}initSearchForm(){this.searchForm=this.fb.group({FirstName:[""],LastName:[""],Email:[""],EmployeeNumber:[""],PositionTitle:[""]})}setupAutocomplete(){this.filteredEmployeeNumbers$=this.searchForm.get("EmployeeNumber").valueChanges.pipe(He(""),Rt(300),Sn(),$e(i=>this.getAutocompleteOptions("EmployeeNumber",i))),this.filteredFirstNames$=this.searchForm.get("FirstName").valueChanges.pipe(He(""),Rt(300),Sn(),$e(i=>this.getAutocompleteOptions("FirstName",i))),this.filteredLastNames$=this.searchForm.get("LastName").valueChanges.pipe(He(""),Rt(300),Sn(),$e(i=>this.getAutocompleteOptions("LastName",i))),this.filteredEmails$=this.searchForm.get("Email").valueChanges.pipe(He(""),Rt(300),Sn(),$e(i=>this.getAutocompleteOptions("Email",i))),this.filteredPositionTitles$=this.searchForm.get("PositionTitle").valueChanges.pipe(He(""),Rt(300),Sn(),$e(i=>this.getAutocompleteOptions("PositionTitle",i)))}setupAutoSubmit(){this.searchForm.valueChanges.pipe(Rt(500),Sn((i,r)=>JSON.stringify(i)===JSON.stringify(r)),Te(this.destroy$)).subscribe(()=>{this.pageNumber=1,this.loadEmployees()})}getAutocompleteOptions(i,r){if(!r||r.length<2)return Q([]);let o={PageNumber:1,PageSize:10,[i]:r};return this.employeeService.getAllPaged(o).pipe(se(a=>{let s={EmployeeNumber:c=>c.employeeNumber,FirstName:c=>c.firstName,LastName:c=>c.lastName,Email:c=>c.email,PositionTitle:c=>c.positionTitle||""};return a.value.map(c=>s[i](c)).filter((c,d,m)=>c&&m.indexOf(c)===d)}),fi(()=>Q([])))}loadEmployees(){this.loading=!0;let i=M({PageNumber:this.pageNumber,PageSize:this.pageSize},this.searchForm.value);Object.keys(i).forEach(r=>{(i[r]===""||i[r]===null||i[r]===void 0)&&delete i[r]}),this.employeeService.getAllPaged(i).subscribe({next:r=>{this.employees=r.value,this.totalCount=r.recordsTotal,this.loading=!1},error:r=>{console.error("Error loading employees:",r),this.loading=!1}})}onClearSearch(){this.searchForm.reset(),this.pageNumber=1,this.paginator&&(this.paginator.pageIndex=0),this.loadEmployees()}onPageChange(i){this.pageSize=i.pageSize,this.pageNumber=i.pageIndex+1,this.loadEmployees()}getFullName(i){return[i.prefix,i.firstName,i.middleName,i.lastName].filter(Boolean).join(" ")}viewEmployee(i){this.router.navigate(["/employees",i.id])}editEmployee(i){this.router.navigate(["/employees","edit",i.id])}deleteEmployee(i){let r=this.getFullName(i);this.dialog.open(Er,{width:"400px",data:{title:"Delete Employee",message:`Are you sure you want to delete ${r}? This action cannot be undone.`,confirmText:"Delete",cancelText:"Cancel"}}).afterClosed().subscribe(a=>{a&&this.employeeService.delete(i.id).subscribe({next:()=>{this.snackBar.open(`${r} has been deleted.`,"Close",{duration:3e3,horizontalPosition:"end",verticalPosition:"top"}),this.loadEmployees()},error:s=>{console.error("Error deleting employee:",s),this.snackBar.open("Failed to delete employee. Please try again.","Close",{duration:4e3,horizontalPosition:"end",verticalPosition:"top"})}})})}createEmployee(){this.router.navigate(["/employees","create"])}canEdit(){return this.authService.isHRAdmin()||this.authService.isManager()}canDelete(){return this.authService.isHRAdmin()}canCreate(){return this.authService.isHRAdmin()||this.authService.isManager()}};n.\u0275fac=function(r){return new(r||n)},n.\u0275cmp=E({type:n,selectors:[["app-employee-list"]],viewQuery:function(r,o){if(r&1&&ie(ir,5),r&2){let a;B(a=j())&&(o.paginator=a.first)}},decls:59,vars:30,consts:[["autoEmployeeNumber","matAutocomplete"],["autoFirstName","matAutocomplete"],["autoLastName","matAutocomplete"],["autoEmail","matAutocomplete"],["autoPositionTitle","matAutocomplete"],[1,"flex-spacer"],["mat-raised-button","","color","primary",3,"click",4,"appHasRole"],[1,"search-form",3,"formGroup"],[1,"search-row"],["appearance","outline"],["matInput","","formControlName","EmployeeNumber",3,"matAutocomplete"],[3,"value",4,"ngFor","ngForOf"],["matInput","","formControlName","FirstName",3,"matAutocomplete"],["matInput","","formControlName","LastName",3,"matAutocomplete"],["matInput","","formControlName","Email",3,"matAutocomplete"],["matInput","","formControlName","PositionTitle",3,"matAutocomplete"],[1,"search-buttons"],["mat-raised-button","","color","accent","type","button",3,"click"],[1,"table-container"],["class","loading-spinner",4,"ngIf"],["mat-table","","class","employee-table",3,"dataSource",4,"ngIf"],["showFirstLastButtons","",3,"page","length","pageSize","pageSizeOptions","pageIndex"],["mat-raised-button","","color","primary",3,"click"],[3,"value"],[1,"loading-spinner"],["mat-table","",1,"employee-table",3,"dataSource"],["matColumnDef","employeeNumber"],["mat-header-cell","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","name"],["matColumnDef","email"],["matColumnDef","phone"],["matColumnDef","positionTitle"],["matColumnDef","actions"],["mat-header-row","",4,"matHeaderRowDef"],["mat-row","",4,"matRowDef","matRowDefColumns"],["class","mat-row",4,"ngIf"],["mat-header-cell",""],["mat-cell",""],[1,"action-buttons"],["mat-icon-button","","color","primary","matTooltip","View Details",3,"click"],["mat-icon-button","","color","accent","matTooltip","Edit Employee",3,"click",4,"appHasRole"],["mat-icon-button","","color","warn","matTooltip","Delete Employee",3,"click",4,"appHasRole"],["mat-icon-button","","color","accent","matTooltip","Edit Employee",3,"click"],["mat-icon-button","","color","warn","matTooltip","Delete Employee",3,"click"],["mat-header-row",""],["mat-row",""],[1,"mat-row"],[1,"mat-cell"],[1,"no-data"]],template:function(r,o){if(r&1){let a=Y();k(0,"page-header"),h(1,"mat-card")(2,"mat-card-header")(3,"mat-card-title"),_(4,"Employee Directory"),p(),k(5,"div",5),R(6,$_e,4,0,"button",6),p(),h(7,"mat-card-content")(8,"form",7)(9,"div",8)(10,"mat-form-field",9)(11,"mat-label"),_(12,"Employee Number"),p(),k(13,"input",10),h(14,"mat-autocomplete",null,0),R(16,W_e,2,2,"mat-option",11),me(17,"async"),p()(),h(18,"mat-form-field",9)(19,"mat-label"),_(20,"First Name"),p(),k(21,"input",12),h(22,"mat-autocomplete",null,1),R(24,G_e,2,2,"mat-option",11),me(25,"async"),p()(),h(26,"mat-form-field",9)(27,"mat-label"),_(28,"Last Name"),p(),k(29,"input",13),h(30,"mat-autocomplete",null,2),R(32,q_e,2,2,"mat-option",11),me(33,"async"),p()(),h(34,"mat-form-field",9)(35,"mat-label"),_(36,"Email"),p(),k(37,"input",14),h(38,"mat-autocomplete",null,3),R(40,Y_e,2,2,"mat-option",11),me(41,"async"),p()(),h(42,"mat-form-field",9)(43,"mat-label"),_(44,"Position Title"),p(),k(45,"input",15),h(46,"mat-autocomplete",null,4),R(48,Q_e,2,2,"mat-option",11),me(49,"async"),p()(),h(50,"div",16)(51,"button",17),S("click",function(){return I(a),A(o.onClearSearch())}),h(52,"mat-icon"),_(53,"clear"),p(),_(54," Clear Filters "),p()()()(),h(55,"div",18),R(56,K_e,2,0,"div",19)(57,pbe,22,4,"table",20),p(),h(58,"mat-paginator",21),S("page",function(l){return I(a),A(o.onPageChange(l))}),p()()()}if(r&2){let a=Se(15),s=Se(23),l=Se(31),c=Se(39),d=Se(47);g(6),y("appHasRole",at(28,xU)),g(2),y("formGroup",o.searchForm),g(5),y("matAutocomplete",a),g(3),y("ngForOf",Oe(17,18,o.filteredEmployeeNumbers$)),g(5),y("matAutocomplete",s),g(3),y("ngForOf",Oe(25,20,o.filteredFirstNames$)),g(5),y("matAutocomplete",l),g(3),y("ngForOf",Oe(33,22,o.filteredLastNames$)),g(5),y("matAutocomplete",c),g(3),y("ngForOf",Oe(41,24,o.filteredEmails$)),g(5),y("matAutocomplete",d),g(3),y("ngForOf",Oe(49,26,o.filteredPositionTitles$)),g(8),y("ngIf",o.loading),g(),y("ngIf",!o.loading),g(),y("length",o.totalCount)("pageSize",o.pageSize)("pageSizeOptions",at(29,z_e))("pageIndex",o.pageNumber-1)}},dependencies:[gt,qr,li,zn,Jr,Qi,ei,Xr,Ki,Lr,ze,kt,ti,$t,zt,Ut,Jt,Xt,ot,mt,rr,hn,Oi,sn,$i,Zc,Hc,Uc,qc,$c,zc,Yc,Wc,Gc,Qc,Kc,_c,ir,Si,ki,Br,Eo,vw,bw,xn,y_,pi,Mn,ni,Un,rn],styles:["mat-card[_ngcontent-%COMP%]{margin:16px}mat-card-header[_ngcontent-%COMP%]{display:flex;align-items:center;margin-bottom:16px;padding:16px;border-bottom:1px solid rgba(0,0,0,.12)}mat-card-header[_ngcontent-%COMP%] mat-card-title[_ngcontent-%COMP%]{font-size:20px;font-weight:500;margin:0}mat-card-header[_ngcontent-%COMP%] .flex-spacer[_ngcontent-%COMP%]{flex:1 1 auto}mat-card-header[_ngcontent-%COMP%] button[_ngcontent-%COMP%] mat-icon[_ngcontent-%COMP%]{margin-right:4px}mat-card-content[_ngcontent-%COMP%]{padding:0}.search-form[_ngcontent-%COMP%]{padding:16px;background-color:#f5f5f5;margin-bottom:0}.search-form[_ngcontent-%COMP%] .search-row[_ngcontent-%COMP%]{display:grid;grid-template-columns:repeat(auto-fit,minmax(180px,1fr));gap:16px;align-items:start}.search-form[_ngcontent-%COMP%] .search-row[_ngcontent-%COMP%] mat-form-field[_ngcontent-%COMP%]{width:100%}.search-form[_ngcontent-%COMP%] .search-row[_ngcontent-%COMP%] .search-buttons[_ngcontent-%COMP%]{display:flex;gap:8px;align-items:center}.search-form[_ngcontent-%COMP%] .search-row[_ngcontent-%COMP%] .search-buttons[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{white-space:nowrap}.search-form[_ngcontent-%COMP%] .search-row[_ngcontent-%COMP%] .search-buttons[_ngcontent-%COMP%] button[_ngcontent-%COMP%] mat-icon[_ngcontent-%COMP%]{margin-right:4px}.table-container[_ngcontent-%COMP%]{position:relative;min-height:300px;overflow-x:auto}.loading-spinner[_ngcontent-%COMP%]{display:flex;justify-content:center;align-items:center;min-height:300px}.employee-table[_ngcontent-%COMP%]{width:100%}.employee-table[_ngcontent-%COMP%] th[_ngcontent-%COMP%]{font-weight:600;font-size:14px;color:#000000de}.employee-table[_ngcontent-%COMP%] td[_ngcontent-%COMP%]{font-size:14px;color:#000000de}.employee-table[_ngcontent-%COMP%] .mat-column-employeeNumber[_ngcontent-%COMP%]{width:120px}.employee-table[_ngcontent-%COMP%] .mat-column-name[_ngcontent-%COMP%], .employee-table[_ngcontent-%COMP%] .mat-column-email[_ngcontent-%COMP%]{min-width:200px}.employee-table[_ngcontent-%COMP%] .mat-column-phone[_ngcontent-%COMP%]{width:150px}.employee-table[_ngcontent-%COMP%] .mat-column-positionTitle[_ngcontent-%COMP%]{min-width:200px}.employee-table[_ngcontent-%COMP%] .mat-column-actions[_ngcontent-%COMP%]{width:120px;text-align:right}.employee-table[_ngcontent-%COMP%] .mat-column-actions[_ngcontent-%COMP%] .action-buttons[_ngcontent-%COMP%]{display:flex;justify-content:flex-end;align-items:center;gap:4px}.no-data[_ngcontent-%COMP%]{display:flex;flex-direction:column;align-items:center;justify-content:center;padding:48px 16px;color:#0000008a}.no-data[_ngcontent-%COMP%] mat-icon[_ngcontent-%COMP%]{font-size:48px;width:48px;height:48px;margin-bottom:16px}.no-data[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{margin:0;font-size:16px}mat-paginator[_ngcontent-%COMP%]{border-top:1px solid rgba(0,0,0,.12)}"]});let t=n;return t})();var Ou=(function(t){return t[t.Male=0]="Male",t[t.Female=1]="Female",t})(Ou||{});var fbe=()=>["HRAdmin","Manager"],gbe=()=>["HRAdmin"];function _be(t,n){t&1&&(h(0,"div",2),k(1,"mat-spinner"),p())}function bbe(t,n){if(t&1){let e=Y();h(0,"button",14),S("click",function(){I(e);let r=C(2);return A(r.editEmployee())}),h(1,"mat-icon"),_(2,"edit"),p(),_(3," Edit "),p()}}function vbe(t,n){if(t&1){let e=Y();h(0,"button",15),S("click",function(){I(e);let r=C(2);return A(r.deleteEmployee())}),h(1,"mat-icon"),_(2,"delete"),p(),_(3," Delete "),p()}}function ybe(t,n){if(t&1&&(h(0,"mat-list-item")(1,"span",10),_(2,"Address"),p(),h(3,"span",11),_(4),p()()),t&2){let e=C(2);g(4),H(e.employee.address)}}function xbe(t,n){if(t&1&&(h(0,"mat-list-item")(1,"span",10),_(2,"Hire Date"),p(),h(3,"span",11),_(4),me(5,"date"),p()()),t&2){let e=C(2);g(4),H(Oe(5,1,e.employee.hireDate))}}function Cbe(t,n){if(t&1&&(h(0,"mat-list-item")(1,"span",10),_(2,"Salary Range"),p(),h(3,"span",11),_(4),me(5,"number"),me(6,"number"),p()()),t&2){let e=C(2);g(4),Cm(" ",e.employee.salaryRange.name," ($",Oe(5,3,e.employee.salaryRange.minSalary)," - $",Oe(6,5,e.employee.salaryRange.maxSalary),") ")}}function wbe(t,n){if(t&1&&(h(0,"mat-list-item")(1,"span",10),_(2,"Created"),p(),h(3,"span",11),_(4),me(5,"date"),p()()),t&2){let e=C(3);g(4),H(Ni(5,1,e.employee.createdAt,"medium"))}}function Dbe(t,n){if(t&1&&(h(0,"mat-list-item")(1,"span",10),_(2,"Last Modified"),p(),h(3,"span",11),_(4),me(5,"date"),p()()),t&2){let e=C(3);g(4),H(Ni(5,1,e.employee.lastModifiedAt,"medium"))}}function Ebe(t,n){if(t&1&&(h(0,"div",9)(1,"h3"),_(2,"Audit Information"),p(),k(3,"mat-divider"),h(4,"mat-list"),R(5,wbe,6,4,"mat-list-item",1)(6,Dbe,6,4,"mat-list-item",1),p()()),t&2){let e=C(2);g(5),y("ngIf",e.employee.createdAt),g(),y("ngIf",e.employee.lastModifiedAt)}}function Mbe(t,n){if(t&1){let e=Y();h(0,"mat-card")(1,"mat-card-header")(2,"mat-card-title"),_(3),p(),k(4,"div",3),h(5,"div",4)(6,"button",5),S("click",function(){I(e);let r=C();return A(r.goBack())}),h(7,"mat-icon"),_(8,"arrow_back"),p(),_(9," Back to List "),p(),R(10,bbe,4,0,"button",6)(11,vbe,4,0,"button",7),p()(),h(12,"mat-card-content")(13,"div",8)(14,"div",9)(15,"h3"),_(16,"Personal Information"),p(),k(17,"mat-divider"),h(18,"mat-list")(19,"mat-list-item")(20,"span",10),_(21,"Employee Number"),p(),h(22,"span",11),_(23),p()(),h(24,"mat-list-item")(25,"span",10),_(26,"Full Name"),p(),h(27,"span",11),_(28),p()(),h(29,"mat-list-item")(30,"span",10),_(31,"Date of Birth"),p(),h(32,"span",11),_(33),me(34,"date"),p()(),h(35,"mat-list-item")(36,"span",10),_(37,"Gender"),p(),h(38,"span",11),_(39),p()()()(),h(40,"div",9)(41,"h3"),_(42,"Contact Information"),p(),k(43,"mat-divider"),h(44,"mat-list")(45,"mat-list-item")(46,"span",10),_(47,"Email"),p(),h(48,"span",11)(49,"a",12),_(50),p()()(),h(51,"mat-list-item")(52,"span",10),_(53,"Phone Number"),p(),h(54,"span",11)(55,"a",12),_(56),p()()(),R(57,ybe,5,1,"mat-list-item",1),p()(),h(58,"div",9)(59,"h3"),_(60,"Employment Information"),p(),k(61,"mat-divider"),h(62,"mat-list"),R(63,xbe,6,3,"mat-list-item",1),h(64,"mat-list-item")(65,"span",10),_(66,"Salary"),p(),h(67,"span",11),_(68),me(69,"currency"),p()(),h(70,"mat-list-item")(71,"span",10),_(72,"Department"),p(),h(73,"span",11),_(74),p()(),h(75,"mat-list-item")(76,"span",10),_(77,"Position"),p(),h(78,"span",11),_(79),p()(),R(80,Cbe,7,7,"mat-list-item",1),p()(),R(81,Ebe,7,2,"div",13),p()()()}if(t&2){let e=C();g(3),H(e.getFullName()),g(7),y("appHasRole",at(22,fbe)),g(),y("appHasRole",at(23,gbe)),g(12),H(e.employee.employeeNumber),g(5),H(e.getFullName()),g(5),H(Oe(34,18,e.employee.dateOfBirth||e.employee.birthday)),g(6),H(e.getGenderLabel(e.employee.gender)),g(10),y("href","mailto:"+e.employee.email,$r),g(),H(e.employee.email),g(5),y("href","tel:"+(e.employee.phoneNumber||e.employee.phone),$r),g(),H(e.employee.phoneNumber||e.employee.phone),g(),y("ngIf",e.employee.address),g(6),y("ngIf",e.employee.hireDate),g(5),H(Oe(69,20,e.employee.salary)),g(6),H(e.employee.departmentName||(e.employee.department==null?null:e.employee.department.name)||"N/A"),g(5),H(e.employee.positionTitle||(e.employee.position==null?null:e.employee.position.positionTitle)||"N/A"),g(),y("ngIf",e.employee.salaryRange),g(),y("ngIf",e.employee.createdAt||e.employee.lastModifiedAt)}}function kbe(t,n){if(t&1){let e=Y();h(0,"mat-card")(1,"mat-card-content")(2,"div",16)(3,"mat-icon"),_(4,"error"),p(),h(5,"p"),_(6,"Employee not found"),p(),h(7,"button",17),S("click",function(){I(e);let r=C();return A(r.goBack())}),_(8," Go Back "),p()()()()}}var wU=(()=>{let n=class n{constructor(){this.employeeService=u(ap),this.authService=u(Tt),this.router=u(Re),this.route=u(wi),this.snackBar=u(di),this.dialog=u(En),this.loading=!1}ngOnInit(){let i=this.route.snapshot.paramMap.get("id");i&&this.loadEmployee(i)}loadEmployee(i){this.loading=!0,this.employeeService.getById(i).subscribe({next:r=>{this.employee=r,this.loading=!1},error:r=>{console.error("Error loading employee:",r),this.loading=!1,this.router.navigate(["/employees"])}})}getFullName(){return this.employee?[this.employee.prefix,this.employee.firstName,this.employee.middleName,this.employee.lastName,this.employee.suffix].filter(Boolean).join(" "):""}getGenderLabel(i){return i===Ou.Male?"Male":"Female"}editEmployee(){this.employee&&this.router.navigate(["/employees","edit",this.employee.id])}deleteEmployee(){if(!this.employee)return;let i=this.getFullName();this.dialog.open(Er,{width:"400px",data:{title:"Delete Employee",message:`Are you sure you want to delete ${i}? This action cannot be undone.`,confirmText:"Delete",cancelText:"Cancel"}}).afterClosed().subscribe(o=>{o&&this.employeeService.delete(this.employee.id).subscribe({next:()=>{let a=this.snackBar.open(`${i} has been deleted.`,"Close",{duration:3e3,horizontalPosition:"end",verticalPosition:"top"});a.afterDismissed().subscribe(()=>this.router.navigate(["/employees"])),a.onAction().subscribe(()=>this.router.navigate(["/employees"]))},error:a=>{console.error("Error deleting employee:",a),this.snackBar.open("Failed to delete employee. Please try again.","Close",{duration:4e3,horizontalPosition:"end",verticalPosition:"top"})}})})}goBack(){this.router.navigate(["/employees"])}canEdit(){return this.authService.isHRAdmin()||this.authService.isManager()}canDelete(){return this.authService.isHRAdmin()}};n.\u0275fac=function(r){return new(r||n)},n.\u0275cmp=E({type:n,selectors:[["app-employee-detail"]],decls:4,vars:3,consts:[["class","loading-spinner",4,"ngIf"],[4,"ngIf"],[1,"loading-spinner"],[1,"flex-spacer"],[1,"header-actions"],["mat-stroked-button","",3,"click"],["mat-raised-button","","color","accent",3,"click",4,"appHasRole"],["mat-raised-button","","color","warn",3,"click",4,"appHasRole"],[1,"detail-container"],[1,"detail-section"],["matListItemTitle",""],["matListItemLine",""],[3,"href"],["class","detail-section",4,"ngIf"],["mat-raised-button","","color","accent",3,"click"],["mat-raised-button","","color","warn",3,"click"],[1,"no-data"],["mat-raised-button","","color","primary",3,"click"]],template:function(r,o){r&1&&(k(0,"page-header"),R(1,_be,2,0,"div",0)(2,Mbe,82,24,"mat-card",1)(3,kbe,9,0,"mat-card",1)),r&2&&(g(),y("ngIf",o.loading),g(),y("ngIf",!o.loading&&o.employee),g(),y("ngIf",!o.loading&&!o.employee))},dependencies:[gt,li,ze,kt,$t,zt,Ut,Jt,Xt,ot,mt,Si,ki,sa,Ha,ca,Fs,la,Tu,Dl,pi,Mn,ni,Un,ff,il,Sa],styles:[".loading-spinner[_ngcontent-%COMP%]{display:flex;justify-content:center;align-items:center;min-height:400px}mat-card[_ngcontent-%COMP%]{margin:16px;max-width:1200px}mat-card-header[_ngcontent-%COMP%]{display:flex;align-items:center;padding:16px;border-bottom:1px solid rgba(0,0,0,.12)}mat-card-header[_ngcontent-%COMP%] mat-card-title[_ngcontent-%COMP%]{font-size:24px;font-weight:500;margin:0}mat-card-header[_ngcontent-%COMP%] .flex-spacer[_ngcontent-%COMP%]{flex:1 1 auto}mat-card-header[_ngcontent-%COMP%] .header-actions[_ngcontent-%COMP%]{display:flex;gap:12px}mat-card-header[_ngcontent-%COMP%] .header-actions[_ngcontent-%COMP%] button[_ngcontent-%COMP%] mat-icon[_ngcontent-%COMP%]{margin-right:4px}mat-card-content[_ngcontent-%COMP%]{padding:24px}.detail-container[_ngcontent-%COMP%]{display:grid;grid-template-columns:1fr 1fr;gap:24px}@media (max-width: 768px){.detail-container[_ngcontent-%COMP%]{grid-template-columns:1fr}}.detail-section[_ngcontent-%COMP%] h3[_ngcontent-%COMP%]{font-size:16px;font-weight:500;margin:0 0 8px;color:#000000de}.detail-section[_ngcontent-%COMP%] mat-divider[_ngcontent-%COMP%]{margin-bottom:16px}.detail-section[_ngcontent-%COMP%] mat-list[_ngcontent-%COMP%]{padding:0}.detail-section[_ngcontent-%COMP%] mat-list-item[_ngcontent-%COMP%]{height:auto;min-height:48px;padding:8px 0}.detail-section[_ngcontent-%COMP%] mat-list-item[_ngcontent-%COMP%] span[matListItemTitle][_ngcontent-%COMP%]{font-weight:500;color:#0009;font-size:12px;text-transform:uppercase;letter-spacing:.5px}.detail-section[_ngcontent-%COMP%] mat-list-item[_ngcontent-%COMP%] span[matListItemLine][_ngcontent-%COMP%]{font-size:14px;color:#000000de;margin-top:4px;white-space:normal;word-break:break-word}.detail-section[_ngcontent-%COMP%] mat-list-item[_ngcontent-%COMP%] span[matListItemLine][_ngcontent-%COMP%] a[_ngcontent-%COMP%]{color:#1976d2;text-decoration:none}.detail-section[_ngcontent-%COMP%] mat-list-item[_ngcontent-%COMP%] span[matListItemLine][_ngcontent-%COMP%] a[_ngcontent-%COMP%]:hover{text-decoration:underline}.no-data[_ngcontent-%COMP%]{display:flex;flex-direction:column;align-items:center;justify-content:center;padding:48px 16px;color:#0000008a}.no-data[_ngcontent-%COMP%] mat-icon[_ngcontent-%COMP%]{font-size:64px;width:64px;height:64px;margin-bottom:16px;color:#f44336}.no-data[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{margin:0 0 24px;font-size:18px}"]});let t=n;return t})();var Tbe=["mat-calendar-body",""];function Ibe(t,n){return this._trackRow(n)}var IU=(t,n)=>n.id;function Abe(t,n){if(t&1&&(h(0,"tr",0)(1,"td",3),_(2),p()()),t&2){let e=C();g(),Dt("padding-top",e._cellPadding)("padding-bottom",e._cellPadding),X("colspan",e.numCols),g(),ve(" ",e.label," ")}}function Obe(t,n){if(t&1&&(h(0,"td",3),_(1),p()),t&2){let e=C(2);Dt("padding-top",e._cellPadding)("padding-bottom",e._cellPadding),X("colspan",e._firstRowOffset),g(),ve(" ",e._firstRowOffset>=e.labelMinRequiredCells?e.label:""," ")}}function Rbe(t,n){if(t&1){let e=Y();h(0,"td",6)(1,"button",7),S("click",function(r){let o=I(e).$implicit,a=C(2);return A(a._cellClicked(o,r))})("focus",function(r){let o=I(e).$implicit,a=C(2);return A(a._emitActiveDateChange(o,r))}),h(2,"span",8),_(3),p(),k(4,"span",9),p()()}if(t&2){let e=n.$implicit,i=n.$index,r=C().$index,o=C();Dt("width",o._cellWidth)("padding-top",o._cellPadding)("padding-bottom",o._cellPadding),X("data-mat-row",r)("data-mat-col",i),g(),G("mat-calendar-body-disabled",!e.enabled)("mat-calendar-body-active",o._isActiveCell(r,i))("mat-calendar-body-range-start",o._isRangeStart(e.compareValue))("mat-calendar-body-range-end",o._isRangeEnd(e.compareValue))("mat-calendar-body-in-range",o._isInRange(e.compareValue))("mat-calendar-body-comparison-bridge-start",o._isComparisonBridgeStart(e.compareValue,r,i))("mat-calendar-body-comparison-bridge-end",o._isComparisonBridgeEnd(e.compareValue,r,i))("mat-calendar-body-comparison-start",o._isComparisonStart(e.compareValue))("mat-calendar-body-comparison-end",o._isComparisonEnd(e.compareValue))("mat-calendar-body-in-comparison-range",o._isInComparisonRange(e.compareValue))("mat-calendar-body-preview-start",o._isPreviewStart(e.compareValue))("mat-calendar-body-preview-end",o._isPreviewEnd(e.compareValue))("mat-calendar-body-in-preview",o._isInPreview(e.compareValue)),y("ngClass",e.cssClasses)("tabindex",o._isActiveCell(r,i)?0:-1),X("aria-label",e.ariaLabel)("aria-disabled",!e.enabled||null)("aria-pressed",o._isSelected(e.compareValue))("aria-current",o.todayValue===e.compareValue?"date":null)("aria-describedby",o._getDescribedby(e.compareValue)),g(),G("mat-calendar-body-selected",o._isSelected(e.compareValue))("mat-calendar-body-comparison-identical",o._isComparisonIdentical(e.compareValue))("mat-calendar-body-today",o.todayValue===e.compareValue),g(),ve(" ",e.displayValue," ")}}function Pbe(t,n){if(t&1&&(h(0,"tr",1),N(1,Obe,2,6,"td",4),xt(2,Rbe,5,48,"td",5,IU),p()),t&2){let e=n.$implicit,i=n.$index,r=C();g(),L(i===0&&r._firstRowOffset?1:-1),g(),Ct(e)}}function Fbe(t,n){if(t&1&&(h(0,"th",2)(1,"span",6),_(2),p(),h(3,"span",3),_(4),p()()),t&2){let e=n.$implicit;g(2),H(e.long),g(2),H(e.narrow)}}var Nbe=["*"];function Lbe(t,n){}function Vbe(t,n){if(t&1){let e=Y();h(0,"mat-month-view",4),Uo("activeDateChange",function(r){I(e);let o=C();return Ca(o.activeDate,r)||(o.activeDate=r),A(r)}),S("_userSelection",function(r){I(e);let o=C();return A(o._dateSelected(r))})("dragStarted",function(r){I(e);let o=C();return A(o._dragStarted(r))})("dragEnded",function(r){I(e);let o=C();return A(o._dragEnded(r))}),p()}if(t&2){let e=C();zo("activeDate",e.activeDate),y("selected",e.selected)("dateFilter",e.dateFilter)("maxDate",e.maxDate)("minDate",e.minDate)("dateClass",e.dateClass)("comparisonStart",e.comparisonStart)("comparisonEnd",e.comparisonEnd)("startDateAccessibleName",e.startDateAccessibleName)("endDateAccessibleName",e.endDateAccessibleName)("activeDrag",e._activeDrag)}}function Bbe(t,n){if(t&1){let e=Y();h(0,"mat-year-view",5),Uo("activeDateChange",function(r){I(e);let o=C();return Ca(o.activeDate,r)||(o.activeDate=r),A(r)}),S("monthSelected",function(r){I(e);let o=C();return A(o._monthSelectedInYearView(r))})("selectedChange",function(r){I(e);let o=C();return A(o._goToDateInView(r,"month"))}),p()}if(t&2){let e=C();zo("activeDate",e.activeDate),y("selected",e.selected)("dateFilter",e.dateFilter)("maxDate",e.maxDate)("minDate",e.minDate)("dateClass",e.dateClass)}}function jbe(t,n){if(t&1){let e=Y();h(0,"mat-multi-year-view",6),Uo("activeDateChange",function(r){I(e);let o=C();return Ca(o.activeDate,r)||(o.activeDate=r),A(r)}),S("yearSelected",function(r){I(e);let o=C();return A(o._yearSelectedInMultiYearView(r))})("selectedChange",function(r){I(e);let o=C();return A(o._goToDateInView(r,"year"))}),p()}if(t&2){let e=C();zo("activeDate",e.activeDate),y("selected",e.selected)("dateFilter",e.dateFilter)("maxDate",e.maxDate)("minDate",e.minDate)("dateClass",e.dateClass)}}function Hbe(t,n){}var zbe=["button"],Ube=[[["","matDatepickerToggleIcon",""]]],$be=["[matDatepickerToggleIcon]"];function Wbe(t,n){t&1&&(Gt(),h(0,"svg",2),k(1,"path",3),p())}var dp=(()=>{class t{changes=new z;calendarLabel="Calendar";openCalendarLabel="Open calendar";closeCalendarLabel="Close calendar";prevMonthLabel="Previous month";nextMonthLabel="Next month";prevYearLabel="Previous year";nextYearLabel="Next year";prevMultiYearLabel="Previous 24 years";nextMultiYearLabel="Next 24 years";switchToMonthViewLabel="Choose date";switchToMultiYearViewLabel="Choose month and year";startDateLabel="Start date";endDateLabel="End date";comparisonDateLabel="Comparison range";formatYearRange(e,i){return`${e} \u2013 ${i}`}formatYearRangeLabel(e,i){return`${e} to ${i}`}static \u0275fac=function(i){return new(i||t)};static \u0275prov=O({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),Gbe=0,C_=class{value;displayValue;ariaLabel;enabled;cssClasses;compareValue;rawValue;id=Gbe++;constructor(n,e,i,r,o={},a=n,s){this.value=n,this.displayValue=e,this.ariaLabel=i,this.enabled=r,this.cssClasses=o,this.compareValue=a,this.rawValue=s}},qbe={passive:!1,capture:!0},xw={passive:!0,capture:!0},DU={passive:!0},cp=(()=>{class t{_elementRef=u(q);_ngZone=u(ae);_platform=u(qe);_intl=u(dp);_eventCleanups;_skipNextFocus;_focusActiveCellAfterViewChecked=!1;label;rows;todayValue;startValue;endValue;labelMinRequiredCells;numCols=7;activeCell=0;ngAfterViewChecked(){this._focusActiveCellAfterViewChecked&&(this._focusActiveCell(),this._focusActiveCellAfterViewChecked=!1)}isRange=!1;cellAspectRatio=1;comparisonStart;comparisonEnd;previewStart=null;previewEnd=null;startDateAccessibleName;endDateAccessibleName;selectedValueChange=new U;previewChange=new U;activeDateChange=new U;dragStarted=new U;dragEnded=new U;_firstRowOffset;_cellPadding;_cellWidth;_startDateLabelId;_endDateLabelId;_comparisonStartDateLabelId;_comparisonEndDateLabelId;_didDragSinceMouseDown=!1;_injector=u(de);comparisonDateAccessibleName=this._intl.comparisonDateLabel;_trackRow=e=>e;constructor(){let e=u(je),i=u(Ze);this._startDateLabelId=i.getId("mat-calendar-body-start-"),this._endDateLabelId=i.getId("mat-calendar-body-end-"),this._comparisonStartDateLabelId=i.getId("mat-calendar-body-comparison-start-"),this._comparisonEndDateLabelId=i.getId("mat-calendar-body-comparison-end-"),u(ut).load(Di),this._ngZone.runOutsideAngular(()=>{let r=this._elementRef.nativeElement,o=[e.listen(r,"touchmove",this._touchmoveHandler,qbe),e.listen(r,"mouseenter",this._enterHandler,xw),e.listen(r,"focus",this._enterHandler,xw),e.listen(r,"mouseleave",this._leaveHandler,xw),e.listen(r,"blur",this._leaveHandler,xw),e.listen(r,"mousedown",this._mousedownHandler,DU),e.listen(r,"touchstart",this._mousedownHandler,DU)];this._platform.isBrowser&&o.push(e.listen("window","mouseup",this._mouseupHandler),e.listen("window","touchend",this._touchendHandler)),this._eventCleanups=o})}_cellClicked(e,i){this._didDragSinceMouseDown||e.enabled&&this.selectedValueChange.emit({value:e.value,event:i})}_emitActiveDateChange(e,i){e.enabled&&this.activeDateChange.emit({value:e.value,event:i})}_isSelected(e){return this.startValue===e||this.endValue===e}ngOnChanges(e){let i=e.numCols,{rows:r,numCols:o}=this;(e.rows||i)&&(this._firstRowOffset=r&&r.length&&r[0].length?o-r[0].length:0),(e.cellAspectRatio||i||!this._cellPadding)&&(this._cellPadding=`${50*this.cellAspectRatio/o}%`),(i||!this._cellWidth)&&(this._cellWidth=`${100/o}%`)}ngOnDestroy(){this._eventCleanups.forEach(e=>e())}_isActiveCell(e,i){let r=e*this.numCols+i;return e&&(r-=this._firstRowOffset),r==this.activeCell}_focusActiveCell(e=!0){pt(()=>{setTimeout(()=>{let i=this._elementRef.nativeElement.querySelector(".mat-calendar-body-active");i&&(e||(this._skipNextFocus=!0),i.focus())})},{injector:this._injector})}_scheduleFocusActiveCellAfterViewChecked(){this._focusActiveCellAfterViewChecked=!0}_isRangeStart(e){return XI(e,this.startValue,this.endValue)}_isRangeEnd(e){return JI(e,this.startValue,this.endValue)}_isInRange(e){return eA(e,this.startValue,this.endValue,this.isRange)}_isComparisonStart(e){return XI(e,this.comparisonStart,this.comparisonEnd)}_isComparisonBridgeStart(e,i,r){if(!this._isComparisonStart(e)||this._isRangeStart(e)||!this._isInRange(e))return!1;let o=this.rows[i][r-1];if(!o){let a=this.rows[i-1];o=a&&a[a.length-1]}return o&&!this._isRangeEnd(o.compareValue)}_isComparisonBridgeEnd(e,i,r){if(!this._isComparisonEnd(e)||this._isRangeEnd(e)||!this._isInRange(e))return!1;let o=this.rows[i][r+1];if(!o){let a=this.rows[i+1];o=a&&a[0]}return o&&!this._isRangeStart(o.compareValue)}_isComparisonEnd(e){return JI(e,this.comparisonStart,this.comparisonEnd)}_isInComparisonRange(e){return eA(e,this.comparisonStart,this.comparisonEnd,this.isRange)}_isComparisonIdentical(e){return this.comparisonStart===this.comparisonEnd&&e===this.comparisonStart}_isPreviewStart(e){return XI(e,this.previewStart,this.previewEnd)}_isPreviewEnd(e){return JI(e,this.previewStart,this.previewEnd)}_isInPreview(e){return eA(e,this.previewStart,this.previewEnd,this.isRange)}_getDescribedby(e){if(!this.isRange)return null;if(this.startValue===e&&this.endValue===e)return`${this._startDateLabelId} ${this._endDateLabelId}`;if(this.startValue===e)return this._startDateLabelId;if(this.endValue===e)return this._endDateLabelId;if(this.comparisonStart!==null&&this.comparisonEnd!==null){if(e===this.comparisonStart&&e===this.comparisonEnd)return`${this._comparisonStartDateLabelId} ${this._comparisonEndDateLabelId}`;if(e===this.comparisonStart)return this._comparisonStartDateLabelId;if(e===this.comparisonEnd)return this._comparisonEndDateLabelId}return null}_enterHandler=e=>{if(this._skipNextFocus&&e.type==="focus"){this._skipNextFocus=!1;return}if(e.target&&this.isRange){let i=this._getCellFromElement(e.target);i&&this._ngZone.run(()=>this.previewChange.emit({value:i.enabled?i:null,event:e}))}};_touchmoveHandler=e=>{if(!this.isRange)return;let i=EU(e),r=i?this._getCellFromElement(i):null;i!==e.target&&(this._didDragSinceMouseDown=!0),ZI(e.target)&&e.preventDefault(),this._ngZone.run(()=>this.previewChange.emit({value:r?.enabled?r:null,event:e}))};_leaveHandler=e=>{this.previewEnd!==null&&this.isRange&&(e.type!=="blur"&&(this._didDragSinceMouseDown=!0),e.target&&this._getCellFromElement(e.target)&&!(e.relatedTarget&&this._getCellFromElement(e.relatedTarget))&&this._ngZone.run(()=>this.previewChange.emit({value:null,event:e})))};_mousedownHandler=e=>{if(!this.isRange)return;this._didDragSinceMouseDown=!1;let i=e.target&&this._getCellFromElement(e.target);!i||!this._isInRange(i.compareValue)||this._ngZone.run(()=>{this.dragStarted.emit({value:i.rawValue,event:e})})};_mouseupHandler=e=>{if(!this.isRange)return;let i=ZI(e.target);if(!i){this._ngZone.run(()=>{this.dragEnded.emit({value:null,event:e})});return}i.closest(".mat-calendar-body")===this._elementRef.nativeElement&&this._ngZone.run(()=>{let r=this._getCellFromElement(i);this.dragEnded.emit({value:r?.rawValue??null,event:e})})};_touchendHandler=e=>{let i=EU(e);i&&this._mouseupHandler({target:i})};_getCellFromElement(e){let i=ZI(e);if(i){let r=i.getAttribute("data-mat-row"),o=i.getAttribute("data-mat-col");if(r&&o)return this.rows[parseInt(r)]?.[parseInt(o)]||null}return null}static \u0275fac=function(i){return new(i||t)};static \u0275cmp=E({type:t,selectors:[["","mat-calendar-body",""]],hostAttrs:[1,"mat-calendar-body"],inputs:{label:"label",rows:"rows",todayValue:"todayValue",startValue:"startValue",endValue:"endValue",labelMinRequiredCells:"labelMinRequiredCells",numCols:"numCols",activeCell:"activeCell",isRange:"isRange",cellAspectRatio:"cellAspectRatio",comparisonStart:"comparisonStart",comparisonEnd:"comparisonEnd",previewStart:"previewStart",previewEnd:"previewEnd",startDateAccessibleName:"startDateAccessibleName",endDateAccessibleName:"endDateAccessibleName"},outputs:{selectedValueChange:"selectedValueChange",previewChange:"previewChange",activeDateChange:"activeDateChange",dragStarted:"dragStarted",dragEnded:"dragEnded"},exportAs:["matCalendarBody"],features:[Ae],attrs:Tbe,decls:11,vars:11,consts:[["aria-hidden","true"],["role","row"],[1,"mat-calendar-body-hidden-label",3,"id"],[1,"mat-calendar-body-label"],[1,"mat-calendar-body-label",3,"paddingTop","paddingBottom"],["role","gridcell",1,"mat-calendar-body-cell-container",3,"width","paddingTop","paddingBottom"],["role","gridcell",1,"mat-calendar-body-cell-container"],["type","button",1,"mat-calendar-body-cell",3,"click","focus","ngClass","tabindex"],[1,"mat-calendar-body-cell-content","mat-focus-indicator"],["aria-hidden","true",1,"mat-calendar-body-cell-preview"]],template:function(i,r){i&1&&(N(0,Abe,3,6,"tr",0),xt(1,Pbe,4,1,"tr",1,Ibe,!0),h(3,"span",2),_(4),p(),h(5,"span",2),_(6),p(),h(7,"span",2),_(8),p(),h(9,"span",2),_(10),p()),i&2&&(L(r._firstRowOffset.mat-calendar-body-cell-content:not(.mat-calendar-body-selected):not(.mat-calendar-body-comparison-identical){color:var(--mat-datepicker-calendar-date-disabled-state-text-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent))}.mat-calendar-body-disabled>.mat-calendar-body-today:not(.mat-calendar-body-selected):not(.mat-calendar-body-comparison-identical){border-color:var(--mat-datepicker-calendar-date-today-disabled-state-outline-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent))}@media(forced-colors: active){.mat-calendar-body-disabled{opacity:.5}}.mat-calendar-body-cell-content{top:5%;left:5%;z-index:1;display:flex;align-items:center;justify-content:center;box-sizing:border-box;width:90%;height:90%;line-height:1;border-width:1px;border-style:solid;border-radius:999px;color:var(--mat-datepicker-calendar-date-text-color, var(--mat-sys-on-surface));border-color:var(--mat-datepicker-calendar-date-outline-color, transparent)}.mat-calendar-body-cell-content.mat-focus-indicator{position:absolute}@media(forced-colors: active){.mat-calendar-body-cell-content{border:none}}.cdk-keyboard-focused .mat-calendar-body-active>.mat-calendar-body-cell-content:not(.mat-calendar-body-selected):not(.mat-calendar-body-comparison-identical),.cdk-program-focused .mat-calendar-body-active>.mat-calendar-body-cell-content:not(.mat-calendar-body-selected):not(.mat-calendar-body-comparison-identical){background-color:var(--mat-datepicker-calendar-date-focus-state-background-color, color-mix(in srgb, var(--mat-sys-on-surface) calc(var(--mat-sys-focus-state-layer-opacity) * 100%), transparent))}@media(hover: hover){.mat-calendar-body-cell:not(.mat-calendar-body-disabled):hover>.mat-calendar-body-cell-content:not(.mat-calendar-body-selected):not(.mat-calendar-body-comparison-identical){background-color:var(--mat-datepicker-calendar-date-hover-state-background-color, color-mix(in srgb, var(--mat-sys-on-surface) calc(var(--mat-sys-hover-state-layer-opacity) * 100%), transparent))}}.mat-calendar-body-selected{background-color:var(--mat-datepicker-calendar-date-selected-state-background-color, var(--mat-sys-primary));color:var(--mat-datepicker-calendar-date-selected-state-text-color, var(--mat-sys-on-primary))}.mat-calendar-body-disabled>.mat-calendar-body-selected{background-color:var(--mat-datepicker-calendar-date-selected-disabled-state-background-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent))}.mat-calendar-body-selected.mat-calendar-body-today{box-shadow:inset 0 0 0 1px var(--mat-datepicker-calendar-date-today-selected-state-outline-color, var(--mat-sys-primary))}.mat-calendar-body-in-range::before{background:var(--mat-datepicker-calendar-date-in-range-state-background-color, var(--mat-sys-primary-container))}.mat-calendar-body-comparison-identical,.mat-calendar-body-in-comparison-range::before{background:var(--mat-datepicker-calendar-date-in-comparison-range-state-background-color, var(--mat-sys-tertiary-container))}.mat-calendar-body-comparison-identical,.mat-calendar-body-in-comparison-range::before{background:var(--mat-datepicker-calendar-date-in-comparison-range-state-background-color, var(--mat-sys-tertiary-container))}.mat-calendar-body-comparison-bridge-start::before,[dir=rtl] .mat-calendar-body-comparison-bridge-end::before{background:linear-gradient(to right, var(--mat-datepicker-calendar-date-in-range-state-background-color, var(--mat-sys-primary-container)) 50%, var(--mat-datepicker-calendar-date-in-comparison-range-state-background-color, var(--mat-sys-tertiary-container)) 50%)}.mat-calendar-body-comparison-bridge-end::before,[dir=rtl] .mat-calendar-body-comparison-bridge-start::before{background:linear-gradient(to left, var(--mat-datepicker-calendar-date-in-range-state-background-color, var(--mat-sys-primary-container)) 50%, var(--mat-datepicker-calendar-date-in-comparison-range-state-background-color, var(--mat-sys-tertiary-container)) 50%)}.mat-calendar-body-in-range>.mat-calendar-body-comparison-identical,.mat-calendar-body-in-comparison-range.mat-calendar-body-in-range::after{background:var(--mat-datepicker-calendar-date-in-overlap-range-state-background-color, var(--mat-sys-secondary-container))}.mat-calendar-body-comparison-identical.mat-calendar-body-selected,.mat-calendar-body-in-comparison-range>.mat-calendar-body-selected{background:var(--mat-datepicker-calendar-date-in-overlap-range-selected-state-background-color, var(--mat-sys-secondary))}@media(forced-colors: active){.mat-datepicker-popup:not(:empty),.mat-calendar-body-cell:not(.mat-calendar-body-in-range) .mat-calendar-body-selected{outline:solid 1px}.mat-calendar-body-today{outline:dotted 1px}.mat-calendar-body-cell::before,.mat-calendar-body-cell::after,.mat-calendar-body-selected{background:none}.mat-calendar-body-in-range::before,.mat-calendar-body-comparison-bridge-start::before,.mat-calendar-body-comparison-bridge-end::before{border-top:solid 1px;border-bottom:solid 1px}.mat-calendar-body-range-start::before{border-left:solid 1px}[dir=rtl] .mat-calendar-body-range-start::before{border-left:0;border-right:solid 1px}.mat-calendar-body-range-end::before{border-right:solid 1px}[dir=rtl] .mat-calendar-body-range-end::before{border-right:0;border-left:solid 1px}.mat-calendar-body-in-comparison-range::before{border-top:dashed 1px;border-bottom:dashed 1px}.mat-calendar-body-comparison-start::before{border-left:dashed 1px}[dir=rtl] .mat-calendar-body-comparison-start::before{border-left:0;border-right:dashed 1px}.mat-calendar-body-comparison-end::before{border-right:dashed 1px}[dir=rtl] .mat-calendar-body-comparison-end::before{border-right:0;border-left:dashed 1px}} -`],encapsulation:2,changeDetection:0})}return t})();function ZI(t){return t?.nodeName==="TD"}function XI(t){let n;return ZI(t)?n=t:ZI(t.parentNode)?n=t.parentNode:ZI(t.parentNode?.parentNode)&&(n=t.parentNode.parentNode),n?.getAttribute("data-mat-row")!=null?n:null}function JI(t,n,e){return e!==null&&n!==e&&t=n&&t===e}function tA(t,n,e,i){return i&&n!==null&&e!==null&&n!==e&&t>=n&&t<=e}function MU(t){let n=t.changedTouches[0];return document.elementFromPoint(n.clientX,n.clientY)}var ua=class{start;end;_disableStructuralEquivalency;constructor(n,e){this.start=n,this.end=e}},w_=(()=>{class t{selection;_adapter;_selectionChanged=new z;selectionChanged=this._selectionChanged;constructor(e,i){this.selection=e,this._adapter=i,this.selection=e}updateSelection(e,i){let r=this.selection;this.selection=e,this._selectionChanged.next({selection:e,source:i,oldValue:r})}ngOnDestroy(){this._selectionChanged.complete()}_isValidDateInstance(e){return this._adapter.isDateInstance(e)&&this._adapter.isValid(e)}static \u0275fac=function(i){Ad()};static \u0275prov=O({token:t,factory:t.\u0275fac})}return t})(),Qbe=(()=>{class t extends w_{constructor(e){super(null,e)}add(e){super.updateSelection(e,this)}isValid(){return this.selection!=null&&this._isValidDateInstance(this.selection)}isComplete(){return this.selection!=null}clone(){let e=new t(this._adapter);return e.updateSelection(this.selection,this),e}static \u0275fac=function(i){return new(i||t)(pe(Li))};static \u0275prov=O({token:t,factory:t.\u0275fac})}return t})();function Kbe(t,n){return t||new Qbe(n)}var OU={provide:w_,deps:[[new ss,new Gl,w_],Li],useFactory:Kbe};var RU=new T("MAT_DATE_RANGE_SELECTION_STRATEGY");var iA=7,Zbe=0,kU=(()=>{class t{_changeDetectorRef=u(ye);_dateFormats=u(xs,{optional:!0});_dateAdapter=u(Li,{optional:!0});_dir=u(Vt,{optional:!0});_rangeStrategy=u(RU,{optional:!0});_rerenderSubscription=ke.EMPTY;_selectionKeyPressed;get activeDate(){return this._activeDate}set activeDate(e){let i=this._activeDate,r=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e))||this._dateAdapter.today();this._activeDate=this._dateAdapter.clampDate(r,this.minDate,this.maxDate),this._hasSameMonthAndYear(i,this._activeDate)||this._init()}_activeDate;get selected(){return this._selected}set selected(e){e instanceof ua?this._selected=e:this._selected=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e)),this._setRanges(this._selected)}_selected;get minDate(){return this._minDate}set minDate(e){this._minDate=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e))}_minDate;get maxDate(){return this._maxDate}set maxDate(e){this._maxDate=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e))}_maxDate;dateFilter;dateClass;comparisonStart;comparisonEnd;startDateAccessibleName;endDateAccessibleName;activeDrag=null;selectedChange=new U;_userSelection=new U;dragStarted=new U;dragEnded=new U;activeDateChange=new U;_matCalendarBody;_monthLabel=he("");_weeks=he([]);_firstWeekOffset=he(0);_rangeStart=he(null);_rangeEnd=he(null);_comparisonRangeStart=he(null);_comparisonRangeEnd=he(null);_previewStart=he(null);_previewEnd=he(null);_isRange=he(!1);_todayDate=he(null);_weekdays=he([]);constructor(){u(ut).load(Qr),this._activeDate=this._dateAdapter.today()}ngAfterContentInit(){this._rerenderSubscription=this._dateAdapter.localeChanges.pipe(He(null)).subscribe(()=>this._init())}ngOnChanges(e){let i=e.comparisonStart||e.comparisonEnd;i&&!i.firstChange&&this._setRanges(this.selected),e.activeDrag&&!this.activeDrag&&this._clearPreview()}ngOnDestroy(){this._rerenderSubscription.unsubscribe()}_dateSelected(e){let i=e.value,r=this._getDateFromDayOfMonth(i),o,a;this._selected instanceof ua?(o=this._getDateInCurrentMonth(this._selected.start),a=this._getDateInCurrentMonth(this._selected.end)):o=a=this._getDateInCurrentMonth(this._selected),(o!==i||a!==i)&&this.selectedChange.emit(r),this._userSelection.emit({value:r,event:e.event}),this._clearPreview(),this._changeDetectorRef.markForCheck()}_updateActiveDate(e){let i=e.value,r=this._activeDate;this.activeDate=this._getDateFromDayOfMonth(i),this._dateAdapter.compareDate(r,this.activeDate)&&this.activeDateChange.emit(this._activeDate)}_handleCalendarBodyKeydown(e){let i=this._activeDate,r=this._isRtl();switch(e.keyCode){case 37:this.activeDate=this._dateAdapter.addCalendarDays(this._activeDate,r?1:-1);break;case 39:this.activeDate=this._dateAdapter.addCalendarDays(this._activeDate,r?-1:1);break;case 38:this.activeDate=this._dateAdapter.addCalendarDays(this._activeDate,-7);break;case 40:this.activeDate=this._dateAdapter.addCalendarDays(this._activeDate,7);break;case 36:this.activeDate=this._dateAdapter.addCalendarDays(this._activeDate,1-this._dateAdapter.getDate(this._activeDate));break;case 35:this.activeDate=this._dateAdapter.addCalendarDays(this._activeDate,this._dateAdapter.getNumDaysInMonth(this._activeDate)-this._dateAdapter.getDate(this._activeDate));break;case 33:this.activeDate=e.altKey?this._dateAdapter.addCalendarYears(this._activeDate,-1):this._dateAdapter.addCalendarMonths(this._activeDate,-1);break;case 34:this.activeDate=e.altKey?this._dateAdapter.addCalendarYears(this._activeDate,1):this._dateAdapter.addCalendarMonths(this._activeDate,1);break;case 13:case 32:this._selectionKeyPressed=!0,this._canSelect(this._activeDate)&&e.preventDefault();return;case 27:this._previewEnd()!=null&&!Ft(e)&&(this._clearPreview(),this.activeDrag?this.dragEnded.emit({value:null,event:e}):(this.selectedChange.emit(null),this._userSelection.emit({value:null,event:e})),e.preventDefault(),e.stopPropagation());return;default:return}this._dateAdapter.compareDate(i,this.activeDate)&&(this.activeDateChange.emit(this.activeDate),this._focusActiveCellAfterViewChecked()),e.preventDefault()}_handleCalendarBodyKeyup(e){(e.keyCode===32||e.keyCode===13)&&(this._selectionKeyPressed&&this._canSelect(this._activeDate)&&this._dateSelected({value:this._dateAdapter.getDate(this._activeDate),event:e}),this._selectionKeyPressed=!1)}_init(){this._setRanges(this.selected),this._todayDate.set(this._getCellCompareValue(this._dateAdapter.today())),this._monthLabel.set(this._dateFormats.display.monthLabel?this._dateAdapter.format(this.activeDate,this._dateFormats.display.monthLabel):this._dateAdapter.getMonthNames("short")[this._dateAdapter.getMonth(this.activeDate)].toLocaleUpperCase());let e=this._dateAdapter.createDate(this._dateAdapter.getYear(this.activeDate),this._dateAdapter.getMonth(this.activeDate),1);this._firstWeekOffset.set((iA+this._dateAdapter.getDayOfWeek(e)-this._dateAdapter.getFirstDayOfWeek())%iA),this._initWeekdays(),this._createWeekCells(),this._changeDetectorRef.markForCheck()}_focusActiveCell(e){this._matCalendarBody._focusActiveCell(e)}_focusActiveCellAfterViewChecked(){this._matCalendarBody._scheduleFocusActiveCellAfterViewChecked()}_previewChanged({event:e,value:i}){if(this._rangeStrategy){let r=i?i.rawValue:null,o=this._rangeStrategy.createPreview(r,this.selected,e);if(this._previewStart.set(this._getCellCompareValue(o.start)),this._previewEnd.set(this._getCellCompareValue(o.end)),this.activeDrag&&r){let a=this._rangeStrategy.createDrag?.(this.activeDrag.value,this.selected,r,e);a&&(this._previewStart.set(this._getCellCompareValue(a.start)),this._previewEnd.set(this._getCellCompareValue(a.end)))}}}_dragEnded(e){if(this.activeDrag)if(e.value){let i=this._rangeStrategy?.createDrag?.(this.activeDrag.value,this.selected,e.value,e.event);this.dragEnded.emit({value:i??null,event:e.event})}else this.dragEnded.emit({value:null,event:e.event})}_getDateFromDayOfMonth(e){return this._dateAdapter.createDate(this._dateAdapter.getYear(this.activeDate),this._dateAdapter.getMonth(this.activeDate),e)}_initWeekdays(){let e=this._dateAdapter.getFirstDayOfWeek(),i=this._dateAdapter.getDayOfWeekNames("narrow"),o=this._dateAdapter.getDayOfWeekNames("long").map((a,s)=>({long:a,narrow:i[s],id:Zbe++}));this._weekdays.set(o.slice(e).concat(o.slice(0,e)))}_createWeekCells(){let e=this._dateAdapter.getNumDaysInMonth(this.activeDate),i=this._dateAdapter.getDateNames(),r=[[]];for(let o=0,a=this._firstWeekOffset();o=0)&&(!this.maxDate||this._dateAdapter.compareDate(e,this.maxDate)<=0)&&(!this.dateFilter||this.dateFilter(e))}_getDateInCurrentMonth(e){return e&&this._hasSameMonthAndYear(e,this.activeDate)?this._dateAdapter.getDate(e):null}_hasSameMonthAndYear(e,i){return!!(e&&i&&this._dateAdapter.getMonth(e)==this._dateAdapter.getMonth(i)&&this._dateAdapter.getYear(e)==this._dateAdapter.getYear(i))}_getCellCompareValue(e){if(e){let i=this._dateAdapter.getYear(e),r=this._dateAdapter.getMonth(e),o=this._dateAdapter.getDate(e);return new Date(i,r,o).getTime()}return null}_isRtl(){return this._dir&&this._dir.value==="rtl"}_setRanges(e){e instanceof ua?(this._rangeStart.set(this._getCellCompareValue(e.start)),this._rangeEnd.set(this._getCellCompareValue(e.end)),this._isRange.set(!0)):(this._rangeStart.set(this._getCellCompareValue(e)),this._rangeEnd.set(this._rangeStart()),this._isRange.set(!1)),this._comparisonRangeStart.set(this._getCellCompareValue(this.comparisonStart)),this._comparisonRangeEnd.set(this._getCellCompareValue(this.comparisonEnd))}_canSelect(e){return!this.dateFilter||this.dateFilter(e)}_clearPreview(){this._previewStart.set(null),this._previewEnd.set(null)}static \u0275fac=function(i){return new(i||t)};static \u0275cmp=E({type:t,selectors:[["mat-month-view"]],viewQuery:function(i,r){if(i&1&&ie(cp,5),i&2){let o;B(o=j())&&(r._matCalendarBody=o.first)}},inputs:{activeDate:"activeDate",selected:"selected",minDate:"minDate",maxDate:"maxDate",dateFilter:"dateFilter",dateClass:"dateClass",comparisonStart:"comparisonStart",comparisonEnd:"comparisonEnd",startDateAccessibleName:"startDateAccessibleName",endDateAccessibleName:"endDateAccessibleName",activeDrag:"activeDrag"},outputs:{selectedChange:"selectedChange",_userSelection:"_userSelection",dragStarted:"dragStarted",dragEnded:"dragEnded",activeDateChange:"activeDateChange"},exportAs:["matMonthView"],features:[Ae],decls:8,vars:14,consts:[["role","grid",1,"mat-calendar-table"],[1,"mat-calendar-table-header"],["scope","col"],["aria-hidden","true"],["colspan","7",1,"mat-calendar-table-header-divider"],["mat-calendar-body","",3,"selectedValueChange","activeDateChange","previewChange","dragStarted","dragEnded","keyup","keydown","label","rows","todayValue","startValue","endValue","comparisonStart","comparisonEnd","previewStart","previewEnd","isRange","labelMinRequiredCells","activeCell","startDateAccessibleName","endDateAccessibleName"],[1,"cdk-visually-hidden"]],template:function(i,r){i&1&&(h(0,"table",0)(1,"thead",1)(2,"tr"),xt(3,Nbe,5,2,"th",2,AU),p(),h(5,"tr",3),k(6,"th",4),p()(),h(7,"tbody",5),S("selectedValueChange",function(a){return r._dateSelected(a)})("activeDateChange",function(a){return r._updateActiveDate(a)})("previewChange",function(a){return r._previewChanged(a)})("dragStarted",function(a){return r.dragStarted.emit(a)})("dragEnded",function(a){return r._dragEnded(a)})("keyup",function(a){return r._handleCalendarBodyKeyup(a)})("keydown",function(a){return r._handleCalendarBodyKeydown(a)}),p()()),i&2&&(g(3),Ct(r._weekdays()),g(4),y("label",r._monthLabel())("rows",r._weeks())("todayValue",r._todayDate())("startValue",r._rangeStart())("endValue",r._rangeEnd())("comparisonStart",r._comparisonRangeStart())("comparisonEnd",r._comparisonRangeEnd())("previewStart",r._previewStart())("previewEnd",r._previewEnd())("isRange",r._isRange())("labelMinRequiredCells",3)("activeCell",r._dateAdapter.getDate(r.activeDate)-1)("startDateAccessibleName",r.startDateAccessibleName)("endDateAccessibleName",r.endDateAccessibleName))},dependencies:[cp],encapsulation:2,changeDetection:0})}return t})(),Io=24,nA=4,SU=(()=>{class t{_changeDetectorRef=u(ye);_dateAdapter=u(Li,{optional:!0});_dir=u(Vt,{optional:!0});_rerenderSubscription=ke.EMPTY;_selectionKeyPressed;get activeDate(){return this._activeDate}set activeDate(e){let i=this._activeDate,r=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e))||this._dateAdapter.today();this._activeDate=this._dateAdapter.clampDate(r,this.minDate,this.maxDate),PU(this._dateAdapter,i,this._activeDate,this.minDate,this.maxDate)||this._init()}_activeDate;get selected(){return this._selected}set selected(e){e instanceof ua?this._selected=e:this._selected=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e)),this._setSelectedYear(e)}_selected;get minDate(){return this._minDate}set minDate(e){this._minDate=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e))}_minDate;get maxDate(){return this._maxDate}set maxDate(e){this._maxDate=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e))}_maxDate;dateFilter;dateClass;selectedChange=new U;yearSelected=new U;activeDateChange=new U;_matCalendarBody;_years=he([]);_todayYear=he(0);_selectedYear=he(null);constructor(){this._dateAdapter,this._activeDate=this._dateAdapter.today()}ngAfterContentInit(){this._rerenderSubscription=this._dateAdapter.localeChanges.pipe(He(null)).subscribe(()=>this._init())}ngOnDestroy(){this._rerenderSubscription.unsubscribe()}_init(){this._todayYear.set(this._dateAdapter.getYear(this._dateAdapter.today()));let i=this._dateAdapter.getYear(this._activeDate)-x_(this._dateAdapter,this.activeDate,this.minDate,this.maxDate),r=[];for(let o=0,a=[];othis._createCellForYear(s))),a=[]);this._years.set(r),this._changeDetectorRef.markForCheck()}_yearSelected(e){let i=e.value,r=this._dateAdapter.createDate(i,0,1),o=this._getDateFromYear(i);this.yearSelected.emit(r),this.selectedChange.emit(o)}_updateActiveDate(e){let i=e.value,r=this._activeDate;this.activeDate=this._getDateFromYear(i),this._dateAdapter.compareDate(r,this.activeDate)&&this.activeDateChange.emit(this.activeDate)}_handleCalendarBodyKeydown(e){let i=this._activeDate,r=this._isRtl();switch(e.keyCode){case 37:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,r?1:-1);break;case 39:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,r?-1:1);break;case 38:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,-nA);break;case 40:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,nA);break;case 36:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,-x_(this._dateAdapter,this.activeDate,this.minDate,this.maxDate));break;case 35:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,Io-x_(this._dateAdapter,this.activeDate,this.minDate,this.maxDate)-1);break;case 33:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,e.altKey?-Io*10:-Io);break;case 34:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,e.altKey?Io*10:Io);break;case 13:case 32:this._selectionKeyPressed=!0;break;default:return}this._dateAdapter.compareDate(i,this.activeDate)&&this.activeDateChange.emit(this.activeDate),this._focusActiveCellAfterViewChecked(),e.preventDefault()}_handleCalendarBodyKeyup(e){(e.keyCode===32||e.keyCode===13)&&(this._selectionKeyPressed&&this._yearSelected({value:this._dateAdapter.getYear(this._activeDate),event:e}),this._selectionKeyPressed=!1)}_getActiveCell(){return x_(this._dateAdapter,this.activeDate,this.minDate,this.maxDate)}_focusActiveCell(){this._matCalendarBody._focusActiveCell()}_focusActiveCellAfterViewChecked(){this._matCalendarBody._scheduleFocusActiveCellAfterViewChecked()}_getDateFromYear(e){let i=this._dateAdapter.getMonth(this.activeDate),r=this._dateAdapter.getNumDaysInMonth(this._dateAdapter.createDate(e,i,1));return this._dateAdapter.createDate(e,i,Math.min(this._dateAdapter.getDate(this.activeDate),r))}_createCellForYear(e){let i=this._dateAdapter.createDate(e,0,1),r=this._dateAdapter.getYearName(i),o=this.dateClass?this.dateClass(i,"multi-year"):void 0;return new C_(e,r,r,this._shouldEnableYear(e),o)}_shouldEnableYear(e){if(e==null||this.maxDate&&e>this._dateAdapter.getYear(this.maxDate)||this.minDate&&e{class t{_changeDetectorRef=u(ye);_dateFormats=u(xs,{optional:!0});_dateAdapter=u(Li,{optional:!0});_dir=u(Vt,{optional:!0});_rerenderSubscription=ke.EMPTY;_selectionKeyPressed;get activeDate(){return this._activeDate}set activeDate(e){let i=this._activeDate,r=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e))||this._dateAdapter.today();this._activeDate=this._dateAdapter.clampDate(r,this.minDate,this.maxDate),this._dateAdapter.getYear(i)!==this._dateAdapter.getYear(this._activeDate)&&this._init()}_activeDate;get selected(){return this._selected}set selected(e){e instanceof ua?this._selected=e:this._selected=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e)),this._setSelectedMonth(e)}_selected;get minDate(){return this._minDate}set minDate(e){this._minDate=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e))}_minDate;get maxDate(){return this._maxDate}set maxDate(e){this._maxDate=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e))}_maxDate;dateFilter;dateClass;selectedChange=new U;monthSelected=new U;activeDateChange=new U;_matCalendarBody;_months=he([]);_yearLabel=he("");_todayMonth=he(null);_selectedMonth=he(null);constructor(){this._activeDate=this._dateAdapter.today()}ngAfterContentInit(){this._rerenderSubscription=this._dateAdapter.localeChanges.pipe(He(null)).subscribe(()=>this._init())}ngOnDestroy(){this._rerenderSubscription.unsubscribe()}_monthSelected(e){let i=e.value,r=this._dateAdapter.createDate(this._dateAdapter.getYear(this.activeDate),i,1);this.monthSelected.emit(r);let o=this._getDateFromMonth(i);this.selectedChange.emit(o)}_updateActiveDate(e){let i=e.value,r=this._activeDate;this.activeDate=this._getDateFromMonth(i),this._dateAdapter.compareDate(r,this.activeDate)&&this.activeDateChange.emit(this.activeDate)}_handleCalendarBodyKeydown(e){let i=this._activeDate,r=this._isRtl();switch(e.keyCode){case 37:this.activeDate=this._dateAdapter.addCalendarMonths(this._activeDate,r?1:-1);break;case 39:this.activeDate=this._dateAdapter.addCalendarMonths(this._activeDate,r?-1:1);break;case 38:this.activeDate=this._dateAdapter.addCalendarMonths(this._activeDate,-4);break;case 40:this.activeDate=this._dateAdapter.addCalendarMonths(this._activeDate,4);break;case 36:this.activeDate=this._dateAdapter.addCalendarMonths(this._activeDate,-this._dateAdapter.getMonth(this._activeDate));break;case 35:this.activeDate=this._dateAdapter.addCalendarMonths(this._activeDate,11-this._dateAdapter.getMonth(this._activeDate));break;case 33:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,e.altKey?-10:-1);break;case 34:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,e.altKey?10:1);break;case 13:case 32:this._selectionKeyPressed=!0;break;default:return}this._dateAdapter.compareDate(i,this.activeDate)&&(this.activeDateChange.emit(this.activeDate),this._focusActiveCellAfterViewChecked()),e.preventDefault()}_handleCalendarBodyKeyup(e){(e.keyCode===32||e.keyCode===13)&&(this._selectionKeyPressed&&this._monthSelected({value:this._dateAdapter.getMonth(this._activeDate),event:e}),this._selectionKeyPressed=!1)}_init(){this._setSelectedMonth(this.selected),this._todayMonth.set(this._getMonthInCurrentYear(this._dateAdapter.today())),this._yearLabel.set(this._dateAdapter.getYearName(this.activeDate));let e=this._dateAdapter.getMonthNames("short");this._months.set([[0,1,2,3],[4,5,6,7],[8,9,10,11]].map(i=>i.map(r=>this._createCellForMonth(r,e[r])))),this._changeDetectorRef.markForCheck()}_focusActiveCell(){this._matCalendarBody._focusActiveCell()}_focusActiveCellAfterViewChecked(){this._matCalendarBody._scheduleFocusActiveCellAfterViewChecked()}_getMonthInCurrentYear(e){return e&&this._dateAdapter.getYear(e)==this._dateAdapter.getYear(this.activeDate)?this._dateAdapter.getMonth(e):null}_getDateFromMonth(e){let i=this._dateAdapter.createDate(this._dateAdapter.getYear(this.activeDate),e,1),r=this._dateAdapter.getNumDaysInMonth(i);return this._dateAdapter.createDate(this._dateAdapter.getYear(this.activeDate),e,Math.min(this._dateAdapter.getDate(this.activeDate),r))}_createCellForMonth(e,i){let r=this._dateAdapter.createDate(this._dateAdapter.getYear(this.activeDate),e,1),o=this._dateAdapter.format(r,this._dateFormats.display.monthYearA11yLabel),a=this.dateClass?this.dateClass(r,"year"):void 0;return new C_(e,i.toLocaleUpperCase(),o,this._shouldEnableMonth(e),a)}_shouldEnableMonth(e){let i=this._dateAdapter.getYear(this.activeDate);if(e==null||this._isYearAndMonthAfterMaxDate(i,e)||this._isYearAndMonthBeforeMinDate(i,e))return!1;if(!this.dateFilter)return!0;let r=this._dateAdapter.createDate(i,e,1);for(let o=r;this._dateAdapter.getMonth(o)==e;o=this._dateAdapter.addCalendarDays(o,1))if(this.dateFilter(o))return!0;return!1}_isYearAndMonthAfterMaxDate(e,i){if(this.maxDate){let r=this._dateAdapter.getYear(this.maxDate),o=this._dateAdapter.getMonth(this.maxDate);return e>r||e===r&&i>o}return!1}_isYearAndMonthBeforeMinDate(e,i){if(this.minDate){let r=this._dateAdapter.getYear(this.minDate),o=this._dateAdapter.getMonth(this.minDate);return e{class t{_intl=u(dp);calendar=u(rA);_dateAdapter=u(Li,{optional:!0});_dateFormats=u(xs,{optional:!0});_periodButtonText;_periodButtonDescription;_periodButtonLabel;_prevButtonLabel;_nextButtonLabel;constructor(){u(ut).load(Qr);let e=u(ye);this._updateLabels(),this.calendar.stateChanges.subscribe(()=>{this._updateLabels(),e.markForCheck()})}get periodButtonText(){return this._periodButtonText}get periodButtonDescription(){return this._periodButtonDescription}get periodButtonLabel(){return this._periodButtonLabel}get prevButtonLabel(){return this._prevButtonLabel}get nextButtonLabel(){return this._nextButtonLabel}currentPeriodClicked(){this.calendar.currentView=this.calendar.currentView=="month"?"multi-year":"month"}previousClicked(){this.previousEnabled()&&(this.calendar.activeDate=this.calendar.currentView=="month"?this._dateAdapter.addCalendarMonths(this.calendar.activeDate,-1):this._dateAdapter.addCalendarYears(this.calendar.activeDate,this.calendar.currentView=="year"?-1:-Io))}nextClicked(){this.nextEnabled()&&(this.calendar.activeDate=this.calendar.currentView=="month"?this._dateAdapter.addCalendarMonths(this.calendar.activeDate,1):this._dateAdapter.addCalendarYears(this.calendar.activeDate,this.calendar.currentView=="year"?1:Io))}previousEnabled(){return this.calendar.minDate?!this.calendar.minDate||!this._isSameView(this.calendar.activeDate,this.calendar.minDate):!0}nextEnabled(){return!this.calendar.maxDate||!this._isSameView(this.calendar.activeDate,this.calendar.maxDate)}_updateLabels(){let e=this.calendar,i=this._intl,r=this._dateAdapter;e.currentView==="month"?(this._periodButtonText=r.format(e.activeDate,this._dateFormats.display.monthYearLabel).toLocaleUpperCase(),this._periodButtonDescription=r.format(e.activeDate,this._dateFormats.display.monthYearLabel).toLocaleUpperCase(),this._periodButtonLabel=i.switchToMultiYearViewLabel,this._prevButtonLabel=i.prevMonthLabel,this._nextButtonLabel=i.nextMonthLabel):e.currentView==="year"?(this._periodButtonText=r.getYearName(e.activeDate),this._periodButtonDescription=r.getYearName(e.activeDate),this._periodButtonLabel=i.switchToMonthViewLabel,this._prevButtonLabel=i.prevYearLabel,this._nextButtonLabel=i.nextYearLabel):(this._periodButtonText=i.formatYearRange(...this._formatMinAndMaxYearLabels()),this._periodButtonDescription=i.formatYearRangeLabel(...this._formatMinAndMaxYearLabels()),this._periodButtonLabel=i.switchToMonthViewLabel,this._prevButtonLabel=i.prevMultiYearLabel,this._nextButtonLabel=i.nextMultiYearLabel)}_isSameView(e,i){return this.calendar.currentView=="month"?this._dateAdapter.getYear(e)==this._dateAdapter.getYear(i)&&this._dateAdapter.getMonth(e)==this._dateAdapter.getMonth(i):this.calendar.currentView=="year"?this._dateAdapter.getYear(e)==this._dateAdapter.getYear(i):PU(this._dateAdapter,e,i,this.calendar.minDate,this.calendar.maxDate)}_formatMinAndMaxYearLabels(){let i=this._dateAdapter.getYear(this.calendar.activeDate)-x_(this._dateAdapter,this.calendar.activeDate,this.calendar.minDate,this.calendar.maxDate),r=i+Io-1,o=this._dateAdapter.getYearName(this._dateAdapter.createDate(i,0,1)),a=this._dateAdapter.getYearName(this._dateAdapter.createDate(r,0,1));return[o,a]}_periodButtonLabelId=u(Ze).getId("mat-calendar-period-label-");static \u0275fac=function(i){return new(i||t)};static \u0275cmp=E({type:t,selectors:[["mat-calendar-header"]],exportAs:["matCalendarHeader"],ngContentSelectors:Lbe,decls:17,vars:13,consts:[[1,"mat-calendar-header"],[1,"mat-calendar-controls"],["aria-live","polite",1,"cdk-visually-hidden",3,"id"],["matButton","","type","button",1,"mat-calendar-period-button",3,"click"],["aria-hidden","true"],["viewBox","0 0 10 5","focusable","false","aria-hidden","true",1,"mat-calendar-arrow"],["points","0,0 5,5 10,0"],[1,"mat-calendar-spacer"],["matIconButton","","type","button","disabledInteractive","",1,"mat-calendar-previous-button",3,"click","disabled","matTooltip"],["viewBox","0 0 24 24","focusable","false","aria-hidden","true"],["d","M15.41 7.41L14 6l-6 6 6 6 1.41-1.41L10.83 12z"],["matIconButton","","type","button","disabledInteractive","",1,"mat-calendar-next-button",3,"click","disabled","matTooltip"],["d","M10 6L8.59 7.41 13.17 12l-4.58 4.59L10 18l6-6z"]],template:function(i,r){i&1&&(Me(),h(0,"div",0)(1,"div",1)(2,"span",2),_(3),p(),h(4,"button",3),S("click",function(){return r.currentPeriodClicked()}),h(5,"span",4),_(6),p(),Gt(),h(7,"svg",5),k(8,"polygon",6),p()(),jo(),k(9,"div",7),oe(10),h(11,"button",8),S("click",function(){return r.previousClicked()}),Gt(),h(12,"svg",9),k(13,"path",10),p()(),jo(),h(14,"button",11),S("click",function(){return r.nextClicked()}),Gt(),h(15,"svg",9),k(16,"path",12),p()()()()),i&2&&(g(2),y("id",r._periodButtonLabelId),g(),H(r.periodButtonDescription),g(),X("aria-label",r.periodButtonLabel)("aria-describedby",r._periodButtonLabelId),g(2),H(r.periodButtonText),g(),G("mat-calendar-invert",r.calendar.currentView!=="month"),g(4),y("disabled",!r.previousEnabled())("matTooltip",r.prevButtonLabel),X("aria-label",r.prevButtonLabel),g(3),y("disabled",!r.nextEnabled())("matTooltip",r.nextButtonLabel),X("aria-label",r.nextButtonLabel))},dependencies:[kt,ti,Eo],encapsulation:2,changeDetection:0})}return t})(),rA=(()=>{class t{_dateAdapter=u(Li,{optional:!0});_dateFormats=u(xs,{optional:!0});_changeDetectorRef=u(ye);_elementRef=u(q);headerComponent;_calendarHeaderPortal;_intlChanges;_moveFocusOnNextTick=!1;get startAt(){return this._startAt}set startAt(e){this._startAt=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e))}_startAt;startView="month";get selected(){return this._selected}set selected(e){e instanceof ua?this._selected=e:this._selected=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e))}_selected;get minDate(){return this._minDate}set minDate(e){this._minDate=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e))}_minDate;get maxDate(){return this._maxDate}set maxDate(e){this._maxDate=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e))}_maxDate;dateFilter;dateClass;comparisonStart;comparisonEnd;startDateAccessibleName;endDateAccessibleName;selectedChange=new U;yearSelected=new U;monthSelected=new U;viewChanged=new U(!0);_userSelection=new U;_userDragDrop=new U;monthView;yearView;multiYearView;get activeDate(){return this._clampedActiveDate}set activeDate(e){this._clampedActiveDate=this._dateAdapter.clampDate(e,this.minDate,this.maxDate),this.stateChanges.next(),this._changeDetectorRef.markForCheck()}_clampedActiveDate;get currentView(){return this._currentView}set currentView(e){let i=this._currentView!==e?e:null;this._currentView=e,this._moveFocusOnNextTick=!0,this._changeDetectorRef.markForCheck(),i&&(this.stateChanges.next(),this.viewChanged.emit(i))}_currentView;_activeDrag=null;stateChanges=new z;constructor(){this._intlChanges=u(dp).changes.subscribe(()=>{this._changeDetectorRef.markForCheck(),this.stateChanges.next()})}ngAfterContentInit(){this._calendarHeaderPortal=new Zr(this.headerComponent||NU),this.activeDate=this.startAt||this._dateAdapter.today(),this._currentView=this.startView}ngAfterViewChecked(){this._moveFocusOnNextTick&&(this._moveFocusOnNextTick=!1,this.focusActiveCell())}ngOnDestroy(){this._intlChanges.unsubscribe(),this.stateChanges.complete()}ngOnChanges(e){let i=e.minDate&&!this._dateAdapter.sameDate(e.minDate.previousValue,e.minDate.currentValue)?e.minDate:void 0,r=e.maxDate&&!this._dateAdapter.sameDate(e.maxDate.previousValue,e.maxDate.currentValue)?e.maxDate:void 0,o=i||r||e.dateFilter;if(o&&!o.firstChange){let a=this._getCurrentViewComponent();a&&(this._elementRef.nativeElement.contains(_o())&&(this._moveFocusOnNextTick=!0),this._changeDetectorRef.detectChanges(),a._init())}this.stateChanges.next()}focusActiveCell(){this._getCurrentViewComponent()._focusActiveCell(!1)}updateTodaysDate(){this._getCurrentViewComponent()._init()}_dateSelected(e){let i=e.value;(this.selected instanceof ua||i&&!this._dateAdapter.sameDate(i,this.selected))&&this.selectedChange.emit(i),this._userSelection.emit(e)}_yearSelectedInMultiYearView(e){this.yearSelected.emit(e)}_monthSelectedInYearView(e){this.monthSelected.emit(e)}_goToDateInView(e,i){this.activeDate=e,this.currentView=i}_dragStarted(e){this._activeDrag=e}_dragEnded(e){this._activeDrag&&(e.value&&this._userDragDrop.emit(e),this._activeDrag=null)}_getCurrentViewComponent(){return this.monthView||this.yearView||this.multiYearView}static \u0275fac=function(i){return new(i||t)};static \u0275cmp=E({type:t,selectors:[["mat-calendar"]],viewQuery:function(i,r){if(i&1&&(ie(kU,5),ie(TU,5),ie(SU,5)),i&2){let o;B(o=j())&&(r.monthView=o.first),B(o=j())&&(r.yearView=o.first),B(o=j())&&(r.multiYearView=o.first)}},hostAttrs:[1,"mat-calendar"],inputs:{headerComponent:"headerComponent",startAt:"startAt",startView:"startView",selected:"selected",minDate:"minDate",maxDate:"maxDate",dateFilter:"dateFilter",dateClass:"dateClass",comparisonStart:"comparisonStart",comparisonEnd:"comparisonEnd",startDateAccessibleName:"startDateAccessibleName",endDateAccessibleName:"endDateAccessibleName"},outputs:{selectedChange:"selectedChange",yearSelected:"yearSelected",monthSelected:"monthSelected",viewChanged:"viewChanged",_userSelection:"_userSelection",_userDragDrop:"_userDragDrop"},exportAs:["matCalendar"],features:[Ce([OU]),Ae],decls:5,vars:2,consts:[[3,"cdkPortalOutlet"],["cdkMonitorSubtreeFocus","","tabindex","-1",1,"mat-calendar-content"],[3,"activeDate","selected","dateFilter","maxDate","minDate","dateClass","comparisonStart","comparisonEnd","startDateAccessibleName","endDateAccessibleName","activeDrag"],[3,"activeDate","selected","dateFilter","maxDate","minDate","dateClass"],[3,"activeDateChange","_userSelection","dragStarted","dragEnded","activeDate","selected","dateFilter","maxDate","minDate","dateClass","comparisonStart","comparisonEnd","startDateAccessibleName","endDateAccessibleName","activeDrag"],[3,"activeDateChange","monthSelected","selectedChange","activeDate","selected","dateFilter","maxDate","minDate","dateClass"],[3,"activeDateChange","yearSelected","selectedChange","activeDate","selected","dateFilter","maxDate","minDate","dateClass"]],template:function(i,r){if(i&1&&(R(0,Vbe,0,0,"ng-template",0),h(1,"div",1),N(2,Bbe,1,11,"mat-month-view",2)(3,jbe,1,6,"mat-year-view",3)(4,Hbe,1,6,"mat-multi-year-view",3),p()),i&2){let o;y("cdkPortalOutlet",r._calendarHeaderPortal),g(2),L((o=r.currentView)==="month"?2:o==="year"?3:o==="multi-year"?4:-1)}},dependencies:[yr,$f,kU,TU,SU],styles:[`.mat-calendar{display:block;line-height:normal;font-family:var(--mat-datepicker-calendar-text-font, var(--mat-sys-body-medium-font));font-size:var(--mat-datepicker-calendar-text-size, var(--mat-sys-body-medium-size))}.mat-calendar-header{padding:8px 8px 0 8px}.mat-calendar-content{padding:0 8px 8px 8px;outline:none}.mat-calendar-controls{display:flex;align-items:center;margin:5% calc(4.7142857143% - 16px)}.mat-calendar-spacer{flex:1 1 auto}.mat-calendar-period-button{min-width:0;margin:0 8px;font-size:var(--mat-datepicker-calendar-period-button-text-size, var(--mat-sys-title-small-size));font-weight:var(--mat-datepicker-calendar-period-button-text-weight, var(--mat-sys-title-small-weight));--mat-button-text-label-text-color: var(--mat-datepicker-calendar-period-button-text-color, var(--mat-sys-on-surface-variant))}.mat-calendar-arrow{display:inline-block;width:10px;height:5px;margin:0 0 0 5px;vertical-align:middle;fill:var(--mat-datepicker-calendar-period-button-icon-color, var(--mat-sys-on-surface-variant))}.mat-calendar-arrow.mat-calendar-invert{transform:rotate(180deg)}[dir=rtl] .mat-calendar-arrow{margin:0 5px 0 0}@media(forced-colors: active){.mat-calendar-arrow{fill:CanvasText}}.mat-datepicker-content .mat-calendar-previous-button:not(.mat-mdc-button-disabled),.mat-datepicker-content .mat-calendar-next-button:not(.mat-mdc-button-disabled){color:var(--mat-datepicker-calendar-navigation-button-icon-color, var(--mat-sys-on-surface-variant))}[dir=rtl] .mat-calendar-previous-button,[dir=rtl] .mat-calendar-next-button{transform:rotate(180deg)}.mat-calendar-table{border-spacing:0;border-collapse:collapse;width:100%}.mat-calendar-table-header th{text-align:center;padding:0 0 8px 0;color:var(--mat-datepicker-calendar-header-text-color, var(--mat-sys-on-surface-variant));font-size:var(--mat-datepicker-calendar-header-text-size, var(--mat-sys-title-small-size));font-weight:var(--mat-datepicker-calendar-header-text-weight, var(--mat-sys-title-small-weight))}.mat-calendar-table-header-divider{position:relative;height:1px}.mat-calendar-table-header-divider::after{content:"";position:absolute;top:0;left:-8px;right:-8px;height:1px;background:var(--mat-datepicker-calendar-header-divider-color, transparent)}.mat-calendar-body-cell-content::before{margin:calc(calc(var(--mat-focus-indicator-border-width, 3px) + 3px)*-1)}.mat-calendar-body-cell:focus .mat-focus-indicator::before{content:""} -`],encapsulation:2,changeDetection:0})}return t})(),LU=new T("mat-datepicker-scroll-strategy",{providedIn:"root",factory:()=>{let t=u(de);return()=>wn(t)}});function Jbe(t){let n=u(de);return()=>wn(n)}var eve={provide:LU,deps:[],useFactory:Jbe},VU=(()=>{class t{_elementRef=u(q);_animationsDisabled=Ye();_changeDetectorRef=u(ye);_globalModel=u(w_);_dateAdapter=u(Li);_ngZone=u(ae);_rangeSelectionStrategy=u(RU,{optional:!0});_stateChanges;_model;_eventCleanups;_animationFallback;_calendar;color;datepicker;comparisonStart;comparisonEnd;startDateAccessibleName;endDateAccessibleName;_isAbove;_animationDone=new z;_isAnimating=!1;_closeButtonText;_closeButtonFocused;_actionsPortal=null;_dialogLabelId;constructor(){if(u(ut).load(Qr),this._closeButtonText=u(dp).closeCalendarLabel,!this._animationsDisabled){let e=this._elementRef.nativeElement,i=u(je);this._eventCleanups=this._ngZone.runOutsideAngular(()=>[i.listen(e,"animationstart",this._handleAnimationEvent),i.listen(e,"animationend",this._handleAnimationEvent),i.listen(e,"animationcancel",this._handleAnimationEvent)])}}ngAfterViewInit(){this._stateChanges=this.datepicker.stateChanges.subscribe(()=>{this._changeDetectorRef.markForCheck()}),this._calendar.focusActiveCell()}ngOnDestroy(){clearTimeout(this._animationFallback),this._eventCleanups?.forEach(e=>e()),this._stateChanges?.unsubscribe(),this._animationDone.complete()}_handleUserSelection(e){let i=this._model.selection,r=e.value,o=i instanceof ua;if(o&&this._rangeSelectionStrategy){let a=this._rangeSelectionStrategy.selectionFinished(r,i,e.event);this._model.updateSelection(a,this)}else r&&(o||!this._dateAdapter.sameDate(r,i))&&this._model.add(r);(!this._model||this._model.isComplete())&&!this._actionsPortal&&this.datepicker.close()}_handleUserDragDrop(e){this._model.updateSelection(e.value,this)}_startExitAnimation(){this._elementRef.nativeElement.classList.add("mat-datepicker-content-exit"),this._animationsDisabled?this._animationDone.next():(clearTimeout(this._animationFallback),this._animationFallback=setTimeout(()=>{this._isAnimating||this._animationDone.next()},200))}_handleAnimationEvent=e=>{let i=this._elementRef.nativeElement;e.target!==i||!e.animationName.startsWith("_mat-datepicker-content")||(clearTimeout(this._animationFallback),this._isAnimating=e.type==="animationstart",i.classList.toggle("mat-datepicker-content-animating",this._isAnimating),this._isAnimating||this._animationDone.next())};_getSelected(){return this._model.selection}_applyPendingSelection(){this._model!==this._globalModel&&this._globalModel.updateSelection(this._model.selection,this)}_assignActions(e,i){this._model=e?this._globalModel.clone():this._globalModel,this._actionsPortal=e,i&&this._changeDetectorRef.detectChanges()}static \u0275fac=function(i){return new(i||t)};static \u0275cmp=E({type:t,selectors:[["mat-datepicker-content"]],viewQuery:function(i,r){if(i&1&&ie(rA,5),i&2){let o;B(o=j())&&(r._calendar=o.first)}},hostAttrs:[1,"mat-datepicker-content"],hostVars:6,hostBindings:function(i,r){i&2&&(it(r.color?"mat-"+r.color:""),G("mat-datepicker-content-touch",r.datepicker.touchUi)("mat-datepicker-content-animations-enabled",!r._animationsDisabled))},inputs:{color:"color"},exportAs:["matDatepickerContent"],decls:5,vars:26,consts:[["cdkTrapFocus","","role","dialog",1,"mat-datepicker-content-container"],[3,"yearSelected","monthSelected","viewChanged","_userSelection","_userDragDrop","id","startAt","startView","minDate","maxDate","dateFilter","headerComponent","selected","dateClass","comparisonStart","comparisonEnd","startDateAccessibleName","endDateAccessibleName"],[3,"cdkPortalOutlet"],["type","button","matButton","elevated",1,"mat-datepicker-close-button",3,"focus","blur","click","color"]],template:function(i,r){i&1&&(h(0,"div",0)(1,"mat-calendar",1),S("yearSelected",function(a){return r.datepicker._selectYear(a)})("monthSelected",function(a){return r.datepicker._selectMonth(a)})("viewChanged",function(a){return r.datepicker._viewChanged(a)})("_userSelection",function(a){return r._handleUserSelection(a)})("_userDragDrop",function(a){return r._handleUserDragDrop(a)}),p(),R(2,zbe,0,0,"ng-template",2),h(3,"button",3),S("focus",function(){return r._closeButtonFocused=!0})("blur",function(){return r._closeButtonFocused=!1})("click",function(){return r.datepicker.close()}),_(4),p()()),i&2&&(G("mat-datepicker-content-container-with-custom-header",r.datepicker.calendarHeaderComponent)("mat-datepicker-content-container-with-actions",r._actionsPortal),X("aria-modal",!0)("aria-labelledby",r._dialogLabelId??void 0),g(),it(r.datepicker.panelClass),y("id",r.datepicker.id)("startAt",r.datepicker.startAt)("startView",r.datepicker.startView)("minDate",r.datepicker._getMinDate())("maxDate",r.datepicker._getMaxDate())("dateFilter",r.datepicker._getDateFilter())("headerComponent",r.datepicker.calendarHeaderComponent)("selected",r._getSelected())("dateClass",r.datepicker.dateClass)("comparisonStart",r.comparisonStart)("comparisonEnd",r.comparisonEnd)("startDateAccessibleName",r.startDateAccessibleName)("endDateAccessibleName",r.endDateAccessibleName),g(),y("cdkPortalOutlet",r._actionsPortal),g(),G("cdk-visually-hidden",!r._closeButtonFocused),y("color",r.color||"primary"),g(),H(r._closeButtonText))},dependencies:[vk,rA,yr,kt],styles:[`@keyframes _mat-datepicker-content-dropdown-enter{from{opacity:0;transform:scaleY(0.8)}to{opacity:1;transform:none}}@keyframes _mat-datepicker-content-dialog-enter{from{opacity:0;transform:scale(0.8)}to{opacity:1;transform:none}}@keyframes _mat-datepicker-content-exit{from{opacity:1}to{opacity:0}}.mat-datepicker-content{display:block;background-color:var(--mat-datepicker-calendar-container-background-color, var(--mat-sys-surface-container-high));color:var(--mat-datepicker-calendar-container-text-color, var(--mat-sys-on-surface));box-shadow:var(--mat-datepicker-calendar-container-elevation-shadow, 0px 0px 0px 0px rgba(0, 0, 0, 0.2), 0px 0px 0px 0px rgba(0, 0, 0, 0.14), 0px 0px 0px 0px rgba(0, 0, 0, 0.12));border-radius:var(--mat-datepicker-calendar-container-shape, var(--mat-sys-corner-large))}.mat-datepicker-content.mat-datepicker-content-animations-enabled{animation:_mat-datepicker-content-dropdown-enter 120ms cubic-bezier(0, 0, 0.2, 1)}.mat-datepicker-content .mat-calendar{width:296px;height:354px}.mat-datepicker-content .mat-datepicker-content-container-with-custom-header .mat-calendar{height:auto}.mat-datepicker-content .mat-datepicker-close-button{position:absolute;top:100%;left:0;margin-top:8px}.mat-datepicker-content-animating .mat-datepicker-content .mat-datepicker-close-button{display:none}.mat-datepicker-content-container{display:flex;flex-direction:column;justify-content:space-between}.mat-datepicker-content-touch{display:block;max-height:80vh;box-shadow:var(--mat-datepicker-calendar-container-touch-elevation-shadow, 0px 0px 0px 0px rgba(0, 0, 0, 0.2), 0px 0px 0px 0px rgba(0, 0, 0, 0.14), 0px 0px 0px 0px rgba(0, 0, 0, 0.12));border-radius:var(--mat-datepicker-calendar-container-touch-shape, var(--mat-sys-corner-extra-large));position:relative;overflow:visible}.mat-datepicker-content-touch.mat-datepicker-content-animations-enabled{animation:_mat-datepicker-content-dialog-enter 150ms cubic-bezier(0, 0, 0.2, 1)}.mat-datepicker-content-touch .mat-datepicker-content-container{min-height:312px;max-height:788px;min-width:250px;max-width:750px}.mat-datepicker-content-touch .mat-calendar{width:100%;height:auto}.mat-datepicker-content-exit.mat-datepicker-content-animations-enabled{animation:_mat-datepicker-content-exit 100ms linear}@media all and (orientation: landscape){.mat-datepicker-content-touch .mat-datepicker-content-container{width:64vh;height:80vh}}@media all and (orientation: portrait){.mat-datepicker-content-touch .mat-datepicker-content-container{width:80vw;height:100vw}.mat-datepicker-content-touch .mat-datepicker-content-container-with-actions{height:115vw}} -`],encapsulation:2,changeDetection:0})}return t})(),IU=(()=>{class t{_injector=u(de);_viewContainerRef=u(nt);_dateAdapter=u(Li,{optional:!0});_dir=u(Vt,{optional:!0});_model=u(w_);_animationsDisabled=Ye();_scrollStrategy=u(LU);_inputStateChanges=ke.EMPTY;_document=u(ge);calendarHeaderComponent;get startAt(){return this._startAt||(this.datepickerInput?this.datepickerInput.getStartValue():null)}set startAt(e){this._startAt=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e))}_startAt;startView="month";get color(){return this._color||(this.datepickerInput?this.datepickerInput.getThemePalette():void 0)}set color(e){this._color=e}_color;touchUi=!1;get disabled(){return this._disabled===void 0&&this.datepickerInput?this.datepickerInput.disabled:!!this._disabled}set disabled(e){e!==this._disabled&&(this._disabled=e,this.stateChanges.next(void 0))}_disabled;xPosition="start";yPosition="below";restoreFocus=!0;yearSelected=new U;monthSelected=new U;viewChanged=new U(!0);dateClass;openedStream=new U;closedStream=new U;get panelClass(){return this._panelClass}set panelClass(e){this._panelClass=$L(e)}_panelClass;get opened(){return this._opened}set opened(e){e?this.open():this.close()}_opened=!1;id=u(Ze).getId("mat-datepicker-");_getMinDate(){return this.datepickerInput&&this.datepickerInput.min}_getMaxDate(){return this.datepickerInput&&this.datepickerInput.max}_getDateFilter(){return this.datepickerInput&&this.datepickerInput.dateFilter}_overlayRef;_componentRef;_focusedElementBeforeOpen=null;_backdropHarnessClass=`${this.id}-backdrop`;_actionsPortal;datepickerInput;stateChanges=new z;_changeDetectorRef=u(ye);constructor(){this._dateAdapter,this._model.selectionChanged.subscribe(()=>{this._changeDetectorRef.markForCheck()})}ngOnChanges(e){let i=e.xPosition||e.yPosition;if(i&&!i.firstChange&&this._overlayRef){let r=this._overlayRef.getConfig().positionStrategy;r instanceof _h&&(this._setConnectedPositions(r),this.opened&&this._overlayRef.updatePosition())}this.stateChanges.next(void 0)}ngOnDestroy(){this._destroyOverlay(),this.close(),this._inputStateChanges.unsubscribe(),this.stateChanges.complete()}select(e){this._model.add(e)}_selectYear(e){this.yearSelected.emit(e)}_selectMonth(e){this.monthSelected.emit(e)}_viewChanged(e){this.viewChanged.emit(e)}registerInput(e){return this.datepickerInput,this._inputStateChanges.unsubscribe(),this.datepickerInput=e,this._inputStateChanges=e.stateChanges.subscribe(()=>this.stateChanges.next(void 0)),this._model}registerActions(e){this._actionsPortal,this._actionsPortal=e,this._componentRef?.instance._assignActions(e,!0)}removeActions(e){e===this._actionsPortal&&(this._actionsPortal=null,this._componentRef?.instance._assignActions(null,!0))}open(){this._opened||this.disabled||this._componentRef?.instance._isAnimating||(this.datepickerInput,this._focusedElementBeforeOpen=_o(),this._openOverlay(),this._opened=!0,this.openedStream.emit())}close(){if(!this._opened||this._componentRef?.instance._isAnimating)return;let e=this.restoreFocus&&this._focusedElementBeforeOpen&&typeof this._focusedElementBeforeOpen.focus=="function",i=()=>{this._opened&&(this._opened=!1,this.closedStream.emit())};if(this._componentRef){let{instance:r,location:o}=this._componentRef;r._animationDone.pipe(lt(1)).subscribe(()=>{let a=this._document.activeElement;e&&(!a||a===this._document.activeElement||o.nativeElement.contains(a))&&this._focusedElementBeforeOpen.focus(),this._focusedElementBeforeOpen=null,this._destroyOverlay()}),r._startExitAnimation()}e?setTimeout(i):i()}_applyPendingSelection(){this._componentRef?.instance?._applyPendingSelection()}_forwardContentValues(e){e.datepicker=this,e.color=this.color,e._dialogLabelId=this.datepickerInput.getOverlayLabelId(),e._assignActions(this._actionsPortal,!1)}_openOverlay(){this._destroyOverlay();let e=this.touchUi,i=new Zr(VU,this._viewContainerRef),r=this._overlayRef=Nr(this._injector,new Fr({positionStrategy:e?this._getDialogStrategy():this._getDropdownStrategy(),hasBackdrop:!0,backdropClass:[e?"cdk-overlay-dark-backdrop":"mat-overlay-transparent-backdrop",this._backdropHarnessClass],direction:this._dir||"ltr",scrollStrategy:e?uc(this._injector):this._scrollStrategy(),panelClass:`mat-datepicker-${e?"dialog":"popup"}`,disableAnimations:this._animationsDisabled}));this._getCloseStream(r).subscribe(o=>{o&&o.preventDefault(),this.close()}),r.keydownEvents().subscribe(o=>{let a=o.keyCode;(a===38||a===40||a===37||a===39||a===33||a===34)&&o.preventDefault()}),this._componentRef=r.attach(i),this._forwardContentValues(this._componentRef.instance),e||pt(()=>{r.updatePosition()},{injector:this._injector})}_destroyOverlay(){this._overlayRef&&(this._overlayRef.dispose(),this._overlayRef=this._componentRef=null)}_getDialogStrategy(){return Ds(this._injector).centerHorizontally().centerVertically()}_getDropdownStrategy(){let e=Fa(this._injector,this.datepickerInput.getConnectedOverlayOrigin()).withTransformOriginOn(".mat-datepicker-content").withFlexibleDimensions(!1).withViewportMargin(8).withLockedPosition();return this._setConnectedPositions(e)}_setConnectedPositions(e){let i=this.xPosition==="end"?"end":"start",r=i==="start"?"end":"start",o=this.yPosition==="above"?"bottom":"top",a=o==="top"?"bottom":"top";return e.withPositions([{originX:i,originY:a,overlayX:i,overlayY:o},{originX:i,originY:o,overlayX:i,overlayY:a},{originX:r,originY:a,overlayX:r,overlayY:o},{originX:r,originY:o,overlayX:r,overlayY:a}])}_getCloseStream(e){let i=["ctrlKey","shiftKey","metaKey"];return Je(e.backdropClick(),e.detachments(),e.keydownEvents().pipe(ce(r=>r.keyCode===27&&!Ft(r)||this.datepickerInput&&Ft(r,"altKey")&&r.keyCode===38&&i.every(o=>!Ft(r,o)))))}static \u0275fac=function(i){return new(i||t)};static \u0275dir=F({type:t,inputs:{calendarHeaderComponent:"calendarHeaderComponent",startAt:"startAt",startView:"startView",color:"color",touchUi:[2,"touchUi","touchUi",V],disabled:[2,"disabled","disabled",V],xPosition:"xPosition",yPosition:"yPosition",restoreFocus:[2,"restoreFocus","restoreFocus",V],dateClass:"dateClass",panelClass:"panelClass",opened:[2,"opened","opened",V]},outputs:{yearSelected:"yearSelected",monthSelected:"monthSelected",viewChanged:"viewChanged",openedStream:"opened",closedStream:"closed"},features:[Ae]})}return t})(),BU=(()=>{class t extends IU{static \u0275fac=(()=>{let e;return function(r){return(e||(e=fe(t)))(r||t)}})();static \u0275cmp=E({type:t,selectors:[["mat-datepicker"]],exportAs:["matDatepicker"],features:[Ce([OU,{provide:IU,useExisting:t}]),le],decls:0,vars:0,template:function(i,r){},encapsulation:2,changeDetection:0})}return t})(),lp=class{target;targetElement;value;constructor(n,e){this.target=n,this.targetElement=e,this.value=this.target.value}},tve=(()=>{class t{_elementRef=u(q);_dateAdapter=u(Li,{optional:!0});_dateFormats=u(xs,{optional:!0});_isInitialized;get value(){return this._model?this._getValueFromModel(this._model.selection):this._pendingValue}set value(e){this._assignValueProgrammatically(e)}_model;get disabled(){return!!this._disabled||this._parentDisabled()}set disabled(e){let i=e,r=this._elementRef.nativeElement;this._disabled!==i&&(this._disabled=i,this.stateChanges.next(void 0)),i&&this._isInitialized&&r.blur&&r.blur()}_disabled;dateChange=new U;dateInput=new U;stateChanges=new z;_onTouched=()=>{};_validatorOnChange=()=>{};_cvaOnChange=()=>{};_valueChangesSubscription=ke.EMPTY;_localeSubscription=ke.EMPTY;_pendingValue;_parseValidator=()=>this._lastValueValid?null:{matDatepickerParse:{text:this._elementRef.nativeElement.value}};_filterValidator=e=>{let i=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e.value));return!i||this._matchesFilter(i)?null:{matDatepickerFilter:!0}};_minValidator=e=>{let i=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e.value)),r=this._getMinDate();return!r||!i||this._dateAdapter.compareDate(r,i)<=0?null:{matDatepickerMin:{min:r,actual:i}}};_maxValidator=e=>{let i=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e.value)),r=this._getMaxDate();return!r||!i||this._dateAdapter.compareDate(r,i)>=0?null:{matDatepickerMax:{max:r,actual:i}}};_getValidators(){return[this._parseValidator,this._minValidator,this._maxValidator,this._filterValidator]}_registerModel(e){this._model=e,this._valueChangesSubscription.unsubscribe(),this._pendingValue&&this._assignValue(this._pendingValue),this._valueChangesSubscription=this._model.selectionChanged.subscribe(i=>{if(this._shouldHandleChangeEvent(i)){let r=this._getValueFromModel(i.selection);this._lastValueValid=this._isValidValue(r),this._cvaOnChange(r),this._onTouched(),this._formatValue(r),this.dateInput.emit(new lp(this,this._elementRef.nativeElement)),this.dateChange.emit(new lp(this,this._elementRef.nativeElement))}})}_lastValueValid=!1;constructor(){this._localeSubscription=this._dateAdapter.localeChanges.subscribe(()=>{this._assignValueProgrammatically(this.value)})}ngAfterViewInit(){this._isInitialized=!0}ngOnChanges(e){ive(e,this._dateAdapter)&&this.stateChanges.next(void 0)}ngOnDestroy(){this._valueChangesSubscription.unsubscribe(),this._localeSubscription.unsubscribe(),this.stateChanges.complete()}registerOnValidatorChange(e){this._validatorOnChange=e}validate(e){return this._validator?this._validator(e):null}writeValue(e){this._assignValueProgrammatically(e)}registerOnChange(e){this._cvaOnChange=e}registerOnTouched(e){this._onTouched=e}setDisabledState(e){this.disabled=e}_onKeydown(e){let i=["ctrlKey","shiftKey","metaKey"];Ft(e,"altKey")&&e.keyCode===40&&i.every(o=>!Ft(e,o))&&!this._elementRef.nativeElement.readOnly&&(this._openPopup(),e.preventDefault())}_onInput(e){let i=e.target.value,r=this._lastValueValid,o=this._dateAdapter.parse(i,this._dateFormats.parse.dateInput);this._lastValueValid=this._isValidValue(o),o=this._dateAdapter.getValidDateOrNull(o);let a=!this._dateAdapter.sameDate(o,this.value);!o||a?this._cvaOnChange(o):(i&&!this.value&&this._cvaOnChange(o),r!==this._lastValueValid&&this._validatorOnChange()),a&&(this._assignValue(o),this.dateInput.emit(new lp(this,this._elementRef.nativeElement)))}_onChange(){this.dateChange.emit(new lp(this,this._elementRef.nativeElement))}_onBlur(){this.value&&this._formatValue(this.value),this._onTouched()}_formatValue(e){this._elementRef.nativeElement.value=e!=null?this._dateAdapter.format(e,this._dateFormats.display.dateInput):""}_assignValue(e){this._model?(this._assignValueToModel(e),this._pendingValue=null):this._pendingValue=e}_isValidValue(e){return!e||this._dateAdapter.isValid(e)}_parentDisabled(){return!1}_assignValueProgrammatically(e){e=this._dateAdapter.deserialize(e),this._lastValueValid=this._isValidValue(e),e=this._dateAdapter.getValidDateOrNull(e),this._assignValue(e),this._formatValue(e)}_matchesFilter(e){let i=this._getDateFilter();return!i||i(e)}static \u0275fac=function(i){return new(i||t)};static \u0275dir=F({type:t,inputs:{value:"value",disabled:[2,"disabled","disabled",V]},outputs:{dateChange:"dateChange",dateInput:"dateInput"},features:[Ae]})}return t})();function ive(t,n){let e=Object.keys(t);for(let i of e){let{previousValue:r,currentValue:o}=t[i];if(n.isDateInstance(r)&&n.isDateInstance(o)){if(!n.sameDate(r,o))return!0}else return!0}return!1}var nve={provide:tr,useExisting:Kt(()=>Cw),multi:!0},rve={provide:ea,useExisting:Kt(()=>Cw),multi:!0},Cw=(()=>{class t extends tve{_formField=u(Xo,{optional:!0});_closedSubscription=ke.EMPTY;_openedSubscription=ke.EMPTY;set matDatepicker(e){e&&(this._datepicker=e,this._ariaOwns.set(e.opened?e.id:null),this._closedSubscription=e.closedStream.subscribe(()=>{this._onTouched(),this._ariaOwns.set(null)}),this._openedSubscription=e.openedStream.subscribe(()=>{this._ariaOwns.set(e.id)}),this._registerModel(e.registerInput(this)))}_datepicker;_ariaOwns=he(null);get min(){return this._min}set min(e){let i=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e));this._dateAdapter.sameDate(i,this._min)||(this._min=i,this._validatorOnChange())}_min;get max(){return this._max}set max(e){let i=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e));this._dateAdapter.sameDate(i,this._max)||(this._max=i,this._validatorOnChange())}_max;get dateFilter(){return this._dateFilter}set dateFilter(e){let i=this._matchesFilter(this.value);this._dateFilter=e,this._matchesFilter(this.value)!==i&&this._validatorOnChange()}_dateFilter;_validator;constructor(){super(),this._validator=Le.compose(super._getValidators())}getConnectedOverlayOrigin(){return this._formField?this._formField.getConnectedOverlayOrigin():this._elementRef}getOverlayLabelId(){return this._formField?this._formField.getLabelId():this._elementRef.nativeElement.getAttribute("aria-labelledby")}getThemePalette(){return this._formField?this._formField.color:void 0}getStartValue(){return this.value}ngOnDestroy(){super.ngOnDestroy(),this._closedSubscription.unsubscribe(),this._openedSubscription.unsubscribe()}_openPopup(){this._datepicker&&this._datepicker.open()}_getValueFromModel(e){return e}_assignValueToModel(e){this._model&&this._model.updateSelection(e,this)}_getMinDate(){return this._min}_getMaxDate(){return this._max}_getDateFilter(){return this._dateFilter}_shouldHandleChangeEvent(e){return e.source!==this}static \u0275fac=function(i){return new(i||t)};static \u0275dir=F({type:t,selectors:[["input","matDatepicker",""]],hostAttrs:[1,"mat-datepicker-input"],hostVars:6,hostBindings:function(i,r){i&1&&S("input",function(a){return r._onInput(a)})("change",function(){return r._onChange()})("blur",function(){return r._onBlur()})("keydown",function(a){return r._onKeydown(a)}),i&2&&(si("disabled",r.disabled),X("aria-haspopup",r._datepicker?"dialog":null)("aria-owns",r._ariaOwns())("min",r.min?r._dateAdapter.toIso8601(r.min):null)("max",r.max?r._dateAdapter.toIso8601(r.max):null)("data-mat-calendar",r._datepicker?r._datepicker.id:null))},inputs:{matDatepicker:"matDatepicker",min:"min",max:"max",dateFilter:[0,"matDatepickerFilter","dateFilter"]},exportAs:["matDatepickerInput"],features:[Ce([nve,rve,{provide:wh,useExisting:t}]),le]})}return t})(),ove=(()=>{class t{static \u0275fac=function(i){return new(i||t)};static \u0275dir=F({type:t,selectors:[["","matDatepickerToggleIcon",""]]})}return t})(),oA=(()=>{class t{_intl=u(dp);_changeDetectorRef=u(ye);_stateChanges=ke.EMPTY;datepicker;tabIndex;ariaLabel;get disabled(){return this._disabled===void 0&&this.datepicker?this.datepicker.disabled:!!this._disabled}set disabled(e){this._disabled=e}_disabled;disableRipple;_customIcon;_button;constructor(){let e=u(new Ii("tabindex"),{optional:!0}),i=Number(e);this.tabIndex=i||i===0?i:null}ngOnChanges(e){e.datepicker&&this._watchStateChanges()}ngOnDestroy(){this._stateChanges.unsubscribe()}ngAfterContentInit(){this._watchStateChanges()}_open(e){this.datepicker&&!this.disabled&&(this.datepicker.open(),e.stopPropagation())}_watchStateChanges(){let e=this.datepicker?this.datepicker.stateChanges:Q(),i=this.datepicker&&this.datepicker.datepickerInput?this.datepicker.datepickerInput.stateChanges:Q(),r=this.datepicker?Je(this.datepicker.openedStream,this.datepicker.closedStream):Q();this._stateChanges.unsubscribe(),this._stateChanges=Je(this._intl.changes,e,i,r).subscribe(()=>this._changeDetectorRef.markForCheck())}static \u0275fac=function(i){return new(i||t)};static \u0275cmp=E({type:t,selectors:[["mat-datepicker-toggle"]],contentQueries:function(i,r,o){if(i&1&&xe(o,ove,5),i&2){let a;B(a=j())&&(r._customIcon=a.first)}},viewQuery:function(i,r){if(i&1&&ie(Ube,5),i&2){let o;B(o=j())&&(r._button=o.first)}},hostAttrs:[1,"mat-datepicker-toggle"],hostVars:8,hostBindings:function(i,r){i&1&&S("click",function(a){return r._open(a)}),i&2&&(X("tabindex",null)("data-mat-calendar",r.datepicker?r.datepicker.id:null),G("mat-datepicker-toggle-active",r.datepicker&&r.datepicker.opened)("mat-accent",r.datepicker&&r.datepicker.color==="accent")("mat-warn",r.datepicker&&r.datepicker.color==="warn"))},inputs:{datepicker:[0,"for","datepicker"],tabIndex:"tabIndex",ariaLabel:[0,"aria-label","ariaLabel"],disabled:[2,"disabled","disabled",V],disableRipple:"disableRipple"},exportAs:["matDatepickerToggle"],features:[Ae],ngContentSelectors:Wbe,decls:4,vars:7,consts:[["button",""],["matIconButton","","type","button",3,"tabIndex","disabled","disableRipple"],["viewBox","0 0 24 24","width","24px","height","24px","fill","currentColor","focusable","false","aria-hidden","true",1,"mat-datepicker-toggle-default-icon"],["d","M19 3h-1V1h-2v2H8V1H6v2H5c-1.11 0-1.99.9-1.99 2L3 19c0 1.1.89 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm0 16H5V8h14v11zM7 10h5v5H7z"]],template:function(i,r){i&1&&(Me($be),h(0,"button",1,0),N(2,Gbe,2,0,":svg:svg",2),oe(3),p()),i&2&&(y("tabIndex",r.disabled?-1:r.tabIndex)("disabled",r.disabled)("disableRipple",r.disableRipple),X("aria-haspopup",r.datepicker?"dialog":null)("aria-label",r.ariaLabel||r._intl.openCalendarLabel)("aria-expanded",r.datepicker?r.datepicker.opened:null),g(2),L(r._customIcon?-1:2))},dependencies:[ti],styles:[`.mat-datepicker-toggle{pointer-events:auto;color:var(--mat-datepicker-toggle-icon-color, var(--mat-sys-on-surface-variant))}.mat-datepicker-toggle button{color:inherit}.mat-datepicker-toggle-active{color:var(--mat-datepicker-toggle-active-state-icon-color, var(--mat-sys-primary))}@media(forced-colors: active){.mat-datepicker-toggle-default-icon{color:CanvasText}} -`],encapsulation:2,changeDetection:0})}return t})();var jU=(()=>{class t{static \u0275fac=function(i){return new(i||t)};static \u0275mod=ee({type:t});static \u0275inj=J({providers:[dp,eve],imports:[ze,er,ll,Co,we,VU,oA,NU,vr]})}return t})();function sve(t,n){t&1&&(h(0,"div",1),k(1,"mat-spinner"),p())}function lve(t,n){t&1&&(h(0,"mat-error"),_(1," Employee number is required "),p())}function cve(t,n){t&1&&(h(0,"mat-error"),_(1," First name is required "),p())}function dve(t,n){t&1&&(h(0,"mat-error"),_(1," Last name is required "),p())}function uve(t,n){t&1&&(h(0,"mat-error"),_(1," Date of birth is required "),p())}function mve(t,n){t&1&&(h(0,"mat-error"),_(1," Email is required "),p())}function hve(t,n){t&1&&(h(0,"mat-error"),_(1," Please enter a valid email "),p())}function pve(t,n){t&1&&(h(0,"mat-error"),_(1," Phone number is required "),p())}function fve(t,n){if(t&1&&(h(0,"mat-option",25),_(1),p()),t&2){let e=n.$implicit;y("value",e.value),g(),ve(" ",e.label," ")}}function gve(t,n){t&1&&(h(0,"mat-error"),_(1," Gender is required "),p())}function _ve(t,n){if(t&1&&(h(0,"mat-option",25),_(1),p()),t&2){let e=n.$implicit;y("value",e.id),g(),ve(" ",e.name," ")}}function bve(t,n){t&1&&(h(0,"mat-error"),_(1," Department is required "),p())}function vve(t,n){if(t&1&&(h(0,"mat-option",25),_(1),p()),t&2){let e=n.$implicit;y("value",e.id),g(),ve(" ",e.positionTitle," ")}}function yve(t,n){t&1&&(h(0,"mat-error"),_(1," Position is required "),p())}function xve(t,n){t&1&&(h(0,"mat-error"),_(1," Salary is required "),p())}function Cve(t,n){t&1&&(h(0,"mat-error"),_(1," Salary must be greater than 0 "),p())}var aA=(()=>{let n=class n{constructor(){this.fb=u(eo),this.router=u(Re),this.route=u(wi),this.snackBar=u(di),this.employeeService=u(ap),this.positionService=u(Bc),this.departmentService=u(Vs),this.loading=!1,this.isEditMode=!1,this.positions=[],this.departments=[],this.genderOptions=[{value:Ou.Male,label:"Male"},{value:Ou.Female,label:"Female"}]}ngOnInit(){this.initForm(),this.loadDependencies(),this.checkEditMode()}initForm(){this.employeeForm=this.fb.group({employeeNumber:["",[Le.required,Le.maxLength(50)]],prefix:["",Le.maxLength(10)],firstName:["",[Le.required,Le.maxLength(100)]],middleName:["",Le.maxLength(100)],lastName:["",[Le.required,Le.maxLength(100)]],birthday:[null,Le.required],gender:[Ou.Male,Le.required],email:["",[Le.required,Le.email,Le.maxLength(255)]],phone:["",[Le.required,Le.maxLength(20)]],salary:[0,[Le.required,Le.min(0)]],positionId:["",Le.required],departmentId:["",Le.required]})}loadDependencies(){this.departmentService.getAll().subscribe({next:i=>{this.departments=i},error:i=>{console.error("Error loading departments:",i),this.showMessage("Error loading departments")}}),this.positionService.getAll().subscribe({next:i=>{this.positions=i},error:i=>{console.error("Error loading positions:",i),this.showMessage("Error loading positions")}})}checkEditMode(){this.employeeId=this.route.snapshot.paramMap.get("id")||void 0,this.isEditMode=!!this.employeeId,this.isEditMode&&this.employeeId&&this.loadEmployee(this.employeeId)}loadEmployee(i){this.loading=!0,this.employeeService.getById(i).subscribe({next:r=>{this.employeeForm.patchValue({employeeNumber:r.employeeNumber,prefix:r.prefix,firstName:r.firstName,middleName:r.middleName,lastName:r.lastName,birthday:r.birthday||r.dateOfBirth,gender:r.gender,email:r.email,phone:r.phone||r.phoneNumber,salary:r.salary,positionId:r.positionId,departmentId:r.departmentId}),this.loading=!1},error:r=>{console.error("Error loading employee:",r),this.showMessage("Error loading employee"),this.loading=!1}})}onSubmit(){if(this.employeeForm.invalid){this.employeeForm.markAllAsTouched();return}if(this.loading=!0,this.isEditMode&&this.employeeId){let i=M({id:this.employeeId},this.employeeForm.value);this.employeeService.updateEmployee(i).subscribe({next:()=>{this.showMessage("Employee updated successfully"),this.router.navigate(["/employees",this.employeeId])},error:r=>{console.error("Error updating employee:",r),this.showMessage("Error updating employee"),this.loading=!1}})}else{let i=this.employeeForm.value;this.employeeService.createEmployee(i).subscribe({next:r=>{console.log("Employee created - Response:",r),console.log("Employee ID:",r?.id),this.showMessage("Employee created successfully"),r?.id?(console.log("Navigating to detail page:","/employees/"+r.id),this.router.navigate(["/employees",r.id])):(console.warn("No employee ID returned, navigating to list page"),this.router.navigate(["/employees"])),this.loading=!1},error:r=>{console.error("Error creating employee:",r),this.showMessage("Error creating employee"),this.loading=!1}})}}onCancel(){this.router.navigate(["/employees"])}showMessage(i){this.snackBar.open(i,"Close",{duration:3e3,horizontalPosition:"end",verticalPosition:"top"})}getFormTitle(){return this.isEditMode?"Edit Employee":"Create Employee"}};n.\u0275fac=function(r){return new(r||n)},n.\u0275cmp=E({type:n,selectors:[["app-employee-form"]],decls:94,vars:22,consts:[["dobPicker",""],[1,"loading-overlay"],[3,"ngSubmit","formGroup"],[1,"form-section"],[1,"form-row"],["appearance","outline"],["matInput","","formControlName","employeeNumber"],[4,"ngIf"],["matInput","","formControlName","prefix","placeholder","Mr., Mrs., Dr."],["matInput","","formControlName","firstName"],["matInput","","formControlName","middleName"],["matInput","","formControlName","lastName"],["matInput","","formControlName","birthday",3,"matDatepicker"],["matIconSuffix","",3,"for"],["matInput","","type","email","formControlName","email"],["matInput","","formControlName","phone"],["formControlName","gender"],[3,"value",4,"ngFor","ngForOf"],["formControlName","departmentId"],["formControlName","positionId"],["matInput","","type","number","formControlName","salary"],["matTextPrefix",""],[1,"form-actions"],["type","button","mat-stroked-button","",3,"click"],["type","submit","mat-raised-button","","color","primary",3,"disabled"],[3,"value"]],template:function(r,o){if(r&1){let a=Y();k(0,"page-header"),h(1,"mat-card")(2,"mat-card-header")(3,"mat-card-title"),_(4),p()(),h(5,"mat-card-content"),N(6,sve,2,0,"div",1),h(7,"form",2),S("ngSubmit",function(){return I(a),A(o.onSubmit())}),h(8,"div",3)(9,"h3"),_(10,"Personal Information"),p(),h(11,"div",4)(12,"mat-form-field",5)(13,"mat-label"),_(14,"Employee Number"),p(),k(15,"input",6),R(16,lve,2,0,"mat-error",7),p(),h(17,"mat-form-field",5)(18,"mat-label"),_(19,"Prefix"),p(),k(20,"input",8),p()(),h(21,"div",4)(22,"mat-form-field",5)(23,"mat-label"),_(24,"First Name"),p(),k(25,"input",9),R(26,cve,2,0,"mat-error",7),p(),h(27,"mat-form-field",5)(28,"mat-label"),_(29,"Middle Name"),p(),k(30,"input",10),p()(),h(31,"div",4)(32,"mat-form-field",5)(33,"mat-label"),_(34,"Last Name"),p(),k(35,"input",11),R(36,dve,2,0,"mat-error",7),p(),h(37,"mat-form-field",5)(38,"mat-label"),_(39,"Date of Birth"),p(),k(40,"input",12)(41,"mat-datepicker-toggle",13)(42,"mat-datepicker",null,0),R(44,uve,2,0,"mat-error",7),p()(),h(45,"div",4)(46,"mat-form-field",5)(47,"mat-label"),_(48,"Email"),p(),k(49,"input",14),R(50,mve,2,0,"mat-error",7)(51,hve,2,0,"mat-error",7),p(),h(52,"mat-form-field",5)(53,"mat-label"),_(54,"Phone Number"),p(),k(55,"input",15),R(56,pve,2,0,"mat-error",7),p()(),h(57,"div",4)(58,"mat-form-field",5)(59,"mat-label"),_(60,"Gender"),p(),h(61,"mat-select",16),R(62,fve,2,2,"mat-option",17),p(),R(63,gve,2,0,"mat-error",7),p()()(),h(64,"div",3)(65,"h3"),_(66,"Employment Information"),p(),h(67,"div",4)(68,"mat-form-field",5)(69,"mat-label"),_(70,"Department"),p(),h(71,"mat-select",18),R(72,_ve,2,2,"mat-option",17),p(),R(73,bve,2,0,"mat-error",7),p(),h(74,"mat-form-field",5)(75,"mat-label"),_(76,"Position"),p(),h(77,"mat-select",19),R(78,vve,2,2,"mat-option",17),p(),R(79,yve,2,0,"mat-error",7),p()(),h(80,"div",4)(81,"mat-form-field",5)(82,"mat-label"),_(83,"Salary"),p(),k(84,"input",20),h(85,"span",21),_(86,"$\xA0"),p(),R(87,xve,2,0,"mat-error",7)(88,Cve,2,0,"mat-error",7),p()()(),h(89,"div",22)(90,"button",23),S("click",function(){return I(a),A(o.onCancel())}),_(91," Cancel "),p(),h(92,"button",24),_(93),p()()()()()}if(r&2){let a,s,l,c,d,m,f,b,v,w,x,D,P=Se(43);g(4),H(o.getFormTitle()),g(2),L(o.loading?6:-1),g(),y("formGroup",o.employeeForm),g(9),y("ngIf",(a=o.employeeForm.get("employeeNumber"))==null?null:a.hasError("required")),g(10),y("ngIf",(s=o.employeeForm.get("firstName"))==null?null:s.hasError("required")),g(10),y("ngIf",(l=o.employeeForm.get("lastName"))==null?null:l.hasError("required")),g(4),y("matDatepicker",P),g(),y("for",P),g(3),y("ngIf",(c=o.employeeForm.get("birthday"))==null?null:c.hasError("required")),g(6),y("ngIf",(d=o.employeeForm.get("email"))==null?null:d.hasError("required")),g(),y("ngIf",(m=o.employeeForm.get("email"))==null?null:m.hasError("email")),g(5),y("ngIf",(f=o.employeeForm.get("phone"))==null?null:f.hasError("required")),g(6),y("ngForOf",o.genderOptions),g(),y("ngIf",(b=o.employeeForm.get("gender"))==null?null:b.hasError("required")),g(9),y("ngForOf",o.departments),g(),y("ngIf",(v=o.employeeForm.get("departmentId"))==null?null:v.hasError("required")),g(5),y("ngForOf",o.positions),g(),y("ngIf",(w=o.employeeForm.get("positionId"))==null?null:w.hasError("required")),g(8),y("ngIf",(x=o.employeeForm.get("salary"))==null?null:x.hasError("required")),g(),y("ngIf",(D=o.employeeForm.get("salary"))==null?null:D.hasError("min")),g(4),y("disabled",o.loading),g(),ve(" ",o.isEditMode?"Update":"Create"," ")}},dependencies:[gt,qr,li,zn,Jr,Qi,cu,ei,Xr,Ki,Lr,ze,kt,$t,zt,Ut,Jt,Xt,$i,Oi,sn,xo,nu,ru,rr,hn,fc,Na,xn,jU,BU,Cw,oA,ZL,Si,ki,pi,ni],styles:["mat-card[_ngcontent-%COMP%]{margin:16px;max-width:1200px}mat-card-header[_ngcontent-%COMP%]{padding:16px;border-bottom:1px solid rgba(0,0,0,.12);margin-bottom:24px}mat-card-header[_ngcontent-%COMP%] mat-card-title[_ngcontent-%COMP%]{font-size:20px;font-weight:500;margin:0}mat-card-content[_ngcontent-%COMP%]{padding:24px;position:relative}.loading-overlay[_ngcontent-%COMP%]{position:absolute;inset:0;background-color:#fffc;display:flex;align-items:center;justify-content:center;z-index:1000}form[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:24px}.form-section[_ngcontent-%COMP%] h3[_ngcontent-%COMP%]{font-size:16px;font-weight:500;margin:0 0 16px;color:#000000de}.form-row[_ngcontent-%COMP%]{display:grid;grid-template-columns:1fr 1fr;gap:16px;margin-bottom:8px}@media (max-width: 768px){.form-row[_ngcontent-%COMP%]{grid-template-columns:1fr}}mat-form-field[_ngcontent-%COMP%]{width:100%}mat-form-field.full-width[_ngcontent-%COMP%]{grid-column:1/-1}.form-actions[_ngcontent-%COMP%]{display:flex;justify-content:flex-end;gap:12px;margin-top:24px;padding-top:24px;border-top:1px solid rgba(0,0,0,.12)}.form-actions[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{min-width:120px}"]});let t=n;return t})();var HU=()=>["HRAdmin","Manager"],wve=()=>[5,10,25,50,100],Dve=()=>["HRAdmin"];function Eve(t,n){if(t&1){let e=Y();h(0,"button",14),S("click",function(){I(e);let r=C();return A(r.createDepartment())}),h(1,"mat-icon"),_(2,"add"),p(),_(3," Add Department "),p()}}function Mve(t,n){if(t&1&&(h(0,"mat-option",15),_(1),p()),t&2){let e=n.$implicit;y("value",e),g(),ve(" ",e," ")}}function kve(t,n){t&1&&(h(0,"div",16),k(1,"mat-spinner"),p())}function Sve(t,n){t&1&&(h(0,"th",25),_(1,"Name"),p())}function Tve(t,n){if(t&1&&(h(0,"td",26),_(1),p()),t&2){let e=n.$implicit;g(),H(e.name)}}function Ive(t,n){t&1&&(h(0,"th",25),_(1,"Actions"),p())}function Ave(t,n){if(t&1){let e=Y();h(0,"button",31),S("click",function(){I(e);let r=C().$implicit,o=C(2);return A(o.editDepartment(r))}),h(1,"mat-icon"),_(2,"edit"),p()()}}function Ove(t,n){if(t&1){let e=Y();h(0,"button",32),S("click",function(){I(e);let r=C().$implicit,o=C(2);return A(o.deleteDepartment(r))}),h(1,"mat-icon"),_(2,"delete"),p()()}}function Rve(t,n){if(t&1){let e=Y();h(0,"td",26)(1,"div",27)(2,"button",28),S("click",function(){let r=I(e).$implicit,o=C(2);return A(o.viewDepartment(r))}),h(3,"mat-icon"),_(4,"visibility"),p()(),R(5,Ave,3,0,"button",29)(6,Ove,3,0,"button",30),p()()}t&2&&(g(5),y("appHasRole",at(2,HU)),g(),y("appHasRole",at(3,Dve)))}function Pve(t,n){t&1&&k(0,"tr",33)}function Fve(t,n){t&1&&k(0,"tr",34)}function Nve(t,n){if(t&1&&(h(0,"tr",35)(1,"td",36)(2,"div",37)(3,"mat-icon"),_(4,"info"),p(),h(5,"p"),_(6,"No departments found"),p()()()()),t&2){let e=C(2);g(),X("colspan",e.displayedColumns.length)}}function Lve(t,n){if(t&1&&(h(0,"table",17),jt(1,18),R(2,Sve,2,0,"th",19)(3,Tve,2,1,"td",20),Lt(),jt(4,21),R(5,Ive,2,0,"th",19)(6,Rve,7,4,"td",20),Lt(),R(7,Pve,1,0,"tr",22)(8,Fve,1,0,"tr",23)(9,Nve,7,1,"tr",24),p()),t&2){let e=C();y("dataSource",e.departments),g(7),y("matHeaderRowDef",e.displayedColumns),g(),y("matRowDefColumns",e.displayedColumns),g(),y("ngIf",e.departments.length===0)}}var zU=(()=>{let n=class n{constructor(){this.departmentService=u(Vs),this.authService=u(Tt),this.router=u(Re),this.fb=u(eo),this.snackBar=u(di),this.dialog=u(En),this.departments=[],this.loading=!1,this.totalCount=0,this.pageSize=10,this.pageNumber=1,this.destroy$=new z,this.displayedColumns=["name","actions"]}ngOnInit(){this.initSearchForm(),this.setupAutocomplete(),this.setupAutoSubmit(),this.loadDepartments()}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete()}initSearchForm(){this.searchForm=this.fb.group({Name:[""]})}setupAutocomplete(){this.filteredNames$=this.searchForm.get("Name").valueChanges.pipe(He(""),Rt(300),Sn(),$e(i=>this.getAutocompleteOptions("Name",i)))}setupAutoSubmit(){this.searchForm.valueChanges.pipe(Rt(500),Sn((i,r)=>JSON.stringify(i)===JSON.stringify(r)),Te(this.destroy$)).subscribe(()=>{this.pageNumber=1,this.loadDepartments()})}getAutocompleteOptions(i,r){if(!r||r.length<2)return Q([]);let o={PageNumber:1,PageSize:10,[i]:r};return this.departmentService.getAllPaged(o).pipe(se(a=>a.value.map(l=>l.name).filter((l,c,d)=>l&&d.indexOf(l)===c)),fi(()=>Q([])))}loadDepartments(){this.loading=!0;let i=M({PageNumber:this.pageNumber,PageSize:this.pageSize},this.searchForm.value);Object.keys(i).forEach(r=>{(i[r]===""||i[r]===null||i[r]===void 0)&&delete i[r]}),this.departmentService.getAllPaged(i).subscribe({next:r=>{this.departments=r.value,this.totalCount=r.recordsTotal,this.loading=!1},error:r=>{console.error("Error loading departments:",r),this.loading=!1}})}onClearSearch(){this.searchForm.reset(),this.pageNumber=1,this.paginator&&(this.paginator.pageIndex=0),this.loadDepartments()}onPageChange(i){this.pageSize=i.pageSize,this.pageNumber=i.pageIndex+1,this.loadDepartments()}viewDepartment(i){this.router.navigate(["/departments",i.id])}editDepartment(i){this.router.navigate(["/departments","edit",i.id])}deleteDepartment(i){this.dialog.open(Er,{width:"400px",data:{title:"Delete Department",message:`Are you sure you want to delete "${i.name}"? This action cannot be undone.`,confirmText:"Delete",cancelText:"Cancel"}}).afterClosed().subscribe(o=>{o&&this.departmentService.delete(i.id).subscribe({next:()=>{this.showMessage(`"${i.name}" has been deleted.`),this.loadDepartments()},error:a=>{console.error("Error deleting department:",a),this.showMessage("Failed to delete department. Please try again.")}})})}createDepartment(){this.router.navigate(["/departments","create"])}canEdit(){return this.authService.isHRAdmin()||this.authService.isManager()}canDelete(){return this.authService.isHRAdmin()}canCreate(){return this.authService.isHRAdmin()||this.authService.isManager()}showMessage(i){this.snackBar.open(i,"Close",{duration:3e3,horizontalPosition:"end",verticalPosition:"top"})}};n.\u0275fac=function(r){return new(r||n)},n.\u0275cmp=E({type:n,selectors:[["app-department-list"]],viewQuery:function(r,o){if(r&1&&ie(ir,5),r&2){let a;B(a=j())&&(o.paginator=a.first)}},decls:27,vars:14,consts:[["autoName","matAutocomplete"],[1,"flex-spacer"],["mat-raised-button","","color","primary",3,"click",4,"appHasRole"],[1,"search-form",3,"formGroup"],[1,"search-row"],["appearance","outline"],["matInput","","formControlName","Name",3,"matAutocomplete"],[3,"value",4,"ngFor","ngForOf"],[1,"search-buttons"],["mat-raised-button","","color","accent","type","button",3,"click"],[1,"table-container"],["class","loading-spinner",4,"ngIf"],["mat-table","","class","department-table",3,"dataSource",4,"ngIf"],["showFirstLastButtons","",3,"page","length","pageSize","pageSizeOptions","pageIndex"],["mat-raised-button","","color","primary",3,"click"],[3,"value"],[1,"loading-spinner"],["mat-table","",1,"department-table",3,"dataSource"],["matColumnDef","name"],["mat-header-cell","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","actions"],["mat-header-row","",4,"matHeaderRowDef"],["mat-row","",4,"matRowDef","matRowDefColumns"],["class","mat-row",4,"ngIf"],["mat-header-cell",""],["mat-cell",""],[1,"action-buttons"],["mat-icon-button","","color","primary","matTooltip","View Details",3,"click"],["mat-icon-button","","color","accent","matTooltip","Edit Department",3,"click",4,"appHasRole"],["mat-icon-button","","color","warn","matTooltip","Delete Department",3,"click",4,"appHasRole"],["mat-icon-button","","color","accent","matTooltip","Edit Department",3,"click"],["mat-icon-button","","color","warn","matTooltip","Delete Department",3,"click"],["mat-header-row",""],["mat-row",""],[1,"mat-row"],[1,"mat-cell"],[1,"no-data"]],template:function(r,o){if(r&1){let a=Y();k(0,"page-header"),h(1,"mat-card")(2,"mat-card-header")(3,"mat-card-title"),_(4,"Department Directory"),p(),k(5,"div",1),R(6,Eve,4,0,"button",2),p(),h(7,"mat-card-content")(8,"form",3)(9,"div",4)(10,"mat-form-field",5)(11,"mat-label"),_(12,"Department Name"),p(),k(13,"input",6),h(14,"mat-autocomplete",null,0),R(16,Mve,2,2,"mat-option",7),me(17,"async"),p()(),h(18,"div",8)(19,"button",9),S("click",function(){return I(a),A(o.onClearSearch())}),h(20,"mat-icon"),_(21,"clear"),p(),_(22," Clear Filters "),p()()()(),h(23,"div",10),R(24,kve,2,0,"div",11)(25,Lve,10,4,"table",12),p(),h(26,"mat-paginator",13),S("page",function(l){return I(a),A(o.onPageChange(l))}),p()()()}if(r&2){let a=Se(15);g(6),y("appHasRole",at(12,HU)),g(2),y("formGroup",o.searchForm),g(5),y("matAutocomplete",a),g(3),y("ngForOf",Oe(17,10,o.filteredNames$)),g(8),y("ngIf",o.loading),g(),y("ngIf",!o.loading),g(),y("length",o.totalCount)("pageSize",o.pageSize)("pageSizeOptions",at(13,wve))("pageIndex",o.pageNumber-1)}},dependencies:[gt,qr,li,zn,Jr,Qi,ei,Xr,Ki,Lr,ze,kt,ti,$t,zt,Ut,Jt,Xt,ot,mt,rr,hn,Oi,sn,$i,Zc,Hc,Uc,qc,$c,zc,Yc,Wc,Gc,Qc,Kc,_c,ir,Si,ki,Br,Eo,vw,bw,xn,y_,pi,Mn,ni,Un,rn],styles:["mat-card[_ngcontent-%COMP%]{margin:16px}mat-card-header[_ngcontent-%COMP%]{display:flex;align-items:center;margin-bottom:16px;padding:16px;border-bottom:1px solid rgba(0,0,0,.12)}mat-card-header[_ngcontent-%COMP%] mat-card-title[_ngcontent-%COMP%]{font-size:20px;font-weight:500;margin:0}mat-card-header[_ngcontent-%COMP%] .flex-spacer[_ngcontent-%COMP%]{flex:1 1 auto}mat-card-header[_ngcontent-%COMP%] button[_ngcontent-%COMP%] mat-icon[_ngcontent-%COMP%]{margin-right:4px}mat-card-content[_ngcontent-%COMP%]{padding:0}.search-form[_ngcontent-%COMP%]{padding:16px;background-color:#f5f5f5;margin-bottom:0}.search-form[_ngcontent-%COMP%] .search-row[_ngcontent-%COMP%]{display:grid;grid-template-columns:1fr auto;gap:16px;align-items:start}.search-form[_ngcontent-%COMP%] .search-row[_ngcontent-%COMP%] mat-form-field[_ngcontent-%COMP%]{width:100%}.search-form[_ngcontent-%COMP%] .search-row[_ngcontent-%COMP%] .search-buttons[_ngcontent-%COMP%]{display:flex;gap:8px;align-items:center}.search-form[_ngcontent-%COMP%] .search-row[_ngcontent-%COMP%] .search-buttons[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{white-space:nowrap}.search-form[_ngcontent-%COMP%] .search-row[_ngcontent-%COMP%] .search-buttons[_ngcontent-%COMP%] button[_ngcontent-%COMP%] mat-icon[_ngcontent-%COMP%]{margin-right:4px}.table-container[_ngcontent-%COMP%]{position:relative;min-height:300px;overflow-x:auto}.loading-spinner[_ngcontent-%COMP%]{display:flex;justify-content:center;align-items:center;min-height:300px}.department-table[_ngcontent-%COMP%]{width:100%}.department-table[_ngcontent-%COMP%] th[_ngcontent-%COMP%]{font-weight:600;font-size:14px;color:#000000de}.department-table[_ngcontent-%COMP%] td[_ngcontent-%COMP%]{font-size:14px;color:#000000de}.department-table[_ngcontent-%COMP%] .mat-column-name[_ngcontent-%COMP%]{min-width:200px}.department-table[_ngcontent-%COMP%] .mat-column-actions[_ngcontent-%COMP%]{width:120px;text-align:right}.department-table[_ngcontent-%COMP%] .mat-column-actions[_ngcontent-%COMP%] .action-buttons[_ngcontent-%COMP%]{display:flex;justify-content:flex-end;align-items:center;gap:4px}.no-data[_ngcontent-%COMP%]{display:flex;flex-direction:column;align-items:center;justify-content:center;padding:48px 16px;color:#0000008a}.no-data[_ngcontent-%COMP%] mat-icon[_ngcontent-%COMP%]{font-size:48px;width:48px;height:48px;margin-bottom:16px}.no-data[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{margin:0;font-size:16px}mat-paginator[_ngcontent-%COMP%]{border-top:1px solid rgba(0,0,0,.12)}"]});let t=n;return t})();var Vve=()=>["HRAdmin","Manager"],Bve=()=>["HRAdmin"];function jve(t,n){if(t&1){let e=Y();h(0,"button",10),S("click",function(){I(e);let r=C(2);return A(r.editDepartment())}),h(1,"mat-icon"),_(2,"edit"),p(),_(3," Edit "),p()}}function Hve(t,n){if(t&1){let e=Y();h(0,"button",11),S("click",function(){I(e);let r=C(2);return A(r.deleteDepartment())}),h(1,"mat-icon"),_(2,"delete"),p(),_(3," Delete "),p()}}function zve(t,n){if(t&1&&(h(0,"mat-list-item")(1,"span",7),_(2,"Created At"),p(),h(3,"span",8),_(4),me(5,"date"),p()()),t&2){let e=C(3);g(4),H(Ni(5,1,e.department.createdAt,"medium"))}}function Uve(t,n){if(t&1&&(h(0,"mat-list-item")(1,"span",7),_(2,"Last Modified At"),p(),h(3,"span",8),_(4),me(5,"date"),p()()),t&2){let e=C(3);g(4),H(Ni(5,1,e.department.lastModifiedAt,"medium"))}}function $ve(t,n){if(t&1&&(h(0,"div",6)(1,"h3"),_(2,"Audit Information"),p(),k(3,"mat-divider"),h(4,"mat-list"),R(5,zve,6,4,"mat-list-item",0)(6,Uve,6,4,"mat-list-item",0),p()()),t&2){let e=C(2);g(5),y("ngIf",e.department.createdAt),g(),y("ngIf",e.department.lastModifiedAt)}}function Wve(t,n){if(t&1){let e=Y();h(0,"mat-card")(1,"mat-card-header")(2,"mat-card-title"),_(3,"Department Details"),p(),k(4,"div",1),R(5,jve,4,0,"button",2)(6,Hve,4,0,"button",3),h(7,"button",4),S("click",function(){I(e);let r=C();return A(r.goBack())}),h(8,"mat-icon"),_(9,"arrow_back"),p(),_(10," Back to List "),p()(),h(11,"mat-card-content")(12,"div",5)(13,"div",6)(14,"h3"),_(15,"Basic Information"),p(),k(16,"mat-divider"),h(17,"mat-list")(18,"mat-list-item")(19,"span",7),_(20,"Department Name"),p(),h(21,"span",8),_(22),p()()()(),R(23,$ve,7,2,"div",9),p()()()}if(t&2){let e=C();g(5),y("appHasRole",at(4,Vve)),g(),y("appHasRole",at(5,Bve)),g(16),H(e.department.name),g(),y("ngIf",e.department.createdAt||e.department.lastModifiedAt)}}function Gve(t,n){t&1&&(h(0,"mat-card")(1,"mat-card-content")(2,"div",12),k(3,"mat-spinner"),p()()())}function qve(t,n){if(t&1){let e=Y();h(0,"mat-card")(1,"mat-card-content")(2,"div",13)(3,"mat-icon"),_(4,"error"),p(),h(5,"p"),_(6,"Department not found"),p(),h(7,"button",14),S("click",function(){I(e);let r=C();return A(r.goBack())}),_(8," Go Back "),p()()()()}}var UU=(()=>{let n=class n{constructor(){this.departmentService=u(Vs),this.authService=u(Tt),this.route=u(wi),this.router=u(Re),this.snackBar=u(di),this.dialog=u(En),this.loading=!1}ngOnInit(){let i=this.route.snapshot.paramMap.get("id");i&&this.loadDepartment(i)}loadDepartment(i){this.loading=!0,this.departmentService.getById(i).subscribe({next:r=>{this.department=r,this.loading=!1},error:r=>{console.error("Error loading department:",r),this.showMessage("Error loading department"),this.loading=!1,this.router.navigate(["/departments"])}})}editDepartment(){this.router.navigate(["/departments","edit",this.department.id])}deleteDepartment(){this.dialog.open(Er,{width:"400px",data:{title:"Delete Department",message:`Are you sure you want to delete "${this.department.name}"? This action cannot be undone.`,confirmText:"Delete",cancelText:"Cancel"}}).afterClosed().subscribe(r=>{r&&this.departmentService.delete(this.department.id).subscribe({next:()=>{let o=this.snackBar.open(`"${this.department.name}" has been deleted.`,"Close",{duration:3e3,horizontalPosition:"end",verticalPosition:"top"});o.afterDismissed().subscribe(()=>this.router.navigate(["/departments"])),o.onAction().subscribe(()=>this.router.navigate(["/departments"]))},error:o=>{console.error("Error deleting department:",o),this.showMessage("Failed to delete department. Please try again.")}})})}goBack(){this.router.navigate(["/departments"])}canEdit(){return this.authService.isHRAdmin()||this.authService.isManager()}canDelete(){return this.authService.isHRAdmin()}showMessage(i){this.snackBar.open(i,"Close",{duration:3e3,horizontalPosition:"end",verticalPosition:"top"})}};n.\u0275fac=function(r){return new(r||n)},n.\u0275cmp=E({type:n,selectors:[["app-department-detail"]],decls:4,vars:3,consts:[[4,"ngIf"],[1,"flex-spacer"],["mat-raised-button","","color","accent",3,"click",4,"appHasRole"],["mat-raised-button","","color","warn",3,"click",4,"appHasRole"],["mat-stroked-button","",3,"click"],[1,"detail-grid"],[1,"detail-section"],["matListItemTitle",""],["matListItemLine",""],["class","detail-section",4,"ngIf"],["mat-raised-button","","color","accent",3,"click"],["mat-raised-button","","color","warn",3,"click"],[1,"loading-container"],[1,"no-data"],["mat-raised-button","","color","primary",3,"click"]],template:function(r,o){r&1&&(k(0,"page-header"),R(1,Wve,24,6,"mat-card",0)(2,Gve,4,0,"mat-card",0)(3,qve,9,0,"mat-card",0)),r&2&&(g(),y("ngIf",!o.loading&&o.department),g(),y("ngIf",o.loading),g(),y("ngIf",!o.loading&&!o.department))},dependencies:[gt,li,ze,kt,$t,zt,Ut,Jt,Xt,ot,mt,ca,Fs,la,Ha,Tu,Dl,sa,Si,ki,pi,Mn,ni,Un,Sa],styles:["mat-card[_ngcontent-%COMP%]{margin:16px}mat-card-header[_ngcontent-%COMP%]{display:flex;align-items:center;margin-bottom:16px;padding:16px;border-bottom:1px solid rgba(0,0,0,.12)}mat-card-header[_ngcontent-%COMP%] mat-card-title[_ngcontent-%COMP%]{font-size:20px;font-weight:500;margin:0}mat-card-header[_ngcontent-%COMP%] .flex-spacer[_ngcontent-%COMP%]{flex:1 1 auto}mat-card-header[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{margin-left:8px}mat-card-header[_ngcontent-%COMP%] button[_ngcontent-%COMP%] mat-icon[_ngcontent-%COMP%]{margin-right:4px}mat-card-content[_ngcontent-%COMP%]{padding:16px}.detail-grid[_ngcontent-%COMP%]{display:grid;grid-template-columns:repeat(auto-fit,minmax(400px,1fr));gap:24px}.detail-section[_ngcontent-%COMP%] h3[_ngcontent-%COMP%]{margin:0 0 8px;font-size:16px;font-weight:500;color:#000000de}.detail-section[_ngcontent-%COMP%] mat-divider[_ngcontent-%COMP%]{margin-bottom:16px}.detail-section[_ngcontent-%COMP%] mat-list[_ngcontent-%COMP%]{padding:0}.detail-section[_ngcontent-%COMP%] mat-list-item[_ngcontent-%COMP%]{height:auto;min-height:48px;padding:8px 0}.loading-container[_ngcontent-%COMP%]{display:flex;justify-content:center;align-items:center;min-height:300px}.no-data[_ngcontent-%COMP%]{display:flex;flex-direction:column;align-items:center;justify-content:center;padding:48px 16px;color:#0000008a}.no-data[_ngcontent-%COMP%] mat-icon[_ngcontent-%COMP%]{font-size:48px;width:48px;height:48px;margin-bottom:16px}.no-data[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{margin:0 0 16px;font-size:16px}"]});let t=n;return t})();function Yve(t,n){t&1&&(h(0,"div",0),k(1,"mat-spinner"),p())}function Qve(t,n){t&1&&(h(0,"mat-error"),_(1," Department name is required "),p())}function Kve(t,n){t&1&&(h(0,"mat-error"),_(1," Department name cannot exceed 100 characters "),p())}var sA=(()=>{let n=class n{constructor(){this.departmentService=u(Vs),this.route=u(wi),this.router=u(Re),this.fb=u(eo),this.snackBar=u(di),this.loading=!1,this.isEditMode=!1}ngOnInit(){this.initForm();let i=this.route.snapshot.paramMap.get("id");i&&(this.isEditMode=!0,this.departmentId=i,this.loadDepartment(i))}initForm(){this.departmentForm=this.fb.group({name:["",[Le.required,Le.maxLength(100)]]})}loadDepartment(i){this.loading=!0,this.departmentService.getById(i).subscribe({next:r=>{this.departmentForm.patchValue({name:r.name}),this.loading=!1},error:r=>{console.error("Error loading department:",r),this.showMessage("Error loading department"),this.loading=!1}})}onSubmit(){if(!this.departmentForm.invalid)if(this.loading=!0,this.isEditMode&&this.departmentId){let i={id:this.departmentId,name:this.departmentForm.value.name};this.departmentService.updateDepartment(i).subscribe({next:()=>{this.showMessage("Department updated successfully"),this.router.navigate(["/departments",this.departmentId])},error:r=>{console.error("Error updating department:",r),this.showMessage("Error updating department"),this.loading=!1}})}else{let i={name:this.departmentForm.value.name};this.departmentService.createDepartment(i).subscribe({next:r=>{console.log("Department created - Response:",r),console.log("Department ID:",r?.id),this.showMessage("Department created successfully"),r?.id?(console.log("Navigating to detail page:","/departments/"+r.id),this.router.navigate(["/departments",r.id])):(console.warn("No department ID returned, navigating to list page"),this.router.navigate(["/departments"])),this.loading=!1},error:r=>{console.error("Error creating department:",r),this.showMessage("Error creating department"),this.loading=!1}})}}onCancel(){this.isEditMode&&this.departmentId?this.router.navigate(["/departments",this.departmentId]):this.router.navigate(["/departments"])}showMessage(i){this.snackBar.open(i,"Close",{duration:3e3,horizontalPosition:"end",verticalPosition:"top"})}};n.\u0275fac=function(r){return new(r||n)},n.\u0275cmp=E({type:n,selectors:[["app-department-form"]],decls:23,vars:7,consts:[[1,"loading-overlay"],[3,"ngSubmit","formGroup"],[1,"form-section"],[1,"form-row"],["appearance","outline"],["matInput","","formControlName","name"],[4,"ngIf"],[1,"form-actions"],["type","button","mat-stroked-button","",3,"click"],["type","submit","mat-raised-button","","color","primary",3,"disabled"]],template:function(r,o){if(r&1&&(k(0,"page-header"),h(1,"mat-card")(2,"mat-card-header")(3,"mat-card-title"),_(4),p()(),h(5,"mat-card-content"),N(6,Yve,2,0,"div",0),h(7,"form",1),S("ngSubmit",function(){return o.onSubmit()}),h(8,"div",2)(9,"h3"),_(10,"Department Information"),p(),h(11,"div",3)(12,"mat-form-field",4)(13,"mat-label"),_(14,"Department Name"),p(),k(15,"input",5),R(16,Qve,2,0,"mat-error",6)(17,Kve,2,0,"mat-error",6),p()()(),h(18,"div",7)(19,"button",8),S("click",function(){return o.onCancel()}),_(20," Cancel "),p(),h(21,"button",9),_(22),p()()()()()),r&2){let a,s;g(4),H(o.isEditMode?"Edit Department":"Create Department"),g(2),L(o.loading?6:-1),g(),y("formGroup",o.departmentForm),g(9),y("ngIf",(a=o.departmentForm.get("name"))==null?null:a.hasError("required")),g(),y("ngIf",(s=o.departmentForm.get("name"))==null?null:s.hasError("maxlength")),g(4),y("disabled",o.loading),g(),ve(" ",o.isEditMode?"Update":"Create"," ")}},dependencies:[gt,li,zn,Jr,Qi,ei,Xr,Ki,Lr,ze,kt,$t,zt,Ut,Jt,Xt,ot,rr,hn,Oi,sn,xo,$i,Si,ki,pi,ni],styles:["mat-card[_ngcontent-%COMP%]{margin:16px;max-width:800px}mat-card-header[_ngcontent-%COMP%]{padding:16px;border-bottom:1px solid rgba(0,0,0,.12)}mat-card-header[_ngcontent-%COMP%] mat-card-title[_ngcontent-%COMP%]{font-size:20px;font-weight:500;margin:0}mat-card-content[_ngcontent-%COMP%]{padding:24px;position:relative}.form-section[_ngcontent-%COMP%]{margin-bottom:24px}.form-section[_ngcontent-%COMP%] h3[_ngcontent-%COMP%]{margin:0 0 16px;font-size:16px;font-weight:500;color:#000000de}.form-section[_ngcontent-%COMP%] .form-row[_ngcontent-%COMP%]{display:grid;grid-template-columns:1fr;gap:16px;margin-bottom:16px}.form-section[_ngcontent-%COMP%] .form-row[_ngcontent-%COMP%] mat-form-field[_ngcontent-%COMP%]{width:100%}.form-actions[_ngcontent-%COMP%]{display:flex;justify-content:flex-end;gap:8px;padding-top:16px;border-top:1px solid rgba(0,0,0,.12)}.loading-overlay[_ngcontent-%COMP%]{position:absolute;inset:0;background-color:#fffc;display:flex;align-items:center;justify-content:center;z-index:1000}"]});let t=n;return t})();var Zve=["mat-sort-header",""],Xve=["*"];function Jve(t,n){t&1&&(ft(0,"div",2),Gt(),ft(1,"svg",3),ai(2,"path",4),vt()())}var $U=new T("MAT_SORT_DEFAULT_OPTIONS"),Ml=(()=>{class t{_defaultOptions;_initializedStream=new $a(1);sortables=new Map;_stateChanges=new z;active;start="asc";get direction(){return this._direction}set direction(e){this._direction=e}_direction="";disableClear;disabled=!1;sortChange=new U;initialized=this._initializedStream;constructor(e){this._defaultOptions=e}register(e){this.sortables.set(e.id,e)}deregister(e){this.sortables.delete(e.id)}sort(e){this.active!=e.id?(this.active=e.id,this.direction=e.start?e.start:this.start):this.direction=this.getNextSortDirection(e),this.sortChange.emit({active:this.active,direction:this.direction})}getNextSortDirection(e){if(!e)return"";let i=e?.disableClear??this.disableClear??!!this._defaultOptions?.disableClear,r=e0e(e.start||this.start,i),o=r.indexOf(this.direction)+1;return o>=r.length&&(o=0),r[o]}ngOnInit(){this._initializedStream.next()}ngOnChanges(){this._stateChanges.next()}ngOnDestroy(){this._stateChanges.complete(),this._initializedStream.complete()}static \u0275fac=function(i){return new(i||t)(_e($U,8))};static \u0275dir=F({type:t,selectors:[["","matSort",""]],hostAttrs:[1,"mat-sort"],inputs:{active:[0,"matSortActive","active"],start:[0,"matSortStart","start"],direction:[0,"matSortDirection","direction"],disableClear:[2,"matSortDisableClear","disableClear",V],disabled:[2,"matSortDisabled","disabled",V]},outputs:{sortChange:"matSortChange"},exportAs:["matSort"],features:[Ae]})}return t})();function e0e(t,n){let e=["asc","desc"];return t=="desc"&&e.reverse(),n||e.push(""),e}var ww=(()=>{class t{changes=new z;static \u0275fac=function(i){return new(i||t)};static \u0275prov=O({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();function t0e(t){return t||new ww}var i0e={provide:ww,deps:[[new ss,new Gl,ww]],useFactory:t0e},Dw=(()=>{class t{_intl=u(ww);_sort=u(Ml,{optional:!0});_columnDef=u("MAT_SORT_HEADER_COLUMN_DEF",{optional:!0});_changeDetectorRef=u(ye);_focusMonitor=u(Yt);_elementRef=u(q);_ariaDescriber=u(Xm,{optional:!0});_renderChanges;_animationsDisabled=Ye();_recentlyCleared=he(null);_sortButton;id;arrowPosition="after";start;disabled=!1;get sortActionDescription(){return this._sortActionDescription}set sortActionDescription(e){this._updateSortActionDescription(e)}_sortActionDescription="Sort";disableClear;constructor(){u(ut).load(Di);let e=u($U,{optional:!0});this._sort,e?.arrowPosition&&(this.arrowPosition=e?.arrowPosition)}ngOnInit(){!this.id&&this._columnDef&&(this.id=this._columnDef.name),this._sort.register(this),this._renderChanges=Je(this._sort._stateChanges,this._sort.sortChange).subscribe(()=>this._changeDetectorRef.markForCheck()),this._sortButton=this._elementRef.nativeElement.querySelector(".mat-sort-header-container"),this._updateSortActionDescription(this._sortActionDescription)}ngAfterViewInit(){this._focusMonitor.monitor(this._elementRef,!0).subscribe(()=>{Promise.resolve().then(()=>this._recentlyCleared.set(null))})}ngOnDestroy(){this._focusMonitor.stopMonitoring(this._elementRef),this._sort.deregister(this),this._renderChanges?.unsubscribe(),this._sortButton&&this._ariaDescriber?.removeDescription(this._sortButton,this._sortActionDescription)}_toggleOnInteraction(){if(!this._isDisabled()){let e=this._isSorted(),i=this._sort.direction;this._sort.sort(this),this._recentlyCleared.set(e&&!this._isSorted()?i:null)}}_handleKeydown(e){(e.keyCode===32||e.keyCode===13)&&(e.preventDefault(),this._toggleOnInteraction())}_isSorted(){return this._sort.active==this.id&&(this._sort.direction==="asc"||this._sort.direction==="desc")}_isDisabled(){return this._sort.disabled||this.disabled}_getAriaSortAttribute(){return this._isSorted()?this._sort.direction=="asc"?"ascending":"descending":"none"}_renderArrow(){return!this._isDisabled()||this._isSorted()}_updateSortActionDescription(e){this._sortButton&&(this._ariaDescriber?.removeDescription(this._sortButton,this._sortActionDescription),this._ariaDescriber?.describe(this._sortButton,e)),this._sortActionDescription=e}static \u0275fac=function(i){return new(i||t)};static \u0275cmp=E({type:t,selectors:[["","mat-sort-header",""]],hostAttrs:[1,"mat-sort-header"],hostVars:3,hostBindings:function(i,r){i&1&&S("click",function(){return r._toggleOnInteraction()})("keydown",function(a){return r._handleKeydown(a)})("mouseleave",function(){return r._recentlyCleared.set(null)}),i&2&&(X("aria-sort",r._getAriaSortAttribute()),G("mat-sort-header-disabled",r._isDisabled()))},inputs:{id:[0,"mat-sort-header","id"],arrowPosition:"arrowPosition",start:"start",disabled:[2,"disabled","disabled",V],sortActionDescription:"sortActionDescription",disableClear:[2,"disableClear","disableClear",V]},exportAs:["matSortHeader"],attrs:Zve,ngContentSelectors:Xve,decls:4,vars:17,consts:[[1,"mat-sort-header-container","mat-focus-indicator"],[1,"mat-sort-header-content"],[1,"mat-sort-header-arrow"],["viewBox","0 -960 960 960","focusable","false","aria-hidden","true"],["d","M440-240v-368L296-464l-56-56 240-240 240 240-56 56-144-144v368h-80Z"]],template:function(i,r){i&1&&(Me(),ft(0,"div",0)(1,"div",1),oe(2),vt(),N(3,Jve,3,0,"div",2),vt()),i&2&&(G("mat-sort-header-sorted",r._isSorted())("mat-sort-header-position-before",r.arrowPosition==="before")("mat-sort-header-descending",r._sort.direction==="desc")("mat-sort-header-ascending",r._sort.direction==="asc")("mat-sort-header-recently-cleared-ascending",r._recentlyCleared()==="asc")("mat-sort-header-recently-cleared-descending",r._recentlyCleared()==="desc")("mat-sort-header-animations-disabled",r._animationsDisabled),X("tabindex",r._isDisabled()?null:0)("role",r._isDisabled()?null:"button"),g(3),L(r._renderArrow()?3:-1))},styles:[`.mat-sort-header{cursor:pointer}.mat-sort-header-disabled{cursor:default}.mat-sort-header-container{display:flex;align-items:center;letter-spacing:normal;outline:0}[mat-sort-header].cdk-keyboard-focused .mat-sort-header-container,[mat-sort-header].cdk-program-focused .mat-sort-header-container{border-bottom:solid 1px currentColor}.mat-sort-header-container::before{margin:calc(calc(var(--mat-focus-indicator-border-width, 3px) + 2px)*-1)}.mat-sort-header-content{display:flex;align-items:center}.mat-sort-header-position-before{flex-direction:row-reverse}@keyframes _mat-sort-header-recently-cleared-ascending{from{transform:translateY(0);opacity:1}to{transform:translateY(-25%);opacity:0}}@keyframes _mat-sort-header-recently-cleared-descending{from{transform:translateY(0) rotate(180deg);opacity:1}to{transform:translateY(25%) rotate(180deg);opacity:0}}.mat-sort-header-arrow{height:12px;width:12px;position:relative;transition:transform 225ms cubic-bezier(0.4, 0, 0.2, 1),opacity 225ms cubic-bezier(0.4, 0, 0.2, 1);opacity:0;overflow:visible;color:var(--mat-sort-arrow-color, var(--mat-sys-on-surface))}.mat-sort-header.cdk-keyboard-focused .mat-sort-header-arrow,.mat-sort-header.cdk-program-focused .mat-sort-header-arrow,.mat-sort-header:hover .mat-sort-header-arrow{opacity:.54}.mat-sort-header .mat-sort-header-sorted .mat-sort-header-arrow{opacity:1}.mat-sort-header-descending .mat-sort-header-arrow{transform:rotate(180deg)}.mat-sort-header-recently-cleared-ascending .mat-sort-header-arrow{transform:translateY(-25%)}.mat-sort-header-recently-cleared-ascending .mat-sort-header-arrow{transition:none;animation:_mat-sort-header-recently-cleared-ascending 225ms cubic-bezier(0.4, 0, 0.2, 1) forwards}.mat-sort-header-recently-cleared-descending .mat-sort-header-arrow{transition:none;animation:_mat-sort-header-recently-cleared-descending 225ms cubic-bezier(0.4, 0, 0.2, 1) forwards}.mat-sort-header-animations-disabled .mat-sort-header-arrow{transition-duration:0ms;animation-duration:0ms}.mat-sort-header-arrow svg{width:24px;height:24px;fill:currentColor;position:absolute;top:50%;left:50%;margin:-12px 0 0 -12px;transform:translateZ(0)}.mat-sort-header-arrow,[dir=rtl] .mat-sort-header-position-before .mat-sort-header-arrow{margin:0 0 0 6px}.mat-sort-header-position-before .mat-sort-header-arrow,[dir=rtl] .mat-sort-header-arrow{margin:0 6px 0 0} -`],encapsulation:2,changeDetection:0})}return t})(),Ew=(()=>{class t{static \u0275fac=function(i){return new(i||t)};static \u0275mod=ee({type:t});static \u0275inj=J({providers:[i0e],imports:[we]})}return t})();var GU=()=>["HRAdmin","Manager"],qU=()=>["HRAdmin"];function n0e(t,n){if(t&1){let e=Y();h(0,"button",14),S("click",function(){I(e);let r=C();return A(r.createPosition())}),h(1,"mat-icon"),_(2,"add"),p(),_(3," Add Position "),p()}}function r0e(t,n){if(t&1){let e=Y();h(0,"button",15),S("click",function(){I(e);let r=C();return A(r.addMockData())}),h(1,"mat-icon"),_(2,"data_object"),p(),_(3," Add Mock Data "),p()}}function o0e(t,n){t&1&&(h(0,"div",16),k(1,"mat-spinner"),p())}function a0e(t,n){t&1&&(h(0,"th",30),_(1,"Position Number"),p())}function s0e(t,n){if(t&1&&(h(0,"td",31),_(1),p()),t&2){let e=n.$implicit;g(),H(e.positionNumber)}}function l0e(t,n){t&1&&(h(0,"th",30),_(1,"Position Title"),p())}function c0e(t,n){if(t&1&&(h(0,"td",31),_(1),p()),t&2){let e=n.$implicit;g(),H(e.positionTitle)}}function d0e(t,n){t&1&&(h(0,"th",30),_(1,"Department"),p())}function u0e(t,n){if(t&1&&(h(0,"td",31),_(1),p()),t&2){let e=n.$implicit;g(),H(e.department==null?null:e.department.name)}}function m0e(t,n){t&1&&(h(0,"th",30),_(1,"Salary Range"),p())}function h0e(t,n){if(t&1&&(h(0,"td",31),_(1),p()),t&2){let e=n.$implicit;g(),H(e.salaryRange==null?null:e.salaryRange.name)}}function p0e(t,n){t&1&&(h(0,"th",32),_(1,"Actions"),p())}function f0e(t,n){if(t&1){let e=Y();h(0,"button",38),S("click",function(){I(e);let r=C().$implicit,o=C(2);return A(o.editPosition(r))}),h(1,"mat-icon"),_(2,"edit"),p()()}}function g0e(t,n){if(t&1){let e=Y();h(0,"button",39),S("click",function(){I(e);let r=C().$implicit,o=C(2);return A(o.deletePosition(r))}),h(1,"mat-icon"),_(2,"delete"),p()()}}function _0e(t,n){if(t&1){let e=Y();h(0,"td",33)(1,"div",34)(2,"button",35),S("click",function(){let r=I(e).$implicit,o=C(2);return A(o.viewPosition(r))}),h(3,"mat-icon"),_(4,"visibility"),p()(),R(5,f0e,3,0,"button",36)(6,g0e,3,0,"button",37),p()()}t&2&&(g(5),y("appHasRole",at(2,GU)),g(),y("appHasRole",at(3,qU)))}function b0e(t,n){t&1&&k(0,"tr",40)}function v0e(t,n){t&1&&k(0,"tr",41)}function y0e(t,n){if(t&1&&(h(0,"tr",42)(1,"td",43)(2,"div",44)(3,"mat-icon"),_(4,"work_off"),p(),h(5,"p"),_(6,"No positions found"),p()()()()),t&2){let e=C(2);g(),X("colspan",e.displayedColumns.length)}}function x0e(t,n){if(t&1){let e=Y();h(0,"table",17),S("matSortChange",function(r){I(e);let o=C();return A(o.onSortChange(r))}),jt(1,18),R(2,a0e,2,0,"th",19)(3,s0e,2,1,"td",20),Lt(),jt(4,21),R(5,l0e,2,0,"th",19)(6,c0e,2,1,"td",20),Lt(),jt(7,22),R(8,d0e,2,0,"th",19)(9,u0e,2,1,"td",20),Lt(),jt(10,23),R(11,m0e,2,0,"th",19)(12,h0e,2,1,"td",20),Lt(),jt(13,24),R(14,p0e,2,0,"th",25)(15,_0e,7,4,"td",26),Lt(),R(16,b0e,1,0,"tr",27)(17,v0e,1,0,"tr",28)(18,y0e,7,1,"tr",29),p()}if(t&2){let e=C();y("dataSource",e.positions),g(16),y("matHeaderRowDef",e.displayedColumns),g(),y("matRowDefColumns",e.displayedColumns)}}var YU=(()=>{let n=class n{constructor(){this.positionService=u(Bc),this.authService=u(Tt),this.router=u(Re),this.dialog=u(En),this.snackBar=u(di),this.searchSubject=new z,this.positions=[],this.loading=!1,this.displayedColumns=["positionNumber","positionTitle","departmentId","salaryRangeId","actions"],this.totalCount=0,this.pageNumber=1,this.pageSize=10,this.pageSizeOptions=[5,10,25,50,100],this.searchPositionNumber="",this.searchPositionTitle="",this.searchDepartment=""}ngOnInit(){this.searchSubject.pipe(Rt(500)).subscribe(()=>{this.pageNumber=1,this.loadPositions()}),this.loadPositions()}ngAfterViewInit(){}loadPositions(){this.loading=!0;let i={pageNumber:this.pageNumber,pageSize:this.pageSize};this.searchPositionNumber&&(i.PositionNumber=this.searchPositionNumber),this.searchPositionTitle&&(i.PositionTitle=this.searchPositionTitle),this.searchDepartment&&(i.Department=this.searchDepartment),this.sort?.active&&this.sort?.direction&&(i.orderBy=`${this.sort.active} ${this.sort.direction}`),this.positionService.getAllPaged(i).subscribe({next:r=>{this.positions=r.value,this.totalCount=r.recordsTotal,this.loading=!1},error:r=>{console.error("Error loading positions:",r),this.loading=!1}})}onSearch(){this.searchSubject.next()}onPageChange(i){this.pageNumber=i.pageIndex+1,this.pageSize=i.pageSize,this.loadPositions()}onSortChange(i){this.loadPositions()}clearFilters(){this.searchPositionNumber="",this.searchPositionTitle="",this.searchDepartment="",this.pageNumber=1,this.loadPositions()}createPosition(){this.router.navigate(["/positions/create"])}viewPosition(i){this.router.navigate(["/positions",i.id])}editPosition(i){this.router.navigate(["/positions/edit",i.id])}deletePosition(i){this.dialog.open(Er,{width:"400px",data:{title:"Delete Position",message:`Are you sure you want to delete "${i.positionTitle}"? This action cannot be undone.`,confirmText:"Delete",cancelText:"Cancel"}}).afterClosed().subscribe(o=>{o&&this.positionService.delete(i.id).subscribe({next:()=>{this.showMessage(`"${i.positionTitle}" has been deleted.`),this.loadPositions()},error:a=>{console.error("Error deleting position:",a),this.showMessage("Failed to delete position. Please try again.")}})})}addMockData(){let i=prompt("How many mock positions would you like to add?","10");if(i){let r=parseInt(i,10);r>0&&r<=100?(this.loading=!0,this.positionService.addMockPositions({rowCount:r}).subscribe({next:()=>{this.showMessage(`${r} mock positions added successfully`),this.loadPositions()},error:o=>{console.error("Error adding mock positions:",o),this.showMessage("Error adding mock positions"),this.loading=!1}})):this.showMessage("Please enter a number between 1 and 100")}}showMessage(i){this.snackBar.open(i,"Close",{duration:3e3,horizontalPosition:"end",verticalPosition:"top"})}canEdit(){return this.authService.hasRole("HRAdmin")||this.authService.hasRole("Manager")}};n.\u0275fac=function(r){return new(r||n)},n.\u0275cmp=E({type:n,selectors:[["app-position-list"]],viewQuery:function(r,o){if(r&1&&(ie(ir,5),ie(Ml,5)),r&2){let a;B(a=j())&&(o.paginator=a.first),B(a=j())&&(o.sort=a.first)}},decls:36,vars:13,consts:[[1,"flex-spacer"],["mat-raised-button","","color","primary",3,"click",4,"appHasRole"],["mat-stroked-button","","color","accent","style","margin-left: 8px;",3,"click",4,"appHasRole"],[1,"search-filters",2,"margin-bottom","16px","display","flex","gap","16px","flex-wrap","wrap"],["appearance","outline",2,"flex","1","min-width","200px"],["matInput","","placeholder","Search by position number",3,"ngModelChange","input","ngModel"],["matSuffix",""],["matInput","","placeholder","Search by position title",3,"ngModelChange","input","ngModel"],["matInput","","placeholder","Search by department",3,"ngModelChange","input","ngModel"],["mat-stroked-button","",2,"height","56px",3,"click"],[1,"table-container"],["class","loading-spinner",4,"ngIf"],["mat-table","","matSort","","class","position-table",3,"dataSource","matSortChange",4,"ngIf"],["showFirstLastButtons","",3,"page","length","pageSize","pageSizeOptions","pageIndex"],["mat-raised-button","","color","primary",3,"click"],["mat-stroked-button","","color","accent",2,"margin-left","8px",3,"click"],[1,"loading-spinner"],["mat-table","","matSort","",1,"position-table",3,"matSortChange","dataSource"],["matColumnDef","positionNumber"],["mat-header-cell","","mat-sort-header","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","positionTitle"],["matColumnDef","departmentId"],["matColumnDef","salaryRangeId"],["matColumnDef","actions"],["mat-header-cell","","class","mat-column-actions",4,"matHeaderCellDef"],["mat-cell","","class","mat-column-actions",4,"matCellDef"],["mat-header-row","",4,"matHeaderRowDef"],["mat-row","",4,"matRowDef","matRowDefColumns"],["class","mat-row",4,"matNoDataRow"],["mat-header-cell","","mat-sort-header",""],["mat-cell",""],["mat-header-cell","",1,"mat-column-actions"],["mat-cell","",1,"mat-column-actions"],[1,"action-buttons"],["mat-icon-button","","color","primary","matTooltip","View Details",3,"click"],["mat-icon-button","","color","accent","matTooltip","Edit Position",3,"click",4,"appHasRole"],["mat-icon-button","","color","warn","matTooltip","Delete Position",3,"click",4,"appHasRole"],["mat-icon-button","","color","accent","matTooltip","Edit Position",3,"click"],["mat-icon-button","","color","warn","matTooltip","Delete Position",3,"click"],["mat-header-row",""],["mat-row",""],[1,"mat-row"],[1,"mat-cell"],[1,"no-data"]],template:function(r,o){r&1&&(k(0,"page-header"),h(1,"mat-card")(2,"mat-card-header")(3,"mat-card-title"),_(4,"Positions"),p(),k(5,"span",0),R(6,n0e,4,0,"button",1)(7,r0e,4,0,"button",2),p(),h(8,"mat-card-content")(9,"div",3)(10,"mat-form-field",4)(11,"mat-label"),_(12,"Position Number"),p(),h(13,"input",5),Uo("ngModelChange",function(s){return Ca(o.searchPositionNumber,s)||(o.searchPositionNumber=s),s}),S("input",function(){return o.onSearch()}),p(),h(14,"mat-icon",6),_(15,"search"),p()(),h(16,"mat-form-field",4)(17,"mat-label"),_(18,"Position Title"),p(),h(19,"input",7),Uo("ngModelChange",function(s){return Ca(o.searchPositionTitle,s)||(o.searchPositionTitle=s),s}),S("input",function(){return o.onSearch()}),p(),h(20,"mat-icon",6),_(21,"search"),p()(),h(22,"mat-form-field",4)(23,"mat-label"),_(24,"Department"),p(),h(25,"input",8),Uo("ngModelChange",function(s){return Ca(o.searchDepartment,s)||(o.searchDepartment=s),s}),S("input",function(){return o.onSearch()}),p(),h(26,"mat-icon",6),_(27,"search"),p()(),h(28,"button",9),S("click",function(){return o.clearFilters()}),h(29,"mat-icon"),_(30,"clear"),p(),_(31," Clear Filters "),p()(),h(32,"div",10),R(33,o0e,2,0,"div",11)(34,x0e,19,3,"table",12),p(),h(35,"mat-paginator",13),S("page",function(s){return o.onPageChange(s)}),p()()()),r&2&&(g(6),y("appHasRole",at(11,GU)),g(),y("appHasRole",at(12,qU)),g(6),zo("ngModel",o.searchPositionNumber),g(6),zo("ngModel",o.searchPositionTitle),g(6),zo("ngModel",o.searchDepartment),g(8),y("ngIf",o.loading),g(),y("ngIf",!o.loading),g(),y("length",o.totalCount)("pageSize",o.pageSize)("pageSizeOptions",o.pageSizeOptions)("pageIndex",o.pageNumber-1))},dependencies:[gt,li,ze,kt,ti,$t,zt,Ut,Jt,Xt,ot,mt,Zc,Hc,Uc,qc,$c,zc,Yc,Wc,Gc,Qc,Kc,gw,_c,ir,Ew,Ml,Dw,Si,ki,Br,Eo,Mn,$i,Oi,sn,ru,rr,hn,pi,du,Qi,ei,gg,ni,Un],styles:["mat-card[_ngcontent-%COMP%]{margin:16px}mat-card-header[_ngcontent-%COMP%]{display:flex;align-items:center;margin-bottom:16px;padding:16px;border-bottom:1px solid rgba(0,0,0,.12)}mat-card-header[_ngcontent-%COMP%] mat-card-title[_ngcontent-%COMP%]{font-size:20px;font-weight:500;margin:0}mat-card-header[_ngcontent-%COMP%] .flex-spacer[_ngcontent-%COMP%]{flex:1 1 auto}mat-card-header[_ngcontent-%COMP%] button[_ngcontent-%COMP%] mat-icon[_ngcontent-%COMP%]{margin-right:4px}mat-card-content[_ngcontent-%COMP%]{padding:0}.table-container[_ngcontent-%COMP%]{position:relative;min-height:300px;overflow-x:auto}.loading-spinner[_ngcontent-%COMP%]{display:flex;justify-content:center;align-items:center;min-height:300px}.position-table[_ngcontent-%COMP%]{width:100%}.position-table[_ngcontent-%COMP%] th[_ngcontent-%COMP%]{font-weight:600;font-size:14px;color:#000000de}.position-table[_ngcontent-%COMP%] td[_ngcontent-%COMP%]{font-size:14px;color:#000000de}.position-table[_ngcontent-%COMP%] .mat-column-positionNumber[_ngcontent-%COMP%]{min-width:150px}.position-table[_ngcontent-%COMP%] .mat-column-positionTitle[_ngcontent-%COMP%]{min-width:200px}.position-table[_ngcontent-%COMP%] .mat-column-departmentId[_ngcontent-%COMP%], .position-table[_ngcontent-%COMP%] .mat-column-salaryRangeId[_ngcontent-%COMP%]{min-width:150px}.position-table[_ngcontent-%COMP%] .mat-column-actions[_ngcontent-%COMP%]{width:150px;text-align:right}.position-table[_ngcontent-%COMP%] .action-buttons[_ngcontent-%COMP%]{display:flex;justify-content:flex-end;gap:4px}.position-table[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{margin-left:4px}.no-data[_ngcontent-%COMP%]{display:flex;flex-direction:column;align-items:center;justify-content:center;padding:48px 16px;color:#0000008a}.no-data[_ngcontent-%COMP%] mat-icon[_ngcontent-%COMP%]{font-size:48px;width:48px;height:48px;margin-bottom:16px}.no-data[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{margin:0;font-size:16px}mat-paginator[_ngcontent-%COMP%]{border-top:1px solid rgba(0,0,0,.12)}"]});let t=n;return t})();var QU=()=>["HRAdmin","Manager"];function C0e(t,n){t&1&&(h(0,"div",2),k(1,"mat-spinner"),p())}function w0e(t,n){if(t&1){let e=Y();h(0,"button",9),S("click",function(){I(e);let r=C(2);return A(r.editPosition())}),h(1,"mat-icon"),_(2,"edit"),p()()}}function D0e(t,n){if(t&1){let e=Y();h(0,"button",10),S("click",function(){I(e);let r=C(2);return A(r.deletePosition())}),h(1,"mat-icon"),_(2,"delete"),p()()}}function E0e(t,n){if(t&1&&(h(0,"mat-list-item")(1,"span",7),_(2,"Description:"),p(),h(3,"span",8),_(4),p()()),t&2){let e=C(2);g(4),H(e.position.positionDescription)}}function M0e(t,n){t&1&&k(0,"mat-divider")}function k0e(t,n){if(t&1&&(h(0,"mat-list-item")(1,"span",7),_(2,"Created:"),p(),h(3,"span",8),_(4),me(5,"date"),p()()),t&2){let e=C(2);g(4),H(Ni(5,1,e.position.createdAt,"medium"))}}function S0e(t,n){t&1&&k(0,"mat-divider")}function T0e(t,n){if(t&1&&(h(0,"mat-list-item")(1,"span",7),_(2,"Last Modified:"),p(),h(3,"span",8),_(4),me(5,"date"),p()()),t&2){let e=C(2);g(4),H(Ni(5,1,e.position.lastModifiedAt,"medium"))}}function I0e(t,n){if(t&1){let e=Y();h(0,"mat-card")(1,"mat-card-header")(2,"mat-card-title"),_(3),p(),h(4,"div",3),R(5,w0e,3,0,"button",4)(6,D0e,3,0,"button",5),h(7,"button",6),S("click",function(){I(e);let r=C();return A(r.goBack())}),h(8,"mat-icon"),_(9,"arrow_back"),p()()()(),h(10,"mat-card-content")(11,"mat-list")(12,"mat-list-item")(13,"span",7),_(14,"Position Number:"),p(),h(15,"span",8),_(16),p()(),k(17,"mat-divider"),h(18,"mat-list-item")(19,"span",7),_(20,"Position Title:"),p(),h(21,"span",8),_(22),p()(),k(23,"mat-divider"),R(24,E0e,5,1,"mat-list-item",1)(25,M0e,1,0,"mat-divider",1),h(26,"mat-list-item")(27,"span",7),_(28,"Department:"),p(),h(29,"span",8),_(30),p()(),k(31,"mat-divider"),h(32,"mat-list-item")(33,"span",7),_(34,"Salary Range:"),p(),h(35,"span",8),_(36),p()(),k(37,"mat-divider"),R(38,k0e,6,4,"mat-list-item",1)(39,S0e,1,0,"mat-divider",1)(40,T0e,6,4,"mat-list-item",1),p()()()}if(t&2){let e=C();g(3),H(e.position.positionTitle),g(2),y("appHasRole",at(12,QU)),g(),y("appHasRole",at(13,QU)),g(10),H(e.position.positionNumber),g(6),H(e.position.positionTitle),g(2),y("ngIf",e.position.positionDescription),g(),y("ngIf",e.position.positionDescription),g(5),H((e.position.department==null?null:e.position.department.name)||e.position.departmentId),g(6),H((e.position.salaryRange==null?null:e.position.salaryRange.name)||e.position.salaryRangeId),g(2),y("ngIf",e.position.createdAt),g(),y("ngIf",e.position.createdAt),g(),y("ngIf",e.position.lastModifiedAt)}}function A0e(t,n){t&1&&(h(0,"mat-card")(1,"mat-card-content")(2,"p"),_(3,"Position not found."),p()()())}var KU=(()=>{let n=class n{constructor(){this.positionService=u(Bc),this.authService=u(Tt),this.route=u(wi),this.router=u(Re),this.snackBar=u(di),this.dialog=u(En),this.loading=!1}ngOnInit(){let i=this.route.snapshot.paramMap.get("id");i&&this.loadPosition(i)}loadPosition(i){this.loading=!0,this.positionService.getById(i).subscribe({next:r=>{this.position=r,this.loading=!1},error:r=>{console.error("Error loading position:",r),this.showMessage("Error loading position"),this.loading=!1,this.router.navigate(["/positions"])}})}editPosition(){this.router.navigate(["/positions","edit",this.position.id])}deletePosition(){this.dialog.open(Er,{width:"400px",data:{title:"Delete Position",message:`Are you sure you want to delete "${this.position.positionTitle}"? This action cannot be undone.`,confirmText:"Delete",cancelText:"Cancel"}}).afterClosed().subscribe(r=>{r&&this.positionService.delete(this.position.id).subscribe({next:()=>{let o=this.snackBar.open(`"${this.position.positionTitle}" has been deleted.`,"Close",{duration:3e3,horizontalPosition:"end",verticalPosition:"top"});o.afterDismissed().subscribe(()=>this.router.navigate(["/positions"])),o.onAction().subscribe(()=>this.router.navigate(["/positions"]))},error:o=>{console.error("Error deleting position:",o),this.showMessage("Failed to delete position. Please try again.")}})})}goBack(){this.router.navigate(["/positions"])}canEdit(){return this.authService.isHRAdmin()||this.authService.isManager()}canDelete(){return this.authService.isHRAdmin()||this.authService.isManager()}showMessage(i){this.snackBar.open(i,"Close",{duration:3e3,horizontalPosition:"end",verticalPosition:"top"})}};n.\u0275fac=function(r){return new(r||n)},n.\u0275cmp=E({type:n,selectors:[["app-position-detail"]],decls:4,vars:3,consts:[["class","loading-spinner",4,"ngIf"],[4,"ngIf"],[1,"loading-spinner"],[1,"header-actions"],["mat-icon-button","","color","primary","matTooltip","Edit Position",3,"click",4,"appHasRole"],["mat-icon-button","","color","warn","matTooltip","Delete Position",3,"click",4,"appHasRole"],["mat-icon-button","","matTooltip","Back to List",3,"click"],[1,"label"],[1,"value"],["mat-icon-button","","color","primary","matTooltip","Edit Position",3,"click"],["mat-icon-button","","color","warn","matTooltip","Delete Position",3,"click"]],template:function(r,o){r&1&&(k(0,"page-header"),R(1,C0e,2,0,"div",0)(2,I0e,41,14,"mat-card",1)(3,A0e,4,0,"mat-card",1)),r&2&&(g(),y("ngIf",o.loading),g(),y("ngIf",!o.loading&&o.position),g(),y("ngIf",!o.loading&&!o.position))},dependencies:[gt,li,ze,ti,$t,zt,Ut,Jt,Xt,ot,mt,ca,Fs,la,Ha,sa,Si,ki,pi,Mn,ni,Un,Sa],styles:[".loading-spinner[_ngcontent-%COMP%]{display:flex;justify-content:center;align-items:center;min-height:400px}mat-card[_ngcontent-%COMP%]{margin:16px;max-width:800px}mat-card-header[_ngcontent-%COMP%]{padding:16px;border-bottom:1px solid rgba(0,0,0,.12);display:flex;justify-content:space-between;align-items:center}mat-card-header[_ngcontent-%COMP%] mat-card-title[_ngcontent-%COMP%]{font-size:24px;font-weight:500;margin:0}mat-card-header[_ngcontent-%COMP%] .header-actions[_ngcontent-%COMP%]{display:flex;gap:8px}mat-card-content[_ngcontent-%COMP%]{padding:0}mat-list[_ngcontent-%COMP%]{padding:0}mat-list-item[_ngcontent-%COMP%]{height:auto!important;min-height:48px;padding:12px 16px;display:flex;justify-content:space-between;align-items:flex-start}mat-list-item[_ngcontent-%COMP%] .label[_ngcontent-%COMP%]{font-weight:500;color:#0009;min-width:180px}mat-list-item[_ngcontent-%COMP%] .value[_ngcontent-%COMP%]{flex:1;text-align:right;word-break:break-word}"]});let t=n;return t})();function O0e(t,n){t&1&&(h(0,"div",0),k(1,"mat-spinner"),p())}function R0e(t,n){t&1&&(h(0,"mat-error"),_(1," Position title is required "),p())}function P0e(t,n){t&1&&(h(0,"mat-error"),_(1," Position title cannot exceed 100 characters "),p())}function F0e(t,n){t&1&&(h(0,"mat-error"),_(1," Position number is required "),p())}function N0e(t,n){t&1&&(h(0,"mat-error"),_(1," Position number cannot exceed 50 characters "),p())}function L0e(t,n){t&1&&(h(0,"mat-error"),_(1," Position description cannot exceed 500 characters "),p())}function V0e(t,n){if(t&1&&(h(0,"mat-option",14),_(1),p()),t&2){let e=n.$implicit;y("value",e.id),g(),ve(" ",e.name," ")}}function B0e(t,n){t&1&&(h(0,"mat-error"),_(1," Department is required "),p())}function j0e(t,n){if(t&1&&(h(0,"mat-option",14),_(1),me(2,"number"),me(3,"number"),p()),t&2){let e=n.$implicit;y("value",e.id),g(),Cm(" ",e.name," ($",Ni(2,4,e.minSalary,"1.0-0")," - $",Ni(3,7,e.maxSalary,"1.0-0"),") ")}}function H0e(t,n){t&1&&(h(0,"mat-error"),_(1," Salary range is required "),p())}var lA=(()=>{let n=class n{constructor(){this.fb=u(eo),this.router=u(Re),this.route=u(wi),this.snackBar=u(di),this.positionService=u(Bc),this.departmentService=u(Vs),this.salaryRangeService=u(jc),this.loading=!1,this.isEditMode=!1,this.departments=[],this.salaryRanges=[]}ngOnInit(){this.initForm(),this.loadDepartments(),this.loadSalaryRanges(),this.checkEditMode()}initForm(){this.positionForm=this.fb.group({positionTitle:["",[Le.required,Le.maxLength(100)]],positionNumber:["",[Le.required,Le.maxLength(50)]],positionDescription:["",[Le.maxLength(500)]],departmentId:["",Le.required],salaryRangeId:["",Le.required]})}loadDepartments(){this.departmentService.getAll().subscribe({next:i=>{this.departments=i},error:i=>{console.error("Error loading departments:",i),this.showMessage("Error loading departments")}})}loadSalaryRanges(){this.salaryRangeService.getAll().subscribe({next:i=>{this.salaryRanges=i},error:i=>{console.error("Error loading salary ranges:",i),this.showMessage("Error loading salary ranges")}})}checkEditMode(){this.positionId=this.route.snapshot.paramMap.get("id")||void 0,this.isEditMode=!!this.positionId,this.isEditMode&&this.positionId&&this.loadPosition(this.positionId)}loadPosition(i){this.loading=!0,this.positionService.getById(i).subscribe({next:r=>{this.positionForm.patchValue({positionTitle:r.positionTitle,positionNumber:r.positionNumber,positionDescription:r.positionDescription,departmentId:r.departmentId,salaryRangeId:r.salaryRangeId}),this.loading=!1},error:r=>{console.error("Error loading position:",r),this.showMessage("Error loading position"),this.loading=!1}})}onSubmit(){if(this.positionForm.invalid){this.positionForm.markAllAsTouched();return}if(this.loading=!0,this.isEditMode&&this.positionId){let i=M({id:this.positionId},this.positionForm.value);this.positionService.updatePosition(i).subscribe({next:()=>{this.showMessage("Position updated successfully"),this.router.navigate(["/positions",this.positionId])},error:r=>{console.error("Error updating position:",r),this.showMessage("Error updating position"),this.loading=!1}})}else{let i=this.positionForm.value;this.positionService.createPosition(i).subscribe({next:r=>{console.log("Position created - Response:",r),console.log("Position ID:",r?.id),this.showMessage("Position created successfully"),r?.id?(console.log("Navigating to detail page:","/positions/"+r.id),this.router.navigate(["/positions",r.id])):(console.warn("No position ID returned, navigating to list page"),this.router.navigate(["/positions"])),this.loading=!1},error:r=>{console.error("Error creating position:",r),this.showMessage("Error creating position"),this.loading=!1}})}}onCancel(){this.router.navigate(["/positions"])}showMessage(i){this.snackBar.open(i,"Close",{duration:3e3,horizontalPosition:"end",verticalPosition:"top"})}getFormTitle(){return this.isEditMode?"Edit Position":"Create Position"}};n.\u0275fac=function(r){return new(r||n)},n.\u0275cmp=E({type:n,selectors:[["app-position-form"]],decls:43,vars:14,consts:[[1,"loading-overlay"],[3,"ngSubmit","formGroup"],[1,"form-section"],["appearance","outline",1,"full-width"],["matInput","","formControlName","positionTitle"],[4,"ngIf"],["matInput","","formControlName","positionNumber"],["matInput","","formControlName","positionDescription","rows","4"],["formControlName","departmentId"],[3,"value",4,"ngFor","ngForOf"],["formControlName","salaryRangeId"],[1,"form-actions"],["type","button","mat-stroked-button","",3,"click"],["type","submit","mat-raised-button","","color","primary",3,"disabled"],[3,"value"]],template:function(r,o){if(r&1&&(k(0,"page-header"),h(1,"mat-card")(2,"mat-card-header")(3,"mat-card-title"),_(4),p()(),h(5,"mat-card-content"),N(6,O0e,2,0,"div",0),h(7,"form",1),S("ngSubmit",function(){return o.onSubmit()}),h(8,"div",2)(9,"mat-form-field",3)(10,"mat-label"),_(11,"Position Title"),p(),k(12,"input",4),R(13,R0e,2,0,"mat-error",5)(14,P0e,2,0,"mat-error",5),p(),h(15,"mat-form-field",3)(16,"mat-label"),_(17,"Position Number"),p(),k(18,"input",6),R(19,F0e,2,0,"mat-error",5)(20,N0e,2,0,"mat-error",5),p(),h(21,"mat-form-field",3)(22,"mat-label"),_(23,"Position Description"),p(),k(24,"textarea",7),R(25,L0e,2,0,"mat-error",5),p(),h(26,"mat-form-field",3)(27,"mat-label"),_(28,"Department"),p(),h(29,"mat-select",8),R(30,V0e,2,2,"mat-option",9),p(),R(31,B0e,2,0,"mat-error",5),p(),h(32,"mat-form-field",3)(33,"mat-label"),_(34,"Salary Range"),p(),h(35,"mat-select",10),R(36,j0e,4,10,"mat-option",9),p(),R(37,H0e,2,0,"mat-error",5),p()(),h(38,"div",11)(39,"button",12),S("click",function(){return o.onCancel()}),_(40," Cancel "),p(),h(41,"button",13),_(42),p()()()()()),r&2){let a,s,l,c,d,m,f;g(4),H(o.getFormTitle()),g(2),L(o.loading?6:-1),g(),y("formGroup",o.positionForm),g(6),y("ngIf",(a=o.positionForm.get("positionTitle"))==null?null:a.hasError("required")),g(),y("ngIf",(s=o.positionForm.get("positionTitle"))==null?null:s.hasError("maxlength")),g(5),y("ngIf",(l=o.positionForm.get("positionNumber"))==null?null:l.hasError("required")),g(),y("ngIf",(c=o.positionForm.get("positionNumber"))==null?null:c.hasError("maxlength")),g(5),y("ngIf",(d=o.positionForm.get("positionDescription"))==null?null:d.hasError("maxlength")),g(5),y("ngForOf",o.departments),g(),y("ngIf",(m=o.positionForm.get("departmentId"))==null?null:m.hasError("required")),g(5),y("ngForOf",o.salaryRanges),g(),y("ngIf",(f=o.positionForm.get("salaryRangeId"))==null?null:f.hasError("required")),g(4),y("disabled",o.loading),g(),ve(" ",o.isEditMode?"Update":"Create"," ")}},dependencies:[gt,qr,li,zn,Jr,Qi,ei,Xr,Ki,Lr,ze,kt,$t,zt,Ut,Jt,Xt,$i,Oi,sn,xo,rr,hn,fc,Na,xn,Si,ki,pi,ni,ff],styles:["mat-card[_ngcontent-%COMP%]{margin:16px;max-width:800px}mat-card-header[_ngcontent-%COMP%]{margin-bottom:16px;padding:16px;border-bottom:1px solid rgba(0,0,0,.12)}mat-card-header[_ngcontent-%COMP%] mat-card-title[_ngcontent-%COMP%]{font-size:20px;font-weight:500;margin:0}mat-card-content[_ngcontent-%COMP%]{padding:16px;position:relative}.loading-overlay[_ngcontent-%COMP%]{position:absolute;inset:0;background-color:#fffc;display:flex;align-items:center;justify-content:center;z-index:1000}.form-section[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:16px;margin-bottom:24px}.form-section[_ngcontent-%COMP%] .full-width[_ngcontent-%COMP%]{width:100%}.form-actions[_ngcontent-%COMP%]{display:flex;gap:12px;justify-content:flex-end;padding-top:16px;border-top:1px solid rgba(0,0,0,.12)}"]});let t=n;return t})();var ZU=()=>["HRAdmin","Manager"],z0e=()=>[5,10,25,50],U0e=()=>["HRAdmin"];function $0e(t,n){if(t&1){let e=Y();h(0,"button",6),S("click",function(){I(e);let r=C();return A(r.createSalaryRange())}),h(1,"mat-icon"),_(2,"add"),p(),_(3," Add Salary Range "),p()}}function W0e(t,n){t&1&&(h(0,"div",7),k(1,"mat-spinner"),p())}function G0e(t,n){t&1&&(h(0,"th",20),_(1,"Range Name"),p())}function q0e(t,n){if(t&1&&(h(0,"td",21),_(1),p()),t&2){let e=n.$implicit;g(),H(e.name)}}function Y0e(t,n){t&1&&(h(0,"th",20),_(1,"Minimum Salary"),p())}function Q0e(t,n){if(t&1&&(h(0,"td",21),_(1),me(2,"currency"),p()),t&2){let e=n.$implicit;g(),H(Dm(2,1,e.minSalary,"USD","symbol","1.0-0"))}}function K0e(t,n){t&1&&(h(0,"th",20),_(1,"Maximum Salary"),p())}function Z0e(t,n){if(t&1&&(h(0,"td",21),_(1),me(2,"currency"),p()),t&2){let e=n.$implicit;g(),H(Dm(2,1,e.maxSalary,"USD","symbol","1.0-0"))}}function X0e(t,n){t&1&&(h(0,"th",22),_(1,"Actions"),p())}function J0e(t,n){if(t&1){let e=Y();h(0,"button",28),S("click",function(){I(e);let r=C().$implicit,o=C(2);return A(o.editSalaryRange(r))}),h(1,"mat-icon"),_(2,"edit"),p()()}}function eye(t,n){if(t&1){let e=Y();h(0,"button",29),S("click",function(){I(e);let r=C().$implicit,o=C(2);return A(o.deleteSalaryRange(r))}),h(1,"mat-icon"),_(2,"delete"),p()()}}function tye(t,n){if(t&1){let e=Y();h(0,"td",23)(1,"div",24)(2,"button",25),S("click",function(){let r=I(e).$implicit,o=C(2);return A(o.viewSalaryRange(r))}),h(3,"mat-icon"),_(4,"visibility"),p()(),R(5,J0e,3,0,"button",26)(6,eye,3,0,"button",27),p()()}t&2&&(g(5),y("appHasRole",at(2,ZU)),g(),y("appHasRole",at(3,U0e)))}function iye(t,n){t&1&&k(0,"tr",30)}function nye(t,n){t&1&&k(0,"tr",31)}function rye(t,n){if(t&1&&(h(0,"tr",32)(1,"td",33)(2,"div",34)(3,"mat-icon"),_(4,"money_off"),p(),h(5,"p"),_(6,"No salary ranges found"),p()()()()),t&2){let e=C(2);g(),X("colspan",e.displayedColumns.length)}}function oye(t,n){if(t&1&&(h(0,"table",8),jt(1,9),R(2,G0e,2,0,"th",10)(3,q0e,2,1,"td",11),Lt(),jt(4,12),R(5,Y0e,2,0,"th",10)(6,Q0e,3,6,"td",11),Lt(),jt(7,13),R(8,K0e,2,0,"th",10)(9,Z0e,3,6,"td",11),Lt(),jt(10,14),R(11,X0e,2,0,"th",15)(12,tye,7,4,"td",16),Lt(),R(13,iye,1,0,"tr",17)(14,nye,1,0,"tr",18)(15,rye,7,1,"tr",19),p()),t&2){let e=C();y("dataSource",e.dataSource),g(13),y("matHeaderRowDef",e.displayedColumns),g(),y("matRowDefColumns",e.displayedColumns)}}var XU=(()=>{let n=class n{constructor(){this.salaryRangeService=u(jc),this.authService=u(Tt),this.router=u(Re),this.snackBar=u(di),this.dialog=u(En),this.dataSource=new fw([]),this.loading=!1,this.displayedColumns=["name","minSalary","maxSalary","actions"]}ngOnInit(){this.loadSalaryRanges()}ngAfterViewInit(){this.dataSource.paginator=this.paginator,this.dataSource.sort=this.sort}loadSalaryRanges(){this.loading=!0,this.salaryRangeService.getAll().subscribe({next:i=>{this.dataSource.data=i,this.loading=!1},error:i=>{console.error("Error loading salary ranges:",i),this.loading=!1}})}createSalaryRange(){this.router.navigate(["/salary-ranges/create"])}viewSalaryRange(i){this.router.navigate(["/salary-ranges",i.id])}editSalaryRange(i){this.router.navigate(["/salary-ranges/edit",i.id])}deleteSalaryRange(i){this.dialog.open(Er,{width:"400px",data:{title:"Delete Salary Range",message:`Are you sure you want to delete "${i.name}"? This action cannot be undone.`,confirmText:"Delete",cancelText:"Cancel"}}).afterClosed().subscribe(o=>{o&&this.salaryRangeService.delete(i.id).subscribe({next:()=>{this.showMessage(`"${i.name}" has been deleted.`),this.loadSalaryRanges()},error:a=>{console.error("Error deleting salary range:",a),this.showMessage("Failed to delete salary range. Please try again.")}})})}showMessage(i){this.snackBar.open(i,"Close",{duration:3e3,horizontalPosition:"end",verticalPosition:"top"})}canEdit(){return this.authService.hasRole("HRAdmin")||this.authService.hasRole("Manager")}};n.\u0275fac=function(r){return new(r||n)},n.\u0275cmp=E({type:n,selectors:[["app-salary-range-list"]],viewQuery:function(r,o){if(r&1&&(ie(ir,5),ie(Ml,5)),r&2){let a;B(a=j())&&(o.paginator=a.first),B(a=j())&&(o.sort=a.first)}},decls:12,vars:6,consts:[[1,"flex-spacer"],["mat-raised-button","","color","primary",3,"click",4,"appHasRole"],[1,"table-container"],["class","loading-spinner",4,"ngIf"],["mat-table","","matSort","","class","salary-range-table",3,"dataSource",4,"ngIf"],["showFirstLastButtons","",3,"pageSizeOptions"],["mat-raised-button","","color","primary",3,"click"],[1,"loading-spinner"],["mat-table","","matSort","",1,"salary-range-table",3,"dataSource"],["matColumnDef","name"],["mat-header-cell","","mat-sort-header","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","minSalary"],["matColumnDef","maxSalary"],["matColumnDef","actions"],["mat-header-cell","","class","mat-column-actions",4,"matHeaderCellDef"],["mat-cell","","class","mat-column-actions",4,"matCellDef"],["mat-header-row","",4,"matHeaderRowDef"],["mat-row","",4,"matRowDef","matRowDefColumns"],["class","mat-row",4,"matNoDataRow"],["mat-header-cell","","mat-sort-header",""],["mat-cell",""],["mat-header-cell","",1,"mat-column-actions"],["mat-cell","",1,"mat-column-actions"],[1,"action-buttons"],["mat-icon-button","","color","primary","matTooltip","View Details",3,"click"],["mat-icon-button","","color","accent","matTooltip","Edit Salary Range",3,"click",4,"appHasRole"],["mat-icon-button","","color","warn","matTooltip","Delete Salary Range",3,"click",4,"appHasRole"],["mat-icon-button","","color","accent","matTooltip","Edit Salary Range",3,"click"],["mat-icon-button","","color","warn","matTooltip","Delete Salary Range",3,"click"],["mat-header-row",""],["mat-row",""],[1,"mat-row"],[1,"mat-cell"],[1,"no-data"]],template:function(r,o){r&1&&(k(0,"page-header"),h(1,"mat-card")(2,"mat-card-header")(3,"mat-card-title"),_(4,"Salary Ranges"),p(),k(5,"span",0),R(6,$0e,4,0,"button",1),p(),h(7,"mat-card-content")(8,"div",2),R(9,W0e,2,0,"div",3)(10,oye,16,3,"table",4),p(),k(11,"mat-paginator",5),p()()),r&2&&(g(6),y("appHasRole",at(4,ZU)),g(3),y("ngIf",o.loading),g(),y("ngIf",!o.loading),g(),y("pageSizeOptions",at(5,z0e)))},dependencies:[gt,li,ze,kt,ti,$t,zt,Ut,Jt,Xt,ot,mt,Zc,Hc,Uc,qc,$c,zc,Yc,Wc,Gc,Qc,Kc,gw,_c,ir,Ew,Ml,Dw,Si,ki,Br,Eo,pi,Mn,ni,Un,il],styles:["mat-card[_ngcontent-%COMP%]{margin:16px}mat-card-header[_ngcontent-%COMP%]{display:flex;align-items:center;margin-bottom:16px;padding:16px;border-bottom:1px solid rgba(0,0,0,.12)}mat-card-header[_ngcontent-%COMP%] mat-card-title[_ngcontent-%COMP%]{font-size:20px;font-weight:500;margin:0}mat-card-header[_ngcontent-%COMP%] .flex-spacer[_ngcontent-%COMP%]{flex:1 1 auto}mat-card-header[_ngcontent-%COMP%] button[_ngcontent-%COMP%] mat-icon[_ngcontent-%COMP%]{margin-right:4px}mat-card-content[_ngcontent-%COMP%]{padding:0}.table-container[_ngcontent-%COMP%]{position:relative;min-height:300px;overflow-x:auto}.loading-spinner[_ngcontent-%COMP%]{display:flex;justify-content:center;align-items:center;min-height:300px}.salary-range-table[_ngcontent-%COMP%]{width:100%}.salary-range-table[_ngcontent-%COMP%] th[_ngcontent-%COMP%]{font-weight:600;font-size:14px;color:#000000de}.salary-range-table[_ngcontent-%COMP%] td[_ngcontent-%COMP%]{font-size:14px;color:#000000de}.salary-range-table[_ngcontent-%COMP%] .mat-column-name[_ngcontent-%COMP%]{min-width:200px}.salary-range-table[_ngcontent-%COMP%] .mat-column-minSalary[_ngcontent-%COMP%], .salary-range-table[_ngcontent-%COMP%] .mat-column-maxSalary[_ngcontent-%COMP%]{min-width:150px}.salary-range-table[_ngcontent-%COMP%] .mat-column-actions[_ngcontent-%COMP%]{width:150px;text-align:right}.salary-range-table[_ngcontent-%COMP%] .action-buttons[_ngcontent-%COMP%]{display:flex;justify-content:flex-end;gap:4px}.salary-range-table[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{margin-left:4px}.no-data[_ngcontent-%COMP%]{display:flex;flex-direction:column;align-items:center;justify-content:center;padding:48px 16px;color:#0000008a}.no-data[_ngcontent-%COMP%] mat-icon[_ngcontent-%COMP%]{font-size:48px;width:48px;height:48px;margin-bottom:16px}.no-data[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{margin:0;font-size:16px}mat-paginator[_ngcontent-%COMP%]{border-top:1px solid rgba(0,0,0,.12)}"]});let t=n;return t})();var JU=()=>["HRAdmin","Manager"];function aye(t,n){t&1&&(h(0,"div",2),k(1,"mat-spinner"),p())}function sye(t,n){if(t&1){let e=Y();h(0,"button",9),S("click",function(){I(e);let r=C(2);return A(r.editSalaryRange())}),h(1,"mat-icon"),_(2,"edit"),p()()}}function lye(t,n){if(t&1){let e=Y();h(0,"button",10),S("click",function(){I(e);let r=C(2);return A(r.deleteSalaryRange())}),h(1,"mat-icon"),_(2,"delete"),p()()}}function cye(t,n){if(t&1&&(h(0,"mat-list-item")(1,"span",7),_(2,"Created:"),p(),h(3,"span",8),_(4),me(5,"date"),p()()),t&2){let e=C(2);g(4),H(Ni(5,1,e.salaryRange.createdAt,"medium"))}}function dye(t,n){t&1&&k(0,"mat-divider")}function uye(t,n){if(t&1&&(h(0,"mat-list-item")(1,"span",7),_(2,"Last Modified:"),p(),h(3,"span",8),_(4),me(5,"date"),p()()),t&2){let e=C(2);g(4),H(Ni(5,1,e.salaryRange.lastModifiedAt,"medium"))}}function mye(t,n){if(t&1){let e=Y();h(0,"mat-card")(1,"mat-card-header")(2,"mat-card-title"),_(3),p(),h(4,"div",3),R(5,sye,3,0,"button",4)(6,lye,3,0,"button",5),h(7,"button",6),S("click",function(){I(e);let r=C();return A(r.goBack())}),h(8,"mat-icon"),_(9,"arrow_back"),p()()()(),h(10,"mat-card-content")(11,"mat-list")(12,"mat-list-item")(13,"span",7),_(14,"Name:"),p(),h(15,"span",8),_(16),p()(),k(17,"mat-divider"),h(18,"mat-list-item")(19,"span",7),_(20,"Minimum Salary:"),p(),h(21,"span",8),_(22),me(23,"currency"),p()(),k(24,"mat-divider"),h(25,"mat-list-item")(26,"span",7),_(27,"Maximum Salary:"),p(),h(28,"span",8),_(29),me(30,"currency"),p()(),k(31,"mat-divider"),R(32,cye,6,4,"mat-list-item",1)(33,dye,1,0,"mat-divider",1)(34,uye,6,4,"mat-list-item",1),p()()()}if(t&2){let e=C();g(3),H(e.salaryRange.name),g(2),y("appHasRole",at(13,JU)),g(),y("appHasRole",at(14,JU)),g(10),H(e.salaryRange.name),g(6),H(Oe(23,9,e.salaryRange.minSalary)),g(7),H(Oe(30,11,e.salaryRange.maxSalary)),g(3),y("ngIf",e.salaryRange.createdAt),g(),y("ngIf",e.salaryRange.createdAt),g(),y("ngIf",e.salaryRange.lastModifiedAt)}}function hye(t,n){t&1&&(h(0,"mat-card")(1,"mat-card-content")(2,"p"),_(3,"Salary range not found."),p()()())}var e6=(()=>{let n=class n{constructor(){this.salaryRangeService=u(jc),this.authService=u(Tt),this.route=u(wi),this.router=u(Re),this.snackBar=u(di),this.dialog=u(En),this.loading=!1}ngOnInit(){let i=this.route.snapshot.paramMap.get("id");i&&this.loadSalaryRange(i)}loadSalaryRange(i){this.loading=!0,this.salaryRangeService.getById(i).subscribe({next:r=>{this.salaryRange=r,this.loading=!1},error:r=>{console.error("Error loading salary range:",r),this.showMessage("Error loading salary range"),this.loading=!1,this.router.navigate(["/salary-ranges"])}})}editSalaryRange(){this.router.navigate(["/salary-ranges","edit",this.salaryRange.id])}deleteSalaryRange(){this.dialog.open(Er,{width:"400px",data:{title:"Delete Salary Range",message:`Are you sure you want to delete "${this.salaryRange.name}"? This action cannot be undone.`,confirmText:"Delete",cancelText:"Cancel"}}).afterClosed().subscribe(r=>{r&&this.salaryRangeService.delete(this.salaryRange.id).subscribe({next:()=>{let o=this.snackBar.open(`"${this.salaryRange.name}" has been deleted.`,"Close",{duration:3e3,horizontalPosition:"end",verticalPosition:"top"});o.afterDismissed().subscribe(()=>this.router.navigate(["/salary-ranges"])),o.onAction().subscribe(()=>this.router.navigate(["/salary-ranges"]))},error:o=>{console.error("Error deleting salary range:",o),this.showMessage("Failed to delete salary range. Please try again.")}})})}goBack(){this.router.navigate(["/salary-ranges"])}canEdit(){return this.authService.isHRAdmin()||this.authService.isManager()}canDelete(){return this.authService.isHRAdmin()||this.authService.isManager()}showMessage(i){this.snackBar.open(i,"Close",{duration:3e3,horizontalPosition:"end",verticalPosition:"top"})}};n.\u0275fac=function(r){return new(r||n)},n.\u0275cmp=E({type:n,selectors:[["app-salary-range-detail"]],decls:4,vars:3,consts:[["class","loading-spinner",4,"ngIf"],[4,"ngIf"],[1,"loading-spinner"],[1,"header-actions"],["mat-icon-button","","color","primary","matTooltip","Edit Salary Range",3,"click",4,"appHasRole"],["mat-icon-button","","color","warn","matTooltip","Delete Salary Range",3,"click",4,"appHasRole"],["mat-icon-button","","matTooltip","Back to List",3,"click"],[1,"label"],[1,"value"],["mat-icon-button","","color","primary","matTooltip","Edit Salary Range",3,"click"],["mat-icon-button","","color","warn","matTooltip","Delete Salary Range",3,"click"]],template:function(r,o){r&1&&(k(0,"page-header"),R(1,aye,2,0,"div",0)(2,mye,35,15,"mat-card",1)(3,hye,4,0,"mat-card",1)),r&2&&(g(),y("ngIf",o.loading),g(),y("ngIf",!o.loading&&o.salaryRange),g(),y("ngIf",!o.loading&&!o.salaryRange))},dependencies:[gt,li,ze,ti,$t,zt,Ut,Jt,Xt,ot,mt,ca,Fs,la,Ha,sa,Si,ki,pi,Mn,ni,Un,il,Sa],styles:[".loading-spinner[_ngcontent-%COMP%]{display:flex;justify-content:center;align-items:center;min-height:400px}mat-card[_ngcontent-%COMP%]{margin:16px;max-width:800px}mat-card-header[_ngcontent-%COMP%]{padding:16px;border-bottom:1px solid rgba(0,0,0,.12);display:flex;justify-content:space-between;align-items:center}mat-card-header[_ngcontent-%COMP%] mat-card-title[_ngcontent-%COMP%]{font-size:24px;font-weight:500;margin:0}mat-card-header[_ngcontent-%COMP%] .header-actions[_ngcontent-%COMP%]{display:flex;gap:8px}mat-card-content[_ngcontent-%COMP%]{padding:0}mat-list[_ngcontent-%COMP%]{padding:0}mat-list-item[_ngcontent-%COMP%]{height:auto!important;min-height:48px;padding:12px 16px;display:flex;justify-content:space-between;align-items:flex-start}mat-list-item[_ngcontent-%COMP%] .label[_ngcontent-%COMP%]{font-weight:500;color:#0009;min-width:180px}mat-list-item[_ngcontent-%COMP%] .value[_ngcontent-%COMP%]{flex:1;text-align:right;word-break:break-word}"]});let t=n;return t})();function pye(t,n){t&1&&(h(0,"div",0),k(1,"mat-spinner"),p())}function fye(t,n){t&1&&(h(0,"mat-error"),_(1," Range name is required "),p())}function gye(t,n){t&1&&(h(0,"mat-error"),_(1," Range name cannot exceed 100 characters "),p())}function _ye(t,n){t&1&&(h(0,"mat-error"),_(1," Minimum salary is required "),p())}function bye(t,n){t&1&&(h(0,"mat-error"),_(1," Minimum salary must be at least 0 "),p())}function vye(t,n){t&1&&(h(0,"mat-error"),_(1," Maximum salary is required "),p())}function yye(t,n){t&1&&(h(0,"mat-error"),_(1," Maximum salary must be at least 0 "),p())}function xye(t,n){t&1&&(h(0,"mat-error",13),_(1," Maximum salary must be greater than minimum salary "),p())}var cA=(()=>{let n=class n{constructor(){this.fb=u(eo),this.router=u(Re),this.route=u(wi),this.snackBar=u(di),this.salaryRangeService=u(jc),this.loading=!1,this.isEditMode=!1}ngOnInit(){this.initForm(),this.checkEditMode()}initForm(){this.salaryRangeForm=this.fb.group({name:["",[Le.required,Le.maxLength(100)]],minSalary:["",[Le.required,Le.min(0)]],maxSalary:["",[Le.required,Le.min(0)]]},{validators:this.salaryRangeValidator})}salaryRangeValidator(i){let r=i.get("minSalary")?.value,o=i.get("maxSalary")?.value;return r&&o&&parseFloat(r)>=parseFloat(o)?{salaryRangeInvalid:!0}:null}checkEditMode(){this.salaryRangeId=this.route.snapshot.paramMap.get("id")||void 0,this.isEditMode=!!this.salaryRangeId,this.isEditMode&&this.salaryRangeId&&this.loadSalaryRange(this.salaryRangeId)}loadSalaryRange(i){this.loading=!0,this.salaryRangeService.getById(i).subscribe({next:r=>{this.salaryRangeForm.patchValue({name:r.name,minSalary:r.minSalary,maxSalary:r.maxSalary}),this.loading=!1},error:r=>{console.error("Error loading salary range:",r),this.showMessage("Error loading salary range"),this.loading=!1}})}onSubmit(){if(this.salaryRangeForm.invalid){this.salaryRangeForm.markAllAsTouched();return}if(this.loading=!0,this.isEditMode&&this.salaryRangeId){let i={id:this.salaryRangeId,name:this.salaryRangeForm.value.name,minSalary:parseFloat(this.salaryRangeForm.value.minSalary),maxSalary:parseFloat(this.salaryRangeForm.value.maxSalary)};this.salaryRangeService.updateSalaryRange(i).subscribe({next:()=>{this.showMessage("Salary range updated successfully"),this.router.navigate(["/salary-ranges",this.salaryRangeId])},error:r=>{console.error("Error updating salary range:",r),this.showMessage("Error updating salary range"),this.loading=!1}})}else{let i={name:this.salaryRangeForm.value.name,minSalary:parseFloat(this.salaryRangeForm.value.minSalary),maxSalary:parseFloat(this.salaryRangeForm.value.maxSalary)};this.salaryRangeService.createSalaryRange(i).subscribe({next:r=>{console.log("Salary range created - Response:",r),console.log("Salary range ID:",r?.id),this.showMessage("Salary range created successfully"),r?.id?(console.log("Navigating to detail page:","/salary-ranges/"+r.id),this.router.navigate(["/salary-ranges",r.id])):(console.warn("No salary range ID returned, navigating to list page"),this.router.navigate(["/salary-ranges"])),this.loading=!1},error:r=>{console.error("Error creating salary range:",r),this.showMessage("Error creating salary range"),this.loading=!1}})}}onCancel(){this.router.navigate(["/salary-ranges"])}showMessage(i){this.snackBar.open(i,"Close",{duration:3e3,horizontalPosition:"end",verticalPosition:"top"})}getFormTitle(){return this.isEditMode?"Edit Salary Range":"Create Salary Range"}};n.\u0275fac=function(r){return new(r||n)},n.\u0275cmp=E({type:n,selectors:[["app-salary-range-form"]],decls:37,vars:12,consts:[[1,"loading-overlay"],[3,"ngSubmit","formGroup"],[1,"form-section"],["appearance","outline",1,"full-width"],["matInput","","formControlName","name"],[4,"ngIf"],["matInput","","type","number","formControlName","minSalary"],["matTextPrefix",""],["matInput","","type","number","formControlName","maxSalary"],["class","range-error",4,"ngIf"],[1,"form-actions"],["type","button","mat-stroked-button","",3,"click"],["type","submit","mat-raised-button","","color","primary",3,"disabled"],[1,"range-error"]],template:function(r,o){if(r&1&&(k(0,"page-header"),h(1,"mat-card")(2,"mat-card-header")(3,"mat-card-title"),_(4),p()(),h(5,"mat-card-content"),N(6,pye,2,0,"div",0),h(7,"form",1),S("ngSubmit",function(){return o.onSubmit()}),h(8,"div",2)(9,"mat-form-field",3)(10,"mat-label"),_(11,"Range Name"),p(),k(12,"input",4),R(13,fye,2,0,"mat-error",5)(14,gye,2,0,"mat-error",5),p(),h(15,"mat-form-field",3)(16,"mat-label"),_(17,"Minimum Salary"),p(),k(18,"input",6),h(19,"span",7),_(20,"$\xA0"),p(),R(21,_ye,2,0,"mat-error",5)(22,bye,2,0,"mat-error",5),p(),h(23,"mat-form-field",3)(24,"mat-label"),_(25,"Maximum Salary"),p(),k(26,"input",8),h(27,"span",7),_(28,"$\xA0"),p(),R(29,vye,2,0,"mat-error",5)(30,yye,2,0,"mat-error",5),p(),R(31,xye,2,0,"mat-error",9),p(),h(32,"div",10)(33,"button",11),S("click",function(){return o.onCancel()}),_(34," Cancel "),p(),h(35,"button",12),_(36),p()()()()()),r&2){let a,s,l,c,d,m;g(4),H(o.getFormTitle()),g(2),L(o.loading?6:-1),g(),y("formGroup",o.salaryRangeForm),g(6),y("ngIf",(a=o.salaryRangeForm.get("name"))==null?null:a.hasError("required")),g(),y("ngIf",(s=o.salaryRangeForm.get("name"))==null?null:s.hasError("maxlength")),g(7),y("ngIf",(l=o.salaryRangeForm.get("minSalary"))==null?null:l.hasError("required")),g(),y("ngIf",(c=o.salaryRangeForm.get("minSalary"))==null?null:c.hasError("min")),g(7),y("ngIf",(d=o.salaryRangeForm.get("maxSalary"))==null?null:d.hasError("required")),g(),y("ngIf",(m=o.salaryRangeForm.get("maxSalary"))==null?null:m.hasError("min")),g(),y("ngIf",o.salaryRangeForm.hasError("salaryRangeInvalid")&&o.salaryRangeForm.touched),g(4),y("disabled",o.loading),g(),ve(" ",o.isEditMode?"Update":"Create"," ")}},dependencies:[gt,li,zn,Jr,Qi,cu,ei,Xr,Ki,Lr,ze,kt,$t,zt,Ut,Jt,Xt,$i,Oi,sn,xo,nu,rr,hn,Si,ki,pi,ni],styles:["mat-card[_ngcontent-%COMP%]{margin:16px;max-width:800px}mat-card-header[_ngcontent-%COMP%]{margin-bottom:16px;padding:16px;border-bottom:1px solid rgba(0,0,0,.12)}mat-card-header[_ngcontent-%COMP%] mat-card-title[_ngcontent-%COMP%]{font-size:20px;font-weight:500;margin:0}mat-card-content[_ngcontent-%COMP%]{padding:16px;position:relative}.loading-overlay[_ngcontent-%COMP%]{position:absolute;inset:0;background-color:#fffc;display:flex;align-items:center;justify-content:center;z-index:1000}.form-section[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:16px;margin-bottom:24px}.form-section[_ngcontent-%COMP%] .full-width[_ngcontent-%COMP%]{width:100%}.form-section[_ngcontent-%COMP%] .range-error[_ngcontent-%COMP%]{color:#f44336;font-size:12px;margin-top:-8px}.form-actions[_ngcontent-%COMP%]{display:flex;gap:12px;justify-content:flex-end;padding-top:16px;border-top:1px solid rgba(0,0,0,.12)}"]});let t=n;return t})();var Cye=["*",[["mat-chip-avatar"],["","matChipAvatar",""]],[["mat-chip-trailing-icon"],["","matChipRemove",""],["","matChipTrailingIcon",""]]],wye=["*","mat-chip-avatar, [matChipAvatar]","mat-chip-trailing-icon,[matChipRemove],[matChipTrailingIcon]"];function Dye(t,n){t&1&&(h(0,"span",3),oe(1,1),p())}function Eye(t,n){t&1&&(h(0,"span",6),oe(1,2),p())}var Mye=["*"];var kye=new T("mat-chips-default-options",{providedIn:"root",factory:()=>({separatorKeyCodes:[13]})}),t6=new T("MatChipAvatar"),i6=new T("MatChipTrailingIcon"),n6=new T("MatChipEdit"),r6=new T("MatChipRemove"),a6=new T("MatChip"),o6=(()=>{class t{_elementRef=u(q);_parentChip=u(a6);isInteractive=!0;_isPrimary=!0;_isLeading=!1;get disabled(){return this._disabled||this._parentChip?.disabled||!1}set disabled(e){this._disabled=e}_disabled=!1;tabIndex=-1;_allowFocusWhenDisabled=!1;_getDisabledAttribute(){return this.disabled&&!this._allowFocusWhenDisabled?"":null}_getTabindex(){return this.disabled&&!this._allowFocusWhenDisabled||!this.isInteractive?null:this.tabIndex.toString()}constructor(){u(ut).load(Di),this._elementRef.nativeElement.nodeName==="BUTTON"&&this._elementRef.nativeElement.setAttribute("type","button")}focus(){this._elementRef.nativeElement.focus()}_handleClick(e){!this.disabled&&this.isInteractive&&this._isPrimary&&(e.preventDefault(),this._parentChip._handlePrimaryActionInteraction())}_handleKeydown(e){(e.keyCode===13||e.keyCode===32)&&!this.disabled&&this.isInteractive&&this._isPrimary&&!this._parentChip._isEditing&&(e.preventDefault(),this._parentChip._handlePrimaryActionInteraction())}static \u0275fac=function(i){return new(i||t)};static \u0275dir=F({type:t,selectors:[["","matChipAction",""]],hostAttrs:[1,"mdc-evolution-chip__action","mat-mdc-chip-action"],hostVars:11,hostBindings:function(i,r){i&1&&S("click",function(a){return r._handleClick(a)})("keydown",function(a){return r._handleKeydown(a)}),i&2&&(X("tabindex",r._getTabindex())("disabled",r._getDisabledAttribute())("aria-disabled",r.disabled),G("mdc-evolution-chip__action--primary",r._isPrimary)("mdc-evolution-chip__action--presentational",!r.isInteractive)("mdc-evolution-chip__action--secondary",!r._isPrimary)("mdc-evolution-chip__action--trailing",!r._isPrimary&&!r._isLeading))},inputs:{isInteractive:"isInteractive",disabled:[2,"disabled","disabled",V],tabIndex:[2,"tabIndex","tabIndex",e=>e==null?-1:ct(e)],_allowFocusWhenDisabled:"_allowFocusWhenDisabled"}})}return t})();var dA=(()=>{class t{_changeDetectorRef=u(ye);_elementRef=u(q);_tagName=u(ZM);_ngZone=u(ae);_focusMonitor=u(Yt);_globalRippleOptions=u(Cs,{optional:!0});_document=u(ge);_onFocus=new z;_onBlur=new z;_isBasicChip;role=null;_hasFocusInternal=!1;_pendingFocus;_actionChanges;_animationsDisabled=Ye();_allLeadingIcons;_allTrailingIcons;_allEditIcons;_allRemoveIcons;_hasFocus(){return this._hasFocusInternal}id=u(Ze).getId("mat-mdc-chip-");ariaLabel=null;ariaDescription=null;_chipListDisabled=!1;_hadFocusOnRemove=!1;_textElement;get value(){return this._value!==void 0?this._value:this._textElement.textContent.trim()}set value(e){this._value=e}_value;color;removable=!0;highlighted=!1;disableRipple=!1;get disabled(){return this._disabled||this._chipListDisabled}set disabled(e){this._disabled=e}_disabled=!1;removed=new U;destroyed=new U;basicChipAttrName="mat-basic-chip";leadingIcon;editIcon;trailingIcon;removeIcon;primaryAction;_rippleLoader=u(Z0);_injector=u(de);constructor(){let e=u(ut);e.load(Di),e.load(Qr),this._monitorFocus(),this._rippleLoader?.configureRipple(this._elementRef.nativeElement,{className:"mat-mdc-chip-ripple",disabled:this._isRippleDisabled()})}ngOnInit(){this._isBasicChip=this._elementRef.nativeElement.hasAttribute(this.basicChipAttrName)||this._tagName.toLowerCase()===this.basicChipAttrName}ngAfterViewInit(){this._textElement=this._elementRef.nativeElement.querySelector(".mat-mdc-chip-action-label"),this._pendingFocus&&(this._pendingFocus=!1,this.focus())}ngAfterContentInit(){this._actionChanges=Je(this._allLeadingIcons.changes,this._allTrailingIcons.changes,this._allEditIcons.changes,this._allRemoveIcons.changes).subscribe(()=>this._changeDetectorRef.markForCheck())}ngDoCheck(){this._rippleLoader.setDisabled(this._elementRef.nativeElement,this._isRippleDisabled())}ngOnDestroy(){this._focusMonitor.stopMonitoring(this._elementRef),this._rippleLoader?.destroyRipple(this._elementRef.nativeElement),this._actionChanges?.unsubscribe(),this.destroyed.emit({chip:this}),this.destroyed.complete()}remove(){this.removable&&(this._hadFocusOnRemove=this._hasFocus(),this.removed.emit({chip:this}))}_isRippleDisabled(){return this.disabled||this.disableRipple||this._animationsDisabled||this._isBasicChip||!this._hasInteractiveActions()||!!this._globalRippleOptions?.disabled}_hasTrailingIcon(){return!!(this.trailingIcon||this.removeIcon)}_handleKeydown(e){(e.keyCode===8&&!e.repeat||e.keyCode===46)&&(e.preventDefault(),this.remove())}focus(){this.disabled||(this.primaryAction?this.primaryAction.focus():this._pendingFocus=!0)}_getSourceAction(e){return this._getActions().find(i=>{let r=i._elementRef.nativeElement;return r===e||r.contains(e)})}_getActions(){let e=[];return this.editIcon&&e.push(this.editIcon),this.primaryAction&&e.push(this.primaryAction),this.removeIcon&&e.push(this.removeIcon),this.trailingIcon&&e.push(this.trailingIcon),e}_handlePrimaryActionInteraction(){}_hasInteractiveActions(){return this._getActions().some(e=>e.isInteractive)}_edit(e){}_monitorFocus(){this._focusMonitor.monitor(this._elementRef,!0).subscribe(e=>{let i=e!==null;i!==this._hasFocusInternal&&(this._hasFocusInternal=i,i?this._onFocus.next({chip:this}):(this._changeDetectorRef.markForCheck(),setTimeout(()=>this._ngZone.run(()=>this._onBlur.next({chip:this})))))})}static \u0275fac=function(i){return new(i||t)};static \u0275cmp=E({type:t,selectors:[["mat-basic-chip"],["","mat-basic-chip",""],["mat-chip"],["","mat-chip",""]],contentQueries:function(i,r,o){if(i&1&&(xe(o,t6,5),xe(o,n6,5),xe(o,i6,5),xe(o,r6,5),xe(o,t6,5),xe(o,i6,5),xe(o,n6,5),xe(o,r6,5)),i&2){let a;B(a=j())&&(r.leadingIcon=a.first),B(a=j())&&(r.editIcon=a.first),B(a=j())&&(r.trailingIcon=a.first),B(a=j())&&(r.removeIcon=a.first),B(a=j())&&(r._allLeadingIcons=a),B(a=j())&&(r._allTrailingIcons=a),B(a=j())&&(r._allEditIcons=a),B(a=j())&&(r._allRemoveIcons=a)}},viewQuery:function(i,r){if(i&1&&ie(o6,5),i&2){let o;B(o=j())&&(r.primaryAction=o.first)}},hostAttrs:[1,"mat-mdc-chip"],hostVars:31,hostBindings:function(i,r){i&1&&S("keydown",function(a){return r._handleKeydown(a)}),i&2&&(si("id",r.id),X("role",r.role)("aria-label",r.ariaLabel),it("mat-"+(r.color||"primary")),G("mdc-evolution-chip",!r._isBasicChip)("mdc-evolution-chip--disabled",r.disabled)("mdc-evolution-chip--with-trailing-action",r._hasTrailingIcon())("mdc-evolution-chip--with-primary-graphic",r.leadingIcon)("mdc-evolution-chip--with-primary-icon",r.leadingIcon)("mdc-evolution-chip--with-avatar",r.leadingIcon)("mat-mdc-chip-with-avatar",r.leadingIcon)("mat-mdc-chip-highlighted",r.highlighted)("mat-mdc-chip-disabled",r.disabled)("mat-mdc-basic-chip",r._isBasicChip)("mat-mdc-standard-chip",!r._isBasicChip)("mat-mdc-chip-with-trailing-icon",r._hasTrailingIcon())("_mat-animation-noopable",r._animationsDisabled))},inputs:{role:"role",id:"id",ariaLabel:[0,"aria-label","ariaLabel"],ariaDescription:[0,"aria-description","ariaDescription"],value:"value",color:"color",removable:[2,"removable","removable",V],highlighted:[2,"highlighted","highlighted",V],disableRipple:[2,"disableRipple","disableRipple",V],disabled:[2,"disabled","disabled",V]},outputs:{removed:"removed",destroyed:"destroyed"},exportAs:["matChip"],features:[Ce([{provide:a6,useExisting:t}])],ngContentSelectors:wye,decls:8,vars:3,consts:[[1,"mat-mdc-chip-focus-overlay"],[1,"mdc-evolution-chip__cell","mdc-evolution-chip__cell--primary"],["matChipAction","",3,"isInteractive"],[1,"mdc-evolution-chip__graphic","mat-mdc-chip-graphic"],[1,"mdc-evolution-chip__text-label","mat-mdc-chip-action-label"],[1,"mat-mdc-chip-primary-focus-indicator","mat-focus-indicator"],[1,"mdc-evolution-chip__cell","mdc-evolution-chip__cell--trailing"]],template:function(i,r){i&1&&(Me(Cye),k(0,"span",0),h(1,"span",1)(2,"span",2),N(3,Dye,2,0,"span",3),h(4,"span",4),oe(5),k(6,"span",5),p()()(),N(7,Eye,2,0,"span",6)),i&2&&(g(2),y("isInteractive",!1),g(),L(r.leadingIcon?3:-1),g(4),L(r._hasTrailingIcon()?7:-1))},dependencies:[o6],styles:[`.mdc-evolution-chip,.mdc-evolution-chip__cell,.mdc-evolution-chip__action{display:inline-flex;align-items:center}.mdc-evolution-chip{position:relative;max-width:100%}.mdc-evolution-chip__cell,.mdc-evolution-chip__action{height:100%}.mdc-evolution-chip__cell--primary{flex-basis:100%;overflow-x:hidden}.mdc-evolution-chip__cell--trailing{flex:1 0 auto}.mdc-evolution-chip__action{align-items:center;background:none;border:none;box-sizing:content-box;cursor:pointer;display:inline-flex;justify-content:center;outline:none;padding:0;text-decoration:none;color:inherit}.mdc-evolution-chip__action--presentational{cursor:auto}.mdc-evolution-chip--disabled,.mdc-evolution-chip__action:disabled{pointer-events:none}@media(forced-colors: active){.mdc-evolution-chip--disabled,.mdc-evolution-chip__action:disabled{forced-color-adjust:none}}.mdc-evolution-chip__action--primary{font:inherit;letter-spacing:inherit;white-space:inherit;overflow-x:hidden}.mat-mdc-standard-chip .mdc-evolution-chip__action--primary::before{border-width:var(--mat-chip-outline-width, 1px);border-radius:var(--mat-chip-container-shape-radius, 8px);box-sizing:border-box;content:"";height:100%;left:0;position:absolute;pointer-events:none;top:0;width:100%;z-index:1;border-style:solid}.mat-mdc-standard-chip .mdc-evolution-chip__action--primary{padding-left:12px;padding-right:12px}.mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic .mdc-evolution-chip__action--primary{padding-left:0;padding-right:12px}[dir=rtl] .mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic .mdc-evolution-chip__action--primary{padding-left:12px;padding-right:0}.mat-mdc-standard-chip:not(.mdc-evolution-chip--disabled) .mdc-evolution-chip__action--primary::before{border-color:var(--mat-chip-outline-color, var(--mat-sys-outline))}.mdc-evolution-chip__action--primary:not(.mdc-evolution-chip__action--presentational):not(.mdc-ripple-upgraded):focus::before{border-color:var(--mat-chip-focus-outline-color, var(--mat-sys-on-surface-variant))}.mat-mdc-standard-chip.mdc-evolution-chip--disabled .mdc-evolution-chip__action--primary::before{border-color:var(--mat-chip-disabled-outline-color, color-mix(in srgb, var(--mat-sys-on-surface) 12%, transparent))}.mat-mdc-standard-chip.mdc-evolution-chip--selected .mdc-evolution-chip__action--primary::before{border-width:var(--mat-chip-flat-selected-outline-width, 0)}.mat-mdc-basic-chip .mdc-evolution-chip__action--primary{font:inherit}.mat-mdc-standard-chip.mdc-evolution-chip--with-leading-action .mdc-evolution-chip__action--primary{padding-left:0;padding-right:12px}[dir=rtl] .mat-mdc-standard-chip.mdc-evolution-chip--with-leading-action .mdc-evolution-chip__action--primary{padding-left:12px;padding-right:0}.mat-mdc-standard-chip.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--primary{padding-left:12px;padding-right:0}[dir=rtl] .mat-mdc-standard-chip.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--primary{padding-left:0;padding-right:12px}.mat-mdc-standard-chip.mdc-evolution-chip--with-leading-action.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--primary{padding-left:0;padding-right:0}.mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--primary{padding-left:0;padding-right:0}[dir=rtl] .mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--primary{padding-left:0;padding-right:0}.mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic .mdc-evolution-chip__action--primary{padding-left:0;padding-right:12px}[dir=rtl] .mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic .mdc-evolution-chip__action--primary{padding-left:12px;padding-right:0}.mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--primary{padding-left:0;padding-right:0}[dir=rtl] .mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--primary{padding-left:0;padding-right:0}.mdc-evolution-chip__action--secondary{position:relative;overflow:visible}.mat-mdc-standard-chip:not(.mdc-evolution-chip--disabled) .mdc-evolution-chip__action--secondary{color:var(--mat-chip-with-trailing-icon-trailing-icon-color, var(--mat-sys-on-surface-variant))}.mat-mdc-standard-chip.mdc-evolution-chip--disabled .mdc-evolution-chip__action--secondary{color:var(--mat-chip-with-trailing-icon-disabled-trailing-icon-color, var(--mat-sys-on-surface))}.mat-mdc-standard-chip.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--secondary{padding-left:8px;padding-right:8px}.mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--secondary{padding-left:8px;padding-right:8px}.mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--secondary{padding-left:8px;padding-right:8px}[dir=rtl] .mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--secondary{padding-left:8px;padding-right:8px}.mdc-evolution-chip__text-label{-webkit-user-select:none;user-select:none;white-space:nowrap;text-overflow:ellipsis;overflow:hidden}.mat-mdc-standard-chip .mdc-evolution-chip__text-label{font-family:var(--mat-chip-label-text-font, var(--mat-sys-label-large-font));line-height:var(--mat-chip-label-text-line-height, var(--mat-sys-label-large-line-height));font-size:var(--mat-chip-label-text-size, var(--mat-sys-label-large-size));font-weight:var(--mat-chip-label-text-weight, var(--mat-sys-label-large-weight));letter-spacing:var(--mat-chip-label-text-tracking, var(--mat-sys-label-large-tracking))}.mat-mdc-standard-chip:not(.mdc-evolution-chip--disabled) .mdc-evolution-chip__text-label{color:var(--mat-chip-label-text-color, var(--mat-sys-on-surface-variant))}.mat-mdc-standard-chip.mdc-evolution-chip--selected:not(.mdc-evolution-chip--disabled) .mdc-evolution-chip__text-label{color:var(--mat-chip-selected-label-text-color, var(--mat-sys-on-secondary-container))}.mat-mdc-standard-chip.mdc-evolution-chip--disabled .mdc-evolution-chip__text-label,.mat-mdc-standard-chip.mdc-evolution-chip--selected.mdc-evolution-chip--disabled .mdc-evolution-chip__text-label{color:var(--mat-chip-disabled-label-text-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent))}.mdc-evolution-chip__graphic{align-items:center;display:inline-flex;justify-content:center;overflow:hidden;pointer-events:none;position:relative;flex:1 0 auto}.mat-mdc-standard-chip .mdc-evolution-chip__graphic{width:var(--mat-chip-with-avatar-avatar-size, 24px);height:var(--mat-chip-with-avatar-avatar-size, 24px);font-size:var(--mat-chip-with-avatar-avatar-size, 24px)}.mdc-evolution-chip--selecting .mdc-evolution-chip__graphic{transition:width 150ms 0ms cubic-bezier(0.4, 0, 0.2, 1)}.mdc-evolution-chip--selectable:not(.mdc-evolution-chip--selected):not(.mdc-evolution-chip--with-primary-icon) .mdc-evolution-chip__graphic{width:0}.mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic .mdc-evolution-chip__graphic{padding-left:6px;padding-right:6px}.mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic .mdc-evolution-chip__graphic{padding-left:4px;padding-right:8px}[dir=rtl] .mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic .mdc-evolution-chip__graphic{padding-left:8px;padding-right:4px}.mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__graphic{padding-left:6px;padding-right:6px}.mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__graphic{padding-left:4px;padding-right:8px}[dir=rtl] .mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__graphic{padding-left:8px;padding-right:4px}.mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-leading-action .mdc-evolution-chip__graphic{padding-left:0}.mdc-evolution-chip__checkmark{position:absolute;opacity:0;top:50%;left:50%;height:20px;width:20px}.mat-mdc-standard-chip:not(.mdc-evolution-chip--disabled) .mdc-evolution-chip__checkmark{color:var(--mat-chip-with-icon-selected-icon-color, var(--mat-sys-on-secondary-container))}.mat-mdc-standard-chip.mdc-evolution-chip--disabled .mdc-evolution-chip__checkmark{color:var(--mat-chip-with-icon-disabled-icon-color, var(--mat-sys-on-surface))}.mdc-evolution-chip--selecting .mdc-evolution-chip__checkmark{transition:transform 150ms 0ms cubic-bezier(0.4, 0, 0.2, 1);transform:translate(-75%, -50%)}.mdc-evolution-chip--selected .mdc-evolution-chip__checkmark{transform:translate(-50%, -50%);opacity:1}.mdc-evolution-chip__checkmark-svg{display:block}.mdc-evolution-chip__checkmark-path{stroke-width:2px;stroke-dasharray:29.7833385;stroke-dashoffset:29.7833385;stroke:currentColor}.mdc-evolution-chip--selecting .mdc-evolution-chip__checkmark-path{transition:stroke-dashoffset 150ms 45ms cubic-bezier(0.4, 0, 0.2, 1)}.mdc-evolution-chip--selected .mdc-evolution-chip__checkmark-path{stroke-dashoffset:0}@media(forced-colors: active){.mdc-evolution-chip__checkmark-path{stroke:CanvasText !important}}.mat-mdc-standard-chip .mdc-evolution-chip__icon--trailing{height:18px;width:18px;font-size:18px}.mdc-evolution-chip--disabled .mdc-evolution-chip__icon--trailing.mat-mdc-chip-remove{opacity:calc(var(--mat-chip-trailing-action-opacity, 1)*var(--mat-chip-with-trailing-icon-disabled-trailing-icon-opacity, 0.38))}.mdc-evolution-chip--disabled .mdc-evolution-chip__icon--trailing.mat-mdc-chip-remove:focus{opacity:calc(var(--mat-chip-trailing-action-focus-opacity, 1)*var(--mat-chip-with-trailing-icon-disabled-trailing-icon-opacity, 0.38))}.mat-mdc-standard-chip{border-radius:var(--mat-chip-container-shape-radius, 8px);height:var(--mat-chip-container-height, 32px)}.mat-mdc-standard-chip:not(.mdc-evolution-chip--disabled){background-color:var(--mat-chip-elevated-container-color, transparent)}.mat-mdc-standard-chip.mdc-evolution-chip--disabled{background-color:var(--mat-chip-elevated-disabled-container-color)}.mat-mdc-standard-chip.mdc-evolution-chip--selected:not(.mdc-evolution-chip--disabled){background-color:var(--mat-chip-elevated-selected-container-color, var(--mat-sys-secondary-container))}.mat-mdc-standard-chip.mdc-evolution-chip--selected.mdc-evolution-chip--disabled{background-color:var(--mat-chip-flat-disabled-selected-container-color, color-mix(in srgb, var(--mat-sys-on-surface) 12%, transparent))}@media(forced-colors: active){.mat-mdc-standard-chip{outline:solid 1px}}.mat-mdc-standard-chip .mdc-evolution-chip__icon--primary{border-radius:var(--mat-chip-with-avatar-avatar-shape-radius, 24px);width:var(--mat-chip-with-icon-icon-size, 18px);height:var(--mat-chip-with-icon-icon-size, 18px);font-size:var(--mat-chip-with-icon-icon-size, 18px)}.mdc-evolution-chip--selected .mdc-evolution-chip__icon--primary{opacity:0}.mat-mdc-standard-chip:not(.mdc-evolution-chip--disabled) .mdc-evolution-chip__icon--primary{color:var(--mat-chip-with-icon-icon-color, var(--mat-sys-on-surface-variant))}.mat-mdc-standard-chip.mdc-evolution-chip--disabled .mdc-evolution-chip__icon--primary{color:var(--mat-chip-with-icon-disabled-icon-color, var(--mat-sys-on-surface))}.mat-mdc-chip-highlighted{--mat-chip-with-icon-icon-color: var(--mat-chip-with-icon-selected-icon-color, var(--mat-sys-on-secondary-container));--mat-chip-elevated-container-color: var(--mat-chip-elevated-selected-container-color, var(--mat-sys-secondary-container));--mat-chip-label-text-color: var(--mat-chip-selected-label-text-color, var(--mat-sys-on-secondary-container));--mat-chip-outline-width: var(--mat-chip-flat-selected-outline-width, 0)}.mat-mdc-chip-focus-overlay{background:var(--mat-chip-focus-state-layer-color, var(--mat-sys-on-surface-variant))}.mat-mdc-chip-selected .mat-mdc-chip-focus-overlay,.mat-mdc-chip-highlighted .mat-mdc-chip-focus-overlay{background:var(--mat-chip-selected-focus-state-layer-color, var(--mat-sys-on-secondary-container))}.mat-mdc-chip:hover .mat-mdc-chip-focus-overlay{background:var(--mat-chip-hover-state-layer-color, var(--mat-sys-on-surface-variant));opacity:var(--mat-chip-hover-state-layer-opacity, var(--mat-sys-hover-state-layer-opacity))}.mat-mdc-chip-focus-overlay .mat-mdc-chip-selected:hover,.mat-mdc-chip-highlighted:hover .mat-mdc-chip-focus-overlay{background:var(--mat-chip-selected-hover-state-layer-color, var(--mat-sys-on-secondary-container));opacity:var(--mat-chip-selected-hover-state-layer-opacity, var(--mat-sys-hover-state-layer-opacity))}.mat-mdc-chip.cdk-focused .mat-mdc-chip-focus-overlay{background:var(--mat-chip-focus-state-layer-color, var(--mat-sys-on-surface-variant));opacity:var(--mat-chip-focus-state-layer-opacity, var(--mat-sys-focus-state-layer-opacity))}.mat-mdc-chip-selected.cdk-focused .mat-mdc-chip-focus-overlay,.mat-mdc-chip-highlighted.cdk-focused .mat-mdc-chip-focus-overlay{background:var(--mat-chip-selected-focus-state-layer-color, var(--mat-sys-on-secondary-container));opacity:var(--mat-chip-selected-focus-state-layer-opacity, var(--mat-sys-focus-state-layer-opacity))}.mdc-evolution-chip--disabled:not(.mdc-evolution-chip--selected) .mat-mdc-chip-avatar{opacity:var(--mat-chip-with-avatar-disabled-avatar-opacity, 0.38)}.mdc-evolution-chip--disabled .mdc-evolution-chip__icon--trailing{opacity:var(--mat-chip-with-trailing-icon-disabled-trailing-icon-opacity, 0.38)}.mdc-evolution-chip--disabled.mdc-evolution-chip--selected .mdc-evolution-chip__checkmark{opacity:var(--mat-chip-with-icon-disabled-icon-opacity, 0.38)}.mat-mdc-standard-chip.mdc-evolution-chip--disabled{opacity:var(--mat-chip-disabled-container-opacity, 1)}.mat-mdc-standard-chip.mdc-evolution-chip--selected .mdc-evolution-chip__icon--trailing,.mat-mdc-standard-chip.mat-mdc-chip-highlighted .mdc-evolution-chip__icon--trailing{color:var(--mat-chip-selected-trailing-icon-color, var(--mat-sys-on-secondary-container))}.mat-mdc-standard-chip.mdc-evolution-chip--selected.mdc-evolution-chip--disabled .mdc-evolution-chip__icon--trailing,.mat-mdc-standard-chip.mat-mdc-chip-highlighted.mdc-evolution-chip--disabled .mdc-evolution-chip__icon--trailing{color:var(--mat-chip-selected-disabled-trailing-icon-color, var(--mat-sys-on-surface))}.mat-mdc-chip-edit,.mat-mdc-chip-remove{opacity:var(--mat-chip-trailing-action-opacity, 1)}.mat-mdc-chip-edit:focus,.mat-mdc-chip-remove:focus{opacity:var(--mat-chip-trailing-action-focus-opacity, 1)}.mat-mdc-chip-edit::after,.mat-mdc-chip-remove::after{background-color:var(--mat-chip-trailing-action-state-layer-color, var(--mat-sys-on-surface-variant))}.mat-mdc-chip-edit:hover::after,.mat-mdc-chip-remove:hover::after{opacity:var(--mat-chip-trailing-action-hover-state-layer-opacity, var(--mat-sys-hover-state-layer-opacity))}.mat-mdc-chip-edit:focus::after,.mat-mdc-chip-remove:focus::after{opacity:var(--mat-chip-trailing-action-focus-state-layer-opacity, var(--mat-sys-focus-state-layer-opacity))}.mat-mdc-chip-selected .mat-mdc-chip-remove::after,.mat-mdc-chip-highlighted .mat-mdc-chip-remove::after{background-color:var(--mat-chip-selected-trailing-action-state-layer-color, var(--mat-sys-on-secondary-container))}.mat-mdc-standard-chip{-webkit-tap-highlight-color:rgba(0,0,0,0)}.mat-mdc-standard-chip .mdc-evolution-chip__cell--primary,.mat-mdc-standard-chip .mdc-evolution-chip__action--primary,.mat-mdc-standard-chip .mat-mdc-chip-action-label{overflow:visible}.mat-mdc-standard-chip .mat-mdc-chip-graphic,.mat-mdc-standard-chip .mat-mdc-chip-trailing-icon{box-sizing:content-box}.mat-mdc-standard-chip._mat-animation-noopable,.mat-mdc-standard-chip._mat-animation-noopable .mdc-evolution-chip__graphic,.mat-mdc-standard-chip._mat-animation-noopable .mdc-evolution-chip__checkmark,.mat-mdc-standard-chip._mat-animation-noopable .mdc-evolution-chip__checkmark-path{transition-duration:1ms;animation-duration:1ms}.mat-mdc-chip-focus-overlay{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none;opacity:0;border-radius:inherit;transition:opacity 150ms linear}._mat-animation-noopable .mat-mdc-chip-focus-overlay{transition:none}.mat-mdc-basic-chip .mat-mdc-chip-focus-overlay{display:none}.mat-mdc-chip .mat-ripple.mat-mdc-chip-ripple{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none;border-radius:inherit}.mat-mdc-chip-avatar{text-align:center;line-height:1;color:var(--mat-chip-with-icon-icon-color, currentColor)}.mat-mdc-chip{position:relative;z-index:0}.mat-mdc-chip-action-label{text-align:left;z-index:1}[dir=rtl] .mat-mdc-chip-action-label{text-align:right}.mat-mdc-chip.mdc-evolution-chip--with-trailing-action .mat-mdc-chip-action-label{position:relative}.mat-mdc-chip-action-label .mat-mdc-chip-primary-focus-indicator{position:absolute;top:0;right:0;bottom:0;left:0;pointer-events:none}.mat-mdc-chip-action-label .mat-focus-indicator::before{margin:calc(calc(var(--mat-focus-indicator-border-width, 3px) + 2px)*-1)}.mat-mdc-chip-edit::before,.mat-mdc-chip-remove::before{margin:calc(var(--mat-focus-indicator-border-width, 3px)*-1);left:8px;right:8px}.mat-mdc-chip-edit::after,.mat-mdc-chip-remove::after{content:"";display:block;opacity:0;position:absolute;top:-3px;bottom:-3px;left:5px;right:5px;border-radius:50%;box-sizing:border-box;padding:12px;margin:-12px;background-clip:content-box}.mat-mdc-chip-edit .mat-icon,.mat-mdc-chip-remove .mat-icon{width:18px;height:18px;font-size:18px;box-sizing:content-box}.mat-chip-edit-input{cursor:text;display:inline-block;color:inherit;outline:0}@media(forced-colors: active){.mat-mdc-chip-selected:not(.mat-mdc-chip-multiple){outline-width:3px}}.mat-mdc-chip-action:focus .mat-focus-indicator::before{content:""}.mdc-evolution-chip__icon,.mat-mdc-chip-edit .mat-icon,.mat-mdc-chip-remove .mat-icon{min-height:fit-content}img.mdc-evolution-chip__icon{min-height:0} -`],encapsulation:2,changeDetection:0})}return t})();var s6=(()=>{class t{_elementRef=u(q);_changeDetectorRef=u(ye);_dir=u(Vt,{optional:!0});_lastDestroyedFocusedChipIndex=null;_keyManager;_destroyed=new z;_defaultRole="presentation";get chipFocusChanges(){return this._getChipStream(e=>e._onFocus)}get chipDestroyedChanges(){return this._getChipStream(e=>e.destroyed)}get chipRemovedChanges(){return this._getChipStream(e=>e.removed)}get disabled(){return this._disabled}set disabled(e){this._disabled=e,this._syncChipsState()}_disabled=!1;get empty(){return!this._chips||this._chips.length===0}get role(){return this._explicitRole?this._explicitRole:this.empty?null:this._defaultRole}tabIndex=0;set role(e){this._explicitRole=e}_explicitRole=null;get focused(){return this._hasFocusedChip()}_chips;_chipActions=new pr;constructor(){}ngAfterViewInit(){this._setUpFocusManagement(),this._trackChipSetChanges(),this._trackDestroyedFocusedChip()}ngOnDestroy(){this._keyManager?.destroy(),this._chipActions.destroy(),this._destroyed.next(),this._destroyed.complete()}_hasFocusedChip(){return this._chips&&this._chips.some(e=>e._hasFocus())}_syncChipsState(){this._chips?.forEach(e=>{e._chipListDisabled=this._disabled,e._changeDetectorRef.markForCheck()})}focus(){}_handleKeydown(e){this._originatesFromChip(e)&&this._keyManager.onKeydown(e)}_isValidIndex(e){return e>=0&&ethis._elementRef.nativeElement.tabIndex=e))}_getChipStream(e){return this._chips.changes.pipe(He(null),$e(()=>Je(...this._chips.map(e))))}_originatesFromChip(e){let i=e.target;for(;i&&i!==this._elementRef.nativeElement;){if(i.classList.contains("mat-mdc-chip"))return!0;i=i.parentElement}return!1}_setUpFocusManagement(){this._chips.changes.pipe(He(this._chips)).subscribe(e=>{let i=[];e.forEach(r=>r._getActions().forEach(o=>i.push(o))),this._chipActions.reset(i),this._chipActions.notifyOnChanges()}),this._keyManager=new bs(this._chipActions).withVerticalOrientation().withHorizontalOrientation(this._dir?this._dir.value:"ltr").withHomeAndEnd().skipPredicate(e=>this._skipPredicate(e)),this.chipFocusChanges.pipe(Te(this._destroyed)).subscribe(({chip:e})=>{let i=e._getSourceAction(document.activeElement);i&&this._keyManager.updateActiveItem(i)}),this._dir?.change.pipe(Te(this._destroyed)).subscribe(e=>this._keyManager.withHorizontalOrientation(e))}_skipPredicate(e){return!e.isInteractive||e.disabled}_trackChipSetChanges(){this._chips.changes.pipe(He(null),Te(this._destroyed)).subscribe(()=>{this.disabled&&Promise.resolve().then(()=>this._syncChipsState()),this._redirectDestroyedChipFocus()})}_trackDestroyedFocusedChip(){this.chipDestroyedChanges.pipe(Te(this._destroyed)).subscribe(e=>{let r=this._chips.toArray().indexOf(e.chip),o=e.chip._hasFocus(),a=e.chip._hadFocusOnRemove&&this._keyManager.activeItem&&e.chip._getActions().includes(this._keyManager.activeItem),s=o||a;this._isValidIndex(r)&&s&&(this._lastDestroyedFocusedChipIndex=r)})}_redirectDestroyedChipFocus(){if(this._lastDestroyedFocusedChipIndex!=null){if(this._chips.length){let e=Math.min(this._lastDestroyedFocusedChipIndex,this._chips.length-1),i=this._chips.toArray()[e];i.disabled?this._chips.length===1?this.focus():this._keyManager.setPreviousItemActive():i.focus()}else this.focus();this._lastDestroyedFocusedChipIndex=null}}static \u0275fac=function(i){return new(i||t)};static \u0275cmp=E({type:t,selectors:[["mat-chip-set"]],contentQueries:function(i,r,o){if(i&1&&xe(o,dA,5),i&2){let a;B(a=j())&&(r._chips=a)}},hostAttrs:[1,"mat-mdc-chip-set","mdc-evolution-chip-set"],hostVars:1,hostBindings:function(i,r){i&1&&S("keydown",function(a){return r._handleKeydown(a)}),i&2&&X("role",r.role)},inputs:{disabled:[2,"disabled","disabled",V],role:"role",tabIndex:[2,"tabIndex","tabIndex",e=>e==null?0:ct(e)]},ngContentSelectors:Mye,decls:2,vars:0,consts:[["role","presentation",1,"mdc-evolution-chip-set__chips"]],template:function(i,r){i&1&&(Me(),ft(0,"div",0),oe(1),vt())},styles:[`.mat-mdc-chip-set{display:flex}.mat-mdc-chip-set:focus{outline:none}.mat-mdc-chip-set .mdc-evolution-chip-set__chips{min-width:100%;margin-left:-8px;margin-right:0}.mat-mdc-chip-set .mdc-evolution-chip{margin:4px 0 4px 8px}[dir=rtl] .mat-mdc-chip-set .mdc-evolution-chip-set__chips{margin-left:0;margin-right:-8px}[dir=rtl] .mat-mdc-chip-set .mdc-evolution-chip{margin-left:0;margin-right:8px}.mdc-evolution-chip-set__chips{display:flex;flex-flow:wrap;min-width:0}.mat-mdc-chip-set-stacked{flex-direction:column;align-items:flex-start}.mat-mdc-chip-set-stacked .mat-mdc-chip{width:100%}.mat-mdc-chip-set-stacked .mdc-evolution-chip__graphic{flex-grow:0}.mat-mdc-chip-set-stacked .mdc-evolution-chip__action--primary{flex-basis:100%;justify-content:start}input.mat-mdc-chip-input{flex:1 0 150px;margin-left:8px}[dir=rtl] input.mat-mdc-chip-input{margin-left:0;margin-right:8px}.mat-mdc-form-field:not(.mat-form-field-hide-placeholder) input.mat-mdc-chip-input::placeholder{opacity:1}.mat-mdc-form-field:not(.mat-form-field-hide-placeholder) input.mat-mdc-chip-input::-moz-placeholder{opacity:1}.mat-mdc-form-field:not(.mat-form-field-hide-placeholder) input.mat-mdc-chip-input::-webkit-input-placeholder{opacity:1}.mat-mdc-form-field:not(.mat-form-field-hide-placeholder) input.mat-mdc-chip-input:-ms-input-placeholder{opacity:1}.mat-mdc-chip-set+input.mat-mdc-chip-input{margin-left:0;margin-right:0} -`],encapsulation:2,changeDetection:0})}return t})();var l6=(()=>{class t{static \u0275fac=function(i){return new(i||t)};static \u0275mod=ee({type:t});static \u0275inj=J({providers:[dl,{provide:kye,useValue:{separatorKeyCodes:[13]}}],imports:[we,yo,we]})}return t})();var c6=new T("CdkAccordion");var d6=(()=>{class t{accordion=u(c6,{optional:!0,skipSelf:!0});_changeDetectorRef=u(ye);_expansionDispatcher=u(au);_openCloseAllSubscription=ke.EMPTY;closed=new U;opened=new U;destroyed=new U;expandedChange=new U;id=u(Ze).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 i=this.accordion?this.accordion.id:this.id;this._expansionDispatcher.notify(this.id,i)}else this.closed.emit();this._changeDetectorRef.markForCheck()}}_expanded=!1;get disabled(){return this._disabled()}set disabled(e){this._disabled.set(e)}_disabled=he(!1);_removeUniqueSelectionListener=()=>{};constructor(){}ngOnInit(){this._removeUniqueSelectionListener=this._expansionDispatcher.listen((e,i)=>{this.accordion&&!this.accordion.multi&&this.accordion.id===i&&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(i){return new(i||t)};static \u0275dir=F({type:t,selectors:[["cdk-accordion-item"],["","cdkAccordionItem",""]],inputs:{expanded:[2,"expanded","expanded",V],disabled:[2,"disabled","disabled",V]},outputs:{closed:"closed",opened:"opened",destroyed:"destroyed",expandedChange:"expandedChange"},exportAs:["cdkAccordionItem"],features:[Ce([{provide:c6,useValue:void 0}])]})}return t})(),u6=(()=>{class t{static \u0275fac=function(i){return new(i||t)};static \u0275mod=ee({type:t});static \u0275inj=J({})}return t})();var Tye=["body"],Iye=["bodyWrapper"],Aye=[[["mat-expansion-panel-header"]],"*",[["mat-action-row"]]],Oye=["mat-expansion-panel-header","*","mat-action-row"];function Rye(t,n){}var Pye=[[["mat-panel-title"]],[["mat-panel-description"]],"*"],Fye=["mat-panel-title","mat-panel-description","*"];function Nye(t,n){t&1&&(ft(0,"span",1),Gt(),ft(1,"svg",2),ai(2,"path",3),vt()())}var m6=new T("MAT_ACCORDION"),h6=new T("MAT_EXPANSION_PANEL"),Lye=(()=>{class t{_template=u(te);_expansionPanel=u(h6,{optional:!0});constructor(){}static \u0275fac=function(i){return new(i||t)};static \u0275dir=F({type:t,selectors:[["ng-template","matExpansionPanelContent",""]]})}return t})(),p6=new T("MAT_EXPANSION_PANEL_DEFAULT_OPTIONS"),uA=(()=>{class t extends d6{_viewContainerRef=u(nt);_animationsDisabled=Ye();_document=u(ge);_ngZone=u(ae);_elementRef=u(q);_renderer=u(je);_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 U;afterCollapse=new U;_inputChanges=new z;accordion=u(m6,{optional:!0,skipSelf:!0});_lazyContent;_body;_bodyWrapper;_portal;_headerId=u(Ze).getId("mat-expansion-panel-header-");constructor(){super();let e=u(p6,{optional:!0});this._expansionDispatcher=u(au),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(He(null),ce(()=>this.expanded&&!this._portal),lt(1)).subscribe(()=>{this._portal=new Cn(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,i=this._body.nativeElement;return e===i||i.contains(e)}return!1}_transitionEndListener=({target:e,propertyName:i})=>{e===this._bodyWrapper?.nativeElement&&i==="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(i){return new(i||t)};static \u0275cmp=E({type:t,selectors:[["mat-expansion-panel"]],contentQueries:function(i,r,o){if(i&1&&xe(o,Lye,5),i&2){let a;B(a=j())&&(r._lazyContent=a.first)}},viewQuery:function(i,r){if(i&1&&(ie(Tye,5),ie(Iye,5)),i&2){let o;B(o=j())&&(r._body=o.first),B(o=j())&&(r._bodyWrapper=o.first)}},hostAttrs:[1,"mat-expansion-panel"],hostVars:4,hostBindings:function(i,r){i&2&&G("mat-expanded",r.expanded)("mat-expansion-panel-spacing",r._hasSpacing())},inputs:{hideToggle:[2,"hideToggle","hideToggle",V],togglePosition:"togglePosition"},outputs:{afterExpand:"afterExpand",afterCollapse:"afterCollapse"},exportAs:["matExpansionPanel"],features:[Ce([{provide:m6,useValue:void 0},{provide:h6,useExisting:t}]),le,Ae],ngContentSelectors:Oye,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(i,r){i&1&&(Me(Aye),oe(0),h(1,"div",2,0)(3,"div",3,1)(5,"div",4),oe(6,1),R(7,Rye,0,0,"ng-template",5),p(),oe(8,2),p()()),i&2&&(g(),X("inert",r.expanded?null:""),g(2),y("id",r.id),X("aria-labelledby",r._headerId),g(4),y("cdkPortalOutlet",r._portal))},dependencies:[yr],styles:[`.mat-expansion-panel{box-sizing:content-box;display:block;margin:0;overflow:hidden;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.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: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}}.mat-expansion-panel-content{display:flex;flex-direction:column;overflow:visible;min-height:0;visibility:hidden;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-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-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 t})();var f6=(()=>{class t{panel=u(uA,{host:!0});_element=u(q);_focusMonitor=u(Yt);_changeDetectorRef=u(ye);_parentChangeSubscription=ke.EMPTY;constructor(){u(ut).load(Di);let e=this.panel,i=u(p6,{optional:!0}),r=u(new Ii("tabindex"),{optional:!0}),o=e.accordion?e.accordion._stateChanges.pipe(ce(a=>!!(a.hideToggle||a.togglePosition))):Fi;this.tabIndex=parseInt(r||"")||0,this._parentChangeSubscription=Je(e.opened,e.closed,o,e._inputChanges.pipe(ce(a=>!!(a.hideToggle||a.disabled||a.togglePosition)))).subscribe(()=>this._changeDetectorRef.markForCheck()),e.closed.pipe(ce(()=>e._containsFocus())).subscribe(()=>this._focusMonitor.focusVia(this._element,"program")),i&&(this.expandedHeight=i.expandedHeight,this.collapsedHeight=i.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:Ft(e)||(e.preventDefault(),this._toggle());break;default:this.panel.accordion&&this.panel.accordion._handleHeaderKeydown(e);return}}focus(e,i){e?this._focusMonitor.focusVia(this._element,e,i):this._element.nativeElement.focus(i)}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(i){return new(i||t)};static \u0275cmp=E({type:t,selectors:[["mat-expansion-panel-header"]],hostAttrs:["role","button",1,"mat-expansion-panel-header","mat-focus-indicator"],hostVars:13,hostBindings:function(i,r){i&1&&S("click",function(){return r._toggle()})("keydown",function(a){return r._keydown(a)}),i&2&&(X("id",r.panel._headerId)("tabindex",r.disabled?-1:r.tabIndex)("aria-controls",r._getPanelId())("aria-expanded",r._isExpanded())("aria-disabled",r.panel.disabled),Dt("height",r._getHeaderHeight()),G("mat-expanded",r._isExpanded())("mat-expansion-toggle-indicator-after",r._getTogglePosition()==="after")("mat-expansion-toggle-indicator-before",r._getTogglePosition()==="before"))},inputs:{expandedHeight:"expandedHeight",collapsedHeight:"collapsedHeight",tabIndex:[2,"tabIndex","tabIndex",e=>e==null?0:ct(e)]},ngContentSelectors:Fye,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(i,r){i&1&&(Me(Pye),ft(0,"span",0),oe(1),oe(2,1),oe(3,2),vt(),N(4,Nye,3,0,"span",1)),i&2&&(G("mat-content-hide-toggle",!r._showToggle()),g(4),L(r._showToggle()?4:-1))},styles:[`.mat-expansion-panel-header{display:flex;flex-direction:row;align-items:center;padding:0 24px;border-radius:inherit;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-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.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 t})();var g6=(()=>{class t{static \u0275fac=function(i){return new(i||t)};static \u0275dir=F({type:t,selectors:[["mat-panel-title"]],hostAttrs:[1,"mat-expansion-panel-header-title"]})}return t})();var _6=(()=>{class t{static \u0275fac=function(i){return new(i||t)};static \u0275mod=ee({type:t});static \u0275inj=J({imports:[we,u6,Co]})}return t})();function Bye(t,n){if(t&1&&(jt(0),h(1,"mat-icon"),_(2,"account_circle"),p(),_(3),Lt()),t&2){let e=n.ngIf;g(3),ve(" ",e.name||e.preferred_username||"User Profile"," ")}}function jye(t,n){t&1&&(jt(0),h(1,"mat-icon"),_(2,"account_circle"),p(),_(3," User Profile "),Lt())}function Hye(t,n){t&1&&(h(0,"div",3)(1,"mat-card")(2,"mat-card-content")(3,"div",4)(4,"mat-icon"),_(5,"lock"),p(),h(6,"h2"),_(7,"Not Authenticated"),p(),h(8,"p"),_(9,"Please log in to view your profile information."),p(),h(10,"button",5)(11,"mat-icon"),_(12,"login"),p(),_(13," Log In "),p()()()()())}function zye(t,n){if(t&1&&(h(0,"mat-chip",23),_(1),p()),t&2){let e=n.$implicit;y("color","primary"),g(),ve(" ",e," ")}}function Uye(t,n){if(t&1&&(h(0,"mat-chip",24),_(1),p()),t&2){let e=n.$implicit;y("color","accent"),g(),ve(" ",e," ")}}function $ye(t,n){if(t&1&&(h(0,"div",17)(1,"div",18)(2,"label"),_(3,"User ID (sub)"),p(),h(4,"div",19),_(5),p()(),h(6,"div",18)(7,"label"),_(8,"Display Name"),p(),h(9,"div",19),_(10),p()(),h(11,"div",18)(12,"label"),_(13,"Email"),p(),h(14,"div",19),_(15),p()(),h(16,"div",18)(17,"label"),_(18,"Username"),p(),h(19,"div",19),_(20),p()(),h(21,"div",20)(22,"label"),_(23,"Roles"),p(),h(24,"div",19)(25,"mat-chip-set"),R(26,zye,2,2,"mat-chip",21),p()()(),h(27,"div",20)(28,"label"),_(29,"Permissions"),p(),h(30,"div",19)(31,"mat-chip-set"),R(32,Uye,2,2,"mat-chip",22),p()()()()),t&2){let e=n.ngIf,i=C(2);g(5),H(e.sub),g(5),H(e.name||"N/A"),g(5),H(e.email||"N/A"),g(5),H(e.preferred_username||"N/A"),g(6),y("ngForOf",i.profileData==null?null:i.profileData.roles),g(6),y("ngForOf",i.profileData==null?null:i.profileData.permissions)}}function Wye(t,n){t&1&&(h(0,"mat-chip",36)(1,"mat-icon"),_(2,"verified_user"),p(),_(3," Valid "),p())}function Gye(t,n){t&1&&(h(0,"mat-chip",37)(1,"mat-icon"),_(2,"error"),p(),_(3," Expired "),p())}function qye(t,n){if(t&1&&(h(0,"div",30)(1,"label"),_(2,"Issuer"),p(),h(3,"div"),_(4),p()()),t&2){let e=C().ngIf;g(4),H(e.payload.iss)}}function Yye(t,n){if(t&1&&(h(0,"mat-expansion-panel",38)(1,"mat-expansion-panel-header")(2,"mat-panel-title"),_(3,"Raw JWT Token"),p()(),h(4,"pre",39),_(5),p()()),t&2){let e=C().ngIf;g(5),H(e.raw)}}function Qye(t,n){if(t&1){let e=Y();h(0,"div",25)(1,"div",26)(2,"mat-chip-set")(3,"mat-chip",23)(4,"mat-icon"),_(5,"schedule"),p(),_(6),p(),R(7,Wye,4,0,"mat-chip",27)(8,Gye,4,0,"mat-chip",28),p()(),h(9,"div",29)(10,"div",30)(11,"label"),_(12,"Issued At"),p(),h(13,"div"),_(14),p()(),h(15,"div",30)(16,"label"),_(17,"Expires At"),p(),h(18,"div"),_(19),p()(),R(20,qye,5,1,"div",31),p(),h(21,"div",32)(22,"button",33),S("click",function(){I(e);let r=C(2);return A(r.toggleRawIdToken())}),h(23,"mat-icon"),_(24),p(),_(25),p(),h(26,"button",33),S("click",function(){let r=I(e).ngIf,o=C(2);return A(o.copyToClipboard(r.raw,"ID Token"))}),h(27,"mat-icon"),_(28,"content_copy"),p(),_(29," Copy Token "),p()(),R(30,Yye,6,1,"mat-expansion-panel",34),h(31,"mat-expansion-panel")(32,"mat-expansion-panel-header")(33,"mat-panel-title"),_(34,"Token Header"),p()(),h(35,"pre",35),_(36),p()(),h(37,"mat-expansion-panel")(38,"mat-expansion-panel-header")(39,"mat-panel-title"),_(40,"Token Claims (Payload)"),p()(),h(41,"pre",35),_(42),p()()()}if(t&2){let e=n.ngIf,i=C(2);g(3),y("color",i.getExpirationColor(e)),g(3),ve(" ",i.getExpirationStatus(e)," "),g(),y("ngIf",!e.isExpired),g(),y("ngIf",e.isExpired),g(6),H(i.formatDate(e.issuedAt)),g(5),H(i.formatDate(e.expiresAt)),g(),y("ngIf",e.payload.iss),g(4),H(i.showRawIdToken?"visibility_off":"visibility"),g(),ve(" ",i.showRawIdToken?"Hide":"Show"," Raw Token "),g(5),y("ngIf",i.showRawIdToken),g(6),H(i.formatJson(e.header)),g(6),H(i.formatJson(e.payload))}}function Kye(t,n){t&1&&(h(0,"div",40)(1,"mat-icon"),_(2,"info"),p(),h(3,"p"),_(4,"ID Token not available"),p()())}function Zye(t,n){t&1&&(h(0,"mat-chip",36)(1,"mat-icon"),_(2,"verified_user"),p(),_(3," Valid "),p())}function Xye(t,n){t&1&&(h(0,"mat-chip",37)(1,"mat-icon"),_(2,"error"),p(),_(3," Expired "),p())}function Jye(t,n){if(t&1&&(h(0,"div",30)(1,"label"),_(2,"Audience"),p(),h(3,"div"),_(4),p()()),t&2){let e=C().ngIf;g(4),H(e.payload.aud)}}function exe(t,n){if(t&1&&(h(0,"mat-expansion-panel",38)(1,"mat-expansion-panel-header")(2,"mat-panel-title"),_(3,"Raw JWT Token"),p()(),h(4,"pre",39),_(5),p()()),t&2){let e=C().ngIf;g(5),H(e.raw)}}function txe(t,n){if(t&1&&(h(0,"mat-chip"),_(1),p()),t&2){let e=n.$implicit;g(),ve(" ",e," ")}}function ixe(t,n){if(t&1&&(h(0,"mat-expansion-panel")(1,"mat-expansion-panel-header")(2,"mat-panel-title"),_(3,"Scopes"),p()(),h(4,"div",41)(5,"mat-chip-set"),R(6,txe,2,1,"mat-chip",42),p()()()),t&2){let e=C().ngIf,i=C(2);g(6),y("ngForOf",i.getScopes(e.payload.scope))}}function nxe(t,n){if(t&1){let e=Y();h(0,"div",25)(1,"div",26)(2,"mat-chip-set")(3,"mat-chip",23)(4,"mat-icon"),_(5,"schedule"),p(),_(6),p(),R(7,Zye,4,0,"mat-chip",27)(8,Xye,4,0,"mat-chip",28),p()(),h(9,"div",29)(10,"div",30)(11,"label"),_(12,"Issued At"),p(),h(13,"div"),_(14),p()(),h(15,"div",30)(16,"label"),_(17,"Expires At"),p(),h(18,"div"),_(19),p()(),R(20,Jye,5,1,"div",31),p(),h(21,"div",32)(22,"button",33),S("click",function(){I(e);let r=C(2);return A(r.toggleRawAccessToken())}),h(23,"mat-icon"),_(24),p(),_(25),p(),h(26,"button",33),S("click",function(){let r=I(e).ngIf,o=C(2);return A(o.copyToClipboard(r.raw,"Access Token"))}),h(27,"mat-icon"),_(28,"content_copy"),p(),_(29," Copy Token "),p()(),R(30,exe,6,1,"mat-expansion-panel",34),h(31,"mat-expansion-panel")(32,"mat-expansion-panel-header")(33,"mat-panel-title"),_(34,"Token Header"),p()(),h(35,"pre",35),_(36),p()(),h(37,"mat-expansion-panel")(38,"mat-expansion-panel-header")(39,"mat-panel-title"),_(40,"Token Claims (Payload)"),p()(),h(41,"pre",35),_(42),p()(),R(43,ixe,7,1,"mat-expansion-panel",0),p()}if(t&2){let e=n.ngIf,i=C(2);g(3),y("color",i.getExpirationColor(e)),g(3),ve(" ",i.getExpirationStatus(e)," "),g(),y("ngIf",!e.isExpired),g(),y("ngIf",e.isExpired),g(6),H(i.formatDate(e.issuedAt)),g(5),H(i.formatDate(e.expiresAt)),g(),y("ngIf",e.payload.aud),g(4),H(i.showRawAccessToken?"visibility_off":"visibility"),g(),ve(" ",i.showRawAccessToken?"Hide":"Show"," Raw Token "),g(5),y("ngIf",i.showRawAccessToken),g(6),H(i.formatJson(e.header)),g(6),H(i.formatJson(e.payload)),g(),y("ngIf",e.payload.scope)}}function rxe(t,n){t&1&&(h(0,"div",40)(1,"mat-icon"),_(2,"info"),p(),h(3,"p"),_(4,"Access Token not available"),p()())}function oxe(t,n){if(t&1&&(h(0,"div",6)(1,"mat-card",7)(2,"mat-card-content")(3,"div",8)(4,"mat-icon"),_(5,"warning"),p(),h(6,"div")(7,"strong"),_(8,"Security Notice:"),p(),_(9," Tokens displayed on this page contain sensitive information. Do not share these tokens with anyone or paste them in untrusted applications. "),p()()()(),h(10,"mat-card",9)(11,"mat-card-header")(12,"mat-icon",10),_(13,"person"),p(),h(14,"mat-card-title"),_(15,"User Information"),p(),h(16,"mat-card-subtitle"),_(17,"Your profile details from ID token"),p()(),h(18,"mat-card-content"),R(19,$ye,33,6,"div",11),p()(),h(20,"mat-card",12)(21,"mat-card-header")(22,"mat-icon",10),_(23,"vpn_key"),p(),h(24,"mat-card-title"),_(25,"Token Details"),p(),h(26,"mat-card-subtitle"),_(27,"Detailed JWT token information and claims"),p()(),h(28,"mat-card-content")(29,"mat-tab-group")(30,"mat-tab",13),R(31,Qye,43,12,"div",14)(32,Kye,5,0,"div",15),p(),h(33,"mat-tab",16),R(34,nxe,44,13,"div",14)(35,rxe,5,0,"div",15),p()()()()()),t&2){let e=C();g(19),y("ngIf",e.profileData==null?null:e.profileData.userInfo),g(12),y("ngIf",e.profileData==null?null:e.profileData.idToken),g(),y("ngIf",!(e.profileData!=null&&e.profileData.idToken)),g(2),y("ngIf",e.profileData==null?null:e.profileData.accessToken),g(),y("ngIf",!(e.profileData!=null&&e.profileData.accessToken))}}var b6=(()=>{let n=class n{constructor(){this.authService=u(Tt),this.oauthService=u(Wm),this.tokenDecoder=u(aU),this.snackBar=u(di),this.router=u(Re),this.profileData=null,this.showRawIdToken=!1,this.showRawAccessToken=!1}ngOnInit(){this.loadProfileData(),this.authSubscription=this.authService.isAuthenticated$.subscribe(()=>{this.loadProfileData()})}ngOnDestroy(){this.authSubscription?.unsubscribe()}loadProfileData(){let i=this.authService.isAuthenticated(),r=this.oauthService.hasValidAccessToken();if(console.log("Authentication Status:",{isAuthenticated:i,hasValidAccessToken:r}),!i&&!r){this.profileData=null;return}let o=this.authService.getUserInfo(),a=this.authService.getAccessToken(),s=this.oauthService.getIdToken(),l=this.authService.getUserRoles();console.log("Profile Data Debug:",{isAuthenticated:i,hasUserInfo:!!o,hasAccessToken:!!a,accessTokenLength:a?.length,hasIdToken:!!s,idTokenLength:s?.length,roles:l}),this.profileData={isAuthenticated:i,userInfo:o,idToken:s?this.tokenDecoder.decodeToken(s):null,accessToken:a?this.tokenDecoder.decodeToken(a):null,roles:l,permissions:this.getUserPermissions()},console.log("Decoded tokens:",{idToken:this.profileData.idToken,accessToken:this.profileData.accessToken})}getUserPermissions(){let i=[];return this.authService.hasRole("HRAdmin")||this.authService.hasRole("Manager")?i.push("canAdd","canEdit","canDelete","canRead"):this.authService.hasRole("Employee")&&i.push("canRead"),i}toggleRawIdToken(){this.showRawIdToken=!this.showRawIdToken}toggleRawAccessToken(){this.showRawAccessToken=!this.showRawAccessToken}copyToClipboard(i,r){navigator.clipboard.writeText(i).then(()=>{this.showMessage(`${r} copied to clipboard`)}).catch(o=>{console.error("Failed to copy:",o),this.showMessage("Failed to copy to clipboard")})}formatJson(i){return JSON.stringify(i,null,2)}getExpirationStatus(i){return this.tokenDecoder.getExpirationStatus(i)}getExpirationColor(i){if(!i||!i.expiresIn)return"";let r=i.expiresIn/3600;return i.isExpired?"warn":r<1?"accent":"primary"}formatDate(i){return i?new Intl.DateTimeFormat("en-US",{dateStyle:"medium",timeStyle:"medium"}).format(i):"N/A"}showMessage(i){this.snackBar.open(i,"Close",{duration:3e3,horizontalPosition:"end",verticalPosition:"top"})}getScopes(i){return i?Array.isArray(i)?i:typeof i=="string"?i.split(" ").filter(r=>r.length>0):[]:[]}};n.\u0275fac=function(r){return new(r||n)},n.\u0275cmp=E({type:n,selectors:[["app-profile-overview"]],decls:5,vars:4,consts:[[4,"ngIf"],["class","not-authenticated",4,"ngIf"],["class","profile-container",4,"ngIf"],[1,"not-authenticated"],[1,"empty-state"],["mat-raised-button","","color","primary","routerLink","/login"],[1,"profile-container"],[1,"security-warning"],[1,"warning-content"],[1,"profile-card"],["mat-card-avatar",""],["class","info-grid",4,"ngIf"],[1,"tokens-card"],["label","ID Token"],["class","token-content",4,"ngIf"],["class","no-token",4,"ngIf"],["label","Access Token"],[1,"info-grid"],[1,"info-item"],[1,"value"],[1,"info-item","full-width"],["highlighted","",3,"color",4,"ngFor","ngForOf"],[3,"color",4,"ngFor","ngForOf"],["highlighted","",3,"color"],[3,"color"],[1,"token-content"],[1,"token-status"],["color","primary",4,"ngIf"],["color","warn",4,"ngIf"],[1,"token-metadata"],[1,"metadata-item"],["class","metadata-item",4,"ngIf"],[1,"token-actions"],["mat-button","",3,"click"],["expanded","",4,"ngIf"],[1,"json-display"],["color","primary"],["color","warn"],["expanded",""],[1,"token-display"],[1,"no-token"],[1,"scopes-list"],[4,"ngFor","ngForOf"]],template:function(r,o){r&1&&(h(0,"page-header"),R(1,Bye,4,1,"ng-container",0)(2,jye,4,0,"ng-container",0),p(),R(3,Hye,14,0,"div",1)(4,oxe,36,5,"div",2)),r&2&&(g(),y("ngIf",o.profileData==null?null:o.profileData.userInfo),g(),y("ngIf",!(o.profileData!=null&&o.profileData.isAuthenticated)),g(),y("ngIf",!(o.profileData!=null&&o.profileData.isAuthenticated)),g(),y("ngIf",o.profileData==null?null:o.profileData.isAuthenticated))},dependencies:[gt,qr,li,$t,zt,zV,Ut,Jt,HV,Xt,ot,mt,ze,kt,l6,dA,s6,_6,uA,f6,g6,Br,pi,rp,__,tw,lk,Nn,ni],styles:[".profile-container[_ngcontent-%COMP%]{padding:16px;max-width:1200px;margin:0 auto;display:flex;flex-direction:column;gap:24px}.not-authenticated[_ngcontent-%COMP%]{padding:16px;max-width:600px;margin:0 auto}.not-authenticated[_ngcontent-%COMP%] .empty-state[_ngcontent-%COMP%]{display:flex;flex-direction:column;align-items:center;justify-content:center;padding:48px 16px;text-align:center}.not-authenticated[_ngcontent-%COMP%] .empty-state[_ngcontent-%COMP%] mat-icon[_ngcontent-%COMP%]{font-size:64px;width:64px;height:64px;color:#00000061;margin-bottom:16px}.not-authenticated[_ngcontent-%COMP%] .empty-state[_ngcontent-%COMP%] h2[_ngcontent-%COMP%]{margin:0 0 8px;font-size:24px;font-weight:500}.not-authenticated[_ngcontent-%COMP%] .empty-state[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{margin:0 0 24px;color:#0009}.not-authenticated[_ngcontent-%COMP%] .empty-state[_ngcontent-%COMP%] button[_ngcontent-%COMP%] mat-icon[_ngcontent-%COMP%]{font-size:20px;width:20px;height:20px;margin-right:8px;color:inherit}.security-warning[_ngcontent-%COMP%]{background-color:#fff3cd;border-left:4px solid #ff9800}.security-warning[_ngcontent-%COMP%] mat-card-content[_ngcontent-%COMP%]{padding:16px}.security-warning[_ngcontent-%COMP%] .warning-content[_ngcontent-%COMP%]{display:flex;align-items:center;gap:12px}.security-warning[_ngcontent-%COMP%] .warning-content[_ngcontent-%COMP%] mat-icon[_ngcontent-%COMP%]{color:#ff9800;flex-shrink:0}.security-warning[_ngcontent-%COMP%] .warning-content[_ngcontent-%COMP%] strong[_ngcontent-%COMP%]{font-weight:600}.profile-card[_ngcontent-%COMP%] mat-card-header[_ngcontent-%COMP%], .tokens-card[_ngcontent-%COMP%] mat-card-header[_ngcontent-%COMP%]{padding:16px;border-bottom:1px solid rgba(0,0,0,.12)}.profile-card[_ngcontent-%COMP%] mat-card-header[_ngcontent-%COMP%] mat-card-title[_ngcontent-%COMP%], .tokens-card[_ngcontent-%COMP%] mat-card-header[_ngcontent-%COMP%] mat-card-title[_ngcontent-%COMP%]{font-size:20px;font-weight:500;margin:0}.profile-card[_ngcontent-%COMP%] mat-card-header[_ngcontent-%COMP%] mat-card-subtitle[_ngcontent-%COMP%], .tokens-card[_ngcontent-%COMP%] mat-card-header[_ngcontent-%COMP%] mat-card-subtitle[_ngcontent-%COMP%]{margin-top:4px;color:#0009}.profile-card[_ngcontent-%COMP%] mat-card-content[_ngcontent-%COMP%], .tokens-card[_ngcontent-%COMP%] mat-card-content[_ngcontent-%COMP%]{padding:24px}.info-grid[_ngcontent-%COMP%]{display:grid;grid-template-columns:repeat(2,1fr);gap:24px}@media (max-width: 768px){.info-grid[_ngcontent-%COMP%]{grid-template-columns:1fr}}.info-grid[_ngcontent-%COMP%] .info-item[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:8px}.info-grid[_ngcontent-%COMP%] .info-item.full-width[_ngcontent-%COMP%]{grid-column:1/-1}.info-grid[_ngcontent-%COMP%] .info-item[_ngcontent-%COMP%] label[_ngcontent-%COMP%]{font-size:12px;font-weight:500;text-transform:uppercase;letter-spacing:.5px;color:#0009}.info-grid[_ngcontent-%COMP%] .info-item[_ngcontent-%COMP%] .value[_ngcontent-%COMP%]{font-size:16px;color:#000000de;word-break:break-word}.token-content[_ngcontent-%COMP%]{padding:24px 0;display:flex;flex-direction:column;gap:16px}.token-content[_ngcontent-%COMP%] .token-status[_ngcontent-%COMP%] mat-chip-set[_ngcontent-%COMP%] mat-chip[_ngcontent-%COMP%] mat-icon[_ngcontent-%COMP%]{margin-right:4px;font-size:18px;width:18px;height:18px}.token-content[_ngcontent-%COMP%] .token-metadata[_ngcontent-%COMP%]{display:grid;grid-template-columns:repeat(auto-fit,minmax(200px,1fr));gap:16px;padding:16px;background-color:#00000005;border-radius:4px}.token-content[_ngcontent-%COMP%] .token-metadata[_ngcontent-%COMP%] .metadata-item[_ngcontent-%COMP%] label[_ngcontent-%COMP%]{display:block;font-size:12px;font-weight:500;text-transform:uppercase;letter-spacing:.5px;color:#0009;margin-bottom:4px}.token-content[_ngcontent-%COMP%] .token-metadata[_ngcontent-%COMP%] .metadata-item[_ngcontent-%COMP%] div[_ngcontent-%COMP%]{font-size:14px;color:#000000de;word-break:break-word}.token-content[_ngcontent-%COMP%] .token-actions[_ngcontent-%COMP%]{display:flex;gap:8px;flex-wrap:wrap}.token-content[_ngcontent-%COMP%] .token-actions[_ngcontent-%COMP%] button[_ngcontent-%COMP%] mat-icon[_ngcontent-%COMP%]{margin-right:4px}.token-content[_ngcontent-%COMP%] mat-expansion-panel[_ngcontent-%COMP%]{margin-top:8px}.token-content[_ngcontent-%COMP%] .token-display[_ngcontent-%COMP%], .token-content[_ngcontent-%COMP%] .json-display[_ngcontent-%COMP%]{background-color:#f5f5f5;padding:16px;border-radius:4px;overflow-x:auto;font-family:Courier New,monospace;font-size:12px;line-height:1.5;margin:0;white-space:pre-wrap;word-break:break-all}.token-content[_ngcontent-%COMP%] .scopes-list[_ngcontent-%COMP%]{padding:16px}.token-content[_ngcontent-%COMP%] .scopes-list[_ngcontent-%COMP%] mat-chip-set[_ngcontent-%COMP%] mat-chip[_ngcontent-%COMP%]{margin:4px}.no-token[_ngcontent-%COMP%]{display:flex;flex-direction:column;align-items:center;justify-content:center;padding:48px 16px;text-align:center;color:#00000061}.no-token[_ngcontent-%COMP%] mat-icon[_ngcontent-%COMP%]{font-size:48px;width:48px;height:48px;margin-bottom:12px}.no-token[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{margin:0;font-size:14px}mat-chip-set[_ngcontent-%COMP%] mat-chip[_ngcontent-%COMP%]{margin:4px}@media (max-width: 768px){.profile-container[_ngcontent-%COMP%]{padding:12px}.profile-card[_ngcontent-%COMP%] mat-card-content[_ngcontent-%COMP%], .tokens-card[_ngcontent-%COMP%] mat-card-content[_ngcontent-%COMP%]{padding:16px}.token-content[_ngcontent-%COMP%]{padding:16px 0}.token-content[_ngcontent-%COMP%] .token-metadata[_ngcontent-%COMP%]{grid-template-columns:1fr}.security-warning[_ngcontent-%COMP%] .warning-content[_ngcontent-%COMP%]{flex-direction:column;align-items:flex-start}}"]});let t=n;return t})();var v6=(()=>{let n=class n{};n.\u0275fac=function(r){return new(r||n)},n.\u0275cmp=E({type:n,selectors:[["app-profile-settings"]],decls:14,vars:0,consts:[[1,"settings-container"],[1,"coming-soon"]],template:function(r,o){r&1&&(h(0,"page-header")(1,"mat-icon"),_(2,"settings"),p(),_(3,` Profile Settings -`),p(),h(4,"div",0)(5,"mat-card")(6,"mat-card-content")(7,"div",1)(8,"mat-icon"),_(9,"construction"),p(),h(10,"h2"),_(11,"Coming Soon"),p(),h(12,"p"),_(13,"User settings functionality will be available in a future update."),p()()()()())},dependencies:[gt,$t,zt,Ut,ot,mt,ni],styles:[".settings-container[_ngcontent-%COMP%]{padding:16px;max-width:800px;margin:0 auto}.settings-container[_ngcontent-%COMP%] .coming-soon[_ngcontent-%COMP%]{display:flex;flex-direction:column;align-items:center;justify-content:center;padding:48px 16px;text-align:center}.settings-container[_ngcontent-%COMP%] .coming-soon[_ngcontent-%COMP%] mat-icon[_ngcontent-%COMP%]{font-size:64px;width:64px;height:64px;color:#00000061;margin-bottom:16px}.settings-container[_ngcontent-%COMP%] .coming-soon[_ngcontent-%COMP%] h2[_ngcontent-%COMP%]{margin:0 0 8px;font-size:24px;font-weight:500}.settings-container[_ngcontent-%COMP%] .coming-soon[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{margin:0;color:#0009}"]});let t=n;return t})();var y6=[{path:"",component:eU,canActivate:[lI],canActivateChild:[lI],children:[{path:"",redirectTo:"dashboard",pathMatch:"full"},{path:"dashboard",component:lU},{path:"employees",component:wU},{path:"employees/create",component:aA,canActivate:[a_]},{path:"employees/edit/:id",component:aA,canActivate:[a_]},{path:"employees/:id",component:DU},{path:"departments",component:zU},{path:"departments/create",component:sA,canActivate:[a_]},{path:"departments/edit/:id",component:sA,canActivate:[a_]},{path:"departments/:id",component:UU},{path:"positions",component:YU},{path:"positions/create",component:lA,canActivate:[s_]},{path:"positions/edit/:id",component:lA,canActivate:[s_]},{path:"positions/:id",component:KU},{path:"salary-ranges",component:XU},{path:"salary-ranges/create",component:cA,canActivate:[s_]},{path:"salary-ranges/edit/:id",component:cA,canActivate:[s_]},{path:"salary-ranges/:id",component:e6},{path:"profile",children:[{path:"overview",component:b6},{path:"settings",component:v6},{path:"",redirectTo:"overview",pathMatch:"full"}]},{path:"403",component:cU},{path:"404",component:dU},{path:"500",component:uU}]},{path:"auth",component:tU,children:[{path:"register",component:mU}]},{path:"callback",component:hU},{path:"**",redirectTo:"dashboard"}];var x6=(t,n)=>{let e=u(Tt);if(!e.isAuthenticated())return n(t);let i=e.getAccessToken();if(!i)return n(t);let r=t.clone({setHeaders:{Authorization:`Bearer ${i}`}});return n(r)};var C6={providers:[ZD(),{provide:wI,useValue:ko.baseUrl},gL(),Ql(()=>u(Tt).initAuth()),Ql(()=>u(Yz).load()),Ql(()=>u(Gz).load()),S1(T1([x6,...t8])),ok(y6,ak({scrollPositionRestoration:"enabled",anchorScrolling:"enabled"}),S0()),ej(),W5($5()),W3({loader:G3({prefix:"i18n/",suffix:".json"})}),xb(xc.forRoot()),f3([...R3()]),{provide:yg,useFactory:Oz,deps:[ia],multi:!0},{provide:gc,deps:[pz],useFactory:t=>t.getPaginatorIntl()},{provide:Bk,useValue:{appearance:"outlined"}},jV({parse:{dateInput:"yyyy-MM-dd"},display:{dateInput:"yyyy-MM-dd",monthYearLabel:"yyyy MMM",dateA11yLabel:"LL",monthYearA11yLabel:"yyyy MMM"}}),c3({parse:{dateInput:"yyyy-MM-dd",yearInput:"yyyy",monthInput:"MMMM",datetimeInput:"yyyy-MM-dd HH:mm",timeInput:"HH:mm"},display:{dateInput:"yyyy-MM-dd",yearInput:"yyyy",monthInput:"MMMM",datetimeInput:"yyyy-MM-dd HH:mm",timeInput:"HH:mm",monthYearLabel:"yyyy MMMM",dateA11yLabel:"LL",monthYearA11yLabel:"MMMM yyyy",popupHeaderDateLabel:"MMM dd, E"}})]};var w6=(()=>{let n=class n{constructor(){this.preloader=u(qz),this.settings=u(aa)}ngOnInit(){this.settings.setDirection(),this.settings.setTheme()}ngAfterViewInit(){this.preloader.hide()}};n.\u0275fac=function(r){return new(r||n)},n.\u0275cmp=E({type:n,selectors:[["app-root"]],decls:1,vars:0,template:function(r,o){r&1&&k(0,"router-outlet")},dependencies:[ol],encapsulation:2});let t=n;return t})();C1(w6,C6).catch(t=>console.error(t)); +`],encapsulation:2,changeDetection:0})}return t})();function KI(t){return t?.nodeName==="TD"}function ZI(t){let n;return KI(t)?n=t:KI(t.parentNode)?n=t.parentNode:KI(t.parentNode?.parentNode)&&(n=t.parentNode.parentNode),n?.getAttribute("data-mat-row")!=null?n:null}function XI(t,n,e){return e!==null&&n!==e&&t=n&&t===e}function eA(t,n,e,i){return i&&n!==null&&e!==null&&n!==e&&t>=n&&t<=e}function EU(t){let n=t.changedTouches[0];return document.elementFromPoint(n.clientX,n.clientY)}var ua=class{start;end;_disableStructuralEquivalency;constructor(n,e){this.start=n,this.end=e}},w_=(()=>{class t{selection;_adapter;_selectionChanged=new z;selectionChanged=this._selectionChanged;constructor(e,i){this.selection=e,this._adapter=i,this.selection=e}updateSelection(e,i){let r=this.selection;this.selection=e,this._selectionChanged.next({selection:e,source:i,oldValue:r})}ngOnDestroy(){this._selectionChanged.complete()}_isValidDateInstance(e){return this._adapter.isDateInstance(e)&&this._adapter.isValid(e)}static \u0275fac=function(i){Ad()};static \u0275prov=O({token:t,factory:t.\u0275fac})}return t})(),Ybe=(()=>{class t extends w_{constructor(e){super(null,e)}add(e){super.updateSelection(e,this)}isValid(){return this.selection!=null&&this._isValidDateInstance(this.selection)}isComplete(){return this.selection!=null}clone(){let e=new t(this._adapter);return e.updateSelection(this.selection,this),e}static \u0275fac=function(i){return new(i||t)(pe(Li))};static \u0275prov=O({token:t,factory:t.\u0275fac})}return t})();function Qbe(t,n){return t||new Ybe(n)}var AU={provide:w_,deps:[[new ss,new Gl,w_],Li],useFactory:Qbe};var OU=new T("MAT_DATE_RANGE_SELECTION_STRATEGY");var tA=7,Kbe=0,MU=(()=>{class t{_changeDetectorRef=u(ye);_dateFormats=u(xs,{optional:!0});_dateAdapter=u(Li,{optional:!0});_dir=u(Vt,{optional:!0});_rangeStrategy=u(OU,{optional:!0});_rerenderSubscription=ke.EMPTY;_selectionKeyPressed;get activeDate(){return this._activeDate}set activeDate(e){let i=this._activeDate,r=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e))||this._dateAdapter.today();this._activeDate=this._dateAdapter.clampDate(r,this.minDate,this.maxDate),this._hasSameMonthAndYear(i,this._activeDate)||this._init()}_activeDate;get selected(){return this._selected}set selected(e){e instanceof ua?this._selected=e:this._selected=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e)),this._setRanges(this._selected)}_selected;get minDate(){return this._minDate}set minDate(e){this._minDate=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e))}_minDate;get maxDate(){return this._maxDate}set maxDate(e){this._maxDate=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e))}_maxDate;dateFilter;dateClass;comparisonStart;comparisonEnd;startDateAccessibleName;endDateAccessibleName;activeDrag=null;selectedChange=new U;_userSelection=new U;dragStarted=new U;dragEnded=new U;activeDateChange=new U;_matCalendarBody;_monthLabel=he("");_weeks=he([]);_firstWeekOffset=he(0);_rangeStart=he(null);_rangeEnd=he(null);_comparisonRangeStart=he(null);_comparisonRangeEnd=he(null);_previewStart=he(null);_previewEnd=he(null);_isRange=he(!1);_todayDate=he(null);_weekdays=he([]);constructor(){u(ut).load(Qr),this._activeDate=this._dateAdapter.today()}ngAfterContentInit(){this._rerenderSubscription=this._dateAdapter.localeChanges.pipe(He(null)).subscribe(()=>this._init())}ngOnChanges(e){let i=e.comparisonStart||e.comparisonEnd;i&&!i.firstChange&&this._setRanges(this.selected),e.activeDrag&&!this.activeDrag&&this._clearPreview()}ngOnDestroy(){this._rerenderSubscription.unsubscribe()}_dateSelected(e){let i=e.value,r=this._getDateFromDayOfMonth(i),o,a;this._selected instanceof ua?(o=this._getDateInCurrentMonth(this._selected.start),a=this._getDateInCurrentMonth(this._selected.end)):o=a=this._getDateInCurrentMonth(this._selected),(o!==i||a!==i)&&this.selectedChange.emit(r),this._userSelection.emit({value:r,event:e.event}),this._clearPreview(),this._changeDetectorRef.markForCheck()}_updateActiveDate(e){let i=e.value,r=this._activeDate;this.activeDate=this._getDateFromDayOfMonth(i),this._dateAdapter.compareDate(r,this.activeDate)&&this.activeDateChange.emit(this._activeDate)}_handleCalendarBodyKeydown(e){let i=this._activeDate,r=this._isRtl();switch(e.keyCode){case 37:this.activeDate=this._dateAdapter.addCalendarDays(this._activeDate,r?1:-1);break;case 39:this.activeDate=this._dateAdapter.addCalendarDays(this._activeDate,r?-1:1);break;case 38:this.activeDate=this._dateAdapter.addCalendarDays(this._activeDate,-7);break;case 40:this.activeDate=this._dateAdapter.addCalendarDays(this._activeDate,7);break;case 36:this.activeDate=this._dateAdapter.addCalendarDays(this._activeDate,1-this._dateAdapter.getDate(this._activeDate));break;case 35:this.activeDate=this._dateAdapter.addCalendarDays(this._activeDate,this._dateAdapter.getNumDaysInMonth(this._activeDate)-this._dateAdapter.getDate(this._activeDate));break;case 33:this.activeDate=e.altKey?this._dateAdapter.addCalendarYears(this._activeDate,-1):this._dateAdapter.addCalendarMonths(this._activeDate,-1);break;case 34:this.activeDate=e.altKey?this._dateAdapter.addCalendarYears(this._activeDate,1):this._dateAdapter.addCalendarMonths(this._activeDate,1);break;case 13:case 32:this._selectionKeyPressed=!0,this._canSelect(this._activeDate)&&e.preventDefault();return;case 27:this._previewEnd()!=null&&!Ft(e)&&(this._clearPreview(),this.activeDrag?this.dragEnded.emit({value:null,event:e}):(this.selectedChange.emit(null),this._userSelection.emit({value:null,event:e})),e.preventDefault(),e.stopPropagation());return;default:return}this._dateAdapter.compareDate(i,this.activeDate)&&(this.activeDateChange.emit(this.activeDate),this._focusActiveCellAfterViewChecked()),e.preventDefault()}_handleCalendarBodyKeyup(e){(e.keyCode===32||e.keyCode===13)&&(this._selectionKeyPressed&&this._canSelect(this._activeDate)&&this._dateSelected({value:this._dateAdapter.getDate(this._activeDate),event:e}),this._selectionKeyPressed=!1)}_init(){this._setRanges(this.selected),this._todayDate.set(this._getCellCompareValue(this._dateAdapter.today())),this._monthLabel.set(this._dateFormats.display.monthLabel?this._dateAdapter.format(this.activeDate,this._dateFormats.display.monthLabel):this._dateAdapter.getMonthNames("short")[this._dateAdapter.getMonth(this.activeDate)].toLocaleUpperCase());let e=this._dateAdapter.createDate(this._dateAdapter.getYear(this.activeDate),this._dateAdapter.getMonth(this.activeDate),1);this._firstWeekOffset.set((tA+this._dateAdapter.getDayOfWeek(e)-this._dateAdapter.getFirstDayOfWeek())%tA),this._initWeekdays(),this._createWeekCells(),this._changeDetectorRef.markForCheck()}_focusActiveCell(e){this._matCalendarBody._focusActiveCell(e)}_focusActiveCellAfterViewChecked(){this._matCalendarBody._scheduleFocusActiveCellAfterViewChecked()}_previewChanged({event:e,value:i}){if(this._rangeStrategy){let r=i?i.rawValue:null,o=this._rangeStrategy.createPreview(r,this.selected,e);if(this._previewStart.set(this._getCellCompareValue(o.start)),this._previewEnd.set(this._getCellCompareValue(o.end)),this.activeDrag&&r){let a=this._rangeStrategy.createDrag?.(this.activeDrag.value,this.selected,r,e);a&&(this._previewStart.set(this._getCellCompareValue(a.start)),this._previewEnd.set(this._getCellCompareValue(a.end)))}}}_dragEnded(e){if(this.activeDrag)if(e.value){let i=this._rangeStrategy?.createDrag?.(this.activeDrag.value,this.selected,e.value,e.event);this.dragEnded.emit({value:i??null,event:e.event})}else this.dragEnded.emit({value:null,event:e.event})}_getDateFromDayOfMonth(e){return this._dateAdapter.createDate(this._dateAdapter.getYear(this.activeDate),this._dateAdapter.getMonth(this.activeDate),e)}_initWeekdays(){let e=this._dateAdapter.getFirstDayOfWeek(),i=this._dateAdapter.getDayOfWeekNames("narrow"),o=this._dateAdapter.getDayOfWeekNames("long").map((a,s)=>({long:a,narrow:i[s],id:Kbe++}));this._weekdays.set(o.slice(e).concat(o.slice(0,e)))}_createWeekCells(){let e=this._dateAdapter.getNumDaysInMonth(this.activeDate),i=this._dateAdapter.getDateNames(),r=[[]];for(let o=0,a=this._firstWeekOffset();o=0)&&(!this.maxDate||this._dateAdapter.compareDate(e,this.maxDate)<=0)&&(!this.dateFilter||this.dateFilter(e))}_getDateInCurrentMonth(e){return e&&this._hasSameMonthAndYear(e,this.activeDate)?this._dateAdapter.getDate(e):null}_hasSameMonthAndYear(e,i){return!!(e&&i&&this._dateAdapter.getMonth(e)==this._dateAdapter.getMonth(i)&&this._dateAdapter.getYear(e)==this._dateAdapter.getYear(i))}_getCellCompareValue(e){if(e){let i=this._dateAdapter.getYear(e),r=this._dateAdapter.getMonth(e),o=this._dateAdapter.getDate(e);return new Date(i,r,o).getTime()}return null}_isRtl(){return this._dir&&this._dir.value==="rtl"}_setRanges(e){e instanceof ua?(this._rangeStart.set(this._getCellCompareValue(e.start)),this._rangeEnd.set(this._getCellCompareValue(e.end)),this._isRange.set(!0)):(this._rangeStart.set(this._getCellCompareValue(e)),this._rangeEnd.set(this._rangeStart()),this._isRange.set(!1)),this._comparisonRangeStart.set(this._getCellCompareValue(this.comparisonStart)),this._comparisonRangeEnd.set(this._getCellCompareValue(this.comparisonEnd))}_canSelect(e){return!this.dateFilter||this.dateFilter(e)}_clearPreview(){this._previewStart.set(null),this._previewEnd.set(null)}static \u0275fac=function(i){return new(i||t)};static \u0275cmp=E({type:t,selectors:[["mat-month-view"]],viewQuery:function(i,r){if(i&1&&ie(cp,5),i&2){let o;B(o=j())&&(r._matCalendarBody=o.first)}},inputs:{activeDate:"activeDate",selected:"selected",minDate:"minDate",maxDate:"maxDate",dateFilter:"dateFilter",dateClass:"dateClass",comparisonStart:"comparisonStart",comparisonEnd:"comparisonEnd",startDateAccessibleName:"startDateAccessibleName",endDateAccessibleName:"endDateAccessibleName",activeDrag:"activeDrag"},outputs:{selectedChange:"selectedChange",_userSelection:"_userSelection",dragStarted:"dragStarted",dragEnded:"dragEnded",activeDateChange:"activeDateChange"},exportAs:["matMonthView"],features:[Ae],decls:8,vars:14,consts:[["role","grid",1,"mat-calendar-table"],[1,"mat-calendar-table-header"],["scope","col"],["aria-hidden","true"],["colspan","7",1,"mat-calendar-table-header-divider"],["mat-calendar-body","",3,"selectedValueChange","activeDateChange","previewChange","dragStarted","dragEnded","keyup","keydown","label","rows","todayValue","startValue","endValue","comparisonStart","comparisonEnd","previewStart","previewEnd","isRange","labelMinRequiredCells","activeCell","startDateAccessibleName","endDateAccessibleName"],[1,"cdk-visually-hidden"]],template:function(i,r){i&1&&(h(0,"table",0)(1,"thead",1)(2,"tr"),xt(3,Fbe,5,2,"th",2,IU),p(),h(5,"tr",3),k(6,"th",4),p()(),h(7,"tbody",5),S("selectedValueChange",function(a){return r._dateSelected(a)})("activeDateChange",function(a){return r._updateActiveDate(a)})("previewChange",function(a){return r._previewChanged(a)})("dragStarted",function(a){return r.dragStarted.emit(a)})("dragEnded",function(a){return r._dragEnded(a)})("keyup",function(a){return r._handleCalendarBodyKeyup(a)})("keydown",function(a){return r._handleCalendarBodyKeydown(a)}),p()()),i&2&&(g(3),Ct(r._weekdays()),g(4),y("label",r._monthLabel())("rows",r._weeks())("todayValue",r._todayDate())("startValue",r._rangeStart())("endValue",r._rangeEnd())("comparisonStart",r._comparisonRangeStart())("comparisonEnd",r._comparisonRangeEnd())("previewStart",r._previewStart())("previewEnd",r._previewEnd())("isRange",r._isRange())("labelMinRequiredCells",3)("activeCell",r._dateAdapter.getDate(r.activeDate)-1)("startDateAccessibleName",r.startDateAccessibleName)("endDateAccessibleName",r.endDateAccessibleName))},dependencies:[cp],encapsulation:2,changeDetection:0})}return t})(),Io=24,iA=4,kU=(()=>{class t{_changeDetectorRef=u(ye);_dateAdapter=u(Li,{optional:!0});_dir=u(Vt,{optional:!0});_rerenderSubscription=ke.EMPTY;_selectionKeyPressed;get activeDate(){return this._activeDate}set activeDate(e){let i=this._activeDate,r=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e))||this._dateAdapter.today();this._activeDate=this._dateAdapter.clampDate(r,this.minDate,this.maxDate),RU(this._dateAdapter,i,this._activeDate,this.minDate,this.maxDate)||this._init()}_activeDate;get selected(){return this._selected}set selected(e){e instanceof ua?this._selected=e:this._selected=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e)),this._setSelectedYear(e)}_selected;get minDate(){return this._minDate}set minDate(e){this._minDate=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e))}_minDate;get maxDate(){return this._maxDate}set maxDate(e){this._maxDate=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e))}_maxDate;dateFilter;dateClass;selectedChange=new U;yearSelected=new U;activeDateChange=new U;_matCalendarBody;_years=he([]);_todayYear=he(0);_selectedYear=he(null);constructor(){this._dateAdapter,this._activeDate=this._dateAdapter.today()}ngAfterContentInit(){this._rerenderSubscription=this._dateAdapter.localeChanges.pipe(He(null)).subscribe(()=>this._init())}ngOnDestroy(){this._rerenderSubscription.unsubscribe()}_init(){this._todayYear.set(this._dateAdapter.getYear(this._dateAdapter.today()));let i=this._dateAdapter.getYear(this._activeDate)-x_(this._dateAdapter,this.activeDate,this.minDate,this.maxDate),r=[];for(let o=0,a=[];othis._createCellForYear(s))),a=[]);this._years.set(r),this._changeDetectorRef.markForCheck()}_yearSelected(e){let i=e.value,r=this._dateAdapter.createDate(i,0,1),o=this._getDateFromYear(i);this.yearSelected.emit(r),this.selectedChange.emit(o)}_updateActiveDate(e){let i=e.value,r=this._activeDate;this.activeDate=this._getDateFromYear(i),this._dateAdapter.compareDate(r,this.activeDate)&&this.activeDateChange.emit(this.activeDate)}_handleCalendarBodyKeydown(e){let i=this._activeDate,r=this._isRtl();switch(e.keyCode){case 37:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,r?1:-1);break;case 39:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,r?-1:1);break;case 38:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,-iA);break;case 40:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,iA);break;case 36:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,-x_(this._dateAdapter,this.activeDate,this.minDate,this.maxDate));break;case 35:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,Io-x_(this._dateAdapter,this.activeDate,this.minDate,this.maxDate)-1);break;case 33:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,e.altKey?-Io*10:-Io);break;case 34:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,e.altKey?Io*10:Io);break;case 13:case 32:this._selectionKeyPressed=!0;break;default:return}this._dateAdapter.compareDate(i,this.activeDate)&&this.activeDateChange.emit(this.activeDate),this._focusActiveCellAfterViewChecked(),e.preventDefault()}_handleCalendarBodyKeyup(e){(e.keyCode===32||e.keyCode===13)&&(this._selectionKeyPressed&&this._yearSelected({value:this._dateAdapter.getYear(this._activeDate),event:e}),this._selectionKeyPressed=!1)}_getActiveCell(){return x_(this._dateAdapter,this.activeDate,this.minDate,this.maxDate)}_focusActiveCell(){this._matCalendarBody._focusActiveCell()}_focusActiveCellAfterViewChecked(){this._matCalendarBody._scheduleFocusActiveCellAfterViewChecked()}_getDateFromYear(e){let i=this._dateAdapter.getMonth(this.activeDate),r=this._dateAdapter.getNumDaysInMonth(this._dateAdapter.createDate(e,i,1));return this._dateAdapter.createDate(e,i,Math.min(this._dateAdapter.getDate(this.activeDate),r))}_createCellForYear(e){let i=this._dateAdapter.createDate(e,0,1),r=this._dateAdapter.getYearName(i),o=this.dateClass?this.dateClass(i,"multi-year"):void 0;return new C_(e,r,r,this._shouldEnableYear(e),o)}_shouldEnableYear(e){if(e==null||this.maxDate&&e>this._dateAdapter.getYear(this.maxDate)||this.minDate&&e{class t{_changeDetectorRef=u(ye);_dateFormats=u(xs,{optional:!0});_dateAdapter=u(Li,{optional:!0});_dir=u(Vt,{optional:!0});_rerenderSubscription=ke.EMPTY;_selectionKeyPressed;get activeDate(){return this._activeDate}set activeDate(e){let i=this._activeDate,r=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e))||this._dateAdapter.today();this._activeDate=this._dateAdapter.clampDate(r,this.minDate,this.maxDate),this._dateAdapter.getYear(i)!==this._dateAdapter.getYear(this._activeDate)&&this._init()}_activeDate;get selected(){return this._selected}set selected(e){e instanceof ua?this._selected=e:this._selected=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e)),this._setSelectedMonth(e)}_selected;get minDate(){return this._minDate}set minDate(e){this._minDate=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e))}_minDate;get maxDate(){return this._maxDate}set maxDate(e){this._maxDate=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e))}_maxDate;dateFilter;dateClass;selectedChange=new U;monthSelected=new U;activeDateChange=new U;_matCalendarBody;_months=he([]);_yearLabel=he("");_todayMonth=he(null);_selectedMonth=he(null);constructor(){this._activeDate=this._dateAdapter.today()}ngAfterContentInit(){this._rerenderSubscription=this._dateAdapter.localeChanges.pipe(He(null)).subscribe(()=>this._init())}ngOnDestroy(){this._rerenderSubscription.unsubscribe()}_monthSelected(e){let i=e.value,r=this._dateAdapter.createDate(this._dateAdapter.getYear(this.activeDate),i,1);this.monthSelected.emit(r);let o=this._getDateFromMonth(i);this.selectedChange.emit(o)}_updateActiveDate(e){let i=e.value,r=this._activeDate;this.activeDate=this._getDateFromMonth(i),this._dateAdapter.compareDate(r,this.activeDate)&&this.activeDateChange.emit(this.activeDate)}_handleCalendarBodyKeydown(e){let i=this._activeDate,r=this._isRtl();switch(e.keyCode){case 37:this.activeDate=this._dateAdapter.addCalendarMonths(this._activeDate,r?1:-1);break;case 39:this.activeDate=this._dateAdapter.addCalendarMonths(this._activeDate,r?-1:1);break;case 38:this.activeDate=this._dateAdapter.addCalendarMonths(this._activeDate,-4);break;case 40:this.activeDate=this._dateAdapter.addCalendarMonths(this._activeDate,4);break;case 36:this.activeDate=this._dateAdapter.addCalendarMonths(this._activeDate,-this._dateAdapter.getMonth(this._activeDate));break;case 35:this.activeDate=this._dateAdapter.addCalendarMonths(this._activeDate,11-this._dateAdapter.getMonth(this._activeDate));break;case 33:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,e.altKey?-10:-1);break;case 34:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,e.altKey?10:1);break;case 13:case 32:this._selectionKeyPressed=!0;break;default:return}this._dateAdapter.compareDate(i,this.activeDate)&&(this.activeDateChange.emit(this.activeDate),this._focusActiveCellAfterViewChecked()),e.preventDefault()}_handleCalendarBodyKeyup(e){(e.keyCode===32||e.keyCode===13)&&(this._selectionKeyPressed&&this._monthSelected({value:this._dateAdapter.getMonth(this._activeDate),event:e}),this._selectionKeyPressed=!1)}_init(){this._setSelectedMonth(this.selected),this._todayMonth.set(this._getMonthInCurrentYear(this._dateAdapter.today())),this._yearLabel.set(this._dateAdapter.getYearName(this.activeDate));let e=this._dateAdapter.getMonthNames("short");this._months.set([[0,1,2,3],[4,5,6,7],[8,9,10,11]].map(i=>i.map(r=>this._createCellForMonth(r,e[r])))),this._changeDetectorRef.markForCheck()}_focusActiveCell(){this._matCalendarBody._focusActiveCell()}_focusActiveCellAfterViewChecked(){this._matCalendarBody._scheduleFocusActiveCellAfterViewChecked()}_getMonthInCurrentYear(e){return e&&this._dateAdapter.getYear(e)==this._dateAdapter.getYear(this.activeDate)?this._dateAdapter.getMonth(e):null}_getDateFromMonth(e){let i=this._dateAdapter.createDate(this._dateAdapter.getYear(this.activeDate),e,1),r=this._dateAdapter.getNumDaysInMonth(i);return this._dateAdapter.createDate(this._dateAdapter.getYear(this.activeDate),e,Math.min(this._dateAdapter.getDate(this.activeDate),r))}_createCellForMonth(e,i){let r=this._dateAdapter.createDate(this._dateAdapter.getYear(this.activeDate),e,1),o=this._dateAdapter.format(r,this._dateFormats.display.monthYearA11yLabel),a=this.dateClass?this.dateClass(r,"year"):void 0;return new C_(e,i.toLocaleUpperCase(),o,this._shouldEnableMonth(e),a)}_shouldEnableMonth(e){let i=this._dateAdapter.getYear(this.activeDate);if(e==null||this._isYearAndMonthAfterMaxDate(i,e)||this._isYearAndMonthBeforeMinDate(i,e))return!1;if(!this.dateFilter)return!0;let r=this._dateAdapter.createDate(i,e,1);for(let o=r;this._dateAdapter.getMonth(o)==e;o=this._dateAdapter.addCalendarDays(o,1))if(this.dateFilter(o))return!0;return!1}_isYearAndMonthAfterMaxDate(e,i){if(this.maxDate){let r=this._dateAdapter.getYear(this.maxDate),o=this._dateAdapter.getMonth(this.maxDate);return e>r||e===r&&i>o}return!1}_isYearAndMonthBeforeMinDate(e,i){if(this.minDate){let r=this._dateAdapter.getYear(this.minDate),o=this._dateAdapter.getMonth(this.minDate);return e{class t{_intl=u(dp);calendar=u(nA);_dateAdapter=u(Li,{optional:!0});_dateFormats=u(xs,{optional:!0});_periodButtonText;_periodButtonDescription;_periodButtonLabel;_prevButtonLabel;_nextButtonLabel;constructor(){u(ut).load(Qr);let e=u(ye);this._updateLabels(),this.calendar.stateChanges.subscribe(()=>{this._updateLabels(),e.markForCheck()})}get periodButtonText(){return this._periodButtonText}get periodButtonDescription(){return this._periodButtonDescription}get periodButtonLabel(){return this._periodButtonLabel}get prevButtonLabel(){return this._prevButtonLabel}get nextButtonLabel(){return this._nextButtonLabel}currentPeriodClicked(){this.calendar.currentView=this.calendar.currentView=="month"?"multi-year":"month"}previousClicked(){this.previousEnabled()&&(this.calendar.activeDate=this.calendar.currentView=="month"?this._dateAdapter.addCalendarMonths(this.calendar.activeDate,-1):this._dateAdapter.addCalendarYears(this.calendar.activeDate,this.calendar.currentView=="year"?-1:-Io))}nextClicked(){this.nextEnabled()&&(this.calendar.activeDate=this.calendar.currentView=="month"?this._dateAdapter.addCalendarMonths(this.calendar.activeDate,1):this._dateAdapter.addCalendarYears(this.calendar.activeDate,this.calendar.currentView=="year"?1:Io))}previousEnabled(){return this.calendar.minDate?!this.calendar.minDate||!this._isSameView(this.calendar.activeDate,this.calendar.minDate):!0}nextEnabled(){return!this.calendar.maxDate||!this._isSameView(this.calendar.activeDate,this.calendar.maxDate)}_updateLabels(){let e=this.calendar,i=this._intl,r=this._dateAdapter;e.currentView==="month"?(this._periodButtonText=r.format(e.activeDate,this._dateFormats.display.monthYearLabel).toLocaleUpperCase(),this._periodButtonDescription=r.format(e.activeDate,this._dateFormats.display.monthYearLabel).toLocaleUpperCase(),this._periodButtonLabel=i.switchToMultiYearViewLabel,this._prevButtonLabel=i.prevMonthLabel,this._nextButtonLabel=i.nextMonthLabel):e.currentView==="year"?(this._periodButtonText=r.getYearName(e.activeDate),this._periodButtonDescription=r.getYearName(e.activeDate),this._periodButtonLabel=i.switchToMonthViewLabel,this._prevButtonLabel=i.prevYearLabel,this._nextButtonLabel=i.nextYearLabel):(this._periodButtonText=i.formatYearRange(...this._formatMinAndMaxYearLabels()),this._periodButtonDescription=i.formatYearRangeLabel(...this._formatMinAndMaxYearLabels()),this._periodButtonLabel=i.switchToMonthViewLabel,this._prevButtonLabel=i.prevMultiYearLabel,this._nextButtonLabel=i.nextMultiYearLabel)}_isSameView(e,i){return this.calendar.currentView=="month"?this._dateAdapter.getYear(e)==this._dateAdapter.getYear(i)&&this._dateAdapter.getMonth(e)==this._dateAdapter.getMonth(i):this.calendar.currentView=="year"?this._dateAdapter.getYear(e)==this._dateAdapter.getYear(i):RU(this._dateAdapter,e,i,this.calendar.minDate,this.calendar.maxDate)}_formatMinAndMaxYearLabels(){let i=this._dateAdapter.getYear(this.calendar.activeDate)-x_(this._dateAdapter,this.calendar.activeDate,this.calendar.minDate,this.calendar.maxDate),r=i+Io-1,o=this._dateAdapter.getYearName(this._dateAdapter.createDate(i,0,1)),a=this._dateAdapter.getYearName(this._dateAdapter.createDate(r,0,1));return[o,a]}_periodButtonLabelId=u(Ze).getId("mat-calendar-period-label-");static \u0275fac=function(i){return new(i||t)};static \u0275cmp=E({type:t,selectors:[["mat-calendar-header"]],exportAs:["matCalendarHeader"],ngContentSelectors:Nbe,decls:17,vars:13,consts:[[1,"mat-calendar-header"],[1,"mat-calendar-controls"],["aria-live","polite",1,"cdk-visually-hidden",3,"id"],["matButton","","type","button",1,"mat-calendar-period-button",3,"click"],["aria-hidden","true"],["viewBox","0 0 10 5","focusable","false","aria-hidden","true",1,"mat-calendar-arrow"],["points","0,0 5,5 10,0"],[1,"mat-calendar-spacer"],["matIconButton","","type","button","disabledInteractive","",1,"mat-calendar-previous-button",3,"click","disabled","matTooltip"],["viewBox","0 0 24 24","focusable","false","aria-hidden","true"],["d","M15.41 7.41L14 6l-6 6 6 6 1.41-1.41L10.83 12z"],["matIconButton","","type","button","disabledInteractive","",1,"mat-calendar-next-button",3,"click","disabled","matTooltip"],["d","M10 6L8.59 7.41 13.17 12l-4.58 4.59L10 18l6-6z"]],template:function(i,r){i&1&&(Me(),h(0,"div",0)(1,"div",1)(2,"span",2),_(3),p(),h(4,"button",3),S("click",function(){return r.currentPeriodClicked()}),h(5,"span",4),_(6),p(),Gt(),h(7,"svg",5),k(8,"polygon",6),p()(),jo(),k(9,"div",7),oe(10),h(11,"button",8),S("click",function(){return r.previousClicked()}),Gt(),h(12,"svg",9),k(13,"path",10),p()(),jo(),h(14,"button",11),S("click",function(){return r.nextClicked()}),Gt(),h(15,"svg",9),k(16,"path",12),p()()()()),i&2&&(g(2),y("id",r._periodButtonLabelId),g(),H(r.periodButtonDescription),g(),X("aria-label",r.periodButtonLabel)("aria-describedby",r._periodButtonLabelId),g(2),H(r.periodButtonText),g(),G("mat-calendar-invert",r.calendar.currentView!=="month"),g(4),y("disabled",!r.previousEnabled())("matTooltip",r.prevButtonLabel),X("aria-label",r.prevButtonLabel),g(3),y("disabled",!r.nextEnabled())("matTooltip",r.nextButtonLabel),X("aria-label",r.nextButtonLabel))},dependencies:[kt,ti,Eo],encapsulation:2,changeDetection:0})}return t})(),nA=(()=>{class t{_dateAdapter=u(Li,{optional:!0});_dateFormats=u(xs,{optional:!0});_changeDetectorRef=u(ye);_elementRef=u(q);headerComponent;_calendarHeaderPortal;_intlChanges;_moveFocusOnNextTick=!1;get startAt(){return this._startAt}set startAt(e){this._startAt=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e))}_startAt;startView="month";get selected(){return this._selected}set selected(e){e instanceof ua?this._selected=e:this._selected=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e))}_selected;get minDate(){return this._minDate}set minDate(e){this._minDate=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e))}_minDate;get maxDate(){return this._maxDate}set maxDate(e){this._maxDate=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e))}_maxDate;dateFilter;dateClass;comparisonStart;comparisonEnd;startDateAccessibleName;endDateAccessibleName;selectedChange=new U;yearSelected=new U;monthSelected=new U;viewChanged=new U(!0);_userSelection=new U;_userDragDrop=new U;monthView;yearView;multiYearView;get activeDate(){return this._clampedActiveDate}set activeDate(e){this._clampedActiveDate=this._dateAdapter.clampDate(e,this.minDate,this.maxDate),this.stateChanges.next(),this._changeDetectorRef.markForCheck()}_clampedActiveDate;get currentView(){return this._currentView}set currentView(e){let i=this._currentView!==e?e:null;this._currentView=e,this._moveFocusOnNextTick=!0,this._changeDetectorRef.markForCheck(),i&&(this.stateChanges.next(),this.viewChanged.emit(i))}_currentView;_activeDrag=null;stateChanges=new z;constructor(){this._intlChanges=u(dp).changes.subscribe(()=>{this._changeDetectorRef.markForCheck(),this.stateChanges.next()})}ngAfterContentInit(){this._calendarHeaderPortal=new Zr(this.headerComponent||FU),this.activeDate=this.startAt||this._dateAdapter.today(),this._currentView=this.startView}ngAfterViewChecked(){this._moveFocusOnNextTick&&(this._moveFocusOnNextTick=!1,this.focusActiveCell())}ngOnDestroy(){this._intlChanges.unsubscribe(),this.stateChanges.complete()}ngOnChanges(e){let i=e.minDate&&!this._dateAdapter.sameDate(e.minDate.previousValue,e.minDate.currentValue)?e.minDate:void 0,r=e.maxDate&&!this._dateAdapter.sameDate(e.maxDate.previousValue,e.maxDate.currentValue)?e.maxDate:void 0,o=i||r||e.dateFilter;if(o&&!o.firstChange){let a=this._getCurrentViewComponent();a&&(this._elementRef.nativeElement.contains(_o())&&(this._moveFocusOnNextTick=!0),this._changeDetectorRef.detectChanges(),a._init())}this.stateChanges.next()}focusActiveCell(){this._getCurrentViewComponent()._focusActiveCell(!1)}updateTodaysDate(){this._getCurrentViewComponent()._init()}_dateSelected(e){let i=e.value;(this.selected instanceof ua||i&&!this._dateAdapter.sameDate(i,this.selected))&&this.selectedChange.emit(i),this._userSelection.emit(e)}_yearSelectedInMultiYearView(e){this.yearSelected.emit(e)}_monthSelectedInYearView(e){this.monthSelected.emit(e)}_goToDateInView(e,i){this.activeDate=e,this.currentView=i}_dragStarted(e){this._activeDrag=e}_dragEnded(e){this._activeDrag&&(e.value&&this._userDragDrop.emit(e),this._activeDrag=null)}_getCurrentViewComponent(){return this.monthView||this.yearView||this.multiYearView}static \u0275fac=function(i){return new(i||t)};static \u0275cmp=E({type:t,selectors:[["mat-calendar"]],viewQuery:function(i,r){if(i&1&&(ie(MU,5),ie(SU,5),ie(kU,5)),i&2){let o;B(o=j())&&(r.monthView=o.first),B(o=j())&&(r.yearView=o.first),B(o=j())&&(r.multiYearView=o.first)}},hostAttrs:[1,"mat-calendar"],inputs:{headerComponent:"headerComponent",startAt:"startAt",startView:"startView",selected:"selected",minDate:"minDate",maxDate:"maxDate",dateFilter:"dateFilter",dateClass:"dateClass",comparisonStart:"comparisonStart",comparisonEnd:"comparisonEnd",startDateAccessibleName:"startDateAccessibleName",endDateAccessibleName:"endDateAccessibleName"},outputs:{selectedChange:"selectedChange",yearSelected:"yearSelected",monthSelected:"monthSelected",viewChanged:"viewChanged",_userSelection:"_userSelection",_userDragDrop:"_userDragDrop"},exportAs:["matCalendar"],features:[Ce([AU]),Ae],decls:5,vars:2,consts:[[3,"cdkPortalOutlet"],["cdkMonitorSubtreeFocus","","tabindex","-1",1,"mat-calendar-content"],[3,"activeDate","selected","dateFilter","maxDate","minDate","dateClass","comparisonStart","comparisonEnd","startDateAccessibleName","endDateAccessibleName","activeDrag"],[3,"activeDate","selected","dateFilter","maxDate","minDate","dateClass"],[3,"activeDateChange","_userSelection","dragStarted","dragEnded","activeDate","selected","dateFilter","maxDate","minDate","dateClass","comparisonStart","comparisonEnd","startDateAccessibleName","endDateAccessibleName","activeDrag"],[3,"activeDateChange","monthSelected","selectedChange","activeDate","selected","dateFilter","maxDate","minDate","dateClass"],[3,"activeDateChange","yearSelected","selectedChange","activeDate","selected","dateFilter","maxDate","minDate","dateClass"]],template:function(i,r){if(i&1&&(R(0,Lbe,0,0,"ng-template",0),h(1,"div",1),N(2,Vbe,1,11,"mat-month-view",2)(3,Bbe,1,6,"mat-year-view",3)(4,jbe,1,6,"mat-multi-year-view",3),p()),i&2){let o;y("cdkPortalOutlet",r._calendarHeaderPortal),g(2),L((o=r.currentView)==="month"?2:o==="year"?3:o==="multi-year"?4:-1)}},dependencies:[yr,$f,MU,SU,kU],styles:[`.mat-calendar{display:block;line-height:normal;font-family:var(--mat-datepicker-calendar-text-font, var(--mat-sys-body-medium-font));font-size:var(--mat-datepicker-calendar-text-size, var(--mat-sys-body-medium-size))}.mat-calendar-header{padding:8px 8px 0 8px}.mat-calendar-content{padding:0 8px 8px 8px;outline:none}.mat-calendar-controls{display:flex;align-items:center;margin:5% calc(4.7142857143% - 16px)}.mat-calendar-spacer{flex:1 1 auto}.mat-calendar-period-button{min-width:0;margin:0 8px;font-size:var(--mat-datepicker-calendar-period-button-text-size, var(--mat-sys-title-small-size));font-weight:var(--mat-datepicker-calendar-period-button-text-weight, var(--mat-sys-title-small-weight));--mat-button-text-label-text-color: var(--mat-datepicker-calendar-period-button-text-color, var(--mat-sys-on-surface-variant))}.mat-calendar-arrow{display:inline-block;width:10px;height:5px;margin:0 0 0 5px;vertical-align:middle;fill:var(--mat-datepicker-calendar-period-button-icon-color, var(--mat-sys-on-surface-variant))}.mat-calendar-arrow.mat-calendar-invert{transform:rotate(180deg)}[dir=rtl] .mat-calendar-arrow{margin:0 5px 0 0}@media(forced-colors: active){.mat-calendar-arrow{fill:CanvasText}}.mat-datepicker-content .mat-calendar-previous-button:not(.mat-mdc-button-disabled),.mat-datepicker-content .mat-calendar-next-button:not(.mat-mdc-button-disabled){color:var(--mat-datepicker-calendar-navigation-button-icon-color, var(--mat-sys-on-surface-variant))}[dir=rtl] .mat-calendar-previous-button,[dir=rtl] .mat-calendar-next-button{transform:rotate(180deg)}.mat-calendar-table{border-spacing:0;border-collapse:collapse;width:100%}.mat-calendar-table-header th{text-align:center;padding:0 0 8px 0;color:var(--mat-datepicker-calendar-header-text-color, var(--mat-sys-on-surface-variant));font-size:var(--mat-datepicker-calendar-header-text-size, var(--mat-sys-title-small-size));font-weight:var(--mat-datepicker-calendar-header-text-weight, var(--mat-sys-title-small-weight))}.mat-calendar-table-header-divider{position:relative;height:1px}.mat-calendar-table-header-divider::after{content:"";position:absolute;top:0;left:-8px;right:-8px;height:1px;background:var(--mat-datepicker-calendar-header-divider-color, transparent)}.mat-calendar-body-cell-content::before{margin:calc(calc(var(--mat-focus-indicator-border-width, 3px) + 3px)*-1)}.mat-calendar-body-cell:focus .mat-focus-indicator::before{content:""} +`],encapsulation:2,changeDetection:0})}return t})(),NU=new T("mat-datepicker-scroll-strategy",{providedIn:"root",factory:()=>{let t=u(de);return()=>wn(t)}});function Xbe(t){let n=u(de);return()=>wn(n)}var Jbe={provide:NU,deps:[],useFactory:Xbe},LU=(()=>{class t{_elementRef=u(q);_animationsDisabled=Ye();_changeDetectorRef=u(ye);_globalModel=u(w_);_dateAdapter=u(Li);_ngZone=u(ae);_rangeSelectionStrategy=u(OU,{optional:!0});_stateChanges;_model;_eventCleanups;_animationFallback;_calendar;color;datepicker;comparisonStart;comparisonEnd;startDateAccessibleName;endDateAccessibleName;_isAbove;_animationDone=new z;_isAnimating=!1;_closeButtonText;_closeButtonFocused;_actionsPortal=null;_dialogLabelId;constructor(){if(u(ut).load(Qr),this._closeButtonText=u(dp).closeCalendarLabel,!this._animationsDisabled){let e=this._elementRef.nativeElement,i=u(je);this._eventCleanups=this._ngZone.runOutsideAngular(()=>[i.listen(e,"animationstart",this._handleAnimationEvent),i.listen(e,"animationend",this._handleAnimationEvent),i.listen(e,"animationcancel",this._handleAnimationEvent)])}}ngAfterViewInit(){this._stateChanges=this.datepicker.stateChanges.subscribe(()=>{this._changeDetectorRef.markForCheck()}),this._calendar.focusActiveCell()}ngOnDestroy(){clearTimeout(this._animationFallback),this._eventCleanups?.forEach(e=>e()),this._stateChanges?.unsubscribe(),this._animationDone.complete()}_handleUserSelection(e){let i=this._model.selection,r=e.value,o=i instanceof ua;if(o&&this._rangeSelectionStrategy){let a=this._rangeSelectionStrategy.selectionFinished(r,i,e.event);this._model.updateSelection(a,this)}else r&&(o||!this._dateAdapter.sameDate(r,i))&&this._model.add(r);(!this._model||this._model.isComplete())&&!this._actionsPortal&&this.datepicker.close()}_handleUserDragDrop(e){this._model.updateSelection(e.value,this)}_startExitAnimation(){this._elementRef.nativeElement.classList.add("mat-datepicker-content-exit"),this._animationsDisabled?this._animationDone.next():(clearTimeout(this._animationFallback),this._animationFallback=setTimeout(()=>{this._isAnimating||this._animationDone.next()},200))}_handleAnimationEvent=e=>{let i=this._elementRef.nativeElement;e.target!==i||!e.animationName.startsWith("_mat-datepicker-content")||(clearTimeout(this._animationFallback),this._isAnimating=e.type==="animationstart",i.classList.toggle("mat-datepicker-content-animating",this._isAnimating),this._isAnimating||this._animationDone.next())};_getSelected(){return this._model.selection}_applyPendingSelection(){this._model!==this._globalModel&&this._globalModel.updateSelection(this._model.selection,this)}_assignActions(e,i){this._model=e?this._globalModel.clone():this._globalModel,this._actionsPortal=e,i&&this._changeDetectorRef.detectChanges()}static \u0275fac=function(i){return new(i||t)};static \u0275cmp=E({type:t,selectors:[["mat-datepicker-content"]],viewQuery:function(i,r){if(i&1&&ie(nA,5),i&2){let o;B(o=j())&&(r._calendar=o.first)}},hostAttrs:[1,"mat-datepicker-content"],hostVars:6,hostBindings:function(i,r){i&2&&(it(r.color?"mat-"+r.color:""),G("mat-datepicker-content-touch",r.datepicker.touchUi)("mat-datepicker-content-animations-enabled",!r._animationsDisabled))},inputs:{color:"color"},exportAs:["matDatepickerContent"],decls:5,vars:26,consts:[["cdkTrapFocus","","role","dialog",1,"mat-datepicker-content-container"],[3,"yearSelected","monthSelected","viewChanged","_userSelection","_userDragDrop","id","startAt","startView","minDate","maxDate","dateFilter","headerComponent","selected","dateClass","comparisonStart","comparisonEnd","startDateAccessibleName","endDateAccessibleName"],[3,"cdkPortalOutlet"],["type","button","matButton","elevated",1,"mat-datepicker-close-button",3,"focus","blur","click","color"]],template:function(i,r){i&1&&(h(0,"div",0)(1,"mat-calendar",1),S("yearSelected",function(a){return r.datepicker._selectYear(a)})("monthSelected",function(a){return r.datepicker._selectMonth(a)})("viewChanged",function(a){return r.datepicker._viewChanged(a)})("_userSelection",function(a){return r._handleUserSelection(a)})("_userDragDrop",function(a){return r._handleUserDragDrop(a)}),p(),R(2,Hbe,0,0,"ng-template",2),h(3,"button",3),S("focus",function(){return r._closeButtonFocused=!0})("blur",function(){return r._closeButtonFocused=!1})("click",function(){return r.datepicker.close()}),_(4),p()()),i&2&&(G("mat-datepicker-content-container-with-custom-header",r.datepicker.calendarHeaderComponent)("mat-datepicker-content-container-with-actions",r._actionsPortal),X("aria-modal",!0)("aria-labelledby",r._dialogLabelId??void 0),g(),it(r.datepicker.panelClass),y("id",r.datepicker.id)("startAt",r.datepicker.startAt)("startView",r.datepicker.startView)("minDate",r.datepicker._getMinDate())("maxDate",r.datepicker._getMaxDate())("dateFilter",r.datepicker._getDateFilter())("headerComponent",r.datepicker.calendarHeaderComponent)("selected",r._getSelected())("dateClass",r.datepicker.dateClass)("comparisonStart",r.comparisonStart)("comparisonEnd",r.comparisonEnd)("startDateAccessibleName",r.startDateAccessibleName)("endDateAccessibleName",r.endDateAccessibleName),g(),y("cdkPortalOutlet",r._actionsPortal),g(),G("cdk-visually-hidden",!r._closeButtonFocused),y("color",r.color||"primary"),g(),H(r._closeButtonText))},dependencies:[vk,nA,yr,kt],styles:[`@keyframes _mat-datepicker-content-dropdown-enter{from{opacity:0;transform:scaleY(0.8)}to{opacity:1;transform:none}}@keyframes _mat-datepicker-content-dialog-enter{from{opacity:0;transform:scale(0.8)}to{opacity:1;transform:none}}@keyframes _mat-datepicker-content-exit{from{opacity:1}to{opacity:0}}.mat-datepicker-content{display:block;background-color:var(--mat-datepicker-calendar-container-background-color, var(--mat-sys-surface-container-high));color:var(--mat-datepicker-calendar-container-text-color, var(--mat-sys-on-surface));box-shadow:var(--mat-datepicker-calendar-container-elevation-shadow, 0px 0px 0px 0px rgba(0, 0, 0, 0.2), 0px 0px 0px 0px rgba(0, 0, 0, 0.14), 0px 0px 0px 0px rgba(0, 0, 0, 0.12));border-radius:var(--mat-datepicker-calendar-container-shape, var(--mat-sys-corner-large))}.mat-datepicker-content.mat-datepicker-content-animations-enabled{animation:_mat-datepicker-content-dropdown-enter 120ms cubic-bezier(0, 0, 0.2, 1)}.mat-datepicker-content .mat-calendar{width:296px;height:354px}.mat-datepicker-content .mat-datepicker-content-container-with-custom-header .mat-calendar{height:auto}.mat-datepicker-content .mat-datepicker-close-button{position:absolute;top:100%;left:0;margin-top:8px}.mat-datepicker-content-animating .mat-datepicker-content .mat-datepicker-close-button{display:none}.mat-datepicker-content-container{display:flex;flex-direction:column;justify-content:space-between}.mat-datepicker-content-touch{display:block;max-height:80vh;box-shadow:var(--mat-datepicker-calendar-container-touch-elevation-shadow, 0px 0px 0px 0px rgba(0, 0, 0, 0.2), 0px 0px 0px 0px rgba(0, 0, 0, 0.14), 0px 0px 0px 0px rgba(0, 0, 0, 0.12));border-radius:var(--mat-datepicker-calendar-container-touch-shape, var(--mat-sys-corner-extra-large));position:relative;overflow:visible}.mat-datepicker-content-touch.mat-datepicker-content-animations-enabled{animation:_mat-datepicker-content-dialog-enter 150ms cubic-bezier(0, 0, 0.2, 1)}.mat-datepicker-content-touch .mat-datepicker-content-container{min-height:312px;max-height:788px;min-width:250px;max-width:750px}.mat-datepicker-content-touch .mat-calendar{width:100%;height:auto}.mat-datepicker-content-exit.mat-datepicker-content-animations-enabled{animation:_mat-datepicker-content-exit 100ms linear}@media all and (orientation: landscape){.mat-datepicker-content-touch .mat-datepicker-content-container{width:64vh;height:80vh}}@media all and (orientation: portrait){.mat-datepicker-content-touch .mat-datepicker-content-container{width:80vw;height:100vw}.mat-datepicker-content-touch .mat-datepicker-content-container-with-actions{height:115vw}} +`],encapsulation:2,changeDetection:0})}return t})(),TU=(()=>{class t{_injector=u(de);_viewContainerRef=u(nt);_dateAdapter=u(Li,{optional:!0});_dir=u(Vt,{optional:!0});_model=u(w_);_animationsDisabled=Ye();_scrollStrategy=u(NU);_inputStateChanges=ke.EMPTY;_document=u(ge);calendarHeaderComponent;get startAt(){return this._startAt||(this.datepickerInput?this.datepickerInput.getStartValue():null)}set startAt(e){this._startAt=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e))}_startAt;startView="month";get color(){return this._color||(this.datepickerInput?this.datepickerInput.getThemePalette():void 0)}set color(e){this._color=e}_color;touchUi=!1;get disabled(){return this._disabled===void 0&&this.datepickerInput?this.datepickerInput.disabled:!!this._disabled}set disabled(e){e!==this._disabled&&(this._disabled=e,this.stateChanges.next(void 0))}_disabled;xPosition="start";yPosition="below";restoreFocus=!0;yearSelected=new U;monthSelected=new U;viewChanged=new U(!0);dateClass;openedStream=new U;closedStream=new U;get panelClass(){return this._panelClass}set panelClass(e){this._panelClass=UL(e)}_panelClass;get opened(){return this._opened}set opened(e){e?this.open():this.close()}_opened=!1;id=u(Ze).getId("mat-datepicker-");_getMinDate(){return this.datepickerInput&&this.datepickerInput.min}_getMaxDate(){return this.datepickerInput&&this.datepickerInput.max}_getDateFilter(){return this.datepickerInput&&this.datepickerInput.dateFilter}_overlayRef;_componentRef;_focusedElementBeforeOpen=null;_backdropHarnessClass=`${this.id}-backdrop`;_actionsPortal;datepickerInput;stateChanges=new z;_changeDetectorRef=u(ye);constructor(){this._dateAdapter,this._model.selectionChanged.subscribe(()=>{this._changeDetectorRef.markForCheck()})}ngOnChanges(e){let i=e.xPosition||e.yPosition;if(i&&!i.firstChange&&this._overlayRef){let r=this._overlayRef.getConfig().positionStrategy;r instanceof _h&&(this._setConnectedPositions(r),this.opened&&this._overlayRef.updatePosition())}this.stateChanges.next(void 0)}ngOnDestroy(){this._destroyOverlay(),this.close(),this._inputStateChanges.unsubscribe(),this.stateChanges.complete()}select(e){this._model.add(e)}_selectYear(e){this.yearSelected.emit(e)}_selectMonth(e){this.monthSelected.emit(e)}_viewChanged(e){this.viewChanged.emit(e)}registerInput(e){return this.datepickerInput,this._inputStateChanges.unsubscribe(),this.datepickerInput=e,this._inputStateChanges=e.stateChanges.subscribe(()=>this.stateChanges.next(void 0)),this._model}registerActions(e){this._actionsPortal,this._actionsPortal=e,this._componentRef?.instance._assignActions(e,!0)}removeActions(e){e===this._actionsPortal&&(this._actionsPortal=null,this._componentRef?.instance._assignActions(null,!0))}open(){this._opened||this.disabled||this._componentRef?.instance._isAnimating||(this.datepickerInput,this._focusedElementBeforeOpen=_o(),this._openOverlay(),this._opened=!0,this.openedStream.emit())}close(){if(!this._opened||this._componentRef?.instance._isAnimating)return;let e=this.restoreFocus&&this._focusedElementBeforeOpen&&typeof this._focusedElementBeforeOpen.focus=="function",i=()=>{this._opened&&(this._opened=!1,this.closedStream.emit())};if(this._componentRef){let{instance:r,location:o}=this._componentRef;r._animationDone.pipe(lt(1)).subscribe(()=>{let a=this._document.activeElement;e&&(!a||a===this._document.activeElement||o.nativeElement.contains(a))&&this._focusedElementBeforeOpen.focus(),this._focusedElementBeforeOpen=null,this._destroyOverlay()}),r._startExitAnimation()}e?setTimeout(i):i()}_applyPendingSelection(){this._componentRef?.instance?._applyPendingSelection()}_forwardContentValues(e){e.datepicker=this,e.color=this.color,e._dialogLabelId=this.datepickerInput.getOverlayLabelId(),e._assignActions(this._actionsPortal,!1)}_openOverlay(){this._destroyOverlay();let e=this.touchUi,i=new Zr(LU,this._viewContainerRef),r=this._overlayRef=Nr(this._injector,new Fr({positionStrategy:e?this._getDialogStrategy():this._getDropdownStrategy(),hasBackdrop:!0,backdropClass:[e?"cdk-overlay-dark-backdrop":"mat-overlay-transparent-backdrop",this._backdropHarnessClass],direction:this._dir||"ltr",scrollStrategy:e?uc(this._injector):this._scrollStrategy(),panelClass:`mat-datepicker-${e?"dialog":"popup"}`,disableAnimations:this._animationsDisabled}));this._getCloseStream(r).subscribe(o=>{o&&o.preventDefault(),this.close()}),r.keydownEvents().subscribe(o=>{let a=o.keyCode;(a===38||a===40||a===37||a===39||a===33||a===34)&&o.preventDefault()}),this._componentRef=r.attach(i),this._forwardContentValues(this._componentRef.instance),e||pt(()=>{r.updatePosition()},{injector:this._injector})}_destroyOverlay(){this._overlayRef&&(this._overlayRef.dispose(),this._overlayRef=this._componentRef=null)}_getDialogStrategy(){return Ds(this._injector).centerHorizontally().centerVertically()}_getDropdownStrategy(){let e=Fa(this._injector,this.datepickerInput.getConnectedOverlayOrigin()).withTransformOriginOn(".mat-datepicker-content").withFlexibleDimensions(!1).withViewportMargin(8).withLockedPosition();return this._setConnectedPositions(e)}_setConnectedPositions(e){let i=this.xPosition==="end"?"end":"start",r=i==="start"?"end":"start",o=this.yPosition==="above"?"bottom":"top",a=o==="top"?"bottom":"top";return e.withPositions([{originX:i,originY:a,overlayX:i,overlayY:o},{originX:i,originY:o,overlayX:i,overlayY:a},{originX:r,originY:a,overlayX:r,overlayY:o},{originX:r,originY:o,overlayX:r,overlayY:a}])}_getCloseStream(e){let i=["ctrlKey","shiftKey","metaKey"];return Je(e.backdropClick(),e.detachments(),e.keydownEvents().pipe(ce(r=>r.keyCode===27&&!Ft(r)||this.datepickerInput&&Ft(r,"altKey")&&r.keyCode===38&&i.every(o=>!Ft(r,o)))))}static \u0275fac=function(i){return new(i||t)};static \u0275dir=F({type:t,inputs:{calendarHeaderComponent:"calendarHeaderComponent",startAt:"startAt",startView:"startView",color:"color",touchUi:[2,"touchUi","touchUi",V],disabled:[2,"disabled","disabled",V],xPosition:"xPosition",yPosition:"yPosition",restoreFocus:[2,"restoreFocus","restoreFocus",V],dateClass:"dateClass",panelClass:"panelClass",opened:[2,"opened","opened",V]},outputs:{yearSelected:"yearSelected",monthSelected:"monthSelected",viewChanged:"viewChanged",openedStream:"opened",closedStream:"closed"},features:[Ae]})}return t})(),VU=(()=>{class t extends TU{static \u0275fac=(()=>{let e;return function(r){return(e||(e=fe(t)))(r||t)}})();static \u0275cmp=E({type:t,selectors:[["mat-datepicker"]],exportAs:["matDatepicker"],features:[Ce([AU,{provide:TU,useExisting:t}]),le],decls:0,vars:0,template:function(i,r){},encapsulation:2,changeDetection:0})}return t})(),lp=class{target;targetElement;value;constructor(n,e){this.target=n,this.targetElement=e,this.value=this.target.value}},eve=(()=>{class t{_elementRef=u(q);_dateAdapter=u(Li,{optional:!0});_dateFormats=u(xs,{optional:!0});_isInitialized;get value(){return this._model?this._getValueFromModel(this._model.selection):this._pendingValue}set value(e){this._assignValueProgrammatically(e)}_model;get disabled(){return!!this._disabled||this._parentDisabled()}set disabled(e){let i=e,r=this._elementRef.nativeElement;this._disabled!==i&&(this._disabled=i,this.stateChanges.next(void 0)),i&&this._isInitialized&&r.blur&&r.blur()}_disabled;dateChange=new U;dateInput=new U;stateChanges=new z;_onTouched=()=>{};_validatorOnChange=()=>{};_cvaOnChange=()=>{};_valueChangesSubscription=ke.EMPTY;_localeSubscription=ke.EMPTY;_pendingValue;_parseValidator=()=>this._lastValueValid?null:{matDatepickerParse:{text:this._elementRef.nativeElement.value}};_filterValidator=e=>{let i=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e.value));return!i||this._matchesFilter(i)?null:{matDatepickerFilter:!0}};_minValidator=e=>{let i=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e.value)),r=this._getMinDate();return!r||!i||this._dateAdapter.compareDate(r,i)<=0?null:{matDatepickerMin:{min:r,actual:i}}};_maxValidator=e=>{let i=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e.value)),r=this._getMaxDate();return!r||!i||this._dateAdapter.compareDate(r,i)>=0?null:{matDatepickerMax:{max:r,actual:i}}};_getValidators(){return[this._parseValidator,this._minValidator,this._maxValidator,this._filterValidator]}_registerModel(e){this._model=e,this._valueChangesSubscription.unsubscribe(),this._pendingValue&&this._assignValue(this._pendingValue),this._valueChangesSubscription=this._model.selectionChanged.subscribe(i=>{if(this._shouldHandleChangeEvent(i)){let r=this._getValueFromModel(i.selection);this._lastValueValid=this._isValidValue(r),this._cvaOnChange(r),this._onTouched(),this._formatValue(r),this.dateInput.emit(new lp(this,this._elementRef.nativeElement)),this.dateChange.emit(new lp(this,this._elementRef.nativeElement))}})}_lastValueValid=!1;constructor(){this._localeSubscription=this._dateAdapter.localeChanges.subscribe(()=>{this._assignValueProgrammatically(this.value)})}ngAfterViewInit(){this._isInitialized=!0}ngOnChanges(e){tve(e,this._dateAdapter)&&this.stateChanges.next(void 0)}ngOnDestroy(){this._valueChangesSubscription.unsubscribe(),this._localeSubscription.unsubscribe(),this.stateChanges.complete()}registerOnValidatorChange(e){this._validatorOnChange=e}validate(e){return this._validator?this._validator(e):null}writeValue(e){this._assignValueProgrammatically(e)}registerOnChange(e){this._cvaOnChange=e}registerOnTouched(e){this._onTouched=e}setDisabledState(e){this.disabled=e}_onKeydown(e){let i=["ctrlKey","shiftKey","metaKey"];Ft(e,"altKey")&&e.keyCode===40&&i.every(o=>!Ft(e,o))&&!this._elementRef.nativeElement.readOnly&&(this._openPopup(),e.preventDefault())}_onInput(e){let i=e.target.value,r=this._lastValueValid,o=this._dateAdapter.parse(i,this._dateFormats.parse.dateInput);this._lastValueValid=this._isValidValue(o),o=this._dateAdapter.getValidDateOrNull(o);let a=!this._dateAdapter.sameDate(o,this.value);!o||a?this._cvaOnChange(o):(i&&!this.value&&this._cvaOnChange(o),r!==this._lastValueValid&&this._validatorOnChange()),a&&(this._assignValue(o),this.dateInput.emit(new lp(this,this._elementRef.nativeElement)))}_onChange(){this.dateChange.emit(new lp(this,this._elementRef.nativeElement))}_onBlur(){this.value&&this._formatValue(this.value),this._onTouched()}_formatValue(e){this._elementRef.nativeElement.value=e!=null?this._dateAdapter.format(e,this._dateFormats.display.dateInput):""}_assignValue(e){this._model?(this._assignValueToModel(e),this._pendingValue=null):this._pendingValue=e}_isValidValue(e){return!e||this._dateAdapter.isValid(e)}_parentDisabled(){return!1}_assignValueProgrammatically(e){e=this._dateAdapter.deserialize(e),this._lastValueValid=this._isValidValue(e),e=this._dateAdapter.getValidDateOrNull(e),this._assignValue(e),this._formatValue(e)}_matchesFilter(e){let i=this._getDateFilter();return!i||i(e)}static \u0275fac=function(i){return new(i||t)};static \u0275dir=F({type:t,inputs:{value:"value",disabled:[2,"disabled","disabled",V]},outputs:{dateChange:"dateChange",dateInput:"dateInput"},features:[Ae]})}return t})();function tve(t,n){let e=Object.keys(t);for(let i of e){let{previousValue:r,currentValue:o}=t[i];if(n.isDateInstance(r)&&n.isDateInstance(o)){if(!n.sameDate(r,o))return!0}else return!0}return!1}var ive={provide:tr,useExisting:Kt(()=>Cw),multi:!0},nve={provide:ea,useExisting:Kt(()=>Cw),multi:!0},Cw=(()=>{class t extends eve{_formField=u(Xo,{optional:!0});_closedSubscription=ke.EMPTY;_openedSubscription=ke.EMPTY;set matDatepicker(e){e&&(this._datepicker=e,this._ariaOwns.set(e.opened?e.id:null),this._closedSubscription=e.closedStream.subscribe(()=>{this._onTouched(),this._ariaOwns.set(null)}),this._openedSubscription=e.openedStream.subscribe(()=>{this._ariaOwns.set(e.id)}),this._registerModel(e.registerInput(this)))}_datepicker;_ariaOwns=he(null);get min(){return this._min}set min(e){let i=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e));this._dateAdapter.sameDate(i,this._min)||(this._min=i,this._validatorOnChange())}_min;get max(){return this._max}set max(e){let i=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e));this._dateAdapter.sameDate(i,this._max)||(this._max=i,this._validatorOnChange())}_max;get dateFilter(){return this._dateFilter}set dateFilter(e){let i=this._matchesFilter(this.value);this._dateFilter=e,this._matchesFilter(this.value)!==i&&this._validatorOnChange()}_dateFilter;_validator;constructor(){super(),this._validator=Le.compose(super._getValidators())}getConnectedOverlayOrigin(){return this._formField?this._formField.getConnectedOverlayOrigin():this._elementRef}getOverlayLabelId(){return this._formField?this._formField.getLabelId():this._elementRef.nativeElement.getAttribute("aria-labelledby")}getThemePalette(){return this._formField?this._formField.color:void 0}getStartValue(){return this.value}ngOnDestroy(){super.ngOnDestroy(),this._closedSubscription.unsubscribe(),this._openedSubscription.unsubscribe()}_openPopup(){this._datepicker&&this._datepicker.open()}_getValueFromModel(e){return e}_assignValueToModel(e){this._model&&this._model.updateSelection(e,this)}_getMinDate(){return this._min}_getMaxDate(){return this._max}_getDateFilter(){return this._dateFilter}_shouldHandleChangeEvent(e){return e.source!==this}static \u0275fac=function(i){return new(i||t)};static \u0275dir=F({type:t,selectors:[["input","matDatepicker",""]],hostAttrs:[1,"mat-datepicker-input"],hostVars:6,hostBindings:function(i,r){i&1&&S("input",function(a){return r._onInput(a)})("change",function(){return r._onChange()})("blur",function(){return r._onBlur()})("keydown",function(a){return r._onKeydown(a)}),i&2&&(si("disabled",r.disabled),X("aria-haspopup",r._datepicker?"dialog":null)("aria-owns",r._ariaOwns())("min",r.min?r._dateAdapter.toIso8601(r.min):null)("max",r.max?r._dateAdapter.toIso8601(r.max):null)("data-mat-calendar",r._datepicker?r._datepicker.id:null))},inputs:{matDatepicker:"matDatepicker",min:"min",max:"max",dateFilter:[0,"matDatepickerFilter","dateFilter"]},exportAs:["matDatepickerInput"],features:[Ce([ive,nve,{provide:wh,useExisting:t}]),le]})}return t})(),rve=(()=>{class t{static \u0275fac=function(i){return new(i||t)};static \u0275dir=F({type:t,selectors:[["","matDatepickerToggleIcon",""]]})}return t})(),rA=(()=>{class t{_intl=u(dp);_changeDetectorRef=u(ye);_stateChanges=ke.EMPTY;datepicker;tabIndex;ariaLabel;get disabled(){return this._disabled===void 0&&this.datepicker?this.datepicker.disabled:!!this._disabled}set disabled(e){this._disabled=e}_disabled;disableRipple;_customIcon;_button;constructor(){let e=u(new Ii("tabindex"),{optional:!0}),i=Number(e);this.tabIndex=i||i===0?i:null}ngOnChanges(e){e.datepicker&&this._watchStateChanges()}ngOnDestroy(){this._stateChanges.unsubscribe()}ngAfterContentInit(){this._watchStateChanges()}_open(e){this.datepicker&&!this.disabled&&(this.datepicker.open(),e.stopPropagation())}_watchStateChanges(){let e=this.datepicker?this.datepicker.stateChanges:Q(),i=this.datepicker&&this.datepicker.datepickerInput?this.datepicker.datepickerInput.stateChanges:Q(),r=this.datepicker?Je(this.datepicker.openedStream,this.datepicker.closedStream):Q();this._stateChanges.unsubscribe(),this._stateChanges=Je(this._intl.changes,e,i,r).subscribe(()=>this._changeDetectorRef.markForCheck())}static \u0275fac=function(i){return new(i||t)};static \u0275cmp=E({type:t,selectors:[["mat-datepicker-toggle"]],contentQueries:function(i,r,o){if(i&1&&xe(o,rve,5),i&2){let a;B(a=j())&&(r._customIcon=a.first)}},viewQuery:function(i,r){if(i&1&&ie(zbe,5),i&2){let o;B(o=j())&&(r._button=o.first)}},hostAttrs:[1,"mat-datepicker-toggle"],hostVars:8,hostBindings:function(i,r){i&1&&S("click",function(a){return r._open(a)}),i&2&&(X("tabindex",null)("data-mat-calendar",r.datepicker?r.datepicker.id:null),G("mat-datepicker-toggle-active",r.datepicker&&r.datepicker.opened)("mat-accent",r.datepicker&&r.datepicker.color==="accent")("mat-warn",r.datepicker&&r.datepicker.color==="warn"))},inputs:{datepicker:[0,"for","datepicker"],tabIndex:"tabIndex",ariaLabel:[0,"aria-label","ariaLabel"],disabled:[2,"disabled","disabled",V],disableRipple:"disableRipple"},exportAs:["matDatepickerToggle"],features:[Ae],ngContentSelectors:$be,decls:4,vars:7,consts:[["button",""],["matIconButton","","type","button",3,"tabIndex","disabled","disableRipple"],["viewBox","0 0 24 24","width","24px","height","24px","fill","currentColor","focusable","false","aria-hidden","true",1,"mat-datepicker-toggle-default-icon"],["d","M19 3h-1V1h-2v2H8V1H6v2H5c-1.11 0-1.99.9-1.99 2L3 19c0 1.1.89 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm0 16H5V8h14v11zM7 10h5v5H7z"]],template:function(i,r){i&1&&(Me(Ube),h(0,"button",1,0),N(2,Wbe,2,0,":svg:svg",2),oe(3),p()),i&2&&(y("tabIndex",r.disabled?-1:r.tabIndex)("disabled",r.disabled)("disableRipple",r.disableRipple),X("aria-haspopup",r.datepicker?"dialog":null)("aria-label",r.ariaLabel||r._intl.openCalendarLabel)("aria-expanded",r.datepicker?r.datepicker.opened:null),g(2),L(r._customIcon?-1:2))},dependencies:[ti],styles:[`.mat-datepicker-toggle{pointer-events:auto;color:var(--mat-datepicker-toggle-icon-color, var(--mat-sys-on-surface-variant))}.mat-datepicker-toggle button{color:inherit}.mat-datepicker-toggle-active{color:var(--mat-datepicker-toggle-active-state-icon-color, var(--mat-sys-primary))}@media(forced-colors: active){.mat-datepicker-toggle-default-icon{color:CanvasText}} +`],encapsulation:2,changeDetection:0})}return t})();var BU=(()=>{class t{static \u0275fac=function(i){return new(i||t)};static \u0275mod=ee({type:t});static \u0275inj=J({providers:[dp,Jbe],imports:[ze,er,ll,Co,we,LU,rA,FU,vr]})}return t})();function ave(t,n){t&1&&(h(0,"div",1),k(1,"mat-spinner"),p())}function sve(t,n){t&1&&(h(0,"mat-error"),_(1," Employee number is required "),p())}function lve(t,n){t&1&&(h(0,"mat-error"),_(1," First name is required "),p())}function cve(t,n){t&1&&(h(0,"mat-error"),_(1," Last name is required "),p())}function dve(t,n){t&1&&(h(0,"mat-error"),_(1," Date of birth is required "),p())}function uve(t,n){t&1&&(h(0,"mat-error"),_(1," Email is required "),p())}function mve(t,n){t&1&&(h(0,"mat-error"),_(1," Please enter a valid email "),p())}function hve(t,n){t&1&&(h(0,"mat-error"),_(1," Phone number is required "),p())}function pve(t,n){if(t&1&&(h(0,"mat-option",25),_(1),p()),t&2){let e=n.$implicit;y("value",e.value),g(),ve(" ",e.label," ")}}function fve(t,n){t&1&&(h(0,"mat-error"),_(1," Gender is required "),p())}function gve(t,n){if(t&1&&(h(0,"mat-option",25),_(1),p()),t&2){let e=n.$implicit;y("value",e.id),g(),ve(" ",e.name," ")}}function _ve(t,n){t&1&&(h(0,"mat-error"),_(1," Department is required "),p())}function bve(t,n){if(t&1&&(h(0,"mat-option",25),_(1),p()),t&2){let e=n.$implicit;y("value",e.id),g(),ve(" ",e.positionTitle," ")}}function vve(t,n){t&1&&(h(0,"mat-error"),_(1," Position is required "),p())}function yve(t,n){t&1&&(h(0,"mat-error"),_(1," Salary is required "),p())}function xve(t,n){t&1&&(h(0,"mat-error"),_(1," Salary must be greater than 0 "),p())}var oA=(()=>{let n=class n{constructor(){this.fb=u(eo),this.router=u(Re),this.route=u(wi),this.snackBar=u(di),this.employeeService=u(ap),this.positionService=u(Bc),this.departmentService=u(Vs),this.loading=!1,this.isEditMode=!1,this.positions=[],this.departments=[],this.genderOptions=[{value:Ou.Male,label:"Male"},{value:Ou.Female,label:"Female"}]}ngOnInit(){this.initForm(),this.loadDependencies(),this.checkEditMode()}initForm(){this.employeeForm=this.fb.group({employeeNumber:["",[Le.required,Le.maxLength(50)]],prefix:["",Le.maxLength(10)],firstName:["",[Le.required,Le.maxLength(100)]],middleName:["",Le.maxLength(100)],lastName:["",[Le.required,Le.maxLength(100)]],birthday:[null,Le.required],gender:[Ou.Male,Le.required],email:["",[Le.required,Le.email,Le.maxLength(255)]],phone:["",[Le.required,Le.maxLength(20)]],salary:[0,[Le.required,Le.min(0)]],positionId:["",Le.required],departmentId:["",Le.required]})}loadDependencies(){this.departmentService.getAll().subscribe({next:i=>{this.departments=i},error:i=>{console.error("Error loading departments:",i),this.showMessage("Error loading departments")}}),this.positionService.getAll().subscribe({next:i=>{this.positions=i},error:i=>{console.error("Error loading positions:",i),this.showMessage("Error loading positions")}})}checkEditMode(){this.employeeId=this.route.snapshot.paramMap.get("id")||void 0,this.isEditMode=!!this.employeeId,this.isEditMode&&this.employeeId&&this.loadEmployee(this.employeeId)}loadEmployee(i){this.loading=!0,this.employeeService.getById(i).subscribe({next:r=>{this.employeeForm.patchValue({employeeNumber:r.employeeNumber,prefix:r.prefix,firstName:r.firstName,middleName:r.middleName,lastName:r.lastName,birthday:r.birthday||r.dateOfBirth,gender:r.gender,email:r.email,phone:r.phone||r.phoneNumber,salary:r.salary,positionId:r.positionId,departmentId:r.departmentId}),this.loading=!1},error:r=>{console.error("Error loading employee:",r),this.showMessage("Error loading employee"),this.loading=!1}})}onSubmit(){if(this.employeeForm.invalid){this.employeeForm.markAllAsTouched();return}if(this.loading=!0,this.isEditMode&&this.employeeId){let i=M({id:this.employeeId},this.employeeForm.value);this.employeeService.updateEmployee(i).subscribe({next:()=>{this.showMessage("Employee updated successfully"),this.router.navigate(["/employees",this.employeeId])},error:r=>{console.error("Error updating employee:",r),this.showMessage("Error updating employee"),this.loading=!1}})}else{let i=this.employeeForm.value;this.employeeService.createEmployee(i).subscribe({next:r=>{console.log("Employee created - Response:",r),console.log("Employee ID:",r?.id),this.showMessage("Employee created successfully"),r?.id?(console.log("Navigating to detail page:","/employees/"+r.id),this.router.navigate(["/employees",r.id])):(console.warn("No employee ID returned, navigating to list page"),this.router.navigate(["/employees"])),this.loading=!1},error:r=>{console.error("Error creating employee:",r),this.showMessage("Error creating employee"),this.loading=!1}})}}onCancel(){this.router.navigate(["/employees"])}showMessage(i){this.snackBar.open(i,"Close",{duration:3e3,horizontalPosition:"end",verticalPosition:"top"})}getFormTitle(){return this.isEditMode?"Edit Employee":"Create Employee"}};n.\u0275fac=function(r){return new(r||n)},n.\u0275cmp=E({type:n,selectors:[["app-employee-form"]],decls:94,vars:22,consts:[["dobPicker",""],[1,"loading-overlay"],[3,"ngSubmit","formGroup"],[1,"form-section"],[1,"form-row"],["appearance","outline"],["matInput","","formControlName","employeeNumber"],[4,"ngIf"],["matInput","","formControlName","prefix","placeholder","Mr., Mrs., Dr."],["matInput","","formControlName","firstName"],["matInput","","formControlName","middleName"],["matInput","","formControlName","lastName"],["matInput","","formControlName","birthday",3,"matDatepicker"],["matIconSuffix","",3,"for"],["matInput","","type","email","formControlName","email"],["matInput","","formControlName","phone"],["formControlName","gender"],[3,"value",4,"ngFor","ngForOf"],["formControlName","departmentId"],["formControlName","positionId"],["matInput","","type","number","formControlName","salary"],["matTextPrefix",""],[1,"form-actions"],["type","button","mat-stroked-button","",3,"click"],["type","submit","mat-raised-button","","color","primary",3,"disabled"],[3,"value"]],template:function(r,o){if(r&1){let a=Y();k(0,"page-header"),h(1,"mat-card")(2,"mat-card-header")(3,"mat-card-title"),_(4),p()(),h(5,"mat-card-content"),N(6,ave,2,0,"div",1),h(7,"form",2),S("ngSubmit",function(){return I(a),A(o.onSubmit())}),h(8,"div",3)(9,"h3"),_(10,"Personal Information"),p(),h(11,"div",4)(12,"mat-form-field",5)(13,"mat-label"),_(14,"Employee Number"),p(),k(15,"input",6),R(16,sve,2,0,"mat-error",7),p(),h(17,"mat-form-field",5)(18,"mat-label"),_(19,"Prefix"),p(),k(20,"input",8),p()(),h(21,"div",4)(22,"mat-form-field",5)(23,"mat-label"),_(24,"First Name"),p(),k(25,"input",9),R(26,lve,2,0,"mat-error",7),p(),h(27,"mat-form-field",5)(28,"mat-label"),_(29,"Middle Name"),p(),k(30,"input",10),p()(),h(31,"div",4)(32,"mat-form-field",5)(33,"mat-label"),_(34,"Last Name"),p(),k(35,"input",11),R(36,cve,2,0,"mat-error",7),p(),h(37,"mat-form-field",5)(38,"mat-label"),_(39,"Date of Birth"),p(),k(40,"input",12)(41,"mat-datepicker-toggle",13)(42,"mat-datepicker",null,0),R(44,dve,2,0,"mat-error",7),p()(),h(45,"div",4)(46,"mat-form-field",5)(47,"mat-label"),_(48,"Email"),p(),k(49,"input",14),R(50,uve,2,0,"mat-error",7)(51,mve,2,0,"mat-error",7),p(),h(52,"mat-form-field",5)(53,"mat-label"),_(54,"Phone Number"),p(),k(55,"input",15),R(56,hve,2,0,"mat-error",7),p()(),h(57,"div",4)(58,"mat-form-field",5)(59,"mat-label"),_(60,"Gender"),p(),h(61,"mat-select",16),R(62,pve,2,2,"mat-option",17),p(),R(63,fve,2,0,"mat-error",7),p()()(),h(64,"div",3)(65,"h3"),_(66,"Employment Information"),p(),h(67,"div",4)(68,"mat-form-field",5)(69,"mat-label"),_(70,"Department"),p(),h(71,"mat-select",18),R(72,gve,2,2,"mat-option",17),p(),R(73,_ve,2,0,"mat-error",7),p(),h(74,"mat-form-field",5)(75,"mat-label"),_(76,"Position"),p(),h(77,"mat-select",19),R(78,bve,2,2,"mat-option",17),p(),R(79,vve,2,0,"mat-error",7),p()(),h(80,"div",4)(81,"mat-form-field",5)(82,"mat-label"),_(83,"Salary"),p(),k(84,"input",20),h(85,"span",21),_(86,"$\xA0"),p(),R(87,yve,2,0,"mat-error",7)(88,xve,2,0,"mat-error",7),p()()(),h(89,"div",22)(90,"button",23),S("click",function(){return I(a),A(o.onCancel())}),_(91," Cancel "),p(),h(92,"button",24),_(93),p()()()()()}if(r&2){let a,s,l,c,d,m,f,b,v,w,x,D,P=Se(43);g(4),H(o.getFormTitle()),g(2),L(o.loading?6:-1),g(),y("formGroup",o.employeeForm),g(9),y("ngIf",(a=o.employeeForm.get("employeeNumber"))==null?null:a.hasError("required")),g(10),y("ngIf",(s=o.employeeForm.get("firstName"))==null?null:s.hasError("required")),g(10),y("ngIf",(l=o.employeeForm.get("lastName"))==null?null:l.hasError("required")),g(4),y("matDatepicker",P),g(),y("for",P),g(3),y("ngIf",(c=o.employeeForm.get("birthday"))==null?null:c.hasError("required")),g(6),y("ngIf",(d=o.employeeForm.get("email"))==null?null:d.hasError("required")),g(),y("ngIf",(m=o.employeeForm.get("email"))==null?null:m.hasError("email")),g(5),y("ngIf",(f=o.employeeForm.get("phone"))==null?null:f.hasError("required")),g(6),y("ngForOf",o.genderOptions),g(),y("ngIf",(b=o.employeeForm.get("gender"))==null?null:b.hasError("required")),g(9),y("ngForOf",o.departments),g(),y("ngIf",(v=o.employeeForm.get("departmentId"))==null?null:v.hasError("required")),g(5),y("ngForOf",o.positions),g(),y("ngIf",(w=o.employeeForm.get("positionId"))==null?null:w.hasError("required")),g(8),y("ngIf",(x=o.employeeForm.get("salary"))==null?null:x.hasError("required")),g(),y("ngIf",(D=o.employeeForm.get("salary"))==null?null:D.hasError("min")),g(4),y("disabled",o.loading),g(),ve(" ",o.isEditMode?"Update":"Create"," ")}},dependencies:[gt,qr,li,zn,Jr,Qi,cu,ei,Xr,Ki,Lr,ze,kt,$t,zt,Ut,Jt,Xt,$i,Oi,sn,xo,nu,ru,rr,hn,fc,Na,xn,BU,VU,Cw,rA,KL,Si,ki,pi,ni],styles:["mat-card[_ngcontent-%COMP%]{margin:16px;max-width:1200px}mat-card-header[_ngcontent-%COMP%]{padding:16px;border-bottom:1px solid rgba(0,0,0,.12);margin-bottom:24px}mat-card-header[_ngcontent-%COMP%] mat-card-title[_ngcontent-%COMP%]{font-size:20px;font-weight:500;margin:0}mat-card-content[_ngcontent-%COMP%]{padding:24px;position:relative}.loading-overlay[_ngcontent-%COMP%]{position:absolute;inset:0;background-color:#fffc;display:flex;align-items:center;justify-content:center;z-index:1000}form[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:24px}.form-section[_ngcontent-%COMP%] h3[_ngcontent-%COMP%]{font-size:16px;font-weight:500;margin:0 0 16px;color:#000000de}.form-row[_ngcontent-%COMP%]{display:grid;grid-template-columns:1fr 1fr;gap:16px;margin-bottom:8px}@media (max-width: 768px){.form-row[_ngcontent-%COMP%]{grid-template-columns:1fr}}mat-form-field[_ngcontent-%COMP%]{width:100%}mat-form-field.full-width[_ngcontent-%COMP%]{grid-column:1/-1}.form-actions[_ngcontent-%COMP%]{display:flex;justify-content:flex-end;gap:12px;margin-top:24px;padding-top:24px;border-top:1px solid rgba(0,0,0,.12)}.form-actions[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{min-width:120px}"]});let t=n;return t})();var jU=()=>["HRAdmin","Manager"],Cve=()=>[5,10,25,50,100],wve=()=>["HRAdmin"];function Dve(t,n){if(t&1){let e=Y();h(0,"button",14),S("click",function(){I(e);let r=C();return A(r.createDepartment())}),h(1,"mat-icon"),_(2,"add"),p(),_(3," Add Department "),p()}}function Eve(t,n){if(t&1&&(h(0,"mat-option",15),_(1),p()),t&2){let e=n.$implicit;y("value",e),g(),ve(" ",e," ")}}function Mve(t,n){t&1&&(h(0,"div",16),k(1,"mat-spinner"),p())}function kve(t,n){t&1&&(h(0,"th",25),_(1,"Name"),p())}function Sve(t,n){if(t&1&&(h(0,"td",26),_(1),p()),t&2){let e=n.$implicit;g(),H(e.name)}}function Tve(t,n){t&1&&(h(0,"th",25),_(1,"Actions"),p())}function Ive(t,n){if(t&1){let e=Y();h(0,"button",31),S("click",function(){I(e);let r=C().$implicit,o=C(2);return A(o.editDepartment(r))}),h(1,"mat-icon"),_(2,"edit"),p()()}}function Ave(t,n){if(t&1){let e=Y();h(0,"button",32),S("click",function(){I(e);let r=C().$implicit,o=C(2);return A(o.deleteDepartment(r))}),h(1,"mat-icon"),_(2,"delete"),p()()}}function Ove(t,n){if(t&1){let e=Y();h(0,"td",26)(1,"div",27)(2,"button",28),S("click",function(){let r=I(e).$implicit,o=C(2);return A(o.viewDepartment(r))}),h(3,"mat-icon"),_(4,"visibility"),p()(),R(5,Ive,3,0,"button",29)(6,Ave,3,0,"button",30),p()()}t&2&&(g(5),y("appHasRole",at(2,jU)),g(),y("appHasRole",at(3,wve)))}function Rve(t,n){t&1&&k(0,"tr",33)}function Pve(t,n){t&1&&k(0,"tr",34)}function Fve(t,n){if(t&1&&(h(0,"tr",35)(1,"td",36)(2,"div",37)(3,"mat-icon"),_(4,"info"),p(),h(5,"p"),_(6,"No departments found"),p()()()()),t&2){let e=C(2);g(),X("colspan",e.displayedColumns.length)}}function Nve(t,n){if(t&1&&(h(0,"table",17),jt(1,18),R(2,kve,2,0,"th",19)(3,Sve,2,1,"td",20),Lt(),jt(4,21),R(5,Tve,2,0,"th",19)(6,Ove,7,4,"td",20),Lt(),R(7,Rve,1,0,"tr",22)(8,Pve,1,0,"tr",23)(9,Fve,7,1,"tr",24),p()),t&2){let e=C();y("dataSource",e.departments),g(7),y("matHeaderRowDef",e.displayedColumns),g(),y("matRowDefColumns",e.displayedColumns),g(),y("ngIf",e.departments.length===0)}}var HU=(()=>{let n=class n{constructor(){this.departmentService=u(Vs),this.authService=u(Tt),this.router=u(Re),this.fb=u(eo),this.snackBar=u(di),this.dialog=u(En),this.departments=[],this.loading=!1,this.totalCount=0,this.pageSize=10,this.pageNumber=1,this.destroy$=new z,this.displayedColumns=["name","actions"]}ngOnInit(){this.initSearchForm(),this.setupAutocomplete(),this.setupAutoSubmit(),this.loadDepartments()}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete()}initSearchForm(){this.searchForm=this.fb.group({Name:[""]})}setupAutocomplete(){this.filteredNames$=this.searchForm.get("Name").valueChanges.pipe(He(""),Rt(300),Sn(),$e(i=>this.getAutocompleteOptions("Name",i)))}setupAutoSubmit(){this.searchForm.valueChanges.pipe(Rt(500),Sn((i,r)=>JSON.stringify(i)===JSON.stringify(r)),Te(this.destroy$)).subscribe(()=>{this.pageNumber=1,this.loadDepartments()})}getAutocompleteOptions(i,r){if(!r||r.length<2)return Q([]);let o={PageNumber:1,PageSize:10,[i]:r};return this.departmentService.getAllPaged(o).pipe(se(a=>a.value.map(l=>l.name).filter((l,c,d)=>l&&d.indexOf(l)===c)),fi(()=>Q([])))}loadDepartments(){this.loading=!0;let i=M({PageNumber:this.pageNumber,PageSize:this.pageSize},this.searchForm.value);Object.keys(i).forEach(r=>{(i[r]===""||i[r]===null||i[r]===void 0)&&delete i[r]}),this.departmentService.getAllPaged(i).subscribe({next:r=>{this.departments=r.value,this.totalCount=r.recordsTotal,this.loading=!1},error:r=>{console.error("Error loading departments:",r),this.loading=!1}})}onClearSearch(){this.searchForm.reset(),this.pageNumber=1,this.paginator&&(this.paginator.pageIndex=0),this.loadDepartments()}onPageChange(i){this.pageSize=i.pageSize,this.pageNumber=i.pageIndex+1,this.loadDepartments()}viewDepartment(i){this.router.navigate(["/departments",i.id])}editDepartment(i){this.router.navigate(["/departments","edit",i.id])}deleteDepartment(i){this.dialog.open(Er,{width:"400px",data:{title:"Delete Department",message:`Are you sure you want to delete "${i.name}"? This action cannot be undone.`,confirmText:"Delete",cancelText:"Cancel"}}).afterClosed().subscribe(o=>{o&&this.departmentService.delete(i.id).subscribe({next:()=>{this.showMessage(`"${i.name}" has been deleted.`),this.loadDepartments()},error:a=>{console.error("Error deleting department:",a),this.showMessage("Failed to delete department. Please try again.")}})})}createDepartment(){this.router.navigate(["/departments","create"])}canEdit(){return this.authService.isHRAdmin()||this.authService.isManager()}canDelete(){return this.authService.isHRAdmin()}canCreate(){return this.authService.isHRAdmin()||this.authService.isManager()}showMessage(i){this.snackBar.open(i,"Close",{duration:3e3,horizontalPosition:"end",verticalPosition:"top"})}};n.\u0275fac=function(r){return new(r||n)},n.\u0275cmp=E({type:n,selectors:[["app-department-list"]],viewQuery:function(r,o){if(r&1&&ie(ir,5),r&2){let a;B(a=j())&&(o.paginator=a.first)}},decls:27,vars:14,consts:[["autoName","matAutocomplete"],[1,"flex-spacer"],["mat-raised-button","","color","primary",3,"click",4,"appHasRole"],[1,"search-form",3,"formGroup"],[1,"search-row"],["appearance","outline"],["matInput","","formControlName","Name",3,"matAutocomplete"],[3,"value",4,"ngFor","ngForOf"],[1,"search-buttons"],["mat-raised-button","","color","accent","type","button",3,"click"],[1,"table-container"],["class","loading-spinner",4,"ngIf"],["mat-table","","class","department-table",3,"dataSource",4,"ngIf"],["showFirstLastButtons","",3,"page","length","pageSize","pageSizeOptions","pageIndex"],["mat-raised-button","","color","primary",3,"click"],[3,"value"],[1,"loading-spinner"],["mat-table","",1,"department-table",3,"dataSource"],["matColumnDef","name"],["mat-header-cell","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","actions"],["mat-header-row","",4,"matHeaderRowDef"],["mat-row","",4,"matRowDef","matRowDefColumns"],["class","mat-row",4,"ngIf"],["mat-header-cell",""],["mat-cell",""],[1,"action-buttons"],["mat-icon-button","","color","primary","matTooltip","View Details",3,"click"],["mat-icon-button","","color","accent","matTooltip","Edit Department",3,"click",4,"appHasRole"],["mat-icon-button","","color","warn","matTooltip","Delete Department",3,"click",4,"appHasRole"],["mat-icon-button","","color","accent","matTooltip","Edit Department",3,"click"],["mat-icon-button","","color","warn","matTooltip","Delete Department",3,"click"],["mat-header-row",""],["mat-row",""],[1,"mat-row"],[1,"mat-cell"],[1,"no-data"]],template:function(r,o){if(r&1){let a=Y();k(0,"page-header"),h(1,"mat-card")(2,"mat-card-header")(3,"mat-card-title"),_(4,"Department Directory"),p(),k(5,"div",1),R(6,Dve,4,0,"button",2),p(),h(7,"mat-card-content")(8,"form",3)(9,"div",4)(10,"mat-form-field",5)(11,"mat-label"),_(12,"Department Name"),p(),k(13,"input",6),h(14,"mat-autocomplete",null,0),R(16,Eve,2,2,"mat-option",7),me(17,"async"),p()(),h(18,"div",8)(19,"button",9),S("click",function(){return I(a),A(o.onClearSearch())}),h(20,"mat-icon"),_(21,"clear"),p(),_(22," Clear Filters "),p()()()(),h(23,"div",10),R(24,Mve,2,0,"div",11)(25,Nve,10,4,"table",12),p(),h(26,"mat-paginator",13),S("page",function(l){return I(a),A(o.onPageChange(l))}),p()()()}if(r&2){let a=Se(15);g(6),y("appHasRole",at(12,jU)),g(2),y("formGroup",o.searchForm),g(5),y("matAutocomplete",a),g(3),y("ngForOf",Oe(17,10,o.filteredNames$)),g(8),y("ngIf",o.loading),g(),y("ngIf",!o.loading),g(),y("length",o.totalCount)("pageSize",o.pageSize)("pageSizeOptions",at(13,Cve))("pageIndex",o.pageNumber-1)}},dependencies:[gt,qr,li,zn,Jr,Qi,ei,Xr,Ki,Lr,ze,kt,ti,$t,zt,Ut,Jt,Xt,ot,mt,rr,hn,Oi,sn,$i,Zc,Hc,Uc,qc,$c,zc,Yc,Wc,Gc,Qc,Kc,_c,ir,Si,ki,Br,Eo,vw,bw,xn,y_,pi,Mn,ni,Un,rn],styles:["mat-card[_ngcontent-%COMP%]{margin:16px}mat-card-header[_ngcontent-%COMP%]{display:flex;align-items:center;margin-bottom:16px;padding:16px;border-bottom:1px solid rgba(0,0,0,.12)}mat-card-header[_ngcontent-%COMP%] mat-card-title[_ngcontent-%COMP%]{font-size:20px;font-weight:500;margin:0}mat-card-header[_ngcontent-%COMP%] .flex-spacer[_ngcontent-%COMP%]{flex:1 1 auto}mat-card-header[_ngcontent-%COMP%] button[_ngcontent-%COMP%] mat-icon[_ngcontent-%COMP%]{margin-right:4px}mat-card-content[_ngcontent-%COMP%]{padding:0}.search-form[_ngcontent-%COMP%]{padding:16px;background-color:#f5f5f5;margin-bottom:0}.search-form[_ngcontent-%COMP%] .search-row[_ngcontent-%COMP%]{display:grid;grid-template-columns:1fr auto;gap:16px;align-items:start}.search-form[_ngcontent-%COMP%] .search-row[_ngcontent-%COMP%] mat-form-field[_ngcontent-%COMP%]{width:100%}.search-form[_ngcontent-%COMP%] .search-row[_ngcontent-%COMP%] .search-buttons[_ngcontent-%COMP%]{display:flex;gap:8px;align-items:center}.search-form[_ngcontent-%COMP%] .search-row[_ngcontent-%COMP%] .search-buttons[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{white-space:nowrap}.search-form[_ngcontent-%COMP%] .search-row[_ngcontent-%COMP%] .search-buttons[_ngcontent-%COMP%] button[_ngcontent-%COMP%] mat-icon[_ngcontent-%COMP%]{margin-right:4px}.table-container[_ngcontent-%COMP%]{position:relative;min-height:300px;overflow-x:auto}.loading-spinner[_ngcontent-%COMP%]{display:flex;justify-content:center;align-items:center;min-height:300px}.department-table[_ngcontent-%COMP%]{width:100%}.department-table[_ngcontent-%COMP%] th[_ngcontent-%COMP%]{font-weight:600;font-size:14px;color:#000000de}.department-table[_ngcontent-%COMP%] td[_ngcontent-%COMP%]{font-size:14px;color:#000000de}.department-table[_ngcontent-%COMP%] .mat-column-name[_ngcontent-%COMP%]{min-width:200px}.department-table[_ngcontent-%COMP%] .mat-column-actions[_ngcontent-%COMP%]{width:120px;text-align:right}.department-table[_ngcontent-%COMP%] .mat-column-actions[_ngcontent-%COMP%] .action-buttons[_ngcontent-%COMP%]{display:flex;justify-content:flex-end;align-items:center;gap:4px}.no-data[_ngcontent-%COMP%]{display:flex;flex-direction:column;align-items:center;justify-content:center;padding:48px 16px;color:#0000008a}.no-data[_ngcontent-%COMP%] mat-icon[_ngcontent-%COMP%]{font-size:48px;width:48px;height:48px;margin-bottom:16px}.no-data[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{margin:0;font-size:16px}mat-paginator[_ngcontent-%COMP%]{border-top:1px solid rgba(0,0,0,.12)}"]});let t=n;return t})();var Lve=()=>["HRAdmin","Manager"],Vve=()=>["HRAdmin"];function Bve(t,n){if(t&1){let e=Y();h(0,"button",10),S("click",function(){I(e);let r=C(2);return A(r.editDepartment())}),h(1,"mat-icon"),_(2,"edit"),p(),_(3," Edit "),p()}}function jve(t,n){if(t&1){let e=Y();h(0,"button",11),S("click",function(){I(e);let r=C(2);return A(r.deleteDepartment())}),h(1,"mat-icon"),_(2,"delete"),p(),_(3," Delete "),p()}}function Hve(t,n){if(t&1&&(h(0,"mat-list-item")(1,"span",7),_(2,"Created At"),p(),h(3,"span",8),_(4),me(5,"date"),p()()),t&2){let e=C(3);g(4),H(Ni(5,1,e.department.createdAt,"medium"))}}function zve(t,n){if(t&1&&(h(0,"mat-list-item")(1,"span",7),_(2,"Last Modified At"),p(),h(3,"span",8),_(4),me(5,"date"),p()()),t&2){let e=C(3);g(4),H(Ni(5,1,e.department.lastModifiedAt,"medium"))}}function Uve(t,n){if(t&1&&(h(0,"div",6)(1,"h3"),_(2,"Audit Information"),p(),k(3,"mat-divider"),h(4,"mat-list"),R(5,Hve,6,4,"mat-list-item",0)(6,zve,6,4,"mat-list-item",0),p()()),t&2){let e=C(2);g(5),y("ngIf",e.department.createdAt),g(),y("ngIf",e.department.lastModifiedAt)}}function $ve(t,n){if(t&1){let e=Y();h(0,"mat-card")(1,"mat-card-header")(2,"mat-card-title"),_(3,"Department Details"),p(),k(4,"div",1),R(5,Bve,4,0,"button",2)(6,jve,4,0,"button",3),h(7,"button",4),S("click",function(){I(e);let r=C();return A(r.goBack())}),h(8,"mat-icon"),_(9,"arrow_back"),p(),_(10," Back to List "),p()(),h(11,"mat-card-content")(12,"div",5)(13,"div",6)(14,"h3"),_(15,"Basic Information"),p(),k(16,"mat-divider"),h(17,"mat-list")(18,"mat-list-item")(19,"span",7),_(20,"Department Name"),p(),h(21,"span",8),_(22),p()()()(),R(23,Uve,7,2,"div",9),p()()()}if(t&2){let e=C();g(5),y("appHasRole",at(4,Lve)),g(),y("appHasRole",at(5,Vve)),g(16),H(e.department.name),g(),y("ngIf",e.department.createdAt||e.department.lastModifiedAt)}}function Wve(t,n){t&1&&(h(0,"mat-card")(1,"mat-card-content")(2,"div",12),k(3,"mat-spinner"),p()()())}function Gve(t,n){if(t&1){let e=Y();h(0,"mat-card")(1,"mat-card-content")(2,"div",13)(3,"mat-icon"),_(4,"error"),p(),h(5,"p"),_(6,"Department not found"),p(),h(7,"button",14),S("click",function(){I(e);let r=C();return A(r.goBack())}),_(8," Go Back "),p()()()()}}var zU=(()=>{let n=class n{constructor(){this.departmentService=u(Vs),this.authService=u(Tt),this.route=u(wi),this.router=u(Re),this.snackBar=u(di),this.dialog=u(En),this.loading=!1}ngOnInit(){let i=this.route.snapshot.paramMap.get("id");i&&this.loadDepartment(i)}loadDepartment(i){this.loading=!0,this.departmentService.getById(i).subscribe({next:r=>{this.department=r,this.loading=!1},error:r=>{console.error("Error loading department:",r),this.showMessage("Error loading department"),this.loading=!1,this.router.navigate(["/departments"])}})}editDepartment(){this.router.navigate(["/departments","edit",this.department.id])}deleteDepartment(){this.dialog.open(Er,{width:"400px",data:{title:"Delete Department",message:`Are you sure you want to delete "${this.department.name}"? This action cannot be undone.`,confirmText:"Delete",cancelText:"Cancel"}}).afterClosed().subscribe(r=>{r&&this.departmentService.delete(this.department.id).subscribe({next:()=>{let o=this.snackBar.open(`"${this.department.name}" has been deleted.`,"Close",{duration:3e3,horizontalPosition:"end",verticalPosition:"top"});o.afterDismissed().subscribe(()=>this.router.navigate(["/departments"])),o.onAction().subscribe(()=>this.router.navigate(["/departments"]))},error:o=>{console.error("Error deleting department:",o),this.showMessage("Failed to delete department. Please try again.")}})})}goBack(){this.router.navigate(["/departments"])}canEdit(){return this.authService.isHRAdmin()||this.authService.isManager()}canDelete(){return this.authService.isHRAdmin()}showMessage(i){this.snackBar.open(i,"Close",{duration:3e3,horizontalPosition:"end",verticalPosition:"top"})}};n.\u0275fac=function(r){return new(r||n)},n.\u0275cmp=E({type:n,selectors:[["app-department-detail"]],decls:4,vars:3,consts:[[4,"ngIf"],[1,"flex-spacer"],["mat-raised-button","","color","accent",3,"click",4,"appHasRole"],["mat-raised-button","","color","warn",3,"click",4,"appHasRole"],["mat-stroked-button","",3,"click"],[1,"detail-grid"],[1,"detail-section"],["matListItemTitle",""],["matListItemLine",""],["class","detail-section",4,"ngIf"],["mat-raised-button","","color","accent",3,"click"],["mat-raised-button","","color","warn",3,"click"],[1,"loading-container"],[1,"no-data"],["mat-raised-button","","color","primary",3,"click"]],template:function(r,o){r&1&&(k(0,"page-header"),R(1,$ve,24,6,"mat-card",0)(2,Wve,4,0,"mat-card",0)(3,Gve,9,0,"mat-card",0)),r&2&&(g(),y("ngIf",!o.loading&&o.department),g(),y("ngIf",o.loading),g(),y("ngIf",!o.loading&&!o.department))},dependencies:[gt,li,ze,kt,$t,zt,Ut,Jt,Xt,ot,mt,ca,Fs,la,Ha,Tu,Dl,sa,Si,ki,pi,Mn,ni,Un,Sa],styles:["mat-card[_ngcontent-%COMP%]{margin:16px}mat-card-header[_ngcontent-%COMP%]{display:flex;align-items:center;margin-bottom:16px;padding:16px;border-bottom:1px solid rgba(0,0,0,.12)}mat-card-header[_ngcontent-%COMP%] mat-card-title[_ngcontent-%COMP%]{font-size:20px;font-weight:500;margin:0}mat-card-header[_ngcontent-%COMP%] .flex-spacer[_ngcontent-%COMP%]{flex:1 1 auto}mat-card-header[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{margin-left:8px}mat-card-header[_ngcontent-%COMP%] button[_ngcontent-%COMP%] mat-icon[_ngcontent-%COMP%]{margin-right:4px}mat-card-content[_ngcontent-%COMP%]{padding:16px}.detail-grid[_ngcontent-%COMP%]{display:grid;grid-template-columns:repeat(auto-fit,minmax(400px,1fr));gap:24px}.detail-section[_ngcontent-%COMP%] h3[_ngcontent-%COMP%]{margin:0 0 8px;font-size:16px;font-weight:500;color:#000000de}.detail-section[_ngcontent-%COMP%] mat-divider[_ngcontent-%COMP%]{margin-bottom:16px}.detail-section[_ngcontent-%COMP%] mat-list[_ngcontent-%COMP%]{padding:0}.detail-section[_ngcontent-%COMP%] mat-list-item[_ngcontent-%COMP%]{height:auto;min-height:48px;padding:8px 0}.loading-container[_ngcontent-%COMP%]{display:flex;justify-content:center;align-items:center;min-height:300px}.no-data[_ngcontent-%COMP%]{display:flex;flex-direction:column;align-items:center;justify-content:center;padding:48px 16px;color:#0000008a}.no-data[_ngcontent-%COMP%] mat-icon[_ngcontent-%COMP%]{font-size:48px;width:48px;height:48px;margin-bottom:16px}.no-data[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{margin:0 0 16px;font-size:16px}"]});let t=n;return t})();function qve(t,n){t&1&&(h(0,"div",0),k(1,"mat-spinner"),p())}function Yve(t,n){t&1&&(h(0,"mat-error"),_(1," Department name is required "),p())}function Qve(t,n){t&1&&(h(0,"mat-error"),_(1," Department name cannot exceed 100 characters "),p())}var aA=(()=>{let n=class n{constructor(){this.departmentService=u(Vs),this.route=u(wi),this.router=u(Re),this.fb=u(eo),this.snackBar=u(di),this.loading=!1,this.isEditMode=!1}ngOnInit(){this.initForm();let i=this.route.snapshot.paramMap.get("id");i&&(this.isEditMode=!0,this.departmentId=i,this.loadDepartment(i))}initForm(){this.departmentForm=this.fb.group({name:["",[Le.required,Le.maxLength(100)]]})}loadDepartment(i){this.loading=!0,this.departmentService.getById(i).subscribe({next:r=>{this.departmentForm.patchValue({name:r.name}),this.loading=!1},error:r=>{console.error("Error loading department:",r),this.showMessage("Error loading department"),this.loading=!1}})}onSubmit(){if(!this.departmentForm.invalid)if(this.loading=!0,this.isEditMode&&this.departmentId){let i={id:this.departmentId,name:this.departmentForm.value.name};this.departmentService.updateDepartment(i).subscribe({next:()=>{this.showMessage("Department updated successfully"),this.router.navigate(["/departments",this.departmentId])},error:r=>{console.error("Error updating department:",r),this.showMessage("Error updating department"),this.loading=!1}})}else{let i={name:this.departmentForm.value.name};this.departmentService.createDepartment(i).subscribe({next:r=>{console.log("Department created - Response:",r),console.log("Department ID:",r?.id),this.showMessage("Department created successfully"),r?.id?(console.log("Navigating to detail page:","/departments/"+r.id),this.router.navigate(["/departments",r.id])):(console.warn("No department ID returned, navigating to list page"),this.router.navigate(["/departments"])),this.loading=!1},error:r=>{console.error("Error creating department:",r),this.showMessage("Error creating department"),this.loading=!1}})}}onCancel(){this.isEditMode&&this.departmentId?this.router.navigate(["/departments",this.departmentId]):this.router.navigate(["/departments"])}showMessage(i){this.snackBar.open(i,"Close",{duration:3e3,horizontalPosition:"end",verticalPosition:"top"})}};n.\u0275fac=function(r){return new(r||n)},n.\u0275cmp=E({type:n,selectors:[["app-department-form"]],decls:23,vars:7,consts:[[1,"loading-overlay"],[3,"ngSubmit","formGroup"],[1,"form-section"],[1,"form-row"],["appearance","outline"],["matInput","","formControlName","name"],[4,"ngIf"],[1,"form-actions"],["type","button","mat-stroked-button","",3,"click"],["type","submit","mat-raised-button","","color","primary",3,"disabled"]],template:function(r,o){if(r&1&&(k(0,"page-header"),h(1,"mat-card")(2,"mat-card-header")(3,"mat-card-title"),_(4),p()(),h(5,"mat-card-content"),N(6,qve,2,0,"div",0),h(7,"form",1),S("ngSubmit",function(){return o.onSubmit()}),h(8,"div",2)(9,"h3"),_(10,"Department Information"),p(),h(11,"div",3)(12,"mat-form-field",4)(13,"mat-label"),_(14,"Department Name"),p(),k(15,"input",5),R(16,Yve,2,0,"mat-error",6)(17,Qve,2,0,"mat-error",6),p()()(),h(18,"div",7)(19,"button",8),S("click",function(){return o.onCancel()}),_(20," Cancel "),p(),h(21,"button",9),_(22),p()()()()()),r&2){let a,s;g(4),H(o.isEditMode?"Edit Department":"Create Department"),g(2),L(o.loading?6:-1),g(),y("formGroup",o.departmentForm),g(9),y("ngIf",(a=o.departmentForm.get("name"))==null?null:a.hasError("required")),g(),y("ngIf",(s=o.departmentForm.get("name"))==null?null:s.hasError("maxlength")),g(4),y("disabled",o.loading),g(),ve(" ",o.isEditMode?"Update":"Create"," ")}},dependencies:[gt,li,zn,Jr,Qi,ei,Xr,Ki,Lr,ze,kt,$t,zt,Ut,Jt,Xt,ot,rr,hn,Oi,sn,xo,$i,Si,ki,pi,ni],styles:["mat-card[_ngcontent-%COMP%]{margin:16px;max-width:800px}mat-card-header[_ngcontent-%COMP%]{padding:16px;border-bottom:1px solid rgba(0,0,0,.12)}mat-card-header[_ngcontent-%COMP%] mat-card-title[_ngcontent-%COMP%]{font-size:20px;font-weight:500;margin:0}mat-card-content[_ngcontent-%COMP%]{padding:24px;position:relative}.form-section[_ngcontent-%COMP%]{margin-bottom:24px}.form-section[_ngcontent-%COMP%] h3[_ngcontent-%COMP%]{margin:0 0 16px;font-size:16px;font-weight:500;color:#000000de}.form-section[_ngcontent-%COMP%] .form-row[_ngcontent-%COMP%]{display:grid;grid-template-columns:1fr;gap:16px;margin-bottom:16px}.form-section[_ngcontent-%COMP%] .form-row[_ngcontent-%COMP%] mat-form-field[_ngcontent-%COMP%]{width:100%}.form-actions[_ngcontent-%COMP%]{display:flex;justify-content:flex-end;gap:8px;padding-top:16px;border-top:1px solid rgba(0,0,0,.12)}.loading-overlay[_ngcontent-%COMP%]{position:absolute;inset:0;background-color:#fffc;display:flex;align-items:center;justify-content:center;z-index:1000}"]});let t=n;return t})();var Kve=["mat-sort-header",""],Zve=["*"];function Xve(t,n){t&1&&(ft(0,"div",2),Gt(),ft(1,"svg",3),ai(2,"path",4),vt()())}var UU=new T("MAT_SORT_DEFAULT_OPTIONS"),Ml=(()=>{class t{_defaultOptions;_initializedStream=new $a(1);sortables=new Map;_stateChanges=new z;active;start="asc";get direction(){return this._direction}set direction(e){this._direction=e}_direction="";disableClear;disabled=!1;sortChange=new U;initialized=this._initializedStream;constructor(e){this._defaultOptions=e}register(e){this.sortables.set(e.id,e)}deregister(e){this.sortables.delete(e.id)}sort(e){this.active!=e.id?(this.active=e.id,this.direction=e.start?e.start:this.start):this.direction=this.getNextSortDirection(e),this.sortChange.emit({active:this.active,direction:this.direction})}getNextSortDirection(e){if(!e)return"";let i=e?.disableClear??this.disableClear??!!this._defaultOptions?.disableClear,r=Jve(e.start||this.start,i),o=r.indexOf(this.direction)+1;return o>=r.length&&(o=0),r[o]}ngOnInit(){this._initializedStream.next()}ngOnChanges(){this._stateChanges.next()}ngOnDestroy(){this._stateChanges.complete(),this._initializedStream.complete()}static \u0275fac=function(i){return new(i||t)(_e(UU,8))};static \u0275dir=F({type:t,selectors:[["","matSort",""]],hostAttrs:[1,"mat-sort"],inputs:{active:[0,"matSortActive","active"],start:[0,"matSortStart","start"],direction:[0,"matSortDirection","direction"],disableClear:[2,"matSortDisableClear","disableClear",V],disabled:[2,"matSortDisabled","disabled",V]},outputs:{sortChange:"matSortChange"},exportAs:["matSort"],features:[Ae]})}return t})();function Jve(t,n){let e=["asc","desc"];return t=="desc"&&e.reverse(),n||e.push(""),e}var ww=(()=>{class t{changes=new z;static \u0275fac=function(i){return new(i||t)};static \u0275prov=O({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();function e0e(t){return t||new ww}var t0e={provide:ww,deps:[[new ss,new Gl,ww]],useFactory:e0e},Dw=(()=>{class t{_intl=u(ww);_sort=u(Ml,{optional:!0});_columnDef=u("MAT_SORT_HEADER_COLUMN_DEF",{optional:!0});_changeDetectorRef=u(ye);_focusMonitor=u(Yt);_elementRef=u(q);_ariaDescriber=u(Xm,{optional:!0});_renderChanges;_animationsDisabled=Ye();_recentlyCleared=he(null);_sortButton;id;arrowPosition="after";start;disabled=!1;get sortActionDescription(){return this._sortActionDescription}set sortActionDescription(e){this._updateSortActionDescription(e)}_sortActionDescription="Sort";disableClear;constructor(){u(ut).load(Di);let e=u(UU,{optional:!0});this._sort,e?.arrowPosition&&(this.arrowPosition=e?.arrowPosition)}ngOnInit(){!this.id&&this._columnDef&&(this.id=this._columnDef.name),this._sort.register(this),this._renderChanges=Je(this._sort._stateChanges,this._sort.sortChange).subscribe(()=>this._changeDetectorRef.markForCheck()),this._sortButton=this._elementRef.nativeElement.querySelector(".mat-sort-header-container"),this._updateSortActionDescription(this._sortActionDescription)}ngAfterViewInit(){this._focusMonitor.monitor(this._elementRef,!0).subscribe(()=>{Promise.resolve().then(()=>this._recentlyCleared.set(null))})}ngOnDestroy(){this._focusMonitor.stopMonitoring(this._elementRef),this._sort.deregister(this),this._renderChanges?.unsubscribe(),this._sortButton&&this._ariaDescriber?.removeDescription(this._sortButton,this._sortActionDescription)}_toggleOnInteraction(){if(!this._isDisabled()){let e=this._isSorted(),i=this._sort.direction;this._sort.sort(this),this._recentlyCleared.set(e&&!this._isSorted()?i:null)}}_handleKeydown(e){(e.keyCode===32||e.keyCode===13)&&(e.preventDefault(),this._toggleOnInteraction())}_isSorted(){return this._sort.active==this.id&&(this._sort.direction==="asc"||this._sort.direction==="desc")}_isDisabled(){return this._sort.disabled||this.disabled}_getAriaSortAttribute(){return this._isSorted()?this._sort.direction=="asc"?"ascending":"descending":"none"}_renderArrow(){return!this._isDisabled()||this._isSorted()}_updateSortActionDescription(e){this._sortButton&&(this._ariaDescriber?.removeDescription(this._sortButton,this._sortActionDescription),this._ariaDescriber?.describe(this._sortButton,e)),this._sortActionDescription=e}static \u0275fac=function(i){return new(i||t)};static \u0275cmp=E({type:t,selectors:[["","mat-sort-header",""]],hostAttrs:[1,"mat-sort-header"],hostVars:3,hostBindings:function(i,r){i&1&&S("click",function(){return r._toggleOnInteraction()})("keydown",function(a){return r._handleKeydown(a)})("mouseleave",function(){return r._recentlyCleared.set(null)}),i&2&&(X("aria-sort",r._getAriaSortAttribute()),G("mat-sort-header-disabled",r._isDisabled()))},inputs:{id:[0,"mat-sort-header","id"],arrowPosition:"arrowPosition",start:"start",disabled:[2,"disabled","disabled",V],sortActionDescription:"sortActionDescription",disableClear:[2,"disableClear","disableClear",V]},exportAs:["matSortHeader"],attrs:Kve,ngContentSelectors:Zve,decls:4,vars:17,consts:[[1,"mat-sort-header-container","mat-focus-indicator"],[1,"mat-sort-header-content"],[1,"mat-sort-header-arrow"],["viewBox","0 -960 960 960","focusable","false","aria-hidden","true"],["d","M440-240v-368L296-464l-56-56 240-240 240 240-56 56-144-144v368h-80Z"]],template:function(i,r){i&1&&(Me(),ft(0,"div",0)(1,"div",1),oe(2),vt(),N(3,Xve,3,0,"div",2),vt()),i&2&&(G("mat-sort-header-sorted",r._isSorted())("mat-sort-header-position-before",r.arrowPosition==="before")("mat-sort-header-descending",r._sort.direction==="desc")("mat-sort-header-ascending",r._sort.direction==="asc")("mat-sort-header-recently-cleared-ascending",r._recentlyCleared()==="asc")("mat-sort-header-recently-cleared-descending",r._recentlyCleared()==="desc")("mat-sort-header-animations-disabled",r._animationsDisabled),X("tabindex",r._isDisabled()?null:0)("role",r._isDisabled()?null:"button"),g(3),L(r._renderArrow()?3:-1))},styles:[`.mat-sort-header{cursor:pointer}.mat-sort-header-disabled{cursor:default}.mat-sort-header-container{display:flex;align-items:center;letter-spacing:normal;outline:0}[mat-sort-header].cdk-keyboard-focused .mat-sort-header-container,[mat-sort-header].cdk-program-focused .mat-sort-header-container{border-bottom:solid 1px currentColor}.mat-sort-header-container::before{margin:calc(calc(var(--mat-focus-indicator-border-width, 3px) + 2px)*-1)}.mat-sort-header-content{display:flex;align-items:center}.mat-sort-header-position-before{flex-direction:row-reverse}@keyframes _mat-sort-header-recently-cleared-ascending{from{transform:translateY(0);opacity:1}to{transform:translateY(-25%);opacity:0}}@keyframes _mat-sort-header-recently-cleared-descending{from{transform:translateY(0) rotate(180deg);opacity:1}to{transform:translateY(25%) rotate(180deg);opacity:0}}.mat-sort-header-arrow{height:12px;width:12px;position:relative;transition:transform 225ms cubic-bezier(0.4, 0, 0.2, 1),opacity 225ms cubic-bezier(0.4, 0, 0.2, 1);opacity:0;overflow:visible;color:var(--mat-sort-arrow-color, var(--mat-sys-on-surface))}.mat-sort-header.cdk-keyboard-focused .mat-sort-header-arrow,.mat-sort-header.cdk-program-focused .mat-sort-header-arrow,.mat-sort-header:hover .mat-sort-header-arrow{opacity:.54}.mat-sort-header .mat-sort-header-sorted .mat-sort-header-arrow{opacity:1}.mat-sort-header-descending .mat-sort-header-arrow{transform:rotate(180deg)}.mat-sort-header-recently-cleared-ascending .mat-sort-header-arrow{transform:translateY(-25%)}.mat-sort-header-recently-cleared-ascending .mat-sort-header-arrow{transition:none;animation:_mat-sort-header-recently-cleared-ascending 225ms cubic-bezier(0.4, 0, 0.2, 1) forwards}.mat-sort-header-recently-cleared-descending .mat-sort-header-arrow{transition:none;animation:_mat-sort-header-recently-cleared-descending 225ms cubic-bezier(0.4, 0, 0.2, 1) forwards}.mat-sort-header-animations-disabled .mat-sort-header-arrow{transition-duration:0ms;animation-duration:0ms}.mat-sort-header-arrow svg{width:24px;height:24px;fill:currentColor;position:absolute;top:50%;left:50%;margin:-12px 0 0 -12px;transform:translateZ(0)}.mat-sort-header-arrow,[dir=rtl] .mat-sort-header-position-before .mat-sort-header-arrow{margin:0 0 0 6px}.mat-sort-header-position-before .mat-sort-header-arrow,[dir=rtl] .mat-sort-header-arrow{margin:0 6px 0 0} +`],encapsulation:2,changeDetection:0})}return t})(),Ew=(()=>{class t{static \u0275fac=function(i){return new(i||t)};static \u0275mod=ee({type:t});static \u0275inj=J({providers:[t0e],imports:[we]})}return t})();var WU=()=>["HRAdmin","Manager"],GU=()=>["HRAdmin"];function i0e(t,n){if(t&1){let e=Y();h(0,"button",14),S("click",function(){I(e);let r=C();return A(r.createPosition())}),h(1,"mat-icon"),_(2,"add"),p(),_(3," Add Position "),p()}}function n0e(t,n){if(t&1){let e=Y();h(0,"button",15),S("click",function(){I(e);let r=C();return A(r.addMockData())}),h(1,"mat-icon"),_(2,"data_object"),p(),_(3," Add Mock Data "),p()}}function r0e(t,n){t&1&&(h(0,"div",16),k(1,"mat-spinner"),p())}function o0e(t,n){t&1&&(h(0,"th",30),_(1,"Position Number"),p())}function a0e(t,n){if(t&1&&(h(0,"td",31),_(1),p()),t&2){let e=n.$implicit;g(),H(e.positionNumber)}}function s0e(t,n){t&1&&(h(0,"th",30),_(1,"Position Title"),p())}function l0e(t,n){if(t&1&&(h(0,"td",31),_(1),p()),t&2){let e=n.$implicit;g(),H(e.positionTitle)}}function c0e(t,n){t&1&&(h(0,"th",30),_(1,"Department"),p())}function d0e(t,n){if(t&1&&(h(0,"td",31),_(1),p()),t&2){let e=n.$implicit;g(),H(e.department==null?null:e.department.name)}}function u0e(t,n){t&1&&(h(0,"th",30),_(1,"Salary Range"),p())}function m0e(t,n){if(t&1&&(h(0,"td",31),_(1),p()),t&2){let e=n.$implicit;g(),H(e.salaryRange==null?null:e.salaryRange.name)}}function h0e(t,n){t&1&&(h(0,"th",32),_(1,"Actions"),p())}function p0e(t,n){if(t&1){let e=Y();h(0,"button",38),S("click",function(){I(e);let r=C().$implicit,o=C(2);return A(o.editPosition(r))}),h(1,"mat-icon"),_(2,"edit"),p()()}}function f0e(t,n){if(t&1){let e=Y();h(0,"button",39),S("click",function(){I(e);let r=C().$implicit,o=C(2);return A(o.deletePosition(r))}),h(1,"mat-icon"),_(2,"delete"),p()()}}function g0e(t,n){if(t&1){let e=Y();h(0,"td",33)(1,"div",34)(2,"button",35),S("click",function(){let r=I(e).$implicit,o=C(2);return A(o.viewPosition(r))}),h(3,"mat-icon"),_(4,"visibility"),p()(),R(5,p0e,3,0,"button",36)(6,f0e,3,0,"button",37),p()()}t&2&&(g(5),y("appHasRole",at(2,WU)),g(),y("appHasRole",at(3,GU)))}function _0e(t,n){t&1&&k(0,"tr",40)}function b0e(t,n){t&1&&k(0,"tr",41)}function v0e(t,n){if(t&1&&(h(0,"tr",42)(1,"td",43)(2,"div",44)(3,"mat-icon"),_(4,"work_off"),p(),h(5,"p"),_(6,"No positions found"),p()()()()),t&2){let e=C(2);g(),X("colspan",e.displayedColumns.length)}}function y0e(t,n){if(t&1){let e=Y();h(0,"table",17),S("matSortChange",function(r){I(e);let o=C();return A(o.onSortChange(r))}),jt(1,18),R(2,o0e,2,0,"th",19)(3,a0e,2,1,"td",20),Lt(),jt(4,21),R(5,s0e,2,0,"th",19)(6,l0e,2,1,"td",20),Lt(),jt(7,22),R(8,c0e,2,0,"th",19)(9,d0e,2,1,"td",20),Lt(),jt(10,23),R(11,u0e,2,0,"th",19)(12,m0e,2,1,"td",20),Lt(),jt(13,24),R(14,h0e,2,0,"th",25)(15,g0e,7,4,"td",26),Lt(),R(16,_0e,1,0,"tr",27)(17,b0e,1,0,"tr",28)(18,v0e,7,1,"tr",29),p()}if(t&2){let e=C();y("dataSource",e.positions),g(16),y("matHeaderRowDef",e.displayedColumns),g(),y("matRowDefColumns",e.displayedColumns)}}var qU=(()=>{let n=class n{constructor(){this.positionService=u(Bc),this.authService=u(Tt),this.router=u(Re),this.dialog=u(En),this.snackBar=u(di),this.searchSubject=new z,this.positions=[],this.loading=!1,this.displayedColumns=["positionNumber","positionTitle","departmentId","salaryRangeId","actions"],this.totalCount=0,this.pageNumber=1,this.pageSize=10,this.pageSizeOptions=[5,10,25,50,100],this.searchPositionNumber="",this.searchPositionTitle="",this.searchDepartment=""}ngOnInit(){this.searchSubject.pipe(Rt(500)).subscribe(()=>{this.pageNumber=1,this.loadPositions()}),this.loadPositions()}ngAfterViewInit(){}loadPositions(){this.loading=!0;let i={pageNumber:this.pageNumber,pageSize:this.pageSize};this.searchPositionNumber&&(i.PositionNumber=this.searchPositionNumber),this.searchPositionTitle&&(i.PositionTitle=this.searchPositionTitle),this.searchDepartment&&(i.Department=this.searchDepartment),this.sort?.active&&this.sort?.direction&&(i.orderBy=`${this.sort.active} ${this.sort.direction}`),this.positionService.getAllPaged(i).subscribe({next:r=>{this.positions=r.value,this.totalCount=r.recordsTotal,this.loading=!1},error:r=>{console.error("Error loading positions:",r),this.loading=!1}})}onSearch(){this.searchSubject.next()}onPageChange(i){this.pageNumber=i.pageIndex+1,this.pageSize=i.pageSize,this.loadPositions()}onSortChange(i){this.loadPositions()}clearFilters(){this.searchPositionNumber="",this.searchPositionTitle="",this.searchDepartment="",this.pageNumber=1,this.loadPositions()}createPosition(){this.router.navigate(["/positions/create"])}viewPosition(i){this.router.navigate(["/positions",i.id])}editPosition(i){this.router.navigate(["/positions/edit",i.id])}deletePosition(i){this.dialog.open(Er,{width:"400px",data:{title:"Delete Position",message:`Are you sure you want to delete "${i.positionTitle}"? This action cannot be undone.`,confirmText:"Delete",cancelText:"Cancel"}}).afterClosed().subscribe(o=>{o&&this.positionService.delete(i.id).subscribe({next:()=>{this.showMessage(`"${i.positionTitle}" has been deleted.`),this.loadPositions()},error:a=>{console.error("Error deleting position:",a),this.showMessage("Failed to delete position. Please try again.")}})})}addMockData(){let i=prompt("How many mock positions would you like to add?","10");if(i){let r=parseInt(i,10);r>0&&r<=100?(this.loading=!0,this.positionService.addMockPositions({rowCount:r}).subscribe({next:()=>{this.showMessage(`${r} mock positions added successfully`),this.loadPositions()},error:o=>{console.error("Error adding mock positions:",o),this.showMessage("Error adding mock positions"),this.loading=!1}})):this.showMessage("Please enter a number between 1 and 100")}}showMessage(i){this.snackBar.open(i,"Close",{duration:3e3,horizontalPosition:"end",verticalPosition:"top"})}canEdit(){return this.authService.hasRole("HRAdmin")||this.authService.hasRole("Manager")}};n.\u0275fac=function(r){return new(r||n)},n.\u0275cmp=E({type:n,selectors:[["app-position-list"]],viewQuery:function(r,o){if(r&1&&(ie(ir,5),ie(Ml,5)),r&2){let a;B(a=j())&&(o.paginator=a.first),B(a=j())&&(o.sort=a.first)}},decls:36,vars:13,consts:[[1,"flex-spacer"],["mat-raised-button","","color","primary",3,"click",4,"appHasRole"],["mat-stroked-button","","color","accent","style","margin-left: 8px;",3,"click",4,"appHasRole"],[1,"search-filters",2,"margin-bottom","16px","display","flex","gap","16px","flex-wrap","wrap"],["appearance","outline",2,"flex","1","min-width","200px"],["matInput","","placeholder","Search by position number",3,"ngModelChange","input","ngModel"],["matSuffix",""],["matInput","","placeholder","Search by position title",3,"ngModelChange","input","ngModel"],["matInput","","placeholder","Search by department",3,"ngModelChange","input","ngModel"],["mat-stroked-button","",2,"height","56px",3,"click"],[1,"table-container"],["class","loading-spinner",4,"ngIf"],["mat-table","","matSort","","class","position-table",3,"dataSource","matSortChange",4,"ngIf"],["showFirstLastButtons","",3,"page","length","pageSize","pageSizeOptions","pageIndex"],["mat-raised-button","","color","primary",3,"click"],["mat-stroked-button","","color","accent",2,"margin-left","8px",3,"click"],[1,"loading-spinner"],["mat-table","","matSort","",1,"position-table",3,"matSortChange","dataSource"],["matColumnDef","positionNumber"],["mat-header-cell","","mat-sort-header","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","positionTitle"],["matColumnDef","departmentId"],["matColumnDef","salaryRangeId"],["matColumnDef","actions"],["mat-header-cell","","class","mat-column-actions",4,"matHeaderCellDef"],["mat-cell","","class","mat-column-actions",4,"matCellDef"],["mat-header-row","",4,"matHeaderRowDef"],["mat-row","",4,"matRowDef","matRowDefColumns"],["class","mat-row",4,"matNoDataRow"],["mat-header-cell","","mat-sort-header",""],["mat-cell",""],["mat-header-cell","",1,"mat-column-actions"],["mat-cell","",1,"mat-column-actions"],[1,"action-buttons"],["mat-icon-button","","color","primary","matTooltip","View Details",3,"click"],["mat-icon-button","","color","accent","matTooltip","Edit Position",3,"click",4,"appHasRole"],["mat-icon-button","","color","warn","matTooltip","Delete Position",3,"click",4,"appHasRole"],["mat-icon-button","","color","accent","matTooltip","Edit Position",3,"click"],["mat-icon-button","","color","warn","matTooltip","Delete Position",3,"click"],["mat-header-row",""],["mat-row",""],[1,"mat-row"],[1,"mat-cell"],[1,"no-data"]],template:function(r,o){r&1&&(k(0,"page-header"),h(1,"mat-card")(2,"mat-card-header")(3,"mat-card-title"),_(4,"Positions"),p(),k(5,"span",0),R(6,i0e,4,0,"button",1)(7,n0e,4,0,"button",2),p(),h(8,"mat-card-content")(9,"div",3)(10,"mat-form-field",4)(11,"mat-label"),_(12,"Position Number"),p(),h(13,"input",5),Uo("ngModelChange",function(s){return Ca(o.searchPositionNumber,s)||(o.searchPositionNumber=s),s}),S("input",function(){return o.onSearch()}),p(),h(14,"mat-icon",6),_(15,"search"),p()(),h(16,"mat-form-field",4)(17,"mat-label"),_(18,"Position Title"),p(),h(19,"input",7),Uo("ngModelChange",function(s){return Ca(o.searchPositionTitle,s)||(o.searchPositionTitle=s),s}),S("input",function(){return o.onSearch()}),p(),h(20,"mat-icon",6),_(21,"search"),p()(),h(22,"mat-form-field",4)(23,"mat-label"),_(24,"Department"),p(),h(25,"input",8),Uo("ngModelChange",function(s){return Ca(o.searchDepartment,s)||(o.searchDepartment=s),s}),S("input",function(){return o.onSearch()}),p(),h(26,"mat-icon",6),_(27,"search"),p()(),h(28,"button",9),S("click",function(){return o.clearFilters()}),h(29,"mat-icon"),_(30,"clear"),p(),_(31," Clear Filters "),p()(),h(32,"div",10),R(33,r0e,2,0,"div",11)(34,y0e,19,3,"table",12),p(),h(35,"mat-paginator",13),S("page",function(s){return o.onPageChange(s)}),p()()()),r&2&&(g(6),y("appHasRole",at(11,WU)),g(),y("appHasRole",at(12,GU)),g(6),zo("ngModel",o.searchPositionNumber),g(6),zo("ngModel",o.searchPositionTitle),g(6),zo("ngModel",o.searchDepartment),g(8),y("ngIf",o.loading),g(),y("ngIf",!o.loading),g(),y("length",o.totalCount)("pageSize",o.pageSize)("pageSizeOptions",o.pageSizeOptions)("pageIndex",o.pageNumber-1))},dependencies:[gt,li,ze,kt,ti,$t,zt,Ut,Jt,Xt,ot,mt,Zc,Hc,Uc,qc,$c,zc,Yc,Wc,Gc,Qc,Kc,gw,_c,ir,Ew,Ml,Dw,Si,ki,Br,Eo,Mn,$i,Oi,sn,ru,rr,hn,pi,du,Qi,ei,gg,ni,Un],styles:["mat-card[_ngcontent-%COMP%]{margin:16px}mat-card-header[_ngcontent-%COMP%]{display:flex;align-items:center;margin-bottom:16px;padding:16px;border-bottom:1px solid rgba(0,0,0,.12)}mat-card-header[_ngcontent-%COMP%] mat-card-title[_ngcontent-%COMP%]{font-size:20px;font-weight:500;margin:0}mat-card-header[_ngcontent-%COMP%] .flex-spacer[_ngcontent-%COMP%]{flex:1 1 auto}mat-card-header[_ngcontent-%COMP%] button[_ngcontent-%COMP%] mat-icon[_ngcontent-%COMP%]{margin-right:4px}mat-card-content[_ngcontent-%COMP%]{padding:0}.table-container[_ngcontent-%COMP%]{position:relative;min-height:300px;overflow-x:auto}.loading-spinner[_ngcontent-%COMP%]{display:flex;justify-content:center;align-items:center;min-height:300px}.position-table[_ngcontent-%COMP%]{width:100%}.position-table[_ngcontent-%COMP%] th[_ngcontent-%COMP%]{font-weight:600;font-size:14px;color:#000000de}.position-table[_ngcontent-%COMP%] td[_ngcontent-%COMP%]{font-size:14px;color:#000000de}.position-table[_ngcontent-%COMP%] .mat-column-positionNumber[_ngcontent-%COMP%]{min-width:150px}.position-table[_ngcontent-%COMP%] .mat-column-positionTitle[_ngcontent-%COMP%]{min-width:200px}.position-table[_ngcontent-%COMP%] .mat-column-departmentId[_ngcontent-%COMP%], .position-table[_ngcontent-%COMP%] .mat-column-salaryRangeId[_ngcontent-%COMP%]{min-width:150px}.position-table[_ngcontent-%COMP%] .mat-column-actions[_ngcontent-%COMP%]{width:150px;text-align:right}.position-table[_ngcontent-%COMP%] .action-buttons[_ngcontent-%COMP%]{display:flex;justify-content:flex-end;gap:4px}.position-table[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{margin-left:4px}.no-data[_ngcontent-%COMP%]{display:flex;flex-direction:column;align-items:center;justify-content:center;padding:48px 16px;color:#0000008a}.no-data[_ngcontent-%COMP%] mat-icon[_ngcontent-%COMP%]{font-size:48px;width:48px;height:48px;margin-bottom:16px}.no-data[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{margin:0;font-size:16px}mat-paginator[_ngcontent-%COMP%]{border-top:1px solid rgba(0,0,0,.12)}"]});let t=n;return t})();var YU=()=>["HRAdmin","Manager"];function x0e(t,n){t&1&&(h(0,"div",2),k(1,"mat-spinner"),p())}function C0e(t,n){if(t&1){let e=Y();h(0,"button",9),S("click",function(){I(e);let r=C(2);return A(r.editPosition())}),h(1,"mat-icon"),_(2,"edit"),p()()}}function w0e(t,n){if(t&1){let e=Y();h(0,"button",10),S("click",function(){I(e);let r=C(2);return A(r.deletePosition())}),h(1,"mat-icon"),_(2,"delete"),p()()}}function D0e(t,n){if(t&1&&(h(0,"mat-list-item")(1,"span",7),_(2,"Description:"),p(),h(3,"span",8),_(4),p()()),t&2){let e=C(2);g(4),H(e.position.positionDescription)}}function E0e(t,n){t&1&&k(0,"mat-divider")}function M0e(t,n){if(t&1&&(h(0,"mat-list-item")(1,"span",7),_(2,"Created:"),p(),h(3,"span",8),_(4),me(5,"date"),p()()),t&2){let e=C(2);g(4),H(Ni(5,1,e.position.createdAt,"medium"))}}function k0e(t,n){t&1&&k(0,"mat-divider")}function S0e(t,n){if(t&1&&(h(0,"mat-list-item")(1,"span",7),_(2,"Last Modified:"),p(),h(3,"span",8),_(4),me(5,"date"),p()()),t&2){let e=C(2);g(4),H(Ni(5,1,e.position.lastModifiedAt,"medium"))}}function T0e(t,n){if(t&1){let e=Y();h(0,"mat-card")(1,"mat-card-header")(2,"mat-card-title"),_(3),p(),h(4,"div",3),R(5,C0e,3,0,"button",4)(6,w0e,3,0,"button",5),h(7,"button",6),S("click",function(){I(e);let r=C();return A(r.goBack())}),h(8,"mat-icon"),_(9,"arrow_back"),p()()()(),h(10,"mat-card-content")(11,"mat-list")(12,"mat-list-item")(13,"span",7),_(14,"Position Number:"),p(),h(15,"span",8),_(16),p()(),k(17,"mat-divider"),h(18,"mat-list-item")(19,"span",7),_(20,"Position Title:"),p(),h(21,"span",8),_(22),p()(),k(23,"mat-divider"),R(24,D0e,5,1,"mat-list-item",1)(25,E0e,1,0,"mat-divider",1),h(26,"mat-list-item")(27,"span",7),_(28,"Department:"),p(),h(29,"span",8),_(30),p()(),k(31,"mat-divider"),h(32,"mat-list-item")(33,"span",7),_(34,"Salary Range:"),p(),h(35,"span",8),_(36),p()(),k(37,"mat-divider"),R(38,M0e,6,4,"mat-list-item",1)(39,k0e,1,0,"mat-divider",1)(40,S0e,6,4,"mat-list-item",1),p()()()}if(t&2){let e=C();g(3),H(e.position.positionTitle),g(2),y("appHasRole",at(12,YU)),g(),y("appHasRole",at(13,YU)),g(10),H(e.position.positionNumber),g(6),H(e.position.positionTitle),g(2),y("ngIf",e.position.positionDescription),g(),y("ngIf",e.position.positionDescription),g(5),H((e.position.department==null?null:e.position.department.name)||e.position.departmentId),g(6),H((e.position.salaryRange==null?null:e.position.salaryRange.name)||e.position.salaryRangeId),g(2),y("ngIf",e.position.createdAt),g(),y("ngIf",e.position.createdAt),g(),y("ngIf",e.position.lastModifiedAt)}}function I0e(t,n){t&1&&(h(0,"mat-card")(1,"mat-card-content")(2,"p"),_(3,"Position not found."),p()()())}var QU=(()=>{let n=class n{constructor(){this.positionService=u(Bc),this.authService=u(Tt),this.route=u(wi),this.router=u(Re),this.snackBar=u(di),this.dialog=u(En),this.loading=!1}ngOnInit(){let i=this.route.snapshot.paramMap.get("id");i&&this.loadPosition(i)}loadPosition(i){this.loading=!0,this.positionService.getById(i).subscribe({next:r=>{this.position=r,this.loading=!1},error:r=>{console.error("Error loading position:",r),this.showMessage("Error loading position"),this.loading=!1,this.router.navigate(["/positions"])}})}editPosition(){this.router.navigate(["/positions","edit",this.position.id])}deletePosition(){this.dialog.open(Er,{width:"400px",data:{title:"Delete Position",message:`Are you sure you want to delete "${this.position.positionTitle}"? This action cannot be undone.`,confirmText:"Delete",cancelText:"Cancel"}}).afterClosed().subscribe(r=>{r&&this.positionService.delete(this.position.id).subscribe({next:()=>{let o=this.snackBar.open(`"${this.position.positionTitle}" has been deleted.`,"Close",{duration:3e3,horizontalPosition:"end",verticalPosition:"top"});o.afterDismissed().subscribe(()=>this.router.navigate(["/positions"])),o.onAction().subscribe(()=>this.router.navigate(["/positions"]))},error:o=>{console.error("Error deleting position:",o),this.showMessage("Failed to delete position. Please try again.")}})})}goBack(){this.router.navigate(["/positions"])}canEdit(){return this.authService.isHRAdmin()||this.authService.isManager()}canDelete(){return this.authService.isHRAdmin()||this.authService.isManager()}showMessage(i){this.snackBar.open(i,"Close",{duration:3e3,horizontalPosition:"end",verticalPosition:"top"})}};n.\u0275fac=function(r){return new(r||n)},n.\u0275cmp=E({type:n,selectors:[["app-position-detail"]],decls:4,vars:3,consts:[["class","loading-spinner",4,"ngIf"],[4,"ngIf"],[1,"loading-spinner"],[1,"header-actions"],["mat-icon-button","","color","primary","matTooltip","Edit Position",3,"click",4,"appHasRole"],["mat-icon-button","","color","warn","matTooltip","Delete Position",3,"click",4,"appHasRole"],["mat-icon-button","","matTooltip","Back to List",3,"click"],[1,"label"],[1,"value"],["mat-icon-button","","color","primary","matTooltip","Edit Position",3,"click"],["mat-icon-button","","color","warn","matTooltip","Delete Position",3,"click"]],template:function(r,o){r&1&&(k(0,"page-header"),R(1,x0e,2,0,"div",0)(2,T0e,41,14,"mat-card",1)(3,I0e,4,0,"mat-card",1)),r&2&&(g(),y("ngIf",o.loading),g(),y("ngIf",!o.loading&&o.position),g(),y("ngIf",!o.loading&&!o.position))},dependencies:[gt,li,ze,ti,$t,zt,Ut,Jt,Xt,ot,mt,ca,Fs,la,Ha,sa,Si,ki,pi,Mn,ni,Un,Sa],styles:[".loading-spinner[_ngcontent-%COMP%]{display:flex;justify-content:center;align-items:center;min-height:400px}mat-card[_ngcontent-%COMP%]{margin:16px;max-width:800px}mat-card-header[_ngcontent-%COMP%]{padding:16px;border-bottom:1px solid rgba(0,0,0,.12);display:flex;justify-content:space-between;align-items:center}mat-card-header[_ngcontent-%COMP%] mat-card-title[_ngcontent-%COMP%]{font-size:24px;font-weight:500;margin:0}mat-card-header[_ngcontent-%COMP%] .header-actions[_ngcontent-%COMP%]{display:flex;gap:8px}mat-card-content[_ngcontent-%COMP%]{padding:0}mat-list[_ngcontent-%COMP%]{padding:0}mat-list-item[_ngcontent-%COMP%]{height:auto!important;min-height:48px;padding:12px 16px;display:flex;justify-content:space-between;align-items:flex-start}mat-list-item[_ngcontent-%COMP%] .label[_ngcontent-%COMP%]{font-weight:500;color:#0009;min-width:180px}mat-list-item[_ngcontent-%COMP%] .value[_ngcontent-%COMP%]{flex:1;text-align:right;word-break:break-word}"]});let t=n;return t})();function A0e(t,n){t&1&&(h(0,"div",0),k(1,"mat-spinner"),p())}function O0e(t,n){t&1&&(h(0,"mat-error"),_(1," Position title is required "),p())}function R0e(t,n){t&1&&(h(0,"mat-error"),_(1," Position title cannot exceed 100 characters "),p())}function P0e(t,n){t&1&&(h(0,"mat-error"),_(1," Position number is required "),p())}function F0e(t,n){t&1&&(h(0,"mat-error"),_(1," Position number cannot exceed 50 characters "),p())}function N0e(t,n){t&1&&(h(0,"mat-error"),_(1," Position description cannot exceed 500 characters "),p())}function L0e(t,n){if(t&1&&(h(0,"mat-option",14),_(1),p()),t&2){let e=n.$implicit;y("value",e.id),g(),ve(" ",e.name," ")}}function V0e(t,n){t&1&&(h(0,"mat-error"),_(1," Department is required "),p())}function B0e(t,n){if(t&1&&(h(0,"mat-option",14),_(1),me(2,"number"),me(3,"number"),p()),t&2){let e=n.$implicit;y("value",e.id),g(),Cm(" ",e.name," ($",Ni(2,4,e.minSalary,"1.0-0")," - $",Ni(3,7,e.maxSalary,"1.0-0"),") ")}}function j0e(t,n){t&1&&(h(0,"mat-error"),_(1," Salary range is required "),p())}var sA=(()=>{let n=class n{constructor(){this.fb=u(eo),this.router=u(Re),this.route=u(wi),this.snackBar=u(di),this.positionService=u(Bc),this.departmentService=u(Vs),this.salaryRangeService=u(jc),this.loading=!1,this.isEditMode=!1,this.departments=[],this.salaryRanges=[]}ngOnInit(){this.initForm(),this.loadDepartments(),this.loadSalaryRanges(),this.checkEditMode()}initForm(){this.positionForm=this.fb.group({positionTitle:["",[Le.required,Le.maxLength(100)]],positionNumber:["",[Le.required,Le.maxLength(50)]],positionDescription:["",[Le.maxLength(500)]],departmentId:["",Le.required],salaryRangeId:["",Le.required]})}loadDepartments(){this.departmentService.getAll().subscribe({next:i=>{this.departments=i},error:i=>{console.error("Error loading departments:",i),this.showMessage("Error loading departments")}})}loadSalaryRanges(){this.salaryRangeService.getAll().subscribe({next:i=>{this.salaryRanges=i},error:i=>{console.error("Error loading salary ranges:",i),this.showMessage("Error loading salary ranges")}})}checkEditMode(){this.positionId=this.route.snapshot.paramMap.get("id")||void 0,this.isEditMode=!!this.positionId,this.isEditMode&&this.positionId&&this.loadPosition(this.positionId)}loadPosition(i){this.loading=!0,this.positionService.getById(i).subscribe({next:r=>{this.positionForm.patchValue({positionTitle:r.positionTitle,positionNumber:r.positionNumber,positionDescription:r.positionDescription,departmentId:r.departmentId,salaryRangeId:r.salaryRangeId}),this.loading=!1},error:r=>{console.error("Error loading position:",r),this.showMessage("Error loading position"),this.loading=!1}})}onSubmit(){if(this.positionForm.invalid){this.positionForm.markAllAsTouched();return}if(this.loading=!0,this.isEditMode&&this.positionId){let i=M({id:this.positionId},this.positionForm.value);this.positionService.updatePosition(i).subscribe({next:()=>{this.showMessage("Position updated successfully"),this.router.navigate(["/positions",this.positionId])},error:r=>{console.error("Error updating position:",r),this.showMessage("Error updating position"),this.loading=!1}})}else{let i=this.positionForm.value;this.positionService.createPosition(i).subscribe({next:r=>{console.log("Position created - Response:",r),console.log("Position ID:",r?.id),this.showMessage("Position created successfully"),r?.id?(console.log("Navigating to detail page:","/positions/"+r.id),this.router.navigate(["/positions",r.id])):(console.warn("No position ID returned, navigating to list page"),this.router.navigate(["/positions"])),this.loading=!1},error:r=>{console.error("Error creating position:",r),this.showMessage("Error creating position"),this.loading=!1}})}}onCancel(){this.router.navigate(["/positions"])}showMessage(i){this.snackBar.open(i,"Close",{duration:3e3,horizontalPosition:"end",verticalPosition:"top"})}getFormTitle(){return this.isEditMode?"Edit Position":"Create Position"}};n.\u0275fac=function(r){return new(r||n)},n.\u0275cmp=E({type:n,selectors:[["app-position-form"]],decls:43,vars:14,consts:[[1,"loading-overlay"],[3,"ngSubmit","formGroup"],[1,"form-section"],["appearance","outline",1,"full-width"],["matInput","","formControlName","positionTitle"],[4,"ngIf"],["matInput","","formControlName","positionNumber"],["matInput","","formControlName","positionDescription","rows","4"],["formControlName","departmentId"],[3,"value",4,"ngFor","ngForOf"],["formControlName","salaryRangeId"],[1,"form-actions"],["type","button","mat-stroked-button","",3,"click"],["type","submit","mat-raised-button","","color","primary",3,"disabled"],[3,"value"]],template:function(r,o){if(r&1&&(k(0,"page-header"),h(1,"mat-card")(2,"mat-card-header")(3,"mat-card-title"),_(4),p()(),h(5,"mat-card-content"),N(6,A0e,2,0,"div",0),h(7,"form",1),S("ngSubmit",function(){return o.onSubmit()}),h(8,"div",2)(9,"mat-form-field",3)(10,"mat-label"),_(11,"Position Title"),p(),k(12,"input",4),R(13,O0e,2,0,"mat-error",5)(14,R0e,2,0,"mat-error",5),p(),h(15,"mat-form-field",3)(16,"mat-label"),_(17,"Position Number"),p(),k(18,"input",6),R(19,P0e,2,0,"mat-error",5)(20,F0e,2,0,"mat-error",5),p(),h(21,"mat-form-field",3)(22,"mat-label"),_(23,"Position Description"),p(),k(24,"textarea",7),R(25,N0e,2,0,"mat-error",5),p(),h(26,"mat-form-field",3)(27,"mat-label"),_(28,"Department"),p(),h(29,"mat-select",8),R(30,L0e,2,2,"mat-option",9),p(),R(31,V0e,2,0,"mat-error",5),p(),h(32,"mat-form-field",3)(33,"mat-label"),_(34,"Salary Range"),p(),h(35,"mat-select",10),R(36,B0e,4,10,"mat-option",9),p(),R(37,j0e,2,0,"mat-error",5),p()(),h(38,"div",11)(39,"button",12),S("click",function(){return o.onCancel()}),_(40," Cancel "),p(),h(41,"button",13),_(42),p()()()()()),r&2){let a,s,l,c,d,m,f;g(4),H(o.getFormTitle()),g(2),L(o.loading?6:-1),g(),y("formGroup",o.positionForm),g(6),y("ngIf",(a=o.positionForm.get("positionTitle"))==null?null:a.hasError("required")),g(),y("ngIf",(s=o.positionForm.get("positionTitle"))==null?null:s.hasError("maxlength")),g(5),y("ngIf",(l=o.positionForm.get("positionNumber"))==null?null:l.hasError("required")),g(),y("ngIf",(c=o.positionForm.get("positionNumber"))==null?null:c.hasError("maxlength")),g(5),y("ngIf",(d=o.positionForm.get("positionDescription"))==null?null:d.hasError("maxlength")),g(5),y("ngForOf",o.departments),g(),y("ngIf",(m=o.positionForm.get("departmentId"))==null?null:m.hasError("required")),g(5),y("ngForOf",o.salaryRanges),g(),y("ngIf",(f=o.positionForm.get("salaryRangeId"))==null?null:f.hasError("required")),g(4),y("disabled",o.loading),g(),ve(" ",o.isEditMode?"Update":"Create"," ")}},dependencies:[gt,qr,li,zn,Jr,Qi,ei,Xr,Ki,Lr,ze,kt,$t,zt,Ut,Jt,Xt,$i,Oi,sn,xo,rr,hn,fc,Na,xn,Si,ki,pi,ni,ff],styles:["mat-card[_ngcontent-%COMP%]{margin:16px;max-width:800px}mat-card-header[_ngcontent-%COMP%]{margin-bottom:16px;padding:16px;border-bottom:1px solid rgba(0,0,0,.12)}mat-card-header[_ngcontent-%COMP%] mat-card-title[_ngcontent-%COMP%]{font-size:20px;font-weight:500;margin:0}mat-card-content[_ngcontent-%COMP%]{padding:16px;position:relative}.loading-overlay[_ngcontent-%COMP%]{position:absolute;inset:0;background-color:#fffc;display:flex;align-items:center;justify-content:center;z-index:1000}.form-section[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:16px;margin-bottom:24px}.form-section[_ngcontent-%COMP%] .full-width[_ngcontent-%COMP%]{width:100%}.form-actions[_ngcontent-%COMP%]{display:flex;gap:12px;justify-content:flex-end;padding-top:16px;border-top:1px solid rgba(0,0,0,.12)}"]});let t=n;return t})();var KU=()=>["HRAdmin","Manager"],H0e=()=>[5,10,25,50],z0e=()=>["HRAdmin"];function U0e(t,n){if(t&1){let e=Y();h(0,"button",6),S("click",function(){I(e);let r=C();return A(r.createSalaryRange())}),h(1,"mat-icon"),_(2,"add"),p(),_(3," Add Salary Range "),p()}}function $0e(t,n){t&1&&(h(0,"div",7),k(1,"mat-spinner"),p())}function W0e(t,n){t&1&&(h(0,"th",20),_(1,"Range Name"),p())}function G0e(t,n){if(t&1&&(h(0,"td",21),_(1),p()),t&2){let e=n.$implicit;g(),H(e.name)}}function q0e(t,n){t&1&&(h(0,"th",20),_(1,"Minimum Salary"),p())}function Y0e(t,n){if(t&1&&(h(0,"td",21),_(1),me(2,"currency"),p()),t&2){let e=n.$implicit;g(),H(Dm(2,1,e.minSalary,"USD","symbol","1.0-0"))}}function Q0e(t,n){t&1&&(h(0,"th",20),_(1,"Maximum Salary"),p())}function K0e(t,n){if(t&1&&(h(0,"td",21),_(1),me(2,"currency"),p()),t&2){let e=n.$implicit;g(),H(Dm(2,1,e.maxSalary,"USD","symbol","1.0-0"))}}function Z0e(t,n){t&1&&(h(0,"th",22),_(1,"Actions"),p())}function X0e(t,n){if(t&1){let e=Y();h(0,"button",28),S("click",function(){I(e);let r=C().$implicit,o=C(2);return A(o.editSalaryRange(r))}),h(1,"mat-icon"),_(2,"edit"),p()()}}function J0e(t,n){if(t&1){let e=Y();h(0,"button",29),S("click",function(){I(e);let r=C().$implicit,o=C(2);return A(o.deleteSalaryRange(r))}),h(1,"mat-icon"),_(2,"delete"),p()()}}function eye(t,n){if(t&1){let e=Y();h(0,"td",23)(1,"div",24)(2,"button",25),S("click",function(){let r=I(e).$implicit,o=C(2);return A(o.viewSalaryRange(r))}),h(3,"mat-icon"),_(4,"visibility"),p()(),R(5,X0e,3,0,"button",26)(6,J0e,3,0,"button",27),p()()}t&2&&(g(5),y("appHasRole",at(2,KU)),g(),y("appHasRole",at(3,z0e)))}function tye(t,n){t&1&&k(0,"tr",30)}function iye(t,n){t&1&&k(0,"tr",31)}function nye(t,n){if(t&1&&(h(0,"tr",32)(1,"td",33)(2,"div",34)(3,"mat-icon"),_(4,"money_off"),p(),h(5,"p"),_(6,"No salary ranges found"),p()()()()),t&2){let e=C(2);g(),X("colspan",e.displayedColumns.length)}}function rye(t,n){if(t&1&&(h(0,"table",8),jt(1,9),R(2,W0e,2,0,"th",10)(3,G0e,2,1,"td",11),Lt(),jt(4,12),R(5,q0e,2,0,"th",10)(6,Y0e,3,6,"td",11),Lt(),jt(7,13),R(8,Q0e,2,0,"th",10)(9,K0e,3,6,"td",11),Lt(),jt(10,14),R(11,Z0e,2,0,"th",15)(12,eye,7,4,"td",16),Lt(),R(13,tye,1,0,"tr",17)(14,iye,1,0,"tr",18)(15,nye,7,1,"tr",19),p()),t&2){let e=C();y("dataSource",e.dataSource),g(13),y("matHeaderRowDef",e.displayedColumns),g(),y("matRowDefColumns",e.displayedColumns)}}var ZU=(()=>{let n=class n{constructor(){this.salaryRangeService=u(jc),this.authService=u(Tt),this.router=u(Re),this.snackBar=u(di),this.dialog=u(En),this.dataSource=new fw([]),this.loading=!1,this.displayedColumns=["name","minSalary","maxSalary","actions"]}ngOnInit(){this.loadSalaryRanges()}ngAfterViewInit(){this.dataSource.paginator=this.paginator,this.dataSource.sort=this.sort}loadSalaryRanges(){this.loading=!0,this.salaryRangeService.getAll().subscribe({next:i=>{this.dataSource.data=i,this.loading=!1},error:i=>{console.error("Error loading salary ranges:",i),this.loading=!1}})}createSalaryRange(){this.router.navigate(["/salary-ranges/create"])}viewSalaryRange(i){this.router.navigate(["/salary-ranges",i.id])}editSalaryRange(i){this.router.navigate(["/salary-ranges/edit",i.id])}deleteSalaryRange(i){this.dialog.open(Er,{width:"400px",data:{title:"Delete Salary Range",message:`Are you sure you want to delete "${i.name}"? This action cannot be undone.`,confirmText:"Delete",cancelText:"Cancel"}}).afterClosed().subscribe(o=>{o&&this.salaryRangeService.delete(i.id).subscribe({next:()=>{this.showMessage(`"${i.name}" has been deleted.`),this.loadSalaryRanges()},error:a=>{console.error("Error deleting salary range:",a),this.showMessage("Failed to delete salary range. Please try again.")}})})}showMessage(i){this.snackBar.open(i,"Close",{duration:3e3,horizontalPosition:"end",verticalPosition:"top"})}canEdit(){return this.authService.hasRole("HRAdmin")||this.authService.hasRole("Manager")}};n.\u0275fac=function(r){return new(r||n)},n.\u0275cmp=E({type:n,selectors:[["app-salary-range-list"]],viewQuery:function(r,o){if(r&1&&(ie(ir,5),ie(Ml,5)),r&2){let a;B(a=j())&&(o.paginator=a.first),B(a=j())&&(o.sort=a.first)}},decls:12,vars:6,consts:[[1,"flex-spacer"],["mat-raised-button","","color","primary",3,"click",4,"appHasRole"],[1,"table-container"],["class","loading-spinner",4,"ngIf"],["mat-table","","matSort","","class","salary-range-table",3,"dataSource",4,"ngIf"],["showFirstLastButtons","",3,"pageSizeOptions"],["mat-raised-button","","color","primary",3,"click"],[1,"loading-spinner"],["mat-table","","matSort","",1,"salary-range-table",3,"dataSource"],["matColumnDef","name"],["mat-header-cell","","mat-sort-header","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","minSalary"],["matColumnDef","maxSalary"],["matColumnDef","actions"],["mat-header-cell","","class","mat-column-actions",4,"matHeaderCellDef"],["mat-cell","","class","mat-column-actions",4,"matCellDef"],["mat-header-row","",4,"matHeaderRowDef"],["mat-row","",4,"matRowDef","matRowDefColumns"],["class","mat-row",4,"matNoDataRow"],["mat-header-cell","","mat-sort-header",""],["mat-cell",""],["mat-header-cell","",1,"mat-column-actions"],["mat-cell","",1,"mat-column-actions"],[1,"action-buttons"],["mat-icon-button","","color","primary","matTooltip","View Details",3,"click"],["mat-icon-button","","color","accent","matTooltip","Edit Salary Range",3,"click",4,"appHasRole"],["mat-icon-button","","color","warn","matTooltip","Delete Salary Range",3,"click",4,"appHasRole"],["mat-icon-button","","color","accent","matTooltip","Edit Salary Range",3,"click"],["mat-icon-button","","color","warn","matTooltip","Delete Salary Range",3,"click"],["mat-header-row",""],["mat-row",""],[1,"mat-row"],[1,"mat-cell"],[1,"no-data"]],template:function(r,o){r&1&&(k(0,"page-header"),h(1,"mat-card")(2,"mat-card-header")(3,"mat-card-title"),_(4,"Salary Ranges"),p(),k(5,"span",0),R(6,U0e,4,0,"button",1),p(),h(7,"mat-card-content")(8,"div",2),R(9,$0e,2,0,"div",3)(10,rye,16,3,"table",4),p(),k(11,"mat-paginator",5),p()()),r&2&&(g(6),y("appHasRole",at(4,KU)),g(3),y("ngIf",o.loading),g(),y("ngIf",!o.loading),g(),y("pageSizeOptions",at(5,H0e)))},dependencies:[gt,li,ze,kt,ti,$t,zt,Ut,Jt,Xt,ot,mt,Zc,Hc,Uc,qc,$c,zc,Yc,Wc,Gc,Qc,Kc,gw,_c,ir,Ew,Ml,Dw,Si,ki,Br,Eo,pi,Mn,ni,Un,il],styles:["mat-card[_ngcontent-%COMP%]{margin:16px}mat-card-header[_ngcontent-%COMP%]{display:flex;align-items:center;margin-bottom:16px;padding:16px;border-bottom:1px solid rgba(0,0,0,.12)}mat-card-header[_ngcontent-%COMP%] mat-card-title[_ngcontent-%COMP%]{font-size:20px;font-weight:500;margin:0}mat-card-header[_ngcontent-%COMP%] .flex-spacer[_ngcontent-%COMP%]{flex:1 1 auto}mat-card-header[_ngcontent-%COMP%] button[_ngcontent-%COMP%] mat-icon[_ngcontent-%COMP%]{margin-right:4px}mat-card-content[_ngcontent-%COMP%]{padding:0}.table-container[_ngcontent-%COMP%]{position:relative;min-height:300px;overflow-x:auto}.loading-spinner[_ngcontent-%COMP%]{display:flex;justify-content:center;align-items:center;min-height:300px}.salary-range-table[_ngcontent-%COMP%]{width:100%}.salary-range-table[_ngcontent-%COMP%] th[_ngcontent-%COMP%]{font-weight:600;font-size:14px;color:#000000de}.salary-range-table[_ngcontent-%COMP%] td[_ngcontent-%COMP%]{font-size:14px;color:#000000de}.salary-range-table[_ngcontent-%COMP%] .mat-column-name[_ngcontent-%COMP%]{min-width:200px}.salary-range-table[_ngcontent-%COMP%] .mat-column-minSalary[_ngcontent-%COMP%], .salary-range-table[_ngcontent-%COMP%] .mat-column-maxSalary[_ngcontent-%COMP%]{min-width:150px}.salary-range-table[_ngcontent-%COMP%] .mat-column-actions[_ngcontent-%COMP%]{width:150px;text-align:right}.salary-range-table[_ngcontent-%COMP%] .action-buttons[_ngcontent-%COMP%]{display:flex;justify-content:flex-end;gap:4px}.salary-range-table[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{margin-left:4px}.no-data[_ngcontent-%COMP%]{display:flex;flex-direction:column;align-items:center;justify-content:center;padding:48px 16px;color:#0000008a}.no-data[_ngcontent-%COMP%] mat-icon[_ngcontent-%COMP%]{font-size:48px;width:48px;height:48px;margin-bottom:16px}.no-data[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{margin:0;font-size:16px}mat-paginator[_ngcontent-%COMP%]{border-top:1px solid rgba(0,0,0,.12)}"]});let t=n;return t})();var XU=()=>["HRAdmin","Manager"];function oye(t,n){t&1&&(h(0,"div",2),k(1,"mat-spinner"),p())}function aye(t,n){if(t&1){let e=Y();h(0,"button",9),S("click",function(){I(e);let r=C(2);return A(r.editSalaryRange())}),h(1,"mat-icon"),_(2,"edit"),p()()}}function sye(t,n){if(t&1){let e=Y();h(0,"button",10),S("click",function(){I(e);let r=C(2);return A(r.deleteSalaryRange())}),h(1,"mat-icon"),_(2,"delete"),p()()}}function lye(t,n){if(t&1&&(h(0,"mat-list-item")(1,"span",7),_(2,"Created:"),p(),h(3,"span",8),_(4),me(5,"date"),p()()),t&2){let e=C(2);g(4),H(Ni(5,1,e.salaryRange.createdAt,"medium"))}}function cye(t,n){t&1&&k(0,"mat-divider")}function dye(t,n){if(t&1&&(h(0,"mat-list-item")(1,"span",7),_(2,"Last Modified:"),p(),h(3,"span",8),_(4),me(5,"date"),p()()),t&2){let e=C(2);g(4),H(Ni(5,1,e.salaryRange.lastModifiedAt,"medium"))}}function uye(t,n){if(t&1){let e=Y();h(0,"mat-card")(1,"mat-card-header")(2,"mat-card-title"),_(3),p(),h(4,"div",3),R(5,aye,3,0,"button",4)(6,sye,3,0,"button",5),h(7,"button",6),S("click",function(){I(e);let r=C();return A(r.goBack())}),h(8,"mat-icon"),_(9,"arrow_back"),p()()()(),h(10,"mat-card-content")(11,"mat-list")(12,"mat-list-item")(13,"span",7),_(14,"Name:"),p(),h(15,"span",8),_(16),p()(),k(17,"mat-divider"),h(18,"mat-list-item")(19,"span",7),_(20,"Minimum Salary:"),p(),h(21,"span",8),_(22),me(23,"currency"),p()(),k(24,"mat-divider"),h(25,"mat-list-item")(26,"span",7),_(27,"Maximum Salary:"),p(),h(28,"span",8),_(29),me(30,"currency"),p()(),k(31,"mat-divider"),R(32,lye,6,4,"mat-list-item",1)(33,cye,1,0,"mat-divider",1)(34,dye,6,4,"mat-list-item",1),p()()()}if(t&2){let e=C();g(3),H(e.salaryRange.name),g(2),y("appHasRole",at(13,XU)),g(),y("appHasRole",at(14,XU)),g(10),H(e.salaryRange.name),g(6),H(Oe(23,9,e.salaryRange.minSalary)),g(7),H(Oe(30,11,e.salaryRange.maxSalary)),g(3),y("ngIf",e.salaryRange.createdAt),g(),y("ngIf",e.salaryRange.createdAt),g(),y("ngIf",e.salaryRange.lastModifiedAt)}}function mye(t,n){t&1&&(h(0,"mat-card")(1,"mat-card-content")(2,"p"),_(3,"Salary range not found."),p()()())}var JU=(()=>{let n=class n{constructor(){this.salaryRangeService=u(jc),this.authService=u(Tt),this.route=u(wi),this.router=u(Re),this.snackBar=u(di),this.dialog=u(En),this.loading=!1}ngOnInit(){let i=this.route.snapshot.paramMap.get("id");i&&this.loadSalaryRange(i)}loadSalaryRange(i){this.loading=!0,this.salaryRangeService.getById(i).subscribe({next:r=>{this.salaryRange=r,this.loading=!1},error:r=>{console.error("Error loading salary range:",r),this.showMessage("Error loading salary range"),this.loading=!1,this.router.navigate(["/salary-ranges"])}})}editSalaryRange(){this.router.navigate(["/salary-ranges","edit",this.salaryRange.id])}deleteSalaryRange(){this.dialog.open(Er,{width:"400px",data:{title:"Delete Salary Range",message:`Are you sure you want to delete "${this.salaryRange.name}"? This action cannot be undone.`,confirmText:"Delete",cancelText:"Cancel"}}).afterClosed().subscribe(r=>{r&&this.salaryRangeService.delete(this.salaryRange.id).subscribe({next:()=>{let o=this.snackBar.open(`"${this.salaryRange.name}" has been deleted.`,"Close",{duration:3e3,horizontalPosition:"end",verticalPosition:"top"});o.afterDismissed().subscribe(()=>this.router.navigate(["/salary-ranges"])),o.onAction().subscribe(()=>this.router.navigate(["/salary-ranges"]))},error:o=>{console.error("Error deleting salary range:",o),this.showMessage("Failed to delete salary range. Please try again.")}})})}goBack(){this.router.navigate(["/salary-ranges"])}canEdit(){return this.authService.isHRAdmin()||this.authService.isManager()}canDelete(){return this.authService.isHRAdmin()||this.authService.isManager()}showMessage(i){this.snackBar.open(i,"Close",{duration:3e3,horizontalPosition:"end",verticalPosition:"top"})}};n.\u0275fac=function(r){return new(r||n)},n.\u0275cmp=E({type:n,selectors:[["app-salary-range-detail"]],decls:4,vars:3,consts:[["class","loading-spinner",4,"ngIf"],[4,"ngIf"],[1,"loading-spinner"],[1,"header-actions"],["mat-icon-button","","color","primary","matTooltip","Edit Salary Range",3,"click",4,"appHasRole"],["mat-icon-button","","color","warn","matTooltip","Delete Salary Range",3,"click",4,"appHasRole"],["mat-icon-button","","matTooltip","Back to List",3,"click"],[1,"label"],[1,"value"],["mat-icon-button","","color","primary","matTooltip","Edit Salary Range",3,"click"],["mat-icon-button","","color","warn","matTooltip","Delete Salary Range",3,"click"]],template:function(r,o){r&1&&(k(0,"page-header"),R(1,oye,2,0,"div",0)(2,uye,35,15,"mat-card",1)(3,mye,4,0,"mat-card",1)),r&2&&(g(),y("ngIf",o.loading),g(),y("ngIf",!o.loading&&o.salaryRange),g(),y("ngIf",!o.loading&&!o.salaryRange))},dependencies:[gt,li,ze,ti,$t,zt,Ut,Jt,Xt,ot,mt,ca,Fs,la,Ha,sa,Si,ki,pi,Mn,ni,Un,il,Sa],styles:[".loading-spinner[_ngcontent-%COMP%]{display:flex;justify-content:center;align-items:center;min-height:400px}mat-card[_ngcontent-%COMP%]{margin:16px;max-width:800px}mat-card-header[_ngcontent-%COMP%]{padding:16px;border-bottom:1px solid rgba(0,0,0,.12);display:flex;justify-content:space-between;align-items:center}mat-card-header[_ngcontent-%COMP%] mat-card-title[_ngcontent-%COMP%]{font-size:24px;font-weight:500;margin:0}mat-card-header[_ngcontent-%COMP%] .header-actions[_ngcontent-%COMP%]{display:flex;gap:8px}mat-card-content[_ngcontent-%COMP%]{padding:0}mat-list[_ngcontent-%COMP%]{padding:0}mat-list-item[_ngcontent-%COMP%]{height:auto!important;min-height:48px;padding:12px 16px;display:flex;justify-content:space-between;align-items:flex-start}mat-list-item[_ngcontent-%COMP%] .label[_ngcontent-%COMP%]{font-weight:500;color:#0009;min-width:180px}mat-list-item[_ngcontent-%COMP%] .value[_ngcontent-%COMP%]{flex:1;text-align:right;word-break:break-word}"]});let t=n;return t})();function hye(t,n){t&1&&(h(0,"div",0),k(1,"mat-spinner"),p())}function pye(t,n){t&1&&(h(0,"mat-error"),_(1," Range name is required "),p())}function fye(t,n){t&1&&(h(0,"mat-error"),_(1," Range name cannot exceed 100 characters "),p())}function gye(t,n){t&1&&(h(0,"mat-error"),_(1," Minimum salary is required "),p())}function _ye(t,n){t&1&&(h(0,"mat-error"),_(1," Minimum salary must be at least 0 "),p())}function bye(t,n){t&1&&(h(0,"mat-error"),_(1," Maximum salary is required "),p())}function vye(t,n){t&1&&(h(0,"mat-error"),_(1," Maximum salary must be at least 0 "),p())}function yye(t,n){t&1&&(h(0,"mat-error",13),_(1," Maximum salary must be greater than minimum salary "),p())}var lA=(()=>{let n=class n{constructor(){this.fb=u(eo),this.router=u(Re),this.route=u(wi),this.snackBar=u(di),this.salaryRangeService=u(jc),this.loading=!1,this.isEditMode=!1}ngOnInit(){this.initForm(),this.checkEditMode()}initForm(){this.salaryRangeForm=this.fb.group({name:["",[Le.required,Le.maxLength(100)]],minSalary:["",[Le.required,Le.min(0)]],maxSalary:["",[Le.required,Le.min(0)]]},{validators:this.salaryRangeValidator})}salaryRangeValidator(i){let r=i.get("minSalary")?.value,o=i.get("maxSalary")?.value;return r&&o&&parseFloat(r)>=parseFloat(o)?{salaryRangeInvalid:!0}:null}checkEditMode(){this.salaryRangeId=this.route.snapshot.paramMap.get("id")||void 0,this.isEditMode=!!this.salaryRangeId,this.isEditMode&&this.salaryRangeId&&this.loadSalaryRange(this.salaryRangeId)}loadSalaryRange(i){this.loading=!0,this.salaryRangeService.getById(i).subscribe({next:r=>{this.salaryRangeForm.patchValue({name:r.name,minSalary:r.minSalary,maxSalary:r.maxSalary}),this.loading=!1},error:r=>{console.error("Error loading salary range:",r),this.showMessage("Error loading salary range"),this.loading=!1}})}onSubmit(){if(this.salaryRangeForm.invalid){this.salaryRangeForm.markAllAsTouched();return}if(this.loading=!0,this.isEditMode&&this.salaryRangeId){let i={id:this.salaryRangeId,name:this.salaryRangeForm.value.name,minSalary:parseFloat(this.salaryRangeForm.value.minSalary),maxSalary:parseFloat(this.salaryRangeForm.value.maxSalary)};this.salaryRangeService.updateSalaryRange(i).subscribe({next:()=>{this.showMessage("Salary range updated successfully"),this.router.navigate(["/salary-ranges",this.salaryRangeId])},error:r=>{console.error("Error updating salary range:",r),this.showMessage("Error updating salary range"),this.loading=!1}})}else{let i={name:this.salaryRangeForm.value.name,minSalary:parseFloat(this.salaryRangeForm.value.minSalary),maxSalary:parseFloat(this.salaryRangeForm.value.maxSalary)};this.salaryRangeService.createSalaryRange(i).subscribe({next:r=>{console.log("Salary range created - Response:",r),console.log("Salary range ID:",r?.id),this.showMessage("Salary range created successfully"),r?.id?(console.log("Navigating to detail page:","/salary-ranges/"+r.id),this.router.navigate(["/salary-ranges",r.id])):(console.warn("No salary range ID returned, navigating to list page"),this.router.navigate(["/salary-ranges"])),this.loading=!1},error:r=>{console.error("Error creating salary range:",r),this.showMessage("Error creating salary range"),this.loading=!1}})}}onCancel(){this.router.navigate(["/salary-ranges"])}showMessage(i){this.snackBar.open(i,"Close",{duration:3e3,horizontalPosition:"end",verticalPosition:"top"})}getFormTitle(){return this.isEditMode?"Edit Salary Range":"Create Salary Range"}};n.\u0275fac=function(r){return new(r||n)},n.\u0275cmp=E({type:n,selectors:[["app-salary-range-form"]],decls:37,vars:12,consts:[[1,"loading-overlay"],[3,"ngSubmit","formGroup"],[1,"form-section"],["appearance","outline",1,"full-width"],["matInput","","formControlName","name"],[4,"ngIf"],["matInput","","type","number","formControlName","minSalary"],["matTextPrefix",""],["matInput","","type","number","formControlName","maxSalary"],["class","range-error",4,"ngIf"],[1,"form-actions"],["type","button","mat-stroked-button","",3,"click"],["type","submit","mat-raised-button","","color","primary",3,"disabled"],[1,"range-error"]],template:function(r,o){if(r&1&&(k(0,"page-header"),h(1,"mat-card")(2,"mat-card-header")(3,"mat-card-title"),_(4),p()(),h(5,"mat-card-content"),N(6,hye,2,0,"div",0),h(7,"form",1),S("ngSubmit",function(){return o.onSubmit()}),h(8,"div",2)(9,"mat-form-field",3)(10,"mat-label"),_(11,"Range Name"),p(),k(12,"input",4),R(13,pye,2,0,"mat-error",5)(14,fye,2,0,"mat-error",5),p(),h(15,"mat-form-field",3)(16,"mat-label"),_(17,"Minimum Salary"),p(),k(18,"input",6),h(19,"span",7),_(20,"$\xA0"),p(),R(21,gye,2,0,"mat-error",5)(22,_ye,2,0,"mat-error",5),p(),h(23,"mat-form-field",3)(24,"mat-label"),_(25,"Maximum Salary"),p(),k(26,"input",8),h(27,"span",7),_(28,"$\xA0"),p(),R(29,bye,2,0,"mat-error",5)(30,vye,2,0,"mat-error",5),p(),R(31,yye,2,0,"mat-error",9),p(),h(32,"div",10)(33,"button",11),S("click",function(){return o.onCancel()}),_(34," Cancel "),p(),h(35,"button",12),_(36),p()()()()()),r&2){let a,s,l,c,d,m;g(4),H(o.getFormTitle()),g(2),L(o.loading?6:-1),g(),y("formGroup",o.salaryRangeForm),g(6),y("ngIf",(a=o.salaryRangeForm.get("name"))==null?null:a.hasError("required")),g(),y("ngIf",(s=o.salaryRangeForm.get("name"))==null?null:s.hasError("maxlength")),g(7),y("ngIf",(l=o.salaryRangeForm.get("minSalary"))==null?null:l.hasError("required")),g(),y("ngIf",(c=o.salaryRangeForm.get("minSalary"))==null?null:c.hasError("min")),g(7),y("ngIf",(d=o.salaryRangeForm.get("maxSalary"))==null?null:d.hasError("required")),g(),y("ngIf",(m=o.salaryRangeForm.get("maxSalary"))==null?null:m.hasError("min")),g(),y("ngIf",o.salaryRangeForm.hasError("salaryRangeInvalid")&&o.salaryRangeForm.touched),g(4),y("disabled",o.loading),g(),ve(" ",o.isEditMode?"Update":"Create"," ")}},dependencies:[gt,li,zn,Jr,Qi,cu,ei,Xr,Ki,Lr,ze,kt,$t,zt,Ut,Jt,Xt,$i,Oi,sn,xo,nu,rr,hn,Si,ki,pi,ni],styles:["mat-card[_ngcontent-%COMP%]{margin:16px;max-width:800px}mat-card-header[_ngcontent-%COMP%]{margin-bottom:16px;padding:16px;border-bottom:1px solid rgba(0,0,0,.12)}mat-card-header[_ngcontent-%COMP%] mat-card-title[_ngcontent-%COMP%]{font-size:20px;font-weight:500;margin:0}mat-card-content[_ngcontent-%COMP%]{padding:16px;position:relative}.loading-overlay[_ngcontent-%COMP%]{position:absolute;inset:0;background-color:#fffc;display:flex;align-items:center;justify-content:center;z-index:1000}.form-section[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:16px;margin-bottom:24px}.form-section[_ngcontent-%COMP%] .full-width[_ngcontent-%COMP%]{width:100%}.form-section[_ngcontent-%COMP%] .range-error[_ngcontent-%COMP%]{color:#f44336;font-size:12px;margin-top:-8px}.form-actions[_ngcontent-%COMP%]{display:flex;gap:12px;justify-content:flex-end;padding-top:16px;border-top:1px solid rgba(0,0,0,.12)}"]});let t=n;return t})();var xye=["*",[["mat-chip-avatar"],["","matChipAvatar",""]],[["mat-chip-trailing-icon"],["","matChipRemove",""],["","matChipTrailingIcon",""]]],Cye=["*","mat-chip-avatar, [matChipAvatar]","mat-chip-trailing-icon,[matChipRemove],[matChipTrailingIcon]"];function wye(t,n){t&1&&(h(0,"span",3),oe(1,1),p())}function Dye(t,n){t&1&&(h(0,"span",6),oe(1,2),p())}var Eye=["*"];var Mye=new T("mat-chips-default-options",{providedIn:"root",factory:()=>({separatorKeyCodes:[13]})}),e6=new T("MatChipAvatar"),t6=new T("MatChipTrailingIcon"),i6=new T("MatChipEdit"),n6=new T("MatChipRemove"),o6=new T("MatChip"),r6=(()=>{class t{_elementRef=u(q);_parentChip=u(o6);isInteractive=!0;_isPrimary=!0;_isLeading=!1;get disabled(){return this._disabled||this._parentChip?.disabled||!1}set disabled(e){this._disabled=e}_disabled=!1;tabIndex=-1;_allowFocusWhenDisabled=!1;_getDisabledAttribute(){return this.disabled&&!this._allowFocusWhenDisabled?"":null}_getTabindex(){return this.disabled&&!this._allowFocusWhenDisabled||!this.isInteractive?null:this.tabIndex.toString()}constructor(){u(ut).load(Di),this._elementRef.nativeElement.nodeName==="BUTTON"&&this._elementRef.nativeElement.setAttribute("type","button")}focus(){this._elementRef.nativeElement.focus()}_handleClick(e){!this.disabled&&this.isInteractive&&this._isPrimary&&(e.preventDefault(),this._parentChip._handlePrimaryActionInteraction())}_handleKeydown(e){(e.keyCode===13||e.keyCode===32)&&!this.disabled&&this.isInteractive&&this._isPrimary&&!this._parentChip._isEditing&&(e.preventDefault(),this._parentChip._handlePrimaryActionInteraction())}static \u0275fac=function(i){return new(i||t)};static \u0275dir=F({type:t,selectors:[["","matChipAction",""]],hostAttrs:[1,"mdc-evolution-chip__action","mat-mdc-chip-action"],hostVars:11,hostBindings:function(i,r){i&1&&S("click",function(a){return r._handleClick(a)})("keydown",function(a){return r._handleKeydown(a)}),i&2&&(X("tabindex",r._getTabindex())("disabled",r._getDisabledAttribute())("aria-disabled",r.disabled),G("mdc-evolution-chip__action--primary",r._isPrimary)("mdc-evolution-chip__action--presentational",!r.isInteractive)("mdc-evolution-chip__action--secondary",!r._isPrimary)("mdc-evolution-chip__action--trailing",!r._isPrimary&&!r._isLeading))},inputs:{isInteractive:"isInteractive",disabled:[2,"disabled","disabled",V],tabIndex:[2,"tabIndex","tabIndex",e=>e==null?-1:ct(e)],_allowFocusWhenDisabled:"_allowFocusWhenDisabled"}})}return t})();var cA=(()=>{class t{_changeDetectorRef=u(ye);_elementRef=u(q);_tagName=u(ZM);_ngZone=u(ae);_focusMonitor=u(Yt);_globalRippleOptions=u(Cs,{optional:!0});_document=u(ge);_onFocus=new z;_onBlur=new z;_isBasicChip;role=null;_hasFocusInternal=!1;_pendingFocus;_actionChanges;_animationsDisabled=Ye();_allLeadingIcons;_allTrailingIcons;_allEditIcons;_allRemoveIcons;_hasFocus(){return this._hasFocusInternal}id=u(Ze).getId("mat-mdc-chip-");ariaLabel=null;ariaDescription=null;_chipListDisabled=!1;_hadFocusOnRemove=!1;_textElement;get value(){return this._value!==void 0?this._value:this._textElement.textContent.trim()}set value(e){this._value=e}_value;color;removable=!0;highlighted=!1;disableRipple=!1;get disabled(){return this._disabled||this._chipListDisabled}set disabled(e){this._disabled=e}_disabled=!1;removed=new U;destroyed=new U;basicChipAttrName="mat-basic-chip";leadingIcon;editIcon;trailingIcon;removeIcon;primaryAction;_rippleLoader=u(Z0);_injector=u(de);constructor(){let e=u(ut);e.load(Di),e.load(Qr),this._monitorFocus(),this._rippleLoader?.configureRipple(this._elementRef.nativeElement,{className:"mat-mdc-chip-ripple",disabled:this._isRippleDisabled()})}ngOnInit(){this._isBasicChip=this._elementRef.nativeElement.hasAttribute(this.basicChipAttrName)||this._tagName.toLowerCase()===this.basicChipAttrName}ngAfterViewInit(){this._textElement=this._elementRef.nativeElement.querySelector(".mat-mdc-chip-action-label"),this._pendingFocus&&(this._pendingFocus=!1,this.focus())}ngAfterContentInit(){this._actionChanges=Je(this._allLeadingIcons.changes,this._allTrailingIcons.changes,this._allEditIcons.changes,this._allRemoveIcons.changes).subscribe(()=>this._changeDetectorRef.markForCheck())}ngDoCheck(){this._rippleLoader.setDisabled(this._elementRef.nativeElement,this._isRippleDisabled())}ngOnDestroy(){this._focusMonitor.stopMonitoring(this._elementRef),this._rippleLoader?.destroyRipple(this._elementRef.nativeElement),this._actionChanges?.unsubscribe(),this.destroyed.emit({chip:this}),this.destroyed.complete()}remove(){this.removable&&(this._hadFocusOnRemove=this._hasFocus(),this.removed.emit({chip:this}))}_isRippleDisabled(){return this.disabled||this.disableRipple||this._animationsDisabled||this._isBasicChip||!this._hasInteractiveActions()||!!this._globalRippleOptions?.disabled}_hasTrailingIcon(){return!!(this.trailingIcon||this.removeIcon)}_handleKeydown(e){(e.keyCode===8&&!e.repeat||e.keyCode===46)&&(e.preventDefault(),this.remove())}focus(){this.disabled||(this.primaryAction?this.primaryAction.focus():this._pendingFocus=!0)}_getSourceAction(e){return this._getActions().find(i=>{let r=i._elementRef.nativeElement;return r===e||r.contains(e)})}_getActions(){let e=[];return this.editIcon&&e.push(this.editIcon),this.primaryAction&&e.push(this.primaryAction),this.removeIcon&&e.push(this.removeIcon),this.trailingIcon&&e.push(this.trailingIcon),e}_handlePrimaryActionInteraction(){}_hasInteractiveActions(){return this._getActions().some(e=>e.isInteractive)}_edit(e){}_monitorFocus(){this._focusMonitor.monitor(this._elementRef,!0).subscribe(e=>{let i=e!==null;i!==this._hasFocusInternal&&(this._hasFocusInternal=i,i?this._onFocus.next({chip:this}):(this._changeDetectorRef.markForCheck(),setTimeout(()=>this._ngZone.run(()=>this._onBlur.next({chip:this})))))})}static \u0275fac=function(i){return new(i||t)};static \u0275cmp=E({type:t,selectors:[["mat-basic-chip"],["","mat-basic-chip",""],["mat-chip"],["","mat-chip",""]],contentQueries:function(i,r,o){if(i&1&&(xe(o,e6,5),xe(o,i6,5),xe(o,t6,5),xe(o,n6,5),xe(o,e6,5),xe(o,t6,5),xe(o,i6,5),xe(o,n6,5)),i&2){let a;B(a=j())&&(r.leadingIcon=a.first),B(a=j())&&(r.editIcon=a.first),B(a=j())&&(r.trailingIcon=a.first),B(a=j())&&(r.removeIcon=a.first),B(a=j())&&(r._allLeadingIcons=a),B(a=j())&&(r._allTrailingIcons=a),B(a=j())&&(r._allEditIcons=a),B(a=j())&&(r._allRemoveIcons=a)}},viewQuery:function(i,r){if(i&1&&ie(r6,5),i&2){let o;B(o=j())&&(r.primaryAction=o.first)}},hostAttrs:[1,"mat-mdc-chip"],hostVars:31,hostBindings:function(i,r){i&1&&S("keydown",function(a){return r._handleKeydown(a)}),i&2&&(si("id",r.id),X("role",r.role)("aria-label",r.ariaLabel),it("mat-"+(r.color||"primary")),G("mdc-evolution-chip",!r._isBasicChip)("mdc-evolution-chip--disabled",r.disabled)("mdc-evolution-chip--with-trailing-action",r._hasTrailingIcon())("mdc-evolution-chip--with-primary-graphic",r.leadingIcon)("mdc-evolution-chip--with-primary-icon",r.leadingIcon)("mdc-evolution-chip--with-avatar",r.leadingIcon)("mat-mdc-chip-with-avatar",r.leadingIcon)("mat-mdc-chip-highlighted",r.highlighted)("mat-mdc-chip-disabled",r.disabled)("mat-mdc-basic-chip",r._isBasicChip)("mat-mdc-standard-chip",!r._isBasicChip)("mat-mdc-chip-with-trailing-icon",r._hasTrailingIcon())("_mat-animation-noopable",r._animationsDisabled))},inputs:{role:"role",id:"id",ariaLabel:[0,"aria-label","ariaLabel"],ariaDescription:[0,"aria-description","ariaDescription"],value:"value",color:"color",removable:[2,"removable","removable",V],highlighted:[2,"highlighted","highlighted",V],disableRipple:[2,"disableRipple","disableRipple",V],disabled:[2,"disabled","disabled",V]},outputs:{removed:"removed",destroyed:"destroyed"},exportAs:["matChip"],features:[Ce([{provide:o6,useExisting:t}])],ngContentSelectors:Cye,decls:8,vars:3,consts:[[1,"mat-mdc-chip-focus-overlay"],[1,"mdc-evolution-chip__cell","mdc-evolution-chip__cell--primary"],["matChipAction","",3,"isInteractive"],[1,"mdc-evolution-chip__graphic","mat-mdc-chip-graphic"],[1,"mdc-evolution-chip__text-label","mat-mdc-chip-action-label"],[1,"mat-mdc-chip-primary-focus-indicator","mat-focus-indicator"],[1,"mdc-evolution-chip__cell","mdc-evolution-chip__cell--trailing"]],template:function(i,r){i&1&&(Me(xye),k(0,"span",0),h(1,"span",1)(2,"span",2),N(3,wye,2,0,"span",3),h(4,"span",4),oe(5),k(6,"span",5),p()()(),N(7,Dye,2,0,"span",6)),i&2&&(g(2),y("isInteractive",!1),g(),L(r.leadingIcon?3:-1),g(4),L(r._hasTrailingIcon()?7:-1))},dependencies:[r6],styles:[`.mdc-evolution-chip,.mdc-evolution-chip__cell,.mdc-evolution-chip__action{display:inline-flex;align-items:center}.mdc-evolution-chip{position:relative;max-width:100%}.mdc-evolution-chip__cell,.mdc-evolution-chip__action{height:100%}.mdc-evolution-chip__cell--primary{flex-basis:100%;overflow-x:hidden}.mdc-evolution-chip__cell--trailing{flex:1 0 auto}.mdc-evolution-chip__action{align-items:center;background:none;border:none;box-sizing:content-box;cursor:pointer;display:inline-flex;justify-content:center;outline:none;padding:0;text-decoration:none;color:inherit}.mdc-evolution-chip__action--presentational{cursor:auto}.mdc-evolution-chip--disabled,.mdc-evolution-chip__action:disabled{pointer-events:none}@media(forced-colors: active){.mdc-evolution-chip--disabled,.mdc-evolution-chip__action:disabled{forced-color-adjust:none}}.mdc-evolution-chip__action--primary{font:inherit;letter-spacing:inherit;white-space:inherit;overflow-x:hidden}.mat-mdc-standard-chip .mdc-evolution-chip__action--primary::before{border-width:var(--mat-chip-outline-width, 1px);border-radius:var(--mat-chip-container-shape-radius, 8px);box-sizing:border-box;content:"";height:100%;left:0;position:absolute;pointer-events:none;top:0;width:100%;z-index:1;border-style:solid}.mat-mdc-standard-chip .mdc-evolution-chip__action--primary{padding-left:12px;padding-right:12px}.mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic .mdc-evolution-chip__action--primary{padding-left:0;padding-right:12px}[dir=rtl] .mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic .mdc-evolution-chip__action--primary{padding-left:12px;padding-right:0}.mat-mdc-standard-chip:not(.mdc-evolution-chip--disabled) .mdc-evolution-chip__action--primary::before{border-color:var(--mat-chip-outline-color, var(--mat-sys-outline))}.mdc-evolution-chip__action--primary:not(.mdc-evolution-chip__action--presentational):not(.mdc-ripple-upgraded):focus::before{border-color:var(--mat-chip-focus-outline-color, var(--mat-sys-on-surface-variant))}.mat-mdc-standard-chip.mdc-evolution-chip--disabled .mdc-evolution-chip__action--primary::before{border-color:var(--mat-chip-disabled-outline-color, color-mix(in srgb, var(--mat-sys-on-surface) 12%, transparent))}.mat-mdc-standard-chip.mdc-evolution-chip--selected .mdc-evolution-chip__action--primary::before{border-width:var(--mat-chip-flat-selected-outline-width, 0)}.mat-mdc-basic-chip .mdc-evolution-chip__action--primary{font:inherit}.mat-mdc-standard-chip.mdc-evolution-chip--with-leading-action .mdc-evolution-chip__action--primary{padding-left:0;padding-right:12px}[dir=rtl] .mat-mdc-standard-chip.mdc-evolution-chip--with-leading-action .mdc-evolution-chip__action--primary{padding-left:12px;padding-right:0}.mat-mdc-standard-chip.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--primary{padding-left:12px;padding-right:0}[dir=rtl] .mat-mdc-standard-chip.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--primary{padding-left:0;padding-right:12px}.mat-mdc-standard-chip.mdc-evolution-chip--with-leading-action.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--primary{padding-left:0;padding-right:0}.mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--primary{padding-left:0;padding-right:0}[dir=rtl] .mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--primary{padding-left:0;padding-right:0}.mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic .mdc-evolution-chip__action--primary{padding-left:0;padding-right:12px}[dir=rtl] .mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic .mdc-evolution-chip__action--primary{padding-left:12px;padding-right:0}.mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--primary{padding-left:0;padding-right:0}[dir=rtl] .mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--primary{padding-left:0;padding-right:0}.mdc-evolution-chip__action--secondary{position:relative;overflow:visible}.mat-mdc-standard-chip:not(.mdc-evolution-chip--disabled) .mdc-evolution-chip__action--secondary{color:var(--mat-chip-with-trailing-icon-trailing-icon-color, var(--mat-sys-on-surface-variant))}.mat-mdc-standard-chip.mdc-evolution-chip--disabled .mdc-evolution-chip__action--secondary{color:var(--mat-chip-with-trailing-icon-disabled-trailing-icon-color, var(--mat-sys-on-surface))}.mat-mdc-standard-chip.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--secondary{padding-left:8px;padding-right:8px}.mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--secondary{padding-left:8px;padding-right:8px}.mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--secondary{padding-left:8px;padding-right:8px}[dir=rtl] .mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--secondary{padding-left:8px;padding-right:8px}.mdc-evolution-chip__text-label{-webkit-user-select:none;user-select:none;white-space:nowrap;text-overflow:ellipsis;overflow:hidden}.mat-mdc-standard-chip .mdc-evolution-chip__text-label{font-family:var(--mat-chip-label-text-font, var(--mat-sys-label-large-font));line-height:var(--mat-chip-label-text-line-height, var(--mat-sys-label-large-line-height));font-size:var(--mat-chip-label-text-size, var(--mat-sys-label-large-size));font-weight:var(--mat-chip-label-text-weight, var(--mat-sys-label-large-weight));letter-spacing:var(--mat-chip-label-text-tracking, var(--mat-sys-label-large-tracking))}.mat-mdc-standard-chip:not(.mdc-evolution-chip--disabled) .mdc-evolution-chip__text-label{color:var(--mat-chip-label-text-color, var(--mat-sys-on-surface-variant))}.mat-mdc-standard-chip.mdc-evolution-chip--selected:not(.mdc-evolution-chip--disabled) .mdc-evolution-chip__text-label{color:var(--mat-chip-selected-label-text-color, var(--mat-sys-on-secondary-container))}.mat-mdc-standard-chip.mdc-evolution-chip--disabled .mdc-evolution-chip__text-label,.mat-mdc-standard-chip.mdc-evolution-chip--selected.mdc-evolution-chip--disabled .mdc-evolution-chip__text-label{color:var(--mat-chip-disabled-label-text-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent))}.mdc-evolution-chip__graphic{align-items:center;display:inline-flex;justify-content:center;overflow:hidden;pointer-events:none;position:relative;flex:1 0 auto}.mat-mdc-standard-chip .mdc-evolution-chip__graphic{width:var(--mat-chip-with-avatar-avatar-size, 24px);height:var(--mat-chip-with-avatar-avatar-size, 24px);font-size:var(--mat-chip-with-avatar-avatar-size, 24px)}.mdc-evolution-chip--selecting .mdc-evolution-chip__graphic{transition:width 150ms 0ms cubic-bezier(0.4, 0, 0.2, 1)}.mdc-evolution-chip--selectable:not(.mdc-evolution-chip--selected):not(.mdc-evolution-chip--with-primary-icon) .mdc-evolution-chip__graphic{width:0}.mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic .mdc-evolution-chip__graphic{padding-left:6px;padding-right:6px}.mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic .mdc-evolution-chip__graphic{padding-left:4px;padding-right:8px}[dir=rtl] .mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic .mdc-evolution-chip__graphic{padding-left:8px;padding-right:4px}.mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__graphic{padding-left:6px;padding-right:6px}.mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__graphic{padding-left:4px;padding-right:8px}[dir=rtl] .mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__graphic{padding-left:8px;padding-right:4px}.mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-leading-action .mdc-evolution-chip__graphic{padding-left:0}.mdc-evolution-chip__checkmark{position:absolute;opacity:0;top:50%;left:50%;height:20px;width:20px}.mat-mdc-standard-chip:not(.mdc-evolution-chip--disabled) .mdc-evolution-chip__checkmark{color:var(--mat-chip-with-icon-selected-icon-color, var(--mat-sys-on-secondary-container))}.mat-mdc-standard-chip.mdc-evolution-chip--disabled .mdc-evolution-chip__checkmark{color:var(--mat-chip-with-icon-disabled-icon-color, var(--mat-sys-on-surface))}.mdc-evolution-chip--selecting .mdc-evolution-chip__checkmark{transition:transform 150ms 0ms cubic-bezier(0.4, 0, 0.2, 1);transform:translate(-75%, -50%)}.mdc-evolution-chip--selected .mdc-evolution-chip__checkmark{transform:translate(-50%, -50%);opacity:1}.mdc-evolution-chip__checkmark-svg{display:block}.mdc-evolution-chip__checkmark-path{stroke-width:2px;stroke-dasharray:29.7833385;stroke-dashoffset:29.7833385;stroke:currentColor}.mdc-evolution-chip--selecting .mdc-evolution-chip__checkmark-path{transition:stroke-dashoffset 150ms 45ms cubic-bezier(0.4, 0, 0.2, 1)}.mdc-evolution-chip--selected .mdc-evolution-chip__checkmark-path{stroke-dashoffset:0}@media(forced-colors: active){.mdc-evolution-chip__checkmark-path{stroke:CanvasText !important}}.mat-mdc-standard-chip .mdc-evolution-chip__icon--trailing{height:18px;width:18px;font-size:18px}.mdc-evolution-chip--disabled .mdc-evolution-chip__icon--trailing.mat-mdc-chip-remove{opacity:calc(var(--mat-chip-trailing-action-opacity, 1)*var(--mat-chip-with-trailing-icon-disabled-trailing-icon-opacity, 0.38))}.mdc-evolution-chip--disabled .mdc-evolution-chip__icon--trailing.mat-mdc-chip-remove:focus{opacity:calc(var(--mat-chip-trailing-action-focus-opacity, 1)*var(--mat-chip-with-trailing-icon-disabled-trailing-icon-opacity, 0.38))}.mat-mdc-standard-chip{border-radius:var(--mat-chip-container-shape-radius, 8px);height:var(--mat-chip-container-height, 32px)}.mat-mdc-standard-chip:not(.mdc-evolution-chip--disabled){background-color:var(--mat-chip-elevated-container-color, transparent)}.mat-mdc-standard-chip.mdc-evolution-chip--disabled{background-color:var(--mat-chip-elevated-disabled-container-color)}.mat-mdc-standard-chip.mdc-evolution-chip--selected:not(.mdc-evolution-chip--disabled){background-color:var(--mat-chip-elevated-selected-container-color, var(--mat-sys-secondary-container))}.mat-mdc-standard-chip.mdc-evolution-chip--selected.mdc-evolution-chip--disabled{background-color:var(--mat-chip-flat-disabled-selected-container-color, color-mix(in srgb, var(--mat-sys-on-surface) 12%, transparent))}@media(forced-colors: active){.mat-mdc-standard-chip{outline:solid 1px}}.mat-mdc-standard-chip .mdc-evolution-chip__icon--primary{border-radius:var(--mat-chip-with-avatar-avatar-shape-radius, 24px);width:var(--mat-chip-with-icon-icon-size, 18px);height:var(--mat-chip-with-icon-icon-size, 18px);font-size:var(--mat-chip-with-icon-icon-size, 18px)}.mdc-evolution-chip--selected .mdc-evolution-chip__icon--primary{opacity:0}.mat-mdc-standard-chip:not(.mdc-evolution-chip--disabled) .mdc-evolution-chip__icon--primary{color:var(--mat-chip-with-icon-icon-color, var(--mat-sys-on-surface-variant))}.mat-mdc-standard-chip.mdc-evolution-chip--disabled .mdc-evolution-chip__icon--primary{color:var(--mat-chip-with-icon-disabled-icon-color, var(--mat-sys-on-surface))}.mat-mdc-chip-highlighted{--mat-chip-with-icon-icon-color: var(--mat-chip-with-icon-selected-icon-color, var(--mat-sys-on-secondary-container));--mat-chip-elevated-container-color: var(--mat-chip-elevated-selected-container-color, var(--mat-sys-secondary-container));--mat-chip-label-text-color: var(--mat-chip-selected-label-text-color, var(--mat-sys-on-secondary-container));--mat-chip-outline-width: var(--mat-chip-flat-selected-outline-width, 0)}.mat-mdc-chip-focus-overlay{background:var(--mat-chip-focus-state-layer-color, var(--mat-sys-on-surface-variant))}.mat-mdc-chip-selected .mat-mdc-chip-focus-overlay,.mat-mdc-chip-highlighted .mat-mdc-chip-focus-overlay{background:var(--mat-chip-selected-focus-state-layer-color, var(--mat-sys-on-secondary-container))}.mat-mdc-chip:hover .mat-mdc-chip-focus-overlay{background:var(--mat-chip-hover-state-layer-color, var(--mat-sys-on-surface-variant));opacity:var(--mat-chip-hover-state-layer-opacity, var(--mat-sys-hover-state-layer-opacity))}.mat-mdc-chip-focus-overlay .mat-mdc-chip-selected:hover,.mat-mdc-chip-highlighted:hover .mat-mdc-chip-focus-overlay{background:var(--mat-chip-selected-hover-state-layer-color, var(--mat-sys-on-secondary-container));opacity:var(--mat-chip-selected-hover-state-layer-opacity, var(--mat-sys-hover-state-layer-opacity))}.mat-mdc-chip.cdk-focused .mat-mdc-chip-focus-overlay{background:var(--mat-chip-focus-state-layer-color, var(--mat-sys-on-surface-variant));opacity:var(--mat-chip-focus-state-layer-opacity, var(--mat-sys-focus-state-layer-opacity))}.mat-mdc-chip-selected.cdk-focused .mat-mdc-chip-focus-overlay,.mat-mdc-chip-highlighted.cdk-focused .mat-mdc-chip-focus-overlay{background:var(--mat-chip-selected-focus-state-layer-color, var(--mat-sys-on-secondary-container));opacity:var(--mat-chip-selected-focus-state-layer-opacity, var(--mat-sys-focus-state-layer-opacity))}.mdc-evolution-chip--disabled:not(.mdc-evolution-chip--selected) .mat-mdc-chip-avatar{opacity:var(--mat-chip-with-avatar-disabled-avatar-opacity, 0.38)}.mdc-evolution-chip--disabled .mdc-evolution-chip__icon--trailing{opacity:var(--mat-chip-with-trailing-icon-disabled-trailing-icon-opacity, 0.38)}.mdc-evolution-chip--disabled.mdc-evolution-chip--selected .mdc-evolution-chip__checkmark{opacity:var(--mat-chip-with-icon-disabled-icon-opacity, 0.38)}.mat-mdc-standard-chip.mdc-evolution-chip--disabled{opacity:var(--mat-chip-disabled-container-opacity, 1)}.mat-mdc-standard-chip.mdc-evolution-chip--selected .mdc-evolution-chip__icon--trailing,.mat-mdc-standard-chip.mat-mdc-chip-highlighted .mdc-evolution-chip__icon--trailing{color:var(--mat-chip-selected-trailing-icon-color, var(--mat-sys-on-secondary-container))}.mat-mdc-standard-chip.mdc-evolution-chip--selected.mdc-evolution-chip--disabled .mdc-evolution-chip__icon--trailing,.mat-mdc-standard-chip.mat-mdc-chip-highlighted.mdc-evolution-chip--disabled .mdc-evolution-chip__icon--trailing{color:var(--mat-chip-selected-disabled-trailing-icon-color, var(--mat-sys-on-surface))}.mat-mdc-chip-edit,.mat-mdc-chip-remove{opacity:var(--mat-chip-trailing-action-opacity, 1)}.mat-mdc-chip-edit:focus,.mat-mdc-chip-remove:focus{opacity:var(--mat-chip-trailing-action-focus-opacity, 1)}.mat-mdc-chip-edit::after,.mat-mdc-chip-remove::after{background-color:var(--mat-chip-trailing-action-state-layer-color, var(--mat-sys-on-surface-variant))}.mat-mdc-chip-edit:hover::after,.mat-mdc-chip-remove:hover::after{opacity:var(--mat-chip-trailing-action-hover-state-layer-opacity, var(--mat-sys-hover-state-layer-opacity))}.mat-mdc-chip-edit:focus::after,.mat-mdc-chip-remove:focus::after{opacity:var(--mat-chip-trailing-action-focus-state-layer-opacity, var(--mat-sys-focus-state-layer-opacity))}.mat-mdc-chip-selected .mat-mdc-chip-remove::after,.mat-mdc-chip-highlighted .mat-mdc-chip-remove::after{background-color:var(--mat-chip-selected-trailing-action-state-layer-color, var(--mat-sys-on-secondary-container))}.mat-mdc-standard-chip{-webkit-tap-highlight-color:rgba(0,0,0,0)}.mat-mdc-standard-chip .mdc-evolution-chip__cell--primary,.mat-mdc-standard-chip .mdc-evolution-chip__action--primary,.mat-mdc-standard-chip .mat-mdc-chip-action-label{overflow:visible}.mat-mdc-standard-chip .mat-mdc-chip-graphic,.mat-mdc-standard-chip .mat-mdc-chip-trailing-icon{box-sizing:content-box}.mat-mdc-standard-chip._mat-animation-noopable,.mat-mdc-standard-chip._mat-animation-noopable .mdc-evolution-chip__graphic,.mat-mdc-standard-chip._mat-animation-noopable .mdc-evolution-chip__checkmark,.mat-mdc-standard-chip._mat-animation-noopable .mdc-evolution-chip__checkmark-path{transition-duration:1ms;animation-duration:1ms}.mat-mdc-chip-focus-overlay{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none;opacity:0;border-radius:inherit;transition:opacity 150ms linear}._mat-animation-noopable .mat-mdc-chip-focus-overlay{transition:none}.mat-mdc-basic-chip .mat-mdc-chip-focus-overlay{display:none}.mat-mdc-chip .mat-ripple.mat-mdc-chip-ripple{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none;border-radius:inherit}.mat-mdc-chip-avatar{text-align:center;line-height:1;color:var(--mat-chip-with-icon-icon-color, currentColor)}.mat-mdc-chip{position:relative;z-index:0}.mat-mdc-chip-action-label{text-align:left;z-index:1}[dir=rtl] .mat-mdc-chip-action-label{text-align:right}.mat-mdc-chip.mdc-evolution-chip--with-trailing-action .mat-mdc-chip-action-label{position:relative}.mat-mdc-chip-action-label .mat-mdc-chip-primary-focus-indicator{position:absolute;top:0;right:0;bottom:0;left:0;pointer-events:none}.mat-mdc-chip-action-label .mat-focus-indicator::before{margin:calc(calc(var(--mat-focus-indicator-border-width, 3px) + 2px)*-1)}.mat-mdc-chip-edit::before,.mat-mdc-chip-remove::before{margin:calc(var(--mat-focus-indicator-border-width, 3px)*-1);left:8px;right:8px}.mat-mdc-chip-edit::after,.mat-mdc-chip-remove::after{content:"";display:block;opacity:0;position:absolute;top:-3px;bottom:-3px;left:5px;right:5px;border-radius:50%;box-sizing:border-box;padding:12px;margin:-12px;background-clip:content-box}.mat-mdc-chip-edit .mat-icon,.mat-mdc-chip-remove .mat-icon{width:18px;height:18px;font-size:18px;box-sizing:content-box}.mat-chip-edit-input{cursor:text;display:inline-block;color:inherit;outline:0}@media(forced-colors: active){.mat-mdc-chip-selected:not(.mat-mdc-chip-multiple){outline-width:3px}}.mat-mdc-chip-action:focus .mat-focus-indicator::before{content:""}.mdc-evolution-chip__icon,.mat-mdc-chip-edit .mat-icon,.mat-mdc-chip-remove .mat-icon{min-height:fit-content}img.mdc-evolution-chip__icon{min-height:0} +`],encapsulation:2,changeDetection:0})}return t})();var a6=(()=>{class t{_elementRef=u(q);_changeDetectorRef=u(ye);_dir=u(Vt,{optional:!0});_lastDestroyedFocusedChipIndex=null;_keyManager;_destroyed=new z;_defaultRole="presentation";get chipFocusChanges(){return this._getChipStream(e=>e._onFocus)}get chipDestroyedChanges(){return this._getChipStream(e=>e.destroyed)}get chipRemovedChanges(){return this._getChipStream(e=>e.removed)}get disabled(){return this._disabled}set disabled(e){this._disabled=e,this._syncChipsState()}_disabled=!1;get empty(){return!this._chips||this._chips.length===0}get role(){return this._explicitRole?this._explicitRole:this.empty?null:this._defaultRole}tabIndex=0;set role(e){this._explicitRole=e}_explicitRole=null;get focused(){return this._hasFocusedChip()}_chips;_chipActions=new pr;constructor(){}ngAfterViewInit(){this._setUpFocusManagement(),this._trackChipSetChanges(),this._trackDestroyedFocusedChip()}ngOnDestroy(){this._keyManager?.destroy(),this._chipActions.destroy(),this._destroyed.next(),this._destroyed.complete()}_hasFocusedChip(){return this._chips&&this._chips.some(e=>e._hasFocus())}_syncChipsState(){this._chips?.forEach(e=>{e._chipListDisabled=this._disabled,e._changeDetectorRef.markForCheck()})}focus(){}_handleKeydown(e){this._originatesFromChip(e)&&this._keyManager.onKeydown(e)}_isValidIndex(e){return e>=0&&ethis._elementRef.nativeElement.tabIndex=e))}_getChipStream(e){return this._chips.changes.pipe(He(null),$e(()=>Je(...this._chips.map(e))))}_originatesFromChip(e){let i=e.target;for(;i&&i!==this._elementRef.nativeElement;){if(i.classList.contains("mat-mdc-chip"))return!0;i=i.parentElement}return!1}_setUpFocusManagement(){this._chips.changes.pipe(He(this._chips)).subscribe(e=>{let i=[];e.forEach(r=>r._getActions().forEach(o=>i.push(o))),this._chipActions.reset(i),this._chipActions.notifyOnChanges()}),this._keyManager=new bs(this._chipActions).withVerticalOrientation().withHorizontalOrientation(this._dir?this._dir.value:"ltr").withHomeAndEnd().skipPredicate(e=>this._skipPredicate(e)),this.chipFocusChanges.pipe(Te(this._destroyed)).subscribe(({chip:e})=>{let i=e._getSourceAction(document.activeElement);i&&this._keyManager.updateActiveItem(i)}),this._dir?.change.pipe(Te(this._destroyed)).subscribe(e=>this._keyManager.withHorizontalOrientation(e))}_skipPredicate(e){return!e.isInteractive||e.disabled}_trackChipSetChanges(){this._chips.changes.pipe(He(null),Te(this._destroyed)).subscribe(()=>{this.disabled&&Promise.resolve().then(()=>this._syncChipsState()),this._redirectDestroyedChipFocus()})}_trackDestroyedFocusedChip(){this.chipDestroyedChanges.pipe(Te(this._destroyed)).subscribe(e=>{let r=this._chips.toArray().indexOf(e.chip),o=e.chip._hasFocus(),a=e.chip._hadFocusOnRemove&&this._keyManager.activeItem&&e.chip._getActions().includes(this._keyManager.activeItem),s=o||a;this._isValidIndex(r)&&s&&(this._lastDestroyedFocusedChipIndex=r)})}_redirectDestroyedChipFocus(){if(this._lastDestroyedFocusedChipIndex!=null){if(this._chips.length){let e=Math.min(this._lastDestroyedFocusedChipIndex,this._chips.length-1),i=this._chips.toArray()[e];i.disabled?this._chips.length===1?this.focus():this._keyManager.setPreviousItemActive():i.focus()}else this.focus();this._lastDestroyedFocusedChipIndex=null}}static \u0275fac=function(i){return new(i||t)};static \u0275cmp=E({type:t,selectors:[["mat-chip-set"]],contentQueries:function(i,r,o){if(i&1&&xe(o,cA,5),i&2){let a;B(a=j())&&(r._chips=a)}},hostAttrs:[1,"mat-mdc-chip-set","mdc-evolution-chip-set"],hostVars:1,hostBindings:function(i,r){i&1&&S("keydown",function(a){return r._handleKeydown(a)}),i&2&&X("role",r.role)},inputs:{disabled:[2,"disabled","disabled",V],role:"role",tabIndex:[2,"tabIndex","tabIndex",e=>e==null?0:ct(e)]},ngContentSelectors:Eye,decls:2,vars:0,consts:[["role","presentation",1,"mdc-evolution-chip-set__chips"]],template:function(i,r){i&1&&(Me(),ft(0,"div",0),oe(1),vt())},styles:[`.mat-mdc-chip-set{display:flex}.mat-mdc-chip-set:focus{outline:none}.mat-mdc-chip-set .mdc-evolution-chip-set__chips{min-width:100%;margin-left:-8px;margin-right:0}.mat-mdc-chip-set .mdc-evolution-chip{margin:4px 0 4px 8px}[dir=rtl] .mat-mdc-chip-set .mdc-evolution-chip-set__chips{margin-left:0;margin-right:-8px}[dir=rtl] .mat-mdc-chip-set .mdc-evolution-chip{margin-left:0;margin-right:8px}.mdc-evolution-chip-set__chips{display:flex;flex-flow:wrap;min-width:0}.mat-mdc-chip-set-stacked{flex-direction:column;align-items:flex-start}.mat-mdc-chip-set-stacked .mat-mdc-chip{width:100%}.mat-mdc-chip-set-stacked .mdc-evolution-chip__graphic{flex-grow:0}.mat-mdc-chip-set-stacked .mdc-evolution-chip__action--primary{flex-basis:100%;justify-content:start}input.mat-mdc-chip-input{flex:1 0 150px;margin-left:8px}[dir=rtl] input.mat-mdc-chip-input{margin-left:0;margin-right:8px}.mat-mdc-form-field:not(.mat-form-field-hide-placeholder) input.mat-mdc-chip-input::placeholder{opacity:1}.mat-mdc-form-field:not(.mat-form-field-hide-placeholder) input.mat-mdc-chip-input::-moz-placeholder{opacity:1}.mat-mdc-form-field:not(.mat-form-field-hide-placeholder) input.mat-mdc-chip-input::-webkit-input-placeholder{opacity:1}.mat-mdc-form-field:not(.mat-form-field-hide-placeholder) input.mat-mdc-chip-input:-ms-input-placeholder{opacity:1}.mat-mdc-chip-set+input.mat-mdc-chip-input{margin-left:0;margin-right:0} +`],encapsulation:2,changeDetection:0})}return t})();var s6=(()=>{class t{static \u0275fac=function(i){return new(i||t)};static \u0275mod=ee({type:t});static \u0275inj=J({providers:[dl,{provide:Mye,useValue:{separatorKeyCodes:[13]}}],imports:[we,yo,we]})}return t})();var l6=new T("CdkAccordion");var c6=(()=>{class t{accordion=u(l6,{optional:!0,skipSelf:!0});_changeDetectorRef=u(ye);_expansionDispatcher=u(au);_openCloseAllSubscription=ke.EMPTY;closed=new U;opened=new U;destroyed=new U;expandedChange=new U;id=u(Ze).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 i=this.accordion?this.accordion.id:this.id;this._expansionDispatcher.notify(this.id,i)}else this.closed.emit();this._changeDetectorRef.markForCheck()}}_expanded=!1;get disabled(){return this._disabled()}set disabled(e){this._disabled.set(e)}_disabled=he(!1);_removeUniqueSelectionListener=()=>{};constructor(){}ngOnInit(){this._removeUniqueSelectionListener=this._expansionDispatcher.listen((e,i)=>{this.accordion&&!this.accordion.multi&&this.accordion.id===i&&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(i){return new(i||t)};static \u0275dir=F({type:t,selectors:[["cdk-accordion-item"],["","cdkAccordionItem",""]],inputs:{expanded:[2,"expanded","expanded",V],disabled:[2,"disabled","disabled",V]},outputs:{closed:"closed",opened:"opened",destroyed:"destroyed",expandedChange:"expandedChange"},exportAs:["cdkAccordionItem"],features:[Ce([{provide:l6,useValue:void 0}])]})}return t})(),d6=(()=>{class t{static \u0275fac=function(i){return new(i||t)};static \u0275mod=ee({type:t});static \u0275inj=J({})}return t})();var Sye=["body"],Tye=["bodyWrapper"],Iye=[[["mat-expansion-panel-header"]],"*",[["mat-action-row"]]],Aye=["mat-expansion-panel-header","*","mat-action-row"];function Oye(t,n){}var Rye=[[["mat-panel-title"]],[["mat-panel-description"]],"*"],Pye=["mat-panel-title","mat-panel-description","*"];function Fye(t,n){t&1&&(ft(0,"span",1),Gt(),ft(1,"svg",2),ai(2,"path",3),vt()())}var u6=new T("MAT_ACCORDION"),m6=new T("MAT_EXPANSION_PANEL"),Nye=(()=>{class t{_template=u(te);_expansionPanel=u(m6,{optional:!0});constructor(){}static \u0275fac=function(i){return new(i||t)};static \u0275dir=F({type:t,selectors:[["ng-template","matExpansionPanelContent",""]]})}return t})(),h6=new T("MAT_EXPANSION_PANEL_DEFAULT_OPTIONS"),dA=(()=>{class t extends c6{_viewContainerRef=u(nt);_animationsDisabled=Ye();_document=u(ge);_ngZone=u(ae);_elementRef=u(q);_renderer=u(je);_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 U;afterCollapse=new U;_inputChanges=new z;accordion=u(u6,{optional:!0,skipSelf:!0});_lazyContent;_body;_bodyWrapper;_portal;_headerId=u(Ze).getId("mat-expansion-panel-header-");constructor(){super();let e=u(h6,{optional:!0});this._expansionDispatcher=u(au),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(He(null),ce(()=>this.expanded&&!this._portal),lt(1)).subscribe(()=>{this._portal=new Cn(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,i=this._body.nativeElement;return e===i||i.contains(e)}return!1}_transitionEndListener=({target:e,propertyName:i})=>{e===this._bodyWrapper?.nativeElement&&i==="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(i){return new(i||t)};static \u0275cmp=E({type:t,selectors:[["mat-expansion-panel"]],contentQueries:function(i,r,o){if(i&1&&xe(o,Nye,5),i&2){let a;B(a=j())&&(r._lazyContent=a.first)}},viewQuery:function(i,r){if(i&1&&(ie(Sye,5),ie(Tye,5)),i&2){let o;B(o=j())&&(r._body=o.first),B(o=j())&&(r._bodyWrapper=o.first)}},hostAttrs:[1,"mat-expansion-panel"],hostVars:4,hostBindings:function(i,r){i&2&&G("mat-expanded",r.expanded)("mat-expansion-panel-spacing",r._hasSpacing())},inputs:{hideToggle:[2,"hideToggle","hideToggle",V],togglePosition:"togglePosition"},outputs:{afterExpand:"afterExpand",afterCollapse:"afterCollapse"},exportAs:["matExpansionPanel"],features:[Ce([{provide:u6,useValue:void 0},{provide:m6,useExisting:t}]),le,Ae],ngContentSelectors:Aye,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(i,r){i&1&&(Me(Iye),oe(0),h(1,"div",2,0)(3,"div",3,1)(5,"div",4),oe(6,1),R(7,Oye,0,0,"ng-template",5),p(),oe(8,2),p()()),i&2&&(g(),X("inert",r.expanded?null:""),g(2),y("id",r.id),X("aria-labelledby",r._headerId),g(4),y("cdkPortalOutlet",r._portal))},dependencies:[yr],styles:[`.mat-expansion-panel{box-sizing:content-box;display:block;margin:0;overflow:hidden;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.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: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}}.mat-expansion-panel-content{display:flex;flex-direction:column;overflow:visible;min-height:0;visibility:hidden;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-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-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 t})();var p6=(()=>{class t{panel=u(dA,{host:!0});_element=u(q);_focusMonitor=u(Yt);_changeDetectorRef=u(ye);_parentChangeSubscription=ke.EMPTY;constructor(){u(ut).load(Di);let e=this.panel,i=u(h6,{optional:!0}),r=u(new Ii("tabindex"),{optional:!0}),o=e.accordion?e.accordion._stateChanges.pipe(ce(a=>!!(a.hideToggle||a.togglePosition))):Fi;this.tabIndex=parseInt(r||"")||0,this._parentChangeSubscription=Je(e.opened,e.closed,o,e._inputChanges.pipe(ce(a=>!!(a.hideToggle||a.disabled||a.togglePosition)))).subscribe(()=>this._changeDetectorRef.markForCheck()),e.closed.pipe(ce(()=>e._containsFocus())).subscribe(()=>this._focusMonitor.focusVia(this._element,"program")),i&&(this.expandedHeight=i.expandedHeight,this.collapsedHeight=i.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:Ft(e)||(e.preventDefault(),this._toggle());break;default:this.panel.accordion&&this.panel.accordion._handleHeaderKeydown(e);return}}focus(e,i){e?this._focusMonitor.focusVia(this._element,e,i):this._element.nativeElement.focus(i)}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(i){return new(i||t)};static \u0275cmp=E({type:t,selectors:[["mat-expansion-panel-header"]],hostAttrs:["role","button",1,"mat-expansion-panel-header","mat-focus-indicator"],hostVars:13,hostBindings:function(i,r){i&1&&S("click",function(){return r._toggle()})("keydown",function(a){return r._keydown(a)}),i&2&&(X("id",r.panel._headerId)("tabindex",r.disabled?-1:r.tabIndex)("aria-controls",r._getPanelId())("aria-expanded",r._isExpanded())("aria-disabled",r.panel.disabled),Dt("height",r._getHeaderHeight()),G("mat-expanded",r._isExpanded())("mat-expansion-toggle-indicator-after",r._getTogglePosition()==="after")("mat-expansion-toggle-indicator-before",r._getTogglePosition()==="before"))},inputs:{expandedHeight:"expandedHeight",collapsedHeight:"collapsedHeight",tabIndex:[2,"tabIndex","tabIndex",e=>e==null?0:ct(e)]},ngContentSelectors:Pye,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(i,r){i&1&&(Me(Rye),ft(0,"span",0),oe(1),oe(2,1),oe(3,2),vt(),N(4,Fye,3,0,"span",1)),i&2&&(G("mat-content-hide-toggle",!r._showToggle()),g(4),L(r._showToggle()?4:-1))},styles:[`.mat-expansion-panel-header{display:flex;flex-direction:row;align-items:center;padding:0 24px;border-radius:inherit;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-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.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 t})();var f6=(()=>{class t{static \u0275fac=function(i){return new(i||t)};static \u0275dir=F({type:t,selectors:[["mat-panel-title"]],hostAttrs:[1,"mat-expansion-panel-header-title"]})}return t})();var g6=(()=>{class t{static \u0275fac=function(i){return new(i||t)};static \u0275mod=ee({type:t});static \u0275inj=J({imports:[we,d6,Co]})}return t})();function Vye(t,n){if(t&1&&(jt(0),h(1,"mat-icon"),_(2,"account_circle"),p(),_(3),Lt()),t&2){let e=n.ngIf;g(3),ve(" ",e.name||e.preferred_username||"User Profile"," ")}}function Bye(t,n){t&1&&(jt(0),h(1,"mat-icon"),_(2,"account_circle"),p(),_(3," User Profile "),Lt())}function jye(t,n){t&1&&(h(0,"div",3)(1,"mat-card")(2,"mat-card-content")(3,"div",4)(4,"mat-icon"),_(5,"lock"),p(),h(6,"h2"),_(7,"Not Authenticated"),p(),h(8,"p"),_(9,"Please log in to view your profile information."),p(),h(10,"button",5)(11,"mat-icon"),_(12,"login"),p(),_(13," Log In "),p()()()()())}function Hye(t,n){if(t&1&&(h(0,"mat-chip",23),_(1),p()),t&2){let e=n.$implicit;y("color","primary"),g(),ve(" ",e," ")}}function zye(t,n){if(t&1&&(h(0,"mat-chip",24),_(1),p()),t&2){let e=n.$implicit;y("color","accent"),g(),ve(" ",e," ")}}function Uye(t,n){if(t&1&&(h(0,"div",17)(1,"div",18)(2,"label"),_(3,"User ID (sub)"),p(),h(4,"div",19),_(5),p()(),h(6,"div",18)(7,"label"),_(8,"Display Name"),p(),h(9,"div",19),_(10),p()(),h(11,"div",18)(12,"label"),_(13,"Email"),p(),h(14,"div",19),_(15),p()(),h(16,"div",18)(17,"label"),_(18,"Username"),p(),h(19,"div",19),_(20),p()(),h(21,"div",20)(22,"label"),_(23,"Roles"),p(),h(24,"div",19)(25,"mat-chip-set"),R(26,Hye,2,2,"mat-chip",21),p()()(),h(27,"div",20)(28,"label"),_(29,"Permissions"),p(),h(30,"div",19)(31,"mat-chip-set"),R(32,zye,2,2,"mat-chip",22),p()()()()),t&2){let e=n.ngIf,i=C(2);g(5),H(e.sub),g(5),H(e.name||"N/A"),g(5),H(e.email||"N/A"),g(5),H(e.preferred_username||"N/A"),g(6),y("ngForOf",i.profileData==null?null:i.profileData.roles),g(6),y("ngForOf",i.profileData==null?null:i.profileData.permissions)}}function $ye(t,n){t&1&&(h(0,"mat-chip",36)(1,"mat-icon"),_(2,"verified_user"),p(),_(3," Valid "),p())}function Wye(t,n){t&1&&(h(0,"mat-chip",37)(1,"mat-icon"),_(2,"error"),p(),_(3," Expired "),p())}function Gye(t,n){if(t&1&&(h(0,"div",30)(1,"label"),_(2,"Issuer"),p(),h(3,"div"),_(4),p()()),t&2){let e=C().ngIf;g(4),H(e.payload.iss)}}function qye(t,n){if(t&1&&(h(0,"mat-expansion-panel",38)(1,"mat-expansion-panel-header")(2,"mat-panel-title"),_(3,"Raw JWT Token"),p()(),h(4,"pre",39),_(5),p()()),t&2){let e=C().ngIf;g(5),H(e.raw)}}function Yye(t,n){if(t&1){let e=Y();h(0,"div",25)(1,"div",26)(2,"mat-chip-set")(3,"mat-chip",23)(4,"mat-icon"),_(5,"schedule"),p(),_(6),p(),R(7,$ye,4,0,"mat-chip",27)(8,Wye,4,0,"mat-chip",28),p()(),h(9,"div",29)(10,"div",30)(11,"label"),_(12,"Issued At"),p(),h(13,"div"),_(14),p()(),h(15,"div",30)(16,"label"),_(17,"Expires At"),p(),h(18,"div"),_(19),p()(),R(20,Gye,5,1,"div",31),p(),h(21,"div",32)(22,"button",33),S("click",function(){I(e);let r=C(2);return A(r.toggleRawIdToken())}),h(23,"mat-icon"),_(24),p(),_(25),p(),h(26,"button",33),S("click",function(){let r=I(e).ngIf,o=C(2);return A(o.copyToClipboard(r.raw,"ID Token"))}),h(27,"mat-icon"),_(28,"content_copy"),p(),_(29," Copy Token "),p()(),R(30,qye,6,1,"mat-expansion-panel",34),h(31,"mat-expansion-panel")(32,"mat-expansion-panel-header")(33,"mat-panel-title"),_(34,"Token Header"),p()(),h(35,"pre",35),_(36),p()(),h(37,"mat-expansion-panel")(38,"mat-expansion-panel-header")(39,"mat-panel-title"),_(40,"Token Claims (Payload)"),p()(),h(41,"pre",35),_(42),p()()()}if(t&2){let e=n.ngIf,i=C(2);g(3),y("color",i.getExpirationColor(e)),g(3),ve(" ",i.getExpirationStatus(e)," "),g(),y("ngIf",!e.isExpired),g(),y("ngIf",e.isExpired),g(6),H(i.formatDate(e.issuedAt)),g(5),H(i.formatDate(e.expiresAt)),g(),y("ngIf",e.payload.iss),g(4),H(i.showRawIdToken?"visibility_off":"visibility"),g(),ve(" ",i.showRawIdToken?"Hide":"Show"," Raw Token "),g(5),y("ngIf",i.showRawIdToken),g(6),H(i.formatJson(e.header)),g(6),H(i.formatJson(e.payload))}}function Qye(t,n){t&1&&(h(0,"div",40)(1,"mat-icon"),_(2,"info"),p(),h(3,"p"),_(4,"ID Token not available"),p()())}function Kye(t,n){t&1&&(h(0,"mat-chip",36)(1,"mat-icon"),_(2,"verified_user"),p(),_(3," Valid "),p())}function Zye(t,n){t&1&&(h(0,"mat-chip",37)(1,"mat-icon"),_(2,"error"),p(),_(3," Expired "),p())}function Xye(t,n){if(t&1&&(h(0,"div",30)(1,"label"),_(2,"Audience"),p(),h(3,"div"),_(4),p()()),t&2){let e=C().ngIf;g(4),H(e.payload.aud)}}function Jye(t,n){if(t&1&&(h(0,"mat-expansion-panel",38)(1,"mat-expansion-panel-header")(2,"mat-panel-title"),_(3,"Raw JWT Token"),p()(),h(4,"pre",39),_(5),p()()),t&2){let e=C().ngIf;g(5),H(e.raw)}}function exe(t,n){if(t&1&&(h(0,"mat-chip"),_(1),p()),t&2){let e=n.$implicit;g(),ve(" ",e," ")}}function txe(t,n){if(t&1&&(h(0,"mat-expansion-panel")(1,"mat-expansion-panel-header")(2,"mat-panel-title"),_(3,"Scopes"),p()(),h(4,"div",41)(5,"mat-chip-set"),R(6,exe,2,1,"mat-chip",42),p()()()),t&2){let e=C().ngIf,i=C(2);g(6),y("ngForOf",i.getScopes(e.payload.scope))}}function ixe(t,n){if(t&1){let e=Y();h(0,"div",25)(1,"div",26)(2,"mat-chip-set")(3,"mat-chip",23)(4,"mat-icon"),_(5,"schedule"),p(),_(6),p(),R(7,Kye,4,0,"mat-chip",27)(8,Zye,4,0,"mat-chip",28),p()(),h(9,"div",29)(10,"div",30)(11,"label"),_(12,"Issued At"),p(),h(13,"div"),_(14),p()(),h(15,"div",30)(16,"label"),_(17,"Expires At"),p(),h(18,"div"),_(19),p()(),R(20,Xye,5,1,"div",31),p(),h(21,"div",32)(22,"button",33),S("click",function(){I(e);let r=C(2);return A(r.toggleRawAccessToken())}),h(23,"mat-icon"),_(24),p(),_(25),p(),h(26,"button",33),S("click",function(){let r=I(e).ngIf,o=C(2);return A(o.copyToClipboard(r.raw,"Access Token"))}),h(27,"mat-icon"),_(28,"content_copy"),p(),_(29," Copy Token "),p()(),R(30,Jye,6,1,"mat-expansion-panel",34),h(31,"mat-expansion-panel")(32,"mat-expansion-panel-header")(33,"mat-panel-title"),_(34,"Token Header"),p()(),h(35,"pre",35),_(36),p()(),h(37,"mat-expansion-panel")(38,"mat-expansion-panel-header")(39,"mat-panel-title"),_(40,"Token Claims (Payload)"),p()(),h(41,"pre",35),_(42),p()(),R(43,txe,7,1,"mat-expansion-panel",0),p()}if(t&2){let e=n.ngIf,i=C(2);g(3),y("color",i.getExpirationColor(e)),g(3),ve(" ",i.getExpirationStatus(e)," "),g(),y("ngIf",!e.isExpired),g(),y("ngIf",e.isExpired),g(6),H(i.formatDate(e.issuedAt)),g(5),H(i.formatDate(e.expiresAt)),g(),y("ngIf",e.payload.aud),g(4),H(i.showRawAccessToken?"visibility_off":"visibility"),g(),ve(" ",i.showRawAccessToken?"Hide":"Show"," Raw Token "),g(5),y("ngIf",i.showRawAccessToken),g(6),H(i.formatJson(e.header)),g(6),H(i.formatJson(e.payload)),g(),y("ngIf",e.payload.scope)}}function nxe(t,n){t&1&&(h(0,"div",40)(1,"mat-icon"),_(2,"info"),p(),h(3,"p"),_(4,"Access Token not available"),p()())}function rxe(t,n){if(t&1&&(h(0,"div",6)(1,"mat-card",7)(2,"mat-card-content")(3,"div",8)(4,"mat-icon"),_(5,"warning"),p(),h(6,"div")(7,"strong"),_(8,"Security Notice:"),p(),_(9," Tokens displayed on this page contain sensitive information. Do not share these tokens with anyone or paste them in untrusted applications. "),p()()()(),h(10,"mat-card",9)(11,"mat-card-header")(12,"mat-icon",10),_(13,"person"),p(),h(14,"mat-card-title"),_(15,"User Information"),p(),h(16,"mat-card-subtitle"),_(17,"Your profile details from ID token"),p()(),h(18,"mat-card-content"),R(19,Uye,33,6,"div",11),p()(),h(20,"mat-card",12)(21,"mat-card-header")(22,"mat-icon",10),_(23,"vpn_key"),p(),h(24,"mat-card-title"),_(25,"Token Details"),p(),h(26,"mat-card-subtitle"),_(27,"Detailed JWT token information and claims"),p()(),h(28,"mat-card-content")(29,"mat-tab-group")(30,"mat-tab",13),R(31,Yye,43,12,"div",14)(32,Qye,5,0,"div",15),p(),h(33,"mat-tab",16),R(34,ixe,44,13,"div",14)(35,nxe,5,0,"div",15),p()()()()()),t&2){let e=C();g(19),y("ngIf",e.profileData==null?null:e.profileData.userInfo),g(12),y("ngIf",e.profileData==null?null:e.profileData.idToken),g(),y("ngIf",!(e.profileData!=null&&e.profileData.idToken)),g(2),y("ngIf",e.profileData==null?null:e.profileData.accessToken),g(),y("ngIf",!(e.profileData!=null&&e.profileData.accessToken))}}var _6=(()=>{let n=class n{constructor(){this.authService=u(Tt),this.oauthService=u(Wm),this.tokenDecoder=u(oU),this.snackBar=u(di),this.router=u(Re),this.profileData=null,this.showRawIdToken=!1,this.showRawAccessToken=!1}ngOnInit(){this.loadProfileData(),this.authSubscription=this.authService.isAuthenticated$.subscribe(()=>{this.loadProfileData()})}ngOnDestroy(){this.authSubscription?.unsubscribe()}loadProfileData(){let i=this.authService.isAuthenticated(),r=this.oauthService.hasValidAccessToken();if(console.log("Authentication Status:",{isAuthenticated:i,hasValidAccessToken:r}),!i&&!r){this.profileData=null;return}let o=this.authService.getUserInfo(),a=this.authService.getAccessToken(),s=this.oauthService.getIdToken(),l=this.authService.getUserRoles();console.log("Profile Data Debug:",{isAuthenticated:i,hasUserInfo:!!o,hasAccessToken:!!a,accessTokenLength:a?.length,hasIdToken:!!s,idTokenLength:s?.length,roles:l}),this.profileData={isAuthenticated:i,userInfo:o,idToken:s?this.tokenDecoder.decodeToken(s):null,accessToken:a?this.tokenDecoder.decodeToken(a):null,roles:l,permissions:this.getUserPermissions()},console.log("Decoded tokens:",{idToken:this.profileData.idToken,accessToken:this.profileData.accessToken})}getUserPermissions(){let i=[];return this.authService.hasRole("HRAdmin")||this.authService.hasRole("Manager")?i.push("canAdd","canEdit","canDelete","canRead"):this.authService.hasRole("Employee")&&i.push("canRead"),i}toggleRawIdToken(){this.showRawIdToken=!this.showRawIdToken}toggleRawAccessToken(){this.showRawAccessToken=!this.showRawAccessToken}copyToClipboard(i,r){navigator.clipboard.writeText(i).then(()=>{this.showMessage(`${r} copied to clipboard`)}).catch(o=>{console.error("Failed to copy:",o),this.showMessage("Failed to copy to clipboard")})}formatJson(i){return JSON.stringify(i,null,2)}getExpirationStatus(i){return this.tokenDecoder.getExpirationStatus(i)}getExpirationColor(i){if(!i||!i.expiresIn)return"";let r=i.expiresIn/3600;return i.isExpired?"warn":r<1?"accent":"primary"}formatDate(i){return i?new Intl.DateTimeFormat("en-US",{dateStyle:"medium",timeStyle:"medium"}).format(i):"N/A"}showMessage(i){this.snackBar.open(i,"Close",{duration:3e3,horizontalPosition:"end",verticalPosition:"top"})}getScopes(i){return i?Array.isArray(i)?i:typeof i=="string"?i.split(" ").filter(r=>r.length>0):[]:[]}};n.\u0275fac=function(r){return new(r||n)},n.\u0275cmp=E({type:n,selectors:[["app-profile-overview"]],decls:5,vars:4,consts:[[4,"ngIf"],["class","not-authenticated",4,"ngIf"],["class","profile-container",4,"ngIf"],[1,"not-authenticated"],[1,"empty-state"],["mat-raised-button","","color","primary","routerLink","/login"],[1,"profile-container"],[1,"security-warning"],[1,"warning-content"],[1,"profile-card"],["mat-card-avatar",""],["class","info-grid",4,"ngIf"],[1,"tokens-card"],["label","ID Token"],["class","token-content",4,"ngIf"],["class","no-token",4,"ngIf"],["label","Access Token"],[1,"info-grid"],[1,"info-item"],[1,"value"],[1,"info-item","full-width"],["highlighted","",3,"color",4,"ngFor","ngForOf"],[3,"color",4,"ngFor","ngForOf"],["highlighted","",3,"color"],[3,"color"],[1,"token-content"],[1,"token-status"],["color","primary",4,"ngIf"],["color","warn",4,"ngIf"],[1,"token-metadata"],[1,"metadata-item"],["class","metadata-item",4,"ngIf"],[1,"token-actions"],["mat-button","",3,"click"],["expanded","",4,"ngIf"],[1,"json-display"],["color","primary"],["color","warn"],["expanded",""],[1,"token-display"],[1,"no-token"],[1,"scopes-list"],[4,"ngFor","ngForOf"]],template:function(r,o){r&1&&(h(0,"page-header"),R(1,Vye,4,1,"ng-container",0)(2,Bye,4,0,"ng-container",0),p(),R(3,jye,14,0,"div",1)(4,rxe,36,5,"div",2)),r&2&&(g(),y("ngIf",o.profileData==null?null:o.profileData.userInfo),g(),y("ngIf",!(o.profileData!=null&&o.profileData.isAuthenticated)),g(),y("ngIf",!(o.profileData!=null&&o.profileData.isAuthenticated)),g(),y("ngIf",o.profileData==null?null:o.profileData.isAuthenticated))},dependencies:[gt,qr,li,$t,zt,HV,Ut,Jt,jV,Xt,ot,mt,ze,kt,s6,cA,a6,g6,dA,p6,f6,Br,pi,rp,__,tw,lk,Nn,ni],styles:[".profile-container[_ngcontent-%COMP%]{padding:16px;max-width:1200px;margin:0 auto;display:flex;flex-direction:column;gap:24px}.not-authenticated[_ngcontent-%COMP%]{padding:16px;max-width:600px;margin:0 auto}.not-authenticated[_ngcontent-%COMP%] .empty-state[_ngcontent-%COMP%]{display:flex;flex-direction:column;align-items:center;justify-content:center;padding:48px 16px;text-align:center}.not-authenticated[_ngcontent-%COMP%] .empty-state[_ngcontent-%COMP%] mat-icon[_ngcontent-%COMP%]{font-size:64px;width:64px;height:64px;color:#00000061;margin-bottom:16px}.not-authenticated[_ngcontent-%COMP%] .empty-state[_ngcontent-%COMP%] h2[_ngcontent-%COMP%]{margin:0 0 8px;font-size:24px;font-weight:500}.not-authenticated[_ngcontent-%COMP%] .empty-state[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{margin:0 0 24px;color:#0009}.not-authenticated[_ngcontent-%COMP%] .empty-state[_ngcontent-%COMP%] button[_ngcontent-%COMP%] mat-icon[_ngcontent-%COMP%]{font-size:20px;width:20px;height:20px;margin-right:8px;color:inherit}.security-warning[_ngcontent-%COMP%]{background-color:#fff3cd;border-left:4px solid #ff9800}.security-warning[_ngcontent-%COMP%] mat-card-content[_ngcontent-%COMP%]{padding:16px}.security-warning[_ngcontent-%COMP%] .warning-content[_ngcontent-%COMP%]{display:flex;align-items:center;gap:12px}.security-warning[_ngcontent-%COMP%] .warning-content[_ngcontent-%COMP%] mat-icon[_ngcontent-%COMP%]{color:#ff9800;flex-shrink:0}.security-warning[_ngcontent-%COMP%] .warning-content[_ngcontent-%COMP%] strong[_ngcontent-%COMP%]{font-weight:600}.profile-card[_ngcontent-%COMP%] mat-card-header[_ngcontent-%COMP%], .tokens-card[_ngcontent-%COMP%] mat-card-header[_ngcontent-%COMP%]{padding:16px;border-bottom:1px solid rgba(0,0,0,.12)}.profile-card[_ngcontent-%COMP%] mat-card-header[_ngcontent-%COMP%] mat-card-title[_ngcontent-%COMP%], .tokens-card[_ngcontent-%COMP%] mat-card-header[_ngcontent-%COMP%] mat-card-title[_ngcontent-%COMP%]{font-size:20px;font-weight:500;margin:0}.profile-card[_ngcontent-%COMP%] mat-card-header[_ngcontent-%COMP%] mat-card-subtitle[_ngcontent-%COMP%], .tokens-card[_ngcontent-%COMP%] mat-card-header[_ngcontent-%COMP%] mat-card-subtitle[_ngcontent-%COMP%]{margin-top:4px;color:#0009}.profile-card[_ngcontent-%COMP%] mat-card-content[_ngcontent-%COMP%], .tokens-card[_ngcontent-%COMP%] mat-card-content[_ngcontent-%COMP%]{padding:24px}.info-grid[_ngcontent-%COMP%]{display:grid;grid-template-columns:repeat(2,1fr);gap:24px}@media (max-width: 768px){.info-grid[_ngcontent-%COMP%]{grid-template-columns:1fr}}.info-grid[_ngcontent-%COMP%] .info-item[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:8px}.info-grid[_ngcontent-%COMP%] .info-item.full-width[_ngcontent-%COMP%]{grid-column:1/-1}.info-grid[_ngcontent-%COMP%] .info-item[_ngcontent-%COMP%] label[_ngcontent-%COMP%]{font-size:12px;font-weight:500;text-transform:uppercase;letter-spacing:.5px;color:#0009}.info-grid[_ngcontent-%COMP%] .info-item[_ngcontent-%COMP%] .value[_ngcontent-%COMP%]{font-size:16px;color:#000000de;word-break:break-word}.token-content[_ngcontent-%COMP%]{padding:24px 0;display:flex;flex-direction:column;gap:16px}.token-content[_ngcontent-%COMP%] .token-status[_ngcontent-%COMP%] mat-chip-set[_ngcontent-%COMP%] mat-chip[_ngcontent-%COMP%] mat-icon[_ngcontent-%COMP%]{margin-right:4px;font-size:18px;width:18px;height:18px}.token-content[_ngcontent-%COMP%] .token-metadata[_ngcontent-%COMP%]{display:grid;grid-template-columns:repeat(auto-fit,minmax(200px,1fr));gap:16px;padding:16px;background-color:#00000005;border-radius:4px}.token-content[_ngcontent-%COMP%] .token-metadata[_ngcontent-%COMP%] .metadata-item[_ngcontent-%COMP%] label[_ngcontent-%COMP%]{display:block;font-size:12px;font-weight:500;text-transform:uppercase;letter-spacing:.5px;color:#0009;margin-bottom:4px}.token-content[_ngcontent-%COMP%] .token-metadata[_ngcontent-%COMP%] .metadata-item[_ngcontent-%COMP%] div[_ngcontent-%COMP%]{font-size:14px;color:#000000de;word-break:break-word}.token-content[_ngcontent-%COMP%] .token-actions[_ngcontent-%COMP%]{display:flex;gap:8px;flex-wrap:wrap}.token-content[_ngcontent-%COMP%] .token-actions[_ngcontent-%COMP%] button[_ngcontent-%COMP%] mat-icon[_ngcontent-%COMP%]{margin-right:4px}.token-content[_ngcontent-%COMP%] mat-expansion-panel[_ngcontent-%COMP%]{margin-top:8px}.token-content[_ngcontent-%COMP%] .token-display[_ngcontent-%COMP%], .token-content[_ngcontent-%COMP%] .json-display[_ngcontent-%COMP%]{background-color:#f5f5f5;padding:16px;border-radius:4px;overflow-x:auto;font-family:Courier New,monospace;font-size:12px;line-height:1.5;margin:0;white-space:pre-wrap;word-break:break-all}.token-content[_ngcontent-%COMP%] .scopes-list[_ngcontent-%COMP%]{padding:16px}.token-content[_ngcontent-%COMP%] .scopes-list[_ngcontent-%COMP%] mat-chip-set[_ngcontent-%COMP%] mat-chip[_ngcontent-%COMP%]{margin:4px}.no-token[_ngcontent-%COMP%]{display:flex;flex-direction:column;align-items:center;justify-content:center;padding:48px 16px;text-align:center;color:#00000061}.no-token[_ngcontent-%COMP%] mat-icon[_ngcontent-%COMP%]{font-size:48px;width:48px;height:48px;margin-bottom:12px}.no-token[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{margin:0;font-size:14px}mat-chip-set[_ngcontent-%COMP%] mat-chip[_ngcontent-%COMP%]{margin:4px}@media (max-width: 768px){.profile-container[_ngcontent-%COMP%]{padding:12px}.profile-card[_ngcontent-%COMP%] mat-card-content[_ngcontent-%COMP%], .tokens-card[_ngcontent-%COMP%] mat-card-content[_ngcontent-%COMP%]{padding:16px}.token-content[_ngcontent-%COMP%]{padding:16px 0}.token-content[_ngcontent-%COMP%] .token-metadata[_ngcontent-%COMP%]{grid-template-columns:1fr}.security-warning[_ngcontent-%COMP%] .warning-content[_ngcontent-%COMP%]{flex-direction:column;align-items:flex-start}}"]});let t=n;return t})();var b6=(()=>{let n=class n{};n.\u0275fac=function(r){return new(r||n)},n.\u0275cmp=E({type:n,selectors:[["app-profile-settings"]],decls:14,vars:0,consts:[[1,"settings-container"],[1,"coming-soon"]],template:function(r,o){r&1&&(h(0,"page-header")(1,"mat-icon"),_(2,"settings"),p(),_(3,` Profile Settings +`),p(),h(4,"div",0)(5,"mat-card")(6,"mat-card-content")(7,"div",1)(8,"mat-icon"),_(9,"construction"),p(),h(10,"h2"),_(11,"Coming Soon"),p(),h(12,"p"),_(13,"User settings functionality will be available in a future update."),p()()()()())},dependencies:[gt,$t,zt,Ut,ot,mt,ni],styles:[".settings-container[_ngcontent-%COMP%]{padding:16px;max-width:800px;margin:0 auto}.settings-container[_ngcontent-%COMP%] .coming-soon[_ngcontent-%COMP%]{display:flex;flex-direction:column;align-items:center;justify-content:center;padding:48px 16px;text-align:center}.settings-container[_ngcontent-%COMP%] .coming-soon[_ngcontent-%COMP%] mat-icon[_ngcontent-%COMP%]{font-size:64px;width:64px;height:64px;color:#00000061;margin-bottom:16px}.settings-container[_ngcontent-%COMP%] .coming-soon[_ngcontent-%COMP%] h2[_ngcontent-%COMP%]{margin:0 0 8px;font-size:24px;font-weight:500}.settings-container[_ngcontent-%COMP%] .coming-soon[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{margin:0;color:#0009}"]});let t=n;return t})();var v6=[{path:"",component:J8,canActivate:[sI],canActivateChild:[sI],children:[{path:"",redirectTo:"dashboard",pathMatch:"full"},{path:"dashboard",component:sU},{path:"employees",component:CU},{path:"employees/create",component:oA,canActivate:[a_]},{path:"employees/edit/:id",component:oA,canActivate:[a_]},{path:"employees/:id",component:wU},{path:"departments",component:HU},{path:"departments/create",component:aA,canActivate:[a_]},{path:"departments/edit/:id",component:aA,canActivate:[a_]},{path:"departments/:id",component:zU},{path:"positions",component:qU},{path:"positions/create",component:sA,canActivate:[s_]},{path:"positions/edit/:id",component:sA,canActivate:[s_]},{path:"positions/:id",component:QU},{path:"salary-ranges",component:ZU},{path:"salary-ranges/create",component:lA,canActivate:[s_]},{path:"salary-ranges/edit/:id",component:lA,canActivate:[s_]},{path:"salary-ranges/:id",component:JU},{path:"profile",children:[{path:"overview",component:_6},{path:"settings",component:b6},{path:"",redirectTo:"overview",pathMatch:"full"}]},{path:"403",component:lU},{path:"404",component:cU},{path:"500",component:dU}]},{path:"auth",component:eU,children:[{path:"register",component:uU}]},{path:"callback",component:mU},{path:"**",redirectTo:"dashboard"}];var y6=(t,n)=>{let e=u(Tt);if(!e.isAuthenticated())return n(t);let i=e.getAccessToken();if(!i)return n(t);let r=t.clone({setHeaders:{Authorization:`Bearer ${i}`}});return n(r)};var x6={providers:[ZD(),{provide:CI,useValue:ko.baseUrl},fL(),Ql(()=>u(Tt).initAuth()),Ql(()=>u(qz).load()),Ql(()=>u(Wz).load()),S1(T1([y6,...e8])),ok(v6,ak({scrollPositionRestoration:"enabled",anchorScrolling:"enabled"}),S0()),J3(),$5(U5()),$3({loader:W3({prefix:"i18n/",suffix:".json"})}),xb(xc.forRoot()),p3([...O3()]),{provide:yg,useFactory:Az,deps:[ia],multi:!0},{provide:gc,deps:[hz],useFactory:t=>t.getPaginatorIntl()},{provide:Bk,useValue:{appearance:"outlined"}},BV({parse:{dateInput:"yyyy-MM-dd"},display:{dateInput:"yyyy-MM-dd",monthYearLabel:"yyyy MMM",dateA11yLabel:"LL",monthYearA11yLabel:"yyyy MMM"}}),l3({parse:{dateInput:"yyyy-MM-dd",yearInput:"yyyy",monthInput:"MMMM",datetimeInput:"yyyy-MM-dd HH:mm",timeInput:"HH:mm"},display:{dateInput:"yyyy-MM-dd",yearInput:"yyyy",monthInput:"MMMM",datetimeInput:"yyyy-MM-dd HH:mm",timeInput:"HH:mm",monthYearLabel:"yyyy MMMM",dateA11yLabel:"LL",monthYearA11yLabel:"MMMM yyyy",popupHeaderDateLabel:"MMM dd, E"}})]};var C6=(()=>{let n=class n{constructor(){this.preloader=u(Gz),this.settings=u(aa)}ngOnInit(){this.settings.setDirection(),this.settings.setTheme()}ngAfterViewInit(){this.preloader.hide()}};n.\u0275fac=function(r){return new(r||n)},n.\u0275cmp=E({type:n,selectors:[["app-root"]],decls:1,vars:0,template:function(r,o){r&1&&k(0,"router-outlet")},dependencies:[ol],encapsulation:2});let t=n;return t})();C1(C6,x6).catch(t=>console.error(t)); From dd463308e72a374d270bce0428620f8c6d3ef703 Mon Sep 17 00:00:00 2001 From: workcontrolgit Date: Mon, 20 Apr 2026 01:51:00 +0000 Subject: [PATCH 5/8] =?UTF-8?q?Deploying=20to=20gh-pages=20from=20@=20work?= =?UTF-8?q?controlgit/AngularNetTutorial@9bf85c1fb86248be428b219dbf1b4c02c?= =?UTF-8?q?e92b412=20=F0=9F=9A=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- 404.html | 2 +- data/menu.json | 6 + i18n/en-US.json | 1 + index.html | 2 +- main-ZXO6BMWL.js => main-GWAUQRAV.js | 348 ++++++++++++++------------- 5 files changed, 185 insertions(+), 174 deletions(-) rename main-ZXO6BMWL.js => main-GWAUQRAV.js (54%) diff --git a/404.html b/404.html index b4f053c..d963eae 100644 --- a/404.html +++ b/404.html @@ -76,5 +76,5 @@

LOADING

- + diff --git a/data/menu.json b/data/menu.json index 09c557b..3ef2220 100644 --- a/data/menu.json +++ b/data/menu.json @@ -89,6 +89,12 @@ } } ] + }, + { + "route": "ai-chat", + "name": "aiChat", + "type": "link", + "icon": "smart_toy" } ] } diff --git a/i18n/en-US.json b/i18n/en-US.json index 0bf0f26..c46b7d3 100644 --- a/i18n/en-US.json +++ b/i18n/en-US.json @@ -13,6 +13,7 @@ "salaryRanges": "Salary Ranges", "salaryRanges.salaryRangeList": "List", "salaryRanges.addSalaryRange": "Create", + "aiChat": "AI Assistant", "design": "Design", "design.colors": "Color System", "design.icons": "Material Icons", diff --git a/index.html b/index.html index b4f053c..d963eae 100644 --- a/index.html +++ b/index.html @@ -76,5 +76,5 @@

LOADING

- + diff --git a/main-ZXO6BMWL.js b/main-GWAUQRAV.js similarity index 54% rename from main-ZXO6BMWL.js rename to main-GWAUQRAV.js index 8083504..e153eb8 100644 --- a/main-ZXO6BMWL.js +++ b/main-GWAUQRAV.js @@ -1,143 +1,144 @@ -var w6=Object.defineProperty,D6=Object.defineProperties;var E6=Object.getOwnPropertyDescriptors;var E_=Object.getOwnPropertySymbols;var mA=Object.prototype.hasOwnProperty,hA=Object.prototype.propertyIsEnumerable;var uA=(t,n,e)=>n in t?w6(t,n,{enumerable:!0,configurable:!0,writable:!0,value:e}):t[n]=e,M=(t,n)=>{for(var e in n||={})mA.call(n,e)&&uA(t,e,n[e]);if(E_)for(var e of E_(n))hA.call(n,e)&&uA(t,e,n[e]);return t},De=(t,n)=>D6(t,E6(n));var pA=t=>typeof t=="symbol"?t:t+"",ed=(t,n)=>{var e={};for(var i in t)mA.call(t,i)&&n.indexOf(i)<0&&(e[i]=t[i]);if(t!=null&&E_)for(var i of E_(t))n.indexOf(i)<0&&hA.call(t,i)&&(e[i]=t[i]);return e};var fn=(t,n,e)=>new Promise((i,r)=>{var o=l=>{try{s(e.next(l))}catch(c){r(c)}},a=l=>{try{s(e.throw(l))}catch(c){r(c)}},s=l=>l.done?i(l.value):Promise.resolve(l.value).then(o,a);s((e=e.apply(t,n)).next())});var Mw;function M_(){return Mw}function Ua(t){let n=Mw;return Mw=t,n}var fA=Symbol("NotFound");function Fu(t){return t===fA||t?.name==="\u0275NotFound"}var cr=null,k_=!1,kw=1,M6=null,ln=Symbol("SIGNAL");function Xe(t){let n=cr;return cr=t,n}function A_(){return cr}var td={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 kl(t){if(k_)throw new Error("");if(cr===null)return;cr.consumerOnSignalRead(t);let n=cr.producersTail;if(n!==void 0&&n.producer===t)return;let e,i=cr.recomputing;if(i&&(e=n!==void 0?n.nextProducer:cr.producers,e!==void 0&&e.producer===t)){cr.producersTail=e,e.lastReadVersion=t.version;return}let r=t.consumersTail;if(r!==void 0&&r.consumer===cr&&(!i||S6(r,cr)))return;let o=Nu(cr),a={producer:t,consumer:cr,nextProducer:e,prevConsumer:r,lastReadVersion:t.version,nextConsumer:void 0};cr.producersTail=a,n!==void 0?n.nextProducer=a:cr.producers=a,o&&vA(t,a)}function gA(){kw++}function O_(t){if(!(Nu(t)&&!t.dirty)&&!(!t.dirty&&t.lastCleanEpoch===kw)){if(!t.producerMustRecompute(t)&&!nd(t)){I_(t);return}t.producerRecomputeValue(t),I_(t)}}function Sw(t){if(t.consumers===void 0)return;let n=k_;k_=!0;try{for(let e=t.consumers;e!==void 0;e=e.nextConsumer){let i=e.consumer;i.dirty||k6(i)}}finally{k_=n}}function Tw(){return cr?.consumerAllowSignalWrites!==!1}function k6(t){t.dirty=!0,Sw(t),t.consumerMarkedDirty?.(t)}function I_(t){t.dirty=!1,t.lastCleanEpoch=kw}function Sl(t){return t&&_A(t),Xe(t)}function _A(t){t.producersTail=void 0,t.recomputing=!0}function id(t,n){Xe(n),t&&bA(t)}function bA(t){t.recomputing=!1;let n=t.producersTail,e=n!==void 0?n.nextProducer:t.producers;if(e!==void 0){if(Nu(t))do e=Iw(e);while(e!==void 0);n!==void 0?n.nextProducer=void 0:t.producers=void 0}}function nd(t){for(let n=t.producers;n!==void 0;n=n.nextProducer){let e=n.producer,i=n.lastReadVersion;if(i!==e.version||(O_(e),i!==e.version))return!0}return!1}function Tl(t){if(Nu(t)){let n=t.producers;for(;n!==void 0;)n=Iw(n)}t.producers=void 0,t.producersTail=void 0,t.consumers=void 0,t.consumersTail=void 0}function vA(t,n){let e=t.consumersTail,i=Nu(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,!i)for(let r=t.producers;r!==void 0;r=r.nextProducer)vA(r.producer,r)}function Iw(t){let n=t.producer,e=t.nextProducer,i=t.nextConsumer,r=t.prevConsumer;if(t.nextConsumer=void 0,t.prevConsumer=void 0,i!==void 0?i.prevConsumer=r:n.consumersTail=r,r!==void 0)r.nextConsumer=i;else if(n.consumers=i,!Nu(n)){let o=n.producers;for(;o!==void 0;)o=Iw(o)}return e}function Nu(t){return t.consumerIsAlwaysLive||t.consumers!==void 0}function R_(t){M6?.(t)}function S6(t,n){let e=n.producersTail;if(e!==void 0){let i=n.producers;do{if(i===t)return!0;if(i===e)break;i=i.nextProducer}while(i!==void 0)}return!1}function P_(t,n){return Object.is(t,n)}function pp(t,n){let e=Object.create(T6);e.computation=t,n!==void 0&&(e.equal=n);let i=()=>{if(O_(e),kl(e),e.value===hp)throw e.error;return e.value};return i[ln]=e,R_(e),i}var S_=Symbol("UNSET"),T_=Symbol("COMPUTING"),hp=Symbol("ERRORED"),T6=De(M({},td),{value:S_,dirty:!0,error:null,equal:P_,kind:"computed",producerMustRecompute(t){return t.value===S_||t.value===T_},producerRecomputeValue(t){if(t.value===T_)throw new Error("");let n=t.value;t.value=T_;let e=Sl(t),i,r=!1;try{i=t.computation(),Xe(null),r=n!==S_&&n!==hp&&i!==hp&&t.equal(n,i)}catch(o){i=hp,t.error=o}finally{id(t,e)}if(r){t.value=n;return}t.value=i,t.version++}});function I6(){throw new Error}var yA=I6;function xA(t){yA(t)}function Aw(t){yA=t}var A6=null;function Ow(t,n){let e=Object.create(fp);e.value=t,n!==void 0&&(e.equal=n);let i=()=>CA(e);return i[ln]=e,R_(e),[i,a=>rd(e,a),a=>Rw(e,a)]}function CA(t){return kl(t),t.value}function rd(t,n){Tw()||xA(t),t.equal(t.value,n)||(t.value=n,O6(t))}function Rw(t,n){Tw()||xA(t),rd(t,n(t.value))}var fp=De(M({},td),{equal:P_,value:void 0,kind:"signal"});function O6(t){t.version++,gA(),Sw(t),A6?.(t)}function Ke(t){return typeof t=="function"}function Il(t){let e=t(i=>{Error.call(i),i.stack=new Error().stack});return e.prototype=Object.create(Error.prototype),e.prototype.constructor=e,e}var F_=Il(t=>function(e){t(this),this.message=e?`${e.length} errors occurred during unsubscription: +var PU=Object.defineProperty,FU=Object.defineProperties;var NU=Object.getOwnPropertyDescriptors;var k_=Object.getOwnPropertySymbols;var _A=Object.prototype.hasOwnProperty,bA=Object.prototype.propertyIsEnumerable;var gA=(t,n,e)=>n in t?PU(t,n,{enumerable:!0,configurable:!0,writable:!0,value:e}):t[n]=e,k=(t,n)=>{for(var e in n||={})_A.call(n,e)&&gA(t,e,n[e]);if(k_)for(var e of k_(n))bA.call(n,e)&&gA(t,e,n[e]);return t},Ee=(t,n)=>FU(t,NU(n));var vA=t=>typeof t=="symbol"?t:t+"",od=(t,n)=>{var e={};for(var i in t)_A.call(t,i)&&n.indexOf(i)<0&&(e[i]=t[i]);if(t!=null&&k_)for(var i of k_(t))n.indexOf(i)<0&&bA.call(t,i)&&(e[i]=t[i]);return e};var gn=(t,n,e)=>new Promise((i,r)=>{var o=l=>{try{s(e.next(l))}catch(c){r(c)}},a=l=>{try{s(e.throw(l))}catch(c){r(c)}},s=l=>l.done?i(l.value):Promise.resolve(l.value).then(o,a);s((e=e.apply(t,n)).next())});var Aw;function T_(){return Aw}function $a(t){let n=Aw;return Aw=t,n}var yA=Symbol("NotFound");function ju(t){return t===yA||t?.name==="\u0275NotFound"}var ur=null,I_=!1,Ow=1,LU=null,un=Symbol("SIGNAL");function Xe(t){let n=ur;return ur=t,n}function P_(){return ur}var ad={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 Tl(t){if(I_)throw new Error("");if(ur===null)return;ur.consumerOnSignalRead(t);let n=ur.producersTail;if(n!==void 0&&n.producer===t)return;let e,i=ur.recomputing;if(i&&(e=n!==void 0?n.nextProducer:ur.producers,e!==void 0&&e.producer===t)){ur.producersTail=e,e.lastReadVersion=t.version;return}let r=t.consumersTail;if(r!==void 0&&r.consumer===ur&&(!i||BU(r,ur)))return;let o=Hu(ur),a={producer:t,consumer:ur,nextProducer:e,prevConsumer:r,lastReadVersion:t.version,nextConsumer:void 0};ur.producersTail=a,n!==void 0?n.nextProducer=a:ur.producers=a,o&&DA(t,a)}function xA(){Ow++}function F_(t){if(!(Hu(t)&&!t.dirty)&&!(!t.dirty&&t.lastCleanEpoch===Ow)){if(!t.producerMustRecompute(t)&&!ld(t)){R_(t);return}t.producerRecomputeValue(t),R_(t)}}function Rw(t){if(t.consumers===void 0)return;let n=I_;I_=!0;try{for(let e=t.consumers;e!==void 0;e=e.nextConsumer){let i=e.consumer;i.dirty||VU(i)}}finally{I_=n}}function Pw(){return ur?.consumerAllowSignalWrites!==!1}function VU(t){t.dirty=!0,Rw(t),t.consumerMarkedDirty?.(t)}function R_(t){t.dirty=!1,t.lastCleanEpoch=Ow}function Il(t){return t&&CA(t),Xe(t)}function CA(t){t.producersTail=void 0,t.recomputing=!0}function sd(t,n){Xe(n),t&&wA(t)}function wA(t){t.recomputing=!1;let n=t.producersTail,e=n!==void 0?n.nextProducer:t.producers;if(e!==void 0){if(Hu(t))do e=Fw(e);while(e!==void 0);n!==void 0?n.nextProducer=void 0:t.producers=void 0}}function ld(t){for(let n=t.producers;n!==void 0;n=n.nextProducer){let e=n.producer,i=n.lastReadVersion;if(i!==e.version||(F_(e),i!==e.version))return!0}return!1}function Al(t){if(Hu(t)){let n=t.producers;for(;n!==void 0;)n=Fw(n)}t.producers=void 0,t.producersTail=void 0,t.consumers=void 0,t.consumersTail=void 0}function DA(t,n){let e=t.consumersTail,i=Hu(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,!i)for(let r=t.producers;r!==void 0;r=r.nextProducer)DA(r.producer,r)}function Fw(t){let n=t.producer,e=t.nextProducer,i=t.nextConsumer,r=t.prevConsumer;if(t.nextConsumer=void 0,t.prevConsumer=void 0,i!==void 0?i.prevConsumer=r:n.consumersTail=r,r!==void 0)r.nextConsumer=i;else if(n.consumers=i,!Hu(n)){let o=n.producers;for(;o!==void 0;)o=Fw(o)}return e}function Hu(t){return t.consumerIsAlwaysLive||t.consumers!==void 0}function N_(t){LU?.(t)}function BU(t,n){let e=n.producersTail;if(e!==void 0){let i=n.producers;do{if(i===t)return!0;if(i===e)break;i=i.nextProducer}while(i!==void 0)}return!1}function L_(t,n){return Object.is(t,n)}function yp(t,n){let e=Object.create(jU);e.computation=t,n!==void 0&&(e.equal=n);let i=()=>{if(F_(e),Tl(e),e.value===vp)throw e.error;return e.value};return i[un]=e,N_(e),i}var A_=Symbol("UNSET"),O_=Symbol("COMPUTING"),vp=Symbol("ERRORED"),jU=Ee(k({},ad),{value:A_,dirty:!0,error:null,equal:L_,kind:"computed",producerMustRecompute(t){return t.value===A_||t.value===O_},producerRecomputeValue(t){if(t.value===O_)throw new Error("");let n=t.value;t.value=O_;let e=Il(t),i,r=!1;try{i=t.computation(),Xe(null),r=n!==A_&&n!==vp&&i!==vp&&t.equal(n,i)}catch(o){i=vp,t.error=o}finally{sd(t,e)}if(r){t.value=n;return}t.value=i,t.version++}});function HU(){throw new Error}var EA=HU;function MA(t){EA(t)}function Nw(t){EA=t}var zU=null;function Lw(t,n){let e=Object.create(xp);e.value=t,n!==void 0&&(e.equal=n);let i=()=>SA(e);return i[un]=e,N_(e),[i,a=>cd(e,a),a=>Vw(e,a)]}function SA(t){return Tl(t),t.value}function cd(t,n){Pw()||MA(t),t.equal(t.value,n)||(t.value=n,UU(t))}function Vw(t,n){Pw()||MA(t),cd(t,n(t.value))}var xp=Ee(k({},ad),{equal:L_,value:void 0,kind:"signal"});function UU(t){t.version++,xA(),Rw(t),zU?.(t)}function Ke(t){return typeof t=="function"}function Ol(t){let e=t(i=>{Error.call(i),i.stack=new Error().stack});return e.prototype=Object.create(Error.prototype),e.prototype.constructor=e,e}var V_=Ol(t=>function(e){t(this),this.message=e?`${e.length} errors occurred during unsubscription: ${e.map((i,r)=>`${r+1}) ${i.toString()}`).join(` - `)}`:"",this.name="UnsubscriptionError",this.errors=e});function od(t,n){if(t){let e=t.indexOf(n);0<=e&&t.splice(e,1)}}var ke=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 o of e)o.remove(this);else e.remove(this);let{initialTeardown:i}=this;if(Ke(i))try{i()}catch(o){n=o instanceof F_?o.errors:[o]}let{_finalizers:r}=this;if(r){this._finalizers=null;for(let o of r)try{wA(o)}catch(a){n=n??[],a instanceof F_?n=[...n,...a.errors]:n.push(a)}}if(n)throw new F_(n)}}add(n){var e;if(n&&n!==this)if(this.closed)wA(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)&&od(e,n)}remove(n){let{_finalizers:e}=this;e&&od(e,n),n instanceof t&&n._removeParent(this)}};ke.EMPTY=(()=>{let t=new ke;return t.closed=!0,t})();var Pw=ke.EMPTY;function N_(t){return t instanceof ke||t&&"closed"in t&&Ke(t.remove)&&Ke(t.add)&&Ke(t.unsubscribe)}function wA(t){Ke(t)?t():t.unsubscribe()}var ha={onUnhandledError:null,onStoppedNotification:null,Promise:void 0,useDeprecatedSynchronousErrorHandling:!1,useDeprecatedNextContext:!1};var Lu={setTimeout(t,n,...e){let{delegate:i}=Lu;return i?.setTimeout?i.setTimeout(t,n,...e):setTimeout(t,n,...e)},clearTimeout(t){let{delegate:n}=Lu;return(n?.clearTimeout||clearTimeout)(t)},delegate:void 0};function L_(t){Lu.setTimeout(()=>{let{onUnhandledError:n}=ha;if(n)n(t);else throw t})}function ad(){}var DA=Fw("C",void 0,void 0);function EA(t){return Fw("E",void 0,t)}function MA(t){return Fw("N",t,void 0)}function Fw(t,n,e){return{kind:t,value:n,error:e}}var sd=null;function Vu(t){if(ha.useDeprecatedSynchronousErrorHandling){let n=!sd;if(n&&(sd={errorThrown:!1,error:null}),t(),n){let{errorThrown:e,error:i}=sd;if(sd=null,e)throw i}}else t()}function kA(t){ha.useDeprecatedSynchronousErrorHandling&&sd&&(sd.errorThrown=!0,sd.error=t)}var ld=class extends ke{constructor(n){super(),this.isStopped=!1,n?(this.destination=n,N_(n)&&n.add(this)):this.destination=F6}static create(n,e,i){return new Bs(n,e,i)}next(n){this.isStopped?Lw(MA(n),this):this._next(n)}error(n){this.isStopped?Lw(EA(n),this):(this.isStopped=!0,this._error(n))}complete(){this.isStopped?Lw(DA,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()}}},R6=Function.prototype.bind;function Nw(t,n){return R6.call(t,n)}var Vw=class{constructor(n){this.partialObserver=n}next(n){let{partialObserver:e}=this;if(e.next)try{e.next(n)}catch(i){V_(i)}}error(n){let{partialObserver:e}=this;if(e.error)try{e.error(n)}catch(i){V_(i)}else V_(n)}complete(){let{partialObserver:n}=this;if(n.complete)try{n.complete()}catch(e){V_(e)}}},Bs=class extends ld{constructor(n,e,i){super();let r;if(Ke(n)||!n)r={next:n??void 0,error:e??void 0,complete:i??void 0};else{let o;this&&ha.useDeprecatedNextContext?(o=Object.create(n),o.unsubscribe=()=>this.unsubscribe(),r={next:n.next&&Nw(n.next,o),error:n.error&&Nw(n.error,o),complete:n.complete&&Nw(n.complete,o)}):r=n}this.destination=new Vw(r)}};function V_(t){ha.useDeprecatedSynchronousErrorHandling?kA(t):L_(t)}function P6(t){throw t}function Lw(t,n){let{onStoppedNotification:e}=ha;e&&Lu.setTimeout(()=>e(t,n))}var F6={closed:!0,next:ad,error:P6,complete:ad};var Bu=typeof Symbol=="function"&&Symbol.observable||"@@observable";function Mr(t){return t}function Bw(...t){return jw(t)}function jw(t){return t.length===0?Mr:t.length===1?t[0]:function(e){return t.reduce((i,r)=>r(i),e)}}var Fe=(()=>{class t{constructor(e){e&&(this._subscribe=e)}lift(e){let i=new t;return i.source=this,i.operator=e,i}subscribe(e,i,r){let o=L6(e)?e:new Bs(e,i,r);return Vu(()=>{let{operator:a,source:s}=this;o.add(a?a.call(o,s):s?this._subscribe(o):this._trySubscribe(o))}),o}_trySubscribe(e){try{return this._subscribe(e)}catch(i){e.error(i)}}forEach(e,i){return i=SA(i),new i((r,o)=>{let a=new Bs({next:s=>{try{e(s)}catch(l){o(l),a.unsubscribe()}},error:o,complete:r});this.subscribe(a)})}_subscribe(e){var i;return(i=this.source)===null||i===void 0?void 0:i.subscribe(e)}[Bu](){return this}pipe(...e){return jw(e)(this)}toPromise(e){return e=SA(e),new e((i,r)=>{let o;this.subscribe(a=>o=a,a=>r(a),()=>i(o))})}}return t.create=n=>new t(n),t})();function SA(t){var n;return(n=t??ha.Promise)!==null&&n!==void 0?n:Promise}function N6(t){return t&&Ke(t.next)&&Ke(t.error)&&Ke(t.complete)}function L6(t){return t&&t instanceof ld||N6(t)&&N_(t)}function Hw(t){return Ke(t?.lift)}function Qe(t){return n=>{if(Hw(n))return n.lift(function(e){try{return t(e,this)}catch(i){this.error(i)}});throw new TypeError("Unable to lift unknown Observable type")}}function Ue(t,n,e,i,r){return new zw(t,n,e,i,r)}var zw=class extends ld{constructor(n,e,i,r,o,a){super(n),this.onFinalize=o,this.shouldUnsubscribe=a,this._next=e?function(s){try{e(s)}catch(l){n.error(l)}}:super._next,this._error=r?function(s){try{r(s)}catch(l){n.error(l)}finally{this.unsubscribe()}}:super._error,this._complete=i?function(){try{i()}catch(s){n.error(s)}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 ju(){return Qe((t,n)=>{let e=null;t._refCount++;let i=Ue(n,void 0,void 0,void 0,()=>{if(!t||t._refCount<=0||0<--t._refCount){e=null;return}let r=t._connection,o=e;e=null,r&&(!o||r===o)&&r.unsubscribe(),n.unsubscribe()});t.subscribe(i),i.closed||(e=t.connect())})}var Al=class extends Fe{constructor(n,e){super(),this.source=n,this.subjectFactory=e,this._subject=null,this._refCount=0,this._connection=null,Hw(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 ke;let e=this.getSubject();n.add(this.source.subscribe(Ue(e,void 0,()=>{this._teardown(),e.complete()},i=>{this._teardown(),e.error(i)},()=>this._teardown()))),n.closed&&(this._connection=null,n=ke.EMPTY)}return n}refCount(){return ju()(this)}};var Hu={schedule(t){let n=requestAnimationFrame,e=cancelAnimationFrame,{delegate:i}=Hu;i&&(n=i.requestAnimationFrame,e=i.cancelAnimationFrame);let r=n(o=>{e=void 0,t(o)});return new ke(()=>e?.(r))},requestAnimationFrame(...t){let{delegate:n}=Hu;return(n?.requestAnimationFrame||requestAnimationFrame)(...t)},cancelAnimationFrame(...t){let{delegate:n}=Hu;return(n?.cancelAnimationFrame||cancelAnimationFrame)(...t)},delegate:void 0};var TA=Il(t=>function(){t(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"});var z=(()=>{class t extends Fe{constructor(){super(),this.closed=!1,this.currentObservers=null,this.observers=[],this.isStopped=!1,this.hasError=!1,this.thrownError=null}lift(e){let i=new B_(this,this);return i.operator=e,i}_throwIfClosed(){if(this.closed)throw new TA}next(e){Vu(()=>{if(this._throwIfClosed(),!this.isStopped){this.currentObservers||(this.currentObservers=Array.from(this.observers));for(let i of this.currentObservers)i.next(e)}})}error(e){Vu(()=>{if(this._throwIfClosed(),!this.isStopped){this.hasError=this.isStopped=!0,this.thrownError=e;let{observers:i}=this;for(;i.length;)i.shift().error(e)}})}complete(){Vu(()=>{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:i,isStopped:r,observers:o}=this;return i||r?Pw:(this.currentObservers=null,o.push(e),new ke(()=>{this.currentObservers=null,od(o,e)}))}_checkFinalizedStatuses(e){let{hasError:i,thrownError:r,isStopped:o}=this;i?e.error(r):o&&e.complete()}asObservable(){let e=new Fe;return e.source=this,e}}return t.create=(n,e)=>new B_(n,e),t})(),B_=class extends z{constructor(n,e){super(),this.destination=n,this.source=e}next(n){var e,i;(i=(e=this.destination)===null||e===void 0?void 0:e.next)===null||i===void 0||i.call(e,n)}error(n){var e,i;(i=(e=this.destination)===null||e===void 0?void 0:e.error)===null||i===void 0||i.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,i;return(i=(e=this.source)===null||e===void 0?void 0:e.subscribe(n))!==null&&i!==void 0?i:Pw}};var tt=class extends z{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:i}=this;if(n)throw e;return this._throwIfClosed(),i}next(n){super.next(this._value=n)}};var gp={now(){return(gp.delegate||Date).now()},delegate:void 0};var $a=class extends z{constructor(n=1/0,e=1/0,i=gp){super(),this._bufferSize=n,this._windowTime=e,this._timestampProvider=i,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:i,_infiniteTimeWindow:r,_timestampProvider:o,_windowTime:a}=this;e||(i.push(n),!r&&i.push(o.now()+a)),this._trimBuffer(),super.next(n)}_subscribe(n){this._throwIfClosed(),this._trimBuffer();let e=this._innerSubscribe(n),{_infiniteTimeWindow:i,_buffer:r}=this,o=r.slice();for(let a=0;aIA(n)&&t()),n},clearImmediate(t){IA(t)}};var{setImmediate:B6,clearImmediate:j6}=AA,bp={setImmediate(...t){let{delegate:n}=bp;return(n?.setImmediate||B6)(...t)},clearImmediate(t){let{delegate:n}=bp;return(n?.clearImmediate||j6)(t)},delegate:void 0};var H_=class extends Ol{constructor(n,e){super(n,e),this.scheduler=n,this.work=e}requestAsyncId(n,e,i=0){return i!==null&&i>0?super.requestAsyncId(n,e,i):(n.actions.push(this),n._scheduled||(n._scheduled=bp.setImmediate(n.flush.bind(n,void 0))))}recycleAsyncId(n,e,i=0){var r;if(i!=null?i>0:this.delay>0)return super.recycleAsyncId(n,e,i);let{actions:o}=n;e!=null&&((r=o[o.length-1])===null||r===void 0?void 0:r.id)!==e&&(bp.clearImmediate(e),n._scheduled===e&&(n._scheduled=void 0))}};var zu=class t{constructor(n,e=t.now){this.schedulerActionCtor=n,this.now=e}schedule(n,e=0,i){return new this.schedulerActionCtor(this,n).schedule(i,e)}};zu.now=gp.now;var Rl=class extends zu{constructor(n,e=zu.now){super(n,e),this.actions=[],this._active=!1}flush(n){let{actions:e}=this;if(this._active){e.push(n);return}let i;this._active=!0;do if(i=n.execute(n.state,n.delay))break;while(n=e.shift());if(this._active=!1,i){for(;n=e.shift();)n.unsubscribe();throw i}}};var z_=class extends Rl{flush(n){this._active=!0;let e=this._scheduled;this._scheduled=void 0;let{actions:i}=this,r;n=n||i.shift();do if(r=n.execute(n.state,n.delay))break;while((n=i[0])&&n.id===e&&i.shift());if(this._active=!1,r){for(;(n=i[0])&&n.id===e&&i.shift();)n.unsubscribe();throw r}}};var U_=new z_(H_);var js=new Rl(Ol),OA=js;var $_=class extends Ol{constructor(n,e){super(n,e),this.scheduler=n,this.work=e}requestAsyncId(n,e,i=0){return i!==null&&i>0?super.requestAsyncId(n,e,i):(n.actions.push(this),n._scheduled||(n._scheduled=Hu.requestAnimationFrame(()=>n.flush(void 0))))}recycleAsyncId(n,e,i=0){var r;if(i!=null?i>0:this.delay>0)return super.recycleAsyncId(n,e,i);let{actions:o}=n;e!=null&&e===n._scheduled&&((r=o[o.length-1])===null||r===void 0?void 0:r.id)!==e&&(Hu.cancelAnimationFrame(e),n._scheduled=void 0)}};var W_=class extends Rl{flush(n){this._active=!0;let e;n?e=n.id:(e=this._scheduled,this._scheduled=void 0);let{actions:i}=this,r;n=n||i.shift();do if(r=n.execute(n.state,n.delay))break;while((n=i[0])&&n.id===e&&i.shift());if(this._active=!1,r){for(;(n=i[0])&&n.id===e&&i.shift();)n.unsubscribe();throw r}}};var G_=new W_($_);var Fi=new Fe(t=>t.complete());function q_(t){return t&&Ke(t.schedule)}function Ww(t){return t[t.length-1]}function Y_(t){return Ke(Ww(t))?t.pop():void 0}function Wa(t){return q_(Ww(t))?t.pop():void 0}function RA(t,n){return typeof Ww(t)=="number"?t.pop():n}function FA(t,n,e,i){function r(o){return o instanceof e?o:new e(function(a){a(o)})}return new(e||(e=Promise))(function(o,a){function s(d){try{c(i.next(d))}catch(m){a(m)}}function l(d){try{c(i.throw(d))}catch(m){a(m)}}function c(d){d.done?o(d.value):r(d.value).then(s,l)}c((i=i.apply(t,n||[])).next())})}function PA(t){var n=typeof Symbol=="function"&&Symbol.iterator,e=n&&t[n],i=0;if(e)return e.call(t);if(t&&typeof t.length=="number")return{next:function(){return t&&i>=t.length&&(t=void 0),{value:t&&t[i++],done:!t}}};throw new TypeError(n?"Object is not iterable.":"Symbol.iterator is not defined.")}function cd(t){return this instanceof cd?(this.v=t,this):new cd(t)}function NA(t,n,e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var i=e.apply(t,n||[]),r,o=[];return r=Object.create((typeof AsyncIterator=="function"?AsyncIterator:Object).prototype),s("next"),s("throw"),s("return",a),r[Symbol.asyncIterator]=function(){return this},r;function a(b){return function(v){return Promise.resolve(v).then(b,m)}}function s(b,v){i[b]&&(r[b]=function(w){return new Promise(function(x,D){o.push([b,w,x,D])>1||l(b,w)})},v&&(r[b]=v(r[b])))}function l(b,v){try{c(i[b](v))}catch(w){f(o[0][3],w)}}function c(b){b.value instanceof cd?Promise.resolve(b.value.v).then(d,m):f(o[0][2],b)}function d(b){l("next",b)}function m(b){l("throw",b)}function f(b,v){b(v),o.shift(),o.length&&l(o[0][0],o[0][1])}}function LA(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 PA=="function"?PA(t):t[Symbol.iterator](),e={},i("next"),i("throw"),i("return"),e[Symbol.asyncIterator]=function(){return this},e);function i(o){e[o]=t[o]&&function(a){return new Promise(function(s,l){a=t[o](a),r(s,l,a.done,a.value)})}}function r(o,a,s,l){Promise.resolve(l).then(function(c){o({value:c,done:s})},a)}}var Uu=t=>t&&typeof t.length=="number"&&typeof t!="function";function Q_(t){return Ke(t?.then)}function K_(t){return Ke(t[Bu])}function Z_(t){return Symbol.asyncIterator&&Ke(t?.[Symbol.asyncIterator])}function X_(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 H6(){return typeof Symbol!="function"||!Symbol.iterator?"@@iterator":Symbol.iterator}var J_=H6();function eb(t){return Ke(t?.[J_])}function tb(t){return NA(this,arguments,function*(){let e=t.getReader();try{for(;;){let{value:i,done:r}=yield cd(e.read());if(r)return yield cd(void 0);yield yield cd(i)}}finally{e.releaseLock()}})}function ib(t){return Ke(t?.getReader)}function At(t){if(t instanceof Fe)return t;if(t!=null){if(K_(t))return z6(t);if(Uu(t))return U6(t);if(Q_(t))return $6(t);if(Z_(t))return VA(t);if(eb(t))return W6(t);if(ib(t))return G6(t)}throw X_(t)}function z6(t){return new Fe(n=>{let e=t[Bu]();if(Ke(e.subscribe))return e.subscribe(n);throw new TypeError("Provided object does not correctly implement Symbol.observable")})}function U6(t){return new Fe(n=>{for(let e=0;e{t.then(e=>{n.closed||(n.next(e),n.complete())},e=>n.error(e)).then(null,L_)})}function W6(t){return new Fe(n=>{for(let e of t)if(n.next(e),n.closed)return;n.complete()})}function VA(t){return new Fe(n=>{q6(t,n).catch(e=>n.error(e))})}function G6(t){return VA(tb(t))}function q6(t,n){var e,i,r,o;return FA(this,void 0,void 0,function*(){try{for(e=LA(t);i=yield e.next(),!i.done;){let a=i.value;if(n.next(a),n.closed)return}}catch(a){r={error:a}}finally{try{i&&!i.done&&(o=e.return)&&(yield o.call(e))}finally{if(r)throw r.error}}n.complete()})}function dr(t,n,e,i=0,r=!1){let o=n.schedule(function(){e(),r?t.add(this.schedule(null,i)):this.unsubscribe()},i);if(t.add(o),!r)return o}function nb(t,n=0){return Qe((e,i)=>{e.subscribe(Ue(i,r=>dr(i,t,()=>i.next(r),n),()=>dr(i,t,()=>i.complete(),n),r=>dr(i,t,()=>i.error(r),n)))})}function rb(t,n=0){return Qe((e,i)=>{i.add(t.schedule(()=>e.subscribe(i),n))})}function BA(t,n){return At(t).pipe(rb(n),nb(n))}function jA(t,n){return At(t).pipe(rb(n),nb(n))}function HA(t,n){return new Fe(e=>{let i=0;return n.schedule(function(){i===t.length?e.complete():(e.next(t[i++]),e.closed||this.schedule())})})}function zA(t,n){return new Fe(e=>{let i;return dr(e,n,()=>{i=t[J_](),dr(e,n,()=>{let r,o;try{({value:r,done:o}=i.next())}catch(a){e.error(a);return}o?e.complete():e.next(r)},0,!0)}),()=>Ke(i?.return)&&i.return()})}function ob(t,n){if(!t)throw new Error("Iterable cannot be null");return new Fe(e=>{dr(e,n,()=>{let i=t[Symbol.asyncIterator]();dr(e,n,()=>{i.next().then(r=>{r.done?e.complete():e.next(r.value)})},0,!0)})})}function UA(t,n){return ob(tb(t),n)}function $A(t,n){if(t!=null){if(K_(t))return BA(t,n);if(Uu(t))return HA(t,n);if(Q_(t))return jA(t,n);if(Z_(t))return ob(t,n);if(eb(t))return zA(t,n);if(ib(t))return UA(t,n)}throw X_(t)}function Ot(t,n){return n?$A(t,n):At(t)}function Q(...t){let n=Wa(t);return Ot(t,n)}function Wn(t,n){let e=Ke(t)?t:()=>t,i=r=>r.error(e());return new Fe(n?r=>n.schedule(i,0,r):i)}function ji(t){return!!t&&(t instanceof Fe||Ke(t.lift)&&Ke(t.subscribe))}var Hs=Il(t=>function(){t(this),this.name="EmptyError",this.message="no elements in sequence"});function ab(t){return t instanceof Date&&!isNaN(t)}var Y6=Il(t=>function(e=null){t(this),this.message="Timeout has occurred",this.name="TimeoutError",this.info=e});function Gw(t,n){let{first:e,each:i,with:r=Q6,scheduler:o=n??js,meta:a=null}=ab(t)?{first:t}:typeof t=="number"?{each:t}:t;if(e==null&&i==null)throw new TypeError("No timeout provided.");return Qe((s,l)=>{let c,d,m=null,f=0,b=v=>{d=dr(l,o,()=>{try{c.unsubscribe(),At(r({meta:a,lastValue:m,seen:f})).subscribe(l)}catch(w){l.error(w)}},v)};c=s.subscribe(Ue(l,v=>{d?.unsubscribe(),f++,l.next(m=v),i>0&&b(i)},void 0,void 0,()=>{d?.closed||d?.unsubscribe(),m=null})),!f&&b(e!=null?typeof e=="number"?e:+e-o.now():i)})}function Q6(t){throw new Y6(t)}function se(t,n){return Qe((e,i)=>{let r=0;e.subscribe(Ue(i,o=>{i.next(t.call(n,o,r++))}))})}var{isArray:K6}=Array;function Z6(t,n){return K6(n)?t(...n):t(n)}function $u(t){return se(n=>Z6(t,n))}var{isArray:X6}=Array,{getPrototypeOf:J6,prototype:e$,keys:t$}=Object;function sb(t){if(t.length===1){let n=t[0];if(X6(n))return{args:n,keys:null};if(i$(n)){let e=t$(n);return{args:e.map(i=>n[i]),keys:e}}}return{args:t,keys:null}}function i$(t){return t&&typeof t=="object"&&J6(t)===e$}function lb(t,n){return t.reduce((e,i,r)=>(e[i]=n[r],e),{})}function co(...t){let n=Wa(t),e=Y_(t),{args:i,keys:r}=sb(t);if(i.length===0)return Ot([],n);let o=new Fe(n$(i,n,r?a=>lb(r,a):Mr));return e?o.pipe($u(e)):o}function n$(t,n,e=Mr){return i=>{WA(n,()=>{let{length:r}=t,o=new Array(r),a=r,s=r;for(let l=0;l{let c=Ot(t[l],n),d=!1;c.subscribe(Ue(i,m=>{o[l]=m,d||(d=!0,s--),s||i.next(e(o.slice()))},()=>{--a||i.complete()}))},i)},i)}}function WA(t,n,e){t?dr(e,t,n):n()}function GA(t,n,e,i,r,o,a,s){let l=[],c=0,d=0,m=!1,f=()=>{m&&!l.length&&!c&&n.complete()},b=w=>c{o&&n.next(w),c++;let x=!1;At(e(w,d++)).subscribe(Ue(n,D=>{r?.(D),o?b(D):n.next(D)},()=>{x=!0},void 0,()=>{if(x)try{for(c--;l.length&&cv(D)):v(D)}f()}catch(D){n.error(D)}}))};return t.subscribe(Ue(n,b,()=>{m=!0,f()})),()=>{s?.()}}function Mt(t,n,e=1/0){return Ke(n)?Mt((i,r)=>se((o,a)=>n(i,o,r,a))(At(t(i,r))),e):(typeof n=="number"&&(e=n),Qe((i,r)=>GA(i,r,t,e)))}function uo(t=1/0){return Mt(Mr,t)}function qA(){return uo(1)}function mo(...t){return qA()(Ot(t,Wa(t)))}function kn(t){return new Fe(n=>{At(t()).subscribe(n)})}function Ga(...t){let n=Y_(t),{args:e,keys:i}=sb(t),r=new Fe(o=>{let{length:a}=e;if(!a){o.complete();return}let s=new Array(a),l=a,c=a;for(let d=0;d{m||(m=!0,c--),s[d]=f},()=>l--,void 0,()=>{(!l||!m)&&(c||o.next(i?lb(i,s):s),o.complete())}))}});return n?r.pipe($u(n)):r}var r$=["addListener","removeListener"],o$=["addEventListener","removeEventListener"],a$=["on","off"];function zs(t,n,e,i){if(Ke(e)&&(i=e,e=void 0),i)return zs(t,n,e).pipe($u(i));let[r,o]=c$(t)?o$.map(a=>s=>t[a](n,s,e)):s$(t)?r$.map(YA(t,n)):l$(t)?a$.map(YA(t,n)):[];if(!r&&Uu(t))return Mt(a=>zs(a,n,e))(At(t));if(!r)throw new TypeError("Invalid event target");return new Fe(a=>{let s=(...l)=>a.next(1o(s)})}function YA(t,n){return e=>i=>t[e](n,i)}function s$(t){return Ke(t.addListener)&&Ke(t.removeListener)}function l$(t){return Ke(t.on)&&Ke(t.off)}function c$(t){return Ke(t.addEventListener)&&Ke(t.removeEventListener)}function qa(t=0,n,e=OA){let i=-1;return n!=null&&(q_(n)?e=n:i=n),new Fe(r=>{let o=ab(t)?+t-e.now():t;o<0&&(o=0);let a=0;return e.schedule(function(){r.closed||(r.next(a++),0<=i?this.schedule(void 0,i):r.complete())},o)})}function Je(...t){let n=Wa(t),e=RA(t,1/0),i=t;return i.length?i.length===1?At(i[0]):uo(e)(Ot(i,n)):Fi}var{isArray:d$}=Array;function QA(t){return t.length===1&&d$(t[0])?t[0]:t}function ce(t,n){return Qe((e,i)=>{let r=0;e.subscribe(Ue(i,o=>t.call(n,o,r++)&&i.next(o)))})}function Wu(...t){return t=QA(t),t.length===1?At(t[0]):new Fe(u$(t))}function u$(t){return n=>{let e=[];for(let i=0;e&&!n.closed&&i{if(e){for(let o=0;o{let i=!1,r=null,o=null,a=!1,s=()=>{if(o?.unsubscribe(),o=null,i){i=!1;let c=r;r=null,e.next(c)}a&&e.complete()},l=()=>{o=null,a&&e.complete()};n.subscribe(Ue(e,c=>{i=!0,r=c,o||At(t(c)).subscribe(o=Ue(e,s,l))},()=>{a=!0,(!i||!o||o.closed)&&e.complete()}))})}function Pl(t,n=js){return KA(()=>qa(t,n))}function fi(t){return Qe((n,e)=>{let i=null,r=!1,o;i=n.subscribe(Ue(e,void 0,void 0,a=>{o=At(t(a,fi(t)(n))),i?(i.unsubscribe(),i=null,o.subscribe(e)):r=!0})),r&&(i.unsubscribe(),i=null,o.subscribe(e))})}function ZA(t,n,e,i,r){return(o,a)=>{let s=e,l=n,c=0;o.subscribe(Ue(a,d=>{let m=c++;l=s?t(l,d,m):(s=!0,d),i&&a.next(l)},r&&(()=>{s&&a.next(l),a.complete()})))}}function Ao(t,n){return Ke(n)?Mt(t,n,1):Mt(t,1)}function Rt(t,n=js){return Qe((e,i)=>{let r=null,o=null,a=null,s=()=>{if(r){r.unsubscribe(),r=null;let c=o;o=null,i.next(c)}};function l(){let c=a+t,d=n.now();if(d{o=c,a=n.now(),r||(r=n.schedule(l,t),i.add(r))},()=>{s(),i.complete()},void 0,()=>{o=r=null}))})}function Fl(t){return Qe((n,e)=>{let i=!1;n.subscribe(Ue(e,r=>{i=!0,e.next(r)},()=>{i||e.next(t),e.complete()}))})}function lt(t){return t<=0?()=>Fi:Qe((n,e)=>{let i=0;n.subscribe(Ue(e,r=>{++i<=t&&(e.next(r),t<=i&&e.complete())}))})}function XA(){return Qe((t,n)=>{t.subscribe(Ue(n,ad))})}function Gu(t){return se(()=>t)}function qw(t,n){return n?e=>mo(n.pipe(lt(1),XA()),e.pipe(qw(t))):Mt((e,i)=>At(t(e,i)).pipe(lt(1),Gu(e)))}function pa(t,n=js){let e=qa(t,n);return qw(()=>e)}function Sn(t,n=Mr){return t=t??m$,Qe((e,i)=>{let r,o=!0;e.subscribe(Ue(i,a=>{let s=n(a);(o||!t(r,s))&&(o=!1,r=s,i.next(a))}))})}function m$(t,n){return t===n}function cb(t=h$){return Qe((n,e)=>{let i=!1;n.subscribe(Ue(e,r=>{i=!0,e.next(r)},()=>i?e.complete():e.error(t())))})}function h$(){return new Hs}function Yw(t,n){return Qe((e,i)=>{let r=0;e.subscribe(Ue(i,o=>{t.call(n,o,r++,e)||(i.next(!1),i.complete())},()=>{i.next(!0),i.complete()}))})}function Hr(t){return Qe((n,e)=>{try{n.subscribe(e)}finally{e.add(t)}})}function gn(t,n){let e=arguments.length>=2;return i=>i.pipe(t?ce((r,o)=>t(r,o,i)):Mr,lt(1),e?Fl(n):cb(()=>new Hs))}function qu(t){return t<=0?()=>Fi:Qe((n,e)=>{let i=[];n.subscribe(Ue(e,r=>{i.push(r),t{for(let r of i)e.next(r);e.complete()},void 0,()=>{i=null}))})}function Qw(t,n){let e=arguments.length>=2;return i=>i.pipe(t?ce((r,o)=>t(r,o,i)):Mr,qu(1),e?Fl(n):cb(()=>new Hs))}function db(){return Qe((t,n)=>{let e,i=!1;t.subscribe(Ue(n,r=>{let o=e;e=r,i&&n.next([o,r]),i=!0}))})}function Kw(t,n){return Qe(ZA(t,n,arguments.length>=2,!0))}function Nl(t={}){let{connector:n=()=>new z,resetOnError:e=!0,resetOnComplete:i=!0,resetOnRefCountZero:r=!0}=t;return o=>{let a,s,l,c=0,d=!1,m=!1,f=()=>{s?.unsubscribe(),s=void 0},b=()=>{f(),a=l=void 0,d=m=!1},v=()=>{let w=a;b(),w?.unsubscribe()};return Qe((w,x)=>{c++,!m&&!d&&f();let D=l=l??n();x.add(()=>{c--,c===0&&!m&&!d&&(s=Zw(v,r))}),D.subscribe(x),!a&&c>0&&(a=new Bs({next:P=>D.next(P),error:P=>{m=!0,f(),s=Zw(b,e,P),D.error(P)},complete:()=>{d=!0,f(),s=Zw(b,i),D.complete()}}),At(w).subscribe(a))})(o)}}function Zw(t,n,...e){if(n===!0){t();return}if(n===!1)return;let i=new Bs({next:()=>{i.unsubscribe(),t()}});return At(n(...e)).subscribe(i)}function dd(t,n,e){let i,r=!1;return t&&typeof t=="object"?{bufferSize:i=1/0,windowTime:n=1/0,refCount:r=!1,scheduler:e}=t:i=t??1/0,Nl({connector:()=>new $a(i,n,e),resetOnError:!0,resetOnComplete:!1,resetOnRefCountZero:r})}function Ya(t){return ce((n,e)=>t<=e)}function He(...t){let n=Wa(t);return Qe((e,i)=>{(n?mo(t,e,n):mo(t,e)).subscribe(i)})}function $e(t,n){return Qe((e,i)=>{let r=null,o=0,a=!1,s=()=>a&&!r&&i.complete();e.subscribe(Ue(i,l=>{r?.unsubscribe();let c=0,d=o++;At(t(l,d)).subscribe(r=Ue(i,m=>i.next(n?n(l,m,d,c++):m),()=>{r=null,s()}))},()=>{a=!0,s()}))})}function Te(t){return Qe((n,e)=>{At(t).subscribe(Ue(e,()=>e.complete(),ad)),!e.closed&&n.subscribe(e)})}function Xw(t,n=!1){return Qe((e,i)=>{let r=0;e.subscribe(Ue(i,o=>{let a=t(o,r++);(a||n)&&i.next(o),!a&&i.complete()}))})}function Be(t,n,e){let i=Ke(t)||n||e?{next:t,error:n,complete:e}:t;return i?Qe((r,o)=>{var a;(a=i.subscribe)===null||a===void 0||a.call(i);let s=!0;r.subscribe(Ue(o,l=>{var c;(c=i.next)===null||c===void 0||c.call(i,l),o.next(l)},()=>{var l;s=!1,(l=i.complete)===null||l===void 0||l.call(i),o.complete()},l=>{var c;s=!1,(c=i.error)===null||c===void 0||c.call(i,l),o.error(l)},()=>{var l,c;s&&((l=i.unsubscribe)===null||l===void 0||l.call(i)),(c=i.finalize)===null||c===void 0||c.call(i)}))}):Mr}function JA(t){let n=Xe(null);try{return t()}finally{Xe(n)}}var eO=De(M({},td),{consumerIsAlwaysLive:!0,consumerAllowSignalWrites:!0,dirty:!0,kind:"effect"});function tO(t){if(t.dirty=!1,t.version>0&&!nd(t))return;t.version++;let n=Sl(t);try{t.cleanup(),t.fn()}finally{id(t,n)}}var Ll=class{full;major;minor;patch;constructor(n){this.full=n;let e=n.split(".");this.major=e[0],this.minor=e[1],this.patch=e.slice(2).join(".")}},wp=new Ll("20.3.16");var pb="https://angular.dev/best-practices/security#preventing-cross-site-scripting-xss",ue=class extends Error{code;constructor(n,e){super(Ro(n,e)),this.code=n}};function p$(t){return`NG0${Math.abs(t)}`}function Ro(t,n){return`${p$(t)}${n?": "+n:""}`}var Po=globalThis;function Qt(t){for(let n in t)if(t[n]===Qt)return n;throw Error("")}function rO(t,n){for(let e in n)n.hasOwnProperty(e)&&!t.hasOwnProperty(e)&&(t[e]=n[e])}function $s(t){if(typeof t=="string")return t;if(Array.isArray(t))return`[${t.map($s).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 i=e.indexOf(` -`);return i>=0?e.slice(0,i):e}function fb(t,n){return t?n?`${t} ${n}`:t:n||""}var f$=Qt({__forward_ref__:Qt});function Kt(t){return t.__forward_ref__=Kt,t.toString=function(){return $s(this())},t}function _n(t){return dD(t)?t():t}function dD(t){return typeof t=="function"&&t.hasOwnProperty(f$)&&t.__forward_ref__===Kt}function O(t){return{token:t.token,providedIn:t.providedIn||null,factory:t.factory,value:void 0}}function J(t){return{providers:t.providers||[],imports:t.imports||[]}}function Dp(t){return g$(t,gb)}function uD(t){return Dp(t)!==null}function g$(t,n){return t.hasOwnProperty(n)&&t[n]||null}function _$(t){let n=t?.[gb]??null;return n||null}function eD(t){return t&&t.hasOwnProperty(mb)?t[mb]:null}var gb=Qt({\u0275prov:Qt}),mb=Qt({\u0275inj:Qt}),T=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=O({token:this,providedIn:e.providedIn||"root",factory:e.factory}))}get multi(){return this}toString(){return`InjectionToken ${this._desc}`}};function mD(t){return t&&!!t.\u0275providers}var hD=Qt({\u0275cmp:Qt}),pD=Qt({\u0275dir:Qt}),fD=Qt({\u0275pipe:Qt}),gD=Qt({\u0275mod:Qt}),yp=Qt({\u0275fac:Qt}),fd=Qt({__NG_ELEMENT_ID__:Qt}),iO=Qt({__NG_ENV_ID__:Qt});function Fo(t){return typeof t=="string"?t:t==null?"":String(t)}function oO(t){return typeof t=="function"?t.name||t.toString():typeof t=="object"&&t!=null&&typeof t.type=="function"?t.type.name||t.type.toString():Fo(t)}var aO=Qt({ngErrorCode:Qt}),b$=Qt({ngErrorMessage:Qt}),v$=Qt({ngTokenPath:Qt});function _D(t,n){return sO("",-200,n)}function _b(t,n){throw new ue(-201,!1)}function sO(t,n,e){let i=new ue(n,t);return i[aO]=n,i[b$]=t,e&&(i[v$]=e),i}function y$(t){return t[aO]}var tD;function lO(){return tD}function kr(t){let n=tD;return tD=t,n}function bD(t,n,e){let i=Dp(t);if(i&&i.providedIn=="root")return i.value===void 0?i.value=i.factory():i.value;if(e&8)return null;if(n!==void 0)return n;_b(t,"Injector")}var x$={},ud=x$,iD="__NG_DI_FLAG__",nD=class{injector;constructor(n){this.injector=n}retrieve(n,e){let i=md(e)||0;try{return this.injector.get(n,i&8?null:ud,i)}catch(r){if(Fu(r))return r;throw r}}};function C$(t,n=0){let e=M_();if(e===void 0)throw new ue(-203,!1);if(e===null)return bD(t,void 0,n);{let i=w$(n),r=e.retrieve(t,i);if(Fu(r)){if(i.optional)return null;throw r}return r}}function pe(t,n=0){return(lO()||C$)(_n(t),n)}function u(t,n){return pe(t,md(n))}function md(t){return typeof t>"u"||typeof t=="number"?t:0|(t.optional&&8)|(t.host&&1)|(t.self&&2)|(t.skipSelf&&4)}function w$(t){return{optional:!!(t&8),host:!!(t&1),self:!!(t&2),skipSelf:!!(t&4)}}function rD(t){let n=[];for(let e=0;eArray.isArray(e)?bb(e,n):n(e))}function yD(t,n,e){n>=t.length?t.push(e):t.splice(n,0,e)}function Ep(t,n){return n>=t.length-1?t.pop():t.splice(n,1)[0]}function uO(t,n){let e=[];for(let i=0;in;){let o=r-2;t[r]=t[o],r--}t[n]=e,t[n+1]=i}}function Mp(t,n,e){let i=Qu(t,n);return i>=0?t[i|1]=e:(i=~i,mO(t,i,n,e)),i}function vb(t,n){let e=Qu(t,n);if(e>=0)return t[e|1]}function Qu(t,n){return E$(t,n,1)}function E$(t,n,e){let i=0,r=t.length>>e;for(;r!==i;){let o=i+(r-i>>1),a=t[o<n?r=o:i=o+1}return~(r<{e.push(a)};return bb(n,a=>{let s=a;hb(s,o,[],i)&&(r||=[],r.push(s))}),r!==void 0&&fO(r,o),e}function fO(t,n){for(let e=0;e{n(o,i)})}}function hb(t,n,e,i){if(t=_n(t),!t)return!1;let r=null,o=eD(t),a=!o&&Ka(t);if(!o&&!a){let l=t.ngModule;if(o=eD(l),o)r=l;else return!1}else{if(a&&!a.standalone)return!1;r=t}let s=i.has(r);if(a){if(s)return!1;if(i.add(r),a.dependencies){let l=typeof a.dependencies=="function"?a.dependencies():a.dependencies;for(let c of l)hb(c,n,e,i)}}else if(o){if(o.imports!=null&&!s){i.add(r);let c;try{bb(o.imports,d=>{hb(d,n,e,i)&&(c||=[],c.push(d))})}finally{}c!==void 0&&fO(c,n)}if(!s){let c=Vl(r)||(()=>new r);n({provide:r,useFactory:c,deps:ur},r),n({provide:CD,useValue:r,multi:!0},r),n({provide:Qa,useValue:()=>pe(r),multi:!0},r)}let l=o.providers;if(l!=null&&!s){let c=t;ED(l,d=>{n(d,c)})}}else return!1;return r!==t&&t.providers!==void 0}function ED(t,n){for(let e of t)mD(e)&&(e=e.\u0275providers),Array.isArray(e)?ED(e,n):n(e)}var M$=Qt({provide:String,useValue:Qt});function gO(t){return t!==null&&typeof t=="object"&&M$ in t}function k$(t){return!!(t&&t.useExisting)}function S$(t){return!!(t&&t.useFactory)}function hd(t){return typeof t=="function"}function _O(t){return!!t.useClass}var kp=new T(""),ub={},nO={},Jw;function Ku(){return Jw===void 0&&(Jw=new xp),Jw}var Wt=class{},pd=class extends Wt{parent;source;scopes;records=new Map;_ngOnDestroyHooks=new Set;_onDestroyHooks=[];get destroyed(){return this._destroyed}_destroyed=!1;injectorDefTypes;constructor(n,e,i,r){super(),this.parent=e,this.source=i,this.scopes=r,aD(n,a=>this.processProvider(a)),this.records.set(xD,Yu(void 0,this)),r.has("environment")&&this.records.set(Wt,Yu(void 0,this));let o=this.records.get(kp);o!=null&&typeof o.value=="string"&&this.scopes.add(o.value),this.injectorDefTypes=new Set(this.get(CD,ur,{self:!0}))}retrieve(n,e){let i=md(e)||0;try{return this.get(n,ud,i)}catch(r){if(Fu(r))return r;throw r}}destroy(){vp(this),this._destroyed=!0;let n=Xe(null);try{for(let i of this._ngOnDestroyHooks)i.ngOnDestroy();let e=this._onDestroyHooks;this._onDestroyHooks=[];for(let i of e)i()}finally{this.records.clear(),this._ngOnDestroyHooks.clear(),this.injectorDefTypes.clear(),Xe(n)}}onDestroy(n){return vp(this),this._onDestroyHooks.push(n),()=>this.removeOnDestroy(n)}runInContext(n){vp(this);let e=Ua(this),i=kr(void 0),r;try{return n()}finally{Ua(e),kr(i)}}get(n,e=ud,i){if(vp(this),n.hasOwnProperty(iO))return n[iO](this);let r=md(i),o,a=Ua(this),s=kr(void 0);try{if(!(r&4)){let c=this.records.get(n);if(c===void 0){let d=R$(n)&&Dp(n);d&&this.injectableDefInScope(d)?c=Yu(oD(n),ub):c=null,this.records.set(n,c)}if(c!=null)return this.hydrate(n,c,r)}let l=r&2?Ku():this.parent;return e=r&8&&e===ud?null:e,l.get(n,e)}catch(l){let c=y$(l);throw c===-200||c===-201?new ue(c,null):l}finally{kr(s),Ua(a)}}resolveInjectorInitializers(){let n=Xe(null),e=Ua(this),i=kr(void 0),r;try{let o=this.get(Qa,ur,{self:!0});for(let a of o)a()}finally{Ua(e),kr(i),Xe(n)}}toString(){let n=[],e=this.records;for(let i of e.keys())n.push($s(i));return`R3Injector[${n.join(", ")}]`}processProvider(n){n=_n(n);let e=hd(n)?n:_n(n&&n.provide),i=I$(n);if(!hd(n)&&n.multi===!0){let r=this.records.get(e);r||(r=Yu(void 0,ub,!0),r.factory=()=>rD(r.multi),this.records.set(e,r)),e=n,r.multi.push(n)}this.records.set(e,i)}hydrate(n,e,i){let r=Xe(null);try{if(e.value===nO)throw _D($s(n));return e.value===ub&&(e.value=nO,e.value=e.factory(void 0,i)),typeof e.value=="object"&&e.value&&O$(e.value)&&this._ngOnDestroyHooks.add(e.value),e.value}finally{Xe(r)}}injectableDefInScope(n){if(!n.providedIn)return!1;let e=_n(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 oD(t){let n=Dp(t),e=n!==null?n.factory:Vl(t);if(e!==null)return e;if(t instanceof T)throw new ue(204,!1);if(t instanceof Function)return T$(t);throw new ue(204,!1)}function T$(t){if(t.length>0)throw new ue(204,!1);let e=_$(t);return e!==null?()=>e.factory(t):()=>new t}function I$(t){if(gO(t))return Yu(void 0,t.useValue);{let n=MD(t);return Yu(n,ub)}}function MD(t,n,e){let i;if(hd(t)){let r=_n(t);return Vl(r)||oD(r)}else if(gO(t))i=()=>_n(t.useValue);else if(S$(t))i=()=>t.useFactory(...rD(t.deps||[]));else if(k$(t))i=(r,o)=>pe(_n(t.useExisting),o!==void 0&&o&8?8:void 0);else{let r=_n(t&&(t.useClass||t.provide));if(A$(t))i=()=>new r(...rD(t.deps));else return Vl(r)||oD(r)}return i}function vp(t){if(t.destroyed)throw new ue(205,!1)}function Yu(t,n,e=!1){return{factory:t,value:n,multi:e?[]:void 0}}function A$(t){return!!t.deps}function O$(t){return t!==null&&typeof t=="object"&&typeof t.ngOnDestroy=="function"}function R$(t){return typeof t=="function"||typeof t=="object"&&t.ngMetadataName==="InjectionToken"}function aD(t,n){for(let e of t)Array.isArray(e)?aD(e,n):e&&mD(e)?aD(e.\u0275providers,n):n(e)}function In(t,n){let e;t instanceof pd?(vp(t),e=t):e=new nD(t);let i,r=Ua(e),o=kr(void 0);try{return n()}finally{Ua(r),kr(o)}}function bO(){return lO()!==void 0||M_()!=null}var ga=0,We=1,et=2,bn=3,No=4,Sr=5,gd=6,Zu=7,qi=8,Ws=9,Za=10,ri=11,Xu=12,kD=13,_d=14,mr=15,jl=16,bd=17,Xa=18,Sp=19,SD=20,Us=21,Cb=22,Gs=23,ho=24,vd=25,yd=26,mi=27,vO=1,TD=6,Hl=7,Tp=8,xd=9,Yi=10;function Ja(t){return Array.isArray(t)&&typeof t[vO]=="object"}function _a(t){return Array.isArray(t)&&t[vO]===!0}function ID(t){return(t.flags&4)!==0}function qs(t){return t.componentOffset>-1}function Ju(t){return(t.flags&1)===1}function ba(t){return!!t.template}function em(t){return(t[et]&512)!==0}function Cd(t){return(t[et]&256)===256}var AD="svg",yO="math";function Lo(t){for(;Array.isArray(t);)t=t[ga];return t}function OD(t,n){return Lo(n[t])}function Vo(t,n){return Lo(n[t.index])}function Ip(t,n){return t.data[n]}function tm(t,n){return t[n]}function RD(t,n,e,i){e>=t.data.length&&(t.data[e]=null,t.blueprint[e]=null),n[e]=i}function Bo(t,n){let e=n[t];return Ja(e)?e:e[ga]}function xO(t){return(t[et]&4)===4}function wb(t){return(t[et]&128)===128}function CO(t){return _a(t[bn])}function po(t,n){return n==null?null:t[n]}function PD(t){t[bd]=0}function FD(t){t[et]&1024||(t[et]|=1024,wb(t)&&zl(t))}function wO(t,n){for(;t>0;)n=n[_d],t--;return n}function Ap(t){return!!(t[et]&9216||t[ho]?.dirty)}function Db(t){t[Za].changeDetectionScheduler?.notify(8),t[et]&64&&(t[et]|=1024),Ap(t)&&zl(t)}function zl(t){t[Za].changeDetectionScheduler?.notify(0);let n=Bl(t);for(;n!==null&&!(n[et]&8192||(n[et]|=8192,!wb(n)));)n=Bl(n)}function ND(t,n){if(Cd(t))throw new ue(911,!1);t[Us]===null&&(t[Us]=[]),t[Us].push(n)}function DO(t,n){if(t[Us]===null)return;let e=t[Us].indexOf(n);e!==-1&&t[Us].splice(e,1)}function Bl(t){let n=t[bn];return _a(n)?n[bn]:n}function LD(t){return t[Zu]??=[]}function VD(t){return t.cleanup??=[]}function EO(t,n,e,i){let r=LD(n);r.push(e),t.firstCreatePass&&VD(t).push(i,r.length-1)}var ht={lFrame:NO(null),bindingsEnabled:!0,skipHydrationRootTNode:null};var sD=!1;function MO(){return ht.lFrame.elementDepthCount}function kO(){ht.lFrame.elementDepthCount++}function BD(){ht.lFrame.elementDepthCount--}function Eb(){return ht.bindingsEnabled}function jD(){return ht.skipHydrationRootTNode!==null}function HD(t){return ht.skipHydrationRootTNode===t}function zD(){ht.skipHydrationRootTNode=null}function Ne(){return ht.lFrame.lView}function gi(){return ht.lFrame.tView}function I(t){return ht.lFrame.contextLView=t,t[qi]}function A(t){return ht.lFrame.contextLView=null,t}function tn(){let t=UD();for(;t!==null&&t.type===64;)t=t.parent;return t}function UD(){return ht.lFrame.currentTNode}function SO(){let t=ht.lFrame,n=t.currentTNode;return t.isParent?n:n.parent}function im(t,n){let e=ht.lFrame;e.currentTNode=t,e.isParent=n}function $D(){return ht.lFrame.isParent}function WD(){ht.lFrame.isParent=!1}function TO(){return ht.lFrame.contextLView}function GD(){return sD}function nm(t){let n=sD;return sD=t,n}function es(){let t=ht.lFrame,n=t.bindingRootIndex;return n===-1&&(n=t.bindingRootIndex=t.tView.bindingStartIndex),n}function qD(){return ht.lFrame.bindingIndex}function IO(t){return ht.lFrame.bindingIndex=t}function ts(){return ht.lFrame.bindingIndex++}function Op(t){let n=ht.lFrame,e=n.bindingIndex;return n.bindingIndex=n.bindingIndex+t,e}function AO(){return ht.lFrame.inI18n}function OO(t,n){let e=ht.lFrame;e.bindingIndex=e.bindingRootIndex=t,Mb(n)}function RO(){return ht.lFrame.currentDirectiveIndex}function Mb(t){ht.lFrame.currentDirectiveIndex=t}function PO(t){let n=ht.lFrame.currentDirectiveIndex;return n===-1?null:t[n]}function kb(){return ht.lFrame.currentQueryIndex}function Rp(t){ht.lFrame.currentQueryIndex=t}function P$(t){let n=t[We];return n.type===2?n.declTNode:n.type===1?t[Sr]:null}function YD(t,n,e){if(e&4){let r=n,o=t;for(;r=r.parent,r===null&&!(e&1);)if(r=P$(o),r===null||(o=o[_d],r.type&10))break;if(r===null)return!1;n=r,t=o}let i=ht.lFrame=FO();return i.currentTNode=n,i.lView=t,!0}function Sb(t){let n=FO(),e=t[We];ht.lFrame=n,n.currentTNode=e.firstChild,n.lView=t,n.tView=e,n.contextLView=t,n.bindingIndex=e.bindingStartIndex,n.inI18n=!1}function FO(){let t=ht.lFrame,n=t===null?null:t.child;return n===null?NO(t):n}function NO(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 LO(){let t=ht.lFrame;return ht.lFrame=t.parent,t.currentTNode=null,t.lView=null,t}var QD=LO;function Tb(){let t=LO();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 VO(t){return(ht.lFrame.contextLView=wO(t,ht.lFrame.contextLView))[qi]}function va(){return ht.lFrame.selectedIndex}function Ul(t){ht.lFrame.selectedIndex=t}function rm(){let t=ht.lFrame;return Ip(t.tView,t.selectedIndex)}function Gt(){ht.lFrame.currentNamespace=AD}function jo(){F$()}function F$(){ht.lFrame.currentNamespace=null}function BO(){return ht.lFrame.currentNamespace}var jO=!0;function Ib(){return jO}function Pp(t){jO=t}function lD(t,n=null,e=null,i){let r=KD(t,n,e,i);return r.resolveInjectorInitializers(),r}function KD(t,n=null,e=null,i,r=new Set){let o=[e||ur,xb(t)];return i=i||(typeof t=="object"?void 0:$s(t)),new pd(o,n||Ku(),i||null,r)}var de=class t{static THROW_IF_NOT_FOUND=ud;static NULL=new xp;static create(n,e){if(Array.isArray(n))return lD({name:""},e,n,"");{let i=n.name??"";return lD({name:i},n.parent,n.providers,i)}}static \u0275prov=O({token:t,providedIn:"any",factory:()=>pe(xD)});static __NG_ELEMENT_ID__=-1},ge=new T(""),nn=(()=>{class t{static __NG_ELEMENT_ID__=N$;static __NG_ENV_ID__=e=>e}return t})(),Cp=class extends nn{_lView;constructor(n){super(),this._lView=n}get destroyed(){return Cd(this._lView)}onDestroy(n){let e=this._lView;return ND(e,n),()=>DO(e,n)}};function N$(){return new Cp(Ne())}var Tn=class{_console=console;handleError(n){this._console.error("ERROR",n)}},hr=new T("",{providedIn:"root",factory:()=>{let t=u(Wt),n;return e=>{t.destroyed&&!n?setTimeout(()=>{throw e}):(n??=t.get(Tn),n.handleError(e))}}}),HO={provide:Qa,useValue:()=>void u(Tn),multi:!0},L$=new T("",{providedIn:"root",factory:()=>{let t=u(ge).defaultView;if(!t)return;let n=u(hr),e=o=>{n(o.reason),o.preventDefault()},i=o=>{o.error?n(o.error):n(new Error(o.message,{cause:o})),o.preventDefault()},r=()=>{t.addEventListener("unhandledrejection",e),t.addEventListener("error",i)};typeof Zone<"u"?Zone.root.run(r):r(),u(nn).onDestroy(()=>{t.removeEventListener("error",i),t.removeEventListener("unhandledrejection",e)})}});function ZD(){return zr([pO(()=>void u(L$))])}function is(t){return typeof t=="function"&&t[ln]!==void 0}function he(t,n){let[e,i,r]=Ow(t,n?.equal),o=e,a=o[ln];return o.set=i,o.update=r,o.asReadonly=Ab.bind(o),o}function Ab(){let t=this[ln];if(t.readonlyFn===void 0){let n=()=>this();n[ln]=t,t.readonlyFn=n}return t.readonlyFn}function XD(t){return is(t)&&typeof t.set=="function"}var wd=(()=>{class t{view;node;constructor(e,i){this.view=e,this.node=i}static __NG_ELEMENT_ID__=V$}return t})();function V$(){return new wd(Ne(),tn())}var Oo=class{},Fp=new T("",{providedIn:"root",factory:()=>!1});var JD=new T(""),eE=new T(""),ns=(()=>{class t{taskId=0;pendingTasks=new Set;destroyed=!1;pendingTask=new tt(!1);get hasPendingTasks(){return this.destroyed?!1:this.pendingTask.value}get hasPendingTasksObservable(){return this.destroyed?new Fe(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),e}has(e){return this.pendingTasks.has(e)}remove(e){this.pendingTasks.delete(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=O({token:t,providedIn:"root",factory:()=>new t})}return t})(),om=(()=>{class t{internalPendingTasks=u(ns);scheduler=u(Oo);errorHandler=u(hr);add(){let e=this.internalPendingTasks.add();return()=>{this.internalPendingTasks.has(e)&&(this.scheduler.notify(11),this.internalPendingTasks.remove(e))}}run(e){let i=this.add();e().catch(this.errorHandler).finally(i)}static \u0275prov=O({token:t,providedIn:"root",factory:()=>new t})}return t})();function Dd(...t){}var Np=(()=>{class t{static \u0275prov=O({token:t,providedIn:"root",factory:()=>new cD})}return t})(),cD=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,i=this.queues.get(e);i.has(n)&&(i.delete(n),n.dirty&&this.dirtyEffectCount--)}enqueue(n){let e=n.zone;this.queues.has(e)||this.queues.set(e,new Set);let i=this.queues.get(e);i.has(n)||i.add(n)}flush(){for(;this.dirtyEffectCount>0;){let n=!1;for(let[e,i]of this.queues)e===null?n||=this.flushQueue(i):n||=e.run(()=>this.flushQueue(i));n||(this.dirtyEffectCount=0)}}flushQueue(n){let e=!1;for(let i of n)i.dirty&&(this.dirtyEffectCount--,e=!0,i.run());return e}};function pm(t){return{toString:t}.toString()}var Ob="__parameters__";function $$(t){return function(...e){if(t){let i=t(...e);for(let r in i)this[r]=i[r]}}}function kR(t,n,e){return pm(()=>{let i=$$(n);function r(...o){if(this instanceof r)return i.apply(this,o),this;let a=new r(...o);return s.annotation=a,s;function s(l,c,d){let m=l.hasOwnProperty(Ob)?l[Ob]:Object.defineProperty(l,Ob,{value:[]})[Ob];for(;m.length<=d;)m.push(null);return(m[d]=m[d]||[]).push(a),l}}return r.prototype.ngMetadataName=t,r.annotationCls=r,r})}var ss=vD(kR("Optional"),8);var Gl=vD(kR("SkipSelf"),4);var Td=Function;function W$(t){return typeof t=="function"}var Ub=class{previousValue;currentValue;firstChange;constructor(n,e,i){this.previousValue=n,this.currentValue=e,this.firstChange=i}isFirstChange(){return this.firstChange}};function SR(t,n,e,i){n!==null?n.applyValueToInputSignal(n,i):t[e]=i}var Ae=(()=>{let t=()=>TR;return t.ngInherit=!0,t})();function TR(t){return t.type.prototype.ngOnChanges&&(t.setInput=q$),G$}function G$(){let t=AR(this),n=t?.current;if(n){let e=t.previous;if(e===fa)t.previous=n;else for(let i in n)e[i]=n[i];t.current=null,this.ngOnChanges(n)}}function q$(t,n,e,i,r){let o=this.declaredInputs[i],a=AR(t)||Y$(t,{previous:fa,current:null}),s=a.current||(a.current={}),l=a.previous,c=l[o];s[o]=new Ub(c&&c.currentValue,e,l===fa),SR(t,n,r,e)}var IR="__ngSimpleChanges__";function AR(t){return t[IR]||null}function Y$(t,n){return t[IR]=n}var zO=[];var oi=function(t,n=null,e){for(let i=0;i=i)break}else n[l]<0&&(t[bd]+=65536),(s>14>16&&(t[et]&3)===n&&(t[et]+=16384,UO(s,o)):UO(s,o)}var sm=-1,Md=class{factory;name;injectImpl;resolving=!1;canSeeViewProviders;multi;componentProviders;index;providerFactory;constructor(n,e,i,r){this.factory=n,this.name=r,this.canSeeViewProviders=e,this.injectImpl=i}};function Z$(t){return(t.flags&8)!==0}function X$(t){return(t.flags&16)!==0}function J$(t,n,e){let i=0;for(;in){a=o-1;break}}}for(;o>16}function Wb(t,n){let e=tW(t),i=n;for(;e>0;)i=i[_d],e--;return i}var mE=!0;function Gb(t){let n=mE;return mE=t,n}var iW=256,NR=iW-1,LR=5,nW=0,rs={};function rW(t,n,e){let i;typeof e=="string"?i=e.charCodeAt(0)||0:e.hasOwnProperty(fd)&&(i=e[fd]),i==null&&(i=e[fd]=nW++);let r=i&NR,o=1<>LR)]|=o}function qb(t,n){let e=VR(t,n);if(e!==-1)return e;let i=n[We];i.firstCreatePass&&(t.injectorIndex=n.length,iE(i.data,t),iE(n,null),iE(i.blueprint,null));let r=ZE(t,n),o=t.injectorIndex;if(FR(r)){let a=$b(r),s=Wb(r,n),l=s[We].data;for(let c=0;c<8;c++)n[o+c]=s[a+c]|l[a+c]}return n[o+8]=r,o}function iE(t,n){t.push(0,0,0,0,0,0,0,0,n)}function VR(t,n){return t.injectorIndex===-1||t.parent&&t.parent.injectorIndex===t.injectorIndex||n[t.injectorIndex+8]===null?-1:t.injectorIndex}function ZE(t,n){if(t.parent&&t.parent.injectorIndex!==-1)return t.parent.injectorIndex;let e=0,i=null,r=n;for(;r!==null;){if(i=UR(r),i===null)return sm;if(e++,r=r[_d],i.injectorIndex!==-1)return i.injectorIndex|e<<16}return sm}function hE(t,n,e){rW(t,n,e)}function oW(t,n){if(n==="class")return t.classes;if(n==="style")return t.styles;let e=t.attrs;if(e){let i=e.length,r=0;for(;r>20,m=i?s:s+d,f=r?s+d:c;for(let b=m;b=l&&v.type===e)return b}if(r){let b=a[l];if(b&&ba(b)&&b.type===e)return l}return null}function Bp(t,n,e,i,r){let o=t[e],a=n.data;if(o instanceof Md){let s=o;if(s.resolving){let b=oO(a[e]);throw _D(b)}let l=Gb(s.canSeeViewProviders);s.resolving=!0;let c=a[e].type||a[e],d,m=s.injectImpl?kr(s.injectImpl):null,f=YD(t,i,0);try{o=t[e]=s.factory(void 0,r,a,t,i),n.firstCreatePass&&e>=i.directiveStart&&Q$(e,a[e],n)}finally{m!==null&&kr(m),Gb(l),s.resolving=!1,QD()}}return o}function sW(t){if(typeof t=="string")return t.charCodeAt(0)||0;let n=t.hasOwnProperty(fd)?t[fd]:void 0;return typeof n=="number"?n>=0?n&NR:lW:n}function WO(t,n,e){let i=1<>LR)]&i)}function GO(t,n){return!(t&2)&&!(t&1&&n)}var Ed=class{_tNode;_lView;constructor(n,e){this._tNode=n,this._lView=e}get(n,e,i){return HR(this._tNode,this._lView,n,md(i),e)}};function lW(){return new Ed(tn(),Ne())}function fe(t){return pm(()=>{let n=t.prototype.constructor,e=n[yp]||pE(n),i=Object.prototype,r=Object.getPrototypeOf(t.prototype).constructor;for(;r&&r!==i;){let o=r[yp]||pE(r);if(o&&o!==e)return o;r=Object.getPrototypeOf(r)}return o=>new o})}function pE(t){return dD(t)?()=>{let n=pE(_n(t));return n&&n()}:Vl(t)}function cW(t,n,e,i,r){let o=t,a=n;for(;o!==null&&a!==null&&a[et]&2048&&!em(a);){let s=zR(o,a,e,i|2,rs);if(s!==rs)return s;let l=o.parent;if(!l){let c=a[SD];if(c){let d=c.get(e,rs,i);if(d!==rs)return d}l=UR(a),a=a[_d]}o=l}return r}function UR(t){let n=t[We],e=n.type;return e===2?n.declTNode:e===1?t[Sr]:null}function qp(t){return oW(tn(),t)}function dW(){return fm(tn(),Ne())}function fm(t,n){return new q(Vo(t,n))}var q=(()=>{class t{nativeElement;constructor(e){this.nativeElement=e}static __NG_ELEMENT_ID__=dW}return t})();function $R(t){return t instanceof q?t.nativeElement:t}function uW(){return this._results[Symbol.iterator]()}var pr=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 z}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 i=dO(n);(this._changesDetected=!cO(this._results,i,e))&&(this._results=i,this.length=i.length,this.last=i[this.length-1],this.first=i[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]=uW};function WR(t){return(t.flags&128)===128}var XE=(function(t){return t[t.OnPush=0]="OnPush",t[t.Default=1]="Default",t})(XE||{}),GR=new Map,mW=0;function hW(){return mW++}function pW(t){GR.set(t[Sp],t)}function fE(t){GR.delete(t[Sp])}var qO="__ngContext__";function cm(t,n){Ja(n)?(t[qO]=n[Sp],pW(n)):t[qO]=n}function qR(t){return QR(t[Xu])}function YR(t){return QR(t[No])}function QR(t){for(;t!==null&&!_a(t);)t=t[No];return t}var gE;function JE(t){gE=t}function eM(){if(gE!==void 0)return gE;if(typeof document<"u")return document;throw new ue(210,!1)}var ql=new T("",{providedIn:"root",factory:()=>fW}),fW="ng",sv=new T(""),Ks=new T("",{providedIn:"platform",factory:()=>"unknown"});var Yp=new T(""),gm=new T("",{providedIn:"root",factory:()=>eM().body?.querySelector("[ngCspNonce]")?.getAttribute("ngCspNonce")||null});var gW="h",_W="b";var KR="r";var ZR="di";var XR=!1,JR=new T("",{providedIn:"root",factory:()=>XR});var lv=new T("");var bW=(t,n,e,i)=>{};function vW(t,n,e,i){bW(t,n,e,i)}function cv(t){return(t.flags&32)===32}var yW=()=>null;function eP(t,n,e=!1){return yW(t,n,e)}function tP(t,n){let e=t.contentQueries;if(e!==null){let i=Xe(null);try{for(let r=0;rt,createScript:t=>t,createScriptURL:t=>t})}catch{}return Rb}function dv(t){return xW()?.createHTML(t)||t}var Pb;function iP(){if(Pb===void 0&&(Pb=null,Po.trustedTypes))try{Pb=Po.trustedTypes.createPolicy("angular#unsafe-bypass",{createHTML:t=>t,createScript:t=>t,createScriptURL:t=>t})}catch{}return Pb}function YO(t){return iP()?.createHTML(t)||t}function QO(t){return iP()?.createScriptURL(t)||t}var Qs=class{changingThisBreaksApplicationSecurity;constructor(n){this.changingThisBreaksApplicationSecurity=n}toString(){return`SafeValue must use [property]=binding: ${this.changingThisBreaksApplicationSecurity} (see ${pb})`}},bE=class extends Qs{getTypeName(){return"HTML"}},vE=class extends Qs{getTypeName(){return"Style"}},yE=class extends Qs{getTypeName(){return"Script"}},xE=class extends Qs{getTypeName(){return"URL"}},CE=class extends Qs{getTypeName(){return"ResourceURL"}};function Ur(t){return t instanceof Qs?t.changingThisBreaksApplicationSecurity:t}function ls(t,n){let e=nP(t);if(e!=null&&e!==n){if(e==="ResourceURL"&&n==="URL")return!0;throw new Error(`Required a safe ${n}, got a ${e} (see ${pb})`)}return e===n}function nP(t){return t instanceof Qs&&t.getTypeName()||null}function iM(t){return new bE(t)}function nM(t){return new vE(t)}function rM(t){return new yE(t)}function oM(t){return new xE(t)}function aM(t){return new CE(t)}function CW(t){let n=new DE(t);return wW()?new wE(n):n}var wE=class{inertDocumentHelper;constructor(n){this.inertDocumentHelper=n}getInertBodyElement(n){n=""+n;try{let e=new window.DOMParser().parseFromString(dv(n),"text/html").body;return e===null?this.inertDocumentHelper.getInertBodyElement(n):(e.firstChild?.remove(),e)}catch{return null}}},DE=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=dv(n),e}};function wW(){try{return!!new window.DOMParser().parseFromString(dv(""),"text/html")}catch{return!1}}var DW=/^(?!javascript:)(?:[a-z0-9+.-]+:|[^&:\/?#]*(?:[\/?#]|$))/i;function Qp(t){return t=String(t),t.match(DW)?t:"unsafe:"+t}function Zs(t){let n={};for(let e of t.split(","))n[e]=!0;return n}function Kp(...t){let n={};for(let e of t)for(let i in e)e.hasOwnProperty(i)&&(n[i]=!0);return n}var rP=Zs("area,br,col,hr,img,wbr"),oP=Zs("colgroup,dd,dt,li,p,tbody,td,tfoot,th,thead,tr"),aP=Zs("rp,rt"),EW=Kp(aP,oP),MW=Kp(oP,Zs("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")),kW=Kp(aP,Zs("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")),KO=Kp(rP,MW,kW,EW),sP=Zs("background,cite,href,itemtype,longdesc,poster,src,xlink:href"),SW=Zs("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"),TW=Zs("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"),IW=Kp(sP,SW,TW),AW=Zs("script,style,template"),EE=class{sanitizedSomething=!1;buf=[];sanitizeChildren(n){let e=n.firstChild,i=!0,r=[];for(;e;){if(e.nodeType===Node.ELEMENT_NODE?i=this.startElement(e):e.nodeType===Node.TEXT_NODE?this.chars(e.nodeValue):this.sanitizedSomething=!0,i&&e.firstChild){r.push(e),e=PW(e);continue}for(;e;){e.nodeType===Node.ELEMENT_NODE&&this.endElement(e);let o=RW(e);if(o){e=o;break}e=r.pop()}}return this.buf.join("")}startElement(n){let e=ZO(n).toLowerCase();if(!KO.hasOwnProperty(e))return this.sanitizedSomething=!0,!AW.hasOwnProperty(e);this.buf.push("<"),this.buf.push(e);let i=n.attributes;for(let r=0;r"),!0}endElement(n){let e=ZO(n).toLowerCase();KO.hasOwnProperty(e)&&!rP.hasOwnProperty(e)&&(this.buf.push(""))}chars(n){this.buf.push(XO(n))}};function OW(t,n){return(t.compareDocumentPosition(n)&Node.DOCUMENT_POSITION_CONTAINED_BY)!==Node.DOCUMENT_POSITION_CONTAINED_BY}function RW(t){let n=t.nextSibling;if(n&&t!==n.previousSibling)throw lP(n);return n}function PW(t){let n=t.firstChild;if(n&&OW(t,n))throw lP(n);return n}function ZO(t){let n=t.nodeName;return typeof n=="string"?n:"FORM"}function lP(t){return new Error(`Failed to sanitize html because the element is clobbered: ${t.outerHTML}`)}var FW=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,NW=/([^\#-~ |!])/g;function XO(t){return t.replace(/&/g,"&").replace(FW,function(n){let e=n.charCodeAt(0),i=n.charCodeAt(1);return"&#"+((e-55296)*1024+(i-56320)+65536)+";"}).replace(NW,function(n){return"&#"+n.charCodeAt(0)+";"}).replace(//g,">")}var Fb;function uv(t,n){let e=null;try{Fb=Fb||CW(t);let i=n?String(n):"";e=Fb.getInertBodyElement(i);let r=5,o=i;do{if(r===0)throw new Error("Failed to sanitize html because the input is unstable");r--,i=o,o=e.innerHTML,e=Fb.getInertBodyElement(i)}while(i!==o);let s=new EE().sanitizeChildren(JO(e)||e);return dv(s)}finally{if(e){let i=JO(e)||e;for(;i.firstChild;)i.firstChild.remove()}}}function JO(t){return"content"in t&&LW(t)?t.content:null}function LW(t){return t.nodeType===Node.ELEMENT_NODE&&t.nodeName==="TEMPLATE"}var VW=/^>|^->||--!>|)/g,jW="\u200B$1\u200B";function HW(t){return t.replace(VW,n=>n.replace(BW,jW))}function zW(t,n){return t.createText(n)}function UW(t,n,e){t.setValue(n,e)}function $W(t,n){return t.createComment(HW(n))}function cP(t,n,e){return t.createElement(n,e)}function Yb(t,n,e,i,r){t.insertBefore(n,e,i,r)}function dP(t,n,e){t.appendChild(n,e)}function eR(t,n,e,i,r){i!==null?Yb(t,n,e,i,r):dP(t,n,e)}function uP(t,n,e,i){t.removeChild(null,n,e,i)}function WW(t,n,e){t.setAttribute(n,"style",e)}function GW(t,n,e){e===""?t.removeAttribute(n,"class"):t.setAttribute(n,"class",e)}function mP(t,n,e){let{mergedAttrs:i,classes:r,styles:o}=e;i!==null&&J$(t,n,i),r!==null&&GW(t,n,r),o!==null&&WW(t,n,o)}var An=(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})(An||{});function Zp(t){let n=lM();return n?YO(n.sanitize(An.HTML,t)||""):ls(t,"HTML")?YO(Ur(t)):uv(eM(),Fo(t))}function $r(t){let n=lM();return n?n.sanitize(An.URL,t)||"":ls(t,"URL")?Ur(t):Qp(Fo(t))}function hP(t){let n=lM();if(n)return QO(n.sanitize(An.RESOURCE_URL,t)||"");if(ls(t,"ResourceURL"))return QO(Ur(t));throw new ue(904,!1)}var qW=new Set(["embed","frame","iframe","media","script"]),YW=new Set(["base","link","script"]);function QW(t,n){return n==="src"&&qW.has(t)||n==="href"&&YW.has(t)||n==="xlink:href"&&t==="script"?hP:$r}function sM(t,n,e){return QW(n,e)(t)}function lM(){let t=Ne();return t&&t[Za].sanitizer}function pP(t){return t instanceof Function?t():t}function KW(t,n,e){let i=t.length;for(;;){let r=t.indexOf(n,e);if(r===-1)return r;if(r===0||t.charCodeAt(r-1)<=32){let o=n.length;if(r+o===i||t.charCodeAt(r+o)<=32)return r}e=r+1}}var fP="ng-template";function ZW(t,n,e,i){let r=0;if(i){for(;r-1){let o;for(;++ro?m="":m=r[d+1].toLowerCase(),i&2&&c!==m){if(ya(i))return!1;a=!0}}}}return ya(i)||a}function ya(t){return(t&1)===0}function e7(t,n,e,i){if(n===null)return-1;let r=0;if(i||!e){let o=!1;for(;r-1)for(e++;e0?'="'+s+'"':"")+"]"}else i&8?r+="."+a:i&4&&(r+=" "+a);else r!==""&&!ya(a)&&(n+=tR(o,r),r=""),i=a,o=o||!ya(i);e++}return r!==""&&(n+=tR(o,r)),n}function a7(t){return t.map(o7).join(",")}function s7(t){let n=[],e=[],i=1,r=2;for(;inull),a=i;if(n&&typeof n=="object"){let l=n;r=l.next?.bind(l),o=l.error?.bind(l),a=l.complete?.bind(l)}this.__isAsync&&(o=this.wrapInTimeout(o),r&&(r=this.wrapInTimeout(r)),a&&(a=this.wrapInTimeout(a)));let s=super.subscribe({next:r,error:o,complete:a});return n instanceof ke&&n.add(s),s}wrapInTimeout(n){return e=>{let i=this.pendingTasks?.add();setTimeout(()=>{try{n(e)}finally{i!==void 0&&this.pendingTasks?.remove(i)}})}}},U=kE;function xP(t){let n,e;function i(){t=Dd;try{e!==void 0&&typeof cancelAnimationFrame=="function"&&cancelAnimationFrame(e),n!==void 0&&clearTimeout(n)}catch{}}return n=setTimeout(()=>{t(),i()}),typeof requestAnimationFrame=="function"&&(e=requestAnimationFrame(()=>{t(),i()})),()=>i()}function nR(t){return queueMicrotask(()=>t()),()=>{t=Dd}}var pM="isAngularZone",Qb=pM+"_ID",m7=0,ae=class t{hasPendingMacrotasks=!1;hasPendingMicrotasks=!1;isStable=!0;onUnstable=new U(!1);onMicrotaskEmpty=new U(!1);onStable=new U(!1);onError=new U(!1);constructor(n){let{enableLongStackTrace:e=!1,shouldCoalesceEventChangeDetection:i=!1,shouldCoalesceRunChangeDetection:r=!1,scheduleInRootZone:o=yP}=n;if(typeof Zone>"u")throw new ue(908,!1);Zone.assertZonePatched();let a=this;a._nesting=0,a._outer=a._inner=Zone.current,Zone.TaskTrackingZoneSpec&&(a._inner=a._inner.fork(new Zone.TaskTrackingZoneSpec)),e&&Zone.longStackTraceZoneSpec&&(a._inner=a._inner.fork(Zone.longStackTraceZoneSpec)),a.shouldCoalesceEventChangeDetection=!r&&i,a.shouldCoalesceRunChangeDetection=r,a.callbackScheduled=!1,a.scheduleInRootZone=o,f7(a)}static isInAngularZone(){return typeof Zone<"u"&&Zone.current.get(pM)===!0}static assertInAngularZone(){if(!t.isInAngularZone())throw new ue(909,!1)}static assertNotInAngularZone(){if(t.isInAngularZone())throw new ue(909,!1)}run(n,e,i){return this._inner.run(n,e,i)}runTask(n,e,i,r){let o=this._inner,a=o.scheduleEventTask("NgZoneEvent: "+r,n,h7,Dd,Dd);try{return o.runTask(a,e,i)}finally{o.cancelTask(a)}}runGuarded(n,e,i){return this._inner.runGuarded(n,e,i)}runOutsideAngular(n){return this._outer.run(n)}},h7={};function fM(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 p7(t){if(t.isCheckStableRunning||t.callbackScheduled)return;t.callbackScheduled=!0;function n(){xP(()=>{t.callbackScheduled=!1,SE(t),t.isCheckStableRunning=!0,fM(t),t.isCheckStableRunning=!1})}t.scheduleInRootZone?Zone.root.run(()=>{n()}):t._outer.run(()=>{n()}),SE(t)}function f7(t){let n=()=>{p7(t)},e=m7++;t._inner=t._inner.fork({name:"angular",properties:{[pM]:!0,[Qb]:e,[Qb+e]:!0},onInvokeTask:(i,r,o,a,s,l)=>{if(g7(l))return i.invokeTask(o,a,s,l);try{return rR(t),i.invokeTask(o,a,s,l)}finally{(t.shouldCoalesceEventChangeDetection&&a.type==="eventTask"||t.shouldCoalesceRunChangeDetection)&&n(),oR(t)}},onInvoke:(i,r,o,a,s,l,c)=>{try{return rR(t),i.invoke(o,a,s,l,c)}finally{t.shouldCoalesceRunChangeDetection&&!t.callbackScheduled&&!_7(l)&&n(),oR(t)}},onHasTask:(i,r,o,a)=>{i.hasTask(o,a),r===o&&(a.change=="microTask"?(t._hasPendingMicrotasks=a.microTask,SE(t),fM(t)):a.change=="macroTask"&&(t.hasPendingMacrotasks=a.macroTask))},onHandleError:(i,r,o,a)=>(i.handleError(o,a),t.runOutsideAngular(()=>t.onError.emit(a)),!1)})}function SE(t){t._hasPendingMicrotasks||(t.shouldCoalesceEventChangeDetection||t.shouldCoalesceRunChangeDetection)&&t.callbackScheduled===!0?t.hasPendingMicrotasks=!0:t.hasPendingMicrotasks=!1}function rR(t){t._nesting++,t.isStable&&(t.isStable=!1,t.onUnstable.emit(null))}function oR(t){t._nesting--,fM(t)}var jp=class{hasPendingMicrotasks=!1;hasPendingMacrotasks=!1;isStable=!0;onUnstable=new U;onMicrotaskEmpty=new U;onStable=new U;onError=new U;run(n,e,i){return n.apply(e,i)}runGuarded(n,e,i){return n.apply(e,i)}runOutsideAngular(n){return n()}runTask(n,e,i,r){return n.apply(e,i)}};function g7(t){return CP(t,"__ignore_ng_zone__")}function _7(t){return CP(t,"__scheduler_tick__")}function CP(t,n){return!Array.isArray(t)||t.length!==1?!1:t[0]?.data?.[n]===!0}var pv=(()=>{class t{impl=null;execute(){this.impl?.execute()}static \u0275prov=O({token:t,providedIn:"root",factory:()=>new t})}return t})(),gM=[0,1,2,3],_M=(()=>{class t{ngZone=u(ae);scheduler=u(Oo);errorHandler=u(Tn,{optional:!0});sequences=new Set;deferredRegistrations=new Set;executing=!1;constructor(){u(Yl,{optional:!0})}execute(){let e=this.sequences.size>0;e&&oi(16),this.executing=!0;for(let i of gM)for(let r of this.sequences)if(!(r.erroredOrDestroyed||!r.hooks[i]))try{r.pipelinedValue=this.ngZone.runOutsideAngular(()=>this.maybeTrace(()=>{let o=r.hooks[i];return o(r.pipelinedValue)},r.snapshot))}catch(o){r.erroredOrDestroyed=!0,this.errorHandler?.handleError(o)}this.executing=!1;for(let i of this.sequences)i.afterRun(),i.once&&(this.sequences.delete(i),i.destroy());for(let i of this.deferredRegistrations)this.sequences.add(i);this.deferredRegistrations.size>0&&this.scheduler.notify(7),this.deferredRegistrations.clear(),e&&oi(17)}register(e){let{view:i}=e;i!==void 0?((i[vd]??=[]).push(e),zl(i),i[et]|=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,i){return i?i.run(hv.AFTER_NEXT_RENDER,e):e()}static \u0275prov=O({token:t,providedIn:"root",factory:()=>new t})}return t})(),Hp=class{impl;hooks;view;once;snapshot;erroredOrDestroyed=!1;pipelinedValue=void 0;unregisterOnDestroy;constructor(n,e,i,r,o,a=null){this.impl=n,this.hooks=e,this.view=i,this.once=r,this.snapshot=a,this.unregisterOnDestroy=o?.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?.[vd];n&&(this.view[vd]=n.filter(e=>e!==this))}};function pt(t,n){let e=n?.injector??u(de);return cs("NgAfterNextRender"),v7(t,e,n,!0)}function b7(t){return t instanceof Function?[void 0,void 0,t,void 0]:[t.earlyRead,t.write,t.mixedReadWrite,t.read]}function v7(t,n,e,i){let r=n.get(pv);r.impl??=n.get(_M);let o=n.get(Yl,null,{optional:!0}),a=e?.manualCleanup!==!0?n.get(nn):null,s=n.get(wd,null,{optional:!0}),l=new Hp(r.impl,b7(t),s?.view,i,a,o?.snapshot(null));return r.impl.register(l),l}var wP=new T("",{providedIn:"root",factory:()=>({queue:new Set,isScheduled:!1,scheduler:null})});function DP(t,n,e){let i=t.get(wP);if(Array.isArray(n))for(let r of n)i.queue.add(r),e?.detachedLeaveAnimationFns?.push(r);else i.queue.add(n),e?.detachedLeaveAnimationFns?.push(n);i.scheduler&&i.scheduler(t)}function y7(t,n){let e=t.get(wP);if(n.detachedLeaveAnimationFns){for(let i of n.detachedLeaveAnimationFns)e.queue.delete(i);n.detachedLeaveAnimationFns=void 0}}function x7(t,n){for(let[e,i]of n)DP(t,i.animateFns)}function aR(t,n,e,i){let r=t?.[yd]?.enter;n!==null&&r&&r.has(e.index)&&x7(i,r)}function am(t,n,e,i,r,o,a,s){if(r!=null){let l,c=!1;_a(r)?l=r:Ja(r)&&(c=!0,r=r[ga]);let d=Lo(r);t===0&&i!==null?(aR(s,i,o,e),a==null?dP(n,i,d):Yb(n,i,d,a||null,!0)):t===1&&i!==null?(aR(s,i,o,e),Yb(n,i,d,a||null,!0)):t===2?sR(s,o,e,m=>{uP(n,d,c,m)}):t===3&&sR(s,o,e,()=>{n.destroyNode(d)}),l!=null&&O7(n,t,e,l,o,i,a)}}function C7(t,n){EP(t,n),n[ga]=null,n[Sr]=null}function w7(t,n,e,i,r,o){i[ga]=r,i[Sr]=n,gv(t,i,e,1,r,o)}function EP(t,n){n[Za].changeDetectionScheduler?.notify(9),gv(t,n,n[ri],2,null,null)}function D7(t){let n=t[Xu];if(!n)return nE(t[We],t);for(;n;){let e=null;if(Ja(n))e=n[Xu];else{let i=n[Yi];i&&(e=i)}if(!e){for(;n&&!n[No]&&n!==t;)Ja(n)&&nE(n[We],n),n=n[bn];n===null&&(n=t),Ja(n)&&nE(n[We],n),e=n&&n[No]}n=e}}function bM(t,n){let e=t[xd],i=e.indexOf(n);e.splice(i,1)}function fv(t,n){if(Cd(n))return;let e=n[ri];e.destroyNode&&gv(t,n,e,3,null,null),D7(n)}function nE(t,n){if(Cd(n))return;let e=Xe(null);try{n[et]&=-129,n[et]|=256,n[ho]&&Tl(n[ho]),k7(t,n),M7(t,n),n[We].type===1&&n[ri].destroy();let i=n[jl];if(i!==null&&_a(n[bn])){i!==n[bn]&&bM(i,n);let r=n[Xa];r!==null&&r.detachView(t)}fE(n)}finally{Xe(e)}}function sR(t,n,e,i){let r=t?.[yd];if(r==null||r.leave==null||!r.leave.has(n.index))return i(!1);t&&kd.add(t),DP(e,()=>{if(r.leave&&r.leave.has(n.index)){let a=r.leave.get(n.index),s=[];if(a){for(let l=0;l{t[yd].running=void 0,kd.delete(t),n(!0)});return}n(!1)}function M7(t,n){let e=t.cleanup,i=n[Zu];if(e!==null)for(let a=0;a=0?i[s]():i[-s].unsubscribe(),a+=2}else{let s=i[e[a+1]];e[a].call(s)}i!==null&&(n[Zu]=null);let r=n[Us];if(r!==null){n[Us]=null;for(let a=0;ami&&vP(t,n,mi,!1),oi(a?2:0,r,e),e(i,r)}finally{Ul(o),oi(a?3:1,r,e)}}function _v(t,n,e){V7(t,n,e),(e.flags&64)===64&&B7(t,n,e)}function _m(t,n,e=Vo){let i=n.localNames;if(i!==null){let r=n.index+1;for(let o=0;onull;function L7(t){return t==="class"?"className":t==="for"?"htmlFor":t==="formaction"?"formAction":t==="innerHtml"?"innerHTML":t==="readonly"?"readOnly":t==="tabindex"?"tabIndex":t}function AP(t,n,e,i,r,o){let a=n[We];if(yv(t,a,n,e,i)){qs(t)&&RP(n,t.index);return}t.type&3&&(e=L7(e)),OP(t,n,e,i,r,o)}function OP(t,n,e,i,r,o){if(t.type&3){let a=Vo(t,n);i=o!=null?o(i,t.value||"",e):i,r.setProperty(a,e,i)}else t.type&12}function RP(t,n){let e=Bo(n,t);e[et]&16||(e[et]|=64)}function V7(t,n,e){let i=e.directiveStart,r=e.directiveEnd;qs(e)&&d7(n,e,t.data[i+e.componentOffset]),t.firstCreatePass||qb(e,n);let o=e.initialInputs;for(let a=i;a{zl(t.lView)},consumerOnSignalRead(){this.lView[ho]=this}});function Z7(t){let n=t[ho]??Object.create(X7);return n.lView=t,n}var X7=De(M({},td),{consumerIsAlwaysLive:!0,kind:"template",consumerMarkedDirty:t=>{let n=Bl(t.lView);for(;n&&!VP(n[We]);)n=Bl(n);n&&FD(n)},consumerOnSignalRead(){this.lView[ho]=this}});function VP(t){return t.type!==2}function BP(t){if(t[Gs]===null)return;let n=!0;for(;n;){let e=!1;for(let i of t[Gs])i.dirty&&(e=!0,i.zone===null||Zone.current===i.zone?i.run():i.zone.run(()=>i.run()));n=e&&!!(t[et]&8192)}}var J7=100;function jP(t,n=0){let i=t[Za].rendererFactory,r=!1;r||i.begin?.();try{eG(t,n)}finally{r||i.end?.()}}function eG(t,n){let e=GD();try{nm(!0),IE(t,n);let i=0;for(;Ap(t);){if(i===J7)throw new ue(103,!1);i++,IE(t,1)}}finally{nm(e)}}function tG(t,n,e,i){if(Cd(n))return;let r=n[et],o=!1,a=!1;Sb(n);let s=!0,l=null,c=null;o||(VP(t)?(c=q7(n),l=Sl(c)):A_()===null?(s=!1,c=Z7(n),l=Sl(c)):n[ho]&&(Tl(n[ho]),n[ho]=null));try{PD(n),IO(t.bindingStartIndex),e!==null&&IP(t,n,e,2,i);let d=(r&3)===3;if(!o)if(d){let b=t.preOrderCheckHooks;b!==null&&Vb(n,b,null)}else{let b=t.preOrderHooks;b!==null&&Bb(n,b,0,null),tE(n,0)}if(a||iG(n),BP(n),HP(n,0),t.contentQueries!==null&&tP(t,n),!o)if(d){let b=t.contentCheckHooks;b!==null&&Vb(n,b)}else{let b=t.contentHooks;b!==null&&Bb(n,b,1),tE(n,1)}rG(t,n);let m=t.components;m!==null&&UP(n,m,0);let f=t.viewQuery;if(f!==null&&_E(2,f,i),!o)if(d){let b=t.viewCheckHooks;b!==null&&Vb(n,b)}else{let b=t.viewHooks;b!==null&&Bb(n,b,2),tE(n,2)}if(t.firstUpdatePass===!0&&(t.firstUpdatePass=!1),n[Cb]){for(let b of n[Cb])b();n[Cb]=null}o||(NP(n),n[et]&=-73)}catch(d){throw o||zl(n),d}finally{c!==null&&(id(c,l),s&&Q7(c)),Tb()}}function HP(t,n){for(let e=qR(t);e!==null;e=YR(e))for(let i=Yi;i0&&(t[e-1][No]=i[No]);let o=Ep(t,Yi+n);C7(i[We],i);let a=o[Xa];a!==null&&a.detachView(o[We]),i[bn]=null,i[No]=null,i[et]&=-129}return i}function oG(t,n,e,i){let r=Yi+i,o=e.length;i>0&&(e[r-1][No]=n),i-1&&(Up(n,i),Ep(e,i))}this._attachedToViewContainer=!1}fv(this._lView[We],this._lView)}onDestroy(n){ND(this._lView,n)}markForCheck(){wM(this._cdRefInjectingView||this._lView,4)}detach(){this._lView[et]&=-129}reattach(){Db(this._lView),this._lView[et]|=128}detectChanges(){this._lView[et]|=1024,jP(this._lView)}checkNoChanges(){}attachToViewContainerRef(){if(this._appRef)throw new ue(902,!1);this._attachedToViewContainer=!0}detachFromAppRef(){this._appRef=null;let n=em(this._lView),e=this._lView[jl];e!==null&&!n&&bM(e,this._lView),EP(this._lView[We],this._lView)}attachToAppRef(n){if(this._attachedToViewContainer)throw new ue(902,!1);this._appRef=n;let e=em(this._lView),i=this._lView[jl];i!==null&&!e&&qP(i,this._lView),Db(this._lView)}};var te=(()=>{class t{_declarationLView;_declarationTContainer;elementRef;static __NG_ELEMENT_ID__=aG;constructor(e,i,r){this._declarationLView=e,this._declarationTContainer=i,this.elementRef=r}get ssrId(){return this._declarationTContainer.tView?.ssrId||null}createEmbeddedView(e,i){return this.createEmbeddedViewImpl(e,i)}createEmbeddedViewImpl(e,i,r){let o=Xp(this._declarationLView,this._declarationTContainer,e,{embeddedViewInjector:i,dehydratedView:r});return new $l(o)}}return t})();function aG(){return xv(tn(),Ne())}function xv(t,n){return t.type&4?new te(n,t,fm(t,n)):null}function bm(t,n,e,i,r){let o=t.data[n];if(o===null)o=sG(t,n,e,i,r),AO()&&(o.flags|=32);else if(o.type&64){o.type=e,o.value=i,o.attrs=r;let a=SO();o.injectorIndex=a===null?-1:a.injectorIndex}return im(o,!0),o}function sG(t,n,e,i,r){let o=UD(),a=$D(),s=a?o:o&&o.parent,l=t.data[n]=cG(t,s,e,n,i,r);return lG(t,l,o,a),l}function lG(t,n,e,i){t.firstChild===null&&(t.firstChild=n),e!==null&&(i?e.child==null&&n.parent!==null&&(e.child=n):e.next===null&&(e.next=n,n.prev=e))}function cG(t,n,e,i,r,o){let a=n?n.injectorIndex:-1,s=0;return jD()&&(s|=128),{type:e,index:i,insertBeforeIndex:null,injectorIndex:a,directiveStart:-1,directiveEnd:-1,directiveStylingLast:-1,componentOffset:-1,propertyBindings:null,flags:s,providerIndexes:0,value:r,attrs:o,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}}var pIe=new RegExp(`^(\\d+)*(${_W}|${gW})*(.*)`);function dG(t){let n=t[TD]??[],i=t[bn][ri],r=[];for(let o of n)o.data[ZR]!==void 0?r.push(o):uG(o,i);t[TD]=r}function uG(t,n){let e=0,i=t.firstChild;if(i){let r=t.data[KR];for(;enull,hG=()=>null;function Kb(t,n){return mG(t,n)}function YP(t,n,e){return hG(t,n,e)}var Id=class{},Cv=class{},AE=class{resolveComponentFactory(n){throw new ue(917,!1)}},ef=class{static NULL=new AE},cn=class{},je=(()=>{class t{destroyNode=null;static __NG_ELEMENT_ID__=()=>pG()}return t})();function pG(){let t=Ne(),n=tn(),e=Bo(n.index,t);return(Ja(e)?e:t)[ri]}var QP=(()=>{class t{static \u0275prov=O({token:t,providedIn:"root",factory:()=>null})}return t})();var Hb={},OE=class{injector;parentInjector;constructor(n,e){this.injector=n,this.parentInjector=e}get(n,e,i){let r=this.injector.get(n,Hb,i);return r!==Hb||e===Hb?r:this.parentInjector.get(n,e,i)}};function Zb(t,n,e){let i=e?t.styles:null,r=e?t.classes:null,o=0;if(n!==null)for(let a=0;a0&&(e.directiveToIndex=new Map);for(let f=0;f0;){let e=t[--n];if(typeof e=="number"&&e<0)return e}return 0}function CG(t,n,e){if(e){if(n.exportAs)for(let i=0;ii(Lo(w[t.index])):t.index;nF(v,n,e,o,s,b,!1)}}return c}function MG(t){return t.startsWith("animation")||t.startsWith("transition")}function kG(t,n,e,i){let r=t.cleanup;if(r!=null)for(let o=0;ol?s[l]:null}typeof a=="string"&&(o+=2)}return null}function nF(t,n,e,i,r,o,a){let s=n.firstCreatePass?VD(n):null,l=LD(e),c=l.length;l.push(r,o),s&&s.push(i,t,c,(c+1)*(a?-1:1))}function hR(t,n,e,i,r,o){let a=n[e],s=n[We],c=s.data[e].outputs[i],m=a[c].subscribe(o);nF(t.index,s,n,r,o,m,!0)}var RE=Symbol("BINDING");var Xb=class extends ef{ngModule;constructor(n){super(),this.ngModule=n}resolveComponentFactory(n){let e=Ka(n);return new Wl(e,this.ngModule)}};function SG(t){return Object.keys(t).map(n=>{let[e,i,r]=t[n],o={propName:e,templateName:n,isSignal:(i&mv.SignalBased)!==0};return r&&(o.transform=r),o})}function TG(t){return Object.keys(t).map(n=>({propName:t[n],templateName:n}))}function IG(t,n,e){let i=n instanceof Wt?n:n?.injector;return i&&t.getStandaloneInjector!==null&&(i=t.getStandaloneInjector(i)||i),i?new OE(e,i):e}function AG(t){let n=t.get(cn,null);if(n===null)throw new ue(407,!1);let e=t.get(QP,null),i=t.get(Oo,null);return{rendererFactory:n,sanitizer:e,changeDetectionScheduler:i,ngReflect:!1}}function OG(t,n){let e=rF(t);return cP(n,e,e==="svg"?AD:e==="math"?yO:null)}function rF(t){return(t.selectors[0][0]||"div").toLowerCase()}var Wl=class extends Cv{componentDef;ngModule;selector;componentType;ngContentSelectors;isBoundToModule;cachedInputs=null;cachedOutputs=null;get inputs(){return this.cachedInputs??=SG(this.componentDef.inputs),this.cachedInputs}get outputs(){return this.cachedOutputs??=TG(this.componentDef.outputs),this.cachedOutputs}constructor(n,e){super(),this.componentDef=n,this.ngModule=e,this.componentType=n.type,this.selector=a7(n.selectors),this.ngContentSelectors=n.ngContentSelectors??[],this.isBoundToModule=!!e}create(n,e,i,r,o,a){oi(22);let s=Xe(null);try{let l=this.componentDef,c=RG(i,l,a,o),d=IG(l,r||this.ngModule,n),m=AG(d),f=m.rendererFactory.createRenderer(null,l),b=i?P7(f,i,l.encapsulation,d):OG(l,f),v=a?.some(pR)||o?.some(D=>typeof D!="function"&&D.bindings.some(pR)),w=uM(null,c,null,512|_P(l),null,null,m,f,d,null,eP(b,d,!0));w[mi]=b,Sb(w);let x=null;try{let D=DM(mi,w,2,"#host",()=>c.directiveRegistry,!0,0);mP(f,b,D),cm(b,w),_v(c,w,D),tM(c,D,w),EM(c,D),e!==void 0&&FG(D,this.ngContentSelectors,e),x=Bo(D.index,w),w[qi]=x[qi],CM(c,w,null)}catch(D){throw x!==null&&fE(x),fE(w),D}finally{oi(23),Tb()}return new Jb(this.componentType,w,!!v)}finally{Xe(s)}}};function RG(t,n,e,i){let r=t?["ng-version","20.3.16"]:s7(n.selectors[0]),o=null,a=null,s=0;if(e)for(let d of e)s+=d[RE].requiredVars,d.create&&(d.targetIdx=0,(o??=[]).push(d)),d.update&&(d.targetIdx=0,(a??=[]).push(d));if(i)for(let d=0;d{if(e&1&&t)for(let i of t)i.create();if(e&2&&n)for(let i of n)i.update()}}function pR(t){let n=t[RE].kind;return n==="input"||n==="twoWay"}var Jb=class extends Id{_rootLView;_hasInputBindings;instance;hostView;changeDetectorRef;componentType;location;previousInputValues=null;_tNode;constructor(n,e,i){super(),this._rootLView=e,this._hasInputBindings=i,this._tNode=Ip(e[We],mi),this.location=fm(this._tNode,e),this.instance=Bo(this._tNode.index,e)[qi],this.hostView=this.changeDetectorRef=new $l(e,void 0),this.componentType=n}setInput(n,e){this._hasInputBindings;let i=this._tNode;if(this.previousInputValues??=new Map,this.previousInputValues.has(n)&&Object.is(this.previousInputValues.get(n),e))return;let r=this._rootLView,o=yv(i,r[We],r,n,e);this.previousInputValues.set(n,e);let a=Bo(i.index,r);wM(a,1)}get injector(){return new Ed(this._tNode,this._rootLView)}destroy(){this.hostView.destroy()}onDestroy(n){this.hostView.onDestroy(n)}};function FG(t,n,e){let i=t.projection=[];for(let r=0;r{class t{static __NG_ELEMENT_ID__=NG}return t})();function NG(){let t=tn();return aF(t,Ne())}var LG=nt,oF=class extends LG{_lContainer;_hostTNode;_hostLView;constructor(n,e,i){super(),this._lContainer=n,this._hostTNode=e,this._hostLView=i}get element(){return fm(this._hostTNode,this._hostLView)}get injector(){return new Ed(this._hostTNode,this._hostLView)}get parentInjector(){let n=ZE(this._hostTNode,this._hostLView);if(FR(n)){let e=Wb(n,this._hostLView),i=$b(n),r=e[We].data[i+8];return new Ed(r,e)}else return new Ed(null,this._hostLView)}clear(){for(;this.length>0;)this.remove(this.length-1)}get(n){let e=fR(this._lContainer);return e!==null&&e[n]||null}get length(){return this._lContainer.length-Yi}createEmbeddedView(n,e,i){let r,o;typeof i=="number"?r=i:i!=null&&(r=i.index,o=i.injector);let a=Kb(this._lContainer,n.ssrId),s=n.createEmbeddedViewImpl(e||{},o,a);return this.insertImpl(s,r,dm(this._hostTNode,a)),s}createComponent(n,e,i,r,o,a,s){let l=n&&!W$(n),c;if(l)c=e;else{let x=e||{};c=x.index,i=x.injector,r=x.projectableNodes,o=x.environmentInjector||x.ngModuleRef,a=x.directives,s=x.bindings}let d=l?n:new Wl(Ka(n)),m=i||this.parentInjector;if(!o&&d.ngModule==null){let D=(l?m:this.parentInjector).get(Wt,null);D&&(o=D)}let f=Ka(d.componentType??{}),b=Kb(this._lContainer,f?.id??null),v=b?.firstChild??null,w=d.create(m,r,v,o,a,s);return this.insertImpl(w.hostView,c,dm(this._hostTNode,b)),w}insert(n,e){return this.insertImpl(n,e,!0)}insertImpl(n,e,i){let r=n._lView;if(CO(r)){let s=this.indexOf(n);if(s!==-1)this.detach(s);else{let l=r[bn],c=new oF(l,l[Sr],l[bn]);c.detach(c.indexOf(n))}}let o=this._adjustIndex(e),a=this._lContainer;return Jp(a,r,o,i),n.attachToViewContainerRef(),yD(rE(a),o,n),n}move(n,e){return this.insert(n,e)}indexOf(n){let e=fR(this._lContainer);return e!==null?e.indexOf(n):-1}remove(n){let e=this._adjustIndex(n,-1),i=Up(this._lContainer,e);i&&(Ep(rE(this._lContainer),e),fv(i[We],i))}detach(n){let e=this._adjustIndex(n,-1),i=Up(this._lContainer,e);return i&&Ep(rE(this._lContainer),e)!=null?new $l(i):null}_adjustIndex(n,e=0){return n??this.length+e}};function fR(t){return t[Tp]}function rE(t){return t[Tp]||(t[Tp]=[])}function aF(t,n){let e,i=n[t.index];return _a(i)?e=i:(e=$P(i,n,null,t),n[t.index]=e,mM(n,e)),BG(e,n,t,i),new oF(e,t,n)}function VG(t,n){let e=t[ri],i=e.createComment(""),r=Vo(n,t),o=e.parentNode(r);return Yb(e,o,i,e.nextSibling(r),!1),i}var BG=zG,jG=()=>!1;function HG(t,n,e){return jG(t,n,e)}function zG(t,n,e,i){if(t[Hl])return;let r;e.type&8?r=Lo(i):r=VG(n,e),t[Hl]=r}var PE=class t{queryList;matches=null;constructor(n){this.queryList=n}clone(){return new t(this.queryList)}setDirty(){this.queryList.setDirty()}},FE=class t{queries;constructor(n=[]){this.queries=n}createEmbeddedView(n){let e=n.queries;if(e!==null){let i=n.contentQueries!==null?n.contentQueries[0]:e.length,r=[];for(let o=0;o0)i.push(a[s/2]);else{let c=o[s+1],d=n[-l];for(let m=Yi;mn.trim())}function uF(t,n,e){t.queries===null&&(t.queries=new NE),t.queries.track(new LE(n,e))}function YG(t,n){let e=t.contentQueries||(t.contentQueries=[]),i=e.length?e[e.length-1]:-1;n!==i&&e.push(t.queries.length-1,n)}function SM(t,n){return t.queries.getByIndex(n)}function mF(t,n){let e=t[We],i=SM(e,n);return i.crossesNgTemplate?VE(e,t,n,[]):sF(e,t,i,n)}function TM(t,n,e){let i,r=pp(()=>{i._dirtyCounter();let o=QG(i,t);if(n&&o===void 0)throw new ue(-951,!1);return o});return i=r[ln],i._dirtyCounter=he(0),i._flatValue=void 0,r}function IM(t){return TM(!0,!1,t)}function AM(t){return TM(!0,!0,t)}function hF(t){return TM(!1,!1,t)}function pF(t,n){let e=t[ln];e._lView=Ne(),e._queryIndex=n,e._queryList=kM(e._lView,n),e._queryList.onDirty(()=>e._dirtyCounter.update(i=>i+1))}function QG(t,n){let e=t._lView,i=t._queryIndex;if(e===void 0||i===void 0||e[et]&4)return n?void 0:ur;let r=kM(e,i),o=mF(e,i);return r.reset(o,$R),n?r.first:r._changesDetected||t._flatValue===void 0?t._flatValue=r.toArray():t._flatValue}var as=class{},wv=class{};var tv=class extends as{ngModuleType;_parent;_bootstrapComponents=[];_r3Injector;instance;destroyCbs=[];componentFactoryResolver=new Xb(this);constructor(n,e,i,r=!0){super(),this.ngModuleType=n,this._parent=e;let o=wD(n);this._bootstrapComponents=pP(o.bootstrap),this._r3Injector=KD(n,e,[{provide:as,useValue:this},{provide:ef,useValue:this.componentFactoryResolver},...i],$s(n),new Set(["environment"])),r&&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)}},iv=class extends wv{moduleType;constructor(n){super(),this.moduleType=n}create(n){return new tv(this.moduleType,n,[])}};var Wp=class extends as{injector;componentFactoryResolver=new Xb(this);instance=null;constructor(n){super();let e=new pd([...n.providers,{provide:as,useValue:this},{provide:ef,useValue:this.componentFactoryResolver}],n.parent||Ku(),n.debugName,new Set(["environment"]));this.injector=e,n.runEnvironmentInitializers&&e.resolveInjectorInitializers()}destroy(){this.injector.destroy()}onDestroy(n){this.injector.onDestroy(n)}};function vm(t,n,e=null){return new Wp({providers:t,parent:n,debugName:e,runEnvironmentInitializers:!0}).injector}var KG=(()=>{class t{_injector;cachedInjectors=new Map;constructor(e){this._injector=e}getOrCreateStandaloneInjector(e){if(!e.standalone)return null;if(!this.cachedInjectors.has(e)){let i=DD(!1,e.type),r=i.length>0?vm([i],this._injector,`Standalone[${e.type.name}]`):null;this.cachedInjectors.set(e,r)}return this.cachedInjectors.get(e)}ngOnDestroy(){try{for(let e of this.cachedInjectors.values())e!==null&&e.destroy()}finally{this.cachedInjectors.clear()}}static \u0275prov=O({token:t,providedIn:"environment",factory:()=>new t(pe(Wt))})}return t})();function E(t){return pm(()=>{let n=fF(t),e=De(M({},n),{decls:t.decls,vars:t.vars,template:t.template,consts:t.consts||null,ngContentSelectors:t.ngContentSelectors,onPush:t.changeDetection===XE.OnPush,directiveDefs:null,pipeDefs:null,dependencies:n.standalone&&t.dependencies||null,getStandaloneInjector:n.standalone?r=>r.get(KG).getOrCreateStandaloneInjector(e):null,getExternalStyles:null,signals:t.signals??!1,data:t.data||{},encapsulation:t.encapsulation||Ys.Emulated,styles:t.styles||ur,_:null,schemas:t.schemas||null,tView:null,id:""});n.standalone&&cs("NgStandalone"),gF(e);let i=t.dependencies;return e.directiveDefs=gR(i,ZG),e.pipeDefs=gR(i,hO),e.id=e9(e),e})}function ZG(t){return Ka(t)||yb(t)}function ee(t){return pm(()=>({type:t.type,bootstrap:t.bootstrap||ur,declarations:t.declarations||ur,imports:t.imports||ur,exports:t.exports||ur,transitiveCompileScopes:null,schemas:t.schemas||null,id:t.id||null}))}function XG(t,n){if(t==null)return fa;let e={};for(let i in t)if(t.hasOwnProperty(i)){let r=t[i],o,a,s,l;Array.isArray(r)?(s=r[0],o=r[1],a=r[2]??o,l=r[3]||null):(o=r,a=r,s=mv.None,l=null),e[o]=[i,s,l],n[o]=a}return e}function JG(t){if(t==null)return fa;let n={};for(let e in t)t.hasOwnProperty(e)&&(n[t[e]]=e);return n}function F(t){return pm(()=>{let n=fF(t);return gF(n),n})}function Wr(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 fF(t){let n={};return{type:t.type,providersResolver:null,factory:null,hostBindings:t.hostBindings||null,hostVars:t.hostVars||0,hostAttrs:t.hostAttrs||null,contentQueries:t.contentQueries||null,declaredInputs:n,inputConfig:t.inputs||fa,exportAs:t.exportAs||null,standalone:t.standalone??!0,signals:t.signals===!0,selectors:t.selectors||ur,viewQuery:t.viewQuery||null,features:t.features||null,setInput:null,resolveHostDirectives:null,hostDirectives:null,inputs:XG(t.inputs,n),outputs:JG(t.outputs),debugInfo:null}}function gF(t){t.features?.forEach(n=>n(t))}function gR(t,n){return t?()=>{let e=typeof t=="function"?t():t,i=[];for(let r of e){let o=n(r);o!==null&&i.push(o)}return i}:null}function e9(t){let n=0,e=typeof t.consts=="function"?"":t.consts,i=[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 o of i.join("|"))n=Math.imul(31,n)+o.charCodeAt(0)<<0;return n+=2147483648,"c"+n}function t9(t){return Object.getPrototypeOf(t.prototype).constructor}function le(t){let n=t9(t.type),e=!0,i=[t];for(;n;){let r;if(ba(t))r=n.\u0275cmp||n.\u0275dir;else{if(n.\u0275cmp)throw new ue(903,!1);r=n.\u0275dir}if(r){if(e){i.push(r);let a=t;a.inputs=oE(t.inputs),a.declaredInputs=oE(t.declaredInputs),a.outputs=oE(t.outputs);let s=r.hostBindings;s&&a9(t,s);let l=r.viewQuery,c=r.contentQueries;if(l&&r9(t,l),c&&o9(t,c),i9(t,r),rO(t.outputs,r.outputs),ba(r)&&r.data.animation){let d=t.data;d.animation=(d.animation||[]).concat(r.data.animation)}}let o=r.features;if(o)for(let a=0;a=0;i--){let r=t[i];r.hostVars=n+=r.hostVars,r.hostAttrs=lm(r.hostAttrs,e=lm(e,r.hostAttrs))}}function oE(t){return t===fa?{}:t===ur?[]:t}function r9(t,n){let e=t.viewQuery;e?t.viewQuery=(i,r)=>{n(i,r),e(i,r)}:t.viewQuery=n}function o9(t,n){let e=t.contentQueries;e?t.contentQueries=(i,r,o)=>{n(i,r,o),e(i,r,o)}:t.contentQueries=n}function a9(t,n){let e=t.hostBindings;e?t.hostBindings=(i,r)=>{n(i,r),e(i,r)}:t.hostBindings=n}function ym(t){let n=e=>{let i=Array.isArray(t);e.hostDirectives===null?(e.resolveHostDirectives=s9,e.hostDirectives=i?t.map(BE):[t]):i?e.hostDirectives.unshift(...t.map(BE)):e.hostDirectives.unshift(t)};return n.ngInherit=!0,n}function s9(t){let n=[],e=!1,i=null,r=null;for(let o=0;o{class t{log(e){console.log(e)}warn(e){console.warn(e)}static \u0275fac=function(i){return new(i||t)};static \u0275prov=O({token:t,factory:t.\u0275fac,providedIn:"platform"})}return t})();var OM=new T("");function Xs(t){return!!t&&typeof t.then=="function"}function Ev(t){return!!t&&typeof t.subscribe=="function"}var RM=new T("");function Ql(t){return zr([{provide:RM,multi:!0,useValue:t}])}var PM=(()=>{class t{resolve;reject;initialized=!1;done=!1;donePromise=new Promise((e,i)=>{this.resolve=e,this.reject=i});appInits=u(RM,{optional:!0})??[];injector=u(de);constructor(){}runInitializers(){if(this.initialized)return;let e=[];for(let r of this.appInits){let o=In(this.injector,r);if(Xs(o))e.push(o);else if(Ev(o)){let a=new Promise((s,l)=>{o.subscribe({complete:s,error:l})});e.push(a)}}let i=()=>{this.done=!0,this.resolve()};Promise.all(e).then(()=>{i()}).catch(r=>{this.reject(r)}),e.length===0&&i(),this.initialized=!0}static \u0275fac=function(i){return new(i||t)};static \u0275prov=O({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),nf=new T("");function vF(){Aw(()=>{let t="";throw new ue(600,t)})}function yF(t){return t.isBoundToModule}var m9=10;var Gn=(()=>{class t{_runningTick=!1;_destroyed=!1;_destroyListeners=[];_views=[];internalErrorHandler=u(hr);afterRenderManager=u(pv);zonelessEnabled=u(Fp);rootEffectScheduler=u(Np);dirtyFlags=0;tracingSnapshot=null;allTestViews=new Set;autoDetectTestViews=new Set;includeAllTestViews=!1;afterTick=new z;get allViews(){return[...(this.includeAllTestViews?this.allTestViews:this.autoDetectTestViews).keys(),...this._views]}get destroyed(){return this._destroyed}componentTypes=[];components=[];internalPendingTask=u(ns);get isStable(){return this.internalPendingTask.hasPendingTasksObservable.pipe(se(e=>!e))}constructor(){u(Yl,{optional:!0})}whenStable(){let e;return new Promise(i=>{e=this.isStable.subscribe({next:r=>{r&&i()}})}).finally(()=>{e.unsubscribe()})}_injector=u(Wt);_rendererFactory=null;get injector(){return this._injector}bootstrap(e,i){return this.bootstrapImpl(e,i)}bootstrapImpl(e,i,r=de.NULL){return this._injector.get(ae).run(()=>{oi(10);let a=e instanceof Cv;if(!this._injector.get(PM).done){let v="";throw new ue(405,v)}let l;a?l=e:l=this._injector.get(ef).resolveComponentFactory(e),this.componentTypes.push(l.componentType);let c=yF(l)?void 0:this._injector.get(as),d=i||l.selector,m=l.create(r,[],d,c),f=m.location.nativeElement,b=m.injector.get(OM,null);return b?.registerApplication(f),m.onDestroy(()=>{this.detachView(m.hostView),Vp(this.components,m),b?.unregisterApplication(f)}),this._loadComponent(m),oi(11,m),m})}tick(){this.zonelessEnabled||(this.dirtyFlags|=1),this._tick()}_tick(){oi(12),this.tracingSnapshot!==null?this.tracingSnapshot.run(hv.CHANGE_DETECTION,this.tickImpl):this.tickImpl()}tickImpl=()=>{if(this._runningTick)throw new ue(101,!1);let e=Xe(null);try{this._runningTick=!0,this.synchronize()}finally{this._runningTick=!1,this.tracingSnapshot?.dispose(),this.tracingSnapshot=null,Xe(e),this.afterTick.next(),oi(13)}};synchronize(){this._rendererFactory===null&&!this._injector.destroyed&&(this._rendererFactory=this._injector.get(cn,null,{optional:!0}));let e=0;for(;this.dirtyFlags!==0&&e++Ap(e))){this.dirtyFlags|=2;return}else this.dirtyFlags&=-8}attachView(e){let i=e;this._views.push(i),i.attachToAppRef(this)}detachView(e){let i=e;Vp(this._views,i),i.detachFromAppRef()}_loadComponent(e){this.attachView(e.hostView);try{this.tick()}catch(r){this.internalErrorHandler(r)}this.components.push(e),this._injector.get(nf,[]).forEach(r=>r(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),()=>Vp(this._destroyListeners,e)}destroy(){if(this._destroyed)throw new ue(406,!1);let e=this._injector;e.destroy&&!e.destroyed&&e.destroy()}get viewCount(){return this._views.length}static \u0275fac=function(i){return new(i||t)};static \u0275prov=O({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();function Vp(t,n){let e=t.indexOf(n);e>-1&&t.splice(e,1)}function Kl(t,n){let e=Ne(),i=ts();if(Tr(e,i,n)){let r=gi(),o=rm();if(yv(o,r,e,t,n))qs(o)&&RP(e,o.index);else{let s=Vo(o,e);PP(e[ri],s,null,o.value,t,n,null)}}return Kl}function X(t,n,e,i){let r=Ne(),o=ts();if(Tr(r,o,n)){let a=gi(),s=rm();H7(s,r,t,n,e,i)}return X}var xIe=typeof document<"u"&&typeof document?.documentElement?.getAnimations=="function";function Mv(){return Ne()[mr][qi]}var jE=class{destroy(n){}updateValue(n,e){}swap(n,e){let i=Math.min(n,e),r=Math.max(n,e),o=this.detach(r);if(r-i>1){let a=this.detach(i);this.attach(i,o),this.attach(r,a)}else this.attach(i,o)}move(n,e){this.attach(e,this.detach(n))}};function aE(t,n,e,i,r){return t===e&&Object.is(n,i)?1:Object.is(r(t,n),r(e,i))?-1:0}function h9(t,n,e){let i,r,o=0,a=t.length-1,s=void 0;if(Array.isArray(n)){let l=n.length-1;for(;o<=a&&o<=l;){let c=t.at(o),d=n[o],m=aE(o,c,o,d,e);if(m!==0){m<0&&t.updateValue(o,d),o++;continue}let f=t.at(a),b=n[l],v=aE(a,f,l,b,e);if(v!==0){v<0&&t.updateValue(a,b),a--,l--;continue}let w=e(o,c),x=e(a,f),D=e(o,d);if(Object.is(D,x)){let P=e(l,b);Object.is(P,w)?(t.swap(o,a),t.updateValue(a,b),l--,a--):t.move(a,o),t.updateValue(o,d),o++;continue}if(i??=new nv,r??=yR(t,o,a,e),HE(t,i,o,D))t.updateValue(o,d),o++,a++;else if(r.has(D))i.set(w,t.detach(o)),a--;else{let P=t.create(o,n[o]);t.attach(o,P),o++,a++}}for(;o<=l;)vR(t,i,e,o,n[o]),o++}else if(n!=null){let l=n[Symbol.iterator](),c=l.next();for(;!c.done&&o<=a;){let d=t.at(o),m=c.value,f=aE(o,d,o,m,e);if(f!==0)f<0&&t.updateValue(o,m),o++,c=l.next();else{i??=new nv,r??=yR(t,o,a,e);let b=e(o,m);if(HE(t,i,o,b))t.updateValue(o,m),o++,a++,c=l.next();else if(!r.has(b))t.attach(o,t.create(o,m)),o++,a++,c=l.next();else{let v=e(o,d);i.set(v,t.detach(o)),a--}}}for(;!c.done;)vR(t,i,e,t.length,c.value),c=l.next()}for(;o<=a;)t.destroy(t.detach(a--));i?.forEach(l=>{t.destroy(l)})}function HE(t,n,e,i){return n!==void 0&&n.has(i)?(t.attach(e,n.get(i)),n.delete(i),!0):!1}function vR(t,n,e,i,r){if(HE(t,n,i,e(i,r)))t.updateValue(i,r);else{let o=t.create(i,r);t.attach(i,o)}}function yR(t,n,e,i){let r=new Set;for(let o=n;o<=e;o++)r.add(i(o,t.at(o)));return r}var nv=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 i=this.kvMap.get(n);this._vMap===void 0&&(this._vMap=new Map);let r=this._vMap;for(;r.has(i);)i=r.get(i);r.set(i,e)}else this.kvMap.set(n,e)}forEach(n){for(let[e,i]of this.kvMap)if(n(i,e),this._vMap!==void 0){let r=this._vMap;for(;r.has(i);)i=r.get(i),n(i,e)}}};function N(t,n,e,i,r,o,a,s){cs("NgControlFlow");let l=Ne(),c=gi(),d=po(c.consts,o);return um(l,c,t,n,e,i,r,d,256,a,s),FM}function FM(t,n,e,i,r,o,a,s){cs("NgControlFlow");let l=Ne(),c=gi(),d=po(c.consts,o);return um(l,c,t,n,e,i,r,d,512,a,s),FM}function L(t,n){cs("NgControlFlow");let e=Ne(),i=ts(),r=e[i]!==On?e[i]:-1,o=r!==-1?rv(e,mi+r):void 0,a=0;if(Tr(e,i,t)){let s=Xe(null);try{if(o!==void 0&&GP(o,a),t!==-1){let l=mi+t,c=rv(e,l),d=WE(e[We],l),m=YP(c,d,e),f=Xp(e,d,n,{dehydratedView:m});Jp(c,f,a,dm(d,m))}}finally{Xe(s)}}else if(o!==void 0){let s=WP(o,a);s!==void 0&&(s[qi]=n)}}var zE=class{lContainer;$implicit;$index;constructor(n,e,i){this.lContainer=n,this.$implicit=e,this.$index=i}get $count(){return this.lContainer.length-Yi}};function Hi(t){return t}function xm(t,n){return n}var UE=class{hasEmptyBlock;trackByFn;liveCollection;constructor(n,e,i){this.hasEmptyBlock=n,this.trackByFn=e,this.liveCollection=i}};function xt(t,n,e,i,r,o,a,s,l,c,d,m,f){cs("NgControlFlow");let b=Ne(),v=gi(),w=l!==void 0,x=Ne(),D=s?a.bind(x[mr][qi]):a,P=new UE(w,D);x[mi+t]=P,um(b,v,t+1,n,e,i,r,po(v.consts,o),256),w&&um(b,v,t+2,l,c,d,m,po(v.consts,f),512)}var $E=class extends jE{lContainer;hostLView;templateTNode;operationsCounter=void 0;needsIndexUpdate=!1;constructor(n,e,i){super(),this.lContainer=n,this.hostLView=e,this.templateTNode=i}get length(){return this.lContainer.length-Yi}at(n){return this.getLView(n)[qi].$implicit}attach(n,e){let i=e[gd];this.needsIndexUpdate||=n!==this.length,Jp(this.lContainer,e,n,dm(this.templateTNode,i)),p9(this.lContainer,n)}detach(n){return this.needsIndexUpdate||=n!==this.length-1,f9(this.lContainer,n),g9(this.lContainer,n)}create(n,e){let i=Kb(this.lContainer,this.templateTNode.tView.ssrId),r=Xp(this.hostLView,this.templateTNode,new zE(this.lContainer,e,n),{dehydratedView:i});return this.operationsCounter?.recordCreate(),r}destroy(n){fv(n[We],n),this.operationsCounter?.recordDestroy()}updateValue(n,e){this.getLView(n)[qi].$implicit=e}reset(){this.needsIndexUpdate=!1,this.operationsCounter?.reset()}updateIndexes(){if(this.needsIndexUpdate)for(let n=0;n0){let o=i[Ws];y7(o,r),kd.delete(i),r.detachedLeaveAnimationFns=void 0}}function f9(t,n){if(t.length<=Yi)return;let e=Yi+n,i=t[e],r=i?i[yd]:void 0;r&&r.leave&&r.leave.size>0&&(r.detachedLeaveAnimationFns=[])}function g9(t,n){return Up(t,n)}function _9(t,n){return WP(t,n)}function WE(t,n){return Ip(t,n)}function y(t,n,e){let i=Ne(),r=ts();if(Tr(i,r,n)){let o=gi(),a=rm();AP(a,i,t,n,i[ri],e)}return y}function GE(t,n,e,i,r){yv(n,t,e,r?"class":"style",i)}function h(t,n,e,i){let r=Ne(),o=r[We],a=t+mi,s=o.firstCreatePass?DM(a,r,2,n,xM,Eb(),e,i):o.data[a];if(bv(s,r,t,n,xF),Ju(s)){let l=r[We];_v(l,r,s),tM(l,s,r)}return i!=null&&_m(r,s),h}function p(){let t=gi(),n=tn(),e=vv(n);return t.firstCreatePass&&EM(t,e),HD(e)&&zD(),BD(),e.classesWithoutHost!=null&&Z$(e)&&GE(t,e,Ne(),e.classesWithoutHost,!0),e.stylesWithoutHost!=null&&X$(e)&&GE(t,e,Ne(),e.stylesWithoutHost,!1),p}function k(t,n,e,i){return h(t,n,e,i),p(),k}function ft(t,n,e,i){let r=Ne(),o=r[We],a=t+mi,s=o.firstCreatePass?XP(a,o,2,n,e,i):o.data[a];return bv(s,r,t,n,xF),i!=null&&_m(r,s),ft}function vt(){let t=tn(),n=vv(t);return HD(n)&&zD(),BD(),vt}function ai(t,n,e,i){return ft(t,n,e,i),vt(),ai}var xF=(t,n,e,i,r)=>(Pp(!0),cP(n[ri],i,BO()));function jt(t,n,e){let i=Ne(),r=i[We],o=t+mi,a=r.firstCreatePass?DM(o,i,8,"ng-container",xM,Eb(),n,e):r.data[o];if(bv(a,i,t,"ng-container",wF),Ju(a)){let s=i[We];_v(s,i,a),tM(s,a,i)}return e!=null&&_m(i,a),jt}function Lt(){let t=gi(),n=tn(),e=vv(n);return t.firstCreatePass&&EM(t,e),Lt}function Ge(t,n,e){return jt(t,n,e),Lt(),Ge}function NM(t,n,e){let i=Ne(),r=i[We],o=t+mi,a=r.firstCreatePass?XP(o,r,8,"ng-container",n,e):r.data[o];return bv(a,i,t,"ng-container",wF),e!=null&&_m(i,a),NM}function CF(){let t=tn(),n=vv(t);return Lt}function rf(t,n,e){return NM(t,n,e),CF(),rf}var wF=(t,n,e,i,r)=>(Pp(!0),$W(n[ri],""));function Y(){return Ne()}function si(t,n,e){let i=Ne(),r=ts();if(Tr(i,r,n)){let o=gi(),a=rm();OP(a,i,t,n,i[ri],e)}return si}var Nb=void 0;function b9(t){let n=Math.floor(Math.abs(t)),e=t.toString().replace(/^[^.]*\.?/,"").length;return n===1&&e===0?1:5}var v9=["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"]],Nb,[["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"]],Nb,[["B","A"],["BC","AD"],["Before Christ","Anno Domini"]],0,[6,0],["M/d/yy","MMM d, y","MMMM d, y","EEEE, MMMM d, y"],["h:mm a","h:mm:ss a","h:mm:ss a z","h:mm:ss a zzzz"],["{1}, {0}",Nb,"{1} 'at' {0}",Nb],[".",",",";","%","+","-","E","\xD7","\u2030","\u221E","NaN",":"],["#,##0.###","#,##0%","\xA4#,##0.00","#E0"],"USD","$","US Dollar",{},"ltr",b9],sE={};function Ir(t){let n=y9(t),e=xR(n);if(e)return e;let i=n.split("-")[0];if(e=xR(i),e)return e;if(i==="en")return v9;throw new ue(701,!1)}function xR(t){return t in sE||(sE[t]=Po.ng&&Po.ng.common&&Po.ng.common.locales&&Po.ng.common.locales[t]),sE[t]}var zi=(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})(zi||{});function y9(t){return t.toLowerCase().replace(/_/g,"-")}var of="en-US",x9="USD";var C9=of;function DF(t){typeof t=="string"&&(C9=t.toLowerCase().replace(/_/g,"-"))}function S(t,n,e){let i=Ne(),r=gi(),o=tn();return EF(r,i,i[ri],o,t,n,e),S}function kv(t,n,e){let i=Ne(),r=gi(),o=tn();return(o.type&3||e)&&iF(o,r,i,e,i[ri],t,n,zb(o,i,n)),kv}function EF(t,n,e,i,r,o,a){let s=!0,l=null;if((i.type&3||a)&&(l??=zb(i,n,o),iF(i,t,n,a,e,r,o,l)&&(s=!1)),s){let c=i.outputs?.[r],d=i.hostDirectiveOutputs?.[r];if(d&&d.length)for(let m=0;m>17&32767}function E9(t){return(t&2)==2}function M9(t,n){return t&131071|n<<17}function qE(t){return t|2}function mm(t){return(t&131068)>>2}function lE(t,n){return t&-131069|n<<2}function k9(t){return(t&1)===1}function YE(t){return t|1}function S9(t,n,e,i,r,o){let a=o?n.classBindings:n.styleBindings,s=Sd(a),l=mm(a);t[i]=e;let c=!1,d;if(Array.isArray(e)){let m=e;d=m[1],(d===null||Qu(m,d)>0)&&(c=!0)}else d=e;if(r)if(l!==0){let f=Sd(t[s+1]);t[i+1]=Lb(f,s),f!==0&&(t[f+1]=lE(t[f+1],i)),t[s+1]=M9(t[s+1],i)}else t[i+1]=Lb(s,0),s!==0&&(t[s+1]=lE(t[s+1],i)),s=i;else t[i+1]=Lb(l,0),s===0?s=i:t[l+1]=lE(t[l+1],i),l=i;c&&(t[i+1]=qE(t[i+1])),CR(t,d,i,!0),CR(t,d,i,!1),T9(n,d,t,i,o),a=Lb(s,l),o?n.classBindings=a:n.styleBindings=a}function T9(t,n,e,i,r){let o=r?t.residualClasses:t.residualStyles;o!=null&&typeof n=="string"&&Qu(o,n)>=0&&(e[i+1]=YE(e[i+1]))}function CR(t,n,e,i){let r=t[e+1],o=n===null,a=i?Sd(r):mm(r),s=!1;for(;a!==0&&(s===!1||o);){let l=t[a],c=t[a+1];I9(l,n)&&(s=!0,t[a+1]=i?YE(c):qE(c)),a=i?Sd(c):mm(c)}s&&(t[e+1]=i?qE(r):YE(r))}function I9(t,n){return t===null||n==null||(Array.isArray(t)?t[1]:t)===n?!0:Array.isArray(t)&&typeof n=="string"?Qu(t,n)>=0:!1}var vn={textEnd:0,key:0,keyEnd:0,value:0,valueEnd:0};function MF(t){return t.substring(vn.key,vn.keyEnd)}function A9(t){return t.substring(vn.value,vn.valueEnd)}function O9(t){return TF(t),kF(t,hm(t,0,vn.textEnd))}function kF(t,n){let e=vn.textEnd;return e===n?-1:(n=vn.keyEnd=P9(t,vn.key=n,e),hm(t,n,e))}function R9(t){return TF(t),SF(t,hm(t,0,vn.textEnd))}function SF(t,n){let e=vn.textEnd,i=vn.key=hm(t,n,e);return e===i?-1:(i=vn.keyEnd=F9(t,i,e),i=wR(t,i,e,58),i=vn.value=hm(t,i,e),i=vn.valueEnd=N9(t,i,e),wR(t,i,e,59))}function TF(t){vn.key=0,vn.keyEnd=0,vn.value=0,vn.valueEnd=0,vn.textEnd=t.length}function hm(t,n,e){for(;n32;)n++;return n}function F9(t,n,e){let i;for(;n=65&&(i&-33)<=90||i>=48&&i<=57);)n++;return n}function wR(t,n,e,i){return n=hm(t,n,e),n32&&(s=a),o=r,r=i,i=l&-33}return s}function DR(t,n,e,i){let r=-1,o=e;for(;o=0;e=SF(n,e))PF(t,MF(n),A9(n))}function it(t){AF($9,V9,t,!0)}function V9(t,n){for(let e=O9(n);e>=0;e=kF(n,e))Mp(t,MF(n),!0)}function IF(t,n,e,i){let r=Ne(),o=gi(),a=Op(2);if(o.firstUpdatePass&&RF(o,t,a,i),n!==On&&Tr(r,a,n)){let s=o.data[va()];FF(o,s,r,r[ri],t,r[a+1]=G9(n,e),i,a)}}function AF(t,n,e,i){let r=gi(),o=Op(2);r.firstUpdatePass&&RF(r,null,o,i);let a=Ne();if(e!==On&&Tr(a,o,e)){let s=r.data[va()];if(NF(s,i)&&!OF(r,o)){let l=i?s.classesWithoutHost:s.stylesWithoutHost;l!==null&&(e=fb(l,e||"")),GE(r,s,a,e,i)}else W9(r,s,a,a[ri],a[o+1],a[o+1]=U9(t,n,e),i,o)}}function OF(t,n){return n>=t.expandoStartIndex}function RF(t,n,e,i){let r=t.data;if(r[e+1]===null){let o=r[va()],a=OF(t,e);NF(o,i)&&n===null&&!a&&(n=!1),n=B9(r,o,n,i),S9(r,o,n,e,a,i)}}function B9(t,n,e,i){let r=PO(t),o=i?n.residualClasses:n.residualStyles;if(r===null)(i?n.classBindings:n.styleBindings)===0&&(e=cE(null,t,n,e,i),e=Gp(e,n.attrs,i),o=null);else{let a=n.directiveStylingLast;if(a===-1||t[a]!==r)if(e=cE(r,t,n,e,i),o===null){let l=j9(t,n,i);l!==void 0&&Array.isArray(l)&&(l=cE(null,t,n,l[1],i),l=Gp(l,n.attrs,i),H9(t,n,i,l))}else o=z9(t,n,i)}return o!==void 0&&(i?n.residualClasses=o:n.residualStyles=o),e}function j9(t,n,e){let i=e?n.classBindings:n.styleBindings;if(mm(i)!==0)return t[Sd(i)]}function H9(t,n,e,i){let r=e?n.classBindings:n.styleBindings;t[Sd(r)]=i}function z9(t,n,e){let i,r=n.directiveEnd;for(let o=1+n.directiveStylingLast;o0;){let l=t[r],c=Array.isArray(l),d=c?l[1]:l,m=d===null,f=e[r+1];f===On&&(f=m?ur:void 0);let b=m?vb(f,i):d===i?f:void 0;if(c&&!ov(b)&&(b=vb(l,i)),ov(b)&&(s=b,a))return s;let v=t[r+1];r=a?Sd(v):mm(v)}if(n!==null){let l=o?n.residualClasses:n.residualStyles;l!=null&&(s=vb(l,i))}return s}function ov(t){return t!==void 0}function G9(t,n){return t==null||t===""||(typeof n=="string"?t=t+n:typeof t=="object"&&(t=$s(Ur(t)))),t}function NF(t,n){return(t.flags&(n?8:16))!==0}function _(t,n=""){let e=Ne(),i=gi(),r=t+mi,o=i.firstCreatePass?bm(i,r,1,n,null):i.data[r],a=q9(i,e,o,n,t);e[r]=a,Ib()&&vM(i,e,a,o),im(o,!1)}var q9=(t,n,e,i,r)=>(Pp(!0),zW(n[ri],i));function LF(t,n,e,i=""){return Tr(t,ts(),e)?n+Fo(e)+i:On}function Y9(t,n,e,i,r,o=""){let a=qD(),s=$p(t,a,e,r);return Op(2),s?n+Fo(e)+i+Fo(r)+o:On}function Q9(t,n,e,i,r,o,a,s=""){let l=qD(),c=tF(t,l,e,r,a);return Op(3),c?n+Fo(e)+i+Fo(r)+o+Fo(a)+s:On}function H(t){return ve("",t),H}function ve(t,n,e){let i=Ne(),r=LF(i,t,n,e);return r!==On&&LM(i,va(),r),ve}function Od(t,n,e,i,r){let o=Ne(),a=Y9(o,t,n,e,i,r);return a!==On&&LM(o,va(),a),Od}function Cm(t,n,e,i,r,o,a){let s=Ne(),l=Q9(s,t,n,e,i,r,o,a);return l!==On&&LM(s,va(),l),Cm}function LM(t,n,e){let i=OD(n,t);UW(t[ri],i,e)}function zo(t,n,e){XD(n)&&(n=n());let i=Ne(),r=ts();if(Tr(i,r,n)){let o=gi(),a=rm();AP(a,i,t,n,i[ri],e)}return zo}function Ca(t,n){let e=XD(t);return e&&t.set(n),e}function Uo(t,n){let e=Ne(),i=gi(),r=tn();return EF(i,e,e[ri],r,t,n),Uo}function VM(t){return Tr(Ne(),ts(),t)?Fo(t):On}function $o(t,n,e=""){return LF(Ne(),t,n,e)}function K9(t,n,e){let i=gi();if(i.firstCreatePass){let r=ba(t);QE(e,i.data,i.blueprint,r,!0),QE(n,i.data,i.blueprint,r,!1)}}function QE(t,n,e,i,r){if(t=_n(t),Array.isArray(t))for(let o=0;o>20;if(hd(t)||!t.multi){let b=new Md(c,r,_e,null),v=uE(l,n,r?d:d+f,m);v===-1?(hE(qb(s,a),o,l),dE(o,t,n.length),n.push(l),s.directiveStart++,s.directiveEnd++,r&&(s.providerIndexes+=1048576),e.push(b),a.push(b)):(e[v]=b,a[v]=b)}else{let b=uE(l,n,d+f,m),v=uE(l,n,d,d+f),w=b>=0&&e[b],x=v>=0&&e[v];if(r&&!x||!r&&!w){hE(qb(s,a),o,l);let D=J9(r?X9:Z9,e.length,r,i,c,t);!r&&x&&(e[v].providerFactory=D),dE(o,t,n.length,0),n.push(l),s.directiveStart++,s.directiveEnd++,r&&(s.providerIndexes+=1048576),e.push(D),a.push(D)}else{let D=VF(e[r?v:b],c,!r&&i);dE(o,t,b>-1?b:v,D)}!r&&i&&x&&e[v].componentProviders++}}}function dE(t,n,e,i){let r=hd(n),o=_O(n);if(r||o){let l=(o?_n(n.useClass):n).prototype.ngOnDestroy;if(l){let c=t.destroyHooks||(t.destroyHooks=[]);if(!r&&n.multi){let d=c.indexOf(e);d===-1?c.push(e,[i,l]):c[d+1].push(i,l)}else c.push(e,l)}}}function VF(t,n,e){return e&&t.componentProviders++,t.multi.push(n)-1}function uE(t,n,e,i){for(let r=e;r{e.providersResolver=(i,r)=>K9(i,r?r(t):t,n)}}function at(t,n,e){let i=es()+t,r=Ne();return r[i]===On?tf(r,i,e?n.call(e):n()):DG(r,i)}function Pt(t,n,e,i){return BF(Ne(),es(),t,n,e,i)}function wa(t,n,e,i,r){return jF(Ne(),es(),t,n,e,i,r)}function Rd(t,n,e,i,r,o){return HF(Ne(),es(),t,n,e,i,r,o)}function wm(t,n,e,i,r,o,a){return zF(Ne(),es(),t,n,e,i,r,o,a)}function Sv(t,n){let e=t[n];return e===On?void 0:e}function BF(t,n,e,i,r,o){let a=n+e;return Tr(t,a,r)?tf(t,a+1,o?i.call(o,r):i(r)):Sv(t,a+1)}function jF(t,n,e,i,r,o,a){let s=n+e;return $p(t,s,r,o)?tf(t,s+2,a?i.call(a,r,o):i(r,o)):Sv(t,s+2)}function HF(t,n,e,i,r,o,a,s){let l=n+e;return tF(t,l,r,o,a)?tf(t,l+3,s?i.call(s,r,o,a):i(r,o,a)):Sv(t,l+3)}function zF(t,n,e,i,r,o,a,s,l){let c=n+e;return EG(t,c,r,o,a,s)?tf(t,c+4,l?i.call(l,r,o,a,s):i(r,o,a,s)):Sv(t,c+4)}function me(t,n){let e=gi(),i,r=t+mi;e.firstCreatePass?(i=eq(n,e.pipeRegistry),e.data[r]=i,i.onDestroy&&(e.destroyHooks??=[]).push(r,i.onDestroy)):i=e.data[r];let o=i.factory||(i.factory=Vl(i.type,!0)),a,s=kr(_e);try{let l=Gb(!1),c=o();return Gb(l),RD(e,Ne(),r,c),c}finally{kr(s)}}function eq(t,n){if(n)for(let e=n.length-1;e>=0;e--){let i=n[e];if(t===i.name)return i}}function Oe(t,n,e){let i=t+mi,r=Ne(),o=tm(r,i);return Tv(r,i)?BF(r,es(),n,o.transform,e,o):o.transform(e)}function Ni(t,n,e,i){let r=t+mi,o=Ne(),a=tm(o,r);return Tv(o,r)?jF(o,es(),n,a.transform,e,i,a):a.transform(e,i)}function BM(t,n,e,i,r){let o=t+mi,a=Ne(),s=tm(a,o);return Tv(a,o)?HF(a,es(),n,s.transform,e,i,r,s):s.transform(e,i,r)}function Dm(t,n,e,i,r,o){let a=t+mi,s=Ne(),l=tm(s,a);return Tv(s,a)?zF(s,es(),n,l.transform,e,i,r,o,l):l.transform(e,i,r,o)}function Tv(t,n){return t[We].data[n].pure}function _i(t,n){return xv(t,n)}var av=class{ngModuleFactory;componentFactories;constructor(n,e){this.ngModuleFactory=n,this.componentFactories=e}},jM=(()=>{class t{compileModuleSync(e){return new iv(e)}compileModuleAsync(e){return Promise.resolve(this.compileModuleSync(e))}compileModuleAndAllComponentsSync(e){let i=this.compileModuleSync(e),r=wD(e),o=pP(r.declarations).reduce((a,s)=>{let l=Ka(s);return l&&a.push(new Wl(l)),a},[]);return new av(i,o)}compileModuleAndAllComponentsAsync(e){return Promise.resolve(this.compileModuleAndAllComponentsSync(e))}clearCache(){}clearCacheFor(e){}getModuleId(e){}static \u0275fac=function(i){return new(i||t)};static \u0275prov=O({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();var tq=(()=>{class t{zone=u(ae);changeDetectionScheduler=u(Oo);applicationRef=u(Gn);applicationErrorHandler=u(hr);_onMicrotaskEmptySubscription;initialize(){this._onMicrotaskEmptySubscription||(this._onMicrotaskEmptySubscription=this.zone.onMicrotaskEmpty.subscribe({next:()=>{this.changeDetectionScheduler.runningTick||this.zone.run(()=>{try{this.applicationRef.dirtyFlags|=1,this.applicationRef._tick()}catch(e){this.applicationErrorHandler(e)}})}}))}ngOnDestroy(){this._onMicrotaskEmptySubscription?.unsubscribe()}static \u0275fac=function(i){return new(i||t)};static \u0275prov=O({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();function UF({ngZoneFactory:t,ignoreChangesOutsideZone:n,scheduleInRootZone:e}){return t??=()=>new ae(De(M({},$F()),{scheduleInRootZone:e})),[{provide:ae,useFactory:t},{provide:Qa,multi:!0,useFactory:()=>{let i=u(tq,{optional:!0});return()=>i.initialize()}},{provide:Qa,multi:!0,useFactory:()=>{let i=u(iq);return()=>{i.initialize()}}},n===!0?{provide:JD,useValue:!0}:[],{provide:eE,useValue:e??yP},{provide:hr,useFactory:()=>{let i=u(ae),r=u(Wt),o;return a=>{i.runOutsideAngular(()=>{r.destroyed&&!o?setTimeout(()=>{throw a}):(o??=r.get(Tn),o.handleError(a))})}}}]}function $F(t){return{enableLongStackTrace:!1,shouldCoalesceEventChangeDetection:t?.eventCoalescing??!1,shouldCoalesceRunChangeDetection:t?.runCoalescing??!1}}var iq=(()=>{class t{subscription=new ke;initialized=!1;zone=u(ae);pendingTasks=u(ns);initialize(){if(this.initialized)return;this.initialized=!0;let e=null;!this.zone.isStable&&!this.zone.hasPendingMacrotasks&&!this.zone.hasPendingMicrotasks&&(e=this.pendingTasks.add()),this.zone.runOutsideAngular(()=>{this.subscription.add(this.zone.onStable.subscribe(()=>{ae.assertNotInAngularZone(),queueMicrotask(()=>{e!==null&&!this.zone.hasPendingMacrotasks&&!this.zone.hasPendingMicrotasks&&(this.pendingTasks.remove(e),e=null)})}))}),this.subscription.add(this.zone.onUnstable.subscribe(()=>{ae.assertInAngularZone(),e??=this.pendingTasks.add()}))}ngOnDestroy(){this.subscription.unsubscribe()}static \u0275fac=function(i){return new(i||t)};static \u0275prov=O({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();var WF=(()=>{class t{applicationErrorHandler=u(hr);appRef=u(Gn);taskService=u(ns);ngZone=u(ae);zonelessEnabled=u(Fp);tracing=u(Yl,{optional:!0});disableScheduling=u(JD,{optional:!0})??!1;zoneIsDefined=typeof Zone<"u"&&!!Zone.root.run;schedulerTickApplyArgs=[{data:{__scheduler_tick__:!0}}];subscriptions=new ke;angularZoneId=this.zoneIsDefined?this.ngZone._inner?.get(Qb):null;scheduleInRootZone=!this.zonelessEnabled&&this.zoneIsDefined&&(u(eE,{optional:!0})??!1);cancelScheduledCallback=null;useMicrotaskScheduler=!1;runningTick=!1;pendingRenderTaskId=null;constructor(){this.subscriptions.add(this.appRef.afterTick.subscribe(()=>{this.runningTick||this.cleanup()})),this.subscriptions.add(this.ngZone.onUnstable.subscribe(()=>{this.runningTick||this.cleanup()})),this.disableScheduling||=!this.zonelessEnabled&&(this.ngZone instanceof jp||!this.zoneIsDefined)}notify(e){if(!this.zonelessEnabled&&e===5)return;let i=!1;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,i=!0;break}case 12:{this.appRef.dirtyFlags|=16,i=!0;break}case 13:{this.appRef.dirtyFlags|=2,i=!0;break}case 11:{i=!0;break}case 9:case 8:case 7:case 10:default:this.appRef.dirtyFlags|=8}if(this.appRef.tracingSnapshot=this.tracing?.snapshot(this.appRef.tracingSnapshot)??null,!this.shouldScheduleTick(i))return;let r=this.useMicrotaskScheduler?nR:xP;this.pendingRenderTaskId=this.taskService.add(),this.scheduleInRootZone?this.cancelScheduledCallback=Zone.root.run(()=>r(()=>this.tick())):this.cancelScheduledCallback=this.ngZone.runOutsideAngular(()=>r(()=>this.tick()))}shouldScheduleTick(e){return!(this.disableScheduling&&!e||this.appRef.destroyed||this.pendingRenderTaskId!==null||this.runningTick||this.appRef._runningTick||!this.zonelessEnabled&&this.zoneIsDefined&&Zone.current.get(Qb+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(i){this.taskService.remove(e),this.applicationErrorHandler(i)}finally{this.cleanup()}this.useMicrotaskScheduler=!0,nR(()=>{this.useMicrotaskScheduler=!1,this.taskService.remove(e)})}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(i){return new(i||t)};static \u0275prov=O({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();function nq(){return typeof $localize<"u"&&$localize.locale||of}var el=new T("",{providedIn:"root",factory:()=>u(el,{optional:!0,skipSelf:!0})||nq()}),HM=new T("",{providedIn:"root",factory:()=>x9});var af=class{destroyed=!1;listeners=null;errorHandler=u(Tn,{optional:!0});destroyRef=u(nn);constructor(){this.destroyRef.onDestroy(()=>{this.destroyed=!0,this.listeners=null})}subscribe(n){if(this.destroyed)throw new ue(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(Ro(953,!1));return}if(this.listeners===null)return;let e=Xe(null);try{for(let i of this.listeners)try{i(n)}catch(r){this.errorHandler?.handleError(r)}}finally{Xe(e)}}};function UM(t){return t.destroyRef}function Ti(t){return JA(t)}function Zt(t,n){return pp(t,n?.equal)}var zM=class{[ln];constructor(n){this[ln]=n}destroy(){this[ln].destroy()}};function Ar(t,n){let e=n?.injector??u(de),i=n?.manualCleanup!==!0?e.get(nn):null,r,o=e.get(wd,null,{optional:!0}),a=e.get(Oo);return o!==null?(r=aq(o.view,a,t),i instanceof Cp&&i._lView===o.view&&(i=null)):r=sq(t,e.get(Np),a),r.injector=e,i!==null&&(r.onDestroyFn=i.onDestroy(()=>r.destroy())),new zM(r)}var GF=De(M({},eO),{cleanupFns:void 0,zone:null,onDestroyFn:Dd,run(){let t=nm(!1);try{tO(this)}finally{nm(t)}},cleanup(){if(!this.cleanupFns?.length)return;let t=Xe(null);try{for(;this.cleanupFns.length;)this.cleanupFns.pop()()}finally{this.cleanupFns=[],Xe(t)}}}),rq=De(M({},GF),{consumerMarkedDirty(){this.scheduler.schedule(this),this.notifier.notify(12)},destroy(){Tl(this),this.onDestroyFn(),this.cleanup(),this.scheduler.remove(this)}}),oq=De(M({},GF),{consumerMarkedDirty(){this.view[et]|=8192,zl(this.view),this.notifier.notify(13)},destroy(){Tl(this),this.onDestroyFn(),this.cleanup(),this.view[Gs]?.delete(this)}});function aq(t,n,e){let i=Object.create(oq);return i.view=t,i.zone=typeof Zone<"u"?Zone.current:null,i.notifier=n,i.fn=qF(i,e),t[Gs]??=new Set,t[Gs].add(i),i.consumerMarkedDirty(i),i}function sq(t,n,e){let i=Object.create(rq);return i.fn=qF(i,t),i.scheduler=n,i.notifier=e,i.zone=typeof Zone<"u"?Zone.current:null,i.scheduler.add(i),i.notifier.notify(12),i}function qF(t,n){return()=>{n(e=>(t.cleanupFns??=[]).push(e))}}var Ov=Symbol("InputSignalNode#UNSET"),i2=De(M({},fp),{transformFn:void 0,applyValueToInputSignal(t,n){rd(t,n)}});function n2(t,n){let e=Object.create(i2);e.value=t,e.transformFn=n?.transform;function i(){if(kl(e),e.value===Ov){let r=null;throw new ue(-950,r)}return e.value}return i[ln]=e,i}var Ii=class{attributeName;constructor(n){this.attributeName=n}__NG_ELEMENT_ID__=()=>qp(this.attributeName);toString(){return`HostAttributeToken ${this.attributeName}`}},ZM=new T("");ZM.__NG_ELEMENT_ID__=t=>{let n=tn();if(n===null)throw new ue(204,!1);if(n.type&2)return n.value;if(t&8)return null;throw new ue(204,!1)};function bi(t){return new af}function YF(t,n){return n2(t,n)}function xq(t){return n2(Ov,t)}var ne=(YF.required=xq,YF);function QF(t,n){return IM(n)}function Cq(t,n){return AM(n)}var qn=(QF.required=Cq,QF);function KF(t,n){return IM(n)}function wq(t,n){return AM(n)}var fr=(KF.required=wq,KF);function r2(t,n){return hF(n)}function o2(t,n){let e=Object.create(i2),i=new af;e.value=t;function r(){return kl(e),ZF(e.value),e.value}return r[ln]=e,r.asReadonly=Ab.bind(r),r.set=o=>{e.equal(e.value,o)||(rd(e,o),i.emit(o))},r.update=o=>{ZF(e.value),r.set(o(e.value))},r.subscribe=i.subscribe.bind(i),r.destroyRef=i.destroyRef,r}function ZF(t){if(t===Ov)throw new ue(952,!1)}function XF(t,n){return o2(t,n)}function Dq(t){return o2(Ov,t)}var Em=(XF.required=Dq,XF);var WM=new T(""),Eq=new T("");function sf(t){return!t.moduleRef}function Mq(t){let n=sf(t)?t.r3Injector:t.moduleRef.injector,e=n.get(ae);return e.run(()=>{sf(t)?t.r3Injector.resolveInjectorInitializers():t.moduleRef.resolveInjectorInitializers();let i=n.get(hr),r;if(e.runOutsideAngular(()=>{r=e.onError.subscribe({next:i})}),sf(t)){let o=()=>n.destroy(),a=t.platformInjector.get(WM);a.add(o),n.onDestroy(()=>{r.unsubscribe(),a.delete(o)})}else{let o=()=>t.moduleRef.destroy(),a=t.platformInjector.get(WM);a.add(o),t.moduleRef.onDestroy(()=>{Vp(t.allPlatformModules,t.moduleRef),r.unsubscribe(),a.delete(o)})}return Sq(i,e,()=>{let o=n.get(ns),a=o.add(),s=n.get(PM);return s.runInitializers(),s.donePromise.then(()=>{let l=n.get(el,of);if(DF(l||of),!n.get(Eq,!0))return sf(t)?n.get(Gn):(t.allPlatformModules.push(t.moduleRef),t.moduleRef);if(sf(t)){let d=n.get(Gn);return t.rootComponent!==void 0&&d.bootstrap(t.rootComponent),d}else return kq?.(t.moduleRef,t.allPlatformModules),t.moduleRef}).finally(()=>void o.remove(a))})})}var kq;function Sq(t,n,e){try{let i=e();return Xs(i)?i.catch(r=>{throw n.runOutsideAngular(()=>t(r)),r}):i}catch(i){throw n.runOutsideAngular(()=>t(i)),i}}var Iv=null;function Tq(t=[],n){return de.create({name:n,providers:[{provide:kp,useValue:"platform"},{provide:WM,useValue:new Set([()=>Iv=null])},...t]})}function Iq(t=[]){if(Iv)return Iv;let n=Tq(t);return Iv=n,vF(),Aq(n),n}function Aq(t){let n=t.get(sv,null);In(t,()=>{n?.forEach(e=>e())})}var ye=(()=>{class t{static __NG_ELEMENT_ID__=Oq}return t})();function Oq(t){return Rq(tn(),Ne(),(t&16)===16)}function Rq(t,n,e){if(qs(t)&&!e){let i=Bo(t.index,n);return new $l(i,i)}else if(t.type&175){let i=n[mr];return new $l(i,n)}return null}var GM=class{constructor(){}supports(n){return MM(n)}create(n){return new qM(n)}},Pq=(t,n)=>n,qM=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||Pq}forEachItem(n){let e;for(e=this._itHead;e!==null;e=e._next)n(e)}forEachOperation(n){let e=this._itHead,i=this._removalsHead,r=0,o=null;for(;e||i;){let a=!i||e&&e.currentIndex{a=this._trackByFn(r,s),e===null||!Object.is(e.trackById,a)?(e=this._mismatch(e,s,a,r),i=!0):(i&&(e=this._verifyReinsertion(e,s,a,r)),Object.is(e.item,s)||this._addIdentityChange(e,s)),e=e._next,r++}),this.length=r;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,i,r){let o;return n===null?o=this._itTail:(o=n._prev,this._remove(n)),n=this._unlinkedRecords===null?null:this._unlinkedRecords.get(i,null),n!==null?(Object.is(n.item,e)||this._addIdentityChange(n,e),this._reinsertAfter(n,o,r)):(n=this._linkedRecords===null?null:this._linkedRecords.get(i,r),n!==null?(Object.is(n.item,e)||this._addIdentityChange(n,e),this._moveAfter(n,o,r)):n=this._addAfter(new YM(e,i),o,r)),n}_verifyReinsertion(n,e,i,r){let o=this._unlinkedRecords===null?null:this._unlinkedRecords.get(i,null);return o!==null?n=this._reinsertAfter(o,n._prev,r):n.currentIndex!=r&&(n.currentIndex=r,this._addToMoves(n,r)),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,i){this._unlinkedRecords!==null&&this._unlinkedRecords.remove(n);let r=n._prevRemoved,o=n._nextRemoved;return r===null?this._removalsHead=o:r._nextRemoved=o,o===null?this._removalsTail=r:o._prevRemoved=r,this._insertAfter(n,e,i),this._addToMoves(n,i),n}_moveAfter(n,e,i){return this._unlink(n),this._insertAfter(n,e,i),this._addToMoves(n,i),n}_addAfter(n,e,i){return this._insertAfter(n,e,i),this._additionsTail===null?this._additionsTail=this._additionsHead=n:this._additionsTail=this._additionsTail._nextAdded=n,n}_insertAfter(n,e,i){let r=e===null?this._itHead:e._next;return n._next=r,n._prev=e,r===null?this._itTail=n:r._prev=n,e===null?this._itHead=n:e._next=n,this._linkedRecords===null&&(this._linkedRecords=new Av),this._linkedRecords.put(n),n.currentIndex=i,n}_remove(n){return this._addToRemovals(this._unlink(n))}_unlink(n){this._linkedRecords!==null&&this._linkedRecords.remove(n);let e=n._prev,i=n._next;return e===null?this._itHead=i:e._next=i,i===null?this._itTail=e:i._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 Av),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}},QM=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 i;for(i=this._head;i!==null;i=i._nextDup)if((e===null||e<=i.currentIndex)&&Object.is(i.trackById,n))return i;return null}remove(n){let e=n._prevDup,i=n._nextDup;return e===null?this._head=i:e._nextDup=i,i===null?this._tail=e:i._prevDup=e,this._head===null}},Av=class{map=new Map;put(n){let e=n.trackById,i=this.map.get(e);i||(i=new QM,this.map.set(e,i)),i.add(n)}get(n,e){let i=n,r=this.map.get(i);return r?r.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 JF(t,n,e){let i=t.previousIndex;if(i===null)return i;let r=0;return e&&i{class t{factories;static \u0275prov=O({token:t,providedIn:"root",factory:e2});constructor(e){this.factories=e}static create(e,i){if(i!=null){let r=i.factories.slice();e=e.concat(r)}return new t(e)}static extend(e){return{provide:t,useFactory:()=>{let i=u(t,{optional:!0,skipSelf:!0});return t.create(e,i||e2())}}}find(e){let i=this.factories.find(r=>r.supports(e));if(i!=null)return i;throw new ue(901,!1)}}return t})();function a2(t){let{rootComponent:n,appProviders:e,platformProviders:i,platformRef:r}=t;oi(8);try{let o=r?.injector??Iq(i),a=[UF({}),{provide:Oo,useExisting:WF},HO,...e||[]],s=new Wp({providers:a,parent:o,debugName:"",runEnvironmentInitializers:!1});return Mq({r3Injector:s.injector,platformInjector:o,rootComponent:n})}catch(o){return Promise.reject(o)}finally{oi(9)}}function V(t){return typeof t=="boolean"?t:t!=null&&t!=="false"}function ct(t,n=NaN){return!isNaN(parseFloat(t))&&!isNaN(Number(t))?Number(t):n}var $M=Symbol("NOT_SET"),s2=new Set,Fq=De(M({},fp),{consumerIsAlwaysLive:!0,consumerAllowSignalWrites:!0,value:$M,cleanup:null,consumerMarkedDirty(){if(this.sequence.impl.executing){if(this.sequence.lastPhase===null||this.sequence.lastPhase(kl(c),c.value),c.signal[ln]=c,c.registerCleanupFn=d=>(c.cleanup??=new Set).add(d),this.nodes[s]=c,this.hooks[s]=d=>c.phaseFn(d)}}afterRun(){super.afterRun(),this.lastPhase=null}destroy(){super.destroy();for(let n of this.nodes)if(n)try{for(let e of n.cleanup??s2)e()}finally{Tl(n)}}};function l2(t,n){let e=n?.injector??u(de),i=e.get(Oo),r=e.get(pv),o=e.get(Yl,null,{optional:!0});r.impl??=e.get(_M);let a=t;typeof a=="function"&&(a={mixedReadWrite:t});let s=e.get(wd,null,{optional:!0}),l=new KM(r.impl,[a.earlyRead,a.write,a.mixedReadWrite,a.read],s?.view,i,e,o?.snapshot(null));return r.impl.register(l),l}function Mm(t,n){let e=Ka(t),i=n.elementInjector||Ku();return new Wl(e).create(i,n.projectableNodes,n.hostElement,n.environmentInjector,n.directives,n.bindings)}function c2(t){let n=Ka(t);if(!n)return null;let e=new Wl(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 m2=null;function Wo(){return m2}function XM(t){m2??=t}var lf=class{},cf=(()=>{class t{historyGo(e){throw new Error("")}static \u0275fac=function(i){return new(i||t)};static \u0275prov=O({token:t,factory:()=>u(h2),providedIn:"platform"})}return t})(),JM=new T(""),h2=(()=>{class t extends cf{_location;_history;_doc=u(ge);constructor(){super(),this._location=window.location,this._history=window.history}getBaseHrefFromDOM(){return Wo().getBaseHref(this._doc)}onPopState(e){let i=Wo().getGlobalEventTarget(this._doc,"window");return i.addEventListener("popstate",e,!1),()=>i.removeEventListener("popstate",e)}onHashChange(e){let i=Wo().getGlobalEventTarget(this._doc,"window");return i.addEventListener("hashchange",e,!1),()=>i.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,i,r){this._history.pushState(e,i,r)}replaceState(e,i,r){this._history.replaceState(e,i,r)}forward(){this._history.forward()}back(){this._history.back()}historyGo(e=0){this._history.go(e)}getState(){return this._history.state}static \u0275fac=function(i){return new(i||t)};static \u0275prov=O({token:t,factory:()=>new t,providedIn:"platform"})}return t})();function Rv(t,n){return t?n?t.endsWith("/")?n.startsWith("/")?t+n.slice(1):t+n:n.startsWith("/")?t+n:`${t}/${n}`:t:n}function d2(t){let n=t.search(/#|\?|$/);return t[n-1]==="/"?t.slice(0,n-1)+t.slice(n):t}function Da(t){return t&&t[0]!=="?"?`?${t}`:t}var Ea=(()=>{class t{historyGo(e){throw new Error("")}static \u0275fac=function(i){return new(i||t)};static \u0275prov=O({token:t,factory:()=>u(Fv),providedIn:"root"})}return t})(),Pv=new T(""),Fv=(()=>{class t extends Ea{_platformLocation;_baseHref;_removeListenerFns=[];constructor(e,i){super(),this._platformLocation=e,this._baseHref=i??this._platformLocation.getBaseHrefFromDOM()??u(ge).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 Rv(this._baseHref,e)}path(e=!1){let i=this._platformLocation.pathname+Da(this._platformLocation.search),r=this._platformLocation.hash;return r&&e?`${i}${r}`:i}pushState(e,i,r,o){let a=this.prepareExternalUrl(r+Da(o));this._platformLocation.pushState(e,i,a)}replaceState(e,i,r,o){let a=this.prepareExternalUrl(r+Da(o));this._platformLocation.replaceState(e,i,a)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}getState(){return this._platformLocation.getState()}historyGo(e=0){this._platformLocation.historyGo?.(e)}static \u0275fac=function(i){return new(i||t)(pe(cf),pe(Pv,8))};static \u0275prov=O({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),us=(()=>{class t{_subject=new z;_basePath;_locationStrategy;_urlChangeListeners=[];_urlChangeSubscription=null;constructor(e){this._locationStrategy=e;let i=this._locationStrategy.getBaseHref();this._basePath=Vq(d2(u2(i))),this._locationStrategy.onPopState(r=>{this._subject.next({url:this.path(!0),pop:!0,state:r.state,type:r.type})})}ngOnDestroy(){this._urlChangeSubscription?.unsubscribe(),this._urlChangeListeners=[]}path(e=!1){return this.normalize(this._locationStrategy.path(e))}getState(){return this._locationStrategy.getState()}isCurrentPathEqualTo(e,i=""){return this.path()==this.normalize(e+Da(i))}normalize(e){return t.stripTrailingSlash(Lq(this._basePath,u2(e)))}prepareExternalUrl(e){return e&&e[0]!=="/"&&(e="/"+e),this._locationStrategy.prepareExternalUrl(e)}go(e,i="",r=null){this._locationStrategy.pushState(r,"",e,i),this._notifyUrlChangeListeners(this.prepareExternalUrl(e+Da(i)),r)}replaceState(e,i="",r=null){this._locationStrategy.replaceState(r,"",e,i),this._notifyUrlChangeListeners(this.prepareExternalUrl(e+Da(i)),r)}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(i=>{this._notifyUrlChangeListeners(i.url,i.state)}),()=>{let i=this._urlChangeListeners.indexOf(e);this._urlChangeListeners.splice(i,1),this._urlChangeListeners.length===0&&(this._urlChangeSubscription?.unsubscribe(),this._urlChangeSubscription=null)}}_notifyUrlChangeListeners(e="",i){this._urlChangeListeners.forEach(r=>r(e,i))}subscribe(e,i,r){return this._subject.subscribe({next:e,error:i??void 0,complete:r??void 0})}static normalizeQueryParams=Da;static joinWithSlash=Rv;static stripTrailingSlash=d2;static \u0275fac=function(i){return new(i||t)(pe(Ea))};static \u0275prov=O({token:t,factory:()=>Nq(),providedIn:"root"})}return t})();function Nq(){return new us(pe(Ea))}function Lq(t,n){if(!t||!n.startsWith(t))return n;let e=n.substring(t.length);return e===""||["/",";","?","#"].includes(e[0])?e:n}function u2(t){return t.replace(/\/index.html$/,"")}function Vq(t){if(new RegExp("^(https?:)?//").test(t)){let[,e]=t.split(/\/\/[^\/]+/);return e}return t}var l1=(()=>{class t extends Ea{_platformLocation;_baseHref="";_removeListenerFns=[];constructor(e,i){super(),this._platformLocation=e,i!=null&&(this._baseHref=i)}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 i=this._platformLocation.hash??"#";return i.length>0?i.substring(1):i}prepareExternalUrl(e){let i=Rv(this._baseHref,e);return i.length>0?"#"+i:i}pushState(e,i,r,o){let a=this.prepareExternalUrl(r+Da(o))||this._platformLocation.pathname;this._platformLocation.pushState(e,i,a)}replaceState(e,i,r,o){let a=this.prepareExternalUrl(r+Da(o))||this._platformLocation.pathname;this._platformLocation.replaceState(e,i,a)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}getState(){return this._platformLocation.getState()}historyGo(e=0){this._platformLocation.historyGo?.(e)}static \u0275fac=function(i){return new(i||t)(pe(cf),pe(Pv,8))};static \u0275prov=O({token:t,factory:t.\u0275fac})}return t})(),y2={ADP:[void 0,void 0,0],AFN:[void 0,"\u060B",0],ALL:[void 0,void 0,0],AMD:[void 0,"\u058F",2],AOA:[void 0,"Kz"],ARS:[void 0,"$"],AUD:["A$","$"],AZN:[void 0,"\u20BC"],BAM:[void 0,"KM"],BBD:[void 0,"$"],BDT:[void 0,"\u09F3"],BHD:[void 0,void 0,3],BIF:[void 0,void 0,0],BMD:[void 0,"$"],BND:[void 0,"$"],BOB:[void 0,"Bs"],BRL:["R$"],BSD:[void 0,"$"],BWP:[void 0,"P"],BYN:[void 0,void 0,2],BYR:[void 0,void 0,0],BZD:[void 0,"$"],CAD:["CA$","$",2],CHF:[void 0,void 0,2],CLF:[void 0,void 0,4],CLP:[void 0,"$",0],CNY:["CN\xA5","\xA5"],COP:[void 0,"$",2],CRC:[void 0,"\u20A1",2],CUC:[void 0,"$"],CUP:[void 0,"$"],CZK:[void 0,"K\u010D",2],DJF:[void 0,void 0,0],DKK:[void 0,"kr",2],DOP:[void 0,"$"],EGP:[void 0,"E\xA3"],ESP:[void 0,"\u20A7",0],EUR:["\u20AC"],FJD:[void 0,"$"],FKP:[void 0,"\xA3"],GBP:["\xA3"],GEL:[void 0,"\u20BE"],GHS:[void 0,"GH\u20B5"],GIP:[void 0,"\xA3"],GNF:[void 0,"FG",0],GTQ:[void 0,"Q"],GYD:[void 0,"$",2],HKD:["HK$","$"],HNL:[void 0,"L"],HRK:[void 0,"kn"],HUF:[void 0,"Ft",2],IDR:[void 0,"Rp",2],ILS:["\u20AA"],INR:["\u20B9"],IQD:[void 0,void 0,0],IRR:[void 0,void 0,0],ISK:[void 0,"kr",0],ITL:[void 0,void 0,0],JMD:[void 0,"$"],JOD:[void 0,void 0,3],JPY:["\xA5",void 0,0],KHR:[void 0,"\u17DB"],KMF:[void 0,"CF",0],KPW:[void 0,"\u20A9",0],KRW:["\u20A9",void 0,0],KWD:[void 0,void 0,3],KYD:[void 0,"$"],KZT:[void 0,"\u20B8"],LAK:[void 0,"\u20AD",0],LBP:[void 0,"L\xA3",0],LKR:[void 0,"Rs"],LRD:[void 0,"$"],LTL:[void 0,"Lt"],LUF:[void 0,void 0,0],LVL:[void 0,"Ls"],LYD:[void 0,void 0,3],MGA:[void 0,"Ar",0],MGF:[void 0,void 0,0],MMK:[void 0,"K",0],MNT:[void 0,"\u20AE",2],MRO:[void 0,void 0,0],MUR:[void 0,"Rs",2],MXN:["MX$","$"],MYR:[void 0,"RM"],NAD:[void 0,"$"],NGN:[void 0,"\u20A6"],NIO:[void 0,"C$"],NOK:[void 0,"kr",2],NPR:[void 0,"Rs"],NZD:["NZ$","$"],OMR:[void 0,void 0,3],PHP:["\u20B1"],PKR:[void 0,"Rs",2],PLN:[void 0,"z\u0142"],PYG:[void 0,"\u20B2",0],RON:[void 0,"lei"],RSD:[void 0,void 0,0],RUB:[void 0,"\u20BD"],RWF:[void 0,"RF",0],SBD:[void 0,"$"],SEK:[void 0,"kr",2],SGD:[void 0,"$"],SHP:[void 0,"\xA3"],SLE:[void 0,void 0,2],SLL:[void 0,void 0,0],SOS:[void 0,void 0,0],SRD:[void 0,"$"],SSP:[void 0,"\xA3"],STD:[void 0,void 0,0],STN:[void 0,"Db"],SYP:[void 0,"\xA3",0],THB:[void 0,"\u0E3F"],TMM:[void 0,void 0,0],TND:[void 0,void 0,3],TOP:[void 0,"T$"],TRL:[void 0,void 0,0],TRY:[void 0,"\u20BA"],TTD:[void 0,"$"],TWD:["NT$","$",2],TZS:[void 0,void 0,2],UAH:[void 0,"\u20B4"],UGX:[void 0,void 0,0],USD:["$"],UYI:[void 0,void 0,0],UYU:[void 0,"$"],UYW:[void 0,void 0,4],UZS:[void 0,void 0,2],VEF:[void 0,"Bs",2],VND:["\u20AB",void 0,0],VUV:[void 0,void 0,0],XAF:["FCFA",void 0,0],XCD:["EC$","$"],XOF:["F\u202FCFA",void 0,0],XPF:["CFPF",void 0,0],XXX:["\xA4"],YER:[void 0,void 0,0],ZAR:[void 0,"R"],ZMK:[void 0,void 0,0],ZMW:[void 0,"ZK"],ZWD:[void 0,void 0,0]},Wv=(function(t){return t[t.Decimal=0]="Decimal",t[t.Percent=1]="Percent",t[t.Currency=2]="Currency",t[t.Scientific=3]="Scientific",t})(Wv||{});var gr=(function(t){return t[t.Format=0]="Format",t[t.Standalone=1]="Standalone",t})(gr||{}),hi=(function(t){return t[t.Narrow=0]="Narrow",t[t.Abbreviated=1]="Abbreviated",t[t.Wide=2]="Wide",t[t.Short=3]="Short",t})(hi||{}),Gr=(function(t){return t[t.Short=0]="Short",t[t.Medium=1]="Medium",t[t.Long=2]="Long",t[t.Full=3]="Full",t})(Gr||{}),Yn={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 x2(t){return Ir(t)[zi.LocaleId]}function C2(t,n,e){let i=Ir(t),r=[i[zi.DayPeriodsFormat],i[zi.DayPeriodsStandalone]],o=Go(r,n);return Go(o,e)}function w2(t,n,e){let i=Ir(t),r=[i[zi.DaysFormat],i[zi.DaysStandalone]],o=Go(r,n);return Go(o,e)}function D2(t,n,e){let i=Ir(t),r=[i[zi.MonthsFormat],i[zi.MonthsStandalone]],o=Go(r,n);return Go(o,e)}function E2(t,n){let i=Ir(t)[zi.Eras];return Go(i,n)}function df(t,n){let e=Ir(t);return Go(e[zi.DateFormat],n)}function uf(t,n){let e=Ir(t);return Go(e[zi.TimeFormat],n)}function mf(t,n){let i=Ir(t)[zi.DateTimeFormat];return Go(i,n)}function ka(t,n){let e=Ir(t),i=e[zi.NumberSymbols][n];if(typeof i>"u"){if(n===Yn.CurrencyDecimal)return e[zi.NumberSymbols][Yn.Decimal];if(n===Yn.CurrencyGroup)return e[zi.NumberSymbols][Yn.Group]}return i}function c1(t,n){return Ir(t)[zi.NumberFormats][n]}function Bq(t){return Ir(t)[zi.Currencies]}function M2(t){if(!t[zi.ExtraData])throw new ue(2303,!1)}function k2(t){let n=Ir(t);return M2(n),(n[zi.ExtraData][2]||[]).map(i=>typeof i=="string"?e1(i):[e1(i[0]),e1(i[1])])}function S2(t,n,e){let i=Ir(t);M2(i);let r=[i[zi.ExtraData][0],i[zi.ExtraData][1]],o=Go(r,n)||[];return Go(o,e)||[]}function Go(t,n){for(let e=n;e>-1;e--)if(typeof t[e]<"u")return t[e];throw new ue(2304,!1)}function e1(t){let[n,e]=t.split(":");return{hours:+n,minutes:+e}}function T2(t,n,e="en"){let i=Bq(e)[t]||y2[t]||[],r=i[1];return n==="narrow"&&typeof r=="string"?r:i[0]||t}var jq=2;function I2(t){let n,e=y2[t];return e&&(n=e[2]),typeof n=="number"?n:jq}var Hq=/^(\d{4,})-?(\d\d)-?(\d\d)(?:T(\d\d)(?::?(\d\d)(?::?(\d\d)(?:\.(\d+))?)?)?(Z|([+-])(\d\d):?(\d\d))?)?$/,Nv={},zq=/((?:[^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]*)/;function A2(t,n,e,i){let r=Zq(t);n=tl(e,n)||n;let a=[],s;for(;n;)if(s=zq.exec(n),s){a=a.concat(s.slice(1));let d=a.pop();if(!d)break;n=d}else{a.push(n);break}let l=r.getTimezoneOffset();i&&(l=R2(i,l),r=Kq(r,i));let c="";return a.forEach(d=>{let m=Yq(d);c+=m?m(r,e,l):d==="''"?"'":d.replace(/(^'|'$)/g,"").replace(/''/g,"'")}),c}function Hv(t,n,e){let i=new Date(0);return i.setFullYear(t,n,e),i.setHours(0,0,0),i}function tl(t,n){let e=x2(t);if(Nv[e]??={},Nv[e][n])return Nv[e][n];let i="";switch(n){case"shortDate":i=df(t,Gr.Short);break;case"mediumDate":i=df(t,Gr.Medium);break;case"longDate":i=df(t,Gr.Long);break;case"fullDate":i=df(t,Gr.Full);break;case"shortTime":i=uf(t,Gr.Short);break;case"mediumTime":i=uf(t,Gr.Medium);break;case"longTime":i=uf(t,Gr.Long);break;case"fullTime":i=uf(t,Gr.Full);break;case"short":let r=tl(t,"shortTime"),o=tl(t,"shortDate");i=Lv(mf(t,Gr.Short),[r,o]);break;case"medium":let a=tl(t,"mediumTime"),s=tl(t,"mediumDate");i=Lv(mf(t,Gr.Medium),[a,s]);break;case"long":let l=tl(t,"longTime"),c=tl(t,"longDate");i=Lv(mf(t,Gr.Long),[l,c]);break;case"full":let d=tl(t,"fullTime"),m=tl(t,"fullDate");i=Lv(mf(t,Gr.Full),[d,m]);break}return i&&(Nv[e][n]=i),i}function Lv(t,n){return n&&(t=t.replace(/\{([^}]+)}/g,function(e,i){return n!=null&&i in n?n[i]:e})),t}function Ma(t,n,e="-",i,r){let o="";(t<0||r&&t<=0)&&(r?t=-t+1:(t=-t,o=e));let a=String(t);for(;a.length0||s>-e)&&(s+=e),t===3)s===0&&e===-12&&(s=12);else if(t===6)return Uq(s,n);let l=ka(a,Yn.MinusSign);return Ma(s,n,l,i,r)}}function $q(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 ue(2301,!1)}}function Ci(t,n,e=gr.Format,i=!1){return function(r,o){return Wq(r,o,t,n,e,i)}}function Wq(t,n,e,i,r,o){switch(e){case 2:return D2(n,r,i)[t.getMonth()];case 1:return w2(n,r,i)[t.getDay()];case 0:let a=t.getHours(),s=t.getMinutes();if(o){let c=k2(n),d=S2(n,r,i),m=c.findIndex(f=>{if(Array.isArray(f)){let[b,v]=f,w=a>=b.hours&&s>=b.minutes,x=a0?Math.floor(r/60):Math.ceil(r/60);switch(t){case 0:return(r>=0?"+":"")+Ma(a,2,o)+Ma(Math.abs(r%60),2,o);case 1:return"GMT"+(r>=0?"+":"")+Ma(a,1,o);case 2:return"GMT"+(r>=0?"+":"")+Ma(a,2,o)+":"+Ma(Math.abs(r%60),2,o);case 3:return i===0?"Z":(r>=0?"+":"")+Ma(a,2,o)+":"+Ma(Math.abs(r%60),2,o);default:throw new ue(2310,!1)}}}var Gq=0,jv=4;function qq(t){let n=Hv(t,Gq,1).getDay();return Hv(t,0,1+(n<=jv?jv:jv+7)-n)}function O2(t){let n=t.getDay(),e=n===0?-3:jv-n;return Hv(t.getFullYear(),t.getMonth(),t.getDate()+e)}function t1(t,n=!1){return function(e,i){let r;if(n){let o=new Date(e.getFullYear(),e.getMonth(),1).getDay()-1,a=e.getDate();r=1+Math.floor((a+o)/7)}else{let o=O2(e),a=qq(o.getFullYear()),s=o.getTime()-a.getTime();r=1+Math.round(s/6048e5)}return Ma(r,t,ka(i,Yn.MinusSign))}}function Bv(t,n=!1){return function(e,i){let o=O2(e).getFullYear();return Ma(o,t,ka(i,Yn.MinusSign),n)}}var i1={};function Yq(t){if(i1[t])return i1[t];let n;switch(t){case"G":case"GG":case"GGG":n=Ci(3,hi.Abbreviated);break;case"GGGG":n=Ci(3,hi.Wide);break;case"GGGGG":n=Ci(3,hi.Narrow);break;case"y":n=dn(0,1,0,!1,!0);break;case"yy":n=dn(0,2,0,!0,!0);break;case"yyy":n=dn(0,3,0,!1,!0);break;case"yyyy":n=dn(0,4,0,!1,!0);break;case"Y":n=Bv(1);break;case"YY":n=Bv(2,!0);break;case"YYY":n=Bv(3);break;case"YYYY":n=Bv(4);break;case"M":case"L":n=dn(1,1,1);break;case"MM":case"LL":n=dn(1,2,1);break;case"MMM":n=Ci(2,hi.Abbreviated);break;case"MMMM":n=Ci(2,hi.Wide);break;case"MMMMM":n=Ci(2,hi.Narrow);break;case"LLL":n=Ci(2,hi.Abbreviated,gr.Standalone);break;case"LLLL":n=Ci(2,hi.Wide,gr.Standalone);break;case"LLLLL":n=Ci(2,hi.Narrow,gr.Standalone);break;case"w":n=t1(1);break;case"ww":n=t1(2);break;case"W":n=t1(1,!0);break;case"d":n=dn(2,1);break;case"dd":n=dn(2,2);break;case"c":case"cc":n=dn(7,1);break;case"ccc":n=Ci(1,hi.Abbreviated,gr.Standalone);break;case"cccc":n=Ci(1,hi.Wide,gr.Standalone);break;case"ccccc":n=Ci(1,hi.Narrow,gr.Standalone);break;case"cccccc":n=Ci(1,hi.Short,gr.Standalone);break;case"E":case"EE":case"EEE":n=Ci(1,hi.Abbreviated);break;case"EEEE":n=Ci(1,hi.Wide);break;case"EEEEE":n=Ci(1,hi.Narrow);break;case"EEEEEE":n=Ci(1,hi.Short);break;case"a":case"aa":case"aaa":n=Ci(0,hi.Abbreviated);break;case"aaaa":n=Ci(0,hi.Wide);break;case"aaaaa":n=Ci(0,hi.Narrow);break;case"b":case"bb":case"bbb":n=Ci(0,hi.Abbreviated,gr.Standalone,!0);break;case"bbbb":n=Ci(0,hi.Wide,gr.Standalone,!0);break;case"bbbbb":n=Ci(0,hi.Narrow,gr.Standalone,!0);break;case"B":case"BB":case"BBB":n=Ci(0,hi.Abbreviated,gr.Format,!0);break;case"BBBB":n=Ci(0,hi.Wide,gr.Format,!0);break;case"BBBBB":n=Ci(0,hi.Narrow,gr.Format,!0);break;case"h":n=dn(3,1,-12);break;case"hh":n=dn(3,2,-12);break;case"H":n=dn(3,1);break;case"HH":n=dn(3,2);break;case"m":n=dn(4,1);break;case"mm":n=dn(4,2);break;case"s":n=dn(5,1);break;case"ss":n=dn(5,2);break;case"S":n=dn(6,1);break;case"SS":n=dn(6,2);break;case"SSS":n=dn(6,3);break;case"Z":case"ZZ":case"ZZZ":n=Vv(0);break;case"ZZZZZ":n=Vv(3);break;case"O":case"OO":case"OOO":case"z":case"zz":case"zzz":n=Vv(1);break;case"OOOO":case"ZZZZ":case"zzzz":n=Vv(2);break;default:return null}return i1[t]=n,n}function R2(t,n){t=t.replace(/:/g,"");let e=Date.parse("Jan 01, 1970 00:00:00 "+t)/6e4;return isNaN(e)?n:e}function Qq(t,n){return t=new Date(t.getTime()),t.setMinutes(t.getMinutes()+n),t}function Kq(t,n,e){let r=t.getTimezoneOffset(),o=R2(n,r);return Qq(t,-1*(o-r))}function Zq(t){if(p2(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[r,o=1,a=1]=t.split("-").map(s=>+s);return Hv(r,o-1,a)}let e=parseFloat(t);if(!isNaN(t-e))return new Date(e);let i;if(i=t.match(Hq))return Xq(i)}let n=new Date(t);if(!p2(n))throw new ue(2311,!1);return n}function Xq(t){let n=new Date(0),e=0,i=0,r=t[8]?n.setUTCFullYear:n.setFullYear,o=t[8]?n.setUTCHours:n.setHours;t[9]&&(e=Number(t[9]+t[10]),i=Number(t[9]+t[11])),r.call(n,Number(t[1]),Number(t[2])-1,Number(t[3]));let a=Number(t[4]||0)-e,s=Number(t[5]||0)-i,l=Number(t[6]||0),c=Math.floor(parseFloat("0."+(t[7]||0))*1e3);return o.call(n,a,s,l,c),n}function p2(t){return t instanceof Date&&!isNaN(t.valueOf())}var Jq=/^(\d+)?\.((\d+)(-(\d+))?)?$/,f2=22,zv=".",hf="0",eY=";",tY=",",n1="#",g2="\xA4";function P2(t,n,e,i,r,o,a=!1){let s="",l=!1;if(!isFinite(t))s=ka(e,Yn.Infinity);else{let c=nY(t);a&&(c=iY(c));let d=n.minInt,m=n.minFrac,f=n.maxFrac;if(o){let P=o.match(Jq);if(P===null)throw new ue(2306,!1);let W=P[1],Z=P[3],K=P[5];W!=null&&(d=r1(W)),Z!=null&&(m=r1(Z)),K!=null?f=r1(K):Z!=null&&m>f&&(f=m)}rY(c,m,f);let b=c.digits,v=c.integerLen,w=c.exponent,x=[];for(l=b.every(P=>!P);v0?x=b.splice(v,b.length):(x=b,b=[0]);let D=[];for(b.length>=n.lgSize&&D.unshift(b.splice(-n.lgSize,b.length).join(""));b.length>n.gSize;)D.unshift(b.splice(-n.gSize,b.length).join(""));b.length&&D.unshift(b.join("")),s=D.join(ka(e,i)),x.length&&(s+=ka(e,r)+x.join("")),w&&(s+=ka(e,Yn.Exponential)+"+"+w)}return t<0&&!l?s=n.negPre+s+n.negSuf:s=n.posPre+s+n.posSuf,s}function F2(t,n,e,i,r){let o=c1(n,Wv.Currency),a=L2(o,ka(n,Yn.MinusSign));return a.minFrac=I2(i),a.maxFrac=a.minFrac,P2(t,a,n,Yn.CurrencyGroup,Yn.CurrencyDecimal,r).replace(g2,e).replace(g2,"").trim()}function N2(t,n,e){let i=c1(n,Wv.Decimal),r=L2(i,ka(n,Yn.MinusSign));return P2(t,r,n,Yn.Group,Yn.Decimal,e)}function L2(t,n="-"){let e={minInt:1,minFrac:0,maxFrac:0,posPre:"",posSuf:"",negPre:"",negSuf:"",gSize:0,lgSize:0},i=t.split(eY),r=i[0],o=i[1],a=r.indexOf(zv)!==-1?r.split(zv):[r.substring(0,r.lastIndexOf(hf)+1),r.substring(r.lastIndexOf(hf)+1)],s=a[0],l=a[1]||"";e.posPre=s.substring(0,s.indexOf(n1));for(let d=0;d-1&&(n=n.replace(zv,"")),(o=n.search(/e/i))>0?(r<0&&(r=o),r+=+n.slice(o+1),n=n.substring(0,o)):r<0&&(r=n.length),o=0;n.charAt(o)===hf;o++);if(o===(s=n.length))i=[0],r=1;else{for(s--;n.charAt(s)===hf;)s--;for(r-=o,i=[],a=0;o<=s;o++,a++)i[a]=Number(n.charAt(o))}return r>f2&&(i=i.splice(0,f2-1),e=r-1,r=1),{digits:i,exponent:e,integerLen:r}}function rY(t,n,e){if(n>e)throw new ue(2307,!1);let i=t.digits,r=i.length-t.integerLen,o=Math.min(Math.max(n,r),e),a=o+t.integerLen,s=i[a];if(a>0){i.splice(Math.max(t.integerLen,a));for(let m=a;m=5)if(a-1<0){for(let m=0;m>a;m--)i.unshift(0),t.integerLen++;i.unshift(1),t.integerLen++}else i[a-1]++;for(;r=c?v.pop():l=!1),f>=10?1:0},0);d&&(i.unshift(d),t.integerLen++)}function r1(t){let n=parseInt(t);if(isNaN(n))throw new ue(2305,!1);return n}var o1=/\s+/,_2=[],Pd=(()=>{class t{_ngEl;_renderer;initialClasses=_2;rawClass;stateMap=new Map;constructor(e,i){this._ngEl=e,this._renderer=i}set klass(e){this.initialClasses=e!=null?e.trim().split(o1):_2}set ngClass(e){this.rawClass=typeof e=="string"?e.trim().split(o1):e}ngDoCheck(){for(let i of this.initialClasses)this._updateState(i,!0);let e=this.rawClass;if(Array.isArray(e)||e instanceof Set)for(let i of e)this._updateState(i,!0);else if(e!=null)for(let i of Object.keys(e))this._updateState(i,!!e[i]);this._applyStateDiff()}_updateState(e,i){let r=this.stateMap.get(e);r!==void 0?(r.enabled!==i&&(r.changed=!0,r.enabled=i),r.touched=!0):this.stateMap.set(e,{enabled:i,changed:!0,touched:!0})}_applyStateDiff(){for(let e of this.stateMap){let i=e[0],r=e[1];r.changed?(this._toggleClass(i,r.enabled),r.changed=!1):r.touched||(r.enabled&&this._toggleClass(i,!1),this.stateMap.delete(i)),r.touched=!1}}_toggleClass(e,i){e=e.trim(),e.length>0&&e.split(o1).forEach(r=>{i?this._renderer.addClass(this._ngEl.nativeElement,r):this._renderer.removeClass(this._ngEl.nativeElement,r)})}static \u0275fac=function(i){return new(i||t)(_e(q),_e(je))};static \u0275dir=F({type:t,selectors:[["","ngClass",""]],inputs:{klass:[0,"class","klass"],ngClass:"ngClass"}})}return t})();var Uv=class{$implicit;ngForOf;index;count;constructor(n,e,i,r){this.$implicit=n,this.ngForOf=e,this.index=i,this.count=r}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}},qr=(()=>{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,i,r){this._viewContainer=e,this._template=i,this._differs=r}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 i=this._viewContainer;e.forEachOperation((r,o,a)=>{if(r.previousIndex==null)i.createEmbeddedView(this._template,new Uv(r.item,this._ngForOf,-1,-1),a===null?void 0:a);else if(a==null)i.remove(o===null?void 0:o);else if(o!==null){let s=i.get(o);i.move(s,a),b2(s,r)}});for(let r=0,o=i.length;r{let o=i.get(r.currentIndex);b2(o,r)})}static ngTemplateContextGuard(e,i){return!0}static \u0275fac=function(i){return new(i||t)(_e(nt),_e(te),_e(ds))};static \u0275dir=F({type:t,selectors:[["","ngFor","","ngForOf",""]],inputs:{ngForOf:"ngForOf",ngForTrackBy:"ngForTrackBy",ngForTemplate:"ngForTemplate"}})}return t})();function b2(t,n){t.context.$implicit=n.item}var li=(()=>{class t{_viewContainer;_context=new $v;_thenTemplateRef=null;_elseTemplateRef=null;_thenViewRef=null;_elseViewRef=null;constructor(e,i){this._viewContainer=e,this._thenTemplateRef=i}set ngIf(e){this._context.$implicit=this._context.ngIf=e,this._updateView()}set ngIfThen(e){v2(e,!1),this._thenTemplateRef=e,this._thenViewRef=null,this._updateView()}set ngIfElse(e){v2(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,i){return!0}static \u0275fac=function(i){return new(i||t)(_e(nt),_e(te))};static \u0275dir=F({type:t,selectors:[["","ngIf",""]],inputs:{ngIf:"ngIf",ngIfThen:"ngIfThen",ngIfElse:"ngIfElse"}})}return t})(),$v=class{$implicit=null;ngIf=null};function v2(t,n){if(t&&!t.createEmbeddedView)throw new ue(2020,!1)}var Fn=(()=>{class t{_viewContainerRef;_viewRef=null;ngTemplateOutletContext=null;ngTemplateOutlet=null;ngTemplateOutletInjector=null;constructor(e){this._viewContainerRef=e}ngOnChanges(e){if(this._shouldRecreateView(e)){let i=this._viewContainerRef;if(this._viewRef&&i.remove(i.indexOf(this._viewRef)),!this.ngTemplateOutlet){this._viewRef=null;return}let r=this._createContextForwardProxy();this._viewRef=i.createEmbeddedView(this.ngTemplateOutlet,r,{injector:this.ngTemplateOutletInjector??void 0})}}_shouldRecreateView(e){return!!e.ngTemplateOutlet||!!e.ngTemplateOutletInjector}_createContextForwardProxy(){return new Proxy({},{set:(e,i,r)=>this.ngTemplateOutletContext?Reflect.set(this.ngTemplateOutletContext,i,r):!1,get:(e,i,r)=>{if(this.ngTemplateOutletContext)return Reflect.get(this.ngTemplateOutletContext,i,r)}})}static \u0275fac=function(i){return new(i||t)(_e(nt))};static \u0275dir=F({type:t,selectors:[["","ngTemplateOutlet",""]],inputs:{ngTemplateOutletContext:"ngTemplateOutletContext",ngTemplateOutlet:"ngTemplateOutlet",ngTemplateOutletInjector:"ngTemplateOutletInjector"},features:[Ae]})}return t})();function pf(t,n){return new ue(2100,!1)}var a1=class{createSubscription(n,e,i){return Ti(()=>n.subscribe({next:e,error:i}))}dispose(n){Ti(()=>n.unsubscribe())}},s1=class{createSubscription(n,e,i){return n.then(r=>e?.(r),r=>i?.(r)),{unsubscribe:()=>{e=null,i=null}}}dispose(n){n.unsubscribe()}},oY=new s1,aY=new a1,rn=(()=>{class t{_ref;_latestValue=null;markForCheckOnValueUpdate=!0;_subscription=null;_obj=null;_strategy=null;applicationErrorHandler=u(hr);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,i=>this._updateLatestValue(e,i),i=>this.applicationErrorHandler(i))}_selectStrategy(e){if(Xs(e))return oY;if(Ev(e))return aY;throw pf(t,e)}_dispose(){this._strategy.dispose(this._subscription),this._latestValue=null,this._subscription=null,this._obj=null}_updateLatestValue(e,i){e===this._obj&&(this._latestValue=i,this.markForCheckOnValueUpdate&&this._ref?.markForCheck())}static \u0275fac=function(i){return new(i||t)(_e(ye,16))};static \u0275pipe=Wr({name:"async",type:t,pure:!1})}return t})();var sY="mediumDate",V2=new T(""),B2=new T(""),Sa=(()=>{class t{locale;defaultTimezone;defaultOptions;constructor(e,i,r){this.locale=e,this.defaultTimezone=i,this.defaultOptions=r}transform(e,i,r,o){if(e==null||e===""||e!==e)return null;try{let a=i??this.defaultOptions?.dateFormat??sY,s=r??this.defaultOptions?.timezone??this.defaultTimezone??void 0;return A2(e,a,o||this.locale,s)}catch(a){throw pf(t,a.message)}}static \u0275fac=function(i){return new(i||t)(_e(el,16),_e(V2,24),_e(B2,24))};static \u0275pipe=Wr({name:"date",type:t,pure:!0})}return t})();var ff=(()=>{class t{_locale;constructor(e){this._locale=e}transform(e,i,r){if(!j2(e))return null;r||=this._locale;try{let o=H2(e);return N2(o,r,i)}catch(o){throw pf(t,o.message)}}static \u0275fac=function(i){return new(i||t)(_e(el,16))};static \u0275pipe=Wr({name:"number",type:t,pure:!0})}return t})();var il=(()=>{class t{_locale;_defaultCurrencyCode;constructor(e,i="USD"){this._locale=e,this._defaultCurrencyCode=i}transform(e,i=this._defaultCurrencyCode,r="symbol",o,a){if(!j2(e))return null;a||=this._locale,typeof r=="boolean"&&(r=r?"symbol":"code");let s=i||this._defaultCurrencyCode;r!=="code"&&(r==="symbol"||r==="symbol-narrow"?s=T2(s,r==="symbol"?"wide":"narrow",a):s=r);try{let l=H2(e);return F2(l,a,s,i,o)}catch(l){throw pf(t,l.message)}}static \u0275fac=function(i){return new(i||t)(_e(el,16),_e(HM,16))};static \u0275pipe=Wr({name:"currency",type:t,pure:!0})}return t})();function j2(t){return!(t==null||t===""||t!==t)}function H2(t){if(typeof t=="string"&&!isNaN(Number(t)-parseFloat(t)))return Number(t);if(typeof t!="number")throw new ue(2309,!1);return t}var d1=(()=>{class t{transform(e,i,r){if(e==null)return null;if(!(typeof e=="string"||Array.isArray(e)))throw pf(t,e);return e.slice(i,r)}static \u0275fac=function(i){return new(i||t)};static \u0275pipe=Wr({name:"slice",type:t,pure:!1})}return t})();var gt=(()=>{class t{static \u0275fac=function(i){return new(i||t)};static \u0275mod=ee({type:t});static \u0275inj=J({})}return t})();function gf(t,n){n=encodeURIComponent(n);for(let e of t.split(";")){let i=e.indexOf("="),[r,o]=i==-1?[e,""]:[e.slice(0,i),e.slice(i+1)];if(r.trim()===n)return decodeURIComponent(o)}return null}var Fd=class{};var m1="browser",lY="server";function z2(t){return t===m1}function U2(t){return t===lY}var h1=(()=>{class t{static \u0275prov=O({token:t,providedIn:"root",factory:()=>new u1(u(ge),window)})}return t})(),u1=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(De(M({},e),{left:n[0],top:n[1]}))}scrollToAnchor(n,e){let i=cY(this.document,n);i&&(this.scrollToElement(i,e),i.focus())}setHistoryScrollRestoration(n){try{this.window.history.scrollRestoration=n}catch{console.warn(Ro(2400,!1))}}scrollToElement(n,e){let i=n.getBoundingClientRect(),r=i.left+this.window.pageXOffset,o=i.top+this.window.pageYOffset,a=this.offset();this.window.scrollTo(De(M({},e),{left:r-a[0],top:o-a[1]}))}};function cY(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 i=t.createTreeWalker(t.body,NodeFilter.SHOW_ELEMENT),r=i.currentNode;for(;r;){let o=r.shadowRoot;if(o){let a=o.getElementById(n)||o.querySelector(`[name="${n}"]`);if(a)return a}r=i.nextNode()}}return null}var _f=class{_doc;constructor(n){this._doc=n}manager},Gv=(()=>{class t extends _f{constructor(e){super(e)}supports(e){return!0}addEventListener(e,i,r,o){return e.addEventListener(i,r,o),()=>this.removeEventListener(e,i,r,o)}removeEventListener(e,i,r,o){return e.removeEventListener(i,r,o)}static \u0275fac=function(i){return new(i||t)(pe(ge))};static \u0275prov=O({token:t,factory:t.\u0275fac})}return t})(),Yv=new T(""),b1=(()=>{class t{_zone;_plugins;_eventNameToPlugin=new Map;constructor(e,i){this._zone=i,e.forEach(a=>{a.manager=this});let r=e.filter(a=>!(a instanceof Gv));this._plugins=r.slice().reverse();let o=e.find(a=>a instanceof Gv);o&&this._plugins.push(o)}addEventListener(e,i,r,o){return this._findPluginFor(i).addEventListener(e,i,r,o)}getZone(){return this._zone}_findPluginFor(e){let i=this._eventNameToPlugin.get(e);if(i)return i;if(i=this._plugins.find(o=>o.supports(e)),!i)throw new ue(5101,!1);return this._eventNameToPlugin.set(e,i),i}static \u0275fac=function(i){return new(i||t)(pe(Yv),pe(ae))};static \u0275prov=O({token:t,factory:t.\u0275fac})}return t})(),p1="ng-app-id";function $2(t){for(let n of t)n.remove()}function W2(t,n){let e=n.createElement("style");return e.textContent=t,e}function dY(t,n,e,i){let r=t.head?.querySelectorAll(`style[${p1}="${n}"],link[${p1}="${n}"]`);if(r)for(let o of r)o.removeAttribute(p1),o instanceof HTMLLinkElement?i.set(o.href.slice(o.href.lastIndexOf("/")+1),{usage:0,elements:[o]}):o.textContent&&e.set(o.textContent,{usage:0,elements:[o]})}function g1(t,n){let e=n.createElement("link");return e.setAttribute("rel","stylesheet"),e.setAttribute("href",t),e}var v1=(()=>{class t{doc;appId;nonce;inline=new Map;external=new Map;hosts=new Set;constructor(e,i,r,o={}){this.doc=e,this.appId=i,this.nonce=r,dY(e,i,this.inline,this.external),this.hosts.add(e.head)}addStyles(e,i){for(let r of e)this.addUsage(r,this.inline,W2);i?.forEach(r=>this.addUsage(r,this.external,g1))}removeStyles(e,i){for(let r of e)this.removeUsage(r,this.inline);i?.forEach(r=>this.removeUsage(r,this.external))}addUsage(e,i,r){let o=i.get(e);o?o.usage++:i.set(e,{usage:1,elements:[...this.hosts].map(a=>this.addElement(a,r(e,this.doc)))})}removeUsage(e,i){let r=i.get(e);r&&(r.usage--,r.usage<=0&&($2(r.elements),i.delete(e)))}ngOnDestroy(){for(let[,{elements:e}]of[...this.inline,...this.external])$2(e);this.hosts.clear()}addHost(e){this.hosts.add(e);for(let[i,{elements:r}]of this.inline)r.push(this.addElement(e,W2(i,this.doc)));for(let[i,{elements:r}]of this.external)r.push(this.addElement(e,g1(i,this.doc)))}removeHost(e){this.hosts.delete(e)}addElement(e,i){return this.nonce&&i.setAttribute("nonce",this.nonce),e.appendChild(i)}static \u0275fac=function(i){return new(i||t)(pe(ge),pe(ql),pe(gm,8),pe(Ks))};static \u0275prov=O({token:t,factory:t.\u0275fac})}return t})(),f1={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"},y1=/%COMP%/g;var q2="%COMP%",uY=`_nghost-${q2}`,mY=`_ngcontent-${q2}`,hY=!0,pY=new T("",{providedIn:"root",factory:()=>hY});function fY(t){return mY.replace(y1,t)}function gY(t){return uY.replace(y1,t)}function Y2(t,n){return n.map(e=>e.replace(y1,t))}var x1=(()=>{class t{eventManager;sharedStylesHost;appId;removeStylesOnCompDestroy;doc;ngZone;nonce;tracingService;rendererByCompId=new Map;defaultRenderer;platformIsServer;constructor(e,i,r,o,a,s,l=null,c=null){this.eventManager=e,this.sharedStylesHost=i,this.appId=r,this.removeStylesOnCompDestroy=o,this.doc=a,this.ngZone=s,this.nonce=l,this.tracingService=c,this.platformIsServer=!1,this.defaultRenderer=new bf(e,a,s,this.platformIsServer,this.tracingService)}createRenderer(e,i){if(!e||!i)return this.defaultRenderer;let r=this.getOrCreateRenderer(e,i);return r instanceof qv?r.applyToHost(e):r instanceof vf&&r.applyStyles(),r}getOrCreateRenderer(e,i){let r=this.rendererByCompId,o=r.get(i.id);if(!o){let a=this.doc,s=this.ngZone,l=this.eventManager,c=this.sharedStylesHost,d=this.removeStylesOnCompDestroy,m=this.platformIsServer,f=this.tracingService;switch(i.encapsulation){case Ys.Emulated:o=new qv(l,c,i,this.appId,d,a,s,m,f);break;case Ys.ShadowDom:return new _1(l,c,e,i,a,s,this.nonce,m,f);default:o=new vf(l,c,i,d,a,s,m,f);break}r.set(i.id,o)}return o}ngOnDestroy(){this.rendererByCompId.clear()}componentReplaced(e){this.rendererByCompId.delete(e)}static \u0275fac=function(i){return new(i||t)(pe(b1),pe(v1),pe(ql),pe(pY),pe(ge),pe(ae),pe(gm),pe(Yl,8))};static \u0275prov=O({token:t,factory:t.\u0275fac})}return t})(),bf=class{eventManager;doc;ngZone;platformIsServer;tracingService;data=Object.create(null);throwOnSyntheticProps=!0;constructor(n,e,i,r,o){this.eventManager=n,this.doc=e,this.ngZone=i,this.platformIsServer=r,this.tracingService=o}destroy(){}destroyNode=null;createElement(n,e){return e?this.doc.createElementNS(f1[e]||e,n):this.doc.createElement(n)}createComment(n){return this.doc.createComment(n)}createText(n){return this.doc.createTextNode(n)}appendChild(n,e){(G2(n)?n.content:n).appendChild(e)}insertBefore(n,e,i){n&&(G2(n)?n.content:n).insertBefore(e,i)}removeChild(n,e){e.remove()}selectRootElement(n,e){let i=typeof n=="string"?this.doc.querySelector(n):n;if(!i)throw new ue(-5104,!1);return e||(i.textContent=""),i}parentNode(n){return n.parentNode}nextSibling(n){return n.nextSibling}setAttribute(n,e,i,r){if(r){e=r+":"+e;let o=f1[r];o?n.setAttributeNS(o,e,i):n.setAttribute(e,i)}else n.setAttribute(e,i)}removeAttribute(n,e,i){if(i){let r=f1[i];r?n.removeAttributeNS(r,e):n.removeAttribute(`${i}:${e}`)}else n.removeAttribute(e)}addClass(n,e){n.classList.add(e)}removeClass(n,e){n.classList.remove(e)}setStyle(n,e,i,r){r&(os.DashCase|os.Important)?n.style.setProperty(e,i,r&os.Important?"important":""):n.style[e]=i}removeStyle(n,e,i){i&os.DashCase?n.style.removeProperty(e):n.style[e]=""}setProperty(n,e,i){n!=null&&(n[e]=i)}setValue(n,e){n.nodeValue=e}listen(n,e,i,r){if(typeof n=="string"&&(n=Wo().getGlobalEventTarget(this.doc,n),!n))throw new ue(5102,!1);let o=this.decoratePreventDefault(i);return this.tracingService?.wrapEventListener&&(o=this.tracingService.wrapEventListener(n,e,o)),this.eventManager.addEventListener(n,e,o,r)}decoratePreventDefault(n){return e=>{if(e==="__ngUnwrap__")return n;n(e)===!1&&e.preventDefault()}}};function G2(t){return t.tagName==="TEMPLATE"&&t.content!==void 0}var _1=class extends bf{sharedStylesHost;hostEl;shadowRoot;constructor(n,e,i,r,o,a,s,l,c){super(n,o,a,l,c),this.sharedStylesHost=e,this.hostEl=i,this.shadowRoot=i.attachShadow({mode:"open"}),this.sharedStylesHost.addHost(this.shadowRoot);let d=r.styles;d=Y2(r.id,d);for(let f of d){let b=document.createElement("style");s&&b.setAttribute("nonce",s),b.textContent=f,this.shadowRoot.appendChild(b)}let m=r.getExternalStyles?.();if(m)for(let f of m){let b=g1(f,o);s&&b.setAttribute("nonce",s),this.shadowRoot.appendChild(b)}}nodeOrShadowRoot(n){return n===this.hostEl?this.shadowRoot:n}appendChild(n,e){return super.appendChild(this.nodeOrShadowRoot(n),e)}insertBefore(n,e,i){return super.insertBefore(this.nodeOrShadowRoot(n),e,i)}removeChild(n,e){return super.removeChild(null,e)}parentNode(n){return this.nodeOrShadowRoot(super.parentNode(this.nodeOrShadowRoot(n)))}destroy(){this.sharedStylesHost.removeHost(this.shadowRoot)}},vf=class extends bf{sharedStylesHost;removeStylesOnCompDestroy;styles;styleUrls;constructor(n,e,i,r,o,a,s,l,c){super(n,o,a,s,l),this.sharedStylesHost=e,this.removeStylesOnCompDestroy=r;let d=i.styles;this.styles=c?Y2(c,d):d,this.styleUrls=i.getExternalStyles?.(c)}applyStyles(){this.sharedStylesHost.addStyles(this.styles,this.styleUrls)}destroy(){this.removeStylesOnCompDestroy&&kd.size===0&&this.sharedStylesHost.removeStyles(this.styles,this.styleUrls)}},qv=class extends vf{contentAttr;hostAttr;constructor(n,e,i,r,o,a,s,l,c){let d=r+"-"+i.id;super(n,e,i,o,a,s,l,c,d),this.contentAttr=fY(d),this.hostAttr=gY(d)}applyToHost(n){this.applyStyles(),this.setAttribute(n,this.hostAttr,"")}createElement(n,e){let i=super.createElement(n,e);return super.setAttribute(i,this.contentAttr,""),i}};var Qv=class t extends lf{supportsDOMEvents=!0;static makeCurrent(){XM(new t)}onAndCancel(n,e,i,r){return n.addEventListener(e,i,r),()=>{n.removeEventListener(e,i,r)}}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=_Y();return e==null?null:bY(e)}resetBaseElement(){yf=null}getUserAgent(){return window.navigator.userAgent}getCookie(n){return gf(document.cookie,n)}},yf=null;function _Y(){return yf=yf||document.head.querySelector("base"),yf?yf.getAttribute("href"):null}function bY(t){return new URL(t,document.baseURI).pathname}var vY=(()=>{class t{build(){return new XMLHttpRequest}static \u0275fac=function(i){return new(i||t)};static \u0275prov=O({token:t,factory:t.\u0275fac})}return t})(),Q2=["alt","control","meta","shift"],yY={"\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"},xY={alt:t=>t.altKey,control:t=>t.ctrlKey,meta:t=>t.metaKey,shift:t=>t.shiftKey},K2=(()=>{class t extends _f{constructor(e){super(e)}supports(e){return t.parseEventName(e)!=null}addEventListener(e,i,r,o){let a=t.parseEventName(i),s=t.eventCallback(a.fullKey,r,this.manager.getZone());return this.manager.getZone().runOutsideAngular(()=>Wo().onAndCancel(e,a.domEventName,s,o))}static parseEventName(e){let i=e.toLowerCase().split("."),r=i.shift();if(i.length===0||!(r==="keydown"||r==="keyup"))return null;let o=t._normalizeKey(i.pop()),a="",s=i.indexOf("code");if(s>-1&&(i.splice(s,1),a="code."),Q2.forEach(c=>{let d=i.indexOf(c);d>-1&&(i.splice(d,1),a+=c+".")}),a+=o,i.length!=0||o.length===0)return null;let l={};return l.domEventName=r,l.fullKey=a,l}static matchEventFullKeyCode(e,i){let r=yY[e.key]||e.key,o="";return i.indexOf("code.")>-1&&(r=e.code,o="code."),r==null||!r?!1:(r=r.toLowerCase(),r===" "?r="space":r==="."&&(r="dot"),Q2.forEach(a=>{if(a!==r){let s=xY[a];s(e)&&(o+=a+".")}}),o+=r,o===i)}static eventCallback(e,i,r){return o=>{t.matchEventFullKeyCode(o,e)&&r.runGuarded(()=>i(o))}}static _normalizeKey(e){return e==="esc"?"escape":e}static \u0275fac=function(i){return new(i||t)(pe(ge))};static \u0275prov=O({token:t,factory:t.\u0275fac})}return t})();function C1(t,n,e){let i=M({rootComponent:t,platformRef:e?.platformRef},CY(n));return a2(i)}function CY(t){return{appProviders:[...kY,...t?.providers??[]],platformProviders:MY}}function wY(){Qv.makeCurrent()}function DY(){return new Tn}function EY(){return JE(document),document}var MY=[{provide:Ks,useValue:m1},{provide:sv,useValue:wY,multi:!0},{provide:ge,useFactory:EY}];var kY=[{provide:kp,useValue:"root"},{provide:Tn,useFactory:DY},{provide:Yv,useClass:Gv,multi:!0,deps:[ge]},{provide:Yv,useClass:K2,multi:!0,deps:[ge]},x1,v1,b1,{provide:cn,useExisting:x1},{provide:Fd,useClass:vY},[]];var Tm=class{},Zl=class{},_r=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 i=e.indexOf(":");if(i>0){let r=e.slice(0,i),o=e.slice(i+1).trim();this.addHeaderEntry(r,o)}})}:typeof Headers<"u"&&n instanceof Headers?(this.headers=new Map,n.forEach((e,i)=>{this.addHeaderEntry(i,e)})):this.lazyInit=()=>{this.headers=new Map,Object.entries(n).forEach(([e,i])=>{this.setHeaderEntries(e,i)})}: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(),Array.from(n.headers.keys()).forEach(e=>{this.headers.set(e,n.headers.get(e)),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 i=n.value;if(typeof i=="string"&&(i=[i]),i.length===0)return;this.maybeSetNormalizedName(n.name,e);let r=(n.op==="a"?this.headers.get(e):void 0)||[];r.push(...i),this.headers.set(e,r);break;case"d":let o=n.value;if(!o)this.headers.delete(e),this.normalizedNames.delete(e);else{let a=this.headers.get(e);if(!a)return;a=a.filter(s=>o.indexOf(s)===-1),a.length===0?(this.headers.delete(e),this.normalizedNames.delete(e)):this.headers.set(e,a)}break}}addHeaderEntry(n,e){let i=n.toLowerCase();this.maybeSetNormalizedName(n,i),this.headers.has(i)?this.headers.get(i).push(e):this.headers.set(i,[e])}setHeaderEntries(n,e){let i=(Array.isArray(e)?e:[e]).map(o=>o.toString()),r=n.toLowerCase();this.headers.set(r,i),this.maybeSetNormalizedName(n,r)}forEach(n){this.init(),Array.from(this.normalizedNames.keys()).forEach(e=>n(this.normalizedNames.get(e),this.headers.get(e)))}};var Zv=class{encodeKey(n){return Z2(n)}encodeValue(n){return Z2(n)}decodeKey(n){return decodeURIComponent(n)}decodeValue(n){return decodeURIComponent(n)}};function SY(t,n){let e=new Map;return t.length>0&&t.replace(/^\?/,"").split("&").forEach(r=>{let o=r.indexOf("="),[a,s]=o==-1?[n.decodeKey(r),""]:[n.decodeKey(r.slice(0,o)),n.decodeValue(r.slice(o+1))],l=e.get(a)||[];l.push(s),e.set(a,l)}),e}var TY=/%(\d[a-f0-9])/gi,IY={40:"@","3A":":",24:"$","2C":",","3B":";","3D":"=","3F":"?","2F":"/"};function Z2(t){return encodeURIComponent(t).replace(TY,(n,e)=>IY[e]??n)}function Kv(t){return`${t}`}var Qn=class t{map;encoder;updates=null;cloneFrom=null;constructor(n={}){if(this.encoder=n.encoder||new Zv,n.fromString){if(n.fromObject)throw new ue(2805,!1);this.map=SY(n.fromString,this.encoder)}else n.fromObject?(this.map=new Map,Object.keys(n.fromObject).forEach(e=>{let i=n.fromObject[e],r=Array.isArray(i)?i.map(Kv):[Kv(i)];this.map.set(e,r)})):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(i=>{let r=n[i];Array.isArray(r)?r.forEach(o=>{e.push({param:i,value:o,op:"a"})}):e.push({param:i,value:r,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(i=>e+"="+this.encoder.encodeValue(i)).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(){this.map===null&&(this.map=new Map),this.cloneFrom!==null&&(this.cloneFrom.init(),this.cloneFrom.keys().forEach(n=>this.map.set(n,this.cloneFrom.map.get(n))),this.updates.forEach(n=>{switch(n.op){case"a":case"s":let e=(n.op==="a"?this.map.get(n.param):void 0)||[];e.push(Kv(n.value)),this.map.set(n.param,e);break;case"d":if(n.value!==void 0){let i=this.map.get(n.param)||[],r=i.indexOf(Kv(n.value));r!==-1&&i.splice(r,1),i.length>0?this.map.set(n.param,i):this.map.delete(n.param)}else{this.map.delete(n.param);break}}}),this.cloneFrom=this.updates=null)}};var Xv=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()}};function AY(t){switch(t){case"DELETE":case"GET":case"HEAD":case"OPTIONS":case"JSONP":return!1;default:return!0}}function X2(t){return typeof ArrayBuffer<"u"&&t instanceof ArrayBuffer}function J2(t){return typeof Blob<"u"&&t instanceof Blob}function eN(t){return typeof FormData<"u"&&t instanceof FormData}function OY(t){return typeof URLSearchParams<"u"&&t instanceof URLSearchParams}var tN="Content-Type",iN="Accept",nN="X-Request-URL",rN="text/plain",oN="application/json",RY=`${oN}, ${rN}, */*`,km=class t{url;body=null;headers;context;reportProgress=!1;withCredentials=!1;credentials;keepalive=!1;cache;priority;mode;redirect;referrer;integrity;responseType="json";method;params;urlWithParams;transferCache;timeout;constructor(n,e,i,r){this.url=e,this.method=n.toUpperCase();let o;if(AY(this.method)||r?(this.body=i!==void 0?i:null,o=r):o=i,o){if(this.reportProgress=!!o.reportProgress,this.withCredentials=!!o.withCredentials,this.keepalive=!!o.keepalive,o.responseType&&(this.responseType=o.responseType),o.headers&&(this.headers=o.headers),o.context&&(this.context=o.context),o.params&&(this.params=o.params),o.priority&&(this.priority=o.priority),o.cache&&(this.cache=o.cache),o.credentials&&(this.credentials=o.credentials),typeof o.timeout=="number"){if(o.timeout<1||!Number.isInteger(o.timeout))throw new ue(2822,"");this.timeout=o.timeout}o.mode&&(this.mode=o.mode),o.redirect&&(this.redirect=o.redirect),o.integrity&&(this.integrity=o.integrity),o.referrer&&(this.referrer=o.referrer),this.transferCache=o.transferCache}if(this.headers??=new _r,this.context??=new Xv,!this.params)this.params=new Qn,this.urlWithParams=e;else{let a=this.params.toString();if(a.length===0)this.urlWithParams=e;else{let s=e.indexOf("?"),l=s===-1?"?":sK.set(re,n.setHeaders[re]),P)),n.setParams&&(W=Object.keys(n.setParams).reduce((K,re)=>K.set(re,n.setParams[re]),W)),new t(e,i,w,{params:W,headers:P,context:Z,reportProgress:D,responseType:r,withCredentials:x,transferCache:b,keepalive:o,cache:s,priority:a,timeout:v,mode:l,redirect:c,credentials:d,referrer:m,integrity:f})}},Nd=(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})(Nd||{}),Im=class{headers;status;statusText;url;ok;type;redirected;constructor(n,e=200,i="OK"){this.headers=n.headers||new _r,this.status=n.status!==void 0?n.status:e,this.statusText=n.statusText||i,this.url=n.url||null,this.redirected=n.redirected,this.ok=this.status>=200&&this.status<300}},Jv=class t extends Im{constructor(n={}){super(n)}type=Nd.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})}},nl=class t extends Im{body;constructor(n={}){super(n),this.body=n.body!==void 0?n.body:null}type=Nd.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})}},Sm=class extends Im{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}},PY=200,FY=204;function w1(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}}var Yr=(()=>{class t{handler;constructor(e){this.handler=e}request(e,i,r={}){let o;if(e instanceof km)o=e;else{let l;r.headers instanceof _r?l=r.headers:l=new _r(r.headers);let c;r.params&&(r.params instanceof Qn?c=r.params:c=new Qn({fromObject:r.params})),o=new km(e,i,r.body!==void 0?r.body:null,{headers:l,context:r.context,params:c,reportProgress:r.reportProgress,responseType:r.responseType||"json",withCredentials:r.withCredentials,transferCache:r.transferCache,keepalive:r.keepalive,priority:r.priority,cache:r.cache,mode:r.mode,redirect:r.redirect,credentials:r.credentials,referrer:r.referrer,integrity:r.integrity,timeout:r.timeout})}let a=Q(o).pipe(Ao(l=>this.handler.handle(l)));if(e instanceof km||r.observe==="events")return a;let s=a.pipe(ce(l=>l instanceof nl));switch(r.observe||"body"){case"body":switch(o.responseType){case"arraybuffer":return s.pipe(se(l=>{if(l.body!==null&&!(l.body instanceof ArrayBuffer))throw new ue(2806,!1);return l.body}));case"blob":return s.pipe(se(l=>{if(l.body!==null&&!(l.body instanceof Blob))throw new ue(2807,!1);return l.body}));case"text":return s.pipe(se(l=>{if(l.body!==null&&typeof l.body!="string")throw new ue(2808,!1);return l.body}));case"json":default:return s.pipe(se(l=>l.body))}case"response":return s;default:throw new ue(2809,!1)}}delete(e,i={}){return this.request("DELETE",e,i)}get(e,i={}){return this.request("GET",e,i)}head(e,i={}){return this.request("HEAD",e,i)}jsonp(e,i){return this.request("JSONP",e,{params:new Qn().append(i,"JSONP_CALLBACK"),observe:"body",responseType:"json"})}options(e,i={}){return this.request("OPTIONS",e,i)}patch(e,i,r={}){return this.request("PATCH",e,w1(r,i))}post(e,i,r={}){return this.request("POST",e,w1(r,i))}put(e,i,r={}){return this.request("PUT",e,w1(r,i))}static \u0275fac=function(i){return new(i||t)(pe(Tm))};static \u0275prov=O({token:t,factory:t.\u0275fac})}return t})();var NY=new T("");function LY(t,n){return n(t)}function VY(t,n,e){return(i,r)=>In(e,()=>n(i,o=>t(o,r)))}var E1=new T(""),M1=new T(""),aN=new T(""),sN=new T("",{providedIn:"root",factory:()=>!0});var e0=(()=>{class t extends Tm{backend;injector;chain=null;pendingTasks=u(om);contributeToStability=u(sN);constructor(e,i){super(),this.backend=e,this.injector=i}handle(e){if(this.chain===null){let i=Array.from(new Set([...this.injector.get(M1),...this.injector.get(aN,[])]));this.chain=i.reduceRight((r,o)=>VY(r,o,this.injector),LY)}if(this.contributeToStability){let i=this.pendingTasks.add();return this.chain(e,r=>this.backend.handle(r)).pipe(Hr(i))}else return this.chain(e,i=>this.backend.handle(i))}static \u0275fac=function(i){return new(i||t)(pe(Zl),pe(Wt))};static \u0275prov=O({token:t,factory:t.\u0275fac})}return t})();var BY=/^\)\]\}',?\n/,jY=RegExp(`^${nN}:`,"m");function HY(t){return"responseURL"in t&&t.responseURL?t.responseURL:jY.test(t.getAllResponseHeaders())?t.getResponseHeader(nN):null}var D1=(()=>{class t{xhrFactory;constructor(e){this.xhrFactory=e}handle(e){if(e.method==="JSONP")throw new ue(-2800,!1);let i=this.xhrFactory;return Q(null).pipe($e(()=>new Fe(o=>{let a=i.build();if(a.open(e.method,e.urlWithParams),e.withCredentials&&(a.withCredentials=!0),e.headers.forEach((x,D)=>a.setRequestHeader(x,D.join(","))),e.headers.has(iN)||a.setRequestHeader(iN,RY),!e.headers.has(tN)){let x=e.detectContentTypeHeader();x!==null&&a.setRequestHeader(tN,x)}if(e.timeout&&(a.timeout=e.timeout),e.responseType){let x=e.responseType.toLowerCase();a.responseType=x!=="json"?x:"text"}let s=e.serializeBody(),l=null,c=()=>{if(l!==null)return l;let x=a.statusText||"OK",D=new _r(a.getAllResponseHeaders()),P=HY(a)||e.url;return l=new Jv({headers:D,status:a.status,statusText:x,url:P}),l},d=()=>{let{headers:x,status:D,statusText:P,url:W}=c(),Z=null;D!==FY&&(Z=typeof a.response>"u"?a.responseText:a.response),D===0&&(D=Z?PY:0);let K=D>=200&&D<300;if(e.responseType==="json"&&typeof Z=="string"){let re=Z;Z=Z.replace(BY,"");try{Z=Z!==""?JSON.parse(Z):null}catch(Ee){Z=re,K&&(K=!1,Z={error:Ee,text:Z})}}K?(o.next(new nl({body:Z,headers:x,status:D,statusText:P,url:W||void 0})),o.complete()):o.error(new Sm({error:Z,headers:x,status:D,statusText:P,url:W||void 0}))},m=x=>{let{url:D}=c(),P=new Sm({error:x,status:a.status||0,statusText:a.statusText||"Unknown Error",url:D||void 0});o.error(P)},f=m;e.timeout&&(f=x=>{let{url:D}=c(),P=new Sm({error:new DOMException("Request timed out","TimeoutError"),status:a.status||0,statusText:a.statusText||"Request timeout",url:D||void 0});o.error(P)});let b=!1,v=x=>{b||(o.next(c()),b=!0);let D={type:Nd.DownloadProgress,loaded:x.loaded};x.lengthComputable&&(D.total=x.total),e.responseType==="text"&&a.responseText&&(D.partialText=a.responseText),o.next(D)},w=x=>{let D={type:Nd.UploadProgress,loaded:x.loaded};x.lengthComputable&&(D.total=x.total),o.next(D)};return a.addEventListener("load",d),a.addEventListener("error",m),a.addEventListener("timeout",f),a.addEventListener("abort",m),e.reportProgress&&(a.addEventListener("progress",v),s!==null&&a.upload&&a.upload.addEventListener("progress",w)),a.send(s),o.next({type:Nd.Sent}),()=>{a.removeEventListener("error",m),a.removeEventListener("abort",m),a.removeEventListener("load",d),a.removeEventListener("timeout",f),e.reportProgress&&(a.removeEventListener("progress",v),s!==null&&a.upload&&a.upload.removeEventListener("progress",w)),a.readyState!==a.DONE&&a.abort()}})))}static \u0275fac=function(i){return new(i||t)(pe(Fd))};static \u0275prov=O({token:t,factory:t.\u0275fac})}return t})(),lN=new T(""),zY="XSRF-TOKEN",UY=new T("",{providedIn:"root",factory:()=>zY}),$Y="X-XSRF-TOKEN",WY=new T("",{providedIn:"root",factory:()=>$Y}),xf=class{},GY=(()=>{class t{doc;cookieName;lastCookieString="";lastToken=null;parseCount=0;constructor(e,i){this.doc=e,this.cookieName=i}getToken(){let e=this.doc.cookie||"";return e!==this.lastCookieString&&(this.parseCount++,this.lastToken=gf(e,this.cookieName),this.lastCookieString=e),this.lastToken}static \u0275fac=function(i){return new(i||t)(pe(ge),pe(UY))};static \u0275prov=O({token:t,factory:t.\u0275fac})}return t})(),qY=/^(?:https?:)?\/\//i;function YY(t,n){if(!u(lN)||t.method==="GET"||t.method==="HEAD"||qY.test(t.url))return n(t);let e=u(xf).getToken(),i=u(WY);return e!=null&&!t.headers.has(i)&&(t=t.clone({headers:t.headers.set(i,e)})),n(t)}var k1=(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})(k1||{});function QY(t,n){return{\u0275kind:t,\u0275providers:n}}function S1(...t){let n=[Yr,D1,e0,{provide:Tm,useExisting:e0},{provide:Zl,useFactory:()=>u(NY,{optional:!0})??u(D1)},{provide:M1,useValue:YY,multi:!0},{provide:lN,useValue:!0},{provide:xf,useClass:GY}];for(let e of t)n.push(...e.\u0275providers);return zr(n)}function T1(t){return QY(k1.Interceptors,t.map(n=>({provide:M1,useValue:n,multi:!0})))}var dN=(()=>{class t{_doc;constructor(e){this._doc=e}getTitle(){return this._doc.title}setTitle(e){this._doc.title=e||""}static \u0275fac=function(i){return new(i||t)(pe(ge))};static \u0275prov=O({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();var Cf=(()=>{class t{static \u0275fac=function(i){return new(i||t)};static \u0275prov=O({token:t,factory:function(i){let r=null;return i?r=new(i||t):r=pe(KY),r},providedIn:"root"})}return t})(),KY=(()=>{class t extends Cf{_doc;constructor(e){super(),this._doc=e}sanitize(e,i){if(i==null)return null;switch(e){case An.NONE:return i;case An.HTML:return ls(i,"HTML")?Ur(i):uv(this._doc,String(i)).toString();case An.STYLE:return ls(i,"Style")?Ur(i):i;case An.SCRIPT:if(ls(i,"Script"))return Ur(i);throw new ue(5200,!1);case An.URL:return ls(i,"URL")?Ur(i):Qp(String(i));case An.RESOURCE_URL:if(ls(i,"ResourceURL"))return Ur(i);throw new ue(5201,!1);default:throw new ue(5202,!1)}}bypassSecurityTrustHtml(e){return iM(e)}bypassSecurityTrustStyle(e){return nM(e)}bypassSecurityTrustScript(e){return rM(e)}bypassSecurityTrustUrl(e){return oM(e)}bypassSecurityTrustResourceUrl(e){return aM(e)}static \u0275fac=function(i){return new(i||t)(pe(ge))};static \u0275prov=O({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();var dt="primary",Ff=Symbol("RouteTitle"),F1=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 Bd(t){return new F1(t)}function bN(t,n,e){let i=e.path.split("/");if(i.length>t.length||e.pathMatch==="full"&&(n.hasChildren()||i.lengthi[o]===r)}else return t===n}function yN(t){return t.length>0?t[t.length-1]:null}function rl(t){return ji(t)?t:Xs(t)?Ot(Promise.resolve(t)):Q(t)}var XY={exact:CN,subset:wN},xN={exact:JY,subset:eQ,ignored:()=>!0};function uN(t,n,e){return XY[e.paths](t.root,n.root,e.matrixParams)&&xN[e.queryParams](t.queryParams,n.queryParams)&&!(e.fragment==="exact"&&t.fragment!==n.fragment)}function JY(t,n){return ms(t,n)}function CN(t,n,e){if(!Ld(t.segments,n.segments)||!n0(t.segments,n.segments,e)||t.numberOfChildren!==n.numberOfChildren)return!1;for(let i in n.children)if(!t.children[i]||!CN(t.children[i],n.children[i],e))return!1;return!0}function eQ(t,n){return Object.keys(n).length<=Object.keys(t).length&&Object.keys(n).every(e=>vN(t[e],n[e]))}function wN(t,n,e){return DN(t,n,n.segments,e)}function DN(t,n,e,i){if(t.segments.length>e.length){let r=t.segments.slice(0,e.length);return!(!Ld(r,e)||n.hasChildren()||!n0(r,e,i))}else if(t.segments.length===e.length){if(!Ld(t.segments,e)||!n0(t.segments,e,i))return!1;for(let r in n.children)if(!t.children[r]||!wN(t.children[r],n.children[r],i))return!1;return!0}else{let r=e.slice(0,t.segments.length),o=e.slice(t.segments.length);return!Ld(t.segments,r)||!n0(t.segments,r,i)||!t.children[dt]?!1:DN(t.children[dt],n,o,i)}}function n0(t,n,e){return n.every((i,r)=>xN[e](t[r].parameters,i.parameters))}var hs=class{root;queryParams;fragment;_queryParamMap;constructor(n=new qt([],{}),e={},i=null){this.root=n,this.queryParams=e,this.fragment=i}get queryParamMap(){return this._queryParamMap??=Bd(this.queryParams),this._queryParamMap}toString(){return nQ.serialize(this)}},qt=class{segments;children;parent=null;constructor(n,e){this.segments=n,this.children=e,Object.values(e).forEach(i=>i.parent=this)}hasChildren(){return this.numberOfChildren>0}get numberOfChildren(){return Object.keys(this.children).length}toString(){return r0(this)}},Xl=class{path;parameters;_parameterMap;constructor(n,e){this.path=n,this.parameters=e}get parameterMap(){return this._parameterMap??=Bd(this.parameters),this._parameterMap}toString(){return MN(this)}};function tQ(t,n){return Ld(t,n)&&t.every((e,i)=>ms(e.parameters,n[i].parameters))}function Ld(t,n){return t.length!==n.length?!1:t.every((e,i)=>e.path===n[i].path)}function iQ(t,n){let e=[];return Object.entries(t.children).forEach(([i,r])=>{i===dt&&(e=e.concat(n(r,i)))}),Object.entries(t.children).forEach(([i,r])=>{i!==dt&&(e=e.concat(n(r,i)))}),e}var ic=(()=>{class t{static \u0275fac=function(i){return new(i||t)};static \u0275prov=O({token:t,factory:()=>new Jl,providedIn:"root"})}return t})(),Jl=class{parse(n){let e=new V1(n);return new hs(e.parseRootSegment(),e.parseQueryParams(),e.parseFragment())}serialize(n){let e=`/${wf(n.root,!0)}`,i=aQ(n.queryParams),r=typeof n.fragment=="string"?`#${rQ(n.fragment)}`:"";return`${e}${i}${r}`}},nQ=new Jl;function r0(t){return t.segments.map(n=>MN(n)).join("/")}function wf(t,n){if(!t.hasChildren())return r0(t);if(n){let e=t.children[dt]?wf(t.children[dt],!1):"",i=[];return Object.entries(t.children).forEach(([r,o])=>{r!==dt&&i.push(`${r}:${wf(o,!1)}`)}),i.length>0?`${e}(${i.join("//")})`:e}else{let e=iQ(t,(i,r)=>r===dt?[wf(t.children[dt],!1)]:[`${r}:${wf(i,!1)}`]);return Object.keys(t.children).length===1&&t.children[dt]!=null?`${r0(t)}/${e[0]}`:`${r0(t)}/(${e.join("//")})`}}function EN(t){return encodeURIComponent(t).replace(/%40/g,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",")}function t0(t){return EN(t).replace(/%3B/gi,";")}function rQ(t){return encodeURI(t)}function L1(t){return EN(t).replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/%26/gi,"&")}function o0(t){return decodeURIComponent(t)}function mN(t){return o0(t.replace(/\+/g,"%20"))}function MN(t){return`${L1(t.path)}${oQ(t.parameters)}`}function oQ(t){return Object.entries(t).map(([n,e])=>`;${L1(n)}=${L1(e)}`).join("")}function aQ(t){let n=Object.entries(t).map(([e,i])=>Array.isArray(i)?i.map(r=>`${t0(e)}=${t0(r)}`).join("&"):`${t0(e)}=${t0(i)}`).filter(e=>e);return n.length?`?${n.join("&")}`:""}var sQ=/^[^\/()?;#]+/;function A1(t){let n=t.match(sQ);return n?n[0]:""}var lQ=/^[^\/()?;=#]+/;function cQ(t){let n=t.match(lQ);return n?n[0]:""}var dQ=/^[^=?&#]+/;function uQ(t){let n=t.match(dQ);return n?n[0]:""}var mQ=/^[^&#]+/;function hQ(t){let n=t.match(mQ);return n?n[0]:""}var V1=class{url;remaining;constructor(n){this.url=n,this.remaining=n}parseRootSegment(){return this.consumeOptional("/"),this.remaining===""||this.peekStartsWith("?")||this.peekStartsWith("#")?new qt([],{}):new qt([],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(){if(this.remaining==="")return{};this.consumeOptional("/");let n=[];for(this.peekStartsWith("(")||n.push(this.parseSegment());this.peekStartsWith("/")&&!this.peekStartsWith("//")&&!this.peekStartsWith("/(");)this.capture("/"),n.push(this.parseSegment());let e={};this.peekStartsWith("/(")&&(this.capture("/"),e=this.parseParens(!0));let i={};return this.peekStartsWith("(")&&(i=this.parseParens(!1)),(n.length>0||Object.keys(e).length>0)&&(i[dt]=new qt(n,e)),i}parseSegment(){let n=A1(this.remaining);if(n===""&&this.peekStartsWith(";"))throw new ue(4009,!1);return this.capture(n),new Xl(o0(n),this.parseMatrixParams())}parseMatrixParams(){let n={};for(;this.consumeOptional(";");)this.parseParam(n);return n}parseParam(n){let e=cQ(this.remaining);if(!e)return;this.capture(e);let i="";if(this.consumeOptional("=")){let r=A1(this.remaining);r&&(i=r,this.capture(i))}n[o0(e)]=o0(i)}parseQueryParam(n){let e=uQ(this.remaining);if(!e)return;this.capture(e);let i="";if(this.consumeOptional("=")){let a=hQ(this.remaining);a&&(i=a,this.capture(i))}let r=mN(e),o=mN(i);if(n.hasOwnProperty(r)){let a=n[r];Array.isArray(a)||(a=[a],n[r]=a),a.push(o)}else n[r]=o}parseParens(n){let e={};for(this.capture("(");!this.consumeOptional(")")&&this.remaining.length>0;){let i=A1(this.remaining),r=this.remaining[i.length];if(r!=="/"&&r!==")"&&r!==";")throw new ue(4010,!1);let o;i.indexOf(":")>-1?(o=i.slice(0,i.indexOf(":")),this.capture(o),this.capture(":")):n&&(o=dt);let a=this.parseChildren();e[o??dt]=Object.keys(a).length===1&&a[dt]?a[dt]:new qt([],a),this.consumeOptional("//")}return e}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 ue(4011,!1)}};function kN(t){return t.segments.length>0?new qt([],{[dt]:t}):t}function SN(t){let n={};for(let[i,r]of Object.entries(t.children)){let o=SN(r);if(i===dt&&o.segments.length===0&&o.hasChildren())for(let[a,s]of Object.entries(o.children))n[a]=s;else(o.segments.length>0||o.hasChildren())&&(n[i]=o)}let e=new qt(t.segments,n);return pQ(e)}function pQ(t){if(t.numberOfChildren===1&&t.children[dt]){let n=t.children[dt];return new qt(t.segments.concat(n.segments),n.children)}return t}function ec(t){return t instanceof hs}function TN(t,n,e=null,i=null){let r=IN(t);return AN(r,n,e,i)}function IN(t){let n;function e(o){let a={};for(let l of o.children){let c=e(l);a[l.outlet]=c}let s=new qt(o.url,a);return o===t&&(n=s),s}let i=e(t.root),r=kN(i);return n??r}function AN(t,n,e,i){let r=t;for(;r.parent;)r=r.parent;if(n.length===0)return O1(r,r,r,e,i);let o=fQ(n);if(o.toRoot())return O1(r,r,new qt([],{}),e,i);let a=gQ(o,r,t),s=a.processChildren?Ef(a.segmentGroup,a.index,o.commands):RN(a.segmentGroup,a.index,o.commands);return O1(r,a.segmentGroup,s,e,i)}function a0(t){return typeof t=="object"&&t!=null&&!t.outlets&&!t.segmentPath}function kf(t){return typeof t=="object"&&t!=null&&t.outlets}function O1(t,n,e,i,r){let o={};i&&Object.entries(i).forEach(([l,c])=>{o[l]=Array.isArray(c)?c.map(d=>`${d}`):`${c}`});let a;t===n?a=e:a=ON(t,n,e);let s=kN(SN(a));return new hs(s,o,r)}function ON(t,n,e){let i={};return Object.entries(t.children).forEach(([r,o])=>{o===n?i[r]=e:i[r]=ON(o,n,e)}),new qt(t.segments,i)}var s0=class{isAbsolute;numberOfDoubleDots;commands;constructor(n,e,i){if(this.isAbsolute=n,this.numberOfDoubleDots=e,this.commands=i,n&&i.length>0&&a0(i[0]))throw new ue(4003,!1);let r=i.find(kf);if(r&&r!==yN(i))throw new ue(4004,!1)}toRoot(){return this.isAbsolute&&this.commands.length===1&&this.commands[0]=="/"}};function fQ(t){if(typeof t[0]=="string"&&t.length===1&&t[0]==="/")return new s0(!0,0,t);let n=0,e=!1,i=t.reduce((r,o,a)=>{if(typeof o=="object"&&o!=null){if(o.outlets){let s={};return Object.entries(o.outlets).forEach(([l,c])=>{s[l]=typeof c=="string"?c.split("/"):c}),[...r,{outlets:s}]}if(o.segmentPath)return[...r,o.segmentPath]}return typeof o!="string"?[...r,o]:a===0?(o.split("/").forEach((s,l)=>{l==0&&s==="."||(l==0&&s===""?e=!0:s===".."?n++:s!=""&&r.push(s))}),r):[...r,o]},[]);return new s0(e,n,i)}var Rm=class{segmentGroup;processChildren;index;constructor(n,e,i){this.segmentGroup=n,this.processChildren=e,this.index=i}};function gQ(t,n,e){if(t.isAbsolute)return new Rm(n,!0,0);if(!e)return new Rm(n,!1,NaN);if(e.parent===null)return new Rm(e,!0,0);let i=a0(t.commands[0])?0:1,r=e.segments.length-1+i;return _Q(e,r,t.numberOfDoubleDots)}function _Q(t,n,e){let i=t,r=n,o=e;for(;o>r;){if(o-=r,i=i.parent,!i)throw new ue(4005,!1);r=i.segments.length}return new Rm(i,!1,r-o)}function bQ(t){return kf(t[0])?t[0].outlets:{[dt]:t}}function RN(t,n,e){if(t??=new qt([],{}),t.segments.length===0&&t.hasChildren())return Ef(t,n,e);let i=vQ(t,n,e),r=e.slice(i.commandIndex);if(i.match&&i.pathIndexo!==dt)&&t.children[dt]&&t.numberOfChildren===1&&t.children[dt].segments.length===0){let o=Ef(t.children[dt],n,e);return new qt(t.segments,o.children)}return Object.entries(i).forEach(([o,a])=>{typeof a=="string"&&(a=[a]),a!==null&&(r[o]=RN(t.children[o],n,a))}),Object.entries(t.children).forEach(([o,a])=>{i[o]===void 0&&(r[o]=a)}),new qt(t.segments,r)}}function vQ(t,n,e){let i=0,r=n,o={match:!1,pathIndex:0,commandIndex:0};for(;r=e.length)return o;let a=t.segments[r],s=e[i];if(kf(s))break;let l=`${s}`,c=i0&&l===void 0)break;if(l&&c&&typeof c=="object"&&c.outlets===void 0){if(!pN(l,c,a))return o;i+=2}else{if(!pN(l,{},a))return o;i++}r++}return{match:!0,pathIndex:r,commandIndex:i}}function B1(t,n,e){let i=t.segments.slice(0,n),r=0;for(;r{typeof i=="string"&&(i=[i]),i!==null&&(n[e]=B1(new qt([],{}),0,i))}),n}function hN(t){let n={};return Object.entries(t).forEach(([e,i])=>n[e]=`${i}`),n}function pN(t,n,e){return t==e.path&&ms(n,e.parameters)}var Pm="imperative",yn=(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})(yn||{}),go=class{id;url;constructor(n,e){this.id=n,this.url=e}},ps=class extends go{type=yn.NavigationStart;navigationTrigger;restoredState;constructor(n,e,i="imperative",r=null){super(n,e),this.navigationTrigger=i,this.restoredState=r}toString(){return`NavigationStart(id: ${this.id}, url: '${this.url}')`}},vi=class extends go{urlAfterRedirects;type=yn.NavigationEnd;constructor(n,e,i){super(n,e),this.urlAfterRedirects=i}toString(){return`NavigationEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}')`}},Or=(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})(Or||{}),Nm=(function(t){return t[t.IgnoredSameUrlNavigation=0]="IgnoredSameUrlNavigation",t[t.IgnoredByUrlHandlingStrategy=1]="IgnoredByUrlHandlingStrategy",t})(Nm||{}),qo=class extends go{reason;code;type=yn.NavigationCancel;constructor(n,e,i,r){super(n,e),this.reason=i,this.code=r}toString(){return`NavigationCancel(id: ${this.id}, url: '${this.url}')`}},fs=class extends go{reason;code;type=yn.NavigationSkipped;constructor(n,e,i,r){super(n,e),this.reason=i,this.code=r}},tc=class extends go{error;target;type=yn.NavigationError;constructor(n,e,i,r){super(n,e),this.error=i,this.target=r}toString(){return`NavigationError(id: ${this.id}, url: '${this.url}', error: ${this.error})`}},Sf=class extends go{urlAfterRedirects;state;type=yn.RoutesRecognized;constructor(n,e,i,r){super(n,e),this.urlAfterRedirects=i,this.state=r}toString(){return`RoutesRecognized(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}},l0=class extends go{urlAfterRedirects;state;type=yn.GuardsCheckStart;constructor(n,e,i,r){super(n,e),this.urlAfterRedirects=i,this.state=r}toString(){return`GuardsCheckStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}},c0=class extends go{urlAfterRedirects;state;shouldActivate;type=yn.GuardsCheckEnd;constructor(n,e,i,r,o){super(n,e),this.urlAfterRedirects=i,this.state=r,this.shouldActivate=o}toString(){return`GuardsCheckEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state}, shouldActivate: ${this.shouldActivate})`}},d0=class extends go{urlAfterRedirects;state;type=yn.ResolveStart;constructor(n,e,i,r){super(n,e),this.urlAfterRedirects=i,this.state=r}toString(){return`ResolveStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}},u0=class extends go{urlAfterRedirects;state;type=yn.ResolveEnd;constructor(n,e,i,r){super(n,e),this.urlAfterRedirects=i,this.state=r}toString(){return`ResolveEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}},m0=class{route;type=yn.RouteConfigLoadStart;constructor(n){this.route=n}toString(){return`RouteConfigLoadStart(path: ${this.route.path})`}},h0=class{route;type=yn.RouteConfigLoadEnd;constructor(n){this.route=n}toString(){return`RouteConfigLoadEnd(path: ${this.route.path})`}},p0=class{snapshot;type=yn.ChildActivationStart;constructor(n){this.snapshot=n}toString(){return`ChildActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}},f0=class{snapshot;type=yn.ChildActivationEnd;constructor(n){this.snapshot=n}toString(){return`ChildActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}},g0=class{snapshot;type=yn.ActivationStart;constructor(n){this.snapshot=n}toString(){return`ActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}},_0=class{snapshot;type=yn.ActivationEnd;constructor(n){this.snapshot=n}toString(){return`ActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}},Lm=class{routerEvent;position;anchor;type=yn.Scroll;constructor(n,e,i){this.routerEvent=n,this.position=e,this.anchor=i}toString(){let n=this.position?`${this.position[0]}, ${this.position[1]}`:null;return`Scroll(anchor: '${this.anchor}', position: '${n}')`}},Tf=class{},Vm=class{url;navigationBehaviorOptions;constructor(n,e){this.url=n,this.navigationBehaviorOptions=e}};function xQ(t){return!(t instanceof Tf)&&!(t instanceof Vm)}function CQ(t,n){return t.providers&&!t._injector&&(t._injector=vm(t.providers,n,`Route: ${t.path}`)),t._injector??n}function Ta(t){return t.outlet||dt}function wQ(t,n){let e=t.filter(i=>Ta(i)===n);return e.push(...t.filter(i=>Ta(i)!==n)),e}function Hm(t){if(!t)return null;if(t.routeConfig?._injector)return t.routeConfig._injector;for(let n=t.parent;n;n=n.parent){let e=n.routeConfig;if(e?._loadedInjector)return e._loadedInjector;if(e?._injector)return e._injector}return null}var b0=class{rootInjector;outlet=null;route=null;children;attachRef=null;get injector(){return Hm(this.route?.snapshot)??this.rootInjector}constructor(n){this.rootInjector=n,this.children=new jd(this.rootInjector)}},jd=(()=>{class t{rootInjector;contexts=new Map;constructor(e){this.rootInjector=e}onChildOutletCreated(e,i){let r=this.getOrCreateContext(e);r.outlet=i,this.contexts.set(e,r)}onChildOutletDestroyed(e){let i=this.getContext(e);i&&(i.outlet=null,i.attachRef=null)}onOutletDeactivated(){let e=this.contexts;return this.contexts=new Map,e}onOutletReAttached(e){this.contexts=e}getOrCreateContext(e){let i=this.getContext(e);return i||(i=new b0(this.rootInjector),this.contexts.set(e,i)),i}getContext(e){return this.contexts.get(e)||null}static \u0275fac=function(i){return new(i||t)(pe(Wt))};static \u0275prov=O({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),v0=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=j1(n,this._root);return e?e.children.map(i=>i.value):[]}firstChild(n){let e=j1(n,this._root);return e&&e.children.length>0?e.children[0].value:null}siblings(n){let e=H1(n,this._root);return e.length<2?[]:e[e.length-2].children.map(r=>r.value).filter(r=>r!==n)}pathFromRoot(n){return H1(n,this._root).map(e=>e.value)}};function j1(t,n){if(t===n.value)return n;for(let e of n.children){let i=j1(t,e);if(i)return i}return null}function H1(t,n){if(t===n.value)return[n];for(let e of n.children){let i=H1(t,e);if(i.length)return i.unshift(n),i}return[]}var fo=class{value;children;constructor(n,e){this.value=n,this.children=e}toString(){return`TreeNode(${this.value})`}};function Om(t){let n={};return t&&t.children.forEach(e=>n[e.value.outlet]=e),n}var If=class extends v0{snapshot;constructor(n,e){super(n),this.snapshot=e,Q1(this,n)}toString(){return this.snapshot.toString()}};function PN(t){let n=DQ(t),e=new tt([new Xl("",{})]),i=new tt({}),r=new tt({}),o=new tt({}),a=new tt(""),s=new wi(e,i,o,a,r,dt,t,n.root);return s.snapshot=n.root,new If(new fo(s,[]),n)}function DQ(t){let n={},e={},i={},o=new Vd([],n,i,"",e,dt,t,null,{});return new Af("",new fo(o,[]))}var wi=class{urlSubject;paramsSubject;queryParamsSubject;fragmentSubject;dataSubject;outlet;component;snapshot;_futureSnapshot;_routerState;_paramMap;_queryParamMap;title;url;params;queryParams;fragment;data;constructor(n,e,i,r,o,a,s,l){this.urlSubject=n,this.paramsSubject=e,this.queryParamsSubject=i,this.fragmentSubject=r,this.dataSubject=o,this.outlet=a,this.component=s,this._futureSnapshot=l,this.title=this.dataSubject?.pipe(se(c=>c[Ff]))??Q(void 0),this.url=n,this.params=e,this.queryParams=i,this.fragment=r,this.data=o}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(se(n=>Bd(n))),this._paramMap}get queryParamMap(){return this._queryParamMap??=this.queryParams.pipe(se(n=>Bd(n))),this._queryParamMap}toString(){return this.snapshot?this.snapshot.toString():`Future(${this._futureSnapshot})`}};function y0(t,n,e="emptyOnly"){let i,{routeConfig:r}=t;return n!==null&&(e==="always"||r?.path===""||!n.component&&!n.routeConfig?.loadComponent)?i={params:M(M({},n.params),t.params),data:M(M({},n.data),t.data),resolve:M(M(M(M({},t.data),n.data),r?.data),t._resolvedData)}:i={params:M({},t.params),data:M({},t.data),resolve:M(M({},t.data),t._resolvedData??{})},r&&NN(r)&&(i.resolve[Ff]=r.title),i}var Vd=class{url;params;queryParams;fragment;data;outlet;component;routeConfig;_resolve;_resolvedData;_routerState;_paramMap;_queryParamMap;get title(){return this.data?.[Ff]}constructor(n,e,i,r,o,a,s,l,c){this.url=n,this.params=e,this.queryParams=i,this.fragment=r,this.data=o,this.outlet=a,this.component=s,this.routeConfig=l,this._resolve=c}get root(){return this._routerState.root}get parent(){return this._routerState.parent(this)}get firstChild(){return this._routerState.firstChild(this)}get children(){return this._routerState.children(this)}get pathFromRoot(){return this._routerState.pathFromRoot(this)}get paramMap(){return this._paramMap??=Bd(this.params),this._paramMap}get queryParamMap(){return this._queryParamMap??=Bd(this.queryParams),this._queryParamMap}toString(){let n=this.url.map(i=>i.toString()).join("/"),e=this.routeConfig?this.routeConfig.path:"";return`Route(url:'${n}', path:'${e}')`}},Af=class extends v0{url;constructor(n,e){super(e),this.url=n,Q1(this,e)}toString(){return FN(this._root)}};function Q1(t,n){n.value._routerState=t,n.children.forEach(e=>Q1(t,e))}function FN(t){let n=t.children.length>0?` { ${t.children.map(FN).join(", ")} } `:"";return`${t.value}${n}`}function R1(t){if(t.snapshot){let n=t.snapshot,e=t._futureSnapshot;t.snapshot=e,ms(n.queryParams,e.queryParams)||t.queryParamsSubject.next(e.queryParams),n.fragment!==e.fragment&&t.fragmentSubject.next(e.fragment),ms(n.params,e.params)||t.paramsSubject.next(e.params),ZY(n.url,e.url)||t.urlSubject.next(e.url),ms(n.data,e.data)||t.dataSubject.next(e.data)}else t.snapshot=t._futureSnapshot,t.dataSubject.next(t._futureSnapshot.data)}function z1(t,n){let e=ms(t.params,n.params)&&tQ(t.url,n.url),i=!t.parent!=!n.parent;return e&&!i&&(!t.parent||z1(t.parent,n.parent))}function NN(t){return typeof t.title=="string"||t.title===null}var LN=new T(""),ol=(()=>{class t{activated=null;get activatedComponentRef(){return this.activated}_activatedRoute=null;name=dt;activateEvents=new U;deactivateEvents=new U;attachEvents=new U;detachEvents=new U;routerOutletData=ne();parentContexts=u(jd);location=u(nt);changeDetector=u(ye);inputBinder=u(Nf,{optional:!0});supportsBindingToComponentInputs=!0;ngOnChanges(e){if(e.name){let{firstChange:i,previousValue:r}=e.name;if(i)return;this.isTrackedInParentContexts(r)&&(this.deactivate(),this.parentContexts.onChildOutletDestroyed(r)),this.initializeOutletWithName()}}ngOnDestroy(){this.isTrackedInParentContexts(this.name)&&this.parentContexts.onChildOutletDestroyed(this.name),this.inputBinder?.unsubscribeFromRouteData(this)}isTrackedInParentContexts(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 ue(4012,!1);return this.activated.instance}get activatedRoute(){if(!this.activated)throw new ue(4012,!1);return this._activatedRoute}get activatedRouteData(){return this._activatedRoute?this._activatedRoute.snapshot.data:{}}detach(){if(!this.activated)throw new ue(4012,!1);this.location.detach();let e=this.activated;return this.activated=null,this._activatedRoute=null,this.detachEvents.emit(e.instance),e}attach(e,i){this.activated=e,this._activatedRoute=i,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,i){if(this.isActivated)throw new ue(4013,!1);this._activatedRoute=e;let r=this.location,a=e.snapshot.component,s=this.parentContexts.getOrCreateContext(this.name).children,l=new U1(e,s,r.injector,this.routerOutletData);this.activated=r.createComponent(a,{index:r.length,injector:l,environmentInjector:i}),this.changeDetector.markForCheck(),this.inputBinder?.bindActivatedRouteToOutletComponent(this),this.activateEvents.emit(this.activated.instance)}static \u0275fac=function(i){return new(i||t)};static \u0275dir=F({type:t,selectors:[["router-outlet"]],inputs:{name:"name",routerOutletData:[1,"routerOutletData"]},outputs:{activateEvents:"activate",deactivateEvents:"deactivate",attachEvents:"attach",detachEvents:"detach"},exportAs:["outlet"],features:[Ae]})}return t})(),U1=class{route;childContexts;parent;outletData;constructor(n,e,i,r){this.route=n,this.childContexts=e,this.parent=i,this.outletData=r}get(n,e){return n===wi?this.route:n===jd?this.childContexts:n===LN?this.outletData:this.parent.get(n,e)}},Nf=new T(""),K1=(()=>{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:i}=e,r=co([i.queryParams,i.params,i.data]).pipe($e(([o,a,s],l)=>(s=M(M(M({},o),a),s),l===0?Q(s):Promise.resolve(s)))).subscribe(o=>{if(!e.isActivated||!e.activatedComponentRef||e.activatedRoute!==i||i.component===null){this.unsubscribeFromRouteData(e);return}let a=c2(i.component);if(!a){this.unsubscribeFromRouteData(e);return}for(let{templateName:s}of a.inputs)e.activatedComponentRef.setInput(s,o[s])});this.outletDataSubscriptions.set(e,r)}static \u0275fac=function(i){return new(i||t)};static \u0275prov=O({token:t,factory:t.\u0275fac})}return t})(),Z1=(()=>{class t{static \u0275fac=function(i){return new(i||t)};static \u0275cmp=E({type:t,selectors:[["ng-component"]],exportAs:["emptyRouterOutlet"],decls:1,vars:0,template:function(i,r){i&1&&k(0,"router-outlet")},dependencies:[ol],encapsulation:2})}return t})();function X1(t){let n=t.children&&t.children.map(X1),e=n?De(M({},t),{children:n}):M({},t);return!e.component&&!e.loadComponent&&(n||e.loadChildren)&&e.outlet&&e.outlet!==dt&&(e.component=Z1),e}function EQ(t,n,e){let i=Of(t,n._root,e?e._root:void 0);return new If(i,n)}function Of(t,n,e){if(e&&t.shouldReuseRoute(n.value,e.value.snapshot)){let i=e.value;i._futureSnapshot=n.value;let r=MQ(t,n,e);return new fo(i,r)}else{if(t.shouldAttach(n.value)){let o=t.retrieve(n.value);if(o!==null){let a=o.route;return a.value._futureSnapshot=n.value,a.children=n.children.map(s=>Of(t,s)),a}}let i=kQ(n.value),r=n.children.map(o=>Of(t,o));return new fo(i,r)}}function MQ(t,n,e){return n.children.map(i=>{for(let r of e.children)if(t.shouldReuseRoute(i.value,r.value.snapshot))return Of(t,i,r);return Of(t,i)})}function kQ(t){return new wi(new tt(t.url),new tt(t.params),new tt(t.queryParams),new tt(t.fragment),new tt(t.data),t.outlet,t.component,t)}var Bm=class{redirectTo;navigationBehaviorOptions;constructor(n,e){this.redirectTo=n,this.navigationBehaviorOptions=e}},VN="ngNavigationCancelingError";function x0(t,n){let{redirectTo:e,navigationBehaviorOptions:i}=ec(n)?{redirectTo:n,navigationBehaviorOptions:void 0}:n,r=BN(!1,Or.Redirect);return r.url=e,r.navigationBehaviorOptions=i,r}function BN(t,n){let e=new Error(`NavigationCancelingError: ${t||""}`);return e[VN]=!0,e.cancellationCode=n,e}function SQ(t){return jN(t)&&ec(t.url)}function jN(t){return!!t&&t[VN]}var TQ=(t,n,e,i)=>se(r=>(new $1(n,r.targetRouterState,r.currentRouterState,e,i).activate(t),r)),$1=class{routeReuseStrategy;futureState;currState;forwardEvent;inputBindingEnabled;constructor(n,e,i,r,o){this.routeReuseStrategy=n,this.futureState=e,this.currState=i,this.forwardEvent=r,this.inputBindingEnabled=o}activate(n){let e=this.futureState._root,i=this.currState?this.currState._root:null;this.deactivateChildRoutes(e,i,n),R1(this.futureState.root),this.activateChildRoutes(e,i,n)}deactivateChildRoutes(n,e,i){let r=Om(e);n.children.forEach(o=>{let a=o.value.outlet;this.deactivateRoutes(o,r[a],i),delete r[a]}),Object.values(r).forEach(o=>{this.deactivateRouteAndItsChildren(o,i)})}deactivateRoutes(n,e,i){let r=n.value,o=e?e.value:null;if(r===o)if(r.component){let a=i.getContext(r.outlet);a&&this.deactivateChildRoutes(n,e,a.children)}else this.deactivateChildRoutes(n,e,i);else o&&this.deactivateRouteAndItsChildren(e,i)}deactivateRouteAndItsChildren(n,e){n.value.component&&this.routeReuseStrategy.shouldDetach(n.value.snapshot)?this.detachAndStoreRouteSubtree(n,e):this.deactivateRouteAndOutlet(n,e)}detachAndStoreRouteSubtree(n,e){let i=e.getContext(n.value.outlet),r=i&&n.value.component?i.children:e,o=Om(n);for(let a of Object.values(o))this.deactivateRouteAndItsChildren(a,r);if(i&&i.outlet){let a=i.outlet.detach(),s=i.children.onOutletDeactivated();this.routeReuseStrategy.store(n.value.snapshot,{componentRef:a,route:n,contexts:s})}}deactivateRouteAndOutlet(n,e){let i=e.getContext(n.value.outlet),r=i&&n.value.component?i.children:e,o=Om(n);for(let a of Object.values(o))this.deactivateRouteAndItsChildren(a,r);i&&(i.outlet&&(i.outlet.deactivate(),i.children.onOutletDeactivated()),i.attachRef=null,i.route=null)}activateChildRoutes(n,e,i){let r=Om(e);n.children.forEach(o=>{this.activateRoutes(o,r[o.value.outlet],i),this.forwardEvent(new _0(o.value.snapshot))}),n.children.length&&this.forwardEvent(new f0(n.value.snapshot))}activateRoutes(n,e,i){let r=n.value,o=e?e.value:null;if(R1(r),r===o)if(r.component){let a=i.getOrCreateContext(r.outlet);this.activateChildRoutes(n,e,a.children)}else this.activateChildRoutes(n,e,i);else if(r.component){let a=i.getOrCreateContext(r.outlet);if(this.routeReuseStrategy.shouldAttach(r.snapshot)){let s=this.routeReuseStrategy.retrieve(r.snapshot);this.routeReuseStrategy.store(r.snapshot,null),a.children.onOutletReAttached(s.contexts),a.attachRef=s.componentRef,a.route=s.route.value,a.outlet&&a.outlet.attach(s.componentRef,s.route.value),R1(s.route.value),this.activateChildRoutes(n,null,a.children)}else a.attachRef=null,a.route=r,a.outlet&&a.outlet.activateWith(r,a.injector),this.activateChildRoutes(n,null,a.children)}else this.activateChildRoutes(n,null,i)}},C0=class{path;route;constructor(n){this.path=n,this.route=this.path[this.path.length-1]}},Fm=class{component;route;constructor(n,e){this.component=n,this.route=e}};function IQ(t,n,e){let i=t._root,r=n?n._root:null;return Df(i,r,e,[i.value])}function AQ(t){let n=t.routeConfig?t.routeConfig.canActivateChild:null;return!n||n.length===0?null:{node:t,guards:n}}function zm(t,n){let e=Symbol(),i=n.get(t,e);return i===e?typeof t=="function"&&!uD(t)?t:n.get(t):i}function Df(t,n,e,i,r={canDeactivateChecks:[],canActivateChecks:[]}){let o=Om(n);return t.children.forEach(a=>{OQ(a,o[a.value.outlet],e,i.concat([a.value]),r),delete o[a.value.outlet]}),Object.entries(o).forEach(([a,s])=>Mf(s,e.getContext(a),r)),r}function OQ(t,n,e,i,r={canDeactivateChecks:[],canActivateChecks:[]}){let o=t.value,a=n?n.value:null,s=e?e.getContext(t.value.outlet):null;if(a&&o.routeConfig===a.routeConfig){let l=RQ(a,o,o.routeConfig.runGuardsAndResolvers);l?r.canActivateChecks.push(new C0(i)):(o.data=a.data,o._resolvedData=a._resolvedData),o.component?Df(t,n,s?s.children:null,i,r):Df(t,n,e,i,r),l&&s&&s.outlet&&s.outlet.isActivated&&r.canDeactivateChecks.push(new Fm(s.outlet.component,a))}else a&&Mf(n,s,r),r.canActivateChecks.push(new C0(i)),o.component?Df(t,null,s?s.children:null,i,r):Df(t,null,e,i,r);return r}function RQ(t,n,e){if(typeof e=="function")return e(t,n);switch(e){case"pathParamsChange":return!Ld(t.url,n.url);case"pathParamsOrQueryParamsChange":return!Ld(t.url,n.url)||!ms(t.queryParams,n.queryParams);case"always":return!0;case"paramsOrQueryParamsChange":return!z1(t,n)||!ms(t.queryParams,n.queryParams);case"paramsChange":default:return!z1(t,n)}}function Mf(t,n,e){let i=Om(t),r=t.value;Object.entries(i).forEach(([o,a])=>{r.component?n?Mf(a,n.children.getContext(o),e):Mf(a,null,e):Mf(a,n,e)}),r.component?n&&n.outlet&&n.outlet.isActivated?e.canDeactivateChecks.push(new Fm(n.outlet.component,r)):e.canDeactivateChecks.push(new Fm(null,r)):e.canDeactivateChecks.push(new Fm(null,r))}function Lf(t){return typeof t=="function"}function PQ(t){return typeof t=="boolean"}function FQ(t){return t&&Lf(t.canLoad)}function NQ(t){return t&&Lf(t.canActivate)}function LQ(t){return t&&Lf(t.canActivateChild)}function VQ(t){return t&&Lf(t.canDeactivate)}function BQ(t){return t&&Lf(t.canMatch)}function HN(t){return t instanceof Hs||t?.name==="EmptyError"}var i0=Symbol("INITIAL_VALUE");function jm(){return $e(t=>co(t.map(n=>n.pipe(lt(1),He(i0)))).pipe(se(n=>{for(let e of n)if(e!==!0){if(e===i0)return i0;if(e===!1||jQ(e))return e}return!0}),ce(n=>n!==i0),lt(1)))}function jQ(t){return ec(t)||t instanceof Bm}function HQ(t,n){return Mt(e=>{let{targetSnapshot:i,currentSnapshot:r,guards:{canActivateChecks:o,canDeactivateChecks:a}}=e;return a.length===0&&o.length===0?Q(De(M({},e),{guardsResult:!0})):zQ(a,i,r,t).pipe(Mt(s=>s&&PQ(s)?UQ(i,o,t,n):Q(s)),se(s=>De(M({},e),{guardsResult:s})))})}function zQ(t,n,e,i){return Ot(t).pipe(Mt(r=>YQ(r.component,r.route,e,n,i)),gn(r=>r!==!0,!0))}function UQ(t,n,e,i){return Ot(n).pipe(Ao(r=>mo(WQ(r.route.parent,i),$Q(r.route,i),qQ(t,r.path,e),GQ(t,r.route,e))),gn(r=>r!==!0,!0))}function $Q(t,n){return t!==null&&n&&n(new g0(t)),Q(!0)}function WQ(t,n){return t!==null&&n&&n(new p0(t)),Q(!0)}function GQ(t,n,e){let i=n.routeConfig?n.routeConfig.canActivate:null;if(!i||i.length===0)return Q(!0);let r=i.map(o=>kn(()=>{let a=Hm(n)??e,s=zm(o,a),l=NQ(s)?s.canActivate(n,t):In(a,()=>s(n,t));return rl(l).pipe(gn())}));return Q(r).pipe(jm())}function qQ(t,n,e){let i=n[n.length-1],o=n.slice(0,n.length-1).reverse().map(a=>AQ(a)).filter(a=>a!==null).map(a=>kn(()=>{let s=a.guards.map(l=>{let c=Hm(a.node)??e,d=zm(l,c),m=LQ(d)?d.canActivateChild(i,t):In(c,()=>d(i,t));return rl(m).pipe(gn())});return Q(s).pipe(jm())}));return Q(o).pipe(jm())}function YQ(t,n,e,i,r){let o=n&&n.routeConfig?n.routeConfig.canDeactivate:null;if(!o||o.length===0)return Q(!0);let a=o.map(s=>{let l=Hm(n)??r,c=zm(s,l),d=VQ(c)?c.canDeactivate(t,n,e,i):In(l,()=>c(t,n,e,i));return rl(d).pipe(gn())});return Q(a).pipe(jm())}function QQ(t,n,e,i){let r=n.canLoad;if(r===void 0||r.length===0)return Q(!0);let o=r.map(a=>{let s=zm(a,t),l=FQ(s)?s.canLoad(n,e):In(t,()=>s(n,e));return rl(l)});return Q(o).pipe(jm(),zN(i))}function zN(t){return Bw(Be(n=>{if(typeof n!="boolean")throw x0(t,n)}),se(n=>n===!0))}function KQ(t,n,e,i){let r=n.canMatch;if(!r||r.length===0)return Q(!0);let o=r.map(a=>{let s=zm(a,t),l=BQ(s)?s.canMatch(n,e):In(t,()=>s(n,e));return rl(l)});return Q(o).pipe(jm(),zN(i))}var Rf=class{segmentGroup;constructor(n){this.segmentGroup=n||null}},Pf=class extends Error{urlTree;constructor(n){super(),this.urlTree=n}};function Am(t){return Wn(new Rf(t))}function ZQ(t){return Wn(new ue(4e3,!1))}function XQ(t){return Wn(BN(!1,Or.GuardRejected))}var W1=class{urlSerializer;urlTree;constructor(n,e){this.urlSerializer=n,this.urlTree=e}lineralizeSegments(n,e){let i=[],r=e.root;for(;;){if(i=i.concat(r.segments),r.numberOfChildren===0)return Q(i);if(r.numberOfChildren>1||!r.children[dt])return ZQ(`${n.redirectTo}`);r=r.children[dt]}}applyRedirectCommands(n,e,i,r,o){return JQ(e,r,o).pipe(se(a=>{if(a instanceof hs)throw new Pf(a);let s=this.applyRedirectCreateUrlTree(a,this.urlSerializer.parse(a),n,i);if(a[0]==="/")throw new Pf(s);return s}))}applyRedirectCreateUrlTree(n,e,i,r){let o=this.createSegmentGroup(n,e.root,i,r);return new hs(o,this.createQueryParams(e.queryParams,this.urlTree.queryParams),e.fragment)}createQueryParams(n,e){let i={};return Object.entries(n).forEach(([r,o])=>{if(typeof o=="string"&&o[0]===":"){let s=o.substring(1);i[r]=e[s]}else i[r]=o}),i}createSegmentGroup(n,e,i,r){let o=this.createSegments(n,e.segments,i,r),a={};return Object.entries(e.children).forEach(([s,l])=>{a[s]=this.createSegmentGroup(n,l,i,r)}),new qt(o,a)}createSegments(n,e,i,r){return e.map(o=>o.path[0]===":"?this.findPosParam(n,o,r):this.findOrReturn(o,i))}findPosParam(n,e,i){let r=i[e.path.substring(1)];if(!r)throw new ue(4001,!1);return r}findOrReturn(n,e){let i=0;for(let r of e){if(r.path===n.path)return e.splice(i),r;i++}return n}};function JQ(t,n,e){if(typeof t=="string")return Q(t);let i=t,{queryParams:r,fragment:o,routeConfig:a,url:s,outlet:l,params:c,data:d,title:m}=n;return rl(In(e,()=>i({params:c,data:d,queryParams:r,fragment:o,routeConfig:a,url:s,outlet:l,title:m})))}var G1={matched:!1,consumedSegments:[],remainingSegments:[],parameters:{},positionalParamSegments:{}};function eK(t,n,e,i,r){let o=UN(t,n,e);return o.matched?(i=CQ(n,i),KQ(i,n,e,r).pipe(se(a=>a===!0?o:M({},G1)))):Q(o)}function UN(t,n,e){if(n.path==="**")return tK(e);if(n.path==="")return n.pathMatch==="full"&&(t.hasChildren()||e.length>0)?M({},G1):{matched:!0,consumedSegments:[],remainingSegments:e,parameters:{},positionalParamSegments:{}};let r=(n.matcher||bN)(e,t,n);if(!r)return M({},G1);let o={};Object.entries(r.posParams??{}).forEach(([s,l])=>{o[s]=l.path});let a=r.consumed.length>0?M(M({},o),r.consumed[r.consumed.length-1].parameters):o;return{matched:!0,consumedSegments:r.consumed,remainingSegments:e.slice(r.consumed.length),parameters:a,positionalParamSegments:r.posParams??{}}}function tK(t){return{matched:!0,parameters:t.length>0?yN(t).parameters:{},consumedSegments:t,remainingSegments:[],positionalParamSegments:{}}}function fN(t,n,e,i){return e.length>0&&rK(t,e,i)?{segmentGroup:new qt(n,nK(i,new qt(e,t.children))),slicedSegments:[]}:e.length===0&&oK(t,e,i)?{segmentGroup:new qt(t.segments,iK(t,e,i,t.children)),slicedSegments:e}:{segmentGroup:new qt(t.segments,t.children),slicedSegments:e}}function iK(t,n,e,i){let r={};for(let o of e)if(D0(t,n,o)&&!i[Ta(o)]){let a=new qt([],{});r[Ta(o)]=a}return M(M({},i),r)}function nK(t,n){let e={};e[dt]=n;for(let i of t)if(i.path===""&&Ta(i)!==dt){let r=new qt([],{});e[Ta(i)]=r}return e}function rK(t,n,e){return e.some(i=>D0(t,n,i)&&Ta(i)!==dt)}function oK(t,n,e){return e.some(i=>D0(t,n,i))}function D0(t,n,e){return(t.hasChildren()||n.length>0)&&e.pathMatch==="full"?!1:e.path===""}function aK(t,n,e){return n.length===0&&!t.children[e]}var q1=class{};function sK(t,n,e,i,r,o,a="emptyOnly"){return new Y1(t,n,e,i,r,a,o).recognize()}var lK=31,Y1=class{injector;configLoader;rootComponentType;config;urlTree;paramsInheritanceStrategy;urlSerializer;applyRedirects;absoluteRedirectCount=0;allowRedirects=!0;constructor(n,e,i,r,o,a,s){this.injector=n,this.configLoader=e,this.rootComponentType=i,this.config=r,this.urlTree=o,this.paramsInheritanceStrategy=a,this.urlSerializer=s,this.applyRedirects=new W1(this.urlSerializer,this.urlTree)}noMatchError(n){return new ue(4002,`'${n.segmentGroup}'`)}recognize(){let n=fN(this.urlTree.root,[],[],this.config).segmentGroup;return this.match(n).pipe(se(({children:e,rootSnapshot:i})=>{let r=new fo(i,e),o=new Af("",r),a=TN(i,[],this.urlTree.queryParams,this.urlTree.fragment);return a.queryParams=this.urlTree.queryParams,o.url=this.urlSerializer.serialize(a),{state:o,tree:a}}))}match(n){let e=new Vd([],Object.freeze({}),Object.freeze(M({},this.urlTree.queryParams)),this.urlTree.fragment,Object.freeze({}),dt,this.rootComponentType,null,{});return this.processSegmentGroup(this.injector,this.config,n,dt,e).pipe(se(i=>({children:i,rootSnapshot:e})),fi(i=>{if(i instanceof Pf)return this.urlTree=i.urlTree,this.match(i.urlTree.root);throw i instanceof Rf?this.noMatchError(i):i}))}processSegmentGroup(n,e,i,r,o){return i.segments.length===0&&i.hasChildren()?this.processChildren(n,e,i,o):this.processSegment(n,e,i,i.segments,r,!0,o).pipe(se(a=>a instanceof fo?[a]:[]))}processChildren(n,e,i,r){let o=[];for(let a of Object.keys(i.children))a==="primary"?o.unshift(a):o.push(a);return Ot(o).pipe(Ao(a=>{let s=i.children[a],l=wQ(e,a);return this.processSegmentGroup(n,l,s,a,r)}),Kw((a,s)=>(a.push(...s),a)),Fl(null),Qw(),Mt(a=>{if(a===null)return Am(i);let s=$N(a);return cK(s),Q(s)}))}processSegment(n,e,i,r,o,a,s){return Ot(e).pipe(Ao(l=>this.processSegmentAgainstRoute(l._injector??n,e,l,i,r,o,a,s).pipe(fi(c=>{if(c instanceof Rf)return Q(null);throw c}))),gn(l=>!!l),fi(l=>{if(HN(l))return aK(i,r,o)?Q(new q1):Am(i);throw l}))}processSegmentAgainstRoute(n,e,i,r,o,a,s,l){return Ta(i)!==a&&(a===dt||!D0(r,o,i))?Am(r):i.redirectTo===void 0?this.matchSegmentAgainstRoute(n,r,i,o,a,l):this.allowRedirects&&s?this.expandSegmentAgainstRouteUsingRedirect(n,r,e,i,o,a,l):Am(r)}expandSegmentAgainstRouteUsingRedirect(n,e,i,r,o,a,s){let{matched:l,parameters:c,consumedSegments:d,positionalParamSegments:m,remainingSegments:f}=UN(e,r,o);if(!l)return Am(e);typeof r.redirectTo=="string"&&r.redirectTo[0]==="/"&&(this.absoluteRedirectCount++,this.absoluteRedirectCount>lK&&(this.allowRedirects=!1));let b=new Vd(o,c,Object.freeze(M({},this.urlTree.queryParams)),this.urlTree.fragment,gN(r),Ta(r),r.component??r._loadedComponent??null,r,_N(r)),v=y0(b,s,this.paramsInheritanceStrategy);return b.params=Object.freeze(v.params),b.data=Object.freeze(v.data),this.applyRedirects.applyRedirectCommands(d,r.redirectTo,m,b,n).pipe($e(x=>this.applyRedirects.lineralizeSegments(r,x)),Mt(x=>this.processSegment(n,i,e,x.concat(f),a,!1,s)))}matchSegmentAgainstRoute(n,e,i,r,o,a){let s=eK(e,i,r,n,this.urlSerializer);return i.path==="**"&&(e.children={}),s.pipe($e(l=>l.matched?(n=i._injector??n,this.getChildConfig(n,i,r).pipe($e(({routes:c})=>{let d=i._loadedInjector??n,{parameters:m,consumedSegments:f,remainingSegments:b}=l,v=new Vd(f,m,Object.freeze(M({},this.urlTree.queryParams)),this.urlTree.fragment,gN(i),Ta(i),i.component??i._loadedComponent??null,i,_N(i)),w=y0(v,a,this.paramsInheritanceStrategy);v.params=Object.freeze(w.params),v.data=Object.freeze(w.data);let{segmentGroup:x,slicedSegments:D}=fN(e,f,b,c);if(D.length===0&&x.hasChildren())return this.processChildren(d,c,x,v).pipe(se(W=>new fo(v,W)));if(c.length===0&&D.length===0)return Q(new fo(v,[]));let P=Ta(i)===o;return this.processSegment(d,c,x,D,P?dt:o,!0,v).pipe(se(W=>new fo(v,W instanceof fo?[W]:[])))}))):Am(e)))}getChildConfig(n,e,i){return e.children?Q({routes:e.children,injector:n}):e.loadChildren?e._loadedRoutes!==void 0?Q({routes:e._loadedRoutes,injector:e._loadedInjector}):QQ(n,e,i,this.urlSerializer).pipe(Mt(r=>r?this.configLoader.loadChildren(n,e).pipe(Be(o=>{e._loadedRoutes=o.routes,e._loadedInjector=o.injector})):XQ(e))):Q({routes:[],injector:n})}};function cK(t){t.sort((n,e)=>n.value.outlet===dt?-1:e.value.outlet===dt?1:n.value.outlet.localeCompare(e.value.outlet))}function dK(t){let n=t.value.routeConfig;return n&&n.path===""}function $N(t){let n=[],e=new Set;for(let i of t){if(!dK(i)){n.push(i);continue}let r=n.find(o=>i.value.routeConfig===o.value.routeConfig);r!==void 0?(r.children.push(...i.children),e.add(r)):n.push(i)}for(let i of e){let r=$N(i.children);n.push(new fo(i.value,r))}return n.filter(i=>!e.has(i))}function gN(t){return t.data||{}}function _N(t){return t.resolve||{}}function uK(t,n,e,i,r,o){return Mt(a=>sK(t,n,e,i,a.extractedUrl,r,o).pipe(se(({state:s,tree:l})=>De(M({},a),{targetSnapshot:s,urlAfterRedirects:l}))))}function mK(t,n){return Mt(e=>{let{targetSnapshot:i,guards:{canActivateChecks:r}}=e;if(!r.length)return Q(e);let o=new Set(r.map(l=>l.route)),a=new Set;for(let l of o)if(!a.has(l))for(let c of WN(l))a.add(c);let s=0;return Ot(a).pipe(Ao(l=>o.has(l)?hK(l,i,t,n):(l.data=y0(l,l.parent,t).resolve,Q(void 0))),Be(()=>s++),qu(1),Mt(l=>s===a.size?Q(e):Fi))})}function WN(t){let n=t.children.map(e=>WN(e)).flat();return[t,...n]}function hK(t,n,e,i){let r=t.routeConfig,o=t._resolve;return r?.title!==void 0&&!NN(r)&&(o[Ff]=r.title),kn(()=>(t.data=y0(t,t.parent,e).resolve,pK(o,t,n,i).pipe(se(a=>(t._resolvedData=a,t.data=M(M({},t.data),a),null)))))}function pK(t,n,e,i){let r=N1(t);if(r.length===0)return Q({});let o={};return Ot(r).pipe(Mt(a=>fK(t[a],n,e,i).pipe(gn(),Be(s=>{if(s instanceof Bm)throw x0(new Jl,s);o[a]=s}))),qu(1),se(()=>o),fi(a=>HN(a)?Fi:Wn(a)))}function fK(t,n,e,i){let r=Hm(n)??i,o=zm(t,r),a=o.resolve?o.resolve(n,e):In(r,()=>o(n,e));return rl(a)}function P1(t){return $e(n=>{let e=t(n);return e?Ot(e).pipe(se(()=>n)):Q(n)})}var J1=(()=>{class t{buildTitle(e){let i,r=e.root;for(;r!==void 0;)i=this.getResolvedTitleForRoute(r)??i,r=r.children.find(o=>o.outlet===dt);return i}getResolvedTitleForRoute(e){return e.data[Ff]}static \u0275fac=function(i){return new(i||t)};static \u0275prov=O({token:t,factory:()=>u(GN),providedIn:"root"})}return t})(),GN=(()=>{class t extends J1{title;constructor(e){super(),this.title=e}updateTitle(e){let i=this.buildTitle(e);i!==void 0&&this.title.setTitle(i)}static \u0275fac=function(i){return new(i||t)(pe(dN))};static \u0275prov=O({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),nc=new T("",{providedIn:"root",factory:()=>({})}),Hd=new T(""),E0=(()=>{class t{componentLoaders=new WeakMap;childrenLoaders=new WeakMap;onLoadStartListener;onLoadEndListener;compiler=u(jM);loadComponent(e,i){if(this.componentLoaders.get(i))return this.componentLoaders.get(i);if(i._loadedComponent)return Q(i._loadedComponent);this.onLoadStartListener&&this.onLoadStartListener(i);let r=rl(In(e,()=>i.loadComponent())).pipe(se(YN),$e(QN),Be(a=>{this.onLoadEndListener&&this.onLoadEndListener(i),i._loadedComponent=a}),Hr(()=>{this.componentLoaders.delete(i)})),o=new Al(r,()=>new z).pipe(ju());return this.componentLoaders.set(i,o),o}loadChildren(e,i){if(this.childrenLoaders.get(i))return this.childrenLoaders.get(i);if(i._loadedRoutes)return Q({routes:i._loadedRoutes,injector:i._loadedInjector});this.onLoadStartListener&&this.onLoadStartListener(i);let o=qN(i,this.compiler,e,this.onLoadEndListener).pipe(Hr(()=>{this.childrenLoaders.delete(i)})),a=new Al(o,()=>new z).pipe(ju());return this.childrenLoaders.set(i,a),a}static \u0275fac=function(i){return new(i||t)};static \u0275prov=O({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();function qN(t,n,e,i){return rl(In(e,()=>t.loadChildren())).pipe(se(YN),$e(QN),Mt(r=>r instanceof wv||Array.isArray(r)?Q(r):Ot(n.compileModuleAsync(r))),se(r=>{i&&i(t);let o,a,s=!1;return Array.isArray(r)?(a=r,s=!0):(o=r.create(e).injector,a=o.get(Hd,[],{optional:!0,self:!0}).flat()),{routes:a.map(X1),injector:o}}))}function gK(t){return t&&typeof t=="object"&&"default"in t}function YN(t){return gK(t)?t.default:t}function QN(t){return Q(t)}var M0=(()=>{class t{static \u0275fac=function(i){return new(i||t)};static \u0275prov=O({token:t,factory:()=>u(_K),providedIn:"root"})}return t})(),_K=(()=>{class t{shouldProcessUrl(e){return!0}extract(e){return e}merge(e,i){return e}static \u0275fac=function(i){return new(i||t)};static \u0275prov=O({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),ek=new T(""),tk=new T("");function KN(t,n,e){let i=t.get(tk),r=t.get(ge);if(!r.startViewTransition||i.skipNextTransition)return i.skipNextTransition=!1,new Promise(c=>setTimeout(c));let o,a=new Promise(c=>{o=c}),s=r.startViewTransition(()=>(o(),bK(t)));s.ready.catch(c=>{});let{onViewTransitionCreated:l}=i;return l&&In(t,()=>l({transition:s,from:n,to:e})),a}function bK(t){return new Promise(n=>{pt({read:()=>setTimeout(n)},{injector:t})})}var ik=new T(""),Vf=(()=>{class t{currentNavigation=he(null,{equal:()=>!1});currentTransition=null;lastSuccessfulNavigation=null;events=new z;transitionAbortWithErrorSubject=new z;configLoader=u(E0);environmentInjector=u(Wt);destroyRef=u(nn);urlSerializer=u(ic);rootContexts=u(jd);location=u(us);inputBindingEnabled=u(Nf,{optional:!0})!==null;titleStrategy=u(J1);options=u(nc,{optional:!0})||{};paramsInheritanceStrategy=this.options.paramsInheritanceStrategy||"emptyOnly";urlHandlingStrategy=u(M0);createViewTransition=u(ek,{optional:!0});navigationErrorHandler=u(ik,{optional:!0});navigationId=0;get hasRequestedNavigation(){return this.navigationId!==0}transitions;afterPreactivation=()=>Q(void 0);rootComponentType=null;destroyed=!1;constructor(){let e=r=>this.events.next(new m0(r)),i=r=>this.events.next(new h0(r));this.configLoader.onLoadEndListener=i,this.configLoader.onLoadStartListener=e,this.destroyRef.onDestroy(()=>{this.destroyed=!0})}complete(){this.transitions?.complete()}handleNavigationRequest(e){let i=++this.navigationId;Ti(()=>{this.transitions?.next(De(M({},e),{extractedUrl:this.urlHandlingStrategy.extract(e.rawUrl),targetSnapshot:null,targetRouterState:null,guards:{canActivateChecks:[],canDeactivateChecks:[]},guardsResult:null,abortController:new AbortController,id:i}))})}setupNavigations(e){return this.transitions=new tt(null),this.transitions.pipe(ce(i=>i!==null),$e(i=>{let r=!1;return Q(i).pipe($e(o=>{if(this.navigationId>i.id)return this.cancelNavigationTransition(i,"",Or.SupersededByNewNavigation),Fi;this.currentTransition=i,this.currentNavigation.set({id:o.id,initialUrl:o.rawUrl,extractedUrl:o.extractedUrl,targetBrowserUrl:typeof o.extras.browserUrl=="string"?this.urlSerializer.parse(o.extras.browserUrl):o.extras.browserUrl,trigger:o.source,extras:o.extras,previousNavigation:this.lastSuccessfulNavigation?De(M({},this.lastSuccessfulNavigation),{previousNavigation:null}):null,abort:()=>o.abortController.abort()});let a=!e.navigated||this.isUpdatingInternalState()||this.isUpdatedBrowserUrl(),s=o.extras.onSameUrlNavigation??e.onSameUrlNavigation;if(!a&&s!=="reload")return this.events.next(new fs(o.id,this.urlSerializer.serialize(o.rawUrl),"",Nm.IgnoredSameUrlNavigation)),o.resolve(!1),Fi;if(this.urlHandlingStrategy.shouldProcessUrl(o.rawUrl))return Q(o).pipe($e(l=>(this.events.next(new ps(l.id,this.urlSerializer.serialize(l.extractedUrl),l.source,l.restoredState)),l.id!==this.navigationId?Fi:Promise.resolve(l))),uK(this.environmentInjector,this.configLoader,this.rootComponentType,e.config,this.urlSerializer,this.paramsInheritanceStrategy),Be(l=>{i.targetSnapshot=l.targetSnapshot,i.urlAfterRedirects=l.urlAfterRedirects,this.currentNavigation.update(d=>(d.finalUrl=l.urlAfterRedirects,d));let c=new Sf(l.id,this.urlSerializer.serialize(l.extractedUrl),this.urlSerializer.serialize(l.urlAfterRedirects),l.targetSnapshot);this.events.next(c)}));if(a&&this.urlHandlingStrategy.shouldProcessUrl(o.currentRawUrl)){let{id:l,extractedUrl:c,source:d,restoredState:m,extras:f}=o,b=new ps(l,this.urlSerializer.serialize(c),d,m);this.events.next(b);let v=PN(this.rootComponentType).snapshot;return this.currentTransition=i=De(M({},o),{targetSnapshot:v,urlAfterRedirects:c,extras:De(M({},f),{skipLocationChange:!1,replaceUrl:!1})}),this.currentNavigation.update(w=>(w.finalUrl=c,w)),Q(i)}else return this.events.next(new fs(o.id,this.urlSerializer.serialize(o.extractedUrl),"",Nm.IgnoredByUrlHandlingStrategy)),o.resolve(!1),Fi}),Be(o=>{let a=new l0(o.id,this.urlSerializer.serialize(o.extractedUrl),this.urlSerializer.serialize(o.urlAfterRedirects),o.targetSnapshot);this.events.next(a)}),se(o=>(this.currentTransition=i=De(M({},o),{guards:IQ(o.targetSnapshot,o.currentSnapshot,this.rootContexts)}),i)),HQ(this.environmentInjector,o=>this.events.next(o)),Be(o=>{if(i.guardsResult=o.guardsResult,o.guardsResult&&typeof o.guardsResult!="boolean")throw x0(this.urlSerializer,o.guardsResult);let a=new c0(o.id,this.urlSerializer.serialize(o.extractedUrl),this.urlSerializer.serialize(o.urlAfterRedirects),o.targetSnapshot,!!o.guardsResult);this.events.next(a)}),ce(o=>o.guardsResult?!0:(this.cancelNavigationTransition(o,"",Or.GuardRejected),!1)),P1(o=>{if(o.guards.canActivateChecks.length!==0)return Q(o).pipe(Be(a=>{let s=new d0(a.id,this.urlSerializer.serialize(a.extractedUrl),this.urlSerializer.serialize(a.urlAfterRedirects),a.targetSnapshot);this.events.next(s)}),$e(a=>{let s=!1;return Q(a).pipe(mK(this.paramsInheritanceStrategy,this.environmentInjector),Be({next:()=>s=!0,complete:()=>{s||this.cancelNavigationTransition(a,"",Or.NoDataFromResolver)}}))}),Be(a=>{let s=new u0(a.id,this.urlSerializer.serialize(a.extractedUrl),this.urlSerializer.serialize(a.urlAfterRedirects),a.targetSnapshot);this.events.next(s)}))}),P1(o=>{let a=s=>{let l=[];if(s.routeConfig?.loadComponent){let c=Hm(s)??this.environmentInjector;l.push(this.configLoader.loadComponent(c,s.routeConfig).pipe(Be(d=>{s.component=d}),se(()=>{})))}for(let c of s.children)l.push(...a(c));return l};return co(a(o.targetSnapshot.root)).pipe(Fl(null),lt(1))}),P1(()=>this.afterPreactivation()),$e(()=>{let{currentSnapshot:o,targetSnapshot:a}=i,s=this.createViewTransition?.(this.environmentInjector,o.root,a.root);return s?Ot(s).pipe(se(()=>i)):Q(i)}),se(o=>{let a=EQ(e.routeReuseStrategy,o.targetSnapshot,o.currentRouterState);return this.currentTransition=i=De(M({},o),{targetRouterState:a}),this.currentNavigation.update(s=>(s.targetRouterState=a,s)),i}),Be(()=>{this.events.next(new Tf)}),TQ(this.rootContexts,e.routeReuseStrategy,o=>this.events.next(o),this.inputBindingEnabled),lt(1),Te(new Fe(o=>{let a=i.abortController.signal,s=()=>o.next();return a.addEventListener("abort",s),()=>a.removeEventListener("abort",s)}).pipe(ce(()=>!r&&!i.targetRouterState),Be(()=>{this.cancelNavigationTransition(i,i.abortController.signal.reason+"",Or.Aborted)}))),Be({next:o=>{r=!0,this.lastSuccessfulNavigation=Ti(this.currentNavigation),this.events.next(new vi(o.id,this.urlSerializer.serialize(o.extractedUrl),this.urlSerializer.serialize(o.urlAfterRedirects))),this.titleStrategy?.updateTitle(o.targetRouterState.snapshot),o.resolve(!0)},complete:()=>{r=!0}}),Te(this.transitionAbortWithErrorSubject.pipe(Be(o=>{throw o}))),Hr(()=>{r||this.cancelNavigationTransition(i,"",Or.SupersededByNewNavigation),this.currentTransition?.id===i.id&&(this.currentNavigation.set(null),this.currentTransition=null)}),fi(o=>{if(this.destroyed)return i.resolve(!1),Fi;if(r=!0,jN(o))this.events.next(new qo(i.id,this.urlSerializer.serialize(i.extractedUrl),o.message,o.cancellationCode)),SQ(o)?this.events.next(new Vm(o.url,o.navigationBehaviorOptions)):i.resolve(!1);else{let a=new tc(i.id,this.urlSerializer.serialize(i.extractedUrl),o,i.targetSnapshot??void 0);try{let s=In(this.environmentInjector,()=>this.navigationErrorHandler?.(a));if(s instanceof Bm){let{message:l,cancellationCode:c}=x0(this.urlSerializer,s);this.events.next(new qo(i.id,this.urlSerializer.serialize(i.extractedUrl),l,c)),this.events.next(new Vm(s.redirectTo,s.navigationBehaviorOptions))}else throw this.events.next(a),o}catch(s){this.options.resolveNavigationPromiseOnError?i.resolve(!1):i.reject(s)}}return Fi}))}))}cancelNavigationTransition(e,i,r){let o=new qo(e.id,this.urlSerializer.serialize(e.extractedUrl),i,r);this.events.next(o),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))),i=Ti(this.currentNavigation),r=i?.targetBrowserUrl??i?.extractedUrl;return e.toString()!==r?.toString()&&!i?.extras.skipLocationChange}static \u0275fac=function(i){return new(i||t)};static \u0275prov=O({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();function vK(t){return t!==Pm}var ZN=(()=>{class t{static \u0275fac=function(i){return new(i||t)};static \u0275prov=O({token:t,factory:()=>u(yK),providedIn:"root"})}return t})(),w0=class{shouldDetach(n){return!1}store(n,e){}shouldAttach(n){return!1}retrieve(n){return null}shouldReuseRoute(n,e){return n.routeConfig===e.routeConfig}},yK=(()=>{class t extends w0{static \u0275fac=(()=>{let e;return function(r){return(e||(e=fe(t)))(r||t)}})();static \u0275prov=O({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),XN=(()=>{class t{urlSerializer=u(ic);options=u(nc,{optional:!0})||{};canceledNavigationResolution=this.options.canceledNavigationResolution||"replace";location=u(us);urlHandlingStrategy=u(M0);urlUpdateStrategy=this.options.urlUpdateStrategy||"deferred";currentUrlTree=new hs;getCurrentUrlTree(){return this.currentUrlTree}rawUrlTree=this.currentUrlTree;getRawUrlTree(){return this.rawUrlTree}createBrowserPath({finalUrl:e,initialUrl:i,targetBrowserUrl:r}){let o=e!==void 0?this.urlHandlingStrategy.merge(e,i):i,a=r??o;return a instanceof hs?this.urlSerializer.serialize(a):a}commitTransition({targetRouterState:e,finalUrl:i,initialUrl:r}){i&&e?(this.currentUrlTree=i,this.rawUrlTree=this.urlHandlingStrategy.merge(i,r),this.routerState=e):this.rawUrlTree=r}routerState=PN(null);getRouterState(){return this.routerState}stateMemento=this.createStateMemento();updateStateMemento(){this.stateMemento=this.createStateMemento()}createStateMemento(){return{rawUrlTree:this.rawUrlTree,currentUrlTree:this.currentUrlTree,routerState:this.routerState}}resetInternalState({finalUrl:e}){this.routerState=this.stateMemento.routerState,this.currentUrlTree=this.stateMemento.currentUrlTree,this.rawUrlTree=this.urlHandlingStrategy.merge(this.currentUrlTree,e??this.rawUrlTree)}static \u0275fac=function(i){return new(i||t)};static \u0275prov=O({token:t,factory:()=>u(xK),providedIn:"root"})}return t})(),xK=(()=>{class t extends XN{currentPageId=0;lastSuccessfulId=-1;restoredState(){return this.location.getState()}get browserPageId(){return this.canceledNavigationResolution!=="computed"?this.currentPageId:this.restoredState()?.\u0275routerPageId??this.currentPageId}registerNonRouterCurrentEntryChangeListener(e){return this.location.subscribe(i=>{i.type==="popstate"&&setTimeout(()=>{e(i.url,i.state,"popstate")})})}handleRouterEvent(e,i){e instanceof ps?this.updateStateMemento():e instanceof fs?this.commitTransition(i):e instanceof Sf?this.urlUpdateStrategy==="eager"&&(i.extras.skipLocationChange||this.setBrowserUrl(this.createBrowserPath(i),i)):e instanceof Tf?(this.commitTransition(i),this.urlUpdateStrategy==="deferred"&&!i.extras.skipLocationChange&&this.setBrowserUrl(this.createBrowserPath(i),i)):e instanceof qo&&e.code!==Or.SupersededByNewNavigation&&e.code!==Or.Redirect?this.restoreHistory(i):e instanceof tc?this.restoreHistory(i,!0):e instanceof vi&&(this.lastSuccessfulId=e.id,this.currentPageId=this.browserPageId)}setBrowserUrl(e,{extras:i,id:r}){let{replaceUrl:o,state:a}=i;if(this.location.isCurrentPathEqualTo(e)||o){let s=this.browserPageId,l=M(M({},a),this.generateNgRouterState(r,s));this.location.replaceState(e,"",l)}else{let s=M(M({},a),this.generateNgRouterState(r,this.browserPageId+1));this.location.go(e,"",s)}}restoreHistory(e,i=!1){if(this.canceledNavigationResolution==="computed"){let r=this.browserPageId,o=this.currentPageId-r;o!==0?this.location.historyGo(o):this.getCurrentUrlTree()===e.finalUrl&&o===0&&(this.resetInternalState(e),this.resetUrlToCurrentUrlTree())}else this.canceledNavigationResolution==="replace"&&(i&&this.resetInternalState(e),this.resetUrlToCurrentUrlTree())}resetUrlToCurrentUrlTree(){this.location.replaceState(this.urlSerializer.serialize(this.getRawUrlTree()),"",this.generateNgRouterState(this.lastSuccessfulId,this.currentPageId))}generateNgRouterState(e,i){return this.canceledNavigationResolution==="computed"?{navigationId:e,\u0275routerPageId:i}:{navigationId:e}}static \u0275fac=(()=>{let e;return function(r){return(e||(e=fe(t)))(r||t)}})();static \u0275prov=O({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();function k0(t,n){t.events.pipe(ce(e=>e instanceof vi||e instanceof qo||e instanceof tc||e instanceof fs),se(e=>e instanceof vi||e instanceof fs?0:(e instanceof qo?e.code===Or.Redirect||e.code===Or.SupersededByNewNavigation:!1)?2:1),ce(e=>e!==2),lt(1)).subscribe(()=>{n()})}var CK={paths:"exact",fragment:"ignored",matrixParams:"ignored",queryParams:"exact"},wK={paths:"subset",fragment:"ignored",matrixParams:"ignored",queryParams:"subset"},Re=(()=>{class t{get currentUrlTree(){return this.stateManager.getCurrentUrlTree()}get rawUrlTree(){return this.stateManager.getRawUrlTree()}disposed=!1;nonRouterCurrentEntryChangeSubscription;console=u(Dv);stateManager=u(XN);options=u(nc,{optional:!0})||{};pendingTasks=u(ns);urlUpdateStrategy=this.options.urlUpdateStrategy||"deferred";navigationTransitions=u(Vf);urlSerializer=u(ic);location=u(us);urlHandlingStrategy=u(M0);injector=u(Wt);_events=new z;get events(){return this._events}get routerState(){return this.stateManager.getRouterState()}navigated=!1;routeReuseStrategy=u(ZN);onSameUrlNavigation=this.options.onSameUrlNavigation||"ignore";config=u(Hd,{optional:!0})?.flat()??[];componentInputBindingEnabled=!!u(Nf,{optional:!0});currentNavigation=this.navigationTransitions.currentNavigation.asReadonly();constructor(){this.resetConfig(this.config),this.navigationTransitions.setupNavigations(this).subscribe({error:e=>{this.console.warn(e)}}),this.subscribeToNavigationEvents()}eventsSubscription=new ke;subscribeToNavigationEvents(){let e=this.navigationTransitions.events.subscribe(i=>{try{let r=this.navigationTransitions.currentTransition,o=Ti(this.navigationTransitions.currentNavigation);if(r!==null&&o!==null){if(this.stateManager.handleRouterEvent(i,o),i instanceof qo&&i.code!==Or.Redirect&&i.code!==Or.SupersededByNewNavigation)this.navigated=!0;else if(i instanceof vi)this.navigated=!0;else if(i instanceof Vm){let a=i.navigationBehaviorOptions,s=this.urlHandlingStrategy.merge(i.url,r.currentRawUrl),l=M({browserUrl:r.extras.browserUrl,info:r.extras.info,skipLocationChange:r.extras.skipLocationChange,replaceUrl:r.extras.replaceUrl||this.urlUpdateStrategy==="eager"||vK(r.source)},a);this.scheduleNavigation(s,Pm,null,l,{resolve:r.resolve,reject:r.reject,promise:r.promise})}}xQ(i)&&this._events.next(i)}catch(r){this.navigationTransitions.transitionAbortWithErrorSubject.next(r)}});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),Pm,this.stateManager.restoredState())}setUpLocationChangeListener(){this.nonRouterCurrentEntryChangeSubscription??=this.stateManager.registerNonRouterCurrentEntryChangeListener((e,i,r)=>{this.navigateToSyncWithBrowser(e,r,i)})}navigateToSyncWithBrowser(e,i,r){let o={replaceUrl:!0},a=r?.navigationId?r:null;if(r){let l=M({},r);delete l.navigationId,delete l.\u0275routerPageId,Object.keys(l).length!==0&&(o.state=l)}let s=this.parseUrl(e);this.scheduleNavigation(s,i,a,o).catch(l=>{this.disposed||this.injector.get(hr)(l)})}get url(){return this.serializeUrl(this.currentUrlTree)}getCurrentNavigation(){return Ti(this.navigationTransitions.currentNavigation)}get lastSuccessfulNavigation(){return this.navigationTransitions.lastSuccessfulNavigation}resetConfig(e){this.config=e.map(X1),this.navigated=!1}ngOnDestroy(){this.dispose()}dispose(){this._events.unsubscribe(),this.navigationTransitions.complete(),this.nonRouterCurrentEntryChangeSubscription&&(this.nonRouterCurrentEntryChangeSubscription.unsubscribe(),this.nonRouterCurrentEntryChangeSubscription=void 0),this.disposed=!0,this.eventsSubscription.unsubscribe()}createUrlTree(e,i={}){let{relativeTo:r,queryParams:o,fragment:a,queryParamsHandling:s,preserveFragment:l}=i,c=l?this.currentUrlTree.fragment:a,d=null;switch(s??this.options.defaultQueryParamsHandling){case"merge":d=M(M({},this.currentUrlTree.queryParams),o);break;case"preserve":d=this.currentUrlTree.queryParams;break;default:d=o||null}d!==null&&(d=this.removeEmptyProps(d));let m;try{let f=r?r.snapshot:this.routerState.snapshot.root;m=IN(f)}catch{(typeof e[0]!="string"||e[0][0]!=="/")&&(e=[]),m=this.currentUrlTree.root}return AN(m,e,d,c??null)}navigateByUrl(e,i={skipLocationChange:!1}){let r=ec(e)?e:this.parseUrl(e),o=this.urlHandlingStrategy.merge(r,this.rawUrlTree);return this.scheduleNavigation(o,Pm,null,i)}navigate(e,i={skipLocationChange:!1}){return DK(e),this.navigateByUrl(this.createUrlTree(e,i),i)}serializeUrl(e){return this.urlSerializer.serialize(e)}parseUrl(e){try{return this.urlSerializer.parse(e)}catch{return this.console.warn(Ro(4018,!1)),this.urlSerializer.parse("/")}}isActive(e,i){let r;if(i===!0?r=M({},CK):i===!1?r=M({},wK):r=i,ec(e))return uN(this.currentUrlTree,e,r);let o=this.parseUrl(e);return uN(this.currentUrlTree,o,r)}removeEmptyProps(e){return Object.entries(e).reduce((i,[r,o])=>(o!=null&&(i[r]=o),i),{})}scheduleNavigation(e,i,r,o,a){if(this.disposed)return Promise.resolve(!1);let s,l,c;a?(s=a.resolve,l=a.reject,c=a.promise):c=new Promise((m,f)=>{s=m,l=f});let d=this.pendingTasks.add();return k0(this,()=>{queueMicrotask(()=>this.pendingTasks.remove(d))}),this.navigationTransitions.handleNavigationRequest({source:i,restoredState:r,currentUrlTree:this.currentUrlTree,currentRawUrl:this.currentUrlTree,rawUrl:e,extras:o,resolve:s,reject:l,promise:c,currentSnapshot:this.routerState.snapshot,currentRouterState:this.routerState}),c.catch(m=>Promise.reject(m))}static \u0275fac=function(i){return new(i||t)};static \u0275prov=O({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();function DK(t){for(let n=0;n{class t{router;route;tabIndexAttribute;renderer;el;locationStrategy;reactiveHref=he(null);get href(){return Ti(this.reactiveHref)}set href(e){this.reactiveHref.set(e)}target;queryParams;fragment;queryParamsHandling;state;info;relativeTo;isAnchorElement;subscription;onChanges=new z;applicationErrorHandler=u(hr);options=u(nc,{optional:!0});constructor(e,i,r,o,a,s){this.router=e,this.route=i,this.tabIndexAttribute=r,this.renderer=o,this.el=a,this.locationStrategy=s,this.reactiveHref.set(u(new Ii("href"),{optional:!0}));let l=a.nativeElement.tagName?.toLowerCase();this.isAnchorElement=l==="a"||l==="area"||!!(typeof customElements=="object"&&customElements.get(l)?.observedAttributes?.includes?.("href")),this.isAnchorElement?this.setTabIndexIfNotOnNativeEl("0"):this.subscribeToNavigationEventsIfNecessary()}subscribeToNavigationEventsIfNecessary(){if(this.subscription!==void 0||!this.isAnchorElement)return;let e=this.preserveFragment,i=r=>r==="merge"||r==="preserve";e||=i(this.queryParamsHandling),e||=!this.queryParamsHandling&&!i(this.options?.defaultQueryParamsHandling),e&&(this.subscription=this.router.events.subscribe(r=>{r instanceof vi&&this.updateHref()}))}preserveFragment=!1;skipLocationChange=!1;replaceUrl=!1;setTabIndexIfNotOnNativeEl(e){this.tabIndexAttribute!=null||this.isAnchorElement||this.applyAttributeValue("tabindex",e)}ngOnChanges(e){this.isAnchorElement&&(this.updateHref(),this.subscribeToNavigationEventsIfNecessary()),this.onChanges.next(this)}routerLinkInput=null;set routerLink(e){e==null?(this.routerLinkInput=null,this.setTabIndexIfNotOnNativeEl(null)):(ec(e)?this.routerLinkInput=e:this.routerLinkInput=Array.isArray(e)?e:[e],this.setTabIndexIfNotOnNativeEl("0"))}onClick(e,i,r,o,a){let s=this.urlTree;if(s===null||this.isAnchorElement&&(e!==0||i||r||o||a||typeof this.target=="string"&&this.target!="_self"))return!0;let l={skipLocationChange:this.skipLocationChange,replaceUrl:this.replaceUrl,state:this.state,info:this.info};return this.router.navigateByUrl(s,l)?.catch(c=>{this.applicationErrorHandler(c)}),!this.isAnchorElement}ngOnDestroy(){this.subscription?.unsubscribe()}updateHref(){let e=this.urlTree;this.reactiveHref.set(e!==null&&this.locationStrategy?this.locationStrategy?.prepareExternalUrl(this.router.serializeUrl(e))??"":null)}applyAttributeValue(e,i){let r=this.renderer,o=this.el.nativeElement;i!==null?r.setAttribute(o,e,i):r.removeAttribute(o,e)}get urlTree(){return this.routerLinkInput===null?null:ec(this.routerLinkInput)?this.routerLinkInput:this.router.createUrlTree(this.routerLinkInput,{relativeTo:this.relativeTo!==void 0?this.relativeTo:this.route,queryParams:this.queryParams,fragment:this.fragment,queryParamsHandling:this.queryParamsHandling,preserveFragment:this.preserveFragment})}static \u0275fac=function(i){return new(i||t)(_e(Re),_e(wi),qp("tabindex"),_e(je),_e(q),_e(Ea))};static \u0275dir=F({type:t,selectors:[["","routerLink",""]],hostVars:2,hostBindings:function(i,r){i&1&&S("click",function(a){return r.onClick(a.button,a.ctrlKey,a.shiftKey,a.altKey,a.metaKey)}),i&2&&X("href",r.reactiveHref(),sM)("target",r.target)},inputs:{target:"target",queryParams:"queryParams",fragment:"fragment",queryParamsHandling:"queryParamsHandling",state:"state",info:"info",relativeTo:"relativeTo",preserveFragment:[2,"preserveFragment","preserveFragment",V],skipLocationChange:[2,"skipLocationChange","skipLocationChange",V],replaceUrl:[2,"replaceUrl","replaceUrl",V],routerLink:"routerLink"},features:[Ae]})}return t})(),zd=(()=>{class t{router;element;renderer;cdr;link;links;classes=[];routerEventsSubscription;linkInputChangesSubscription;_isActive=!1;get isActive(){return this._isActive}routerLinkActiveOptions={exact:!1};ariaCurrentWhenActive;isActiveChange=new U;constructor(e,i,r,o,a){this.router=e,this.element=i,this.renderer=r,this.cdr=o,this.link=a,this.routerEventsSubscription=e.events.subscribe(s=>{s instanceof vi&&this.update()})}ngAfterContentInit(){Q(this.links.changes,Q(null)).pipe(uo()).subscribe(e=>{this.update(),this.subscribeToEachLinkOnChanges()})}subscribeToEachLinkOnChanges(){this.linkInputChangesSubscription?.unsubscribe();let e=[...this.links.toArray(),this.link].filter(i=>!!i).map(i=>i.onChanges);this.linkInputChangesSubscription=Ot(e).pipe(uo()).subscribe(i=>{this._isActive!==this.isLinkActive(this.router)(i)&&this.update()})}set routerLinkActive(e){let i=Array.isArray(e)?e:e.split(" ");this.classes=i.filter(r=>!!r)}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(i=>{e?this.renderer.addClass(this.element.nativeElement,i):this.renderer.removeClass(this.element.nativeElement,i)}),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 i=EK(this.routerLinkActiveOptions)?this.routerLinkActiveOptions:this.routerLinkActiveOptions.exact||!1;return r=>{let o=r.urlTree;return o?e.isActive(o,i):!1}}hasActiveLinks(){let e=this.isLinkActive(this.router);return this.link&&e(this.link)||this.links.some(e)}static \u0275fac=function(i){return new(i||t)(_e(Re),_e(q),_e(je),_e(ye),_e(Nn,8))};static \u0275dir=F({type:t,selectors:[["","routerLinkActive",""]],contentQueries:function(i,r,o){if(i&1&&xe(o,Nn,5),i&2){let a;B(a=j())&&(r.links=a)}},inputs:{routerLinkActiveOptions:"routerLinkActiveOptions",ariaCurrentWhenActive:"ariaCurrentWhenActive",routerLinkActive:"routerLinkActive"},outputs:{isActiveChange:"isActiveChange"},exportAs:["routerLinkActive"],features:[Ae]})}return t})();function EK(t){return!!t.paths}var Bf=class{};var JN=(()=>{class t{router;injector;preloadingStrategy;loader;subscription;constructor(e,i,r,o){this.router=e,this.injector=i,this.preloadingStrategy=r,this.loader=o}setUpPreloading(){this.subscription=this.router.events.pipe(ce(e=>e instanceof vi),Ao(()=>this.preload())).subscribe(()=>{})}preload(){return this.processRoutes(this.injector,this.router.config)}ngOnDestroy(){this.subscription&&this.subscription.unsubscribe()}processRoutes(e,i){let r=[];for(let o of i){o.providers&&!o._injector&&(o._injector=vm(o.providers,e,`Route: ${o.path}`));let a=o._injector??e,s=o._loadedInjector??a;(o.loadChildren&&!o._loadedRoutes&&o.canLoad===void 0||o.loadComponent&&!o._loadedComponent)&&r.push(this.preloadConfig(a,o)),(o.children||o._loadedRoutes)&&r.push(this.processRoutes(s,o.children??o._loadedRoutes))}return Ot(r).pipe(uo())}preloadConfig(e,i){return this.preloadingStrategy.preload(i,()=>{let r;i.loadChildren&&i.canLoad===void 0?r=this.loader.loadChildren(e,i):r=Q(null);let o=r.pipe(Mt(a=>a===null?Q(void 0):(i._loadedRoutes=a.routes,i._loadedInjector=a.injector,this.processRoutes(a.injector??e,a.routes))));if(i.loadComponent&&!i._loadedComponent){let a=this.loader.loadComponent(e,i);return Ot([o,a]).pipe(uo())}else return o})}static \u0275fac=function(i){return new(i||t)(pe(Re),pe(Wt),pe(Bf),pe(E0))};static \u0275prov=O({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),rk=new T(""),eL=(()=>{class t{urlSerializer;transitions;viewportScroller;zone;options;routerEventsSubscription;scrollEventsSubscription;lastId=0;lastSource=Pm;restoredId=0;store={};constructor(e,i,r,o,a={}){this.urlSerializer=e,this.transitions=i,this.viewportScroller=r,this.zone=o,this.options=a,a.scrollPositionRestoration||="disabled",a.anchorScrolling||="disabled"}init(){this.options.scrollPositionRestoration!=="disabled"&&this.viewportScroller.setHistoryScrollRestoration("manual"),this.routerEventsSubscription=this.createScrollEvents(),this.scrollEventsSubscription=this.consumeScrollEvents()}createScrollEvents(){return this.transitions.events.subscribe(e=>{e instanceof ps?(this.store[this.lastId]=this.viewportScroller.getScrollPosition(),this.lastSource=e.navigationTrigger,this.restoredId=e.restoredState?e.restoredState.navigationId:0):e instanceof vi?(this.lastId=e.id,this.scheduleScrollEvent(e,this.urlSerializer.parse(e.urlAfterRedirects).fragment)):e instanceof fs&&e.code===Nm.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 Lm))return;let i={behavior:"instant"};e.position?this.options.scrollPositionRestoration==="top"?this.viewportScroller.scrollToPosition([0,0],i):this.options.scrollPositionRestoration==="enabled"&&this.viewportScroller.scrollToPosition(e.position,i):e.anchor&&this.options.anchorScrolling==="enabled"?this.viewportScroller.scrollToAnchor(e.anchor):this.options.scrollPositionRestoration!=="disabled"&&this.viewportScroller.scrollToPosition([0,0])})}scheduleScrollEvent(e,i){this.zone.runOutsideAngular(()=>fn(this,null,function*(){yield new Promise(r=>{setTimeout(r),typeof requestAnimationFrame<"u"&&requestAnimationFrame(r)}),this.zone.run(()=>{this.transitions.events.next(new Lm(e,this.lastSource==="popstate"?this.store[this.restoredId]:null,i))})}))}ngOnDestroy(){this.routerEventsSubscription?.unsubscribe(),this.scrollEventsSubscription?.unsubscribe()}static \u0275fac=function(i){Ad()};static \u0275prov=O({token:t,factory:t.\u0275fac})}return t})();function ok(t,...n){return zr([{provide:Hd,multi:!0,useValue:t},[],{provide:wi,useFactory:tL,deps:[Re]},{provide:nf,multi:!0,useFactory:iL},n.map(e=>e.\u0275providers)])}function tL(t){return t.routerState.root}function Um(t,n){return{\u0275kind:t,\u0275providers:n}}function ak(t={}){return Um(4,[{provide:rk,useFactory:()=>{let e=u(h1),i=u(ae),r=u(Vf),o=u(ic);return new eL(o,r,e,i,t)}}])}function iL(){let t=u(de);return n=>{let e=t.get(Gn);if(n!==e.components[0])return;let i=t.get(Re),r=t.get(nL);t.get(sk)===1&&i.initialNavigation(),t.get(aL,null,{optional:!0})?.setUpPreloading(),t.get(rk,null,{optional:!0})?.init(),i.resetRootComponentType(e.componentTypes[0]),r.closed||(r.next(),r.complete(),r.unsubscribe())}}var nL=new T("",{factory:()=>new z}),sk=new T("",{providedIn:"root",factory:()=>1});function rL(){let t=[{provide:lv,useValue:!0},{provide:sk,useValue:0},Ql(()=>{let n=u(de);return n.get(JM,Promise.resolve()).then(()=>new Promise(i=>{let r=n.get(Re),o=n.get(nL);k0(r,()=>{i(!0)}),n.get(Vf).afterPreactivation=()=>(i(!0),o.closed?Q(void 0):o),r.initialNavigation()}))})];return Um(2,t)}function oL(){let t=[Ql(()=>{u(Re).setUpLocationChangeListener()}),{provide:sk,useValue:2}];return Um(3,t)}var aL=new T("");function sL(t){return Um(0,[{provide:aL,useExisting:JN},{provide:Bf,useExisting:t}])}function S0(){return Um(8,[K1,{provide:Nf,useExisting:K1}])}function lL(t){cs("NgRouterViewTransitions");let n=[{provide:ek,useValue:KN},{provide:tk,useValue:M({skipNextTransition:!!t?.skipInitialTransition},t)}];return Um(9,n)}var cL=[us,{provide:ic,useClass:Jl},Re,jd,{provide:wi,useFactory:tL,deps:[Re]},E0,[]],lk=(()=>{class t{constructor(){}static forRoot(e,i){return{ngModule:t,providers:[cL,[],{provide:Hd,multi:!0,useValue:e},[],i?.errorHandler?{provide:ik,useValue:i.errorHandler}:[],{provide:nc,useValue:i||{}},i?.useHash?kK():SK(),MK(),i?.preloadingStrategy?sL(i.preloadingStrategy).\u0275providers:[],i?.initialNavigation?TK(i):[],i?.bindToComponentInputs?S0().\u0275providers:[],i?.enableViewTransitions?lL().\u0275providers:[],IK()]}}static forChild(e){return{ngModule:t,providers:[{provide:Hd,multi:!0,useValue:e}]}}static \u0275fac=function(i){return new(i||t)};static \u0275mod=ee({type:t});static \u0275inj=J({})}return t})();function MK(){return{provide:rk,useFactory:()=>{let t=u(h1),n=u(ae),e=u(nc),i=u(Vf),r=u(ic);return e.scrollOffset&&t.setOffset(e.scrollOffset),new eL(r,i,t,n,e)}}}function kK(){return{provide:Ea,useClass:l1}}function SK(){return{provide:Ea,useClass:Fv}}function TK(t){return[t.initialNavigation==="disabled"?oL().\u0275providers:[],t.initialNavigation==="enabledBlocking"?rL().\u0275providers:[]]}var nk=new T("");function IK(){return[{provide:nk,useFactory:iL},{provide:nf,multi:!0,useExisting:nk}]}var dk=class{validateSignature(n){return Promise.resolve(null)}validateAtHash(n){return Promise.resolve(!0)}},T0=class{};var jf=class{},AK=(()=>{let n=class n extends jf{now(){return Date.now()}new(){return new Date}};n.\u0275fac=(()=>{let i;return function(o){return(i||(i=fe(n)))(o||n)}})(),n.\u0275prov=O({token:n,factory:n.\u0275fac});let t=n;return t})();var I0=class{},A0=class{},OK=(()=>{let n=class n{constructor(){this.data=new Map}getItem(i){return this.data.get(i)}removeItem(i){this.data.delete(i)}setItem(i,r){this.data.set(i,r)}};n.\u0275fac=function(r){return new(r||n)},n.\u0275prov=O({token:n,factory:n.\u0275fac});let t=n;return t})();var Hf=class{constructor(n){this.type=n}},Rr=class extends Hf{constructor(n,e=null){super(n),this.info=e}},Ia=class extends Hf{constructor(n,e=null){super(n),this.info=e}},Ui=class extends Hf{constructor(n,e,i=null){super(n),this.reason=e,this.params=i}};function uL(t){let n=t.replace(/-/g,"+").replace(/_/g,"/");return decodeURIComponent(atob(n).split("").map(function(e){return"%"+("00"+e.charCodeAt(0).toString(16)).slice(-2)}).join(""))}function mL(t){return btoa(t).replace(/\+/g,"-").replace(/\//g,"_").replace(/=/g,"")}var $m=class{constructor(n){this.clientId="",this.redirectUri="",this.postLogoutRedirectUri="",this.redirectUriAsPostLogoutRedirectUriFallback=!0,this.loginUrl="",this.scope="openid profile",this.resource="",this.rngUrl="",this.oidc=!0,this.requestAccessToken=!0,this.options=null,this.issuer="",this.logoutUrl="",this.clearHashAfterLogin=!0,this.tokenEndpoint=null,this.revocationEndpoint=null,this.customTokenParameters=[],this.userinfoEndpoint=null,this.responseType="",this.showDebugInformation=!1,this.silentRefreshRedirectUri="",this.silentRefreshMessagePrefix="",this.silentRefreshShowIFrame=!1,this.siletRefreshTimeout=1e3*20,this.silentRefreshTimeout=1e3*20,this.dummyClientSecret="",this.requireHttps="remoteOnly",this.strictDiscoveryDocumentValidation=!0,this.jwks=null,this.customQueryParams=null,this.silentRefreshIFrameName="angular-oauth-oidc-silent-refresh-iframe",this.timeoutFactor=.75,this.sessionChecksEnabled=!1,this.sessionCheckIntervall=3*1e3,this.sessionCheckIFrameUrl=null,this.sessionCheckIFrameName="angular-oauth-oidc-check-session-iframe",this.disableAtHashCheck=!1,this.skipSubjectCheck=!1,this.useIdTokenHintForSilentRefresh=!1,this.skipIssuerCheck=!1,this.nonceStateSeparator=";",this.useHttpBasicAuth=!1,this.decreaseExpirationBySec=0,this.waitForTokenInMsec=0,this.disablePKCE=!1,this.preserveRequestedRoute=!1,this.disableIdTokenTimer=!1,this.checkOrigin=!1,this.openUri=e=>{location.href=e},n&&Object.assign(this,n)}},Ud=class{encodeKey(n){return encodeURIComponent(n)}encodeValue(n){return encodeURIComponent(n)}decodeKey(n){return decodeURIComponent(n)}decodeValue(n){return decodeURIComponent(n)}},O0=class{};var hL=(()=>{let n=class n{getHashFragmentParams(i){let r=i||window.location.hash;if(r=decodeURIComponent(r),r.indexOf("#")!==0)return{};let o=r.indexOf("?");return o>-1?r=r.substr(o+1):r=r.substr(1),this.parseQueryString(r)}parseQueryString(i){let r={},o,a,s,l,c,d;if(i===null)return r;let m=i.split("&");for(let f=0;f=64;){for(o=n[0],a=n[1],s=n[2],l=n[3],c=n[4],d=n[5],m=n[6],f=n[7],v=0;v<16;v++)w=i+v*4,t[v]=(e[w]&255)<<24|(e[w+1]&255)<<16|(e[w+2]&255)<<8|e[w+3]&255;for(v=16;v<64;v++)b=t[v-2],x=(b>>>17|b<<15)^(b>>>19|b<<13)^b>>>10,b=t[v-15],D=(b>>>7|b<<25)^(b>>>18|b<<14)^b>>>3,t[v]=(x+t[v-7]|0)+(D+t[v-16]|0);for(v=0;v<64;v++)x=(((c>>>6|c<<26)^(c>>>11|c<<21)^(c>>>25|c<<7))+(c&d^~c&m)|0)+(f+(PK[v]+t[v]|0)|0)|0,D=((o>>>2|o<<30)^(o>>>13|o<<19)^(o>>>22|o<<10))+(o&a^o&s^a&s)|0,f=m,m=d,d=c,c=l+x|0,l=s,s=a,a=o,o=x+D|0;n[0]+=o,n[1]+=a,n[2]+=s,n[3]+=l,n[4]+=c,n[5]+=d,n[6]+=m,n[7]+=f,i+=64,r-=64}return i}var uk=class{constructor(){this.digestLength=pL,this.blockSize=RK,this.state=new Int32Array(8),this.temp=new Int32Array(64),this.buffer=new Uint8Array(128),this.bufferLength=0,this.bytesHashed=0,this.finished=!1,this.reset()}reset(){return this.state[0]=1779033703,this.state[1]=3144134277,this.state[2]=1013904242,this.state[3]=2773480762,this.state[4]=1359893119,this.state[5]=2600822924,this.state[6]=528734635,this.state[7]=1541459225,this.bufferLength=0,this.bytesHashed=0,this.finished=!1,this}clean(){for(let n=0;n0){for(;this.bufferLength<64&&e>0;)this.buffer[this.bufferLength++]=n[i++],e--;this.bufferLength===64&&(ck(this.temp,this.state,this.buffer,0,64),this.bufferLength=0)}for(e>=64&&(i=ck(this.temp,this.state,n,i,e),e%=64);e>0;)this.buffer[this.bufferLength++]=n[i++],e--;return this}finish(n){if(!this.finished){let e=this.bytesHashed,i=this.bufferLength,r=e/536870912|0,o=e<<3,a=e%64<56?64:128;this.buffer[i]=128;for(let s=i+1;s>>24&255,this.buffer[a-7]=r>>>16&255,this.buffer[a-6]=r>>>8&255,this.buffer[a-5]=r>>>0&255,this.buffer[a-4]=o>>>24&255,this.buffer[a-3]=o>>>16&255,this.buffer[a-2]=o>>>8&255,this.buffer[a-1]=o>>>0&255,ck(this.temp,this.state,this.buffer,0,a),this.finished=!0}for(let e=0;e<8;e++)n[e*4+0]=this.state[e]>>>24&255,n[e*4+1]=this.state[e]>>>16&255,n[e*4+2]=this.state[e]>>>8&255,n[e*4+3]=this.state[e]>>>0&255;return this}digest(){let n=new Uint8Array(this.digestLength);return this.finish(n),n}_saveState(n){for(let e=0;e{let n=class n{calcHash(i,r){return fn(this,null,function*(){return LK(FK(NK(i)))})}toHashString2(i){let r="";for(let o of i)r+=String.fromCharCode(o);return r}toHashString(i){let r=new Uint8Array(i),o="";for(let a of r)o+=String.fromCharCode(a);return o}};n.\u0275fac=function(r){return new(r||n)},n.\u0275prov=O({token:n,factory:n.\u0275fac});let t=n;return t})(),Wm=(()=>{let n=class n extends $m{constructor(i,r,o,a,s,l,c,d,m,f){super(),this.ngZone=i,this.http=r,this.config=s,this.urlHelper=l,this.logger=c,this.crypto=d,this.dateTimeService=f,this.discoveryDocumentLoaded=!1,this.state="",this.eventsSubject=new z,this.discoveryDocumentLoadedSubject=new z,this.grantTypesSupported=[],this.inImplicitFlow=!1,this.saveNoncesInLocalStorage=!1,this.debug("angular-oauth2-oidc v10"),this.document=m,s||(s={}),this.discoveryDocumentLoaded$=this.discoveryDocumentLoadedSubject.asObservable(),this.events=this.eventsSubject.asObservable(),a&&(this.tokenValidationHandler=a),s&&this.configure(s);try{o?this.setStorage(o):typeof sessionStorage<"u"&&this.setStorage(sessionStorage)}catch(b){console.error("No OAuthStorage provided and cannot access default (sessionStorage).Consider providing a custom OAuthStorage implementation in your module.",b)}if(this.checkLocalStorageAccessable()){let b=window?.navigator?.userAgent;(b?.includes("MSIE ")||b?.includes("Trident"))&&(this.saveNoncesInLocalStorage=!0)}this.setupRefreshTimer()}checkLocalStorageAccessable(){if(typeof window>"u")return!1;let i="test";try{return typeof window.localStorage>"u"?!1:(localStorage.setItem(i,i),localStorage.removeItem(i),!0)}catch{return!1}}configure(i){Object.assign(this,new $m,i),this.config=Object.assign({},new $m,i),this.sessionChecksEnabled&&this.setupSessionCheck(),this.configChanged()}configChanged(){this.setupRefreshTimer()}restartSessionChecksIfStillLoggedIn(){this.hasValidIdToken()&&this.initSessionCheck()}restartRefreshTimerIfStillLoggedIn(){this.setupExpirationTimers()}setupSessionCheck(){this.events.pipe(ce(i=>i.type==="token_received")).subscribe(()=>{this.initSessionCheck()})}setupAutomaticSilentRefresh(i={},r,o=!0){let a=!0;this.clearAutomaticRefreshTimer(),this.automaticRefreshSubscription=this.events.pipe(Be(s=>{s.type==="token_received"?a=!0:s.type==="logout"&&(a=!1)}),ce(s=>s.type==="token_expires"&&(r==null||r==="any"||s.info===r)),Rt(1e3)).subscribe(()=>{a&&this.refreshInternal(i,o).catch(()=>{this.debug("Automatic silent refresh did not work")})}),this.restartRefreshTimerIfStillLoggedIn()}refreshInternal(i,r){return!this.useSilentRefresh&&this.responseType==="code"?this.refreshToken():this.silentRefresh(i,r)}loadDiscoveryDocumentAndTryLogin(i=null){return this.loadDiscoveryDocument().then(()=>this.tryLogin(i))}loadDiscoveryDocumentAndLogin(i=null){return i=i||{},this.loadDiscoveryDocumentAndTryLogin(i).then(()=>{if(!this.hasValidIdToken()||!this.hasValidAccessToken()){let r=typeof i.state=="string"?i.state:"";return this.initLoginFlow(r),!1}else return!0})}debug(...i){this.showDebugInformation&&this.logger.debug(...i)}validateUrlFromDiscoveryDocument(i){let r=[],o=this.validateUrlForHttps(i),a=this.validateUrlAgainstIssuer(i);return o||r.push("https for all urls required. Also for urls received by discovery."),a||r.push("Every url in discovery document has to start with the issuer url.Also see property strictDiscoveryDocumentValidation."),r}validateUrlForHttps(i){if(!i)return!0;let r=i.toLowerCase();return this.requireHttps===!1||(r.match(/^http:\/\/localhost($|[:/])/)||r.match(/^http:\/\/localhost($|[:/])/))&&this.requireHttps==="remoteOnly"?!0:r.startsWith("https://")}assertUrlNotNullAndCorrectProtocol(i,r){if(!i)throw new Error(`'${r}' should not be null`);if(!this.validateUrlForHttps(i))throw new Error(`'${r}' must use HTTPS (with TLS), or config value for property 'requireHttps' must be set to 'false' and allow HTTP (without TLS).`)}validateUrlAgainstIssuer(i){return!this.strictDiscoveryDocumentValidation||!i?!0:i.toLowerCase().startsWith(this.issuer.toLowerCase())}setupRefreshTimer(){if(typeof window>"u"){this.debug("timer not supported on this plattform");return}(this.hasValidIdToken()||this.hasValidAccessToken())&&(this.clearAccessTokenTimer(),this.clearIdTokenTimer(),this.setupExpirationTimers()),this.tokenReceivedSubscription&&this.tokenReceivedSubscription.unsubscribe(),this.tokenReceivedSubscription=this.events.pipe(ce(i=>i.type==="token_received")).subscribe(()=>{this.clearAccessTokenTimer(),this.clearIdTokenTimer(),this.setupExpirationTimers()})}setupExpirationTimers(){this.hasValidAccessToken()&&this.setupAccessTokenTimer(),!this.disableIdTokenTimer&&this.hasValidIdToken()&&this.setupIdTokenTimer()}setupAccessTokenTimer(){let i=this.getAccessTokenExpiration(),r=this.getAccessTokenStoredAt(),o=this.calcTimeout(r,i);this.ngZone.runOutsideAngular(()=>{this.accessTokenTimeoutSubscription=Q(new Ia("token_expires","access_token")).pipe(pa(o)).subscribe(a=>{this.ngZone.run(()=>{this.eventsSubject.next(a)})})})}setupIdTokenTimer(){let i=this.getIdTokenExpiration(),r=this.getIdTokenStoredAt(),o=this.calcTimeout(r,i);this.ngZone.runOutsideAngular(()=>{this.idTokenTimeoutSubscription=Q(new Ia("token_expires","id_token")).pipe(pa(o)).subscribe(a=>{this.ngZone.run(()=>{this.eventsSubject.next(a)})})})}stopAutomaticRefresh(){this.clearAccessTokenTimer(),this.clearIdTokenTimer(),this.clearAutomaticRefreshTimer()}clearAccessTokenTimer(){this.accessTokenTimeoutSubscription&&this.accessTokenTimeoutSubscription.unsubscribe()}clearIdTokenTimer(){this.idTokenTimeoutSubscription&&this.idTokenTimeoutSubscription.unsubscribe()}clearAutomaticRefreshTimer(){this.automaticRefreshSubscription&&this.automaticRefreshSubscription.unsubscribe()}calcTimeout(i,r){let o=this.dateTimeService.now(),a=(r-i)*this.timeoutFactor-(o-i),s=Math.max(0,a),l=2147483647;return s>l?l:s}setStorage(i){this._storage=i,this.configChanged()}loadDiscoveryDocument(i=null){return new Promise((r,o)=>{if(i||(i=this.issuer||"",i.endsWith("/")||(i+="/"),i+=".well-known/openid-configuration"),!this.validateUrlForHttps(i)){o("issuer must use HTTPS (with TLS), or config value for property 'requireHttps' must be set to 'false' and allow HTTP (without TLS).");return}this.http.get(i).subscribe(a=>{if(!this.validateDiscoveryDocument(a)){this.eventsSubject.next(new Ui("discovery_document_validation_error",null)),o("discovery_document_validation_error");return}this.loginUrl=a.authorization_endpoint,this.logoutUrl=a.end_session_endpoint||this.logoutUrl,this.grantTypesSupported=a.grant_types_supported,this.issuer=a.issuer,this.tokenEndpoint=a.token_endpoint,this.userinfoEndpoint=a.userinfo_endpoint||this.userinfoEndpoint,this.jwksUri=a.jwks_uri,this.sessionCheckIFrameUrl=a.check_session_iframe||this.sessionCheckIFrameUrl,this.discoveryDocumentLoaded=!0,this.discoveryDocumentLoadedSubject.next(a),this.revocationEndpoint=a.revocation_endpoint||this.revocationEndpoint,this.sessionChecksEnabled&&this.restartSessionChecksIfStillLoggedIn(),this.loadJwks().then(s=>{let l={discoveryDocument:a,jwks:s},c=new Rr("discovery_document_loaded",l);this.eventsSubject.next(c),r(c)}).catch(s=>{this.eventsSubject.next(new Ui("discovery_document_load_error",s)),o(s)})},a=>{this.logger.error("error loading discovery document",a),this.eventsSubject.next(new Ui("discovery_document_load_error",a)),o(a)})})}loadJwks(){return new Promise((i,r)=>{this.jwksUri?this.http.get(this.jwksUri).subscribe(o=>{this.jwks=o,i(o)},o=>{this.logger.error("error loading jwks",o),this.eventsSubject.next(new Ui("jwks_load_error",o)),r(o)}):i(null)})}validateDiscoveryDocument(i){let r;return!this.skipIssuerCheck&&i.issuer!==this.issuer?(this.logger.error("invalid issuer in discovery document","expected: "+this.issuer,"current: "+i.issuer),!1):(r=this.validateUrlFromDiscoveryDocument(i.authorization_endpoint),r.length>0?(this.logger.error("error validating authorization_endpoint in discovery document",r),!1):(r=this.validateUrlFromDiscoveryDocument(i.end_session_endpoint),r.length>0?(this.logger.error("error validating end_session_endpoint in discovery document",r),!1):(r=this.validateUrlFromDiscoveryDocument(i.token_endpoint),r.length>0&&this.logger.error("error validating token_endpoint in discovery document",r),r=this.validateUrlFromDiscoveryDocument(i.revocation_endpoint),r.length>0&&this.logger.error("error validating revocation_endpoint in discovery document",r),r=this.validateUrlFromDiscoveryDocument(i.userinfo_endpoint),r.length>0?(this.logger.error("error validating userinfo_endpoint in discovery document",r),!1):(r=this.validateUrlFromDiscoveryDocument(i.jwks_uri),r.length>0?(this.logger.error("error validating jwks_uri in discovery document",r),!1):(this.sessionChecksEnabled&&!i.check_session_iframe&&this.logger.warn("sessionChecksEnabled is activated but discovery document does not contain a check_session_iframe field"),!0)))))}fetchTokenUsingPasswordFlowAndLoadUserProfile(i,r,o=new _r){return this.fetchTokenUsingPasswordFlow(i,r,o).then(()=>this.loadUserProfile())}loadUserProfile(){if(!this.hasValidAccessToken())throw new Error("Can not load User Profile without access_token");if(!this.validateUrlForHttps(this.userinfoEndpoint))throw new Error("userinfoEndpoint must use HTTPS (with TLS), or config value for property 'requireHttps' must be set to 'false' and allow HTTP (without TLS).");return new Promise((i,r)=>{let o=new _r().set("Authorization","Bearer "+this.getAccessToken());this.http.get(this.userinfoEndpoint,{headers:o,observe:"response",responseType:"text"}).subscribe(a=>{if(this.debug("userinfo received",JSON.stringify(a)),a.headers.get("content-type").startsWith("application/json")){let s=JSON.parse(a.body),l=this.getIdentityClaims()||{};if(!this.skipSubjectCheck&&this.oidc&&(!l.sub||s.sub!==l.sub)){r(`if property oidc is true, the received user-id (sub) has to be the user-id of the user that has logged in with oidc. -if you are not using oidc but just oauth2 password flow set oidc to false`);return}s=Object.assign({},l,s),this._storage.setItem("id_token_claims_obj",JSON.stringify(s)),this.eventsSubject.next(new Rr("user_profile_loaded")),i({info:s})}else this.debug("userinfo is not JSON, treating it as JWE/JWS"),this.eventsSubject.next(new Rr("user_profile_loaded")),i(JSON.parse(a.body))},a=>{this.logger.error("error loading user info",a),this.eventsSubject.next(new Ui("user_profile_load_error",a)),r(a)})})}fetchTokenUsingPasswordFlow(i,r,o=new _r){let a={username:i,password:r};return this.fetchTokenUsingGrant("password",a,o)}fetchTokenUsingGrant(i,r,o=new _r){this.assertUrlNotNullAndCorrectProtocol(this.tokenEndpoint,"tokenEndpoint");let a=new Qn({encoder:new Ud}).set("grant_type",i).set("scope",this.scope);if(this.useHttpBasicAuth){let s=btoa(`${this.clientId}:${this.dummyClientSecret}`);o=o.set("Authorization","Basic "+s)}if(this.useHttpBasicAuth||(a=a.set("client_id",this.clientId)),!this.useHttpBasicAuth&&this.dummyClientSecret&&(a=a.set("client_secret",this.dummyClientSecret)),this.customQueryParams)for(let s of Object.getOwnPropertyNames(this.customQueryParams))a=a.set(s,this.customQueryParams[s]);for(let s of Object.keys(r))a=a.set(s,r[s]);return o=o.set("Content-Type","application/x-www-form-urlencoded"),new Promise((s,l)=>{this.http.post(this.tokenEndpoint,a,{headers:o}).subscribe(c=>{this.debug("tokenResponse",c),this.storeAccessTokenResponse(c.access_token,c.refresh_token,c.expires_in||this.fallbackAccessTokenExpirationTimeInSec,c.scope,this.extractRecognizedCustomParameters(c)),this.oidc&&c.id_token&&this.processIdToken(c.id_token,c.access_token).then(d=>{this.storeIdToken(d),s(c)}),this.eventsSubject.next(new Rr("token_received")),s(c)},c=>{this.logger.error("Error performing ${grantType} flow",c),this.eventsSubject.next(new Ui("token_error",c)),l(c)})})}refreshToken(){return this.assertUrlNotNullAndCorrectProtocol(this.tokenEndpoint,"tokenEndpoint"),new Promise((i,r)=>{let o=new Qn({encoder:new Ud}).set("grant_type","refresh_token").set("scope",this.scope).set("refresh_token",this._storage.getItem("refresh_token")),a=new _r().set("Content-Type","application/x-www-form-urlencoded");if(this.useHttpBasicAuth){let s=btoa(`${this.clientId}:${this.dummyClientSecret}`);a=a.set("Authorization","Basic "+s)}if(this.useHttpBasicAuth||(o=o.set("client_id",this.clientId)),!this.useHttpBasicAuth&&this.dummyClientSecret&&(o=o.set("client_secret",this.dummyClientSecret)),this.customQueryParams)for(let s of Object.getOwnPropertyNames(this.customQueryParams))o=o.set(s,this.customQueryParams[s]);this.http.post(this.tokenEndpoint,o,{headers:a}).pipe($e(s=>this.oidc&&s.id_token?Ot(this.processIdToken(s.id_token,s.access_token,!0)).pipe(Be(l=>this.storeIdToken(l)),se(()=>s)):Q(s))).subscribe(s=>{this.debug("refresh tokenResponse",s),this.storeAccessTokenResponse(s.access_token,s.refresh_token,s.expires_in||this.fallbackAccessTokenExpirationTimeInSec,s.scope,this.extractRecognizedCustomParameters(s)),this.eventsSubject.next(new Rr("token_received")),this.eventsSubject.next(new Rr("token_refreshed")),i(s)},s=>{this.logger.error("Error refreshing token",s),this.eventsSubject.next(new Ui("token_refresh_error",s)),r(s)})})}removeSilentRefreshEventListener(){this.silentRefreshPostMessageEventListener&&(window.removeEventListener("message",this.silentRefreshPostMessageEventListener),this.silentRefreshPostMessageEventListener=null)}setupSilentRefreshEventListener(){this.removeSilentRefreshEventListener(),this.silentRefreshPostMessageEventListener=i=>{let r=this.processMessageEventMessage(i);this.checkOrigin&&i.origin!==location.origin&&console.error("wrong origin requested silent refresh!"),this.tryLogin({customHashFragment:r,preventClearHashAfterLogin:!0,customRedirectUri:this.silentRefreshRedirectUri||this.redirectUri}).catch(o=>this.debug("tryLogin during silent refresh failed",o))},window.addEventListener("message",this.silentRefreshPostMessageEventListener)}silentRefresh(i={},r=!0){let o=this.getIdentityClaims()||{};if(this.useIdTokenHintForSilentRefresh&&this.hasValidIdToken()&&(i.id_token_hint=this.getIdToken()),!this.validateUrlForHttps(this.loginUrl))throw new Error("loginUrl must use HTTPS (with TLS), or config value for property 'requireHttps' must be set to 'false' and allow HTTP (without TLS).");if(typeof this.document>"u")throw new Error("silent refresh is not supported on this platform");let a=this.document.getElementById(this.silentRefreshIFrameName);a&&this.document.body.removeChild(a),this.silentRefreshSubject=o.sub;let s=this.document.createElement("iframe");s.id=this.silentRefreshIFrameName,this.setupSilentRefreshEventListener();let l=this.silentRefreshRedirectUri||this.redirectUri;this.createLoginUrl(null,null,l,r,i).then(f=>{s.setAttribute("src",f),this.silentRefreshShowIFrame||(s.style.display="none"),this.document.body.appendChild(s)});let c=this.events.pipe(ce(f=>f instanceof Ui),gn()),d=this.events.pipe(ce(f=>f.type==="token_received"),gn()),m=Q(new Ui("silent_refresh_timeout",null)).pipe(pa(this.silentRefreshTimeout));return Wu([c,d,m]).pipe(se(f=>{if(f instanceof Ui)throw f.type==="silent_refresh_timeout"?this.eventsSubject.next(f):(f=new Ui("silent_refresh_error",f),this.eventsSubject.next(f)),f;return f.type==="token_received"&&(f=new Rr("silently_refreshed"),this.eventsSubject.next(f)),f})).toPromise()}initImplicitFlowInPopup(i){return this.initLoginFlowInPopup(i)}initLoginFlowInPopup(i){return i=i||{},this.createLoginUrl(null,null,this.silentRefreshRedirectUri,!1,{display:"popup"}).then(r=>new Promise((o,a)=>{let l=null;i.windowRef?i.windowRef&&!i.windowRef.closed&&(l=i.windowRef,l.location.href=r):l=window.open(r,"ngx-oauth2-oidc-login",this.calculatePopupFeatures(i));let c,d=w=>{this.tryLogin({customHashFragment:w,preventClearHashAfterLogin:!0,customRedirectUri:this.silentRefreshRedirectUri}).then(()=>{f(),o(!0)},x=>{f(),a(x)})},m=()=>{(!l||l.closed)&&(f(),a(new Ui("popup_closed",{})))};l?c=window.setInterval(m,500):a(new Ui("popup_blocked",{}));let f=()=>{window.clearInterval(c),window.removeEventListener("storage",v),window.removeEventListener("message",b),l!==null&&l.close(),l=null},b=w=>{let x=this.processMessageEventMessage(w);x&&x!==null?(window.removeEventListener("storage",v),d(x)):console.log("false event firing")},v=w=>{w.key==="auth_hash"&&(window.removeEventListener("message",b),d(w.newValue))};window.addEventListener("message",b),window.addEventListener("storage",v)}))}calculatePopupFeatures(i){let r=i.height||470,o=i.width||500,a=window.screenLeft+(window.outerWidth-o)/2,s=window.screenTop+(window.outerHeight-r)/2;return`location=no,toolbar=no,width=${o},height=${r},top=${s},left=${a}`}processMessageEventMessage(i){let r="#";if(this.silentRefreshMessagePrefix&&(r+=this.silentRefreshMessagePrefix),!i||!i.data||typeof i.data!="string")return;let o=i.data;if(o.startsWith(r))return"#"+o.substr(r.length)}canPerformSessionCheck(){return this.sessionChecksEnabled?this.sessionCheckIFrameUrl?this.getSessionState()?!(typeof this.document>"u"):(console.warn("sessionChecksEnabled is activated but there is no session_state"),!1):(console.warn("sessionChecksEnabled is activated but there is no sessionCheckIFrameUrl"),!1):!1}setupSessionCheckEventListener(){this.removeSessionCheckEventListener(),this.sessionCheckEventListener=i=>{let r=i.origin.toLowerCase(),o=this.issuer.toLowerCase();if(this.debug("sessionCheckEventListener"),!o.startsWith(r)){this.debug("sessionCheckEventListener","wrong origin",r,"expected",o,"event",i);return}switch(i.data){case"unchanged":this.ngZone.run(()=>{this.handleSessionUnchanged()});break;case"changed":this.ngZone.run(()=>{this.handleSessionChange()});break;case"error":this.ngZone.run(()=>{this.handleSessionError()});break}this.debug("got info from session check inframe",i)},this.ngZone.runOutsideAngular(()=>{window.addEventListener("message",this.sessionCheckEventListener)})}handleSessionUnchanged(){this.debug("session check","session unchanged"),this.eventsSubject.next(new Ia("session_unchanged"))}handleSessionChange(){this.eventsSubject.next(new Ia("session_changed")),this.stopSessionCheckTimer(),!this.useSilentRefresh&&this.responseType==="code"?this.refreshToken().then(()=>{this.debug("token refresh after session change worked")}).catch(()=>{this.debug("token refresh did not work after session changed"),this.eventsSubject.next(new Ia("session_terminated")),this.logOut(!0)}):this.silentRefreshRedirectUri?(this.silentRefresh().catch(()=>this.debug("silent refresh failed after session changed")),this.waitForSilentRefreshAfterSessionChange()):(this.eventsSubject.next(new Ia("session_terminated")),this.logOut(!0))}waitForSilentRefreshAfterSessionChange(){this.events.pipe(ce(i=>i.type==="silently_refreshed"||i.type==="silent_refresh_timeout"||i.type==="silent_refresh_error"),gn()).subscribe(i=>{i.type!=="silently_refreshed"&&(this.debug("silent refresh did not work after session changed"),this.eventsSubject.next(new Ia("session_terminated")),this.logOut(!0))})}handleSessionError(){this.stopSessionCheckTimer(),this.eventsSubject.next(new Ia("session_error"))}removeSessionCheckEventListener(){this.sessionCheckEventListener&&(window.removeEventListener("message",this.sessionCheckEventListener),this.sessionCheckEventListener=null)}initSessionCheck(){if(!this.canPerformSessionCheck())return;let i=this.document.getElementById(this.sessionCheckIFrameName);i&&this.document.body.removeChild(i);let r=this.document.createElement("iframe");r.id=this.sessionCheckIFrameName,this.setupSessionCheckEventListener();let o=this.sessionCheckIFrameUrl;r.setAttribute("src",o),r.style.display="none",this.document.body.appendChild(r),this.startSessionCheckTimer()}startSessionCheckTimer(){this.stopSessionCheckTimer(),this.ngZone.runOutsideAngular(()=>{this.sessionCheckTimer=setInterval(this.checkSession.bind(this),this.sessionCheckIntervall)})}stopSessionCheckTimer(){this.sessionCheckTimer&&(clearInterval(this.sessionCheckTimer),this.sessionCheckTimer=null)}checkSession(){let i=this.document.getElementById(this.sessionCheckIFrameName);i||this.logger.warn("checkSession did not find iframe",this.sessionCheckIFrameName);let r=this.getSessionState();r||this.stopSessionCheckTimer();let o=this.clientId+" "+r;i.contentWindow.postMessage(o,this.issuer)}createLoginUrl(){return fn(this,arguments,function*(i="",r="",o="",a=!1,s={}){let l=this,c;o?c=o:c=this.redirectUri;let d=yield this.createAndSaveNonce();if(i?i=d+this.config.nonceStateSeparator+encodeURIComponent(i):i=d,!this.requestAccessToken&&!this.oidc)throw new Error("Either requestAccessToken or oidc or both must be true");this.config.responseType?this.responseType=this.config.responseType:this.oidc&&this.requestAccessToken?this.responseType="id_token token":this.oidc&&!this.requestAccessToken?this.responseType="id_token":this.responseType="token";let m=l.loginUrl.indexOf("?")>-1?"&":"?",f=l.scope;this.oidc&&!f.match(/(^|\s)openid($|\s)/)&&(f="openid "+f);let b=l.loginUrl+m+"response_type="+encodeURIComponent(l.responseType)+"&client_id="+encodeURIComponent(l.clientId)+"&state="+encodeURIComponent(i)+"&redirect_uri="+encodeURIComponent(c)+"&scope="+encodeURIComponent(f);if(this.responseType.includes("code")&&!this.disablePKCE){let[v,w]=yield this.createChallangeVerifierPairForPKCE();this.saveNoncesInLocalStorage&&typeof window.localStorage<"u"?localStorage.setItem("PKCE_verifier",w):this._storage.setItem("PKCE_verifier",w),b+="&code_challenge="+v,b+="&code_challenge_method=S256"}r&&(b+="&login_hint="+encodeURIComponent(r)),l.resource&&(b+="&resource="+encodeURIComponent(l.resource)),l.oidc&&(b+="&nonce="+encodeURIComponent(d)),a&&(b+="&prompt=none");for(let v of Object.keys(s))b+="&"+encodeURIComponent(v)+"="+encodeURIComponent(s[v]);if(this.customQueryParams)for(let v of Object.getOwnPropertyNames(this.customQueryParams))b+="&"+v+"="+encodeURIComponent(this.customQueryParams[v]);return b})}initImplicitFlowInternal(i="",r=""){if(this.inImplicitFlow)return;if(this.inImplicitFlow=!0,!this.validateUrlForHttps(this.loginUrl))throw new Error("loginUrl must use HTTPS (with TLS), or config value for property 'requireHttps' must be set to 'false' and allow HTTP (without TLS).");let o={},a=null;typeof r=="string"?a=r:typeof r=="object"&&(o=r),this.createLoginUrl(i,a,null,!1,o).then(this.config.openUri).catch(s=>{console.error("Error in initImplicitFlow",s),this.inImplicitFlow=!1})}initImplicitFlow(i="",r=""){this.loginUrl!==""?this.initImplicitFlowInternal(i,r):this.events.pipe(ce(o=>o.type==="discovery_document_loaded")).subscribe(()=>this.initImplicitFlowInternal(i,r))}resetImplicitFlow(){this.inImplicitFlow=!1}callOnTokenReceivedIfExists(i){let r=this;if(i.onTokenReceived){let o={idClaims:r.getIdentityClaims(),idToken:r.getIdToken(),accessToken:r.getAccessToken(),state:r.state};i.onTokenReceived(o)}}storeAccessTokenResponse(i,r,o,a,s){if(this._storage.setItem("access_token",i),a&&!Array.isArray(a)?this._storage.setItem("granted_scopes",JSON.stringify(a.split(" "))):a&&Array.isArray(a)&&this._storage.setItem("granted_scopes",JSON.stringify(a)),this._storage.setItem("access_token_stored_at",""+this.dateTimeService.now()),o){let l=o*1e3,d=this.dateTimeService.new().getTime()+l;this._storage.setItem("expires_at",""+d)}r&&this._storage.setItem("refresh_token",r),s&&s.forEach((l,c)=>{this._storage.setItem(c,l)})}tryLogin(i=null){return this.config.responseType==="code"?this.tryLoginCodeFlow(i).then(()=>!0):this.tryLoginImplicitFlow(i)}parseQueryString(i){return!i||i.length===0?{}:(i.charAt(0)==="?"&&(i=i.substr(1)),this.urlHelper.parseQueryString(i))}tryLoginCodeFlow(i=null){return fn(this,null,function*(){i=i||{};let r=i.customHashFragment?i.customHashFragment.substring(1):window.location.search,o=this.getCodePartsFromUrl(r),a=o.code,s=o.state,l=o.session_state;if(!i.preventClearHashAfterLogin){let m=location.origin+location.pathname+location.search.replace(/code=[^&$]*/,"").replace(/scope=[^&$]*/,"").replace(/state=[^&$]*/,"").replace(/session_state=[^&$]*/,"").replace(/^\?&/,"?").replace(/&$/,"").replace(/^\?$/,"").replace(/&+/g,"&").replace(/\?&/,"?").replace(/\?$/,"")+location.hash;history.replaceState(null,window.name,m)}let[c,d]=this.parseState(s);if(this.state=d,o.error){this.debug("error trying to login"),this.handleLoginError(i,o);let m=new Ui("code_error",{},o);return this.eventsSubject.next(m),Promise.reject(m)}if(!i.disableNonceCheck){if(!c)return this.saveRequestedRoute(),Promise.resolve();if(!i.disableOAuth2StateCheck&&!this.validateNonce(c)){let f=new Ui("invalid_nonce_in_state",null);return this.eventsSubject.next(f),Promise.reject(f)}}return this.storeSessionState(l),a&&(yield this.getTokenFromCode(a,i),this.restoreRequestedRoute()),Promise.resolve()})}saveRequestedRoute(){this.config.preserveRequestedRoute&&this._storage.setItem("requested_route",window.location.pathname+window.location.search)}restoreRequestedRoute(){let i=this._storage.getItem("requested_route");i&&history.replaceState(null,"",window.location.origin+i)}getCodePartsFromUrl(i){return!i||i.length===0?this.urlHelper.getHashFragmentParams():(i.charAt(0)==="?"&&(i=i.substr(1)),this.urlHelper.parseQueryString(i))}getTokenFromCode(i,r){let o=new Qn({encoder:new Ud}).set("grant_type","authorization_code").set("code",i).set("redirect_uri",r.customRedirectUri||this.redirectUri);if(!this.disablePKCE){let a;this.saveNoncesInLocalStorage&&typeof window.localStorage<"u"?a=localStorage.getItem("PKCE_verifier"):a=this._storage.getItem("PKCE_verifier"),a?o=o.set("code_verifier",a):console.warn("No PKCE verifier found in oauth storage!")}return this.fetchAndProcessToken(o,r)}fetchAndProcessToken(i,r){r=r||{},this.assertUrlNotNullAndCorrectProtocol(this.tokenEndpoint,"tokenEndpoint");let o=new _r().set("Content-Type","application/x-www-form-urlencoded");if(this.useHttpBasicAuth){let a=btoa(`${this.clientId}:${this.dummyClientSecret}`);o=o.set("Authorization","Basic "+a)}return this.useHttpBasicAuth||(i=i.set("client_id",this.clientId)),!this.useHttpBasicAuth&&this.dummyClientSecret&&(i=i.set("client_secret",this.dummyClientSecret)),new Promise((a,s)=>{if(this.customQueryParams)for(let l of Object.getOwnPropertyNames(this.customQueryParams))i=i.set(l,this.customQueryParams[l]);this.http.post(this.tokenEndpoint,i,{headers:o}).subscribe(l=>{this.debug("refresh tokenResponse",l),this.storeAccessTokenResponse(l.access_token,l.refresh_token,l.expires_in||this.fallbackAccessTokenExpirationTimeInSec,l.scope,this.extractRecognizedCustomParameters(l)),this.oidc&&l.id_token?this.processIdToken(l.id_token,l.access_token,r.disableNonceCheck).then(c=>{this.storeIdToken(c),this.eventsSubject.next(new Rr("token_received")),this.eventsSubject.next(new Rr("token_refreshed")),a(l)}).catch(c=>{this.eventsSubject.next(new Ui("token_validation_error",c)),console.error("Error validating tokens"),console.error(c),s(c)}):(this.eventsSubject.next(new Rr("token_received")),this.eventsSubject.next(new Rr("token_refreshed")),a(l))},l=>{console.error("Error getting token",l),this.eventsSubject.next(new Ui("token_error",l)),s(l)})})}tryLoginImplicitFlow(i=null){i=i||{};let r;i.customHashFragment?r=this.urlHelper.getHashFragmentParams(i.customHashFragment):r=this.urlHelper.getHashFragmentParams(),this.debug("parsed url",r);let o=r.state,[a,s]=this.parseState(o);if(this.state=s,r.error){this.debug("error trying to login"),this.handleLoginError(i,r);let f=new Ui("token_error",{},r);return this.eventsSubject.next(f),Promise.reject(f)}let l=r.access_token,c=r.id_token,d=r.session_state,m=r.scope;if(!this.requestAccessToken&&!this.oidc)return Promise.reject("Either requestAccessToken or oidc (or both) must be true.");if(this.requestAccessToken&&!l||this.requestAccessToken&&!i.disableOAuth2StateCheck&&!o||this.oidc&&!c)return Promise.resolve(!1);if(this.sessionChecksEnabled&&!d&&this.logger.warn("session checks (Session Status Change Notification) were activated in the configuration but the id_token does not contain a session_state claim"),this.requestAccessToken&&!i.disableNonceCheck&&!this.validateNonce(a)){let b=new Ui("invalid_nonce_in_state",null);return this.eventsSubject.next(b),Promise.reject(b)}return this.requestAccessToken&&this.storeAccessTokenResponse(l,null,r.expires_in||this.fallbackAccessTokenExpirationTimeInSec,m),this.oidc?this.processIdToken(c,l,i.disableNonceCheck).then(f=>i.validationHandler?i.validationHandler({accessToken:l,idClaims:f.idTokenClaims,idToken:f.idToken,state:o}).then(()=>f):f).then(f=>(this.storeIdToken(f),this.storeSessionState(d),this.clearHashAfterLogin&&!i.preventClearHashAfterLogin&&this.clearLocationHash(),this.eventsSubject.next(new Rr("token_received")),this.callOnTokenReceivedIfExists(i),this.inImplicitFlow=!1,!0)).catch(f=>(this.eventsSubject.next(new Ui("token_validation_error",f)),this.logger.error("Error validating tokens"),this.logger.error(f),Promise.reject(f))):(this.eventsSubject.next(new Rr("token_received")),this.clearHashAfterLogin&&!i.preventClearHashAfterLogin&&this.clearLocationHash(),this.callOnTokenReceivedIfExists(i),Promise.resolve(!0))}parseState(i){let r=i,o="";if(i){let a=i.indexOf(this.config.nonceStateSeparator);a>-1&&(r=i.substr(0,a),o=i.substr(a+this.config.nonceStateSeparator.length))}return[r,o]}validateNonce(i){let r;return this.saveNoncesInLocalStorage&&typeof window.localStorage<"u"?r=localStorage.getItem("nonce"):r=this._storage.getItem("nonce"),r!==i?(console.error("Validating access_token failed, wrong state/nonce.",r,i),!1):!0}storeIdToken(i){this._storage.setItem("id_token",i.idToken),this._storage.setItem("id_token_claims_obj",i.idTokenClaimsJson),this._storage.setItem("id_token_expires_at",""+i.idTokenExpiresAt),this._storage.setItem("id_token_stored_at",""+this.dateTimeService.now())}storeSessionState(i){this._storage.setItem("session_state",i)}getSessionState(){return this._storage.getItem("session_state")}handleLoginError(i,r){i.onLoginError&&i.onLoginError(r),this.clearHashAfterLogin&&!i.preventClearHashAfterLogin&&this.clearLocationHash()}getClockSkewInMsec(i=6e5){return!this.clockSkewInSec&&this.clockSkewInSec!==0?i:this.clockSkewInSec*1e3}processIdToken(i,r,o=!1){let a=i.split("."),s=this.padBase64(a[0]),l=uL(s),c=JSON.parse(l),d=this.padBase64(a[1]),m=uL(d),f=JSON.parse(m),b;if(this.saveNoncesInLocalStorage&&typeof window.localStorage<"u"?b=localStorage.getItem("nonce"):b=this._storage.getItem("nonce"),Array.isArray(f.aud)){if(f.aud.every(W=>W!==this.clientId)){let W="Wrong audience: "+f.aud.join(",");return this.logger.warn(W),Promise.reject(W)}}else if(f.aud!==this.clientId){let W="Wrong audience: "+f.aud;return this.logger.warn(W),Promise.reject(W)}if(!f.sub){let W="No sub claim in id_token";return this.logger.warn(W),Promise.reject(W)}if(this.sessionChecksEnabled&&this.silentRefreshSubject&&this.silentRefreshSubject!==f.sub){let W=`After refreshing, we got an id_token for another user (sub). Expected sub: ${this.silentRefreshSubject}, received sub: ${f.sub}`;return this.logger.warn(W),Promise.reject(W)}if(!f.iat){let W="No iat claim in id_token";return this.logger.warn(W),Promise.reject(W)}if(!this.skipIssuerCheck&&f.iss!==this.issuer){let W="Wrong issuer: "+f.iss;return this.logger.warn(W),Promise.reject(W)}if(!o&&f.nonce!==b){let W="Wrong nonce: "+f.nonce;return this.logger.warn(W),Promise.reject(W)}if(Object.prototype.hasOwnProperty.call(this,"responseType")&&(this.responseType==="code"||this.responseType==="id_token")&&(this.disableAtHashCheck=!0),!this.disableAtHashCheck&&this.requestAccessToken&&!f.at_hash){let W="An at_hash is needed!";return this.logger.warn(W),Promise.reject(W)}let v=this.dateTimeService.now(),w=f.iat*1e3,x=f.exp*1e3,D=this.getClockSkewInMsec();if(w-D>=v||x+D-this.decreaseExpirationBySec<=v){let W="Token has expired";return console.error(W),console.error({now:v,issuedAtMSec:w,expiresAtMSec:x}),Promise.reject(W)}let P={accessToken:r,idToken:i,jwks:this.jwks,idTokenClaims:f,idTokenHeader:c,loadKeys:()=>this.loadJwks()};return this.disableAtHashCheck?this.checkSignature(P).then(()=>({idToken:i,idTokenClaims:f,idTokenClaimsJson:m,idTokenHeader:c,idTokenHeaderJson:l,idTokenExpiresAt:x})):this.checkAtHash(P).then(W=>{if(!this.disableAtHashCheck&&this.requestAccessToken&&!W){let Z="Wrong at_hash";return this.logger.warn(Z),Promise.reject(Z)}return this.checkSignature(P).then(()=>{let Z=!this.disableAtHashCheck,K={idToken:i,idTokenClaims:f,idTokenClaimsJson:m,idTokenHeader:c,idTokenHeaderJson:l,idTokenExpiresAt:x};return Z?this.checkAtHash(P).then(re=>{if(this.requestAccessToken&&!re){let Ee="Wrong at_hash";return this.logger.warn(Ee),Promise.reject(Ee)}else return K}):K})})}getIdentityClaims(){let i=this._storage.getItem("id_token_claims_obj");return i?JSON.parse(i):null}getGrantedScopes(){let i=this._storage.getItem("granted_scopes");return i?JSON.parse(i):null}getIdToken(){return this._storage?this._storage.getItem("id_token"):null}padBase64(i){for(;i.length%4!==0;)i+="=";return i}getAccessToken(){return this._storage?this._storage.getItem("access_token"):null}getRefreshToken(){return this._storage?this._storage.getItem("refresh_token"):null}getAccessTokenExpiration(){return this._storage.getItem("expires_at")?parseInt(this._storage.getItem("expires_at"),10):null}getAccessTokenStoredAt(){return parseInt(this._storage.getItem("access_token_stored_at"),10)}getIdTokenStoredAt(){return parseInt(this._storage.getItem("id_token_stored_at"),10)}getIdTokenExpiration(){return this._storage.getItem("id_token_expires_at")?parseInt(this._storage.getItem("id_token_expires_at"),10):null}hasValidAccessToken(){if(this.getAccessToken()){let i=this._storage.getItem("expires_at"),r=this.dateTimeService.new();return!(i&&parseInt(i,10)-this.decreaseExpirationBySec=0&&this._storage.getItem(i)!==null?JSON.parse(this._storage.getItem(i)):null}authorizationHeader(){return"Bearer "+this.getAccessToken()}logOut(i={},r=""){let o=!1;typeof i=="boolean"&&(o=i,i={});let a=this.getIdToken();if(this._storage.removeItem("access_token"),this._storage.removeItem("id_token"),this._storage.removeItem("refresh_token"),this.saveNoncesInLocalStorage?(localStorage.removeItem("nonce"),localStorage.removeItem("PKCE_verifier")):(this._storage.removeItem("nonce"),this._storage.removeItem("PKCE_verifier")),this._storage.removeItem("expires_at"),this._storage.removeItem("id_token_claims_obj"),this._storage.removeItem("id_token_expires_at"),this._storage.removeItem("id_token_stored_at"),this._storage.removeItem("access_token_stored_at"),this._storage.removeItem("granted_scopes"),this._storage.removeItem("session_state"),this.config.customTokenParameters&&this.config.customTokenParameters.forEach(l=>this._storage.removeItem(l)),this.silentRefreshSubject=null,this.eventsSubject.next(new Ia("logout")),!this.logoutUrl||o)return;let s;if(!this.validateUrlForHttps(this.logoutUrl))throw new Error("logoutUrl must use HTTPS (with TLS), or config value for property 'requireHttps' must be set to 'false' and allow HTTP (without TLS).");if(this.logoutUrl.indexOf("{{")>-1)s=this.logoutUrl.replace(/\{\{id_token\}\}/,encodeURIComponent(a)).replace(/\{\{client_id\}\}/,encodeURIComponent(this.clientId));else{let l=new Qn({encoder:new Ud});a&&(l=l.set("id_token_hint",a));let c=this.postLogoutRedirectUri||this.redirectUriAsPostLogoutRedirectUriFallback&&this.redirectUri||"";c&&(l=l.set("post_logout_redirect_uri",c),r&&(l=l.set("state",r)));for(let d in i)l=l.set(d,i[d]);s=this.logoutUrl+(this.logoutUrl.indexOf("?")>-1?"&":"?")+l.toString()}this.config.openUri(s)}createAndSaveNonce(){let i=this;return this.createNonce().then(function(r){return i.saveNoncesInLocalStorage&&typeof window.localStorage<"u"?localStorage.setItem("nonce",r):i._storage.setItem("nonce",r),r})}ngOnDestroy(){this.clearAccessTokenTimer(),this.clearIdTokenTimer(),this.removeSilentRefreshEventListener();let i=this.document.getElementById(this.silentRefreshIFrameName);i&&i.remove(),this.stopSessionCheckTimer(),this.removeSessionCheckEventListener();let r=this.document.getElementById(this.sessionCheckIFrameName);r&&r.remove()}createNonce(){return new Promise(i=>{if(this.rngUrl)throw new Error("createNonce with rng-web-api has not been implemented so far");let r="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-._~",o=45,a="",s=typeof self>"u"?null:self.crypto||self.msCrypto;if(s){let l=new Uint8Array(o);s.getRandomValues(l),l.map||(l.map=Array.prototype.map),l=l.map(c=>r.charCodeAt(c%r.length)),a=String.fromCharCode.apply(null,l)}else for(;0o.type==="discovery_document_loaded")).subscribe(()=>this.initCodeFlowInternal(i,r))}initCodeFlowInternal(i="",r={}){if(!this.validateUrlForHttps(this.loginUrl))throw new Error("loginUrl must use HTTPS (with TLS), or config value for property 'requireHttps' must be set to 'false' and allow HTTP (without TLS).");let o={},a=null;typeof r=="string"?a=r:typeof r=="object"&&(o=r),this.createLoginUrl(i,a,null,!1,o).then(this.config.openUri).catch(s=>{console.error("Error in initAuthorizationCodeFlow"),console.error(s)})}createChallangeVerifierPairForPKCE(){return fn(this,null,function*(){if(!this.crypto)throw new Error("PKCE support for code flow needs a CryptoHander. Did you import the OAuthModule using forRoot() ?");let i=yield this.createNonce(),r=yield this.crypto.calcHash(i,"sha-256");return[mL(r),i]})}extractRecognizedCustomParameters(i){let r=new Map;return this.config.customTokenParameters&&this.config.customTokenParameters.forEach(o=>{i[o]&&r.set(o,JSON.stringify(i[o]))}),r}revokeTokenAndLogout(i={},r=!1){let o=this.revocationEndpoint,a=this.getAccessToken(),s=this.getRefreshToken();if(!a)return Promise.resolve();let l=new Qn({encoder:new Ud}),c=new _r().set("Content-Type","application/x-www-form-urlencoded");if(this.useHttpBasicAuth){let d=btoa(`${this.clientId}:${this.dummyClientSecret}`);c=c.set("Authorization","Basic "+d)}if(this.useHttpBasicAuth||(l=l.set("client_id",this.clientId)),!this.useHttpBasicAuth&&this.dummyClientSecret&&(l=l.set("client_secret",this.dummyClientSecret)),this.customQueryParams)for(let d of Object.getOwnPropertyNames(this.customQueryParams))l=l.set(d,this.customQueryParams[d]);return new Promise((d,m)=>{let f,b;if(a){let v=l.set("token",a).set("token_type_hint","access_token");f=this.http.post(o,v,{headers:c})}else f=Q(null);if(s){let v=l.set("token",s).set("token_type_hint","refresh_token");b=this.http.post(o,v,{headers:c})}else b=Q(null);r&&(f=f.pipe(fi(v=>v.status===0?Q(null):Wn(v))),b=b.pipe(fi(v=>v.status===0?Q(null):Wn(v)))),co([f,b]).subscribe(v=>{this.logOut(i),d(v),this.logger.info("Token successfully revoked")},v=>{this.logger.error("Error revoking token",v),this.eventsSubject.next(new Ui("token_revoke_error",v)),m(v)})})}clearLocationHash(){location.hash!=""&&(location.hash="")}};n.\u0275fac=function(r){return new(r||n)(pe(ae),pe(Yr),pe(A0,8),pe(O0,8),pe($m,8),pe(hL),pe(I0),pe(R0,8),pe(ge),pe(jf))},n.\u0275prov=O({token:n,factory:n.\u0275fac});let t=n;return t})(),P0=class{},mk=class{handleError(n){return Wn(n)}},BK=(()=>{let n=class n{constructor(i,r,o){this.oAuthService=i,this.errorHandler=r,this.moduleConfig=o}checkUrl(i){return this.moduleConfig.resourceServer.customUrlValidation?this.moduleConfig.resourceServer.customUrlValidation(i):this.moduleConfig.resourceServer.allowedUrls?!!this.moduleConfig.resourceServer.allowedUrls.find(r=>i.toLowerCase().startsWith(r.toLowerCase())):!0}intercept(i,r){let o=i.url.toLowerCase();return!this.moduleConfig||!this.moduleConfig.resourceServer||!this.checkUrl(o)?r.handle(i):this.moduleConfig.resourceServer.sendAccessToken?Je(Q(this.oAuthService.getAccessToken()).pipe(ce(s=>!!s)),this.oAuthService.events.pipe(ce(s=>s.type==="token_received"),Gw(this.oAuthService.waitForTokenInMsec||0),fi(()=>Q(null)),se(()=>this.oAuthService.getAccessToken()))).pipe(lt(1),Mt(s=>{if(s){let l="Bearer "+s,c=i.headers.set("Authorization",l);i=i.clone({headers:c})}return r.handle(i).pipe(fi(l=>this.errorHandler.handleError(l)))})):r.handle(i).pipe(fi(s=>this.errorHandler.handleError(s)))}};n.\u0275fac=function(r){return new(r||n)(pe(Wm),pe(P0),pe(T0,8))},n.\u0275prov=O({token:n,factory:n.\u0275fac});let t=n;return t})();function jK(){return console}function HK(){return typeof sessionStorage<"u"?sessionStorage:new OK}function fL(t=null,n=dk){return zr([Wm,hL,{provide:I0,useFactory:jK},{provide:A0,useFactory:HK},{provide:O0,useClass:n},{provide:R0,useClass:VK},{provide:P0,useClass:mk},{provide:T0,useValue:t},{provide:E1,useClass:BK,multi:!0},{provide:jf,useClass:AK}])}var zK=["mat-internal-form-field",""],UK=["*"],Gm=(()=>{class t{labelPosition;static \u0275fac=function(i){return new(i||t)};static \u0275cmp=E({type:t,selectors:[["div","mat-internal-form-field",""]],hostAttrs:[1,"mdc-form-field","mat-internal-form-field"],hostVars:2,hostBindings:function(i,r){i&2&&G("mdc-form-field--align-end",r.labelPosition==="before")},inputs:{labelPosition:"labelPosition"},attrs:zK,ngContentSelectors:UK,decls:1,vars:0,template:function(i,r){i&1&&(Me(),oe(0))},styles:[`.mat-internal-form-field{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;display:inline-flex;align-items:center;vertical-align:middle}.mat-internal-form-field>label{margin-left:0;margin-right:auto;padding-left:4px;padding-right:0;order:0}[dir=rtl] .mat-internal-form-field>label{margin-left:auto;margin-right:0;padding-left:0;padding-right:4px}.mdc-form-field--align-end>label{margin-left:auto;margin-right:0;padding-left:0;padding-right:4px;order:-1}[dir=rtl] .mdc-form-field--align-end .mdc-form-field--align-end label{margin-left:0;margin-right:auto;padding-left:4px;padding-right:0} -`],encapsulation:2,changeDetection:0})}return t})();var hk;try{hk=typeof Intl<"u"&&Intl.v8BreakIterator}catch{hk=!1}var qe=(()=>{class t{_platformId=u(Ks);isBrowser=this._platformId?z2(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||hk)&&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(i){return new(i||t)};static \u0275prov=O({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();function al(t){return Array.isArray(t)?t:[t]}var gL=new Set,$d,qm=(()=>{class t{_platform=u(qe);_nonce=u(gm,{optional:!0});_matchMedia;constructor(){this._matchMedia=this._platform.isBrowser&&window.matchMedia?window.matchMedia.bind(window):WK}matchMedia(e){return(this._platform.WEBKIT||this._platform.BLINK)&&$K(e,this._nonce),this._matchMedia(e)}static \u0275fac=function(i){return new(i||t)};static \u0275prov=O({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();function $K(t,n){if(!gL.has(t))try{$d||($d=document.createElement("style"),n&&$d.setAttribute("nonce",n),$d.setAttribute("type","text/css"),document.head.appendChild($d)),$d.sheet&&($d.sheet.insertRule(`@media ${t} {body{ }}`,0),gL.add(t))}catch(e){console.error(e)}}function WK(t){return{matches:t==="all"||t==="",media:t,addListener:()=>{},removeListener:()=>{}}}var sl=(()=>{class t{_mediaMatcher=u(qm);_zone=u(ae);_queries=new Map;_destroySubject=new z;constructor(){}ngOnDestroy(){this._destroySubject.next(),this._destroySubject.complete()}isMatched(e){return _L(al(e)).some(r=>this._registerQuery(r).mql.matches)}observe(e){let r=_L(al(e)).map(a=>this._registerQuery(a).observable),o=co(r);return o=mo(o.pipe(lt(1)),o.pipe(Ya(1),Rt(0))),o.pipe(se(a=>{let s={matches:!1,breakpoints:{}};return a.forEach(({matches:l,query:c})=>{s.matches=s.matches||l,s.breakpoints[c]=l}),s}))}_registerQuery(e){if(this._queries.has(e))return this._queries.get(e);let i=this._mediaMatcher.matchMedia(e),o={observable:new Fe(a=>{let s=l=>this._zone.run(()=>a.next(l));return i.addListener(s),()=>{i.removeListener(s)}}).pipe(He(i),se(({matches:a})=>({query:e,matches:a})),Te(this._destroySubject)),mql:i};return this._queries.set(e,o),o}static \u0275fac=function(i){return new(i||t)};static \u0275prov=O({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();function _L(t){return t.map(n=>n.split(",")).reduce((n,e)=>n.concat(e)).map(n=>n.trim())}var F0={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 GK=new T("MATERIAL_ANIMATIONS");var bL=null;function pk(){return u(GK,{optional:!0})?.animationsDisabled||u(Yp,{optional:!0})==="NoopAnimations"?"di-disabled":(bL??=u(qm).matchMedia("(prefers-reduced-motion)").matches,bL?"reduced-motion":"enabled")}function Ye(){return pk()!=="enabled"}function Wd(t){return t.buttons===0||t.detail===0}function Gd(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 fk;function vL(){if(fk==null){let t=typeof document<"u"?document.head:null;fk=!!(t&&(t.createShadowRoot||t.attachShadow))}return fk}function gk(t){if(vL()){let n=t.getRootNode?t.getRootNode():null;if(typeof ShadowRoot<"u"&&ShadowRoot&&n instanceof ShadowRoot)return n}return null}function _o(){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 Kn(t){return t.composedPath?t.composedPath()[0]:t.target}var zf;function yL(){if(zf==null&&typeof window<"u")try{window.addEventListener("test",null,Object.defineProperty({},"passive",{get:()=>zf=!0}))}finally{zf=zf||!1}return zf}function rc(t){return yL()?t:!!t.capture}function Ln(t,n=0){return N0(t)?Number(t):arguments.length===2?n:0}function N0(t){return!isNaN(parseFloat(t))&&!isNaN(Number(t))}function Pr(t){return t instanceof q?t.nativeElement:t}var xL=new T("cdk-input-modality-detector-options"),CL={ignoreKeys:[18,17,224,91,16]},wL=650,_k={passive:!0,capture:!0},DL=(()=>{class t{_platform=u(qe);_listenerCleanups;modalityDetected;modalityChanged;get mostRecentModality(){return this._modality.value}_mostRecentTarget=null;_modality=new tt(null);_options;_lastTouchMs=0;_onKeydown=e=>{this._options?.ignoreKeys?.some(i=>i===e.keyCode)||(this._modality.next("keyboard"),this._mostRecentTarget=Kn(e))};_onMousedown=e=>{Date.now()-this._lastTouchMs{if(Gd(e)){this._modality.next("keyboard");return}this._lastTouchMs=Date.now(),this._modality.next("touch"),this._mostRecentTarget=Kn(e)};constructor(){let e=u(ae),i=u(ge),r=u(xL,{optional:!0});if(this._options=M(M({},CL),r),this.modalityDetected=this._modality.pipe(Ya(1)),this.modalityChanged=this.modalityDetected.pipe(Sn()),this._platform.isBrowser){let o=u(cn).createRenderer(null,null);this._listenerCleanups=e.runOutsideAngular(()=>[o.listen(i,"keydown",this._onKeydown,_k),o.listen(i,"mousedown",this._onMousedown,_k),o.listen(i,"touchstart",this._onTouchstart,_k)])}}ngOnDestroy(){this._modality.complete(),this._listenerCleanups?.forEach(e=>e())}static \u0275fac=function(i){return new(i||t)};static \u0275prov=O({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),Uf=(function(t){return t[t.IMMEDIATE=0]="IMMEDIATE",t[t.EVENTUAL=1]="EVENTUAL",t})(Uf||{}),EL=new T("cdk-focus-monitor-default-options"),L0=rc({passive:!0,capture:!0}),Yt=(()=>{class t{_ngZone=u(ae);_platform=u(qe);_inputModalityDetector=u(DL);_origin=null;_lastFocusOrigin;_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=u(ge);_stopInputModalityDetector=new z;constructor(){let e=u(EL,{optional:!0});this._detectionMode=e?.detectionMode||Uf.IMMEDIATE}_rootNodeFocusAndBlurListener=e=>{let i=Kn(e);for(let r=i;r;r=r.parentElement)e.type==="focus"?this._onFocus(e,r):this._onBlur(e,r)};monitor(e,i=!1){let r=Pr(e);if(!this._platform.isBrowser||r.nodeType!==1)return Q();let o=gk(r)||this._document,a=this._elementInfo.get(r);if(a)return i&&(a.checkChildren=!0),a.subject;let s={checkChildren:i,subject:new z,rootNode:o};return this._elementInfo.set(r,s),this._registerGlobalListeners(s),s.subject}stopMonitoring(e){let i=Pr(e),r=this._elementInfo.get(i);r&&(r.subject.complete(),this._setClasses(i),this._elementInfo.delete(i),this._removeGlobalListeners(r))}focusVia(e,i,r){let o=Pr(e),a=this._document.activeElement;o===a?this._getClosestElementsInfo(o).forEach(([s,l])=>this._originChanged(s,i,l)):(this._setOrigin(i),typeof o.focus=="function"&&o.focus(r))}ngOnDestroy(){this._elementInfo.forEach((e,i)=>this.stopMonitoring(i))}_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===Uf.EVENTUAL||!!e?.contains(this._inputModalityDetector._mostRecentTarget)}_setClasses(e,i){e.classList.toggle("cdk-focused",!!i),e.classList.toggle("cdk-touch-focused",i==="touch"),e.classList.toggle("cdk-keyboard-focused",i==="keyboard"),e.classList.toggle("cdk-mouse-focused",i==="mouse"),e.classList.toggle("cdk-program-focused",i==="program")}_setOrigin(e,i=!1){this._ngZone.runOutsideAngular(()=>{if(this._origin=e,this._originFromTouchInteraction=e==="touch"&&i,this._detectionMode===Uf.IMMEDIATE){clearTimeout(this._originTimeoutId);let r=this._originFromTouchInteraction?wL:1;this._originTimeoutId=setTimeout(()=>this._origin=null,r)}})}_onFocus(e,i){let r=this._elementInfo.get(i),o=Kn(e);!r||!r.checkChildren&&i!==o||this._originChanged(i,this._getFocusOrigin(o),r)}_onBlur(e,i){let r=this._elementInfo.get(i);!r||r.checkChildren&&e.relatedTarget instanceof Node&&i.contains(e.relatedTarget)||(this._setClasses(i),this._emitOrigin(r,null))}_emitOrigin(e,i){e.subject.observers.length&&this._ngZone.run(()=>e.subject.next(i))}_registerGlobalListeners(e){if(!this._platform.isBrowser)return;let i=e.rootNode,r=this._rootNodeFocusListenerCount.get(i)||0;r||this._ngZone.runOutsideAngular(()=>{i.addEventListener("focus",this._rootNodeFocusAndBlurListener,L0),i.addEventListener("blur",this._rootNodeFocusAndBlurListener,L0)}),this._rootNodeFocusListenerCount.set(i,r+1),++this._monitoredElementCount===1&&(this._ngZone.runOutsideAngular(()=>{this._getWindow().addEventListener("focus",this._windowFocusListener)}),this._inputModalityDetector.modalityDetected.pipe(Te(this._stopInputModalityDetector)).subscribe(o=>{this._setOrigin(o,!0)}))}_removeGlobalListeners(e){let i=e.rootNode;if(this._rootNodeFocusListenerCount.has(i)){let r=this._rootNodeFocusListenerCount.get(i);r>1?this._rootNodeFocusListenerCount.set(i,r-1):(i.removeEventListener("focus",this._rootNodeFocusAndBlurListener,L0),i.removeEventListener("blur",this._rootNodeFocusAndBlurListener,L0),this._rootNodeFocusListenerCount.delete(i))}--this._monitoredElementCount||(this._getWindow().removeEventListener("focus",this._windowFocusListener),this._stopInputModalityDetector.next(),clearTimeout(this._windowFocusTimeoutId),clearTimeout(this._originTimeoutId))}_originChanged(e,i,r){this._setClasses(e,i),this._emitOrigin(r,i),this._lastFocusOrigin=i}_getClosestElementsInfo(e){let i=[];return this._elementInfo.forEach((r,o)=>{(o===e||r.checkChildren&&o.contains(e))&&i.push([o,r])}),i}_isLastInteractionFromInputLabel(e){let{_mostRecentTarget:i,mostRecentModality:r}=this._inputModalityDetector;if(r!=="mouse"||!i||i===e||e.nodeName!=="INPUT"&&e.nodeName!=="TEXTAREA"||e.disabled)return!1;let o=e.labels;if(o){for(let a=0;a{class t{_elementRef=u(q);_focusMonitor=u(Yt);_monitorSubscription;_focusOrigin=null;cdkFocusChange=new U;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(i=>{this._focusOrigin=i,this.cdkFocusChange.emit(i)})}ngOnDestroy(){this._focusMonitor.stopMonitoring(this._elementRef),this._monitorSubscription&&this._monitorSubscription.unsubscribe()}static \u0275fac=function(i){return new(i||t)};static \u0275dir=F({type:t,selectors:[["","cdkMonitorElementFocus",""],["","cdkMonitorSubtreeFocus",""]],outputs:{cdkFocusChange:"cdkFocusChange"},exportAs:["cdkMonitorFocus"]})}return t})();var V0=new WeakMap,ut=(()=>{class t{_appRef;_injector=u(de);_environmentInjector=u(Wt);load(e){let i=this._appRef=this._appRef||this._injector.get(Gn),r=V0.get(i);r||(r={loaders:new Set,refs:[]},V0.set(i,r),i.onDestroy(()=>{V0.get(i)?.refs.forEach(o=>o.destroy()),V0.delete(i)})),r.loaders.has(e)||(r.loaders.add(e),r.refs.push(Mm(e,{environmentInjector:this._environmentInjector})))}static \u0275fac=function(i){return new(i||t)};static \u0275prov=O({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();var Qr=(()=>{class t{static \u0275fac=function(i){return new(i||t)};static \u0275cmp=E({type:t,selectors:[["ng-component"]],exportAs:["cdkVisuallyHidden"],decls:0,vars:0,template:function(i,r){},styles:[`.cdk-visually-hidden{border:0;clip:rect(0 0 0 0);height:1px;margin:-1px;overflow:hidden;padding:0;position:absolute;width:1px;white-space:nowrap;outline:0;-webkit-appearance:none;-moz-appearance:none;left:0}[dir=rtl] .cdk-visually-hidden{left:auto;right:0} -`],encapsulation:2,changeDetection:0})}return t})();function qK(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(i){return new(i||t)};static \u0275prov=O({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),kL=(()=>{class t{_mutationObserverFactory=u(ML);_observedElements=new Map;_ngZone=u(ae);constructor(){}ngOnDestroy(){this._observedElements.forEach((e,i)=>this._cleanupObserver(i))}observe(e){let i=Pr(e);return new Fe(r=>{let a=this._observeElement(i).pipe(se(s=>s.filter(l=>!qK(l))),ce(s=>!!s.length)).subscribe(s=>{this._ngZone.run(()=>{r.next(s)})});return()=>{a.unsubscribe(),this._unobserveElement(i)}})}_observeElement(e){return this._ngZone.runOutsideAngular(()=>{if(this._observedElements.has(e))this._observedElements.get(e).count++;else{let i=new z,r=this._mutationObserverFactory.create(o=>i.next(o));r&&r.observe(e,{characterData:!0,childList:!0,subtree:!0}),this._observedElements.set(e,{observer:r,stream:i,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:i,stream:r}=this._observedElements.get(e);i&&i.disconnect(),r.complete(),this._observedElements.delete(e)}}static \u0275fac=function(i){return new(i||t)};static \u0275prov=O({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),Wf=(()=>{class t{_contentObserver=u(kL);_elementRef=u(q);event=new U;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=Ln(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(Rt(this.debounce)):e).subscribe(this.event)}_unsubscribe(){this._currentSubscription?.unsubscribe()}static \u0275fac=function(i){return new(i||t)};static \u0275dir=F({type:t,selectors:[["","cdkObserveContent",""]],inputs:{disabled:[2,"cdkObserveContentDisabled","disabled",V],debounce:"debounce"},outputs:{event:"cdkObserveContent"},exportAs:["cdkObserveContent"]})}return t})(),Ym=(()=>{class t{static \u0275fac=function(i){return new(i||t)};static \u0275mod=ee({type:t});static \u0275inj=J({providers:[ML]})}return t})();var ac=(()=>{class t{_platform=u(qe);constructor(){}isDisabled(e){return e.hasAttribute("disabled")}isVisible(e){return QK(e)&&getComputedStyle(e).visibility==="visible"}isTabbable(e){if(!this._platform.isBrowser)return!1;let i=YK(nZ(e));if(i&&(SL(i)===-1||!this.isVisible(i)))return!1;let r=e.nodeName.toLowerCase(),o=SL(e);return e.hasAttribute("contenteditable")?o!==-1:r==="iframe"||r==="object"||this._platform.WEBKIT&&this._platform.IOS&&!tZ(e)?!1:r==="audio"?e.hasAttribute("controls")?o!==-1:!1:r==="video"?o===-1?!1:o!==null?!0:this._platform.FIREFOX||e.hasAttribute("controls"):e.tabIndex>=0}isFocusable(e,i){return iZ(e)&&!this.isDisabled(e)&&(i?.ignoreVisibility||this.isVisible(e))}static \u0275fac=function(i){return new(i||t)};static \u0275prov=O({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();function YK(t){try{return t.frameElement}catch{return null}}function QK(t){return!!(t.offsetWidth||t.offsetHeight||typeof t.getClientRects=="function"&&t.getClientRects().length)}function KK(t){let n=t.nodeName.toLowerCase();return n==="input"||n==="select"||n==="button"||n==="textarea"}function ZK(t){return JK(t)&&t.type=="hidden"}function XK(t){return eZ(t)&&t.hasAttribute("href")}function JK(t){return t.nodeName.toLowerCase()=="input"}function eZ(t){return t.nodeName.toLowerCase()=="a"}function AL(t){if(!t.hasAttribute("tabindex")||t.tabIndex===void 0)return!1;let n=t.getAttribute("tabindex");return!!(n&&!isNaN(parseInt(n,10)))}function SL(t){if(!AL(t))return null;let n=parseInt(t.getAttribute("tabindex")||"",10);return isNaN(n)?-1:n}function tZ(t){let n=t.nodeName.toLowerCase(),e=n==="input"&&t.type;return e==="text"||e==="password"||n==="select"||n==="textarea"}function iZ(t){return ZK(t)?!1:KK(t)||XK(t)||t.hasAttribute("contenteditable")||AL(t)}function nZ(t){return t.ownerDocument&&t.ownerDocument.defaultView||window}var B0=class{_element;_checker;_ngZone;_document;_injector;_startAnchor;_endAnchor;_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,i,r,o=!1,a){this._element=n,this._checker=e,this._ngZone=i,this._document=r,this._injector=a,o||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 i=this._getFirstTabbableElement(e);return i?.focus(n),!!i}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 i=0;i=0;i--){let r=e[i].nodeType===this._document.ELEMENT_NODE?this._getLastTabbableElement(e[i]):null;if(r)return r}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?pt(n,{injector:this._injector}):setTimeout(n)}},Qm=(()=>{class t{_checker=u(ac);_ngZone=u(ae);_document=u(ge);_injector=u(de);constructor(){u(ut).load(Qr)}create(e,i=!1){return new B0(e,this._checker,this._ngZone,this._document,i,this._injector)}static \u0275fac=function(i){return new(i||t)};static \u0275prov=O({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),vk=(()=>{class t{_elementRef=u(q);_focusTrapFactory=u(Qm);focusTrap;_previouslyFocusedElement=null;get enabled(){return this.focusTrap?.enabled||!1}set enabled(e){this.focusTrap&&(this.focusTrap.enabled=e)}autoCapture;constructor(){u(qe).isBrowser&&(this.focusTrap=this._focusTrapFactory.create(this._elementRef.nativeElement,!0))}ngOnDestroy(){this.focusTrap?.destroy(),this._previouslyFocusedElement&&(this._previouslyFocusedElement.focus(),this._previouslyFocusedElement=null)}ngAfterContentInit(){this.focusTrap?.attachAnchors(),this.autoCapture&&this._captureFocus()}ngDoCheck(){this.focusTrap&&!this.focusTrap.hasAttached()&&this.focusTrap.attachAnchors()}ngOnChanges(e){let i=e.autoCapture;i&&!i.firstChange&&this.autoCapture&&this.focusTrap?.hasAttached()&&this._captureFocus()}_captureFocus(){this._previouslyFocusedElement=_o(),this.focusTrap?.focusInitialElementWhenReady()}static \u0275fac=function(i){return new(i||t)};static \u0275dir=F({type:t,selectors:[["","cdkTrapFocus",""]],inputs:{enabled:[2,"cdkTrapFocus","enabled",V],autoCapture:[2,"cdkTrapFocusAutoCapture","autoCapture",V]},exportAs:["cdkTrapFocus"],features:[Ae]})}return t})(),OL=new T("liveAnnouncerElement",{providedIn:"root",factory:RL});function RL(){return null}var PL=new T("LIVE_ANNOUNCER_DEFAULT_OPTIONS"),rZ=0,Gf=(()=>{class t{_ngZone=u(ae);_defaultOptions=u(PL,{optional:!0});_liveElement;_document=u(ge);_previousTimeout;_currentPromise;_currentResolve;constructor(){let e=u(OL,{optional:!0});this._liveElement=e||this._createLiveElement()}announce(e,...i){let r=this._defaultOptions,o,a;return i.length===1&&typeof i[0]=="number"?a=i[0]:[o,a]=i,this.clear(),clearTimeout(this._previousTimeout),o||(o=r&&r.politeness?r.politeness:"polite"),a==null&&r&&(a=r.duration),this._liveElement.setAttribute("aria-live",o),this._liveElement.id&&this._exposeAnnouncerToModals(this._liveElement.id),this._ngZone.runOutsideAngular(()=>(this._currentPromise||(this._currentPromise=new Promise(s=>this._currentResolve=s)),clearTimeout(this._previousTimeout),this._previousTimeout=setTimeout(()=>{this._liveElement.textContent=e,typeof a=="number"&&(this._previousTimeout=setTimeout(()=>this.clear(),a)),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",i=this._document.getElementsByClassName(e),r=this._document.createElement("div");for(let o=0;o .cdk-overlay-container [aria-modal="true"]');for(let r=0;r{class t{_platform=u(qe);_hasCheckedHighContrastMode;_document=u(ge);_breakpointSubscription;constructor(){this._breakpointSubscription=u(sl).observe("(forced-colors: active)").subscribe(()=>{this._hasCheckedHighContrastMode&&(this._hasCheckedHighContrastMode=!1,this._applyBodyHighContrastModeCssClasses())})}getHighContrastMode(){if(!this._platform.isBrowser)return oc.NONE;let e=this._document.createElement("div");e.style.backgroundColor="rgb(1,2,3)",e.style.position="absolute",this._document.body.appendChild(e);let i=this._document.defaultView||window,r=i&&i.getComputedStyle?i.getComputedStyle(e):null,o=(r&&r.backgroundColor||"").replace(/ /g,"");switch(e.remove(),o){case"rgb(0,0,0)":case"rgb(45,50,54)":case"rgb(32,32,32)":return oc.WHITE_ON_BLACK;case"rgb(255,255,255)":case"rgb(255,250,239)":return oc.BLACK_ON_WHITE}return oc.NONE}ngOnDestroy(){this._breakpointSubscription.unsubscribe()}_applyBodyHighContrastModeCssClasses(){if(!this._hasCheckedHighContrastMode&&this._platform.isBrowser&&this._document.body){let e=this._document.body.classList;e.remove(bk,TL,IL),this._hasCheckedHighContrastMode=!0;let i=this.getHighContrastMode();i===oc.BLACK_ON_WHITE?e.add(bk,TL):i===oc.WHITE_ON_BLACK&&e.add(bk,IL)}}static \u0275fac=function(i){return new(i||t)};static \u0275prov=O({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),ll=(()=>{class t{constructor(){u(j0)._applyBodyHighContrastModeCssClasses()}static \u0275fac=function(i){return new(i||t)};static \u0275mod=ee({type:t});static \u0275inj=J({imports:[Ym]})}return t})();var yk={},Ze=(()=>{class t{_appId=u(ql);getId(e){return this._appId!=="ng"&&(e+=this._appId),yk.hasOwnProperty(e)||(yk[e]=0),`${e}${yk[e]++}`}static \u0275fac=function(i){return new(i||t)};static \u0275prov=O({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();var oZ=200,H0=class{_letterKeyStream=new z;_items=[];_selectedItemIndex=-1;_pressedLetters=[];_skipPredicateFn;_selectedItem=new z;selectedItem=this._selectedItem;constructor(n,e){let i=typeof e?.debounceInterval=="number"?e.debounceInterval:oZ;e?.skipPredicate&&(this._skipPredicateFn=e.skipPredicate),this.setItems(n),this._setupKeyHandler(i)}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)),Rt(n),ce(()=>this._pressedLetters.length>0),se(()=>this._pressedLetters.join("").toLocaleUpperCase())).subscribe(e=>{for(let i=1;it[e]):t.altKey||t.shiftKey||t.ctrlKey||t.metaKey}var Km=class{_items;_activeItemIndex=he(-1);_activeItem=he(null);_wrap=!1;_typeaheadSubscription=ke.EMPTY;_itemChangesSubscription;_vertical=!0;_horizontal;_allowedModifierKeys=[];_homeAndEnd=!1;_pageUpAndDown={enabled:!1,delta:10};_effectRef;_typeahead;_skipPredicateFn=n=>n.disabled;constructor(n,e){this._items=n,n instanceof pr?this._itemChangesSubscription=n.changes.subscribe(i=>this._itemsChanged(i.toArray())):is(n)&&(this._effectRef=Ar(()=>this._itemsChanged(n()),{injector:e}))}tabOut=new z;change=new z;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 H0(e,{debounceInterval:typeof n=="number"?n:void 0,skipPredicate:i=>this._skipPredicateFn(i)}),this._typeaheadSubscription=this._typeahead.selectedItem.subscribe(i=>{this.setActiveItem(i)}),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,r=["altKey","ctrlKey","metaKey","shiftKey"].every(o=>!n[o]||this._allowedModifierKeys.indexOf(o)>-1);switch(e){case 9:this.tabOut.next();return;case 40:if(this._vertical&&r){this.setNextItemActive();break}else return;case 38:if(this._vertical&&r){this.setPreviousItemActive();break}else return;case 39:if(this._horizontal&&r){this._horizontal==="rtl"?this.setPreviousItemActive():this.setNextItemActive();break}else return;case 37:if(this._horizontal&&r){this._horizontal==="rtl"?this.setNextItemActive():this.setPreviousItemActive();break}else return;case 36:if(this._homeAndEnd&&r){this.setFirstItemActive();break}else return;case 35:if(this._homeAndEnd&&r){this.setLastItemActive();break}else return;case 33:if(this._pageUpAndDown.enabled&&r){let o=this._activeItemIndex()-this._pageUpAndDown.delta;this._setActiveItemByIndex(o>0?o:0,1);break}else return;case 34:if(this._pageUpAndDown.enabled&&r){let o=this._activeItemIndex()+this._pageUpAndDown.delta,a=this._getItemsArray().length;this._setActiveItemByIndex(o-1&&i!==this._activeItemIndex()&&(this._activeItemIndex.set(i),this._typeahead?.setCurrentSelectedItemIndex(i))}}};var qd=class extends Km{setActiveItem(n){this.activeItem&&this.activeItem.setInactiveStyles(),super.setActiveItem(n),this.activeItem&&this.activeItem.setActiveStyles()}};var bs=class extends Km{_origin="program";setFocusOrigin(n){return this._origin=n,this}setActiveItem(n){super.setActiveItem(n),this.activeItem&&this.activeItem.focus(this._origin)}};var VL=" ";function Zm(t,n,e){let i=W0(t,n);e=e.trim(),!i.some(r=>r.trim()===e)&&(i.push(e),t.setAttribute(n,i.join(VL)))}function sc(t,n,e){let i=W0(t,n);e=e.trim();let r=i.filter(o=>o!==e);r.length?t.setAttribute(n,r.join(VL)):t.removeAttribute(n)}function W0(t,n){return t.getAttribute(n)?.match(/\S+/g)??[]}var BL="cdk-describedby-message",$0="cdk-describedby-host",Ck=0,Xm=(()=>{class t{_platform=u(qe);_document=u(ge);_messageRegistry=new Map;_messagesContainer=null;_id=`${Ck++}`;constructor(){u(ut).load(Qr),this._id=u(ql)+"-"+Ck++}describe(e,i,r){if(!this._canBeDescribed(e,i))return;let o=xk(i,r);typeof i!="string"?(LL(i,this._id),this._messageRegistry.set(o,{messageElement:i,referenceCount:0})):this._messageRegistry.has(o)||this._createMessageElement(i,r),this._isElementDescribedByMessage(e,o)||this._addMessageReference(e,o)}removeDescription(e,i,r){if(!i||!this._isElementNode(e))return;let o=xk(i,r);if(this._isElementDescribedByMessage(e,o)&&this._removeMessageReference(e,o),typeof i=="string"){let a=this._messageRegistry.get(o);a&&a.referenceCount===0&&this._deleteMessageElement(o)}this._messagesContainer?.childNodes.length===0&&(this._messagesContainer.remove(),this._messagesContainer=null)}ngOnDestroy(){let e=this._document.querySelectorAll(`[${$0}="${this._id}"]`);for(let i=0;ir.indexOf(BL)!=0);e.setAttribute("aria-describedby",i.join(" "))}_addMessageReference(e,i){let r=this._messageRegistry.get(i);Zm(e,"aria-describedby",r.messageElement.id),e.setAttribute($0,this._id),r.referenceCount++}_removeMessageReference(e,i){let r=this._messageRegistry.get(i);r.referenceCount--,sc(e,"aria-describedby",r.messageElement.id),e.removeAttribute($0)}_isElementDescribedByMessage(e,i){let r=W0(e,"aria-describedby"),o=this._messageRegistry.get(i),a=o&&o.messageElement.id;return!!a&&r.indexOf(a)!=-1}_canBeDescribed(e,i){if(!this._isElementNode(e))return!1;if(i&&typeof i=="object")return!0;let r=i==null?"":`${i}`.trim(),o=e.getAttribute("aria-label");return r?!o||o.trim()!==r:!1}_isElementNode(e){return e.nodeType===this._document.ELEMENT_NODE}static \u0275fac=function(i){return new(i||t)};static \u0275prov=O({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();function xk(t,n){return typeof t=="string"?`${n||""}/${t}`:t}function LL(t,n){t.id||(t.id=`${BL}-${n}-${Ck++}`)}var aZ=new T("cdk-dir-doc",{providedIn:"root",factory:sZ});function sZ(){return u(ge)}var lZ=/^(ar|ckb|dv|he|iw|fa|nqo|ps|sd|ug|ur|yi|.*[-_](Adlm|Arab|Hebr|Nkoo|Rohg|Thaa))(?!.*[-_](Latn|Cyrl)($|-|_))($|-|_)/i;function wk(t){let n=t?.toLowerCase()||"";return n==="auto"&&typeof navigator<"u"&&navigator?.language?lZ.test(navigator.language)?"rtl":"ltr":n==="rtl"?"rtl":"ltr"}var Vt=(()=>{class t{get value(){return this.valueSignal()}valueSignal=he("ltr");change=new U;constructor(){let e=u(aZ,{optional:!0});if(e){let i=e.body?e.body.dir:null,r=e.documentElement?e.documentElement.dir:null;this.valueSignal.set(wk(i||r||"ltr"))}}ngOnDestroy(){this.change.complete()}static \u0275fac=function(i){return new(i||t)};static \u0275prov=O({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();var HL=(()=>{class t{_isInitialized=!1;_rawDir;change=new U;get dir(){return this.valueSignal()}set dir(e){let i=this.valueSignal();this.valueSignal.set(wk(e)),this._rawDir=e,i!==this.valueSignal()&&this._isInitialized&&this.change.emit(this.valueSignal())}get value(){return this.dir}valueSignal=he("ltr");ngAfterContentInit(){this._isInitialized=!0}ngOnDestroy(){this.change.complete()}static \u0275fac=function(i){return new(i||t)};static \u0275dir=F({type:t,selectors:[["","dir",""]],hostVars:1,hostBindings:function(i,r){i&2&&X("dir",r._rawDir)},inputs:{dir:"dir"},outputs:{change:"dirChange"},exportAs:["dir"],features:[Ce([{provide:Vt,useExisting:t}])]})}return t})(),vs=(()=>{class t{static \u0275fac=function(i){return new(i||t)};static \u0275mod=ee({type:t});static \u0275inj=J({})}return t})();var we=(()=>{class t{constructor(){u(j0)._applyBodyHighContrastModeCssClasses()}static \u0275fac=function(i){return new(i||t)};static \u0275mod=ee({type:t});static \u0275inj=J({imports:[vs,vs]})}return t})();var cl=class{_defaultMatcher;ngControl;_parentFormGroup;_parentForm;_stateChanges;errorState=!1;matcher;constructor(n,e,i,r,o){this._defaultMatcher=n,this.ngControl=e,this._parentFormGroup=i,this._parentForm=r,this._stateChanges=o}updateErrorState(){let n=this.errorState,e=this._parentFormGroup||this._parentForm,i=this.matcher||this._defaultMatcher,r=this.ngControl?this.ngControl.control:null,o=i?.isErrorState(r,e)??!1;o!==n&&(this.errorState=o,this._stateChanges.next())}};var ys=new T("MAT_DATE_LOCALE",{providedIn:"root",factory:dZ});function dZ(){return u(el)}var Jm="Method not implemented",Li=class{locale;_localeChanges=new z;localeChanges=this._localeChanges;setTime(n,e,i,r){throw new Error(Jm)}getHours(n){throw new Error(Jm)}getMinutes(n){throw new Error(Jm)}getSeconds(n){throw new Error(Jm)}parseTime(n,e){throw new Error(Jm)}addSeconds(n,e){throw new Error(Jm)}getValidDateOrNull(n){return this.isDateInstance(n)&&this.isValid(n)?n:null}deserialize(n){return n==null||this.isDateInstance(n)&&this.isValid(n)?n:this.invalid()}setLocale(n){this.locale=n,this._localeChanges.next()}compareDate(n,e){return this.getYear(n)-this.getYear(e)||this.getMonth(n)-this.getMonth(e)||this.getDate(n)-this.getDate(e)}compareTime(n,e){return this.getHours(n)-this.getHours(e)||this.getMinutes(n)-this.getMinutes(e)||this.getSeconds(n)-this.getSeconds(e)}sameDate(n,e){if(n&&e){let i=this.isValid(n),r=this.isValid(e);return i&&r?!this.compareDate(n,e):i==r}return n==e}sameTime(n,e){if(n&&e){let i=this.isValid(n),r=this.isValid(e);return i&&r?!this.compareTime(n,e):i==r}return n==e}clampDate(n,e,i){return e&&this.compareDate(n,e)<0?e:i&&this.compareDate(n,i)>0?i:n}},xs=new T("mat-date-formats");var dl=(()=>{class t{isErrorState(e,i){return!!(e&&e.invalid&&(e.touched||i&&i.submitted))}static \u0275fac=function(i){return new(i||t)};static \u0275prov=O({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();var Di=(()=>{class t{static \u0275fac=function(i){return new(i||t)};static \u0275cmp=E({type:t,selectors:[["structural-styles"]],decls:0,vars:0,template:function(i,r){},styles:[`.mat-focus-indicator{position:relative}.mat-focus-indicator::before{top:0;left:0;right:0;bottom:0;position:absolute;box-sizing:border-box;pointer-events:none;display:var(--mat-focus-indicator-display, none);border-width:var(--mat-focus-indicator-border-width, 3px);border-style:var(--mat-focus-indicator-border-style, solid);border-color:var(--mat-focus-indicator-border-color, transparent);border-radius:var(--mat-focus-indicator-border-radius, 4px)}.mat-focus-indicator:focus::before{content:""}@media(forced-colors: active){html{--mat-focus-indicator-display: block}} -`],encapsulation:2,changeDetection:0})}return t})();var Aa=(function(t){return t[t.NORMAL=0]="NORMAL",t[t.NEGATED=1]="NEGATED",t[t.INVERTED=2]="INVERTED",t})(Aa||{}),G0,Yd;function q0(){if(Yd==null){if(typeof document!="object"||!document||typeof Element!="function"||!Element)return Yd=!1,Yd;if(document.documentElement?.style&&"scrollBehavior"in document.documentElement.style)Yd=!0;else{let t=Element.prototype.scrollTo;t?Yd=!/\{\s*\[native code\]\s*\}/.test(t.toString()):Yd=!1}}return Yd}function eh(){if(typeof document!="object"||!document)return Aa.NORMAL;if(G0==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"),i=e.style;i.width="2px",i.height="1px",t.appendChild(e),document.body.appendChild(t),G0=Aa.NORMAL,t.scrollLeft===0&&(t.scrollLeft=1,G0=t.scrollLeft===0?Aa.NEGATED:Aa.INVERTED),t.remove()}return G0}function Dk(){return typeof __karma__<"u"&&!!__karma__||typeof jasmine<"u"&&!!jasmine||typeof jest<"u"&&!!jest||typeof Mocha<"u"&&!!Mocha}var th,zL=["color","button","checkbox","date","datetime-local","email","file","hidden","image","month","number","password","radio","range","reset","search","submit","tel","text","time","url","week"];function Ek(){if(th)return th;if(typeof document!="object"||!document)return th=new Set(zL),th;let t=document.createElement("input");return th=new Set(zL.filter(n=>(t.setAttribute("type",n),t.type===n))),th}function on(t){return t==null?"":typeof t=="string"?t:`${t}px`}function Ai(t){return t!=null&&`${t}`!="false"}function UL(t,n=/\s+/){let e=[];if(t!=null){let i=Array.isArray(t)?t:`${t}`.split(n);for(let r of i){let o=`${r}`.trim();o&&e.push(o)}}return e}var vo=(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})(vo||{}),Y0=class{_renderer;element;config;_animationForciblyDisabledThroughCss;state=vo.HIDDEN;constructor(n,e,i,r=!1){this._renderer=n,this.element=e,this.config=i,this._animationForciblyDisabledThroughCss=r}fadeOut(){this._renderer.fadeOutRipple(this)}},$L=rc({passive:!0,capture:!0}),Mk=class{_events=new Map;addHandler(n,e,i,r){let o=this._events.get(e);if(o){let a=o.get(i);a?a.add(r):o.set(i,new Set([r]))}else this._events.set(e,new Map([[i,new Set([r])]])),n.runOutsideAngular(()=>{document.addEventListener(e,this._delegateEventHandler,$L)})}removeHandler(n,e,i){let r=this._events.get(n);if(!r)return;let o=r.get(e);o&&(o.delete(i),o.size===0&&r.delete(e),r.size===0&&(this._events.delete(n),document.removeEventListener(n,this._delegateEventHandler,$L)))}_delegateEventHandler=n=>{let e=Kn(n);e&&this._events.get(n.type)?.forEach((i,r)=>{(r===e||r.contains(e))&&i.forEach(o=>o.handleEvent(n))})}},ih={enterDuration:225,exitDuration:150},uZ=800,WL=rc({passive:!0,capture:!0}),GL=["mousedown","touchstart"],qL=["mouseup","mouseleave","touchend","touchcancel"],mZ=(()=>{class t{static \u0275fac=function(i){return new(i||t)};static \u0275cmp=E({type:t,selectors:[["ng-component"]],hostAttrs:["mat-ripple-style-loader",""],decls:0,vars:0,template:function(i,r){},styles:[`.mat-ripple{overflow:hidden;position:relative}.mat-ripple:not(:empty){transform:translateZ(0)}.mat-ripple.mat-ripple-unbounded{overflow:visible}.mat-ripple-element{position:absolute;border-radius:50%;pointer-events:none;transition:opacity,transform 0ms cubic-bezier(0, 0, 0.2, 1);transform:scale3d(0, 0, 0);background-color:var(--mat-ripple-color, color-mix(in srgb, var(--mat-sys-on-surface) 10%, transparent))}@media(forced-colors: active){.mat-ripple-element{display:none}}.cdk-drag-preview .mat-ripple-element,.cdk-drag-placeholder .mat-ripple-element{display:none} -`],encapsulation:2,changeDetection:0})}return t})(),lc=class t{_target;_ngZone;_platform;_containerElement;_triggerElement;_isPointerDown=!1;_activeRipples=new Map;_mostRecentTransientRipple;_lastTouchStartEvent;_pointerUpEventsRegistered=!1;_containerRect;static _eventManager=new Mk;constructor(n,e,i,r,o){this._target=n,this._ngZone=e,this._platform=r,r.isBrowser&&(this._containerElement=Pr(i)),o&&o.get(ut).load(mZ)}fadeInRipple(n,e,i={}){let r=this._containerRect=this._containerRect||this._containerElement.getBoundingClientRect(),o=M(M({},ih),i.animation);i.centered&&(n=r.left+r.width/2,e=r.top+r.height/2);let a=i.radius||hZ(n,e,r),s=n-r.left,l=e-r.top,c=o.enterDuration,d=document.createElement("div");d.classList.add("mat-ripple-element"),d.style.left=`${s-a}px`,d.style.top=`${l-a}px`,d.style.height=`${a*2}px`,d.style.width=`${a*2}px`,i.color!=null&&(d.style.backgroundColor=i.color),d.style.transitionDuration=`${c}ms`,this._containerElement.appendChild(d);let m=window.getComputedStyle(d),f=m.transitionProperty,b=m.transitionDuration,v=f==="none"||b==="0s"||b==="0s, 0s"||r.width===0&&r.height===0,w=new Y0(this,d,i,v);d.style.transform="scale3d(1, 1, 1)",w.state=vo.FADING_IN,i.persistent||(this._mostRecentTransientRipple=w);let x=null;return!v&&(c||o.exitDuration)&&this._ngZone.runOutsideAngular(()=>{let D=()=>{x&&(x.fallbackTimer=null),clearTimeout(W),this._finishRippleTransition(w)},P=()=>this._destroyRipple(w),W=setTimeout(P,c+100);d.addEventListener("transitionend",D),d.addEventListener("transitioncancel",P),x={onTransitionEnd:D,onTransitionCancel:P,fallbackTimer:W}}),this._activeRipples.set(w,x),(v||!c)&&this._finishRippleTransition(w),w}fadeOutRipple(n){if(n.state===vo.FADING_OUT||n.state===vo.HIDDEN)return;let e=n.element,i=M(M({},ih),n.config.animation);e.style.transitionDuration=`${i.exitDuration}ms`,e.style.opacity="0",n.state=vo.FADING_OUT,(n._animationForciblyDisabledThroughCss||!i.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=Pr(n);!this._platform.isBrowser||!e||e===this._triggerElement||(this._removeTriggerEvents(),this._triggerElement=e,GL.forEach(i=>{t._eventManager.addHandler(this._ngZone,i,e,this)}))}handleEvent(n){n.type==="mousedown"?this._onMousedown(n):n.type==="touchstart"?this._onTouchStart(n):this._onPointerUp(),this._pointerUpEventsRegistered||(this._ngZone.runOutsideAngular(()=>{qL.forEach(e=>{this._triggerElement.addEventListener(e,this,WL)})}),this._pointerUpEventsRegistered=!0)}_finishRippleTransition(n){n.state===vo.FADING_IN?this._startFadeOutTransition(n):n.state===vo.FADING_OUT&&this._destroyRipple(n)}_startFadeOutTransition(n){let e=n===this._mostRecentTransientRipple,{persistent:i}=n.config;n.state=vo.VISIBLE,!i&&(!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=vo.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=Wd(n),i=this._lastTouchStartEvent&&Date.now(){let e=n.state===vo.VISIBLE||n.config.terminateOnPointerUp&&n.state===vo.FADING_IN;!n.config.persistent&&e&&n.fadeOut()}))}_getActiveRipples(){return Array.from(this._activeRipples.keys())}_removeTriggerEvents(){let n=this._triggerElement;n&&(GL.forEach(e=>t._eventManager.removeHandler(e,n,this)),this._pointerUpEventsRegistered&&(qL.forEach(e=>n.removeEventListener(e,this,WL)),this._pointerUpEventsRegistered=!1))}};function hZ(t,n,e){let i=Math.max(Math.abs(t-e.left),Math.abs(t-e.right)),r=Math.max(Math.abs(n-e.top),Math.abs(n-e.bottom));return Math.sqrt(i*i+r*r)}var Cs=new T("mat-ripple-global-options"),Vn=(()=>{class t{_elementRef=u(q);_animationsDisabled=Ye();color;unbounded;centered;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=u(ae),i=u(qe),r=u(Cs,{optional:!0}),o=u(de);this._globalOptions=r||{},this._rippleRenderer=new lc(this,e,this._elementRef,i,o)}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:M(M(M({},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,i=0,r){return typeof e=="number"?this._rippleRenderer.fadeInRipple(e,i,M(M({},this.rippleConfig),r)):this._rippleRenderer.fadeInRipple(0,0,M(M({},this.rippleConfig),e))}static \u0275fac=function(i){return new(i||t)};static \u0275dir=F({type:t,selectors:[["","mat-ripple",""],["","matRipple",""]],hostAttrs:[1,"mat-ripple"],hostVars:2,hostBindings:function(i,r){i&2&&G("mat-ripple-unbounded",r.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 yo=(()=>{class t{static \u0275fac=function(i){return new(i||t)};static \u0275mod=ee({type:t});static \u0275inj=J({imports:[we,we]})}return t})();var Qd=(()=>{class t{_animationsDisabled=Ye();state="unchecked";disabled=!1;appearance="full";constructor(){}static \u0275fac=function(i){return new(i||t)};static \u0275cmp=E({type:t,selectors:[["mat-pseudo-checkbox"]],hostAttrs:[1,"mat-pseudo-checkbox"],hostVars:12,hostBindings:function(i,r){i&2&&G("mat-pseudo-checkbox-indeterminate",r.state==="indeterminate")("mat-pseudo-checkbox-checked",r.state==="checked")("mat-pseudo-checkbox-disabled",r.disabled)("mat-pseudo-checkbox-minimal",r.appearance==="minimal")("mat-pseudo-checkbox-full",r.appearance==="full")("_mat-animation-noopable",r._animationsDisabled)},inputs:{state:"state",disabled:"disabled",appearance:"appearance"},decls:0,vars:0,template:function(i,r){},styles:[`.mat-pseudo-checkbox{border-radius:2px;cursor:pointer;display:inline-block;vertical-align:middle;box-sizing:border-box;position:relative;flex-shrink:0;transition:border-color 90ms cubic-bezier(0, 0, 0.2, 0.1),background-color 90ms cubic-bezier(0, 0, 0.2, 0.1)}.mat-pseudo-checkbox::after{position:absolute;opacity:0;content:"";border-bottom:2px solid currentColor;transition:opacity 90ms cubic-bezier(0, 0, 0.2, 0.1)}.mat-pseudo-checkbox._mat-animation-noopable{transition:none !important;animation:none !important}.mat-pseudo-checkbox._mat-animation-noopable::after{transition:none}.mat-pseudo-checkbox-disabled{cursor:default}.mat-pseudo-checkbox-indeterminate::after{left:1px;opacity:1;border-radius:2px}.mat-pseudo-checkbox-checked::after{left:1px;border-left:2px solid currentColor;transform:rotate(-45deg);opacity:1;box-sizing:content-box}.mat-pseudo-checkbox-minimal.mat-pseudo-checkbox-checked::after,.mat-pseudo-checkbox-minimal.mat-pseudo-checkbox-indeterminate::after{color:var(--mat-pseudo-checkbox-minimal-selected-checkmark-color, var(--mat-sys-primary))}.mat-pseudo-checkbox-minimal.mat-pseudo-checkbox-checked.mat-pseudo-checkbox-disabled::after,.mat-pseudo-checkbox-minimal.mat-pseudo-checkbox-indeterminate.mat-pseudo-checkbox-disabled::after{color:var(--mat-pseudo-checkbox-minimal-disabled-selected-checkmark-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent))}.mat-pseudo-checkbox-full{border-color:var(--mat-pseudo-checkbox-full-unselected-icon-color, var(--mat-sys-on-surface-variant));border-width:2px;border-style:solid}.mat-pseudo-checkbox-full.mat-pseudo-checkbox-disabled{border-color:var(--mat-pseudo-checkbox-full-disabled-unselected-icon-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent))}.mat-pseudo-checkbox-full.mat-pseudo-checkbox-checked,.mat-pseudo-checkbox-full.mat-pseudo-checkbox-indeterminate{background-color:var(--mat-pseudo-checkbox-full-selected-icon-color, var(--mat-sys-primary));border-color:rgba(0,0,0,0)}.mat-pseudo-checkbox-full.mat-pseudo-checkbox-checked::after,.mat-pseudo-checkbox-full.mat-pseudo-checkbox-indeterminate::after{color:var(--mat-pseudo-checkbox-full-selected-checkmark-color, var(--mat-sys-on-primary))}.mat-pseudo-checkbox-full.mat-pseudo-checkbox-checked.mat-pseudo-checkbox-disabled,.mat-pseudo-checkbox-full.mat-pseudo-checkbox-indeterminate.mat-pseudo-checkbox-disabled{background-color:var(--mat-pseudo-checkbox-full-disabled-selected-icon-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent))}.mat-pseudo-checkbox-full.mat-pseudo-checkbox-checked.mat-pseudo-checkbox-disabled::after,.mat-pseudo-checkbox-full.mat-pseudo-checkbox-indeterminate.mat-pseudo-checkbox-disabled::after{color:var(--mat-pseudo-checkbox-full-disabled-selected-checkmark-color, var(--mat-sys-surface))}.mat-pseudo-checkbox{width:18px;height:18px}.mat-pseudo-checkbox-minimal.mat-pseudo-checkbox-checked::after{width:14px;height:6px;transform-origin:center;top:-4.2426406871px;left:0;bottom:0;right:0;margin:auto}.mat-pseudo-checkbox-minimal.mat-pseudo-checkbox-indeterminate::after{top:8px;width:16px}.mat-pseudo-checkbox-full.mat-pseudo-checkbox-checked::after{width:10px;height:4px;transform-origin:center;top:-2.8284271247px;left:0;bottom:0;right:0;margin:auto}.mat-pseudo-checkbox-full.mat-pseudo-checkbox-indeterminate::after{top:6px;width:12px} -`],encapsulation:2,changeDetection:0})}return t})();var Q0=(()=>{class t{static \u0275fac=function(i){return new(i||t)};static \u0275mod=ee({type:t});static \u0275inj=J({imports:[we]})}return t})();var pZ=["*",[["mat-option"],["ng-container"]]],fZ=["*","mat-option, ng-container"],gZ=["text"],_Z=[[["mat-icon"]],"*"],bZ=["mat-icon","*"];function vZ(t,n){if(t&1&&k(0,"mat-pseudo-checkbox",1),t&2){let e=C();y("disabled",e.disabled)("state",e.selected?"checked":"unchecked")}}function yZ(t,n){if(t&1&&k(0,"mat-pseudo-checkbox",3),t&2){let e=C();y("disabled",e.disabled)}}function xZ(t,n){if(t&1&&(h(0,"span",4),_(1),p()),t&2){let e=C();g(),ve("(",e.group.label,")")}}var Kd=new T("MAT_OPTION_PARENT_COMPONENT"),Zd=new T("MatOptgroup"),kk=(()=>{class t{label;disabled=!1;_labelId=u(Ze).getId("mat-optgroup-label-");_inert;constructor(){let e=u(Kd,{optional:!0});this._inert=e?.inertGroups??!1}static \u0275fac=function(i){return new(i||t)};static \u0275cmp=E({type:t,selectors:[["mat-optgroup"]],hostAttrs:[1,"mat-mdc-optgroup"],hostVars:3,hostBindings:function(i,r){i&2&&X("role",r._inert?null:"group")("aria-disabled",r._inert?null:r.disabled.toString())("aria-labelledby",r._inert?null:r._labelId)},inputs:{label:"label",disabled:[2,"disabled","disabled",V]},exportAs:["matOptgroup"],features:[Ce([{provide:Zd,useExisting:t}])],ngContentSelectors:fZ,decls:5,vars:4,consts:[["role","presentation",1,"mat-mdc-optgroup-label",3,"id"],[1,"mdc-list-item__primary-text"]],template:function(i,r){i&1&&(Me(pZ),ft(0,"span",0)(1,"span",1),_(2),oe(3),vt()(),oe(4,1)),i&2&&(G("mdc-list-item--disabled",r.disabled),si("id",r._labelId),g(2),ve("",r.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));font-size:var(--mat-optgroup-label-text-size, var(--mat-sys-title-small-size));letter-spacing:var(--mat-optgroup-label-text-tracking, var(--mat-sys-title-small-tracking));font-weight:var(--mat-optgroup-label-text-weight, var(--mat-sys-title-small-weight))}.mat-mdc-optgroup-label{display:flex;position:relative;align-items:center;justify-content:flex-start;overflow:hidden;min-height:48px;padding:0 16px;outline:none}.mat-mdc-optgroup-label.mdc-list-item--disabled{opacity:.38}.mat-mdc-optgroup-label .mdc-list-item__primary-text{font-size:inherit;font-weight:inherit;letter-spacing:inherit;line-height:inherit;font-family:inherit;text-decoration:inherit;text-transform:inherit;white-space:normal;color:inherit} -`],encapsulation:2,changeDetection:0})}return t})(),nh=class{source;isUserInput;constructor(n,e=!1){this.source=n,this.isUserInput=e}},xn=(()=>{class t{_element=u(q);_changeDetectorRef=u(ye);_parent=u(Kd,{optional:!0});group=u(Zd,{optional:!0});_signalDisableRipple=!1;_selected=!1;_active=!1;_mostRecentViewValue="";get multiple(){return this._parent&&this._parent.multiple}get selected(){return this._selected}value;id=u(Ze).getId("mat-option-");get disabled(){return this.group&&this.group.disabled||this._disabled()}set disabled(e){this._disabled.set(e)}_disabled=he(!1);get disableRipple(){return this._signalDisableRipple?this._parent.disableRipple():!!this._parent?.disableRipple}get hideSingleSelectionIndicator(){return!!(this._parent&&this._parent.hideSingleSelectionIndicator)}onSelectionChange=new U;_text;_stateChanges=new z;constructor(){let e=u(ut);e.load(Di),e.load(Qr),this._signalDisableRipple=!!this._parent&&is(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,i){let r=this._getHostElement();typeof r.focus=="function"&&r.focus(i)}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)&&!Ft(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 nh(this,e))}static \u0275fac=function(i){return new(i||t)};static \u0275cmp=E({type:t,selectors:[["mat-option"]],viewQuery:function(i,r){if(i&1&&ie(gZ,7),i&2){let o;B(o=j())&&(r._text=o.first)}},hostAttrs:["role","option",1,"mat-mdc-option","mdc-list-item"],hostVars:11,hostBindings:function(i,r){i&1&&S("click",function(){return r._selectViaInteraction()})("keydown",function(a){return r._handleKeydown(a)}),i&2&&(si("id",r.id),X("aria-selected",r.selected)("aria-disabled",r.disabled.toString()),G("mdc-list-item--selected",r.selected)("mat-mdc-option-multiple",r.multiple)("mat-mdc-option-active",r.active)("mdc-list-item--disabled",r.disabled))},inputs:{value:"value",id:"id",disabled:[2,"disabled","disabled",V]},outputs:{onSelectionChange:"onSelectionChange"},exportAs:["matOption"],ngContentSelectors:bZ,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(i,r){i&1&&(Me(_Z),N(0,vZ,1,2,"mat-pseudo-checkbox",1),oe(1),h(2,"span",2,0),oe(4,1),p(),N(5,yZ,1,1,"mat-pseudo-checkbox",3),N(6,xZ,2,1,"span",4),k(7,"div",5)),i&2&&(L(r.multiple?0:-1),g(5),L(!r.multiple&&r.selected&&!r.hideSingleSelectionIndicator?5:-1),g(),L(r.group&&r.group._inert?6:-1),g(),y("matRippleTrigger",r._getHostElement())("matRippleDisabled",r.disabled||r.disableRipple))},dependencies:[Qd,Vn],styles:[`.mat-mdc-option{-webkit-user-select:none;user-select:none;-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;display:flex;position:relative;align-items:center;justify-content:flex-start;overflow:hidden;min-height:48px;padding:0 16px;cursor:pointer;-webkit-tap-highlight-color:rgba(0,0,0,0);color:var(--mat-option-label-text-color, var(--mat-sys-on-surface));font-family:var(--mat-option-label-text-font, var(--mat-sys-label-large-font));line-height:var(--mat-option-label-text-line-height, var(--mat-sys-label-large-line-height));font-size:var(--mat-option-label-text-size, var(--mat-sys-body-large-size));letter-spacing:var(--mat-option-label-text-tracking, var(--mat-sys-label-large-tracking));font-weight:var(--mat-option-label-text-weight, var(--mat-sys-body-large-weight))}.mat-mdc-option:hover:not(.mdc-list-item--disabled){background-color:var(--mat-option-hover-state-layer-color, color-mix(in srgb, var(--mat-sys-on-surface) calc(var(--mat-sys-hover-state-layer-opacity) * 100%), transparent))}.mat-mdc-option:focus.mdc-list-item,.mat-mdc-option.mat-mdc-option-active.mdc-list-item{background-color:var(--mat-option-focus-state-layer-color, color-mix(in srgb, var(--mat-sys-on-surface) calc(var(--mat-sys-focus-state-layer-opacity) * 100%), transparent));outline:0}.mat-mdc-option.mdc-list-item--selected:not(.mdc-list-item--disabled):not(.mat-mdc-option-multiple){background-color:var(--mat-option-selected-state-layer-color, var(--mat-sys-secondary-container))}.mat-mdc-option.mdc-list-item--selected:not(.mdc-list-item--disabled):not(.mat-mdc-option-multiple) .mdc-list-item__primary-text{color:var(--mat-option-selected-state-label-text-color, var(--mat-sys-on-secondary-container))}.mat-mdc-option .mat-pseudo-checkbox{--mat-pseudo-checkbox-minimal-selected-checkmark-color: var(--mat-option-selected-state-label-text-color, var(--mat-sys-on-secondary-container))}.mat-mdc-option.mdc-list-item{align-items:center;background:rgba(0,0,0,0)}.mat-mdc-option.mdc-list-item--disabled{cursor:default;pointer-events:none}.mat-mdc-option.mdc-list-item--disabled .mat-mdc-option-pseudo-checkbox,.mat-mdc-option.mdc-list-item--disabled .mdc-list-item__primary-text,.mat-mdc-option.mdc-list-item--disabled>mat-icon{opacity:.38}.mat-mdc-optgroup .mat-mdc-option:not(.mat-mdc-option-multiple){padding-left:32px}[dir=rtl] .mat-mdc-optgroup .mat-mdc-option:not(.mat-mdc-option-multiple){padding-left:16px;padding-right:32px}.mat-mdc-option .mat-icon,.mat-mdc-option .mat-pseudo-checkbox-full{margin-right:16px;flex-shrink:0}[dir=rtl] .mat-mdc-option .mat-icon,[dir=rtl] .mat-mdc-option .mat-pseudo-checkbox-full{margin-right:0;margin-left:16px}.mat-mdc-option .mat-pseudo-checkbox-minimal{margin-left:16px;flex-shrink:0}[dir=rtl] .mat-mdc-option .mat-pseudo-checkbox-minimal{margin-right:16px;margin-left:0}.mat-mdc-option .mat-mdc-option-ripple{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none}.mat-mdc-option .mdc-list-item__primary-text{white-space:normal;font-size:inherit;font-weight:inherit;letter-spacing:inherit;line-height:inherit;font-family:inherit;text-decoration:inherit;text-transform:inherit;margin-right:auto}[dir=rtl] .mat-mdc-option .mdc-list-item__primary-text{margin-right:0;margin-left:auto}@media(forced-colors: active){.mat-mdc-option.mdc-list-item--selected:not(:has(.mat-mdc-option-pseudo-checkbox))::after{content:"";position:absolute;top:50%;right:16px;transform:translateY(-50%);width:10px;height:0;border-bottom:solid 10px;border-radius:10px}[dir=rtl] .mat-mdc-option.mdc-list-item--selected:not(:has(.mat-mdc-option-pseudo-checkbox))::after{right:auto;left:16px}}.mat-mdc-option-multiple{--mat-list-list-item-selected-container-color: var(--mat-list-list-item-container-color, transparent)}.mat-mdc-option-active .mat-focus-indicator::before{content:""} -`],encapsulation:2,changeDetection:0})}return t})();function Qf(t,n,e){if(e.length){let i=n.toArray(),r=e.toArray(),o=0;for(let a=0;ae+i?Math.max(0,t-i+n):e}var rh=(()=>{class t{static \u0275fac=function(i){return new(i||t)};static \u0275mod=ee({type:t});static \u0275inj=J({imports:[yo,we,Q0,xn]})}return t})();var CZ={capture:!0},wZ=["focus","mousedown","mouseenter","touchstart"],Sk="mat-ripple-loader-uninitialized",Tk="mat-ripple-loader-class-name",YL="mat-ripple-loader-centered",K0="mat-ripple-loader-disabled",Z0=(()=>{class t{_document=u(ge);_animationsDisabled=Ye();_globalRippleOptions=u(Cs,{optional:!0});_platform=u(qe);_ngZone=u(ae);_injector=u(de);_eventCleanups;_hosts=new Map;constructor(){let e=u(cn).createRenderer(null,null);this._eventCleanups=this._ngZone.runOutsideAngular(()=>wZ.map(i=>e.listen(this._document,i,this._onInteraction,CZ)))}ngOnDestroy(){let e=this._hosts.keys();for(let i of e)this.destroyRipple(i);this._eventCleanups.forEach(i=>i())}configureRipple(e,i){e.setAttribute(Sk,this._globalRippleOptions?.namespace??""),(i.className||!e.hasAttribute(Tk))&&e.setAttribute(Tk,i.className||""),i.centered&&e.setAttribute(YL,""),i.disabled&&e.setAttribute(K0,"")}setDisabled(e,i){let r=this._hosts.get(e);r?(r.target.rippleDisabled=i,!i&&!r.hasSetUpEvents&&(r.hasSetUpEvents=!0,r.renderer.setupTriggerEvents(e))):i?e.setAttribute(K0,""):e.removeAttribute(K0)}_onInteraction=e=>{let i=Kn(e);if(i instanceof HTMLElement){let r=i.closest(`[${Sk}="${this._globalRippleOptions?.namespace??""}"]`);r&&this._createRipple(r)}};_createRipple(e){if(!this._document||this._hosts.has(e))return;e.querySelector(".mat-ripple")?.remove();let i=this._document.createElement("span");i.classList.add("mat-ripple",e.getAttribute(Tk)),e.append(i);let r=this._globalRippleOptions,o=this._animationsDisabled?0:r?.animation?.enterDuration??ih.enterDuration,a=this._animationsDisabled?0:r?.animation?.exitDuration??ih.exitDuration,s={rippleDisabled:this._animationsDisabled||r?.disabled||e.hasAttribute(K0),rippleConfig:{centered:e.hasAttribute(YL),terminateOnPointerUp:r?.terminateOnPointerUp,animation:{enterDuration:o,exitDuration:a}}},l=new lc(s,this._ngZone,i,this._platform,this._injector),c=!s.rippleDisabled;c&&l.setupTriggerEvents(e),this._hosts.set(e,{target:s,renderer:l,hasSetUpEvents:c}),e.removeAttribute(Sk)}destroyRipple(e){let i=this._hosts.get(e);i&&(i.renderer._removeTriggerEvents(),this._hosts.delete(e))}static \u0275fac=function(i){return new(i||t)};static \u0275prov=O({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();var DZ=/^\d{4}-\d{2}-\d{2}(?:T\d{2}:\d{2}:\d{2}(?:\.\d+)?(?:Z|(?:(?:\+|-)\d{2}:\d{2}))?)?$/,EZ=/^(\d?\d)[:.](\d?\d)(?:[:.](\d?\d))?\s*(AM|PM)?$/i;function Ik(t,n){let e=Array(t);for(let i=0;i{class t extends Li{useUtcForDisplay=!1;_matDateLocale=u(ys,{optional:!0});constructor(){super();let e=u(ys,{optional:!0});e!==void 0&&(this._matDateLocale=e),super.setLocale(this._matDateLocale)}getYear(e){return e.getFullYear()}getMonth(e){return e.getMonth()}getDate(e){return e.getDate()}getDayOfWeek(e){return e.getDay()}getMonthNames(e){let i=new Intl.DateTimeFormat(this.locale,{month:e,timeZone:"utc"});return Ik(12,r=>this._format(i,new Date(2017,r,1)))}getDateNames(){let e=new Intl.DateTimeFormat(this.locale,{day:"numeric",timeZone:"utc"});return Ik(31,i=>this._format(e,new Date(2017,0,i+1)))}getDayOfWeekNames(e){let i=new Intl.DateTimeFormat(this.locale,{weekday:e,timeZone:"utc"});return Ik(7,r=>this._format(i,new Date(2017,0,r+1)))}getYearName(e){let i=new Intl.DateTimeFormat(this.locale,{year:"numeric",timeZone:"utc"});return this._format(i,e)}getFirstDayOfWeek(){if(typeof Intl<"u"&&Intl.Locale){let e=new Intl.Locale(this.locale),i=(e.getWeekInfo?.()||e.weekInfo)?.firstDay??0;return i===7?0:i}return 0}getNumDaysInMonth(e){return this.getDate(this._createDateWithOverflow(this.getYear(e),this.getMonth(e)+1,0))}clone(e){return new Date(e.getTime())}createDate(e,i,r){let o=this._createDateWithOverflow(e,i,r);return o.getMonth()!=i,o}today(){return new Date}parse(e,i){return typeof e=="number"?new Date(e):e?new Date(Date.parse(e)):null}format(e,i){if(!this.isValid(e))throw Error("NativeDateAdapter: Cannot format invalid date.");let r=new Intl.DateTimeFormat(this.locale,De(M({},i),{timeZone:"utc"}));return this._format(r,e)}addCalendarYears(e,i){return this.addCalendarMonths(e,i*12)}addCalendarMonths(e,i){let r=this._createDateWithOverflow(this.getYear(e),this.getMonth(e)+i,this.getDate(e));return this.getMonth(r)!=((this.getMonth(e)+i)%12+12)%12&&(r=this._createDateWithOverflow(this.getYear(r),this.getMonth(r),0)),r}addCalendarDays(e,i){return this._createDateWithOverflow(this.getYear(e),this.getMonth(e),this.getDate(e)+i)}toIso8601(e){return[e.getUTCFullYear(),this._2digit(e.getUTCMonth()+1),this._2digit(e.getUTCDate())].join("-")}deserialize(e){if(typeof e=="string"){if(!e)return null;if(DZ.test(e)){let i=new Date(e);if(this.isValid(i))return i}}return super.deserialize(e)}isDateInstance(e){return e instanceof Date}isValid(e){return!isNaN(e.getTime())}invalid(){return new Date(NaN)}setTime(e,i,r,o){let a=this.clone(e);return a.setHours(i,r,o,0),a}getHours(e){return e.getHours()}getMinutes(e){return e.getMinutes()}getSeconds(e){return e.getSeconds()}parseTime(e,i){if(typeof e!="string")return e instanceof Date?new Date(e.getTime()):null;let r=e.trim();if(r.length===0)return null;let o=this._parseTimeString(r);if(o===null){let a=r.replace(/[^0-9:(AM|PM)]/gi,"").trim();a.length>0&&(o=this._parseTimeString(a))}return o||this.invalid()}addSeconds(e,i){return new Date(e.getTime()+i*1e3)}_createDateWithOverflow(e,i,r){let o=new Date;return o.setFullYear(e,i,r),o.setHours(0,0,0,0),o}_2digit(e){return("00"+e).slice(-2)}_format(e,i){let r=new Date;return r.setUTCFullYear(i.getFullYear(),i.getMonth(),i.getDate()),r.setUTCHours(i.getHours(),i.getMinutes(),i.getSeconds(),i.getMilliseconds()),e.format(r)}_parseTimeString(e){let i=e.toUpperCase().match(EZ);if(i){let r=parseInt(i[1]),o=parseInt(i[2]),a=i[3]==null?void 0:parseInt(i[3]),s=i[4];if(r===12?r=s==="AM"?0:r:s==="PM"&&(r+=12),Ak(r,0,23)&&Ak(o,0,59)&&(a==null||Ak(a,0,59)))return this.setTime(this.today(),r,o,a||0)}return null}static \u0275fac=function(i){return new(i||t)};static \u0275prov=O({token:t,factory:t.\u0275fac})}return t})();function Ak(t,n,e){return!isNaN(t)&&t>=n&&t<=e}var MZ={parse:{dateInput:null,timeInput:null},display:{dateInput:{year:"numeric",month:"numeric",day:"numeric"},timeInput:{hour:"numeric",minute:"numeric"},monthYearLabel:{year:"numeric",month:"short"},dateA11yLabel:{year:"numeric",month:"long",day:"numeric"},monthYearA11yLabel:{year:"numeric",month:"long"},timeOptionLabel:{hour:"numeric",minute:"numeric"}}};var KL=(()=>{class t{static \u0275fac=function(i){return new(i||t)};static \u0275mod=ee({type:t});static \u0275inj=J({providers:[kZ()]})}return t})();function kZ(t=MZ){return[{provide:Li,useClass:QL},{provide:xs,useValue:t}]}var SZ=Math.pow(10,8)*24*60*60*1e3,Pje=-SZ,X0=6048e5,XL=864e5,Xd=6e4,Jd=36e5,JL=1e3;var TZ=3600;var eV=TZ*24,Fje=eV*7,IZ=eV*365.2425,AZ=IZ/12,Nje=AZ*3,Ok=Symbol.for("constructDateFrom");function rt(t,n){return typeof t=="function"?t(n):t&&typeof t=="object"&&Ok in t?t[Ok](n):t instanceof Date?new t.constructor(n):new Date(n)}function Ie(t,n){return rt(n||t,t)}function oh(t,n,e){let i=Ie(t,e?.in);return isNaN(n)?rt(e?.in||t,NaN):(n&&i.setDate(i.getDate()+n),i)}function ah(t,n,e){let i=Ie(t,e?.in);if(isNaN(n))return rt(e?.in||t,NaN);if(!n)return i;let r=i.getDate(),o=rt(e?.in||t,i.getTime());o.setMonth(i.getMonth()+n+1,0);let a=o.getDate();return r>=a?o:(i.setFullYear(o.getFullYear(),o.getMonth(),r),i)}function J0(t,n,e){return rt(e?.in||t,+Ie(t)+n)}function tV(t,n,e){return J0(t,n*Jd,e)}var OZ={};function Yo(){return OZ}function Zn(t,n){let e=Yo(),i=n?.weekStartsOn??n?.locale?.options?.weekStartsOn??e.weekStartsOn??e.locale?.options?.weekStartsOn??0,r=Ie(t,n?.in),o=r.getDay(),a=(o=o.getTime()?i+1:e.getTime()>=s.getTime()?i:i-1}function eu(t){let n=Ie(t),e=new Date(Date.UTC(n.getFullYear(),n.getMonth(),n.getDate(),n.getHours(),n.getMinutes(),n.getSeconds(),n.getMilliseconds()));return e.setUTCFullYear(n.getFullYear()),+t-+e}function ty(t,...n){let e=rt.bind(null,t||n.find(i=>typeof i=="object"));return n.map(e)}function Rk(t,n){let e=Ie(t,n?.in);return e.setHours(0,0,0,0),e}function iV(t,n,e){let[i,r]=ty(e?.in,t,n),o=Rk(i),a=Rk(r),s=+o-eu(o),l=+a-eu(a);return Math.round((s-l)/XL)}function nV(t,n){let e=ey(t,n),i=rt(n?.in||t,0);return i.setFullYear(e,0,4),i.setHours(0,0,0,0),Oa(i)}function rV(t,n,e){let i=Ie(t,e?.in);return i.setTime(i.getTime()+n*Xd),i}function oV(t,n,e){return J0(t,n*1e3,e)}function aV(t,n,e){return ah(t,n*12,e)}function iy(t){return t instanceof Date||typeof t=="object"&&Object.prototype.toString.call(t)==="[object Date]"}function sh(t){return!(!iy(t)&&typeof t!="number"||isNaN(+Ie(t)))}function sV(t,n){let e=Ie(t,n?.in);return e.setDate(1),e.setHours(0,0,0,0),e}function lV(t,n){let e=Ie(t,n?.in);return e.setFullYear(e.getFullYear(),0,1),e.setHours(0,0,0,0),e}var RZ={lessThanXSeconds:{one:"less than a second",other:"less than {{count}} seconds"},xSeconds:{one:"1 second",other:"{{count}} seconds"},halfAMinute:"half a minute",lessThanXMinutes:{one:"less than a minute",other:"less than {{count}} minutes"},xMinutes:{one:"1 minute",other:"{{count}} minutes"},aboutXHours:{one:"about 1 hour",other:"about {{count}} hours"},xHours:{one:"1 hour",other:"{{count}} hours"},xDays:{one:"1 day",other:"{{count}} days"},aboutXWeeks:{one:"about 1 week",other:"about {{count}} weeks"},xWeeks:{one:"1 week",other:"{{count}} weeks"},aboutXMonths:{one:"about 1 month",other:"about {{count}} months"},xMonths:{one:"1 month",other:"{{count}} months"},aboutXYears:{one:"about 1 year",other:"about {{count}} years"},xYears:{one:"1 year",other:"{{count}} years"},overXYears:{one:"over 1 year",other:"over {{count}} years"},almostXYears:{one:"almost 1 year",other:"almost {{count}} years"}},cV=(t,n,e)=>{let i,r=RZ[t];return typeof r=="string"?i=r:n===1?i=r.one:i=r.other.replace("{{count}}",n.toString()),e?.addSuffix?e.comparison&&e.comparison>0?"in "+i:i+" ago":i};function Qo(t){return(n={})=>{let e=n.width?String(n.width):t.defaultWidth;return t.formats[e]||t.formats[t.defaultWidth]}}var PZ={full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},FZ={full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},NZ={full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},dV={date:Qo({formats:PZ,defaultWidth:"full"}),time:Qo({formats:FZ,defaultWidth:"full"}),dateTime:Qo({formats:NZ,defaultWidth:"full"})};var LZ={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"},uV=(t,n,e,i)=>LZ[t];function Bn(t){return(n,e)=>{let i=e?.context?String(e.context):"standalone",r;if(i==="formatting"&&t.formattingValues){let a=t.defaultFormattingWidth||t.defaultWidth,s=e?.width?String(e.width):a;r=t.formattingValues[s]||t.formattingValues[a]}else{let a=t.defaultWidth,s=e?.width?String(e.width):t.defaultWidth;r=t.values[s]||t.values[a]}let o=t.argumentCallback?t.argumentCallback(n):n;return r[o]}}var VZ={narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},BZ={narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},jZ={narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],wide:["January","February","March","April","May","June","July","August","September","October","November","December"]},HZ={narrow:["S","M","T","W","T","F","S"],short:["Su","Mo","Tu","We","Th","Fr","Sa"],abbreviated:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],wide:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},zZ={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"}},UZ={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"}},$Z=(t,n)=>{let e=Number(t),i=e%100;if(i>20||i<10)switch(i%10){case 1:return e+"st";case 2:return e+"nd";case 3:return e+"rd"}return e+"th"},mV={ordinalNumber:$Z,era:Bn({values:VZ,defaultWidth:"wide"}),quarter:Bn({values:BZ,defaultWidth:"wide",argumentCallback:t=>t-1}),month:Bn({values:jZ,defaultWidth:"wide"}),day:Bn({values:HZ,defaultWidth:"wide"}),dayPeriod:Bn({values:zZ,defaultWidth:"wide",formattingValues:UZ,defaultFormattingWidth:"wide"})};function jn(t){return(n,e={})=>{let i=e.width,r=i&&t.matchPatterns[i]||t.matchPatterns[t.defaultMatchWidth],o=n.match(r);if(!o)return null;let a=o[0],s=i&&t.parsePatterns[i]||t.parsePatterns[t.defaultParseWidth],l=Array.isArray(s)?GZ(s,m=>m.test(a)):WZ(s,m=>m.test(a)),c;c=t.valueCallback?t.valueCallback(l):l,c=e.valueCallback?e.valueCallback(c):c;let d=n.slice(a.length);return{value:c,rest:d}}}function WZ(t,n){for(let e in t)if(Object.prototype.hasOwnProperty.call(t,e)&&n(t[e]))return e}function GZ(t,n){for(let e=0;e{let i=n.match(t.matchPattern);if(!i)return null;let r=i[0],o=n.match(t.parsePattern);if(!o)return null;let a=t.valueCallback?t.valueCallback(o[0]):o[0];a=e.valueCallback?e.valueCallback(a):a;let s=n.slice(r.length);return{value:a,rest:s}}}var qZ=/^(\d+)(th|st|nd|rd)?/i,YZ=/\d+/i,QZ={narrow:/^(b|a)/i,abbreviated:/^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,wide:/^(before christ|before common era|anno domini|common era)/i},KZ={any:[/^b/i,/^(a|c)/i]},ZZ={narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},XZ={any:[/1/i,/2/i,/3/i,/4/i]},JZ={narrow:/^[jfmasond]/i,abbreviated:/^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,wide:/^(january|february|march|april|may|june|july|august|september|october|november|december)/i},eX={narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ap/i,/^may/i,/^jun/i,/^jul/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},tX={narrow:/^[smtwf]/i,short:/^(su|mo|tu|we|th|fr|sa)/i,abbreviated:/^(sun|mon|tue|wed|thu|fri|sat)/i,wide:/^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i},iX={narrow:[/^s/i,/^m/i,/^t/i,/^w/i,/^t/i,/^f/i,/^s/i],any:[/^su/i,/^m/i,/^tu/i,/^w/i,/^th/i,/^f/i,/^sa/i]},nX={narrow:/^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,any:/^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i},rX={any:{am:/^a/i,pm:/^p/i,midnight:/^mi/i,noon:/^no/i,morning:/morning/i,afternoon:/afternoon/i,evening:/evening/i,night:/night/i}},hV={ordinalNumber:lh({matchPattern:qZ,parsePattern:YZ,valueCallback:t=>parseInt(t,10)}),era:jn({matchPatterns:QZ,defaultMatchWidth:"wide",parsePatterns:KZ,defaultParseWidth:"any"}),quarter:jn({matchPatterns:ZZ,defaultMatchWidth:"wide",parsePatterns:XZ,defaultParseWidth:"any",valueCallback:t=>t+1}),month:jn({matchPatterns:JZ,defaultMatchWidth:"wide",parsePatterns:eX,defaultParseWidth:"any"}),day:jn({matchPatterns:tX,defaultMatchWidth:"wide",parsePatterns:iX,defaultParseWidth:"any"}),dayPeriod:jn({matchPatterns:nX,defaultMatchWidth:"any",parsePatterns:rX,defaultParseWidth:"any"})};var tu={code:"en-US",formatDistance:cV,formatLong:dV,formatRelative:uV,localize:mV,match:hV,options:{weekStartsOn:0,firstWeekContainsDate:1}};function pV(t,n){let e=Ie(t,n?.in);return iV(e,lV(e))+1}function ny(t,n){let e=Ie(t,n?.in),i=+Oa(e)-+nV(e);return Math.round(i/X0)+1}function ch(t,n){let e=Ie(t,n?.in),i=e.getFullYear(),r=Yo(),o=n?.firstWeekContainsDate??n?.locale?.options?.firstWeekContainsDate??r.firstWeekContainsDate??r.locale?.options?.firstWeekContainsDate??1,a=rt(n?.in||t,0);a.setFullYear(i+1,0,o),a.setHours(0,0,0,0);let s=Zn(a,n),l=rt(n?.in||t,0);l.setFullYear(i,0,o),l.setHours(0,0,0,0);let c=Zn(l,n);return+e>=+s?i+1:+e>=+c?i:i-1}function fV(t,n){let e=Yo(),i=n?.firstWeekContainsDate??n?.locale?.options?.firstWeekContainsDate??e.firstWeekContainsDate??e.locale?.options?.firstWeekContainsDate??1,r=ch(t,n),o=rt(n?.in||t,0);return o.setFullYear(r,0,i),o.setHours(0,0,0,0),Zn(o,n)}function dh(t,n){let e=Ie(t,n?.in),i=+Zn(e,n)-+fV(e,n);return Math.round(i/X0)+1}function wt(t,n){let e=t<0?"-":"",i=Math.abs(t).toString().padStart(n,"0");return e+i}var ul={y(t,n){let e=t.getFullYear(),i=e>0?e:1-e;return wt(n==="yy"?i%100:i,n.length)},M(t,n){let e=t.getMonth();return n==="M"?String(e+1):wt(e+1,2)},d(t,n){return wt(t.getDate(),n.length)},a(t,n){let e=t.getHours()/12>=1?"pm":"am";switch(n){case"a":case"aa":return e.toUpperCase();case"aaa":return e;case"aaaaa":return e[0];case"aaaa":default:return e==="am"?"a.m.":"p.m."}},h(t,n){return wt(t.getHours()%12||12,n.length)},H(t,n){return wt(t.getHours(),n.length)},m(t,n){return wt(t.getMinutes(),n.length)},s(t,n){return wt(t.getSeconds(),n.length)},S(t,n){let e=n.length,i=t.getMilliseconds(),r=Math.trunc(i*Math.pow(10,e-3));return wt(r,n.length)}};var uh={am:"am",pm:"pm",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},Pk={G:function(t,n,e){let i=t.getFullYear()>0?1:0;switch(n){case"G":case"GG":case"GGG":return e.era(i,{width:"abbreviated"});case"GGGGG":return e.era(i,{width:"narrow"});case"GGGG":default:return e.era(i,{width:"wide"})}},y:function(t,n,e){if(n==="yo"){let i=t.getFullYear(),r=i>0?i:1-i;return e.ordinalNumber(r,{unit:"year"})}return ul.y(t,n)},Y:function(t,n,e,i){let r=ch(t,i),o=r>0?r:1-r;if(n==="YY"){let a=o%100;return wt(a,2)}return n==="Yo"?e.ordinalNumber(o,{unit:"year"}):wt(o,n.length)},R:function(t,n){let e=ey(t);return wt(e,n.length)},u:function(t,n){let e=t.getFullYear();return wt(e,n.length)},Q:function(t,n,e){let i=Math.ceil((t.getMonth()+1)/3);switch(n){case"Q":return String(i);case"QQ":return wt(i,2);case"Qo":return e.ordinalNumber(i,{unit:"quarter"});case"QQQ":return e.quarter(i,{width:"abbreviated",context:"formatting"});case"QQQQQ":return e.quarter(i,{width:"narrow",context:"formatting"});case"QQQQ":default:return e.quarter(i,{width:"wide",context:"formatting"})}},q:function(t,n,e){let i=Math.ceil((t.getMonth()+1)/3);switch(n){case"q":return String(i);case"qq":return wt(i,2);case"qo":return e.ordinalNumber(i,{unit:"quarter"});case"qqq":return e.quarter(i,{width:"abbreviated",context:"standalone"});case"qqqqq":return e.quarter(i,{width:"narrow",context:"standalone"});case"qqqq":default:return e.quarter(i,{width:"wide",context:"standalone"})}},M:function(t,n,e){let i=t.getMonth();switch(n){case"M":case"MM":return ul.M(t,n);case"Mo":return e.ordinalNumber(i+1,{unit:"month"});case"MMM":return e.month(i,{width:"abbreviated",context:"formatting"});case"MMMMM":return e.month(i,{width:"narrow",context:"formatting"});case"MMMM":default:return e.month(i,{width:"wide",context:"formatting"})}},L:function(t,n,e){let i=t.getMonth();switch(n){case"L":return String(i+1);case"LL":return wt(i+1,2);case"Lo":return e.ordinalNumber(i+1,{unit:"month"});case"LLL":return e.month(i,{width:"abbreviated",context:"standalone"});case"LLLLL":return e.month(i,{width:"narrow",context:"standalone"});case"LLLL":default:return e.month(i,{width:"wide",context:"standalone"})}},w:function(t,n,e,i){let r=dh(t,i);return n==="wo"?e.ordinalNumber(r,{unit:"week"}):wt(r,n.length)},I:function(t,n,e){let i=ny(t);return n==="Io"?e.ordinalNumber(i,{unit:"week"}):wt(i,n.length)},d:function(t,n,e){return n==="do"?e.ordinalNumber(t.getDate(),{unit:"date"}):ul.d(t,n)},D:function(t,n,e){let i=pV(t);return n==="Do"?e.ordinalNumber(i,{unit:"dayOfYear"}):wt(i,n.length)},E:function(t,n,e){let i=t.getDay();switch(n){case"E":case"EE":case"EEE":return e.day(i,{width:"abbreviated",context:"formatting"});case"EEEEE":return e.day(i,{width:"narrow",context:"formatting"});case"EEEEEE":return e.day(i,{width:"short",context:"formatting"});case"EEEE":default:return e.day(i,{width:"wide",context:"formatting"})}},e:function(t,n,e,i){let r=t.getDay(),o=(r-i.weekStartsOn+8)%7||7;switch(n){case"e":return String(o);case"ee":return wt(o,2);case"eo":return e.ordinalNumber(o,{unit:"day"});case"eee":return e.day(r,{width:"abbreviated",context:"formatting"});case"eeeee":return e.day(r,{width:"narrow",context:"formatting"});case"eeeeee":return e.day(r,{width:"short",context:"formatting"});case"eeee":default:return e.day(r,{width:"wide",context:"formatting"})}},c:function(t,n,e,i){let r=t.getDay(),o=(r-i.weekStartsOn+8)%7||7;switch(n){case"c":return String(o);case"cc":return wt(o,n.length);case"co":return e.ordinalNumber(o,{unit:"day"});case"ccc":return e.day(r,{width:"abbreviated",context:"standalone"});case"ccccc":return e.day(r,{width:"narrow",context:"standalone"});case"cccccc":return e.day(r,{width:"short",context:"standalone"});case"cccc":default:return e.day(r,{width:"wide",context:"standalone"})}},i:function(t,n,e){let i=t.getDay(),r=i===0?7:i;switch(n){case"i":return String(r);case"ii":return wt(r,n.length);case"io":return e.ordinalNumber(r,{unit:"day"});case"iii":return e.day(i,{width:"abbreviated",context:"formatting"});case"iiiii":return e.day(i,{width:"narrow",context:"formatting"});case"iiiiii":return e.day(i,{width:"short",context:"formatting"});case"iiii":default:return e.day(i,{width:"wide",context:"formatting"})}},a:function(t,n,e){let r=t.getHours()/12>=1?"pm":"am";switch(n){case"a":case"aa":return e.dayPeriod(r,{width:"abbreviated",context:"formatting"});case"aaa":return e.dayPeriod(r,{width:"abbreviated",context:"formatting"}).toLowerCase();case"aaaaa":return e.dayPeriod(r,{width:"narrow",context:"formatting"});case"aaaa":default:return e.dayPeriod(r,{width:"wide",context:"formatting"})}},b:function(t,n,e){let i=t.getHours(),r;switch(i===12?r=uh.noon:i===0?r=uh.midnight:r=i/12>=1?"pm":"am",n){case"b":case"bb":return e.dayPeriod(r,{width:"abbreviated",context:"formatting"});case"bbb":return e.dayPeriod(r,{width:"abbreviated",context:"formatting"}).toLowerCase();case"bbbbb":return e.dayPeriod(r,{width:"narrow",context:"formatting"});case"bbbb":default:return e.dayPeriod(r,{width:"wide",context:"formatting"})}},B:function(t,n,e){let i=t.getHours(),r;switch(i>=17?r=uh.evening:i>=12?r=uh.afternoon:i>=4?r=uh.morning:r=uh.night,n){case"B":case"BB":case"BBB":return e.dayPeriod(r,{width:"abbreviated",context:"formatting"});case"BBBBB":return e.dayPeriod(r,{width:"narrow",context:"formatting"});case"BBBB":default:return e.dayPeriod(r,{width:"wide",context:"formatting"})}},h:function(t,n,e){if(n==="ho"){let i=t.getHours()%12;return i===0&&(i=12),e.ordinalNumber(i,{unit:"hour"})}return ul.h(t,n)},H:function(t,n,e){return n==="Ho"?e.ordinalNumber(t.getHours(),{unit:"hour"}):ul.H(t,n)},K:function(t,n,e){let i=t.getHours()%12;return n==="Ko"?e.ordinalNumber(i,{unit:"hour"}):wt(i,n.length)},k:function(t,n,e){let i=t.getHours();return i===0&&(i=24),n==="ko"?e.ordinalNumber(i,{unit:"hour"}):wt(i,n.length)},m:function(t,n,e){return n==="mo"?e.ordinalNumber(t.getMinutes(),{unit:"minute"}):ul.m(t,n)},s:function(t,n,e){return n==="so"?e.ordinalNumber(t.getSeconds(),{unit:"second"}):ul.s(t,n)},S:function(t,n){return ul.S(t,n)},X:function(t,n,e){let i=t.getTimezoneOffset();if(i===0)return"Z";switch(n){case"X":return _V(i);case"XXXX":case"XX":return iu(i);case"XXXXX":case"XXX":default:return iu(i,":")}},x:function(t,n,e){let i=t.getTimezoneOffset();switch(n){case"x":return _V(i);case"xxxx":case"xx":return iu(i);case"xxxxx":case"xxx":default:return iu(i,":")}},O:function(t,n,e){let i=t.getTimezoneOffset();switch(n){case"O":case"OO":case"OOO":return"GMT"+gV(i,":");case"OOOO":default:return"GMT"+iu(i,":")}},z:function(t,n,e){let i=t.getTimezoneOffset();switch(n){case"z":case"zz":case"zzz":return"GMT"+gV(i,":");case"zzzz":default:return"GMT"+iu(i,":")}},t:function(t,n,e){let i=Math.trunc(+t/1e3);return wt(i,n.length)},T:function(t,n,e){return wt(+t,n.length)}};function gV(t,n=""){let e=t>0?"-":"+",i=Math.abs(t),r=Math.trunc(i/60),o=i%60;return o===0?e+String(r):e+String(r)+n+wt(o,2)}function _V(t,n){return t%60===0?(t>0?"-":"+")+wt(Math.abs(t)/60,2):iu(t,n)}function iu(t,n=""){let e=t>0?"-":"+",i=Math.abs(t),r=wt(Math.trunc(i/60),2),o=wt(i%60,2);return e+r+n+o}var bV=(t,n)=>{switch(t){case"P":return n.date({width:"short"});case"PP":return n.date({width:"medium"});case"PPP":return n.date({width:"long"});case"PPPP":default:return n.date({width:"full"})}},vV=(t,n)=>{switch(t){case"p":return n.time({width:"short"});case"pp":return n.time({width:"medium"});case"ppp":return n.time({width:"long"});case"pppp":default:return n.time({width:"full"})}},oX=(t,n)=>{let e=t.match(/(P+)(p+)?/)||[],i=e[1],r=e[2];if(!r)return bV(t,n);let o;switch(i){case"P":o=n.dateTime({width:"short"});break;case"PP":o=n.dateTime({width:"medium"});break;case"PPP":o=n.dateTime({width:"long"});break;case"PPPP":default:o=n.dateTime({width:"full"});break}return o.replace("{{date}}",bV(i,n)).replace("{{time}}",vV(r,n))},Zf={p:vV,P:oX};var aX=/^D+$/,sX=/^Y+$/,lX=["D","DD","YY","YYYY"];function ry(t){return aX.test(t)}function oy(t){return sX.test(t)}function Xf(t,n,e){let i=cX(t,n,e);if(console.warn(i),lX.includes(t))throw new RangeError(i)}function cX(t,n,e){let i=t[0]==="Y"?"years":"days of the month";return`Use \`${t.toLowerCase()}\` instead of \`${t}\` (in \`${n}\`) for formatting ${i} to the input \`${e}\`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md`}var dX=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,uX=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,mX=/^'([^]*?)'?$/,hX=/''/g,pX=/[a-zA-Z]/;function yV(t,n,e){let i=Yo(),r=e?.locale??i.locale??tu,o=e?.firstWeekContainsDate??e?.locale?.options?.firstWeekContainsDate??i.firstWeekContainsDate??i.locale?.options?.firstWeekContainsDate??1,a=e?.weekStartsOn??e?.locale?.options?.weekStartsOn??i.weekStartsOn??i.locale?.options?.weekStartsOn??0,s=Ie(t,e?.in);if(!sh(s))throw new RangeError("Invalid time value");let l=n.match(uX).map(d=>{let m=d[0];if(m==="p"||m==="P"){let f=Zf[m];return f(d,r.formatLong)}return d}).join("").match(dX).map(d=>{if(d==="''")return{isToken:!1,value:"'"};let m=d[0];if(m==="'")return{isToken:!1,value:fX(d)};if(Pk[m])return{isToken:!0,value:d};if(m.match(pX))throw new RangeError("Format string contains an unescaped latin alphabet character `"+m+"`");return{isToken:!1,value:d}});r.localize.preprocessor&&(l=r.localize.preprocessor(s,l));let c={firstWeekContainsDate:o,weekStartsOn:a,locale:r};return l.map(d=>{if(!d.isToken)return d.value;let m=d.value;(!e?.useAdditionalWeekYearTokens&&oy(m)||!e?.useAdditionalDayOfYearTokens&&ry(m))&&Xf(m,n,String(t));let f=Pk[m[0]];return f(s,m,r.localize,c)}).join("")}function fX(t){let n=t.match(mX);return n?n[1].replace(hX,"'"):t}function xV(t,n){let e=Ie(t,n?.in);if(isNaN(+e))throw new RangeError("Invalid time value");let i=n?.format??"extended",r=n?.representation??"complete",o="",a="",s=i==="extended"?"-":"",l=i==="extended"?":":"";if(r!=="time"){let c=wt(e.getDate(),2),d=wt(e.getMonth()+1,2);o=`${wt(e.getFullYear(),4)}${s}${d}${s}${c}`}if(r!=="date"){let c=e.getTimezoneOffset();if(c!==0){let w=Math.abs(c),x=wt(Math.trunc(w/60),2),D=wt(w%60,2);a=`${c<0?"+":"-"}${x}:${D}`}else a="Z";let d=wt(e.getHours(),2),m=wt(e.getMinutes(),2),f=wt(e.getSeconds(),2),b=o===""?"":"T",v=[d,m,f].join(l);o=`${o}${b}${v}${a}`}return o}function CV(t,n){return Ie(t,n?.in).getDate()}function wV(t,n){return Ie(t,n?.in).getDay()}function ay(t,n){let e=Ie(t,n?.in),i=e.getFullYear(),r=e.getMonth(),o=rt(e,0);return o.setFullYear(i,r+1,0),o.setHours(0,0,0,0),o.getDate()}function DV(){return Object.assign({},Yo())}function sy(t,n){return Ie(t,n?.in).getHours()}function EV(t,n){let e=Ie(t,n?.in).getDay();return e===0?7:e}function ly(t,n){return Ie(t,n?.in).getMinutes()}function MV(t,n){return Ie(t,n?.in).getMonth()}function kV(t){return Ie(t).getSeconds()}function SV(t,n){return Ie(t,n?.in).getFullYear()}function TV(t,n){let e=gX(n)?new n(0):rt(n,0);return e.setFullYear(t.getFullYear(),t.getMonth(),t.getDate()),e.setHours(t.getHours(),t.getMinutes(),t.getSeconds(),t.getMilliseconds()),e}function gX(t){return typeof t=="function"&&t.prototype?.constructor===t}var _X=10,cy=class{subPriority=0;validate(n,e){return!0}},dy=class extends cy{constructor(n,e,i,r,o){super(),this.value=n,this.validateValue=e,this.setValue=i,this.priority=r,o&&(this.subPriority=o)}validate(n,e){return this.validateValue(n,this.value,e)}set(n,e,i){return this.setValue(n,e,this.value,i)}},uy=class extends cy{priority=_X;subPriority=-1;constructor(n,e){super(),this.context=n||(i=>rt(e,i))}set(n,e){return e.timestampIsSet?n:rt(n,TV(n,this.context))}};var Pe=class{run(n,e,i,r){let o=this.parse(n,e,i,r);return o?{setter:new dy(o.value,this.validate,this.set,this.priority,this.subPriority),rest:o.rest}:null}validate(n,e,i){return!0}};var my=class extends Pe{priority=140;parse(n,e,i){switch(e){case"G":case"GG":case"GGG":return i.era(n,{width:"abbreviated"})||i.era(n,{width:"narrow"});case"GGGGG":return i.era(n,{width:"narrow"});case"GGGG":default:return i.era(n,{width:"wide"})||i.era(n,{width:"abbreviated"})||i.era(n,{width:"narrow"})}}set(n,e,i){return e.era=i,n.setFullYear(i,0,1),n.setHours(0,0,0,0),n}incompatibleTokens=["R","u","t","T"]};var Bt={month:/^(1[0-2]|0?\d)/,date:/^(3[0-1]|[0-2]?\d)/,dayOfYear:/^(36[0-6]|3[0-5]\d|[0-2]?\d?\d)/,week:/^(5[0-3]|[0-4]?\d)/,hour23h:/^(2[0-3]|[0-1]?\d)/,hour24h:/^(2[0-4]|[0-1]?\d)/,hour11h:/^(1[0-1]|0?\d)/,hour12h:/^(1[0-2]|0?\d)/,minute:/^[0-5]?\d/,second:/^[0-5]?\d/,singleDigit:/^\d/,twoDigits:/^\d{1,2}/,threeDigits:/^\d{1,3}/,fourDigits:/^\d{1,4}/,anyDigitsSigned:/^-?\d+/,singleDigitSigned:/^-?\d/,twoDigitsSigned:/^-?\d{1,2}/,threeDigitsSigned:/^-?\d{1,3}/,fourDigitsSigned:/^-?\d{1,4}/},Ko={basicOptionalMinutes:/^([+-])(\d{2})(\d{2})?|Z/,basic:/^([+-])(\d{2})(\d{2})|Z/,basicOptionalSeconds:/^([+-])(\d{2})(\d{2})((\d{2}))?|Z/,extended:/^([+-])(\d{2}):(\d{2})|Z/,extendedOptionalSeconds:/^([+-])(\d{2}):(\d{2})(:(\d{2}))?|Z/};function ci(t,n){return t&&{value:n(t.value),rest:t.rest}}function Nt(t,n){let e=n.match(t);return e?{value:parseInt(e[0],10),rest:n.slice(e[0].length)}:null}function Zo(t,n){let e=n.match(t);if(!e)return null;if(e[0]==="Z")return{value:0,rest:n.slice(1)};let i=e[1]==="+"?1:-1,r=e[2]?parseInt(e[2],10):0,o=e[3]?parseInt(e[3],10):0,a=e[5]?parseInt(e[5],10):0;return{value:i*(r*Jd+o*Xd+a*JL),rest:n.slice(e[0].length)}}function hy(t){return Nt(Bt.anyDigitsSigned,t)}function _t(t,n){switch(t){case 1:return Nt(Bt.singleDigit,n);case 2:return Nt(Bt.twoDigits,n);case 3:return Nt(Bt.threeDigits,n);case 4:return Nt(Bt.fourDigits,n);default:return Nt(new RegExp("^\\d{1,"+t+"}"),n)}}function mh(t,n){switch(t){case 1:return Nt(Bt.singleDigitSigned,n);case 2:return Nt(Bt.twoDigitsSigned,n);case 3:return Nt(Bt.threeDigitsSigned,n);case 4:return Nt(Bt.fourDigitsSigned,n);default:return Nt(new RegExp("^-?\\d{1,"+t+"}"),n)}}function hh(t){switch(t){case"morning":return 4;case"evening":return 17;case"pm":case"noon":case"afternoon":return 12;case"am":case"midnight":case"night":default:return 0}}function py(t,n){let e=n>0,i=e?n:1-n,r;if(i<=50)r=t||100;else{let o=i+50,a=Math.trunc(o/100)*100,s=t>=o%100;r=t+a-(s?100:0)}return e?r:1-r}function fy(t){return t%400===0||t%4===0&&t%100!==0}var gy=class extends Pe{priority=130;incompatibleTokens=["Y","R","u","w","I","i","e","c","t","T"];parse(n,e,i){let r=o=>({year:o,isTwoDigitYear:e==="yy"});switch(e){case"y":return ci(_t(4,n),r);case"yo":return ci(i.ordinalNumber(n,{unit:"year"}),r);default:return ci(_t(e.length,n),r)}}validate(n,e){return e.isTwoDigitYear||e.year>0}set(n,e,i){let r=n.getFullYear();if(i.isTwoDigitYear){let a=py(i.year,r);return n.setFullYear(a,0,1),n.setHours(0,0,0,0),n}let o=!("era"in e)||e.era===1?i.year:1-i.year;return n.setFullYear(o,0,1),n.setHours(0,0,0,0),n}};var _y=class extends Pe{priority=130;parse(n,e,i){let r=o=>({year:o,isTwoDigitYear:e==="YY"});switch(e){case"Y":return ci(_t(4,n),r);case"Yo":return ci(i.ordinalNumber(n,{unit:"year"}),r);default:return ci(_t(e.length,n),r)}}validate(n,e){return e.isTwoDigitYear||e.year>0}set(n,e,i,r){let o=ch(n,r);if(i.isTwoDigitYear){let s=py(i.year,o);return n.setFullYear(s,0,r.firstWeekContainsDate),n.setHours(0,0,0,0),Zn(n,r)}let a=!("era"in e)||e.era===1?i.year:1-i.year;return n.setFullYear(a,0,r.firstWeekContainsDate),n.setHours(0,0,0,0),Zn(n,r)}incompatibleTokens=["y","R","u","Q","q","M","L","I","d","D","i","t","T"]};var by=class extends Pe{priority=130;parse(n,e){return e==="R"?mh(4,n):mh(e.length,n)}set(n,e,i){let r=rt(n,0);return r.setFullYear(i,0,4),r.setHours(0,0,0,0),Oa(r)}incompatibleTokens=["G","y","Y","u","Q","q","M","L","w","d","D","e","c","t","T"]};var vy=class extends Pe{priority=130;parse(n,e){return e==="u"?mh(4,n):mh(e.length,n)}set(n,e,i){return n.setFullYear(i,0,1),n.setHours(0,0,0,0),n}incompatibleTokens=["G","y","Y","R","w","I","i","e","c","t","T"]};var yy=class extends Pe{priority=120;parse(n,e,i){switch(e){case"Q":case"QQ":return _t(e.length,n);case"Qo":return i.ordinalNumber(n,{unit:"quarter"});case"QQQ":return i.quarter(n,{width:"abbreviated",context:"formatting"})||i.quarter(n,{width:"narrow",context:"formatting"});case"QQQQQ":return i.quarter(n,{width:"narrow",context:"formatting"});case"QQQQ":default:return i.quarter(n,{width:"wide",context:"formatting"})||i.quarter(n,{width:"abbreviated",context:"formatting"})||i.quarter(n,{width:"narrow",context:"formatting"})}}validate(n,e){return e>=1&&e<=4}set(n,e,i){return n.setMonth((i-1)*3,1),n.setHours(0,0,0,0),n}incompatibleTokens=["Y","R","q","M","L","w","I","d","D","i","e","c","t","T"]};var xy=class extends Pe{priority=120;parse(n,e,i){switch(e){case"q":case"qq":return _t(e.length,n);case"qo":return i.ordinalNumber(n,{unit:"quarter"});case"qqq":return i.quarter(n,{width:"abbreviated",context:"standalone"})||i.quarter(n,{width:"narrow",context:"standalone"});case"qqqqq":return i.quarter(n,{width:"narrow",context:"standalone"});case"qqqq":default:return i.quarter(n,{width:"wide",context:"standalone"})||i.quarter(n,{width:"abbreviated",context:"standalone"})||i.quarter(n,{width:"narrow",context:"standalone"})}}validate(n,e){return e>=1&&e<=4}set(n,e,i){return n.setMonth((i-1)*3,1),n.setHours(0,0,0,0),n}incompatibleTokens=["Y","R","Q","M","L","w","I","d","D","i","e","c","t","T"]};var Cy=class extends Pe{incompatibleTokens=["Y","R","q","Q","L","w","I","D","i","e","c","t","T"];priority=110;parse(n,e,i){let r=o=>o-1;switch(e){case"M":return ci(Nt(Bt.month,n),r);case"MM":return ci(_t(2,n),r);case"Mo":return ci(i.ordinalNumber(n,{unit:"month"}),r);case"MMM":return i.month(n,{width:"abbreviated",context:"formatting"})||i.month(n,{width:"narrow",context:"formatting"});case"MMMMM":return i.month(n,{width:"narrow",context:"formatting"});case"MMMM":default:return i.month(n,{width:"wide",context:"formatting"})||i.month(n,{width:"abbreviated",context:"formatting"})||i.month(n,{width:"narrow",context:"formatting"})}}validate(n,e){return e>=0&&e<=11}set(n,e,i){return n.setMonth(i,1),n.setHours(0,0,0,0),n}};var wy=class extends Pe{priority=110;parse(n,e,i){let r=o=>o-1;switch(e){case"L":return ci(Nt(Bt.month,n),r);case"LL":return ci(_t(2,n),r);case"Lo":return ci(i.ordinalNumber(n,{unit:"month"}),r);case"LLL":return i.month(n,{width:"abbreviated",context:"standalone"})||i.month(n,{width:"narrow",context:"standalone"});case"LLLLL":return i.month(n,{width:"narrow",context:"standalone"});case"LLLL":default:return i.month(n,{width:"wide",context:"standalone"})||i.month(n,{width:"abbreviated",context:"standalone"})||i.month(n,{width:"narrow",context:"standalone"})}}validate(n,e){return e>=0&&e<=11}set(n,e,i){return n.setMonth(i,1),n.setHours(0,0,0,0),n}incompatibleTokens=["Y","R","q","Q","M","w","I","D","i","e","c","t","T"]};function IV(t,n,e){let i=Ie(t,e?.in),r=dh(i,e)-n;return i.setDate(i.getDate()-r*7),Ie(i,e?.in)}var Dy=class extends Pe{priority=100;parse(n,e,i){switch(e){case"w":return Nt(Bt.week,n);case"wo":return i.ordinalNumber(n,{unit:"week"});default:return _t(e.length,n)}}validate(n,e){return e>=1&&e<=53}set(n,e,i,r){return Zn(IV(n,i,r),r)}incompatibleTokens=["y","R","u","q","Q","M","L","I","d","D","i","t","T"]};function AV(t,n,e){let i=Ie(t,e?.in),r=ny(i,e)-n;return i.setDate(i.getDate()-r*7),i}var Ey=class extends Pe{priority=100;parse(n,e,i){switch(e){case"I":return Nt(Bt.week,n);case"Io":return i.ordinalNumber(n,{unit:"week"});default:return _t(e.length,n)}}validate(n,e){return e>=1&&e<=53}set(n,e,i){return Oa(AV(n,i))}incompatibleTokens=["y","Y","u","q","Q","M","L","w","d","D","e","c","t","T"]};var bX=[31,28,31,30,31,30,31,31,30,31,30,31],vX=[31,29,31,30,31,30,31,31,30,31,30,31],My=class extends Pe{priority=90;subPriority=1;parse(n,e,i){switch(e){case"d":return Nt(Bt.date,n);case"do":return i.ordinalNumber(n,{unit:"date"});default:return _t(e.length,n)}}validate(n,e){let i=n.getFullYear(),r=fy(i),o=n.getMonth();return r?e>=1&&e<=vX[o]:e>=1&&e<=bX[o]}set(n,e,i){return n.setDate(i),n.setHours(0,0,0,0),n}incompatibleTokens=["Y","R","q","Q","w","I","D","i","e","c","t","T"]};var ky=class extends Pe{priority=90;subpriority=1;parse(n,e,i){switch(e){case"D":case"DD":return Nt(Bt.dayOfYear,n);case"Do":return i.ordinalNumber(n,{unit:"date"});default:return _t(e.length,n)}}validate(n,e){let i=n.getFullYear();return fy(i)?e>=1&&e<=366:e>=1&&e<=365}set(n,e,i){return n.setMonth(0,i),n.setHours(0,0,0,0),n}incompatibleTokens=["Y","R","q","Q","M","L","w","I","d","E","i","e","c","t","T"]};function ph(t,n,e){let i=Yo(),r=e?.weekStartsOn??e?.locale?.options?.weekStartsOn??i.weekStartsOn??i.locale?.options?.weekStartsOn??0,o=Ie(t,e?.in),a=o.getDay(),l=(n%7+7)%7,c=7-r,d=n<0||n>6?n-(a+c)%7:(l+c)%7-(a+c)%7;return oh(o,d,e)}var Sy=class extends Pe{priority=90;parse(n,e,i){switch(e){case"E":case"EE":case"EEE":return i.day(n,{width:"abbreviated",context:"formatting"})||i.day(n,{width:"short",context:"formatting"})||i.day(n,{width:"narrow",context:"formatting"});case"EEEEE":return i.day(n,{width:"narrow",context:"formatting"});case"EEEEEE":return i.day(n,{width:"short",context:"formatting"})||i.day(n,{width:"narrow",context:"formatting"});case"EEEE":default:return i.day(n,{width:"wide",context:"formatting"})||i.day(n,{width:"abbreviated",context:"formatting"})||i.day(n,{width:"short",context:"formatting"})||i.day(n,{width:"narrow",context:"formatting"})}}validate(n,e){return e>=0&&e<=6}set(n,e,i,r){return n=ph(n,i,r),n.setHours(0,0,0,0),n}incompatibleTokens=["D","i","e","c","t","T"]};var Ty=class extends Pe{priority=90;parse(n,e,i,r){let o=a=>{let s=Math.floor((a-1)/7)*7;return(a+r.weekStartsOn+6)%7+s};switch(e){case"e":case"ee":return ci(_t(e.length,n),o);case"eo":return ci(i.ordinalNumber(n,{unit:"day"}),o);case"eee":return i.day(n,{width:"abbreviated",context:"formatting"})||i.day(n,{width:"short",context:"formatting"})||i.day(n,{width:"narrow",context:"formatting"});case"eeeee":return i.day(n,{width:"narrow",context:"formatting"});case"eeeeee":return i.day(n,{width:"short",context:"formatting"})||i.day(n,{width:"narrow",context:"formatting"});case"eeee":default:return i.day(n,{width:"wide",context:"formatting"})||i.day(n,{width:"abbreviated",context:"formatting"})||i.day(n,{width:"short",context:"formatting"})||i.day(n,{width:"narrow",context:"formatting"})}}validate(n,e){return e>=0&&e<=6}set(n,e,i,r){return n=ph(n,i,r),n.setHours(0,0,0,0),n}incompatibleTokens=["y","R","u","q","Q","M","L","I","d","D","E","i","c","t","T"]};var Iy=class extends Pe{priority=90;parse(n,e,i,r){let o=a=>{let s=Math.floor((a-1)/7)*7;return(a+r.weekStartsOn+6)%7+s};switch(e){case"c":case"cc":return ci(_t(e.length,n),o);case"co":return ci(i.ordinalNumber(n,{unit:"day"}),o);case"ccc":return i.day(n,{width:"abbreviated",context:"standalone"})||i.day(n,{width:"short",context:"standalone"})||i.day(n,{width:"narrow",context:"standalone"});case"ccccc":return i.day(n,{width:"narrow",context:"standalone"});case"cccccc":return i.day(n,{width:"short",context:"standalone"})||i.day(n,{width:"narrow",context:"standalone"});case"cccc":default:return i.day(n,{width:"wide",context:"standalone"})||i.day(n,{width:"abbreviated",context:"standalone"})||i.day(n,{width:"short",context:"standalone"})||i.day(n,{width:"narrow",context:"standalone"})}}validate(n,e){return e>=0&&e<=6}set(n,e,i,r){return n=ph(n,i,r),n.setHours(0,0,0,0),n}incompatibleTokens=["y","R","u","q","Q","M","L","I","d","D","E","i","e","t","T"]};function OV(t,n,e){let i=Ie(t,e?.in),r=EV(i,e),o=n-r;return oh(i,o,e)}var Ay=class extends Pe{priority=90;parse(n,e,i){let r=o=>o===0?7:o;switch(e){case"i":case"ii":return _t(e.length,n);case"io":return i.ordinalNumber(n,{unit:"day"});case"iii":return ci(i.day(n,{width:"abbreviated",context:"formatting"})||i.day(n,{width:"short",context:"formatting"})||i.day(n,{width:"narrow",context:"formatting"}),r);case"iiiii":return ci(i.day(n,{width:"narrow",context:"formatting"}),r);case"iiiiii":return ci(i.day(n,{width:"short",context:"formatting"})||i.day(n,{width:"narrow",context:"formatting"}),r);case"iiii":default:return ci(i.day(n,{width:"wide",context:"formatting"})||i.day(n,{width:"abbreviated",context:"formatting"})||i.day(n,{width:"short",context:"formatting"})||i.day(n,{width:"narrow",context:"formatting"}),r)}}validate(n,e){return e>=1&&e<=7}set(n,e,i){return n=OV(n,i),n.setHours(0,0,0,0),n}incompatibleTokens=["y","Y","u","q","Q","M","L","w","d","D","E","e","c","t","T"]};var Oy=class extends Pe{priority=80;parse(n,e,i){switch(e){case"a":case"aa":case"aaa":return i.dayPeriod(n,{width:"abbreviated",context:"formatting"})||i.dayPeriod(n,{width:"narrow",context:"formatting"});case"aaaaa":return i.dayPeriod(n,{width:"narrow",context:"formatting"});case"aaaa":default:return i.dayPeriod(n,{width:"wide",context:"formatting"})||i.dayPeriod(n,{width:"abbreviated",context:"formatting"})||i.dayPeriod(n,{width:"narrow",context:"formatting"})}}set(n,e,i){return n.setHours(hh(i),0,0,0),n}incompatibleTokens=["b","B","H","k","t","T"]};var Ry=class extends Pe{priority=80;parse(n,e,i){switch(e){case"b":case"bb":case"bbb":return i.dayPeriod(n,{width:"abbreviated",context:"formatting"})||i.dayPeriod(n,{width:"narrow",context:"formatting"});case"bbbbb":return i.dayPeriod(n,{width:"narrow",context:"formatting"});case"bbbb":default:return i.dayPeriod(n,{width:"wide",context:"formatting"})||i.dayPeriod(n,{width:"abbreviated",context:"formatting"})||i.dayPeriod(n,{width:"narrow",context:"formatting"})}}set(n,e,i){return n.setHours(hh(i),0,0,0),n}incompatibleTokens=["a","B","H","k","t","T"]};var Py=class extends Pe{priority=80;parse(n,e,i){switch(e){case"B":case"BB":case"BBB":return i.dayPeriod(n,{width:"abbreviated",context:"formatting"})||i.dayPeriod(n,{width:"narrow",context:"formatting"});case"BBBBB":return i.dayPeriod(n,{width:"narrow",context:"formatting"});case"BBBB":default:return i.dayPeriod(n,{width:"wide",context:"formatting"})||i.dayPeriod(n,{width:"abbreviated",context:"formatting"})||i.dayPeriod(n,{width:"narrow",context:"formatting"})}}set(n,e,i){return n.setHours(hh(i),0,0,0),n}incompatibleTokens=["a","b","t","T"]};var Fy=class extends Pe{priority=70;parse(n,e,i){switch(e){case"h":return Nt(Bt.hour12h,n);case"ho":return i.ordinalNumber(n,{unit:"hour"});default:return _t(e.length,n)}}validate(n,e){return e>=1&&e<=12}set(n,e,i){let r=n.getHours()>=12;return r&&i<12?n.setHours(i+12,0,0,0):!r&&i===12?n.setHours(0,0,0,0):n.setHours(i,0,0,0),n}incompatibleTokens=["H","K","k","t","T"]};var Ny=class extends Pe{priority=70;parse(n,e,i){switch(e){case"H":return Nt(Bt.hour23h,n);case"Ho":return i.ordinalNumber(n,{unit:"hour"});default:return _t(e.length,n)}}validate(n,e){return e>=0&&e<=23}set(n,e,i){return n.setHours(i,0,0,0),n}incompatibleTokens=["a","b","h","K","k","t","T"]};var Ly=class extends Pe{priority=70;parse(n,e,i){switch(e){case"K":return Nt(Bt.hour11h,n);case"Ko":return i.ordinalNumber(n,{unit:"hour"});default:return _t(e.length,n)}}validate(n,e){return e>=0&&e<=11}set(n,e,i){return n.getHours()>=12&&i<12?n.setHours(i+12,0,0,0):n.setHours(i,0,0,0),n}incompatibleTokens=["h","H","k","t","T"]};var Vy=class extends Pe{priority=70;parse(n,e,i){switch(e){case"k":return Nt(Bt.hour24h,n);case"ko":return i.ordinalNumber(n,{unit:"hour"});default:return _t(e.length,n)}}validate(n,e){return e>=1&&e<=24}set(n,e,i){let r=i<=24?i%24:i;return n.setHours(r,0,0,0),n}incompatibleTokens=["a","b","h","H","K","t","T"]};var By=class extends Pe{priority=60;parse(n,e,i){switch(e){case"m":return Nt(Bt.minute,n);case"mo":return i.ordinalNumber(n,{unit:"minute"});default:return _t(e.length,n)}}validate(n,e){return e>=0&&e<=59}set(n,e,i){return n.setMinutes(i,0,0),n}incompatibleTokens=["t","T"]};var jy=class extends Pe{priority=50;parse(n,e,i){switch(e){case"s":return Nt(Bt.second,n);case"so":return i.ordinalNumber(n,{unit:"second"});default:return _t(e.length,n)}}validate(n,e){return e>=0&&e<=59}set(n,e,i){return n.setSeconds(i,0),n}incompatibleTokens=["t","T"]};var Hy=class extends Pe{priority=30;parse(n,e){let i=r=>Math.trunc(r*Math.pow(10,-e.length+3));return ci(_t(e.length,n),i)}set(n,e,i){return n.setMilliseconds(i),n}incompatibleTokens=["t","T"]};var zy=class extends Pe{priority=10;parse(n,e){switch(e){case"X":return Zo(Ko.basicOptionalMinutes,n);case"XX":return Zo(Ko.basic,n);case"XXXX":return Zo(Ko.basicOptionalSeconds,n);case"XXXXX":return Zo(Ko.extendedOptionalSeconds,n);case"XXX":default:return Zo(Ko.extended,n)}}set(n,e,i){return e.timestampIsSet?n:rt(n,n.getTime()-eu(n)-i)}incompatibleTokens=["t","T","x"]};var Uy=class extends Pe{priority=10;parse(n,e){switch(e){case"x":return Zo(Ko.basicOptionalMinutes,n);case"xx":return Zo(Ko.basic,n);case"xxxx":return Zo(Ko.basicOptionalSeconds,n);case"xxxxx":return Zo(Ko.extendedOptionalSeconds,n);case"xxx":default:return Zo(Ko.extended,n)}}set(n,e,i){return e.timestampIsSet?n:rt(n,n.getTime()-eu(n)-i)}incompatibleTokens=["t","T","X"]};var $y=class extends Pe{priority=40;parse(n){return hy(n)}set(n,e,i){return[rt(n,i*1e3),{timestampIsSet:!0}]}incompatibleTokens="*"};var Wy=class extends Pe{priority=20;parse(n){return hy(n)}set(n,e,i){return[rt(n,i),{timestampIsSet:!0}]}incompatibleTokens="*"};var RV={G:new my,y:new gy,Y:new _y,R:new by,u:new vy,Q:new yy,q:new xy,M:new Cy,L:new wy,w:new Dy,I:new Ey,d:new My,D:new ky,E:new Sy,e:new Ty,c:new Iy,i:new Ay,a:new Oy,b:new Ry,B:new Py,h:new Fy,H:new Ny,K:new Ly,k:new Vy,m:new By,s:new jy,S:new Hy,X:new zy,x:new Uy,t:new $y,T:new Wy};var yX=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,xX=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,CX=/^'([^]*?)'?$/,wX=/''/g,DX=/\S/,EX=/[a-zA-Z]/;function PV(t,n,e,i){let r=()=>rt(i?.in||e,NaN),o=DV(),a=i?.locale??o.locale??tu,s=i?.firstWeekContainsDate??i?.locale?.options?.firstWeekContainsDate??o.firstWeekContainsDate??o.locale?.options?.firstWeekContainsDate??1,l=i?.weekStartsOn??i?.locale?.options?.weekStartsOn??o.weekStartsOn??o.locale?.options?.weekStartsOn??0;if(!n)return t?r():Ie(e,i?.in);let c={firstWeekContainsDate:s,weekStartsOn:l,locale:a},d=[new uy(i?.in,e)],m=n.match(xX).map(x=>{let D=x[0];if(D in Zf){let P=Zf[D];return P(x,a.formatLong)}return x}).join("").match(yX),f=[];for(let x of m){!i?.useAdditionalWeekYearTokens&&oy(x)&&Xf(x,n,t),!i?.useAdditionalDayOfYearTokens&&ry(x)&&Xf(x,n,t);let D=x[0],P=RV[D];if(P){let{incompatibleTokens:W}=P;if(Array.isArray(W)){let K=f.find(re=>W.includes(re.token)||re.token===D);if(K)throw new RangeError(`The format string mustn't contain \`${K.fullToken}\` and \`${x}\` at the same time`)}else if(P.incompatibleTokens==="*"&&f.length>0)throw new RangeError(`The format string mustn't contain \`${x}\` and any other token at the same time`);f.push({token:D,fullToken:x});let Z=P.run(t,x,a.match,c);if(!Z)return r();d.push(Z.setter),t=Z.rest}else{if(D.match(EX))throw new RangeError("Format string contains an unescaped latin alphabet character `"+D+"`");if(x==="''"?x="'":D==="'"&&(x=MX(x)),t.indexOf(x)===0)t=t.slice(x.length);else return r()}}if(t.length>0&&DX.test(t))return r();let b=d.map(x=>x.priority).sort((x,D)=>D-x).filter((x,D,P)=>P.indexOf(x)===D).map(x=>d.filter(D=>D.priority===x).sort((D,P)=>P.subPriority-D.subPriority)).map(x=>x[0]),v=Ie(e,i?.in);if(isNaN(+v))return r();let w={};for(let x of b){if(!x.validate(v,c))return r();let D=x.set(v,w,c);Array.isArray(D)?(v=D[0],Object.assign(w,D[1])):v=D}return v}function MX(t){return t.match(CX)[1].replace(wX,"'")}function FV(t,n,e){let[i,r]=ty(e?.in,t,n);return+Zn(i,e)==+Zn(r,e)}function Nk(t,n){let e=()=>rt(n?.in,NaN),i=n?.additionalDigits??2,r=IX(t),o;if(r.date){let c=AX(r.date,i);o=OX(c.restDateString,c.year)}if(!o||isNaN(+o))return e();let a=+o,s=0,l;if(r.time&&(s=RX(r.time),isNaN(s)))return e();if(r.timezone){if(l=PX(r.timezone),isNaN(l))return e()}else{let c=new Date(a+s),d=Ie(0,n?.in);return d.setFullYear(c.getUTCFullYear(),c.getUTCMonth(),c.getUTCDate()),d.setHours(c.getUTCHours(),c.getUTCMinutes(),c.getUTCSeconds(),c.getUTCMilliseconds()),d}return Ie(a+s+l,n?.in)}var Gy={dateTimeDelimiter:/[T ]/,timeZoneDelimiter:/[Z ]/i,timezone:/([Z+-].*)$/},kX=/^-?(?:(\d{3})|(\d{2})(?:-?(\d{2}))?|W(\d{2})(?:-?(\d{1}))?|)$/,SX=/^(\d{2}(?:[.,]\d*)?)(?::?(\d{2}(?:[.,]\d*)?))?(?::?(\d{2}(?:[.,]\d*)?))?$/,TX=/^([+-])(\d{2})(?::?(\d{2}))?$/;function IX(t){let n={},e=t.split(Gy.dateTimeDelimiter),i;if(e.length>2)return n;if(/:/.test(e[0])?i=e[0]:(n.date=e[0],i=e[1],Gy.timeZoneDelimiter.test(n.date)&&(n.date=t.split(Gy.timeZoneDelimiter)[0],i=t.substr(n.date.length,t.length))),i){let r=Gy.timezone.exec(i);r?(n.time=i.replace(r[1],""),n.timezone=r[1]):n.time=i}return n}function AX(t,n){let e=new RegExp("^(?:(\\d{4}|[+-]\\d{"+(4+n)+"})|(\\d{2}|[+-]\\d{"+(2+n)+"})$)"),i=t.match(e);if(!i)return{year:NaN,restDateString:""};let r=i[1]?parseInt(i[1]):null,o=i[2]?parseInt(i[2]):null;return{year:o===null?r:o*100,restDateString:t.slice((i[1]||i[2]).length)}}function OX(t,n){if(n===null)return new Date(NaN);let e=t.match(kX);if(!e)return new Date(NaN);let i=!!e[4],r=Jf(e[1]),o=Jf(e[2])-1,a=Jf(e[3]),s=Jf(e[4]),l=Jf(e[5])-1;if(i)return BX(n,s,l)?FX(n,s,l):new Date(NaN);{let c=new Date(0);return!LX(n,o,a)||!VX(n,r)?new Date(NaN):(c.setUTCFullYear(n,o,Math.max(r,a)),c)}}function Jf(t){return t?parseInt(t):1}function RX(t){let n=t.match(SX);if(!n)return NaN;let e=Fk(n[1]),i=Fk(n[2]),r=Fk(n[3]);return jX(e,i,r)?e*Jd+i*Xd+r*1e3:NaN}function Fk(t){return t&&parseFloat(t.replace(",","."))||0}function PX(t){if(t==="Z")return 0;let n=t.match(TX);if(!n)return 0;let e=n[1]==="+"?-1:1,i=parseInt(n[2]),r=n[3]&&parseInt(n[3])||0;return HX(i,r)?e*(i*Jd+r*Xd):NaN}function FX(t,n,e){let i=new Date(0);i.setUTCFullYear(t,0,4);let r=i.getUTCDay()||7,o=(n-1)*7+e+1-r;return i.setUTCDate(i.getUTCDate()+o),i}var NX=[31,null,31,30,31,30,31,31,30,31,30,31];function NV(t){return t%400===0||t%4===0&&t%100!==0}function LX(t,n,e){return n>=0&&n<=11&&e>=1&&e<=(NX[n]||(NV(t)?29:28))}function VX(t,n){return n>=1&&n<=(NV(t)?366:365)}function BX(t,n,e){return n>=1&&n<=53&&e>=0&&e<=6}function jX(t,n,e){return t===24?n===0&&e===0:e>=0&&e<60&&n>=0&&n<60&&t>=0&&t<25}function HX(t,n){return n>=0&&n<=59}function LV(t,n,e){let i=Ie(t,e?.in),r=i.getFullYear(),o=i.getDate(),a=rt(e?.in||t,0);a.setFullYear(r,n,15),a.setHours(0,0,0,0);let s=ay(a);return i.setMonth(n,Math.min(o,s)),i}function VV(t,n,e){let i=Ie(t,e?.in);return isNaN(+i)?rt(e?.in||t,NaN):(n.year!=null&&i.setFullYear(n.year),n.month!=null&&(i=LV(i,n.month)),n.date!=null&&i.setDate(n.date),n.hours!=null&&i.setHours(n.hours),n.minutes!=null&&i.setMinutes(n.minutes),n.seconds!=null&&i.setSeconds(n.seconds),n.milliseconds!=null&&i.setMilliseconds(n.milliseconds),i)}function Lk(t,n){let e=Array(t);for(let i=0;i{class t extends Li{constructor(){super();let e=u(ys,{optional:!0});this.setLocale(e)}getYear(e){return SV(e)}getMonth(e){return MV(e)}getDate(e){return CV(e)}getDayOfWeek(e){return wV(e)}getMonthNames(e){let i=zX[e];return Lk(12,r=>this.format(new Date(2017,r,1),i))}getDateNames(){let e=typeof Intl<"u"?new Intl.DateTimeFormat(this.locale.code,{day:"numeric",timeZone:"utc"}):null;return Lk(31,i=>{if(e){let r=new Date;return r.setUTCFullYear(2017,0,i+1),r.setUTCHours(0,0,0,0),e.format(r).replace(/[\u200e\u200f]/g,"")}return i+""})}getDayOfWeekNames(e){let i=UX[e];return Lk(7,r=>this.format(new Date(2017,0,r+1),i))}getYearName(e){return this.format(e,"y")}getFirstDayOfWeek(){return this.locale.options?.weekStartsOn??0}getNumDaysInMonth(e){return ay(e)}clone(e){return new Date(e.getTime())}createDate(e,i,r){let o=new Date;return o.setFullYear(e,i,r),o.setHours(0,0,0,0),o.getMonth()!=i,o}today(){return new Date}parse(e,i){return this._parse(e,i)}format(e,i){if(!this.isValid(e))throw Error("DateFnsAdapter: Cannot format invalid date.");return yV(e,i,{locale:this.locale})}addCalendarYears(e,i){return aV(e,i)}addCalendarMonths(e,i){return ah(e,i)}addCalendarDays(e,i){return oh(e,i)}toIso8601(e){return xV(e,{representation:"date"})}deserialize(e){if(typeof e=="string"){if(!e)return null;let i=Nk(e);if(this.isValid(i))return i}return super.deserialize(e)}isDateInstance(e){return iy(e)}isValid(e){return sh(e)}invalid(){return new Date(NaN)}setTime(e,i,r,o){return VV(this.clone(e),{hours:i,minutes:r,seconds:o,milliseconds:0})}getHours(e){return sy(e)}getMinutes(e){return ly(e)}getSeconds(e){return kV(e)}parseTime(e,i){return this._parse(e,i,!1)}addSeconds(e,i){return oV(e,i)}_parse(e,i,r=!0){if(typeof e=="string"&&e.length>0){if(r){let a=Nk(e);if(this.isValid(a))return a}let o=Array.isArray(i)?i:[i];if(!i.length)throw Error("Formats array must not be empty.");for(let a of o){let s=PV(e,a,new Date,{locale:this.locale});if(this.isValid(s))return s}return this.invalid()}else{if(typeof e=="number")return new Date(e);if(e instanceof Date)return this.clone(e)}return null}static \u0275fac=function(i){return new(i||t)};static \u0275prov=O({token:t,factory:t.\u0275fac})}return t})(),$X={parse:{dateInput:"P",timeInput:"p"},display:{dateInput:"P",timeInput:"p",monthYearLabel:"LLL uuuu",dateA11yLabel:"PP",monthYearA11yLabel:"LLLL uuuu",timeOptionLabel:"p"}};function BV(t=$X){return[{provide:Li,useClass:Vk,deps:[ys]},{provide:xs,useValue:t}]}var WX=["*"];var GX=[[["","mat-card-avatar",""],["","matCardAvatar",""]],[["mat-card-title"],["mat-card-subtitle"],["","mat-card-title",""],["","mat-card-subtitle",""],["","matCardTitle",""],["","matCardSubtitle",""]],"*"],qX=["[mat-card-avatar], [matCardAvatar]",`mat-card-title, mat-card-subtitle, + `)}`:"",this.name="UnsubscriptionError",this.errors=e});function dd(t,n){if(t){let e=t.indexOf(n);0<=e&&t.splice(e,1)}}var Te=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 o of e)o.remove(this);else e.remove(this);let{initialTeardown:i}=this;if(Ke(i))try{i()}catch(o){n=o instanceof V_?o.errors:[o]}let{_finalizers:r}=this;if(r){this._finalizers=null;for(let o of r)try{kA(o)}catch(a){n=n??[],a instanceof V_?n=[...n,...a.errors]:n.push(a)}}if(n)throw new V_(n)}}add(n){var e;if(n&&n!==this)if(this.closed)kA(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)&&dd(e,n)}remove(n){let{_finalizers:e}=this;e&&dd(e,n),n instanceof t&&n._removeParent(this)}};Te.EMPTY=(()=>{let t=new Te;return t.closed=!0,t})();var Bw=Te.EMPTY;function B_(t){return t instanceof Te||t&&"closed"in t&&Ke(t.remove)&&Ke(t.add)&&Ke(t.unsubscribe)}function kA(t){Ke(t)?t():t.unsubscribe()}var fa={onUnhandledError:null,onStoppedNotification:null,Promise:void 0,useDeprecatedSynchronousErrorHandling:!1,useDeprecatedNextContext:!1};var zu={setTimeout(t,n,...e){let{delegate:i}=zu;return i?.setTimeout?i.setTimeout(t,n,...e):setTimeout(t,n,...e)},clearTimeout(t){let{delegate:n}=zu;return(n?.clearTimeout||clearTimeout)(t)},delegate:void 0};function j_(t){zu.setTimeout(()=>{let{onUnhandledError:n}=fa;if(n)n(t);else throw t})}function ud(){}var TA=jw("C",void 0,void 0);function IA(t){return jw("E",void 0,t)}function AA(t){return jw("N",t,void 0)}function jw(t,n,e){return{kind:t,value:n,error:e}}var md=null;function Uu(t){if(fa.useDeprecatedSynchronousErrorHandling){let n=!md;if(n&&(md={errorThrown:!1,error:null}),t(),n){let{errorThrown:e,error:i}=md;if(md=null,e)throw i}}else t()}function OA(t){fa.useDeprecatedSynchronousErrorHandling&&md&&(md.errorThrown=!0,md.error=t)}var hd=class extends Te{constructor(n){super(),this.isStopped=!1,n?(this.destination=n,B_(n)&&n.add(this)):this.destination=GU}static create(n,e,i){return new js(n,e,i)}next(n){this.isStopped?zw(AA(n),this):this._next(n)}error(n){this.isStopped?zw(IA(n),this):(this.isStopped=!0,this._error(n))}complete(){this.isStopped?zw(TA,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()}}},$U=Function.prototype.bind;function Hw(t,n){return $U.call(t,n)}var Uw=class{constructor(n){this.partialObserver=n}next(n){let{partialObserver:e}=this;if(e.next)try{e.next(n)}catch(i){H_(i)}}error(n){let{partialObserver:e}=this;if(e.error)try{e.error(n)}catch(i){H_(i)}else H_(n)}complete(){let{partialObserver:n}=this;if(n.complete)try{n.complete()}catch(e){H_(e)}}},js=class extends hd{constructor(n,e,i){super();let r;if(Ke(n)||!n)r={next:n??void 0,error:e??void 0,complete:i??void 0};else{let o;this&&fa.useDeprecatedNextContext?(o=Object.create(n),o.unsubscribe=()=>this.unsubscribe(),r={next:n.next&&Hw(n.next,o),error:n.error&&Hw(n.error,o),complete:n.complete&&Hw(n.complete,o)}):r=n}this.destination=new Uw(r)}};function H_(t){fa.useDeprecatedSynchronousErrorHandling?OA(t):j_(t)}function WU(t){throw t}function zw(t,n){let{onStoppedNotification:e}=fa;e&&zu.setTimeout(()=>e(t,n))}var GU={closed:!0,next:ud,error:WU,complete:ud};var $u=typeof Symbol=="function"&&Symbol.observable||"@@observable";function Ir(t){return t}function $w(...t){return Ww(t)}function Ww(t){return t.length===0?Ir:t.length===1?t[0]:function(e){return t.reduce((i,r)=>r(i),e)}}var Fe=(()=>{class t{constructor(e){e&&(this._subscribe=e)}lift(e){let i=new t;return i.source=this,i.operator=e,i}subscribe(e,i,r){let o=YU(e)?e:new js(e,i,r);return Uu(()=>{let{operator:a,source:s}=this;o.add(a?a.call(o,s):s?this._subscribe(o):this._trySubscribe(o))}),o}_trySubscribe(e){try{return this._subscribe(e)}catch(i){e.error(i)}}forEach(e,i){return i=RA(i),new i((r,o)=>{let a=new js({next:s=>{try{e(s)}catch(l){o(l),a.unsubscribe()}},error:o,complete:r});this.subscribe(a)})}_subscribe(e){var i;return(i=this.source)===null||i===void 0?void 0:i.subscribe(e)}[$u](){return this}pipe(...e){return Ww(e)(this)}toPromise(e){return e=RA(e),new e((i,r)=>{let o;this.subscribe(a=>o=a,a=>r(a),()=>i(o))})}}return t.create=n=>new t(n),t})();function RA(t){var n;return(n=t??fa.Promise)!==null&&n!==void 0?n:Promise}function qU(t){return t&&Ke(t.next)&&Ke(t.error)&&Ke(t.complete)}function YU(t){return t&&t instanceof hd||qU(t)&&B_(t)}function Gw(t){return Ke(t?.lift)}function Qe(t){return n=>{if(Gw(n))return n.lift(function(e){try{return t(e,this)}catch(i){this.error(i)}});throw new TypeError("Unable to lift unknown Observable type")}}function $e(t,n,e,i,r){return new qw(t,n,e,i,r)}var qw=class extends hd{constructor(n,e,i,r,o,a){super(n),this.onFinalize=o,this.shouldUnsubscribe=a,this._next=e?function(s){try{e(s)}catch(l){n.error(l)}}:super._next,this._error=r?function(s){try{r(s)}catch(l){n.error(l)}finally{this.unsubscribe()}}:super._error,this._complete=i?function(){try{i()}catch(s){n.error(s)}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 Wu(){return Qe((t,n)=>{let e=null;t._refCount++;let i=$e(n,void 0,void 0,void 0,()=>{if(!t||t._refCount<=0||0<--t._refCount){e=null;return}let r=t._connection,o=e;e=null,r&&(!o||r===o)&&r.unsubscribe(),n.unsubscribe()});t.subscribe(i),i.closed||(e=t.connect())})}var Rl=class extends Fe{constructor(n,e){super(),this.source=n,this.subjectFactory=e,this._subject=null,this._refCount=0,this._connection=null,Gw(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 Te;let e=this.getSubject();n.add(this.source.subscribe($e(e,void 0,()=>{this._teardown(),e.complete()},i=>{this._teardown(),e.error(i)},()=>this._teardown()))),n.closed&&(this._connection=null,n=Te.EMPTY)}return n}refCount(){return Wu()(this)}};var Gu={schedule(t){let n=requestAnimationFrame,e=cancelAnimationFrame,{delegate:i}=Gu;i&&(n=i.requestAnimationFrame,e=i.cancelAnimationFrame);let r=n(o=>{e=void 0,t(o)});return new Te(()=>e?.(r))},requestAnimationFrame(...t){let{delegate:n}=Gu;return(n?.requestAnimationFrame||requestAnimationFrame)(...t)},cancelAnimationFrame(...t){let{delegate:n}=Gu;return(n?.cancelAnimationFrame||cancelAnimationFrame)(...t)},delegate:void 0};var PA=Ol(t=>function(){t(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"});var z=(()=>{class t extends Fe{constructor(){super(),this.closed=!1,this.currentObservers=null,this.observers=[],this.isStopped=!1,this.hasError=!1,this.thrownError=null}lift(e){let i=new z_(this,this);return i.operator=e,i}_throwIfClosed(){if(this.closed)throw new PA}next(e){Uu(()=>{if(this._throwIfClosed(),!this.isStopped){this.currentObservers||(this.currentObservers=Array.from(this.observers));for(let i of this.currentObservers)i.next(e)}})}error(e){Uu(()=>{if(this._throwIfClosed(),!this.isStopped){this.hasError=this.isStopped=!0,this.thrownError=e;let{observers:i}=this;for(;i.length;)i.shift().error(e)}})}complete(){Uu(()=>{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:i,isStopped:r,observers:o}=this;return i||r?Bw:(this.currentObservers=null,o.push(e),new Te(()=>{this.currentObservers=null,dd(o,e)}))}_checkFinalizedStatuses(e){let{hasError:i,thrownError:r,isStopped:o}=this;i?e.error(r):o&&e.complete()}asObservable(){let e=new Fe;return e.source=this,e}}return t.create=(n,e)=>new z_(n,e),t})(),z_=class extends z{constructor(n,e){super(),this.destination=n,this.source=e}next(n){var e,i;(i=(e=this.destination)===null||e===void 0?void 0:e.next)===null||i===void 0||i.call(e,n)}error(n){var e,i;(i=(e=this.destination)===null||e===void 0?void 0:e.error)===null||i===void 0||i.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,i;return(i=(e=this.source)===null||e===void 0?void 0:e.subscribe(n))!==null&&i!==void 0?i:Bw}};var it=class extends z{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:i}=this;if(n)throw e;return this._throwIfClosed(),i}next(n){super.next(this._value=n)}};var Cp={now(){return(Cp.delegate||Date).now()},delegate:void 0};var Wa=class extends z{constructor(n=1/0,e=1/0,i=Cp){super(),this._bufferSize=n,this._windowTime=e,this._timestampProvider=i,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:i,_infiniteTimeWindow:r,_timestampProvider:o,_windowTime:a}=this;e||(i.push(n),!r&&i.push(o.now()+a)),this._trimBuffer(),super.next(n)}_subscribe(n){this._throwIfClosed(),this._trimBuffer();let e=this._innerSubscribe(n),{_infiniteTimeWindow:i,_buffer:r}=this,o=r.slice();for(let a=0;aFA(n)&&t()),n},clearImmediate(t){FA(t)}};var{setImmediate:KU,clearImmediate:ZU}=NA,Dp={setImmediate(...t){let{delegate:n}=Dp;return(n?.setImmediate||KU)(...t)},clearImmediate(t){let{delegate:n}=Dp;return(n?.clearImmediate||ZU)(t)},delegate:void 0};var $_=class extends Pl{constructor(n,e){super(n,e),this.scheduler=n,this.work=e}requestAsyncId(n,e,i=0){return i!==null&&i>0?super.requestAsyncId(n,e,i):(n.actions.push(this),n._scheduled||(n._scheduled=Dp.setImmediate(n.flush.bind(n,void 0))))}recycleAsyncId(n,e,i=0){var r;if(i!=null?i>0:this.delay>0)return super.recycleAsyncId(n,e,i);let{actions:o}=n;e!=null&&((r=o[o.length-1])===null||r===void 0?void 0:r.id)!==e&&(Dp.clearImmediate(e),n._scheduled===e&&(n._scheduled=void 0))}};var qu=class t{constructor(n,e=t.now){this.schedulerActionCtor=n,this.now=e}schedule(n,e=0,i){return new this.schedulerActionCtor(this,n).schedule(i,e)}};qu.now=Cp.now;var Fl=class extends qu{constructor(n,e=qu.now){super(n,e),this.actions=[],this._active=!1}flush(n){let{actions:e}=this;if(this._active){e.push(n);return}let i;this._active=!0;do if(i=n.execute(n.state,n.delay))break;while(n=e.shift());if(this._active=!1,i){for(;n=e.shift();)n.unsubscribe();throw i}}};var W_=class extends Fl{flush(n){this._active=!0;let e=this._scheduled;this._scheduled=void 0;let{actions:i}=this,r;n=n||i.shift();do if(r=n.execute(n.state,n.delay))break;while((n=i[0])&&n.id===e&&i.shift());if(this._active=!1,r){for(;(n=i[0])&&n.id===e&&i.shift();)n.unsubscribe();throw r}}};var G_=new W_($_);var Hs=new Fl(Pl),LA=Hs;var q_=class extends Pl{constructor(n,e){super(n,e),this.scheduler=n,this.work=e}requestAsyncId(n,e,i=0){return i!==null&&i>0?super.requestAsyncId(n,e,i):(n.actions.push(this),n._scheduled||(n._scheduled=Gu.requestAnimationFrame(()=>n.flush(void 0))))}recycleAsyncId(n,e,i=0){var r;if(i!=null?i>0:this.delay>0)return super.recycleAsyncId(n,e,i);let{actions:o}=n;e!=null&&e===n._scheduled&&((r=o[o.length-1])===null||r===void 0?void 0:r.id)!==e&&(Gu.cancelAnimationFrame(e),n._scheduled=void 0)}};var Y_=class extends Fl{flush(n){this._active=!0;let e;n?e=n.id:(e=this._scheduled,this._scheduled=void 0);let{actions:i}=this,r;n=n||i.shift();do if(r=n.execute(n.state,n.delay))break;while((n=i[0])&&n.id===e&&i.shift());if(this._active=!1,r){for(;(n=i[0])&&n.id===e&&i.shift();)n.unsubscribe();throw r}}};var Q_=new Y_(q_);var Vi=new Fe(t=>t.complete());function K_(t){return t&&Ke(t.schedule)}function Kw(t){return t[t.length-1]}function Z_(t){return Ke(Kw(t))?t.pop():void 0}function Ga(t){return K_(Kw(t))?t.pop():void 0}function VA(t,n){return typeof Kw(t)=="number"?t.pop():n}function jA(t,n,e,i){function r(o){return o instanceof e?o:new e(function(a){a(o)})}return new(e||(e=Promise))(function(o,a){function s(d){try{c(i.next(d))}catch(p){a(p)}}function l(d){try{c(i.throw(d))}catch(p){a(p)}}function c(d){d.done?o(d.value):r(d.value).then(s,l)}c((i=i.apply(t,n||[])).next())})}function BA(t){var n=typeof Symbol=="function"&&Symbol.iterator,e=n&&t[n],i=0;if(e)return e.call(t);if(t&&typeof t.length=="number")return{next:function(){return t&&i>=t.length&&(t=void 0),{value:t&&t[i++],done:!t}}};throw new TypeError(n?"Object is not iterable.":"Symbol.iterator is not defined.")}function pd(t){return this instanceof pd?(this.v=t,this):new pd(t)}function HA(t,n,e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var i=e.apply(t,n||[]),r,o=[];return r=Object.create((typeof AsyncIterator=="function"?AsyncIterator:Object).prototype),s("next"),s("throw"),s("return",a),r[Symbol.asyncIterator]=function(){return this},r;function a(b){return function(y){return Promise.resolve(y).then(b,p)}}function s(b,y){i[b]&&(r[b]=function(w){return new Promise(function(C,D){o.push([b,w,C,D])>1||l(b,w)})},y&&(r[b]=y(r[b])))}function l(b,y){try{c(i[b](y))}catch(w){_(o[0][3],w)}}function c(b){b.value instanceof pd?Promise.resolve(b.value.v).then(d,p):_(o[0][2],b)}function d(b){l("next",b)}function p(b){l("throw",b)}function _(b,y){b(y),o.shift(),o.length&&l(o[0][0],o[0][1])}}function zA(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 BA=="function"?BA(t):t[Symbol.iterator](),e={},i("next"),i("throw"),i("return"),e[Symbol.asyncIterator]=function(){return this},e);function i(o){e[o]=t[o]&&function(a){return new Promise(function(s,l){a=t[o](a),r(s,l,a.done,a.value)})}}function r(o,a,s,l){Promise.resolve(l).then(function(c){o({value:c,done:s})},a)}}var Yu=t=>t&&typeof t.length=="number"&&typeof t!="function";function X_(t){return Ke(t?.then)}function J_(t){return Ke(t[$u])}function eb(t){return Symbol.asyncIterator&&Ke(t?.[Symbol.asyncIterator])}function tb(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 XU(){return typeof Symbol!="function"||!Symbol.iterator?"@@iterator":Symbol.iterator}var ib=XU();function nb(t){return Ke(t?.[ib])}function rb(t){return HA(this,arguments,function*(){let e=t.getReader();try{for(;;){let{value:i,done:r}=yield pd(e.read());if(r)return yield pd(void 0);yield yield pd(i)}}finally{e.releaseLock()}})}function ob(t){return Ke(t?.getReader)}function Pt(t){if(t instanceof Fe)return t;if(t!=null){if(J_(t))return JU(t);if(Yu(t))return e$(t);if(X_(t))return t$(t);if(eb(t))return UA(t);if(nb(t))return i$(t);if(ob(t))return n$(t)}throw tb(t)}function JU(t){return new Fe(n=>{let e=t[$u]();if(Ke(e.subscribe))return e.subscribe(n);throw new TypeError("Provided object does not correctly implement Symbol.observable")})}function e$(t){return new Fe(n=>{for(let e=0;e{t.then(e=>{n.closed||(n.next(e),n.complete())},e=>n.error(e)).then(null,j_)})}function i$(t){return new Fe(n=>{for(let e of t)if(n.next(e),n.closed)return;n.complete()})}function UA(t){return new Fe(n=>{r$(t,n).catch(e=>n.error(e))})}function n$(t){return UA(rb(t))}function r$(t,n){var e,i,r,o;return jA(this,void 0,void 0,function*(){try{for(e=zA(t);i=yield e.next(),!i.done;){let a=i.value;if(n.next(a),n.closed)return}}catch(a){r={error:a}}finally{try{i&&!i.done&&(o=e.return)&&(yield o.call(e))}finally{if(r)throw r.error}}n.complete()})}function mr(t,n,e,i=0,r=!1){let o=n.schedule(function(){e(),r?t.add(this.schedule(null,i)):this.unsubscribe()},i);if(t.add(o),!r)return o}function ab(t,n=0){return Qe((e,i)=>{e.subscribe($e(i,r=>mr(i,t,()=>i.next(r),n),()=>mr(i,t,()=>i.complete(),n),r=>mr(i,t,()=>i.error(r),n)))})}function sb(t,n=0){return Qe((e,i)=>{i.add(t.schedule(()=>e.subscribe(i),n))})}function $A(t,n){return Pt(t).pipe(sb(n),ab(n))}function WA(t,n){return Pt(t).pipe(sb(n),ab(n))}function GA(t,n){return new Fe(e=>{let i=0;return n.schedule(function(){i===t.length?e.complete():(e.next(t[i++]),e.closed||this.schedule())})})}function qA(t,n){return new Fe(e=>{let i;return mr(e,n,()=>{i=t[ib](),mr(e,n,()=>{let r,o;try{({value:r,done:o}=i.next())}catch(a){e.error(a);return}o?e.complete():e.next(r)},0,!0)}),()=>Ke(i?.return)&&i.return()})}function lb(t,n){if(!t)throw new Error("Iterable cannot be null");return new Fe(e=>{mr(e,n,()=>{let i=t[Symbol.asyncIterator]();mr(e,n,()=>{i.next().then(r=>{r.done?e.complete():e.next(r.value)})},0,!0)})})}function YA(t,n){return lb(rb(t),n)}function QA(t,n){if(t!=null){if(J_(t))return $A(t,n);if(Yu(t))return GA(t,n);if(X_(t))return WA(t,n);if(eb(t))return lb(t,n);if(nb(t))return qA(t,n);if(ob(t))return YA(t,n)}throw tb(t)}function Ft(t,n){return n?QA(t,n):Pt(t)}function Q(...t){let n=Ga(t);return Ft(t,n)}function qn(t,n){let e=Ke(t)?t:()=>t,i=r=>r.error(e());return new Fe(n?r=>n.schedule(i,0,r):i)}function zi(t){return!!t&&(t instanceof Fe||Ke(t.lift)&&Ke(t.subscribe))}var zs=Ol(t=>function(){t(this),this.name="EmptyError",this.message="no elements in sequence"});function cb(t){return t instanceof Date&&!isNaN(t)}var o$=Ol(t=>function(e=null){t(this),this.message="Timeout has occurred",this.name="TimeoutError",this.info=e});function Zw(t,n){let{first:e,each:i,with:r=a$,scheduler:o=n??Hs,meta:a=null}=cb(t)?{first:t}:typeof t=="number"?{each:t}:t;if(e==null&&i==null)throw new TypeError("No timeout provided.");return Qe((s,l)=>{let c,d,p=null,_=0,b=y=>{d=mr(l,o,()=>{try{c.unsubscribe(),Pt(r({meta:a,lastValue:p,seen:_})).subscribe(l)}catch(w){l.error(w)}},y)};c=s.subscribe($e(l,y=>{d?.unsubscribe(),_++,l.next(p=y),i>0&&b(i)},void 0,void 0,()=>{d?.closed||d?.unsubscribe(),p=null})),!_&&b(e!=null?typeof e=="number"?e:+e-o.now():i)})}function a$(t){throw new o$(t)}function se(t,n){return Qe((e,i)=>{let r=0;e.subscribe($e(i,o=>{i.next(t.call(n,o,r++))}))})}var{isArray:s$}=Array;function l$(t,n){return s$(n)?t(...n):t(n)}function Qu(t){return se(n=>l$(t,n))}var{isArray:c$}=Array,{getPrototypeOf:d$,prototype:u$,keys:m$}=Object;function db(t){if(t.length===1){let n=t[0];if(c$(n))return{args:n,keys:null};if(h$(n)){let e=m$(n);return{args:e.map(i=>n[i]),keys:e}}}return{args:t,keys:null}}function h$(t){return t&&typeof t=="object"&&d$(t)===u$}function ub(t,n){return t.reduce((e,i,r)=>(e[i]=n[r],e),{})}function go(...t){let n=Ga(t),e=Z_(t),{args:i,keys:r}=db(t);if(i.length===0)return Ft([],n);let o=new Fe(p$(i,n,r?a=>ub(r,a):Ir));return e?o.pipe(Qu(e)):o}function p$(t,n,e=Ir){return i=>{KA(n,()=>{let{length:r}=t,o=new Array(r),a=r,s=r;for(let l=0;l{let c=Ft(t[l],n),d=!1;c.subscribe($e(i,p=>{o[l]=p,d||(d=!0,s--),s||i.next(e(o.slice()))},()=>{--a||i.complete()}))},i)},i)}}function KA(t,n,e){t?mr(e,t,n):n()}function ZA(t,n,e,i,r,o,a,s){let l=[],c=0,d=0,p=!1,_=()=>{p&&!l.length&&!c&&n.complete()},b=w=>c{o&&n.next(w),c++;let C=!1;Pt(e(w,d++)).subscribe($e(n,D=>{r?.(D),o?b(D):n.next(D)},()=>{C=!0},void 0,()=>{if(C)try{for(c--;l.length&&cy(D)):y(D)}_()}catch(D){n.error(D)}}))};return t.subscribe($e(n,b,()=>{p=!0,_()})),()=>{s?.()}}function It(t,n,e=1/0){return Ke(n)?It((i,r)=>se((o,a)=>n(i,o,r,a))(Pt(t(i,r))),e):(typeof n=="number"&&(e=n),Qe((i,r)=>ZA(i,r,t,e)))}function _o(t=1/0){return It(Ir,t)}function XA(){return _o(1)}function bo(...t){return XA()(Ft(t,Ga(t)))}function In(t){return new Fe(n=>{Pt(t()).subscribe(n)})}function qa(...t){let n=Z_(t),{args:e,keys:i}=db(t),r=new Fe(o=>{let{length:a}=e;if(!a){o.complete();return}let s=new Array(a),l=a,c=a;for(let d=0;d{p||(p=!0,c--),s[d]=_},()=>l--,void 0,()=>{(!l||!p)&&(c||o.next(i?ub(i,s):s),o.complete())}))}});return n?r.pipe(Qu(n)):r}var f$=["addListener","removeListener"],g$=["addEventListener","removeEventListener"],_$=["on","off"];function Us(t,n,e,i){if(Ke(e)&&(i=e,e=void 0),i)return Us(t,n,e).pipe(Qu(i));let[r,o]=y$(t)?g$.map(a=>s=>t[a](n,s,e)):b$(t)?f$.map(JA(t,n)):v$(t)?_$.map(JA(t,n)):[];if(!r&&Yu(t))return It(a=>Us(a,n,e))(Pt(t));if(!r)throw new TypeError("Invalid event target");return new Fe(a=>{let s=(...l)=>a.next(1o(s)})}function JA(t,n){return e=>i=>t[e](n,i)}function b$(t){return Ke(t.addListener)&&Ke(t.removeListener)}function v$(t){return Ke(t.on)&&Ke(t.off)}function y$(t){return Ke(t.addEventListener)&&Ke(t.removeEventListener)}function Ya(t=0,n,e=LA){let i=-1;return n!=null&&(K_(n)?e=n:i=n),new Fe(r=>{let o=cb(t)?+t-e.now():t;o<0&&(o=0);let a=0;return e.schedule(function(){r.closed||(r.next(a++),0<=i?this.schedule(void 0,i):r.complete())},o)})}function Je(...t){let n=Ga(t),e=VA(t,1/0),i=t;return i.length?i.length===1?Pt(i[0]):_o(e)(Ft(i,n)):Vi}var{isArray:x$}=Array;function eO(t){return t.length===1&&x$(t[0])?t[0]:t}function ce(t,n){return Qe((e,i)=>{let r=0;e.subscribe($e(i,o=>t.call(n,o,r++)&&i.next(o)))})}function Ku(...t){return t=eO(t),t.length===1?Pt(t[0]):new Fe(C$(t))}function C$(t){return n=>{let e=[];for(let i=0;e&&!n.closed&&i{if(e){for(let o=0;o{let i=!1,r=null,o=null,a=!1,s=()=>{if(o?.unsubscribe(),o=null,i){i=!1;let c=r;r=null,e.next(c)}a&&e.complete()},l=()=>{o=null,a&&e.complete()};n.subscribe($e(e,c=>{i=!0,r=c,o||Pt(t(c)).subscribe(o=$e(e,s,l))},()=>{a=!0,(!i||!o||o.closed)&&e.complete()}))})}function Nl(t,n=Hs){return tO(()=>Ya(t,n))}function ii(t){return Qe((n,e)=>{let i=null,r=!1,o;i=n.subscribe($e(e,void 0,void 0,a=>{o=Pt(t(a,ii(t)(n))),i?(i.unsubscribe(),i=null,o.subscribe(e)):r=!0})),r&&(i.unsubscribe(),i=null,o.subscribe(e))})}function iO(t,n,e,i,r){return(o,a)=>{let s=e,l=n,c=0;o.subscribe($e(a,d=>{let p=c++;l=s?t(l,d,p):(s=!0,d),i&&a.next(l)},r&&(()=>{s&&a.next(l),a.complete()})))}}function No(t,n){return Ke(n)?It(t,n,1):It(t,1)}function St(t,n=Hs){return Qe((e,i)=>{let r=null,o=null,a=null,s=()=>{if(r){r.unsubscribe(),r=null;let c=o;o=null,i.next(c)}};function l(){let c=a+t,d=n.now();if(d{o=c,a=n.now(),r||(r=n.schedule(l,t),i.add(r))},()=>{s(),i.complete()},void 0,()=>{o=r=null}))})}function Ll(t){return Qe((n,e)=>{let i=!1;n.subscribe($e(e,r=>{i=!0,e.next(r)},()=>{i||e.next(t),e.complete()}))})}function ct(t){return t<=0?()=>Vi:Qe((n,e)=>{let i=0;n.subscribe($e(e,r=>{++i<=t&&(e.next(r),t<=i&&e.complete())}))})}function nO(){return Qe((t,n)=>{t.subscribe($e(n,ud))})}function Zu(t){return se(()=>t)}function Xw(t,n){return n?e=>bo(n.pipe(ct(1),nO()),e.pipe(Xw(t))):It((e,i)=>Pt(t(e,i)).pipe(ct(1),Zu(e)))}function ga(t,n=Hs){let e=Ya(t,n);return Xw(()=>e)}function _n(t,n=Ir){return t=t??w$,Qe((e,i)=>{let r,o=!0;e.subscribe($e(i,a=>{let s=n(a);(o||!t(r,s))&&(o=!1,r=s,i.next(a))}))})}function w$(t,n){return t===n}function mb(t=D$){return Qe((n,e)=>{let i=!1;n.subscribe($e(e,r=>{i=!0,e.next(r)},()=>i?e.complete():e.error(t())))})}function D$(){return new zs}function Jw(t,n){return Qe((e,i)=>{let r=0;e.subscribe($e(i,o=>{t.call(n,o,r++,e)||(i.next(!1),i.complete())},()=>{i.next(!0),i.complete()}))})}function Gr(t){return Qe((n,e)=>{try{n.subscribe(e)}finally{e.add(t)}})}function bn(t,n){let e=arguments.length>=2;return i=>i.pipe(t?ce((r,o)=>t(r,o,i)):Ir,ct(1),e?Ll(n):mb(()=>new zs))}function Xu(t){return t<=0?()=>Vi:Qe((n,e)=>{let i=[];n.subscribe($e(e,r=>{i.push(r),t{for(let r of i)e.next(r);e.complete()},void 0,()=>{i=null}))})}function eD(t,n){let e=arguments.length>=2;return i=>i.pipe(t?ce((r,o)=>t(r,o,i)):Ir,Xu(1),e?Ll(n):mb(()=>new zs))}function hb(){return Qe((t,n)=>{let e,i=!1;t.subscribe($e(n,r=>{let o=e;e=r,i&&n.next([o,r]),i=!0}))})}function tD(t,n){return Qe(iO(t,n,arguments.length>=2,!0))}function Vl(t={}){let{connector:n=()=>new z,resetOnError:e=!0,resetOnComplete:i=!0,resetOnRefCountZero:r=!0}=t;return o=>{let a,s,l,c=0,d=!1,p=!1,_=()=>{s?.unsubscribe(),s=void 0},b=()=>{_(),a=l=void 0,d=p=!1},y=()=>{let w=a;b(),w?.unsubscribe()};return Qe((w,C)=>{c++,!p&&!d&&_();let D=l=l??n();C.add(()=>{c--,c===0&&!p&&!d&&(s=iD(y,r))}),D.subscribe(C),!a&&c>0&&(a=new js({next:F=>D.next(F),error:F=>{p=!0,_(),s=iD(b,e,F),D.error(F)},complete:()=>{d=!0,_(),s=iD(b,i),D.complete()}}),Pt(w).subscribe(a))})(o)}}function iD(t,n,...e){if(n===!0){t();return}if(n===!1)return;let i=new js({next:()=>{i.unsubscribe(),t()}});return Pt(n(...e)).subscribe(i)}function fd(t,n,e){let i,r=!1;return t&&typeof t=="object"?{bufferSize:i=1/0,windowTime:n=1/0,refCount:r=!1,scheduler:e}=t:i=t??1/0,Vl({connector:()=>new Wa(i,n,e),resetOnError:!0,resetOnComplete:!1,resetOnRefCountZero:r})}function Qa(t){return ce((n,e)=>t<=e)}function Ue(...t){let n=Ga(t);return Qe((e,i)=>{(n?bo(t,e,n):bo(t,e)).subscribe(i)})}function je(t,n){return Qe((e,i)=>{let r=null,o=0,a=!1,s=()=>a&&!r&&i.complete();e.subscribe($e(i,l=>{r?.unsubscribe();let c=0,d=o++;Pt(t(l,d)).subscribe(r=$e(i,p=>i.next(n?n(l,p,d,c++):p),()=>{r=null,s()}))},()=>{a=!0,s()}))})}function we(t){return Qe((n,e)=>{Pt(t).subscribe($e(e,()=>e.complete(),ud)),!e.closed&&n.subscribe(e)})}function nD(t,n=!1){return Qe((e,i)=>{let r=0;e.subscribe($e(i,o=>{let a=t(o,r++);(a||n)&&i.next(o),!a&&i.complete()}))})}function He(t,n,e){let i=Ke(t)||n||e?{next:t,error:n,complete:e}:t;return i?Qe((r,o)=>{var a;(a=i.subscribe)===null||a===void 0||a.call(i);let s=!0;r.subscribe($e(o,l=>{var c;(c=i.next)===null||c===void 0||c.call(i,l),o.next(l)},()=>{var l;s=!1,(l=i.complete)===null||l===void 0||l.call(i),o.complete()},l=>{var c;s=!1,(c=i.error)===null||c===void 0||c.call(i,l),o.error(l)},()=>{var l,c;s&&((l=i.unsubscribe)===null||l===void 0||l.call(i)),(c=i.finalize)===null||c===void 0||c.call(i)}))}):Ir}function rO(t){let n=Xe(null);try{return t()}finally{Xe(n)}}var oO=Ee(k({},ad),{consumerIsAlwaysLive:!0,consumerAllowSignalWrites:!0,dirty:!0,kind:"effect"});function aO(t){if(t.dirty=!1,t.version>0&&!ld(t))return;t.version++;let n=Il(t);try{t.cleanup(),t.fn()}finally{sd(t,n)}}var Bl=class{full;major;minor;patch;constructor(n){this.full=n;let e=n.split(".");this.major=e[0],this.minor=e[1],this.patch=e.slice(2).join(".")}},Tp=new Bl("20.3.16");var _b="https://angular.dev/best-practices/security#preventing-cross-site-scripting-xss",me=class extends Error{code;constructor(n,e){super(Vo(n,e)),this.code=n}};function E$(t){return`NG0${Math.abs(t)}`}function Vo(t,n){return`${E$(t)}${n?": "+n:""}`}var Bo=globalThis;function ni(t){for(let n in t)if(t[n]===ni)return n;throw Error("")}function cO(t,n){for(let e in n)n.hasOwnProperty(e)&&!t.hasOwnProperty(e)&&(t[e]=n[e])}function Ws(t){if(typeof t=="string")return t;if(Array.isArray(t))return`[${t.map(Ws).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 i=e.indexOf(` +`);return i>=0?e.slice(0,i):e}function bb(t,n){return t?n?`${t} ${n}`:t:n||""}var M$=ni({__forward_ref__:ni});function ri(t){return t.__forward_ref__=ri,t.toString=function(){return Ws(this())},t}function vn(t){return fD(t)?t():t}function fD(t){return typeof t=="function"&&t.hasOwnProperty(M$)&&t.__forward_ref__===ri}function R(t){return{token:t.token,providedIn:t.providedIn||null,factory:t.factory,value:void 0}}function J(t){return{providers:t.providers||[],imports:t.imports||[]}}function Ip(t){return S$(t,vb)}function gD(t){return Ip(t)!==null}function S$(t,n){return t.hasOwnProperty(n)&&t[n]||null}function k$(t){let n=t?.[vb]??null;return n||null}function oD(t){return t&&t.hasOwnProperty(fb)?t[fb]:null}var vb=ni({\u0275prov:ni}),fb=ni({\u0275inj:ni}),O=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=R({token:this,providedIn:e.providedIn||"root",factory:e.factory}))}get multi(){return this}toString(){return`InjectionToken ${this._desc}`}};function _D(t){return t&&!!t.\u0275providers}var bD=ni({\u0275cmp:ni}),vD=ni({\u0275dir:ni}),yD=ni({\u0275pipe:ni}),xD=ni({\u0275mod:ni}),Mp=ni({\u0275fac:ni}),yd=ni({__NG_ELEMENT_ID__:ni}),sO=ni({__NG_ENV_ID__:ni});function jo(t){return typeof t=="string"?t:t==null?"":String(t)}function dO(t){return typeof t=="function"?t.name||t.toString():typeof t=="object"&&t!=null&&typeof t.type=="function"?t.type.name||t.type.toString():jo(t)}var uO=ni({ngErrorCode:ni}),T$=ni({ngErrorMessage:ni}),I$=ni({ngTokenPath:ni});function CD(t,n){return mO("",-200,n)}function yb(t,n){throw new me(-201,!1)}function mO(t,n,e){let i=new me(n,t);return i[uO]=n,i[T$]=t,e&&(i[I$]=e),i}function A$(t){return t[uO]}var aD;function hO(){return aD}function Ar(t){let n=aD;return aD=t,n}function wD(t,n,e){let i=Ip(t);if(i&&i.providedIn=="root")return i.value===void 0?i.value=i.factory():i.value;if(e&8)return null;if(n!==void 0)return n;yb(t,"Injector")}var O$={},gd=O$,sD="__NG_DI_FLAG__",lD=class{injector;constructor(n){this.injector=n}retrieve(n,e){let i=_d(e)||0;try{return this.injector.get(n,i&8?null:gd,i)}catch(r){if(ju(r))return r;throw r}}};function R$(t,n=0){let e=T_();if(e===void 0)throw new me(-203,!1);if(e===null)return wD(t,void 0,n);{let i=P$(n),r=e.retrieve(t,i);if(ju(r)){if(i.optional)return null;throw r}return r}}function fe(t,n=0){return(hO()||R$)(vn(t),n)}function u(t,n){return fe(t,_d(n))}function _d(t){return typeof t>"u"||typeof t=="number"?t:0|(t.optional&&8)|(t.host&&1)|(t.self&&2)|(t.skipSelf&&4)}function P$(t){return{optional:!!(t&8),host:!!(t&1),self:!!(t&2),skipSelf:!!(t&4)}}function cD(t){let n=[];for(let e=0;eArray.isArray(e)?xb(e,n):n(e))}function ED(t,n,e){n>=t.length?t.push(e):t.splice(n,0,e)}function Ap(t,n){return n>=t.length-1?t.pop():t.splice(n,1)[0]}function gO(t,n){let e=[];for(let i=0;in;){let o=r-2;t[r]=t[o],r--}t[n]=e,t[n+1]=i}}function Op(t,n,e){let i=em(t,n);return i>=0?t[i|1]=e:(i=~i,_O(t,i,n,e)),i}function Cb(t,n){let e=em(t,n);if(e>=0)return t[e|1]}function em(t,n){return N$(t,n,1)}function N$(t,n,e){let i=0,r=t.length>>e;for(;r!==i;){let o=i+(r-i>>1),a=t[o<n?r=o:i=o+1}return~(r<{e.push(a)};return xb(n,a=>{let s=a;gb(s,o,[],i)&&(r||=[],r.push(s))}),r!==void 0&&yO(r,o),e}function yO(t,n){for(let e=0;e{n(o,i)})}}function gb(t,n,e,i){if(t=vn(t),!t)return!1;let r=null,o=oD(t),a=!o&&Za(t);if(!o&&!a){let l=t.ngModule;if(o=oD(l),o)r=l;else return!1}else{if(a&&!a.standalone)return!1;r=t}let s=i.has(r);if(a){if(s)return!1;if(i.add(r),a.dependencies){let l=typeof a.dependencies=="function"?a.dependencies():a.dependencies;for(let c of l)gb(c,n,e,i)}}else if(o){if(o.imports!=null&&!s){i.add(r);let c;try{xb(o.imports,d=>{gb(d,n,e,i)&&(c||=[],c.push(d))})}finally{}c!==void 0&&yO(c,n)}if(!s){let c=jl(r)||(()=>new r);n({provide:r,useFactory:c,deps:hr},r),n({provide:SD,useValue:r,multi:!0},r),n({provide:Ka,useValue:()=>fe(r),multi:!0},r)}let l=o.providers;if(l!=null&&!s){let c=t;ID(l,d=>{n(d,c)})}}else return!1;return r!==t&&t.providers!==void 0}function ID(t,n){for(let e of t)_D(e)&&(e=e.\u0275providers),Array.isArray(e)?ID(e,n):n(e)}var L$=ni({provide:String,useValue:ni});function xO(t){return t!==null&&typeof t=="object"&&L$ in t}function V$(t){return!!(t&&t.useExisting)}function B$(t){return!!(t&&t.useFactory)}function bd(t){return typeof t=="function"}function CO(t){return!!t.useClass}var Rp=new O(""),pb={},lO={},rD;function tm(){return rD===void 0&&(rD=new Sp),rD}var Kt=class{},vd=class extends Kt{parent;source;scopes;records=new Map;_ngOnDestroyHooks=new Set;_onDestroyHooks=[];get destroyed(){return this._destroyed}_destroyed=!1;injectorDefTypes;constructor(n,e,i,r){super(),this.parent=e,this.source=i,this.scopes=r,uD(n,a=>this.processProvider(a)),this.records.set(MD,Ju(void 0,this)),r.has("environment")&&this.records.set(Kt,Ju(void 0,this));let o=this.records.get(Rp);o!=null&&typeof o.value=="string"&&this.scopes.add(o.value),this.injectorDefTypes=new Set(this.get(SD,hr,{self:!0}))}retrieve(n,e){let i=_d(e)||0;try{return this.get(n,gd,i)}catch(r){if(ju(r))return r;throw r}}destroy(){Ep(this),this._destroyed=!0;let n=Xe(null);try{for(let i of this._ngOnDestroyHooks)i.ngOnDestroy();let e=this._onDestroyHooks;this._onDestroyHooks=[];for(let i of e)i()}finally{this.records.clear(),this._ngOnDestroyHooks.clear(),this.injectorDefTypes.clear(),Xe(n)}}onDestroy(n){return Ep(this),this._onDestroyHooks.push(n),()=>this.removeOnDestroy(n)}runInContext(n){Ep(this);let e=$a(this),i=Ar(void 0),r;try{return n()}finally{$a(e),Ar(i)}}get(n,e=gd,i){if(Ep(this),n.hasOwnProperty(sO))return n[sO](this);let r=_d(i),o,a=$a(this),s=Ar(void 0);try{if(!(r&4)){let c=this.records.get(n);if(c===void 0){let d=$$(n)&&Ip(n);d&&this.injectableDefInScope(d)?c=Ju(dD(n),pb):c=null,this.records.set(n,c)}if(c!=null)return this.hydrate(n,c,r)}let l=r&2?tm():this.parent;return e=r&8&&e===gd?null:e,l.get(n,e)}catch(l){let c=A$(l);throw c===-200||c===-201?new me(c,null):l}finally{Ar(s),$a(a)}}resolveInjectorInitializers(){let n=Xe(null),e=$a(this),i=Ar(void 0),r;try{let o=this.get(Ka,hr,{self:!0});for(let a of o)a()}finally{$a(e),Ar(i),Xe(n)}}toString(){let n=[],e=this.records;for(let i of e.keys())n.push(Ws(i));return`R3Injector[${n.join(", ")}]`}processProvider(n){n=vn(n);let e=bd(n)?n:vn(n&&n.provide),i=H$(n);if(!bd(n)&&n.multi===!0){let r=this.records.get(e);r||(r=Ju(void 0,pb,!0),r.factory=()=>cD(r.multi),this.records.set(e,r)),e=n,r.multi.push(n)}this.records.set(e,i)}hydrate(n,e,i){let r=Xe(null);try{if(e.value===lO)throw CD(Ws(n));return e.value===pb&&(e.value=lO,e.value=e.factory(void 0,i)),typeof e.value=="object"&&e.value&&U$(e.value)&&this._ngOnDestroyHooks.add(e.value),e.value}finally{Xe(r)}}injectableDefInScope(n){if(!n.providedIn)return!1;let e=vn(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 dD(t){let n=Ip(t),e=n!==null?n.factory:jl(t);if(e!==null)return e;if(t instanceof O)throw new me(204,!1);if(t instanceof Function)return j$(t);throw new me(204,!1)}function j$(t){if(t.length>0)throw new me(204,!1);let e=k$(t);return e!==null?()=>e.factory(t):()=>new t}function H$(t){if(xO(t))return Ju(void 0,t.useValue);{let n=AD(t);return Ju(n,pb)}}function AD(t,n,e){let i;if(bd(t)){let r=vn(t);return jl(r)||dD(r)}else if(xO(t))i=()=>vn(t.useValue);else if(B$(t))i=()=>t.useFactory(...cD(t.deps||[]));else if(V$(t))i=(r,o)=>fe(vn(t.useExisting),o!==void 0&&o&8?8:void 0);else{let r=vn(t&&(t.useClass||t.provide));if(z$(t))i=()=>new r(...cD(t.deps));else return jl(r)||dD(r)}return i}function Ep(t){if(t.destroyed)throw new me(205,!1)}function Ju(t,n,e=!1){return{factory:t,value:n,multi:e?[]:void 0}}function z$(t){return!!t.deps}function U$(t){return t!==null&&typeof t=="object"&&typeof t.ngOnDestroy=="function"}function $$(t){return typeof t=="function"||typeof t=="object"&&t.ngMetadataName==="InjectionToken"}function uD(t,n){for(let e of t)Array.isArray(e)?uD(e,n):e&&_D(e)?uD(e.\u0275providers,n):n(e)}function On(t,n){let e;t instanceof vd?(Ep(t),e=t):e=new lD(t);let i,r=$a(e),o=Ar(void 0);try{return n()}finally{$a(r),Ar(o)}}function wO(){return hO()!==void 0||T_()!=null}var ba=0,We=1,et=2,yn=3,Ho=4,Or=5,xd=6,im=7,Zi=8,Gs=9,Xa=10,si=11,nm=12,OD=13,Cd=14,pr=15,zl=16,wd=17,Ja=18,Pp=19,RD=20,$s=21,Eb=22,qs=23,vo=24,Dd=25,Ed=26,hi=27,DO=1,PD=6,Ul=7,Fp=8,Md=9,Xi=10;function es(t){return Array.isArray(t)&&typeof t[DO]=="object"}function va(t){return Array.isArray(t)&&t[DO]===!0}function FD(t){return(t.flags&4)!==0}function Ys(t){return t.componentOffset>-1}function rm(t){return(t.flags&1)===1}function ya(t){return!!t.template}function om(t){return(t[et]&512)!==0}function Sd(t){return(t[et]&256)===256}var ND="svg",EO="math";function zo(t){for(;Array.isArray(t);)t=t[ba];return t}function LD(t,n){return zo(n[t])}function Uo(t,n){return zo(n[t.index])}function Np(t,n){return t.data[n]}function am(t,n){return t[n]}function VD(t,n,e,i){e>=t.data.length&&(t.data[e]=null,t.blueprint[e]=null),n[e]=i}function $o(t,n){let e=n[t];return es(e)?e:e[ba]}function MO(t){return(t[et]&4)===4}function Mb(t){return(t[et]&128)===128}function SO(t){return va(t[yn])}function yo(t,n){return n==null?null:t[n]}function BD(t){t[wd]=0}function jD(t){t[et]&1024||(t[et]|=1024,Mb(t)&&$l(t))}function kO(t,n){for(;t>0;)n=n[Cd],t--;return n}function Lp(t){return!!(t[et]&9216||t[vo]?.dirty)}function Sb(t){t[Xa].changeDetectionScheduler?.notify(8),t[et]&64&&(t[et]|=1024),Lp(t)&&$l(t)}function $l(t){t[Xa].changeDetectionScheduler?.notify(0);let n=Hl(t);for(;n!==null&&!(n[et]&8192||(n[et]|=8192,!Mb(n)));)n=Hl(n)}function HD(t,n){if(Sd(t))throw new me(911,!1);t[$s]===null&&(t[$s]=[]),t[$s].push(n)}function TO(t,n){if(t[$s]===null)return;let e=t[$s].indexOf(n);e!==-1&&t[$s].splice(e,1)}function Hl(t){let n=t[yn];return va(n)?n[yn]:n}function zD(t){return t[im]??=[]}function UD(t){return t.cleanup??=[]}function IO(t,n,e,i){let r=zD(n);r.push(e),t.firstCreatePass&&UD(t).push(i,r.length-1)}var ft={lFrame:HO(null),bindingsEnabled:!0,skipHydrationRootTNode:null};var mD=!1;function AO(){return ft.lFrame.elementDepthCount}function OO(){ft.lFrame.elementDepthCount++}function $D(){ft.lFrame.elementDepthCount--}function kb(){return ft.bindingsEnabled}function WD(){return ft.skipHydrationRootTNode!==null}function GD(t){return ft.skipHydrationRootTNode===t}function qD(){ft.skipHydrationRootTNode=null}function Ne(){return ft.lFrame.lView}function bi(){return ft.lFrame.tView}function T(t){return ft.lFrame.contextLView=t,t[Zi]}function I(t){return ft.lFrame.contextLView=null,t}function on(){let t=YD();for(;t!==null&&t.type===64;)t=t.parent;return t}function YD(){return ft.lFrame.currentTNode}function RO(){let t=ft.lFrame,n=t.currentTNode;return t.isParent?n:n.parent}function sm(t,n){let e=ft.lFrame;e.currentTNode=t,e.isParent=n}function QD(){return ft.lFrame.isParent}function KD(){ft.lFrame.isParent=!1}function PO(){return ft.lFrame.contextLView}function ZD(){return mD}function lm(t){let n=mD;return mD=t,n}function ts(){let t=ft.lFrame,n=t.bindingRootIndex;return n===-1&&(n=t.bindingRootIndex=t.tView.bindingStartIndex),n}function XD(){return ft.lFrame.bindingIndex}function FO(t){return ft.lFrame.bindingIndex=t}function is(){return ft.lFrame.bindingIndex++}function Vp(t){let n=ft.lFrame,e=n.bindingIndex;return n.bindingIndex=n.bindingIndex+t,e}function NO(){return ft.lFrame.inI18n}function LO(t,n){let e=ft.lFrame;e.bindingIndex=e.bindingRootIndex=t,Tb(n)}function VO(){return ft.lFrame.currentDirectiveIndex}function Tb(t){ft.lFrame.currentDirectiveIndex=t}function BO(t){let n=ft.lFrame.currentDirectiveIndex;return n===-1?null:t[n]}function Ib(){return ft.lFrame.currentQueryIndex}function Bp(t){ft.lFrame.currentQueryIndex=t}function W$(t){let n=t[We];return n.type===2?n.declTNode:n.type===1?t[Or]:null}function JD(t,n,e){if(e&4){let r=n,o=t;for(;r=r.parent,r===null&&!(e&1);)if(r=W$(o),r===null||(o=o[Cd],r.type&10))break;if(r===null)return!1;n=r,t=o}let i=ft.lFrame=jO();return i.currentTNode=n,i.lView=t,!0}function Ab(t){let n=jO(),e=t[We];ft.lFrame=n,n.currentTNode=e.firstChild,n.lView=t,n.tView=e,n.contextLView=t,n.bindingIndex=e.bindingStartIndex,n.inI18n=!1}function jO(){let t=ft.lFrame,n=t===null?null:t.child;return n===null?HO(t):n}function HO(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 zO(){let t=ft.lFrame;return ft.lFrame=t.parent,t.currentTNode=null,t.lView=null,t}var eE=zO;function Ob(){let t=zO();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 UO(t){return(ft.lFrame.contextLView=kO(t,ft.lFrame.contextLView))[Zi]}function xa(){return ft.lFrame.selectedIndex}function Wl(t){ft.lFrame.selectedIndex=t}function cm(){let t=ft.lFrame;return Np(t.tView,t.selectedIndex)}function Zt(){ft.lFrame.currentNamespace=ND}function Wo(){G$()}function G$(){ft.lFrame.currentNamespace=null}function $O(){return ft.lFrame.currentNamespace}var WO=!0;function Rb(){return WO}function jp(t){WO=t}function hD(t,n=null,e=null,i){let r=tE(t,n,e,i);return r.resolveInjectorInitializers(),r}function tE(t,n=null,e=null,i,r=new Set){let o=[e||hr,Db(t)];return i=i||(typeof t=="object"?void 0:Ws(t)),new vd(o,n||tm(),i||null,r)}var de=class t{static THROW_IF_NOT_FOUND=gd;static NULL=new Sp;static create(n,e){if(Array.isArray(n))return hD({name:""},e,n,"");{let i=n.name??"";return hD({name:i},n.parent,n.providers,i)}}static \u0275prov=R({token:t,providedIn:"any",factory:()=>fe(MD)});static __NG_ELEMENT_ID__=-1},_e=new O(""),an=(()=>{class t{static __NG_ELEMENT_ID__=q$;static __NG_ENV_ID__=e=>e}return t})(),kp=class extends an{_lView;constructor(n){super(),this._lView=n}get destroyed(){return Sd(this._lView)}onDestroy(n){let e=this._lView;return HD(e,n),()=>TO(e,n)}};function q$(){return new kp(Ne())}var An=class{_console=console;handleError(n){this._console.error("ERROR",n)}},fr=new O("",{providedIn:"root",factory:()=>{let t=u(Kt),n;return e=>{t.destroyed&&!n?setTimeout(()=>{throw e}):(n??=t.get(An),n.handleError(e))}}}),GO={provide:Ka,useValue:()=>void u(An),multi:!0},Y$=new O("",{providedIn:"root",factory:()=>{let t=u(_e).defaultView;if(!t)return;let n=u(fr),e=o=>{n(o.reason),o.preventDefault()},i=o=>{o.error?n(o.error):n(new Error(o.message,{cause:o})),o.preventDefault()},r=()=>{t.addEventListener("unhandledrejection",e),t.addEventListener("error",i)};typeof Zone<"u"?Zone.root.run(r):r(),u(an).onDestroy(()=>{t.removeEventListener("error",i),t.removeEventListener("unhandledrejection",e)})}});function iE(){return qr([vO(()=>void u(Y$))])}function ns(t){return typeof t=="function"&&t[un]!==void 0}function he(t,n){let[e,i,r]=Lw(t,n?.equal),o=e,a=o[un];return o.set=i,o.update=r,o.asReadonly=Pb.bind(o),o}function Pb(){let t=this[un];if(t.readonlyFn===void 0){let n=()=>this();n[un]=t,t.readonlyFn=n}return t.readonlyFn}function nE(t){return ns(t)&&typeof t.set=="function"}var kd=(()=>{class t{view;node;constructor(e,i){this.view=e,this.node=i}static __NG_ELEMENT_ID__=Q$}return t})();function Q$(){return new kd(Ne(),on())}var Lo=class{},Hp=new O("",{providedIn:"root",factory:()=>!1});var rE=new O(""),oE=new O(""),rs=(()=>{class t{taskId=0;pendingTasks=new Set;destroyed=!1;pendingTask=new it(!1);get hasPendingTasks(){return this.destroyed?!1:this.pendingTask.value}get hasPendingTasksObservable(){return this.destroyed?new Fe(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),e}has(e){return this.pendingTasks.has(e)}remove(e){this.pendingTasks.delete(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=R({token:t,providedIn:"root",factory:()=>new t})}return t})(),dm=(()=>{class t{internalPendingTasks=u(rs);scheduler=u(Lo);errorHandler=u(fr);add(){let e=this.internalPendingTasks.add();return()=>{this.internalPendingTasks.has(e)&&(this.scheduler.notify(11),this.internalPendingTasks.remove(e))}}run(e){let i=this.add();e().catch(this.errorHandler).finally(i)}static \u0275prov=R({token:t,providedIn:"root",factory:()=>new t})}return t})();function Td(...t){}var zp=(()=>{class t{static \u0275prov=R({token:t,providedIn:"root",factory:()=>new pD})}return t})(),pD=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,i=this.queues.get(e);i.has(n)&&(i.delete(n),n.dirty&&this.dirtyEffectCount--)}enqueue(n){let e=n.zone;this.queues.has(e)||this.queues.set(e,new Set);let i=this.queues.get(e);i.has(n)||i.add(n)}flush(){for(;this.dirtyEffectCount>0;){let n=!1;for(let[e,i]of this.queues)e===null?n||=this.flushQueue(i):n||=e.run(()=>this.flushQueue(i));n||(this.dirtyEffectCount=0)}}flushQueue(n){let e=!1;for(let i of n)i.dirty&&(this.dirtyEffectCount--,e=!0,i.run());return e}};function vm(t){return{toString:t}.toString()}var Fb="__parameters__";function tW(t){return function(...e){if(t){let i=t(...e);for(let r in i)this[r]=i[r]}}}function OR(t,n,e){return vm(()=>{let i=tW(n);function r(...o){if(this instanceof r)return i.apply(this,o),this;let a=new r(...o);return s.annotation=a,s;function s(l,c,d){let p=l.hasOwnProperty(Fb)?l[Fb]:Object.defineProperty(l,Fb,{value:[]})[Fb];for(;p.length<=d;)p.push(null);return(p[d]=p[d]||[]).push(a),l}}return r.prototype.ngMetadataName=t,r.annotationCls=r,r})}var ls=DD(OR("Optional"),8);var Yl=DD(OR("SkipSelf"),4);var Pd=Function;function iW(t){return typeof t=="function"}var Gb=class{previousValue;currentValue;firstChange;constructor(n,e,i){this.previousValue=n,this.currentValue=e,this.firstChange=i}isFirstChange(){return this.firstChange}};function RR(t,n,e,i){n!==null?n.applyValueToInputSignal(n,i):t[e]=i}var Ae=(()=>{let t=()=>PR;return t.ngInherit=!0,t})();function PR(t){return t.type.prototype.ngOnChanges&&(t.setInput=rW),nW}function nW(){let t=NR(this),n=t?.current;if(n){let e=t.previous;if(e===_a)t.previous=n;else for(let i in n)e[i]=n[i];t.current=null,this.ngOnChanges(n)}}function rW(t,n,e,i,r){let o=this.declaredInputs[i],a=NR(t)||oW(t,{previous:_a,current:null}),s=a.current||(a.current={}),l=a.previous,c=l[o];s[o]=new Gb(c&&c.currentValue,e,l===_a),RR(t,n,r,e)}var FR="__ngSimpleChanges__";function NR(t){return t[FR]||null}function oW(t,n){return t[FR]=n}var qO=[];var li=function(t,n=null,e){for(let i=0;i=i)break}else n[l]<0&&(t[wd]+=65536),(s>14>16&&(t[et]&3)===n&&(t[et]+=16384,YO(s,o)):YO(s,o)}var mm=-1,Ad=class{factory;name;injectImpl;resolving=!1;canSeeViewProviders;multi;componentProviders;index;providerFactory;constructor(n,e,i,r){this.factory=n,this.name=r,this.canSeeViewProviders=e,this.injectImpl=i}};function lW(t){return(t.flags&8)!==0}function cW(t){return(t.flags&16)!==0}function dW(t,n,e){let i=0;for(;in){a=o-1;break}}}for(;o>16}function Yb(t,n){let e=mW(t),i=n;for(;e>0;)i=i[Cd],e--;return i}var _E=!0;function Qb(t){let n=_E;return _E=t,n}var hW=256,HR=hW-1,zR=5,pW=0,os={};function fW(t,n,e){let i;typeof e=="string"?i=e.charCodeAt(0)||0:e.hasOwnProperty(yd)&&(i=e[yd]),i==null&&(i=e[yd]=pW++);let r=i&HR,o=1<>zR)]|=o}function Kb(t,n){let e=UR(t,n);if(e!==-1)return e;let i=n[We];i.firstCreatePass&&(t.injectorIndex=n.length,sE(i.data,t),sE(n,null),sE(i.blueprint,null));let r=i1(t,n),o=t.injectorIndex;if(jR(r)){let a=qb(r),s=Yb(r,n),l=s[We].data;for(let c=0;c<8;c++)n[o+c]=s[a+c]|l[a+c]}return n[o+8]=r,o}function sE(t,n){t.push(0,0,0,0,0,0,0,0,n)}function UR(t,n){return t.injectorIndex===-1||t.parent&&t.parent.injectorIndex===t.injectorIndex||n[t.injectorIndex+8]===null?-1:t.injectorIndex}function i1(t,n){if(t.parent&&t.parent.injectorIndex!==-1)return t.parent.injectorIndex;let e=0,i=null,r=n;for(;r!==null;){if(i=YR(r),i===null)return mm;if(e++,r=r[Cd],i.injectorIndex!==-1)return i.injectorIndex|e<<16}return mm}function bE(t,n,e){fW(t,n,e)}function gW(t,n){if(n==="class")return t.classes;if(n==="style")return t.styles;let e=t.attrs;if(e){let i=e.length,r=0;for(;r>20,p=i?s:s+d,_=r?s+d:c;for(let b=p;b<_;b++){let y=a[b];if(b=l&&y.type===e)return b}if(r){let b=a[l];if(b&&ya(b)&&b.type===e)return l}return null}function Wp(t,n,e,i,r){let o=t[e],a=n.data;if(o instanceof Ad){let s=o;if(s.resolving){let b=dO(a[e]);throw CD(b)}let l=Qb(s.canSeeViewProviders);s.resolving=!0;let c=a[e].type||a[e],d,p=s.injectImpl?Ar(s.injectImpl):null,_=JD(t,i,0);try{o=t[e]=s.factory(void 0,r,a,t,i),n.firstCreatePass&&e>=i.directiveStart&&aW(e,a[e],n)}finally{p!==null&&Ar(p),Qb(l),s.resolving=!1,eE()}}return o}function bW(t){if(typeof t=="string")return t.charCodeAt(0)||0;let n=t.hasOwnProperty(yd)?t[yd]:void 0;return typeof n=="number"?n>=0?n&HR:vW:n}function KO(t,n,e){let i=1<>zR)]&i)}function ZO(t,n){return!(t&2)&&!(t&1&&n)}var Id=class{_tNode;_lView;constructor(n,e){this._tNode=n,this._lView=e}get(n,e,i){return GR(this._tNode,this._lView,n,_d(i),e)}};function vW(){return new Id(on(),Ne())}function ge(t){return vm(()=>{let n=t.prototype.constructor,e=n[Mp]||vE(n),i=Object.prototype,r=Object.getPrototypeOf(t.prototype).constructor;for(;r&&r!==i;){let o=r[Mp]||vE(r);if(o&&o!==e)return o;r=Object.getPrototypeOf(r)}return o=>new o})}function vE(t){return fD(t)?()=>{let n=vE(vn(t));return n&&n()}:jl(t)}function yW(t,n,e,i,r){let o=t,a=n;for(;o!==null&&a!==null&&a[et]&2048&&!om(a);){let s=qR(o,a,e,i|2,os);if(s!==os)return s;let l=o.parent;if(!l){let c=a[RD];if(c){let d=c.get(e,os,i);if(d!==os)return d}l=YR(a),a=a[Cd]}o=l}return r}function YR(t){let n=t[We],e=n.type;return e===2?n.declTNode:e===1?t[Or]:null}function Jp(t){return gW(on(),t)}function xW(){return ym(on(),Ne())}function ym(t,n){return new Y(Uo(t,n))}var Y=(()=>{class t{nativeElement;constructor(e){this.nativeElement=e}static __NG_ELEMENT_ID__=xW}return t})();function QR(t){return t instanceof Y?t.nativeElement:t}function CW(){return this._results[Symbol.iterator]()}var gr=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 z}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 i=fO(n);(this._changesDetected=!pO(this._results,i,e))&&(this._results=i,this.length=i.length,this.last=i[this.length-1],this.first=i[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]=CW};function KR(t){return(t.flags&128)===128}var n1=(function(t){return t[t.OnPush=0]="OnPush",t[t.Default=1]="Default",t})(n1||{}),ZR=new Map,wW=0;function DW(){return wW++}function EW(t){ZR.set(t[Pp],t)}function yE(t){ZR.delete(t[Pp])}var XO="__ngContext__";function pm(t,n){es(n)?(t[XO]=n[Pp],EW(n)):t[XO]=n}function XR(t){return eP(t[nm])}function JR(t){return eP(t[Ho])}function eP(t){for(;t!==null&&!va(t);)t=t[Ho];return t}var xE;function r1(t){xE=t}function o1(){if(xE!==void 0)return xE;if(typeof document<"u")return document;throw new me(210,!1)}var Ql=new O("",{providedIn:"root",factory:()=>MW}),MW="ng",d0=new O(""),Zs=new O("",{providedIn:"platform",factory:()=>"unknown"});var ef=new O(""),xm=new O("",{providedIn:"root",factory:()=>o1().body?.querySelector("[ngCspNonce]")?.getAttribute("ngCspNonce")||null});var SW="h",kW="b";var tP="r";var iP="di";var nP=!1,rP=new O("",{providedIn:"root",factory:()=>nP});var u0=new O("");var TW=(t,n,e,i)=>{};function IW(t,n,e,i){TW(t,n,e,i)}function m0(t){return(t.flags&32)===32}var AW=()=>null;function oP(t,n,e=!1){return AW(t,n,e)}function aP(t,n){let e=t.contentQueries;if(e!==null){let i=Xe(null);try{for(let r=0;rt,createScript:t=>t,createScriptURL:t=>t})}catch{}return Nb}function h0(t){return OW()?.createHTML(t)||t}var Lb;function sP(){if(Lb===void 0&&(Lb=null,Bo.trustedTypes))try{Lb=Bo.trustedTypes.createPolicy("angular#unsafe-bypass",{createHTML:t=>t,createScript:t=>t,createScriptURL:t=>t})}catch{}return Lb}function JO(t){return sP()?.createHTML(t)||t}function eR(t){return sP()?.createScriptURL(t)||t}var Ks=class{changingThisBreaksApplicationSecurity;constructor(n){this.changingThisBreaksApplicationSecurity=n}toString(){return`SafeValue must use [property]=binding: ${this.changingThisBreaksApplicationSecurity} (see ${_b})`}},wE=class extends Ks{getTypeName(){return"HTML"}},DE=class extends Ks{getTypeName(){return"Style"}},EE=class extends Ks{getTypeName(){return"Script"}},ME=class extends Ks{getTypeName(){return"URL"}},SE=class extends Ks{getTypeName(){return"ResourceURL"}};function Yr(t){return t instanceof Ks?t.changingThisBreaksApplicationSecurity:t}function cs(t,n){let e=lP(t);if(e!=null&&e!==n){if(e==="ResourceURL"&&n==="URL")return!0;throw new Error(`Required a safe ${n}, got a ${e} (see ${_b})`)}return e===n}function lP(t){return t instanceof Ks&&t.getTypeName()||null}function s1(t){return new wE(t)}function l1(t){return new DE(t)}function c1(t){return new EE(t)}function d1(t){return new ME(t)}function u1(t){return new SE(t)}function RW(t){let n=new TE(t);return PW()?new kE(n):n}var kE=class{inertDocumentHelper;constructor(n){this.inertDocumentHelper=n}getInertBodyElement(n){n=""+n;try{let e=new window.DOMParser().parseFromString(h0(n),"text/html").body;return e===null?this.inertDocumentHelper.getInertBodyElement(n):(e.firstChild?.remove(),e)}catch{return null}}},TE=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=h0(n),e}};function PW(){try{return!!new window.DOMParser().parseFromString(h0(""),"text/html")}catch{return!1}}var FW=/^(?!javascript:)(?:[a-z0-9+.-]+:|[^&:\/?#]*(?:[\/?#]|$))/i;function tf(t){return t=String(t),t.match(FW)?t:"unsafe:"+t}function Xs(t){let n={};for(let e of t.split(","))n[e]=!0;return n}function nf(...t){let n={};for(let e of t)for(let i in e)e.hasOwnProperty(i)&&(n[i]=!0);return n}var cP=Xs("area,br,col,hr,img,wbr"),dP=Xs("colgroup,dd,dt,li,p,tbody,td,tfoot,th,thead,tr"),uP=Xs("rp,rt"),NW=nf(uP,dP),LW=nf(dP,Xs("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")),VW=nf(uP,Xs("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")),tR=nf(cP,LW,VW,NW),mP=Xs("background,cite,href,itemtype,longdesc,poster,src,xlink:href"),BW=Xs("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"),jW=Xs("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"),HW=nf(mP,BW,jW),zW=Xs("script,style,template"),IE=class{sanitizedSomething=!1;buf=[];sanitizeChildren(n){let e=n.firstChild,i=!0,r=[];for(;e;){if(e.nodeType===Node.ELEMENT_NODE?i=this.startElement(e):e.nodeType===Node.TEXT_NODE?this.chars(e.nodeValue):this.sanitizedSomething=!0,i&&e.firstChild){r.push(e),e=WW(e);continue}for(;e;){e.nodeType===Node.ELEMENT_NODE&&this.endElement(e);let o=$W(e);if(o){e=o;break}e=r.pop()}}return this.buf.join("")}startElement(n){let e=iR(n).toLowerCase();if(!tR.hasOwnProperty(e))return this.sanitizedSomething=!0,!zW.hasOwnProperty(e);this.buf.push("<"),this.buf.push(e);let i=n.attributes;for(let r=0;r"),!0}endElement(n){let e=iR(n).toLowerCase();tR.hasOwnProperty(e)&&!cP.hasOwnProperty(e)&&(this.buf.push(""))}chars(n){this.buf.push(nR(n))}};function UW(t,n){return(t.compareDocumentPosition(n)&Node.DOCUMENT_POSITION_CONTAINED_BY)!==Node.DOCUMENT_POSITION_CONTAINED_BY}function $W(t){let n=t.nextSibling;if(n&&t!==n.previousSibling)throw hP(n);return n}function WW(t){let n=t.firstChild;if(n&&UW(t,n))throw hP(n);return n}function iR(t){let n=t.nodeName;return typeof n=="string"?n:"FORM"}function hP(t){return new Error(`Failed to sanitize html because the element is clobbered: ${t.outerHTML}`)}var GW=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,qW=/([^\#-~ |!])/g;function nR(t){return t.replace(/&/g,"&").replace(GW,function(n){let e=n.charCodeAt(0),i=n.charCodeAt(1);return"&#"+((e-55296)*1024+(i-56320)+65536)+";"}).replace(qW,function(n){return"&#"+n.charCodeAt(0)+";"}).replace(//g,">")}var Vb;function p0(t,n){let e=null;try{Vb=Vb||RW(t);let i=n?String(n):"";e=Vb.getInertBodyElement(i);let r=5,o=i;do{if(r===0)throw new Error("Failed to sanitize html because the input is unstable");r--,i=o,o=e.innerHTML,e=Vb.getInertBodyElement(i)}while(i!==o);let s=new IE().sanitizeChildren(rR(e)||e);return h0(s)}finally{if(e){let i=rR(e)||e;for(;i.firstChild;)i.firstChild.remove()}}}function rR(t){return"content"in t&&YW(t)?t.content:null}function YW(t){return t.nodeType===Node.ELEMENT_NODE&&t.nodeName==="TEMPLATE"}var QW=/^>|^->||--!>|)/g,ZW="\u200B$1\u200B";function XW(t){return t.replace(QW,n=>n.replace(KW,ZW))}function JW(t,n){return t.createText(n)}function e7(t,n,e){t.setValue(n,e)}function t7(t,n){return t.createComment(XW(n))}function pP(t,n,e){return t.createElement(n,e)}function Zb(t,n,e,i,r){t.insertBefore(n,e,i,r)}function fP(t,n,e){t.appendChild(n,e)}function oR(t,n,e,i,r){i!==null?Zb(t,n,e,i,r):fP(t,n,e)}function gP(t,n,e,i){t.removeChild(null,n,e,i)}function i7(t,n,e){t.setAttribute(n,"style",e)}function n7(t,n,e){e===""?t.removeAttribute(n,"class"):t.setAttribute(n,"class",e)}function _P(t,n,e){let{mergedAttrs:i,classes:r,styles:o}=e;i!==null&&dW(t,n,i),r!==null&&n7(t,n,r),o!==null&&i7(t,n,o)}var Rn=(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})(Rn||{});function rf(t){let n=h1();return n?JO(n.sanitize(Rn.HTML,t)||""):cs(t,"HTML")?JO(Yr(t)):p0(o1(),jo(t))}function Qr(t){let n=h1();return n?n.sanitize(Rn.URL,t)||"":cs(t,"URL")?Yr(t):tf(jo(t))}function bP(t){let n=h1();if(n)return eR(n.sanitize(Rn.RESOURCE_URL,t)||"");if(cs(t,"ResourceURL"))return eR(Yr(t));throw new me(904,!1)}var r7=new Set(["embed","frame","iframe","media","script"]),o7=new Set(["base","link","script"]);function a7(t,n){return n==="src"&&r7.has(t)||n==="href"&&o7.has(t)||n==="xlink:href"&&t==="script"?bP:Qr}function m1(t,n,e){return a7(n,e)(t)}function h1(){let t=Ne();return t&&t[Xa].sanitizer}function vP(t){return t instanceof Function?t():t}function s7(t,n,e){let i=t.length;for(;;){let r=t.indexOf(n,e);if(r===-1)return r;if(r===0||t.charCodeAt(r-1)<=32){let o=n.length;if(r+o===i||t.charCodeAt(r+o)<=32)return r}e=r+1}}var yP="ng-template";function l7(t,n,e,i){let r=0;if(i){for(;r-1){let o;for(;++ro?p="":p=r[d+1].toLowerCase(),i&2&&c!==p){if(Ca(i))return!1;a=!0}}}}return Ca(i)||a}function Ca(t){return(t&1)===0}function u7(t,n,e,i){if(n===null)return-1;let r=0;if(i||!e){let o=!1;for(;r-1)for(e++;e0?'="'+s+'"':"")+"]"}else i&8?r+="."+a:i&4&&(r+=" "+a);else r!==""&&!Ca(a)&&(n+=aR(o,r),r=""),i=a,o=o||!Ca(i);e++}return r!==""&&(n+=aR(o,r)),n}function _7(t){return t.map(g7).join(",")}function b7(t){let n=[],e=[],i=1,r=2;for(;inull),a=i;if(n&&typeof n=="object"){let l=n;r=l.next?.bind(l),o=l.error?.bind(l),a=l.complete?.bind(l)}this.__isAsync&&(o=this.wrapInTimeout(o),r&&(r=this.wrapInTimeout(r)),a&&(a=this.wrapInTimeout(a)));let s=super.subscribe({next:r,error:o,complete:a});return n instanceof Te&&n.add(s),s}wrapInTimeout(n){return e=>{let i=this.pendingTasks?.add();setTimeout(()=>{try{n(e)}finally{i!==void 0&&this.pendingTasks?.remove(i)}})}}},U=OE;function MP(t){let n,e;function i(){t=Td;try{e!==void 0&&typeof cancelAnimationFrame=="function"&&cancelAnimationFrame(e),n!==void 0&&clearTimeout(n)}catch{}}return n=setTimeout(()=>{t(),i()}),typeof requestAnimationFrame=="function"&&(e=requestAnimationFrame(()=>{t(),i()})),()=>i()}function lR(t){return queueMicrotask(()=>t()),()=>{t=Td}}var v1="isAngularZone",Xb=v1+"_ID",w7=0,ae=class t{hasPendingMacrotasks=!1;hasPendingMicrotasks=!1;isStable=!0;onUnstable=new U(!1);onMicrotaskEmpty=new U(!1);onStable=new U(!1);onError=new U(!1);constructor(n){let{enableLongStackTrace:e=!1,shouldCoalesceEventChangeDetection:i=!1,shouldCoalesceRunChangeDetection:r=!1,scheduleInRootZone:o=EP}=n;if(typeof Zone>"u")throw new me(908,!1);Zone.assertZonePatched();let a=this;a._nesting=0,a._outer=a._inner=Zone.current,Zone.TaskTrackingZoneSpec&&(a._inner=a._inner.fork(new Zone.TaskTrackingZoneSpec)),e&&Zone.longStackTraceZoneSpec&&(a._inner=a._inner.fork(Zone.longStackTraceZoneSpec)),a.shouldCoalesceEventChangeDetection=!r&&i,a.shouldCoalesceRunChangeDetection=r,a.callbackScheduled=!1,a.scheduleInRootZone=o,M7(a)}static isInAngularZone(){return typeof Zone<"u"&&Zone.current.get(v1)===!0}static assertInAngularZone(){if(!t.isInAngularZone())throw new me(909,!1)}static assertNotInAngularZone(){if(t.isInAngularZone())throw new me(909,!1)}run(n,e,i){return this._inner.run(n,e,i)}runTask(n,e,i,r){let o=this._inner,a=o.scheduleEventTask("NgZoneEvent: "+r,n,D7,Td,Td);try{return o.runTask(a,e,i)}finally{o.cancelTask(a)}}runGuarded(n,e,i){return this._inner.runGuarded(n,e,i)}runOutsideAngular(n){return this._outer.run(n)}},D7={};function y1(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 E7(t){if(t.isCheckStableRunning||t.callbackScheduled)return;t.callbackScheduled=!0;function n(){MP(()=>{t.callbackScheduled=!1,RE(t),t.isCheckStableRunning=!0,y1(t),t.isCheckStableRunning=!1})}t.scheduleInRootZone?Zone.root.run(()=>{n()}):t._outer.run(()=>{n()}),RE(t)}function M7(t){let n=()=>{E7(t)},e=w7++;t._inner=t._inner.fork({name:"angular",properties:{[v1]:!0,[Xb]:e,[Xb+e]:!0},onInvokeTask:(i,r,o,a,s,l)=>{if(S7(l))return i.invokeTask(o,a,s,l);try{return cR(t),i.invokeTask(o,a,s,l)}finally{(t.shouldCoalesceEventChangeDetection&&a.type==="eventTask"||t.shouldCoalesceRunChangeDetection)&&n(),dR(t)}},onInvoke:(i,r,o,a,s,l,c)=>{try{return cR(t),i.invoke(o,a,s,l,c)}finally{t.shouldCoalesceRunChangeDetection&&!t.callbackScheduled&&!k7(l)&&n(),dR(t)}},onHasTask:(i,r,o,a)=>{i.hasTask(o,a),r===o&&(a.change=="microTask"?(t._hasPendingMicrotasks=a.microTask,RE(t),y1(t)):a.change=="macroTask"&&(t.hasPendingMacrotasks=a.macroTask))},onHandleError:(i,r,o,a)=>(i.handleError(o,a),t.runOutsideAngular(()=>t.onError.emit(a)),!1)})}function RE(t){t._hasPendingMicrotasks||(t.shouldCoalesceEventChangeDetection||t.shouldCoalesceRunChangeDetection)&&t.callbackScheduled===!0?t.hasPendingMicrotasks=!0:t.hasPendingMicrotasks=!1}function cR(t){t._nesting++,t.isStable&&(t.isStable=!1,t.onUnstable.emit(null))}function dR(t){t._nesting--,y1(t)}var Gp=class{hasPendingMicrotasks=!1;hasPendingMacrotasks=!1;isStable=!0;onUnstable=new U;onMicrotaskEmpty=new U;onStable=new U;onError=new U;run(n,e,i){return n.apply(e,i)}runGuarded(n,e,i){return n.apply(e,i)}runOutsideAngular(n){return n()}runTask(n,e,i,r){return n.apply(e,i)}};function S7(t){return SP(t,"__ignore_ng_zone__")}function k7(t){return SP(t,"__scheduler_tick__")}function SP(t,n){return!Array.isArray(t)||t.length!==1?!1:t[0]?.data?.[n]===!0}var _0=(()=>{class t{impl=null;execute(){this.impl?.execute()}static \u0275prov=R({token:t,providedIn:"root",factory:()=>new t})}return t})(),x1=[0,1,2,3],C1=(()=>{class t{ngZone=u(ae);scheduler=u(Lo);errorHandler=u(An,{optional:!0});sequences=new Set;deferredRegistrations=new Set;executing=!1;constructor(){u(Kl,{optional:!0})}execute(){let e=this.sequences.size>0;e&&li(16),this.executing=!0;for(let i of x1)for(let r of this.sequences)if(!(r.erroredOrDestroyed||!r.hooks[i]))try{r.pipelinedValue=this.ngZone.runOutsideAngular(()=>this.maybeTrace(()=>{let o=r.hooks[i];return o(r.pipelinedValue)},r.snapshot))}catch(o){r.erroredOrDestroyed=!0,this.errorHandler?.handleError(o)}this.executing=!1;for(let i of this.sequences)i.afterRun(),i.once&&(this.sequences.delete(i),i.destroy());for(let i of this.deferredRegistrations)this.sequences.add(i);this.deferredRegistrations.size>0&&this.scheduler.notify(7),this.deferredRegistrations.clear(),e&&li(17)}register(e){let{view:i}=e;i!==void 0?((i[Dd]??=[]).push(e),$l(i),i[et]|=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,i){return i?i.run(g0.AFTER_NEXT_RENDER,e):e()}static \u0275prov=R({token:t,providedIn:"root",factory:()=>new t})}return t})(),qp=class{impl;hooks;view;once;snapshot;erroredOrDestroyed=!1;pipelinedValue=void 0;unregisterOnDestroy;constructor(n,e,i,r,o,a=null){this.impl=n,this.hooks=e,this.view=i,this.once=r,this.snapshot=a,this.unregisterOnDestroy=o?.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?.[Dd];n&&(this.view[Dd]=n.filter(e=>e!==this))}};function gt(t,n){let e=n?.injector??u(de);return ds("NgAfterNextRender"),I7(t,e,n,!0)}function T7(t){return t instanceof Function?[void 0,void 0,t,void 0]:[t.earlyRead,t.write,t.mixedReadWrite,t.read]}function I7(t,n,e,i){let r=n.get(_0);r.impl??=n.get(C1);let o=n.get(Kl,null,{optional:!0}),a=e?.manualCleanup!==!0?n.get(an):null,s=n.get(kd,null,{optional:!0}),l=new qp(r.impl,T7(t),s?.view,i,a,o?.snapshot(null));return r.impl.register(l),l}var kP=new O("",{providedIn:"root",factory:()=>({queue:new Set,isScheduled:!1,scheduler:null})});function TP(t,n,e){let i=t.get(kP);if(Array.isArray(n))for(let r of n)i.queue.add(r),e?.detachedLeaveAnimationFns?.push(r);else i.queue.add(n),e?.detachedLeaveAnimationFns?.push(n);i.scheduler&&i.scheduler(t)}function A7(t,n){let e=t.get(kP);if(n.detachedLeaveAnimationFns){for(let i of n.detachedLeaveAnimationFns)e.queue.delete(i);n.detachedLeaveAnimationFns=void 0}}function O7(t,n){for(let[e,i]of n)TP(t,i.animateFns)}function uR(t,n,e,i){let r=t?.[Ed]?.enter;n!==null&&r&&r.has(e.index)&&O7(i,r)}function um(t,n,e,i,r,o,a,s){if(r!=null){let l,c=!1;va(r)?l=r:es(r)&&(c=!0,r=r[ba]);let d=zo(r);t===0&&i!==null?(uR(s,i,o,e),a==null?fP(n,i,d):Zb(n,i,d,a||null,!0)):t===1&&i!==null?(uR(s,i,o,e),Zb(n,i,d,a||null,!0)):t===2?mR(s,o,e,p=>{gP(n,d,c,p)}):t===3&&mR(s,o,e,()=>{n.destroyNode(d)}),l!=null&&U7(n,t,e,l,o,i,a)}}function R7(t,n){IP(t,n),n[ba]=null,n[Or]=null}function P7(t,n,e,i,r,o){i[ba]=r,i[Or]=n,v0(t,i,e,1,r,o)}function IP(t,n){n[Xa].changeDetectionScheduler?.notify(9),v0(t,n,n[si],2,null,null)}function F7(t){let n=t[nm];if(!n)return lE(t[We],t);for(;n;){let e=null;if(es(n))e=n[nm];else{let i=n[Xi];i&&(e=i)}if(!e){for(;n&&!n[Ho]&&n!==t;)es(n)&&lE(n[We],n),n=n[yn];n===null&&(n=t),es(n)&&lE(n[We],n),e=n&&n[Ho]}n=e}}function w1(t,n){let e=t[Md],i=e.indexOf(n);e.splice(i,1)}function b0(t,n){if(Sd(n))return;let e=n[si];e.destroyNode&&v0(t,n,e,3,null,null),F7(n)}function lE(t,n){if(Sd(n))return;let e=Xe(null);try{n[et]&=-129,n[et]|=256,n[vo]&&Al(n[vo]),V7(t,n),L7(t,n),n[We].type===1&&n[si].destroy();let i=n[zl];if(i!==null&&va(n[yn])){i!==n[yn]&&w1(i,n);let r=n[Ja];r!==null&&r.detachView(t)}yE(n)}finally{Xe(e)}}function mR(t,n,e,i){let r=t?.[Ed];if(r==null||r.leave==null||!r.leave.has(n.index))return i(!1);t&&Od.add(t),TP(e,()=>{if(r.leave&&r.leave.has(n.index)){let a=r.leave.get(n.index),s=[];if(a){for(let l=0;l{t[Ed].running=void 0,Od.delete(t),n(!0)});return}n(!1)}function L7(t,n){let e=t.cleanup,i=n[im];if(e!==null)for(let a=0;a=0?i[s]():i[-s].unsubscribe(),a+=2}else{let s=i[e[a+1]];e[a].call(s)}i!==null&&(n[im]=null);let r=n[$s];if(r!==null){n[$s]=null;for(let a=0;ahi&&DP(t,n,hi,!1),li(a?2:0,r,e),e(i,r)}finally{Wl(o),li(a?3:1,r,e)}}function y0(t,n,e){Q7(t,n,e),(e.flags&64)===64&&K7(t,n,e)}function Cm(t,n,e=Uo){let i=n.localNames;if(i!==null){let r=n.index+1;for(let o=0;onull;function Y7(t){return t==="class"?"className":t==="for"?"htmlFor":t==="formaction"?"formAction":t==="innerHtml"?"innerHTML":t==="readonly"?"readOnly":t==="tabindex"?"tabIndex":t}function NP(t,n,e,i,r,o){let a=n[We];if(w0(t,a,n,e,i)){Ys(t)&&VP(n,t.index);return}t.type&3&&(e=Y7(e)),LP(t,n,e,i,r,o)}function LP(t,n,e,i,r,o){if(t.type&3){let a=Uo(t,n);i=o!=null?o(i,t.value||"",e):i,r.setProperty(a,e,i)}else t.type&12}function VP(t,n){let e=$o(n,t);e[et]&16||(e[et]|=64)}function Q7(t,n,e){let i=e.directiveStart,r=e.directiveEnd;Ys(e)&&x7(n,e,t.data[i+e.componentOffset]),t.firstCreatePass||Kb(e,n);let o=e.initialInputs;for(let a=i;a{$l(t.lView)},consumerOnSignalRead(){this.lView[vo]=this}});function lG(t){let n=t[vo]??Object.create(cG);return n.lView=t,n}var cG=Ee(k({},ad),{consumerIsAlwaysLive:!0,kind:"template",consumerMarkedDirty:t=>{let n=Hl(t.lView);for(;n&&!UP(n[We]);)n=Hl(n);n&&jD(n)},consumerOnSignalRead(){this.lView[vo]=this}});function UP(t){return t.type!==2}function $P(t){if(t[qs]===null)return;let n=!0;for(;n;){let e=!1;for(let i of t[qs])i.dirty&&(e=!0,i.zone===null||Zone.current===i.zone?i.run():i.zone.run(()=>i.run()));n=e&&!!(t[et]&8192)}}var dG=100;function WP(t,n=0){let i=t[Xa].rendererFactory,r=!1;r||i.begin?.();try{uG(t,n)}finally{r||i.end?.()}}function uG(t,n){let e=ZD();try{lm(!0),FE(t,n);let i=0;for(;Lp(t);){if(i===dG)throw new me(103,!1);i++,FE(t,1)}}finally{lm(e)}}function mG(t,n,e,i){if(Sd(n))return;let r=n[et],o=!1,a=!1;Ab(n);let s=!0,l=null,c=null;o||(UP(t)?(c=rG(n),l=Il(c)):P_()===null?(s=!1,c=lG(n),l=Il(c)):n[vo]&&(Al(n[vo]),n[vo]=null));try{BD(n),FO(t.bindingStartIndex),e!==null&&FP(t,n,e,2,i);let d=(r&3)===3;if(!o)if(d){let b=t.preOrderCheckHooks;b!==null&&Hb(n,b,null)}else{let b=t.preOrderHooks;b!==null&&zb(n,b,0,null),aE(n,0)}if(a||hG(n),$P(n),GP(n,0),t.contentQueries!==null&&aP(t,n),!o)if(d){let b=t.contentCheckHooks;b!==null&&Hb(n,b)}else{let b=t.contentHooks;b!==null&&zb(n,b,1),aE(n,1)}fG(t,n);let p=t.components;p!==null&&YP(n,p,0);let _=t.viewQuery;if(_!==null&&CE(2,_,i),!o)if(d){let b=t.viewCheckHooks;b!==null&&Hb(n,b)}else{let b=t.viewHooks;b!==null&&zb(n,b,2),aE(n,2)}if(t.firstUpdatePass===!0&&(t.firstUpdatePass=!1),n[Eb]){for(let b of n[Eb])b();n[Eb]=null}o||(HP(n),n[et]&=-73)}catch(d){throw o||$l(n),d}finally{c!==null&&(sd(c,l),s&&aG(c)),Ob()}}function GP(t,n){for(let e=XR(t);e!==null;e=JR(e))for(let i=Xi;i0&&(t[e-1][Ho]=i[Ho]);let o=Ap(t,Xi+n);R7(i[We],i);let a=o[Ja];a!==null&&a.detachView(o[We]),i[yn]=null,i[Ho]=null,i[et]&=-129}return i}function gG(t,n,e,i){let r=Xi+i,o=e.length;i>0&&(e[r-1][Ho]=n),i-1&&(Qp(n,i),Ap(e,i))}this._attachedToViewContainer=!1}b0(this._lView[We],this._lView)}onDestroy(n){HD(this._lView,n)}markForCheck(){k1(this._cdRefInjectingView||this._lView,4)}detach(){this._lView[et]&=-129}reattach(){Sb(this._lView),this._lView[et]|=128}detectChanges(){this._lView[et]|=1024,WP(this._lView)}checkNoChanges(){}attachToViewContainerRef(){if(this._appRef)throw new me(902,!1);this._attachedToViewContainer=!0}detachFromAppRef(){this._appRef=null;let n=om(this._lView),e=this._lView[zl];e!==null&&!n&&w1(e,this._lView),IP(this._lView[We],this._lView)}attachToAppRef(n){if(this._attachedToViewContainer)throw new me(902,!1);this._appRef=n;let e=om(this._lView),i=this._lView[zl];i!==null&&!e&&XP(i,this._lView),Sb(this._lView)}};var te=(()=>{class t{_declarationLView;_declarationTContainer;elementRef;static __NG_ELEMENT_ID__=_G;constructor(e,i,r){this._declarationLView=e,this._declarationTContainer=i,this.elementRef=r}get ssrId(){return this._declarationTContainer.tView?.ssrId||null}createEmbeddedView(e,i){return this.createEmbeddedViewImpl(e,i)}createEmbeddedViewImpl(e,i,r){let o=of(this._declarationLView,this._declarationTContainer,e,{embeddedViewInjector:i,dehydratedView:r});return new Gl(o)}}return t})();function _G(){return D0(on(),Ne())}function D0(t,n){return t.type&4?new te(n,t,ym(t,n)):null}function wm(t,n,e,i,r){let o=t.data[n];if(o===null)o=bG(t,n,e,i,r),NO()&&(o.flags|=32);else if(o.type&64){o.type=e,o.value=i,o.attrs=r;let a=RO();o.injectorIndex=a===null?-1:a.injectorIndex}return sm(o,!0),o}function bG(t,n,e,i,r){let o=YD(),a=QD(),s=a?o:o&&o.parent,l=t.data[n]=yG(t,s,e,n,i,r);return vG(t,l,o,a),l}function vG(t,n,e,i){t.firstChild===null&&(t.firstChild=n),e!==null&&(i?e.child==null&&n.parent!==null&&(e.child=n):e.next===null&&(e.next=n,n.prev=e))}function yG(t,n,e,i,r,o){let a=n?n.injectorIndex:-1,s=0;return WD()&&(s|=128),{type:e,index:i,insertBeforeIndex:null,injectorIndex:a,directiveStart:-1,directiveEnd:-1,directiveStylingLast:-1,componentOffset:-1,propertyBindings:null,flags:s,providerIndexes:0,value:r,attrs:o,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}}var uAe=new RegExp(`^(\\d+)*(${kW}|${SW})*(.*)`);function xG(t){let n=t[PD]??[],i=t[yn][si],r=[];for(let o of n)o.data[iP]!==void 0?r.push(o):CG(o,i);t[PD]=r}function CG(t,n){let e=0,i=t.firstChild;if(i){let r=t.data[tP];for(;enull,DG=()=>null;function Jb(t,n){return wG(t,n)}function JP(t,n,e){return DG(t,n,e)}var Fd=class{},E0=class{},NE=class{resolveComponentFactory(n){throw new me(917,!1)}},sf=class{static NULL=new NE},mn=class{},ze=(()=>{class t{destroyNode=null;static __NG_ELEMENT_ID__=()=>EG()}return t})();function EG(){let t=Ne(),n=on(),e=$o(n.index,t);return(es(e)?e:t)[si]}var eF=(()=>{class t{static \u0275prov=R({token:t,providedIn:"root",factory:()=>null})}return t})();var $b={},LE=class{injector;parentInjector;constructor(n,e){this.injector=n,this.parentInjector=e}get(n,e,i){let r=this.injector.get(n,$b,i);return r!==$b||e===$b?r:this.parentInjector.get(n,e,i)}};function e0(t,n,e){let i=e?t.styles:null,r=e?t.classes:null,o=0;if(n!==null)for(let a=0;a0&&(e.directiveToIndex=new Map);for(let _=0;_0;){let e=t[--n];if(typeof e=="number"&&e<0)return e}return 0}function RG(t,n,e){if(e){if(n.exportAs)for(let i=0;ii(zo(w[t.index])):t.index;lF(y,n,e,o,s,b,!1)}}return c}function LG(t){return t.startsWith("animation")||t.startsWith("transition")}function VG(t,n,e,i){let r=t.cleanup;if(r!=null)for(let o=0;ol?s[l]:null}typeof a=="string"&&(o+=2)}return null}function lF(t,n,e,i,r,o,a){let s=n.firstCreatePass?UD(n):null,l=zD(e),c=l.length;l.push(r,o),s&&s.push(i,t,c,(c+1)*(a?-1:1))}function bR(t,n,e,i,r,o){let a=n[e],s=n[We],c=s.data[e].outputs[i],p=a[c].subscribe(o);lF(t.index,s,n,r,o,p,!0)}var VE=Symbol("BINDING");var t0=class extends sf{ngModule;constructor(n){super(),this.ngModule=n}resolveComponentFactory(n){let e=Za(n);return new ql(e,this.ngModule)}};function BG(t){return Object.keys(t).map(n=>{let[e,i,r]=t[n],o={propName:e,templateName:n,isSignal:(i&f0.SignalBased)!==0};return r&&(o.transform=r),o})}function jG(t){return Object.keys(t).map(n=>({propName:t[n],templateName:n}))}function HG(t,n,e){let i=n instanceof Kt?n:n?.injector;return i&&t.getStandaloneInjector!==null&&(i=t.getStandaloneInjector(i)||i),i?new LE(e,i):e}function zG(t){let n=t.get(mn,null);if(n===null)throw new me(407,!1);let e=t.get(eF,null),i=t.get(Lo,null);return{rendererFactory:n,sanitizer:e,changeDetectionScheduler:i,ngReflect:!1}}function UG(t,n){let e=cF(t);return pP(n,e,e==="svg"?ND:e==="math"?EO:null)}function cF(t){return(t.selectors[0][0]||"div").toLowerCase()}var ql=class extends E0{componentDef;ngModule;selector;componentType;ngContentSelectors;isBoundToModule;cachedInputs=null;cachedOutputs=null;get inputs(){return this.cachedInputs??=BG(this.componentDef.inputs),this.cachedInputs}get outputs(){return this.cachedOutputs??=jG(this.componentDef.outputs),this.cachedOutputs}constructor(n,e){super(),this.componentDef=n,this.ngModule=e,this.componentType=n.type,this.selector=_7(n.selectors),this.ngContentSelectors=n.ngContentSelectors??[],this.isBoundToModule=!!e}create(n,e,i,r,o,a){li(22);let s=Xe(null);try{let l=this.componentDef,c=$G(i,l,a,o),d=HG(l,r||this.ngModule,n),p=zG(d),_=p.rendererFactory.createRenderer(null,l),b=i?W7(_,i,l.encapsulation,d):UG(l,_),y=a?.some(vR)||o?.some(D=>typeof D!="function"&&D.bindings.some(vR)),w=g1(null,c,null,512|CP(l),null,null,p,_,d,null,oP(b,d,!0));w[hi]=b,Ab(w);let C=null;try{let D=T1(hi,w,2,"#host",()=>c.directiveRegistry,!0,0);_P(_,b,D),pm(b,w),y0(c,w,D),a1(c,D,w),I1(c,D),e!==void 0&&GG(D,this.ngContentSelectors,e),C=$o(D.index,w),w[Zi]=C[Zi],S1(c,w,null)}catch(D){throw C!==null&&yE(C),yE(w),D}finally{li(23),Ob()}return new i0(this.componentType,w,!!y)}finally{Xe(s)}}};function $G(t,n,e,i){let r=t?["ng-version","20.3.16"]:b7(n.selectors[0]),o=null,a=null,s=0;if(e)for(let d of e)s+=d[VE].requiredVars,d.create&&(d.targetIdx=0,(o??=[]).push(d)),d.update&&(d.targetIdx=0,(a??=[]).push(d));if(i)for(let d=0;d{if(e&1&&t)for(let i of t)i.create();if(e&2&&n)for(let i of n)i.update()}}function vR(t){let n=t[VE].kind;return n==="input"||n==="twoWay"}var i0=class extends Fd{_rootLView;_hasInputBindings;instance;hostView;changeDetectorRef;componentType;location;previousInputValues=null;_tNode;constructor(n,e,i){super(),this._rootLView=e,this._hasInputBindings=i,this._tNode=Np(e[We],hi),this.location=ym(this._tNode,e),this.instance=$o(this._tNode.index,e)[Zi],this.hostView=this.changeDetectorRef=new Gl(e,void 0),this.componentType=n}setInput(n,e){this._hasInputBindings;let i=this._tNode;if(this.previousInputValues??=new Map,this.previousInputValues.has(n)&&Object.is(this.previousInputValues.get(n),e))return;let r=this._rootLView,o=w0(i,r[We],r,n,e);this.previousInputValues.set(n,e);let a=$o(i.index,r);k1(a,1)}get injector(){return new Id(this._tNode,this._rootLView)}destroy(){this.hostView.destroy()}onDestroy(n){this.hostView.onDestroy(n)}};function GG(t,n,e){let i=t.projection=[];for(let r=0;r{class t{static __NG_ELEMENT_ID__=qG}return t})();function qG(){let t=on();return uF(t,Ne())}var YG=ot,dF=class extends YG{_lContainer;_hostTNode;_hostLView;constructor(n,e,i){super(),this._lContainer=n,this._hostTNode=e,this._hostLView=i}get element(){return ym(this._hostTNode,this._hostLView)}get injector(){return new Id(this._hostTNode,this._hostLView)}get parentInjector(){let n=i1(this._hostTNode,this._hostLView);if(jR(n)){let e=Yb(n,this._hostLView),i=qb(n),r=e[We].data[i+8];return new Id(r,e)}else return new Id(null,this._hostLView)}clear(){for(;this.length>0;)this.remove(this.length-1)}get(n){let e=yR(this._lContainer);return e!==null&&e[n]||null}get length(){return this._lContainer.length-Xi}createEmbeddedView(n,e,i){let r,o;typeof i=="number"?r=i:i!=null&&(r=i.index,o=i.injector);let a=Jb(this._lContainer,n.ssrId),s=n.createEmbeddedViewImpl(e||{},o,a);return this.insertImpl(s,r,fm(this._hostTNode,a)),s}createComponent(n,e,i,r,o,a,s){let l=n&&!iW(n),c;if(l)c=e;else{let C=e||{};c=C.index,i=C.injector,r=C.projectableNodes,o=C.environmentInjector||C.ngModuleRef,a=C.directives,s=C.bindings}let d=l?n:new ql(Za(n)),p=i||this.parentInjector;if(!o&&d.ngModule==null){let D=(l?p:this.parentInjector).get(Kt,null);D&&(o=D)}let _=Za(d.componentType??{}),b=Jb(this._lContainer,_?.id??null),y=b?.firstChild??null,w=d.create(p,r,y,o,a,s);return this.insertImpl(w.hostView,c,fm(this._hostTNode,b)),w}insert(n,e){return this.insertImpl(n,e,!0)}insertImpl(n,e,i){let r=n._lView;if(SO(r)){let s=this.indexOf(n);if(s!==-1)this.detach(s);else{let l=r[yn],c=new dF(l,l[Or],l[yn]);c.detach(c.indexOf(n))}}let o=this._adjustIndex(e),a=this._lContainer;return af(a,r,o,i),n.attachToViewContainerRef(),ED(cE(a),o,n),n}move(n,e){return this.insert(n,e)}indexOf(n){let e=yR(this._lContainer);return e!==null?e.indexOf(n):-1}remove(n){let e=this._adjustIndex(n,-1),i=Qp(this._lContainer,e);i&&(Ap(cE(this._lContainer),e),b0(i[We],i))}detach(n){let e=this._adjustIndex(n,-1),i=Qp(this._lContainer,e);return i&&Ap(cE(this._lContainer),e)!=null?new Gl(i):null}_adjustIndex(n,e=0){return n??this.length+e}};function yR(t){return t[Fp]}function cE(t){return t[Fp]||(t[Fp]=[])}function uF(t,n){let e,i=n[t.index];return va(i)?e=i:(e=QP(i,n,null,t),n[t.index]=e,_1(n,e)),KG(e,n,t,i),new dF(e,t,n)}function QG(t,n){let e=t[si],i=e.createComment(""),r=Uo(n,t),o=e.parentNode(r);return Zb(e,o,i,e.nextSibling(r),!1),i}var KG=JG,ZG=()=>!1;function XG(t,n,e){return ZG(t,n,e)}function JG(t,n,e,i){if(t[Ul])return;let r;e.type&8?r=zo(i):r=QG(n,e),t[Ul]=r}var BE=class t{queryList;matches=null;constructor(n){this.queryList=n}clone(){return new t(this.queryList)}setDirty(){this.queryList.setDirty()}},jE=class t{queries;constructor(n=[]){this.queries=n}createEmbeddedView(n){let e=n.queries;if(e!==null){let i=n.contentQueries!==null?n.contentQueries[0]:e.length,r=[];for(let o=0;o0)i.push(a[s/2]);else{let c=o[s+1],d=n[-l];for(let p=Xi;pn.trim())}function gF(t,n,e){t.queries===null&&(t.queries=new HE),t.queries.track(new zE(n,e))}function o9(t,n){let e=t.contentQueries||(t.contentQueries=[]),i=e.length?e[e.length-1]:-1;n!==i&&e.push(t.queries.length-1,n)}function R1(t,n){return t.queries.getByIndex(n)}function _F(t,n){let e=t[We],i=R1(e,n);return i.crossesNgTemplate?UE(e,t,n,[]):mF(e,t,i,n)}function P1(t,n,e){let i,r=yp(()=>{i._dirtyCounter();let o=a9(i,t);if(n&&o===void 0)throw new me(-951,!1);return o});return i=r[un],i._dirtyCounter=he(0),i._flatValue=void 0,r}function F1(t){return P1(!0,!1,t)}function N1(t){return P1(!0,!0,t)}function bF(t){return P1(!1,!1,t)}function vF(t,n){let e=t[un];e._lView=Ne(),e._queryIndex=n,e._queryList=O1(e._lView,n),e._queryList.onDirty(()=>e._dirtyCounter.update(i=>i+1))}function a9(t,n){let e=t._lView,i=t._queryIndex;if(e===void 0||i===void 0||e[et]&4)return n?void 0:hr;let r=O1(e,i),o=_F(e,i);return r.reset(o,QR),n?r.first:r._changesDetected||t._flatValue===void 0?t._flatValue=r.toArray():t._flatValue}var ss=class{},M0=class{};var r0=class extends ss{ngModuleType;_parent;_bootstrapComponents=[];_r3Injector;instance;destroyCbs=[];componentFactoryResolver=new t0(this);constructor(n,e,i,r=!0){super(),this.ngModuleType=n,this._parent=e;let o=kD(n);this._bootstrapComponents=vP(o.bootstrap),this._r3Injector=tE(n,e,[{provide:ss,useValue:this},{provide:sf,useValue:this.componentFactoryResolver},...i],Ws(n),new Set(["environment"])),r&&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)}},o0=class extends M0{moduleType;constructor(n){super(),this.moduleType=n}create(n){return new r0(this.moduleType,n,[])}};var Zp=class extends ss{injector;componentFactoryResolver=new t0(this);instance=null;constructor(n){super();let e=new vd([...n.providers,{provide:ss,useValue:this},{provide:sf,useValue:this.componentFactoryResolver}],n.parent||tm(),n.debugName,new Set(["environment"]));this.injector=e,n.runEnvironmentInitializers&&e.resolveInjectorInitializers()}destroy(){this.injector.destroy()}onDestroy(n){this.injector.onDestroy(n)}};function Dm(t,n,e=null){return new Zp({providers:t,parent:n,debugName:e,runEnvironmentInitializers:!0}).injector}var s9=(()=>{class t{_injector;cachedInjectors=new Map;constructor(e){this._injector=e}getOrCreateStandaloneInjector(e){if(!e.standalone)return null;if(!this.cachedInjectors.has(e)){let i=TD(!1,e.type),r=i.length>0?Dm([i],this._injector,`Standalone[${e.type.name}]`):null;this.cachedInjectors.set(e,r)}return this.cachedInjectors.get(e)}ngOnDestroy(){try{for(let e of this.cachedInjectors.values())e!==null&&e.destroy()}finally{this.cachedInjectors.clear()}}static \u0275prov=R({token:t,providedIn:"environment",factory:()=>new t(fe(Kt))})}return t})();function E(t){return vm(()=>{let n=yF(t),e=Ee(k({},n),{decls:t.decls,vars:t.vars,template:t.template,consts:t.consts||null,ngContentSelectors:t.ngContentSelectors,onPush:t.changeDetection===n1.OnPush,directiveDefs:null,pipeDefs:null,dependencies:n.standalone&&t.dependencies||null,getStandaloneInjector:n.standalone?r=>r.get(s9).getOrCreateStandaloneInjector(e):null,getExternalStyles:null,signals:t.signals??!1,data:t.data||{},encapsulation:t.encapsulation||Qs.Emulated,styles:t.styles||hr,_:null,schemas:t.schemas||null,tView:null,id:""});n.standalone&&ds("NgStandalone"),xF(e);let i=t.dependencies;return e.directiveDefs=xR(i,l9),e.pipeDefs=xR(i,bO),e.id=u9(e),e})}function l9(t){return Za(t)||wb(t)}function ee(t){return vm(()=>({type:t.type,bootstrap:t.bootstrap||hr,declarations:t.declarations||hr,imports:t.imports||hr,exports:t.exports||hr,transitiveCompileScopes:null,schemas:t.schemas||null,id:t.id||null}))}function c9(t,n){if(t==null)return _a;let e={};for(let i in t)if(t.hasOwnProperty(i)){let r=t[i],o,a,s,l;Array.isArray(r)?(s=r[0],o=r[1],a=r[2]??o,l=r[3]||null):(o=r,a=r,s=f0.None,l=null),e[o]=[i,s,l],n[o]=a}return e}function d9(t){if(t==null)return _a;let n={};for(let e in t)t.hasOwnProperty(e)&&(n[t[e]]=e);return n}function P(t){return vm(()=>{let n=yF(t);return xF(n),n})}function Kr(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 yF(t){let n={};return{type:t.type,providersResolver:null,factory:null,hostBindings:t.hostBindings||null,hostVars:t.hostVars||0,hostAttrs:t.hostAttrs||null,contentQueries:t.contentQueries||null,declaredInputs:n,inputConfig:t.inputs||_a,exportAs:t.exportAs||null,standalone:t.standalone??!0,signals:t.signals===!0,selectors:t.selectors||hr,viewQuery:t.viewQuery||null,features:t.features||null,setInput:null,resolveHostDirectives:null,hostDirectives:null,inputs:c9(t.inputs,n),outputs:d9(t.outputs),debugInfo:null}}function xF(t){t.features?.forEach(n=>n(t))}function xR(t,n){return t?()=>{let e=typeof t=="function"?t():t,i=[];for(let r of e){let o=n(r);o!==null&&i.push(o)}return i}:null}function u9(t){let n=0,e=typeof t.consts=="function"?"":t.consts,i=[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 o of i.join("|"))n=Math.imul(31,n)+o.charCodeAt(0)<<0;return n+=2147483648,"c"+n}function m9(t){return Object.getPrototypeOf(t.prototype).constructor}function le(t){let n=m9(t.type),e=!0,i=[t];for(;n;){let r;if(ya(t))r=n.\u0275cmp||n.\u0275dir;else{if(n.\u0275cmp)throw new me(903,!1);r=n.\u0275dir}if(r){if(e){i.push(r);let a=t;a.inputs=dE(t.inputs),a.declaredInputs=dE(t.declaredInputs),a.outputs=dE(t.outputs);let s=r.hostBindings;s&&_9(t,s);let l=r.viewQuery,c=r.contentQueries;if(l&&f9(t,l),c&&g9(t,c),h9(t,r),cO(t.outputs,r.outputs),ya(r)&&r.data.animation){let d=t.data;d.animation=(d.animation||[]).concat(r.data.animation)}}let o=r.features;if(o)for(let a=0;a=0;i--){let r=t[i];r.hostVars=n+=r.hostVars,r.hostAttrs=hm(r.hostAttrs,e=hm(e,r.hostAttrs))}}function dE(t){return t===_a?{}:t===hr?[]:t}function f9(t,n){let e=t.viewQuery;e?t.viewQuery=(i,r)=>{n(i,r),e(i,r)}:t.viewQuery=n}function g9(t,n){let e=t.contentQueries;e?t.contentQueries=(i,r,o)=>{n(i,r,o),e(i,r,o)}:t.contentQueries=n}function _9(t,n){let e=t.hostBindings;e?t.hostBindings=(i,r)=>{n(i,r),e(i,r)}:t.hostBindings=n}function Em(t){let n=e=>{let i=Array.isArray(t);e.hostDirectives===null?(e.resolveHostDirectives=b9,e.hostDirectives=i?t.map($E):[t]):i?e.hostDirectives.unshift(...t.map($E)):e.hostDirectives.unshift(t)};return n.ngInherit=!0,n}function b9(t){let n=[],e=!1,i=null,r=null;for(let o=0;o{class t{log(e){console.log(e)}warn(e){console.warn(e)}static \u0275fac=function(i){return new(i||t)};static \u0275prov=R({token:t,factory:t.\u0275fac,providedIn:"platform"})}return t})();var L1=new O("");function Js(t){return!!t&&typeof t.then=="function"}function k0(t){return!!t&&typeof t.subscribe=="function"}var V1=new O("");function Zl(t){return qr([{provide:V1,multi:!0,useValue:t}])}var B1=(()=>{class t{resolve;reject;initialized=!1;done=!1;donePromise=new Promise((e,i)=>{this.resolve=e,this.reject=i});appInits=u(V1,{optional:!0})??[];injector=u(de);constructor(){}runInitializers(){if(this.initialized)return;let e=[];for(let r of this.appInits){let o=On(this.injector,r);if(Js(o))e.push(o);else if(k0(o)){let a=new Promise((s,l)=>{o.subscribe({complete:s,error:l})});e.push(a)}}let i=()=>{this.done=!0,this.resolve()};Promise.all(e).then(()=>{i()}).catch(r=>{this.reject(r)}),e.length===0&&i(),this.initialized=!0}static \u0275fac=function(i){return new(i||t)};static \u0275prov=R({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),cf=new O("");function DF(){Nw(()=>{let t="";throw new me(600,t)})}function EF(t){return t.isBoundToModule}var w9=10;var Yn=(()=>{class t{_runningTick=!1;_destroyed=!1;_destroyListeners=[];_views=[];internalErrorHandler=u(fr);afterRenderManager=u(_0);zonelessEnabled=u(Hp);rootEffectScheduler=u(zp);dirtyFlags=0;tracingSnapshot=null;allTestViews=new Set;autoDetectTestViews=new Set;includeAllTestViews=!1;afterTick=new z;get allViews(){return[...(this.includeAllTestViews?this.allTestViews:this.autoDetectTestViews).keys(),...this._views]}get destroyed(){return this._destroyed}componentTypes=[];components=[];internalPendingTask=u(rs);get isStable(){return this.internalPendingTask.hasPendingTasksObservable.pipe(se(e=>!e))}constructor(){u(Kl,{optional:!0})}whenStable(){let e;return new Promise(i=>{e=this.isStable.subscribe({next:r=>{r&&i()}})}).finally(()=>{e.unsubscribe()})}_injector=u(Kt);_rendererFactory=null;get injector(){return this._injector}bootstrap(e,i){return this.bootstrapImpl(e,i)}bootstrapImpl(e,i,r=de.NULL){return this._injector.get(ae).run(()=>{li(10);let a=e instanceof E0;if(!this._injector.get(B1).done){let y="";throw new me(405,y)}let l;a?l=e:l=this._injector.get(sf).resolveComponentFactory(e),this.componentTypes.push(l.componentType);let c=EF(l)?void 0:this._injector.get(ss),d=i||l.selector,p=l.create(r,[],d,c),_=p.location.nativeElement,b=p.injector.get(L1,null);return b?.registerApplication(_),p.onDestroy(()=>{this.detachView(p.hostView),$p(this.components,p),b?.unregisterApplication(_)}),this._loadComponent(p),li(11,p),p})}tick(){this.zonelessEnabled||(this.dirtyFlags|=1),this._tick()}_tick(){li(12),this.tracingSnapshot!==null?this.tracingSnapshot.run(g0.CHANGE_DETECTION,this.tickImpl):this.tickImpl()}tickImpl=()=>{if(this._runningTick)throw new me(101,!1);let e=Xe(null);try{this._runningTick=!0,this.synchronize()}finally{this._runningTick=!1,this.tracingSnapshot?.dispose(),this.tracingSnapshot=null,Xe(e),this.afterTick.next(),li(13)}};synchronize(){this._rendererFactory===null&&!this._injector.destroyed&&(this._rendererFactory=this._injector.get(mn,null,{optional:!0}));let e=0;for(;this.dirtyFlags!==0&&e++Lp(e))){this.dirtyFlags|=2;return}else this.dirtyFlags&=-8}attachView(e){let i=e;this._views.push(i),i.attachToAppRef(this)}detachView(e){let i=e;$p(this._views,i),i.detachFromAppRef()}_loadComponent(e){this.attachView(e.hostView);try{this.tick()}catch(r){this.internalErrorHandler(r)}this.components.push(e),this._injector.get(cf,[]).forEach(r=>r(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),()=>$p(this._destroyListeners,e)}destroy(){if(this._destroyed)throw new me(406,!1);let e=this._injector;e.destroy&&!e.destroyed&&e.destroy()}get viewCount(){return this._views.length}static \u0275fac=function(i){return new(i||t)};static \u0275prov=R({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();function $p(t,n){let e=t.indexOf(n);e>-1&&t.splice(e,1)}function Xl(t,n){let e=Ne(),i=is();if(Rr(e,i,n)){let r=bi(),o=cm();if(w0(o,r,e,t,n))Ys(o)&&VP(e,o.index);else{let s=Uo(o,e);BP(e[si],s,null,o.value,t,n,null)}}return Xl}function X(t,n,e,i){let r=Ne(),o=is();if(Rr(r,o,n)){let a=bi(),s=cm();X7(s,r,t,n,e,i)}return X}var bAe=typeof document<"u"&&typeof document?.documentElement?.getAnimations=="function";function T0(){return Ne()[pr][Zi]}var WE=class{destroy(n){}updateValue(n,e){}swap(n,e){let i=Math.min(n,e),r=Math.max(n,e),o=this.detach(r);if(r-i>1){let a=this.detach(i);this.attach(i,o),this.attach(r,a)}else this.attach(i,o)}move(n,e){this.attach(e,this.detach(n))}};function uE(t,n,e,i,r){return t===e&&Object.is(n,i)?1:Object.is(r(t,n),r(e,i))?-1:0}function D9(t,n,e){let i,r,o=0,a=t.length-1,s=void 0;if(Array.isArray(n)){let l=n.length-1;for(;o<=a&&o<=l;){let c=t.at(o),d=n[o],p=uE(o,c,o,d,e);if(p!==0){p<0&&t.updateValue(o,d),o++;continue}let _=t.at(a),b=n[l],y=uE(a,_,l,b,e);if(y!==0){y<0&&t.updateValue(a,b),a--,l--;continue}let w=e(o,c),C=e(a,_),D=e(o,d);if(Object.is(D,C)){let F=e(l,b);Object.is(F,w)?(t.swap(o,a),t.updateValue(a,b),l--,a--):t.move(a,o),t.updateValue(o,d),o++;continue}if(i??=new a0,r??=ER(t,o,a,e),GE(t,i,o,D))t.updateValue(o,d),o++,a++;else if(r.has(D))i.set(w,t.detach(o)),a--;else{let F=t.create(o,n[o]);t.attach(o,F),o++,a++}}for(;o<=l;)DR(t,i,e,o,n[o]),o++}else if(n!=null){let l=n[Symbol.iterator](),c=l.next();for(;!c.done&&o<=a;){let d=t.at(o),p=c.value,_=uE(o,d,o,p,e);if(_!==0)_<0&&t.updateValue(o,p),o++,c=l.next();else{i??=new a0,r??=ER(t,o,a,e);let b=e(o,p);if(GE(t,i,o,b))t.updateValue(o,p),o++,a++,c=l.next();else if(!r.has(b))t.attach(o,t.create(o,p)),o++,a++,c=l.next();else{let y=e(o,d);i.set(y,t.detach(o)),a--}}}for(;!c.done;)DR(t,i,e,t.length,c.value),c=l.next()}for(;o<=a;)t.destroy(t.detach(a--));i?.forEach(l=>{t.destroy(l)})}function GE(t,n,e,i){return n!==void 0&&n.has(i)?(t.attach(e,n.get(i)),n.delete(i),!0):!1}function DR(t,n,e,i,r){if(GE(t,n,i,e(i,r)))t.updateValue(i,r);else{let o=t.create(i,r);t.attach(i,o)}}function ER(t,n,e,i){let r=new Set;for(let o=n;o<=e;o++)r.add(i(o,t.at(o)));return r}var a0=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 i=this.kvMap.get(n);this._vMap===void 0&&(this._vMap=new Map);let r=this._vMap;for(;r.has(i);)i=r.get(i);r.set(i,e)}else this.kvMap.set(n,e)}forEach(n){for(let[e,i]of this.kvMap)if(n(i,e),this._vMap!==void 0){let r=this._vMap;for(;r.has(i);)i=r.get(i),n(i,e)}}};function V(t,n,e,i,r,o,a,s){ds("NgControlFlow");let l=Ne(),c=bi(),d=yo(c.consts,o);return gm(l,c,t,n,e,i,r,d,256,a,s),j1}function j1(t,n,e,i,r,o,a,s){ds("NgControlFlow");let l=Ne(),c=bi(),d=yo(c.consts,o);return gm(l,c,t,n,e,i,r,d,512,a,s),j1}function B(t,n){ds("NgControlFlow");let e=Ne(),i=is(),r=e[i]!==Pn?e[i]:-1,o=r!==-1?s0(e,hi+r):void 0,a=0;if(Rr(e,i,t)){let s=Xe(null);try{if(o!==void 0&&ZP(o,a),t!==-1){let l=hi+t,c=s0(e,l),d=KE(e[We],l),p=JP(c,d,e),_=of(e,d,n,{dehydratedView:p});af(c,_,a,fm(d,p))}}finally{Xe(s)}}else if(o!==void 0){let s=KP(o,a);s!==void 0&&(s[Zi]=n)}}var qE=class{lContainer;$implicit;$index;constructor(n,e,i){this.lContainer=n,this.$implicit=e,this.$index=i}get $count(){return this.lContainer.length-Xi}};function Ui(t){return t}function Mm(t,n){return n}var YE=class{hasEmptyBlock;trackByFn;liveCollection;constructor(n,e,i){this.hasEmptyBlock=n,this.trackByFn=e,this.liveCollection=i}};function xt(t,n,e,i,r,o,a,s,l,c,d,p,_){ds("NgControlFlow");let b=Ne(),y=bi(),w=l!==void 0,C=Ne(),D=s?a.bind(C[pr][Zi]):a,F=new YE(w,D);C[hi+t]=F,gm(b,y,t+1,n,e,i,r,yo(y.consts,o),256),w&&gm(b,y,t+2,l,c,d,p,yo(y.consts,_),512)}var QE=class extends WE{lContainer;hostLView;templateTNode;operationsCounter=void 0;needsIndexUpdate=!1;constructor(n,e,i){super(),this.lContainer=n,this.hostLView=e,this.templateTNode=i}get length(){return this.lContainer.length-Xi}at(n){return this.getLView(n)[Zi].$implicit}attach(n,e){let i=e[xd];this.needsIndexUpdate||=n!==this.length,af(this.lContainer,e,n,fm(this.templateTNode,i)),E9(this.lContainer,n)}detach(n){return this.needsIndexUpdate||=n!==this.length-1,M9(this.lContainer,n),S9(this.lContainer,n)}create(n,e){let i=Jb(this.lContainer,this.templateTNode.tView.ssrId),r=of(this.hostLView,this.templateTNode,new qE(this.lContainer,e,n),{dehydratedView:i});return this.operationsCounter?.recordCreate(),r}destroy(n){b0(n[We],n),this.operationsCounter?.recordDestroy()}updateValue(n,e){this.getLView(n)[Zi].$implicit=e}reset(){this.needsIndexUpdate=!1,this.operationsCounter?.reset()}updateIndexes(){if(this.needsIndexUpdate)for(let n=0;n0){let o=i[Gs];A7(o,r),Od.delete(i),r.detachedLeaveAnimationFns=void 0}}function M9(t,n){if(t.length<=Xi)return;let e=Xi+n,i=t[e],r=i?i[Ed]:void 0;r&&r.leave&&r.leave.size>0&&(r.detachedLeaveAnimationFns=[])}function S9(t,n){return Qp(t,n)}function k9(t,n){return KP(t,n)}function KE(t,n){return Np(t,n)}function v(t,n,e){let i=Ne(),r=is();if(Rr(i,r,n)){let o=bi(),a=cm();NP(a,i,t,n,i[si],e)}return v}function ZE(t,n,e,i,r){w0(n,t,e,r?"class":"style",i)}function m(t,n,e,i){let r=Ne(),o=r[We],a=t+hi,s=o.firstCreatePass?T1(a,r,2,n,M1,kb(),e,i):o.data[a];if(x0(s,r,t,n,MF),rm(s)){let l=r[We];y0(l,r,s),a1(l,s,r)}return i!=null&&Cm(r,s),m}function h(){let t=bi(),n=on(),e=C0(n);return t.firstCreatePass&&I1(t,e),GD(e)&&qD(),$D(),e.classesWithoutHost!=null&&lW(e)&&ZE(t,e,Ne(),e.classesWithoutHost,!0),e.stylesWithoutHost!=null&&cW(e)&&ZE(t,e,Ne(),e.stylesWithoutHost,!1),h}function M(t,n,e,i){return m(t,n,e,i),h(),M}function pt(t,n,e,i){let r=Ne(),o=r[We],a=t+hi,s=o.firstCreatePass?nF(a,o,2,n,e,i):o.data[a];return x0(s,r,t,n,MF),i!=null&&Cm(r,s),pt}function _t(){let t=on(),n=C0(t);return GD(n)&&qD(),$D(),_t}function Xt(t,n,e,i){return pt(t,n,e,i),_t(),Xt}var MF=(t,n,e,i,r)=>(jp(!0),pP(n[si],i,$O()));function kt(t,n,e){let i=Ne(),r=i[We],o=t+hi,a=r.firstCreatePass?T1(o,i,8,"ng-container",M1,kb(),n,e):r.data[o];if(x0(a,i,t,"ng-container",kF),rm(a)){let s=i[We];y0(s,i,a),a1(s,a,i)}return e!=null&&Cm(i,a),kt}function Dt(){let t=bi(),n=on(),e=C0(n);return t.firstCreatePass&&I1(t,e),Dt}function Ge(t,n,e){return kt(t,n,e),Dt(),Ge}function H1(t,n,e){let i=Ne(),r=i[We],o=t+hi,a=r.firstCreatePass?nF(o,r,8,"ng-container",n,e):r.data[o];return x0(a,i,t,"ng-container",kF),e!=null&&Cm(i,a),H1}function SF(){let t=on(),n=C0(t);return Dt}function df(t,n,e){return H1(t,n,e),SF(),df}var kF=(t,n,e,i,r)=>(jp(!0),t7(n[si],""));function q(){return Ne()}function ci(t,n,e){let i=Ne(),r=is();if(Rr(i,r,n)){let o=bi(),a=cm();LP(a,i,t,n,i[si],e)}return ci}var Bb=void 0;function T9(t){let n=Math.floor(Math.abs(t)),e=t.toString().replace(/^[^.]*\.?/,"").length;return n===1&&e===0?1:5}var I9=["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"]],Bb,[["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"]],Bb,[["B","A"],["BC","AD"],["Before Christ","Anno Domini"]],0,[6,0],["M/d/yy","MMM d, y","MMMM d, y","EEEE, MMMM d, y"],["h:mm a","h:mm:ss a","h:mm:ss a z","h:mm:ss a zzzz"],["{1}, {0}",Bb,"{1} 'at' {0}",Bb],[".",",",";","%","+","-","E","\xD7","\u2030","\u221E","NaN",":"],["#,##0.###","#,##0%","\xA4#,##0.00","#E0"],"USD","$","US Dollar",{},"ltr",T9],mE={};function Pr(t){let n=A9(t),e=MR(n);if(e)return e;let i=n.split("-")[0];if(e=MR(i),e)return e;if(i==="en")return I9;throw new me(701,!1)}function MR(t){return t in mE||(mE[t]=Bo.ng&&Bo.ng.common&&Bo.ng.common.locales&&Bo.ng.common.locales[t]),mE[t]}var $i=(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})($i||{});function A9(t){return t.toLowerCase().replace(/_/g,"-")}var uf="en-US",O9="USD";var R9=uf;function TF(t){typeof t=="string"&&(R9=t.toLowerCase().replace(/_/g,"-"))}function S(t,n,e){let i=Ne(),r=bi(),o=on();return IF(r,i,i[si],o,t,n,e),S}function I0(t,n,e){let i=Ne(),r=bi(),o=on();return(o.type&3||e)&&sF(o,r,i,e,i[si],t,n,Wb(o,i,n)),I0}function IF(t,n,e,i,r,o,a){let s=!0,l=null;if((i.type&3||a)&&(l??=Wb(i,n,o),sF(i,t,n,a,e,r,o,l)&&(s=!1)),s){let c=i.outputs?.[r],d=i.hostDirectiveOutputs?.[r];if(d&&d.length)for(let p=0;p>17&32767}function N9(t){return(t&2)==2}function L9(t,n){return t&131071|n<<17}function XE(t){return t|2}function _m(t){return(t&131068)>>2}function hE(t,n){return t&-131069|n<<2}function V9(t){return(t&1)===1}function JE(t){return t|1}function B9(t,n,e,i,r,o){let a=o?n.classBindings:n.styleBindings,s=Rd(a),l=_m(a);t[i]=e;let c=!1,d;if(Array.isArray(e)){let p=e;d=p[1],(d===null||em(p,d)>0)&&(c=!0)}else d=e;if(r)if(l!==0){let _=Rd(t[s+1]);t[i+1]=jb(_,s),_!==0&&(t[_+1]=hE(t[_+1],i)),t[s+1]=L9(t[s+1],i)}else t[i+1]=jb(s,0),s!==0&&(t[s+1]=hE(t[s+1],i)),s=i;else t[i+1]=jb(l,0),s===0?s=i:t[l+1]=hE(t[l+1],i),l=i;c&&(t[i+1]=XE(t[i+1])),SR(t,d,i,!0),SR(t,d,i,!1),j9(n,d,t,i,o),a=jb(s,l),o?n.classBindings=a:n.styleBindings=a}function j9(t,n,e,i,r){let o=r?t.residualClasses:t.residualStyles;o!=null&&typeof n=="string"&&em(o,n)>=0&&(e[i+1]=JE(e[i+1]))}function SR(t,n,e,i){let r=t[e+1],o=n===null,a=i?Rd(r):_m(r),s=!1;for(;a!==0&&(s===!1||o);){let l=t[a],c=t[a+1];H9(l,n)&&(s=!0,t[a+1]=i?JE(c):XE(c)),a=i?Rd(c):_m(c)}s&&(t[e+1]=i?XE(r):JE(r))}function H9(t,n){return t===null||n==null||(Array.isArray(t)?t[1]:t)===n?!0:Array.isArray(t)&&typeof n=="string"?em(t,n)>=0:!1}var xn={textEnd:0,key:0,keyEnd:0,value:0,valueEnd:0};function AF(t){return t.substring(xn.key,xn.keyEnd)}function z9(t){return t.substring(xn.value,xn.valueEnd)}function U9(t){return PF(t),OF(t,bm(t,0,xn.textEnd))}function OF(t,n){let e=xn.textEnd;return e===n?-1:(n=xn.keyEnd=W9(t,xn.key=n,e),bm(t,n,e))}function $9(t){return PF(t),RF(t,bm(t,0,xn.textEnd))}function RF(t,n){let e=xn.textEnd,i=xn.key=bm(t,n,e);return e===i?-1:(i=xn.keyEnd=G9(t,i,e),i=kR(t,i,e,58),i=xn.value=bm(t,i,e),i=xn.valueEnd=q9(t,i,e),kR(t,i,e,59))}function PF(t){xn.key=0,xn.keyEnd=0,xn.value=0,xn.valueEnd=0,xn.textEnd=t.length}function bm(t,n,e){for(;n32;)n++;return n}function G9(t,n,e){let i;for(;n=65&&(i&-33)<=90||i>=48&&i<=57);)n++;return n}function kR(t,n,e,i){return n=bm(t,n,e),n32&&(s=a),o=r,r=i,i=l&-33}return s}function TR(t,n,e,i){let r=-1,o=e;for(;o=0;e=RF(n,e))BF(t,AF(n),z9(n))}function nt(t){NF(tq,Q9,t,!0)}function Q9(t,n){for(let e=U9(n);e>=0;e=OF(n,e))Op(t,AF(n),!0)}function FF(t,n,e,i){let r=Ne(),o=bi(),a=Vp(2);if(o.firstUpdatePass&&VF(o,t,a,i),n!==Pn&&Rr(r,a,n)){let s=o.data[xa()];jF(o,s,r,r[si],t,r[a+1]=nq(n,e),i,a)}}function NF(t,n,e,i){let r=bi(),o=Vp(2);r.firstUpdatePass&&VF(r,null,o,i);let a=Ne();if(e!==Pn&&Rr(a,o,e)){let s=r.data[xa()];if(HF(s,i)&&!LF(r,o)){let l=i?s.classesWithoutHost:s.stylesWithoutHost;l!==null&&(e=bb(l,e||"")),ZE(r,s,a,e,i)}else iq(r,s,a,a[si],a[o+1],a[o+1]=eq(t,n,e),i,o)}}function LF(t,n){return n>=t.expandoStartIndex}function VF(t,n,e,i){let r=t.data;if(r[e+1]===null){let o=r[xa()],a=LF(t,e);HF(o,i)&&n===null&&!a&&(n=!1),n=K9(r,o,n,i),B9(r,o,n,e,a,i)}}function K9(t,n,e,i){let r=BO(t),o=i?n.residualClasses:n.residualStyles;if(r===null)(i?n.classBindings:n.styleBindings)===0&&(e=pE(null,t,n,e,i),e=Xp(e,n.attrs,i),o=null);else{let a=n.directiveStylingLast;if(a===-1||t[a]!==r)if(e=pE(r,t,n,e,i),o===null){let l=Z9(t,n,i);l!==void 0&&Array.isArray(l)&&(l=pE(null,t,n,l[1],i),l=Xp(l,n.attrs,i),X9(t,n,i,l))}else o=J9(t,n,i)}return o!==void 0&&(i?n.residualClasses=o:n.residualStyles=o),e}function Z9(t,n,e){let i=e?n.classBindings:n.styleBindings;if(_m(i)!==0)return t[Rd(i)]}function X9(t,n,e,i){let r=e?n.classBindings:n.styleBindings;t[Rd(r)]=i}function J9(t,n,e){let i,r=n.directiveEnd;for(let o=1+n.directiveStylingLast;o0;){let l=t[r],c=Array.isArray(l),d=c?l[1]:l,p=d===null,_=e[r+1];_===Pn&&(_=p?hr:void 0);let b=p?Cb(_,i):d===i?_:void 0;if(c&&!l0(b)&&(b=Cb(l,i)),l0(b)&&(s=b,a))return s;let y=t[r+1];r=a?Rd(y):_m(y)}if(n!==null){let l=o?n.residualClasses:n.residualStyles;l!=null&&(s=Cb(l,i))}return s}function l0(t){return t!==void 0}function nq(t,n){return t==null||t===""||(typeof n=="string"?t=t+n:typeof t=="object"&&(t=Ws(Yr(t)))),t}function HF(t,n){return(t.flags&(n?8:16))!==0}function g(t,n=""){let e=Ne(),i=bi(),r=t+hi,o=i.firstCreatePass?wm(i,r,1,n,null):i.data[r],a=rq(i,e,o,n,t);e[r]=a,Rb()&&D1(i,e,a,o),sm(o,!1)}var rq=(t,n,e,i,r)=>(jp(!0),JW(n[si],i));function zF(t,n,e,i=""){return Rr(t,is(),e)?n+jo(e)+i:Pn}function oq(t,n,e,i,r,o=""){let a=XD(),s=Kp(t,a,e,r);return Vp(2),s?n+jo(e)+i+jo(r)+o:Pn}function aq(t,n,e,i,r,o,a,s=""){let l=XD(),c=aF(t,l,e,r,a);return Vp(3),c?n+jo(e)+i+jo(r)+o+jo(a)+s:Pn}function N(t){return pe("",t),N}function pe(t,n,e){let i=Ne(),r=zF(i,t,n,e);return r!==Pn&&z1(i,xa(),r),pe}function Ld(t,n,e,i,r){let o=Ne(),a=oq(o,t,n,e,i,r);return a!==Pn&&z1(o,xa(),a),Ld}function Sm(t,n,e,i,r,o,a){let s=Ne(),l=aq(s,t,n,e,i,r,o,a);return l!==Pn&&z1(s,xa(),l),Sm}function z1(t,n,e){let i=LD(n,t);e7(t[si],i,e)}function Fr(t,n,e){nE(n)&&(n=n());let i=Ne(),r=is();if(Rr(i,r,n)){let o=bi(),a=cm();NP(a,i,t,n,i[si],e)}return Fr}function Zr(t,n){let e=nE(t);return e&&t.set(n),e}function Nr(t,n){let e=Ne(),i=bi(),r=on();return IF(i,e,e[si],r,t,n),Nr}function U1(t){return Rr(Ne(),is(),t)?jo(t):Pn}function qo(t,n,e=""){return zF(Ne(),t,n,e)}function sq(t,n,e){let i=bi();if(i.firstCreatePass){let r=ya(t);e1(e,i.data,i.blueprint,r,!0),e1(n,i.data,i.blueprint,r,!1)}}function e1(t,n,e,i,r){if(t=vn(t),Array.isArray(t))for(let o=0;o>20;if(bd(t)||!t.multi){let b=new Ad(c,r,be,null),y=gE(l,n,r?d:d+_,p);y===-1?(bE(Kb(s,a),o,l),fE(o,t,n.length),n.push(l),s.directiveStart++,s.directiveEnd++,r&&(s.providerIndexes+=1048576),e.push(b),a.push(b)):(e[y]=b,a[y]=b)}else{let b=gE(l,n,d+_,p),y=gE(l,n,d,d+_),w=b>=0&&e[b],C=y>=0&&e[y];if(r&&!C||!r&&!w){bE(Kb(s,a),o,l);let D=dq(r?cq:lq,e.length,r,i,c,t);!r&&C&&(e[y].providerFactory=D),fE(o,t,n.length,0),n.push(l),s.directiveStart++,s.directiveEnd++,r&&(s.providerIndexes+=1048576),e.push(D),a.push(D)}else{let D=UF(e[r?y:b],c,!r&&i);fE(o,t,b>-1?b:y,D)}!r&&i&&C&&e[y].componentProviders++}}}function fE(t,n,e,i){let r=bd(n),o=CO(n);if(r||o){let l=(o?vn(n.useClass):n).prototype.ngOnDestroy;if(l){let c=t.destroyHooks||(t.destroyHooks=[]);if(!r&&n.multi){let d=c.indexOf(e);d===-1?c.push(e,[i,l]):c[d+1].push(i,l)}else c.push(e,l)}}}function UF(t,n,e){return e&&t.componentProviders++,t.multi.push(n)-1}function gE(t,n,e,i){for(let r=e;r{e.providersResolver=(i,r)=>sq(i,r?r(t):t,n)}}function rt(t,n,e){let i=ts()+t,r=Ne();return r[i]===Pn?lf(r,i,e?n.call(e):n()):FG(r,i)}function Nt(t,n,e,i){return $F(Ne(),ts(),t,n,e,i)}function Da(t,n,e,i,r){return WF(Ne(),ts(),t,n,e,i,r)}function Vd(t,n,e,i,r,o){return GF(Ne(),ts(),t,n,e,i,r,o)}function km(t,n,e,i,r,o,a){return qF(Ne(),ts(),t,n,e,i,r,o,a)}function A0(t,n){let e=t[n];return e===Pn?void 0:e}function $F(t,n,e,i,r,o){let a=n+e;return Rr(t,a,r)?lf(t,a+1,o?i.call(o,r):i(r)):A0(t,a+1)}function WF(t,n,e,i,r,o,a){let s=n+e;return Kp(t,s,r,o)?lf(t,s+2,a?i.call(a,r,o):i(r,o)):A0(t,s+2)}function GF(t,n,e,i,r,o,a,s){let l=n+e;return aF(t,l,r,o,a)?lf(t,l+3,s?i.call(s,r,o,a):i(r,o,a)):A0(t,l+3)}function qF(t,n,e,i,r,o,a,s,l){let c=n+e;return NG(t,c,r,o,a,s)?lf(t,c+4,l?i.call(l,r,o,a,s):i(r,o,a,s)):A0(t,c+4)}function ue(t,n){let e=bi(),i,r=t+hi;e.firstCreatePass?(i=uq(n,e.pipeRegistry),e.data[r]=i,i.onDestroy&&(e.destroyHooks??=[]).push(r,i.onDestroy)):i=e.data[r];let o=i.factory||(i.factory=jl(i.type,!0)),a,s=Ar(be);try{let l=Qb(!1),c=o();return Qb(l),VD(e,Ne(),r,c),c}finally{Ar(s)}}function uq(t,n){if(n)for(let e=n.length-1;e>=0;e--){let i=n[e];if(t===i.name)return i}}function Oe(t,n,e){let i=t+hi,r=Ne(),o=am(r,i);return O0(r,i)?$F(r,ts(),n,o.transform,e,o):o.transform(e)}function Ei(t,n,e,i){let r=t+hi,o=Ne(),a=am(o,r);return O0(o,r)?WF(o,ts(),n,a.transform,e,i,a):a.transform(e,i)}function $1(t,n,e,i,r){let o=t+hi,a=Ne(),s=am(a,o);return O0(a,o)?GF(a,ts(),n,s.transform,e,i,r,s):s.transform(e,i,r)}function Tm(t,n,e,i,r,o){let a=t+hi,s=Ne(),l=am(s,a);return O0(s,a)?qF(s,ts(),n,l.transform,e,i,r,o,l):l.transform(e,i,r,o)}function O0(t,n){return t[We].data[n].pure}function vi(t,n){return D0(t,n)}var c0=class{ngModuleFactory;componentFactories;constructor(n,e){this.ngModuleFactory=n,this.componentFactories=e}},W1=(()=>{class t{compileModuleSync(e){return new o0(e)}compileModuleAsync(e){return Promise.resolve(this.compileModuleSync(e))}compileModuleAndAllComponentsSync(e){let i=this.compileModuleSync(e),r=kD(e),o=vP(r.declarations).reduce((a,s)=>{let l=Za(s);return l&&a.push(new ql(l)),a},[]);return new c0(i,o)}compileModuleAndAllComponentsAsync(e){return Promise.resolve(this.compileModuleAndAllComponentsSync(e))}clearCache(){}clearCacheFor(e){}getModuleId(e){}static \u0275fac=function(i){return new(i||t)};static \u0275prov=R({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();var mq=(()=>{class t{zone=u(ae);changeDetectionScheduler=u(Lo);applicationRef=u(Yn);applicationErrorHandler=u(fr);_onMicrotaskEmptySubscription;initialize(){this._onMicrotaskEmptySubscription||(this._onMicrotaskEmptySubscription=this.zone.onMicrotaskEmpty.subscribe({next:()=>{this.changeDetectionScheduler.runningTick||this.zone.run(()=>{try{this.applicationRef.dirtyFlags|=1,this.applicationRef._tick()}catch(e){this.applicationErrorHandler(e)}})}}))}ngOnDestroy(){this._onMicrotaskEmptySubscription?.unsubscribe()}static \u0275fac=function(i){return new(i||t)};static \u0275prov=R({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();function YF({ngZoneFactory:t,ignoreChangesOutsideZone:n,scheduleInRootZone:e}){return t??=()=>new ae(Ee(k({},QF()),{scheduleInRootZone:e})),[{provide:ae,useFactory:t},{provide:Ka,multi:!0,useFactory:()=>{let i=u(mq,{optional:!0});return()=>i.initialize()}},{provide:Ka,multi:!0,useFactory:()=>{let i=u(hq);return()=>{i.initialize()}}},n===!0?{provide:rE,useValue:!0}:[],{provide:oE,useValue:e??EP},{provide:fr,useFactory:()=>{let i=u(ae),r=u(Kt),o;return a=>{i.runOutsideAngular(()=>{r.destroyed&&!o?setTimeout(()=>{throw a}):(o??=r.get(An),o.handleError(a))})}}}]}function QF(t){return{enableLongStackTrace:!1,shouldCoalesceEventChangeDetection:t?.eventCoalescing??!1,shouldCoalesceRunChangeDetection:t?.runCoalescing??!1}}var hq=(()=>{class t{subscription=new Te;initialized=!1;zone=u(ae);pendingTasks=u(rs);initialize(){if(this.initialized)return;this.initialized=!0;let e=null;!this.zone.isStable&&!this.zone.hasPendingMacrotasks&&!this.zone.hasPendingMicrotasks&&(e=this.pendingTasks.add()),this.zone.runOutsideAngular(()=>{this.subscription.add(this.zone.onStable.subscribe(()=>{ae.assertNotInAngularZone(),queueMicrotask(()=>{e!==null&&!this.zone.hasPendingMacrotasks&&!this.zone.hasPendingMicrotasks&&(this.pendingTasks.remove(e),e=null)})}))}),this.subscription.add(this.zone.onUnstable.subscribe(()=>{ae.assertInAngularZone(),e??=this.pendingTasks.add()}))}ngOnDestroy(){this.subscription.unsubscribe()}static \u0275fac=function(i){return new(i||t)};static \u0275prov=R({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();var KF=(()=>{class t{applicationErrorHandler=u(fr);appRef=u(Yn);taskService=u(rs);ngZone=u(ae);zonelessEnabled=u(Hp);tracing=u(Kl,{optional:!0});disableScheduling=u(rE,{optional:!0})??!1;zoneIsDefined=typeof Zone<"u"&&!!Zone.root.run;schedulerTickApplyArgs=[{data:{__scheduler_tick__:!0}}];subscriptions=new Te;angularZoneId=this.zoneIsDefined?this.ngZone._inner?.get(Xb):null;scheduleInRootZone=!this.zonelessEnabled&&this.zoneIsDefined&&(u(oE,{optional:!0})??!1);cancelScheduledCallback=null;useMicrotaskScheduler=!1;runningTick=!1;pendingRenderTaskId=null;constructor(){this.subscriptions.add(this.appRef.afterTick.subscribe(()=>{this.runningTick||this.cleanup()})),this.subscriptions.add(this.ngZone.onUnstable.subscribe(()=>{this.runningTick||this.cleanup()})),this.disableScheduling||=!this.zonelessEnabled&&(this.ngZone instanceof Gp||!this.zoneIsDefined)}notify(e){if(!this.zonelessEnabled&&e===5)return;let i=!1;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,i=!0;break}case 12:{this.appRef.dirtyFlags|=16,i=!0;break}case 13:{this.appRef.dirtyFlags|=2,i=!0;break}case 11:{i=!0;break}case 9:case 8:case 7:case 10:default:this.appRef.dirtyFlags|=8}if(this.appRef.tracingSnapshot=this.tracing?.snapshot(this.appRef.tracingSnapshot)??null,!this.shouldScheduleTick(i))return;let r=this.useMicrotaskScheduler?lR:MP;this.pendingRenderTaskId=this.taskService.add(),this.scheduleInRootZone?this.cancelScheduledCallback=Zone.root.run(()=>r(()=>this.tick())):this.cancelScheduledCallback=this.ngZone.runOutsideAngular(()=>r(()=>this.tick()))}shouldScheduleTick(e){return!(this.disableScheduling&&!e||this.appRef.destroyed||this.pendingRenderTaskId!==null||this.runningTick||this.appRef._runningTick||!this.zonelessEnabled&&this.zoneIsDefined&&Zone.current.get(Xb+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(i){this.taskService.remove(e),this.applicationErrorHandler(i)}finally{this.cleanup()}this.useMicrotaskScheduler=!0,lR(()=>{this.useMicrotaskScheduler=!1,this.taskService.remove(e)})}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(i){return new(i||t)};static \u0275prov=R({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();function pq(){return typeof $localize<"u"&&$localize.locale||uf}var tl=new O("",{providedIn:"root",factory:()=>u(tl,{optional:!0,skipSelf:!0})||pq()}),G1=new O("",{providedIn:"root",factory:()=>O9});var mf=class{destroyed=!1;listeners=null;errorHandler=u(An,{optional:!0});destroyRef=u(an);constructor(){this.destroyRef.onDestroy(()=>{this.destroyed=!0,this.listeners=null})}subscribe(n){if(this.destroyed)throw new me(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(Vo(953,!1));return}if(this.listeners===null)return;let e=Xe(null);try{for(let i of this.listeners)try{i(n)}catch(r){this.errorHandler?.handleError(r)}}finally{Xe(e)}}};function Y1(t){return t.destroyRef}function Ai(t){return rO(t)}function oi(t,n){return yp(t,n?.equal)}var q1=class{[un];constructor(n){this[un]=n}destroy(){this[un].destroy()}};function Lr(t,n){let e=n?.injector??u(de),i=n?.manualCleanup!==!0?e.get(an):null,r,o=e.get(kd,null,{optional:!0}),a=e.get(Lo);return o!==null?(r=_q(o.view,a,t),i instanceof kp&&i._lView===o.view&&(i=null)):r=bq(t,e.get(zp),a),r.injector=e,i!==null&&(r.onDestroyFn=i.onDestroy(()=>r.destroy())),new q1(r)}var ZF=Ee(k({},oO),{cleanupFns:void 0,zone:null,onDestroyFn:Td,run(){let t=lm(!1);try{aO(this)}finally{lm(t)}},cleanup(){if(!this.cleanupFns?.length)return;let t=Xe(null);try{for(;this.cleanupFns.length;)this.cleanupFns.pop()()}finally{this.cleanupFns=[],Xe(t)}}}),fq=Ee(k({},ZF),{consumerMarkedDirty(){this.scheduler.schedule(this),this.notifier.notify(12)},destroy(){Al(this),this.onDestroyFn(),this.cleanup(),this.scheduler.remove(this)}}),gq=Ee(k({},ZF),{consumerMarkedDirty(){this.view[et]|=8192,$l(this.view),this.notifier.notify(13)},destroy(){Al(this),this.onDestroyFn(),this.cleanup(),this.view[qs]?.delete(this)}});function _q(t,n,e){let i=Object.create(gq);return i.view=t,i.zone=typeof Zone<"u"?Zone.current:null,i.notifier=n,i.fn=XF(i,e),t[qs]??=new Set,t[qs].add(i),i.consumerMarkedDirty(i),i}function bq(t,n,e){let i=Object.create(fq);return i.fn=XF(i,t),i.scheduler=n,i.notifier=e,i.zone=typeof Zone<"u"?Zone.current:null,i.scheduler.add(i),i.notifier.notify(12),i}function XF(t,n){return()=>{n(e=>(t.cleanupFns??=[]).push(e))}}var F0=Symbol("InputSignalNode#UNSET"),s2=Ee(k({},xp),{transformFn:void 0,applyValueToInputSignal(t,n){cd(t,n)}});function l2(t,n){let e=Object.create(s2);e.value=t,e.transformFn=n?.transform;function i(){if(Tl(e),e.value===F0){let r=null;throw new me(-950,r)}return e.value}return i[un]=e,i}var Oi=class{attributeName;constructor(n){this.attributeName=n}__NG_ELEMENT_ID__=()=>Jp(this.attributeName);toString(){return`HostAttributeToken ${this.attributeName}`}},iM=new O("");iM.__NG_ELEMENT_ID__=t=>{let n=on();if(n===null)throw new me(204,!1);if(n.type&2)return n.value;if(t&8)return null;throw new me(204,!1)};function yi(t){return new mf}function JF(t,n){return l2(t,n)}function Oq(t){return l2(F0,t)}var re=(JF.required=Oq,JF);function e2(t,n){return F1(n)}function Rq(t,n){return N1(n)}var Qn=(e2.required=Rq,e2);function t2(t,n){return F1(n)}function Pq(t,n){return N1(n)}var _r=(t2.required=Pq,t2);function c2(t,n){return bF(n)}function d2(t,n){let e=Object.create(s2),i=new mf;e.value=t;function r(){return Tl(e),i2(e.value),e.value}return r[un]=e,r.asReadonly=Pb.bind(r),r.set=o=>{e.equal(e.value,o)||(cd(e,o),i.emit(o))},r.update=o=>{i2(e.value),r.set(o(e.value))},r.subscribe=i.subscribe.bind(i),r.destroyRef=i.destroyRef,r}function i2(t){if(t===F0)throw new me(952,!1)}function n2(t,n){return d2(t,n)}function Fq(t){return d2(F0,t)}var Im=(n2.required=Fq,n2);var K1=new O(""),Nq=new O("");function hf(t){return!t.moduleRef}function Lq(t){let n=hf(t)?t.r3Injector:t.moduleRef.injector,e=n.get(ae);return e.run(()=>{hf(t)?t.r3Injector.resolveInjectorInitializers():t.moduleRef.resolveInjectorInitializers();let i=n.get(fr),r;if(e.runOutsideAngular(()=>{r=e.onError.subscribe({next:i})}),hf(t)){let o=()=>n.destroy(),a=t.platformInjector.get(K1);a.add(o),n.onDestroy(()=>{r.unsubscribe(),a.delete(o)})}else{let o=()=>t.moduleRef.destroy(),a=t.platformInjector.get(K1);a.add(o),t.moduleRef.onDestroy(()=>{$p(t.allPlatformModules,t.moduleRef),r.unsubscribe(),a.delete(o)})}return Bq(i,e,()=>{let o=n.get(rs),a=o.add(),s=n.get(B1);return s.runInitializers(),s.donePromise.then(()=>{let l=n.get(tl,uf);if(TF(l||uf),!n.get(Nq,!0))return hf(t)?n.get(Yn):(t.allPlatformModules.push(t.moduleRef),t.moduleRef);if(hf(t)){let d=n.get(Yn);return t.rootComponent!==void 0&&d.bootstrap(t.rootComponent),d}else return Vq?.(t.moduleRef,t.allPlatformModules),t.moduleRef}).finally(()=>void o.remove(a))})})}var Vq;function Bq(t,n,e){try{let i=e();return Js(i)?i.catch(r=>{throw n.runOutsideAngular(()=>t(r)),r}):i}catch(i){throw n.runOutsideAngular(()=>t(i)),i}}var R0=null;function jq(t=[],n){return de.create({name:n,providers:[{provide:Rp,useValue:"platform"},{provide:K1,useValue:new Set([()=>R0=null])},...t]})}function Hq(t=[]){if(R0)return R0;let n=jq(t);return R0=n,DF(),zq(n),n}function zq(t){let n=t.get(d0,null);On(t,()=>{n?.forEach(e=>e())})}var ye=(()=>{class t{static __NG_ELEMENT_ID__=Uq}return t})();function Uq(t){return $q(on(),Ne(),(t&16)===16)}function $q(t,n,e){if(Ys(t)&&!e){let i=$o(t.index,n);return new Gl(i,i)}else if(t.type&175){let i=n[pr];return new Gl(i,n)}return null}var Z1=class{constructor(){}supports(n){return A1(n)}create(n){return new X1(n)}},Wq=(t,n)=>n,X1=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||Wq}forEachItem(n){let e;for(e=this._itHead;e!==null;e=e._next)n(e)}forEachOperation(n){let e=this._itHead,i=this._removalsHead,r=0,o=null;for(;e||i;){let a=!i||e&&e.currentIndex{a=this._trackByFn(r,s),e===null||!Object.is(e.trackById,a)?(e=this._mismatch(e,s,a,r),i=!0):(i&&(e=this._verifyReinsertion(e,s,a,r)),Object.is(e.item,s)||this._addIdentityChange(e,s)),e=e._next,r++}),this.length=r;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,i,r){let o;return n===null?o=this._itTail:(o=n._prev,this._remove(n)),n=this._unlinkedRecords===null?null:this._unlinkedRecords.get(i,null),n!==null?(Object.is(n.item,e)||this._addIdentityChange(n,e),this._reinsertAfter(n,o,r)):(n=this._linkedRecords===null?null:this._linkedRecords.get(i,r),n!==null?(Object.is(n.item,e)||this._addIdentityChange(n,e),this._moveAfter(n,o,r)):n=this._addAfter(new J1(e,i),o,r)),n}_verifyReinsertion(n,e,i,r){let o=this._unlinkedRecords===null?null:this._unlinkedRecords.get(i,null);return o!==null?n=this._reinsertAfter(o,n._prev,r):n.currentIndex!=r&&(n.currentIndex=r,this._addToMoves(n,r)),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,i){this._unlinkedRecords!==null&&this._unlinkedRecords.remove(n);let r=n._prevRemoved,o=n._nextRemoved;return r===null?this._removalsHead=o:r._nextRemoved=o,o===null?this._removalsTail=r:o._prevRemoved=r,this._insertAfter(n,e,i),this._addToMoves(n,i),n}_moveAfter(n,e,i){return this._unlink(n),this._insertAfter(n,e,i),this._addToMoves(n,i),n}_addAfter(n,e,i){return this._insertAfter(n,e,i),this._additionsTail===null?this._additionsTail=this._additionsHead=n:this._additionsTail=this._additionsTail._nextAdded=n,n}_insertAfter(n,e,i){let r=e===null?this._itHead:e._next;return n._next=r,n._prev=e,r===null?this._itTail=n:r._prev=n,e===null?this._itHead=n:e._next=n,this._linkedRecords===null&&(this._linkedRecords=new P0),this._linkedRecords.put(n),n.currentIndex=i,n}_remove(n){return this._addToRemovals(this._unlink(n))}_unlink(n){this._linkedRecords!==null&&this._linkedRecords.remove(n);let e=n._prev,i=n._next;return e===null?this._itHead=i:e._next=i,i===null?this._itTail=e:i._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 P0),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}},J1=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}},eM=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 i;for(i=this._head;i!==null;i=i._nextDup)if((e===null||e<=i.currentIndex)&&Object.is(i.trackById,n))return i;return null}remove(n){let e=n._prevDup,i=n._nextDup;return e===null?this._head=i:e._nextDup=i,i===null?this._tail=e:i._prevDup=e,this._head===null}},P0=class{map=new Map;put(n){let e=n.trackById,i=this.map.get(e);i||(i=new eM,this.map.set(e,i)),i.add(n)}get(n,e){let i=n,r=this.map.get(i);return r?r.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 r2(t,n,e){let i=t.previousIndex;if(i===null)return i;let r=0;return e&&i{class t{factories;static \u0275prov=R({token:t,providedIn:"root",factory:o2});constructor(e){this.factories=e}static create(e,i){if(i!=null){let r=i.factories.slice();e=e.concat(r)}return new t(e)}static extend(e){return{provide:t,useFactory:()=>{let i=u(t,{optional:!0,skipSelf:!0});return t.create(e,i||o2())}}}find(e){let i=this.factories.find(r=>r.supports(e));if(i!=null)return i;throw new me(901,!1)}}return t})();function u2(t){let{rootComponent:n,appProviders:e,platformProviders:i,platformRef:r}=t;li(8);try{let o=r?.injector??Hq(i),a=[YF({}),{provide:Lo,useExisting:KF},GO,...e||[]],s=new Zp({providers:a,parent:o,debugName:"",runEnvironmentInitializers:!1});return Lq({r3Injector:s.injector,platformInjector:o,rootComponent:n})}catch(o){return Promise.reject(o)}finally{li(9)}}function L(t){return typeof t=="boolean"?t:t!=null&&t!=="false"}function dt(t,n=NaN){return!isNaN(parseFloat(t))&&!isNaN(Number(t))?Number(t):n}var Q1=Symbol("NOT_SET"),m2=new Set,Gq=Ee(k({},xp),{consumerIsAlwaysLive:!0,consumerAllowSignalWrites:!0,value:Q1,cleanup:null,consumerMarkedDirty(){if(this.sequence.impl.executing){if(this.sequence.lastPhase===null||this.sequence.lastPhase(Tl(c),c.value),c.signal[un]=c,c.registerCleanupFn=d=>(c.cleanup??=new Set).add(d),this.nodes[s]=c,this.hooks[s]=d=>c.phaseFn(d)}}afterRun(){super.afterRun(),this.lastPhase=null}destroy(){super.destroy();for(let n of this.nodes)if(n)try{for(let e of n.cleanup??m2)e()}finally{Al(n)}}};function h2(t,n){let e=n?.injector??u(de),i=e.get(Lo),r=e.get(_0),o=e.get(Kl,null,{optional:!0});r.impl??=e.get(C1);let a=t;typeof a=="function"&&(a={mixedReadWrite:t});let s=e.get(kd,null,{optional:!0}),l=new tM(r.impl,[a.earlyRead,a.write,a.mixedReadWrite,a.read],s?.view,i,e,o?.snapshot(null));return r.impl.register(l),l}function Am(t,n){let e=Za(t),i=n.elementInjector||tm();return new ql(e).create(i,n.projectableNodes,n.hostElement,n.environmentInjector,n.directives,n.bindings)}function p2(t){let n=Za(t);if(!n)return null;let e=new ql(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 _2=null;function Yo(){return _2}function nM(t){_2??=t}var pf=class{},ff=(()=>{class t{historyGo(e){throw new Error("")}static \u0275fac=function(i){return new(i||t)};static \u0275prov=R({token:t,factory:()=>u(b2),providedIn:"platform"})}return t})(),rM=new O(""),b2=(()=>{class t extends ff{_location;_history;_doc=u(_e);constructor(){super(),this._location=window.location,this._history=window.history}getBaseHrefFromDOM(){return Yo().getBaseHref(this._doc)}onPopState(e){let i=Yo().getGlobalEventTarget(this._doc,"window");return i.addEventListener("popstate",e,!1),()=>i.removeEventListener("popstate",e)}onHashChange(e){let i=Yo().getGlobalEventTarget(this._doc,"window");return i.addEventListener("hashchange",e,!1),()=>i.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,i,r){this._history.pushState(e,i,r)}replaceState(e,i,r){this._history.replaceState(e,i,r)}forward(){this._history.forward()}back(){this._history.back()}historyGo(e=0){this._history.go(e)}getState(){return this._history.state}static \u0275fac=function(i){return new(i||t)};static \u0275prov=R({token:t,factory:()=>new t,providedIn:"platform"})}return t})();function N0(t,n){return t?n?t.endsWith("/")?n.startsWith("/")?t+n.slice(1):t+n:n.startsWith("/")?t+n:`${t}/${n}`:t:n}function f2(t){let n=t.search(/#|\?|$/);return t[n-1]==="/"?t.slice(0,n-1)+t.slice(n):t}function Ea(t){return t&&t[0]!=="?"?`?${t}`:t}var Ma=(()=>{class t{historyGo(e){throw new Error("")}static \u0275fac=function(i){return new(i||t)};static \u0275prov=R({token:t,factory:()=>u(V0),providedIn:"root"})}return t})(),L0=new O(""),V0=(()=>{class t extends Ma{_platformLocation;_baseHref;_removeListenerFns=[];constructor(e,i){super(),this._platformLocation=e,this._baseHref=i??this._platformLocation.getBaseHrefFromDOM()??u(_e).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 N0(this._baseHref,e)}path(e=!1){let i=this._platformLocation.pathname+Ea(this._platformLocation.search),r=this._platformLocation.hash;return r&&e?`${i}${r}`:i}pushState(e,i,r,o){let a=this.prepareExternalUrl(r+Ea(o));this._platformLocation.pushState(e,i,a)}replaceState(e,i,r,o){let a=this.prepareExternalUrl(r+Ea(o));this._platformLocation.replaceState(e,i,a)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}getState(){return this._platformLocation.getState()}historyGo(e=0){this._platformLocation.historyGo?.(e)}static \u0275fac=function(i){return new(i||t)(fe(ff),fe(L0,8))};static \u0275prov=R({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),ms=(()=>{class t{_subject=new z;_basePath;_locationStrategy;_urlChangeListeners=[];_urlChangeSubscription=null;constructor(e){this._locationStrategy=e;let i=this._locationStrategy.getBaseHref();this._basePath=Qq(f2(g2(i))),this._locationStrategy.onPopState(r=>{this._subject.next({url:this.path(!0),pop:!0,state:r.state,type:r.type})})}ngOnDestroy(){this._urlChangeSubscription?.unsubscribe(),this._urlChangeListeners=[]}path(e=!1){return this.normalize(this._locationStrategy.path(e))}getState(){return this._locationStrategy.getState()}isCurrentPathEqualTo(e,i=""){return this.path()==this.normalize(e+Ea(i))}normalize(e){return t.stripTrailingSlash(Yq(this._basePath,g2(e)))}prepareExternalUrl(e){return e&&e[0]!=="/"&&(e="/"+e),this._locationStrategy.prepareExternalUrl(e)}go(e,i="",r=null){this._locationStrategy.pushState(r,"",e,i),this._notifyUrlChangeListeners(this.prepareExternalUrl(e+Ea(i)),r)}replaceState(e,i="",r=null){this._locationStrategy.replaceState(r,"",e,i),this._notifyUrlChangeListeners(this.prepareExternalUrl(e+Ea(i)),r)}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(i=>{this._notifyUrlChangeListeners(i.url,i.state)}),()=>{let i=this._urlChangeListeners.indexOf(e);this._urlChangeListeners.splice(i,1),this._urlChangeListeners.length===0&&(this._urlChangeSubscription?.unsubscribe(),this._urlChangeSubscription=null)}}_notifyUrlChangeListeners(e="",i){this._urlChangeListeners.forEach(r=>r(e,i))}subscribe(e,i,r){return this._subject.subscribe({next:e,error:i??void 0,complete:r??void 0})}static normalizeQueryParams=Ea;static joinWithSlash=N0;static stripTrailingSlash=f2;static \u0275fac=function(i){return new(i||t)(fe(Ma))};static \u0275prov=R({token:t,factory:()=>qq(),providedIn:"root"})}return t})();function qq(){return new ms(fe(Ma))}function Yq(t,n){if(!t||!n.startsWith(t))return n;let e=n.substring(t.length);return e===""||["/",";","?","#"].includes(e[0])?e:n}function g2(t){return t.replace(/\/index.html$/,"")}function Qq(t){if(new RegExp("^(https?:)?//").test(t)){let[,e]=t.split(/\/\/[^\/]+/);return e}return t}var hM=(()=>{class t extends Ma{_platformLocation;_baseHref="";_removeListenerFns=[];constructor(e,i){super(),this._platformLocation=e,i!=null&&(this._baseHref=i)}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 i=this._platformLocation.hash??"#";return i.length>0?i.substring(1):i}prepareExternalUrl(e){let i=N0(this._baseHref,e);return i.length>0?"#"+i:i}pushState(e,i,r,o){let a=this.prepareExternalUrl(r+Ea(o))||this._platformLocation.pathname;this._platformLocation.pushState(e,i,a)}replaceState(e,i,r,o){let a=this.prepareExternalUrl(r+Ea(o))||this._platformLocation.pathname;this._platformLocation.replaceState(e,i,a)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}getState(){return this._platformLocation.getState()}historyGo(e=0){this._platformLocation.historyGo?.(e)}static \u0275fac=function(i){return new(i||t)(fe(ff),fe(L0,8))};static \u0275prov=R({token:t,factory:t.\u0275fac})}return t})(),E2={ADP:[void 0,void 0,0],AFN:[void 0,"\u060B",0],ALL:[void 0,void 0,0],AMD:[void 0,"\u058F",2],AOA:[void 0,"Kz"],ARS:[void 0,"$"],AUD:["A$","$"],AZN:[void 0,"\u20BC"],BAM:[void 0,"KM"],BBD:[void 0,"$"],BDT:[void 0,"\u09F3"],BHD:[void 0,void 0,3],BIF:[void 0,void 0,0],BMD:[void 0,"$"],BND:[void 0,"$"],BOB:[void 0,"Bs"],BRL:["R$"],BSD:[void 0,"$"],BWP:[void 0,"P"],BYN:[void 0,void 0,2],BYR:[void 0,void 0,0],BZD:[void 0,"$"],CAD:["CA$","$",2],CHF:[void 0,void 0,2],CLF:[void 0,void 0,4],CLP:[void 0,"$",0],CNY:["CN\xA5","\xA5"],COP:[void 0,"$",2],CRC:[void 0,"\u20A1",2],CUC:[void 0,"$"],CUP:[void 0,"$"],CZK:[void 0,"K\u010D",2],DJF:[void 0,void 0,0],DKK:[void 0,"kr",2],DOP:[void 0,"$"],EGP:[void 0,"E\xA3"],ESP:[void 0,"\u20A7",0],EUR:["\u20AC"],FJD:[void 0,"$"],FKP:[void 0,"\xA3"],GBP:["\xA3"],GEL:[void 0,"\u20BE"],GHS:[void 0,"GH\u20B5"],GIP:[void 0,"\xA3"],GNF:[void 0,"FG",0],GTQ:[void 0,"Q"],GYD:[void 0,"$",2],HKD:["HK$","$"],HNL:[void 0,"L"],HRK:[void 0,"kn"],HUF:[void 0,"Ft",2],IDR:[void 0,"Rp",2],ILS:["\u20AA"],INR:["\u20B9"],IQD:[void 0,void 0,0],IRR:[void 0,void 0,0],ISK:[void 0,"kr",0],ITL:[void 0,void 0,0],JMD:[void 0,"$"],JOD:[void 0,void 0,3],JPY:["\xA5",void 0,0],KHR:[void 0,"\u17DB"],KMF:[void 0,"CF",0],KPW:[void 0,"\u20A9",0],KRW:["\u20A9",void 0,0],KWD:[void 0,void 0,3],KYD:[void 0,"$"],KZT:[void 0,"\u20B8"],LAK:[void 0,"\u20AD",0],LBP:[void 0,"L\xA3",0],LKR:[void 0,"Rs"],LRD:[void 0,"$"],LTL:[void 0,"Lt"],LUF:[void 0,void 0,0],LVL:[void 0,"Ls"],LYD:[void 0,void 0,3],MGA:[void 0,"Ar",0],MGF:[void 0,void 0,0],MMK:[void 0,"K",0],MNT:[void 0,"\u20AE",2],MRO:[void 0,void 0,0],MUR:[void 0,"Rs",2],MXN:["MX$","$"],MYR:[void 0,"RM"],NAD:[void 0,"$"],NGN:[void 0,"\u20A6"],NIO:[void 0,"C$"],NOK:[void 0,"kr",2],NPR:[void 0,"Rs"],NZD:["NZ$","$"],OMR:[void 0,void 0,3],PHP:["\u20B1"],PKR:[void 0,"Rs",2],PLN:[void 0,"z\u0142"],PYG:[void 0,"\u20B2",0],RON:[void 0,"lei"],RSD:[void 0,void 0,0],RUB:[void 0,"\u20BD"],RWF:[void 0,"RF",0],SBD:[void 0,"$"],SEK:[void 0,"kr",2],SGD:[void 0,"$"],SHP:[void 0,"\xA3"],SLE:[void 0,void 0,2],SLL:[void 0,void 0,0],SOS:[void 0,void 0,0],SRD:[void 0,"$"],SSP:[void 0,"\xA3"],STD:[void 0,void 0,0],STN:[void 0,"Db"],SYP:[void 0,"\xA3",0],THB:[void 0,"\u0E3F"],TMM:[void 0,void 0,0],TND:[void 0,void 0,3],TOP:[void 0,"T$"],TRL:[void 0,void 0,0],TRY:[void 0,"\u20BA"],TTD:[void 0,"$"],TWD:["NT$","$",2],TZS:[void 0,void 0,2],UAH:[void 0,"\u20B4"],UGX:[void 0,void 0,0],USD:["$"],UYI:[void 0,void 0,0],UYU:[void 0,"$"],UYW:[void 0,void 0,4],UZS:[void 0,void 0,2],VEF:[void 0,"Bs",2],VND:["\u20AB",void 0,0],VUV:[void 0,void 0,0],XAF:["FCFA",void 0,0],XCD:["EC$","$"],XOF:["F\u202FCFA",void 0,0],XPF:["CFPF",void 0,0],XXX:["\xA4"],YER:[void 0,void 0,0],ZAR:[void 0,"R"],ZMK:[void 0,void 0,0],ZMW:[void 0,"ZK"],ZWD:[void 0,void 0,0]},Y0=(function(t){return t[t.Decimal=0]="Decimal",t[t.Percent=1]="Percent",t[t.Currency=2]="Currency",t[t.Scientific=3]="Scientific",t})(Y0||{});var br=(function(t){return t[t.Format=0]="Format",t[t.Standalone=1]="Standalone",t})(br||{}),pi=(function(t){return t[t.Narrow=0]="Narrow",t[t.Abbreviated=1]="Abbreviated",t[t.Wide=2]="Wide",t[t.Short=3]="Short",t})(pi||{}),Xr=(function(t){return t[t.Short=0]="Short",t[t.Medium=1]="Medium",t[t.Long=2]="Long",t[t.Full=3]="Full",t})(Xr||{}),Kn={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 M2(t){return Pr(t)[$i.LocaleId]}function S2(t,n,e){let i=Pr(t),r=[i[$i.DayPeriodsFormat],i[$i.DayPeriodsStandalone]],o=Qo(r,n);return Qo(o,e)}function k2(t,n,e){let i=Pr(t),r=[i[$i.DaysFormat],i[$i.DaysStandalone]],o=Qo(r,n);return Qo(o,e)}function T2(t,n,e){let i=Pr(t),r=[i[$i.MonthsFormat],i[$i.MonthsStandalone]],o=Qo(r,n);return Qo(o,e)}function I2(t,n){let i=Pr(t)[$i.Eras];return Qo(i,n)}function gf(t,n){let e=Pr(t);return Qo(e[$i.DateFormat],n)}function _f(t,n){let e=Pr(t);return Qo(e[$i.TimeFormat],n)}function bf(t,n){let i=Pr(t)[$i.DateTimeFormat];return Qo(i,n)}function ka(t,n){let e=Pr(t),i=e[$i.NumberSymbols][n];if(typeof i>"u"){if(n===Kn.CurrencyDecimal)return e[$i.NumberSymbols][Kn.Decimal];if(n===Kn.CurrencyGroup)return e[$i.NumberSymbols][Kn.Group]}return i}function pM(t,n){return Pr(t)[$i.NumberFormats][n]}function Kq(t){return Pr(t)[$i.Currencies]}function A2(t){if(!t[$i.ExtraData])throw new me(2303,!1)}function O2(t){let n=Pr(t);return A2(n),(n[$i.ExtraData][2]||[]).map(i=>typeof i=="string"?oM(i):[oM(i[0]),oM(i[1])])}function R2(t,n,e){let i=Pr(t);A2(i);let r=[i[$i.ExtraData][0],i[$i.ExtraData][1]],o=Qo(r,n)||[];return Qo(o,e)||[]}function Qo(t,n){for(let e=n;e>-1;e--)if(typeof t[e]<"u")return t[e];throw new me(2304,!1)}function oM(t){let[n,e]=t.split(":");return{hours:+n,minutes:+e}}function P2(t,n,e="en"){let i=Kq(e)[t]||E2[t]||[],r=i[1];return n==="narrow"&&typeof r=="string"?r:i[0]||t}var Zq=2;function F2(t){let n,e=E2[t];return e&&(n=e[2]),typeof n=="number"?n:Zq}var Xq=/^(\d{4,})-?(\d\d)-?(\d\d)(?:T(\d\d)(?::?(\d\d)(?::?(\d\d)(?:\.(\d+))?)?)?(Z|([+-])(\d\d):?(\d\d))?)?$/,B0={},Jq=/((?:[^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]*)/;function N2(t,n,e,i){let r=lY(t);n=il(e,n)||n;let a=[],s;for(;n;)if(s=Jq.exec(n),s){a=a.concat(s.slice(1));let d=a.pop();if(!d)break;n=d}else{a.push(n);break}let l=r.getTimezoneOffset();i&&(l=V2(i,l),r=sY(r,i));let c="";return a.forEach(d=>{let p=oY(d);c+=p?p(r,e,l):d==="''"?"'":d.replace(/(^'|'$)/g,"").replace(/''/g,"'")}),c}function $0(t,n,e){let i=new Date(0);return i.setFullYear(t,n,e),i.setHours(0,0,0),i}function il(t,n){let e=M2(t);if(B0[e]??={},B0[e][n])return B0[e][n];let i="";switch(n){case"shortDate":i=gf(t,Xr.Short);break;case"mediumDate":i=gf(t,Xr.Medium);break;case"longDate":i=gf(t,Xr.Long);break;case"fullDate":i=gf(t,Xr.Full);break;case"shortTime":i=_f(t,Xr.Short);break;case"mediumTime":i=_f(t,Xr.Medium);break;case"longTime":i=_f(t,Xr.Long);break;case"fullTime":i=_f(t,Xr.Full);break;case"short":let r=il(t,"shortTime"),o=il(t,"shortDate");i=j0(bf(t,Xr.Short),[r,o]);break;case"medium":let a=il(t,"mediumTime"),s=il(t,"mediumDate");i=j0(bf(t,Xr.Medium),[a,s]);break;case"long":let l=il(t,"longTime"),c=il(t,"longDate");i=j0(bf(t,Xr.Long),[l,c]);break;case"full":let d=il(t,"fullTime"),p=il(t,"fullDate");i=j0(bf(t,Xr.Full),[d,p]);break}return i&&(B0[e][n]=i),i}function j0(t,n){return n&&(t=t.replace(/\{([^}]+)}/g,function(e,i){return n!=null&&i in n?n[i]:e})),t}function Sa(t,n,e="-",i,r){let o="";(t<0||r&&t<=0)&&(r?t=-t+1:(t=-t,o=e));let a=String(t);for(;a.length0||s>-e)&&(s+=e),t===3)s===0&&e===-12&&(s=12);else if(t===6)return eY(s,n);let l=ka(a,Kn.MinusSign);return Sa(s,n,l,i,r)}}function tY(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 me(2301,!1)}}function Mi(t,n,e=br.Format,i=!1){return function(r,o){return iY(r,o,t,n,e,i)}}function iY(t,n,e,i,r,o){switch(e){case 2:return T2(n,r,i)[t.getMonth()];case 1:return k2(n,r,i)[t.getDay()];case 0:let a=t.getHours(),s=t.getMinutes();if(o){let c=O2(n),d=R2(n,r,i),p=c.findIndex(_=>{if(Array.isArray(_)){let[b,y]=_,w=a>=b.hours&&s>=b.minutes,C=a0?Math.floor(r/60):Math.ceil(r/60);switch(t){case 0:return(r>=0?"+":"")+Sa(a,2,o)+Sa(Math.abs(r%60),2,o);case 1:return"GMT"+(r>=0?"+":"")+Sa(a,1,o);case 2:return"GMT"+(r>=0?"+":"")+Sa(a,2,o)+":"+Sa(Math.abs(r%60),2,o);case 3:return i===0?"Z":(r>=0?"+":"")+Sa(a,2,o)+":"+Sa(Math.abs(r%60),2,o);default:throw new me(2310,!1)}}}var nY=0,U0=4;function rY(t){let n=$0(t,nY,1).getDay();return $0(t,0,1+(n<=U0?U0:U0+7)-n)}function L2(t){let n=t.getDay(),e=n===0?-3:U0-n;return $0(t.getFullYear(),t.getMonth(),t.getDate()+e)}function aM(t,n=!1){return function(e,i){let r;if(n){let o=new Date(e.getFullYear(),e.getMonth(),1).getDay()-1,a=e.getDate();r=1+Math.floor((a+o)/7)}else{let o=L2(e),a=rY(o.getFullYear()),s=o.getTime()-a.getTime();r=1+Math.round(s/6048e5)}return Sa(r,t,ka(i,Kn.MinusSign))}}function z0(t,n=!1){return function(e,i){let o=L2(e).getFullYear();return Sa(o,t,ka(i,Kn.MinusSign),n)}}var sM={};function oY(t){if(sM[t])return sM[t];let n;switch(t){case"G":case"GG":case"GGG":n=Mi(3,pi.Abbreviated);break;case"GGGG":n=Mi(3,pi.Wide);break;case"GGGGG":n=Mi(3,pi.Narrow);break;case"y":n=hn(0,1,0,!1,!0);break;case"yy":n=hn(0,2,0,!0,!0);break;case"yyy":n=hn(0,3,0,!1,!0);break;case"yyyy":n=hn(0,4,0,!1,!0);break;case"Y":n=z0(1);break;case"YY":n=z0(2,!0);break;case"YYY":n=z0(3);break;case"YYYY":n=z0(4);break;case"M":case"L":n=hn(1,1,1);break;case"MM":case"LL":n=hn(1,2,1);break;case"MMM":n=Mi(2,pi.Abbreviated);break;case"MMMM":n=Mi(2,pi.Wide);break;case"MMMMM":n=Mi(2,pi.Narrow);break;case"LLL":n=Mi(2,pi.Abbreviated,br.Standalone);break;case"LLLL":n=Mi(2,pi.Wide,br.Standalone);break;case"LLLLL":n=Mi(2,pi.Narrow,br.Standalone);break;case"w":n=aM(1);break;case"ww":n=aM(2);break;case"W":n=aM(1,!0);break;case"d":n=hn(2,1);break;case"dd":n=hn(2,2);break;case"c":case"cc":n=hn(7,1);break;case"ccc":n=Mi(1,pi.Abbreviated,br.Standalone);break;case"cccc":n=Mi(1,pi.Wide,br.Standalone);break;case"ccccc":n=Mi(1,pi.Narrow,br.Standalone);break;case"cccccc":n=Mi(1,pi.Short,br.Standalone);break;case"E":case"EE":case"EEE":n=Mi(1,pi.Abbreviated);break;case"EEEE":n=Mi(1,pi.Wide);break;case"EEEEE":n=Mi(1,pi.Narrow);break;case"EEEEEE":n=Mi(1,pi.Short);break;case"a":case"aa":case"aaa":n=Mi(0,pi.Abbreviated);break;case"aaaa":n=Mi(0,pi.Wide);break;case"aaaaa":n=Mi(0,pi.Narrow);break;case"b":case"bb":case"bbb":n=Mi(0,pi.Abbreviated,br.Standalone,!0);break;case"bbbb":n=Mi(0,pi.Wide,br.Standalone,!0);break;case"bbbbb":n=Mi(0,pi.Narrow,br.Standalone,!0);break;case"B":case"BB":case"BBB":n=Mi(0,pi.Abbreviated,br.Format,!0);break;case"BBBB":n=Mi(0,pi.Wide,br.Format,!0);break;case"BBBBB":n=Mi(0,pi.Narrow,br.Format,!0);break;case"h":n=hn(3,1,-12);break;case"hh":n=hn(3,2,-12);break;case"H":n=hn(3,1);break;case"HH":n=hn(3,2);break;case"m":n=hn(4,1);break;case"mm":n=hn(4,2);break;case"s":n=hn(5,1);break;case"ss":n=hn(5,2);break;case"S":n=hn(6,1);break;case"SS":n=hn(6,2);break;case"SSS":n=hn(6,3);break;case"Z":case"ZZ":case"ZZZ":n=H0(0);break;case"ZZZZZ":n=H0(3);break;case"O":case"OO":case"OOO":case"z":case"zz":case"zzz":n=H0(1);break;case"OOOO":case"ZZZZ":case"zzzz":n=H0(2);break;default:return null}return sM[t]=n,n}function V2(t,n){t=t.replace(/:/g,"");let e=Date.parse("Jan 01, 1970 00:00:00 "+t)/6e4;return isNaN(e)?n:e}function aY(t,n){return t=new Date(t.getTime()),t.setMinutes(t.getMinutes()+n),t}function sY(t,n,e){let r=t.getTimezoneOffset(),o=V2(n,r);return aY(t,-1*(o-r))}function lY(t){if(v2(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[r,o=1,a=1]=t.split("-").map(s=>+s);return $0(r,o-1,a)}let e=parseFloat(t);if(!isNaN(t-e))return new Date(e);let i;if(i=t.match(Xq))return cY(i)}let n=new Date(t);if(!v2(n))throw new me(2311,!1);return n}function cY(t){let n=new Date(0),e=0,i=0,r=t[8]?n.setUTCFullYear:n.setFullYear,o=t[8]?n.setUTCHours:n.setHours;t[9]&&(e=Number(t[9]+t[10]),i=Number(t[9]+t[11])),r.call(n,Number(t[1]),Number(t[2])-1,Number(t[3]));let a=Number(t[4]||0)-e,s=Number(t[5]||0)-i,l=Number(t[6]||0),c=Math.floor(parseFloat("0."+(t[7]||0))*1e3);return o.call(n,a,s,l,c),n}function v2(t){return t instanceof Date&&!isNaN(t.valueOf())}var dY=/^(\d+)?\.((\d+)(-(\d+))?)?$/,y2=22,W0=".",vf="0",uY=";",mY=",",lM="#",x2="\xA4";function B2(t,n,e,i,r,o,a=!1){let s="",l=!1;if(!isFinite(t))s=ka(e,Kn.Infinity);else{let c=pY(t);a&&(c=hY(c));let d=n.minInt,p=n.minFrac,_=n.maxFrac;if(o){let F=o.match(dY);if(F===null)throw new me(2306,!1);let W=F[1],Z=F[3],K=F[5];W!=null&&(d=cM(W)),Z!=null&&(p=cM(Z)),K!=null?_=cM(K):Z!=null&&p>_&&(_=p)}fY(c,p,_);let b=c.digits,y=c.integerLen,w=c.exponent,C=[];for(l=b.every(F=>!F);y0?C=b.splice(y,b.length):(C=b,b=[0]);let D=[];for(b.length>=n.lgSize&&D.unshift(b.splice(-n.lgSize,b.length).join(""));b.length>n.gSize;)D.unshift(b.splice(-n.gSize,b.length).join(""));b.length&&D.unshift(b.join("")),s=D.join(ka(e,i)),C.length&&(s+=ka(e,r)+C.join("")),w&&(s+=ka(e,Kn.Exponential)+"+"+w)}return t<0&&!l?s=n.negPre+s+n.negSuf:s=n.posPre+s+n.posSuf,s}function j2(t,n,e,i,r){let o=pM(n,Y0.Currency),a=z2(o,ka(n,Kn.MinusSign));return a.minFrac=F2(i),a.maxFrac=a.minFrac,B2(t,a,n,Kn.CurrencyGroup,Kn.CurrencyDecimal,r).replace(x2,e).replace(x2,"").trim()}function H2(t,n,e){let i=pM(n,Y0.Decimal),r=z2(i,ka(n,Kn.MinusSign));return B2(t,r,n,Kn.Group,Kn.Decimal,e)}function z2(t,n="-"){let e={minInt:1,minFrac:0,maxFrac:0,posPre:"",posSuf:"",negPre:"",negSuf:"",gSize:0,lgSize:0},i=t.split(uY),r=i[0],o=i[1],a=r.indexOf(W0)!==-1?r.split(W0):[r.substring(0,r.lastIndexOf(vf)+1),r.substring(r.lastIndexOf(vf)+1)],s=a[0],l=a[1]||"";e.posPre=s.substring(0,s.indexOf(lM));for(let d=0;d-1&&(n=n.replace(W0,"")),(o=n.search(/e/i))>0?(r<0&&(r=o),r+=+n.slice(o+1),n=n.substring(0,o)):r<0&&(r=n.length),o=0;n.charAt(o)===vf;o++);if(o===(s=n.length))i=[0],r=1;else{for(s--;n.charAt(s)===vf;)s--;for(r-=o,i=[],a=0;o<=s;o++,a++)i[a]=Number(n.charAt(o))}return r>y2&&(i=i.splice(0,y2-1),e=r-1,r=1),{digits:i,exponent:e,integerLen:r}}function fY(t,n,e){if(n>e)throw new me(2307,!1);let i=t.digits,r=i.length-t.integerLen,o=Math.min(Math.max(n,r),e),a=o+t.integerLen,s=i[a];if(a>0){i.splice(Math.max(t.integerLen,a));for(let p=a;p=5)if(a-1<0){for(let p=0;p>a;p--)i.unshift(0),t.integerLen++;i.unshift(1),t.integerLen++}else i[a-1]++;for(;r=c?y.pop():l=!1),_>=10?1:0},0);d&&(i.unshift(d),t.integerLen++)}function cM(t){let n=parseInt(t);if(isNaN(n))throw new me(2305,!1);return n}var dM=/\s+/,C2=[],Bd=(()=>{class t{_ngEl;_renderer;initialClasses=C2;rawClass;stateMap=new Map;constructor(e,i){this._ngEl=e,this._renderer=i}set klass(e){this.initialClasses=e!=null?e.trim().split(dM):C2}set ngClass(e){this.rawClass=typeof e=="string"?e.trim().split(dM):e}ngDoCheck(){for(let i of this.initialClasses)this._updateState(i,!0);let e=this.rawClass;if(Array.isArray(e)||e instanceof Set)for(let i of e)this._updateState(i,!0);else if(e!=null)for(let i of Object.keys(e))this._updateState(i,!!e[i]);this._applyStateDiff()}_updateState(e,i){let r=this.stateMap.get(e);r!==void 0?(r.enabled!==i&&(r.changed=!0,r.enabled=i),r.touched=!0):this.stateMap.set(e,{enabled:i,changed:!0,touched:!0})}_applyStateDiff(){for(let e of this.stateMap){let i=e[0],r=e[1];r.changed?(this._toggleClass(i,r.enabled),r.changed=!1):r.touched||(r.enabled&&this._toggleClass(i,!1),this.stateMap.delete(i)),r.touched=!1}}_toggleClass(e,i){e=e.trim(),e.length>0&&e.split(dM).forEach(r=>{i?this._renderer.addClass(this._ngEl.nativeElement,r):this._renderer.removeClass(this._ngEl.nativeElement,r)})}static \u0275fac=function(i){return new(i||t)(be(Y),be(ze))};static \u0275dir=P({type:t,selectors:[["","ngClass",""]],inputs:{klass:[0,"class","klass"],ngClass:"ngClass"}})}return t})();var G0=class{$implicit;ngForOf;index;count;constructor(n,e,i,r){this.$implicit=n,this.ngForOf=e,this.index=i,this.count=r}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}},vr=(()=>{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,i,r){this._viewContainer=e,this._template=i,this._differs=r}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 i=this._viewContainer;e.forEachOperation((r,o,a)=>{if(r.previousIndex==null)i.createEmbeddedView(this._template,new G0(r.item,this._ngForOf,-1,-1),a===null?void 0:a);else if(a==null)i.remove(o===null?void 0:o);else if(o!==null){let s=i.get(o);i.move(s,a),w2(s,r)}});for(let r=0,o=i.length;r{let o=i.get(r.currentIndex);w2(o,r)})}static ngTemplateContextGuard(e,i){return!0}static \u0275fac=function(i){return new(i||t)(be(ot),be(te),be(us))};static \u0275dir=P({type:t,selectors:[["","ngFor","","ngForOf",""]],inputs:{ngForOf:"ngForOf",ngForTrackBy:"ngForTrackBy",ngForTemplate:"ngForTemplate"}})}return t})();function w2(t,n){t.context.$implicit=n.item}var Jt=(()=>{class t{_viewContainer;_context=new q0;_thenTemplateRef=null;_elseTemplateRef=null;_thenViewRef=null;_elseViewRef=null;constructor(e,i){this._viewContainer=e,this._thenTemplateRef=i}set ngIf(e){this._context.$implicit=this._context.ngIf=e,this._updateView()}set ngIfThen(e){D2(e,!1),this._thenTemplateRef=e,this._thenViewRef=null,this._updateView()}set ngIfElse(e){D2(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,i){return!0}static \u0275fac=function(i){return new(i||t)(be(ot),be(te))};static \u0275dir=P({type:t,selectors:[["","ngIf",""]],inputs:{ngIf:"ngIf",ngIfThen:"ngIfThen",ngIfElse:"ngIfElse"}})}return t})(),q0=class{$implicit=null;ngIf=null};function D2(t,n){if(t&&!t.createEmbeddedView)throw new me(2020,!1)}var Ln=(()=>{class t{_viewContainerRef;_viewRef=null;ngTemplateOutletContext=null;ngTemplateOutlet=null;ngTemplateOutletInjector=null;constructor(e){this._viewContainerRef=e}ngOnChanges(e){if(this._shouldRecreateView(e)){let i=this._viewContainerRef;if(this._viewRef&&i.remove(i.indexOf(this._viewRef)),!this.ngTemplateOutlet){this._viewRef=null;return}let r=this._createContextForwardProxy();this._viewRef=i.createEmbeddedView(this.ngTemplateOutlet,r,{injector:this.ngTemplateOutletInjector??void 0})}}_shouldRecreateView(e){return!!e.ngTemplateOutlet||!!e.ngTemplateOutletInjector}_createContextForwardProxy(){return new Proxy({},{set:(e,i,r)=>this.ngTemplateOutletContext?Reflect.set(this.ngTemplateOutletContext,i,r):!1,get:(e,i,r)=>{if(this.ngTemplateOutletContext)return Reflect.get(this.ngTemplateOutletContext,i,r)}})}static \u0275fac=function(i){return new(i||t)(be(ot))};static \u0275dir=P({type:t,selectors:[["","ngTemplateOutlet",""]],inputs:{ngTemplateOutletContext:"ngTemplateOutletContext",ngTemplateOutlet:"ngTemplateOutlet",ngTemplateOutletInjector:"ngTemplateOutletInjector"},features:[Ae]})}return t})();function yf(t,n){return new me(2100,!1)}var uM=class{createSubscription(n,e,i){return Ai(()=>n.subscribe({next:e,error:i}))}dispose(n){Ai(()=>n.unsubscribe())}},mM=class{createSubscription(n,e,i){return n.then(r=>e?.(r),r=>i?.(r)),{unsubscribe:()=>{e=null,i=null}}}dispose(n){n.unsubscribe()}},gY=new mM,_Y=new uM,sn=(()=>{class t{_ref;_latestValue=null;markForCheckOnValueUpdate=!0;_subscription=null;_obj=null;_strategy=null;applicationErrorHandler=u(fr);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,i=>this._updateLatestValue(e,i),i=>this.applicationErrorHandler(i))}_selectStrategy(e){if(Js(e))return gY;if(k0(e))return _Y;throw yf(t,e)}_dispose(){this._strategy.dispose(this._subscription),this._latestValue=null,this._subscription=null,this._obj=null}_updateLatestValue(e,i){e===this._obj&&(this._latestValue=i,this.markForCheckOnValueUpdate&&this._ref?.markForCheck())}static \u0275fac=function(i){return new(i||t)(be(ye,16))};static \u0275pipe=Kr({name:"async",type:t,pure:!1})}return t})();var bY="mediumDate",U2=new O(""),$2=new O(""),Ta=(()=>{class t{locale;defaultTimezone;defaultOptions;constructor(e,i,r){this.locale=e,this.defaultTimezone=i,this.defaultOptions=r}transform(e,i,r,o){if(e==null||e===""||e!==e)return null;try{let a=i??this.defaultOptions?.dateFormat??bY,s=r??this.defaultOptions?.timezone??this.defaultTimezone??void 0;return N2(e,a,o||this.locale,s)}catch(a){throw yf(t,a.message)}}static \u0275fac=function(i){return new(i||t)(be(tl,16),be(U2,24),be($2,24))};static \u0275pipe=Kr({name:"date",type:t,pure:!0})}return t})();var jd=(()=>{class t{_locale;constructor(e){this._locale=e}transform(e,i,r){if(!W2(e))return null;r||=this._locale;try{let o=G2(e);return H2(o,r,i)}catch(o){throw yf(t,o.message)}}static \u0275fac=function(i){return new(i||t)(be(tl,16))};static \u0275pipe=Kr({name:"number",type:t,pure:!0})}return t})();var nl=(()=>{class t{_locale;_defaultCurrencyCode;constructor(e,i="USD"){this._locale=e,this._defaultCurrencyCode=i}transform(e,i=this._defaultCurrencyCode,r="symbol",o,a){if(!W2(e))return null;a||=this._locale,typeof r=="boolean"&&(r=r?"symbol":"code");let s=i||this._defaultCurrencyCode;r!=="code"&&(r==="symbol"||r==="symbol-narrow"?s=P2(s,r==="symbol"?"wide":"narrow",a):s=r);try{let l=G2(e);return j2(l,a,s,i,o)}catch(l){throw yf(t,l.message)}}static \u0275fac=function(i){return new(i||t)(be(tl,16),be(G1,16))};static \u0275pipe=Kr({name:"currency",type:t,pure:!0})}return t})();function W2(t){return!(t==null||t===""||t!==t)}function G2(t){if(typeof t=="string"&&!isNaN(Number(t)-parseFloat(t)))return Number(t);if(typeof t!="number")throw new me(2309,!1);return t}var fM=(()=>{class t{transform(e,i,r){if(e==null)return null;if(!(typeof e=="string"||Array.isArray(e)))throw yf(t,e);return e.slice(i,r)}static \u0275fac=function(i){return new(i||t)};static \u0275pipe=Kr({name:"slice",type:t,pure:!1})}return t})();var ut=(()=>{class t{static \u0275fac=function(i){return new(i||t)};static \u0275mod=ee({type:t});static \u0275inj=J({})}return t})();function xf(t,n){n=encodeURIComponent(n);for(let e of t.split(";")){let i=e.indexOf("="),[r,o]=i==-1?[e,""]:[e.slice(0,i),e.slice(i+1)];if(r.trim()===n)return decodeURIComponent(o)}return null}var Hd=class{};var _M="browser",vY="server";function q2(t){return t===_M}function Y2(t){return t===vY}var bM=(()=>{class t{static \u0275prov=R({token:t,providedIn:"root",factory:()=>new gM(u(_e),window)})}return t})(),gM=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(Ee(k({},e),{left:n[0],top:n[1]}))}scrollToAnchor(n,e){let i=yY(this.document,n);i&&(this.scrollToElement(i,e),i.focus())}setHistoryScrollRestoration(n){try{this.window.history.scrollRestoration=n}catch{console.warn(Vo(2400,!1))}}scrollToElement(n,e){let i=n.getBoundingClientRect(),r=i.left+this.window.pageXOffset,o=i.top+this.window.pageYOffset,a=this.offset();this.window.scrollTo(Ee(k({},e),{left:r-a[0],top:o-a[1]}))}};function yY(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 i=t.createTreeWalker(t.body,NodeFilter.SHOW_ELEMENT),r=i.currentNode;for(;r;){let o=r.shadowRoot;if(o){let a=o.getElementById(n)||o.querySelector(`[name="${n}"]`);if(a)return a}r=i.nextNode()}}return null}var Cf=class{_doc;constructor(n){this._doc=n}manager},Q0=(()=>{class t extends Cf{constructor(e){super(e)}supports(e){return!0}addEventListener(e,i,r,o){return e.addEventListener(i,r,o),()=>this.removeEventListener(e,i,r,o)}removeEventListener(e,i,r,o){return e.removeEventListener(i,r,o)}static \u0275fac=function(i){return new(i||t)(fe(_e))};static \u0275prov=R({token:t,factory:t.\u0275fac})}return t})(),Z0=new O(""),wM=(()=>{class t{_zone;_plugins;_eventNameToPlugin=new Map;constructor(e,i){this._zone=i,e.forEach(a=>{a.manager=this});let r=e.filter(a=>!(a instanceof Q0));this._plugins=r.slice().reverse();let o=e.find(a=>a instanceof Q0);o&&this._plugins.push(o)}addEventListener(e,i,r,o){return this._findPluginFor(i).addEventListener(e,i,r,o)}getZone(){return this._zone}_findPluginFor(e){let i=this._eventNameToPlugin.get(e);if(i)return i;if(i=this._plugins.find(o=>o.supports(e)),!i)throw new me(5101,!1);return this._eventNameToPlugin.set(e,i),i}static \u0275fac=function(i){return new(i||t)(fe(Z0),fe(ae))};static \u0275prov=R({token:t,factory:t.\u0275fac})}return t})(),vM="ng-app-id";function Q2(t){for(let n of t)n.remove()}function K2(t,n){let e=n.createElement("style");return e.textContent=t,e}function xY(t,n,e,i){let r=t.head?.querySelectorAll(`style[${vM}="${n}"],link[${vM}="${n}"]`);if(r)for(let o of r)o.removeAttribute(vM),o instanceof HTMLLinkElement?i.set(o.href.slice(o.href.lastIndexOf("/")+1),{usage:0,elements:[o]}):o.textContent&&e.set(o.textContent,{usage:0,elements:[o]})}function xM(t,n){let e=n.createElement("link");return e.setAttribute("rel","stylesheet"),e.setAttribute("href",t),e}var DM=(()=>{class t{doc;appId;nonce;inline=new Map;external=new Map;hosts=new Set;constructor(e,i,r,o={}){this.doc=e,this.appId=i,this.nonce=r,xY(e,i,this.inline,this.external),this.hosts.add(e.head)}addStyles(e,i){for(let r of e)this.addUsage(r,this.inline,K2);i?.forEach(r=>this.addUsage(r,this.external,xM))}removeStyles(e,i){for(let r of e)this.removeUsage(r,this.inline);i?.forEach(r=>this.removeUsage(r,this.external))}addUsage(e,i,r){let o=i.get(e);o?o.usage++:i.set(e,{usage:1,elements:[...this.hosts].map(a=>this.addElement(a,r(e,this.doc)))})}removeUsage(e,i){let r=i.get(e);r&&(r.usage--,r.usage<=0&&(Q2(r.elements),i.delete(e)))}ngOnDestroy(){for(let[,{elements:e}]of[...this.inline,...this.external])Q2(e);this.hosts.clear()}addHost(e){this.hosts.add(e);for(let[i,{elements:r}]of this.inline)r.push(this.addElement(e,K2(i,this.doc)));for(let[i,{elements:r}]of this.external)r.push(this.addElement(e,xM(i,this.doc)))}removeHost(e){this.hosts.delete(e)}addElement(e,i){return this.nonce&&i.setAttribute("nonce",this.nonce),e.appendChild(i)}static \u0275fac=function(i){return new(i||t)(fe(_e),fe(Ql),fe(xm,8),fe(Zs))};static \u0275prov=R({token:t,factory:t.\u0275fac})}return t})(),yM={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"},EM=/%COMP%/g;var X2="%COMP%",CY=`_nghost-${X2}`,wY=`_ngcontent-${X2}`,DY=!0,EY=new O("",{providedIn:"root",factory:()=>DY});function MY(t){return wY.replace(EM,t)}function SY(t){return CY.replace(EM,t)}function J2(t,n){return n.map(e=>e.replace(EM,t))}var MM=(()=>{class t{eventManager;sharedStylesHost;appId;removeStylesOnCompDestroy;doc;ngZone;nonce;tracingService;rendererByCompId=new Map;defaultRenderer;platformIsServer;constructor(e,i,r,o,a,s,l=null,c=null){this.eventManager=e,this.sharedStylesHost=i,this.appId=r,this.removeStylesOnCompDestroy=o,this.doc=a,this.ngZone=s,this.nonce=l,this.tracingService=c,this.platformIsServer=!1,this.defaultRenderer=new wf(e,a,s,this.platformIsServer,this.tracingService)}createRenderer(e,i){if(!e||!i)return this.defaultRenderer;let r=this.getOrCreateRenderer(e,i);return r instanceof K0?r.applyToHost(e):r instanceof Df&&r.applyStyles(),r}getOrCreateRenderer(e,i){let r=this.rendererByCompId,o=r.get(i.id);if(!o){let a=this.doc,s=this.ngZone,l=this.eventManager,c=this.sharedStylesHost,d=this.removeStylesOnCompDestroy,p=this.platformIsServer,_=this.tracingService;switch(i.encapsulation){case Qs.Emulated:o=new K0(l,c,i,this.appId,d,a,s,p,_);break;case Qs.ShadowDom:return new CM(l,c,e,i,a,s,this.nonce,p,_);default:o=new Df(l,c,i,d,a,s,p,_);break}r.set(i.id,o)}return o}ngOnDestroy(){this.rendererByCompId.clear()}componentReplaced(e){this.rendererByCompId.delete(e)}static \u0275fac=function(i){return new(i||t)(fe(wM),fe(DM),fe(Ql),fe(EY),fe(_e),fe(ae),fe(xm),fe(Kl,8))};static \u0275prov=R({token:t,factory:t.\u0275fac})}return t})(),wf=class{eventManager;doc;ngZone;platformIsServer;tracingService;data=Object.create(null);throwOnSyntheticProps=!0;constructor(n,e,i,r,o){this.eventManager=n,this.doc=e,this.ngZone=i,this.platformIsServer=r,this.tracingService=o}destroy(){}destroyNode=null;createElement(n,e){return e?this.doc.createElementNS(yM[e]||e,n):this.doc.createElement(n)}createComment(n){return this.doc.createComment(n)}createText(n){return this.doc.createTextNode(n)}appendChild(n,e){(Z2(n)?n.content:n).appendChild(e)}insertBefore(n,e,i){n&&(Z2(n)?n.content:n).insertBefore(e,i)}removeChild(n,e){e.remove()}selectRootElement(n,e){let i=typeof n=="string"?this.doc.querySelector(n):n;if(!i)throw new me(-5104,!1);return e||(i.textContent=""),i}parentNode(n){return n.parentNode}nextSibling(n){return n.nextSibling}setAttribute(n,e,i,r){if(r){e=r+":"+e;let o=yM[r];o?n.setAttributeNS(o,e,i):n.setAttribute(e,i)}else n.setAttribute(e,i)}removeAttribute(n,e,i){if(i){let r=yM[i];r?n.removeAttributeNS(r,e):n.removeAttribute(`${i}:${e}`)}else n.removeAttribute(e)}addClass(n,e){n.classList.add(e)}removeClass(n,e){n.classList.remove(e)}setStyle(n,e,i,r){r&(as.DashCase|as.Important)?n.style.setProperty(e,i,r&as.Important?"important":""):n.style[e]=i}removeStyle(n,e,i){i&as.DashCase?n.style.removeProperty(e):n.style[e]=""}setProperty(n,e,i){n!=null&&(n[e]=i)}setValue(n,e){n.nodeValue=e}listen(n,e,i,r){if(typeof n=="string"&&(n=Yo().getGlobalEventTarget(this.doc,n),!n))throw new me(5102,!1);let o=this.decoratePreventDefault(i);return this.tracingService?.wrapEventListener&&(o=this.tracingService.wrapEventListener(n,e,o)),this.eventManager.addEventListener(n,e,o,r)}decoratePreventDefault(n){return e=>{if(e==="__ngUnwrap__")return n;n(e)===!1&&e.preventDefault()}}};function Z2(t){return t.tagName==="TEMPLATE"&&t.content!==void 0}var CM=class extends wf{sharedStylesHost;hostEl;shadowRoot;constructor(n,e,i,r,o,a,s,l,c){super(n,o,a,l,c),this.sharedStylesHost=e,this.hostEl=i,this.shadowRoot=i.attachShadow({mode:"open"}),this.sharedStylesHost.addHost(this.shadowRoot);let d=r.styles;d=J2(r.id,d);for(let _ of d){let b=document.createElement("style");s&&b.setAttribute("nonce",s),b.textContent=_,this.shadowRoot.appendChild(b)}let p=r.getExternalStyles?.();if(p)for(let _ of p){let b=xM(_,o);s&&b.setAttribute("nonce",s),this.shadowRoot.appendChild(b)}}nodeOrShadowRoot(n){return n===this.hostEl?this.shadowRoot:n}appendChild(n,e){return super.appendChild(this.nodeOrShadowRoot(n),e)}insertBefore(n,e,i){return super.insertBefore(this.nodeOrShadowRoot(n),e,i)}removeChild(n,e){return super.removeChild(null,e)}parentNode(n){return this.nodeOrShadowRoot(super.parentNode(this.nodeOrShadowRoot(n)))}destroy(){this.sharedStylesHost.removeHost(this.shadowRoot)}},Df=class extends wf{sharedStylesHost;removeStylesOnCompDestroy;styles;styleUrls;constructor(n,e,i,r,o,a,s,l,c){super(n,o,a,s,l),this.sharedStylesHost=e,this.removeStylesOnCompDestroy=r;let d=i.styles;this.styles=c?J2(c,d):d,this.styleUrls=i.getExternalStyles?.(c)}applyStyles(){this.sharedStylesHost.addStyles(this.styles,this.styleUrls)}destroy(){this.removeStylesOnCompDestroy&&Od.size===0&&this.sharedStylesHost.removeStyles(this.styles,this.styleUrls)}},K0=class extends Df{contentAttr;hostAttr;constructor(n,e,i,r,o,a,s,l,c){let d=r+"-"+i.id;super(n,e,i,o,a,s,l,c,d),this.contentAttr=MY(d),this.hostAttr=SY(d)}applyToHost(n){this.applyStyles(),this.setAttribute(n,this.hostAttr,"")}createElement(n,e){let i=super.createElement(n,e);return super.setAttribute(i,this.contentAttr,""),i}};var X0=class t extends pf{supportsDOMEvents=!0;static makeCurrent(){nM(new t)}onAndCancel(n,e,i,r){return n.addEventListener(e,i,r),()=>{n.removeEventListener(e,i,r)}}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=kY();return e==null?null:TY(e)}resetBaseElement(){Ef=null}getUserAgent(){return window.navigator.userAgent}getCookie(n){return xf(document.cookie,n)}},Ef=null;function kY(){return Ef=Ef||document.head.querySelector("base"),Ef?Ef.getAttribute("href"):null}function TY(t){return new URL(t,document.baseURI).pathname}var IY=(()=>{class t{build(){return new XMLHttpRequest}static \u0275fac=function(i){return new(i||t)};static \u0275prov=R({token:t,factory:t.\u0275fac})}return t})(),eN=["alt","control","meta","shift"],AY={"\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"},OY={alt:t=>t.altKey,control:t=>t.ctrlKey,meta:t=>t.metaKey,shift:t=>t.shiftKey},tN=(()=>{class t extends Cf{constructor(e){super(e)}supports(e){return t.parseEventName(e)!=null}addEventListener(e,i,r,o){let a=t.parseEventName(i),s=t.eventCallback(a.fullKey,r,this.manager.getZone());return this.manager.getZone().runOutsideAngular(()=>Yo().onAndCancel(e,a.domEventName,s,o))}static parseEventName(e){let i=e.toLowerCase().split("."),r=i.shift();if(i.length===0||!(r==="keydown"||r==="keyup"))return null;let o=t._normalizeKey(i.pop()),a="",s=i.indexOf("code");if(s>-1&&(i.splice(s,1),a="code."),eN.forEach(c=>{let d=i.indexOf(c);d>-1&&(i.splice(d,1),a+=c+".")}),a+=o,i.length!=0||o.length===0)return null;let l={};return l.domEventName=r,l.fullKey=a,l}static matchEventFullKeyCode(e,i){let r=AY[e.key]||e.key,o="";return i.indexOf("code.")>-1&&(r=e.code,o="code."),r==null||!r?!1:(r=r.toLowerCase(),r===" "?r="space":r==="."&&(r="dot"),eN.forEach(a=>{if(a!==r){let s=OY[a];s(e)&&(o+=a+".")}}),o+=r,o===i)}static eventCallback(e,i,r){return o=>{t.matchEventFullKeyCode(o,e)&&r.runGuarded(()=>i(o))}}static _normalizeKey(e){return e==="esc"?"escape":e}static \u0275fac=function(i){return new(i||t)(fe(_e))};static \u0275prov=R({token:t,factory:t.\u0275fac})}return t})();function SM(t,n,e){let i=k({rootComponent:t,platformRef:e?.platformRef},RY(n));return u2(i)}function RY(t){return{appProviders:[...VY,...t?.providers??[]],platformProviders:LY}}function PY(){X0.makeCurrent()}function FY(){return new An}function NY(){return r1(document),document}var LY=[{provide:Zs,useValue:_M},{provide:d0,useValue:PY,multi:!0},{provide:_e,useFactory:NY}];var VY=[{provide:Rp,useValue:"root"},{provide:An,useFactory:FY},{provide:Z0,useClass:Q0,multi:!0,deps:[_e]},{provide:Z0,useClass:tN,multi:!0,deps:[_e]},MM,DM,wM,{provide:mn,useExisting:MM},{provide:Hd,useClass:IY},[]];var Pm=class{},Jl=class{},yr=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 i=e.indexOf(":");if(i>0){let r=e.slice(0,i),o=e.slice(i+1).trim();this.addHeaderEntry(r,o)}})}:typeof Headers<"u"&&n instanceof Headers?(this.headers=new Map,n.forEach((e,i)=>{this.addHeaderEntry(i,e)})):this.lazyInit=()=>{this.headers=new Map,Object.entries(n).forEach(([e,i])=>{this.setHeaderEntries(e,i)})}: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(),Array.from(n.headers.keys()).forEach(e=>{this.headers.set(e,n.headers.get(e)),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 i=n.value;if(typeof i=="string"&&(i=[i]),i.length===0)return;this.maybeSetNormalizedName(n.name,e);let r=(n.op==="a"?this.headers.get(e):void 0)||[];r.push(...i),this.headers.set(e,r);break;case"d":let o=n.value;if(!o)this.headers.delete(e),this.normalizedNames.delete(e);else{let a=this.headers.get(e);if(!a)return;a=a.filter(s=>o.indexOf(s)===-1),a.length===0?(this.headers.delete(e),this.normalizedNames.delete(e)):this.headers.set(e,a)}break}}addHeaderEntry(n,e){let i=n.toLowerCase();this.maybeSetNormalizedName(n,i),this.headers.has(i)?this.headers.get(i).push(e):this.headers.set(i,[e])}setHeaderEntries(n,e){let i=(Array.isArray(e)?e:[e]).map(o=>o.toString()),r=n.toLowerCase();this.headers.set(r,i),this.maybeSetNormalizedName(n,r)}forEach(n){this.init(),Array.from(this.normalizedNames.keys()).forEach(e=>n(this.normalizedNames.get(e),this.headers.get(e)))}};var ev=class{encodeKey(n){return iN(n)}encodeValue(n){return iN(n)}decodeKey(n){return decodeURIComponent(n)}decodeValue(n){return decodeURIComponent(n)}};function BY(t,n){let e=new Map;return t.length>0&&t.replace(/^\?/,"").split("&").forEach(r=>{let o=r.indexOf("="),[a,s]=o==-1?[n.decodeKey(r),""]:[n.decodeKey(r.slice(0,o)),n.decodeValue(r.slice(o+1))],l=e.get(a)||[];l.push(s),e.set(a,l)}),e}var jY=/%(\d[a-f0-9])/gi,HY={40:"@","3A":":",24:"$","2C":",","3B":";","3D":"=","3F":"?","2F":"/"};function iN(t){return encodeURIComponent(t).replace(jY,(n,e)=>HY[e]??n)}function J0(t){return`${t}`}var Zn=class t{map;encoder;updates=null;cloneFrom=null;constructor(n={}){if(this.encoder=n.encoder||new ev,n.fromString){if(n.fromObject)throw new me(2805,!1);this.map=BY(n.fromString,this.encoder)}else n.fromObject?(this.map=new Map,Object.keys(n.fromObject).forEach(e=>{let i=n.fromObject[e],r=Array.isArray(i)?i.map(J0):[J0(i)];this.map.set(e,r)})):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(i=>{let r=n[i];Array.isArray(r)?r.forEach(o=>{e.push({param:i,value:o,op:"a"})}):e.push({param:i,value:r,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(i=>e+"="+this.encoder.encodeValue(i)).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(){this.map===null&&(this.map=new Map),this.cloneFrom!==null&&(this.cloneFrom.init(),this.cloneFrom.keys().forEach(n=>this.map.set(n,this.cloneFrom.map.get(n))),this.updates.forEach(n=>{switch(n.op){case"a":case"s":let e=(n.op==="a"?this.map.get(n.param):void 0)||[];e.push(J0(n.value)),this.map.set(n.param,e);break;case"d":if(n.value!==void 0){let i=this.map.get(n.param)||[],r=i.indexOf(J0(n.value));r!==-1&&i.splice(r,1),i.length>0?this.map.set(n.param,i):this.map.delete(n.param)}else{this.map.delete(n.param);break}}}),this.cloneFrom=this.updates=null)}};var tv=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()}};function zY(t){switch(t){case"DELETE":case"GET":case"HEAD":case"OPTIONS":case"JSONP":return!1;default:return!0}}function nN(t){return typeof ArrayBuffer<"u"&&t instanceof ArrayBuffer}function rN(t){return typeof Blob<"u"&&t instanceof Blob}function oN(t){return typeof FormData<"u"&&t instanceof FormData}function UY(t){return typeof URLSearchParams<"u"&&t instanceof URLSearchParams}var aN="Content-Type",sN="Accept",lN="X-Request-URL",cN="text/plain",dN="application/json",$Y=`${dN}, ${cN}, */*`,Om=class t{url;body=null;headers;context;reportProgress=!1;withCredentials=!1;credentials;keepalive=!1;cache;priority;mode;redirect;referrer;integrity;responseType="json";method;params;urlWithParams;transferCache;timeout;constructor(n,e,i,r){this.url=e,this.method=n.toUpperCase();let o;if(zY(this.method)||r?(this.body=i!==void 0?i:null,o=r):o=i,o){if(this.reportProgress=!!o.reportProgress,this.withCredentials=!!o.withCredentials,this.keepalive=!!o.keepalive,o.responseType&&(this.responseType=o.responseType),o.headers&&(this.headers=o.headers),o.context&&(this.context=o.context),o.params&&(this.params=o.params),o.priority&&(this.priority=o.priority),o.cache&&(this.cache=o.cache),o.credentials&&(this.credentials=o.credentials),typeof o.timeout=="number"){if(o.timeout<1||!Number.isInteger(o.timeout))throw new me(2822,"");this.timeout=o.timeout}o.mode&&(this.mode=o.mode),o.redirect&&(this.redirect=o.redirect),o.integrity&&(this.integrity=o.integrity),o.referrer&&(this.referrer=o.referrer),this.transferCache=o.transferCache}if(this.headers??=new yr,this.context??=new tv,!this.params)this.params=new Zn,this.urlWithParams=e;else{let a=this.params.toString();if(a.length===0)this.urlWithParams=e;else{let s=e.indexOf("?"),l=s===-1?"?":sK.set(oe,n.setHeaders[oe]),F)),n.setParams&&(W=Object.keys(n.setParams).reduce((K,oe)=>K.set(oe,n.setParams[oe]),W)),new t(e,i,w,{params:W,headers:F,context:Z,reportProgress:D,responseType:r,withCredentials:C,transferCache:b,keepalive:o,cache:s,priority:a,timeout:y,mode:l,redirect:c,credentials:d,referrer:p,integrity:_})}},zd=(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})(zd||{}),Fm=class{headers;status;statusText;url;ok;type;redirected;constructor(n,e=200,i="OK"){this.headers=n.headers||new yr,this.status=n.status!==void 0?n.status:e,this.statusText=n.statusText||i,this.url=n.url||null,this.redirected=n.redirected,this.ok=this.status>=200&&this.status<300}},iv=class t extends Fm{constructor(n={}){super(n)}type=zd.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})}},rl=class t extends Fm{body;constructor(n={}){super(n),this.body=n.body!==void 0?n.body:null}type=zd.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})}},Rm=class extends Fm{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}},WY=200,GY=204;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}}var xr=(()=>{class t{handler;constructor(e){this.handler=e}request(e,i,r={}){let o;if(e instanceof Om)o=e;else{let l;r.headers instanceof yr?l=r.headers:l=new yr(r.headers);let c;r.params&&(r.params instanceof Zn?c=r.params:c=new Zn({fromObject:r.params})),o=new Om(e,i,r.body!==void 0?r.body:null,{headers:l,context:r.context,params:c,reportProgress:r.reportProgress,responseType:r.responseType||"json",withCredentials:r.withCredentials,transferCache:r.transferCache,keepalive:r.keepalive,priority:r.priority,cache:r.cache,mode:r.mode,redirect:r.redirect,credentials:r.credentials,referrer:r.referrer,integrity:r.integrity,timeout:r.timeout})}let a=Q(o).pipe(No(l=>this.handler.handle(l)));if(e instanceof Om||r.observe==="events")return a;let s=a.pipe(ce(l=>l instanceof rl));switch(r.observe||"body"){case"body":switch(o.responseType){case"arraybuffer":return s.pipe(se(l=>{if(l.body!==null&&!(l.body instanceof ArrayBuffer))throw new me(2806,!1);return l.body}));case"blob":return s.pipe(se(l=>{if(l.body!==null&&!(l.body instanceof Blob))throw new me(2807,!1);return l.body}));case"text":return s.pipe(se(l=>{if(l.body!==null&&typeof l.body!="string")throw new me(2808,!1);return l.body}));case"json":default:return s.pipe(se(l=>l.body))}case"response":return s;default:throw new me(2809,!1)}}delete(e,i={}){return this.request("DELETE",e,i)}get(e,i={}){return this.request("GET",e,i)}head(e,i={}){return this.request("HEAD",e,i)}jsonp(e,i){return this.request("JSONP",e,{params:new Zn().append(i,"JSONP_CALLBACK"),observe:"body",responseType:"json"})}options(e,i={}){return this.request("OPTIONS",e,i)}patch(e,i,r={}){return this.request("PATCH",e,kM(r,i))}post(e,i,r={}){return this.request("POST",e,kM(r,i))}put(e,i,r={}){return this.request("PUT",e,kM(r,i))}static \u0275fac=function(i){return new(i||t)(fe(Pm))};static \u0275prov=R({token:t,factory:t.\u0275fac})}return t})();var qY=new O("");function YY(t,n){return n(t)}function QY(t,n,e){return(i,r)=>On(e,()=>n(i,o=>t(o,r)))}var IM=new O(""),AM=new O(""),uN=new O(""),mN=new O("",{providedIn:"root",factory:()=>!0});var nv=(()=>{class t extends Pm{backend;injector;chain=null;pendingTasks=u(dm);contributeToStability=u(mN);constructor(e,i){super(),this.backend=e,this.injector=i}handle(e){if(this.chain===null){let i=Array.from(new Set([...this.injector.get(AM),...this.injector.get(uN,[])]));this.chain=i.reduceRight((r,o)=>QY(r,o,this.injector),YY)}if(this.contributeToStability){let i=this.pendingTasks.add();return this.chain(e,r=>this.backend.handle(r)).pipe(Gr(i))}else return this.chain(e,i=>this.backend.handle(i))}static \u0275fac=function(i){return new(i||t)(fe(Jl),fe(Kt))};static \u0275prov=R({token:t,factory:t.\u0275fac})}return t})();var KY=/^\)\]\}',?\n/,ZY=RegExp(`^${lN}:`,"m");function XY(t){return"responseURL"in t&&t.responseURL?t.responseURL:ZY.test(t.getAllResponseHeaders())?t.getResponseHeader(lN):null}var TM=(()=>{class t{xhrFactory;constructor(e){this.xhrFactory=e}handle(e){if(e.method==="JSONP")throw new me(-2800,!1);let i=this.xhrFactory;return Q(null).pipe(je(()=>new Fe(o=>{let a=i.build();if(a.open(e.method,e.urlWithParams),e.withCredentials&&(a.withCredentials=!0),e.headers.forEach((C,D)=>a.setRequestHeader(C,D.join(","))),e.headers.has(sN)||a.setRequestHeader(sN,$Y),!e.headers.has(aN)){let C=e.detectContentTypeHeader();C!==null&&a.setRequestHeader(aN,C)}if(e.timeout&&(a.timeout=e.timeout),e.responseType){let C=e.responseType.toLowerCase();a.responseType=C!=="json"?C:"text"}let s=e.serializeBody(),l=null,c=()=>{if(l!==null)return l;let C=a.statusText||"OK",D=new yr(a.getAllResponseHeaders()),F=XY(a)||e.url;return l=new iv({headers:D,status:a.status,statusText:C,url:F}),l},d=()=>{let{headers:C,status:D,statusText:F,url:W}=c(),Z=null;D!==GY&&(Z=typeof a.response>"u"?a.responseText:a.response),D===0&&(D=Z?WY:0);let K=D>=200&&D<300;if(e.responseType==="json"&&typeof Z=="string"){let oe=Z;Z=Z.replace(KY,"");try{Z=Z!==""?JSON.parse(Z):null}catch(ke){Z=oe,K&&(K=!1,Z={error:ke,text:Z})}}K?(o.next(new rl({body:Z,headers:C,status:D,statusText:F,url:W||void 0})),o.complete()):o.error(new Rm({error:Z,headers:C,status:D,statusText:F,url:W||void 0}))},p=C=>{let{url:D}=c(),F=new Rm({error:C,status:a.status||0,statusText:a.statusText||"Unknown Error",url:D||void 0});o.error(F)},_=p;e.timeout&&(_=C=>{let{url:D}=c(),F=new Rm({error:new DOMException("Request timed out","TimeoutError"),status:a.status||0,statusText:a.statusText||"Request timeout",url:D||void 0});o.error(F)});let b=!1,y=C=>{b||(o.next(c()),b=!0);let D={type:zd.DownloadProgress,loaded:C.loaded};C.lengthComputable&&(D.total=C.total),e.responseType==="text"&&a.responseText&&(D.partialText=a.responseText),o.next(D)},w=C=>{let D={type:zd.UploadProgress,loaded:C.loaded};C.lengthComputable&&(D.total=C.total),o.next(D)};return a.addEventListener("load",d),a.addEventListener("error",p),a.addEventListener("timeout",_),a.addEventListener("abort",p),e.reportProgress&&(a.addEventListener("progress",y),s!==null&&a.upload&&a.upload.addEventListener("progress",w)),a.send(s),o.next({type:zd.Sent}),()=>{a.removeEventListener("error",p),a.removeEventListener("abort",p),a.removeEventListener("load",d),a.removeEventListener("timeout",_),e.reportProgress&&(a.removeEventListener("progress",y),s!==null&&a.upload&&a.upload.removeEventListener("progress",w)),a.readyState!==a.DONE&&a.abort()}})))}static \u0275fac=function(i){return new(i||t)(fe(Hd))};static \u0275prov=R({token:t,factory:t.\u0275fac})}return t})(),hN=new O(""),JY="XSRF-TOKEN",eQ=new O("",{providedIn:"root",factory:()=>JY}),tQ="X-XSRF-TOKEN",iQ=new O("",{providedIn:"root",factory:()=>tQ}),Mf=class{},nQ=(()=>{class t{doc;cookieName;lastCookieString="";lastToken=null;parseCount=0;constructor(e,i){this.doc=e,this.cookieName=i}getToken(){let e=this.doc.cookie||"";return e!==this.lastCookieString&&(this.parseCount++,this.lastToken=xf(e,this.cookieName),this.lastCookieString=e),this.lastToken}static \u0275fac=function(i){return new(i||t)(fe(_e),fe(eQ))};static \u0275prov=R({token:t,factory:t.\u0275fac})}return t})(),rQ=/^(?:https?:)?\/\//i;function oQ(t,n){if(!u(hN)||t.method==="GET"||t.method==="HEAD"||rQ.test(t.url))return n(t);let e=u(Mf).getToken(),i=u(iQ);return e!=null&&!t.headers.has(i)&&(t=t.clone({headers:t.headers.set(i,e)})),n(t)}var OM=(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})(OM||{});function aQ(t,n){return{\u0275kind:t,\u0275providers:n}}function RM(...t){let n=[xr,TM,nv,{provide:Pm,useExisting:nv},{provide:Jl,useFactory:()=>u(qY,{optional:!0})??u(TM)},{provide:AM,useValue:oQ,multi:!0},{provide:hN,useValue:!0},{provide:Mf,useClass:nQ}];for(let e of t)n.push(...e.\u0275providers);return qr(n)}function PM(t){return aQ(OM.Interceptors,t.map(n=>({provide:AM,useValue:n,multi:!0})))}var fN=(()=>{class t{_doc;constructor(e){this._doc=e}getTitle(){return this._doc.title}setTitle(e){this._doc.title=e||""}static \u0275fac=function(i){return new(i||t)(fe(_e))};static \u0275prov=R({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();var Sf=(()=>{class t{static \u0275fac=function(i){return new(i||t)};static \u0275prov=R({token:t,factory:function(i){let r=null;return i?r=new(i||t):r=fe(sQ),r},providedIn:"root"})}return t})(),sQ=(()=>{class t extends Sf{_doc;constructor(e){super(),this._doc=e}sanitize(e,i){if(i==null)return null;switch(e){case Rn.NONE:return i;case Rn.HTML:return cs(i,"HTML")?Yr(i):p0(this._doc,String(i)).toString();case Rn.STYLE:return cs(i,"Style")?Yr(i):i;case Rn.SCRIPT:if(cs(i,"Script"))return Yr(i);throw new me(5200,!1);case Rn.URL:return cs(i,"URL")?Yr(i):tf(String(i));case Rn.RESOURCE_URL:if(cs(i,"ResourceURL"))return Yr(i);throw new me(5201,!1);default:throw new me(5202,!1)}}bypassSecurityTrustHtml(e){return s1(e)}bypassSecurityTrustStyle(e){return l1(e)}bypassSecurityTrustScript(e){return c1(e)}bypassSecurityTrustUrl(e){return d1(e)}bypassSecurityTrustResourceUrl(e){return u1(e)}static \u0275fac=function(i){return new(i||t)(fe(_e))};static \u0275prov=R({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();var mt="primary",jf=Symbol("RouteTitle"),jM=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 Wd(t){return new jM(t)}function wN(t,n,e){let i=e.path.split("/");if(i.length>t.length||e.pathMatch==="full"&&(n.hasChildren()||i.lengthi[o]===r)}else return t===n}function EN(t){return t.length>0?t[t.length-1]:null}function ol(t){return zi(t)?t:Js(t)?Ft(Promise.resolve(t)):Q(t)}var cQ={exact:SN,subset:kN},MN={exact:dQ,subset:uQ,ignored:()=>!0};function gN(t,n,e){return cQ[e.paths](t.root,n.root,e.matrixParams)&&MN[e.queryParams](t.queryParams,n.queryParams)&&!(e.fragment==="exact"&&t.fragment!==n.fragment)}function dQ(t,n){return hs(t,n)}function SN(t,n,e){if(!Ud(t.segments,n.segments)||!av(t.segments,n.segments,e)||t.numberOfChildren!==n.numberOfChildren)return!1;for(let i in n.children)if(!t.children[i]||!SN(t.children[i],n.children[i],e))return!1;return!0}function uQ(t,n){return Object.keys(n).length<=Object.keys(t).length&&Object.keys(n).every(e=>DN(t[e],n[e]))}function kN(t,n,e){return TN(t,n,n.segments,e)}function TN(t,n,e,i){if(t.segments.length>e.length){let r=t.segments.slice(0,e.length);return!(!Ud(r,e)||n.hasChildren()||!av(r,e,i))}else if(t.segments.length===e.length){if(!Ud(t.segments,e)||!av(t.segments,e,i))return!1;for(let r in n.children)if(!t.children[r]||!kN(t.children[r],n.children[r],i))return!1;return!0}else{let r=e.slice(0,t.segments.length),o=e.slice(t.segments.length);return!Ud(t.segments,r)||!av(t.segments,r,i)||!t.children[mt]?!1:TN(t.children[mt],n,o,i)}}function av(t,n,e){return n.every((i,r)=>MN[e](t[r].parameters,i.parameters))}var ps=class{root;queryParams;fragment;_queryParamMap;constructor(n=new ei([],{}),e={},i=null){this.root=n,this.queryParams=e,this.fragment=i}get queryParamMap(){return this._queryParamMap??=Wd(this.queryParams),this._queryParamMap}toString(){return pQ.serialize(this)}},ei=class{segments;children;parent=null;constructor(n,e){this.segments=n,this.children=e,Object.values(e).forEach(i=>i.parent=this)}hasChildren(){return this.numberOfChildren>0}get numberOfChildren(){return Object.keys(this.children).length}toString(){return sv(this)}},ec=class{path;parameters;_parameterMap;constructor(n,e){this.path=n,this.parameters=e}get parameterMap(){return this._parameterMap??=Wd(this.parameters),this._parameterMap}toString(){return AN(this)}};function mQ(t,n){return Ud(t,n)&&t.every((e,i)=>hs(e.parameters,n[i].parameters))}function Ud(t,n){return t.length!==n.length?!1:t.every((e,i)=>e.path===n[i].path)}function hQ(t,n){let e=[];return Object.entries(t.children).forEach(([i,r])=>{i===mt&&(e=e.concat(n(r,i)))}),Object.entries(t.children).forEach(([i,r])=>{i!==mt&&(e=e.concat(n(r,i)))}),e}var rc=(()=>{class t{static \u0275fac=function(i){return new(i||t)};static \u0275prov=R({token:t,factory:()=>new tc,providedIn:"root"})}return t})(),tc=class{parse(n){let e=new UM(n);return new ps(e.parseRootSegment(),e.parseQueryParams(),e.parseFragment())}serialize(n){let e=`/${kf(n.root,!0)}`,i=_Q(n.queryParams),r=typeof n.fragment=="string"?`#${fQ(n.fragment)}`:"";return`${e}${i}${r}`}},pQ=new tc;function sv(t){return t.segments.map(n=>AN(n)).join("/")}function kf(t,n){if(!t.hasChildren())return sv(t);if(n){let e=t.children[mt]?kf(t.children[mt],!1):"",i=[];return Object.entries(t.children).forEach(([r,o])=>{r!==mt&&i.push(`${r}:${kf(o,!1)}`)}),i.length>0?`${e}(${i.join("//")})`:e}else{let e=hQ(t,(i,r)=>r===mt?[kf(t.children[mt],!1)]:[`${r}:${kf(i,!1)}`]);return Object.keys(t.children).length===1&&t.children[mt]!=null?`${sv(t)}/${e[0]}`:`${sv(t)}/(${e.join("//")})`}}function IN(t){return encodeURIComponent(t).replace(/%40/g,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",")}function rv(t){return IN(t).replace(/%3B/gi,";")}function fQ(t){return encodeURI(t)}function zM(t){return IN(t).replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/%26/gi,"&")}function lv(t){return decodeURIComponent(t)}function _N(t){return lv(t.replace(/\+/g,"%20"))}function AN(t){return`${zM(t.path)}${gQ(t.parameters)}`}function gQ(t){return Object.entries(t).map(([n,e])=>`;${zM(n)}=${zM(e)}`).join("")}function _Q(t){let n=Object.entries(t).map(([e,i])=>Array.isArray(i)?i.map(r=>`${rv(e)}=${rv(r)}`).join("&"):`${rv(e)}=${rv(i)}`).filter(e=>e);return n.length?`?${n.join("&")}`:""}var bQ=/^[^\/()?;#]+/;function NM(t){let n=t.match(bQ);return n?n[0]:""}var vQ=/^[^\/()?;=#]+/;function yQ(t){let n=t.match(vQ);return n?n[0]:""}var xQ=/^[^=?&#]+/;function CQ(t){let n=t.match(xQ);return n?n[0]:""}var wQ=/^[^&#]+/;function DQ(t){let n=t.match(wQ);return n?n[0]:""}var UM=class{url;remaining;constructor(n){this.url=n,this.remaining=n}parseRootSegment(){return this.consumeOptional("/"),this.remaining===""||this.peekStartsWith("?")||this.peekStartsWith("#")?new ei([],{}):new ei([],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(){if(this.remaining==="")return{};this.consumeOptional("/");let n=[];for(this.peekStartsWith("(")||n.push(this.parseSegment());this.peekStartsWith("/")&&!this.peekStartsWith("//")&&!this.peekStartsWith("/(");)this.capture("/"),n.push(this.parseSegment());let e={};this.peekStartsWith("/(")&&(this.capture("/"),e=this.parseParens(!0));let i={};return this.peekStartsWith("(")&&(i=this.parseParens(!1)),(n.length>0||Object.keys(e).length>0)&&(i[mt]=new ei(n,e)),i}parseSegment(){let n=NM(this.remaining);if(n===""&&this.peekStartsWith(";"))throw new me(4009,!1);return this.capture(n),new ec(lv(n),this.parseMatrixParams())}parseMatrixParams(){let n={};for(;this.consumeOptional(";");)this.parseParam(n);return n}parseParam(n){let e=yQ(this.remaining);if(!e)return;this.capture(e);let i="";if(this.consumeOptional("=")){let r=NM(this.remaining);r&&(i=r,this.capture(i))}n[lv(e)]=lv(i)}parseQueryParam(n){let e=CQ(this.remaining);if(!e)return;this.capture(e);let i="";if(this.consumeOptional("=")){let a=DQ(this.remaining);a&&(i=a,this.capture(i))}let r=_N(e),o=_N(i);if(n.hasOwnProperty(r)){let a=n[r];Array.isArray(a)||(a=[a],n[r]=a),a.push(o)}else n[r]=o}parseParens(n){let e={};for(this.capture("(");!this.consumeOptional(")")&&this.remaining.length>0;){let i=NM(this.remaining),r=this.remaining[i.length];if(r!=="/"&&r!==")"&&r!==";")throw new me(4010,!1);let o;i.indexOf(":")>-1?(o=i.slice(0,i.indexOf(":")),this.capture(o),this.capture(":")):n&&(o=mt);let a=this.parseChildren();e[o??mt]=Object.keys(a).length===1&&a[mt]?a[mt]:new ei([],a),this.consumeOptional("//")}return e}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 me(4011,!1)}};function ON(t){return t.segments.length>0?new ei([],{[mt]:t}):t}function RN(t){let n={};for(let[i,r]of Object.entries(t.children)){let o=RN(r);if(i===mt&&o.segments.length===0&&o.hasChildren())for(let[a,s]of Object.entries(o.children))n[a]=s;else(o.segments.length>0||o.hasChildren())&&(n[i]=o)}let e=new ei(t.segments,n);return EQ(e)}function EQ(t){if(t.numberOfChildren===1&&t.children[mt]){let n=t.children[mt];return new ei(t.segments.concat(n.segments),n.children)}return t}function ic(t){return t instanceof ps}function PN(t,n,e=null,i=null){let r=FN(t);return NN(r,n,e,i)}function FN(t){let n;function e(o){let a={};for(let l of o.children){let c=e(l);a[l.outlet]=c}let s=new ei(o.url,a);return o===t&&(n=s),s}let i=e(t.root),r=ON(i);return n??r}function NN(t,n,e,i){let r=t;for(;r.parent;)r=r.parent;if(n.length===0)return LM(r,r,r,e,i);let o=MQ(n);if(o.toRoot())return LM(r,r,new ei([],{}),e,i);let a=SQ(o,r,t),s=a.processChildren?If(a.segmentGroup,a.index,o.commands):VN(a.segmentGroup,a.index,o.commands);return LM(r,a.segmentGroup,s,e,i)}function cv(t){return typeof t=="object"&&t!=null&&!t.outlets&&!t.segmentPath}function Of(t){return typeof t=="object"&&t!=null&&t.outlets}function LM(t,n,e,i,r){let o={};i&&Object.entries(i).forEach(([l,c])=>{o[l]=Array.isArray(c)?c.map(d=>`${d}`):`${c}`});let a;t===n?a=e:a=LN(t,n,e);let s=ON(RN(a));return new ps(s,o,r)}function LN(t,n,e){let i={};return Object.entries(t.children).forEach(([r,o])=>{o===n?i[r]=e:i[r]=LN(o,n,e)}),new ei(t.segments,i)}var dv=class{isAbsolute;numberOfDoubleDots;commands;constructor(n,e,i){if(this.isAbsolute=n,this.numberOfDoubleDots=e,this.commands=i,n&&i.length>0&&cv(i[0]))throw new me(4003,!1);let r=i.find(Of);if(r&&r!==EN(i))throw new me(4004,!1)}toRoot(){return this.isAbsolute&&this.commands.length===1&&this.commands[0]=="/"}};function MQ(t){if(typeof t[0]=="string"&&t.length===1&&t[0]==="/")return new dv(!0,0,t);let n=0,e=!1,i=t.reduce((r,o,a)=>{if(typeof o=="object"&&o!=null){if(o.outlets){let s={};return Object.entries(o.outlets).forEach(([l,c])=>{s[l]=typeof c=="string"?c.split("/"):c}),[...r,{outlets:s}]}if(o.segmentPath)return[...r,o.segmentPath]}return typeof o!="string"?[...r,o]:a===0?(o.split("/").forEach((s,l)=>{l==0&&s==="."||(l==0&&s===""?e=!0:s===".."?n++:s!=""&&r.push(s))}),r):[...r,o]},[]);return new dv(e,n,i)}var Vm=class{segmentGroup;processChildren;index;constructor(n,e,i){this.segmentGroup=n,this.processChildren=e,this.index=i}};function SQ(t,n,e){if(t.isAbsolute)return new Vm(n,!0,0);if(!e)return new Vm(n,!1,NaN);if(e.parent===null)return new Vm(e,!0,0);let i=cv(t.commands[0])?0:1,r=e.segments.length-1+i;return kQ(e,r,t.numberOfDoubleDots)}function kQ(t,n,e){let i=t,r=n,o=e;for(;o>r;){if(o-=r,i=i.parent,!i)throw new me(4005,!1);r=i.segments.length}return new Vm(i,!1,r-o)}function TQ(t){return Of(t[0])?t[0].outlets:{[mt]:t}}function VN(t,n,e){if(t??=new ei([],{}),t.segments.length===0&&t.hasChildren())return If(t,n,e);let i=IQ(t,n,e),r=e.slice(i.commandIndex);if(i.match&&i.pathIndexo!==mt)&&t.children[mt]&&t.numberOfChildren===1&&t.children[mt].segments.length===0){let o=If(t.children[mt],n,e);return new ei(t.segments,o.children)}return Object.entries(i).forEach(([o,a])=>{typeof a=="string"&&(a=[a]),a!==null&&(r[o]=VN(t.children[o],n,a))}),Object.entries(t.children).forEach(([o,a])=>{i[o]===void 0&&(r[o]=a)}),new ei(t.segments,r)}}function IQ(t,n,e){let i=0,r=n,o={match:!1,pathIndex:0,commandIndex:0};for(;r=e.length)return o;let a=t.segments[r],s=e[i];if(Of(s))break;let l=`${s}`,c=i0&&l===void 0)break;if(l&&c&&typeof c=="object"&&c.outlets===void 0){if(!vN(l,c,a))return o;i+=2}else{if(!vN(l,{},a))return o;i++}r++}return{match:!0,pathIndex:r,commandIndex:i}}function $M(t,n,e){let i=t.segments.slice(0,n),r=0;for(;r{typeof i=="string"&&(i=[i]),i!==null&&(n[e]=$M(new ei([],{}),0,i))}),n}function bN(t){let n={};return Object.entries(t).forEach(([e,i])=>n[e]=`${i}`),n}function vN(t,n,e){return t==e.path&&hs(n,e.parameters)}var Bm="imperative",Cn=(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})(Cn||{}),Co=class{id;url;constructor(n,e){this.id=n,this.url=e}},fs=class extends Co{type=Cn.NavigationStart;navigationTrigger;restoredState;constructor(n,e,i="imperative",r=null){super(n,e),this.navigationTrigger=i,this.restoredState=r}toString(){return`NavigationStart(id: ${this.id}, url: '${this.url}')`}},xi=class extends Co{urlAfterRedirects;type=Cn.NavigationEnd;constructor(n,e,i){super(n,e),this.urlAfterRedirects=i}toString(){return`NavigationEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}')`}},Vr=(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})(Vr||{}),Hm=(function(t){return t[t.IgnoredSameUrlNavigation=0]="IgnoredSameUrlNavigation",t[t.IgnoredByUrlHandlingStrategy=1]="IgnoredByUrlHandlingStrategy",t})(Hm||{}),Ko=class extends Co{reason;code;type=Cn.NavigationCancel;constructor(n,e,i,r){super(n,e),this.reason=i,this.code=r}toString(){return`NavigationCancel(id: ${this.id}, url: '${this.url}')`}},gs=class extends Co{reason;code;type=Cn.NavigationSkipped;constructor(n,e,i,r){super(n,e),this.reason=i,this.code=r}},nc=class extends Co{error;target;type=Cn.NavigationError;constructor(n,e,i,r){super(n,e),this.error=i,this.target=r}toString(){return`NavigationError(id: ${this.id}, url: '${this.url}', error: ${this.error})`}},Rf=class extends Co{urlAfterRedirects;state;type=Cn.RoutesRecognized;constructor(n,e,i,r){super(n,e),this.urlAfterRedirects=i,this.state=r}toString(){return`RoutesRecognized(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}},uv=class extends Co{urlAfterRedirects;state;type=Cn.GuardsCheckStart;constructor(n,e,i,r){super(n,e),this.urlAfterRedirects=i,this.state=r}toString(){return`GuardsCheckStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}},mv=class extends Co{urlAfterRedirects;state;shouldActivate;type=Cn.GuardsCheckEnd;constructor(n,e,i,r,o){super(n,e),this.urlAfterRedirects=i,this.state=r,this.shouldActivate=o}toString(){return`GuardsCheckEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state}, shouldActivate: ${this.shouldActivate})`}},hv=class extends Co{urlAfterRedirects;state;type=Cn.ResolveStart;constructor(n,e,i,r){super(n,e),this.urlAfterRedirects=i,this.state=r}toString(){return`ResolveStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}},pv=class extends Co{urlAfterRedirects;state;type=Cn.ResolveEnd;constructor(n,e,i,r){super(n,e),this.urlAfterRedirects=i,this.state=r}toString(){return`ResolveEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}},fv=class{route;type=Cn.RouteConfigLoadStart;constructor(n){this.route=n}toString(){return`RouteConfigLoadStart(path: ${this.route.path})`}},gv=class{route;type=Cn.RouteConfigLoadEnd;constructor(n){this.route=n}toString(){return`RouteConfigLoadEnd(path: ${this.route.path})`}},_v=class{snapshot;type=Cn.ChildActivationStart;constructor(n){this.snapshot=n}toString(){return`ChildActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}},bv=class{snapshot;type=Cn.ChildActivationEnd;constructor(n){this.snapshot=n}toString(){return`ChildActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}},vv=class{snapshot;type=Cn.ActivationStart;constructor(n){this.snapshot=n}toString(){return`ActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}},yv=class{snapshot;type=Cn.ActivationEnd;constructor(n){this.snapshot=n}toString(){return`ActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}},zm=class{routerEvent;position;anchor;type=Cn.Scroll;constructor(n,e,i){this.routerEvent=n,this.position=e,this.anchor=i}toString(){let n=this.position?`${this.position[0]}, ${this.position[1]}`:null;return`Scroll(anchor: '${this.anchor}', position: '${n}')`}},Pf=class{},Um=class{url;navigationBehaviorOptions;constructor(n,e){this.url=n,this.navigationBehaviorOptions=e}};function OQ(t){return!(t instanceof Pf)&&!(t instanceof Um)}function RQ(t,n){return t.providers&&!t._injector&&(t._injector=Dm(t.providers,n,`Route: ${t.path}`)),t._injector??n}function Ia(t){return t.outlet||mt}function PQ(t,n){let e=t.filter(i=>Ia(i)===n);return e.push(...t.filter(i=>Ia(i)!==n)),e}function Gm(t){if(!t)return null;if(t.routeConfig?._injector)return t.routeConfig._injector;for(let n=t.parent;n;n=n.parent){let e=n.routeConfig;if(e?._loadedInjector)return e._loadedInjector;if(e?._injector)return e._injector}return null}var xv=class{rootInjector;outlet=null;route=null;children;attachRef=null;get injector(){return Gm(this.route?.snapshot)??this.rootInjector}constructor(n){this.rootInjector=n,this.children=new Gd(this.rootInjector)}},Gd=(()=>{class t{rootInjector;contexts=new Map;constructor(e){this.rootInjector=e}onChildOutletCreated(e,i){let r=this.getOrCreateContext(e);r.outlet=i,this.contexts.set(e,r)}onChildOutletDestroyed(e){let i=this.getContext(e);i&&(i.outlet=null,i.attachRef=null)}onOutletDeactivated(){let e=this.contexts;return this.contexts=new Map,e}onOutletReAttached(e){this.contexts=e}getOrCreateContext(e){let i=this.getContext(e);return i||(i=new xv(this.rootInjector),this.contexts.set(e,i)),i}getContext(e){return this.contexts.get(e)||null}static \u0275fac=function(i){return new(i||t)(fe(Kt))};static \u0275prov=R({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),Cv=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=WM(n,this._root);return e?e.children.map(i=>i.value):[]}firstChild(n){let e=WM(n,this._root);return e&&e.children.length>0?e.children[0].value:null}siblings(n){let e=GM(n,this._root);return e.length<2?[]:e[e.length-2].children.map(r=>r.value).filter(r=>r!==n)}pathFromRoot(n){return GM(n,this._root).map(e=>e.value)}};function WM(t,n){if(t===n.value)return n;for(let e of n.children){let i=WM(t,e);if(i)return i}return null}function GM(t,n){if(t===n.value)return[n];for(let e of n.children){let i=GM(t,e);if(i.length)return i.unshift(n),i}return[]}var xo=class{value;children;constructor(n,e){this.value=n,this.children=e}toString(){return`TreeNode(${this.value})`}};function Lm(t){let n={};return t&&t.children.forEach(e=>n[e.value.outlet]=e),n}var Ff=class extends Cv{snapshot;constructor(n,e){super(n),this.snapshot=e,eS(this,n)}toString(){return this.snapshot.toString()}};function BN(t){let n=FQ(t),e=new it([new ec("",{})]),i=new it({}),r=new it({}),o=new it({}),a=new it(""),s=new Si(e,i,o,a,r,mt,t,n.root);return s.snapshot=n.root,new Ff(new xo(s,[]),n)}function FQ(t){let n={},e={},i={},o=new $d([],n,i,"",e,mt,t,null,{});return new Nf("",new xo(o,[]))}var Si=class{urlSubject;paramsSubject;queryParamsSubject;fragmentSubject;dataSubject;outlet;component;snapshot;_futureSnapshot;_routerState;_paramMap;_queryParamMap;title;url;params;queryParams;fragment;data;constructor(n,e,i,r,o,a,s,l){this.urlSubject=n,this.paramsSubject=e,this.queryParamsSubject=i,this.fragmentSubject=r,this.dataSubject=o,this.outlet=a,this.component=s,this._futureSnapshot=l,this.title=this.dataSubject?.pipe(se(c=>c[jf]))??Q(void 0),this.url=n,this.params=e,this.queryParams=i,this.fragment=r,this.data=o}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(se(n=>Wd(n))),this._paramMap}get queryParamMap(){return this._queryParamMap??=this.queryParams.pipe(se(n=>Wd(n))),this._queryParamMap}toString(){return this.snapshot?this.snapshot.toString():`Future(${this._futureSnapshot})`}};function wv(t,n,e="emptyOnly"){let i,{routeConfig:r}=t;return n!==null&&(e==="always"||r?.path===""||!n.component&&!n.routeConfig?.loadComponent)?i={params:k(k({},n.params),t.params),data:k(k({},n.data),t.data),resolve:k(k(k(k({},t.data),n.data),r?.data),t._resolvedData)}:i={params:k({},t.params),data:k({},t.data),resolve:k(k({},t.data),t._resolvedData??{})},r&&HN(r)&&(i.resolve[jf]=r.title),i}var $d=class{url;params;queryParams;fragment;data;outlet;component;routeConfig;_resolve;_resolvedData;_routerState;_paramMap;_queryParamMap;get title(){return this.data?.[jf]}constructor(n,e,i,r,o,a,s,l,c){this.url=n,this.params=e,this.queryParams=i,this.fragment=r,this.data=o,this.outlet=a,this.component=s,this.routeConfig=l,this._resolve=c}get root(){return this._routerState.root}get parent(){return this._routerState.parent(this)}get firstChild(){return this._routerState.firstChild(this)}get children(){return this._routerState.children(this)}get pathFromRoot(){return this._routerState.pathFromRoot(this)}get paramMap(){return this._paramMap??=Wd(this.params),this._paramMap}get queryParamMap(){return this._queryParamMap??=Wd(this.queryParams),this._queryParamMap}toString(){let n=this.url.map(i=>i.toString()).join("/"),e=this.routeConfig?this.routeConfig.path:"";return`Route(url:'${n}', path:'${e}')`}},Nf=class extends Cv{url;constructor(n,e){super(e),this.url=n,eS(this,e)}toString(){return jN(this._root)}};function eS(t,n){n.value._routerState=t,n.children.forEach(e=>eS(t,e))}function jN(t){let n=t.children.length>0?` { ${t.children.map(jN).join(", ")} } `:"";return`${t.value}${n}`}function VM(t){if(t.snapshot){let n=t.snapshot,e=t._futureSnapshot;t.snapshot=e,hs(n.queryParams,e.queryParams)||t.queryParamsSubject.next(e.queryParams),n.fragment!==e.fragment&&t.fragmentSubject.next(e.fragment),hs(n.params,e.params)||t.paramsSubject.next(e.params),lQ(n.url,e.url)||t.urlSubject.next(e.url),hs(n.data,e.data)||t.dataSubject.next(e.data)}else t.snapshot=t._futureSnapshot,t.dataSubject.next(t._futureSnapshot.data)}function qM(t,n){let e=hs(t.params,n.params)&&mQ(t.url,n.url),i=!t.parent!=!n.parent;return e&&!i&&(!t.parent||qM(t.parent,n.parent))}function HN(t){return typeof t.title=="string"||t.title===null}var zN=new O(""),al=(()=>{class t{activated=null;get activatedComponentRef(){return this.activated}_activatedRoute=null;name=mt;activateEvents=new U;deactivateEvents=new U;attachEvents=new U;detachEvents=new U;routerOutletData=re();parentContexts=u(Gd);location=u(ot);changeDetector=u(ye);inputBinder=u(Hf,{optional:!0});supportsBindingToComponentInputs=!0;ngOnChanges(e){if(e.name){let{firstChange:i,previousValue:r}=e.name;if(i)return;this.isTrackedInParentContexts(r)&&(this.deactivate(),this.parentContexts.onChildOutletDestroyed(r)),this.initializeOutletWithName()}}ngOnDestroy(){this.isTrackedInParentContexts(this.name)&&this.parentContexts.onChildOutletDestroyed(this.name),this.inputBinder?.unsubscribeFromRouteData(this)}isTrackedInParentContexts(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 me(4012,!1);return this.activated.instance}get activatedRoute(){if(!this.activated)throw new me(4012,!1);return this._activatedRoute}get activatedRouteData(){return this._activatedRoute?this._activatedRoute.snapshot.data:{}}detach(){if(!this.activated)throw new me(4012,!1);this.location.detach();let e=this.activated;return this.activated=null,this._activatedRoute=null,this.detachEvents.emit(e.instance),e}attach(e,i){this.activated=e,this._activatedRoute=i,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,i){if(this.isActivated)throw new me(4013,!1);this._activatedRoute=e;let r=this.location,a=e.snapshot.component,s=this.parentContexts.getOrCreateContext(this.name).children,l=new YM(e,s,r.injector,this.routerOutletData);this.activated=r.createComponent(a,{index:r.length,injector:l,environmentInjector:i}),this.changeDetector.markForCheck(),this.inputBinder?.bindActivatedRouteToOutletComponent(this),this.activateEvents.emit(this.activated.instance)}static \u0275fac=function(i){return new(i||t)};static \u0275dir=P({type:t,selectors:[["router-outlet"]],inputs:{name:"name",routerOutletData:[1,"routerOutletData"]},outputs:{activateEvents:"activate",deactivateEvents:"deactivate",attachEvents:"attach",detachEvents:"detach"},exportAs:["outlet"],features:[Ae]})}return t})(),YM=class{route;childContexts;parent;outletData;constructor(n,e,i,r){this.route=n,this.childContexts=e,this.parent=i,this.outletData=r}get(n,e){return n===Si?this.route:n===Gd?this.childContexts:n===zN?this.outletData:this.parent.get(n,e)}},Hf=new O(""),tS=(()=>{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:i}=e,r=go([i.queryParams,i.params,i.data]).pipe(je(([o,a,s],l)=>(s=k(k(k({},o),a),s),l===0?Q(s):Promise.resolve(s)))).subscribe(o=>{if(!e.isActivated||!e.activatedComponentRef||e.activatedRoute!==i||i.component===null){this.unsubscribeFromRouteData(e);return}let a=p2(i.component);if(!a){this.unsubscribeFromRouteData(e);return}for(let{templateName:s}of a.inputs)e.activatedComponentRef.setInput(s,o[s])});this.outletDataSubscriptions.set(e,r)}static \u0275fac=function(i){return new(i||t)};static \u0275prov=R({token:t,factory:t.\u0275fac})}return t})(),iS=(()=>{class t{static \u0275fac=function(i){return new(i||t)};static \u0275cmp=E({type:t,selectors:[["ng-component"]],exportAs:["emptyRouterOutlet"],decls:1,vars:0,template:function(i,r){i&1&&M(0,"router-outlet")},dependencies:[al],encapsulation:2})}return t})();function nS(t){let n=t.children&&t.children.map(nS),e=n?Ee(k({},t),{children:n}):k({},t);return!e.component&&!e.loadComponent&&(n||e.loadChildren)&&e.outlet&&e.outlet!==mt&&(e.component=iS),e}function NQ(t,n,e){let i=Lf(t,n._root,e?e._root:void 0);return new Ff(i,n)}function Lf(t,n,e){if(e&&t.shouldReuseRoute(n.value,e.value.snapshot)){let i=e.value;i._futureSnapshot=n.value;let r=LQ(t,n,e);return new xo(i,r)}else{if(t.shouldAttach(n.value)){let o=t.retrieve(n.value);if(o!==null){let a=o.route;return a.value._futureSnapshot=n.value,a.children=n.children.map(s=>Lf(t,s)),a}}let i=VQ(n.value),r=n.children.map(o=>Lf(t,o));return new xo(i,r)}}function LQ(t,n,e){return n.children.map(i=>{for(let r of e.children)if(t.shouldReuseRoute(i.value,r.value.snapshot))return Lf(t,i,r);return Lf(t,i)})}function VQ(t){return new Si(new it(t.url),new it(t.params),new it(t.queryParams),new it(t.fragment),new it(t.data),t.outlet,t.component,t)}var $m=class{redirectTo;navigationBehaviorOptions;constructor(n,e){this.redirectTo=n,this.navigationBehaviorOptions=e}},UN="ngNavigationCancelingError";function Dv(t,n){let{redirectTo:e,navigationBehaviorOptions:i}=ic(n)?{redirectTo:n,navigationBehaviorOptions:void 0}:n,r=$N(!1,Vr.Redirect);return r.url=e,r.navigationBehaviorOptions=i,r}function $N(t,n){let e=new Error(`NavigationCancelingError: ${t||""}`);return e[UN]=!0,e.cancellationCode=n,e}function BQ(t){return WN(t)&&ic(t.url)}function WN(t){return!!t&&t[UN]}var jQ=(t,n,e,i)=>se(r=>(new QM(n,r.targetRouterState,r.currentRouterState,e,i).activate(t),r)),QM=class{routeReuseStrategy;futureState;currState;forwardEvent;inputBindingEnabled;constructor(n,e,i,r,o){this.routeReuseStrategy=n,this.futureState=e,this.currState=i,this.forwardEvent=r,this.inputBindingEnabled=o}activate(n){let e=this.futureState._root,i=this.currState?this.currState._root:null;this.deactivateChildRoutes(e,i,n),VM(this.futureState.root),this.activateChildRoutes(e,i,n)}deactivateChildRoutes(n,e,i){let r=Lm(e);n.children.forEach(o=>{let a=o.value.outlet;this.deactivateRoutes(o,r[a],i),delete r[a]}),Object.values(r).forEach(o=>{this.deactivateRouteAndItsChildren(o,i)})}deactivateRoutes(n,e,i){let r=n.value,o=e?e.value:null;if(r===o)if(r.component){let a=i.getContext(r.outlet);a&&this.deactivateChildRoutes(n,e,a.children)}else this.deactivateChildRoutes(n,e,i);else o&&this.deactivateRouteAndItsChildren(e,i)}deactivateRouteAndItsChildren(n,e){n.value.component&&this.routeReuseStrategy.shouldDetach(n.value.snapshot)?this.detachAndStoreRouteSubtree(n,e):this.deactivateRouteAndOutlet(n,e)}detachAndStoreRouteSubtree(n,e){let i=e.getContext(n.value.outlet),r=i&&n.value.component?i.children:e,o=Lm(n);for(let a of Object.values(o))this.deactivateRouteAndItsChildren(a,r);if(i&&i.outlet){let a=i.outlet.detach(),s=i.children.onOutletDeactivated();this.routeReuseStrategy.store(n.value.snapshot,{componentRef:a,route:n,contexts:s})}}deactivateRouteAndOutlet(n,e){let i=e.getContext(n.value.outlet),r=i&&n.value.component?i.children:e,o=Lm(n);for(let a of Object.values(o))this.deactivateRouteAndItsChildren(a,r);i&&(i.outlet&&(i.outlet.deactivate(),i.children.onOutletDeactivated()),i.attachRef=null,i.route=null)}activateChildRoutes(n,e,i){let r=Lm(e);n.children.forEach(o=>{this.activateRoutes(o,r[o.value.outlet],i),this.forwardEvent(new yv(o.value.snapshot))}),n.children.length&&this.forwardEvent(new bv(n.value.snapshot))}activateRoutes(n,e,i){let r=n.value,o=e?e.value:null;if(VM(r),r===o)if(r.component){let a=i.getOrCreateContext(r.outlet);this.activateChildRoutes(n,e,a.children)}else this.activateChildRoutes(n,e,i);else if(r.component){let a=i.getOrCreateContext(r.outlet);if(this.routeReuseStrategy.shouldAttach(r.snapshot)){let s=this.routeReuseStrategy.retrieve(r.snapshot);this.routeReuseStrategy.store(r.snapshot,null),a.children.onOutletReAttached(s.contexts),a.attachRef=s.componentRef,a.route=s.route.value,a.outlet&&a.outlet.attach(s.componentRef,s.route.value),VM(s.route.value),this.activateChildRoutes(n,null,a.children)}else a.attachRef=null,a.route=r,a.outlet&&a.outlet.activateWith(r,a.injector),this.activateChildRoutes(n,null,a.children)}else this.activateChildRoutes(n,null,i)}},Ev=class{path;route;constructor(n){this.path=n,this.route=this.path[this.path.length-1]}},jm=class{component;route;constructor(n,e){this.component=n,this.route=e}};function HQ(t,n,e){let i=t._root,r=n?n._root:null;return Tf(i,r,e,[i.value])}function zQ(t){let n=t.routeConfig?t.routeConfig.canActivateChild:null;return!n||n.length===0?null:{node:t,guards:n}}function qm(t,n){let e=Symbol(),i=n.get(t,e);return i===e?typeof t=="function"&&!gD(t)?t:n.get(t):i}function Tf(t,n,e,i,r={canDeactivateChecks:[],canActivateChecks:[]}){let o=Lm(n);return t.children.forEach(a=>{UQ(a,o[a.value.outlet],e,i.concat([a.value]),r),delete o[a.value.outlet]}),Object.entries(o).forEach(([a,s])=>Af(s,e.getContext(a),r)),r}function UQ(t,n,e,i,r={canDeactivateChecks:[],canActivateChecks:[]}){let o=t.value,a=n?n.value:null,s=e?e.getContext(t.value.outlet):null;if(a&&o.routeConfig===a.routeConfig){let l=$Q(a,o,o.routeConfig.runGuardsAndResolvers);l?r.canActivateChecks.push(new Ev(i)):(o.data=a.data,o._resolvedData=a._resolvedData),o.component?Tf(t,n,s?s.children:null,i,r):Tf(t,n,e,i,r),l&&s&&s.outlet&&s.outlet.isActivated&&r.canDeactivateChecks.push(new jm(s.outlet.component,a))}else a&&Af(n,s,r),r.canActivateChecks.push(new Ev(i)),o.component?Tf(t,null,s?s.children:null,i,r):Tf(t,null,e,i,r);return r}function $Q(t,n,e){if(typeof e=="function")return e(t,n);switch(e){case"pathParamsChange":return!Ud(t.url,n.url);case"pathParamsOrQueryParamsChange":return!Ud(t.url,n.url)||!hs(t.queryParams,n.queryParams);case"always":return!0;case"paramsOrQueryParamsChange":return!qM(t,n)||!hs(t.queryParams,n.queryParams);case"paramsChange":default:return!qM(t,n)}}function Af(t,n,e){let i=Lm(t),r=t.value;Object.entries(i).forEach(([o,a])=>{r.component?n?Af(a,n.children.getContext(o),e):Af(a,null,e):Af(a,n,e)}),r.component?n&&n.outlet&&n.outlet.isActivated?e.canDeactivateChecks.push(new jm(n.outlet.component,r)):e.canDeactivateChecks.push(new jm(null,r)):e.canDeactivateChecks.push(new jm(null,r))}function zf(t){return typeof t=="function"}function WQ(t){return typeof t=="boolean"}function GQ(t){return t&&zf(t.canLoad)}function qQ(t){return t&&zf(t.canActivate)}function YQ(t){return t&&zf(t.canActivateChild)}function QQ(t){return t&&zf(t.canDeactivate)}function KQ(t){return t&&zf(t.canMatch)}function GN(t){return t instanceof zs||t?.name==="EmptyError"}var ov=Symbol("INITIAL_VALUE");function Wm(){return je(t=>go(t.map(n=>n.pipe(ct(1),Ue(ov)))).pipe(se(n=>{for(let e of n)if(e!==!0){if(e===ov)return ov;if(e===!1||ZQ(e))return e}return!0}),ce(n=>n!==ov),ct(1)))}function ZQ(t){return ic(t)||t instanceof $m}function XQ(t,n){return It(e=>{let{targetSnapshot:i,currentSnapshot:r,guards:{canActivateChecks:o,canDeactivateChecks:a}}=e;return a.length===0&&o.length===0?Q(Ee(k({},e),{guardsResult:!0})):JQ(a,i,r,t).pipe(It(s=>s&&WQ(s)?eK(i,o,t,n):Q(s)),se(s=>Ee(k({},e),{guardsResult:s})))})}function JQ(t,n,e,i){return Ft(t).pipe(It(r=>oK(r.component,r.route,e,n,i)),bn(r=>r!==!0,!0))}function eK(t,n,e,i){return Ft(n).pipe(No(r=>bo(iK(r.route.parent,i),tK(r.route,i),rK(t,r.path,e),nK(t,r.route,e))),bn(r=>r!==!0,!0))}function tK(t,n){return t!==null&&n&&n(new vv(t)),Q(!0)}function iK(t,n){return t!==null&&n&&n(new _v(t)),Q(!0)}function nK(t,n,e){let i=n.routeConfig?n.routeConfig.canActivate:null;if(!i||i.length===0)return Q(!0);let r=i.map(o=>In(()=>{let a=Gm(n)??e,s=qm(o,a),l=qQ(s)?s.canActivate(n,t):On(a,()=>s(n,t));return ol(l).pipe(bn())}));return Q(r).pipe(Wm())}function rK(t,n,e){let i=n[n.length-1],o=n.slice(0,n.length-1).reverse().map(a=>zQ(a)).filter(a=>a!==null).map(a=>In(()=>{let s=a.guards.map(l=>{let c=Gm(a.node)??e,d=qm(l,c),p=YQ(d)?d.canActivateChild(i,t):On(c,()=>d(i,t));return ol(p).pipe(bn())});return Q(s).pipe(Wm())}));return Q(o).pipe(Wm())}function oK(t,n,e,i,r){let o=n&&n.routeConfig?n.routeConfig.canDeactivate:null;if(!o||o.length===0)return Q(!0);let a=o.map(s=>{let l=Gm(n)??r,c=qm(s,l),d=QQ(c)?c.canDeactivate(t,n,e,i):On(l,()=>c(t,n,e,i));return ol(d).pipe(bn())});return Q(a).pipe(Wm())}function aK(t,n,e,i){let r=n.canLoad;if(r===void 0||r.length===0)return Q(!0);let o=r.map(a=>{let s=qm(a,t),l=GQ(s)?s.canLoad(n,e):On(t,()=>s(n,e));return ol(l)});return Q(o).pipe(Wm(),qN(i))}function qN(t){return $w(He(n=>{if(typeof n!="boolean")throw Dv(t,n)}),se(n=>n===!0))}function sK(t,n,e,i){let r=n.canMatch;if(!r||r.length===0)return Q(!0);let o=r.map(a=>{let s=qm(a,t),l=KQ(s)?s.canMatch(n,e):On(t,()=>s(n,e));return ol(l)});return Q(o).pipe(Wm(),qN(i))}var Vf=class{segmentGroup;constructor(n){this.segmentGroup=n||null}},Bf=class extends Error{urlTree;constructor(n){super(),this.urlTree=n}};function Nm(t){return qn(new Vf(t))}function lK(t){return qn(new me(4e3,!1))}function cK(t){return qn($N(!1,Vr.GuardRejected))}var KM=class{urlSerializer;urlTree;constructor(n,e){this.urlSerializer=n,this.urlTree=e}lineralizeSegments(n,e){let i=[],r=e.root;for(;;){if(i=i.concat(r.segments),r.numberOfChildren===0)return Q(i);if(r.numberOfChildren>1||!r.children[mt])return lK(`${n.redirectTo}`);r=r.children[mt]}}applyRedirectCommands(n,e,i,r,o){return dK(e,r,o).pipe(se(a=>{if(a instanceof ps)throw new Bf(a);let s=this.applyRedirectCreateUrlTree(a,this.urlSerializer.parse(a),n,i);if(a[0]==="/")throw new Bf(s);return s}))}applyRedirectCreateUrlTree(n,e,i,r){let o=this.createSegmentGroup(n,e.root,i,r);return new ps(o,this.createQueryParams(e.queryParams,this.urlTree.queryParams),e.fragment)}createQueryParams(n,e){let i={};return Object.entries(n).forEach(([r,o])=>{if(typeof o=="string"&&o[0]===":"){let s=o.substring(1);i[r]=e[s]}else i[r]=o}),i}createSegmentGroup(n,e,i,r){let o=this.createSegments(n,e.segments,i,r),a={};return Object.entries(e.children).forEach(([s,l])=>{a[s]=this.createSegmentGroup(n,l,i,r)}),new ei(o,a)}createSegments(n,e,i,r){return e.map(o=>o.path[0]===":"?this.findPosParam(n,o,r):this.findOrReturn(o,i))}findPosParam(n,e,i){let r=i[e.path.substring(1)];if(!r)throw new me(4001,!1);return r}findOrReturn(n,e){let i=0;for(let r of e){if(r.path===n.path)return e.splice(i),r;i++}return n}};function dK(t,n,e){if(typeof t=="string")return Q(t);let i=t,{queryParams:r,fragment:o,routeConfig:a,url:s,outlet:l,params:c,data:d,title:p}=n;return ol(On(e,()=>i({params:c,data:d,queryParams:r,fragment:o,routeConfig:a,url:s,outlet:l,title:p})))}var ZM={matched:!1,consumedSegments:[],remainingSegments:[],parameters:{},positionalParamSegments:{}};function uK(t,n,e,i,r){let o=YN(t,n,e);return o.matched?(i=RQ(n,i),sK(i,n,e,r).pipe(se(a=>a===!0?o:k({},ZM)))):Q(o)}function YN(t,n,e){if(n.path==="**")return mK(e);if(n.path==="")return n.pathMatch==="full"&&(t.hasChildren()||e.length>0)?k({},ZM):{matched:!0,consumedSegments:[],remainingSegments:e,parameters:{},positionalParamSegments:{}};let r=(n.matcher||wN)(e,t,n);if(!r)return k({},ZM);let o={};Object.entries(r.posParams??{}).forEach(([s,l])=>{o[s]=l.path});let a=r.consumed.length>0?k(k({},o),r.consumed[r.consumed.length-1].parameters):o;return{matched:!0,consumedSegments:r.consumed,remainingSegments:e.slice(r.consumed.length),parameters:a,positionalParamSegments:r.posParams??{}}}function mK(t){return{matched:!0,parameters:t.length>0?EN(t).parameters:{},consumedSegments:t,remainingSegments:[],positionalParamSegments:{}}}function yN(t,n,e,i){return e.length>0&&fK(t,e,i)?{segmentGroup:new ei(n,pK(i,new ei(e,t.children))),slicedSegments:[]}:e.length===0&&gK(t,e,i)?{segmentGroup:new ei(t.segments,hK(t,e,i,t.children)),slicedSegments:e}:{segmentGroup:new ei(t.segments,t.children),slicedSegments:e}}function hK(t,n,e,i){let r={};for(let o of e)if(Sv(t,n,o)&&!i[Ia(o)]){let a=new ei([],{});r[Ia(o)]=a}return k(k({},i),r)}function pK(t,n){let e={};e[mt]=n;for(let i of t)if(i.path===""&&Ia(i)!==mt){let r=new ei([],{});e[Ia(i)]=r}return e}function fK(t,n,e){return e.some(i=>Sv(t,n,i)&&Ia(i)!==mt)}function gK(t,n,e){return e.some(i=>Sv(t,n,i))}function Sv(t,n,e){return(t.hasChildren()||n.length>0)&&e.pathMatch==="full"?!1:e.path===""}function _K(t,n,e){return n.length===0&&!t.children[e]}var XM=class{};function bK(t,n,e,i,r,o,a="emptyOnly"){return new JM(t,n,e,i,r,a,o).recognize()}var vK=31,JM=class{injector;configLoader;rootComponentType;config;urlTree;paramsInheritanceStrategy;urlSerializer;applyRedirects;absoluteRedirectCount=0;allowRedirects=!0;constructor(n,e,i,r,o,a,s){this.injector=n,this.configLoader=e,this.rootComponentType=i,this.config=r,this.urlTree=o,this.paramsInheritanceStrategy=a,this.urlSerializer=s,this.applyRedirects=new KM(this.urlSerializer,this.urlTree)}noMatchError(n){return new me(4002,`'${n.segmentGroup}'`)}recognize(){let n=yN(this.urlTree.root,[],[],this.config).segmentGroup;return this.match(n).pipe(se(({children:e,rootSnapshot:i})=>{let r=new xo(i,e),o=new Nf("",r),a=PN(i,[],this.urlTree.queryParams,this.urlTree.fragment);return a.queryParams=this.urlTree.queryParams,o.url=this.urlSerializer.serialize(a),{state:o,tree:a}}))}match(n){let e=new $d([],Object.freeze({}),Object.freeze(k({},this.urlTree.queryParams)),this.urlTree.fragment,Object.freeze({}),mt,this.rootComponentType,null,{});return this.processSegmentGroup(this.injector,this.config,n,mt,e).pipe(se(i=>({children:i,rootSnapshot:e})),ii(i=>{if(i instanceof Bf)return this.urlTree=i.urlTree,this.match(i.urlTree.root);throw i instanceof Vf?this.noMatchError(i):i}))}processSegmentGroup(n,e,i,r,o){return i.segments.length===0&&i.hasChildren()?this.processChildren(n,e,i,o):this.processSegment(n,e,i,i.segments,r,!0,o).pipe(se(a=>a instanceof xo?[a]:[]))}processChildren(n,e,i,r){let o=[];for(let a of Object.keys(i.children))a==="primary"?o.unshift(a):o.push(a);return Ft(o).pipe(No(a=>{let s=i.children[a],l=PQ(e,a);return this.processSegmentGroup(n,l,s,a,r)}),tD((a,s)=>(a.push(...s),a)),Ll(null),eD(),It(a=>{if(a===null)return Nm(i);let s=QN(a);return yK(s),Q(s)}))}processSegment(n,e,i,r,o,a,s){return Ft(e).pipe(No(l=>this.processSegmentAgainstRoute(l._injector??n,e,l,i,r,o,a,s).pipe(ii(c=>{if(c instanceof Vf)return Q(null);throw c}))),bn(l=>!!l),ii(l=>{if(GN(l))return _K(i,r,o)?Q(new XM):Nm(i);throw l}))}processSegmentAgainstRoute(n,e,i,r,o,a,s,l){return Ia(i)!==a&&(a===mt||!Sv(r,o,i))?Nm(r):i.redirectTo===void 0?this.matchSegmentAgainstRoute(n,r,i,o,a,l):this.allowRedirects&&s?this.expandSegmentAgainstRouteUsingRedirect(n,r,e,i,o,a,l):Nm(r)}expandSegmentAgainstRouteUsingRedirect(n,e,i,r,o,a,s){let{matched:l,parameters:c,consumedSegments:d,positionalParamSegments:p,remainingSegments:_}=YN(e,r,o);if(!l)return Nm(e);typeof r.redirectTo=="string"&&r.redirectTo[0]==="/"&&(this.absoluteRedirectCount++,this.absoluteRedirectCount>vK&&(this.allowRedirects=!1));let b=new $d(o,c,Object.freeze(k({},this.urlTree.queryParams)),this.urlTree.fragment,xN(r),Ia(r),r.component??r._loadedComponent??null,r,CN(r)),y=wv(b,s,this.paramsInheritanceStrategy);return b.params=Object.freeze(y.params),b.data=Object.freeze(y.data),this.applyRedirects.applyRedirectCommands(d,r.redirectTo,p,b,n).pipe(je(C=>this.applyRedirects.lineralizeSegments(r,C)),It(C=>this.processSegment(n,i,e,C.concat(_),a,!1,s)))}matchSegmentAgainstRoute(n,e,i,r,o,a){let s=uK(e,i,r,n,this.urlSerializer);return i.path==="**"&&(e.children={}),s.pipe(je(l=>l.matched?(n=i._injector??n,this.getChildConfig(n,i,r).pipe(je(({routes:c})=>{let d=i._loadedInjector??n,{parameters:p,consumedSegments:_,remainingSegments:b}=l,y=new $d(_,p,Object.freeze(k({},this.urlTree.queryParams)),this.urlTree.fragment,xN(i),Ia(i),i.component??i._loadedComponent??null,i,CN(i)),w=wv(y,a,this.paramsInheritanceStrategy);y.params=Object.freeze(w.params),y.data=Object.freeze(w.data);let{segmentGroup:C,slicedSegments:D}=yN(e,_,b,c);if(D.length===0&&C.hasChildren())return this.processChildren(d,c,C,y).pipe(se(W=>new xo(y,W)));if(c.length===0&&D.length===0)return Q(new xo(y,[]));let F=Ia(i)===o;return this.processSegment(d,c,C,D,F?mt:o,!0,y).pipe(se(W=>new xo(y,W instanceof xo?[W]:[])))}))):Nm(e)))}getChildConfig(n,e,i){return e.children?Q({routes:e.children,injector:n}):e.loadChildren?e._loadedRoutes!==void 0?Q({routes:e._loadedRoutes,injector:e._loadedInjector}):aK(n,e,i,this.urlSerializer).pipe(It(r=>r?this.configLoader.loadChildren(n,e).pipe(He(o=>{e._loadedRoutes=o.routes,e._loadedInjector=o.injector})):cK(e))):Q({routes:[],injector:n})}};function yK(t){t.sort((n,e)=>n.value.outlet===mt?-1:e.value.outlet===mt?1:n.value.outlet.localeCompare(e.value.outlet))}function xK(t){let n=t.value.routeConfig;return n&&n.path===""}function QN(t){let n=[],e=new Set;for(let i of t){if(!xK(i)){n.push(i);continue}let r=n.find(o=>i.value.routeConfig===o.value.routeConfig);r!==void 0?(r.children.push(...i.children),e.add(r)):n.push(i)}for(let i of e){let r=QN(i.children);n.push(new xo(i.value,r))}return n.filter(i=>!e.has(i))}function xN(t){return t.data||{}}function CN(t){return t.resolve||{}}function CK(t,n,e,i,r,o){return It(a=>bK(t,n,e,i,a.extractedUrl,r,o).pipe(se(({state:s,tree:l})=>Ee(k({},a),{targetSnapshot:s,urlAfterRedirects:l}))))}function wK(t,n){return It(e=>{let{targetSnapshot:i,guards:{canActivateChecks:r}}=e;if(!r.length)return Q(e);let o=new Set(r.map(l=>l.route)),a=new Set;for(let l of o)if(!a.has(l))for(let c of KN(l))a.add(c);let s=0;return Ft(a).pipe(No(l=>o.has(l)?DK(l,i,t,n):(l.data=wv(l,l.parent,t).resolve,Q(void 0))),He(()=>s++),Xu(1),It(l=>s===a.size?Q(e):Vi))})}function KN(t){let n=t.children.map(e=>KN(e)).flat();return[t,...n]}function DK(t,n,e,i){let r=t.routeConfig,o=t._resolve;return r?.title!==void 0&&!HN(r)&&(o[jf]=r.title),In(()=>(t.data=wv(t,t.parent,e).resolve,EK(o,t,n,i).pipe(se(a=>(t._resolvedData=a,t.data=k(k({},t.data),a),null)))))}function EK(t,n,e,i){let r=HM(t);if(r.length===0)return Q({});let o={};return Ft(r).pipe(It(a=>MK(t[a],n,e,i).pipe(bn(),He(s=>{if(s instanceof $m)throw Dv(new tc,s);o[a]=s}))),Xu(1),se(()=>o),ii(a=>GN(a)?Vi:qn(a)))}function MK(t,n,e,i){let r=Gm(n)??i,o=qm(t,r),a=o.resolve?o.resolve(n,e):On(r,()=>o(n,e));return ol(a)}function BM(t){return je(n=>{let e=t(n);return e?Ft(e).pipe(se(()=>n)):Q(n)})}var rS=(()=>{class t{buildTitle(e){let i,r=e.root;for(;r!==void 0;)i=this.getResolvedTitleForRoute(r)??i,r=r.children.find(o=>o.outlet===mt);return i}getResolvedTitleForRoute(e){return e.data[jf]}static \u0275fac=function(i){return new(i||t)};static \u0275prov=R({token:t,factory:()=>u(ZN),providedIn:"root"})}return t})(),ZN=(()=>{class t extends rS{title;constructor(e){super(),this.title=e}updateTitle(e){let i=this.buildTitle(e);i!==void 0&&this.title.setTitle(i)}static \u0275fac=function(i){return new(i||t)(fe(fN))};static \u0275prov=R({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),oc=new O("",{providedIn:"root",factory:()=>({})}),qd=new O(""),kv=(()=>{class t{componentLoaders=new WeakMap;childrenLoaders=new WeakMap;onLoadStartListener;onLoadEndListener;compiler=u(W1);loadComponent(e,i){if(this.componentLoaders.get(i))return this.componentLoaders.get(i);if(i._loadedComponent)return Q(i._loadedComponent);this.onLoadStartListener&&this.onLoadStartListener(i);let r=ol(On(e,()=>i.loadComponent())).pipe(se(JN),je(eL),He(a=>{this.onLoadEndListener&&this.onLoadEndListener(i),i._loadedComponent=a}),Gr(()=>{this.componentLoaders.delete(i)})),o=new Rl(r,()=>new z).pipe(Wu());return this.componentLoaders.set(i,o),o}loadChildren(e,i){if(this.childrenLoaders.get(i))return this.childrenLoaders.get(i);if(i._loadedRoutes)return Q({routes:i._loadedRoutes,injector:i._loadedInjector});this.onLoadStartListener&&this.onLoadStartListener(i);let o=XN(i,this.compiler,e,this.onLoadEndListener).pipe(Gr(()=>{this.childrenLoaders.delete(i)})),a=new Rl(o,()=>new z).pipe(Wu());return this.childrenLoaders.set(i,a),a}static \u0275fac=function(i){return new(i||t)};static \u0275prov=R({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();function XN(t,n,e,i){return ol(On(e,()=>t.loadChildren())).pipe(se(JN),je(eL),It(r=>r instanceof M0||Array.isArray(r)?Q(r):Ft(n.compileModuleAsync(r))),se(r=>{i&&i(t);let o,a,s=!1;return Array.isArray(r)?(a=r,s=!0):(o=r.create(e).injector,a=o.get(qd,[],{optional:!0,self:!0}).flat()),{routes:a.map(nS),injector:o}}))}function SK(t){return t&&typeof t=="object"&&"default"in t}function JN(t){return SK(t)?t.default:t}function eL(t){return Q(t)}var Tv=(()=>{class t{static \u0275fac=function(i){return new(i||t)};static \u0275prov=R({token:t,factory:()=>u(kK),providedIn:"root"})}return t})(),kK=(()=>{class t{shouldProcessUrl(e){return!0}extract(e){return e}merge(e,i){return e}static \u0275fac=function(i){return new(i||t)};static \u0275prov=R({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),oS=new O(""),aS=new O("");function tL(t,n,e){let i=t.get(aS),r=t.get(_e);if(!r.startViewTransition||i.skipNextTransition)return i.skipNextTransition=!1,new Promise(c=>setTimeout(c));let o,a=new Promise(c=>{o=c}),s=r.startViewTransition(()=>(o(),TK(t)));s.ready.catch(c=>{});let{onViewTransitionCreated:l}=i;return l&&On(t,()=>l({transition:s,from:n,to:e})),a}function TK(t){return new Promise(n=>{gt({read:()=>setTimeout(n)},{injector:t})})}var sS=new O(""),Uf=(()=>{class t{currentNavigation=he(null,{equal:()=>!1});currentTransition=null;lastSuccessfulNavigation=null;events=new z;transitionAbortWithErrorSubject=new z;configLoader=u(kv);environmentInjector=u(Kt);destroyRef=u(an);urlSerializer=u(rc);rootContexts=u(Gd);location=u(ms);inputBindingEnabled=u(Hf,{optional:!0})!==null;titleStrategy=u(rS);options=u(oc,{optional:!0})||{};paramsInheritanceStrategy=this.options.paramsInheritanceStrategy||"emptyOnly";urlHandlingStrategy=u(Tv);createViewTransition=u(oS,{optional:!0});navigationErrorHandler=u(sS,{optional:!0});navigationId=0;get hasRequestedNavigation(){return this.navigationId!==0}transitions;afterPreactivation=()=>Q(void 0);rootComponentType=null;destroyed=!1;constructor(){let e=r=>this.events.next(new fv(r)),i=r=>this.events.next(new gv(r));this.configLoader.onLoadEndListener=i,this.configLoader.onLoadStartListener=e,this.destroyRef.onDestroy(()=>{this.destroyed=!0})}complete(){this.transitions?.complete()}handleNavigationRequest(e){let i=++this.navigationId;Ai(()=>{this.transitions?.next(Ee(k({},e),{extractedUrl:this.urlHandlingStrategy.extract(e.rawUrl),targetSnapshot:null,targetRouterState:null,guards:{canActivateChecks:[],canDeactivateChecks:[]},guardsResult:null,abortController:new AbortController,id:i}))})}setupNavigations(e){return this.transitions=new it(null),this.transitions.pipe(ce(i=>i!==null),je(i=>{let r=!1;return Q(i).pipe(je(o=>{if(this.navigationId>i.id)return this.cancelNavigationTransition(i,"",Vr.SupersededByNewNavigation),Vi;this.currentTransition=i,this.currentNavigation.set({id:o.id,initialUrl:o.rawUrl,extractedUrl:o.extractedUrl,targetBrowserUrl:typeof o.extras.browserUrl=="string"?this.urlSerializer.parse(o.extras.browserUrl):o.extras.browserUrl,trigger:o.source,extras:o.extras,previousNavigation:this.lastSuccessfulNavigation?Ee(k({},this.lastSuccessfulNavigation),{previousNavigation:null}):null,abort:()=>o.abortController.abort()});let a=!e.navigated||this.isUpdatingInternalState()||this.isUpdatedBrowserUrl(),s=o.extras.onSameUrlNavigation??e.onSameUrlNavigation;if(!a&&s!=="reload")return this.events.next(new gs(o.id,this.urlSerializer.serialize(o.rawUrl),"",Hm.IgnoredSameUrlNavigation)),o.resolve(!1),Vi;if(this.urlHandlingStrategy.shouldProcessUrl(o.rawUrl))return Q(o).pipe(je(l=>(this.events.next(new fs(l.id,this.urlSerializer.serialize(l.extractedUrl),l.source,l.restoredState)),l.id!==this.navigationId?Vi:Promise.resolve(l))),CK(this.environmentInjector,this.configLoader,this.rootComponentType,e.config,this.urlSerializer,this.paramsInheritanceStrategy),He(l=>{i.targetSnapshot=l.targetSnapshot,i.urlAfterRedirects=l.urlAfterRedirects,this.currentNavigation.update(d=>(d.finalUrl=l.urlAfterRedirects,d));let c=new Rf(l.id,this.urlSerializer.serialize(l.extractedUrl),this.urlSerializer.serialize(l.urlAfterRedirects),l.targetSnapshot);this.events.next(c)}));if(a&&this.urlHandlingStrategy.shouldProcessUrl(o.currentRawUrl)){let{id:l,extractedUrl:c,source:d,restoredState:p,extras:_}=o,b=new fs(l,this.urlSerializer.serialize(c),d,p);this.events.next(b);let y=BN(this.rootComponentType).snapshot;return this.currentTransition=i=Ee(k({},o),{targetSnapshot:y,urlAfterRedirects:c,extras:Ee(k({},_),{skipLocationChange:!1,replaceUrl:!1})}),this.currentNavigation.update(w=>(w.finalUrl=c,w)),Q(i)}else return this.events.next(new gs(o.id,this.urlSerializer.serialize(o.extractedUrl),"",Hm.IgnoredByUrlHandlingStrategy)),o.resolve(!1),Vi}),He(o=>{let a=new uv(o.id,this.urlSerializer.serialize(o.extractedUrl),this.urlSerializer.serialize(o.urlAfterRedirects),o.targetSnapshot);this.events.next(a)}),se(o=>(this.currentTransition=i=Ee(k({},o),{guards:HQ(o.targetSnapshot,o.currentSnapshot,this.rootContexts)}),i)),XQ(this.environmentInjector,o=>this.events.next(o)),He(o=>{if(i.guardsResult=o.guardsResult,o.guardsResult&&typeof o.guardsResult!="boolean")throw Dv(this.urlSerializer,o.guardsResult);let a=new mv(o.id,this.urlSerializer.serialize(o.extractedUrl),this.urlSerializer.serialize(o.urlAfterRedirects),o.targetSnapshot,!!o.guardsResult);this.events.next(a)}),ce(o=>o.guardsResult?!0:(this.cancelNavigationTransition(o,"",Vr.GuardRejected),!1)),BM(o=>{if(o.guards.canActivateChecks.length!==0)return Q(o).pipe(He(a=>{let s=new hv(a.id,this.urlSerializer.serialize(a.extractedUrl),this.urlSerializer.serialize(a.urlAfterRedirects),a.targetSnapshot);this.events.next(s)}),je(a=>{let s=!1;return Q(a).pipe(wK(this.paramsInheritanceStrategy,this.environmentInjector),He({next:()=>s=!0,complete:()=>{s||this.cancelNavigationTransition(a,"",Vr.NoDataFromResolver)}}))}),He(a=>{let s=new pv(a.id,this.urlSerializer.serialize(a.extractedUrl),this.urlSerializer.serialize(a.urlAfterRedirects),a.targetSnapshot);this.events.next(s)}))}),BM(o=>{let a=s=>{let l=[];if(s.routeConfig?.loadComponent){let c=Gm(s)??this.environmentInjector;l.push(this.configLoader.loadComponent(c,s.routeConfig).pipe(He(d=>{s.component=d}),se(()=>{})))}for(let c of s.children)l.push(...a(c));return l};return go(a(o.targetSnapshot.root)).pipe(Ll(null),ct(1))}),BM(()=>this.afterPreactivation()),je(()=>{let{currentSnapshot:o,targetSnapshot:a}=i,s=this.createViewTransition?.(this.environmentInjector,o.root,a.root);return s?Ft(s).pipe(se(()=>i)):Q(i)}),se(o=>{let a=NQ(e.routeReuseStrategy,o.targetSnapshot,o.currentRouterState);return this.currentTransition=i=Ee(k({},o),{targetRouterState:a}),this.currentNavigation.update(s=>(s.targetRouterState=a,s)),i}),He(()=>{this.events.next(new Pf)}),jQ(this.rootContexts,e.routeReuseStrategy,o=>this.events.next(o),this.inputBindingEnabled),ct(1),we(new Fe(o=>{let a=i.abortController.signal,s=()=>o.next();return a.addEventListener("abort",s),()=>a.removeEventListener("abort",s)}).pipe(ce(()=>!r&&!i.targetRouterState),He(()=>{this.cancelNavigationTransition(i,i.abortController.signal.reason+"",Vr.Aborted)}))),He({next:o=>{r=!0,this.lastSuccessfulNavigation=Ai(this.currentNavigation),this.events.next(new xi(o.id,this.urlSerializer.serialize(o.extractedUrl),this.urlSerializer.serialize(o.urlAfterRedirects))),this.titleStrategy?.updateTitle(o.targetRouterState.snapshot),o.resolve(!0)},complete:()=>{r=!0}}),we(this.transitionAbortWithErrorSubject.pipe(He(o=>{throw o}))),Gr(()=>{r||this.cancelNavigationTransition(i,"",Vr.SupersededByNewNavigation),this.currentTransition?.id===i.id&&(this.currentNavigation.set(null),this.currentTransition=null)}),ii(o=>{if(this.destroyed)return i.resolve(!1),Vi;if(r=!0,WN(o))this.events.next(new Ko(i.id,this.urlSerializer.serialize(i.extractedUrl),o.message,o.cancellationCode)),BQ(o)?this.events.next(new Um(o.url,o.navigationBehaviorOptions)):i.resolve(!1);else{let a=new nc(i.id,this.urlSerializer.serialize(i.extractedUrl),o,i.targetSnapshot??void 0);try{let s=On(this.environmentInjector,()=>this.navigationErrorHandler?.(a));if(s instanceof $m){let{message:l,cancellationCode:c}=Dv(this.urlSerializer,s);this.events.next(new Ko(i.id,this.urlSerializer.serialize(i.extractedUrl),l,c)),this.events.next(new Um(s.redirectTo,s.navigationBehaviorOptions))}else throw this.events.next(a),o}catch(s){this.options.resolveNavigationPromiseOnError?i.resolve(!1):i.reject(s)}}return Vi}))}))}cancelNavigationTransition(e,i,r){let o=new Ko(e.id,this.urlSerializer.serialize(e.extractedUrl),i,r);this.events.next(o),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))),i=Ai(this.currentNavigation),r=i?.targetBrowserUrl??i?.extractedUrl;return e.toString()!==r?.toString()&&!i?.extras.skipLocationChange}static \u0275fac=function(i){return new(i||t)};static \u0275prov=R({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();function IK(t){return t!==Bm}var iL=(()=>{class t{static \u0275fac=function(i){return new(i||t)};static \u0275prov=R({token:t,factory:()=>u(AK),providedIn:"root"})}return t})(),Mv=class{shouldDetach(n){return!1}store(n,e){}shouldAttach(n){return!1}retrieve(n){return null}shouldReuseRoute(n,e){return n.routeConfig===e.routeConfig}},AK=(()=>{class t extends Mv{static \u0275fac=(()=>{let e;return function(r){return(e||(e=ge(t)))(r||t)}})();static \u0275prov=R({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),nL=(()=>{class t{urlSerializer=u(rc);options=u(oc,{optional:!0})||{};canceledNavigationResolution=this.options.canceledNavigationResolution||"replace";location=u(ms);urlHandlingStrategy=u(Tv);urlUpdateStrategy=this.options.urlUpdateStrategy||"deferred";currentUrlTree=new ps;getCurrentUrlTree(){return this.currentUrlTree}rawUrlTree=this.currentUrlTree;getRawUrlTree(){return this.rawUrlTree}createBrowserPath({finalUrl:e,initialUrl:i,targetBrowserUrl:r}){let o=e!==void 0?this.urlHandlingStrategy.merge(e,i):i,a=r??o;return a instanceof ps?this.urlSerializer.serialize(a):a}commitTransition({targetRouterState:e,finalUrl:i,initialUrl:r}){i&&e?(this.currentUrlTree=i,this.rawUrlTree=this.urlHandlingStrategy.merge(i,r),this.routerState=e):this.rawUrlTree=r}routerState=BN(null);getRouterState(){return this.routerState}stateMemento=this.createStateMemento();updateStateMemento(){this.stateMemento=this.createStateMemento()}createStateMemento(){return{rawUrlTree:this.rawUrlTree,currentUrlTree:this.currentUrlTree,routerState:this.routerState}}resetInternalState({finalUrl:e}){this.routerState=this.stateMemento.routerState,this.currentUrlTree=this.stateMemento.currentUrlTree,this.rawUrlTree=this.urlHandlingStrategy.merge(this.currentUrlTree,e??this.rawUrlTree)}static \u0275fac=function(i){return new(i||t)};static \u0275prov=R({token:t,factory:()=>u(OK),providedIn:"root"})}return t})(),OK=(()=>{class t extends nL{currentPageId=0;lastSuccessfulId=-1;restoredState(){return this.location.getState()}get browserPageId(){return this.canceledNavigationResolution!=="computed"?this.currentPageId:this.restoredState()?.\u0275routerPageId??this.currentPageId}registerNonRouterCurrentEntryChangeListener(e){return this.location.subscribe(i=>{i.type==="popstate"&&setTimeout(()=>{e(i.url,i.state,"popstate")})})}handleRouterEvent(e,i){e instanceof fs?this.updateStateMemento():e instanceof gs?this.commitTransition(i):e instanceof Rf?this.urlUpdateStrategy==="eager"&&(i.extras.skipLocationChange||this.setBrowserUrl(this.createBrowserPath(i),i)):e instanceof Pf?(this.commitTransition(i),this.urlUpdateStrategy==="deferred"&&!i.extras.skipLocationChange&&this.setBrowserUrl(this.createBrowserPath(i),i)):e instanceof Ko&&e.code!==Vr.SupersededByNewNavigation&&e.code!==Vr.Redirect?this.restoreHistory(i):e instanceof nc?this.restoreHistory(i,!0):e instanceof xi&&(this.lastSuccessfulId=e.id,this.currentPageId=this.browserPageId)}setBrowserUrl(e,{extras:i,id:r}){let{replaceUrl:o,state:a}=i;if(this.location.isCurrentPathEqualTo(e)||o){let s=this.browserPageId,l=k(k({},a),this.generateNgRouterState(r,s));this.location.replaceState(e,"",l)}else{let s=k(k({},a),this.generateNgRouterState(r,this.browserPageId+1));this.location.go(e,"",s)}}restoreHistory(e,i=!1){if(this.canceledNavigationResolution==="computed"){let r=this.browserPageId,o=this.currentPageId-r;o!==0?this.location.historyGo(o):this.getCurrentUrlTree()===e.finalUrl&&o===0&&(this.resetInternalState(e),this.resetUrlToCurrentUrlTree())}else this.canceledNavigationResolution==="replace"&&(i&&this.resetInternalState(e),this.resetUrlToCurrentUrlTree())}resetUrlToCurrentUrlTree(){this.location.replaceState(this.urlSerializer.serialize(this.getRawUrlTree()),"",this.generateNgRouterState(this.lastSuccessfulId,this.currentPageId))}generateNgRouterState(e,i){return this.canceledNavigationResolution==="computed"?{navigationId:e,\u0275routerPageId:i}:{navigationId:e}}static \u0275fac=(()=>{let e;return function(r){return(e||(e=ge(t)))(r||t)}})();static \u0275prov=R({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();function Iv(t,n){t.events.pipe(ce(e=>e instanceof xi||e instanceof Ko||e instanceof nc||e instanceof gs),se(e=>e instanceof xi||e instanceof gs?0:(e instanceof Ko?e.code===Vr.Redirect||e.code===Vr.SupersededByNewNavigation:!1)?2:1),ce(e=>e!==2),ct(1)).subscribe(()=>{n()})}var RK={paths:"exact",fragment:"ignored",matrixParams:"ignored",queryParams:"exact"},PK={paths:"subset",fragment:"ignored",matrixParams:"ignored",queryParams:"subset"},Re=(()=>{class t{get currentUrlTree(){return this.stateManager.getCurrentUrlTree()}get rawUrlTree(){return this.stateManager.getRawUrlTree()}disposed=!1;nonRouterCurrentEntryChangeSubscription;console=u(S0);stateManager=u(nL);options=u(oc,{optional:!0})||{};pendingTasks=u(rs);urlUpdateStrategy=this.options.urlUpdateStrategy||"deferred";navigationTransitions=u(Uf);urlSerializer=u(rc);location=u(ms);urlHandlingStrategy=u(Tv);injector=u(Kt);_events=new z;get events(){return this._events}get routerState(){return this.stateManager.getRouterState()}navigated=!1;routeReuseStrategy=u(iL);onSameUrlNavigation=this.options.onSameUrlNavigation||"ignore";config=u(qd,{optional:!0})?.flat()??[];componentInputBindingEnabled=!!u(Hf,{optional:!0});currentNavigation=this.navigationTransitions.currentNavigation.asReadonly();constructor(){this.resetConfig(this.config),this.navigationTransitions.setupNavigations(this).subscribe({error:e=>{this.console.warn(e)}}),this.subscribeToNavigationEvents()}eventsSubscription=new Te;subscribeToNavigationEvents(){let e=this.navigationTransitions.events.subscribe(i=>{try{let r=this.navigationTransitions.currentTransition,o=Ai(this.navigationTransitions.currentNavigation);if(r!==null&&o!==null){if(this.stateManager.handleRouterEvent(i,o),i instanceof Ko&&i.code!==Vr.Redirect&&i.code!==Vr.SupersededByNewNavigation)this.navigated=!0;else if(i instanceof xi)this.navigated=!0;else if(i instanceof Um){let a=i.navigationBehaviorOptions,s=this.urlHandlingStrategy.merge(i.url,r.currentRawUrl),l=k({browserUrl:r.extras.browserUrl,info:r.extras.info,skipLocationChange:r.extras.skipLocationChange,replaceUrl:r.extras.replaceUrl||this.urlUpdateStrategy==="eager"||IK(r.source)},a);this.scheduleNavigation(s,Bm,null,l,{resolve:r.resolve,reject:r.reject,promise:r.promise})}}OQ(i)&&this._events.next(i)}catch(r){this.navigationTransitions.transitionAbortWithErrorSubject.next(r)}});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),Bm,this.stateManager.restoredState())}setUpLocationChangeListener(){this.nonRouterCurrentEntryChangeSubscription??=this.stateManager.registerNonRouterCurrentEntryChangeListener((e,i,r)=>{this.navigateToSyncWithBrowser(e,r,i)})}navigateToSyncWithBrowser(e,i,r){let o={replaceUrl:!0},a=r?.navigationId?r:null;if(r){let l=k({},r);delete l.navigationId,delete l.\u0275routerPageId,Object.keys(l).length!==0&&(o.state=l)}let s=this.parseUrl(e);this.scheduleNavigation(s,i,a,o).catch(l=>{this.disposed||this.injector.get(fr)(l)})}get url(){return this.serializeUrl(this.currentUrlTree)}getCurrentNavigation(){return Ai(this.navigationTransitions.currentNavigation)}get lastSuccessfulNavigation(){return this.navigationTransitions.lastSuccessfulNavigation}resetConfig(e){this.config=e.map(nS),this.navigated=!1}ngOnDestroy(){this.dispose()}dispose(){this._events.unsubscribe(),this.navigationTransitions.complete(),this.nonRouterCurrentEntryChangeSubscription&&(this.nonRouterCurrentEntryChangeSubscription.unsubscribe(),this.nonRouterCurrentEntryChangeSubscription=void 0),this.disposed=!0,this.eventsSubscription.unsubscribe()}createUrlTree(e,i={}){let{relativeTo:r,queryParams:o,fragment:a,queryParamsHandling:s,preserveFragment:l}=i,c=l?this.currentUrlTree.fragment:a,d=null;switch(s??this.options.defaultQueryParamsHandling){case"merge":d=k(k({},this.currentUrlTree.queryParams),o);break;case"preserve":d=this.currentUrlTree.queryParams;break;default:d=o||null}d!==null&&(d=this.removeEmptyProps(d));let p;try{let _=r?r.snapshot:this.routerState.snapshot.root;p=FN(_)}catch{(typeof e[0]!="string"||e[0][0]!=="/")&&(e=[]),p=this.currentUrlTree.root}return NN(p,e,d,c??null)}navigateByUrl(e,i={skipLocationChange:!1}){let r=ic(e)?e:this.parseUrl(e),o=this.urlHandlingStrategy.merge(r,this.rawUrlTree);return this.scheduleNavigation(o,Bm,null,i)}navigate(e,i={skipLocationChange:!1}){return FK(e),this.navigateByUrl(this.createUrlTree(e,i),i)}serializeUrl(e){return this.urlSerializer.serialize(e)}parseUrl(e){try{return this.urlSerializer.parse(e)}catch{return this.console.warn(Vo(4018,!1)),this.urlSerializer.parse("/")}}isActive(e,i){let r;if(i===!0?r=k({},RK):i===!1?r=k({},PK):r=i,ic(e))return gN(this.currentUrlTree,e,r);let o=this.parseUrl(e);return gN(this.currentUrlTree,o,r)}removeEmptyProps(e){return Object.entries(e).reduce((i,[r,o])=>(o!=null&&(i[r]=o),i),{})}scheduleNavigation(e,i,r,o,a){if(this.disposed)return Promise.resolve(!1);let s,l,c;a?(s=a.resolve,l=a.reject,c=a.promise):c=new Promise((p,_)=>{s=p,l=_});let d=this.pendingTasks.add();return Iv(this,()=>{queueMicrotask(()=>this.pendingTasks.remove(d))}),this.navigationTransitions.handleNavigationRequest({source:i,restoredState:r,currentUrlTree:this.currentUrlTree,currentRawUrl:this.currentUrlTree,rawUrl:e,extras:o,resolve:s,reject:l,promise:c,currentSnapshot:this.routerState.snapshot,currentRouterState:this.routerState}),c.catch(p=>Promise.reject(p))}static \u0275fac=function(i){return new(i||t)};static \u0275prov=R({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();function FK(t){for(let n=0;n{class t{router;route;tabIndexAttribute;renderer;el;locationStrategy;reactiveHref=he(null);get href(){return Ai(this.reactiveHref)}set href(e){this.reactiveHref.set(e)}target;queryParams;fragment;queryParamsHandling;state;info;relativeTo;isAnchorElement;subscription;onChanges=new z;applicationErrorHandler=u(fr);options=u(oc,{optional:!0});constructor(e,i,r,o,a,s){this.router=e,this.route=i,this.tabIndexAttribute=r,this.renderer=o,this.el=a,this.locationStrategy=s,this.reactiveHref.set(u(new Oi("href"),{optional:!0}));let l=a.nativeElement.tagName?.toLowerCase();this.isAnchorElement=l==="a"||l==="area"||!!(typeof customElements=="object"&&customElements.get(l)?.observedAttributes?.includes?.("href")),this.isAnchorElement?this.setTabIndexIfNotOnNativeEl("0"):this.subscribeToNavigationEventsIfNecessary()}subscribeToNavigationEventsIfNecessary(){if(this.subscription!==void 0||!this.isAnchorElement)return;let e=this.preserveFragment,i=r=>r==="merge"||r==="preserve";e||=i(this.queryParamsHandling),e||=!this.queryParamsHandling&&!i(this.options?.defaultQueryParamsHandling),e&&(this.subscription=this.router.events.subscribe(r=>{r instanceof xi&&this.updateHref()}))}preserveFragment=!1;skipLocationChange=!1;replaceUrl=!1;setTabIndexIfNotOnNativeEl(e){this.tabIndexAttribute!=null||this.isAnchorElement||this.applyAttributeValue("tabindex",e)}ngOnChanges(e){this.isAnchorElement&&(this.updateHref(),this.subscribeToNavigationEventsIfNecessary()),this.onChanges.next(this)}routerLinkInput=null;set routerLink(e){e==null?(this.routerLinkInput=null,this.setTabIndexIfNotOnNativeEl(null)):(ic(e)?this.routerLinkInput=e:this.routerLinkInput=Array.isArray(e)?e:[e],this.setTabIndexIfNotOnNativeEl("0"))}onClick(e,i,r,o,a){let s=this.urlTree;if(s===null||this.isAnchorElement&&(e!==0||i||r||o||a||typeof this.target=="string"&&this.target!="_self"))return!0;let l={skipLocationChange:this.skipLocationChange,replaceUrl:this.replaceUrl,state:this.state,info:this.info};return this.router.navigateByUrl(s,l)?.catch(c=>{this.applicationErrorHandler(c)}),!this.isAnchorElement}ngOnDestroy(){this.subscription?.unsubscribe()}updateHref(){let e=this.urlTree;this.reactiveHref.set(e!==null&&this.locationStrategy?this.locationStrategy?.prepareExternalUrl(this.router.serializeUrl(e))??"":null)}applyAttributeValue(e,i){let r=this.renderer,o=this.el.nativeElement;i!==null?r.setAttribute(o,e,i):r.removeAttribute(o,e)}get urlTree(){return this.routerLinkInput===null?null:ic(this.routerLinkInput)?this.routerLinkInput:this.router.createUrlTree(this.routerLinkInput,{relativeTo:this.relativeTo!==void 0?this.relativeTo:this.route,queryParams:this.queryParams,fragment:this.fragment,queryParamsHandling:this.queryParamsHandling,preserveFragment:this.preserveFragment})}static \u0275fac=function(i){return new(i||t)(be(Re),be(Si),Jp("tabindex"),be(ze),be(Y),be(Ma))};static \u0275dir=P({type:t,selectors:[["","routerLink",""]],hostVars:2,hostBindings:function(i,r){i&1&&S("click",function(a){return r.onClick(a.button,a.ctrlKey,a.shiftKey,a.altKey,a.metaKey)}),i&2&&X("href",r.reactiveHref(),m1)("target",r.target)},inputs:{target:"target",queryParams:"queryParams",fragment:"fragment",queryParamsHandling:"queryParamsHandling",state:"state",info:"info",relativeTo:"relativeTo",preserveFragment:[2,"preserveFragment","preserveFragment",L],skipLocationChange:[2,"skipLocationChange","skipLocationChange",L],replaceUrl:[2,"replaceUrl","replaceUrl",L],routerLink:"routerLink"},features:[Ae]})}return t})(),Yd=(()=>{class t{router;element;renderer;cdr;link;links;classes=[];routerEventsSubscription;linkInputChangesSubscription;_isActive=!1;get isActive(){return this._isActive}routerLinkActiveOptions={exact:!1};ariaCurrentWhenActive;isActiveChange=new U;constructor(e,i,r,o,a){this.router=e,this.element=i,this.renderer=r,this.cdr=o,this.link=a,this.routerEventsSubscription=e.events.subscribe(s=>{s instanceof xi&&this.update()})}ngAfterContentInit(){Q(this.links.changes,Q(null)).pipe(_o()).subscribe(e=>{this.update(),this.subscribeToEachLinkOnChanges()})}subscribeToEachLinkOnChanges(){this.linkInputChangesSubscription?.unsubscribe();let e=[...this.links.toArray(),this.link].filter(i=>!!i).map(i=>i.onChanges);this.linkInputChangesSubscription=Ft(e).pipe(_o()).subscribe(i=>{this._isActive!==this.isLinkActive(this.router)(i)&&this.update()})}set routerLinkActive(e){let i=Array.isArray(e)?e:e.split(" ");this.classes=i.filter(r=>!!r)}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(i=>{e?this.renderer.addClass(this.element.nativeElement,i):this.renderer.removeClass(this.element.nativeElement,i)}),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 i=NK(this.routerLinkActiveOptions)?this.routerLinkActiveOptions:this.routerLinkActiveOptions.exact||!1;return r=>{let o=r.urlTree;return o?e.isActive(o,i):!1}}hasActiveLinks(){let e=this.isLinkActive(this.router);return this.link&&e(this.link)||this.links.some(e)}static \u0275fac=function(i){return new(i||t)(be(Re),be(Y),be(ze),be(ye),be(Vn,8))};static \u0275dir=P({type:t,selectors:[["","routerLinkActive",""]],contentQueries:function(i,r,o){if(i&1&&xe(o,Vn,5),i&2){let a;j(a=H())&&(r.links=a)}},inputs:{routerLinkActiveOptions:"routerLinkActiveOptions",ariaCurrentWhenActive:"ariaCurrentWhenActive",routerLinkActive:"routerLinkActive"},outputs:{isActiveChange:"isActiveChange"},exportAs:["routerLinkActive"],features:[Ae]})}return t})();function NK(t){return!!t.paths}var $f=class{};var rL=(()=>{class t{router;injector;preloadingStrategy;loader;subscription;constructor(e,i,r,o){this.router=e,this.injector=i,this.preloadingStrategy=r,this.loader=o}setUpPreloading(){this.subscription=this.router.events.pipe(ce(e=>e instanceof xi),No(()=>this.preload())).subscribe(()=>{})}preload(){return this.processRoutes(this.injector,this.router.config)}ngOnDestroy(){this.subscription&&this.subscription.unsubscribe()}processRoutes(e,i){let r=[];for(let o of i){o.providers&&!o._injector&&(o._injector=Dm(o.providers,e,`Route: ${o.path}`));let a=o._injector??e,s=o._loadedInjector??a;(o.loadChildren&&!o._loadedRoutes&&o.canLoad===void 0||o.loadComponent&&!o._loadedComponent)&&r.push(this.preloadConfig(a,o)),(o.children||o._loadedRoutes)&&r.push(this.processRoutes(s,o.children??o._loadedRoutes))}return Ft(r).pipe(_o())}preloadConfig(e,i){return this.preloadingStrategy.preload(i,()=>{let r;i.loadChildren&&i.canLoad===void 0?r=this.loader.loadChildren(e,i):r=Q(null);let o=r.pipe(It(a=>a===null?Q(void 0):(i._loadedRoutes=a.routes,i._loadedInjector=a.injector,this.processRoutes(a.injector??e,a.routes))));if(i.loadComponent&&!i._loadedComponent){let a=this.loader.loadComponent(e,i);return Ft([o,a]).pipe(_o())}else return o})}static \u0275fac=function(i){return new(i||t)(fe(Re),fe(Kt),fe($f),fe(kv))};static \u0275prov=R({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),cS=new O(""),oL=(()=>{class t{urlSerializer;transitions;viewportScroller;zone;options;routerEventsSubscription;scrollEventsSubscription;lastId=0;lastSource=Bm;restoredId=0;store={};constructor(e,i,r,o,a={}){this.urlSerializer=e,this.transitions=i,this.viewportScroller=r,this.zone=o,this.options=a,a.scrollPositionRestoration||="disabled",a.anchorScrolling||="disabled"}init(){this.options.scrollPositionRestoration!=="disabled"&&this.viewportScroller.setHistoryScrollRestoration("manual"),this.routerEventsSubscription=this.createScrollEvents(),this.scrollEventsSubscription=this.consumeScrollEvents()}createScrollEvents(){return this.transitions.events.subscribe(e=>{e instanceof fs?(this.store[this.lastId]=this.viewportScroller.getScrollPosition(),this.lastSource=e.navigationTrigger,this.restoredId=e.restoredState?e.restoredState.navigationId:0):e instanceof xi?(this.lastId=e.id,this.scheduleScrollEvent(e,this.urlSerializer.parse(e.urlAfterRedirects).fragment)):e instanceof gs&&e.code===Hm.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 zm))return;let i={behavior:"instant"};e.position?this.options.scrollPositionRestoration==="top"?this.viewportScroller.scrollToPosition([0,0],i):this.options.scrollPositionRestoration==="enabled"&&this.viewportScroller.scrollToPosition(e.position,i):e.anchor&&this.options.anchorScrolling==="enabled"?this.viewportScroller.scrollToAnchor(e.anchor):this.options.scrollPositionRestoration!=="disabled"&&this.viewportScroller.scrollToPosition([0,0])})}scheduleScrollEvent(e,i){this.zone.runOutsideAngular(()=>gn(this,null,function*(){yield new Promise(r=>{setTimeout(r),typeof requestAnimationFrame<"u"&&requestAnimationFrame(r)}),this.zone.run(()=>{this.transitions.events.next(new zm(e,this.lastSource==="popstate"?this.store[this.restoredId]:null,i))})}))}ngOnDestroy(){this.routerEventsSubscription?.unsubscribe(),this.scrollEventsSubscription?.unsubscribe()}static \u0275fac=function(i){Nd()};static \u0275prov=R({token:t,factory:t.\u0275fac})}return t})();function dS(t,...n){return qr([{provide:qd,multi:!0,useValue:t},[],{provide:Si,useFactory:aL,deps:[Re]},{provide:cf,multi:!0,useFactory:sL},n.map(e=>e.\u0275providers)])}function aL(t){return t.routerState.root}function Ym(t,n){return{\u0275kind:t,\u0275providers:n}}function uS(t={}){return Ym(4,[{provide:cS,useFactory:()=>{let e=u(bM),i=u(ae),r=u(Uf),o=u(rc);return new oL(o,r,e,i,t)}}])}function sL(){let t=u(de);return n=>{let e=t.get(Yn);if(n!==e.components[0])return;let i=t.get(Re),r=t.get(lL);t.get(mS)===1&&i.initialNavigation(),t.get(uL,null,{optional:!0})?.setUpPreloading(),t.get(cS,null,{optional:!0})?.init(),i.resetRootComponentType(e.componentTypes[0]),r.closed||(r.next(),r.complete(),r.unsubscribe())}}var lL=new O("",{factory:()=>new z}),mS=new O("",{providedIn:"root",factory:()=>1});function cL(){let t=[{provide:u0,useValue:!0},{provide:mS,useValue:0},Zl(()=>{let n=u(de);return n.get(rM,Promise.resolve()).then(()=>new Promise(i=>{let r=n.get(Re),o=n.get(lL);Iv(r,()=>{i(!0)}),n.get(Uf).afterPreactivation=()=>(i(!0),o.closed?Q(void 0):o),r.initialNavigation()}))})];return Ym(2,t)}function dL(){let t=[Zl(()=>{u(Re).setUpLocationChangeListener()}),{provide:mS,useValue:2}];return Ym(3,t)}var uL=new O("");function mL(t){return Ym(0,[{provide:uL,useExisting:rL},{provide:$f,useExisting:t}])}function Av(){return Ym(8,[tS,{provide:Hf,useExisting:tS}])}function hL(t){ds("NgRouterViewTransitions");let n=[{provide:oS,useValue:tL},{provide:aS,useValue:k({skipNextTransition:!!t?.skipInitialTransition},t)}];return Ym(9,n)}var pL=[ms,{provide:rc,useClass:tc},Re,Gd,{provide:Si,useFactory:aL,deps:[Re]},kv,[]],hS=(()=>{class t{constructor(){}static forRoot(e,i){return{ngModule:t,providers:[pL,[],{provide:qd,multi:!0,useValue:e},[],i?.errorHandler?{provide:sS,useValue:i.errorHandler}:[],{provide:oc,useValue:i||{}},i?.useHash?VK():BK(),LK(),i?.preloadingStrategy?mL(i.preloadingStrategy).\u0275providers:[],i?.initialNavigation?jK(i):[],i?.bindToComponentInputs?Av().\u0275providers:[],i?.enableViewTransitions?hL().\u0275providers:[],HK()]}}static forChild(e){return{ngModule:t,providers:[{provide:qd,multi:!0,useValue:e}]}}static \u0275fac=function(i){return new(i||t)};static \u0275mod=ee({type:t});static \u0275inj=J({})}return t})();function LK(){return{provide:cS,useFactory:()=>{let t=u(bM),n=u(ae),e=u(oc),i=u(Uf),r=u(rc);return e.scrollOffset&&t.setOffset(e.scrollOffset),new oL(r,i,t,n,e)}}}function VK(){return{provide:Ma,useClass:hM}}function BK(){return{provide:Ma,useClass:V0}}function jK(t){return[t.initialNavigation==="disabled"?dL().\u0275providers:[],t.initialNavigation==="enabledBlocking"?cL().\u0275providers:[]]}var lS=new O("");function HK(){return[{provide:lS,useFactory:sL},{provide:cf,multi:!0,useExisting:lS}]}var fS=class{validateSignature(n){return Promise.resolve(null)}validateAtHash(n){return Promise.resolve(!0)}},Ov=class{};var Wf=class{},zK=(()=>{let n=class n extends Wf{now(){return Date.now()}new(){return new Date}};n.\u0275fac=(()=>{let i;return function(o){return(i||(i=ge(n)))(o||n)}})(),n.\u0275prov=R({token:n,factory:n.\u0275fac});let t=n;return t})();var Rv=class{},Pv=class{},UK=(()=>{let n=class n{constructor(){this.data=new Map}getItem(i){return this.data.get(i)}removeItem(i){this.data.delete(i)}setItem(i,r){this.data.set(i,r)}};n.\u0275fac=function(r){return new(r||n)},n.\u0275prov=R({token:n,factory:n.\u0275fac});let t=n;return t})();var Gf=class{constructor(n){this.type=n}},Br=class extends Gf{constructor(n,e=null){super(n),this.info=e}},Aa=class extends Gf{constructor(n,e=null){super(n),this.info=e}},Wi=class extends Gf{constructor(n,e,i=null){super(n),this.reason=e,this.params=i}};function gL(t){let n=t.replace(/-/g,"+").replace(/_/g,"/");return decodeURIComponent(atob(n).split("").map(function(e){return"%"+("00"+e.charCodeAt(0).toString(16)).slice(-2)}).join(""))}function _L(t){return btoa(t).replace(/\+/g,"-").replace(/\//g,"_").replace(/=/g,"")}var Qm=class{constructor(n){this.clientId="",this.redirectUri="",this.postLogoutRedirectUri="",this.redirectUriAsPostLogoutRedirectUriFallback=!0,this.loginUrl="",this.scope="openid profile",this.resource="",this.rngUrl="",this.oidc=!0,this.requestAccessToken=!0,this.options=null,this.issuer="",this.logoutUrl="",this.clearHashAfterLogin=!0,this.tokenEndpoint=null,this.revocationEndpoint=null,this.customTokenParameters=[],this.userinfoEndpoint=null,this.responseType="",this.showDebugInformation=!1,this.silentRefreshRedirectUri="",this.silentRefreshMessagePrefix="",this.silentRefreshShowIFrame=!1,this.siletRefreshTimeout=1e3*20,this.silentRefreshTimeout=1e3*20,this.dummyClientSecret="",this.requireHttps="remoteOnly",this.strictDiscoveryDocumentValidation=!0,this.jwks=null,this.customQueryParams=null,this.silentRefreshIFrameName="angular-oauth-oidc-silent-refresh-iframe",this.timeoutFactor=.75,this.sessionChecksEnabled=!1,this.sessionCheckIntervall=3*1e3,this.sessionCheckIFrameUrl=null,this.sessionCheckIFrameName="angular-oauth-oidc-check-session-iframe",this.disableAtHashCheck=!1,this.skipSubjectCheck=!1,this.useIdTokenHintForSilentRefresh=!1,this.skipIssuerCheck=!1,this.nonceStateSeparator=";",this.useHttpBasicAuth=!1,this.decreaseExpirationBySec=0,this.waitForTokenInMsec=0,this.disablePKCE=!1,this.preserveRequestedRoute=!1,this.disableIdTokenTimer=!1,this.checkOrigin=!1,this.openUri=e=>{location.href=e},n&&Object.assign(this,n)}},Qd=class{encodeKey(n){return encodeURIComponent(n)}encodeValue(n){return encodeURIComponent(n)}decodeKey(n){return decodeURIComponent(n)}decodeValue(n){return decodeURIComponent(n)}},Fv=class{};var bL=(()=>{let n=class n{getHashFragmentParams(i){let r=i||window.location.hash;if(r=decodeURIComponent(r),r.indexOf("#")!==0)return{};let o=r.indexOf("?");return o>-1?r=r.substr(o+1):r=r.substr(1),this.parseQueryString(r)}parseQueryString(i){let r={},o,a,s,l,c,d;if(i===null)return r;let p=i.split("&");for(let _=0;_=64;){for(o=n[0],a=n[1],s=n[2],l=n[3],c=n[4],d=n[5],p=n[6],_=n[7],y=0;y<16;y++)w=i+y*4,t[y]=(e[w]&255)<<24|(e[w+1]&255)<<16|(e[w+2]&255)<<8|e[w+3]&255;for(y=16;y<64;y++)b=t[y-2],C=(b>>>17|b<<15)^(b>>>19|b<<13)^b>>>10,b=t[y-15],D=(b>>>7|b<<25)^(b>>>18|b<<14)^b>>>3,t[y]=(C+t[y-7]|0)+(D+t[y-16]|0);for(y=0;y<64;y++)C=(((c>>>6|c<<26)^(c>>>11|c<<21)^(c>>>25|c<<7))+(c&d^~c&p)|0)+(_+(WK[y]+t[y]|0)|0)|0,D=((o>>>2|o<<30)^(o>>>13|o<<19)^(o>>>22|o<<10))+(o&a^o&s^a&s)|0,_=p,p=d,d=c,c=l+C|0,l=s,s=a,a=o,o=C+D|0;n[0]+=o,n[1]+=a,n[2]+=s,n[3]+=l,n[4]+=c,n[5]+=d,n[6]+=p,n[7]+=_,i+=64,r-=64}return i}var gS=class{constructor(){this.digestLength=vL,this.blockSize=$K,this.state=new Int32Array(8),this.temp=new Int32Array(64),this.buffer=new Uint8Array(128),this.bufferLength=0,this.bytesHashed=0,this.finished=!1,this.reset()}reset(){return this.state[0]=1779033703,this.state[1]=3144134277,this.state[2]=1013904242,this.state[3]=2773480762,this.state[4]=1359893119,this.state[5]=2600822924,this.state[6]=528734635,this.state[7]=1541459225,this.bufferLength=0,this.bytesHashed=0,this.finished=!1,this}clean(){for(let n=0;n0){for(;this.bufferLength<64&&e>0;)this.buffer[this.bufferLength++]=n[i++],e--;this.bufferLength===64&&(pS(this.temp,this.state,this.buffer,0,64),this.bufferLength=0)}for(e>=64&&(i=pS(this.temp,this.state,n,i,e),e%=64);e>0;)this.buffer[this.bufferLength++]=n[i++],e--;return this}finish(n){if(!this.finished){let e=this.bytesHashed,i=this.bufferLength,r=e/536870912|0,o=e<<3,a=e%64<56?64:128;this.buffer[i]=128;for(let s=i+1;s>>24&255,this.buffer[a-7]=r>>>16&255,this.buffer[a-6]=r>>>8&255,this.buffer[a-5]=r>>>0&255,this.buffer[a-4]=o>>>24&255,this.buffer[a-3]=o>>>16&255,this.buffer[a-2]=o>>>8&255,this.buffer[a-1]=o>>>0&255,pS(this.temp,this.state,this.buffer,0,a),this.finished=!0}for(let e=0;e<8;e++)n[e*4+0]=this.state[e]>>>24&255,n[e*4+1]=this.state[e]>>>16&255,n[e*4+2]=this.state[e]>>>8&255,n[e*4+3]=this.state[e]>>>0&255;return this}digest(){let n=new Uint8Array(this.digestLength);return this.finish(n),n}_saveState(n){for(let e=0;e{let n=class n{calcHash(i,r){return gn(this,null,function*(){return YK(GK(qK(i)))})}toHashString2(i){let r="";for(let o of i)r+=String.fromCharCode(o);return r}toHashString(i){let r=new Uint8Array(i),o="";for(let a of r)o+=String.fromCharCode(a);return o}};n.\u0275fac=function(r){return new(r||n)},n.\u0275prov=R({token:n,factory:n.\u0275fac});let t=n;return t})(),Km=(()=>{let n=class n extends Qm{constructor(i,r,o,a,s,l,c,d,p,_){super(),this.ngZone=i,this.http=r,this.config=s,this.urlHelper=l,this.logger=c,this.crypto=d,this.dateTimeService=_,this.discoveryDocumentLoaded=!1,this.state="",this.eventsSubject=new z,this.discoveryDocumentLoadedSubject=new z,this.grantTypesSupported=[],this.inImplicitFlow=!1,this.saveNoncesInLocalStorage=!1,this.debug("angular-oauth2-oidc v10"),this.document=p,s||(s={}),this.discoveryDocumentLoaded$=this.discoveryDocumentLoadedSubject.asObservable(),this.events=this.eventsSubject.asObservable(),a&&(this.tokenValidationHandler=a),s&&this.configure(s);try{o?this.setStorage(o):typeof sessionStorage<"u"&&this.setStorage(sessionStorage)}catch(b){console.error("No OAuthStorage provided and cannot access default (sessionStorage).Consider providing a custom OAuthStorage implementation in your module.",b)}if(this.checkLocalStorageAccessable()){let b=window?.navigator?.userAgent;(b?.includes("MSIE ")||b?.includes("Trident"))&&(this.saveNoncesInLocalStorage=!0)}this.setupRefreshTimer()}checkLocalStorageAccessable(){if(typeof window>"u")return!1;let i="test";try{return typeof window.localStorage>"u"?!1:(localStorage.setItem(i,i),localStorage.removeItem(i),!0)}catch{return!1}}configure(i){Object.assign(this,new Qm,i),this.config=Object.assign({},new Qm,i),this.sessionChecksEnabled&&this.setupSessionCheck(),this.configChanged()}configChanged(){this.setupRefreshTimer()}restartSessionChecksIfStillLoggedIn(){this.hasValidIdToken()&&this.initSessionCheck()}restartRefreshTimerIfStillLoggedIn(){this.setupExpirationTimers()}setupSessionCheck(){this.events.pipe(ce(i=>i.type==="token_received")).subscribe(()=>{this.initSessionCheck()})}setupAutomaticSilentRefresh(i={},r,o=!0){let a=!0;this.clearAutomaticRefreshTimer(),this.automaticRefreshSubscription=this.events.pipe(He(s=>{s.type==="token_received"?a=!0:s.type==="logout"&&(a=!1)}),ce(s=>s.type==="token_expires"&&(r==null||r==="any"||s.info===r)),St(1e3)).subscribe(()=>{a&&this.refreshInternal(i,o).catch(()=>{this.debug("Automatic silent refresh did not work")})}),this.restartRefreshTimerIfStillLoggedIn()}refreshInternal(i,r){return!this.useSilentRefresh&&this.responseType==="code"?this.refreshToken():this.silentRefresh(i,r)}loadDiscoveryDocumentAndTryLogin(i=null){return this.loadDiscoveryDocument().then(()=>this.tryLogin(i))}loadDiscoveryDocumentAndLogin(i=null){return i=i||{},this.loadDiscoveryDocumentAndTryLogin(i).then(()=>{if(!this.hasValidIdToken()||!this.hasValidAccessToken()){let r=typeof i.state=="string"?i.state:"";return this.initLoginFlow(r),!1}else return!0})}debug(...i){this.showDebugInformation&&this.logger.debug(...i)}validateUrlFromDiscoveryDocument(i){let r=[],o=this.validateUrlForHttps(i),a=this.validateUrlAgainstIssuer(i);return o||r.push("https for all urls required. Also for urls received by discovery."),a||r.push("Every url in discovery document has to start with the issuer url.Also see property strictDiscoveryDocumentValidation."),r}validateUrlForHttps(i){if(!i)return!0;let r=i.toLowerCase();return this.requireHttps===!1||(r.match(/^http:\/\/localhost($|[:/])/)||r.match(/^http:\/\/localhost($|[:/])/))&&this.requireHttps==="remoteOnly"?!0:r.startsWith("https://")}assertUrlNotNullAndCorrectProtocol(i,r){if(!i)throw new Error(`'${r}' should not be null`);if(!this.validateUrlForHttps(i))throw new Error(`'${r}' must use HTTPS (with TLS), or config value for property 'requireHttps' must be set to 'false' and allow HTTP (without TLS).`)}validateUrlAgainstIssuer(i){return!this.strictDiscoveryDocumentValidation||!i?!0:i.toLowerCase().startsWith(this.issuer.toLowerCase())}setupRefreshTimer(){if(typeof window>"u"){this.debug("timer not supported on this plattform");return}(this.hasValidIdToken()||this.hasValidAccessToken())&&(this.clearAccessTokenTimer(),this.clearIdTokenTimer(),this.setupExpirationTimers()),this.tokenReceivedSubscription&&this.tokenReceivedSubscription.unsubscribe(),this.tokenReceivedSubscription=this.events.pipe(ce(i=>i.type==="token_received")).subscribe(()=>{this.clearAccessTokenTimer(),this.clearIdTokenTimer(),this.setupExpirationTimers()})}setupExpirationTimers(){this.hasValidAccessToken()&&this.setupAccessTokenTimer(),!this.disableIdTokenTimer&&this.hasValidIdToken()&&this.setupIdTokenTimer()}setupAccessTokenTimer(){let i=this.getAccessTokenExpiration(),r=this.getAccessTokenStoredAt(),o=this.calcTimeout(r,i);this.ngZone.runOutsideAngular(()=>{this.accessTokenTimeoutSubscription=Q(new Aa("token_expires","access_token")).pipe(ga(o)).subscribe(a=>{this.ngZone.run(()=>{this.eventsSubject.next(a)})})})}setupIdTokenTimer(){let i=this.getIdTokenExpiration(),r=this.getIdTokenStoredAt(),o=this.calcTimeout(r,i);this.ngZone.runOutsideAngular(()=>{this.idTokenTimeoutSubscription=Q(new Aa("token_expires","id_token")).pipe(ga(o)).subscribe(a=>{this.ngZone.run(()=>{this.eventsSubject.next(a)})})})}stopAutomaticRefresh(){this.clearAccessTokenTimer(),this.clearIdTokenTimer(),this.clearAutomaticRefreshTimer()}clearAccessTokenTimer(){this.accessTokenTimeoutSubscription&&this.accessTokenTimeoutSubscription.unsubscribe()}clearIdTokenTimer(){this.idTokenTimeoutSubscription&&this.idTokenTimeoutSubscription.unsubscribe()}clearAutomaticRefreshTimer(){this.automaticRefreshSubscription&&this.automaticRefreshSubscription.unsubscribe()}calcTimeout(i,r){let o=this.dateTimeService.now(),a=(r-i)*this.timeoutFactor-(o-i),s=Math.max(0,a),l=2147483647;return s>l?l:s}setStorage(i){this._storage=i,this.configChanged()}loadDiscoveryDocument(i=null){return new Promise((r,o)=>{if(i||(i=this.issuer||"",i.endsWith("/")||(i+="/"),i+=".well-known/openid-configuration"),!this.validateUrlForHttps(i)){o("issuer must use HTTPS (with TLS), or config value for property 'requireHttps' must be set to 'false' and allow HTTP (without TLS).");return}this.http.get(i).subscribe(a=>{if(!this.validateDiscoveryDocument(a)){this.eventsSubject.next(new Wi("discovery_document_validation_error",null)),o("discovery_document_validation_error");return}this.loginUrl=a.authorization_endpoint,this.logoutUrl=a.end_session_endpoint||this.logoutUrl,this.grantTypesSupported=a.grant_types_supported,this.issuer=a.issuer,this.tokenEndpoint=a.token_endpoint,this.userinfoEndpoint=a.userinfo_endpoint||this.userinfoEndpoint,this.jwksUri=a.jwks_uri,this.sessionCheckIFrameUrl=a.check_session_iframe||this.sessionCheckIFrameUrl,this.discoveryDocumentLoaded=!0,this.discoveryDocumentLoadedSubject.next(a),this.revocationEndpoint=a.revocation_endpoint||this.revocationEndpoint,this.sessionChecksEnabled&&this.restartSessionChecksIfStillLoggedIn(),this.loadJwks().then(s=>{let l={discoveryDocument:a,jwks:s},c=new Br("discovery_document_loaded",l);this.eventsSubject.next(c),r(c)}).catch(s=>{this.eventsSubject.next(new Wi("discovery_document_load_error",s)),o(s)})},a=>{this.logger.error("error loading discovery document",a),this.eventsSubject.next(new Wi("discovery_document_load_error",a)),o(a)})})}loadJwks(){return new Promise((i,r)=>{this.jwksUri?this.http.get(this.jwksUri).subscribe(o=>{this.jwks=o,i(o)},o=>{this.logger.error("error loading jwks",o),this.eventsSubject.next(new Wi("jwks_load_error",o)),r(o)}):i(null)})}validateDiscoveryDocument(i){let r;return!this.skipIssuerCheck&&i.issuer!==this.issuer?(this.logger.error("invalid issuer in discovery document","expected: "+this.issuer,"current: "+i.issuer),!1):(r=this.validateUrlFromDiscoveryDocument(i.authorization_endpoint),r.length>0?(this.logger.error("error validating authorization_endpoint in discovery document",r),!1):(r=this.validateUrlFromDiscoveryDocument(i.end_session_endpoint),r.length>0?(this.logger.error("error validating end_session_endpoint in discovery document",r),!1):(r=this.validateUrlFromDiscoveryDocument(i.token_endpoint),r.length>0&&this.logger.error("error validating token_endpoint in discovery document",r),r=this.validateUrlFromDiscoveryDocument(i.revocation_endpoint),r.length>0&&this.logger.error("error validating revocation_endpoint in discovery document",r),r=this.validateUrlFromDiscoveryDocument(i.userinfo_endpoint),r.length>0?(this.logger.error("error validating userinfo_endpoint in discovery document",r),!1):(r=this.validateUrlFromDiscoveryDocument(i.jwks_uri),r.length>0?(this.logger.error("error validating jwks_uri in discovery document",r),!1):(this.sessionChecksEnabled&&!i.check_session_iframe&&this.logger.warn("sessionChecksEnabled is activated but discovery document does not contain a check_session_iframe field"),!0)))))}fetchTokenUsingPasswordFlowAndLoadUserProfile(i,r,o=new yr){return this.fetchTokenUsingPasswordFlow(i,r,o).then(()=>this.loadUserProfile())}loadUserProfile(){if(!this.hasValidAccessToken())throw new Error("Can not load User Profile without access_token");if(!this.validateUrlForHttps(this.userinfoEndpoint))throw new Error("userinfoEndpoint must use HTTPS (with TLS), or config value for property 'requireHttps' must be set to 'false' and allow HTTP (without TLS).");return new Promise((i,r)=>{let o=new yr().set("Authorization","Bearer "+this.getAccessToken());this.http.get(this.userinfoEndpoint,{headers:o,observe:"response",responseType:"text"}).subscribe(a=>{if(this.debug("userinfo received",JSON.stringify(a)),a.headers.get("content-type").startsWith("application/json")){let s=JSON.parse(a.body),l=this.getIdentityClaims()||{};if(!this.skipSubjectCheck&&this.oidc&&(!l.sub||s.sub!==l.sub)){r(`if property oidc is true, the received user-id (sub) has to be the user-id of the user that has logged in with oidc. +if you are not using oidc but just oauth2 password flow set oidc to false`);return}s=Object.assign({},l,s),this._storage.setItem("id_token_claims_obj",JSON.stringify(s)),this.eventsSubject.next(new Br("user_profile_loaded")),i({info:s})}else this.debug("userinfo is not JSON, treating it as JWE/JWS"),this.eventsSubject.next(new Br("user_profile_loaded")),i(JSON.parse(a.body))},a=>{this.logger.error("error loading user info",a),this.eventsSubject.next(new Wi("user_profile_load_error",a)),r(a)})})}fetchTokenUsingPasswordFlow(i,r,o=new yr){let a={username:i,password:r};return this.fetchTokenUsingGrant("password",a,o)}fetchTokenUsingGrant(i,r,o=new yr){this.assertUrlNotNullAndCorrectProtocol(this.tokenEndpoint,"tokenEndpoint");let a=new Zn({encoder:new Qd}).set("grant_type",i).set("scope",this.scope);if(this.useHttpBasicAuth){let s=btoa(`${this.clientId}:${this.dummyClientSecret}`);o=o.set("Authorization","Basic "+s)}if(this.useHttpBasicAuth||(a=a.set("client_id",this.clientId)),!this.useHttpBasicAuth&&this.dummyClientSecret&&(a=a.set("client_secret",this.dummyClientSecret)),this.customQueryParams)for(let s of Object.getOwnPropertyNames(this.customQueryParams))a=a.set(s,this.customQueryParams[s]);for(let s of Object.keys(r))a=a.set(s,r[s]);return o=o.set("Content-Type","application/x-www-form-urlencoded"),new Promise((s,l)=>{this.http.post(this.tokenEndpoint,a,{headers:o}).subscribe(c=>{this.debug("tokenResponse",c),this.storeAccessTokenResponse(c.access_token,c.refresh_token,c.expires_in||this.fallbackAccessTokenExpirationTimeInSec,c.scope,this.extractRecognizedCustomParameters(c)),this.oidc&&c.id_token&&this.processIdToken(c.id_token,c.access_token).then(d=>{this.storeIdToken(d),s(c)}),this.eventsSubject.next(new Br("token_received")),s(c)},c=>{this.logger.error("Error performing ${grantType} flow",c),this.eventsSubject.next(new Wi("token_error",c)),l(c)})})}refreshToken(){return this.assertUrlNotNullAndCorrectProtocol(this.tokenEndpoint,"tokenEndpoint"),new Promise((i,r)=>{let o=new Zn({encoder:new Qd}).set("grant_type","refresh_token").set("scope",this.scope).set("refresh_token",this._storage.getItem("refresh_token")),a=new yr().set("Content-Type","application/x-www-form-urlencoded");if(this.useHttpBasicAuth){let s=btoa(`${this.clientId}:${this.dummyClientSecret}`);a=a.set("Authorization","Basic "+s)}if(this.useHttpBasicAuth||(o=o.set("client_id",this.clientId)),!this.useHttpBasicAuth&&this.dummyClientSecret&&(o=o.set("client_secret",this.dummyClientSecret)),this.customQueryParams)for(let s of Object.getOwnPropertyNames(this.customQueryParams))o=o.set(s,this.customQueryParams[s]);this.http.post(this.tokenEndpoint,o,{headers:a}).pipe(je(s=>this.oidc&&s.id_token?Ft(this.processIdToken(s.id_token,s.access_token,!0)).pipe(He(l=>this.storeIdToken(l)),se(()=>s)):Q(s))).subscribe(s=>{this.debug("refresh tokenResponse",s),this.storeAccessTokenResponse(s.access_token,s.refresh_token,s.expires_in||this.fallbackAccessTokenExpirationTimeInSec,s.scope,this.extractRecognizedCustomParameters(s)),this.eventsSubject.next(new Br("token_received")),this.eventsSubject.next(new Br("token_refreshed")),i(s)},s=>{this.logger.error("Error refreshing token",s),this.eventsSubject.next(new Wi("token_refresh_error",s)),r(s)})})}removeSilentRefreshEventListener(){this.silentRefreshPostMessageEventListener&&(window.removeEventListener("message",this.silentRefreshPostMessageEventListener),this.silentRefreshPostMessageEventListener=null)}setupSilentRefreshEventListener(){this.removeSilentRefreshEventListener(),this.silentRefreshPostMessageEventListener=i=>{let r=this.processMessageEventMessage(i);this.checkOrigin&&i.origin!==location.origin&&console.error("wrong origin requested silent refresh!"),this.tryLogin({customHashFragment:r,preventClearHashAfterLogin:!0,customRedirectUri:this.silentRefreshRedirectUri||this.redirectUri}).catch(o=>this.debug("tryLogin during silent refresh failed",o))},window.addEventListener("message",this.silentRefreshPostMessageEventListener)}silentRefresh(i={},r=!0){let o=this.getIdentityClaims()||{};if(this.useIdTokenHintForSilentRefresh&&this.hasValidIdToken()&&(i.id_token_hint=this.getIdToken()),!this.validateUrlForHttps(this.loginUrl))throw new Error("loginUrl must use HTTPS (with TLS), or config value for property 'requireHttps' must be set to 'false' and allow HTTP (without TLS).");if(typeof this.document>"u")throw new Error("silent refresh is not supported on this platform");let a=this.document.getElementById(this.silentRefreshIFrameName);a&&this.document.body.removeChild(a),this.silentRefreshSubject=o.sub;let s=this.document.createElement("iframe");s.id=this.silentRefreshIFrameName,this.setupSilentRefreshEventListener();let l=this.silentRefreshRedirectUri||this.redirectUri;this.createLoginUrl(null,null,l,r,i).then(_=>{s.setAttribute("src",_),this.silentRefreshShowIFrame||(s.style.display="none"),this.document.body.appendChild(s)});let c=this.events.pipe(ce(_=>_ instanceof Wi),bn()),d=this.events.pipe(ce(_=>_.type==="token_received"),bn()),p=Q(new Wi("silent_refresh_timeout",null)).pipe(ga(this.silentRefreshTimeout));return Ku([c,d,p]).pipe(se(_=>{if(_ instanceof Wi)throw _.type==="silent_refresh_timeout"?this.eventsSubject.next(_):(_=new Wi("silent_refresh_error",_),this.eventsSubject.next(_)),_;return _.type==="token_received"&&(_=new Br("silently_refreshed"),this.eventsSubject.next(_)),_})).toPromise()}initImplicitFlowInPopup(i){return this.initLoginFlowInPopup(i)}initLoginFlowInPopup(i){return i=i||{},this.createLoginUrl(null,null,this.silentRefreshRedirectUri,!1,{display:"popup"}).then(r=>new Promise((o,a)=>{let l=null;i.windowRef?i.windowRef&&!i.windowRef.closed&&(l=i.windowRef,l.location.href=r):l=window.open(r,"ngx-oauth2-oidc-login",this.calculatePopupFeatures(i));let c,d=w=>{this.tryLogin({customHashFragment:w,preventClearHashAfterLogin:!0,customRedirectUri:this.silentRefreshRedirectUri}).then(()=>{_(),o(!0)},C=>{_(),a(C)})},p=()=>{(!l||l.closed)&&(_(),a(new Wi("popup_closed",{})))};l?c=window.setInterval(p,500):a(new Wi("popup_blocked",{}));let _=()=>{window.clearInterval(c),window.removeEventListener("storage",y),window.removeEventListener("message",b),l!==null&&l.close(),l=null},b=w=>{let C=this.processMessageEventMessage(w);C&&C!==null?(window.removeEventListener("storage",y),d(C)):console.log("false event firing")},y=w=>{w.key==="auth_hash"&&(window.removeEventListener("message",b),d(w.newValue))};window.addEventListener("message",b),window.addEventListener("storage",y)}))}calculatePopupFeatures(i){let r=i.height||470,o=i.width||500,a=window.screenLeft+(window.outerWidth-o)/2,s=window.screenTop+(window.outerHeight-r)/2;return`location=no,toolbar=no,width=${o},height=${r},top=${s},left=${a}`}processMessageEventMessage(i){let r="#";if(this.silentRefreshMessagePrefix&&(r+=this.silentRefreshMessagePrefix),!i||!i.data||typeof i.data!="string")return;let o=i.data;if(o.startsWith(r))return"#"+o.substr(r.length)}canPerformSessionCheck(){return this.sessionChecksEnabled?this.sessionCheckIFrameUrl?this.getSessionState()?!(typeof this.document>"u"):(console.warn("sessionChecksEnabled is activated but there is no session_state"),!1):(console.warn("sessionChecksEnabled is activated but there is no sessionCheckIFrameUrl"),!1):!1}setupSessionCheckEventListener(){this.removeSessionCheckEventListener(),this.sessionCheckEventListener=i=>{let r=i.origin.toLowerCase(),o=this.issuer.toLowerCase();if(this.debug("sessionCheckEventListener"),!o.startsWith(r)){this.debug("sessionCheckEventListener","wrong origin",r,"expected",o,"event",i);return}switch(i.data){case"unchanged":this.ngZone.run(()=>{this.handleSessionUnchanged()});break;case"changed":this.ngZone.run(()=>{this.handleSessionChange()});break;case"error":this.ngZone.run(()=>{this.handleSessionError()});break}this.debug("got info from session check inframe",i)},this.ngZone.runOutsideAngular(()=>{window.addEventListener("message",this.sessionCheckEventListener)})}handleSessionUnchanged(){this.debug("session check","session unchanged"),this.eventsSubject.next(new Aa("session_unchanged"))}handleSessionChange(){this.eventsSubject.next(new Aa("session_changed")),this.stopSessionCheckTimer(),!this.useSilentRefresh&&this.responseType==="code"?this.refreshToken().then(()=>{this.debug("token refresh after session change worked")}).catch(()=>{this.debug("token refresh did not work after session changed"),this.eventsSubject.next(new Aa("session_terminated")),this.logOut(!0)}):this.silentRefreshRedirectUri?(this.silentRefresh().catch(()=>this.debug("silent refresh failed after session changed")),this.waitForSilentRefreshAfterSessionChange()):(this.eventsSubject.next(new Aa("session_terminated")),this.logOut(!0))}waitForSilentRefreshAfterSessionChange(){this.events.pipe(ce(i=>i.type==="silently_refreshed"||i.type==="silent_refresh_timeout"||i.type==="silent_refresh_error"),bn()).subscribe(i=>{i.type!=="silently_refreshed"&&(this.debug("silent refresh did not work after session changed"),this.eventsSubject.next(new Aa("session_terminated")),this.logOut(!0))})}handleSessionError(){this.stopSessionCheckTimer(),this.eventsSubject.next(new Aa("session_error"))}removeSessionCheckEventListener(){this.sessionCheckEventListener&&(window.removeEventListener("message",this.sessionCheckEventListener),this.sessionCheckEventListener=null)}initSessionCheck(){if(!this.canPerformSessionCheck())return;let i=this.document.getElementById(this.sessionCheckIFrameName);i&&this.document.body.removeChild(i);let r=this.document.createElement("iframe");r.id=this.sessionCheckIFrameName,this.setupSessionCheckEventListener();let o=this.sessionCheckIFrameUrl;r.setAttribute("src",o),r.style.display="none",this.document.body.appendChild(r),this.startSessionCheckTimer()}startSessionCheckTimer(){this.stopSessionCheckTimer(),this.ngZone.runOutsideAngular(()=>{this.sessionCheckTimer=setInterval(this.checkSession.bind(this),this.sessionCheckIntervall)})}stopSessionCheckTimer(){this.sessionCheckTimer&&(clearInterval(this.sessionCheckTimer),this.sessionCheckTimer=null)}checkSession(){let i=this.document.getElementById(this.sessionCheckIFrameName);i||this.logger.warn("checkSession did not find iframe",this.sessionCheckIFrameName);let r=this.getSessionState();r||this.stopSessionCheckTimer();let o=this.clientId+" "+r;i.contentWindow.postMessage(o,this.issuer)}createLoginUrl(){return gn(this,arguments,function*(i="",r="",o="",a=!1,s={}){let l=this,c;o?c=o:c=this.redirectUri;let d=yield this.createAndSaveNonce();if(i?i=d+this.config.nonceStateSeparator+encodeURIComponent(i):i=d,!this.requestAccessToken&&!this.oidc)throw new Error("Either requestAccessToken or oidc or both must be true");this.config.responseType?this.responseType=this.config.responseType:this.oidc&&this.requestAccessToken?this.responseType="id_token token":this.oidc&&!this.requestAccessToken?this.responseType="id_token":this.responseType="token";let p=l.loginUrl.indexOf("?")>-1?"&":"?",_=l.scope;this.oidc&&!_.match(/(^|\s)openid($|\s)/)&&(_="openid "+_);let b=l.loginUrl+p+"response_type="+encodeURIComponent(l.responseType)+"&client_id="+encodeURIComponent(l.clientId)+"&state="+encodeURIComponent(i)+"&redirect_uri="+encodeURIComponent(c)+"&scope="+encodeURIComponent(_);if(this.responseType.includes("code")&&!this.disablePKCE){let[y,w]=yield this.createChallangeVerifierPairForPKCE();this.saveNoncesInLocalStorage&&typeof window.localStorage<"u"?localStorage.setItem("PKCE_verifier",w):this._storage.setItem("PKCE_verifier",w),b+="&code_challenge="+y,b+="&code_challenge_method=S256"}r&&(b+="&login_hint="+encodeURIComponent(r)),l.resource&&(b+="&resource="+encodeURIComponent(l.resource)),l.oidc&&(b+="&nonce="+encodeURIComponent(d)),a&&(b+="&prompt=none");for(let y of Object.keys(s))b+="&"+encodeURIComponent(y)+"="+encodeURIComponent(s[y]);if(this.customQueryParams)for(let y of Object.getOwnPropertyNames(this.customQueryParams))b+="&"+y+"="+encodeURIComponent(this.customQueryParams[y]);return b})}initImplicitFlowInternal(i="",r=""){if(this.inImplicitFlow)return;if(this.inImplicitFlow=!0,!this.validateUrlForHttps(this.loginUrl))throw new Error("loginUrl must use HTTPS (with TLS), or config value for property 'requireHttps' must be set to 'false' and allow HTTP (without TLS).");let o={},a=null;typeof r=="string"?a=r:typeof r=="object"&&(o=r),this.createLoginUrl(i,a,null,!1,o).then(this.config.openUri).catch(s=>{console.error("Error in initImplicitFlow",s),this.inImplicitFlow=!1})}initImplicitFlow(i="",r=""){this.loginUrl!==""?this.initImplicitFlowInternal(i,r):this.events.pipe(ce(o=>o.type==="discovery_document_loaded")).subscribe(()=>this.initImplicitFlowInternal(i,r))}resetImplicitFlow(){this.inImplicitFlow=!1}callOnTokenReceivedIfExists(i){let r=this;if(i.onTokenReceived){let o={idClaims:r.getIdentityClaims(),idToken:r.getIdToken(),accessToken:r.getAccessToken(),state:r.state};i.onTokenReceived(o)}}storeAccessTokenResponse(i,r,o,a,s){if(this._storage.setItem("access_token",i),a&&!Array.isArray(a)?this._storage.setItem("granted_scopes",JSON.stringify(a.split(" "))):a&&Array.isArray(a)&&this._storage.setItem("granted_scopes",JSON.stringify(a)),this._storage.setItem("access_token_stored_at",""+this.dateTimeService.now()),o){let l=o*1e3,d=this.dateTimeService.new().getTime()+l;this._storage.setItem("expires_at",""+d)}r&&this._storage.setItem("refresh_token",r),s&&s.forEach((l,c)=>{this._storage.setItem(c,l)})}tryLogin(i=null){return this.config.responseType==="code"?this.tryLoginCodeFlow(i).then(()=>!0):this.tryLoginImplicitFlow(i)}parseQueryString(i){return!i||i.length===0?{}:(i.charAt(0)==="?"&&(i=i.substr(1)),this.urlHelper.parseQueryString(i))}tryLoginCodeFlow(i=null){return gn(this,null,function*(){i=i||{};let r=i.customHashFragment?i.customHashFragment.substring(1):window.location.search,o=this.getCodePartsFromUrl(r),a=o.code,s=o.state,l=o.session_state;if(!i.preventClearHashAfterLogin){let p=location.origin+location.pathname+location.search.replace(/code=[^&$]*/,"").replace(/scope=[^&$]*/,"").replace(/state=[^&$]*/,"").replace(/session_state=[^&$]*/,"").replace(/^\?&/,"?").replace(/&$/,"").replace(/^\?$/,"").replace(/&+/g,"&").replace(/\?&/,"?").replace(/\?$/,"")+location.hash;history.replaceState(null,window.name,p)}let[c,d]=this.parseState(s);if(this.state=d,o.error){this.debug("error trying to login"),this.handleLoginError(i,o);let p=new Wi("code_error",{},o);return this.eventsSubject.next(p),Promise.reject(p)}if(!i.disableNonceCheck){if(!c)return this.saveRequestedRoute(),Promise.resolve();if(!i.disableOAuth2StateCheck&&!this.validateNonce(c)){let _=new Wi("invalid_nonce_in_state",null);return this.eventsSubject.next(_),Promise.reject(_)}}return this.storeSessionState(l),a&&(yield this.getTokenFromCode(a,i),this.restoreRequestedRoute()),Promise.resolve()})}saveRequestedRoute(){this.config.preserveRequestedRoute&&this._storage.setItem("requested_route",window.location.pathname+window.location.search)}restoreRequestedRoute(){let i=this._storage.getItem("requested_route");i&&history.replaceState(null,"",window.location.origin+i)}getCodePartsFromUrl(i){return!i||i.length===0?this.urlHelper.getHashFragmentParams():(i.charAt(0)==="?"&&(i=i.substr(1)),this.urlHelper.parseQueryString(i))}getTokenFromCode(i,r){let o=new Zn({encoder:new Qd}).set("grant_type","authorization_code").set("code",i).set("redirect_uri",r.customRedirectUri||this.redirectUri);if(!this.disablePKCE){let a;this.saveNoncesInLocalStorage&&typeof window.localStorage<"u"?a=localStorage.getItem("PKCE_verifier"):a=this._storage.getItem("PKCE_verifier"),a?o=o.set("code_verifier",a):console.warn("No PKCE verifier found in oauth storage!")}return this.fetchAndProcessToken(o,r)}fetchAndProcessToken(i,r){r=r||{},this.assertUrlNotNullAndCorrectProtocol(this.tokenEndpoint,"tokenEndpoint");let o=new yr().set("Content-Type","application/x-www-form-urlencoded");if(this.useHttpBasicAuth){let a=btoa(`${this.clientId}:${this.dummyClientSecret}`);o=o.set("Authorization","Basic "+a)}return this.useHttpBasicAuth||(i=i.set("client_id",this.clientId)),!this.useHttpBasicAuth&&this.dummyClientSecret&&(i=i.set("client_secret",this.dummyClientSecret)),new Promise((a,s)=>{if(this.customQueryParams)for(let l of Object.getOwnPropertyNames(this.customQueryParams))i=i.set(l,this.customQueryParams[l]);this.http.post(this.tokenEndpoint,i,{headers:o}).subscribe(l=>{this.debug("refresh tokenResponse",l),this.storeAccessTokenResponse(l.access_token,l.refresh_token,l.expires_in||this.fallbackAccessTokenExpirationTimeInSec,l.scope,this.extractRecognizedCustomParameters(l)),this.oidc&&l.id_token?this.processIdToken(l.id_token,l.access_token,r.disableNonceCheck).then(c=>{this.storeIdToken(c),this.eventsSubject.next(new Br("token_received")),this.eventsSubject.next(new Br("token_refreshed")),a(l)}).catch(c=>{this.eventsSubject.next(new Wi("token_validation_error",c)),console.error("Error validating tokens"),console.error(c),s(c)}):(this.eventsSubject.next(new Br("token_received")),this.eventsSubject.next(new Br("token_refreshed")),a(l))},l=>{console.error("Error getting token",l),this.eventsSubject.next(new Wi("token_error",l)),s(l)})})}tryLoginImplicitFlow(i=null){i=i||{};let r;i.customHashFragment?r=this.urlHelper.getHashFragmentParams(i.customHashFragment):r=this.urlHelper.getHashFragmentParams(),this.debug("parsed url",r);let o=r.state,[a,s]=this.parseState(o);if(this.state=s,r.error){this.debug("error trying to login"),this.handleLoginError(i,r);let _=new Wi("token_error",{},r);return this.eventsSubject.next(_),Promise.reject(_)}let l=r.access_token,c=r.id_token,d=r.session_state,p=r.scope;if(!this.requestAccessToken&&!this.oidc)return Promise.reject("Either requestAccessToken or oidc (or both) must be true.");if(this.requestAccessToken&&!l||this.requestAccessToken&&!i.disableOAuth2StateCheck&&!o||this.oidc&&!c)return Promise.resolve(!1);if(this.sessionChecksEnabled&&!d&&this.logger.warn("session checks (Session Status Change Notification) were activated in the configuration but the id_token does not contain a session_state claim"),this.requestAccessToken&&!i.disableNonceCheck&&!this.validateNonce(a)){let b=new Wi("invalid_nonce_in_state",null);return this.eventsSubject.next(b),Promise.reject(b)}return this.requestAccessToken&&this.storeAccessTokenResponse(l,null,r.expires_in||this.fallbackAccessTokenExpirationTimeInSec,p),this.oidc?this.processIdToken(c,l,i.disableNonceCheck).then(_=>i.validationHandler?i.validationHandler({accessToken:l,idClaims:_.idTokenClaims,idToken:_.idToken,state:o}).then(()=>_):_).then(_=>(this.storeIdToken(_),this.storeSessionState(d),this.clearHashAfterLogin&&!i.preventClearHashAfterLogin&&this.clearLocationHash(),this.eventsSubject.next(new Br("token_received")),this.callOnTokenReceivedIfExists(i),this.inImplicitFlow=!1,!0)).catch(_=>(this.eventsSubject.next(new Wi("token_validation_error",_)),this.logger.error("Error validating tokens"),this.logger.error(_),Promise.reject(_))):(this.eventsSubject.next(new Br("token_received")),this.clearHashAfterLogin&&!i.preventClearHashAfterLogin&&this.clearLocationHash(),this.callOnTokenReceivedIfExists(i),Promise.resolve(!0))}parseState(i){let r=i,o="";if(i){let a=i.indexOf(this.config.nonceStateSeparator);a>-1&&(r=i.substr(0,a),o=i.substr(a+this.config.nonceStateSeparator.length))}return[r,o]}validateNonce(i){let r;return this.saveNoncesInLocalStorage&&typeof window.localStorage<"u"?r=localStorage.getItem("nonce"):r=this._storage.getItem("nonce"),r!==i?(console.error("Validating access_token failed, wrong state/nonce.",r,i),!1):!0}storeIdToken(i){this._storage.setItem("id_token",i.idToken),this._storage.setItem("id_token_claims_obj",i.idTokenClaimsJson),this._storage.setItem("id_token_expires_at",""+i.idTokenExpiresAt),this._storage.setItem("id_token_stored_at",""+this.dateTimeService.now())}storeSessionState(i){this._storage.setItem("session_state",i)}getSessionState(){return this._storage.getItem("session_state")}handleLoginError(i,r){i.onLoginError&&i.onLoginError(r),this.clearHashAfterLogin&&!i.preventClearHashAfterLogin&&this.clearLocationHash()}getClockSkewInMsec(i=6e5){return!this.clockSkewInSec&&this.clockSkewInSec!==0?i:this.clockSkewInSec*1e3}processIdToken(i,r,o=!1){let a=i.split("."),s=this.padBase64(a[0]),l=gL(s),c=JSON.parse(l),d=this.padBase64(a[1]),p=gL(d),_=JSON.parse(p),b;if(this.saveNoncesInLocalStorage&&typeof window.localStorage<"u"?b=localStorage.getItem("nonce"):b=this._storage.getItem("nonce"),Array.isArray(_.aud)){if(_.aud.every(W=>W!==this.clientId)){let W="Wrong audience: "+_.aud.join(",");return this.logger.warn(W),Promise.reject(W)}}else if(_.aud!==this.clientId){let W="Wrong audience: "+_.aud;return this.logger.warn(W),Promise.reject(W)}if(!_.sub){let W="No sub claim in id_token";return this.logger.warn(W),Promise.reject(W)}if(this.sessionChecksEnabled&&this.silentRefreshSubject&&this.silentRefreshSubject!==_.sub){let W=`After refreshing, we got an id_token for another user (sub). Expected sub: ${this.silentRefreshSubject}, received sub: ${_.sub}`;return this.logger.warn(W),Promise.reject(W)}if(!_.iat){let W="No iat claim in id_token";return this.logger.warn(W),Promise.reject(W)}if(!this.skipIssuerCheck&&_.iss!==this.issuer){let W="Wrong issuer: "+_.iss;return this.logger.warn(W),Promise.reject(W)}if(!o&&_.nonce!==b){let W="Wrong nonce: "+_.nonce;return this.logger.warn(W),Promise.reject(W)}if(Object.prototype.hasOwnProperty.call(this,"responseType")&&(this.responseType==="code"||this.responseType==="id_token")&&(this.disableAtHashCheck=!0),!this.disableAtHashCheck&&this.requestAccessToken&&!_.at_hash){let W="An at_hash is needed!";return this.logger.warn(W),Promise.reject(W)}let y=this.dateTimeService.now(),w=_.iat*1e3,C=_.exp*1e3,D=this.getClockSkewInMsec();if(w-D>=y||C+D-this.decreaseExpirationBySec<=y){let W="Token has expired";return console.error(W),console.error({now:y,issuedAtMSec:w,expiresAtMSec:C}),Promise.reject(W)}let F={accessToken:r,idToken:i,jwks:this.jwks,idTokenClaims:_,idTokenHeader:c,loadKeys:()=>this.loadJwks()};return this.disableAtHashCheck?this.checkSignature(F).then(()=>({idToken:i,idTokenClaims:_,idTokenClaimsJson:p,idTokenHeader:c,idTokenHeaderJson:l,idTokenExpiresAt:C})):this.checkAtHash(F).then(W=>{if(!this.disableAtHashCheck&&this.requestAccessToken&&!W){let Z="Wrong at_hash";return this.logger.warn(Z),Promise.reject(Z)}return this.checkSignature(F).then(()=>{let Z=!this.disableAtHashCheck,K={idToken:i,idTokenClaims:_,idTokenClaimsJson:p,idTokenHeader:c,idTokenHeaderJson:l,idTokenExpiresAt:C};return Z?this.checkAtHash(F).then(oe=>{if(this.requestAccessToken&&!oe){let ke="Wrong at_hash";return this.logger.warn(ke),Promise.reject(ke)}else return K}):K})})}getIdentityClaims(){let i=this._storage.getItem("id_token_claims_obj");return i?JSON.parse(i):null}getGrantedScopes(){let i=this._storage.getItem("granted_scopes");return i?JSON.parse(i):null}getIdToken(){return this._storage?this._storage.getItem("id_token"):null}padBase64(i){for(;i.length%4!==0;)i+="=";return i}getAccessToken(){return this._storage?this._storage.getItem("access_token"):null}getRefreshToken(){return this._storage?this._storage.getItem("refresh_token"):null}getAccessTokenExpiration(){return this._storage.getItem("expires_at")?parseInt(this._storage.getItem("expires_at"),10):null}getAccessTokenStoredAt(){return parseInt(this._storage.getItem("access_token_stored_at"),10)}getIdTokenStoredAt(){return parseInt(this._storage.getItem("id_token_stored_at"),10)}getIdTokenExpiration(){return this._storage.getItem("id_token_expires_at")?parseInt(this._storage.getItem("id_token_expires_at"),10):null}hasValidAccessToken(){if(this.getAccessToken()){let i=this._storage.getItem("expires_at"),r=this.dateTimeService.new();return!(i&&parseInt(i,10)-this.decreaseExpirationBySec=0&&this._storage.getItem(i)!==null?JSON.parse(this._storage.getItem(i)):null}authorizationHeader(){return"Bearer "+this.getAccessToken()}logOut(i={},r=""){let o=!1;typeof i=="boolean"&&(o=i,i={});let a=this.getIdToken();if(this._storage.removeItem("access_token"),this._storage.removeItem("id_token"),this._storage.removeItem("refresh_token"),this.saveNoncesInLocalStorage?(localStorage.removeItem("nonce"),localStorage.removeItem("PKCE_verifier")):(this._storage.removeItem("nonce"),this._storage.removeItem("PKCE_verifier")),this._storage.removeItem("expires_at"),this._storage.removeItem("id_token_claims_obj"),this._storage.removeItem("id_token_expires_at"),this._storage.removeItem("id_token_stored_at"),this._storage.removeItem("access_token_stored_at"),this._storage.removeItem("granted_scopes"),this._storage.removeItem("session_state"),this.config.customTokenParameters&&this.config.customTokenParameters.forEach(l=>this._storage.removeItem(l)),this.silentRefreshSubject=null,this.eventsSubject.next(new Aa("logout")),!this.logoutUrl||o)return;let s;if(!this.validateUrlForHttps(this.logoutUrl))throw new Error("logoutUrl must use HTTPS (with TLS), or config value for property 'requireHttps' must be set to 'false' and allow HTTP (without TLS).");if(this.logoutUrl.indexOf("{{")>-1)s=this.logoutUrl.replace(/\{\{id_token\}\}/,encodeURIComponent(a)).replace(/\{\{client_id\}\}/,encodeURIComponent(this.clientId));else{let l=new Zn({encoder:new Qd});a&&(l=l.set("id_token_hint",a));let c=this.postLogoutRedirectUri||this.redirectUriAsPostLogoutRedirectUriFallback&&this.redirectUri||"";c&&(l=l.set("post_logout_redirect_uri",c),r&&(l=l.set("state",r)));for(let d in i)l=l.set(d,i[d]);s=this.logoutUrl+(this.logoutUrl.indexOf("?")>-1?"&":"?")+l.toString()}this.config.openUri(s)}createAndSaveNonce(){let i=this;return this.createNonce().then(function(r){return i.saveNoncesInLocalStorage&&typeof window.localStorage<"u"?localStorage.setItem("nonce",r):i._storage.setItem("nonce",r),r})}ngOnDestroy(){this.clearAccessTokenTimer(),this.clearIdTokenTimer(),this.removeSilentRefreshEventListener();let i=this.document.getElementById(this.silentRefreshIFrameName);i&&i.remove(),this.stopSessionCheckTimer(),this.removeSessionCheckEventListener();let r=this.document.getElementById(this.sessionCheckIFrameName);r&&r.remove()}createNonce(){return new Promise(i=>{if(this.rngUrl)throw new Error("createNonce with rng-web-api has not been implemented so far");let r="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-._~",o=45,a="",s=typeof self>"u"?null:self.crypto||self.msCrypto;if(s){let l=new Uint8Array(o);s.getRandomValues(l),l.map||(l.map=Array.prototype.map),l=l.map(c=>r.charCodeAt(c%r.length)),a=String.fromCharCode.apply(null,l)}else for(;0o.type==="discovery_document_loaded")).subscribe(()=>this.initCodeFlowInternal(i,r))}initCodeFlowInternal(i="",r={}){if(!this.validateUrlForHttps(this.loginUrl))throw new Error("loginUrl must use HTTPS (with TLS), or config value for property 'requireHttps' must be set to 'false' and allow HTTP (without TLS).");let o={},a=null;typeof r=="string"?a=r:typeof r=="object"&&(o=r),this.createLoginUrl(i,a,null,!1,o).then(this.config.openUri).catch(s=>{console.error("Error in initAuthorizationCodeFlow"),console.error(s)})}createChallangeVerifierPairForPKCE(){return gn(this,null,function*(){if(!this.crypto)throw new Error("PKCE support for code flow needs a CryptoHander. Did you import the OAuthModule using forRoot() ?");let i=yield this.createNonce(),r=yield this.crypto.calcHash(i,"sha-256");return[_L(r),i]})}extractRecognizedCustomParameters(i){let r=new Map;return this.config.customTokenParameters&&this.config.customTokenParameters.forEach(o=>{i[o]&&r.set(o,JSON.stringify(i[o]))}),r}revokeTokenAndLogout(i={},r=!1){let o=this.revocationEndpoint,a=this.getAccessToken(),s=this.getRefreshToken();if(!a)return Promise.resolve();let l=new Zn({encoder:new Qd}),c=new yr().set("Content-Type","application/x-www-form-urlencoded");if(this.useHttpBasicAuth){let d=btoa(`${this.clientId}:${this.dummyClientSecret}`);c=c.set("Authorization","Basic "+d)}if(this.useHttpBasicAuth||(l=l.set("client_id",this.clientId)),!this.useHttpBasicAuth&&this.dummyClientSecret&&(l=l.set("client_secret",this.dummyClientSecret)),this.customQueryParams)for(let d of Object.getOwnPropertyNames(this.customQueryParams))l=l.set(d,this.customQueryParams[d]);return new Promise((d,p)=>{let _,b;if(a){let y=l.set("token",a).set("token_type_hint","access_token");_=this.http.post(o,y,{headers:c})}else _=Q(null);if(s){let y=l.set("token",s).set("token_type_hint","refresh_token");b=this.http.post(o,y,{headers:c})}else b=Q(null);r&&(_=_.pipe(ii(y=>y.status===0?Q(null):qn(y))),b=b.pipe(ii(y=>y.status===0?Q(null):qn(y)))),go([_,b]).subscribe(y=>{this.logOut(i),d(y),this.logger.info("Token successfully revoked")},y=>{this.logger.error("Error revoking token",y),this.eventsSubject.next(new Wi("token_revoke_error",y)),p(y)})})}clearLocationHash(){location.hash!=""&&(location.hash="")}};n.\u0275fac=function(r){return new(r||n)(fe(ae),fe(xr),fe(Pv,8),fe(Fv,8),fe(Qm,8),fe(bL),fe(Rv),fe(Nv,8),fe(_e),fe(Wf))},n.\u0275prov=R({token:n,factory:n.\u0275fac});let t=n;return t})(),Lv=class{},_S=class{handleError(n){return qn(n)}},KK=(()=>{let n=class n{constructor(i,r,o){this.oAuthService=i,this.errorHandler=r,this.moduleConfig=o}checkUrl(i){return this.moduleConfig.resourceServer.customUrlValidation?this.moduleConfig.resourceServer.customUrlValidation(i):this.moduleConfig.resourceServer.allowedUrls?!!this.moduleConfig.resourceServer.allowedUrls.find(r=>i.toLowerCase().startsWith(r.toLowerCase())):!0}intercept(i,r){let o=i.url.toLowerCase();return!this.moduleConfig||!this.moduleConfig.resourceServer||!this.checkUrl(o)?r.handle(i):this.moduleConfig.resourceServer.sendAccessToken?Je(Q(this.oAuthService.getAccessToken()).pipe(ce(s=>!!s)),this.oAuthService.events.pipe(ce(s=>s.type==="token_received"),Zw(this.oAuthService.waitForTokenInMsec||0),ii(()=>Q(null)),se(()=>this.oAuthService.getAccessToken()))).pipe(ct(1),It(s=>{if(s){let l="Bearer "+s,c=i.headers.set("Authorization",l);i=i.clone({headers:c})}return r.handle(i).pipe(ii(l=>this.errorHandler.handleError(l)))})):r.handle(i).pipe(ii(s=>this.errorHandler.handleError(s)))}};n.\u0275fac=function(r){return new(r||n)(fe(Km),fe(Lv),fe(Ov,8))},n.\u0275prov=R({token:n,factory:n.\u0275fac});let t=n;return t})();function ZK(){return console}function XK(){return typeof sessionStorage<"u"?sessionStorage:new UK}function yL(t=null,n=fS){return qr([Km,bL,{provide:Rv,useFactory:ZK},{provide:Pv,useFactory:XK},{provide:Fv,useClass:n},{provide:Nv,useClass:QK},{provide:Lv,useClass:_S},{provide:Ov,useValue:t},{provide:IM,useClass:KK,multi:!0},{provide:Wf,useClass:zK}])}var JK=["mat-internal-form-field",""],eZ=["*"],Zm=(()=>{class t{labelPosition;static \u0275fac=function(i){return new(i||t)};static \u0275cmp=E({type:t,selectors:[["div","mat-internal-form-field",""]],hostAttrs:[1,"mdc-form-field","mat-internal-form-field"],hostVars:2,hostBindings:function(i,r){i&2&&G("mdc-form-field--align-end",r.labelPosition==="before")},inputs:{labelPosition:"labelPosition"},attrs:JK,ngContentSelectors:eZ,decls:1,vars:0,template:function(i,r){i&1&&(Se(),ne(0))},styles:[`.mat-internal-form-field{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;display:inline-flex;align-items:center;vertical-align:middle}.mat-internal-form-field>label{margin-left:0;margin-right:auto;padding-left:4px;padding-right:0;order:0}[dir=rtl] .mat-internal-form-field>label{margin-left:auto;margin-right:0;padding-left:0;padding-right:4px}.mdc-form-field--align-end>label{margin-left:auto;margin-right:0;padding-left:0;padding-right:4px;order:-1}[dir=rtl] .mdc-form-field--align-end .mdc-form-field--align-end label{margin-left:0;margin-right:auto;padding-left:4px;padding-right:0} +`],encapsulation:2,changeDetection:0})}return t})();var bS;try{bS=typeof Intl<"u"&&Intl.v8BreakIterator}catch{bS=!1}var qe=(()=>{class t{_platformId=u(Zs);isBrowser=this._platformId?q2(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||bS)&&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(i){return new(i||t)};static \u0275prov=R({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();function sl(t){return Array.isArray(t)?t:[t]}var xL=new Set,Kd,Xm=(()=>{class t{_platform=u(qe);_nonce=u(xm,{optional:!0});_matchMedia;constructor(){this._matchMedia=this._platform.isBrowser&&window.matchMedia?window.matchMedia.bind(window):iZ}matchMedia(e){return(this._platform.WEBKIT||this._platform.BLINK)&&tZ(e,this._nonce),this._matchMedia(e)}static \u0275fac=function(i){return new(i||t)};static \u0275prov=R({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();function tZ(t,n){if(!xL.has(t))try{Kd||(Kd=document.createElement("style"),n&&Kd.setAttribute("nonce",n),Kd.setAttribute("type","text/css"),document.head.appendChild(Kd)),Kd.sheet&&(Kd.sheet.insertRule(`@media ${t} {body{ }}`,0),xL.add(t))}catch(e){console.error(e)}}function iZ(t){return{matches:t==="all"||t==="",media:t,addListener:()=>{},removeListener:()=>{}}}var ll=(()=>{class t{_mediaMatcher=u(Xm);_zone=u(ae);_queries=new Map;_destroySubject=new z;constructor(){}ngOnDestroy(){this._destroySubject.next(),this._destroySubject.complete()}isMatched(e){return CL(sl(e)).some(r=>this._registerQuery(r).mql.matches)}observe(e){let r=CL(sl(e)).map(a=>this._registerQuery(a).observable),o=go(r);return o=bo(o.pipe(ct(1)),o.pipe(Qa(1),St(0))),o.pipe(se(a=>{let s={matches:!1,breakpoints:{}};return a.forEach(({matches:l,query:c})=>{s.matches=s.matches||l,s.breakpoints[c]=l}),s}))}_registerQuery(e){if(this._queries.has(e))return this._queries.get(e);let i=this._mediaMatcher.matchMedia(e),o={observable:new Fe(a=>{let s=l=>this._zone.run(()=>a.next(l));return i.addListener(s),()=>{i.removeListener(s)}}).pipe(Ue(i),se(({matches:a})=>({query:e,matches:a})),we(this._destroySubject)),mql:i};return this._queries.set(e,o),o}static \u0275fac=function(i){return new(i||t)};static \u0275prov=R({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();function CL(t){return t.map(n=>n.split(",")).reduce((n,e)=>n.concat(e)).map(n=>n.trim())}var Vv={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 nZ=new O("MATERIAL_ANIMATIONS");var wL=null;function vS(){return u(nZ,{optional:!0})?.animationsDisabled||u(ef,{optional:!0})==="NoopAnimations"?"di-disabled":(wL??=u(Xm).matchMedia("(prefers-reduced-motion)").matches,wL?"reduced-motion":"enabled")}function Ye(){return vS()!=="enabled"}function Zd(t){return t.buttons===0||t.detail===0}function Xd(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 yS;function DL(){if(yS==null){let t=typeof document<"u"?document.head:null;yS=!!(t&&(t.createShadowRoot||t.attachShadow))}return yS}function xS(t){if(DL()){let n=t.getRootNode?t.getRootNode():null;if(typeof ShadowRoot<"u"&&ShadowRoot&&n instanceof ShadowRoot)return n}return null}function wo(){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 Xn(t){return t.composedPath?t.composedPath()[0]:t.target}var qf;function EL(){if(qf==null&&typeof window<"u")try{window.addEventListener("test",null,Object.defineProperty({},"passive",{get:()=>qf=!0}))}finally{qf=qf||!1}return qf}function ac(t){return EL()?t:!!t.capture}function Bn(t,n=0){return Bv(t)?Number(t):arguments.length===2?n:0}function Bv(t){return!isNaN(parseFloat(t))&&!isNaN(Number(t))}function jr(t){return t instanceof Y?t.nativeElement:t}var ML=new O("cdk-input-modality-detector-options"),SL={ignoreKeys:[18,17,224,91,16]},kL=650,CS={passive:!0,capture:!0},TL=(()=>{class t{_platform=u(qe);_listenerCleanups;modalityDetected;modalityChanged;get mostRecentModality(){return this._modality.value}_mostRecentTarget=null;_modality=new it(null);_options;_lastTouchMs=0;_onKeydown=e=>{this._options?.ignoreKeys?.some(i=>i===e.keyCode)||(this._modality.next("keyboard"),this._mostRecentTarget=Xn(e))};_onMousedown=e=>{Date.now()-this._lastTouchMs{if(Xd(e)){this._modality.next("keyboard");return}this._lastTouchMs=Date.now(),this._modality.next("touch"),this._mostRecentTarget=Xn(e)};constructor(){let e=u(ae),i=u(_e),r=u(ML,{optional:!0});if(this._options=k(k({},SL),r),this.modalityDetected=this._modality.pipe(Qa(1)),this.modalityChanged=this.modalityDetected.pipe(_n()),this._platform.isBrowser){let o=u(mn).createRenderer(null,null);this._listenerCleanups=e.runOutsideAngular(()=>[o.listen(i,"keydown",this._onKeydown,CS),o.listen(i,"mousedown",this._onMousedown,CS),o.listen(i,"touchstart",this._onTouchstart,CS)])}}ngOnDestroy(){this._modality.complete(),this._listenerCleanups?.forEach(e=>e())}static \u0275fac=function(i){return new(i||t)};static \u0275prov=R({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),Yf=(function(t){return t[t.IMMEDIATE=0]="IMMEDIATE",t[t.EVENTUAL=1]="EVENTUAL",t})(Yf||{}),IL=new O("cdk-focus-monitor-default-options"),jv=ac({passive:!0,capture:!0}),ti=(()=>{class t{_ngZone=u(ae);_platform=u(qe);_inputModalityDetector=u(TL);_origin=null;_lastFocusOrigin;_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=u(_e);_stopInputModalityDetector=new z;constructor(){let e=u(IL,{optional:!0});this._detectionMode=e?.detectionMode||Yf.IMMEDIATE}_rootNodeFocusAndBlurListener=e=>{let i=Xn(e);for(let r=i;r;r=r.parentElement)e.type==="focus"?this._onFocus(e,r):this._onBlur(e,r)};monitor(e,i=!1){let r=jr(e);if(!this._platform.isBrowser||r.nodeType!==1)return Q();let o=xS(r)||this._document,a=this._elementInfo.get(r);if(a)return i&&(a.checkChildren=!0),a.subject;let s={checkChildren:i,subject:new z,rootNode:o};return this._elementInfo.set(r,s),this._registerGlobalListeners(s),s.subject}stopMonitoring(e){let i=jr(e),r=this._elementInfo.get(i);r&&(r.subject.complete(),this._setClasses(i),this._elementInfo.delete(i),this._removeGlobalListeners(r))}focusVia(e,i,r){let o=jr(e),a=this._document.activeElement;o===a?this._getClosestElementsInfo(o).forEach(([s,l])=>this._originChanged(s,i,l)):(this._setOrigin(i),typeof o.focus=="function"&&o.focus(r))}ngOnDestroy(){this._elementInfo.forEach((e,i)=>this.stopMonitoring(i))}_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===Yf.EVENTUAL||!!e?.contains(this._inputModalityDetector._mostRecentTarget)}_setClasses(e,i){e.classList.toggle("cdk-focused",!!i),e.classList.toggle("cdk-touch-focused",i==="touch"),e.classList.toggle("cdk-keyboard-focused",i==="keyboard"),e.classList.toggle("cdk-mouse-focused",i==="mouse"),e.classList.toggle("cdk-program-focused",i==="program")}_setOrigin(e,i=!1){this._ngZone.runOutsideAngular(()=>{if(this._origin=e,this._originFromTouchInteraction=e==="touch"&&i,this._detectionMode===Yf.IMMEDIATE){clearTimeout(this._originTimeoutId);let r=this._originFromTouchInteraction?kL:1;this._originTimeoutId=setTimeout(()=>this._origin=null,r)}})}_onFocus(e,i){let r=this._elementInfo.get(i),o=Xn(e);!r||!r.checkChildren&&i!==o||this._originChanged(i,this._getFocusOrigin(o),r)}_onBlur(e,i){let r=this._elementInfo.get(i);!r||r.checkChildren&&e.relatedTarget instanceof Node&&i.contains(e.relatedTarget)||(this._setClasses(i),this._emitOrigin(r,null))}_emitOrigin(e,i){e.subject.observers.length&&this._ngZone.run(()=>e.subject.next(i))}_registerGlobalListeners(e){if(!this._platform.isBrowser)return;let i=e.rootNode,r=this._rootNodeFocusListenerCount.get(i)||0;r||this._ngZone.runOutsideAngular(()=>{i.addEventListener("focus",this._rootNodeFocusAndBlurListener,jv),i.addEventListener("blur",this._rootNodeFocusAndBlurListener,jv)}),this._rootNodeFocusListenerCount.set(i,r+1),++this._monitoredElementCount===1&&(this._ngZone.runOutsideAngular(()=>{this._getWindow().addEventListener("focus",this._windowFocusListener)}),this._inputModalityDetector.modalityDetected.pipe(we(this._stopInputModalityDetector)).subscribe(o=>{this._setOrigin(o,!0)}))}_removeGlobalListeners(e){let i=e.rootNode;if(this._rootNodeFocusListenerCount.has(i)){let r=this._rootNodeFocusListenerCount.get(i);r>1?this._rootNodeFocusListenerCount.set(i,r-1):(i.removeEventListener("focus",this._rootNodeFocusAndBlurListener,jv),i.removeEventListener("blur",this._rootNodeFocusAndBlurListener,jv),this._rootNodeFocusListenerCount.delete(i))}--this._monitoredElementCount||(this._getWindow().removeEventListener("focus",this._windowFocusListener),this._stopInputModalityDetector.next(),clearTimeout(this._windowFocusTimeoutId),clearTimeout(this._originTimeoutId))}_originChanged(e,i,r){this._setClasses(e,i),this._emitOrigin(r,i),this._lastFocusOrigin=i}_getClosestElementsInfo(e){let i=[];return this._elementInfo.forEach((r,o)=>{(o===e||r.checkChildren&&o.contains(e))&&i.push([o,r])}),i}_isLastInteractionFromInputLabel(e){let{_mostRecentTarget:i,mostRecentModality:r}=this._inputModalityDetector;if(r!=="mouse"||!i||i===e||e.nodeName!=="INPUT"&&e.nodeName!=="TEXTAREA"||e.disabled)return!1;let o=e.labels;if(o){for(let a=0;a{class t{_elementRef=u(Y);_focusMonitor=u(ti);_monitorSubscription;_focusOrigin=null;cdkFocusChange=new U;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(i=>{this._focusOrigin=i,this.cdkFocusChange.emit(i)})}ngOnDestroy(){this._focusMonitor.stopMonitoring(this._elementRef),this._monitorSubscription&&this._monitorSubscription.unsubscribe()}static \u0275fac=function(i){return new(i||t)};static \u0275dir=P({type:t,selectors:[["","cdkMonitorElementFocus",""],["","cdkMonitorSubtreeFocus",""]],outputs:{cdkFocusChange:"cdkFocusChange"},exportAs:["cdkMonitorFocus"]})}return t})();var Hv=new WeakMap,ht=(()=>{class t{_appRef;_injector=u(de);_environmentInjector=u(Kt);load(e){let i=this._appRef=this._appRef||this._injector.get(Yn),r=Hv.get(i);r||(r={loaders:new Set,refs:[]},Hv.set(i,r),i.onDestroy(()=>{Hv.get(i)?.refs.forEach(o=>o.destroy()),Hv.delete(i)})),r.loaders.has(e)||(r.loaders.add(e),r.refs.push(Am(e,{environmentInjector:this._environmentInjector})))}static \u0275fac=function(i){return new(i||t)};static \u0275prov=R({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();var Jr=(()=>{class t{static \u0275fac=function(i){return new(i||t)};static \u0275cmp=E({type:t,selectors:[["ng-component"]],exportAs:["cdkVisuallyHidden"],decls:0,vars:0,template:function(i,r){},styles:[`.cdk-visually-hidden{border:0;clip:rect(0 0 0 0);height:1px;margin:-1px;overflow:hidden;padding:0;position:absolute;width:1px;white-space:nowrap;outline:0;-webkit-appearance:none;-moz-appearance:none;left:0}[dir=rtl] .cdk-visually-hidden{left:auto;right:0} +`],encapsulation:2,changeDetection:0})}return t})();function rZ(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(i){return new(i||t)};static \u0275prov=R({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),OL=(()=>{class t{_mutationObserverFactory=u(AL);_observedElements=new Map;_ngZone=u(ae);constructor(){}ngOnDestroy(){this._observedElements.forEach((e,i)=>this._cleanupObserver(i))}observe(e){let i=jr(e);return new Fe(r=>{let a=this._observeElement(i).pipe(se(s=>s.filter(l=>!rZ(l))),ce(s=>!!s.length)).subscribe(s=>{this._ngZone.run(()=>{r.next(s)})});return()=>{a.unsubscribe(),this._unobserveElement(i)}})}_observeElement(e){return this._ngZone.runOutsideAngular(()=>{if(this._observedElements.has(e))this._observedElements.get(e).count++;else{let i=new z,r=this._mutationObserverFactory.create(o=>i.next(o));r&&r.observe(e,{characterData:!0,childList:!0,subtree:!0}),this._observedElements.set(e,{observer:r,stream:i,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:i,stream:r}=this._observedElements.get(e);i&&i.disconnect(),r.complete(),this._observedElements.delete(e)}}static \u0275fac=function(i){return new(i||t)};static \u0275prov=R({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),Kf=(()=>{class t{_contentObserver=u(OL);_elementRef=u(Y);event=new U;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=Bn(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(St(this.debounce)):e).subscribe(this.event)}_unsubscribe(){this._currentSubscription?.unsubscribe()}static \u0275fac=function(i){return new(i||t)};static \u0275dir=P({type:t,selectors:[["","cdkObserveContent",""]],inputs:{disabled:[2,"cdkObserveContentDisabled","disabled",L],debounce:"debounce"},outputs:{event:"cdkObserveContent"},exportAs:["cdkObserveContent"]})}return t})(),Jm=(()=>{class t{static \u0275fac=function(i){return new(i||t)};static \u0275mod=ee({type:t});static \u0275inj=J({providers:[AL]})}return t})();var lc=(()=>{class t{_platform=u(qe);constructor(){}isDisabled(e){return e.hasAttribute("disabled")}isVisible(e){return aZ(e)&&getComputedStyle(e).visibility==="visible"}isTabbable(e){if(!this._platform.isBrowser)return!1;let i=oZ(pZ(e));if(i&&(RL(i)===-1||!this.isVisible(i)))return!1;let r=e.nodeName.toLowerCase(),o=RL(e);return e.hasAttribute("contenteditable")?o!==-1:r==="iframe"||r==="object"||this._platform.WEBKIT&&this._platform.IOS&&!mZ(e)?!1:r==="audio"?e.hasAttribute("controls")?o!==-1:!1:r==="video"?o===-1?!1:o!==null?!0:this._platform.FIREFOX||e.hasAttribute("controls"):e.tabIndex>=0}isFocusable(e,i){return hZ(e)&&!this.isDisabled(e)&&(i?.ignoreVisibility||this.isVisible(e))}static \u0275fac=function(i){return new(i||t)};static \u0275prov=R({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();function oZ(t){try{return t.frameElement}catch{return null}}function aZ(t){return!!(t.offsetWidth||t.offsetHeight||typeof t.getClientRects=="function"&&t.getClientRects().length)}function sZ(t){let n=t.nodeName.toLowerCase();return n==="input"||n==="select"||n==="button"||n==="textarea"}function lZ(t){return dZ(t)&&t.type=="hidden"}function cZ(t){return uZ(t)&&t.hasAttribute("href")}function dZ(t){return t.nodeName.toLowerCase()=="input"}function uZ(t){return t.nodeName.toLowerCase()=="a"}function NL(t){if(!t.hasAttribute("tabindex")||t.tabIndex===void 0)return!1;let n=t.getAttribute("tabindex");return!!(n&&!isNaN(parseInt(n,10)))}function RL(t){if(!NL(t))return null;let n=parseInt(t.getAttribute("tabindex")||"",10);return isNaN(n)?-1:n}function mZ(t){let n=t.nodeName.toLowerCase(),e=n==="input"&&t.type;return e==="text"||e==="password"||n==="select"||n==="textarea"}function hZ(t){return lZ(t)?!1:sZ(t)||cZ(t)||t.hasAttribute("contenteditable")||NL(t)}function pZ(t){return t.ownerDocument&&t.ownerDocument.defaultView||window}var zv=class{_element;_checker;_ngZone;_document;_injector;_startAnchor;_endAnchor;_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,i,r,o=!1,a){this._element=n,this._checker=e,this._ngZone=i,this._document=r,this._injector=a,o||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 i=this._getFirstTabbableElement(e);return i?.focus(n),!!i}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 i=0;i=0;i--){let r=e[i].nodeType===this._document.ELEMENT_NODE?this._getLastTabbableElement(e[i]):null;if(r)return r}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?gt(n,{injector:this._injector}):setTimeout(n)}},eh=(()=>{class t{_checker=u(lc);_ngZone=u(ae);_document=u(_e);_injector=u(de);constructor(){u(ht).load(Jr)}create(e,i=!1){return new zv(e,this._checker,this._ngZone,this._document,i,this._injector)}static \u0275fac=function(i){return new(i||t)};static \u0275prov=R({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),DS=(()=>{class t{_elementRef=u(Y);_focusTrapFactory=u(eh);focusTrap;_previouslyFocusedElement=null;get enabled(){return this.focusTrap?.enabled||!1}set enabled(e){this.focusTrap&&(this.focusTrap.enabled=e)}autoCapture;constructor(){u(qe).isBrowser&&(this.focusTrap=this._focusTrapFactory.create(this._elementRef.nativeElement,!0))}ngOnDestroy(){this.focusTrap?.destroy(),this._previouslyFocusedElement&&(this._previouslyFocusedElement.focus(),this._previouslyFocusedElement=null)}ngAfterContentInit(){this.focusTrap?.attachAnchors(),this.autoCapture&&this._captureFocus()}ngDoCheck(){this.focusTrap&&!this.focusTrap.hasAttached()&&this.focusTrap.attachAnchors()}ngOnChanges(e){let i=e.autoCapture;i&&!i.firstChange&&this.autoCapture&&this.focusTrap?.hasAttached()&&this._captureFocus()}_captureFocus(){this._previouslyFocusedElement=wo(),this.focusTrap?.focusInitialElementWhenReady()}static \u0275fac=function(i){return new(i||t)};static \u0275dir=P({type:t,selectors:[["","cdkTrapFocus",""]],inputs:{enabled:[2,"cdkTrapFocus","enabled",L],autoCapture:[2,"cdkTrapFocusAutoCapture","autoCapture",L]},exportAs:["cdkTrapFocus"],features:[Ae]})}return t})(),LL=new O("liveAnnouncerElement",{providedIn:"root",factory:VL});function VL(){return null}var BL=new O("LIVE_ANNOUNCER_DEFAULT_OPTIONS"),fZ=0,Zf=(()=>{class t{_ngZone=u(ae);_defaultOptions=u(BL,{optional:!0});_liveElement;_document=u(_e);_previousTimeout;_currentPromise;_currentResolve;constructor(){let e=u(LL,{optional:!0});this._liveElement=e||this._createLiveElement()}announce(e,...i){let r=this._defaultOptions,o,a;return i.length===1&&typeof i[0]=="number"?a=i[0]:[o,a]=i,this.clear(),clearTimeout(this._previousTimeout),o||(o=r&&r.politeness?r.politeness:"polite"),a==null&&r&&(a=r.duration),this._liveElement.setAttribute("aria-live",o),this._liveElement.id&&this._exposeAnnouncerToModals(this._liveElement.id),this._ngZone.runOutsideAngular(()=>(this._currentPromise||(this._currentPromise=new Promise(s=>this._currentResolve=s)),clearTimeout(this._previousTimeout),this._previousTimeout=setTimeout(()=>{this._liveElement.textContent=e,typeof a=="number"&&(this._previousTimeout=setTimeout(()=>this.clear(),a)),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",i=this._document.getElementsByClassName(e),r=this._document.createElement("div");for(let o=0;o .cdk-overlay-container [aria-modal="true"]');for(let r=0;r{class t{_platform=u(qe);_hasCheckedHighContrastMode;_document=u(_e);_breakpointSubscription;constructor(){this._breakpointSubscription=u(ll).observe("(forced-colors: active)").subscribe(()=>{this._hasCheckedHighContrastMode&&(this._hasCheckedHighContrastMode=!1,this._applyBodyHighContrastModeCssClasses())})}getHighContrastMode(){if(!this._platform.isBrowser)return sc.NONE;let e=this._document.createElement("div");e.style.backgroundColor="rgb(1,2,3)",e.style.position="absolute",this._document.body.appendChild(e);let i=this._document.defaultView||window,r=i&&i.getComputedStyle?i.getComputedStyle(e):null,o=(r&&r.backgroundColor||"").replace(/ /g,"");switch(e.remove(),o){case"rgb(0,0,0)":case"rgb(45,50,54)":case"rgb(32,32,32)":return sc.WHITE_ON_BLACK;case"rgb(255,255,255)":case"rgb(255,250,239)":return sc.BLACK_ON_WHITE}return sc.NONE}ngOnDestroy(){this._breakpointSubscription.unsubscribe()}_applyBodyHighContrastModeCssClasses(){if(!this._hasCheckedHighContrastMode&&this._platform.isBrowser&&this._document.body){let e=this._document.body.classList;e.remove(wS,PL,FL),this._hasCheckedHighContrastMode=!0;let i=this.getHighContrastMode();i===sc.BLACK_ON_WHITE?e.add(wS,PL):i===sc.WHITE_ON_BLACK&&e.add(wS,FL)}}static \u0275fac=function(i){return new(i||t)};static \u0275prov=R({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),cl=(()=>{class t{constructor(){u(Uv)._applyBodyHighContrastModeCssClasses()}static \u0275fac=function(i){return new(i||t)};static \u0275mod=ee({type:t});static \u0275inj=J({imports:[Jm]})}return t})();var ES={},Ze=(()=>{class t{_appId=u(Ql);getId(e){return this._appId!=="ng"&&(e+=this._appId),ES.hasOwnProperty(e)||(ES[e]=0),`${e}${ES[e]++}`}static \u0275fac=function(i){return new(i||t)};static \u0275prov=R({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();var gZ=200,$v=class{_letterKeyStream=new z;_items=[];_selectedItemIndex=-1;_pressedLetters=[];_skipPredicateFn;_selectedItem=new z;selectedItem=this._selectedItem;constructor(n,e){let i=typeof e?.debounceInterval=="number"?e.debounceInterval:gZ;e?.skipPredicate&&(this._skipPredicateFn=e.skipPredicate),this.setItems(n),this._setupKeyHandler(i)}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(He(e=>this._pressedLetters.push(e)),St(n),ce(()=>this._pressedLetters.length>0),se(()=>this._pressedLetters.join("").toLocaleUpperCase())).subscribe(e=>{for(let i=1;it[e]):t.altKey||t.shiftKey||t.ctrlKey||t.metaKey}var th=class{_items;_activeItemIndex=he(-1);_activeItem=he(null);_wrap=!1;_typeaheadSubscription=Te.EMPTY;_itemChangesSubscription;_vertical=!0;_horizontal;_allowedModifierKeys=[];_homeAndEnd=!1;_pageUpAndDown={enabled:!1,delta:10};_effectRef;_typeahead;_skipPredicateFn=n=>n.disabled;constructor(n,e){this._items=n,n instanceof gr?this._itemChangesSubscription=n.changes.subscribe(i=>this._itemsChanged(i.toArray())):ns(n)&&(this._effectRef=Lr(()=>this._itemsChanged(n()),{injector:e}))}tabOut=new z;change=new z;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 $v(e,{debounceInterval:typeof n=="number"?n:void 0,skipPredicate:i=>this._skipPredicateFn(i)}),this._typeaheadSubscription=this._typeahead.selectedItem.subscribe(i=>{this.setActiveItem(i)}),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,r=["altKey","ctrlKey","metaKey","shiftKey"].every(o=>!n[o]||this._allowedModifierKeys.indexOf(o)>-1);switch(e){case 9:this.tabOut.next();return;case 40:if(this._vertical&&r){this.setNextItemActive();break}else return;case 38:if(this._vertical&&r){this.setPreviousItemActive();break}else return;case 39:if(this._horizontal&&r){this._horizontal==="rtl"?this.setPreviousItemActive():this.setNextItemActive();break}else return;case 37:if(this._horizontal&&r){this._horizontal==="rtl"?this.setNextItemActive():this.setPreviousItemActive();break}else return;case 36:if(this._homeAndEnd&&r){this.setFirstItemActive();break}else return;case 35:if(this._homeAndEnd&&r){this.setLastItemActive();break}else return;case 33:if(this._pageUpAndDown.enabled&&r){let o=this._activeItemIndex()-this._pageUpAndDown.delta;this._setActiveItemByIndex(o>0?o:0,1);break}else return;case 34:if(this._pageUpAndDown.enabled&&r){let o=this._activeItemIndex()+this._pageUpAndDown.delta,a=this._getItemsArray().length;this._setActiveItemByIndex(o-1&&i!==this._activeItemIndex()&&(this._activeItemIndex.set(i),this._typeahead?.setCurrentSelectedItemIndex(i))}}};var Jd=class extends th{setActiveItem(n){this.activeItem&&this.activeItem.setInactiveStyles(),super.setActiveItem(n),this.activeItem&&this.activeItem.setActiveStyles()}};var vs=class extends th{_origin="program";setFocusOrigin(n){return this._origin=n,this}setActiveItem(n){super.setActiveItem(n),this.activeItem&&this.activeItem.focus(this._origin)}};var UL=" ";function ih(t,n,e){let i=Yv(t,n);e=e.trim(),!i.some(r=>r.trim()===e)&&(i.push(e),t.setAttribute(n,i.join(UL)))}function cc(t,n,e){let i=Yv(t,n);e=e.trim();let r=i.filter(o=>o!==e);r.length?t.setAttribute(n,r.join(UL)):t.removeAttribute(n)}function Yv(t,n){return t.getAttribute(n)?.match(/\S+/g)??[]}var $L="cdk-describedby-message",qv="cdk-describedby-host",SS=0,nh=(()=>{class t{_platform=u(qe);_document=u(_e);_messageRegistry=new Map;_messagesContainer=null;_id=`${SS++}`;constructor(){u(ht).load(Jr),this._id=u(Ql)+"-"+SS++}describe(e,i,r){if(!this._canBeDescribed(e,i))return;let o=MS(i,r);typeof i!="string"?(zL(i,this._id),this._messageRegistry.set(o,{messageElement:i,referenceCount:0})):this._messageRegistry.has(o)||this._createMessageElement(i,r),this._isElementDescribedByMessage(e,o)||this._addMessageReference(e,o)}removeDescription(e,i,r){if(!i||!this._isElementNode(e))return;let o=MS(i,r);if(this._isElementDescribedByMessage(e,o)&&this._removeMessageReference(e,o),typeof i=="string"){let a=this._messageRegistry.get(o);a&&a.referenceCount===0&&this._deleteMessageElement(o)}this._messagesContainer?.childNodes.length===0&&(this._messagesContainer.remove(),this._messagesContainer=null)}ngOnDestroy(){let e=this._document.querySelectorAll(`[${qv}="${this._id}"]`);for(let i=0;ir.indexOf($L)!=0);e.setAttribute("aria-describedby",i.join(" "))}_addMessageReference(e,i){let r=this._messageRegistry.get(i);ih(e,"aria-describedby",r.messageElement.id),e.setAttribute(qv,this._id),r.referenceCount++}_removeMessageReference(e,i){let r=this._messageRegistry.get(i);r.referenceCount--,cc(e,"aria-describedby",r.messageElement.id),e.removeAttribute(qv)}_isElementDescribedByMessage(e,i){let r=Yv(e,"aria-describedby"),o=this._messageRegistry.get(i),a=o&&o.messageElement.id;return!!a&&r.indexOf(a)!=-1}_canBeDescribed(e,i){if(!this._isElementNode(e))return!1;if(i&&typeof i=="object")return!0;let r=i==null?"":`${i}`.trim(),o=e.getAttribute("aria-label");return r?!o||o.trim()!==r:!1}_isElementNode(e){return e.nodeType===this._document.ELEMENT_NODE}static \u0275fac=function(i){return new(i||t)};static \u0275prov=R({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();function MS(t,n){return typeof t=="string"?`${n||""}/${t}`:t}function zL(t,n){t.id||(t.id=`${$L}-${n}-${SS++}`)}var _Z=new O("cdk-dir-doc",{providedIn:"root",factory:bZ});function bZ(){return u(_e)}var vZ=/^(ar|ckb|dv|he|iw|fa|nqo|ps|sd|ug|ur|yi|.*[-_](Adlm|Arab|Hebr|Nkoo|Rohg|Thaa))(?!.*[-_](Latn|Cyrl)($|-|_))($|-|_)/i;function kS(t){let n=t?.toLowerCase()||"";return n==="auto"&&typeof navigator<"u"&&navigator?.language?vZ.test(navigator.language)?"rtl":"ltr":n==="rtl"?"rtl":"ltr"}var Bt=(()=>{class t{get value(){return this.valueSignal()}valueSignal=he("ltr");change=new U;constructor(){let e=u(_Z,{optional:!0});if(e){let i=e.body?e.body.dir:null,r=e.documentElement?e.documentElement.dir:null;this.valueSignal.set(kS(i||r||"ltr"))}}ngOnDestroy(){this.change.complete()}static \u0275fac=function(i){return new(i||t)};static \u0275prov=R({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();var GL=(()=>{class t{_isInitialized=!1;_rawDir;change=new U;get dir(){return this.valueSignal()}set dir(e){let i=this.valueSignal();this.valueSignal.set(kS(e)),this._rawDir=e,i!==this.valueSignal()&&this._isInitialized&&this.change.emit(this.valueSignal())}get value(){return this.dir}valueSignal=he("ltr");ngAfterContentInit(){this._isInitialized=!0}ngOnDestroy(){this.change.complete()}static \u0275fac=function(i){return new(i||t)};static \u0275dir=P({type:t,selectors:[["","dir",""]],hostVars:1,hostBindings:function(i,r){i&2&&X("dir",r._rawDir)},inputs:{dir:"dir"},outputs:{change:"dirChange"},exportAs:["dir"],features:[Ce([{provide:Bt,useExisting:t}])]})}return t})(),ys=(()=>{class t{static \u0275fac=function(i){return new(i||t)};static \u0275mod=ee({type:t});static \u0275inj=J({})}return t})();var De=(()=>{class t{constructor(){u(Uv)._applyBodyHighContrastModeCssClasses()}static \u0275fac=function(i){return new(i||t)};static \u0275mod=ee({type:t});static \u0275inj=J({imports:[ys,ys]})}return t})();var dl=class{_defaultMatcher;ngControl;_parentFormGroup;_parentForm;_stateChanges;errorState=!1;matcher;constructor(n,e,i,r,o){this._defaultMatcher=n,this.ngControl=e,this._parentFormGroup=i,this._parentForm=r,this._stateChanges=o}updateErrorState(){let n=this.errorState,e=this._parentFormGroup||this._parentForm,i=this.matcher||this._defaultMatcher,r=this.ngControl?this.ngControl.control:null,o=i?.isErrorState(r,e)??!1;o!==n&&(this.errorState=o,this._stateChanges.next())}};var xs=new O("MAT_DATE_LOCALE",{providedIn:"root",factory:xZ});function xZ(){return u(tl)}var rh="Method not implemented",Bi=class{locale;_localeChanges=new z;localeChanges=this._localeChanges;setTime(n,e,i,r){throw new Error(rh)}getHours(n){throw new Error(rh)}getMinutes(n){throw new Error(rh)}getSeconds(n){throw new Error(rh)}parseTime(n,e){throw new Error(rh)}addSeconds(n,e){throw new Error(rh)}getValidDateOrNull(n){return this.isDateInstance(n)&&this.isValid(n)?n:null}deserialize(n){return n==null||this.isDateInstance(n)&&this.isValid(n)?n:this.invalid()}setLocale(n){this.locale=n,this._localeChanges.next()}compareDate(n,e){return this.getYear(n)-this.getYear(e)||this.getMonth(n)-this.getMonth(e)||this.getDate(n)-this.getDate(e)}compareTime(n,e){return this.getHours(n)-this.getHours(e)||this.getMinutes(n)-this.getMinutes(e)||this.getSeconds(n)-this.getSeconds(e)}sameDate(n,e){if(n&&e){let i=this.isValid(n),r=this.isValid(e);return i&&r?!this.compareDate(n,e):i==r}return n==e}sameTime(n,e){if(n&&e){let i=this.isValid(n),r=this.isValid(e);return i&&r?!this.compareTime(n,e):i==r}return n==e}clampDate(n,e,i){return e&&this.compareDate(n,e)<0?e:i&&this.compareDate(n,i)>0?i:n}},Cs=new O("mat-date-formats");var ul=(()=>{class t{isErrorState(e,i){return!!(e&&e.invalid&&(e.touched||i&&i.submitted))}static \u0275fac=function(i){return new(i||t)};static \u0275prov=R({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();var ki=(()=>{class t{static \u0275fac=function(i){return new(i||t)};static \u0275cmp=E({type:t,selectors:[["structural-styles"]],decls:0,vars:0,template:function(i,r){},styles:[`.mat-focus-indicator{position:relative}.mat-focus-indicator::before{top:0;left:0;right:0;bottom:0;position:absolute;box-sizing:border-box;pointer-events:none;display:var(--mat-focus-indicator-display, none);border-width:var(--mat-focus-indicator-border-width, 3px);border-style:var(--mat-focus-indicator-border-style, solid);border-color:var(--mat-focus-indicator-border-color, transparent);border-radius:var(--mat-focus-indicator-border-radius, 4px)}.mat-focus-indicator:focus::before{content:""}@media(forced-colors: active){html{--mat-focus-indicator-display: block}} +`],encapsulation:2,changeDetection:0})}return t})();var Oa=(function(t){return t[t.NORMAL=0]="NORMAL",t[t.NEGATED=1]="NEGATED",t[t.INVERTED=2]="INVERTED",t})(Oa||{}),Qv,eu;function Kv(){if(eu==null){if(typeof document!="object"||!document||typeof Element!="function"||!Element)return eu=!1,eu;if(document.documentElement?.style&&"scrollBehavior"in document.documentElement.style)eu=!0;else{let t=Element.prototype.scrollTo;t?eu=!/\{\s*\[native code\]\s*\}/.test(t.toString()):eu=!1}}return eu}function oh(){if(typeof document!="object"||!document)return Oa.NORMAL;if(Qv==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"),i=e.style;i.width="2px",i.height="1px",t.appendChild(e),document.body.appendChild(t),Qv=Oa.NORMAL,t.scrollLeft===0&&(t.scrollLeft=1,Qv=t.scrollLeft===0?Oa.NEGATED:Oa.INVERTED),t.remove()}return Qv}function TS(){return typeof __karma__<"u"&&!!__karma__||typeof jasmine<"u"&&!!jasmine||typeof jest<"u"&&!!jest||typeof Mocha<"u"&&!!Mocha}var ah,qL=["color","button","checkbox","date","datetime-local","email","file","hidden","image","month","number","password","radio","range","reset","search","submit","tel","text","time","url","week"];function IS(){if(ah)return ah;if(typeof document!="object"||!document)return ah=new Set(qL),ah;let t=document.createElement("input");return ah=new Set(qL.filter(n=>(t.setAttribute("type",n),t.type===n))),ah}function cn(t){return t==null?"":typeof t=="string"?t:`${t}px`}function Ri(t){return t!=null&&`${t}`!="false"}function YL(t,n=/\s+/){let e=[];if(t!=null){let i=Array.isArray(t)?t:`${t}`.split(n);for(let r of i){let o=`${r}`.trim();o&&e.push(o)}}return e}var Eo=(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})(Eo||{}),Zv=class{_renderer;element;config;_animationForciblyDisabledThroughCss;state=Eo.HIDDEN;constructor(n,e,i,r=!1){this._renderer=n,this.element=e,this.config=i,this._animationForciblyDisabledThroughCss=r}fadeOut(){this._renderer.fadeOutRipple(this)}},QL=ac({passive:!0,capture:!0}),AS=class{_events=new Map;addHandler(n,e,i,r){let o=this._events.get(e);if(o){let a=o.get(i);a?a.add(r):o.set(i,new Set([r]))}else this._events.set(e,new Map([[i,new Set([r])]])),n.runOutsideAngular(()=>{document.addEventListener(e,this._delegateEventHandler,QL)})}removeHandler(n,e,i){let r=this._events.get(n);if(!r)return;let o=r.get(e);o&&(o.delete(i),o.size===0&&r.delete(e),r.size===0&&(this._events.delete(n),document.removeEventListener(n,this._delegateEventHandler,QL)))}_delegateEventHandler=n=>{let e=Xn(n);e&&this._events.get(n.type)?.forEach((i,r)=>{(r===e||r.contains(e))&&i.forEach(o=>o.handleEvent(n))})}},sh={enterDuration:225,exitDuration:150},CZ=800,KL=ac({passive:!0,capture:!0}),ZL=["mousedown","touchstart"],XL=["mouseup","mouseleave","touchend","touchcancel"],wZ=(()=>{class t{static \u0275fac=function(i){return new(i||t)};static \u0275cmp=E({type:t,selectors:[["ng-component"]],hostAttrs:["mat-ripple-style-loader",""],decls:0,vars:0,template:function(i,r){},styles:[`.mat-ripple{overflow:hidden;position:relative}.mat-ripple:not(:empty){transform:translateZ(0)}.mat-ripple.mat-ripple-unbounded{overflow:visible}.mat-ripple-element{position:absolute;border-radius:50%;pointer-events:none;transition:opacity,transform 0ms cubic-bezier(0, 0, 0.2, 1);transform:scale3d(0, 0, 0);background-color:var(--mat-ripple-color, color-mix(in srgb, var(--mat-sys-on-surface) 10%, transparent))}@media(forced-colors: active){.mat-ripple-element{display:none}}.cdk-drag-preview .mat-ripple-element,.cdk-drag-placeholder .mat-ripple-element{display:none} +`],encapsulation:2,changeDetection:0})}return t})(),dc=class t{_target;_ngZone;_platform;_containerElement;_triggerElement;_isPointerDown=!1;_activeRipples=new Map;_mostRecentTransientRipple;_lastTouchStartEvent;_pointerUpEventsRegistered=!1;_containerRect;static _eventManager=new AS;constructor(n,e,i,r,o){this._target=n,this._ngZone=e,this._platform=r,r.isBrowser&&(this._containerElement=jr(i)),o&&o.get(ht).load(wZ)}fadeInRipple(n,e,i={}){let r=this._containerRect=this._containerRect||this._containerElement.getBoundingClientRect(),o=k(k({},sh),i.animation);i.centered&&(n=r.left+r.width/2,e=r.top+r.height/2);let a=i.radius||DZ(n,e,r),s=n-r.left,l=e-r.top,c=o.enterDuration,d=document.createElement("div");d.classList.add("mat-ripple-element"),d.style.left=`${s-a}px`,d.style.top=`${l-a}px`,d.style.height=`${a*2}px`,d.style.width=`${a*2}px`,i.color!=null&&(d.style.backgroundColor=i.color),d.style.transitionDuration=`${c}ms`,this._containerElement.appendChild(d);let p=window.getComputedStyle(d),_=p.transitionProperty,b=p.transitionDuration,y=_==="none"||b==="0s"||b==="0s, 0s"||r.width===0&&r.height===0,w=new Zv(this,d,i,y);d.style.transform="scale3d(1, 1, 1)",w.state=Eo.FADING_IN,i.persistent||(this._mostRecentTransientRipple=w);let C=null;return!y&&(c||o.exitDuration)&&this._ngZone.runOutsideAngular(()=>{let D=()=>{C&&(C.fallbackTimer=null),clearTimeout(W),this._finishRippleTransition(w)},F=()=>this._destroyRipple(w),W=setTimeout(F,c+100);d.addEventListener("transitionend",D),d.addEventListener("transitioncancel",F),C={onTransitionEnd:D,onTransitionCancel:F,fallbackTimer:W}}),this._activeRipples.set(w,C),(y||!c)&&this._finishRippleTransition(w),w}fadeOutRipple(n){if(n.state===Eo.FADING_OUT||n.state===Eo.HIDDEN)return;let e=n.element,i=k(k({},sh),n.config.animation);e.style.transitionDuration=`${i.exitDuration}ms`,e.style.opacity="0",n.state=Eo.FADING_OUT,(n._animationForciblyDisabledThroughCss||!i.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=jr(n);!this._platform.isBrowser||!e||e===this._triggerElement||(this._removeTriggerEvents(),this._triggerElement=e,ZL.forEach(i=>{t._eventManager.addHandler(this._ngZone,i,e,this)}))}handleEvent(n){n.type==="mousedown"?this._onMousedown(n):n.type==="touchstart"?this._onTouchStart(n):this._onPointerUp(),this._pointerUpEventsRegistered||(this._ngZone.runOutsideAngular(()=>{XL.forEach(e=>{this._triggerElement.addEventListener(e,this,KL)})}),this._pointerUpEventsRegistered=!0)}_finishRippleTransition(n){n.state===Eo.FADING_IN?this._startFadeOutTransition(n):n.state===Eo.FADING_OUT&&this._destroyRipple(n)}_startFadeOutTransition(n){let e=n===this._mostRecentTransientRipple,{persistent:i}=n.config;n.state=Eo.VISIBLE,!i&&(!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=Eo.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=Zd(n),i=this._lastTouchStartEvent&&Date.now(){let e=n.state===Eo.VISIBLE||n.config.terminateOnPointerUp&&n.state===Eo.FADING_IN;!n.config.persistent&&e&&n.fadeOut()}))}_getActiveRipples(){return Array.from(this._activeRipples.keys())}_removeTriggerEvents(){let n=this._triggerElement;n&&(ZL.forEach(e=>t._eventManager.removeHandler(e,n,this)),this._pointerUpEventsRegistered&&(XL.forEach(e=>n.removeEventListener(e,this,KL)),this._pointerUpEventsRegistered=!1))}};function DZ(t,n,e){let i=Math.max(Math.abs(t-e.left),Math.abs(t-e.right)),r=Math.max(Math.abs(n-e.top),Math.abs(n-e.bottom));return Math.sqrt(i*i+r*r)}var ws=new O("mat-ripple-global-options"),jn=(()=>{class t{_elementRef=u(Y);_animationsDisabled=Ye();color;unbounded;centered;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=u(ae),i=u(qe),r=u(ws,{optional:!0}),o=u(de);this._globalOptions=r||{},this._rippleRenderer=new dc(this,e,this._elementRef,i,o)}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:k(k(k({},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,i=0,r){return typeof e=="number"?this._rippleRenderer.fadeInRipple(e,i,k(k({},this.rippleConfig),r)):this._rippleRenderer.fadeInRipple(0,0,k(k({},this.rippleConfig),e))}static \u0275fac=function(i){return new(i||t)};static \u0275dir=P({type:t,selectors:[["","mat-ripple",""],["","matRipple",""]],hostAttrs:[1,"mat-ripple"],hostVars:2,hostBindings:function(i,r){i&2&&G("mat-ripple-unbounded",r.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 Mo=(()=>{class t{static \u0275fac=function(i){return new(i||t)};static \u0275mod=ee({type:t});static \u0275inj=J({imports:[De,De]})}return t})();var tu=(()=>{class t{_animationsDisabled=Ye();state="unchecked";disabled=!1;appearance="full";constructor(){}static \u0275fac=function(i){return new(i||t)};static \u0275cmp=E({type:t,selectors:[["mat-pseudo-checkbox"]],hostAttrs:[1,"mat-pseudo-checkbox"],hostVars:12,hostBindings:function(i,r){i&2&&G("mat-pseudo-checkbox-indeterminate",r.state==="indeterminate")("mat-pseudo-checkbox-checked",r.state==="checked")("mat-pseudo-checkbox-disabled",r.disabled)("mat-pseudo-checkbox-minimal",r.appearance==="minimal")("mat-pseudo-checkbox-full",r.appearance==="full")("_mat-animation-noopable",r._animationsDisabled)},inputs:{state:"state",disabled:"disabled",appearance:"appearance"},decls:0,vars:0,template:function(i,r){},styles:[`.mat-pseudo-checkbox{border-radius:2px;cursor:pointer;display:inline-block;vertical-align:middle;box-sizing:border-box;position:relative;flex-shrink:0;transition:border-color 90ms cubic-bezier(0, 0, 0.2, 0.1),background-color 90ms cubic-bezier(0, 0, 0.2, 0.1)}.mat-pseudo-checkbox::after{position:absolute;opacity:0;content:"";border-bottom:2px solid currentColor;transition:opacity 90ms cubic-bezier(0, 0, 0.2, 0.1)}.mat-pseudo-checkbox._mat-animation-noopable{transition:none !important;animation:none !important}.mat-pseudo-checkbox._mat-animation-noopable::after{transition:none}.mat-pseudo-checkbox-disabled{cursor:default}.mat-pseudo-checkbox-indeterminate::after{left:1px;opacity:1;border-radius:2px}.mat-pseudo-checkbox-checked::after{left:1px;border-left:2px solid currentColor;transform:rotate(-45deg);opacity:1;box-sizing:content-box}.mat-pseudo-checkbox-minimal.mat-pseudo-checkbox-checked::after,.mat-pseudo-checkbox-minimal.mat-pseudo-checkbox-indeterminate::after{color:var(--mat-pseudo-checkbox-minimal-selected-checkmark-color, var(--mat-sys-primary))}.mat-pseudo-checkbox-minimal.mat-pseudo-checkbox-checked.mat-pseudo-checkbox-disabled::after,.mat-pseudo-checkbox-minimal.mat-pseudo-checkbox-indeterminate.mat-pseudo-checkbox-disabled::after{color:var(--mat-pseudo-checkbox-minimal-disabled-selected-checkmark-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent))}.mat-pseudo-checkbox-full{border-color:var(--mat-pseudo-checkbox-full-unselected-icon-color, var(--mat-sys-on-surface-variant));border-width:2px;border-style:solid}.mat-pseudo-checkbox-full.mat-pseudo-checkbox-disabled{border-color:var(--mat-pseudo-checkbox-full-disabled-unselected-icon-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent))}.mat-pseudo-checkbox-full.mat-pseudo-checkbox-checked,.mat-pseudo-checkbox-full.mat-pseudo-checkbox-indeterminate{background-color:var(--mat-pseudo-checkbox-full-selected-icon-color, var(--mat-sys-primary));border-color:rgba(0,0,0,0)}.mat-pseudo-checkbox-full.mat-pseudo-checkbox-checked::after,.mat-pseudo-checkbox-full.mat-pseudo-checkbox-indeterminate::after{color:var(--mat-pseudo-checkbox-full-selected-checkmark-color, var(--mat-sys-on-primary))}.mat-pseudo-checkbox-full.mat-pseudo-checkbox-checked.mat-pseudo-checkbox-disabled,.mat-pseudo-checkbox-full.mat-pseudo-checkbox-indeterminate.mat-pseudo-checkbox-disabled{background-color:var(--mat-pseudo-checkbox-full-disabled-selected-icon-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent))}.mat-pseudo-checkbox-full.mat-pseudo-checkbox-checked.mat-pseudo-checkbox-disabled::after,.mat-pseudo-checkbox-full.mat-pseudo-checkbox-indeterminate.mat-pseudo-checkbox-disabled::after{color:var(--mat-pseudo-checkbox-full-disabled-selected-checkmark-color, var(--mat-sys-surface))}.mat-pseudo-checkbox{width:18px;height:18px}.mat-pseudo-checkbox-minimal.mat-pseudo-checkbox-checked::after{width:14px;height:6px;transform-origin:center;top:-4.2426406871px;left:0;bottom:0;right:0;margin:auto}.mat-pseudo-checkbox-minimal.mat-pseudo-checkbox-indeterminate::after{top:8px;width:16px}.mat-pseudo-checkbox-full.mat-pseudo-checkbox-checked::after{width:10px;height:4px;transform-origin:center;top:-2.8284271247px;left:0;bottom:0;right:0;margin:auto}.mat-pseudo-checkbox-full.mat-pseudo-checkbox-indeterminate::after{top:6px;width:12px} +`],encapsulation:2,changeDetection:0})}return t})();var Xv=(()=>{class t{static \u0275fac=function(i){return new(i||t)};static \u0275mod=ee({type:t});static \u0275inj=J({imports:[De]})}return t})();var EZ=["*",[["mat-option"],["ng-container"]]],MZ=["*","mat-option, ng-container"],SZ=["text"],kZ=[[["mat-icon"]],"*"],TZ=["mat-icon","*"];function IZ(t,n){if(t&1&&M(0,"mat-pseudo-checkbox",1),t&2){let e=x();v("disabled",e.disabled)("state",e.selected?"checked":"unchecked")}}function AZ(t,n){if(t&1&&M(0,"mat-pseudo-checkbox",3),t&2){let e=x();v("disabled",e.disabled)}}function OZ(t,n){if(t&1&&(m(0,"span",4),g(1),h()),t&2){let e=x();f(),pe("(",e.group.label,")")}}var iu=new O("MAT_OPTION_PARENT_COMPONENT"),nu=new O("MatOptgroup"),OS=(()=>{class t{label;disabled=!1;_labelId=u(Ze).getId("mat-optgroup-label-");_inert;constructor(){let e=u(iu,{optional:!0});this._inert=e?.inertGroups??!1}static \u0275fac=function(i){return new(i||t)};static \u0275cmp=E({type:t,selectors:[["mat-optgroup"]],hostAttrs:[1,"mat-mdc-optgroup"],hostVars:3,hostBindings:function(i,r){i&2&&X("role",r._inert?null:"group")("aria-disabled",r._inert?null:r.disabled.toString())("aria-labelledby",r._inert?null:r._labelId)},inputs:{label:"label",disabled:[2,"disabled","disabled",L]},exportAs:["matOptgroup"],features:[Ce([{provide:nu,useExisting:t}])],ngContentSelectors:MZ,decls:5,vars:4,consts:[["role","presentation",1,"mat-mdc-optgroup-label",3,"id"],[1,"mdc-list-item__primary-text"]],template:function(i,r){i&1&&(Se(EZ),pt(0,"span",0)(1,"span",1),g(2),ne(3),_t()(),ne(4,1)),i&2&&(G("mdc-list-item--disabled",r.disabled),ci("id",r._labelId),f(2),pe("",r.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));font-size:var(--mat-optgroup-label-text-size, var(--mat-sys-title-small-size));letter-spacing:var(--mat-optgroup-label-text-tracking, var(--mat-sys-title-small-tracking));font-weight:var(--mat-optgroup-label-text-weight, var(--mat-sys-title-small-weight))}.mat-mdc-optgroup-label{display:flex;position:relative;align-items:center;justify-content:flex-start;overflow:hidden;min-height:48px;padding:0 16px;outline:none}.mat-mdc-optgroup-label.mdc-list-item--disabled{opacity:.38}.mat-mdc-optgroup-label .mdc-list-item__primary-text{font-size:inherit;font-weight:inherit;letter-spacing:inherit;line-height:inherit;font-family:inherit;text-decoration:inherit;text-transform:inherit;white-space:normal;color:inherit} +`],encapsulation:2,changeDetection:0})}return t})(),lh=class{source;isUserInput;constructor(n,e=!1){this.source=n,this.isUserInput=e}},wn=(()=>{class t{_element=u(Y);_changeDetectorRef=u(ye);_parent=u(iu,{optional:!0});group=u(nu,{optional:!0});_signalDisableRipple=!1;_selected=!1;_active=!1;_mostRecentViewValue="";get multiple(){return this._parent&&this._parent.multiple}get selected(){return this._selected}value;id=u(Ze).getId("mat-option-");get disabled(){return this.group&&this.group.disabled||this._disabled()}set disabled(e){this._disabled.set(e)}_disabled=he(!1);get disableRipple(){return this._signalDisableRipple?this._parent.disableRipple():!!this._parent?.disableRipple}get hideSingleSelectionIndicator(){return!!(this._parent&&this._parent.hideSingleSelectionIndicator)}onSelectionChange=new U;_text;_stateChanges=new z;constructor(){let e=u(ht);e.load(ki),e.load(Jr),this._signalDisableRipple=!!this._parent&&ns(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,i){let r=this._getHostElement();typeof r.focus=="function"&&r.focus(i)}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)&&!Lt(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 lh(this,e))}static \u0275fac=function(i){return new(i||t)};static \u0275cmp=E({type:t,selectors:[["mat-option"]],viewQuery:function(i,r){if(i&1&&ie(SZ,7),i&2){let o;j(o=H())&&(r._text=o.first)}},hostAttrs:["role","option",1,"mat-mdc-option","mdc-list-item"],hostVars:11,hostBindings:function(i,r){i&1&&S("click",function(){return r._selectViaInteraction()})("keydown",function(a){return r._handleKeydown(a)}),i&2&&(ci("id",r.id),X("aria-selected",r.selected)("aria-disabled",r.disabled.toString()),G("mdc-list-item--selected",r.selected)("mat-mdc-option-multiple",r.multiple)("mat-mdc-option-active",r.active)("mdc-list-item--disabled",r.disabled))},inputs:{value:"value",id:"id",disabled:[2,"disabled","disabled",L]},outputs:{onSelectionChange:"onSelectionChange"},exportAs:["matOption"],ngContentSelectors:TZ,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(i,r){i&1&&(Se(kZ),V(0,IZ,1,2,"mat-pseudo-checkbox",1),ne(1),m(2,"span",2,0),ne(4,1),h(),V(5,AZ,1,1,"mat-pseudo-checkbox",3),V(6,OZ,2,1,"span",4),M(7,"div",5)),i&2&&(B(r.multiple?0:-1),f(5),B(!r.multiple&&r.selected&&!r.hideSingleSelectionIndicator?5:-1),f(),B(r.group&&r.group._inert?6:-1),f(),v("matRippleTrigger",r._getHostElement())("matRippleDisabled",r.disabled||r.disableRipple))},dependencies:[tu,jn],styles:[`.mat-mdc-option{-webkit-user-select:none;user-select:none;-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;display:flex;position:relative;align-items:center;justify-content:flex-start;overflow:hidden;min-height:48px;padding:0 16px;cursor:pointer;-webkit-tap-highlight-color:rgba(0,0,0,0);color:var(--mat-option-label-text-color, var(--mat-sys-on-surface));font-family:var(--mat-option-label-text-font, var(--mat-sys-label-large-font));line-height:var(--mat-option-label-text-line-height, var(--mat-sys-label-large-line-height));font-size:var(--mat-option-label-text-size, var(--mat-sys-body-large-size));letter-spacing:var(--mat-option-label-text-tracking, var(--mat-sys-label-large-tracking));font-weight:var(--mat-option-label-text-weight, var(--mat-sys-body-large-weight))}.mat-mdc-option:hover:not(.mdc-list-item--disabled){background-color:var(--mat-option-hover-state-layer-color, color-mix(in srgb, var(--mat-sys-on-surface) calc(var(--mat-sys-hover-state-layer-opacity) * 100%), transparent))}.mat-mdc-option:focus.mdc-list-item,.mat-mdc-option.mat-mdc-option-active.mdc-list-item{background-color:var(--mat-option-focus-state-layer-color, color-mix(in srgb, var(--mat-sys-on-surface) calc(var(--mat-sys-focus-state-layer-opacity) * 100%), transparent));outline:0}.mat-mdc-option.mdc-list-item--selected:not(.mdc-list-item--disabled):not(.mat-mdc-option-multiple){background-color:var(--mat-option-selected-state-layer-color, var(--mat-sys-secondary-container))}.mat-mdc-option.mdc-list-item--selected:not(.mdc-list-item--disabled):not(.mat-mdc-option-multiple) .mdc-list-item__primary-text{color:var(--mat-option-selected-state-label-text-color, var(--mat-sys-on-secondary-container))}.mat-mdc-option .mat-pseudo-checkbox{--mat-pseudo-checkbox-minimal-selected-checkmark-color: var(--mat-option-selected-state-label-text-color, var(--mat-sys-on-secondary-container))}.mat-mdc-option.mdc-list-item{align-items:center;background:rgba(0,0,0,0)}.mat-mdc-option.mdc-list-item--disabled{cursor:default;pointer-events:none}.mat-mdc-option.mdc-list-item--disabled .mat-mdc-option-pseudo-checkbox,.mat-mdc-option.mdc-list-item--disabled .mdc-list-item__primary-text,.mat-mdc-option.mdc-list-item--disabled>mat-icon{opacity:.38}.mat-mdc-optgroup .mat-mdc-option:not(.mat-mdc-option-multiple){padding-left:32px}[dir=rtl] .mat-mdc-optgroup .mat-mdc-option:not(.mat-mdc-option-multiple){padding-left:16px;padding-right:32px}.mat-mdc-option .mat-icon,.mat-mdc-option .mat-pseudo-checkbox-full{margin-right:16px;flex-shrink:0}[dir=rtl] .mat-mdc-option .mat-icon,[dir=rtl] .mat-mdc-option .mat-pseudo-checkbox-full{margin-right:0;margin-left:16px}.mat-mdc-option .mat-pseudo-checkbox-minimal{margin-left:16px;flex-shrink:0}[dir=rtl] .mat-mdc-option .mat-pseudo-checkbox-minimal{margin-right:16px;margin-left:0}.mat-mdc-option .mat-mdc-option-ripple{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none}.mat-mdc-option .mdc-list-item__primary-text{white-space:normal;font-size:inherit;font-weight:inherit;letter-spacing:inherit;line-height:inherit;font-family:inherit;text-decoration:inherit;text-transform:inherit;margin-right:auto}[dir=rtl] .mat-mdc-option .mdc-list-item__primary-text{margin-right:0;margin-left:auto}@media(forced-colors: active){.mat-mdc-option.mdc-list-item--selected:not(:has(.mat-mdc-option-pseudo-checkbox))::after{content:"";position:absolute;top:50%;right:16px;transform:translateY(-50%);width:10px;height:0;border-bottom:solid 10px;border-radius:10px}[dir=rtl] .mat-mdc-option.mdc-list-item--selected:not(:has(.mat-mdc-option-pseudo-checkbox))::after{right:auto;left:16px}}.mat-mdc-option-multiple{--mat-list-list-item-selected-container-color: var(--mat-list-list-item-container-color, transparent)}.mat-mdc-option-active .mat-focus-indicator::before{content:""} +`],encapsulation:2,changeDetection:0})}return t})();function eg(t,n,e){if(e.length){let i=n.toArray(),r=e.toArray(),o=0;for(let a=0;ae+i?Math.max(0,t-i+n):e}var ch=(()=>{class t{static \u0275fac=function(i){return new(i||t)};static \u0275mod=ee({type:t});static \u0275inj=J({imports:[Mo,De,Xv,wn]})}return t})();var RZ={capture:!0},PZ=["focus","mousedown","mouseenter","touchstart"],RS="mat-ripple-loader-uninitialized",PS="mat-ripple-loader-class-name",JL="mat-ripple-loader-centered",Jv="mat-ripple-loader-disabled",ey=(()=>{class t{_document=u(_e);_animationsDisabled=Ye();_globalRippleOptions=u(ws,{optional:!0});_platform=u(qe);_ngZone=u(ae);_injector=u(de);_eventCleanups;_hosts=new Map;constructor(){let e=u(mn).createRenderer(null,null);this._eventCleanups=this._ngZone.runOutsideAngular(()=>PZ.map(i=>e.listen(this._document,i,this._onInteraction,RZ)))}ngOnDestroy(){let e=this._hosts.keys();for(let i of e)this.destroyRipple(i);this._eventCleanups.forEach(i=>i())}configureRipple(e,i){e.setAttribute(RS,this._globalRippleOptions?.namespace??""),(i.className||!e.hasAttribute(PS))&&e.setAttribute(PS,i.className||""),i.centered&&e.setAttribute(JL,""),i.disabled&&e.setAttribute(Jv,"")}setDisabled(e,i){let r=this._hosts.get(e);r?(r.target.rippleDisabled=i,!i&&!r.hasSetUpEvents&&(r.hasSetUpEvents=!0,r.renderer.setupTriggerEvents(e))):i?e.setAttribute(Jv,""):e.removeAttribute(Jv)}_onInteraction=e=>{let i=Xn(e);if(i instanceof HTMLElement){let r=i.closest(`[${RS}="${this._globalRippleOptions?.namespace??""}"]`);r&&this._createRipple(r)}};_createRipple(e){if(!this._document||this._hosts.has(e))return;e.querySelector(".mat-ripple")?.remove();let i=this._document.createElement("span");i.classList.add("mat-ripple",e.getAttribute(PS)),e.append(i);let r=this._globalRippleOptions,o=this._animationsDisabled?0:r?.animation?.enterDuration??sh.enterDuration,a=this._animationsDisabled?0:r?.animation?.exitDuration??sh.exitDuration,s={rippleDisabled:this._animationsDisabled||r?.disabled||e.hasAttribute(Jv),rippleConfig:{centered:e.hasAttribute(JL),terminateOnPointerUp:r?.terminateOnPointerUp,animation:{enterDuration:o,exitDuration:a}}},l=new dc(s,this._ngZone,i,this._platform,this._injector),c=!s.rippleDisabled;c&&l.setupTriggerEvents(e),this._hosts.set(e,{target:s,renderer:l,hasSetUpEvents:c}),e.removeAttribute(RS)}destroyRipple(e){let i=this._hosts.get(e);i&&(i.renderer._removeTriggerEvents(),this._hosts.delete(e))}static \u0275fac=function(i){return new(i||t)};static \u0275prov=R({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();var FZ=/^\d{4}-\d{2}-\d{2}(?:T\d{2}:\d{2}:\d{2}(?:\.\d+)?(?:Z|(?:(?:\+|-)\d{2}:\d{2}))?)?$/,NZ=/^(\d?\d)[:.](\d?\d)(?:[:.](\d?\d))?\s*(AM|PM)?$/i;function FS(t,n){let e=Array(t);for(let i=0;i{class t extends Bi{useUtcForDisplay=!1;_matDateLocale=u(xs,{optional:!0});constructor(){super();let e=u(xs,{optional:!0});e!==void 0&&(this._matDateLocale=e),super.setLocale(this._matDateLocale)}getYear(e){return e.getFullYear()}getMonth(e){return e.getMonth()}getDate(e){return e.getDate()}getDayOfWeek(e){return e.getDay()}getMonthNames(e){let i=new Intl.DateTimeFormat(this.locale,{month:e,timeZone:"utc"});return FS(12,r=>this._format(i,new Date(2017,r,1)))}getDateNames(){let e=new Intl.DateTimeFormat(this.locale,{day:"numeric",timeZone:"utc"});return FS(31,i=>this._format(e,new Date(2017,0,i+1)))}getDayOfWeekNames(e){let i=new Intl.DateTimeFormat(this.locale,{weekday:e,timeZone:"utc"});return FS(7,r=>this._format(i,new Date(2017,0,r+1)))}getYearName(e){let i=new Intl.DateTimeFormat(this.locale,{year:"numeric",timeZone:"utc"});return this._format(i,e)}getFirstDayOfWeek(){if(typeof Intl<"u"&&Intl.Locale){let e=new Intl.Locale(this.locale),i=(e.getWeekInfo?.()||e.weekInfo)?.firstDay??0;return i===7?0:i}return 0}getNumDaysInMonth(e){return this.getDate(this._createDateWithOverflow(this.getYear(e),this.getMonth(e)+1,0))}clone(e){return new Date(e.getTime())}createDate(e,i,r){let o=this._createDateWithOverflow(e,i,r);return o.getMonth()!=i,o}today(){return new Date}parse(e,i){return typeof e=="number"?new Date(e):e?new Date(Date.parse(e)):null}format(e,i){if(!this.isValid(e))throw Error("NativeDateAdapter: Cannot format invalid date.");let r=new Intl.DateTimeFormat(this.locale,Ee(k({},i),{timeZone:"utc"}));return this._format(r,e)}addCalendarYears(e,i){return this.addCalendarMonths(e,i*12)}addCalendarMonths(e,i){let r=this._createDateWithOverflow(this.getYear(e),this.getMonth(e)+i,this.getDate(e));return this.getMonth(r)!=((this.getMonth(e)+i)%12+12)%12&&(r=this._createDateWithOverflow(this.getYear(r),this.getMonth(r),0)),r}addCalendarDays(e,i){return this._createDateWithOverflow(this.getYear(e),this.getMonth(e),this.getDate(e)+i)}toIso8601(e){return[e.getUTCFullYear(),this._2digit(e.getUTCMonth()+1),this._2digit(e.getUTCDate())].join("-")}deserialize(e){if(typeof e=="string"){if(!e)return null;if(FZ.test(e)){let i=new Date(e);if(this.isValid(i))return i}}return super.deserialize(e)}isDateInstance(e){return e instanceof Date}isValid(e){return!isNaN(e.getTime())}invalid(){return new Date(NaN)}setTime(e,i,r,o){let a=this.clone(e);return a.setHours(i,r,o,0),a}getHours(e){return e.getHours()}getMinutes(e){return e.getMinutes()}getSeconds(e){return e.getSeconds()}parseTime(e,i){if(typeof e!="string")return e instanceof Date?new Date(e.getTime()):null;let r=e.trim();if(r.length===0)return null;let o=this._parseTimeString(r);if(o===null){let a=r.replace(/[^0-9:(AM|PM)]/gi,"").trim();a.length>0&&(o=this._parseTimeString(a))}return o||this.invalid()}addSeconds(e,i){return new Date(e.getTime()+i*1e3)}_createDateWithOverflow(e,i,r){let o=new Date;return o.setFullYear(e,i,r),o.setHours(0,0,0,0),o}_2digit(e){return("00"+e).slice(-2)}_format(e,i){let r=new Date;return r.setUTCFullYear(i.getFullYear(),i.getMonth(),i.getDate()),r.setUTCHours(i.getHours(),i.getMinutes(),i.getSeconds(),i.getMilliseconds()),e.format(r)}_parseTimeString(e){let i=e.toUpperCase().match(NZ);if(i){let r=parseInt(i[1]),o=parseInt(i[2]),a=i[3]==null?void 0:parseInt(i[3]),s=i[4];if(r===12?r=s==="AM"?0:r:s==="PM"&&(r+=12),NS(r,0,23)&&NS(o,0,59)&&(a==null||NS(a,0,59)))return this.setTime(this.today(),r,o,a||0)}return null}static \u0275fac=function(i){return new(i||t)};static \u0275prov=R({token:t,factory:t.\u0275fac})}return t})();function NS(t,n,e){return!isNaN(t)&&t>=n&&t<=e}var LZ={parse:{dateInput:null,timeInput:null},display:{dateInput:{year:"numeric",month:"numeric",day:"numeric"},timeInput:{hour:"numeric",minute:"numeric"},monthYearLabel:{year:"numeric",month:"short"},dateA11yLabel:{year:"numeric",month:"long",day:"numeric"},monthYearA11yLabel:{year:"numeric",month:"long"},timeOptionLabel:{hour:"numeric",minute:"numeric"}}};var tV=(()=>{class t{static \u0275fac=function(i){return new(i||t)};static \u0275mod=ee({type:t});static \u0275inj=J({providers:[VZ()]})}return t})();function VZ(t=LZ){return[{provide:Bi,useClass:eV},{provide:Cs,useValue:t}]}var BZ=Math.pow(10,8)*24*60*60*1e3,A4e=-BZ,ty=6048e5,nV=864e5,ru=6e4,ou=36e5,rV=1e3;var jZ=3600;var oV=jZ*24,O4e=oV*7,HZ=oV*365.2425,zZ=HZ/12,R4e=zZ*3,LS=Symbol.for("constructDateFrom");function at(t,n){return typeof t=="function"?t(n):t&&typeof t=="object"&&LS in t?t[LS](n):t instanceof Date?new t.constructor(n):new Date(n)}function Ie(t,n){return at(n||t,t)}function dh(t,n,e){let i=Ie(t,e?.in);return isNaN(n)?at(e?.in||t,NaN):(n&&i.setDate(i.getDate()+n),i)}function uh(t,n,e){let i=Ie(t,e?.in);if(isNaN(n))return at(e?.in||t,NaN);if(!n)return i;let r=i.getDate(),o=at(e?.in||t,i.getTime());o.setMonth(i.getMonth()+n+1,0);let a=o.getDate();return r>=a?o:(i.setFullYear(o.getFullYear(),o.getMonth(),r),i)}function iy(t,n,e){return at(e?.in||t,+Ie(t)+n)}function aV(t,n,e){return iy(t,n*ou,e)}var UZ={};function Zo(){return UZ}function Jn(t,n){let e=Zo(),i=n?.weekStartsOn??n?.locale?.options?.weekStartsOn??e.weekStartsOn??e.locale?.options?.weekStartsOn??0,r=Ie(t,n?.in),o=r.getDay(),a=(o=o.getTime()?i+1:e.getTime()>=s.getTime()?i:i-1}function au(t){let n=Ie(t),e=new Date(Date.UTC(n.getFullYear(),n.getMonth(),n.getDate(),n.getHours(),n.getMinutes(),n.getSeconds(),n.getMilliseconds()));return e.setUTCFullYear(n.getFullYear()),+t-+e}function ry(t,...n){let e=at.bind(null,t||n.find(i=>typeof i=="object"));return n.map(e)}function VS(t,n){let e=Ie(t,n?.in);return e.setHours(0,0,0,0),e}function sV(t,n,e){let[i,r]=ry(e?.in,t,n),o=VS(i),a=VS(r),s=+o-au(o),l=+a-au(a);return Math.round((s-l)/nV)}function lV(t,n){let e=ny(t,n),i=at(n?.in||t,0);return i.setFullYear(e,0,4),i.setHours(0,0,0,0),Ra(i)}function cV(t,n,e){let i=Ie(t,e?.in);return i.setTime(i.getTime()+n*ru),i}function dV(t,n,e){return iy(t,n*1e3,e)}function uV(t,n,e){return uh(t,n*12,e)}function oy(t){return t instanceof Date||typeof t=="object"&&Object.prototype.toString.call(t)==="[object Date]"}function mh(t){return!(!oy(t)&&typeof t!="number"||isNaN(+Ie(t)))}function mV(t,n){let e=Ie(t,n?.in);return e.setDate(1),e.setHours(0,0,0,0),e}function hV(t,n){let e=Ie(t,n?.in);return e.setFullYear(e.getFullYear(),0,1),e.setHours(0,0,0,0),e}var $Z={lessThanXSeconds:{one:"less than a second",other:"less than {{count}} seconds"},xSeconds:{one:"1 second",other:"{{count}} seconds"},halfAMinute:"half a minute",lessThanXMinutes:{one:"less than a minute",other:"less than {{count}} minutes"},xMinutes:{one:"1 minute",other:"{{count}} minutes"},aboutXHours:{one:"about 1 hour",other:"about {{count}} hours"},xHours:{one:"1 hour",other:"{{count}} hours"},xDays:{one:"1 day",other:"{{count}} days"},aboutXWeeks:{one:"about 1 week",other:"about {{count}} weeks"},xWeeks:{one:"1 week",other:"{{count}} weeks"},aboutXMonths:{one:"about 1 month",other:"about {{count}} months"},xMonths:{one:"1 month",other:"{{count}} months"},aboutXYears:{one:"about 1 year",other:"about {{count}} years"},xYears:{one:"1 year",other:"{{count}} years"},overXYears:{one:"over 1 year",other:"over {{count}} years"},almostXYears:{one:"almost 1 year",other:"almost {{count}} years"}},pV=(t,n,e)=>{let i,r=$Z[t];return typeof r=="string"?i=r:n===1?i=r.one:i=r.other.replace("{{count}}",n.toString()),e?.addSuffix?e.comparison&&e.comparison>0?"in "+i:i+" ago":i};function Xo(t){return(n={})=>{let e=n.width?String(n.width):t.defaultWidth;return t.formats[e]||t.formats[t.defaultWidth]}}var WZ={full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},GZ={full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},qZ={full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},fV={date:Xo({formats:WZ,defaultWidth:"full"}),time:Xo({formats:GZ,defaultWidth:"full"}),dateTime:Xo({formats:qZ,defaultWidth:"full"})};var YZ={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"},gV=(t,n,e,i)=>YZ[t];function Hn(t){return(n,e)=>{let i=e?.context?String(e.context):"standalone",r;if(i==="formatting"&&t.formattingValues){let a=t.defaultFormattingWidth||t.defaultWidth,s=e?.width?String(e.width):a;r=t.formattingValues[s]||t.formattingValues[a]}else{let a=t.defaultWidth,s=e?.width?String(e.width):t.defaultWidth;r=t.values[s]||t.values[a]}let o=t.argumentCallback?t.argumentCallback(n):n;return r[o]}}var QZ={narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},KZ={narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},ZZ={narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],wide:["January","February","March","April","May","June","July","August","September","October","November","December"]},XZ={narrow:["S","M","T","W","T","F","S"],short:["Su","Mo","Tu","We","Th","Fr","Sa"],abbreviated:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],wide:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},JZ={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"}},eX={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"}},tX=(t,n)=>{let e=Number(t),i=e%100;if(i>20||i<10)switch(i%10){case 1:return e+"st";case 2:return e+"nd";case 3:return e+"rd"}return e+"th"},_V={ordinalNumber:tX,era:Hn({values:QZ,defaultWidth:"wide"}),quarter:Hn({values:KZ,defaultWidth:"wide",argumentCallback:t=>t-1}),month:Hn({values:ZZ,defaultWidth:"wide"}),day:Hn({values:XZ,defaultWidth:"wide"}),dayPeriod:Hn({values:JZ,defaultWidth:"wide",formattingValues:eX,defaultFormattingWidth:"wide"})};function zn(t){return(n,e={})=>{let i=e.width,r=i&&t.matchPatterns[i]||t.matchPatterns[t.defaultMatchWidth],o=n.match(r);if(!o)return null;let a=o[0],s=i&&t.parsePatterns[i]||t.parsePatterns[t.defaultParseWidth],l=Array.isArray(s)?nX(s,p=>p.test(a)):iX(s,p=>p.test(a)),c;c=t.valueCallback?t.valueCallback(l):l,c=e.valueCallback?e.valueCallback(c):c;let d=n.slice(a.length);return{value:c,rest:d}}}function iX(t,n){for(let e in t)if(Object.prototype.hasOwnProperty.call(t,e)&&n(t[e]))return e}function nX(t,n){for(let e=0;e{let i=n.match(t.matchPattern);if(!i)return null;let r=i[0],o=n.match(t.parsePattern);if(!o)return null;let a=t.valueCallback?t.valueCallback(o[0]):o[0];a=e.valueCallback?e.valueCallback(a):a;let s=n.slice(r.length);return{value:a,rest:s}}}var rX=/^(\d+)(th|st|nd|rd)?/i,oX=/\d+/i,aX={narrow:/^(b|a)/i,abbreviated:/^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,wide:/^(before christ|before common era|anno domini|common era)/i},sX={any:[/^b/i,/^(a|c)/i]},lX={narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},cX={any:[/1/i,/2/i,/3/i,/4/i]},dX={narrow:/^[jfmasond]/i,abbreviated:/^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,wide:/^(january|february|march|april|may|june|july|august|september|october|november|december)/i},uX={narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ap/i,/^may/i,/^jun/i,/^jul/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},mX={narrow:/^[smtwf]/i,short:/^(su|mo|tu|we|th|fr|sa)/i,abbreviated:/^(sun|mon|tue|wed|thu|fri|sat)/i,wide:/^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i},hX={narrow:[/^s/i,/^m/i,/^t/i,/^w/i,/^t/i,/^f/i,/^s/i],any:[/^su/i,/^m/i,/^tu/i,/^w/i,/^th/i,/^f/i,/^sa/i]},pX={narrow:/^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,any:/^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i},fX={any:{am:/^a/i,pm:/^p/i,midnight:/^mi/i,noon:/^no/i,morning:/morning/i,afternoon:/afternoon/i,evening:/evening/i,night:/night/i}},bV={ordinalNumber:hh({matchPattern:rX,parsePattern:oX,valueCallback:t=>parseInt(t,10)}),era:zn({matchPatterns:aX,defaultMatchWidth:"wide",parsePatterns:sX,defaultParseWidth:"any"}),quarter:zn({matchPatterns:lX,defaultMatchWidth:"wide",parsePatterns:cX,defaultParseWidth:"any",valueCallback:t=>t+1}),month:zn({matchPatterns:dX,defaultMatchWidth:"wide",parsePatterns:uX,defaultParseWidth:"any"}),day:zn({matchPatterns:mX,defaultMatchWidth:"wide",parsePatterns:hX,defaultParseWidth:"any"}),dayPeriod:zn({matchPatterns:pX,defaultMatchWidth:"any",parsePatterns:fX,defaultParseWidth:"any"})};var su={code:"en-US",formatDistance:pV,formatLong:fV,formatRelative:gV,localize:_V,match:bV,options:{weekStartsOn:0,firstWeekContainsDate:1}};function vV(t,n){let e=Ie(t,n?.in);return sV(e,hV(e))+1}function ay(t,n){let e=Ie(t,n?.in),i=+Ra(e)-+lV(e);return Math.round(i/ty)+1}function ph(t,n){let e=Ie(t,n?.in),i=e.getFullYear(),r=Zo(),o=n?.firstWeekContainsDate??n?.locale?.options?.firstWeekContainsDate??r.firstWeekContainsDate??r.locale?.options?.firstWeekContainsDate??1,a=at(n?.in||t,0);a.setFullYear(i+1,0,o),a.setHours(0,0,0,0);let s=Jn(a,n),l=at(n?.in||t,0);l.setFullYear(i,0,o),l.setHours(0,0,0,0);let c=Jn(l,n);return+e>=+s?i+1:+e>=+c?i:i-1}function yV(t,n){let e=Zo(),i=n?.firstWeekContainsDate??n?.locale?.options?.firstWeekContainsDate??e.firstWeekContainsDate??e.locale?.options?.firstWeekContainsDate??1,r=ph(t,n),o=at(n?.in||t,0);return o.setFullYear(r,0,i),o.setHours(0,0,0,0),Jn(o,n)}function fh(t,n){let e=Ie(t,n?.in),i=+Jn(e,n)-+yV(e,n);return Math.round(i/ty)+1}function wt(t,n){let e=t<0?"-":"",i=Math.abs(t).toString().padStart(n,"0");return e+i}var ml={y(t,n){let e=t.getFullYear(),i=e>0?e:1-e;return wt(n==="yy"?i%100:i,n.length)},M(t,n){let e=t.getMonth();return n==="M"?String(e+1):wt(e+1,2)},d(t,n){return wt(t.getDate(),n.length)},a(t,n){let e=t.getHours()/12>=1?"pm":"am";switch(n){case"a":case"aa":return e.toUpperCase();case"aaa":return e;case"aaaaa":return e[0];case"aaaa":default:return e==="am"?"a.m.":"p.m."}},h(t,n){return wt(t.getHours()%12||12,n.length)},H(t,n){return wt(t.getHours(),n.length)},m(t,n){return wt(t.getMinutes(),n.length)},s(t,n){return wt(t.getSeconds(),n.length)},S(t,n){let e=n.length,i=t.getMilliseconds(),r=Math.trunc(i*Math.pow(10,e-3));return wt(r,n.length)}};var gh={am:"am",pm:"pm",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},BS={G:function(t,n,e){let i=t.getFullYear()>0?1:0;switch(n){case"G":case"GG":case"GGG":return e.era(i,{width:"abbreviated"});case"GGGGG":return e.era(i,{width:"narrow"});case"GGGG":default:return e.era(i,{width:"wide"})}},y:function(t,n,e){if(n==="yo"){let i=t.getFullYear(),r=i>0?i:1-i;return e.ordinalNumber(r,{unit:"year"})}return ml.y(t,n)},Y:function(t,n,e,i){let r=ph(t,i),o=r>0?r:1-r;if(n==="YY"){let a=o%100;return wt(a,2)}return n==="Yo"?e.ordinalNumber(o,{unit:"year"}):wt(o,n.length)},R:function(t,n){let e=ny(t);return wt(e,n.length)},u:function(t,n){let e=t.getFullYear();return wt(e,n.length)},Q:function(t,n,e){let i=Math.ceil((t.getMonth()+1)/3);switch(n){case"Q":return String(i);case"QQ":return wt(i,2);case"Qo":return e.ordinalNumber(i,{unit:"quarter"});case"QQQ":return e.quarter(i,{width:"abbreviated",context:"formatting"});case"QQQQQ":return e.quarter(i,{width:"narrow",context:"formatting"});case"QQQQ":default:return e.quarter(i,{width:"wide",context:"formatting"})}},q:function(t,n,e){let i=Math.ceil((t.getMonth()+1)/3);switch(n){case"q":return String(i);case"qq":return wt(i,2);case"qo":return e.ordinalNumber(i,{unit:"quarter"});case"qqq":return e.quarter(i,{width:"abbreviated",context:"standalone"});case"qqqqq":return e.quarter(i,{width:"narrow",context:"standalone"});case"qqqq":default:return e.quarter(i,{width:"wide",context:"standalone"})}},M:function(t,n,e){let i=t.getMonth();switch(n){case"M":case"MM":return ml.M(t,n);case"Mo":return e.ordinalNumber(i+1,{unit:"month"});case"MMM":return e.month(i,{width:"abbreviated",context:"formatting"});case"MMMMM":return e.month(i,{width:"narrow",context:"formatting"});case"MMMM":default:return e.month(i,{width:"wide",context:"formatting"})}},L:function(t,n,e){let i=t.getMonth();switch(n){case"L":return String(i+1);case"LL":return wt(i+1,2);case"Lo":return e.ordinalNumber(i+1,{unit:"month"});case"LLL":return e.month(i,{width:"abbreviated",context:"standalone"});case"LLLLL":return e.month(i,{width:"narrow",context:"standalone"});case"LLLL":default:return e.month(i,{width:"wide",context:"standalone"})}},w:function(t,n,e,i){let r=fh(t,i);return n==="wo"?e.ordinalNumber(r,{unit:"week"}):wt(r,n.length)},I:function(t,n,e){let i=ay(t);return n==="Io"?e.ordinalNumber(i,{unit:"week"}):wt(i,n.length)},d:function(t,n,e){return n==="do"?e.ordinalNumber(t.getDate(),{unit:"date"}):ml.d(t,n)},D:function(t,n,e){let i=vV(t);return n==="Do"?e.ordinalNumber(i,{unit:"dayOfYear"}):wt(i,n.length)},E:function(t,n,e){let i=t.getDay();switch(n){case"E":case"EE":case"EEE":return e.day(i,{width:"abbreviated",context:"formatting"});case"EEEEE":return e.day(i,{width:"narrow",context:"formatting"});case"EEEEEE":return e.day(i,{width:"short",context:"formatting"});case"EEEE":default:return e.day(i,{width:"wide",context:"formatting"})}},e:function(t,n,e,i){let r=t.getDay(),o=(r-i.weekStartsOn+8)%7||7;switch(n){case"e":return String(o);case"ee":return wt(o,2);case"eo":return e.ordinalNumber(o,{unit:"day"});case"eee":return e.day(r,{width:"abbreviated",context:"formatting"});case"eeeee":return e.day(r,{width:"narrow",context:"formatting"});case"eeeeee":return e.day(r,{width:"short",context:"formatting"});case"eeee":default:return e.day(r,{width:"wide",context:"formatting"})}},c:function(t,n,e,i){let r=t.getDay(),o=(r-i.weekStartsOn+8)%7||7;switch(n){case"c":return String(o);case"cc":return wt(o,n.length);case"co":return e.ordinalNumber(o,{unit:"day"});case"ccc":return e.day(r,{width:"abbreviated",context:"standalone"});case"ccccc":return e.day(r,{width:"narrow",context:"standalone"});case"cccccc":return e.day(r,{width:"short",context:"standalone"});case"cccc":default:return e.day(r,{width:"wide",context:"standalone"})}},i:function(t,n,e){let i=t.getDay(),r=i===0?7:i;switch(n){case"i":return String(r);case"ii":return wt(r,n.length);case"io":return e.ordinalNumber(r,{unit:"day"});case"iii":return e.day(i,{width:"abbreviated",context:"formatting"});case"iiiii":return e.day(i,{width:"narrow",context:"formatting"});case"iiiiii":return e.day(i,{width:"short",context:"formatting"});case"iiii":default:return e.day(i,{width:"wide",context:"formatting"})}},a:function(t,n,e){let r=t.getHours()/12>=1?"pm":"am";switch(n){case"a":case"aa":return e.dayPeriod(r,{width:"abbreviated",context:"formatting"});case"aaa":return e.dayPeriod(r,{width:"abbreviated",context:"formatting"}).toLowerCase();case"aaaaa":return e.dayPeriod(r,{width:"narrow",context:"formatting"});case"aaaa":default:return e.dayPeriod(r,{width:"wide",context:"formatting"})}},b:function(t,n,e){let i=t.getHours(),r;switch(i===12?r=gh.noon:i===0?r=gh.midnight:r=i/12>=1?"pm":"am",n){case"b":case"bb":return e.dayPeriod(r,{width:"abbreviated",context:"formatting"});case"bbb":return e.dayPeriod(r,{width:"abbreviated",context:"formatting"}).toLowerCase();case"bbbbb":return e.dayPeriod(r,{width:"narrow",context:"formatting"});case"bbbb":default:return e.dayPeriod(r,{width:"wide",context:"formatting"})}},B:function(t,n,e){let i=t.getHours(),r;switch(i>=17?r=gh.evening:i>=12?r=gh.afternoon:i>=4?r=gh.morning:r=gh.night,n){case"B":case"BB":case"BBB":return e.dayPeriod(r,{width:"abbreviated",context:"formatting"});case"BBBBB":return e.dayPeriod(r,{width:"narrow",context:"formatting"});case"BBBB":default:return e.dayPeriod(r,{width:"wide",context:"formatting"})}},h:function(t,n,e){if(n==="ho"){let i=t.getHours()%12;return i===0&&(i=12),e.ordinalNumber(i,{unit:"hour"})}return ml.h(t,n)},H:function(t,n,e){return n==="Ho"?e.ordinalNumber(t.getHours(),{unit:"hour"}):ml.H(t,n)},K:function(t,n,e){let i=t.getHours()%12;return n==="Ko"?e.ordinalNumber(i,{unit:"hour"}):wt(i,n.length)},k:function(t,n,e){let i=t.getHours();return i===0&&(i=24),n==="ko"?e.ordinalNumber(i,{unit:"hour"}):wt(i,n.length)},m:function(t,n,e){return n==="mo"?e.ordinalNumber(t.getMinutes(),{unit:"minute"}):ml.m(t,n)},s:function(t,n,e){return n==="so"?e.ordinalNumber(t.getSeconds(),{unit:"second"}):ml.s(t,n)},S:function(t,n){return ml.S(t,n)},X:function(t,n,e){let i=t.getTimezoneOffset();if(i===0)return"Z";switch(n){case"X":return CV(i);case"XXXX":case"XX":return lu(i);case"XXXXX":case"XXX":default:return lu(i,":")}},x:function(t,n,e){let i=t.getTimezoneOffset();switch(n){case"x":return CV(i);case"xxxx":case"xx":return lu(i);case"xxxxx":case"xxx":default:return lu(i,":")}},O:function(t,n,e){let i=t.getTimezoneOffset();switch(n){case"O":case"OO":case"OOO":return"GMT"+xV(i,":");case"OOOO":default:return"GMT"+lu(i,":")}},z:function(t,n,e){let i=t.getTimezoneOffset();switch(n){case"z":case"zz":case"zzz":return"GMT"+xV(i,":");case"zzzz":default:return"GMT"+lu(i,":")}},t:function(t,n,e){let i=Math.trunc(+t/1e3);return wt(i,n.length)},T:function(t,n,e){return wt(+t,n.length)}};function xV(t,n=""){let e=t>0?"-":"+",i=Math.abs(t),r=Math.trunc(i/60),o=i%60;return o===0?e+String(r):e+String(r)+n+wt(o,2)}function CV(t,n){return t%60===0?(t>0?"-":"+")+wt(Math.abs(t)/60,2):lu(t,n)}function lu(t,n=""){let e=t>0?"-":"+",i=Math.abs(t),r=wt(Math.trunc(i/60),2),o=wt(i%60,2);return e+r+n+o}var wV=(t,n)=>{switch(t){case"P":return n.date({width:"short"});case"PP":return n.date({width:"medium"});case"PPP":return n.date({width:"long"});case"PPPP":default:return n.date({width:"full"})}},DV=(t,n)=>{switch(t){case"p":return n.time({width:"short"});case"pp":return n.time({width:"medium"});case"ppp":return n.time({width:"long"});case"pppp":default:return n.time({width:"full"})}},gX=(t,n)=>{let e=t.match(/(P+)(p+)?/)||[],i=e[1],r=e[2];if(!r)return wV(t,n);let o;switch(i){case"P":o=n.dateTime({width:"short"});break;case"PP":o=n.dateTime({width:"medium"});break;case"PPP":o=n.dateTime({width:"long"});break;case"PPPP":default:o=n.dateTime({width:"full"});break}return o.replace("{{date}}",wV(i,n)).replace("{{time}}",DV(r,n))},ig={p:DV,P:gX};var _X=/^D+$/,bX=/^Y+$/,vX=["D","DD","YY","YYYY"];function sy(t){return _X.test(t)}function ly(t){return bX.test(t)}function ng(t,n,e){let i=yX(t,n,e);if(console.warn(i),vX.includes(t))throw new RangeError(i)}function yX(t,n,e){let i=t[0]==="Y"?"years":"days of the month";return`Use \`${t.toLowerCase()}\` instead of \`${t}\` (in \`${n}\`) for formatting ${i} to the input \`${e}\`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md`}var xX=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,CX=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,wX=/^'([^]*?)'?$/,DX=/''/g,EX=/[a-zA-Z]/;function EV(t,n,e){let i=Zo(),r=e?.locale??i.locale??su,o=e?.firstWeekContainsDate??e?.locale?.options?.firstWeekContainsDate??i.firstWeekContainsDate??i.locale?.options?.firstWeekContainsDate??1,a=e?.weekStartsOn??e?.locale?.options?.weekStartsOn??i.weekStartsOn??i.locale?.options?.weekStartsOn??0,s=Ie(t,e?.in);if(!mh(s))throw new RangeError("Invalid time value");let l=n.match(CX).map(d=>{let p=d[0];if(p==="p"||p==="P"){let _=ig[p];return _(d,r.formatLong)}return d}).join("").match(xX).map(d=>{if(d==="''")return{isToken:!1,value:"'"};let p=d[0];if(p==="'")return{isToken:!1,value:MX(d)};if(BS[p])return{isToken:!0,value:d};if(p.match(EX))throw new RangeError("Format string contains an unescaped latin alphabet character `"+p+"`");return{isToken:!1,value:d}});r.localize.preprocessor&&(l=r.localize.preprocessor(s,l));let c={firstWeekContainsDate:o,weekStartsOn:a,locale:r};return l.map(d=>{if(!d.isToken)return d.value;let p=d.value;(!e?.useAdditionalWeekYearTokens&&ly(p)||!e?.useAdditionalDayOfYearTokens&&sy(p))&&ng(p,n,String(t));let _=BS[p[0]];return _(s,p,r.localize,c)}).join("")}function MX(t){let n=t.match(wX);return n?n[1].replace(DX,"'"):t}function MV(t,n){let e=Ie(t,n?.in);if(isNaN(+e))throw new RangeError("Invalid time value");let i=n?.format??"extended",r=n?.representation??"complete",o="",a="",s=i==="extended"?"-":"",l=i==="extended"?":":"";if(r!=="time"){let c=wt(e.getDate(),2),d=wt(e.getMonth()+1,2);o=`${wt(e.getFullYear(),4)}${s}${d}${s}${c}`}if(r!=="date"){let c=e.getTimezoneOffset();if(c!==0){let w=Math.abs(c),C=wt(Math.trunc(w/60),2),D=wt(w%60,2);a=`${c<0?"+":"-"}${C}:${D}`}else a="Z";let d=wt(e.getHours(),2),p=wt(e.getMinutes(),2),_=wt(e.getSeconds(),2),b=o===""?"":"T",y=[d,p,_].join(l);o=`${o}${b}${y}${a}`}return o}function SV(t,n){return Ie(t,n?.in).getDate()}function kV(t,n){return Ie(t,n?.in).getDay()}function cy(t,n){let e=Ie(t,n?.in),i=e.getFullYear(),r=e.getMonth(),o=at(e,0);return o.setFullYear(i,r+1,0),o.setHours(0,0,0,0),o.getDate()}function TV(){return Object.assign({},Zo())}function dy(t,n){return Ie(t,n?.in).getHours()}function IV(t,n){let e=Ie(t,n?.in).getDay();return e===0?7:e}function uy(t,n){return Ie(t,n?.in).getMinutes()}function AV(t,n){return Ie(t,n?.in).getMonth()}function OV(t){return Ie(t).getSeconds()}function RV(t,n){return Ie(t,n?.in).getFullYear()}function PV(t,n){let e=SX(n)?new n(0):at(n,0);return e.setFullYear(t.getFullYear(),t.getMonth(),t.getDate()),e.setHours(t.getHours(),t.getMinutes(),t.getSeconds(),t.getMilliseconds()),e}function SX(t){return typeof t=="function"&&t.prototype?.constructor===t}var kX=10,my=class{subPriority=0;validate(n,e){return!0}},hy=class extends my{constructor(n,e,i,r,o){super(),this.value=n,this.validateValue=e,this.setValue=i,this.priority=r,o&&(this.subPriority=o)}validate(n,e){return this.validateValue(n,this.value,e)}set(n,e,i){return this.setValue(n,e,this.value,i)}},py=class extends my{priority=kX;subPriority=-1;constructor(n,e){super(),this.context=n||(i=>at(e,i))}set(n,e){return e.timestampIsSet?n:at(n,PV(n,this.context))}};var Pe=class{run(n,e,i,r){let o=this.parse(n,e,i,r);return o?{setter:new hy(o.value,this.validate,this.set,this.priority,this.subPriority),rest:o.rest}:null}validate(n,e,i){return!0}};var fy=class extends Pe{priority=140;parse(n,e,i){switch(e){case"G":case"GG":case"GGG":return i.era(n,{width:"abbreviated"})||i.era(n,{width:"narrow"});case"GGGGG":return i.era(n,{width:"narrow"});case"GGGG":default:return i.era(n,{width:"wide"})||i.era(n,{width:"abbreviated"})||i.era(n,{width:"narrow"})}}set(n,e,i){return e.era=i,n.setFullYear(i,0,1),n.setHours(0,0,0,0),n}incompatibleTokens=["R","u","t","T"]};var jt={month:/^(1[0-2]|0?\d)/,date:/^(3[0-1]|[0-2]?\d)/,dayOfYear:/^(36[0-6]|3[0-5]\d|[0-2]?\d?\d)/,week:/^(5[0-3]|[0-4]?\d)/,hour23h:/^(2[0-3]|[0-1]?\d)/,hour24h:/^(2[0-4]|[0-1]?\d)/,hour11h:/^(1[0-1]|0?\d)/,hour12h:/^(1[0-2]|0?\d)/,minute:/^[0-5]?\d/,second:/^[0-5]?\d/,singleDigit:/^\d/,twoDigits:/^\d{1,2}/,threeDigits:/^\d{1,3}/,fourDigits:/^\d{1,4}/,anyDigitsSigned:/^-?\d+/,singleDigitSigned:/^-?\d/,twoDigitsSigned:/^-?\d{1,2}/,threeDigitsSigned:/^-?\d{1,3}/,fourDigitsSigned:/^-?\d{1,4}/},Jo={basicOptionalMinutes:/^([+-])(\d{2})(\d{2})?|Z/,basic:/^([+-])(\d{2})(\d{2})|Z/,basicOptionalSeconds:/^([+-])(\d{2})(\d{2})((\d{2}))?|Z/,extended:/^([+-])(\d{2}):(\d{2})|Z/,extendedOptionalSeconds:/^([+-])(\d{2}):(\d{2})(:(\d{2}))?|Z/};function di(t,n){return t&&{value:n(t.value),rest:t.rest}}function Vt(t,n){let e=n.match(t);return e?{value:parseInt(e[0],10),rest:n.slice(e[0].length)}:null}function ea(t,n){let e=n.match(t);if(!e)return null;if(e[0]==="Z")return{value:0,rest:n.slice(1)};let i=e[1]==="+"?1:-1,r=e[2]?parseInt(e[2],10):0,o=e[3]?parseInt(e[3],10):0,a=e[5]?parseInt(e[5],10):0;return{value:i*(r*ou+o*ru+a*rV),rest:n.slice(e[0].length)}}function gy(t){return Vt(jt.anyDigitsSigned,t)}function bt(t,n){switch(t){case 1:return Vt(jt.singleDigit,n);case 2:return Vt(jt.twoDigits,n);case 3:return Vt(jt.threeDigits,n);case 4:return Vt(jt.fourDigits,n);default:return Vt(new RegExp("^\\d{1,"+t+"}"),n)}}function _h(t,n){switch(t){case 1:return Vt(jt.singleDigitSigned,n);case 2:return Vt(jt.twoDigitsSigned,n);case 3:return Vt(jt.threeDigitsSigned,n);case 4:return Vt(jt.fourDigitsSigned,n);default:return Vt(new RegExp("^-?\\d{1,"+t+"}"),n)}}function bh(t){switch(t){case"morning":return 4;case"evening":return 17;case"pm":case"noon":case"afternoon":return 12;case"am":case"midnight":case"night":default:return 0}}function _y(t,n){let e=n>0,i=e?n:1-n,r;if(i<=50)r=t||100;else{let o=i+50,a=Math.trunc(o/100)*100,s=t>=o%100;r=t+a-(s?100:0)}return e?r:1-r}function by(t){return t%400===0||t%4===0&&t%100!==0}var vy=class extends Pe{priority=130;incompatibleTokens=["Y","R","u","w","I","i","e","c","t","T"];parse(n,e,i){let r=o=>({year:o,isTwoDigitYear:e==="yy"});switch(e){case"y":return di(bt(4,n),r);case"yo":return di(i.ordinalNumber(n,{unit:"year"}),r);default:return di(bt(e.length,n),r)}}validate(n,e){return e.isTwoDigitYear||e.year>0}set(n,e,i){let r=n.getFullYear();if(i.isTwoDigitYear){let a=_y(i.year,r);return n.setFullYear(a,0,1),n.setHours(0,0,0,0),n}let o=!("era"in e)||e.era===1?i.year:1-i.year;return n.setFullYear(o,0,1),n.setHours(0,0,0,0),n}};var yy=class extends Pe{priority=130;parse(n,e,i){let r=o=>({year:o,isTwoDigitYear:e==="YY"});switch(e){case"Y":return di(bt(4,n),r);case"Yo":return di(i.ordinalNumber(n,{unit:"year"}),r);default:return di(bt(e.length,n),r)}}validate(n,e){return e.isTwoDigitYear||e.year>0}set(n,e,i,r){let o=ph(n,r);if(i.isTwoDigitYear){let s=_y(i.year,o);return n.setFullYear(s,0,r.firstWeekContainsDate),n.setHours(0,0,0,0),Jn(n,r)}let a=!("era"in e)||e.era===1?i.year:1-i.year;return n.setFullYear(a,0,r.firstWeekContainsDate),n.setHours(0,0,0,0),Jn(n,r)}incompatibleTokens=["y","R","u","Q","q","M","L","I","d","D","i","t","T"]};var xy=class extends Pe{priority=130;parse(n,e){return e==="R"?_h(4,n):_h(e.length,n)}set(n,e,i){let r=at(n,0);return r.setFullYear(i,0,4),r.setHours(0,0,0,0),Ra(r)}incompatibleTokens=["G","y","Y","u","Q","q","M","L","w","d","D","e","c","t","T"]};var Cy=class extends Pe{priority=130;parse(n,e){return e==="u"?_h(4,n):_h(e.length,n)}set(n,e,i){return n.setFullYear(i,0,1),n.setHours(0,0,0,0),n}incompatibleTokens=["G","y","Y","R","w","I","i","e","c","t","T"]};var wy=class extends Pe{priority=120;parse(n,e,i){switch(e){case"Q":case"QQ":return bt(e.length,n);case"Qo":return i.ordinalNumber(n,{unit:"quarter"});case"QQQ":return i.quarter(n,{width:"abbreviated",context:"formatting"})||i.quarter(n,{width:"narrow",context:"formatting"});case"QQQQQ":return i.quarter(n,{width:"narrow",context:"formatting"});case"QQQQ":default:return i.quarter(n,{width:"wide",context:"formatting"})||i.quarter(n,{width:"abbreviated",context:"formatting"})||i.quarter(n,{width:"narrow",context:"formatting"})}}validate(n,e){return e>=1&&e<=4}set(n,e,i){return n.setMonth((i-1)*3,1),n.setHours(0,0,0,0),n}incompatibleTokens=["Y","R","q","M","L","w","I","d","D","i","e","c","t","T"]};var Dy=class extends Pe{priority=120;parse(n,e,i){switch(e){case"q":case"qq":return bt(e.length,n);case"qo":return i.ordinalNumber(n,{unit:"quarter"});case"qqq":return i.quarter(n,{width:"abbreviated",context:"standalone"})||i.quarter(n,{width:"narrow",context:"standalone"});case"qqqqq":return i.quarter(n,{width:"narrow",context:"standalone"});case"qqqq":default:return i.quarter(n,{width:"wide",context:"standalone"})||i.quarter(n,{width:"abbreviated",context:"standalone"})||i.quarter(n,{width:"narrow",context:"standalone"})}}validate(n,e){return e>=1&&e<=4}set(n,e,i){return n.setMonth((i-1)*3,1),n.setHours(0,0,0,0),n}incompatibleTokens=["Y","R","Q","M","L","w","I","d","D","i","e","c","t","T"]};var Ey=class extends Pe{incompatibleTokens=["Y","R","q","Q","L","w","I","D","i","e","c","t","T"];priority=110;parse(n,e,i){let r=o=>o-1;switch(e){case"M":return di(Vt(jt.month,n),r);case"MM":return di(bt(2,n),r);case"Mo":return di(i.ordinalNumber(n,{unit:"month"}),r);case"MMM":return i.month(n,{width:"abbreviated",context:"formatting"})||i.month(n,{width:"narrow",context:"formatting"});case"MMMMM":return i.month(n,{width:"narrow",context:"formatting"});case"MMMM":default:return i.month(n,{width:"wide",context:"formatting"})||i.month(n,{width:"abbreviated",context:"formatting"})||i.month(n,{width:"narrow",context:"formatting"})}}validate(n,e){return e>=0&&e<=11}set(n,e,i){return n.setMonth(i,1),n.setHours(0,0,0,0),n}};var My=class extends Pe{priority=110;parse(n,e,i){let r=o=>o-1;switch(e){case"L":return di(Vt(jt.month,n),r);case"LL":return di(bt(2,n),r);case"Lo":return di(i.ordinalNumber(n,{unit:"month"}),r);case"LLL":return i.month(n,{width:"abbreviated",context:"standalone"})||i.month(n,{width:"narrow",context:"standalone"});case"LLLLL":return i.month(n,{width:"narrow",context:"standalone"});case"LLLL":default:return i.month(n,{width:"wide",context:"standalone"})||i.month(n,{width:"abbreviated",context:"standalone"})||i.month(n,{width:"narrow",context:"standalone"})}}validate(n,e){return e>=0&&e<=11}set(n,e,i){return n.setMonth(i,1),n.setHours(0,0,0,0),n}incompatibleTokens=["Y","R","q","Q","M","w","I","D","i","e","c","t","T"]};function FV(t,n,e){let i=Ie(t,e?.in),r=fh(i,e)-n;return i.setDate(i.getDate()-r*7),Ie(i,e?.in)}var Sy=class extends Pe{priority=100;parse(n,e,i){switch(e){case"w":return Vt(jt.week,n);case"wo":return i.ordinalNumber(n,{unit:"week"});default:return bt(e.length,n)}}validate(n,e){return e>=1&&e<=53}set(n,e,i,r){return Jn(FV(n,i,r),r)}incompatibleTokens=["y","R","u","q","Q","M","L","I","d","D","i","t","T"]};function NV(t,n,e){let i=Ie(t,e?.in),r=ay(i,e)-n;return i.setDate(i.getDate()-r*7),i}var ky=class extends Pe{priority=100;parse(n,e,i){switch(e){case"I":return Vt(jt.week,n);case"Io":return i.ordinalNumber(n,{unit:"week"});default:return bt(e.length,n)}}validate(n,e){return e>=1&&e<=53}set(n,e,i){return Ra(NV(n,i))}incompatibleTokens=["y","Y","u","q","Q","M","L","w","d","D","e","c","t","T"]};var TX=[31,28,31,30,31,30,31,31,30,31,30,31],IX=[31,29,31,30,31,30,31,31,30,31,30,31],Ty=class extends Pe{priority=90;subPriority=1;parse(n,e,i){switch(e){case"d":return Vt(jt.date,n);case"do":return i.ordinalNumber(n,{unit:"date"});default:return bt(e.length,n)}}validate(n,e){let i=n.getFullYear(),r=by(i),o=n.getMonth();return r?e>=1&&e<=IX[o]:e>=1&&e<=TX[o]}set(n,e,i){return n.setDate(i),n.setHours(0,0,0,0),n}incompatibleTokens=["Y","R","q","Q","w","I","D","i","e","c","t","T"]};var Iy=class extends Pe{priority=90;subpriority=1;parse(n,e,i){switch(e){case"D":case"DD":return Vt(jt.dayOfYear,n);case"Do":return i.ordinalNumber(n,{unit:"date"});default:return bt(e.length,n)}}validate(n,e){let i=n.getFullYear();return by(i)?e>=1&&e<=366:e>=1&&e<=365}set(n,e,i){return n.setMonth(0,i),n.setHours(0,0,0,0),n}incompatibleTokens=["Y","R","q","Q","M","L","w","I","d","E","i","e","c","t","T"]};function vh(t,n,e){let i=Zo(),r=e?.weekStartsOn??e?.locale?.options?.weekStartsOn??i.weekStartsOn??i.locale?.options?.weekStartsOn??0,o=Ie(t,e?.in),a=o.getDay(),l=(n%7+7)%7,c=7-r,d=n<0||n>6?n-(a+c)%7:(l+c)%7-(a+c)%7;return dh(o,d,e)}var Ay=class extends Pe{priority=90;parse(n,e,i){switch(e){case"E":case"EE":case"EEE":return i.day(n,{width:"abbreviated",context:"formatting"})||i.day(n,{width:"short",context:"formatting"})||i.day(n,{width:"narrow",context:"formatting"});case"EEEEE":return i.day(n,{width:"narrow",context:"formatting"});case"EEEEEE":return i.day(n,{width:"short",context:"formatting"})||i.day(n,{width:"narrow",context:"formatting"});case"EEEE":default:return i.day(n,{width:"wide",context:"formatting"})||i.day(n,{width:"abbreviated",context:"formatting"})||i.day(n,{width:"short",context:"formatting"})||i.day(n,{width:"narrow",context:"formatting"})}}validate(n,e){return e>=0&&e<=6}set(n,e,i,r){return n=vh(n,i,r),n.setHours(0,0,0,0),n}incompatibleTokens=["D","i","e","c","t","T"]};var Oy=class extends Pe{priority=90;parse(n,e,i,r){let o=a=>{let s=Math.floor((a-1)/7)*7;return(a+r.weekStartsOn+6)%7+s};switch(e){case"e":case"ee":return di(bt(e.length,n),o);case"eo":return di(i.ordinalNumber(n,{unit:"day"}),o);case"eee":return i.day(n,{width:"abbreviated",context:"formatting"})||i.day(n,{width:"short",context:"formatting"})||i.day(n,{width:"narrow",context:"formatting"});case"eeeee":return i.day(n,{width:"narrow",context:"formatting"});case"eeeeee":return i.day(n,{width:"short",context:"formatting"})||i.day(n,{width:"narrow",context:"formatting"});case"eeee":default:return i.day(n,{width:"wide",context:"formatting"})||i.day(n,{width:"abbreviated",context:"formatting"})||i.day(n,{width:"short",context:"formatting"})||i.day(n,{width:"narrow",context:"formatting"})}}validate(n,e){return e>=0&&e<=6}set(n,e,i,r){return n=vh(n,i,r),n.setHours(0,0,0,0),n}incompatibleTokens=["y","R","u","q","Q","M","L","I","d","D","E","i","c","t","T"]};var Ry=class extends Pe{priority=90;parse(n,e,i,r){let o=a=>{let s=Math.floor((a-1)/7)*7;return(a+r.weekStartsOn+6)%7+s};switch(e){case"c":case"cc":return di(bt(e.length,n),o);case"co":return di(i.ordinalNumber(n,{unit:"day"}),o);case"ccc":return i.day(n,{width:"abbreviated",context:"standalone"})||i.day(n,{width:"short",context:"standalone"})||i.day(n,{width:"narrow",context:"standalone"});case"ccccc":return i.day(n,{width:"narrow",context:"standalone"});case"cccccc":return i.day(n,{width:"short",context:"standalone"})||i.day(n,{width:"narrow",context:"standalone"});case"cccc":default:return i.day(n,{width:"wide",context:"standalone"})||i.day(n,{width:"abbreviated",context:"standalone"})||i.day(n,{width:"short",context:"standalone"})||i.day(n,{width:"narrow",context:"standalone"})}}validate(n,e){return e>=0&&e<=6}set(n,e,i,r){return n=vh(n,i,r),n.setHours(0,0,0,0),n}incompatibleTokens=["y","R","u","q","Q","M","L","I","d","D","E","i","e","t","T"]};function LV(t,n,e){let i=Ie(t,e?.in),r=IV(i,e),o=n-r;return dh(i,o,e)}var Py=class extends Pe{priority=90;parse(n,e,i){let r=o=>o===0?7:o;switch(e){case"i":case"ii":return bt(e.length,n);case"io":return i.ordinalNumber(n,{unit:"day"});case"iii":return di(i.day(n,{width:"abbreviated",context:"formatting"})||i.day(n,{width:"short",context:"formatting"})||i.day(n,{width:"narrow",context:"formatting"}),r);case"iiiii":return di(i.day(n,{width:"narrow",context:"formatting"}),r);case"iiiiii":return di(i.day(n,{width:"short",context:"formatting"})||i.day(n,{width:"narrow",context:"formatting"}),r);case"iiii":default:return di(i.day(n,{width:"wide",context:"formatting"})||i.day(n,{width:"abbreviated",context:"formatting"})||i.day(n,{width:"short",context:"formatting"})||i.day(n,{width:"narrow",context:"formatting"}),r)}}validate(n,e){return e>=1&&e<=7}set(n,e,i){return n=LV(n,i),n.setHours(0,0,0,0),n}incompatibleTokens=["y","Y","u","q","Q","M","L","w","d","D","E","e","c","t","T"]};var Fy=class extends Pe{priority=80;parse(n,e,i){switch(e){case"a":case"aa":case"aaa":return i.dayPeriod(n,{width:"abbreviated",context:"formatting"})||i.dayPeriod(n,{width:"narrow",context:"formatting"});case"aaaaa":return i.dayPeriod(n,{width:"narrow",context:"formatting"});case"aaaa":default:return i.dayPeriod(n,{width:"wide",context:"formatting"})||i.dayPeriod(n,{width:"abbreviated",context:"formatting"})||i.dayPeriod(n,{width:"narrow",context:"formatting"})}}set(n,e,i){return n.setHours(bh(i),0,0,0),n}incompatibleTokens=["b","B","H","k","t","T"]};var Ny=class extends Pe{priority=80;parse(n,e,i){switch(e){case"b":case"bb":case"bbb":return i.dayPeriod(n,{width:"abbreviated",context:"formatting"})||i.dayPeriod(n,{width:"narrow",context:"formatting"});case"bbbbb":return i.dayPeriod(n,{width:"narrow",context:"formatting"});case"bbbb":default:return i.dayPeriod(n,{width:"wide",context:"formatting"})||i.dayPeriod(n,{width:"abbreviated",context:"formatting"})||i.dayPeriod(n,{width:"narrow",context:"formatting"})}}set(n,e,i){return n.setHours(bh(i),0,0,0),n}incompatibleTokens=["a","B","H","k","t","T"]};var Ly=class extends Pe{priority=80;parse(n,e,i){switch(e){case"B":case"BB":case"BBB":return i.dayPeriod(n,{width:"abbreviated",context:"formatting"})||i.dayPeriod(n,{width:"narrow",context:"formatting"});case"BBBBB":return i.dayPeriod(n,{width:"narrow",context:"formatting"});case"BBBB":default:return i.dayPeriod(n,{width:"wide",context:"formatting"})||i.dayPeriod(n,{width:"abbreviated",context:"formatting"})||i.dayPeriod(n,{width:"narrow",context:"formatting"})}}set(n,e,i){return n.setHours(bh(i),0,0,0),n}incompatibleTokens=["a","b","t","T"]};var Vy=class extends Pe{priority=70;parse(n,e,i){switch(e){case"h":return Vt(jt.hour12h,n);case"ho":return i.ordinalNumber(n,{unit:"hour"});default:return bt(e.length,n)}}validate(n,e){return e>=1&&e<=12}set(n,e,i){let r=n.getHours()>=12;return r&&i<12?n.setHours(i+12,0,0,0):!r&&i===12?n.setHours(0,0,0,0):n.setHours(i,0,0,0),n}incompatibleTokens=["H","K","k","t","T"]};var By=class extends Pe{priority=70;parse(n,e,i){switch(e){case"H":return Vt(jt.hour23h,n);case"Ho":return i.ordinalNumber(n,{unit:"hour"});default:return bt(e.length,n)}}validate(n,e){return e>=0&&e<=23}set(n,e,i){return n.setHours(i,0,0,0),n}incompatibleTokens=["a","b","h","K","k","t","T"]};var jy=class extends Pe{priority=70;parse(n,e,i){switch(e){case"K":return Vt(jt.hour11h,n);case"Ko":return i.ordinalNumber(n,{unit:"hour"});default:return bt(e.length,n)}}validate(n,e){return e>=0&&e<=11}set(n,e,i){return n.getHours()>=12&&i<12?n.setHours(i+12,0,0,0):n.setHours(i,0,0,0),n}incompatibleTokens=["h","H","k","t","T"]};var Hy=class extends Pe{priority=70;parse(n,e,i){switch(e){case"k":return Vt(jt.hour24h,n);case"ko":return i.ordinalNumber(n,{unit:"hour"});default:return bt(e.length,n)}}validate(n,e){return e>=1&&e<=24}set(n,e,i){let r=i<=24?i%24:i;return n.setHours(r,0,0,0),n}incompatibleTokens=["a","b","h","H","K","t","T"]};var zy=class extends Pe{priority=60;parse(n,e,i){switch(e){case"m":return Vt(jt.minute,n);case"mo":return i.ordinalNumber(n,{unit:"minute"});default:return bt(e.length,n)}}validate(n,e){return e>=0&&e<=59}set(n,e,i){return n.setMinutes(i,0,0),n}incompatibleTokens=["t","T"]};var Uy=class extends Pe{priority=50;parse(n,e,i){switch(e){case"s":return Vt(jt.second,n);case"so":return i.ordinalNumber(n,{unit:"second"});default:return bt(e.length,n)}}validate(n,e){return e>=0&&e<=59}set(n,e,i){return n.setSeconds(i,0),n}incompatibleTokens=["t","T"]};var $y=class extends Pe{priority=30;parse(n,e){let i=r=>Math.trunc(r*Math.pow(10,-e.length+3));return di(bt(e.length,n),i)}set(n,e,i){return n.setMilliseconds(i),n}incompatibleTokens=["t","T"]};var Wy=class extends Pe{priority=10;parse(n,e){switch(e){case"X":return ea(Jo.basicOptionalMinutes,n);case"XX":return ea(Jo.basic,n);case"XXXX":return ea(Jo.basicOptionalSeconds,n);case"XXXXX":return ea(Jo.extendedOptionalSeconds,n);case"XXX":default:return ea(Jo.extended,n)}}set(n,e,i){return e.timestampIsSet?n:at(n,n.getTime()-au(n)-i)}incompatibleTokens=["t","T","x"]};var Gy=class extends Pe{priority=10;parse(n,e){switch(e){case"x":return ea(Jo.basicOptionalMinutes,n);case"xx":return ea(Jo.basic,n);case"xxxx":return ea(Jo.basicOptionalSeconds,n);case"xxxxx":return ea(Jo.extendedOptionalSeconds,n);case"xxx":default:return ea(Jo.extended,n)}}set(n,e,i){return e.timestampIsSet?n:at(n,n.getTime()-au(n)-i)}incompatibleTokens=["t","T","X"]};var qy=class extends Pe{priority=40;parse(n){return gy(n)}set(n,e,i){return[at(n,i*1e3),{timestampIsSet:!0}]}incompatibleTokens="*"};var Yy=class extends Pe{priority=20;parse(n){return gy(n)}set(n,e,i){return[at(n,i),{timestampIsSet:!0}]}incompatibleTokens="*"};var VV={G:new fy,y:new vy,Y:new yy,R:new xy,u:new Cy,Q:new wy,q:new Dy,M:new Ey,L:new My,w:new Sy,I:new ky,d:new Ty,D:new Iy,E:new Ay,e:new Oy,c:new Ry,i:new Py,a:new Fy,b:new Ny,B:new Ly,h:new Vy,H:new By,K:new jy,k:new Hy,m:new zy,s:new Uy,S:new $y,X:new Wy,x:new Gy,t:new qy,T:new Yy};var AX=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,OX=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,RX=/^'([^]*?)'?$/,PX=/''/g,FX=/\S/,NX=/[a-zA-Z]/;function BV(t,n,e,i){let r=()=>at(i?.in||e,NaN),o=TV(),a=i?.locale??o.locale??su,s=i?.firstWeekContainsDate??i?.locale?.options?.firstWeekContainsDate??o.firstWeekContainsDate??o.locale?.options?.firstWeekContainsDate??1,l=i?.weekStartsOn??i?.locale?.options?.weekStartsOn??o.weekStartsOn??o.locale?.options?.weekStartsOn??0;if(!n)return t?r():Ie(e,i?.in);let c={firstWeekContainsDate:s,weekStartsOn:l,locale:a},d=[new py(i?.in,e)],p=n.match(OX).map(C=>{let D=C[0];if(D in ig){let F=ig[D];return F(C,a.formatLong)}return C}).join("").match(AX),_=[];for(let C of p){!i?.useAdditionalWeekYearTokens&&ly(C)&&ng(C,n,t),!i?.useAdditionalDayOfYearTokens&&sy(C)&&ng(C,n,t);let D=C[0],F=VV[D];if(F){let{incompatibleTokens:W}=F;if(Array.isArray(W)){let K=_.find(oe=>W.includes(oe.token)||oe.token===D);if(K)throw new RangeError(`The format string mustn't contain \`${K.fullToken}\` and \`${C}\` at the same time`)}else if(F.incompatibleTokens==="*"&&_.length>0)throw new RangeError(`The format string mustn't contain \`${C}\` and any other token at the same time`);_.push({token:D,fullToken:C});let Z=F.run(t,C,a.match,c);if(!Z)return r();d.push(Z.setter),t=Z.rest}else{if(D.match(NX))throw new RangeError("Format string contains an unescaped latin alphabet character `"+D+"`");if(C==="''"?C="'":D==="'"&&(C=LX(C)),t.indexOf(C)===0)t=t.slice(C.length);else return r()}}if(t.length>0&&FX.test(t))return r();let b=d.map(C=>C.priority).sort((C,D)=>D-C).filter((C,D,F)=>F.indexOf(C)===D).map(C=>d.filter(D=>D.priority===C).sort((D,F)=>F.subPriority-D.subPriority)).map(C=>C[0]),y=Ie(e,i?.in);if(isNaN(+y))return r();let w={};for(let C of b){if(!C.validate(y,c))return r();let D=C.set(y,w,c);Array.isArray(D)?(y=D[0],Object.assign(w,D[1])):y=D}return y}function LX(t){return t.match(RX)[1].replace(PX,"'")}function jV(t,n,e){let[i,r]=ry(e?.in,t,n);return+Jn(i,e)==+Jn(r,e)}function HS(t,n){let e=()=>at(n?.in,NaN),i=n?.additionalDigits??2,r=HX(t),o;if(r.date){let c=zX(r.date,i);o=UX(c.restDateString,c.year)}if(!o||isNaN(+o))return e();let a=+o,s=0,l;if(r.time&&(s=$X(r.time),isNaN(s)))return e();if(r.timezone){if(l=WX(r.timezone),isNaN(l))return e()}else{let c=new Date(a+s),d=Ie(0,n?.in);return d.setFullYear(c.getUTCFullYear(),c.getUTCMonth(),c.getUTCDate()),d.setHours(c.getUTCHours(),c.getUTCMinutes(),c.getUTCSeconds(),c.getUTCMilliseconds()),d}return Ie(a+s+l,n?.in)}var Qy={dateTimeDelimiter:/[T ]/,timeZoneDelimiter:/[Z ]/i,timezone:/([Z+-].*)$/},VX=/^-?(?:(\d{3})|(\d{2})(?:-?(\d{2}))?|W(\d{2})(?:-?(\d{1}))?|)$/,BX=/^(\d{2}(?:[.,]\d*)?)(?::?(\d{2}(?:[.,]\d*)?))?(?::?(\d{2}(?:[.,]\d*)?))?$/,jX=/^([+-])(\d{2})(?::?(\d{2}))?$/;function HX(t){let n={},e=t.split(Qy.dateTimeDelimiter),i;if(e.length>2)return n;if(/:/.test(e[0])?i=e[0]:(n.date=e[0],i=e[1],Qy.timeZoneDelimiter.test(n.date)&&(n.date=t.split(Qy.timeZoneDelimiter)[0],i=t.substr(n.date.length,t.length))),i){let r=Qy.timezone.exec(i);r?(n.time=i.replace(r[1],""),n.timezone=r[1]):n.time=i}return n}function zX(t,n){let e=new RegExp("^(?:(\\d{4}|[+-]\\d{"+(4+n)+"})|(\\d{2}|[+-]\\d{"+(2+n)+"})$)"),i=t.match(e);if(!i)return{year:NaN,restDateString:""};let r=i[1]?parseInt(i[1]):null,o=i[2]?parseInt(i[2]):null;return{year:o===null?r:o*100,restDateString:t.slice((i[1]||i[2]).length)}}function UX(t,n){if(n===null)return new Date(NaN);let e=t.match(VX);if(!e)return new Date(NaN);let i=!!e[4],r=rg(e[1]),o=rg(e[2])-1,a=rg(e[3]),s=rg(e[4]),l=rg(e[5])-1;if(i)return KX(n,s,l)?GX(n,s,l):new Date(NaN);{let c=new Date(0);return!YX(n,o,a)||!QX(n,r)?new Date(NaN):(c.setUTCFullYear(n,o,Math.max(r,a)),c)}}function rg(t){return t?parseInt(t):1}function $X(t){let n=t.match(BX);if(!n)return NaN;let e=jS(n[1]),i=jS(n[2]),r=jS(n[3]);return ZX(e,i,r)?e*ou+i*ru+r*1e3:NaN}function jS(t){return t&&parseFloat(t.replace(",","."))||0}function WX(t){if(t==="Z")return 0;let n=t.match(jX);if(!n)return 0;let e=n[1]==="+"?-1:1,i=parseInt(n[2]),r=n[3]&&parseInt(n[3])||0;return XX(i,r)?e*(i*ou+r*ru):NaN}function GX(t,n,e){let i=new Date(0);i.setUTCFullYear(t,0,4);let r=i.getUTCDay()||7,o=(n-1)*7+e+1-r;return i.setUTCDate(i.getUTCDate()+o),i}var qX=[31,null,31,30,31,30,31,31,30,31,30,31];function HV(t){return t%400===0||t%4===0&&t%100!==0}function YX(t,n,e){return n>=0&&n<=11&&e>=1&&e<=(qX[n]||(HV(t)?29:28))}function QX(t,n){return n>=1&&n<=(HV(t)?366:365)}function KX(t,n,e){return n>=1&&n<=53&&e>=0&&e<=6}function ZX(t,n,e){return t===24?n===0&&e===0:e>=0&&e<60&&n>=0&&n<60&&t>=0&&t<25}function XX(t,n){return n>=0&&n<=59}function zV(t,n,e){let i=Ie(t,e?.in),r=i.getFullYear(),o=i.getDate(),a=at(e?.in||t,0);a.setFullYear(r,n,15),a.setHours(0,0,0,0);let s=cy(a);return i.setMonth(n,Math.min(o,s)),i}function UV(t,n,e){let i=Ie(t,e?.in);return isNaN(+i)?at(e?.in||t,NaN):(n.year!=null&&i.setFullYear(n.year),n.month!=null&&(i=zV(i,n.month)),n.date!=null&&i.setDate(n.date),n.hours!=null&&i.setHours(n.hours),n.minutes!=null&&i.setMinutes(n.minutes),n.seconds!=null&&i.setSeconds(n.seconds),n.milliseconds!=null&&i.setMilliseconds(n.milliseconds),i)}function zS(t,n){let e=Array(t);for(let i=0;i{class t extends Bi{constructor(){super();let e=u(xs,{optional:!0});this.setLocale(e)}getYear(e){return RV(e)}getMonth(e){return AV(e)}getDate(e){return SV(e)}getDayOfWeek(e){return kV(e)}getMonthNames(e){let i=JX[e];return zS(12,r=>this.format(new Date(2017,r,1),i))}getDateNames(){let e=typeof Intl<"u"?new Intl.DateTimeFormat(this.locale.code,{day:"numeric",timeZone:"utc"}):null;return zS(31,i=>{if(e){let r=new Date;return r.setUTCFullYear(2017,0,i+1),r.setUTCHours(0,0,0,0),e.format(r).replace(/[\u200e\u200f]/g,"")}return i+""})}getDayOfWeekNames(e){let i=eJ[e];return zS(7,r=>this.format(new Date(2017,0,r+1),i))}getYearName(e){return this.format(e,"y")}getFirstDayOfWeek(){return this.locale.options?.weekStartsOn??0}getNumDaysInMonth(e){return cy(e)}clone(e){return new Date(e.getTime())}createDate(e,i,r){let o=new Date;return o.setFullYear(e,i,r),o.setHours(0,0,0,0),o.getMonth()!=i,o}today(){return new Date}parse(e,i){return this._parse(e,i)}format(e,i){if(!this.isValid(e))throw Error("DateFnsAdapter: Cannot format invalid date.");return EV(e,i,{locale:this.locale})}addCalendarYears(e,i){return uV(e,i)}addCalendarMonths(e,i){return uh(e,i)}addCalendarDays(e,i){return dh(e,i)}toIso8601(e){return MV(e,{representation:"date"})}deserialize(e){if(typeof e=="string"){if(!e)return null;let i=HS(e);if(this.isValid(i))return i}return super.deserialize(e)}isDateInstance(e){return oy(e)}isValid(e){return mh(e)}invalid(){return new Date(NaN)}setTime(e,i,r,o){return UV(this.clone(e),{hours:i,minutes:r,seconds:o,milliseconds:0})}getHours(e){return dy(e)}getMinutes(e){return uy(e)}getSeconds(e){return OV(e)}parseTime(e,i){return this._parse(e,i,!1)}addSeconds(e,i){return dV(e,i)}_parse(e,i,r=!0){if(typeof e=="string"&&e.length>0){if(r){let a=HS(e);if(this.isValid(a))return a}let o=Array.isArray(i)?i:[i];if(!i.length)throw Error("Formats array must not be empty.");for(let a of o){let s=BV(e,a,new Date,{locale:this.locale});if(this.isValid(s))return s}return this.invalid()}else{if(typeof e=="number")return new Date(e);if(e instanceof Date)return this.clone(e)}return null}static \u0275fac=function(i){return new(i||t)};static \u0275prov=R({token:t,factory:t.\u0275fac})}return t})(),tJ={parse:{dateInput:"P",timeInput:"p"},display:{dateInput:"P",timeInput:"p",monthYearLabel:"LLL uuuu",dateA11yLabel:"PP",monthYearA11yLabel:"LLLL uuuu",timeOptionLabel:"p"}};function $V(t=tJ){return[{provide:Bi,useClass:US,deps:[xs]},{provide:Cs,useValue:t}]}var iJ=["*"];var nJ=[[["","mat-card-avatar",""],["","matCardAvatar",""]],[["mat-card-title"],["mat-card-subtitle"],["","mat-card-title",""],["","mat-card-subtitle",""],["","matCardTitle",""],["","matCardSubtitle",""]],"*"],rJ=["[mat-card-avatar], [matCardAvatar]",`mat-card-title, mat-card-subtitle, [mat-card-title], [mat-card-subtitle], - [matCardTitle], [matCardSubtitle]`,"*"],Bk=new T("MAT_CARD_CONFIG"),zt=(()=>{class t{appearance;constructor(){let e=u(Bk,{optional:!0});this.appearance=e?.appearance||"raised"}static \u0275fac=function(i){return new(i||t)};static \u0275cmp=E({type:t,selectors:[["mat-card"]],hostAttrs:[1,"mat-mdc-card","mdc-card"],hostVars:8,hostBindings:function(i,r){i&2&&G("mat-mdc-card-outlined",r.appearance==="outlined")("mdc-card--outlined",r.appearance==="outlined")("mat-mdc-card-filled",r.appearance==="filled")("mdc-card--filled",r.appearance==="filled")},inputs:{appearance:"appearance"},exportAs:["matCard"],ngContentSelectors:WX,decls:1,vars:0,template:function(i,r){i&1&&(Me(),oe(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 rgba(0,0,0,0);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 t})(),Xt=(()=>{class t{static \u0275fac=function(i){return new(i||t)};static \u0275dir=F({type:t,selectors:[["mat-card-title"],["","mat-card-title",""],["","matCardTitle",""]],hostAttrs:[1,"mat-mdc-card-title"]})}return t})();var Ut=(()=>{class t{static \u0275fac=function(i){return new(i||t)};static \u0275dir=F({type:t,selectors:[["mat-card-content"]],hostAttrs:[1,"mat-mdc-card-content"]})}return t})(),jV=(()=>{class t{static \u0275fac=function(i){return new(i||t)};static \u0275dir=F({type:t,selectors:[["mat-card-subtitle"],["","mat-card-subtitle",""],["","matCardSubtitle",""]],hostAttrs:[1,"mat-mdc-card-subtitle"]})}return t})();var Jt=(()=>{class t{static \u0275fac=function(i){return new(i||t)};static \u0275cmp=E({type:t,selectors:[["mat-card-header"]],hostAttrs:[1,"mat-mdc-card-header"],ngContentSelectors:qX,decls:4,vars:0,consts:[[1,"mat-mdc-card-header-text"]],template:function(i,r){i&1&&(Me(GX),oe(0),ft(1,"div",0),oe(2,1),vt(),oe(3,2))},encapsulation:2,changeDetection:0})}return t})();var HV=(()=>{class t{static \u0275fac=function(i){return new(i||t)};static \u0275dir=F({type:t,selectors:[["","mat-card-avatar",""],["","matCardAvatar",""]],hostAttrs:[1,"mat-mdc-card-avatar"]})}return t})();var $t=(()=>{class t{static \u0275fac=function(i){return new(i||t)};static \u0275mod=ee({type:t});static \u0275inj=J({imports:[we,we]})}return t})();var jk=class{_box;_destroyed=new z;_resizeSubject=new z;_resizeObserver;_elementObservables=new Map;constructor(n){this._box=n,typeof ResizeObserver<"u"&&(this._resizeObserver=new ResizeObserver(e=>this._resizeSubject.next(e)))}observe(n){return this._elementObservables.has(n)||this._elementObservables.set(n,new Fe(e=>{let i=this._resizeSubject.subscribe(e);return this._resizeObserver?.observe(n,{box:this._box}),()=>{this._resizeObserver?.unobserve(n),i.unsubscribe(),this._elementObservables.delete(n)}}).pipe(ce(e=>e.some(i=>i.target===n)),dd({bufferSize:1,refCount:!0}),Te(this._destroyed))),this._elementObservables.get(n)}destroy(){this._destroyed.next(),this._destroyed.complete(),this._resizeSubject.complete(),this._elementObservables.clear()}},qy=(()=>{class t{_cleanupErrorListener;_observers=new Map;_ngZone=u(ae);constructor(){typeof ResizeObserver<"u"}ngOnDestroy(){for(let[,e]of this._observers)e.destroy();this._observers.clear(),this._cleanupErrorListener?.()}observe(e,i){let r=i?.box||"content-box";return this._observers.has(r)||this._observers.set(r,new jk(r)),this._observers.get(r).observe(e)}static \u0275fac=function(i){return new(i||t)};static \u0275prov=O({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();var YX=["notch"],QX=["matFormFieldNotchedOutline",""],KX=["*"],zV=["iconPrefixContainer"],UV=["textPrefixContainer"],$V=["iconSuffixContainer"],WV=["textSuffixContainer"],ZX=["textField"],XX=["*",[["mat-label"]],[["","matPrefix",""],["","matIconPrefix",""]],[["","matTextPrefix",""]],[["","matTextSuffix",""]],[["","matSuffix",""],["","matIconSuffix",""]],[["mat-error"],["","matError",""]],[["mat-hint",3,"align","end"]],[["mat-hint","align","end"]]],JX=["*","mat-label","[matPrefix], [matIconPrefix]","[matTextPrefix]","[matTextSuffix]","[matSuffix], [matIconSuffix]","mat-error, [matError]","mat-hint:not([align='end'])","mat-hint[align='end']"];function eJ(t,n){t&1&&k(0,"span",21)}function tJ(t,n){if(t&1&&(h(0,"label",20),oe(1,1),N(2,eJ,1,0,"span",21),p()),t&2){let e=C(2);y("floating",e._shouldLabelFloat())("monitorResize",e._hasOutline())("id",e._labelId),X("for",e._control.disableAutomaticLabeling?null:e._control.id),g(2),L(!e.hideRequiredMarker&&e._control.required?2:-1)}}function iJ(t,n){if(t&1&&N(0,tJ,3,5,"label",20),t&2){let e=C();L(e._hasFloatingLabel()?0:-1)}}function nJ(t,n){t&1&&k(0,"div",7)}function rJ(t,n){}function oJ(t,n){if(t&1&&R(0,rJ,0,0,"ng-template",13),t&2){C(2);let e=Se(1);y("ngTemplateOutlet",e)}}function aJ(t,n){if(t&1&&(h(0,"div",9),N(1,oJ,1,1,null,13),p()),t&2){let e=C();y("matFormFieldNotchedOutlineOpen",e._shouldLabelFloat()),g(),L(e._forceDisplayInfixLabel()?-1:1)}}function sJ(t,n){t&1&&(h(0,"div",10,2),oe(2,2),p())}function lJ(t,n){t&1&&(h(0,"div",11,3),oe(2,3),p())}function cJ(t,n){}function dJ(t,n){if(t&1&&R(0,cJ,0,0,"ng-template",13),t&2){C();let e=Se(1);y("ngTemplateOutlet",e)}}function uJ(t,n){t&1&&(h(0,"div",14,4),oe(2,4),p())}function mJ(t,n){t&1&&(h(0,"div",15,5),oe(2,5),p())}function hJ(t,n){t&1&&k(0,"div",16)}function pJ(t,n){t&1&&(h(0,"div",18),oe(1,6),p())}function fJ(t,n){if(t&1&&(h(0,"mat-hint",22),_(1),p()),t&2){let e=C(2);y("id",e._hintLabelId),g(),H(e.hintLabel)}}function gJ(t,n){if(t&1&&(h(0,"div",19),N(1,fJ,2,2,"mat-hint",22),oe(2,7),k(3,"div",23),oe(4,8),p()),t&2){let e=C();g(),L(e.hintLabel?1:-1)}}var sn=(()=>{class t{static \u0275fac=function(i){return new(i||t)};static \u0275dir=F({type:t,selectors:[["mat-label"]]})}return t})(),Hk=new T("MatError"),xo=(()=>{class t{id=u(Ze).getId("mat-mdc-error-");constructor(){}static \u0275fac=function(i){return new(i||t)};static \u0275dir=F({type:t,selectors:[["mat-error"],["","matError",""]],hostAttrs:[1,"mat-mdc-form-field-error","mat-mdc-form-field-bottom-align"],hostVars:1,hostBindings:function(i,r){i&2&&si("id",r.id)},inputs:{id:"id"},features:[Ce([{provide:Hk,useExisting:t}])]})}return t})(),eg=(()=>{class t{align="start";id=u(Ze).getId("mat-mdc-hint-");static \u0275fac=function(i){return new(i||t)};static \u0275dir=F({type:t,selectors:[["mat-hint"]],hostAttrs:[1,"mat-mdc-form-field-hint","mat-mdc-form-field-bottom-align"],hostVars:4,hostBindings:function(i,r){i&2&&(si("id",r.id),X("align",null),G("mat-mdc-form-field-hint-end",r.align==="end"))},inputs:{align:"align",id:"id"}})}return t})(),zk=new T("MatPrefix"),nu=(()=>{class t{set _isTextSelector(e){this._isText=!0}_isText=!1;static \u0275fac=function(i){return new(i||t)};static \u0275dir=F({type:t,selectors:[["","matPrefix",""],["","matIconPrefix",""],["","matTextPrefix",""]],inputs:{_isTextSelector:[0,"matTextPrefix","_isTextSelector"]},features:[Ce([{provide:zk,useExisting:t}])]})}return t})(),Uk=new T("MatSuffix"),ru=(()=>{class t{set _isTextSelector(e){this._isText=!0}_isText=!1;static \u0275fac=function(i){return new(i||t)};static \u0275dir=F({type:t,selectors:[["","matSuffix",""],["","matIconSuffix",""],["","matTextSuffix",""]],inputs:{_isTextSelector:[0,"matTextSuffix","_isTextSelector"]},features:[Ce([{provide:Uk,useExisting:t}])]})}return t})(),XV=new T("FloatingLabelParent"),GV=(()=>{class t{_elementRef=u(q);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=u(qy);_ngZone=u(ae);_parent=u(XV);_resizeSubscription=new ke;constructor(){}ngOnDestroy(){this._resizeSubscription.unsubscribe()}getWidth(){return _J(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(i){return new(i||t)};static \u0275dir=F({type:t,selectors:[["label","matFormFieldFloatingLabel",""]],hostAttrs:[1,"mdc-floating-label","mat-mdc-floating-label"],hostVars:2,hostBindings:function(i,r){i&2&&G("mdc-floating-label--float-above",r.floating)},inputs:{floating:"floating",monitorResize:"monitorResize"}})}return t})();function _J(t){let n=t;if(n.offsetParent!==null)return n.scrollWidth;let e=n.cloneNode(!0);e.style.setProperty("position","absolute"),e.style.setProperty("transform","translate(-9999px, -9999px)"),document.documentElement.appendChild(e);let i=e.scrollWidth;return e.remove(),i}var qV="mdc-line-ripple--active",Yy="mdc-line-ripple--deactivating",YV=(()=>{class t{_elementRef=u(q);_cleanupTransitionEnd;constructor(){let e=u(ae),i=u(je);e.runOutsideAngular(()=>{this._cleanupTransitionEnd=i.listen(this._elementRef.nativeElement,"transitionend",this._handleTransitionEnd)})}activate(){let e=this._elementRef.nativeElement.classList;e.remove(Yy),e.add(qV)}deactivate(){this._elementRef.nativeElement.classList.add(Yy)}_handleTransitionEnd=e=>{let i=this._elementRef.nativeElement.classList,r=i.contains(Yy);e.propertyName==="opacity"&&r&&i.remove(qV,Yy)};ngOnDestroy(){this._cleanupTransitionEnd()}static \u0275fac=function(i){return new(i||t)};static \u0275dir=F({type:t,selectors:[["div","matFormFieldLineRipple",""]],hostAttrs:[1,"mdc-line-ripple"]})}return t})(),QV=(()=>{class t{_elementRef=u(q);_ngZone=u(ae);open=!1;_notch;ngAfterViewInit(){let e=this._elementRef.nativeElement,i=e.querySelector(".mdc-floating-label");i?(e.classList.add("mdc-notched-outline--upgraded"),typeof requestAnimationFrame=="function"&&(i.style.transitionDuration="0s",this._ngZone.runOutsideAngular(()=>{requestAnimationFrame(()=>i.style.transitionDuration="")}))):e.classList.add("mdc-notched-outline--no-label")}_setNotchWidth(e){let i=this._notch.nativeElement;!this.open||!e?i.style.width="":i.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(i){return new(i||t)};static \u0275cmp=E({type:t,selectors:[["div","matFormFieldNotchedOutline",""]],viewQuery:function(i,r){if(i&1&&ie(YX,5),i&2){let o;B(o=j())&&(r._notch=o.first)}},hostAttrs:[1,"mdc-notched-outline"],hostVars:2,hostBindings:function(i,r){i&2&&G("mdc-notched-outline--notched",r.open)},inputs:{open:[0,"matFormFieldNotchedOutlineOpen","open"]},attrs:QX,ngContentSelectors:KX,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(i,r){i&1&&(Me(),ai(0,"div",1),ft(1,"div",2,0),oe(3),vt(),ai(4,"div",3))},encapsulation:2,changeDetection:0})}return t})(),Ra=(()=>{class t{value;stateChanges;id;placeholder;ngControl;focused;empty;shouldLabelFloat;required;disabled;errorState;controlType;autofilled;userAriaDescribedBy;disableAutomaticLabeling;describedByIds;static \u0275fac=function(i){return new(i||t)};static \u0275dir=F({type:t})}return t})();var Xo=new T("MatFormField"),JV=new T("MAT_FORM_FIELD_DEFAULT_OPTIONS"),KV="fill",bJ="auto",ZV="fixed",vJ="translateY(-50%)",Oi=(()=>{class t{_elementRef=u(q);_changeDetectorRef=u(ye);_platform=u(qe);_idGenerator=u(Ze);_ngZone=u(ae);_defaults=u(JV,{optional:!0});_currentDirection;_textField;_iconPrefixContainer;_textPrefixContainer;_iconSuffixContainer;_textSuffixContainer;_floatingLabel;_notchedOutline;_lineRipple;_iconPrefixContainerSignal=qn("iconPrefixContainer");_textPrefixContainerSignal=qn("textPrefixContainer");_iconSuffixContainerSignal=qn("iconSuffixContainer");_textSuffixContainerSignal=qn("textSuffixContainer");_prefixSuffixContainers=Zt(()=>[this._iconPrefixContainerSignal(),this._textPrefixContainerSignal(),this._iconSuffixContainerSignal(),this._textSuffixContainerSignal()].map(e=>e?.nativeElement).filter(e=>e!==void 0));_formFieldControl;_prefixChildren;_suffixChildren;_errorChildren;_hintChildren;_labelChild=fr(sn);get hideRequiredMarker(){return this._hideRequiredMarker}set hideRequiredMarker(e){this._hideRequiredMarker=Ai(e)}_hideRequiredMarker=!1;color="primary";get floatLabel(){return this._floatLabel||this._defaults?.floatLabel||bJ}set floatLabel(e){e!==this._floatLabel&&(this._floatLabel=e,this._changeDetectorRef.markForCheck())}_floatLabel;get appearance(){return this._appearanceSignal()}set appearance(e){let i=e||this._defaults?.appearance||KV;this._appearanceSignal.set(i)}_appearanceSignal=he(KV);get subscriptSizing(){return this._subscriptSizing||this._defaults?.subscriptSizing||ZV}set subscriptSizing(e){this._subscriptSizing=e||this._defaults?.subscriptSizing||ZV}_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 z;_isFocused=null;_explicitFormFieldControl;_previousControl=null;_previousControlValidatorFn=null;_stateChanges;_valueChanges;_describedByChanges;_outlineLabelOffsetResizeObserver=null;_animationsDisabled=Ye();constructor(){let e=this._defaults,i=u(Vt);e&&(e.appearance&&(this.appearance=e.appearance),this._hideRequiredMarker=!!e?.hideRequiredMarker,e.color&&(this.color=e.color)),Ar(()=>this._currentDirection=i.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=Zt(()=>this._hasFloatingLabel()?this._labelId:null);getConnectedOverlayOrigin(){return this._textField||this._elementRef}_animateAndLockLabel(){this._hasFloatingLabel()&&(this.floatLabel="always")}_initializeControl(e){let i=this._control,r="mat-mdc-form-field-type-";e&&this._elementRef.nativeElement.classList.remove(r+e.controlType),i.controlType&&this._elementRef.nativeElement.classList.add(r+i.controlType),this._stateChanges?.unsubscribe(),this._stateChanges=i.stateChanges.subscribe(()=>{this._updateFocusState(),this._changeDetectorRef.markForCheck()}),this._describedByChanges?.unsubscribe(),this._describedByChanges=i.stateChanges.pipe(He([void 0,void 0]),se(()=>[i.errorState,i.userAriaDescribedBy]),db(),ce(([[o,a],[s,l]])=>o!==s||a!==l)).subscribe(()=>this._syncDescribedByIds()),this._valueChanges?.unsubscribe(),i.ngControl&&i.ngControl.valueChanges&&(this._valueChanges=i.ngControl.valueChanges.pipe(Te(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(),Je(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(){l2({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=Zt(()=>!!this._labelChild());_shouldLabelFloat(){return this._hasFloatingLabel()?this._control.shouldLabelFloat||this._shouldAlwaysFloat():!1}_shouldForward(e){let i=this._control?this._control.ngControl:null;return i&&i[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 o=this._hintChildren?this._hintChildren.find(s=>s.align==="start"):null,a=this._hintChildren?this._hintChildren.find(s=>s.align==="end"):null;o?e.push(o.id):this._hintLabel&&e.push(this._hintLabelId),a&&e.push(a.id)}else this._errorChildren&&e.push(...this._errorChildren.map(o=>o.id));let i=this._control.describedByIds,r;if(i){let o=this._describedByIds||e;r=e.concat(i.filter(a=>a&&!o.includes(a)))}else r=e;this._control.setDescribedByIds(r),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,i=this._textPrefixContainer?.nativeElement,r=this._iconSuffixContainer?.nativeElement,o=this._textSuffixContainer?.nativeElement,a=e?.getBoundingClientRect().width??0,s=i?.getBoundingClientRect().width??0,l=r?.getBoundingClientRect().width??0,c=o?.getBoundingClientRect().width??0,d=this._currentDirection==="rtl"?"-1":"1",m=`${a+s}px`,b=`calc(${d} * (${m} + var(--mat-mdc-form-field-label-offset-x, 0px)))`,v=`var(--mat-mdc-form-field-label-transform, ${vJ} translateX(${b}))`,w=a+s+l+c;return[v,w]}_writeOutlinedLabelStyles(e){if(e!==null){let[i,r]=e;this._floatingLabel&&(this._floatingLabel.element.style.transform=i),r!==null&&this._notchedOutline?._setMaxWidth(r)}}_isAttachedToDom(){let e=this._elementRef.nativeElement;if(e.getRootNode){let i=e.getRootNode();return i&&i!==e}return document.documentElement.contains(e)}static \u0275fac=function(i){return new(i||t)};static \u0275cmp=E({type:t,selectors:[["mat-form-field"]],contentQueries:function(i,r,o){if(i&1&&(Rn(o,r._labelChild,sn,5),xe(o,Ra,5),xe(o,zk,5),xe(o,Uk,5),xe(o,Hk,5),xe(o,eg,5)),i&2){Ho();let a;B(a=j())&&(r._formFieldControl=a.first),B(a=j())&&(r._prefixChildren=a),B(a=j())&&(r._suffixChildren=a),B(a=j())&&(r._errorChildren=a),B(a=j())&&(r._hintChildren=a)}},viewQuery:function(i,r){if(i&1&&(Pn(r._iconPrefixContainerSignal,zV,5),Pn(r._textPrefixContainerSignal,UV,5),Pn(r._iconSuffixContainerSignal,$V,5),Pn(r._textSuffixContainerSignal,WV,5),ie(ZX,5),ie(zV,5),ie(UV,5),ie($V,5),ie(WV,5),ie(GV,5),ie(QV,5),ie(YV,5)),i&2){Ho(4);let o;B(o=j())&&(r._textField=o.first),B(o=j())&&(r._iconPrefixContainer=o.first),B(o=j())&&(r._textPrefixContainer=o.first),B(o=j())&&(r._iconSuffixContainer=o.first),B(o=j())&&(r._textSuffixContainer=o.first),B(o=j())&&(r._floatingLabel=o.first),B(o=j())&&(r._notchedOutline=o.first),B(o=j())&&(r._lineRipple=o.first)}},hostAttrs:[1,"mat-mdc-form-field"],hostVars:38,hostBindings:function(i,r){i&2&&G("mat-mdc-form-field-label-always-float",r._shouldAlwaysFloat())("mat-mdc-form-field-has-icon-prefix",r._hasIconPrefix)("mat-mdc-form-field-has-icon-suffix",r._hasIconSuffix)("mat-form-field-invalid",r._control.errorState)("mat-form-field-disabled",r._control.disabled)("mat-form-field-autofilled",r._control.autofilled)("mat-form-field-appearance-fill",r.appearance=="fill")("mat-form-field-appearance-outline",r.appearance=="outline")("mat-form-field-hide-placeholder",r._hasFloatingLabel()&&!r._shouldLabelFloat())("mat-primary",r.color!=="accent"&&r.color!=="warn")("mat-accent",r.color==="accent")("mat-warn",r.color==="warn")("ng-untouched",r._shouldForward("untouched"))("ng-touched",r._shouldForward("touched"))("ng-pristine",r._shouldForward("pristine"))("ng-dirty",r._shouldForward("dirty"))("ng-valid",r._shouldForward("valid"))("ng-invalid",r._shouldForward("invalid"))("ng-pending",r._shouldForward("pending"))},inputs:{hideRequiredMarker:"hideRequiredMarker",color:"color",floatLabel:"floatLabel",appearance:"appearance",subscriptSizing:"subscriptSizing",hintLabel:"hintLabel"},exportAs:["matFormField"],features:[Ce([{provide:Xo,useExisting:t},{provide:XV,useExisting:t}])],ngContentSelectors:JX,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(i,r){if(i&1){let o=Y();Me(XX),R(0,iJ,1,1,"ng-template",null,0,_i),h(2,"div",6,1),S("click",function(s){return I(o),A(r._control.onContainerClick(s))}),N(4,nJ,1,0,"div",7),h(5,"div",8),N(6,aJ,2,2,"div",9),N(7,sJ,3,0,"div",10),N(8,lJ,3,0,"div",11),h(9,"div",12),N(10,dJ,1,1,null,13),oe(11),p(),N(12,uJ,3,0,"div",14),N(13,mJ,3,0,"div",15),p(),N(14,hJ,1,0,"div",16),p(),h(15,"div",17),N(16,pJ,2,0,"div",18)(17,gJ,5,1,"div",19),p()}if(i&2){let o;g(2),G("mdc-text-field--filled",!r._hasOutline())("mdc-text-field--outlined",r._hasOutline())("mdc-text-field--no-label",!r._hasFloatingLabel())("mdc-text-field--disabled",r._control.disabled)("mdc-text-field--invalid",r._control.errorState),g(2),L(!r._hasOutline()&&!r._control.disabled?4:-1),g(2),L(r._hasOutline()?6:-1),g(),L(r._hasIconPrefix?7:-1),g(),L(r._hasTextPrefix?8:-1),g(2),L(!r._hasOutline()||r._forceDisplayInfixLabel()?10:-1),g(2),L(r._hasTextSuffix?12:-1),g(),L(r._hasIconSuffix?13:-1),g(),L(r._hasOutline()?-1:14),g(),G("mat-mdc-form-field-subscript-dynamic-size",r.subscriptSizing==="dynamic");let a=r._getSubscriptMessageType();g(),L((o=a)==="error"?16:o==="hint"?17:-1)}},dependencies:[GV,QV,Fn,YV,eg],styles:[`.mdc-text-field{display:inline-flex;align-items:baseline;padding:0 16px;position:relative;box-sizing:border-box;overflow:hidden;will-change:opacity,transform,color;border-top-left-radius:4px;border-top-right-radius:4px;border-bottom-right-radius:0;border-bottom-left-radius:0}.mdc-text-field__input{width:100%;min-width:0;border:none;border-radius:0;background:none;padding:0;-moz-appearance:none;-webkit-appearance:none;height:28px}.mdc-text-field__input::-webkit-calendar-picker-indicator,.mdc-text-field__input::-webkit-search-cancel-button{display:none}.mdc-text-field__input::-ms-clear{display:none}.mdc-text-field__input:focus{outline:none}.mdc-text-field__input:invalid{box-shadow:none}.mdc-text-field__input::placeholder{opacity:0}.mdc-text-field__input::-moz-placeholder{opacity:0}.mdc-text-field__input::-webkit-input-placeholder{opacity:0}.mdc-text-field__input:-ms-input-placeholder{opacity:0}.mdc-text-field--no-label .mdc-text-field__input::placeholder,.mdc-text-field--focused .mdc-text-field__input::placeholder{opacity:1}.mdc-text-field--no-label .mdc-text-field__input::-moz-placeholder,.mdc-text-field--focused .mdc-text-field__input::-moz-placeholder{opacity:1}.mdc-text-field--no-label .mdc-text-field__input::-webkit-input-placeholder,.mdc-text-field--focused .mdc-text-field__input::-webkit-input-placeholder{opacity:1}.mdc-text-field--no-label .mdc-text-field__input:-ms-input-placeholder,.mdc-text-field--focused .mdc-text-field__input:-ms-input-placeholder{opacity:1}.mdc-text-field--disabled:not(.mdc-text-field--no-label) .mdc-text-field__input.mat-mdc-input-disabled-interactive::placeholder{opacity:0}.mdc-text-field--disabled:not(.mdc-text-field--no-label) .mdc-text-field__input.mat-mdc-input-disabled-interactive::-moz-placeholder{opacity:0}.mdc-text-field--disabled:not(.mdc-text-field--no-label) .mdc-text-field__input.mat-mdc-input-disabled-interactive::-webkit-input-placeholder{opacity:0}.mdc-text-field--disabled:not(.mdc-text-field--no-label) .mdc-text-field__input.mat-mdc-input-disabled-interactive:-ms-input-placeholder{opacity:0}.mdc-text-field--outlined .mdc-text-field__input,.mdc-text-field--filled.mdc-text-field--no-label .mdc-text-field__input{height:100%}.mdc-text-field--outlined .mdc-text-field__input{display:flex;border:none !important;background-color:rgba(0,0,0,0)}.mdc-text-field--disabled .mdc-text-field__input{pointer-events:auto}.mdc-text-field--filled:not(.mdc-text-field--disabled) .mdc-text-field__input{color:var(--mat-form-field-filled-input-text-color, var(--mat-sys-on-surface));caret-color:var(--mat-form-field-filled-caret-color, var(--mat-sys-primary))}.mdc-text-field--filled:not(.mdc-text-field--disabled) .mdc-text-field__input::placeholder{color:var(--mat-form-field-filled-input-text-placeholder-color, var(--mat-sys-on-surface-variant))}.mdc-text-field--filled:not(.mdc-text-field--disabled) .mdc-text-field__input::-moz-placeholder{color:var(--mat-form-field-filled-input-text-placeholder-color, var(--mat-sys-on-surface-variant))}.mdc-text-field--filled:not(.mdc-text-field--disabled) .mdc-text-field__input::-webkit-input-placeholder{color:var(--mat-form-field-filled-input-text-placeholder-color, var(--mat-sys-on-surface-variant))}.mdc-text-field--filled:not(.mdc-text-field--disabled) .mdc-text-field__input:-ms-input-placeholder{color:var(--mat-form-field-filled-input-text-placeholder-color, var(--mat-sys-on-surface-variant))}.mdc-text-field--outlined:not(.mdc-text-field--disabled) .mdc-text-field__input{color:var(--mat-form-field-outlined-input-text-color, var(--mat-sys-on-surface));caret-color:var(--mat-form-field-outlined-caret-color, var(--mat-sys-primary))}.mdc-text-field--outlined:not(.mdc-text-field--disabled) .mdc-text-field__input::placeholder{color:var(--mat-form-field-outlined-input-text-placeholder-color, var(--mat-sys-on-surface-variant))}.mdc-text-field--outlined:not(.mdc-text-field--disabled) .mdc-text-field__input::-moz-placeholder{color:var(--mat-form-field-outlined-input-text-placeholder-color, var(--mat-sys-on-surface-variant))}.mdc-text-field--outlined:not(.mdc-text-field--disabled) .mdc-text-field__input::-webkit-input-placeholder{color:var(--mat-form-field-outlined-input-text-placeholder-color, var(--mat-sys-on-surface-variant))}.mdc-text-field--outlined:not(.mdc-text-field--disabled) .mdc-text-field__input:-ms-input-placeholder{color:var(--mat-form-field-outlined-input-text-placeholder-color, var(--mat-sys-on-surface-variant))}.mdc-text-field--filled.mdc-text-field--invalid:not(.mdc-text-field--disabled) .mdc-text-field__input{caret-color:var(--mat-form-field-filled-error-caret-color, var(--mat-sys-error))}.mdc-text-field--outlined.mdc-text-field--invalid:not(.mdc-text-field--disabled) .mdc-text-field__input{caret-color:var(--mat-form-field-outlined-error-caret-color, var(--mat-sys-error))}.mdc-text-field--filled.mdc-text-field--disabled .mdc-text-field__input{color:var(--mat-form-field-filled-disabled-input-text-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent))}.mdc-text-field--outlined.mdc-text-field--disabled .mdc-text-field__input{color:var(--mat-form-field-outlined-disabled-input-text-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent))}@media(forced-colors: active){.mdc-text-field--disabled .mdc-text-field__input{background-color:Window}}.mdc-text-field--filled{height:56px;border-bottom-right-radius:0;border-bottom-left-radius:0;border-top-left-radius:var(--mat-form-field-filled-container-shape, var(--mat-sys-corner-extra-small));border-top-right-radius:var(--mat-form-field-filled-container-shape, var(--mat-sys-corner-extra-small))}.mdc-text-field--filled:not(.mdc-text-field--disabled){background-color:var(--mat-form-field-filled-container-color, var(--mat-sys-surface-variant))}.mdc-text-field--filled.mdc-text-field--disabled{background-color:var(--mat-form-field-filled-disabled-container-color, color-mix(in srgb, var(--mat-sys-on-surface) 4%, transparent))}.mdc-text-field--outlined{height:56px;overflow:visible;padding-right:max(16px,var(--mat-form-field-outlined-container-shape, var(--mat-sys-corner-extra-small)));padding-left:max(16px,var(--mat-form-field-outlined-container-shape, var(--mat-sys-corner-extra-small)) + 4px)}[dir=rtl] .mdc-text-field--outlined{padding-right:max(16px,var(--mat-form-field-outlined-container-shape, var(--mat-sys-corner-extra-small)) + 4px);padding-left:max(16px,var(--mat-form-field-outlined-container-shape, var(--mat-sys-corner-extra-small)))}.mdc-floating-label{position:absolute;left:0;transform-origin:left top;line-height:1.15rem;text-align:left;text-overflow:ellipsis;white-space:nowrap;cursor:text;overflow:hidden;will-change:transform}[dir=rtl] .mdc-floating-label{right:0;left:auto;transform-origin:right top;text-align:right}.mdc-text-field .mdc-floating-label{top:50%;transform:translateY(-50%);pointer-events:none}.mdc-notched-outline .mdc-floating-label{display:inline-block;position:relative;max-width:100%}.mdc-text-field--outlined .mdc-floating-label{left:4px;right:auto}[dir=rtl] .mdc-text-field--outlined .mdc-floating-label{left:auto;right:4px}.mdc-text-field--filled .mdc-floating-label{left:16px;right:auto}[dir=rtl] .mdc-text-field--filled .mdc-floating-label{left:auto;right:16px}.mdc-text-field--disabled .mdc-floating-label{cursor:default}@media(forced-colors: active){.mdc-text-field--disabled .mdc-floating-label{z-index:1}}.mdc-text-field--filled.mdc-text-field--no-label .mdc-floating-label{display:none}.mdc-text-field--filled:not(.mdc-text-field--disabled) .mdc-floating-label{color:var(--mat-form-field-filled-label-text-color, var(--mat-sys-on-surface-variant))}.mdc-text-field--filled:not(.mdc-text-field--disabled).mdc-text-field--focused .mdc-floating-label{color:var(--mat-form-field-filled-focus-label-text-color, var(--mat-sys-primary))}.mdc-text-field--filled:not(.mdc-text-field--disabled):not(.mdc-text-field--focused):hover .mdc-floating-label{color:var(--mat-form-field-filled-hover-label-text-color, var(--mat-sys-on-surface-variant))}.mdc-text-field--filled.mdc-text-field--disabled .mdc-floating-label{color:var(--mat-form-field-filled-disabled-label-text-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent))}.mdc-text-field--filled:not(.mdc-text-field--disabled).mdc-text-field--invalid .mdc-floating-label{color:var(--mat-form-field-filled-error-label-text-color, var(--mat-sys-error))}.mdc-text-field--filled:not(.mdc-text-field--disabled).mdc-text-field--invalid.mdc-text-field--focused .mdc-floating-label{color:var(--mat-form-field-filled-error-focus-label-text-color, var(--mat-sys-error))}.mdc-text-field--filled:not(.mdc-text-field--disabled).mdc-text-field--invalid:not(.mdc-text-field--disabled):hover .mdc-floating-label{color:var(--mat-form-field-filled-error-hover-label-text-color, var(--mat-sys-on-error-container))}.mdc-text-field--filled .mdc-floating-label{font-family:var(--mat-form-field-filled-label-text-font, var(--mat-sys-body-large-font));font-size:var(--mat-form-field-filled-label-text-size, var(--mat-sys-body-large-size));font-weight:var(--mat-form-field-filled-label-text-weight, var(--mat-sys-body-large-weight));letter-spacing:var(--mat-form-field-filled-label-text-tracking, var(--mat-sys-body-large-tracking))}.mdc-text-field--outlined:not(.mdc-text-field--disabled) .mdc-floating-label{color:var(--mat-form-field-outlined-label-text-color, var(--mat-sys-on-surface-variant))}.mdc-text-field--outlined:not(.mdc-text-field--disabled).mdc-text-field--focused .mdc-floating-label{color:var(--mat-form-field-outlined-focus-label-text-color, var(--mat-sys-primary))}.mdc-text-field--outlined:not(.mdc-text-field--disabled):not(.mdc-text-field--focused):hover .mdc-floating-label{color:var(--mat-form-field-outlined-hover-label-text-color, var(--mat-sys-on-surface))}.mdc-text-field--outlined.mdc-text-field--disabled .mdc-floating-label{color:var(--mat-form-field-outlined-disabled-label-text-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent))}.mdc-text-field--outlined:not(.mdc-text-field--disabled).mdc-text-field--invalid .mdc-floating-label{color:var(--mat-form-field-outlined-error-label-text-color, var(--mat-sys-error))}.mdc-text-field--outlined:not(.mdc-text-field--disabled).mdc-text-field--invalid.mdc-text-field--focused .mdc-floating-label{color:var(--mat-form-field-outlined-error-focus-label-text-color, var(--mat-sys-error))}.mdc-text-field--outlined:not(.mdc-text-field--disabled).mdc-text-field--invalid:not(.mdc-text-field--disabled):hover .mdc-floating-label{color:var(--mat-form-field-outlined-error-hover-label-text-color, var(--mat-sys-on-error-container))}.mdc-text-field--outlined .mdc-floating-label{font-family:var(--mat-form-field-outlined-label-text-font, var(--mat-sys-body-large-font));font-size:var(--mat-form-field-outlined-label-text-size, var(--mat-sys-body-large-size));font-weight:var(--mat-form-field-outlined-label-text-weight, var(--mat-sys-body-large-weight));letter-spacing:var(--mat-form-field-outlined-label-text-tracking, var(--mat-sys-body-large-tracking))}.mdc-floating-label--float-above{cursor:auto;transform:translateY(-106%) scale(0.75)}.mdc-text-field--filled .mdc-floating-label--float-above{transform:translateY(-106%) scale(0.75)}.mdc-text-field--outlined .mdc-floating-label--float-above{transform:translateY(-37.25px) scale(1);font-size:.75rem}.mdc-notched-outline .mdc-floating-label--float-above{text-overflow:clip}.mdc-notched-outline--upgraded .mdc-floating-label--float-above{max-width:133.3333333333%}.mdc-text-field--outlined.mdc-notched-outline--upgraded .mdc-floating-label--float-above,.mdc-text-field--outlined .mdc-notched-outline--upgraded .mdc-floating-label--float-above{transform:translateY(-34.75px) scale(0.75)}.mdc-text-field--outlined.mdc-notched-outline--upgraded .mdc-floating-label--float-above,.mdc-text-field--outlined .mdc-notched-outline--upgraded .mdc-floating-label--float-above{font-size:1rem}.mdc-floating-label--required:not(.mdc-floating-label--hide-required-marker)::after{margin-left:1px;margin-right:0;content:"*"}[dir=rtl] .mdc-floating-label--required:not(.mdc-floating-label--hide-required-marker)::after{margin-left:0;margin-right:1px}.mdc-notched-outline{display:flex;position:absolute;top:0;right:0;left:0;box-sizing:border-box;width:100%;max-width:100%;height:100%;text-align:left;pointer-events:none}[dir=rtl] .mdc-notched-outline{text-align:right}.mdc-text-field--outlined .mdc-notched-outline{z-index:1}.mat-mdc-notch-piece{box-sizing:border-box;height:100%;pointer-events:none;border-top:1px solid;border-bottom:1px solid}.mdc-text-field--focused .mat-mdc-notch-piece{border-width:2px}.mdc-text-field--outlined:not(.mdc-text-field--disabled) .mat-mdc-notch-piece{border-color:var(--mat-form-field-outlined-outline-color, var(--mat-sys-outline));border-width:var(--mat-form-field-outlined-outline-width, 1px)}.mdc-text-field--outlined:not(.mdc-text-field--disabled):not(.mdc-text-field--focused):hover .mat-mdc-notch-piece{border-color:var(--mat-form-field-outlined-hover-outline-color, var(--mat-sys-on-surface))}.mdc-text-field--outlined:not(.mdc-text-field--disabled).mdc-text-field--focused .mat-mdc-notch-piece{border-color:var(--mat-form-field-outlined-focus-outline-color, var(--mat-sys-primary))}.mdc-text-field--outlined.mdc-text-field--disabled .mat-mdc-notch-piece{border-color:var(--mat-form-field-outlined-disabled-outline-color, color-mix(in srgb, var(--mat-sys-on-surface) 12%, transparent))}.mdc-text-field--outlined:not(.mdc-text-field--disabled).mdc-text-field--invalid .mat-mdc-notch-piece{border-color:var(--mat-form-field-outlined-error-outline-color, var(--mat-sys-error))}.mdc-text-field--outlined:not(.mdc-text-field--disabled).mdc-text-field--invalid:not(.mdc-text-field--focused):hover .mdc-notched-outline .mat-mdc-notch-piece{border-color:var(--mat-form-field-outlined-error-hover-outline-color, var(--mat-sys-on-error-container))}.mdc-text-field--outlined:not(.mdc-text-field--disabled).mdc-text-field--invalid.mdc-text-field--focused .mat-mdc-notch-piece{border-color:var(--mat-form-field-outlined-error-focus-outline-color, var(--mat-sys-error))}.mdc-text-field--outlined:not(.mdc-text-field--disabled).mdc-text-field--focused .mdc-notched-outline .mat-mdc-notch-piece{border-width:var(--mat-form-field-outlined-focus-outline-width, 2px)}.mdc-notched-outline__leading{border-left:1px solid;border-right:none;border-top-right-radius:0;border-bottom-right-radius:0;border-top-left-radius:var(--mat-form-field-outlined-container-shape, var(--mat-sys-corner-extra-small));border-bottom-left-radius:var(--mat-form-field-outlined-container-shape, var(--mat-sys-corner-extra-small))}.mdc-text-field--outlined .mdc-notched-outline .mdc-notched-outline__leading{width:max(12px,var(--mat-form-field-outlined-container-shape, var(--mat-sys-corner-extra-small)))}[dir=rtl] .mdc-notched-outline__leading{border-left:none;border-right:1px solid;border-bottom-left-radius:0;border-top-left-radius:0;border-top-right-radius:var(--mat-form-field-outlined-container-shape, var(--mat-sys-corner-extra-small));border-bottom-right-radius:var(--mat-form-field-outlined-container-shape, var(--mat-sys-corner-extra-small))}.mdc-notched-outline__trailing{flex-grow:1;border-left:none;border-right:1px solid;border-top-left-radius:0;border-bottom-left-radius:0;border-top-right-radius:var(--mat-form-field-outlined-container-shape, var(--mat-sys-corner-extra-small));border-bottom-right-radius:var(--mat-form-field-outlined-container-shape, var(--mat-sys-corner-extra-small))}[dir=rtl] .mdc-notched-outline__trailing{border-left:1px solid;border-right:none;border-top-right-radius:0;border-bottom-right-radius:0;border-top-left-radius:var(--mat-form-field-outlined-container-shape, var(--mat-sys-corner-extra-small));border-bottom-left-radius:var(--mat-form-field-outlined-container-shape, var(--mat-sys-corner-extra-small))}.mdc-notched-outline__notch{flex:0 0 auto;width:auto}.mdc-text-field--outlined .mdc-notched-outline .mdc-notched-outline__notch{max-width:min(var(--mat-form-field-notch-max-width, 100%),calc(100% - max(12px, var(--mat-form-field-outlined-container-shape, var(--mat-sys-corner-extra-small))) * 2))}.mdc-text-field--outlined .mdc-notched-outline--notched .mdc-notched-outline__notch{max-width:min(100%,calc(100% - max(12px, var(--mat-form-field-outlined-container-shape, var(--mat-sys-corner-extra-small))) * 2))}.mdc-text-field--outlined .mdc-notched-outline--notched .mdc-notched-outline__notch{padding-top:1px}.mdc-text-field--focused.mdc-text-field--outlined .mdc-notched-outline--notched .mdc-notched-outline__notch{padding-top:2px}.mdc-notched-outline--notched .mdc-notched-outline__notch{padding-left:0;padding-right:8px;border-top:none}[dir=rtl] .mdc-notched-outline--notched .mdc-notched-outline__notch{padding-left:8px;padding-right:0}.mdc-notched-outline--no-label .mdc-notched-outline__notch{display:none}.mdc-line-ripple::before,.mdc-line-ripple::after{position:absolute;bottom:0;left:0;width:100%;border-bottom-style:solid;content:""}.mdc-line-ripple::before{z-index:1;border-bottom-width:var(--mat-form-field-filled-active-indicator-height, 1px)}.mdc-text-field--filled:not(.mdc-text-field--disabled) .mdc-line-ripple::before{border-bottom-color:var(--mat-form-field-filled-active-indicator-color, var(--mat-sys-on-surface-variant))}.mdc-text-field--filled:not(.mdc-text-field--disabled):not(.mdc-text-field--focused):hover .mdc-line-ripple::before{border-bottom-color:var(--mat-form-field-filled-hover-active-indicator-color, var(--mat-sys-on-surface))}.mdc-text-field--filled.mdc-text-field--disabled .mdc-line-ripple::before{border-bottom-color:var(--mat-form-field-filled-disabled-active-indicator-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent))}.mdc-text-field--filled:not(.mdc-text-field--disabled).mdc-text-field--invalid .mdc-line-ripple::before{border-bottom-color:var(--mat-form-field-filled-error-active-indicator-color, var(--mat-sys-error))}.mdc-text-field--filled:not(.mdc-text-field--disabled).mdc-text-field--invalid:not(.mdc-text-field--focused):hover .mdc-line-ripple::before{border-bottom-color:var(--mat-form-field-filled-error-hover-active-indicator-color, var(--mat-sys-on-error-container))}.mdc-line-ripple::after{transform:scaleX(0);opacity:0;z-index:2}.mdc-text-field--filled .mdc-line-ripple::after{border-bottom-width:var(--mat-form-field-filled-focus-active-indicator-height, 2px)}.mdc-text-field--filled:not(.mdc-text-field--disabled) .mdc-line-ripple::after{border-bottom-color:var(--mat-form-field-filled-focus-active-indicator-color, var(--mat-sys-primary))}.mdc-text-field--filled.mdc-text-field--invalid:not(.mdc-text-field--disabled) .mdc-line-ripple::after{border-bottom-color:var(--mat-form-field-filled-error-focus-active-indicator-color, var(--mat-sys-error))}.mdc-line-ripple--active::after{transform:scaleX(1);opacity:1}.mdc-line-ripple--deactivating::after{opacity:0}.mdc-text-field--disabled{pointer-events:none}.mat-mdc-form-field-textarea-control{vertical-align:middle;resize:vertical;box-sizing:border-box;height:auto;margin:0;padding:0;border:none;overflow:auto}.mat-mdc-form-field-input-control.mat-mdc-form-field-input-control{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;font:inherit;letter-spacing:inherit;text-decoration:inherit;text-transform:inherit;border:none}.mat-mdc-form-field .mat-mdc-floating-label.mdc-floating-label{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;line-height:normal;pointer-events:all;will-change:auto}.mat-mdc-form-field:not(.mat-form-field-disabled) .mat-mdc-floating-label.mdc-floating-label{cursor:inherit}.mdc-text-field--no-label:not(.mdc-text-field--textarea) .mat-mdc-form-field-input-control.mdc-text-field__input,.mat-mdc-text-field-wrapper .mat-mdc-form-field-input-control{height:auto}.mat-mdc-text-field-wrapper .mat-mdc-form-field-input-control.mdc-text-field__input[type=color]{height:23px}.mat-mdc-text-field-wrapper{height:auto;flex:auto;will-change:auto}.mat-mdc-form-field-has-icon-prefix .mat-mdc-text-field-wrapper{padding-left:0;--mat-mdc-form-field-label-offset-x: -16px}.mat-mdc-form-field-has-icon-suffix .mat-mdc-text-field-wrapper{padding-right:0}[dir=rtl] .mat-mdc-text-field-wrapper{padding-left:16px;padding-right:16px}[dir=rtl] .mat-mdc-form-field-has-icon-suffix .mat-mdc-text-field-wrapper{padding-left:0}[dir=rtl] .mat-mdc-form-field-has-icon-prefix .mat-mdc-text-field-wrapper{padding-right:0}.mat-form-field-disabled .mdc-text-field__input::placeholder{color:var(--mat-form-field-disabled-input-text-placeholder-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent))}.mat-form-field-disabled .mdc-text-field__input::-moz-placeholder{color:var(--mat-form-field-disabled-input-text-placeholder-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent))}.mat-form-field-disabled .mdc-text-field__input::-webkit-input-placeholder{color:var(--mat-form-field-disabled-input-text-placeholder-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent))}.mat-form-field-disabled .mdc-text-field__input:-ms-input-placeholder{color:var(--mat-form-field-disabled-input-text-placeholder-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent))}.mat-mdc-form-field-label-always-float .mdc-text-field__input::placeholder{transition-delay:40ms;transition-duration:110ms;opacity:1}.mat-mdc-text-field-wrapper .mat-mdc-form-field-infix .mat-mdc-floating-label{left:auto;right:auto}.mat-mdc-text-field-wrapper.mdc-text-field--outlined .mdc-text-field__input{display:inline-block}.mat-mdc-form-field .mat-mdc-text-field-wrapper.mdc-text-field .mdc-notched-outline__notch{padding-top:0}.mat-mdc-form-field.mat-mdc-form-field.mat-mdc-form-field.mat-mdc-form-field.mat-mdc-form-field.mat-mdc-form-field .mdc-notched-outline__notch{border-left:1px solid rgba(0,0,0,0)}[dir=rtl] .mat-mdc-form-field.mat-mdc-form-field.mat-mdc-form-field.mat-mdc-form-field.mat-mdc-form-field.mat-mdc-form-field .mdc-notched-outline__notch{border-left:none;border-right:1px solid rgba(0,0,0,0)}.mat-mdc-form-field-infix{min-height:var(--mat-form-field-container-height, 56px);padding-top:var(--mat-form-field-filled-with-label-container-padding-top, 24px);padding-bottom:var(--mat-form-field-filled-with-label-container-padding-bottom, 8px)}.mdc-text-field--outlined .mat-mdc-form-field-infix,.mdc-text-field--no-label .mat-mdc-form-field-infix{padding-top:var(--mat-form-field-container-vertical-padding, 16px);padding-bottom:var(--mat-form-field-container-vertical-padding, 16px)}.mat-mdc-text-field-wrapper .mat-mdc-form-field-flex .mat-mdc-floating-label{top:calc(var(--mat-form-field-container-height, 56px)/2)}.mdc-text-field--filled .mat-mdc-floating-label{display:var(--mat-form-field-filled-label-display, block)}.mat-mdc-text-field-wrapper.mdc-text-field--outlined .mdc-notched-outline--upgraded .mdc-floating-label--float-above{--mat-mdc-form-field-label-transform: translateY(calc(calc(6.75px + var(--mat-form-field-container-height, 56px) / 2) * -1)) scale(var(--mat-mdc-form-field-floating-label-scale, 0.75));transform:var(--mat-mdc-form-field-label-transform)}@keyframes _mat-form-field-subscript-animation{from{opacity:0;transform:translateY(-5px)}to{opacity:1;transform:translateY(0)}}.mat-mdc-form-field-subscript-wrapper{box-sizing:border-box;width:100%;position:relative}.mat-mdc-form-field-hint-wrapper,.mat-mdc-form-field-error-wrapper{position:absolute;top:0;left:0;right:0;padding:0 16px;opacity:1;transform:translateY(0);animation:_mat-form-field-subscript-animation 0ms cubic-bezier(0.55, 0, 0.55, 0.2)}.mat-mdc-form-field-subscript-dynamic-size .mat-mdc-form-field-hint-wrapper,.mat-mdc-form-field-subscript-dynamic-size .mat-mdc-form-field-error-wrapper{position:static}.mat-mdc-form-field-bottom-align::before{content:"";display:inline-block;height:16px}.mat-mdc-form-field-bottom-align.mat-mdc-form-field-subscript-dynamic-size::before{content:unset}.mat-mdc-form-field-hint-end{order:1}.mat-mdc-form-field-hint-wrapper{display:flex}.mat-mdc-form-field-hint-spacer{flex:1 0 1em}.mat-mdc-form-field-error{display:block;color:var(--mat-form-field-error-text-color, var(--mat-sys-error))}.mat-mdc-form-field-subscript-wrapper,.mat-mdc-form-field-bottom-align::before{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;font-family:var(--mat-form-field-subscript-text-font, var(--mat-sys-body-small-font));line-height:var(--mat-form-field-subscript-text-line-height, var(--mat-sys-body-small-line-height));font-size:var(--mat-form-field-subscript-text-size, var(--mat-sys-body-small-size));letter-spacing:var(--mat-form-field-subscript-text-tracking, var(--mat-sys-body-small-tracking));font-weight:var(--mat-form-field-subscript-text-weight, var(--mat-sys-body-small-weight))}.mat-mdc-form-field-focus-overlay{top:0;left:0;right:0;bottom:0;position:absolute;opacity:0;pointer-events:none;background-color:var(--mat-form-field-state-layer-color, var(--mat-sys-on-surface))}.mat-mdc-text-field-wrapper:hover .mat-mdc-form-field-focus-overlay{opacity:var(--mat-form-field-hover-state-layer-opacity, var(--mat-sys-hover-state-layer-opacity))}.mat-mdc-form-field.mat-focused .mat-mdc-form-field-focus-overlay{opacity:var(--mat-form-field-focus-state-layer-opacity, 0)}select.mat-mdc-form-field-input-control{-moz-appearance:none;-webkit-appearance:none;background-color:rgba(0,0,0,0);display:inline-flex;box-sizing:border-box}select.mat-mdc-form-field-input-control:not(:disabled){cursor:pointer}select.mat-mdc-form-field-input-control:not(.mat-mdc-native-select-inline) option{color:var(--mat-form-field-select-option-text-color, var(--mat-sys-neutral10))}select.mat-mdc-form-field-input-control:not(.mat-mdc-native-select-inline) option:disabled{color:var(--mat-form-field-select-disabled-option-text-color, color-mix(in srgb, var(--mat-sys-neutral10) 38%, transparent))}.mat-mdc-form-field-type-mat-native-select .mat-mdc-form-field-infix::after{content:"";width:0;height:0;border-left:5px solid rgba(0,0,0,0);border-right:5px solid rgba(0,0,0,0);border-top:5px solid;position:absolute;right:0;top:50%;margin-top:-2.5px;pointer-events:none;color:var(--mat-form-field-enabled-select-arrow-color, var(--mat-sys-on-surface-variant))}[dir=rtl] .mat-mdc-form-field-type-mat-native-select .mat-mdc-form-field-infix::after{right:auto;left:0}.mat-mdc-form-field-type-mat-native-select.mat-focused .mat-mdc-form-field-infix::after{color:var(--mat-form-field-focus-select-arrow-color, var(--mat-sys-primary))}.mat-mdc-form-field-type-mat-native-select.mat-form-field-disabled .mat-mdc-form-field-infix::after{color:var(--mat-form-field-disabled-select-arrow-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent))}.mat-mdc-form-field-type-mat-native-select .mat-mdc-form-field-input-control{padding-right:15px}[dir=rtl] .mat-mdc-form-field-type-mat-native-select .mat-mdc-form-field-input-control{padding-right:0;padding-left:15px}@media(forced-colors: active){.mat-form-field-appearance-fill .mat-mdc-text-field-wrapper{outline:solid 1px}}@media(forced-colors: active){.mat-form-field-appearance-fill.mat-form-field-disabled .mat-mdc-text-field-wrapper{outline-color:GrayText}}@media(forced-colors: active){.mat-form-field-appearance-fill.mat-focused .mat-mdc-text-field-wrapper{outline:dashed 3px}}@media(forced-colors: active){.mat-mdc-form-field.mat-focused .mdc-notched-outline{border:dashed 3px}}.mat-mdc-form-field-input-control[type=date],.mat-mdc-form-field-input-control[type=datetime],.mat-mdc-form-field-input-control[type=datetime-local],.mat-mdc-form-field-input-control[type=month],.mat-mdc-form-field-input-control[type=week],.mat-mdc-form-field-input-control[type=time]{line-height:1}.mat-mdc-form-field-input-control::-webkit-datetime-edit{line-height:1;padding:0;margin-bottom:-2px}.mat-mdc-form-field{--mat-mdc-form-field-floating-label-scale: 0.75;display:inline-flex;flex-direction:column;min-width:0;text-align:left;-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;font-family:var(--mat-form-field-container-text-font, var(--mat-sys-body-large-font));line-height:var(--mat-form-field-container-text-line-height, var(--mat-sys-body-large-line-height));font-size:var(--mat-form-field-container-text-size, var(--mat-sys-body-large-size));letter-spacing:var(--mat-form-field-container-text-tracking, var(--mat-sys-body-large-tracking));font-weight:var(--mat-form-field-container-text-weight, var(--mat-sys-body-large-weight))}.mat-mdc-form-field .mdc-text-field--outlined .mdc-floating-label--float-above{font-size:calc(var(--mat-form-field-outlined-label-text-populated-size)*var(--mat-mdc-form-field-floating-label-scale))}.mat-mdc-form-field .mdc-text-field--outlined .mdc-notched-outline--upgraded .mdc-floating-label--float-above{font-size:var(--mat-form-field-outlined-label-text-populated-size)}[dir=rtl] .mat-mdc-form-field{text-align:right}.mat-mdc-form-field-flex{display:inline-flex;align-items:baseline;box-sizing:border-box;width:100%}.mat-mdc-text-field-wrapper{width:100%;z-index:0}.mat-mdc-form-field-icon-prefix,.mat-mdc-form-field-icon-suffix{align-self:center;line-height:0;pointer-events:auto;position:relative;z-index:1}.mat-mdc-form-field-icon-prefix>.mat-icon,.mat-mdc-form-field-icon-suffix>.mat-icon{padding:0 12px;box-sizing:content-box}.mat-mdc-form-field-icon-prefix{color:var(--mat-form-field-leading-icon-color, var(--mat-sys-on-surface-variant))}.mat-form-field-disabled .mat-mdc-form-field-icon-prefix{color:var(--mat-form-field-disabled-leading-icon-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent))}.mat-mdc-form-field-icon-suffix{color:var(--mat-form-field-trailing-icon-color, var(--mat-sys-on-surface-variant))}.mat-form-field-disabled .mat-mdc-form-field-icon-suffix{color:var(--mat-form-field-disabled-trailing-icon-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent))}.mat-form-field-invalid .mat-mdc-form-field-icon-suffix{color:var(--mat-form-field-error-trailing-icon-color, var(--mat-sys-error))}.mat-form-field-invalid:not(.mat-focused):not(.mat-form-field-disabled) .mat-mdc-text-field-wrapper:hover .mat-mdc-form-field-icon-suffix{color:var(--mat-form-field-error-hover-trailing-icon-color, var(--mat-sys-on-error-container))}.mat-form-field-invalid.mat-focused .mat-mdc-text-field-wrapper .mat-mdc-form-field-icon-suffix{color:var(--mat-form-field-error-focus-trailing-icon-color, var(--mat-sys-error))}.mat-mdc-form-field-icon-prefix,[dir=rtl] .mat-mdc-form-field-icon-suffix{padding:0 4px 0 0}.mat-mdc-form-field-icon-suffix,[dir=rtl] .mat-mdc-form-field-icon-prefix{padding:0 0 0 4px}.mat-mdc-form-field-subscript-wrapper .mat-icon,.mat-mdc-form-field label .mat-icon{width:1em;height:1em;font-size:inherit}.mat-mdc-form-field-infix{flex:auto;min-width:0;width:180px;position:relative;box-sizing:border-box}.mat-mdc-form-field-infix:has(textarea[cols]){width:auto}.mat-mdc-form-field .mdc-notched-outline__notch{margin-left:-1px;-webkit-clip-path:inset(-9em -999em -9em 1px);clip-path:inset(-9em -999em -9em 1px)}[dir=rtl] .mat-mdc-form-field .mdc-notched-outline__notch{margin-left:0;margin-right:-1px;-webkit-clip-path:inset(-9em 1px -9em -999em);clip-path:inset(-9em 1px -9em -999em)}.mat-mdc-form-field.mat-form-field-animations-enabled .mdc-floating-label{transition:transform 150ms cubic-bezier(0.4, 0, 0.2, 1),color 150ms cubic-bezier(0.4, 0, 0.2, 1)}.mat-mdc-form-field.mat-form-field-animations-enabled .mdc-text-field__input{transition:opacity 150ms cubic-bezier(0.4, 0, 0.2, 1)}.mat-mdc-form-field.mat-form-field-animations-enabled .mdc-text-field__input::placeholder{transition:opacity 67ms cubic-bezier(0.4, 0, 0.2, 1)}.mat-mdc-form-field.mat-form-field-animations-enabled .mdc-text-field__input::-moz-placeholder{transition:opacity 67ms cubic-bezier(0.4, 0, 0.2, 1)}.mat-mdc-form-field.mat-form-field-animations-enabled .mdc-text-field__input::-webkit-input-placeholder{transition:opacity 67ms cubic-bezier(0.4, 0, 0.2, 1)}.mat-mdc-form-field.mat-form-field-animations-enabled .mdc-text-field__input:-ms-input-placeholder{transition:opacity 67ms cubic-bezier(0.4, 0, 0.2, 1)}.mat-mdc-form-field.mat-form-field-animations-enabled.mdc-text-field--no-label .mdc-text-field__input::placeholder,.mat-mdc-form-field.mat-form-field-animations-enabled.mdc-text-field--focused .mdc-text-field__input::placeholder{transition-delay:40ms;transition-duration:110ms}.mat-mdc-form-field.mat-form-field-animations-enabled.mdc-text-field--no-label .mdc-text-field__input::-moz-placeholder,.mat-mdc-form-field.mat-form-field-animations-enabled.mdc-text-field--focused .mdc-text-field__input::-moz-placeholder{transition-delay:40ms;transition-duration:110ms}.mat-mdc-form-field.mat-form-field-animations-enabled.mdc-text-field--no-label .mdc-text-field__input::-webkit-input-placeholder,.mat-mdc-form-field.mat-form-field-animations-enabled.mdc-text-field--focused .mdc-text-field__input::-webkit-input-placeholder{transition-delay:40ms;transition-duration:110ms}.mat-mdc-form-field.mat-form-field-animations-enabled.mdc-text-field--no-label .mdc-text-field__input:-ms-input-placeholder,.mat-mdc-form-field.mat-form-field-animations-enabled.mdc-text-field--focused .mdc-text-field__input:-ms-input-placeholder{transition-delay:40ms;transition-duration:110ms}.mat-mdc-form-field.mat-form-field-animations-enabled .mdc-text-field--filled:not(.mdc-ripple-upgraded):focus .mdc-text-field__ripple::before{transition-duration:75ms}.mat-mdc-form-field.mat-form-field-animations-enabled .mdc-line-ripple::after{transition:transform 180ms cubic-bezier(0.4, 0, 0.2, 1),opacity 180ms cubic-bezier(0.4, 0, 0.2, 1)}.mat-mdc-form-field.mat-form-field-animations-enabled .mat-mdc-form-field-hint-wrapper,.mat-mdc-form-field.mat-form-field-animations-enabled .mat-mdc-form-field-error-wrapper{animation-duration:300ms}.mdc-notched-outline .mdc-floating-label{max-width:calc(100% + 1px)}.mdc-notched-outline--upgraded .mdc-floating-label--float-above{max-width:calc(133.3333333333% + 1px)} -`],encapsulation:2,changeDetection:0})}return t})();var tg=class{};function ig(t){return t&&typeof t.connect=="function"&&!(t instanceof Al)}var cc=(function(t){return t[t.REPLACED=0]="REPLACED",t[t.INSERTED=1]="INSERTED",t[t.MOVED=2]="MOVED",t[t.REMOVED=3]="REMOVED",t})(cc||{}),fh=new T("_ViewRepeater");var yJ=20,ws=(()=>{class t{_ngZone=u(ae);_platform=u(qe);_renderer=u(cn).createRenderer(null,null);_cleanupGlobalListener;constructor(){}_scrolled=new z;_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 i=this.scrollContainers.get(e);i&&(i.unsubscribe(),this.scrollContainers.delete(e))}scrolled(e=yJ){return this._platform.isBrowser?new Fe(i=>{this._cleanupGlobalListener||(this._cleanupGlobalListener=this._ngZone.runOutsideAngular(()=>this._renderer.listen("document","scroll",()=>this._scrolled.next())));let r=e>0?this._scrolled.pipe(Pl(e)).subscribe(i):this._scrolled.subscribe(i);return this._scrolledCount++,()=>{r.unsubscribe(),this._scrolledCount--,this._scrolledCount||(this._cleanupGlobalListener?.(),this._cleanupGlobalListener=void 0)}}):Q()}ngOnDestroy(){this._cleanupGlobalListener?.(),this._cleanupGlobalListener=void 0,this.scrollContainers.forEach((e,i)=>this.deregister(i)),this._scrolled.complete()}ancestorScrolled(e,i){let r=this.getAncestorScrollContainers(e);return this.scrolled(i).pipe(ce(o=>!o||r.indexOf(o)>-1))}getAncestorScrollContainers(e){let i=[];return this.scrollContainers.forEach((r,o)=>{this._scrollableContainsElement(o,e)&&i.push(o)}),i}_scrollableContainsElement(e,i){let r=Pr(i),o=e.getElementRef().nativeElement;do if(r==o)return!0;while(r=r.parentElement);return!1}static \u0275fac=function(i){return new(i||t)};static \u0275prov=O({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),Pa=(()=>{class t{elementRef=u(q);scrollDispatcher=u(ws);ngZone=u(ae);dir=u(Vt,{optional:!0});_scrollElement=this.elementRef.nativeElement;_destroyed=new z;_renderer=u(je);_cleanupScroll;_elementScrolled=new z;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 i=this.elementRef.nativeElement,r=this.dir&&this.dir.value=="rtl";e.left==null&&(e.left=r?e.end:e.start),e.right==null&&(e.right=r?e.start:e.end),e.bottom!=null&&(e.top=i.scrollHeight-i.clientHeight-e.bottom),r&&eh()!=Aa.NORMAL?(e.left!=null&&(e.right=i.scrollWidth-i.clientWidth-e.left),eh()==Aa.INVERTED?e.left=e.right:eh()==Aa.NEGATED&&(e.left=e.right?-e.right:e.right)):e.right!=null&&(e.left=i.scrollWidth-i.clientWidth-e.right),this._applyScrollToOptions(e)}_applyScrollToOptions(e){let i=this.elementRef.nativeElement;q0()?i.scrollTo(e):(e.top!=null&&(i.scrollTop=e.top),e.left!=null&&(i.scrollLeft=e.left))}measureScrollOffset(e){let i="left",r="right",o=this.elementRef.nativeElement;if(e=="top")return o.scrollTop;if(e=="bottom")return o.scrollHeight-o.clientHeight-o.scrollTop;let a=this.dir&&this.dir.value=="rtl";return e=="start"?e=a?r:i:e=="end"&&(e=a?i:r),a&&eh()==Aa.INVERTED?e==i?o.scrollWidth-o.clientWidth-o.scrollLeft:o.scrollLeft:a&&eh()==Aa.NEGATED?e==i?o.scrollLeft+o.scrollWidth-o.clientWidth:-o.scrollLeft:e==i?o.scrollLeft:o.scrollWidth-o.clientWidth-o.scrollLeft}static \u0275fac=function(i){return new(i||t)};static \u0275dir=F({type:t,selectors:[["","cdk-scrollable",""],["","cdkScrollable",""]]})}return t})(),xJ=20,Xn=(()=>{class t{_platform=u(qe);_listeners;_viewportSize;_change=new z;_document=u(ge);constructor(){let e=u(ae),i=u(cn).createRenderer(null,null);e.runOutsideAngular(()=>{if(this._platform.isBrowser){let r=o=>this._change.next(o);this._listeners=[i.listen("window","resize",r),i.listen("window","orientationchange",r)]}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:i,height:r}=this.getViewportSize();return{top:e.top,left:e.left,bottom:e.top+r,right:e.left+i,height:r,width:i}}getViewportScrollPosition(){if(!this._platform.isBrowser)return{top:0,left:0};let e=this._document,i=this._getWindow(),r=e.documentElement,o=r.getBoundingClientRect(),a=-o.top||e.body.scrollTop||i.scrollY||r.scrollTop||0,s=-o.left||e.body.scrollLeft||i.scrollX||r.scrollLeft||0;return{top:a,left:s}}change(e=xJ){return e>0?this._change.pipe(Pl(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(i){return new(i||t)};static \u0275prov=O({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();var vr=(()=>{class t{static \u0275fac=function(i){return new(i||t)};static \u0275mod=ee({type:t});static \u0275inj=J({})}return t})(),ng=(()=>{class t{static \u0275fac=function(i){return new(i||t)};static \u0275mod=ee({type:t});static \u0275inj=J({imports:[vs,vr,vs,vr]})}return t})();var rg=class{_attachedHost;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}},Zr=class extends rg{component;viewContainerRef;injector;projectableNodes;constructor(n,e,i,r){super(),this.component=n,this.viewContainerRef=e,this.injector=i,this.projectableNodes=r}},Cn=class extends rg{templateRef;viewContainerRef;context;injector;constructor(n,e,i,r){super(),this.templateRef=n,this.viewContainerRef=e,this.context=i,this.injector=r}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()}},$k=class extends rg{element;constructor(n){super(),this.element=n instanceof q?n.nativeElement:n}},dc=class{_attachedPortal;_disposeFn;_isDisposed=!1;hasAttached(){return!!this._attachedPortal}attach(n){if(n instanceof Zr)return this._attachedPortal=n,this.attachComponentPortal(n);if(n instanceof Cn)return this._attachedPortal=n,this.attachTemplatePortal(n);if(this.attachDomPortal&&n instanceof $k)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)}},og=class extends dc{outletElement;_appRef;_defaultInjector;constructor(n,e,i){super(),this.outletElement=n,this._appRef=e,this._defaultInjector=i}attachComponentPortal(n){let e;if(n.viewContainerRef){let i=n.injector||n.viewContainerRef.injector,r=i.get(as,null,{optional:!0})||void 0;e=n.viewContainerRef.createComponent(n.component,{index:n.viewContainerRef.length,injector:i,ngModuleRef:r,projectableNodes:n.projectableNodes||void 0}),this.setDisposeFn(()=>e.destroy())}else{let i=this._appRef,r=n.injector||this._defaultInjector||de.NULL,o=r.get(Wt,i.injector);e=Mm(n.component,{elementInjector:r,environmentInjector:o,projectableNodes:n.projectableNodes||void 0}),i.attachView(e.hostView),this.setDisposeFn(()=>{i.viewCount>0&&i.detachView(e.hostView),e.destroy()})}return this.outletElement.appendChild(this._getComponentRootNode(e)),this._attachedPortal=n,e}attachTemplatePortal(n){let e=n.viewContainerRef,i=e.createEmbeddedView(n.templateRef,n.context,{injector:n.injector});return i.rootNodes.forEach(r=>this.outletElement.appendChild(r)),i.detectChanges(),this.setDisposeFn(()=>{let r=e.indexOf(i);r!==-1&&e.remove(r)}),this._attachedPortal=n,i}attachDomPortal=n=>{let e=n.element;e.parentNode;let i=this.outletElement.ownerDocument.createComment("dom-portal");e.parentNode.insertBefore(i,e),this.outletElement.appendChild(e),this._attachedPortal=n,super.setDisposeFn(()=>{i.parentNode&&i.parentNode.replaceChild(e,i)})};dispose(){super.dispose(),this.outletElement.remove()}_getComponentRootNode(n){return n.hostView.rootNodes[0]}},eB=(()=>{class t extends Cn{constructor(){let e=u(te),i=u(nt);super(e,i)}static \u0275fac=function(i){return new(i||t)};static \u0275dir=F({type:t,selectors:[["","cdkPortal",""]],exportAs:["cdkPortal"],features:[le]})}return t})();var yr=(()=>{class t extends dc{_moduleRef=u(as,{optional:!0});_document=u(ge);_viewContainerRef=u(nt);_isInitialized=!1;_attachedRef;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 U;get attachedRef(){return this._attachedRef}ngOnInit(){this._isInitialized=!0}ngOnDestroy(){super.dispose(),this._attachedRef=this._attachedPortal=null}attachComponentPortal(e){e.setAttachedHost(this);let i=e.viewContainerRef!=null?e.viewContainerRef:this._viewContainerRef,r=i.createComponent(e.component,{index:i.length,injector:e.injector||i.injector,projectableNodes:e.projectableNodes||void 0,ngModuleRef:this._moduleRef||void 0});return i!==this._viewContainerRef&&this._getRootNode().appendChild(r.hostView.rootNodes[0]),super.setDisposeFn(()=>r.destroy()),this._attachedPortal=e,this._attachedRef=r,this.attached.emit(r),r}attachTemplatePortal(e){e.setAttachedHost(this);let i=this._viewContainerRef.createEmbeddedView(e.templateRef,e.context,{injector:e.injector});return super.setDisposeFn(()=>this._viewContainerRef.clear()),this._attachedPortal=e,this._attachedRef=i,this.attached.emit(i),i}attachDomPortal=e=>{let i=e.element;i.parentNode;let r=this._document.createComment("dom-portal");e.setAttachedHost(this),i.parentNode.insertBefore(r,i),this._getRootNode().appendChild(i),this._attachedPortal=e,super.setDisposeFn(()=>{r.parentNode&&r.parentNode.replaceChild(i,r)})};_getRootNode(){let e=this._viewContainerRef.element.nativeElement;return e.nodeType===e.ELEMENT_NODE?e:e.parentNode}static \u0275fac=function(i){return new(i||t)};static \u0275dir=F({type:t,selectors:[["","cdkPortalOutlet",""]],inputs:{portal:[0,"cdkPortalOutlet","portal"]},outputs:{attached:"attached"},exportAs:["cdkPortalOutlet"],features:[le]})}return t})();var Co=(()=>{class t{static \u0275fac=function(i){return new(i||t)};static \u0275mod=ee({type:t});static \u0275inj=J({})}return t})();var tB=q0();function uc(t){return new Qy(t.get(Xn),t.get(ge))}var Qy=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=on(-this._previousScrollPosition.left),n.style.top=on(-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,i=n.style,r=e.style,o=i.scrollBehavior||"",a=r.scrollBehavior||"";this._isEnabled=!1,i.left=this._previousHTMLStyles.left,i.top=this._previousHTMLStyles.top,n.classList.remove("cdk-global-scrollblock"),tB&&(i.scrollBehavior=r.scrollBehavior="auto"),window.scroll(this._previousScrollPosition.left,this._previousScrollPosition.top),tB&&(i.scrollBehavior=o,r.scrollBehavior=a)}}_canBeEnabled(){if(this._document.documentElement.classList.contains("cdk-global-scrollblock")||this._isEnabled)return!1;let e=this._document.documentElement,i=this._viewportRuler.getViewportSize();return e.scrollHeight>i.height||e.scrollWidth>i.width}};function lB(t,n){return new Ky(t.get(ws),t.get(ae),t.get(Xn),n)}var Ky=class{_scrollDispatcher;_ngZone;_viewportRuler;_config;_scrollSubscription=null;_overlayRef;_initialScrollPosition;constructor(n,e,i,r){this._scrollDispatcher=n,this._ngZone=e,this._viewportRuler=i,this._config=r}attach(n){this._overlayRef,this._overlayRef=n}enable(){if(this._scrollSubscription)return;let n=this._scrollDispatcher.scrolled(0).pipe(ce(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 ag=class{enable(){}disable(){}attach(){}};function Wk(t,n){return n.some(e=>{let i=t.bottome.bottom,o=t.righte.right;return i||r||o||a})}function iB(t,n){return n.some(e=>{let i=t.tope.bottom,o=t.lefte.right;return i||r||o||a})}function wn(t,n){return new Zy(t.get(ws),t.get(Xn),t.get(ae),n)}var Zy=class{_scrollDispatcher;_viewportRuler;_ngZone;_config;_scrollSubscription=null;_overlayRef;constructor(n,e,i,r){this._scrollDispatcher=n,this._viewportRuler=e,this._ngZone=i,this._config=r}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:i,height:r}=this._viewportRuler.getViewportSize();Wk(e,[{width:i,height:r,bottom:r,right:i,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}},cB=(()=>{class t{_injector=u(de);constructor(){}noop=()=>new ag;close=e=>lB(this._injector,e);block=()=>uc(this._injector);reposition=e=>wn(this._injector,e);static \u0275fac=function(i){return new(i||t)};static \u0275prov=O({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),Fr=class{positionStrategy;scrollStrategy=new ag;panelClass="";hasBackdrop=!1;backdropClass="cdk-overlay-dark-backdrop";disableAnimations;width;height;minWidth;minHeight;maxWidth;maxHeight;direction;disposeOnNavigation=!1;constructor(n){if(n){let e=Object.keys(n);for(let i of e)n[i]!==void 0&&(this[i]=n[i])}}};var Xy=class{connectionPair;scrollableViewProperties;constructor(n,e){this.connectionPair=n,this.scrollableViewProperties=e}};var dB=(()=>{class t{_attachedOverlays=[];_document=u(ge);_isAttached;constructor(){}ngOnDestroy(){this.detach()}add(e){this.remove(e),this._attachedOverlays.push(e)}remove(e){let i=this._attachedOverlays.indexOf(e);i>-1&&this._attachedOverlays.splice(i,1),this._attachedOverlays.length===0&&this.detach()}static \u0275fac=function(i){return new(i||t)};static \u0275prov=O({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),uB=(()=>{class t extends dB{_ngZone=u(ae);_renderer=u(cn).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 i=this._attachedOverlays;for(let r=i.length-1;r>-1;r--)if(i[r]._keydownEvents.observers.length>0){this._ngZone.run(()=>i[r]._keydownEvents.next(e));break}};static \u0275fac=(()=>{let e;return function(r){return(e||(e=fe(t)))(r||t)}})();static \u0275prov=O({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),mB=(()=>{class t extends dB{_platform=u(qe);_ngZone=u(ae);_renderer=u(cn).createRenderer(null,null);_cursorOriginalValue;_cursorStyleIsSet=!1;_pointerDownEventTarget;_cleanups;add(e){if(super.add(e),!this._isAttached){let i=this._document.body,r={capture:!0},o=this._renderer;this._cleanups=this._ngZone.runOutsideAngular(()=>[o.listen(i,"pointerdown",this._pointerDownListener,r),o.listen(i,"click",this._clickListener,r),o.listen(i,"auxclick",this._clickListener,r),o.listen(i,"contextmenu",this._clickListener,r)]),this._platform.IOS&&!this._cursorStyleIsSet&&(this._cursorOriginalValue=i.style.cursor,i.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=Kn(e)};_clickListener=e=>{let i=Kn(e),r=e.type==="click"&&this._pointerDownEventTarget?this._pointerDownEventTarget:i;this._pointerDownEventTarget=null;let o=this._attachedOverlays.slice();for(let a=o.length-1;a>-1;a--){let s=o[a];if(s._outsidePointerEvents.observers.length<1||!s.hasAttached())continue;if(nB(s.overlayElement,i)||nB(s.overlayElement,r))break;let l=s._outsidePointerEvents;this._ngZone?this._ngZone.run(()=>l.next(e)):l.next(e)}};static \u0275fac=(()=>{let e;return function(r){return(e||(e=fe(t)))(r||t)}})();static \u0275prov=O({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();function nB(t,n){let e=typeof ShadowRoot<"u"&&ShadowRoot,i=n;for(;i;){if(i===t)return!0;i=e&&i instanceof ShadowRoot?i.host:i.parentNode}return!1}var hB=(()=>{class t{static \u0275fac=function(i){return new(i||t)};static \u0275cmp=E({type:t,selectors:[["ng-component"]],hostAttrs:["cdk-overlay-style-loader",""],decls:0,vars:0,template:function(i,r){},styles:[`.cdk-overlay-container,.cdk-global-overlay-wrapper{pointer-events:none;top:0;left:0;height:100%;width:100%}.cdk-overlay-container{position:fixed}@layer cdk-overlay{.cdk-overlay-container{z-index:1000}}.cdk-overlay-container:empty{display:none}.cdk-global-overlay-wrapper{display:flex;position:absolute}@layer cdk-overlay{.cdk-global-overlay-wrapper{z-index:1000}}.cdk-overlay-pane{position:absolute;pointer-events:auto;box-sizing:border-box;display:flex;max-width:100%;max-height:100%}@layer cdk-overlay{.cdk-overlay-pane{z-index:1000}}.cdk-overlay-backdrop{position:absolute;top:0;bottom:0;left:0;right:0;pointer-events:auto;-webkit-tap-highlight-color:rgba(0,0,0,0);opacity:0;touch-action:manipulation}@layer cdk-overlay{.cdk-overlay-backdrop{z-index:1000;transition:opacity 400ms cubic-bezier(0.25, 0.8, 0.25, 1)}}@media(prefers-reduced-motion){.cdk-overlay-backdrop{transition-duration:1ms}}.cdk-overlay-backdrop-showing{opacity:1}@media(forced-colors: active){.cdk-overlay-backdrop-showing{opacity:.6}}@layer cdk-overlay{.cdk-overlay-dark-backdrop{background:rgba(0,0,0,.32)}}.cdk-overlay-transparent-backdrop{transition:visibility 1ms linear,opacity 1ms linear;visibility:hidden;opacity:1}.cdk-overlay-transparent-backdrop.cdk-overlay-backdrop-showing,.cdk-high-contrast-active .cdk-overlay-transparent-backdrop{opacity:0;visibility:visible}.cdk-overlay-backdrop-noop-animation{transition:none}.cdk-overlay-connected-position-bounding-box{position:absolute;display:flex;flex-direction:column;min-width:1px;min-height:1px}@layer cdk-overlay{.cdk-overlay-connected-position-bounding-box{z-index:1000}}.cdk-global-scrollblock{position:fixed;width:100%;overflow-y:scroll} -`],encapsulation:2,changeDetection:0})}return t})(),ex=(()=>{class t{_platform=u(qe);_containerElement;_document=u(ge);_styleLoader=u(ut);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||Dk()){let r=this._document.querySelectorAll(`.${e}[platform="server"], .${e}[platform="test"]`);for(let o=0;o{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()}},gh=class{_portalOutlet;_host;_pane;_config;_ngZone;_keyboardDispatcher;_document;_location;_outsideClickDispatcher;_animationsDisabled;_injector;_renderer;_backdropClick=new z;_attachments=new z;_detachments=new z;_positionStrategy;_scrollStrategy;_locationChanges=ke.EMPTY;_backdropRef=null;_detachContentMutationObserver;_detachContentAfterRenderRef;_previousHostParent;_keydownEvents=new z;_outsidePointerEvents=new z;_afterNextRenderRef;constructor(n,e,i,r,o,a,s,l,c,d=!1,m,f){this._portalOutlet=n,this._host=e,this._pane=i,this._config=r,this._ngZone=o,this._keyboardDispatcher=a,this._document=s,this._location=l,this._outsideClickDispatcher=c,this._animationsDisabled=d,this._injector=m,this._renderer=f,r.scrollStrategy&&(this._scrollStrategy=r.scrollStrategy,this._scrollStrategy.attach(this)),this._positionStrategy=r.positionStrategy}get overlayElement(){return this._pane}get backdropElement(){return this._backdropRef?.element||null}get hostElement(){return this._host}attach(n){!this._host.parentElement&&this._previousHostParent&&this._previousHostParent.appendChild(this._host);let e=this._portalOutlet.attach(n);return this._positionStrategy&&this._positionStrategy.attach(this),this._updateStackingOrder(),this._updateElementSize(),this._updateElementDirection(),this._scrollStrategy&&this._scrollStrategy.enable(),this._afterNextRenderRef?.destroy(),this._afterNextRenderRef=pt(()=>{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(){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()}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=M(M({},this._config),n),this._updateElementSize()}setDirection(n){this._config=De(M({},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=on(this._config.width),n.height=on(this._config.height),n.minWidth=on(this._config.minWidth),n.minHeight=on(this._config.minHeight),n.maxWidth=on(this._config.maxWidth),n.maxHeight=on(this._config.maxHeight)}_togglePointerEvents(n){this._pane.style.pointerEvents=n?"":"none"}_attachBackdrop(){let n="cdk-overlay-backdrop-showing";this._backdropRef?.dispose(),this._backdropRef=new Gk(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._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._host.nextSibling&&this._host.parentNode.appendChild(this._host)}detachBackdrop(){this._animationsDisabled?(this._backdropRef?.dispose(),this._backdropRef=null):this._backdropRef?.detach()}_toggleClasses(n,e,i){let r=al(e||[]).filter(o=>!!o);r.length&&(i?n.classList.add(...r):n.classList.remove(...r))}_detachContentWhenEmpty(){let n=!1;try{this._detachContentAfterRenderRef=pt(()=>{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?.()}},rB="cdk-overlay-connected-position-bounding-box",wJ=/([A-Za-z%]+)$/;function Fa(t,n){return new _h(n,t.get(Xn),t.get(ge),t.get(qe),t.get(ex))}var _h=class{_viewportRuler;_document;_platform;_overlayContainer;_overlayRef;_isInitialRender;_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;_boundingBox;_lastPosition;_lastScrollVisibility;_positionChanges=new z;_resizeSubscription=ke.EMPTY;_offsetX=0;_offsetY=0;_transformOriginSelector;_appliedPanelClasses=[];_previousPushAmount;positionChanges=this._positionChanges;get positions(){return this._preferredPositions}constructor(n,e,i,r,o){this._viewportRuler=e,this._document=i,this._platform=r,this._overlayContainer=o,this.setOrigin(n)}attach(n){this._overlayRef&&this._overlayRef,this._validatePositions(),n.hostElement.classList.add(rB),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._overlayContainer.getContainerElement().getBoundingClientRect();let n=this._originRect,e=this._overlayRect,i=this._viewportRect,r=this._containerRect,o=[],a;for(let s of this._preferredPositions){let l=this._getOriginPoint(n,r,s),c=this._getOverlayPoint(l,e,s),d=this._getOverlayFit(c,e,i,s);if(d.isCompletelyWithinViewport){this._isPushed=!1,this._applyPosition(s,l);return}if(this._canFitWithFlexibleDimensions(d,c,i)){o.push({position:s,origin:l,overlayRect:e,boundingBoxRect:this._calculateBoundingBoxRect(l,s)});continue}(!a||a.overlayFit.visibleAreal&&(l=d,s=c)}this._isPushed=!1,this._applyPosition(s.position,s.origin);return}if(this._canPush){this._isPushed=!0,this._applyPosition(a.position,a.originPoint);return}this._applyPosition(a.position,a.originPoint)}detach(){this._clearPanelClasses(),this._lastPosition=null,this._previousPushAmount=null,this._resizeSubscription.unsubscribe()}dispose(){this._isDisposed||(this._boundingBox&&ou(this._boundingBox.style,{top:"",left:"",right:"",bottom:"",height:"",width:"",alignItems:"",justifyContent:""}),this._pane&&this._resetOverlayElementStyles(),this._overlayRef&&this._overlayRef.hostElement.classList.remove(rB),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;if(n){this._originRect=this._getOriginRect(),this._overlayRect=this._pane.getBoundingClientRect(),this._viewportRect=this._getNarrowedViewportRect(),this._containerRect=this._overlayContainer.getContainerElement().getBoundingClientRect();let e=this._getOriginPoint(this._originRect,this._containerRect,n);this._applyPosition(n,e)}else 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}_getOriginPoint(n,e,i){let r;if(i.originX=="center")r=n.left+n.width/2;else{let a=this._isRtl()?n.right:n.left,s=this._isRtl()?n.left:n.right;r=i.originX=="start"?a:s}e.left<0&&(r-=e.left);let o;return i.originY=="center"?o=n.top+n.height/2:o=i.originY=="top"?n.top:n.bottom,e.top<0&&(o-=e.top),{x:r,y:o}}_getOverlayPoint(n,e,i){let r;i.overlayX=="center"?r=-e.width/2:i.overlayX==="start"?r=this._isRtl()?-e.width:0:r=this._isRtl()?0:-e.width;let o;return i.overlayY=="center"?o=-e.height/2:o=i.overlayY=="top"?0:-e.height,{x:n.x+r,y:n.y+o}}_getOverlayFit(n,e,i,r){let o=aB(e),{x:a,y:s}=n,l=this._getOffset(r,"x"),c=this._getOffset(r,"y");l&&(a+=l),c&&(s+=c);let d=0-a,m=a+o.width-i.width,f=0-s,b=s+o.height-i.height,v=this._subtractOverflows(o.width,d,m),w=this._subtractOverflows(o.height,f,b),x=v*w;return{visibleArea:x,isCompletelyWithinViewport:o.width*o.height===x,fitsInViewportVertically:w===o.height,fitsInViewportHorizontally:v==o.width}}_canFitWithFlexibleDimensions(n,e,i){if(this._hasFlexibleDimensions){let r=i.bottom-e.y,o=i.right-e.x,a=oB(this._overlayRef.getConfig().minHeight),s=oB(this._overlayRef.getConfig().minWidth),l=n.fitsInViewportVertically||a!=null&&a<=r,c=n.fitsInViewportHorizontally||s!=null&&s<=o;return l&&c}return!1}_pushOverlayOnScreen(n,e,i){if(this._previousPushAmount&&this._positionLocked)return{x:n.x+this._previousPushAmount.x,y:n.y+this._previousPushAmount.y};let r=aB(e),o=this._viewportRect,a=Math.max(n.x+r.width-o.width,0),s=Math.max(n.y+r.height-o.height,0),l=Math.max(o.top-i.top-n.y,0),c=Math.max(o.left-i.left-n.x,0),d=0,m=0;return r.width<=o.width?d=c||-a:d=n.xv&&!this._isInitialRender&&!this._growAfterOpen&&(a=n.y-v/2)}let l=e.overlayX==="start"&&!r||e.overlayX==="end"&&r,c=e.overlayX==="end"&&!r||e.overlayX==="start"&&r,d,m,f;if(c)f=i.width-n.x+this._viewportMargin*2,d=n.x-this._viewportMargin;else if(l)m=n.x,d=i.right-n.x;else{let b=Math.min(i.right-n.x+i.left,n.x),v=this._lastBoundingBoxSize.width;d=b*2,m=n.x-b,d>v&&!this._isInitialRender&&!this._growAfterOpen&&(m=n.x-v/2)}return{top:a,left:m,bottom:s,right:f,width:d,height:o}}_setBoundingBoxStyles(n,e){let i=this._calculateBoundingBoxRect(n,e);!this._isInitialRender&&!this._growAfterOpen&&(i.height=Math.min(i.height,this._lastBoundingBoxSize.height),i.width=Math.min(i.width,this._lastBoundingBoxSize.width));let r={};if(this._hasExactPosition())r.top=r.left="0",r.bottom=r.right=r.maxHeight=r.maxWidth="",r.width=r.height="100%";else{let o=this._overlayRef.getConfig().maxHeight,a=this._overlayRef.getConfig().maxWidth;r.height=on(i.height),r.top=on(i.top),r.bottom=on(i.bottom),r.width=on(i.width),r.left=on(i.left),r.right=on(i.right),e.overlayX==="center"?r.alignItems="center":r.alignItems=e.overlayX==="end"?"flex-end":"flex-start",e.overlayY==="center"?r.justifyContent="center":r.justifyContent=e.overlayY==="bottom"?"flex-end":"flex-start",o&&(r.maxHeight=on(o)),a&&(r.maxWidth=on(a))}this._lastBoundingBoxSize=i,ou(this._boundingBox.style,r)}_resetBoundingBoxStyles(){ou(this._boundingBox.style,{top:"0",left:"0",right:"0",bottom:"0",height:"",width:"",alignItems:"",justifyContent:""})}_resetOverlayElementStyles(){ou(this._pane.style,{top:"",left:"",bottom:"",right:"",position:"",transform:""})}_setOverlayElementStyles(n,e){let i={},r=this._hasExactPosition(),o=this._hasFlexibleDimensions,a=this._overlayRef.getConfig();if(r){let d=this._viewportRuler.getViewportScrollPosition();ou(i,this._getExactOverlayY(e,n,d)),ou(i,this._getExactOverlayX(e,n,d))}else i.position="static";let s="",l=this._getOffset(e,"x"),c=this._getOffset(e,"y");l&&(s+=`translateX(${l}px) `),c&&(s+=`translateY(${c}px)`),i.transform=s.trim(),a.maxHeight&&(r?i.maxHeight=on(a.maxHeight):o&&(i.maxHeight="")),a.maxWidth&&(r?i.maxWidth=on(a.maxWidth):o&&(i.maxWidth="")),ou(this._pane.style,i)}_getExactOverlayY(n,e,i){let r={top:"",bottom:""},o=this._getOverlayPoint(e,this._overlayRect,n);if(this._isPushed&&(o=this._pushOverlayOnScreen(o,this._overlayRect,i)),n.overlayY==="bottom"){let a=this._document.documentElement.clientHeight;r.bottom=`${a-(o.y+this._overlayRect.height)}px`}else r.top=on(o.y);return r}_getExactOverlayX(n,e,i){let r={left:"",right:""},o=this._getOverlayPoint(e,this._overlayRect,n);this._isPushed&&(o=this._pushOverlayOnScreen(o,this._overlayRect,i));let a;if(this._isRtl()?a=n.overlayX==="end"?"left":"right":a=n.overlayX==="end"?"right":"left",a==="right"){let s=this._document.documentElement.clientWidth;r.right=`${s-(o.x+this._overlayRect.width)}px`}else r.left=on(o.x);return r}_getScrollVisibility(){let n=this._getOriginRect(),e=this._pane.getBoundingClientRect(),i=this._scrollables.map(r=>r.getElementRef().nativeElement.getBoundingClientRect());return{isOriginClipped:iB(n,i),isOriginOutsideView:Wk(n,i),isOverlayClipped:iB(e,i),isOverlayOutsideView:Wk(e,i)}}_subtractOverflows(n,...e){return e.reduce((i,r)=>i-Math.max(r,0),n)}_getNarrowedViewportRect(){let n=this._document.documentElement.clientWidth,e=this._document.documentElement.clientHeight,i=this._viewportRuler.getViewportScrollPosition();return{top:i.top+this._viewportMargin,left:i.left+this._viewportMargin,right:i.left+n-this._viewportMargin,bottom:i.top+e-this._viewportMargin,width:n-2*this._viewportMargin,height:e-2*this._viewportMargin}}_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&&al(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=[])}_getOriginRect(){let n=this._origin;if(n instanceof q)return n.nativeElement.getBoundingClientRect();if(n instanceof Element)return n.getBoundingClientRect();let e=n.width||0,i=n.height||0;return{top:n.y,bottom:n.y+i,left:n.x,right:n.x+e,height:i,width:e}}};function ou(t,n){for(let e in n)n.hasOwnProperty(e)&&(t[e]=n[e]);return t}function oB(t){if(typeof t!="number"&&t!=null){let[n,e]=t.split(wJ);return!e||e==="px"?parseFloat(n):null}return t||null}function aB(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 DJ(t,n){return t===n?!0:t.isOriginClipped===n.isOriginClipped&&t.isOriginOutsideView===n.isOriginOutsideView&&t.isOverlayClipped===n.isOverlayClipped&&t.isOverlayOutsideView===n.isOverlayOutsideView}var sB="cdk-global-overlay-wrapper";function Ds(t){return new Jy}var Jy=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(sB),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,i=this._overlayRef.getConfig(),{width:r,height:o,maxWidth:a,maxHeight:s}=i,l=(r==="100%"||r==="100vw")&&(!a||a==="100%"||a==="100vw"),c=(o==="100%"||o==="100vh")&&(!s||s==="100%"||s==="100vh"),d=this._xPosition,m=this._xOffset,f=this._overlayRef.getConfig().direction==="rtl",b="",v="",w="";l?w="flex-start":d==="center"?(w="center",f?v=m:b=m):f?d==="left"||d==="end"?(w="flex-end",b=m):(d==="right"||d==="start")&&(w="flex-start",v=m):d==="left"||d==="start"?(w="flex-start",b=m):(d==="right"||d==="end")&&(w="flex-end",v=m),n.position=this._cssPosition,n.marginLeft=l?"0":b,n.marginTop=c?"0":this._topOffset,n.marginBottom=this._bottomOffset,n.marginRight=l?"0":v,e.justifyContent=w,e.alignItems=c?"flex-start":this._alignItems}dispose(){if(this._isDisposed||!this._overlayRef)return;let n=this._overlayRef.overlayElement.style,e=this._overlayRef.hostElement,i=e.style;e.classList.remove(sB),i.justifyContent=i.alignItems=n.marginTop=n.marginBottom=n.marginLeft=n.marginRight=n.position="",this._overlayRef=null,this._isDisposed=!0}},pB=(()=>{class t{_injector=u(de);constructor(){}global(){return Ds()}flexibleConnectedTo(e){return Fa(this._injector,e)}static \u0275fac=function(i){return new(i||t)};static \u0275prov=O({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();function Nr(t,n){t.get(ut).load(hB);let e=t.get(ex),i=t.get(ge),r=t.get(Ze),o=t.get(Gn),a=t.get(Vt),s=i.createElement("div"),l=i.createElement("div");l.id=r.getId("cdk-overlay-"),l.classList.add("cdk-overlay-pane"),s.appendChild(l),e.getContainerElement().appendChild(s);let c=new og(l,o,t),d=new Fr(n),m=t.get(je,null,{optional:!0})||t.get(cn).createRenderer(null,null);return d.direction=d.direction||a.value,new gh(c,s,l,d,t.get(ae),t.get(uB),i,t.get(us),t.get(mB),n?.disableAnimations??t.get(Yp,null,{optional:!0})==="NoopAnimations",t.get(Wt),m)}var fB=(()=>{class t{scrollStrategies=u(cB);_positionBuilder=u(pB);_injector=u(de);constructor(){}create(e){return Nr(this._injector,e)}position(){return this._positionBuilder}static \u0275fac=function(i){return new(i||t)};static \u0275prov=O({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),EJ=[{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"}],gB=new T("cdk-connected-overlay-scroll-strategy",{providedIn:"root",factory:()=>{let t=u(de);return()=>wn(t)}}),bh=(()=>{class t{elementRef=u(q);constructor(){}static \u0275fac=function(i){return new(i||t)};static \u0275dir=F({type:t,selectors:[["","cdk-overlay-origin",""],["","overlay-origin",""],["","cdkOverlayOrigin",""]],exportAs:["cdkOverlayOrigin"]})}return t})(),tx=(()=>{class t{_dir=u(Vt,{optional:!0});_injector=u(de);_overlayRef;_templatePortal;_backdropSubscription=ke.EMPTY;_attachSubscription=ke.EMPTY;_detachSubscription=ke.EMPTY;_positionSubscription=ke.EMPTY;_offsetX;_offsetY;_position;_scrollStrategyFactory=u(gB);_disposeOnNavigation=!1;_ngZone=u(ae);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;get disposeOnNavigation(){return this._disposeOnNavigation}set disposeOnNavigation(e){this._disposeOnNavigation=e}backdropClick=new U;positionChange=new U;attach=new U;detach=new U;overlayKeydown=new U;overlayOutsideClick=new U;constructor(){let e=u(te),i=u(nt);this._templatePortal=new Cn(e,i),this.scrollStrategy=this._scrollStrategyFactory()}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.width,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=EJ);let e=this._overlayRef=Nr(this._injector,this._buildConfig());this._attachSubscription=e.attachments().subscribe(()=>this.attach.emit()),this._detachSubscription=e.detachments().subscribe(()=>this.detach.emit()),e.keydownEvents().subscribe(i=>{this.overlayKeydown.next(i),i.keyCode===27&&!this.disableClose&&!Ft(i)&&(i.preventDefault(),this.detachOverlay())}),this._overlayRef.outsidePointerEvents().subscribe(i=>{let r=this._getOriginElement(),o=Kn(i);(!r||r!==o&&!r.contains(o))&&this.overlayOutsideClick.next(i)})}_buildConfig(){let e=this._position=this.positionStrategy||this._createPositionStrategy(),i=new Fr({direction:this._dir||"ltr",positionStrategy:e,scrollStrategy:this.scrollStrategy,hasBackdrop:this.hasBackdrop,disposeOnNavigation:this.disposeOnNavigation});return(this.width||this.width===0)&&(i.width=this.width),(this.height||this.height===0)&&(i.height=this.height),(this.minWidth||this.minWidth===0)&&(i.minWidth=this.minWidth),(this.minHeight||this.minHeight===0)&&(i.minHeight=this.minHeight),this.backdropClass&&(i.backdropClass=this.backdropClass),this.panelClass&&(i.panelClass=this.panelClass),i}_updatePositionStrategy(e){let i=this.positions.map(r=>({originX:r.originX,originY:r.originY,overlayX:r.overlayX,overlayY:r.overlayY,offsetX:r.offsetX||this.offsetX,offsetY:r.offsetY||this.offsetY,panelClass:r.panelClass||void 0}));return e.setOrigin(this._getOrigin()).withPositions(i).withFlexibleDimensions(this.flexibleDimensions).withPush(this.push).withGrowAfterOpen(this.growAfterOpen).withViewportMargin(this.viewportMargin).withLockedPosition(this.lockPosition).withTransformOriginOn(this.transformOriginSelector)}_createPositionStrategy(){let e=Fa(this._injector,this._getOrigin());return this._updatePositionStrategy(e),e}_getOrigin(){return this.origin instanceof bh?this.origin.elementRef:this.origin}_getOriginElement(){return this.origin instanceof bh?this.origin.elementRef.nativeElement:this.origin instanceof q?this.origin.nativeElement:typeof Element<"u"&&this.origin instanceof Element?this.origin:null}attachOverlay(){this._overlayRef?this._overlayRef.getConfig().hasBackdrop=this.hasBackdrop:this._createOverlay(),this._overlayRef.hasAttached()||this._overlayRef.attach(this._templatePortal),this.hasBackdrop?this._backdropSubscription=this._overlayRef.backdropClick().subscribe(e=>{this.backdropClick.emit(e)}):this._backdropSubscription.unsubscribe(),this._positionSubscription.unsubscribe(),this.positionChange.observers.length>0&&(this._positionSubscription=this._position.positionChanges.pipe(Xw(()=>this.positionChange.observers.length>0)).subscribe(e=>{this._ngZone.run(()=>this.positionChange.emit(e)),this.positionChange.observers.length===0&&this._positionSubscription.unsubscribe()})),this.open=!0}detachOverlay(){this._overlayRef?.detach(),this._backdropSubscription.unsubscribe(),this._positionSubscription.unsubscribe(),this.open=!1}static \u0275fac=function(i){return new(i||t)};static \u0275dir=F({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",V],lockPosition:[2,"cdkConnectedOverlayLockPosition","lockPosition",V],flexibleDimensions:[2,"cdkConnectedOverlayFlexibleDimensions","flexibleDimensions",V],growAfterOpen:[2,"cdkConnectedOverlayGrowAfterOpen","growAfterOpen",V],push:[2,"cdkConnectedOverlayPush","push",V],disposeOnNavigation:[2,"cdkConnectedOverlayDisposeOnNavigation","disposeOnNavigation",V]},outputs:{backdropClick:"backdropClick",positionChange:"positionChange",attach:"attach",detach:"detach",overlayKeydown:"overlayKeydown",overlayOutsideClick:"overlayOutsideClick"},exportAs:["cdkConnectedOverlay"],features:[Ae]})}return t})();function MJ(t){let n=u(de);return()=>wn(n)}var kJ={provide:gB,useFactory:MJ},er=(()=>{class t{static \u0275fac=function(i){return new(i||t)};static \u0275mod=ee({type:t});static \u0275inj=J({providers:[fB,kJ],imports:[vs,Co,ng,ng]})}return t})();var au=(()=>{class t{_listeners=[];notify(e,i){for(let r of this._listeners)r(e,i)}listen(e){return this._listeners.push(e),()=>{this._listeners=this._listeners.filter(i=>e!==i)}}ngOnDestroy(){this._listeners=[]}static \u0275fac=function(i){return new(i||t)};static \u0275prov=O({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();var su=class{applyChanges(n,e,i,r,o){n.forEachOperation((a,s,l)=>{let c,d;if(a.previousIndex==null){let m=i(a,s,l);c=e.createEmbeddedView(m.templateRef,m.context,m.index),d=cc.INSERTED}else l==null?(e.remove(s),d=cc.REMOVED):(c=e.get(s),e.move(c,l),d=cc.MOVED);o&&o({context:c?.context,operation:d,record:a})})}detach(){}};var sg=class{_multiple;_emitChanges;compareWith;_selection=new Set;_deselectedToEmit=[];_selectedToEmit=[];_selected;get selected(){return this._selected||(this._selected=Array.from(this._selection.values())),this._selected}changed=new z;constructor(n=!1,e,i=!0,r){this._multiple=n,this._emitChanges=i,this.compareWith=r,e&&e.length&&(n?e.forEach(o=>this._markSelected(o)):this._markSelected(e[0]),this._selectedToEmit.length=0)}select(...n){this._verifyValueAssignment(n),n.forEach(i=>this._markSelected(i));let e=this._hasQueuedChanges();return this._emitChangeEvent(),e}deselect(...n){this._verifyValueAssignment(n),n.forEach(i=>this._unmarkSelected(i));let e=this._hasQueuedChanges();return this._emitChangeEvent(),e}setSelection(...n){this._verifyValueAssignment(n);let e=this.selected,i=new Set(n.map(o=>this._getConcreteValue(o)));n.forEach(o=>this._markSelected(o)),e.filter(o=>!i.has(this._getConcreteValue(o,i))).forEach(o=>this._unmarkSelected(o));let r=this._hasQueuedChanges();return this._emitChangeEvent(),r}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 i of e)if(this.compareWith(n,i))return i;return n}else return n}};var EB=(()=>{class t{_renderer;_elementRef;onChange=e=>{};onTouched=()=>{};constructor(e,i){this._renderer=e,this._elementRef=i}setProperty(e,i){this._renderer.setProperty(this._elementRef.nativeElement,e,i)}registerOnTouched(e){this.onTouched=e}registerOnChange(e){this.onChange=e}setDisabledState(e){this.setProperty("disabled",e)}static \u0275fac=function(i){return new(i||t)(_e(je),_e(q))};static \u0275dir=F({type:t})}return t})(),MB=(()=>{class t extends EB{static \u0275fac=(()=>{let e;return function(r){return(e||(e=fe(t)))(r||t)}})();static \u0275dir=F({type:t,features:[le]})}return t})(),tr=new T("");var SJ={provide:tr,useExisting:Kt(()=>Qi),multi:!0};function TJ(){let t=Wo()?Wo().getUserAgent():"";return/android (\d+)/.test(t.toLowerCase())}var IJ=new T(""),Qi=(()=>{class t extends EB{_compositionMode;_composing=!1;constructor(e,i,r){super(e,i),this._compositionMode=r,this._compositionMode==null&&(this._compositionMode=!TJ())}writeValue(e){let i=e??"";this.setProperty("value",i)}_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(i){return new(i||t)(_e(je),_e(q),_e(IJ,8))};static \u0275dir=F({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(i,r){i&1&&S("input",function(a){return r._handleInput(a.target.value)})("blur",function(){return r.onTouched()})("compositionstart",function(){return r._compositionStart()})("compositionend",function(a){return r._compositionEnd(a.target.value)})},standalone:!1,features:[Ce([SJ]),le]})}return t})();function Qk(t){return t==null||Kk(t)===0}function Kk(t){return t==null?null:Array.isArray(t)||typeof t=="string"?t.length:t instanceof Set?t.size:null}var ea=new T(""),fg=new T(""),AJ=/^(?=.{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])?)*$/,Le=class{static min(n){return OJ(n)}static max(n){return RJ(n)}static required(n){return kB(n)}static requiredTrue(n){return PJ(n)}static email(n){return FJ(n)}static minLength(n){return NJ(n)}static maxLength(n){return LJ(n)}static pattern(n){return VJ(n)}static nullValidator(n){return nx()}static compose(n){return RB(n)}static composeAsync(n){return PB(n)}};function OJ(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 kB(t){return Qk(t.value)?{required:!0}:null}function PJ(t){return t.value===!0?null:{required:!0}}function FJ(t){return Qk(t.value)||AJ.test(t.value)?null:{email:!0}}function NJ(t){return n=>{let e=n.value?.length??Kk(n.value);return e===null||e===0?null:e{let e=n.value?.length??Kk(n.value);return e!==null&&e>t?{maxlength:{requiredLength:t,actualLength:e}}:null}}function VJ(t){if(!t)return nx;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),i=>{if(Qk(i.value))return null;let r=i.value;return n.test(r)?null:{pattern:{requiredPattern:e,actualValue:r}}}}function nx(t){return null}function SB(t){return t!=null}function TB(t){return Xs(t)?Ot(t):t}function IB(t){let n={};return t.forEach(e=>{n=e!=null?M(M({},n),e):n}),Object.keys(n).length===0?null:n}function AB(t,n){return n.map(e=>e(t))}function BJ(t){return!t.validate}function OB(t){return t.map(n=>BJ(n)?n:e=>n.validate(e))}function RB(t){if(!t)return null;let n=t.filter(SB);return n.length==0?null:function(e){return IB(AB(e,n))}}function Zk(t){return t!=null?RB(OB(t)):null}function PB(t){if(!t)return null;let n=t.filter(SB);return n.length==0?null:function(e){let i=AB(e,n).map(TB);return Ga(i).pipe(se(IB))}}function Xk(t){return t!=null?PB(OB(t)):null}function bB(t,n){return t===null?[n]:Array.isArray(t)?[...t,n]:[t,n]}function FB(t){return t._rawValidators}function NB(t){return t._rawAsyncValidators}function qk(t){return t?Array.isArray(t)?t:[t]:[]}function rx(t,n){return Array.isArray(t)?t.includes(n):t===n}function vB(t,n){let e=qk(n);return qk(t).forEach(r=>{rx(e,r)||e.push(r)}),e}function yB(t,n){return qk(n).filter(e=>!rx(t,e))}var ox=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=Zk(this._rawValidators)}_setAsyncValidators(n){this._rawAsyncValidators=n||[],this._composedAsyncValidatorFn=Xk(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&&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}},Es=class extends ox{name;get formDirective(){return null}get path(){return null}},Hn=class extends ox{_parent=null;name=null;valueAccessor=null},ax=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}},jJ={"[class.ng-untouched]":"isUntouched","[class.ng-touched]":"isTouched","[class.ng-pristine]":"isPristine","[class.ng-dirty]":"isDirty","[class.ng-valid]":"isValid","[class.ng-invalid]":"isInvalid","[class.ng-pending]":"isPending"},BWe=De(M({},jJ),{"[class.ng-submitted]":"isSubmitted"}),ei=(()=>{class t extends ax{constructor(e){super(e)}static \u0275fac=function(i){return new(i||t)(_e(Hn,2))};static \u0275dir=F({type:t,selectors:[["","formControlName",""],["","ngModel",""],["","formControl",""]],hostVars:14,hostBindings:function(i,r){i&2&&G("ng-untouched",r.isUntouched)("ng-touched",r.isTouched)("ng-pristine",r.isPristine)("ng-dirty",r.isDirty)("ng-valid",r.isValid)("ng-invalid",r.isInvalid)("ng-pending",r.isPending)},standalone:!1,features:[le]})}return t})(),Xr=(()=>{class t extends ax{constructor(e){super(e)}static \u0275fac=function(i){return new(i||t)(_e(Es,10))};static \u0275dir=F({type:t,selectors:[["","formGroupName",""],["","formArrayName",""],["","ngModelGroup",""],["","formGroup",""],["form",3,"ngNoForm",""],["","ngForm",""]],hostVars:16,hostBindings:function(i,r){i&2&&G("ng-untouched",r.isUntouched)("ng-touched",r.isTouched)("ng-pristine",r.isPristine)("ng-dirty",r.isDirty)("ng-valid",r.isValid)("ng-invalid",r.isInvalid)("ng-pending",r.isPending)("ng-submitted",r.isSubmitted)},standalone:!1,features:[le]})}return t})();var lg="VALID",ix="INVALID",vh="PENDING",cg="DISABLED",mc=class{},sx=class extends mc{value;source;constructor(n,e){super(),this.value=n,this.source=e}},ug=class extends mc{pristine;source;constructor(n,e){super(),this.pristine=n,this.source=e}},mg=class extends mc{touched;source;constructor(n,e){super(),this.touched=n,this.source=e}},yh=class extends mc{status;source;constructor(n,e){super(),this.status=n,this.source=e}},lx=class extends mc{source;constructor(n){super(),this.source=n}},hg=class extends mc{source;constructor(n){super(),this.source=n}};function Jk(t){return(hx(t)?t.validators:t)||null}function HJ(t){return Array.isArray(t)?Zk(t):t||null}function eS(t,n){return(hx(n)?n.asyncValidators:t)||null}function zJ(t){return Array.isArray(t)?Xk(t):t||null}function hx(t){return t!=null&&!Array.isArray(t)&&typeof t=="object"}function LB(t,n,e){let i=t.controls;if(!(n?Object.keys(i):i).length)throw new ue(1e3,"");if(!i[e])throw new ue(1001,"")}function VB(t,n,e){t._forEachChild((i,r)=>{if(e[r]===void 0)throw new ue(1002,"")})}var hc=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 Ti(this.statusReactive)}set status(n){Ti(()=>this.statusReactive.set(n))}_status=Zt(()=>this.statusReactive());statusReactive=he(void 0);get valid(){return this.status===lg}get invalid(){return this.status===ix}get pending(){return this.status==vh}get disabled(){return this.status===cg}get enabled(){return this.status!==cg}errors;get pristine(){return Ti(this.pristineReactive)}set pristine(n){Ti(()=>this.pristineReactive.set(n))}_pristine=Zt(()=>this.pristineReactive());pristineReactive=he(!0);get dirty(){return!this.pristine}get touched(){return Ti(this.touchedReactive)}set touched(n){Ti(()=>this.touchedReactive.set(n))}_touched=Zt(()=>this.touchedReactive());touchedReactive=he(!1);get untouched(){return!this.touched}_events=new z;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(vB(n,this._rawValidators))}addAsyncValidators(n){this.setAsyncValidators(vB(n,this._rawAsyncValidators))}removeValidators(n){this.setValidators(yB(n,this._rawValidators))}removeAsyncValidators(n){this.setAsyncValidators(yB(n,this._rawAsyncValidators))}hasValidator(n){return rx(this._rawValidators,n)}hasAsyncValidator(n){return rx(this._rawAsyncValidators,n)}clearValidators(){this.validator=null}clearAsyncValidators(){this.asyncValidator=null}markAsTouched(n={}){let e=this.touched===!1;this.touched=!0;let i=n.sourceControl??this;this._parent&&!n.onlySelf&&this._parent.markAsTouched(De(M({},n),{sourceControl:i})),e&&n.emitEvent!==!1&&this._events.next(new mg(!0,i))}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 i=n.sourceControl??this;this._forEachChild(r=>{r.markAsUntouched({onlySelf:!0,emitEvent:n.emitEvent,sourceControl:i})}),this._parent&&!n.onlySelf&&this._parent._updateTouched(n,i),e&&n.emitEvent!==!1&&this._events.next(new mg(!1,i))}markAsDirty(n={}){let e=this.pristine===!0;this.pristine=!1;let i=n.sourceControl??this;this._parent&&!n.onlySelf&&this._parent.markAsDirty(De(M({},n),{sourceControl:i})),e&&n.emitEvent!==!1&&this._events.next(new ug(!1,i))}markAsPristine(n={}){let e=this.pristine===!1;this.pristine=!0,this._pendingDirty=!1;let i=n.sourceControl??this;this._forEachChild(r=>{r.markAsPristine({onlySelf:!0,emitEvent:n.emitEvent})}),this._parent&&!n.onlySelf&&this._parent._updatePristine(n,i),e&&n.emitEvent!==!1&&this._events.next(new ug(!0,i))}markAsPending(n={}){this.status=vh;let e=n.sourceControl??this;n.emitEvent!==!1&&(this._events.next(new yh(this.status,e)),this.statusChanges.emit(this.status)),this._parent&&!n.onlySelf&&this._parent.markAsPending(De(M({},n),{sourceControl:e}))}disable(n={}){let e=this._parentMarkedDirty(n.onlySelf);this.status=cg,this.errors=null,this._forEachChild(r=>{r.disable(De(M({},n),{onlySelf:!0}))}),this._updateValue();let i=n.sourceControl??this;n.emitEvent!==!1&&(this._events.next(new sx(this.value,i)),this._events.next(new yh(this.status,i)),this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._updateAncestors(De(M({},n),{skipPristineCheck:e}),this),this._onDisabledChange.forEach(r=>r(!0))}enable(n={}){let e=this._parentMarkedDirty(n.onlySelf);this.status=lg,this._forEachChild(i=>{i.enable(De(M({},n),{onlySelf:!0}))}),this.updateValueAndValidity({onlySelf:!0,emitEvent:n.emitEvent}),this._updateAncestors(De(M({},n),{skipPristineCheck:e}),this),this._onDisabledChange.forEach(i=>i(!1))}_updateAncestors(n,e){this._parent&&!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 i=this._cancelExistingSubscription();this.errors=this._runValidator(),this.status=this._calculateStatus(),(this.status===lg||this.status===vh)&&this._runAsyncValidator(i,n.emitEvent)}let e=n.sourceControl??this;n.emitEvent!==!1&&(this._events.next(new sx(this.value,e)),this._events.next(new yh(this.status,e)),this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._parent&&!n.onlySelf&&this._parent.updateValueAndValidity(De(M({},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()?cg:lg}_runValidator(){return this.validator?this.validator(this):null}_runAsyncValidator(n,e){if(this.asyncValidator){this.status=vh,this._hasOwnPendingAsyncValidator={emitEvent:e!==!1,shouldHaveEmitted:n!==!1};let i=TB(this.asyncValidator(this));this._asyncValidationSubscription=i.subscribe(r=>{this._hasOwnPendingAsyncValidator=null,this.setErrors(r,{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((i,r)=>i&&i._find(r),this)}getError(n,e){let i=e?this.get(e):this;return i&&i.errors?i.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,i){this.status=this._calculateStatus(),n&&this.statusChanges.emit(this.status),(n||i)&&this._events.next(new yh(this.status,e)),this._parent&&this._parent._updateControlsErrors(n,e,i)}_initObservables(){this.valueChanges=new U,this.statusChanges=new U}_calculateStatus(){return this._allControlsDisabled()?cg:this.errors?ix:this._hasOwnPendingAsyncValidator||this._anyControlsHaveStatus(vh)?vh:this._anyControlsHaveStatus(ix)?ix:lg}_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 i=!this._anyControlsDirty(),r=this.pristine!==i;this.pristine=i,this._parent&&!n.onlySelf&&this._parent._updatePristine(n,e),r&&this._events.next(new ug(this.pristine,e))}_updateTouched(n={},e){this.touched=this._anyControlsTouched(),this._events.next(new mg(this.touched,e)),this._parent&&!n.onlySelf&&this._parent._updateTouched(n,e)}_onDisabledChange=[];_registerOnCollectionChange(n){this._onCollectionChange=n}_setUpdateStrategy(n){hx(n)&&n.updateOn!=null&&(this._updateOn=n.updateOn)}_parentMarkedDirty(n){let e=this._parent&&this._parent.dirty;return!n&&!!e&&!this._parent._anyControlsDirty()}_find(n){return null}_assignValidators(n){this._rawValidators=Array.isArray(n)?n.slice():n,this._composedValidatorFn=HJ(this._rawValidators)}_assignAsyncValidators(n){this._rawAsyncValidators=Array.isArray(n)?n.slice():n,this._composedAsyncValidatorFn=zJ(this._rawAsyncValidators)}},lu=class extends hc{constructor(n,e,i){super(Jk(e),eS(i,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,i={}){this.registerControl(n,e),this.updateValueAndValidity({emitEvent:i.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,i={}){this.controls[n]&&this.controls[n]._registerOnCollectionChange(()=>{}),delete this.controls[n],e&&this.registerControl(n,e),this.updateValueAndValidity({emitEvent:i.emitEvent}),this._onCollectionChange()}contains(n){return this.controls.hasOwnProperty(n)&&this.controls[n].enabled}setValue(n,e={}){VB(this,!0,n),Object.keys(n).forEach(i=>{LB(this,!0,i),this.controls[i].setValue(n[i],{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e)}patchValue(n,e={}){n!=null&&(Object.keys(n).forEach(i=>{let r=this.controls[i];r&&r.patchValue(n[i],{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e))}reset(n={},e={}){this._forEachChild((i,r)=>{i.reset(n?n[r]:null,{onlySelf:!0,emitEvent:e.emitEvent})}),this._updatePristine(e,this),this._updateTouched(e,this),this.updateValueAndValidity(e),e?.emitEvent!==!1&&this._events.next(new hg(this))}getRawValue(){return this._reduceChildren({},(n,e,i)=>(n[i]=e.getRawValue(),n))}_syncPendingControls(){let n=this._reduceChildren(!1,(e,i)=>i._syncPendingControls()?!0:e);return n&&this.updateValueAndValidity({onlySelf:!0}),n}_forEachChild(n){Object.keys(this.controls).forEach(e=>{let i=this.controls[e];i&&n(i,e)})}_setUpControls(){this._forEachChild(n=>{n.setParent(this),n._registerOnCollectionChange(this._onCollectionChange)})}_updateValue(){this.value=this._reduceValue()}_anyControls(n){for(let[e,i]of Object.entries(this.controls))if(this.contains(e)&&n(i))return!0;return!1}_reduceValue(){let n={};return this._reduceChildren(n,(e,i,r)=>((i.enabled||this.disabled)&&(e[r]=i.value),e))}_reduceChildren(n,e){let i=n;return this._forEachChild((r,o)=>{i=e(i,r,o)}),i}_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 px=lu;var Yk=class extends lu{};var xh=new T("",{providedIn:"root",factory:()=>fx}),fx="always";function BB(t,n){return[...n.path,t]}function pg(t,n,e=fx){tS(t,n),n.valueAccessor.writeValue(t.value),(t.disabled||e==="always")&&n.valueAccessor.setDisabledState?.(t.disabled),$J(t,n),GJ(t,n),WJ(t,n),UJ(t,n)}function cx(t,n,e=!0){let i=()=>{};n.valueAccessor&&(n.valueAccessor.registerOnChange(i),n.valueAccessor.registerOnTouched(i)),ux(t,n),t&&(n._invokeOnDestroyCallbacks(),t._registerOnCollectionChange(()=>{}))}function dx(t,n){t.forEach(e=>{e.registerOnValidatorChange&&e.registerOnValidatorChange(n)})}function UJ(t,n){if(n.valueAccessor.setDisabledState){let e=i=>{n.valueAccessor.setDisabledState(i)};t.registerOnDisabledChange(e),n._registerOnDestroy(()=>{t._unregisterOnDisabledChange(e)})}}function tS(t,n){let e=FB(t);n.validator!==null?t.setValidators(bB(e,n.validator)):typeof e=="function"&&t.setValidators([e]);let i=NB(t);n.asyncValidator!==null?t.setAsyncValidators(bB(i,n.asyncValidator)):typeof i=="function"&&t.setAsyncValidators([i]);let r=()=>t.updateValueAndValidity();dx(n._rawValidators,r),dx(n._rawAsyncValidators,r)}function ux(t,n){let e=!1;if(t!==null){if(n.validator!==null){let r=FB(t);if(Array.isArray(r)&&r.length>0){let o=r.filter(a=>a!==n.validator);o.length!==r.length&&(e=!0,t.setValidators(o))}}if(n.asyncValidator!==null){let r=NB(t);if(Array.isArray(r)&&r.length>0){let o=r.filter(a=>a!==n.asyncValidator);o.length!==r.length&&(e=!0,t.setAsyncValidators(o))}}}let i=()=>{};return dx(n._rawValidators,i),dx(n._rawAsyncValidators,i),e}function $J(t,n){n.valueAccessor.registerOnChange(e=>{t._pendingValue=e,t._pendingChange=!0,t._pendingDirty=!0,t.updateOn==="change"&&jB(t,n)})}function WJ(t,n){n.valueAccessor.registerOnTouched(()=>{t._pendingTouched=!0,t.updateOn==="blur"&&t._pendingChange&&jB(t,n),t.updateOn!=="submit"&&t.markAsTouched()})}function jB(t,n){t._pendingDirty&&t.markAsDirty(),t.setValue(t._pendingValue,{emitModelToViewChange:!1}),n.viewToModelUpdate(t._pendingValue),t._pendingChange=!1}function GJ(t,n){let e=(i,r)=>{n.valueAccessor.writeValue(i),r&&n.viewToModelUpdate(i)};t.registerOnChange(e),n._registerOnDestroy(()=>{t._unregisterOnChange(e)})}function HB(t,n){t==null,tS(t,n)}function qJ(t,n){return ux(t,n)}function iS(t,n){if(!t.hasOwnProperty("model"))return!1;let e=t.model;return e.isFirstChange()?!0:!Object.is(n,e.currentValue)}function YJ(t){return Object.getPrototypeOf(t.constructor)===MB}function zB(t,n){t._syncPendingControls(),n.forEach(e=>{let i=e.control;i.updateOn==="submit"&&i._pendingChange&&(e.viewToModelUpdate(i._pendingValue),i._pendingChange=!1)})}function nS(t,n){if(!n)return null;Array.isArray(n);let e,i,r;return n.forEach(o=>{o.constructor===Qi?e=o:YJ(o)?i=o:r=o}),r||i||e||null}function QJ(t,n){let e=t.indexOf(n);e>-1&&t.splice(e,1)}var KJ={provide:Es,useExisting:Kt(()=>pc)},dg=Promise.resolve(),pc=(()=>{class t extends Es{callSetDisabledState;get submitted(){return Ti(this.submittedReactive)}_submitted=Zt(()=>this.submittedReactive());submittedReactive=he(!1);_directives=new Set;form;ngSubmit=new U;options;constructor(e,i,r){super(),this.callSetDisabledState=r,this.form=new lu({},Zk(e),Xk(i))}ngAfterViewInit(){this._setUpdateStrategy()}get formDirective(){return this}get control(){return this.form}get path(){return[]}get controls(){return this.form.controls}addControl(e){dg.then(()=>{let i=this._findContainer(e.path);e.control=i.registerControl(e.name,e.control),pg(e.control,e,this.callSetDisabledState),e.control.updateValueAndValidity({emitEvent:!1}),this._directives.add(e)})}getControl(e){return this.form.get(e.path)}removeControl(e){dg.then(()=>{let i=this._findContainer(e.path);i&&i.removeControl(e.name),this._directives.delete(e)})}addFormGroup(e){dg.then(()=>{let i=this._findContainer(e.path),r=new lu({});HB(r,e),i.registerControl(e.name,r),r.updateValueAndValidity({emitEvent:!1})})}removeFormGroup(e){dg.then(()=>{let i=this._findContainer(e.path);i&&i.removeControl(e.name)})}getFormGroup(e){return this.form.get(e.path)}updateModel(e,i){dg.then(()=>{this.form.get(e.path).setValue(i)})}setValue(e){this.control.setValue(e)}onSubmit(e){return this.submittedReactive.set(!0),zB(this.form,this._directives),this.ngSubmit.emit(e),this.form._events.next(new lx(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(i){return new(i||t)(_e(ea,10),_e(fg,10),_e(xh,8))};static \u0275dir=F({type:t,selectors:[["form",3,"ngNoForm","",3,"formGroup",""],["ng-form"],["","ngForm",""]],hostBindings:function(i,r){i&1&&S("submit",function(a){return r.onSubmit(a)})("reset",function(){return r.onReset()})},inputs:{options:[0,"ngFormOptions","options"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],standalone:!1,features:[Ce([KJ]),le]})}return t})();function xB(t,n){let e=t.indexOf(n);e>-1&&t.splice(e,1)}function CB(t){return typeof t=="object"&&t!==null&&Object.keys(t).length===2&&"value"in t&&"disabled"in t}var Jo=class extends hc{defaultValue=null;_onChange=[];_pendingValue;_pendingChange=!1;constructor(n=null,e,i){super(Jk(e),eS(i,e)),this._applyFormState(n),this._setUpdateStrategy(e),this._initObservables(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator}),hx(e)&&(e.nonNullable||e.initialValueIsDefault)&&(CB(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(i=>i(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),this._pendingChange=!1,e?.emitEvent!==!1&&this._events.next(new hg(this))}_updateValue(){}_anyControls(n){return!1}_allControlsDisabled(){return this.disabled}registerOnChange(n){this._onChange.push(n)}_unregisterOnChange(n){xB(this._onChange,n)}registerOnDisabledChange(n){this._onDisabledChange.push(n)}_unregisterOnDisabledChange(n){xB(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){CB(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}},UB=Jo,ZJ=t=>t instanceof Jo;var XJ={provide:Hn,useExisting:Kt(()=>gg)},wB=Promise.resolve(),gg=(()=>{class t extends Hn{_changeDetectorRef;callSetDisabledState;control=new Jo;static ngAcceptInputType_isDisabled;_registered=!1;viewModel;name="";isDisabled;model;options;update=new U;constructor(e,i,r,o,a,s){super(),this._changeDetectorRef=a,this.callSetDisabledState=s,this._parent=e,this._setValidators(i),this._setAsyncValidators(r),this.valueAccessor=nS(this,o)}ngOnChanges(e){if(this._checkForErrors(),!this._registered||"name"in e){if(this._registered&&(this._checkName(),this.formDirective)){let i=e.name.previousValue;this.formDirective.removeControl({name:i,path:this._getPath(i)})}this._setUpControl()}"isDisabled"in e&&this._updateDisabled(e),iS(e,this.viewModel)&&(this._updateValue(this.model),this.viewModel=this.model)}ngOnDestroy(){this.formDirective&&this.formDirective.removeControl(this)}get path(){return this._getPath(this.name)}get formDirective(){return this._parent?this._parent.formDirective:null}viewToModelUpdate(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(){pg(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){wB.then(()=>{this.control.setValue(e,{emitViewToModelChange:!1}),this._changeDetectorRef?.markForCheck()})}_updateDisabled(e){let i=e.isDisabled.currentValue,r=i!==0&&V(i);wB.then(()=>{r&&!this.control.disabled?this.control.disable():!r&&this.control.disabled&&this.control.enable(),this._changeDetectorRef?.markForCheck()})}_getPath(e){return this._parent?BB(e,this._parent):[e]}static \u0275fac=function(i){return new(i||t)(_e(Es,9),_e(ea,10),_e(fg,10),_e(tr,10),_e(ye,8),_e(xh,8))};static \u0275dir=F({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:[Ce([XJ]),le,Ae]})}return t})();var Jr=(()=>{class t{static \u0275fac=function(i){return new(i||t)};static \u0275dir=F({type:t,selectors:[["form",3,"ngNoForm","",3,"ngNativeValidate",""]],hostAttrs:["novalidate",""],standalone:!1})}return t})(),JJ={provide:tr,useExisting:Kt(()=>cu),multi:!0},cu=(()=>{class t extends MB{writeValue(e){let i=e??"";this.setProperty("value",i)}registerOnChange(e){this.onChange=i=>{e(i==""?null:parseFloat(i))}}static \u0275fac=(()=>{let e;return function(r){return(e||(e=fe(t)))(r||t)}})();static \u0275dir=F({type:t,selectors:[["input","type","number","formControlName",""],["input","type","number","formControl",""],["input","type","number","ngModel",""]],hostBindings:function(i,r){i&1&&S("input",function(a){return r.onChange(a.target.value)})("blur",function(){return r.onTouched()})},standalone:!1,features:[Ce([JJ]),le]})}return t})();var rS=new T(""),eee={provide:Hn,useExisting:Kt(()=>wo)},wo=(()=>{class t extends Hn{_ngModelWarningConfig;callSetDisabledState;viewModel;form;set isDisabled(e){}model;update=new U;static _ngModelWarningSentOnce=!1;_ngModelWarningSent=!1;constructor(e,i,r,o,a){super(),this._ngModelWarningConfig=o,this.callSetDisabledState=a,this._setValidators(e),this._setAsyncValidators(i),this.valueAccessor=nS(this,r)}ngOnChanges(e){if(this._isControlChanged(e)){let i=e.form.previousValue;i&&cx(i,this,!1),pg(this.form,this,this.callSetDisabledState),this.form.updateValueAndValidity({emitEvent:!1})}iS(e,this.viewModel)&&(this.form.setValue(this.model),this.viewModel=this.model)}ngOnDestroy(){this.form&&cx(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(i){return new(i||t)(_e(ea,10),_e(fg,10),_e(tr,10),_e(rS,8),_e(xh,8))};static \u0275dir=F({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:[Ce([eee]),le,Ae]})}return t})(),tee={provide:Es,useExisting:Kt(()=>Ki)},Ki=(()=>{class t extends Es{callSetDisabledState;get submitted(){return Ti(this._submittedReactive)}set submitted(e){this._submittedReactive.set(e)}_submitted=Zt(()=>this._submittedReactive());_submittedReactive=he(!1);_oldForm;_onCollectionChange=()=>this._updateDomValue();directives=[];form=null;ngSubmit=new U;constructor(e,i,r){super(),this.callSetDisabledState=r,this._setValidators(e),this._setAsyncValidators(i)}ngOnChanges(e){e.hasOwnProperty("form")&&(this._updateValidators(),this._updateDomValue(),this._updateRegistrations(),this._oldForm=this.form)}ngOnDestroy(){this.form&&(ux(this.form,this),this.form._onCollectionChange===this._onCollectionChange&&this.form._registerOnCollectionChange(()=>{}))}get formDirective(){return this}get control(){return this.form}get path(){return[]}addControl(e){let i=this.form.get(e.path);return pg(i,e,this.callSetDisabledState),i.updateValueAndValidity({emitEvent:!1}),this.directives.push(e),i}getControl(e){return this.form.get(e.path)}removeControl(e){cx(e.control||null,e,!1),QJ(this.directives,e)}addFormGroup(e){this._setUpFormContainer(e)}removeFormGroup(e){this._cleanUpFormContainer(e)}getFormGroup(e){return this.form.get(e.path)}addFormArray(e){this._setUpFormContainer(e)}removeFormArray(e){this._cleanUpFormContainer(e)}getFormArray(e){return this.form.get(e.path)}updateModel(e,i){this.form.get(e.path).setValue(i)}onSubmit(e){return this._submittedReactive.set(!0),zB(this.form,this.directives),this.ngSubmit.emit(e),this.form._events.next(new lx(this.control)),e?.target?.method==="dialog"}onReset(){this.resetForm()}resetForm(e=void 0,i={}){this.form.reset(e,i),this._submittedReactive.set(!1)}_updateDomValue(){this.directives.forEach(e=>{let i=e.control,r=this.form.get(e.path);i!==r&&(cx(i||null,e),ZJ(r)&&(pg(r,e,this.callSetDisabledState),e.control=r))}),this.form._updateTreeValidity({emitEvent:!1})}_setUpFormContainer(e){let i=this.form.get(e.path);HB(i,e),i.updateValueAndValidity({emitEvent:!1})}_cleanUpFormContainer(e){if(this.form){let i=this.form.get(e.path);i&&qJ(i,e)&&i.updateValueAndValidity({emitEvent:!1})}}_updateRegistrations(){this.form._registerOnCollectionChange(this._onCollectionChange),this._oldForm&&this._oldForm._registerOnCollectionChange(()=>{})}_updateValidators(){tS(this.form,this),this._oldForm&&ux(this._oldForm,this)}static \u0275fac=function(i){return new(i||t)(_e(ea,10),_e(fg,10),_e(xh,8))};static \u0275dir=F({type:t,selectors:[["","formGroup",""]],hostBindings:function(i,r){i&1&&S("submit",function(a){return r.onSubmit(a)})("reset",function(){return r.onReset()})},inputs:{form:[0,"formGroup","form"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],standalone:!1,features:[Ce([tee]),le,Ae]})}return t})();var iee={provide:Hn,useExisting:Kt(()=>Lr)},Lr=(()=>{class t extends Hn{_ngModelWarningConfig;_added=!1;viewModel;control;name=null;set isDisabled(e){}model;update=new U;static _ngModelWarningSentOnce=!1;_ngModelWarningSent=!1;constructor(e,i,r,o,a){super(),this._ngModelWarningConfig=a,this._parent=e,this._setValidators(i),this._setAsyncValidators(r),this.valueAccessor=nS(this,o)}ngOnChanges(e){this._added||this._setUpControl(),iS(e,this.viewModel)&&(this.viewModel=this.model,this.formDirective.updateModel(this,this.model))}ngOnDestroy(){this.formDirective&&this.formDirective.removeControl(this)}viewToModelUpdate(e){this.viewModel=e,this.update.emit(e)}get path(){return BB(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(i){return new(i||t)(_e(Es,13),_e(ea,10),_e(fg,10),_e(tr,10),_e(rS,8))};static \u0275dir=F({type:t,selectors:[["","formControlName",""]],inputs:{name:[0,"formControlName","name"],isDisabled:[0,"disabled","isDisabled"],model:[0,"ngModel","model"]},outputs:{update:"ngModelChange"},standalone:!1,features:[Ce([iee]),le,Ae]})}return t})();var nee=(()=>{class t{_validator=nx;_onChange;_enabled;ngOnChanges(e){if(this.inputName in e){let i=this.normalizeInput(e[this.inputName].currentValue);this._enabled=this.enabled(i),this._validator=this._enabled?this.createValidator(i):nx,this._onChange&&this._onChange()}}validate(e){return this._validator(e)}registerOnValidatorChange(e){this._onChange=e}enabled(e){return e!=null}static \u0275fac=function(i){return new(i||t)};static \u0275dir=F({type:t,features:[Ae]})}return t})();var ree={provide:ea,useExisting:Kt(()=>Do),multi:!0};var Do=(()=>{class t extends nee{required;inputName="required";normalizeInput=V;createValidator=e=>kB;enabled(e){return e}static \u0275fac=(()=>{let e;return function(r){return(e||(e=fe(t)))(r||t)}})();static \u0275dir=F({type:t,selectors:[["","required","","formControlName","",3,"type","checkbox"],["","required","","formControl","",3,"type","checkbox"],["","required","","ngModel","",3,"type","checkbox"]],hostVars:1,hostBindings:function(i,r){i&2&&X("required",r._enabled?"":null)},inputs:{required:"required"},standalone:!1,features:[Ce([ree]),le]})}return t})();var $B=(()=>{class t{static \u0275fac=function(i){return new(i||t)};static \u0275mod=ee({type:t});static \u0275inj=J({})}return t})(),mx=class extends hc{constructor(n,e,i){super(Jk(e),eS(i,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(i=>{this.controls.push(i),this._registerControl(i)}):(this.controls.push(n),this._registerControl(n)),this.updateValueAndValidity({emitEvent:e.emitEvent}),this._onCollectionChange()}insert(n,e,i={}){this.controls.splice(n,0,e),this._registerControl(e),this.updateValueAndValidity({emitEvent:i.emitEvent})}removeAt(n,e={}){let i=this._adjustIndex(n);i<0&&(i=0),this.controls[i]&&this.controls[i]._registerOnCollectionChange(()=>{}),this.controls.splice(i,1),this.updateValueAndValidity({emitEvent:e.emitEvent})}setControl(n,e,i={}){let r=this._adjustIndex(n);r<0&&(r=0),this.controls[r]&&this.controls[r]._registerOnCollectionChange(()=>{}),this.controls.splice(r,1),e&&(this.controls.splice(r,0,e),this._registerControl(e)),this.updateValueAndValidity({emitEvent:i.emitEvent}),this._onCollectionChange()}get length(){return this.controls.length}setValue(n,e={}){VB(this,!1,n),n.forEach((i,r)=>{LB(this,!1,r),this.at(r).setValue(i,{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e)}patchValue(n,e={}){n!=null&&(n.forEach((i,r)=>{this.at(r)&&this.at(r).patchValue(i,{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e))}reset(n=[],e={}){this._forEachChild((i,r)=>{i.reset(n[r],{onlySelf:!0,emitEvent:e.emitEvent})}),this._updatePristine(e,this),this._updateTouched(e,this),this.updateValueAndValidity(e),e?.emitEvent!==!1&&this._events.next(new hg(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,i)=>i._syncPendingControls()?!0:e,!1);return n&&this.updateValueAndValidity({onlySelf:!0}),n}_forEachChild(n){this.controls.forEach((e,i)=>{n(e,i)})}_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}},oS=mx;function DB(t){return!!t&&(t.asyncValidators!==void 0||t.validators!==void 0||t.updateOn!==void 0)}var eo=(()=>{class t{useNonNullable=!1;get nonNullable(){let e=new t;return e.useNonNullable=!0,e}group(e,i=null){let r=this._reduceControls(e),o={};return DB(i)?o=i:i!==null&&(o.validators=i.validator,o.asyncValidators=i.asyncValidator),new lu(r,o)}record(e,i=null){let r=this._reduceControls(e);return new Yk(r,i)}control(e,i,r){let o={};return this.useNonNullable?(DB(i)?o=i:(o.validators=i,o.asyncValidators=r),new Jo(e,De(M({},o),{nonNullable:!0}))):new Jo(e,i,r)}array(e,i,r){let o=e.map(a=>this._createControl(a));return new mx(o,i,r)}_reduceControls(e){let i={};return Object.keys(e).forEach(r=>{i[r]=this._createControl(e[r])}),i}_createControl(e){if(e instanceof Jo)return e;if(e instanceof hc)return e;if(Array.isArray(e)){let i=e[0],r=e.length>1?e[1]:null,o=e.length>2?e[2]:null;return this.control(i,r,o)}else return this.control(e)}static \u0275fac=function(i){return new(i||t)};static \u0275prov=O({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();var du=(()=>{class t{static withConfig(e){return{ngModule:t,providers:[{provide:xh,useValue:e.callSetDisabledState??fx}]}}static \u0275fac=function(i){return new(i||t)};static \u0275mod=ee({type:t});static \u0275inj=J({imports:[$B]})}return t})(),zn=(()=>{class t{static withConfig(e){return{ngModule:t,providers:[{provide:rS,useValue:e.warnOnNgModelWithFormControl??"always"},{provide:xh,useValue:e.callSetDisabledState??fx}]}}static \u0275fac=function(i){return new(i||t)};static \u0275mod=ee({type:t});static \u0275inj=J({imports:[$B]})}return t})();var $i=(()=>{class t{static \u0275fac=function(i){return new(i||t)};static \u0275mod=ee({type:t});static \u0275inj=J({imports:[we,Ym,Oi,we]})}return t})();var oee=["trigger"],aee=["panel"],see=[[["mat-select-trigger"]],"*"],lee=["mat-select-trigger","*"];function cee(t,n){if(t&1&&(h(0,"span",4),_(1),p()),t&2){let e=C();g(),H(e.placeholder)}}function dee(t,n){t&1&&oe(0)}function uee(t,n){if(t&1&&(h(0,"span",11),_(1),p()),t&2){let e=C(2);g(),H(e.triggerValue)}}function mee(t,n){if(t&1&&(h(0,"span",5),N(1,dee,1,0)(2,uee,2,1,"span",11),p()),t&2){let e=C();g(),L(e.customTrigger?1:2)}}function hee(t,n){if(t&1){let e=Y();h(0,"div",12,1),S("keydown",function(r){I(e);let o=C();return A(o._handleKeydown(r))}),oe(2,1),p()}if(t&2){let e=C();it($o("mat-mdc-select-panel mdc-menu-surface mdc-menu-surface--open ",e._getPanelTheme())),G("mat-select-panel-animations-enabled",!e._animationsDisabled),y("ngClass",e.panelClass),X("id",e.id+"-panel")("aria-multiselectable",e.multiple)("aria-label",e.ariaLabel||null)("aria-labelledby",e._getPanelAriaLabelledby())}}var aS=new T("mat-select-scroll-strategy",{providedIn:"root",factory:()=>{let t=u(de);return()=>wn(t)}});function WB(t){let n=u(de);return()=>wn(n)}var GB=new T("MAT_SELECT_CONFIG"),qB={provide:aS,deps:[],useFactory:WB},YB=new T("MatSelectTrigger"),gx=class{source;value;constructor(n,e){this.source=n,this.value=e}},Na=(()=>{class t{_viewportRuler=u(Xn);_changeDetectorRef=u(ye);_elementRef=u(q);_dir=u(Vt,{optional:!0});_idGenerator=u(Ze);_renderer=u(je);_parentFormField=u(Xo,{optional:!0});ngControl=u(Hn,{self:!0,optional:!0});_liveAnnouncer=u(Gf);_defaultOptions=u(GB,{optional:!0});_animationsDisabled=Ye();_initialized=new z;_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 i=this.options.toArray()[e];if(i){let r=this.panel.nativeElement,o=Qf(e,this.options,this.optionGroups),a=i._getHostElement();e===0&&o===1?r.scrollTop=0:r.scrollTop=Kf(a.offsetTop,a.offsetHeight,r.scrollTop,r.offsetHeight)}}_positioningSettled(){this._scrollOptionIntoView(this._keyManager.activeItemIndex||0)}_getChangeEvent(e){return new gx(this,e)}_scrollStrategyFactory=u(aS);_panelOpen=!1;_compareWith=(e,i)=>e===i;_uid=this._idGenerator.getId("mat-select-");_triggerAriaLabelledBy=null;_previousControl;_destroy=new z;_errorStateTracker;stateChanges=new z;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=he(!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(Le.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=kn(()=>{let e=this.options;return e?e.changes.pipe(He(e),$e(()=>Je(...e.map(i=>i.onSelectionChange)))):this._initialized.pipe($e(()=>this.optionSelectionChanges))});openedChange=new U;_openedStream=this.openedChange.pipe(ce(e=>e),se(()=>{}));_closedStream=this.openedChange.pipe(ce(e=>!e),se(()=>{}));selectionChange=new U;valueChange=new U;constructor(){let e=u(dl),i=u(pc,{optional:!0}),r=u(Ki,{optional:!0}),o=u(new Ii("tabindex"),{optional:!0});this.ngControl&&(this.ngControl.valueAccessor=this),this._defaultOptions?.typeaheadDebounceInterval!=null&&(this.typeaheadDebounceInterval=this._defaultOptions.typeaheadDebounceInterval),this._errorStateTracker=new cl(e,this.ngControl,r,i,this.stateChanges),this._scrollStrategy=this._scrollStrategyFactory(),this.tabIndex=o==null?0:parseInt(o)||0,this.id=this.id}ngOnInit(){this._selectionModel=new sg(this.multiple),this.stateChanges.next(),this._viewportRuler.change().pipe(Te(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(Te(this._destroy)).subscribe(e=>{e.added.forEach(i=>i.select()),e.removed.forEach(i=>i.deselect())}),this.options.changes.pipe(He(null),Te(this._destroy)).subscribe(()=>{this._resetOptions(),this._initializeSelection()})}ngDoCheck(){let e=this._getTriggerAriaLabelledby(),i=this.ngControl;if(e!==this._triggerAriaLabelledBy){let r=this._elementRef.nativeElement;this._triggerAriaLabelledBy=e,e?r.setAttribute("aria-labelledby",e):r.removeAttribute("aria-labelledby")}i&&(this._previousControl!==i.control&&(this._previousControl!==void 0&&i.disabled!==null&&i.disabled!==this.disabled&&(this.disabled=i.disabled),this._previousControl=i.control),this.updateErrorState())}ngOnChanges(e){(e.disabled||e.userAriaDescribedBy)&&this.stateChanges.next(),e.typeaheadDebounceInterval&&this._keyManager&&this._keyManager.withTypeAhead(this.typeaheadDebounceInterval)}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(lt(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 i=`${this.id}-panel`;this._trackedModal&&sc(this._trackedModal,"aria-owns",i),Zm(e,"aria-owns",i),this._trackedModal=e}_clearFromModal(){if(!this._trackedModal)return;let e=`${this.id}-panel`;sc(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=()=>{i(),clearTimeout(r),this._cleanupDetach=void 0};let e=this.panel.nativeElement,i=this._renderer.listen(e,"animationend",o=>{o.animationName==="_mat-select-exit"&&(this._cleanupDetach?.(),this._detachOverlay())}),r=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(i=>i.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 i=e.keyCode,r=i===40||i===38||i===37||i===39,o=i===13||i===32,a=this._keyManager;if(!a.isTyping()&&o&&!Ft(e)||(this.multiple||e.altKey)&&r)e.preventDefault(),this.open();else if(!this.multiple){let s=this.selected;a.onKeydown(e);let l=this.selected;l&&s!==l&&this._liveAnnouncer.announce(l.viewValue,1e4)}}_handleOpenKeydown(e){let i=this._keyManager,r=e.keyCode,o=r===40||r===38,a=i.isTyping();if(o&&e.altKey)e.preventDefault(),this.close();else if(!a&&(r===13||r===32)&&i.activeItem&&!Ft(e))e.preventDefault(),i.activeItem._selectViaInteraction();else if(!a&&this._multiple&&r===65&&e.ctrlKey){e.preventDefault();let s=this.options.some(l=>!l.disabled&&!l.selected);this.options.forEach(l=>{l.disabled||(s?l.select():l.deselect())})}else{let s=i.activeItemIndex;i.onKeydown(e),this._multiple&&o&&e.shiftKey&&i.activeItem&&i.activeItemIndex!==s&&i.activeItem._selectViaInteraction()}}_handleOverlayKeydown(e){e.keyCode===27&&!Ft(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())}_getPanelTheme(){return this._parentFormField?`mat-${this._parentFormField.color}`:""}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(i=>i.setInactiveStyles()),this._selectionModel.clear(),this.multiple&&e)Array.isArray(e),e.forEach(i=>this._selectOptionByValue(i)),this._sortValues();else{let i=this._selectOptionByValue(e);i?this._keyManager.updateActiveItem(i):this.panelOpen||this._keyManager.updateActiveItem(-1)}this._changeDetectorRef.markForCheck()}_selectOptionByValue(e){let i=this.options.find(r=>{if(this._selectionModel.isSelected(r))return!1;try{return(r.value!=null||this.canSelectNullableOptions)&&this._compareWith(r.value,e)}catch{return!1}});return i&&this._selectionModel.select(i),i}_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 bh?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 qd(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=Je(this.options.changes,this._destroy);this.optionSelectionChanges.pipe(Te(e)).subscribe(i=>{this._onSelect(i.source,i.isUserInput),i.isUserInput&&!this.multiple&&this._panelOpen&&(this.close(),this.focus())}),Je(...this.options.map(i=>i._stateChanges)).pipe(Te(e)).subscribe(()=>{this._changeDetectorRef.detectChanges(),this.stateChanges.next()})}_onSelect(e,i){let r=this._selectionModel.isSelected(e);!this.canSelectNullableOptions&&e.value==null&&!this._multiple?(e.deselect(),this._selectionModel.clear(),this.value!=null&&this._propagateChanges(e.value)):(r!==e.selected&&(e.selected?this._selectionModel.select(e):this._selectionModel.deselect(e)),i&&this._keyManager.setActiveItem(e),this.multiple&&(this._sortValues(),i&&this.focus())),r!==this._selectionModel.isSelected(e)&&this._propagateChanges(),this.stateChanges.next()}_sortValues(){if(this.multiple){let e=this.options.toArray();this._selectionModel.sort((i,r)=>this.sortComparator?this.sortComparator(i,r,e):e.indexOf(i)-e.indexOf(r)),this.stateChanges.next()}}_propagateChanges(e){let i;this.multiple?i=this.selected.map(r=>r.value):i=this.selected?this.selected.value:e,this._value=i,this.valueChange.emit(i),this._onChange(i),this.selectionChange.emit(this._getChangeEvent(i)),this._changeDetectorRef.markForCheck()}_highlightCorrectOption(){if(this._keyManager)if(this.empty){let e=-1;for(let i=0;i0&&!!this._overlayDir}focus(e){this._elementRef.nativeElement.focus(e)}_getPanelAriaLabelledby(){if(this.ariaLabel)return null;let e=this._parentFormField?.getLabelId()||null,i=e?e+" ":"";return this.ariaLabelledby?i+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){e.length?this._elementRef.nativeElement.setAttribute("aria-describedby",e.join(" ")):this._elementRef.nativeElement.removeAttribute("aria-describedby")}onContainerClick(){this.focus(),this.open()}get shouldLabelFloat(){return this.panelOpen||!this.empty||this.focused&&!!this.placeholder}static \u0275fac=function(i){return new(i||t)};static \u0275cmp=E({type:t,selectors:[["mat-select"]],contentQueries:function(i,r,o){if(i&1&&(xe(o,YB,5),xe(o,xn,5),xe(o,Zd,5)),i&2){let a;B(a=j())&&(r.customTrigger=a.first),B(a=j())&&(r.options=a),B(a=j())&&(r.optionGroups=a)}},viewQuery:function(i,r){if(i&1&&(ie(oee,5),ie(aee,5),ie(tx,5)),i&2){let o;B(o=j())&&(r.trigger=o.first),B(o=j())&&(r.panel=o.first),B(o=j())&&(r._overlayDir=o.first)}},hostAttrs:["role","combobox","aria-haspopup","listbox",1,"mat-mdc-select"],hostVars:21,hostBindings:function(i,r){i&1&&S("keydown",function(a){return r._handleKeydown(a)})("focus",function(){return r._onFocus()})("blur",function(){return r._onBlur()}),i&2&&(X("id",r.id)("tabindex",r.disabled?-1:r.tabIndex)("aria-controls",r.panelOpen?r.id+"-panel":null)("aria-expanded",r.panelOpen)("aria-label",r.ariaLabel||null)("aria-required",r.required.toString())("aria-disabled",r.disabled.toString())("aria-invalid",r.errorState)("aria-activedescendant",r._getAriaActiveDescendant()),G("mat-mdc-select-disabled",r.disabled)("mat-mdc-select-invalid",r.errorState)("mat-mdc-select-required",r.required)("mat-mdc-select-empty",r.empty)("mat-mdc-select-multiple",r.multiple)("mat-select-open",r.panelOpen))},inputs:{userAriaDescribedBy:[0,"aria-describedby","userAriaDescribedBy"],panelClass:"panelClass",disabled:[2,"disabled","disabled",V],disableRipple:[2,"disableRipple","disableRipple",V],tabIndex:[2,"tabIndex","tabIndex",e=>e==null?0:ct(e)],hideSingleSelectionIndicator:[2,"hideSingleSelectionIndicator","hideSingleSelectionIndicator",V],placeholder:"placeholder",required:[2,"required","required",V],multiple:[2,"multiple","multiple",V],disableOptionCentering:[2,"disableOptionCentering","disableOptionCentering",V],compareWith:"compareWith",value:"value",ariaLabel:[0,"aria-label","ariaLabel"],ariaLabelledby:[0,"aria-labelledby","ariaLabelledby"],errorStateMatcher:"errorStateMatcher",typeaheadDebounceInterval:[2,"typeaheadDebounceInterval","typeaheadDebounceInterval",ct],sortComparator:"sortComparator",id:"id",panelWidth:"panelWidth",canSelectNullableOptions:[2,"canSelectNullableOptions","canSelectNullableOptions",V]},outputs:{openedChange:"openedChange",_openedStream:"opened",_closedStream:"closed",selectionChange:"selectionChange",valueChange:"valueChange"},exportAs:["matSelect"],features:[Ce([{provide:Ra,useExisting:t},{provide:Kd,useExisting:t}]),Ae],ngContentSelectors:lee,decls:11,vars:9,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","","cdkConnectedOverlayLockPosition","","cdkConnectedOverlayHasBackdrop","","cdkConnectedOverlayBackdropClass","cdk-overlay-transparent-backdrop",3,"detach","backdropClick","overlayKeydown","cdkConnectedOverlayDisableClose","cdkConnectedOverlayPanelClass","cdkConnectedOverlayScrollStrategy","cdkConnectedOverlayOrigin","cdkConnectedOverlayPositions","cdkConnectedOverlayWidth","cdkConnectedOverlayFlexibleDimensions"],[1,"mat-mdc-select-min-line"],["role","listbox","tabindex","-1",3,"keydown","ngClass"]],template:function(i,r){if(i&1){let o=Y();Me(see),h(0,"div",2,0),S("click",function(){return I(o),A(r.open())}),h(3,"div",3),N(4,cee,2,1,"span",4)(5,mee,3,1,"span",5),p(),h(6,"div",6)(7,"div",7),Gt(),h(8,"svg",8),k(9,"path",9),p()()()(),R(10,hee,3,10,"ng-template",10),S("detach",function(){return I(o),A(r.close())})("backdropClick",function(){return I(o),A(r.close())})("overlayKeydown",function(s){return I(o),A(r._handleOverlayKeydown(s))})}if(i&2){let o=Se(1);g(3),X("id",r._valueId),g(),L(r.empty?4:5),g(6),y("cdkConnectedOverlayDisableClose",!0)("cdkConnectedOverlayPanelClass",r._overlayPanelClass)("cdkConnectedOverlayScrollStrategy",r._scrollStrategy)("cdkConnectedOverlayOrigin",r._preferredOverlayOrigin||o)("cdkConnectedOverlayPositions",r._positions)("cdkConnectedOverlayWidth",r._overlayWidth)("cdkConnectedOverlayFlexibleDimensions",!0)}},dependencies:[bh,tx,Pd],styles:[`@keyframes _mat-select-enter{from{opacity:0;transform:scaleY(0.8)}to{opacity:1;transform:none}}@keyframes _mat-select-exit{from{opacity:1}to{opacity:0}}.mat-mdc-select{display:inline-block;width:100%;outline:none;-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;color:var(--mat-select-enabled-trigger-text-color, var(--mat-sys-on-surface));font-family:var(--mat-select-trigger-text-font, var(--mat-sys-body-large-font));line-height:var(--mat-select-trigger-text-line-height, var(--mat-sys-body-large-line-height));font-size:var(--mat-select-trigger-text-size, var(--mat-sys-body-large-size));font-weight:var(--mat-select-trigger-text-weight, var(--mat-sys-body-large-weight));letter-spacing:var(--mat-select-trigger-text-tracking, var(--mat-sys-body-large-tracking))}div.mat-mdc-select-panel{box-shadow:var(--mat-select-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-mdc-select-disabled{color:var(--mat-select-disabled-trigger-text-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent))}.mat-mdc-select-disabled .mat-mdc-select-placeholder{color:var(--mat-select-disabled-trigger-text-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent))}.mat-mdc-select-trigger{display:inline-flex;align-items:center;cursor:pointer;position:relative;box-sizing:border-box;width:100%}.mat-mdc-select-disabled .mat-mdc-select-trigger{-webkit-user-select:none;user-select:none;cursor:default}.mat-mdc-select-value{width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.mat-mdc-select-value-text{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.mat-mdc-select-arrow-wrapper{height:24px;flex-shrink:0;display:inline-flex;align-items:center}.mat-form-field-appearance-fill .mdc-text-field--no-label .mat-mdc-select-arrow-wrapper{transform:none}.mat-mdc-form-field .mat-mdc-select.mat-mdc-select-invalid .mat-mdc-select-arrow,.mat-form-field-invalid:not(.mat-form-field-disabled) .mat-mdc-form-field-infix::after{color:var(--mat-select-invalid-arrow-color, var(--mat-sys-error))}.mat-mdc-select-arrow{width:10px;height:5px;position:relative;color:var(--mat-select-enabled-arrow-color, var(--mat-sys-on-surface-variant))}.mat-mdc-form-field.mat-focused .mat-mdc-select-arrow{color:var(--mat-select-focused-arrow-color, var(--mat-sys-primary))}.mat-mdc-form-field .mat-mdc-select.mat-mdc-select-disabled .mat-mdc-select-arrow{color:var(--mat-select-disabled-arrow-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent))}.mat-select-open .mat-mdc-select-arrow{transform:rotate(180deg)}.mat-form-field-animations-enabled .mat-mdc-select-arrow{transition:transform 80ms linear}.mat-mdc-select-arrow svg{fill:currentColor;position:absolute;top:50%;left:50%;transform:translate(-50%, -50%)}@media(forced-colors: active){.mat-mdc-select-arrow svg{fill:CanvasText}.mat-mdc-select-disabled .mat-mdc-select-arrow svg{fill:GrayText}}div.mat-mdc-select-panel{width:100%;max-height:275px;outline:0;overflow:auto;padding:8px 0;border-radius:4px;box-sizing:border-box;position:relative;background-color:var(--mat-select-panel-background-color, var(--mat-sys-surface-container))}@media(forced-colors: active){div.mat-mdc-select-panel{outline:solid 1px}}.cdk-overlay-pane:not(.mat-mdc-select-panel-above) div.mat-mdc-select-panel{border-top-left-radius:0;border-top-right-radius:0;transform-origin:top center}.mat-mdc-select-panel-above div.mat-mdc-select-panel{border-bottom-left-radius:0;border-bottom-right-radius:0;transform-origin:bottom center}.mat-select-panel-animations-enabled{animation:_mat-select-enter 120ms cubic-bezier(0, 0, 0.2, 1)}.mat-select-panel-animations-enabled.mat-select-panel-exit{animation:_mat-select-exit 100ms linear}.mat-mdc-select-placeholder{transition:color 400ms 133.3333333333ms cubic-bezier(0.25, 0.8, 0.25, 1);color:var(--mat-select-placeholder-text-color, var(--mat-sys-on-surface-variant))}.mat-mdc-form-field:not(.mat-form-field-animations-enabled) .mat-mdc-select-placeholder,._mat-animation-noopable .mat-mdc-select-placeholder{transition:none}.mat-form-field-hide-placeholder .mat-mdc-select-placeholder{color:rgba(0,0,0,0);-webkit-text-fill-color:rgba(0,0,0,0);transition:none;display:block}.mat-mdc-form-field-type-mat-select:not(.mat-form-field-disabled) .mat-mdc-text-field-wrapper{cursor:pointer}.mat-mdc-form-field-type-mat-select.mat-form-field-appearance-fill .mat-mdc-floating-label{max-width:calc(100% - 18px)}.mat-mdc-form-field-type-mat-select.mat-form-field-appearance-fill .mdc-floating-label--float-above{max-width:calc(100%/0.75 - 24px)}.mat-mdc-form-field-type-mat-select.mat-form-field-appearance-outline .mdc-notched-outline__notch{max-width:calc(100% - 60px)}.mat-mdc-form-field-type-mat-select.mat-form-field-appearance-outline .mdc-text-field--label-floating .mdc-notched-outline__notch{max-width:calc(100% - 24px)}.mat-mdc-select-min-line:empty::before{content:" ";white-space:pre;width:1px;display:inline-block;visibility:hidden}.mat-form-field-appearance-fill .mat-mdc-select-arrow-wrapper{transform:var(--mat-select-arrow-transform, translateY(-8px))} -`],encapsulation:2,changeDetection:0})}return t})();var fc=(()=>{class t{static \u0275fac=function(i){return new(i||t)};static \u0275mod=ee({type:t});static \u0275inj=J({providers:[qB],imports:[er,rh,we,vr,$i,rh,we]})}return t})();var pee=["mat-icon-button",""],fee=["*"],gee=new T("MAT_BUTTON_CONFIG");function QB(t){return t==null?void 0:ct(t)}var sS=(()=>{class t{_elementRef=u(q);_ngZone=u(ae);_animationsDisabled=Ye();_config=u(gee,{optional:!0});_focusMonitor=u(Yt);_cleanupClick;_renderer=u(je);_rippleLoader=u(Z0);_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(){u(ut).load(Di);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",i){e?this._focusMonitor.focusVia(this._elementRef.nativeElement,e,i):this._elementRef.nativeElement.focus(i)}_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(i){return new(i||t)};static \u0275dir=F({type:t,hostAttrs:[1,"mat-mdc-button-base"],hostVars:13,hostBindings:function(i,r){i&2&&(X("disabled",r._getDisabledAttribute())("aria-disabled",r._getAriaDisabled())("tabindex",r._getTabIndex()),it(r.color?"mat-"+r.color:""),G("mat-mdc-button-disabled",r.disabled)("mat-mdc-button-disabled-interactive",r.disabledInteractive)("mat-unthemed",!r.color)("_mat-animation-noopable",r._animationsDisabled))},inputs:{color:"color",disableRipple:[2,"disableRipple","disableRipple",V],disabled:[2,"disabled","disabled",V],ariaDisabled:[2,"aria-disabled","ariaDisabled",V],disabledInteractive:[2,"disabledInteractive","disabledInteractive",V],tabIndex:[2,"tabIndex","tabIndex",QB],_tabindex:[2,"tabindex","_tabindex",QB]}})}return t})(),ti=(()=>{class t extends sS{constructor(){super(),this._rippleLoader.configureRipple(this._elementRef.nativeElement,{centered:!0})}static \u0275fac=function(i){return new(i||t)};static \u0275cmp=E({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:[le],attrs:pee,ngContentSelectors:fee,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(i,r){i&1&&(Me(),ai(0,"span",0),oe(1),ai(2,"span",1)(3,"span",2))},styles:[`.mat-mdc-icon-button{-webkit-user-select:none;user-select:none;display:inline-block;position:relative;box-sizing:border-box;border:none;outline:none;background-color:rgba(0,0,0,0);fill:currentColor;text-decoration:none;cursor:pointer;z-index:0;overflow:visible;border-radius:var(--mat-icon-button-container-shape, var(--mat-sys-corner-full, 50%));flex-shrink:0;text-align:center;width:var(--mat-icon-button-state-layer-size, 40px);height:var(--mat-icon-button-state-layer-size, 40px);padding:calc(calc(var(--mat-icon-button-state-layer-size, 40px) - var(--mat-icon-button-icon-size, 24px)) / 2);font-size:var(--mat-icon-button-icon-size, 24px);color:var(--mat-icon-button-icon-color, var(--mat-sys-on-surface-variant));-webkit-tap-highlight-color:rgba(0,0,0,0)}.mat-mdc-icon-button .mat-mdc-button-ripple,.mat-mdc-icon-button .mat-mdc-button-persistent-ripple,.mat-mdc-icon-button .mat-mdc-button-persistent-ripple::before{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none;border-radius:inherit}.mat-mdc-icon-button .mat-mdc-button-ripple{overflow:hidden}.mat-mdc-icon-button .mat-mdc-button-persistent-ripple::before{content:"";opacity:0}.mat-mdc-icon-button .mdc-button__label,.mat-mdc-icon-button .mat-icon{z-index:1;position:relative}.mat-mdc-icon-button .mat-focus-indicator{top:0;left:0;right:0;bottom:0;position:absolute;border-radius:inherit}.mat-mdc-icon-button:focus>.mat-focus-indicator::before{content:"";border-radius:inherit}.mat-mdc-icon-button .mat-ripple-element{background-color:var(--mat-icon-button-ripple-color, color-mix(in srgb, var(--mat-sys-on-surface-variant) calc(var(--mat-sys-pressed-state-layer-opacity) * 100%), transparent))}.mat-mdc-icon-button .mat-mdc-button-persistent-ripple::before{background-color:var(--mat-icon-button-state-layer-color, var(--mat-sys-on-surface-variant))}.mat-mdc-icon-button.mat-mdc-button-disabled .mat-mdc-button-persistent-ripple::before{background-color:var(--mat-icon-button-disabled-state-layer-color, var(--mat-sys-on-surface-variant))}.mat-mdc-icon-button:hover>.mat-mdc-button-persistent-ripple::before{opacity:var(--mat-icon-button-hover-state-layer-opacity, var(--mat-sys-hover-state-layer-opacity))}.mat-mdc-icon-button.cdk-program-focused>.mat-mdc-button-persistent-ripple::before,.mat-mdc-icon-button.cdk-keyboard-focused>.mat-mdc-button-persistent-ripple::before,.mat-mdc-icon-button.mat-mdc-button-disabled-interactive:focus>.mat-mdc-button-persistent-ripple::before{opacity:var(--mat-icon-button-focus-state-layer-opacity, var(--mat-sys-focus-state-layer-opacity))}.mat-mdc-icon-button:active>.mat-mdc-button-persistent-ripple::before{opacity:var(--mat-icon-button-pressed-state-layer-opacity, var(--mat-sys-pressed-state-layer-opacity))}.mat-mdc-icon-button .mat-mdc-button-touch-target{position:absolute;top:50%;height:var(--mat-icon-button-touch-target-size, 48px);display:var(--mat-icon-button-touch-target-display, block);left:50%;width:var(--mat-icon-button-touch-target-size, 48px);transform:translate(-50%, -50%)}.mat-mdc-icon-button._mat-animation-noopable{transition:none !important;animation:none !important}.mat-mdc-icon-button[disabled],.mat-mdc-icon-button.mat-mdc-button-disabled{cursor:default;pointer-events:none;color:var(--mat-icon-button-disabled-icon-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent))}.mat-mdc-icon-button.mat-mdc-button-disabled-interactive{pointer-events:auto}.mat-mdc-icon-button img,.mat-mdc-icon-button svg{width:var(--mat-icon-button-icon-size, 24px);height:var(--mat-icon-button-icon-size, 24px);vertical-align:baseline}.mat-mdc-icon-button .mat-mdc-button-persistent-ripple{border-radius:var(--mat-icon-button-container-shape, var(--mat-sys-corner-full, 50%))}.mat-mdc-icon-button[hidden]{display:none}.mat-mdc-icon-button.mat-unthemed:not(.mdc-ripple-upgraded):focus::before,.mat-mdc-icon-button.mat-primary:not(.mdc-ripple-upgraded):focus::before,.mat-mdc-icon-button.mat-accent:not(.mdc-ripple-upgraded):focus::before,.mat-mdc-icon-button.mat-warn:not(.mdc-ripple-upgraded):focus::before{background:rgba(0,0,0,0);opacity:1} + [matCardTitle], [matCardSubtitle]`,"*"],$S=new O("MAT_CARD_CONFIG"),Ht=(()=>{class t{appearance;constructor(){let e=u($S,{optional:!0});this.appearance=e?.appearance||"raised"}static \u0275fac=function(i){return new(i||t)};static \u0275cmp=E({type:t,selectors:[["mat-card"]],hostAttrs:[1,"mat-mdc-card","mdc-card"],hostVars:8,hostBindings:function(i,r){i&2&&G("mat-mdc-card-outlined",r.appearance==="outlined")("mdc-card--outlined",r.appearance==="outlined")("mat-mdc-card-filled",r.appearance==="filled")("mdc-card--filled",r.appearance==="filled")},inputs:{appearance:"appearance"},exportAs:["matCard"],ngContentSelectors:iJ,decls:1,vars:0,template:function(i,r){i&1&&(Se(),ne(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 rgba(0,0,0,0);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 t})(),Wt=(()=>{class t{static \u0275fac=function(i){return new(i||t)};static \u0275dir=P({type:t,selectors:[["mat-card-title"],["","mat-card-title",""],["","matCardTitle",""]],hostAttrs:[1,"mat-mdc-card-title"]})}return t})();var zt=(()=>{class t{static \u0275fac=function(i){return new(i||t)};static \u0275dir=P({type:t,selectors:[["mat-card-content"]],hostAttrs:[1,"mat-mdc-card-content"]})}return t})(),yh=(()=>{class t{static \u0275fac=function(i){return new(i||t)};static \u0275dir=P({type:t,selectors:[["mat-card-subtitle"],["","mat-card-subtitle",""],["","matCardSubtitle",""]],hostAttrs:[1,"mat-mdc-card-subtitle"]})}return t})(),WV=(()=>{class t{align="start";static \u0275fac=function(i){return new(i||t)};static \u0275dir=P({type:t,selectors:[["mat-card-actions"]],hostAttrs:[1,"mat-mdc-card-actions","mdc-card__actions"],hostVars:2,hostBindings:function(i,r){i&2&&G("mat-mdc-card-actions-align-end",r.align==="end")},inputs:{align:"align"},exportAs:["matCardActions"]})}return t})(),Gt=(()=>{class t{static \u0275fac=function(i){return new(i||t)};static \u0275cmp=E({type:t,selectors:[["mat-card-header"]],hostAttrs:[1,"mat-mdc-card-header"],ngContentSelectors:rJ,decls:4,vars:0,consts:[[1,"mat-mdc-card-header-text"]],template:function(i,r){i&1&&(Se(nJ),ne(0),pt(1,"div",0),ne(2,1),_t(),ne(3,2))},encapsulation:2,changeDetection:0})}return t})();var Ky=(()=>{class t{static \u0275fac=function(i){return new(i||t)};static \u0275dir=P({type:t,selectors:[["","mat-card-avatar",""],["","matCardAvatar",""]],hostAttrs:[1,"mat-mdc-card-avatar"]})}return t})();var Ut=(()=>{class t{static \u0275fac=function(i){return new(i||t)};static \u0275mod=ee({type:t});static \u0275inj=J({imports:[De,De]})}return t})();var WS=class{_box;_destroyed=new z;_resizeSubject=new z;_resizeObserver;_elementObservables=new Map;constructor(n){this._box=n,typeof ResizeObserver<"u"&&(this._resizeObserver=new ResizeObserver(e=>this._resizeSubject.next(e)))}observe(n){return this._elementObservables.has(n)||this._elementObservables.set(n,new Fe(e=>{let i=this._resizeSubject.subscribe(e);return this._resizeObserver?.observe(n,{box:this._box}),()=>{this._resizeObserver?.unobserve(n),i.unsubscribe(),this._elementObservables.delete(n)}}).pipe(ce(e=>e.some(i=>i.target===n)),fd({bufferSize:1,refCount:!0}),we(this._destroyed))),this._elementObservables.get(n)}destroy(){this._destroyed.next(),this._destroyed.complete(),this._resizeSubject.complete(),this._elementObservables.clear()}},Zy=(()=>{class t{_cleanupErrorListener;_observers=new Map;_ngZone=u(ae);constructor(){typeof ResizeObserver<"u"}ngOnDestroy(){for(let[,e]of this._observers)e.destroy();this._observers.clear(),this._cleanupErrorListener?.()}observe(e,i){let r=i?.box||"content-box";return this._observers.has(r)||this._observers.set(r,new WS(r)),this._observers.get(r).observe(e)}static \u0275fac=function(i){return new(i||t)};static \u0275prov=R({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();var oJ=["notch"],aJ=["matFormFieldNotchedOutline",""],sJ=["*"],GV=["iconPrefixContainer"],qV=["textPrefixContainer"],YV=["iconSuffixContainer"],QV=["textSuffixContainer"],lJ=["textField"],cJ=["*",[["mat-label"]],[["","matPrefix",""],["","matIconPrefix",""]],[["","matTextPrefix",""]],[["","matTextSuffix",""]],[["","matSuffix",""],["","matIconSuffix",""]],[["mat-error"],["","matError",""]],[["mat-hint",3,"align","end"]],[["mat-hint","align","end"]]],dJ=["*","mat-label","[matPrefix], [matIconPrefix]","[matTextPrefix]","[matTextSuffix]","[matSuffix], [matIconSuffix]","mat-error, [matError]","mat-hint:not([align='end'])","mat-hint[align='end']"];function uJ(t,n){t&1&&M(0,"span",21)}function mJ(t,n){if(t&1&&(m(0,"label",20),ne(1,1),V(2,uJ,1,0,"span",21),h()),t&2){let e=x(2);v("floating",e._shouldLabelFloat())("monitorResize",e._hasOutline())("id",e._labelId),X("for",e._control.disableAutomaticLabeling?null:e._control.id),f(2),B(!e.hideRequiredMarker&&e._control.required?2:-1)}}function hJ(t,n){if(t&1&&V(0,mJ,3,5,"label",20),t&2){let e=x();B(e._hasFloatingLabel()?0:-1)}}function pJ(t,n){t&1&&M(0,"div",7)}function fJ(t,n){}function gJ(t,n){if(t&1&&A(0,fJ,0,0,"ng-template",13),t&2){x(2);let e=Me(1);v("ngTemplateOutlet",e)}}function _J(t,n){if(t&1&&(m(0,"div",9),V(1,gJ,1,1,null,13),h()),t&2){let e=x();v("matFormFieldNotchedOutlineOpen",e._shouldLabelFloat()),f(),B(e._forceDisplayInfixLabel()?-1:1)}}function bJ(t,n){t&1&&(m(0,"div",10,2),ne(2,2),h())}function vJ(t,n){t&1&&(m(0,"div",11,3),ne(2,3),h())}function yJ(t,n){}function xJ(t,n){if(t&1&&A(0,yJ,0,0,"ng-template",13),t&2){x();let e=Me(1);v("ngTemplateOutlet",e)}}function CJ(t,n){t&1&&(m(0,"div",14,4),ne(2,4),h())}function wJ(t,n){t&1&&(m(0,"div",15,5),ne(2,5),h())}function DJ(t,n){t&1&&M(0,"div",16)}function EJ(t,n){t&1&&(m(0,"div",18),ne(1,6),h())}function MJ(t,n){if(t&1&&(m(0,"mat-hint",22),g(1),h()),t&2){let e=x(2);v("id",e._hintLabelId),f(),N(e.hintLabel)}}function SJ(t,n){if(t&1&&(m(0,"div",19),V(1,MJ,2,2,"mat-hint",22),ne(2,7),M(3,"div",23),ne(4,8),h()),t&2){let e=x();f(),B(e.hintLabel?1:-1)}}var Gi=(()=>{class t{static \u0275fac=function(i){return new(i||t)};static \u0275dir=P({type:t,selectors:[["mat-label"]]})}return t})(),GS=new O("MatError"),So=(()=>{class t{id=u(Ze).getId("mat-mdc-error-");constructor(){}static \u0275fac=function(i){return new(i||t)};static \u0275dir=P({type:t,selectors:[["mat-error"],["","matError",""]],hostAttrs:[1,"mat-mdc-form-field-error","mat-mdc-form-field-bottom-align"],hostVars:1,hostBindings:function(i,r){i&2&&ci("id",r.id)},inputs:{id:"id"},features:[Ce([{provide:GS,useExisting:t}])]})}return t})(),og=(()=>{class t{align="start";id=u(Ze).getId("mat-mdc-hint-");static \u0275fac=function(i){return new(i||t)};static \u0275dir=P({type:t,selectors:[["mat-hint"]],hostAttrs:[1,"mat-mdc-form-field-hint","mat-mdc-form-field-bottom-align"],hostVars:4,hostBindings:function(i,r){i&2&&(ci("id",r.id),X("align",null),G("mat-mdc-form-field-hint-end",r.align==="end"))},inputs:{align:"align",id:"id"}})}return t})(),qS=new O("MatPrefix"),cu=(()=>{class t{set _isTextSelector(e){this._isText=!0}_isText=!1;static \u0275fac=function(i){return new(i||t)};static \u0275dir=P({type:t,selectors:[["","matPrefix",""],["","matIconPrefix",""],["","matTextPrefix",""]],inputs:{_isTextSelector:[0,"matTextPrefix","_isTextSelector"]},features:[Ce([{provide:qS,useExisting:t}])]})}return t})(),YS=new O("MatSuffix"),hl=(()=>{class t{set _isTextSelector(e){this._isText=!0}_isText=!1;static \u0275fac=function(i){return new(i||t)};static \u0275dir=P({type:t,selectors:[["","matSuffix",""],["","matIconSuffix",""],["","matTextSuffix",""]],inputs:{_isTextSelector:[0,"matTextSuffix","_isTextSelector"]},features:[Ce([{provide:YS,useExisting:t}])]})}return t})(),iB=new O("FloatingLabelParent"),KV=(()=>{class t{_elementRef=u(Y);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=u(Zy);_ngZone=u(ae);_parent=u(iB);_resizeSubscription=new Te;constructor(){}ngOnDestroy(){this._resizeSubscription.unsubscribe()}getWidth(){return kJ(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(i){return new(i||t)};static \u0275dir=P({type:t,selectors:[["label","matFormFieldFloatingLabel",""]],hostAttrs:[1,"mdc-floating-label","mat-mdc-floating-label"],hostVars:2,hostBindings:function(i,r){i&2&&G("mdc-floating-label--float-above",r.floating)},inputs:{floating:"floating",monitorResize:"monitorResize"}})}return t})();function kJ(t){let n=t;if(n.offsetParent!==null)return n.scrollWidth;let e=n.cloneNode(!0);e.style.setProperty("position","absolute"),e.style.setProperty("transform","translate(-9999px, -9999px)"),document.documentElement.appendChild(e);let i=e.scrollWidth;return e.remove(),i}var ZV="mdc-line-ripple--active",Xy="mdc-line-ripple--deactivating",XV=(()=>{class t{_elementRef=u(Y);_cleanupTransitionEnd;constructor(){let e=u(ae),i=u(ze);e.runOutsideAngular(()=>{this._cleanupTransitionEnd=i.listen(this._elementRef.nativeElement,"transitionend",this._handleTransitionEnd)})}activate(){let e=this._elementRef.nativeElement.classList;e.remove(Xy),e.add(ZV)}deactivate(){this._elementRef.nativeElement.classList.add(Xy)}_handleTransitionEnd=e=>{let i=this._elementRef.nativeElement.classList,r=i.contains(Xy);e.propertyName==="opacity"&&r&&i.remove(ZV,Xy)};ngOnDestroy(){this._cleanupTransitionEnd()}static \u0275fac=function(i){return new(i||t)};static \u0275dir=P({type:t,selectors:[["div","matFormFieldLineRipple",""]],hostAttrs:[1,"mdc-line-ripple"]})}return t})(),JV=(()=>{class t{_elementRef=u(Y);_ngZone=u(ae);open=!1;_notch;ngAfterViewInit(){let e=this._elementRef.nativeElement,i=e.querySelector(".mdc-floating-label");i?(e.classList.add("mdc-notched-outline--upgraded"),typeof requestAnimationFrame=="function"&&(i.style.transitionDuration="0s",this._ngZone.runOutsideAngular(()=>{requestAnimationFrame(()=>i.style.transitionDuration="")}))):e.classList.add("mdc-notched-outline--no-label")}_setNotchWidth(e){let i=this._notch.nativeElement;!this.open||!e?i.style.width="":i.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(i){return new(i||t)};static \u0275cmp=E({type:t,selectors:[["div","matFormFieldNotchedOutline",""]],viewQuery:function(i,r){if(i&1&&ie(oJ,5),i&2){let o;j(o=H())&&(r._notch=o.first)}},hostAttrs:[1,"mdc-notched-outline"],hostVars:2,hostBindings:function(i,r){i&2&&G("mdc-notched-outline--notched",r.open)},inputs:{open:[0,"matFormFieldNotchedOutlineOpen","open"]},attrs:aJ,ngContentSelectors:sJ,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(i,r){i&1&&(Se(),Xt(0,"div",1),pt(1,"div",2,0),ne(3),_t(),Xt(4,"div",3))},encapsulation:2,changeDetection:0})}return t})(),Pa=(()=>{class t{value;stateChanges;id;placeholder;ngControl;focused;empty;shouldLabelFloat;required;disabled;errorState;controlType;autofilled;userAriaDescribedBy;disableAutomaticLabeling;describedByIds;static \u0275fac=function(i){return new(i||t)};static \u0275dir=P({type:t})}return t})();var ta=new O("MatFormField"),nB=new O("MAT_FORM_FIELD_DEFAULT_OPTIONS"),eB="fill",TJ="auto",tB="fixed",IJ="translateY(-50%)",Ci=(()=>{class t{_elementRef=u(Y);_changeDetectorRef=u(ye);_platform=u(qe);_idGenerator=u(Ze);_ngZone=u(ae);_defaults=u(nB,{optional:!0});_currentDirection;_textField;_iconPrefixContainer;_textPrefixContainer;_iconSuffixContainer;_textSuffixContainer;_floatingLabel;_notchedOutline;_lineRipple;_iconPrefixContainerSignal=Qn("iconPrefixContainer");_textPrefixContainerSignal=Qn("textPrefixContainer");_iconSuffixContainerSignal=Qn("iconSuffixContainer");_textSuffixContainerSignal=Qn("textSuffixContainer");_prefixSuffixContainers=oi(()=>[this._iconPrefixContainerSignal(),this._textPrefixContainerSignal(),this._iconSuffixContainerSignal(),this._textSuffixContainerSignal()].map(e=>e?.nativeElement).filter(e=>e!==void 0));_formFieldControl;_prefixChildren;_suffixChildren;_errorChildren;_hintChildren;_labelChild=_r(Gi);get hideRequiredMarker(){return this._hideRequiredMarker}set hideRequiredMarker(e){this._hideRequiredMarker=Ri(e)}_hideRequiredMarker=!1;color="primary";get floatLabel(){return this._floatLabel||this._defaults?.floatLabel||TJ}set floatLabel(e){e!==this._floatLabel&&(this._floatLabel=e,this._changeDetectorRef.markForCheck())}_floatLabel;get appearance(){return this._appearanceSignal()}set appearance(e){let i=e||this._defaults?.appearance||eB;this._appearanceSignal.set(i)}_appearanceSignal=he(eB);get subscriptSizing(){return this._subscriptSizing||this._defaults?.subscriptSizing||tB}set subscriptSizing(e){this._subscriptSizing=e||this._defaults?.subscriptSizing||tB}_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 z;_isFocused=null;_explicitFormFieldControl;_previousControl=null;_previousControlValidatorFn=null;_stateChanges;_valueChanges;_describedByChanges;_outlineLabelOffsetResizeObserver=null;_animationsDisabled=Ye();constructor(){let e=this._defaults,i=u(Bt);e&&(e.appearance&&(this.appearance=e.appearance),this._hideRequiredMarker=!!e?.hideRequiredMarker,e.color&&(this.color=e.color)),Lr(()=>this._currentDirection=i.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=oi(()=>this._hasFloatingLabel()?this._labelId:null);getConnectedOverlayOrigin(){return this._textField||this._elementRef}_animateAndLockLabel(){this._hasFloatingLabel()&&(this.floatLabel="always")}_initializeControl(e){let i=this._control,r="mat-mdc-form-field-type-";e&&this._elementRef.nativeElement.classList.remove(r+e.controlType),i.controlType&&this._elementRef.nativeElement.classList.add(r+i.controlType),this._stateChanges?.unsubscribe(),this._stateChanges=i.stateChanges.subscribe(()=>{this._updateFocusState(),this._changeDetectorRef.markForCheck()}),this._describedByChanges?.unsubscribe(),this._describedByChanges=i.stateChanges.pipe(Ue([void 0,void 0]),se(()=>[i.errorState,i.userAriaDescribedBy]),hb(),ce(([[o,a],[s,l]])=>o!==s||a!==l)).subscribe(()=>this._syncDescribedByIds()),this._valueChanges?.unsubscribe(),i.ngControl&&i.ngControl.valueChanges&&(this._valueChanges=i.ngControl.valueChanges.pipe(we(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(),Je(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(){h2({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=oi(()=>!!this._labelChild());_shouldLabelFloat(){return this._hasFloatingLabel()?this._control.shouldLabelFloat||this._shouldAlwaysFloat():!1}_shouldForward(e){let i=this._control?this._control.ngControl:null;return i&&i[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 o=this._hintChildren?this._hintChildren.find(s=>s.align==="start"):null,a=this._hintChildren?this._hintChildren.find(s=>s.align==="end"):null;o?e.push(o.id):this._hintLabel&&e.push(this._hintLabelId),a&&e.push(a.id)}else this._errorChildren&&e.push(...this._errorChildren.map(o=>o.id));let i=this._control.describedByIds,r;if(i){let o=this._describedByIds||e;r=e.concat(i.filter(a=>a&&!o.includes(a)))}else r=e;this._control.setDescribedByIds(r),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,i=this._textPrefixContainer?.nativeElement,r=this._iconSuffixContainer?.nativeElement,o=this._textSuffixContainer?.nativeElement,a=e?.getBoundingClientRect().width??0,s=i?.getBoundingClientRect().width??0,l=r?.getBoundingClientRect().width??0,c=o?.getBoundingClientRect().width??0,d=this._currentDirection==="rtl"?"-1":"1",p=`${a+s}px`,b=`calc(${d} * (${p} + var(--mat-mdc-form-field-label-offset-x, 0px)))`,y=`var(--mat-mdc-form-field-label-transform, ${IJ} translateX(${b}))`,w=a+s+l+c;return[y,w]}_writeOutlinedLabelStyles(e){if(e!==null){let[i,r]=e;this._floatingLabel&&(this._floatingLabel.element.style.transform=i),r!==null&&this._notchedOutline?._setMaxWidth(r)}}_isAttachedToDom(){let e=this._elementRef.nativeElement;if(e.getRootNode){let i=e.getRootNode();return i&&i!==e}return document.documentElement.contains(e)}static \u0275fac=function(i){return new(i||t)};static \u0275cmp=E({type:t,selectors:[["mat-form-field"]],contentQueries:function(i,r,o){if(i&1&&(Fn(o,r._labelChild,Gi,5),xe(o,Pa,5),xe(o,qS,5),xe(o,YS,5),xe(o,GS,5),xe(o,og,5)),i&2){Go();let a;j(a=H())&&(r._formFieldControl=a.first),j(a=H())&&(r._prefixChildren=a),j(a=H())&&(r._suffixChildren=a),j(a=H())&&(r._errorChildren=a),j(a=H())&&(r._hintChildren=a)}},viewQuery:function(i,r){if(i&1&&(Nn(r._iconPrefixContainerSignal,GV,5),Nn(r._textPrefixContainerSignal,qV,5),Nn(r._iconSuffixContainerSignal,YV,5),Nn(r._textSuffixContainerSignal,QV,5),ie(lJ,5),ie(GV,5),ie(qV,5),ie(YV,5),ie(QV,5),ie(KV,5),ie(JV,5),ie(XV,5)),i&2){Go(4);let o;j(o=H())&&(r._textField=o.first),j(o=H())&&(r._iconPrefixContainer=o.first),j(o=H())&&(r._textPrefixContainer=o.first),j(o=H())&&(r._iconSuffixContainer=o.first),j(o=H())&&(r._textSuffixContainer=o.first),j(o=H())&&(r._floatingLabel=o.first),j(o=H())&&(r._notchedOutline=o.first),j(o=H())&&(r._lineRipple=o.first)}},hostAttrs:[1,"mat-mdc-form-field"],hostVars:38,hostBindings:function(i,r){i&2&&G("mat-mdc-form-field-label-always-float",r._shouldAlwaysFloat())("mat-mdc-form-field-has-icon-prefix",r._hasIconPrefix)("mat-mdc-form-field-has-icon-suffix",r._hasIconSuffix)("mat-form-field-invalid",r._control.errorState)("mat-form-field-disabled",r._control.disabled)("mat-form-field-autofilled",r._control.autofilled)("mat-form-field-appearance-fill",r.appearance=="fill")("mat-form-field-appearance-outline",r.appearance=="outline")("mat-form-field-hide-placeholder",r._hasFloatingLabel()&&!r._shouldLabelFloat())("mat-primary",r.color!=="accent"&&r.color!=="warn")("mat-accent",r.color==="accent")("mat-warn",r.color==="warn")("ng-untouched",r._shouldForward("untouched"))("ng-touched",r._shouldForward("touched"))("ng-pristine",r._shouldForward("pristine"))("ng-dirty",r._shouldForward("dirty"))("ng-valid",r._shouldForward("valid"))("ng-invalid",r._shouldForward("invalid"))("ng-pending",r._shouldForward("pending"))},inputs:{hideRequiredMarker:"hideRequiredMarker",color:"color",floatLabel:"floatLabel",appearance:"appearance",subscriptSizing:"subscriptSizing",hintLabel:"hintLabel"},exportAs:["matFormField"],features:[Ce([{provide:ta,useExisting:t},{provide:iB,useExisting:t}])],ngContentSelectors:dJ,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(i,r){if(i&1){let o=q();Se(cJ),A(0,hJ,1,1,"ng-template",null,0,vi),m(2,"div",6,1),S("click",function(s){return T(o),I(r._control.onContainerClick(s))}),V(4,pJ,1,0,"div",7),m(5,"div",8),V(6,_J,2,2,"div",9),V(7,bJ,3,0,"div",10),V(8,vJ,3,0,"div",11),m(9,"div",12),V(10,xJ,1,1,null,13),ne(11),h(),V(12,CJ,3,0,"div",14),V(13,wJ,3,0,"div",15),h(),V(14,DJ,1,0,"div",16),h(),m(15,"div",17),V(16,EJ,2,0,"div",18)(17,SJ,5,1,"div",19),h()}if(i&2){let o;f(2),G("mdc-text-field--filled",!r._hasOutline())("mdc-text-field--outlined",r._hasOutline())("mdc-text-field--no-label",!r._hasFloatingLabel())("mdc-text-field--disabled",r._control.disabled)("mdc-text-field--invalid",r._control.errorState),f(2),B(!r._hasOutline()&&!r._control.disabled?4:-1),f(2),B(r._hasOutline()?6:-1),f(),B(r._hasIconPrefix?7:-1),f(),B(r._hasTextPrefix?8:-1),f(2),B(!r._hasOutline()||r._forceDisplayInfixLabel()?10:-1),f(2),B(r._hasTextSuffix?12:-1),f(),B(r._hasIconSuffix?13:-1),f(),B(r._hasOutline()?-1:14),f(),G("mat-mdc-form-field-subscript-dynamic-size",r.subscriptSizing==="dynamic");let a=r._getSubscriptMessageType();f(),B((o=a)==="error"?16:o==="hint"?17:-1)}},dependencies:[KV,JV,Ln,XV,og],styles:[`.mdc-text-field{display:inline-flex;align-items:baseline;padding:0 16px;position:relative;box-sizing:border-box;overflow:hidden;will-change:opacity,transform,color;border-top-left-radius:4px;border-top-right-radius:4px;border-bottom-right-radius:0;border-bottom-left-radius:0}.mdc-text-field__input{width:100%;min-width:0;border:none;border-radius:0;background:none;padding:0;-moz-appearance:none;-webkit-appearance:none;height:28px}.mdc-text-field__input::-webkit-calendar-picker-indicator,.mdc-text-field__input::-webkit-search-cancel-button{display:none}.mdc-text-field__input::-ms-clear{display:none}.mdc-text-field__input:focus{outline:none}.mdc-text-field__input:invalid{box-shadow:none}.mdc-text-field__input::placeholder{opacity:0}.mdc-text-field__input::-moz-placeholder{opacity:0}.mdc-text-field__input::-webkit-input-placeholder{opacity:0}.mdc-text-field__input:-ms-input-placeholder{opacity:0}.mdc-text-field--no-label .mdc-text-field__input::placeholder,.mdc-text-field--focused .mdc-text-field__input::placeholder{opacity:1}.mdc-text-field--no-label .mdc-text-field__input::-moz-placeholder,.mdc-text-field--focused .mdc-text-field__input::-moz-placeholder{opacity:1}.mdc-text-field--no-label .mdc-text-field__input::-webkit-input-placeholder,.mdc-text-field--focused .mdc-text-field__input::-webkit-input-placeholder{opacity:1}.mdc-text-field--no-label .mdc-text-field__input:-ms-input-placeholder,.mdc-text-field--focused .mdc-text-field__input:-ms-input-placeholder{opacity:1}.mdc-text-field--disabled:not(.mdc-text-field--no-label) .mdc-text-field__input.mat-mdc-input-disabled-interactive::placeholder{opacity:0}.mdc-text-field--disabled:not(.mdc-text-field--no-label) .mdc-text-field__input.mat-mdc-input-disabled-interactive::-moz-placeholder{opacity:0}.mdc-text-field--disabled:not(.mdc-text-field--no-label) .mdc-text-field__input.mat-mdc-input-disabled-interactive::-webkit-input-placeholder{opacity:0}.mdc-text-field--disabled:not(.mdc-text-field--no-label) .mdc-text-field__input.mat-mdc-input-disabled-interactive:-ms-input-placeholder{opacity:0}.mdc-text-field--outlined .mdc-text-field__input,.mdc-text-field--filled.mdc-text-field--no-label .mdc-text-field__input{height:100%}.mdc-text-field--outlined .mdc-text-field__input{display:flex;border:none !important;background-color:rgba(0,0,0,0)}.mdc-text-field--disabled .mdc-text-field__input{pointer-events:auto}.mdc-text-field--filled:not(.mdc-text-field--disabled) .mdc-text-field__input{color:var(--mat-form-field-filled-input-text-color, var(--mat-sys-on-surface));caret-color:var(--mat-form-field-filled-caret-color, var(--mat-sys-primary))}.mdc-text-field--filled:not(.mdc-text-field--disabled) .mdc-text-field__input::placeholder{color:var(--mat-form-field-filled-input-text-placeholder-color, var(--mat-sys-on-surface-variant))}.mdc-text-field--filled:not(.mdc-text-field--disabled) .mdc-text-field__input::-moz-placeholder{color:var(--mat-form-field-filled-input-text-placeholder-color, var(--mat-sys-on-surface-variant))}.mdc-text-field--filled:not(.mdc-text-field--disabled) .mdc-text-field__input::-webkit-input-placeholder{color:var(--mat-form-field-filled-input-text-placeholder-color, var(--mat-sys-on-surface-variant))}.mdc-text-field--filled:not(.mdc-text-field--disabled) .mdc-text-field__input:-ms-input-placeholder{color:var(--mat-form-field-filled-input-text-placeholder-color, var(--mat-sys-on-surface-variant))}.mdc-text-field--outlined:not(.mdc-text-field--disabled) .mdc-text-field__input{color:var(--mat-form-field-outlined-input-text-color, var(--mat-sys-on-surface));caret-color:var(--mat-form-field-outlined-caret-color, var(--mat-sys-primary))}.mdc-text-field--outlined:not(.mdc-text-field--disabled) .mdc-text-field__input::placeholder{color:var(--mat-form-field-outlined-input-text-placeholder-color, var(--mat-sys-on-surface-variant))}.mdc-text-field--outlined:not(.mdc-text-field--disabled) .mdc-text-field__input::-moz-placeholder{color:var(--mat-form-field-outlined-input-text-placeholder-color, var(--mat-sys-on-surface-variant))}.mdc-text-field--outlined:not(.mdc-text-field--disabled) .mdc-text-field__input::-webkit-input-placeholder{color:var(--mat-form-field-outlined-input-text-placeholder-color, var(--mat-sys-on-surface-variant))}.mdc-text-field--outlined:not(.mdc-text-field--disabled) .mdc-text-field__input:-ms-input-placeholder{color:var(--mat-form-field-outlined-input-text-placeholder-color, var(--mat-sys-on-surface-variant))}.mdc-text-field--filled.mdc-text-field--invalid:not(.mdc-text-field--disabled) .mdc-text-field__input{caret-color:var(--mat-form-field-filled-error-caret-color, var(--mat-sys-error))}.mdc-text-field--outlined.mdc-text-field--invalid:not(.mdc-text-field--disabled) .mdc-text-field__input{caret-color:var(--mat-form-field-outlined-error-caret-color, var(--mat-sys-error))}.mdc-text-field--filled.mdc-text-field--disabled .mdc-text-field__input{color:var(--mat-form-field-filled-disabled-input-text-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent))}.mdc-text-field--outlined.mdc-text-field--disabled .mdc-text-field__input{color:var(--mat-form-field-outlined-disabled-input-text-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent))}@media(forced-colors: active){.mdc-text-field--disabled .mdc-text-field__input{background-color:Window}}.mdc-text-field--filled{height:56px;border-bottom-right-radius:0;border-bottom-left-radius:0;border-top-left-radius:var(--mat-form-field-filled-container-shape, var(--mat-sys-corner-extra-small));border-top-right-radius:var(--mat-form-field-filled-container-shape, var(--mat-sys-corner-extra-small))}.mdc-text-field--filled:not(.mdc-text-field--disabled){background-color:var(--mat-form-field-filled-container-color, var(--mat-sys-surface-variant))}.mdc-text-field--filled.mdc-text-field--disabled{background-color:var(--mat-form-field-filled-disabled-container-color, color-mix(in srgb, var(--mat-sys-on-surface) 4%, transparent))}.mdc-text-field--outlined{height:56px;overflow:visible;padding-right:max(16px,var(--mat-form-field-outlined-container-shape, var(--mat-sys-corner-extra-small)));padding-left:max(16px,var(--mat-form-field-outlined-container-shape, var(--mat-sys-corner-extra-small)) + 4px)}[dir=rtl] .mdc-text-field--outlined{padding-right:max(16px,var(--mat-form-field-outlined-container-shape, var(--mat-sys-corner-extra-small)) + 4px);padding-left:max(16px,var(--mat-form-field-outlined-container-shape, var(--mat-sys-corner-extra-small)))}.mdc-floating-label{position:absolute;left:0;transform-origin:left top;line-height:1.15rem;text-align:left;text-overflow:ellipsis;white-space:nowrap;cursor:text;overflow:hidden;will-change:transform}[dir=rtl] .mdc-floating-label{right:0;left:auto;transform-origin:right top;text-align:right}.mdc-text-field .mdc-floating-label{top:50%;transform:translateY(-50%);pointer-events:none}.mdc-notched-outline .mdc-floating-label{display:inline-block;position:relative;max-width:100%}.mdc-text-field--outlined .mdc-floating-label{left:4px;right:auto}[dir=rtl] .mdc-text-field--outlined .mdc-floating-label{left:auto;right:4px}.mdc-text-field--filled .mdc-floating-label{left:16px;right:auto}[dir=rtl] .mdc-text-field--filled .mdc-floating-label{left:auto;right:16px}.mdc-text-field--disabled .mdc-floating-label{cursor:default}@media(forced-colors: active){.mdc-text-field--disabled .mdc-floating-label{z-index:1}}.mdc-text-field--filled.mdc-text-field--no-label .mdc-floating-label{display:none}.mdc-text-field--filled:not(.mdc-text-field--disabled) .mdc-floating-label{color:var(--mat-form-field-filled-label-text-color, var(--mat-sys-on-surface-variant))}.mdc-text-field--filled:not(.mdc-text-field--disabled).mdc-text-field--focused .mdc-floating-label{color:var(--mat-form-field-filled-focus-label-text-color, var(--mat-sys-primary))}.mdc-text-field--filled:not(.mdc-text-field--disabled):not(.mdc-text-field--focused):hover .mdc-floating-label{color:var(--mat-form-field-filled-hover-label-text-color, var(--mat-sys-on-surface-variant))}.mdc-text-field--filled.mdc-text-field--disabled .mdc-floating-label{color:var(--mat-form-field-filled-disabled-label-text-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent))}.mdc-text-field--filled:not(.mdc-text-field--disabled).mdc-text-field--invalid .mdc-floating-label{color:var(--mat-form-field-filled-error-label-text-color, var(--mat-sys-error))}.mdc-text-field--filled:not(.mdc-text-field--disabled).mdc-text-field--invalid.mdc-text-field--focused .mdc-floating-label{color:var(--mat-form-field-filled-error-focus-label-text-color, var(--mat-sys-error))}.mdc-text-field--filled:not(.mdc-text-field--disabled).mdc-text-field--invalid:not(.mdc-text-field--disabled):hover .mdc-floating-label{color:var(--mat-form-field-filled-error-hover-label-text-color, var(--mat-sys-on-error-container))}.mdc-text-field--filled .mdc-floating-label{font-family:var(--mat-form-field-filled-label-text-font, var(--mat-sys-body-large-font));font-size:var(--mat-form-field-filled-label-text-size, var(--mat-sys-body-large-size));font-weight:var(--mat-form-field-filled-label-text-weight, var(--mat-sys-body-large-weight));letter-spacing:var(--mat-form-field-filled-label-text-tracking, var(--mat-sys-body-large-tracking))}.mdc-text-field--outlined:not(.mdc-text-field--disabled) .mdc-floating-label{color:var(--mat-form-field-outlined-label-text-color, var(--mat-sys-on-surface-variant))}.mdc-text-field--outlined:not(.mdc-text-field--disabled).mdc-text-field--focused .mdc-floating-label{color:var(--mat-form-field-outlined-focus-label-text-color, var(--mat-sys-primary))}.mdc-text-field--outlined:not(.mdc-text-field--disabled):not(.mdc-text-field--focused):hover .mdc-floating-label{color:var(--mat-form-field-outlined-hover-label-text-color, var(--mat-sys-on-surface))}.mdc-text-field--outlined.mdc-text-field--disabled .mdc-floating-label{color:var(--mat-form-field-outlined-disabled-label-text-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent))}.mdc-text-field--outlined:not(.mdc-text-field--disabled).mdc-text-field--invalid .mdc-floating-label{color:var(--mat-form-field-outlined-error-label-text-color, var(--mat-sys-error))}.mdc-text-field--outlined:not(.mdc-text-field--disabled).mdc-text-field--invalid.mdc-text-field--focused .mdc-floating-label{color:var(--mat-form-field-outlined-error-focus-label-text-color, var(--mat-sys-error))}.mdc-text-field--outlined:not(.mdc-text-field--disabled).mdc-text-field--invalid:not(.mdc-text-field--disabled):hover .mdc-floating-label{color:var(--mat-form-field-outlined-error-hover-label-text-color, var(--mat-sys-on-error-container))}.mdc-text-field--outlined .mdc-floating-label{font-family:var(--mat-form-field-outlined-label-text-font, var(--mat-sys-body-large-font));font-size:var(--mat-form-field-outlined-label-text-size, var(--mat-sys-body-large-size));font-weight:var(--mat-form-field-outlined-label-text-weight, var(--mat-sys-body-large-weight));letter-spacing:var(--mat-form-field-outlined-label-text-tracking, var(--mat-sys-body-large-tracking))}.mdc-floating-label--float-above{cursor:auto;transform:translateY(-106%) scale(0.75)}.mdc-text-field--filled .mdc-floating-label--float-above{transform:translateY(-106%) scale(0.75)}.mdc-text-field--outlined .mdc-floating-label--float-above{transform:translateY(-37.25px) scale(1);font-size:.75rem}.mdc-notched-outline .mdc-floating-label--float-above{text-overflow:clip}.mdc-notched-outline--upgraded .mdc-floating-label--float-above{max-width:133.3333333333%}.mdc-text-field--outlined.mdc-notched-outline--upgraded .mdc-floating-label--float-above,.mdc-text-field--outlined .mdc-notched-outline--upgraded .mdc-floating-label--float-above{transform:translateY(-34.75px) scale(0.75)}.mdc-text-field--outlined.mdc-notched-outline--upgraded .mdc-floating-label--float-above,.mdc-text-field--outlined .mdc-notched-outline--upgraded .mdc-floating-label--float-above{font-size:1rem}.mdc-floating-label--required:not(.mdc-floating-label--hide-required-marker)::after{margin-left:1px;margin-right:0;content:"*"}[dir=rtl] .mdc-floating-label--required:not(.mdc-floating-label--hide-required-marker)::after{margin-left:0;margin-right:1px}.mdc-notched-outline{display:flex;position:absolute;top:0;right:0;left:0;box-sizing:border-box;width:100%;max-width:100%;height:100%;text-align:left;pointer-events:none}[dir=rtl] .mdc-notched-outline{text-align:right}.mdc-text-field--outlined .mdc-notched-outline{z-index:1}.mat-mdc-notch-piece{box-sizing:border-box;height:100%;pointer-events:none;border-top:1px solid;border-bottom:1px solid}.mdc-text-field--focused .mat-mdc-notch-piece{border-width:2px}.mdc-text-field--outlined:not(.mdc-text-field--disabled) .mat-mdc-notch-piece{border-color:var(--mat-form-field-outlined-outline-color, var(--mat-sys-outline));border-width:var(--mat-form-field-outlined-outline-width, 1px)}.mdc-text-field--outlined:not(.mdc-text-field--disabled):not(.mdc-text-field--focused):hover .mat-mdc-notch-piece{border-color:var(--mat-form-field-outlined-hover-outline-color, var(--mat-sys-on-surface))}.mdc-text-field--outlined:not(.mdc-text-field--disabled).mdc-text-field--focused .mat-mdc-notch-piece{border-color:var(--mat-form-field-outlined-focus-outline-color, var(--mat-sys-primary))}.mdc-text-field--outlined.mdc-text-field--disabled .mat-mdc-notch-piece{border-color:var(--mat-form-field-outlined-disabled-outline-color, color-mix(in srgb, var(--mat-sys-on-surface) 12%, transparent))}.mdc-text-field--outlined:not(.mdc-text-field--disabled).mdc-text-field--invalid .mat-mdc-notch-piece{border-color:var(--mat-form-field-outlined-error-outline-color, var(--mat-sys-error))}.mdc-text-field--outlined:not(.mdc-text-field--disabled).mdc-text-field--invalid:not(.mdc-text-field--focused):hover .mdc-notched-outline .mat-mdc-notch-piece{border-color:var(--mat-form-field-outlined-error-hover-outline-color, var(--mat-sys-on-error-container))}.mdc-text-field--outlined:not(.mdc-text-field--disabled).mdc-text-field--invalid.mdc-text-field--focused .mat-mdc-notch-piece{border-color:var(--mat-form-field-outlined-error-focus-outline-color, var(--mat-sys-error))}.mdc-text-field--outlined:not(.mdc-text-field--disabled).mdc-text-field--focused .mdc-notched-outline .mat-mdc-notch-piece{border-width:var(--mat-form-field-outlined-focus-outline-width, 2px)}.mdc-notched-outline__leading{border-left:1px solid;border-right:none;border-top-right-radius:0;border-bottom-right-radius:0;border-top-left-radius:var(--mat-form-field-outlined-container-shape, var(--mat-sys-corner-extra-small));border-bottom-left-radius:var(--mat-form-field-outlined-container-shape, var(--mat-sys-corner-extra-small))}.mdc-text-field--outlined .mdc-notched-outline .mdc-notched-outline__leading{width:max(12px,var(--mat-form-field-outlined-container-shape, var(--mat-sys-corner-extra-small)))}[dir=rtl] .mdc-notched-outline__leading{border-left:none;border-right:1px solid;border-bottom-left-radius:0;border-top-left-radius:0;border-top-right-radius:var(--mat-form-field-outlined-container-shape, var(--mat-sys-corner-extra-small));border-bottom-right-radius:var(--mat-form-field-outlined-container-shape, var(--mat-sys-corner-extra-small))}.mdc-notched-outline__trailing{flex-grow:1;border-left:none;border-right:1px solid;border-top-left-radius:0;border-bottom-left-radius:0;border-top-right-radius:var(--mat-form-field-outlined-container-shape, var(--mat-sys-corner-extra-small));border-bottom-right-radius:var(--mat-form-field-outlined-container-shape, var(--mat-sys-corner-extra-small))}[dir=rtl] .mdc-notched-outline__trailing{border-left:1px solid;border-right:none;border-top-right-radius:0;border-bottom-right-radius:0;border-top-left-radius:var(--mat-form-field-outlined-container-shape, var(--mat-sys-corner-extra-small));border-bottom-left-radius:var(--mat-form-field-outlined-container-shape, var(--mat-sys-corner-extra-small))}.mdc-notched-outline__notch{flex:0 0 auto;width:auto}.mdc-text-field--outlined .mdc-notched-outline .mdc-notched-outline__notch{max-width:min(var(--mat-form-field-notch-max-width, 100%),calc(100% - max(12px, var(--mat-form-field-outlined-container-shape, var(--mat-sys-corner-extra-small))) * 2))}.mdc-text-field--outlined .mdc-notched-outline--notched .mdc-notched-outline__notch{max-width:min(100%,calc(100% - max(12px, var(--mat-form-field-outlined-container-shape, var(--mat-sys-corner-extra-small))) * 2))}.mdc-text-field--outlined .mdc-notched-outline--notched .mdc-notched-outline__notch{padding-top:1px}.mdc-text-field--focused.mdc-text-field--outlined .mdc-notched-outline--notched .mdc-notched-outline__notch{padding-top:2px}.mdc-notched-outline--notched .mdc-notched-outline__notch{padding-left:0;padding-right:8px;border-top:none}[dir=rtl] .mdc-notched-outline--notched .mdc-notched-outline__notch{padding-left:8px;padding-right:0}.mdc-notched-outline--no-label .mdc-notched-outline__notch{display:none}.mdc-line-ripple::before,.mdc-line-ripple::after{position:absolute;bottom:0;left:0;width:100%;border-bottom-style:solid;content:""}.mdc-line-ripple::before{z-index:1;border-bottom-width:var(--mat-form-field-filled-active-indicator-height, 1px)}.mdc-text-field--filled:not(.mdc-text-field--disabled) .mdc-line-ripple::before{border-bottom-color:var(--mat-form-field-filled-active-indicator-color, var(--mat-sys-on-surface-variant))}.mdc-text-field--filled:not(.mdc-text-field--disabled):not(.mdc-text-field--focused):hover .mdc-line-ripple::before{border-bottom-color:var(--mat-form-field-filled-hover-active-indicator-color, var(--mat-sys-on-surface))}.mdc-text-field--filled.mdc-text-field--disabled .mdc-line-ripple::before{border-bottom-color:var(--mat-form-field-filled-disabled-active-indicator-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent))}.mdc-text-field--filled:not(.mdc-text-field--disabled).mdc-text-field--invalid .mdc-line-ripple::before{border-bottom-color:var(--mat-form-field-filled-error-active-indicator-color, var(--mat-sys-error))}.mdc-text-field--filled:not(.mdc-text-field--disabled).mdc-text-field--invalid:not(.mdc-text-field--focused):hover .mdc-line-ripple::before{border-bottom-color:var(--mat-form-field-filled-error-hover-active-indicator-color, var(--mat-sys-on-error-container))}.mdc-line-ripple::after{transform:scaleX(0);opacity:0;z-index:2}.mdc-text-field--filled .mdc-line-ripple::after{border-bottom-width:var(--mat-form-field-filled-focus-active-indicator-height, 2px)}.mdc-text-field--filled:not(.mdc-text-field--disabled) .mdc-line-ripple::after{border-bottom-color:var(--mat-form-field-filled-focus-active-indicator-color, var(--mat-sys-primary))}.mdc-text-field--filled.mdc-text-field--invalid:not(.mdc-text-field--disabled) .mdc-line-ripple::after{border-bottom-color:var(--mat-form-field-filled-error-focus-active-indicator-color, var(--mat-sys-error))}.mdc-line-ripple--active::after{transform:scaleX(1);opacity:1}.mdc-line-ripple--deactivating::after{opacity:0}.mdc-text-field--disabled{pointer-events:none}.mat-mdc-form-field-textarea-control{vertical-align:middle;resize:vertical;box-sizing:border-box;height:auto;margin:0;padding:0;border:none;overflow:auto}.mat-mdc-form-field-input-control.mat-mdc-form-field-input-control{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;font:inherit;letter-spacing:inherit;text-decoration:inherit;text-transform:inherit;border:none}.mat-mdc-form-field .mat-mdc-floating-label.mdc-floating-label{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;line-height:normal;pointer-events:all;will-change:auto}.mat-mdc-form-field:not(.mat-form-field-disabled) .mat-mdc-floating-label.mdc-floating-label{cursor:inherit}.mdc-text-field--no-label:not(.mdc-text-field--textarea) .mat-mdc-form-field-input-control.mdc-text-field__input,.mat-mdc-text-field-wrapper .mat-mdc-form-field-input-control{height:auto}.mat-mdc-text-field-wrapper .mat-mdc-form-field-input-control.mdc-text-field__input[type=color]{height:23px}.mat-mdc-text-field-wrapper{height:auto;flex:auto;will-change:auto}.mat-mdc-form-field-has-icon-prefix .mat-mdc-text-field-wrapper{padding-left:0;--mat-mdc-form-field-label-offset-x: -16px}.mat-mdc-form-field-has-icon-suffix .mat-mdc-text-field-wrapper{padding-right:0}[dir=rtl] .mat-mdc-text-field-wrapper{padding-left:16px;padding-right:16px}[dir=rtl] .mat-mdc-form-field-has-icon-suffix .mat-mdc-text-field-wrapper{padding-left:0}[dir=rtl] .mat-mdc-form-field-has-icon-prefix .mat-mdc-text-field-wrapper{padding-right:0}.mat-form-field-disabled .mdc-text-field__input::placeholder{color:var(--mat-form-field-disabled-input-text-placeholder-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent))}.mat-form-field-disabled .mdc-text-field__input::-moz-placeholder{color:var(--mat-form-field-disabled-input-text-placeholder-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent))}.mat-form-field-disabled .mdc-text-field__input::-webkit-input-placeholder{color:var(--mat-form-field-disabled-input-text-placeholder-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent))}.mat-form-field-disabled .mdc-text-field__input:-ms-input-placeholder{color:var(--mat-form-field-disabled-input-text-placeholder-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent))}.mat-mdc-form-field-label-always-float .mdc-text-field__input::placeholder{transition-delay:40ms;transition-duration:110ms;opacity:1}.mat-mdc-text-field-wrapper .mat-mdc-form-field-infix .mat-mdc-floating-label{left:auto;right:auto}.mat-mdc-text-field-wrapper.mdc-text-field--outlined .mdc-text-field__input{display:inline-block}.mat-mdc-form-field .mat-mdc-text-field-wrapper.mdc-text-field .mdc-notched-outline__notch{padding-top:0}.mat-mdc-form-field.mat-mdc-form-field.mat-mdc-form-field.mat-mdc-form-field.mat-mdc-form-field.mat-mdc-form-field .mdc-notched-outline__notch{border-left:1px solid rgba(0,0,0,0)}[dir=rtl] .mat-mdc-form-field.mat-mdc-form-field.mat-mdc-form-field.mat-mdc-form-field.mat-mdc-form-field.mat-mdc-form-field .mdc-notched-outline__notch{border-left:none;border-right:1px solid rgba(0,0,0,0)}.mat-mdc-form-field-infix{min-height:var(--mat-form-field-container-height, 56px);padding-top:var(--mat-form-field-filled-with-label-container-padding-top, 24px);padding-bottom:var(--mat-form-field-filled-with-label-container-padding-bottom, 8px)}.mdc-text-field--outlined .mat-mdc-form-field-infix,.mdc-text-field--no-label .mat-mdc-form-field-infix{padding-top:var(--mat-form-field-container-vertical-padding, 16px);padding-bottom:var(--mat-form-field-container-vertical-padding, 16px)}.mat-mdc-text-field-wrapper .mat-mdc-form-field-flex .mat-mdc-floating-label{top:calc(var(--mat-form-field-container-height, 56px)/2)}.mdc-text-field--filled .mat-mdc-floating-label{display:var(--mat-form-field-filled-label-display, block)}.mat-mdc-text-field-wrapper.mdc-text-field--outlined .mdc-notched-outline--upgraded .mdc-floating-label--float-above{--mat-mdc-form-field-label-transform: translateY(calc(calc(6.75px + var(--mat-form-field-container-height, 56px) / 2) * -1)) scale(var(--mat-mdc-form-field-floating-label-scale, 0.75));transform:var(--mat-mdc-form-field-label-transform)}@keyframes _mat-form-field-subscript-animation{from{opacity:0;transform:translateY(-5px)}to{opacity:1;transform:translateY(0)}}.mat-mdc-form-field-subscript-wrapper{box-sizing:border-box;width:100%;position:relative}.mat-mdc-form-field-hint-wrapper,.mat-mdc-form-field-error-wrapper{position:absolute;top:0;left:0;right:0;padding:0 16px;opacity:1;transform:translateY(0);animation:_mat-form-field-subscript-animation 0ms cubic-bezier(0.55, 0, 0.55, 0.2)}.mat-mdc-form-field-subscript-dynamic-size .mat-mdc-form-field-hint-wrapper,.mat-mdc-form-field-subscript-dynamic-size .mat-mdc-form-field-error-wrapper{position:static}.mat-mdc-form-field-bottom-align::before{content:"";display:inline-block;height:16px}.mat-mdc-form-field-bottom-align.mat-mdc-form-field-subscript-dynamic-size::before{content:unset}.mat-mdc-form-field-hint-end{order:1}.mat-mdc-form-field-hint-wrapper{display:flex}.mat-mdc-form-field-hint-spacer{flex:1 0 1em}.mat-mdc-form-field-error{display:block;color:var(--mat-form-field-error-text-color, var(--mat-sys-error))}.mat-mdc-form-field-subscript-wrapper,.mat-mdc-form-field-bottom-align::before{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;font-family:var(--mat-form-field-subscript-text-font, var(--mat-sys-body-small-font));line-height:var(--mat-form-field-subscript-text-line-height, var(--mat-sys-body-small-line-height));font-size:var(--mat-form-field-subscript-text-size, var(--mat-sys-body-small-size));letter-spacing:var(--mat-form-field-subscript-text-tracking, var(--mat-sys-body-small-tracking));font-weight:var(--mat-form-field-subscript-text-weight, var(--mat-sys-body-small-weight))}.mat-mdc-form-field-focus-overlay{top:0;left:0;right:0;bottom:0;position:absolute;opacity:0;pointer-events:none;background-color:var(--mat-form-field-state-layer-color, var(--mat-sys-on-surface))}.mat-mdc-text-field-wrapper:hover .mat-mdc-form-field-focus-overlay{opacity:var(--mat-form-field-hover-state-layer-opacity, var(--mat-sys-hover-state-layer-opacity))}.mat-mdc-form-field.mat-focused .mat-mdc-form-field-focus-overlay{opacity:var(--mat-form-field-focus-state-layer-opacity, 0)}select.mat-mdc-form-field-input-control{-moz-appearance:none;-webkit-appearance:none;background-color:rgba(0,0,0,0);display:inline-flex;box-sizing:border-box}select.mat-mdc-form-field-input-control:not(:disabled){cursor:pointer}select.mat-mdc-form-field-input-control:not(.mat-mdc-native-select-inline) option{color:var(--mat-form-field-select-option-text-color, var(--mat-sys-neutral10))}select.mat-mdc-form-field-input-control:not(.mat-mdc-native-select-inline) option:disabled{color:var(--mat-form-field-select-disabled-option-text-color, color-mix(in srgb, var(--mat-sys-neutral10) 38%, transparent))}.mat-mdc-form-field-type-mat-native-select .mat-mdc-form-field-infix::after{content:"";width:0;height:0;border-left:5px solid rgba(0,0,0,0);border-right:5px solid rgba(0,0,0,0);border-top:5px solid;position:absolute;right:0;top:50%;margin-top:-2.5px;pointer-events:none;color:var(--mat-form-field-enabled-select-arrow-color, var(--mat-sys-on-surface-variant))}[dir=rtl] .mat-mdc-form-field-type-mat-native-select .mat-mdc-form-field-infix::after{right:auto;left:0}.mat-mdc-form-field-type-mat-native-select.mat-focused .mat-mdc-form-field-infix::after{color:var(--mat-form-field-focus-select-arrow-color, var(--mat-sys-primary))}.mat-mdc-form-field-type-mat-native-select.mat-form-field-disabled .mat-mdc-form-field-infix::after{color:var(--mat-form-field-disabled-select-arrow-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent))}.mat-mdc-form-field-type-mat-native-select .mat-mdc-form-field-input-control{padding-right:15px}[dir=rtl] .mat-mdc-form-field-type-mat-native-select .mat-mdc-form-field-input-control{padding-right:0;padding-left:15px}@media(forced-colors: active){.mat-form-field-appearance-fill .mat-mdc-text-field-wrapper{outline:solid 1px}}@media(forced-colors: active){.mat-form-field-appearance-fill.mat-form-field-disabled .mat-mdc-text-field-wrapper{outline-color:GrayText}}@media(forced-colors: active){.mat-form-field-appearance-fill.mat-focused .mat-mdc-text-field-wrapper{outline:dashed 3px}}@media(forced-colors: active){.mat-mdc-form-field.mat-focused .mdc-notched-outline{border:dashed 3px}}.mat-mdc-form-field-input-control[type=date],.mat-mdc-form-field-input-control[type=datetime],.mat-mdc-form-field-input-control[type=datetime-local],.mat-mdc-form-field-input-control[type=month],.mat-mdc-form-field-input-control[type=week],.mat-mdc-form-field-input-control[type=time]{line-height:1}.mat-mdc-form-field-input-control::-webkit-datetime-edit{line-height:1;padding:0;margin-bottom:-2px}.mat-mdc-form-field{--mat-mdc-form-field-floating-label-scale: 0.75;display:inline-flex;flex-direction:column;min-width:0;text-align:left;-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;font-family:var(--mat-form-field-container-text-font, var(--mat-sys-body-large-font));line-height:var(--mat-form-field-container-text-line-height, var(--mat-sys-body-large-line-height));font-size:var(--mat-form-field-container-text-size, var(--mat-sys-body-large-size));letter-spacing:var(--mat-form-field-container-text-tracking, var(--mat-sys-body-large-tracking));font-weight:var(--mat-form-field-container-text-weight, var(--mat-sys-body-large-weight))}.mat-mdc-form-field .mdc-text-field--outlined .mdc-floating-label--float-above{font-size:calc(var(--mat-form-field-outlined-label-text-populated-size)*var(--mat-mdc-form-field-floating-label-scale))}.mat-mdc-form-field .mdc-text-field--outlined .mdc-notched-outline--upgraded .mdc-floating-label--float-above{font-size:var(--mat-form-field-outlined-label-text-populated-size)}[dir=rtl] .mat-mdc-form-field{text-align:right}.mat-mdc-form-field-flex{display:inline-flex;align-items:baseline;box-sizing:border-box;width:100%}.mat-mdc-text-field-wrapper{width:100%;z-index:0}.mat-mdc-form-field-icon-prefix,.mat-mdc-form-field-icon-suffix{align-self:center;line-height:0;pointer-events:auto;position:relative;z-index:1}.mat-mdc-form-field-icon-prefix>.mat-icon,.mat-mdc-form-field-icon-suffix>.mat-icon{padding:0 12px;box-sizing:content-box}.mat-mdc-form-field-icon-prefix{color:var(--mat-form-field-leading-icon-color, var(--mat-sys-on-surface-variant))}.mat-form-field-disabled .mat-mdc-form-field-icon-prefix{color:var(--mat-form-field-disabled-leading-icon-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent))}.mat-mdc-form-field-icon-suffix{color:var(--mat-form-field-trailing-icon-color, var(--mat-sys-on-surface-variant))}.mat-form-field-disabled .mat-mdc-form-field-icon-suffix{color:var(--mat-form-field-disabled-trailing-icon-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent))}.mat-form-field-invalid .mat-mdc-form-field-icon-suffix{color:var(--mat-form-field-error-trailing-icon-color, var(--mat-sys-error))}.mat-form-field-invalid:not(.mat-focused):not(.mat-form-field-disabled) .mat-mdc-text-field-wrapper:hover .mat-mdc-form-field-icon-suffix{color:var(--mat-form-field-error-hover-trailing-icon-color, var(--mat-sys-on-error-container))}.mat-form-field-invalid.mat-focused .mat-mdc-text-field-wrapper .mat-mdc-form-field-icon-suffix{color:var(--mat-form-field-error-focus-trailing-icon-color, var(--mat-sys-error))}.mat-mdc-form-field-icon-prefix,[dir=rtl] .mat-mdc-form-field-icon-suffix{padding:0 4px 0 0}.mat-mdc-form-field-icon-suffix,[dir=rtl] .mat-mdc-form-field-icon-prefix{padding:0 0 0 4px}.mat-mdc-form-field-subscript-wrapper .mat-icon,.mat-mdc-form-field label .mat-icon{width:1em;height:1em;font-size:inherit}.mat-mdc-form-field-infix{flex:auto;min-width:0;width:180px;position:relative;box-sizing:border-box}.mat-mdc-form-field-infix:has(textarea[cols]){width:auto}.mat-mdc-form-field .mdc-notched-outline__notch{margin-left:-1px;-webkit-clip-path:inset(-9em -999em -9em 1px);clip-path:inset(-9em -999em -9em 1px)}[dir=rtl] .mat-mdc-form-field .mdc-notched-outline__notch{margin-left:0;margin-right:-1px;-webkit-clip-path:inset(-9em 1px -9em -999em);clip-path:inset(-9em 1px -9em -999em)}.mat-mdc-form-field.mat-form-field-animations-enabled .mdc-floating-label{transition:transform 150ms cubic-bezier(0.4, 0, 0.2, 1),color 150ms cubic-bezier(0.4, 0, 0.2, 1)}.mat-mdc-form-field.mat-form-field-animations-enabled .mdc-text-field__input{transition:opacity 150ms cubic-bezier(0.4, 0, 0.2, 1)}.mat-mdc-form-field.mat-form-field-animations-enabled .mdc-text-field__input::placeholder{transition:opacity 67ms cubic-bezier(0.4, 0, 0.2, 1)}.mat-mdc-form-field.mat-form-field-animations-enabled .mdc-text-field__input::-moz-placeholder{transition:opacity 67ms cubic-bezier(0.4, 0, 0.2, 1)}.mat-mdc-form-field.mat-form-field-animations-enabled .mdc-text-field__input::-webkit-input-placeholder{transition:opacity 67ms cubic-bezier(0.4, 0, 0.2, 1)}.mat-mdc-form-field.mat-form-field-animations-enabled .mdc-text-field__input:-ms-input-placeholder{transition:opacity 67ms cubic-bezier(0.4, 0, 0.2, 1)}.mat-mdc-form-field.mat-form-field-animations-enabled.mdc-text-field--no-label .mdc-text-field__input::placeholder,.mat-mdc-form-field.mat-form-field-animations-enabled.mdc-text-field--focused .mdc-text-field__input::placeholder{transition-delay:40ms;transition-duration:110ms}.mat-mdc-form-field.mat-form-field-animations-enabled.mdc-text-field--no-label .mdc-text-field__input::-moz-placeholder,.mat-mdc-form-field.mat-form-field-animations-enabled.mdc-text-field--focused .mdc-text-field__input::-moz-placeholder{transition-delay:40ms;transition-duration:110ms}.mat-mdc-form-field.mat-form-field-animations-enabled.mdc-text-field--no-label .mdc-text-field__input::-webkit-input-placeholder,.mat-mdc-form-field.mat-form-field-animations-enabled.mdc-text-field--focused .mdc-text-field__input::-webkit-input-placeholder{transition-delay:40ms;transition-duration:110ms}.mat-mdc-form-field.mat-form-field-animations-enabled.mdc-text-field--no-label .mdc-text-field__input:-ms-input-placeholder,.mat-mdc-form-field.mat-form-field-animations-enabled.mdc-text-field--focused .mdc-text-field__input:-ms-input-placeholder{transition-delay:40ms;transition-duration:110ms}.mat-mdc-form-field.mat-form-field-animations-enabled .mdc-text-field--filled:not(.mdc-ripple-upgraded):focus .mdc-text-field__ripple::before{transition-duration:75ms}.mat-mdc-form-field.mat-form-field-animations-enabled .mdc-line-ripple::after{transition:transform 180ms cubic-bezier(0.4, 0, 0.2, 1),opacity 180ms cubic-bezier(0.4, 0, 0.2, 1)}.mat-mdc-form-field.mat-form-field-animations-enabled .mat-mdc-form-field-hint-wrapper,.mat-mdc-form-field.mat-form-field-animations-enabled .mat-mdc-form-field-error-wrapper{animation-duration:300ms}.mdc-notched-outline .mdc-floating-label{max-width:calc(100% + 1px)}.mdc-notched-outline--upgraded .mdc-floating-label--float-above{max-width:calc(133.3333333333% + 1px)} +`],encapsulation:2,changeDetection:0})}return t})();var ag=class{};function sg(t){return t&&typeof t.connect=="function"&&!(t instanceof Rl)}var uc=(function(t){return t[t.REPLACED=0]="REPLACED",t[t.INSERTED=1]="INSERTED",t[t.MOVED=2]="MOVED",t[t.REMOVED=3]="REMOVED",t})(uc||{}),xh=new O("_ViewRepeater");var AJ=20,Ds=(()=>{class t{_ngZone=u(ae);_platform=u(qe);_renderer=u(mn).createRenderer(null,null);_cleanupGlobalListener;constructor(){}_scrolled=new z;_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 i=this.scrollContainers.get(e);i&&(i.unsubscribe(),this.scrollContainers.delete(e))}scrolled(e=AJ){return this._platform.isBrowser?new Fe(i=>{this._cleanupGlobalListener||(this._cleanupGlobalListener=this._ngZone.runOutsideAngular(()=>this._renderer.listen("document","scroll",()=>this._scrolled.next())));let r=e>0?this._scrolled.pipe(Nl(e)).subscribe(i):this._scrolled.subscribe(i);return this._scrolledCount++,()=>{r.unsubscribe(),this._scrolledCount--,this._scrolledCount||(this._cleanupGlobalListener?.(),this._cleanupGlobalListener=void 0)}}):Q()}ngOnDestroy(){this._cleanupGlobalListener?.(),this._cleanupGlobalListener=void 0,this.scrollContainers.forEach((e,i)=>this.deregister(i)),this._scrolled.complete()}ancestorScrolled(e,i){let r=this.getAncestorScrollContainers(e);return this.scrolled(i).pipe(ce(o=>!o||r.indexOf(o)>-1))}getAncestorScrollContainers(e){let i=[];return this.scrollContainers.forEach((r,o)=>{this._scrollableContainsElement(o,e)&&i.push(o)}),i}_scrollableContainsElement(e,i){let r=jr(i),o=e.getElementRef().nativeElement;do if(r==o)return!0;while(r=r.parentElement);return!1}static \u0275fac=function(i){return new(i||t)};static \u0275prov=R({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),Fa=(()=>{class t{elementRef=u(Y);scrollDispatcher=u(Ds);ngZone=u(ae);dir=u(Bt,{optional:!0});_scrollElement=this.elementRef.nativeElement;_destroyed=new z;_renderer=u(ze);_cleanupScroll;_elementScrolled=new z;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 i=this.elementRef.nativeElement,r=this.dir&&this.dir.value=="rtl";e.left==null&&(e.left=r?e.end:e.start),e.right==null&&(e.right=r?e.start:e.end),e.bottom!=null&&(e.top=i.scrollHeight-i.clientHeight-e.bottom),r&&oh()!=Oa.NORMAL?(e.left!=null&&(e.right=i.scrollWidth-i.clientWidth-e.left),oh()==Oa.INVERTED?e.left=e.right:oh()==Oa.NEGATED&&(e.left=e.right?-e.right:e.right)):e.right!=null&&(e.left=i.scrollWidth-i.clientWidth-e.right),this._applyScrollToOptions(e)}_applyScrollToOptions(e){let i=this.elementRef.nativeElement;Kv()?i.scrollTo(e):(e.top!=null&&(i.scrollTop=e.top),e.left!=null&&(i.scrollLeft=e.left))}measureScrollOffset(e){let i="left",r="right",o=this.elementRef.nativeElement;if(e=="top")return o.scrollTop;if(e=="bottom")return o.scrollHeight-o.clientHeight-o.scrollTop;let a=this.dir&&this.dir.value=="rtl";return e=="start"?e=a?r:i:e=="end"&&(e=a?i:r),a&&oh()==Oa.INVERTED?e==i?o.scrollWidth-o.clientWidth-o.scrollLeft:o.scrollLeft:a&&oh()==Oa.NEGATED?e==i?o.scrollLeft+o.scrollWidth-o.clientWidth:-o.scrollLeft:e==i?o.scrollLeft:o.scrollWidth-o.clientWidth-o.scrollLeft}static \u0275fac=function(i){return new(i||t)};static \u0275dir=P({type:t,selectors:[["","cdk-scrollable",""],["","cdkScrollable",""]]})}return t})(),OJ=20,tr=(()=>{class t{_platform=u(qe);_listeners;_viewportSize;_change=new z;_document=u(_e);constructor(){let e=u(ae),i=u(mn).createRenderer(null,null);e.runOutsideAngular(()=>{if(this._platform.isBrowser){let r=o=>this._change.next(o);this._listeners=[i.listen("window","resize",r),i.listen("window","orientationchange",r)]}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:i,height:r}=this.getViewportSize();return{top:e.top,left:e.left,bottom:e.top+r,right:e.left+i,height:r,width:i}}getViewportScrollPosition(){if(!this._platform.isBrowser)return{top:0,left:0};let e=this._document,i=this._getWindow(),r=e.documentElement,o=r.getBoundingClientRect(),a=-o.top||e.body.scrollTop||i.scrollY||r.scrollTop||0,s=-o.left||e.body.scrollLeft||i.scrollX||r.scrollLeft||0;return{top:a,left:s}}change(e=OJ){return e>0?this._change.pipe(Nl(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(i){return new(i||t)};static \u0275prov=R({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();var Cr=(()=>{class t{static \u0275fac=function(i){return new(i||t)};static \u0275mod=ee({type:t});static \u0275inj=J({})}return t})(),lg=(()=>{class t{static \u0275fac=function(i){return new(i||t)};static \u0275mod=ee({type:t});static \u0275inj=J({imports:[ys,Cr,ys,Cr]})}return t})();var cg=class{_attachedHost;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}},to=class extends cg{component;viewContainerRef;injector;projectableNodes;constructor(n,e,i,r){super(),this.component=n,this.viewContainerRef=e,this.injector=i,this.projectableNodes=r}},Dn=class extends cg{templateRef;viewContainerRef;context;injector;constructor(n,e,i,r){super(),this.templateRef=n,this.viewContainerRef=e,this.context=i,this.injector=r}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()}},QS=class extends cg{element;constructor(n){super(),this.element=n instanceof Y?n.nativeElement:n}},mc=class{_attachedPortal;_disposeFn;_isDisposed=!1;hasAttached(){return!!this._attachedPortal}attach(n){if(n instanceof to)return this._attachedPortal=n,this.attachComponentPortal(n);if(n instanceof Dn)return this._attachedPortal=n,this.attachTemplatePortal(n);if(this.attachDomPortal&&n instanceof QS)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)}},dg=class extends mc{outletElement;_appRef;_defaultInjector;constructor(n,e,i){super(),this.outletElement=n,this._appRef=e,this._defaultInjector=i}attachComponentPortal(n){let e;if(n.viewContainerRef){let i=n.injector||n.viewContainerRef.injector,r=i.get(ss,null,{optional:!0})||void 0;e=n.viewContainerRef.createComponent(n.component,{index:n.viewContainerRef.length,injector:i,ngModuleRef:r,projectableNodes:n.projectableNodes||void 0}),this.setDisposeFn(()=>e.destroy())}else{let i=this._appRef,r=n.injector||this._defaultInjector||de.NULL,o=r.get(Kt,i.injector);e=Am(n.component,{elementInjector:r,environmentInjector:o,projectableNodes:n.projectableNodes||void 0}),i.attachView(e.hostView),this.setDisposeFn(()=>{i.viewCount>0&&i.detachView(e.hostView),e.destroy()})}return this.outletElement.appendChild(this._getComponentRootNode(e)),this._attachedPortal=n,e}attachTemplatePortal(n){let e=n.viewContainerRef,i=e.createEmbeddedView(n.templateRef,n.context,{injector:n.injector});return i.rootNodes.forEach(r=>this.outletElement.appendChild(r)),i.detectChanges(),this.setDisposeFn(()=>{let r=e.indexOf(i);r!==-1&&e.remove(r)}),this._attachedPortal=n,i}attachDomPortal=n=>{let e=n.element;e.parentNode;let i=this.outletElement.ownerDocument.createComment("dom-portal");e.parentNode.insertBefore(i,e),this.outletElement.appendChild(e),this._attachedPortal=n,super.setDisposeFn(()=>{i.parentNode&&i.parentNode.replaceChild(e,i)})};dispose(){super.dispose(),this.outletElement.remove()}_getComponentRootNode(n){return n.hostView.rootNodes[0]}},rB=(()=>{class t extends Dn{constructor(){let e=u(te),i=u(ot);super(e,i)}static \u0275fac=function(i){return new(i||t)};static \u0275dir=P({type:t,selectors:[["","cdkPortal",""]],exportAs:["cdkPortal"],features:[le]})}return t})();var wr=(()=>{class t extends mc{_moduleRef=u(ss,{optional:!0});_document=u(_e);_viewContainerRef=u(ot);_isInitialized=!1;_attachedRef;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 U;get attachedRef(){return this._attachedRef}ngOnInit(){this._isInitialized=!0}ngOnDestroy(){super.dispose(),this._attachedRef=this._attachedPortal=null}attachComponentPortal(e){e.setAttachedHost(this);let i=e.viewContainerRef!=null?e.viewContainerRef:this._viewContainerRef,r=i.createComponent(e.component,{index:i.length,injector:e.injector||i.injector,projectableNodes:e.projectableNodes||void 0,ngModuleRef:this._moduleRef||void 0});return i!==this._viewContainerRef&&this._getRootNode().appendChild(r.hostView.rootNodes[0]),super.setDisposeFn(()=>r.destroy()),this._attachedPortal=e,this._attachedRef=r,this.attached.emit(r),r}attachTemplatePortal(e){e.setAttachedHost(this);let i=this._viewContainerRef.createEmbeddedView(e.templateRef,e.context,{injector:e.injector});return super.setDisposeFn(()=>this._viewContainerRef.clear()),this._attachedPortal=e,this._attachedRef=i,this.attached.emit(i),i}attachDomPortal=e=>{let i=e.element;i.parentNode;let r=this._document.createComment("dom-portal");e.setAttachedHost(this),i.parentNode.insertBefore(r,i),this._getRootNode().appendChild(i),this._attachedPortal=e,super.setDisposeFn(()=>{r.parentNode&&r.parentNode.replaceChild(i,r)})};_getRootNode(){let e=this._viewContainerRef.element.nativeElement;return e.nodeType===e.ELEMENT_NODE?e:e.parentNode}static \u0275fac=function(i){return new(i||t)};static \u0275dir=P({type:t,selectors:[["","cdkPortalOutlet",""]],inputs:{portal:[0,"cdkPortalOutlet","portal"]},outputs:{attached:"attached"},exportAs:["cdkPortalOutlet"],features:[le]})}return t})();var ko=(()=>{class t{static \u0275fac=function(i){return new(i||t)};static \u0275mod=ee({type:t});static \u0275inj=J({})}return t})();var oB=Kv();function hc(t){return new Jy(t.get(tr),t.get(_e))}var Jy=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=cn(-this._previousScrollPosition.left),n.style.top=cn(-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,i=n.style,r=e.style,o=i.scrollBehavior||"",a=r.scrollBehavior||"";this._isEnabled=!1,i.left=this._previousHTMLStyles.left,i.top=this._previousHTMLStyles.top,n.classList.remove("cdk-global-scrollblock"),oB&&(i.scrollBehavior=r.scrollBehavior="auto"),window.scroll(this._previousScrollPosition.left,this._previousScrollPosition.top),oB&&(i.scrollBehavior=o,r.scrollBehavior=a)}}_canBeEnabled(){if(this._document.documentElement.classList.contains("cdk-global-scrollblock")||this._isEnabled)return!1;let e=this._document.documentElement,i=this._viewportRuler.getViewportSize();return e.scrollHeight>i.height||e.scrollWidth>i.width}};function mB(t,n){return new ex(t.get(Ds),t.get(ae),t.get(tr),n)}var ex=class{_scrollDispatcher;_ngZone;_viewportRuler;_config;_scrollSubscription=null;_overlayRef;_initialScrollPosition;constructor(n,e,i,r){this._scrollDispatcher=n,this._ngZone=e,this._viewportRuler=i,this._config=r}attach(n){this._overlayRef,this._overlayRef=n}enable(){if(this._scrollSubscription)return;let n=this._scrollDispatcher.scrolled(0).pipe(ce(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 ug=class{enable(){}disable(){}attach(){}};function KS(t,n){return n.some(e=>{let i=t.bottome.bottom,o=t.righte.right;return i||r||o||a})}function aB(t,n){return n.some(e=>{let i=t.tope.bottom,o=t.lefte.right;return i||r||o||a})}function En(t,n){return new tx(t.get(Ds),t.get(tr),t.get(ae),n)}var tx=class{_scrollDispatcher;_viewportRuler;_ngZone;_config;_scrollSubscription=null;_overlayRef;constructor(n,e,i,r){this._scrollDispatcher=n,this._viewportRuler=e,this._ngZone=i,this._config=r}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:i,height:r}=this._viewportRuler.getViewportSize();KS(e,[{width:i,height:r,bottom:r,right:i,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}},hB=(()=>{class t{_injector=u(de);constructor(){}noop=()=>new ug;close=e=>mB(this._injector,e);block=()=>hc(this._injector);reposition=e=>En(this._injector,e);static \u0275fac=function(i){return new(i||t)};static \u0275prov=R({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),Hr=class{positionStrategy;scrollStrategy=new ug;panelClass="";hasBackdrop=!1;backdropClass="cdk-overlay-dark-backdrop";disableAnimations;width;height;minWidth;minHeight;maxWidth;maxHeight;direction;disposeOnNavigation=!1;constructor(n){if(n){let e=Object.keys(n);for(let i of e)n[i]!==void 0&&(this[i]=n[i])}}};var ix=class{connectionPair;scrollableViewProperties;constructor(n,e){this.connectionPair=n,this.scrollableViewProperties=e}};var pB=(()=>{class t{_attachedOverlays=[];_document=u(_e);_isAttached;constructor(){}ngOnDestroy(){this.detach()}add(e){this.remove(e),this._attachedOverlays.push(e)}remove(e){let i=this._attachedOverlays.indexOf(e);i>-1&&this._attachedOverlays.splice(i,1),this._attachedOverlays.length===0&&this.detach()}static \u0275fac=function(i){return new(i||t)};static \u0275prov=R({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),fB=(()=>{class t extends pB{_ngZone=u(ae);_renderer=u(mn).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 i=this._attachedOverlays;for(let r=i.length-1;r>-1;r--)if(i[r]._keydownEvents.observers.length>0){this._ngZone.run(()=>i[r]._keydownEvents.next(e));break}};static \u0275fac=(()=>{let e;return function(r){return(e||(e=ge(t)))(r||t)}})();static \u0275prov=R({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),gB=(()=>{class t extends pB{_platform=u(qe);_ngZone=u(ae);_renderer=u(mn).createRenderer(null,null);_cursorOriginalValue;_cursorStyleIsSet=!1;_pointerDownEventTarget;_cleanups;add(e){if(super.add(e),!this._isAttached){let i=this._document.body,r={capture:!0},o=this._renderer;this._cleanups=this._ngZone.runOutsideAngular(()=>[o.listen(i,"pointerdown",this._pointerDownListener,r),o.listen(i,"click",this._clickListener,r),o.listen(i,"auxclick",this._clickListener,r),o.listen(i,"contextmenu",this._clickListener,r)]),this._platform.IOS&&!this._cursorStyleIsSet&&(this._cursorOriginalValue=i.style.cursor,i.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=Xn(e)};_clickListener=e=>{let i=Xn(e),r=e.type==="click"&&this._pointerDownEventTarget?this._pointerDownEventTarget:i;this._pointerDownEventTarget=null;let o=this._attachedOverlays.slice();for(let a=o.length-1;a>-1;a--){let s=o[a];if(s._outsidePointerEvents.observers.length<1||!s.hasAttached())continue;if(sB(s.overlayElement,i)||sB(s.overlayElement,r))break;let l=s._outsidePointerEvents;this._ngZone?this._ngZone.run(()=>l.next(e)):l.next(e)}};static \u0275fac=(()=>{let e;return function(r){return(e||(e=ge(t)))(r||t)}})();static \u0275prov=R({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();function sB(t,n){let e=typeof ShadowRoot<"u"&&ShadowRoot,i=n;for(;i;){if(i===t)return!0;i=e&&i instanceof ShadowRoot?i.host:i.parentNode}return!1}var _B=(()=>{class t{static \u0275fac=function(i){return new(i||t)};static \u0275cmp=E({type:t,selectors:[["ng-component"]],hostAttrs:["cdk-overlay-style-loader",""],decls:0,vars:0,template:function(i,r){},styles:[`.cdk-overlay-container,.cdk-global-overlay-wrapper{pointer-events:none;top:0;left:0;height:100%;width:100%}.cdk-overlay-container{position:fixed}@layer cdk-overlay{.cdk-overlay-container{z-index:1000}}.cdk-overlay-container:empty{display:none}.cdk-global-overlay-wrapper{display:flex;position:absolute}@layer cdk-overlay{.cdk-global-overlay-wrapper{z-index:1000}}.cdk-overlay-pane{position:absolute;pointer-events:auto;box-sizing:border-box;display:flex;max-width:100%;max-height:100%}@layer cdk-overlay{.cdk-overlay-pane{z-index:1000}}.cdk-overlay-backdrop{position:absolute;top:0;bottom:0;left:0;right:0;pointer-events:auto;-webkit-tap-highlight-color:rgba(0,0,0,0);opacity:0;touch-action:manipulation}@layer cdk-overlay{.cdk-overlay-backdrop{z-index:1000;transition:opacity 400ms cubic-bezier(0.25, 0.8, 0.25, 1)}}@media(prefers-reduced-motion){.cdk-overlay-backdrop{transition-duration:1ms}}.cdk-overlay-backdrop-showing{opacity:1}@media(forced-colors: active){.cdk-overlay-backdrop-showing{opacity:.6}}@layer cdk-overlay{.cdk-overlay-dark-backdrop{background:rgba(0,0,0,.32)}}.cdk-overlay-transparent-backdrop{transition:visibility 1ms linear,opacity 1ms linear;visibility:hidden;opacity:1}.cdk-overlay-transparent-backdrop.cdk-overlay-backdrop-showing,.cdk-high-contrast-active .cdk-overlay-transparent-backdrop{opacity:0;visibility:visible}.cdk-overlay-backdrop-noop-animation{transition:none}.cdk-overlay-connected-position-bounding-box{position:absolute;display:flex;flex-direction:column;min-width:1px;min-height:1px}@layer cdk-overlay{.cdk-overlay-connected-position-bounding-box{z-index:1000}}.cdk-global-scrollblock{position:fixed;width:100%;overflow-y:scroll} +`],encapsulation:2,changeDetection:0})}return t})(),rx=(()=>{class t{_platform=u(qe);_containerElement;_document=u(_e);_styleLoader=u(ht);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||TS()){let r=this._document.querySelectorAll(`.${e}[platform="server"], .${e}[platform="test"]`);for(let o=0;o{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()}},Ch=class{_portalOutlet;_host;_pane;_config;_ngZone;_keyboardDispatcher;_document;_location;_outsideClickDispatcher;_animationsDisabled;_injector;_renderer;_backdropClick=new z;_attachments=new z;_detachments=new z;_positionStrategy;_scrollStrategy;_locationChanges=Te.EMPTY;_backdropRef=null;_detachContentMutationObserver;_detachContentAfterRenderRef;_previousHostParent;_keydownEvents=new z;_outsidePointerEvents=new z;_afterNextRenderRef;constructor(n,e,i,r,o,a,s,l,c,d=!1,p,_){this._portalOutlet=n,this._host=e,this._pane=i,this._config=r,this._ngZone=o,this._keyboardDispatcher=a,this._document=s,this._location=l,this._outsideClickDispatcher=c,this._animationsDisabled=d,this._injector=p,this._renderer=_,r.scrollStrategy&&(this._scrollStrategy=r.scrollStrategy,this._scrollStrategy.attach(this)),this._positionStrategy=r.positionStrategy}get overlayElement(){return this._pane}get backdropElement(){return this._backdropRef?.element||null}get hostElement(){return this._host}attach(n){!this._host.parentElement&&this._previousHostParent&&this._previousHostParent.appendChild(this._host);let e=this._portalOutlet.attach(n);return this._positionStrategy&&this._positionStrategy.attach(this),this._updateStackingOrder(),this._updateElementSize(),this._updateElementDirection(),this._scrollStrategy&&this._scrollStrategy.enable(),this._afterNextRenderRef?.destroy(),this._afterNextRenderRef=gt(()=>{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(){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()}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=k(k({},this._config),n),this._updateElementSize()}setDirection(n){this._config=Ee(k({},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=cn(this._config.width),n.height=cn(this._config.height),n.minWidth=cn(this._config.minWidth),n.minHeight=cn(this._config.minHeight),n.maxWidth=cn(this._config.maxWidth),n.maxHeight=cn(this._config.maxHeight)}_togglePointerEvents(n){this._pane.style.pointerEvents=n?"":"none"}_attachBackdrop(){let n="cdk-overlay-backdrop-showing";this._backdropRef?.dispose(),this._backdropRef=new ZS(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._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._host.nextSibling&&this._host.parentNode.appendChild(this._host)}detachBackdrop(){this._animationsDisabled?(this._backdropRef?.dispose(),this._backdropRef=null):this._backdropRef?.detach()}_toggleClasses(n,e,i){let r=sl(e||[]).filter(o=>!!o);r.length&&(i?n.classList.add(...r):n.classList.remove(...r))}_detachContentWhenEmpty(){let n=!1;try{this._detachContentAfterRenderRef=gt(()=>{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?.()}},lB="cdk-overlay-connected-position-bounding-box",PJ=/([A-Za-z%]+)$/;function Na(t,n){return new wh(n,t.get(tr),t.get(_e),t.get(qe),t.get(rx))}var wh=class{_viewportRuler;_document;_platform;_overlayContainer;_overlayRef;_isInitialRender;_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;_boundingBox;_lastPosition;_lastScrollVisibility;_positionChanges=new z;_resizeSubscription=Te.EMPTY;_offsetX=0;_offsetY=0;_transformOriginSelector;_appliedPanelClasses=[];_previousPushAmount;positionChanges=this._positionChanges;get positions(){return this._preferredPositions}constructor(n,e,i,r,o){this._viewportRuler=e,this._document=i,this._platform=r,this._overlayContainer=o,this.setOrigin(n)}attach(n){this._overlayRef&&this._overlayRef,this._validatePositions(),n.hostElement.classList.add(lB),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._overlayContainer.getContainerElement().getBoundingClientRect();let n=this._originRect,e=this._overlayRect,i=this._viewportRect,r=this._containerRect,o=[],a;for(let s of this._preferredPositions){let l=this._getOriginPoint(n,r,s),c=this._getOverlayPoint(l,e,s),d=this._getOverlayFit(c,e,i,s);if(d.isCompletelyWithinViewport){this._isPushed=!1,this._applyPosition(s,l);return}if(this._canFitWithFlexibleDimensions(d,c,i)){o.push({position:s,origin:l,overlayRect:e,boundingBoxRect:this._calculateBoundingBoxRect(l,s)});continue}(!a||a.overlayFit.visibleAreal&&(l=d,s=c)}this._isPushed=!1,this._applyPosition(s.position,s.origin);return}if(this._canPush){this._isPushed=!0,this._applyPosition(a.position,a.originPoint);return}this._applyPosition(a.position,a.originPoint)}detach(){this._clearPanelClasses(),this._lastPosition=null,this._previousPushAmount=null,this._resizeSubscription.unsubscribe()}dispose(){this._isDisposed||(this._boundingBox&&du(this._boundingBox.style,{top:"",left:"",right:"",bottom:"",height:"",width:"",alignItems:"",justifyContent:""}),this._pane&&this._resetOverlayElementStyles(),this._overlayRef&&this._overlayRef.hostElement.classList.remove(lB),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;if(n){this._originRect=this._getOriginRect(),this._overlayRect=this._pane.getBoundingClientRect(),this._viewportRect=this._getNarrowedViewportRect(),this._containerRect=this._overlayContainer.getContainerElement().getBoundingClientRect();let e=this._getOriginPoint(this._originRect,this._containerRect,n);this._applyPosition(n,e)}else 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}_getOriginPoint(n,e,i){let r;if(i.originX=="center")r=n.left+n.width/2;else{let a=this._isRtl()?n.right:n.left,s=this._isRtl()?n.left:n.right;r=i.originX=="start"?a:s}e.left<0&&(r-=e.left);let o;return i.originY=="center"?o=n.top+n.height/2:o=i.originY=="top"?n.top:n.bottom,e.top<0&&(o-=e.top),{x:r,y:o}}_getOverlayPoint(n,e,i){let r;i.overlayX=="center"?r=-e.width/2:i.overlayX==="start"?r=this._isRtl()?-e.width:0:r=this._isRtl()?0:-e.width;let o;return i.overlayY=="center"?o=-e.height/2:o=i.overlayY=="top"?0:-e.height,{x:n.x+r,y:n.y+o}}_getOverlayFit(n,e,i,r){let o=dB(e),{x:a,y:s}=n,l=this._getOffset(r,"x"),c=this._getOffset(r,"y");l&&(a+=l),c&&(s+=c);let d=0-a,p=a+o.width-i.width,_=0-s,b=s+o.height-i.height,y=this._subtractOverflows(o.width,d,p),w=this._subtractOverflows(o.height,_,b),C=y*w;return{visibleArea:C,isCompletelyWithinViewport:o.width*o.height===C,fitsInViewportVertically:w===o.height,fitsInViewportHorizontally:y==o.width}}_canFitWithFlexibleDimensions(n,e,i){if(this._hasFlexibleDimensions){let r=i.bottom-e.y,o=i.right-e.x,a=cB(this._overlayRef.getConfig().minHeight),s=cB(this._overlayRef.getConfig().minWidth),l=n.fitsInViewportVertically||a!=null&&a<=r,c=n.fitsInViewportHorizontally||s!=null&&s<=o;return l&&c}return!1}_pushOverlayOnScreen(n,e,i){if(this._previousPushAmount&&this._positionLocked)return{x:n.x+this._previousPushAmount.x,y:n.y+this._previousPushAmount.y};let r=dB(e),o=this._viewportRect,a=Math.max(n.x+r.width-o.width,0),s=Math.max(n.y+r.height-o.height,0),l=Math.max(o.top-i.top-n.y,0),c=Math.max(o.left-i.left-n.x,0),d=0,p=0;return r.width<=o.width?d=c||-a:d=n.xy&&!this._isInitialRender&&!this._growAfterOpen&&(a=n.y-y/2)}let l=e.overlayX==="start"&&!r||e.overlayX==="end"&&r,c=e.overlayX==="end"&&!r||e.overlayX==="start"&&r,d,p,_;if(c)_=i.width-n.x+this._viewportMargin*2,d=n.x-this._viewportMargin;else if(l)p=n.x,d=i.right-n.x;else{let b=Math.min(i.right-n.x+i.left,n.x),y=this._lastBoundingBoxSize.width;d=b*2,p=n.x-b,d>y&&!this._isInitialRender&&!this._growAfterOpen&&(p=n.x-y/2)}return{top:a,left:p,bottom:s,right:_,width:d,height:o}}_setBoundingBoxStyles(n,e){let i=this._calculateBoundingBoxRect(n,e);!this._isInitialRender&&!this._growAfterOpen&&(i.height=Math.min(i.height,this._lastBoundingBoxSize.height),i.width=Math.min(i.width,this._lastBoundingBoxSize.width));let r={};if(this._hasExactPosition())r.top=r.left="0",r.bottom=r.right=r.maxHeight=r.maxWidth="",r.width=r.height="100%";else{let o=this._overlayRef.getConfig().maxHeight,a=this._overlayRef.getConfig().maxWidth;r.height=cn(i.height),r.top=cn(i.top),r.bottom=cn(i.bottom),r.width=cn(i.width),r.left=cn(i.left),r.right=cn(i.right),e.overlayX==="center"?r.alignItems="center":r.alignItems=e.overlayX==="end"?"flex-end":"flex-start",e.overlayY==="center"?r.justifyContent="center":r.justifyContent=e.overlayY==="bottom"?"flex-end":"flex-start",o&&(r.maxHeight=cn(o)),a&&(r.maxWidth=cn(a))}this._lastBoundingBoxSize=i,du(this._boundingBox.style,r)}_resetBoundingBoxStyles(){du(this._boundingBox.style,{top:"0",left:"0",right:"0",bottom:"0",height:"",width:"",alignItems:"",justifyContent:""})}_resetOverlayElementStyles(){du(this._pane.style,{top:"",left:"",bottom:"",right:"",position:"",transform:""})}_setOverlayElementStyles(n,e){let i={},r=this._hasExactPosition(),o=this._hasFlexibleDimensions,a=this._overlayRef.getConfig();if(r){let d=this._viewportRuler.getViewportScrollPosition();du(i,this._getExactOverlayY(e,n,d)),du(i,this._getExactOverlayX(e,n,d))}else i.position="static";let s="",l=this._getOffset(e,"x"),c=this._getOffset(e,"y");l&&(s+=`translateX(${l}px) `),c&&(s+=`translateY(${c}px)`),i.transform=s.trim(),a.maxHeight&&(r?i.maxHeight=cn(a.maxHeight):o&&(i.maxHeight="")),a.maxWidth&&(r?i.maxWidth=cn(a.maxWidth):o&&(i.maxWidth="")),du(this._pane.style,i)}_getExactOverlayY(n,e,i){let r={top:"",bottom:""},o=this._getOverlayPoint(e,this._overlayRect,n);if(this._isPushed&&(o=this._pushOverlayOnScreen(o,this._overlayRect,i)),n.overlayY==="bottom"){let a=this._document.documentElement.clientHeight;r.bottom=`${a-(o.y+this._overlayRect.height)}px`}else r.top=cn(o.y);return r}_getExactOverlayX(n,e,i){let r={left:"",right:""},o=this._getOverlayPoint(e,this._overlayRect,n);this._isPushed&&(o=this._pushOverlayOnScreen(o,this._overlayRect,i));let a;if(this._isRtl()?a=n.overlayX==="end"?"left":"right":a=n.overlayX==="end"?"right":"left",a==="right"){let s=this._document.documentElement.clientWidth;r.right=`${s-(o.x+this._overlayRect.width)}px`}else r.left=cn(o.x);return r}_getScrollVisibility(){let n=this._getOriginRect(),e=this._pane.getBoundingClientRect(),i=this._scrollables.map(r=>r.getElementRef().nativeElement.getBoundingClientRect());return{isOriginClipped:aB(n,i),isOriginOutsideView:KS(n,i),isOverlayClipped:aB(e,i),isOverlayOutsideView:KS(e,i)}}_subtractOverflows(n,...e){return e.reduce((i,r)=>i-Math.max(r,0),n)}_getNarrowedViewportRect(){let n=this._document.documentElement.clientWidth,e=this._document.documentElement.clientHeight,i=this._viewportRuler.getViewportScrollPosition();return{top:i.top+this._viewportMargin,left:i.left+this._viewportMargin,right:i.left+n-this._viewportMargin,bottom:i.top+e-this._viewportMargin,width:n-2*this._viewportMargin,height:e-2*this._viewportMargin}}_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&&sl(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=[])}_getOriginRect(){let n=this._origin;if(n instanceof Y)return n.nativeElement.getBoundingClientRect();if(n instanceof Element)return n.getBoundingClientRect();let e=n.width||0,i=n.height||0;return{top:n.y,bottom:n.y+i,left:n.x,right:n.x+e,height:i,width:e}}};function du(t,n){for(let e in n)n.hasOwnProperty(e)&&(t[e]=n[e]);return t}function cB(t){if(typeof t!="number"&&t!=null){let[n,e]=t.split(PJ);return!e||e==="px"?parseFloat(n):null}return t||null}function dB(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 FJ(t,n){return t===n?!0:t.isOriginClipped===n.isOriginClipped&&t.isOriginOutsideView===n.isOriginOutsideView&&t.isOverlayClipped===n.isOverlayClipped&&t.isOverlayOutsideView===n.isOverlayOutsideView}var uB="cdk-global-overlay-wrapper";function Es(t){return new nx}var nx=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(uB),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,i=this._overlayRef.getConfig(),{width:r,height:o,maxWidth:a,maxHeight:s}=i,l=(r==="100%"||r==="100vw")&&(!a||a==="100%"||a==="100vw"),c=(o==="100%"||o==="100vh")&&(!s||s==="100%"||s==="100vh"),d=this._xPosition,p=this._xOffset,_=this._overlayRef.getConfig().direction==="rtl",b="",y="",w="";l?w="flex-start":d==="center"?(w="center",_?y=p:b=p):_?d==="left"||d==="end"?(w="flex-end",b=p):(d==="right"||d==="start")&&(w="flex-start",y=p):d==="left"||d==="start"?(w="flex-start",b=p):(d==="right"||d==="end")&&(w="flex-end",y=p),n.position=this._cssPosition,n.marginLeft=l?"0":b,n.marginTop=c?"0":this._topOffset,n.marginBottom=this._bottomOffset,n.marginRight=l?"0":y,e.justifyContent=w,e.alignItems=c?"flex-start":this._alignItems}dispose(){if(this._isDisposed||!this._overlayRef)return;let n=this._overlayRef.overlayElement.style,e=this._overlayRef.hostElement,i=e.style;e.classList.remove(uB),i.justifyContent=i.alignItems=n.marginTop=n.marginBottom=n.marginLeft=n.marginRight=n.position="",this._overlayRef=null,this._isDisposed=!0}},bB=(()=>{class t{_injector=u(de);constructor(){}global(){return Es()}flexibleConnectedTo(e){return Na(this._injector,e)}static \u0275fac=function(i){return new(i||t)};static \u0275prov=R({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();function zr(t,n){t.get(ht).load(_B);let e=t.get(rx),i=t.get(_e),r=t.get(Ze),o=t.get(Yn),a=t.get(Bt),s=i.createElement("div"),l=i.createElement("div");l.id=r.getId("cdk-overlay-"),l.classList.add("cdk-overlay-pane"),s.appendChild(l),e.getContainerElement().appendChild(s);let c=new dg(l,o,t),d=new Hr(n),p=t.get(ze,null,{optional:!0})||t.get(mn).createRenderer(null,null);return d.direction=d.direction||a.value,new Ch(c,s,l,d,t.get(ae),t.get(fB),i,t.get(ms),t.get(gB),n?.disableAnimations??t.get(ef,null,{optional:!0})==="NoopAnimations",t.get(Kt),p)}var vB=(()=>{class t{scrollStrategies=u(hB);_positionBuilder=u(bB);_injector=u(de);constructor(){}create(e){return zr(this._injector,e)}position(){return this._positionBuilder}static \u0275fac=function(i){return new(i||t)};static \u0275prov=R({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),NJ=[{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"}],yB=new O("cdk-connected-overlay-scroll-strategy",{providedIn:"root",factory:()=>{let t=u(de);return()=>En(t)}}),Dh=(()=>{class t{elementRef=u(Y);constructor(){}static \u0275fac=function(i){return new(i||t)};static \u0275dir=P({type:t,selectors:[["","cdk-overlay-origin",""],["","overlay-origin",""],["","cdkOverlayOrigin",""]],exportAs:["cdkOverlayOrigin"]})}return t})(),ox=(()=>{class t{_dir=u(Bt,{optional:!0});_injector=u(de);_overlayRef;_templatePortal;_backdropSubscription=Te.EMPTY;_attachSubscription=Te.EMPTY;_detachSubscription=Te.EMPTY;_positionSubscription=Te.EMPTY;_offsetX;_offsetY;_position;_scrollStrategyFactory=u(yB);_disposeOnNavigation=!1;_ngZone=u(ae);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;get disposeOnNavigation(){return this._disposeOnNavigation}set disposeOnNavigation(e){this._disposeOnNavigation=e}backdropClick=new U;positionChange=new U;attach=new U;detach=new U;overlayKeydown=new U;overlayOutsideClick=new U;constructor(){let e=u(te),i=u(ot);this._templatePortal=new Dn(e,i),this.scrollStrategy=this._scrollStrategyFactory()}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.width,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=NJ);let e=this._overlayRef=zr(this._injector,this._buildConfig());this._attachSubscription=e.attachments().subscribe(()=>this.attach.emit()),this._detachSubscription=e.detachments().subscribe(()=>this.detach.emit()),e.keydownEvents().subscribe(i=>{this.overlayKeydown.next(i),i.keyCode===27&&!this.disableClose&&!Lt(i)&&(i.preventDefault(),this.detachOverlay())}),this._overlayRef.outsidePointerEvents().subscribe(i=>{let r=this._getOriginElement(),o=Xn(i);(!r||r!==o&&!r.contains(o))&&this.overlayOutsideClick.next(i)})}_buildConfig(){let e=this._position=this.positionStrategy||this._createPositionStrategy(),i=new Hr({direction:this._dir||"ltr",positionStrategy:e,scrollStrategy:this.scrollStrategy,hasBackdrop:this.hasBackdrop,disposeOnNavigation:this.disposeOnNavigation});return(this.width||this.width===0)&&(i.width=this.width),(this.height||this.height===0)&&(i.height=this.height),(this.minWidth||this.minWidth===0)&&(i.minWidth=this.minWidth),(this.minHeight||this.minHeight===0)&&(i.minHeight=this.minHeight),this.backdropClass&&(i.backdropClass=this.backdropClass),this.panelClass&&(i.panelClass=this.panelClass),i}_updatePositionStrategy(e){let i=this.positions.map(r=>({originX:r.originX,originY:r.originY,overlayX:r.overlayX,overlayY:r.overlayY,offsetX:r.offsetX||this.offsetX,offsetY:r.offsetY||this.offsetY,panelClass:r.panelClass||void 0}));return e.setOrigin(this._getOrigin()).withPositions(i).withFlexibleDimensions(this.flexibleDimensions).withPush(this.push).withGrowAfterOpen(this.growAfterOpen).withViewportMargin(this.viewportMargin).withLockedPosition(this.lockPosition).withTransformOriginOn(this.transformOriginSelector)}_createPositionStrategy(){let e=Na(this._injector,this._getOrigin());return this._updatePositionStrategy(e),e}_getOrigin(){return this.origin instanceof Dh?this.origin.elementRef:this.origin}_getOriginElement(){return this.origin instanceof Dh?this.origin.elementRef.nativeElement:this.origin instanceof Y?this.origin.nativeElement:typeof Element<"u"&&this.origin instanceof Element?this.origin:null}attachOverlay(){this._overlayRef?this._overlayRef.getConfig().hasBackdrop=this.hasBackdrop:this._createOverlay(),this._overlayRef.hasAttached()||this._overlayRef.attach(this._templatePortal),this.hasBackdrop?this._backdropSubscription=this._overlayRef.backdropClick().subscribe(e=>{this.backdropClick.emit(e)}):this._backdropSubscription.unsubscribe(),this._positionSubscription.unsubscribe(),this.positionChange.observers.length>0&&(this._positionSubscription=this._position.positionChanges.pipe(nD(()=>this.positionChange.observers.length>0)).subscribe(e=>{this._ngZone.run(()=>this.positionChange.emit(e)),this.positionChange.observers.length===0&&this._positionSubscription.unsubscribe()})),this.open=!0}detachOverlay(){this._overlayRef?.detach(),this._backdropSubscription.unsubscribe(),this._positionSubscription.unsubscribe(),this.open=!1}static \u0275fac=function(i){return new(i||t)};static \u0275dir=P({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",L],lockPosition:[2,"cdkConnectedOverlayLockPosition","lockPosition",L],flexibleDimensions:[2,"cdkConnectedOverlayFlexibleDimensions","flexibleDimensions",L],growAfterOpen:[2,"cdkConnectedOverlayGrowAfterOpen","growAfterOpen",L],push:[2,"cdkConnectedOverlayPush","push",L],disposeOnNavigation:[2,"cdkConnectedOverlayDisposeOnNavigation","disposeOnNavigation",L]},outputs:{backdropClick:"backdropClick",positionChange:"positionChange",attach:"attach",detach:"detach",overlayKeydown:"overlayKeydown",overlayOutsideClick:"overlayOutsideClick"},exportAs:["cdkConnectedOverlay"],features:[Ae]})}return t})();function LJ(t){let n=u(de);return()=>En(n)}var VJ={provide:yB,useFactory:LJ},nr=(()=>{class t{static \u0275fac=function(i){return new(i||t)};static \u0275mod=ee({type:t});static \u0275inj=J({providers:[vB,VJ],imports:[ys,ko,lg,lg]})}return t})();var uu=(()=>{class t{_listeners=[];notify(e,i){for(let r of this._listeners)r(e,i)}listen(e){return this._listeners.push(e),()=>{this._listeners=this._listeners.filter(i=>e!==i)}}ngOnDestroy(){this._listeners=[]}static \u0275fac=function(i){return new(i||t)};static \u0275prov=R({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();var mu=class{applyChanges(n,e,i,r,o){n.forEachOperation((a,s,l)=>{let c,d;if(a.previousIndex==null){let p=i(a,s,l);c=e.createEmbeddedView(p.templateRef,p.context,p.index),d=uc.INSERTED}else l==null?(e.remove(s),d=uc.REMOVED):(c=e.get(s),e.move(c,l),d=uc.MOVED);o&&o({context:c?.context,operation:d,record:a})})}detach(){}};var mg=class{_multiple;_emitChanges;compareWith;_selection=new Set;_deselectedToEmit=[];_selectedToEmit=[];_selected;get selected(){return this._selected||(this._selected=Array.from(this._selection.values())),this._selected}changed=new z;constructor(n=!1,e,i=!0,r){this._multiple=n,this._emitChanges=i,this.compareWith=r,e&&e.length&&(n?e.forEach(o=>this._markSelected(o)):this._markSelected(e[0]),this._selectedToEmit.length=0)}select(...n){this._verifyValueAssignment(n),n.forEach(i=>this._markSelected(i));let e=this._hasQueuedChanges();return this._emitChangeEvent(),e}deselect(...n){this._verifyValueAssignment(n),n.forEach(i=>this._unmarkSelected(i));let e=this._hasQueuedChanges();return this._emitChangeEvent(),e}setSelection(...n){this._verifyValueAssignment(n);let e=this.selected,i=new Set(n.map(o=>this._getConcreteValue(o)));n.forEach(o=>this._markSelected(o)),e.filter(o=>!i.has(this._getConcreteValue(o,i))).forEach(o=>this._unmarkSelected(o));let r=this._hasQueuedChanges();return this._emitChangeEvent(),r}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 i of e)if(this.compareWith(n,i))return i;return n}else return n}};var TB=(()=>{class t{_renderer;_elementRef;onChange=e=>{};onTouched=()=>{};constructor(e,i){this._renderer=e,this._elementRef=i}setProperty(e,i){this._renderer.setProperty(this._elementRef.nativeElement,e,i)}registerOnTouched(e){this.onTouched=e}registerOnChange(e){this.onChange=e}setDisabledState(e){this.setProperty("disabled",e)}static \u0275fac=function(i){return new(i||t)(be(ze),be(Y))};static \u0275dir=P({type:t})}return t})(),IB=(()=>{class t extends TB{static \u0275fac=(()=>{let e;return function(r){return(e||(e=ge(t)))(r||t)}})();static \u0275dir=P({type:t,features:[le]})}return t})(),rr=new O("");var BJ={provide:rr,useExisting:ri(()=>Hi),multi:!0};function jJ(){let t=Yo()?Yo().getUserAgent():"";return/android (\d+)/.test(t.toLowerCase())}var HJ=new O(""),Hi=(()=>{class t extends TB{_compositionMode;_composing=!1;constructor(e,i,r){super(e,i),this._compositionMode=r,this._compositionMode==null&&(this._compositionMode=!jJ())}writeValue(e){let i=e??"";this.setProperty("value",i)}_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(i){return new(i||t)(be(ze),be(Y),be(HJ,8))};static \u0275dir=P({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(i,r){i&1&&S("input",function(a){return r._handleInput(a.target.value)})("blur",function(){return r.onTouched()})("compositionstart",function(){return r._compositionStart()})("compositionend",function(a){return r._compositionEnd(a.target.value)})},standalone:!1,features:[Ce([BJ]),le]})}return t})();function ek(t){return t==null||tk(t)===0}function tk(t){return t==null?null:Array.isArray(t)||typeof t=="string"?t.length:t instanceof Set?t.size:null}var na=new O(""),yg=new O(""),zJ=/^(?=.{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])?)*$/,Le=class{static min(n){return UJ(n)}static max(n){return $J(n)}static required(n){return AB(n)}static requiredTrue(n){return WJ(n)}static email(n){return GJ(n)}static minLength(n){return qJ(n)}static maxLength(n){return YJ(n)}static pattern(n){return QJ(n)}static nullValidator(n){return sx()}static compose(n){return LB(n)}static composeAsync(n){return VB(n)}};function UJ(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 AB(t){return ek(t.value)?{required:!0}:null}function WJ(t){return t.value===!0?null:{required:!0}}function GJ(t){return ek(t.value)||zJ.test(t.value)?null:{email:!0}}function qJ(t){return n=>{let e=n.value?.length??tk(n.value);return e===null||e===0?null:e{let e=n.value?.length??tk(n.value);return e!==null&&e>t?{maxlength:{requiredLength:t,actualLength:e}}:null}}function QJ(t){if(!t)return sx;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),i=>{if(ek(i.value))return null;let r=i.value;return n.test(r)?null:{pattern:{requiredPattern:e,actualValue:r}}}}function sx(t){return null}function OB(t){return t!=null}function RB(t){return Js(t)?Ft(t):t}function PB(t){let n={};return t.forEach(e=>{n=e!=null?k(k({},n),e):n}),Object.keys(n).length===0?null:n}function FB(t,n){return n.map(e=>e(t))}function KJ(t){return!t.validate}function NB(t){return t.map(n=>KJ(n)?n:e=>n.validate(e))}function LB(t){if(!t)return null;let n=t.filter(OB);return n.length==0?null:function(e){return PB(FB(e,n))}}function ik(t){return t!=null?LB(NB(t)):null}function VB(t){if(!t)return null;let n=t.filter(OB);return n.length==0?null:function(e){let i=FB(e,n).map(RB);return qa(i).pipe(se(PB))}}function nk(t){return t!=null?VB(NB(t)):null}function CB(t,n){return t===null?[n]:Array.isArray(t)?[...t,n]:[t,n]}function BB(t){return t._rawValidators}function jB(t){return t._rawAsyncValidators}function XS(t){return t?Array.isArray(t)?t:[t]:[]}function lx(t,n){return Array.isArray(t)?t.includes(n):t===n}function wB(t,n){let e=XS(n);return XS(t).forEach(r=>{lx(e,r)||e.push(r)}),e}function DB(t,n){return XS(n).filter(e=>!lx(t,e))}var cx=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=ik(this._rawValidators)}_setAsyncValidators(n){this._rawAsyncValidators=n||[],this._composedAsyncValidatorFn=nk(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&&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}},Ms=class extends cx{name;get formDirective(){return null}get path(){return null}},Un=class extends cx{_parent=null;name=null;valueAccessor=null},dx=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}},ZJ={"[class.ng-untouched]":"isUntouched","[class.ng-touched]":"isTouched","[class.ng-pristine]":"isPristine","[class.ng-dirty]":"isDirty","[class.ng-valid]":"isValid","[class.ng-invalid]":"isInvalid","[class.ng-pending]":"isPending"},N7e=Ee(k({},ZJ),{"[class.ng-submitted]":"isSubmitted"}),qt=(()=>{class t extends dx{constructor(e){super(e)}static \u0275fac=function(i){return new(i||t)(be(Un,2))};static \u0275dir=P({type:t,selectors:[["","formControlName",""],["","ngModel",""],["","formControl",""]],hostVars:14,hostBindings:function(i,r){i&2&&G("ng-untouched",r.isUntouched)("ng-touched",r.isTouched)("ng-pristine",r.isPristine)("ng-dirty",r.isDirty)("ng-valid",r.isValid)("ng-invalid",r.isInvalid)("ng-pending",r.isPending)},standalone:!1,features:[le]})}return t})(),io=(()=>{class t extends dx{constructor(e){super(e)}static \u0275fac=function(i){return new(i||t)(be(Ms,10))};static \u0275dir=P({type:t,selectors:[["","formGroupName",""],["","formArrayName",""],["","ngModelGroup",""],["","formGroup",""],["form",3,"ngNoForm",""],["","ngForm",""]],hostVars:16,hostBindings:function(i,r){i&2&&G("ng-untouched",r.isUntouched)("ng-touched",r.isTouched)("ng-pristine",r.isPristine)("ng-dirty",r.isDirty)("ng-valid",r.isValid)("ng-invalid",r.isInvalid)("ng-pending",r.isPending)("ng-submitted",r.isSubmitted)},standalone:!1,features:[le]})}return t})();var hg="VALID",ax="INVALID",Eh="PENDING",pg="DISABLED",pc=class{},ux=class extends pc{value;source;constructor(n,e){super(),this.value=n,this.source=e}},gg=class extends pc{pristine;source;constructor(n,e){super(),this.pristine=n,this.source=e}},_g=class extends pc{touched;source;constructor(n,e){super(),this.touched=n,this.source=e}},Mh=class extends pc{status;source;constructor(n,e){super(),this.status=n,this.source=e}},mx=class extends pc{source;constructor(n){super(),this.source=n}},bg=class extends pc{source;constructor(n){super(),this.source=n}};function rk(t){return(_x(t)?t.validators:t)||null}function XJ(t){return Array.isArray(t)?ik(t):t||null}function ok(t,n){return(_x(n)?n.asyncValidators:t)||null}function JJ(t){return Array.isArray(t)?nk(t):t||null}function _x(t){return t!=null&&!Array.isArray(t)&&typeof t=="object"}function HB(t,n,e){let i=t.controls;if(!(n?Object.keys(i):i).length)throw new me(1e3,"");if(!i[e])throw new me(1001,"")}function zB(t,n,e){t._forEachChild((i,r)=>{if(e[r]===void 0)throw new me(1002,"")})}var fc=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 Ai(this.statusReactive)}set status(n){Ai(()=>this.statusReactive.set(n))}_status=oi(()=>this.statusReactive());statusReactive=he(void 0);get valid(){return this.status===hg}get invalid(){return this.status===ax}get pending(){return this.status==Eh}get disabled(){return this.status===pg}get enabled(){return this.status!==pg}errors;get pristine(){return Ai(this.pristineReactive)}set pristine(n){Ai(()=>this.pristineReactive.set(n))}_pristine=oi(()=>this.pristineReactive());pristineReactive=he(!0);get dirty(){return!this.pristine}get touched(){return Ai(this.touchedReactive)}set touched(n){Ai(()=>this.touchedReactive.set(n))}_touched=oi(()=>this.touchedReactive());touchedReactive=he(!1);get untouched(){return!this.touched}_events=new z;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(wB(n,this._rawValidators))}addAsyncValidators(n){this.setAsyncValidators(wB(n,this._rawAsyncValidators))}removeValidators(n){this.setValidators(DB(n,this._rawValidators))}removeAsyncValidators(n){this.setAsyncValidators(DB(n,this._rawAsyncValidators))}hasValidator(n){return lx(this._rawValidators,n)}hasAsyncValidator(n){return lx(this._rawAsyncValidators,n)}clearValidators(){this.validator=null}clearAsyncValidators(){this.asyncValidator=null}markAsTouched(n={}){let e=this.touched===!1;this.touched=!0;let i=n.sourceControl??this;this._parent&&!n.onlySelf&&this._parent.markAsTouched(Ee(k({},n),{sourceControl:i})),e&&n.emitEvent!==!1&&this._events.next(new _g(!0,i))}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 i=n.sourceControl??this;this._forEachChild(r=>{r.markAsUntouched({onlySelf:!0,emitEvent:n.emitEvent,sourceControl:i})}),this._parent&&!n.onlySelf&&this._parent._updateTouched(n,i),e&&n.emitEvent!==!1&&this._events.next(new _g(!1,i))}markAsDirty(n={}){let e=this.pristine===!0;this.pristine=!1;let i=n.sourceControl??this;this._parent&&!n.onlySelf&&this._parent.markAsDirty(Ee(k({},n),{sourceControl:i})),e&&n.emitEvent!==!1&&this._events.next(new gg(!1,i))}markAsPristine(n={}){let e=this.pristine===!1;this.pristine=!0,this._pendingDirty=!1;let i=n.sourceControl??this;this._forEachChild(r=>{r.markAsPristine({onlySelf:!0,emitEvent:n.emitEvent})}),this._parent&&!n.onlySelf&&this._parent._updatePristine(n,i),e&&n.emitEvent!==!1&&this._events.next(new gg(!0,i))}markAsPending(n={}){this.status=Eh;let e=n.sourceControl??this;n.emitEvent!==!1&&(this._events.next(new Mh(this.status,e)),this.statusChanges.emit(this.status)),this._parent&&!n.onlySelf&&this._parent.markAsPending(Ee(k({},n),{sourceControl:e}))}disable(n={}){let e=this._parentMarkedDirty(n.onlySelf);this.status=pg,this.errors=null,this._forEachChild(r=>{r.disable(Ee(k({},n),{onlySelf:!0}))}),this._updateValue();let i=n.sourceControl??this;n.emitEvent!==!1&&(this._events.next(new ux(this.value,i)),this._events.next(new Mh(this.status,i)),this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._updateAncestors(Ee(k({},n),{skipPristineCheck:e}),this),this._onDisabledChange.forEach(r=>r(!0))}enable(n={}){let e=this._parentMarkedDirty(n.onlySelf);this.status=hg,this._forEachChild(i=>{i.enable(Ee(k({},n),{onlySelf:!0}))}),this.updateValueAndValidity({onlySelf:!0,emitEvent:n.emitEvent}),this._updateAncestors(Ee(k({},n),{skipPristineCheck:e}),this),this._onDisabledChange.forEach(i=>i(!1))}_updateAncestors(n,e){this._parent&&!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 i=this._cancelExistingSubscription();this.errors=this._runValidator(),this.status=this._calculateStatus(),(this.status===hg||this.status===Eh)&&this._runAsyncValidator(i,n.emitEvent)}let e=n.sourceControl??this;n.emitEvent!==!1&&(this._events.next(new ux(this.value,e)),this._events.next(new Mh(this.status,e)),this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._parent&&!n.onlySelf&&this._parent.updateValueAndValidity(Ee(k({},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()?pg:hg}_runValidator(){return this.validator?this.validator(this):null}_runAsyncValidator(n,e){if(this.asyncValidator){this.status=Eh,this._hasOwnPendingAsyncValidator={emitEvent:e!==!1,shouldHaveEmitted:n!==!1};let i=RB(this.asyncValidator(this));this._asyncValidationSubscription=i.subscribe(r=>{this._hasOwnPendingAsyncValidator=null,this.setErrors(r,{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((i,r)=>i&&i._find(r),this)}getError(n,e){let i=e?this.get(e):this;return i&&i.errors?i.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,i){this.status=this._calculateStatus(),n&&this.statusChanges.emit(this.status),(n||i)&&this._events.next(new Mh(this.status,e)),this._parent&&this._parent._updateControlsErrors(n,e,i)}_initObservables(){this.valueChanges=new U,this.statusChanges=new U}_calculateStatus(){return this._allControlsDisabled()?pg:this.errors?ax:this._hasOwnPendingAsyncValidator||this._anyControlsHaveStatus(Eh)?Eh:this._anyControlsHaveStatus(ax)?ax:hg}_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 i=!this._anyControlsDirty(),r=this.pristine!==i;this.pristine=i,this._parent&&!n.onlySelf&&this._parent._updatePristine(n,e),r&&this._events.next(new gg(this.pristine,e))}_updateTouched(n={},e){this.touched=this._anyControlsTouched(),this._events.next(new _g(this.touched,e)),this._parent&&!n.onlySelf&&this._parent._updateTouched(n,e)}_onDisabledChange=[];_registerOnCollectionChange(n){this._onCollectionChange=n}_setUpdateStrategy(n){_x(n)&&n.updateOn!=null&&(this._updateOn=n.updateOn)}_parentMarkedDirty(n){let e=this._parent&&this._parent.dirty;return!n&&!!e&&!this._parent._anyControlsDirty()}_find(n){return null}_assignValidators(n){this._rawValidators=Array.isArray(n)?n.slice():n,this._composedValidatorFn=XJ(this._rawValidators)}_assignAsyncValidators(n){this._rawAsyncValidators=Array.isArray(n)?n.slice():n,this._composedAsyncValidatorFn=JJ(this._rawAsyncValidators)}},hu=class extends fc{constructor(n,e,i){super(rk(e),ok(i,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,i={}){this.registerControl(n,e),this.updateValueAndValidity({emitEvent:i.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,i={}){this.controls[n]&&this.controls[n]._registerOnCollectionChange(()=>{}),delete this.controls[n],e&&this.registerControl(n,e),this.updateValueAndValidity({emitEvent:i.emitEvent}),this._onCollectionChange()}contains(n){return this.controls.hasOwnProperty(n)&&this.controls[n].enabled}setValue(n,e={}){zB(this,!0,n),Object.keys(n).forEach(i=>{HB(this,!0,i),this.controls[i].setValue(n[i],{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e)}patchValue(n,e={}){n!=null&&(Object.keys(n).forEach(i=>{let r=this.controls[i];r&&r.patchValue(n[i],{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e))}reset(n={},e={}){this._forEachChild((i,r)=>{i.reset(n?n[r]:null,{onlySelf:!0,emitEvent:e.emitEvent})}),this._updatePristine(e,this),this._updateTouched(e,this),this.updateValueAndValidity(e),e?.emitEvent!==!1&&this._events.next(new bg(this))}getRawValue(){return this._reduceChildren({},(n,e,i)=>(n[i]=e.getRawValue(),n))}_syncPendingControls(){let n=this._reduceChildren(!1,(e,i)=>i._syncPendingControls()?!0:e);return n&&this.updateValueAndValidity({onlySelf:!0}),n}_forEachChild(n){Object.keys(this.controls).forEach(e=>{let i=this.controls[e];i&&n(i,e)})}_setUpControls(){this._forEachChild(n=>{n.setParent(this),n._registerOnCollectionChange(this._onCollectionChange)})}_updateValue(){this.value=this._reduceValue()}_anyControls(n){for(let[e,i]of Object.entries(this.controls))if(this.contains(e)&&n(i))return!0;return!1}_reduceValue(){let n={};return this._reduceChildren(n,(e,i,r)=>((i.enabled||this.disabled)&&(e[r]=i.value),e))}_reduceChildren(n,e){let i=n;return this._forEachChild((r,o)=>{i=e(i,r,o)}),i}_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 bx=hu;var JS=class extends hu{};var Sh=new O("",{providedIn:"root",factory:()=>vx}),vx="always";function UB(t,n){return[...n.path,t]}function vg(t,n,e=vx){ak(t,n),n.valueAccessor.writeValue(t.value),(t.disabled||e==="always")&&n.valueAccessor.setDisabledState?.(t.disabled),tee(t,n),nee(t,n),iee(t,n),eee(t,n)}function hx(t,n,e=!0){let i=()=>{};n.valueAccessor&&(n.valueAccessor.registerOnChange(i),n.valueAccessor.registerOnTouched(i)),fx(t,n),t&&(n._invokeOnDestroyCallbacks(),t._registerOnCollectionChange(()=>{}))}function px(t,n){t.forEach(e=>{e.registerOnValidatorChange&&e.registerOnValidatorChange(n)})}function eee(t,n){if(n.valueAccessor.setDisabledState){let e=i=>{n.valueAccessor.setDisabledState(i)};t.registerOnDisabledChange(e),n._registerOnDestroy(()=>{t._unregisterOnDisabledChange(e)})}}function ak(t,n){let e=BB(t);n.validator!==null?t.setValidators(CB(e,n.validator)):typeof e=="function"&&t.setValidators([e]);let i=jB(t);n.asyncValidator!==null?t.setAsyncValidators(CB(i,n.asyncValidator)):typeof i=="function"&&t.setAsyncValidators([i]);let r=()=>t.updateValueAndValidity();px(n._rawValidators,r),px(n._rawAsyncValidators,r)}function fx(t,n){let e=!1;if(t!==null){if(n.validator!==null){let r=BB(t);if(Array.isArray(r)&&r.length>0){let o=r.filter(a=>a!==n.validator);o.length!==r.length&&(e=!0,t.setValidators(o))}}if(n.asyncValidator!==null){let r=jB(t);if(Array.isArray(r)&&r.length>0){let o=r.filter(a=>a!==n.asyncValidator);o.length!==r.length&&(e=!0,t.setAsyncValidators(o))}}}let i=()=>{};return px(n._rawValidators,i),px(n._rawAsyncValidators,i),e}function tee(t,n){n.valueAccessor.registerOnChange(e=>{t._pendingValue=e,t._pendingChange=!0,t._pendingDirty=!0,t.updateOn==="change"&&$B(t,n)})}function iee(t,n){n.valueAccessor.registerOnTouched(()=>{t._pendingTouched=!0,t.updateOn==="blur"&&t._pendingChange&&$B(t,n),t.updateOn!=="submit"&&t.markAsTouched()})}function $B(t,n){t._pendingDirty&&t.markAsDirty(),t.setValue(t._pendingValue,{emitModelToViewChange:!1}),n.viewToModelUpdate(t._pendingValue),t._pendingChange=!1}function nee(t,n){let e=(i,r)=>{n.valueAccessor.writeValue(i),r&&n.viewToModelUpdate(i)};t.registerOnChange(e),n._registerOnDestroy(()=>{t._unregisterOnChange(e)})}function WB(t,n){t==null,ak(t,n)}function ree(t,n){return fx(t,n)}function sk(t,n){if(!t.hasOwnProperty("model"))return!1;let e=t.model;return e.isFirstChange()?!0:!Object.is(n,e.currentValue)}function oee(t){return Object.getPrototypeOf(t.constructor)===IB}function GB(t,n){t._syncPendingControls(),n.forEach(e=>{let i=e.control;i.updateOn==="submit"&&i._pendingChange&&(e.viewToModelUpdate(i._pendingValue),i._pendingChange=!1)})}function lk(t,n){if(!n)return null;Array.isArray(n);let e,i,r;return n.forEach(o=>{o.constructor===Hi?e=o:oee(o)?i=o:r=o}),r||i||e||null}function aee(t,n){let e=t.indexOf(n);e>-1&&t.splice(e,1)}var see={provide:Ms,useExisting:ri(()=>gc)},fg=Promise.resolve(),gc=(()=>{class t extends Ms{callSetDisabledState;get submitted(){return Ai(this.submittedReactive)}_submitted=oi(()=>this.submittedReactive());submittedReactive=he(!1);_directives=new Set;form;ngSubmit=new U;options;constructor(e,i,r){super(),this.callSetDisabledState=r,this.form=new hu({},ik(e),nk(i))}ngAfterViewInit(){this._setUpdateStrategy()}get formDirective(){return this}get control(){return this.form}get path(){return[]}get controls(){return this.form.controls}addControl(e){fg.then(()=>{let i=this._findContainer(e.path);e.control=i.registerControl(e.name,e.control),vg(e.control,e,this.callSetDisabledState),e.control.updateValueAndValidity({emitEvent:!1}),this._directives.add(e)})}getControl(e){return this.form.get(e.path)}removeControl(e){fg.then(()=>{let i=this._findContainer(e.path);i&&i.removeControl(e.name),this._directives.delete(e)})}addFormGroup(e){fg.then(()=>{let i=this._findContainer(e.path),r=new hu({});WB(r,e),i.registerControl(e.name,r),r.updateValueAndValidity({emitEvent:!1})})}removeFormGroup(e){fg.then(()=>{let i=this._findContainer(e.path);i&&i.removeControl(e.name)})}getFormGroup(e){return this.form.get(e.path)}updateModel(e,i){fg.then(()=>{this.form.get(e.path).setValue(i)})}setValue(e){this.control.setValue(e)}onSubmit(e){return this.submittedReactive.set(!0),GB(this.form,this._directives),this.ngSubmit.emit(e),this.form._events.next(new mx(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(i){return new(i||t)(be(na,10),be(yg,10),be(Sh,8))};static \u0275dir=P({type:t,selectors:[["form",3,"ngNoForm","",3,"formGroup",""],["ng-form"],["","ngForm",""]],hostBindings:function(i,r){i&1&&S("submit",function(a){return r.onSubmit(a)})("reset",function(){return r.onReset()})},inputs:{options:[0,"ngFormOptions","options"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],standalone:!1,features:[Ce([see]),le]})}return t})();function EB(t,n){let e=t.indexOf(n);e>-1&&t.splice(e,1)}function MB(t){return typeof t=="object"&&t!==null&&Object.keys(t).length===2&&"value"in t&&"disabled"in t}var ia=class extends fc{defaultValue=null;_onChange=[];_pendingValue;_pendingChange=!1;constructor(n=null,e,i){super(rk(e),ok(i,e)),this._applyFormState(n),this._setUpdateStrategy(e),this._initObservables(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator}),_x(e)&&(e.nonNullable||e.initialValueIsDefault)&&(MB(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(i=>i(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),this._pendingChange=!1,e?.emitEvent!==!1&&this._events.next(new bg(this))}_updateValue(){}_anyControls(n){return!1}_allControlsDisabled(){return this.disabled}registerOnChange(n){this._onChange.push(n)}_unregisterOnChange(n){EB(this._onChange,n)}registerOnDisabledChange(n){this._onDisabledChange.push(n)}_unregisterOnDisabledChange(n){EB(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){MB(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}},qB=ia,lee=t=>t instanceof ia;var cee={provide:Un,useExisting:ri(()=>pu)},SB=Promise.resolve(),pu=(()=>{class t extends Un{_changeDetectorRef;callSetDisabledState;control=new ia;static ngAcceptInputType_isDisabled;_registered=!1;viewModel;name="";isDisabled;model;options;update=new U;constructor(e,i,r,o,a,s){super(),this._changeDetectorRef=a,this.callSetDisabledState=s,this._parent=e,this._setValidators(i),this._setAsyncValidators(r),this.valueAccessor=lk(this,o)}ngOnChanges(e){if(this._checkForErrors(),!this._registered||"name"in e){if(this._registered&&(this._checkName(),this.formDirective)){let i=e.name.previousValue;this.formDirective.removeControl({name:i,path:this._getPath(i)})}this._setUpControl()}"isDisabled"in e&&this._updateDisabled(e),sk(e,this.viewModel)&&(this._updateValue(this.model),this.viewModel=this.model)}ngOnDestroy(){this.formDirective&&this.formDirective.removeControl(this)}get path(){return this._getPath(this.name)}get formDirective(){return this._parent?this._parent.formDirective:null}viewToModelUpdate(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(){vg(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){SB.then(()=>{this.control.setValue(e,{emitViewToModelChange:!1}),this._changeDetectorRef?.markForCheck()})}_updateDisabled(e){let i=e.isDisabled.currentValue,r=i!==0&&L(i);SB.then(()=>{r&&!this.control.disabled?this.control.disable():!r&&this.control.disabled&&this.control.enable(),this._changeDetectorRef?.markForCheck()})}_getPath(e){return this._parent?UB(e,this._parent):[e]}static \u0275fac=function(i){return new(i||t)(be(Ms,9),be(na,10),be(yg,10),be(rr,10),be(ye,8),be(Sh,8))};static \u0275dir=P({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:[Ce([cee]),le,Ae]})}return t})();var no=(()=>{class t{static \u0275fac=function(i){return new(i||t)};static \u0275dir=P({type:t,selectors:[["form",3,"ngNoForm","",3,"ngNativeValidate",""]],hostAttrs:["novalidate",""],standalone:!1})}return t})(),dee={provide:rr,useExisting:ri(()=>fu),multi:!0},fu=(()=>{class t extends IB{writeValue(e){let i=e??"";this.setProperty("value",i)}registerOnChange(e){this.onChange=i=>{e(i==""?null:parseFloat(i))}}static \u0275fac=(()=>{let e;return function(r){return(e||(e=ge(t)))(r||t)}})();static \u0275dir=P({type:t,selectors:[["input","type","number","formControlName",""],["input","type","number","formControl",""],["input","type","number","ngModel",""]],hostBindings:function(i,r){i&1&&S("input",function(a){return r.onChange(a.target.value)})("blur",function(){return r.onTouched()})},standalone:!1,features:[Ce([dee]),le]})}return t})();var ck=new O(""),uee={provide:Un,useExisting:ri(()=>To)},To=(()=>{class t extends Un{_ngModelWarningConfig;callSetDisabledState;viewModel;form;set isDisabled(e){}model;update=new U;static _ngModelWarningSentOnce=!1;_ngModelWarningSent=!1;constructor(e,i,r,o,a){super(),this._ngModelWarningConfig=o,this.callSetDisabledState=a,this._setValidators(e),this._setAsyncValidators(i),this.valueAccessor=lk(this,r)}ngOnChanges(e){if(this._isControlChanged(e)){let i=e.form.previousValue;i&&hx(i,this,!1),vg(this.form,this,this.callSetDisabledState),this.form.updateValueAndValidity({emitEvent:!1})}sk(e,this.viewModel)&&(this.form.setValue(this.model),this.viewModel=this.model)}ngOnDestroy(){this.form&&hx(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(i){return new(i||t)(be(na,10),be(yg,10),be(rr,10),be(ck,8),be(Sh,8))};static \u0275dir=P({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:[Ce([uee]),le,Ae]})}return t})(),mee={provide:Ms,useExisting:ri(()=>Ji)},Ji=(()=>{class t extends Ms{callSetDisabledState;get submitted(){return Ai(this._submittedReactive)}set submitted(e){this._submittedReactive.set(e)}_submitted=oi(()=>this._submittedReactive());_submittedReactive=he(!1);_oldForm;_onCollectionChange=()=>this._updateDomValue();directives=[];form=null;ngSubmit=new U;constructor(e,i,r){super(),this.callSetDisabledState=r,this._setValidators(e),this._setAsyncValidators(i)}ngOnChanges(e){e.hasOwnProperty("form")&&(this._updateValidators(),this._updateDomValue(),this._updateRegistrations(),this._oldForm=this.form)}ngOnDestroy(){this.form&&(fx(this.form,this),this.form._onCollectionChange===this._onCollectionChange&&this.form._registerOnCollectionChange(()=>{}))}get formDirective(){return this}get control(){return this.form}get path(){return[]}addControl(e){let i=this.form.get(e.path);return vg(i,e,this.callSetDisabledState),i.updateValueAndValidity({emitEvent:!1}),this.directives.push(e),i}getControl(e){return this.form.get(e.path)}removeControl(e){hx(e.control||null,e,!1),aee(this.directives,e)}addFormGroup(e){this._setUpFormContainer(e)}removeFormGroup(e){this._cleanUpFormContainer(e)}getFormGroup(e){return this.form.get(e.path)}addFormArray(e){this._setUpFormContainer(e)}removeFormArray(e){this._cleanUpFormContainer(e)}getFormArray(e){return this.form.get(e.path)}updateModel(e,i){this.form.get(e.path).setValue(i)}onSubmit(e){return this._submittedReactive.set(!0),GB(this.form,this.directives),this.ngSubmit.emit(e),this.form._events.next(new mx(this.control)),e?.target?.method==="dialog"}onReset(){this.resetForm()}resetForm(e=void 0,i={}){this.form.reset(e,i),this._submittedReactive.set(!1)}_updateDomValue(){this.directives.forEach(e=>{let i=e.control,r=this.form.get(e.path);i!==r&&(hx(i||null,e),lee(r)&&(vg(r,e,this.callSetDisabledState),e.control=r))}),this.form._updateTreeValidity({emitEvent:!1})}_setUpFormContainer(e){let i=this.form.get(e.path);WB(i,e),i.updateValueAndValidity({emitEvent:!1})}_cleanUpFormContainer(e){if(this.form){let i=this.form.get(e.path);i&&ree(i,e)&&i.updateValueAndValidity({emitEvent:!1})}}_updateRegistrations(){this.form._registerOnCollectionChange(this._onCollectionChange),this._oldForm&&this._oldForm._registerOnCollectionChange(()=>{})}_updateValidators(){ak(this.form,this),this._oldForm&&fx(this._oldForm,this)}static \u0275fac=function(i){return new(i||t)(be(na,10),be(yg,10),be(Sh,8))};static \u0275dir=P({type:t,selectors:[["","formGroup",""]],hostBindings:function(i,r){i&1&&S("submit",function(a){return r.onSubmit(a)})("reset",function(){return r.onReset()})},inputs:{form:[0,"formGroup","form"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],standalone:!1,features:[Ce([mee]),le,Ae]})}return t})();var hee={provide:Un,useExisting:ri(()=>Ur)},Ur=(()=>{class t extends Un{_ngModelWarningConfig;_added=!1;viewModel;control;name=null;set isDisabled(e){}model;update=new U;static _ngModelWarningSentOnce=!1;_ngModelWarningSent=!1;constructor(e,i,r,o,a){super(),this._ngModelWarningConfig=a,this._parent=e,this._setValidators(i),this._setAsyncValidators(r),this.valueAccessor=lk(this,o)}ngOnChanges(e){this._added||this._setUpControl(),sk(e,this.viewModel)&&(this.viewModel=this.model,this.formDirective.updateModel(this,this.model))}ngOnDestroy(){this.formDirective&&this.formDirective.removeControl(this)}viewToModelUpdate(e){this.viewModel=e,this.update.emit(e)}get path(){return UB(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(i){return new(i||t)(be(Ms,13),be(na,10),be(yg,10),be(rr,10),be(ck,8))};static \u0275dir=P({type:t,selectors:[["","formControlName",""]],inputs:{name:[0,"formControlName","name"],isDisabled:[0,"disabled","isDisabled"],model:[0,"ngModel","model"]},outputs:{update:"ngModelChange"},standalone:!1,features:[Ce([hee]),le,Ae]})}return t})();var pee=(()=>{class t{_validator=sx;_onChange;_enabled;ngOnChanges(e){if(this.inputName in e){let i=this.normalizeInput(e[this.inputName].currentValue);this._enabled=this.enabled(i),this._validator=this._enabled?this.createValidator(i):sx,this._onChange&&this._onChange()}}validate(e){return this._validator(e)}registerOnValidatorChange(e){this._onChange=e}enabled(e){return e!=null}static \u0275fac=function(i){return new(i||t)};static \u0275dir=P({type:t,features:[Ae]})}return t})();var fee={provide:na,useExisting:ri(()=>Io),multi:!0};var Io=(()=>{class t extends pee{required;inputName="required";normalizeInput=L;createValidator=e=>AB;enabled(e){return e}static \u0275fac=(()=>{let e;return function(r){return(e||(e=ge(t)))(r||t)}})();static \u0275dir=P({type:t,selectors:[["","required","","formControlName","",3,"type","checkbox"],["","required","","formControl","",3,"type","checkbox"],["","required","","ngModel","",3,"type","checkbox"]],hostVars:1,hostBindings:function(i,r){i&2&&X("required",r._enabled?"":null)},inputs:{required:"required"},standalone:!1,features:[Ce([fee]),le]})}return t})();var YB=(()=>{class t{static \u0275fac=function(i){return new(i||t)};static \u0275mod=ee({type:t});static \u0275inj=J({})}return t})(),gx=class extends fc{constructor(n,e,i){super(rk(e),ok(i,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(i=>{this.controls.push(i),this._registerControl(i)}):(this.controls.push(n),this._registerControl(n)),this.updateValueAndValidity({emitEvent:e.emitEvent}),this._onCollectionChange()}insert(n,e,i={}){this.controls.splice(n,0,e),this._registerControl(e),this.updateValueAndValidity({emitEvent:i.emitEvent})}removeAt(n,e={}){let i=this._adjustIndex(n);i<0&&(i=0),this.controls[i]&&this.controls[i]._registerOnCollectionChange(()=>{}),this.controls.splice(i,1),this.updateValueAndValidity({emitEvent:e.emitEvent})}setControl(n,e,i={}){let r=this._adjustIndex(n);r<0&&(r=0),this.controls[r]&&this.controls[r]._registerOnCollectionChange(()=>{}),this.controls.splice(r,1),e&&(this.controls.splice(r,0,e),this._registerControl(e)),this.updateValueAndValidity({emitEvent:i.emitEvent}),this._onCollectionChange()}get length(){return this.controls.length}setValue(n,e={}){zB(this,!1,n),n.forEach((i,r)=>{HB(this,!1,r),this.at(r).setValue(i,{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e)}patchValue(n,e={}){n!=null&&(n.forEach((i,r)=>{this.at(r)&&this.at(r).patchValue(i,{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e))}reset(n=[],e={}){this._forEachChild((i,r)=>{i.reset(n[r],{onlySelf:!0,emitEvent:e.emitEvent})}),this._updatePristine(e,this),this._updateTouched(e,this),this.updateValueAndValidity(e),e?.emitEvent!==!1&&this._events.next(new bg(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,i)=>i._syncPendingControls()?!0:e,!1);return n&&this.updateValueAndValidity({onlySelf:!0}),n}_forEachChild(n){this.controls.forEach((e,i)=>{n(e,i)})}_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}},dk=gx;function kB(t){return!!t&&(t.asyncValidators!==void 0||t.validators!==void 0||t.updateOn!==void 0)}var ro=(()=>{class t{useNonNullable=!1;get nonNullable(){let e=new t;return e.useNonNullable=!0,e}group(e,i=null){let r=this._reduceControls(e),o={};return kB(i)?o=i:i!==null&&(o.validators=i.validator,o.asyncValidators=i.asyncValidator),new hu(r,o)}record(e,i=null){let r=this._reduceControls(e);return new JS(r,i)}control(e,i,r){let o={};return this.useNonNullable?(kB(i)?o=i:(o.validators=i,o.asyncValidators=r),new ia(e,Ee(k({},o),{nonNullable:!0}))):new ia(e,i,r)}array(e,i,r){let o=e.map(a=>this._createControl(a));return new gx(o,i,r)}_reduceControls(e){let i={};return Object.keys(e).forEach(r=>{i[r]=this._createControl(e[r])}),i}_createControl(e){if(e instanceof ia)return e;if(e instanceof fc)return e;if(Array.isArray(e)){let i=e[0],r=e.length>1?e[1]:null,o=e.length>2?e[2]:null;return this.control(i,r,o)}else return this.control(e)}static \u0275fac=function(i){return new(i||t)};static \u0275prov=R({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();var pl=(()=>{class t{static withConfig(e){return{ngModule:t,providers:[{provide:Sh,useValue:e.callSetDisabledState??vx}]}}static \u0275fac=function(i){return new(i||t)};static \u0275mod=ee({type:t});static \u0275inj=J({imports:[YB]})}return t})(),$n=(()=>{class t{static withConfig(e){return{ngModule:t,providers:[{provide:ck,useValue:e.warnOnNgModelWithFormControl??"always"},{provide:Sh,useValue:e.callSetDisabledState??vx}]}}static \u0275fac=function(i){return new(i||t)};static \u0275mod=ee({type:t});static \u0275inj=J({imports:[YB]})}return t})();var Pi=(()=>{class t{static \u0275fac=function(i){return new(i||t)};static \u0275mod=ee({type:t});static \u0275inj=J({imports:[De,Jm,Ci,De]})}return t})();var gee=["trigger"],_ee=["panel"],bee=[[["mat-select-trigger"]],"*"],vee=["mat-select-trigger","*"];function yee(t,n){if(t&1&&(m(0,"span",4),g(1),h()),t&2){let e=x();f(),N(e.placeholder)}}function xee(t,n){t&1&&ne(0)}function Cee(t,n){if(t&1&&(m(0,"span",11),g(1),h()),t&2){let e=x(2);f(),N(e.triggerValue)}}function wee(t,n){if(t&1&&(m(0,"span",5),V(1,xee,1,0)(2,Cee,2,1,"span",11),h()),t&2){let e=x();f(),B(e.customTrigger?1:2)}}function Dee(t,n){if(t&1){let e=q();m(0,"div",12,1),S("keydown",function(r){T(e);let o=x();return I(o._handleKeydown(r))}),ne(2,1),h()}if(t&2){let e=x();nt(qo("mat-mdc-select-panel mdc-menu-surface mdc-menu-surface--open ",e._getPanelTheme())),G("mat-select-panel-animations-enabled",!e._animationsDisabled),v("ngClass",e.panelClass),X("id",e.id+"-panel")("aria-multiselectable",e.multiple)("aria-label",e.ariaLabel||null)("aria-labelledby",e._getPanelAriaLabelledby())}}var uk=new O("mat-select-scroll-strategy",{providedIn:"root",factory:()=>{let t=u(de);return()=>En(t)}});function QB(t){let n=u(de);return()=>En(n)}var KB=new O("MAT_SELECT_CONFIG"),ZB={provide:uk,deps:[],useFactory:QB},XB=new O("MatSelectTrigger"),yx=class{source;value;constructor(n,e){this.source=n,this.value=e}},La=(()=>{class t{_viewportRuler=u(tr);_changeDetectorRef=u(ye);_elementRef=u(Y);_dir=u(Bt,{optional:!0});_idGenerator=u(Ze);_renderer=u(ze);_parentFormField=u(ta,{optional:!0});ngControl=u(Un,{self:!0,optional:!0});_liveAnnouncer=u(Zf);_defaultOptions=u(KB,{optional:!0});_animationsDisabled=Ye();_initialized=new z;_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 i=this.options.toArray()[e];if(i){let r=this.panel.nativeElement,o=eg(e,this.options,this.optionGroups),a=i._getHostElement();e===0&&o===1?r.scrollTop=0:r.scrollTop=tg(a.offsetTop,a.offsetHeight,r.scrollTop,r.offsetHeight)}}_positioningSettled(){this._scrollOptionIntoView(this._keyManager.activeItemIndex||0)}_getChangeEvent(e){return new yx(this,e)}_scrollStrategyFactory=u(uk);_panelOpen=!1;_compareWith=(e,i)=>e===i;_uid=this._idGenerator.getId("mat-select-");_triggerAriaLabelledBy=null;_previousControl;_destroy=new z;_errorStateTracker;stateChanges=new z;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=he(!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(Le.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=In(()=>{let e=this.options;return e?e.changes.pipe(Ue(e),je(()=>Je(...e.map(i=>i.onSelectionChange)))):this._initialized.pipe(je(()=>this.optionSelectionChanges))});openedChange=new U;_openedStream=this.openedChange.pipe(ce(e=>e),se(()=>{}));_closedStream=this.openedChange.pipe(ce(e=>!e),se(()=>{}));selectionChange=new U;valueChange=new U;constructor(){let e=u(ul),i=u(gc,{optional:!0}),r=u(Ji,{optional:!0}),o=u(new Oi("tabindex"),{optional:!0});this.ngControl&&(this.ngControl.valueAccessor=this),this._defaultOptions?.typeaheadDebounceInterval!=null&&(this.typeaheadDebounceInterval=this._defaultOptions.typeaheadDebounceInterval),this._errorStateTracker=new dl(e,this.ngControl,r,i,this.stateChanges),this._scrollStrategy=this._scrollStrategyFactory(),this.tabIndex=o==null?0:parseInt(o)||0,this.id=this.id}ngOnInit(){this._selectionModel=new mg(this.multiple),this.stateChanges.next(),this._viewportRuler.change().pipe(we(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(we(this._destroy)).subscribe(e=>{e.added.forEach(i=>i.select()),e.removed.forEach(i=>i.deselect())}),this.options.changes.pipe(Ue(null),we(this._destroy)).subscribe(()=>{this._resetOptions(),this._initializeSelection()})}ngDoCheck(){let e=this._getTriggerAriaLabelledby(),i=this.ngControl;if(e!==this._triggerAriaLabelledBy){let r=this._elementRef.nativeElement;this._triggerAriaLabelledBy=e,e?r.setAttribute("aria-labelledby",e):r.removeAttribute("aria-labelledby")}i&&(this._previousControl!==i.control&&(this._previousControl!==void 0&&i.disabled!==null&&i.disabled!==this.disabled&&(this.disabled=i.disabled),this._previousControl=i.control),this.updateErrorState())}ngOnChanges(e){(e.disabled||e.userAriaDescribedBy)&&this.stateChanges.next(),e.typeaheadDebounceInterval&&this._keyManager&&this._keyManager.withTypeAhead(this.typeaheadDebounceInterval)}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(ct(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 i=`${this.id}-panel`;this._trackedModal&&cc(this._trackedModal,"aria-owns",i),ih(e,"aria-owns",i),this._trackedModal=e}_clearFromModal(){if(!this._trackedModal)return;let e=`${this.id}-panel`;cc(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=()=>{i(),clearTimeout(r),this._cleanupDetach=void 0};let e=this.panel.nativeElement,i=this._renderer.listen(e,"animationend",o=>{o.animationName==="_mat-select-exit"&&(this._cleanupDetach?.(),this._detachOverlay())}),r=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(i=>i.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 i=e.keyCode,r=i===40||i===38||i===37||i===39,o=i===13||i===32,a=this._keyManager;if(!a.isTyping()&&o&&!Lt(e)||(this.multiple||e.altKey)&&r)e.preventDefault(),this.open();else if(!this.multiple){let s=this.selected;a.onKeydown(e);let l=this.selected;l&&s!==l&&this._liveAnnouncer.announce(l.viewValue,1e4)}}_handleOpenKeydown(e){let i=this._keyManager,r=e.keyCode,o=r===40||r===38,a=i.isTyping();if(o&&e.altKey)e.preventDefault(),this.close();else if(!a&&(r===13||r===32)&&i.activeItem&&!Lt(e))e.preventDefault(),i.activeItem._selectViaInteraction();else if(!a&&this._multiple&&r===65&&e.ctrlKey){e.preventDefault();let s=this.options.some(l=>!l.disabled&&!l.selected);this.options.forEach(l=>{l.disabled||(s?l.select():l.deselect())})}else{let s=i.activeItemIndex;i.onKeydown(e),this._multiple&&o&&e.shiftKey&&i.activeItem&&i.activeItemIndex!==s&&i.activeItem._selectViaInteraction()}}_handleOverlayKeydown(e){e.keyCode===27&&!Lt(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())}_getPanelTheme(){return this._parentFormField?`mat-${this._parentFormField.color}`:""}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(i=>i.setInactiveStyles()),this._selectionModel.clear(),this.multiple&&e)Array.isArray(e),e.forEach(i=>this._selectOptionByValue(i)),this._sortValues();else{let i=this._selectOptionByValue(e);i?this._keyManager.updateActiveItem(i):this.panelOpen||this._keyManager.updateActiveItem(-1)}this._changeDetectorRef.markForCheck()}_selectOptionByValue(e){let i=this.options.find(r=>{if(this._selectionModel.isSelected(r))return!1;try{return(r.value!=null||this.canSelectNullableOptions)&&this._compareWith(r.value,e)}catch{return!1}});return i&&this._selectionModel.select(i),i}_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 Dh?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 Jd(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=Je(this.options.changes,this._destroy);this.optionSelectionChanges.pipe(we(e)).subscribe(i=>{this._onSelect(i.source,i.isUserInput),i.isUserInput&&!this.multiple&&this._panelOpen&&(this.close(),this.focus())}),Je(...this.options.map(i=>i._stateChanges)).pipe(we(e)).subscribe(()=>{this._changeDetectorRef.detectChanges(),this.stateChanges.next()})}_onSelect(e,i){let r=this._selectionModel.isSelected(e);!this.canSelectNullableOptions&&e.value==null&&!this._multiple?(e.deselect(),this._selectionModel.clear(),this.value!=null&&this._propagateChanges(e.value)):(r!==e.selected&&(e.selected?this._selectionModel.select(e):this._selectionModel.deselect(e)),i&&this._keyManager.setActiveItem(e),this.multiple&&(this._sortValues(),i&&this.focus())),r!==this._selectionModel.isSelected(e)&&this._propagateChanges(),this.stateChanges.next()}_sortValues(){if(this.multiple){let e=this.options.toArray();this._selectionModel.sort((i,r)=>this.sortComparator?this.sortComparator(i,r,e):e.indexOf(i)-e.indexOf(r)),this.stateChanges.next()}}_propagateChanges(e){let i;this.multiple?i=this.selected.map(r=>r.value):i=this.selected?this.selected.value:e,this._value=i,this.valueChange.emit(i),this._onChange(i),this.selectionChange.emit(this._getChangeEvent(i)),this._changeDetectorRef.markForCheck()}_highlightCorrectOption(){if(this._keyManager)if(this.empty){let e=-1;for(let i=0;i0&&!!this._overlayDir}focus(e){this._elementRef.nativeElement.focus(e)}_getPanelAriaLabelledby(){if(this.ariaLabel)return null;let e=this._parentFormField?.getLabelId()||null,i=e?e+" ":"";return this.ariaLabelledby?i+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){e.length?this._elementRef.nativeElement.setAttribute("aria-describedby",e.join(" ")):this._elementRef.nativeElement.removeAttribute("aria-describedby")}onContainerClick(){this.focus(),this.open()}get shouldLabelFloat(){return this.panelOpen||!this.empty||this.focused&&!!this.placeholder}static \u0275fac=function(i){return new(i||t)};static \u0275cmp=E({type:t,selectors:[["mat-select"]],contentQueries:function(i,r,o){if(i&1&&(xe(o,XB,5),xe(o,wn,5),xe(o,nu,5)),i&2){let a;j(a=H())&&(r.customTrigger=a.first),j(a=H())&&(r.options=a),j(a=H())&&(r.optionGroups=a)}},viewQuery:function(i,r){if(i&1&&(ie(gee,5),ie(_ee,5),ie(ox,5)),i&2){let o;j(o=H())&&(r.trigger=o.first),j(o=H())&&(r.panel=o.first),j(o=H())&&(r._overlayDir=o.first)}},hostAttrs:["role","combobox","aria-haspopup","listbox",1,"mat-mdc-select"],hostVars:21,hostBindings:function(i,r){i&1&&S("keydown",function(a){return r._handleKeydown(a)})("focus",function(){return r._onFocus()})("blur",function(){return r._onBlur()}),i&2&&(X("id",r.id)("tabindex",r.disabled?-1:r.tabIndex)("aria-controls",r.panelOpen?r.id+"-panel":null)("aria-expanded",r.panelOpen)("aria-label",r.ariaLabel||null)("aria-required",r.required.toString())("aria-disabled",r.disabled.toString())("aria-invalid",r.errorState)("aria-activedescendant",r._getAriaActiveDescendant()),G("mat-mdc-select-disabled",r.disabled)("mat-mdc-select-invalid",r.errorState)("mat-mdc-select-required",r.required)("mat-mdc-select-empty",r.empty)("mat-mdc-select-multiple",r.multiple)("mat-select-open",r.panelOpen))},inputs:{userAriaDescribedBy:[0,"aria-describedby","userAriaDescribedBy"],panelClass:"panelClass",disabled:[2,"disabled","disabled",L],disableRipple:[2,"disableRipple","disableRipple",L],tabIndex:[2,"tabIndex","tabIndex",e=>e==null?0:dt(e)],hideSingleSelectionIndicator:[2,"hideSingleSelectionIndicator","hideSingleSelectionIndicator",L],placeholder:"placeholder",required:[2,"required","required",L],multiple:[2,"multiple","multiple",L],disableOptionCentering:[2,"disableOptionCentering","disableOptionCentering",L],compareWith:"compareWith",value:"value",ariaLabel:[0,"aria-label","ariaLabel"],ariaLabelledby:[0,"aria-labelledby","ariaLabelledby"],errorStateMatcher:"errorStateMatcher",typeaheadDebounceInterval:[2,"typeaheadDebounceInterval","typeaheadDebounceInterval",dt],sortComparator:"sortComparator",id:"id",panelWidth:"panelWidth",canSelectNullableOptions:[2,"canSelectNullableOptions","canSelectNullableOptions",L]},outputs:{openedChange:"openedChange",_openedStream:"opened",_closedStream:"closed",selectionChange:"selectionChange",valueChange:"valueChange"},exportAs:["matSelect"],features:[Ce([{provide:Pa,useExisting:t},{provide:iu,useExisting:t}]),Ae],ngContentSelectors:vee,decls:11,vars:9,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","","cdkConnectedOverlayLockPosition","","cdkConnectedOverlayHasBackdrop","","cdkConnectedOverlayBackdropClass","cdk-overlay-transparent-backdrop",3,"detach","backdropClick","overlayKeydown","cdkConnectedOverlayDisableClose","cdkConnectedOverlayPanelClass","cdkConnectedOverlayScrollStrategy","cdkConnectedOverlayOrigin","cdkConnectedOverlayPositions","cdkConnectedOverlayWidth","cdkConnectedOverlayFlexibleDimensions"],[1,"mat-mdc-select-min-line"],["role","listbox","tabindex","-1",3,"keydown","ngClass"]],template:function(i,r){if(i&1){let o=q();Se(bee),m(0,"div",2,0),S("click",function(){return T(o),I(r.open())}),m(3,"div",3),V(4,yee,2,1,"span",4)(5,wee,3,1,"span",5),h(),m(6,"div",6)(7,"div",7),Zt(),m(8,"svg",8),M(9,"path",9),h()()()(),A(10,Dee,3,10,"ng-template",10),S("detach",function(){return T(o),I(r.close())})("backdropClick",function(){return T(o),I(r.close())})("overlayKeydown",function(s){return T(o),I(r._handleOverlayKeydown(s))})}if(i&2){let o=Me(1);f(3),X("id",r._valueId),f(),B(r.empty?4:5),f(6),v("cdkConnectedOverlayDisableClose",!0)("cdkConnectedOverlayPanelClass",r._overlayPanelClass)("cdkConnectedOverlayScrollStrategy",r._scrollStrategy)("cdkConnectedOverlayOrigin",r._preferredOverlayOrigin||o)("cdkConnectedOverlayPositions",r._positions)("cdkConnectedOverlayWidth",r._overlayWidth)("cdkConnectedOverlayFlexibleDimensions",!0)}},dependencies:[Dh,ox,Bd],styles:[`@keyframes _mat-select-enter{from{opacity:0;transform:scaleY(0.8)}to{opacity:1;transform:none}}@keyframes _mat-select-exit{from{opacity:1}to{opacity:0}}.mat-mdc-select{display:inline-block;width:100%;outline:none;-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;color:var(--mat-select-enabled-trigger-text-color, var(--mat-sys-on-surface));font-family:var(--mat-select-trigger-text-font, var(--mat-sys-body-large-font));line-height:var(--mat-select-trigger-text-line-height, var(--mat-sys-body-large-line-height));font-size:var(--mat-select-trigger-text-size, var(--mat-sys-body-large-size));font-weight:var(--mat-select-trigger-text-weight, var(--mat-sys-body-large-weight));letter-spacing:var(--mat-select-trigger-text-tracking, var(--mat-sys-body-large-tracking))}div.mat-mdc-select-panel{box-shadow:var(--mat-select-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-mdc-select-disabled{color:var(--mat-select-disabled-trigger-text-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent))}.mat-mdc-select-disabled .mat-mdc-select-placeholder{color:var(--mat-select-disabled-trigger-text-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent))}.mat-mdc-select-trigger{display:inline-flex;align-items:center;cursor:pointer;position:relative;box-sizing:border-box;width:100%}.mat-mdc-select-disabled .mat-mdc-select-trigger{-webkit-user-select:none;user-select:none;cursor:default}.mat-mdc-select-value{width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.mat-mdc-select-value-text{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.mat-mdc-select-arrow-wrapper{height:24px;flex-shrink:0;display:inline-flex;align-items:center}.mat-form-field-appearance-fill .mdc-text-field--no-label .mat-mdc-select-arrow-wrapper{transform:none}.mat-mdc-form-field .mat-mdc-select.mat-mdc-select-invalid .mat-mdc-select-arrow,.mat-form-field-invalid:not(.mat-form-field-disabled) .mat-mdc-form-field-infix::after{color:var(--mat-select-invalid-arrow-color, var(--mat-sys-error))}.mat-mdc-select-arrow{width:10px;height:5px;position:relative;color:var(--mat-select-enabled-arrow-color, var(--mat-sys-on-surface-variant))}.mat-mdc-form-field.mat-focused .mat-mdc-select-arrow{color:var(--mat-select-focused-arrow-color, var(--mat-sys-primary))}.mat-mdc-form-field .mat-mdc-select.mat-mdc-select-disabled .mat-mdc-select-arrow{color:var(--mat-select-disabled-arrow-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent))}.mat-select-open .mat-mdc-select-arrow{transform:rotate(180deg)}.mat-form-field-animations-enabled .mat-mdc-select-arrow{transition:transform 80ms linear}.mat-mdc-select-arrow svg{fill:currentColor;position:absolute;top:50%;left:50%;transform:translate(-50%, -50%)}@media(forced-colors: active){.mat-mdc-select-arrow svg{fill:CanvasText}.mat-mdc-select-disabled .mat-mdc-select-arrow svg{fill:GrayText}}div.mat-mdc-select-panel{width:100%;max-height:275px;outline:0;overflow:auto;padding:8px 0;border-radius:4px;box-sizing:border-box;position:relative;background-color:var(--mat-select-panel-background-color, var(--mat-sys-surface-container))}@media(forced-colors: active){div.mat-mdc-select-panel{outline:solid 1px}}.cdk-overlay-pane:not(.mat-mdc-select-panel-above) div.mat-mdc-select-panel{border-top-left-radius:0;border-top-right-radius:0;transform-origin:top center}.mat-mdc-select-panel-above div.mat-mdc-select-panel{border-bottom-left-radius:0;border-bottom-right-radius:0;transform-origin:bottom center}.mat-select-panel-animations-enabled{animation:_mat-select-enter 120ms cubic-bezier(0, 0, 0.2, 1)}.mat-select-panel-animations-enabled.mat-select-panel-exit{animation:_mat-select-exit 100ms linear}.mat-mdc-select-placeholder{transition:color 400ms 133.3333333333ms cubic-bezier(0.25, 0.8, 0.25, 1);color:var(--mat-select-placeholder-text-color, var(--mat-sys-on-surface-variant))}.mat-mdc-form-field:not(.mat-form-field-animations-enabled) .mat-mdc-select-placeholder,._mat-animation-noopable .mat-mdc-select-placeholder{transition:none}.mat-form-field-hide-placeholder .mat-mdc-select-placeholder{color:rgba(0,0,0,0);-webkit-text-fill-color:rgba(0,0,0,0);transition:none;display:block}.mat-mdc-form-field-type-mat-select:not(.mat-form-field-disabled) .mat-mdc-text-field-wrapper{cursor:pointer}.mat-mdc-form-field-type-mat-select.mat-form-field-appearance-fill .mat-mdc-floating-label{max-width:calc(100% - 18px)}.mat-mdc-form-field-type-mat-select.mat-form-field-appearance-fill .mdc-floating-label--float-above{max-width:calc(100%/0.75 - 24px)}.mat-mdc-form-field-type-mat-select.mat-form-field-appearance-outline .mdc-notched-outline__notch{max-width:calc(100% - 60px)}.mat-mdc-form-field-type-mat-select.mat-form-field-appearance-outline .mdc-text-field--label-floating .mdc-notched-outline__notch{max-width:calc(100% - 24px)}.mat-mdc-select-min-line:empty::before{content:" ";white-space:pre;width:1px;display:inline-block;visibility:hidden}.mat-form-field-appearance-fill .mat-mdc-select-arrow-wrapper{transform:var(--mat-select-arrow-transform, translateY(-8px))} +`],encapsulation:2,changeDetection:0})}return t})();var _c=(()=>{class t{static \u0275fac=function(i){return new(i||t)};static \u0275mod=ee({type:t});static \u0275inj=J({providers:[ZB],imports:[nr,ch,De,Cr,Pi,ch,De]})}return t})();var Eee=["mat-icon-button",""],Mee=["*"],See=new O("MAT_BUTTON_CONFIG");function JB(t){return t==null?void 0:dt(t)}var xx=(()=>{class t{_elementRef=u(Y);_ngZone=u(ae);_animationsDisabled=Ye();_config=u(See,{optional:!0});_focusMonitor=u(ti);_cleanupClick;_renderer=u(ze);_rippleLoader=u(ey);_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(){u(ht).load(ki);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",i){e?this._focusMonitor.focusVia(this._elementRef.nativeElement,e,i):this._elementRef.nativeElement.focus(i)}_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(i){return new(i||t)};static \u0275dir=P({type:t,hostAttrs:[1,"mat-mdc-button-base"],hostVars:13,hostBindings:function(i,r){i&2&&(X("disabled",r._getDisabledAttribute())("aria-disabled",r._getAriaDisabled())("tabindex",r._getTabIndex()),nt(r.color?"mat-"+r.color:""),G("mat-mdc-button-disabled",r.disabled)("mat-mdc-button-disabled-interactive",r.disabledInteractive)("mat-unthemed",!r.color)("_mat-animation-noopable",r._animationsDisabled))},inputs:{color:"color",disableRipple:[2,"disableRipple","disableRipple",L],disabled:[2,"disabled","disabled",L],ariaDisabled:[2,"aria-disabled","ariaDisabled",L],disabledInteractive:[2,"disabledInteractive","disabledInteractive",L],tabIndex:[2,"tabIndex","tabIndex",JB],_tabindex:[2,"tabindex","_tabindex",JB]}})}return t})(),Yt=(()=>{class t extends xx{constructor(){super(),this._rippleLoader.configureRipple(this._elementRef.nativeElement,{centered:!0})}static \u0275fac=function(i){return new(i||t)};static \u0275cmp=E({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:[le],attrs:Eee,ngContentSelectors:Mee,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(i,r){i&1&&(Se(),Xt(0,"span",0),ne(1),Xt(2,"span",1)(3,"span",2))},styles:[`.mat-mdc-icon-button{-webkit-user-select:none;user-select:none;display:inline-block;position:relative;box-sizing:border-box;border:none;outline:none;background-color:rgba(0,0,0,0);fill:currentColor;text-decoration:none;cursor:pointer;z-index:0;overflow:visible;border-radius:var(--mat-icon-button-container-shape, var(--mat-sys-corner-full, 50%));flex-shrink:0;text-align:center;width:var(--mat-icon-button-state-layer-size, 40px);height:var(--mat-icon-button-state-layer-size, 40px);padding:calc(calc(var(--mat-icon-button-state-layer-size, 40px) - var(--mat-icon-button-icon-size, 24px)) / 2);font-size:var(--mat-icon-button-icon-size, 24px);color:var(--mat-icon-button-icon-color, var(--mat-sys-on-surface-variant));-webkit-tap-highlight-color:rgba(0,0,0,0)}.mat-mdc-icon-button .mat-mdc-button-ripple,.mat-mdc-icon-button .mat-mdc-button-persistent-ripple,.mat-mdc-icon-button .mat-mdc-button-persistent-ripple::before{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none;border-radius:inherit}.mat-mdc-icon-button .mat-mdc-button-ripple{overflow:hidden}.mat-mdc-icon-button .mat-mdc-button-persistent-ripple::before{content:"";opacity:0}.mat-mdc-icon-button .mdc-button__label,.mat-mdc-icon-button .mat-icon{z-index:1;position:relative}.mat-mdc-icon-button .mat-focus-indicator{top:0;left:0;right:0;bottom:0;position:absolute;border-radius:inherit}.mat-mdc-icon-button:focus>.mat-focus-indicator::before{content:"";border-radius:inherit}.mat-mdc-icon-button .mat-ripple-element{background-color:var(--mat-icon-button-ripple-color, color-mix(in srgb, var(--mat-sys-on-surface-variant) calc(var(--mat-sys-pressed-state-layer-opacity) * 100%), transparent))}.mat-mdc-icon-button .mat-mdc-button-persistent-ripple::before{background-color:var(--mat-icon-button-state-layer-color, var(--mat-sys-on-surface-variant))}.mat-mdc-icon-button.mat-mdc-button-disabled .mat-mdc-button-persistent-ripple::before{background-color:var(--mat-icon-button-disabled-state-layer-color, var(--mat-sys-on-surface-variant))}.mat-mdc-icon-button:hover>.mat-mdc-button-persistent-ripple::before{opacity:var(--mat-icon-button-hover-state-layer-opacity, var(--mat-sys-hover-state-layer-opacity))}.mat-mdc-icon-button.cdk-program-focused>.mat-mdc-button-persistent-ripple::before,.mat-mdc-icon-button.cdk-keyboard-focused>.mat-mdc-button-persistent-ripple::before,.mat-mdc-icon-button.mat-mdc-button-disabled-interactive:focus>.mat-mdc-button-persistent-ripple::before{opacity:var(--mat-icon-button-focus-state-layer-opacity, var(--mat-sys-focus-state-layer-opacity))}.mat-mdc-icon-button:active>.mat-mdc-button-persistent-ripple::before{opacity:var(--mat-icon-button-pressed-state-layer-opacity, var(--mat-sys-pressed-state-layer-opacity))}.mat-mdc-icon-button .mat-mdc-button-touch-target{position:absolute;top:50%;height:var(--mat-icon-button-touch-target-size, 48px);display:var(--mat-icon-button-touch-target-display, block);left:50%;width:var(--mat-icon-button-touch-target-size, 48px);transform:translate(-50%, -50%)}.mat-mdc-icon-button._mat-animation-noopable{transition:none !important;animation:none !important}.mat-mdc-icon-button[disabled],.mat-mdc-icon-button.mat-mdc-button-disabled{cursor:default;pointer-events:none;color:var(--mat-icon-button-disabled-icon-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent))}.mat-mdc-icon-button.mat-mdc-button-disabled-interactive{pointer-events:auto}.mat-mdc-icon-button img,.mat-mdc-icon-button svg{width:var(--mat-icon-button-icon-size, 24px);height:var(--mat-icon-button-icon-size, 24px);vertical-align:baseline}.mat-mdc-icon-button .mat-mdc-button-persistent-ripple{border-radius:var(--mat-icon-button-container-shape, var(--mat-sys-corner-full, 50%))}.mat-mdc-icon-button[hidden]{display:none}.mat-mdc-icon-button.mat-unthemed:not(.mdc-ripple-upgraded):focus::before,.mat-mdc-icon-button.mat-primary:not(.mdc-ripple-upgraded):focus::before,.mat-mdc-icon-button.mat-accent:not(.mdc-ripple-upgraded):focus::before,.mat-mdc-icon-button.mat-warn:not(.mdc-ripple-upgraded):focus::before{background:rgba(0,0,0,0);opacity:1} `,`@media(forced-colors: active){.mat-mdc-button:not(.mdc-button--outlined),.mat-mdc-unelevated-button:not(.mdc-button--outlined),.mat-mdc-raised-button:not(.mdc-button--outlined),.mat-mdc-outlined-button:not(.mdc-button--outlined),.mat-mdc-button-base.mat-tonal-button,.mat-mdc-icon-button.mat-mdc-icon-button,.mat-mdc-outlined-button .mdc-button__ripple{outline:solid 1px}} -`],encapsulation:2,changeDetection:0})}return t})();var _ee=["tooltip"],lS=20;var cS=new T("mat-tooltip-scroll-strategy",{providedIn:"root",factory:()=>{let t=u(de);return()=>wn(t,{scrollThrottle:lS})}});function XB(t){let n=u(de);return()=>wn(n,{scrollThrottle:lS})}var dS={provide:cS,deps:[],useFactory:XB};function JB(){return{showDelay:0,hideDelay:0,touchendHideDelay:1500}}var e3=new T("mat-tooltip-default-options",{providedIn:"root",factory:JB});var KB="tooltip-panel",ZB=rc({passive:!0}),bee=8,vee=8,yee=24,xee=200,Eo=(()=>{class t{_elementRef=u(q);_ngZone=u(ae);_platform=u(qe);_ariaDescriber=u(Xm);_focusMonitor=u(Yt);_dir=u(Vt);_injector=u(de);_viewContainerRef=u(nt);_animationsDisabled=Ye();_defaultOptions=u(e3,{optional:!0});_overlayRef;_tooltipInstance;_overlayPanelClass;_portal;_position="below";_positionAtOrigin=!1;_disabled=!1;_tooltipClass;_viewInitialized=!1;_pointerExitEventsInitialized=!1;_tooltipComponent=t3;_viewportMargin=8;_currentPosition;_cssClassPrefix="mat-mdc";_ariaDescriptionPending;_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=Ai(e),this._detach(),this._overlayRef=null}get disabled(){return this._disabled}set disabled(e){let i=Ai(e);this._disabled!==i&&(this._disabled=i,i?this.hide(0):this._setupPointerEnterEventsIfNeeded(),this._syncAriaDescription(this.message))}get showDelay(){return this._showDelay}set showDelay(e){this._showDelay=Ln(e)}_showDelay;get hideDelay(){return this._hideDelay}set hideDelay(e){this._hideDelay=Ln(e),this._tooltipInstance&&(this._tooltipInstance._mouseLeaveHideDelay=this._hideDelay)}_hideDelay;touchGestures="auto";get message(){return this._message}set message(e){let i=this._message;this._message=e!=null?String(e).trim():"",!this._message&&this._isTooltipVisible()?this.hide(0):(this._setupPointerEnterEventsIfNeeded(),this._updateTooltipMessage()),this._syncAriaDescription(i)}_message="";get tooltipClass(){return this._tooltipClass}set tooltipClass(e){this._tooltipClass=e,this._tooltipInstance&&this._setTooltipClass(this._tooltipClass)}_passiveListeners=[];_touchstartTimeout=null;_destroyed=new z;_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=bee}ngAfterViewInit(){this._viewInitialized=!0,this._setupPointerEnterEventsIfNeeded(),this._focusMonitor.monitor(this._elementRef).pipe(Te(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._passiveListeners.forEach(([i,r])=>{e.removeEventListener(i,r,ZB)}),this._passiveListeners.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,i){if(this.disabled||!this.message||this._isTooltipVisible()){this._tooltipInstance?._cancelPendingAnimations();return}let r=this._createOverlay(i);this._detach(),this._portal=this._portal||new Zr(this._tooltipComponent,this._viewContainerRef);let o=this._tooltipInstance=r.attach(this._portal).instance;o._triggerElement=this._elementRef.nativeElement,o._mouseLeaveHideDelay=this._hideDelay,o.afterHidden().pipe(Te(this._destroyed)).subscribe(()=>this._detach()),this._setTooltipClass(this._tooltipClass),this._updateTooltipMessage(),o.show(e)}hide(e=this.hideDelay){let i=this._tooltipInstance;i&&(i.isVisible()?i.hide(e):(i._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 a=this._overlayRef.getConfig().positionStrategy;if((!this.positionAtOrigin||!e)&&a._origin instanceof q)return this._overlayRef;this._detach()}let i=this._injector.get(ws).getAncestorScrollContainers(this._elementRef),r=`${this._cssClassPrefix}-${KB}`,o=Fa(this._injector,this.positionAtOrigin?e||this._elementRef:this._elementRef).withTransformOriginOn(`.${this._cssClassPrefix}-tooltip`).withFlexibleDimensions(!1).withViewportMargin(this._viewportMargin).withScrollableContainers(i);return o.positionChanges.pipe(Te(this._destroyed)).subscribe(a=>{this._updateCurrentPositionClass(a.connectionPair),this._tooltipInstance&&a.scrollableViewProperties.isOverlayClipped&&this._tooltipInstance.isVisible()&&this._ngZone.run(()=>this.hide(0))}),this._overlayRef=Nr(this._injector,{direction:this._dir,positionStrategy:o,panelClass:this._overlayPanelClass?[...this._overlayPanelClass,r]:r,scrollStrategy:this._injector.get(cS)(),disableAnimations:this._animationsDisabled}),this._updatePosition(this._overlayRef),this._overlayRef.detachments().pipe(Te(this._destroyed)).subscribe(()=>this._detach()),this._overlayRef.outsidePointerEvents().pipe(Te(this._destroyed)).subscribe(()=>this._tooltipInstance?._handleBodyInteraction()),this._overlayRef.keydownEvents().pipe(Te(this._destroyed)).subscribe(a=>{this._isTooltipVisible()&&a.keyCode===27&&!Ft(a)&&(a.preventDefault(),a.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(Te(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 i=e.getConfig().positionStrategy,r=this._getOrigin(),o=this._getOverlayPosition();i.withPositions([this._addOffset(M(M({},r.main),o.main)),this._addOffset(M(M({},r.fallback),o.fallback))])}_addOffset(e){let i=vee,r=!this._dir||this._dir.value=="ltr";return e.originY==="top"?e.offsetY=-i:e.originY==="bottom"?e.offsetY=i:e.originX==="start"?e.offsetX=r?-i:i:e.originX==="end"&&(e.offsetX=r?i:-i),e}_getOrigin(){let e=!this._dir||this._dir.value=="ltr",i=this.position,r;i=="above"||i=="below"?r={originX:"center",originY:i=="above"?"top":"bottom"}:i=="before"||i=="left"&&e||i=="right"&&!e?r={originX:"start",originY:"center"}:(i=="after"||i=="right"&&e||i=="left"&&!e)&&(r={originX:"end",originY:"center"});let{x:o,y:a}=this._invertPosition(r.originX,r.originY);return{main:r,fallback:{originX:o,originY:a}}}_getOverlayPosition(){let e=!this._dir||this._dir.value=="ltr",i=this.position,r;i=="above"?r={overlayX:"center",overlayY:"bottom"}:i=="below"?r={overlayX:"center",overlayY:"top"}:i=="before"||i=="left"&&e||i=="right"&&!e?r={overlayX:"end",overlayY:"center"}:(i=="after"||i=="right"&&e||i=="left"&&!e)&&(r={overlayX:"start",overlayY:"center"});let{x:o,y:a}=this._invertPosition(r.overlayX,r.overlayY);return{main:r,fallback:{overlayX:o,overlayY:a}}}_updateTooltipMessage(){this._tooltipInstance&&(this._tooltipInstance.message=this.message,this._tooltipInstance._markForCheck(),pt(()=>{this._tooltipInstance&&this._overlayRef.updatePosition()},{injector:this._injector}))}_setTooltipClass(e){this._tooltipInstance&&(this._tooltipInstance.tooltipClass=e,this._tooltipInstance._markForCheck())}_invertPosition(e,i){return this.position==="above"||this.position==="below"?i==="top"?i="bottom":i==="bottom"&&(i="top"):e==="end"?e="start":e==="start"&&(e="end"),{x:e,y:i}}_updateCurrentPositionClass(e){let{overlayY:i,originX:r,originY:o}=e,a;if(i==="center"?this._dir&&this._dir.value==="rtl"?a=r==="end"?"left":"right":a=r==="start"?"left":"right":a=i==="bottom"&&o==="top"?"above":"below",a!==this._currentPosition){let s=this._overlayRef;if(s){let l=`${this._cssClassPrefix}-${KB}-`;s.removePanelClass(l+this._currentPosition),s.addPanelClass(l+a)}this._currentPosition=a}}_setupPointerEnterEventsIfNeeded(){this._disabled||!this.message||!this._viewInitialized||this._passiveListeners.length||(this._platformSupportsMouseEvents()?this._passiveListeners.push(["mouseenter",e=>{this._setupPointerExitEventsIfNeeded();let i;e.x!==void 0&&e.y!==void 0&&(i=e),this.show(void 0,i)}]):this.touchGestures!=="off"&&(this._disableNativeGesturesIfNecessary(),this._passiveListeners.push(["touchstart",e=>{let i=e.targetTouches?.[0],r=i?{x:i.clientX,y:i.clientY}:void 0;this._setupPointerExitEventsIfNeeded(),this._touchstartTimeout&&clearTimeout(this._touchstartTimeout);let o=500;this._touchstartTimeout=setTimeout(()=>{this._touchstartTimeout=null,this.show(void 0,r)},this._defaultOptions?.touchLongPressShowDelay??o)}])),this._addListeners(this._passiveListeners))}_setupPointerExitEventsIfNeeded(){if(this._pointerExitEventsInitialized)return;this._pointerExitEventsInitialized=!0;let e=[];if(this._platformSupportsMouseEvents())e.push(["mouseleave",i=>{let r=i.relatedTarget;(!r||!this._overlayRef?.overlayElement.contains(r))&&this.hide()}],["wheel",i=>this._wheelListener(i)]);else if(this.touchGestures!=="off"){this._disableNativeGesturesIfNecessary();let i=()=>{this._touchstartTimeout&&clearTimeout(this._touchstartTimeout),this.hide(this._defaultOptions?.touchendHideDelay)};e.push(["touchend",i],["touchcancel",i])}this._addListeners(e),this._passiveListeners.push(...e)}_addListeners(e){e.forEach(([i,r])=>{this._elementRef.nativeElement.addEventListener(i,r,ZB)})}_platformSupportsMouseEvents(){return!this._platform.IOS&&!this._platform.ANDROID}_wheelListener(e){if(this._isTooltipVisible()){let i=this._injector.get(ge).elementFromPoint(e.clientX,e.clientY),r=this._elementRef.nativeElement;i!==r&&!r.contains(i)&&this.hide()}}_disableNativeGesturesIfNecessary(){let e=this.touchGestures;if(e!=="off"){let i=this._elementRef.nativeElement,r=i.style;(e==="on"||i.nodeName!=="INPUT"&&i.nodeName!=="TEXTAREA")&&(r.userSelect=r.msUserSelect=r.webkitUserSelect=r.MozUserSelect="none"),(e==="on"||!i.draggable)&&(r.webkitUserDrag="none"),r.touchAction="none",r.webkitTapHighlightColor="transparent"}}_syncAriaDescription(e){this._ariaDescriptionPending||(this._ariaDescriptionPending=!0,this._ariaDescriber.removeDescription(this._elementRef.nativeElement,e,"tooltip"),this._isDestroyed||pt({write:()=>{this._ariaDescriptionPending=!1,this.message&&!this.disabled&&this._ariaDescriber.describe(this._elementRef.nativeElement,this.message,"tooltip")}},{injector:this._injector}))}static \u0275fac=function(i){return new(i||t)};static \u0275dir=F({type:t,selectors:[["","matTooltip",""]],hostAttrs:[1,"mat-mdc-tooltip-trigger"],hostVars:2,hostBindings:function(i,r){i&2&&G("mat-mdc-tooltip-disabled",r.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 t})(),t3=(()=>{class t{_changeDetectorRef=u(ye);_elementRef=u(q);_isMultiline=!1;message;tooltipClass;_showTimeoutId;_hideTimeoutId;_triggerElement;_mouseLeaveHideDelay;_animationsDisabled=Ye();_tooltip;_closeOnInteraction=!1;_isVisible=!1;_onHide=new z;_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>yee&&e.width>=xee}_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 i=this._tooltip.nativeElement,r=this._showAnimation,o=this._hideAnimation;if(i.classList.remove(e?o:r),i.classList.add(e?r:o),this._isVisible!==e&&(this._isVisible=e,this._changeDetectorRef.markForCheck()),e&&!this._animationsDisabled&&typeof getComputedStyle=="function"){let a=getComputedStyle(i);(a.getPropertyValue("animation-duration")==="0s"||a.getPropertyValue("animation-name")==="none")&&(this._animationsDisabled=!0)}e&&this._onShow(),this._animationsDisabled&&(i.classList.add("_mat-animation-noopable"),this._finalizeAnimation(e))}static \u0275fac=function(i){return new(i||t)};static \u0275cmp=E({type:t,selectors:[["mat-tooltip-component"]],viewQuery:function(i,r){if(i&1&&ie(_ee,7),i&2){let o;B(o=j())&&(r._tooltip=o.first)}},hostAttrs:["aria-hidden","true"],hostBindings:function(i,r){i&1&&S("mouseleave",function(a){return r._handleMouseLeave(a)})},decls:4,vars:4,consts:[["tooltip",""],[1,"mdc-tooltip","mat-mdc-tooltip",3,"animationend","ngClass"],[1,"mat-mdc-tooltip-surface","mdc-tooltip__surface"]],template:function(i,r){if(i&1){let o=Y();h(0,"div",1,0),S("animationend",function(s){return I(o),A(r._handleAnimationEnd(s))}),h(2,"div",2),_(3),p()()}i&2&&(G("mdc-tooltip--multiline",r._isMultiline),y("ngClass",r.tooltipClass),g(3),H(r.message))},dependencies:[Pd],styles:[`.mat-mdc-tooltip{position:relative;transform:scale(0);display:inline-flex}.mat-mdc-tooltip::before{content:"";top:0;right:0;bottom:0;left:0;z-index:-1;position:absolute}.mat-mdc-tooltip-panel-below .mat-mdc-tooltip::before{top:-8px}.mat-mdc-tooltip-panel-above .mat-mdc-tooltip::before{bottom:-8px}.mat-mdc-tooltip-panel-right .mat-mdc-tooltip::before{left:-8px}.mat-mdc-tooltip-panel-left .mat-mdc-tooltip::before{right:-8px}.mat-mdc-tooltip._mat-animation-noopable{animation:none;transform:scale(1)}.mat-mdc-tooltip-surface{word-break:normal;overflow-wrap:anywhere;padding:4px 8px;min-width:40px;max-width:200px;min-height:24px;max-height:40vh;box-sizing:border-box;overflow:hidden;text-align:center;will-change:transform,opacity;background-color:var(--mat-tooltip-container-color, var(--mat-sys-inverse-surface));color:var(--mat-tooltip-supporting-text-color, var(--mat-sys-inverse-on-surface));border-radius:var(--mat-tooltip-container-shape, var(--mat-sys-corner-extra-small));font-family:var(--mat-tooltip-supporting-text-font, var(--mat-sys-body-small-font));font-size:var(--mat-tooltip-supporting-text-size, var(--mat-sys-body-small-size));font-weight:var(--mat-tooltip-supporting-text-weight, var(--mat-sys-body-small-weight));line-height:var(--mat-tooltip-supporting-text-line-height, var(--mat-sys-body-small-line-height));letter-spacing:var(--mat-tooltip-supporting-text-tracking, var(--mat-sys-body-small-tracking))}.mat-mdc-tooltip-surface::before{position:absolute;box-sizing:border-box;width:100%;height:100%;top:0;left:0;border:1px solid rgba(0,0,0,0);border-radius:inherit;content:"";pointer-events:none}.mdc-tooltip--multiline .mat-mdc-tooltip-surface{text-align:left}[dir=rtl] .mdc-tooltip--multiline .mat-mdc-tooltip-surface{text-align:right}.mat-mdc-tooltip-panel{line-height:normal}.mat-mdc-tooltip-panel.mat-mdc-tooltip-panel-non-interactive{pointer-events:none}@keyframes mat-mdc-tooltip-show{0%{opacity:0;transform:scale(0.8)}100%{opacity:1;transform:scale(1)}}@keyframes mat-mdc-tooltip-hide{0%{opacity:1;transform:scale(1)}100%{opacity:0;transform:scale(0.8)}}.mat-mdc-tooltip-show{animation:mat-mdc-tooltip-show 150ms cubic-bezier(0, 0, 0.2, 1) forwards}.mat-mdc-tooltip-hide{animation:mat-mdc-tooltip-hide 75ms cubic-bezier(0.4, 0, 1, 1) forwards} -`],encapsulation:2,changeDetection:0})}return t})();var Br=(()=>{class t{static \u0275fac=function(i){return new(i||t)};static \u0275mod=ee({type:t});static \u0275inj=J({providers:[dS],imports:[ll,er,we,we,vr]})}return t})();var Cee=["matButton",""],wee=[[["",8,"material-icons",3,"iconPositionEnd",""],["mat-icon",3,"iconPositionEnd",""],["","matButtonIcon","",3,"iconPositionEnd",""]],"*",[["","iconPositionEnd","",8,"material-icons"],["mat-icon","iconPositionEnd",""],["","matButtonIcon","","iconPositionEnd",""]]],Dee=[".material-icons:not([iconPositionEnd]), mat-icon:not([iconPositionEnd]), [matButtonIcon]:not([iconPositionEnd])","*",".material-icons[iconPositionEnd], mat-icon[iconPositionEnd], [matButtonIcon][iconPositionEnd]"];var i3=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"]]]),kt=(()=>{class t extends sS{get appearance(){return this._appearance}set appearance(e){this.setAppearance(e||this._config?.defaultAppearance||"text")}_appearance=null;constructor(){super();let e=Eee(this._elementRef.nativeElement);e&&this.setAppearance(e)}setAppearance(e){if(e===this._appearance)return;let i=this._elementRef.nativeElement.classList,r=this._appearance?i3.get(this._appearance):null,o=i3.get(e);r&&i.remove(...r),i.add(...o),this._appearance=e}static \u0275fac=function(i){return new(i||t)};static \u0275cmp=E({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:[le],attrs:Cee,ngContentSelectors:Dee,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(i,r){i&1&&(Me(wee),ai(0,"span",0),oe(1),ft(2,"span",1),oe(3,1),vt(),oe(4,2),ai(5,"span",2)(6,"span",3)),i&2&&G("mdc-button__ripple",!r._isFab)("mdc-fab__ripple",r._isFab)},styles:[`.mat-mdc-button-base{text-decoration:none}.mat-mdc-button-base .mat-icon{min-height:fit-content;flex-shrink:0}.mdc-button{-webkit-user-select:none;user-select:none;position:relative;display:inline-flex;align-items:center;justify-content:center;box-sizing:border-box;min-width:64px;border:none;outline:none;line-height:inherit;-webkit-appearance:none;overflow:visible;vertical-align:middle;background:rgba(0,0,0,0);padding:0 8px}.mdc-button::-moz-focus-inner{padding:0;border:0}.mdc-button:active{outline:none}.mdc-button:hover{cursor:pointer}.mdc-button:disabled{cursor:default;pointer-events:none}.mdc-button[hidden]{display:none}.mdc-button .mdc-button__label{position:relative}.mat-mdc-button{padding:0 var(--mat-button-text-horizontal-padding, 12px);height:var(--mat-button-text-container-height, 40px);font-family:var(--mat-button-text-label-text-font, var(--mat-sys-label-large-font));font-size:var(--mat-button-text-label-text-size, var(--mat-sys-label-large-size));letter-spacing:var(--mat-button-text-label-text-tracking, var(--mat-sys-label-large-tracking));text-transform:var(--mat-button-text-label-text-transform);font-weight:var(--mat-button-text-label-text-weight, var(--mat-sys-label-large-weight))}.mat-mdc-button,.mat-mdc-button .mdc-button__ripple{border-radius:var(--mat-button-text-container-shape, var(--mat-sys-corner-full))}.mat-mdc-button:not(:disabled){color:var(--mat-button-text-label-text-color, var(--mat-sys-primary))}.mat-mdc-button[disabled],.mat-mdc-button.mat-mdc-button-disabled{cursor:default;pointer-events:none;color:var(--mat-button-text-disabled-label-text-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent))}.mat-mdc-button.mat-mdc-button-disabled-interactive{pointer-events:auto}.mat-mdc-button:has(.material-icons,mat-icon,[matButtonIcon]){padding:0 var(--mat-button-text-with-icon-horizontal-padding, 16px)}.mat-mdc-button>.mat-icon{margin-right:var(--mat-button-text-icon-spacing, 8px);margin-left:var(--mat-button-text-icon-offset, -4px)}[dir=rtl] .mat-mdc-button>.mat-icon{margin-right:var(--mat-button-text-icon-offset, -4px);margin-left:var(--mat-button-text-icon-spacing, 8px)}.mat-mdc-button .mdc-button__label+.mat-icon{margin-right:var(--mat-button-text-icon-offset, -4px);margin-left:var(--mat-button-text-icon-spacing, 8px)}[dir=rtl] .mat-mdc-button .mdc-button__label+.mat-icon{margin-right:var(--mat-button-text-icon-spacing, 8px);margin-left:var(--mat-button-text-icon-offset, -4px)}.mat-mdc-button .mat-ripple-element{background-color:var(--mat-button-text-ripple-color, color-mix(in srgb, var(--mat-sys-primary) calc(var(--mat-sys-pressed-state-layer-opacity) * 100%), transparent))}.mat-mdc-button .mat-mdc-button-persistent-ripple::before{background-color:var(--mat-button-text-state-layer-color, var(--mat-sys-primary))}.mat-mdc-button.mat-mdc-button-disabled .mat-mdc-button-persistent-ripple::before{background-color:var(--mat-button-text-disabled-state-layer-color, var(--mat-sys-on-surface-variant))}.mat-mdc-button:hover>.mat-mdc-button-persistent-ripple::before{opacity:var(--mat-button-text-hover-state-layer-opacity, var(--mat-sys-hover-state-layer-opacity))}.mat-mdc-button.cdk-program-focused>.mat-mdc-button-persistent-ripple::before,.mat-mdc-button.cdk-keyboard-focused>.mat-mdc-button-persistent-ripple::before,.mat-mdc-button.mat-mdc-button-disabled-interactive:focus>.mat-mdc-button-persistent-ripple::before{opacity:var(--mat-button-text-focus-state-layer-opacity, var(--mat-sys-focus-state-layer-opacity))}.mat-mdc-button:active>.mat-mdc-button-persistent-ripple::before{opacity:var(--mat-button-text-pressed-state-layer-opacity, var(--mat-sys-pressed-state-layer-opacity))}.mat-mdc-button .mat-mdc-button-touch-target{position:absolute;top:50%;height:var(--mat-button-text-touch-target-size, 48px);display:var(--mat-button-text-touch-target-display, block);left:0;right:0;transform:translateY(-50%)}.mat-mdc-unelevated-button{transition:box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);height:var(--mat-button-filled-container-height, 40px);font-family:var(--mat-button-filled-label-text-font, var(--mat-sys-label-large-font));font-size:var(--mat-button-filled-label-text-size, var(--mat-sys-label-large-size));letter-spacing:var(--mat-button-filled-label-text-tracking, var(--mat-sys-label-large-tracking));text-transform:var(--mat-button-filled-label-text-transform);font-weight:var(--mat-button-filled-label-text-weight, var(--mat-sys-label-large-weight));padding:0 var(--mat-button-filled-horizontal-padding, 24px)}.mat-mdc-unelevated-button>.mat-icon{margin-right:var(--mat-button-filled-icon-spacing, 8px);margin-left:var(--mat-button-filled-icon-offset, -8px)}[dir=rtl] .mat-mdc-unelevated-button>.mat-icon{margin-right:var(--mat-button-filled-icon-offset, -8px);margin-left:var(--mat-button-filled-icon-spacing, 8px)}.mat-mdc-unelevated-button .mdc-button__label+.mat-icon{margin-right:var(--mat-button-filled-icon-offset, -8px);margin-left:var(--mat-button-filled-icon-spacing, 8px)}[dir=rtl] .mat-mdc-unelevated-button .mdc-button__label+.mat-icon{margin-right:var(--mat-button-filled-icon-spacing, 8px);margin-left:var(--mat-button-filled-icon-offset, -8px)}.mat-mdc-unelevated-button .mat-ripple-element{background-color:var(--mat-button-filled-ripple-color, color-mix(in srgb, var(--mat-sys-on-primary) calc(var(--mat-sys-pressed-state-layer-opacity) * 100%), transparent))}.mat-mdc-unelevated-button .mat-mdc-button-persistent-ripple::before{background-color:var(--mat-button-filled-state-layer-color, var(--mat-sys-on-primary))}.mat-mdc-unelevated-button.mat-mdc-button-disabled .mat-mdc-button-persistent-ripple::before{background-color:var(--mat-button-filled-disabled-state-layer-color, var(--mat-sys-on-surface-variant))}.mat-mdc-unelevated-button:hover>.mat-mdc-button-persistent-ripple::before{opacity:var(--mat-button-filled-hover-state-layer-opacity, var(--mat-sys-hover-state-layer-opacity))}.mat-mdc-unelevated-button.cdk-program-focused>.mat-mdc-button-persistent-ripple::before,.mat-mdc-unelevated-button.cdk-keyboard-focused>.mat-mdc-button-persistent-ripple::before,.mat-mdc-unelevated-button.mat-mdc-button-disabled-interactive:focus>.mat-mdc-button-persistent-ripple::before{opacity:var(--mat-button-filled-focus-state-layer-opacity, var(--mat-sys-focus-state-layer-opacity))}.mat-mdc-unelevated-button:active>.mat-mdc-button-persistent-ripple::before{opacity:var(--mat-button-filled-pressed-state-layer-opacity, var(--mat-sys-pressed-state-layer-opacity))}.mat-mdc-unelevated-button .mat-mdc-button-touch-target{position:absolute;top:50%;height:var(--mat-button-filled-touch-target-size, 48px);display:var(--mat-button-filled-touch-target-display, block);left:0;right:0;transform:translateY(-50%)}.mat-mdc-unelevated-button:not(:disabled){color:var(--mat-button-filled-label-text-color, var(--mat-sys-on-primary));background-color:var(--mat-button-filled-container-color, var(--mat-sys-primary))}.mat-mdc-unelevated-button,.mat-mdc-unelevated-button .mdc-button__ripple{border-radius:var(--mat-button-filled-container-shape, var(--mat-sys-corner-full))}.mat-mdc-unelevated-button[disabled],.mat-mdc-unelevated-button.mat-mdc-button-disabled{cursor:default;pointer-events:none;color:var(--mat-button-filled-disabled-label-text-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent));background-color:var(--mat-button-filled-disabled-container-color, color-mix(in srgb, var(--mat-sys-on-surface) 12%, transparent))}.mat-mdc-unelevated-button.mat-mdc-button-disabled-interactive{pointer-events:auto}.mat-mdc-raised-button{transition:box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);box-shadow:var(--mat-button-protected-container-elevation-shadow, var(--mat-sys-level1));height:var(--mat-button-protected-container-height, 40px);font-family:var(--mat-button-protected-label-text-font, var(--mat-sys-label-large-font));font-size:var(--mat-button-protected-label-text-size, var(--mat-sys-label-large-size));letter-spacing:var(--mat-button-protected-label-text-tracking, var(--mat-sys-label-large-tracking));text-transform:var(--mat-button-protected-label-text-transform);font-weight:var(--mat-button-protected-label-text-weight, var(--mat-sys-label-large-weight));padding:0 var(--mat-button-protected-horizontal-padding, 24px)}.mat-mdc-raised-button>.mat-icon{margin-right:var(--mat-button-protected-icon-spacing, 8px);margin-left:var(--mat-button-protected-icon-offset, -8px)}[dir=rtl] .mat-mdc-raised-button>.mat-icon{margin-right:var(--mat-button-protected-icon-offset, -8px);margin-left:var(--mat-button-protected-icon-spacing, 8px)}.mat-mdc-raised-button .mdc-button__label+.mat-icon{margin-right:var(--mat-button-protected-icon-offset, -8px);margin-left:var(--mat-button-protected-icon-spacing, 8px)}[dir=rtl] .mat-mdc-raised-button .mdc-button__label+.mat-icon{margin-right:var(--mat-button-protected-icon-spacing, 8px);margin-left:var(--mat-button-protected-icon-offset, -8px)}.mat-mdc-raised-button .mat-ripple-element{background-color:var(--mat-button-protected-ripple-color, color-mix(in srgb, var(--mat-sys-primary) calc(var(--mat-sys-pressed-state-layer-opacity) * 100%), transparent))}.mat-mdc-raised-button .mat-mdc-button-persistent-ripple::before{background-color:var(--mat-button-protected-state-layer-color, var(--mat-sys-primary))}.mat-mdc-raised-button.mat-mdc-button-disabled .mat-mdc-button-persistent-ripple::before{background-color:var(--mat-button-protected-disabled-state-layer-color, var(--mat-sys-on-surface-variant))}.mat-mdc-raised-button:hover>.mat-mdc-button-persistent-ripple::before{opacity:var(--mat-button-protected-hover-state-layer-opacity, var(--mat-sys-hover-state-layer-opacity))}.mat-mdc-raised-button.cdk-program-focused>.mat-mdc-button-persistent-ripple::before,.mat-mdc-raised-button.cdk-keyboard-focused>.mat-mdc-button-persistent-ripple::before,.mat-mdc-raised-button.mat-mdc-button-disabled-interactive:focus>.mat-mdc-button-persistent-ripple::before{opacity:var(--mat-button-protected-focus-state-layer-opacity, var(--mat-sys-focus-state-layer-opacity))}.mat-mdc-raised-button:active>.mat-mdc-button-persistent-ripple::before{opacity:var(--mat-button-protected-pressed-state-layer-opacity, var(--mat-sys-pressed-state-layer-opacity))}.mat-mdc-raised-button .mat-mdc-button-touch-target{position:absolute;top:50%;height:var(--mat-button-protected-touch-target-size, 48px);display:var(--mat-button-protected-touch-target-display, block);left:0;right:0;transform:translateY(-50%)}.mat-mdc-raised-button:not(:disabled){color:var(--mat-button-protected-label-text-color, var(--mat-sys-primary));background-color:var(--mat-button-protected-container-color, var(--mat-sys-surface))}.mat-mdc-raised-button,.mat-mdc-raised-button .mdc-button__ripple{border-radius:var(--mat-button-protected-container-shape, var(--mat-sys-corner-full))}.mat-mdc-raised-button:hover{box-shadow:var(--mat-button-protected-hover-container-elevation-shadow, var(--mat-sys-level2))}.mat-mdc-raised-button:focus{box-shadow:var(--mat-button-protected-focus-container-elevation-shadow, var(--mat-sys-level1))}.mat-mdc-raised-button:active,.mat-mdc-raised-button:focus:active{box-shadow:var(--mat-button-protected-pressed-container-elevation-shadow, var(--mat-sys-level1))}.mat-mdc-raised-button[disabled],.mat-mdc-raised-button.mat-mdc-button-disabled{cursor:default;pointer-events:none;color:var(--mat-button-protected-disabled-label-text-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent));background-color:var(--mat-button-protected-disabled-container-color, color-mix(in srgb, var(--mat-sys-on-surface) 12%, transparent))}.mat-mdc-raised-button[disabled].mat-mdc-button-disabled,.mat-mdc-raised-button.mat-mdc-button-disabled.mat-mdc-button-disabled{box-shadow:var(--mat-button-protected-disabled-container-elevation-shadow, var(--mat-sys-level0))}.mat-mdc-raised-button.mat-mdc-button-disabled-interactive{pointer-events:auto}.mat-mdc-outlined-button{border-style:solid;transition:border 280ms cubic-bezier(0.4, 0, 0.2, 1);height:var(--mat-button-outlined-container-height, 40px);font-family:var(--mat-button-outlined-label-text-font, var(--mat-sys-label-large-font));font-size:var(--mat-button-outlined-label-text-size, var(--mat-sys-label-large-size));letter-spacing:var(--mat-button-outlined-label-text-tracking, var(--mat-sys-label-large-tracking));text-transform:var(--mat-button-outlined-label-text-transform);font-weight:var(--mat-button-outlined-label-text-weight, var(--mat-sys-label-large-weight));border-radius:var(--mat-button-outlined-container-shape, var(--mat-sys-corner-full));border-width:var(--mat-button-outlined-outline-width, 1px);padding:0 var(--mat-button-outlined-horizontal-padding, 24px)}.mat-mdc-outlined-button>.mat-icon{margin-right:var(--mat-button-outlined-icon-spacing, 8px);margin-left:var(--mat-button-outlined-icon-offset, -8px)}[dir=rtl] .mat-mdc-outlined-button>.mat-icon{margin-right:var(--mat-button-outlined-icon-offset, -8px);margin-left:var(--mat-button-outlined-icon-spacing, 8px)}.mat-mdc-outlined-button .mdc-button__label+.mat-icon{margin-right:var(--mat-button-outlined-icon-offset, -8px);margin-left:var(--mat-button-outlined-icon-spacing, 8px)}[dir=rtl] .mat-mdc-outlined-button .mdc-button__label+.mat-icon{margin-right:var(--mat-button-outlined-icon-spacing, 8px);margin-left:var(--mat-button-outlined-icon-offset, -8px)}.mat-mdc-outlined-button .mat-ripple-element{background-color:var(--mat-button-outlined-ripple-color, color-mix(in srgb, var(--mat-sys-primary) calc(var(--mat-sys-pressed-state-layer-opacity) * 100%), transparent))}.mat-mdc-outlined-button .mat-mdc-button-persistent-ripple::before{background-color:var(--mat-button-outlined-state-layer-color, var(--mat-sys-primary))}.mat-mdc-outlined-button.mat-mdc-button-disabled .mat-mdc-button-persistent-ripple::before{background-color:var(--mat-button-outlined-disabled-state-layer-color, var(--mat-sys-on-surface-variant))}.mat-mdc-outlined-button:hover>.mat-mdc-button-persistent-ripple::before{opacity:var(--mat-button-outlined-hover-state-layer-opacity, var(--mat-sys-hover-state-layer-opacity))}.mat-mdc-outlined-button.cdk-program-focused>.mat-mdc-button-persistent-ripple::before,.mat-mdc-outlined-button.cdk-keyboard-focused>.mat-mdc-button-persistent-ripple::before,.mat-mdc-outlined-button.mat-mdc-button-disabled-interactive:focus>.mat-mdc-button-persistent-ripple::before{opacity:var(--mat-button-outlined-focus-state-layer-opacity, var(--mat-sys-focus-state-layer-opacity))}.mat-mdc-outlined-button:active>.mat-mdc-button-persistent-ripple::before{opacity:var(--mat-button-outlined-pressed-state-layer-opacity, var(--mat-sys-pressed-state-layer-opacity))}.mat-mdc-outlined-button .mat-mdc-button-touch-target{position:absolute;top:50%;height:var(--mat-button-outlined-touch-target-size, 48px);display:var(--mat-button-outlined-touch-target-display, block);left:0;right:0;transform:translateY(-50%)}.mat-mdc-outlined-button:not(:disabled){color:var(--mat-button-outlined-label-text-color, var(--mat-sys-primary));border-color:var(--mat-button-outlined-outline-color, var(--mat-sys-outline))}.mat-mdc-outlined-button[disabled],.mat-mdc-outlined-button.mat-mdc-button-disabled{cursor:default;pointer-events:none;color:var(--mat-button-outlined-disabled-label-text-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent));border-color:var(--mat-button-outlined-disabled-outline-color, color-mix(in srgb, var(--mat-sys-on-surface) 12%, transparent))}.mat-mdc-outlined-button.mat-mdc-button-disabled-interactive{pointer-events:auto}.mat-tonal-button{transition:box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);height:var(--mat-button-tonal-container-height, 40px);font-family:var(--mat-button-tonal-label-text-font, var(--mat-sys-label-large-font));font-size:var(--mat-button-tonal-label-text-size, var(--mat-sys-label-large-size));letter-spacing:var(--mat-button-tonal-label-text-tracking, var(--mat-sys-label-large-tracking));text-transform:var(--mat-button-tonal-label-text-transform);font-weight:var(--mat-button-tonal-label-text-weight, var(--mat-sys-label-large-weight));padding:0 var(--mat-button-tonal-horizontal-padding, 24px)}.mat-tonal-button:not(:disabled){color:var(--mat-button-tonal-label-text-color, var(--mat-sys-on-secondary-container));background-color:var(--mat-button-tonal-container-color, var(--mat-sys-secondary-container))}.mat-tonal-button,.mat-tonal-button .mdc-button__ripple{border-radius:var(--mat-button-tonal-container-shape, var(--mat-sys-corner-full))}.mat-tonal-button[disabled],.mat-tonal-button.mat-mdc-button-disabled{cursor:default;pointer-events:none;color:var(--mat-button-tonal-disabled-label-text-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent));background-color:var(--mat-button-tonal-disabled-container-color, color-mix(in srgb, var(--mat-sys-on-surface) 12%, transparent))}.mat-tonal-button.mat-mdc-button-disabled-interactive{pointer-events:auto}.mat-tonal-button>.mat-icon{margin-right:var(--mat-button-tonal-icon-spacing, 8px);margin-left:var(--mat-button-tonal-icon-offset, -8px)}[dir=rtl] .mat-tonal-button>.mat-icon{margin-right:var(--mat-button-tonal-icon-offset, -8px);margin-left:var(--mat-button-tonal-icon-spacing, 8px)}.mat-tonal-button .mdc-button__label+.mat-icon{margin-right:var(--mat-button-tonal-icon-offset, -8px);margin-left:var(--mat-button-tonal-icon-spacing, 8px)}[dir=rtl] .mat-tonal-button .mdc-button__label+.mat-icon{margin-right:var(--mat-button-tonal-icon-spacing, 8px);margin-left:var(--mat-button-tonal-icon-offset, -8px)}.mat-tonal-button .mat-ripple-element{background-color:var(--mat-button-tonal-ripple-color, color-mix(in srgb, var(--mat-sys-on-secondary-container) calc(var(--mat-sys-pressed-state-layer-opacity) * 100%), transparent))}.mat-tonal-button .mat-mdc-button-persistent-ripple::before{background-color:var(--mat-button-tonal-state-layer-color, var(--mat-sys-on-secondary-container))}.mat-tonal-button.mat-mdc-button-disabled .mat-mdc-button-persistent-ripple::before{background-color:var(--mat-button-tonal-disabled-state-layer-color, var(--mat-sys-on-surface-variant))}.mat-tonal-button:hover>.mat-mdc-button-persistent-ripple::before{opacity:var(--mat-button-tonal-hover-state-layer-opacity, var(--mat-sys-hover-state-layer-opacity))}.mat-tonal-button.cdk-program-focused>.mat-mdc-button-persistent-ripple::before,.mat-tonal-button.cdk-keyboard-focused>.mat-mdc-button-persistent-ripple::before,.mat-tonal-button.mat-mdc-button-disabled-interactive:focus>.mat-mdc-button-persistent-ripple::before{opacity:var(--mat-button-tonal-focus-state-layer-opacity, var(--mat-sys-focus-state-layer-opacity))}.mat-tonal-button:active>.mat-mdc-button-persistent-ripple::before{opacity:var(--mat-button-tonal-pressed-state-layer-opacity, var(--mat-sys-pressed-state-layer-opacity))}.mat-tonal-button .mat-mdc-button-touch-target{position:absolute;top:50%;height:var(--mat-button-tonal-touch-target-size, 48px);display:var(--mat-button-tonal-touch-target-display, block);left:0;right:0;transform:translateY(-50%)}.mat-mdc-button,.mat-mdc-unelevated-button,.mat-mdc-raised-button,.mat-mdc-outlined-button,.mat-tonal-button{-webkit-tap-highlight-color:rgba(0,0,0,0)}.mat-mdc-button .mat-mdc-button-ripple,.mat-mdc-button .mat-mdc-button-persistent-ripple,.mat-mdc-button .mat-mdc-button-persistent-ripple::before,.mat-mdc-unelevated-button .mat-mdc-button-ripple,.mat-mdc-unelevated-button .mat-mdc-button-persistent-ripple,.mat-mdc-unelevated-button .mat-mdc-button-persistent-ripple::before,.mat-mdc-raised-button .mat-mdc-button-ripple,.mat-mdc-raised-button .mat-mdc-button-persistent-ripple,.mat-mdc-raised-button .mat-mdc-button-persistent-ripple::before,.mat-mdc-outlined-button .mat-mdc-button-ripple,.mat-mdc-outlined-button .mat-mdc-button-persistent-ripple,.mat-mdc-outlined-button .mat-mdc-button-persistent-ripple::before,.mat-tonal-button .mat-mdc-button-ripple,.mat-tonal-button .mat-mdc-button-persistent-ripple,.mat-tonal-button .mat-mdc-button-persistent-ripple::before{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none;border-radius:inherit}.mat-mdc-button .mat-mdc-button-ripple,.mat-mdc-unelevated-button .mat-mdc-button-ripple,.mat-mdc-raised-button .mat-mdc-button-ripple,.mat-mdc-outlined-button .mat-mdc-button-ripple,.mat-tonal-button .mat-mdc-button-ripple{overflow:hidden}.mat-mdc-button .mat-mdc-button-persistent-ripple::before,.mat-mdc-unelevated-button .mat-mdc-button-persistent-ripple::before,.mat-mdc-raised-button .mat-mdc-button-persistent-ripple::before,.mat-mdc-outlined-button .mat-mdc-button-persistent-ripple::before,.mat-tonal-button .mat-mdc-button-persistent-ripple::before{content:"";opacity:0}.mat-mdc-button .mdc-button__label,.mat-mdc-button .mat-icon,.mat-mdc-unelevated-button .mdc-button__label,.mat-mdc-unelevated-button .mat-icon,.mat-mdc-raised-button .mdc-button__label,.mat-mdc-raised-button .mat-icon,.mat-mdc-outlined-button .mdc-button__label,.mat-mdc-outlined-button .mat-icon,.mat-tonal-button .mdc-button__label,.mat-tonal-button .mat-icon{z-index:1;position:relative}.mat-mdc-button .mat-focus-indicator,.mat-mdc-unelevated-button .mat-focus-indicator,.mat-mdc-raised-button .mat-focus-indicator,.mat-mdc-outlined-button .mat-focus-indicator,.mat-tonal-button .mat-focus-indicator{top:0;left:0;right:0;bottom:0;position:absolute;border-radius:inherit}.mat-mdc-button:focus>.mat-focus-indicator::before,.mat-mdc-unelevated-button:focus>.mat-focus-indicator::before,.mat-mdc-raised-button:focus>.mat-focus-indicator::before,.mat-mdc-outlined-button:focus>.mat-focus-indicator::before,.mat-tonal-button:focus>.mat-focus-indicator::before{content:"";border-radius:inherit}.mat-mdc-button._mat-animation-noopable,.mat-mdc-unelevated-button._mat-animation-noopable,.mat-mdc-raised-button._mat-animation-noopable,.mat-mdc-outlined-button._mat-animation-noopable,.mat-tonal-button._mat-animation-noopable{transition:none !important;animation:none !important}.mat-mdc-button>.mat-icon,.mat-mdc-unelevated-button>.mat-icon,.mat-mdc-raised-button>.mat-icon,.mat-mdc-outlined-button>.mat-icon,.mat-tonal-button>.mat-icon{display:inline-block;position:relative;vertical-align:top;font-size:1.125rem;height:1.125rem;width:1.125rem}.mat-mdc-outlined-button .mat-mdc-button-ripple,.mat-mdc-outlined-button .mdc-button__ripple{top:-1px;left:-1px;bottom:-1px;right:-1px}.mat-mdc-unelevated-button .mat-focus-indicator::before,.mat-tonal-button .mat-focus-indicator::before,.mat-mdc-raised-button .mat-focus-indicator::before{margin:calc(calc(var(--mat-focus-indicator-border-width, 3px) + 2px)*-1)}.mat-mdc-outlined-button .mat-focus-indicator::before{margin:calc(calc(var(--mat-focus-indicator-border-width, 3px) + 3px)*-1)} +`],encapsulation:2,changeDetection:0})}return t})();var kee=["tooltip"],mk=20;var hk=new O("mat-tooltip-scroll-strategy",{providedIn:"root",factory:()=>{let t=u(de);return()=>En(t,{scrollThrottle:mk})}});function i3(t){let n=u(de);return()=>En(n,{scrollThrottle:mk})}var pk={provide:hk,deps:[],useFactory:i3};function n3(){return{showDelay:0,hideDelay:0,touchendHideDelay:1500}}var r3=new O("mat-tooltip-default-options",{providedIn:"root",factory:n3});var e3="tooltip-panel",t3=ac({passive:!0}),Tee=8,Iee=8,Aee=24,Oee=200,Ao=(()=>{class t{_elementRef=u(Y);_ngZone=u(ae);_platform=u(qe);_ariaDescriber=u(nh);_focusMonitor=u(ti);_dir=u(Bt);_injector=u(de);_viewContainerRef=u(ot);_animationsDisabled=Ye();_defaultOptions=u(r3,{optional:!0});_overlayRef;_tooltipInstance;_overlayPanelClass;_portal;_position="below";_positionAtOrigin=!1;_disabled=!1;_tooltipClass;_viewInitialized=!1;_pointerExitEventsInitialized=!1;_tooltipComponent=o3;_viewportMargin=8;_currentPosition;_cssClassPrefix="mat-mdc";_ariaDescriptionPending;_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=Ri(e),this._detach(),this._overlayRef=null}get disabled(){return this._disabled}set disabled(e){let i=Ri(e);this._disabled!==i&&(this._disabled=i,i?this.hide(0):this._setupPointerEnterEventsIfNeeded(),this._syncAriaDescription(this.message))}get showDelay(){return this._showDelay}set showDelay(e){this._showDelay=Bn(e)}_showDelay;get hideDelay(){return this._hideDelay}set hideDelay(e){this._hideDelay=Bn(e),this._tooltipInstance&&(this._tooltipInstance._mouseLeaveHideDelay=this._hideDelay)}_hideDelay;touchGestures="auto";get message(){return this._message}set message(e){let i=this._message;this._message=e!=null?String(e).trim():"",!this._message&&this._isTooltipVisible()?this.hide(0):(this._setupPointerEnterEventsIfNeeded(),this._updateTooltipMessage()),this._syncAriaDescription(i)}_message="";get tooltipClass(){return this._tooltipClass}set tooltipClass(e){this._tooltipClass=e,this._tooltipInstance&&this._setTooltipClass(this._tooltipClass)}_passiveListeners=[];_touchstartTimeout=null;_destroyed=new z;_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=Tee}ngAfterViewInit(){this._viewInitialized=!0,this._setupPointerEnterEventsIfNeeded(),this._focusMonitor.monitor(this._elementRef).pipe(we(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._passiveListeners.forEach(([i,r])=>{e.removeEventListener(i,r,t3)}),this._passiveListeners.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,i){if(this.disabled||!this.message||this._isTooltipVisible()){this._tooltipInstance?._cancelPendingAnimations();return}let r=this._createOverlay(i);this._detach(),this._portal=this._portal||new to(this._tooltipComponent,this._viewContainerRef);let o=this._tooltipInstance=r.attach(this._portal).instance;o._triggerElement=this._elementRef.nativeElement,o._mouseLeaveHideDelay=this._hideDelay,o.afterHidden().pipe(we(this._destroyed)).subscribe(()=>this._detach()),this._setTooltipClass(this._tooltipClass),this._updateTooltipMessage(),o.show(e)}hide(e=this.hideDelay){let i=this._tooltipInstance;i&&(i.isVisible()?i.hide(e):(i._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 a=this._overlayRef.getConfig().positionStrategy;if((!this.positionAtOrigin||!e)&&a._origin instanceof Y)return this._overlayRef;this._detach()}let i=this._injector.get(Ds).getAncestorScrollContainers(this._elementRef),r=`${this._cssClassPrefix}-${e3}`,o=Na(this._injector,this.positionAtOrigin?e||this._elementRef:this._elementRef).withTransformOriginOn(`.${this._cssClassPrefix}-tooltip`).withFlexibleDimensions(!1).withViewportMargin(this._viewportMargin).withScrollableContainers(i);return o.positionChanges.pipe(we(this._destroyed)).subscribe(a=>{this._updateCurrentPositionClass(a.connectionPair),this._tooltipInstance&&a.scrollableViewProperties.isOverlayClipped&&this._tooltipInstance.isVisible()&&this._ngZone.run(()=>this.hide(0))}),this._overlayRef=zr(this._injector,{direction:this._dir,positionStrategy:o,panelClass:this._overlayPanelClass?[...this._overlayPanelClass,r]:r,scrollStrategy:this._injector.get(hk)(),disableAnimations:this._animationsDisabled}),this._updatePosition(this._overlayRef),this._overlayRef.detachments().pipe(we(this._destroyed)).subscribe(()=>this._detach()),this._overlayRef.outsidePointerEvents().pipe(we(this._destroyed)).subscribe(()=>this._tooltipInstance?._handleBodyInteraction()),this._overlayRef.keydownEvents().pipe(we(this._destroyed)).subscribe(a=>{this._isTooltipVisible()&&a.keyCode===27&&!Lt(a)&&(a.preventDefault(),a.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(we(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 i=e.getConfig().positionStrategy,r=this._getOrigin(),o=this._getOverlayPosition();i.withPositions([this._addOffset(k(k({},r.main),o.main)),this._addOffset(k(k({},r.fallback),o.fallback))])}_addOffset(e){let i=Iee,r=!this._dir||this._dir.value=="ltr";return e.originY==="top"?e.offsetY=-i:e.originY==="bottom"?e.offsetY=i:e.originX==="start"?e.offsetX=r?-i:i:e.originX==="end"&&(e.offsetX=r?i:-i),e}_getOrigin(){let e=!this._dir||this._dir.value=="ltr",i=this.position,r;i=="above"||i=="below"?r={originX:"center",originY:i=="above"?"top":"bottom"}:i=="before"||i=="left"&&e||i=="right"&&!e?r={originX:"start",originY:"center"}:(i=="after"||i=="right"&&e||i=="left"&&!e)&&(r={originX:"end",originY:"center"});let{x:o,y:a}=this._invertPosition(r.originX,r.originY);return{main:r,fallback:{originX:o,originY:a}}}_getOverlayPosition(){let e=!this._dir||this._dir.value=="ltr",i=this.position,r;i=="above"?r={overlayX:"center",overlayY:"bottom"}:i=="below"?r={overlayX:"center",overlayY:"top"}:i=="before"||i=="left"&&e||i=="right"&&!e?r={overlayX:"end",overlayY:"center"}:(i=="after"||i=="right"&&e||i=="left"&&!e)&&(r={overlayX:"start",overlayY:"center"});let{x:o,y:a}=this._invertPosition(r.overlayX,r.overlayY);return{main:r,fallback:{overlayX:o,overlayY:a}}}_updateTooltipMessage(){this._tooltipInstance&&(this._tooltipInstance.message=this.message,this._tooltipInstance._markForCheck(),gt(()=>{this._tooltipInstance&&this._overlayRef.updatePosition()},{injector:this._injector}))}_setTooltipClass(e){this._tooltipInstance&&(this._tooltipInstance.tooltipClass=e,this._tooltipInstance._markForCheck())}_invertPosition(e,i){return this.position==="above"||this.position==="below"?i==="top"?i="bottom":i==="bottom"&&(i="top"):e==="end"?e="start":e==="start"&&(e="end"),{x:e,y:i}}_updateCurrentPositionClass(e){let{overlayY:i,originX:r,originY:o}=e,a;if(i==="center"?this._dir&&this._dir.value==="rtl"?a=r==="end"?"left":"right":a=r==="start"?"left":"right":a=i==="bottom"&&o==="top"?"above":"below",a!==this._currentPosition){let s=this._overlayRef;if(s){let l=`${this._cssClassPrefix}-${e3}-`;s.removePanelClass(l+this._currentPosition),s.addPanelClass(l+a)}this._currentPosition=a}}_setupPointerEnterEventsIfNeeded(){this._disabled||!this.message||!this._viewInitialized||this._passiveListeners.length||(this._platformSupportsMouseEvents()?this._passiveListeners.push(["mouseenter",e=>{this._setupPointerExitEventsIfNeeded();let i;e.x!==void 0&&e.y!==void 0&&(i=e),this.show(void 0,i)}]):this.touchGestures!=="off"&&(this._disableNativeGesturesIfNecessary(),this._passiveListeners.push(["touchstart",e=>{let i=e.targetTouches?.[0],r=i?{x:i.clientX,y:i.clientY}:void 0;this._setupPointerExitEventsIfNeeded(),this._touchstartTimeout&&clearTimeout(this._touchstartTimeout);let o=500;this._touchstartTimeout=setTimeout(()=>{this._touchstartTimeout=null,this.show(void 0,r)},this._defaultOptions?.touchLongPressShowDelay??o)}])),this._addListeners(this._passiveListeners))}_setupPointerExitEventsIfNeeded(){if(this._pointerExitEventsInitialized)return;this._pointerExitEventsInitialized=!0;let e=[];if(this._platformSupportsMouseEvents())e.push(["mouseleave",i=>{let r=i.relatedTarget;(!r||!this._overlayRef?.overlayElement.contains(r))&&this.hide()}],["wheel",i=>this._wheelListener(i)]);else if(this.touchGestures!=="off"){this._disableNativeGesturesIfNecessary();let i=()=>{this._touchstartTimeout&&clearTimeout(this._touchstartTimeout),this.hide(this._defaultOptions?.touchendHideDelay)};e.push(["touchend",i],["touchcancel",i])}this._addListeners(e),this._passiveListeners.push(...e)}_addListeners(e){e.forEach(([i,r])=>{this._elementRef.nativeElement.addEventListener(i,r,t3)})}_platformSupportsMouseEvents(){return!this._platform.IOS&&!this._platform.ANDROID}_wheelListener(e){if(this._isTooltipVisible()){let i=this._injector.get(_e).elementFromPoint(e.clientX,e.clientY),r=this._elementRef.nativeElement;i!==r&&!r.contains(i)&&this.hide()}}_disableNativeGesturesIfNecessary(){let e=this.touchGestures;if(e!=="off"){let i=this._elementRef.nativeElement,r=i.style;(e==="on"||i.nodeName!=="INPUT"&&i.nodeName!=="TEXTAREA")&&(r.userSelect=r.msUserSelect=r.webkitUserSelect=r.MozUserSelect="none"),(e==="on"||!i.draggable)&&(r.webkitUserDrag="none"),r.touchAction="none",r.webkitTapHighlightColor="transparent"}}_syncAriaDescription(e){this._ariaDescriptionPending||(this._ariaDescriptionPending=!0,this._ariaDescriber.removeDescription(this._elementRef.nativeElement,e,"tooltip"),this._isDestroyed||gt({write:()=>{this._ariaDescriptionPending=!1,this.message&&!this.disabled&&this._ariaDescriber.describe(this._elementRef.nativeElement,this.message,"tooltip")}},{injector:this._injector}))}static \u0275fac=function(i){return new(i||t)};static \u0275dir=P({type:t,selectors:[["","matTooltip",""]],hostAttrs:[1,"mat-mdc-tooltip-trigger"],hostVars:2,hostBindings:function(i,r){i&2&&G("mat-mdc-tooltip-disabled",r.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 t})(),o3=(()=>{class t{_changeDetectorRef=u(ye);_elementRef=u(Y);_isMultiline=!1;message;tooltipClass;_showTimeoutId;_hideTimeoutId;_triggerElement;_mouseLeaveHideDelay;_animationsDisabled=Ye();_tooltip;_closeOnInteraction=!1;_isVisible=!1;_onHide=new z;_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>Aee&&e.width>=Oee}_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 i=this._tooltip.nativeElement,r=this._showAnimation,o=this._hideAnimation;if(i.classList.remove(e?o:r),i.classList.add(e?r:o),this._isVisible!==e&&(this._isVisible=e,this._changeDetectorRef.markForCheck()),e&&!this._animationsDisabled&&typeof getComputedStyle=="function"){let a=getComputedStyle(i);(a.getPropertyValue("animation-duration")==="0s"||a.getPropertyValue("animation-name")==="none")&&(this._animationsDisabled=!0)}e&&this._onShow(),this._animationsDisabled&&(i.classList.add("_mat-animation-noopable"),this._finalizeAnimation(e))}static \u0275fac=function(i){return new(i||t)};static \u0275cmp=E({type:t,selectors:[["mat-tooltip-component"]],viewQuery:function(i,r){if(i&1&&ie(kee,7),i&2){let o;j(o=H())&&(r._tooltip=o.first)}},hostAttrs:["aria-hidden","true"],hostBindings:function(i,r){i&1&&S("mouseleave",function(a){return r._handleMouseLeave(a)})},decls:4,vars:4,consts:[["tooltip",""],[1,"mdc-tooltip","mat-mdc-tooltip",3,"animationend","ngClass"],[1,"mat-mdc-tooltip-surface","mdc-tooltip__surface"]],template:function(i,r){if(i&1){let o=q();m(0,"div",1,0),S("animationend",function(s){return T(o),I(r._handleAnimationEnd(s))}),m(2,"div",2),g(3),h()()}i&2&&(G("mdc-tooltip--multiline",r._isMultiline),v("ngClass",r.tooltipClass),f(3),N(r.message))},dependencies:[Bd],styles:[`.mat-mdc-tooltip{position:relative;transform:scale(0);display:inline-flex}.mat-mdc-tooltip::before{content:"";top:0;right:0;bottom:0;left:0;z-index:-1;position:absolute}.mat-mdc-tooltip-panel-below .mat-mdc-tooltip::before{top:-8px}.mat-mdc-tooltip-panel-above .mat-mdc-tooltip::before{bottom:-8px}.mat-mdc-tooltip-panel-right .mat-mdc-tooltip::before{left:-8px}.mat-mdc-tooltip-panel-left .mat-mdc-tooltip::before{right:-8px}.mat-mdc-tooltip._mat-animation-noopable{animation:none;transform:scale(1)}.mat-mdc-tooltip-surface{word-break:normal;overflow-wrap:anywhere;padding:4px 8px;min-width:40px;max-width:200px;min-height:24px;max-height:40vh;box-sizing:border-box;overflow:hidden;text-align:center;will-change:transform,opacity;background-color:var(--mat-tooltip-container-color, var(--mat-sys-inverse-surface));color:var(--mat-tooltip-supporting-text-color, var(--mat-sys-inverse-on-surface));border-radius:var(--mat-tooltip-container-shape, var(--mat-sys-corner-extra-small));font-family:var(--mat-tooltip-supporting-text-font, var(--mat-sys-body-small-font));font-size:var(--mat-tooltip-supporting-text-size, var(--mat-sys-body-small-size));font-weight:var(--mat-tooltip-supporting-text-weight, var(--mat-sys-body-small-weight));line-height:var(--mat-tooltip-supporting-text-line-height, var(--mat-sys-body-small-line-height));letter-spacing:var(--mat-tooltip-supporting-text-tracking, var(--mat-sys-body-small-tracking))}.mat-mdc-tooltip-surface::before{position:absolute;box-sizing:border-box;width:100%;height:100%;top:0;left:0;border:1px solid rgba(0,0,0,0);border-radius:inherit;content:"";pointer-events:none}.mdc-tooltip--multiline .mat-mdc-tooltip-surface{text-align:left}[dir=rtl] .mdc-tooltip--multiline .mat-mdc-tooltip-surface{text-align:right}.mat-mdc-tooltip-panel{line-height:normal}.mat-mdc-tooltip-panel.mat-mdc-tooltip-panel-non-interactive{pointer-events:none}@keyframes mat-mdc-tooltip-show{0%{opacity:0;transform:scale(0.8)}100%{opacity:1;transform:scale(1)}}@keyframes mat-mdc-tooltip-hide{0%{opacity:1;transform:scale(1)}100%{opacity:0;transform:scale(0.8)}}.mat-mdc-tooltip-show{animation:mat-mdc-tooltip-show 150ms cubic-bezier(0, 0, 0.2, 1) forwards}.mat-mdc-tooltip-hide{animation:mat-mdc-tooltip-hide 75ms cubic-bezier(0.4, 0, 1, 1) forwards} +`],encapsulation:2,changeDetection:0})}return t})();var $r=(()=>{class t{static \u0275fac=function(i){return new(i||t)};static \u0275mod=ee({type:t});static \u0275inj=J({providers:[pk],imports:[cl,nr,De,De,Cr]})}return t})();var Ree=["matButton",""],l3=[[["",8,"material-icons",3,"iconPositionEnd",""],["mat-icon",3,"iconPositionEnd",""],["","matButtonIcon","",3,"iconPositionEnd",""]],"*",[["","iconPositionEnd","",8,"material-icons"],["mat-icon","iconPositionEnd",""],["","matButtonIcon","","iconPositionEnd",""]]],c3=[".material-icons:not([iconPositionEnd]), mat-icon:not([iconPositionEnd]), [matButtonIcon]:not([iconPositionEnd])","*",".material-icons[iconPositionEnd], mat-icon[iconPositionEnd], [matButtonIcon][iconPositionEnd]"],Pee=["mat-fab",""];var a3=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"]]]),Mt=(()=>{class t extends xx{get appearance(){return this._appearance}set appearance(e){this.setAppearance(e||this._config?.defaultAppearance||"text")}_appearance=null;constructor(){super();let e=Fee(this._elementRef.nativeElement);e&&this.setAppearance(e)}setAppearance(e){if(e===this._appearance)return;let i=this._elementRef.nativeElement.classList,r=this._appearance?a3.get(this._appearance):null,o=a3.get(e);r&&i.remove(...r),i.add(...o),this._appearance=e}static \u0275fac=function(i){return new(i||t)};static \u0275cmp=E({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:[le],attrs:Ree,ngContentSelectors:c3,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(i,r){i&1&&(Se(l3),Xt(0,"span",0),ne(1),pt(2,"span",1),ne(3,1),_t(),ne(4,2),Xt(5,"span",2)(6,"span",3)),i&2&&G("mdc-button__ripple",!r._isFab)("mdc-fab__ripple",r._isFab)},styles:[`.mat-mdc-button-base{text-decoration:none}.mat-mdc-button-base .mat-icon{min-height:fit-content;flex-shrink:0}.mdc-button{-webkit-user-select:none;user-select:none;position:relative;display:inline-flex;align-items:center;justify-content:center;box-sizing:border-box;min-width:64px;border:none;outline:none;line-height:inherit;-webkit-appearance:none;overflow:visible;vertical-align:middle;background:rgba(0,0,0,0);padding:0 8px}.mdc-button::-moz-focus-inner{padding:0;border:0}.mdc-button:active{outline:none}.mdc-button:hover{cursor:pointer}.mdc-button:disabled{cursor:default;pointer-events:none}.mdc-button[hidden]{display:none}.mdc-button .mdc-button__label{position:relative}.mat-mdc-button{padding:0 var(--mat-button-text-horizontal-padding, 12px);height:var(--mat-button-text-container-height, 40px);font-family:var(--mat-button-text-label-text-font, var(--mat-sys-label-large-font));font-size:var(--mat-button-text-label-text-size, var(--mat-sys-label-large-size));letter-spacing:var(--mat-button-text-label-text-tracking, var(--mat-sys-label-large-tracking));text-transform:var(--mat-button-text-label-text-transform);font-weight:var(--mat-button-text-label-text-weight, var(--mat-sys-label-large-weight))}.mat-mdc-button,.mat-mdc-button .mdc-button__ripple{border-radius:var(--mat-button-text-container-shape, var(--mat-sys-corner-full))}.mat-mdc-button:not(:disabled){color:var(--mat-button-text-label-text-color, var(--mat-sys-primary))}.mat-mdc-button[disabled],.mat-mdc-button.mat-mdc-button-disabled{cursor:default;pointer-events:none;color:var(--mat-button-text-disabled-label-text-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent))}.mat-mdc-button.mat-mdc-button-disabled-interactive{pointer-events:auto}.mat-mdc-button:has(.material-icons,mat-icon,[matButtonIcon]){padding:0 var(--mat-button-text-with-icon-horizontal-padding, 16px)}.mat-mdc-button>.mat-icon{margin-right:var(--mat-button-text-icon-spacing, 8px);margin-left:var(--mat-button-text-icon-offset, -4px)}[dir=rtl] .mat-mdc-button>.mat-icon{margin-right:var(--mat-button-text-icon-offset, -4px);margin-left:var(--mat-button-text-icon-spacing, 8px)}.mat-mdc-button .mdc-button__label+.mat-icon{margin-right:var(--mat-button-text-icon-offset, -4px);margin-left:var(--mat-button-text-icon-spacing, 8px)}[dir=rtl] .mat-mdc-button .mdc-button__label+.mat-icon{margin-right:var(--mat-button-text-icon-spacing, 8px);margin-left:var(--mat-button-text-icon-offset, -4px)}.mat-mdc-button .mat-ripple-element{background-color:var(--mat-button-text-ripple-color, color-mix(in srgb, var(--mat-sys-primary) calc(var(--mat-sys-pressed-state-layer-opacity) * 100%), transparent))}.mat-mdc-button .mat-mdc-button-persistent-ripple::before{background-color:var(--mat-button-text-state-layer-color, var(--mat-sys-primary))}.mat-mdc-button.mat-mdc-button-disabled .mat-mdc-button-persistent-ripple::before{background-color:var(--mat-button-text-disabled-state-layer-color, var(--mat-sys-on-surface-variant))}.mat-mdc-button:hover>.mat-mdc-button-persistent-ripple::before{opacity:var(--mat-button-text-hover-state-layer-opacity, var(--mat-sys-hover-state-layer-opacity))}.mat-mdc-button.cdk-program-focused>.mat-mdc-button-persistent-ripple::before,.mat-mdc-button.cdk-keyboard-focused>.mat-mdc-button-persistent-ripple::before,.mat-mdc-button.mat-mdc-button-disabled-interactive:focus>.mat-mdc-button-persistent-ripple::before{opacity:var(--mat-button-text-focus-state-layer-opacity, var(--mat-sys-focus-state-layer-opacity))}.mat-mdc-button:active>.mat-mdc-button-persistent-ripple::before{opacity:var(--mat-button-text-pressed-state-layer-opacity, var(--mat-sys-pressed-state-layer-opacity))}.mat-mdc-button .mat-mdc-button-touch-target{position:absolute;top:50%;height:var(--mat-button-text-touch-target-size, 48px);display:var(--mat-button-text-touch-target-display, block);left:0;right:0;transform:translateY(-50%)}.mat-mdc-unelevated-button{transition:box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);height:var(--mat-button-filled-container-height, 40px);font-family:var(--mat-button-filled-label-text-font, var(--mat-sys-label-large-font));font-size:var(--mat-button-filled-label-text-size, var(--mat-sys-label-large-size));letter-spacing:var(--mat-button-filled-label-text-tracking, var(--mat-sys-label-large-tracking));text-transform:var(--mat-button-filled-label-text-transform);font-weight:var(--mat-button-filled-label-text-weight, var(--mat-sys-label-large-weight));padding:0 var(--mat-button-filled-horizontal-padding, 24px)}.mat-mdc-unelevated-button>.mat-icon{margin-right:var(--mat-button-filled-icon-spacing, 8px);margin-left:var(--mat-button-filled-icon-offset, -8px)}[dir=rtl] .mat-mdc-unelevated-button>.mat-icon{margin-right:var(--mat-button-filled-icon-offset, -8px);margin-left:var(--mat-button-filled-icon-spacing, 8px)}.mat-mdc-unelevated-button .mdc-button__label+.mat-icon{margin-right:var(--mat-button-filled-icon-offset, -8px);margin-left:var(--mat-button-filled-icon-spacing, 8px)}[dir=rtl] .mat-mdc-unelevated-button .mdc-button__label+.mat-icon{margin-right:var(--mat-button-filled-icon-spacing, 8px);margin-left:var(--mat-button-filled-icon-offset, -8px)}.mat-mdc-unelevated-button .mat-ripple-element{background-color:var(--mat-button-filled-ripple-color, color-mix(in srgb, var(--mat-sys-on-primary) calc(var(--mat-sys-pressed-state-layer-opacity) * 100%), transparent))}.mat-mdc-unelevated-button .mat-mdc-button-persistent-ripple::before{background-color:var(--mat-button-filled-state-layer-color, var(--mat-sys-on-primary))}.mat-mdc-unelevated-button.mat-mdc-button-disabled .mat-mdc-button-persistent-ripple::before{background-color:var(--mat-button-filled-disabled-state-layer-color, var(--mat-sys-on-surface-variant))}.mat-mdc-unelevated-button:hover>.mat-mdc-button-persistent-ripple::before{opacity:var(--mat-button-filled-hover-state-layer-opacity, var(--mat-sys-hover-state-layer-opacity))}.mat-mdc-unelevated-button.cdk-program-focused>.mat-mdc-button-persistent-ripple::before,.mat-mdc-unelevated-button.cdk-keyboard-focused>.mat-mdc-button-persistent-ripple::before,.mat-mdc-unelevated-button.mat-mdc-button-disabled-interactive:focus>.mat-mdc-button-persistent-ripple::before{opacity:var(--mat-button-filled-focus-state-layer-opacity, var(--mat-sys-focus-state-layer-opacity))}.mat-mdc-unelevated-button:active>.mat-mdc-button-persistent-ripple::before{opacity:var(--mat-button-filled-pressed-state-layer-opacity, var(--mat-sys-pressed-state-layer-opacity))}.mat-mdc-unelevated-button .mat-mdc-button-touch-target{position:absolute;top:50%;height:var(--mat-button-filled-touch-target-size, 48px);display:var(--mat-button-filled-touch-target-display, block);left:0;right:0;transform:translateY(-50%)}.mat-mdc-unelevated-button:not(:disabled){color:var(--mat-button-filled-label-text-color, var(--mat-sys-on-primary));background-color:var(--mat-button-filled-container-color, var(--mat-sys-primary))}.mat-mdc-unelevated-button,.mat-mdc-unelevated-button .mdc-button__ripple{border-radius:var(--mat-button-filled-container-shape, var(--mat-sys-corner-full))}.mat-mdc-unelevated-button[disabled],.mat-mdc-unelevated-button.mat-mdc-button-disabled{cursor:default;pointer-events:none;color:var(--mat-button-filled-disabled-label-text-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent));background-color:var(--mat-button-filled-disabled-container-color, color-mix(in srgb, var(--mat-sys-on-surface) 12%, transparent))}.mat-mdc-unelevated-button.mat-mdc-button-disabled-interactive{pointer-events:auto}.mat-mdc-raised-button{transition:box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);box-shadow:var(--mat-button-protected-container-elevation-shadow, var(--mat-sys-level1));height:var(--mat-button-protected-container-height, 40px);font-family:var(--mat-button-protected-label-text-font, var(--mat-sys-label-large-font));font-size:var(--mat-button-protected-label-text-size, var(--mat-sys-label-large-size));letter-spacing:var(--mat-button-protected-label-text-tracking, var(--mat-sys-label-large-tracking));text-transform:var(--mat-button-protected-label-text-transform);font-weight:var(--mat-button-protected-label-text-weight, var(--mat-sys-label-large-weight));padding:0 var(--mat-button-protected-horizontal-padding, 24px)}.mat-mdc-raised-button>.mat-icon{margin-right:var(--mat-button-protected-icon-spacing, 8px);margin-left:var(--mat-button-protected-icon-offset, -8px)}[dir=rtl] .mat-mdc-raised-button>.mat-icon{margin-right:var(--mat-button-protected-icon-offset, -8px);margin-left:var(--mat-button-protected-icon-spacing, 8px)}.mat-mdc-raised-button .mdc-button__label+.mat-icon{margin-right:var(--mat-button-protected-icon-offset, -8px);margin-left:var(--mat-button-protected-icon-spacing, 8px)}[dir=rtl] .mat-mdc-raised-button .mdc-button__label+.mat-icon{margin-right:var(--mat-button-protected-icon-spacing, 8px);margin-left:var(--mat-button-protected-icon-offset, -8px)}.mat-mdc-raised-button .mat-ripple-element{background-color:var(--mat-button-protected-ripple-color, color-mix(in srgb, var(--mat-sys-primary) calc(var(--mat-sys-pressed-state-layer-opacity) * 100%), transparent))}.mat-mdc-raised-button .mat-mdc-button-persistent-ripple::before{background-color:var(--mat-button-protected-state-layer-color, var(--mat-sys-primary))}.mat-mdc-raised-button.mat-mdc-button-disabled .mat-mdc-button-persistent-ripple::before{background-color:var(--mat-button-protected-disabled-state-layer-color, var(--mat-sys-on-surface-variant))}.mat-mdc-raised-button:hover>.mat-mdc-button-persistent-ripple::before{opacity:var(--mat-button-protected-hover-state-layer-opacity, var(--mat-sys-hover-state-layer-opacity))}.mat-mdc-raised-button.cdk-program-focused>.mat-mdc-button-persistent-ripple::before,.mat-mdc-raised-button.cdk-keyboard-focused>.mat-mdc-button-persistent-ripple::before,.mat-mdc-raised-button.mat-mdc-button-disabled-interactive:focus>.mat-mdc-button-persistent-ripple::before{opacity:var(--mat-button-protected-focus-state-layer-opacity, var(--mat-sys-focus-state-layer-opacity))}.mat-mdc-raised-button:active>.mat-mdc-button-persistent-ripple::before{opacity:var(--mat-button-protected-pressed-state-layer-opacity, var(--mat-sys-pressed-state-layer-opacity))}.mat-mdc-raised-button .mat-mdc-button-touch-target{position:absolute;top:50%;height:var(--mat-button-protected-touch-target-size, 48px);display:var(--mat-button-protected-touch-target-display, block);left:0;right:0;transform:translateY(-50%)}.mat-mdc-raised-button:not(:disabled){color:var(--mat-button-protected-label-text-color, var(--mat-sys-primary));background-color:var(--mat-button-protected-container-color, var(--mat-sys-surface))}.mat-mdc-raised-button,.mat-mdc-raised-button .mdc-button__ripple{border-radius:var(--mat-button-protected-container-shape, var(--mat-sys-corner-full))}.mat-mdc-raised-button:hover{box-shadow:var(--mat-button-protected-hover-container-elevation-shadow, var(--mat-sys-level2))}.mat-mdc-raised-button:focus{box-shadow:var(--mat-button-protected-focus-container-elevation-shadow, var(--mat-sys-level1))}.mat-mdc-raised-button:active,.mat-mdc-raised-button:focus:active{box-shadow:var(--mat-button-protected-pressed-container-elevation-shadow, var(--mat-sys-level1))}.mat-mdc-raised-button[disabled],.mat-mdc-raised-button.mat-mdc-button-disabled{cursor:default;pointer-events:none;color:var(--mat-button-protected-disabled-label-text-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent));background-color:var(--mat-button-protected-disabled-container-color, color-mix(in srgb, var(--mat-sys-on-surface) 12%, transparent))}.mat-mdc-raised-button[disabled].mat-mdc-button-disabled,.mat-mdc-raised-button.mat-mdc-button-disabled.mat-mdc-button-disabled{box-shadow:var(--mat-button-protected-disabled-container-elevation-shadow, var(--mat-sys-level0))}.mat-mdc-raised-button.mat-mdc-button-disabled-interactive{pointer-events:auto}.mat-mdc-outlined-button{border-style:solid;transition:border 280ms cubic-bezier(0.4, 0, 0.2, 1);height:var(--mat-button-outlined-container-height, 40px);font-family:var(--mat-button-outlined-label-text-font, var(--mat-sys-label-large-font));font-size:var(--mat-button-outlined-label-text-size, var(--mat-sys-label-large-size));letter-spacing:var(--mat-button-outlined-label-text-tracking, var(--mat-sys-label-large-tracking));text-transform:var(--mat-button-outlined-label-text-transform);font-weight:var(--mat-button-outlined-label-text-weight, var(--mat-sys-label-large-weight));border-radius:var(--mat-button-outlined-container-shape, var(--mat-sys-corner-full));border-width:var(--mat-button-outlined-outline-width, 1px);padding:0 var(--mat-button-outlined-horizontal-padding, 24px)}.mat-mdc-outlined-button>.mat-icon{margin-right:var(--mat-button-outlined-icon-spacing, 8px);margin-left:var(--mat-button-outlined-icon-offset, -8px)}[dir=rtl] .mat-mdc-outlined-button>.mat-icon{margin-right:var(--mat-button-outlined-icon-offset, -8px);margin-left:var(--mat-button-outlined-icon-spacing, 8px)}.mat-mdc-outlined-button .mdc-button__label+.mat-icon{margin-right:var(--mat-button-outlined-icon-offset, -8px);margin-left:var(--mat-button-outlined-icon-spacing, 8px)}[dir=rtl] .mat-mdc-outlined-button .mdc-button__label+.mat-icon{margin-right:var(--mat-button-outlined-icon-spacing, 8px);margin-left:var(--mat-button-outlined-icon-offset, -8px)}.mat-mdc-outlined-button .mat-ripple-element{background-color:var(--mat-button-outlined-ripple-color, color-mix(in srgb, var(--mat-sys-primary) calc(var(--mat-sys-pressed-state-layer-opacity) * 100%), transparent))}.mat-mdc-outlined-button .mat-mdc-button-persistent-ripple::before{background-color:var(--mat-button-outlined-state-layer-color, var(--mat-sys-primary))}.mat-mdc-outlined-button.mat-mdc-button-disabled .mat-mdc-button-persistent-ripple::before{background-color:var(--mat-button-outlined-disabled-state-layer-color, var(--mat-sys-on-surface-variant))}.mat-mdc-outlined-button:hover>.mat-mdc-button-persistent-ripple::before{opacity:var(--mat-button-outlined-hover-state-layer-opacity, var(--mat-sys-hover-state-layer-opacity))}.mat-mdc-outlined-button.cdk-program-focused>.mat-mdc-button-persistent-ripple::before,.mat-mdc-outlined-button.cdk-keyboard-focused>.mat-mdc-button-persistent-ripple::before,.mat-mdc-outlined-button.mat-mdc-button-disabled-interactive:focus>.mat-mdc-button-persistent-ripple::before{opacity:var(--mat-button-outlined-focus-state-layer-opacity, var(--mat-sys-focus-state-layer-opacity))}.mat-mdc-outlined-button:active>.mat-mdc-button-persistent-ripple::before{opacity:var(--mat-button-outlined-pressed-state-layer-opacity, var(--mat-sys-pressed-state-layer-opacity))}.mat-mdc-outlined-button .mat-mdc-button-touch-target{position:absolute;top:50%;height:var(--mat-button-outlined-touch-target-size, 48px);display:var(--mat-button-outlined-touch-target-display, block);left:0;right:0;transform:translateY(-50%)}.mat-mdc-outlined-button:not(:disabled){color:var(--mat-button-outlined-label-text-color, var(--mat-sys-primary));border-color:var(--mat-button-outlined-outline-color, var(--mat-sys-outline))}.mat-mdc-outlined-button[disabled],.mat-mdc-outlined-button.mat-mdc-button-disabled{cursor:default;pointer-events:none;color:var(--mat-button-outlined-disabled-label-text-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent));border-color:var(--mat-button-outlined-disabled-outline-color, color-mix(in srgb, var(--mat-sys-on-surface) 12%, transparent))}.mat-mdc-outlined-button.mat-mdc-button-disabled-interactive{pointer-events:auto}.mat-tonal-button{transition:box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);height:var(--mat-button-tonal-container-height, 40px);font-family:var(--mat-button-tonal-label-text-font, var(--mat-sys-label-large-font));font-size:var(--mat-button-tonal-label-text-size, var(--mat-sys-label-large-size));letter-spacing:var(--mat-button-tonal-label-text-tracking, var(--mat-sys-label-large-tracking));text-transform:var(--mat-button-tonal-label-text-transform);font-weight:var(--mat-button-tonal-label-text-weight, var(--mat-sys-label-large-weight));padding:0 var(--mat-button-tonal-horizontal-padding, 24px)}.mat-tonal-button:not(:disabled){color:var(--mat-button-tonal-label-text-color, var(--mat-sys-on-secondary-container));background-color:var(--mat-button-tonal-container-color, var(--mat-sys-secondary-container))}.mat-tonal-button,.mat-tonal-button .mdc-button__ripple{border-radius:var(--mat-button-tonal-container-shape, var(--mat-sys-corner-full))}.mat-tonal-button[disabled],.mat-tonal-button.mat-mdc-button-disabled{cursor:default;pointer-events:none;color:var(--mat-button-tonal-disabled-label-text-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent));background-color:var(--mat-button-tonal-disabled-container-color, color-mix(in srgb, var(--mat-sys-on-surface) 12%, transparent))}.mat-tonal-button.mat-mdc-button-disabled-interactive{pointer-events:auto}.mat-tonal-button>.mat-icon{margin-right:var(--mat-button-tonal-icon-spacing, 8px);margin-left:var(--mat-button-tonal-icon-offset, -8px)}[dir=rtl] .mat-tonal-button>.mat-icon{margin-right:var(--mat-button-tonal-icon-offset, -8px);margin-left:var(--mat-button-tonal-icon-spacing, 8px)}.mat-tonal-button .mdc-button__label+.mat-icon{margin-right:var(--mat-button-tonal-icon-offset, -8px);margin-left:var(--mat-button-tonal-icon-spacing, 8px)}[dir=rtl] .mat-tonal-button .mdc-button__label+.mat-icon{margin-right:var(--mat-button-tonal-icon-spacing, 8px);margin-left:var(--mat-button-tonal-icon-offset, -8px)}.mat-tonal-button .mat-ripple-element{background-color:var(--mat-button-tonal-ripple-color, color-mix(in srgb, var(--mat-sys-on-secondary-container) calc(var(--mat-sys-pressed-state-layer-opacity) * 100%), transparent))}.mat-tonal-button .mat-mdc-button-persistent-ripple::before{background-color:var(--mat-button-tonal-state-layer-color, var(--mat-sys-on-secondary-container))}.mat-tonal-button.mat-mdc-button-disabled .mat-mdc-button-persistent-ripple::before{background-color:var(--mat-button-tonal-disabled-state-layer-color, var(--mat-sys-on-surface-variant))}.mat-tonal-button:hover>.mat-mdc-button-persistent-ripple::before{opacity:var(--mat-button-tonal-hover-state-layer-opacity, var(--mat-sys-hover-state-layer-opacity))}.mat-tonal-button.cdk-program-focused>.mat-mdc-button-persistent-ripple::before,.mat-tonal-button.cdk-keyboard-focused>.mat-mdc-button-persistent-ripple::before,.mat-tonal-button.mat-mdc-button-disabled-interactive:focus>.mat-mdc-button-persistent-ripple::before{opacity:var(--mat-button-tonal-focus-state-layer-opacity, var(--mat-sys-focus-state-layer-opacity))}.mat-tonal-button:active>.mat-mdc-button-persistent-ripple::before{opacity:var(--mat-button-tonal-pressed-state-layer-opacity, var(--mat-sys-pressed-state-layer-opacity))}.mat-tonal-button .mat-mdc-button-touch-target{position:absolute;top:50%;height:var(--mat-button-tonal-touch-target-size, 48px);display:var(--mat-button-tonal-touch-target-display, block);left:0;right:0;transform:translateY(-50%)}.mat-mdc-button,.mat-mdc-unelevated-button,.mat-mdc-raised-button,.mat-mdc-outlined-button,.mat-tonal-button{-webkit-tap-highlight-color:rgba(0,0,0,0)}.mat-mdc-button .mat-mdc-button-ripple,.mat-mdc-button .mat-mdc-button-persistent-ripple,.mat-mdc-button .mat-mdc-button-persistent-ripple::before,.mat-mdc-unelevated-button .mat-mdc-button-ripple,.mat-mdc-unelevated-button .mat-mdc-button-persistent-ripple,.mat-mdc-unelevated-button .mat-mdc-button-persistent-ripple::before,.mat-mdc-raised-button .mat-mdc-button-ripple,.mat-mdc-raised-button .mat-mdc-button-persistent-ripple,.mat-mdc-raised-button .mat-mdc-button-persistent-ripple::before,.mat-mdc-outlined-button .mat-mdc-button-ripple,.mat-mdc-outlined-button .mat-mdc-button-persistent-ripple,.mat-mdc-outlined-button .mat-mdc-button-persistent-ripple::before,.mat-tonal-button .mat-mdc-button-ripple,.mat-tonal-button .mat-mdc-button-persistent-ripple,.mat-tonal-button .mat-mdc-button-persistent-ripple::before{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none;border-radius:inherit}.mat-mdc-button .mat-mdc-button-ripple,.mat-mdc-unelevated-button .mat-mdc-button-ripple,.mat-mdc-raised-button .mat-mdc-button-ripple,.mat-mdc-outlined-button .mat-mdc-button-ripple,.mat-tonal-button .mat-mdc-button-ripple{overflow:hidden}.mat-mdc-button .mat-mdc-button-persistent-ripple::before,.mat-mdc-unelevated-button .mat-mdc-button-persistent-ripple::before,.mat-mdc-raised-button .mat-mdc-button-persistent-ripple::before,.mat-mdc-outlined-button .mat-mdc-button-persistent-ripple::before,.mat-tonal-button .mat-mdc-button-persistent-ripple::before{content:"";opacity:0}.mat-mdc-button .mdc-button__label,.mat-mdc-button .mat-icon,.mat-mdc-unelevated-button .mdc-button__label,.mat-mdc-unelevated-button .mat-icon,.mat-mdc-raised-button .mdc-button__label,.mat-mdc-raised-button .mat-icon,.mat-mdc-outlined-button .mdc-button__label,.mat-mdc-outlined-button .mat-icon,.mat-tonal-button .mdc-button__label,.mat-tonal-button .mat-icon{z-index:1;position:relative}.mat-mdc-button .mat-focus-indicator,.mat-mdc-unelevated-button .mat-focus-indicator,.mat-mdc-raised-button .mat-focus-indicator,.mat-mdc-outlined-button .mat-focus-indicator,.mat-tonal-button .mat-focus-indicator{top:0;left:0;right:0;bottom:0;position:absolute;border-radius:inherit}.mat-mdc-button:focus>.mat-focus-indicator::before,.mat-mdc-unelevated-button:focus>.mat-focus-indicator::before,.mat-mdc-raised-button:focus>.mat-focus-indicator::before,.mat-mdc-outlined-button:focus>.mat-focus-indicator::before,.mat-tonal-button:focus>.mat-focus-indicator::before{content:"";border-radius:inherit}.mat-mdc-button._mat-animation-noopable,.mat-mdc-unelevated-button._mat-animation-noopable,.mat-mdc-raised-button._mat-animation-noopable,.mat-mdc-outlined-button._mat-animation-noopable,.mat-tonal-button._mat-animation-noopable{transition:none !important;animation:none !important}.mat-mdc-button>.mat-icon,.mat-mdc-unelevated-button>.mat-icon,.mat-mdc-raised-button>.mat-icon,.mat-mdc-outlined-button>.mat-icon,.mat-tonal-button>.mat-icon{display:inline-block;position:relative;vertical-align:top;font-size:1.125rem;height:1.125rem;width:1.125rem}.mat-mdc-outlined-button .mat-mdc-button-ripple,.mat-mdc-outlined-button .mdc-button__ripple{top:-1px;left:-1px;bottom:-1px;right:-1px}.mat-mdc-unelevated-button .mat-focus-indicator::before,.mat-tonal-button .mat-focus-indicator::before,.mat-mdc-raised-button .mat-focus-indicator::before{margin:calc(calc(var(--mat-focus-indicator-border-width, 3px) + 2px)*-1)}.mat-mdc-outlined-button .mat-focus-indicator::before{margin:calc(calc(var(--mat-focus-indicator-border-width, 3px) + 3px)*-1)} `,`@media(forced-colors: active){.mat-mdc-button:not(.mdc-button--outlined),.mat-mdc-unelevated-button:not(.mdc-button--outlined),.mat-mdc-raised-button:not(.mdc-button--outlined),.mat-mdc-outlined-button:not(.mdc-button--outlined),.mat-mdc-button-base.mat-tonal-button,.mat-mdc-icon-button.mat-mdc-icon-button,.mat-mdc-outlined-button .mdc-button__ripple{outline:solid 1px}} -`],encapsulation:2,changeDetection:0})}return t})();function Eee(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 ze=(()=>{class t{static \u0275fac=function(i){return new(i||t)};static \u0275mod=ee({type:t});static \u0275inj=J({imports:[we,yo,we]})}return t})();function Mee(t,n){if(t&1&&(h(0,"mat-option",17),_(1),p()),t&2){let e=n.$implicit;y("value",e),g(),ve(" ",e," ")}}function kee(t,n){if(t&1){let e=Y();h(0,"mat-form-field",14)(1,"mat-select",16,0),S("selectionChange",function(r){I(e);let o=C(2);return A(o._changePageSize(r.value))}),xt(3,Mee,2,2,"mat-option",17,xm),p(),h(5,"div",18),S("click",function(){I(e);let r=Se(2);return A(r.open())}),p()()}if(t&2){let e=C(2);y("appearance",e._formFieldAppearance)("color",e.color),g(),y("value",e.pageSize)("disabled",e.disabled),Kl("aria-labelledby",e._pageSizeLabelId),y("panelClass",e.selectConfig.panelClass||"")("disableOptionCentering",e.selectConfig.disableOptionCentering),g(2),Ct(e._displayedPageSizeOptions)}}function See(t,n){if(t&1&&(h(0,"div",15),_(1),p()),t&2){let e=C(2);g(),H(e.pageSize)}}function Tee(t,n){if(t&1&&(h(0,"div",3)(1,"div",13),_(2),p(),N(3,kee,6,7,"mat-form-field",14),N(4,See,2,1,"div",15),p()),t&2){let e=C();g(),X("id",e._pageSizeLabelId),g(),ve(" ",e._intl.itemsPerPageLabel," "),g(),L(e._displayedPageSizeOptions.length>1?3:-1),g(),L(e._displayedPageSizeOptions.length<=1?4:-1)}}function Iee(t,n){if(t&1){let e=Y();h(0,"button",19),S("click",function(){I(e);let r=C();return A(r._buttonClicked(0,r._previousButtonsDisabled()))}),Gt(),h(1,"svg",8),k(2,"path",20),p()()}if(t&2){let e=C();y("matTooltip",e._intl.firstPageLabel)("matTooltipDisabled",e._previousButtonsDisabled())("disabled",e._previousButtonsDisabled())("tabindex",e._previousButtonsDisabled()?-1:null),X("aria-label",e._intl.firstPageLabel)}}function Aee(t,n){if(t&1){let e=Y();h(0,"button",21),S("click",function(){I(e);let r=C();return A(r._buttonClicked(r.getNumberOfPages()-1,r._nextButtonsDisabled()))}),Gt(),h(1,"svg",8),k(2,"path",22),p()()}if(t&2){let e=C();y("matTooltip",e._intl.lastPageLabel)("matTooltipDisabled",e._nextButtonsDisabled())("disabled",e._nextButtonsDisabled())("tabindex",e._nextButtonsDisabled()?-1:null),X("aria-label",e._intl.lastPageLabel)}}var gc=(()=>{class t{changes=new z;itemsPerPageLabel="Items per page:";nextPageLabel="Next page";previousPageLabel="Previous page";firstPageLabel="First page";lastPageLabel="Last page";getRangeLabel=(e,i,r)=>{if(r==0||i==0)return`0 of ${r}`;r=Math.max(r,0);let o=e*i,a=o{class t{_intl=u(gc);_changeDetectorRef=u(ye);_formFieldAppearance;_pageSizeLabelId=u(Ze).getId("mat-paginator-page-size-label-");_intlChanges;_isInitialized=!1;_initializedStream=new $a(1);color;get pageIndex(){return this._pageIndex}set pageIndex(e){this._pageIndex=Math.max(e||0,0),this._changeDetectorRef.markForCheck()}_pageIndex=0;get length(){return this._length}set length(e){this._length=e||0,this._changeDetectorRef.markForCheck()}_length=0;get pageSize(){return this._pageSize}set pageSize(e){this._pageSize=Math.max(e||0,0),this._updateDisplayedPageSizeOptions()}_pageSize;get pageSizeOptions(){return this._pageSizeOptions}set pageSizeOptions(e){this._pageSizeOptions=(e||[]).map(i=>ct(i,0)),this._updateDisplayedPageSizeOptions()}_pageSizeOptions=[];hidePageSize=!1;showFirstLastButtons=!1;selectConfig={};disabled=!1;page=new U;_displayedPageSizeOptions;initialized=this._initializedStream;constructor(){let e=this._intl,i=u(Fee,{optional:!0});if(this._intlChanges=e.changes.subscribe(()=>this._changeDetectorRef.markForCheck()),i){let{pageSize:r,pageSizeOptions:o,hidePageSize:a,showFirstLastButtons:s}=i;r!=null&&(this._pageSize=r),o!=null&&(this._pageSizeOptions=o),a!=null&&(this.hidePageSize=a),s!=null&&(this.showFirstLastButtons=s)}this._formFieldAppearance=i?.formFieldAppearance||"outline"}ngOnInit(){this._isInitialized=!0,this._updateDisplayedPageSizeOptions(),this._initializedStream.next()}ngOnDestroy(){this._initializedStream.complete(),this._intlChanges.unsubscribe()}nextPage(){this.hasNextPage()&&this._navigate(this.pageIndex+1)}previousPage(){this.hasPreviousPage()&&this._navigate(this.pageIndex-1)}firstPage(){this.hasPreviousPage()&&this._navigate(0)}lastPage(){this.hasNextPage()&&this._navigate(this.getNumberOfPages()-1)}hasPreviousPage(){return this.pageIndex>=1&&this.pageSize!=0}hasNextPage(){let e=this.getNumberOfPages()-1;return this.pageIndexe-i),this._changeDetectorRef.markForCheck())}_emitPageEvent(e){this.page.emit({previousPageIndex:e,pageIndex:this.pageIndex,pageSize:this.pageSize,length:this.length})}_navigate(e){let i=this.pageIndex;e!==i&&(this.pageIndex=e,this._emitPageEvent(i))}_buttonClicked(e,i){i||this._navigate(e)}static \u0275fac=function(i){return new(i||t)};static \u0275cmp=E({type:t,selectors:[["mat-paginator"]],hostAttrs:["role","group",1,"mat-mdc-paginator"],inputs:{color:"color",pageIndex:[2,"pageIndex","pageIndex",ct],length:[2,"length","length",ct],pageSize:[2,"pageSize","pageSize",ct],pageSizeOptions:"pageSizeOptions",hidePageSize:[2,"hidePageSize","hidePageSize",V],showFirstLastButtons:[2,"showFirstLastButtons","showFirstLastButtons",V],selectConfig:"selectConfig",disabled:[2,"disabled","disabled",V]},outputs:{page:"page"},exportAs:["matPaginator"],decls:14,vars:14,consts:[["selectRef",""],[1,"mat-mdc-paginator-outer-container"],[1,"mat-mdc-paginator-container"],[1,"mat-mdc-paginator-page-size"],[1,"mat-mdc-paginator-range-actions"],["aria-live","polite",1,"mat-mdc-paginator-range-label"],["matIconButton","","type","button","matTooltipPosition","above","disabledInteractive","",1,"mat-mdc-paginator-navigation-first",3,"matTooltip","matTooltipDisabled","disabled","tabindex"],["matIconButton","","type","button","matTooltipPosition","above","disabledInteractive","",1,"mat-mdc-paginator-navigation-previous",3,"click","matTooltip","matTooltipDisabled","disabled","tabindex"],["viewBox","0 0 24 24","focusable","false","aria-hidden","true",1,"mat-mdc-paginator-icon"],["d","M15.41 7.41L14 6l-6 6 6 6 1.41-1.41L10.83 12z"],["matIconButton","","type","button","matTooltipPosition","above","disabledInteractive","",1,"mat-mdc-paginator-navigation-next",3,"click","matTooltip","matTooltipDisabled","disabled","tabindex"],["d","M10 6L8.59 7.41 13.17 12l-4.58 4.59L10 18l6-6z"],["matIconButton","","type","button","matTooltipPosition","above","disabledInteractive","",1,"mat-mdc-paginator-navigation-last",3,"matTooltip","matTooltipDisabled","disabled","tabindex"],[1,"mat-mdc-paginator-page-size-label"],[1,"mat-mdc-paginator-page-size-select",3,"appearance","color"],[1,"mat-mdc-paginator-page-size-value"],["hideSingleSelectionIndicator","",3,"selectionChange","value","disabled","aria-labelledby","panelClass","disableOptionCentering"],[3,"value"],[1,"mat-mdc-paginator-touch-target",3,"click"],["matIconButton","","type","button","matTooltipPosition","above","disabledInteractive","",1,"mat-mdc-paginator-navigation-first",3,"click","matTooltip","matTooltipDisabled","disabled","tabindex"],["d","M18.41 16.59L13.82 12l4.59-4.59L17 6l-6 6 6 6zM6 6h2v12H6z"],["matIconButton","","type","button","matTooltipPosition","above","disabledInteractive","",1,"mat-mdc-paginator-navigation-last",3,"click","matTooltip","matTooltipDisabled","disabled","tabindex"],["d","M5.59 7.41L10.18 12l-4.59 4.59L7 18l6-6-6-6zM16 6h2v12h-2z"]],template:function(i,r){i&1&&(h(0,"div",1)(1,"div",2),N(2,Tee,5,4,"div",3),h(3,"div",4)(4,"div",5),_(5),p(),N(6,Iee,3,5,"button",6),h(7,"button",7),S("click",function(){return r._buttonClicked(r.pageIndex-1,r._previousButtonsDisabled())}),Gt(),h(8,"svg",8),k(9,"path",9),p()(),jo(),h(10,"button",10),S("click",function(){return r._buttonClicked(r.pageIndex+1,r._nextButtonsDisabled())}),Gt(),h(11,"svg",8),k(12,"path",11),p()(),N(13,Aee,3,5,"button",12),p()()()),i&2&&(g(2),L(r.hidePageSize?-1:2),g(3),ve(" ",r._intl.getRangeLabel(r.pageIndex,r.pageSize,r.length)," "),g(),L(r.showFirstLastButtons?6:-1),g(),y("matTooltip",r._intl.previousPageLabel)("matTooltipDisabled",r._previousButtonsDisabled())("disabled",r._previousButtonsDisabled())("tabindex",r._previousButtonsDisabled()?-1:null),X("aria-label",r._intl.previousPageLabel),g(3),y("matTooltip",r._intl.nextPageLabel)("matTooltipDisabled",r._nextButtonsDisabled())("disabled",r._nextButtonsDisabled())("tabindex",r._nextButtonsDisabled()?-1:null),X("aria-label",r._intl.nextPageLabel),g(3),L(r.showFirstLastButtons?13:-1))},dependencies:[Oi,Na,xn,ti,Eo],styles:[`.mat-mdc-paginator{display:block;-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;color:var(--mat-paginator-container-text-color, var(--mat-sys-on-surface));background-color:var(--mat-paginator-container-background-color, var(--mat-sys-surface));font-family:var(--mat-paginator-container-text-font, var(--mat-sys-body-small-font));line-height:var(--mat-paginator-container-text-line-height, var(--mat-sys-body-small-line-height));font-size:var(--mat-paginator-container-text-size, var(--mat-sys-body-small-size));font-weight:var(--mat-paginator-container-text-weight, var(--mat-sys-body-small-weight));letter-spacing:var(--mat-paginator-container-text-tracking, var(--mat-sys-body-small-tracking));--mat-form-field-container-height: var(--mat-paginator-form-field-container-height, 40px);--mat-form-field-container-vertical-padding: var(--mat-paginator-form-field-container-vertical-padding, 8px)}.mat-mdc-paginator .mat-mdc-select-value{font-size:var(--mat-paginator-select-trigger-text-size, var(--mat-sys-body-small-size))}.mat-mdc-paginator .mat-mdc-form-field-subscript-wrapper{display:none}.mat-mdc-paginator .mat-mdc-select{line-height:1.5}.mat-mdc-paginator-outer-container{display:flex}.mat-mdc-paginator-container{display:flex;align-items:center;justify-content:flex-end;padding:0 8px;flex-wrap:wrap;width:100%;min-height:var(--mat-paginator-container-size, 56px)}.mat-mdc-paginator-page-size{display:flex;align-items:baseline;margin-right:8px}[dir=rtl] .mat-mdc-paginator-page-size{margin-right:0;margin-left:8px}.mat-mdc-paginator-page-size-label{margin:0 4px}.mat-mdc-paginator-page-size-select{margin:0 4px;width:var(--mat-paginator-page-size-select-width, 84px)}.mat-mdc-paginator-range-label{margin:0 32px 0 24px}.mat-mdc-paginator-range-actions{display:flex;align-items:center}.mat-mdc-paginator-icon{display:inline-block;width:28px;fill:var(--mat-paginator-enabled-icon-color, var(--mat-sys-on-surface-variant))}.mat-mdc-icon-button[aria-disabled] .mat-mdc-paginator-icon{fill:var(--mat-paginator-disabled-icon-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent))}[dir=rtl] .mat-mdc-paginator-icon{transform:rotate(180deg)}@media(forced-colors: active){.mat-mdc-icon-button[aria-disabled] .mat-mdc-paginator-icon,.mat-mdc-paginator-icon{fill:currentColor}.mat-mdc-paginator-range-actions .mat-mdc-icon-button{outline:solid 1px}.mat-mdc-paginator-range-actions .mat-mdc-icon-button[aria-disabled]{color:GrayText}}.mat-mdc-paginator-touch-target{display:var(--mat-paginator-touch-target-display, block);position:absolute;top:50%;left:50%;width:var(--mat-paginator-page-size-select-width, 84px);height:var(--mat-paginator-page-size-select-touch-target-height, 48px);background-color:rgba(0,0,0,0);transform:translate(-50%, -50%);cursor:pointer} -`],encapsulation:2,changeDetection:0})}return t})(),_c=(()=>{class t{static \u0275fac=function(i){return new(i||t)};static \u0275mod=ee({type:t});static \u0275inj=J({providers:[Ree],imports:[ze,fc,Br,ir]})}return t})();var _g=class extends Li{constructor(){super(...arguments),this._delegate=u(Li)}getValidDateOrNull(n){return this.isDateInstance(n)&&this.isValid(n)?n:null}compareDatetime(n,e,i=!0){return this.compareDate(n,e)||this.getHour(n)-this.getHour(e)||i&&this.getMinute(n)-this.getMinute(e)}sameDatetime(n,e){if(n&&e){let i=this.isValid(n),r=this.isValid(e);return i&&r?!this.compareDatetime(n,e):i===r}return n===e}sameYear(n,e){return n&&e&&this.getYear(n)===this.getYear(e)}sameDay(n,e){return n&&e&&this.getDate(n)===this.getDate(e)&&this.sameMonthAndYear(n,e)}sameHour(n,e){return n&&e&&this.getHour(n)===this.getHour(e)&&this.sameDay(n,e)}sameMinute(n,e){return n&&e&&this.getMinute(n)===this.getMinute(e)&&this.sameHour(n,e)}sameMonthAndYear(n,e){if(n&&e){let i=this.isValid(n),r=this.isValid(e);return i&&r?!(this.getYear(n)-this.getYear(e)||this.getMonth(n)-this.getMonth(e)):i===r}return n===e}clone(n){return this._delegate.clone(n)}addCalendarYears(n,e){return this._delegate.addCalendarYears(n,e)}addCalendarMonths(n,e){return this._delegate.addCalendarMonths(n,e)}addCalendarDays(n,e){return this._delegate.addCalendarDays(n,e)}getYear(n){return this._delegate.getYear(n)}getMonth(n){return this._delegate.getMonth(n)}getDate(n){return this._delegate.getDate(n)}getDayOfWeek(n){return this._delegate.getDayOfWeek(n)}getMonthNames(n){return this._delegate.getMonthNames(n)}getDateNames(){return this._delegate.getDateNames()}getDayOfWeekNames(n){return this._delegate.getDayOfWeekNames(n)}getYearName(n){return this._delegate.getYearName(n)}getFirstDayOfWeek(){return this._delegate.getFirstDayOfWeek()}getNumDaysInMonth(n){return this._delegate.getNumDaysInMonth(n)}createDate(n,e,i){return this._delegate.createDate(n,e,i)}today(){return this._delegate.today()}parse(n,e){return this._delegate.parse(n,e)}format(n,e){return this._delegate.format(n,e)}toIso8601(n){return this._delegate.toIso8601(n)}isDateInstance(n){return this._delegate.isDateInstance(n)}isValid(n){return this._delegate.isValid(n)}invalid(){return this._delegate.invalid()}clampDate(n,e,i){return e&&this.compareDatetime(n,e)<0?e:i&&this.compareDatetime(n,i)>0?i:n}},n3=new T("mtx-datetime-formats"),HGe=r3(24,t=>String(t)),zGe=r3(60,t=>String(t));function r3(t,n){let e=Array(t);for(let i=0;i{let n=class n{transform(i){return ji(i)?i:Q(i)}};n.\u0275fac=function(r){return new(r||n)},n.\u0275pipe=Wr({name:"toObservable",type:n,pure:!0});let t=n;return t})();var a3=(()=>{let n=class n{};n.\u0275fac=function(r){return new(r||n)},n.\u0275mod=ee({type:n}),n.\u0275inj=J({imports:[gt]});let t=n;return t})();function s3(t,n){let e=Array(t);for(let i=0;i{let n=class n extends _g{constructor(){super();let i=u(ys,{optional:!0});this.setLocale(i)}setLocale(i){super.setLocale(i)}getHour(i){return sy(i)}getMinute(i){return ly(i)}isInNextMonth(i,r){let o=this.getDateInNextMonth(i);return super.sameMonthAndYear(o,r)}getWeek(i,r){return dh(i,{weekStartsOn:r})}createDatetime(i,r,o,a,s){if(r<0||r>11)throw Error(`Invalid month index "${r}". Month index has to be between 0 and 11.`);if(o<1)throw Error(`Invalid date "${o}". Date has to be greater than 0.`);if(a<0||a>23)throw Error(`Invalid hour "${a}". Hour has to be between 0 and 23.`);if(s<0||s>59)throw Error(`Invalid minute "${s}". Minute has to be between 0 and 59.`);let l=new Date(i,r,o,a,s);if(!sh(l))throw Error(`Invalid date "${o}" for month with index "${r}".`);return l}getFirstDateOfMonth(i){return sV(i)}getHourNames(){return s3(24,i=>i.toLocaleString(this.locale))}getMinuteNames(){return s3(60,i=>i.toLocaleString(this.locale))}addCalendarHours(i,r){return tV(i,r)}addCalendarMinutes(i,r){return rV(i,r)}deserialize(i){return this._delegate.deserialize(i)}getDateInNextMonth(i){return ah(i,1)}};n.\u0275fac=function(r){return new(r||n)},n.\u0275prov=O({token:n,factory:n.\u0275fac});let t=n;return t})(),Vee={parse:{dateInput:"P",monthInput:"LLLL",yearInput:"yyyy",datetimeInput:"P p",timeInput:"p"},display:{dateInput:"P",monthInput:"LLLL",yearInput:"yyyy",datetimeInput:"P p",timeInput:"p",monthYearLabel:"yyyy",dateA11yLabel:"LLLL dd, yyyy",monthYearA11yLabel:"MMMM yyyy",popupHeaderDateLabel:"ccc, dd LLL"}};function l3(t=Vee){return[{provide:Li,useClass:Vk,deps:[ys]},{provide:_g,useClass:Lee},{provide:n3,useValue:t}]}var Bee=["container"];function jee(t,n){}function Hee(t,n){}var zee=["*"];function Uee(t,n){if(t&1&&k(0,"formly-field",0),t&2){let e=n.$implicit;y("field",e)}}var c3=["fieldComponent"];function $ee(t,n,e){if(n.id)return n.id;let i=n.type;return!i&&n.template&&(i="template"),i instanceof Td&&(i=i.prototype.constructor.name),[t,i,n.key,e].join("_")}function mn(t){return!bc(t.key)&&t.key!==""&&(!Array.isArray(t.key)||t.key.length>0)}function uu(t){if(!mn(t))return[];if(t._keyPath?.key!==t.key){let n=[];if(typeof t.key=="string"){let e=t.key.indexOf("[")===-1?t.key:t.key.replace(/\[(\w+)\]/g,".$1");n=e.indexOf(".")!==-1?e.split("."):[e]}else Array.isArray(t.key)?n=t.key.slice(0):n=[`${t.key}`];nr(t,"_keyPath",{key:t.key,path:n})}return t._keyPath.path.slice(0)}var _S=["required","pattern","minLength","maxLength","min","max"];function bg(t,n){let e=uu(t);if(e.length===0)return;let i=t;for(;i.parent;)i=i.parent,e=[...uu(i),...e];if(n===void 0&&t.resetOnHide){let r=e.pop(),o=e.reduce((a,s)=>a[s]||{},i.model);delete o[r];return}Wee(i.model,e,n)}function Wee(t,n,e){for(let i=0;i{for(let i in e)bc(t[i])||Gee(t[i])?t[i]=vc(e[i]):qee(t[i],e[i])&&Ch(t[i],e[i])}),t}function bc(t){return t==null}function bx(t){return t===void 0}function Gee(t){return t===""}function uS(t){return typeof t=="function"}function qee(t,n){return La(t)&&La(n)&&Object.getPrototypeOf(t)===Object.getPrototypeOf(n)&&!(Array.isArray(t)||Array.isArray(n))}function La(t){return t!=null&&typeof t=="object"}function Yee(t){return!!t&&typeof t.then=="function"}function vc(t){if(!La(t)||ji(t)||t instanceof te||t.changingThisBreaksApplicationSecurity||["RegExp","FileList","File","Blob"].indexOf(t.constructor?.name)!==-1)return t;if(t instanceof Set)return new Set(t);if(t instanceof Map)return new Map(t);if(t instanceof Uint8Array)return new Uint8Array(t);if(t instanceof Uint16Array)return new Uint16Array(t);if(t instanceof Uint32Array)return new Uint32Array(t);if(t._isAMomentObject&&uS(t.clone))return t.clone();if(t instanceof hc)return null;if(t instanceof Date)return new Date(t.getTime());if(Array.isArray(t))return t.slice(0).map(i=>vc(i));let n=Object.getPrototypeOf(t),e=Object.create(n);return e=Object.setPrototypeOf(e,n),Object.keys(t).reduce((i,r)=>{let o=Object.getOwnPropertyDescriptor(t,r);return o.get?Object.defineProperty(i,r,o):i[r]=vc(t[r]),i},e)}function nr(t,n,e){Object.defineProperty(t,n,{enumerable:!1,writable:!0,configurable:!0}),t[n]=e}function d3(t,n,e){let i=[],r=()=>{i.forEach(a=>a()),i=[]},o=Wi(t,n,({firstChange:a,currentValue:s})=>{!a&&e(),r(),La(s)&&s.constructor.name==="Object"&&Object.keys(s).forEach(l=>{i.push(d3(t,[...n,l],e))})});return()=>{o.unsubscribe(),r()}}function Wi(t,n,e){t._observers||nr(t,"_observers",{});let i=t;for(let s=0;s=1&&La(i))){let{enumerable:s}=Object.getOwnPropertyDescriptor(i,r)||{enumerable:!0};Object.defineProperty(i,r,{enumerable:s,configurable:!0,get:()=>a.value,set:l=>{if(l!==a.value){let c=a.value;a.value=l,a.onChange.forEach(d=>d({previousValue:c,currentValue:l,firstChange:!1}))}}})}return{setValue(s,l=!0){if(s===a.value)return;let c=a.value;a.value=s,a.onChange.forEach(d=>{d!==e&&l&&d({previousValue:c,currentValue:s,firstChange:!1})})},unsubscribe(){a.onChange=a.onChange.filter(s=>s!==e),a.onChange.length===0&&delete t._observers[o]}}}function u3(t,n){if(n=Array.isArray(n)?n.join("."):n,!!t.fieldGroup)for(let e=0,i=t.fieldGroup.length;e{n instanceof Id?n.injector.get(ye).markForCheck():n.markForCheck()})}function Qee(t){let n=i=>i.hide||i.expressions?.hide||i.hideExpression,e=!t.resetOnHide||!n(t);if(!n(t)&&t.resetOnHide){let i=t.parent;for(;i&&!n(i);)i=i.parent;e=!i||!n(i)}return!e}function m3(){return+wp.major>18||+wp.major>=18&&+wp.minor>=1}function Kee(t,n){try{return Function(...n,`return ${t};`)}catch(e){console.error(e)}}function Zee(t,n,e){return typeof t=="function"?t.apply(n,e):!!t}function Xee(t,n=!1){let e=t.formControl,i=e._fields?e._fields.indexOf(t):-1;i!==-1&&e._fields.splice(i,1);let r=e.parent;if(!r)return;let o={emitEvent:n};if(r instanceof oS){let a=r.controls.findIndex(s=>s===e);a!==-1&&r.removeAt(a,o)}else if(r instanceof px){let a=uu(t),s=a[a.length-1];r.get([s])===e&&r.removeControl(s,o)}e.setParent(null)}function Jee(t){return t.formControl?t.formControl:t.shareFormControl===!1?null:t.form?.get(uu(t))}function h3(t,n,e=!1){if(n=n||t.formControl,n._fields||nr(n,"_fields",[]),n._fields.indexOf(t)===-1&&n._fields.push(t),!t.formControl&&n){nr(t,"formControl",n),n.setValidators(null),n.setAsyncValidators(null),t.props.disabled=!!t.props.disabled;let s=Wi(t,["props","disabled"],({firstChange:l,currentValue:c})=>{l||(c?t.formControl.disable():t.formControl.enable())});n instanceof Jo&&n.registerOnDisabledChange(s.setValue)}if(!t.form||!mn(t))return;let i=t.form,r=uu(t),o=mu(t);!(bc(n.value)&&bc(o))&&n.value!==o&&n instanceof Jo&&n.patchValue(o);for(let s=0;s{nr(n,"_hide",!!i),(!r||r&&i===!0)&&(n.props.hidden=i,n.options._hiddenFieldsForCheck.push({field:n}))}),n.hideExpression&&Wi(n,["hideExpression"],({currentValue:i})=>{n._expressions.hide=this.parseExpressions(n,"hide",typeof i=="boolean"?()=>i:i)});let e=(i,r)=>{typeof r=="string"||uS(r)?n._expressions[i]=this.parseExpressions(n,i,r):r instanceof Fe&&(n._expressions[i]={value$:r.pipe(Be(o=>{this.evalExpr(n,i,o),n.options._detectChanges(n)}))})};n.expressions=n.expressions||{};for(let i of Object.keys(n.expressions))Wi(n,["expressions",i],({currentValue:r})=>{e(i,uS(r)?(...o)=>r(n,o[3]):r)});n.expressionProperties=n.expressionProperties||{};for(let i of Object.keys(n.expressionProperties))Wi(n,["expressionProperties",i],({currentValue:r})=>e(i,r))}postPopulate(n){if(!n.parent&&!n.options.checkExpressions){let e=!1;n.options.checkExpressions=(i,r)=>{if(e)return;e=!0;let o=this.checkExpressions(i,r),a=n.options;a._hiddenFieldsForCheck.sort(s=>s.field.hide?-1:1).forEach(s=>this.changeHideState(s.field,s.field.hide??s.default,!r)),a._hiddenFieldsForCheck=[],o&&this.checkExpressions(n),e=!1}}}parseExpressions(n,e,i){let r;if(n.parent&&["hide","props.disabled"].includes(e)){let a=s=>e==="hide"?s.hide:s.props.disabled;r=()=>{let s=n.parent;for(;s.parent&&!a(s);)s=s.parent;return a(s)}}i=i||(()=>!1),typeof i=="string"&&(i=Kee(i,["model","formState","field"]));let o;return{callback:a=>{try{let s=Zee(r?(...l)=>r(n)||i(...l):i,{field:n},[n.model,n.options.formState,n,a]);return a||o!==s&&(!La(s)||ji(s)||JSON.stringify(s)!==JSON.stringify(o))?(o=s,this.evalExpr(n,e,s),!0):!1}catch(s){throw s.message=`[Formly Error] [Expression "${e}"] ${s.message}`,s}}}}checkExpressions(n,e=!1){if(!n)return!1;let i=!1;if(n._expressions)for(let r of Object.keys(n._expressions))n._expressions[r].callback?.(e)&&(i=!0);return n.fieldGroup?.forEach(r=>this.checkExpressions(r,e)&&(i=!0)),i}changeDisabledState(n,e){n.fieldGroup&&n.fieldGroup.filter(i=>!i._expressions.hasOwnProperty("props.disabled")).forEach(i=>this.changeDisabledState(i,e)),mn(n)&&n.props.disabled!==e&&(n.props.disabled=e)}changeHideState(n,e,i){if(n.fieldGroup&&n.fieldGroup.filter(r=>r&&!r._expressions.hide).forEach(r=>this.changeHideState(r,e,i)),n.formControl&&mn(n)){nr(n,"_hide",!!(e||n.hide));let r=n.formControl;r._fields?.length>1&&vg(r),e===!0&&(!r._fields||r._fields.every(o=>!!o._hide))?(Xee(n,!0),i&&n.resetOnHide&&(bg(n,void 0),n.formControl.reset({value:void 0,disabled:n.formControl.disabled}),n.options.fieldChanges.next({value:void 0,field:n,type:"valueChanges"}),n.fieldGroup&&n.formControl instanceof oS&&(n.fieldGroup.length=0))):e===!1&&(n.resetOnHide&&!bx(n.defaultValue)&&bx(mu(n))&&bg(n,n.defaultValue),h3(n,void 0,!0),n.resetOnHide&&n.fieldArray&&n.fieldGroup?.length!==n.model?.length&&n.options.build(n))}n.options.fieldChanges&&n.options.fieldChanges.next({field:n,type:"hidden",value:e})}evalExpr(n,e,i){if(e.indexOf("model.")===0){let r=e.replace(/^model\./,""),o=n.fieldGroup?n:n.parent,a=n?.key===r?n.formControl:n.form.get(r);!a&&n.get(r)&&(a=n.get(r).formControl),bg({key:r,parent:o,model:n.model},i),a&&!(bc(a.value)&&bc(i))&&a.value!==i&&a.patchValue(i)}else{try{let r=n,o=this._evalExpressionPath(n,e),a=o.length-1;for(let s=0;sr).forEach(r=>{let o=r.match(/['|"](.*?)['|"]/);o?i.push(o[1]):i.push(...r.split(".").filter(a=>a))}),n._expressions[e]&&(n._expressions[e].paths=i),i}},pS=class{constructor(n){this.config=n,this.formId=0}prePopulate(n){let e=n.parent;this.initRootOptions(n),this.initFieldProps(n),e&&(Object.defineProperty(n,"options",{get:()=>e.options,configurable:!0}),Object.defineProperty(n,"model",{get:()=>mn(n)&&n.fieldGroup?mu(n):e.model,configurable:!0})),Object.defineProperty(n,"get",{value:i=>u3(n,i),configurable:!0}),this.getFieldComponentInstance(n).prePopulate?.(n)}onPopulate(n){this.initFieldOptions(n),this.getFieldComponentInstance(n).onPopulate?.(n),n.fieldGroup&&n.fieldGroup.forEach((e,i)=>{e&&(Object.defineProperty(e,"parent",{get:()=>n,configurable:!0}),Object.defineProperty(e,"index",{get:()=>i,configurable:!0})),this.formId++})}postPopulate(n){this.getFieldComponentInstance(n).postPopulate?.(n)}initFieldProps(n){n.props??=n.templateOptions,Object.defineProperty(n,"templateOptions",{get:()=>n.props,set:e=>n.props=e,configurable:!0})}initRootOptions(n){if(n.parent)return;let e=n.options;n.options.formState=n.options.formState||{},e.showError||(e.showError=this.config.extras.showError),e.fieldChanges||nr(e,"fieldChanges",new z),e._hiddenFieldsForCheck||(e._hiddenFieldsForCheck=[]),e._detectChanges=i=>{i._componentRefs&&mS(i),i.fieldGroup?.forEach(r=>r&&e._detectChanges(r))},e.detectChanges=i=>{i.options.checkExpressions?.(i),e._detectChanges(i)},e.resetModel=i=>{i=vc(i??e._initialModel),n.model&&(Object.keys(n.model).forEach(r=>delete n.model[r]),Object.assign(n.model,i||{})),m3()||Wi(e,["parentForm","submitted"]).setValue(!1,!1),e.build(n),n.form.reset(n.model)},e.updateInitialValue=i=>e._initialModel=vc(i??n.model),n.options.updateInitialValue()}initFieldOptions(n){Ch(n,{id:$ee(`formly_${this.formId}`,n,n.index),hooks:{},modelOptions:{},validation:{messages:{}},props:!n.type||!mn(n)?{}:{label:"",placeholder:"",disabled:!1}}),this.config.extras.resetFieldOnHide&&n.resetOnHide!==!1&&(n.resetOnHide=!0),n.type!=="formly-template"&&(n.template||n.expressions?.template||n.expressionProperties?.template)&&(n.type="formly-template"),!n.type&&n.fieldGroup&&(n.type="formly-group"),n.type&&this.config.getMergedField(n),mn(n)&&!bx(n.defaultValue)&&bx(mu(n))&&!Qee(n)&&bg(n,n.defaultValue),n.wrappers=n.wrappers||[]}getFieldComponentInstance(n){let e=()=>{let i=this.config.resolveFieldTypeRef(n),r=n._componentRefs?.slice(-1)[0];return r instanceof Id&&r?.componentType===i?.componentType&&(i=r),i?.instance};return n._proxyInstance||nr(n,"_proxyInstance",new Proxy({},{get:(i,r)=>e()?.[r],set:(i,r,o)=>e()[r]=o})),n._proxyInstance}},fS=class{prePopulate(n){this.root||(this.root=n),n.parent&&Object.defineProperty(n,"form",{get:()=>n.parent.formControl,configurable:!0})}onPopulate(n){n.hasOwnProperty("fieldGroup")&&!mn(n)?nr(n,"formControl",n.form):this.addFormControl(n)}postPopulate(n){if(this.root!==n)return;if(this.root=null,this.setValidators(n)&&n.parent){let i=n.parent;for(;i;)(mn(i)||!i.parent)&&vg(i.formControl,!0),i=i.parent}}addFormControl(n){let e=Jee(n);if(!n.fieldArray){if(e){if(e instanceof Jo){let i=mn(n)?mu(n):n.defaultValue;e.defaultValue=i}}else{let i={updateOn:n.modelOptions.updateOn};if(n.fieldGroup)e=new px({},i);else{let r=mn(n)?mu(n):n.defaultValue;e=new UB({value:r,disabled:!!n.props.disabled},De(M({},i),{initialValueIsDefault:!0}))}}h3(n,e)}}setValidators(n,e=!1){e===!1&&mn(n)&&n.props?.disabled&&(e=!0);let i=!1;if(n.fieldGroup?.forEach(r=>r&&this.setValidators(r,e)&&(i=!0)),mn(n)||!n.parent||!mn(n)&&!n.fieldGroup){let{formControl:r}=n;if(r&&(mn(n)&&r instanceof Jo&&(e&&r.enabled&&(r.disable({emitEvent:!1,onlySelf:!0}),i=!0),!e&&r.disabled&&(r.enable({emitEvent:!1,onlySelf:!0}),i=!0)),r.validator===null&&this.hasValidators(n,"_validators")&&(r.setValidators(()=>{let o=Le.compose(this.mergeValidators(n,"_validators"));return o?o(r):null}),i=!0),r.asyncValidator===null&&this.hasValidators(n,"_asyncValidators")&&(r.setAsyncValidators(()=>{let o=Le.composeAsync(this.mergeValidators(n,"_asyncValidators"));return o?o(r):Q(null)}),i=!0),i)){vg(r,!0);let o=r.parent;for(let a=1;a1&&i._fields.some(r=>r[e].length>0)||n[e].length>0?!0:n.fieldGroup?.some(r=>r?.fieldGroup&&!mn(r)&&this.hasValidators(r,e))}mergeValidators(n,e){let i=[],r=n.formControl;return r?._fields?.length>1?r._fields.filter(o=>!o._hide).forEach(o=>i.push(...o[e])):n[e]&&i.push(...n[e]),n.fieldGroup&&n.fieldGroup.filter(o=>o?.fieldGroup&&!mn(o)).forEach(o=>i.push(...this.mergeValidators(o,e))),i}},gS=class{constructor(n){this.config=n}onPopulate(n){this.initFieldValidation(n,"validators"),this.initFieldValidation(n,"asyncValidators")}initFieldValidation(n,e){let i=[];if(e==="validators"&&!(n.hasOwnProperty("fieldGroup")&&!mn(n))&&i.push(this.getPredefinedFieldValidation(n)),n[e])for(let r of Object.keys(n[e]))r==="validation"?i.push(...n[e].validation.map(o=>this.wrapNgValidatorFn(n,o))):i.push(this.wrapNgValidatorFn(n,n[e][r],r));nr(n,"_"+e,i)}getPredefinedFieldValidation(n){let e=[];return _S.forEach(i=>Wi(n,["props",i],({currentValue:r,firstChange:o})=>{e=e.filter(a=>a!==i),i==="required"&&r!=null&&typeof r!="boolean"&&console.warn(`Formly: Invalid prop 'required' of type '${typeof r}', expected 'boolean' (Field:${n.key}).`),r!=null&&r!==!1&&e.push(i),!o&&n.formControl&&vg(n.formControl)})),i=>e.length===0?null:Le.compose(e.map(r=>()=>{let o=n.props[r];switch(r){case"required":return Le.required(i);case"pattern":return Le.pattern(o)(i);case"minLength":let a=Le.minLength(o)(i),s=this.config.getValidatorMessage("minlength")||n.validation?.messages?.minlength?"minlength":"minLength";return a?{[s]:a.minlength}:null;case"maxLength":let l=Le.maxLength(o)(i),c=this.config.getValidatorMessage("maxlength")||n.validation?.messages?.maxlength?"maxlength":"maxLength";return l?{[c]:l.maxlength}:null;case"min":return Le.min(o)(i);case"max":return Le.max(o)(i);default:return null}}))(i)}wrapNgValidatorFn(n,e,i){let r;if(typeof e=="string"&&(r=vc(this.config.getValidator(e))),typeof e=="object"&&e.name&&(r=vc(this.config.getValidator(e.name)),e.options&&(r.options=e.options)),typeof e=="object"&&e.expression){let o=e,{expression:a}=o,s=ed(o,["expression"]);r={name:i,validation:a,options:Object.keys(s).length>0?s:null}}return typeof e=="function"&&(r={name:i,validation:e}),a=>{let s=r.validation(a,n,r.options);return Yee(s)?s.then(l=>this.handleResult(n,i?!!l:l,r)):ji(s)?s.pipe(se(l=>this.handleResult(n,i?!!l:l,r))):this.handleResult(n,i?!!s:s,r)}}handleResult(n,e,{name:i,options:r}){typeof e=="boolean"&&(e=e?null:{[i]:r||!0});let o=n.formControl;return o?._childrenErrors?.[i]?.(),La(e)&&Object.keys(e).forEach(a=>{let s=e[a].errorPath?e[a].errorPath:r?.errorPath,l=s?n.formControl.get(s):null;if(l){let c=e[a],{errorPath:d}=c,m=ed(c,["errorPath"]);l.setErrors(De(M({},l.errors||{}),{[a]:m})),!o._childrenErrors&&nr(o,"_childrenErrors",{}),o._childrenErrors[a]=()=>{let v=l.errors||{},{[a]:f}=v,b=ed(v,[pA(a)]);l.setErrors(Object.keys(b).length===0?null:b)}}}),e}},xg=(()=>{let n=class n{constructor(){this.field={}}set _formlyControls(i){let r=this.field;r._localFields=i.map(o=>o.control._fields||[]).flat().filter(o=>o.formControl!==this.field.formControl)}get model(){return this.field.model}get form(){return this.field.form}get options(){return this.field.options}get key(){return this.field.key}get formControl(){return this.field.formControl}get props(){return this.field.props||{}}get to(){return this.props}get showError(){return this.options.showError(this)}get id(){return this.field.id}get formState(){return this.options?.formState||{}}};n.\u0275fac=function(r){return new(r||n)},n.\u0275dir=F({type:n,viewQuery:function(r,o){if(r&1&&ie(Hn,5),r&2){let a;B(a=j())&&(o._formlyControls=a)}},inputs:{field:"field"},standalone:!1});let t=n;return t})(),ete=(()=>{let n=class n extends xg{get template(){return this.field&&this.field.template!==this.innerHtml.template&&(this.innerHtml={template:this.field.template,content:this.props.safeHtml?this.sanitizer.bypassSecurityTrustHtml(this.field.template):this.field.template}),this.innerHtml.content}constructor(i){super(),this.sanitizer=i,this.innerHtml={}}};n.\u0275fac=function(r){return new(r||n)(_e(Cf))},n.\u0275cmp=E({type:n,selectors:[["formly-template"]],standalone:!1,features:[le],decls:1,vars:1,consts:[[3,"innerHtml"]],template:function(r,o){r&1&&k(0,"div",0),r&2&&y("innerHtml",o.template,Zp)},encapsulation:2,changeDetection:0});let t=n;return t})(),bS=(()=>{let n=class n{constructor(){this.types={},this.validators={},this.wrappers={},this.messages={},this.extras={checkExpressionOn:"modelChange",lazyRender:!0,resetFieldOnHide:!0,renderFormlyFieldElement:!0,showError(i){return i.formControl?.invalid&&(i.formControl?.touched||i.options.parentForm?.submitted||!!i.field.validation?.show)}},this.extensions={},this.presets={},this.extensionsByPriority={},this.componentRefs={}}addConfig(i){if(Array.isArray(i)){i.forEach(r=>this.addConfig(r));return}i.types&&i.types.forEach(r=>this.setType(r)),i.validators&&i.validators.forEach(r=>this.setValidator(r)),i.wrappers&&i.wrappers.forEach(r=>this.setWrapper(r)),i.validationMessages&&i.validationMessages.forEach(r=>this.addValidatorMessage(r.name,r.message)),i.extensions&&this.setSortedExtensions(i.extensions),i.extras&&(this.extras=M(M({},this.extras),i.extras)),i.presets&&(this.presets=M(M({},this.presets),i.presets.reduce((r,o)=>De(M({},r),{[o.name]:o.config}),{})))}setType(i){Array.isArray(i)?i.forEach(r=>this.setType(r)):(this.types[i.name]||(this.types[i.name]={name:i.name}),["component","extends","defaultOptions","wrappers"].forEach(r=>{i.hasOwnProperty(r)&&(this.types[i.name][r]=i[r])}))}getType(i,r=!1){if(i instanceof Td)return{component:i,name:i.prototype.constructor.name};if(!this.types[i]){if(r)throw new Error(`[Formly Error] The type "${i}" could not be found. Please make sure that is registered through the FormlyModule declaration.`);return null}return this.mergeExtendedType(i),this.types[i]}getMergedField(i={}){let r=this.getType(i.type);if(!r)return;r.defaultOptions&&Ch(i,r.defaultOptions);let o=r.extends&&this.getType(r.extends).defaultOptions;o&&Ch(i,o),i?.optionsTypes&&i.optionsTypes.forEach(s=>{let l=this.getType(s).defaultOptions;l&&Ch(i,l)});let a=this.resolveFieldTypeRef(i);a?.instance?.defaultOptions&&Ch(i,a.instance.defaultOptions),!i.wrappers&&r.wrappers&&(i.wrappers=[...r.wrappers])}resolveFieldTypeRef(i={}){let r=this.getType(i.type);if(!r||!r.component)return null;if(!this.componentRefs[r.name]){let{_viewContainerRef:o,_injector:a}=i.options;if(!o||!a)return null;let s=o.createComponent(r.component,{injector:a});this.componentRefs[r.name]=s;try{s.destroy()}catch(l){console.error(`An error occurred while destroying the Formly component type "${i.type}"`,l)}}return this.componentRefs[r.name]}clearRefs(){this.componentRefs={}}setWrapper(i){this.wrappers[i.name]=i,i.types&&i.types.forEach(r=>{this.setTypeWrapper(r,i.name)})}getWrapper(i){if(i instanceof Td)return{component:i,name:i.prototype.constructor.name};if(!this.wrappers[i])throw new Error(`[Formly Error] The wrapper "${i}" could not be found. Please make sure that is registered through the FormlyModule declaration.`);return this.wrappers[i]}setTypeWrapper(i,r){this.types[i]||(this.types[i]={}),this.types[i].wrappers||(this.types[i].wrappers=[]),this.types[i].wrappers.indexOf(r)===-1&&this.types[i].wrappers.push(r)}setValidator(i){this.validators[i.name]=i}getValidator(i){if(!this.validators[i])throw new Error(`[Formly Error] The validator "${i}" could not be found. Please make sure that is registered through the FormlyModule declaration.`);return this.validators[i]}addValidatorMessage(i,r){this.messages[i]=r}getValidatorMessage(i){return this.messages[i]}setSortedExtensions(i){i.forEach(r=>{let o=r.priority??1;this.extensionsByPriority[o]=De(M({},this.extensionsByPriority[o]),{[r.name]:r.extension})}),this.extensions=Object.keys(this.extensionsByPriority).map(Number).sort((r,o)=>r-o).reduce((r,o)=>M(M({},r),this.extensionsByPriority[o]),{})}mergeExtendedType(i){if(!this.types[i].extends)return;let r=this.getType(this.types[i].extends);this.types[i].component||(this.types[i].component=r.component),this.types[i].wrappers||(this.types[i].wrappers=r.wrappers)}};n.\u0275fac=function(r){return new(r||n)},n.\u0275prov=O({token:n,factory:n.\u0275fac,providedIn:"root"});let t=n;return t})();var tte=(()=>{let n=class n{};n.\u0275fac=function(r){return new(r||n)},n.\u0275prov=O({token:n,factory:n.\u0275fac});let t=n;return t})(),ite=(()=>{let n=class n{get containerRef(){return this.config.extras.renderFormlyFieldElement?this.viewContainerRef:this.hostContainerRef}get elementRef(){return this.config.extras.renderFormlyFieldElement?this._elementRef:this.componentRefs?.[0]instanceof Id?this.componentRefs[0].location:null}constructor(i,r,o,a,s){this.config=i,this.renderer=r,this._elementRef=o,this.hostContainerRef=a,this.form=s,this.hostObservers=[],this.componentRefs=[],this.hooksObservers=[],this.detectFieldBuild=!1,this.valueChangesUnsubscribe=()=>{}}ngAfterContentInit(){this.triggerHook("afterContentInit")}ngAfterViewInit(){this.triggerHook("afterViewInit")}ngDoCheck(){this.detectFieldBuild&&this.field&&this.field.options&&this.render()}ngOnInit(){this.triggerHook("onInit")}ngOnChanges(i){this.triggerHook("onChanges",i)}ngOnDestroy(){this.resetRefs(this.field),this.hostObservers.forEach(i=>i.unsubscribe()),this.hooksObservers.forEach(i=>i()),this.valueChangesUnsubscribe(),this.triggerHook("onDestroy")}renderField(i,r,o=[]){if(this.containerRef===i&&(this.resetRefs(this.field),this.containerRef.clear(),o=this.field?.wrappers),o?.length>0){let[a,...s]=o,{component:l}=this.config.getWrapper(a),c=i.createComponent(l);this.attachComponentRef(c,r),Wi(c.instance,["fieldComponent"],({currentValue:d,previousValue:m,firstChange:f})=>{if(d){if(m&&m._lContainer===d._lContainer)return;let b=m?m.detach():null;b&&!b.destroyed?d.insert(b):this.renderField(d,r,s),!f&&c.changeDetectorRef.detectChanges()}})}else if(r?.type){let a=this.form?.templates?.find(l=>l.name===r.type),s;if(a)s=i.createEmbeddedView(a.ref,{$implicit:r});else{let{component:l}=this.config.getType(r.type,!0);s=i.createComponent(l)}this.attachComponentRef(s,r)}}triggerHook(i,r){if((i==="onInit"||i==="onChanges"&&r.field&&!r.field.firstChange)&&(this.valueChangesUnsubscribe(),this.valueChangesUnsubscribe=this.fieldChanges(this.field)),this.field?.hooks?.[i]&&(!r||r.field)){let o=this.field.hooks[i](this.field);if(ji(o)&&["onInit","afterContentInit","afterViewInit"].indexOf(i)!==-1){let a=o.subscribe();this.hooksObservers.push(()=>a.unsubscribe())}}i==="onChanges"&&r.field&&(this.resetRefs(r.field.previousValue),this.render())}attachComponentRef(i,r){this.componentRefs.push(i),r._componentRefs.push(i),i instanceof Id&&Object.assign(i.instance,{field:r})}render(){if(this.field){if(!this.field.options){this.detectFieldBuild=!0;return}if(this.detectFieldBuild=!1,this.hostObservers.forEach(i=>i.unsubscribe()),this.hostObservers=[Wi(this.field,["hide"],({firstChange:i,currentValue:r})=>{let o=this.containerRef;this.config.extras.lazyRender===!1?(i&&this.renderField(o,this.field),(!i||i&&r)&&this.elementRef&&this.renderer.setStyle(this.elementRef.nativeElement,"display",r?"none":"")):r?(o.clear(),this.field.className&&this.renderer.removeAttribute(this.elementRef.nativeElement,"class")):(this.renderField(o,this.field),this.field.className&&this.renderer.setAttribute(this.elementRef.nativeElement,"class",this.field.className)),!i&&this.field.options.detectChanges(this.field)}),Wi(this.field,["className"],({firstChange:i,currentValue:r})=>{(!i||i&&r)&&(!this.config.extras.lazyRender||this.field.hide!==!0)&&this.elementRef&&this.renderer.setAttribute(this.elementRef.nativeElement,"class",r)})],!m3())["touched","pristine","status"].forEach(i=>this.hostObservers.push(Wi(this.field,["formControl",i],({firstChange:r})=>!r&&mS(this.field))));else if(this.field.formControl){let i=this.field.formControl.events.subscribe(()=>mS(this.field));this.hostObservers.push(i)}}}resetRefs(i){i&&(i._localFields?i._localFields=[]:nr(this.field,"_localFields",[]),i._componentRefs?i._componentRefs=i._componentRefs.filter(r=>this.componentRefs.indexOf(r)===-1):nr(this.field,"_componentRefs",[])),this.componentRefs=[]}fieldChanges(i){if(!i)return()=>{};let r=d3(i,["props"],()=>i.options.detectChanges(i)),o=[()=>{r()}];for(let s of Object.keys(i._expressions||{})){let l=Wi(i,["_expressions",s],({currentValue:c,previousValue:d})=>{d?.subscription&&(d.subscription.unsubscribe(),d.subscription=null),ji(c.value$)&&(c.subscription=c.value$.subscribe())});o.push(()=>{i._expressions[s]?.subscription&&i._expressions[s].subscription.unsubscribe(),l.unsubscribe()})}for(let s of[["focus"],["template"],["fieldGroupClassName"],["validation","show"]]){let l=Wi(i,s,({firstChange:c})=>!c&&i.options.detectChanges(i));o.push(()=>l.unsubscribe())}if(i.formControl&&!i.fieldGroup){let s=i.formControl,l=s.valueChanges.pipe(se(f=>(i.parsers?.map(b=>f=b(f,i)),Object.is(f,i.formControl.value)||i.formControl.setValue(f),f)),Sn((f,b)=>!(f!==b||Array.isArray(f)||La(f))));s.value!==mu(i)&&(l=l.pipe(He(s.value)));let{updateOn:c,debounce:d}=i.modelOptions;(!c||c==="change")&&d?.default>0&&(l=l.pipe(Rt(d.default)));let m=l.subscribe(f=>{s._fields?.length>1&&s instanceof Jo&&s.patchValue(f,{emitEvent:!1,onlySelf:!0}),mn(i)&&bg(i,f),i.options.fieldChanges.next({value:f,field:i,type:"valueChanges"})});o.push(()=>m.unsubscribe())}let a=[];return Wi(i,["_localFields"],({currentValue:s})=>{a.forEach(l=>l()),a=(s||[]).map(l=>this.fieldChanges(l))}),()=>{o.forEach(s=>s()),a.forEach(s=>s())}}};n.\u0275fac=function(r){return new(r||n)(_e(bS),_e(je),_e(q),_e(nt),_e(tte,8))},n.\u0275cmp=E({type:n,selectors:[["formly-field"]],viewQuery:function(r,o){if(r&1&&ie(Bee,7,nt),r&2){let a;B(a=j())&&(o.viewContainerRef=a.first)}},inputs:{field:"field"},features:[Ae],decls:2,vars:0,consts:[["container",""]],template:function(r,o){r&1&&xa(0,jee,0,0,"ng-template",null,0,_i)},styles:["[_nghost-%COMP%]:empty{display:none}"]});let t=n;return t})(),nte=(()=>{let n=class n extends ite{};n.\u0275fac=(()=>{let i;return function(o){return(i||(i=fe(n)))(o||n)}})(),n.\u0275cmp=E({type:n,selectors:[["formly-field"]],standalone:!1,features:[le],decls:2,vars:0,consts:[["container",""]],template:function(r,o){r&1&&R(0,Hee,0,0,"ng-template",null,0,_i)},styles:["[_nghost-%COMP%]:empty{display:none}"]});let t=n;return t})(),rte=(()=>{let n=class n extends xg{};n.\u0275fac=(()=>{let i;return function(o){return(i||(i=fe(n)))(o||n)}})(),n.\u0275cmp=E({type:n,selectors:[["formly-group"]],hostVars:2,hostBindings:function(r,o){r&2&&it(o.field.fieldGroupClassName||"")},standalone:!1,features:[le],ngContentSelectors:zee,decls:3,vars:0,consts:[[3,"field"]],template:function(r,o){r&1&&(Me(),xt(0,Uee,1,1,"formly-field",0,Hi),oe(2)),r&2&&Ct(o.field.fieldGroup)},dependencies:[nte],encapsulation:2,changeDetection:0});let t=n;return t})(),yg=new T("FORMLY_CONFIG");function ote(t){return{types:[{name:"formly-group",component:rte},{name:"formly-template",component:ete}],extensions:[{name:"core",extension:new pS(t),priority:-250},{name:"field-validation",extension:new gS(t),priority:-200},{name:"field-form",extension:new fS,priority:-150},{name:"field-expression",extension:new hS,priority:-100}]}}var p3=(t=[])=>[{provide:yg,multi:!0,useFactory:ote,deps:[bS]},ate(t)],ate=(t=[])=>({provide:yg,multi:!0,useFactory:()=>{let n=u(yg,{skipSelf:!0,optional:!0});return n?(n.push(t),n):t}});var ste=(()=>{let n=class n{get props(){return this.field.props||{}}get fieldAttrElements(){return this.field?._elementRefs||[]}constructor(i,r,o){this.renderer=i,this.elementRef=r,this.uiAttributesCache={},this.uiEvents={listeners:[],events:["click","keyup","keydown","keypress","focus","blur","change","wheel"],callback:(a,s)=>{switch(a){case"focus":return this.onFocus(s);case"blur":return this.onBlur(s);case"change":return this.onChange(s);default:return this.props[a](this.field,s)}}},this.document=o}ngOnChanges(i){i.field&&(this.field.name&&this.setAttribute("name",this.field.name),this.uiEvents.listeners.forEach(r=>r()),this.uiEvents.events.forEach(r=>{(this.props?.[r]||["focus","blur","change"].indexOf(r)!==-1)&&this.uiEvents.listeners.push(this.renderer.listen(this.elementRef.nativeElement,r,o=>this.uiEvents.callback(r,o)))}),this.props?.attributes&&Wi(this.field,["props","attributes"],({currentValue:r,previousValue:o})=>{o&&Object.keys(o).forEach(a=>this.removeAttribute(a)),r&&Object.keys(r).forEach(a=>{r[a]!=null&&this.setAttribute(a,r[a])})}),this.detachElementRef(i.field.previousValue),this.attachElementRef(i.field.currentValue),this.fieldAttrElements.length===1&&(!this.id&&this.field.id&&this.setAttribute("id",this.field.id),this.focusObserver=Wi(this.field,["focus"],({currentValue:r})=>{this.toggleFocus(r)}))),i.id&&this.setAttribute("id",this.id)}ngDoCheck(){if(!this.uiAttributes){let i=this.elementRef.nativeElement;this.uiAttributes=[..._S,"tabindex","placeholder","readonly","disabled","step"].filter(r=>!i.hasAttribute||!i.hasAttribute(r))}for(let i=0;ii()),this.detachElementRef(this.field),this.focusObserver?.unsubscribe()}toggleFocus(i){let r=this.fieldAttrElements?this.fieldAttrElements[0]:null;if(!r||!r.nativeElement.focus)return;let o=!!this.document.activeElement&&this.fieldAttrElements.some(({nativeElement:a})=>this.document.activeElement===a||a.contains(this.document.activeElement));i&&!o?Promise.resolve().then(()=>r.nativeElement.focus()):!i&&o&&Promise.resolve().then(()=>r.nativeElement.blur())}onFocus(i){this.focusObserver?.setValue(!0),this.props.focus?.(this.field,i)}onBlur(i){this.focusObserver?.setValue(!1),this.props.blur?.(this.field,i)}onHostChange(i){i instanceof Event||this.onChange(i)}onChange(i){this.props.change?.(this.field,i),this.field.formControl?.markAsDirty()}attachElementRef(i){i&&(i._elementRefs?.indexOf(this.elementRef)===-1?i._elementRefs.push(this.elementRef):nr(i,"_elementRefs",[this.elementRef]))}detachElementRef(i){let r=i?._elementRefs?this.fieldAttrElements.indexOf(this.elementRef):-1;r!==-1&&i._elementRefs.splice(r,1)}setAttribute(i,r){this.renderer.setAttribute(this.elementRef.nativeElement,i,r)}removeAttribute(i){this.renderer.removeAttribute(this.elementRef.nativeElement,i)}};n.\u0275fac=function(r){return new(r||n)(_e(je),_e(q),_e(ge))},n.\u0275dir=F({type:n,selectors:[["","formlyAttributes",""]],hostBindings:function(r,o){r&1&&S("change",function(s){return o.onHostChange(s)})},inputs:{field:[0,"formlyAttributes","field"],id:"id"},features:[Ae]});let t=n;return t})(),ta=(()=>{let n=class n extends ste{};n.\u0275fac=(()=>{let i;return function(o){return(i||(i=fe(n)))(o||n)}})(),n.\u0275dir=F({type:n,selectors:[["","formlyAttributes",""]],hostBindings:function(r,o){r&1&&S("change",function(s){return o.onHostChange(s)})},standalone:!1,features:[le]});let t=n;return t})(),lte=(()=>{let n=class n{constructor(i){this.config=i}ngOnChanges(){let i=_S.map(r=>`templateOptions.${r}`);this.errorMessage$=Je(this.field.formControl.statusChanges,this.field.options?this.field.options.fieldChanges.pipe(ce(({field:r,type:o,property:a})=>r===this.field&&o==="expressionChanges"&&(a.indexOf("validation")!==-1||i.indexOf(a)!==-1))):Q(null)).pipe(He(null),$e(()=>ji(this.errorMessage)?this.errorMessage:Q(this.errorMessage)))}get errorMessage(){let i=this.field.formControl;for(let r in i.errors)if(i.errors.hasOwnProperty(r)){let o=this.config.getValidatorMessage(r);if(La(i.errors[r])){if(i.errors[r].errorPath)return;i.errors[r].message&&(o=i.errors[r].message)}return this.field.validation?.messages?.[r]&&(o=this.field.validation.messages[r]),this.field.validators?.[r]?.message&&(o=this.field.validators[r].message),this.field.asyncValidators?.[r]?.message&&(o=this.field.asyncValidators[r].message),typeof o=="function"?o(i.errors[r],this.field):o}}};n.\u0275fac=function(r){return new(r||n)(_e(bS))},n.\u0275cmp=E({type:n,selectors:[["formly-validation-message"]],inputs:{field:"field"},features:[Ae],decls:2,vars:3,template:function(r,o){r&1&&(_(0),me(1,"async")),r&2&&H(Oe(1,1,o.errorMessage$))},dependencies:[rn],encapsulation:2,changeDetection:0});let t=n;return t})(),f3=(()=>{let n=class n extends lte{};n.\u0275fac=(()=>{let i;return function(o){return(i||(i=fe(n)))(o||n)}})(),n.\u0275cmp=E({type:n,selectors:[["formly-validation-message"]],standalone:!1,features:[le],decls:2,vars:3,template:function(r,o){r&1&&(_(0),me(1,"async")),r&2&&H(Oe(1,1,o.errorMessage$))},dependencies:[rn],encapsulation:2,changeDetection:0});let t=n;return t})();var Cg=(()=>{let n=class n extends xg{set _formlyControls(i){}set _staticContent(i){this.fieldComponent=i}};n.\u0275fac=(()=>{let i;return function(o){return(i||(i=fe(n)))(o||n)}})(),n.\u0275dir=F({type:n,viewQuery:function(r,o){if(r&1&&(ie(c3,5,nt),ie(c3,7,nt)),r&2){let a;B(a=j())&&(o.fieldComponent=a.first),B(a=j())&&(o._staticContent=a.first)}},standalone:!1,features:[le]});let t=n;return t})();var wg=t=>({field:t}),_3=t=>({content:t});function cte(t,n){t&1&&(h(0,"span",9),_(1,"*"),p())}function dte(t,n){if(t&1&&(h(0,"mat-label"),_(1),N(2,cte,2,0,"span",9),p()),t&2){let e=C();g(),ve(" ",e.props.label," "),g(),L(e.props.required&&e.props.hideRequiredMarker!==!0?2:-1)}}function ute(t,n){if(t&1&&Ge(0,3),t&2){let e=C();y("ngTemplateOutlet",e.props.textPrefix)("ngTemplateOutletContext",Pt(2,wg,e.field))}}function mte(t,n){if(t&1&&Ge(0,4),t&2){let e=C();y("ngTemplateOutlet",e.props.prefix)("ngTemplateOutletContext",Pt(2,wg,e.field))}}function hte(t,n){if(t&1&&Ge(0,5),t&2){let e=C();y("ngTemplateOutlet",e.props.textSuffix)("ngTemplateOutletContext",Pt(2,wg,e.field))}}function pte(t,n){if(t&1&&Ge(0,6),t&2){let e=C();y("ngTemplateOutlet",e.props.suffix)("ngTemplateOutletContext",Pt(2,wg,e.field))}}function fte(t,n){if(t&1&&(h(0,"mat-hint"),Ge(1,10),p()),t&2){C();let e=Se(13);g(),y("ngTemplateOutlet",e)("ngTemplateOutletContext",Pt(2,_3,n))}}function gte(t,n){if(t&1&&(h(0,"mat-hint",8),Ge(1,10),p()),t&2){C();let e=Se(13);g(),y("ngTemplateOutlet",e)("ngTemplateOutletContext",Pt(2,_3,n))}}function _te(t,n){if(t&1&&(jt(0),_(1),Lt()),t&2){let e=C().content;g(),H(e)}}function bte(t,n){if(t&1&&Ge(0,10),t&2){let e=C().content,i=C();y("ngTemplateOutlet",e)("ngTemplateOutletContext",Pt(2,wg,i.field))}}function vte(t,n){if(t&1&&N(0,_te,2,1,"ng-container")(1,bte,1,4,"ng-container",10),t&2){let e=n.content;L(e.createEmbeddedView?1:0)}}var yte=["matPrefix"],xte=["matTextPrefix"],Cte=["matSuffix"],wte=["matTextSuffix"],Dte=(()=>{let n=class n extends Cg{constructor(i,r,o){super(),this.renderer=i,this.elementRef=r,this.focusMonitor=o}ngOnInit(){nr(this.field,"_formField",this.formField),this.focusMonitor.monitor(this.elementRef,!0).subscribe(i=>{!i&&this.field.focus&&(this.field.focus=!1)})}ngAfterViewInit(){if(this.formField.appearance!=="outline"&&this.props.hideFieldUnderline===!0){let i=this.formField._elementRef.nativeElement.querySelector(".mat-form-field-underline");i&&this.renderer.removeChild(i.parentNode,i)}}ngOnDestroy(){delete this.field._formField,this.focusMonitor.stopMonitoring(this.elementRef)}};n.\u0275fac=function(r){return new(r||n)(_e(je),_e(q),_e(Yt))},n.\u0275cmp=E({type:n,selectors:[["formly-wrapper-mat-form-field"]],viewQuery:function(r,o){if(r&1&&ie(Oi,7),r&2){let a;B(a=j())&&(o.formField=a.first)}},standalone:!1,features:[le],decls:14,vars:13,consts:[["fieldComponent",""],["stringOrTemplate",""],[3,"hideRequiredMarker","floatLabel","appearance","subscriptSizing","color"],["matTextPrefix","",3,"ngTemplateOutlet","ngTemplateOutletContext"],["matPrefix","",3,"ngTemplateOutlet","ngTemplateOutletContext"],["matTextSuffix","",3,"ngTemplateOutlet","ngTemplateOutletContext"],["matSuffix","",3,"ngTemplateOutlet","ngTemplateOutletContext"],[3,"field"],["align","end"],["aria-hidden","true",1,"mat-form-field-required-marker","mat-mdc-form-field-required-marker"],[3,"ngTemplateOutlet","ngTemplateOutletContext"]],template:function(r,o){if(r&1&&(h(0,"mat-form-field",2),Ge(1,null,0),N(3,dte,3,2,"mat-label"),N(4,ute,1,4,"ng-container",3),N(5,mte,1,4,"ng-container",4),N(6,hte,1,4,"ng-container",5),N(7,pte,1,4,"ng-container",6),h(8,"mat-error"),k(9,"formly-validation-message",7),p(),N(10,fte,2,4,"mat-hint"),N(11,gte,2,4,"mat-hint",8),p(),R(12,vte,2,1,"ng-template",null,1,_i)),r&2){let a,s;y("hideRequiredMarker",!0)("floatLabel",o.props.floatLabel)("appearance",o.props.appearance)("subscriptSizing",o.props.subscriptSizing)("color",o.props.color??"primary"),g(3),L(o.props.label&&o.props.hideLabel!==!0?3:-1),g(),L(o.props.textPrefix?4:-1),g(),L(o.props.prefix?5:-1),g(),L(o.props.textSuffix?6:-1),g(),L(o.props.suffix?7:-1),g(2),y("field",o.field),g(),L((a=o.props.description||o.props.hintStart)?10:-1,a),g(),L((s=o.props.hintEnd)?11:-1,s)}},dependencies:[Fn,Oi,sn,eg,xo,nu,ru,f3],styles:[`formly-wrapper-mat-form-field .mat-mdc-form-field,formly-wrapper-mat-form-field .mat-form-field{width:100%} -`],encapsulation:2});let t=n;return t})();function b3(){return{wrappers:[{name:"form-field",component:Dte}]}}var to=(()=>{let n=class n extends xg{constructor(){super(...arguments),this.errorStateMatcher={isErrorState:()=>this.field&&this.showError},this.stateChanges=new z,this._errorState=!1,this._focused=!1}set matPrefix(i){i&&(this.props.prefix=i)}set matTextPrefix(i){i&&(this.props.textPrefix=i)}set matSuffix(i){i&&(this.props.suffix=i)}set matTextSuffix(i){i&&(this.props.textSuffix=i)}set _controls(i){this.attachControl(i.length===1?i.first:this)}ngOnDestroy(){delete this.formField?._control,this.stateChanges.complete()}setDescribedByIds(i){}onContainerClick(i){this.field.focus=!0,this.stateChanges.next()}get errorState(){let i=this.options.showError(this);return i!==this._errorState&&(this._errorState=i,this.stateChanges.next()),i}get controlType(){if(this.props.type)return this.props.type;let i=this.field.type;return i instanceof Td?i.prototype.constructor.name:i}get focused(){let i=!!this.field.focus&&!this.disabled;return i!==this._focused&&(this._focused=i,this.stateChanges.next()),i}get disabled(){return!!this.props.disabled}get required(){return!!this.props.required}get placeholder(){return this.props.placeholder||""}get shouldPlaceholderFloat(){return this.shouldLabelFloat}get value(){return this.formControl?.value}set value(i){this.formControl?.patchValue(i)}get ngControl(){return this.formControl}get empty(){return this.value==null||this.value===""}get shouldLabelFloat(){return this.focused||!this.empty}get formField(){return this.field?._formField}attachControl(i){if(this.formField&&i!==this.formField._control){this.formField._control=i;let r=i?.ngControl;r?.valueAccessor?.hasOwnProperty("_formField")&&(r.valueAccessor._formField=this.formField),r?.valueAccessor?.hasOwnProperty("_parentFormField")&&(r.valueAccessor._parentFormField=this.formField),["prefix","suffix","textPrefix","textSuffix"].forEach(a=>Wi(this.field,["props",a],({currentValue:s})=>s&&Promise.resolve().then(()=>{this.options.detectChanges(this.field)})));let o=i.setDescribedByIds.bind(i);i.setDescribedByIds=a=>{setTimeout(()=>o(a))}}}};n.\u0275fac=(()=>{let i;return function(o){return(i||(i=fe(n)))(o||n)}})(),n.\u0275dir=F({type:n,viewQuery:function(r,o){if(r&1&&(ie(yte,5),ie(xte,5),ie(Cte,5),ie(wte,5),ie(Ra,5)),r&2){let a;B(a=j())&&(o.matPrefix=a.first),B(a=j())&&(o.matTextPrefix=a.first),B(a=j())&&(o.matSuffix=a.first),B(a=j())&&(o.matTextSuffix=a.first),B(a=j())&&(o._controls=a)}},standalone:!1,features:[le]});let t=n;return t})();var v3=(()=>{class t{static \u0275fac=function(i){return new(i||t)};static \u0275cmp=E({type:t,selectors:[["ng-component"]],hostAttrs:["cdk-text-field-style-loader",""],decls:0,vars:0,template:function(i,r){},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 t})(),Ete={passive:!0},y3=(()=>{class t{_platform=u(qe);_ngZone=u(ae);_renderer=u(cn).createRenderer(null,null);_styleLoader=u(ut);_monitoredElements=new Map;constructor(){}monitor(e){if(!this._platform.isBrowser)return Fi;this._styleLoader.load(v3);let i=Pr(e),r=this._monitoredElements.get(i);if(r)return r.subject;let o=new z,a="cdk-text-field-autofilled",s=c=>{c.animationName==="cdk-text-field-autofill-start"&&!i.classList.contains(a)?(i.classList.add(a),this._ngZone.run(()=>o.next({target:c.target,isAutofilled:!0}))):c.animationName==="cdk-text-field-autofill-end"&&i.classList.contains(a)&&(i.classList.remove(a),this._ngZone.run(()=>o.next({target:c.target,isAutofilled:!1})))},l=this._ngZone.runOutsideAngular(()=>(i.classList.add("cdk-text-field-autofill-monitored"),this._renderer.listen(i,"animationstart",s,Ete)));return this._monitoredElements.set(i,{subject:o,unlisten:l}),o}stopMonitoring(e){let i=Pr(e),r=this._monitoredElements.get(i);r&&(r.unlisten(),r.subject.complete(),i.classList.remove("cdk-text-field-autofill-monitored"),i.classList.remove("cdk-text-field-autofilled"),this._monitoredElements.delete(i))}ngOnDestroy(){this._monitoredElements.forEach((e,i)=>this.stopMonitoring(i))}static \u0275fac=function(i){return new(i||t)};static \u0275prov=O({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();var x3=(()=>{class t{_elementRef=u(q);_platform=u(qe);_ngZone=u(ae);_renderer=u(je);_resizeEvents=new z;_previousValue;_initialHeight;_destroyed=new z;_listenerCleanups;_minRows;_maxRows;_enabled=!0;_previousMinRows=-1;_textareaElement;get minRows(){return this._minRows}set minRows(e){this._minRows=Ln(e),this._setMinHeight()}get maxRows(){return this._maxRows}set maxRows(e){this._maxRows=Ln(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=u(ge);_hasFocus;_isViewInited=!1;constructor(){u(ut).load(v3),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(Pl(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),i=e.style;e.rows=1,i.position="absolute",i.visibility="hidden",i.border="none",i.padding="0",i.height="",i.minHeight="",i.maxHeight="",i.top=i.bottom=i.left=i.right="auto",i.overflow="hidden",this._textareaElement.parentNode.appendChild(e),this._cachedLineHeight=e.clientHeight,e.remove(),this._setMinHeight(),this._setMaxHeight()}_measureScrollHeight(){let e=this._textareaElement,i=e.style.marginBottom||"",r=this._platform.FIREFOX,o=r&&this._hasFocus,a=r?"cdk-textarea-autosize-measuring-firefox":"cdk-textarea-autosize-measuring";o&&(e.style.marginBottom=`${e.clientHeight}px`),e.classList.add(a);let s=e.scrollHeight-4;return e.classList.remove(a),o&&(e.style.marginBottom=i),s}_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 i=this._elementRef.nativeElement,r=i.value;if(!e&&this._minRows===this._previousMinRows&&r===this._previousValue)return;let o=this._measureScrollHeight(),a=Math.max(o,this._cachedPlaceholderHeight||0);i.style.height=`${a}px`,this._ngZone.runOutsideAngular(()=>{typeof requestAnimationFrame<"u"?requestAnimationFrame(()=>this._scrollToCaretPosition(i)):setTimeout(()=>this._scrollToCaretPosition(i))}),this._previousValue=r,this._previousMinRows=this._minRows}reset(){this._initialHeight!==void 0&&(this._textareaElement.style.height=this._initialHeight)}_noopInputHandler(){}_scrollToCaretPosition(e){let{selectionStart:i,selectionEnd:r}=e;!this._destroyed.isStopped&&this._hasFocus&&e.setSelectionRange(i,r)}static \u0275fac=function(i){return new(i||t)};static \u0275dir=F({type:t,selectors:[["textarea","cdkTextareaAutosize",""]],hostAttrs:["rows","1",1,"cdk-textarea-autosize"],hostBindings:function(i,r){i&1&&S("input",function(){return r._noopInputHandler()})},inputs:{minRows:[0,"cdkAutosizeMinRows","minRows"],maxRows:[0,"cdkAutosizeMaxRows","maxRows"],enabled:[2,"cdkTextareaAutosize","enabled",V],placeholder:"placeholder"},exportAs:["cdkTextareaAutosize"]})}return t})(),C3=(()=>{class t{static \u0275fac=function(i){return new(i||t)};static \u0275mod=ee({type:t});static \u0275inj=J({})}return t})();var wh=new T("MAT_INPUT_VALUE_ACCESSOR");var kte=["button","checkbox","file","hidden","image","radio","range","reset","submit"],Ste=new T("MAT_INPUT_CONFIG"),hn=(()=>{class t{_elementRef=u(q);_platform=u(qe);ngControl=u(Hn,{optional:!0,self:!0});_autofillMonitor=u(y3);_ngZone=u(ae);_formField=u(Xo,{optional:!0});_renderer=u(je);_uid=u(Ze).getId("mat-input-");_previousNativeValue;_inputValueAccessor;_signalBasedValueAccessor;_previousPlaceholder;_errorStateTracker;_config=u(Ste,{optional:!0});_cleanupIosKeyup;_cleanupWebkitWheel;_isServer;_isNativeSelect;_isTextarea;_isInFormField;focused=!1;stateChanges=new z;controlType="mat-input";autofilled=!1;get disabled(){return this._disabled}set disabled(e){this._disabled=Ai(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(Le.required)??!1}set required(e){this._required=Ai(e)}_required;get type(){return this._type}set type(e){this._type=e||"text",this._validateType(),!this._isTextarea&&Ek().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=Ai(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=>Ek().has(e));constructor(){let e=u(pc,{optional:!0}),i=u(Ki,{optional:!0}),r=u(dl),o=u(wh,{optional:!0,self:!0}),a=this._elementRef.nativeElement,s=a.nodeName.toLowerCase();o?is(o.value)?this._signalBasedValueAccessor=o:this._inputValueAccessor=o:this._inputValueAccessor=a,this._previousNativeValue=this.value,this.id=this.id,this._platform.IOS&&this._ngZone.runOutsideAngular(()=>{this._cleanupIosKeyup=this._renderer.listen(a,"keyup",this._iOSKeyupListener)}),this._errorStateTracker=new cl(r,this.ngControl,i,e,this.stateChanges),this._isServer=!this._platform.isBrowser,this._isNativeSelect=s==="select",this._isTextarea=s==="textarea",this._isInFormField=!!this._formField,this.disabledInteractive=this._config?.disabledInteractive||!1,this._isNativeSelect&&(this.controlType=a.multiple?"mat-native-select-multiple":"mat-native-select"),this._signalBasedValueAccessor&&Ar(()=>{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 i=this._elementRef.nativeElement;i.type==="number"?(i.type="text",i.setSelectionRange(0,0),i.type="number"):i.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 i=this._elementRef.nativeElement;this._previousPlaceholder=e,e?i.setAttribute("placeholder",e):i.removeAttribute("placeholder")}}_getPlaceholder(){return this.placeholder||null}_validateType(){kte.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,i=e.options[0];return this.focused||e.multiple||!this.empty||!!(e.selectedIndex>-1&&i&&i.label)}else return this.focused&&!this.disabled||!this.empty}get describedByIds(){return this._elementRef.nativeElement.getAttribute("aria-describedby")?.split(" ")||[]}setDescribedByIds(e){let i=this._elementRef.nativeElement;e.length?i.setAttribute("aria-describedby",e.join(" ")):i.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 i=e.target;!i.value&&i.selectionStart===0&&i.selectionEnd===0&&(i.setSelectionRange(1,1),i.setSelectionRange(0,0))};_getReadonlyAttribute(){return this._isNativeSelect?null:this.readonly||this.disabled&&this.disabledInteractive?"true":null}static \u0275fac=function(i){return new(i||t)};static \u0275dir=F({type:t,selectors:[["input","matInput",""],["textarea","matInput",""],["select","matNativeControl",""],["input","matNativeControl",""],["textarea","matNativeControl",""]],hostAttrs:[1,"mat-mdc-input-element"],hostVars:21,hostBindings:function(i,r){i&1&&S("focus",function(){return r._focusChanged(!0)})("blur",function(){return r._focusChanged(!1)})("input",function(){return r._onInput()}),i&2&&(si("id",r.id)("disabled",r.disabled&&!r.disabledInteractive)("required",r.required),X("name",r.name||null)("readonly",r._getReadonlyAttribute())("aria-disabled",r.disabled&&r.disabledInteractive?"true":null)("aria-invalid",r.empty&&r.required?null:r.errorState)("aria-required",r.required)("id",r.id),G("mat-input-server",r._isServer)("mat-mdc-form-field-textarea-control",r._isInFormField&&r._isTextarea)("mat-mdc-form-field-input-control",r._isInFormField)("mat-mdc-input-disabled-interactive",r.disabledInteractive)("mdc-text-field__input",r._isInFormField)("mat-mdc-native-select-inline",r._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",V]},exportAs:["matInput"],features:[Ce([{provide:Ra,useExisting:t}]),Ae]})}return t})(),rr=(()=>{class t{static \u0275fac=function(i){return new(i||t)};static \u0275mod=ee({type:t});static \u0275inj=J({imports:[we,$i,$i,C3,we]})}return t})();function Tte(t,n){if(t&1&&k(0,"input",0),t&2){let e=C();y("id",e.id)("name",e.field.name)("type",e.type||"text")("readonly",e.props.readonly)("required",e.required)("errorStateMatcher",e.errorStateMatcher)("formControl",e.formControl)("formlyAttributes",e.field)("tabIndex",e.props.tabindex)("placeholder",e.props.placeholder)}}function Ite(t,n){if(t&1&&k(0,"input",1),t&2){let e=C();y("id",e.id)("name",e.field.name)("readonly",e.props.readonly)("required",e.required)("errorStateMatcher",e.errorStateMatcher)("formControl",e.formControl)("formlyAttributes",e.field)("tabIndex",e.props.tabindex)("placeholder",e.props.placeholder)}}var Ate=(()=>{let n=class n extends to{get type(){return this.props.type||"text"}};n.\u0275fac=(()=>{let i;return function(o){return(i||(i=fe(n)))(o||n)}})(),n.\u0275cmp=E({type:n,selectors:[["formly-field-mat-input"]],standalone:!1,features:[le],decls:2,vars:1,consts:[["matInput","",3,"id","name","type","readonly","required","errorStateMatcher","formControl","formlyAttributes","tabIndex","placeholder"],["matInput","","type","number",3,"id","name","readonly","required","errorStateMatcher","formControl","formlyAttributes","tabIndex","placeholder"]],template:function(r,o){r&1&&N(0,Tte,1,10,"input",0)(1,Ite,1,9,"input",1),r&2&&L(o.type!=="number"?0:1)},dependencies:[Qi,cu,ei,Do,wo,hn,ta],encapsulation:2,changeDetection:0});let t=n;return t})();function w3(){return{types:[{name:"input",component:Ate,wrappers:["form-field"]},{name:"string",extends:"input"},{name:"number",extends:"input",defaultOptions:{props:{type:"number"}}},{name:"integer",extends:"input",defaultOptions:{props:{type:"number"}}}]}}var Ote=(()=>{let n=class n extends to{constructor(){super(...arguments),this.defaultOptions={props:{cols:1,rows:1}}}};n.\u0275fac=(()=>{let i;return function(o){return(i||(i=fe(n)))(o||n)}})(),n.\u0275cmp=E({type:n,selectors:[["formly-field-mat-textarea"]],standalone:!1,features:[Ce([{provide:wh,useExisting:n}]),le],decls:1,vars:16,consts:[["matInput","",3,"id","name","readonly","required","formControl","errorStateMatcher","cols","rows","formlyAttributes","placeholder","tabindex","cdkTextareaAutosize","cdkAutosizeMinRows","cdkAutosizeMaxRows"]],template:function(r,o){r&1&&k(0,"textarea",0),r&2&&(G("cdk-textarea-autosize",o.props.autosize),y("id",o.id)("name",o.field.name)("readonly",o.props.readonly)("required",o.required)("formControl",o.formControl)("errorStateMatcher",o.errorStateMatcher)("cols",o.props.cols)("rows",o.props.rows)("formlyAttributes",o.field)("placeholder",o.props.placeholder)("tabindex",o.props.tabindex)("cdkTextareaAutosize",o.props.autosize)("cdkAutosizeMinRows",o.props.autosizeMinRows)("cdkAutosizeMaxRows",o.props.autosizeMaxRows))},dependencies:[Qi,ei,Do,wo,hn,x3,ta],encapsulation:2,changeDetection:0});let t=n;return t})();function D3(){return{types:[{name:"textarea",component:Ote,wrappers:["form-field"]}]}}var Rte=["input"],Pte=["formField"],Fte=["*"],vx=class{source;value;constructor(n,e){this.source=n,this.value=e}},Nte={provide:tr,useExisting:Kt(()=>Dg),multi:!0},E3=new T("MatRadioGroup"),Lte=new T("mat-radio-default-options",{providedIn:"root",factory:Vte});function Vte(){return{color:"accent",disabledInteractive:!1}}var Dg=(()=>{class t{_changeDetector=u(ye);_value=null;_name=u(Ze).getId("mat-radio-group-");_selected=null;_isInitialized=!1;_labelPosition="after";_disabled=!1;_required=!1;_buttonChanges;_controlValueAccessorChangeFn=()=>{};onTouched=()=>{};change=new U;_radios;color;get name(){return this._name}set name(e){this._name=e,this._updateRadioButtonNames()}get labelPosition(){return this._labelPosition}set labelPosition(e){this._labelPosition=e==="before"?"before":"after",this._markRadiosForCheck()}get value(){return this._value}set value(e){this._value!==e&&(this._value=e,this._updateSelectedRadioFromValue(),this._checkSelectedRadioButton())}_checkSelectedRadioButton(){this._selected&&!this._selected.checked&&(this._selected.checked=!0)}get selected(){return this._selected}set selected(e){this._selected=e,this.value=e?e.value:null,this._checkSelectedRadioButton()}get disabled(){return this._disabled}set disabled(e){this._disabled=e,this._markRadiosForCheck()}get required(){return this._required}set required(e){this._required=e,this._markRadiosForCheck()}get disabledInteractive(){return this._disabledInteractive}set disabledInteractive(e){this._disabledInteractive=e,this._markRadiosForCheck()}_disabledInteractive=!1;constructor(){}ngAfterContentInit(){this._isInitialized=!0,this._buttonChanges=this._radios.changes.subscribe(()=>{this.selected&&!this._radios.find(e=>e===this.selected)&&(this._selected=null)})}ngOnDestroy(){this._buttonChanges?.unsubscribe()}_touch(){this.onTouched&&this.onTouched()}_updateRadioButtonNames(){this._radios&&this._radios.forEach(e=>{e.name=this.name,e._markForCheck()})}_updateSelectedRadioFromValue(){let e=this._selected!==null&&this._selected.value===this._value;this._radios&&!e&&(this._selected=null,this._radios.forEach(i=>{i.checked=this.value===i.value,i.checked&&(this._selected=i)}))}_emitChangeEvent(){this._isInitialized&&this.change.emit(new vx(this._selected,this._value))}_markRadiosForCheck(){this._radios&&this._radios.forEach(e=>e._markForCheck())}writeValue(e){this.value=e,this._changeDetector.markForCheck()}registerOnChange(e){this._controlValueAccessorChangeFn=e}registerOnTouched(e){this.onTouched=e}setDisabledState(e){this.disabled=e,this._changeDetector.markForCheck()}static \u0275fac=function(i){return new(i||t)};static \u0275dir=F({type:t,selectors:[["mat-radio-group"]],contentQueries:function(i,r,o){if(i&1&&xe(o,vS,5),i&2){let a;B(a=j())&&(r._radios=a)}},hostAttrs:["role","radiogroup",1,"mat-mdc-radio-group"],inputs:{color:"color",name:"name",labelPosition:"labelPosition",value:"value",selected:"selected",disabled:[2,"disabled","disabled",V],required:[2,"required","required",V],disabledInteractive:[2,"disabledInteractive","disabledInteractive",V]},outputs:{change:"change"},exportAs:["matRadioGroup"],features:[Ce([Nte,{provide:E3,useExisting:t}])]})}return t})(),vS=(()=>{class t{_elementRef=u(q);_changeDetector=u(ye);_focusMonitor=u(Yt);_radioDispatcher=u(au);_defaultOptions=u(Lte,{optional:!0});_ngZone=u(ae);_renderer=u(je);_uniqueId=u(Ze).getId("mat-radio-");_cleanupClick;id=this._uniqueId;name;ariaLabel;ariaLabelledby;ariaDescribedby;disableRipple=!1;tabIndex=0;get checked(){return this._checked}set checked(e){this._checked!==e&&(this._checked=e,e&&this.radioGroup&&this.radioGroup.value!==this.value?this.radioGroup.selected=this:!e&&this.radioGroup&&this.radioGroup.value===this.value&&(this.radioGroup.selected=null),e&&this._radioDispatcher.notify(this.id,this.name),this._changeDetector.markForCheck())}get value(){return this._value}set value(e){this._value!==e&&(this._value=e,this.radioGroup!==null&&(this.checked||(this.checked=this.radioGroup.value===e),this.checked&&(this.radioGroup.selected=this)))}get labelPosition(){return this._labelPosition||this.radioGroup&&this.radioGroup.labelPosition||"after"}set labelPosition(e){this._labelPosition=e}_labelPosition;get disabled(){return this._disabled||this.radioGroup!==null&&this.radioGroup.disabled}set disabled(e){this._setDisabled(e)}get required(){return this._required||this.radioGroup&&this.radioGroup.required}set required(e){e!==this._required&&this._changeDetector.markForCheck(),this._required=e}get color(){return this._color||this.radioGroup&&this.radioGroup.color||this._defaultOptions&&this._defaultOptions.color||"accent"}set color(e){this._color=e}_color;get disabledInteractive(){return this._disabledInteractive||this.radioGroup!==null&&this.radioGroup.disabledInteractive}set disabledInteractive(e){this._disabledInteractive=e}_disabledInteractive;change=new U;radioGroup;get inputId(){return`${this.id||this._uniqueId}-input`}_checked=!1;_disabled;_required;_value=null;_removeUniqueSelectionListener=()=>{};_previousTabIndex;_inputElement;_rippleTrigger;_noopAnimations=Ye();_injector=u(de);constructor(){u(ut).load(Di);let e=u(E3,{optional:!0}),i=u(new Ii("tabindex"),{optional:!0});this.radioGroup=e,this._disabledInteractive=this._defaultOptions?.disabledInteractive??!1,i&&(this.tabIndex=ct(i,0))}focus(e,i){i?this._focusMonitor.focusVia(this._inputElement,i,e):this._inputElement.nativeElement.focus(e)}_markForCheck(){this._changeDetector.markForCheck()}ngOnInit(){this.radioGroup&&(this.checked=this.radioGroup.value===this._value,this.checked&&(this.radioGroup.selected=this),this.name=this.radioGroup.name),this._removeUniqueSelectionListener=this._radioDispatcher.listen((e,i)=>{e!==this.id&&i===this.name&&(this.checked=!1)})}ngDoCheck(){this._updateTabIndex()}ngAfterViewInit(){this._updateTabIndex(),this._focusMonitor.monitor(this._elementRef,!0).subscribe(e=>{!e&&this.radioGroup&&this.radioGroup._touch()}),this._ngZone.runOutsideAngular(()=>{this._cleanupClick=this._renderer.listen(this._inputElement.nativeElement,"click",this._onInputClick)})}ngOnDestroy(){this._cleanupClick?.(),this._focusMonitor.stopMonitoring(this._elementRef),this._removeUniqueSelectionListener()}_emitChangeEvent(){this.change.emit(new vx(this,this._value))}_isRippleDisabled(){return this.disableRipple||this.disabled}_onInputInteraction(e){if(e.stopPropagation(),!this.checked&&!this.disabled){let i=this.radioGroup&&this.value!==this.radioGroup.value;this.checked=!0,this._emitChangeEvent(),this.radioGroup&&(this.radioGroup._controlValueAccessorChangeFn(this.value),i&&this.radioGroup._emitChangeEvent())}}_onTouchTargetClick(e){this._onInputInteraction(e),(!this.disabled||this.disabledInteractive)&&this._inputElement?.nativeElement.focus()}_setDisabled(e){this._disabled!==e&&(this._disabled=e,this._changeDetector.markForCheck())}_onInputClick=e=>{this.disabled&&this.disabledInteractive&&e.preventDefault()};_updateTabIndex(){let e=this.radioGroup,i;if(!e||!e.selected||this.disabled?i=this.tabIndex:i=e.selected===this?this.tabIndex:-1,i!==this._previousTabIndex){let r=this._inputElement?.nativeElement;r&&(r.setAttribute("tabindex",i+""),this._previousTabIndex=i,pt(()=>{queueMicrotask(()=>{e&&e.selected&&e.selected!==this&&document.activeElement===r&&(e.selected?._inputElement.nativeElement.focus(),document.activeElement===r&&this._inputElement.nativeElement.blur())})},{injector:this._injector}))}}static \u0275fac=function(i){return new(i||t)};static \u0275cmp=E({type:t,selectors:[["mat-radio-button"]],viewQuery:function(i,r){if(i&1&&(ie(Rte,5),ie(Pte,7,q)),i&2){let o;B(o=j())&&(r._inputElement=o.first),B(o=j())&&(r._rippleTrigger=o.first)}},hostAttrs:[1,"mat-mdc-radio-button"],hostVars:19,hostBindings:function(i,r){i&1&&S("focus",function(){return r._inputElement.nativeElement.focus()}),i&2&&(X("id",r.id)("tabindex",null)("aria-label",null)("aria-labelledby",null)("aria-describedby",null),G("mat-primary",r.color==="primary")("mat-accent",r.color==="accent")("mat-warn",r.color==="warn")("mat-mdc-radio-checked",r.checked)("mat-mdc-radio-disabled",r.disabled)("mat-mdc-radio-disabled-interactive",r.disabledInteractive)("_mat-animation-noopable",r._noopAnimations))},inputs:{id:"id",name:"name",ariaLabel:[0,"aria-label","ariaLabel"],ariaLabelledby:[0,"aria-labelledby","ariaLabelledby"],ariaDescribedby:[0,"aria-describedby","ariaDescribedby"],disableRipple:[2,"disableRipple","disableRipple",V],tabIndex:[2,"tabIndex","tabIndex",e=>e==null?0:ct(e)],checked:[2,"checked","checked",V],value:"value",labelPosition:"labelPosition",disabled:[2,"disabled","disabled",V],required:[2,"required","required",V],color:"color",disabledInteractive:[2,"disabledInteractive","disabledInteractive",V]},outputs:{change:"change"},exportAs:["matRadioButton"],ngContentSelectors:Fte,decls:13,vars:17,consts:[["formField",""],["input",""],["mat-internal-form-field","",3,"labelPosition"],[1,"mdc-radio"],[1,"mat-mdc-radio-touch-target",3,"click"],["type","radio","aria-invalid","false",1,"mdc-radio__native-control",3,"change","id","checked","disabled","required"],[1,"mdc-radio__background"],[1,"mdc-radio__outer-circle"],[1,"mdc-radio__inner-circle"],["mat-ripple","",1,"mat-radio-ripple","mat-focus-indicator",3,"matRippleTrigger","matRippleDisabled","matRippleCentered"],[1,"mat-ripple-element","mat-radio-persistent-ripple"],[1,"mdc-label",3,"for"]],template:function(i,r){if(i&1){let o=Y();Me(),h(0,"div",2,0)(2,"div",3)(3,"div",4),S("click",function(s){return I(o),A(r._onTouchTargetClick(s))}),p(),h(4,"input",5,1),S("change",function(s){return I(o),A(r._onInputInteraction(s))}),p(),h(6,"div",6),k(7,"div",7)(8,"div",8),p(),h(9,"div",9),k(10,"div",10),p()(),h(11,"label",11),oe(12),p()()}i&2&&(y("labelPosition",r.labelPosition),g(2),G("mdc-radio--disabled",r.disabled),g(2),y("id",r.inputId)("checked",r.checked)("disabled",r.disabled&&!r.disabledInteractive)("required",r.required),X("name",r.name)("value",r.value)("aria-label",r.ariaLabel)("aria-labelledby",r.ariaLabelledby)("aria-describedby",r.ariaDescribedby)("aria-disabled",r.disabled&&r.disabledInteractive?"true":null),g(5),y("matRippleTrigger",r._rippleTrigger.nativeElement)("matRippleDisabled",r._isRippleDisabled())("matRippleCentered",!0),g(2),y("for",r.inputId))},dependencies:[Vn,Gm],styles:[`.mat-mdc-radio-button{-webkit-tap-highlight-color:rgba(0,0,0,0)}.mat-mdc-radio-button .mdc-radio{display:inline-block;position:relative;flex:0 0 auto;box-sizing:content-box;width:20px;height:20px;cursor:pointer;will-change:opacity,transform,border-color,color;padding:calc((var(--mat-radio-state-layer-size, 40px) - 20px)/2)}.mat-mdc-radio-button .mdc-radio:hover>.mdc-radio__native-control:not([disabled]):not(:focus)~.mdc-radio__background::before{opacity:.04;transform:scale(1)}.mat-mdc-radio-button .mdc-radio:hover>.mdc-radio__native-control:not([disabled])~.mdc-radio__background>.mdc-radio__outer-circle{border-color:var(--mat-radio-unselected-hover-icon-color, var(--mat-sys-on-surface))}.mat-mdc-radio-button .mdc-radio:hover>.mdc-radio__native-control:enabled:checked+.mdc-radio__background>.mdc-radio__outer-circle{border-color:var(--mat-radio-selected-hover-icon-color, var(--mat-sys-primary))}.mat-mdc-radio-button .mdc-radio:hover>.mdc-radio__native-control:enabled:checked+.mdc-radio__background>.mdc-radio__inner-circle{background-color:var(--mat-radio-selected-hover-icon-color, var(--mat-sys-primary, currentColor))}.mat-mdc-radio-button .mdc-radio:active>.mdc-radio__native-control:enabled:not(:checked)+.mdc-radio__background>.mdc-radio__outer-circle{border-color:var(--mat-radio-unselected-pressed-icon-color, var(--mat-sys-on-surface))}.mat-mdc-radio-button .mdc-radio:active>.mdc-radio__native-control:enabled:checked+.mdc-radio__background>.mdc-radio__outer-circle{border-color:var(--mat-radio-selected-pressed-icon-color, var(--mat-sys-primary))}.mat-mdc-radio-button .mdc-radio:active>.mdc-radio__native-control:enabled:checked+.mdc-radio__background>.mdc-radio__inner-circle{background-color:var(--mat-radio-selected-pressed-icon-color, var(--mat-sys-primary, currentColor))}.mat-mdc-radio-button .mdc-radio__background{display:inline-block;position:relative;box-sizing:border-box;width:20px;height:20px}.mat-mdc-radio-button .mdc-radio__background::before{position:absolute;transform:scale(0, 0);border-radius:50%;opacity:0;pointer-events:none;content:"";transition:opacity 90ms cubic-bezier(0.4, 0, 0.6, 1),transform 90ms cubic-bezier(0.4, 0, 0.6, 1);width:var(--mat-radio-state-layer-size, 40px);height:var(--mat-radio-state-layer-size, 40px);top:calc(-1*(var(--mat-radio-state-layer-size, 40px) - 20px)/2);left:calc(-1*(var(--mat-radio-state-layer-size, 40px) - 20px)/2)}.mat-mdc-radio-button .mdc-radio__outer-circle{position:absolute;top:0;left:0;box-sizing:border-box;width:100%;height:100%;border-width:2px;border-style:solid;border-radius:50%;transition:border-color 90ms cubic-bezier(0.4, 0, 0.6, 1)}.mat-mdc-radio-button .mdc-radio__inner-circle{position:absolute;top:0;left:0;box-sizing:border-box;width:100%;height:100%;transform:scale(0);border-radius:50%;transition:transform 90ms cubic-bezier(0.4, 0, 0.6, 1),background-color 90ms cubic-bezier(0.4, 0, 0.6, 1)}@media(forced-colors: active){.mat-mdc-radio-button .mdc-radio__inner-circle{background-color:CanvasText !important}}.mat-mdc-radio-button .mdc-radio__native-control{position:absolute;margin:0;padding:0;opacity:0;top:0;right:0;left:0;cursor:inherit;z-index:1;width:var(--mat-radio-state-layer-size, 40px);height:var(--mat-radio-state-layer-size, 40px)}.mat-mdc-radio-button .mdc-radio__native-control:checked+.mdc-radio__background,.mat-mdc-radio-button .mdc-radio__native-control:disabled+.mdc-radio__background{transition:opacity 90ms cubic-bezier(0, 0, 0.2, 1),transform 90ms cubic-bezier(0, 0, 0.2, 1)}.mat-mdc-radio-button .mdc-radio__native-control:checked+.mdc-radio__background>.mdc-radio__outer-circle,.mat-mdc-radio-button .mdc-radio__native-control:disabled+.mdc-radio__background>.mdc-radio__outer-circle{transition:border-color 90ms cubic-bezier(0, 0, 0.2, 1)}.mat-mdc-radio-button .mdc-radio__native-control:checked+.mdc-radio__background>.mdc-radio__inner-circle,.mat-mdc-radio-button .mdc-radio__native-control:disabled+.mdc-radio__background>.mdc-radio__inner-circle{transition:transform 90ms cubic-bezier(0, 0, 0.2, 1),background-color 90ms cubic-bezier(0, 0, 0.2, 1)}.mat-mdc-radio-button .mdc-radio__native-control:focus+.mdc-radio__background::before{transform:scale(1);opacity:.12;transition:opacity 90ms cubic-bezier(0, 0, 0.2, 1),transform 90ms cubic-bezier(0, 0, 0.2, 1)}.mat-mdc-radio-button .mdc-radio__native-control:disabled:not(:checked)+.mdc-radio__background>.mdc-radio__outer-circle{border-color:var(--mat-radio-disabled-unselected-icon-color, var(--mat-sys-on-surface));opacity:var(--mat-radio-disabled-unselected-icon-opacity, 0.38)}.mat-mdc-radio-button .mdc-radio__native-control:disabled+.mdc-radio__background{cursor:default}.mat-mdc-radio-button .mdc-radio__native-control:disabled+.mdc-radio__background>.mdc-radio__outer-circle{border-color:var(--mat-radio-disabled-selected-icon-color, var(--mat-sys-on-surface));opacity:var(--mat-radio-disabled-selected-icon-opacity, 0.38)}.mat-mdc-radio-button .mdc-radio__native-control:disabled+.mdc-radio__background>.mdc-radio__inner-circle{background-color:var(--mat-radio-disabled-selected-icon-color, var(--mat-sys-on-surface, currentColor));opacity:var(--mat-radio-disabled-selected-icon-opacity, 0.38)}.mat-mdc-radio-button .mdc-radio__native-control:enabled:not(:checked)+.mdc-radio__background>.mdc-radio__outer-circle{border-color:var(--mat-radio-unselected-icon-color, var(--mat-sys-on-surface-variant))}.mat-mdc-radio-button .mdc-radio__native-control:enabled:checked+.mdc-radio__background>.mdc-radio__outer-circle{border-color:var(--mat-radio-selected-icon-color, var(--mat-sys-primary))}.mat-mdc-radio-button .mdc-radio__native-control:enabled:checked+.mdc-radio__background>.mdc-radio__inner-circle{background-color:var(--mat-radio-selected-icon-color, var(--mat-sys-primary, currentColor))}.mat-mdc-radio-button .mdc-radio__native-control:enabled:focus:checked+.mdc-radio__background>.mdc-radio__outer-circle{border-color:var(--mat-radio-selected-focus-icon-color, var(--mat-sys-primary))}.mat-mdc-radio-button .mdc-radio__native-control:enabled:focus:checked+.mdc-radio__background>.mdc-radio__inner-circle{background-color:var(--mat-radio-selected-focus-icon-color, var(--mat-sys-primary, currentColor))}.mat-mdc-radio-button .mdc-radio__native-control:checked+.mdc-radio__background>.mdc-radio__inner-circle{transform:scale(0.5);transition:transform 90ms cubic-bezier(0, 0, 0.2, 1),background-color 90ms cubic-bezier(0, 0, 0.2, 1)}.mat-mdc-radio-button.mat-mdc-radio-disabled-interactive .mdc-radio--disabled{pointer-events:auto}.mat-mdc-radio-button.mat-mdc-radio-disabled-interactive .mdc-radio--disabled .mdc-radio__native-control:not(:checked)+.mdc-radio__background>.mdc-radio__outer-circle{border-color:var(--mat-radio-disabled-unselected-icon-color, var(--mat-sys-on-surface));opacity:var(--mat-radio-disabled-unselected-icon-opacity, 0.38)}.mat-mdc-radio-button.mat-mdc-radio-disabled-interactive .mdc-radio--disabled:hover .mdc-radio__native-control:checked+.mdc-radio__background>.mdc-radio__outer-circle,.mat-mdc-radio-button.mat-mdc-radio-disabled-interactive .mdc-radio--disabled .mdc-radio__native-control:checked:focus+.mdc-radio__background>.mdc-radio__outer-circle,.mat-mdc-radio-button.mat-mdc-radio-disabled-interactive .mdc-radio--disabled .mdc-radio__native-control+.mdc-radio__background>.mdc-radio__outer-circle{border-color:var(--mat-radio-disabled-selected-icon-color, var(--mat-sys-on-surface));opacity:var(--mat-radio-disabled-selected-icon-opacity, 0.38)}.mat-mdc-radio-button.mat-mdc-radio-disabled-interactive .mdc-radio--disabled:hover .mdc-radio__native-control:checked+.mdc-radio__background>.mdc-radio__inner-circle,.mat-mdc-radio-button.mat-mdc-radio-disabled-interactive .mdc-radio--disabled .mdc-radio__native-control:checked:focus+.mdc-radio__background>.mdc-radio__inner-circle,.mat-mdc-radio-button.mat-mdc-radio-disabled-interactive .mdc-radio--disabled .mdc-radio__native-control+.mdc-radio__background>.mdc-radio__inner-circle{background-color:var(--mat-radio-disabled-selected-icon-color, var(--mat-sys-on-surface, currentColor));opacity:var(--mat-radio-disabled-selected-icon-opacity, 0.38)}.mat-mdc-radio-button._mat-animation-noopable .mdc-radio__background::before,.mat-mdc-radio-button._mat-animation-noopable .mdc-radio__outer-circle,.mat-mdc-radio-button._mat-animation-noopable .mdc-radio__inner-circle{transition:none !important}.mat-mdc-radio-button label{cursor:pointer}.mat-mdc-radio-button .mdc-radio__background::before{background-color:var(--mat-radio-ripple-color, var(--mat-sys-on-surface))}.mat-mdc-radio-button.mat-mdc-radio-checked .mat-ripple-element,.mat-mdc-radio-button.mat-mdc-radio-checked .mdc-radio__background::before{background-color:var(--mat-radio-checked-ripple-color, var(--mat-sys-primary))}.mat-mdc-radio-button.mat-mdc-radio-disabled-interactive .mdc-radio--disabled .mat-ripple-element,.mat-mdc-radio-button.mat-mdc-radio-disabled-interactive .mdc-radio--disabled .mdc-radio__background::before{background-color:var(--mat-radio-ripple-color, var(--mat-sys-on-surface))}.mat-mdc-radio-button .mat-internal-form-field{color:var(--mat-radio-label-text-color, var(--mat-sys-on-surface));font-family:var(--mat-radio-label-text-font, var(--mat-sys-body-medium-font));line-height:var(--mat-radio-label-text-line-height, var(--mat-sys-body-medium-line-height));font-size:var(--mat-radio-label-text-size, var(--mat-sys-body-medium-size));letter-spacing:var(--mat-radio-label-text-tracking, var(--mat-sys-body-medium-tracking));font-weight:var(--mat-radio-label-text-weight, var(--mat-sys-body-medium-weight))}.mat-mdc-radio-button .mdc-radio--disabled+label{color:var(--mat-radio-disabled-label-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent))}.mat-mdc-radio-button .mat-radio-ripple{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none;border-radius:50%}.mat-mdc-radio-button .mat-radio-ripple>.mat-ripple-element{opacity:.14}.mat-mdc-radio-button .mat-radio-ripple::before{border-radius:50%}.mat-mdc-radio-button .mdc-radio>.mdc-radio__native-control:focus:enabled:not(:checked)~.mdc-radio__background>.mdc-radio__outer-circle{border-color:var(--mat-radio-unselected-focus-icon-color, var(--mat-sys-on-surface))}.mat-mdc-radio-button.cdk-focused .mat-focus-indicator::before{content:""}.mat-mdc-radio-disabled{cursor:default;pointer-events:none}.mat-mdc-radio-disabled.mat-mdc-radio-disabled-interactive{pointer-events:auto}.mat-mdc-radio-touch-target{position:absolute;top:50%;left:50%;height:var(--mat-radio-touch-target-size, 48px);width:var(--mat-radio-touch-target-size, 48px);transform:translate(-50%, -50%);display:var(--mat-radio-touch-target-display, block)}[dir=rtl] .mat-mdc-radio-touch-target{left:auto;right:50%;transform:translate(50%, -50%)} -`],encapsulation:2,changeDetection:0})}return t})();var jte=(()=>{let n=class n{transform(i,r){return i instanceof Fe?this.dispose():i=this.observableOf(i,r),i.pipe(se(o=>this.transformOptions(o,r)))}ngOnDestroy(){this.dispose()}transformOptions(i,r){let o=this.transformSelectProps(r),a=[],s={};return i?.forEach(l=>{let c=this.transformOption(l,o);if(c.group){let d=s[c.label];d===void 0?s[c.label]=a.push(c)-1:c.group.forEach(m=>a[d].group.push(m))}else a.push(c)}),a}transformOption(i,r){let o=r.groupProp(i);return Array.isArray(o)?{label:r.labelProp(i),group:o.map(a=>this.transformOption(a,r))}:(i={label:r.labelProp(i),value:r.valueProp(i),disabled:!!r.disabledProp(i)},o?{label:o,group:[i]}:i)}transformSelectProps(i){let r=i?.props||i?.templateOptions||{},o=a=>typeof a=="function"?a:s=>s[a];return{groupProp:o(r.groupProp||"group"),labelProp:o(r.labelProp||"label"),valueProp:o(r.valueProp||"value"),disabledProp:o(r.disabledProp||"disabled")}}dispose(){this._options&&(this._options.complete(),this._options=null),this._subscription&&(this._subscription.unsubscribe(),this._subscription=null)}observableOf(i,r){return this.dispose(),r&&r.options&&r.options.fieldChanges&&(this._subscription=r.options.fieldChanges.pipe(ce(({property:o,type:a,field:s})=>a==="expressionChanges"&&(o.indexOf("templateOptions.options")===0||o.indexOf("props.options")===0)&&s===r&&Array.isArray(s.props.options)&&!!this._options),Be(()=>this._options.next(r.props.options))).subscribe()),this._options=new tt(i),this._options.asObservable()}};n.\u0275fac=function(r){return new(r||n)},n.\u0275pipe=Wr({name:"formlySelectOptions",type:n,pure:!0});let t=n;return t})(),Eh=(()=>{let n=class n extends jte{};n.\u0275fac=(()=>{let i;return function(o){return(i||(i=fe(n)))(o||n)}})(),n.\u0275pipe=Wr({name:"formlySelectOptions",type:n,pure:!0,standalone:!1});let t=n;return t})();function Hte(t,n){if(t&1&&(h(0,"mat-radio-button",1),_(1),p()),t&2){let e=n.$implicit,i=n.$index,r=C();y("id",r.id+"_"+i)("color",r.props.color)("labelPosition",r.props.labelPosition)("disabled",e.disabled)("value",e.value),g(),ve(" ",e.label," ")}}var zte=(()=>{let n=class n extends to{constructor(){super(...arguments),this.defaultOptions={props:{hideFieldUnderline:!0,floatLabel:"always",tabindex:-1}}}ngAfterViewInit(){this.focusObserver=Wi(this.field,["focus"],({currentValue:i})=>{this.props.tabindex===-1&&i&&this.radioGroup._radios.length>0&&setTimeout(()=>{(this.radioGroup.selected?this.radioGroup.selected:this.radioGroup._radios.first).focus()})})}onContainerClick(){}ngOnDestroy(){super.ngOnDestroy(),this.focusObserver&&this.focusObserver.unsubscribe()}};n.\u0275fac=(()=>{let i;return function(o){return(i||(i=fe(n)))(o||n)}})(),n.\u0275cmp=E({type:n,selectors:[["formly-field-mat-radio"]],viewQuery:function(r,o){if(r&1&&ie(Dg,7),r&2){let a;B(a=j())&&(o.radioGroup=a.first)}},standalone:!1,features:[le],decls:5,vars:9,consts:[[3,"formControl","formlyAttributes","required","tabindex"],[3,"id","color","labelPosition","disabled","value"]],template:function(r,o){r&1&&(h(0,"mat-radio-group",0),xt(1,Hte,2,6,"mat-radio-button",1,Hi),me(3,"formlySelectOptions"),me(4,"async"),p()),r&2&&(y("formControl",o.formControl)("formlyAttributes",o.field)("required",o.required)("tabindex",o.props.tabindex),g(),Ct(Oe(4,7,Ni(3,4,o.props.options,o.field))))},dependencies:[ei,Do,wo,Dg,vS,ta,rn,Eh],encapsulation:2,changeDetection:0});let t=n;return t})();function M3(){return{types:[{name:"radio",component:zte,wrappers:["form-field"]}]}}var Ute=["input"],$te=["label"],Wte=["*"],Gte=new T("mat-checkbox-default-options",{providedIn:"root",factory:S3});function S3(){return{color:"accent",clickAction:"check-indeterminate",disabledInteractive:!1}}var xr=(function(t){return t[t.Init=0]="Init",t[t.Checked=1]="Checked",t[t.Unchecked=2]="Unchecked",t[t.Indeterminate=3]="Indeterminate",t})(xr||{}),xS=class{source;checked},k3=S3(),Va=(()=>{class t{_elementRef=u(q);_changeDetectorRef=u(ye);_ngZone=u(ae);_animationsDisabled=Ye();_options=u(Gte,{optional:!0});focus(){this._inputElement.nativeElement.focus()}_createChangeEvent(e){let i=new xS;return i.source=this,i.checked=e,i}_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;labelPosition="after";name=null;change=new U;indeterminateChange=new U;value;disableRipple;_inputElement;_labelElement;tabIndex;color;disabledInteractive;_onTouched=()=>{};_currentAnimationClass="";_currentCheckState=xr.Init;_controlValueAccessorChangeFn=()=>{};_validatorChangeFn=()=>{};constructor(){u(ut).load(Di);let e=u(new Ii("tabindex"),{optional:!0});this._options=this._options||k3,this.color=this._options.color||k3.color,this.tabIndex=e==null?0:parseInt(e)||0,this.id=this._uniqueId=u(Ze).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 i=e!=this._indeterminate();this._indeterminate.set(e),i&&(e?this._transitionCheckState(xr.Indeterminate):this._transitionCheckState(this.checked?xr.Checked:xr.Unchecked),this.indeterminateChange.emit(e)),this._syncIndeterminate(e)}_indeterminate=he(!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 i=this._currentCheckState,r=this._getAnimationTargetElement();if(!(i===e||!r)&&(this._currentAnimationClass&&r.classList.remove(this._currentAnimationClass),this._currentAnimationClass=this._getAnimationClassForCheckStateTransition(i,e),this._currentCheckState=e,this._currentAnimationClass.length>0)){r.classList.add(this._currentAnimationClass);let o=this._currentAnimationClass;this._ngZone.runOutsideAngular(()=>{setTimeout(()=>{r.classList.remove(o)},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?xr.Checked:xr.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,i){if(this._animationsDisabled)return"";switch(e){case xr.Init:if(i===xr.Checked)return this._animationClasses.uncheckedToChecked;if(i==xr.Indeterminate)return this._checked?this._animationClasses.checkedToIndeterminate:this._animationClasses.uncheckedToIndeterminate;break;case xr.Unchecked:return i===xr.Checked?this._animationClasses.uncheckedToChecked:this._animationClasses.uncheckedToIndeterminate;case xr.Checked:return i===xr.Unchecked?this._animationClasses.checkedToUnchecked:this._animationClasses.checkedToIndeterminate;case xr.Indeterminate:return i===xr.Checked?this._animationClasses.indeterminateToChecked:this._animationClasses.indeterminateToUnchecked}return""}_syncIndeterminate(e){let i=this._inputElement;i&&(i.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(i){return new(i||t)};static \u0275cmp=E({type:t,selectors:[["mat-checkbox"]],viewQuery:function(i,r){if(i&1&&(ie(Ute,5),ie($te,5)),i&2){let o;B(o=j())&&(r._inputElement=o.first),B(o=j())&&(r._labelElement=o.first)}},hostAttrs:[1,"mat-mdc-checkbox"],hostVars:16,hostBindings:function(i,r){i&2&&(si("id",r.id),X("tabindex",null)("aria-label",null)("aria-labelledby",null),it(r.color?"mat-"+r.color:"mat-accent"),G("_mat-animation-noopable",r._animationsDisabled)("mdc-checkbox--disabled",r.disabled)("mat-mdc-checkbox-disabled",r.disabled)("mat-mdc-checkbox-checked",r.checked)("mat-mdc-checkbox-disabled-interactive",r.disabledInteractive))},inputs:{ariaLabel:[0,"aria-label","ariaLabel"],ariaLabelledby:[0,"aria-labelledby","ariaLabelledby"],ariaDescribedby:[0,"aria-describedby","ariaDescribedby"],ariaExpanded:[2,"aria-expanded","ariaExpanded",V],ariaControls:[0,"aria-controls","ariaControls"],ariaOwns:[0,"aria-owns","ariaOwns"],id:"id",required:[2,"required","required",V],labelPosition:"labelPosition",name:"name",value:"value",disableRipple:[2,"disableRipple","disableRipple",V],tabIndex:[2,"tabIndex","tabIndex",e=>e==null?void 0:ct(e)],color:"color",disabledInteractive:[2,"disabledInteractive","disabledInteractive",V],checked:[2,"checked","checked",V],disabled:[2,"disabled","disabled",V],indeterminate:[2,"indeterminate","indeterminate",V]},outputs:{change:"change",indeterminateChange:"indeterminateChange"},exportAs:["matCheckbox"],features:[Ce([{provide:tr,useExisting:Kt(()=>t),multi:!0},{provide:ea,useExisting:t,multi:!0}]),Ae],ngContentSelectors:Wte,decls:15,vars:23,consts:[["checkbox",""],["input",""],["label",""],["mat-internal-form-field","",3,"click","labelPosition"],[1,"mdc-checkbox"],[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"],[1,"mdc-checkbox__ripple"],[1,"mdc-checkbox__background"],["focusable","false","viewBox","0 0 24 24","aria-hidden","true",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","",1,"mat-mdc-checkbox-ripple","mat-focus-indicator",3,"matRippleTrigger","matRippleDisabled","matRippleCentered"],[1,"mdc-label",3,"for"]],template:function(i,r){if(i&1){let o=Y();Me(),h(0,"div",3),S("click",function(s){return I(o),A(r._preventBubblingFromLabel(s))}),h(1,"div",4,0)(3,"div",5),S("click",function(){return I(o),A(r._onTouchTargetClick())}),p(),h(4,"input",6,1),S("blur",function(){return I(o),A(r._onBlur())})("click",function(){return I(o),A(r._onInputClick())})("change",function(s){return I(o),A(r._onInteractionEvent(s))}),p(),k(6,"div",7),h(7,"div",8),Gt(),h(8,"svg",9),k(9,"path",10),p(),jo(),k(10,"div",11),p(),k(11,"div",12),p(),h(12,"label",13,2),oe(14),p()()}if(i&2){let o=Se(2);y("labelPosition",r.labelPosition),g(4),G("mdc-checkbox--selected",r.checked),y("checked",r.checked)("indeterminate",r.indeterminate)("disabled",r.disabled&&!r.disabledInteractive)("id",r.inputId)("required",r.required)("tabIndex",r.disabled&&!r.disabledInteractive?-1:r.tabIndex),X("aria-label",r.ariaLabel||null)("aria-labelledby",r.ariaLabelledby)("aria-describedby",r.ariaDescribedby)("aria-checked",r.indeterminate?"mixed":null)("aria-controls",r.ariaControls)("aria-disabled",r.disabled&&r.disabledInteractive?!0:null)("aria-expanded",r.ariaExpanded)("aria-owns",r.ariaOwns)("name",r.name)("value",r.value),g(7),y("matRippleTrigger",o)("matRippleDisabled",r.disableRipple||r.disabled)("matRippleCentered",!0),g(),y("for",r.inputId)}},dependencies:[Vn,Gm],styles:[`.mdc-checkbox{display:inline-block;position:relative;flex:0 0 18px;box-sizing:content-box;width:18px;height:18px;line-height:0;white-space:nowrap;cursor:pointer;vertical-align:bottom;padding:calc((var(--mat-checkbox-state-layer-size, 40px) - 18px)/2);margin:calc((var(--mat-checkbox-state-layer-size, 40px) - var(--mat-checkbox-state-layer-size, 40px))/2)}.mdc-checkbox:hover>.mdc-checkbox__ripple{opacity:var(--mat-checkbox-unselected-hover-state-layer-opacity, var(--mat-sys-hover-state-layer-opacity));background-color:var(--mat-checkbox-unselected-hover-state-layer-color, var(--mat-sys-on-surface))}.mdc-checkbox:hover>.mat-mdc-checkbox-ripple>.mat-ripple-element{background-color:var(--mat-checkbox-unselected-hover-state-layer-color, var(--mat-sys-on-surface))}.mdc-checkbox .mdc-checkbox__native-control:focus+.mdc-checkbox__ripple{opacity:var(--mat-checkbox-unselected-focus-state-layer-opacity, var(--mat-sys-focus-state-layer-opacity));background-color:var(--mat-checkbox-unselected-focus-state-layer-color, var(--mat-sys-on-surface))}.mdc-checkbox .mdc-checkbox__native-control:focus~.mat-mdc-checkbox-ripple .mat-ripple-element{background-color:var(--mat-checkbox-unselected-focus-state-layer-color, var(--mat-sys-on-surface))}.mdc-checkbox:active>.mdc-checkbox__native-control+.mdc-checkbox__ripple{opacity:var(--mat-checkbox-unselected-pressed-state-layer-opacity, var(--mat-sys-pressed-state-layer-opacity));background-color:var(--mat-checkbox-unselected-pressed-state-layer-color, var(--mat-sys-primary))}.mdc-checkbox:active>.mdc-checkbox__native-control~.mat-mdc-checkbox-ripple .mat-ripple-element{background-color:var(--mat-checkbox-unselected-pressed-state-layer-color, var(--mat-sys-primary))}.mdc-checkbox:hover .mdc-checkbox__native-control:checked+.mdc-checkbox__ripple{opacity:var(--mat-checkbox-selected-hover-state-layer-opacity, var(--mat-sys-hover-state-layer-opacity));background-color:var(--mat-checkbox-selected-hover-state-layer-color, var(--mat-sys-primary))}.mdc-checkbox:hover .mdc-checkbox__native-control:checked~.mat-mdc-checkbox-ripple .mat-ripple-element{background-color:var(--mat-checkbox-selected-hover-state-layer-color, var(--mat-sys-primary))}.mdc-checkbox .mdc-checkbox__native-control:focus:checked+.mdc-checkbox__ripple{opacity:var(--mat-checkbox-selected-focus-state-layer-opacity, var(--mat-sys-focus-state-layer-opacity));background-color:var(--mat-checkbox-selected-focus-state-layer-color, var(--mat-sys-primary))}.mdc-checkbox .mdc-checkbox__native-control:focus:checked~.mat-mdc-checkbox-ripple .mat-ripple-element{background-color:var(--mat-checkbox-selected-focus-state-layer-color, var(--mat-sys-primary))}.mdc-checkbox:active>.mdc-checkbox__native-control:checked+.mdc-checkbox__ripple{opacity:var(--mat-checkbox-selected-pressed-state-layer-opacity, var(--mat-sys-pressed-state-layer-opacity));background-color:var(--mat-checkbox-selected-pressed-state-layer-color, var(--mat-sys-on-surface))}.mdc-checkbox:active>.mdc-checkbox__native-control:checked~.mat-mdc-checkbox-ripple .mat-ripple-element{background-color:var(--mat-checkbox-selected-pressed-state-layer-color, var(--mat-sys-on-surface))}.mdc-checkbox--disabled.mat-mdc-checkbox-disabled-interactive .mdc-checkbox .mdc-checkbox__native-control~.mat-mdc-checkbox-ripple .mat-ripple-element,.mdc-checkbox--disabled.mat-mdc-checkbox-disabled-interactive .mdc-checkbox .mdc-checkbox__native-control+.mdc-checkbox__ripple{background-color:var(--mat-checkbox-unselected-hover-state-layer-color, var(--mat-sys-on-surface))}.mdc-checkbox .mdc-checkbox__native-control{position:absolute;margin:0;padding:0;opacity:0;cursor:inherit;z-index:1;width:var(--mat-checkbox-state-layer-size, 40px);height:var(--mat-checkbox-state-layer-size, 40px);top:calc((var(--mat-checkbox-state-layer-size, 40px) - var(--mat-checkbox-state-layer-size, 40px))/2);right:calc((var(--mat-checkbox-state-layer-size, 40px) - var(--mat-checkbox-state-layer-size, 40px))/2);left:calc((var(--mat-checkbox-state-layer-size, 40px) - var(--mat-checkbox-state-layer-size, 40px))/2)}.mdc-checkbox--disabled{cursor:default;pointer-events:none}.mdc-checkbox__background{display:inline-flex;position:absolute;align-items:center;justify-content:center;box-sizing:border-box;width:18px;height:18px;border:2px solid currentColor;border-radius:2px;background-color:rgba(0,0,0,0);pointer-events:none;will-change:background-color,border-color;transition:background-color 90ms cubic-bezier(0.4, 0, 0.6, 1),border-color 90ms cubic-bezier(0.4, 0, 0.6, 1);-webkit-print-color-adjust:exact;color-adjust:exact;border-color:var(--mat-checkbox-unselected-icon-color, var(--mat-sys-on-surface-variant));top:calc((var(--mat-checkbox-state-layer-size, 40px) - 18px)/2);left:calc((var(--mat-checkbox-state-layer-size, 40px) - 18px)/2)}.mdc-checkbox__native-control:enabled:checked~.mdc-checkbox__background,.mdc-checkbox__native-control:enabled:indeterminate~.mdc-checkbox__background{border-color:var(--mat-checkbox-selected-icon-color, var(--mat-sys-primary));background-color:var(--mat-checkbox-selected-icon-color, var(--mat-sys-primary))}.mdc-checkbox--disabled .mdc-checkbox__background{border-color:var(--mat-checkbox-disabled-unselected-icon-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent))}@media(forced-colors: active){.mdc-checkbox--disabled .mdc-checkbox__background{border-color:GrayText}}.mdc-checkbox__native-control:disabled:checked~.mdc-checkbox__background,.mdc-checkbox__native-control:disabled:indeterminate~.mdc-checkbox__background{background-color:var(--mat-checkbox-disabled-selected-icon-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent));border-color:rgba(0,0,0,0)}@media(forced-colors: active){.mdc-checkbox__native-control:disabled:checked~.mdc-checkbox__background,.mdc-checkbox__native-control:disabled:indeterminate~.mdc-checkbox__background{border-color:GrayText}}.mdc-checkbox:hover>.mdc-checkbox__native-control:not(:checked)~.mdc-checkbox__background,.mdc-checkbox:hover>.mdc-checkbox__native-control:not(:indeterminate)~.mdc-checkbox__background{border-color:var(--mat-checkbox-unselected-hover-icon-color, var(--mat-sys-on-surface));background-color:rgba(0,0,0,0)}.mdc-checkbox:hover>.mdc-checkbox__native-control:checked~.mdc-checkbox__background,.mdc-checkbox:hover>.mdc-checkbox__native-control:indeterminate~.mdc-checkbox__background{border-color:var(--mat-checkbox-selected-hover-icon-color, var(--mat-sys-primary));background-color:var(--mat-checkbox-selected-hover-icon-color, var(--mat-sys-primary))}.mdc-checkbox__native-control:focus:focus:not(:checked)~.mdc-checkbox__background,.mdc-checkbox__native-control:focus:focus:not(:indeterminate)~.mdc-checkbox__background{border-color:var(--mat-checkbox-unselected-focus-icon-color, var(--mat-sys-on-surface))}.mdc-checkbox__native-control:focus:focus:checked~.mdc-checkbox__background,.mdc-checkbox__native-control:focus:focus:indeterminate~.mdc-checkbox__background{border-color:var(--mat-checkbox-selected-focus-icon-color, var(--mat-sys-primary));background-color:var(--mat-checkbox-selected-focus-icon-color, var(--mat-sys-primary))}.mdc-checkbox--disabled.mat-mdc-checkbox-disabled-interactive .mdc-checkbox:hover>.mdc-checkbox__native-control~.mdc-checkbox__background,.mdc-checkbox--disabled.mat-mdc-checkbox-disabled-interactive .mdc-checkbox .mdc-checkbox__native-control:focus~.mdc-checkbox__background,.mdc-checkbox--disabled.mat-mdc-checkbox-disabled-interactive .mdc-checkbox__background{border-color:var(--mat-checkbox-disabled-unselected-icon-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent))}@media(forced-colors: active){.mdc-checkbox--disabled.mat-mdc-checkbox-disabled-interactive .mdc-checkbox:hover>.mdc-checkbox__native-control~.mdc-checkbox__background,.mdc-checkbox--disabled.mat-mdc-checkbox-disabled-interactive .mdc-checkbox .mdc-checkbox__native-control:focus~.mdc-checkbox__background,.mdc-checkbox--disabled.mat-mdc-checkbox-disabled-interactive .mdc-checkbox__background{border-color:GrayText}}.mdc-checkbox--disabled.mat-mdc-checkbox-disabled-interactive .mdc-checkbox__native-control:checked~.mdc-checkbox__background,.mdc-checkbox--disabled.mat-mdc-checkbox-disabled-interactive .mdc-checkbox__native-control:indeterminate~.mdc-checkbox__background{background-color:var(--mat-checkbox-disabled-selected-icon-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent));border-color:rgba(0,0,0,0)}.mdc-checkbox__checkmark{position:absolute;top:0;right:0;bottom:0;left:0;width:100%;opacity:0;transition:opacity 180ms cubic-bezier(0.4, 0, 0.6, 1);color:var(--mat-checkbox-selected-checkmark-color, var(--mat-sys-on-primary))}@media(forced-colors: active){.mdc-checkbox__checkmark{color:CanvasText}}.mdc-checkbox--disabled .mdc-checkbox__checkmark,.mdc-checkbox--disabled.mat-mdc-checkbox-disabled-interactive .mdc-checkbox__checkmark{color:var(--mat-checkbox-disabled-selected-checkmark-color, var(--mat-sys-surface))}@media(forced-colors: active){.mdc-checkbox--disabled .mdc-checkbox__checkmark,.mdc-checkbox--disabled.mat-mdc-checkbox-disabled-interactive .mdc-checkbox__checkmark{color:GrayText}}.mdc-checkbox__checkmark-path{transition:stroke-dashoffset 180ms cubic-bezier(0.4, 0, 0.6, 1);stroke:currentColor;stroke-width:3.12px;stroke-dashoffset:29.7833385;stroke-dasharray:29.7833385}.mdc-checkbox__mixedmark{width:100%;height:0;transform:scaleX(0) rotate(0deg);border-width:1px;border-style:solid;opacity:0;transition:opacity 90ms cubic-bezier(0.4, 0, 0.6, 1),transform 90ms cubic-bezier(0.4, 0, 0.6, 1);border-color:var(--mat-checkbox-selected-checkmark-color, var(--mat-sys-on-primary))}@media(forced-colors: active){.mdc-checkbox__mixedmark{margin:0 1px}}.mdc-checkbox--disabled .mdc-checkbox__mixedmark,.mdc-checkbox--disabled.mat-mdc-checkbox-disabled-interactive .mdc-checkbox__mixedmark{border-color:var(--mat-checkbox-disabled-selected-checkmark-color, var(--mat-sys-surface))}@media(forced-colors: active){.mdc-checkbox--disabled .mdc-checkbox__mixedmark,.mdc-checkbox--disabled.mat-mdc-checkbox-disabled-interactive .mdc-checkbox__mixedmark{border-color:GrayText}}.mdc-checkbox--anim-unchecked-checked .mdc-checkbox__background,.mdc-checkbox--anim-unchecked-indeterminate .mdc-checkbox__background,.mdc-checkbox--anim-checked-unchecked .mdc-checkbox__background,.mdc-checkbox--anim-indeterminate-unchecked .mdc-checkbox__background{animation-duration:180ms;animation-timing-function:linear}.mdc-checkbox--anim-unchecked-checked .mdc-checkbox__checkmark-path{animation:mdc-checkbox-unchecked-checked-checkmark-path 180ms linear;transition:none}.mdc-checkbox--anim-unchecked-indeterminate .mdc-checkbox__mixedmark{animation:mdc-checkbox-unchecked-indeterminate-mixedmark 90ms linear;transition:none}.mdc-checkbox--anim-checked-unchecked .mdc-checkbox__checkmark-path{animation:mdc-checkbox-checked-unchecked-checkmark-path 90ms linear;transition:none}.mdc-checkbox--anim-checked-indeterminate .mdc-checkbox__checkmark{animation:mdc-checkbox-checked-indeterminate-checkmark 90ms linear;transition:none}.mdc-checkbox--anim-checked-indeterminate .mdc-checkbox__mixedmark{animation:mdc-checkbox-checked-indeterminate-mixedmark 90ms linear;transition:none}.mdc-checkbox--anim-indeterminate-checked .mdc-checkbox__checkmark{animation:mdc-checkbox-indeterminate-checked-checkmark 500ms linear;transition:none}.mdc-checkbox--anim-indeterminate-checked .mdc-checkbox__mixedmark{animation:mdc-checkbox-indeterminate-checked-mixedmark 500ms linear;transition:none}.mdc-checkbox--anim-indeterminate-unchecked .mdc-checkbox__mixedmark{animation:mdc-checkbox-indeterminate-unchecked-mixedmark 300ms linear;transition:none}.mdc-checkbox__native-control:checked~.mdc-checkbox__background,.mdc-checkbox__native-control:indeterminate~.mdc-checkbox__background{transition:border-color 90ms cubic-bezier(0, 0, 0.2, 1),background-color 90ms cubic-bezier(0, 0, 0.2, 1)}.mdc-checkbox__native-control:checked~.mdc-checkbox__background>.mdc-checkbox__checkmark>.mdc-checkbox__checkmark-path,.mdc-checkbox__native-control:indeterminate~.mdc-checkbox__background>.mdc-checkbox__checkmark>.mdc-checkbox__checkmark-path{stroke-dashoffset:0}.mdc-checkbox__native-control:checked~.mdc-checkbox__background>.mdc-checkbox__checkmark{transition:opacity 180ms cubic-bezier(0, 0, 0.2, 1),transform 180ms cubic-bezier(0, 0, 0.2, 1);opacity:1}.mdc-checkbox__native-control:checked~.mdc-checkbox__background>.mdc-checkbox__mixedmark{transform:scaleX(1) rotate(-45deg)}.mdc-checkbox__native-control:indeterminate~.mdc-checkbox__background>.mdc-checkbox__checkmark{transform:rotate(45deg);opacity:0;transition:opacity 90ms cubic-bezier(0.4, 0, 0.6, 1),transform 90ms cubic-bezier(0.4, 0, 0.6, 1)}.mdc-checkbox__native-control:indeterminate~.mdc-checkbox__background>.mdc-checkbox__mixedmark{transform:scaleX(1) rotate(0deg);opacity:1}@keyframes mdc-checkbox-unchecked-checked-checkmark-path{0%,50%{stroke-dashoffset:29.7833385}50%{animation-timing-function:cubic-bezier(0, 0, 0.2, 1)}100%{stroke-dashoffset:0}}@keyframes mdc-checkbox-unchecked-indeterminate-mixedmark{0%,68.2%{transform:scaleX(0)}68.2%{animation-timing-function:cubic-bezier(0, 0, 0, 1)}100%{transform:scaleX(1)}}@keyframes mdc-checkbox-checked-unchecked-checkmark-path{from{animation-timing-function:cubic-bezier(0.4, 0, 1, 1);opacity:1;stroke-dashoffset:0}to{opacity:0;stroke-dashoffset:-29.7833385}}@keyframes mdc-checkbox-checked-indeterminate-checkmark{from{animation-timing-function:cubic-bezier(0, 0, 0.2, 1);transform:rotate(0deg);opacity:1}to{transform:rotate(45deg);opacity:0}}@keyframes mdc-checkbox-indeterminate-checked-checkmark{from{animation-timing-function:cubic-bezier(0.14, 0, 0, 1);transform:rotate(45deg);opacity:0}to{transform:rotate(360deg);opacity:1}}@keyframes mdc-checkbox-checked-indeterminate-mixedmark{from{animation-timing-function:cubic-bezier(0, 0, 0.2, 1);transform:rotate(-45deg);opacity:0}to{transform:rotate(0deg);opacity:1}}@keyframes mdc-checkbox-indeterminate-checked-mixedmark{from{animation-timing-function:cubic-bezier(0.14, 0, 0, 1);transform:rotate(0deg);opacity:1}to{transform:rotate(315deg);opacity:0}}@keyframes mdc-checkbox-indeterminate-unchecked-mixedmark{0%{animation-timing-function:linear;transform:scaleX(1);opacity:1}32.8%,100%{transform:scaleX(0);opacity:0}}.mat-mdc-checkbox{display:inline-block;position:relative;-webkit-tap-highlight-color:rgba(0,0,0,0)}.mat-mdc-checkbox._mat-animation-noopable>.mat-internal-form-field>.mdc-checkbox>.mat-mdc-checkbox-touch-target,.mat-mdc-checkbox._mat-animation-noopable>.mat-internal-form-field>.mdc-checkbox>.mdc-checkbox__native-control,.mat-mdc-checkbox._mat-animation-noopable>.mat-internal-form-field>.mdc-checkbox>.mdc-checkbox__ripple,.mat-mdc-checkbox._mat-animation-noopable>.mat-internal-form-field>.mdc-checkbox>.mat-mdc-checkbox-ripple::before,.mat-mdc-checkbox._mat-animation-noopable>.mat-internal-form-field>.mdc-checkbox>.mdc-checkbox__background,.mat-mdc-checkbox._mat-animation-noopable>.mat-internal-form-field>.mdc-checkbox>.mdc-checkbox__background>.mdc-checkbox__checkmark,.mat-mdc-checkbox._mat-animation-noopable>.mat-internal-form-field>.mdc-checkbox>.mdc-checkbox__background>.mdc-checkbox__checkmark>.mdc-checkbox__checkmark-path,.mat-mdc-checkbox._mat-animation-noopable>.mat-internal-form-field>.mdc-checkbox>.mdc-checkbox__background>.mdc-checkbox__mixedmark{transition:none !important;animation:none !important}.mat-mdc-checkbox label{cursor:pointer}.mat-mdc-checkbox .mat-internal-form-field{color:var(--mat-checkbox-label-text-color, var(--mat-sys-on-surface));font-family:var(--mat-checkbox-label-text-font, var(--mat-sys-body-medium-font));line-height:var(--mat-checkbox-label-text-line-height, var(--mat-sys-body-medium-line-height));font-size:var(--mat-checkbox-label-text-size, var(--mat-sys-body-medium-size));letter-spacing:var(--mat-checkbox-label-text-tracking, var(--mat-sys-body-medium-tracking));font-weight:var(--mat-checkbox-label-text-weight, var(--mat-sys-body-medium-weight))}.mat-mdc-checkbox.mat-mdc-checkbox-disabled.mat-mdc-checkbox-disabled-interactive{pointer-events:auto}.mat-mdc-checkbox.mat-mdc-checkbox-disabled.mat-mdc-checkbox-disabled-interactive input{cursor:default}.mat-mdc-checkbox.mat-mdc-checkbox-disabled label{cursor:default;color:var(--mat-checkbox-disabled-label-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent))}@media(forced-colors: active){.mat-mdc-checkbox.mat-mdc-checkbox-disabled label{color:GrayText}}.mat-mdc-checkbox label:empty{display:none}.mat-mdc-checkbox .mdc-checkbox__ripple{opacity:0}.mat-mdc-checkbox .mat-mdc-checkbox-ripple,.mdc-checkbox__ripple{top:0;left:0;right:0;bottom:0;position:absolute;border-radius:50%;pointer-events:none}.mat-mdc-checkbox .mat-mdc-checkbox-ripple:not(:empty),.mdc-checkbox__ripple:not(:empty){transform:translateZ(0)}.mat-mdc-checkbox-ripple .mat-ripple-element{opacity:.1}.mat-mdc-checkbox-touch-target{position:absolute;top:50%;left:50%;height:var(--mat-checkbox-touch-target-size, 48px);width:var(--mat-checkbox-touch-target-size, 48px);transform:translate(-50%, -50%);display:var(--mat-checkbox-touch-target-display, block)}.mat-mdc-checkbox .mat-mdc-checkbox-ripple::before{border-radius:50%}.mdc-checkbox__native-control:focus~.mat-focus-indicator::before{content:""} -`],encapsulation:2,changeDetection:0})}return t})(),yx=(()=>{class t{static \u0275fac=function(i){return new(i||t)};static \u0275mod=ee({type:t});static \u0275inj=J({imports:[Va,we,we]})}return t})();function qte(t,n){t&1&&(h(0,"span",1),_(1,"*"),p())}var Yte=(()=>{let n=class n extends to{constructor(i,r){super(),this.renderer=i,this.focusMonitor=r,this.defaultOptions={props:{hideFieldUnderline:!0,indeterminate:!0,floatLabel:"always",hideLabel:!0,color:"accent"}}}onContainerClick(i){this.checkbox.focus(),super.onContainerClick(i)}ngAfterViewInit(){this.checkbox&&this.focusMonitor.monitor(this.checkbox._inputElement,!0).subscribe(i=>{this.field.focus=!!i,this.stateChanges.next(),i?this.props.focus&&this.props.focus(this.field):this.props.blur&&this.props.blur(this.field)})}ngAfterViewChecked(){if(this.required!==this._required&&this.checkbox&&this.checkbox._inputElement){this._required=this.required;let i=this.checkbox._inputElement.nativeElement;this.required?this.renderer.setAttribute(i,"required","required"):this.renderer.removeAttribute(i,"required")}}ngOnDestroy(){super.ngOnDestroy(),this.checkbox&&this.focusMonitor.stopMonitoring(this.checkbox._inputElement)}};n.\u0275fac=function(r){return new(r||n)(_e(je),_e(Yt))},n.\u0275cmp=E({type:n,selectors:[["formly-field-mat-checkbox"]],viewQuery:function(r,o){if(r&1&&ie(Va,7),r&2){let a;B(a=j())&&(o.checkbox=a.first)}},standalone:!1,features:[le],decls:3,vars:10,consts:[[3,"formControl","id","name","formlyAttributes","tabIndex","indeterminate","color","labelPosition"],["aria-hidden","true",1,"mat-form-field-required-marker","mat-mdc-form-field-required-marker"]],template:function(r,o){r&1&&(h(0,"mat-checkbox",0),_(1),N(2,qte,2,0,"span",1),p()),r&2&&(y("formControl",o.formControl)("id",o.id)("name",o.field.name)("formlyAttributes",o.field)("tabIndex",o.props.tabindex)("indeterminate",o.props.indeterminate&&o.formControl.value==null)("color",o.props.color)("labelPosition",o.props.labelPosition),g(),ve(" ",o.props.label," "),g(),L(o.props.required&&o.props.hideRequiredMarker!==!0?2:-1))},dependencies:[ei,wo,Va,ta],encapsulation:2,changeDetection:0});let t=n;return t})();function T3(){return{types:[{name:"checkbox",component:Yte,wrappers:["form-field"]},{name:"boolean",extends:"checkbox"}]}}function Qte(t,n){if(t&1){let e=Y();h(0,"mat-checkbox",1),S("change",function(r){let o=I(e).$implicit,a=C();return A(a.onChange(o.value,r.checked))}),_(1),p()}if(t&2){let e=n.$implicit,i=n.$index,r=C();y("id",r.id+"_"+i)("formlyAttributes",r.field)("tabIndex",r.props.tabindex)("color",r.props.color)("labelPosition",r.props.labelPosition)("checked",r.isChecked(e))("disabled",r.formControl.disabled||e.disabled),g(),ve(" ",e.label," ")}}var Kte=(()=>{let n=class n extends to{constructor(){super(...arguments),this.defaultOptions={props:{hideFieldUnderline:!0,floatLabel:"always",color:"accent"}}}onChange(i,r){this.formControl.markAsDirty(),this.props.type==="array"?this.formControl.patchValue(r?[...this.formControl.value||[],i]:[...this.formControl.value||[]].filter(o=>o!==i)):this.formControl.patchValue(De(M({},this.formControl.value),{[i]:r})),this.formControl.markAsTouched()}onContainerClick(){}isChecked(i){let r=this.formControl.value;return r&&(this.props.type==="array"?r.indexOf(i.value)!==-1:r[i.value])}};n.\u0275fac=(()=>{let i;return function(o){return(i||(i=fe(n)))(o||n)}})(),n.\u0275cmp=E({type:n,selectors:[["formly-field-mat-multicheckbox"]],viewQuery:function(r,o){if(r&1&&ie(Va,5),r&2){let a;B(a=j())&&(o.checkboxes=a)}},hostVars:1,hostBindings:function(r,o){r&2&&si("id",o.id)},standalone:!1,features:[le],decls:4,vars:5,consts:[[3,"id","formlyAttributes","tabIndex","color","labelPosition","checked","disabled"],[3,"change","id","formlyAttributes","tabIndex","color","labelPosition","checked","disabled"]],template:function(r,o){r&1&&(xt(0,Qte,2,8,"mat-checkbox",0,Hi),me(2,"formlySelectOptions"),me(3,"async")),r&2&&Ct(Oe(3,3,Ni(2,0,o.props.options,o.field)))},dependencies:[Va,ta,rn,Eh],encapsulation:2,changeDetection:0});let t=n;return t})();function I3(){return{types:[{name:"multicheckbox",component:Kte,wrappers:["form-field"]}]}}var Zte=t=>({selectOptions:t});function Xte(t,n){if(t&1){let e=Y();h(0,"mat-option",2),S("click",function(){let r=I(e).selectOptions,o=C();return A(o.toggleSelectAll(r))}),k(1,"mat-pseudo-checkbox",3),_(2),p()}if(t&2){let e=n.selectOptions,i=C();g(),y("state",i.getSelectAllState(e)),g(),ve(" ",i.props.selectAllOption," ")}}function Jte(t,n){if(t&1&&Ge(0,4),t&2){let e=C();C();let i=Se(1);y("ngTemplateOutlet",i)("ngTemplateOutletContext",Pt(2,Zte,e))}}function eie(t,n){if(t&1&&(h(0,"mat-option",6),_(1),p()),t&2){let e=n.$implicit;y("value",e.value)("disabled",e.disabled),g(),ve(" ",e.label," ")}}function tie(t,n){if(t&1&&(h(0,"mat-optgroup",5),xt(1,eie,2,3,"mat-option",6,Hi),p()),t&2){let e=C().$implicit;y("label",e.label),g(),Ct(e.group)}}function iie(t,n){if(t&1&&(h(0,"mat-option",6),_(1),p()),t&2){let e=C().$implicit;y("value",e.value)("disabled",e.disabled),g(),H(e.label)}}function nie(t,n){if(t&1&&N(0,tie,3,1,"mat-optgroup",5)(1,iie,2,3,"mat-option",6),t&2){let e=n.$implicit;L(e.group?0:1)}}function rie(t,n){if(t&1&&(N(0,Jte,1,4,"ng-container",4),xt(1,nie,2,1,null,null,Hi)),t&2){let e=C();L(e.props.multiple&&e.props.selectAllOption?0:-1),g(),Ct(n)}}var oie=(()=>{let n=class n extends to{constructor(){super(...arguments),this.defaultOptions={props:{compareWith(i,r){return i===r}}}}set select(i){Wi(i,["_parentFormField","_textField"],({currentValue:r})=>{r&&(i._preferredOverlayOrigin=i._parentFormField.getConnectedOverlayOrigin())})}getSelectAllState(i){return this.empty||this.value.length===0?null:this.value.length!==this.getSelectAllValue(i).length?"indeterminate":"checked"}toggleSelectAll(i){let r=this.getSelectAllValue(i);this.formControl.markAsDirty(),this.formControl.setValue(!this.value||this.value.length!==r.length?r:[])}change(i){this.props.change?.(this.field,i)}_getAriaLabelledby(){return this.props.attributes?.["aria-labelledby"]?this.props.attributes["aria-labelledby"]:this.formField?._labelId}_getAriaLabel(){return this.props.attributes?.["aria-label"]}getSelectAllValue(i){if(!this.selectAllValue||i!==this.selectAllValue.options){let r=[];i.forEach(o=>o.group?r.push(...o.group):r.push(o)),this.selectAllValue={options:i,value:r.filter(o=>!o.disabled).map(o=>o.value)}}return this.selectAllValue.value}};n.\u0275fac=(()=>{let i;return function(o){return(i||(i=fe(n)))(o||n)}})(),n.\u0275cmp=E({type:n,selectors:[["formly-field-mat-select"]],viewQuery:function(r,o){if(r&1&&ie(Na,7),r&2){let a;B(a=j())&&(o.select=a.first)}},standalone:!1,features:[le],decls:6,vars:20,consts:[["selectAll",""],[3,"selectionChange","id","formControl","formlyAttributes","placeholder","tabIndex","required","compareWith","multiple","errorStateMatcher","aria-label","aria-labelledby","disableOptionCentering","typeaheadDebounceInterval","panelClass"],[3,"click"],[1,"mat-option-pseudo-checkbox",3,"state"],[3,"ngTemplateOutlet","ngTemplateOutletContext"],[3,"label"],[3,"value","disabled"]],template:function(r,o){if(r&1){let a=Y();R(0,Xte,3,2,"ng-template",null,0,_i),h(2,"mat-select",1),S("selectionChange",function(l){return I(a),A(o.change(l))}),N(3,rie,3,1),me(4,"formlySelectOptions"),me(5,"async"),p()}if(r&2){let a;g(2),y("id",o.id)("formControl",o.formControl)("formlyAttributes",o.field)("placeholder",o.props.placeholder)("tabIndex",o.props.tabindex)("required",o.required)("compareWith",o.props.compareWith)("multiple",o.props.multiple)("errorStateMatcher",o.errorStateMatcher),Kl("aria-label",o._getAriaLabel())("aria-labelledby",o._getAriaLabelledby()),y("disableOptionCentering",o.props.disableOptionCentering)("typeaheadDebounceInterval",o.props.typeaheadDebounceInterval)("panelClass",o.props.panelClass),g(),L((a=Oe(5,18,Ni(4,15,o.props.options,o.field)))?3:-1,a)}},dependencies:[Fn,ei,Do,wo,Na,xn,kk,Qd,ta,rn,Eh],encapsulation:2,changeDetection:0});let t=n;return t})();function A3(){return{types:[{name:"select",component:oie,wrappers:["form-field"]},{name:"enum",extends:"select"}]}}function O3(){return[b3(),w3(),D3(),M3(),T3(),I3(),A3()]}var kg=class{},P3=(()=>{class t{handle(e){return e.key}static \u0275fac=function(i){return new(i||t)};static \u0275prov=O({token:t,factory:t.\u0275fac})}return t})(),Mh=class{},F3=(()=>{class t extends Mh{compile(e,i){return e}compileTranslations(e,i){return e}static \u0275fac=(()=>{let e;return function(r){return(e||(e=fe(t)))(r||t)}})();static \u0275prov=O({token:t,factory:t.\u0275fac})}return t})(),yc=class{},N3=(()=>{class t extends yc{getTranslation(e){return Q({})}static \u0275fac=(()=>{let e;return function(r){return(e||(e=fe(t)))(r||t)}})();static \u0275prov=O({token:t,factory:t.\u0275fac})}return t})();function Sg(t,n){if(t===n)return!0;if(t===null||n===null)return!1;if(t!==t&&n!==n)return!0;let e=typeof t,i=typeof n,r;if(e==i&&e=="object")if(Array.isArray(t)){if(!Array.isArray(n))return!1;if((r=t.length)==n.length){for(let o=0;oxx(n));if(hl(t)){let n={};return Object.keys(t).forEach(e=>{n[e]=xx(t[e])}),n}else return t}function kS(t,n){if(!Mg(t))return xx(n);let e=xx(t);return Mg(e)&&Mg(n)&&Object.keys(n).forEach(i=>{hl(n[i])?i in t?e[i]=kS(t[i],n[i]):Object.assign(e,{[i]:n[i]}):Object.assign(e,{[i]:n[i]})}),e}function L3(t,n){let e=n.split(".");n="";do{n+=e.shift();let i=!e.length;if(Mo(t)){if(hl(t)&&R3(t[n])&&(hl(t[n])||pu(t[n])||i)){t=t[n],n="";continue}if(pu(t)){let r=parseInt(n,10);if(R3(t[r])&&(hl(t[r])||pu(t[r])||i)){t=t[r],n="";continue}}}if(i){t=void 0;continue}n+="."}while(e.length);return t}function sie(t,n,e){return kS(t,lie(n,e))}function lie(t,n){return t.split(".").reduceRight((e,i)=>({[i]:e}),n)}var kh=class{},V3=(()=>{class t extends kh{templateMatcher=/{{\s?([^{}\s]*)\s?}}/g;interpolate(e,i){if(Tg(e))return this.interpolateString(e,i);if(aie(e))return this.interpolateFunction(e,i)}interpolateFunction(e,i){return e(i)}interpolateString(e,i){return i?e.replace(this.templateMatcher,(r,o)=>{let a=this.getInterpolationReplacement(i,o);return a!==void 0?a:r}):e}getInterpolationReplacement(e,i){return this.formatValue(L3(e,i))}formatValue(e){if(Tg(e))return e;if(typeof e=="number"||typeof e=="boolean")return e.toString();if(e===null)return"null";if(pu(e))return e.join(", ");if(Mg(e))return typeof e.toString=="function"&&e.toString!==Object.prototype.toString?e.toString():JSON.stringify(e)}static \u0275fac=(()=>{let e;return function(r){return(e||(e=fe(t)))(r||t)}})();static \u0275prov=O({token:t,factory:t.\u0275fac})}return t})(),DS=(()=>{class t{_onTranslationChange=new z;_onLangChange=new z;_onFallbackLangChange=new z;fallbackLang=null;currentLang;translations={};languages=[];getTranslations(e){return this.translations[e]}setTranslations(e,i,r){this.translations[e]=r&&this.hasTranslationFor(e)?kS(this.translations[e],i):i,this.addLanguages([e]),this._onTranslationChange.next({lang:e,translations:this.getTranslations(e)})}getLanguages(){return this.languages}getCurrentLang(){return this.currentLang}getFallbackLang(){return this.fallbackLang}setFallbackLang(e,i=!0){this.fallbackLang=e,i&&this._onFallbackLangChange.next({lang:e,translations:this.translations[e]})}setCurrentLang(e,i=!0){this.currentLang=e,i&&this._onLangChange.next({lang:e,translations:this.translations[e]})}get onTranslationChange(){return this._onTranslationChange.asObservable()}get onLangChange(){return this._onLangChange.asObservable()}get onFallbackLangChange(){return this._onFallbackLangChange.asObservable()}addLanguages(e){this.languages=Array.from(new Set([...this.languages,...e]))}hasTranslationFor(e){return typeof this.translations[e]<"u"}deleteTranslations(e){delete this.translations[e]}getTranslation(e){let i=this.getValue(this.currentLang,e);return i===void 0&&this.fallbackLang!=null&&this.fallbackLang!==this.currentLang&&(i=this.getValue(this.fallbackLang,e)),i}getValue(e,i){return L3(this.getTranslations(e),i)}static \u0275fac=function(i){return new(i||t)};static \u0275prov=O({token:t,factory:t.\u0275fac})}return t})(),ES=new T("TRANSLATE_CONFIG"),Eg=t=>ji(t)?t:Q(t);var ia=(()=>{class t{loadingTranslations;pending=!1;_translationRequests={};lastUseLanguage=null;currentLoader=u(yc);compiler=u(Mh);parser=u(kh);missingTranslationHandler=u(kg);store=u(DS);extend=!1;get onTranslationChange(){return this.store.onTranslationChange}get onLangChange(){return this.store.onLangChange}get onFallbackLangChange(){return this.store.onFallbackLangChange}get onDefaultLangChange(){return this.store.onFallbackLangChange}constructor(){let e=M({extend:!1,fallbackLang:null},u(ES,{optional:!0}));e.lang&&this.use(e.lang),e.fallbackLang&&this.setFallbackLang(e.fallbackLang),e.extend&&(this.extend=!0)}setFallbackLang(e){this.getFallbackLang()||this.store.setFallbackLang(e,!1);let i=this.loadOrExtendLanguage(e);return ji(i)?(i.pipe(lt(1)).subscribe({next:()=>{this.store.setFallbackLang(e)},error:()=>{}}),i):(this.store.setFallbackLang(e),Q(this.store.getTranslations(e)))}use(e){this.lastUseLanguage=e,this.getCurrentLang()||this.store.setCurrentLang(e,!1);let i=this.loadOrExtendLanguage(e);return ji(i)?(i.pipe(lt(1)).subscribe({next:()=>{this.changeLang(e)},error:()=>{}}),i):(this.changeLang(e),Q(this.store.getTranslations(e)))}loadOrExtendLanguage(e){if(!this.store.hasTranslationFor(e)||this.extend)return this._translationRequests[e]=this._translationRequests[e]||this.loadAndCompileTranslations(e),this._translationRequests[e]}changeLang(e){e===this.lastUseLanguage&&this.store.setCurrentLang(e)}getCurrentLang(){return this.store.getCurrentLang()}loadAndCompileTranslations(e){this.pending=!0;let i=this.currentLoader.getTranslation(e).pipe(dd(1),lt(1));return this.loadingTranslations=i.pipe(se(r=>this.compiler.compileTranslations(r,e)),dd(1),lt(1)),this.loadingTranslations.subscribe({next:r=>{this.store.setTranslations(e,r,this.extend),this.pending=!1},error:r=>{this.pending=!1}}),i}setTranslation(e,i,r=!1){let o=this.compiler.compileTranslations(i,e);this.store.setTranslations(e,o,r||this.extend)}getLangs(){return this.store.getLanguages()}addLangs(e){this.store.addLanguages(e)}getParsedResultForKey(e,i){let r=this.getTextToInterpolate(e);if(Mo(r))return this.runInterpolation(r,i);let o=this.missingTranslationHandler.handle(M({key:e,translateService:this},i!==void 0&&{interpolateParams:i}));return o!==void 0?o:e}getFallbackLang(){return this.store.getFallbackLang()}getTextToInterpolate(e){return this.store.getTranslation(e)}runInterpolation(e,i){if(Mo(e))return pu(e)?this.runInterpolationOnArray(e,i):hl(e)?this.runInterpolationOnDict(e,i):this.parser.interpolate(e,i)}runInterpolationOnArray(e,i){return e.map(r=>this.runInterpolation(r,i))}runInterpolationOnDict(e,i){let r={};for(let o in e){let a=this.runInterpolation(e[o],i);a!==void 0&&(r[o]=a)}return r}getParsedResult(e,i){return e instanceof Array?this.getParsedResultForArray(e,i):this.getParsedResultForKey(e,i)}getParsedResultForArray(e,i){let r={},o=!1;for(let s of e)r[s]=this.getParsedResultForKey(s,i),o=o||ji(r[s]);if(!o)return r;let a=e.map(s=>Eg(r[s]));return Ga(a).pipe(se(s=>{let l={};return s.forEach((c,d)=>{l[e[d]]=c}),l}))}get(e,i){if(!Mo(e)||!e.length)throw new Error('Parameter "key" is required and cannot be empty');return this.pending?this.loadingTranslations.pipe(Ao(()=>Eg(this.getParsedResult(e,i)))):Eg(this.getParsedResult(e,i))}getStreamOnTranslationChange(e,i){if(!Mo(e)||!e.length)throw new Error('Parameter "key" is required and cannot be empty');return mo(kn(()=>this.get(e,i)),this.onTranslationChange.pipe($e(()=>{let r=this.getParsedResult(e,i);return Eg(r)})))}stream(e,i){if(!Mo(e)||!e.length)throw new Error('Parameter "key" required');return mo(kn(()=>this.get(e,i)),this.onLangChange.pipe($e(()=>{let r=this.getParsedResult(e,i);return Eg(r)})))}instant(e,i){if(!Mo(e)||e.length===0)throw new Error('Parameter "key" is required and cannot be empty');let r=this.getParsedResult(e,i);return ji(r)?Array.isArray(e)?e.reduce((o,a)=>(o[a]=a,o),{}):e:r}set(e,i,r=this.getCurrentLang()){this.store.setTranslations(r,sie(this.store.getTranslations(r),e,Tg(i)?this.compiler.compile(i,r):this.compiler.compileTranslations(i,r)),!1)}reloadLang(e){return this.resetLang(e),this.loadAndCompileTranslations(e)}resetLang(e){delete this._translationRequests[e],this.store.deleteTranslations(e)}static getBrowserLang(){if(typeof window>"u"||!window.navigator)return;let e=this.getBrowserCultureLang();return e?e.split(/[-_]/)[0]:void 0}static getBrowserCultureLang(){if(!(typeof window>"u"||typeof window.navigator>"u"))return window.navigator.languages?window.navigator.languages[0]:window.navigator.language||window.navigator.browserLanguage||window.navigator.userLanguage}getBrowserLang(){return t.getBrowserLang()}getBrowserCultureLang(){return t.getBrowserCultureLang()}get defaultLang(){return this.getFallbackLang()}get currentLang(){return this.store.getCurrentLang()}get langs(){return this.store.getLanguages()}setDefaultLang(e){return this.setFallbackLang(e)}getDefaultLang(){return this.getFallbackLang()}static \u0275fac=function(i){return new(i||t)};static \u0275prov=O({token:t,factory:t.\u0275fac})}return t})(),B3=(()=>{class t{translateService=u(ia);element=u(q);_ref=u(ye);key;lastParams;currentParams;onLangChangeSub;onFallbackLangChangeSub;onTranslationChangeSub;set translate(e){e&&(this.key=e,this.checkNodes())}set translateParams(e){Sg(this.currentParams,e)||(this.currentParams=e,this.checkNodes(!0))}constructor(){this.onTranslationChangeSub||(this.onTranslationChangeSub=this.translateService.onTranslationChange.subscribe(e=>{e.lang===this.translateService.currentLang&&this.checkNodes(!0,e.translations)})),this.onLangChangeSub||(this.onLangChangeSub=this.translateService.onLangChange.subscribe(e=>{this.checkNodes(!0,e.translations)})),this.onFallbackLangChangeSub||(this.onFallbackLangChangeSub=this.translateService.onFallbackLangChange.subscribe(e=>{this.checkNodes(!0)}))}ngAfterViewChecked(){this.checkNodes()}checkNodes(e=!1,i){let r=this.element.nativeElement.childNodes;r.length||(this.setContent(this.element.nativeElement,this.key),r=this.element.nativeElement.childNodes),r.forEach(o=>{let a=o;if(a.nodeType===3){let s;if(e&&(a.lastKey=null),Mo(a.lookupKey))s=a.lookupKey;else if(this.key)s=this.key;else{let l=this.getContent(a),c=l.trim();c.length&&(a.lookupKey=c,l!==a.currentValue?(s=c,a.originalContent=l||a.originalContent):a.originalContent&&(s=a.originalContent.trim()))}this.updateValue(s,a,i)}})}updateValue(e,i,r){if(e){if(i.lastKey===e&&this.lastParams===this.currentParams)return;this.lastParams=this.currentParams;let o=a=>{(a!==e||!i.lastKey)&&(i.lastKey=e),i.originalContent||(i.originalContent=this.getContent(i)),Tg(a)?i.currentValue=a:Mo(a)?i.currentValue=JSON.stringify(a):i.currentValue=i.originalContent||e,this.setContent(i,this.key?i.currentValue:i.originalContent.replace(e,i.currentValue)),this._ref.markForCheck()};if(Mo(r)){let a=this.translateService.getParsedResult(e,this.currentParams);ji(a)?a.subscribe({next:o}):o(a)}else this.translateService.get(e,this.currentParams).subscribe(o)}}getContent(e){return Mo(e.textContent)?e.textContent:e.data}setContent(e,i){Mo(e.textContent)?e.textContent=i:e.data=i}ngOnDestroy(){this.onLangChangeSub&&this.onLangChangeSub.unsubscribe(),this.onFallbackLangChangeSub&&this.onFallbackLangChangeSub.unsubscribe(),this.onTranslationChangeSub&&this.onTranslationChangeSub.unsubscribe()}static \u0275fac=function(i){return new(i||t)};static \u0275dir=F({type:t,selectors:[["","translate",""],["","ngx-translate",""]],inputs:{translate:"translate",translateParams:"translateParams"}})}return t})(),Cr=(()=>{class t{translate=u(ia);_ref=u(ye);value="";lastKey=null;lastParams=[];onTranslationChange;onLangChange;onFallbackLangChange;updateValue(e,i,r){let o=a=>{this.value=a!==void 0?a:e,this.lastKey=e,this._ref.markForCheck()};if(r){let a=this.translate.getParsedResult(e,i);ji(a)?a.subscribe(o):o(a)}this.translate.get(e,i).subscribe(o)}transform(e,...i){if(!e||!e.length)return e;if(Sg(e,this.lastKey)&&Sg(i,this.lastParams))return this.value;let r;if(Mo(i[0])&&i.length)if(Tg(i[0])&&i[0].length){let o=i[0].replace(/(')?([a-zA-Z0-9_]+)(')?(\s)?:/g,'"$2":').replace(/:(\s)?(')(.*?)(')/g,':"$3"');try{r=JSON.parse(o)}catch(a){throw new SyntaxError(`Wrong parameter in TranslatePipe. Expected a valid Object, received: ${i[0]}`)}}else hl(i[0])&&(r=i[0]);return this.lastKey=e,this.lastParams=i,this.updateValue(e,r),this._dispose(),this.onTranslationChange||(this.onTranslationChange=this.translate.onTranslationChange.subscribe(o=>{(this.lastKey&&o.lang===this.translate.getCurrentLang()||o.lang===this.translate.getFallbackLang())&&(this.lastKey=null,this.updateValue(e,r,o.translations))})),this.onLangChange||(this.onLangChange=this.translate.onLangChange.subscribe(o=>{this.lastKey&&(this.lastKey=null,this.updateValue(e,r,o.translations))})),this.onFallbackLangChange||(this.onFallbackLangChange=this.translate.onFallbackLangChange.subscribe(()=>{this.lastKey&&(this.lastKey=null,this.updateValue(e,r))})),this.value}_dispose(){typeof this.onTranslationChange<"u"&&(this.onTranslationChange.unsubscribe(),this.onTranslationChange=void 0),typeof this.onLangChange<"u"&&(this.onLangChange.unsubscribe(),this.onLangChange=void 0),typeof this.onFallbackLangChange<"u"&&(this.onFallbackLangChange.unsubscribe(),this.onFallbackLangChange=void 0)}ngOnDestroy(){this._dispose()}static \u0275fac=function(i){return new(i||t)};static \u0275pipe=Wr({name:"translate",type:t,pure:!1});static \u0275prov=O({token:t,factory:t.\u0275fac})}return t})();function j3(t){return{provide:yc,useClass:t}}function H3(t){return{provide:Mh,useClass:t}}function z3(t){return{provide:kh,useClass:t}}function U3(t){return{provide:kg,useClass:t}}function $3(t={}){return MS(M({compiler:H3(F3),parser:z3(V3),loader:j3(N3),missingTranslationHandler:U3(P3)},t),!0)}function MS(t={},n){let e=[];t.loader&&e.push(t.loader),t.compiler&&e.push(t.compiler),t.parser&&e.push(t.parser),t.missingTranslationHandler&&e.push(t.missingTranslationHandler),n&&e.push(DS),(t.useDefaultLang||t.defaultLanguage)&&(console.warn("The `useDefaultLang` and `defaultLanguage` options are deprecated. Please use `fallbackLang` instead."),t.useDefaultLang===!0&&t.defaultLanguage&&(t.fallbackLang=t.defaultLanguage));let i={fallbackLang:t.fallbackLang??null,lang:t.lang,extend:t.extend??!1};return e.push({provide:ES,useValue:i}),e.push({provide:ia,useClass:ia,deps:[DS,yc,Mh,kh,kg,ES]}),e}var wr=(()=>{class t{static forRoot(e={}){return{ngModule:t,providers:[...MS(M({compiler:H3(F3),parser:z3(V3),loader:j3(N3),missingTranslationHandler:U3(P3)},e),!0)]}}static forChild(e={}){return{ngModule:t,providers:[...MS(e,e.isolate??!1)]}}static \u0275fac=function(i){return new(i||t)};static \u0275mod=ee({type:t});static \u0275inj=J({})}return t})();var SS=new T("TRANSLATE_HTTP_LOADER_CONFIG"),cie=(()=>{class t{http;config;constructor(){this.config=M({prefix:"/assets/i18n/",suffix:".json",enforceLoading:!1,useHttpBackend:!1},u(SS)),this.http=this.config.useHttpBackend?new Yr(u(Zl)):u(Yr)}getTranslation(e){let i=this.config.enforceLoading?`?enforceLoading=${Date.now()}`:"";return this.http.get(`${this.config.prefix}${e}${this.config.suffix}${i}`)}static \u0275fac=function(i){return new(i||t)};static \u0275prov=O({token:t,factory:t.\u0275fac})}return t})();function W3(t={}){let n=t.useHttpBackend??!1;return[{provide:SS,useValue:t},{provide:yc,useClass:cie,deps:[n?Zl:Yr,SS]}]}var TS=class{constructor(n){this.options=n,n.vcr?this.ref=n.vcr.createComponent(n.component,{index:n.vcr.length,injector:n.injector||n.vcr.injector}):(this.ref=Mm(n.component,{elementInjector:n.injector,environmentInjector:n.environmentInjector}),n.appRef.attachView(this.ref.hostView))}setInput(n,e){return this.ref.setInput(n,e),this}setInputs(n){return Object.keys(n).forEach(e=>{this.ref.setInput(e,n[e])}),this}detectChanges(){return this.ref.hostView.detectChanges(),this}updateContext(n){return this.options.contextSignal?.set(n),this}appendTo(n){return n.appendChild(this.getElement()),this}removeFrom(n){return n.removeChild(this.getElement()),this}getRawContent(){return this.getElement().outerHTML}getElement(){return this.ref.location.nativeElement}destroy(){this.ref.destroy(),!this.options.vcr&&this.options.appRef.detachView(this.ref.hostView),this.ref=null}};function Ig(t){return t instanceof te}function gu(t){return typeof t=="function"}function G3(t){return typeof t=="string"}var IS=class{constructor(n){this.args=n,this.args.vcr?(this.ref=this.args.vcr.createEmbeddedView(this.args.tpl,this.args.context||{},{injector:n.injector}),this.ref.detectChanges()):(this.ref=this.args.tpl.createEmbeddedView(this.args.context||{},n.injector),this.ref.detectChanges(),this.args.appRef.attachView(this.ref))}detectChanges(){return this.ref.detectChanges(),this}getElement(){let n=this.ref.rootNodes;return n.length===1&&n[0]===Node.ELEMENT_NODE?this.element=n[0]:(this.element=document.createElement("div"),this.element.append(...n)),this.element}destroy(){this.ref.rootNodes[0]!==1&&(this.element?.parentNode.removeChild(this.element),this.element=null),this.args.vcr||this.args.appRef.detachView(this.ref),this.ref.destroy(),this.ref=null}updateContext(n){return Object.assign(this.ref.context,n),this}},AS=class{constructor(n){this.value=n}getElement(){return this.value}detectChanges(){return this}updateContext(){return this}destroy(){}},die=new T("Component context"),OS=(()=>{let n=class n{constructor(){this.injector=u(de),this.appRef=u(Gn),this.environmentInjector=u(Wt)}createComponent(i,r={}){let o=r.injector??this.injector,a;return r.context&&(a=he(r.context),o=de.create({providers:[{provide:die,useValue:a.asReadonly()}],parent:o})),new TS({component:i,vcr:r.vcr,injector:o,appRef:this.appRef,environmentInjector:r.environmentInjector||this.environmentInjector,contextSignal:a})}createTemplate(i,r={}){return new IS({vcr:r.vcr,appRef:this.appRef,tpl:i,context:r.context,injector:r.injector})}createView(i,r={}){if(Ig(i))return this.createTemplate(i,r);if(gu(i))return this.createComponent(i,r);if(G3(i))return new AS(i);throw"Type of content is not supported"}};n.\u0275fac=function(r){return new(r||n)},n.\u0275prov=O({token:n,factory:n.\u0275fac,providedIn:"root"});let t=n;return t})();var uie=(()=>{let n=class n{constructor(){this.content=ne()}};n.\u0275fac=function(r){return new(r||n)},n.\u0275cmp=E({type:n,selectors:[["dynamic-view"]],inputs:{content:[1,"content"]},decls:1,vars:1,consts:[[3,"innerHTML"]],template:function(r,o){r&1&&ai(0,"div",0),r&2&&si("innerHTML",o.content(),Zp)},encapsulation:2});let t=n;return t})(),Cx=(()=>{let n=class n{constructor(){this.view=ne(void 0,{alias:"dynamicView"}),this.injector=ne(void 0,{alias:"dynamicViewInjector"}),this.context=ne(void 0,{alias:"dynamicViewContext"}),this.inputs=ne(void 0,{alias:"dynamicViewInputs"}),this.defaultTpl=u(te),this.vcr=u(nt),this.viewService=u(OS)}ngOnInit(){this.resolveContentType()}ngOnChanges(i){let r=i.view&&!i.view.isFirstChange(),o=i.context&&!i.context.isFirstChange(),a=i.inputs&&!i.inputs.isFirstChange();r?this.resolveContentType():o?this.viewRef.updateContext(this.context()):gu(this.view())&&a&&this.viewRef.setInputs(this.inputs()||{})}resolveContentType(){this.viewRef?.destroy();let i=this.view(),r=this.injector(),o=this.context();if(G3(i))(this.viewRef=this.viewService.createComponent(uie,{vcr:this.vcr,injector:r})).setInput("content",i).detectChanges();else if(gu(i)){this.viewRef=this.viewService.createComponent(i,{vcr:this.vcr,injector:r??this.vcr.injector,context:o});let a=this.inputs();a&&this.viewRef.setInputs(a)}else this.viewRef=this.viewService.createView(i||this.defaultTpl,{vcr:this.vcr,injector:r??this.vcr.injector,context:o})}ngOnDestroy(){this.viewRef?.destroy()}};n.\u0275fac=function(r){return new(r||n)},n.\u0275dir=F({type:n,selectors:[["","dynamicView",""]],inputs:{view:[1,"dynamicView","view"],injector:[1,"dynamicViewInjector","injector"],context:[1,"dynamicViewContext","context"],inputs:[1,"dynamicViewInputs","inputs"]},features:[Ae]});let t=n;return t})();function mie(t,n){if(t&1&&(_(0,` - `),k(1,"hot-toast-loader",1),_(2,` - `)),t&2){let e=C(2);g(),y("theme",e.theme)}}function hie(t,n){if(t&1&&(_(0,` - `),h(1,"div"),_(2,` - `),k(3,"hot-toast-error",1),_(4,` - `),p(),_(5,` - `)),t&2){let e=C(3);g(3),y("theme",e.theme)}}function pie(t,n){if(t&1&&(_(0,` - `),h(1,"div"),_(2,` - `),k(3,"hot-toast-checkmark",1),_(4,` - `),p(),_(5,` - `)),t&2){let e=C(3);g(3),y("theme",e.theme)}}function fie(t,n){if(t&1&&(_(0,` - `),h(1,"div"),_(2,` - `),k(3,"hot-toast-warning",1),_(4,` - `),p(),_(5,` - `)),t&2){let e=C(3);g(3),y("theme",e.theme)}}function gie(t,n){if(t&1&&(_(0,` - `),h(1,"div"),_(2,` - `),k(3,"hot-toast-info",1),_(4,` - `),p(),_(5,` - `)),t&2){let e=C(3);g(3),y("theme",e.theme)}}function _ie(t,n){if(t&1&&(_(0,` - `),h(1,"div",2),_(2,` - `),h(3,"div"),_(4,` - `),N(5,hie,6,1)(6,pie,6,1)(7,fie,6,1)(8,gie,6,1),_(9,` - `),p(),_(10,` - `),p(),_(11,` - `)),t&2){let e,i=C(2);g(5),L((e=i.type)==="error"?5:e==="success"?6:e==="warning"?7:e==="info"?8:-1)}}function bie(t,n){if(t&1&&(_(0,` -`),h(1,"div",0),_(2,` - `),N(3,mie,3,1),N(4,_ie,12,1),p(),_(5,` -`)),t&2){let e=C();g(3),L(e.type==="loading"?3:-1),g(),L(e.type!=="loading"?4:-1)}}function vie(t,n){t&1&&Ge(0)}var K3=["hotToastBarBase"];function yie(t,n){if(t&1&&(_(0,` - `),h(1,"hot-toast-animated-icon",7),_(2),p(),_(3,` - `)),t&2){let e=C(2);g(),y("iconTheme",e.toast.iconTheme),g(),H(e.toast.icon)}}function xie(t,n){t&1&&Ge(0)}function Cie(t,n){if(t&1&&(_(0,` - `),h(1,"div"),_(2,` - `),R(3,xie,1,0,"ng-container",8),_(4,` - `),p(),_(5,` - `)),t&2){let e=C(2);g(3),y("dynamicView",e.toast.icon)}}function wie(t,n){if(t&1&&(_(0," "),N(1,yie,4,2)(2,Cie,6,1)),t&2){let e=C();g(),L(e.isIconString?1:2)}}function Die(t,n){if(t&1&&(_(0,` - `),k(1,"hot-toast-indicator",9),_(2,` - `)),t&2){let e=C();g(),y("theme",e.toast.iconTheme)("type",e.toast.type)}}function Eie(t,n){t&1&&Ge(0)}function Mie(t,n){if(t&1){let e=Y();_(0,` - `),h(1,"button",10),S("click",function(){I(e);let r=C();return A(r.close())}),p(),_(2,` - `)}if(t&2){let e=C();g(),Js(e.toast.closeStyle)}}var kie=(t,n)=>n.id;function Sie(t,n){if(t&1&&(_(0,` - `),k(1,"hot-toast-animated-icon",7),_(2,` - `)),t&2){let e=C(2);g(),y("iconTheme",e.toast.iconTheme)("icon",e.toast.icon)}}function Tie(t,n){t&1&&Ge(0)}function Iie(t,n){if(t&1&&(_(0,` - `),h(1,"div"),_(2,` - `),R(3,Tie,1,0,"ng-container",8),_(4,` - `),p(),_(5,` - `)),t&2){let e=C(2);g(3),y("dynamicView",e.toast.icon)}}function Aie(t,n){if(t&1&&(_(0," "),N(1,Sie,3,2)(2,Iie,6,1)),t&2){let e=C();g(),L(e.isIconString?1:2)}}function Oie(t,n){if(t&1&&(_(0,` - `),k(1,"hot-toast-indicator",9),_(2,` - `)),t&2){let e=C();g(),y("theme",e.toast.iconTheme)("type",e.toast.type)}}function Rie(t,n){t&1&&Ge(0)}function Pie(t,n){if(t&1){let e=Y();_(0,` - `),h(1,"button",10),S("click",function(){I(e);let r=C();return A(r.toggleToastGroup())}),p(),_(2,` - `)}if(t&2){let e=C();g(),Js(e.toast.group.btnStyle),G("expanded",e.isExpanded),X("aria-label",e.isExpanded?"Collapse":"Expand")}}function Fie(t,n){if(t&1){let e=Y();_(0,` - `),h(1,"button",11),S("click",function(){I(e);let r=C();return A(r.close())}),p(),_(2,` - `)}if(t&2){let e=C();g(),Js(e.toast.closeStyle)}}function Nie(t,n){if(t&1){let e=Y();_(0,` - `),h(1,"hot-toast-group-item",13),S("height",function(r){let o=I(e).$implicit,a=C(2);return A(a.updateHeight(r,o))})("beforeClosed",function(){let r=I(e).$implicit,o=C(2);return A(o.beforeClosedGroupItem(r))})("afterClosed",function(r){I(e);let o=C(2);return A(o.afterClosedGroupItem(r))}),p(),_(2,` - `)}if(t&2){let e=n.$implicit,i=n.$index,r=C(2);g(),y("toast",e)("offset",r.calculateOffset(e.id))("toastRef",r.toastRef.groupRefs[i])("toastsAfter",(e.autoClose?r.groupChildrenToasts.length:r.visibleToasts.length)-1-i)("defaultConfig",r.defaultConfig)("isShowingAllToasts",r.isShowingAllToasts)}}function Lie(t,n){if(t&1&&(_(0,` - `),h(1,"div",12),_(2,` - `),xt(3,Nie,3,6,null,null,kie),p(),_(5,` - `)),t&2){let e=C();g(),it(e.toast.group==null?null:e.toast.group.className),Dt("--hot-toast-group-height",e.groupHeight+"px"),g(2),Ct(e.groupChildrenToasts)}}function Vie(t,n){t&1&&_(0,` - `)}function Bie(t,n){if(t&1){let e=Y();_(0,` - `),h(1,"hot-toast",2),S("showAllToasts",function(r){I(e);let o=C(2);return A(o.showAllToasts(r))})("height",function(r){I(e);let o=C().$implicit,a=C();return A(a.updateHeight(r,o))})("beforeClosed",function(){I(e);let r=C().$implicit,o=C();return A(o.beforeClosed(r))})("afterClosed",function(r){I(e);let o=C(2);return A(o.afterClosed(r))})("toggleGroup",function(r){I(e);let o=C(2);return A(o.toggleGroup(r))}),p(),_(2,` - `)}if(t&2){let e=C(),i=e.$implicit,r=e.$index,o=C();g(),y("toast",i)("offset",o.calculateOffset(i.id,i.position))("toastRef",o.toastRefs[r])("toastsAfter",(i.autoClose?o.toasts.length:o.getVisibleToasts(i.position).length)-1-r)("defaultConfig",o.defaultConfig)("isShowingAllToasts",o.isShowingAllToasts)}}function jie(t,n){if(t&1&&(_(0,` - `),N(1,Vie,1,0)(2,Bie,3,6)),t&2){let e=n.$implicit;g(),L(e.group!=null&&e.group.parent?1:2)}}var q3={blank:4e3,error:4e3,success:4e3,loading:3e4,warning:4e3,info:4e3},Sh=800,wx=350,Hie=8,PS=.05,zie=1,Ag=class{constructor(n){this.toast=n,this.groupRefs=[],this.groupExpanded=!1,this._onClosed=new z,this._onGroupToggle=new z}set data(n){this.toast.data=n}get data(){return this.toast.data}set dispose(n){this._dispose=n}getToast(){return this.toast}appendTo(n,e){let{dispose:i,updateMessage:r,updateToast:o,afterClosed:a,afterGroupToggled:s,afterGroupRefsAttached:l}=n.addToast(this,e);return this.dispose=i,this.updateMessage=r,this.updateToast=o,this.afterClosed=Wu(this._onClosed.asObservable(),a),this.afterGroupToggled=Wu(this._onGroupToggle.asObservable(),s),this.afterGroupRefsAttached=l,this}close(n={dismissedByAction:!1}){this.groupRefs.forEach(e=>e.close()),this._dispose(),this._onClosed.next({dismissedByAction:n.dismissedByAction,id:this.toast.id}),this._onClosed.complete()}toggleGroup(n={byAction:!1}){this.groupExpanded=!this.groupExpanded,this._onGroupToggle.next({byAction:n.byAction,id:this.toast.id,event:this.groupExpanded?"expand":"collapse"})}show(){this.toast.visible=!0}},Dx=(t,n,e)=>{t.setStyle(n,"animation",e)},Uie=(()=>{let n=class n{};n.\u0275fac=function(r){return new(r||n)},n.\u0275cmp=E({type:n,selectors:[["hot-toast-loader"]],inputs:{theme:"theme"},decls:2,vars:4,consts:[[1,"hot-toast-loader-icon"]],template:function(r,o){r&1&&(ai(0,"div",0),_(1,` -`)),r&2&&Dt("border-color",o.theme==null?null:o.theme.primary)("border-right-color",o.theme==null?null:o.theme.secondary)},encapsulation:2,changeDetection:0});let t=n;return t})(),$ie=(()=>{let n=class n{};n.\u0275fac=function(r){return new(r||n)},n.\u0275cmp=E({type:n,selectors:[["hot-toast-error"]],inputs:{theme:"theme"},decls:2,vars:4,consts:[[1,"hot-toast-error-icon"]],template:function(r,o){r&1&&(ai(0,"div",0),_(1,` -`)),r&2&&Dt("--error-primary",o.theme==null?null:o.theme.primary)("--error-secondary",o.theme==null?null:o.theme.secondary)},encapsulation:2,changeDetection:0});let t=n;return t})(),Wie=(()=>{let n=class n{};n.\u0275fac=function(r){return new(r||n)},n.\u0275cmp=E({type:n,selectors:[["hot-toast-checkmark"]],inputs:{theme:"theme"},decls:2,vars:4,consts:[[1,"hot-toast-checkmark-icon"]],template:function(r,o){r&1&&(ai(0,"div",0),_(1,` -`)),r&2&&Dt("--check-primary",o.theme==null?null:o.theme.primary)("--check-secondary",o.theme==null?null:o.theme.secondary)},encapsulation:2,changeDetection:0});let t=n;return t})(),Gie=(()=>{let n=class n{};n.\u0275fac=function(r){return new(r||n)},n.\u0275cmp=E({type:n,selectors:[["hot-toast-warning"]],inputs:{theme:"theme"},decls:2,vars:4,consts:[[1,"hot-toast-warning-icon"]],template:function(r,o){r&1&&(ai(0,"div",0),_(1,` -`)),r&2&&Dt("--warn-primary",o.theme==null?null:o.theme.primary)("--warn-secondary",o.theme==null?null:o.theme.secondary)},encapsulation:2,changeDetection:0});let t=n;return t})(),qie=(()=>{let n=class n{};n.\u0275fac=function(r){return new(r||n)},n.\u0275cmp=E({type:n,selectors:[["hot-toast-info"]],inputs:{theme:"theme"},decls:2,vars:4,consts:[[1,"hot-toast-info-icon"]],template:function(r,o){r&1&&(ai(0,"div",0),_(1,` -`)),r&2&&Dt("--info-primary",o.theme==null?null:o.theme.primary)("--info-secondary",o.theme==null?null:o.theme.secondary)},encapsulation:2,changeDetection:0});let t=n;return t})(),Z3=(()=>{let n=class n{};n.\u0275fac=function(r){return new(r||n)},n.\u0275cmp=E({type:n,selectors:[["hot-toast-indicator"]],inputs:{theme:"theme",type:"type"},decls:1,vars:1,consts:[[1,"hot-toast-indicator-wrapper"],[3,"theme"],[1,"hot-toast-status-wrapper"]],template:function(r,o){r&1&&N(0,bie,6,2),r&2&&L(o.type!=="blank"?0:-1)},dependencies:[Uie,$ie,Wie,Gie,qie],encapsulation:2,changeDetection:0});let t=n;return t})(),X3=(()=>{let n=class n{};n.\u0275fac=function(r){return new(r||n)},n.\u0275cmp=E({type:n,selectors:[["hot-toast-animated-icon"]],inputs:{iconTheme:"iconTheme",icon:"icon"},decls:5,vars:3,consts:[[1,"hot-toast-animated-icon"],[4,"dynamicView"]],template:function(r,o){r&1&&(h(0,"div",0),_(1,` - `),R(2,vie,1,0,"ng-container",1),_(3,` -`),p(),_(4,` -`)),r&2&&(Dt("color",o.iconTheme==null?null:o.iconTheme.primary),g(2),y("dynamicView",o.icon))},dependencies:[Cx],encapsulation:2,changeDetection:0});let t=n;return t})(),Yie=(()=>{let n=class n{constructor(){this.offset=0,this._toastsAfter=0,this.isShowingAllToasts=!1,this.height=new U,this.beforeClosed=new U,this.afterClosed=new U,this.showAllToasts=new U,this.toggleGroup=new U,this.isManualClose=!1,this.toastBarBaseStylesSignal=he({}),this.unlisteners=[],this.softClosed=!1,this.injector=u(de),this.renderer=u(je),this.ngZone=u(ae),this.cdr=u(ye)}set toast(i){this._toast=i;let r=this.toastBarBaseStylesSignal(),o=M({},i.style);if(r.animation?.includes("hotToastExitAnimation"))o.animation=r.animation;else{let s=`hotToastEnterAnimation${i.position.includes("top")?"Negative":"Positive"} ${wx}ms cubic-bezier(0.21, 1.02, 0.73, 1) forwards`;o.animation=s}this.toastBarBaseStylesSignal.set(o)}get toast(){return this._toast}get toastsAfter(){return this._toastsAfter}set toastsAfter(i){this._toastsAfter=i}get toastBarBaseHeight(){return this.toastBarBase.nativeElement.offsetHeight}get scale(){return this.defaultConfig.stacking!=="vertical"&&!this.isShowingAllToasts?this.toastsAfter*-PS+1:1}get translateY(){return this.offset*(this.top?1:-1)+"px"}get exitAnimationDelay(){return this.toast.duration+"ms"}get top(){return this.toast.position.includes("top")}get containerPositionStyle(){let i=this.top?{top:0}:{bottom:0},r="translateY(var(--hot-toast-translate-y)) scale(var(--hot-toast-scale))",o=this.toast.position.includes("left")?{left:0}:this.toast.position.includes("right")?{right:0}:{left:0,right:0,justifyContent:"center"};return M(M({transform:r},i),o)}get isIconString(){return typeof this.toast.icon=="string"}get groupChildrenToastRefs(){return this.toastRef.groupRefs.filter(i=>!!i)}set groupChildrenToastRefs(i){this.toastRef.groupRefs=i}get groupChildrenToasts(){return this.groupChildrenToastRefs.map(i=>i.getToast())}get groupHeight(){return this.visibleToasts.map(i=>i.height).reduce((i,r)=>i+r,0)}get isExpanded(){return this.toastRef.groupExpanded}ngOnChanges(i){i.toast&&!i.toast.firstChange&&i.toast.currentValue?.message&&requestAnimationFrame(()=>{this.height.emit(this.toastBarBase.nativeElement.offsetHeight)})}ngOnInit(){Ig(this.toast.message)&&(this.context={$implicit:this.toastRef}),gu(this.toast.message)&&(this.toastComponentInjector=de.create({providers:[{provide:Ag,useValue:this.toastRef}],parent:this.toast.injector||this.injector}));let i=this.toastBarBase.nativeElement;this.ngZone.runOutsideAngular(()=>{this.unlisteners.push(this.renderer.listen(i,"animationstart",r=>{this.isExitAnimation(r)&&this.ngZone.run(()=>{this.renderer.setStyle(i,"pointer-events","none"),this.renderer.setStyle(i.parentElement,"pointer-events","none"),this.beforeClosed.emit()})}),this.renderer.listen(i,"animationend",r=>{this.isEnterAnimation(r)&&this.ngZone.run(()=>{if(this.toast.autoClose){let o=`hotToastExitAnimation${this.top?"Negative":"Positive"} ${Sh}ms forwards cubic-bezier(0.06, 0.71, 0.55, 1) var(--hot-toast-exit-animation-delay) var(--hot-toast-exit-animation-state)`;this.toastBarBaseStylesSignal.set(De(M({},this.toast.style),{animation:o}))}}),this.isExitAnimation(r)&&this.ngZone.run(()=>this.afterClosed.emit({dismissedByAction:this.isManualClose,id:this.toast.id}))}))})}ngAfterViewInit(){let i=this.toastBarBase.nativeElement;requestAnimationFrame(()=>{this.height.emit(i.offsetHeight)}),this.setToastAttributes()}softClose(){let i=`hotToastExitSoftAnimation${this.top?"Negative":"Positive"} ${Sh}ms forwards cubic-bezier(0.06, 0.71, 0.55, 1)`,r=this.toastBarBase.nativeElement;Dx(this.renderer,r,i),this.softClosed=!0}softOpen(){let i=`hotToastEnterSoftAnimation${top?"Negative":"Positive"} ${wx}ms cubic-bezier(0.21, 1.02, 0.73, 1) forwards`,r=this.toastBarBase.nativeElement;Dx(this.renderer,r,i),this.softClosed=!1}close(){this.isManualClose=!0,this.cdr.markForCheck();let i=`hotToastExitAnimation${this.top?"Negative":"Positive"} ${Sh}ms forwards cubic-bezier(0.06, 0.71, 0.55, 1)`;this.toastBarBaseStylesSignal.set(De(M({},this.toast.style),{animation:i}))}handleMouseEnter(){this.showAllToasts.emit(!0)}handleMouseLeave(){this.showAllToasts.emit(!1)}ngOnDestroy(){for(this.close();this.unlisteners.length;)this.unlisteners.pop()()}isExitAnimation(i){return i.animationName.includes("hotToastExitAnimation")}isEnterAnimation(i){return i.animationName.includes("hotToastEnterAnimation")}setToastAttributes(){let i=this.toast.attributes;for(let[r,o]of Object.entries(i))this.renderer.setAttribute(this.toastBarBase.nativeElement,r,o)}get visibleToasts(){return this.groupChildrenToasts.filter(i=>i.visible)}};n.\u0275fac=function(r){return new(r||n)},n.\u0275cmp=E({type:n,selectors:[["hot-toast-group-item"]],viewQuery:function(r,o){if(r&1&&ie(K3,7),r&2){let a;B(a=j())&&(o.toastBarBase=a.first)}},inputs:{toast:"toast",offset:"offset",defaultConfig:"defaultConfig",toastRef:"toastRef",toastsAfter:"toastsAfter",isShowingAllToasts:"isShowingAllToasts"},outputs:{height:"height",beforeClosed:"beforeClosed",afterClosed:"afterClosed",showAllToasts:"showAllToasts",toggleGroup:"toggleGroup"},features:[Ae],decls:21,vars:25,consts:[["hotToastBarBase",""],[1,"hot-toast-bar-base-container"],[1,"hot-toast-bar-base-wrapper",3,"mouseenter","mouseleave"],[1,"hot-toast-bar-base"],["aria-hidden","true",1,"hot-toast-icon"],[1,"hot-toast-message"],[4,"dynamicView","dynamicViewContext","dynamicViewInjector"],[3,"iconTheme"],[4,"dynamicView"],[3,"theme","type"],["type","button","aria-label","Close",1,"hot-toast-close-btn",3,"click"]],template:function(r,o){if(r&1){let a=Y();h(0,"div",1),_(1,` - `),h(2,"div",2),S("mouseenter",function(){return I(a),A(o.handleMouseEnter())})("mouseleave",function(){return I(a),A(o.handleMouseLeave())}),_(3,` - `),h(4,"div",3,0),_(6,` - `),h(7,"div",4),_(8,` - `),N(9,wie,3,1)(10,Die,3,2),p(),_(11,` - `),h(12,"div",5),_(13,` - `),R(14,Eie,1,0,"ng-container",6),_(15,` - `),p(),_(16,` - `),N(17,Mie,3,2),p(),_(18,` - `),p(),_(19,` -`),p(),_(20,` -`)}r&2&&(Js(o.containerPositionStyle),it("hot-toast-theme-"+o.toast.theme),Dt("--hot-toast-scale",o.scale)("--hot-toast-translate-y",o.translateY),g(4),Js(o.toastBarBaseStylesSignal()),it(o.toast.className),Dt("--hot-toast-animation-state",o.isManualClose?"running":"paused")("--hot-toast-exit-animation-state",o.isShowingAllToasts?"paused":"running")("--hot-toast-exit-animation-delay",o.exitAnimationDelay),X("aria-live",o.toast.ariaLive)("role",o.toast.role),g(5),L(o.toast.icon!==void 0?9:10),g(5),y("dynamicView",o.toast.message)("dynamicViewContext",o.context)("dynamicViewInjector",o.toastComponentInjector),g(3),L(o.toast.dismissible?17:-1))},dependencies:[X3,Z3,Cx],encapsulation:2,changeDetection:0});let t=n;return t})(),Y3=(()=>{let n=class n{constructor(){this.offset=0,this._toastsAfter=0,this.isShowingAllToasts=!1,this.height=new U,this.beforeClosed=new U,this.afterClosed=new U,this.showAllToasts=new U,this.toggleGroup=new U,this.isManualClose=!1,this.isExpanded=!1,this.toastBarBaseStylesSignal=he({}),this.unlisteners=[],this.softClosed=!1,this.groupRefs=[],this.injector=u(de),this.renderer=u(je),this.ngZone=u(ae),this.cdr=u(ye)}set toast(i){this._toast=i;let r=this.toastBarBaseStylesSignal(),o=M({},i.style);if(r.animation?.includes("hotToastExitAnimation"))o.animation=r.animation;else{let s=`hotToastEnterAnimation${i.position.includes("top")?"Negative":"Positive"} ${wx}ms cubic-bezier(0.21, 1.02, 0.73, 1) forwards`;o.animation=s}this.toastBarBaseStylesSignal.set(o)}get toast(){return this._toast}get toastsAfter(){return this._toastsAfter}set toastsAfter(i){this._toastsAfter=i,this.defaultConfig?.visibleToasts>0&&(this.toast.autoClose||(i>=this.defaultConfig?.visibleToasts?this.softClose():this.softClosed&&this.softOpen()))}get toastBarBaseHeight(){return this.toastBarBase.nativeElement.offsetHeight}get scale(){return this.defaultConfig.stacking!=="vertical"&&!this.isShowingAllToasts?this.toastsAfter*-PS+1:1}get translateY(){return this.offset*(this.top?1:-1)+"px"}get exitAnimationDelay(){return this.toast.duration+"ms"}get top(){return this.toast.position.includes("top")}get containerPositionStyle(){let i=this.top?{top:0}:{bottom:0},r="translateY(var(--hot-toast-translate-y)) scale(var(--hot-toast-scale))",o=this.toast.position.includes("left")?{left:0}:this.toast.position.includes("right")?{right:0}:{left:0,right:0,justifyContent:"center"};return M(M({transform:r},i),o)}get isIconString(){return typeof this.toast.icon=="string"}get groupChildrenToastRefs(){return this.groupRefs.filter(i=>!!i)}set groupChildrenToastRefs(i){this.groupRefs=i,this.toastRef.groupRefs=i}get groupChildrenToasts(){return this.groupChildrenToastRefs.map(i=>i.getToast())}get groupHeight(){return this.visibleToasts.slice(-this.defaultConfig.visibleToasts).map(i=>i.height).reduce((i,r)=>i+r,0)}get visibleToasts(){return this.groupChildrenToasts.filter(i=>i.visible)}ngDoCheck(){this.toastRef.groupRefs.length!==this.groupRefs.length&&(this.groupRefs=this.toastRef.groupRefs.slice(),this.cdr.markForCheck(),this.emiHeightWithGroup(this.isExpanded)),this.toastRef.groupExpanded!==this.isExpanded&&(this.isExpanded=this.toastRef.groupExpanded,this.cdr.markForCheck(),this.emiHeightWithGroup(this.isExpanded))}ngOnChanges(i){i.toast&&!i.toast.firstChange&&i.toast.currentValue?.message&&this.emiHeightWithGroup(this.isExpanded)}ngOnInit(){Ig(this.toast.message)&&(this.context={$implicit:this.toastRef}),gu(this.toast.message)&&(this.toastComponentInjector=de.create({providers:[{provide:Ag,useValue:this.toastRef}],parent:this.toast.injector||this.injector}));let i=this.toastBarBase.nativeElement;this.ngZone.runOutsideAngular(()=>{this.unlisteners.push(this.renderer.listen(i,"animationstart",r=>{this.isExitAnimation(r)&&this.ngZone.run(()=>{this.renderer.setStyle(i,"pointer-events","none"),this.renderer.setStyle(i.parentElement,"pointer-events","none"),this.beforeClosed.emit()})}),this.renderer.listen(i,"animationend",r=>{this.isEnterAnimation(r)&&this.ngZone.run(()=>{if(this.toast.autoClose){let o=`hotToastExitAnimation${this.top?"Negative":"Positive"} ${Sh}ms forwards cubic-bezier(0.06, 0.71, 0.55, 1) var(--hot-toast-exit-animation-delay) var(--hot-toast-exit-animation-state)`;this.toastBarBaseStylesSignal.set(De(M({},this.toast.style),{animation:o}))}}),this.isExitAnimation(r)&&this.ngZone.run(()=>this.afterClosed.emit({dismissedByAction:this.isManualClose,id:this.toast.id}))}))})}ngAfterViewInit(){let i=this.toastBarBase.nativeElement;requestAnimationFrame(()=>{this.height.emit(i.offsetHeight)}),this.setToastAttributes()}softClose(){let i=`hotToastExitSoftAnimation${this.top?"Negative":"Positive"} ${Sh}ms forwards cubic-bezier(0.06, 0.71, 0.55, 1)`,r=this.toastBarBase.nativeElement;Dx(this.renderer,r,i),this.softClosed=!0,this.isExpanded&&this.toggleToastGroup()}softOpen(){let i=`hotToastEnterSoftAnimation${top?"Negative":"Positive"} ${wx}ms cubic-bezier(0.21, 1.02, 0.73, 1) forwards`,r=this.toastBarBase.nativeElement;Dx(this.renderer,r,i),this.softClosed=!1}close(){this.isManualClose=!0,this.cdr.markForCheck();let i=`hotToastExitAnimation${this.top?"Negative":"Positive"} ${Sh}ms forwards cubic-bezier(0.06, 0.71, 0.55, 1)`;this.toastBarBaseStylesSignal.set(De(M({},this.toast.style),{animation:i}))}handleMouseEnter(){this.showAllToasts.emit(!0)}handleMouseLeave(){this.showAllToasts.emit(!1)}ngOnDestroy(){for(this.close();this.unlisteners.length;)this.unlisteners.pop()()}isExitAnimation(i){return i.animationName.includes("hotToastExitAnimation")}isEnterAnimation(i){return i.animationName.includes("hotToastEnterAnimation")}setToastAttributes(){let i=this.toast.attributes;for(let[r,o]of Object.entries(i))this.renderer.setAttribute(this.toastBarBase.nativeElement,r,o)}calculateOffset(i){let r=this.visibleToasts,o=r.findIndex(s=>s.id===i);return o!==-1?r.slice(...this.defaultConfig.reverseOrder?[o+1]:[0,o]).reduce((s,l,c)=>this.defaultConfig.visibleToasts!==0&&co.id===i.id)>-1&&(this.groupChildrenToastRefs=this.groupChildrenToastRefs.filter(o=>o.getToast().id!==i.id),this.cdr.markForCheck())}toggleToastGroup(){let i=this.isExpanded?"collapse":"expand";this.toggleGroup.emit({byAction:!0,event:i,id:this.toast.id}),this.emiHeightWithGroup(i==="expand")}emiHeightWithGroup(i){requestAnimationFrame(i?()=>{this.height.emit(this.toastBarBase.nativeElement.offsetHeight+this.groupHeight)}:()=>{this.height.emit(this.toastBarBase.nativeElement.offsetHeight)})}};n.\u0275fac=function(r){return new(r||n)},n.\u0275cmp=E({type:n,selectors:[["hot-toast"]],viewQuery:function(r,o){if(r&1&&ie(K3,7),r&2){let a;B(a=j())&&(o.toastBarBase=a.first)}},inputs:{toast:"toast",offset:"offset",defaultConfig:"defaultConfig",toastRef:"toastRef",toastsAfter:"toastsAfter",isShowingAllToasts:"isShowingAllToasts"},outputs:{height:"height",beforeClosed:"beforeClosed",afterClosed:"afterClosed",showAllToasts:"showAllToasts",toggleGroup:"toggleGroup"},features:[Ae],decls:23,vars:29,consts:[["hotToastBarBase",""],[1,"hot-toast-bar-base-container"],[1,"hot-toast-bar-base-wrapper",3,"mouseenter","mouseleave"],[1,"hot-toast-bar-base"],["aria-hidden","true",1,"hot-toast-icon"],[1,"hot-toast-message"],[4,"dynamicView","dynamicViewContext","dynamicViewInjector"],[3,"iconTheme","icon"],[4,"dynamicView"],[3,"theme","type"],["type","button",1,"hot-toast-group-btn",3,"click"],["type","button","aria-label","Close",1,"hot-toast-close-btn",3,"click"],["role","list",1,"hot-toast-bar-base-group"],[3,"height","beforeClosed","afterClosed","toast","offset","toastRef","toastsAfter","defaultConfig","isShowingAllToasts"]],template:function(r,o){if(r&1){let a=Y();h(0,"div",1),_(1,` - `),h(2,"div",2),S("mouseenter",function(){return I(a),A(o.handleMouseEnter())})("mouseleave",function(){return I(a),A(o.handleMouseLeave())}),_(3,` - `),h(4,"div",3,0),_(6,` - `),h(7,"div",4),_(8,` - `),N(9,Aie,3,1)(10,Oie,3,2),p(),_(11,` +`],encapsulation:2,changeDetection:0})}return t})();function Fee(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 Nee=new O("mat-mdc-fab-default-options",{providedIn:"root",factory:d3});function d3(){return{color:"accent"}}var s3=d3(),u3=(()=>{class t extends xx{_options=u(Nee,{optional:!0});_isFab=!0;extended;constructor(){super(),this._options=this._options||s3,this.color=this._options.color||s3.color}static \u0275fac=function(i){return new(i||t)};static \u0275cmp=E({type:t,selectors:[["button","mat-fab",""],["a","mat-fab",""],["button","matFab",""],["a","matFab",""]],hostAttrs:[1,"mdc-fab","mat-mdc-fab-base","mat-mdc-fab"],hostVars:4,hostBindings:function(i,r){i&2&&G("mdc-fab--extended",r.extended)("mat-mdc-extended-fab",r.extended)},inputs:{extended:[2,"extended","extended",L]},exportAs:["matButton","matAnchor"],features:[le],attrs:Pee,ngContentSelectors:c3,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(i,r){i&1&&(Se(l3),Xt(0,"span",0),ne(1),pt(2,"span",1),ne(3,1),_t(),ne(4,2),Xt(5,"span",2)(6,"span",3)),i&2&&G("mdc-button__ripple",!r._isFab)("mdc-fab__ripple",r._isFab)},styles:[`.mat-mdc-fab-base{-webkit-user-select:none;user-select:none;position:relative;display:inline-flex;align-items:center;justify-content:center;box-sizing:border-box;width:56px;height:56px;padding:0;border:none;fill:currentColor;text-decoration:none;cursor:pointer;-moz-appearance:none;-webkit-appearance:none;overflow:visible;transition:box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1),opacity 15ms linear 30ms,transform 270ms 0ms cubic-bezier(0, 0, 0.2, 1);flex-shrink:0;-webkit-tap-highlight-color:rgba(0,0,0,0)}.mat-mdc-fab-base .mat-mdc-button-ripple,.mat-mdc-fab-base .mat-mdc-button-persistent-ripple,.mat-mdc-fab-base .mat-mdc-button-persistent-ripple::before{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none;border-radius:inherit}.mat-mdc-fab-base .mat-mdc-button-ripple{overflow:hidden}.mat-mdc-fab-base .mat-mdc-button-persistent-ripple::before{content:"";opacity:0}.mat-mdc-fab-base .mdc-button__label,.mat-mdc-fab-base .mat-icon{z-index:1;position:relative}.mat-mdc-fab-base .mat-focus-indicator{top:0;left:0;right:0;bottom:0;position:absolute}.mat-mdc-fab-base:focus>.mat-focus-indicator::before{content:""}.mat-mdc-fab-base._mat-animation-noopable{transition:none !important;animation:none !important}.mat-mdc-fab-base::before{position:absolute;box-sizing:border-box;width:100%;height:100%;top:0;left:0;border:1px solid rgba(0,0,0,0);border-radius:inherit;content:"";pointer-events:none}.mat-mdc-fab-base[hidden]{display:none}.mat-mdc-fab-base::-moz-focus-inner{padding:0;border:0}.mat-mdc-fab-base:active,.mat-mdc-fab-base:focus{outline:none}.mat-mdc-fab-base:hover{cursor:pointer}.mat-mdc-fab-base>svg{width:100%}.mat-mdc-fab-base .mat-icon,.mat-mdc-fab-base .material-icons{transition:transform 180ms 90ms cubic-bezier(0, 0, 0.2, 1);fill:currentColor;will-change:transform}.mat-mdc-fab-base .mat-focus-indicator::before{margin:calc(calc(var(--mat-focus-indicator-border-width, 3px) + 2px)*-1)}.mat-mdc-fab-base[disabled],.mat-mdc-fab-base.mat-mdc-button-disabled{cursor:default;pointer-events:none}.mat-mdc-fab-base[disabled],.mat-mdc-fab-base[disabled]:focus,.mat-mdc-fab-base.mat-mdc-button-disabled,.mat-mdc-fab-base.mat-mdc-button-disabled:focus{box-shadow:none}.mat-mdc-fab-base.mat-mdc-button-disabled-interactive{pointer-events:auto}.mat-mdc-fab{background-color:var(--mat-fab-container-color, var(--mat-sys-primary-container));border-radius:var(--mat-fab-container-shape, var(--mat-sys-corner-large));color:var(--mat-fab-foreground-color, var(--mat-sys-on-primary-container, inherit));box-shadow:var(--mat-fab-container-elevation-shadow, var(--mat-sys-level3))}.mat-mdc-fab:hover{box-shadow:var(--mat-fab-hover-container-elevation-shadow, var(--mat-sys-level4))}.mat-mdc-fab:focus{box-shadow:var(--mat-fab-focus-container-elevation-shadow, var(--mat-sys-level3))}.mat-mdc-fab:active,.mat-mdc-fab:focus:active{box-shadow:var(--mat-fab-pressed-container-elevation-shadow, var(--mat-sys-level3))}.mat-mdc-fab[disabled],.mat-mdc-fab.mat-mdc-button-disabled{cursor:default;pointer-events:none;color:var(--mat-fab-disabled-state-foreground-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent));background-color:var(--mat-fab-disabled-state-container-color, color-mix(in srgb, var(--mat-sys-on-surface) 12%, transparent))}.mat-mdc-fab.mat-mdc-button-disabled-interactive{pointer-events:auto}.mat-mdc-fab .mat-mdc-button-touch-target{position:absolute;top:50%;height:var(--mat-fab-touch-target-size, 48px);display:var(--mat-fab-touch-target-display, block);left:50%;width:var(--mat-fab-touch-target-size, 48px);transform:translate(-50%, -50%)}.mat-mdc-fab .mat-ripple-element{background-color:var(--mat-fab-ripple-color, color-mix(in srgb, var(--mat-sys-on-primary-container) calc(var(--mat-sys-pressed-state-layer-opacity) * 100%), transparent))}.mat-mdc-fab .mat-mdc-button-persistent-ripple::before{background-color:var(--mat-fab-state-layer-color, var(--mat-sys-on-primary-container))}.mat-mdc-fab.mat-mdc-button-disabled .mat-mdc-button-persistent-ripple::before{background-color:var(--mat-fab-disabled-state-layer-color)}.mat-mdc-fab:hover>.mat-mdc-button-persistent-ripple::before{opacity:var(--mat-fab-hover-state-layer-opacity, var(--mat-sys-hover-state-layer-opacity))}.mat-mdc-fab.cdk-program-focused>.mat-mdc-button-persistent-ripple::before,.mat-mdc-fab.cdk-keyboard-focused>.mat-mdc-button-persistent-ripple::before,.mat-mdc-fab.mat-mdc-button-disabled-interactive:focus>.mat-mdc-button-persistent-ripple::before{opacity:var(--mat-fab-focus-state-layer-opacity, var(--mat-sys-focus-state-layer-opacity))}.mat-mdc-fab:active>.mat-mdc-button-persistent-ripple::before{opacity:var(--mat-fab-pressed-state-layer-opacity, var(--mat-sys-pressed-state-layer-opacity))}.mat-mdc-mini-fab{width:40px;height:40px;background-color:var(--mat-fab-small-container-color, var(--mat-sys-primary-container));border-radius:var(--mat-fab-small-container-shape, var(--mat-sys-corner-medium));color:var(--mat-fab-small-foreground-color, var(--mat-sys-on-primary-container, inherit));box-shadow:var(--mat-fab-small-container-elevation-shadow, var(--mat-sys-level3))}.mat-mdc-mini-fab:hover{box-shadow:var(--mat-fab-small-hover-container-elevation-shadow, var(--mat-sys-level4))}.mat-mdc-mini-fab:focus{box-shadow:var(--mat-fab-small-focus-container-elevation-shadow, var(--mat-sys-level3))}.mat-mdc-mini-fab:active,.mat-mdc-mini-fab:focus:active{box-shadow:var(--mat-fab-small-pressed-container-elevation-shadow, var(--mat-sys-level3))}.mat-mdc-mini-fab[disabled],.mat-mdc-mini-fab.mat-mdc-button-disabled{cursor:default;pointer-events:none;color:var(--mat-fab-small-disabled-state-foreground-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent));background-color:var(--mat-fab-small-disabled-state-container-color, color-mix(in srgb, var(--mat-sys-on-surface) 12%, transparent))}.mat-mdc-mini-fab.mat-mdc-button-disabled-interactive{pointer-events:auto}.mat-mdc-mini-fab .mat-mdc-button-touch-target{position:absolute;top:50%;height:var(--mat-fab-small-touch-target-size, 48px);display:var(--mat-fab-small-touch-target-display);left:50%;width:var(--mat-fab-small-touch-target-size, 48px);transform:translate(-50%, -50%)}.mat-mdc-mini-fab .mat-ripple-element{background-color:var(--mat-fab-small-ripple-color, color-mix(in srgb, var(--mat-sys-on-primary-container) calc(var(--mat-sys-pressed-state-layer-opacity) * 100%), transparent))}.mat-mdc-mini-fab .mat-mdc-button-persistent-ripple::before{background-color:var(--mat-fab-small-state-layer-color, var(--mat-sys-on-primary-container))}.mat-mdc-mini-fab.mat-mdc-button-disabled .mat-mdc-button-persistent-ripple::before{background-color:var(--mat-fab-small-disabled-state-layer-color)}.mat-mdc-mini-fab:hover>.mat-mdc-button-persistent-ripple::before{opacity:var(--mat-fab-small-hover-state-layer-opacity, var(--mat-sys-hover-state-layer-opacity))}.mat-mdc-mini-fab.cdk-program-focused>.mat-mdc-button-persistent-ripple::before,.mat-mdc-mini-fab.cdk-keyboard-focused>.mat-mdc-button-persistent-ripple::before,.mat-mdc-mini-fab.mat-mdc-button-disabled-interactive:focus>.mat-mdc-button-persistent-ripple::before{opacity:var(--mat-fab-small-focus-state-layer-opacity, var(--mat-sys-focus-state-layer-opacity))}.mat-mdc-mini-fab:active>.mat-mdc-button-persistent-ripple::before{opacity:var(--mat-fab-small-pressed-state-layer-opacity, var(--mat-sys-pressed-state-layer-opacity))}.mat-mdc-extended-fab{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;padding-left:20px;padding-right:20px;width:auto;max-width:100%;line-height:normal;box-shadow:var(--mat-fab-extended-container-elevation-shadow, var(--mat-sys-level3));height:var(--mat-fab-extended-container-height, 56px);border-radius:var(--mat-fab-extended-container-shape, var(--mat-sys-corner-large));font-family:var(--mat-fab-extended-label-text-font, var(--mat-sys-label-large-font));font-size:var(--mat-fab-extended-label-text-size, var(--mat-sys-label-large-size));font-weight:var(--mat-fab-extended-label-text-weight, var(--mat-sys-label-large-weight));letter-spacing:var(--mat-fab-extended-label-text-tracking, var(--mat-sys-label-large-tracking))}.mat-mdc-extended-fab:hover{box-shadow:var(--mat-fab-extended-hover-container-elevation-shadow, var(--mat-sys-level4))}.mat-mdc-extended-fab:focus{box-shadow:var(--mat-fab-extended-focus-container-elevation-shadow, var(--mat-sys-level3))}.mat-mdc-extended-fab:active,.mat-mdc-extended-fab:focus:active{box-shadow:var(--mat-fab-extended-pressed-container-elevation-shadow, var(--mat-sys-level3))}.mat-mdc-extended-fab[disabled],.mat-mdc-extended-fab.mat-mdc-button-disabled{cursor:default;pointer-events:none}.mat-mdc-extended-fab[disabled],.mat-mdc-extended-fab[disabled]:focus,.mat-mdc-extended-fab.mat-mdc-button-disabled,.mat-mdc-extended-fab.mat-mdc-button-disabled:focus{box-shadow:none}.mat-mdc-extended-fab.mat-mdc-button-disabled-interactive{pointer-events:auto}[dir=rtl] .mat-mdc-extended-fab .mdc-button__label+.mat-icon,[dir=rtl] .mat-mdc-extended-fab .mdc-button__label+.material-icons,.mat-mdc-extended-fab>.mat-icon,.mat-mdc-extended-fab>.material-icons{margin-left:-8px;margin-right:12px}.mat-mdc-extended-fab .mdc-button__label+.mat-icon,.mat-mdc-extended-fab .mdc-button__label+.material-icons,[dir=rtl] .mat-mdc-extended-fab>.mat-icon,[dir=rtl] .mat-mdc-extended-fab>.material-icons{margin-left:12px;margin-right:-8px}.mat-mdc-extended-fab .mat-mdc-button-touch-target{width:100%} +`],encapsulation:2,changeDetection:0})}return t})();var Be=(()=>{class t{static \u0275fac=function(i){return new(i||t)};static \u0275mod=ee({type:t});static \u0275inj=J({imports:[De,Mo,De]})}return t})();function Lee(t,n){if(t&1&&(m(0,"mat-option",17),g(1),h()),t&2){let e=n.$implicit;v("value",e),f(),pe(" ",e," ")}}function Vee(t,n){if(t&1){let e=q();m(0,"mat-form-field",14)(1,"mat-select",16,0),S("selectionChange",function(r){T(e);let o=x(2);return I(o._changePageSize(r.value))}),xt(3,Lee,2,2,"mat-option",17,Mm),h(),m(5,"div",18),S("click",function(){T(e);let r=Me(2);return I(r.open())}),h()()}if(t&2){let e=x(2);v("appearance",e._formFieldAppearance)("color",e.color),f(),v("value",e.pageSize)("disabled",e.disabled),Xl("aria-labelledby",e._pageSizeLabelId),v("panelClass",e.selectConfig.panelClass||"")("disableOptionCentering",e.selectConfig.disableOptionCentering),f(2),Ct(e._displayedPageSizeOptions)}}function Bee(t,n){if(t&1&&(m(0,"div",15),g(1),h()),t&2){let e=x(2);f(),N(e.pageSize)}}function jee(t,n){if(t&1&&(m(0,"div",3)(1,"div",13),g(2),h(),V(3,Vee,6,7,"mat-form-field",14),V(4,Bee,2,1,"div",15),h()),t&2){let e=x();f(),X("id",e._pageSizeLabelId),f(),pe(" ",e._intl.itemsPerPageLabel," "),f(),B(e._displayedPageSizeOptions.length>1?3:-1),f(),B(e._displayedPageSizeOptions.length<=1?4:-1)}}function Hee(t,n){if(t&1){let e=q();m(0,"button",19),S("click",function(){T(e);let r=x();return I(r._buttonClicked(0,r._previousButtonsDisabled()))}),Zt(),m(1,"svg",8),M(2,"path",20),h()()}if(t&2){let e=x();v("matTooltip",e._intl.firstPageLabel)("matTooltipDisabled",e._previousButtonsDisabled())("disabled",e._previousButtonsDisabled())("tabindex",e._previousButtonsDisabled()?-1:null),X("aria-label",e._intl.firstPageLabel)}}function zee(t,n){if(t&1){let e=q();m(0,"button",21),S("click",function(){T(e);let r=x();return I(r._buttonClicked(r.getNumberOfPages()-1,r._nextButtonsDisabled()))}),Zt(),m(1,"svg",8),M(2,"path",22),h()()}if(t&2){let e=x();v("matTooltip",e._intl.lastPageLabel)("matTooltipDisabled",e._nextButtonsDisabled())("disabled",e._nextButtonsDisabled())("tabindex",e._nextButtonsDisabled()?-1:null),X("aria-label",e._intl.lastPageLabel)}}var bc=(()=>{class t{changes=new z;itemsPerPageLabel="Items per page:";nextPageLabel="Next page";previousPageLabel="Previous page";firstPageLabel="First page";lastPageLabel="Last page";getRangeLabel=(e,i,r)=>{if(r==0||i==0)return`0 of ${r}`;r=Math.max(r,0);let o=e*i,a=o{class t{_intl=u(bc);_changeDetectorRef=u(ye);_formFieldAppearance;_pageSizeLabelId=u(Ze).getId("mat-paginator-page-size-label-");_intlChanges;_isInitialized=!1;_initializedStream=new Wa(1);color;get pageIndex(){return this._pageIndex}set pageIndex(e){this._pageIndex=Math.max(e||0,0),this._changeDetectorRef.markForCheck()}_pageIndex=0;get length(){return this._length}set length(e){this._length=e||0,this._changeDetectorRef.markForCheck()}_length=0;get pageSize(){return this._pageSize}set pageSize(e){this._pageSize=Math.max(e||0,0),this._updateDisplayedPageSizeOptions()}_pageSize;get pageSizeOptions(){return this._pageSizeOptions}set pageSizeOptions(e){this._pageSizeOptions=(e||[]).map(i=>dt(i,0)),this._updateDisplayedPageSizeOptions()}_pageSizeOptions=[];hidePageSize=!1;showFirstLastButtons=!1;selectConfig={};disabled=!1;page=new U;_displayedPageSizeOptions;initialized=this._initializedStream;constructor(){let e=this._intl,i=u(Gee,{optional:!0});if(this._intlChanges=e.changes.subscribe(()=>this._changeDetectorRef.markForCheck()),i){let{pageSize:r,pageSizeOptions:o,hidePageSize:a,showFirstLastButtons:s}=i;r!=null&&(this._pageSize=r),o!=null&&(this._pageSizeOptions=o),a!=null&&(this.hidePageSize=a),s!=null&&(this.showFirstLastButtons=s)}this._formFieldAppearance=i?.formFieldAppearance||"outline"}ngOnInit(){this._isInitialized=!0,this._updateDisplayedPageSizeOptions(),this._initializedStream.next()}ngOnDestroy(){this._initializedStream.complete(),this._intlChanges.unsubscribe()}nextPage(){this.hasNextPage()&&this._navigate(this.pageIndex+1)}previousPage(){this.hasPreviousPage()&&this._navigate(this.pageIndex-1)}firstPage(){this.hasPreviousPage()&&this._navigate(0)}lastPage(){this.hasNextPage()&&this._navigate(this.getNumberOfPages()-1)}hasPreviousPage(){return this.pageIndex>=1&&this.pageSize!=0}hasNextPage(){let e=this.getNumberOfPages()-1;return this.pageIndexe-i),this._changeDetectorRef.markForCheck())}_emitPageEvent(e){this.page.emit({previousPageIndex:e,pageIndex:this.pageIndex,pageSize:this.pageSize,length:this.length})}_navigate(e){let i=this.pageIndex;e!==i&&(this.pageIndex=e,this._emitPageEvent(i))}_buttonClicked(e,i){i||this._navigate(e)}static \u0275fac=function(i){return new(i||t)};static \u0275cmp=E({type:t,selectors:[["mat-paginator"]],hostAttrs:["role","group",1,"mat-mdc-paginator"],inputs:{color:"color",pageIndex:[2,"pageIndex","pageIndex",dt],length:[2,"length","length",dt],pageSize:[2,"pageSize","pageSize",dt],pageSizeOptions:"pageSizeOptions",hidePageSize:[2,"hidePageSize","hidePageSize",L],showFirstLastButtons:[2,"showFirstLastButtons","showFirstLastButtons",L],selectConfig:"selectConfig",disabled:[2,"disabled","disabled",L]},outputs:{page:"page"},exportAs:["matPaginator"],decls:14,vars:14,consts:[["selectRef",""],[1,"mat-mdc-paginator-outer-container"],[1,"mat-mdc-paginator-container"],[1,"mat-mdc-paginator-page-size"],[1,"mat-mdc-paginator-range-actions"],["aria-live","polite",1,"mat-mdc-paginator-range-label"],["matIconButton","","type","button","matTooltipPosition","above","disabledInteractive","",1,"mat-mdc-paginator-navigation-first",3,"matTooltip","matTooltipDisabled","disabled","tabindex"],["matIconButton","","type","button","matTooltipPosition","above","disabledInteractive","",1,"mat-mdc-paginator-navigation-previous",3,"click","matTooltip","matTooltipDisabled","disabled","tabindex"],["viewBox","0 0 24 24","focusable","false","aria-hidden","true",1,"mat-mdc-paginator-icon"],["d","M15.41 7.41L14 6l-6 6 6 6 1.41-1.41L10.83 12z"],["matIconButton","","type","button","matTooltipPosition","above","disabledInteractive","",1,"mat-mdc-paginator-navigation-next",3,"click","matTooltip","matTooltipDisabled","disabled","tabindex"],["d","M10 6L8.59 7.41 13.17 12l-4.58 4.59L10 18l6-6z"],["matIconButton","","type","button","matTooltipPosition","above","disabledInteractive","",1,"mat-mdc-paginator-navigation-last",3,"matTooltip","matTooltipDisabled","disabled","tabindex"],[1,"mat-mdc-paginator-page-size-label"],[1,"mat-mdc-paginator-page-size-select",3,"appearance","color"],[1,"mat-mdc-paginator-page-size-value"],["hideSingleSelectionIndicator","",3,"selectionChange","value","disabled","aria-labelledby","panelClass","disableOptionCentering"],[3,"value"],[1,"mat-mdc-paginator-touch-target",3,"click"],["matIconButton","","type","button","matTooltipPosition","above","disabledInteractive","",1,"mat-mdc-paginator-navigation-first",3,"click","matTooltip","matTooltipDisabled","disabled","tabindex"],["d","M18.41 16.59L13.82 12l4.59-4.59L17 6l-6 6 6 6zM6 6h2v12H6z"],["matIconButton","","type","button","matTooltipPosition","above","disabledInteractive","",1,"mat-mdc-paginator-navigation-last",3,"click","matTooltip","matTooltipDisabled","disabled","tabindex"],["d","M5.59 7.41L10.18 12l-4.59 4.59L7 18l6-6-6-6zM16 6h2v12h-2z"]],template:function(i,r){i&1&&(m(0,"div",1)(1,"div",2),V(2,jee,5,4,"div",3),m(3,"div",4)(4,"div",5),g(5),h(),V(6,Hee,3,5,"button",6),m(7,"button",7),S("click",function(){return r._buttonClicked(r.pageIndex-1,r._previousButtonsDisabled())}),Zt(),m(8,"svg",8),M(9,"path",9),h()(),Wo(),m(10,"button",10),S("click",function(){return r._buttonClicked(r.pageIndex+1,r._nextButtonsDisabled())}),Zt(),m(11,"svg",8),M(12,"path",11),h()(),V(13,zee,3,5,"button",12),h()()()),i&2&&(f(2),B(r.hidePageSize?-1:2),f(3),pe(" ",r._intl.getRangeLabel(r.pageIndex,r.pageSize,r.length)," "),f(),B(r.showFirstLastButtons?6:-1),f(),v("matTooltip",r._intl.previousPageLabel)("matTooltipDisabled",r._previousButtonsDisabled())("disabled",r._previousButtonsDisabled())("tabindex",r._previousButtonsDisabled()?-1:null),X("aria-label",r._intl.previousPageLabel),f(3),v("matTooltip",r._intl.nextPageLabel)("matTooltipDisabled",r._nextButtonsDisabled())("disabled",r._nextButtonsDisabled())("tabindex",r._nextButtonsDisabled()?-1:null),X("aria-label",r._intl.nextPageLabel),f(3),B(r.showFirstLastButtons?13:-1))},dependencies:[Ci,La,wn,Yt,Ao],styles:[`.mat-mdc-paginator{display:block;-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;color:var(--mat-paginator-container-text-color, var(--mat-sys-on-surface));background-color:var(--mat-paginator-container-background-color, var(--mat-sys-surface));font-family:var(--mat-paginator-container-text-font, var(--mat-sys-body-small-font));line-height:var(--mat-paginator-container-text-line-height, var(--mat-sys-body-small-line-height));font-size:var(--mat-paginator-container-text-size, var(--mat-sys-body-small-size));font-weight:var(--mat-paginator-container-text-weight, var(--mat-sys-body-small-weight));letter-spacing:var(--mat-paginator-container-text-tracking, var(--mat-sys-body-small-tracking));--mat-form-field-container-height: var(--mat-paginator-form-field-container-height, 40px);--mat-form-field-container-vertical-padding: var(--mat-paginator-form-field-container-vertical-padding, 8px)}.mat-mdc-paginator .mat-mdc-select-value{font-size:var(--mat-paginator-select-trigger-text-size, var(--mat-sys-body-small-size))}.mat-mdc-paginator .mat-mdc-form-field-subscript-wrapper{display:none}.mat-mdc-paginator .mat-mdc-select{line-height:1.5}.mat-mdc-paginator-outer-container{display:flex}.mat-mdc-paginator-container{display:flex;align-items:center;justify-content:flex-end;padding:0 8px;flex-wrap:wrap;width:100%;min-height:var(--mat-paginator-container-size, 56px)}.mat-mdc-paginator-page-size{display:flex;align-items:baseline;margin-right:8px}[dir=rtl] .mat-mdc-paginator-page-size{margin-right:0;margin-left:8px}.mat-mdc-paginator-page-size-label{margin:0 4px}.mat-mdc-paginator-page-size-select{margin:0 4px;width:var(--mat-paginator-page-size-select-width, 84px)}.mat-mdc-paginator-range-label{margin:0 32px 0 24px}.mat-mdc-paginator-range-actions{display:flex;align-items:center}.mat-mdc-paginator-icon{display:inline-block;width:28px;fill:var(--mat-paginator-enabled-icon-color, var(--mat-sys-on-surface-variant))}.mat-mdc-icon-button[aria-disabled] .mat-mdc-paginator-icon{fill:var(--mat-paginator-disabled-icon-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent))}[dir=rtl] .mat-mdc-paginator-icon{transform:rotate(180deg)}@media(forced-colors: active){.mat-mdc-icon-button[aria-disabled] .mat-mdc-paginator-icon,.mat-mdc-paginator-icon{fill:currentColor}.mat-mdc-paginator-range-actions .mat-mdc-icon-button{outline:solid 1px}.mat-mdc-paginator-range-actions .mat-mdc-icon-button[aria-disabled]{color:GrayText}}.mat-mdc-paginator-touch-target{display:var(--mat-paginator-touch-target-display, block);position:absolute;top:50%;left:50%;width:var(--mat-paginator-page-size-select-width, 84px);height:var(--mat-paginator-page-size-select-touch-target-height, 48px);background-color:rgba(0,0,0,0);transform:translate(-50%, -50%);cursor:pointer} +`],encapsulation:2,changeDetection:0})}return t})(),vc=(()=>{class t{static \u0275fac=function(i){return new(i||t)};static \u0275mod=ee({type:t});static \u0275inj=J({providers:[$ee],imports:[Be,_c,$r,or]})}return t})();var xg=class extends Bi{constructor(){super(...arguments),this._delegate=u(Bi)}getValidDateOrNull(n){return this.isDateInstance(n)&&this.isValid(n)?n:null}compareDatetime(n,e,i=!0){return this.compareDate(n,e)||this.getHour(n)-this.getHour(e)||i&&this.getMinute(n)-this.getMinute(e)}sameDatetime(n,e){if(n&&e){let i=this.isValid(n),r=this.isValid(e);return i&&r?!this.compareDatetime(n,e):i===r}return n===e}sameYear(n,e){return n&&e&&this.getYear(n)===this.getYear(e)}sameDay(n,e){return n&&e&&this.getDate(n)===this.getDate(e)&&this.sameMonthAndYear(n,e)}sameHour(n,e){return n&&e&&this.getHour(n)===this.getHour(e)&&this.sameDay(n,e)}sameMinute(n,e){return n&&e&&this.getMinute(n)===this.getMinute(e)&&this.sameHour(n,e)}sameMonthAndYear(n,e){if(n&&e){let i=this.isValid(n),r=this.isValid(e);return i&&r?!(this.getYear(n)-this.getYear(e)||this.getMonth(n)-this.getMonth(e)):i===r}return n===e}clone(n){return this._delegate.clone(n)}addCalendarYears(n,e){return this._delegate.addCalendarYears(n,e)}addCalendarMonths(n,e){return this._delegate.addCalendarMonths(n,e)}addCalendarDays(n,e){return this._delegate.addCalendarDays(n,e)}getYear(n){return this._delegate.getYear(n)}getMonth(n){return this._delegate.getMonth(n)}getDate(n){return this._delegate.getDate(n)}getDayOfWeek(n){return this._delegate.getDayOfWeek(n)}getMonthNames(n){return this._delegate.getMonthNames(n)}getDateNames(){return this._delegate.getDateNames()}getDayOfWeekNames(n){return this._delegate.getDayOfWeekNames(n)}getYearName(n){return this._delegate.getYearName(n)}getFirstDayOfWeek(){return this._delegate.getFirstDayOfWeek()}getNumDaysInMonth(n){return this._delegate.getNumDaysInMonth(n)}createDate(n,e,i){return this._delegate.createDate(n,e,i)}today(){return this._delegate.today()}parse(n,e){return this._delegate.parse(n,e)}format(n,e){return this._delegate.format(n,e)}toIso8601(n){return this._delegate.toIso8601(n)}isDateInstance(n){return this._delegate.isDateInstance(n)}isValid(n){return this._delegate.isValid(n)}invalid(){return this._delegate.invalid()}clampDate(n,e,i){return e&&this.compareDatetime(n,e)<0?e:i&&this.compareDatetime(n,i)>0?i:n}},m3=new O("mtx-datetime-formats"),$9e=h3(24,t=>String(t)),W9e=h3(60,t=>String(t));function h3(t,n){let e=Array(t);for(let i=0;i{let n=class n{transform(i){return zi(i)?i:Q(i)}};n.\u0275fac=function(r){return new(r||n)},n.\u0275pipe=Kr({name:"toObservable",type:n,pure:!0});let t=n;return t})();var f3=(()=>{let n=class n{};n.\u0275fac=function(r){return new(r||n)},n.\u0275mod=ee({type:n}),n.\u0275inj=J({imports:[ut]});let t=n;return t})();function g3(t,n){let e=Array(t);for(let i=0;i{let n=class n extends xg{constructor(){super();let i=u(xs,{optional:!0});this.setLocale(i)}setLocale(i){super.setLocale(i)}getHour(i){return dy(i)}getMinute(i){return uy(i)}isInNextMonth(i,r){let o=this.getDateInNextMonth(i);return super.sameMonthAndYear(o,r)}getWeek(i,r){return fh(i,{weekStartsOn:r})}createDatetime(i,r,o,a,s){if(r<0||r>11)throw Error(`Invalid month index "${r}". Month index has to be between 0 and 11.`);if(o<1)throw Error(`Invalid date "${o}". Date has to be greater than 0.`);if(a<0||a>23)throw Error(`Invalid hour "${a}". Hour has to be between 0 and 23.`);if(s<0||s>59)throw Error(`Invalid minute "${s}". Minute has to be between 0 and 59.`);let l=new Date(i,r,o,a,s);if(!mh(l))throw Error(`Invalid date "${o}" for month with index "${r}".`);return l}getFirstDateOfMonth(i){return mV(i)}getHourNames(){return g3(24,i=>i.toLocaleString(this.locale))}getMinuteNames(){return g3(60,i=>i.toLocaleString(this.locale))}addCalendarHours(i,r){return aV(i,r)}addCalendarMinutes(i,r){return cV(i,r)}deserialize(i){return this._delegate.deserialize(i)}getDateInNextMonth(i){return uh(i,1)}};n.\u0275fac=function(r){return new(r||n)},n.\u0275prov=R({token:n,factory:n.\u0275fac});let t=n;return t})(),Qee={parse:{dateInput:"P",monthInput:"LLLL",yearInput:"yyyy",datetimeInput:"P p",timeInput:"p"},display:{dateInput:"P",monthInput:"LLLL",yearInput:"yyyy",datetimeInput:"P p",timeInput:"p",monthYearLabel:"yyyy",dateA11yLabel:"LLLL dd, yyyy",monthYearA11yLabel:"MMMM yyyy",popupHeaderDateLabel:"ccc, dd LLL"}};function _3(t=Qee){return[{provide:Bi,useClass:US,deps:[xs]},{provide:xg,useClass:Yee},{provide:m3,useValue:t}]}var Kee=["container"];function Zee(t,n){}function Xee(t,n){}var Jee=["*"];function ete(t,n){if(t&1&&M(0,"formly-field",0),t&2){let e=n.$implicit;v("field",e)}}var b3=["fieldComponent"];function tte(t,n,e){if(n.id)return n.id;let i=n.type;return!i&&n.template&&(i="template"),i instanceof Pd&&(i=i.prototype.constructor.name),[t,i,n.key,e].join("_")}function pn(t){return!yc(t.key)&&t.key!==""&&(!Array.isArray(t.key)||t.key.length>0)}function gu(t){if(!pn(t))return[];if(t._keyPath?.key!==t.key){let n=[];if(typeof t.key=="string"){let e=t.key.indexOf("[")===-1?t.key:t.key.replace(/\[(\w+)\]/g,".$1");n=e.indexOf(".")!==-1?e.split("."):[e]}else Array.isArray(t.key)?n=t.key.slice(0):n=[`${t.key}`];ar(t,"_keyPath",{key:t.key,path:n})}return t._keyPath.path.slice(0)}var xk=["required","pattern","minLength","maxLength","min","max"];function Cg(t,n){let e=gu(t);if(e.length===0)return;let i=t;for(;i.parent;)i=i.parent,e=[...gu(i),...e];if(n===void 0&&t.resetOnHide){let r=e.pop(),o=e.reduce((a,s)=>a[s]||{},i.model);delete o[r];return}ite(i.model,e,n)}function ite(t,n,e){for(let i=0;i{for(let i in e)yc(t[i])||nte(t[i])?t[i]=xc(e[i]):rte(t[i],e[i])&&kh(t[i],e[i])}),t}function yc(t){return t==null}function wx(t){return t===void 0}function nte(t){return t===""}function fk(t){return typeof t=="function"}function rte(t,n){return Va(t)&&Va(n)&&Object.getPrototypeOf(t)===Object.getPrototypeOf(n)&&!(Array.isArray(t)||Array.isArray(n))}function Va(t){return t!=null&&typeof t=="object"}function ote(t){return!!t&&typeof t.then=="function"}function xc(t){if(!Va(t)||zi(t)||t instanceof te||t.changingThisBreaksApplicationSecurity||["RegExp","FileList","File","Blob"].indexOf(t.constructor?.name)!==-1)return t;if(t instanceof Set)return new Set(t);if(t instanceof Map)return new Map(t);if(t instanceof Uint8Array)return new Uint8Array(t);if(t instanceof Uint16Array)return new Uint16Array(t);if(t instanceof Uint32Array)return new Uint32Array(t);if(t._isAMomentObject&&fk(t.clone))return t.clone();if(t instanceof fc)return null;if(t instanceof Date)return new Date(t.getTime());if(Array.isArray(t))return t.slice(0).map(i=>xc(i));let n=Object.getPrototypeOf(t),e=Object.create(n);return e=Object.setPrototypeOf(e,n),Object.keys(t).reduce((i,r)=>{let o=Object.getOwnPropertyDescriptor(t,r);return o.get?Object.defineProperty(i,r,o):i[r]=xc(t[r]),i},e)}function ar(t,n,e){Object.defineProperty(t,n,{enumerable:!1,writable:!0,configurable:!0}),t[n]=e}function v3(t,n,e){let i=[],r=()=>{i.forEach(a=>a()),i=[]},o=qi(t,n,({firstChange:a,currentValue:s})=>{!a&&e(),r(),Va(s)&&s.constructor.name==="Object"&&Object.keys(s).forEach(l=>{i.push(v3(t,[...n,l],e))})});return()=>{o.unsubscribe(),r()}}function qi(t,n,e){t._observers||ar(t,"_observers",{});let i=t;for(let s=0;s=1&&Va(i))){let{enumerable:s}=Object.getOwnPropertyDescriptor(i,r)||{enumerable:!0};Object.defineProperty(i,r,{enumerable:s,configurable:!0,get:()=>a.value,set:l=>{if(l!==a.value){let c=a.value;a.value=l,a.onChange.forEach(d=>d({previousValue:c,currentValue:l,firstChange:!1}))}}})}return{setValue(s,l=!0){if(s===a.value)return;let c=a.value;a.value=s,a.onChange.forEach(d=>{d!==e&&l&&d({previousValue:c,currentValue:s,firstChange:!1})})},unsubscribe(){a.onChange=a.onChange.filter(s=>s!==e),a.onChange.length===0&&delete t._observers[o]}}}function y3(t,n){if(n=Array.isArray(n)?n.join("."):n,!!t.fieldGroup)for(let e=0,i=t.fieldGroup.length;e{n instanceof Fd?n.injector.get(ye).markForCheck():n.markForCheck()})}function ate(t){let n=i=>i.hide||i.expressions?.hide||i.hideExpression,e=!t.resetOnHide||!n(t);if(!n(t)&&t.resetOnHide){let i=t.parent;for(;i&&!n(i);)i=i.parent;e=!i||!n(i)}return!e}function x3(){return+Tp.major>18||+Tp.major>=18&&+Tp.minor>=1}function ste(t,n){try{return Function(...n,`return ${t};`)}catch(e){console.error(e)}}function lte(t,n,e){return typeof t=="function"?t.apply(n,e):!!t}function cte(t,n=!1){let e=t.formControl,i=e._fields?e._fields.indexOf(t):-1;i!==-1&&e._fields.splice(i,1);let r=e.parent;if(!r)return;let o={emitEvent:n};if(r instanceof dk){let a=r.controls.findIndex(s=>s===e);a!==-1&&r.removeAt(a,o)}else if(r instanceof bx){let a=gu(t),s=a[a.length-1];r.get([s])===e&&r.removeControl(s,o)}e.setParent(null)}function dte(t){return t.formControl?t.formControl:t.shareFormControl===!1?null:t.form?.get(gu(t))}function C3(t,n,e=!1){if(n=n||t.formControl,n._fields||ar(n,"_fields",[]),n._fields.indexOf(t)===-1&&n._fields.push(t),!t.formControl&&n){ar(t,"formControl",n),n.setValidators(null),n.setAsyncValidators(null),t.props.disabled=!!t.props.disabled;let s=qi(t,["props","disabled"],({firstChange:l,currentValue:c})=>{l||(c?t.formControl.disable():t.formControl.enable())});n instanceof ia&&n.registerOnDisabledChange(s.setValue)}if(!t.form||!pn(t))return;let i=t.form,r=gu(t),o=_u(t);!(yc(n.value)&&yc(o))&&n.value!==o&&n instanceof ia&&n.patchValue(o);for(let s=0;s{ar(n,"_hide",!!i),(!r||r&&i===!0)&&(n.props.hidden=i,n.options._hiddenFieldsForCheck.push({field:n}))}),n.hideExpression&&qi(n,["hideExpression"],({currentValue:i})=>{n._expressions.hide=this.parseExpressions(n,"hide",typeof i=="boolean"?()=>i:i)});let e=(i,r)=>{typeof r=="string"||fk(r)?n._expressions[i]=this.parseExpressions(n,i,r):r instanceof Fe&&(n._expressions[i]={value$:r.pipe(He(o=>{this.evalExpr(n,i,o),n.options._detectChanges(n)}))})};n.expressions=n.expressions||{};for(let i of Object.keys(n.expressions))qi(n,["expressions",i],({currentValue:r})=>{e(i,fk(r)?(...o)=>r(n,o[3]):r)});n.expressionProperties=n.expressionProperties||{};for(let i of Object.keys(n.expressionProperties))qi(n,["expressionProperties",i],({currentValue:r})=>e(i,r))}postPopulate(n){if(!n.parent&&!n.options.checkExpressions){let e=!1;n.options.checkExpressions=(i,r)=>{if(e)return;e=!0;let o=this.checkExpressions(i,r),a=n.options;a._hiddenFieldsForCheck.sort(s=>s.field.hide?-1:1).forEach(s=>this.changeHideState(s.field,s.field.hide??s.default,!r)),a._hiddenFieldsForCheck=[],o&&this.checkExpressions(n),e=!1}}}parseExpressions(n,e,i){let r;if(n.parent&&["hide","props.disabled"].includes(e)){let a=s=>e==="hide"?s.hide:s.props.disabled;r=()=>{let s=n.parent;for(;s.parent&&!a(s);)s=s.parent;return a(s)}}i=i||(()=>!1),typeof i=="string"&&(i=ste(i,["model","formState","field"]));let o;return{callback:a=>{try{let s=lte(r?(...l)=>r(n)||i(...l):i,{field:n},[n.model,n.options.formState,n,a]);return a||o!==s&&(!Va(s)||zi(s)||JSON.stringify(s)!==JSON.stringify(o))?(o=s,this.evalExpr(n,e,s),!0):!1}catch(s){throw s.message=`[Formly Error] [Expression "${e}"] ${s.message}`,s}}}}checkExpressions(n,e=!1){if(!n)return!1;let i=!1;if(n._expressions)for(let r of Object.keys(n._expressions))n._expressions[r].callback?.(e)&&(i=!0);return n.fieldGroup?.forEach(r=>this.checkExpressions(r,e)&&(i=!0)),i}changeDisabledState(n,e){n.fieldGroup&&n.fieldGroup.filter(i=>!i._expressions.hasOwnProperty("props.disabled")).forEach(i=>this.changeDisabledState(i,e)),pn(n)&&n.props.disabled!==e&&(n.props.disabled=e)}changeHideState(n,e,i){if(n.fieldGroup&&n.fieldGroup.filter(r=>r&&!r._expressions.hide).forEach(r=>this.changeHideState(r,e,i)),n.formControl&&pn(n)){ar(n,"_hide",!!(e||n.hide));let r=n.formControl;r._fields?.length>1&&wg(r),e===!0&&(!r._fields||r._fields.every(o=>!!o._hide))?(cte(n,!0),i&&n.resetOnHide&&(Cg(n,void 0),n.formControl.reset({value:void 0,disabled:n.formControl.disabled}),n.options.fieldChanges.next({value:void 0,field:n,type:"valueChanges"}),n.fieldGroup&&n.formControl instanceof dk&&(n.fieldGroup.length=0))):e===!1&&(n.resetOnHide&&!wx(n.defaultValue)&&wx(_u(n))&&Cg(n,n.defaultValue),C3(n,void 0,!0),n.resetOnHide&&n.fieldArray&&n.fieldGroup?.length!==n.model?.length&&n.options.build(n))}n.options.fieldChanges&&n.options.fieldChanges.next({field:n,type:"hidden",value:e})}evalExpr(n,e,i){if(e.indexOf("model.")===0){let r=e.replace(/^model\./,""),o=n.fieldGroup?n:n.parent,a=n?.key===r?n.formControl:n.form.get(r);!a&&n.get(r)&&(a=n.get(r).formControl),Cg({key:r,parent:o,model:n.model},i),a&&!(yc(a.value)&&yc(i))&&a.value!==i&&a.patchValue(i)}else{try{let r=n,o=this._evalExpressionPath(n,e),a=o.length-1;for(let s=0;sr).forEach(r=>{let o=r.match(/['|"](.*?)['|"]/);o?i.push(o[1]):i.push(...r.split(".").filter(a=>a))}),n._expressions[e]&&(n._expressions[e].paths=i),i}},bk=class{constructor(n){this.config=n,this.formId=0}prePopulate(n){let e=n.parent;this.initRootOptions(n),this.initFieldProps(n),e&&(Object.defineProperty(n,"options",{get:()=>e.options,configurable:!0}),Object.defineProperty(n,"model",{get:()=>pn(n)&&n.fieldGroup?_u(n):e.model,configurable:!0})),Object.defineProperty(n,"get",{value:i=>y3(n,i),configurable:!0}),this.getFieldComponentInstance(n).prePopulate?.(n)}onPopulate(n){this.initFieldOptions(n),this.getFieldComponentInstance(n).onPopulate?.(n),n.fieldGroup&&n.fieldGroup.forEach((e,i)=>{e&&(Object.defineProperty(e,"parent",{get:()=>n,configurable:!0}),Object.defineProperty(e,"index",{get:()=>i,configurable:!0})),this.formId++})}postPopulate(n){this.getFieldComponentInstance(n).postPopulate?.(n)}initFieldProps(n){n.props??=n.templateOptions,Object.defineProperty(n,"templateOptions",{get:()=>n.props,set:e=>n.props=e,configurable:!0})}initRootOptions(n){if(n.parent)return;let e=n.options;n.options.formState=n.options.formState||{},e.showError||(e.showError=this.config.extras.showError),e.fieldChanges||ar(e,"fieldChanges",new z),e._hiddenFieldsForCheck||(e._hiddenFieldsForCheck=[]),e._detectChanges=i=>{i._componentRefs&&gk(i),i.fieldGroup?.forEach(r=>r&&e._detectChanges(r))},e.detectChanges=i=>{i.options.checkExpressions?.(i),e._detectChanges(i)},e.resetModel=i=>{i=xc(i??e._initialModel),n.model&&(Object.keys(n.model).forEach(r=>delete n.model[r]),Object.assign(n.model,i||{})),x3()||qi(e,["parentForm","submitted"]).setValue(!1,!1),e.build(n),n.form.reset(n.model)},e.updateInitialValue=i=>e._initialModel=xc(i??n.model),n.options.updateInitialValue()}initFieldOptions(n){kh(n,{id:tte(`formly_${this.formId}`,n,n.index),hooks:{},modelOptions:{},validation:{messages:{}},props:!n.type||!pn(n)?{}:{label:"",placeholder:"",disabled:!1}}),this.config.extras.resetFieldOnHide&&n.resetOnHide!==!1&&(n.resetOnHide=!0),n.type!=="formly-template"&&(n.template||n.expressions?.template||n.expressionProperties?.template)&&(n.type="formly-template"),!n.type&&n.fieldGroup&&(n.type="formly-group"),n.type&&this.config.getMergedField(n),pn(n)&&!wx(n.defaultValue)&&wx(_u(n))&&!ate(n)&&Cg(n,n.defaultValue),n.wrappers=n.wrappers||[]}getFieldComponentInstance(n){let e=()=>{let i=this.config.resolveFieldTypeRef(n),r=n._componentRefs?.slice(-1)[0];return r instanceof Fd&&r?.componentType===i?.componentType&&(i=r),i?.instance};return n._proxyInstance||ar(n,"_proxyInstance",new Proxy({},{get:(i,r)=>e()?.[r],set:(i,r,o)=>e()[r]=o})),n._proxyInstance}},vk=class{prePopulate(n){this.root||(this.root=n),n.parent&&Object.defineProperty(n,"form",{get:()=>n.parent.formControl,configurable:!0})}onPopulate(n){n.hasOwnProperty("fieldGroup")&&!pn(n)?ar(n,"formControl",n.form):this.addFormControl(n)}postPopulate(n){if(this.root!==n)return;if(this.root=null,this.setValidators(n)&&n.parent){let i=n.parent;for(;i;)(pn(i)||!i.parent)&&wg(i.formControl,!0),i=i.parent}}addFormControl(n){let e=dte(n);if(!n.fieldArray){if(e){if(e instanceof ia){let i=pn(n)?_u(n):n.defaultValue;e.defaultValue=i}}else{let i={updateOn:n.modelOptions.updateOn};if(n.fieldGroup)e=new bx({},i);else{let r=pn(n)?_u(n):n.defaultValue;e=new qB({value:r,disabled:!!n.props.disabled},Ee(k({},i),{initialValueIsDefault:!0}))}}C3(n,e)}}setValidators(n,e=!1){e===!1&&pn(n)&&n.props?.disabled&&(e=!0);let i=!1;if(n.fieldGroup?.forEach(r=>r&&this.setValidators(r,e)&&(i=!0)),pn(n)||!n.parent||!pn(n)&&!n.fieldGroup){let{formControl:r}=n;if(r&&(pn(n)&&r instanceof ia&&(e&&r.enabled&&(r.disable({emitEvent:!1,onlySelf:!0}),i=!0),!e&&r.disabled&&(r.enable({emitEvent:!1,onlySelf:!0}),i=!0)),r.validator===null&&this.hasValidators(n,"_validators")&&(r.setValidators(()=>{let o=Le.compose(this.mergeValidators(n,"_validators"));return o?o(r):null}),i=!0),r.asyncValidator===null&&this.hasValidators(n,"_asyncValidators")&&(r.setAsyncValidators(()=>{let o=Le.composeAsync(this.mergeValidators(n,"_asyncValidators"));return o?o(r):Q(null)}),i=!0),i)){wg(r,!0);let o=r.parent;for(let a=1;a1&&i._fields.some(r=>r[e].length>0)||n[e].length>0?!0:n.fieldGroup?.some(r=>r?.fieldGroup&&!pn(r)&&this.hasValidators(r,e))}mergeValidators(n,e){let i=[],r=n.formControl;return r?._fields?.length>1?r._fields.filter(o=>!o._hide).forEach(o=>i.push(...o[e])):n[e]&&i.push(...n[e]),n.fieldGroup&&n.fieldGroup.filter(o=>o?.fieldGroup&&!pn(o)).forEach(o=>i.push(...this.mergeValidators(o,e))),i}},yk=class{constructor(n){this.config=n}onPopulate(n){this.initFieldValidation(n,"validators"),this.initFieldValidation(n,"asyncValidators")}initFieldValidation(n,e){let i=[];if(e==="validators"&&!(n.hasOwnProperty("fieldGroup")&&!pn(n))&&i.push(this.getPredefinedFieldValidation(n)),n[e])for(let r of Object.keys(n[e]))r==="validation"?i.push(...n[e].validation.map(o=>this.wrapNgValidatorFn(n,o))):i.push(this.wrapNgValidatorFn(n,n[e][r],r));ar(n,"_"+e,i)}getPredefinedFieldValidation(n){let e=[];return xk.forEach(i=>qi(n,["props",i],({currentValue:r,firstChange:o})=>{e=e.filter(a=>a!==i),i==="required"&&r!=null&&typeof r!="boolean"&&console.warn(`Formly: Invalid prop 'required' of type '${typeof r}', expected 'boolean' (Field:${n.key}).`),r!=null&&r!==!1&&e.push(i),!o&&n.formControl&&wg(n.formControl)})),i=>e.length===0?null:Le.compose(e.map(r=>()=>{let o=n.props[r];switch(r){case"required":return Le.required(i);case"pattern":return Le.pattern(o)(i);case"minLength":let a=Le.minLength(o)(i),s=this.config.getValidatorMessage("minlength")||n.validation?.messages?.minlength?"minlength":"minLength";return a?{[s]:a.minlength}:null;case"maxLength":let l=Le.maxLength(o)(i),c=this.config.getValidatorMessage("maxlength")||n.validation?.messages?.maxlength?"maxlength":"maxLength";return l?{[c]:l.maxlength}:null;case"min":return Le.min(o)(i);case"max":return Le.max(o)(i);default:return null}}))(i)}wrapNgValidatorFn(n,e,i){let r;if(typeof e=="string"&&(r=xc(this.config.getValidator(e))),typeof e=="object"&&e.name&&(r=xc(this.config.getValidator(e.name)),e.options&&(r.options=e.options)),typeof e=="object"&&e.expression){let o=e,{expression:a}=o,s=od(o,["expression"]);r={name:i,validation:a,options:Object.keys(s).length>0?s:null}}return typeof e=="function"&&(r={name:i,validation:e}),a=>{let s=r.validation(a,n,r.options);return ote(s)?s.then(l=>this.handleResult(n,i?!!l:l,r)):zi(s)?s.pipe(se(l=>this.handleResult(n,i?!!l:l,r))):this.handleResult(n,i?!!s:s,r)}}handleResult(n,e,{name:i,options:r}){typeof e=="boolean"&&(e=e?null:{[i]:r||!0});let o=n.formControl;return o?._childrenErrors?.[i]?.(),Va(e)&&Object.keys(e).forEach(a=>{let s=e[a].errorPath?e[a].errorPath:r?.errorPath,l=s?n.formControl.get(s):null;if(l){let c=e[a],{errorPath:d}=c,p=od(c,["errorPath"]);l.setErrors(Ee(k({},l.errors||{}),{[a]:p})),!o._childrenErrors&&ar(o,"_childrenErrors",{}),o._childrenErrors[a]=()=>{let y=l.errors||{},{[a]:_}=y,b=od(y,[vA(a)]);l.setErrors(Object.keys(b).length===0?null:b)}}}),e}},Eg=(()=>{let n=class n{constructor(){this.field={}}set _formlyControls(i){let r=this.field;r._localFields=i.map(o=>o.control._fields||[]).flat().filter(o=>o.formControl!==this.field.formControl)}get model(){return this.field.model}get form(){return this.field.form}get options(){return this.field.options}get key(){return this.field.key}get formControl(){return this.field.formControl}get props(){return this.field.props||{}}get to(){return this.props}get showError(){return this.options.showError(this)}get id(){return this.field.id}get formState(){return this.options?.formState||{}}};n.\u0275fac=function(r){return new(r||n)},n.\u0275dir=P({type:n,viewQuery:function(r,o){if(r&1&&ie(Un,5),r&2){let a;j(a=H())&&(o._formlyControls=a)}},inputs:{field:"field"},standalone:!1});let t=n;return t})(),ute=(()=>{let n=class n extends Eg{get template(){return this.field&&this.field.template!==this.innerHtml.template&&(this.innerHtml={template:this.field.template,content:this.props.safeHtml?this.sanitizer.bypassSecurityTrustHtml(this.field.template):this.field.template}),this.innerHtml.content}constructor(i){super(),this.sanitizer=i,this.innerHtml={}}};n.\u0275fac=function(r){return new(r||n)(be(Sf))},n.\u0275cmp=E({type:n,selectors:[["formly-template"]],standalone:!1,features:[le],decls:1,vars:1,consts:[[3,"innerHtml"]],template:function(r,o){r&1&&M(0,"div",0),r&2&&v("innerHtml",o.template,rf)},encapsulation:2,changeDetection:0});let t=n;return t})(),Ck=(()=>{let n=class n{constructor(){this.types={},this.validators={},this.wrappers={},this.messages={},this.extras={checkExpressionOn:"modelChange",lazyRender:!0,resetFieldOnHide:!0,renderFormlyFieldElement:!0,showError(i){return i.formControl?.invalid&&(i.formControl?.touched||i.options.parentForm?.submitted||!!i.field.validation?.show)}},this.extensions={},this.presets={},this.extensionsByPriority={},this.componentRefs={}}addConfig(i){if(Array.isArray(i)){i.forEach(r=>this.addConfig(r));return}i.types&&i.types.forEach(r=>this.setType(r)),i.validators&&i.validators.forEach(r=>this.setValidator(r)),i.wrappers&&i.wrappers.forEach(r=>this.setWrapper(r)),i.validationMessages&&i.validationMessages.forEach(r=>this.addValidatorMessage(r.name,r.message)),i.extensions&&this.setSortedExtensions(i.extensions),i.extras&&(this.extras=k(k({},this.extras),i.extras)),i.presets&&(this.presets=k(k({},this.presets),i.presets.reduce((r,o)=>Ee(k({},r),{[o.name]:o.config}),{})))}setType(i){Array.isArray(i)?i.forEach(r=>this.setType(r)):(this.types[i.name]||(this.types[i.name]={name:i.name}),["component","extends","defaultOptions","wrappers"].forEach(r=>{i.hasOwnProperty(r)&&(this.types[i.name][r]=i[r])}))}getType(i,r=!1){if(i instanceof Pd)return{component:i,name:i.prototype.constructor.name};if(!this.types[i]){if(r)throw new Error(`[Formly Error] The type "${i}" could not be found. Please make sure that is registered through the FormlyModule declaration.`);return null}return this.mergeExtendedType(i),this.types[i]}getMergedField(i={}){let r=this.getType(i.type);if(!r)return;r.defaultOptions&&kh(i,r.defaultOptions);let o=r.extends&&this.getType(r.extends).defaultOptions;o&&kh(i,o),i?.optionsTypes&&i.optionsTypes.forEach(s=>{let l=this.getType(s).defaultOptions;l&&kh(i,l)});let a=this.resolveFieldTypeRef(i);a?.instance?.defaultOptions&&kh(i,a.instance.defaultOptions),!i.wrappers&&r.wrappers&&(i.wrappers=[...r.wrappers])}resolveFieldTypeRef(i={}){let r=this.getType(i.type);if(!r||!r.component)return null;if(!this.componentRefs[r.name]){let{_viewContainerRef:o,_injector:a}=i.options;if(!o||!a)return null;let s=o.createComponent(r.component,{injector:a});this.componentRefs[r.name]=s;try{s.destroy()}catch(l){console.error(`An error occurred while destroying the Formly component type "${i.type}"`,l)}}return this.componentRefs[r.name]}clearRefs(){this.componentRefs={}}setWrapper(i){this.wrappers[i.name]=i,i.types&&i.types.forEach(r=>{this.setTypeWrapper(r,i.name)})}getWrapper(i){if(i instanceof Pd)return{component:i,name:i.prototype.constructor.name};if(!this.wrappers[i])throw new Error(`[Formly Error] The wrapper "${i}" could not be found. Please make sure that is registered through the FormlyModule declaration.`);return this.wrappers[i]}setTypeWrapper(i,r){this.types[i]||(this.types[i]={}),this.types[i].wrappers||(this.types[i].wrappers=[]),this.types[i].wrappers.indexOf(r)===-1&&this.types[i].wrappers.push(r)}setValidator(i){this.validators[i.name]=i}getValidator(i){if(!this.validators[i])throw new Error(`[Formly Error] The validator "${i}" could not be found. Please make sure that is registered through the FormlyModule declaration.`);return this.validators[i]}addValidatorMessage(i,r){this.messages[i]=r}getValidatorMessage(i){return this.messages[i]}setSortedExtensions(i){i.forEach(r=>{let o=r.priority??1;this.extensionsByPriority[o]=Ee(k({},this.extensionsByPriority[o]),{[r.name]:r.extension})}),this.extensions=Object.keys(this.extensionsByPriority).map(Number).sort((r,o)=>r-o).reduce((r,o)=>k(k({},r),this.extensionsByPriority[o]),{})}mergeExtendedType(i){if(!this.types[i].extends)return;let r=this.getType(this.types[i].extends);this.types[i].component||(this.types[i].component=r.component),this.types[i].wrappers||(this.types[i].wrappers=r.wrappers)}};n.\u0275fac=function(r){return new(r||n)},n.\u0275prov=R({token:n,factory:n.\u0275fac,providedIn:"root"});let t=n;return t})();var mte=(()=>{let n=class n{};n.\u0275fac=function(r){return new(r||n)},n.\u0275prov=R({token:n,factory:n.\u0275fac});let t=n;return t})(),hte=(()=>{let n=class n{get containerRef(){return this.config.extras.renderFormlyFieldElement?this.viewContainerRef:this.hostContainerRef}get elementRef(){return this.config.extras.renderFormlyFieldElement?this._elementRef:this.componentRefs?.[0]instanceof Fd?this.componentRefs[0].location:null}constructor(i,r,o,a,s){this.config=i,this.renderer=r,this._elementRef=o,this.hostContainerRef=a,this.form=s,this.hostObservers=[],this.componentRefs=[],this.hooksObservers=[],this.detectFieldBuild=!1,this.valueChangesUnsubscribe=()=>{}}ngAfterContentInit(){this.triggerHook("afterContentInit")}ngAfterViewInit(){this.triggerHook("afterViewInit")}ngDoCheck(){this.detectFieldBuild&&this.field&&this.field.options&&this.render()}ngOnInit(){this.triggerHook("onInit")}ngOnChanges(i){this.triggerHook("onChanges",i)}ngOnDestroy(){this.resetRefs(this.field),this.hostObservers.forEach(i=>i.unsubscribe()),this.hooksObservers.forEach(i=>i()),this.valueChangesUnsubscribe(),this.triggerHook("onDestroy")}renderField(i,r,o=[]){if(this.containerRef===i&&(this.resetRefs(this.field),this.containerRef.clear(),o=this.field?.wrappers),o?.length>0){let[a,...s]=o,{component:l}=this.config.getWrapper(a),c=i.createComponent(l);this.attachComponentRef(c,r),qi(c.instance,["fieldComponent"],({currentValue:d,previousValue:p,firstChange:_})=>{if(d){if(p&&p._lContainer===d._lContainer)return;let b=p?p.detach():null;b&&!b.destroyed?d.insert(b):this.renderField(d,r,s),!_&&c.changeDetectorRef.detectChanges()}})}else if(r?.type){let a=this.form?.templates?.find(l=>l.name===r.type),s;if(a)s=i.createEmbeddedView(a.ref,{$implicit:r});else{let{component:l}=this.config.getType(r.type,!0);s=i.createComponent(l)}this.attachComponentRef(s,r)}}triggerHook(i,r){if((i==="onInit"||i==="onChanges"&&r.field&&!r.field.firstChange)&&(this.valueChangesUnsubscribe(),this.valueChangesUnsubscribe=this.fieldChanges(this.field)),this.field?.hooks?.[i]&&(!r||r.field)){let o=this.field.hooks[i](this.field);if(zi(o)&&["onInit","afterContentInit","afterViewInit"].indexOf(i)!==-1){let a=o.subscribe();this.hooksObservers.push(()=>a.unsubscribe())}}i==="onChanges"&&r.field&&(this.resetRefs(r.field.previousValue),this.render())}attachComponentRef(i,r){this.componentRefs.push(i),r._componentRefs.push(i),i instanceof Fd&&Object.assign(i.instance,{field:r})}render(){if(this.field){if(!this.field.options){this.detectFieldBuild=!0;return}if(this.detectFieldBuild=!1,this.hostObservers.forEach(i=>i.unsubscribe()),this.hostObservers=[qi(this.field,["hide"],({firstChange:i,currentValue:r})=>{let o=this.containerRef;this.config.extras.lazyRender===!1?(i&&this.renderField(o,this.field),(!i||i&&r)&&this.elementRef&&this.renderer.setStyle(this.elementRef.nativeElement,"display",r?"none":"")):r?(o.clear(),this.field.className&&this.renderer.removeAttribute(this.elementRef.nativeElement,"class")):(this.renderField(o,this.field),this.field.className&&this.renderer.setAttribute(this.elementRef.nativeElement,"class",this.field.className)),!i&&this.field.options.detectChanges(this.field)}),qi(this.field,["className"],({firstChange:i,currentValue:r})=>{(!i||i&&r)&&(!this.config.extras.lazyRender||this.field.hide!==!0)&&this.elementRef&&this.renderer.setAttribute(this.elementRef.nativeElement,"class",r)})],!x3())["touched","pristine","status"].forEach(i=>this.hostObservers.push(qi(this.field,["formControl",i],({firstChange:r})=>!r&&gk(this.field))));else if(this.field.formControl){let i=this.field.formControl.events.subscribe(()=>gk(this.field));this.hostObservers.push(i)}}}resetRefs(i){i&&(i._localFields?i._localFields=[]:ar(this.field,"_localFields",[]),i._componentRefs?i._componentRefs=i._componentRefs.filter(r=>this.componentRefs.indexOf(r)===-1):ar(this.field,"_componentRefs",[])),this.componentRefs=[]}fieldChanges(i){if(!i)return()=>{};let r=v3(i,["props"],()=>i.options.detectChanges(i)),o=[()=>{r()}];for(let s of Object.keys(i._expressions||{})){let l=qi(i,["_expressions",s],({currentValue:c,previousValue:d})=>{d?.subscription&&(d.subscription.unsubscribe(),d.subscription=null),zi(c.value$)&&(c.subscription=c.value$.subscribe())});o.push(()=>{i._expressions[s]?.subscription&&i._expressions[s].subscription.unsubscribe(),l.unsubscribe()})}for(let s of[["focus"],["template"],["fieldGroupClassName"],["validation","show"]]){let l=qi(i,s,({firstChange:c})=>!c&&i.options.detectChanges(i));o.push(()=>l.unsubscribe())}if(i.formControl&&!i.fieldGroup){let s=i.formControl,l=s.valueChanges.pipe(se(_=>(i.parsers?.map(b=>_=b(_,i)),Object.is(_,i.formControl.value)||i.formControl.setValue(_),_)),_n((_,b)=>!(_!==b||Array.isArray(_)||Va(_))));s.value!==_u(i)&&(l=l.pipe(Ue(s.value)));let{updateOn:c,debounce:d}=i.modelOptions;(!c||c==="change")&&d?.default>0&&(l=l.pipe(St(d.default)));let p=l.subscribe(_=>{s._fields?.length>1&&s instanceof ia&&s.patchValue(_,{emitEvent:!1,onlySelf:!0}),pn(i)&&Cg(i,_),i.options.fieldChanges.next({value:_,field:i,type:"valueChanges"})});o.push(()=>p.unsubscribe())}let a=[];return qi(i,["_localFields"],({currentValue:s})=>{a.forEach(l=>l()),a=(s||[]).map(l=>this.fieldChanges(l))}),()=>{o.forEach(s=>s()),a.forEach(s=>s())}}};n.\u0275fac=function(r){return new(r||n)(be(Ck),be(ze),be(Y),be(ot),be(mte,8))},n.\u0275cmp=E({type:n,selectors:[["formly-field"]],viewQuery:function(r,o){if(r&1&&ie(Kee,7,ot),r&2){let a;j(a=H())&&(o.viewContainerRef=a.first)}},inputs:{field:"field"},features:[Ae],decls:2,vars:0,consts:[["container",""]],template:function(r,o){r&1&&wa(0,Zee,0,0,"ng-template",null,0,vi)},styles:["[_nghost-%COMP%]:empty{display:none}"]});let t=n;return t})(),pte=(()=>{let n=class n extends hte{};n.\u0275fac=(()=>{let i;return function(o){return(i||(i=ge(n)))(o||n)}})(),n.\u0275cmp=E({type:n,selectors:[["formly-field"]],standalone:!1,features:[le],decls:2,vars:0,consts:[["container",""]],template:function(r,o){r&1&&A(0,Xee,0,0,"ng-template",null,0,vi)},styles:["[_nghost-%COMP%]:empty{display:none}"]});let t=n;return t})(),fte=(()=>{let n=class n extends Eg{};n.\u0275fac=(()=>{let i;return function(o){return(i||(i=ge(n)))(o||n)}})(),n.\u0275cmp=E({type:n,selectors:[["formly-group"]],hostVars:2,hostBindings:function(r,o){r&2&&nt(o.field.fieldGroupClassName||"")},standalone:!1,features:[le],ngContentSelectors:Jee,decls:3,vars:0,consts:[[3,"field"]],template:function(r,o){r&1&&(Se(),xt(0,ete,1,1,"formly-field",0,Ui),ne(2)),r&2&&Ct(o.field.fieldGroup)},dependencies:[pte],encapsulation:2,changeDetection:0});let t=n;return t})(),Dg=new O("FORMLY_CONFIG");function gte(t){return{types:[{name:"formly-group",component:fte},{name:"formly-template",component:ute}],extensions:[{name:"core",extension:new bk(t),priority:-250},{name:"field-validation",extension:new yk(t),priority:-200},{name:"field-form",extension:new vk,priority:-150},{name:"field-expression",extension:new _k,priority:-100}]}}var w3=(t=[])=>[{provide:Dg,multi:!0,useFactory:gte,deps:[Ck]},_te(t)],_te=(t=[])=>({provide:Dg,multi:!0,useFactory:()=>{let n=u(Dg,{skipSelf:!0,optional:!0});return n?(n.push(t),n):t}});var bte=(()=>{let n=class n{get props(){return this.field.props||{}}get fieldAttrElements(){return this.field?._elementRefs||[]}constructor(i,r,o){this.renderer=i,this.elementRef=r,this.uiAttributesCache={},this.uiEvents={listeners:[],events:["click","keyup","keydown","keypress","focus","blur","change","wheel"],callback:(a,s)=>{switch(a){case"focus":return this.onFocus(s);case"blur":return this.onBlur(s);case"change":return this.onChange(s);default:return this.props[a](this.field,s)}}},this.document=o}ngOnChanges(i){i.field&&(this.field.name&&this.setAttribute("name",this.field.name),this.uiEvents.listeners.forEach(r=>r()),this.uiEvents.events.forEach(r=>{(this.props?.[r]||["focus","blur","change"].indexOf(r)!==-1)&&this.uiEvents.listeners.push(this.renderer.listen(this.elementRef.nativeElement,r,o=>this.uiEvents.callback(r,o)))}),this.props?.attributes&&qi(this.field,["props","attributes"],({currentValue:r,previousValue:o})=>{o&&Object.keys(o).forEach(a=>this.removeAttribute(a)),r&&Object.keys(r).forEach(a=>{r[a]!=null&&this.setAttribute(a,r[a])})}),this.detachElementRef(i.field.previousValue),this.attachElementRef(i.field.currentValue),this.fieldAttrElements.length===1&&(!this.id&&this.field.id&&this.setAttribute("id",this.field.id),this.focusObserver=qi(this.field,["focus"],({currentValue:r})=>{this.toggleFocus(r)}))),i.id&&this.setAttribute("id",this.id)}ngDoCheck(){if(!this.uiAttributes){let i=this.elementRef.nativeElement;this.uiAttributes=[...xk,"tabindex","placeholder","readonly","disabled","step"].filter(r=>!i.hasAttribute||!i.hasAttribute(r))}for(let i=0;ii()),this.detachElementRef(this.field),this.focusObserver?.unsubscribe()}toggleFocus(i){let r=this.fieldAttrElements?this.fieldAttrElements[0]:null;if(!r||!r.nativeElement.focus)return;let o=!!this.document.activeElement&&this.fieldAttrElements.some(({nativeElement:a})=>this.document.activeElement===a||a.contains(this.document.activeElement));i&&!o?Promise.resolve().then(()=>r.nativeElement.focus()):!i&&o&&Promise.resolve().then(()=>r.nativeElement.blur())}onFocus(i){this.focusObserver?.setValue(!0),this.props.focus?.(this.field,i)}onBlur(i){this.focusObserver?.setValue(!1),this.props.blur?.(this.field,i)}onHostChange(i){i instanceof Event||this.onChange(i)}onChange(i){this.props.change?.(this.field,i),this.field.formControl?.markAsDirty()}attachElementRef(i){i&&(i._elementRefs?.indexOf(this.elementRef)===-1?i._elementRefs.push(this.elementRef):ar(i,"_elementRefs",[this.elementRef]))}detachElementRef(i){let r=i?._elementRefs?this.fieldAttrElements.indexOf(this.elementRef):-1;r!==-1&&i._elementRefs.splice(r,1)}setAttribute(i,r){this.renderer.setAttribute(this.elementRef.nativeElement,i,r)}removeAttribute(i){this.renderer.removeAttribute(this.elementRef.nativeElement,i)}};n.\u0275fac=function(r){return new(r||n)(be(ze),be(Y),be(_e))},n.\u0275dir=P({type:n,selectors:[["","formlyAttributes",""]],hostBindings:function(r,o){r&1&&S("change",function(s){return o.onHostChange(s)})},inputs:{field:[0,"formlyAttributes","field"],id:"id"},features:[Ae]});let t=n;return t})(),ra=(()=>{let n=class n extends bte{};n.\u0275fac=(()=>{let i;return function(o){return(i||(i=ge(n)))(o||n)}})(),n.\u0275dir=P({type:n,selectors:[["","formlyAttributes",""]],hostBindings:function(r,o){r&1&&S("change",function(s){return o.onHostChange(s)})},standalone:!1,features:[le]});let t=n;return t})(),vte=(()=>{let n=class n{constructor(i){this.config=i}ngOnChanges(){let i=xk.map(r=>`templateOptions.${r}`);this.errorMessage$=Je(this.field.formControl.statusChanges,this.field.options?this.field.options.fieldChanges.pipe(ce(({field:r,type:o,property:a})=>r===this.field&&o==="expressionChanges"&&(a.indexOf("validation")!==-1||i.indexOf(a)!==-1))):Q(null)).pipe(Ue(null),je(()=>zi(this.errorMessage)?this.errorMessage:Q(this.errorMessage)))}get errorMessage(){let i=this.field.formControl;for(let r in i.errors)if(i.errors.hasOwnProperty(r)){let o=this.config.getValidatorMessage(r);if(Va(i.errors[r])){if(i.errors[r].errorPath)return;i.errors[r].message&&(o=i.errors[r].message)}return this.field.validation?.messages?.[r]&&(o=this.field.validation.messages[r]),this.field.validators?.[r]?.message&&(o=this.field.validators[r].message),this.field.asyncValidators?.[r]?.message&&(o=this.field.asyncValidators[r].message),typeof o=="function"?o(i.errors[r],this.field):o}}};n.\u0275fac=function(r){return new(r||n)(be(Ck))},n.\u0275cmp=E({type:n,selectors:[["formly-validation-message"]],inputs:{field:"field"},features:[Ae],decls:2,vars:3,template:function(r,o){r&1&&(g(0),ue(1,"async")),r&2&&N(Oe(1,1,o.errorMessage$))},dependencies:[sn],encapsulation:2,changeDetection:0});let t=n;return t})(),D3=(()=>{let n=class n extends vte{};n.\u0275fac=(()=>{let i;return function(o){return(i||(i=ge(n)))(o||n)}})(),n.\u0275cmp=E({type:n,selectors:[["formly-validation-message"]],standalone:!1,features:[le],decls:2,vars:3,template:function(r,o){r&1&&(g(0),ue(1,"async")),r&2&&N(Oe(1,1,o.errorMessage$))},dependencies:[sn],encapsulation:2,changeDetection:0});let t=n;return t})();var Mg=(()=>{let n=class n extends Eg{set _formlyControls(i){}set _staticContent(i){this.fieldComponent=i}};n.\u0275fac=(()=>{let i;return function(o){return(i||(i=ge(n)))(o||n)}})(),n.\u0275dir=P({type:n,viewQuery:function(r,o){if(r&1&&(ie(b3,5,ot),ie(b3,7,ot)),r&2){let a;j(a=H())&&(o.fieldComponent=a.first),j(a=H())&&(o._staticContent=a.first)}},standalone:!1,features:[le]});let t=n;return t})();var Sg=t=>({field:t}),M3=t=>({content:t});function yte(t,n){t&1&&(m(0,"span",9),g(1,"*"),h())}function xte(t,n){if(t&1&&(m(0,"mat-label"),g(1),V(2,yte,2,0,"span",9),h()),t&2){let e=x();f(),pe(" ",e.props.label," "),f(),B(e.props.required&&e.props.hideRequiredMarker!==!0?2:-1)}}function Cte(t,n){if(t&1&&Ge(0,3),t&2){let e=x();v("ngTemplateOutlet",e.props.textPrefix)("ngTemplateOutletContext",Nt(2,Sg,e.field))}}function wte(t,n){if(t&1&&Ge(0,4),t&2){let e=x();v("ngTemplateOutlet",e.props.prefix)("ngTemplateOutletContext",Nt(2,Sg,e.field))}}function Dte(t,n){if(t&1&&Ge(0,5),t&2){let e=x();v("ngTemplateOutlet",e.props.textSuffix)("ngTemplateOutletContext",Nt(2,Sg,e.field))}}function Ete(t,n){if(t&1&&Ge(0,6),t&2){let e=x();v("ngTemplateOutlet",e.props.suffix)("ngTemplateOutletContext",Nt(2,Sg,e.field))}}function Mte(t,n){if(t&1&&(m(0,"mat-hint"),Ge(1,10),h()),t&2){x();let e=Me(13);f(),v("ngTemplateOutlet",e)("ngTemplateOutletContext",Nt(2,M3,n))}}function Ste(t,n){if(t&1&&(m(0,"mat-hint",8),Ge(1,10),h()),t&2){x();let e=Me(13);f(),v("ngTemplateOutlet",e)("ngTemplateOutletContext",Nt(2,M3,n))}}function kte(t,n){if(t&1&&(kt(0),g(1),Dt()),t&2){let e=x().content;f(),N(e)}}function Tte(t,n){if(t&1&&Ge(0,10),t&2){let e=x().content,i=x();v("ngTemplateOutlet",e)("ngTemplateOutletContext",Nt(2,Sg,i.field))}}function Ite(t,n){if(t&1&&V(0,kte,2,1,"ng-container")(1,Tte,1,4,"ng-container",10),t&2){let e=n.content;B(e.createEmbeddedView?1:0)}}var Ate=["matPrefix"],Ote=["matTextPrefix"],Rte=["matSuffix"],Pte=["matTextSuffix"],Fte=(()=>{let n=class n extends Mg{constructor(i,r,o){super(),this.renderer=i,this.elementRef=r,this.focusMonitor=o}ngOnInit(){ar(this.field,"_formField",this.formField),this.focusMonitor.monitor(this.elementRef,!0).subscribe(i=>{!i&&this.field.focus&&(this.field.focus=!1)})}ngAfterViewInit(){if(this.formField.appearance!=="outline"&&this.props.hideFieldUnderline===!0){let i=this.formField._elementRef.nativeElement.querySelector(".mat-form-field-underline");i&&this.renderer.removeChild(i.parentNode,i)}}ngOnDestroy(){delete this.field._formField,this.focusMonitor.stopMonitoring(this.elementRef)}};n.\u0275fac=function(r){return new(r||n)(be(ze),be(Y),be(ti))},n.\u0275cmp=E({type:n,selectors:[["formly-wrapper-mat-form-field"]],viewQuery:function(r,o){if(r&1&&ie(Ci,7),r&2){let a;j(a=H())&&(o.formField=a.first)}},standalone:!1,features:[le],decls:14,vars:13,consts:[["fieldComponent",""],["stringOrTemplate",""],[3,"hideRequiredMarker","floatLabel","appearance","subscriptSizing","color"],["matTextPrefix","",3,"ngTemplateOutlet","ngTemplateOutletContext"],["matPrefix","",3,"ngTemplateOutlet","ngTemplateOutletContext"],["matTextSuffix","",3,"ngTemplateOutlet","ngTemplateOutletContext"],["matSuffix","",3,"ngTemplateOutlet","ngTemplateOutletContext"],[3,"field"],["align","end"],["aria-hidden","true",1,"mat-form-field-required-marker","mat-mdc-form-field-required-marker"],[3,"ngTemplateOutlet","ngTemplateOutletContext"]],template:function(r,o){if(r&1&&(m(0,"mat-form-field",2),Ge(1,null,0),V(3,xte,3,2,"mat-label"),V(4,Cte,1,4,"ng-container",3),V(5,wte,1,4,"ng-container",4),V(6,Dte,1,4,"ng-container",5),V(7,Ete,1,4,"ng-container",6),m(8,"mat-error"),M(9,"formly-validation-message",7),h(),V(10,Mte,2,4,"mat-hint"),V(11,Ste,2,4,"mat-hint",8),h(),A(12,Ite,2,1,"ng-template",null,1,vi)),r&2){let a,s;v("hideRequiredMarker",!0)("floatLabel",o.props.floatLabel)("appearance",o.props.appearance)("subscriptSizing",o.props.subscriptSizing)("color",o.props.color??"primary"),f(3),B(o.props.label&&o.props.hideLabel!==!0?3:-1),f(),B(o.props.textPrefix?4:-1),f(),B(o.props.prefix?5:-1),f(),B(o.props.textSuffix?6:-1),f(),B(o.props.suffix?7:-1),f(2),v("field",o.field),f(),B((a=o.props.description||o.props.hintStart)?10:-1,a),f(),B((s=o.props.hintEnd)?11:-1,s)}},dependencies:[Ln,Ci,Gi,og,So,cu,hl,D3],styles:[`formly-wrapper-mat-form-field .mat-mdc-form-field,formly-wrapper-mat-form-field .mat-form-field{width:100%} +`],encapsulation:2});let t=n;return t})();function S3(){return{wrappers:[{name:"form-field",component:Fte}]}}var oo=(()=>{let n=class n extends Eg{constructor(){super(...arguments),this.errorStateMatcher={isErrorState:()=>this.field&&this.showError},this.stateChanges=new z,this._errorState=!1,this._focused=!1}set matPrefix(i){i&&(this.props.prefix=i)}set matTextPrefix(i){i&&(this.props.textPrefix=i)}set matSuffix(i){i&&(this.props.suffix=i)}set matTextSuffix(i){i&&(this.props.textSuffix=i)}set _controls(i){this.attachControl(i.length===1?i.first:this)}ngOnDestroy(){delete this.formField?._control,this.stateChanges.complete()}setDescribedByIds(i){}onContainerClick(i){this.field.focus=!0,this.stateChanges.next()}get errorState(){let i=this.options.showError(this);return i!==this._errorState&&(this._errorState=i,this.stateChanges.next()),i}get controlType(){if(this.props.type)return this.props.type;let i=this.field.type;return i instanceof Pd?i.prototype.constructor.name:i}get focused(){let i=!!this.field.focus&&!this.disabled;return i!==this._focused&&(this._focused=i,this.stateChanges.next()),i}get disabled(){return!!this.props.disabled}get required(){return!!this.props.required}get placeholder(){return this.props.placeholder||""}get shouldPlaceholderFloat(){return this.shouldLabelFloat}get value(){return this.formControl?.value}set value(i){this.formControl?.patchValue(i)}get ngControl(){return this.formControl}get empty(){return this.value==null||this.value===""}get shouldLabelFloat(){return this.focused||!this.empty}get formField(){return this.field?._formField}attachControl(i){if(this.formField&&i!==this.formField._control){this.formField._control=i;let r=i?.ngControl;r?.valueAccessor?.hasOwnProperty("_formField")&&(r.valueAccessor._formField=this.formField),r?.valueAccessor?.hasOwnProperty("_parentFormField")&&(r.valueAccessor._parentFormField=this.formField),["prefix","suffix","textPrefix","textSuffix"].forEach(a=>qi(this.field,["props",a],({currentValue:s})=>s&&Promise.resolve().then(()=>{this.options.detectChanges(this.field)})));let o=i.setDescribedByIds.bind(i);i.setDescribedByIds=a=>{setTimeout(()=>o(a))}}}};n.\u0275fac=(()=>{let i;return function(o){return(i||(i=ge(n)))(o||n)}})(),n.\u0275dir=P({type:n,viewQuery:function(r,o){if(r&1&&(ie(Ate,5),ie(Ote,5),ie(Rte,5),ie(Pte,5),ie(Pa,5)),r&2){let a;j(a=H())&&(o.matPrefix=a.first),j(a=H())&&(o.matTextPrefix=a.first),j(a=H())&&(o.matSuffix=a.first),j(a=H())&&(o.matTextSuffix=a.first),j(a=H())&&(o._controls=a)}},standalone:!1,features:[le]});let t=n;return t})();var k3=(()=>{class t{static \u0275fac=function(i){return new(i||t)};static \u0275cmp=E({type:t,selectors:[["ng-component"]],hostAttrs:["cdk-text-field-style-loader",""],decls:0,vars:0,template:function(i,r){},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 t})(),Nte={passive:!0},T3=(()=>{class t{_platform=u(qe);_ngZone=u(ae);_renderer=u(mn).createRenderer(null,null);_styleLoader=u(ht);_monitoredElements=new Map;constructor(){}monitor(e){if(!this._platform.isBrowser)return Vi;this._styleLoader.load(k3);let i=jr(e),r=this._monitoredElements.get(i);if(r)return r.subject;let o=new z,a="cdk-text-field-autofilled",s=c=>{c.animationName==="cdk-text-field-autofill-start"&&!i.classList.contains(a)?(i.classList.add(a),this._ngZone.run(()=>o.next({target:c.target,isAutofilled:!0}))):c.animationName==="cdk-text-field-autofill-end"&&i.classList.contains(a)&&(i.classList.remove(a),this._ngZone.run(()=>o.next({target:c.target,isAutofilled:!1})))},l=this._ngZone.runOutsideAngular(()=>(i.classList.add("cdk-text-field-autofill-monitored"),this._renderer.listen(i,"animationstart",s,Nte)));return this._monitoredElements.set(i,{subject:o,unlisten:l}),o}stopMonitoring(e){let i=jr(e),r=this._monitoredElements.get(i);r&&(r.unlisten(),r.subject.complete(),i.classList.remove("cdk-text-field-autofill-monitored"),i.classList.remove("cdk-text-field-autofilled"),this._monitoredElements.delete(i))}ngOnDestroy(){this._monitoredElements.forEach((e,i)=>this.stopMonitoring(i))}static \u0275fac=function(i){return new(i||t)};static \u0275prov=R({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();var I3=(()=>{class t{_elementRef=u(Y);_platform=u(qe);_ngZone=u(ae);_renderer=u(ze);_resizeEvents=new z;_previousValue;_initialHeight;_destroyed=new z;_listenerCleanups;_minRows;_maxRows;_enabled=!0;_previousMinRows=-1;_textareaElement;get minRows(){return this._minRows}set minRows(e){this._minRows=Bn(e),this._setMinHeight()}get maxRows(){return this._maxRows}set maxRows(e){this._maxRows=Bn(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=u(_e);_hasFocus;_isViewInited=!1;constructor(){u(ht).load(k3),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(Nl(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),i=e.style;e.rows=1,i.position="absolute",i.visibility="hidden",i.border="none",i.padding="0",i.height="",i.minHeight="",i.maxHeight="",i.top=i.bottom=i.left=i.right="auto",i.overflow="hidden",this._textareaElement.parentNode.appendChild(e),this._cachedLineHeight=e.clientHeight,e.remove(),this._setMinHeight(),this._setMaxHeight()}_measureScrollHeight(){let e=this._textareaElement,i=e.style.marginBottom||"",r=this._platform.FIREFOX,o=r&&this._hasFocus,a=r?"cdk-textarea-autosize-measuring-firefox":"cdk-textarea-autosize-measuring";o&&(e.style.marginBottom=`${e.clientHeight}px`),e.classList.add(a);let s=e.scrollHeight-4;return e.classList.remove(a),o&&(e.style.marginBottom=i),s}_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 i=this._elementRef.nativeElement,r=i.value;if(!e&&this._minRows===this._previousMinRows&&r===this._previousValue)return;let o=this._measureScrollHeight(),a=Math.max(o,this._cachedPlaceholderHeight||0);i.style.height=`${a}px`,this._ngZone.runOutsideAngular(()=>{typeof requestAnimationFrame<"u"?requestAnimationFrame(()=>this._scrollToCaretPosition(i)):setTimeout(()=>this._scrollToCaretPosition(i))}),this._previousValue=r,this._previousMinRows=this._minRows}reset(){this._initialHeight!==void 0&&(this._textareaElement.style.height=this._initialHeight)}_noopInputHandler(){}_scrollToCaretPosition(e){let{selectionStart:i,selectionEnd:r}=e;!this._destroyed.isStopped&&this._hasFocus&&e.setSelectionRange(i,r)}static \u0275fac=function(i){return new(i||t)};static \u0275dir=P({type:t,selectors:[["textarea","cdkTextareaAutosize",""]],hostAttrs:["rows","1",1,"cdk-textarea-autosize"],hostBindings:function(i,r){i&1&&S("input",function(){return r._noopInputHandler()})},inputs:{minRows:[0,"cdkAutosizeMinRows","minRows"],maxRows:[0,"cdkAutosizeMaxRows","maxRows"],enabled:[2,"cdkTextareaAutosize","enabled",L],placeholder:"placeholder"},exportAs:["cdkTextareaAutosize"]})}return t})(),A3=(()=>{class t{static \u0275fac=function(i){return new(i||t)};static \u0275mod=ee({type:t});static \u0275inj=J({})}return t})();var Th=new O("MAT_INPUT_VALUE_ACCESSOR");var Vte=["button","checkbox","file","hidden","image","radio","range","reset","submit"],Bte=new O("MAT_INPUT_CONFIG"),en=(()=>{class t{_elementRef=u(Y);_platform=u(qe);ngControl=u(Un,{optional:!0,self:!0});_autofillMonitor=u(T3);_ngZone=u(ae);_formField=u(ta,{optional:!0});_renderer=u(ze);_uid=u(Ze).getId("mat-input-");_previousNativeValue;_inputValueAccessor;_signalBasedValueAccessor;_previousPlaceholder;_errorStateTracker;_config=u(Bte,{optional:!0});_cleanupIosKeyup;_cleanupWebkitWheel;_isServer;_isNativeSelect;_isTextarea;_isInFormField;focused=!1;stateChanges=new z;controlType="mat-input";autofilled=!1;get disabled(){return this._disabled}set disabled(e){this._disabled=Ri(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(Le.required)??!1}set required(e){this._required=Ri(e)}_required;get type(){return this._type}set type(e){this._type=e||"text",this._validateType(),!this._isTextarea&&IS().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=Ri(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=>IS().has(e));constructor(){let e=u(gc,{optional:!0}),i=u(Ji,{optional:!0}),r=u(ul),o=u(Th,{optional:!0,self:!0}),a=this._elementRef.nativeElement,s=a.nodeName.toLowerCase();o?ns(o.value)?this._signalBasedValueAccessor=o:this._inputValueAccessor=o:this._inputValueAccessor=a,this._previousNativeValue=this.value,this.id=this.id,this._platform.IOS&&this._ngZone.runOutsideAngular(()=>{this._cleanupIosKeyup=this._renderer.listen(a,"keyup",this._iOSKeyupListener)}),this._errorStateTracker=new dl(r,this.ngControl,i,e,this.stateChanges),this._isServer=!this._platform.isBrowser,this._isNativeSelect=s==="select",this._isTextarea=s==="textarea",this._isInFormField=!!this._formField,this.disabledInteractive=this._config?.disabledInteractive||!1,this._isNativeSelect&&(this.controlType=a.multiple?"mat-native-select-multiple":"mat-native-select"),this._signalBasedValueAccessor&&Lr(()=>{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 i=this._elementRef.nativeElement;i.type==="number"?(i.type="text",i.setSelectionRange(0,0),i.type="number"):i.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 i=this._elementRef.nativeElement;this._previousPlaceholder=e,e?i.setAttribute("placeholder",e):i.removeAttribute("placeholder")}}_getPlaceholder(){return this.placeholder||null}_validateType(){Vte.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,i=e.options[0];return this.focused||e.multiple||!this.empty||!!(e.selectedIndex>-1&&i&&i.label)}else return this.focused&&!this.disabled||!this.empty}get describedByIds(){return this._elementRef.nativeElement.getAttribute("aria-describedby")?.split(" ")||[]}setDescribedByIds(e){let i=this._elementRef.nativeElement;e.length?i.setAttribute("aria-describedby",e.join(" ")):i.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 i=e.target;!i.value&&i.selectionStart===0&&i.selectionEnd===0&&(i.setSelectionRange(1,1),i.setSelectionRange(0,0))};_getReadonlyAttribute(){return this._isNativeSelect?null:this.readonly||this.disabled&&this.disabledInteractive?"true":null}static \u0275fac=function(i){return new(i||t)};static \u0275dir=P({type:t,selectors:[["input","matInput",""],["textarea","matInput",""],["select","matNativeControl",""],["input","matNativeControl",""],["textarea","matNativeControl",""]],hostAttrs:[1,"mat-mdc-input-element"],hostVars:21,hostBindings:function(i,r){i&1&&S("focus",function(){return r._focusChanged(!0)})("blur",function(){return r._focusChanged(!1)})("input",function(){return r._onInput()}),i&2&&(ci("id",r.id)("disabled",r.disabled&&!r.disabledInteractive)("required",r.required),X("name",r.name||null)("readonly",r._getReadonlyAttribute())("aria-disabled",r.disabled&&r.disabledInteractive?"true":null)("aria-invalid",r.empty&&r.required?null:r.errorState)("aria-required",r.required)("id",r.id),G("mat-input-server",r._isServer)("mat-mdc-form-field-textarea-control",r._isInFormField&&r._isTextarea)("mat-mdc-form-field-input-control",r._isInFormField)("mat-mdc-input-disabled-interactive",r.disabledInteractive)("mdc-text-field__input",r._isInFormField)("mat-mdc-native-select-inline",r._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",L]},exportAs:["matInput"],features:[Ce([{provide:Pa,useExisting:t}]),Ae]})}return t})(),Mn=(()=>{class t{static \u0275fac=function(i){return new(i||t)};static \u0275mod=ee({type:t});static \u0275inj=J({imports:[De,Pi,Pi,A3,De]})}return t})();function jte(t,n){if(t&1&&M(0,"input",0),t&2){let e=x();v("id",e.id)("name",e.field.name)("type",e.type||"text")("readonly",e.props.readonly)("required",e.required)("errorStateMatcher",e.errorStateMatcher)("formControl",e.formControl)("formlyAttributes",e.field)("tabIndex",e.props.tabindex)("placeholder",e.props.placeholder)}}function Hte(t,n){if(t&1&&M(0,"input",1),t&2){let e=x();v("id",e.id)("name",e.field.name)("readonly",e.props.readonly)("required",e.required)("errorStateMatcher",e.errorStateMatcher)("formControl",e.formControl)("formlyAttributes",e.field)("tabIndex",e.props.tabindex)("placeholder",e.props.placeholder)}}var zte=(()=>{let n=class n extends oo{get type(){return this.props.type||"text"}};n.\u0275fac=(()=>{let i;return function(o){return(i||(i=ge(n)))(o||n)}})(),n.\u0275cmp=E({type:n,selectors:[["formly-field-mat-input"]],standalone:!1,features:[le],decls:2,vars:1,consts:[["matInput","",3,"id","name","type","readonly","required","errorStateMatcher","formControl","formlyAttributes","tabIndex","placeholder"],["matInput","","type","number",3,"id","name","readonly","required","errorStateMatcher","formControl","formlyAttributes","tabIndex","placeholder"]],template:function(r,o){r&1&&V(0,jte,1,10,"input",0)(1,Hte,1,9,"input",1),r&2&&B(o.type!=="number"?0:1)},dependencies:[Hi,fu,qt,Io,To,en,ra],encapsulation:2,changeDetection:0});let t=n;return t})();function O3(){return{types:[{name:"input",component:zte,wrappers:["form-field"]},{name:"string",extends:"input"},{name:"number",extends:"input",defaultOptions:{props:{type:"number"}}},{name:"integer",extends:"input",defaultOptions:{props:{type:"number"}}}]}}var Ute=(()=>{let n=class n extends oo{constructor(){super(...arguments),this.defaultOptions={props:{cols:1,rows:1}}}};n.\u0275fac=(()=>{let i;return function(o){return(i||(i=ge(n)))(o||n)}})(),n.\u0275cmp=E({type:n,selectors:[["formly-field-mat-textarea"]],standalone:!1,features:[Ce([{provide:Th,useExisting:n}]),le],decls:1,vars:16,consts:[["matInput","",3,"id","name","readonly","required","formControl","errorStateMatcher","cols","rows","formlyAttributes","placeholder","tabindex","cdkTextareaAutosize","cdkAutosizeMinRows","cdkAutosizeMaxRows"]],template:function(r,o){r&1&&M(0,"textarea",0),r&2&&(G("cdk-textarea-autosize",o.props.autosize),v("id",o.id)("name",o.field.name)("readonly",o.props.readonly)("required",o.required)("formControl",o.formControl)("errorStateMatcher",o.errorStateMatcher)("cols",o.props.cols)("rows",o.props.rows)("formlyAttributes",o.field)("placeholder",o.props.placeholder)("tabindex",o.props.tabindex)("cdkTextareaAutosize",o.props.autosize)("cdkAutosizeMinRows",o.props.autosizeMinRows)("cdkAutosizeMaxRows",o.props.autosizeMaxRows))},dependencies:[Hi,qt,Io,To,en,I3,ra],encapsulation:2,changeDetection:0});let t=n;return t})();function R3(){return{types:[{name:"textarea",component:Ute,wrappers:["form-field"]}]}}var $te=["input"],Wte=["formField"],Gte=["*"],Dx=class{source;value;constructor(n,e){this.source=n,this.value=e}},qte={provide:rr,useExisting:ri(()=>kg),multi:!0},P3=new O("MatRadioGroup"),Yte=new O("mat-radio-default-options",{providedIn:"root",factory:Qte});function Qte(){return{color:"accent",disabledInteractive:!1}}var kg=(()=>{class t{_changeDetector=u(ye);_value=null;_name=u(Ze).getId("mat-radio-group-");_selected=null;_isInitialized=!1;_labelPosition="after";_disabled=!1;_required=!1;_buttonChanges;_controlValueAccessorChangeFn=()=>{};onTouched=()=>{};change=new U;_radios;color;get name(){return this._name}set name(e){this._name=e,this._updateRadioButtonNames()}get labelPosition(){return this._labelPosition}set labelPosition(e){this._labelPosition=e==="before"?"before":"after",this._markRadiosForCheck()}get value(){return this._value}set value(e){this._value!==e&&(this._value=e,this._updateSelectedRadioFromValue(),this._checkSelectedRadioButton())}_checkSelectedRadioButton(){this._selected&&!this._selected.checked&&(this._selected.checked=!0)}get selected(){return this._selected}set selected(e){this._selected=e,this.value=e?e.value:null,this._checkSelectedRadioButton()}get disabled(){return this._disabled}set disabled(e){this._disabled=e,this._markRadiosForCheck()}get required(){return this._required}set required(e){this._required=e,this._markRadiosForCheck()}get disabledInteractive(){return this._disabledInteractive}set disabledInteractive(e){this._disabledInteractive=e,this._markRadiosForCheck()}_disabledInteractive=!1;constructor(){}ngAfterContentInit(){this._isInitialized=!0,this._buttonChanges=this._radios.changes.subscribe(()=>{this.selected&&!this._radios.find(e=>e===this.selected)&&(this._selected=null)})}ngOnDestroy(){this._buttonChanges?.unsubscribe()}_touch(){this.onTouched&&this.onTouched()}_updateRadioButtonNames(){this._radios&&this._radios.forEach(e=>{e.name=this.name,e._markForCheck()})}_updateSelectedRadioFromValue(){let e=this._selected!==null&&this._selected.value===this._value;this._radios&&!e&&(this._selected=null,this._radios.forEach(i=>{i.checked=this.value===i.value,i.checked&&(this._selected=i)}))}_emitChangeEvent(){this._isInitialized&&this.change.emit(new Dx(this._selected,this._value))}_markRadiosForCheck(){this._radios&&this._radios.forEach(e=>e._markForCheck())}writeValue(e){this.value=e,this._changeDetector.markForCheck()}registerOnChange(e){this._controlValueAccessorChangeFn=e}registerOnTouched(e){this.onTouched=e}setDisabledState(e){this.disabled=e,this._changeDetector.markForCheck()}static \u0275fac=function(i){return new(i||t)};static \u0275dir=P({type:t,selectors:[["mat-radio-group"]],contentQueries:function(i,r,o){if(i&1&&xe(o,wk,5),i&2){let a;j(a=H())&&(r._radios=a)}},hostAttrs:["role","radiogroup",1,"mat-mdc-radio-group"],inputs:{color:"color",name:"name",labelPosition:"labelPosition",value:"value",selected:"selected",disabled:[2,"disabled","disabled",L],required:[2,"required","required",L],disabledInteractive:[2,"disabledInteractive","disabledInteractive",L]},outputs:{change:"change"},exportAs:["matRadioGroup"],features:[Ce([qte,{provide:P3,useExisting:t}])]})}return t})(),wk=(()=>{class t{_elementRef=u(Y);_changeDetector=u(ye);_focusMonitor=u(ti);_radioDispatcher=u(uu);_defaultOptions=u(Yte,{optional:!0});_ngZone=u(ae);_renderer=u(ze);_uniqueId=u(Ze).getId("mat-radio-");_cleanupClick;id=this._uniqueId;name;ariaLabel;ariaLabelledby;ariaDescribedby;disableRipple=!1;tabIndex=0;get checked(){return this._checked}set checked(e){this._checked!==e&&(this._checked=e,e&&this.radioGroup&&this.radioGroup.value!==this.value?this.radioGroup.selected=this:!e&&this.radioGroup&&this.radioGroup.value===this.value&&(this.radioGroup.selected=null),e&&this._radioDispatcher.notify(this.id,this.name),this._changeDetector.markForCheck())}get value(){return this._value}set value(e){this._value!==e&&(this._value=e,this.radioGroup!==null&&(this.checked||(this.checked=this.radioGroup.value===e),this.checked&&(this.radioGroup.selected=this)))}get labelPosition(){return this._labelPosition||this.radioGroup&&this.radioGroup.labelPosition||"after"}set labelPosition(e){this._labelPosition=e}_labelPosition;get disabled(){return this._disabled||this.radioGroup!==null&&this.radioGroup.disabled}set disabled(e){this._setDisabled(e)}get required(){return this._required||this.radioGroup&&this.radioGroup.required}set required(e){e!==this._required&&this._changeDetector.markForCheck(),this._required=e}get color(){return this._color||this.radioGroup&&this.radioGroup.color||this._defaultOptions&&this._defaultOptions.color||"accent"}set color(e){this._color=e}_color;get disabledInteractive(){return this._disabledInteractive||this.radioGroup!==null&&this.radioGroup.disabledInteractive}set disabledInteractive(e){this._disabledInteractive=e}_disabledInteractive;change=new U;radioGroup;get inputId(){return`${this.id||this._uniqueId}-input`}_checked=!1;_disabled;_required;_value=null;_removeUniqueSelectionListener=()=>{};_previousTabIndex;_inputElement;_rippleTrigger;_noopAnimations=Ye();_injector=u(de);constructor(){u(ht).load(ki);let e=u(P3,{optional:!0}),i=u(new Oi("tabindex"),{optional:!0});this.radioGroup=e,this._disabledInteractive=this._defaultOptions?.disabledInteractive??!1,i&&(this.tabIndex=dt(i,0))}focus(e,i){i?this._focusMonitor.focusVia(this._inputElement,i,e):this._inputElement.nativeElement.focus(e)}_markForCheck(){this._changeDetector.markForCheck()}ngOnInit(){this.radioGroup&&(this.checked=this.radioGroup.value===this._value,this.checked&&(this.radioGroup.selected=this),this.name=this.radioGroup.name),this._removeUniqueSelectionListener=this._radioDispatcher.listen((e,i)=>{e!==this.id&&i===this.name&&(this.checked=!1)})}ngDoCheck(){this._updateTabIndex()}ngAfterViewInit(){this._updateTabIndex(),this._focusMonitor.monitor(this._elementRef,!0).subscribe(e=>{!e&&this.radioGroup&&this.radioGroup._touch()}),this._ngZone.runOutsideAngular(()=>{this._cleanupClick=this._renderer.listen(this._inputElement.nativeElement,"click",this._onInputClick)})}ngOnDestroy(){this._cleanupClick?.(),this._focusMonitor.stopMonitoring(this._elementRef),this._removeUniqueSelectionListener()}_emitChangeEvent(){this.change.emit(new Dx(this,this._value))}_isRippleDisabled(){return this.disableRipple||this.disabled}_onInputInteraction(e){if(e.stopPropagation(),!this.checked&&!this.disabled){let i=this.radioGroup&&this.value!==this.radioGroup.value;this.checked=!0,this._emitChangeEvent(),this.radioGroup&&(this.radioGroup._controlValueAccessorChangeFn(this.value),i&&this.radioGroup._emitChangeEvent())}}_onTouchTargetClick(e){this._onInputInteraction(e),(!this.disabled||this.disabledInteractive)&&this._inputElement?.nativeElement.focus()}_setDisabled(e){this._disabled!==e&&(this._disabled=e,this._changeDetector.markForCheck())}_onInputClick=e=>{this.disabled&&this.disabledInteractive&&e.preventDefault()};_updateTabIndex(){let e=this.radioGroup,i;if(!e||!e.selected||this.disabled?i=this.tabIndex:i=e.selected===this?this.tabIndex:-1,i!==this._previousTabIndex){let r=this._inputElement?.nativeElement;r&&(r.setAttribute("tabindex",i+""),this._previousTabIndex=i,gt(()=>{queueMicrotask(()=>{e&&e.selected&&e.selected!==this&&document.activeElement===r&&(e.selected?._inputElement.nativeElement.focus(),document.activeElement===r&&this._inputElement.nativeElement.blur())})},{injector:this._injector}))}}static \u0275fac=function(i){return new(i||t)};static \u0275cmp=E({type:t,selectors:[["mat-radio-button"]],viewQuery:function(i,r){if(i&1&&(ie($te,5),ie(Wte,7,Y)),i&2){let o;j(o=H())&&(r._inputElement=o.first),j(o=H())&&(r._rippleTrigger=o.first)}},hostAttrs:[1,"mat-mdc-radio-button"],hostVars:19,hostBindings:function(i,r){i&1&&S("focus",function(){return r._inputElement.nativeElement.focus()}),i&2&&(X("id",r.id)("tabindex",null)("aria-label",null)("aria-labelledby",null)("aria-describedby",null),G("mat-primary",r.color==="primary")("mat-accent",r.color==="accent")("mat-warn",r.color==="warn")("mat-mdc-radio-checked",r.checked)("mat-mdc-radio-disabled",r.disabled)("mat-mdc-radio-disabled-interactive",r.disabledInteractive)("_mat-animation-noopable",r._noopAnimations))},inputs:{id:"id",name:"name",ariaLabel:[0,"aria-label","ariaLabel"],ariaLabelledby:[0,"aria-labelledby","ariaLabelledby"],ariaDescribedby:[0,"aria-describedby","ariaDescribedby"],disableRipple:[2,"disableRipple","disableRipple",L],tabIndex:[2,"tabIndex","tabIndex",e=>e==null?0:dt(e)],checked:[2,"checked","checked",L],value:"value",labelPosition:"labelPosition",disabled:[2,"disabled","disabled",L],required:[2,"required","required",L],color:"color",disabledInteractive:[2,"disabledInteractive","disabledInteractive",L]},outputs:{change:"change"},exportAs:["matRadioButton"],ngContentSelectors:Gte,decls:13,vars:17,consts:[["formField",""],["input",""],["mat-internal-form-field","",3,"labelPosition"],[1,"mdc-radio"],[1,"mat-mdc-radio-touch-target",3,"click"],["type","radio","aria-invalid","false",1,"mdc-radio__native-control",3,"change","id","checked","disabled","required"],[1,"mdc-radio__background"],[1,"mdc-radio__outer-circle"],[1,"mdc-radio__inner-circle"],["mat-ripple","",1,"mat-radio-ripple","mat-focus-indicator",3,"matRippleTrigger","matRippleDisabled","matRippleCentered"],[1,"mat-ripple-element","mat-radio-persistent-ripple"],[1,"mdc-label",3,"for"]],template:function(i,r){if(i&1){let o=q();Se(),m(0,"div",2,0)(2,"div",3)(3,"div",4),S("click",function(s){return T(o),I(r._onTouchTargetClick(s))}),h(),m(4,"input",5,1),S("change",function(s){return T(o),I(r._onInputInteraction(s))}),h(),m(6,"div",6),M(7,"div",7)(8,"div",8),h(),m(9,"div",9),M(10,"div",10),h()(),m(11,"label",11),ne(12),h()()}i&2&&(v("labelPosition",r.labelPosition),f(2),G("mdc-radio--disabled",r.disabled),f(2),v("id",r.inputId)("checked",r.checked)("disabled",r.disabled&&!r.disabledInteractive)("required",r.required),X("name",r.name)("value",r.value)("aria-label",r.ariaLabel)("aria-labelledby",r.ariaLabelledby)("aria-describedby",r.ariaDescribedby)("aria-disabled",r.disabled&&r.disabledInteractive?"true":null),f(5),v("matRippleTrigger",r._rippleTrigger.nativeElement)("matRippleDisabled",r._isRippleDisabled())("matRippleCentered",!0),f(2),v("for",r.inputId))},dependencies:[jn,Zm],styles:[`.mat-mdc-radio-button{-webkit-tap-highlight-color:rgba(0,0,0,0)}.mat-mdc-radio-button .mdc-radio{display:inline-block;position:relative;flex:0 0 auto;box-sizing:content-box;width:20px;height:20px;cursor:pointer;will-change:opacity,transform,border-color,color;padding:calc((var(--mat-radio-state-layer-size, 40px) - 20px)/2)}.mat-mdc-radio-button .mdc-radio:hover>.mdc-radio__native-control:not([disabled]):not(:focus)~.mdc-radio__background::before{opacity:.04;transform:scale(1)}.mat-mdc-radio-button .mdc-radio:hover>.mdc-radio__native-control:not([disabled])~.mdc-radio__background>.mdc-radio__outer-circle{border-color:var(--mat-radio-unselected-hover-icon-color, var(--mat-sys-on-surface))}.mat-mdc-radio-button .mdc-radio:hover>.mdc-radio__native-control:enabled:checked+.mdc-radio__background>.mdc-radio__outer-circle{border-color:var(--mat-radio-selected-hover-icon-color, var(--mat-sys-primary))}.mat-mdc-radio-button .mdc-radio:hover>.mdc-radio__native-control:enabled:checked+.mdc-radio__background>.mdc-radio__inner-circle{background-color:var(--mat-radio-selected-hover-icon-color, var(--mat-sys-primary, currentColor))}.mat-mdc-radio-button .mdc-radio:active>.mdc-radio__native-control:enabled:not(:checked)+.mdc-radio__background>.mdc-radio__outer-circle{border-color:var(--mat-radio-unselected-pressed-icon-color, var(--mat-sys-on-surface))}.mat-mdc-radio-button .mdc-radio:active>.mdc-radio__native-control:enabled:checked+.mdc-radio__background>.mdc-radio__outer-circle{border-color:var(--mat-radio-selected-pressed-icon-color, var(--mat-sys-primary))}.mat-mdc-radio-button .mdc-radio:active>.mdc-radio__native-control:enabled:checked+.mdc-radio__background>.mdc-radio__inner-circle{background-color:var(--mat-radio-selected-pressed-icon-color, var(--mat-sys-primary, currentColor))}.mat-mdc-radio-button .mdc-radio__background{display:inline-block;position:relative;box-sizing:border-box;width:20px;height:20px}.mat-mdc-radio-button .mdc-radio__background::before{position:absolute;transform:scale(0, 0);border-radius:50%;opacity:0;pointer-events:none;content:"";transition:opacity 90ms cubic-bezier(0.4, 0, 0.6, 1),transform 90ms cubic-bezier(0.4, 0, 0.6, 1);width:var(--mat-radio-state-layer-size, 40px);height:var(--mat-radio-state-layer-size, 40px);top:calc(-1*(var(--mat-radio-state-layer-size, 40px) - 20px)/2);left:calc(-1*(var(--mat-radio-state-layer-size, 40px) - 20px)/2)}.mat-mdc-radio-button .mdc-radio__outer-circle{position:absolute;top:0;left:0;box-sizing:border-box;width:100%;height:100%;border-width:2px;border-style:solid;border-radius:50%;transition:border-color 90ms cubic-bezier(0.4, 0, 0.6, 1)}.mat-mdc-radio-button .mdc-radio__inner-circle{position:absolute;top:0;left:0;box-sizing:border-box;width:100%;height:100%;transform:scale(0);border-radius:50%;transition:transform 90ms cubic-bezier(0.4, 0, 0.6, 1),background-color 90ms cubic-bezier(0.4, 0, 0.6, 1)}@media(forced-colors: active){.mat-mdc-radio-button .mdc-radio__inner-circle{background-color:CanvasText !important}}.mat-mdc-radio-button .mdc-radio__native-control{position:absolute;margin:0;padding:0;opacity:0;top:0;right:0;left:0;cursor:inherit;z-index:1;width:var(--mat-radio-state-layer-size, 40px);height:var(--mat-radio-state-layer-size, 40px)}.mat-mdc-radio-button .mdc-radio__native-control:checked+.mdc-radio__background,.mat-mdc-radio-button .mdc-radio__native-control:disabled+.mdc-radio__background{transition:opacity 90ms cubic-bezier(0, 0, 0.2, 1),transform 90ms cubic-bezier(0, 0, 0.2, 1)}.mat-mdc-radio-button .mdc-radio__native-control:checked+.mdc-radio__background>.mdc-radio__outer-circle,.mat-mdc-radio-button .mdc-radio__native-control:disabled+.mdc-radio__background>.mdc-radio__outer-circle{transition:border-color 90ms cubic-bezier(0, 0, 0.2, 1)}.mat-mdc-radio-button .mdc-radio__native-control:checked+.mdc-radio__background>.mdc-radio__inner-circle,.mat-mdc-radio-button .mdc-radio__native-control:disabled+.mdc-radio__background>.mdc-radio__inner-circle{transition:transform 90ms cubic-bezier(0, 0, 0.2, 1),background-color 90ms cubic-bezier(0, 0, 0.2, 1)}.mat-mdc-radio-button .mdc-radio__native-control:focus+.mdc-radio__background::before{transform:scale(1);opacity:.12;transition:opacity 90ms cubic-bezier(0, 0, 0.2, 1),transform 90ms cubic-bezier(0, 0, 0.2, 1)}.mat-mdc-radio-button .mdc-radio__native-control:disabled:not(:checked)+.mdc-radio__background>.mdc-radio__outer-circle{border-color:var(--mat-radio-disabled-unselected-icon-color, var(--mat-sys-on-surface));opacity:var(--mat-radio-disabled-unselected-icon-opacity, 0.38)}.mat-mdc-radio-button .mdc-radio__native-control:disabled+.mdc-radio__background{cursor:default}.mat-mdc-radio-button .mdc-radio__native-control:disabled+.mdc-radio__background>.mdc-radio__outer-circle{border-color:var(--mat-radio-disabled-selected-icon-color, var(--mat-sys-on-surface));opacity:var(--mat-radio-disabled-selected-icon-opacity, 0.38)}.mat-mdc-radio-button .mdc-radio__native-control:disabled+.mdc-radio__background>.mdc-radio__inner-circle{background-color:var(--mat-radio-disabled-selected-icon-color, var(--mat-sys-on-surface, currentColor));opacity:var(--mat-radio-disabled-selected-icon-opacity, 0.38)}.mat-mdc-radio-button .mdc-radio__native-control:enabled:not(:checked)+.mdc-radio__background>.mdc-radio__outer-circle{border-color:var(--mat-radio-unselected-icon-color, var(--mat-sys-on-surface-variant))}.mat-mdc-radio-button .mdc-radio__native-control:enabled:checked+.mdc-radio__background>.mdc-radio__outer-circle{border-color:var(--mat-radio-selected-icon-color, var(--mat-sys-primary))}.mat-mdc-radio-button .mdc-radio__native-control:enabled:checked+.mdc-radio__background>.mdc-radio__inner-circle{background-color:var(--mat-radio-selected-icon-color, var(--mat-sys-primary, currentColor))}.mat-mdc-radio-button .mdc-radio__native-control:enabled:focus:checked+.mdc-radio__background>.mdc-radio__outer-circle{border-color:var(--mat-radio-selected-focus-icon-color, var(--mat-sys-primary))}.mat-mdc-radio-button .mdc-radio__native-control:enabled:focus:checked+.mdc-radio__background>.mdc-radio__inner-circle{background-color:var(--mat-radio-selected-focus-icon-color, var(--mat-sys-primary, currentColor))}.mat-mdc-radio-button .mdc-radio__native-control:checked+.mdc-radio__background>.mdc-radio__inner-circle{transform:scale(0.5);transition:transform 90ms cubic-bezier(0, 0, 0.2, 1),background-color 90ms cubic-bezier(0, 0, 0.2, 1)}.mat-mdc-radio-button.mat-mdc-radio-disabled-interactive .mdc-radio--disabled{pointer-events:auto}.mat-mdc-radio-button.mat-mdc-radio-disabled-interactive .mdc-radio--disabled .mdc-radio__native-control:not(:checked)+.mdc-radio__background>.mdc-radio__outer-circle{border-color:var(--mat-radio-disabled-unselected-icon-color, var(--mat-sys-on-surface));opacity:var(--mat-radio-disabled-unselected-icon-opacity, 0.38)}.mat-mdc-radio-button.mat-mdc-radio-disabled-interactive .mdc-radio--disabled:hover .mdc-radio__native-control:checked+.mdc-radio__background>.mdc-radio__outer-circle,.mat-mdc-radio-button.mat-mdc-radio-disabled-interactive .mdc-radio--disabled .mdc-radio__native-control:checked:focus+.mdc-radio__background>.mdc-radio__outer-circle,.mat-mdc-radio-button.mat-mdc-radio-disabled-interactive .mdc-radio--disabled .mdc-radio__native-control+.mdc-radio__background>.mdc-radio__outer-circle{border-color:var(--mat-radio-disabled-selected-icon-color, var(--mat-sys-on-surface));opacity:var(--mat-radio-disabled-selected-icon-opacity, 0.38)}.mat-mdc-radio-button.mat-mdc-radio-disabled-interactive .mdc-radio--disabled:hover .mdc-radio__native-control:checked+.mdc-radio__background>.mdc-radio__inner-circle,.mat-mdc-radio-button.mat-mdc-radio-disabled-interactive .mdc-radio--disabled .mdc-radio__native-control:checked:focus+.mdc-radio__background>.mdc-radio__inner-circle,.mat-mdc-radio-button.mat-mdc-radio-disabled-interactive .mdc-radio--disabled .mdc-radio__native-control+.mdc-radio__background>.mdc-radio__inner-circle{background-color:var(--mat-radio-disabled-selected-icon-color, var(--mat-sys-on-surface, currentColor));opacity:var(--mat-radio-disabled-selected-icon-opacity, 0.38)}.mat-mdc-radio-button._mat-animation-noopable .mdc-radio__background::before,.mat-mdc-radio-button._mat-animation-noopable .mdc-radio__outer-circle,.mat-mdc-radio-button._mat-animation-noopable .mdc-radio__inner-circle{transition:none !important}.mat-mdc-radio-button label{cursor:pointer}.mat-mdc-radio-button .mdc-radio__background::before{background-color:var(--mat-radio-ripple-color, var(--mat-sys-on-surface))}.mat-mdc-radio-button.mat-mdc-radio-checked .mat-ripple-element,.mat-mdc-radio-button.mat-mdc-radio-checked .mdc-radio__background::before{background-color:var(--mat-radio-checked-ripple-color, var(--mat-sys-primary))}.mat-mdc-radio-button.mat-mdc-radio-disabled-interactive .mdc-radio--disabled .mat-ripple-element,.mat-mdc-radio-button.mat-mdc-radio-disabled-interactive .mdc-radio--disabled .mdc-radio__background::before{background-color:var(--mat-radio-ripple-color, var(--mat-sys-on-surface))}.mat-mdc-radio-button .mat-internal-form-field{color:var(--mat-radio-label-text-color, var(--mat-sys-on-surface));font-family:var(--mat-radio-label-text-font, var(--mat-sys-body-medium-font));line-height:var(--mat-radio-label-text-line-height, var(--mat-sys-body-medium-line-height));font-size:var(--mat-radio-label-text-size, var(--mat-sys-body-medium-size));letter-spacing:var(--mat-radio-label-text-tracking, var(--mat-sys-body-medium-tracking));font-weight:var(--mat-radio-label-text-weight, var(--mat-sys-body-medium-weight))}.mat-mdc-radio-button .mdc-radio--disabled+label{color:var(--mat-radio-disabled-label-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent))}.mat-mdc-radio-button .mat-radio-ripple{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none;border-radius:50%}.mat-mdc-radio-button .mat-radio-ripple>.mat-ripple-element{opacity:.14}.mat-mdc-radio-button .mat-radio-ripple::before{border-radius:50%}.mat-mdc-radio-button .mdc-radio>.mdc-radio__native-control:focus:enabled:not(:checked)~.mdc-radio__background>.mdc-radio__outer-circle{border-color:var(--mat-radio-unselected-focus-icon-color, var(--mat-sys-on-surface))}.mat-mdc-radio-button.cdk-focused .mat-focus-indicator::before{content:""}.mat-mdc-radio-disabled{cursor:default;pointer-events:none}.mat-mdc-radio-disabled.mat-mdc-radio-disabled-interactive{pointer-events:auto}.mat-mdc-radio-touch-target{position:absolute;top:50%;left:50%;height:var(--mat-radio-touch-target-size, 48px);width:var(--mat-radio-touch-target-size, 48px);transform:translate(-50%, -50%);display:var(--mat-radio-touch-target-display, block)}[dir=rtl] .mat-mdc-radio-touch-target{left:auto;right:50%;transform:translate(50%, -50%)} +`],encapsulation:2,changeDetection:0})}return t})();var Zte=(()=>{let n=class n{transform(i,r){return i instanceof Fe?this.dispose():i=this.observableOf(i,r),i.pipe(se(o=>this.transformOptions(o,r)))}ngOnDestroy(){this.dispose()}transformOptions(i,r){let o=this.transformSelectProps(r),a=[],s={};return i?.forEach(l=>{let c=this.transformOption(l,o);if(c.group){let d=s[c.label];d===void 0?s[c.label]=a.push(c)-1:c.group.forEach(p=>a[d].group.push(p))}else a.push(c)}),a}transformOption(i,r){let o=r.groupProp(i);return Array.isArray(o)?{label:r.labelProp(i),group:o.map(a=>this.transformOption(a,r))}:(i={label:r.labelProp(i),value:r.valueProp(i),disabled:!!r.disabledProp(i)},o?{label:o,group:[i]}:i)}transformSelectProps(i){let r=i?.props||i?.templateOptions||{},o=a=>typeof a=="function"?a:s=>s[a];return{groupProp:o(r.groupProp||"group"),labelProp:o(r.labelProp||"label"),valueProp:o(r.valueProp||"value"),disabledProp:o(r.disabledProp||"disabled")}}dispose(){this._options&&(this._options.complete(),this._options=null),this._subscription&&(this._subscription.unsubscribe(),this._subscription=null)}observableOf(i,r){return this.dispose(),r&&r.options&&r.options.fieldChanges&&(this._subscription=r.options.fieldChanges.pipe(ce(({property:o,type:a,field:s})=>a==="expressionChanges"&&(o.indexOf("templateOptions.options")===0||o.indexOf("props.options")===0)&&s===r&&Array.isArray(s.props.options)&&!!this._options),He(()=>this._options.next(r.props.options))).subscribe()),this._options=new it(i),this._options.asObservable()}};n.\u0275fac=function(r){return new(r||n)},n.\u0275pipe=Kr({name:"formlySelectOptions",type:n,pure:!0});let t=n;return t})(),Ah=(()=>{let n=class n extends Zte{};n.\u0275fac=(()=>{let i;return function(o){return(i||(i=ge(n)))(o||n)}})(),n.\u0275pipe=Kr({name:"formlySelectOptions",type:n,pure:!0,standalone:!1});let t=n;return t})();function Xte(t,n){if(t&1&&(m(0,"mat-radio-button",1),g(1),h()),t&2){let e=n.$implicit,i=n.$index,r=x();v("id",r.id+"_"+i)("color",r.props.color)("labelPosition",r.props.labelPosition)("disabled",e.disabled)("value",e.value),f(),pe(" ",e.label," ")}}var Jte=(()=>{let n=class n extends oo{constructor(){super(...arguments),this.defaultOptions={props:{hideFieldUnderline:!0,floatLabel:"always",tabindex:-1}}}ngAfterViewInit(){this.focusObserver=qi(this.field,["focus"],({currentValue:i})=>{this.props.tabindex===-1&&i&&this.radioGroup._radios.length>0&&setTimeout(()=>{(this.radioGroup.selected?this.radioGroup.selected:this.radioGroup._radios.first).focus()})})}onContainerClick(){}ngOnDestroy(){super.ngOnDestroy(),this.focusObserver&&this.focusObserver.unsubscribe()}};n.\u0275fac=(()=>{let i;return function(o){return(i||(i=ge(n)))(o||n)}})(),n.\u0275cmp=E({type:n,selectors:[["formly-field-mat-radio"]],viewQuery:function(r,o){if(r&1&&ie(kg,7),r&2){let a;j(a=H())&&(o.radioGroup=a.first)}},standalone:!1,features:[le],decls:5,vars:9,consts:[[3,"formControl","formlyAttributes","required","tabindex"],[3,"id","color","labelPosition","disabled","value"]],template:function(r,o){r&1&&(m(0,"mat-radio-group",0),xt(1,Xte,2,6,"mat-radio-button",1,Ui),ue(3,"formlySelectOptions"),ue(4,"async"),h()),r&2&&(v("formControl",o.formControl)("formlyAttributes",o.field)("required",o.required)("tabindex",o.props.tabindex),f(),Ct(Oe(4,7,Ei(3,4,o.props.options,o.field))))},dependencies:[qt,Io,To,kg,wk,ra,sn,Ah],encapsulation:2,changeDetection:0});let t=n;return t})();function F3(){return{types:[{name:"radio",component:Jte,wrappers:["form-field"]}]}}var eie=["input"],tie=["label"],iie=["*"],nie=new O("mat-checkbox-default-options",{providedIn:"root",factory:L3});function L3(){return{color:"accent",clickAction:"check-indeterminate",disabledInteractive:!1}}var Er=(function(t){return t[t.Init=0]="Init",t[t.Checked=1]="Checked",t[t.Unchecked=2]="Unchecked",t[t.Indeterminate=3]="Indeterminate",t})(Er||{}),Ek=class{source;checked},N3=L3(),ja=(()=>{class t{_elementRef=u(Y);_changeDetectorRef=u(ye);_ngZone=u(ae);_animationsDisabled=Ye();_options=u(nie,{optional:!0});focus(){this._inputElement.nativeElement.focus()}_createChangeEvent(e){let i=new Ek;return i.source=this,i.checked=e,i}_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;labelPosition="after";name=null;change=new U;indeterminateChange=new U;value;disableRipple;_inputElement;_labelElement;tabIndex;color;disabledInteractive;_onTouched=()=>{};_currentAnimationClass="";_currentCheckState=Er.Init;_controlValueAccessorChangeFn=()=>{};_validatorChangeFn=()=>{};constructor(){u(ht).load(ki);let e=u(new Oi("tabindex"),{optional:!0});this._options=this._options||N3,this.color=this._options.color||N3.color,this.tabIndex=e==null?0:parseInt(e)||0,this.id=this._uniqueId=u(Ze).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 i=e!=this._indeterminate();this._indeterminate.set(e),i&&(e?this._transitionCheckState(Er.Indeterminate):this._transitionCheckState(this.checked?Er.Checked:Er.Unchecked),this.indeterminateChange.emit(e)),this._syncIndeterminate(e)}_indeterminate=he(!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 i=this._currentCheckState,r=this._getAnimationTargetElement();if(!(i===e||!r)&&(this._currentAnimationClass&&r.classList.remove(this._currentAnimationClass),this._currentAnimationClass=this._getAnimationClassForCheckStateTransition(i,e),this._currentCheckState=e,this._currentAnimationClass.length>0)){r.classList.add(this._currentAnimationClass);let o=this._currentAnimationClass;this._ngZone.runOutsideAngular(()=>{setTimeout(()=>{r.classList.remove(o)},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?Er.Checked:Er.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,i){if(this._animationsDisabled)return"";switch(e){case Er.Init:if(i===Er.Checked)return this._animationClasses.uncheckedToChecked;if(i==Er.Indeterminate)return this._checked?this._animationClasses.checkedToIndeterminate:this._animationClasses.uncheckedToIndeterminate;break;case Er.Unchecked:return i===Er.Checked?this._animationClasses.uncheckedToChecked:this._animationClasses.uncheckedToIndeterminate;case Er.Checked:return i===Er.Unchecked?this._animationClasses.checkedToUnchecked:this._animationClasses.checkedToIndeterminate;case Er.Indeterminate:return i===Er.Checked?this._animationClasses.indeterminateToChecked:this._animationClasses.indeterminateToUnchecked}return""}_syncIndeterminate(e){let i=this._inputElement;i&&(i.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(i){return new(i||t)};static \u0275cmp=E({type:t,selectors:[["mat-checkbox"]],viewQuery:function(i,r){if(i&1&&(ie(eie,5),ie(tie,5)),i&2){let o;j(o=H())&&(r._inputElement=o.first),j(o=H())&&(r._labelElement=o.first)}},hostAttrs:[1,"mat-mdc-checkbox"],hostVars:16,hostBindings:function(i,r){i&2&&(ci("id",r.id),X("tabindex",null)("aria-label",null)("aria-labelledby",null),nt(r.color?"mat-"+r.color:"mat-accent"),G("_mat-animation-noopable",r._animationsDisabled)("mdc-checkbox--disabled",r.disabled)("mat-mdc-checkbox-disabled",r.disabled)("mat-mdc-checkbox-checked",r.checked)("mat-mdc-checkbox-disabled-interactive",r.disabledInteractive))},inputs:{ariaLabel:[0,"aria-label","ariaLabel"],ariaLabelledby:[0,"aria-labelledby","ariaLabelledby"],ariaDescribedby:[0,"aria-describedby","ariaDescribedby"],ariaExpanded:[2,"aria-expanded","ariaExpanded",L],ariaControls:[0,"aria-controls","ariaControls"],ariaOwns:[0,"aria-owns","ariaOwns"],id:"id",required:[2,"required","required",L],labelPosition:"labelPosition",name:"name",value:"value",disableRipple:[2,"disableRipple","disableRipple",L],tabIndex:[2,"tabIndex","tabIndex",e=>e==null?void 0:dt(e)],color:"color",disabledInteractive:[2,"disabledInteractive","disabledInteractive",L],checked:[2,"checked","checked",L],disabled:[2,"disabled","disabled",L],indeterminate:[2,"indeterminate","indeterminate",L]},outputs:{change:"change",indeterminateChange:"indeterminateChange"},exportAs:["matCheckbox"],features:[Ce([{provide:rr,useExisting:ri(()=>t),multi:!0},{provide:na,useExisting:t,multi:!0}]),Ae],ngContentSelectors:iie,decls:15,vars:23,consts:[["checkbox",""],["input",""],["label",""],["mat-internal-form-field","",3,"click","labelPosition"],[1,"mdc-checkbox"],[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"],[1,"mdc-checkbox__ripple"],[1,"mdc-checkbox__background"],["focusable","false","viewBox","0 0 24 24","aria-hidden","true",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","",1,"mat-mdc-checkbox-ripple","mat-focus-indicator",3,"matRippleTrigger","matRippleDisabled","matRippleCentered"],[1,"mdc-label",3,"for"]],template:function(i,r){if(i&1){let o=q();Se(),m(0,"div",3),S("click",function(s){return T(o),I(r._preventBubblingFromLabel(s))}),m(1,"div",4,0)(3,"div",5),S("click",function(){return T(o),I(r._onTouchTargetClick())}),h(),m(4,"input",6,1),S("blur",function(){return T(o),I(r._onBlur())})("click",function(){return T(o),I(r._onInputClick())})("change",function(s){return T(o),I(r._onInteractionEvent(s))}),h(),M(6,"div",7),m(7,"div",8),Zt(),m(8,"svg",9),M(9,"path",10),h(),Wo(),M(10,"div",11),h(),M(11,"div",12),h(),m(12,"label",13,2),ne(14),h()()}if(i&2){let o=Me(2);v("labelPosition",r.labelPosition),f(4),G("mdc-checkbox--selected",r.checked),v("checked",r.checked)("indeterminate",r.indeterminate)("disabled",r.disabled&&!r.disabledInteractive)("id",r.inputId)("required",r.required)("tabIndex",r.disabled&&!r.disabledInteractive?-1:r.tabIndex),X("aria-label",r.ariaLabel||null)("aria-labelledby",r.ariaLabelledby)("aria-describedby",r.ariaDescribedby)("aria-checked",r.indeterminate?"mixed":null)("aria-controls",r.ariaControls)("aria-disabled",r.disabled&&r.disabledInteractive?!0:null)("aria-expanded",r.ariaExpanded)("aria-owns",r.ariaOwns)("name",r.name)("value",r.value),f(7),v("matRippleTrigger",o)("matRippleDisabled",r.disableRipple||r.disabled)("matRippleCentered",!0),f(),v("for",r.inputId)}},dependencies:[jn,Zm],styles:[`.mdc-checkbox{display:inline-block;position:relative;flex:0 0 18px;box-sizing:content-box;width:18px;height:18px;line-height:0;white-space:nowrap;cursor:pointer;vertical-align:bottom;padding:calc((var(--mat-checkbox-state-layer-size, 40px) - 18px)/2);margin:calc((var(--mat-checkbox-state-layer-size, 40px) - var(--mat-checkbox-state-layer-size, 40px))/2)}.mdc-checkbox:hover>.mdc-checkbox__ripple{opacity:var(--mat-checkbox-unselected-hover-state-layer-opacity, var(--mat-sys-hover-state-layer-opacity));background-color:var(--mat-checkbox-unselected-hover-state-layer-color, var(--mat-sys-on-surface))}.mdc-checkbox:hover>.mat-mdc-checkbox-ripple>.mat-ripple-element{background-color:var(--mat-checkbox-unselected-hover-state-layer-color, var(--mat-sys-on-surface))}.mdc-checkbox .mdc-checkbox__native-control:focus+.mdc-checkbox__ripple{opacity:var(--mat-checkbox-unselected-focus-state-layer-opacity, var(--mat-sys-focus-state-layer-opacity));background-color:var(--mat-checkbox-unselected-focus-state-layer-color, var(--mat-sys-on-surface))}.mdc-checkbox .mdc-checkbox__native-control:focus~.mat-mdc-checkbox-ripple .mat-ripple-element{background-color:var(--mat-checkbox-unselected-focus-state-layer-color, var(--mat-sys-on-surface))}.mdc-checkbox:active>.mdc-checkbox__native-control+.mdc-checkbox__ripple{opacity:var(--mat-checkbox-unselected-pressed-state-layer-opacity, var(--mat-sys-pressed-state-layer-opacity));background-color:var(--mat-checkbox-unselected-pressed-state-layer-color, var(--mat-sys-primary))}.mdc-checkbox:active>.mdc-checkbox__native-control~.mat-mdc-checkbox-ripple .mat-ripple-element{background-color:var(--mat-checkbox-unselected-pressed-state-layer-color, var(--mat-sys-primary))}.mdc-checkbox:hover .mdc-checkbox__native-control:checked+.mdc-checkbox__ripple{opacity:var(--mat-checkbox-selected-hover-state-layer-opacity, var(--mat-sys-hover-state-layer-opacity));background-color:var(--mat-checkbox-selected-hover-state-layer-color, var(--mat-sys-primary))}.mdc-checkbox:hover .mdc-checkbox__native-control:checked~.mat-mdc-checkbox-ripple .mat-ripple-element{background-color:var(--mat-checkbox-selected-hover-state-layer-color, var(--mat-sys-primary))}.mdc-checkbox .mdc-checkbox__native-control:focus:checked+.mdc-checkbox__ripple{opacity:var(--mat-checkbox-selected-focus-state-layer-opacity, var(--mat-sys-focus-state-layer-opacity));background-color:var(--mat-checkbox-selected-focus-state-layer-color, var(--mat-sys-primary))}.mdc-checkbox .mdc-checkbox__native-control:focus:checked~.mat-mdc-checkbox-ripple .mat-ripple-element{background-color:var(--mat-checkbox-selected-focus-state-layer-color, var(--mat-sys-primary))}.mdc-checkbox:active>.mdc-checkbox__native-control:checked+.mdc-checkbox__ripple{opacity:var(--mat-checkbox-selected-pressed-state-layer-opacity, var(--mat-sys-pressed-state-layer-opacity));background-color:var(--mat-checkbox-selected-pressed-state-layer-color, var(--mat-sys-on-surface))}.mdc-checkbox:active>.mdc-checkbox__native-control:checked~.mat-mdc-checkbox-ripple .mat-ripple-element{background-color:var(--mat-checkbox-selected-pressed-state-layer-color, var(--mat-sys-on-surface))}.mdc-checkbox--disabled.mat-mdc-checkbox-disabled-interactive .mdc-checkbox .mdc-checkbox__native-control~.mat-mdc-checkbox-ripple .mat-ripple-element,.mdc-checkbox--disabled.mat-mdc-checkbox-disabled-interactive .mdc-checkbox .mdc-checkbox__native-control+.mdc-checkbox__ripple{background-color:var(--mat-checkbox-unselected-hover-state-layer-color, var(--mat-sys-on-surface))}.mdc-checkbox .mdc-checkbox__native-control{position:absolute;margin:0;padding:0;opacity:0;cursor:inherit;z-index:1;width:var(--mat-checkbox-state-layer-size, 40px);height:var(--mat-checkbox-state-layer-size, 40px);top:calc((var(--mat-checkbox-state-layer-size, 40px) - var(--mat-checkbox-state-layer-size, 40px))/2);right:calc((var(--mat-checkbox-state-layer-size, 40px) - var(--mat-checkbox-state-layer-size, 40px))/2);left:calc((var(--mat-checkbox-state-layer-size, 40px) - var(--mat-checkbox-state-layer-size, 40px))/2)}.mdc-checkbox--disabled{cursor:default;pointer-events:none}.mdc-checkbox__background{display:inline-flex;position:absolute;align-items:center;justify-content:center;box-sizing:border-box;width:18px;height:18px;border:2px solid currentColor;border-radius:2px;background-color:rgba(0,0,0,0);pointer-events:none;will-change:background-color,border-color;transition:background-color 90ms cubic-bezier(0.4, 0, 0.6, 1),border-color 90ms cubic-bezier(0.4, 0, 0.6, 1);-webkit-print-color-adjust:exact;color-adjust:exact;border-color:var(--mat-checkbox-unselected-icon-color, var(--mat-sys-on-surface-variant));top:calc((var(--mat-checkbox-state-layer-size, 40px) - 18px)/2);left:calc((var(--mat-checkbox-state-layer-size, 40px) - 18px)/2)}.mdc-checkbox__native-control:enabled:checked~.mdc-checkbox__background,.mdc-checkbox__native-control:enabled:indeterminate~.mdc-checkbox__background{border-color:var(--mat-checkbox-selected-icon-color, var(--mat-sys-primary));background-color:var(--mat-checkbox-selected-icon-color, var(--mat-sys-primary))}.mdc-checkbox--disabled .mdc-checkbox__background{border-color:var(--mat-checkbox-disabled-unselected-icon-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent))}@media(forced-colors: active){.mdc-checkbox--disabled .mdc-checkbox__background{border-color:GrayText}}.mdc-checkbox__native-control:disabled:checked~.mdc-checkbox__background,.mdc-checkbox__native-control:disabled:indeterminate~.mdc-checkbox__background{background-color:var(--mat-checkbox-disabled-selected-icon-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent));border-color:rgba(0,0,0,0)}@media(forced-colors: active){.mdc-checkbox__native-control:disabled:checked~.mdc-checkbox__background,.mdc-checkbox__native-control:disabled:indeterminate~.mdc-checkbox__background{border-color:GrayText}}.mdc-checkbox:hover>.mdc-checkbox__native-control:not(:checked)~.mdc-checkbox__background,.mdc-checkbox:hover>.mdc-checkbox__native-control:not(:indeterminate)~.mdc-checkbox__background{border-color:var(--mat-checkbox-unselected-hover-icon-color, var(--mat-sys-on-surface));background-color:rgba(0,0,0,0)}.mdc-checkbox:hover>.mdc-checkbox__native-control:checked~.mdc-checkbox__background,.mdc-checkbox:hover>.mdc-checkbox__native-control:indeterminate~.mdc-checkbox__background{border-color:var(--mat-checkbox-selected-hover-icon-color, var(--mat-sys-primary));background-color:var(--mat-checkbox-selected-hover-icon-color, var(--mat-sys-primary))}.mdc-checkbox__native-control:focus:focus:not(:checked)~.mdc-checkbox__background,.mdc-checkbox__native-control:focus:focus:not(:indeterminate)~.mdc-checkbox__background{border-color:var(--mat-checkbox-unselected-focus-icon-color, var(--mat-sys-on-surface))}.mdc-checkbox__native-control:focus:focus:checked~.mdc-checkbox__background,.mdc-checkbox__native-control:focus:focus:indeterminate~.mdc-checkbox__background{border-color:var(--mat-checkbox-selected-focus-icon-color, var(--mat-sys-primary));background-color:var(--mat-checkbox-selected-focus-icon-color, var(--mat-sys-primary))}.mdc-checkbox--disabled.mat-mdc-checkbox-disabled-interactive .mdc-checkbox:hover>.mdc-checkbox__native-control~.mdc-checkbox__background,.mdc-checkbox--disabled.mat-mdc-checkbox-disabled-interactive .mdc-checkbox .mdc-checkbox__native-control:focus~.mdc-checkbox__background,.mdc-checkbox--disabled.mat-mdc-checkbox-disabled-interactive .mdc-checkbox__background{border-color:var(--mat-checkbox-disabled-unselected-icon-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent))}@media(forced-colors: active){.mdc-checkbox--disabled.mat-mdc-checkbox-disabled-interactive .mdc-checkbox:hover>.mdc-checkbox__native-control~.mdc-checkbox__background,.mdc-checkbox--disabled.mat-mdc-checkbox-disabled-interactive .mdc-checkbox .mdc-checkbox__native-control:focus~.mdc-checkbox__background,.mdc-checkbox--disabled.mat-mdc-checkbox-disabled-interactive .mdc-checkbox__background{border-color:GrayText}}.mdc-checkbox--disabled.mat-mdc-checkbox-disabled-interactive .mdc-checkbox__native-control:checked~.mdc-checkbox__background,.mdc-checkbox--disabled.mat-mdc-checkbox-disabled-interactive .mdc-checkbox__native-control:indeterminate~.mdc-checkbox__background{background-color:var(--mat-checkbox-disabled-selected-icon-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent));border-color:rgba(0,0,0,0)}.mdc-checkbox__checkmark{position:absolute;top:0;right:0;bottom:0;left:0;width:100%;opacity:0;transition:opacity 180ms cubic-bezier(0.4, 0, 0.6, 1);color:var(--mat-checkbox-selected-checkmark-color, var(--mat-sys-on-primary))}@media(forced-colors: active){.mdc-checkbox__checkmark{color:CanvasText}}.mdc-checkbox--disabled .mdc-checkbox__checkmark,.mdc-checkbox--disabled.mat-mdc-checkbox-disabled-interactive .mdc-checkbox__checkmark{color:var(--mat-checkbox-disabled-selected-checkmark-color, var(--mat-sys-surface))}@media(forced-colors: active){.mdc-checkbox--disabled .mdc-checkbox__checkmark,.mdc-checkbox--disabled.mat-mdc-checkbox-disabled-interactive .mdc-checkbox__checkmark{color:GrayText}}.mdc-checkbox__checkmark-path{transition:stroke-dashoffset 180ms cubic-bezier(0.4, 0, 0.6, 1);stroke:currentColor;stroke-width:3.12px;stroke-dashoffset:29.7833385;stroke-dasharray:29.7833385}.mdc-checkbox__mixedmark{width:100%;height:0;transform:scaleX(0) rotate(0deg);border-width:1px;border-style:solid;opacity:0;transition:opacity 90ms cubic-bezier(0.4, 0, 0.6, 1),transform 90ms cubic-bezier(0.4, 0, 0.6, 1);border-color:var(--mat-checkbox-selected-checkmark-color, var(--mat-sys-on-primary))}@media(forced-colors: active){.mdc-checkbox__mixedmark{margin:0 1px}}.mdc-checkbox--disabled .mdc-checkbox__mixedmark,.mdc-checkbox--disabled.mat-mdc-checkbox-disabled-interactive .mdc-checkbox__mixedmark{border-color:var(--mat-checkbox-disabled-selected-checkmark-color, var(--mat-sys-surface))}@media(forced-colors: active){.mdc-checkbox--disabled .mdc-checkbox__mixedmark,.mdc-checkbox--disabled.mat-mdc-checkbox-disabled-interactive .mdc-checkbox__mixedmark{border-color:GrayText}}.mdc-checkbox--anim-unchecked-checked .mdc-checkbox__background,.mdc-checkbox--anim-unchecked-indeterminate .mdc-checkbox__background,.mdc-checkbox--anim-checked-unchecked .mdc-checkbox__background,.mdc-checkbox--anim-indeterminate-unchecked .mdc-checkbox__background{animation-duration:180ms;animation-timing-function:linear}.mdc-checkbox--anim-unchecked-checked .mdc-checkbox__checkmark-path{animation:mdc-checkbox-unchecked-checked-checkmark-path 180ms linear;transition:none}.mdc-checkbox--anim-unchecked-indeterminate .mdc-checkbox__mixedmark{animation:mdc-checkbox-unchecked-indeterminate-mixedmark 90ms linear;transition:none}.mdc-checkbox--anim-checked-unchecked .mdc-checkbox__checkmark-path{animation:mdc-checkbox-checked-unchecked-checkmark-path 90ms linear;transition:none}.mdc-checkbox--anim-checked-indeterminate .mdc-checkbox__checkmark{animation:mdc-checkbox-checked-indeterminate-checkmark 90ms linear;transition:none}.mdc-checkbox--anim-checked-indeterminate .mdc-checkbox__mixedmark{animation:mdc-checkbox-checked-indeterminate-mixedmark 90ms linear;transition:none}.mdc-checkbox--anim-indeterminate-checked .mdc-checkbox__checkmark{animation:mdc-checkbox-indeterminate-checked-checkmark 500ms linear;transition:none}.mdc-checkbox--anim-indeterminate-checked .mdc-checkbox__mixedmark{animation:mdc-checkbox-indeterminate-checked-mixedmark 500ms linear;transition:none}.mdc-checkbox--anim-indeterminate-unchecked .mdc-checkbox__mixedmark{animation:mdc-checkbox-indeterminate-unchecked-mixedmark 300ms linear;transition:none}.mdc-checkbox__native-control:checked~.mdc-checkbox__background,.mdc-checkbox__native-control:indeterminate~.mdc-checkbox__background{transition:border-color 90ms cubic-bezier(0, 0, 0.2, 1),background-color 90ms cubic-bezier(0, 0, 0.2, 1)}.mdc-checkbox__native-control:checked~.mdc-checkbox__background>.mdc-checkbox__checkmark>.mdc-checkbox__checkmark-path,.mdc-checkbox__native-control:indeterminate~.mdc-checkbox__background>.mdc-checkbox__checkmark>.mdc-checkbox__checkmark-path{stroke-dashoffset:0}.mdc-checkbox__native-control:checked~.mdc-checkbox__background>.mdc-checkbox__checkmark{transition:opacity 180ms cubic-bezier(0, 0, 0.2, 1),transform 180ms cubic-bezier(0, 0, 0.2, 1);opacity:1}.mdc-checkbox__native-control:checked~.mdc-checkbox__background>.mdc-checkbox__mixedmark{transform:scaleX(1) rotate(-45deg)}.mdc-checkbox__native-control:indeterminate~.mdc-checkbox__background>.mdc-checkbox__checkmark{transform:rotate(45deg);opacity:0;transition:opacity 90ms cubic-bezier(0.4, 0, 0.6, 1),transform 90ms cubic-bezier(0.4, 0, 0.6, 1)}.mdc-checkbox__native-control:indeterminate~.mdc-checkbox__background>.mdc-checkbox__mixedmark{transform:scaleX(1) rotate(0deg);opacity:1}@keyframes mdc-checkbox-unchecked-checked-checkmark-path{0%,50%{stroke-dashoffset:29.7833385}50%{animation-timing-function:cubic-bezier(0, 0, 0.2, 1)}100%{stroke-dashoffset:0}}@keyframes mdc-checkbox-unchecked-indeterminate-mixedmark{0%,68.2%{transform:scaleX(0)}68.2%{animation-timing-function:cubic-bezier(0, 0, 0, 1)}100%{transform:scaleX(1)}}@keyframes mdc-checkbox-checked-unchecked-checkmark-path{from{animation-timing-function:cubic-bezier(0.4, 0, 1, 1);opacity:1;stroke-dashoffset:0}to{opacity:0;stroke-dashoffset:-29.7833385}}@keyframes mdc-checkbox-checked-indeterminate-checkmark{from{animation-timing-function:cubic-bezier(0, 0, 0.2, 1);transform:rotate(0deg);opacity:1}to{transform:rotate(45deg);opacity:0}}@keyframes mdc-checkbox-indeterminate-checked-checkmark{from{animation-timing-function:cubic-bezier(0.14, 0, 0, 1);transform:rotate(45deg);opacity:0}to{transform:rotate(360deg);opacity:1}}@keyframes mdc-checkbox-checked-indeterminate-mixedmark{from{animation-timing-function:cubic-bezier(0, 0, 0.2, 1);transform:rotate(-45deg);opacity:0}to{transform:rotate(0deg);opacity:1}}@keyframes mdc-checkbox-indeterminate-checked-mixedmark{from{animation-timing-function:cubic-bezier(0.14, 0, 0, 1);transform:rotate(0deg);opacity:1}to{transform:rotate(315deg);opacity:0}}@keyframes mdc-checkbox-indeterminate-unchecked-mixedmark{0%{animation-timing-function:linear;transform:scaleX(1);opacity:1}32.8%,100%{transform:scaleX(0);opacity:0}}.mat-mdc-checkbox{display:inline-block;position:relative;-webkit-tap-highlight-color:rgba(0,0,0,0)}.mat-mdc-checkbox._mat-animation-noopable>.mat-internal-form-field>.mdc-checkbox>.mat-mdc-checkbox-touch-target,.mat-mdc-checkbox._mat-animation-noopable>.mat-internal-form-field>.mdc-checkbox>.mdc-checkbox__native-control,.mat-mdc-checkbox._mat-animation-noopable>.mat-internal-form-field>.mdc-checkbox>.mdc-checkbox__ripple,.mat-mdc-checkbox._mat-animation-noopable>.mat-internal-form-field>.mdc-checkbox>.mat-mdc-checkbox-ripple::before,.mat-mdc-checkbox._mat-animation-noopable>.mat-internal-form-field>.mdc-checkbox>.mdc-checkbox__background,.mat-mdc-checkbox._mat-animation-noopable>.mat-internal-form-field>.mdc-checkbox>.mdc-checkbox__background>.mdc-checkbox__checkmark,.mat-mdc-checkbox._mat-animation-noopable>.mat-internal-form-field>.mdc-checkbox>.mdc-checkbox__background>.mdc-checkbox__checkmark>.mdc-checkbox__checkmark-path,.mat-mdc-checkbox._mat-animation-noopable>.mat-internal-form-field>.mdc-checkbox>.mdc-checkbox__background>.mdc-checkbox__mixedmark{transition:none !important;animation:none !important}.mat-mdc-checkbox label{cursor:pointer}.mat-mdc-checkbox .mat-internal-form-field{color:var(--mat-checkbox-label-text-color, var(--mat-sys-on-surface));font-family:var(--mat-checkbox-label-text-font, var(--mat-sys-body-medium-font));line-height:var(--mat-checkbox-label-text-line-height, var(--mat-sys-body-medium-line-height));font-size:var(--mat-checkbox-label-text-size, var(--mat-sys-body-medium-size));letter-spacing:var(--mat-checkbox-label-text-tracking, var(--mat-sys-body-medium-tracking));font-weight:var(--mat-checkbox-label-text-weight, var(--mat-sys-body-medium-weight))}.mat-mdc-checkbox.mat-mdc-checkbox-disabled.mat-mdc-checkbox-disabled-interactive{pointer-events:auto}.mat-mdc-checkbox.mat-mdc-checkbox-disabled.mat-mdc-checkbox-disabled-interactive input{cursor:default}.mat-mdc-checkbox.mat-mdc-checkbox-disabled label{cursor:default;color:var(--mat-checkbox-disabled-label-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent))}@media(forced-colors: active){.mat-mdc-checkbox.mat-mdc-checkbox-disabled label{color:GrayText}}.mat-mdc-checkbox label:empty{display:none}.mat-mdc-checkbox .mdc-checkbox__ripple{opacity:0}.mat-mdc-checkbox .mat-mdc-checkbox-ripple,.mdc-checkbox__ripple{top:0;left:0;right:0;bottom:0;position:absolute;border-radius:50%;pointer-events:none}.mat-mdc-checkbox .mat-mdc-checkbox-ripple:not(:empty),.mdc-checkbox__ripple:not(:empty){transform:translateZ(0)}.mat-mdc-checkbox-ripple .mat-ripple-element{opacity:.1}.mat-mdc-checkbox-touch-target{position:absolute;top:50%;left:50%;height:var(--mat-checkbox-touch-target-size, 48px);width:var(--mat-checkbox-touch-target-size, 48px);transform:translate(-50%, -50%);display:var(--mat-checkbox-touch-target-display, block)}.mat-mdc-checkbox .mat-mdc-checkbox-ripple::before{border-radius:50%}.mdc-checkbox__native-control:focus~.mat-focus-indicator::before{content:""} +`],encapsulation:2,changeDetection:0})}return t})(),Ex=(()=>{class t{static \u0275fac=function(i){return new(i||t)};static \u0275mod=ee({type:t});static \u0275inj=J({imports:[ja,De,De]})}return t})();function rie(t,n){t&1&&(m(0,"span",1),g(1,"*"),h())}var oie=(()=>{let n=class n extends oo{constructor(i,r){super(),this.renderer=i,this.focusMonitor=r,this.defaultOptions={props:{hideFieldUnderline:!0,indeterminate:!0,floatLabel:"always",hideLabel:!0,color:"accent"}}}onContainerClick(i){this.checkbox.focus(),super.onContainerClick(i)}ngAfterViewInit(){this.checkbox&&this.focusMonitor.monitor(this.checkbox._inputElement,!0).subscribe(i=>{this.field.focus=!!i,this.stateChanges.next(),i?this.props.focus&&this.props.focus(this.field):this.props.blur&&this.props.blur(this.field)})}ngAfterViewChecked(){if(this.required!==this._required&&this.checkbox&&this.checkbox._inputElement){this._required=this.required;let i=this.checkbox._inputElement.nativeElement;this.required?this.renderer.setAttribute(i,"required","required"):this.renderer.removeAttribute(i,"required")}}ngOnDestroy(){super.ngOnDestroy(),this.checkbox&&this.focusMonitor.stopMonitoring(this.checkbox._inputElement)}};n.\u0275fac=function(r){return new(r||n)(be(ze),be(ti))},n.\u0275cmp=E({type:n,selectors:[["formly-field-mat-checkbox"]],viewQuery:function(r,o){if(r&1&&ie(ja,7),r&2){let a;j(a=H())&&(o.checkbox=a.first)}},standalone:!1,features:[le],decls:3,vars:10,consts:[[3,"formControl","id","name","formlyAttributes","tabIndex","indeterminate","color","labelPosition"],["aria-hidden","true",1,"mat-form-field-required-marker","mat-mdc-form-field-required-marker"]],template:function(r,o){r&1&&(m(0,"mat-checkbox",0),g(1),V(2,rie,2,0,"span",1),h()),r&2&&(v("formControl",o.formControl)("id",o.id)("name",o.field.name)("formlyAttributes",o.field)("tabIndex",o.props.tabindex)("indeterminate",o.props.indeterminate&&o.formControl.value==null)("color",o.props.color)("labelPosition",o.props.labelPosition),f(),pe(" ",o.props.label," "),f(),B(o.props.required&&o.props.hideRequiredMarker!==!0?2:-1))},dependencies:[qt,To,ja,ra],encapsulation:2,changeDetection:0});let t=n;return t})();function V3(){return{types:[{name:"checkbox",component:oie,wrappers:["form-field"]},{name:"boolean",extends:"checkbox"}]}}function aie(t,n){if(t&1){let e=q();m(0,"mat-checkbox",1),S("change",function(r){let o=T(e).$implicit,a=x();return I(a.onChange(o.value,r.checked))}),g(1),h()}if(t&2){let e=n.$implicit,i=n.$index,r=x();v("id",r.id+"_"+i)("formlyAttributes",r.field)("tabIndex",r.props.tabindex)("color",r.props.color)("labelPosition",r.props.labelPosition)("checked",r.isChecked(e))("disabled",r.formControl.disabled||e.disabled),f(),pe(" ",e.label," ")}}var sie=(()=>{let n=class n extends oo{constructor(){super(...arguments),this.defaultOptions={props:{hideFieldUnderline:!0,floatLabel:"always",color:"accent"}}}onChange(i,r){this.formControl.markAsDirty(),this.props.type==="array"?this.formControl.patchValue(r?[...this.formControl.value||[],i]:[...this.formControl.value||[]].filter(o=>o!==i)):this.formControl.patchValue(Ee(k({},this.formControl.value),{[i]:r})),this.formControl.markAsTouched()}onContainerClick(){}isChecked(i){let r=this.formControl.value;return r&&(this.props.type==="array"?r.indexOf(i.value)!==-1:r[i.value])}};n.\u0275fac=(()=>{let i;return function(o){return(i||(i=ge(n)))(o||n)}})(),n.\u0275cmp=E({type:n,selectors:[["formly-field-mat-multicheckbox"]],viewQuery:function(r,o){if(r&1&&ie(ja,5),r&2){let a;j(a=H())&&(o.checkboxes=a)}},hostVars:1,hostBindings:function(r,o){r&2&&ci("id",o.id)},standalone:!1,features:[le],decls:4,vars:5,consts:[[3,"id","formlyAttributes","tabIndex","color","labelPosition","checked","disabled"],[3,"change","id","formlyAttributes","tabIndex","color","labelPosition","checked","disabled"]],template:function(r,o){r&1&&(xt(0,aie,2,8,"mat-checkbox",0,Ui),ue(2,"formlySelectOptions"),ue(3,"async")),r&2&&Ct(Oe(3,3,Ei(2,0,o.props.options,o.field)))},dependencies:[ja,ra,sn,Ah],encapsulation:2,changeDetection:0});let t=n;return t})();function B3(){return{types:[{name:"multicheckbox",component:sie,wrappers:["form-field"]}]}}var lie=t=>({selectOptions:t});function cie(t,n){if(t&1){let e=q();m(0,"mat-option",2),S("click",function(){let r=T(e).selectOptions,o=x();return I(o.toggleSelectAll(r))}),M(1,"mat-pseudo-checkbox",3),g(2),h()}if(t&2){let e=n.selectOptions,i=x();f(),v("state",i.getSelectAllState(e)),f(),pe(" ",i.props.selectAllOption," ")}}function die(t,n){if(t&1&&Ge(0,4),t&2){let e=x();x();let i=Me(1);v("ngTemplateOutlet",i)("ngTemplateOutletContext",Nt(2,lie,e))}}function uie(t,n){if(t&1&&(m(0,"mat-option",6),g(1),h()),t&2){let e=n.$implicit;v("value",e.value)("disabled",e.disabled),f(),pe(" ",e.label," ")}}function mie(t,n){if(t&1&&(m(0,"mat-optgroup",5),xt(1,uie,2,3,"mat-option",6,Ui),h()),t&2){let e=x().$implicit;v("label",e.label),f(),Ct(e.group)}}function hie(t,n){if(t&1&&(m(0,"mat-option",6),g(1),h()),t&2){let e=x().$implicit;v("value",e.value)("disabled",e.disabled),f(),N(e.label)}}function pie(t,n){if(t&1&&V(0,mie,3,1,"mat-optgroup",5)(1,hie,2,3,"mat-option",6),t&2){let e=n.$implicit;B(e.group?0:1)}}function fie(t,n){if(t&1&&(V(0,die,1,4,"ng-container",4),xt(1,pie,2,1,null,null,Ui)),t&2){let e=x();B(e.props.multiple&&e.props.selectAllOption?0:-1),f(),Ct(n)}}var gie=(()=>{let n=class n extends oo{constructor(){super(...arguments),this.defaultOptions={props:{compareWith(i,r){return i===r}}}}set select(i){qi(i,["_parentFormField","_textField"],({currentValue:r})=>{r&&(i._preferredOverlayOrigin=i._parentFormField.getConnectedOverlayOrigin())})}getSelectAllState(i){return this.empty||this.value.length===0?null:this.value.length!==this.getSelectAllValue(i).length?"indeterminate":"checked"}toggleSelectAll(i){let r=this.getSelectAllValue(i);this.formControl.markAsDirty(),this.formControl.setValue(!this.value||this.value.length!==r.length?r:[])}change(i){this.props.change?.(this.field,i)}_getAriaLabelledby(){return this.props.attributes?.["aria-labelledby"]?this.props.attributes["aria-labelledby"]:this.formField?._labelId}_getAriaLabel(){return this.props.attributes?.["aria-label"]}getSelectAllValue(i){if(!this.selectAllValue||i!==this.selectAllValue.options){let r=[];i.forEach(o=>o.group?r.push(...o.group):r.push(o)),this.selectAllValue={options:i,value:r.filter(o=>!o.disabled).map(o=>o.value)}}return this.selectAllValue.value}};n.\u0275fac=(()=>{let i;return function(o){return(i||(i=ge(n)))(o||n)}})(),n.\u0275cmp=E({type:n,selectors:[["formly-field-mat-select"]],viewQuery:function(r,o){if(r&1&&ie(La,7),r&2){let a;j(a=H())&&(o.select=a.first)}},standalone:!1,features:[le],decls:6,vars:20,consts:[["selectAll",""],[3,"selectionChange","id","formControl","formlyAttributes","placeholder","tabIndex","required","compareWith","multiple","errorStateMatcher","aria-label","aria-labelledby","disableOptionCentering","typeaheadDebounceInterval","panelClass"],[3,"click"],[1,"mat-option-pseudo-checkbox",3,"state"],[3,"ngTemplateOutlet","ngTemplateOutletContext"],[3,"label"],[3,"value","disabled"]],template:function(r,o){if(r&1){let a=q();A(0,cie,3,2,"ng-template",null,0,vi),m(2,"mat-select",1),S("selectionChange",function(l){return T(a),I(o.change(l))}),V(3,fie,3,1),ue(4,"formlySelectOptions"),ue(5,"async"),h()}if(r&2){let a;f(2),v("id",o.id)("formControl",o.formControl)("formlyAttributes",o.field)("placeholder",o.props.placeholder)("tabIndex",o.props.tabindex)("required",o.required)("compareWith",o.props.compareWith)("multiple",o.props.multiple)("errorStateMatcher",o.errorStateMatcher),Xl("aria-label",o._getAriaLabel())("aria-labelledby",o._getAriaLabelledby()),v("disableOptionCentering",o.props.disableOptionCentering)("typeaheadDebounceInterval",o.props.typeaheadDebounceInterval)("panelClass",o.props.panelClass),f(),B((a=Oe(5,18,Ei(4,15,o.props.options,o.field)))?3:-1,a)}},dependencies:[Ln,qt,Io,To,La,wn,OS,tu,ra,sn,Ah],encapsulation:2,changeDetection:0});let t=n;return t})();function j3(){return{types:[{name:"select",component:gie,wrappers:["form-field"]},{name:"enum",extends:"select"}]}}function H3(){return[S3(),O3(),R3(),F3(),V3(),B3(),j3()]}var Ag=class{},U3=(()=>{class t{handle(e){return e.key}static \u0275fac=function(i){return new(i||t)};static \u0275prov=R({token:t,factory:t.\u0275fac})}return t})(),Oh=class{},$3=(()=>{class t extends Oh{compile(e,i){return e}compileTranslations(e,i){return e}static \u0275fac=(()=>{let e;return function(r){return(e||(e=ge(t)))(r||t)}})();static \u0275prov=R({token:t,factory:t.\u0275fac})}return t})(),Cc=class{},W3=(()=>{class t extends Cc{getTranslation(e){return Q({})}static \u0275fac=(()=>{let e;return function(r){return(e||(e=ge(t)))(r||t)}})();static \u0275prov=R({token:t,factory:t.\u0275fac})}return t})();function Og(t,n){if(t===n)return!0;if(t===null||n===null)return!1;if(t!==t&&n!==n)return!0;let e=typeof t,i=typeof n,r;if(e==i&&e=="object")if(Array.isArray(t)){if(!Array.isArray(n))return!1;if((r=t.length)==n.length){for(let o=0;oMx(n));if(fl(t)){let n={};return Object.keys(t).forEach(e=>{n[e]=Mx(t[e])}),n}else return t}function Ak(t,n){if(!Ig(t))return Mx(n);let e=Mx(t);return Ig(e)&&Ig(n)&&Object.keys(n).forEach(i=>{fl(n[i])?i in t?e[i]=Ak(t[i],n[i]):Object.assign(e,{[i]:n[i]}):Object.assign(e,{[i]:n[i]})}),e}function G3(t,n){let e=n.split(".");n="";do{n+=e.shift();let i=!e.length;if(Oo(t)){if(fl(t)&&z3(t[n])&&(fl(t[n])||vu(t[n])||i)){t=t[n],n="";continue}if(vu(t)){let r=parseInt(n,10);if(z3(t[r])&&(fl(t[r])||vu(t[r])||i)){t=t[r],n="";continue}}}if(i){t=void 0;continue}n+="."}while(e.length);return t}function bie(t,n,e){return Ak(t,vie(n,e))}function vie(t,n){return t.split(".").reduceRight((e,i)=>({[i]:e}),n)}var Rh=class{},q3=(()=>{class t extends Rh{templateMatcher=/{{\s?([^{}\s]*)\s?}}/g;interpolate(e,i){if(Rg(e))return this.interpolateString(e,i);if(_ie(e))return this.interpolateFunction(e,i)}interpolateFunction(e,i){return e(i)}interpolateString(e,i){return i?e.replace(this.templateMatcher,(r,o)=>{let a=this.getInterpolationReplacement(i,o);return a!==void 0?a:r}):e}getInterpolationReplacement(e,i){return this.formatValue(G3(e,i))}formatValue(e){if(Rg(e))return e;if(typeof e=="number"||typeof e=="boolean")return e.toString();if(e===null)return"null";if(vu(e))return e.join(", ");if(Ig(e))return typeof e.toString=="function"&&e.toString!==Object.prototype.toString?e.toString():JSON.stringify(e)}static \u0275fac=(()=>{let e;return function(r){return(e||(e=ge(t)))(r||t)}})();static \u0275prov=R({token:t,factory:t.\u0275fac})}return t})(),kk=(()=>{class t{_onTranslationChange=new z;_onLangChange=new z;_onFallbackLangChange=new z;fallbackLang=null;currentLang;translations={};languages=[];getTranslations(e){return this.translations[e]}setTranslations(e,i,r){this.translations[e]=r&&this.hasTranslationFor(e)?Ak(this.translations[e],i):i,this.addLanguages([e]),this._onTranslationChange.next({lang:e,translations:this.getTranslations(e)})}getLanguages(){return this.languages}getCurrentLang(){return this.currentLang}getFallbackLang(){return this.fallbackLang}setFallbackLang(e,i=!0){this.fallbackLang=e,i&&this._onFallbackLangChange.next({lang:e,translations:this.translations[e]})}setCurrentLang(e,i=!0){this.currentLang=e,i&&this._onLangChange.next({lang:e,translations:this.translations[e]})}get onTranslationChange(){return this._onTranslationChange.asObservable()}get onLangChange(){return this._onLangChange.asObservable()}get onFallbackLangChange(){return this._onFallbackLangChange.asObservable()}addLanguages(e){this.languages=Array.from(new Set([...this.languages,...e]))}hasTranslationFor(e){return typeof this.translations[e]<"u"}deleteTranslations(e){delete this.translations[e]}getTranslation(e){let i=this.getValue(this.currentLang,e);return i===void 0&&this.fallbackLang!=null&&this.fallbackLang!==this.currentLang&&(i=this.getValue(this.fallbackLang,e)),i}getValue(e,i){return G3(this.getTranslations(e),i)}static \u0275fac=function(i){return new(i||t)};static \u0275prov=R({token:t,factory:t.\u0275fac})}return t})(),Tk=new O("TRANSLATE_CONFIG"),Tg=t=>zi(t)?t:Q(t);var oa=(()=>{class t{loadingTranslations;pending=!1;_translationRequests={};lastUseLanguage=null;currentLoader=u(Cc);compiler=u(Oh);parser=u(Rh);missingTranslationHandler=u(Ag);store=u(kk);extend=!1;get onTranslationChange(){return this.store.onTranslationChange}get onLangChange(){return this.store.onLangChange}get onFallbackLangChange(){return this.store.onFallbackLangChange}get onDefaultLangChange(){return this.store.onFallbackLangChange}constructor(){let e=k({extend:!1,fallbackLang:null},u(Tk,{optional:!0}));e.lang&&this.use(e.lang),e.fallbackLang&&this.setFallbackLang(e.fallbackLang),e.extend&&(this.extend=!0)}setFallbackLang(e){this.getFallbackLang()||this.store.setFallbackLang(e,!1);let i=this.loadOrExtendLanguage(e);return zi(i)?(i.pipe(ct(1)).subscribe({next:()=>{this.store.setFallbackLang(e)},error:()=>{}}),i):(this.store.setFallbackLang(e),Q(this.store.getTranslations(e)))}use(e){this.lastUseLanguage=e,this.getCurrentLang()||this.store.setCurrentLang(e,!1);let i=this.loadOrExtendLanguage(e);return zi(i)?(i.pipe(ct(1)).subscribe({next:()=>{this.changeLang(e)},error:()=>{}}),i):(this.changeLang(e),Q(this.store.getTranslations(e)))}loadOrExtendLanguage(e){if(!this.store.hasTranslationFor(e)||this.extend)return this._translationRequests[e]=this._translationRequests[e]||this.loadAndCompileTranslations(e),this._translationRequests[e]}changeLang(e){e===this.lastUseLanguage&&this.store.setCurrentLang(e)}getCurrentLang(){return this.store.getCurrentLang()}loadAndCompileTranslations(e){this.pending=!0;let i=this.currentLoader.getTranslation(e).pipe(fd(1),ct(1));return this.loadingTranslations=i.pipe(se(r=>this.compiler.compileTranslations(r,e)),fd(1),ct(1)),this.loadingTranslations.subscribe({next:r=>{this.store.setTranslations(e,r,this.extend),this.pending=!1},error:r=>{this.pending=!1}}),i}setTranslation(e,i,r=!1){let o=this.compiler.compileTranslations(i,e);this.store.setTranslations(e,o,r||this.extend)}getLangs(){return this.store.getLanguages()}addLangs(e){this.store.addLanguages(e)}getParsedResultForKey(e,i){let r=this.getTextToInterpolate(e);if(Oo(r))return this.runInterpolation(r,i);let o=this.missingTranslationHandler.handle(k({key:e,translateService:this},i!==void 0&&{interpolateParams:i}));return o!==void 0?o:e}getFallbackLang(){return this.store.getFallbackLang()}getTextToInterpolate(e){return this.store.getTranslation(e)}runInterpolation(e,i){if(Oo(e))return vu(e)?this.runInterpolationOnArray(e,i):fl(e)?this.runInterpolationOnDict(e,i):this.parser.interpolate(e,i)}runInterpolationOnArray(e,i){return e.map(r=>this.runInterpolation(r,i))}runInterpolationOnDict(e,i){let r={};for(let o in e){let a=this.runInterpolation(e[o],i);a!==void 0&&(r[o]=a)}return r}getParsedResult(e,i){return e instanceof Array?this.getParsedResultForArray(e,i):this.getParsedResultForKey(e,i)}getParsedResultForArray(e,i){let r={},o=!1;for(let s of e)r[s]=this.getParsedResultForKey(s,i),o=o||zi(r[s]);if(!o)return r;let a=e.map(s=>Tg(r[s]));return qa(a).pipe(se(s=>{let l={};return s.forEach((c,d)=>{l[e[d]]=c}),l}))}get(e,i){if(!Oo(e)||!e.length)throw new Error('Parameter "key" is required and cannot be empty');return this.pending?this.loadingTranslations.pipe(No(()=>Tg(this.getParsedResult(e,i)))):Tg(this.getParsedResult(e,i))}getStreamOnTranslationChange(e,i){if(!Oo(e)||!e.length)throw new Error('Parameter "key" is required and cannot be empty');return bo(In(()=>this.get(e,i)),this.onTranslationChange.pipe(je(()=>{let r=this.getParsedResult(e,i);return Tg(r)})))}stream(e,i){if(!Oo(e)||!e.length)throw new Error('Parameter "key" required');return bo(In(()=>this.get(e,i)),this.onLangChange.pipe(je(()=>{let r=this.getParsedResult(e,i);return Tg(r)})))}instant(e,i){if(!Oo(e)||e.length===0)throw new Error('Parameter "key" is required and cannot be empty');let r=this.getParsedResult(e,i);return zi(r)?Array.isArray(e)?e.reduce((o,a)=>(o[a]=a,o),{}):e:r}set(e,i,r=this.getCurrentLang()){this.store.setTranslations(r,bie(this.store.getTranslations(r),e,Rg(i)?this.compiler.compile(i,r):this.compiler.compileTranslations(i,r)),!1)}reloadLang(e){return this.resetLang(e),this.loadAndCompileTranslations(e)}resetLang(e){delete this._translationRequests[e],this.store.deleteTranslations(e)}static getBrowserLang(){if(typeof window>"u"||!window.navigator)return;let e=this.getBrowserCultureLang();return e?e.split(/[-_]/)[0]:void 0}static getBrowserCultureLang(){if(!(typeof window>"u"||typeof window.navigator>"u"))return window.navigator.languages?window.navigator.languages[0]:window.navigator.language||window.navigator.browserLanguage||window.navigator.userLanguage}getBrowserLang(){return t.getBrowserLang()}getBrowserCultureLang(){return t.getBrowserCultureLang()}get defaultLang(){return this.getFallbackLang()}get currentLang(){return this.store.getCurrentLang()}get langs(){return this.store.getLanguages()}setDefaultLang(e){return this.setFallbackLang(e)}getDefaultLang(){return this.getFallbackLang()}static \u0275fac=function(i){return new(i||t)};static \u0275prov=R({token:t,factory:t.\u0275fac})}return t})(),Y3=(()=>{class t{translateService=u(oa);element=u(Y);_ref=u(ye);key;lastParams;currentParams;onLangChangeSub;onFallbackLangChangeSub;onTranslationChangeSub;set translate(e){e&&(this.key=e,this.checkNodes())}set translateParams(e){Og(this.currentParams,e)||(this.currentParams=e,this.checkNodes(!0))}constructor(){this.onTranslationChangeSub||(this.onTranslationChangeSub=this.translateService.onTranslationChange.subscribe(e=>{e.lang===this.translateService.currentLang&&this.checkNodes(!0,e.translations)})),this.onLangChangeSub||(this.onLangChangeSub=this.translateService.onLangChange.subscribe(e=>{this.checkNodes(!0,e.translations)})),this.onFallbackLangChangeSub||(this.onFallbackLangChangeSub=this.translateService.onFallbackLangChange.subscribe(e=>{this.checkNodes(!0)}))}ngAfterViewChecked(){this.checkNodes()}checkNodes(e=!1,i){let r=this.element.nativeElement.childNodes;r.length||(this.setContent(this.element.nativeElement,this.key),r=this.element.nativeElement.childNodes),r.forEach(o=>{let a=o;if(a.nodeType===3){let s;if(e&&(a.lastKey=null),Oo(a.lookupKey))s=a.lookupKey;else if(this.key)s=this.key;else{let l=this.getContent(a),c=l.trim();c.length&&(a.lookupKey=c,l!==a.currentValue?(s=c,a.originalContent=l||a.originalContent):a.originalContent&&(s=a.originalContent.trim()))}this.updateValue(s,a,i)}})}updateValue(e,i,r){if(e){if(i.lastKey===e&&this.lastParams===this.currentParams)return;this.lastParams=this.currentParams;let o=a=>{(a!==e||!i.lastKey)&&(i.lastKey=e),i.originalContent||(i.originalContent=this.getContent(i)),Rg(a)?i.currentValue=a:Oo(a)?i.currentValue=JSON.stringify(a):i.currentValue=i.originalContent||e,this.setContent(i,this.key?i.currentValue:i.originalContent.replace(e,i.currentValue)),this._ref.markForCheck()};if(Oo(r)){let a=this.translateService.getParsedResult(e,this.currentParams);zi(a)?a.subscribe({next:o}):o(a)}else this.translateService.get(e,this.currentParams).subscribe(o)}}getContent(e){return Oo(e.textContent)?e.textContent:e.data}setContent(e,i){Oo(e.textContent)?e.textContent=i:e.data=i}ngOnDestroy(){this.onLangChangeSub&&this.onLangChangeSub.unsubscribe(),this.onFallbackLangChangeSub&&this.onFallbackLangChangeSub.unsubscribe(),this.onTranslationChangeSub&&this.onTranslationChangeSub.unsubscribe()}static \u0275fac=function(i){return new(i||t)};static \u0275dir=P({type:t,selectors:[["","translate",""],["","ngx-translate",""]],inputs:{translate:"translate",translateParams:"translateParams"}})}return t})(),Mr=(()=>{class t{translate=u(oa);_ref=u(ye);value="";lastKey=null;lastParams=[];onTranslationChange;onLangChange;onFallbackLangChange;updateValue(e,i,r){let o=a=>{this.value=a!==void 0?a:e,this.lastKey=e,this._ref.markForCheck()};if(r){let a=this.translate.getParsedResult(e,i);zi(a)?a.subscribe(o):o(a)}this.translate.get(e,i).subscribe(o)}transform(e,...i){if(!e||!e.length)return e;if(Og(e,this.lastKey)&&Og(i,this.lastParams))return this.value;let r;if(Oo(i[0])&&i.length)if(Rg(i[0])&&i[0].length){let o=i[0].replace(/(')?([a-zA-Z0-9_]+)(')?(\s)?:/g,'"$2":').replace(/:(\s)?(')(.*?)(')/g,':"$3"');try{r=JSON.parse(o)}catch(a){throw new SyntaxError(`Wrong parameter in TranslatePipe. Expected a valid Object, received: ${i[0]}`)}}else fl(i[0])&&(r=i[0]);return this.lastKey=e,this.lastParams=i,this.updateValue(e,r),this._dispose(),this.onTranslationChange||(this.onTranslationChange=this.translate.onTranslationChange.subscribe(o=>{(this.lastKey&&o.lang===this.translate.getCurrentLang()||o.lang===this.translate.getFallbackLang())&&(this.lastKey=null,this.updateValue(e,r,o.translations))})),this.onLangChange||(this.onLangChange=this.translate.onLangChange.subscribe(o=>{this.lastKey&&(this.lastKey=null,this.updateValue(e,r,o.translations))})),this.onFallbackLangChange||(this.onFallbackLangChange=this.translate.onFallbackLangChange.subscribe(()=>{this.lastKey&&(this.lastKey=null,this.updateValue(e,r))})),this.value}_dispose(){typeof this.onTranslationChange<"u"&&(this.onTranslationChange.unsubscribe(),this.onTranslationChange=void 0),typeof this.onLangChange<"u"&&(this.onLangChange.unsubscribe(),this.onLangChange=void 0),typeof this.onFallbackLangChange<"u"&&(this.onFallbackLangChange.unsubscribe(),this.onFallbackLangChange=void 0)}ngOnDestroy(){this._dispose()}static \u0275fac=function(i){return new(i||t)};static \u0275pipe=Kr({name:"translate",type:t,pure:!1});static \u0275prov=R({token:t,factory:t.\u0275fac})}return t})();function Q3(t){return{provide:Cc,useClass:t}}function K3(t){return{provide:Oh,useClass:t}}function Z3(t){return{provide:Rh,useClass:t}}function X3(t){return{provide:Ag,useClass:t}}function J3(t={}){return Ik(k({compiler:K3($3),parser:Z3(q3),loader:Q3(W3),missingTranslationHandler:X3(U3)},t),!0)}function Ik(t={},n){let e=[];t.loader&&e.push(t.loader),t.compiler&&e.push(t.compiler),t.parser&&e.push(t.parser),t.missingTranslationHandler&&e.push(t.missingTranslationHandler),n&&e.push(kk),(t.useDefaultLang||t.defaultLanguage)&&(console.warn("The `useDefaultLang` and `defaultLanguage` options are deprecated. Please use `fallbackLang` instead."),t.useDefaultLang===!0&&t.defaultLanguage&&(t.fallbackLang=t.defaultLanguage));let i={fallbackLang:t.fallbackLang??null,lang:t.lang,extend:t.extend??!1};return e.push({provide:Tk,useValue:i}),e.push({provide:oa,useClass:oa,deps:[kk,Cc,Oh,Rh,Ag,Tk]}),e}var Sr=(()=>{class t{static forRoot(e={}){return{ngModule:t,providers:[...Ik(k({compiler:K3($3),parser:Z3(q3),loader:Q3(W3),missingTranslationHandler:X3(U3)},e),!0)]}}static forChild(e={}){return{ngModule:t,providers:[...Ik(e,e.isolate??!1)]}}static \u0275fac=function(i){return new(i||t)};static \u0275mod=ee({type:t});static \u0275inj=J({})}return t})();var Ok=new O("TRANSLATE_HTTP_LOADER_CONFIG"),yie=(()=>{class t{http;config;constructor(){this.config=k({prefix:"/assets/i18n/",suffix:".json",enforceLoading:!1,useHttpBackend:!1},u(Ok)),this.http=this.config.useHttpBackend?new xr(u(Jl)):u(xr)}getTranslation(e){let i=this.config.enforceLoading?`?enforceLoading=${Date.now()}`:"";return this.http.get(`${this.config.prefix}${e}${this.config.suffix}${i}`)}static \u0275fac=function(i){return new(i||t)};static \u0275prov=R({token:t,factory:t.\u0275fac})}return t})();function ej(t={}){let n=t.useHttpBackend??!1;return[{provide:Ok,useValue:t},{provide:Cc,useClass:yie,deps:[n?Jl:xr,Ok]}]}var Rk=class{constructor(n){this.options=n,n.vcr?this.ref=n.vcr.createComponent(n.component,{index:n.vcr.length,injector:n.injector||n.vcr.injector}):(this.ref=Am(n.component,{elementInjector:n.injector,environmentInjector:n.environmentInjector}),n.appRef.attachView(this.ref.hostView))}setInput(n,e){return this.ref.setInput(n,e),this}setInputs(n){return Object.keys(n).forEach(e=>{this.ref.setInput(e,n[e])}),this}detectChanges(){return this.ref.hostView.detectChanges(),this}updateContext(n){return this.options.contextSignal?.set(n),this}appendTo(n){return n.appendChild(this.getElement()),this}removeFrom(n){return n.removeChild(this.getElement()),this}getRawContent(){return this.getElement().outerHTML}getElement(){return this.ref.location.nativeElement}destroy(){this.ref.destroy(),!this.options.vcr&&this.options.appRef.detachView(this.ref.hostView),this.ref=null}};function Pg(t){return t instanceof te}function xu(t){return typeof t=="function"}function tj(t){return typeof t=="string"}var Pk=class{constructor(n){this.args=n,this.args.vcr?(this.ref=this.args.vcr.createEmbeddedView(this.args.tpl,this.args.context||{},{injector:n.injector}),this.ref.detectChanges()):(this.ref=this.args.tpl.createEmbeddedView(this.args.context||{},n.injector),this.ref.detectChanges(),this.args.appRef.attachView(this.ref))}detectChanges(){return this.ref.detectChanges(),this}getElement(){let n=this.ref.rootNodes;return n.length===1&&n[0]===Node.ELEMENT_NODE?this.element=n[0]:(this.element=document.createElement("div"),this.element.append(...n)),this.element}destroy(){this.ref.rootNodes[0]!==1&&(this.element?.parentNode.removeChild(this.element),this.element=null),this.args.vcr||this.args.appRef.detachView(this.ref),this.ref.destroy(),this.ref=null}updateContext(n){return Object.assign(this.ref.context,n),this}},Fk=class{constructor(n){this.value=n}getElement(){return this.value}detectChanges(){return this}updateContext(){return this}destroy(){}},xie=new O("Component context"),Nk=(()=>{let n=class n{constructor(){this.injector=u(de),this.appRef=u(Yn),this.environmentInjector=u(Kt)}createComponent(i,r={}){let o=r.injector??this.injector,a;return r.context&&(a=he(r.context),o=de.create({providers:[{provide:xie,useValue:a.asReadonly()}],parent:o})),new Rk({component:i,vcr:r.vcr,injector:o,appRef:this.appRef,environmentInjector:r.environmentInjector||this.environmentInjector,contextSignal:a})}createTemplate(i,r={}){return new Pk({vcr:r.vcr,appRef:this.appRef,tpl:i,context:r.context,injector:r.injector})}createView(i,r={}){if(Pg(i))return this.createTemplate(i,r);if(xu(i))return this.createComponent(i,r);if(tj(i))return new Fk(i);throw"Type of content is not supported"}};n.\u0275fac=function(r){return new(r||n)},n.\u0275prov=R({token:n,factory:n.\u0275fac,providedIn:"root"});let t=n;return t})();var Cie=(()=>{let n=class n{constructor(){this.content=re()}};n.\u0275fac=function(r){return new(r||n)},n.\u0275cmp=E({type:n,selectors:[["dynamic-view"]],inputs:{content:[1,"content"]},decls:1,vars:1,consts:[[3,"innerHTML"]],template:function(r,o){r&1&&Xt(0,"div",0),r&2&&ci("innerHTML",o.content(),rf)},encapsulation:2});let t=n;return t})(),Sx=(()=>{let n=class n{constructor(){this.view=re(void 0,{alias:"dynamicView"}),this.injector=re(void 0,{alias:"dynamicViewInjector"}),this.context=re(void 0,{alias:"dynamicViewContext"}),this.inputs=re(void 0,{alias:"dynamicViewInputs"}),this.defaultTpl=u(te),this.vcr=u(ot),this.viewService=u(Nk)}ngOnInit(){this.resolveContentType()}ngOnChanges(i){let r=i.view&&!i.view.isFirstChange(),o=i.context&&!i.context.isFirstChange(),a=i.inputs&&!i.inputs.isFirstChange();r?this.resolveContentType():o?this.viewRef.updateContext(this.context()):xu(this.view())&&a&&this.viewRef.setInputs(this.inputs()||{})}resolveContentType(){this.viewRef?.destroy();let i=this.view(),r=this.injector(),o=this.context();if(tj(i))(this.viewRef=this.viewService.createComponent(Cie,{vcr:this.vcr,injector:r})).setInput("content",i).detectChanges();else if(xu(i)){this.viewRef=this.viewService.createComponent(i,{vcr:this.vcr,injector:r??this.vcr.injector,context:o});let a=this.inputs();a&&this.viewRef.setInputs(a)}else this.viewRef=this.viewService.createView(i||this.defaultTpl,{vcr:this.vcr,injector:r??this.vcr.injector,context:o})}ngOnDestroy(){this.viewRef?.destroy()}};n.\u0275fac=function(r){return new(r||n)},n.\u0275dir=P({type:n,selectors:[["","dynamicView",""]],inputs:{view:[1,"dynamicView","view"],injector:[1,"dynamicViewInjector","injector"],context:[1,"dynamicViewContext","context"],inputs:[1,"dynamicViewInputs","inputs"]},features:[Ae]});let t=n;return t})();function wie(t,n){if(t&1&&(g(0,` + `),M(1,"hot-toast-loader",1),g(2,` + `)),t&2){let e=x(2);f(),v("theme",e.theme)}}function Die(t,n){if(t&1&&(g(0,` + `),m(1,"div"),g(2,` + `),M(3,"hot-toast-error",1),g(4,` + `),h(),g(5,` + `)),t&2){let e=x(3);f(3),v("theme",e.theme)}}function Eie(t,n){if(t&1&&(g(0,` + `),m(1,"div"),g(2,` + `),M(3,"hot-toast-checkmark",1),g(4,` + `),h(),g(5,` + `)),t&2){let e=x(3);f(3),v("theme",e.theme)}}function Mie(t,n){if(t&1&&(g(0,` + `),m(1,"div"),g(2,` + `),M(3,"hot-toast-warning",1),g(4,` + `),h(),g(5,` + `)),t&2){let e=x(3);f(3),v("theme",e.theme)}}function Sie(t,n){if(t&1&&(g(0,` + `),m(1,"div"),g(2,` + `),M(3,"hot-toast-info",1),g(4,` + `),h(),g(5,` + `)),t&2){let e=x(3);f(3),v("theme",e.theme)}}function kie(t,n){if(t&1&&(g(0,` + `),m(1,"div",2),g(2,` + `),m(3,"div"),g(4,` + `),V(5,Die,6,1)(6,Eie,6,1)(7,Mie,6,1)(8,Sie,6,1),g(9,` + `),h(),g(10,` + `),h(),g(11,` + `)),t&2){let e,i=x(2);f(5),B((e=i.type)==="error"?5:e==="success"?6:e==="warning"?7:e==="info"?8:-1)}}function Tie(t,n){if(t&1&&(g(0,` +`),m(1,"div",0),g(2,` + `),V(3,wie,3,1),V(4,kie,12,1),h(),g(5,` +`)),t&2){let e=x();f(3),B(e.type==="loading"?3:-1),f(),B(e.type!=="loading"?4:-1)}}function Iie(t,n){t&1&&Ge(0)}var oj=["hotToastBarBase"];function Aie(t,n){if(t&1&&(g(0,` + `),m(1,"hot-toast-animated-icon",7),g(2),h(),g(3,` + `)),t&2){let e=x(2);f(),v("iconTheme",e.toast.iconTheme),f(),N(e.toast.icon)}}function Oie(t,n){t&1&&Ge(0)}function Rie(t,n){if(t&1&&(g(0,` + `),m(1,"div"),g(2,` + `),A(3,Oie,1,0,"ng-container",8),g(4,` + `),h(),g(5,` + `)),t&2){let e=x(2);f(3),v("dynamicView",e.toast.icon)}}function Pie(t,n){if(t&1&&(g(0," "),V(1,Aie,4,2)(2,Rie,6,1)),t&2){let e=x();f(),B(e.isIconString?1:2)}}function Fie(t,n){if(t&1&&(g(0,` + `),M(1,"hot-toast-indicator",9),g(2,` + `)),t&2){let e=x();f(),v("theme",e.toast.iconTheme)("type",e.toast.type)}}function Nie(t,n){t&1&&Ge(0)}function Lie(t,n){if(t&1){let e=q();g(0,` + `),m(1,"button",10),S("click",function(){T(e);let r=x();return I(r.close())}),h(),g(2,` + `)}if(t&2){let e=x();f(),el(e.toast.closeStyle)}}var Vie=(t,n)=>n.id;function Bie(t,n){if(t&1&&(g(0,` + `),M(1,"hot-toast-animated-icon",7),g(2,` + `)),t&2){let e=x(2);f(),v("iconTheme",e.toast.iconTheme)("icon",e.toast.icon)}}function jie(t,n){t&1&&Ge(0)}function Hie(t,n){if(t&1&&(g(0,` + `),m(1,"div"),g(2,` + `),A(3,jie,1,0,"ng-container",8),g(4,` + `),h(),g(5,` + `)),t&2){let e=x(2);f(3),v("dynamicView",e.toast.icon)}}function zie(t,n){if(t&1&&(g(0," "),V(1,Bie,3,2)(2,Hie,6,1)),t&2){let e=x();f(),B(e.isIconString?1:2)}}function Uie(t,n){if(t&1&&(g(0,` + `),M(1,"hot-toast-indicator",9),g(2,` + `)),t&2){let e=x();f(),v("theme",e.toast.iconTheme)("type",e.toast.type)}}function $ie(t,n){t&1&&Ge(0)}function Wie(t,n){if(t&1){let e=q();g(0,` + `),m(1,"button",10),S("click",function(){T(e);let r=x();return I(r.toggleToastGroup())}),h(),g(2,` + `)}if(t&2){let e=x();f(),el(e.toast.group.btnStyle),G("expanded",e.isExpanded),X("aria-label",e.isExpanded?"Collapse":"Expand")}}function Gie(t,n){if(t&1){let e=q();g(0,` + `),m(1,"button",11),S("click",function(){T(e);let r=x();return I(r.close())}),h(),g(2,` + `)}if(t&2){let e=x();f(),el(e.toast.closeStyle)}}function qie(t,n){if(t&1){let e=q();g(0,` + `),m(1,"hot-toast-group-item",13),S("height",function(r){let o=T(e).$implicit,a=x(2);return I(a.updateHeight(r,o))})("beforeClosed",function(){let r=T(e).$implicit,o=x(2);return I(o.beforeClosedGroupItem(r))})("afterClosed",function(r){T(e);let o=x(2);return I(o.afterClosedGroupItem(r))}),h(),g(2,` + `)}if(t&2){let e=n.$implicit,i=n.$index,r=x(2);f(),v("toast",e)("offset",r.calculateOffset(e.id))("toastRef",r.toastRef.groupRefs[i])("toastsAfter",(e.autoClose?r.groupChildrenToasts.length:r.visibleToasts.length)-1-i)("defaultConfig",r.defaultConfig)("isShowingAllToasts",r.isShowingAllToasts)}}function Yie(t,n){if(t&1&&(g(0,` + `),m(1,"div",12),g(2,` + `),xt(3,qie,3,6,null,null,Vie),h(),g(5,` + `)),t&2){let e=x();f(),nt(e.toast.group==null?null:e.toast.group.className),Et("--hot-toast-group-height",e.groupHeight+"px"),f(2),Ct(e.groupChildrenToasts)}}function Qie(t,n){t&1&&g(0,` + `)}function Kie(t,n){if(t&1){let e=q();g(0,` + `),m(1,"hot-toast",2),S("showAllToasts",function(r){T(e);let o=x(2);return I(o.showAllToasts(r))})("height",function(r){T(e);let o=x().$implicit,a=x();return I(a.updateHeight(r,o))})("beforeClosed",function(){T(e);let r=x().$implicit,o=x();return I(o.beforeClosed(r))})("afterClosed",function(r){T(e);let o=x(2);return I(o.afterClosed(r))})("toggleGroup",function(r){T(e);let o=x(2);return I(o.toggleGroup(r))}),h(),g(2,` + `)}if(t&2){let e=x(),i=e.$implicit,r=e.$index,o=x();f(),v("toast",i)("offset",o.calculateOffset(i.id,i.position))("toastRef",o.toastRefs[r])("toastsAfter",(i.autoClose?o.toasts.length:o.getVisibleToasts(i.position).length)-1-r)("defaultConfig",o.defaultConfig)("isShowingAllToasts",o.isShowingAllToasts)}}function Zie(t,n){if(t&1&&(g(0,` + `),V(1,Qie,1,0)(2,Kie,3,6)),t&2){let e=n.$implicit;f(),B(e.group!=null&&e.group.parent?1:2)}}var ij={blank:4e3,error:4e3,success:4e3,loading:3e4,warning:4e3,info:4e3},Ph=800,kx=350,Xie=8,Vk=.05,Jie=1,Fg=class{constructor(n){this.toast=n,this.groupRefs=[],this.groupExpanded=!1,this._onClosed=new z,this._onGroupToggle=new z}set data(n){this.toast.data=n}get data(){return this.toast.data}set dispose(n){this._dispose=n}getToast(){return this.toast}appendTo(n,e){let{dispose:i,updateMessage:r,updateToast:o,afterClosed:a,afterGroupToggled:s,afterGroupRefsAttached:l}=n.addToast(this,e);return this.dispose=i,this.updateMessage=r,this.updateToast=o,this.afterClosed=Ku(this._onClosed.asObservable(),a),this.afterGroupToggled=Ku(this._onGroupToggle.asObservable(),s),this.afterGroupRefsAttached=l,this}close(n={dismissedByAction:!1}){this.groupRefs.forEach(e=>e.close()),this._dispose(),this._onClosed.next({dismissedByAction:n.dismissedByAction,id:this.toast.id}),this._onClosed.complete()}toggleGroup(n={byAction:!1}){this.groupExpanded=!this.groupExpanded,this._onGroupToggle.next({byAction:n.byAction,id:this.toast.id,event:this.groupExpanded?"expand":"collapse"})}show(){this.toast.visible=!0}},Tx=(t,n,e)=>{t.setStyle(n,"animation",e)},ene=(()=>{let n=class n{};n.\u0275fac=function(r){return new(r||n)},n.\u0275cmp=E({type:n,selectors:[["hot-toast-loader"]],inputs:{theme:"theme"},decls:2,vars:4,consts:[[1,"hot-toast-loader-icon"]],template:function(r,o){r&1&&(Xt(0,"div",0),g(1,` +`)),r&2&&Et("border-color",o.theme==null?null:o.theme.primary)("border-right-color",o.theme==null?null:o.theme.secondary)},encapsulation:2,changeDetection:0});let t=n;return t})(),tne=(()=>{let n=class n{};n.\u0275fac=function(r){return new(r||n)},n.\u0275cmp=E({type:n,selectors:[["hot-toast-error"]],inputs:{theme:"theme"},decls:2,vars:4,consts:[[1,"hot-toast-error-icon"]],template:function(r,o){r&1&&(Xt(0,"div",0),g(1,` +`)),r&2&&Et("--error-primary",o.theme==null?null:o.theme.primary)("--error-secondary",o.theme==null?null:o.theme.secondary)},encapsulation:2,changeDetection:0});let t=n;return t})(),ine=(()=>{let n=class n{};n.\u0275fac=function(r){return new(r||n)},n.\u0275cmp=E({type:n,selectors:[["hot-toast-checkmark"]],inputs:{theme:"theme"},decls:2,vars:4,consts:[[1,"hot-toast-checkmark-icon"]],template:function(r,o){r&1&&(Xt(0,"div",0),g(1,` +`)),r&2&&Et("--check-primary",o.theme==null?null:o.theme.primary)("--check-secondary",o.theme==null?null:o.theme.secondary)},encapsulation:2,changeDetection:0});let t=n;return t})(),nne=(()=>{let n=class n{};n.\u0275fac=function(r){return new(r||n)},n.\u0275cmp=E({type:n,selectors:[["hot-toast-warning"]],inputs:{theme:"theme"},decls:2,vars:4,consts:[[1,"hot-toast-warning-icon"]],template:function(r,o){r&1&&(Xt(0,"div",0),g(1,` +`)),r&2&&Et("--warn-primary",o.theme==null?null:o.theme.primary)("--warn-secondary",o.theme==null?null:o.theme.secondary)},encapsulation:2,changeDetection:0});let t=n;return t})(),rne=(()=>{let n=class n{};n.\u0275fac=function(r){return new(r||n)},n.\u0275cmp=E({type:n,selectors:[["hot-toast-info"]],inputs:{theme:"theme"},decls:2,vars:4,consts:[[1,"hot-toast-info-icon"]],template:function(r,o){r&1&&(Xt(0,"div",0),g(1,` +`)),r&2&&Et("--info-primary",o.theme==null?null:o.theme.primary)("--info-secondary",o.theme==null?null:o.theme.secondary)},encapsulation:2,changeDetection:0});let t=n;return t})(),aj=(()=>{let n=class n{};n.\u0275fac=function(r){return new(r||n)},n.\u0275cmp=E({type:n,selectors:[["hot-toast-indicator"]],inputs:{theme:"theme",type:"type"},decls:1,vars:1,consts:[[1,"hot-toast-indicator-wrapper"],[3,"theme"],[1,"hot-toast-status-wrapper"]],template:function(r,o){r&1&&V(0,Tie,6,2),r&2&&B(o.type!=="blank"?0:-1)},dependencies:[ene,tne,ine,nne,rne],encapsulation:2,changeDetection:0});let t=n;return t})(),sj=(()=>{let n=class n{};n.\u0275fac=function(r){return new(r||n)},n.\u0275cmp=E({type:n,selectors:[["hot-toast-animated-icon"]],inputs:{iconTheme:"iconTheme",icon:"icon"},decls:5,vars:3,consts:[[1,"hot-toast-animated-icon"],[4,"dynamicView"]],template:function(r,o){r&1&&(m(0,"div",0),g(1,` + `),A(2,Iie,1,0,"ng-container",1),g(3,` +`),h(),g(4,` +`)),r&2&&(Et("color",o.iconTheme==null?null:o.iconTheme.primary),f(2),v("dynamicView",o.icon))},dependencies:[Sx],encapsulation:2,changeDetection:0});let t=n;return t})(),one=(()=>{let n=class n{constructor(){this.offset=0,this._toastsAfter=0,this.isShowingAllToasts=!1,this.height=new U,this.beforeClosed=new U,this.afterClosed=new U,this.showAllToasts=new U,this.toggleGroup=new U,this.isManualClose=!1,this.toastBarBaseStylesSignal=he({}),this.unlisteners=[],this.softClosed=!1,this.injector=u(de),this.renderer=u(ze),this.ngZone=u(ae),this.cdr=u(ye)}set toast(i){this._toast=i;let r=this.toastBarBaseStylesSignal(),o=k({},i.style);if(r.animation?.includes("hotToastExitAnimation"))o.animation=r.animation;else{let s=`hotToastEnterAnimation${i.position.includes("top")?"Negative":"Positive"} ${kx}ms cubic-bezier(0.21, 1.02, 0.73, 1) forwards`;o.animation=s}this.toastBarBaseStylesSignal.set(o)}get toast(){return this._toast}get toastsAfter(){return this._toastsAfter}set toastsAfter(i){this._toastsAfter=i}get toastBarBaseHeight(){return this.toastBarBase.nativeElement.offsetHeight}get scale(){return this.defaultConfig.stacking!=="vertical"&&!this.isShowingAllToasts?this.toastsAfter*-Vk+1:1}get translateY(){return this.offset*(this.top?1:-1)+"px"}get exitAnimationDelay(){return this.toast.duration+"ms"}get top(){return this.toast.position.includes("top")}get containerPositionStyle(){let i=this.top?{top:0}:{bottom:0},r="translateY(var(--hot-toast-translate-y)) scale(var(--hot-toast-scale))",o=this.toast.position.includes("left")?{left:0}:this.toast.position.includes("right")?{right:0}:{left:0,right:0,justifyContent:"center"};return k(k({transform:r},i),o)}get isIconString(){return typeof this.toast.icon=="string"}get groupChildrenToastRefs(){return this.toastRef.groupRefs.filter(i=>!!i)}set groupChildrenToastRefs(i){this.toastRef.groupRefs=i}get groupChildrenToasts(){return this.groupChildrenToastRefs.map(i=>i.getToast())}get groupHeight(){return this.visibleToasts.map(i=>i.height).reduce((i,r)=>i+r,0)}get isExpanded(){return this.toastRef.groupExpanded}ngOnChanges(i){i.toast&&!i.toast.firstChange&&i.toast.currentValue?.message&&requestAnimationFrame(()=>{this.height.emit(this.toastBarBase.nativeElement.offsetHeight)})}ngOnInit(){Pg(this.toast.message)&&(this.context={$implicit:this.toastRef}),xu(this.toast.message)&&(this.toastComponentInjector=de.create({providers:[{provide:Fg,useValue:this.toastRef}],parent:this.toast.injector||this.injector}));let i=this.toastBarBase.nativeElement;this.ngZone.runOutsideAngular(()=>{this.unlisteners.push(this.renderer.listen(i,"animationstart",r=>{this.isExitAnimation(r)&&this.ngZone.run(()=>{this.renderer.setStyle(i,"pointer-events","none"),this.renderer.setStyle(i.parentElement,"pointer-events","none"),this.beforeClosed.emit()})}),this.renderer.listen(i,"animationend",r=>{this.isEnterAnimation(r)&&this.ngZone.run(()=>{if(this.toast.autoClose){let o=`hotToastExitAnimation${this.top?"Negative":"Positive"} ${Ph}ms forwards cubic-bezier(0.06, 0.71, 0.55, 1) var(--hot-toast-exit-animation-delay) var(--hot-toast-exit-animation-state)`;this.toastBarBaseStylesSignal.set(Ee(k({},this.toast.style),{animation:o}))}}),this.isExitAnimation(r)&&this.ngZone.run(()=>this.afterClosed.emit({dismissedByAction:this.isManualClose,id:this.toast.id}))}))})}ngAfterViewInit(){let i=this.toastBarBase.nativeElement;requestAnimationFrame(()=>{this.height.emit(i.offsetHeight)}),this.setToastAttributes()}softClose(){let i=`hotToastExitSoftAnimation${this.top?"Negative":"Positive"} ${Ph}ms forwards cubic-bezier(0.06, 0.71, 0.55, 1)`,r=this.toastBarBase.nativeElement;Tx(this.renderer,r,i),this.softClosed=!0}softOpen(){let i=`hotToastEnterSoftAnimation${top?"Negative":"Positive"} ${kx}ms cubic-bezier(0.21, 1.02, 0.73, 1) forwards`,r=this.toastBarBase.nativeElement;Tx(this.renderer,r,i),this.softClosed=!1}close(){this.isManualClose=!0,this.cdr.markForCheck();let i=`hotToastExitAnimation${this.top?"Negative":"Positive"} ${Ph}ms forwards cubic-bezier(0.06, 0.71, 0.55, 1)`;this.toastBarBaseStylesSignal.set(Ee(k({},this.toast.style),{animation:i}))}handleMouseEnter(){this.showAllToasts.emit(!0)}handleMouseLeave(){this.showAllToasts.emit(!1)}ngOnDestroy(){for(this.close();this.unlisteners.length;)this.unlisteners.pop()()}isExitAnimation(i){return i.animationName.includes("hotToastExitAnimation")}isEnterAnimation(i){return i.animationName.includes("hotToastEnterAnimation")}setToastAttributes(){let i=this.toast.attributes;for(let[r,o]of Object.entries(i))this.renderer.setAttribute(this.toastBarBase.nativeElement,r,o)}get visibleToasts(){return this.groupChildrenToasts.filter(i=>i.visible)}};n.\u0275fac=function(r){return new(r||n)},n.\u0275cmp=E({type:n,selectors:[["hot-toast-group-item"]],viewQuery:function(r,o){if(r&1&&ie(oj,7),r&2){let a;j(a=H())&&(o.toastBarBase=a.first)}},inputs:{toast:"toast",offset:"offset",defaultConfig:"defaultConfig",toastRef:"toastRef",toastsAfter:"toastsAfter",isShowingAllToasts:"isShowingAllToasts"},outputs:{height:"height",beforeClosed:"beforeClosed",afterClosed:"afterClosed",showAllToasts:"showAllToasts",toggleGroup:"toggleGroup"},features:[Ae],decls:21,vars:25,consts:[["hotToastBarBase",""],[1,"hot-toast-bar-base-container"],[1,"hot-toast-bar-base-wrapper",3,"mouseenter","mouseleave"],[1,"hot-toast-bar-base"],["aria-hidden","true",1,"hot-toast-icon"],[1,"hot-toast-message"],[4,"dynamicView","dynamicViewContext","dynamicViewInjector"],[3,"iconTheme"],[4,"dynamicView"],[3,"theme","type"],["type","button","aria-label","Close",1,"hot-toast-close-btn",3,"click"]],template:function(r,o){if(r&1){let a=q();m(0,"div",1),g(1,` + `),m(2,"div",2),S("mouseenter",function(){return T(a),I(o.handleMouseEnter())})("mouseleave",function(){return T(a),I(o.handleMouseLeave())}),g(3,` + `),m(4,"div",3,0),g(6,` + `),m(7,"div",4),g(8,` + `),V(9,Pie,3,1)(10,Fie,3,2),h(),g(11,` + `),m(12,"div",5),g(13,` + `),A(14,Nie,1,0,"ng-container",6),g(15,` + `),h(),g(16,` + `),V(17,Lie,3,2),h(),g(18,` + `),h(),g(19,` +`),h(),g(20,` +`)}r&2&&(el(o.containerPositionStyle),nt("hot-toast-theme-"+o.toast.theme),Et("--hot-toast-scale",o.scale)("--hot-toast-translate-y",o.translateY),f(4),el(o.toastBarBaseStylesSignal()),nt(o.toast.className),Et("--hot-toast-animation-state",o.isManualClose?"running":"paused")("--hot-toast-exit-animation-state",o.isShowingAllToasts?"paused":"running")("--hot-toast-exit-animation-delay",o.exitAnimationDelay),X("aria-live",o.toast.ariaLive)("role",o.toast.role),f(5),B(o.toast.icon!==void 0?9:10),f(5),v("dynamicView",o.toast.message)("dynamicViewContext",o.context)("dynamicViewInjector",o.toastComponentInjector),f(3),B(o.toast.dismissible?17:-1))},dependencies:[sj,aj,Sx],encapsulation:2,changeDetection:0});let t=n;return t})(),nj=(()=>{let n=class n{constructor(){this.offset=0,this._toastsAfter=0,this.isShowingAllToasts=!1,this.height=new U,this.beforeClosed=new U,this.afterClosed=new U,this.showAllToasts=new U,this.toggleGroup=new U,this.isManualClose=!1,this.isExpanded=!1,this.toastBarBaseStylesSignal=he({}),this.unlisteners=[],this.softClosed=!1,this.groupRefs=[],this.injector=u(de),this.renderer=u(ze),this.ngZone=u(ae),this.cdr=u(ye)}set toast(i){this._toast=i;let r=this.toastBarBaseStylesSignal(),o=k({},i.style);if(r.animation?.includes("hotToastExitAnimation"))o.animation=r.animation;else{let s=`hotToastEnterAnimation${i.position.includes("top")?"Negative":"Positive"} ${kx}ms cubic-bezier(0.21, 1.02, 0.73, 1) forwards`;o.animation=s}this.toastBarBaseStylesSignal.set(o)}get toast(){return this._toast}get toastsAfter(){return this._toastsAfter}set toastsAfter(i){this._toastsAfter=i,this.defaultConfig?.visibleToasts>0&&(this.toast.autoClose||(i>=this.defaultConfig?.visibleToasts?this.softClose():this.softClosed&&this.softOpen()))}get toastBarBaseHeight(){return this.toastBarBase.nativeElement.offsetHeight}get scale(){return this.defaultConfig.stacking!=="vertical"&&!this.isShowingAllToasts?this.toastsAfter*-Vk+1:1}get translateY(){return this.offset*(this.top?1:-1)+"px"}get exitAnimationDelay(){return this.toast.duration+"ms"}get top(){return this.toast.position.includes("top")}get containerPositionStyle(){let i=this.top?{top:0}:{bottom:0},r="translateY(var(--hot-toast-translate-y)) scale(var(--hot-toast-scale))",o=this.toast.position.includes("left")?{left:0}:this.toast.position.includes("right")?{right:0}:{left:0,right:0,justifyContent:"center"};return k(k({transform:r},i),o)}get isIconString(){return typeof this.toast.icon=="string"}get groupChildrenToastRefs(){return this.groupRefs.filter(i=>!!i)}set groupChildrenToastRefs(i){this.groupRefs=i,this.toastRef.groupRefs=i}get groupChildrenToasts(){return this.groupChildrenToastRefs.map(i=>i.getToast())}get groupHeight(){return this.visibleToasts.slice(-this.defaultConfig.visibleToasts).map(i=>i.height).reduce((i,r)=>i+r,0)}get visibleToasts(){return this.groupChildrenToasts.filter(i=>i.visible)}ngDoCheck(){this.toastRef.groupRefs.length!==this.groupRefs.length&&(this.groupRefs=this.toastRef.groupRefs.slice(),this.cdr.markForCheck(),this.emiHeightWithGroup(this.isExpanded)),this.toastRef.groupExpanded!==this.isExpanded&&(this.isExpanded=this.toastRef.groupExpanded,this.cdr.markForCheck(),this.emiHeightWithGroup(this.isExpanded))}ngOnChanges(i){i.toast&&!i.toast.firstChange&&i.toast.currentValue?.message&&this.emiHeightWithGroup(this.isExpanded)}ngOnInit(){Pg(this.toast.message)&&(this.context={$implicit:this.toastRef}),xu(this.toast.message)&&(this.toastComponentInjector=de.create({providers:[{provide:Fg,useValue:this.toastRef}],parent:this.toast.injector||this.injector}));let i=this.toastBarBase.nativeElement;this.ngZone.runOutsideAngular(()=>{this.unlisteners.push(this.renderer.listen(i,"animationstart",r=>{this.isExitAnimation(r)&&this.ngZone.run(()=>{this.renderer.setStyle(i,"pointer-events","none"),this.renderer.setStyle(i.parentElement,"pointer-events","none"),this.beforeClosed.emit()})}),this.renderer.listen(i,"animationend",r=>{this.isEnterAnimation(r)&&this.ngZone.run(()=>{if(this.toast.autoClose){let o=`hotToastExitAnimation${this.top?"Negative":"Positive"} ${Ph}ms forwards cubic-bezier(0.06, 0.71, 0.55, 1) var(--hot-toast-exit-animation-delay) var(--hot-toast-exit-animation-state)`;this.toastBarBaseStylesSignal.set(Ee(k({},this.toast.style),{animation:o}))}}),this.isExitAnimation(r)&&this.ngZone.run(()=>this.afterClosed.emit({dismissedByAction:this.isManualClose,id:this.toast.id}))}))})}ngAfterViewInit(){let i=this.toastBarBase.nativeElement;requestAnimationFrame(()=>{this.height.emit(i.offsetHeight)}),this.setToastAttributes()}softClose(){let i=`hotToastExitSoftAnimation${this.top?"Negative":"Positive"} ${Ph}ms forwards cubic-bezier(0.06, 0.71, 0.55, 1)`,r=this.toastBarBase.nativeElement;Tx(this.renderer,r,i),this.softClosed=!0,this.isExpanded&&this.toggleToastGroup()}softOpen(){let i=`hotToastEnterSoftAnimation${top?"Negative":"Positive"} ${kx}ms cubic-bezier(0.21, 1.02, 0.73, 1) forwards`,r=this.toastBarBase.nativeElement;Tx(this.renderer,r,i),this.softClosed=!1}close(){this.isManualClose=!0,this.cdr.markForCheck();let i=`hotToastExitAnimation${this.top?"Negative":"Positive"} ${Ph}ms forwards cubic-bezier(0.06, 0.71, 0.55, 1)`;this.toastBarBaseStylesSignal.set(Ee(k({},this.toast.style),{animation:i}))}handleMouseEnter(){this.showAllToasts.emit(!0)}handleMouseLeave(){this.showAllToasts.emit(!1)}ngOnDestroy(){for(this.close();this.unlisteners.length;)this.unlisteners.pop()()}isExitAnimation(i){return i.animationName.includes("hotToastExitAnimation")}isEnterAnimation(i){return i.animationName.includes("hotToastEnterAnimation")}setToastAttributes(){let i=this.toast.attributes;for(let[r,o]of Object.entries(i))this.renderer.setAttribute(this.toastBarBase.nativeElement,r,o)}calculateOffset(i){let r=this.visibleToasts,o=r.findIndex(s=>s.id===i);return o!==-1?r.slice(...this.defaultConfig.reverseOrder?[o+1]:[0,o]).reduce((s,l,c)=>this.defaultConfig.visibleToasts!==0&&co.id===i.id)>-1&&(this.groupChildrenToastRefs=this.groupChildrenToastRefs.filter(o=>o.getToast().id!==i.id),this.cdr.markForCheck())}toggleToastGroup(){let i=this.isExpanded?"collapse":"expand";this.toggleGroup.emit({byAction:!0,event:i,id:this.toast.id}),this.emiHeightWithGroup(i==="expand")}emiHeightWithGroup(i){requestAnimationFrame(i?()=>{this.height.emit(this.toastBarBase.nativeElement.offsetHeight+this.groupHeight)}:()=>{this.height.emit(this.toastBarBase.nativeElement.offsetHeight)})}};n.\u0275fac=function(r){return new(r||n)},n.\u0275cmp=E({type:n,selectors:[["hot-toast"]],viewQuery:function(r,o){if(r&1&&ie(oj,7),r&2){let a;j(a=H())&&(o.toastBarBase=a.first)}},inputs:{toast:"toast",offset:"offset",defaultConfig:"defaultConfig",toastRef:"toastRef",toastsAfter:"toastsAfter",isShowingAllToasts:"isShowingAllToasts"},outputs:{height:"height",beforeClosed:"beforeClosed",afterClosed:"afterClosed",showAllToasts:"showAllToasts",toggleGroup:"toggleGroup"},features:[Ae],decls:23,vars:29,consts:[["hotToastBarBase",""],[1,"hot-toast-bar-base-container"],[1,"hot-toast-bar-base-wrapper",3,"mouseenter","mouseleave"],[1,"hot-toast-bar-base"],["aria-hidden","true",1,"hot-toast-icon"],[1,"hot-toast-message"],[4,"dynamicView","dynamicViewContext","dynamicViewInjector"],[3,"iconTheme","icon"],[4,"dynamicView"],[3,"theme","type"],["type","button",1,"hot-toast-group-btn",3,"click"],["type","button","aria-label","Close",1,"hot-toast-close-btn",3,"click"],["role","list",1,"hot-toast-bar-base-group"],[3,"height","beforeClosed","afterClosed","toast","offset","toastRef","toastsAfter","defaultConfig","isShowingAllToasts"]],template:function(r,o){if(r&1){let a=q();m(0,"div",1),g(1,` + `),m(2,"div",2),S("mouseenter",function(){return T(a),I(o.handleMouseEnter())})("mouseleave",function(){return T(a),I(o.handleMouseLeave())}),g(3,` + `),m(4,"div",3,0),g(6,` + `),m(7,"div",4),g(8,` + `),V(9,zie,3,1)(10,Uie,3,2),h(),g(11,` - `),h(12,"div",5),_(13,` - `),R(14,Rie,1,0,"ng-container",6),_(15,` - `),p(),_(16,` + `),m(12,"div",5),g(13,` + `),A(14,$ie,1,0,"ng-container",6),g(15,` + `),h(),g(16,` - `),N(17,Pie,3,5),N(18,Fie,3,2),p(),_(19,` + `),V(17,Wie,3,5),V(18,Gie,3,2),h(),g(19,` - `),N(20,Lie,6,4),p(),_(21,` -`),p(),_(22,` -`)}r&2&&(Js(o.containerPositionStyle),it("hot-toast-theme-"+o.toast.theme),Dt("--hot-toast-scale",o.scale)("--hot-toast-translate-y",o.translateY),g(2),G("expanded",o.isExpanded),g(2),Js(o.toastBarBaseStylesSignal()),it(o.toast.className),Dt("--hot-toast-animation-state",o.isManualClose?"running":"paused")("--hot-toast-exit-animation-state",o.isShowingAllToasts?"paused":"running")("--hot-toast-exit-animation-delay",o.exitAnimationDelay),X("aria-live",o.toast.ariaLive)("role",o.toast.role),g(5),L(o.toast.icon!==void 0?9:10),g(5),y("dynamicView",o.toast.message)("dynamicViewContext",o.context)("dynamicViewInjector",o.toastComponentInjector),g(3),L(o.toast.group!=null&&o.toast.group.expandAndCollapsible&&(o.toast.group!=null&&o.toast.group.children)&&o.visibleToasts.length>0?17:-1),g(),L(o.toast.dismissible?18:-1),g(2),L(o.toast.visible?20:-1))},dependencies:[Cx,Z3,X3,Yie],encapsulation:2,changeDetection:0});let t=n;return t})(),Q3=(()=>{let n=class n{constructor(){this.toasts=[],this.toastRefs=[],this.isShowingAllToasts=!1,this._onClosed=new z,this._onGroupToggle=new z,this._onGroupRefAttached=new z,this.onClosed$=this._onClosed.asObservable(),this.onGroupToggle$=this._onGroupToggle.asObservable(),this.onGroupRefAttached$=this._onGroupRefAttached.asObservable(),this.cdr=u(ye),this.toastService=u(Rg)}trackById(i,r){return r.id}getVisibleToasts(i){return this.unGroupedToasts.filter(r=>r.visible&&r.position===i)}get unGroupedToasts(){return this.toasts.filter(i=>i.group?.parent===void 0||i.group?.children===void 0||i.group?.children.length===0)}calculateOffset(i,r){let o=this.getVisibleToasts(r),a=o.findIndex(l=>l.id===i);return a!==-1?o.slice(...this.defaultConfig.reverseOrder?[a+1]:[0,a]).reduce((l,c,d)=>{let m=o.length-1-d;return this.defaultConfig.visibleToasts!==0&&dthis.defaultConfig.visibleToasts&&this.toasts.slice(0,this.toasts.length-this.defaultConfig.visibleToasts).forEach(s=>{s.autoClose&&this.closeToast(s.id)}),this.cdr.markForCheck(),this.attachGroupRefs(o,i,r),{dispose:()=>{this.closeToast(o.id)},updateMessage:a=>{o.message=a,this.updateToasts(o),this.cdr.markForCheck()},updateToast:a=>{this.updateToasts(o,a),this.cdr.markForCheck()},afterClosed:this.getAfterClosed(o),afterGroupToggled:this.getAfterGroupToggled(o),afterGroupRefsAttached:this.getAfterGroupRefsAttached(o).pipe(se(a=>a.groupRefs))}}attachGroupRefs(i,r,o){return fn(this,null,function*(){let a=[];if(i.group){if(i.group.children){a=yield this.createGroupRefs(i,r);let s=this.toastRefs.findIndex(l=>l.getToast().id===i.id);s>-1&&(this.toastRefs[s].groupRefs=a,this.cdr.markForCheck(),this._onGroupRefAttached.next({groupRefs:a,id:i.id}))}else if(i.group.parent&&!o){let l=i.group.parent.getToast(),c=this.toastRefs.findIndex(m=>m.getToast().id===l.id),d=this.toasts.findIndex(m=>m.id===l.id);if(c>-1&&d>-1){this.toastRefs[c].groupRefs.push(r);let m=this.toasts[c].group??{},f=this.toasts[c].group?.children??[];f.push({options:De(M({},i),{type:i.type,message:i.message})}),m.children=f,this.toasts[c].group=M({},m),this.cdr.markForCheck(),this._onGroupRefAttached.next({groupRefs:a,id:l.id})}}}})}createGroupRefs(i,r){return new Promise(a=>{let l=i.group.children.map(c=>new Promise(d=>{c.options.group={parent:r},setTimeout(()=>{try{let m=this.toastService.show(c.options.message,c.options,!0);d(m)}catch(m){console.error("Error creating toast",m),d(null)}})}));Promise.all(l).then(c=>a(c))})}closeToast(i){if(i){let r=this.hotToastComponentList.find(o=>o.toast.id===i);r&&(r.close(),this.cdr.markForCheck())}else this.hotToastComponentList.forEach(r=>r.close()),this.cdr.markForCheck()}beforeClosed(i){i.visible=!1,this.cdr.markForCheck()}afterClosed(i){this.toasts.findIndex(o=>o.id===i.id)>-1&&(this._onClosed.next(i),this.toasts=this.toasts.filter(o=>o.id!==i.id),this.toastRefs=this.toastRefs.filter(o=>o.getToast().id!==i.id),this.cdr.markForCheck())}toggleGroup(i){let r=this.toastRefs.findIndex(o=>o.getToast().id===i.id);r>-1&&(this._onGroupToggle.next(i),this.toastRefs[r].groupExpanded=i.event==="expand",this.cdr.markForCheck())}hasToast(i){return this.toasts.findIndex(r=>r.id===i)>-1}showAllToasts(i){this.isShowingAllToasts=i}getAfterClosed(i){return this.onClosed$.pipe(ce(r=>r.id===i.id))}getAfterGroupToggled(i){return this.onGroupToggle$.pipe(ce(r=>r.id===i.id))}getAfterGroupRefsAttached(i){return this.onGroupRefAttached$.pipe(ce(r=>r.id===i.id))}updateToasts(i,r){this.toasts=this.toasts.map(o=>M(M({},o),o.id===i.id&&M(M({},i),r))),this.cdr.markForCheck()}};n.\u0275fac=function(r){return new(r||n)},n.\u0275cmp=E({type:n,selectors:[["hot-toast-container"]],viewQuery:function(r,o){if(r&1&&ie(Y3,5),r&2){let a;B(a=j())&&(o.hotToastComponentList=a)}},inputs:{defaultConfig:"defaultConfig"},decls:11,vars:0,consts:[[1,"hot-toast-container-overlay"],[1,"hot-toast-container-wrapper"],[3,"showAllToasts","height","beforeClosed","afterClosed","toggleGroup","toast","offset","toastRef","toastsAfter","defaultConfig","isShowingAllToasts"]],template:function(r,o){r&1&&(h(0,"div",0),_(1,` - `),h(2,"div",1),_(3,` - `),h(4,"div"),_(5,` - `),xt(6,jie,3,1,null,null,o.trackById,!0),p(),_(8,` - `),p(),_(9,` -`),p(),_(10,` -`)),r&2&&(g(6),Ct(o.toasts))},dependencies:[Y3],styles:[".hot-toast-container-overlay[_ngcontent-%COMP%]{position:fixed;z-index:var(--hot-toast-container-overlay-z-index, 9999);inset:0;pointer-events:none}.hot-toast-container-wrapper[_ngcontent-%COMP%]{position:relative;height:100%}"],changeDetection:0});let t=n;return t})(),Og=class{constructor(){this.reverseOrder=!1,this.visibleToasts=5,this.stacking="vertical",this.ariaLive="polite",this.role="status",this.position="top-center",this.autoClose=!0,this.theme="toast",this.attributes={},this.info={content:""},this.success={content:""},this.error={content:""},this.loading={content:""},this.blank={content:""},this.warning={content:""}}},Qie=t=>typeof t=="function",Kie=t=>typeof t=="function"&&!!t.\u0275cmp,Zie=(t,n)=>Kie(t)?t:Qie(t)?t(n):t,RS=class{constructor(){this.storage="local",this.key="ngxpert/hototast-${id}",this.count=1,this.enabled=!1}},Xie=new T("HOT_TOAST_CONTAINER_TOKEN"),Rg=(()=>{let n=class n{constructor(){this._isInitialized=!1,this._defaultGlobalConfig=new Og,this._defaultPersistConfig=new RS,this._viewService=u(OS),this._platformId=u(Ks),this._globalConfig=u(Og,{optional:!0}),this._container=u(Xie,{optional:!0}),this._globalConfig&&(this._defaultGlobalConfig=M(M({},this._defaultGlobalConfig),this._globalConfig))}get defaultConfig(){return this._defaultGlobalConfig}set defaultConfig(i){this._defaultGlobalConfig=M(M({},this._defaultGlobalConfig),i),this._componentRef&&this._componentRef.setInput("defaultConfig",this._defaultGlobalConfig)}show(i,r,o){return this.createToast({message:i||this._defaultGlobalConfig.blank.content,type:r?.type??"blank",options:M(M({},this._defaultGlobalConfig),r),skipAttachToParent:o})}error(i,r){return this.createToast({message:i||this._defaultGlobalConfig.error.content,type:"error",options:M(M(M({},this._defaultGlobalConfig),this._defaultGlobalConfig?.error),r)})}success(i,r){return this.createToast({message:i||this._defaultGlobalConfig.success.content,type:"success",options:M(M(M({},this._defaultGlobalConfig),this._defaultGlobalConfig?.success),r)})}loading(i,r){return this.createToast({message:i||this._defaultGlobalConfig.loading.content,type:"loading",options:M(M(M({},this._defaultGlobalConfig),this._defaultGlobalConfig?.loading),r)})}warning(i,r){return this.createToast({message:i||this._defaultGlobalConfig.warning.content,type:"warning",options:M(M(M({},this._defaultGlobalConfig),this._defaultGlobalConfig?.warning),r)})}info(i,r){return this.createToast({message:i||this._defaultGlobalConfig.info.content,type:"info",options:M(M(M({},this._defaultGlobalConfig),this._defaultGlobalConfig?.info),r)})}observe(i){return r=>{let o,a=0,s=i.loading??this._defaultGlobalConfig.loading?.content,l=i.success??this._defaultGlobalConfig.success?.content,c=i.error??this._defaultGlobalConfig.error?.content;return kn(()=>(s&&(o=this.createLoadingToast(s),a=Date.now()),r.pipe(Be(M(M({},l&&{next:d=>{o=this.createOrUpdateToast(i,d,o,"success",a===0?a:Date.now()-a)}}),c&&{error:d=>{o=this.createOrUpdateToast(i,d,o,"error",a===0?a:Date.now()-a)}})))))}}close(i){this._componentRef&&this._componentRef.ref.instance.closeToast(i)}init(){if(!U2(this._platformId))if(this._container){let i=document.querySelector(this._container);i||(console.warn(`No container element found for selector: ${this._container}, using document.body instead as toast container.`),i=document.body),this._componentRef=this._viewService.createComponent(Q3).setInput("defaultConfig",this._defaultGlobalConfig).appendTo(i)}else this._componentRef=this._viewService.createComponent(Q3).setInput("defaultConfig",this._defaultGlobalConfig).appendTo(document.body)}createOrUpdateToast(i,r,o,a,s){try{let l=null,c={};if({content:l,options:c}=this.getContentAndOptions(a,i[a]||(this._defaultGlobalConfig[a]?this._defaultGlobalConfig[a].content:"")),l=Zie(l,r),o){c.data&&(o.data=c.data),o.updateMessage(l);let d=M(M({type:a,duration:s+q3[a]},c),c.duration&&{duration:s+c.duration});o.updateToast(d)}else this.createToast({message:l,type:a,options:c});return o}catch(l){console.error(l)}}createToast({message:i,type:r,options:o,observableMessages:a,skipAttachToParent:s}){this._isInitialized||(this._isInitialized=!0,this.init());let l=o?.id??`toast-${n.nextId++}`;if(!this.isDuplicate(l)&&(!o.persist?.enabled||o.persist?.enabled&&this.handleStorageValue(l,o))){let c=M({ariaLive:o?.ariaLive??"polite",createdAt:Date.now(),duration:o?.duration??q3[r],id:l,message:i,role:o?.role??"status",type:r,visible:!0,observableMessages:a??void 0},o);return new Ag(c).appendTo(this._componentRef.ref.instance,s)}}isDuplicate(i){return this._componentRef.ref.instance.hasToast(i)}handleStorageValue(i,r){let o=1,a=M(M({},this._defaultPersistConfig),r.persist),s=a.storage==="local"?localStorage:sessionStorage,l=a.key.replace(/\${id}/g,i),c=s.getItem(l);return c?(c=parseInt(c,10),c>0?o=c-1:o=c):o=a.count,s.setItem(l,o.toString()),o}getContentAndOptions(i,r){var s;let o,a=M(M({},this._defaultGlobalConfig),this._defaultGlobalConfig[i]);if(typeof r=="string"||Ig(r)||gu(r))o=r;else{let l;s=r,{content:o}=s,l=ed(s,["content"]),a=M(M({},a),l)}return{content:o,options:a}}createLoadingToast(i){let r=null,o={};return{content:r,options:o}=this.getContentAndOptions("loading",i),this.loading(r,o)}};n.nextId=0,n.\u0275fac=function(r){return new(r||n)},n.\u0275prov=O({token:n,factory:n.\u0275fac,providedIn:"root"});let t=n;return t})();function J3(t){return zr([{provide:Og,useValue:t}])}var Mx={REMOVE:"remove",SHOW:"show"},tj=(()=>{let n=class n{constructor(){this.strategiesSource=new tt({}),this.strategies$=this.strategiesSource.asObservable()}};n.\u0275fac=function(r){return new(r||n)},n.\u0275prov=O({token:n,factory:n.\u0275fac});let t=n;return t})(),NS=new T("USE_CONFIGURATION_STORE"),LS=(()=>{let n=class n{constructor(i=!1,r){this.isolate=i,this.configurationStore=r,this.strategiesSource=this.isolate?new tt({}):this.configurationStore.strategiesSource,this.strategies$=this.strategiesSource.asObservable(),this.onAuthorisedDefaultStrategy=this.isolate?void 0:this.configurationStore.onAuthorisedDefaultStrategy,this.onUnAuthorisedDefaultStrategy=this.isolate?void 0:this.configurationStore.onUnAuthorisedDefaultStrategy}setDefaultOnAuthorizedStrategy(i){this.isolate?this.onAuthorisedDefaultStrategy=this.getDefinedStrategy(i):(this.configurationStore.onAuthorisedDefaultStrategy=this.getDefinedStrategy(i),this.onAuthorisedDefaultStrategy=this.configurationStore.onAuthorisedDefaultStrategy)}setDefaultOnUnauthorizedStrategy(i){this.isolate?this.onUnAuthorisedDefaultStrategy=this.getDefinedStrategy(i):(this.configurationStore.onUnAuthorisedDefaultStrategy=this.getDefinedStrategy(i),this.onUnAuthorisedDefaultStrategy=this.configurationStore.onUnAuthorisedDefaultStrategy)}addPermissionStrategy(i,r){this.strategiesSource.value[i]=r}getStrategy(i){return this.strategiesSource.value[i]}getAllStrategies(){return this.strategiesSource.value}getDefinedStrategy(i){if(this.strategiesSource.value[i]||this.isPredefinedStrategy(i))return i;throw new Error(`No ' ${i} ' strategy is found please define one`)}isPredefinedStrategy(i){return i===Mx.SHOW||i===Mx.REMOVE}};n.\u0275fac=function(r){return new(r||n)(pe(NS),pe(tj))},n.\u0275prov=O({token:n,factory:n.\u0275fac});let t=n;return t})();function io(t){return typeof t=="function"}function FS(t){if(Object.prototype.toString.call(t)!=="[object Object]")return!1;{let n=Object.getPrototypeOf(t);return n===null||n===Object.prototype}}function ij(t){return!!t&&typeof t=="string"}function kx(t){return typeof t=="boolean"}function Jie(t){return Object.prototype.toString.call(t)==="[object Promise]"}function Ex(t){return Array.isArray(t)?t.length>0:!!t}function Sx(t){return ij(t)?[t]:t}var nj=(()=>{let n=class n{constructor(){this.permissionsSource=new tt({}),this.permissions$=this.permissionsSource.asObservable()}};n.\u0275fac=function(r){return new(r||n)},n.\u0275prov=O({token:n,factory:n.\u0275fac});let t=n;return t})(),VS=new T("USE_PERMISSIONS_STORE"),_u=(()=>{let n=class n{constructor(i=!1,r){this.isolate=i,this.permissionsStore=r,this.permissionsSource=this.isolate?new tt({}):this.permissionsStore.permissionsSource,this.permissions$=this.permissionsSource.asObservable()}flushPermissions(){this.permissionsSource.next({})}hasPermission(i){return!i||Array.isArray(i)&&i.length===0?Promise.resolve(!0):(i=Sx(i),this.hasArrayPermission(i))}loadPermissions(i,r){let o=i.reduce((a,s)=>this.reducePermission(a,s,r),{});this.permissionsSource.next(o)}addPermission(i,r){if(Array.isArray(i)){let o=i.reduce((a,s)=>this.reducePermission(a,s,r),this.permissionsSource.value);this.permissionsSource.next(o)}else{let o=this.reducePermission(this.permissionsSource.value,i,r);this.permissionsSource.next(o)}}removePermission(i){let r=M({},this.permissionsSource.value);delete r[i],this.permissionsSource.next(r)}getPermission(i){return this.permissionsSource.value[i]}getPermissions(){return this.permissionsSource.value}reducePermission(i,r,o){return o&&io(o)?De(M({},i),{[r]:{name:r,validationFunction:o}}):De(M({},i),{[r]:{name:r}})}hasArrayPermission(i){let r=i.map(o=>{if(this.hasPermissionValidationFunction(o)){let a=this.permissionsSource.value[o].validationFunction,s=M({},this.permissionsSource.value);return Q(null).pipe(se(()=>a(o,s)),$e(l=>kx(l)?Q(l):l),fi(()=>Q(!1)))}return Q(!!this.permissionsSource.value[o])});return Ot(r).pipe(uo(),gn(o=>o!==!1,!1),se(o=>o!==!1)).toPromise().then(o=>o)}hasPermissionValidationFunction(i){return!!this.permissionsSource.value[i]&&!!this.permissionsSource.value[i].validationFunction&&io(this.permissionsSource.value[i].validationFunction)}};n.\u0275fac=function(r){return new(r||n)(pe(VS),pe(nj))},n.\u0275prov=O({token:n,factory:n.\u0275fac});let t=n;return t})(),Tx=class{constructor(){this.rolesSource=new tt({}),this.roles$=this.rolesSource.asObservable()}},BS=new T("USE_ROLES_STORE"),Th=(()=>{let n=class n{constructor(i=!1,r,o){this.isolate=i,this.rolesStore=r,this.permissionsService=o,this.rolesSource=this.isolate?new tt({}):this.rolesStore.rolesSource,this.roles$=this.rolesSource.asObservable()}addRole(i,r){let o=De(M({},this.rolesSource.value),{[i]:{name:i,validationFunction:r}});this.rolesSource.next(o)}addRoleWithPermissions(i,r){this.permissionsService.addPermission(r),this.addRole(i,r)}addRoles(i){Object.keys(i).forEach((r,o)=>{this.addRole(r,i[r])})}addRolesWithPermissions(i){Object.keys(i).forEach((r,o)=>{this.addRoleWithPermissions(r,i[r])})}flushRoles(){this.rolesSource.next({})}flushRolesAndPermissions(){this.flushRoles(),this.permissionsService.flushPermissions()}removeRole(i){let r=M({},this.rolesSource.value);delete r[i],this.rolesSource.next(r)}getRoles(){return this.rolesSource.value}getRole(i){return this.rolesSource.value[i]}hasOnlyRoles(i){return!i||Array.isArray(i)&&i.length===0?Promise.resolve(!0):(i=Sx(i),Promise.all([this.hasRoleKey(i),this.hasRolePermission(this.rolesSource.value,i)]).then(([o,a])=>o||a))}hasRoleKey(i){let r=i.map(o=>{if(!!this.rolesSource.value[o]&&!!this.rolesSource.value[o].validationFunction&&io(this.rolesSource.value[o].validationFunction)&&!Jie(this.rolesSource.value[o].validationFunction)){let s=this.rolesSource.value[o].validationFunction,l=M({},this.rolesSource.value);return Q(null).pipe(se(()=>s(o,l)),$e(c=>kx(c)?Q(c):c),fi(()=>Q(!1)))}return Q(!1)});return Ot(r).pipe(uo(),gn(o=>o!==!1,!1),se(o=>o!==!1)).toPromise().then(o=>o)}hasRolePermission(i,r){return Ot(r).pipe(Mt(o=>i[o]&&Array.isArray(i[o].validationFunction)?Ot(i[o].validationFunction).pipe(Mt(a=>this.permissionsService.hasPermission(a)),Yw(a=>a===!0)):Q(!1)),gn(o=>o===!0,!1)).toPromise()}};n.\u0275fac=function(r){return new(r||n)(pe(BS),pe(Tx),pe(_u))},n.\u0275prov=O({token:n,factory:n.\u0275fac});let t=n;return t})(),Ih=(()=>{let n=class n{constructor(){this.permissionsAuthorized=new U,this.permissionsUnauthorized=new U,this.firstMergeUnusedRun=1,this.permissionsService=u(_u),this.configurationService=u(LS),this.rolesService=u(Th),this.viewContainer=u(nt),this.changeDetector=u(ye),this.templateRef=u(te)}ngOnInit(){this.viewContainer.clear(),this.initPermissionSubscription=this.validateExceptOnlyPermissions()}ngOnChanges(i){let r=i.ngxPermissionsOnly,o=i.ngxPermissionsExcept;if(r||o){if(r&&r.firstChange||o&&o.firstChange)return;Je(this.permissionsService.permissions$,this.rolesService.roles$).pipe(Ya(this.firstMergeUnusedRun),lt(1)).subscribe(()=>{if(Ex(this.ngxPermissionsExcept)){this.validateExceptAndOnlyPermissions();return}if(Ex(this.ngxPermissionsOnly)){this.validateOnlyPermissions();return}this.handleAuthorisedPermission(this.getAuthorisedTemplates())})}}ngOnDestroy(){this.initPermissionSubscription&&this.initPermissionSubscription.unsubscribe()}validateExceptOnlyPermissions(){return Je(this.permissionsService.permissions$,this.rolesService.roles$).pipe(Ya(this.firstMergeUnusedRun)).subscribe(()=>{if(Ex(this.ngxPermissionsExcept)){this.validateExceptAndOnlyPermissions();return}if(Ex(this.ngxPermissionsOnly)){this.validateOnlyPermissions();return}this.handleAuthorisedPermission(this.getAuthorisedTemplates())})}validateExceptAndOnlyPermissions(){Promise.all([this.permissionsService.hasPermission(this.ngxPermissionsExcept),this.rolesService.hasOnlyRoles(this.ngxPermissionsExcept)]).then(([i,r])=>{if(i||r){this.handleUnauthorisedPermission(this.ngxPermissionsExceptElse||this.ngxPermissionsElse);return}if(this.ngxPermissionsOnly)throw!1;this.handleAuthorisedPermission(this.ngxPermissionsExceptThen||this.ngxPermissionsThen||this.templateRef)}).catch(()=>{this.ngxPermissionsOnly?this.validateOnlyPermissions():this.handleAuthorisedPermission(this.ngxPermissionsExceptThen||this.ngxPermissionsThen||this.templateRef)})}validateOnlyPermissions(){Promise.all([this.permissionsService.hasPermission(this.ngxPermissionsOnly),this.rolesService.hasOnlyRoles(this.ngxPermissionsOnly)]).then(([i,r])=>{i||r?this.handleAuthorisedPermission(this.ngxPermissionsOnlyThen||this.ngxPermissionsThen||this.templateRef):this.handleUnauthorisedPermission(this.ngxPermissionsOnlyElse||this.ngxPermissionsElse)}).catch(()=>{this.handleUnauthorisedPermission(this.ngxPermissionsOnlyElse||this.ngxPermissionsElse)})}handleUnauthorisedPermission(i){if(!(kx(this.currentAuthorizedState)&&!this.currentAuthorizedState)){if(this.currentAuthorizedState=!1,this.permissionsUnauthorized.emit(),this.getUnAuthorizedStrategyInput()){this.applyStrategyAccordingToStrategyType(this.getUnAuthorizedStrategyInput());return}this.configurationService.onUnAuthorisedDefaultStrategy&&!this.elseBlockDefined()?this.applyStrategy(this.configurationService.onUnAuthorisedDefaultStrategy):this.showTemplateBlockInView(i)}}handleAuthorisedPermission(i){if(!(kx(this.currentAuthorizedState)&&this.currentAuthorizedState)){if(this.currentAuthorizedState=!0,this.permissionsAuthorized.emit(),this.getAuthorizedStrategyInput()){this.applyStrategyAccordingToStrategyType(this.getAuthorizedStrategyInput());return}this.configurationService.onAuthorisedDefaultStrategy&&!this.thenBlockDefined()?this.applyStrategy(this.configurationService.onAuthorisedDefaultStrategy):this.showTemplateBlockInView(i)}}applyStrategyAccordingToStrategyType(i){if(ij(i)){this.applyStrategy(i);return}if(io(i)){this.showTemplateBlockInView(this.templateRef),i(this.templateRef);return}}showTemplateBlockInView(i){this.viewContainer.clear(),i&&(this.viewContainer.createEmbeddedView(i),this.changeDetector.markForCheck())}getAuthorisedTemplates(){return this.ngxPermissionsOnlyThen||this.ngxPermissionsExceptThen||this.ngxPermissionsThen||this.templateRef}elseBlockDefined(){return!!this.ngxPermissionsExceptElse||!!this.ngxPermissionsElse}thenBlockDefined(){return!!this.ngxPermissionsExceptThen||!!this.ngxPermissionsThen}getAuthorizedStrategyInput(){return this.ngxPermissionsOnlyAuthorisedStrategy||this.ngxPermissionsExceptAuthorisedStrategy||this.ngxPermissionsAuthorisedStrategy}getUnAuthorizedStrategyInput(){return this.ngxPermissionsOnlyUnauthorisedStrategy||this.ngxPermissionsExceptUnauthorisedStrategy||this.ngxPermissionsUnauthorisedStrategy}applyStrategy(i){if(i===Mx.SHOW){this.showTemplateBlockInView(this.templateRef);return}if(i===Mx.REMOVE){this.viewContainer.clear();return}let r=this.configurationService.getStrategy(i);this.showTemplateBlockInView(this.templateRef),r(this.templateRef)}};n.\u0275fac=function(r){return new(r||n)},n.\u0275dir=F({type:n,selectors:[["","ngxPermissionsOnly",""],["","ngxPermissionsExcept",""]],inputs:{ngxPermissionsOnly:"ngxPermissionsOnly",ngxPermissionsOnlyThen:"ngxPermissionsOnlyThen",ngxPermissionsOnlyElse:"ngxPermissionsOnlyElse",ngxPermissionsExcept:"ngxPermissionsExcept",ngxPermissionsExceptElse:"ngxPermissionsExceptElse",ngxPermissionsExceptThen:"ngxPermissionsExceptThen",ngxPermissionsThen:"ngxPermissionsThen",ngxPermissionsElse:"ngxPermissionsElse",ngxPermissionsOnlyAuthorisedStrategy:"ngxPermissionsOnlyAuthorisedStrategy",ngxPermissionsOnlyUnauthorisedStrategy:"ngxPermissionsOnlyUnauthorisedStrategy",ngxPermissionsExceptUnauthorisedStrategy:"ngxPermissionsExceptUnauthorisedStrategy",ngxPermissionsExceptAuthorisedStrategy:"ngxPermissionsExceptAuthorisedStrategy",ngxPermissionsUnauthorisedStrategy:"ngxPermissionsUnauthorisedStrategy",ngxPermissionsAuthorisedStrategy:"ngxPermissionsAuthorisedStrategy"},outputs:{permissionsAuthorized:"permissionsAuthorized",permissionsUnauthorized:"permissionsUnauthorized"},standalone:!1,features:[Ae]});let t=n;return t})(),ene="default";var ej=(()=>{let n=class n{constructor(i,r,o){this.permissionsService=i,this.rolesService=r,this.router=o}canActivate(i,r){return this.hasPermissions(i,r)}canActivateChild(i,r){return this.hasPermissions(i,r)}canLoad(i){return this.hasPermissions(i)}canMatch(i){return this.hasPermissions(i)}hasPermissions(i,r){let o=i&&i.data?i.data.permissions:{},a=this.transformPermission(o,i,r);return this.isParameterAvailable(a.except)?this.passingExceptPermissionsValidation(a,i,r):this.isParameterAvailable(a.only)?this.passingOnlyPermissionsValidation(a,i,r):!0}transformPermission(i,r,o){let a=io(i.only)?i.only(r,o):Sx(i.only),s=io(i.except)?i.except(r,o):Sx(i.except),l=i.redirectTo;return{only:a,except:s,redirectTo:l}}isParameterAvailable(i){return!!i&&i.length>0}passingExceptPermissionsValidation(i,r,o){if(i.redirectTo&&(io(i.redirectTo)||FS(i.redirectTo)&&!this.isRedirectionWithParameters(i.redirectTo))){let a="";return Ot(i.except).pipe(Mt(s=>Ga([this.permissionsService.hasPermission(s),this.rolesService.hasOnlyRoles(s)]).pipe(Be(l=>{l.every(d=>d===!1)||(a=s)}))),gn(s=>s.some(l=>l===!0),!1),Mt(s=>a?(this.handleRedirectOfFailedPermission(i,a,r,o),Q(!1)):!s&&i.only?this.onlyRedirectCheck(i,r,o):Q(!s))).toPromise()}return Promise.all([this.permissionsService.hasPermission(i.except),this.rolesService.hasOnlyRoles(i.except)]).then(([a,s])=>a||s?(i.redirectTo&&this.redirectToAnotherRoute(i.redirectTo,r,o),!1):i.only?this.checkOnlyPermissions(i,r,o):!0)}redirectToAnotherRoute(i,r,o,a){let s=io(i)?i(a,r,o):i;if(this.isRedirectionWithParameters(s)){s.navigationCommands=this.transformNavigationCommands(s.navigationCommands,r,o),s.navigationExtras=this.transformNavigationExtras(s.navigationExtras,r,o),this.router.navigate(s.navigationCommands,s.navigationExtras);return}Array.isArray(s)?this.router.navigate(s):this.router.navigate([s])}isRedirectionWithParameters(i){return FS(i)&&(!!i.navigationCommands||!!i.navigationExtras)}transformNavigationCommands(i,r,o){return io(i)?i(r,o):i}transformNavigationExtras(i,r,o){return io(i)?i(r,o):i}onlyRedirectCheck(i,r,o){let a="";return Ot(i.only).pipe(Mt(s=>Ga([this.permissionsService.hasPermission(s),this.rolesService.hasOnlyRoles(s)]).pipe(Be(l=>{l.every(d=>d===!1)&&(a=s)}))),gn(s=>io(i.redirectTo)?s.some(l=>l===!0):s.every(l=>l===!1),!1),Mt(s=>io(i.redirectTo)?s?Q(!0):(this.handleRedirectOfFailedPermission(i,a,r,o),Q(!1)):(a&&this.handleRedirectOfFailedPermission(i,a,r,o),Q(!s)))).toPromise()}handleRedirectOfFailedPermission(i,r,o,a){this.isFailedPermissionPropertyOfRedirectTo(i,r)?this.redirectToAnotherRoute(i.redirectTo[r],o,a,r):io(i.redirectTo)?this.redirectToAnotherRoute(i.redirectTo,o,a,r):this.redirectToAnotherRoute(i.redirectTo[ene],o,a,r)}isFailedPermissionPropertyOfRedirectTo(i,r){return!!i.redirectTo&&i.redirectTo[r]}checkOnlyPermissions(i,r,o){let a=M({},i);return Promise.all([this.permissionsService.hasPermission(a.only),this.rolesService.hasOnlyRoles(a.only)]).then(([s,l])=>s||l?!0:(a.redirectTo&&this.redirectToAnotherRoute(a.redirectTo,r,o),!1))}passingOnlyPermissionsValidation(i,r,o){return io(i.redirectTo)||FS(i.redirectTo)&&!this.isRedirectionWithParameters(i.redirectTo)?this.onlyRedirectCheck(i,r,o):this.checkOnlyPermissions(i,r,o)}};n.\u0275fac=function(r){return new(r||n)(pe(_u),pe(Th),pe(Re))},n.\u0275prov=O({token:n,factory:n.\u0275fac});let t=n;return t})();var xc=(()=>{let n=class n{static forRoot(i={}){return{ngModule:n,providers:[nj,Tx,tj,_u,ej,Th,LS,{provide:VS,useValue:i.permissionsIsolate},{provide:BS,useValue:i.rolesIsolate},{provide:NS,useValue:i.configurationIsolate}]}}static forChild(i={}){return{ngModule:n,providers:[{provide:VS,useValue:i.permissionsIsolate},{provide:BS,useValue:i.rolesIsolate},{provide:NS,useValue:i.configurationIsolate},LS,_u,Th,ej]}}};n.\u0275fac=function(r){return new(r||n)},n.\u0275mod=ee({type:n}),n.\u0275inj=J({});let t=n;return t})();function Ng(t){return t+.5|0}var Cc=(t,n,e)=>Math.max(Math.min(t,e),n);function Pg(t){return Cc(Ng(t*2.55),0,255)}function wc(t){return Cc(Ng(t*255),0,255)}function pl(t){return Cc(Ng(t/2.55)/100,0,1)}function rj(t){return Cc(Ng(t*100),0,100)}var na={0:0,1:1,2:2,3:3,4:4,5:5,6:6,7:7,8:8,9:9,A:10,B:11,C:12,D:13,E:14,F:15,a:10,b:11,c:12,d:13,e:14,f:15},zS=[..."0123456789ABCDEF"],tne=t=>zS[t&15],ine=t=>zS[(t&240)>>4]+zS[t&15],Ix=t=>(t&240)>>4===(t&15),nne=t=>Ix(t.r)&&Ix(t.g)&&Ix(t.b)&&Ix(t.a);function rne(t){var n=t.length,e;return t[0]==="#"&&(n===4||n===5?e={r:255&na[t[1]]*17,g:255&na[t[2]]*17,b:255&na[t[3]]*17,a:n===5?na[t[4]]*17:255}:(n===7||n===9)&&(e={r:na[t[1]]<<4|na[t[2]],g:na[t[3]]<<4|na[t[4]],b:na[t[5]]<<4|na[t[6]],a:n===9?na[t[7]]<<4|na[t[8]]:255})),e}var one=(t,n)=>t<255?n(t):"";function ane(t){var n=nne(t)?tne:ine;return t?"#"+n(t.r)+n(t.g)+n(t.b)+one(t.a,n):void 0}var sne=/^(hsla?|hwb|hsv)\(\s*([-+.e\d]+)(?:deg)?[\s,]+([-+.e\d]+)%[\s,]+([-+.e\d]+)%(?:[\s,]+([-+.e\d]+)(%)?)?\s*\)$/;function lj(t,n,e){let i=n*Math.min(e,1-e),r=(o,a=(o+t/30)%12)=>e-i*Math.max(Math.min(a-3,9-a,1),-1);return[r(0),r(8),r(4)]}function lne(t,n,e){let i=(r,o=(r+t/60)%6)=>e-e*n*Math.max(Math.min(o,4-o,1),0);return[i(5),i(3),i(1)]}function cne(t,n,e){let i=lj(t,1,.5),r;for(n+e>1&&(r=1/(n+e),n*=r,e*=r),r=0;r<3;r++)i[r]*=1-n-e,i[r]+=n;return i}function dne(t,n,e,i,r){return t===r?(n-e)/i+(n.5?d/(2-o-a):d/(o+a),l=dne(e,i,r,d,o),l=l*60+.5),[l|0,c||0,s]}function $S(t,n,e,i){return(Array.isArray(n)?t(n[0],n[1],n[2]):t(n,e,i)).map(wc)}function WS(t,n,e){return $S(lj,t,n,e)}function une(t,n,e){return $S(cne,t,n,e)}function mne(t,n,e){return $S(lne,t,n,e)}function cj(t){return(t%360+360)%360}function hne(t){let n=sne.exec(t),e=255,i;if(!n)return;n[5]!==i&&(e=n[6]?Pg(+n[5]):wc(+n[5]));let r=cj(+n[2]),o=+n[3]/100,a=+n[4]/100;return n[1]==="hwb"?i=une(r,o,a):n[1]==="hsv"?i=mne(r,o,a):i=WS(r,o,a),{r:i[0],g:i[1],b:i[2],a:e}}function pne(t,n){var e=US(t);e[0]=cj(e[0]+n),e=WS(e),t.r=e[0],t.g=e[1],t.b=e[2]}function fne(t){if(!t)return;let n=US(t),e=n[0],i=rj(n[1]),r=rj(n[2]);return t.a<255?`hsla(${e}, ${i}%, ${r}%, ${pl(t.a)})`:`hsl(${e}, ${i}%, ${r}%)`}var oj={x:"dark",Z:"light",Y:"re",X:"blu",W:"gr",V:"medium",U:"slate",A:"ee",T:"ol",S:"or",B:"ra",C:"lateg",D:"ights",R:"in",Q:"turquois",E:"hi",P:"ro",O:"al",N:"le",M:"de",L:"yello",F:"en",K:"ch",G:"arks",H:"ea",I:"ightg",J:"wh"},aj={OiceXe:"f0f8ff",antiquewEte:"faebd7",aqua:"ffff",aquamarRe:"7fffd4",azuY:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"0",blanKedOmond:"ffebcd",Xe:"ff",XeviTet:"8a2be2",bPwn:"a52a2a",burlywood:"deb887",caMtXe:"5f9ea0",KartYuse:"7fff00",KocTate:"d2691e",cSO:"ff7f50",cSnflowerXe:"6495ed",cSnsilk:"fff8dc",crimson:"dc143c",cyan:"ffff",xXe:"8b",xcyan:"8b8b",xgTMnPd:"b8860b",xWay:"a9a9a9",xgYF:"6400",xgYy:"a9a9a9",xkhaki:"bdb76b",xmagFta:"8b008b",xTivegYF:"556b2f",xSange:"ff8c00",xScEd:"9932cc",xYd:"8b0000",xsOmon:"e9967a",xsHgYF:"8fbc8f",xUXe:"483d8b",xUWay:"2f4f4f",xUgYy:"2f4f4f",xQe:"ced1",xviTet:"9400d3",dAppRk:"ff1493",dApskyXe:"bfff",dimWay:"696969",dimgYy:"696969",dodgerXe:"1e90ff",fiYbrick:"b22222",flSOwEte:"fffaf0",foYstWAn:"228b22",fuKsia:"ff00ff",gaRsbSo:"dcdcdc",ghostwEte:"f8f8ff",gTd:"ffd700",gTMnPd:"daa520",Way:"808080",gYF:"8000",gYFLw:"adff2f",gYy:"808080",honeyMw:"f0fff0",hotpRk:"ff69b4",RdianYd:"cd5c5c",Rdigo:"4b0082",ivSy:"fffff0",khaki:"f0e68c",lavFMr:"e6e6fa",lavFMrXsh:"fff0f5",lawngYF:"7cfc00",NmoncEffon:"fffacd",ZXe:"add8e6",ZcSO:"f08080",Zcyan:"e0ffff",ZgTMnPdLw:"fafad2",ZWay:"d3d3d3",ZgYF:"90ee90",ZgYy:"d3d3d3",ZpRk:"ffb6c1",ZsOmon:"ffa07a",ZsHgYF:"20b2aa",ZskyXe:"87cefa",ZUWay:"778899",ZUgYy:"778899",ZstAlXe:"b0c4de",ZLw:"ffffe0",lime:"ff00",limegYF:"32cd32",lRF:"faf0e6",magFta:"ff00ff",maPon:"800000",VaquamarRe:"66cdaa",VXe:"cd",VScEd:"ba55d3",VpurpN:"9370db",VsHgYF:"3cb371",VUXe:"7b68ee",VsprRggYF:"fa9a",VQe:"48d1cc",VviTetYd:"c71585",midnightXe:"191970",mRtcYam:"f5fffa",mistyPse:"ffe4e1",moccasR:"ffe4b5",navajowEte:"ffdead",navy:"80",Tdlace:"fdf5e6",Tive:"808000",TivedBb:"6b8e23",Sange:"ffa500",SangeYd:"ff4500",ScEd:"da70d6",pOegTMnPd:"eee8aa",pOegYF:"98fb98",pOeQe:"afeeee",pOeviTetYd:"db7093",papayawEp:"ffefd5",pHKpuff:"ffdab9",peru:"cd853f",pRk:"ffc0cb",plum:"dda0dd",powMrXe:"b0e0e6",purpN:"800080",YbeccapurpN:"663399",Yd:"ff0000",Psybrown:"bc8f8f",PyOXe:"4169e1",saddNbPwn:"8b4513",sOmon:"fa8072",sandybPwn:"f4a460",sHgYF:"2e8b57",sHshell:"fff5ee",siFna:"a0522d",silver:"c0c0c0",skyXe:"87ceeb",UXe:"6a5acd",UWay:"708090",UgYy:"708090",snow:"fffafa",sprRggYF:"ff7f",stAlXe:"4682b4",tan:"d2b48c",teO:"8080",tEstN:"d8bfd8",tomato:"ff6347",Qe:"40e0d0",viTet:"ee82ee",JHt:"f5deb3",wEte:"ffffff",wEtesmoke:"f5f5f5",Lw:"ffff00",LwgYF:"9acd32"};function gne(){let t={},n=Object.keys(aj),e=Object.keys(oj),i,r,o,a,s;for(i=0;i>16&255,o>>8&255,o&255]}return t}var Ax;function _ne(t){Ax||(Ax=gne(),Ax.transparent=[0,0,0,0]);let n=Ax[t.toLowerCase()];return n&&{r:n[0],g:n[1],b:n[2],a:n.length===4?n[3]:255}}var bne=/^rgba?\(\s*([-+.\d]+)(%)?[\s,]+([-+.e\d]+)(%)?[\s,]+([-+.e\d]+)(%)?(?:[\s,/]+([-+.e\d]+)(%)?)?\s*\)$/;function vne(t){let n=bne.exec(t),e=255,i,r,o;if(n){if(n[7]!==i){let a=+n[7];e=n[8]?Pg(a):Cc(a*255,0,255)}return i=+n[1],r=+n[3],o=+n[5],i=255&(n[2]?Pg(i):Cc(i,0,255)),r=255&(n[4]?Pg(r):Cc(r,0,255)),o=255&(n[6]?Pg(o):Cc(o,0,255)),{r:i,g:r,b:o,a:e}}}function yne(t){return t&&(t.a<255?`rgba(${t.r}, ${t.g}, ${t.b}, ${pl(t.a)})`:`rgb(${t.r}, ${t.g}, ${t.b})`)}var HS=t=>t<=.0031308?t*12.92:Math.pow(t,1/2.4)*1.055-.055,Ah=t=>t<=.04045?t/12.92:Math.pow((t+.055)/1.055,2.4);function xne(t,n,e){let i=Ah(pl(t.r)),r=Ah(pl(t.g)),o=Ah(pl(t.b));return{r:wc(HS(i+e*(Ah(pl(n.r))-i))),g:wc(HS(r+e*(Ah(pl(n.g))-r))),b:wc(HS(o+e*(Ah(pl(n.b))-o))),a:t.a+e*(n.a-t.a)}}function Ox(t,n,e){if(t){let i=US(t);i[n]=Math.max(0,Math.min(i[n]+i[n]*e,n===0?360:1)),i=WS(i),t.r=i[0],t.g=i[1],t.b=i[2]}}function dj(t,n){return t&&Object.assign(n||{},t)}function sj(t){var n={r:0,g:0,b:0,a:255};return Array.isArray(t)?t.length>=3&&(n={r:t[0],g:t[1],b:t[2],a:255},t.length>3&&(n.a=wc(t[3]))):(n=dj(t,{r:0,g:0,b:0,a:1}),n.a=wc(n.a)),n}function Cne(t){return t.charAt(0)==="r"?vne(t):hne(t)}var Fg=class t{constructor(n){if(n instanceof t)return n;let e=typeof n,i;e==="object"?i=sj(n):e==="string"&&(i=rne(n)||_ne(n)||Cne(n)),this._rgb=i,this._valid=!!i}get valid(){return this._valid}get rgb(){var n=dj(this._rgb);return n&&(n.a=pl(n.a)),n}set rgb(n){this._rgb=sj(n)}rgbString(){return this._valid?yne(this._rgb):void 0}hexString(){return this._valid?ane(this._rgb):void 0}hslString(){return this._valid?fne(this._rgb):void 0}mix(n,e){if(n){let i=this.rgb,r=n.rgb,o,a=e===o?.5:e,s=2*a-1,l=i.a-r.a,c=((s*l===-1?s:(s+l)/(1+s*l))+1)/2;o=1-c,i.r=255&c*i.r+o*r.r+.5,i.g=255&c*i.g+o*r.g+.5,i.b=255&c*i.b+o*r.b+.5,i.a=a*i.a+(1-a)*r.a,this.rgb=i}return this}interpolate(n,e){return n&&(this._rgb=xne(this._rgb,n._rgb,e)),this}clone(){return new t(this.rgb)}alpha(n){return this._rgb.a=wc(n),this}clearer(n){let e=this._rgb;return e.a*=1-n,this}greyscale(){let n=this._rgb,e=Ng(n.r*.3+n.g*.59+n.b*.11);return n.r=n.g=n.b=e,this}opaquer(n){let e=this._rgb;return e.a*=1+n,this}negate(){let n=this._rgb;return n.r=255-n.r,n.g=255-n.g,n.b=255-n.b,this}lighten(n){return Ox(this._rgb,2,n),this}darken(n){return Ox(this._rgb,2,-n),this}saturate(n){return Ox(this._rgb,1,n),this}desaturate(n){return Ox(this._rgb,1,-n),this}rotate(n){return pne(this._rgb,n),this}};function Ts(){}var xj=(()=>{let t=0;return()=>t++})();function Et(t){return t==null}function Ei(t){if(Array.isArray&&Array.isArray(t))return!0;let n=Object.prototype.toString.call(t);return n.slice(0,7)==="[object"&&n.slice(-6)==="Array]"}function St(t){return t!==null&&Object.prototype.toString.call(t)==="[object Object]"}function Gi(t){return(typeof t=="number"||t instanceof Number)&&isFinite(+t)}function no(t,n){return Gi(t)?t:n}function st(t,n){return typeof t>"u"?n:t}var Cj=(t,n)=>typeof t=="string"&&t.endsWith("%")?parseFloat(t)/100:+t/n,QS=(t,n)=>typeof t=="string"&&t.endsWith("%")?parseFloat(t)/100*n:+t;function yi(t,n,e){if(t&&typeof t.call=="function")return t.apply(e,n)}function ii(t,n,e,i){let r,o,a;if(Ei(t))if(o=t.length,i)for(r=o-1;r>=0;r--)n.call(e,t[r],r);else for(r=0;rt,x:t=>t.x,y:t=>t.y};function Ene(t){let n=t.split("."),e=[],i="";for(let r of n)i+=r,i.endsWith("\\")?i=i.slice(0,-1)+".":(e.push(i),i="");return e}function Mne(t){let n=Ene(t);return e=>{for(let i of n){if(i==="")break;e=e&&e[i]}return e}}function _l(t,n){return(uj[n]||(uj[n]=Mne(n)))(t)}function jx(t){return t.charAt(0).toUpperCase()+t.slice(1)}var Nh=t=>typeof t<"u",fl=t=>typeof t=="function",KS=(t,n)=>{if(t.size!==n.size)return!1;for(let e of t)if(!n.has(e))return!1;return!0};function Dj(t){return t.type==="mouseup"||t.type==="click"||t.type==="contextmenu"}var Ht=Math.PI,Mi=2*Ht,kne=Mi+Ht,Lx=Number.POSITIVE_INFINITY,Sne=Ht/180,Zi=Ht/2,bu=Ht/4,mj=Ht*2/3,gl=Math.log10,Ba=Math.sign;function Lh(t,n,e){return Math.abs(t-n)r-o).pop(),n}function Tne(t){return typeof t=="symbol"||typeof t=="object"&&t!==null&&!(Symbol.toPrimitive in t||"toString"in t||"valueOf"in t)}function xu(t){return!Tne(t)&&!isNaN(parseFloat(t))&&isFinite(t)}function Mj(t,n){let e=Math.round(t);return e-n<=t&&e+n>=t}function XS(t,n,e){let i,r,o;for(i=0,r=t.length;il&&c=Math.min(n,e)-i&&t<=Math.max(n,e)+i}function zx(t,n,e){e=e||(a=>t[a]1;)o=r+i>>1,e(o)?r=o:i=o;return{lo:r,hi:i}}var ks=(t,n,e,i)=>zx(t,e,i?r=>{let o=t[r][n];return ot[r][n]zx(t,e,i=>t[i][n]>=e);function Tj(t,n,e){let i=0,r=t.length;for(;ii&&t[r-1]>e;)r--;return i>0||r{let i="_onData"+jx(e),r=t[e];Object.defineProperty(t,e,{configurable:!0,enumerable:!1,value(...o){let a=r.apply(this,o);return t._chartjs.listeners.forEach(s=>{typeof s[i]=="function"&&s[i](...o)}),a}})})}function tT(t,n){let e=t._chartjs;if(!e)return;let i=e.listeners,r=i.indexOf(n);r!==-1&&i.splice(r,1),!(i.length>0)&&(Ij.forEach(o=>{delete t[o]}),delete t._chartjs)}function iT(t){let n=new Set(t);return n.size===t.length?t:Array.from(n)}var nT=(function(){return typeof window>"u"?function(t){return t()}:window.requestAnimationFrame})();function rT(t,n){let e=[],i=!1;return function(...r){e=r,i||(i=!0,nT.call(window,()=>{i=!1,t.apply(n,e)}))}}function Oj(t,n){let e;return function(...i){return n?(clearTimeout(e),e=setTimeout(t,n,i)):t.apply(this,i),n}}var Ux=t=>t==="start"?"left":t==="end"?"right":"center",ar=(t,n,e)=>t==="start"?n:t==="end"?e:(n+e)/2,Rj=(t,n,e,i)=>t===(i?"left":"right")?e:t==="center"?(n+e)/2:n;function oT(t,n,e){let i=n.length,r=0,o=i;if(t._sorted){let{iScale:a,vScale:s,_parsed:l}=t,c=t.dataset&&t.dataset.options?t.dataset.options.spanGaps:null,d=a.axis,{min:m,max:f,minDefined:b,maxDefined:v}=a.getUserBounds();if(b){if(r=Math.min(ks(l,d,m).lo,e?i:ks(n,d,a.getPixelForValue(m)).lo),c){let w=l.slice(0,r+1).reverse().findIndex(x=>!Et(x[s.axis]));r-=Math.max(0,w)}r=Dn(r,0,i-1)}if(v){let w=Math.max(ks(l,a.axis,f,!0).hi+1,e?0:ks(n,d,a.getPixelForValue(f),!0).hi+1);if(c){let x=l.slice(w-1).findIndex(D=>!Et(D[s.axis]));w+=Math.max(0,x)}o=Dn(w,r,i)-r}else o=i-r}return{start:r,count:o}}function aT(t){let{xScale:n,yScale:e,_scaleRanges:i}=t,r={xmin:n.min,xmax:n.max,ymin:e.min,ymax:e.max};if(!i)return t._scaleRanges=r,!0;let o=i.xmin!==n.min||i.xmax!==n.max||i.ymin!==e.min||i.ymax!==e.max;return Object.assign(i,r),o}var Rx=t=>t===0||t===1,hj=(t,n,e)=>-(Math.pow(2,10*(t-=1))*Math.sin((t-n)*Mi/e)),pj=(t,n,e)=>Math.pow(2,-10*t)*Math.sin((t-n)*Mi/e)+1,Oh={linear:t=>t,easeInQuad:t=>t*t,easeOutQuad:t=>-t*(t-2),easeInOutQuad:t=>(t/=.5)<1?.5*t*t:-.5*(--t*(t-2)-1),easeInCubic:t=>t*t*t,easeOutCubic:t=>(t-=1)*t*t+1,easeInOutCubic:t=>(t/=.5)<1?.5*t*t*t:.5*((t-=2)*t*t+2),easeInQuart:t=>t*t*t*t,easeOutQuart:t=>-((t-=1)*t*t*t-1),easeInOutQuart:t=>(t/=.5)<1?.5*t*t*t*t:-.5*((t-=2)*t*t*t-2),easeInQuint:t=>t*t*t*t*t,easeOutQuint:t=>(t-=1)*t*t*t*t+1,easeInOutQuint:t=>(t/=.5)<1?.5*t*t*t*t*t:.5*((t-=2)*t*t*t*t+2),easeInSine:t=>-Math.cos(t*Zi)+1,easeOutSine:t=>Math.sin(t*Zi),easeInOutSine:t=>-.5*(Math.cos(Ht*t)-1),easeInExpo:t=>t===0?0:Math.pow(2,10*(t-1)),easeOutExpo:t=>t===1?1:-Math.pow(2,-10*t)+1,easeInOutExpo:t=>Rx(t)?t:t<.5?.5*Math.pow(2,10*(t*2-1)):.5*(-Math.pow(2,-10*(t*2-1))+2),easeInCirc:t=>t>=1?t:-(Math.sqrt(1-t*t)-1),easeOutCirc:t=>Math.sqrt(1-(t-=1)*t),easeInOutCirc:t=>(t/=.5)<1?-.5*(Math.sqrt(1-t*t)-1):.5*(Math.sqrt(1-(t-=2)*t)+1),easeInElastic:t=>Rx(t)?t:hj(t,.075,.3),easeOutElastic:t=>Rx(t)?t:pj(t,.075,.3),easeInOutElastic(t){return Rx(t)?t:t<.5?.5*hj(t*2,.1125,.45):.5+.5*pj(t*2-1,.1125,.45)},easeInBack(t){return t*t*((1.70158+1)*t-1.70158)},easeOutBack(t){return(t-=1)*t*((1.70158+1)*t+1.70158)+1},easeInOutBack(t){let n=1.70158;return(t/=.5)<1?.5*(t*t*(((n*=1.525)+1)*t-n)):.5*((t-=2)*t*(((n*=1.525)+1)*t+n)+2)},easeInBounce:t=>1-Oh.easeOutBounce(1-t),easeOutBounce(t){return t<1/2.75?7.5625*t*t:t<2/2.75?7.5625*(t-=1.5/2.75)*t+.75:t<2.5/2.75?7.5625*(t-=2.25/2.75)*t+.9375:7.5625*(t-=2.625/2.75)*t+.984375},easeInOutBounce:t=>t<.5?Oh.easeInBounce(t*2)*.5:Oh.easeOutBounce(t*2-1)*.5+.5};function sT(t){if(t&&typeof t=="object"){let n=t.toString();return n==="[object CanvasPattern]"||n==="[object CanvasGradient]"}return!1}function lT(t){return sT(t)?t:new Fg(t)}function GS(t){return sT(t)?t:new Fg(t).saturate(.5).darken(.1).hexString()}var Ane=["x","y","borderWidth","radius","tension"],One=["color","borderColor","backgroundColor"];function Rne(t){t.set("animation",{delay:void 0,duration:1e3,easing:"easeOutQuart",fn:void 0,from:void 0,loop:void 0,to:void 0,type:void 0}),t.describe("animation",{_fallback:!1,_indexable:!1,_scriptable:n=>n!=="onProgress"&&n!=="onComplete"&&n!=="fn"}),t.set("animations",{colors:{type:"color",properties:One},numbers:{type:"number",properties:Ane}}),t.describe("animations",{_fallback:"animation"}),t.set("transitions",{active:{animation:{duration:400}},resize:{animation:{duration:0}},show:{animations:{colors:{from:"transparent"},visible:{type:"boolean",duration:0}}},hide:{animations:{colors:{to:"transparent"},visible:{type:"boolean",easing:"linear",fn:n=>n|0}}}})}function Pne(t){t.set("layout",{autoPadding:!0,padding:{top:0,right:0,bottom:0,left:0}})}var fj=new Map;function Fne(t,n){n=n||{};let e=t+JSON.stringify(n),i=fj.get(e);return i||(i=new Intl.NumberFormat(t,n),fj.set(e,i)),i}function Bh(t,n,e){return Fne(n,e).format(t)}var Pj={values(t){return Ei(t)?t:""+t},numeric(t,n,e){if(t===0)return"0";let i=this.chart.options.locale,r,o=t;if(e.length>1){let c=Math.max(Math.abs(e[0].value),Math.abs(e[e.length-1].value));(c<1e-4||c>1e15)&&(r="scientific"),o=Nne(t,e)}let a=gl(Math.abs(o)),s=isNaN(a)?1:Math.max(Math.min(-1*Math.floor(a),20),0),l={notation:r,minimumFractionDigits:s,maximumFractionDigits:s};return Object.assign(l,this.options.ticks.format),Bh(t,i,l)},logarithmic(t,n,e){if(t===0)return"0";let i=e[n].significand||t/Math.pow(10,Math.floor(gl(t)));return[1,2,3,5,10,15].includes(i)||n>.8*e.length?Pj.numeric.call(this,t,n,e):""}};function Nne(t,n){let e=n.length>3?n[2].value-n[1].value:n[1].value-n[0].value;return Math.abs(e)>=1&&t!==Math.floor(t)&&(e=t-Math.floor(t)),e}var jg={formatters:Pj};function Lne(t){t.set("scale",{display:!0,offset:!1,reverse:!1,beginAtZero:!1,bounds:"ticks",clip:!0,grace:0,grid:{display:!0,lineWidth:1,drawOnChartArea:!0,drawTicks:!0,tickLength:8,tickWidth:(n,e)=>e.lineWidth,tickColor:(n,e)=>e.color,offset:!1},border:{display:!0,dash:[],dashOffset:0,width:1},title:{display:!1,text:"",padding:{top:4,bottom:4}},ticks:{minRotation:0,maxRotation:50,mirror:!1,textStrokeWidth:0,textStrokeColor:"",padding:3,display:!0,autoSkip:!0,autoSkipPadding:3,labelOffset:0,callback:jg.formatters.values,minor:{},major:{},align:"center",crossAlign:"near",showLabelBackdrop:!1,backdropColor:"rgba(255, 255, 255, 0.75)",backdropPadding:2}}),t.route("scale.ticks","color","","color"),t.route("scale.grid","color","","borderColor"),t.route("scale.border","color","","borderColor"),t.route("scale.title","color","","color"),t.describe("scale",{_fallback:!1,_scriptable:n=>!n.startsWith("before")&&!n.startsWith("after")&&n!=="callback"&&n!=="parser",_indexable:n=>n!=="borderDash"&&n!=="tickBorderDash"&&n!=="dash"}),t.describe("scales",{_fallback:"scale"}),t.describe("scale.ticks",{_scriptable:n=>n!=="backdropPadding"&&n!=="callback",_indexable:n=>n!=="backdropPadding"})}var Mc=Object.create(null),$x=Object.create(null);function Lg(t,n){if(!n)return t;let e=n.split(".");for(let i=0,r=e.length;ii.chart.platform.getDevicePixelRatio(),this.elements={},this.events=["mousemove","mouseout","click","touchstart","touchmove"],this.font={family:"'Helvetica Neue', 'Helvetica', 'Arial', sans-serif",size:12,style:"normal",lineHeight:1.2,weight:null},this.hover={},this.hoverBackgroundColor=(i,r)=>GS(r.backgroundColor),this.hoverBorderColor=(i,r)=>GS(r.borderColor),this.hoverColor=(i,r)=>GS(r.color),this.indexAxis="x",this.interaction={mode:"nearest",intersect:!0,includeInvisible:!1},this.maintainAspectRatio=!0,this.onHover=null,this.onClick=null,this.parsing=!0,this.plugins={},this.responsive=!0,this.scale=void 0,this.scales={},this.showLine=!0,this.drawActiveElementsOnTop=!0,this.describe(n),this.apply(e)}set(n,e){return qS(this,n,e)}get(n){return Lg(this,n)}describe(n,e){return qS($x,n,e)}override(n,e){return qS(Mc,n,e)}route(n,e,i,r){let o=Lg(this,n),a=Lg(this,i),s="_"+e;Object.defineProperties(o,{[s]:{value:o[e],writable:!0},[e]:{enumerable:!0,get(){let l=this[s],c=a[r];return St(l)?Object.assign({},c,l):st(l,c)},set(l){this[s]=l}}})}apply(n){n.forEach(e=>e(this))}},xi=new YS({_scriptable:t=>!t.startsWith("on"),_indexable:t=>t!=="events",hover:{_fallback:"interaction"},interaction:{_scriptable:!1,_indexable:!1}},[Rne,Pne,Lne]);function Vne(t){return!t||Et(t.size)||Et(t.family)?null:(t.style?t.style+" ":"")+(t.weight?t.weight+" ":"")+t.size+"px "+t.family}function Vg(t,n,e,i,r){let o=n[r];return o||(o=n[r]=t.measureText(r).width,e.push(r)),o>i&&(i=o),i}function Fj(t,n,e,i){i=i||{};let r=i.data=i.data||{},o=i.garbageCollect=i.garbageCollect||[];i.font!==n&&(r=i.data={},o=i.garbageCollect=[],i.font=n),t.save(),t.font=n;let a=0,s=e.length,l,c,d,m,f;for(l=0;le.length){for(l=0;l0&&t.stroke()}}function Ss(t,n,e){return e=e||.5,!n||t&&t.x>n.left-e&&t.xn.top-e&&t.y0&&o.strokeColor!=="",l,c;for(t.save(),t.font=r.string,Bne(t,o),l=0;l+t||0;function Gx(t,n){let e={},i=St(n),r=i?Object.keys(n):n,o=St(t)?i?a=>st(t[a],t[n[a]]):a=>t[a]:()=>t;for(let a of r)e[a]=Wne(o(a));return e}function uT(t){return Gx(t,{top:"y",right:"x",bottom:"y",left:"x"})}function Tc(t){return Gx(t,["topLeft","topRight","bottomLeft","bottomRight"])}function sr(t){let n=uT(t);return n.width=n.left+n.right,n.height=n.top+n.bottom,n}function pn(t,n){t=t||{},n=n||xi.font;let e=st(t.size,n.size);typeof e=="string"&&(e=parseInt(e,10));let i=st(t.style,n.style);i&&!(""+i).match(Une)&&(console.warn('Invalid font style specified: "'+i+'"'),i=void 0);let r={family:st(t.family,n.family),lineHeight:$ne(st(t.lineHeight,n.lineHeight),e),size:e,style:i,weight:st(t.weight,n.weight),string:""};return r.string=Vne(r),r}function Hh(t,n,e,i){let r=!0,o,a,s;for(o=0,a=t.length;oe&&s===0?0:s+l;return{min:a(i,-Math.abs(o)),max:a(r,o)}}function bl(t,n){return Object.assign(Object.create(t),n)}function qx(t,n=[""],e,i,r=()=>t[0]){let o=e||t;typeof i>"u"&&(i=Hj("_fallback",t));let a={[Symbol.toStringTag]:"Object",_cacheable:!0,_scopes:t,_rootScopes:o,_fallback:i,_getTarget:r,override:s=>qx([s,...t],n,o,i)};return new Proxy(a,{deleteProperty(s,l){return delete s[l],delete s._keys,delete t[0][l],!0},get(s,l){return Bj(s,l,()=>Jne(l,n,t,s))},getOwnPropertyDescriptor(s,l){return Reflect.getOwnPropertyDescriptor(s._scopes[0],l)},getPrototypeOf(){return Reflect.getPrototypeOf(t[0])},has(s,l){return _j(s).includes(l)},ownKeys(s){return _j(s)},set(s,l,c){let d=s._storage||(s._storage=r());return s[l]=d[l]=c,delete s._keys,!0}})}function yu(t,n,e,i){let r={_cacheable:!1,_proxy:t,_context:n,_subProxy:e,_stack:new Set,_descriptors:mT(t,i),setContext:o=>yu(t,o,e,i),override:o=>yu(t.override(o),n,e,i)};return new Proxy(r,{deleteProperty(o,a){return delete o[a],delete t[a],!0},get(o,a,s){return Bj(o,a,()=>qne(o,a,s))},getOwnPropertyDescriptor(o,a){return o._descriptors.allKeys?Reflect.has(t,a)?{enumerable:!0,configurable:!0}:void 0:Reflect.getOwnPropertyDescriptor(t,a)},getPrototypeOf(){return Reflect.getPrototypeOf(t)},has(o,a){return Reflect.has(t,a)},ownKeys(){return Reflect.ownKeys(t)},set(o,a,s){return t[a]=s,delete o[a],!0}})}function mT(t,n={scriptable:!0,indexable:!0}){let{_scriptable:e=n.scriptable,_indexable:i=n.indexable,_allKeys:r=n.allKeys}=t;return{allKeys:r,scriptable:e,indexable:i,isScriptable:fl(e)?e:()=>e,isIndexable:fl(i)?i:()=>i}}var Gne=(t,n)=>t?t+jx(n):n,hT=(t,n)=>St(n)&&t!=="adapters"&&(Object.getPrototypeOf(n)===null||n.constructor===Object);function Bj(t,n,e){if(Object.prototype.hasOwnProperty.call(t,n)||n==="constructor")return t[n];let i=e();return t[n]=i,i}function qne(t,n,e){let{_proxy:i,_context:r,_subProxy:o,_descriptors:a}=t,s=i[n];return fl(s)&&a.isScriptable(n)&&(s=Yne(n,s,t,e)),Ei(s)&&s.length&&(s=Qne(n,s,t,a.isIndexable)),hT(n,s)&&(s=yu(s,r,o&&o[n],a)),s}function Yne(t,n,e,i){let{_proxy:r,_context:o,_subProxy:a,_stack:s}=e;if(s.has(t))throw new Error("Recursion detected: "+Array.from(s).join("->")+"->"+t);s.add(t);let l=n(o,a||i);return s.delete(t),hT(t,l)&&(l=pT(r._scopes,r,t,l)),l}function Qne(t,n,e,i){let{_proxy:r,_context:o,_subProxy:a,_descriptors:s}=e;if(typeof o.index<"u"&&i(t))return n[o.index%n.length];if(St(n[0])){let l=n,c=r._scopes.filter(d=>d!==l);n=[];for(let d of l){let m=pT(c,r,t,d);n.push(yu(m,o,a&&a[t],s))}}return n}function jj(t,n,e){return fl(t)?t(n,e):t}var Kne=(t,n)=>t===!0?n:typeof t=="string"?_l(n,t):void 0;function Zne(t,n,e,i,r){for(let o of n){let a=Kne(e,o);if(a){t.add(a);let s=jj(a._fallback,e,r);if(typeof s<"u"&&s!==e&&s!==i)return s}else if(a===!1&&typeof i<"u"&&e!==i)return null}return!1}function pT(t,n,e,i){let r=n._rootScopes,o=jj(n._fallback,e,i),a=[...t,...r],s=new Set;s.add(i);let l=gj(s,a,e,o||e,i);return l===null||typeof o<"u"&&o!==e&&(l=gj(s,a,o,l,i),l===null)?!1:qx(Array.from(s),[""],r,o,()=>Xne(n,e,i))}function gj(t,n,e,i,r){for(;e;)e=Zne(t,n,e,i,r);return e}function Xne(t,n,e){let i=t._getTarget();n in i||(i[n]={});let r=i[n];return Ei(r)&&St(e)?e:r||{}}function Jne(t,n,e,i){let r;for(let o of n)if(r=Hj(Gne(o,t),e),typeof r<"u")return hT(t,r)?pT(e,i,t,r):r}function Hj(t,n){for(let e of n){if(!e)continue;let i=e[t];if(typeof i<"u")return i}}function _j(t){let n=t._keys;return n||(n=t._keys=ere(t._scopes)),n}function ere(t){let n=new Set;for(let e of t)for(let i of Object.keys(e).filter(r=>!r.startsWith("_")))n.add(i);return Array.from(n)}function fT(t,n,e,i){let{iScale:r}=t,{key:o="r"}=this._parsing,a=new Array(i),s,l,c,d;for(s=0,l=i;snt==="x"?"y":"x";function ire(t,n,e,i){let r=t.skip?n:t,o=n,a=e.skip?n:e,s=Vx(o,r),l=Vx(a,o),c=s/(s+l),d=l/(s+l);c=isNaN(c)?0:c,d=isNaN(d)?0:d;let m=i*c,f=i*d;return{previous:{x:o.x-m*(a.x-r.x),y:o.y-m*(a.y-r.y)},next:{x:o.x+f*(a.x-r.x),y:o.y+f*(a.y-r.y)}}}function nre(t,n,e){let i=t.length,r,o,a,s,l,c=Ph(t,0);for(let d=0;d!c.skip)),n.cubicInterpolationMode==="monotone")ore(t,r);else{let c=i?t[t.length-1]:t[0];for(o=0,a=t.length;ot.ownerDocument.defaultView.getComputedStyle(t,null);function sre(t,n){return Kx(t).getPropertyValue(n)}var lre=["top","right","bottom","left"];function vu(t,n,e){let i={};e=e?"-"+e:"";for(let r=0;r<4;r++){let o=lre[r];i[o]=parseFloat(t[n+"-"+o+e])||0}return i.width=i.left+i.right,i.height=i.top+i.bottom,i}var cre=(t,n,e)=>(t>0||n>0)&&(!e||!e.shadowRoot);function dre(t,n){let e=t.touches,i=e&&e.length?e[0]:t,{offsetX:r,offsetY:o}=i,a=!1,s,l;if(cre(r,o,t.target))s=r,l=o;else{let c=n.getBoundingClientRect();s=i.clientX-c.left,l=i.clientY-c.top,a=!0}return{x:s,y:l,box:a}}function Ic(t,n){if("native"in t)return t;let{canvas:e,currentDevicePixelRatio:i}=n,r=Kx(e),o=r.boxSizing==="border-box",a=vu(r,"padding"),s=vu(r,"border","width"),{x:l,y:c,box:d}=dre(t,e),m=a.left+(d&&s.left),f=a.top+(d&&s.top),{width:b,height:v}=n;return o&&(b-=a.width+s.width,v-=a.height+s.height),{x:Math.round((l-m)/b*e.width/i),y:Math.round((c-f)/v*e.height/i)}}function ure(t,n,e){let i,r;if(n===void 0||e===void 0){let o=t&&Qx(t);if(!o)n=t.clientWidth,e=t.clientHeight;else{let a=o.getBoundingClientRect(),s=Kx(o),l=vu(s,"border","width"),c=vu(s,"padding");n=a.width-c.width-l.width,e=a.height-c.height-l.height,i=Bx(s.maxWidth,o,"clientWidth"),r=Bx(s.maxHeight,o,"clientHeight")}}return{width:n,height:e,maxWidth:i||Lx,maxHeight:r||Lx}}var Ec=t=>Math.round(t*10)/10;function $j(t,n,e,i){let r=Kx(t),o=vu(r,"margin"),a=Bx(r.maxWidth,t,"clientWidth")||Lx,s=Bx(r.maxHeight,t,"clientHeight")||Lx,l=ure(t,n,e),{width:c,height:d}=l;if(r.boxSizing==="content-box"){let f=vu(r,"border","width"),b=vu(r,"padding");c-=b.width+f.width,d-=b.height+f.height}return c=Math.max(0,c-o.width),d=Math.max(0,i?c/i:d-o.height),c=Ec(Math.min(c,a,l.maxWidth)),d=Ec(Math.min(d,s,l.maxHeight)),c&&!d&&(d=Ec(c/2)),(n!==void 0||e!==void 0)&&i&&l.height&&d>l.height&&(d=l.height,c=Ec(Math.floor(d*i))),{width:c,height:d}}function gT(t,n,e){let i=n||1,r=Ec(t.height*i),o=Ec(t.width*i);t.height=Ec(t.height),t.width=Ec(t.width);let a=t.canvas;return a.style&&(e||!a.style.height&&!a.style.width)&&(a.style.height=`${t.height}px`,a.style.width=`${t.width}px`),t.currentDevicePixelRatio!==i||a.height!==r||a.width!==o?(t.currentDevicePixelRatio=i,a.height=r,a.width=o,t.ctx.setTransform(i,0,0,i,0,0),!0):!1}var Wj=(function(){let t=!1;try{let n={get passive(){return t=!0,!1}};Yx()&&(window.addEventListener("test",null,n),window.removeEventListener("test",null,n))}catch{}return t})();function _T(t,n){let e=sre(t,n),i=e&&e.match(/^(\d+)(\.\d+)?px$/);return i?+i[1]:void 0}function Dc(t,n,e,i){return{x:t.x+e*(n.x-t.x),y:t.y+e*(n.y-t.y)}}function Gj(t,n,e,i){return{x:t.x+e*(n.x-t.x),y:i==="middle"?e<.5?t.y:n.y:i==="after"?e<1?t.y:n.y:e>0?n.y:t.y}}function qj(t,n,e,i){let r={x:t.cp2x,y:t.cp2y},o={x:n.cp1x,y:n.cp1y},a=Dc(t,r,e),s=Dc(r,o,e),l=Dc(o,n,e),c=Dc(a,s,e),d=Dc(s,l,e);return Dc(c,d,e)}var mre=function(t,n){return{x(e){return t+t+n-e},setWidth(e){n=e},textAlign(e){return e==="center"?e:e==="right"?"left":"right"},xPlus(e,i){return e-i},leftForLtr(e,i){return e-i}}},hre=function(){return{x(t){return t},setWidth(t){},textAlign(t){return t},xPlus(t,n){return t+n},leftForLtr(t,n){return t}}};function Cu(t,n,e){return t?mre(n,e):hre()}function bT(t,n){let e,i;(n==="ltr"||n==="rtl")&&(e=t.canvas.style,i=[e.getPropertyValue("direction"),e.getPropertyPriority("direction")],e.setProperty("direction",n,"important"),t.prevTextDirection=i)}function vT(t,n){n!==void 0&&(delete t.prevTextDirection,t.canvas.style.setProperty("direction",n[0],n[1]))}function Yj(t){return t==="angle"?{between:Vh,compare:Ine,normalize:or}:{between:Is,compare:(n,e)=>n-e,normalize:n=>n}}function bj({start:t,end:n,count:e,loop:i,style:r}){return{start:t%e,end:n%e,loop:i&&(n-t+1)%e===0,style:r}}function pre(t,n,e){let{property:i,start:r,end:o}=e,{between:a,normalize:s}=Yj(i),l=n.length,{start:c,end:d,loop:m}=t,f,b;if(m){for(c+=l,d+=l,f=0,b=l;fl(r,W,D)&&s(r,W)!==0,K=()=>s(o,D)===0||l(o,W,D),re=()=>w||Z(),Ee=()=>!w||K();for(let be=d,Ve=d;be<=m;++be)P=n[be%a],!P.skip&&(D=c(P[i]),D!==W&&(w=l(D,r,o),x===null&&re()&&(x=s(D,r)===0?be:Ve),x!==null&&Ee()&&(v.push(bj({start:x,end:be,loop:f,count:a,style:b})),x=null),Ve=be,W=D));return x!==null&&v.push(bj({start:x,end:m,loop:f,count:a,style:b})),v}function xT(t,n){let e=[],i=t.segments;for(let r=0;rr&&t[o%n].skip;)o--;return o%=n,{start:r,end:o}}function gre(t,n,e,i){let r=t.length,o=[],a=n,s=t[n],l;for(l=n+1;l<=e;++l){let c=t[l%r];c.skip||c.stop?s.skip||(i=!1,o.push({start:n%r,end:(l-1)%r,loop:i}),n=a=c.stop?l:null):(a=l,s.skip&&(n=l)),s=c}return a!==null&&o.push({start:n%r,end:a%r,loop:i}),o}function Qj(t,n){let e=t.points,i=t.options.spanGaps,r=e.length;if(!r)return[];let o=!!t._loop,{start:a,end:s}=fre(e,r,o,i);if(i===!0)return vj(t,[{start:a,end:s,loop:o}],e,n);let l=ss({chart:n,initial:e.initial,numSteps:a,currentStep:Math.min(i-e.start,a)}))}_refresh(){this._request||(this._running=!0,this._request=nT.call(window,()=>{this._update(),this._request=null,this._running&&this._refresh()}))}_update(n=Date.now()){let e=0;this._charts.forEach((i,r)=>{if(!i.running||!i.items.length)return;let o=i.items,a=o.length-1,s=!1,l;for(;a>=0;--a)l=o[a],l._active?(l._total>i.duration&&(i.duration=l._total),l.tick(n),s=!0):(o[a]=o[o.length-1],o.pop());s&&(r.draw(),this._notify(r,i,n,"progress")),o.length||(i.running=!1,this._notify(r,i,n,"complete"),i.initial=!1),e+=o.length}),this._lastDate=n,e===0&&(this._running=!1)}_getAnims(n){let e=this._charts,i=e.get(n);return i||(i={running:!1,initial:!0,items:[],listeners:{complete:[],progress:[]}},e.set(n,i)),i}listen(n,e,i){this._getAnims(n).listeners[e].push(i)}add(n,e){!e||!e.length||this._getAnims(n).items.push(...e)}has(n){return this._getAnims(n).items.length>0}start(n){let e=this._charts.get(n);e&&(e.running=!0,e.start=Date.now(),e.duration=e.items.reduce((i,r)=>Math.max(i,r._duration),0),this._refresh())}running(n){if(!this._running)return!1;let e=this._charts.get(n);return!(!e||!e.running||!e.items.length)}stop(n){let e=this._charts.get(n);if(!e||!e.items.length)return;let i=e.items,r=i.length-1;for(;r>=0;--r)i[r].cancel();e.items=[],this._notify(n,e,Date.now(),"complete")}remove(n){return this._charts.delete(n)}},vl=new PT,Kj="transparent",yre={boolean(t,n,e){return e>.5?n:t},color(t,n,e){let i=lT(t||Kj),r=i.valid&&lT(n||Kj);return r&&r.valid?r.mix(i,e).hexString():n},number(t,n,e){return t+(n-t)*e}},FT=class{constructor(n,e,i,r){let o=e[i];r=Hh([n.to,r,o,n.from]);let a=Hh([n.from,o,r]);this._active=!0,this._fn=n.fn||yre[n.type||typeof a],this._easing=Oh[n.easing]||Oh.linear,this._start=Math.floor(Date.now()+(n.delay||0)),this._duration=this._total=Math.floor(n.duration),this._loop=!!n.loop,this._target=e,this._prop=i,this._from=a,this._to=r,this._promises=void 0}active(){return this._active}update(n,e,i){if(this._active){this._notify(!1);let r=this._target[this._prop],o=i-this._start,a=this._duration-o;this._start=i,this._duration=Math.floor(Math.max(a,n.duration)),this._total+=o,this._loop=!!n.loop,this._to=Hh([n.to,e,r,n.from]),this._from=Hh([n.from,r,e])}}cancel(){this._active&&(this.tick(Date.now()),this._active=!1,this._notify(!1))}tick(n){let e=n-this._start,i=this._duration,r=this._prop,o=this._from,a=this._loop,s=this._to,l;if(this._active=o!==s&&(a||e1?2-l:l,l=this._easing(Math.min(1,Math.max(0,l))),this._target[r]=this._fn(o,s,l)}wait(){let n=this._promises||(this._promises=[]);return new Promise((e,i)=>{n.push({res:e,rej:i})})}_notify(n){let e=n?"res":"rej",i=this._promises||[];for(let r=0;r{let o=n[r];if(!St(o))return;let a={};for(let s of e)a[s]=o[s];(Ei(o.properties)&&o.properties||[r]).forEach(s=>{(s===r||!i.has(s))&&i.set(s,a)})})}_animateOptions(n,e){let i=e.options,r=Cre(n,i);if(!r)return[];let o=this._createAnimations(r,i);return i.$shared&&xre(n.options.$animations,i).then(()=>{n.options=i},()=>{}),o}_createAnimations(n,e){let i=this._properties,r=[],o=n.$animations||(n.$animations={}),a=Object.keys(e),s=Date.now(),l;for(l=a.length-1;l>=0;--l){let c=a[l];if(c.charAt(0)==="$")continue;if(c==="options"){r.push(...this._animateOptions(n,e));continue}let d=e[c],m=o[c],f=i.get(c);if(m)if(f&&m.active()){m.update(f,d,s);continue}else m.cancel();if(!f||!f.duration){n[c]=d;continue}o[c]=m=new FT(f,n,c,d),r.push(m)}return r}update(n,e){if(this._properties.size===0){Object.assign(n,e);return}let i=this._createAnimations(n,e);if(i.length)return vl.add(this._chart,i),!0}};function xre(t,n){let e=[],i=Object.keys(n);for(let r=0;r0||!e&&o<0)return r.index}return null}function e4(t,n){let{chart:e,_cachedMeta:i}=t,r=e._stacks||(e._stacks={}),{iScale:o,vScale:a,index:s}=i,l=o.axis,c=a.axis,d=Mre(o,a,i),m=n.length,f;for(let b=0;be[i].axis===n).shift()}function Tre(t,n){return bl(t,{active:!1,dataset:void 0,datasetIndex:n,index:n,mode:"default",type:"dataset"})}function Ire(t,n,e){return bl(t,{active:!1,dataIndex:n,parsed:void 0,raw:void 0,element:e,index:n,mode:"default",type:"data"})}function Ug(t,n){let e=t.controller.index,i=t.vScale&&t.vScale.axis;if(i){n=n||t._parsed;for(let r of n){let o=r._stacks;if(!o||o[i]===void 0||o[i][e]===void 0)return;delete o[i][e],o[i]._visualValues!==void 0&&o[i]._visualValues[e]!==void 0&&delete o[i]._visualValues[e]}}}var ET=t=>t==="reset"||t==="none",t4=(t,n)=>n?t:Object.assign({},t),Are=(t,n,e)=>t&&!n.hidden&&n._stacked&&{keys:K4(e,!0),values:null},Oc=(()=>{class t{static defaults={};static datasetElementType=null;static dataElementType=null;constructor(e,i){this.chart=e,this._ctx=e.ctx,this.index=i,this._cachedDataOpts={},this._cachedMeta=this.getMeta(),this._type=this._cachedMeta.type,this.options=void 0,this._parsing=!1,this._data=void 0,this._objectData=void 0,this._sharedOptions=void 0,this._drawStart=void 0,this._drawCount=void 0,this.enableOptionSharing=!1,this.supportsDecimation=!1,this.$context=void 0,this._syncList=[],this.datasetElementType=new.target.datasetElementType,this.dataElementType=new.target.dataElementType,this.initialize()}initialize(){let e=this._cachedMeta;this.configure(),this.linkScales(),e._stacked=wT(e.vScale,e),this.addElements(),this.options.fill&&!this.chart.isPluginEnabled("filler")&&console.warn("Tried to use the 'fill' option without the 'Filler' plugin enabled. Please import and register the 'Filler' plugin and make sure it is not disabled in the options")}updateIndex(e){this.index!==e&&Ug(this._cachedMeta),this.index=e}linkScales(){let e=this.chart,i=this._cachedMeta,r=this.getDataset(),o=(f,b,v,w)=>f==="x"?b:f==="r"?w:v,a=i.xAxisID=st(r.xAxisID,DT(e,"x")),s=i.yAxisID=st(r.yAxisID,DT(e,"y")),l=i.rAxisID=st(r.rAxisID,DT(e,"r")),c=i.indexAxis,d=i.iAxisID=o(c,a,s,l),m=i.vAxisID=o(c,s,a,l);i.xScale=this.getScaleForId(a),i.yScale=this.getScaleForId(s),i.rScale=this.getScaleForId(l),i.iScale=this.getScaleForId(d),i.vScale=this.getScaleForId(m)}getDataset(){return this.chart.data.datasets[this.index]}getMeta(){return this.chart.getDatasetMeta(this.index)}getScaleForId(e){return this.chart.scales[e]}_getOtherScale(e){let i=this._cachedMeta;return e===i.iScale?i.vScale:i.iScale}reset(){this._update("reset")}_destroy(){let e=this._cachedMeta;this._data&&tT(this._data,this),e._stacked&&Ug(e)}_dataCheck(){let e=this.getDataset(),i=e.data||(e.data=[]),r=this._data;if(St(i)){let o=this._cachedMeta;this._data=Ere(i,o)}else if(r!==i){if(r){tT(r,this);let o=this._cachedMeta;Ug(o),o._parsed=[]}i&&Object.isExtensible(i)&&Aj(i,this),this._syncList=[],this._data=i}}addElements(){let e=this._cachedMeta;this._dataCheck(),this.datasetElementType&&(e.dataset=new this.datasetElementType)}buildOrUpdateElements(e){let i=this._cachedMeta,r=this.getDataset(),o=!1;this._dataCheck();let a=i._stacked;i._stacked=wT(i.vScale,i),i.stack!==r.stack&&(o=!0,Ug(i),i.stack=r.stack),this._resyncElements(e),(o||a!==i._stacked)&&(e4(this,i._parsed),i._stacked=wT(i.vScale,i))}configure(){let e=this.chart.config,i=e.datasetScopeKeys(this._type),r=e.getOptionScopes(this.getDataset(),i,!0);this.options=e.createResolver(r,this.getContext()),this._parsing=this.options.parsing,this._cachedDataOpts={}}parse(e,i){let{_cachedMeta:r,_data:o}=this,{iScale:a,_stacked:s}=r,l=a.axis,c=e===0&&i===o.length?!0:r._sorted,d=e>0&&r._parsed[e-1],m,f,b;if(this._parsing===!1)r._parsed=o,r._sorted=!0,b=o;else{Ei(o[e])?b=this.parseArrayData(r,o,e,i):St(o[e])?b=this.parseObjectData(r,o,e,i):b=this.parsePrimitiveData(r,o,e,i);let v=()=>f[l]===null||d&&f[l]x||f=0;--b)if(!w()){this.updateRangeFromParsed(d,e,v,c);break}}return d}getAllParsedValues(e){let i=this._cachedMeta._parsed,r=[],o,a,s;for(o=0,a=i.length;o=0&&ethis.getContext(r,o,i),x=d.resolveNamedOptions(b,v,w,f);return x.$shared&&(x.$shared=c,a[s]=Object.freeze(t4(x,c))),x}_resolveAnimations(e,i,r){let o=this.chart,a=this._cachedDataOpts,s=`animation-${i}`,l=a[s];if(l)return l;let c;if(o.options.animation!==!1){let m=this.chart.config,f=m.datasetAnimationScopeKeys(this._type,i),b=m.getOptionScopes(this.getDataset(),f);c=m.createResolver(b,this.getContext(e,r,i))}let d=new oC(o,c&&c.animations);return c&&c._cacheable&&(a[s]=Object.freeze(d)),d}getSharedOptions(e){if(e.$shared)return this._sharedOptions||(this._sharedOptions=Object.assign({},e))}includeOptions(e,i){return!i||ET(e)||this.chart._animationsDisabled}_getSharedOptions(e,i){let r=this.resolveDataElementOptions(e,i),o=this._sharedOptions,a=this.getSharedOptions(r),s=this.includeOptions(i,a)||a!==o;return this.updateSharedOptions(a,i,r),{sharedOptions:a,includeOptions:s}}updateElement(e,i,r,o){ET(o)?Object.assign(e,r):this._resolveAnimations(i,o).update(e,r)}updateSharedOptions(e,i,r){e&&!ET(i)&&this._resolveAnimations(void 0,i).update(e,r)}_setStyle(e,i,r,o){e.active=o;let a=this.getStyle(i,o);this._resolveAnimations(i,r,o).update(e,{options:!o&&this.getSharedOptions(a)||a})}removeHoverStyle(e,i,r){this._setStyle(e,r,"active",!1)}setHoverStyle(e,i,r){this._setStyle(e,r,"active",!0)}_removeDatasetHoverStyle(){let e=this._cachedMeta.dataset;e&&this._setStyle(e,void 0,"active",!1)}_setDatasetHoverStyle(){let e=this._cachedMeta.dataset;e&&this._setStyle(e,void 0,"active",!0)}_resyncElements(e){let i=this._data,r=this._cachedMeta.data;for(let[l,c,d]of this._syncList)this[l](c,d);this._syncList=[];let o=r.length,a=i.length,s=Math.min(a,o);s&&this.parse(0,s),a>o?this._insertElements(o,a-o,e):a{for(d.length+=i,l=d.length-1;l>=s;l--)d[l]=d[l-i]};for(c(a),l=e;lr-o))}return t._cache.$bar}function Rre(t){let n=t.iScale,e=Ore(n,t.type),i=n._length,r,o,a,s,l=()=>{a===32767||a===-32768||(Nh(s)&&(i=Math.min(i,Math.abs(a-s)||i)),s=a)};for(r=0,o=e.length;r0?r[t-1]:null,s=tMath.abs(s)&&(l=s,c=a),n[e.axis]=c,n._custom={barStart:l,barEnd:c,start:r,end:o,min:a,max:s}}function Z4(t,n,e,i){return Ei(t)?Nre(t,n,e,i):n[e.axis]=e.parse(t,i),n}function i4(t,n,e,i){let r=t.iScale,o=t.vScale,a=r.getLabels(),s=r===o,l=[],c,d,m,f;for(c=e,d=e+i;c=e?1:-1)}function Vre(t){let n,e,i,r,o;return t.horizontal?(n=t.base>t.x,e="left",i="right"):(n=t.base{class t extends Oc{static id="bar";static defaults={datasetElementType:!1,dataElementType:"bar",categoryPercentage:.8,barPercentage:.9,grouped:!0,animations:{numbers:{type:"number",properties:["x","y","base","width","height"]}}};static overrides={scales:{_index_:{type:"category",offset:!0,grid:{offset:!0}},_value_:{type:"linear",beginAtZero:!0}}};parsePrimitiveData(e,i,r,o){return i4(e,i,r,o)}parseArrayData(e,i,r,o){return i4(e,i,r,o)}parseObjectData(e,i,r,o){let{iScale:a,vScale:s}=e,{xAxisKey:l="x",yAxisKey:c="y"}=this._parsing,d=a.axis==="x"?l:c,m=s.axis==="x"?l:c,f=[],b,v,w,x;for(b=r,v=r+o;bm.controller.options.grouped),a=r.options.stacked,s=[],l=this._cachedMeta.controller.getParsed(i),c=l&&l[r.axis],d=m=>{let f=m._parsed.find(v=>v[r.axis]===c),b=f&&f[m.vScale.axis];if(Et(b)||isNaN(b))return!0};for(let m of o)if(!(i!==void 0&&d(m))&&((a===!1||s.indexOf(m.stack)===-1||a===void 0&&m.stack===void 0)&&s.push(m.stack),m.index===e))break;return s.length||s.push(void 0),s}_getStackCount(e){return this._getStacks(void 0,e).length}_getAxisCount(){return this._getAxis().length}getFirstScaleIdForIndexAxis(){let e=this.chart.scales,i=this.chart.options.indexAxis;return Object.keys(e).filter(r=>e[r].axis===i).shift()}_getAxis(){let e={},i=this.getFirstScaleIdForIndexAxis();for(let r of this.chart.data.datasets)e[st(this.chart.options.indexAxis==="x"?r.xAxisID:r.yAxisID,i)]=!0;return Object.keys(e)}_getStackIndex(e,i,r){let o=this._getStacks(e,r),a=i!==void 0?o.indexOf(i):-1;return a===-1?o.length-1:a}_getRuler(){let e=this.options,i=this._cachedMeta,r=i.iScale,o=[],a,s;for(a=0,s=i.data.length;a{class t extends Oc{static id="bubble";static defaults={datasetElementType:!1,dataElementType:"point",animations:{numbers:{type:"number",properties:["x","y","borderWidth","radius"]}}};static overrides={scales:{x:{type:"linear"},y:{type:"linear"}}};initialize(){this.enableOptionSharing=!0,super.initialize()}parsePrimitiveData(e,i,r,o){let a=super.parsePrimitiveData(e,i,r,o);for(let s=0;s=0;--r)i=Math.max(i,e[r].size(this.resolveDataElementOptions(r))/2);return i>0&&i}getLabelAndValue(e){let i=this._cachedMeta,r=this.chart.data.labels||[],{xScale:o,yScale:a}=i,s=this.getParsed(e),l=o.getLabelForValue(s.x),c=a.getLabelForValue(s.y),d=s._custom;return{label:r[e]||"",value:"("+l+", "+c+(d?", "+d:"")+")"}}update(e){let i=this._cachedMeta.data;this.updateElements(i,0,i.length,e)}updateElements(e,i,r,o){let a=o==="reset",{iScale:s,vScale:l}=this._cachedMeta,{sharedOptions:c,includeOptions:d}=this._getSharedOptions(i,o),m=s.axis,f=l.axis;for(let b=i;bVh(W,s,l,!0)?1:Math.max(Z,Z*e,K,K*e),v=(W,Z,K)=>Vh(W,s,l,!0)?-1:Math.min(Z,Z*e,K,K*e),w=b(0,c,m),x=b(Zi,d,f),D=v(Ht,c,m),P=v(Ht+Zi,d,f);i=(w-D)/2,r=(x-P)/2,o=-(w+D)/2,a=-(x+P)/2}return{ratioX:i,ratioY:r,offsetX:o,offsetY:a}}var tI=(()=>{class t extends Oc{static id="doughnut";static defaults={datasetElementType:!1,dataElementType:"arc",animation:{animateRotate:!0,animateScale:!1},animations:{numbers:{type:"number",properties:["circumference","endAngle","innerRadius","outerRadius","startAngle","x","y","offset","borderWidth","spacing"]}},cutout:"50%",rotation:0,circumference:360,radius:"100%",spacing:0,indexAxis:"r"};static descriptors={_scriptable:e=>e!=="spacing",_indexable:e=>e!=="spacing"&&!e.startsWith("borderDash")&&!e.startsWith("hoverBorderDash")};static overrides={aspectRatio:1,plugins:{legend:{labels:{generateLabels(e){let i=e.data,{labels:{pointStyle:r,textAlign:o,color:a,useBorderRadius:s,borderRadius:l}}=e.legend.options;return i.labels.length&&i.datasets.length?i.labels.map((c,d)=>{let f=e.getDatasetMeta(0).controller.getStyle(d);return{text:c,fillStyle:f.backgroundColor,fontColor:a,hidden:!e.getDataVisibility(d),lineDash:f.borderDash,lineDashOffset:f.borderDashOffset,lineJoin:f.borderJoinStyle,lineWidth:f.borderWidth,strokeStyle:f.borderColor,textAlign:o,pointStyle:r,borderRadius:s&&(l||f.borderRadius),index:d}}):[]}},onClick(e,i,r){r.chart.toggleDataVisibility(i.index),r.chart.update()}}}};constructor(e,i){super(e,i),this.enableOptionSharing=!0,this.innerRadius=void 0,this.outerRadius=void 0,this.offsetX=void 0,this.offsetY=void 0}linkScales(){}parse(e,i){let r=this.getDataset().data,o=this._cachedMeta;if(this._parsing===!1)o._parsed=r;else{let a=c=>+r[c];if(St(r[e])){let{key:c="value"}=this._parsing;a=d=>+_l(r[d],c)}let s,l;for(s=e,l=e+i;s0&&!isNaN(e)?Mi*(Math.abs(e)/i):0}getLabelAndValue(e){let i=this._cachedMeta,r=this.chart,o=r.data.labels||[],a=Bh(i._parsed[e],r.options.locale);return{label:o[e]||"",value:a}}getMaxBorderWidth(e){let i=0,r=this.chart,o,a,s,l,c;if(!e){for(o=0,a=r.data.datasets.length;o{class t extends Oc{static id="line";static defaults={datasetElementType:"line",dataElementType:"point",showLine:!0,spanGaps:!1};static overrides={scales:{_index_:{type:"category"},_value_:{type:"linear"}}};initialize(){this.enableOptionSharing=!0,this.supportsDecimation=!0,super.initialize()}update(e){let i=this._cachedMeta,{dataset:r,data:o=[],_dataset:a}=i,s=this.chart._animationsDisabled,{start:l,count:c}=oT(i,o,s);this._drawStart=l,this._drawCount=c,aT(i)&&(l=0,c=o.length),r._chart=this.chart,r._datasetIndex=this.index,r._decimated=!!a._decimated,r.points=o;let d=this.resolveDatasetElementOptions(e);this.options.showLine||(d.borderWidth=0),d.segment=this.options.segment,this.updateElement(r,void 0,{animated:!s,options:d},e),this.updateElements(o,l,c,e)}updateElements(e,i,r,o){let a=o==="reset",{iScale:s,vScale:l,_stacked:c,_dataset:d}=this._cachedMeta,{sharedOptions:m,includeOptions:f}=this._getSharedOptions(i,o),b=s.axis,v=l.axis,{spanGaps:w,segment:x}=this.options,D=xu(w)?w:Number.POSITIVE_INFINITY,P=this.chart._animationsDisabled||a||o==="none",W=i+r,Z=e.length,K=i>0&&this.getParsed(i-1);for(let re=0;re=W){be.skip=!0;continue}let Ve=this.getParsed(re),yt=Et(Ve[v]),bt=be[b]=s.getPixelForValue(Ve[b],re),It=be[v]=a||yt?l.getBasePixel():l.getPixelForValue(c?this.applyStack(l,Ve,c):Ve[v],re);be.skip=isNaN(bt)||isNaN(It)||yt,be.stop=re>0&&Math.abs(Ve[b]-K[b])>D,x&&(be.parsed=Ve,be.raw=d.data[re]),f&&(be.options=m||this.resolveDataElementOptions(re,Ee.active?"active":o)),P||this.updateElement(Ee,re,be,o),K=Ve}}getMaxOverflow(){let e=this._cachedMeta,i=e.dataset,r=i.options&&i.options.borderWidth||0,o=e.data||[];if(!o.length)return r;let a=o[0].size(this.resolveDataElementOptions(0)),s=o[o.length-1].size(this.resolveDataElementOptions(o.length-1));return Math.max(r,a,s)/2}draw(){let e=this._cachedMeta;e.dataset.updateControlPoints(this.chart.chartArea,e.iScale.axis),super.draw()}}return t})(),X4=(()=>{class t extends Oc{static id="polarArea";static defaults={dataElementType:"arc",animation:{animateRotate:!0,animateScale:!0},animations:{numbers:{type:"number",properties:["x","y","startAngle","endAngle","innerRadius","outerRadius"]}},indexAxis:"r",startAngle:0};static overrides={aspectRatio:1,plugins:{legend:{labels:{generateLabels(e){let i=e.data;if(i.labels.length&&i.datasets.length){let{labels:{pointStyle:r,color:o}}=e.legend.options;return i.labels.map((a,s)=>{let c=e.getDatasetMeta(0).controller.getStyle(s);return{text:a,fillStyle:c.backgroundColor,strokeStyle:c.borderColor,fontColor:o,lineWidth:c.borderWidth,pointStyle:r,hidden:!e.getDataVisibility(s),index:s}})}return[]}},onClick(e,i,r){r.chart.toggleDataVisibility(i.index),r.chart.update()}}},scales:{r:{type:"radialLinear",angleLines:{display:!1},beginAtZero:!0,grid:{circular:!0},pointLabels:{display:!1},startAngle:0}}};constructor(e,i){super(e,i),this.innerRadius=void 0,this.outerRadius=void 0}getLabelAndValue(e){let i=this._cachedMeta,r=this.chart,o=r.data.labels||[],a=Bh(i._parsed[e].r,r.options.locale);return{label:o[e]||"",value:a}}parseObjectData(e,i,r,o){return fT.bind(this)(e,i,r,o)}update(e){let i=this._cachedMeta.data;this._updateRadius(),this.updateElements(i,0,i.length,e)}getMinMax(){let e=this._cachedMeta,i={min:Number.POSITIVE_INFINITY,max:Number.NEGATIVE_INFINITY};return e.data.forEach((r,o)=>{let a=this.getParsed(o).r;!isNaN(a)&&this.chart.getDataVisibility(o)&&(ai.max&&(i.max=a))}),i}_updateRadius(){let e=this.chart,i=e.chartArea,r=e.options,o=Math.min(i.right-i.left,i.bottom-i.top),a=Math.max(o/2,0),s=Math.max(r.cutoutPercentage?a/100*r.cutoutPercentage:1,0),l=(a-s)/e.getVisibleDatasetCount();this.outerRadius=a-l*this.index,this.innerRadius=this.outerRadius-l}updateElements(e,i,r,o){let a=o==="reset",s=this.chart,c=s.options.animation,d=this._cachedMeta.rScale,m=d.xCenter,f=d.yCenter,b=d.getIndexAngle(0)-.5*Ht,v=b,w,x=360/this.countVisibleElements();for(w=0;w{!isNaN(this.getParsed(o).r)&&this.chart.getDataVisibility(o)&&i++}),i}_computeAngle(e,i,r){return this.chart.getDataVisibility(e)?ra(this.resolveDataElementOptions(e,i).angle||r):0}}return t})(),Gre=(()=>{class t extends tI{static id="pie";static defaults={cutout:0,rotation:0,circumference:360,radius:"100%"}}return t})(),qre=(()=>{class t extends Oc{static id="radar";static defaults={datasetElementType:"line",dataElementType:"point",indexAxis:"r",showLine:!0,elements:{line:{fill:"start"}}};static overrides={aspectRatio:1,scales:{r:{type:"radialLinear"}}};getLabelAndValue(e){let i=this._cachedMeta.vScale,r=this.getParsed(e);return{label:i.getLabels()[e],value:""+i.getLabelForValue(r[i.axis])}}parseObjectData(e,i,r,o){return fT.bind(this)(e,i,r,o)}update(e){let i=this._cachedMeta,r=i.dataset,o=i.data||[],a=i.iScale.getLabels();if(r.points=o,e!=="resize"){let s=this.resolveDatasetElementOptions(e);this.options.showLine||(s.borderWidth=0);let l={_loop:!0,_fullLoop:a.length===o.length,options:s};this.updateElement(r,void 0,l,e)}this.updateElements(o,0,o.length,e)}updateElements(e,i,r,o){let a=this._cachedMeta.rScale,s=o==="reset";for(let l=i;l{class t extends Oc{static id="scatter";static defaults={datasetElementType:!1,dataElementType:"point",showLine:!1,fill:!1};static overrides={interaction:{mode:"point"},scales:{x:{type:"linear"},y:{type:"linear"}}};getLabelAndValue(e){let i=this._cachedMeta,r=this.chart.data.labels||[],{xScale:o,yScale:a}=i,s=this.getParsed(e),l=o.getLabelForValue(s.x),c=a.getLabelForValue(s.y);return{label:r[e]||"",value:"("+l+", "+c+")"}}update(e){let i=this._cachedMeta,{data:r=[]}=i,o=this.chart._animationsDisabled,{start:a,count:s}=oT(i,r,o);if(this._drawStart=a,this._drawCount=s,aT(i)&&(a=0,s=r.length),this.options.showLine){this.datasetElementType||this.addElements();let{dataset:l,_dataset:c}=i;l._chart=this.chart,l._datasetIndex=this.index,l._decimated=!!c._decimated,l.points=r;let d=this.resolveDatasetElementOptions(e);d.segment=this.options.segment,this.updateElement(l,void 0,{animated:!o,options:d},e)}else this.datasetElementType&&(delete i.dataset,this.datasetElementType=!1);this.updateElements(r,a,s,e)}addElements(){let{showLine:e}=this.options;!this.datasetElementType&&e&&(this.datasetElementType=this.chart.registry.getElement("line")),super.addElements()}updateElements(e,i,r,o){let a=o==="reset",{iScale:s,vScale:l,_stacked:c,_dataset:d}=this._cachedMeta,m=this.resolveDataElementOptions(i,o),f=this.getSharedOptions(m),b=this.includeOptions(o,f),v=s.axis,w=l.axis,{spanGaps:x,segment:D}=this.options,P=xu(x)?x:Number.POSITIVE_INFINITY,W=this.chart._animationsDisabled||a||o==="none",Z=i>0&&this.getParsed(i-1);for(let K=i;K0&&Math.abs(Ee[v]-Z[v])>P,D&&(be.parsed=Ee,be.raw=d.data[K]),b&&(be.options=f||this.resolveDataElementOptions(K,re.active?"active":o)),W||this.updateElement(re,K,be,o),Z=Ee}this.updateSharedOptions(f,o,m)}getMaxOverflow(){let e=this._cachedMeta,i=e.data||[];if(!this.options.showLine){let l=0;for(let c=i.length-1;c>=0;--c)l=Math.max(l,i[c].size(this.resolveDataElementOptions(c))/2);return l>0&&l}let r=e.dataset,o=r.options&&r.options.borderWidth||0;if(!i.length)return o;let a=i[0].size(this.resolveDataElementOptions(0)),s=i[i.length-1].size(this.resolveDataElementOptions(i.length-1));return Math.max(o,a,s)/2}}return t})(),Qre=Object.freeze({__proto__:null,BarController:zre,BubbleController:Ure,DoughnutController:tI,LineController:Wre,PieController:Gre,PolarAreaController:X4,RadarController:qre,ScatterController:Yre});function wu(){throw new Error("This method is not implemented: Check that a complete date adapter is provided.")}var NT=class t{static override(n){Object.assign(t.prototype,n)}options;constructor(n){this.options=n||{}}init(){}formats(){return wu()}parse(){return wu()}format(){return wu()}add(){return wu()}diff(){return wu()}startOf(){return wu()}endOf(){return wu()}},Kre={_date:NT};function Zre(t,n,e,i){let{controller:r,data:o,_sorted:a}=t,s=r._cachedMeta.iScale,l=t.dataset&&t.dataset.options?t.dataset.options.spanGaps:null;if(s&&n===s.axis&&n!=="r"&&a&&o.length){let c=s._reversePixels?Sj:ks;if(i){if(r._sharedOptions){let d=o[0],m=typeof d.getRange=="function"&&d.getRange(n);if(m){let f=c(o,n,e-m),b=c(o,n,e+m);return{lo:f.lo,hi:b.hi}}}}else{let d=c(o,n,e);if(l){let{vScale:m}=r._cachedMeta,{_parsed:f}=t,b=f.slice(0,d.lo+1).reverse().findIndex(w=>!Et(w[m.axis]));d.lo-=Math.max(0,b);let v=f.slice(d.hi).findIndex(w=>!Et(w[m.axis]));d.hi+=Math.max(0,v)}return d}}return{lo:0,hi:o.length-1}}function Jg(t,n,e,i,r){let o=t.getSortedVisibleDatasetMetas(),a=e[n];for(let s=0,l=o.length;s{l[a]&&l[a](n[e],r)&&(o.push({element:l,datasetIndex:c,index:d}),s=s||l.inRange(n.x,n.y,r))}),i&&!s?[]:o}var toe={evaluateInteractionItems:Jg,modes:{index(t,n,e,i){let r=Ic(n,t),o=e.axis||"x",a=e.includeInvisible||!1,s=e.intersect?kT(t,r,o,i,a):ST(t,r,o,!1,i,a),l=[];return s.length?(t.getSortedVisibleDatasetMetas().forEach(c=>{let d=s[0].index,m=c.data[d];m&&!m.skip&&l.push({element:m,datasetIndex:c.index,index:d})}),l):[]},dataset(t,n,e,i){let r=Ic(n,t),o=e.axis||"xy",a=e.includeInvisible||!1,s=e.intersect?kT(t,r,o,i,a):ST(t,r,o,!1,i,a);if(s.length>0){let l=s[0].datasetIndex,c=t.getDatasetMeta(l).data;s=[];for(let d=0;de.pos===n)}function a4(t,n){return t.filter(e=>J4.indexOf(e.pos)===-1&&e.box.axis===n)}function Wg(t,n){return t.sort((e,i)=>{let r=n?i:e,o=n?e:i;return r.weight===o.weight?r.index-o.index:r.weight-o.weight})}function ioe(t){let n=[],e,i,r,o,a,s;for(e=0,i=(t||[]).length;ec.box.fullSize),!0),i=Wg($g(n,"left"),!0),r=Wg($g(n,"right")),o=Wg($g(n,"top"),!0),a=Wg($g(n,"bottom")),s=a4(n,"x"),l=a4(n,"y");return{fullSize:e,leftAndTop:i.concat(o),rightAndBottom:r.concat(l).concat(a).concat(s),chartArea:$g(n,"chartArea"),vertical:i.concat(r).concat(l),horizontal:o.concat(a).concat(s)}}function s4(t,n,e,i){return Math.max(t[e],n[e])+Math.max(t[i],n[i])}function eH(t,n){t.top=Math.max(t.top,n.top),t.left=Math.max(t.left,n.left),t.bottom=Math.max(t.bottom,n.bottom),t.right=Math.max(t.right,n.right)}function aoe(t,n,e,i){let{pos:r,box:o}=e,a=t.maxPadding;if(!St(r)){e.size&&(t[r]-=e.size);let m=i[e.stack]||{size:0,count:1};m.size=Math.max(m.size,e.horizontal?o.height:o.width),e.size=m.size/m.count,t[r]+=e.size}o.getPadding&&eH(a,o.getPadding());let s=Math.max(0,n.outerWidth-s4(a,t,"left","right")),l=Math.max(0,n.outerHeight-s4(a,t,"top","bottom")),c=s!==t.w,d=l!==t.h;return t.w=s,t.h=l,e.horizontal?{same:c,other:d}:{same:d,other:c}}function soe(t){let n=t.maxPadding;function e(i){let r=Math.max(n[i]-t[i],0);return t[i]+=r,r}t.y+=e("top"),t.x+=e("left"),e("right"),e("bottom")}function loe(t,n){let e=n.maxPadding;function i(r){let o={left:0,top:0,right:0,bottom:0};return r.forEach(a=>{o[a]=Math.max(n[a],e[a])}),o}return i(t?["left","right"]:["top","bottom"])}function Yg(t,n,e,i){let r=[],o,a,s,l,c,d;for(o=0,a=t.length,c=0;o{typeof w.beforeLayout=="function"&&w.beforeLayout()});let d=l.reduce((w,x)=>x.box.options&&x.box.options.display===!1?w:w+1,0)||1,m=Object.freeze({outerWidth:n,outerHeight:e,padding:r,availableWidth:o,availableHeight:a,vBoxMaxWidth:o/2/d,hBoxMaxHeight:a/2}),f=Object.assign({},r);eH(f,sr(i));let b=Object.assign({maxPadding:f,w:o,h:a,x:r.left,y:r.top},r),v=roe(l.concat(c),m);Yg(s.fullSize,b,m,v),Yg(l,b,m,v),Yg(c,b,m,v)&&Yg(l,b,m,v),soe(b),l4(s.leftAndTop,b,m,v),b.x+=b.w,b.y+=b.h,l4(s.rightAndBottom,b,m,v),t.chartArea={left:b.left,top:b.top,right:b.left+b.w,bottom:b.top+b.h,height:b.h,width:b.w},ii(s.chartArea,w=>{let x=w.box;Object.assign(x,t.chartArea),x.update(b.w,b.h,{left:0,top:0,right:0,bottom:0})})}},aC=class{acquireContext(n,e){}releaseContext(n){return!1}addEventListener(n,e,i){}removeEventListener(n,e,i){}getDevicePixelRatio(){return 1}getMaximumSize(n,e,i,r){return e=Math.max(0,e||n.width),i=i||n.height,{width:e,height:Math.max(0,r?Math.floor(e/r):i)}}isAttached(n){return!0}updateConfig(n){}},LT=class extends aC{acquireContext(n){return n&&n.getContext&&n.getContext("2d")||null}updateConfig(n){n.options.animation=!1}},nC="$chartjs",coe={touchstart:"mousedown",touchmove:"mousemove",touchend:"mouseup",pointerenter:"mouseenter",pointerdown:"mousedown",pointermove:"mousemove",pointerup:"mouseup",pointerleave:"mouseout",pointerout:"mouseout"},c4=t=>t===null||t==="";function doe(t,n){let e=t.style,i=t.getAttribute("height"),r=t.getAttribute("width");if(t[nC]={initial:{height:i,width:r,style:{display:e.display,height:e.height,width:e.width}}},e.display=e.display||"block",e.boxSizing=e.boxSizing||"border-box",c4(r)){let o=_T(t,"width");o!==void 0&&(t.width=o)}if(c4(i))if(t.style.height==="")t.height=t.width/(n||2);else{let o=_T(t,"height");o!==void 0&&(t.height=o)}return t}var tH=Wj?{passive:!0}:!1;function uoe(t,n,e){t&&t.addEventListener(n,e,tH)}function moe(t,n,e){t&&t.canvas&&t.canvas.removeEventListener(n,e,tH)}function hoe(t,n){let e=coe[t.type]||t.type,{x:i,y:r}=Ic(t,n);return{type:e,chart:n,native:t,x:i!==void 0?i:null,y:r!==void 0?r:null}}function sC(t,n){for(let e of t)if(e===n||e.contains(n))return!0}function poe(t,n,e){let i=t.canvas,r=new MutationObserver(o=>{let a=!1;for(let s of o)a=a||sC(s.addedNodes,i),a=a&&!sC(s.removedNodes,i);a&&e()});return r.observe(document,{childList:!0,subtree:!0}),r}function foe(t,n,e){let i=t.canvas,r=new MutationObserver(o=>{let a=!1;for(let s of o)a=a||sC(s.removedNodes,i),a=a&&!sC(s.addedNodes,i);a&&e()});return r.observe(document,{childList:!0,subtree:!0}),r}var Kg=new Map,d4=0;function iH(){let t=window.devicePixelRatio;t!==d4&&(d4=t,Kg.forEach((n,e)=>{e.currentDevicePixelRatio!==t&&n()}))}function goe(t,n){Kg.size||window.addEventListener("resize",iH),Kg.set(t,n)}function _oe(t){Kg.delete(t),Kg.size||window.removeEventListener("resize",iH)}function boe(t,n,e){let i=t.canvas,r=i&&Qx(i);if(!r)return;let o=rT((s,l)=>{let c=r.clientWidth;e(s,l),c{let l=s[0],c=l.contentRect.width,d=l.contentRect.height;c===0&&d===0||o(c,d)});return a.observe(r),goe(t,o),a}function TT(t,n,e){e&&e.disconnect(),n==="resize"&&_oe(t)}function voe(t,n,e){let i=t.canvas,r=rT(o=>{t.ctx!==null&&e(hoe(o,t))},t);return uoe(i,n,r),r}var VT=class extends aC{acquireContext(n,e){let i=n&&n.getContext&&n.getContext("2d");return i&&i.canvas===n?(doe(n,e),i):null}releaseContext(n){let e=n.canvas;if(!e[nC])return!1;let i=e[nC].initial;["height","width"].forEach(o=>{let a=i[o];Et(a)?e.removeAttribute(o):e.setAttribute(o,a)});let r=i.style||{};return Object.keys(r).forEach(o=>{e.style[o]=r[o]}),e.width=e.width,delete e[nC],!0}addEventListener(n,e,i){this.removeEventListener(n,e);let r=n.$proxies||(n.$proxies={}),a={attach:poe,detach:foe,resize:boe}[e]||voe;r[e]=a(n,e,i)}removeEventListener(n,e){let i=n.$proxies||(n.$proxies={}),r=i[e];if(!r)return;({attach:TT,detach:TT,resize:TT}[e]||moe)(n,e,r),i[e]=void 0}getDevicePixelRatio(){return window.devicePixelRatio}getMaximumSize(n,e,i,r){return $j(n,e,i,r)}isAttached(n){let e=n&&Qx(n);return!!(e&&e.isConnected)}};function yoe(t){return!Yx()||typeof OffscreenCanvas<"u"&&t instanceof OffscreenCanvas?LT:VT}var ja=class{static defaults={};static defaultRoutes=void 0;x;y;active=!1;options;$animations;tooltipPosition(n){let{x:e,y:i}=this.getProps(["x","y"],n);return{x:e,y:i}}hasValue(){return xu(this.x)&&xu(this.y)}getProps(n,e){let i=this.$animations;if(!e||!i)return this;let r={};return n.forEach(o=>{r[o]=i[o]&&i[o].active()?i[o]._to:this[o]}),r}};function xoe(t,n){let e=t.options.ticks,i=Coe(t),r=Math.min(e.maxTicksLimit||i,i),o=e.major.enabled?Doe(n):[],a=o.length,s=o[0],l=o[a-1],c=[];if(a>r)return Eoe(n,c,o,a/r),c;let d=woe(o,n,r);if(a>0){let m,f,b=a>1?Math.round((l-s)/(a-1)):null;for(Xx(n,c,d,Et(b)?0:s-b,s),m=0,f=a-1;mr)return l}return Math.max(r,1)}function Doe(t){let n=[],e,i;for(e=0,i=t.length;et==="left"?"right":t==="right"?"left":t,u4=(t,n,e)=>n==="top"||n==="left"?t[n]+e:t[n]-e,m4=(t,n)=>Math.min(n||t,t);function h4(t,n){let e=[],i=t.length/n,r=t.length,o=0;for(;oa+s)))return l}function Toe(t,n){ii(t,e=>{let i=e.gc,r=i.length/2,o;if(r>n){for(o=0;oi?i:e,i=r&&e>i?e:i,{min:no(e,no(i,e)),max:no(i,no(e,i))}}getPadding(){return{left:this.paddingLeft||0,top:this.paddingTop||0,right:this.paddingRight||0,bottom:this.paddingBottom||0}}getTicks(){return this.ticks}getLabels(){let n=this.chart.data;return this.options.labels||(this.isHorizontal()?n.xLabels:n.yLabels)||n.labels||[]}getLabelItems(n=this.chart.chartArea){return this._labelItems||(this._labelItems=this._computeLabelItems(n))}beforeLayout(){this._cache={},this._dataLimitsCached=!1}beforeUpdate(){yi(this.options.beforeUpdate,[this])}update(n,e,i){let{beginAtZero:r,grace:o,ticks:a}=this.options,s=a.sampleSize;this.beforeUpdate(),this.maxWidth=n,this.maxHeight=e,this._margins=i=Object.assign({left:0,right:0,top:0,bottom:0},i),this.ticks=null,this._labelSizes=null,this._gridLineItems=null,this._labelItems=null,this.beforeSetDimensions(),this.setDimensions(),this.afterSetDimensions(),this._maxLength=this.isHorizontal()?this.width+i.left+i.right:this.height+i.top+i.bottom,this._dataLimitsCached||(this.beforeDataLimits(),this.determineDataLimits(),this.afterDataLimits(),this._range=Vj(this,o,r),this._dataLimitsCached=!0),this.beforeBuildTicks(),this.ticks=this.buildTicks()||[],this.afterBuildTicks();let l=s=o||i<=1||!this.isHorizontal()){this.labelRotation=r;return}let d=this._getLabelSizes(),m=d.widest.width,f=d.highest.height,b=Dn(this.chart.width-m,0,this.maxWidth);s=n.offset?this.maxWidth/i:b/(i-1),m+6>s&&(s=b/(i-(n.offset?.5:1)),l=this.maxHeight-Gg(n.grid)-e.padding-p4(n.title,this.chart.options.font),c=Math.sqrt(m*m+f*f),a=Hx(Math.min(Math.asin(Dn((d.highest.height+6)/s,-1,1)),Math.asin(Dn(l/c,-1,1))-Math.asin(Dn(f/c,-1,1)))),a=Math.max(r,Math.min(o,a))),this.labelRotation=a}afterCalculateLabelRotation(){yi(this.options.afterCalculateLabelRotation,[this])}afterAutoSkip(){}beforeFit(){yi(this.options.beforeFit,[this])}fit(){let n={width:0,height:0},{chart:e,options:{ticks:i,title:r,grid:o}}=this,a=this._isVisible(),s=this.isHorizontal();if(a){let l=p4(r,e.options.font);if(s?(n.width=this.maxWidth,n.height=Gg(o)+l):(n.height=this.maxHeight,n.width=Gg(o)+l),i.display&&this.ticks.length){let{first:c,last:d,widest:m,highest:f}=this._getLabelSizes(),b=i.padding*2,v=ra(this.labelRotation),w=Math.cos(v),x=Math.sin(v);if(s){let D=i.mirror?0:x*m.width+w*f.height;n.height=Math.min(this.maxHeight,n.height+D+b)}else{let D=i.mirror?0:w*m.width+x*f.height;n.width=Math.min(this.maxWidth,n.width+D+b)}this._calculatePadding(c,d,x,w)}}this._handleMargins(),s?(this.width=this._length=e.width-this._margins.left-this._margins.right,this.height=n.height):(this.width=n.width,this.height=this._length=e.height-this._margins.top-this._margins.bottom)}_calculatePadding(n,e,i,r){let{ticks:{align:o,padding:a},position:s}=this.options,l=this.labelRotation!==0,c=s!=="top"&&this.axis==="x";if(this.isHorizontal()){let d=this.getPixelForTick(0)-this.left,m=this.right-this.getPixelForTick(this.ticks.length-1),f=0,b=0;l?c?(f=r*n.width,b=i*e.height):(f=i*n.height,b=r*e.width):o==="start"?b=e.width:o==="end"?f=n.width:o!=="inner"&&(f=n.width/2,b=e.width/2),this.paddingLeft=Math.max((f-d+a)*this.width/(this.width-d),0),this.paddingRight=Math.max((b-m+a)*this.width/(this.width-m),0)}else{let d=e.height/2,m=n.height/2;o==="start"?(d=0,m=n.height):o==="end"&&(d=e.height,m=0),this.paddingTop=d+a,this.paddingBottom=m+a}}_handleMargins(){this._margins&&(this._margins.left=Math.max(this.paddingLeft,this._margins.left),this._margins.top=Math.max(this.paddingTop,this._margins.top),this._margins.right=Math.max(this.paddingRight,this._margins.right),this._margins.bottom=Math.max(this.paddingBottom,this._margins.bottom))}afterFit(){yi(this.options.afterFit,[this])}isHorizontal(){let{axis:n,position:e}=this.options;return e==="top"||e==="bottom"||n==="x"}isFullSize(){return this.options.fullSize}_convertTicksToLabels(n){this.beforeTickToLabelConversion(),this.generateTickLabels(n);let e,i;for(e=0,i=n.length;e({width:a[Ve]||0,height:s[Ve]||0});return{first:be(0),last:be(e-1),widest:be(re),highest:be(Ee),widths:a,heights:s}}getLabelForValue(n){return n}getPixelForValue(n,e){return NaN}getValueForPixel(n){}getPixelForTick(n){let e=this.ticks;return n<0||n>e.length-1?null:this.getPixelForValue(e[n].value)}getPixelForDecimal(n){this._reversePixels&&(n=1-n);let e=this._startPixel+n*this._length;return kj(this._alignToPixels?kc(this.chart,e,0):e)}getDecimalForPixel(n){let e=(n-this._startPixel)/this._length;return this._reversePixels?1-e:e}getBasePixel(){return this.getPixelForValue(this.getBaseValue())}getBaseValue(){let{min:n,max:e}=this;return n<0&&e<0?e:n>0&&e>0?n:0}getContext(n){let e=this.ticks||[];if(n>=0&&ns*r?s/i:l/r:l*r0}_computeGridLineItems(n){let e=this.axis,i=this.chart,r=this.options,{grid:o,position:a,border:s}=r,l=o.offset,c=this.isHorizontal(),m=this.ticks.length+(l?1:0),f=Gg(o),b=[],v=s.setContext(this.getContext()),w=v.display?v.width:0,x=w/2,D=function(Pi){return kc(i,Pi,w)},P,W,Z,K,re,Ee,be,Ve,yt,bt,It,$n;if(a==="top")P=D(this.bottom),Ee=this.bottom-f,Ve=P-x,bt=D(n.top)+x,$n=n.bottom;else if(a==="bottom")P=D(this.top),bt=n.top,$n=D(n.bottom)-x,Ee=P+x,Ve=this.top+f;else if(a==="left")P=D(this.right),re=this.right-f,be=P-x,yt=D(n.left)+x,It=n.right;else if(a==="right")P=D(this.left),yt=n.left,It=D(n.right)-x,re=P+x,be=this.left+f;else if(e==="x"){if(a==="center")P=D((n.top+n.bottom)/2+.5);else if(St(a)){let Pi=Object.keys(a)[0],en=a[Pi];P=D(this.chart.scales[Pi].getPixelForValue(en))}bt=n.top,$n=n.bottom,Ee=P+x,Ve=Ee+f}else if(e==="y"){if(a==="center")P=D((n.left+n.right)/2);else if(St(a)){let Pi=Object.keys(a)[0],en=a[Pi];P=D(this.chart.scales[Pi].getPixelForValue(en))}re=P-x,be=re-f,yt=n.left,It=n.right}let lo=st(r.ticks.maxTicksLimit,m),ui=Math.max(1,Math.ceil(m/lo));for(W=0;W0&&(Jc-=Xc/2);break}D_={left:Jc,top:mp,width:Xc+Pu.width,height:up+Pu.height,color:ui.backdropColor}}x.push({label:Z,font:Ve,textOffset:It,options:{rotation:w,color:en,strokeColor:ma,strokeWidth:lr,textAlign:Ru,textBaseline:$n,translation:[K,re],backdrop:D_}})}return x}_getXAxisLabelAlignment(){let{position:n,ticks:e}=this.options;if(-ra(this.labelRotation))return n==="top"?"left":"right";let r="center";return e.align==="start"?r="left":e.align==="end"?r="right":e.align==="inner"&&(r="inner"),r}_getYAxisLabelAlignment(n){let{position:e,ticks:{crossAlign:i,mirror:r,padding:o}}=this.options,a=this._getLabelSizes(),s=n+o,l=a.widest.width,c,d;return e==="left"?r?(d=this.right+o,i==="near"?c="left":i==="center"?(c="center",d+=l/2):(c="right",d+=l)):(d=this.right-s,i==="near"?c="right":i==="center"?(c="center",d-=l/2):(c="left",d=this.left)):e==="right"?r?(d=this.left+o,i==="near"?c="right":i==="center"?(c="center",d-=l/2):(c="left",d-=l)):(d=this.left+s,i==="near"?c="left":i==="center"?(c="center",d+=l/2):(c="right",d=this.right)):c="right",{textAlign:c,x:d}}_computeLabelArea(){if(this.options.ticks.mirror)return;let n=this.chart,e=this.options.position;if(e==="left"||e==="right")return{top:0,left:this.left,bottom:n.height,right:this.right};if(e==="top"||e==="bottom")return{top:this.top,left:0,bottom:this.bottom,right:n.width}}drawBackground(){let{ctx:n,options:{backgroundColor:e},left:i,top:r,width:o,height:a}=this;e&&(n.save(),n.fillStyle=e,n.fillRect(i,r,o,a),n.restore())}getLineWidthForValue(n){let e=this.options.grid;if(!this._isVisible()||!e.display)return 0;let r=this.ticks.findIndex(o=>o.value===n);return r>=0?e.setContext(this.getContext(r)).lineWidth:0}drawGrid(n){let e=this.options.grid,i=this.ctx,r=this._gridLineItems||(this._gridLineItems=this._computeGridLineItems(n)),o,a,s=(l,c,d)=>{!d.width||!d.color||(i.save(),i.lineWidth=d.width,i.strokeStyle=d.color,i.setLineDash(d.borderDash||[]),i.lineDashOffset=d.borderDashOffset,i.beginPath(),i.moveTo(l.x,l.y),i.lineTo(c.x,c.y),i.stroke(),i.restore())};if(e.display)for(o=0,a=r.length;o{this.draw(o)}}]:[{z:i,draw:o=>{this.drawBackground(),this.drawGrid(o),this.drawTitle()}},{z:r,draw:()=>{this.drawBorder()}},{z:e,draw:o=>{this.drawLabels(o)}}]}getMatchingVisibleMetas(n){let e=this.chart.getSortedVisibleDatasetMetas(),i=this.axis+"AxisID",r=[],o,a;for(o=0,a=e.length;o{let i=e.split("."),r=i.pop(),o=[t].concat(i).join("."),a=n[e].split("."),s=a.pop(),l=a.join(".");xi.route(o,r,l,s)})}function Noe(t){return"id"in t&&"defaults"in t}var BT=class{constructor(){this.controllers=new Uh(Oc,"datasets",!0),this.elements=new Uh(ja,"elements"),this.plugins=new Uh(Object,"plugins"),this.scales=new Uh(Eu,"scales"),this._typedRegistries=[this.controllers,this.scales,this.elements]}add(...n){this._each("register",n)}remove(...n){this._each("unregister",n)}addControllers(...n){this._each("register",n,this.controllers)}addElements(...n){this._each("register",n,this.elements)}addPlugins(...n){this._each("register",n,this.plugins)}addScales(...n){this._each("register",n,this.scales)}getController(n){return this._get(n,this.controllers,"controller")}getElement(n){return this._get(n,this.elements,"element")}getPlugin(n){return this._get(n,this.plugins,"plugin")}getScale(n){return this._get(n,this.scales,"scale")}removeControllers(...n){this._each("unregister",n,this.controllers)}removeElements(...n){this._each("unregister",n,this.elements)}removePlugins(...n){this._each("unregister",n,this.plugins)}removeScales(...n){this._each("unregister",n,this.scales)}_each(n,e,i){[...e].forEach(r=>{let o=i||this._getRegistryForType(r);i||o.isForType(r)||o===this.plugins&&r.id?this._exec(n,o,r):ii(r,a=>{let s=i||this._getRegistryForType(a);this._exec(n,s,a)})})}_exec(n,e,i){let r=jx(n);yi(i["before"+r],[],i),e[n](i),yi(i["after"+r],[],i)}_getRegistryForType(n){for(let e=0;eo.filter(s=>!a.some(l=>s.plugin.id===l.plugin.id));this._notify(r(e,i),n,"stop"),this._notify(r(i,e),n,"start")}};function Loe(t){let n={},e=[],i=Object.keys(Os.plugins.items);for(let o=0;o1&&f4(t[0].toLowerCase());if(i)return i}throw new Error(`Cannot determine type of '${t}' axis. Please provide 'axis' or 'position' option.`)}function g4(t,n,e){if(e[n+"AxisID"]===t)return{axis:n}}function $oe(t,n){if(n.data&&n.data.datasets){let e=n.data.datasets.filter(i=>i.xAxisID===t||i.yAxisID===t);if(e.length)return g4(t,"x",e[0])||g4(t,"y",e[0])}return{}}function Woe(t,n){let e=Mc[t.type]||{scales:{}},i=n.scales||{},r=HT(t.type,n),o=Object.create(null);return Object.keys(i).forEach(a=>{let s=i[a];if(!St(s))return console.error(`Invalid scale configuration for scale: ${a}`);if(s._proxy)return console.warn(`Ignoring resolver passed as options for scale: ${a}`);let l=zT(a,s,$oe(a,t),xi.scales[s.type]),c=zoe(l,r),d=e.scales||{};o[a]=Fh(Object.create(null),[{axis:l},s,d[l],d[c]])}),t.data.datasets.forEach(a=>{let s=a.type||t.type,l=a.indexAxis||HT(s,n),d=(Mc[s]||{}).scales||{};Object.keys(d).forEach(m=>{let f=Hoe(m,l),b=a[f+"AxisID"]||f;o[b]=o[b]||Object.create(null),Fh(o[b],[{axis:f},i[b],d[m]])})}),Object.keys(o).forEach(a=>{let s=o[a];Fh(s,[xi.scales[s.type],xi.scale])}),o}function nH(t){let n=t.options||(t.options={});n.plugins=st(n.plugins,{}),n.scales=Woe(t,n)}function rH(t){return t=t||{},t.datasets=t.datasets||[],t.labels=t.labels||[],t}function Goe(t){return t=t||{},t.data=rH(t.data),nH(t),t}var _4=new Map,oH=new Set;function Jx(t,n){let e=_4.get(t);return e||(e=n(),_4.set(t,e),oH.add(e)),e}var qg=(t,n,e)=>{let i=_l(n,e);i!==void 0&&t.add(i)},UT=class{constructor(n){this._config=Goe(n),this._scopeCache=new Map,this._resolverCache=new Map}get platform(){return this._config.platform}get type(){return this._config.type}set type(n){this._config.type=n}get data(){return this._config.data}set data(n){this._config.data=rH(n)}get options(){return this._config.options}set options(n){this._config.options=n}get plugins(){return this._config.plugins}update(){let n=this._config;this.clearCache(),nH(n)}clearCache(){this._scopeCache.clear(),this._resolverCache.clear()}datasetScopeKeys(n){return Jx(n,()=>[[`datasets.${n}`,""]])}datasetAnimationScopeKeys(n,e){return Jx(`${n}.transition.${e}`,()=>[[`datasets.${n}.transitions.${e}`,`transitions.${e}`],[`datasets.${n}`,""]])}datasetElementScopeKeys(n,e){return Jx(`${n}-${e}`,()=>[[`datasets.${n}.elements.${e}`,`datasets.${n}`,`elements.${e}`,""]])}pluginScopeKeys(n){let e=n.id,i=this.type;return Jx(`${i}-plugin-${e}`,()=>[[`plugins.${e}`,...n.additionalOptionScopes||[]]])}_cachedScopes(n,e){let i=this._scopeCache,r=i.get(n);return(!r||e)&&(r=new Map,i.set(n,r)),r}getOptionScopes(n,e,i){let{options:r,type:o}=this,a=this._cachedScopes(n,i),s=a.get(e);if(s)return s;let l=new Set;e.forEach(d=>{n&&(l.add(n),d.forEach(m=>qg(l,n,m))),d.forEach(m=>qg(l,r,m)),d.forEach(m=>qg(l,Mc[o]||{},m)),d.forEach(m=>qg(l,xi,m)),d.forEach(m=>qg(l,$x,m))});let c=Array.from(l);return c.length===0&&c.push(Object.create(null)),oH.has(e)&&a.set(e,c),c}chartOptionScopes(){let{options:n,type:e}=this;return[n,Mc[e]||{},xi.datasets[e]||{},{type:e},xi,$x]}resolveNamedOptions(n,e,i,r=[""]){let o={$shared:!0},{resolver:a,subPrefixes:s}=b4(this._resolverCache,n,r),l=a;if(Yoe(a,e)){o.$shared=!1,i=fl(i)?i():i;let c=this.createResolver(n,i,s);l=yu(a,i,c)}for(let c of e)o[c]=l[c];return o}createResolver(n,e,i=[""],r){let{resolver:o}=b4(this._resolverCache,n,i);return St(e)?yu(o,e,void 0,r):o}};function b4(t,n,e){let i=t.get(n);i||(i=new Map,t.set(n,i));let r=e.join(),o=i.get(r);return o||(o={resolver:qx(n,e),subPrefixes:e.filter(s=>!s.toLowerCase().includes("hover"))},i.set(r,o)),o}var qoe=t=>St(t)&&Object.getOwnPropertyNames(t).some(n=>fl(t[n]));function Yoe(t,n){let{isScriptable:e,isIndexable:i}=mT(t);for(let r of n){let o=e(r),a=i(r),s=(a||o)&&t[r];if(o&&(fl(s)||qoe(s))||a&&Ei(s))return!0}return!1}var Qoe="4.5.1",Koe=["top","bottom","left","right","chartArea"];function v4(t,n){return t==="top"||t==="bottom"||Koe.indexOf(t)===-1&&n==="x"}function y4(t,n){return function(e,i){return e[t]===i[t]?e[n]-i[n]:e[t]-i[t]}}function x4(t){let n=t.chart,e=n.options.animation;n.notifyPlugins("afterRender"),yi(e&&e.onComplete,[t],n)}function Zoe(t){let n=t.chart,e=n.options.animation;yi(e&&e.onProgress,[t],n)}function aH(t){return Yx()&&typeof t=="string"?t=document.getElementById(t):t&&t.length&&(t=t[0]),t&&t.canvas&&(t=t.canvas),t}var rC={},C4=t=>{let n=aH(t);return Object.values(rC).filter(e=>e.canvas===n).pop()};function Xoe(t,n,e){let i=Object.keys(t);for(let r of i){let o=+r;if(o>=n){let a=t[r];delete t[r],(e>0||o>n)&&(t[o+e]=a)}}}function Joe(t,n,e,i){return!e||t.type==="mouseout"?null:i?n:t}var uC=(()=>{class t{static defaults=xi;static instances=rC;static overrides=Mc;static registry=Os;static version=Qoe;static getChart=C4;static register(...e){Os.add(...e),w4()}static unregister(...e){Os.remove(...e),w4()}constructor(e,i){let r=this.config=new UT(i),o=aH(e),a=C4(o);if(a)throw new Error("Canvas is already in use. Chart with ID '"+a.id+"' must be destroyed before the canvas with ID '"+a.canvas.id+"' can be reused.");let s=r.createResolver(r.chartOptionScopes(),this.getContext());this.platform=new(r.platform||yoe(o)),this.platform.updateConfig(r);let l=this.platform.acquireContext(o,s.aspectRatio),c=l&&l.canvas,d=c&&c.height,m=c&&c.width;if(this.id=xj(),this.ctx=l,this.canvas=c,this.width=m,this.height=d,this._options=s,this._aspectRatio=this.aspectRatio,this._layers=[],this._metasets=[],this._stacks=void 0,this.boxes=[],this.currentDevicePixelRatio=void 0,this.chartArea=void 0,this._active=[],this._lastEvent=void 0,this._listeners={},this._responsiveListeners=void 0,this._sortedMetasets=[],this.scales={},this._plugins=new jT,this.$proxies={},this._hiddenIndices={},this.attached=!1,this._animationsDisabled=void 0,this.$context=void 0,this._doResize=Oj(f=>this.update(f),s.resizeDelay||0),this._dataChanges=[],rC[this.id]=this,!l||!c){console.error("Failed to create chart: can't acquire context from the given item");return}vl.listen(this,"complete",x4),vl.listen(this,"progress",Zoe),this._initialize(),this.attached&&this.update()}get aspectRatio(){let{options:{aspectRatio:e,maintainAspectRatio:i},width:r,height:o,_aspectRatio:a}=this;return Et(e)?i&&a?a:o?r/o:null:e}get data(){return this.config.data}set data(e){this.config.data=e}get options(){return this._options}set options(e){this.config.options=e}get registry(){return Os}_initialize(){return this.notifyPlugins("beforeInit"),this.options.responsive?this.resize():gT(this,this.options.devicePixelRatio),this.bindEvents(),this.notifyPlugins("afterInit"),this}clear(){return cT(this.canvas,this.ctx),this}stop(){return vl.stop(this),this}resize(e,i){vl.running(this)?this._resizeBeforeDraw={width:e,height:i}:this._resize(e,i)}_resize(e,i){let r=this.options,o=this.canvas,a=r.maintainAspectRatio&&this.aspectRatio,s=this.platform.getMaximumSize(o,e,i,a),l=r.devicePixelRatio||this.platform.getDevicePixelRatio(),c=this.width?"resize":"attach";this.width=s.width,this.height=s.height,this._aspectRatio=this.aspectRatio,gT(this,l,!0)&&(this.notifyPlugins("resize",{size:s}),yi(r.onResize,[this,s],this),this.attached&&this._doResize(c)&&this.render())}ensureScalesHaveIDs(){let i=this.options.scales||{};ii(i,(r,o)=>{r.id=o})}buildOrUpdateScales(){let e=this.options,i=e.scales,r=this.scales,o=Object.keys(r).reduce((s,l)=>(s[l]=!1,s),{}),a=[];i&&(a=a.concat(Object.keys(i).map(s=>{let l=i[s],c=zT(s,l),d=c==="r",m=c==="x";return{options:l,dposition:d?"chartArea":m?"bottom":"left",dtype:d?"radialLinear":m?"category":"linear"}}))),ii(a,s=>{let l=s.options,c=l.id,d=zT(c,l),m=st(l.type,s.dtype);(l.position===void 0||v4(l.position,d)!==v4(s.dposition))&&(l.position=s.dposition),o[c]=!0;let f=null;if(c in r&&r[c].type===m)f=r[c];else{let b=Os.getScale(m);f=new b({id:c,type:m,ctx:this.ctx,chart:this}),r[f.id]=f}f.init(l,e)}),ii(o,(s,l)=>{s||delete r[l]}),ii(r,s=>{Dr.configure(this,s,s.options),Dr.addBox(this,s)})}_updateMetasets(){let e=this._metasets,i=this.data.datasets.length,r=e.length;if(e.sort((o,a)=>o.index-a.index),r>i){for(let o=i;oi.length&&delete this._stacks,e.forEach((r,o)=>{i.filter(a=>a===r._dataset).length===0&&this._destroyDatasetMeta(o)})}buildOrUpdateControllers(){let e=[],i=this.data.datasets,r,o;for(this._removeUnreferencedMetasets(),r=0,o=i.length;r{this.getDatasetMeta(i).controller.reset()},this)}reset(){this._resetElements(),this.notifyPlugins("reset")}update(e){let i=this.config;i.update();let r=this._options=i.createResolver(i.chartOptionScopes(),this.getContext()),o=this._animationsDisabled=!r.animation;if(this._updateScales(),this._checkEventBindings(),this._updateHiddenIndices(),this._plugins.invalidate(),this.notifyPlugins("beforeUpdate",{mode:e,cancelable:!0})===!1)return;let a=this.buildOrUpdateControllers();this.notifyPlugins("beforeElementsUpdate");let s=0;for(let d=0,m=this.data.datasets.length;d{d.reset()}),this._updateDatasets(e),this.notifyPlugins("afterUpdate",{mode:e}),this._layers.sort(y4("z","_idx"));let{_active:l,_lastEvent:c}=this;c?this._eventHandler(c,!0):l.length&&this._updateHoverStyles(l,l,!0),this.render()}_updateScales(){ii(this.scales,e=>{Dr.removeBox(this,e)}),this.ensureScalesHaveIDs(),this.buildOrUpdateScales()}_checkEventBindings(){let e=this.options,i=new Set(Object.keys(this._listeners)),r=new Set(e.events);(!KS(i,r)||!!this._responsiveListeners!==e.responsive)&&(this.unbindEvents(),this.bindEvents())}_updateHiddenIndices(){let{_hiddenIndices:e}=this,i=this._getUniformDataChanges()||[];for(let{method:r,start:o,count:a}of i){let s=r==="_removeElements"?-a:a;Xoe(e,o,s)}}_getUniformDataChanges(){let e=this._dataChanges;if(!e||!e.length)return;this._dataChanges=[];let i=this.data.datasets.length,r=a=>new Set(e.filter(s=>s[0]===a).map((s,l)=>l+","+s.splice(1).join(","))),o=r(0);for(let a=1;aa.split(",")).map(a=>({method:a[1],start:+a[2],count:+a[3]}))}_updateLayout(e){if(this.notifyPlugins("beforeLayout",{cancelable:!0})===!1)return;Dr.update(this,this.width,this.height,e);let i=this.chartArea,r=i.width<=0||i.height<=0;this._layers=[],ii(this.boxes,o=>{r&&o.position==="chartArea"||(o.configure&&o.configure(),this._layers.push(...o._layers()))},this),this._layers.forEach((o,a)=>{o._idx=a}),this.notifyPlugins("afterLayout")}_updateDatasets(e){if(this.notifyPlugins("beforeDatasetsUpdate",{mode:e,cancelable:!0})!==!1){for(let i=0,r=this.data.datasets.length;i=0;--i)this._drawDataset(e[i]);this.notifyPlugins("afterDatasetsDraw")}_drawDataset(e){let i=this.ctx,r={meta:e,index:e.index,cancelable:!0},o=CT(this,e);this.notifyPlugins("beforeDatasetDraw",r)!==!1&&(o&&Hg(i,o),e.controller.draw(),o&&zg(i),r.cancelable=!1,this.notifyPlugins("afterDatasetDraw",r))}isPointInArea(e){return Ss(e,this.chartArea,this._minPadding)}getElementsAtEventForMode(e,i,r,o){let a=toe.modes[i];return typeof a=="function"?a(this,e,r,o):[]}getDatasetMeta(e){let i=this.data.datasets[e],r=this._metasets,o=r.filter(a=>a&&a._dataset===i).pop();return o||(o={type:null,data:[],dataset:null,controller:null,hidden:null,xAxisID:null,yAxisID:null,order:i&&i.order||0,index:e,_dataset:i,_parsed:[],_sorted:!1},r.push(o)),o}getContext(){return this.$context||(this.$context=bl(null,{chart:this,type:"chart"}))}getVisibleDatasetCount(){return this.getSortedVisibleDatasetMetas().length}isDatasetVisible(e){let i=this.data.datasets[e];if(!i)return!1;let r=this.getDatasetMeta(e);return typeof r.hidden=="boolean"?!r.hidden:!i.hidden}setDatasetVisibility(e,i){let r=this.getDatasetMeta(e);r.hidden=!i}toggleDataVisibility(e){this._hiddenIndices[e]=!this._hiddenIndices[e]}getDataVisibility(e){return!this._hiddenIndices[e]}_updateVisibility(e,i,r){let o=r?"show":"hide",a=this.getDatasetMeta(e),s=a.controller._resolveAnimations(void 0,o);Nh(i)?(a.data[i].hidden=!r,this.update()):(this.setDatasetVisibility(e,r),s.update(a,{visible:r}),this.update(l=>l.datasetIndex===e?o:void 0))}hide(e,i){this._updateVisibility(e,i,!1)}show(e,i){this._updateVisibility(e,i,!0)}_destroyDatasetMeta(e){let i=this._metasets[e];i&&i.controller&&i.controller._destroy(),delete this._metasets[e]}_stop(){let e,i;for(this.stop(),vl.remove(this),e=0,i=this.data.datasets.length;e{i.addEventListener(this,a,s),e[a]=s},o=(a,s,l)=>{a.offsetX=s,a.offsetY=l,this._eventHandler(a)};ii(this.options.events,a=>r(a,o))}bindResponsiveEvents(){this._responsiveListeners||(this._responsiveListeners={});let e=this._responsiveListeners,i=this.platform,r=(c,d)=>{i.addEventListener(this,c,d),e[c]=d},o=(c,d)=>{e[c]&&(i.removeEventListener(this,c,d),delete e[c])},a=(c,d)=>{this.canvas&&this.resize(c,d)},s,l=()=>{o("attach",l),this.attached=!0,this.resize(),r("resize",a),r("detach",s)};s=()=>{this.attached=!1,o("resize",a),this._stop(),this._resize(0,0),r("attach",l)},i.isAttached(this.canvas)?l():s()}unbindEvents(){ii(this._listeners,(e,i)=>{this.platform.removeEventListener(this,i,e)}),this._listeners={},ii(this._responsiveListeners,(e,i)=>{this.platform.removeEventListener(this,i,e)}),this._responsiveListeners=void 0}updateHoverStyle(e,i,r){let o=r?"set":"remove",a,s,l,c;for(i==="dataset"&&(a=this.getDatasetMeta(e[0].datasetIndex),a.controller["_"+o+"DatasetHoverStyle"]()),l=0,c=e.length;l{let l=this.getDatasetMeta(a);if(!l)throw new Error("No dataset found at index "+a);return{datasetIndex:a,element:l.data[s],index:s}});!Bg(r,i)&&(this._active=r,this._lastEvent=null,this._updateHoverStyles(r,i))}notifyPlugins(e,i,r){return this._plugins.notify(this,e,i,r)}isPluginEnabled(e){return this._plugins._cache.filter(i=>i.plugin.id===e).length===1}_updateHoverStyles(e,i,r){let o=this.options.hover,a=(c,d)=>c.filter(m=>!d.some(f=>m.datasetIndex===f.datasetIndex&&m.index===f.index)),s=a(i,e),l=r?e:a(e,i);s.length&&this.updateHoverStyle(s,o.mode,!1),l.length&&o.mode&&this.updateHoverStyle(l,o.mode,!0)}_eventHandler(e,i){let r={event:e,replay:i,cancelable:!0,inChartArea:this.isPointInArea(e)},o=s=>(s.options.events||this.options.events).includes(e.native.type);if(this.notifyPlugins("beforeEvent",r,o)===!1)return;let a=this._handleEvent(e,i,r.inChartArea);return r.cancelable=!1,this.notifyPlugins("afterEvent",r,o),(a||r.changed)&&this.render(),this}_handleEvent(e,i,r){let{_active:o=[],options:a}=this,s=i,l=this._getActiveElements(e,o,r,s),c=Dj(e),d=Joe(e,this._lastEvent,r,c);r&&(this._lastEvent=null,yi(a.onHover,[e,l,this],this),c&&yi(a.onClick,[e,l,this],this));let m=!Bg(l,o);return(m||i)&&(this._active=l,this._updateHoverStyles(l,o,i)),this._lastEvent=d,m}_getActiveElements(e,i,r,o){if(e.type==="mouseout")return[];if(!r)return i;let a=this.options.hover;return this.getElementsAtEventForMode(e,a.mode,a,o)}}return t})();function w4(){return ii(uC.instances,t=>t._plugins.invalidate())}function eae(t,n,e){let{startAngle:i,x:r,y:o,outerRadius:a,innerRadius:s,options:l}=n,{borderWidth:c,borderJoinStyle:d}=l,m=Math.min(c/a,or(i-e));if(t.beginPath(),t.arc(r,o,a-c/2,i+m/2,e-m/2),s>0){let f=Math.min(c/s,or(i-e));t.arc(r,o,s+c/2,e-f/2,i+f/2,!0)}else{let f=Math.min(c/2,a*or(i-e));if(d==="round")t.arc(r,o,f,e-Ht/2,i+Ht/2,!0);else if(d==="bevel"){let b=2*f*f,v=-b*Math.cos(e+Ht/2)+r,w=-b*Math.sin(e+Ht/2)+o,x=b*Math.cos(i+Ht/2)+r,D=b*Math.sin(i+Ht/2)+o;t.lineTo(v,w),t.lineTo(x,D)}}t.closePath(),t.moveTo(0,0),t.rect(0,0,t.canvas.width,t.canvas.height),t.clip("evenodd")}function tae(t,n,e){let{startAngle:i,pixelMargin:r,x:o,y:a,outerRadius:s,innerRadius:l}=n,c=r/s;t.beginPath(),t.arc(o,a,s,i-c,e+c),l>r?(c=r/l,t.arc(o,a,l,e+c,i-c,!0)):t.arc(o,a,r,e+Zi,i-Zi),t.closePath(),t.clip()}function iae(t){return Gx(t,["outerStart","outerEnd","innerStart","innerEnd"])}function nae(t,n,e,i){let r=iae(t.options.borderRadius),o=(e-n)/2,a=Math.min(o,i*n/2),s=l=>{let c=(e-Math.min(o,l))*i/2;return Dn(l,0,Math.min(o,c))};return{outerStart:s(r.outerStart),outerEnd:s(r.outerEnd),innerStart:Dn(r.innerStart,0,a),innerEnd:Dn(r.innerEnd,0,a)}}function zh(t,n,e,i){return{x:e+t*Math.cos(n),y:i+t*Math.sin(n)}}function lC(t,n,e,i,r,o){let{x:a,y:s,startAngle:l,pixelMargin:c,innerRadius:d}=n,m=Math.max(n.outerRadius+i+e-c,0),f=d>0?d+i+e+c:0,b=0,v=r-l;if(i){let ui=d>0?d-i:0,Pi=m>0?m-i:0,en=(ui+Pi)/2,ma=en!==0?v*en/(en+i):v;b=(v-ma)/2}let w=Math.max(.001,v*m-e/Ht)/m,x=(v-w)/2,D=l+x+b,P=r-x-b,{outerStart:W,outerEnd:Z,innerStart:K,innerEnd:re}=nae(n,f,m,P-D),Ee=m-W,be=m-Z,Ve=D+W/Ee,yt=P-Z/be,bt=f+K,It=f+re,$n=D+K/bt,lo=P-re/It;if(t.beginPath(),o){let ui=(Ve+yt)/2;if(t.arc(a,s,m,Ve,ui),t.arc(a,s,m,ui,yt),Z>0){let lr=zh(be,yt,a,s);t.arc(lr.x,lr.y,Z,yt,P+Zi)}let Pi=zh(It,P,a,s);if(t.lineTo(Pi.x,Pi.y),re>0){let lr=zh(It,lo,a,s);t.arc(lr.x,lr.y,re,P+Zi,lo+Math.PI)}let en=(P-re/f+(D+K/f))/2;if(t.arc(a,s,f,P-re/f,en,!0),t.arc(a,s,f,en,D+K/f,!0),K>0){let lr=zh(bt,$n,a,s);t.arc(lr.x,lr.y,K,$n+Math.PI,D-Zi)}let ma=zh(Ee,D,a,s);if(t.lineTo(ma.x,ma.y),W>0){let lr=zh(Ee,Ve,a,s);t.arc(lr.x,lr.y,W,D-Zi,Ve)}}else{t.moveTo(a,s);let ui=Math.cos(Ve)*m+a,Pi=Math.sin(Ve)*m+s;t.lineTo(ui,Pi);let en=Math.cos(yt)*m+a,ma=Math.sin(yt)*m+s;t.lineTo(en,ma)}t.closePath()}function rae(t,n,e,i,r){let{fullCircles:o,startAngle:a,circumference:s}=n,l=n.endAngle;if(o){lC(t,n,e,i,l,r);for(let c=0;c=Ht&&b===0&&d!=="miter"&&eae(t,n,w),o||(lC(t,n,e,i,w,r),t.stroke())}var $T=class extends ja{static id="arc";static defaults={borderAlign:"center",borderColor:"#fff",borderDash:[],borderDashOffset:0,borderJoinStyle:void 0,borderRadius:0,borderWidth:2,offset:0,spacing:0,angle:void 0,circular:!0,selfJoin:!1};static defaultRoutes={backgroundColor:"backgroundColor"};static descriptors={_scriptable:!0,_indexable:n=>n!=="borderDash"};circumference;endAngle;fullCircles;innerRadius;outerRadius;pixelMargin;startAngle;constructor(n){super(),this.options=void 0,this.circumference=void 0,this.startAngle=void 0,this.endAngle=void 0,this.innerRadius=void 0,this.outerRadius=void 0,this.pixelMargin=0,this.fullCircles=0,n&&Object.assign(this,n)}inRange(n,e,i){let r=this.getProps(["x","y"],i),{angle:o,distance:a}=eT(r,{x:n,y:e}),{startAngle:s,endAngle:l,innerRadius:c,outerRadius:d,circumference:m}=this.getProps(["startAngle","endAngle","innerRadius","outerRadius","circumference"],i),f=(this.options.spacing+this.options.borderWidth)/2,b=st(m,l-s),v=Vh(o,s,l)&&s!==l,w=b>=Mi||v,x=Is(a,c+f,d+f);return w&&x}getCenterPoint(n){let{x:e,y:i,startAngle:r,endAngle:o,innerRadius:a,outerRadius:s}=this.getProps(["x","y","startAngle","endAngle","innerRadius","outerRadius"],n),{offset:l,spacing:c}=this.options,d=(r+o)/2,m=(a+s+c+l)/2;return{x:e+Math.cos(d)*m,y:i+Math.sin(d)*m}}tooltipPosition(n){return this.getCenterPoint(n)}draw(n){let{options:e,circumference:i}=this,r=(e.offset||0)/4,o=(e.spacing||0)/2,a=e.circular;if(this.pixelMargin=e.borderAlign==="inner"?.33:0,this.fullCircles=i>Mi?Math.floor(i/Mi):0,i===0||this.innerRadius<0||this.outerRadius<0)return;n.save();let s=(this.startAngle+this.endAngle)/2;n.translate(Math.cos(s)*r,Math.sin(s)*r);let l=1-Math.sin(Math.min(Ht,i||0)),c=r*l;n.fillStyle=e.backgroundColor,n.strokeStyle=e.borderColor,rae(n,this,c,o,a),oae(n,this,c,o,a),n.restore()}};function sH(t,n,e=n){t.lineCap=st(e.borderCapStyle,n.borderCapStyle),t.setLineDash(st(e.borderDash,n.borderDash)),t.lineDashOffset=st(e.borderDashOffset,n.borderDashOffset),t.lineJoin=st(e.borderJoinStyle,n.borderJoinStyle),t.lineWidth=st(e.borderWidth,n.borderWidth),t.strokeStyle=st(e.borderColor,n.borderColor)}function aae(t,n,e){t.lineTo(e.x,e.y)}function sae(t){return t.stepped?Nj:t.tension||t.cubicInterpolationMode==="monotone"?Lj:aae}function lH(t,n,e={}){let i=t.length,{start:r=0,end:o=i-1}=e,{start:a,end:s}=n,l=Math.max(r,a),c=Math.min(o,s),d=rs&&o>s;return{count:i,start:l,loop:n.loop,ilen:c(a+(c?s-Z:Z))%o,W=()=>{w!==x&&(t.lineTo(d,x),t.lineTo(d,w),t.lineTo(d,D))};for(l&&(b=r[P(0)],t.moveTo(b.x,b.y)),f=0;f<=s;++f){if(b=r[P(f)],b.skip)continue;let Z=b.x,K=b.y,re=Z|0;re===v?(Kx&&(x=K),d=(m*d+Z)/++m):(W(),t.lineTo(Z,K),v=re,m=0,w=x=K),D=K}W()}function WT(t){let n=t.options,e=n.borderDash&&n.borderDash.length;return!t._decimated&&!t._loop&&!n.tension&&n.cubicInterpolationMode!=="monotone"&&!n.stepped&&!e?cae:lae}function dae(t){return t.stepped?Gj:t.tension||t.cubicInterpolationMode==="monotone"?qj:Dc}function uae(t,n,e,i){let r=n._path;r||(r=n._path=new Path2D,n.path(r,e,i)&&r.closePath()),sH(t,n.options),t.stroke(r)}function mae(t,n,e,i){let{segments:r,options:o}=n,a=WT(n);for(let s of r)sH(t,o,s.style),t.beginPath(),a(t,n,s,{start:e,end:e+i-1})&&t.closePath(),t.stroke()}var hae=typeof Path2D=="function";function pae(t,n,e,i){hae&&!n.options.segment?uae(t,n,e,i):mae(t,n,e,i)}var mC=(()=>{class t extends ja{static id="line";static defaults={borderCapStyle:"butt",borderDash:[],borderDashOffset:0,borderJoinStyle:"miter",borderWidth:3,capBezierPoints:!0,cubicInterpolationMode:"default",fill:!1,spanGaps:!1,stepped:!1,tension:0};static defaultRoutes={backgroundColor:"backgroundColor",borderColor:"borderColor"};static descriptors={_scriptable:!0,_indexable:e=>e!=="borderDash"&&e!=="fill"};constructor(e){super(),this.animated=!0,this.options=void 0,this._chart=void 0,this._loop=void 0,this._fullLoop=void 0,this._path=void 0,this._points=void 0,this._segments=void 0,this._decimated=!1,this._pointsUpdated=!1,this._datasetIndex=void 0,e&&Object.assign(this,e)}updateControlPoints(e,i){let r=this.options;if((r.tension||r.cubicInterpolationMode==="monotone")&&!r.stepped&&!this._pointsUpdated){let o=r.spanGaps?this._loop:this._fullLoop;Uj(this._points,r,e,o,i),this._pointsUpdated=!0}}set points(e){this._points=e,delete this._segments,delete this._path,this._pointsUpdated=!1}get points(){return this._points}get segments(){return this._segments||(this._segments=Qj(this,this.options.segment))}first(){let e=this.segments,i=this.points;return e.length&&i[e[0].start]}last(){let e=this.segments,i=this.points,r=e.length;return r&&i[e[r-1].end]}interpolate(e,i){let r=this.options,o=e[i],a=this.points,s=xT(this,{property:i,start:o,end:o});if(!s.length)return;let l=[],c=dae(r),d,m;for(d=0,m=s.length;d{class t extends ja{static id="point";parsed;skip;stop;static defaults={borderWidth:1,hitRadius:1,hoverBorderWidth:1,hoverRadius:4,pointStyle:"circle",radius:3,rotation:0};static defaultRoutes={backgroundColor:"backgroundColor",borderColor:"borderColor"};constructor(e){super(),this.options=void 0,this.parsed=void 0,this.skip=void 0,this.stop=void 0,e&&Object.assign(this,e)}inRange(e,i,r){let o=this.options,{x:a,y:s}=this.getProps(["x","y"],r);return Math.pow(e-a,2)+Math.pow(i-s,2)t.replace("rgb(","rgba(").replace(")",", 0.5)"));function dH(t){return qT[t%qT.length]}function uH(t){return E4[t%E4.length]}function Cae(t,n){return t.borderColor=dH(n),t.backgroundColor=uH(n),++n}function wae(t,n){return t.backgroundColor=t.data.map(()=>dH(n++)),n}function Dae(t,n){return t.backgroundColor=t.data.map(()=>uH(n++)),n}function Eae(t){let n=0;return(e,i)=>{let r=t.getDatasetMeta(i).controller;r instanceof tI?n=wae(e,n):r instanceof X4?n=Dae(e,n):r&&(n=Cae(e,n))}}function M4(t){let n;for(n in t)if(t[n].borderColor||t[n].backgroundColor)return!0;return!1}function Mae(t){return t&&(t.borderColor||t.backgroundColor)}function kae(){return xi.borderColor!=="rgba(0,0,0,0.1)"||xi.backgroundColor!=="rgba(0,0,0,0.1)"}var Sae={id:"colors",defaults:{enabled:!0,forceOverride:!1},beforeLayout(t,n,e){if(!e.enabled)return;let{data:{datasets:i},options:r}=t.config,{elements:o}=r,a=M4(i)||Mae(r)||o&&M4(o)||kae();if(!e.forceOverride&&a)return;let s=Eae(t);i.forEach(s)}};function Tae(t,n,e,i,r){let o=r.samples||i;if(o>=e)return t.slice(n,n+e);let a=[],s=(e-2)/(o-2),l=0,c=n+e-1,d=n,m,f,b,v,w;for(a[l++]=t[d],m=0;mb&&(b=v,f=t[P],w=P);a[l++]=f,d=w}return a[l++]=t[c],a}function Iae(t,n,e,i){let r=0,o=0,a,s,l,c,d,m,f,b,v,w,x=[],D=n+e-1,P=t[n].x,Z=t[D].x-P;for(a=n;aw&&(w=c,f=a),r=(o*r+s.x)/++o;else{let re=a-1;if(!Et(m)&&!Et(f)){let Ee=Math.min(m,f),be=Math.max(m,f);Ee!==b&&Ee!==re&&x.push(De(M({},t[Ee]),{x:r})),be!==b&&be!==re&&x.push(De(M({},t[be]),{x:r}))}a>0&&re!==b&&x.push(t[re]),x.push(s),d=K,o=0,v=w=c,m=f=b=a}}return x}function mH(t){if(t._decimated){let n=t._data;delete t._decimated,delete t._data,Object.defineProperty(t,"data",{configurable:!0,enumerable:!0,writable:!0,value:n})}}function k4(t){t.data.datasets.forEach(n=>{mH(n)})}function Aae(t,n){let e=n.length,i=0,r,{iScale:o}=t,{min:a,max:s,minDefined:l,maxDefined:c}=o.getUserBounds();return l&&(i=Dn(ks(n,o.axis,a).lo,0,e-1)),c?r=Dn(ks(n,o.axis,s).hi+1,i,e)-i:r=e-i,{start:i,count:r}}var Oae={id:"decimation",defaults:{algorithm:"min-max",enabled:!1},beforeElementsUpdate:(t,n,e)=>{if(!e.enabled){k4(t);return}let i=t.width;t.data.datasets.forEach((r,o)=>{let{_data:a,indexAxis:s}=r,l=t.getDatasetMeta(o),c=a||r.data;if(Hh([s,t.options.indexAxis])==="y"||!l.controller.supportsDecimation)return;let d=t.scales[l.xAxisID];if(d.type!=="linear"&&d.type!=="time"||t.options.parsing)return;let{start:m,count:f}=Aae(l,c),b=e.threshold||4*i;if(f<=b){mH(r);return}Et(a)&&(r._data=c,delete r.data,Object.defineProperty(r,"data",{configurable:!0,enumerable:!0,get:function(){return this._decimated},set:function(w){this._data=w}}));let v;switch(e.algorithm){case"lttb":v=Tae(c,m,f,i,e);break;case"min-max":v=Iae(c,m,f,i);break;default:throw new Error(`Unsupported decimation algorithm '${e.algorithm}'`)}r._decimated=v})},destroy(t){k4(t)}};function Rae(t,n,e){let i=t.segments,r=t.points,o=n.points,a=[];for(let s of i){let{start:l,end:c}=s;c=hC(l,c,r);let d=YT(e,r[l],r[c],s.loop);if(!n.segments){a.push({source:s,target:d,start:r[l],end:r[c]});continue}let m=xT(n,d);for(let f of m){let b=YT(e,o[f.start],o[f.end],f.loop),v=yT(s,r,b);for(let w of v)a.push({source:w,target:f,start:{[e]:S4(d,b,"start",Math.max)},end:{[e]:S4(d,b,"end",Math.min)}})}}return a}function YT(t,n,e,i){if(i)return;let r=n[t],o=e[t];return t==="angle"&&(r=or(r),o=or(o)),{property:t,start:r,end:o}}function Pae(t,n){let{x:e=null,y:i=null}=t||{},r=n.points,o=[];return n.segments.forEach(({start:a,end:s})=>{s=hC(a,s,r);let l=r[a],c=r[s];i!==null?(o.push({x:l.x,y:i}),o.push({x:c.x,y:i})):e!==null&&(o.push({x:e,y:l.y}),o.push({x:e,y:c.y}))}),o}function hC(t,n,e){for(;n>t;n--){let i=e[n];if(!isNaN(i.x)&&!isNaN(i.y))break}return n}function S4(t,n,e,i){return t&&n?i(t[e],n[e]):t?t[e]:n?n[e]:0}function hH(t,n){let e=[],i=!1;return Ei(t)?(i=!0,e=t):e=Pae(t,n),e.length?new mC({points:e,options:{tension:0},_loop:i,_fullLoop:i}):null}function T4(t){return t&&t.fill!==!1}function Fae(t,n,e){let r=t[n].fill,o=[n],a;if(!e)return r;for(;r!==!1&&o.indexOf(r)===-1;){if(!Gi(r))return r;if(a=t[r],!a)return!1;if(a.visible)return r;o.push(r),r=a.fill}return!1}function Nae(t,n,e){let i=jae(t);if(St(i))return isNaN(i.value)?!1:i;let r=parseFloat(i);return Gi(r)&&Math.floor(r)===r?Lae(i[0],n,r,e):["origin","start","end","stack","shape"].indexOf(i)>=0&&i}function Lae(t,n,e,i){return(t==="-"||t==="+")&&(e=n+e),e===n||e<0||e>=i?!1:e}function Vae(t,n){let e=null;return t==="start"?e=n.bottom:t==="end"?e=n.top:St(t)?e=n.getPixelForValue(t.value):n.getBasePixel&&(e=n.getBasePixel()),e}function Bae(t,n,e){let i;return t==="start"?i=e:t==="end"?i=n.options.reverse?n.min:n.max:St(t)?i=t.value:i=n.getBaseValue(),i}function jae(t){let n=t.options,e=n.fill,i=st(e&&e.target,e);return i===void 0&&(i=!!n.backgroundColor),i===!1||i===null?!1:i===!0?"origin":i}function Hae(t){let{scale:n,index:e,line:i}=t,r=[],o=i.segments,a=i.points,s=zae(n,e);s.push(hH({x:null,y:n.bottom},i));for(let l=0;l=0;--a){let s=r[a].$filler;s&&(s.line.updateControlPoints(o,s.axis),i&&s.fill&&OT(t.ctx,s,o))}},beforeDatasetsDraw(t,n,e){if(e.drawTime!=="beforeDatasetsDraw")return;let i=t.getSortedVisibleDatasetMetas();for(let r=i.length-1;r>=0;--r){let o=i[r].$filler;T4(o)&&OT(t.ctx,o,t.chartArea)}},beforeDatasetDraw(t,n,e){let i=n.meta.$filler;!T4(i)||e.drawTime!=="beforeDatasetDraw"||OT(t.ctx,i,t.chartArea)},defaults:{propagate:!0,drawTime:"beforeDatasetDraw"}},R4=(t,n)=>{let{boxHeight:e=n,boxWidth:i=n}=t;return t.usePointStyle&&(e=Math.min(e,n),i=t.pointStyleWidth||Math.min(i,n)),{boxWidth:i,boxHeight:e,itemHeight:Math.max(n,e)}},Jae=(t,n)=>t!==null&&n!==null&&t.datasetIndex===n.datasetIndex&&t.index===n.index,dC=class extends ja{constructor(n){super(),this._added=!1,this.legendHitBoxes=[],this._hoveredItem=null,this.doughnutMode=!1,this.chart=n.chart,this.options=n.options,this.ctx=n.ctx,this.legendItems=void 0,this.columnSizes=void 0,this.lineWidths=void 0,this.maxHeight=void 0,this.maxWidth=void 0,this.top=void 0,this.bottom=void 0,this.left=void 0,this.right=void 0,this.height=void 0,this.width=void 0,this._margins=void 0,this.position=void 0,this.weight=void 0,this.fullSize=void 0}update(n,e,i){this.maxWidth=n,this.maxHeight=e,this._margins=i,this.setDimensions(),this.buildLabels(),this.fit()}setDimensions(){this.isHorizontal()?(this.width=this.maxWidth,this.left=this._margins.left,this.right=this.width):(this.height=this.maxHeight,this.top=this._margins.top,this.bottom=this.height)}buildLabels(){let n=this.options.labels||{},e=yi(n.generateLabels,[this.chart],this)||[];n.filter&&(e=e.filter(i=>n.filter(i,this.chart.data))),n.sort&&(e=e.sort((i,r)=>n.sort(i,r,this.chart.data))),this.options.reverse&&e.reverse(),this.legendItems=e}fit(){let{options:n,ctx:e}=this;if(!n.display){this.width=this.height=0;return}let i=n.labels,r=pn(i.font),o=r.size,a=this._computeTitleHeight(),{boxWidth:s,itemHeight:l}=R4(i,o),c,d;e.font=r.string,this.isHorizontal()?(c=this.maxWidth,d=this._fitRows(a,o,s,l)+10):(d=this.maxHeight,c=this._fitCols(a,r,s,l)+10),this.width=Math.min(c,n.maxWidth||this.maxWidth),this.height=Math.min(d,n.maxHeight||this.maxHeight)}_fitRows(n,e,i,r){let{ctx:o,maxWidth:a,options:{labels:{padding:s}}}=this,l=this.legendHitBoxes=[],c=this.lineWidths=[0],d=r+s,m=n;o.textAlign="left",o.textBaseline="middle";let f=-1,b=-d;return this.legendItems.forEach((v,w)=>{let x=i+e/2+o.measureText(v.text).width;(w===0||c[c.length-1]+x+2*s>a)&&(m+=d,c[c.length-(w>0?0:1)]=0,b+=d,f++),l[w]={left:0,top:b,row:f,width:x,height:r},c[c.length-1]+=x+s}),m}_fitCols(n,e,i,r){let{ctx:o,maxHeight:a,options:{labels:{padding:s}}}=this,l=this.legendHitBoxes=[],c=this.columnSizes=[],d=a-n,m=s,f=0,b=0,v=0,w=0;return this.legendItems.forEach((x,D)=>{let{itemWidth:P,itemHeight:W}=ese(i,e,o,x,r);D>0&&b+W+2*s>d&&(m+=f+s,c.push({width:f,height:b}),v+=f+s,w++,f=b=0),l[D]={left:v,top:b,col:w,width:P,height:W},f=Math.max(f,P),b+=W+s}),m+=f,c.push({width:f,height:b}),m}adjustHitBoxes(){if(!this.options.display)return;let n=this._computeTitleHeight(),{legendHitBoxes:e,options:{align:i,labels:{padding:r},rtl:o}}=this,a=Cu(o,this.left,this.width);if(this.isHorizontal()){let s=0,l=ar(i,this.left+r,this.right-this.lineWidths[s]);for(let c of e)s!==c.row&&(s=c.row,l=ar(i,this.left+r,this.right-this.lineWidths[s])),c.top+=this.top+n+r,c.left=a.leftForLtr(a.x(l),c.width),l+=c.width+r}else{let s=0,l=ar(i,this.top+n+r,this.bottom-this.columnSizes[s].height);for(let c of e)c.col!==s&&(s=c.col,l=ar(i,this.top+n+r,this.bottom-this.columnSizes[s].height)),c.top=l,c.left+=this.left+r,c.left=a.leftForLtr(a.x(c.left),c.width),l+=c.height+r}}isHorizontal(){return this.options.position==="top"||this.options.position==="bottom"}draw(){if(this.options.display){let n=this.ctx;Hg(n,this),this._draw(),zg(n)}}_draw(){let{options:n,columnSizes:e,lineWidths:i,ctx:r}=this,{align:o,labels:a}=n,s=xi.color,l=Cu(n.rtl,this.left,this.width),c=pn(a.font),{padding:d}=a,m=c.size,f=m/2,b;this.drawTitle(),r.textAlign=l.textAlign("left"),r.textBaseline="middle",r.lineWidth=.5,r.font=c.string;let{boxWidth:v,boxHeight:w,itemHeight:x}=R4(a,m),D=function(re,Ee,be){if(isNaN(v)||v<=0||isNaN(w)||w<0)return;r.save();let Ve=st(be.lineWidth,1);if(r.fillStyle=st(be.fillStyle,s),r.lineCap=st(be.lineCap,"butt"),r.lineDashOffset=st(be.lineDashOffset,0),r.lineJoin=st(be.lineJoin,"miter"),r.lineWidth=Ve,r.strokeStyle=st(be.strokeStyle,s),r.setLineDash(st(be.lineDash,[])),a.usePointStyle){let yt={radius:w*Math.SQRT2/2,pointStyle:be.pointStyle,rotation:be.rotation,borderWidth:Ve},bt=l.xPlus(re,v/2),It=Ee+f;dT(r,yt,bt,It,a.pointStyleWidth&&v)}else{let yt=Ee+Math.max((m-w)/2,0),bt=l.leftForLtr(re,v),It=Tc(be.borderRadius);r.beginPath(),Object.values(It).some($n=>$n!==0)?jh(r,{x:bt,y:yt,w:v,h:w,radius:It}):r.rect(bt,yt,v,w),r.fill(),Ve!==0&&r.stroke()}r.restore()},P=function(re,Ee,be){Sc(r,be.text,re,Ee+x/2,c,{strikethrough:be.hidden,textAlign:l.textAlign(be.textAlign)})},W=this.isHorizontal(),Z=this._computeTitleHeight();W?b={x:ar(o,this.left+d,this.right-i[0]),y:this.top+d+Z,line:0}:b={x:this.left+d,y:ar(o,this.top+Z+d,this.bottom-e[0].height),line:0},bT(this.ctx,n.textDirection);let K=x+d;this.legendItems.forEach((re,Ee)=>{r.strokeStyle=re.fontColor,r.fillStyle=re.fontColor;let be=r.measureText(re.text).width,Ve=l.textAlign(re.textAlign||(re.textAlign=a.textAlign)),yt=v+f+be,bt=b.x,It=b.y;l.setWidth(this.width),W?Ee>0&&bt+yt+d>this.right&&(It=b.y+=K,b.line++,bt=b.x=ar(o,this.left+d,this.right-i[b.line])):Ee>0&&It+K>this.bottom&&(bt=b.x=bt+e[b.line].width+d,b.line++,It=b.y=ar(o,this.top+Z+d,this.bottom-e[b.line].height));let $n=l.x(bt);if(D($n,It,re),bt=Rj(Ve,bt+v+f,W?bt+yt:this.right,n.rtl),P(l.x(bt),It,re),W)b.x+=yt+d;else if(typeof re.text!="string"){let lo=c.lineHeight;b.y+=pH(re,lo)+d}else b.y+=K}),vT(this.ctx,n.textDirection)}drawTitle(){let n=this.options,e=n.title,i=pn(e.font),r=sr(e.padding);if(!e.display)return;let o=Cu(n.rtl,this.left,this.width),a=this.ctx,s=e.position,l=i.size/2,c=r.top+l,d,m=this.left,f=this.width;if(this.isHorizontal())f=Math.max(...this.lineWidths),d=this.top+c,m=ar(n.align,m,this.right-f);else{let v=this.columnSizes.reduce((w,x)=>Math.max(w,x.height),0);d=c+ar(n.align,this.top,this.bottom-v-n.labels.padding-this._computeTitleHeight())}let b=ar(s,m,m+f);a.textAlign=o.textAlign(Ux(s)),a.textBaseline="middle",a.strokeStyle=e.color,a.fillStyle=e.color,a.font=i.string,Sc(a,e.text,b,d,i)}_computeTitleHeight(){let n=this.options.title,e=pn(n.font),i=sr(n.padding);return n.display?e.lineHeight+i.height:0}_getLegendItemAt(n,e){let i,r,o;if(Is(n,this.left,this.right)&&Is(e,this.top,this.bottom)){for(o=this.legendHitBoxes,i=0;io.length>a.length?o:a)),n+e.size/2+i.measureText(r).width}function ise(t,n,e){let i=t;return typeof n.text!="string"&&(i=pH(n,e)),i}function pH(t,n){let e=t.text?t.text.length:0;return n*e}function nse(t,n){return!!((t==="mousemove"||t==="mouseout")&&(n.onHover||n.onLeave)||n.onClick&&(t==="click"||t==="mouseup"))}var rse={id:"legend",_element:dC,start(t,n,e){let i=t.legend=new dC({ctx:t.ctx,options:e,chart:t});Dr.configure(t,i,e),Dr.addBox(t,i)},stop(t){Dr.removeBox(t,t.legend),delete t.legend},beforeUpdate(t,n,e){let i=t.legend;Dr.configure(t,i,e),i.options=e},afterUpdate(t){let n=t.legend;n.buildLabels(),n.adjustHitBoxes()},afterEvent(t,n){n.replay||t.legend.handleEvent(n.event)},defaults:{display:!0,position:"top",align:"center",fullSize:!0,reverse:!1,weight:1e3,onClick(t,n,e){let i=n.datasetIndex,r=e.chart;r.isDatasetVisible(i)?(r.hide(i),n.hidden=!0):(r.show(i),n.hidden=!1)},onHover:null,onLeave:null,labels:{color:t=>t.chart.options.color,boxWidth:40,padding:10,generateLabels(t){let n=t.data.datasets,{labels:{usePointStyle:e,pointStyle:i,textAlign:r,color:o,useBorderRadius:a,borderRadius:s}}=t.legend.options;return t._getSortedDatasetMetas().map(l=>{let c=l.controller.getStyle(e?0:void 0),d=sr(c.borderWidth);return{text:n[l.index].label,fillStyle:c.backgroundColor,fontColor:o,hidden:!l.visible,lineCap:c.borderCapStyle,lineDash:c.borderDash,lineDashOffset:c.borderDashOffset,lineJoin:c.borderJoinStyle,lineWidth:(d.width+d.height)/4,strokeStyle:c.borderColor,pointStyle:i||c.pointStyle,rotation:c.rotation,textAlign:r||c.textAlign,borderRadius:a&&(s||c.borderRadius),datasetIndex:l.index}},this)}},title:{color:t=>t.chart.options.color,display:!1,position:"center",text:""}},descriptors:{_scriptable:t=>!t.startsWith("on"),labels:{_scriptable:t=>!["generateLabels","filter","sort"].includes(t)}}},Zg=class extends ja{constructor(n){super(),this.chart=n.chart,this.options=n.options,this.ctx=n.ctx,this._padding=void 0,this.top=void 0,this.bottom=void 0,this.left=void 0,this.right=void 0,this.width=void 0,this.height=void 0,this.position=void 0,this.weight=void 0,this.fullSize=void 0}update(n,e){let i=this.options;if(this.left=0,this.top=0,!i.display){this.width=this.height=this.right=this.bottom=0;return}this.width=this.right=n,this.height=this.bottom=e;let r=Ei(i.text)?i.text.length:1;this._padding=sr(i.padding);let o=r*pn(i.font).lineHeight+this._padding.height;this.isHorizontal()?this.height=o:this.width=o}isHorizontal(){let n=this.options.position;return n==="top"||n==="bottom"}_drawArgs(n){let{top:e,left:i,bottom:r,right:o,options:a}=this,s=a.align,l=0,c,d,m;return this.isHorizontal()?(d=ar(s,i,o),m=e+n,c=o-i):(a.position==="left"?(d=i+n,m=ar(s,r,e),l=Ht*-.5):(d=o-n,m=ar(s,e,r),l=Ht*.5),c=r-e),{titleX:d,titleY:m,maxWidth:c,rotation:l}}draw(){let n=this.ctx,e=this.options;if(!e.display)return;let i=pn(e.font),o=i.lineHeight/2+this._padding.top,{titleX:a,titleY:s,maxWidth:l,rotation:c}=this._drawArgs(o);Sc(n,e.text,0,0,i,{color:e.color,maxWidth:l,rotation:c,textAlign:Ux(e.align),textBaseline:"middle",translation:[a,s]})}};function ose(t,n){let e=new Zg({ctx:t.ctx,options:n,chart:t});Dr.configure(t,e,n),Dr.addBox(t,e),t.titleBlock=e}var ase={id:"title",_element:Zg,start(t,n,e){ose(t,e)},stop(t){let n=t.titleBlock;Dr.removeBox(t,n),delete t.titleBlock},beforeUpdate(t,n,e){let i=t.titleBlock;Dr.configure(t,i,e),i.options=e},defaults:{align:"center",display:!1,font:{weight:"bold"},fullSize:!0,padding:10,position:"top",text:"",weight:2e3},defaultRoutes:{color:"color"},descriptors:{_scriptable:!0,_indexable:!1}},eC=new WeakMap,sse={id:"subtitle",start(t,n,e){let i=new Zg({ctx:t.ctx,options:e,chart:t});Dr.configure(t,i,e),Dr.addBox(t,i),eC.set(t,i)},stop(t){Dr.removeBox(t,eC.get(t)),eC.delete(t)},beforeUpdate(t,n,e){let i=eC.get(t);Dr.configure(t,i,e),i.options=e},defaults:{align:"center",display:!1,font:{weight:"normal"},fullSize:!0,padding:0,position:"top",text:"",weight:1500},defaultRoutes:{color:"color"},descriptors:{_scriptable:!0,_indexable:!1}},Qg={average(t){if(!t.length)return!1;let n,e,i=new Set,r=0,o=0;for(n=0,e=t.length;ns+l)/i.size,y:r/o}},nearest(t,n){if(!t.length)return!1;let e=n.x,i=n.y,r=Number.POSITIVE_INFINITY,o,a,s;for(o=0,a=t.length;o0?17:-1),f(),B(o.toast.dismissible?18:-1),f(2),B(o.toast.visible?20:-1))},dependencies:[Sx,aj,sj,one],encapsulation:2,changeDetection:0});let t=n;return t})(),rj=(()=>{let n=class n{constructor(){this.toasts=[],this.toastRefs=[],this.isShowingAllToasts=!1,this._onClosed=new z,this._onGroupToggle=new z,this._onGroupRefAttached=new z,this.onClosed$=this._onClosed.asObservable(),this.onGroupToggle$=this._onGroupToggle.asObservable(),this.onGroupRefAttached$=this._onGroupRefAttached.asObservable(),this.cdr=u(ye),this.toastService=u(Lg)}trackById(i,r){return r.id}getVisibleToasts(i){return this.unGroupedToasts.filter(r=>r.visible&&r.position===i)}get unGroupedToasts(){return this.toasts.filter(i=>i.group?.parent===void 0||i.group?.children===void 0||i.group?.children.length===0)}calculateOffset(i,r){let o=this.getVisibleToasts(r),a=o.findIndex(l=>l.id===i);return a!==-1?o.slice(...this.defaultConfig.reverseOrder?[a+1]:[0,a]).reduce((l,c,d)=>{let p=o.length-1-d;return this.defaultConfig.visibleToasts!==0&&dthis.defaultConfig.visibleToasts&&this.toasts.slice(0,this.toasts.length-this.defaultConfig.visibleToasts).forEach(s=>{s.autoClose&&this.closeToast(s.id)}),this.cdr.markForCheck(),this.attachGroupRefs(o,i,r),{dispose:()=>{this.closeToast(o.id)},updateMessage:a=>{o.message=a,this.updateToasts(o),this.cdr.markForCheck()},updateToast:a=>{this.updateToasts(o,a),this.cdr.markForCheck()},afterClosed:this.getAfterClosed(o),afterGroupToggled:this.getAfterGroupToggled(o),afterGroupRefsAttached:this.getAfterGroupRefsAttached(o).pipe(se(a=>a.groupRefs))}}attachGroupRefs(i,r,o){return gn(this,null,function*(){let a=[];if(i.group){if(i.group.children){a=yield this.createGroupRefs(i,r);let s=this.toastRefs.findIndex(l=>l.getToast().id===i.id);s>-1&&(this.toastRefs[s].groupRefs=a,this.cdr.markForCheck(),this._onGroupRefAttached.next({groupRefs:a,id:i.id}))}else if(i.group.parent&&!o){let l=i.group.parent.getToast(),c=this.toastRefs.findIndex(p=>p.getToast().id===l.id),d=this.toasts.findIndex(p=>p.id===l.id);if(c>-1&&d>-1){this.toastRefs[c].groupRefs.push(r);let p=this.toasts[c].group??{},_=this.toasts[c].group?.children??[];_.push({options:Ee(k({},i),{type:i.type,message:i.message})}),p.children=_,this.toasts[c].group=k({},p),this.cdr.markForCheck(),this._onGroupRefAttached.next({groupRefs:a,id:l.id})}}}})}createGroupRefs(i,r){return new Promise(a=>{let l=i.group.children.map(c=>new Promise(d=>{c.options.group={parent:r},setTimeout(()=>{try{let p=this.toastService.show(c.options.message,c.options,!0);d(p)}catch(p){console.error("Error creating toast",p),d(null)}})}));Promise.all(l).then(c=>a(c))})}closeToast(i){if(i){let r=this.hotToastComponentList.find(o=>o.toast.id===i);r&&(r.close(),this.cdr.markForCheck())}else this.hotToastComponentList.forEach(r=>r.close()),this.cdr.markForCheck()}beforeClosed(i){i.visible=!1,this.cdr.markForCheck()}afterClosed(i){this.toasts.findIndex(o=>o.id===i.id)>-1&&(this._onClosed.next(i),this.toasts=this.toasts.filter(o=>o.id!==i.id),this.toastRefs=this.toastRefs.filter(o=>o.getToast().id!==i.id),this.cdr.markForCheck())}toggleGroup(i){let r=this.toastRefs.findIndex(o=>o.getToast().id===i.id);r>-1&&(this._onGroupToggle.next(i),this.toastRefs[r].groupExpanded=i.event==="expand",this.cdr.markForCheck())}hasToast(i){return this.toasts.findIndex(r=>r.id===i)>-1}showAllToasts(i){this.isShowingAllToasts=i}getAfterClosed(i){return this.onClosed$.pipe(ce(r=>r.id===i.id))}getAfterGroupToggled(i){return this.onGroupToggle$.pipe(ce(r=>r.id===i.id))}getAfterGroupRefsAttached(i){return this.onGroupRefAttached$.pipe(ce(r=>r.id===i.id))}updateToasts(i,r){this.toasts=this.toasts.map(o=>k(k({},o),o.id===i.id&&k(k({},i),r))),this.cdr.markForCheck()}};n.\u0275fac=function(r){return new(r||n)},n.\u0275cmp=E({type:n,selectors:[["hot-toast-container"]],viewQuery:function(r,o){if(r&1&&ie(nj,5),r&2){let a;j(a=H())&&(o.hotToastComponentList=a)}},inputs:{defaultConfig:"defaultConfig"},decls:11,vars:0,consts:[[1,"hot-toast-container-overlay"],[1,"hot-toast-container-wrapper"],[3,"showAllToasts","height","beforeClosed","afterClosed","toggleGroup","toast","offset","toastRef","toastsAfter","defaultConfig","isShowingAllToasts"]],template:function(r,o){r&1&&(m(0,"div",0),g(1,` + `),m(2,"div",1),g(3,` + `),m(4,"div"),g(5,` + `),xt(6,Zie,3,1,null,null,o.trackById,!0),h(),g(8,` + `),h(),g(9,` +`),h(),g(10,` +`)),r&2&&(f(6),Ct(o.toasts))},dependencies:[nj],styles:[".hot-toast-container-overlay[_ngcontent-%COMP%]{position:fixed;z-index:var(--hot-toast-container-overlay-z-index, 9999);inset:0;pointer-events:none}.hot-toast-container-wrapper[_ngcontent-%COMP%]{position:relative;height:100%}"],changeDetection:0});let t=n;return t})(),Ng=class{constructor(){this.reverseOrder=!1,this.visibleToasts=5,this.stacking="vertical",this.ariaLive="polite",this.role="status",this.position="top-center",this.autoClose=!0,this.theme="toast",this.attributes={},this.info={content:""},this.success={content:""},this.error={content:""},this.loading={content:""},this.blank={content:""},this.warning={content:""}}},ane=t=>typeof t=="function",sne=t=>typeof t=="function"&&!!t.\u0275cmp,lne=(t,n)=>sne(t)?t:ane(t)?t(n):t,Lk=class{constructor(){this.storage="local",this.key="ngxpert/hototast-${id}",this.count=1,this.enabled=!1}},cne=new O("HOT_TOAST_CONTAINER_TOKEN"),Lg=(()=>{let n=class n{constructor(){this._isInitialized=!1,this._defaultGlobalConfig=new Ng,this._defaultPersistConfig=new Lk,this._viewService=u(Nk),this._platformId=u(Zs),this._globalConfig=u(Ng,{optional:!0}),this._container=u(cne,{optional:!0}),this._globalConfig&&(this._defaultGlobalConfig=k(k({},this._defaultGlobalConfig),this._globalConfig))}get defaultConfig(){return this._defaultGlobalConfig}set defaultConfig(i){this._defaultGlobalConfig=k(k({},this._defaultGlobalConfig),i),this._componentRef&&this._componentRef.setInput("defaultConfig",this._defaultGlobalConfig)}show(i,r,o){return this.createToast({message:i||this._defaultGlobalConfig.blank.content,type:r?.type??"blank",options:k(k({},this._defaultGlobalConfig),r),skipAttachToParent:o})}error(i,r){return this.createToast({message:i||this._defaultGlobalConfig.error.content,type:"error",options:k(k(k({},this._defaultGlobalConfig),this._defaultGlobalConfig?.error),r)})}success(i,r){return this.createToast({message:i||this._defaultGlobalConfig.success.content,type:"success",options:k(k(k({},this._defaultGlobalConfig),this._defaultGlobalConfig?.success),r)})}loading(i,r){return this.createToast({message:i||this._defaultGlobalConfig.loading.content,type:"loading",options:k(k(k({},this._defaultGlobalConfig),this._defaultGlobalConfig?.loading),r)})}warning(i,r){return this.createToast({message:i||this._defaultGlobalConfig.warning.content,type:"warning",options:k(k(k({},this._defaultGlobalConfig),this._defaultGlobalConfig?.warning),r)})}info(i,r){return this.createToast({message:i||this._defaultGlobalConfig.info.content,type:"info",options:k(k(k({},this._defaultGlobalConfig),this._defaultGlobalConfig?.info),r)})}observe(i){return r=>{let o,a=0,s=i.loading??this._defaultGlobalConfig.loading?.content,l=i.success??this._defaultGlobalConfig.success?.content,c=i.error??this._defaultGlobalConfig.error?.content;return In(()=>(s&&(o=this.createLoadingToast(s),a=Date.now()),r.pipe(He(k(k({},l&&{next:d=>{o=this.createOrUpdateToast(i,d,o,"success",a===0?a:Date.now()-a)}}),c&&{error:d=>{o=this.createOrUpdateToast(i,d,o,"error",a===0?a:Date.now()-a)}})))))}}close(i){this._componentRef&&this._componentRef.ref.instance.closeToast(i)}init(){if(!Y2(this._platformId))if(this._container){let i=document.querySelector(this._container);i||(console.warn(`No container element found for selector: ${this._container}, using document.body instead as toast container.`),i=document.body),this._componentRef=this._viewService.createComponent(rj).setInput("defaultConfig",this._defaultGlobalConfig).appendTo(i)}else this._componentRef=this._viewService.createComponent(rj).setInput("defaultConfig",this._defaultGlobalConfig).appendTo(document.body)}createOrUpdateToast(i,r,o,a,s){try{let l=null,c={};if({content:l,options:c}=this.getContentAndOptions(a,i[a]||(this._defaultGlobalConfig[a]?this._defaultGlobalConfig[a].content:"")),l=lne(l,r),o){c.data&&(o.data=c.data),o.updateMessage(l);let d=k(k({type:a,duration:s+ij[a]},c),c.duration&&{duration:s+c.duration});o.updateToast(d)}else this.createToast({message:l,type:a,options:c});return o}catch(l){console.error(l)}}createToast({message:i,type:r,options:o,observableMessages:a,skipAttachToParent:s}){this._isInitialized||(this._isInitialized=!0,this.init());let l=o?.id??`toast-${n.nextId++}`;if(!this.isDuplicate(l)&&(!o.persist?.enabled||o.persist?.enabled&&this.handleStorageValue(l,o))){let c=k({ariaLive:o?.ariaLive??"polite",createdAt:Date.now(),duration:o?.duration??ij[r],id:l,message:i,role:o?.role??"status",type:r,visible:!0,observableMessages:a??void 0},o);return new Fg(c).appendTo(this._componentRef.ref.instance,s)}}isDuplicate(i){return this._componentRef.ref.instance.hasToast(i)}handleStorageValue(i,r){let o=1,a=k(k({},this._defaultPersistConfig),r.persist),s=a.storage==="local"?localStorage:sessionStorage,l=a.key.replace(/\${id}/g,i),c=s.getItem(l);return c?(c=parseInt(c,10),c>0?o=c-1:o=c):o=a.count,s.setItem(l,o.toString()),o}getContentAndOptions(i,r){var s;let o,a=k(k({},this._defaultGlobalConfig),this._defaultGlobalConfig[i]);if(typeof r=="string"||Pg(r)||xu(r))o=r;else{let l;s=r,{content:o}=s,l=od(s,["content"]),a=k(k({},a),l)}return{content:o,options:a}}createLoadingToast(i){let r=null,o={};return{content:r,options:o}=this.getContentAndOptions("loading",i),this.loading(r,o)}};n.nextId=0,n.\u0275fac=function(r){return new(r||n)},n.\u0275prov=R({token:n,factory:n.\u0275fac,providedIn:"root"});let t=n;return t})();function lj(t){return qr([{provide:Ng,useValue:t}])}var Ax={REMOVE:"remove",SHOW:"show"},dj=(()=>{let n=class n{constructor(){this.strategiesSource=new it({}),this.strategies$=this.strategiesSource.asObservable()}};n.\u0275fac=function(r){return new(r||n)},n.\u0275prov=R({token:n,factory:n.\u0275fac});let t=n;return t})(),jk=new O("USE_CONFIGURATION_STORE"),Hk=(()=>{let n=class n{constructor(i=!1,r){this.isolate=i,this.configurationStore=r,this.strategiesSource=this.isolate?new it({}):this.configurationStore.strategiesSource,this.strategies$=this.strategiesSource.asObservable(),this.onAuthorisedDefaultStrategy=this.isolate?void 0:this.configurationStore.onAuthorisedDefaultStrategy,this.onUnAuthorisedDefaultStrategy=this.isolate?void 0:this.configurationStore.onUnAuthorisedDefaultStrategy}setDefaultOnAuthorizedStrategy(i){this.isolate?this.onAuthorisedDefaultStrategy=this.getDefinedStrategy(i):(this.configurationStore.onAuthorisedDefaultStrategy=this.getDefinedStrategy(i),this.onAuthorisedDefaultStrategy=this.configurationStore.onAuthorisedDefaultStrategy)}setDefaultOnUnauthorizedStrategy(i){this.isolate?this.onUnAuthorisedDefaultStrategy=this.getDefinedStrategy(i):(this.configurationStore.onUnAuthorisedDefaultStrategy=this.getDefinedStrategy(i),this.onUnAuthorisedDefaultStrategy=this.configurationStore.onUnAuthorisedDefaultStrategy)}addPermissionStrategy(i,r){this.strategiesSource.value[i]=r}getStrategy(i){return this.strategiesSource.value[i]}getAllStrategies(){return this.strategiesSource.value}getDefinedStrategy(i){if(this.strategiesSource.value[i]||this.isPredefinedStrategy(i))return i;throw new Error(`No ' ${i} ' strategy is found please define one`)}isPredefinedStrategy(i){return i===Ax.SHOW||i===Ax.REMOVE}};n.\u0275fac=function(r){return new(r||n)(fe(jk),fe(dj))},n.\u0275prov=R({token:n,factory:n.\u0275fac});let t=n;return t})();function ao(t){return typeof t=="function"}function Bk(t){if(Object.prototype.toString.call(t)!=="[object Object]")return!1;{let n=Object.getPrototypeOf(t);return n===null||n===Object.prototype}}function uj(t){return!!t&&typeof t=="string"}function Ox(t){return typeof t=="boolean"}function dne(t){return Object.prototype.toString.call(t)==="[object Promise]"}function Ix(t){return Array.isArray(t)?t.length>0:!!t}function Rx(t){return uj(t)?[t]:t}var mj=(()=>{let n=class n{constructor(){this.permissionsSource=new it({}),this.permissions$=this.permissionsSource.asObservable()}};n.\u0275fac=function(r){return new(r||n)},n.\u0275prov=R({token:n,factory:n.\u0275fac});let t=n;return t})(),zk=new O("USE_PERMISSIONS_STORE"),Cu=(()=>{let n=class n{constructor(i=!1,r){this.isolate=i,this.permissionsStore=r,this.permissionsSource=this.isolate?new it({}):this.permissionsStore.permissionsSource,this.permissions$=this.permissionsSource.asObservable()}flushPermissions(){this.permissionsSource.next({})}hasPermission(i){return!i||Array.isArray(i)&&i.length===0?Promise.resolve(!0):(i=Rx(i),this.hasArrayPermission(i))}loadPermissions(i,r){let o=i.reduce((a,s)=>this.reducePermission(a,s,r),{});this.permissionsSource.next(o)}addPermission(i,r){if(Array.isArray(i)){let o=i.reduce((a,s)=>this.reducePermission(a,s,r),this.permissionsSource.value);this.permissionsSource.next(o)}else{let o=this.reducePermission(this.permissionsSource.value,i,r);this.permissionsSource.next(o)}}removePermission(i){let r=k({},this.permissionsSource.value);delete r[i],this.permissionsSource.next(r)}getPermission(i){return this.permissionsSource.value[i]}getPermissions(){return this.permissionsSource.value}reducePermission(i,r,o){return o&&ao(o)?Ee(k({},i),{[r]:{name:r,validationFunction:o}}):Ee(k({},i),{[r]:{name:r}})}hasArrayPermission(i){let r=i.map(o=>{if(this.hasPermissionValidationFunction(o)){let a=this.permissionsSource.value[o].validationFunction,s=k({},this.permissionsSource.value);return Q(null).pipe(se(()=>a(o,s)),je(l=>Ox(l)?Q(l):l),ii(()=>Q(!1)))}return Q(!!this.permissionsSource.value[o])});return Ft(r).pipe(_o(),bn(o=>o!==!1,!1),se(o=>o!==!1)).toPromise().then(o=>o)}hasPermissionValidationFunction(i){return!!this.permissionsSource.value[i]&&!!this.permissionsSource.value[i].validationFunction&&ao(this.permissionsSource.value[i].validationFunction)}};n.\u0275fac=function(r){return new(r||n)(fe(zk),fe(mj))},n.\u0275prov=R({token:n,factory:n.\u0275fac});let t=n;return t})(),Px=class{constructor(){this.rolesSource=new it({}),this.roles$=this.rolesSource.asObservable()}},Uk=new O("USE_ROLES_STORE"),Fh=(()=>{let n=class n{constructor(i=!1,r,o){this.isolate=i,this.rolesStore=r,this.permissionsService=o,this.rolesSource=this.isolate?new it({}):this.rolesStore.rolesSource,this.roles$=this.rolesSource.asObservable()}addRole(i,r){let o=Ee(k({},this.rolesSource.value),{[i]:{name:i,validationFunction:r}});this.rolesSource.next(o)}addRoleWithPermissions(i,r){this.permissionsService.addPermission(r),this.addRole(i,r)}addRoles(i){Object.keys(i).forEach((r,o)=>{this.addRole(r,i[r])})}addRolesWithPermissions(i){Object.keys(i).forEach((r,o)=>{this.addRoleWithPermissions(r,i[r])})}flushRoles(){this.rolesSource.next({})}flushRolesAndPermissions(){this.flushRoles(),this.permissionsService.flushPermissions()}removeRole(i){let r=k({},this.rolesSource.value);delete r[i],this.rolesSource.next(r)}getRoles(){return this.rolesSource.value}getRole(i){return this.rolesSource.value[i]}hasOnlyRoles(i){return!i||Array.isArray(i)&&i.length===0?Promise.resolve(!0):(i=Rx(i),Promise.all([this.hasRoleKey(i),this.hasRolePermission(this.rolesSource.value,i)]).then(([o,a])=>o||a))}hasRoleKey(i){let r=i.map(o=>{if(!!this.rolesSource.value[o]&&!!this.rolesSource.value[o].validationFunction&&ao(this.rolesSource.value[o].validationFunction)&&!dne(this.rolesSource.value[o].validationFunction)){let s=this.rolesSource.value[o].validationFunction,l=k({},this.rolesSource.value);return Q(null).pipe(se(()=>s(o,l)),je(c=>Ox(c)?Q(c):c),ii(()=>Q(!1)))}return Q(!1)});return Ft(r).pipe(_o(),bn(o=>o!==!1,!1),se(o=>o!==!1)).toPromise().then(o=>o)}hasRolePermission(i,r){return Ft(r).pipe(It(o=>i[o]&&Array.isArray(i[o].validationFunction)?Ft(i[o].validationFunction).pipe(It(a=>this.permissionsService.hasPermission(a)),Jw(a=>a===!0)):Q(!1)),bn(o=>o===!0,!1)).toPromise()}};n.\u0275fac=function(r){return new(r||n)(fe(Uk),fe(Px),fe(Cu))},n.\u0275prov=R({token:n,factory:n.\u0275fac});let t=n;return t})(),Nh=(()=>{let n=class n{constructor(){this.permissionsAuthorized=new U,this.permissionsUnauthorized=new U,this.firstMergeUnusedRun=1,this.permissionsService=u(Cu),this.configurationService=u(Hk),this.rolesService=u(Fh),this.viewContainer=u(ot),this.changeDetector=u(ye),this.templateRef=u(te)}ngOnInit(){this.viewContainer.clear(),this.initPermissionSubscription=this.validateExceptOnlyPermissions()}ngOnChanges(i){let r=i.ngxPermissionsOnly,o=i.ngxPermissionsExcept;if(r||o){if(r&&r.firstChange||o&&o.firstChange)return;Je(this.permissionsService.permissions$,this.rolesService.roles$).pipe(Qa(this.firstMergeUnusedRun),ct(1)).subscribe(()=>{if(Ix(this.ngxPermissionsExcept)){this.validateExceptAndOnlyPermissions();return}if(Ix(this.ngxPermissionsOnly)){this.validateOnlyPermissions();return}this.handleAuthorisedPermission(this.getAuthorisedTemplates())})}}ngOnDestroy(){this.initPermissionSubscription&&this.initPermissionSubscription.unsubscribe()}validateExceptOnlyPermissions(){return Je(this.permissionsService.permissions$,this.rolesService.roles$).pipe(Qa(this.firstMergeUnusedRun)).subscribe(()=>{if(Ix(this.ngxPermissionsExcept)){this.validateExceptAndOnlyPermissions();return}if(Ix(this.ngxPermissionsOnly)){this.validateOnlyPermissions();return}this.handleAuthorisedPermission(this.getAuthorisedTemplates())})}validateExceptAndOnlyPermissions(){Promise.all([this.permissionsService.hasPermission(this.ngxPermissionsExcept),this.rolesService.hasOnlyRoles(this.ngxPermissionsExcept)]).then(([i,r])=>{if(i||r){this.handleUnauthorisedPermission(this.ngxPermissionsExceptElse||this.ngxPermissionsElse);return}if(this.ngxPermissionsOnly)throw!1;this.handleAuthorisedPermission(this.ngxPermissionsExceptThen||this.ngxPermissionsThen||this.templateRef)}).catch(()=>{this.ngxPermissionsOnly?this.validateOnlyPermissions():this.handleAuthorisedPermission(this.ngxPermissionsExceptThen||this.ngxPermissionsThen||this.templateRef)})}validateOnlyPermissions(){Promise.all([this.permissionsService.hasPermission(this.ngxPermissionsOnly),this.rolesService.hasOnlyRoles(this.ngxPermissionsOnly)]).then(([i,r])=>{i||r?this.handleAuthorisedPermission(this.ngxPermissionsOnlyThen||this.ngxPermissionsThen||this.templateRef):this.handleUnauthorisedPermission(this.ngxPermissionsOnlyElse||this.ngxPermissionsElse)}).catch(()=>{this.handleUnauthorisedPermission(this.ngxPermissionsOnlyElse||this.ngxPermissionsElse)})}handleUnauthorisedPermission(i){if(!(Ox(this.currentAuthorizedState)&&!this.currentAuthorizedState)){if(this.currentAuthorizedState=!1,this.permissionsUnauthorized.emit(),this.getUnAuthorizedStrategyInput()){this.applyStrategyAccordingToStrategyType(this.getUnAuthorizedStrategyInput());return}this.configurationService.onUnAuthorisedDefaultStrategy&&!this.elseBlockDefined()?this.applyStrategy(this.configurationService.onUnAuthorisedDefaultStrategy):this.showTemplateBlockInView(i)}}handleAuthorisedPermission(i){if(!(Ox(this.currentAuthorizedState)&&this.currentAuthorizedState)){if(this.currentAuthorizedState=!0,this.permissionsAuthorized.emit(),this.getAuthorizedStrategyInput()){this.applyStrategyAccordingToStrategyType(this.getAuthorizedStrategyInput());return}this.configurationService.onAuthorisedDefaultStrategy&&!this.thenBlockDefined()?this.applyStrategy(this.configurationService.onAuthorisedDefaultStrategy):this.showTemplateBlockInView(i)}}applyStrategyAccordingToStrategyType(i){if(uj(i)){this.applyStrategy(i);return}if(ao(i)){this.showTemplateBlockInView(this.templateRef),i(this.templateRef);return}}showTemplateBlockInView(i){this.viewContainer.clear(),i&&(this.viewContainer.createEmbeddedView(i),this.changeDetector.markForCheck())}getAuthorisedTemplates(){return this.ngxPermissionsOnlyThen||this.ngxPermissionsExceptThen||this.ngxPermissionsThen||this.templateRef}elseBlockDefined(){return!!this.ngxPermissionsExceptElse||!!this.ngxPermissionsElse}thenBlockDefined(){return!!this.ngxPermissionsExceptThen||!!this.ngxPermissionsThen}getAuthorizedStrategyInput(){return this.ngxPermissionsOnlyAuthorisedStrategy||this.ngxPermissionsExceptAuthorisedStrategy||this.ngxPermissionsAuthorisedStrategy}getUnAuthorizedStrategyInput(){return this.ngxPermissionsOnlyUnauthorisedStrategy||this.ngxPermissionsExceptUnauthorisedStrategy||this.ngxPermissionsUnauthorisedStrategy}applyStrategy(i){if(i===Ax.SHOW){this.showTemplateBlockInView(this.templateRef);return}if(i===Ax.REMOVE){this.viewContainer.clear();return}let r=this.configurationService.getStrategy(i);this.showTemplateBlockInView(this.templateRef),r(this.templateRef)}};n.\u0275fac=function(r){return new(r||n)},n.\u0275dir=P({type:n,selectors:[["","ngxPermissionsOnly",""],["","ngxPermissionsExcept",""]],inputs:{ngxPermissionsOnly:"ngxPermissionsOnly",ngxPermissionsOnlyThen:"ngxPermissionsOnlyThen",ngxPermissionsOnlyElse:"ngxPermissionsOnlyElse",ngxPermissionsExcept:"ngxPermissionsExcept",ngxPermissionsExceptElse:"ngxPermissionsExceptElse",ngxPermissionsExceptThen:"ngxPermissionsExceptThen",ngxPermissionsThen:"ngxPermissionsThen",ngxPermissionsElse:"ngxPermissionsElse",ngxPermissionsOnlyAuthorisedStrategy:"ngxPermissionsOnlyAuthorisedStrategy",ngxPermissionsOnlyUnauthorisedStrategy:"ngxPermissionsOnlyUnauthorisedStrategy",ngxPermissionsExceptUnauthorisedStrategy:"ngxPermissionsExceptUnauthorisedStrategy",ngxPermissionsExceptAuthorisedStrategy:"ngxPermissionsExceptAuthorisedStrategy",ngxPermissionsUnauthorisedStrategy:"ngxPermissionsUnauthorisedStrategy",ngxPermissionsAuthorisedStrategy:"ngxPermissionsAuthorisedStrategy"},outputs:{permissionsAuthorized:"permissionsAuthorized",permissionsUnauthorized:"permissionsUnauthorized"},standalone:!1,features:[Ae]});let t=n;return t})(),une="default";var cj=(()=>{let n=class n{constructor(i,r,o){this.permissionsService=i,this.rolesService=r,this.router=o}canActivate(i,r){return this.hasPermissions(i,r)}canActivateChild(i,r){return this.hasPermissions(i,r)}canLoad(i){return this.hasPermissions(i)}canMatch(i){return this.hasPermissions(i)}hasPermissions(i,r){let o=i&&i.data?i.data.permissions:{},a=this.transformPermission(o,i,r);return this.isParameterAvailable(a.except)?this.passingExceptPermissionsValidation(a,i,r):this.isParameterAvailable(a.only)?this.passingOnlyPermissionsValidation(a,i,r):!0}transformPermission(i,r,o){let a=ao(i.only)?i.only(r,o):Rx(i.only),s=ao(i.except)?i.except(r,o):Rx(i.except),l=i.redirectTo;return{only:a,except:s,redirectTo:l}}isParameterAvailable(i){return!!i&&i.length>0}passingExceptPermissionsValidation(i,r,o){if(i.redirectTo&&(ao(i.redirectTo)||Bk(i.redirectTo)&&!this.isRedirectionWithParameters(i.redirectTo))){let a="";return Ft(i.except).pipe(It(s=>qa([this.permissionsService.hasPermission(s),this.rolesService.hasOnlyRoles(s)]).pipe(He(l=>{l.every(d=>d===!1)||(a=s)}))),bn(s=>s.some(l=>l===!0),!1),It(s=>a?(this.handleRedirectOfFailedPermission(i,a,r,o),Q(!1)):!s&&i.only?this.onlyRedirectCheck(i,r,o):Q(!s))).toPromise()}return Promise.all([this.permissionsService.hasPermission(i.except),this.rolesService.hasOnlyRoles(i.except)]).then(([a,s])=>a||s?(i.redirectTo&&this.redirectToAnotherRoute(i.redirectTo,r,o),!1):i.only?this.checkOnlyPermissions(i,r,o):!0)}redirectToAnotherRoute(i,r,o,a){let s=ao(i)?i(a,r,o):i;if(this.isRedirectionWithParameters(s)){s.navigationCommands=this.transformNavigationCommands(s.navigationCommands,r,o),s.navigationExtras=this.transformNavigationExtras(s.navigationExtras,r,o),this.router.navigate(s.navigationCommands,s.navigationExtras);return}Array.isArray(s)?this.router.navigate(s):this.router.navigate([s])}isRedirectionWithParameters(i){return Bk(i)&&(!!i.navigationCommands||!!i.navigationExtras)}transformNavigationCommands(i,r,o){return ao(i)?i(r,o):i}transformNavigationExtras(i,r,o){return ao(i)?i(r,o):i}onlyRedirectCheck(i,r,o){let a="";return Ft(i.only).pipe(It(s=>qa([this.permissionsService.hasPermission(s),this.rolesService.hasOnlyRoles(s)]).pipe(He(l=>{l.every(d=>d===!1)&&(a=s)}))),bn(s=>ao(i.redirectTo)?s.some(l=>l===!0):s.every(l=>l===!1),!1),It(s=>ao(i.redirectTo)?s?Q(!0):(this.handleRedirectOfFailedPermission(i,a,r,o),Q(!1)):(a&&this.handleRedirectOfFailedPermission(i,a,r,o),Q(!s)))).toPromise()}handleRedirectOfFailedPermission(i,r,o,a){this.isFailedPermissionPropertyOfRedirectTo(i,r)?this.redirectToAnotherRoute(i.redirectTo[r],o,a,r):ao(i.redirectTo)?this.redirectToAnotherRoute(i.redirectTo,o,a,r):this.redirectToAnotherRoute(i.redirectTo[une],o,a,r)}isFailedPermissionPropertyOfRedirectTo(i,r){return!!i.redirectTo&&i.redirectTo[r]}checkOnlyPermissions(i,r,o){let a=k({},i);return Promise.all([this.permissionsService.hasPermission(a.only),this.rolesService.hasOnlyRoles(a.only)]).then(([s,l])=>s||l?!0:(a.redirectTo&&this.redirectToAnotherRoute(a.redirectTo,r,o),!1))}passingOnlyPermissionsValidation(i,r,o){return ao(i.redirectTo)||Bk(i.redirectTo)&&!this.isRedirectionWithParameters(i.redirectTo)?this.onlyRedirectCheck(i,r,o):this.checkOnlyPermissions(i,r,o)}};n.\u0275fac=function(r){return new(r||n)(fe(Cu),fe(Fh),fe(Re))},n.\u0275prov=R({token:n,factory:n.\u0275fac});let t=n;return t})();var wc=(()=>{let n=class n{static forRoot(i={}){return{ngModule:n,providers:[mj,Px,dj,Cu,cj,Fh,Hk,{provide:zk,useValue:i.permissionsIsolate},{provide:Uk,useValue:i.rolesIsolate},{provide:jk,useValue:i.configurationIsolate}]}}static forChild(i={}){return{ngModule:n,providers:[{provide:zk,useValue:i.permissionsIsolate},{provide:Uk,useValue:i.rolesIsolate},{provide:jk,useValue:i.configurationIsolate},Hk,Cu,Fh,cj]}}};n.\u0275fac=function(r){return new(r||n)},n.\u0275mod=ee({type:n}),n.\u0275inj=J({});let t=n;return t})();function jg(t){return t+.5|0}var Dc=(t,n,e)=>Math.max(Math.min(t,e),n);function Vg(t){return Dc(jg(t*2.55),0,255)}function Ec(t){return Dc(jg(t*255),0,255)}function gl(t){return Dc(jg(t/2.55)/100,0,1)}function hj(t){return Dc(jg(t*100),0,100)}var aa={0:0,1:1,2:2,3:3,4:4,5:5,6:6,7:7,8:8,9:9,A:10,B:11,C:12,D:13,E:14,F:15,a:10,b:11,c:12,d:13,e:14,f:15},Gk=[..."0123456789ABCDEF"],mne=t=>Gk[t&15],hne=t=>Gk[(t&240)>>4]+Gk[t&15],Fx=t=>(t&240)>>4===(t&15),pne=t=>Fx(t.r)&&Fx(t.g)&&Fx(t.b)&&Fx(t.a);function fne(t){var n=t.length,e;return t[0]==="#"&&(n===4||n===5?e={r:255&aa[t[1]]*17,g:255&aa[t[2]]*17,b:255&aa[t[3]]*17,a:n===5?aa[t[4]]*17:255}:(n===7||n===9)&&(e={r:aa[t[1]]<<4|aa[t[2]],g:aa[t[3]]<<4|aa[t[4]],b:aa[t[5]]<<4|aa[t[6]],a:n===9?aa[t[7]]<<4|aa[t[8]]:255})),e}var gne=(t,n)=>t<255?n(t):"";function _ne(t){var n=pne(t)?mne:hne;return t?"#"+n(t.r)+n(t.g)+n(t.b)+gne(t.a,n):void 0}var bne=/^(hsla?|hwb|hsv)\(\s*([-+.e\d]+)(?:deg)?[\s,]+([-+.e\d]+)%[\s,]+([-+.e\d]+)%(?:[\s,]+([-+.e\d]+)(%)?)?\s*\)$/;function _j(t,n,e){let i=n*Math.min(e,1-e),r=(o,a=(o+t/30)%12)=>e-i*Math.max(Math.min(a-3,9-a,1),-1);return[r(0),r(8),r(4)]}function vne(t,n,e){let i=(r,o=(r+t/60)%6)=>e-e*n*Math.max(Math.min(o,4-o,1),0);return[i(5),i(3),i(1)]}function yne(t,n,e){let i=_j(t,1,.5),r;for(n+e>1&&(r=1/(n+e),n*=r,e*=r),r=0;r<3;r++)i[r]*=1-n-e,i[r]+=n;return i}function xne(t,n,e,i,r){return t===r?(n-e)/i+(n.5?d/(2-o-a):d/(o+a),l=xne(e,i,r,d,o),l=l*60+.5),[l|0,c||0,s]}function Yk(t,n,e,i){return(Array.isArray(n)?t(n[0],n[1],n[2]):t(n,e,i)).map(Ec)}function Qk(t,n,e){return Yk(_j,t,n,e)}function Cne(t,n,e){return Yk(yne,t,n,e)}function wne(t,n,e){return Yk(vne,t,n,e)}function bj(t){return(t%360+360)%360}function Dne(t){let n=bne.exec(t),e=255,i;if(!n)return;n[5]!==i&&(e=n[6]?Vg(+n[5]):Ec(+n[5]));let r=bj(+n[2]),o=+n[3]/100,a=+n[4]/100;return n[1]==="hwb"?i=Cne(r,o,a):n[1]==="hsv"?i=wne(r,o,a):i=Qk(r,o,a),{r:i[0],g:i[1],b:i[2],a:e}}function Ene(t,n){var e=qk(t);e[0]=bj(e[0]+n),e=Qk(e),t.r=e[0],t.g=e[1],t.b=e[2]}function Mne(t){if(!t)return;let n=qk(t),e=n[0],i=hj(n[1]),r=hj(n[2]);return t.a<255?`hsla(${e}, ${i}%, ${r}%, ${gl(t.a)})`:`hsl(${e}, ${i}%, ${r}%)`}var pj={x:"dark",Z:"light",Y:"re",X:"blu",W:"gr",V:"medium",U:"slate",A:"ee",T:"ol",S:"or",B:"ra",C:"lateg",D:"ights",R:"in",Q:"turquois",E:"hi",P:"ro",O:"al",N:"le",M:"de",L:"yello",F:"en",K:"ch",G:"arks",H:"ea",I:"ightg",J:"wh"},fj={OiceXe:"f0f8ff",antiquewEte:"faebd7",aqua:"ffff",aquamarRe:"7fffd4",azuY:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"0",blanKedOmond:"ffebcd",Xe:"ff",XeviTet:"8a2be2",bPwn:"a52a2a",burlywood:"deb887",caMtXe:"5f9ea0",KartYuse:"7fff00",KocTate:"d2691e",cSO:"ff7f50",cSnflowerXe:"6495ed",cSnsilk:"fff8dc",crimson:"dc143c",cyan:"ffff",xXe:"8b",xcyan:"8b8b",xgTMnPd:"b8860b",xWay:"a9a9a9",xgYF:"6400",xgYy:"a9a9a9",xkhaki:"bdb76b",xmagFta:"8b008b",xTivegYF:"556b2f",xSange:"ff8c00",xScEd:"9932cc",xYd:"8b0000",xsOmon:"e9967a",xsHgYF:"8fbc8f",xUXe:"483d8b",xUWay:"2f4f4f",xUgYy:"2f4f4f",xQe:"ced1",xviTet:"9400d3",dAppRk:"ff1493",dApskyXe:"bfff",dimWay:"696969",dimgYy:"696969",dodgerXe:"1e90ff",fiYbrick:"b22222",flSOwEte:"fffaf0",foYstWAn:"228b22",fuKsia:"ff00ff",gaRsbSo:"dcdcdc",ghostwEte:"f8f8ff",gTd:"ffd700",gTMnPd:"daa520",Way:"808080",gYF:"8000",gYFLw:"adff2f",gYy:"808080",honeyMw:"f0fff0",hotpRk:"ff69b4",RdianYd:"cd5c5c",Rdigo:"4b0082",ivSy:"fffff0",khaki:"f0e68c",lavFMr:"e6e6fa",lavFMrXsh:"fff0f5",lawngYF:"7cfc00",NmoncEffon:"fffacd",ZXe:"add8e6",ZcSO:"f08080",Zcyan:"e0ffff",ZgTMnPdLw:"fafad2",ZWay:"d3d3d3",ZgYF:"90ee90",ZgYy:"d3d3d3",ZpRk:"ffb6c1",ZsOmon:"ffa07a",ZsHgYF:"20b2aa",ZskyXe:"87cefa",ZUWay:"778899",ZUgYy:"778899",ZstAlXe:"b0c4de",ZLw:"ffffe0",lime:"ff00",limegYF:"32cd32",lRF:"faf0e6",magFta:"ff00ff",maPon:"800000",VaquamarRe:"66cdaa",VXe:"cd",VScEd:"ba55d3",VpurpN:"9370db",VsHgYF:"3cb371",VUXe:"7b68ee",VsprRggYF:"fa9a",VQe:"48d1cc",VviTetYd:"c71585",midnightXe:"191970",mRtcYam:"f5fffa",mistyPse:"ffe4e1",moccasR:"ffe4b5",navajowEte:"ffdead",navy:"80",Tdlace:"fdf5e6",Tive:"808000",TivedBb:"6b8e23",Sange:"ffa500",SangeYd:"ff4500",ScEd:"da70d6",pOegTMnPd:"eee8aa",pOegYF:"98fb98",pOeQe:"afeeee",pOeviTetYd:"db7093",papayawEp:"ffefd5",pHKpuff:"ffdab9",peru:"cd853f",pRk:"ffc0cb",plum:"dda0dd",powMrXe:"b0e0e6",purpN:"800080",YbeccapurpN:"663399",Yd:"ff0000",Psybrown:"bc8f8f",PyOXe:"4169e1",saddNbPwn:"8b4513",sOmon:"fa8072",sandybPwn:"f4a460",sHgYF:"2e8b57",sHshell:"fff5ee",siFna:"a0522d",silver:"c0c0c0",skyXe:"87ceeb",UXe:"6a5acd",UWay:"708090",UgYy:"708090",snow:"fffafa",sprRggYF:"ff7f",stAlXe:"4682b4",tan:"d2b48c",teO:"8080",tEstN:"d8bfd8",tomato:"ff6347",Qe:"40e0d0",viTet:"ee82ee",JHt:"f5deb3",wEte:"ffffff",wEtesmoke:"f5f5f5",Lw:"ffff00",LwgYF:"9acd32"};function Sne(){let t={},n=Object.keys(fj),e=Object.keys(pj),i,r,o,a,s;for(i=0;i>16&255,o>>8&255,o&255]}return t}var Nx;function kne(t){Nx||(Nx=Sne(),Nx.transparent=[0,0,0,0]);let n=Nx[t.toLowerCase()];return n&&{r:n[0],g:n[1],b:n[2],a:n.length===4?n[3]:255}}var Tne=/^rgba?\(\s*([-+.\d]+)(%)?[\s,]+([-+.e\d]+)(%)?[\s,]+([-+.e\d]+)(%)?(?:[\s,/]+([-+.e\d]+)(%)?)?\s*\)$/;function Ine(t){let n=Tne.exec(t),e=255,i,r,o;if(n){if(n[7]!==i){let a=+n[7];e=n[8]?Vg(a):Dc(a*255,0,255)}return i=+n[1],r=+n[3],o=+n[5],i=255&(n[2]?Vg(i):Dc(i,0,255)),r=255&(n[4]?Vg(r):Dc(r,0,255)),o=255&(n[6]?Vg(o):Dc(o,0,255)),{r:i,g:r,b:o,a:e}}}function Ane(t){return t&&(t.a<255?`rgba(${t.r}, ${t.g}, ${t.b}, ${gl(t.a)})`:`rgb(${t.r}, ${t.g}, ${t.b})`)}var Wk=t=>t<=.0031308?t*12.92:Math.pow(t,1/2.4)*1.055-.055,Lh=t=>t<=.04045?t/12.92:Math.pow((t+.055)/1.055,2.4);function One(t,n,e){let i=Lh(gl(t.r)),r=Lh(gl(t.g)),o=Lh(gl(t.b));return{r:Ec(Wk(i+e*(Lh(gl(n.r))-i))),g:Ec(Wk(r+e*(Lh(gl(n.g))-r))),b:Ec(Wk(o+e*(Lh(gl(n.b))-o))),a:t.a+e*(n.a-t.a)}}function Lx(t,n,e){if(t){let i=qk(t);i[n]=Math.max(0,Math.min(i[n]+i[n]*e,n===0?360:1)),i=Qk(i),t.r=i[0],t.g=i[1],t.b=i[2]}}function vj(t,n){return t&&Object.assign(n||{},t)}function gj(t){var n={r:0,g:0,b:0,a:255};return Array.isArray(t)?t.length>=3&&(n={r:t[0],g:t[1],b:t[2],a:255},t.length>3&&(n.a=Ec(t[3]))):(n=vj(t,{r:0,g:0,b:0,a:1}),n.a=Ec(n.a)),n}function Rne(t){return t.charAt(0)==="r"?Ine(t):Dne(t)}var Bg=class t{constructor(n){if(n instanceof t)return n;let e=typeof n,i;e==="object"?i=gj(n):e==="string"&&(i=fne(n)||kne(n)||Rne(n)),this._rgb=i,this._valid=!!i}get valid(){return this._valid}get rgb(){var n=vj(this._rgb);return n&&(n.a=gl(n.a)),n}set rgb(n){this._rgb=gj(n)}rgbString(){return this._valid?Ane(this._rgb):void 0}hexString(){return this._valid?_ne(this._rgb):void 0}hslString(){return this._valid?Mne(this._rgb):void 0}mix(n,e){if(n){let i=this.rgb,r=n.rgb,o,a=e===o?.5:e,s=2*a-1,l=i.a-r.a,c=((s*l===-1?s:(s+l)/(1+s*l))+1)/2;o=1-c,i.r=255&c*i.r+o*r.r+.5,i.g=255&c*i.g+o*r.g+.5,i.b=255&c*i.b+o*r.b+.5,i.a=a*i.a+(1-a)*r.a,this.rgb=i}return this}interpolate(n,e){return n&&(this._rgb=One(this._rgb,n._rgb,e)),this}clone(){return new t(this.rgb)}alpha(n){return this._rgb.a=Ec(n),this}clearer(n){let e=this._rgb;return e.a*=1-n,this}greyscale(){let n=this._rgb,e=jg(n.r*.3+n.g*.59+n.b*.11);return n.r=n.g=n.b=e,this}opaquer(n){let e=this._rgb;return e.a*=1+n,this}negate(){let n=this._rgb;return n.r=255-n.r,n.g=255-n.g,n.b=255-n.b,this}lighten(n){return Lx(this._rgb,2,n),this}darken(n){return Lx(this._rgb,2,-n),this}saturate(n){return Lx(this._rgb,1,n),this}desaturate(n){return Lx(this._rgb,1,-n),this}rotate(n){return Ene(this._rgb,n),this}};function Is(){}var Ij=(()=>{let t=0;return()=>t++})();function Tt(t){return t==null}function Ti(t){if(Array.isArray&&Array.isArray(t))return!0;let n=Object.prototype.toString.call(t);return n.slice(0,7)==="[object"&&n.slice(-6)==="Array]"}function At(t){return t!==null&&Object.prototype.toString.call(t)==="[object Object]"}function Yi(t){return(typeof t=="number"||t instanceof Number)&&isFinite(+t)}function so(t,n){return Yi(t)?t:n}function lt(t,n){return typeof t>"u"?n:t}var Aj=(t,n)=>typeof t=="string"&&t.endsWith("%")?parseFloat(t)/100:+t/n,Jk=(t,n)=>typeof t=="string"&&t.endsWith("%")?parseFloat(t)/100*n:+t;function wi(t,n,e){if(t&&typeof t.call=="function")return t.apply(e,n)}function ai(t,n,e,i){let r,o,a;if(Ti(t))if(o=t.length,i)for(r=o-1;r>=0;r--)n.call(e,t[r],r);else for(r=0;rt,x:t=>t.x,y:t=>t.y};function Nne(t){let n=t.split("."),e=[],i="";for(let r of n)i+=r,i.endsWith("\\")?i=i.slice(0,-1)+".":(e.push(i),i="");return e}function Lne(t){let n=Nne(t);return e=>{for(let i of n){if(i==="")break;e=e&&e[i]}return e}}function vl(t,n){return(yj[n]||(yj[n]=Lne(n)))(t)}function Wx(t){return t.charAt(0).toUpperCase()+t.slice(1)}var zh=t=>typeof t<"u",_l=t=>typeof t=="function",eT=(t,n)=>{if(t.size!==n.size)return!1;for(let e of t)if(!n.has(e))return!1;return!0};function Rj(t){return t.type==="mouseup"||t.type==="click"||t.type==="contextmenu"}var $t=Math.PI,Ii=2*$t,Vne=Ii+$t,zx=Number.POSITIVE_INFINITY,Bne=$t/180,tn=$t/2,wu=$t/4,xj=$t*2/3,bl=Math.log10,Ha=Math.sign;function Uh(t,n,e){return Math.abs(t-n)r-o).pop(),n}function jne(t){return typeof t=="symbol"||typeof t=="object"&&t!==null&&!(Symbol.toPrimitive in t||"toString"in t||"valueOf"in t)}function Mu(t){return!jne(t)&&!isNaN(parseFloat(t))&&isFinite(t)}function Fj(t,n){let e=Math.round(t);return e-n<=t&&e+n>=t}function iT(t,n,e){let i,r,o;for(i=0,r=t.length;il&&c=Math.min(n,e)-i&&t<=Math.max(n,e)+i}function qx(t,n,e){e=e||(a=>t[a]1;)o=r+i>>1,e(o)?r=o:i=o;return{lo:r,hi:i}}var ks=(t,n,e,i)=>qx(t,e,i?r=>{let o=t[r][n];return ot[r][n]qx(t,e,i=>t[i][n]>=e);function Vj(t,n,e){let i=0,r=t.length;for(;ii&&t[r-1]>e;)r--;return i>0||r{let i="_onData"+Wx(e),r=t[e];Object.defineProperty(t,e,{configurable:!0,enumerable:!1,value(...o){let a=r.apply(this,o);return t._chartjs.listeners.forEach(s=>{typeof s[i]=="function"&&s[i](...o)}),a}})})}function oT(t,n){let e=t._chartjs;if(!e)return;let i=e.listeners,r=i.indexOf(n);r!==-1&&i.splice(r,1),!(i.length>0)&&(Bj.forEach(o=>{delete t[o]}),delete t._chartjs)}function aT(t){let n=new Set(t);return n.size===t.length?t:Array.from(n)}var sT=(function(){return typeof window>"u"?function(t){return t()}:window.requestAnimationFrame})();function lT(t,n){let e=[],i=!1;return function(...r){e=r,i||(i=!0,sT.call(window,()=>{i=!1,t.apply(n,e)}))}}function Hj(t,n){let e;return function(...i){return n?(clearTimeout(e),e=setTimeout(t,n,i)):t.apply(this,i),n}}var Yx=t=>t==="start"?"left":t==="end"?"right":"center",lr=(t,n,e)=>t==="start"?n:t==="end"?e:(n+e)/2,zj=(t,n,e,i)=>t===(i?"left":"right")?e:t==="center"?(n+e)/2:n;function cT(t,n,e){let i=n.length,r=0,o=i;if(t._sorted){let{iScale:a,vScale:s,_parsed:l}=t,c=t.dataset&&t.dataset.options?t.dataset.options.spanGaps:null,d=a.axis,{min:p,max:_,minDefined:b,maxDefined:y}=a.getUserBounds();if(b){if(r=Math.min(ks(l,d,p).lo,e?i:ks(n,d,a.getPixelForValue(p)).lo),c){let w=l.slice(0,r+1).reverse().findIndex(C=>!Tt(C[s.axis]));r-=Math.max(0,w)}r=Sn(r,0,i-1)}if(y){let w=Math.max(ks(l,a.axis,_,!0).hi+1,e?0:ks(n,d,a.getPixelForValue(_),!0).hi+1);if(c){let C=l.slice(w-1).findIndex(D=>!Tt(D[s.axis]));w+=Math.max(0,C)}o=Sn(w,r,i)-r}else o=i-r}return{start:r,count:o}}function dT(t){let{xScale:n,yScale:e,_scaleRanges:i}=t,r={xmin:n.min,xmax:n.max,ymin:e.min,ymax:e.max};if(!i)return t._scaleRanges=r,!0;let o=i.xmin!==n.min||i.xmax!==n.max||i.ymin!==e.min||i.ymax!==e.max;return Object.assign(i,r),o}var Vx=t=>t===0||t===1,Cj=(t,n,e)=>-(Math.pow(2,10*(t-=1))*Math.sin((t-n)*Ii/e)),wj=(t,n,e)=>Math.pow(2,-10*t)*Math.sin((t-n)*Ii/e)+1,Vh={linear:t=>t,easeInQuad:t=>t*t,easeOutQuad:t=>-t*(t-2),easeInOutQuad:t=>(t/=.5)<1?.5*t*t:-.5*(--t*(t-2)-1),easeInCubic:t=>t*t*t,easeOutCubic:t=>(t-=1)*t*t+1,easeInOutCubic:t=>(t/=.5)<1?.5*t*t*t:.5*((t-=2)*t*t+2),easeInQuart:t=>t*t*t*t,easeOutQuart:t=>-((t-=1)*t*t*t-1),easeInOutQuart:t=>(t/=.5)<1?.5*t*t*t*t:-.5*((t-=2)*t*t*t-2),easeInQuint:t=>t*t*t*t*t,easeOutQuint:t=>(t-=1)*t*t*t*t+1,easeInOutQuint:t=>(t/=.5)<1?.5*t*t*t*t*t:.5*((t-=2)*t*t*t*t+2),easeInSine:t=>-Math.cos(t*tn)+1,easeOutSine:t=>Math.sin(t*tn),easeInOutSine:t=>-.5*(Math.cos($t*t)-1),easeInExpo:t=>t===0?0:Math.pow(2,10*(t-1)),easeOutExpo:t=>t===1?1:-Math.pow(2,-10*t)+1,easeInOutExpo:t=>Vx(t)?t:t<.5?.5*Math.pow(2,10*(t*2-1)):.5*(-Math.pow(2,-10*(t*2-1))+2),easeInCirc:t=>t>=1?t:-(Math.sqrt(1-t*t)-1),easeOutCirc:t=>Math.sqrt(1-(t-=1)*t),easeInOutCirc:t=>(t/=.5)<1?-.5*(Math.sqrt(1-t*t)-1):.5*(Math.sqrt(1-(t-=2)*t)+1),easeInElastic:t=>Vx(t)?t:Cj(t,.075,.3),easeOutElastic:t=>Vx(t)?t:wj(t,.075,.3),easeInOutElastic(t){return Vx(t)?t:t<.5?.5*Cj(t*2,.1125,.45):.5+.5*wj(t*2-1,.1125,.45)},easeInBack(t){return t*t*((1.70158+1)*t-1.70158)},easeOutBack(t){return(t-=1)*t*((1.70158+1)*t+1.70158)+1},easeInOutBack(t){let n=1.70158;return(t/=.5)<1?.5*(t*t*(((n*=1.525)+1)*t-n)):.5*((t-=2)*t*(((n*=1.525)+1)*t+n)+2)},easeInBounce:t=>1-Vh.easeOutBounce(1-t),easeOutBounce(t){return t<1/2.75?7.5625*t*t:t<2/2.75?7.5625*(t-=1.5/2.75)*t+.75:t<2.5/2.75?7.5625*(t-=2.25/2.75)*t+.9375:7.5625*(t-=2.625/2.75)*t+.984375},easeInOutBounce:t=>t<.5?Vh.easeInBounce(t*2)*.5:Vh.easeOutBounce(t*2-1)*.5+.5};function uT(t){if(t&&typeof t=="object"){let n=t.toString();return n==="[object CanvasPattern]"||n==="[object CanvasGradient]"}return!1}function mT(t){return uT(t)?t:new Bg(t)}function Kk(t){return uT(t)?t:new Bg(t).saturate(.5).darken(.1).hexString()}var zne=["x","y","borderWidth","radius","tension"],Une=["color","borderColor","backgroundColor"];function $ne(t){t.set("animation",{delay:void 0,duration:1e3,easing:"easeOutQuart",fn:void 0,from:void 0,loop:void 0,to:void 0,type:void 0}),t.describe("animation",{_fallback:!1,_indexable:!1,_scriptable:n=>n!=="onProgress"&&n!=="onComplete"&&n!=="fn"}),t.set("animations",{colors:{type:"color",properties:Une},numbers:{type:"number",properties:zne}}),t.describe("animations",{_fallback:"animation"}),t.set("transitions",{active:{animation:{duration:400}},resize:{animation:{duration:0}},show:{animations:{colors:{from:"transparent"},visible:{type:"boolean",duration:0}}},hide:{animations:{colors:{to:"transparent"},visible:{type:"boolean",easing:"linear",fn:n=>n|0}}}})}function Wne(t){t.set("layout",{autoPadding:!0,padding:{top:0,right:0,bottom:0,left:0}})}var Dj=new Map;function Gne(t,n){n=n||{};let e=t+JSON.stringify(n),i=Dj.get(e);return i||(i=new Intl.NumberFormat(t,n),Dj.set(e,i)),i}function Wh(t,n,e){return Gne(n,e).format(t)}var Uj={values(t){return Ti(t)?t:""+t},numeric(t,n,e){if(t===0)return"0";let i=this.chart.options.locale,r,o=t;if(e.length>1){let c=Math.max(Math.abs(e[0].value),Math.abs(e[e.length-1].value));(c<1e-4||c>1e15)&&(r="scientific"),o=qne(t,e)}let a=bl(Math.abs(o)),s=isNaN(a)?1:Math.max(Math.min(-1*Math.floor(a),20),0),l={notation:r,minimumFractionDigits:s,maximumFractionDigits:s};return Object.assign(l,this.options.ticks.format),Wh(t,i,l)},logarithmic(t,n,e){if(t===0)return"0";let i=e[n].significand||t/Math.pow(10,Math.floor(bl(t)));return[1,2,3,5,10,15].includes(i)||n>.8*e.length?Uj.numeric.call(this,t,n,e):""}};function qne(t,n){let e=n.length>3?n[2].value-n[1].value:n[1].value-n[0].value;return Math.abs(e)>=1&&t!==Math.floor(t)&&(e=t-Math.floor(t)),e}var $g={formatters:Uj};function Yne(t){t.set("scale",{display:!0,offset:!1,reverse:!1,beginAtZero:!1,bounds:"ticks",clip:!0,grace:0,grid:{display:!0,lineWidth:1,drawOnChartArea:!0,drawTicks:!0,tickLength:8,tickWidth:(n,e)=>e.lineWidth,tickColor:(n,e)=>e.color,offset:!1},border:{display:!0,dash:[],dashOffset:0,width:1},title:{display:!1,text:"",padding:{top:4,bottom:4}},ticks:{minRotation:0,maxRotation:50,mirror:!1,textStrokeWidth:0,textStrokeColor:"",padding:3,display:!0,autoSkip:!0,autoSkipPadding:3,labelOffset:0,callback:$g.formatters.values,minor:{},major:{},align:"center",crossAlign:"near",showLabelBackdrop:!1,backdropColor:"rgba(255, 255, 255, 0.75)",backdropPadding:2}}),t.route("scale.ticks","color","","color"),t.route("scale.grid","color","","borderColor"),t.route("scale.border","color","","borderColor"),t.route("scale.title","color","","color"),t.describe("scale",{_fallback:!1,_scriptable:n=>!n.startsWith("before")&&!n.startsWith("after")&&n!=="callback"&&n!=="parser",_indexable:n=>n!=="borderDash"&&n!=="tickBorderDash"&&n!=="dash"}),t.describe("scales",{_fallback:"scale"}),t.describe("scale.ticks",{_scriptable:n=>n!=="backdropPadding"&&n!=="callback",_indexable:n=>n!=="backdropPadding"})}var kc=Object.create(null),Qx=Object.create(null);function Hg(t,n){if(!n)return t;let e=n.split(".");for(let i=0,r=e.length;ii.chart.platform.getDevicePixelRatio(),this.elements={},this.events=["mousemove","mouseout","click","touchstart","touchmove"],this.font={family:"'Helvetica Neue', 'Helvetica', 'Arial', sans-serif",size:12,style:"normal",lineHeight:1.2,weight:null},this.hover={},this.hoverBackgroundColor=(i,r)=>Kk(r.backgroundColor),this.hoverBorderColor=(i,r)=>Kk(r.borderColor),this.hoverColor=(i,r)=>Kk(r.color),this.indexAxis="x",this.interaction={mode:"nearest",intersect:!0,includeInvisible:!1},this.maintainAspectRatio=!0,this.onHover=null,this.onClick=null,this.parsing=!0,this.plugins={},this.responsive=!0,this.scale=void 0,this.scales={},this.showLine=!0,this.drawActiveElementsOnTop=!0,this.describe(n),this.apply(e)}set(n,e){return Zk(this,n,e)}get(n){return Hg(this,n)}describe(n,e){return Zk(Qx,n,e)}override(n,e){return Zk(kc,n,e)}route(n,e,i,r){let o=Hg(this,n),a=Hg(this,i),s="_"+e;Object.defineProperties(o,{[s]:{value:o[e],writable:!0},[e]:{enumerable:!0,get(){let l=this[s],c=a[r];return At(l)?Object.assign({},c,l):lt(l,c)},set(l){this[s]=l}}})}apply(n){n.forEach(e=>e(this))}},Di=new Xk({_scriptable:t=>!t.startsWith("on"),_indexable:t=>t!=="events",hover:{_fallback:"interaction"},interaction:{_scriptable:!1,_indexable:!1}},[$ne,Wne,Yne]);function Qne(t){return!t||Tt(t.size)||Tt(t.family)?null:(t.style?t.style+" ":"")+(t.weight?t.weight+" ":"")+t.size+"px "+t.family}function zg(t,n,e,i,r){let o=n[r];return o||(o=n[r]=t.measureText(r).width,e.push(r)),o>i&&(i=o),i}function $j(t,n,e,i){i=i||{};let r=i.data=i.data||{},o=i.garbageCollect=i.garbageCollect||[];i.font!==n&&(r=i.data={},o=i.garbageCollect=[],i.font=n),t.save(),t.font=n;let a=0,s=e.length,l,c,d,p,_;for(l=0;le.length){for(l=0;l0&&t.stroke()}}function Ts(t,n,e){return e=e||.5,!n||t&&t.x>n.left-e&&t.xn.top-e&&t.y0&&o.strokeColor!=="",l,c;for(t.save(),t.font=r.string,Kne(t,o),l=0;l+t||0;function Zx(t,n){let e={},i=At(n),r=i?Object.keys(n):n,o=At(t)?i?a=>lt(t[a],t[n[a]]):a=>t[a]:()=>t;for(let a of r)e[a]=ire(o(a));return e}function fT(t){return Zx(t,{top:"y",right:"x",bottom:"y",left:"x"})}function Ac(t){return Zx(t,["topLeft","topRight","bottomLeft","bottomRight"])}function cr(t){let n=fT(t);return n.width=n.left+n.right,n.height=n.top+n.bottom,n}function fn(t,n){t=t||{},n=n||Di.font;let e=lt(t.size,n.size);typeof e=="string"&&(e=parseInt(e,10));let i=lt(t.style,n.style);i&&!(""+i).match(ere)&&(console.warn('Invalid font style specified: "'+i+'"'),i=void 0);let r={family:lt(t.family,n.family),lineHeight:tre(lt(t.lineHeight,n.lineHeight),e),size:e,style:i,weight:lt(t.weight,n.weight),string:""};return r.string=Qne(r),r}function qh(t,n,e,i){let r=!0,o,a,s;for(o=0,a=t.length;oe&&s===0?0:s+l;return{min:a(i,-Math.abs(o)),max:a(r,o)}}function yl(t,n){return Object.assign(Object.create(t),n)}function Xx(t,n=[""],e,i,r=()=>t[0]){let o=e||t;typeof i>"u"&&(i=Kj("_fallback",t));let a={[Symbol.toStringTag]:"Object",_cacheable:!0,_scopes:t,_rootScopes:o,_fallback:i,_getTarget:r,override:s=>Xx([s,...t],n,o,i)};return new Proxy(a,{deleteProperty(s,l){return delete s[l],delete s._keys,delete t[0][l],!0},get(s,l){return Yj(s,l,()=>dre(l,n,t,s))},getOwnPropertyDescriptor(s,l){return Reflect.getOwnPropertyDescriptor(s._scopes[0],l)},getPrototypeOf(){return Reflect.getPrototypeOf(t[0])},has(s,l){return Mj(s).includes(l)},ownKeys(s){return Mj(s)},set(s,l,c){let d=s._storage||(s._storage=r());return s[l]=d[l]=c,delete s._keys,!0}})}function Eu(t,n,e,i){let r={_cacheable:!1,_proxy:t,_context:n,_subProxy:e,_stack:new Set,_descriptors:gT(t,i),setContext:o=>Eu(t,o,e,i),override:o=>Eu(t.override(o),n,e,i)};return new Proxy(r,{deleteProperty(o,a){return delete o[a],delete t[a],!0},get(o,a,s){return Yj(o,a,()=>rre(o,a,s))},getOwnPropertyDescriptor(o,a){return o._descriptors.allKeys?Reflect.has(t,a)?{enumerable:!0,configurable:!0}:void 0:Reflect.getOwnPropertyDescriptor(t,a)},getPrototypeOf(){return Reflect.getPrototypeOf(t)},has(o,a){return Reflect.has(t,a)},ownKeys(){return Reflect.ownKeys(t)},set(o,a,s){return t[a]=s,delete o[a],!0}})}function gT(t,n={scriptable:!0,indexable:!0}){let{_scriptable:e=n.scriptable,_indexable:i=n.indexable,_allKeys:r=n.allKeys}=t;return{allKeys:r,scriptable:e,indexable:i,isScriptable:_l(e)?e:()=>e,isIndexable:_l(i)?i:()=>i}}var nre=(t,n)=>t?t+Wx(n):n,_T=(t,n)=>At(n)&&t!=="adapters"&&(Object.getPrototypeOf(n)===null||n.constructor===Object);function Yj(t,n,e){if(Object.prototype.hasOwnProperty.call(t,n)||n==="constructor")return t[n];let i=e();return t[n]=i,i}function rre(t,n,e){let{_proxy:i,_context:r,_subProxy:o,_descriptors:a}=t,s=i[n];return _l(s)&&a.isScriptable(n)&&(s=ore(n,s,t,e)),Ti(s)&&s.length&&(s=are(n,s,t,a.isIndexable)),_T(n,s)&&(s=Eu(s,r,o&&o[n],a)),s}function ore(t,n,e,i){let{_proxy:r,_context:o,_subProxy:a,_stack:s}=e;if(s.has(t))throw new Error("Recursion detected: "+Array.from(s).join("->")+"->"+t);s.add(t);let l=n(o,a||i);return s.delete(t),_T(t,l)&&(l=bT(r._scopes,r,t,l)),l}function are(t,n,e,i){let{_proxy:r,_context:o,_subProxy:a,_descriptors:s}=e;if(typeof o.index<"u"&&i(t))return n[o.index%n.length];if(At(n[0])){let l=n,c=r._scopes.filter(d=>d!==l);n=[];for(let d of l){let p=bT(c,r,t,d);n.push(Eu(p,o,a&&a[t],s))}}return n}function Qj(t,n,e){return _l(t)?t(n,e):t}var sre=(t,n)=>t===!0?n:typeof t=="string"?vl(n,t):void 0;function lre(t,n,e,i,r){for(let o of n){let a=sre(e,o);if(a){t.add(a);let s=Qj(a._fallback,e,r);if(typeof s<"u"&&s!==e&&s!==i)return s}else if(a===!1&&typeof i<"u"&&e!==i)return null}return!1}function bT(t,n,e,i){let r=n._rootScopes,o=Qj(n._fallback,e,i),a=[...t,...r],s=new Set;s.add(i);let l=Ej(s,a,e,o||e,i);return l===null||typeof o<"u"&&o!==e&&(l=Ej(s,a,o,l,i),l===null)?!1:Xx(Array.from(s),[""],r,o,()=>cre(n,e,i))}function Ej(t,n,e,i,r){for(;e;)e=lre(t,n,e,i,r);return e}function cre(t,n,e){let i=t._getTarget();n in i||(i[n]={});let r=i[n];return Ti(r)&&At(e)?e:r||{}}function dre(t,n,e,i){let r;for(let o of n)if(r=Kj(nre(o,t),e),typeof r<"u")return _T(t,r)?bT(e,i,t,r):r}function Kj(t,n){for(let e of n){if(!e)continue;let i=e[t];if(typeof i<"u")return i}}function Mj(t){let n=t._keys;return n||(n=t._keys=ure(t._scopes)),n}function ure(t){let n=new Set;for(let e of t)for(let i of Object.keys(e).filter(r=>!r.startsWith("_")))n.add(i);return Array.from(n)}function vT(t,n,e,i){let{iScale:r}=t,{key:o="r"}=this._parsing,a=new Array(i),s,l,c,d;for(s=0,l=i;snt==="x"?"y":"x";function hre(t,n,e,i){let r=t.skip?n:t,o=n,a=e.skip?n:e,s=Ux(o,r),l=Ux(a,o),c=s/(s+l),d=l/(s+l);c=isNaN(c)?0:c,d=isNaN(d)?0:d;let p=i*c,_=i*d;return{previous:{x:o.x-p*(a.x-r.x),y:o.y-p*(a.y-r.y)},next:{x:o.x+_*(a.x-r.x),y:o.y+_*(a.y-r.y)}}}function pre(t,n,e){let i=t.length,r,o,a,s,l,c=jh(t,0);for(let d=0;d!c.skip)),n.cubicInterpolationMode==="monotone")gre(t,r);else{let c=i?t[t.length-1]:t[0];for(o=0,a=t.length;ot.ownerDocument.defaultView.getComputedStyle(t,null);function bre(t,n){return tC(t).getPropertyValue(n)}var vre=["top","right","bottom","left"];function Du(t,n,e){let i={};e=e?"-"+e:"";for(let r=0;r<4;r++){let o=vre[r];i[o]=parseFloat(t[n+"-"+o+e])||0}return i.width=i.left+i.right,i.height=i.top+i.bottom,i}var yre=(t,n,e)=>(t>0||n>0)&&(!e||!e.shadowRoot);function xre(t,n){let e=t.touches,i=e&&e.length?e[0]:t,{offsetX:r,offsetY:o}=i,a=!1,s,l;if(yre(r,o,t.target))s=r,l=o;else{let c=n.getBoundingClientRect();s=i.clientX-c.left,l=i.clientY-c.top,a=!0}return{x:s,y:l,box:a}}function Oc(t,n){if("native"in t)return t;let{canvas:e,currentDevicePixelRatio:i}=n,r=tC(e),o=r.boxSizing==="border-box",a=Du(r,"padding"),s=Du(r,"border","width"),{x:l,y:c,box:d}=xre(t,e),p=a.left+(d&&s.left),_=a.top+(d&&s.top),{width:b,height:y}=n;return o&&(b-=a.width+s.width,y-=a.height+s.height),{x:Math.round((l-p)/b*e.width/i),y:Math.round((c-_)/y*e.height/i)}}function Cre(t,n,e){let i,r;if(n===void 0||e===void 0){let o=t&&eC(t);if(!o)n=t.clientWidth,e=t.clientHeight;else{let a=o.getBoundingClientRect(),s=tC(o),l=Du(s,"border","width"),c=Du(s,"padding");n=a.width-c.width-l.width,e=a.height-c.height-l.height,i=$x(s.maxWidth,o,"clientWidth"),r=$x(s.maxHeight,o,"clientHeight")}}return{width:n,height:e,maxWidth:i||zx,maxHeight:r||zx}}var Sc=t=>Math.round(t*10)/10;function Jj(t,n,e,i){let r=tC(t),o=Du(r,"margin"),a=$x(r.maxWidth,t,"clientWidth")||zx,s=$x(r.maxHeight,t,"clientHeight")||zx,l=Cre(t,n,e),{width:c,height:d}=l;if(r.boxSizing==="content-box"){let _=Du(r,"border","width"),b=Du(r,"padding");c-=b.width+_.width,d-=b.height+_.height}return c=Math.max(0,c-o.width),d=Math.max(0,i?c/i:d-o.height),c=Sc(Math.min(c,a,l.maxWidth)),d=Sc(Math.min(d,s,l.maxHeight)),c&&!d&&(d=Sc(c/2)),(n!==void 0||e!==void 0)&&i&&l.height&&d>l.height&&(d=l.height,c=Sc(Math.floor(d*i))),{width:c,height:d}}function yT(t,n,e){let i=n||1,r=Sc(t.height*i),o=Sc(t.width*i);t.height=Sc(t.height),t.width=Sc(t.width);let a=t.canvas;return a.style&&(e||!a.style.height&&!a.style.width)&&(a.style.height=`${t.height}px`,a.style.width=`${t.width}px`),t.currentDevicePixelRatio!==i||a.height!==r||a.width!==o?(t.currentDevicePixelRatio=i,a.height=r,a.width=o,t.ctx.setTransform(i,0,0,i,0,0),!0):!1}var e4=(function(){let t=!1;try{let n={get passive(){return t=!0,!1}};Jx()&&(window.addEventListener("test",null,n),window.removeEventListener("test",null,n))}catch{}return t})();function xT(t,n){let e=bre(t,n),i=e&&e.match(/^(\d+)(\.\d+)?px$/);return i?+i[1]:void 0}function Mc(t,n,e,i){return{x:t.x+e*(n.x-t.x),y:t.y+e*(n.y-t.y)}}function t4(t,n,e,i){return{x:t.x+e*(n.x-t.x),y:i==="middle"?e<.5?t.y:n.y:i==="after"?e<1?t.y:n.y:e>0?n.y:t.y}}function i4(t,n,e,i){let r={x:t.cp2x,y:t.cp2y},o={x:n.cp1x,y:n.cp1y},a=Mc(t,r,e),s=Mc(r,o,e),l=Mc(o,n,e),c=Mc(a,s,e),d=Mc(s,l,e);return Mc(c,d,e)}var wre=function(t,n){return{x(e){return t+t+n-e},setWidth(e){n=e},textAlign(e){return e==="center"?e:e==="right"?"left":"right"},xPlus(e,i){return e-i},leftForLtr(e,i){return e-i}}},Dre=function(){return{x(t){return t},setWidth(t){},textAlign(t){return t},xPlus(t,n){return t+n},leftForLtr(t,n){return t}}};function Su(t,n,e){return t?wre(n,e):Dre()}function CT(t,n){let e,i;(n==="ltr"||n==="rtl")&&(e=t.canvas.style,i=[e.getPropertyValue("direction"),e.getPropertyPriority("direction")],e.setProperty("direction",n,"important"),t.prevTextDirection=i)}function wT(t,n){n!==void 0&&(delete t.prevTextDirection,t.canvas.style.setProperty("direction",n[0],n[1]))}function n4(t){return t==="angle"?{between:$h,compare:Hne,normalize:sr}:{between:As,compare:(n,e)=>n-e,normalize:n=>n}}function Sj({start:t,end:n,count:e,loop:i,style:r}){return{start:t%e,end:n%e,loop:i&&(n-t+1)%e===0,style:r}}function Ere(t,n,e){let{property:i,start:r,end:o}=e,{between:a,normalize:s}=n4(i),l=n.length,{start:c,end:d,loop:p}=t,_,b;if(p){for(c+=l,d+=l,_=0,b=l;_l(r,W,D)&&s(r,W)!==0,K=()=>s(o,D)===0||l(o,W,D),oe=()=>w||Z(),ke=()=>!w||K();for(let ve=d,Ve=d;ve<=p;++ve)F=n[ve%a],!F.skip&&(D=c(F[i]),D!==W&&(w=l(D,r,o),C===null&&oe()&&(C=s(D,r)===0?ve:Ve),C!==null&&ke()&&(y.push(Sj({start:C,end:ve,loop:_,count:a,style:b})),C=null),Ve=ve,W=D));return C!==null&&y.push(Sj({start:C,end:p,loop:_,count:a,style:b})),y}function ET(t,n){let e=[],i=t.segments;for(let r=0;rr&&t[o%n].skip;)o--;return o%=n,{start:r,end:o}}function Sre(t,n,e,i){let r=t.length,o=[],a=n,s=t[n],l;for(l=n+1;l<=e;++l){let c=t[l%r];c.skip||c.stop?s.skip||(i=!1,o.push({start:n%r,end:(l-1)%r,loop:i}),n=a=c.stop?l:null):(a=l,s.skip&&(n=l)),s=c}return a!==null&&o.push({start:n%r,end:a%r,loop:i}),o}function r4(t,n){let e=t.points,i=t.options.spanGaps,r=e.length;if(!r)return[];let o=!!t._loop,{start:a,end:s}=Mre(e,r,o,i);if(i===!0)return kj(t,[{start:a,end:s,loop:o}],e,n);let l=ss({chart:n,initial:e.initial,numSteps:a,currentStep:Math.min(i-e.start,a)}))}_refresh(){this._request||(this._running=!0,this._request=sT.call(window,()=>{this._update(),this._request=null,this._running&&this._refresh()}))}_update(n=Date.now()){let e=0;this._charts.forEach((i,r)=>{if(!i.running||!i.items.length)return;let o=i.items,a=o.length-1,s=!1,l;for(;a>=0;--a)l=o[a],l._active?(l._total>i.duration&&(i.duration=l._total),l.tick(n),s=!0):(o[a]=o[o.length-1],o.pop());s&&(r.draw(),this._notify(r,i,n,"progress")),o.length||(i.running=!1,this._notify(r,i,n,"complete"),i.initial=!1),e+=o.length}),this._lastDate=n,e===0&&(this._running=!1)}_getAnims(n){let e=this._charts,i=e.get(n);return i||(i={running:!1,initial:!0,items:[],listeners:{complete:[],progress:[]}},e.set(n,i)),i}listen(n,e,i){this._getAnims(n).listeners[e].push(i)}add(n,e){!e||!e.length||this._getAnims(n).items.push(...e)}has(n){return this._getAnims(n).items.length>0}start(n){let e=this._charts.get(n);e&&(e.running=!0,e.start=Date.now(),e.duration=e.items.reduce((i,r)=>Math.max(i,r._duration),0),this._refresh())}running(n){if(!this._running)return!1;let e=this._charts.get(n);return!(!e||!e.running||!e.items.length)}stop(n){let e=this._charts.get(n);if(!e||!e.items.length)return;let i=e.items,r=i.length-1;for(;r>=0;--r)i[r].cancel();e.items=[],this._notify(n,e,Date.now(),"complete")}remove(n){return this._charts.delete(n)}},xl=new VT,o4="transparent",Are={boolean(t,n,e){return e>.5?n:t},color(t,n,e){let i=mT(t||o4),r=i.valid&&mT(n||o4);return r&&r.valid?r.mix(i,e).hexString():n},number(t,n,e){return t+(n-t)*e}},BT=class{constructor(n,e,i,r){let o=e[i];r=qh([n.to,r,o,n.from]);let a=qh([n.from,o,r]);this._active=!0,this._fn=n.fn||Are[n.type||typeof a],this._easing=Vh[n.easing]||Vh.linear,this._start=Math.floor(Date.now()+(n.delay||0)),this._duration=this._total=Math.floor(n.duration),this._loop=!!n.loop,this._target=e,this._prop=i,this._from=a,this._to=r,this._promises=void 0}active(){return this._active}update(n,e,i){if(this._active){this._notify(!1);let r=this._target[this._prop],o=i-this._start,a=this._duration-o;this._start=i,this._duration=Math.floor(Math.max(a,n.duration)),this._total+=o,this._loop=!!n.loop,this._to=qh([n.to,e,r,n.from]),this._from=qh([n.from,r,e])}}cancel(){this._active&&(this.tick(Date.now()),this._active=!1,this._notify(!1))}tick(n){let e=n-this._start,i=this._duration,r=this._prop,o=this._from,a=this._loop,s=this._to,l;if(this._active=o!==s&&(a||e1?2-l:l,l=this._easing(Math.min(1,Math.max(0,l))),this._target[r]=this._fn(o,s,l)}wait(){let n=this._promises||(this._promises=[]);return new Promise((e,i)=>{n.push({res:e,rej:i})})}_notify(n){let e=n?"res":"rej",i=this._promises||[];for(let r=0;r{let o=n[r];if(!At(o))return;let a={};for(let s of e)a[s]=o[s];(Ti(o.properties)&&o.properties||[r]).forEach(s=>{(s===r||!i.has(s))&&i.set(s,a)})})}_animateOptions(n,e){let i=e.options,r=Rre(n,i);if(!r)return[];let o=this._createAnimations(r,i);return i.$shared&&Ore(n.options.$animations,i).then(()=>{n.options=i},()=>{}),o}_createAnimations(n,e){let i=this._properties,r=[],o=n.$animations||(n.$animations={}),a=Object.keys(e),s=Date.now(),l;for(l=a.length-1;l>=0;--l){let c=a[l];if(c.charAt(0)==="$")continue;if(c==="options"){r.push(...this._animateOptions(n,e));continue}let d=e[c],p=o[c],_=i.get(c);if(p)if(_&&p.active()){p.update(_,d,s);continue}else p.cancel();if(!_||!_.duration){n[c]=d;continue}o[c]=p=new BT(_,n,c,d),r.push(p)}return r}update(n,e){if(this._properties.size===0){Object.assign(n,e);return}let i=this._createAnimations(n,e);if(i.length)return xl.add(this._chart,i),!0}};function Ore(t,n){let e=[],i=Object.keys(n);for(let r=0;r0||!e&&o<0)return r.index}return null}function c4(t,n){let{chart:e,_cachedMeta:i}=t,r=e._stacks||(e._stacks={}),{iScale:o,vScale:a,index:s}=i,l=o.axis,c=a.axis,d=Lre(o,a,i),p=n.length,_;for(let b=0;be[i].axis===n).shift()}function jre(t,n){return yl(t,{active:!1,dataset:void 0,datasetIndex:n,index:n,mode:"default",type:"dataset"})}function Hre(t,n,e){return yl(t,{active:!1,dataIndex:n,parsed:void 0,raw:void 0,element:e,index:n,mode:"default",type:"data"})}function qg(t,n){let e=t.controller.index,i=t.vScale&&t.vScale.axis;if(i){n=n||t._parsed;for(let r of n){let o=r._stacks;if(!o||o[i]===void 0||o[i][e]===void 0)return;delete o[i][e],o[i]._visualValues!==void 0&&o[i]._visualValues[e]!==void 0&&delete o[i]._visualValues[e]}}}var TT=t=>t==="reset"||t==="none",d4=(t,n)=>n?t:Object.assign({},t),zre=(t,n,e)=>t&&!n.hidden&&n._stacked&&{keys:o5(e,!0),values:null},Pc=(()=>{class t{static defaults={};static datasetElementType=null;static dataElementType=null;constructor(e,i){this.chart=e,this._ctx=e.ctx,this.index=i,this._cachedDataOpts={},this._cachedMeta=this.getMeta(),this._type=this._cachedMeta.type,this.options=void 0,this._parsing=!1,this._data=void 0,this._objectData=void 0,this._sharedOptions=void 0,this._drawStart=void 0,this._drawCount=void 0,this.enableOptionSharing=!1,this.supportsDecimation=!1,this.$context=void 0,this._syncList=[],this.datasetElementType=new.target.datasetElementType,this.dataElementType=new.target.dataElementType,this.initialize()}initialize(){let e=this._cachedMeta;this.configure(),this.linkScales(),e._stacked=ST(e.vScale,e),this.addElements(),this.options.fill&&!this.chart.isPluginEnabled("filler")&&console.warn("Tried to use the 'fill' option without the 'Filler' plugin enabled. Please import and register the 'Filler' plugin and make sure it is not disabled in the options")}updateIndex(e){this.index!==e&&qg(this._cachedMeta),this.index=e}linkScales(){let e=this.chart,i=this._cachedMeta,r=this.getDataset(),o=(_,b,y,w)=>_==="x"?b:_==="r"?w:y,a=i.xAxisID=lt(r.xAxisID,kT(e,"x")),s=i.yAxisID=lt(r.yAxisID,kT(e,"y")),l=i.rAxisID=lt(r.rAxisID,kT(e,"r")),c=i.indexAxis,d=i.iAxisID=o(c,a,s,l),p=i.vAxisID=o(c,s,a,l);i.xScale=this.getScaleForId(a),i.yScale=this.getScaleForId(s),i.rScale=this.getScaleForId(l),i.iScale=this.getScaleForId(d),i.vScale=this.getScaleForId(p)}getDataset(){return this.chart.data.datasets[this.index]}getMeta(){return this.chart.getDatasetMeta(this.index)}getScaleForId(e){return this.chart.scales[e]}_getOtherScale(e){let i=this._cachedMeta;return e===i.iScale?i.vScale:i.iScale}reset(){this._update("reset")}_destroy(){let e=this._cachedMeta;this._data&&oT(this._data,this),e._stacked&&qg(e)}_dataCheck(){let e=this.getDataset(),i=e.data||(e.data=[]),r=this._data;if(At(i)){let o=this._cachedMeta;this._data=Nre(i,o)}else if(r!==i){if(r){oT(r,this);let o=this._cachedMeta;qg(o),o._parsed=[]}i&&Object.isExtensible(i)&&jj(i,this),this._syncList=[],this._data=i}}addElements(){let e=this._cachedMeta;this._dataCheck(),this.datasetElementType&&(e.dataset=new this.datasetElementType)}buildOrUpdateElements(e){let i=this._cachedMeta,r=this.getDataset(),o=!1;this._dataCheck();let a=i._stacked;i._stacked=ST(i.vScale,i),i.stack!==r.stack&&(o=!0,qg(i),i.stack=r.stack),this._resyncElements(e),(o||a!==i._stacked)&&(c4(this,i._parsed),i._stacked=ST(i.vScale,i))}configure(){let e=this.chart.config,i=e.datasetScopeKeys(this._type),r=e.getOptionScopes(this.getDataset(),i,!0);this.options=e.createResolver(r,this.getContext()),this._parsing=this.options.parsing,this._cachedDataOpts={}}parse(e,i){let{_cachedMeta:r,_data:o}=this,{iScale:a,_stacked:s}=r,l=a.axis,c=e===0&&i===o.length?!0:r._sorted,d=e>0&&r._parsed[e-1],p,_,b;if(this._parsing===!1)r._parsed=o,r._sorted=!0,b=o;else{Ti(o[e])?b=this.parseArrayData(r,o,e,i):At(o[e])?b=this.parseObjectData(r,o,e,i):b=this.parsePrimitiveData(r,o,e,i);let y=()=>_[l]===null||d&&_[l]C||_=0;--b)if(!w()){this.updateRangeFromParsed(d,e,y,c);break}}return d}getAllParsedValues(e){let i=this._cachedMeta._parsed,r=[],o,a,s;for(o=0,a=i.length;o=0&&ethis.getContext(r,o,i),C=d.resolveNamedOptions(b,y,w,_);return C.$shared&&(C.$shared=c,a[s]=Object.freeze(d4(C,c))),C}_resolveAnimations(e,i,r){let o=this.chart,a=this._cachedDataOpts,s=`animation-${i}`,l=a[s];if(l)return l;let c;if(o.options.animation!==!1){let p=this.chart.config,_=p.datasetAnimationScopeKeys(this._type,i),b=p.getOptionScopes(this.getDataset(),_);c=p.createResolver(b,this.getContext(e,r,i))}let d=new dC(o,c&&c.animations);return c&&c._cacheable&&(a[s]=Object.freeze(d)),d}getSharedOptions(e){if(e.$shared)return this._sharedOptions||(this._sharedOptions=Object.assign({},e))}includeOptions(e,i){return!i||TT(e)||this.chart._animationsDisabled}_getSharedOptions(e,i){let r=this.resolveDataElementOptions(e,i),o=this._sharedOptions,a=this.getSharedOptions(r),s=this.includeOptions(i,a)||a!==o;return this.updateSharedOptions(a,i,r),{sharedOptions:a,includeOptions:s}}updateElement(e,i,r,o){TT(o)?Object.assign(e,r):this._resolveAnimations(i,o).update(e,r)}updateSharedOptions(e,i,r){e&&!TT(i)&&this._resolveAnimations(void 0,i).update(e,r)}_setStyle(e,i,r,o){e.active=o;let a=this.getStyle(i,o);this._resolveAnimations(i,r,o).update(e,{options:!o&&this.getSharedOptions(a)||a})}removeHoverStyle(e,i,r){this._setStyle(e,r,"active",!1)}setHoverStyle(e,i,r){this._setStyle(e,r,"active",!0)}_removeDatasetHoverStyle(){let e=this._cachedMeta.dataset;e&&this._setStyle(e,void 0,"active",!1)}_setDatasetHoverStyle(){let e=this._cachedMeta.dataset;e&&this._setStyle(e,void 0,"active",!0)}_resyncElements(e){let i=this._data,r=this._cachedMeta.data;for(let[l,c,d]of this._syncList)this[l](c,d);this._syncList=[];let o=r.length,a=i.length,s=Math.min(a,o);s&&this.parse(0,s),a>o?this._insertElements(o,a-o,e):a{for(d.length+=i,l=d.length-1;l>=s;l--)d[l]=d[l-i]};for(c(a),l=e;lr-o))}return t._cache.$bar}function $re(t){let n=t.iScale,e=Ure(n,t.type),i=n._length,r,o,a,s,l=()=>{a===32767||a===-32768||(zh(s)&&(i=Math.min(i,Math.abs(a-s)||i)),s=a)};for(r=0,o=e.length;r0?r[t-1]:null,s=tMath.abs(s)&&(l=s,c=a),n[e.axis]=c,n._custom={barStart:l,barEnd:c,start:r,end:o,min:a,max:s}}function a5(t,n,e,i){return Ti(t)?qre(t,n,e,i):n[e.axis]=e.parse(t,i),n}function u4(t,n,e,i){let r=t.iScale,o=t.vScale,a=r.getLabels(),s=r===o,l=[],c,d,p,_;for(c=e,d=e+i;c=e?1:-1)}function Qre(t){let n,e,i,r,o;return t.horizontal?(n=t.base>t.x,e="left",i="right"):(n=t.base{class t extends Pc{static id="bar";static defaults={datasetElementType:!1,dataElementType:"bar",categoryPercentage:.8,barPercentage:.9,grouped:!0,animations:{numbers:{type:"number",properties:["x","y","base","width","height"]}}};static overrides={scales:{_index_:{type:"category",offset:!0,grid:{offset:!0}},_value_:{type:"linear",beginAtZero:!0}}};parsePrimitiveData(e,i,r,o){return u4(e,i,r,o)}parseArrayData(e,i,r,o){return u4(e,i,r,o)}parseObjectData(e,i,r,o){let{iScale:a,vScale:s}=e,{xAxisKey:l="x",yAxisKey:c="y"}=this._parsing,d=a.axis==="x"?l:c,p=s.axis==="x"?l:c,_=[],b,y,w,C;for(b=r,y=r+o;bp.controller.options.grouped),a=r.options.stacked,s=[],l=this._cachedMeta.controller.getParsed(i),c=l&&l[r.axis],d=p=>{let _=p._parsed.find(y=>y[r.axis]===c),b=_&&_[p.vScale.axis];if(Tt(b)||isNaN(b))return!0};for(let p of o)if(!(i!==void 0&&d(p))&&((a===!1||s.indexOf(p.stack)===-1||a===void 0&&p.stack===void 0)&&s.push(p.stack),p.index===e))break;return s.length||s.push(void 0),s}_getStackCount(e){return this._getStacks(void 0,e).length}_getAxisCount(){return this._getAxis().length}getFirstScaleIdForIndexAxis(){let e=this.chart.scales,i=this.chart.options.indexAxis;return Object.keys(e).filter(r=>e[r].axis===i).shift()}_getAxis(){let e={},i=this.getFirstScaleIdForIndexAxis();for(let r of this.chart.data.datasets)e[lt(this.chart.options.indexAxis==="x"?r.xAxisID:r.yAxisID,i)]=!0;return Object.keys(e)}_getStackIndex(e,i,r){let o=this._getStacks(e,r),a=i!==void 0?o.indexOf(i):-1;return a===-1?o.length-1:a}_getRuler(){let e=this.options,i=this._cachedMeta,r=i.iScale,o=[],a,s;for(a=0,s=i.data.length;a{class t extends Pc{static id="bubble";static defaults={datasetElementType:!1,dataElementType:"point",animations:{numbers:{type:"number",properties:["x","y","borderWidth","radius"]}}};static overrides={scales:{x:{type:"linear"},y:{type:"linear"}}};initialize(){this.enableOptionSharing=!0,super.initialize()}parsePrimitiveData(e,i,r,o){let a=super.parsePrimitiveData(e,i,r,o);for(let s=0;s=0;--r)i=Math.max(i,e[r].size(this.resolveDataElementOptions(r))/2);return i>0&&i}getLabelAndValue(e){let i=this._cachedMeta,r=this.chart.data.labels||[],{xScale:o,yScale:a}=i,s=this.getParsed(e),l=o.getLabelForValue(s.x),c=a.getLabelForValue(s.y),d=s._custom;return{label:r[e]||"",value:"("+l+", "+c+(d?", "+d:"")+")"}}update(e){let i=this._cachedMeta.data;this.updateElements(i,0,i.length,e)}updateElements(e,i,r,o){let a=o==="reset",{iScale:s,vScale:l}=this._cachedMeta,{sharedOptions:c,includeOptions:d}=this._getSharedOptions(i,o),p=s.axis,_=l.axis;for(let b=i;b$h(W,s,l,!0)?1:Math.max(Z,Z*e,K,K*e),y=(W,Z,K)=>$h(W,s,l,!0)?-1:Math.min(Z,Z*e,K,K*e),w=b(0,c,p),C=b(tn,d,_),D=y($t,c,p),F=y($t+tn,d,_);i=(w-D)/2,r=(C-F)/2,o=-(w+D)/2,a=-(C+F)/2}return{ratioX:i,ratioY:r,offsetX:o,offsetY:a}}var oI=(()=>{class t extends Pc{static id="doughnut";static defaults={datasetElementType:!1,dataElementType:"arc",animation:{animateRotate:!0,animateScale:!1},animations:{numbers:{type:"number",properties:["circumference","endAngle","innerRadius","outerRadius","startAngle","x","y","offset","borderWidth","spacing"]}},cutout:"50%",rotation:0,circumference:360,radius:"100%",spacing:0,indexAxis:"r"};static descriptors={_scriptable:e=>e!=="spacing",_indexable:e=>e!=="spacing"&&!e.startsWith("borderDash")&&!e.startsWith("hoverBorderDash")};static overrides={aspectRatio:1,plugins:{legend:{labels:{generateLabels(e){let i=e.data,{labels:{pointStyle:r,textAlign:o,color:a,useBorderRadius:s,borderRadius:l}}=e.legend.options;return i.labels.length&&i.datasets.length?i.labels.map((c,d)=>{let _=e.getDatasetMeta(0).controller.getStyle(d);return{text:c,fillStyle:_.backgroundColor,fontColor:a,hidden:!e.getDataVisibility(d),lineDash:_.borderDash,lineDashOffset:_.borderDashOffset,lineJoin:_.borderJoinStyle,lineWidth:_.borderWidth,strokeStyle:_.borderColor,textAlign:o,pointStyle:r,borderRadius:s&&(l||_.borderRadius),index:d}}):[]}},onClick(e,i,r){r.chart.toggleDataVisibility(i.index),r.chart.update()}}}};constructor(e,i){super(e,i),this.enableOptionSharing=!0,this.innerRadius=void 0,this.outerRadius=void 0,this.offsetX=void 0,this.offsetY=void 0}linkScales(){}parse(e,i){let r=this.getDataset().data,o=this._cachedMeta;if(this._parsing===!1)o._parsed=r;else{let a=c=>+r[c];if(At(r[e])){let{key:c="value"}=this._parsing;a=d=>+vl(r[d],c)}let s,l;for(s=e,l=e+i;s0&&!isNaN(e)?Ii*(Math.abs(e)/i):0}getLabelAndValue(e){let i=this._cachedMeta,r=this.chart,o=r.data.labels||[],a=Wh(i._parsed[e],r.options.locale);return{label:o[e]||"",value:a}}getMaxBorderWidth(e){let i=0,r=this.chart,o,a,s,l,c;if(!e){for(o=0,a=r.data.datasets.length;o{class t extends Pc{static id="line";static defaults={datasetElementType:"line",dataElementType:"point",showLine:!0,spanGaps:!1};static overrides={scales:{_index_:{type:"category"},_value_:{type:"linear"}}};initialize(){this.enableOptionSharing=!0,this.supportsDecimation=!0,super.initialize()}update(e){let i=this._cachedMeta,{dataset:r,data:o=[],_dataset:a}=i,s=this.chart._animationsDisabled,{start:l,count:c}=cT(i,o,s);this._drawStart=l,this._drawCount=c,dT(i)&&(l=0,c=o.length),r._chart=this.chart,r._datasetIndex=this.index,r._decimated=!!a._decimated,r.points=o;let d=this.resolveDatasetElementOptions(e);this.options.showLine||(d.borderWidth=0),d.segment=this.options.segment,this.updateElement(r,void 0,{animated:!s,options:d},e),this.updateElements(o,l,c,e)}updateElements(e,i,r,o){let a=o==="reset",{iScale:s,vScale:l,_stacked:c,_dataset:d}=this._cachedMeta,{sharedOptions:p,includeOptions:_}=this._getSharedOptions(i,o),b=s.axis,y=l.axis,{spanGaps:w,segment:C}=this.options,D=Mu(w)?w:Number.POSITIVE_INFINITY,F=this.chart._animationsDisabled||a||o==="none",W=i+r,Z=e.length,K=i>0&&this.getParsed(i-1);for(let oe=0;oe=W){ve.skip=!0;continue}let Ve=this.getParsed(oe),yt=Tt(Ve[y]),vt=ve[b]=s.getPixelForValue(Ve[b],oe),Rt=ve[y]=a||yt?l.getBasePixel():l.getPixelForValue(c?this.applyStack(l,Ve,c):Ve[y],oe);ve.skip=isNaN(vt)||isNaN(Rt)||yt,ve.stop=oe>0&&Math.abs(Ve[b]-K[b])>D,C&&(ve.parsed=Ve,ve.raw=d.data[oe]),_&&(ve.options=p||this.resolveDataElementOptions(oe,ke.active?"active":o)),F||this.updateElement(ke,oe,ve,o),K=Ve}}getMaxOverflow(){let e=this._cachedMeta,i=e.dataset,r=i.options&&i.options.borderWidth||0,o=e.data||[];if(!o.length)return r;let a=o[0].size(this.resolveDataElementOptions(0)),s=o[o.length-1].size(this.resolveDataElementOptions(o.length-1));return Math.max(r,a,s)/2}draw(){let e=this._cachedMeta;e.dataset.updateControlPoints(this.chart.chartArea,e.iScale.axis),super.draw()}}return t})(),s5=(()=>{class t extends Pc{static id="polarArea";static defaults={dataElementType:"arc",animation:{animateRotate:!0,animateScale:!0},animations:{numbers:{type:"number",properties:["x","y","startAngle","endAngle","innerRadius","outerRadius"]}},indexAxis:"r",startAngle:0};static overrides={aspectRatio:1,plugins:{legend:{labels:{generateLabels(e){let i=e.data;if(i.labels.length&&i.datasets.length){let{labels:{pointStyle:r,color:o}}=e.legend.options;return i.labels.map((a,s)=>{let c=e.getDatasetMeta(0).controller.getStyle(s);return{text:a,fillStyle:c.backgroundColor,strokeStyle:c.borderColor,fontColor:o,lineWidth:c.borderWidth,pointStyle:r,hidden:!e.getDataVisibility(s),index:s}})}return[]}},onClick(e,i,r){r.chart.toggleDataVisibility(i.index),r.chart.update()}}},scales:{r:{type:"radialLinear",angleLines:{display:!1},beginAtZero:!0,grid:{circular:!0},pointLabels:{display:!1},startAngle:0}}};constructor(e,i){super(e,i),this.innerRadius=void 0,this.outerRadius=void 0}getLabelAndValue(e){let i=this._cachedMeta,r=this.chart,o=r.data.labels||[],a=Wh(i._parsed[e].r,r.options.locale);return{label:o[e]||"",value:a}}parseObjectData(e,i,r,o){return vT.bind(this)(e,i,r,o)}update(e){let i=this._cachedMeta.data;this._updateRadius(),this.updateElements(i,0,i.length,e)}getMinMax(){let e=this._cachedMeta,i={min:Number.POSITIVE_INFINITY,max:Number.NEGATIVE_INFINITY};return e.data.forEach((r,o)=>{let a=this.getParsed(o).r;!isNaN(a)&&this.chart.getDataVisibility(o)&&(ai.max&&(i.max=a))}),i}_updateRadius(){let e=this.chart,i=e.chartArea,r=e.options,o=Math.min(i.right-i.left,i.bottom-i.top),a=Math.max(o/2,0),s=Math.max(r.cutoutPercentage?a/100*r.cutoutPercentage:1,0),l=(a-s)/e.getVisibleDatasetCount();this.outerRadius=a-l*this.index,this.innerRadius=this.outerRadius-l}updateElements(e,i,r,o){let a=o==="reset",s=this.chart,c=s.options.animation,d=this._cachedMeta.rScale,p=d.xCenter,_=d.yCenter,b=d.getIndexAngle(0)-.5*$t,y=b,w,C=360/this.countVisibleElements();for(w=0;w{!isNaN(this.getParsed(o).r)&&this.chart.getDataVisibility(o)&&i++}),i}_computeAngle(e,i,r){return this.chart.getDataVisibility(e)?sa(this.resolveDataElementOptions(e,i).angle||r):0}}return t})(),noe=(()=>{class t extends oI{static id="pie";static defaults={cutout:0,rotation:0,circumference:360,radius:"100%"}}return t})(),roe=(()=>{class t extends Pc{static id="radar";static defaults={datasetElementType:"line",dataElementType:"point",indexAxis:"r",showLine:!0,elements:{line:{fill:"start"}}};static overrides={aspectRatio:1,scales:{r:{type:"radialLinear"}}};getLabelAndValue(e){let i=this._cachedMeta.vScale,r=this.getParsed(e);return{label:i.getLabels()[e],value:""+i.getLabelForValue(r[i.axis])}}parseObjectData(e,i,r,o){return vT.bind(this)(e,i,r,o)}update(e){let i=this._cachedMeta,r=i.dataset,o=i.data||[],a=i.iScale.getLabels();if(r.points=o,e!=="resize"){let s=this.resolveDatasetElementOptions(e);this.options.showLine||(s.borderWidth=0);let l={_loop:!0,_fullLoop:a.length===o.length,options:s};this.updateElement(r,void 0,l,e)}this.updateElements(o,0,o.length,e)}updateElements(e,i,r,o){let a=this._cachedMeta.rScale,s=o==="reset";for(let l=i;l{class t extends Pc{static id="scatter";static defaults={datasetElementType:!1,dataElementType:"point",showLine:!1,fill:!1};static overrides={interaction:{mode:"point"},scales:{x:{type:"linear"},y:{type:"linear"}}};getLabelAndValue(e){let i=this._cachedMeta,r=this.chart.data.labels||[],{xScale:o,yScale:a}=i,s=this.getParsed(e),l=o.getLabelForValue(s.x),c=a.getLabelForValue(s.y);return{label:r[e]||"",value:"("+l+", "+c+")"}}update(e){let i=this._cachedMeta,{data:r=[]}=i,o=this.chart._animationsDisabled,{start:a,count:s}=cT(i,r,o);if(this._drawStart=a,this._drawCount=s,dT(i)&&(a=0,s=r.length),this.options.showLine){this.datasetElementType||this.addElements();let{dataset:l,_dataset:c}=i;l._chart=this.chart,l._datasetIndex=this.index,l._decimated=!!c._decimated,l.points=r;let d=this.resolveDatasetElementOptions(e);d.segment=this.options.segment,this.updateElement(l,void 0,{animated:!o,options:d},e)}else this.datasetElementType&&(delete i.dataset,this.datasetElementType=!1);this.updateElements(r,a,s,e)}addElements(){let{showLine:e}=this.options;!this.datasetElementType&&e&&(this.datasetElementType=this.chart.registry.getElement("line")),super.addElements()}updateElements(e,i,r,o){let a=o==="reset",{iScale:s,vScale:l,_stacked:c,_dataset:d}=this._cachedMeta,p=this.resolveDataElementOptions(i,o),_=this.getSharedOptions(p),b=this.includeOptions(o,_),y=s.axis,w=l.axis,{spanGaps:C,segment:D}=this.options,F=Mu(C)?C:Number.POSITIVE_INFINITY,W=this.chart._animationsDisabled||a||o==="none",Z=i>0&&this.getParsed(i-1);for(let K=i;K0&&Math.abs(ke[y]-Z[y])>F,D&&(ve.parsed=ke,ve.raw=d.data[K]),b&&(ve.options=_||this.resolveDataElementOptions(K,oe.active?"active":o)),W||this.updateElement(oe,K,ve,o),Z=ke}this.updateSharedOptions(_,o,p)}getMaxOverflow(){let e=this._cachedMeta,i=e.data||[];if(!this.options.showLine){let l=0;for(let c=i.length-1;c>=0;--c)l=Math.max(l,i[c].size(this.resolveDataElementOptions(c))/2);return l>0&&l}let r=e.dataset,o=r.options&&r.options.borderWidth||0;if(!i.length)return o;let a=i[0].size(this.resolveDataElementOptions(0)),s=i[i.length-1].size(this.resolveDataElementOptions(i.length-1));return Math.max(o,a,s)/2}}return t})(),aoe=Object.freeze({__proto__:null,BarController:Jre,BubbleController:eoe,DoughnutController:oI,LineController:ioe,PieController:noe,PolarAreaController:s5,RadarController:roe,ScatterController:ooe});function ku(){throw new Error("This method is not implemented: Check that a complete date adapter is provided.")}var jT=class t{static override(n){Object.assign(t.prototype,n)}options;constructor(n){this.options=n||{}}init(){}formats(){return ku()}parse(){return ku()}format(){return ku()}add(){return ku()}diff(){return ku()}startOf(){return ku()}endOf(){return ku()}},soe={_date:jT};function loe(t,n,e,i){let{controller:r,data:o,_sorted:a}=t,s=r._cachedMeta.iScale,l=t.dataset&&t.dataset.options?t.dataset.options.spanGaps:null;if(s&&n===s.axis&&n!=="r"&&a&&o.length){let c=s._reversePixels?Lj:ks;if(i){if(r._sharedOptions){let d=o[0],p=typeof d.getRange=="function"&&d.getRange(n);if(p){let _=c(o,n,e-p),b=c(o,n,e+p);return{lo:_.lo,hi:b.hi}}}}else{let d=c(o,n,e);if(l){let{vScale:p}=r._cachedMeta,{_parsed:_}=t,b=_.slice(0,d.lo+1).reverse().findIndex(w=>!Tt(w[p.axis]));d.lo-=Math.max(0,b);let y=_.slice(d.hi).findIndex(w=>!Tt(w[p.axis]));d.hi+=Math.max(0,y)}return d}}return{lo:0,hi:o.length-1}}function n_(t,n,e,i,r){let o=t.getSortedVisibleDatasetMetas(),a=e[n];for(let s=0,l=o.length;s{l[a]&&l[a](n[e],r)&&(o.push({element:l,datasetIndex:c,index:d}),s=s||l.inRange(n.x,n.y,r))}),i&&!s?[]:o}var moe={evaluateInteractionItems:n_,modes:{index(t,n,e,i){let r=Oc(n,t),o=e.axis||"x",a=e.includeInvisible||!1,s=e.intersect?AT(t,r,o,i,a):OT(t,r,o,!1,i,a),l=[];return s.length?(t.getSortedVisibleDatasetMetas().forEach(c=>{let d=s[0].index,p=c.data[d];p&&!p.skip&&l.push({element:p,datasetIndex:c.index,index:d})}),l):[]},dataset(t,n,e,i){let r=Oc(n,t),o=e.axis||"xy",a=e.includeInvisible||!1,s=e.intersect?AT(t,r,o,i,a):OT(t,r,o,!1,i,a);if(s.length>0){let l=s[0].datasetIndex,c=t.getDatasetMeta(l).data;s=[];for(let d=0;de.pos===n)}function f4(t,n){return t.filter(e=>l5.indexOf(e.pos)===-1&&e.box.axis===n)}function Qg(t,n){return t.sort((e,i)=>{let r=n?i:e,o=n?e:i;return r.weight===o.weight?r.index-o.index:r.weight-o.weight})}function hoe(t){let n=[],e,i,r,o,a,s;for(e=0,i=(t||[]).length;ec.box.fullSize),!0),i=Qg(Yg(n,"left"),!0),r=Qg(Yg(n,"right")),o=Qg(Yg(n,"top"),!0),a=Qg(Yg(n,"bottom")),s=f4(n,"x"),l=f4(n,"y");return{fullSize:e,leftAndTop:i.concat(o),rightAndBottom:r.concat(l).concat(a).concat(s),chartArea:Yg(n,"chartArea"),vertical:i.concat(r).concat(l),horizontal:o.concat(a).concat(s)}}function g4(t,n,e,i){return Math.max(t[e],n[e])+Math.max(t[i],n[i])}function c5(t,n){t.top=Math.max(t.top,n.top),t.left=Math.max(t.left,n.left),t.bottom=Math.max(t.bottom,n.bottom),t.right=Math.max(t.right,n.right)}function _oe(t,n,e,i){let{pos:r,box:o}=e,a=t.maxPadding;if(!At(r)){e.size&&(t[r]-=e.size);let p=i[e.stack]||{size:0,count:1};p.size=Math.max(p.size,e.horizontal?o.height:o.width),e.size=p.size/p.count,t[r]+=e.size}o.getPadding&&c5(a,o.getPadding());let s=Math.max(0,n.outerWidth-g4(a,t,"left","right")),l=Math.max(0,n.outerHeight-g4(a,t,"top","bottom")),c=s!==t.w,d=l!==t.h;return t.w=s,t.h=l,e.horizontal?{same:c,other:d}:{same:d,other:c}}function boe(t){let n=t.maxPadding;function e(i){let r=Math.max(n[i]-t[i],0);return t[i]+=r,r}t.y+=e("top"),t.x+=e("left"),e("right"),e("bottom")}function voe(t,n){let e=n.maxPadding;function i(r){let o={left:0,top:0,right:0,bottom:0};return r.forEach(a=>{o[a]=Math.max(n[a],e[a])}),o}return i(t?["left","right"]:["top","bottom"])}function Xg(t,n,e,i){let r=[],o,a,s,l,c,d;for(o=0,a=t.length,c=0;o{typeof w.beforeLayout=="function"&&w.beforeLayout()});let d=l.reduce((w,C)=>C.box.options&&C.box.options.display===!1?w:w+1,0)||1,p=Object.freeze({outerWidth:n,outerHeight:e,padding:r,availableWidth:o,availableHeight:a,vBoxMaxWidth:o/2/d,hBoxMaxHeight:a/2}),_=Object.assign({},r);c5(_,cr(i));let b=Object.assign({maxPadding:_,w:o,h:a,x:r.left,y:r.top},r),y=foe(l.concat(c),p);Xg(s.fullSize,b,p,y),Xg(l,b,p,y),Xg(c,b,p,y)&&Xg(l,b,p,y),boe(b),_4(s.leftAndTop,b,p,y),b.x+=b.w,b.y+=b.h,_4(s.rightAndBottom,b,p,y),t.chartArea={left:b.left,top:b.top,right:b.left+b.w,bottom:b.top+b.h,height:b.h,width:b.w},ai(s.chartArea,w=>{let C=w.box;Object.assign(C,t.chartArea),C.update(b.w,b.h,{left:0,top:0,right:0,bottom:0})})}},uC=class{acquireContext(n,e){}releaseContext(n){return!1}addEventListener(n,e,i){}removeEventListener(n,e,i){}getDevicePixelRatio(){return 1}getMaximumSize(n,e,i,r){return e=Math.max(0,e||n.width),i=i||n.height,{width:e,height:Math.max(0,r?Math.floor(e/r):i)}}isAttached(n){return!0}updateConfig(n){}},HT=class extends uC{acquireContext(n){return n&&n.getContext&&n.getContext("2d")||null}updateConfig(n){n.options.animation=!1}},lC="$chartjs",yoe={touchstart:"mousedown",touchmove:"mousemove",touchend:"mouseup",pointerenter:"mouseenter",pointerdown:"mousedown",pointermove:"mousemove",pointerup:"mouseup",pointerleave:"mouseout",pointerout:"mouseout"},b4=t=>t===null||t==="";function xoe(t,n){let e=t.style,i=t.getAttribute("height"),r=t.getAttribute("width");if(t[lC]={initial:{height:i,width:r,style:{display:e.display,height:e.height,width:e.width}}},e.display=e.display||"block",e.boxSizing=e.boxSizing||"border-box",b4(r)){let o=xT(t,"width");o!==void 0&&(t.width=o)}if(b4(i))if(t.style.height==="")t.height=t.width/(n||2);else{let o=xT(t,"height");o!==void 0&&(t.height=o)}return t}var d5=e4?{passive:!0}:!1;function Coe(t,n,e){t&&t.addEventListener(n,e,d5)}function woe(t,n,e){t&&t.canvas&&t.canvas.removeEventListener(n,e,d5)}function Doe(t,n){let e=yoe[t.type]||t.type,{x:i,y:r}=Oc(t,n);return{type:e,chart:n,native:t,x:i!==void 0?i:null,y:r!==void 0?r:null}}function mC(t,n){for(let e of t)if(e===n||e.contains(n))return!0}function Eoe(t,n,e){let i=t.canvas,r=new MutationObserver(o=>{let a=!1;for(let s of o)a=a||mC(s.addedNodes,i),a=a&&!mC(s.removedNodes,i);a&&e()});return r.observe(document,{childList:!0,subtree:!0}),r}function Moe(t,n,e){let i=t.canvas,r=new MutationObserver(o=>{let a=!1;for(let s of o)a=a||mC(s.removedNodes,i),a=a&&!mC(s.addedNodes,i);a&&e()});return r.observe(document,{childList:!0,subtree:!0}),r}var e_=new Map,v4=0;function u5(){let t=window.devicePixelRatio;t!==v4&&(v4=t,e_.forEach((n,e)=>{e.currentDevicePixelRatio!==t&&n()}))}function Soe(t,n){e_.size||window.addEventListener("resize",u5),e_.set(t,n)}function koe(t){e_.delete(t),e_.size||window.removeEventListener("resize",u5)}function Toe(t,n,e){let i=t.canvas,r=i&&eC(i);if(!r)return;let o=lT((s,l)=>{let c=r.clientWidth;e(s,l),c{let l=s[0],c=l.contentRect.width,d=l.contentRect.height;c===0&&d===0||o(c,d)});return a.observe(r),Soe(t,o),a}function RT(t,n,e){e&&e.disconnect(),n==="resize"&&koe(t)}function Ioe(t,n,e){let i=t.canvas,r=lT(o=>{t.ctx!==null&&e(Doe(o,t))},t);return Coe(i,n,r),r}var zT=class extends uC{acquireContext(n,e){let i=n&&n.getContext&&n.getContext("2d");return i&&i.canvas===n?(xoe(n,e),i):null}releaseContext(n){let e=n.canvas;if(!e[lC])return!1;let i=e[lC].initial;["height","width"].forEach(o=>{let a=i[o];Tt(a)?e.removeAttribute(o):e.setAttribute(o,a)});let r=i.style||{};return Object.keys(r).forEach(o=>{e.style[o]=r[o]}),e.width=e.width,delete e[lC],!0}addEventListener(n,e,i){this.removeEventListener(n,e);let r=n.$proxies||(n.$proxies={}),a={attach:Eoe,detach:Moe,resize:Toe}[e]||Ioe;r[e]=a(n,e,i)}removeEventListener(n,e){let i=n.$proxies||(n.$proxies={}),r=i[e];if(!r)return;({attach:RT,detach:RT,resize:RT}[e]||woe)(n,e,r),i[e]=void 0}getDevicePixelRatio(){return window.devicePixelRatio}getMaximumSize(n,e,i,r){return Jj(n,e,i,r)}isAttached(n){let e=n&&eC(n);return!!(e&&e.isConnected)}};function Aoe(t){return!Jx()||typeof OffscreenCanvas<"u"&&t instanceof OffscreenCanvas?HT:zT}var za=class{static defaults={};static defaultRoutes=void 0;x;y;active=!1;options;$animations;tooltipPosition(n){let{x:e,y:i}=this.getProps(["x","y"],n);return{x:e,y:i}}hasValue(){return Mu(this.x)&&Mu(this.y)}getProps(n,e){let i=this.$animations;if(!e||!i)return this;let r={};return n.forEach(o=>{r[o]=i[o]&&i[o].active()?i[o]._to:this[o]}),r}};function Ooe(t,n){let e=t.options.ticks,i=Roe(t),r=Math.min(e.maxTicksLimit||i,i),o=e.major.enabled?Foe(n):[],a=o.length,s=o[0],l=o[a-1],c=[];if(a>r)return Noe(n,c,o,a/r),c;let d=Poe(o,n,r);if(a>0){let p,_,b=a>1?Math.round((l-s)/(a-1)):null;for(nC(n,c,d,Tt(b)?0:s-b,s),p=0,_=a-1;p<_;p++)nC(n,c,d,o[p],o[p+1]);return nC(n,c,d,l,Tt(b)?n.length:l+b),c}return nC(n,c,d),c}function Roe(t){let n=t.options.offset,e=t._tickSize(),i=t._length/e+(n?0:1),r=t._maxLength/e;return Math.floor(Math.min(i,r))}function Poe(t,n,e){let i=Loe(t),r=n.length/e;if(!i)return Math.max(r,1);let o=Pj(i);for(let a=0,s=o.length-1;ar)return l}return Math.max(r,1)}function Foe(t){let n=[],e,i;for(e=0,i=t.length;et==="left"?"right":t==="right"?"left":t,y4=(t,n,e)=>n==="top"||n==="left"?t[n]+e:t[n]-e,x4=(t,n)=>Math.min(n||t,t);function C4(t,n){let e=[],i=t.length/n,r=t.length,o=0;for(;oa+s)))return l}function joe(t,n){ai(t,e=>{let i=e.gc,r=i.length/2,o;if(r>n){for(o=0;oi?i:e,i=r&&e>i?e:i,{min:so(e,so(i,e)),max:so(i,so(e,i))}}getPadding(){return{left:this.paddingLeft||0,top:this.paddingTop||0,right:this.paddingRight||0,bottom:this.paddingBottom||0}}getTicks(){return this.ticks}getLabels(){let n=this.chart.data;return this.options.labels||(this.isHorizontal()?n.xLabels:n.yLabels)||n.labels||[]}getLabelItems(n=this.chart.chartArea){return this._labelItems||(this._labelItems=this._computeLabelItems(n))}beforeLayout(){this._cache={},this._dataLimitsCached=!1}beforeUpdate(){wi(this.options.beforeUpdate,[this])}update(n,e,i){let{beginAtZero:r,grace:o,ticks:a}=this.options,s=a.sampleSize;this.beforeUpdate(),this.maxWidth=n,this.maxHeight=e,this._margins=i=Object.assign({left:0,right:0,top:0,bottom:0},i),this.ticks=null,this._labelSizes=null,this._gridLineItems=null,this._labelItems=null,this.beforeSetDimensions(),this.setDimensions(),this.afterSetDimensions(),this._maxLength=this.isHorizontal()?this.width+i.left+i.right:this.height+i.top+i.bottom,this._dataLimitsCached||(this.beforeDataLimits(),this.determineDataLimits(),this.afterDataLimits(),this._range=qj(this,o,r),this._dataLimitsCached=!0),this.beforeBuildTicks(),this.ticks=this.buildTicks()||[],this.afterBuildTicks();let l=s=o||i<=1||!this.isHorizontal()){this.labelRotation=r;return}let d=this._getLabelSizes(),p=d.widest.width,_=d.highest.height,b=Sn(this.chart.width-p,0,this.maxWidth);s=n.offset?this.maxWidth/i:b/(i-1),p+6>s&&(s=b/(i-(n.offset?.5:1)),l=this.maxHeight-Kg(n.grid)-e.padding-w4(n.title,this.chart.options.font),c=Math.sqrt(p*p+_*_),a=Gx(Math.min(Math.asin(Sn((d.highest.height+6)/s,-1,1)),Math.asin(Sn(l/c,-1,1))-Math.asin(Sn(_/c,-1,1)))),a=Math.max(r,Math.min(o,a))),this.labelRotation=a}afterCalculateLabelRotation(){wi(this.options.afterCalculateLabelRotation,[this])}afterAutoSkip(){}beforeFit(){wi(this.options.beforeFit,[this])}fit(){let n={width:0,height:0},{chart:e,options:{ticks:i,title:r,grid:o}}=this,a=this._isVisible(),s=this.isHorizontal();if(a){let l=w4(r,e.options.font);if(s?(n.width=this.maxWidth,n.height=Kg(o)+l):(n.height=this.maxHeight,n.width=Kg(o)+l),i.display&&this.ticks.length){let{first:c,last:d,widest:p,highest:_}=this._getLabelSizes(),b=i.padding*2,y=sa(this.labelRotation),w=Math.cos(y),C=Math.sin(y);if(s){let D=i.mirror?0:C*p.width+w*_.height;n.height=Math.min(this.maxHeight,n.height+D+b)}else{let D=i.mirror?0:w*p.width+C*_.height;n.width=Math.min(this.maxWidth,n.width+D+b)}this._calculatePadding(c,d,C,w)}}this._handleMargins(),s?(this.width=this._length=e.width-this._margins.left-this._margins.right,this.height=n.height):(this.width=n.width,this.height=this._length=e.height-this._margins.top-this._margins.bottom)}_calculatePadding(n,e,i,r){let{ticks:{align:o,padding:a},position:s}=this.options,l=this.labelRotation!==0,c=s!=="top"&&this.axis==="x";if(this.isHorizontal()){let d=this.getPixelForTick(0)-this.left,p=this.right-this.getPixelForTick(this.ticks.length-1),_=0,b=0;l?c?(_=r*n.width,b=i*e.height):(_=i*n.height,b=r*e.width):o==="start"?b=e.width:o==="end"?_=n.width:o!=="inner"&&(_=n.width/2,b=e.width/2),this.paddingLeft=Math.max((_-d+a)*this.width/(this.width-d),0),this.paddingRight=Math.max((b-p+a)*this.width/(this.width-p),0)}else{let d=e.height/2,p=n.height/2;o==="start"?(d=0,p=n.height):o==="end"&&(d=e.height,p=0),this.paddingTop=d+a,this.paddingBottom=p+a}}_handleMargins(){this._margins&&(this._margins.left=Math.max(this.paddingLeft,this._margins.left),this._margins.top=Math.max(this.paddingTop,this._margins.top),this._margins.right=Math.max(this.paddingRight,this._margins.right),this._margins.bottom=Math.max(this.paddingBottom,this._margins.bottom))}afterFit(){wi(this.options.afterFit,[this])}isHorizontal(){let{axis:n,position:e}=this.options;return e==="top"||e==="bottom"||n==="x"}isFullSize(){return this.options.fullSize}_convertTicksToLabels(n){this.beforeTickToLabelConversion(),this.generateTickLabels(n);let e,i;for(e=0,i=n.length;e({width:a[Ve]||0,height:s[Ve]||0});return{first:ve(0),last:ve(e-1),widest:ve(oe),highest:ve(ke),widths:a,heights:s}}getLabelForValue(n){return n}getPixelForValue(n,e){return NaN}getValueForPixel(n){}getPixelForTick(n){let e=this.ticks;return n<0||n>e.length-1?null:this.getPixelForValue(e[n].value)}getPixelForDecimal(n){this._reversePixels&&(n=1-n);let e=this._startPixel+n*this._length;return Nj(this._alignToPixels?Tc(this.chart,e,0):e)}getDecimalForPixel(n){let e=(n-this._startPixel)/this._length;return this._reversePixels?1-e:e}getBasePixel(){return this.getPixelForValue(this.getBaseValue())}getBaseValue(){let{min:n,max:e}=this;return n<0&&e<0?e:n>0&&e>0?n:0}getContext(n){let e=this.ticks||[];if(n>=0&&ns*r?s/i:l/r:l*r0}_computeGridLineItems(n){let e=this.axis,i=this.chart,r=this.options,{grid:o,position:a,border:s}=r,l=o.offset,c=this.isHorizontal(),p=this.ticks.length+(l?1:0),_=Kg(o),b=[],y=s.setContext(this.getContext()),w=y.display?y.width:0,C=w/2,D=function(Li){return Tc(i,Li,w)},F,W,Z,K,oe,ke,ve,Ve,yt,vt,Rt,Gn;if(a==="top")F=D(this.bottom),ke=this.bottom-_,Ve=F-C,vt=D(n.top)+C,Gn=n.bottom;else if(a==="bottom")F=D(this.top),vt=n.top,Gn=D(n.bottom)-C,ke=F+C,Ve=this.top+_;else if(a==="left")F=D(this.right),oe=this.right-_,ve=F-C,yt=D(n.left)+C,Rt=n.right;else if(a==="right")F=D(this.left),yt=n.left,Rt=D(n.right)-C,oe=F+C,ve=this.left+_;else if(e==="x"){if(a==="center")F=D((n.top+n.bottom)/2+.5);else if(At(a)){let Li=Object.keys(a)[0],rn=a[Li];F=D(this.chart.scales[Li].getPixelForValue(rn))}vt=n.top,Gn=n.bottom,ke=F+C,Ve=ke+_}else if(e==="y"){if(a==="center")F=D((n.left+n.right)/2);else if(At(a)){let Li=Object.keys(a)[0],rn=a[Li];F=D(this.chart.scales[Li].getPixelForValue(rn))}oe=F-C,ve=oe-_,yt=n.left,Rt=n.right}let fo=lt(r.ticks.maxTicksLimit,p),mi=Math.max(1,Math.ceil(p/fo));for(W=0;W0&&(rd-=nd/2);break}S_={left:rd,top:bp,width:nd+Bu.width,height:_p+Bu.height,color:mi.backdropColor}}C.push({label:Z,font:Ve,textOffset:Rt,options:{rotation:w,color:rn,strokeColor:pa,strokeWidth:dr,textAlign:Vu,textBaseline:Gn,translation:[K,oe],backdrop:S_}})}return C}_getXAxisLabelAlignment(){let{position:n,ticks:e}=this.options;if(-sa(this.labelRotation))return n==="top"?"left":"right";let r="center";return e.align==="start"?r="left":e.align==="end"?r="right":e.align==="inner"&&(r="inner"),r}_getYAxisLabelAlignment(n){let{position:e,ticks:{crossAlign:i,mirror:r,padding:o}}=this.options,a=this._getLabelSizes(),s=n+o,l=a.widest.width,c,d;return e==="left"?r?(d=this.right+o,i==="near"?c="left":i==="center"?(c="center",d+=l/2):(c="right",d+=l)):(d=this.right-s,i==="near"?c="right":i==="center"?(c="center",d-=l/2):(c="left",d=this.left)):e==="right"?r?(d=this.left+o,i==="near"?c="right":i==="center"?(c="center",d-=l/2):(c="left",d-=l)):(d=this.left+s,i==="near"?c="left":i==="center"?(c="center",d+=l/2):(c="right",d=this.right)):c="right",{textAlign:c,x:d}}_computeLabelArea(){if(this.options.ticks.mirror)return;let n=this.chart,e=this.options.position;if(e==="left"||e==="right")return{top:0,left:this.left,bottom:n.height,right:this.right};if(e==="top"||e==="bottom")return{top:this.top,left:0,bottom:this.bottom,right:n.width}}drawBackground(){let{ctx:n,options:{backgroundColor:e},left:i,top:r,width:o,height:a}=this;e&&(n.save(),n.fillStyle=e,n.fillRect(i,r,o,a),n.restore())}getLineWidthForValue(n){let e=this.options.grid;if(!this._isVisible()||!e.display)return 0;let r=this.ticks.findIndex(o=>o.value===n);return r>=0?e.setContext(this.getContext(r)).lineWidth:0}drawGrid(n){let e=this.options.grid,i=this.ctx,r=this._gridLineItems||(this._gridLineItems=this._computeGridLineItems(n)),o,a,s=(l,c,d)=>{!d.width||!d.color||(i.save(),i.lineWidth=d.width,i.strokeStyle=d.color,i.setLineDash(d.borderDash||[]),i.lineDashOffset=d.borderDashOffset,i.beginPath(),i.moveTo(l.x,l.y),i.lineTo(c.x,c.y),i.stroke(),i.restore())};if(e.display)for(o=0,a=r.length;o{this.draw(o)}}]:[{z:i,draw:o=>{this.drawBackground(),this.drawGrid(o),this.drawTitle()}},{z:r,draw:()=>{this.drawBorder()}},{z:e,draw:o=>{this.drawLabels(o)}}]}getMatchingVisibleMetas(n){let e=this.chart.getSortedVisibleDatasetMetas(),i=this.axis+"AxisID",r=[],o,a;for(o=0,a=e.length;o{let i=e.split("."),r=i.pop(),o=[t].concat(i).join("."),a=n[e].split("."),s=a.pop(),l=a.join(".");Di.route(o,r,l,s)})}function qoe(t){return"id"in t&&"defaults"in t}var UT=class{constructor(){this.controllers=new Qh(Pc,"datasets",!0),this.elements=new Qh(za,"elements"),this.plugins=new Qh(Object,"plugins"),this.scales=new Qh(Iu,"scales"),this._typedRegistries=[this.controllers,this.scales,this.elements]}add(...n){this._each("register",n)}remove(...n){this._each("unregister",n)}addControllers(...n){this._each("register",n,this.controllers)}addElements(...n){this._each("register",n,this.elements)}addPlugins(...n){this._each("register",n,this.plugins)}addScales(...n){this._each("register",n,this.scales)}getController(n){return this._get(n,this.controllers,"controller")}getElement(n){return this._get(n,this.elements,"element")}getPlugin(n){return this._get(n,this.plugins,"plugin")}getScale(n){return this._get(n,this.scales,"scale")}removeControllers(...n){this._each("unregister",n,this.controllers)}removeElements(...n){this._each("unregister",n,this.elements)}removePlugins(...n){this._each("unregister",n,this.plugins)}removeScales(...n){this._each("unregister",n,this.scales)}_each(n,e,i){[...e].forEach(r=>{let o=i||this._getRegistryForType(r);i||o.isForType(r)||o===this.plugins&&r.id?this._exec(n,o,r):ai(r,a=>{let s=i||this._getRegistryForType(a);this._exec(n,s,a)})})}_exec(n,e,i){let r=Wx(n);wi(i["before"+r],[],i),e[n](i),wi(i["after"+r],[],i)}_getRegistryForType(n){for(let e=0;eo.filter(s=>!a.some(l=>s.plugin.id===l.plugin.id));this._notify(r(e,i),n,"stop"),this._notify(r(i,e),n,"start")}};function Yoe(t){let n={},e=[],i=Object.keys(Rs.plugins.items);for(let o=0;o1&&D4(t[0].toLowerCase());if(i)return i}throw new Error(`Cannot determine type of '${t}' axis. Please provide 'axis' or 'position' option.`)}function E4(t,n,e){if(e[n+"AxisID"]===t)return{axis:n}}function tae(t,n){if(n.data&&n.data.datasets){let e=n.data.datasets.filter(i=>i.xAxisID===t||i.yAxisID===t);if(e.length)return E4(t,"x",e[0])||E4(t,"y",e[0])}return{}}function iae(t,n){let e=kc[t.type]||{scales:{}},i=n.scales||{},r=WT(t.type,n),o=Object.create(null);return Object.keys(i).forEach(a=>{let s=i[a];if(!At(s))return console.error(`Invalid scale configuration for scale: ${a}`);if(s._proxy)return console.warn(`Ignoring resolver passed as options for scale: ${a}`);let l=GT(a,s,tae(a,t),Di.scales[s.type]),c=Joe(l,r),d=e.scales||{};o[a]=Hh(Object.create(null),[{axis:l},s,d[l],d[c]])}),t.data.datasets.forEach(a=>{let s=a.type||t.type,l=a.indexAxis||WT(s,n),d=(kc[s]||{}).scales||{};Object.keys(d).forEach(p=>{let _=Xoe(p,l),b=a[_+"AxisID"]||_;o[b]=o[b]||Object.create(null),Hh(o[b],[{axis:_},i[b],d[p]])})}),Object.keys(o).forEach(a=>{let s=o[a];Hh(s,[Di.scales[s.type],Di.scale])}),o}function m5(t){let n=t.options||(t.options={});n.plugins=lt(n.plugins,{}),n.scales=iae(t,n)}function h5(t){return t=t||{},t.datasets=t.datasets||[],t.labels=t.labels||[],t}function nae(t){return t=t||{},t.data=h5(t.data),m5(t),t}var M4=new Map,p5=new Set;function rC(t,n){let e=M4.get(t);return e||(e=n(),M4.set(t,e),p5.add(e)),e}var Zg=(t,n,e)=>{let i=vl(n,e);i!==void 0&&t.add(i)},qT=class{constructor(n){this._config=nae(n),this._scopeCache=new Map,this._resolverCache=new Map}get platform(){return this._config.platform}get type(){return this._config.type}set type(n){this._config.type=n}get data(){return this._config.data}set data(n){this._config.data=h5(n)}get options(){return this._config.options}set options(n){this._config.options=n}get plugins(){return this._config.plugins}update(){let n=this._config;this.clearCache(),m5(n)}clearCache(){this._scopeCache.clear(),this._resolverCache.clear()}datasetScopeKeys(n){return rC(n,()=>[[`datasets.${n}`,""]])}datasetAnimationScopeKeys(n,e){return rC(`${n}.transition.${e}`,()=>[[`datasets.${n}.transitions.${e}`,`transitions.${e}`],[`datasets.${n}`,""]])}datasetElementScopeKeys(n,e){return rC(`${n}-${e}`,()=>[[`datasets.${n}.elements.${e}`,`datasets.${n}`,`elements.${e}`,""]])}pluginScopeKeys(n){let e=n.id,i=this.type;return rC(`${i}-plugin-${e}`,()=>[[`plugins.${e}`,...n.additionalOptionScopes||[]]])}_cachedScopes(n,e){let i=this._scopeCache,r=i.get(n);return(!r||e)&&(r=new Map,i.set(n,r)),r}getOptionScopes(n,e,i){let{options:r,type:o}=this,a=this._cachedScopes(n,i),s=a.get(e);if(s)return s;let l=new Set;e.forEach(d=>{n&&(l.add(n),d.forEach(p=>Zg(l,n,p))),d.forEach(p=>Zg(l,r,p)),d.forEach(p=>Zg(l,kc[o]||{},p)),d.forEach(p=>Zg(l,Di,p)),d.forEach(p=>Zg(l,Qx,p))});let c=Array.from(l);return c.length===0&&c.push(Object.create(null)),p5.has(e)&&a.set(e,c),c}chartOptionScopes(){let{options:n,type:e}=this;return[n,kc[e]||{},Di.datasets[e]||{},{type:e},Di,Qx]}resolveNamedOptions(n,e,i,r=[""]){let o={$shared:!0},{resolver:a,subPrefixes:s}=S4(this._resolverCache,n,r),l=a;if(oae(a,e)){o.$shared=!1,i=_l(i)?i():i;let c=this.createResolver(n,i,s);l=Eu(a,i,c)}for(let c of e)o[c]=l[c];return o}createResolver(n,e,i=[""],r){let{resolver:o}=S4(this._resolverCache,n,i);return At(e)?Eu(o,e,void 0,r):o}};function S4(t,n,e){let i=t.get(n);i||(i=new Map,t.set(n,i));let r=e.join(),o=i.get(r);return o||(o={resolver:Xx(n,e),subPrefixes:e.filter(s=>!s.toLowerCase().includes("hover"))},i.set(r,o)),o}var rae=t=>At(t)&&Object.getOwnPropertyNames(t).some(n=>_l(t[n]));function oae(t,n){let{isScriptable:e,isIndexable:i}=gT(t);for(let r of n){let o=e(r),a=i(r),s=(a||o)&&t[r];if(o&&(_l(s)||rae(s))||a&&Ti(s))return!0}return!1}var aae="4.5.1",sae=["top","bottom","left","right","chartArea"];function k4(t,n){return t==="top"||t==="bottom"||sae.indexOf(t)===-1&&n==="x"}function T4(t,n){return function(e,i){return e[t]===i[t]?e[n]-i[n]:e[t]-i[t]}}function I4(t){let n=t.chart,e=n.options.animation;n.notifyPlugins("afterRender"),wi(e&&e.onComplete,[t],n)}function lae(t){let n=t.chart,e=n.options.animation;wi(e&&e.onProgress,[t],n)}function f5(t){return Jx()&&typeof t=="string"?t=document.getElementById(t):t&&t.length&&(t=t[0]),t&&t.canvas&&(t=t.canvas),t}var cC={},A4=t=>{let n=f5(t);return Object.values(cC).filter(e=>e.canvas===n).pop()};function cae(t,n,e){let i=Object.keys(t);for(let r of i){let o=+r;if(o>=n){let a=t[r];delete t[r],(e>0||o>n)&&(t[o+e]=a)}}}function dae(t,n,e,i){return!e||t.type==="mouseout"?null:i?n:t}var gC=(()=>{class t{static defaults=Di;static instances=cC;static overrides=kc;static registry=Rs;static version=aae;static getChart=A4;static register(...e){Rs.add(...e),O4()}static unregister(...e){Rs.remove(...e),O4()}constructor(e,i){let r=this.config=new qT(i),o=f5(e),a=A4(o);if(a)throw new Error("Canvas is already in use. Chart with ID '"+a.id+"' must be destroyed before the canvas with ID '"+a.canvas.id+"' can be reused.");let s=r.createResolver(r.chartOptionScopes(),this.getContext());this.platform=new(r.platform||Aoe(o)),this.platform.updateConfig(r);let l=this.platform.acquireContext(o,s.aspectRatio),c=l&&l.canvas,d=c&&c.height,p=c&&c.width;if(this.id=Ij(),this.ctx=l,this.canvas=c,this.width=p,this.height=d,this._options=s,this._aspectRatio=this.aspectRatio,this._layers=[],this._metasets=[],this._stacks=void 0,this.boxes=[],this.currentDevicePixelRatio=void 0,this.chartArea=void 0,this._active=[],this._lastEvent=void 0,this._listeners={},this._responsiveListeners=void 0,this._sortedMetasets=[],this.scales={},this._plugins=new $T,this.$proxies={},this._hiddenIndices={},this.attached=!1,this._animationsDisabled=void 0,this.$context=void 0,this._doResize=Hj(_=>this.update(_),s.resizeDelay||0),this._dataChanges=[],cC[this.id]=this,!l||!c){console.error("Failed to create chart: can't acquire context from the given item");return}xl.listen(this,"complete",I4),xl.listen(this,"progress",lae),this._initialize(),this.attached&&this.update()}get aspectRatio(){let{options:{aspectRatio:e,maintainAspectRatio:i},width:r,height:o,_aspectRatio:a}=this;return Tt(e)?i&&a?a:o?r/o:null:e}get data(){return this.config.data}set data(e){this.config.data=e}get options(){return this._options}set options(e){this.config.options=e}get registry(){return Rs}_initialize(){return this.notifyPlugins("beforeInit"),this.options.responsive?this.resize():yT(this,this.options.devicePixelRatio),this.bindEvents(),this.notifyPlugins("afterInit"),this}clear(){return hT(this.canvas,this.ctx),this}stop(){return xl.stop(this),this}resize(e,i){xl.running(this)?this._resizeBeforeDraw={width:e,height:i}:this._resize(e,i)}_resize(e,i){let r=this.options,o=this.canvas,a=r.maintainAspectRatio&&this.aspectRatio,s=this.platform.getMaximumSize(o,e,i,a),l=r.devicePixelRatio||this.platform.getDevicePixelRatio(),c=this.width?"resize":"attach";this.width=s.width,this.height=s.height,this._aspectRatio=this.aspectRatio,yT(this,l,!0)&&(this.notifyPlugins("resize",{size:s}),wi(r.onResize,[this,s],this),this.attached&&this._doResize(c)&&this.render())}ensureScalesHaveIDs(){let i=this.options.scales||{};ai(i,(r,o)=>{r.id=o})}buildOrUpdateScales(){let e=this.options,i=e.scales,r=this.scales,o=Object.keys(r).reduce((s,l)=>(s[l]=!1,s),{}),a=[];i&&(a=a.concat(Object.keys(i).map(s=>{let l=i[s],c=GT(s,l),d=c==="r",p=c==="x";return{options:l,dposition:d?"chartArea":p?"bottom":"left",dtype:d?"radialLinear":p?"category":"linear"}}))),ai(a,s=>{let l=s.options,c=l.id,d=GT(c,l),p=lt(l.type,s.dtype);(l.position===void 0||k4(l.position,d)!==k4(s.dposition))&&(l.position=s.dposition),o[c]=!0;let _=null;if(c in r&&r[c].type===p)_=r[c];else{let b=Rs.getScale(p);_=new b({id:c,type:p,ctx:this.ctx,chart:this}),r[_.id]=_}_.init(l,e)}),ai(o,(s,l)=>{s||delete r[l]}),ai(r,s=>{kr.configure(this,s,s.options),kr.addBox(this,s)})}_updateMetasets(){let e=this._metasets,i=this.data.datasets.length,r=e.length;if(e.sort((o,a)=>o.index-a.index),r>i){for(let o=i;oi.length&&delete this._stacks,e.forEach((r,o)=>{i.filter(a=>a===r._dataset).length===0&&this._destroyDatasetMeta(o)})}buildOrUpdateControllers(){let e=[],i=this.data.datasets,r,o;for(this._removeUnreferencedMetasets(),r=0,o=i.length;r{this.getDatasetMeta(i).controller.reset()},this)}reset(){this._resetElements(),this.notifyPlugins("reset")}update(e){let i=this.config;i.update();let r=this._options=i.createResolver(i.chartOptionScopes(),this.getContext()),o=this._animationsDisabled=!r.animation;if(this._updateScales(),this._checkEventBindings(),this._updateHiddenIndices(),this._plugins.invalidate(),this.notifyPlugins("beforeUpdate",{mode:e,cancelable:!0})===!1)return;let a=this.buildOrUpdateControllers();this.notifyPlugins("beforeElementsUpdate");let s=0;for(let d=0,p=this.data.datasets.length;d{d.reset()}),this._updateDatasets(e),this.notifyPlugins("afterUpdate",{mode:e}),this._layers.sort(T4("z","_idx"));let{_active:l,_lastEvent:c}=this;c?this._eventHandler(c,!0):l.length&&this._updateHoverStyles(l,l,!0),this.render()}_updateScales(){ai(this.scales,e=>{kr.removeBox(this,e)}),this.ensureScalesHaveIDs(),this.buildOrUpdateScales()}_checkEventBindings(){let e=this.options,i=new Set(Object.keys(this._listeners)),r=new Set(e.events);(!eT(i,r)||!!this._responsiveListeners!==e.responsive)&&(this.unbindEvents(),this.bindEvents())}_updateHiddenIndices(){let{_hiddenIndices:e}=this,i=this._getUniformDataChanges()||[];for(let{method:r,start:o,count:a}of i){let s=r==="_removeElements"?-a:a;cae(e,o,s)}}_getUniformDataChanges(){let e=this._dataChanges;if(!e||!e.length)return;this._dataChanges=[];let i=this.data.datasets.length,r=a=>new Set(e.filter(s=>s[0]===a).map((s,l)=>l+","+s.splice(1).join(","))),o=r(0);for(let a=1;aa.split(",")).map(a=>({method:a[1],start:+a[2],count:+a[3]}))}_updateLayout(e){if(this.notifyPlugins("beforeLayout",{cancelable:!0})===!1)return;kr.update(this,this.width,this.height,e);let i=this.chartArea,r=i.width<=0||i.height<=0;this._layers=[],ai(this.boxes,o=>{r&&o.position==="chartArea"||(o.configure&&o.configure(),this._layers.push(...o._layers()))},this),this._layers.forEach((o,a)=>{o._idx=a}),this.notifyPlugins("afterLayout")}_updateDatasets(e){if(this.notifyPlugins("beforeDatasetsUpdate",{mode:e,cancelable:!0})!==!1){for(let i=0,r=this.data.datasets.length;i=0;--i)this._drawDataset(e[i]);this.notifyPlugins("afterDatasetsDraw")}_drawDataset(e){let i=this.ctx,r={meta:e,index:e.index,cancelable:!0},o=MT(this,e);this.notifyPlugins("beforeDatasetDraw",r)!==!1&&(o&&Wg(i,o),e.controller.draw(),o&&Gg(i),r.cancelable=!1,this.notifyPlugins("afterDatasetDraw",r))}isPointInArea(e){return Ts(e,this.chartArea,this._minPadding)}getElementsAtEventForMode(e,i,r,o){let a=moe.modes[i];return typeof a=="function"?a(this,e,r,o):[]}getDatasetMeta(e){let i=this.data.datasets[e],r=this._metasets,o=r.filter(a=>a&&a._dataset===i).pop();return o||(o={type:null,data:[],dataset:null,controller:null,hidden:null,xAxisID:null,yAxisID:null,order:i&&i.order||0,index:e,_dataset:i,_parsed:[],_sorted:!1},r.push(o)),o}getContext(){return this.$context||(this.$context=yl(null,{chart:this,type:"chart"}))}getVisibleDatasetCount(){return this.getSortedVisibleDatasetMetas().length}isDatasetVisible(e){let i=this.data.datasets[e];if(!i)return!1;let r=this.getDatasetMeta(e);return typeof r.hidden=="boolean"?!r.hidden:!i.hidden}setDatasetVisibility(e,i){let r=this.getDatasetMeta(e);r.hidden=!i}toggleDataVisibility(e){this._hiddenIndices[e]=!this._hiddenIndices[e]}getDataVisibility(e){return!this._hiddenIndices[e]}_updateVisibility(e,i,r){let o=r?"show":"hide",a=this.getDatasetMeta(e),s=a.controller._resolveAnimations(void 0,o);zh(i)?(a.data[i].hidden=!r,this.update()):(this.setDatasetVisibility(e,r),s.update(a,{visible:r}),this.update(l=>l.datasetIndex===e?o:void 0))}hide(e,i){this._updateVisibility(e,i,!1)}show(e,i){this._updateVisibility(e,i,!0)}_destroyDatasetMeta(e){let i=this._metasets[e];i&&i.controller&&i.controller._destroy(),delete this._metasets[e]}_stop(){let e,i;for(this.stop(),xl.remove(this),e=0,i=this.data.datasets.length;e{i.addEventListener(this,a,s),e[a]=s},o=(a,s,l)=>{a.offsetX=s,a.offsetY=l,this._eventHandler(a)};ai(this.options.events,a=>r(a,o))}bindResponsiveEvents(){this._responsiveListeners||(this._responsiveListeners={});let e=this._responsiveListeners,i=this.platform,r=(c,d)=>{i.addEventListener(this,c,d),e[c]=d},o=(c,d)=>{e[c]&&(i.removeEventListener(this,c,d),delete e[c])},a=(c,d)=>{this.canvas&&this.resize(c,d)},s,l=()=>{o("attach",l),this.attached=!0,this.resize(),r("resize",a),r("detach",s)};s=()=>{this.attached=!1,o("resize",a),this._stop(),this._resize(0,0),r("attach",l)},i.isAttached(this.canvas)?l():s()}unbindEvents(){ai(this._listeners,(e,i)=>{this.platform.removeEventListener(this,i,e)}),this._listeners={},ai(this._responsiveListeners,(e,i)=>{this.platform.removeEventListener(this,i,e)}),this._responsiveListeners=void 0}updateHoverStyle(e,i,r){let o=r?"set":"remove",a,s,l,c;for(i==="dataset"&&(a=this.getDatasetMeta(e[0].datasetIndex),a.controller["_"+o+"DatasetHoverStyle"]()),l=0,c=e.length;l{let l=this.getDatasetMeta(a);if(!l)throw new Error("No dataset found at index "+a);return{datasetIndex:a,element:l.data[s],index:s}});!Ug(r,i)&&(this._active=r,this._lastEvent=null,this._updateHoverStyles(r,i))}notifyPlugins(e,i,r){return this._plugins.notify(this,e,i,r)}isPluginEnabled(e){return this._plugins._cache.filter(i=>i.plugin.id===e).length===1}_updateHoverStyles(e,i,r){let o=this.options.hover,a=(c,d)=>c.filter(p=>!d.some(_=>p.datasetIndex===_.datasetIndex&&p.index===_.index)),s=a(i,e),l=r?e:a(e,i);s.length&&this.updateHoverStyle(s,o.mode,!1),l.length&&o.mode&&this.updateHoverStyle(l,o.mode,!0)}_eventHandler(e,i){let r={event:e,replay:i,cancelable:!0,inChartArea:this.isPointInArea(e)},o=s=>(s.options.events||this.options.events).includes(e.native.type);if(this.notifyPlugins("beforeEvent",r,o)===!1)return;let a=this._handleEvent(e,i,r.inChartArea);return r.cancelable=!1,this.notifyPlugins("afterEvent",r,o),(a||r.changed)&&this.render(),this}_handleEvent(e,i,r){let{_active:o=[],options:a}=this,s=i,l=this._getActiveElements(e,o,r,s),c=Rj(e),d=dae(e,this._lastEvent,r,c);r&&(this._lastEvent=null,wi(a.onHover,[e,l,this],this),c&&wi(a.onClick,[e,l,this],this));let p=!Ug(l,o);return(p||i)&&(this._active=l,this._updateHoverStyles(l,o,i)),this._lastEvent=d,p}_getActiveElements(e,i,r,o){if(e.type==="mouseout")return[];if(!r)return i;let a=this.options.hover;return this.getElementsAtEventForMode(e,a.mode,a,o)}}return t})();function O4(){return ai(gC.instances,t=>t._plugins.invalidate())}function uae(t,n,e){let{startAngle:i,x:r,y:o,outerRadius:a,innerRadius:s,options:l}=n,{borderWidth:c,borderJoinStyle:d}=l,p=Math.min(c/a,sr(i-e));if(t.beginPath(),t.arc(r,o,a-c/2,i+p/2,e-p/2),s>0){let _=Math.min(c/s,sr(i-e));t.arc(r,o,s+c/2,e-_/2,i+_/2,!0)}else{let _=Math.min(c/2,a*sr(i-e));if(d==="round")t.arc(r,o,_,e-$t/2,i+$t/2,!0);else if(d==="bevel"){let b=2*_*_,y=-b*Math.cos(e+$t/2)+r,w=-b*Math.sin(e+$t/2)+o,C=b*Math.cos(i+$t/2)+r,D=b*Math.sin(i+$t/2)+o;t.lineTo(y,w),t.lineTo(C,D)}}t.closePath(),t.moveTo(0,0),t.rect(0,0,t.canvas.width,t.canvas.height),t.clip("evenodd")}function mae(t,n,e){let{startAngle:i,pixelMargin:r,x:o,y:a,outerRadius:s,innerRadius:l}=n,c=r/s;t.beginPath(),t.arc(o,a,s,i-c,e+c),l>r?(c=r/l,t.arc(o,a,l,e+c,i-c,!0)):t.arc(o,a,r,e+tn,i-tn),t.closePath(),t.clip()}function hae(t){return Zx(t,["outerStart","outerEnd","innerStart","innerEnd"])}function pae(t,n,e,i){let r=hae(t.options.borderRadius),o=(e-n)/2,a=Math.min(o,i*n/2),s=l=>{let c=(e-Math.min(o,l))*i/2;return Sn(l,0,Math.min(o,c))};return{outerStart:s(r.outerStart),outerEnd:s(r.outerEnd),innerStart:Sn(r.innerStart,0,a),innerEnd:Sn(r.innerEnd,0,a)}}function Yh(t,n,e,i){return{x:e+t*Math.cos(n),y:i+t*Math.sin(n)}}function hC(t,n,e,i,r,o){let{x:a,y:s,startAngle:l,pixelMargin:c,innerRadius:d}=n,p=Math.max(n.outerRadius+i+e-c,0),_=d>0?d+i+e+c:0,b=0,y=r-l;if(i){let mi=d>0?d-i:0,Li=p>0?p-i:0,rn=(mi+Li)/2,pa=rn!==0?y*rn/(rn+i):y;b=(y-pa)/2}let w=Math.max(.001,y*p-e/$t)/p,C=(y-w)/2,D=l+C+b,F=r-C-b,{outerStart:W,outerEnd:Z,innerStart:K,innerEnd:oe}=pae(n,_,p,F-D),ke=p-W,ve=p-Z,Ve=D+W/ke,yt=F-Z/ve,vt=_+K,Rt=_+oe,Gn=D+K/vt,fo=F-oe/Rt;if(t.beginPath(),o){let mi=(Ve+yt)/2;if(t.arc(a,s,p,Ve,mi),t.arc(a,s,p,mi,yt),Z>0){let dr=Yh(ve,yt,a,s);t.arc(dr.x,dr.y,Z,yt,F+tn)}let Li=Yh(Rt,F,a,s);if(t.lineTo(Li.x,Li.y),oe>0){let dr=Yh(Rt,fo,a,s);t.arc(dr.x,dr.y,oe,F+tn,fo+Math.PI)}let rn=(F-oe/_+(D+K/_))/2;if(t.arc(a,s,_,F-oe/_,rn,!0),t.arc(a,s,_,rn,D+K/_,!0),K>0){let dr=Yh(vt,Gn,a,s);t.arc(dr.x,dr.y,K,Gn+Math.PI,D-tn)}let pa=Yh(ke,D,a,s);if(t.lineTo(pa.x,pa.y),W>0){let dr=Yh(ke,Ve,a,s);t.arc(dr.x,dr.y,W,D-tn,Ve)}}else{t.moveTo(a,s);let mi=Math.cos(Ve)*p+a,Li=Math.sin(Ve)*p+s;t.lineTo(mi,Li);let rn=Math.cos(yt)*p+a,pa=Math.sin(yt)*p+s;t.lineTo(rn,pa)}t.closePath()}function fae(t,n,e,i,r){let{fullCircles:o,startAngle:a,circumference:s}=n,l=n.endAngle;if(o){hC(t,n,e,i,l,r);for(let c=0;c=$t&&b===0&&d!=="miter"&&uae(t,n,w),o||(hC(t,n,e,i,w,r),t.stroke())}var YT=class extends za{static id="arc";static defaults={borderAlign:"center",borderColor:"#fff",borderDash:[],borderDashOffset:0,borderJoinStyle:void 0,borderRadius:0,borderWidth:2,offset:0,spacing:0,angle:void 0,circular:!0,selfJoin:!1};static defaultRoutes={backgroundColor:"backgroundColor"};static descriptors={_scriptable:!0,_indexable:n=>n!=="borderDash"};circumference;endAngle;fullCircles;innerRadius;outerRadius;pixelMargin;startAngle;constructor(n){super(),this.options=void 0,this.circumference=void 0,this.startAngle=void 0,this.endAngle=void 0,this.innerRadius=void 0,this.outerRadius=void 0,this.pixelMargin=0,this.fullCircles=0,n&&Object.assign(this,n)}inRange(n,e,i){let r=this.getProps(["x","y"],i),{angle:o,distance:a}=rT(r,{x:n,y:e}),{startAngle:s,endAngle:l,innerRadius:c,outerRadius:d,circumference:p}=this.getProps(["startAngle","endAngle","innerRadius","outerRadius","circumference"],i),_=(this.options.spacing+this.options.borderWidth)/2,b=lt(p,l-s),y=$h(o,s,l)&&s!==l,w=b>=Ii||y,C=As(a,c+_,d+_);return w&&C}getCenterPoint(n){let{x:e,y:i,startAngle:r,endAngle:o,innerRadius:a,outerRadius:s}=this.getProps(["x","y","startAngle","endAngle","innerRadius","outerRadius"],n),{offset:l,spacing:c}=this.options,d=(r+o)/2,p=(a+s+c+l)/2;return{x:e+Math.cos(d)*p,y:i+Math.sin(d)*p}}tooltipPosition(n){return this.getCenterPoint(n)}draw(n){let{options:e,circumference:i}=this,r=(e.offset||0)/4,o=(e.spacing||0)/2,a=e.circular;if(this.pixelMargin=e.borderAlign==="inner"?.33:0,this.fullCircles=i>Ii?Math.floor(i/Ii):0,i===0||this.innerRadius<0||this.outerRadius<0)return;n.save();let s=(this.startAngle+this.endAngle)/2;n.translate(Math.cos(s)*r,Math.sin(s)*r);let l=1-Math.sin(Math.min($t,i||0)),c=r*l;n.fillStyle=e.backgroundColor,n.strokeStyle=e.borderColor,fae(n,this,c,o,a),gae(n,this,c,o,a),n.restore()}};function g5(t,n,e=n){t.lineCap=lt(e.borderCapStyle,n.borderCapStyle),t.setLineDash(lt(e.borderDash,n.borderDash)),t.lineDashOffset=lt(e.borderDashOffset,n.borderDashOffset),t.lineJoin=lt(e.borderJoinStyle,n.borderJoinStyle),t.lineWidth=lt(e.borderWidth,n.borderWidth),t.strokeStyle=lt(e.borderColor,n.borderColor)}function _ae(t,n,e){t.lineTo(e.x,e.y)}function bae(t){return t.stepped?Wj:t.tension||t.cubicInterpolationMode==="monotone"?Gj:_ae}function _5(t,n,e={}){let i=t.length,{start:r=0,end:o=i-1}=e,{start:a,end:s}=n,l=Math.max(r,a),c=Math.min(o,s),d=rs&&o>s;return{count:i,start:l,loop:n.loop,ilen:c(a+(c?s-Z:Z))%o,W=()=>{w!==C&&(t.lineTo(d,C),t.lineTo(d,w),t.lineTo(d,D))};for(l&&(b=r[F(0)],t.moveTo(b.x,b.y)),_=0;_<=s;++_){if(b=r[F(_)],b.skip)continue;let Z=b.x,K=b.y,oe=Z|0;oe===y?(KC&&(C=K),d=(p*d+Z)/++p):(W(),t.lineTo(Z,K),y=oe,p=0,w=C=K),D=K}W()}function QT(t){let n=t.options,e=n.borderDash&&n.borderDash.length;return!t._decimated&&!t._loop&&!n.tension&&n.cubicInterpolationMode!=="monotone"&&!n.stepped&&!e?yae:vae}function xae(t){return t.stepped?t4:t.tension||t.cubicInterpolationMode==="monotone"?i4:Mc}function Cae(t,n,e,i){let r=n._path;r||(r=n._path=new Path2D,n.path(r,e,i)&&r.closePath()),g5(t,n.options),t.stroke(r)}function wae(t,n,e,i){let{segments:r,options:o}=n,a=QT(n);for(let s of r)g5(t,o,s.style),t.beginPath(),a(t,n,s,{start:e,end:e+i-1})&&t.closePath(),t.stroke()}var Dae=typeof Path2D=="function";function Eae(t,n,e,i){Dae&&!n.options.segment?Cae(t,n,e,i):wae(t,n,e,i)}var _C=(()=>{class t extends za{static id="line";static defaults={borderCapStyle:"butt",borderDash:[],borderDashOffset:0,borderJoinStyle:"miter",borderWidth:3,capBezierPoints:!0,cubicInterpolationMode:"default",fill:!1,spanGaps:!1,stepped:!1,tension:0};static defaultRoutes={backgroundColor:"backgroundColor",borderColor:"borderColor"};static descriptors={_scriptable:!0,_indexable:e=>e!=="borderDash"&&e!=="fill"};constructor(e){super(),this.animated=!0,this.options=void 0,this._chart=void 0,this._loop=void 0,this._fullLoop=void 0,this._path=void 0,this._points=void 0,this._segments=void 0,this._decimated=!1,this._pointsUpdated=!1,this._datasetIndex=void 0,e&&Object.assign(this,e)}updateControlPoints(e,i){let r=this.options;if((r.tension||r.cubicInterpolationMode==="monotone")&&!r.stepped&&!this._pointsUpdated){let o=r.spanGaps?this._loop:this._fullLoop;Xj(this._points,r,e,o,i),this._pointsUpdated=!0}}set points(e){this._points=e,delete this._segments,delete this._path,this._pointsUpdated=!1}get points(){return this._points}get segments(){return this._segments||(this._segments=r4(this,this.options.segment))}first(){let e=this.segments,i=this.points;return e.length&&i[e[0].start]}last(){let e=this.segments,i=this.points,r=e.length;return r&&i[e[r-1].end]}interpolate(e,i){let r=this.options,o=e[i],a=this.points,s=ET(this,{property:i,start:o,end:o});if(!s.length)return;let l=[],c=xae(r),d,p;for(d=0,p=s.length;d{class t extends za{static id="point";parsed;skip;stop;static defaults={borderWidth:1,hitRadius:1,hoverBorderWidth:1,hoverRadius:4,pointStyle:"circle",radius:3,rotation:0};static defaultRoutes={backgroundColor:"backgroundColor",borderColor:"borderColor"};constructor(e){super(),this.options=void 0,this.parsed=void 0,this.skip=void 0,this.stop=void 0,e&&Object.assign(this,e)}inRange(e,i,r){let o=this.options,{x:a,y:s}=this.getProps(["x","y"],r);return Math.pow(e-a,2)+Math.pow(i-s,2)t.replace("rgb(","rgba(").replace(")",", 0.5)"));function v5(t){return ZT[t%ZT.length]}function y5(t){return P4[t%P4.length]}function Rae(t,n){return t.borderColor=v5(n),t.backgroundColor=y5(n),++n}function Pae(t,n){return t.backgroundColor=t.data.map(()=>v5(n++)),n}function Fae(t,n){return t.backgroundColor=t.data.map(()=>y5(n++)),n}function Nae(t){let n=0;return(e,i)=>{let r=t.getDatasetMeta(i).controller;r instanceof oI?n=Pae(e,n):r instanceof s5?n=Fae(e,n):r&&(n=Rae(e,n))}}function F4(t){let n;for(n in t)if(t[n].borderColor||t[n].backgroundColor)return!0;return!1}function Lae(t){return t&&(t.borderColor||t.backgroundColor)}function Vae(){return Di.borderColor!=="rgba(0,0,0,0.1)"||Di.backgroundColor!=="rgba(0,0,0,0.1)"}var Bae={id:"colors",defaults:{enabled:!0,forceOverride:!1},beforeLayout(t,n,e){if(!e.enabled)return;let{data:{datasets:i},options:r}=t.config,{elements:o}=r,a=F4(i)||Lae(r)||o&&F4(o)||Vae();if(!e.forceOverride&&a)return;let s=Nae(t);i.forEach(s)}};function jae(t,n,e,i,r){let o=r.samples||i;if(o>=e)return t.slice(n,n+e);let a=[],s=(e-2)/(o-2),l=0,c=n+e-1,d=n,p,_,b,y,w;for(a[l++]=t[d],p=0;pb&&(b=y,_=t[F],w=F);a[l++]=_,d=w}return a[l++]=t[c],a}function Hae(t,n,e,i){let r=0,o=0,a,s,l,c,d,p,_,b,y,w,C=[],D=n+e-1,F=t[n].x,Z=t[D].x-F;for(a=n;aw&&(w=c,_=a),r=(o*r+s.x)/++o;else{let oe=a-1;if(!Tt(p)&&!Tt(_)){let ke=Math.min(p,_),ve=Math.max(p,_);ke!==b&&ke!==oe&&C.push(Ee(k({},t[ke]),{x:r})),ve!==b&&ve!==oe&&C.push(Ee(k({},t[ve]),{x:r}))}a>0&&oe!==b&&C.push(t[oe]),C.push(s),d=K,o=0,y=w=c,p=_=b=a}}return C}function x5(t){if(t._decimated){let n=t._data;delete t._decimated,delete t._data,Object.defineProperty(t,"data",{configurable:!0,enumerable:!0,writable:!0,value:n})}}function N4(t){t.data.datasets.forEach(n=>{x5(n)})}function zae(t,n){let e=n.length,i=0,r,{iScale:o}=t,{min:a,max:s,minDefined:l,maxDefined:c}=o.getUserBounds();return l&&(i=Sn(ks(n,o.axis,a).lo,0,e-1)),c?r=Sn(ks(n,o.axis,s).hi+1,i,e)-i:r=e-i,{start:i,count:r}}var Uae={id:"decimation",defaults:{algorithm:"min-max",enabled:!1},beforeElementsUpdate:(t,n,e)=>{if(!e.enabled){N4(t);return}let i=t.width;t.data.datasets.forEach((r,o)=>{let{_data:a,indexAxis:s}=r,l=t.getDatasetMeta(o),c=a||r.data;if(qh([s,t.options.indexAxis])==="y"||!l.controller.supportsDecimation)return;let d=t.scales[l.xAxisID];if(d.type!=="linear"&&d.type!=="time"||t.options.parsing)return;let{start:p,count:_}=zae(l,c),b=e.threshold||4*i;if(_<=b){x5(r);return}Tt(a)&&(r._data=c,delete r.data,Object.defineProperty(r,"data",{configurable:!0,enumerable:!0,get:function(){return this._decimated},set:function(w){this._data=w}}));let y;switch(e.algorithm){case"lttb":y=jae(c,p,_,i,e);break;case"min-max":y=Hae(c,p,_,i);break;default:throw new Error(`Unsupported decimation algorithm '${e.algorithm}'`)}r._decimated=y})},destroy(t){N4(t)}};function $ae(t,n,e){let i=t.segments,r=t.points,o=n.points,a=[];for(let s of i){let{start:l,end:c}=s;c=bC(l,c,r);let d=XT(e,r[l],r[c],s.loop);if(!n.segments){a.push({source:s,target:d,start:r[l],end:r[c]});continue}let p=ET(n,d);for(let _ of p){let b=XT(e,o[_.start],o[_.end],_.loop),y=DT(s,r,b);for(let w of y)a.push({source:w,target:_,start:{[e]:L4(d,b,"start",Math.max)},end:{[e]:L4(d,b,"end",Math.min)}})}}return a}function XT(t,n,e,i){if(i)return;let r=n[t],o=e[t];return t==="angle"&&(r=sr(r),o=sr(o)),{property:t,start:r,end:o}}function Wae(t,n){let{x:e=null,y:i=null}=t||{},r=n.points,o=[];return n.segments.forEach(({start:a,end:s})=>{s=bC(a,s,r);let l=r[a],c=r[s];i!==null?(o.push({x:l.x,y:i}),o.push({x:c.x,y:i})):e!==null&&(o.push({x:e,y:l.y}),o.push({x:e,y:c.y}))}),o}function bC(t,n,e){for(;n>t;n--){let i=e[n];if(!isNaN(i.x)&&!isNaN(i.y))break}return n}function L4(t,n,e,i){return t&&n?i(t[e],n[e]):t?t[e]:n?n[e]:0}function C5(t,n){let e=[],i=!1;return Ti(t)?(i=!0,e=t):e=Wae(t,n),e.length?new _C({points:e,options:{tension:0},_loop:i,_fullLoop:i}):null}function V4(t){return t&&t.fill!==!1}function Gae(t,n,e){let r=t[n].fill,o=[n],a;if(!e)return r;for(;r!==!1&&o.indexOf(r)===-1;){if(!Yi(r))return r;if(a=t[r],!a)return!1;if(a.visible)return r;o.push(r),r=a.fill}return!1}function qae(t,n,e){let i=Zae(t);if(At(i))return isNaN(i.value)?!1:i;let r=parseFloat(i);return Yi(r)&&Math.floor(r)===r?Yae(i[0],n,r,e):["origin","start","end","stack","shape"].indexOf(i)>=0&&i}function Yae(t,n,e,i){return(t==="-"||t==="+")&&(e=n+e),e===n||e<0||e>=i?!1:e}function Qae(t,n){let e=null;return t==="start"?e=n.bottom:t==="end"?e=n.top:At(t)?e=n.getPixelForValue(t.value):n.getBasePixel&&(e=n.getBasePixel()),e}function Kae(t,n,e){let i;return t==="start"?i=e:t==="end"?i=n.options.reverse?n.min:n.max:At(t)?i=t.value:i=n.getBaseValue(),i}function Zae(t){let n=t.options,e=n.fill,i=lt(e&&e.target,e);return i===void 0&&(i=!!n.backgroundColor),i===!1||i===null?!1:i===!0?"origin":i}function Xae(t){let{scale:n,index:e,line:i}=t,r=[],o=i.segments,a=i.points,s=Jae(n,e);s.push(C5({x:null,y:n.bottom},i));for(let l=0;l=0;--a){let s=r[a].$filler;s&&(s.line.updateControlPoints(o,s.axis),i&&s.fill&&NT(t.ctx,s,o))}},beforeDatasetsDraw(t,n,e){if(e.drawTime!=="beforeDatasetsDraw")return;let i=t.getSortedVisibleDatasetMetas();for(let r=i.length-1;r>=0;--r){let o=i[r].$filler;V4(o)&&NT(t.ctx,o,t.chartArea)}},beforeDatasetDraw(t,n,e){let i=n.meta.$filler;!V4(i)||e.drawTime!=="beforeDatasetDraw"||NT(t.ctx,i,t.chartArea)},defaults:{propagate:!0,drawTime:"beforeDatasetDraw"}},z4=(t,n)=>{let{boxHeight:e=n,boxWidth:i=n}=t;return t.usePointStyle&&(e=Math.min(e,n),i=t.pointStyleWidth||Math.min(i,n)),{boxWidth:i,boxHeight:e,itemHeight:Math.max(n,e)}},dse=(t,n)=>t!==null&&n!==null&&t.datasetIndex===n.datasetIndex&&t.index===n.index,fC=class extends za{constructor(n){super(),this._added=!1,this.legendHitBoxes=[],this._hoveredItem=null,this.doughnutMode=!1,this.chart=n.chart,this.options=n.options,this.ctx=n.ctx,this.legendItems=void 0,this.columnSizes=void 0,this.lineWidths=void 0,this.maxHeight=void 0,this.maxWidth=void 0,this.top=void 0,this.bottom=void 0,this.left=void 0,this.right=void 0,this.height=void 0,this.width=void 0,this._margins=void 0,this.position=void 0,this.weight=void 0,this.fullSize=void 0}update(n,e,i){this.maxWidth=n,this.maxHeight=e,this._margins=i,this.setDimensions(),this.buildLabels(),this.fit()}setDimensions(){this.isHorizontal()?(this.width=this.maxWidth,this.left=this._margins.left,this.right=this.width):(this.height=this.maxHeight,this.top=this._margins.top,this.bottom=this.height)}buildLabels(){let n=this.options.labels||{},e=wi(n.generateLabels,[this.chart],this)||[];n.filter&&(e=e.filter(i=>n.filter(i,this.chart.data))),n.sort&&(e=e.sort((i,r)=>n.sort(i,r,this.chart.data))),this.options.reverse&&e.reverse(),this.legendItems=e}fit(){let{options:n,ctx:e}=this;if(!n.display){this.width=this.height=0;return}let i=n.labels,r=fn(i.font),o=r.size,a=this._computeTitleHeight(),{boxWidth:s,itemHeight:l}=z4(i,o),c,d;e.font=r.string,this.isHorizontal()?(c=this.maxWidth,d=this._fitRows(a,o,s,l)+10):(d=this.maxHeight,c=this._fitCols(a,r,s,l)+10),this.width=Math.min(c,n.maxWidth||this.maxWidth),this.height=Math.min(d,n.maxHeight||this.maxHeight)}_fitRows(n,e,i,r){let{ctx:o,maxWidth:a,options:{labels:{padding:s}}}=this,l=this.legendHitBoxes=[],c=this.lineWidths=[0],d=r+s,p=n;o.textAlign="left",o.textBaseline="middle";let _=-1,b=-d;return this.legendItems.forEach((y,w)=>{let C=i+e/2+o.measureText(y.text).width;(w===0||c[c.length-1]+C+2*s>a)&&(p+=d,c[c.length-(w>0?0:1)]=0,b+=d,_++),l[w]={left:0,top:b,row:_,width:C,height:r},c[c.length-1]+=C+s}),p}_fitCols(n,e,i,r){let{ctx:o,maxHeight:a,options:{labels:{padding:s}}}=this,l=this.legendHitBoxes=[],c=this.columnSizes=[],d=a-n,p=s,_=0,b=0,y=0,w=0;return this.legendItems.forEach((C,D)=>{let{itemWidth:F,itemHeight:W}=use(i,e,o,C,r);D>0&&b+W+2*s>d&&(p+=_+s,c.push({width:_,height:b}),y+=_+s,w++,_=b=0),l[D]={left:y,top:b,col:w,width:F,height:W},_=Math.max(_,F),b+=W+s}),p+=_,c.push({width:_,height:b}),p}adjustHitBoxes(){if(!this.options.display)return;let n=this._computeTitleHeight(),{legendHitBoxes:e,options:{align:i,labels:{padding:r},rtl:o}}=this,a=Su(o,this.left,this.width);if(this.isHorizontal()){let s=0,l=lr(i,this.left+r,this.right-this.lineWidths[s]);for(let c of e)s!==c.row&&(s=c.row,l=lr(i,this.left+r,this.right-this.lineWidths[s])),c.top+=this.top+n+r,c.left=a.leftForLtr(a.x(l),c.width),l+=c.width+r}else{let s=0,l=lr(i,this.top+n+r,this.bottom-this.columnSizes[s].height);for(let c of e)c.col!==s&&(s=c.col,l=lr(i,this.top+n+r,this.bottom-this.columnSizes[s].height)),c.top=l,c.left+=this.left+r,c.left=a.leftForLtr(a.x(c.left),c.width),l+=c.height+r}}isHorizontal(){return this.options.position==="top"||this.options.position==="bottom"}draw(){if(this.options.display){let n=this.ctx;Wg(n,this),this._draw(),Gg(n)}}_draw(){let{options:n,columnSizes:e,lineWidths:i,ctx:r}=this,{align:o,labels:a}=n,s=Di.color,l=Su(n.rtl,this.left,this.width),c=fn(a.font),{padding:d}=a,p=c.size,_=p/2,b;this.drawTitle(),r.textAlign=l.textAlign("left"),r.textBaseline="middle",r.lineWidth=.5,r.font=c.string;let{boxWidth:y,boxHeight:w,itemHeight:C}=z4(a,p),D=function(oe,ke,ve){if(isNaN(y)||y<=0||isNaN(w)||w<0)return;r.save();let Ve=lt(ve.lineWidth,1);if(r.fillStyle=lt(ve.fillStyle,s),r.lineCap=lt(ve.lineCap,"butt"),r.lineDashOffset=lt(ve.lineDashOffset,0),r.lineJoin=lt(ve.lineJoin,"miter"),r.lineWidth=Ve,r.strokeStyle=lt(ve.strokeStyle,s),r.setLineDash(lt(ve.lineDash,[])),a.usePointStyle){let yt={radius:w*Math.SQRT2/2,pointStyle:ve.pointStyle,rotation:ve.rotation,borderWidth:Ve},vt=l.xPlus(oe,y/2),Rt=ke+_;pT(r,yt,vt,Rt,a.pointStyleWidth&&y)}else{let yt=ke+Math.max((p-w)/2,0),vt=l.leftForLtr(oe,y),Rt=Ac(ve.borderRadius);r.beginPath(),Object.values(Rt).some(Gn=>Gn!==0)?Gh(r,{x:vt,y:yt,w:y,h:w,radius:Rt}):r.rect(vt,yt,y,w),r.fill(),Ve!==0&&r.stroke()}r.restore()},F=function(oe,ke,ve){Ic(r,ve.text,oe,ke+C/2,c,{strikethrough:ve.hidden,textAlign:l.textAlign(ve.textAlign)})},W=this.isHorizontal(),Z=this._computeTitleHeight();W?b={x:lr(o,this.left+d,this.right-i[0]),y:this.top+d+Z,line:0}:b={x:this.left+d,y:lr(o,this.top+Z+d,this.bottom-e[0].height),line:0},CT(this.ctx,n.textDirection);let K=C+d;this.legendItems.forEach((oe,ke)=>{r.strokeStyle=oe.fontColor,r.fillStyle=oe.fontColor;let ve=r.measureText(oe.text).width,Ve=l.textAlign(oe.textAlign||(oe.textAlign=a.textAlign)),yt=y+_+ve,vt=b.x,Rt=b.y;l.setWidth(this.width),W?ke>0&&vt+yt+d>this.right&&(Rt=b.y+=K,b.line++,vt=b.x=lr(o,this.left+d,this.right-i[b.line])):ke>0&&Rt+K>this.bottom&&(vt=b.x=vt+e[b.line].width+d,b.line++,Rt=b.y=lr(o,this.top+Z+d,this.bottom-e[b.line].height));let Gn=l.x(vt);if(D(Gn,Rt,oe),vt=zj(Ve,vt+y+_,W?vt+yt:this.right,n.rtl),F(l.x(vt),Rt,oe),W)b.x+=yt+d;else if(typeof oe.text!="string"){let fo=c.lineHeight;b.y+=w5(oe,fo)+d}else b.y+=K}),wT(this.ctx,n.textDirection)}drawTitle(){let n=this.options,e=n.title,i=fn(e.font),r=cr(e.padding);if(!e.display)return;let o=Su(n.rtl,this.left,this.width),a=this.ctx,s=e.position,l=i.size/2,c=r.top+l,d,p=this.left,_=this.width;if(this.isHorizontal())_=Math.max(...this.lineWidths),d=this.top+c,p=lr(n.align,p,this.right-_);else{let y=this.columnSizes.reduce((w,C)=>Math.max(w,C.height),0);d=c+lr(n.align,this.top,this.bottom-y-n.labels.padding-this._computeTitleHeight())}let b=lr(s,p,p+_);a.textAlign=o.textAlign(Yx(s)),a.textBaseline="middle",a.strokeStyle=e.color,a.fillStyle=e.color,a.font=i.string,Ic(a,e.text,b,d,i)}_computeTitleHeight(){let n=this.options.title,e=fn(n.font),i=cr(n.padding);return n.display?e.lineHeight+i.height:0}_getLegendItemAt(n,e){let i,r,o;if(As(n,this.left,this.right)&&As(e,this.top,this.bottom)){for(o=this.legendHitBoxes,i=0;io.length>a.length?o:a)),n+e.size/2+i.measureText(r).width}function hse(t,n,e){let i=t;return typeof n.text!="string"&&(i=w5(n,e)),i}function w5(t,n){let e=t.text?t.text.length:0;return n*e}function pse(t,n){return!!((t==="mousemove"||t==="mouseout")&&(n.onHover||n.onLeave)||n.onClick&&(t==="click"||t==="mouseup"))}var fse={id:"legend",_element:fC,start(t,n,e){let i=t.legend=new fC({ctx:t.ctx,options:e,chart:t});kr.configure(t,i,e),kr.addBox(t,i)},stop(t){kr.removeBox(t,t.legend),delete t.legend},beforeUpdate(t,n,e){let i=t.legend;kr.configure(t,i,e),i.options=e},afterUpdate(t){let n=t.legend;n.buildLabels(),n.adjustHitBoxes()},afterEvent(t,n){n.replay||t.legend.handleEvent(n.event)},defaults:{display:!0,position:"top",align:"center",fullSize:!0,reverse:!1,weight:1e3,onClick(t,n,e){let i=n.datasetIndex,r=e.chart;r.isDatasetVisible(i)?(r.hide(i),n.hidden=!0):(r.show(i),n.hidden=!1)},onHover:null,onLeave:null,labels:{color:t=>t.chart.options.color,boxWidth:40,padding:10,generateLabels(t){let n=t.data.datasets,{labels:{usePointStyle:e,pointStyle:i,textAlign:r,color:o,useBorderRadius:a,borderRadius:s}}=t.legend.options;return t._getSortedDatasetMetas().map(l=>{let c=l.controller.getStyle(e?0:void 0),d=cr(c.borderWidth);return{text:n[l.index].label,fillStyle:c.backgroundColor,fontColor:o,hidden:!l.visible,lineCap:c.borderCapStyle,lineDash:c.borderDash,lineDashOffset:c.borderDashOffset,lineJoin:c.borderJoinStyle,lineWidth:(d.width+d.height)/4,strokeStyle:c.borderColor,pointStyle:i||c.pointStyle,rotation:c.rotation,textAlign:r||c.textAlign,borderRadius:a&&(s||c.borderRadius),datasetIndex:l.index}},this)}},title:{color:t=>t.chart.options.color,display:!1,position:"center",text:""}},descriptors:{_scriptable:t=>!t.startsWith("on"),labels:{_scriptable:t=>!["generateLabels","filter","sort"].includes(t)}}},t_=class extends za{constructor(n){super(),this.chart=n.chart,this.options=n.options,this.ctx=n.ctx,this._padding=void 0,this.top=void 0,this.bottom=void 0,this.left=void 0,this.right=void 0,this.width=void 0,this.height=void 0,this.position=void 0,this.weight=void 0,this.fullSize=void 0}update(n,e){let i=this.options;if(this.left=0,this.top=0,!i.display){this.width=this.height=this.right=this.bottom=0;return}this.width=this.right=n,this.height=this.bottom=e;let r=Ti(i.text)?i.text.length:1;this._padding=cr(i.padding);let o=r*fn(i.font).lineHeight+this._padding.height;this.isHorizontal()?this.height=o:this.width=o}isHorizontal(){let n=this.options.position;return n==="top"||n==="bottom"}_drawArgs(n){let{top:e,left:i,bottom:r,right:o,options:a}=this,s=a.align,l=0,c,d,p;return this.isHorizontal()?(d=lr(s,i,o),p=e+n,c=o-i):(a.position==="left"?(d=i+n,p=lr(s,r,e),l=$t*-.5):(d=o-n,p=lr(s,e,r),l=$t*.5),c=r-e),{titleX:d,titleY:p,maxWidth:c,rotation:l}}draw(){let n=this.ctx,e=this.options;if(!e.display)return;let i=fn(e.font),o=i.lineHeight/2+this._padding.top,{titleX:a,titleY:s,maxWidth:l,rotation:c}=this._drawArgs(o);Ic(n,e.text,0,0,i,{color:e.color,maxWidth:l,rotation:c,textAlign:Yx(e.align),textBaseline:"middle",translation:[a,s]})}};function gse(t,n){let e=new t_({ctx:t.ctx,options:n,chart:t});kr.configure(t,e,n),kr.addBox(t,e),t.titleBlock=e}var _se={id:"title",_element:t_,start(t,n,e){gse(t,e)},stop(t){let n=t.titleBlock;kr.removeBox(t,n),delete t.titleBlock},beforeUpdate(t,n,e){let i=t.titleBlock;kr.configure(t,i,e),i.options=e},defaults:{align:"center",display:!1,font:{weight:"bold"},fullSize:!0,padding:10,position:"top",text:"",weight:2e3},defaultRoutes:{color:"color"},descriptors:{_scriptable:!0,_indexable:!1}},oC=new WeakMap,bse={id:"subtitle",start(t,n,e){let i=new t_({ctx:t.ctx,options:e,chart:t});kr.configure(t,i,e),kr.addBox(t,i),oC.set(t,i)},stop(t){kr.removeBox(t,oC.get(t)),oC.delete(t)},beforeUpdate(t,n,e){let i=oC.get(t);kr.configure(t,i,e),i.options=e},defaults:{align:"center",display:!1,font:{weight:"normal"},fullSize:!0,padding:0,position:"top",text:"",weight:1500},defaultRoutes:{color:"color"},descriptors:{_scriptable:!0,_indexable:!1}},Jg={average(t){if(!t.length)return!1;let n,e,i=new Set,r=0,o=0;for(n=0,e=t.length;ns+l)/i.size,y:r/o}},nearest(t,n){if(!t.length)return!1;let e=n.x,i=n.y,r=Number.POSITIVE_INFINITY,o,a,s;for(o=0,a=t.length;o-1?t.split(` -`):t}function lse(t,n){let{element:e,datasetIndex:i,index:r}=n,o=t.getDatasetMeta(i).controller,{label:a,value:s}=o.getLabelAndValue(r);return{chart:t,label:a,parsed:o.getParsed(r),raw:t.data.datasets[i].data[r],formattedValue:s,dataset:o.getDataset(),dataIndex:r,datasetIndex:i,element:e}}function P4(t,n){let e=t.chart.ctx,{body:i,footer:r,title:o}=t,{boxWidth:a,boxHeight:s}=n,l=pn(n.bodyFont),c=pn(n.titleFont),d=pn(n.footerFont),m=o.length,f=r.length,b=i.length,v=sr(n.padding),w=v.height,x=0,D=i.reduce((Z,K)=>Z+K.before.length+K.lines.length+K.after.length,0);if(D+=t.beforeBody.length+t.afterBody.length,m&&(w+=m*c.lineHeight+(m-1)*n.titleSpacing+n.titleMarginBottom),D){let Z=n.displayColors?Math.max(s,l.lineHeight):l.lineHeight;w+=b*Z+(D-b)*l.lineHeight+(D-1)*n.bodySpacing}f&&(w+=n.footerMarginTop+f*d.lineHeight+(f-1)*n.footerSpacing);let P=0,W=function(Z){x=Math.max(x,e.measureText(Z).width+P)};return e.save(),e.font=c.string,ii(t.title,W),e.font=l.string,ii(t.beforeBody.concat(t.afterBody),W),P=n.displayColors?a+2+n.boxPadding:0,ii(i,Z=>{ii(Z.before,W),ii(Z.lines,W),ii(Z.after,W)}),P=0,e.font=d.string,ii(t.footer,W),e.restore(),x+=v.width,{width:x,height:w}}function cse(t,n){let{y:e,height:i}=n;return et.height-i/2?"bottom":"center"}function dse(t,n,e,i){let{x:r,width:o}=i,a=e.caretSize+e.caretPadding;if(t==="left"&&r+o+a>n.width||t==="right"&&r-o-a<0)return!0}function use(t,n,e,i){let{x:r,width:o}=e,{width:a,chartArea:{left:s,right:l}}=t,c="center";return i==="center"?c=r<=(s+l)/2?"left":"right":r<=o/2?c="left":r>=a-o/2&&(c="right"),dse(c,t,n,e)&&(c="center"),c}function F4(t,n,e){let i=e.yAlign||n.yAlign||cse(t,e);return{xAlign:e.xAlign||n.xAlign||use(t,n,e,i),yAlign:i}}function mse(t,n){let{x:e,width:i}=t;return n==="right"?e-=i:n==="center"&&(e-=i/2),e}function hse(t,n,e){let{y:i,height:r}=t;return n==="top"?i+=e:n==="bottom"?i-=r+e:i-=r/2,i}function N4(t,n,e,i){let{caretSize:r,caretPadding:o,cornerRadius:a}=t,{xAlign:s,yAlign:l}=e,c=r+o,{topLeft:d,topRight:m,bottomLeft:f,bottomRight:b}=Tc(a),v=mse(n,s),w=hse(n,l,c);return l==="center"?s==="left"?v+=c:s==="right"&&(v-=c):s==="left"?v-=Math.max(d,f)+r:s==="right"&&(v+=Math.max(m,b)+r),{x:Dn(v,0,i.width-n.width),y:Dn(w,0,i.height-n.height)}}function tC(t,n,e){let i=sr(e.padding);return n==="center"?t.x+t.width/2:n==="right"?t.x+t.width-i.right:t.x+i.left}function L4(t){return As([],yl(t))}function pse(t,n,e){return bl(t,{tooltip:n,tooltipItems:e,type:"tooltip"})}function V4(t,n){let e=n&&n.dataset&&n.dataset.tooltip&&n.dataset.tooltip.callbacks;return e?t.override(e):t}var fH={beforeTitle:Ts,title(t){if(t.length>0){let n=t[0],e=n.chart.data.labels,i=e?e.length:0;if(this&&this.options&&this.options.mode==="dataset")return n.dataset.label||"";if(n.label)return n.label;if(i>0&&n.dataIndex"u"?fH[n].call(e,i):r}var B4=(()=>{class t extends ja{static positioners=Qg;constructor(e){super(),this.opacity=0,this._active=[],this._eventPosition=void 0,this._size=void 0,this._cachedAnimations=void 0,this._tooltipItems=[],this.$animations=void 0,this.$context=void 0,this.chart=e.chart,this.options=e.options,this.dataPoints=void 0,this.title=void 0,this.beforeBody=void 0,this.body=void 0,this.afterBody=void 0,this.footer=void 0,this.xAlign=void 0,this.yAlign=void 0,this.x=void 0,this.y=void 0,this.height=void 0,this.width=void 0,this.caretX=void 0,this.caretY=void 0,this.labelColors=void 0,this.labelPointStyles=void 0,this.labelTextColors=void 0}initialize(e){this.options=e,this._cachedAnimations=void 0,this.$context=void 0}_resolveAnimations(){let e=this._cachedAnimations;if(e)return e;let i=this.chart,r=this.options.setContext(this.getContext()),o=r.enabled&&i.options.animation&&r.animations,a=new oC(this.chart,o);return o._cacheable&&(this._cachedAnimations=Object.freeze(a)),a}getContext(){return this.$context||(this.$context=pse(this.chart.getContext(),this,this._tooltipItems))}getTitle(e,i){let{callbacks:r}=i,o=ro(r,"beforeTitle",this,e),a=ro(r,"title",this,e),s=ro(r,"afterTitle",this,e),l=[];return l=As(l,yl(o)),l=As(l,yl(a)),l=As(l,yl(s)),l}getBeforeBody(e,i){return L4(ro(i.callbacks,"beforeBody",this,e))}getBody(e,i){let{callbacks:r}=i,o=[];return ii(e,a=>{let s={before:[],lines:[],after:[]},l=V4(r,a);As(s.before,yl(ro(l,"beforeLabel",this,a))),As(s.lines,ro(l,"label",this,a)),As(s.after,yl(ro(l,"afterLabel",this,a))),o.push(s)}),o}getAfterBody(e,i){return L4(ro(i.callbacks,"afterBody",this,e))}getFooter(e,i){let{callbacks:r}=i,o=ro(r,"beforeFooter",this,e),a=ro(r,"footer",this,e),s=ro(r,"afterFooter",this,e),l=[];return l=As(l,yl(o)),l=As(l,yl(a)),l=As(l,yl(s)),l}_createItems(e){let i=this._active,r=this.chart.data,o=[],a=[],s=[],l=[],c,d;for(c=0,d=i.length;ce.filter(m,f,b,r))),e.itemSort&&(l=l.sort((m,f)=>e.itemSort(m,f,r))),ii(l,m=>{let f=V4(e.callbacks,m);o.push(ro(f,"labelColor",this,m)),a.push(ro(f,"labelPointStyle",this,m)),s.push(ro(f,"labelTextColor",this,m))}),this.labelColors=o,this.labelPointStyles=a,this.labelTextColors=s,this.dataPoints=l,l}update(e,i){let r=this.options.setContext(this.getContext()),o=this._active,a,s=[];if(!o.length)this.opacity!==0&&(a={opacity:0});else{let l=Qg[r.position].call(this,o,this._eventPosition);s=this._createItems(r),this.title=this.getTitle(s,r),this.beforeBody=this.getBeforeBody(s,r),this.body=this.getBody(s,r),this.afterBody=this.getAfterBody(s,r),this.footer=this.getFooter(s,r);let c=this._size=P4(this,r),d=Object.assign({},l,c),m=F4(this.chart,r,d),f=N4(r,d,m,this.chart);this.xAlign=m.xAlign,this.yAlign=m.yAlign,a={opacity:1,x:f.x,y:f.y,width:c.width,height:c.height,caretX:l.x,caretY:l.y}}this._tooltipItems=s,this.$context=void 0,a&&this._resolveAnimations().update(this,a),e&&r.external&&r.external.call(this,{chart:this.chart,tooltip:this,replay:i})}drawCaret(e,i,r,o){let a=this.getCaretPosition(e,r,o);i.lineTo(a.x1,a.y1),i.lineTo(a.x2,a.y2),i.lineTo(a.x3,a.y3)}getCaretPosition(e,i,r){let{xAlign:o,yAlign:a}=this,{caretSize:s,cornerRadius:l}=r,{topLeft:c,topRight:d,bottomLeft:m,bottomRight:f}=Tc(l),{x:b,y:v}=e,{width:w,height:x}=i,D,P,W,Z,K,re;return a==="center"?(K=v+x/2,o==="left"?(D=b,P=D-s,Z=K+s,re=K-s):(D=b+w,P=D+s,Z=K-s,re=K+s),W=D):(o==="left"?P=b+Math.max(c,m)+s:o==="right"?P=b+w-Math.max(d,f)-s:P=this.caretX,a==="top"?(Z=v,K=Z-s,D=P-s,W=P+s):(Z=v+x,K=Z+s,D=P+s,W=P-s),re=Z),{x1:D,x2:P,x3:W,y1:Z,y2:K,y3:re}}drawTitle(e,i,r){let o=this.title,a=o.length,s,l,c;if(a){let d=Cu(r.rtl,this.x,this.width);for(e.x=tC(this,r.titleAlign,r),i.textAlign=d.textAlign(r.titleAlign),i.textBaseline="middle",s=pn(r.titleFont),l=r.titleSpacing,i.fillStyle=r.titleColor,i.font=s.string,c=0;cW!==0)?(e.beginPath(),e.fillStyle=a.multiKeyBackground,jh(e,{x,y:w,w:d,h:c,radius:P}),e.fill(),e.stroke(),e.fillStyle=s.backgroundColor,e.beginPath(),jh(e,{x:D,y:w+1,w:d-2,h:c-2,radius:P}),e.fill()):(e.fillStyle=a.multiKeyBackground,e.fillRect(x,w,d,c),e.strokeRect(x,w,d,c),e.fillStyle=s.backgroundColor,e.fillRect(D,w+1,d-2,c-2))}e.fillStyle=this.labelTextColors[r]}drawBody(e,i,r){let{body:o}=this,{bodySpacing:a,bodyAlign:s,displayColors:l,boxHeight:c,boxWidth:d,boxPadding:m}=r,f=pn(r.bodyFont),b=f.lineHeight,v=0,w=Cu(r.rtl,this.x,this.width),x=function(Ve){i.fillText(Ve,w.x(e.x+v),e.y+b/2),e.y+=b+a},D=w.textAlign(s),P,W,Z,K,re,Ee,be;for(i.textAlign=s,i.textBaseline="middle",i.font=f.string,e.x=tC(this,D,r),i.fillStyle=r.bodyColor,ii(this.beforeBody,x),v=l&&D!=="right"?s==="center"?d/2+m:d+2+m:0,K=0,Ee=o.length;K0&&i.stroke()}_updateAnimationTarget(e){let i=this.chart,r=this.$animations,o=r&&r.x,a=r&&r.y;if(o||a){let s=Qg[e.position].call(this,this._active,this._eventPosition);if(!s)return;let l=this._size=P4(this,e),c=Object.assign({},s,this._size),d=F4(i,e,c),m=N4(e,c,d,i);(o._to!==m.x||a._to!==m.y)&&(this.xAlign=d.xAlign,this.yAlign=d.yAlign,this.width=l.width,this.height=l.height,this.caretX=s.x,this.caretY=s.y,this._resolveAnimations().update(this,m))}}_willRender(){return!!this.opacity}draw(e){let i=this.options.setContext(this.getContext()),r=this.opacity;if(!r)return;this._updateAnimationTarget(i);let o={width:this.width,height:this.height},a={x:this.x,y:this.y};r=Math.abs(r)<.001?0:r;let s=sr(i.padding),l=this.title.length||this.beforeBody.length||this.body.length||this.afterBody.length||this.footer.length;i.enabled&&l&&(e.save(),e.globalAlpha=r,this.drawBackground(a,e,o,i),bT(e,i.textDirection),a.y+=s.top,this.drawTitle(a,e,i),this.drawBody(a,e,i),this.drawFooter(a,e,i),vT(e,i.textDirection),e.restore())}getActiveElements(){return this._active||[]}setActiveElements(e,i){let r=this._active,o=e.map(({datasetIndex:l,index:c})=>{let d=this.chart.getDatasetMeta(l);if(!d)throw new Error("Cannot find a dataset at index "+l);return{datasetIndex:l,element:d.data[c],index:c}}),a=!Bg(r,o),s=this._positionChanged(o,i);(a||s)&&(this._active=o,this._eventPosition=i,this._ignoreReplayEvents=!0,this.update(!0))}handleEvent(e,i,r=!0){if(i&&this._ignoreReplayEvents)return!1;this._ignoreReplayEvents=!1;let o=this.options,a=this._active||[],s=this._getActiveElements(e,a,i,r),l=this._positionChanged(s,e),c=i||!Bg(s,a)||l;return c&&(this._active=s,(o.enabled||o.external)&&(this._eventPosition={x:e.x,y:e.y},this.update(!0,i))),c}_getActiveElements(e,i,r,o){let a=this.options;if(e.type==="mouseout")return[];if(!o)return i.filter(l=>this.chart.data.datasets[l.datasetIndex]&&this.chart.getDatasetMeta(l.datasetIndex).controller.getParsed(l.index)!==void 0);let s=this.chart.getElementsAtEventForMode(e,a.mode,a,r);return a.reverse&&s.reverse(),s}_positionChanged(e,i){let{caretX:r,caretY:o,options:a}=this,s=Qg[a.position].call(this,e,i);return s!==!1&&(r!==s.x||o!==s.y)}}return t})(),fse={id:"tooltip",_element:B4,positioners:Qg,afterInit(t,n,e){e&&(t.tooltip=new B4({chart:t,options:e}))},beforeUpdate(t,n,e){t.tooltip&&t.tooltip.initialize(e)},reset(t,n,e){t.tooltip&&t.tooltip.initialize(e)},afterDraw(t){let n=t.tooltip;if(n&&n._willRender()){let e={tooltip:n};if(t.notifyPlugins("beforeTooltipDraw",De(M({},e),{cancelable:!0}))===!1)return;n.draw(t.ctx),t.notifyPlugins("afterTooltipDraw",e)}},afterEvent(t,n){if(t.tooltip){let e=n.replay;t.tooltip.handleEvent(n.event,e,n.inChartArea)&&(n.changed=!0)}},defaults:{enabled:!0,external:null,position:"average",backgroundColor:"rgba(0,0,0,0.8)",titleColor:"#fff",titleFont:{weight:"bold"},titleSpacing:2,titleMarginBottom:6,titleAlign:"left",bodyColor:"#fff",bodySpacing:2,bodyFont:{},bodyAlign:"left",footerColor:"#fff",footerSpacing:2,footerMarginTop:6,footerFont:{weight:"bold"},footerAlign:"left",padding:6,caretPadding:2,caretSize:5,cornerRadius:6,boxHeight:(t,n)=>n.bodyFont.size,boxWidth:(t,n)=>n.bodyFont.size,multiKeyBackground:"#fff",displayColors:!0,boxPadding:0,borderColor:"rgba(0,0,0,0)",borderWidth:0,animation:{duration:400,easing:"easeOutQuart"},animations:{numbers:{type:"number",properties:["x","y","width","height","caretX","caretY"]},opacity:{easing:"linear",duration:200}},callbacks:fH},defaultRoutes:{bodyFont:"font",footerFont:"font",titleFont:"font"},descriptors:{_scriptable:t=>t!=="filter"&&t!=="itemSort"&&t!=="external",_indexable:!1,callbacks:{_scriptable:!1,_indexable:!1},animation:{_fallback:!1},animations:{_fallback:"animation"}},additionalOptionScopes:["interaction"]},gse=Object.freeze({__proto__:null,Colors:Sae,Decimation:Oae,Filler:Xae,Legend:rse,SubTitle:sse,Title:ase,Tooltip:fse}),_se=(t,n,e,i)=>(typeof n=="string"?(e=t.push(n)-1,i.unshift({index:e,label:n})):isNaN(n)&&(e=null),e);function bse(t,n,e,i){let r=t.indexOf(n);if(r===-1)return _se(t,n,e,i);let o=t.lastIndexOf(n);return r!==o?e:r}var vse=(t,n)=>t===null?null:Dn(Math.round(t),0,n);function j4(t){let n=this.getLabels();return t>=0&&t{class t extends Eu{static id="category";static defaults={ticks:{callback:j4}};constructor(e){super(e),this._startValue=void 0,this._valueRange=0,this._addedLabels=[]}init(e){let i=this._addedLabels;if(i.length){let r=this.getLabels();for(let{index:o,label:a}of i)r[o]===a&&r.splice(o,1);this._addedLabels=[]}super.init(e)}parse(e,i){if(Et(e))return null;let r=this.getLabels();return i=isFinite(i)&&r[i]===e?i:bse(r,e,st(i,e),this._addedLabels),vse(i,r.length-1)}determineDataLimits(){let{minDefined:e,maxDefined:i}=this.getUserBounds(),{min:r,max:o}=this.getMinMax(!0);this.options.bounds==="ticks"&&(e||(r=0),i||(o=this.getLabels().length-1)),this.min=r,this.max=o}buildTicks(){let e=this.min,i=this.max,r=this.options.offset,o=[],a=this.getLabels();a=e===0&&i===a.length-1?a:a.slice(e,i+1),this._valueRange=Math.max(a.length-(r?0:1),1),this._startValue=this.min-(r?.5:0);for(let s=e;s<=i;s++)o.push({value:s});return o}getLabelForValue(e){return j4.call(this,e)}configure(){super.configure(),this.isHorizontal()||(this._reversePixels=!this._reversePixels)}getPixelForValue(e){return typeof e!="number"&&(e=this.parse(e)),e===null?NaN:this.getPixelForDecimal((e-this._startValue)/this._valueRange)}getPixelForTick(e){let i=this.ticks;return e<0||e>i.length-1?null:this.getPixelForValue(i[e].value)}getValueForPixel(e){return Math.round(this._startValue+this.getDecimalForPixel(e)*this._valueRange)}getBasePixel(){return this.bottom}}return t})();function xse(t,n){let e=[],{bounds:r,step:o,min:a,max:s,precision:l,count:c,maxTicks:d,maxDigits:m,includeBounds:f}=t,b=o||1,v=d-1,{min:w,max:x}=n,D=!Et(a),P=!Et(s),W=!Et(c),Z=(x-w)/(m+1),K=ZS((x-w)/v/b)*b,re,Ee,be,Ve;if(K<1e-14&&!D&&!P)return[{value:w},{value:x}];Ve=Math.ceil(x/K)-Math.floor(w/K),Ve>v&&(K=ZS(Ve*K/v/b)*b),Et(l)||(re=Math.pow(10,l),K=Math.ceil(K*re)/re),r==="ticks"?(Ee=Math.floor(w/K)*K,be=Math.ceil(x/K)*K):(Ee=w,be=x),D&&P&&o&&Mj((s-a)/o,K/1e3)?(Ve=Math.round(Math.min((s-a)/K,d)),K=(s-a)/Ve,Ee=a,be=s):W?(Ee=D?a:Ee,be=P?s:be,Ve=c-1,K=(be-Ee)/Ve):(Ve=(be-Ee)/K,Lh(Ve,Math.round(Ve),K/1e3)?Ve=Math.round(Ve):Ve=Math.ceil(Ve));let yt=Math.max(JS(K),JS(Ee));re=Math.pow(10,Et(l)?yt:l),Ee=Math.round(Ee*re)/re,be=Math.round(be*re)/re;let bt=0;for(D&&(f&&Ee!==a?(e.push({value:a}),Ees)break;e.push({value:It})}return P&&f&&be!==s?e.length&&Lh(e[e.length-1].value,s,H4(s,Z,t))?e[e.length-1].value=s:e.push({value:s}):(!P||be===s)&&e.push({value:be}),e}function H4(t,n,{horizontal:e,minRotation:i}){let r=ra(i),o=(e?Math.sin(r):Math.cos(r))||.001,a=.75*n*(""+t).length;return Math.min(n/o,a)}var $h=class extends Eu{constructor(n){super(n),this.start=void 0,this.end=void 0,this._startValue=void 0,this._endValue=void 0,this._valueRange=0}parse(n,e){return Et(n)||(typeof n=="number"||n instanceof Number)&&!isFinite(+n)?null:+n}handleTickRangeOptions(){let{beginAtZero:n}=this.options,{minDefined:e,maxDefined:i}=this.getUserBounds(),{min:r,max:o}=this,a=l=>r=e?r:l,s=l=>o=i?o:l;if(n){let l=Ba(r),c=Ba(o);l<0&&c<0?s(0):l>0&&c>0&&a(0)}if(r===o){let l=o===0?1:Math.abs(o*.05);s(o+l),n||a(r-l)}this.min=r,this.max=o}getTickLimit(){let n=this.options.ticks,{maxTicksLimit:e,stepSize:i}=n,r;return i?(r=Math.ceil(this.max/i)-Math.floor(this.min/i)+1,r>1e3&&(console.warn(`scales.${this.id}.ticks.stepSize: ${i} would result generating up to ${r} ticks. Limiting to 1000.`),r=1e3)):(r=this.computeTickLimit(),e=e||11),e&&(r=Math.min(e,r)),r}computeTickLimit(){return Number.POSITIVE_INFINITY}buildTicks(){let n=this.options,e=n.ticks,i=this.getTickLimit();i=Math.max(2,i);let r={maxTicks:i,bounds:n.bounds,min:n.min,max:n.max,precision:e.precision,step:e.stepSize,count:e.count,maxDigits:this._maxDigits(),horizontal:this.isHorizontal(),minRotation:e.minRotation||0,includeBounds:e.includeBounds!==!1},o=this._range||this,a=xse(r,o);return n.bounds==="ticks"&&XS(a,this,"value"),n.reverse?(a.reverse(),this.start=this.max,this.end=this.min):(this.start=this.min,this.end=this.max),a}configure(){let n=this.ticks,e=this.min,i=this.max;if(super.configure(),this.options.offset&&n.length){let r=(i-e)/Math.max(n.length-1,1)/2;e-=r,i+=r}this._startValue=e,this._endValue=i,this._valueRange=i-e}getLabelForValue(n){return Bh(n,this.chart.options.locale,this.options.ticks.format)}},QT=class extends $h{static id="linear";static defaults={ticks:{callback:jg.formatters.numeric}};determineDataLimits(){let{min:n,max:e}=this.getMinMax(!0);this.min=Gi(n)?n:0,this.max=Gi(e)?e:1,this.handleTickRangeOptions()}computeTickLimit(){let n=this.isHorizontal(),e=n?this.width:this.height,i=ra(this.options.ticks.minRotation),r=(n?Math.sin(i):Math.cos(i))||.001,o=this._resolveTickFontOptions(0);return Math.ceil(e/Math.min(40,o.lineHeight/r))}getPixelForValue(n){return n===null?NaN:this.getPixelForDecimal((n-this._startValue)/this._valueRange)}getValueForPixel(n){return this._startValue+this.getDecimalForPixel(n)*this._valueRange}},Xg=t=>Math.floor(gl(t)),Du=(t,n)=>Math.pow(10,Xg(t)+n);function z4(t){return t/Math.pow(10,Xg(t))===1}function U4(t,n,e){let i=Math.pow(10,e),r=Math.floor(t/i);return Math.ceil(n/i)-r}function Cse(t,n){let e=n-t,i=Xg(e);for(;U4(t,n,i)>10;)i++;for(;U4(t,n,i)<10;)i--;return Math.min(i,Xg(t))}function wse(t,{min:n,max:e}){n=no(t.min,n);let i=[],r=Xg(n),o=Cse(n,e),a=o<0?Math.pow(10,Math.abs(o)):1,s=Math.pow(10,o),l=r>o?Math.pow(10,r):0,c=Math.round((n-l)*a)/a,d=Math.floor((n-l)/s/10)*s*10,m=Math.floor((c-d)/Math.pow(10,o)),f=no(t.min,Math.round((l+d+m*Math.pow(10,o))*a)/a);for(;f=10?m=m<15?15:20:m++,m>=20&&(o++,m=2,a=o>=0?1:a),f=Math.round((l+d+m*Math.pow(10,o))*a)/a;let b=no(t.max,f);return i.push({value:b,major:z4(b),significand:m}),i}var KT=class extends Eu{static id="logarithmic";static defaults={ticks:{callback:jg.formatters.logarithmic,major:{enabled:!0}}};constructor(n){super(n),this.start=void 0,this.end=void 0,this._startValue=void 0,this._valueRange=0}parse(n,e){let i=$h.prototype.parse.apply(this,[n,e]);if(i===0){this._zero=!0;return}return Gi(i)&&i>0?i:null}determineDataLimits(){let{min:n,max:e}=this.getMinMax(!0);this.min=Gi(n)?Math.max(0,n):null,this.max=Gi(e)?Math.max(0,e):null,this.options.beginAtZero&&(this._zero=!0),this._zero&&this.min!==this._suggestedMin&&!Gi(this._userMin)&&(this.min=n===Du(this.min,0)?Du(this.min,-1):Du(this.min,0)),this.handleTickRangeOptions()}handleTickRangeOptions(){let{minDefined:n,maxDefined:e}=this.getUserBounds(),i=this.min,r=this.max,o=s=>i=n?i:s,a=s=>r=e?r:s;i===r&&(i<=0?(o(1),a(10)):(o(Du(i,-1)),a(Du(r,1)))),i<=0&&o(Du(r,-1)),r<=0&&a(Du(i,1)),this.min=i,this.max=r}buildTicks(){let n=this.options,e={min:this._userMin,max:this._userMax},i=wse(e,this);return n.bounds==="ticks"&&XS(i,this,"value"),n.reverse?(i.reverse(),this.start=this.max,this.end=this.min):(this.start=this.min,this.end=this.max),i}getLabelForValue(n){return n===void 0?"0":Bh(n,this.chart.options.locale,this.options.ticks.format)}configure(){let n=this.min;super.configure(),this._startValue=gl(n),this._valueRange=gl(this.max)-gl(n)}getPixelForValue(n){return(n===void 0||n===0)&&(n=this.min),n===null||isNaN(n)?NaN:this.getPixelForDecimal(n===this.min?0:(gl(n)-this._startValue)/this._valueRange)}getValueForPixel(n){let e=this.getDecimalForPixel(n);return Math.pow(10,this._startValue+e*this._valueRange)}};function ZT(t){let n=t.ticks;if(n.display&&t.display){let e=sr(n.backdropPadding);return st(n.font&&n.font.size,xi.font.size)+e.height}return 0}function Dse(t,n,e){return e=Ei(e)?e:[e],{w:Fj(t,n.string,e),h:e.length*n.lineHeight}}function $4(t,n,e,i,r){return t===i||t===r?{start:n-e/2,end:n+e/2}:tr?{start:n-e,end:n}:{start:n,end:n+e}}function Ese(t){let n={l:t.left+t._padding.left,r:t.right-t._padding.right,t:t.top+t._padding.top,b:t.bottom-t._padding.bottom},e=Object.assign({},n),i=[],r=[],o=t._pointLabels.length,a=t.options.pointLabels,s=a.centerPointLabels?Ht/o:0;for(let l=0;ln.r&&(s=(i.end-n.r)/o,t.r=Math.max(t.r,n.r+s)),r.startn.b&&(l=(r.end-n.b)/a,t.b=Math.max(t.b,n.b+l))}function kse(t,n,e){let i=t.drawingArea,{extra:r,additionalAngle:o,padding:a,size:s}=e,l=t.getPointPosition(n,i+r+a,o),c=Math.round(Hx(or(l.angle+Zi))),d=Ose(l.y,s.h,c),m=Ise(c),f=Ase(l.x,s.w,m);return{visible:!0,x:l.x,y:d,textAlign:m,left:f,top:d,right:f+s.w,bottom:d+s.h}}function Sse(t,n){if(!n)return!0;let{left:e,top:i,right:r,bottom:o}=t;return!(Ss({x:e,y:i},n)||Ss({x:e,y:o},n)||Ss({x:r,y:i},n)||Ss({x:r,y:o},n))}function Tse(t,n,e){let i=[],r=t._pointLabels.length,o=t.options,{centerPointLabels:a,display:s}=o.pointLabels,l={extra:ZT(o)/2,additionalAngle:a?Ht/r:0},c;for(let d=0;d270||e<90)&&(t-=n),t}function Rse(t,n,e){let{left:i,top:r,right:o,bottom:a}=e,{backdropColor:s}=n;if(!Et(s)){let l=Tc(n.borderRadius),c=sr(n.backdropPadding);t.fillStyle=s;let d=i-c.left,m=r-c.top,f=o-i+c.width,b=a-r+c.height;Object.values(l).some(v=>v!==0)?(t.beginPath(),jh(t,{x:d,y:m,w:f,h:b,radius:l}),t.fill()):t.fillRect(d,m,f,b)}}function Pse(t,n){let{ctx:e,options:{pointLabels:i}}=t;for(let r=n-1;r>=0;r--){let o=t._pointLabelItems[r];if(!o.visible)continue;let a=i.setContext(t.getPointLabelContext(r));Rse(e,a,o);let s=pn(a.font),{x:l,y:c,textAlign:d}=o;Sc(e,t._pointLabels[r],l,c+s.lineHeight/2,s,{color:a.color,textAlign:d,textBaseline:"middle"})}}function gH(t,n,e,i){let{ctx:r}=t;if(e)r.arc(t.xCenter,t.yCenter,n,0,Mi);else{let o=t.getPointPosition(0,n);r.moveTo(o.x,o.y);for(let a=1;a{let r=yi(this.options.pointLabels.callback,[e,i],this);return r||r===0?r:""}).filter((e,i)=>this.chart.getDataVisibility(i))}fit(){let n=this.options;n.display&&n.pointLabels.display?Ese(this):this.setCenterPoint(0,0,0,0)}setCenterPoint(n,e,i,r){this.xCenter+=Math.floor((n-e)/2),this.yCenter+=Math.floor((i-r)/2),this.drawingArea-=Math.min(this.drawingArea/2,Math.max(n,e,i,r))}getIndexAngle(n){let e=Mi/(this._pointLabels.length||1),i=this.options.startAngle||0;return or(n*e+ra(i))}getDistanceFromCenterForValue(n){if(Et(n))return NaN;let e=this.drawingArea/(this.max-this.min);return this.options.reverse?(this.max-n)*e:(n-this.min)*e}getValueForDistanceFromCenter(n){if(Et(n))return NaN;let e=n/(this.drawingArea/(this.max-this.min));return this.options.reverse?this.max-e:this.min+e}getPointLabelContext(n){let e=this._pointLabels||[];if(n>=0&&n{if(m!==0||m===0&&this.min<0){l=this.getDistanceFromCenterForValue(d.value);let f=this.getContext(m),b=r.setContext(f),v=o.setContext(f);Fse(this,b,l,a,v)}}),i.display){for(n.save(),s=a-1;s>=0;s--){let d=i.setContext(this.getPointLabelContext(s)),{color:m,lineWidth:f}=d;!f||!m||(n.lineWidth=f,n.strokeStyle=m,n.setLineDash(d.borderDash),n.lineDashOffset=d.borderDashOffset,l=this.getDistanceFromCenterForValue(e.reverse?this.min:this.max),c=this.getPointPosition(s,l),n.beginPath(),n.moveTo(this.xCenter,this.yCenter),n.lineTo(c.x,c.y),n.stroke())}n.restore()}}drawBorder(){}drawLabels(){let n=this.ctx,e=this.options,i=e.ticks;if(!i.display)return;let r=this.getIndexAngle(0),o,a;n.save(),n.translate(this.xCenter,this.yCenter),n.rotate(r),n.textAlign="center",n.textBaseline="middle",this.ticks.forEach((s,l)=>{if(l===0&&this.min>=0&&!e.reverse)return;let c=i.setContext(this.getContext(l)),d=pn(c.font);if(o=this.getDistanceFromCenterForValue(this.ticks[l].value),c.showLabelBackdrop){n.font=d.string,a=n.measureText(s.label).width,n.fillStyle=c.backdropColor;let m=sr(c.backdropPadding);n.fillRect(-a/2-m.left,-o-d.size/2-m.top,a+m.width,d.size+m.height)}Sc(n,s.label,0,-o,d,{color:c.color,strokeColor:c.textStrokeColor,strokeWidth:c.textStrokeWidth})}),n.restore()}drawTitle(){}},pC={millisecond:{common:!0,size:1,steps:1e3},second:{common:!0,size:1e3,steps:60},minute:{common:!0,size:6e4,steps:60},hour:{common:!0,size:36e5,steps:24},day:{common:!0,size:864e5,steps:30},week:{common:!1,size:6048e5,steps:4},month:{common:!0,size:2628e6,steps:12},quarter:{common:!1,size:7884e6,steps:4},year:{common:!0,size:3154e7}},oo=Object.keys(pC);function W4(t,n){return t-n}function G4(t,n){if(Et(n))return null;let e=t._adapter,{parser:i,round:r,isoWeekday:o}=t._parseOpts,a=n;return typeof i=="function"&&(a=i(a)),Gi(a)||(a=typeof i=="string"?e.parse(a,i):e.parse(a)),a===null?null:(r&&(a=r==="week"&&(xu(o)||o===!0)?e.startOf(a,"isoWeek",o):e.startOf(a,r)),+a)}function q4(t,n,e,i){let r=oo.length;for(let o=oo.indexOf(t);o=oo.indexOf(e);o--){let a=oo[o];if(pC[a].common&&t._adapter.diff(r,i,a)>=n-1)return a}return oo[e?oo.indexOf(e):0]}function Vse(t){for(let n=oo.indexOf(t)+1,e=oo.length;n=n?e[i]:e[r];t[o]=!0}}function Bse(t,n,e,i){let r=t._adapter,o=+r.startOf(n[0].value,i),a=n[n.length-1].value,s,l;for(s=o;s<=a;s=+r.add(s,1,i))l=e[s],l>=0&&(n[l].major=!0);return n}function Q4(t,n,e){let i=[],r={},o=n.length,a,s;for(a=0;a{class t extends Eu{static id="time";static defaults={bounds:"data",adapters:{},time:{parser:!1,unit:!1,round:!1,isoWeekday:!1,minUnit:"millisecond",displayFormats:{}},ticks:{source:"auto",callback:!1,major:{enabled:!1}}};constructor(e){super(e),this._cache={data:[],labels:[],all:[]},this._unit="day",this._majorUnit=void 0,this._offsets={},this._normalized=!1,this._parseOpts=void 0}init(e,i={}){let r=e.time||(e.time={}),o=this._adapter=new Kre._date(e.adapters.date);o.init(i),Fh(r.displayFormats,o.formats()),this._parseOpts={parser:r.parser,round:r.round,isoWeekday:r.isoWeekday},super.init(e),this._normalized=i.normalized}parse(e,i){return e===void 0?null:G4(this,e)}beforeLayout(){super.beforeLayout(),this._cache={data:[],labels:[],all:[]}}determineDataLimits(){let e=this.options,i=this._adapter,r=e.time.unit||"day",{min:o,max:a,minDefined:s,maxDefined:l}=this.getUserBounds();function c(d){!s&&!isNaN(d.min)&&(o=Math.min(o,d.min)),!l&&!isNaN(d.max)&&(a=Math.max(a,d.max))}(!s||!l)&&(c(this._getLabelBounds()),(e.bounds!=="ticks"||e.ticks.source!=="labels")&&c(this.getMinMax(!1))),o=Gi(o)&&!isNaN(o)?o:+i.startOf(Date.now(),r),a=Gi(a)&&!isNaN(a)?a:+i.endOf(Date.now(),r)+1,this.min=Math.min(o,a-1),this.max=Math.max(o+1,a)}_getLabelBounds(){let e=this.getLabelTimestamps(),i=Number.POSITIVE_INFINITY,r=Number.NEGATIVE_INFINITY;return e.length&&(i=e[0],r=e[e.length-1]),{min:i,max:r}}buildTicks(){let e=this.options,i=e.time,r=e.ticks,o=r.source==="labels"?this.getLabelTimestamps():this._generate();e.bounds==="ticks"&&o.length&&(this.min=this._userMin||o[0],this.max=this._userMax||o[o.length-1]);let a=this.min,s=this.max,l=Tj(o,a,s);return this._unit=i.unit||(r.autoSkip?q4(i.minUnit,this.min,this.max,this._getLabelCapacity(a)):Lse(this,l.length,i.minUnit,this.min,this.max)),this._majorUnit=!r.major.enabled||this._unit==="year"?void 0:Vse(this._unit),this.initOffsets(o),e.reverse&&l.reverse(),Q4(this,l,this._majorUnit)}afterAutoSkip(){this.options.offsetAfterAutoskip&&this.initOffsets(this.ticks.map(e=>+e.value))}initOffsets(e=[]){let i=0,r=0,o,a;this.options.offset&&e.length&&(o=this.getDecimalForValue(e[0]),e.length===1?i=1-o:i=(this.getDecimalForValue(e[1])-o)/2,a=this.getDecimalForValue(e[e.length-1]),e.length===1?r=a:r=(a-this.getDecimalForValue(e[e.length-2]))/2);let s=e.length<3?.5:.25;i=Dn(i,0,s),r=Dn(r,0,s),this._offsets={start:i,end:r,factor:1/(i+1+r)}}_generate(){let e=this._adapter,i=this.min,r=this.max,o=this.options,a=o.time,s=a.unit||q4(a.minUnit,i,r,this._getLabelCapacity(i)),l=st(o.ticks.stepSize,1),c=s==="week"?a.isoWeekday:!1,d=xu(c)||c===!0,m={},f=i,b,v;if(d&&(f=+e.startOf(f,"isoWeek",c)),f=+e.startOf(f,d?"day":s),e.diff(r,i,s)>1e5*l)throw new Error(i+" and "+r+" are too far apart with stepSize of "+l+" "+s);let w=o.ticks.source==="data"&&this.getDataTimestamps();for(b=f,v=0;b+x)}getLabelForValue(e){let i=this._adapter,r=this.options.time;return r.tooltipFormat?i.format(e,r.tooltipFormat):i.format(e,r.displayFormats.datetime)}format(e,i){let o=this.options.time.displayFormats,a=this._unit,s=i||o[a];return this._adapter.format(e,s)}_tickFormatFunction(e,i,r,o){let a=this.options,s=a.ticks.callback;if(s)return yi(s,[e,i,r],this);let l=a.time.displayFormats,c=this._unit,d=this._majorUnit,m=c&&l[c],f=d&&l[d],b=r[i],v=d&&f&&b&&b.major;return this._adapter.format(e,o||(v?f:m))}generateTickLabels(e){let i,r,o;for(i=0,r=e.length;i0?l:1}getDataTimestamps(){let e=this._cache.data||[],i,r;if(e.length)return e;let o=this.getMatchingVisibleMetas();if(this._normalized&&o.length)return this._cache.data=o[0].controller.getAllParsedValues(this);for(i=0,r=o.length;i=t[i].pos&&n<=t[r].pos&&({lo:i,hi:r}=ks(t,"pos",n)),{pos:o,time:s}=t[i],{pos:a,time:l}=t[r]):(n>=t[i].time&&n<=t[r].time&&({lo:i,hi:r}=ks(t,"time",n)),{time:o,pos:s}=t[i],{time:a,pos:l}=t[r]);let c=a-o;return c?s+(l-s)*(n-o)/c:s}var eI=class extends JT{static id="timeseries";static defaults=JT.defaults;constructor(n){super(n),this._table=[],this._minPos=void 0,this._tableRange=void 0}initOffsets(){let n=this._getTimestampsForTable(),e=this._table=this.buildLookupTable(n);this._minPos=iC(e,this.min),this._tableRange=iC(e,this.max)-this._minPos,super.initOffsets(n)}buildLookupTable(n){let{min:e,max:i}=this,r=[],o=[],a,s,l,c,d;for(a=0,s=n.length;a=e&&c<=i&&r.push(c);if(r.length<2)return[{time:e,pos:0},{time:i,pos:1}];for(a=0,s=r.length;ar-o)}_getTimestampsForTable(){let n=this._cache.all||[];if(n.length)return n;let e=this.getDataTimestamps(),i=this.getLabelTimestamps();return e.length&&i.length?n=this.normalize(e.concat(i)):n=e.length?e:i,n=this._cache.all=n,n}getDecimalForValue(n){return(iC(this._table,n)-this._minPos)/this._tableRange}getValueForPixel(n){let e=this._offsets,i=this.getDecimalForPixel(n)/e.factor-e.end;return iC(this._table,i*this._tableRange+this._minPos,!0)}},jse=Object.freeze({__proto__:null,CategoryScale:yse,LinearScale:QT,LogarithmicScale:KT,RadialLinearScale:XT,TimeScale:JT,TimeSeriesScale:eI}),_H=[Qre,xae,gse,jse];var Hse=typeof global=="object"&&global&&global.Object===Object&&global,fC=Hse;var zse=typeof self=="object"&&self&&self.Object===Object&&self,Use=fC||zse||Function("return this")(),oa=Use;var $se=oa.Symbol,Wh=$se;var bH=Object.prototype,Wse=bH.hasOwnProperty,Gse=bH.toString,e_=Wh?Wh.toStringTag:void 0;function qse(t){var n=Wse.call(t,e_),e=t[e_];try{t[e_]=void 0;var i=!0}catch{}var r=Gse.call(t);return i&&(n?t[e_]=e:delete t[e_]),r}var vH=qse;var Yse=Object.prototype,Qse=Yse.toString;function Kse(t){return Qse.call(t)}var yH=Kse;var Zse="[object Null]",Xse="[object Undefined]",xH=Wh?Wh.toStringTag:void 0;function Jse(t){return t==null?t===void 0?Xse:Zse:xH&&xH in Object(t)?vH(t):yH(t)}var Rc=Jse;function ele(t){return t!=null&&typeof t=="object"}var Rs=ele;var tle=Array.isArray,t_=tle;function ile(t){var n=typeof t;return t!=null&&(n=="object"||n=="function")}var ao=ile;function nle(t){return t}var gC=nle;var rle="[object AsyncFunction]",ole="[object Function]",ale="[object GeneratorFunction]",sle="[object Proxy]";function lle(t){if(!ao(t))return!1;var n=Rc(t);return n==ole||n==ale||n==rle||n==sle}var Gh=lle;var cle=oa["__core-js_shared__"],_C=cle;var CH=(function(){var t=/[^.]+$/.exec(_C&&_C.keys&&_C.keys.IE_PROTO||"");return t?"Symbol(src)_1."+t:""})();function dle(t){return!!CH&&CH in t}var wH=dle;var ule=Function.prototype,mle=ule.toString;function hle(t){if(t!=null){try{return mle.call(t)}catch{}try{return t+""}catch{}}return""}var DH=hle;var ple=/[\\^$.*+?()[\]{}|]/g,fle=/^\[object .+?Constructor\]$/,gle=Function.prototype,_le=Object.prototype,ble=gle.toString,vle=_le.hasOwnProperty,yle=RegExp("^"+ble.call(vle).replace(ple,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function xle(t){if(!ao(t)||wH(t))return!1;var n=Gh(t)?yle:fle;return n.test(DH(t))}var EH=xle;function Cle(t,n){return t?.[n]}var MH=Cle;function wle(t,n){var e=MH(t,n);return EH(e)?e:void 0}var qh=wle;var kH=Object.create,Dle=(function(){function t(){}return function(n){if(!ao(n))return{};if(kH)return kH(n);t.prototype=n;var e=new t;return t.prototype=void 0,e}})(),SH=Dle;function Ele(t,n,e){switch(e.length){case 0:return t.call(n);case 1:return t.call(n,e[0]);case 2:return t.call(n,e[0],e[1]);case 3:return t.call(n,e[0],e[1],e[2])}return t.apply(n,e)}var TH=Ele;function Mle(t,n){var e=-1,i=t.length;for(n||(n=Array(i));++e0){if(++n>=kle)return arguments[0]}else n=0;return t.apply(void 0,arguments)}}var AH=Ile;function Ale(t){return function(){return t}}var OH=Ale;var Ole=(function(){try{var t=qh(Object,"defineProperty");return t({},"",{}),t}catch{}})(),Yh=Ole;var Rle=Yh?function(t,n){return Yh(t,"toString",{configurable:!0,enumerable:!1,value:OH(n),writable:!0})}:gC,RH=Rle;var Ple=AH(RH),PH=Ple;var Fle=9007199254740991,Nle=/^(?:0|[1-9]\d*)$/;function Lle(t,n){var e=typeof t;return n=n??Fle,!!n&&(e=="number"||e!="symbol"&&Nle.test(t))&&t>-1&&t%1==0&&t-1&&t%1==0&&t<=Gle}var vC=qle;function Yle(t){return t!=null&&vC(t.length)&&!Gh(t)}var Kh=Yle;function Qle(t,n,e){if(!ao(e))return!1;var i=typeof n;return(i=="number"?Kh(e)&&bC(n,e.length):i=="string"&&n in e)?Pc(e[n],t):!1}var jH=Qle;function Kle(t){return BH(function(n,e){var i=-1,r=e.length,o=r>1?e[r-1]:void 0,a=r>2?e[2]:void 0;for(o=t.length>3&&typeof o=="function"?(r--,o):void 0,a&&jH(e[0],e[1],a)&&(o=r<3?void 0:o,r=1),n=Object(n);++i-1}var d5=ude;function mde(t,n){var e=this.__data__,i=Fc(e,t);return i<0?(++this.size,e.push([t,n])):e[i][1]=n,this}var u5=mde;function Xh(t){var n=-1,e=t==null?0:t.length;for(this.clear();++n{let n=class n{constructor(){this.colorschemesOptions=new tt(void 0)}setColorschemesOptions(i){this.pColorschemesOptions=i,this.colorschemesOptions.next(i)}getColorschemesOptions(){return this.pColorschemesOptions}};n.\u0275fac=function(r){return new(r||n)},n.\u0275prov=O({token:n,factory:n.\u0275fac,providedIn:"root"});let t=n;return t})(),W5=(()=>{let n=class n{constructor(i,r,o,a){this.zone=r,this.themeService=o,this.type="bar",this.plugins=[],this.chartClick=new U,this.chartHover=new U,this.subs=[],this.themeOverrides={},a?.registerables&&uC.register(...a.registerables),a?.defaults&&xi.set(a.defaults),this.ctx=i.nativeElement.getContext("2d"),this.subs.push(this.themeService.colorschemesOptions.pipe(Sn()).subscribe(s=>this.themeChanged(s)))}ngOnChanges(i){let r=["type"],o=Object.getOwnPropertyNames(i);if(o.some(a=>r.includes(a))||o.every(a=>i[a].isFirstChange()))this.render();else{let a=this.getChartConfiguration();this.chart&&(Object.assign(this.chart.config.data,a.data),this.chart.config.plugins&&Object.assign(this.chart.config.plugins,a.plugins),this.chart.config.options&&Object.assign(this.chart.config.options,a.options)),this.update()}}ngOnDestroy(){this.chart&&(this.chart.destroy(),this.chart=void 0),this.subs.forEach(i=>i.unsubscribe())}render(){return this.chart&&this.chart.destroy(),this.zone.runOutsideAngular(()=>this.chart=new uC(this.ctx,this.getChartConfiguration()))}update(i){this.chart&&this.zone.runOutsideAngular(()=>this.chart?.update(i))}hideDataset(i,r){this.chart&&(this.chart.getDatasetMeta(i).hidden=r,this.update())}isDatasetHidden(i){return this.chart?.getDatasetMeta(i)?.hidden}toBase64Image(){return this.chart?.toBase64Image()}themeChanged(i){this.themeOverrides=i,this.chart&&(this.chart.config.options&&Object.assign(this.chart.config.options,this.getChartOptions()),this.update())}getChartOptions(){return MC({onHover:(i,r)=>{!this.chartHover.observed&&!this.chartHover.observers?.length||this.zone.run(()=>this.chartHover.emit({event:i,active:r}))},onClick:(i,r)=>{!this.chartClick.observed&&!this.chartClick.observers?.length||this.zone.run(()=>this.chartClick.emit({event:i,active:r}))}},this.themeOverrides,this.options,{plugins:{legend:{display:this.legend}}})}getChartConfiguration(){return{type:this.type,data:this.getChartData(),options:this.getChartOptions(),plugins:this.plugins}}getChartData(){return this.data?this.data:{labels:this.labels||[],datasets:this.datasets||[]}}};n.\u0275fac=function(r){return new(r||n)(_e(q),_e(ae),_e(Yde),_e(z5,8))},n.\u0275dir=F({type:n,selectors:[["canvas","baseChart",""]],inputs:{type:"type",legend:"legend",data:"data",options:"options",plugins:"plugins",labels:"labels",datasets:"datasets"},outputs:{chartClick:"chartClick",chartHover:"chartHover"},exportAs:["base-chart"],features:[Ae]});let t=n;return t})();var ko={production:!0,baseUrl:"",useHash:!1,apiUrl:"https://app-talent-api-dev.azurewebsites.net/api/v1",identityServerUrl:"https://app-talent-ids-dev.azurewebsites.net",clientId:"TalentManagement",scope:"openid profile email roles app.api.talentmanagement.read app.api.talentmanagement.write",allowAnonymousAccess:!0};var G5={issuer:ko.identityServerUrl,redirectUri:window.location.origin+"/callback",postLogoutRedirectUri:window.location.origin,clientId:ko.clientId,scope:ko.scope,responseType:"code",showDebugInformation:!ko.production,useSilentRefresh:!0,silentRefreshRedirectUri:window.location.origin+"/silent-refresh.html",silentRefreshTimeout:5e3,timeoutFactor:.75,sessionChecksEnabled:!0,clearHashAfterLogin:!0,strictDiscoveryDocumentValidation:!1,skipIssuerCheck:!ko.production,requireHttps:ko.production,requestAccessToken:!0,dummyClientSecret:void 0,customQueryParams:{}};var Tt=(()=>{let n=class n{constructor(){this.oauthService=u(Wm),this.router=u(Re),this.isAuthenticatedSubject=new tt(!1),this.isAuthenticated$=this.isAuthenticatedSubject.asObservable(),this.userInfoSubject=new tt(null),this.userInfo$=this.userInfoSubject.asObservable(),this.permissionsChangeSubject=new z,this.permissionsChange$=this.permissionsChangeSubject.asObservable(),this.configureOAuth()}configureOAuth(){this.oauthService.configure(G5),this.oauthService.events.pipe(ce(i=>i.type==="token_received")).subscribe(()=>{this.handleSuccessfulLogin()}),this.oauthService.events.pipe(ce(i=>i.type==="token_error"||i.type==="token_refresh_error")).subscribe(()=>{console.error("Token error occurred")}),this.oauthService.setupAutomaticSilentRefresh()}initAuth(){return fn(this,null,function*(){try{return yield this.oauthService.loadDiscoveryDocument(),yield this.oauthService.tryLogin(),this.oauthService.hasValidAccessToken()?(yield this.handleSuccessfulLogin(),!0):!1}catch(i){return console.error("Error during authentication initialization:",i),!1}})}login(i){i?this.oauthService.initCodeFlow(i):this.oauthService.initCodeFlow()}logout(){this.oauthService.logOut(),this.isAuthenticatedSubject.next(!1),this.userInfoSubject.next(null),this.permissionsChangeSubject.next()}handleSuccessfulLogin(){return fn(this,null,function*(){try{let i=this.oauthService.getIdentityClaims();this.userInfoSubject.next(i),this.isAuthenticatedSubject.next(!0),this.permissionsChangeSubject.next()}catch(i){console.error("Error loading user info:",i)}})}isAuthenticated(){return this.oauthService.hasValidAccessToken()}getAccessToken(){return this.oauthService.getAccessToken()}getUserInfo(){return this.userInfoSubject.value}getUserRoles(){let i=this.oauthService.getIdentityClaims();if(!i)return[];let r=i.role;return Array.isArray(r)?r:typeof r=="string"?[r]:[]}hasRole(i){return this.getUserRoles().includes(i)}isEmployee(){return this.hasRole("Employee")}isManager(){return this.hasRole("Manager")}isHRAdmin(){return this.hasRole("HRAdmin")}hasAnyRole(i){let r=this.getUserRoles();return i.some(o=>r.includes(o))}getUserDisplayName(){let i=this.getUserInfo();return i?.name||i?.email||"User"}};n.\u0275fac=function(r){return new(r||n)},n.\u0275prov=O({token:n,factory:n.\u0275fac,providedIn:"root"});let t=n;return t})();var sI=(t,n)=>{let e=u(Tt);return ko.allowAnonymousAccess||e.isAuthenticated()?!0:(e.login(n?.url),!1)};var a_=t=>{let n=u(Tt),e=u(Re);return n.isAuthenticated()?n.isManager()||n.isHRAdmin()?!0:(e.navigate(["/403"]),!1):(n.login(),!1)},s_=t=>{let n=u(Tt),e=u(Re);return n.isAuthenticated()?n.isHRAdmin()?!0:(e.navigate(["/403"]),!1):(n.login(),!1)};var so=(()=>{let n=class n{constructor(){this.menu$=new tt([])}getAll(){return this.menu$.asObservable()}change(){return this.menu$.pipe(Nl())}set(i){return this.menu$.next(i),this.menu$.asObservable()}add(i){let r=this.menu$.value;r.push(i),this.menu$.next(r)}reset(){this.menu$.next([])}buildRoute(i){let r="";return i.forEach(o=>{o&&o.trim()&&(r+="/"+o.replace(/^\/+|\/+$/g,""))}),r}getItemName(i){return this.getLevel(i)[i.length-1]}isLeafItem(i){let r=i.route===void 0,o=i.children===void 0,a=!o&&i.children?.length===0;return r||o||a}deepClone(i){return JSON.parse(JSON.stringify(i))}isJsonObjEqual(i,r){return JSON.stringify(i)===JSON.stringify(r)}isRouteEqual(i,r){return r=this.deepClone(r),r=r.filter(o=>o!==""),this.isJsonObjEqual(i,r)}getLevel(i){let r=[];return this.menu$.value.forEach(o=>{let a=[{item:o,parentNamePathList:[],realRouteArr:[]}];for(;a.length>0;){let s=[];for(let l of a){let c=l.item,d=this.deepClone(l.parentNamePathList).concat(c.name),m=this.deepClone(l.realRouteArr).concat(c.route);if(this.isRouteEqual(i,m)){r=d;break}if(!this.isLeafItem(c)){let f=c.children?.map(b=>({item:b,parentNamePathList:d,realRouteArr:m}));s=s.concat(f)}}a=s}}),r}addNamespace(i,r){i.forEach(o=>{o.name=`${r}.${o.name}`,o.children&&o.children.length>0&&this.addNamespace(o.children,o.name)})}};n.\u0275fac=function(r){return new(r||n)},n.\u0275prov=O({token:n,factory:n.\u0275fac,providedIn:"root"});let t=n;return t})();var kC;function Qde(){if(kC===void 0&&(kC=null,typeof window<"u")){let t=window;t.trustedTypes!==void 0&&(kC=t.trustedTypes.createPolicy("angular#components",{createHTML:n=>n}))}return kC}function l_(t){return Qde()?.createHTML(t)||t}function q5(t){return Error(`Unable to find icon with the name "${t}"`)}function Kde(){return Error("Could not find HttpClient for use with Angular Material icons. Please add provideHttpClient() to your providers.")}function Y5(t){return Error(`The URL provided to MatIconRegistry was not trusted as a resource URL via Angular's DomSanitizer. Attempted URL was "${t}".`)}function Q5(t){return Error(`The literal provided to MatIconRegistry was not trusted as safe HTML by Angular's DomSanitizer. Attempted literal was "${t}".`)}var Cl=class{url;svgText;options;svgElement;constructor(n,e,i){this.url=n,this.svgText=e,this.options=i}},Z5=(()=>{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,i,r,o){this._httpClient=e,this._sanitizer=i,this._errorHandler=o,this._document=r}addSvgIcon(e,i,r){return this.addSvgIconInNamespace("",e,i,r)}addSvgIconLiteral(e,i,r){return this.addSvgIconLiteralInNamespace("",e,i,r)}addSvgIconInNamespace(e,i,r,o){return this._addSvgIconConfig(e,i,new Cl(r,null,o))}addSvgIconResolver(e){return this._resolvers.push(e),this}addSvgIconLiteralInNamespace(e,i,r,o){let a=this._sanitizer.sanitize(An.HTML,r);if(!a)throw Q5(r);let s=l_(a);return this._addSvgIconConfig(e,i,new Cl("",s,o))}addSvgIconSet(e,i){return this.addSvgIconSetInNamespace("",e,i)}addSvgIconSetLiteral(e,i){return this.addSvgIconSetLiteralInNamespace("",e,i)}addSvgIconSetInNamespace(e,i,r){return this._addSvgIconSetConfig(e,new Cl(i,null,r))}addSvgIconSetLiteralInNamespace(e,i,r){let o=this._sanitizer.sanitize(An.HTML,i);if(!o)throw Q5(i);let a=l_(o);return this._addSvgIconSetConfig(e,new Cl("",a,r))}registerFontClassAlias(e,i=e){return this._fontCssClassesByAlias.set(e,i),this}classNameForFontAlias(e){return this._fontCssClassesByAlias.get(e)||e}setDefaultFontSetClass(...e){return this._defaultFontSetClass=e,this}getDefaultFontSetClass(){return this._defaultFontSetClass}getSvgIconFromUrl(e){let i=this._sanitizer.sanitize(An.RESOURCE_URL,e);if(!i)throw Y5(e);let r=this._cachedIconsByUrl.get(i);return r?Q(SC(r)):this._loadSvgIconFromConfig(new Cl(e,null)).pipe(Be(o=>this._cachedIconsByUrl.set(i,o)),se(o=>SC(o)))}getNamedSvgIcon(e,i=""){let r=K5(i,e),o=this._svgIconConfigs.get(r);if(o)return this._getSvgFromConfig(o);if(o=this._getIconConfigFromResolvers(i,e),o)return this._svgIconConfigs.set(r,o),this._getSvgFromConfig(o);let a=this._iconSetConfigs.get(i);return a?this._getSvgFromIconSetConfigs(e,a):Wn(q5(r))}ngOnDestroy(){this._resolvers=[],this._svgIconConfigs.clear(),this._iconSetConfigs.clear(),this._cachedIconsByUrl.clear()}_getSvgFromConfig(e){return e.svgText?Q(SC(this._svgElementFromConfig(e))):this._loadSvgIconFromConfig(e).pipe(se(i=>SC(i)))}_getSvgFromIconSetConfigs(e,i){let r=this._extractIconWithNameFromAnySet(e,i);if(r)return Q(r);let o=i.filter(a=>!a.svgText).map(a=>this._loadSvgIconSetFromConfig(a).pipe(fi(s=>{let c=`Loading icon set URL: ${this._sanitizer.sanitize(An.RESOURCE_URL,a.url)} failed: ${s.message}`;return this._errorHandler.handleError(new Error(c)),Q(null)})));return Ga(o).pipe(se(()=>{let a=this._extractIconWithNameFromAnySet(e,i);if(!a)throw q5(e);return a}))}_extractIconWithNameFromAnySet(e,i){for(let r=i.length-1;r>=0;r--){let o=i[r];if(o.svgText&&o.svgText.toString().indexOf(e)>-1){let a=this._svgElementFromConfig(o),s=this._extractSvgIconFromSet(a,e,o.options);if(s)return s}}return null}_loadSvgIconFromConfig(e){return this._fetchIcon(e).pipe(Be(i=>e.svgText=i),se(()=>this._svgElementFromConfig(e)))}_loadSvgIconSetFromConfig(e){return e.svgText?Q(null):this._fetchIcon(e).pipe(Be(i=>e.svgText=i))}_extractSvgIconFromSet(e,i,r){let o=e.querySelector(`[id="${i}"]`);if(!o)return null;let a=o.cloneNode(!0);if(a.removeAttribute("id"),a.nodeName.toLowerCase()==="svg")return this._setSvgAttributes(a,r);if(a.nodeName.toLowerCase()==="symbol")return this._setSvgAttributes(this._toSvgElement(a),r);let s=this._svgElementFromString(l_(""));return s.appendChild(a),this._setSvgAttributes(s,r)}_svgElementFromString(e){let i=this._document.createElement("DIV");i.innerHTML=e;let r=i.querySelector("svg");if(!r)throw Error(" tag not found");return r}_toSvgElement(e){let i=this._svgElementFromString(l_("")),r=e.attributes;for(let o=0;ol_(c)),Hr(()=>this._inProgressUrlFetches.delete(a)),Nl());return this._inProgressUrlFetches.set(a,l),l}_addSvgIconConfig(e,i,r){return this._svgIconConfigs.set(K5(e,i),r),this}_addSvgIconSetConfig(e,i){let r=this._iconSetConfigs.get(e);return r?r.push(i):this._iconSetConfigs.set(e,[i]),this}_svgElementFromConfig(e){if(!e.svgElement){let i=this._svgElementFromString(e.svgText);this._setSvgAttributes(i,e.options),e.svgElement=i}return e.svgElement}_getIconConfigFromResolvers(e,i){for(let r=0;rn?n.pathname+n.search:""}}var X5=["clip-path","color-profile","src","cursor","fill","filter","marker","marker-start","marker-mid","marker-end","mask","stroke"],iue=X5.map(t=>`[${t}]`).join(", "),nue=/^url\(['"]?#(.*?)['"]?\)$/,mt=(()=>{class t{_elementRef=u(q);_iconRegistry=u(Z5);_location=u(eue);_errorHandler=u(Tn);_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 i=this._cleanupFontValue(e);i!==this._fontSet&&(this._fontSet=i,this._updateFontIconClasses())}_fontSet;get fontIcon(){return this._fontIcon}set fontIcon(e){let i=this._cleanupFontValue(e);i!==this._fontIcon&&(this._fontIcon=i,this._updateFontIconClasses())}_fontIcon;_previousFontSetClass=[];_previousFontIconClass;_svgName;_svgNamespace;_previousPath;_elementsWithExternalReferences;_currentIconFetch=ke.EMPTY;constructor(){let e=u(new Ii("aria-hidden"),{optional:!0}),i=u(Jde,{optional:!0});i&&(i.color&&(this.color=this._defaultColor=i.color),i.fontSet&&(this.fontSet=i.fontSet)),e||this._elementRef.nativeElement.setAttribute("aria-hidden","true")}_splitIconName(e){if(!e)return["",""];let i=e.split(":");switch(i.length){case 1:return["",i[0]];case 2:return i;default:throw Error(`Invalid icon name: "${e}"`)}}ngOnInit(){this._updateFontIconClasses()}ngAfterViewChecked(){let e=this._elementsWithExternalReferences;if(e&&e.size){let i=this._location.getPathname();i!==this._previousPath&&(this._previousPath=i,this._prependPathToReferences(i))}}ngOnDestroy(){this._currentIconFetch.unsubscribe(),this._elementsWithExternalReferences&&this._elementsWithExternalReferences.clear()}_usingFontIcon(){return!this.svgIcon}_setSvgElement(e){this._clearSvgElement();let i=this._location.getPathname();this._previousPath=i,this._cacheChildrenWithExternalReferences(e),this._prependPathToReferences(i),this._elementRef.nativeElement.appendChild(e)}_clearSvgElement(){let e=this._elementRef.nativeElement,i=e.childNodes.length;for(this._elementsWithExternalReferences&&this._elementsWithExternalReferences.clear();i--;){let r=e.childNodes[i];(r.nodeType!==1||r.nodeName.toLowerCase()==="svg")&&r.remove()}}_updateFontIconClasses(){if(!this._usingFontIcon())return;let e=this._elementRef.nativeElement,i=(this.fontSet?this._iconRegistry.classNameForFontAlias(this.fontSet).split(/ +/):this._iconRegistry.getDefaultFontSetClass()).filter(r=>r.length>0);this._previousFontSetClass.forEach(r=>e.classList.remove(r)),i.forEach(r=>e.classList.add(r)),this._previousFontSetClass=i,this.fontIcon!==this._previousFontIconClass&&!i.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 i=this._elementsWithExternalReferences;i&&i.forEach((r,o)=>{r.forEach(a=>{o.setAttribute(a.name,`url('${e}#${a.value}')`)})})}_cacheChildrenWithExternalReferences(e){let i=e.querySelectorAll(iue),r=this._elementsWithExternalReferences=this._elementsWithExternalReferences||new Map;for(let o=0;o{let s=i[o],l=s.getAttribute(a),c=l?l.match(nue):null;if(c){let d=r.get(s);d||(d=[],r.set(s,d)),d.push({name:a,value:c[1]})}})}_updateSvgIcon(e){if(this._svgNamespace=null,this._svgName=null,this._currentIconFetch.unsubscribe(),e){let[i,r]=this._splitIconName(e);i&&(this._svgNamespace=i),r&&(this._svgName=r),this._currentIconFetch=this._iconRegistry.getNamedSvgIcon(r,i).pipe(lt(1)).subscribe(o=>this._setSvgElement(o),o=>{let a=`Error retrieving icon ${i}:${r}! ${o.message}`;this._errorHandler.handleError(new Error(a))})}}static \u0275fac=function(i){return new(i||t)};static \u0275cmp=E({type:t,selectors:[["mat-icon"]],hostAttrs:["role","img",1,"mat-icon","notranslate"],hostVars:10,hostBindings:function(i,r){i&2&&(X("data-mat-icon-type",r._usingFontIcon()?"font":"svg")("data-mat-icon-name",r._svgName||r.fontIcon)("data-mat-icon-namespace",r._svgNamespace||r.fontSet)("fontIcon",r._usingFontIcon()?r.fontIcon:null),it(r.color?"mat-"+r.color:""),G("mat-icon-inline",r.inline)("mat-icon-no-color",r.color!=="primary"&&r.color!=="accent"&&r.color!=="warn"))},inputs:{color:"color",inline:[2,"inline","inline",V],svgIcon:"svgIcon",fontSet:"fontSet",fontIcon:"fontIcon"},exportAs:["matIcon"],ngContentSelectors:Xde,decls:1,vars:0,template:function(i,r){i&1&&(Me(),oe(0))},styles:[`mat-icon,mat-icon.mat-primary,mat-icon.mat-accent,mat-icon.mat-warn{color:var(--mat-icon-color, inherit)}.mat-icon{-webkit-user-select:none;user-select:none;background-repeat:no-repeat;display:inline-block;fill:currentColor;height:24px;width:24px;overflow:hidden}.mat-icon.mat-icon-inline{font-size:inherit;height:inherit;line-height:inherit;width:inherit}.mat-icon.mat-ligature-font[fontIcon]::before{content:attr(fontIcon)}[dir=rtl] .mat-icon-rtl-mirror{transform:scale(-1, 1)}.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-prefix .mat-icon,.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-suffix .mat-icon{display:block}.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-prefix .mat-icon-button .mat-icon,.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})(),ot=(()=>{class t{static \u0275fac=function(i){return new(i||t)};static \u0275mod=ee({type:t});static \u0275inj=J({imports:[we,we]})}return t})();function rue(t,n){if(t&1&&(h(0,"a",3),_(1),p()),t&2){let e=C().$implicit;g(),H(e)}}function oue(t,n){if(t&1&&(h(0,"mat-icon",4),_(1,"chevron_right"),p(),h(2,"span"),_(3),me(4,"translate"),p()),t&2){let e=C().$implicit;g(3),H(Oe(4,1,e))}}function aue(t,n){if(t&1&&(h(0,"li",2),N(1,rue,2,1,"a",3),N(2,oue,5,3),p()),t&2){let e=n.$index;g(),L(e===0?1:-1),g(),L(e!==0?2:-1)}}var J5=(()=>{let n=class n{constructor(){this.router=u(Re),this.menu=u(so),this.nav=ne([]),this.navItems=[]}ngOnInit(){this.router.events.pipe(ce(i=>i instanceof vi),He(this.router)).subscribe(()=>{this.genBreadcrumb()})}genBreadcrumb(){let i=this.router.url.slice(1).split("/");this.nav().length>0?this.navItems=[...this.nav()]:(this.navItems=this.menu.getLevel(i),this.navItems.unshift("home"))}};n.\u0275fac=function(r){return new(r||n)},n.\u0275cmp=E({type:n,selectors:[["breadcrumb"]],inputs:{nav:[1,"nav"]},decls:4,vars:0,consts:[["aria-label","breadcrumb"],[1,"matero-breadcrumb"],[1,"matero-breadcrumb-item"],["href","#",1,"link"],[1,"chevron"]],template:function(r,o){r&1&&(h(0,"nav",0)(1,"ol",1),xt(2,aue,3,2,"li",2,Hi),p()()),r&2&&(g(2),Ct(o.navItems))},dependencies:[ot,mt,wr,Cr],styles:[`.matero-breadcrumb{display:flex;flex-wrap:wrap;padding:0;margin-bottom:1rem;font-size:.875rem;list-style:none}.matero-breadcrumb-item{line-height:1.125rem;text-transform:capitalize}.matero-breadcrumb-item>*{vertical-align:middle}.matero-breadcrumb-item>a.link{color:currentColor;text-decoration:none}.matero-breadcrumb-item>a.link:hover{color:currentColor;text-decoration:underline}.matero-breadcrumb-item>.chevron{width:1.125rem;height:1.125rem;font-size:1.125rem;-webkit-user-select:none;user-select:none} -`],encapsulation:2});let t=n;return t})();function sue(t,n){}var Vc=class{viewContainerRef;injector;id;role="dialog";panelClass="";hasBackdrop=!0;backdropClass="";disableClose=!1;closePredicate;width="";height="";minWidth;minHeight;maxWidth;maxHeight;positionStrategy;data=null;direction;ariaDescribedBy=null;ariaLabelledBy=null;ariaLabel=null;ariaModal=!1;autoFocus="first-tabbable";restoreFocus=!0;scrollStrategy;closeOnNavigation=!0;closeOnDestroy=!0;closeOnOverlayDetachments=!0;disableAnimations=!1;providers;container;templateContext};var cI=(()=>{class t extends dc{_elementRef=u(q);_focusTrapFactory=u(Qm);_config;_interactivityChecker=u(ac);_ngZone=u(ae);_focusMonitor=u(Yt);_renderer=u(je);_changeDetectorRef=u(ye);_injector=u(de);_platform=u(qe);_document=u(ge);_portalOutlet;_focusTrapped=new z;_focusTrap=null;_elementFocusedBeforeDialogWasOpened=null;_closeInteractionType=null;_ariaLabelledByQueue=[];_isDestroyed=!1;constructor(){super(),this._config=u(Vc,{optional:!0})||new Vc,this._config.ariaLabelledBy&&this._ariaLabelledByQueue.push(this._config.ariaLabelledBy)}_addAriaLabelledBy(e){this._ariaLabelledByQueue.push(e),this._changeDetectorRef.markForCheck()}_removeAriaLabelledBy(e){let i=this._ariaLabelledByQueue.indexOf(e);i>-1&&(this._ariaLabelledByQueue.splice(i,1),this._changeDetectorRef.markForCheck())}_contentAttached(){this._initializeFocusTrap(),this._captureInitialFocus()}_captureInitialFocus(){this._trapFocus()}ngOnDestroy(){this._focusTrapped.complete(),this._isDestroyed=!0,this._restoreFocus()}attachComponentPortal(e){this._portalOutlet.hasAttached();let i=this._portalOutlet.attachComponentPortal(e);return this._contentAttached(),i}attachTemplatePortal(e){this._portalOutlet.hasAttached();let i=this._portalOutlet.attachTemplatePortal(e);return this._contentAttached(),i}attachDomPortal=e=>{this._portalOutlet.hasAttached();let i=this._portalOutlet.attachDomPortal(e);return this._contentAttached(),i};_recaptureFocus(){this._containsFocus()||this._trapFocus()}_forceFocus(e,i){this._interactivityChecker.isFocusable(e)||(e.tabIndex=-1,this._ngZone.runOutsideAngular(()=>{let r=()=>{o(),a(),e.removeAttribute("tabindex")},o=this._renderer.listen(e,"blur",r),a=this._renderer.listen(e,"mousedown",r)})),e.focus(i)}_focusByCssSelector(e,i){let r=this._elementRef.nativeElement.querySelector(e);r&&this._forceFocus(r,i)}_trapFocus(e){this._isDestroyed||pt(()=>{let i=this._elementRef.nativeElement;switch(this._config.autoFocus){case!1:case"dialog":this._containsFocus()||i.focus(e);break;case!0:case"first-tabbable":this._focusTrap?.focusInitialElement(e)||this._focusDialogContainer(e);break;case"first-heading":this._focusByCssSelector('h1, h2, h3, h4, h5, h6, [role="heading"]',e);break;default:this._focusByCssSelector(this._config.autoFocus,e);break}this._focusTrapped.next()},{injector:this._injector})}_restoreFocus(){let e=this._config.restoreFocus,i=null;if(typeof e=="string"?i=this._document.querySelector(e):typeof e=="boolean"?i=e?this._elementFocusedBeforeDialogWasOpened:null:e&&(i=e),this._config.restoreFocus&&i&&typeof i.focus=="function"){let r=_o(),o=this._elementRef.nativeElement;(!r||r===this._document.body||r===o||o.contains(r))&&(this._focusMonitor?(this._focusMonitor.focusVia(i,this._closeInteractionType),this._closeInteractionType=null):i.focus())}this._focusTrap&&this._focusTrap.destroy()}_focusDialogContainer(e){this._elementRef.nativeElement.focus?.(e)}_containsFocus(){let e=this._elementRef.nativeElement,i=_o();return e===i||e.contains(i)}_initializeFocusTrap(){this._platform.isBrowser&&(this._focusTrap=this._focusTrapFactory.create(this._elementRef.nativeElement),this._document&&(this._elementFocusedBeforeDialogWasOpened=_o()))}static \u0275fac=function(i){return new(i||t)};static \u0275cmp=E({type:t,selectors:[["cdk-dialog-container"]],viewQuery:function(i,r){if(i&1&&ie(yr,7),i&2){let o;B(o=j())&&(r._portalOutlet=o.first)}},hostAttrs:["tabindex","-1",1,"cdk-dialog-container"],hostVars:6,hostBindings:function(i,r){i&2&&X("id",r._config.id||null)("role",r._config.role)("aria-modal",r._config.ariaModal)("aria-labelledby",r._config.ariaLabel?null:r._ariaLabelledByQueue[0])("aria-label",r._config.ariaLabel)("aria-describedby",r._config.ariaDescribedBy||null)},features:[le],decls:1,vars:0,consts:[["cdkPortalOutlet",""]],template:function(i,r){i&1&&R(0,sue,0,0,"ng-template",0)},dependencies:[yr],styles:[`.cdk-dialog-container{display:block;width:100%;height:100%;min-height:inherit;max-height:inherit} -`],encapsulation:2})}return t})(),c_=class{overlayRef;config;componentInstance;componentRef;containerInstance;disableClose;closed=new z;backdropClick;keydownEvents;outsidePointerEvents;id;_detachSubscription;constructor(n,e){this.overlayRef=n,this.config=e,this.disableClose=e.disableClose,this.backdropClick=n.backdropClick(),this.keydownEvents=n.keydownEvents(),this.outsidePointerEvents=n.outsidePointerEvents(),this.id=e.id,this.keydownEvents.subscribe(i=>{i.keyCode===27&&!this.disableClose&&!Ft(i)&&(i.preventDefault(),this.close(void 0,{focusOrigin:"keyboard"}))}),this.backdropClick.subscribe(()=>{!this.disableClose&&this._canClose()?this.close(void 0,{focusOrigin:"mouse"}):this.containerInstance._recaptureFocus?.()}),this._detachSubscription=n.detachments().subscribe(()=>{e.closeOnOverlayDetachments!==!1&&this.close()})}close(n,e){if(this._canClose(n)){let i=this.closed;this.containerInstance._closeInteractionType=e?.focusOrigin||"program",this._detachSubscription.unsubscribe(),this.overlayRef.dispose(),i.next(n),i.complete(),this.componentInstance=this.containerInstance=null}}updatePosition(){return this.overlayRef.updatePosition(),this}updateSize(n="",e=""){return this.overlayRef.updateSize({width:n,height:e}),this}addPanelClass(n){return this.overlayRef.addPanelClass(n),this}removePanelClass(n){return this.overlayRef.removePanelClass(n),this}_canClose(n){let e=this.config;return!!this.containerInstance&&(!e.closePredicate||e.closePredicate(n,e,this.componentInstance))}},lue=new T("DialogScrollStrategy",{providedIn:"root",factory:()=>{let t=u(de);return()=>uc(t)}}),cue=new T("DialogData"),due=new T("DefaultDialogConfig");function uue(t){let n=he(t),e=new U;return{valueSignal:n,get value(){return n()},change:e,ngOnDestroy(){e.complete()}}}var dI=(()=>{class t{_injector=u(de);_defaultOptions=u(due,{optional:!0});_parentDialog=u(t,{optional:!0,skipSelf:!0});_overlayContainer=u(ex);_idGenerator=u(Ze);_openDialogsAtThisLevel=[];_afterAllClosedAtThisLevel=new z;_afterOpenedAtThisLevel=new z;_ariaHiddenElements=new Map;_scrollStrategy=u(lue);get openDialogs(){return this._parentDialog?this._parentDialog.openDialogs:this._openDialogsAtThisLevel}get afterOpened(){return this._parentDialog?this._parentDialog.afterOpened:this._afterOpenedAtThisLevel}afterAllClosed=kn(()=>this.openDialogs.length?this._getAfterAllClosed():this._getAfterAllClosed().pipe(He(void 0)));constructor(){}open(e,i){let r=this._defaultOptions||new Vc;i=M(M({},r),i),i.id=i.id||this._idGenerator.getId("cdk-dialog-"),i.id&&this.getDialogById(i.id);let o=this._getOverlayConfig(i),a=Nr(this._injector,o),s=new c_(a,i),l=this._attachContainer(a,s,i);if(s.containerInstance=l,!this.openDialogs.length){let c=this._overlayContainer.getContainerElement();l._focusTrapped?l._focusTrapped.pipe(lt(1)).subscribe(()=>{this._hideNonDialogContentFromAssistiveTechnology(c)}):this._hideNonDialogContentFromAssistiveTechnology(c)}return this._attachDialogContent(e,s,l,i),this.openDialogs.push(s),s.closed.subscribe(()=>this._removeOpenDialog(s,!0)),this.afterOpened.next(s),s}closeAll(){lI(this.openDialogs,e=>e.close())}getDialogById(e){return this.openDialogs.find(i=>i.id===e)}ngOnDestroy(){lI(this._openDialogsAtThisLevel,e=>{e.config.closeOnDestroy===!1&&this._removeOpenDialog(e,!1)}),lI(this._openDialogsAtThisLevel,e=>e.close()),this._afterAllClosedAtThisLevel.complete(),this._afterOpenedAtThisLevel.complete(),this._openDialogsAtThisLevel=[]}_getOverlayConfig(e){let i=new Fr({positionStrategy:e.positionStrategy||Ds().centerHorizontally().centerVertically(),scrollStrategy:e.scrollStrategy||this._scrollStrategy(),panelClass:e.panelClass,hasBackdrop:e.hasBackdrop,direction:e.direction,minWidth:e.minWidth,minHeight:e.minHeight,maxWidth:e.maxWidth,maxHeight:e.maxHeight,width:e.width,height:e.height,disposeOnNavigation:e.closeOnNavigation,disableAnimations:e.disableAnimations});return e.backdropClass&&(i.backdropClass=e.backdropClass),i}_attachContainer(e,i,r){let o=r.injector||r.viewContainerRef?.injector,a=[{provide:Vc,useValue:r},{provide:c_,useValue:i},{provide:gh,useValue:e}],s;r.container?typeof r.container=="function"?s=r.container:(s=r.container.type,a.push(...r.container.providers(r))):s=cI;let l=new Zr(s,r.viewContainerRef,de.create({parent:o||this._injector,providers:a}));return e.attach(l).instance}_attachDialogContent(e,i,r,o){if(e instanceof te){let a=this._createInjector(o,i,r,void 0),s={$implicit:o.data,dialogRef:i};o.templateContext&&(s=M(M({},s),typeof o.templateContext=="function"?o.templateContext():o.templateContext)),r.attachTemplatePortal(new Cn(e,null,s,a))}else{let a=this._createInjector(o,i,r,this._injector),s=r.attachComponentPortal(new Zr(e,o.viewContainerRef,a));i.componentRef=s,i.componentInstance=s.instance}}_createInjector(e,i,r,o){let a=e.injector||e.viewContainerRef?.injector,s=[{provide:cue,useValue:e.data},{provide:c_,useValue:i}];return e.providers&&(typeof e.providers=="function"?s.push(...e.providers(i,e,r)):s.push(...e.providers)),e.direction&&(!a||!a.get(Vt,null,{optional:!0}))&&s.push({provide:Vt,useValue:uue(e.direction)}),de.create({parent:a||o,providers:s})}_removeOpenDialog(e,i){let r=this.openDialogs.indexOf(e);r>-1&&(this.openDialogs.splice(r,1),this.openDialogs.length||(this._ariaHiddenElements.forEach((o,a)=>{o?a.setAttribute("aria-hidden",o):a.removeAttribute("aria-hidden")}),this._ariaHiddenElements.clear(),i&&this._getAfterAllClosed().next()))}_hideNonDialogContentFromAssistiveTechnology(e){if(e.parentElement){let i=e.parentElement.children;for(let r=i.length-1;r>-1;r--){let o=i[r];o!==e&&o.nodeName!=="SCRIPT"&&o.nodeName!=="STYLE"&&!o.hasAttribute("aria-live")&&(this._ariaHiddenElements.set(o,o.getAttribute("aria-hidden")),o.setAttribute("aria-hidden","true"))}}}_getAfterAllClosed(){let e=this._parentDialog;return e?e._getAfterAllClosed():this._afterAllClosedAtThisLevel}static \u0275fac=function(i){return new(i||t)};static \u0275prov=O({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();function lI(t,n){let e=t.length;for(;e--;)n(t[e])}var ez=(()=>{class t{static \u0275fac=function(i){return new(i||t)};static \u0275mod=ee({type:t});static \u0275inj=J({providers:[dI],imports:[er,Co,ll,Co]})}return t})();function mue(t,n){}var u_=class{viewContainerRef;injector;id;role="dialog";panelClass="";hasBackdrop=!0;backdropClass="";disableClose=!1;closePredicate;width="";height="";minWidth;minHeight;maxWidth;maxHeight;position;data=null;direction;ariaDescribedBy=null;ariaLabelledBy=null;ariaLabel=null;ariaModal=!1;autoFocus="first-tabbable";restoreFocus=!0;delayFocusTrap=!0;scrollStrategy;closeOnNavigation=!0;enterAnimationDuration;exitAnimationDuration},uI="mdc-dialog--open",tz="mdc-dialog--opening",iz="mdc-dialog--closing",hue=150,pue=75,oz=(()=>{class t extends cI{_animationStateChanged=new U;_animationsEnabled=!Ye();_actionSectionCount=0;_hostElement=this._elementRef.nativeElement;_enterAnimationDuration=this._animationsEnabled?rz(this._config.enterAnimationDuration)??hue:0;_exitAnimationDuration=this._animationsEnabled?rz(this._config.exitAnimationDuration)??pue:0;_animationTimer=null;_contentAttached(){super._contentAttached(),this._startOpenAnimation()}_startOpenAnimation(){this._animationStateChanged.emit({state:"opening",totalTime:this._enterAnimationDuration}),this._animationsEnabled?(this._hostElement.style.setProperty(nz,`${this._enterAnimationDuration}ms`),this._requestAnimationFrame(()=>this._hostElement.classList.add(tz,uI)),this._waitForAnimationToComplete(this._enterAnimationDuration,this._finishDialogOpen)):(this._hostElement.classList.add(uI),Promise.resolve().then(()=>this._finishDialogOpen()))}_startExitAnimation(){this._animationStateChanged.emit({state:"closing",totalTime:this._exitAnimationDuration}),this._hostElement.classList.remove(uI),this._animationsEnabled?(this._hostElement.style.setProperty(nz,`${this._exitAnimationDuration}ms`),this._requestAnimationFrame(()=>this._hostElement.classList.add(iz)),this._waitForAnimationToComplete(this._exitAnimationDuration,this._finishDialogClose)):Promise.resolve().then(()=>this._finishDialogClose())}_updateActionSectionCount(e){this._actionSectionCount+=e,this._changeDetectorRef.markForCheck()}_finishDialogOpen=()=>{this._clearAnimationClasses(),this._openAnimationDone(this._enterAnimationDuration)};_finishDialogClose=()=>{this._clearAnimationClasses(),this._animationStateChanged.emit({state:"closed",totalTime:this._exitAnimationDuration})};_clearAnimationClasses(){this._hostElement.classList.remove(tz,iz)}_waitForAnimationToComplete(e,i){this._animationTimer!==null&&clearTimeout(this._animationTimer),this._animationTimer=setTimeout(i,e)}_requestAnimationFrame(e){this._ngZone.runOutsideAngular(()=>{typeof requestAnimationFrame=="function"?requestAnimationFrame(e):e()})}_captureInitialFocus(){this._config.delayFocusTrap||this._trapFocus()}_openAnimationDone(e){this._config.delayFocusTrap&&this._trapFocus(),this._animationStateChanged.next({state:"opened",totalTime:e})}ngOnDestroy(){super.ngOnDestroy(),this._animationTimer!==null&&clearTimeout(this._animationTimer)}attachComponentPortal(e){let i=super.attachComponentPortal(e);return i.location.nativeElement.classList.add("mat-mdc-dialog-component-host"),i}static \u0275fac=(()=>{let e;return function(r){return(e||(e=fe(t)))(r||t)}})();static \u0275cmp=E({type:t,selectors:[["mat-dialog-container"]],hostAttrs:["tabindex","-1",1,"mat-mdc-dialog-container","mdc-dialog"],hostVars:10,hostBindings:function(i,r){i&2&&(si("id",r._config.id),X("aria-modal",r._config.ariaModal)("role",r._config.role)("aria-labelledby",r._config.ariaLabel?null:r._ariaLabelledByQueue[0])("aria-label",r._config.ariaLabel)("aria-describedby",r._config.ariaDescribedBy||null),G("_mat-animation-noopable",!r._animationsEnabled)("mat-mdc-dialog-container-with-actions",r._actionSectionCount>0))},features:[le],decls:3,vars:0,consts:[[1,"mat-mdc-dialog-inner-container","mdc-dialog__container"],[1,"mat-mdc-dialog-surface","mdc-dialog__surface"],["cdkPortalOutlet",""]],template:function(i,r){i&1&&(h(0,"div",0)(1,"div",1),R(2,mue,0,0,"ng-template",2),p()())},dependencies:[yr],styles:[`.mat-mdc-dialog-container{width:100%;height:100%;display:block;box-sizing:border-box;max-height:inherit;min-height:inherit;min-width:inherit;max-width:inherit;outline:0}.cdk-overlay-pane.mat-mdc-dialog-panel{max-width:var(--mat-dialog-container-max-width, 560px);min-width:var(--mat-dialog-container-min-width, 280px)}@media(max-width: 599px){.cdk-overlay-pane.mat-mdc-dialog-panel{max-width:var(--mat-dialog-container-small-max-width, calc(100vw - 32px))}}.mat-mdc-dialog-inner-container{display:flex;flex-direction:row;align-items:center;justify-content:space-around;box-sizing:border-box;height:100%;opacity:0;transition:opacity linear var(--mat-dialog-transition-duration, 0ms);max-height:inherit;min-height:inherit;min-width:inherit;max-width:inherit}.mdc-dialog--closing .mat-mdc-dialog-inner-container{transition:opacity 75ms linear;transform:none}.mdc-dialog--open .mat-mdc-dialog-inner-container{opacity:1}._mat-animation-noopable .mat-mdc-dialog-inner-container{transition:none}.mat-mdc-dialog-surface{display:flex;flex-direction:column;flex-grow:0;flex-shrink:0;box-sizing:border-box;width:100%;height:100%;position:relative;overflow-y:auto;outline:0;transform:scale(0.8);transition:transform var(--mat-dialog-transition-duration, 0ms) cubic-bezier(0, 0, 0.2, 1);max-height:inherit;min-height:inherit;min-width:inherit;max-width:inherit;box-shadow:var(--mat-dialog-container-elevation-shadow, none);border-radius:var(--mat-dialog-container-shape, var(--mat-sys-corner-extra-large, 4px));background-color:var(--mat-dialog-container-color, var(--mat-sys-surface, white))}[dir=rtl] .mat-mdc-dialog-surface{text-align:right}.mdc-dialog--open .mat-mdc-dialog-surface,.mdc-dialog--closing .mat-mdc-dialog-surface{transform:none}._mat-animation-noopable .mat-mdc-dialog-surface{transition:none}.mat-mdc-dialog-surface::before{position:absolute;box-sizing:border-box;width:100%;height:100%;top:0;left:0;border:2px solid rgba(0,0,0,0);border-radius:inherit;content:"";pointer-events:none}.mat-mdc-dialog-title{display:block;position:relative;flex-shrink:0;box-sizing:border-box;margin:0 0 1px;padding:var(--mat-dialog-headline-padding, 6px 24px 13px)}.mat-mdc-dialog-title::before{display:inline-block;width:0;height:40px;content:"";vertical-align:0}[dir=rtl] .mat-mdc-dialog-title{text-align:right}.mat-mdc-dialog-container .mat-mdc-dialog-title{color:var(--mat-dialog-subhead-color, var(--mat-sys-on-surface, rgba(0, 0, 0, 0.87)));font-family:var(--mat-dialog-subhead-font, var(--mat-sys-headline-small-font, inherit));line-height:var(--mat-dialog-subhead-line-height, var(--mat-sys-headline-small-line-height, 1.5rem));font-size:var(--mat-dialog-subhead-size, var(--mat-sys-headline-small-size, 1rem));font-weight:var(--mat-dialog-subhead-weight, var(--mat-sys-headline-small-weight, 400));letter-spacing:var(--mat-dialog-subhead-tracking, var(--mat-sys-headline-small-tracking, 0.03125em))}.mat-mdc-dialog-content{display:block;flex-grow:1;box-sizing:border-box;margin:0;overflow:auto;max-height:65vh}.mat-mdc-dialog-content>:first-child{margin-top:0}.mat-mdc-dialog-content>:last-child{margin-bottom:0}.mat-mdc-dialog-container .mat-mdc-dialog-content{color:var(--mat-dialog-supporting-text-color, var(--mat-sys-on-surface-variant, rgba(0, 0, 0, 0.6)));font-family:var(--mat-dialog-supporting-text-font, var(--mat-sys-body-medium-font, inherit));line-height:var(--mat-dialog-supporting-text-line-height, var(--mat-sys-body-medium-line-height, 1.5rem));font-size:var(--mat-dialog-supporting-text-size, var(--mat-sys-body-medium-size, 1rem));font-weight:var(--mat-dialog-supporting-text-weight, var(--mat-sys-body-medium-weight, 400));letter-spacing:var(--mat-dialog-supporting-text-tracking, var(--mat-sys-body-medium-tracking, 0.03125em))}.mat-mdc-dialog-container .mat-mdc-dialog-content{padding:var(--mat-dialog-content-padding, 20px 24px)}.mat-mdc-dialog-container-with-actions .mat-mdc-dialog-content{padding:var(--mat-dialog-with-actions-content-padding, 20px 24px 0)}.mat-mdc-dialog-container .mat-mdc-dialog-title+.mat-mdc-dialog-content{padding-top:0}.mat-mdc-dialog-actions{display:flex;position:relative;flex-shrink:0;flex-wrap:wrap;align-items:center;box-sizing:border-box;min-height:52px;margin:0;border-top:1px solid rgba(0,0,0,0);padding:var(--mat-dialog-actions-padding, 16px 24px);justify-content:var(--mat-dialog-actions-alignment, flex-end)}@media(forced-colors: active){.mat-mdc-dialog-actions{border-top-color:CanvasText}}.mat-mdc-dialog-actions.mat-mdc-dialog-actions-align-start,.mat-mdc-dialog-actions[align=start]{justify-content:start}.mat-mdc-dialog-actions.mat-mdc-dialog-actions-align-center,.mat-mdc-dialog-actions[align=center]{justify-content:center}.mat-mdc-dialog-actions.mat-mdc-dialog-actions-align-end,.mat-mdc-dialog-actions[align=end]{justify-content:flex-end}.mat-mdc-dialog-actions .mat-button-base+.mat-button-base,.mat-mdc-dialog-actions .mat-mdc-button-base+.mat-mdc-button-base{margin-left:8px}[dir=rtl] .mat-mdc-dialog-actions .mat-button-base+.mat-button-base,[dir=rtl] .mat-mdc-dialog-actions .mat-mdc-button-base+.mat-mdc-button-base{margin-left:0;margin-right:8px}.mat-mdc-dialog-component-host{display:contents} -`],encapsulation:2})}return t})(),nz="--mat-dialog-transition-duration";function rz(t){return t==null?null:typeof t=="number"?t:t.endsWith("ms")?Ln(t.substring(0,t.length-2)):t.endsWith("s")?Ln(t.substring(0,t.length-1))*1e3:t==="0"?0:null}var d_=(function(t){return t[t.OPEN=0]="OPEN",t[t.CLOSING=1]="CLOSING",t[t.CLOSED=2]="CLOSED",t})(d_||{}),Mu=class{_ref;_config;_containerInstance;componentInstance;componentRef;disableClose;id;_afterOpened=new z;_beforeClosed=new z;_result;_closeFallbackTimeout;_state=d_.OPEN;_closeInteractionType;constructor(n,e,i){this._ref=n,this._config=e,this._containerInstance=i,this.disableClose=e.disableClose,this.id=n.id,n.addPanelClass("mat-mdc-dialog-panel"),i._animationStateChanged.pipe(ce(r=>r.state==="opened"),lt(1)).subscribe(()=>{this._afterOpened.next(),this._afterOpened.complete()}),i._animationStateChanged.pipe(ce(r=>r.state==="closed"),lt(1)).subscribe(()=>{clearTimeout(this._closeFallbackTimeout),this._finishDialogClose()}),n.overlayRef.detachments().subscribe(()=>{this._beforeClosed.next(this._result),this._beforeClosed.complete(),this._finishDialogClose()}),Je(this.backdropClick(),this.keydownEvents().pipe(ce(r=>r.keyCode===27&&!this.disableClose&&!Ft(r)))).subscribe(r=>{this.disableClose||(r.preventDefault(),az(this,r.type==="keydown"?"keyboard":"mouse"))})}close(n){let e=this._config.closePredicate;e&&!e(n,this._config,this.componentInstance)||(this._result=n,this._containerInstance._animationStateChanged.pipe(ce(i=>i.state==="closing"),lt(1)).subscribe(i=>{this._beforeClosed.next(n),this._beforeClosed.complete(),this._ref.overlayRef.detachBackdrop(),this._closeFallbackTimeout=setTimeout(()=>this._finishDialogClose(),i.totalTime+100)}),this._state=d_.CLOSING,this._containerInstance._startExitAnimation())}afterOpened(){return this._afterOpened}afterClosed(){return this._ref.closed}beforeClosed(){return this._beforeClosed}backdropClick(){return this._ref.backdropClick}keydownEvents(){return this._ref.keydownEvents}updatePosition(n){let e=this._ref.config.positionStrategy;return n&&(n.left||n.right)?n.left?e.left(n.left):e.right(n.right):e.centerHorizontally(),n&&(n.top||n.bottom)?n.top?e.top(n.top):e.bottom(n.bottom):e.centerVertically(),this._ref.updatePosition(),this}updateSize(n="",e=""){return this._ref.updateSize(n,e),this}addPanelClass(n){return this._ref.addPanelClass(n),this}removePanelClass(n){return this._ref.removePanelClass(n),this}getState(){return this._state}_finishDialogClose(){this._state=d_.CLOSED,this._ref.close(this._result,{focusOrigin:this._closeInteractionType}),this.componentInstance=null}};function az(t,n,e){return t._closeInteractionType=n,t.close(e)}var TC=new T("MatMdcDialogData"),sz=new T("mat-mdc-dialog-default-options"),lz=new T("mat-mdc-dialog-scroll-strategy",{providedIn:"root",factory:()=>{let t=u(de);return()=>uc(t)}}),En=(()=>{class t{_defaultOptions=u(sz,{optional:!0});_scrollStrategy=u(lz);_parentDialog=u(t,{optional:!0,skipSelf:!0});_idGenerator=u(Ze);_injector=u(de);_dialog=u(dI);_animationsDisabled=Ye();_openDialogsAtThisLevel=[];_afterAllClosedAtThisLevel=new z;_afterOpenedAtThisLevel=new z;dialogConfigClass=u_;_dialogRefConstructor;_dialogContainerType;_dialogDataToken;get openDialogs(){return this._parentDialog?this._parentDialog.openDialogs:this._openDialogsAtThisLevel}get afterOpened(){return this._parentDialog?this._parentDialog.afterOpened:this._afterOpenedAtThisLevel}_getAfterAllClosed(){let e=this._parentDialog;return e?e._getAfterAllClosed():this._afterAllClosedAtThisLevel}afterAllClosed=kn(()=>this.openDialogs.length?this._getAfterAllClosed():this._getAfterAllClosed().pipe(He(void 0)));constructor(){this._dialogRefConstructor=Mu,this._dialogContainerType=oz,this._dialogDataToken=TC}open(e,i){let r;i=M(M({},this._defaultOptions||new u_),i),i.id=i.id||this._idGenerator.getId("mat-mdc-dialog-"),i.scrollStrategy=i.scrollStrategy||this._scrollStrategy();let o=this._dialog.open(e,De(M({},i),{positionStrategy:Ds(this._injector).centerHorizontally().centerVertically(),disableClose:!0,closePredicate:void 0,closeOnDestroy:!1,closeOnOverlayDetachments:!1,disableAnimations:this._animationsDisabled||i.enterAnimationDuration?.toLocaleString()==="0"||i.exitAnimationDuration?.toString()==="0",container:{type:this._dialogContainerType,providers:()=>[{provide:this.dialogConfigClass,useValue:i},{provide:Vc,useValue:i}]},templateContext:()=>({dialogRef:r}),providers:(a,s,l)=>(r=new this._dialogRefConstructor(a,i,l),r.updatePosition(i?.position),[{provide:this._dialogContainerType,useValue:l},{provide:this._dialogDataToken,useValue:s.data},{provide:this._dialogRefConstructor,useValue:r}])}));return r.componentRef=o.componentRef,r.componentInstance=o.componentInstance,this.openDialogs.push(r),this.afterOpened.next(r),r.afterClosed().subscribe(()=>{let a=this.openDialogs.indexOf(r);a>-1&&(this.openDialogs.splice(a,1),this.openDialogs.length||this._getAfterAllClosed().next())}),r}closeAll(){this._closeDialogs(this.openDialogs)}getDialogById(e){return this.openDialogs.find(i=>i.id===e)}ngOnDestroy(){this._closeDialogs(this._openDialogsAtThisLevel),this._afterAllClosedAtThisLevel.complete(),this._afterOpenedAtThisLevel.complete()}_closeDialogs(e){let i=e.length;for(;i--;)e[i].close()}static \u0275fac=function(i){return new(i||t)};static \u0275prov=O({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();var cz=(()=>{class t{_dialogRef=u(Mu,{optional:!0});_elementRef=u(q);_dialog=u(En);constructor(){}ngOnInit(){this._dialogRef||(this._dialogRef=fue(this._elementRef,this._dialog.openDialogs)),this._dialogRef&&Promise.resolve().then(()=>{this._onAdd()})}ngOnDestroy(){this._dialogRef?._containerInstance&&Promise.resolve().then(()=>{this._onRemove()})}static \u0275fac=function(i){return new(i||t)};static \u0275dir=F({type:t})}return t})(),mI=(()=>{class t extends cz{id=u(Ze).getId("mat-mdc-dialog-title-");_onAdd(){this._dialogRef._containerInstance?._addAriaLabelledBy?.(this.id)}_onRemove(){this._dialogRef?._containerInstance?._removeAriaLabelledBy?.(this.id)}static \u0275fac=(()=>{let e;return function(r){return(e||(e=fe(t)))(r||t)}})();static \u0275dir=F({type:t,selectors:[["","mat-dialog-title",""],["","matDialogTitle",""]],hostAttrs:[1,"mat-mdc-dialog-title","mdc-dialog__title"],hostVars:1,hostBindings:function(i,r){i&2&&si("id",r.id)},inputs:{id:"id"},exportAs:["matDialogTitle"],features:[le]})}return t})(),hI=(()=>{class t{static \u0275fac=function(i){return new(i||t)};static \u0275dir=F({type:t,selectors:[["","mat-dialog-content",""],["mat-dialog-content"],["","matDialogContent",""]],hostAttrs:[1,"mat-mdc-dialog-content","mdc-dialog__content"],features:[ym([Pa])]})}return t})(),pI=(()=>{class t extends cz{align;_onAdd(){this._dialogRef._containerInstance?._updateActionSectionCount?.(1)}_onRemove(){this._dialogRef._containerInstance?._updateActionSectionCount?.(-1)}static \u0275fac=(()=>{let e;return function(r){return(e||(e=fe(t)))(r||t)}})();static \u0275dir=F({type:t,selectors:[["","mat-dialog-actions",""],["mat-dialog-actions"],["","matDialogActions",""]],hostAttrs:[1,"mat-mdc-dialog-actions","mdc-dialog__actions"],hostVars:6,hostBindings:function(i,r){i&2&&G("mat-mdc-dialog-actions-align-start",r.align==="start")("mat-mdc-dialog-actions-align-center",r.align==="center")("mat-mdc-dialog-actions-align-end",r.align==="end")},inputs:{align:"align"},features:[le]})}return t})();function fue(t,n){let e=t.nativeElement.parentElement;for(;e&&!e.classList.contains("mat-mdc-dialog-container");)e=e.parentElement;return e?n.find(i=>i.id===e.id):null}var Mn=(()=>{class t{static \u0275fac=function(i){return new(i||t)};static \u0275mod=ee({type:t});static \u0275inj=J({providers:[En],imports:[ez,er,Co,we,we]})}return t})();var Er=(()=>{let n=class n{constructor(){this.dialogRef=u(Mu),this.data=u(TC)}confirm(){this.dialogRef.close(!0)}cancel(){this.dialogRef.close(!1)}};n.\u0275fac=function(r){return new(r||n)},n.\u0275cmp=E({type:n,selectors:[["app-confirm-dialog"]],decls:12,vars:4,consts:[["mat-dialog-title",""],["color","warn",2,"vertical-align","middle","margin-right","8px"],["align","end"],["mat-button","",3,"click"],["mat-raised-button","","color","warn","cdkFocusInitial","",3,"click"]],template:function(r,o){r&1&&(h(0,"h2",0)(1,"mat-icon",1),_(2,"warning"),p(),_(3),p(),h(4,"mat-dialog-content")(5,"p"),_(6),p()(),h(7,"mat-dialog-actions",2)(8,"button",3),S("click",function(){return o.cancel()}),_(9),p(),h(10,"button",4),S("click",function(){return o.confirm()}),_(11),p()()),r&2&&(g(3),ve(" ",o.data.title,` -`),g(3),H(o.data.message),g(3),ve(" ",o.data.cancelText||"Cancel"," "),g(2),ve(" ",o.data.confirmText||"Delete"," "))},dependencies:[Mn,mI,pI,hI,ze,kt,ot,mt],encapsulation:2});let t=n;return t})();function _ue(t,n){if(t&1&&(h(0,"div",2),_(1),p()),t&2){let e=C();g(),H(e.title())}}function bue(t,n){if(t&1&&(h(0,"div",3),_(1),p()),t&2){let e=C();g(),H(e.message())}}var tp=(()=>{let n=class n{constructor(){this.code=ne(""),this.title=ne(""),this.message=ne("")}};n.\u0275fac=function(r){return new(r||n)},n.\u0275cmp=E({type:n,selectors:[["error-code"]],inputs:{code:[1,"code"],title:[1,"title"],message:[1,"message"]},decls:8,vars:3,consts:[[1,"matero-error-wrap"],[1,"matero-error-code"],[1,"matero-error-title"],[1,"matero-error-message"],["matButton","elevated","color","primary","routerLink","/"]],template:function(r,o){r&1&&(h(0,"div",0)(1,"div",1),_(2),p(),N(3,_ue,2,1,"div",2),N(4,bue,2,1,"div",3),h(5,"div")(6,"a",4),_(7,"Back to Home"),p()()()),r&2&&(g(2),H(o.code()),g(),L(o.title()?3:-1),g(),L(o.message()?4:-1))},dependencies:[Nn,ze,kt],styles:[`.matero-error-wrap{text-align:center}.matero-error-code{padding:1.25rem 0;font-size:10rem;text-shadow:.1325825215rem .1325825215rem 0 rgba(0,0,0,.028575),.2651650429rem .2651650429rem 0 rgba(0,0,0,.02715),.3977475644rem .3977475644rem 0 rgba(0,0,0,.025725),.5303300859rem .5303300859rem 0 rgba(0,0,0,.0243),.6629126074rem .6629126074rem 0 rgba(0,0,0,.022875),.7954951288rem .7954951288rem 0 rgba(0,0,0,.02145),.9280776503rem .9280776503rem 0 rgba(0,0,0,.020025),1.0606601718rem 1.0606601718rem 0 rgba(0,0,0,.0186),1.1932426933rem 1.1932426933rem 0 rgba(0,0,0,.017175),1.3258252147rem 1.3258252147rem 0 rgba(0,0,0,.01575),1.4584077362rem 1.4584077362rem 0 rgba(0,0,0,.014325),1.5909902577rem 1.5909902577rem 0 rgba(0,0,0,.0129),1.7235727791rem 1.7235727791rem 0 rgba(0,0,0,.011475),1.8561553006rem 1.8561553006rem 0 rgba(0,0,0,.01005),1.9887378221rem 1.9887378221rem 0 rgba(0,0,0,.008625),2.1213203436rem 2.1213203436rem 0 rgba(0,0,0,.0072),2.253902865rem 2.253902865rem 0 rgba(0,0,0,.005775),2.3864853865rem 2.3864853865rem 0 rgba(0,0,0,.00435),2.519067908rem 2.519067908rem 0 rgba(0,0,0,.002925),2.6516504294rem 2.6516504294rem 0 rgba(0,0,0,.0015)}.matero-error-title{margin:0 0 1rem;font-size:1.25rem;font-weight:500;line-height:2rem}.matero-error-message{margin:0 0 1rem;font-size:1rem;font-weight:400;line-height:1.75rem} -`],encapsulation:2});let t=n;return t})();function vue(t,n){if(t&1&&k(0,"breadcrumb",2),t&2){let e=C();y("nav",e.nav())}}var ni=(()=>{let n=class n{constructor(){this.router=u(Re),this.menu=u(so),this.title=ne(""),this.subtitle=ne(""),this.nav=ne([]),this.hideBreadcrumb=ne(!1,{transform:V}),this.titleName=Zt(()=>{let i=this.router.url.slice(1).split("/"),r=this.menu.getLevel(i);return this.title()||r[r.length-1]})}};n.\u0275fac=function(r){return new(r||n)},n.\u0275cmp=E({type:n,selectors:[["page-header"]],hostAttrs:[1,"matero-page-header"],inputs:{title:[1,"title"],subtitle:[1,"subtitle"],nav:[1,"nav"],hideBreadcrumb:[1,"hideBreadcrumb"]},decls:7,vars:5,consts:[[1,"matero-page-header-inner"],[1,"matero-page-title"],[3,"nav"]],template:function(r,o){r&1&&(h(0,"div",0)(1,"h1",1),_(2),me(3,"translate"),h(4,"small"),_(5),p()(),N(6,vue,1,1,"breadcrumb",2),p()),r&2&&(g(2),ve(" ",Oe(3,3,o.titleName())," "),g(3),H(o.subtitle()),g(),L(o.hideBreadcrumb()?-1:6))},dependencies:[J5,wr,Cr],styles:[`.matero-page-header{display:block;padding:1rem;margin-bottom:1rem;color:#ffffffde;background-color:#0074e9;border-radius:var(--mat-sys-corner-medium)}.matero-page-header .matero-breadcrumb{margin-top:.5rem;margin-bottom:0}.matero-page-title{margin:0;font-size:1.5rem;font-weight:400} -`],encapsulation:2});let t=n;return t})();var dz=(()=>{let n=class n{constructor(){this.change=new U,this.valueSignal=he("ltr")}get value(){return this.valueSignal()}set value(i){this.valueSignal.set(i),this.change.next(i)}ngOnDestroy(){this.change.complete()}};n.\u0275fac=function(r){return new(r||n)},n.\u0275prov=O({token:n,factory:n.\u0275fac,providedIn:"root"});let t=n;return t})();var uz=(()=>{let n=class n{constructor(){this.messages=[]}add(i){this.messages.push(i)}clear(){this.messages=[]}};n.\u0275fac=function(r){return new(r||n)},n.\u0275prov=O({token:n,factory:n.\u0275fac,providedIn:"root"});let t=n;return t})();var mz=(()=>{let n=class n{get(i){return JSON.parse(localStorage.getItem(i)||"{}")||{}}set(i,r){return localStorage.setItem(i,JSON.stringify(r)),!0}has(i){return!!localStorage.getItem(i)}remove(i){localStorage.removeItem(i)}clear(){localStorage.clear()}};n.\u0275fac=function(r){return new(r||n)},n.\u0275prov=O({token:n,factory:n.\u0275fac,providedIn:"root"});let t=n;return t})();var hz=(()=>{let n=class n{constructor(){this.translate=u(ia),this.paginatorIntl=new gc,this.translate.onLangChange.subscribe(i=>this.getPaginatorIntl())}getPaginatorIntl(){return this.paginatorIntl.itemsPerPageLabel=this.translate.instant("paginator.items_per_page_label"),this.paginatorIntl.previousPageLabel=this.translate.instant("paginator.previous_page_label"),this.paginatorIntl.nextPageLabel=this.translate.instant("paginator.next_page_label"),this.paginatorIntl.firstPageLabel=this.translate.instant("paginator.first_page_label"),this.paginatorIntl.lastPageLabel=this.translate.instant("paginator.last_page_label"),this.paginatorIntl.getRangeLabel=this.getRangeLabel.bind(this),this.paginatorIntl.changes.next(),this.paginatorIntl}getRangeLabel(i,r,o){if(o===0||r===0)return this.translate.instant("paginator.range_page_label_1",{length:o});o=Math.max(o,0);let a=i*r,s=a{if(t.destroyed){e.next();return}return t.onDestroy(e.next.bind(e))});return e=>e.pipe(Te(n))}function pz(t){let n=UM(t);return new Fe(e=>{let i=n?.onDestroy(()=>e.complete()),r=t.subscribe(o=>e.next(o));return()=>{r.unsubscribe(),i?.()}})}var yue=["content"],xue=["scroll"],Cue=["padding"],_z=["*"],m_=t=>({searchTerm:t});function wue(t,n){if(t&1&&(h(0,"div",3),Ge(1,6),p()),t&2){let e=C();g(),y("ngTemplateOutlet",e.headerTemplate())("ngTemplateOutletContext",Pt(2,m_,e.filterValue()))}}function Due(t,n){if(t&1&&(h(0,"div",5),Ge(1,6),p()),t&2){let e=C();g(),y("ngTemplateOutlet",e.footerTemplate())("ngTemplateOutletContext",Pt(2,m_,e.filterValue()))}}var Eue=["searchInput"],Mue=["clearButton"],kue=(t,n,e)=>({item:t,clear:n,label:e}),Sue=(t,n)=>({items:t,clear:n}),Tue=(t,n,e,i)=>({item:t,item$:n,index:e,searchTerm:i});function Iue(t,n){if(t&1&&(h(0,"div",20),_(1),p()),t&2){let e=C(2);g(),H(e.placeholder()??e.config.placeholder)}}function Aue(t,n){}function Oue(t,n){if(t&1&&R(0,Iue,2,1,"ng-template",null,1,_i)(2,Aue,0,0,"ng-template",19),t&2){let e=Se(1),i=C();g(2),y("ngTemplateOutlet",i.placeholderTemplate()||e)}}function Rue(t,n){if(t&1){let e=Y();h(0,"span",23),S("click",function(){I(e);let r=C().$implicit,o=C(2);return A(o.unselect(r))}),_(1,"\xD7"),p(),k(2,"span",24)}if(t&2){let e=C().$implicit,i=C(2);g(2),y("ngItemLabel",e.label)("escape",i.escapeHTML)}}function Pue(t,n){}function Fue(t,n){if(t&1&&(h(0,"div",22),R(1,Rue,3,2,"ng-template",null,2,_i)(3,Pue,0,0,"ng-template",12),p()),t&2){let e=n.$implicit,i=Se(2),r=C(2);G("ng-value-disabled",e.disabled),g(3),y("ngTemplateOutlet",r.labelTemplate()||i)("ngTemplateOutletContext",Rd(4,kue,e.value,r.clearItem,e.label))}}function Nue(t,n){if(t&1&&xt(0,Fue,4,8,"div",21,Mv().trackByOption,!0),t&2){let e=C();Ct(e.selectedItems)}}function Lue(t,n){}function Vue(t,n){if(t&1&&R(0,Lue,0,0,"ng-template",12),t&2){let e=C();y("ngTemplateOutlet",e.multiLabelTemplate())("ngTemplateOutletContext",wa(2,Sue,e.selectedValues,e.clearItem))}}function Bue(t,n){t&1&&k(0,"div",25)}function jue(t,n){}function Hue(t,n){if(t&1&&R(0,Bue,1,0,"ng-template",null,3,_i)(2,jue,0,0,"ng-template",19),t&2){let e=Se(1),i=C();g(2),y("ngTemplateOutlet",i.loadingSpinnerTemplate()||e)}}function zue(t,n){if(t&1&&Ge(0,19),t&2){let e=C(2);y("ngTemplateOutlet",e.clearButtonTemplate())}}function Uue(t,n){if(t&1){let e=Y();h(0,"span",27,4),S("click",function(r){I(e);let o=C(2);return A(o.handleClearClick(r))}),h(2,"span",28),_(3,"\xD7"),p()()}if(t&2){let e=C(2);y("title",VM(e.clearAllText()||e.config.clearAllText)),X("tabindex",e.tabFocusOnClear()?0:-1)}}function $ue(t,n){if(t&1&&N(0,zue,1,1,"ng-container",19)(1,Uue,4,3,"span",26),t&2){let e=C();L(e.clearButtonTemplate()?0:1)}}function Wue(t,n){if(t&1&&k(0,"span",33),t&2){let e=C().$implicit,i=C(2);y("ngItemLabel",e.label)("escape",i.escapeHTML)}}function Gue(t,n){}function que(t,n){if(t&1){let e=Y();h(0,"div",32),S("click",function(){let r=I(e).$implicit,o=C(2);return A(o.toggleItem(r))})("mouseover",function(){let r=I(e).$implicit,o=C(2);return A(o.onItemHover(r))}),R(1,Wue,1,2,"ng-template",null,5,_i)(3,Gue,0,0,"ng-template",12),p()}if(t&2){let e=n.$implicit,i=Se(2),r=C(2);G("ng-option-disabled",e.disabled)("ng-option-selected",e.selected)("ng-optgroup",e.children)("ng-option",!e.children)("ng-option-child",!!e.parent)("ng-option-marked",e===r.itemsList.markedItem),X("role",e.children?"group":"option")("aria-selected",e.selected)("id",e==null?null:e.htmlId)("aria-setsize",r.itemsList.filteredItems.length)("aria-posinset",e.index+1),g(3),y("ngTemplateOutlet",e.children?r.optgroupTemplate()||i:r.optionTemplate()||i)("ngTemplateOutletContext",wm(19,Tue,e.value,e,e.index,r.searchTerm))}}function Yue(t,n){if(t&1&&(h(0,"span")(1,"span",35),_(2),p(),_(3),p()),t&2){let e=C(3);g(2),H(e.addTagText()||e.config.addTagText),g(),ve('"',e.searchTerm,'"')}}function Que(t,n){}function Kue(t,n){if(t&1){let e=Y();h(0,"div",34),S("mouseover",function(){I(e);let r=C(2);return A(r.itemsList.unmarkItem())})("click",function(){I(e);let r=C(2);return A(r.selectTag())}),R(1,Yue,4,2,"ng-template",null,6,_i)(3,Que,0,0,"ng-template",12),p()}if(t&2){let e=Se(2),i=C(2);G("ng-option-marked",!i.itemsList.markedItem),g(3),y("ngTemplateOutlet",i.tagTemplate()||e)("ngTemplateOutletContext",Pt(4,m_,i.searchTerm))}}function Zue(t,n){if(t&1&&(h(0,"div",36),_(1),p()),t&2){let e=C(3);g(),H(e.notFoundText()??e.config.notFoundText)}}function Xue(t,n){}function Jue(t,n){if(t&1&&R(0,Zue,2,1,"ng-template",null,7,_i)(2,Xue,0,0,"ng-template",12),t&2){let e=Se(1),i=C(2);g(2),y("ngTemplateOutlet",i.notFoundTemplate()||e)("ngTemplateOutletContext",Pt(2,m_,i.searchTerm))}}function eme(t,n){if(t&1&&(h(0,"div",36),_(1),p()),t&2){let e=C(3);g(),H(e.typeToSearchText()||e.config.typeToSearchText)}}function tme(t,n){}function ime(t,n){if(t&1&&R(0,eme,2,1,"ng-template",null,8,_i)(2,tme,0,0,"ng-template",19),t&2){let e=Se(1),i=C(2);g(2),y("ngTemplateOutlet",i.typeToSearchTemplate()||e)}}function nme(t,n){if(t&1&&(h(0,"div",36),_(1),p()),t&2){let e=C(3);g(),H(e.loadingText()||e.config.loadingText)}}function rme(t,n){}function ome(t,n){if(t&1&&R(0,nme,2,1,"ng-template",null,9,_i)(2,rme,0,0,"ng-template",12),t&2){let e=Se(1),i=C(2);g(2),y("ngTemplateOutlet",i.loadingTextTemplate()||e)("ngTemplateOutletContext",Pt(2,m_,i.searchTerm))}}function ame(t,n){if(t&1){let e=Y();h(0,"ng-dropdown-panel",29),S("update",function(r){I(e);let o=C();return A(o.viewPortItems=r)})("scroll",function(r){I(e);let o=C();return A(o.scroll.emit(r))})("scrollToEnd",function(r){I(e);let o=C();return A(o.scrollToEnd.emit(r))})("outsideClick",function(){I(e);let r=C();return A(r.close())}),jt(1),xt(2,que,4,24,"div",30,Mv().trackByOption,!0),N(4,Kue,4,6,"div",31),Lt(),N(5,Jue,3,4),N(6,ime,3,1),N(7,ome,3,4),p()}if(t&2){let e=C(),i=e.appendTo()||e.config.appendTo;it(i?e.ngClass()?e.ngClass():e.classes:null),G("ng-select-multiple",e.multiple()),y("virtualScroll",e.virtualScroll()??!e.config.disableVirtualScroll??!1)("bufferAmount",e.bufferAmount())("appendTo",i)("position",e.dropdownPosition())("outsideClickEvent",e.outsideClickEvent())("headerTemplate",e.headerTemplate())("footerTemplate",e.footerTemplate())("filterValue",e.searchTerm)("items",e.itemsList.filteredItems)("showAddTag",e.showAddTag)("markedItem",e.itemsList.markedItem)("id",e.dropdownId)("ariaLabelDropdown",e.ariaLabelDropdown()),g(2),Ct(e.viewPortItems),g(2),L(e.showAddTag?4:-1),g(),L(e.showNoItemsFound()?5:-1),g(),L(e.showTypeToSearch()?6:-1),g(),L(e.loading()&&e.itemsList.filteredItems.length===0?7:-1)}}function sme(t,n){if(t&1&&_(0),t&2){let e=C();ve(" ",e.notFoundText()??e.config.notFoundText," ")}}var bz=/[&<>"']/g,lme=RegExp(bz.source),cme={"&":"&","<":"<",">":">",'"':""","'":"'"};function dme(t){return t&&lme.test(t)?t.replace(bz,n=>cme[n]):t}function Ji(t){return t!=null}function Su(t){return typeof t=="object"&&Ji(t)}function ume(t){return t instanceof Promise}function AC(t){return t instanceof Function}var mme=(()=>{let n=class n{constructor(){this.element=u(q),this.ngItemLabel=ne(),this.escape=ne(!0),Ar(()=>{this.element.nativeElement.innerHTML=this.escape()?dme(this.ngItemLabel()):this.ngItemLabel()})}};n.\u0275fac=function(r){return new(r||n)},n.\u0275dir=F({type:n,selectors:[["","ngItemLabel",""]],inputs:{ngItemLabel:[1,"ngItemLabel"],escape:[1,"escape"]}});let t=n;return t})(),OC=(()=>{let n=class n{constructor(){this.template=u(te)}};n.\u0275fac=function(r){return new(r||n)},n.\u0275dir=F({type:n,selectors:[["","ng-option-tmp",""]]});let t=n;return t})(),RC=(()=>{let n=class n{constructor(){this.template=u(te)}};n.\u0275fac=function(r){return new(r||n)},n.\u0275dir=F({type:n,selectors:[["","ng-optgroup-tmp",""]]});let t=n;return t})(),PC=(()=>{let n=class n{constructor(){this.template=u(te)}};n.\u0275fac=function(r){return new(r||n)},n.\u0275dir=F({type:n,selectors:[["","ng-label-tmp",""]]});let t=n;return t})(),FC=(()=>{let n=class n{constructor(){this.template=u(te)}};n.\u0275fac=function(r){return new(r||n)},n.\u0275dir=F({type:n,selectors:[["","ng-multi-label-tmp",""]]});let t=n;return t})(),NC=(()=>{let n=class n{constructor(){this.template=u(te)}};n.\u0275fac=function(r){return new(r||n)},n.\u0275dir=F({type:n,selectors:[["","ng-header-tmp",""]]});let t=n;return t})(),LC=(()=>{let n=class n{constructor(){this.template=u(te)}};n.\u0275fac=function(r){return new(r||n)},n.\u0275dir=F({type:n,selectors:[["","ng-footer-tmp",""]]});let t=n;return t})(),VC=(()=>{let n=class n{constructor(){this.template=u(te)}};n.\u0275fac=function(r){return new(r||n)},n.\u0275dir=F({type:n,selectors:[["","ng-notfound-tmp",""]]});let t=n;return t})(),BC=(()=>{let n=class n{constructor(){this.template=u(te)}};n.\u0275fac=function(r){return new(r||n)},n.\u0275dir=F({type:n,selectors:[["","ng-placeholder-tmp",""]]});let t=n;return t})(),jC=(()=>{let n=class n{constructor(){this.template=u(te)}};n.\u0275fac=function(r){return new(r||n)},n.\u0275dir=F({type:n,selectors:[["","ng-typetosearch-tmp",""]]});let t=n;return t})(),HC=(()=>{let n=class n{constructor(){this.template=u(te)}};n.\u0275fac=function(r){return new(r||n)},n.\u0275dir=F({type:n,selectors:[["","ng-loadingtext-tmp",""]]});let t=n;return t})(),zC=(()=>{let n=class n{constructor(){this.template=u(te)}};n.\u0275fac=function(r){return new(r||n)},n.\u0275dir=F({type:n,selectors:[["","ng-tag-tmp",""]]});let t=n;return t})(),UC=(()=>{let n=class n{constructor(){this.template=u(te)}};n.\u0275fac=function(r){return new(r||n)},n.\u0275dir=F({type:n,selectors:[["","ng-loadingspinner-tmp",""]]});let t=n;return t})(),$C=(()=>{let n=class n{constructor(){this.template=u(te)}};n.\u0275fac=function(r){return new(r||n)},n.\u0275dir=F({type:n,selectors:[["","ng-clearbutton-tmp",""]]});let t=n;return t})(),hme=(()=>{let n=class n{constructor(){this.fixedPlaceholder=!0,this.notFoundText="No items found",this.typeToSearchText="Type to search",this.addTagText="Add item",this.loadingText="Loading...",this.clearAllText="Clear all",this.disableVirtualScroll=!0,this.openOnEnter=!0,this.appearance="underline",this.tabFocusOnClear=!0,this.outsideClickEvent="click"}};n.\u0275fac=function(r){return new(r||n)},n.\u0275prov=O({token:n,factory:n.\u0275fac,providedIn:"root"});let t=n;return t})(),pme=(()=>{let n=class n{warn(i){console.warn(i)}};n.\u0275fac=function(r){return new(r||n)},n.\u0275prov=O({token:n,factory:n.\u0275fac,providedIn:"root"});let t=n;return t})();function vz(){return"axxxxxxxxxxx".replace(/[x]/g,()=>(Math.random()*16|0).toString(16))}var fme={"\u24B6":"A",\uFF21:"A",\u00C0:"A",\u00C1:"A",\u00C2:"A",\u1EA6:"A",\u1EA4:"A",\u1EAA:"A",\u1EA8:"A",\u00C3:"A",\u0100:"A",\u0102:"A",\u1EB0:"A",\u1EAE:"A",\u1EB4:"A",\u1EB2:"A",\u0226:"A",\u01E0:"A",\u00C4:"A",\u01DE:"A",\u1EA2:"A",\u00C5:"A",\u01FA:"A",\u01CD:"A",\u0200:"A",\u0202:"A",\u1EA0:"A",\u1EAC:"A",\u1EB6:"A",\u1E00:"A",\u0104:"A","\u023A":"A","\u2C6F":"A","\uA732":"AA",\u00C6:"AE",\u01FC:"AE",\u01E2:"AE","\uA734":"AO","\uA736":"AU","\uA738":"AV","\uA73A":"AV","\uA73C":"AY","\u24B7":"B",\uFF22:"B",\u1E02:"B",\u1E04:"B",\u1E06:"B","\u0243":"B",\u0182:"B",\u0181:"B","\u24B8":"C",\uFF23:"C",\u0106:"C",\u0108:"C",\u010A:"C",\u010C:"C",\u00C7:"C",\u1E08:"C",\u0187:"C","\u023B":"C","\uA73E":"C","\u24B9":"D",\uFF24:"D",\u1E0A:"D",\u010E:"D",\u1E0C:"D",\u1E10:"D",\u1E12:"D",\u1E0E:"D",\u0110:"D",\u018B:"D",\u018A:"D",\u0189:"D","\uA779":"D",\u01F1:"DZ",\u01C4:"DZ",\u01F2:"Dz",\u01C5:"Dz","\u24BA":"E",\uFF25:"E",\u00C8:"E",\u00C9:"E",\u00CA:"E",\u1EC0:"E",\u1EBE:"E",\u1EC4:"E",\u1EC2:"E",\u1EBC:"E",\u0112:"E",\u1E14:"E",\u1E16:"E",\u0114:"E",\u0116:"E",\u00CB:"E",\u1EBA:"E",\u011A:"E",\u0204:"E",\u0206:"E",\u1EB8:"E",\u1EC6:"E",\u0228:"E",\u1E1C:"E",\u0118:"E",\u1E18:"E",\u1E1A:"E",\u0190:"E",\u018E:"E","\u24BB":"F",\uFF26:"F",\u1E1E:"F",\u0191:"F","\uA77B":"F","\u24BC":"G",\uFF27:"G",\u01F4:"G",\u011C:"G",\u1E20:"G",\u011E:"G",\u0120:"G",\u01E6:"G",\u0122:"G",\u01E4:"G",\u0193:"G","\uA7A0":"G","\uA77D":"G","\uA77E":"G","\u24BD":"H",\uFF28:"H",\u0124:"H",\u1E22:"H",\u1E26:"H",\u021E:"H",\u1E24:"H",\u1E28:"H",\u1E2A:"H",\u0126:"H","\u2C67":"H","\u2C75":"H","\uA78D":"H","\u24BE":"I",\uFF29:"I",\u00CC:"I",\u00CD:"I",\u00CE:"I",\u0128:"I",\u012A:"I",\u012C:"I",\u0130:"I",\u00CF:"I",\u1E2E:"I",\u1EC8:"I",\u01CF:"I",\u0208:"I",\u020A:"I",\u1ECA:"I",\u012E:"I",\u1E2C:"I",\u0197:"I","\u24BF":"J",\uFF2A:"J",\u0134:"J","\u0248":"J","\u24C0":"K",\uFF2B:"K",\u1E30:"K",\u01E8:"K",\u1E32:"K",\u0136:"K",\u1E34:"K",\u0198:"K","\u2C69":"K","\uA740":"K","\uA742":"K","\uA744":"K","\uA7A2":"K","\u24C1":"L",\uFF2C:"L",\u013F:"L",\u0139:"L",\u013D:"L",\u1E36:"L",\u1E38:"L",\u013B:"L",\u1E3C:"L",\u1E3A:"L",\u0141:"L","\u023D":"L","\u2C62":"L","\u2C60":"L","\uA748":"L","\uA746":"L","\uA780":"L",\u01C7:"LJ",\u01C8:"Lj","\u24C2":"M",\uFF2D:"M",\u1E3E:"M",\u1E40:"M",\u1E42:"M","\u2C6E":"M",\u019C:"M","\u24C3":"N",\uFF2E:"N",\u01F8:"N",\u0143:"N",\u00D1:"N",\u1E44:"N",\u0147:"N",\u1E46:"N",\u0145:"N",\u1E4A:"N",\u1E48:"N","\u0220":"N",\u019D:"N","\uA790":"N","\uA7A4":"N",\u01CA:"NJ",\u01CB:"Nj","\u24C4":"O",\uFF2F:"O",\u00D2:"O",\u00D3:"O",\u00D4:"O",\u1ED2:"O",\u1ED0:"O",\u1ED6:"O",\u1ED4:"O",\u00D5:"O",\u1E4C:"O",\u022C:"O",\u1E4E:"O",\u014C:"O",\u1E50:"O",\u1E52:"O",\u014E:"O",\u022E:"O",\u0230:"O",\u00D6:"O",\u022A:"O",\u1ECE:"O",\u0150:"O",\u01D1:"O",\u020C:"O",\u020E:"O",\u01A0:"O",\u1EDC:"O",\u1EDA:"O",\u1EE0:"O",\u1EDE:"O",\u1EE2:"O",\u1ECC:"O",\u1ED8:"O",\u01EA:"O",\u01EC:"O",\u00D8:"O",\u01FE:"O",\u0186:"O",\u019F:"O","\uA74A":"O","\uA74C":"O",\u01A2:"OI","\uA74E":"OO",\u0222:"OU","\u24C5":"P",\uFF30:"P",\u1E54:"P",\u1E56:"P",\u01A4:"P","\u2C63":"P","\uA750":"P","\uA752":"P","\uA754":"P","\u24C6":"Q",\uFF31:"Q","\uA756":"Q","\uA758":"Q","\u024A":"Q","\u24C7":"R",\uFF32:"R",\u0154:"R",\u1E58:"R",\u0158:"R",\u0210:"R",\u0212:"R",\u1E5A:"R",\u1E5C:"R",\u0156:"R",\u1E5E:"R","\u024C":"R","\u2C64":"R","\uA75A":"R","\uA7A6":"R","\uA782":"R","\u24C8":"S",\uFF33:"S","\u1E9E":"S",\u015A:"S",\u1E64:"S",\u015C:"S",\u1E60:"S",\u0160:"S",\u1E66:"S",\u1E62:"S",\u1E68:"S",\u0218:"S",\u015E:"S","\u2C7E":"S","\uA7A8":"S","\uA784":"S","\u24C9":"T",\uFF34:"T",\u1E6A:"T",\u0164:"T",\u1E6C:"T",\u021A:"T",\u0162:"T",\u1E70:"T",\u1E6E:"T",\u0166:"T",\u01AC:"T",\u01AE:"T","\u023E":"T","\uA786":"T","\uA728":"TZ","\u24CA":"U",\uFF35:"U",\u00D9:"U",\u00DA:"U",\u00DB:"U",\u0168:"U",\u1E78:"U",\u016A:"U",\u1E7A:"U",\u016C:"U",\u00DC:"U",\u01DB:"U",\u01D7:"U",\u01D5:"U",\u01D9:"U",\u1EE6:"U",\u016E:"U",\u0170:"U",\u01D3:"U",\u0214:"U",\u0216:"U",\u01AF:"U",\u1EEA:"U",\u1EE8:"U",\u1EEE:"U",\u1EEC:"U",\u1EF0:"U",\u1EE4:"U",\u1E72:"U",\u0172:"U",\u1E76:"U",\u1E74:"U","\u0244":"U","\u24CB":"V",\uFF36:"V",\u1E7C:"V",\u1E7E:"V",\u01B2:"V","\uA75E":"V","\u0245":"V","\uA760":"VY","\u24CC":"W",\uFF37:"W",\u1E80:"W",\u1E82:"W",\u0174:"W",\u1E86:"W",\u1E84:"W",\u1E88:"W","\u2C72":"W","\u24CD":"X",\uFF38:"X",\u1E8A:"X",\u1E8C:"X","\u24CE":"Y",\uFF39:"Y",\u1EF2:"Y",\u00DD:"Y",\u0176:"Y",\u1EF8:"Y",\u0232:"Y",\u1E8E:"Y",\u0178:"Y",\u1EF6:"Y",\u1EF4:"Y",\u01B3:"Y","\u024E":"Y","\u1EFE":"Y","\u24CF":"Z",\uFF3A:"Z",\u0179:"Z",\u1E90:"Z",\u017B:"Z",\u017D:"Z",\u1E92:"Z",\u1E94:"Z",\u01B5:"Z",\u0224:"Z","\u2C7F":"Z","\u2C6B":"Z","\uA762":"Z","\u24D0":"a",\uFF41:"a",\u1E9A:"a",\u00E0:"a",\u00E1:"a",\u00E2:"a",\u1EA7:"a",\u1EA5:"a",\u1EAB:"a",\u1EA9:"a",\u00E3:"a",\u0101:"a",\u0103:"a",\u1EB1:"a",\u1EAF:"a",\u1EB5:"a",\u1EB3:"a",\u0227:"a",\u01E1:"a",\u00E4:"a",\u01DF:"a",\u1EA3:"a",\u00E5:"a",\u01FB:"a",\u01CE:"a",\u0201:"a",\u0203:"a",\u1EA1:"a",\u1EAD:"a",\u1EB7:"a",\u1E01:"a",\u0105:"a","\u2C65":"a",\u0250:"a","\uA733":"aa",\u00E6:"ae",\u01FD:"ae",\u01E3:"ae","\uA735":"ao","\uA737":"au","\uA739":"av","\uA73B":"av","\uA73D":"ay","\u24D1":"b",\uFF42:"b",\u1E03:"b",\u1E05:"b",\u1E07:"b",\u0180:"b",\u0183:"b",\u0253:"b","\u24D2":"c",\uFF43:"c",\u0107:"c",\u0109:"c",\u010B:"c",\u010D:"c",\u00E7:"c",\u1E09:"c",\u0188:"c","\u023C":"c","\uA73F":"c","\u2184":"c","\u24D3":"d",\uFF44:"d",\u1E0B:"d",\u010F:"d",\u1E0D:"d",\u1E11:"d",\u1E13:"d",\u1E0F:"d",\u0111:"d",\u018C:"d",\u0256:"d",\u0257:"d","\uA77A":"d",\u01F3:"dz",\u01C6:"dz","\u24D4":"e",\uFF45:"e",\u00E8:"e",\u00E9:"e",\u00EA:"e",\u1EC1:"e",\u1EBF:"e",\u1EC5:"e",\u1EC3:"e",\u1EBD:"e",\u0113:"e",\u1E15:"e",\u1E17:"e",\u0115:"e",\u0117:"e",\u00EB:"e",\u1EBB:"e",\u011B:"e",\u0205:"e",\u0207:"e",\u1EB9:"e",\u1EC7:"e",\u0229:"e",\u1E1D:"e",\u0119:"e",\u1E19:"e",\u1E1B:"e","\u0247":"e",\u025B:"e",\u01DD:"e","\u24D5":"f",\uFF46:"f",\u1E1F:"f",\u0192:"f","\uA77C":"f","\u24D6":"g",\uFF47:"g",\u01F5:"g",\u011D:"g",\u1E21:"g",\u011F:"g",\u0121:"g",\u01E7:"g",\u0123:"g",\u01E5:"g",\u0260:"g","\uA7A1":"g","\u1D79":"g","\uA77F":"g","\u24D7":"h",\uFF48:"h",\u0125:"h",\u1E23:"h",\u1E27:"h",\u021F:"h",\u1E25:"h",\u1E29:"h",\u1E2B:"h",\u1E96:"h",\u0127:"h","\u2C68":"h","\u2C76":"h",\u0265:"h",\u0195:"hv","\u24D8":"i",\uFF49:"i",\u00EC:"i",\u00ED:"i",\u00EE:"i",\u0129:"i",\u012B:"i",\u012D:"i",\u00EF:"i",\u1E2F:"i",\u1EC9:"i",\u01D0:"i",\u0209:"i",\u020B:"i",\u1ECB:"i",\u012F:"i",\u1E2D:"i",\u0268:"i",\u0131:"i","\u24D9":"j",\uFF4A:"j",\u0135:"j",\u01F0:"j","\u0249":"j","\u24DA":"k",\uFF4B:"k",\u1E31:"k",\u01E9:"k",\u1E33:"k",\u0137:"k",\u1E35:"k",\u0199:"k","\u2C6A":"k","\uA741":"k","\uA743":"k","\uA745":"k","\uA7A3":"k","\u24DB":"l",\uFF4C:"l",\u0140:"l",\u013A:"l",\u013E:"l",\u1E37:"l",\u1E39:"l",\u013C:"l",\u1E3D:"l",\u1E3B:"l",\u017F:"l",\u0142:"l",\u019A:"l",\u026B:"l","\u2C61":"l","\uA749":"l","\uA781":"l","\uA747":"l",\u01C9:"lj","\u24DC":"m",\uFF4D:"m",\u1E3F:"m",\u1E41:"m",\u1E43:"m",\u0271:"m",\u026F:"m","\u24DD":"n",\uFF4E:"n",\u01F9:"n",\u0144:"n",\u00F1:"n",\u1E45:"n",\u0148:"n",\u1E47:"n",\u0146:"n",\u1E4B:"n",\u1E49:"n",\u019E:"n",\u0272:"n",\u0149:"n","\uA791":"n","\uA7A5":"n",\u01CC:"nj","\u24DE":"o",\uFF4F:"o",\u00F2:"o",\u00F3:"o",\u00F4:"o",\u1ED3:"o",\u1ED1:"o",\u1ED7:"o",\u1ED5:"o",\u00F5:"o",\u1E4D:"o",\u022D:"o",\u1E4F:"o",\u014D:"o",\u1E51:"o",\u1E53:"o",\u014F:"o",\u022F:"o",\u0231:"o",\u00F6:"o",\u022B:"o",\u1ECF:"o",\u0151:"o",\u01D2:"o",\u020D:"o",\u020F:"o",\u01A1:"o",\u1EDD:"o",\u1EDB:"o",\u1EE1:"o",\u1EDF:"o",\u1EE3:"o",\u1ECD:"o",\u1ED9:"o",\u01EB:"o",\u01ED:"o",\u00F8:"o",\u01FF:"o",\u0254:"o","\uA74B":"o","\uA74D":"o",\u0275:"o",\u01A3:"oi",\u0223:"ou","\uA74F":"oo","\u24DF":"p",\uFF50:"p",\u1E55:"p",\u1E57:"p",\u01A5:"p","\u1D7D":"p","\uA751":"p","\uA753":"p","\uA755":"p","\u24E0":"q",\uFF51:"q","\u024B":"q","\uA757":"q","\uA759":"q","\u24E1":"r",\uFF52:"r",\u0155:"r",\u1E59:"r",\u0159:"r",\u0211:"r",\u0213:"r",\u1E5B:"r",\u1E5D:"r",\u0157:"r",\u1E5F:"r","\u024D":"r",\u027D:"r","\uA75B":"r","\uA7A7":"r","\uA783":"r","\u24E2":"s",\uFF53:"s",\u00DF:"s",\u015B:"s",\u1E65:"s",\u015D:"s",\u1E61:"s",\u0161:"s",\u1E67:"s",\u1E63:"s",\u1E69:"s",\u0219:"s",\u015F:"s","\u023F":"s","\uA7A9":"s","\uA785":"s",\u1E9B:"s","\u24E3":"t",\uFF54:"t",\u1E6B:"t",\u1E97:"t",\u0165:"t",\u1E6D:"t",\u021B:"t",\u0163:"t",\u1E71:"t",\u1E6F:"t",\u0167:"t",\u01AD:"t",\u0288:"t","\u2C66":"t","\uA787":"t","\uA729":"tz","\u24E4":"u",\uFF55:"u",\u00F9:"u",\u00FA:"u",\u00FB:"u",\u0169:"u",\u1E79:"u",\u016B:"u",\u1E7B:"u",\u016D:"u",\u00FC:"u",\u01DC:"u",\u01D8:"u",\u01D6:"u",\u01DA:"u",\u1EE7:"u",\u016F:"u",\u0171:"u",\u01D4:"u",\u0215:"u",\u0217:"u",\u01B0:"u",\u1EEB:"u",\u1EE9:"u",\u1EEF:"u",\u1EED:"u",\u1EF1:"u",\u1EE5:"u",\u1E73:"u",\u0173:"u",\u1E77:"u",\u1E75:"u",\u0289:"u","\u24E5":"v",\uFF56:"v",\u1E7D:"v",\u1E7F:"v",\u028B:"v","\uA75F":"v",\u028C:"v","\uA761":"vy","\u24E6":"w",\uFF57:"w",\u1E81:"w",\u1E83:"w",\u0175:"w",\u1E87:"w",\u1E85:"w",\u1E98:"w",\u1E89:"w","\u2C73":"w","\u24E7":"x",\uFF58:"x",\u1E8B:"x",\u1E8D:"x","\u24E8":"y",\uFF59:"y",\u1EF3:"y",\u00FD:"y",\u0177:"y",\u1EF9:"y",\u0233:"y",\u1E8F:"y",\u00FF:"y",\u1EF7:"y",\u1E99:"y",\u1EF5:"y",\u01B4:"y","\u024F":"y","\u1EFF":"y","\u24E9":"z",\uFF5A:"z",\u017A:"z",\u1E91:"z",\u017C:"z",\u017E:"z",\u1E93:"z",\u1E95:"z",\u01B6:"z",\u0225:"z","\u0240":"z","\u2C6C":"z","\uA763":"z",\u0386:"\u0391",\u0388:"\u0395",\u0389:"\u0397",\u038A:"\u0399",\u03AA:"\u0399",\u038C:"\u039F",\u038E:"\u03A5",\u03AB:"\u03A5",\u038F:"\u03A9",\u03AC:"\u03B1",\u03AD:"\u03B5",\u03AE:"\u03B7",\u03AF:"\u03B9",\u03CA:"\u03B9",\u0390:"\u03B9",\u03CC:"\u03BF",\u03CD:"\u03C5",\u03CB:"\u03C5",\u03B0:"\u03C5",\u03C9:"\u03C9",\u03C2:"\u03C3"};function IC(t){let n=e=>fme[e]||e;return t.replace(/[^\u0000-\u007E]/g,n)}var gI=class{constructor(n,e){this._ngSelect=n,this._selectionModel=e,this._items=[],this._filteredItems=[],this._markedIndex=-1}get items(){return this._items}get filteredItems(){return this._filteredItems}get markedIndex(){return this._markedIndex}get selectedItems(){return this._selectionModel.value}get markedItem(){return this._filteredItems[this._markedIndex]}get noItemsToSelect(){return this._ngSelect.hideSelected()&&this._items.length===this.selectedItems.length}get maxItemsSelected(){return this._ngSelect.multiple()&&this._ngSelect.maxSelectedItems()<=this.selectedItems.length}get lastSelectedItem(){let n=this.selectedItems.length-1;for(;n>=0;n--){let e=this.selectedItems[n];if(!e.disabled)return e}return null}setItems(n){this._items=n.map((i,r)=>this.mapItem(i,r));let e=this._ngSelect.groupBy();e?(this._groups=this._groupBy(this._items,e),this._items=this._flatten(this._groups)):(this._groups=new Map,this._groups.set(void 0,this._items)),this._filteredItems=[...this._items]}select(n){if(n.selected||this.maxItemsSelected)return;let e=this._ngSelect.multiple();e||this.clearSelected(),this._selectionModel.select(n,e,this._ngSelect.selectableGroupAsModel()),this._ngSelect.hideSelected()&&this._hideSelected(n)}unselect(n){if(!n.selected)return;let e=this._ngSelect.multiple();this._selectionModel.unselect(n,e),this._ngSelect.hideSelected()&&Ji(n.index)&&e&&this._showSelected(n)}findItem(n){let e;return this._ngSelect.compareWith()?e=i=>this._ngSelect.compareWith()(i.value,n):this._ngSelect.bindValue()?e=i=>!i.children&&this.resolveNested(i.value,this._ngSelect.bindValue())===n:e=i=>i.value===n||!i.children&&i.label&&i.label===this.resolveNested(n,this._ngSelect.bindLabel()),this._items.find(i=>e(i))}addItem(n){let e=this.mapItem(n,this._items.length);return this._items.push(e),this._filteredItems.push(e),e}clearSelected(n=!1){this._selectionModel.clear(n),this._items.forEach(e=>{e.selected=n&&e.selected&&e.disabled,e.marked=!1}),this._ngSelect.hideSelected()&&this.resetFilteredItems()}findByLabel(n){return n=IC(n).toLocaleLowerCase(),this.filteredItems.find(e=>IC(e.label).toLocaleLowerCase().substr(0,n.length)===n)}filter(n){if(!n){this.resetFilteredItems();return}this._filteredItems=[],n=this._ngSelect.searchFn()?n:IC(n).toLocaleLowerCase();let e=this._ngSelect.searchFn()||this._defaultSearchFn,i=this._ngSelect.hideSelected();for(let r of Array.from(this._groups.keys())){let o=[];for(let a of this._groups.get(r)){if(i&&(a.parent&&a.parent.selected||a.selected))continue;let s=this._ngSelect.searchFn()?a.value:a;e(n,s)&&o.push(a)}if(o.length>0){let[a]=o.slice(-1);if(a.parent){let s=this._items.find(l=>l===a.parent);this._filteredItems.push(s)}this._filteredItems.push(...o)}}}resetFilteredItems(){this._filteredItems.length!==this._items.length&&(this._ngSelect.hideSelected()&&this.selectedItems.length>0?this._filteredItems=this._items.filter(n=>!n.selected):this._filteredItems=this._items)}unmarkItem(){this._markedIndex=-1}markNextItem(){this._stepToItem(1)}markPreviousItem(){this._stepToItem(-1)}markItem(n){this._markedIndex=this._filteredItems.indexOf(n)}markSelectedOrDefault(n){if(this._filteredItems.length===0)return;let e=this._getLastMarkedIndex();e>-1?this._markedIndex=e:this._markedIndex=n?this.filteredItems.findIndex(i=>!i.disabled):-1}resolveNested(n,e){if(!Su(n))return n;if(e.indexOf(".")===-1)return n[e];{let i=e.split("."),r=n;for(let o=0,a=i.length;othis._ngSelect.compareWith()(o.value,e.value));else{let o=i?this.resolveNested(e.value,i):e.value;r=Ji(o)?this.findItem(o):null}this._selectionModel.unselect(e,n),this._selectionModel.select(r||e,n,this._ngSelect.selectableGroupAsModel())}this._ngSelect.hideSelected()&&(this._filteredItems=this.filteredItems.filter(e=>this.selectedItems.indexOf(e)===-1))}_showSelected(n){if(this._filteredItems.push(n),n.parent){let e=n.parent;this._filteredItems.find(r=>r===e)||this._filteredItems.push(e)}else if(n.children)for(let e of n.children)e.selected=!1,this._filteredItems.push(e);this._filteredItems=[...this._filteredItems.sort((e,i)=>e.index-i.index)]}_hideSelected(n){this._filteredItems=this._filteredItems.filter(e=>e!==n),n.parent?n.parent.children.every(i=>i.selected)&&(this._filteredItems=this._filteredItems.filter(i=>i!==n.parent)):n.children&&(this._filteredItems=this.filteredItems.filter(e=>e.parent!==n))}_defaultSearchFn(n,e){return IC(e.label).toLocaleLowerCase().indexOf(n)>-1}_getNextItemIndex(n){return n>0?this._markedIndex>=this._filteredItems.length-1?0:this._markedIndex+1:this._markedIndex<=0?this._filteredItems.length-1:this._markedIndex-1}_stepToItem(n){this._filteredItems.length===0||this._filteredItems.every(e=>e.disabled)||(this._markedIndex=this._getNextItemIndex(n),this.markedItem.disabled&&this._stepToItem(n))}_getLastMarkedIndex(){if(this._ngSelect.hideSelected()||this._markedIndex>-1&&this.markedItem===void 0)return-1;let n=this._filteredItems.indexOf(this.lastSelectedItem);return this.lastSelectedItem&&n<0?-1:Math.max(this.markedIndex,n)}_groupBy(n,e){let i=new Map;if(n.length===0)return i;if(Array.isArray(n[0].value[e])){for(let a of n){let s=(a.value[e]||[]).map((l,c)=>this.mapItem(l,c));i.set(a,s)}return i}let r=AC(this._ngSelect.groupBy()),o=a=>{let s=r?e(a.value):a.value[e];return Ji(s)?s:void 0};for(let a of n){let s=o(a),l=i.get(s);l?l.push(a):i.set(s,[a])}return i}_flatten(n){let e=AC(this._ngSelect.groupBy()),i=[];for(let r of Array.from(n.keys())){let o=i.length;if(r===void 0){let m=n.get(void 0)||[];i.push(...m.map(f=>(f.index=o++,f)));continue}let a=Su(r),s={label:a?"":String(r),children:void 0,parent:null,index:o++,disabled:!this._ngSelect.selectableGroup(),htmlId:vz()},l=e?this._ngSelect.bindLabel():this._ngSelect.groupBy(),c=this._ngSelect.groupValue()||(()=>a?r.value:{[l]:r}),d=n.get(r).map(m=>(m.parent=s,m.children=void 0,m.index=o++,m));s.children=d,s.value=c(r,d.map(m=>m.value)),i.push(s),i.push(...d)}return i}},yz=(()=>{let n=class n{constructor(){this._dimensions={itemHeight:0,panelHeight:0,itemsPerViewport:0}}get dimensions(){return this._dimensions}calculateItems(i,r,o){let a=this._dimensions,s=a.itemHeight*r,c=Math.max(0,i)/s*r,d=Math.min(r,Math.ceil(c)+(a.itemsPerViewport+1)),f=Math.max(0,d-a.itemsPerViewport),b=Math.min(f,Math.floor(c)),v=a.itemHeight*Math.ceil(b)-a.itemHeight*Math.min(b,o);return v=isNaN(v)?0:v,b=isNaN(b)?-1:b,d=isNaN(d)?-1:d,b-=o,b=Math.max(0,b),d+=o,d=Math.min(r,d),{topPadding:v,scrollHeight:s,start:b,end:d}}setDimensions(i,r){let o=Math.max(1,Math.floor(r/i));this._dimensions={itemHeight:i,panelHeight:r,itemsPerViewport:o}}getScrollTo(i,r,o){let{panelHeight:a}=this.dimensions,s=i+r,l=o,c=l+a;return a>=s&&o===i?null:s>c?l+s-c:i<=l?i:null}};n.\u0275fac=function(r){return new(r||n)},n.\u0275prov=O({token:n,factory:n.\u0275fac});let t=n;return t})(),fz=["top","right","bottom","left"],gme=typeof requestAnimationFrame<"u"?G_:U_,fI=(()=>{let n=class n{get currentPosition(){return this._currentPosition}get itemsLength(){return this._itemsLength}set itemsLength(i){i!==this._itemsLength&&(this._itemsLength=i,this._onItemsLengthChanged())}get _startOffset(){if(this.markedItem()){let{itemHeight:i,panelHeight:r}=this._panelService.dimensions,o=this.markedItem().index*i;return r>o?0:o}return 0}constructor(){this._renderer=u(je),this._zone=u(ae),this._panelService=u(yz),this._document=u(ge,{optional:!0}),this._destroyRef=u(nn),this._dropdown=u(q).nativeElement,this.items=ne([]),this.showAddTag=ne(!1,{transform:V}),this.markedItem=ne(void 0),this.position=ne("auto"),this.appendTo=ne(void 0),this.bufferAmount=ne(void 0),this.virtualScroll=ne(!1,{transform:V}),this.headerTemplate=ne(void 0),this.footerTemplate=ne(void 0),this.filterValue=ne(null),this.ariaLabelDropdown=ne(null),this.outsideClickEvent=ne("click"),this.update=bi(),this.scroll=bi(),this.scrollToEnd=bi(),this.outsideClick=bi(),this.contentElementRef=qn("content",{read:q}),this.scrollElementRef=qn("scroll",{read:q}),this.paddingElementRef=qn("padding",{read:q}),this._virtualPadding=Zt(()=>this.paddingElementRef()?.nativeElement),this._scrollablePanel=Zt(()=>this.scrollElementRef()?.nativeElement),this._contentPanel=Zt(()=>this.contentElementRef()?.nativeElement),this._scrollToEndFired=!1,this._updateScrollHeight=!1,this._lastScrollPosition=0,this._destroyRef.onDestroy(()=>{this.appendTo()&&this._renderer.removeChild(this._dropdown.parentNode,this._dropdown)})}ngOnInit(){this._select=this._dropdown.parentElement,this._handleScroll(),this._handleOutsideClick(),this._appendDropdown(),this._setupMousedownListener()}ngOnChanges(i){if(i.items){let r=i.items;this._onItemsOrShowAddTagChange(r.currentValue,this.showAddTag(),r.firstChange)}if(i.showAddTag){let r=i.showAddTag;this._onItemsOrShowAddTagChange(this.items(),r.currentValue,r.firstChange)}}scrollTo(i,r=!1){if(!i)return;let o=this.items().indexOf(i);if(o<0||o>=this.itemsLength)return;let a;if(this.virtualScroll()){let s=this._panelService.dimensions.itemHeight;a=this._panelService.getScrollTo(o*s,s,this._lastScrollPosition)}else{let s=this._dropdown.querySelector(`#${i.htmlId}`),l=r?s.offsetTop:this._lastScrollPosition;a=this._panelService.getScrollTo(s.offsetTop,s.clientHeight,l)}Ji(a)&&(this._scrollablePanel().scrollTop=a)}scrollToTag(){let i=this._scrollablePanel();i.scrollTop=i.scrollHeight-i.clientHeight}adjustPosition(){this._updateYPosition()}_handleDropdownPosition(){this._currentPosition=this._calculateCurrentPosition(this._dropdown),fz.includes(this._currentPosition)?this._updateDropdownClass(this._currentPosition):this._updateDropdownClass("bottom"),this.appendTo()&&this._updateYPosition(),this._dropdown.style.opacity="1"}_updateDropdownClass(i){fz.forEach(o=>{let a=`ng-select-${o}`;this._renderer.removeClass(this._dropdown,a),this._renderer.removeClass(this._select,a)});let r=`ng-select-${i}`;this._renderer.addClass(this._dropdown,r),this._renderer.addClass(this._select,r)}_handleScroll(){this._zone.runOutsideAngular(()=>{this._scrollablePanel()&&zs(this._scrollablePanel(),"scroll").pipe(ku(this._destroyRef),Pl(0,gme)).subscribe(i=>{let r=i.target;r&&"scrollTop"in r&&this._onContentScrolled(r.scrollTop)})})}_handleOutsideClick(){this._document&&this._zone.runOutsideAngular(()=>{zs(this._document,this.outsideClickEvent(),{capture:!0}).pipe(ku(this._destroyRef)).subscribe(i=>this._checkToClose(i))})}_checkToClose(i){if(this._select.contains(i.target)||this._dropdown.contains(i.target))return;let r=i.path||i.composedPath&&i.composedPath();i.target&&i.target.shadowRoot&&r&&r[0]&&this._select.contains(r[0])||this._zone.run(()=>this.outsideClick.emit())}_onItemsOrShowAddTagChange(i=[],r,o){this._scrollToEndFired=!1,this.itemsLength=i.length,r&&i.length&&this.itemsLength++,this.virtualScroll()?this._updateItemsRange(o):(this._setVirtualHeight(),this._updateItems(o))}_updateItems(i){this.update.emit(this.items()),i!==!1&&this._zone.runOutsideAngular(()=>{Promise.resolve().then(()=>{let r=this._scrollablePanel().clientHeight;this._panelService.setDimensions(0,r),this._handleDropdownPosition(),this.scrollTo(this.markedItem(),i)})})}_updateItemsRange(i){this._zone.runOutsideAngular(()=>{this._measureDimensions().then(()=>{i?(this._renderItemsRange(this._startOffset),this._handleDropdownPosition()):this._renderItemsRange()})})}_onContentScrolled(i){this.virtualScroll()&&this._renderItemsRange(i),this._lastScrollPosition=i,this._fireScrollToEnd(i)}_updateVirtualHeight(i){this._updateScrollHeight&&(this._virtualPadding().style.height=`${i}px`,this._updateScrollHeight=!1)}_setVirtualHeight(){this._virtualPadding()&&(this._virtualPadding().style.height="0px")}_onItemsLengthChanged(){this._updateScrollHeight=!0}_renderItemsRange(i=null){if(i&&this._lastScrollPosition===i)return;i=i||this._scrollablePanel().scrollTop;let r=this._panelService.calculateItems(i,this.itemsLength,this.bufferAmount());this._updateVirtualHeight(r.scrollHeight),this._contentPanel().style.transform=`translateY(${r.topPadding}px)`,this._zone.run(()=>{this.update.emit(this.items().slice(r.start,r.end)),this.scroll.emit({start:r.start,end:r.end})}),Ji(i)&&this._lastScrollPosition===0&&(this._scrollablePanel().scrollTop=i,this._lastScrollPosition=i)}_measureDimensions(){if(this._panelService.dimensions.itemHeight>0||this.itemsLength===0)return Promise.resolve(this._panelService.dimensions);let[i]=this.items();return this.update.emit([i]),Promise.resolve().then(()=>{let o=this._dropdown.querySelector(`#${i.htmlId}`).clientHeight;this._virtualPadding().style.height=`${o*this.itemsLength}px`;let a=this._scrollablePanel().clientHeight;return this._panelService.setDimensions(o,a),this._panelService.dimensions})}_fireScrollToEnd(i){if(this._scrollToEndFired||i===0)return;let r=this.virtualScroll()?this._virtualPadding():this._contentPanel();i+this._dropdown.clientHeight>=r.clientHeight-1&&(this._zone.run(()=>this.scrollToEnd.emit()),this._scrollToEndFired=!0)}_calculateCurrentPosition(i){let r=this.position();if(r!=="auto")return r;let o=this._select.getBoundingClientRect(),a=document.documentElement.scrollTop||document.body.scrollTop,s=o.top+window.pageYOffset,l=o.height,c=i.getBoundingClientRect().height;return s+l+c>a+document.documentElement.clientHeight?"top":"bottom"}_appendDropdown(){if(this.appendTo()){if(this._parent=this._dropdown.shadowRoot?this._dropdown.shadowRoot.querySelector(this.appendTo()):document.querySelector(this.appendTo()),!this._parent)throw new Error(`appendTo selector ${this.appendTo()} did not found any parent element`);this._updateXPosition(),this._parent.appendChild(this._dropdown)}}_updateXPosition(){let i=this._select.getBoundingClientRect(),r=this._parent.getBoundingClientRect(),o=document.documentElement.dir==="rtl",a=i.left-r.left;if(o){let s=r.right-i.right;this._dropdown.style.right=s+"px",this._dropdown.style.left="auto"}else this._dropdown.style.left=a+"px",this._dropdown.style.right="auto";this._dropdown.style.width=i.width+"px",this._dropdown.style.minWidth=i.width+"px"}_updateYPosition(){let i=this._select.getBoundingClientRect(),r=this._parent.getBoundingClientRect(),o=i.height;if(this._currentPosition==="top"){let a=r.bottom-i.bottom;this._dropdown.style.bottom=a+o+"px",this._dropdown.style.top="auto"}else if(this._currentPosition==="bottom"){let a=i.top-r.top;this._dropdown.style.top=a+o+"px",this._dropdown.style.bottom="auto"}}_setupMousedownListener(){this._zone.runOutsideAngular(()=>{zs(this._dropdown,"mousedown").pipe(ku(this._destroyRef)).subscribe(i=>{i.target.tagName!=="INPUT"&&i.preventDefault()})})}};n.\u0275fac=function(r){return new(r||n)},n.\u0275cmp=E({type:n,selectors:[["ng-dropdown-panel"]],viewQuery:function(r,o){r&1&&(Pn(o.contentElementRef,yue,5,q),Pn(o.scrollElementRef,xue,5,q),Pn(o.paddingElementRef,Cue,5,q)),r&2&&Ho(3)},inputs:{items:[1,"items"],showAddTag:[1,"showAddTag"],markedItem:[1,"markedItem"],position:[1,"position"],appendTo:[1,"appendTo"],bufferAmount:[1,"bufferAmount"],virtualScroll:[1,"virtualScroll"],headerTemplate:[1,"headerTemplate"],footerTemplate:[1,"footerTemplate"],filterValue:[1,"filterValue"],ariaLabelDropdown:[1,"ariaLabelDropdown"],outsideClickEvent:[1,"outsideClickEvent"]},outputs:{update:"update",scroll:"scroll",scrollToEnd:"scrollToEnd",outsideClick:"outsideClick"},features:[Ae],ngContentSelectors:_z,decls:9,vars:7,consts:[["scroll",""],["padding",""],["content",""],[1,"ng-dropdown-header"],["role","listbox",1,"ng-dropdown-panel-items","scroll-host"],[1,"ng-dropdown-footer"],[3,"ngTemplateOutlet","ngTemplateOutletContext"]],template:function(r,o){r&1&&(Me(),N(0,wue,2,4,"div",3),h(1,"div",4,0),k(3,"div",null,1),h(5,"div",null,2),oe(7),p()(),N(8,Due,2,4,"div",5)),r&2&&(L(o.headerTemplate()?0:-1),g(),X("aria-label",o.ariaLabelDropdown()),g(2),G("total-padding",o.virtualScroll()),g(2),G("scrollable-content",o.virtualScroll()&&o.items().length),g(3),L(o.footerTemplate()?8:-1))},dependencies:[Fn],encapsulation:2,changeDetection:0});let t=n;return t})(),gz=(()=>{let n=class n{constructor(){this.value=ne(),this.disabled=ne(!1,{transform:V}),this.elementRef=u(q),this.label=he(""),pt(()=>{let i=(this.elementRef.nativeElement.innerHTML||"").trim();i!==this.label()&&this.label.set(i)})}};n.\u0275fac=function(r){return new(r||n)},n.\u0275cmp=E({type:n,selectors:[["ng-option"]],inputs:{value:[1,"value"],disabled:[1,"disabled"]},ngContentSelectors:_z,decls:1,vars:0,template:function(r,o){r&1&&(Me(),oe(0))},encapsulation:2,changeDetection:0});let t=n;return t})(),Ps=(function(t){return t.Tab="Tab",t.Enter="Enter",t.Esc="Escape",t.Space=" ",t.ArrowUp="ArrowUp",t.ArrowDown="ArrowDown",t.Backspace="Backspace",t})(Ps||{});function xz(){return new _I}var _I=class{constructor(){this._selected=[]}get value(){return this._selected}select(n,e,i){if(n.selected=!0,(!n.children||!e&&i)&&this._selected.push(n),e)if(n.parent){let r=n.parent.children.length,o=n.parent.children.filter(a=>a.selected).length;n.parent.selected=r===o}else n.children&&(this._setChildrenSelectedState(n.children,!0),this._removeChildren(n),i&&this._activeChildren(n)?this._selected=[...this._selected.filter(r=>r.parent!==n),n]:this._selected=[...this._selected,...n.children.filter(r=>!r.disabled)])}unselect(n,e){if(this._selected=this._selected.filter(i=>i!==n),n.selected=!1,e)if(n.parent&&n.parent.selected){let i=n.parent.children;this._removeParent(n.parent),this._removeChildren(n.parent),this._selected.push(...i.filter(r=>r!==n&&!r.disabled)),n.parent.selected=!1}else n.children&&(this._setChildrenSelectedState(n.children,!1),this._removeChildren(n))}clear(n){this._selected=n?this._selected.filter(e=>e.disabled):[]}_setChildrenSelectedState(n,e){for(let i of n)i.disabled||(i.selected=e)}_removeChildren(n){this._selected=[...this._selected.filter(e=>e.parent!==n),...n.children.filter(e=>e.parent===n&&e.disabled&&e.selected)]}_removeParent(n){this._selected=this._selected.filter(e=>e!==n)}_activeChildren(n){return n.children.every(e=>!e.disabled||e.selected)}},Cz=new T("ng-select-selection-model"),wz=(()=>{let n=class n{constructor(){this.classes=u(new Ii("class"),{optional:!0}),this.config=u(hme),this._cd=u(ye),this._console=u(pme),this._destroyRef=u(nn),this._disabled=he(!1),this.ariaLabelDropdown=ne("Options List"),this.ariaLabel=ne(void 0),this.markFirst=ne(!0,{transform:V}),this.placeholder=ne(this.config.placeholder),this.fixedPlaceholder=ne(!0),this.notFoundText=ne(void 0),this.typeToSearchText=ne(void 0),this.preventToggleOnRightClick=ne(!1),this.addTagText=ne(void 0),this.loadingText=ne(void 0),this.clearAllText=ne(void 0),this.dropdownPosition=ne("auto"),this.appendTo=ne(void 0),this.outsideClickEvent=ne(this.config.outsideClickEvent),this.loading=ne(!1,{transform:V}),this.closeOnSelect=ne(!0,{transform:V}),this.hideSelected=ne(!1,{transform:V}),this.selectOnTab=ne(!1,{transform:V}),this.openOnEnter=ne(void 0,{transform:V}),this.maxSelectedItems=ne(void 0,{transform:ct}),this.groupBy=ne(void 0),this.groupValue=ne(void 0),this.bufferAmount=ne(4,{transform:ct}),this.virtualScroll=ne(void 0,{transform:V}),this.selectableGroup=ne(!1,{transform:V}),this.tabFocusOnClearButton=ne(),this.selectableGroupAsModel=ne(!0,{transform:V}),this.searchFn=ne(null),this.trackByFn=ne(null),this.clearOnBackspace=ne(!0,{transform:V}),this.labelForId=ne(null),this.inputAttrs=ne({}),this.tabIndex=ne(void 0,{transform:ct}),this.readonly=ne(!1,{transform:V}),this.searchWhileComposing=ne(!0,{transform:V}),this.minTermLength=ne(0,{transform:ct}),this.editableSearchTerm=ne(!1,{transform:V}),this.ngClass=ne(null),this.typeahead=ne(void 0),this.multiple=ne(!1,{transform:V}),this.addTag=ne(!1),this.searchable=ne(!0,{transform:V}),this.clearable=ne(!0,{transform:V}),this.deselectOnClick=ne(),this.clearSearchOnAdd=ne(void 0),this.compareWith=ne(void 0,{transform:a=>{if(a!=null&&!AC(a))throw Error("`compareWith` must be a function.");return a}}),this.keyDownFn=ne(a=>!0),this.bindLabel=Em(void 0),this.bindValue=Em(void 0),this.appearance=Em(void 0),this.isOpen=Em(!1),this.items=Em([]),this.blurEvent=bi({alias:"blur"}),this.focusEvent=bi({alias:"focus"}),this.changeEvent=bi({alias:"change"}),this.openEvent=bi({alias:"open"}),this.closeEvent=bi({alias:"close"}),this.searchEvent=bi({alias:"search"}),this.clearEvent=bi({alias:"clear"}),this.addEvent=bi({alias:"add"}),this.removeEvent=bi({alias:"remove"}),this.scroll=bi({alias:"scroll"}),this.scrollToEnd=bi({alias:"scrollToEnd"}),this.disabled=Zt(()=>this.readonly()||this._disabled()),this.clearSearchOnAddValue=Zt(()=>Ji(this.clearSearchOnAdd())?this.clearSearchOnAdd():Ji(this.config.clearSearchOnAdd)?this.config.clearSearchOnAdd:this.closeOnSelect()),this.deselectOnClickValue=Zt(()=>Ji(this.deselectOnClick())?this.deselectOnClick():Ji(this.config.deselectOnClick)?this.config.deselectOnClick:this.multiple()),this.optionTemplate=fr(OC,{read:te}),this.optgroupTemplate=fr(RC,{read:te}),this.labelTemplate=fr(PC,{read:te}),this.multiLabelTemplate=fr(FC,{read:te}),this.headerTemplate=fr(NC,{read:te}),this.footerTemplate=fr(LC,{read:te}),this.notFoundTemplate=fr(VC,{read:te}),this.placeholderTemplate=fr(BC,{read:te}),this.typeToSearchTemplate=fr(jC,{read:te}),this.loadingTextTemplate=fr(HC,{read:te}),this.tagTemplate=fr(zC,{read:te}),this.loadingSpinnerTemplate=fr(UC,{read:te}),this.clearButtonTemplate=fr($C,{read:te}),this.ngOptions=r2(gz,{descendants:!0}),this.dropdownPanel=qn(Kt(()=>fI)),this.searchInput=qn("searchInput"),this.clearButton=qn("clearButton"),this.dropdownId=vz(),this.escapeHTML=!0,this.viewPortItems=[],this.tabFocusOnClear=he(!0),this.autoFocus=u(new Ii("autofocus"),{optional:!0}),this._defaultLabel="label",this._editableSearchTerm=Zt(()=>this.editableSearchTerm()&&!this.multiple()),this._injector=u(de),this._isComposing=!1,this._keyPress$=new z,this._pressedKeys=[],this._searchTerm=he(null),this._validTerm=Zt(()=>{let a=this._searchTerm()?.trim();return a&&a.length>=this.minTermLength()}),this.clearItem=a=>{let s=this.selectedItems.find(l=>l.value===a);this.unselect(s)},this.trackByOption=(a,s)=>this.trackByFn()?this.trackByFn()(s.value):s,this._onChange=a=>{},this._onTouched=()=>{};let i=this.config,r=u(Cz,{optional:!0}),o=u(q);this._mergeGlobalConfig(i),this.itemsList=new gI(this,r?r():xz()),this.element=o.nativeElement}get filtered(){return!!this.searchTerm&&this.searchable()||this._isComposing}get focused(){return this._focused}get searchTerm(){return this._searchTerm()}get selectedItems(){return this.itemsList.selectedItems}get selectedValues(){return this.selectedItems.map(i=>i.value)}get hasValue(){return this.selectedItems.length>0}get currentPanelPosition(){if(this.dropdownPanel())return this.dropdownPanel().currentPosition}get showAddTag(){if(!this._validTerm())return!1;let i=this.searchTerm.toLowerCase().trim();return this.addTag()&&!this.itemsList.filteredItems.some(r=>r.label.toLowerCase()===i)&&(!this.hideSelected()&&this.isOpen()||!this.selectedItems.some(r=>r.label.toLowerCase()===i))&&!this.loading()}ngOnInit(){this._handleKeyPresses(),this._setInputAttributes()}ngOnChanges(i){i.multiple&&this.itemsList.clearSelected(),i.items&&(this._itemsAreUsed=!0,this._setItems(i.items.currentValue||[])),i.isOpen&&(this._manualOpen=Ji(i.isOpen.currentValue)),i.groupBy&&(i.items||this._setItems([...this.items()])),i.inputAttrs&&this._setInputAttributes(),this._setTabFocusOnClear()}ngAfterViewInit(){this._itemsAreUsed||(this.escapeHTML=!1,this._setItemsFromNgOptions()),Ji(this.autoFocus)&&this.focus()}handleKeyDown(i){let r=i.key;if(Object.values(Ps).includes(r)){if(this.keyDownFn()(i)===!1)return;this.handleKeyCode(i)}else r&&r.length===1&&this._keyPress$.next(r.toLocaleLowerCase())}handleKeyCode(i){let r=i.target;this.clearButton()&&this.clearButton().nativeElement===r?this.handleKeyCodeClear(i):this.handleKeyCodeInput(i)}handleKeyCodeInput(i){switch(i.key){case Ps.ArrowDown:this._handleArrowDown(i);break;case Ps.ArrowUp:this._handleArrowUp(i);break;case Ps.Space:this._handleSpace(i);break;case Ps.Enter:this._handleEnter(i);break;case Ps.Tab:this._handleTab(i);break;case Ps.Esc:this.close(),i.preventDefault();break;case Ps.Backspace:this._handleBackspace();break}}handleKeyCodeClear(i){switch(i.key){case Ps.Enter:this.handleClearClick(),i.preventDefault();break}}handleMousedown(i){if(this.disabled())return;if(this.preventToggleOnRightClick()&&i.button===2)return!1;let r=i.target;if(r.tagName!=="INPUT"&&i.preventDefault(),!r.classList.contains("ng-clear-wrapper")){if(r.classList.contains("ng-arrow-wrapper")){this.handleArrowClick();return}r.classList.contains("ng-value-icon")||(this._focused||this.focus(),this.searchable()?this.open():this.toggle())}}handleArrowClick(){this.isOpen()?this.close():this.open()}handleClearClick(i){this.hasValue&&(this.itemsList.clearSelected(!0),this._updateNgModel()),this._clearSearch(),this.focus(),this.clearEvent.emit(),this._onSelectionChanged()}clearModel(){this.clearable()&&(this.itemsList.clearSelected(),this._updateNgModel())}writeValue(i){this.itemsList.clearSelected(),this._handleWriteValue(i),this._editableSearchTerm()&&this._setSearchTermFromItems(),this._cd.markForCheck()}registerOnChange(i){this._onChange=i}registerOnTouched(i){this._onTouched=i}setDisabledState(i){this._disabled.set(i),this._cd.markForCheck()}toggle(){this.isOpen()?this.close():this.open()}open(){this.disabled()||this.isOpen()||this._manualOpen||!this.typeahead()?.observed&&!this.addTag()&&this.itemsList.noItemsToSelect||(this.isOpen.set(!0),this.itemsList.markSelectedOrDefault(this.markFirst()),this.openEvent.emit(),this.searchTerm||this.focus(),this.detectChanges())}close(){!this.isOpen()||this._manualOpen||(this.isOpen.set(!1),this._isComposing=!1,this._editableSearchTerm()?this.itemsList.resetFilteredItems():this._clearSearch(),this.itemsList.unmarkItem(),this._onTouched(),this.closeEvent.emit(),this._cd.markForCheck())}toggleItem(i){!i||i.disabled||this.disabled()||(this.deselectOnClickValue()&&i.selected?this.unselect(i):this.select(i),this._editableSearchTerm()&&this._setSearchTermFromItems())}select(i){i.selected||(this.itemsList.select(i),this.clearSearchOnAddValue()&&!this._editableSearchTerm()&&this._clearSearch(),this._updateNgModel(),this.multiple()&&this.addEvent.emit(i.value)),(this.closeOnSelect()||this.itemsList.noItemsToSelect)&&this.close(),this._onSelectionChanged()}focus(){this.searchInput().nativeElement.focus()}blur(){this.searchInput().nativeElement.blur()}unselect(i){i&&(this.itemsList.unselect(i),this.focus(),this._updateNgModel(),this.removeEvent.emit(i.value),this._onSelectionChanged())}selectTag(){let i;AC(this.addTag())?i=this.addTag()(this.searchTerm):i=this._primitive?this.searchTerm:{[this.bindLabel()]:this.searchTerm};let r=o=>this.typeahead()?.observed||!this.isOpen()?this.itemsList.mapItem(o,null):this.itemsList.addItem(o);ume(i)?i.then(o=>this.select(r(o))).catch(()=>{}):i&&this.select(r(i))}showClear(){return this.clearable()&&(this.hasValue||this.searchTerm)&&!this.disabled()}focusOnClear(){this.blur(),this.clearButton()&&this.clearButton().nativeElement.focus()}showNoItemsFound(){let i=this.itemsList.filteredItems.length===0;return(i&&!this.typeahead()?.observed&&!this.loading()||i&&this.typeahead()?.observed&&this._validTerm()&&!this.loading())&&!this.showAddTag}showTypeToSearch(){return this.itemsList.filteredItems.length===0&&this.typeahead()?.observed&&!this._validTerm()&&!this.loading()}onCompositionStart(){this._isComposing=!0}onCompositionEnd(i){this._isComposing=!1,!this.searchWhileComposing()&&this.filter(i)}filter(i){this._isComposing&&!this.searchWhileComposing()||(this._searchTerm.set(i),this.typeahead()?.observed&&(this._validTerm()||this.minTermLength()===0)&&this.typeahead().next(i),this.typeahead()?.observed||(this.itemsList.filter(i),this.isOpen()&&this.itemsList.markSelectedOrDefault(this.markFirst())),this.searchEvent.emit({term:i,items:this.itemsList.filteredItems.map(r=>r.value)}),this.open())}onInputFocus(i){this._focused||(this._editableSearchTerm()&&this._setSearchTermFromItems(),this.element.classList.add("ng-select-focused"),this.focusEvent.emit(i),this._focused=!0)}onInputBlur(i){this.element.classList.remove("ng-select-focused"),this.blurEvent.emit(i),!this.isOpen()&&!this.disabled()&&this._onTouched(),this._editableSearchTerm()&&this._setSearchTermFromItems(),this._focused=!1}onItemHover(i){i.disabled||this.itemsList.markItem(i)}detectChanges(){this._cd.destroyed||this._cd.detectChanges()}_setSearchTermFromItems(){let i=this.selectedItems?.[0];this._searchTerm.set(i?.label??null)}_setItems(i){let r=i[0];this.bindLabel.set(this.bindLabel()||this._defaultLabel),this._primitive=Ji(r)?!Su(r):this._primitive||this.bindLabel()===this._defaultLabel,this.itemsList.setItems(i),i.length>0&&this.hasValue&&this.itemsList.mapSelectedItems(),this.isOpen()&&Ji(this.searchTerm)&&!this.typeahead()?.observed&&this.itemsList.filter(this.searchTerm),(this.typeahead()?.observed||this.isOpen())&&this.itemsList.markSelectedOrDefault(this.markFirst())}_setItemsFromNgOptions(){Ar(()=>{let i=this.ngOptions();this.bindLabel.set(this._defaultLabel);let r=i.map(o=>({$ngOptionValue:o.value(),$ngOptionLabel:o.elementRef.nativeElement.innerHTML,disabled:o.disabled()}))??[];this.items.set(r),this.itemsList.setItems(r),this.hasValue&&this.itemsList.mapSelectedItems(),this._cd.detectChanges(),i.map(o=>({option:o,item:this.itemsList.findItem(o.value())})).filter(({item:o})=>Ji(o)).forEach(({option:o,item:a})=>{a.disabled=o.disabled(),a.label=o.label()||a.label})},{injector:this._injector})}_isValidWriteValue(i){if(!Ji(i)||this.multiple()&&i===""||Array.isArray(i)&&i.length===0)return!1;let r=o=>!Ji(this.compareWith())&&Su(o)&&this.bindValue()?(this._console.warn(`Setting object(${JSON.stringify(o)}) as your model with bindValue is not allowed unless [compareWith] is used.`),!1):!0;return this.multiple()?Array.isArray(i)?i.every(o=>r(o)):(this._console.warn("Multiple select ngModel should be array."),!1):r(i)}_handleWriteValue(i){if(!this._isValidWriteValue(i))return;let r=o=>{let a=this.itemsList.findItem(o);if(a)this.itemsList.select(a);else{let s=Su(o),l=!s&&!this.bindValue();s||l?this.itemsList.select(this.itemsList.mapItem(o,null)):this.bindValue()&&(a={[this.bindLabel()]:null,[this.bindValue()]:o},this.itemsList.select(this.itemsList.mapItem(a,null)))}};this.multiple()?i.forEach(o=>r(o)):r(i)}_handleKeyPresses(){this.searchable()||this._keyPress$.pipe(ku(this._destroyRef),Be(i=>this._pressedKeys.push(i)),Rt(200),ce(()=>this._pressedKeys.length>0),se(()=>this._pressedKeys.join(""))).subscribe(i=>{let r=this.itemsList.findByLabel(i);r&&(this.isOpen()?(this.itemsList.markItem(r),this._scrollToMarked(),this._cd.markForCheck()):this.select(r)),this._pressedKeys=[]})}_setInputAttributes(){let i=this.searchInput().nativeElement,r=M({type:"text",autocorrect:"off",autocapitalize:"off",autocomplete:"off","aria-controls":this.dropdownId},this.inputAttrs());for(let o of Object.keys(r))i.setAttribute(o,r[o])}_setTabFocusOnClear(){this.tabFocusOnClear.set(Ji(this.tabFocusOnClearButton())?!!this.tabFocusOnClearButton():this.config.tabFocusOnClear)}_updateNgModel(){let i=[];for(let o of this.selectedItems)if(this.bindValue()){let a=null;if(o.children){let s=this.groupValue()?this.bindValue():this.groupBy();a=o.value[s||this.groupBy()]}else a=this.itemsList.resolveNested(o.value,this.bindValue());i.push(a)}else i.push(o.value);let r=this.selectedItems.map(o=>o.value);this.multiple()?(this._onChange(i),this.changeEvent.emit(r)):(this._onChange(Ji(i[0])?i[0]:null),this.changeEvent.emit(r[0])),this._cd.markForCheck()}_clearSearch(){this.searchTerm&&(this._changeSearch(null),this.itemsList.resetFilteredItems())}_changeSearch(i){this._searchTerm.set(i),this.typeahead()?.observed&&this.typeahead().next(i)}_scrollToMarked(){!this.isOpen()||!this.dropdownPanel()||this.dropdownPanel().scrollTo(this.itemsList.markedItem)}_scrollToTag(){!this.isOpen()||!this.dropdownPanel()||this.dropdownPanel().scrollToTag()}_onSelectionChanged(){let i=this.appendTo()??this.config.appendTo;this.isOpen()&&this.deselectOnClickValue()&&i&&(this._cd.detectChanges(),this.dropdownPanel().adjustPosition())}_handleTab(i){if(this.isOpen()===!1){if(this.showClear()&&!i.shiftKey&&this.tabFocusOnClear())this.focusOnClear(),i.preventDefault();else if(!this.addTag())return}this.selectOnTab()?this.itemsList.markedItem?(this.toggleItem(this.itemsList.markedItem),i.preventDefault()):this.showAddTag?(this.selectTag(),i.preventDefault()):this.close():this.close()}_handleEnter(i){let r=this.openOnEnter()??this.config.openOnEnter;if(this.isOpen()||this._manualOpen)this.itemsList.markedItem?this.toggleItem(this.itemsList.markedItem):this.showAddTag&&this.selectTag();else if(r)this.open();else return;i.preventDefault()}_handleSpace(i){this.isOpen()||this._manualOpen||(this.open(),i.preventDefault())}_handleArrowDown(i){this._nextItemIsTag(1)?(this.itemsList.unmarkItem(),this._scrollToTag()):(this.itemsList.markNextItem(),this._scrollToMarked()),this.open(),i.preventDefault()}_handleArrowUp(i){this.isOpen()&&(this._nextItemIsTag(-1)?(this.itemsList.unmarkItem(),this._scrollToTag()):(this.itemsList.markPreviousItem(),this._scrollToMarked()),i.preventDefault())}_nextItemIsTag(i){let r=this.itemsList.markedIndex+i;return this.addTag()&&this.searchTerm&&this.itemsList.markedItem&&(r<0||r===this.itemsList.filteredItems.length)}_handleBackspace(){this.searchTerm||!this.clearable()||!this.clearOnBackspace()||!this.hasValue||(this.multiple()?this.unselect(this.itemsList.lastSelectedItem):this.clearModel())}_mergeGlobalConfig(i){this.bindValue.set(this.bindValue()||i.bindValue),this.bindLabel.set(this.bindLabel()||i.bindLabel),this.appearance.set(this.appearance()||i.appearance),this._setTabFocusOnClear()}getVirtualScroll(i){return Ji(this.virtualScroll)?this.virtualScroll():this.isVirtualScrollDisabled(i)}isVirtualScrollDisabled(i){return Ji(i.disableVirtualScroll)?!i.disableVirtualScroll:!1}};n.\u0275fac=function(r){return new(r||n)},n.\u0275cmp=E({type:n,selectors:[["ng-select"]],contentQueries:function(r,o,a){r&1&&(Rn(a,o.optionTemplate,OC,5,te),Rn(a,o.optgroupTemplate,RC,5,te),Rn(a,o.labelTemplate,PC,5,te),Rn(a,o.multiLabelTemplate,FC,5,te),Rn(a,o.headerTemplate,NC,5,te),Rn(a,o.footerTemplate,LC,5,te),Rn(a,o.notFoundTemplate,VC,5,te),Rn(a,o.placeholderTemplate,BC,5,te),Rn(a,o.typeToSearchTemplate,jC,5,te),Rn(a,o.loadingTextTemplate,HC,5,te),Rn(a,o.tagTemplate,zC,5,te),Rn(a,o.loadingSpinnerTemplate,UC,5,te),Rn(a,o.clearButtonTemplate,$C,5,te),Rn(a,o.ngOptions,gz,5)),r&2&&Ho(14)},viewQuery:function(r,o){r&1&&(Pn(o.dropdownPanel,fI,5),Pn(o.searchInput,Eue,5),Pn(o.clearButton,Mue,5)),r&2&&Ho(3)},hostVars:20,hostBindings:function(r,o){r&1&&S("keydown",function(s){return o.handleKeyDown(s)}),r&2&&G("ng-select",!0)("ng-select-single",!o.multiple())("ng-select-typeahead",o.typeahead())("ng-select-multiple",o.multiple())("ng-select-taggable",o.addTag())("ng-select-searchable",o.searchable())("ng-select-clearable",o.clearable())("ng-select-opened",o.isOpen())("ng-select-filtered",o.filtered)("ng-select-disabled",o.disabled())},inputs:{ariaLabelDropdown:[1,"ariaLabelDropdown"],ariaLabel:[1,"ariaLabel"],markFirst:[1,"markFirst"],placeholder:[1,"placeholder"],fixedPlaceholder:[1,"fixedPlaceholder"],notFoundText:[1,"notFoundText"],typeToSearchText:[1,"typeToSearchText"],preventToggleOnRightClick:[1,"preventToggleOnRightClick"],addTagText:[1,"addTagText"],loadingText:[1,"loadingText"],clearAllText:[1,"clearAllText"],dropdownPosition:[1,"dropdownPosition"],appendTo:[1,"appendTo"],outsideClickEvent:[1,"outsideClickEvent"],loading:[1,"loading"],closeOnSelect:[1,"closeOnSelect"],hideSelected:[1,"hideSelected"],selectOnTab:[1,"selectOnTab"],openOnEnter:[1,"openOnEnter"],maxSelectedItems:[1,"maxSelectedItems"],groupBy:[1,"groupBy"],groupValue:[1,"groupValue"],bufferAmount:[1,"bufferAmount"],virtualScroll:[1,"virtualScroll"],selectableGroup:[1,"selectableGroup"],tabFocusOnClearButton:[1,"tabFocusOnClearButton"],selectableGroupAsModel:[1,"selectableGroupAsModel"],searchFn:[1,"searchFn"],trackByFn:[1,"trackByFn"],clearOnBackspace:[1,"clearOnBackspace"],labelForId:[1,"labelForId"],inputAttrs:[1,"inputAttrs"],tabIndex:[1,"tabIndex"],readonly:[1,"readonly"],searchWhileComposing:[1,"searchWhileComposing"],minTermLength:[1,"minTermLength"],editableSearchTerm:[1,"editableSearchTerm"],ngClass:[1,"ngClass"],typeahead:[1,"typeahead"],multiple:[1,"multiple"],addTag:[1,"addTag"],searchable:[1,"searchable"],clearable:[1,"clearable"],deselectOnClick:[1,"deselectOnClick"],clearSearchOnAdd:[1,"clearSearchOnAdd"],compareWith:[1,"compareWith"],keyDownFn:[1,"keyDownFn"],bindLabel:[1,"bindLabel"],bindValue:[1,"bindValue"],appearance:[1,"appearance"],isOpen:[1,"isOpen"],items:[1,"items"]},outputs:{bindLabel:"bindLabelChange",bindValue:"bindValueChange",appearance:"appearanceChange",isOpen:"isOpenChange",items:"itemsChange",blurEvent:"blur",focusEvent:"focus",changeEvent:"change",openEvent:"open",closeEvent:"close",searchEvent:"search",clearEvent:"clear",addEvent:"add",removeEvent:"remove",scroll:"scroll",scrollToEnd:"scrollToEnd"},exportAs:["ngSelect"],features:[Ce([{provide:tr,useExisting:Kt(()=>n),multi:!0},yz]),Ae],decls:15,vars:20,consts:[["searchInput",""],["defaultPlaceholderTemplate",""],["defaultLabelTemplate",""],["defaultLoadingSpinnerTemplate",""],["clearButton",""],["defaultOptionTemplate",""],["defaultTagTemplate",""],["defaultNotFoundTemplate",""],["defaultTypeToSearchTemplate",""],["defaultLoadingTextTemplate",""],[1,"ng-select-container",3,"mousedown"],[1,"ng-value-container"],[3,"ngTemplateOutlet","ngTemplateOutletContext"],[1,"ng-input"],["aria-autocomplete","list","role","combobox",3,"blur","change","compositionend","compositionstart","focus","input","disabled","readOnly","value"],[1,"ng-arrow-wrapper"],[1,"ng-arrow"],[1,"ng-dropdown-panel",3,"virtualScroll","bufferAmount","appendTo","position","outsideClickEvent","headerTemplate","footerTemplate","filterValue","items","showAddTag","markedItem","ng-select-multiple","class","id","ariaLabelDropdown"],["aria-atomic","true","aria-live","polite","role","status",1,"ng-visually-hidden"],[3,"ngTemplateOutlet"],[1,"ng-placeholder"],[1,"ng-value",3,"ng-value-disabled"],[1,"ng-value"],["aria-hidden","true",1,"ng-value-icon","left",3,"click"],[1,"ng-value-label",3,"ngItemLabel","escape"],[1,"ng-spinner-loader"],["role","button","tabindex","0",1,"ng-clear-wrapper",3,"title"],["role","button","tabindex","0",1,"ng-clear-wrapper",3,"click","title"],["aria-hidden","true",1,"ng-clear"],[1,"ng-dropdown-panel",3,"update","scroll","scrollToEnd","outsideClick","virtualScroll","bufferAmount","appendTo","position","outsideClickEvent","headerTemplate","footerTemplate","filterValue","items","showAddTag","markedItem","id","ariaLabelDropdown"],[1,"ng-option",3,"ng-option-disabled","ng-option-selected","ng-optgroup","ng-option","ng-option-child","ng-option-marked"],["role","option",1,"ng-option",3,"ng-option-marked"],[1,"ng-option",3,"click","mouseover"],[1,"ng-option-label",3,"ngItemLabel","escape"],["role","option",1,"ng-option",3,"mouseover","click"],[1,"ng-tag-label"],[1,"ng-option","ng-option-disabled"]],template:function(r,o){if(r&1){let a=Y();h(0,"div",10),S("mousedown",function(l){return I(a),A(o.handleMousedown(l))}),h(1,"div",11),N(2,Oue,3,1),N(3,Nue,2,0),N(4,Vue,1,5,null,12),h(5,"div",13)(6,"input",14,0),S("blur",function(l){return I(a),A(o.onInputBlur(l))})("change",function(l){return I(a),A(l.stopPropagation())})("compositionend",function(){I(a);let l=Se(7);return A(o.onCompositionEnd(l.value))})("compositionstart",function(){return I(a),A(o.onCompositionStart())})("focus",function(l){return I(a),A(o.onInputFocus(l))})("input",function(){I(a);let l=Se(7);return A(o.filter(l.value))}),p()()(),N(8,Hue,3,1),N(9,$ue,2,1),h(10,"span",15),k(11,"span",16),p()(),N(12,ame,8,21,"ng-dropdown-panel",17),h(13,"div",18),N(14,sme,1,1),p()}r&2&&(G("ng-appearance-outline",o.appearance()==="outline")("ng-has-value",o.hasValue),g(2),L(o.selectedItems.length===0&&!o.searchTerm||(o.fixedPlaceholder()??o.config.fixedPlaceholder)?2:-1),g(),L((!o.multiLabelTemplate()||!o.multiple())&&o.selectedItems.length>0?3:-1),g(),L(o.multiple()&&o.multiLabelTemplate()&&o.selectedValues.length>0?4:-1),g(2),y("disabled",o.disabled())("readOnly",!o.searchable()||o.itemsList.maxItemsSelected)("value",o.searchTerm??""),X("aria-activedescendant",o.isOpen()?o.itemsList==null||o.itemsList.markedItem==null?null:o.itemsList.markedItem.htmlId:null)("aria-controls",o.isOpen()?o.dropdownId:null)("aria-expanded",o.isOpen())("aria-label",o.ariaLabel())("id",o.labelForId())("tabindex",o.tabIndex()),g(2),L(o.loading()?8:-1),g(),L(o.showClear()?9:-1),g(3),L(o.isOpen()?12:-1),g(2),L(o.isOpen()&&o.showNoItemsFound()?14:-1))},dependencies:[Fn,mme,fI],styles:[`@charset "UTF-8";.ng-select{position:relative;display:block;-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box}.ng-select div,.ng-select input,.ng-select span{-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box}.ng-select [hidden]{display:none}.ng-select.ng-select-searchable .ng-select-container .ng-value-container .ng-input{opacity:1}.ng-select.ng-select-opened .ng-select-container{z-index:1001}.ng-select.ng-select-disabled .ng-select-container .ng-value-container .ng-placeholder,.ng-select.ng-select-disabled .ng-select-container .ng-value-container .ng-value{-webkit-user-select:none;user-select:none;cursor:default}.ng-select.ng-select-disabled .ng-arrow-wrapper{cursor:default}.ng-select.ng-select-filtered .ng-placeholder{display:none}.ng-select .ng-select-container{cursor:default;display:flex;outline:none;overflow:hidden;position:relative;width:100%}.ng-select .ng-select-container .ng-value-container{display:flex;flex:1}.ng-select .ng-select-container .ng-value-container .ng-input{opacity:0}.ng-select .ng-select-container .ng-value-container .ng-input>input{box-sizing:content-box;background:none transparent;border:0 none;box-shadow:none;outline:none;padding:0;cursor:default;width:100%}.ng-select .ng-select-container .ng-value-container .ng-input>input::-ms-clear{display:none}.ng-select .ng-select-container .ng-value-container .ng-input>input[readonly]{-webkit-user-select:unset;user-select:unset;width:0;padding:0}.ng-select.ng-select-single.ng-select-filtered .ng-select-container .ng-value-container .ng-value{visibility:hidden}.ng-select.ng-select-single .ng-select-container .ng-value-container,.ng-select.ng-select-single .ng-select-container .ng-value-container .ng-value{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.ng-select.ng-select-single .ng-select-container .ng-value-container .ng-value .ng-value-icon{display:none}.ng-select.ng-select-single .ng-select-container .ng-value-container .ng-input{position:absolute;left:0;width:100%}.ng-select.ng-select-multiple.ng-select-disabled>.ng-select-container .ng-value-container .ng-value .ng-value-icon{display:none}.ng-select.ng-select-multiple .ng-select-container .ng-value-container{flex-wrap:wrap}.ng-select.ng-select-multiple .ng-select-container .ng-value-container .ng-placeholder{position:absolute}.ng-select.ng-select-multiple .ng-select-container .ng-value-container .ng-value{white-space:nowrap}.ng-select.ng-select-multiple .ng-select-container .ng-value-container .ng-value.ng-value-disabled .ng-value-icon{display:none}.ng-select.ng-select-multiple .ng-select-container .ng-value-container .ng-value .ng-value-icon{cursor:pointer}.ng-select.ng-select-multiple .ng-select-container .ng-value-container .ng-input{flex:1;z-index:2}.ng-select.ng-select-multiple .ng-select-container .ng-value-container .ng-placeholder{z-index:1}.ng-select .ng-clear-wrapper{cursor:pointer;position:relative;width:17px;-webkit-user-select:none;user-select:none}.ng-select .ng-clear-wrapper .ng-clear{display:inline-block;font-size:18px;line-height:1;pointer-events:none}.ng-select .ng-spinner-loader{border-radius:50%;width:17px;height:17px;margin-right:5px;font-size:10px;position:relative;text-indent:-9999em;border-top:2px solid rgba(66,66,66,.2);border-right:2px solid rgba(66,66,66,.2);border-bottom:2px solid rgba(66,66,66,.2);border-left:2px solid #424242;transform:translateZ(0);animation:load8 .8s infinite linear}.ng-select .ng-spinner-loader:after{border-radius:50%;width:17px;height:17px}@-webkit-keyframes load8{0%{-webkit-transform:rotate(0deg);transform:rotate(0)}to{-webkit-transform:rotate(360deg);transform:rotate(360deg)}}@keyframes load8{0%{-webkit-transform:rotate(0deg);transform:rotate(0)}to{-webkit-transform:rotate(360deg);transform:rotate(360deg)}}.ng-select .ng-arrow-wrapper{cursor:pointer;position:relative;text-align:center;-webkit-user-select:none;user-select:none}.ng-select .ng-arrow-wrapper .ng-arrow{pointer-events:none;display:inline-block;height:0;width:0;position:relative}.ng-dropdown-panel{box-sizing:border-box;position:absolute;opacity:0;width:100%;z-index:1050;-webkit-overflow-scrolling:touch}.ng-dropdown-panel .ng-dropdown-panel-items{display:block;height:auto;-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box;max-height:240px;overflow-y:auto}.ng-dropdown-panel .ng-dropdown-panel-items .ng-optgroup{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.ng-dropdown-panel .ng-dropdown-panel-items .ng-option{box-sizing:border-box;cursor:pointer;display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.ng-dropdown-panel .ng-dropdown-panel-items .ng-option .ng-option-label:empty:before{content:"\\200b"}.ng-dropdown-panel .ng-dropdown-panel-items .ng-option .highlighted{font-weight:700;text-decoration:underline}.ng-dropdown-panel .ng-dropdown-panel-items .ng-option.disabled{cursor:default}.ng-dropdown-panel .scroll-host{overflow:hidden;overflow-y:auto;position:relative;display:block;-webkit-overflow-scrolling:touch}.ng-dropdown-panel .scrollable-content{top:0;left:0;width:100%;height:100%;position:absolute}.ng-dropdown-panel .total-padding{width:1px;opacity:0}.ng-visually-hidden{position:absolute!important;width:1px;height:1px;margin:-1px;padding:0;overflow:hidden;clip:rect(0 0 0 0);border:0;white-space:nowrap} -`],encapsulation:2,changeDetection:0});let t=n;return t})(),bI=(()=>{let n=class n{};n.\u0275fac=function(r){return new(r||n)},n.\u0275mod=ee({type:n}),n.\u0275inj=J({providers:_me()});let t=n;return t})();function _me(){return[{provide:Cz,useValue:xz}]}var vme=["*"],yme=["ngSelect"],xme=()=>({standalone:!0}),Ez=(t,n,e,i)=>({item:t,item$:n,index:e,searchTerm:i}),Cme=(t,n,e)=>({item:t,clear:n,label:e}),wme=(t,n)=>({items:t,clear:n}),vI=t=>({searchTerm:t});function Dme(t,n){}function Eme(t,n){if(t&1&&R(0,Dme,0,0,"ng-template",15),t&2){let e=n.item,i=n.item$,r=n.index,o=n.searchTerm,a=C(2);y("ngTemplateOutlet",a.optionTemplate)("ngTemplateOutletContext",wm(2,Ez,e,i,r,o))}}function Mme(t,n){t&1&&R(0,Eme,1,7,"ng-template",2)}function kme(t,n){}function Sme(t,n){if(t&1&&R(0,kme,0,0,"ng-template",15),t&2){let e=n.item,i=n.item$,r=n.index,o=n.searchTerm,a=C(2);y("ngTemplateOutlet",a.optgroupTemplate)("ngTemplateOutletContext",wm(2,Ez,e,i,r,o))}}function Tme(t,n){t&1&&R(0,Sme,1,7,"ng-template",3)}function Ime(t,n){}function Ame(t,n){if(t&1&&R(0,Ime,0,0,"ng-template",15),t&2){let e=n.item,i=n.clear,r=n.label,o=C(2);y("ngTemplateOutlet",o.labelTemplate)("ngTemplateOutletContext",Rd(2,Cme,e,i,r))}}function Ome(t,n){t&1&&R(0,Ame,1,6,"ng-template",4)}function Rme(t,n){}function Pme(t,n){if(t&1&&R(0,Rme,0,0,"ng-template",15),t&2){let e=n.items,i=n.clear,r=C(2);y("ngTemplateOutlet",r.multiLabelTemplate)("ngTemplateOutletContext",wa(2,wme,e,i))}}function Fme(t,n){t&1&&R(0,Pme,1,5,"ng-template",5)}function Nme(t,n){}function Lme(t,n){if(t&1&&R(0,Nme,0,0,"ng-template",16),t&2){let e=C(2);y("ngTemplateOutlet",e.headerTemplate)}}function Vme(t,n){t&1&&R(0,Lme,1,1,"ng-template",6)}function Bme(t,n){}function jme(t,n){if(t&1&&R(0,Bme,0,0,"ng-template",16),t&2){let e=C(2);y("ngTemplateOutlet",e.footerTemplate)}}function Hme(t,n){t&1&&R(0,jme,1,1,"ng-template",7)}function zme(t,n){}function Ume(t,n){if(t&1&&R(0,zme,0,0,"ng-template",15),t&2){let e=n.searchTerm,i=C(2);y("ngTemplateOutlet",i.notFoundTemplate)("ngTemplateOutletContext",Pt(2,vI,e))}}function $me(t,n){t&1&&R(0,Ume,1,4,"ng-template",8)}function Wme(t,n){}function Gme(t,n){if(t&1&&R(0,Wme,0,0,"ng-template",16),t&2){let e=C(2);y("ngTemplateOutlet",e.typeToSearchTemplate)}}function qme(t,n){t&1&&R(0,Gme,1,1,"ng-template",9)}function Yme(t,n){}function Qme(t,n){if(t&1&&R(0,Yme,0,0,"ng-template",15),t&2){let e=n.searchTerm,i=C(2);y("ngTemplateOutlet",i.loadingTextTemplate)("ngTemplateOutletContext",Pt(2,vI,e))}}function Kme(t,n){t&1&&R(0,Qme,1,4,"ng-template",10)}function Zme(t,n){}function Xme(t,n){if(t&1&&R(0,Zme,0,0,"ng-template",15),t&2){let e=n.searchTerm,i=C(2);y("ngTemplateOutlet",i.tagTemplate)("ngTemplateOutletContext",Pt(2,vI,e))}}function Jme(t,n){t&1&&R(0,Xme,1,4,"ng-template",11)}function ehe(t,n){}function the(t,n){if(t&1&&R(0,ehe,0,0,"ng-template",16),t&2){let e=C(2);y("ngTemplateOutlet",e.loadingSpinnerTemplate)}}function ihe(t,n){t&1&&R(0,the,1,1,"ng-template",12)}function nhe(t,n){}function rhe(t,n){if(t&1&&R(0,nhe,0,0,"ng-template",16),t&2){let e=C(2);y("ngTemplateOutlet",e.placeholderTemplate)}}function ohe(t,n){t&1&&R(0,rhe,1,1,"ng-template",13)}function ahe(t,n){}function she(t,n){if(t&1&&R(0,ahe,0,0,"ng-template",16),t&2){let e=C(2);y("ngTemplateOutlet",e.clearbuttonTemplate)}}function lhe(t,n){t&1&&R(0,she,1,1,"ng-template",14)}var che=(()=>{let n=class n{constructor(){this.elementRef=u(q),this.disabled=!1,this.stateChange$=new z}get label(){return(this.elementRef.nativeElement.textContent||"").trim()}ngOnChanges(i){i.disabled&&this.stateChange$.next({value:this.value,disabled:this.disabled})}ngAfterViewChecked(){this.label!==this._previousLabel&&(this._previousLabel=this.label,this.stateChange$.next({value:this.value,disabled:this.disabled,label:this.elementRef.nativeElement.innerHTML}))}ngOnDestroy(){this.stateChange$.complete()}};n.\u0275fac=function(r){return new(r||n)},n.\u0275cmp=E({type:n,selectors:[["mtx-option"]],inputs:{value:"value",disabled:[2,"disabled","disabled",V]},exportAs:["mtxOption"],features:[Ae],ngContentSelectors:vme,decls:1,vars:0,template:function(r,o){r&1&&(Me(),oe(0))},encapsulation:2,changeDetection:0});let t=n;return t})(),dhe=(()=>{let n=class n{constructor(){this._defaultOptions=u(Mz,{optional:!0}),this.changes=new z,this.placeholder=this._defaultOptions?.placeholder,this.notFoundText=this._defaultOptions?.notFoundText??"No items found",this.typeToSearchText=this._defaultOptions?.typeToSearchText??"Type to search",this.addTagText=this._defaultOptions?.addTagText??"Add item",this.loadingText=this._defaultOptions?.loadingText??"Loading...",this.clearAllText=this._defaultOptions?.clearAllText??"Clear all"}};n.\u0275fac=function(r){return new(r||n)},n.\u0275prov=O({token:n,factory:n.\u0275fac,providedIn:"root"});let t=n;return t})(),uhe=(()=>{let n=class n{constructor(){this.template=u(te)}};n.\u0275fac=function(r){return new(r||n)},n.\u0275dir=F({type:n,selectors:[["","ng-option-tmp",""]]});let t=n;return t})(),mhe=(()=>{let n=class n{constructor(){this.template=u(te)}};n.\u0275fac=function(r){return new(r||n)},n.\u0275dir=F({type:n,selectors:[["","ng-optgroup-tmp",""]]});let t=n;return t})(),hhe=(()=>{let n=class n{constructor(){this.template=u(te)}};n.\u0275fac=function(r){return new(r||n)},n.\u0275dir=F({type:n,selectors:[["","ng-label-tmp",""]]});let t=n;return t})(),phe=(()=>{let n=class n{constructor(){this.template=u(te)}};n.\u0275fac=function(r){return new(r||n)},n.\u0275dir=F({type:n,selectors:[["","ng-multi-label-tmp",""]]});let t=n;return t})(),fhe=(()=>{let n=class n{constructor(){this.template=u(te)}};n.\u0275fac=function(r){return new(r||n)},n.\u0275dir=F({type:n,selectors:[["","ng-header-tmp",""]]});let t=n;return t})(),ghe=(()=>{let n=class n{constructor(){this.template=u(te)}};n.\u0275fac=function(r){return new(r||n)},n.\u0275dir=F({type:n,selectors:[["","ng-footer-tmp",""]]});let t=n;return t})(),_he=(()=>{let n=class n{constructor(){this.template=u(te)}};n.\u0275fac=function(r){return new(r||n)},n.\u0275dir=F({type:n,selectors:[["","ng-notfound-tmp",""]]});let t=n;return t})(),bhe=(()=>{let n=class n{constructor(){this.template=u(te)}};n.\u0275fac=function(r){return new(r||n)},n.\u0275dir=F({type:n,selectors:[["","ng-typetosearch-tmp",""]]});let t=n;return t})(),vhe=(()=>{let n=class n{constructor(){this.template=u(te)}};n.\u0275fac=function(r){return new(r||n)},n.\u0275dir=F({type:n,selectors:[["","ng-loadingtext-tmp",""]]});let t=n;return t})(),yhe=(()=>{let n=class n{constructor(){this.template=u(te)}};n.\u0275fac=function(r){return new(r||n)},n.\u0275dir=F({type:n,selectors:[["","ng-tag-tmp",""]]});let t=n;return t})(),xhe=(()=>{let n=class n{constructor(){this.template=u(te)}};n.\u0275fac=function(r){return new(r||n)},n.\u0275dir=F({type:n,selectors:[["","ng-loadingspinner-tmp",""]]});let t=n;return t})(),Che=(()=>{let n=class n{constructor(){this.template=u(te)}};n.\u0275fac=function(r){return new(r||n)},n.\u0275dir=F({type:n,selectors:[["","ng-placeholder-tmp",""]]});let t=n;return t})(),whe=(()=>{let n=class n{constructor(){this.template=u(te)}};n.\u0275fac=function(r){return new(r||n)},n.\u0275dir=F({type:n,selectors:[["","ng-clearbutton-tmp",""]]});let t=n;return t})(),Mz=new T("mtx-select-default-options"),Dz=0,yI=(()=>{let n=class n{get clearSearchOnAdd(){return this._clearSearchOnAdd??this.closeOnSelect}set clearSearchOnAdd(i){this._clearSearchOnAdd=i}get items(){return this._items}set items(i){this._itemsAreUsed=!0,this._items=i}get value(){return this._value}set value(i){this._assignValue(i)&&this._onChange(i)}get id(){return this._id}set id(i){this._id=i||this._uid,this.stateChanges.next()}get placeholder(){return this._placeholder}set placeholder(i){this._placeholder=i,this.stateChanges.next()}get focused(){return this._focused}get empty(){return this.value==null||Array.isArray(this.value)&&this.value.length===0}get shouldLabelFloat(){return this.focused||!this.empty}get required(){return this._required??this.ngControl?.control?.hasValidator(Le.required)??!1}set required(i){this._required=i,this.stateChanges.next()}get errorStateMatcher(){return this._errorStateTracker.matcher}set errorStateMatcher(i){this._errorStateTracker.matcher=i}get panelOpen(){return!!this.ngSelect.isOpen}get errorState(){return this._errorStateTracker.errorState}set errorState(i){this._errorStateTracker.errorState=i}constructor(){this._intl=u(dhe),this._changeDetectorRef=u(ye),this._elementRef=u(q),this._focusMonitor=u(Yt),this.ngControl=u(Hn,{optional:!0,self:!0}),this._parentFormField=u(Xo,{optional:!0}),this._defaultOptions=u(Mz,{optional:!0}),this._document=u(ge),this.addTag=!1,this.appearance="underline",this.appendTo=this._defaultOptions?.appendTo??"body",this.bindLabel=this._defaultOptions?.bindLabel,this.bindValue=this._defaultOptions?.bindValue,this.closeOnSelect=!0,this.clearable=!0,this.clearOnBackspace=!0,this.dropdownPosition="auto",this.bufferAmount=4,this.selectableGroup=!1,this.selectableGroupAsModel=!0,this.hideSelected=!1,this.loading=!1,this.labelForId=null,this.markFirst=!0,this.multiple=!1,this.searchable=!0,this.readonly=!1,this.searchFn=null,this.searchWhileComposing=!0,this.selectOnTab=!1,this.trackByFn=null,this.inputAttrs={},this.openOnEnter=this._defaultOptions?.openOnEnter??!0,this.minTermLength=0,this.editableSearchTerm=!1,this.keyDownFn=l=>!0,this.virtualScroll=this._defaultOptions?.virtualScroll??!1,this.fixedPlaceholder=this._defaultOptions?.fixedPlaceholder??!1,this.deselectOnClick=this._defaultOptions?.deselectOnClick??!1,this.blurEvent=new U,this.focusEvent=new U,this.changeEvent=new U,this.openEvent=new U,this.closeEvent=new U,this.searchEvent=new U,this.clearEvent=new U,this.addEvent=new U,this.removeEvent=new U,this.scroll=new U,this.scrollToEnd=new U,this._clearSearchOnAdd=this._defaultOptions?.clearSearchOnAdd,this._items=[],this._itemsAreUsed=!1,this._destroy$=new z,this._value=null,this.stateChanges=new z,this._uid=`mtx-select-${Dz++}`,this._focused=!1,this.disabled=!1,this.ariaLabel="",this.ariaLabelledby=null,this._ariaDescribedby=null,this.controlType="mtx-select",this._onChange=()=>{},this._onTouched=()=>{},this._valueId=`mtx-select-value-${Dz++}`,this._intlChangesSubscription=ke.EMPTY;let i=this._focusMonitor,r=u(dl),o=u(pc,{optional:!0}),a=u(Ki,{optional:!0}),s=this.ngControl;this._intlChangesSubscription=this._intl.changes.subscribe(()=>{this._changeDetectorRef.detectChanges()}),i.monitor(this._elementRef,!0).subscribe(l=>{this._focused&&!l&&this._onTouched(),this._focused=!!l,this.stateChanges.next()}),this.ngControl&&(this.ngControl.valueAccessor=this),this._errorStateTracker=new cl(r,s,a,o,this.stateChanges),this.id=this.id}ngOnInit(){this.compareWith&&(this.ngSelect.compareWith=this.compareWith)}ngAfterViewInit(){this._itemsAreUsed||(this.ngSelect.escapeHTML=!1,this._setItemsFromMtxOptions())}ngDoCheck(){if(this.ngControl){let i=this.ngControl;this._previousControl!==i.control&&(this._previousControl!==void 0&&i.disabled!==null&&i.disabled!==this.disabled&&(this.disabled=i.disabled),this._previousControl=i.control),this.updateErrorState()}}ngOnDestroy(){this._destroy$.next(),this._destroy$.complete(),this.stateChanges.complete(),this._focusMonitor.stopMonitoring(this._elementRef),this._intlChangesSubscription.unsubscribe()}_getAriaLabelledby(){if(this.ariaLabel)return null;let i=this._parentFormField?.getLabelId(),r=(i?i+" ":"")+this._valueId;return this.ariaLabelledby&&(r+=" "+this.ariaLabelledby),r}setDescribedByIds(i){this._ariaDescribedby=i.length?i.join(" "):null}setDisabledState(i){this.disabled=i,this._changeDetectorRef.markForCheck(),this.stateChanges.next()}onContainerClick(i){i.target.classList.contains("ng-arrow-wrapper")||(this.focus(),this.open())}writeValue(i){this._assignValue(i)}registerOnChange(i){this._onChange=i}registerOnTouched(i){this._onTouched=i}updateErrorState(){this._errorStateTracker.updateErrorState()}_assignValue(i){return i!==this._value||this.multiple&&Array.isArray(i)?(this._value=i,this._changeDetectorRef.markForCheck(),!0):!1}_setItemsFromMtxOptions(){let i=o=>{this.items=o.map(a=>({$ngOptionValue:a.value,$ngOptionLabel:a.elementRef.nativeElement.innerHTML,disabled:a.disabled})),this.ngSelect.itemsList.setItems(this.items),this.ngSelect.hasValue&&this.ngSelect.itemsList.mapSelectedItems(),this.ngSelect.detectChanges()},r=()=>{let o=Je(this.mtxOptions.changes,this._destroy$);Je(...this.mtxOptions.map(a=>a.stateChange$)).pipe(Te(o)).subscribe(a=>{let s=this.ngSelect.itemsList.findItem(a.value);s.disabled=a.disabled,s.label=a.label||s.label,this.ngSelect.detectChanges()})};this.mtxOptions.changes.pipe(He(this.mtxOptions),Te(this._destroy$)).subscribe(o=>{i(o),r()})}open(){this.ngSelect.open()}close(){this.ngSelect.close()}focus(){this.ngSelect.focus()}blur(){this.ngSelect.blur()}openChange(){this.openEvent.emit(),setTimeout(()=>{this._document.getElementById(this.ngSelect.dropdownId)?.classList.add("mat-"+this._parentFormField?.color)})}};n.\u0275fac=function(r){return new(r||n)},n.\u0275cmp=E({type:n,selectors:[["mtx-select"]],contentQueries:function(r,o,a){if(r&1&&(xe(a,uhe,5,te),xe(a,mhe,5,te),xe(a,hhe,5,te),xe(a,phe,5,te),xe(a,fhe,5,te),xe(a,ghe,5,te),xe(a,_he,5,te),xe(a,bhe,5,te),xe(a,vhe,5,te),xe(a,yhe,5,te),xe(a,xhe,5,te),xe(a,Che,5,te),xe(a,whe,5,te),xe(a,che,5)),r&2){let s;B(s=j())&&(o.optionTemplate=s.first),B(s=j())&&(o.optgroupTemplate=s.first),B(s=j())&&(o.labelTemplate=s.first),B(s=j())&&(o.multiLabelTemplate=s.first),B(s=j())&&(o.headerTemplate=s.first),B(s=j())&&(o.footerTemplate=s.first),B(s=j())&&(o.notFoundTemplate=s.first),B(s=j())&&(o.typeToSearchTemplate=s.first),B(s=j())&&(o.loadingTextTemplate=s.first),B(s=j())&&(o.tagTemplate=s.first),B(s=j())&&(o.loadingSpinnerTemplate=s.first),B(s=j())&&(o.placeholderTemplate=s.first),B(s=j())&&(o.clearbuttonTemplate=s.first),B(s=j())&&(o.mtxOptions=s)}},viewQuery:function(r,o){if(r&1&&ie(yme,7),r&2){let a;B(a=j())&&(o.ngSelect=a.first)}},hostAttrs:["role","combobox","aria-autocomplete","none",1,"mtx-select"],hostVars:20,hostBindings:function(r,o){r&2&&(X("id",o.id)("aria-expanded",o.panelOpen)("aria-label",o.ariaLabel||null)("aria-labelledby",o._getAriaLabelledby())("aria-describedby",o._ariaDescribedby||null)("aria-required",o.required.toString())("aria-disabled",o.disabled.toString())("aria-invalid",o.errorState),G("mtx-select-floating",o.shouldLabelFloat)("mtx-select-disabled",o.disabled)("mtx-select-invalid",o.errorState)("mtx-select-required",o.required)("mtx-select-empty",o.empty)("mtx-select-multiple",o.multiple))},inputs:{addTag:"addTag",addTagText:"addTagText",appearance:"appearance",appendTo:"appendTo",bindLabel:"bindLabel",bindValue:"bindValue",closeOnSelect:[2,"closeOnSelect","closeOnSelect",V],clearAllText:"clearAllText",clearable:[2,"clearable","clearable",V],clearOnBackspace:[2,"clearOnBackspace","clearOnBackspace",V],compareWith:"compareWith",dropdownPosition:"dropdownPosition",groupBy:"groupBy",groupValue:"groupValue",bufferAmount:"bufferAmount",selectableGroup:[2,"selectableGroup","selectableGroup",V],selectableGroupAsModel:[2,"selectableGroupAsModel","selectableGroupAsModel",V],hideSelected:[2,"hideSelected","hideSelected",V],loading:[2,"loading","loading",V],loadingText:"loadingText",labelForId:"labelForId",markFirst:[2,"markFirst","markFirst",V],maxSelectedItems:"maxSelectedItems",multiple:[2,"multiple","multiple",V],notFoundText:"notFoundText",searchable:[2,"searchable","searchable",V],readonly:[2,"readonly","readonly",V],searchFn:"searchFn",searchWhileComposing:[2,"searchWhileComposing","searchWhileComposing",V],selectOnTab:[2,"selectOnTab","selectOnTab",V],trackByFn:"trackByFn",inputAttrs:"inputAttrs",tabIndex:"tabIndex",openOnEnter:[2,"openOnEnter","openOnEnter",V],minTermLength:"minTermLength",editableSearchTerm:[2,"editableSearchTerm","editableSearchTerm",V],keyDownFn:"keyDownFn",virtualScroll:[2,"virtualScroll","virtualScroll",V],typeToSearchText:"typeToSearchText",typeahead:"typeahead",isOpen:"isOpen",fixedPlaceholder:[2,"fixedPlaceholder","fixedPlaceholder",V],deselectOnClick:[2,"deselectOnClick","deselectOnClick",V],clearSearchOnAdd:"clearSearchOnAdd",items:"items",value:"value",id:"id",placeholder:"placeholder",disabled:[2,"disabled","disabled",V],required:[2,"required","required",V],errorStateMatcher:"errorStateMatcher",ariaLabel:[0,"aria-label","ariaLabel"],ariaLabelledby:[0,"aria-labelledby","ariaLabelledby"]},outputs:{blurEvent:"blur",focusEvent:"focus",changeEvent:"change",openEvent:"open",closeEvent:"close",searchEvent:"search",clearEvent:"clear",addEvent:"add",removeEvent:"remove",scroll:"scroll",scrollToEnd:"scrollToEnd"},exportAs:["mtxSelect"],features:[Ce([{provide:Ra,useExisting:n}])],decls:15,vars:63,consts:[["ngSelect",""],[3,"ngModelChange","blur","focus","change","open","close","search","clear","add","remove","scroll","scrollToEnd","ngModel","ngModelOptions","placeholder","items","addTag","addTagText","appendTo","appearance","bindLabel","bindValue","closeOnSelect","clearAllText","clearable","clearOnBackspace","dropdownPosition","groupBy","groupValue","bufferAmount","hideSelected","isOpen","inputAttrs","loading","loadingText","labelForId","markFirst","maxSelectedItems","multiple","notFoundText","readonly","typeahead","typeToSearchText","trackByFn","searchable","searchFn","searchWhileComposing","clearSearchOnAdd","selectableGroup","selectableGroupAsModel","selectOnTab","tabIndex","openOnEnter","minTermLength","editableSearchTerm","keyDownFn","virtualScroll","fixedPlaceholder","deselectOnClick"],["ng-option-tmp",""],["ng-optgroup-tmp",""],["ng-label-tmp",""],["ng-multi-label-tmp",""],["ng-header-tmp",""],["ng-footer-tmp",""],["ng-notfound-tmp",""],["ng-typetosearch-tmp",""],["ng-loadingtext-tmp",""],["ng-tag-tmp",""],["ng-loadingspinner-tmp",""],["ng-placeholder-tmp",""],["ng-clearbutton-tmp",""],[3,"ngTemplateOutlet","ngTemplateOutletContext"],[3,"ngTemplateOutlet"]],template:function(r,o){if(r&1){let a=Y();h(0,"ng-select",1,0),Uo("ngModelChange",function(l){return I(a),Ca(o.value,l)||(o.value=l),A(l)}),S("blur",function(l){return I(a),A(o.blurEvent.emit(l))})("focus",function(l){return I(a),A(o.focusEvent.emit(l))})("change",function(l){return I(a),A(o.changeEvent.emit(l))})("open",function(){return I(a),A(o.openChange())})("close",function(){return I(a),A(o.closeEvent.emit())})("search",function(l){return I(a),A(o.searchEvent.emit(l))})("clear",function(l){return I(a),A(o.clearEvent.emit(l))})("add",function(l){return I(a),A(o.addEvent.emit(l))})("remove",function(l){return I(a),A(o.removeEvent.emit(l))})("scroll",function(l){return I(a),A(o.scroll.emit(l))})("scrollToEnd",function(){return I(a),A(o.scrollToEnd.emit())}),N(2,Mme,1,0,null,2),N(3,Tme,1,0,null,3),N(4,Ome,1,0,null,4),N(5,Fme,1,0,null,5),N(6,Vme,1,0,null,6),N(7,Hme,1,0,null,7),N(8,$me,1,0,null,8),N(9,qme,1,0,null,9),N(10,Kme,1,0,null,10),N(11,Jme,1,0,null,11),N(12,ihe,1,0,null,12),N(13,ohe,1,0,null,13),N(14,lhe,1,0,null,14),p()}r&2&&(G("ng-select-invalid",o.errorState),zo("ngModel",o.value),y("ngModelOptions",at(62,xme))("placeholder",o.placeholder||o._intl.placeholder)("items",o.items)("addTag",o.addTag)("addTagText",o.addTagText||o._intl.addTagText)("appendTo",o.appendTo)("appearance",o.appearance)("bindLabel",o.bindLabel)("bindValue",o.bindValue)("closeOnSelect",o.closeOnSelect)("clearAllText",o.clearAllText||o._intl.clearAllText)("clearable",o.clearable)("clearOnBackspace",o.clearOnBackspace)("dropdownPosition",o.dropdownPosition)("groupBy",o.groupBy)("groupValue",o.groupValue)("bufferAmount",o.bufferAmount)("hideSelected",o.hideSelected)("isOpen",o.isOpen)("inputAttrs",o.inputAttrs)("loading",o.loading)("loadingText",o.loadingText||o._intl.loadingText)("labelForId",o.labelForId)("markFirst",o.markFirst)("maxSelectedItems",o.maxSelectedItems)("multiple",o.multiple)("notFoundText",o.notFoundText||o._intl.notFoundText)("readonly",o.readonly||o.disabled)("typeahead",o.typeahead)("typeToSearchText",o.typeToSearchText||o._intl.typeToSearchText)("trackByFn",o.trackByFn)("searchable",o.searchable)("searchFn",o.searchFn)("searchWhileComposing",o.searchWhileComposing)("clearSearchOnAdd",o.clearSearchOnAdd)("selectableGroup",o.selectableGroup)("selectableGroupAsModel",o.selectableGroupAsModel)("selectOnTab",o.selectOnTab)("tabIndex",o.tabIndex)("openOnEnter",o.openOnEnter)("minTermLength",o.minTermLength)("editableSearchTerm",o.editableSearchTerm)("keyDownFn",o.keyDownFn)("virtualScroll",o.virtualScroll)("fixedPlaceholder",o.fixedPlaceholder)("deselectOnClick",o.deselectOnClick),g(2),L(o.optionTemplate?2:-1),g(),L(o.optgroupTemplate?3:-1),g(),L(o.labelTemplate?4:-1),g(),L(o.multiLabelTemplate?5:-1),g(),L(o.headerTemplate?6:-1),g(),L(o.footerTemplate?7:-1),g(),L(o.notFoundTemplate?8:-1),g(),L(o.typeToSearchTemplate?9:-1),g(),L(o.loadingTextTemplate?10:-1),g(),L(o.tagTemplate?11:-1),g(),L(o.loadingSpinnerTemplate?12:-1),g(),L(o.placeholderTemplate?13:-1),g(),L(o.clearbuttonTemplate?14:-1))},dependencies:[bI,wz,RC,OC,PC,FC,NC,LC,BC,VC,jC,HC,zC,UC,$C,du,ei,gg,Fn],styles:[`.ng-select{padding:var(--mat-form-field-filled-with-label-container-padding-top, 24px) 16px var(--mat-form-field-filled-with-label-container-padding-bottom, 8px);margin:calc(var(--mat-form-field-filled-with-label-container-padding-top, 24px) * -1) -16px calc(var(--mat-form-field-filled-with-label-container-padding-bottom, 8px) * -1)}.mdc-text-field--outlined .ng-select,.mdc-text-field--no-label .ng-select{padding-top:var(--mat-form-field-container-vertical-padding, 16px);padding-bottom:var(--mat-form-field-container-vertical-padding, 16px);margin-top:calc(var(--mat-form-field-container-vertical-padding, 16px) * -1);margin-bottom:calc(var(--mat-form-field-container-vertical-padding, 16px) * -1)}.ng-select .ng-select-container{align-items:center;color:var(--mtx-select-container-text-color, var(--mat-sys-on-surface))}.ng-select .ng-select-container .ng-value-container{align-items:center;gap:4px}.ng-select .ng-select-container .ng-value-container .ng-input>input{height:var(--mat-form-field-container-text-line-height, var(--mat-sys-body-large-line-height));color:inherit;font:inherit}.ng-select .ng-select-container .ng-clear-wrapper{display:inline-flex;justify-content:center;align-items:center;width:24px;height:var(--mat-form-field-container-text-line-height, var(--mat-sys-body-large-line-height))}.ng-select .ng-placeholder{transition:opacity .2s;opacity:1;color:var(--mtx-select-placeholder-text-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent))}.mat-form-field-hide-placeholder .ng-select .ng-placeholder{opacity:0}.ng-select .ng-has-value .ng-placeholder{display:none}.ng-select .ng-clear-wrapper{color:var(--mtx-select-clear-icon-color, var(--mat-sys-on-surface))}.ng-select .ng-clear-wrapper:hover .ng-clear{color:var(--mtx-select-clear-icon-hover-color, var(--mat-sys-error))}.ng-select.ng-select-disabled .ng-value{color:var(--mtx-select-disabled-text-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent))}.ng-select.ng-select-opened .ng-arrow-wrapper .ng-arrow{top:-2px;border-width:0 5px 5px}.ng-select.ng-select-single.ng-select-filtered .ng-placeholder{display:initial;visibility:hidden}.ng-select.ng-select-multiple .ng-select-container .ng-value-container .ng-value{display:inline-flex;align-items:center;height:var(--mat-form-field-container-text-line-height, var(--mat-sys-body-large-line-height));padding:0 calc((var(--mat-form-field-container-text-line-height, var(--mat-sys-body-large-line-height)) - 16px) / 2);border-radius:9999px;font-size:.875em;background-color:var(--mtx-select-multiple-value-background-color, transparent);border:1px solid var(--mtx-select-multiple-value-outline-color, var(--mat-sys-outline))}.ng-select.ng-select-multiple .ng-select-container .ng-value-container .ng-value.ng-value-disabled{opacity:.4}.ng-select.ng-select-multiple .ng-select-container .ng-value-container .ng-value .ng-value-label{display:inline-block;margin:0 4px;line-height:16px}.ng-select.ng-select-multiple .ng-select-container .ng-value-container .ng-value .ng-value-icon{width:16px;height:16px;line-height:16px;border-radius:50%;text-align:center}.ng-select.ng-select-multiple .ng-select-container .ng-value-container .ng-value .ng-value-icon:hover{background-color:var(--mtx-select-multiple-value-icon-hover-background-color, var(--mat-sys-outline-variant))}.ng-select.ng-select-multiple.ng-select-disabled .ng-select-container .ng-value-container .ng-value{border-color:var(--mtx-select-multiple-value-disabled-outline-color, color-mix(in srgb, var(--mat-sys-outline) 38%, transparent))}.ng-select .ng-arrow-wrapper{width:10px}.ng-select .ng-arrow{border-width:5px 5px 2px;border-style:solid;border-color:var(--mtx-select-enabled-arrow-color, var(--mat-sys-on-surface)) transparent transparent}.ng-select.ng-select-disabled .ng-arrow{border-color:var(--mtx-select-disabled-arrow-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent)) transparent transparent}.ng-select.ng-select-invalid .ng-arrow{border-color:var(--mtx-select-invalid-arrow-color, var(--mat-sys-error)) transparent transparent}.ng-select.ng-select-opened .ng-arrow{border-color:transparent transparent var(--mtx-select-enabled-arrow-color, var(--mat-sys-on-surface))}.ng-select.ng-select-opened.ng-select-invalid .ng-arrow{border-color:transparent transparent var(--mtx-select-invalid-arrow-color, var(--mat-sys-error))}.ng-dropdown-panel{background-color:var(--mtx-select-panel-background-color, var(--mat-sys-surface-container))}.ng-dropdown-panel.ng-select-bottom{top:100%;border-bottom-left-radius:var(--mtx-select-container-shape, var(--mat-sys-corner-extra-small));border-bottom-right-radius:var(--mtx-select-container-shape, var(--mat-sys-corner-extra-small));box-shadow:var(--mtx-select-container-elevation-shadow, 0px 3px 1px -2px rgba(0, 0, 0, .2), 0px 2px 2px 0px rgba(0, 0, 0, .14), 0px 1px 5px 0px rgba(0, 0, 0, .12))}.ng-dropdown-panel.ng-select-top{bottom:100%;border-top-left-radius:var(--mtx-select-container-shape, var(--mat-sys-corner-extra-small));border-top-right-radius:var(--mtx-select-container-shape, var(--mat-sys-corner-extra-small));box-shadow:var(--mtx-select-container-elevation-shadow, 0px 3px 1px -2px rgba(0, 0, 0, .2), 0px 2px 2px 0px rgba(0, 0, 0, .14), 0px 1px 5px 0px rgba(0, 0, 0, .12))}.ng-dropdown-panel .ng-dropdown-header,.ng-dropdown-panel .ng-dropdown-footer{padding:14px 16px}.ng-dropdown-panel .ng-dropdown-header{border-bottom:1px solid var(--mtx-select-panel-divider-color, var(--mat-sys-outline))}.ng-dropdown-panel .ng-dropdown-footer{border-top:1px solid var(--mtx-select-panel-divider-color, var(--mat-sys-outline))}.ng-dropdown-panel .ng-dropdown-panel-items .ng-optgroup{padding:14px 16px;font-weight:500;-webkit-user-select:none;user-select:none;cursor:pointer;color:var(--mtx-select-optgroup-label-text-color, var(--mat-sys-on-surface))}.ng-dropdown-panel .ng-dropdown-panel-items .ng-optgroup.ng-option-disabled{cursor:default}.ng-dropdown-panel .ng-dropdown-panel-items .ng-optgroup.ng-option-marked{background-color:var(--mtx-select-option-hover-state-background-color, color-mix(in srgb, var(--mat-sys-on-surface) calc(var(--mat-sys-hover-state-layer-opacity) * 100%), transparent))}.ng-dropdown-panel .ng-dropdown-panel-items .ng-optgroup.ng-option-selected{background-color:var(--mtx-select-option-selected-state-background-color, var(--mat-sys-secondary-container));color:var(--mtx-select-option-selected-state-text-color, var(--mat-sys-on-surface))}.ng-dropdown-panel .ng-dropdown-panel-items .ng-option{position:relative;padding:14px 16px;text-overflow:ellipsis;text-decoration:none;text-align:left;white-space:nowrap;overflow:hidden;color:var(--mtx-select-option-label-text-color, var(--mat-sys-on-surface))}.ng-dropdown-panel .ng-dropdown-panel-items .ng-option.ng-option-marked{background-color:var(--mtx-select-option-hover-state-background-color, color-mix(in srgb, var(--mat-sys-on-surface) calc(var(--mat-sys-hover-state-layer-opacity) * 100%), transparent))}.ng-dropdown-panel .ng-dropdown-panel-items .ng-option.ng-option-selected{background-color:var(--mtx-select-option-selected-state-background-color, var(--mat-sys-secondary-container));color:var(--mtx-select-option-selected-state-text-color, var(--mat-sys-on-surface))}.ng-dropdown-panel .ng-dropdown-panel-items .ng-option.ng-option-disabled{color:var(--mtx-select-option-disabled-state-text-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent))}[dir=rtl] .ng-dropdown-panel .ng-dropdown-panel-items .ng-option{text-align:right}.ng-dropdown-panel .ng-dropdown-panel-items .ng-option.ng-option-child{padding-left:32px}[dir=rtl] .ng-dropdown-panel .ng-dropdown-panel-items .ng-option.ng-option-child{padding-right:32px;padding-left:0}.ng-dropdown-panel .ng-dropdown-panel-items .ng-option .ng-tag-label{margin-right:6px;font-size:80%}[dir=rtl] .ng-dropdown-panel .ng-dropdown-panel-items .ng-option .ng-tag-label{margin-left:6px;margin-right:0} -`],encapsulation:2,changeDetection:0});let t=n;return t})(),kz=(()=>{let n=class n{};n.\u0275fac=function(r){return new(r||n)},n.\u0275mod=ee({type:n}),n.\u0275inj=J({imports:[gt,du,zn,bI,yI]});let t=n;return t})();var Sz=(()=>{let n=class n extends to{get bindLabel(){return typeof this.props.labelProp=="string"?this.props.labelProp:""}get bindValue(){return typeof this.props.valueProp=="string"?this.props.valueProp:void 0}};n.\u0275fac=(()=>{let i;return function(o){return(i||(i=fe(n)))(o||n)}})(),n.\u0275cmp=E({type:n,selectors:[["formly-field-combobox"]],features:[le],decls:4,vars:13,consts:[["select",""],[3,"formControl","items","bindLabel","bindValue","multiple","placeholder","required","closeOnSelect","compareWith"]],template:function(r,o){r&1&&(k(0,"mtx-select",1,0),me(2,"toObservable"),me(3,"async")),r&2&&y("formControl",o.formControl)("items",Oe(3,11,Oe(2,9,o.props.options)))("bindLabel",o.bindLabel)("bindValue",o.bindValue)("multiple",o.props.multiple)("placeholder",o.props.placeholder)("required",o.props.required)("closeOnSelect",!o.props.multiple)("compareWith",o.props.compareWith)},dependencies:[zn,ei,Do,wo,kz,yI,a3,rn,o3],encapsulation:2});let t=n;return t})();var Tz=(()=>{let n=class n extends Cg{};n.\u0275fac=(()=>{let i;return function(o){return(i||(i=fe(n)))(o||n)}})(),n.\u0275cmp=E({type:n,selectors:[["formly-wrapper-card"]],features:[le],decls:8,vars:1,consts:[["fieldComponent",""],[1,"card"],[1,"card-header"],[1,"card-body"]],template:function(r,o){r&1&&(ft(0,"div",1)(1,"h3",2),_(2,"Its time to party"),vt(),ft(3,"h3",2),_(4),vt(),ft(5,"div",3),rf(6,null,0),vt()()),r&2&&(g(4),H(o.props.label))},encapsulation:2});let t=n;return t})(),Iz=(()=>{let n=class n extends Cg{};n.\u0275fac=(()=>{let i;return function(o){return(i||(i=fe(n)))(o||n)}})(),n.\u0275cmp=E({type:n,selectors:[["formly-wrapper-div"]],features:[le],decls:3,vars:0,consts:[["fieldComponent",""]],template:function(r,o){r&1&&(ft(0,"div"),rf(1,null,0),vt())},encapsulation:2});let t=n;return t})();function Az(t){return{types:[{name:"combobox",component:Sz,wrappers:["form-field"]}],wrappers:[{name:"card",component:Tz},{name:"div",component:Iz}],validators:[],validationMessages:[{name:"required",message:(n,e)=>t.stream("validation.required")},{name:"min",message:(n,e)=>t.stream("validation.min",{number:e.props?.min})},{name:"max",message:(n,e)=>t.stream("validation.max",{number:e.props?.max})},{name:"minLength",message:(n,e)=>t.stream("validation.min_length",{number:e.props?.minLength})},{name:"maxLength",message:(n,e)=>t.stream("validation.max_length",{number:e.props?.maxLength})}]}}var Ehe={lessThanXSeconds:{one:"\u4E0D\u5230 1 \u79D2",other:"\u4E0D\u5230 {{count}} \u79D2"},xSeconds:{one:"1 \u79D2",other:"{{count}} \u79D2"},halfAMinute:"\u534A\u5206\u949F",lessThanXMinutes:{one:"\u4E0D\u5230 1 \u5206\u949F",other:"\u4E0D\u5230 {{count}} \u5206\u949F"},xMinutes:{one:"1 \u5206\u949F",other:"{{count}} \u5206\u949F"},xHours:{one:"1 \u5C0F\u65F6",other:"{{count}} \u5C0F\u65F6"},aboutXHours:{one:"\u5927\u7EA6 1 \u5C0F\u65F6",other:"\u5927\u7EA6 {{count}} \u5C0F\u65F6"},xDays:{one:"1 \u5929",other:"{{count}} \u5929"},aboutXWeeks:{one:"\u5927\u7EA6 1 \u4E2A\u661F\u671F",other:"\u5927\u7EA6 {{count}} \u4E2A\u661F\u671F"},xWeeks:{one:"1 \u4E2A\u661F\u671F",other:"{{count}} \u4E2A\u661F\u671F"},aboutXMonths:{one:"\u5927\u7EA6 1 \u4E2A\u6708",other:"\u5927\u7EA6 {{count}} \u4E2A\u6708"},xMonths:{one:"1 \u4E2A\u6708",other:"{{count}} \u4E2A\u6708"},aboutXYears:{one:"\u5927\u7EA6 1 \u5E74",other:"\u5927\u7EA6 {{count}} \u5E74"},xYears:{one:"1 \u5E74",other:"{{count}} \u5E74"},overXYears:{one:"\u8D85\u8FC7 1 \u5E74",other:"\u8D85\u8FC7 {{count}} \u5E74"},almostXYears:{one:"\u5C06\u8FD1 1 \u5E74",other:"\u5C06\u8FD1 {{count}} \u5E74"}},Oz=(t,n,e)=>{let i,r=Ehe[t];return typeof r=="string"?i=r:n===1?i=r.one:i=r.other.replace("{{count}}",String(n)),e?.addSuffix?e.comparison&&e.comparison>0?i+"\u5185":i+"\u524D":i};var Mhe={full:"y'\u5E74'M'\u6708'd'\u65E5' EEEE",long:"y'\u5E74'M'\u6708'd'\u65E5'",medium:"yyyy-MM-dd",short:"yy-MM-dd"},khe={full:"zzzz a h:mm:ss",long:"z a h:mm:ss",medium:"a h:mm:ss",short:"a h:mm"},She={full:"{{date}} {{time}}",long:"{{date}} {{time}}",medium:"{{date}} {{time}}",short:"{{date}} {{time}}"},Rz={date:Qo({formats:Mhe,defaultWidth:"full"}),time:Qo({formats:khe,defaultWidth:"full"}),dateTime:Qo({formats:She,defaultWidth:"full"})};function Pz(t,n,e){let i="eeee p";return FV(t,n,e)?i:t.getTime()>n.getTime()?"'\u4E0B\u4E2A'"+i:"'\u4E0A\u4E2A'"+i}var The={lastWeek:Pz,yesterday:"'\u6628\u5929' p",today:"'\u4ECA\u5929' p",tomorrow:"'\u660E\u5929' p",nextWeek:Pz,other:"PP p"},Fz=(t,n,e,i)=>{let r=The[t];return typeof r=="function"?r(n,e,i):r};var Ihe={narrow:["\u524D","\u516C\u5143"],abbreviated:["\u524D","\u516C\u5143"],wide:["\u516C\u5143\u524D","\u516C\u5143"]},Ahe={narrow:["1","2","3","4"],abbreviated:["\u7B2C\u4E00\u5B63","\u7B2C\u4E8C\u5B63","\u7B2C\u4E09\u5B63","\u7B2C\u56DB\u5B63"],wide:["\u7B2C\u4E00\u5B63\u5EA6","\u7B2C\u4E8C\u5B63\u5EA6","\u7B2C\u4E09\u5B63\u5EA6","\u7B2C\u56DB\u5B63\u5EA6"]},Ohe={narrow:["\u4E00","\u4E8C","\u4E09","\u56DB","\u4E94","\u516D","\u4E03","\u516B","\u4E5D","\u5341","\u5341\u4E00","\u5341\u4E8C"],abbreviated:["1\u6708","2\u6708","3\u6708","4\u6708","5\u6708","6\u6708","7\u6708","8\u6708","9\u6708","10\u6708","11\u6708","12\u6708"],wide:["\u4E00\u6708","\u4E8C\u6708","\u4E09\u6708","\u56DB\u6708","\u4E94\u6708","\u516D\u6708","\u4E03\u6708","\u516B\u6708","\u4E5D\u6708","\u5341\u6708","\u5341\u4E00\u6708","\u5341\u4E8C\u6708"]},Rhe={narrow:["\u65E5","\u4E00","\u4E8C","\u4E09","\u56DB","\u4E94","\u516D"],short:["\u65E5","\u4E00","\u4E8C","\u4E09","\u56DB","\u4E94","\u516D"],abbreviated:["\u5468\u65E5","\u5468\u4E00","\u5468\u4E8C","\u5468\u4E09","\u5468\u56DB","\u5468\u4E94","\u5468\u516D"],wide:["\u661F\u671F\u65E5","\u661F\u671F\u4E00","\u661F\u671F\u4E8C","\u661F\u671F\u4E09","\u661F\u671F\u56DB","\u661F\u671F\u4E94","\u661F\u671F\u516D"]},Phe={narrow:{am:"\u4E0A",pm:"\u4E0B",midnight:"\u51CC\u6668",noon:"\u5348",morning:"\u65E9",afternoon:"\u4E0B\u5348",evening:"\u665A",night:"\u591C"},abbreviated:{am:"\u4E0A\u5348",pm:"\u4E0B\u5348",midnight:"\u51CC\u6668",noon:"\u4E2D\u5348",morning:"\u65E9\u6668",afternoon:"\u4E2D\u5348",evening:"\u665A\u4E0A",night:"\u591C\u95F4"},wide:{am:"\u4E0A\u5348",pm:"\u4E0B\u5348",midnight:"\u51CC\u6668",noon:"\u4E2D\u5348",morning:"\u65E9\u6668",afternoon:"\u4E2D\u5348",evening:"\u665A\u4E0A",night:"\u591C\u95F4"}},Fhe={narrow:{am:"\u4E0A",pm:"\u4E0B",midnight:"\u51CC\u6668",noon:"\u5348",morning:"\u65E9",afternoon:"\u4E0B\u5348",evening:"\u665A",night:"\u591C"},abbreviated:{am:"\u4E0A\u5348",pm:"\u4E0B\u5348",midnight:"\u51CC\u6668",noon:"\u4E2D\u5348",morning:"\u65E9\u6668",afternoon:"\u4E2D\u5348",evening:"\u665A\u4E0A",night:"\u591C\u95F4"},wide:{am:"\u4E0A\u5348",pm:"\u4E0B\u5348",midnight:"\u51CC\u6668",noon:"\u4E2D\u5348",morning:"\u65E9\u6668",afternoon:"\u4E2D\u5348",evening:"\u665A\u4E0A",night:"\u591C\u95F4"}},Nhe=(t,n)=>{let e=Number(t);switch(n?.unit){case"date":return e.toString()+"\u65E5";case"hour":return e.toString()+"\u65F6";case"minute":return e.toString()+"\u5206";case"second":return e.toString()+"\u79D2";default:return"\u7B2C "+e.toString()}},Nz={ordinalNumber:Nhe,era:Bn({values:Ihe,defaultWidth:"wide"}),quarter:Bn({values:Ahe,defaultWidth:"wide",argumentCallback:t=>t-1}),month:Bn({values:Ohe,defaultWidth:"wide"}),day:Bn({values:Rhe,defaultWidth:"wide"}),dayPeriod:Bn({values:Phe,defaultWidth:"wide",formattingValues:Fhe,defaultFormattingWidth:"wide"})};var Lhe=/^(第\s*)?\d+(日|时|分|秒)?/i,Vhe=/\d+/i,Bhe={narrow:/^(前)/i,abbreviated:/^(前)/i,wide:/^(公元前|公元)/i},jhe={any:[/^(前)/i,/^(公元)/i]},Hhe={narrow:/^[1234]/i,abbreviated:/^第[一二三四]刻/i,wide:/^第[一二三四]刻钟/i},zhe={any:[/(1|一)/i,/(2|二)/i,/(3|三)/i,/(4|四)/i]},Uhe={narrow:/^(一|二|三|四|五|六|七|八|九|十[二一])/i,abbreviated:/^(一|二|三|四|五|六|七|八|九|十[二一]|\d|1[12])月/i,wide:/^(一|二|三|四|五|六|七|八|九|十[二一])月/i},$he={narrow:[/^一/i,/^二/i,/^三/i,/^四/i,/^五/i,/^六/i,/^七/i,/^八/i,/^九/i,/^十(?!(一|二))/i,/^十一/i,/^十二/i],any:[/^一|1/i,/^二|2/i,/^三|3/i,/^四|4/i,/^五|5/i,/^六|6/i,/^七|7/i,/^八|8/i,/^九|9/i,/^十(?!(一|二))|10/i,/^十一|11/i,/^十二|12/i]},Whe={narrow:/^[一二三四五六日]/i,short:/^[一二三四五六日]/i,abbreviated:/^周[一二三四五六日]/i,wide:/^星期[一二三四五六日]/i},Ghe={any:[/日/i,/一/i,/二/i,/三/i,/四/i,/五/i,/六/i]},qhe={any:/^(上午?|下午?|午夜|[中正]午|早上?|下午|晚上?|凌晨|)/i},Yhe={any:{am:/^上午?/i,pm:/^下午?/i,midnight:/^午夜/i,noon:/^[中正]午/i,morning:/^早上/i,afternoon:/^下午/i,evening:/^晚上?/i,night:/^凌晨/i}},Lz={ordinalNumber:lh({matchPattern:Lhe,parsePattern:Vhe,valueCallback:t=>parseInt(t,10)}),era:jn({matchPatterns:Bhe,defaultMatchWidth:"wide",parsePatterns:jhe,defaultParseWidth:"any"}),quarter:jn({matchPatterns:Hhe,defaultMatchWidth:"wide",parsePatterns:zhe,defaultParseWidth:"any",valueCallback:t=>t+1}),month:jn({matchPatterns:Uhe,defaultMatchWidth:"wide",parsePatterns:$he,defaultParseWidth:"any"}),day:jn({matchPatterns:Whe,defaultMatchWidth:"wide",parsePatterns:Ghe,defaultParseWidth:"any"}),dayPeriod:jn({matchPatterns:qhe,defaultMatchWidth:"any",parsePatterns:Yhe,defaultParseWidth:"any"})};var Vz={code:"zh-CN",formatDistance:Oz,formatLong:Rz,formatRelative:Fz,localize:Nz,match:Lz,options:{weekStartsOn:1,firstWeekContainsDate:4}};var Qhe={lessThanXSeconds:{one:"\u5C11\u65BC 1 \u79D2",other:"\u5C11\u65BC {{count}} \u79D2"},xSeconds:{one:"1 \u79D2",other:"{{count}} \u79D2"},halfAMinute:"\u534A\u5206\u9418",lessThanXMinutes:{one:"\u5C11\u65BC 1 \u5206\u9418",other:"\u5C11\u65BC {{count}} \u5206\u9418"},xMinutes:{one:"1 \u5206\u9418",other:"{{count}} \u5206\u9418"},xHours:{one:"1 \u5C0F\u6642",other:"{{count}} \u5C0F\u6642"},aboutXHours:{one:"\u5927\u7D04 1 \u5C0F\u6642",other:"\u5927\u7D04 {{count}} \u5C0F\u6642"},xDays:{one:"1 \u5929",other:"{{count}} \u5929"},aboutXWeeks:{one:"\u5927\u7D04 1 \u500B\u661F\u671F",other:"\u5927\u7D04 {{count}} \u500B\u661F\u671F"},xWeeks:{one:"1 \u500B\u661F\u671F",other:"{{count}} \u500B\u661F\u671F"},aboutXMonths:{one:"\u5927\u7D04 1 \u500B\u6708",other:"\u5927\u7D04 {{count}} \u500B\u6708"},xMonths:{one:"1 \u500B\u6708",other:"{{count}} \u500B\u6708"},aboutXYears:{one:"\u5927\u7D04 1 \u5E74",other:"\u5927\u7D04 {{count}} \u5E74"},xYears:{one:"1 \u5E74",other:"{{count}} \u5E74"},overXYears:{one:"\u8D85\u904E 1 \u5E74",other:"\u8D85\u904E {{count}} \u5E74"},almostXYears:{one:"\u5C07\u8FD1 1 \u5E74",other:"\u5C07\u8FD1 {{count}} \u5E74"}},Bz=(t,n,e)=>{let i,r=Qhe[t];return typeof r=="string"?i=r:n===1?i=r.one:i=r.other.replace("{{count}}",String(n)),e?.addSuffix?e.comparison&&e.comparison>0?i+"\u5167":i+"\u524D":i};var Khe={full:"y'\u5E74'M'\u6708'd'\u65E5' EEEE",long:"y'\u5E74'M'\u6708'd'\u65E5'",medium:"yyyy-MM-dd",short:"yy-MM-dd"},Zhe={full:"zzzz a h:mm:ss",long:"z a h:mm:ss",medium:"a h:mm:ss",short:"a h:mm"},Xhe={full:"{{date}} {{time}}",long:"{{date}} {{time}}",medium:"{{date}} {{time}}",short:"{{date}} {{time}}"},jz={date:Qo({formats:Khe,defaultWidth:"full"}),time:Qo({formats:Zhe,defaultWidth:"full"}),dateTime:Qo({formats:Xhe,defaultWidth:"full"})};var Jhe={lastWeek:"'\u4E0A\u500B'eeee p",yesterday:"'\u6628\u5929' p",today:"'\u4ECA\u5929' p",tomorrow:"'\u660E\u5929' p",nextWeek:"'\u4E0B\u500B'eeee p",other:"P"},Hz=(t,n,e,i)=>Jhe[t];var epe={narrow:["\u524D","\u516C\u5143"],abbreviated:["\u524D","\u516C\u5143"],wide:["\u516C\u5143\u524D","\u516C\u5143"]},tpe={narrow:["1","2","3","4"],abbreviated:["\u7B2C\u4E00\u523B","\u7B2C\u4E8C\u523B","\u7B2C\u4E09\u523B","\u7B2C\u56DB\u523B"],wide:["\u7B2C\u4E00\u523B\u9418","\u7B2C\u4E8C\u523B\u9418","\u7B2C\u4E09\u523B\u9418","\u7B2C\u56DB\u523B\u9418"]},ipe={narrow:["\u4E00","\u4E8C","\u4E09","\u56DB","\u4E94","\u516D","\u4E03","\u516B","\u4E5D","\u5341","\u5341\u4E00","\u5341\u4E8C"],abbreviated:["1\u6708","2\u6708","3\u6708","4\u6708","5\u6708","6\u6708","7\u6708","8\u6708","9\u6708","10\u6708","11\u6708","12\u6708"],wide:["\u4E00\u6708","\u4E8C\u6708","\u4E09\u6708","\u56DB\u6708","\u4E94\u6708","\u516D\u6708","\u4E03\u6708","\u516B\u6708","\u4E5D\u6708","\u5341\u6708","\u5341\u4E00\u6708","\u5341\u4E8C\u6708"]},npe={narrow:["\u65E5","\u4E00","\u4E8C","\u4E09","\u56DB","\u4E94","\u516D"],short:["\u65E5","\u4E00","\u4E8C","\u4E09","\u56DB","\u4E94","\u516D"],abbreviated:["\u9031\u65E5","\u9031\u4E00","\u9031\u4E8C","\u9031\u4E09","\u9031\u56DB","\u9031\u4E94","\u9031\u516D"],wide:["\u661F\u671F\u65E5","\u661F\u671F\u4E00","\u661F\u671F\u4E8C","\u661F\u671F\u4E09","\u661F\u671F\u56DB","\u661F\u671F\u4E94","\u661F\u671F\u516D"]},rpe={narrow:{am:"\u4E0A",pm:"\u4E0B",midnight:"\u51CC\u6668",noon:"\u5348",morning:"\u65E9",afternoon:"\u4E0B\u5348",evening:"\u665A",night:"\u591C"},abbreviated:{am:"\u4E0A\u5348",pm:"\u4E0B\u5348",midnight:"\u51CC\u6668",noon:"\u4E2D\u5348",morning:"\u65E9\u6668",afternoon:"\u4E2D\u5348",evening:"\u665A\u4E0A",night:"\u591C\u9593"},wide:{am:"\u4E0A\u5348",pm:"\u4E0B\u5348",midnight:"\u51CC\u6668",noon:"\u4E2D\u5348",morning:"\u65E9\u6668",afternoon:"\u4E2D\u5348",evening:"\u665A\u4E0A",night:"\u591C\u9593"}},ope={narrow:{am:"\u4E0A",pm:"\u4E0B",midnight:"\u51CC\u6668",noon:"\u5348",morning:"\u65E9",afternoon:"\u4E0B\u5348",evening:"\u665A",night:"\u591C"},abbreviated:{am:"\u4E0A\u5348",pm:"\u4E0B\u5348",midnight:"\u51CC\u6668",noon:"\u4E2D\u5348",morning:"\u65E9\u6668",afternoon:"\u4E2D\u5348",evening:"\u665A\u4E0A",night:"\u591C\u9593"},wide:{am:"\u4E0A\u5348",pm:"\u4E0B\u5348",midnight:"\u51CC\u6668",noon:"\u4E2D\u5348",morning:"\u65E9\u6668",afternoon:"\u4E2D\u5348",evening:"\u665A\u4E0A",night:"\u591C\u9593"}},ape=(t,n)=>{let e=Number(t);switch(n?.unit){case"date":return e+"\u65E5";case"hour":return e+"\u6642";case"minute":return e+"\u5206";case"second":return e+"\u79D2";default:return"\u7B2C "+e}},zz={ordinalNumber:ape,era:Bn({values:epe,defaultWidth:"wide"}),quarter:Bn({values:tpe,defaultWidth:"wide",argumentCallback:t=>t-1}),month:Bn({values:ipe,defaultWidth:"wide"}),day:Bn({values:npe,defaultWidth:"wide"}),dayPeriod:Bn({values:rpe,defaultWidth:"wide",formattingValues:ope,defaultFormattingWidth:"wide"})};var spe=/^(第\s*)?\d+(日|時|分|秒)?/i,lpe=/\d+/i,cpe={narrow:/^(前)/i,abbreviated:/^(前)/i,wide:/^(公元前|公元)/i},dpe={any:[/^(前)/i,/^(公元)/i]},upe={narrow:/^[1234]/i,abbreviated:/^第[一二三四]刻/i,wide:/^第[一二三四]刻鐘/i},mpe={any:[/(1|一)/i,/(2|二)/i,/(3|三)/i,/(4|四)/i]},hpe={narrow:/^(一|二|三|四|五|六|七|八|九|十[二一])/i,abbreviated:/^(一|二|三|四|五|六|七|八|九|十[二一]|\d|1[12])月/i,wide:/^(一|二|三|四|五|六|七|八|九|十[二一])月/i},ppe={narrow:[/^一/i,/^二/i,/^三/i,/^四/i,/^五/i,/^六/i,/^七/i,/^八/i,/^九/i,/^十(?!(一|二))/i,/^十一/i,/^十二/i],any:[/^一|1/i,/^二|2/i,/^三|3/i,/^四|4/i,/^五|5/i,/^六|6/i,/^七|7/i,/^八|8/i,/^九|9/i,/^十(?!(一|二))|10/i,/^十一|11/i,/^十二|12/i]},fpe={narrow:/^[一二三四五六日]/i,short:/^[一二三四五六日]/i,abbreviated:/^週[一二三四五六日]/i,wide:/^星期[一二三四五六日]/i},gpe={any:[/日/i,/一/i,/二/i,/三/i,/四/i,/五/i,/六/i]},_pe={any:/^(上午?|下午?|午夜|[中正]午|早上?|下午|晚上?|凌晨)/i},bpe={any:{am:/^上午?/i,pm:/^下午?/i,midnight:/^午夜/i,noon:/^[中正]午/i,morning:/^早上/i,afternoon:/^下午/i,evening:/^晚上?/i,night:/^凌晨/i}},Uz={ordinalNumber:lh({matchPattern:spe,parsePattern:lpe,valueCallback:t=>parseInt(t,10)}),era:jn({matchPatterns:cpe,defaultMatchWidth:"wide",parsePatterns:dpe,defaultParseWidth:"any"}),quarter:jn({matchPatterns:upe,defaultMatchWidth:"wide",parsePatterns:mpe,defaultParseWidth:"any",valueCallback:t=>t+1}),month:jn({matchPatterns:hpe,defaultMatchWidth:"wide",parsePatterns:ppe,defaultParseWidth:"any"}),day:jn({matchPatterns:fpe,defaultMatchWidth:"wide",parsePatterns:gpe,defaultParseWidth:"any"}),dayPeriod:jn({matchPatterns:_pe,defaultMatchWidth:"any",parsePatterns:bpe,defaultParseWidth:"any"})};var $z={code:"zh-TW",formatDistance:Bz,formatLong:jz,formatRelative:Hz,localize:zz,match:Uz,options:{weekStartsOn:1,firstWeekContainsDate:4}};var xI={navPos:"side",theme:"auto",dir:"ltr",showHeader:!0,headerPos:"fixed",showUserPanel:!0,sidenavOpened:!0,sidenavCollapsed:!1,language:"auto"};var aa=(()=>{let n=class n{get notify(){return this.notify$.asObservable()}constructor(){this.key="ng-matero-settings",this.document=u(ge),this.translate=u(ia),this.store=u(mz),this.mediaMatcher=u(qm),this.dir=u(dz),this.notify$=new tt({}),this.htmlElement=this.document.querySelector("html"),this.storedOptions=this.store.get(this.key),this.options=Object.assign(xI,this.storedOptions),this.languages=["en-US","zh-CN","zh-TW"],this.localeMap={"en-US":tu,"zh-CN":Vz,"zh-TW":$z},this.translate.addLangs(this.languages)}reset(){this.store.remove(this.key)}setOptions(i){this.options=Object.assign(xI,this.options,i),this.store.set(this.key,this.options),this.notify$.next(this.options)}setDirection(i){i&&this.setOptions({dir:i}),this.dir.value=this.options.dir,this.htmlElement.dir=this.options.dir}getThemeColor(){return this.options.theme==="auto"&&this.mediaMatcher.matchMedia("(prefers-color-scheme)").media!=="not all"?this.mediaMatcher.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light":this.options.theme}setTheme(i){i&&this.setOptions({theme:i}),this.getThemeColor()==="dark"?this.htmlElement.classList.add("theme-dark"):this.htmlElement.classList.remove("theme-dark")}getTranslateLang(){if(this.options.language==="auto"){let i=navigator.language;return this.languages.includes(i)?i:"en-US"}return this.options.language}setLanguage(i){i&&this.setOptions({language:i}),this.translate.use(this.getTranslateLang())}getLocale(){return this.localeMap[this.getTranslateLang()]}};n.\u0275fac=function(r){return new(r||n)},n.\u0275prov=O({token:n,factory:n.\u0275fac,providedIn:"root"});let t=n;return t})();var Wz=(()=>{let n=class n{constructor(){this.http=u(Yr),this.oidcAuth=u(Tt),this.menuService=u(so),this.permissonsService=u(_u),this.rolesService=u(Th),this.oidcAuth.permissionsChange$.subscribe(()=>{console.log("StartupService: Permission change event received, refreshing permissions"),this.setPermissions()})}load(){return new Promise((i,r)=>{this.http.get("data/menu.json").pipe(Be(o=>this.setMenu(o.menu))).subscribe({next:()=>{this.setPermissions(),i()},error:o=>{console.error("Error loading menu:",o),this.setPermissions(),i()}})})}setMenu(i){this.menuService.addNamespace(i,"menu"),this.menuService.set(i)}setPermissions(){let i=this.oidcAuth.getUserRoles();console.log("StartupService: User roles from token:",i);let r=["canAdd","canDelete","canEdit","canRead"];this.rolesService.flushRoles(),i.length>0?(this.permissonsService.loadPermissions(r),console.log("StartupService: Loaded permissions:",r),i.includes("HRAdmin")&&(this.rolesService.addRoles({HRAdmin:r}),console.log("StartupService: Added HRAdmin role with permissions:",r)),i.includes("Manager")&&(this.rolesService.addRoles({Manager:r}),console.log("StartupService: Added Manager role with permissions:",r)),i.includes("Employee")&&(this.rolesService.addRoles({Employee:["canRead"]}),console.log("StartupService: Added Employee role with canRead permission"))):(console.log("StartupService: No roles found - setting Guest permissions"),this.permissonsService.loadPermissions(["canRead"]),this.rolesService.addRoles({Guest:["canRead"]}))}};n.\u0275fac=function(r){return new(r||n)},n.\u0275prov=O({token:n,factory:n.\u0275fac,providedIn:"root"});let t=n;return t})();var Gz=(()=>{let n=class n{constructor(){this.document=u(ge),this.selector="globalLoader"}getElement(){return this.document.getElementById(this.selector)}hide(){let i=this.getElement();i&&(i.addEventListener("transitionend",()=>{i.className="global-loader-hidden"}),i.classList.contains("global-loader-hidden")||(i.className+=" global-loader-fade-out"))}};n.\u0275fac=function(r){return new(r||n)},n.\u0275prov=O({token:n,factory:n.\u0275fac,providedIn:"root"});let t=n;return t})();var qz=(()=>{let n=class n{constructor(){this.translate=u(ia),this.settings=u(aa)}load(){return new Promise(i=>{let r=this.settings.getTranslateLang();this.translate.setFallbackLang(r),this.translate.use(r).subscribe({next:()=>console.log(`Successfully initialized '${r}' language.'`),error:()=>console.error(`Problem with '${r}' language initialization.'`),complete:()=>i()})})}};n.\u0275fac=function(r){return new(r||n)},n.\u0275prov=O({token:n,factory:n.\u0275fac,providedIn:"root"});let t=n;return t})();function Yz(t,n){return n(t)}var CI=new T("BASE_URL");function vpe(t){return new RegExp("^http(s)?://","i").test(t)}function Qz(t,n){let e=u(CI,{optional:!0}),i=o=>e&&vpe(o),r=o=>[e?.replace(/\/$/g,""),o.replace(/^\.?\//,"")].filter(a=>a).join("/");return i(t.url)===!1?n(t.clone({url:r(t.url)})):n(t)}function Kz(t,n){let e=u(aa);return n(t.clone({headers:t.headers.append("Accept-Language",e.getTranslateLang())}))}function Zz(t,n){let e=u(Rg);return t.url.includes("/api/")?n(t).pipe(Mt(i=>{if(i instanceof nl){let r=i.body;if(r&&"code"in r&&r.code!==0)return r.msg&&e.error(r.msg),Wn(()=>[])}return Q(i)})):n(t)}var h_=(function(t){return t[t.UNAUTHORIZED=401]="UNAUTHORIZED",t[t.FORBIDDEN=403]="FORBIDDEN",t[t.NOT_FOUND=404]="NOT_FOUND",t[t.INTERNAL_SERVER_ERROR=500]="INTERNAL_SERVER_ERROR",t})(h_||{});function Xz(t,n){let e=u(Re),i=u(Rg),r=[h_.FORBIDDEN,h_.NOT_FOUND,h_.INTERNAL_SERVER_ERROR],o=a=>a.error?.message?a.error.message:a.error?.msg?a.error.msg:a.status===0?"Network error - please check your connection":`${a.status} ${a.statusText}`;return n(t).pipe(fi(a=>a.status===0?(console.warn("Network error (possible CORS issue):",a),Wn(()=>a)):(r.includes(a.status)?e.navigateByUrl(`/${a.status}`,{skipLocationChange:!0}):(console.error("ERROR",a),i.error(o(a)),a.status===h_.UNAUTHORIZED&&console.warn("Unauthorized access - authentication required")),Wn(()=>a))))}function Jz(t,n){let e=u(uz),i=Date.now(),r;return n(t).pipe(Be({next:o=>r=o instanceof nl?"succeeded":"",error:o=>r="failed"}),Hr(()=>{let o=Date.now()-i,a=`${t.method} "${t.urlWithParams}" ${r} in ${o} ms.`;e.add(a)}))}var e8=[Yz,Qz,Kz,Zz,Xz,Jz];var qC=["*"],ype=["content"],xpe=[[["mat-drawer"]],[["mat-drawer-content"]],"*"],Cpe=["mat-drawer","mat-drawer-content","*"];function wpe(t,n){if(t&1){let e=Y();h(0,"div",1),S("click",function(){I(e);let r=C();return A(r._onBackdropClicked())}),p()}if(t&2){let e=C();G("mat-drawer-shown",e._isShowingBackdrop())}}function Dpe(t,n){t&1&&(h(0,"mat-drawer-content"),oe(1,2),p())}var Epe=[[["mat-sidenav"]],[["mat-sidenav-content"]],"*"],Mpe=["mat-sidenav","mat-sidenav-content","*"];function kpe(t,n){if(t&1){let e=Y();h(0,"div",1),S("click",function(){I(e);let r=C();return A(r._onBackdropClicked())}),p()}if(t&2){let e=C();G("mat-drawer-shown",e._isShowingBackdrop())}}function Spe(t,n){t&1&&(h(0,"mat-sidenav-content"),oe(1,2),p())}var Tpe=`.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:.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} -`;var Ipe=new T("MAT_DRAWER_DEFAULT_AUTOSIZE",{providedIn:"root",factory:Ape}),EI=new T("MAT_DRAWER_CONTAINER");function Ape(){return!1}var WC=(()=>{class t extends Pa{_platform=u(qe);_changeDetectorRef=u(ye);_container=u(DI);constructor(){let e=u(q),i=u(ws),r=u(ae);super(e,i,r)}ngAfterContentInit(){this._container._contentMarginChanges.subscribe(()=>{this._changeDetectorRef.markForCheck()})}_shouldBeHidden(){if(this._platform.isBrowser)return!1;let{start:e,end:i}=this._container;return e!=null&&e.mode!=="over"&&e.opened||i!=null&&i.mode!=="over"&&i.opened}static \u0275fac=function(i){return new(i||t)};static \u0275cmp=E({type:t,selectors:[["mat-drawer-content"]],hostAttrs:[1,"mat-drawer-content"],hostVars:6,hostBindings:function(i,r){i&2&&(Dt("margin-left",r._container._contentMargins.left,"px")("margin-right",r._container._contentMargins.right,"px"),G("mat-drawer-content-hidden",r._shouldBeHidden()))},features:[Ce([{provide:Pa,useExisting:t}]),le],ngContentSelectors:qC,decls:1,vars:0,template:function(i,r){i&1&&(Me(),oe(0))},encapsulation:2,changeDetection:0})}return t})(),wI=(()=>{class t{_elementRef=u(q);_focusTrapFactory=u(Qm);_focusMonitor=u(Yt);_platform=u(qe);_ngZone=u(ae);_renderer=u(je);_interactivityChecker=u(ac);_doc=u(ge);_container=u(EI,{optional:!0});_focusTrap=null;_elementFocusedBeforeDrawerWasOpened=null;_eventCleanups;_isAttached;_anchor;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=Ai(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=Ai(e)),this._autoFocus=e}_autoFocus;get opened(){return this._opened()}set opened(e){this.toggle(Ai(e))}_opened=he(!1);_openedVia;_animationStarted=new z;_animationEnd=new z;openedChange=new U(!0);_openedStream=this.openedChange.pipe(ce(e=>e),se(()=>{}));openedStart=this._animationStarted.pipe(ce(()=>this.opened),Gu(void 0));_closedStream=this.openedChange.pipe(ce(e=>!e),se(()=>{}));closedStart=this._animationStarted.pipe(ce(()=>!this.opened),Gu(void 0));_destroyed=new z;onPositionChanged=new U;_content;_modeChanged=new z;_injector=u(de);_changeDetectorRef=u(ye);constructor(){this.openedChange.pipe(Te(this._destroyed)).subscribe(e=>{e?(this._elementFocusedBeforeDrawerWasOpened=this._doc.activeElement,this._takeFocus()):this._isFocusWithinDrawer()&&this._restoreFocus(this._openedVia||"program")}),this._ngZone.runOutsideAngular(()=>{let e=this._elementRef.nativeElement;zs(e,"keydown").pipe(ce(i=>i.keyCode===27&&!this.disableClose&&!Ft(i)),Te(this._destroyed)).subscribe(i=>this._ngZone.run(()=>{this.close(),i.stopPropagation(),i.preventDefault()})),this._eventCleanups=[this._renderer.listen(e,"transitionrun",this._handleTransitionEvent),this._renderer.listen(e,"transitionend",this._handleTransitionEvent),this._renderer.listen(e,"transitioncancel",this._handleTransitionEvent)]}),this._animationEnd.subscribe(()=>{this.openedChange.emit(this.opened)})}_forceFocus(e,i){this._interactivityChecker.isFocusable(e)||(e.tabIndex=-1,this._ngZone.runOutsideAngular(()=>{let r=()=>{o(),a(),e.removeAttribute("tabindex")},o=this._renderer.listen(e,"blur",r),a=this._renderer.listen(e,"mousedown",r)})),e.focus(i)}_focusByCssSelector(e,i){let r=this._elementRef.nativeElement.querySelector(e);r&&this._forceFocus(r,i)}_takeFocus(){if(!this._focusTrap)return;let e=this._elementRef.nativeElement;switch(this.autoFocus){case!1:case"dialog":return;case!0:case"first-tabbable":pt(()=>{!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,i){e&&i&&(this._openedVia=i);let r=this._setOpen(e,!e&&this._isFocusWithinDrawer(),this._openedVia||"program");return e||(this._openedVia=null),r}_setOpen(e,i,r){return e===this.opened?Promise.resolve(e?"open":"close"):(this._opened.set(e),this._container?._transitionsEnabled?this._setIsAnimating(!0):setTimeout(()=>{this._animationStarted.next(),this._animationEnd.next()}),this._elementRef.nativeElement.classList.toggle("mat-drawer-opened",e),!e&&i&&this._restoreFocus(r),this._changeDetectorRef.markForCheck(),this._updateFocusTrapState(),new Promise(o=>{this.openedChange.pipe(lt(1)).subscribe(a=>o(a?"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._container?.hasBackdrop&&this.opened)}_updatePositionInParent(e){if(!this._platform.isBrowser)return;let i=this._elementRef.nativeElement,r=i.parentNode;e==="end"?(this._anchor||(this._anchor=this._doc.createComment("mat-drawer-anchor"),r.insertBefore(this._anchor,i)),r.appendChild(i)):this._anchor&&this._anchor.parentNode.insertBefore(i,this._anchor)}_handleTransitionEvent=e=>{let i=this._elementRef.nativeElement;e.target===i&&this._ngZone.run(()=>{e.type==="transitionrun"?this._animationStarted.next(e):(e.type==="transitionend"&&this._setIsAnimating(!1),this._animationEnd.next(e))})};static \u0275fac=function(i){return new(i||t)};static \u0275cmp=E({type:t,selectors:[["mat-drawer"]],viewQuery:function(i,r){if(i&1&&ie(ype,5),i&2){let o;B(o=j())&&(r._content=o.first)}},hostAttrs:[1,"mat-drawer"],hostVars:12,hostBindings:function(i,r){i&2&&(X("align",null)("tabIndex",r.mode!=="side"?"-1":null),Dt("visibility",!r._container&&!r.opened?"hidden":null),G("mat-drawer-end",r.position==="end")("mat-drawer-over",r.mode==="over")("mat-drawer-push",r.mode==="push")("mat-drawer-side",r.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:qC,decls:3,vars:0,consts:[["content",""],["cdkScrollable","",1,"mat-drawer-inner-container"]],template:function(i,r){i&1&&(Me(),h(0,"div",1,0),oe(2),p())},dependencies:[Pa],encapsulation:2,changeDetection:0})}return t})(),DI=(()=>{class t{_dir=u(Vt,{optional:!0});_element=u(q);_ngZone=u(ae);_changeDetectorRef=u(ye);_animationDisabled=Ye();_transitionsEnabled=!1;_allDrawers;_drawers=new pr;_content;_userContent;get start(){return this._start}get end(){return this._end}get autosize(){return this._autosize}set autosize(e){this._autosize=Ai(e)}_autosize=u(Ipe);get hasBackdrop(){return this._drawerHasBackdrop(this._start)||this._drawerHasBackdrop(this._end)}set hasBackdrop(e){this._backdropOverride=e==null?null:Ai(e)}_backdropOverride;backdropClick=new U;_start;_end;_left;_right;_destroyed=new z;_doCheckSubject=new z;_contentMargins={left:null,right:null};_contentMarginChanges=new z;get scrollable(){return this._userContent||this._content}_injector=u(de);constructor(){let e=u(qe),i=u(Xn);this._dir?.change.pipe(Te(this._destroyed)).subscribe(()=>{this._validateDrawers(),this.updateContentMargins()}),i.change().pipe(Te(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(He(this._allDrawers),Te(this._destroyed)).subscribe(e=>{this._drawers.reset(e.filter(i=>!i._container||i._container===this)),this._drawers.notifyOnChanges()}),this._drawers.changes.pipe(He(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(Rt(10),Te(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,i=0;if(this._left&&this._left.opened){if(this._left.mode=="side")e+=this._left._getWidth();else if(this._left.mode=="push"){let r=this._left._getWidth();e+=r,i-=r}}if(this._right&&this._right.opened){if(this._right.mode=="side")i+=this._right._getWidth();else if(this._right.mode=="push"){let r=this._right._getWidth();i+=r,e-=r}}e=e||null,i=i||null,(e!==this._contentMargins.left||i!==this._contentMargins.right)&&(this._contentMargins={left:e,right:i},this._ngZone.run(()=>this._contentMarginChanges.next(this._contentMargins)))}ngDoCheck(){this._autosize&&this._isPushed()&&this._ngZone.runOutsideAngular(()=>this._doCheckSubject.next())}_watchDrawerToggle(e){e._animationStarted.pipe(Te(this._drawers.changes)).subscribe(()=>{this.updateContentMargins(),this._changeDetectorRef.markForCheck()}),e.mode!=="side"&&e.openedChange.pipe(Te(this._drawers.changes)).subscribe(()=>this._setContainerClass(e.opened))}_watchDrawerPosition(e){e.onPositionChanged.pipe(Te(this._drawers.changes)).subscribe(()=>{pt({read:()=>this._validateDrawers()},{injector:this._injector})})}_watchDrawerMode(e){e._modeChanged.pipe(Te(Je(this._drawers.changes,this._destroyed))).subscribe(()=>{this.updateContentMargins(),this._changeDetectorRef.markForCheck()})}_setContainerClass(e){let i=this._element.nativeElement.classList,r="mat-drawer-container-has-open";e?i.add(r):i.remove(r)}_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(i){return new(i||t)};static \u0275cmp=E({type:t,selectors:[["mat-drawer-container"]],contentQueries:function(i,r,o){if(i&1&&(xe(o,WC,5),xe(o,wI,5)),i&2){let a;B(a=j())&&(r._content=a.first),B(a=j())&&(r._allDrawers=a)}},viewQuery:function(i,r){if(i&1&&ie(WC,5),i&2){let o;B(o=j())&&(r._userContent=o.first)}},hostAttrs:[1,"mat-drawer-container"],hostVars:2,hostBindings:function(i,r){i&2&&G("mat-drawer-container-explicit-backdrop",r._backdropOverride)},inputs:{autosize:"autosize",hasBackdrop:"hasBackdrop"},outputs:{backdropClick:"backdropClick"},exportAs:["matDrawerContainer"],features:[Ce([{provide:EI,useExisting:t}])],ngContentSelectors:Cpe,decls:4,vars:2,consts:[[1,"mat-drawer-backdrop",3,"mat-drawer-shown"],[1,"mat-drawer-backdrop",3,"click"]],template:function(i,r){i&1&&(Me(xpe),N(0,wpe,1,2,"div",0),oe(1),oe(2,1),N(3,Dpe,2,0,"mat-drawer-content")),i&2&&(L(r.hasBackdrop?0:-1),g(3),L(r._content?-1:3))},dependencies:[WC],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:.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 t})(),GC=(()=>{class t extends WC{static \u0275fac=(()=>{let e;return function(r){return(e||(e=fe(t)))(r||t)}})();static \u0275cmp=E({type:t,selectors:[["mat-sidenav-content"]],hostAttrs:[1,"mat-drawer-content","mat-sidenav-content"],features:[Ce([{provide:Pa,useExisting:t}]),le],ngContentSelectors:qC,decls:1,vars:0,template:function(i,r){i&1&&(Me(),oe(0))},encapsulation:2,changeDetection:0})}return t})(),MI=(()=>{class t extends wI{get fixedInViewport(){return this._fixedInViewport}set fixedInViewport(e){this._fixedInViewport=Ai(e)}_fixedInViewport=!1;get fixedTopGap(){return this._fixedTopGap}set fixedTopGap(e){this._fixedTopGap=Ln(e)}_fixedTopGap=0;get fixedBottomGap(){return this._fixedBottomGap}set fixedBottomGap(e){this._fixedBottomGap=Ln(e)}_fixedBottomGap=0;static \u0275fac=(()=>{let e;return function(r){return(e||(e=fe(t)))(r||t)}})();static \u0275cmp=E({type:t,selectors:[["mat-sidenav"]],hostAttrs:[1,"mat-drawer","mat-sidenav"],hostVars:16,hostBindings:function(i,r){i&2&&(X("tabIndex",r.mode!=="side"?"-1":null)("align",null),Dt("top",r.fixedInViewport?r.fixedTopGap:null,"px")("bottom",r.fixedInViewport?r.fixedBottomGap:null,"px"),G("mat-drawer-end",r.position==="end")("mat-drawer-over",r.mode==="over")("mat-drawer-push",r.mode==="push")("mat-drawer-side",r.mode==="side")("mat-sidenav-fixed",r.fixedInViewport))},inputs:{fixedInViewport:"fixedInViewport",fixedTopGap:"fixedTopGap",fixedBottomGap:"fixedBottomGap"},exportAs:["matSidenav"],features:[Ce([{provide:wI,useExisting:t}]),le],ngContentSelectors:qC,decls:3,vars:0,consts:[["content",""],["cdkScrollable","",1,"mat-drawer-inner-container"]],template:function(i,r){i&1&&(Me(),h(0,"div",1,0),oe(2),p())},dependencies:[Pa],encapsulation:2,changeDetection:0})}return t})(),t8=(()=>{class t extends DI{_allDrawers=void 0;_content=void 0;static \u0275fac=(()=>{let e;return function(r){return(e||(e=fe(t)))(r||t)}})();static \u0275cmp=E({type:t,selectors:[["mat-sidenav-container"]],contentQueries:function(i,r,o){if(i&1&&(xe(o,GC,5),xe(o,MI,5)),i&2){let a;B(a=j())&&(r._content=a.first),B(a=j())&&(r._allDrawers=a)}},hostAttrs:[1,"mat-drawer-container","mat-sidenav-container"],hostVars:2,hostBindings:function(i,r){i&2&&G("mat-drawer-container-explicit-backdrop",r._backdropOverride)},exportAs:["matSidenavContainer"],features:[Ce([{provide:EI,useExisting:t},{provide:DI,useExisting:t}]),le],ngContentSelectors:Mpe,decls:4,vars:2,consts:[[1,"mat-drawer-backdrop",3,"mat-drawer-shown"],[1,"mat-drawer-backdrop",3,"click"]],template:function(i,r){i&1&&(Me(Epe),N(0,kpe,1,2,"div",0),oe(1),oe(2,1),N(3,Spe,2,0,"mat-sidenav-content")),i&2&&(L(r.hasBackdrop?0:-1),g(3),L(r._content?-1:3))},dependencies:[GC],styles:[Tpe],encapsulation:2,changeDetection:0})}return t})(),i8=(()=>{class t{static \u0275fac=function(i){return new(i||t)};static \u0275mod=ee({type:t});static \u0275inj=J({imports:[we,vr,vr,we]})}return t})();function Rpe(t,n){t&1&&ai(0,"div",3)}function Ppe(t,n){t&1&&(ft(0,"div",4),ai(1,"div",5),vt())}var Fpe={min:8,max:100,speed:200,debounceTime:0,trickleSpeed:300,fadeOutSpeed:50,relative:!1,flat:!1,spinner:!1,direction:"ltr+",spinnerPosition:"right",trickleFunc:t=>t>=0&&t<20?10:t>=20&&t<50?4:t>=50&&t<80?2:t>=80&&t<99?.5:0},n8=new T("NG_PROGRESS_OPTIONS",{providedIn:"root",factory:()=>Fpe});var YC=(function(t){return t.START="START",t.COMPLETE="COMPLETE",t})(YC||{});function Npe(t){let n=ct(t)||0;return n<100&&n>=0?n:0}function Lpe(t){let n=ct(t)||100;return n>0&&n<=100?n:100}var QC=(()=>{let n=class n{constructor(){this.defaultOptions=u(n8),this.min=ne(this.defaultOptions.min,{transform:Npe}),this.max=ne(this.defaultOptions.max,{transform:Lpe}),this.speed=ne(this.defaultOptions.speed,{transform:ct}),this.trickleSpeed=ne(this.defaultOptions.trickleSpeed,{transform:ct}),this.fadeOutSpeed=ne(this.defaultOptions.fadeOutSpeed,{transform:ct}),this.debounceTime=ne(this.defaultOptions.debounceTime,{transform:ct}),this.trickleFunc=ne(this.defaultOptions.trickleFunc),this.config=Zt(()=>({max:this.max(),min:this.min(),speed:this.speed(),trickleSpeed:this.trickleSpeed(),fadeOutSpeed:this.fadeOutSpeed(),trickleFunc:this.trickleFunc(),debounceTime:this.debounceTime()})),this._progress=he(0),this._active=he(!1),this.active=Zt(()=>this._active()),this.progress=Zt(()=>this._progress()),this.started=bi(),this.completed=bi(),this._trigger=new tt(null);let i;Ar(r=>{let o=this.config();Ti(()=>{i=this._trigger.pipe(ce(a=>!!a),$e(a=>a===YC.START?qa(o.debounceTime).pipe($e(()=>this.onTrickling(o))):this.onComplete(o))).subscribe(),r(()=>i?.unsubscribe())})})}start(){this.started.emit(),this._trigger.next(YC.START),this._active.set(!0)}complete(){this._trigger.next(YC.COMPLETE)}inc(i){let r=this.progress();this.active()?(typeof i!="number"&&(i=this.config().trickleFunc(r)),this.set(r+i)):this.start()}set(i){this._active.set(!0),this._progress.set(this.clamp(i))}clamp(i){return Math.max(this.config().min,Math.min(this.config().max,i))}onTrickling(i){return this.active()||this.set(i.min),qa(0,i.trickleSpeed).pipe(Be(()=>this.inc()))}onComplete(i){return this.active()?(this.completed.emit(),Q({}).pipe(Be(()=>this._progress.set(100)),pa(i.speed+140),Be(()=>this._active.set(!1)),pa(i.fadeOutSpeed),Hr(()=>this._progress.set(0)),Te(pz(this.started)))):Fi}};n.\u0275fac=function(r){return new(r||n)},n.\u0275dir=F({type:n,selectors:[["","ngProgressRef",""]],inputs:{min:[1,"min"],max:[1,"max"],speed:[1,"speed"],trickleSpeed:[1,"trickleSpeed"],fadeOutSpeed:[1,"fadeOutSpeed"],debounceTime:[1,"debounceTime"],trickleFunc:[1,"trickleFunc"]},outputs:{started:"started",completed:"completed"},exportAs:["ngProgressRef"]});let t=n;return t})(),r8=(()=>{let n=class n{constructor(){this.config=u(n8),this.progressRef=u(QC,{host:!0,self:!0}),this.flat=ne(this.config.flat,{transform:V}),this.spinner=ne(this.config.spinner,{transform:V}),this.relative=ne(this.config.relative,{transform:V}),this.spinnerPosition=ne(this.config.spinnerPosition),this.direction=ne(this.config.direction),this.progressTransform=Zt(()=>`translate3d(${this.progressRef.progress()}%,0,0)`)}};n.\u0275fac=function(r){return new(r||n)},n.\u0275cmp=E({type:n,selectors:[["ng-progress"]],hostAttrs:["role","progressbar"],hostVars:12,hostBindings:function(r,o){r&2&&(X("spinnerPosition",o.spinnerPosition())("direction",o.direction()),Dt("--_ng-progress-speed",o.progressRef.speed()+"ms")("--_ng-progress-fade-out-speed",o.progressRef.fadeOutSpeed()+"ms"),G("ng-progress-bar",!0)("ng-progress-bar-active",o.progressRef.active())("ng-progress-bar-relative",o.relative()))},inputs:{flat:[1,"flat"],spinner:[1,"spinner"],relative:[1,"relative"],spinnerPosition:[1,"spinnerPosition"],direction:[1,"direction"]},exportAs:["ngProgress"],features:[ym([{directive:QC,inputs:["min","min","max","max","speed","speed","trickleSpeed","trickleSpeed","fadeOutSpeed","fadeOutSpeed","debounceTime","debounceTime"],outputs:["started","started","completed","completed"]}])],decls:5,vars:4,consts:[[1,"ng-progress-bar-wrapper"],[1,"ng-bar-placeholder"],[1,"ng-bar"],[1,"ng-meteor"],[1,"ng-spinner"],[1,"ng-spinner-icon"]],template:function(r,o){r&1&&(ft(0,"div",0)(1,"div",1)(2,"div",2),N(3,Rpe,1,0,"div",3),vt()(),N(4,Ppe,2,0,"div",4),vt()),r&2&&(g(2),Dt("transform",o.progressTransform()),g(),L(o.flat()?-1:3),g(),L(o.spinner()?4:-1))},styles:['[_nghost-%COMP%]{--_ng-progress-thickness: var(--ng-progress-thickness, 2);--_ng-progress-thickness-px: calc(var(--_ng-progress-thickness) * 1px);--_ng-progress-thickness-add-one: calc(var(--_ng-progress-thickness) + 1);--_ng-progress-meteor-position-px: calc(var(--_ng-progress-thickness-add-one) * -1px);--_ng-progress-color: var(--ng-progress-color, #1B95E0);--_ng-progress-holder-color: var(--ng-progress-holder-color, transparent);--_ng-progress-ease: var(--ng-progress-ease, linear);--_ng-progress-spinner-thickness: var(--ng-progress-spinner-thickness, 2);--_ng-progress-spinner-thickness-px: calc(var(--_ng-progress-spinner-thickness) * 1px);--_ng-progress-spinner-spacing: var(--ng-progress-spinner-spacing, 15);--_ng-progress-spinner-spacing-px: calc(var(--_ng-progress-spinner-spacing) * 1px);--_ng-progress-spinner-size: var(--ng-progress-spinner-size, 18);--_ng-progress-spinner-size-px: calc(var(--_ng-progress-spinner-size) * 1px);--_ng-progress-spinner-speed: var(--ng-progress-spinner-speed, .25s);z-index:999999;pointer-events:none}.ng-progress-bar-active[_nghost-%COMP%] .ng-progress-bar-wrapper[_ngcontent-%COMP%]{filter:alpha(opacity=100);opacity:1;transition:none}.ng-progress-bar-active[_nghost-%COMP%] .ng-bar[_ngcontent-%COMP%]{transition:all var(--_ng-progress-speed) var(--_ng-progress-ease)}.ng-progress-bar-relative[_nghost-%COMP%] .ng-progress-bar-wrapper[_ngcontent-%COMP%]{position:relative}[direction="ltr+"][_nghost-%COMP%] .ng-meteor[_ngcontent-%COMP%], [direction=ltr-][_nghost-%COMP%] .ng-meteor[_ngcontent-%COMP%]{rotate:calc(var(--_ng-progress-thickness-add-one) * 1deg)}[direction="ltr+"][_nghost-%COMP%] .ng-bar[_ngcontent-%COMP%], [direction="rtl+"][_nghost-%COMP%] .ng-bar[_ngcontent-%COMP%]{margin-left:-100%}[direction="ltr+"][_nghost-%COMP%] .ng-meteor[_ngcontent-%COMP%], [direction="rtl+"][_nghost-%COMP%] .ng-meteor[_ngcontent-%COMP%]{right:0}[direction="ltr+"][_nghost-%COMP%] .ng-meteor[_ngcontent-%COMP%], [direction=rtl-][_nghost-%COMP%] .ng-meteor[_ngcontent-%COMP%]{top:var(--_ng-progress-meteor-position-px)}[direction=ltr-][_nghost-%COMP%] .ng-meteor[_ngcontent-%COMP%], [direction="rtl+"][_nghost-%COMP%] .ng-meteor[_ngcontent-%COMP%]{bottom:var(--_ng-progress-meteor-position-px)}[direction=ltr-][_nghost-%COMP%] .ng-bar-placeholder[_ngcontent-%COMP%], [direction="rtl+"][_nghost-%COMP%] .ng-bar-placeholder[_ngcontent-%COMP%]{transform:rotate(180deg)}[direction=ltr-][_nghost-%COMP%] .ng-spinner-icon[_ngcontent-%COMP%], [direction="rtl+"][_nghost-%COMP%] .ng-spinner-icon[_ngcontent-%COMP%]{animation-direction:reverse}[direction="rtl+"][_nghost-%COMP%] .ng-meteor[_ngcontent-%COMP%], [direction=rtl-][_nghost-%COMP%] .ng-meteor[_ngcontent-%COMP%]{rotate:calc(var(--_ng-progress-thickness-add-one) * -1deg)}[_nghost-%COMP%] .ng-spinner[_ngcontent-%COMP%]{top:var(--_ng-progress-spinner-spacing-px)}[spinnerPosition=left][_nghost-%COMP%] .ng-spinner[_ngcontent-%COMP%]{left:var(--_ng-progress-spinner-spacing-px)}[spinnerPosition=right][_nghost-%COMP%] .ng-spinner[_ngcontent-%COMP%]{right:var(--_ng-progress-spinner-spacing-px)}.ng-progress-bar-wrapper[_ngcontent-%COMP%]{position:fixed;z-index:999999;top:0;left:0;width:100%;transform:scale(1);filter:alpha(opacity=0);opacity:0;transition:opacity var(--_ng-progress-fade-out-speed) linear}.ng-bar-placeholder[_ngcontent-%COMP%]{position:absolute;height:var(--_ng-progress-thickness-px);width:100%}.ng-bar[_ngcontent-%COMP%]{width:100%;height:100%;transform:translate(-100%,0,0);background:var(--_ng-progress-color)}.ng-meteor[_ngcontent-%COMP%]{display:block;position:absolute;width:100px;height:100%;opacity:1;box-shadow:0 0 10px var(--_ng-progress-color),0 0 5px var(--_ng-progress-color)}.ng-spinner[_ngcontent-%COMP%]{position:absolute;display:block;z-index:1031;top:10px}.ng-spinner-icon[_ngcontent-%COMP%]{box-sizing:border-box;animation:_ngcontent-%COMP%_spinner-animation var(--_ng-progress-spinner-speed) linear infinite;border-style:solid;border-color:transparent;border-radius:50%;border-top-color:var(--_ng-progress-color);border-left-color:var(--_ng-progress-color);width:var(--_ng-progress-spinner-size-px);height:var(--_ng-progress-spinner-size-px);border-width:var(--_ng-progress-spinner-thickness-px)}@keyframes _ngcontent-%COMP%_spinner-animation{0%{transform:rotate(0)}to{transform:rotate(360deg)}}'],changeDetection:0});let t=n;return t})();var Vpe={minDuration:0,startEvents:[ps],completeEvents:[vi,qo,tc]},Bpe=new T("NG_PROGRESS_ROUTER_OPTIONS",{providedIn:"root",factory:()=>Vpe});function o8(t,n){return n.some(e=>t instanceof e)}var jpe=(()=>{let n=class n{constructor(){this.router=u(Re),this.config=u(Bpe),this.progressRef=u(QC,{host:!0,self:!0});let i;this.router.events.pipe(ce(r=>o8(r,[...this.config.startEvents,...this.config.completeEvents])),se(r=>o8(r,this.config.startEvents)),Be(r=>{clearTimeout(i),r?this.progressRef.start():i=setTimeout(()=>{this.progressRef.complete()},this.config.minDuration)}),ku()).subscribe()}};n.\u0275fac=function(r){return new(r||n)},n.\u0275dir=F({type:n});let t=n;return t})(),a8=(()=>{let n=class n extends jpe{};n.\u0275fac=(()=>{let i;return function(o){return(i||(i=fe(n)))(o||n)}})(),n.\u0275dir=F({type:n,selectors:[["ng-progress","ngProgressRouter",""]],features:[le]});let t=n;return t})();var Hpe=["*",[["mat-toolbar-row"]]],zpe=["*","mat-toolbar-row"],Upe=(()=>{class t{static \u0275fac=function(i){return new(i||t)};static \u0275dir=F({type:t,selectors:[["mat-toolbar-row"]],hostAttrs:[1,"mat-toolbar-row"],exportAs:["matToolbarRow"]})}return t})(),KC=(()=>{class t{_elementRef=u(q);_platform=u(qe);_document=u(ge);color;_toolbarRows;constructor(){}ngAfterViewInit(){this._platform.isBrowser&&(this._checkToolbarMixedModes(),this._toolbarRows.changes.subscribe(()=>this._checkToolbarMixedModes()))}_checkToolbarMixedModes(){this._toolbarRows.length}static \u0275fac=function(i){return new(i||t)};static \u0275cmp=E({type:t,selectors:[["mat-toolbar"]],contentQueries:function(i,r,o){if(i&1&&xe(o,Upe,5),i&2){let a;B(a=j())&&(r._toolbarRows=a)}},hostAttrs:[1,"mat-toolbar"],hostVars:6,hostBindings:function(i,r){i&2&&(it(r.color?"mat-"+r.color:""),G("mat-toolbar-multiple-rows",r._toolbarRows.length>0)("mat-toolbar-single-row",r._toolbarRows.length===0))},inputs:{color:"color"},exportAs:["matToolbar"],ngContentSelectors:zpe,decls:2,vars:0,template:function(i,r){i&1&&(Me(Hpe),oe(0),oe(1,1))},styles:[`.mat-toolbar{background:var(--mat-toolbar-container-background-color, var(--mat-sys-surface));color:var(--mat-toolbar-container-text-color, var(--mat-sys-on-surface))}.mat-toolbar,.mat-toolbar h1,.mat-toolbar h2,.mat-toolbar h3,.mat-toolbar h4,.mat-toolbar h5,.mat-toolbar h6{font-family:var(--mat-toolbar-title-text-font, var(--mat-sys-title-large-font));font-size:var(--mat-toolbar-title-text-size, var(--mat-sys-title-large-size));line-height:var(--mat-toolbar-title-text-line-height, var(--mat-sys-title-large-line-height));font-weight:var(--mat-toolbar-title-text-weight, var(--mat-sys-title-large-weight));letter-spacing:var(--mat-toolbar-title-text-tracking, var(--mat-sys-title-large-tracking));margin:0}@media(forced-colors: active){.mat-toolbar{outline:solid 1px}}.mat-toolbar .mat-form-field-underline,.mat-toolbar .mat-form-field-ripple,.mat-toolbar .mat-focused .mat-form-field-ripple{background-color:currentColor}.mat-toolbar .mat-form-field-label,.mat-toolbar .mat-focused .mat-form-field-label,.mat-toolbar .mat-select-value,.mat-toolbar .mat-select-arrow,.mat-toolbar .mat-form-field.mat-focused .mat-select-arrow{color:inherit}.mat-toolbar .mat-input-element{caret-color:currentColor}.mat-toolbar .mat-mdc-button-base.mat-mdc-button-base.mat-unthemed{--mat-button-text-label-text-color: var(--mat-toolbar-container-text-color, var(--mat-sys-on-surface));--mat-button-outlined-label-text-color: var(--mat-toolbar-container-text-color, var(--mat-sys-on-surface))}.mat-toolbar-row,.mat-toolbar-single-row{display:flex;box-sizing:border-box;padding:0 16px;width:100%;flex-direction:row;align-items:center;white-space:nowrap;height:var(--mat-toolbar-standard-height, 64px)}@media(max-width: 599px){.mat-toolbar-row,.mat-toolbar-single-row{height:var(--mat-toolbar-mobile-height, 56px)}}.mat-toolbar-multiple-rows{display:flex;box-sizing:border-box;flex-direction:column;width:100%;min-height:var(--mat-toolbar-standard-height, 64px)}@media(max-width: 599px){.mat-toolbar-multiple-rows{min-height:var(--mat-toolbar-mobile-height, 56px)}} -`],encapsulation:2,changeDetection:0})}return t})();var ZC=(()=>{class t{static \u0275fac=function(i){return new(i||t)};static \u0275mod=ee({type:t});static \u0275inj=J({imports:[we,we]})}return t})();var l8=[["requestFullscreen","exitFullscreen","fullscreenElement","fullscreenEnabled","fullscreenchange","fullscreenerror"],["webkitRequestFullscreen","webkitExitFullscreen","webkitFullscreenElement","webkitFullscreenEnabled","webkitfullscreenchange","webkitfullscreenerror"],["webkitRequestFullScreen","webkitCancelFullScreen","webkitCurrentFullScreenElement","webkitCancelFullScreen","webkitfullscreenchange","webkitfullscreenerror"],["mozRequestFullScreen","mozCancelFullScreen","mozFullScreenElement","mozFullScreenEnabled","mozfullscreenchange","mozfullscreenerror"],["msRequestFullscreen","msExitFullscreen","msFullscreenElement","msFullscreenEnabled","MSFullscreenChange","MSFullscreenError"]],wl=(()=>{if(typeof document>"u")return!1;let t=l8[0],n={};for(let e of l8)if(e?.[1]in document){for(let[r,o]of e.entries())n[t[r]]=o;return n}return!1})(),c8={change:wl.fullscreenchange,error:wl.fullscreenerror},So={request(t=document.documentElement,n){return new Promise((e,i)=>{let r=()=>{So.off("change",r),e()};So.on("change",r);let o=t[wl.requestFullscreen](n);o instanceof Promise&&o.then(r).catch(i)})},exit(){return new Promise((t,n)=>{if(!So.isFullscreen){t();return}let e=()=>{So.off("change",e),t()};So.on("change",e);let i=document[wl.exitFullscreen]();i instanceof Promise&&i.then(e).catch(n)})},toggle(t,n){return So.isFullscreen?So.exit():So.request(t,n)},onchange(t){So.on("change",t)},onerror(t){So.on("error",t)},on(t,n){let e=c8[t];e&&document.addEventListener(e,n,!1)},off(t,n){let e=c8[t];e&&document.removeEventListener(e,n,!1)},raw:wl};Object.defineProperties(So,{isFullscreen:{get:()=>!!document[wl.fullscreenElement]},element:{enumerable:!0,get:()=>document[wl.fullscreenElement]??void 0},isEnabled:{enumerable:!0,get:()=>!!document[wl.fullscreenEnabled]}});wl||(So={isEnabled:!1});var kI=So;function $pe(t,n){t&1&&(ft(0,"span",2),_(1,"Talent Management"),vt())}var XC=(()=>{let n=class n{constructor(){this.showName=ne(!0)}};n.\u0275fac=function(r){return new(r||n)},n.\u0275cmp=E({type:n,selectors:[["app-branding"]],inputs:{showName:[1,"showName"]},decls:3,vars:1,consts:[["href","/",1,"branding"],["src","images/matero.png","alt","logo",1,"branding-logo"],[1,"branding-name"]],template:function(r,o){r&1&&(ft(0,"a",0),ai(1,"img",1),N(2,$pe,2,0,"span",2),vt()),r&2&&(g(2),L(o.showName()?2:-1))},styles:[".branding[_ngcontent-%COMP%]{display:flex;align-items:center;margin:0 .5rem;text-decoration:none;white-space:nowrap;color:inherit;border-radius:50rem}.branding-logo[_ngcontent-%COMP%]{width:2rem;height:2rem;border-radius:50rem}.branding-name[_ngcontent-%COMP%]{margin:0 .5rem;font-size:1rem;font-weight:500}"]});let t=n;return t})();var d8=(()=>{let n=class n{};n.\u0275fac=function(r){return new(r||n)},n.\u0275cmp=E({type:n,selectors:[["app-github-button"]],decls:3,vars:0,consts:[["matIconButton","","href","https://github.com/ng-matero/ng-matero","target","_blank"],["viewBox","0 0 16 16"],["fill","currentColor","d",`M7.999,0.431c-4.285,0-7.76,3.474-7.76,7.761 c0,3.428,2.223,6.337,5.307,7.363c0.388, +`):t}function vse(t,n){let{element:e,datasetIndex:i,index:r}=n,o=t.getDatasetMeta(i).controller,{label:a,value:s}=o.getLabelAndValue(r);return{chart:t,label:a,parsed:o.getParsed(r),raw:t.data.datasets[i].data[r],formattedValue:s,dataset:o.getDataset(),dataIndex:r,datasetIndex:i,element:e}}function U4(t,n){let e=t.chart.ctx,{body:i,footer:r,title:o}=t,{boxWidth:a,boxHeight:s}=n,l=fn(n.bodyFont),c=fn(n.titleFont),d=fn(n.footerFont),p=o.length,_=r.length,b=i.length,y=cr(n.padding),w=y.height,C=0,D=i.reduce((Z,K)=>Z+K.before.length+K.lines.length+K.after.length,0);if(D+=t.beforeBody.length+t.afterBody.length,p&&(w+=p*c.lineHeight+(p-1)*n.titleSpacing+n.titleMarginBottom),D){let Z=n.displayColors?Math.max(s,l.lineHeight):l.lineHeight;w+=b*Z+(D-b)*l.lineHeight+(D-1)*n.bodySpacing}_&&(w+=n.footerMarginTop+_*d.lineHeight+(_-1)*n.footerSpacing);let F=0,W=function(Z){C=Math.max(C,e.measureText(Z).width+F)};return e.save(),e.font=c.string,ai(t.title,W),e.font=l.string,ai(t.beforeBody.concat(t.afterBody),W),F=n.displayColors?a+2+n.boxPadding:0,ai(i,Z=>{ai(Z.before,W),ai(Z.lines,W),ai(Z.after,W)}),F=0,e.font=d.string,ai(t.footer,W),e.restore(),C+=y.width,{width:C,height:w}}function yse(t,n){let{y:e,height:i}=n;return et.height-i/2?"bottom":"center"}function xse(t,n,e,i){let{x:r,width:o}=i,a=e.caretSize+e.caretPadding;if(t==="left"&&r+o+a>n.width||t==="right"&&r-o-a<0)return!0}function Cse(t,n,e,i){let{x:r,width:o}=e,{width:a,chartArea:{left:s,right:l}}=t,c="center";return i==="center"?c=r<=(s+l)/2?"left":"right":r<=o/2?c="left":r>=a-o/2&&(c="right"),xse(c,t,n,e)&&(c="center"),c}function $4(t,n,e){let i=e.yAlign||n.yAlign||yse(t,e);return{xAlign:e.xAlign||n.xAlign||Cse(t,n,e,i),yAlign:i}}function wse(t,n){let{x:e,width:i}=t;return n==="right"?e-=i:n==="center"&&(e-=i/2),e}function Dse(t,n,e){let{y:i,height:r}=t;return n==="top"?i+=e:n==="bottom"?i-=r+e:i-=r/2,i}function W4(t,n,e,i){let{caretSize:r,caretPadding:o,cornerRadius:a}=t,{xAlign:s,yAlign:l}=e,c=r+o,{topLeft:d,topRight:p,bottomLeft:_,bottomRight:b}=Ac(a),y=wse(n,s),w=Dse(n,l,c);return l==="center"?s==="left"?y+=c:s==="right"&&(y-=c):s==="left"?y-=Math.max(d,_)+r:s==="right"&&(y+=Math.max(p,b)+r),{x:Sn(y,0,i.width-n.width),y:Sn(w,0,i.height-n.height)}}function aC(t,n,e){let i=cr(e.padding);return n==="center"?t.x+t.width/2:n==="right"?t.x+t.width-i.right:t.x+i.left}function G4(t){return Os([],Cl(t))}function Ese(t,n,e){return yl(t,{tooltip:n,tooltipItems:e,type:"tooltip"})}function q4(t,n){let e=n&&n.dataset&&n.dataset.tooltip&&n.dataset.tooltip.callbacks;return e?t.override(e):t}var D5={beforeTitle:Is,title(t){if(t.length>0){let n=t[0],e=n.chart.data.labels,i=e?e.length:0;if(this&&this.options&&this.options.mode==="dataset")return n.dataset.label||"";if(n.label)return n.label;if(i>0&&n.dataIndex"u"?D5[n].call(e,i):r}var Y4=(()=>{class t extends za{static positioners=Jg;constructor(e){super(),this.opacity=0,this._active=[],this._eventPosition=void 0,this._size=void 0,this._cachedAnimations=void 0,this._tooltipItems=[],this.$animations=void 0,this.$context=void 0,this.chart=e.chart,this.options=e.options,this.dataPoints=void 0,this.title=void 0,this.beforeBody=void 0,this.body=void 0,this.afterBody=void 0,this.footer=void 0,this.xAlign=void 0,this.yAlign=void 0,this.x=void 0,this.y=void 0,this.height=void 0,this.width=void 0,this.caretX=void 0,this.caretY=void 0,this.labelColors=void 0,this.labelPointStyles=void 0,this.labelTextColors=void 0}initialize(e){this.options=e,this._cachedAnimations=void 0,this.$context=void 0}_resolveAnimations(){let e=this._cachedAnimations;if(e)return e;let i=this.chart,r=this.options.setContext(this.getContext()),o=r.enabled&&i.options.animation&&r.animations,a=new dC(this.chart,o);return o._cacheable&&(this._cachedAnimations=Object.freeze(a)),a}getContext(){return this.$context||(this.$context=Ese(this.chart.getContext(),this,this._tooltipItems))}getTitle(e,i){let{callbacks:r}=i,o=lo(r,"beforeTitle",this,e),a=lo(r,"title",this,e),s=lo(r,"afterTitle",this,e),l=[];return l=Os(l,Cl(o)),l=Os(l,Cl(a)),l=Os(l,Cl(s)),l}getBeforeBody(e,i){return G4(lo(i.callbacks,"beforeBody",this,e))}getBody(e,i){let{callbacks:r}=i,o=[];return ai(e,a=>{let s={before:[],lines:[],after:[]},l=q4(r,a);Os(s.before,Cl(lo(l,"beforeLabel",this,a))),Os(s.lines,lo(l,"label",this,a)),Os(s.after,Cl(lo(l,"afterLabel",this,a))),o.push(s)}),o}getAfterBody(e,i){return G4(lo(i.callbacks,"afterBody",this,e))}getFooter(e,i){let{callbacks:r}=i,o=lo(r,"beforeFooter",this,e),a=lo(r,"footer",this,e),s=lo(r,"afterFooter",this,e),l=[];return l=Os(l,Cl(o)),l=Os(l,Cl(a)),l=Os(l,Cl(s)),l}_createItems(e){let i=this._active,r=this.chart.data,o=[],a=[],s=[],l=[],c,d;for(c=0,d=i.length;ce.filter(p,_,b,r))),e.itemSort&&(l=l.sort((p,_)=>e.itemSort(p,_,r))),ai(l,p=>{let _=q4(e.callbacks,p);o.push(lo(_,"labelColor",this,p)),a.push(lo(_,"labelPointStyle",this,p)),s.push(lo(_,"labelTextColor",this,p))}),this.labelColors=o,this.labelPointStyles=a,this.labelTextColors=s,this.dataPoints=l,l}update(e,i){let r=this.options.setContext(this.getContext()),o=this._active,a,s=[];if(!o.length)this.opacity!==0&&(a={opacity:0});else{let l=Jg[r.position].call(this,o,this._eventPosition);s=this._createItems(r),this.title=this.getTitle(s,r),this.beforeBody=this.getBeforeBody(s,r),this.body=this.getBody(s,r),this.afterBody=this.getAfterBody(s,r),this.footer=this.getFooter(s,r);let c=this._size=U4(this,r),d=Object.assign({},l,c),p=$4(this.chart,r,d),_=W4(r,d,p,this.chart);this.xAlign=p.xAlign,this.yAlign=p.yAlign,a={opacity:1,x:_.x,y:_.y,width:c.width,height:c.height,caretX:l.x,caretY:l.y}}this._tooltipItems=s,this.$context=void 0,a&&this._resolveAnimations().update(this,a),e&&r.external&&r.external.call(this,{chart:this.chart,tooltip:this,replay:i})}drawCaret(e,i,r,o){let a=this.getCaretPosition(e,r,o);i.lineTo(a.x1,a.y1),i.lineTo(a.x2,a.y2),i.lineTo(a.x3,a.y3)}getCaretPosition(e,i,r){let{xAlign:o,yAlign:a}=this,{caretSize:s,cornerRadius:l}=r,{topLeft:c,topRight:d,bottomLeft:p,bottomRight:_}=Ac(l),{x:b,y}=e,{width:w,height:C}=i,D,F,W,Z,K,oe;return a==="center"?(K=y+C/2,o==="left"?(D=b,F=D-s,Z=K+s,oe=K-s):(D=b+w,F=D+s,Z=K-s,oe=K+s),W=D):(o==="left"?F=b+Math.max(c,p)+s:o==="right"?F=b+w-Math.max(d,_)-s:F=this.caretX,a==="top"?(Z=y,K=Z-s,D=F-s,W=F+s):(Z=y+C,K=Z+s,D=F+s,W=F-s),oe=Z),{x1:D,x2:F,x3:W,y1:Z,y2:K,y3:oe}}drawTitle(e,i,r){let o=this.title,a=o.length,s,l,c;if(a){let d=Su(r.rtl,this.x,this.width);for(e.x=aC(this,r.titleAlign,r),i.textAlign=d.textAlign(r.titleAlign),i.textBaseline="middle",s=fn(r.titleFont),l=r.titleSpacing,i.fillStyle=r.titleColor,i.font=s.string,c=0;cW!==0)?(e.beginPath(),e.fillStyle=a.multiKeyBackground,Gh(e,{x:C,y:w,w:d,h:c,radius:F}),e.fill(),e.stroke(),e.fillStyle=s.backgroundColor,e.beginPath(),Gh(e,{x:D,y:w+1,w:d-2,h:c-2,radius:F}),e.fill()):(e.fillStyle=a.multiKeyBackground,e.fillRect(C,w,d,c),e.strokeRect(C,w,d,c),e.fillStyle=s.backgroundColor,e.fillRect(D,w+1,d-2,c-2))}e.fillStyle=this.labelTextColors[r]}drawBody(e,i,r){let{body:o}=this,{bodySpacing:a,bodyAlign:s,displayColors:l,boxHeight:c,boxWidth:d,boxPadding:p}=r,_=fn(r.bodyFont),b=_.lineHeight,y=0,w=Su(r.rtl,this.x,this.width),C=function(Ve){i.fillText(Ve,w.x(e.x+y),e.y+b/2),e.y+=b+a},D=w.textAlign(s),F,W,Z,K,oe,ke,ve;for(i.textAlign=s,i.textBaseline="middle",i.font=_.string,e.x=aC(this,D,r),i.fillStyle=r.bodyColor,ai(this.beforeBody,C),y=l&&D!=="right"?s==="center"?d/2+p:d+2+p:0,K=0,ke=o.length;K0&&i.stroke()}_updateAnimationTarget(e){let i=this.chart,r=this.$animations,o=r&&r.x,a=r&&r.y;if(o||a){let s=Jg[e.position].call(this,this._active,this._eventPosition);if(!s)return;let l=this._size=U4(this,e),c=Object.assign({},s,this._size),d=$4(i,e,c),p=W4(e,c,d,i);(o._to!==p.x||a._to!==p.y)&&(this.xAlign=d.xAlign,this.yAlign=d.yAlign,this.width=l.width,this.height=l.height,this.caretX=s.x,this.caretY=s.y,this._resolveAnimations().update(this,p))}}_willRender(){return!!this.opacity}draw(e){let i=this.options.setContext(this.getContext()),r=this.opacity;if(!r)return;this._updateAnimationTarget(i);let o={width:this.width,height:this.height},a={x:this.x,y:this.y};r=Math.abs(r)<.001?0:r;let s=cr(i.padding),l=this.title.length||this.beforeBody.length||this.body.length||this.afterBody.length||this.footer.length;i.enabled&&l&&(e.save(),e.globalAlpha=r,this.drawBackground(a,e,o,i),CT(e,i.textDirection),a.y+=s.top,this.drawTitle(a,e,i),this.drawBody(a,e,i),this.drawFooter(a,e,i),wT(e,i.textDirection),e.restore())}getActiveElements(){return this._active||[]}setActiveElements(e,i){let r=this._active,o=e.map(({datasetIndex:l,index:c})=>{let d=this.chart.getDatasetMeta(l);if(!d)throw new Error("Cannot find a dataset at index "+l);return{datasetIndex:l,element:d.data[c],index:c}}),a=!Ug(r,o),s=this._positionChanged(o,i);(a||s)&&(this._active=o,this._eventPosition=i,this._ignoreReplayEvents=!0,this.update(!0))}handleEvent(e,i,r=!0){if(i&&this._ignoreReplayEvents)return!1;this._ignoreReplayEvents=!1;let o=this.options,a=this._active||[],s=this._getActiveElements(e,a,i,r),l=this._positionChanged(s,e),c=i||!Ug(s,a)||l;return c&&(this._active=s,(o.enabled||o.external)&&(this._eventPosition={x:e.x,y:e.y},this.update(!0,i))),c}_getActiveElements(e,i,r,o){let a=this.options;if(e.type==="mouseout")return[];if(!o)return i.filter(l=>this.chart.data.datasets[l.datasetIndex]&&this.chart.getDatasetMeta(l.datasetIndex).controller.getParsed(l.index)!==void 0);let s=this.chart.getElementsAtEventForMode(e,a.mode,a,r);return a.reverse&&s.reverse(),s}_positionChanged(e,i){let{caretX:r,caretY:o,options:a}=this,s=Jg[a.position].call(this,e,i);return s!==!1&&(r!==s.x||o!==s.y)}}return t})(),Mse={id:"tooltip",_element:Y4,positioners:Jg,afterInit(t,n,e){e&&(t.tooltip=new Y4({chart:t,options:e}))},beforeUpdate(t,n,e){t.tooltip&&t.tooltip.initialize(e)},reset(t,n,e){t.tooltip&&t.tooltip.initialize(e)},afterDraw(t){let n=t.tooltip;if(n&&n._willRender()){let e={tooltip:n};if(t.notifyPlugins("beforeTooltipDraw",Ee(k({},e),{cancelable:!0}))===!1)return;n.draw(t.ctx),t.notifyPlugins("afterTooltipDraw",e)}},afterEvent(t,n){if(t.tooltip){let e=n.replay;t.tooltip.handleEvent(n.event,e,n.inChartArea)&&(n.changed=!0)}},defaults:{enabled:!0,external:null,position:"average",backgroundColor:"rgba(0,0,0,0.8)",titleColor:"#fff",titleFont:{weight:"bold"},titleSpacing:2,titleMarginBottom:6,titleAlign:"left",bodyColor:"#fff",bodySpacing:2,bodyFont:{},bodyAlign:"left",footerColor:"#fff",footerSpacing:2,footerMarginTop:6,footerFont:{weight:"bold"},footerAlign:"left",padding:6,caretPadding:2,caretSize:5,cornerRadius:6,boxHeight:(t,n)=>n.bodyFont.size,boxWidth:(t,n)=>n.bodyFont.size,multiKeyBackground:"#fff",displayColors:!0,boxPadding:0,borderColor:"rgba(0,0,0,0)",borderWidth:0,animation:{duration:400,easing:"easeOutQuart"},animations:{numbers:{type:"number",properties:["x","y","width","height","caretX","caretY"]},opacity:{easing:"linear",duration:200}},callbacks:D5},defaultRoutes:{bodyFont:"font",footerFont:"font",titleFont:"font"},descriptors:{_scriptable:t=>t!=="filter"&&t!=="itemSort"&&t!=="external",_indexable:!1,callbacks:{_scriptable:!1,_indexable:!1},animation:{_fallback:!1},animations:{_fallback:"animation"}},additionalOptionScopes:["interaction"]},Sse=Object.freeze({__proto__:null,Colors:Bae,Decimation:Uae,Filler:cse,Legend:fse,SubTitle:bse,Title:_se,Tooltip:Mse}),kse=(t,n,e,i)=>(typeof n=="string"?(e=t.push(n)-1,i.unshift({index:e,label:n})):isNaN(n)&&(e=null),e);function Tse(t,n,e,i){let r=t.indexOf(n);if(r===-1)return kse(t,n,e,i);let o=t.lastIndexOf(n);return r!==o?e:r}var Ise=(t,n)=>t===null?null:Sn(Math.round(t),0,n);function Q4(t){let n=this.getLabels();return t>=0&&t{class t extends Iu{static id="category";static defaults={ticks:{callback:Q4}};constructor(e){super(e),this._startValue=void 0,this._valueRange=0,this._addedLabels=[]}init(e){let i=this._addedLabels;if(i.length){let r=this.getLabels();for(let{index:o,label:a}of i)r[o]===a&&r.splice(o,1);this._addedLabels=[]}super.init(e)}parse(e,i){if(Tt(e))return null;let r=this.getLabels();return i=isFinite(i)&&r[i]===e?i:Tse(r,e,lt(i,e),this._addedLabels),Ise(i,r.length-1)}determineDataLimits(){let{minDefined:e,maxDefined:i}=this.getUserBounds(),{min:r,max:o}=this.getMinMax(!0);this.options.bounds==="ticks"&&(e||(r=0),i||(o=this.getLabels().length-1)),this.min=r,this.max=o}buildTicks(){let e=this.min,i=this.max,r=this.options.offset,o=[],a=this.getLabels();a=e===0&&i===a.length-1?a:a.slice(e,i+1),this._valueRange=Math.max(a.length-(r?0:1),1),this._startValue=this.min-(r?.5:0);for(let s=e;s<=i;s++)o.push({value:s});return o}getLabelForValue(e){return Q4.call(this,e)}configure(){super.configure(),this.isHorizontal()||(this._reversePixels=!this._reversePixels)}getPixelForValue(e){return typeof e!="number"&&(e=this.parse(e)),e===null?NaN:this.getPixelForDecimal((e-this._startValue)/this._valueRange)}getPixelForTick(e){let i=this.ticks;return e<0||e>i.length-1?null:this.getPixelForValue(i[e].value)}getValueForPixel(e){return Math.round(this._startValue+this.getDecimalForPixel(e)*this._valueRange)}getBasePixel(){return this.bottom}}return t})();function Ose(t,n){let e=[],{bounds:r,step:o,min:a,max:s,precision:l,count:c,maxTicks:d,maxDigits:p,includeBounds:_}=t,b=o||1,y=d-1,{min:w,max:C}=n,D=!Tt(a),F=!Tt(s),W=!Tt(c),Z=(C-w)/(p+1),K=tT((C-w)/y/b)*b,oe,ke,ve,Ve;if(K<1e-14&&!D&&!F)return[{value:w},{value:C}];Ve=Math.ceil(C/K)-Math.floor(w/K),Ve>y&&(K=tT(Ve*K/y/b)*b),Tt(l)||(oe=Math.pow(10,l),K=Math.ceil(K*oe)/oe),r==="ticks"?(ke=Math.floor(w/K)*K,ve=Math.ceil(C/K)*K):(ke=w,ve=C),D&&F&&o&&Fj((s-a)/o,K/1e3)?(Ve=Math.round(Math.min((s-a)/K,d)),K=(s-a)/Ve,ke=a,ve=s):W?(ke=D?a:ke,ve=F?s:ve,Ve=c-1,K=(ve-ke)/Ve):(Ve=(ve-ke)/K,Uh(Ve,Math.round(Ve),K/1e3)?Ve=Math.round(Ve):Ve=Math.ceil(Ve));let yt=Math.max(nT(K),nT(ke));oe=Math.pow(10,Tt(l)?yt:l),ke=Math.round(ke*oe)/oe,ve=Math.round(ve*oe)/oe;let vt=0;for(D&&(_&&ke!==a?(e.push({value:a}),kes)break;e.push({value:Rt})}return F&&_&&ve!==s?e.length&&Uh(e[e.length-1].value,s,K4(s,Z,t))?e[e.length-1].value=s:e.push({value:s}):(!F||ve===s)&&e.push({value:ve}),e}function K4(t,n,{horizontal:e,minRotation:i}){let r=sa(i),o=(e?Math.sin(r):Math.cos(r))||.001,a=.75*n*(""+t).length;return Math.min(n/o,a)}var Kh=class extends Iu{constructor(n){super(n),this.start=void 0,this.end=void 0,this._startValue=void 0,this._endValue=void 0,this._valueRange=0}parse(n,e){return Tt(n)||(typeof n=="number"||n instanceof Number)&&!isFinite(+n)?null:+n}handleTickRangeOptions(){let{beginAtZero:n}=this.options,{minDefined:e,maxDefined:i}=this.getUserBounds(),{min:r,max:o}=this,a=l=>r=e?r:l,s=l=>o=i?o:l;if(n){let l=Ha(r),c=Ha(o);l<0&&c<0?s(0):l>0&&c>0&&a(0)}if(r===o){let l=o===0?1:Math.abs(o*.05);s(o+l),n||a(r-l)}this.min=r,this.max=o}getTickLimit(){let n=this.options.ticks,{maxTicksLimit:e,stepSize:i}=n,r;return i?(r=Math.ceil(this.max/i)-Math.floor(this.min/i)+1,r>1e3&&(console.warn(`scales.${this.id}.ticks.stepSize: ${i} would result generating up to ${r} ticks. Limiting to 1000.`),r=1e3)):(r=this.computeTickLimit(),e=e||11),e&&(r=Math.min(e,r)),r}computeTickLimit(){return Number.POSITIVE_INFINITY}buildTicks(){let n=this.options,e=n.ticks,i=this.getTickLimit();i=Math.max(2,i);let r={maxTicks:i,bounds:n.bounds,min:n.min,max:n.max,precision:e.precision,step:e.stepSize,count:e.count,maxDigits:this._maxDigits(),horizontal:this.isHorizontal(),minRotation:e.minRotation||0,includeBounds:e.includeBounds!==!1},o=this._range||this,a=Ose(r,o);return n.bounds==="ticks"&&iT(a,this,"value"),n.reverse?(a.reverse(),this.start=this.max,this.end=this.min):(this.start=this.min,this.end=this.max),a}configure(){let n=this.ticks,e=this.min,i=this.max;if(super.configure(),this.options.offset&&n.length){let r=(i-e)/Math.max(n.length-1,1)/2;e-=r,i+=r}this._startValue=e,this._endValue=i,this._valueRange=i-e}getLabelForValue(n){return Wh(n,this.chart.options.locale,this.options.ticks.format)}},JT=class extends Kh{static id="linear";static defaults={ticks:{callback:$g.formatters.numeric}};determineDataLimits(){let{min:n,max:e}=this.getMinMax(!0);this.min=Yi(n)?n:0,this.max=Yi(e)?e:1,this.handleTickRangeOptions()}computeTickLimit(){let n=this.isHorizontal(),e=n?this.width:this.height,i=sa(this.options.ticks.minRotation),r=(n?Math.sin(i):Math.cos(i))||.001,o=this._resolveTickFontOptions(0);return Math.ceil(e/Math.min(40,o.lineHeight/r))}getPixelForValue(n){return n===null?NaN:this.getPixelForDecimal((n-this._startValue)/this._valueRange)}getValueForPixel(n){return this._startValue+this.getDecimalForPixel(n)*this._valueRange}},i_=t=>Math.floor(bl(t)),Tu=(t,n)=>Math.pow(10,i_(t)+n);function Z4(t){return t/Math.pow(10,i_(t))===1}function X4(t,n,e){let i=Math.pow(10,e),r=Math.floor(t/i);return Math.ceil(n/i)-r}function Rse(t,n){let e=n-t,i=i_(e);for(;X4(t,n,i)>10;)i++;for(;X4(t,n,i)<10;)i--;return Math.min(i,i_(t))}function Pse(t,{min:n,max:e}){n=so(t.min,n);let i=[],r=i_(n),o=Rse(n,e),a=o<0?Math.pow(10,Math.abs(o)):1,s=Math.pow(10,o),l=r>o?Math.pow(10,r):0,c=Math.round((n-l)*a)/a,d=Math.floor((n-l)/s/10)*s*10,p=Math.floor((c-d)/Math.pow(10,o)),_=so(t.min,Math.round((l+d+p*Math.pow(10,o))*a)/a);for(;_=10?p=p<15?15:20:p++,p>=20&&(o++,p=2,a=o>=0?1:a),_=Math.round((l+d+p*Math.pow(10,o))*a)/a;let b=so(t.max,_);return i.push({value:b,major:Z4(b),significand:p}),i}var eI=class extends Iu{static id="logarithmic";static defaults={ticks:{callback:$g.formatters.logarithmic,major:{enabled:!0}}};constructor(n){super(n),this.start=void 0,this.end=void 0,this._startValue=void 0,this._valueRange=0}parse(n,e){let i=Kh.prototype.parse.apply(this,[n,e]);if(i===0){this._zero=!0;return}return Yi(i)&&i>0?i:null}determineDataLimits(){let{min:n,max:e}=this.getMinMax(!0);this.min=Yi(n)?Math.max(0,n):null,this.max=Yi(e)?Math.max(0,e):null,this.options.beginAtZero&&(this._zero=!0),this._zero&&this.min!==this._suggestedMin&&!Yi(this._userMin)&&(this.min=n===Tu(this.min,0)?Tu(this.min,-1):Tu(this.min,0)),this.handleTickRangeOptions()}handleTickRangeOptions(){let{minDefined:n,maxDefined:e}=this.getUserBounds(),i=this.min,r=this.max,o=s=>i=n?i:s,a=s=>r=e?r:s;i===r&&(i<=0?(o(1),a(10)):(o(Tu(i,-1)),a(Tu(r,1)))),i<=0&&o(Tu(r,-1)),r<=0&&a(Tu(i,1)),this.min=i,this.max=r}buildTicks(){let n=this.options,e={min:this._userMin,max:this._userMax},i=Pse(e,this);return n.bounds==="ticks"&&iT(i,this,"value"),n.reverse?(i.reverse(),this.start=this.max,this.end=this.min):(this.start=this.min,this.end=this.max),i}getLabelForValue(n){return n===void 0?"0":Wh(n,this.chart.options.locale,this.options.ticks.format)}configure(){let n=this.min;super.configure(),this._startValue=bl(n),this._valueRange=bl(this.max)-bl(n)}getPixelForValue(n){return(n===void 0||n===0)&&(n=this.min),n===null||isNaN(n)?NaN:this.getPixelForDecimal(n===this.min?0:(bl(n)-this._startValue)/this._valueRange)}getValueForPixel(n){let e=this.getDecimalForPixel(n);return Math.pow(10,this._startValue+e*this._valueRange)}};function tI(t){let n=t.ticks;if(n.display&&t.display){let e=cr(n.backdropPadding);return lt(n.font&&n.font.size,Di.font.size)+e.height}return 0}function Fse(t,n,e){return e=Ti(e)?e:[e],{w:$j(t,n.string,e),h:e.length*n.lineHeight}}function J4(t,n,e,i,r){return t===i||t===r?{start:n-e/2,end:n+e/2}:tr?{start:n-e,end:n}:{start:n,end:n+e}}function Nse(t){let n={l:t.left+t._padding.left,r:t.right-t._padding.right,t:t.top+t._padding.top,b:t.bottom-t._padding.bottom},e=Object.assign({},n),i=[],r=[],o=t._pointLabels.length,a=t.options.pointLabels,s=a.centerPointLabels?$t/o:0;for(let l=0;ln.r&&(s=(i.end-n.r)/o,t.r=Math.max(t.r,n.r+s)),r.startn.b&&(l=(r.end-n.b)/a,t.b=Math.max(t.b,n.b+l))}function Vse(t,n,e){let i=t.drawingArea,{extra:r,additionalAngle:o,padding:a,size:s}=e,l=t.getPointPosition(n,i+r+a,o),c=Math.round(Gx(sr(l.angle+tn))),d=Use(l.y,s.h,c),p=Hse(c),_=zse(l.x,s.w,p);return{visible:!0,x:l.x,y:d,textAlign:p,left:_,top:d,right:_+s.w,bottom:d+s.h}}function Bse(t,n){if(!n)return!0;let{left:e,top:i,right:r,bottom:o}=t;return!(Ts({x:e,y:i},n)||Ts({x:e,y:o},n)||Ts({x:r,y:i},n)||Ts({x:r,y:o},n))}function jse(t,n,e){let i=[],r=t._pointLabels.length,o=t.options,{centerPointLabels:a,display:s}=o.pointLabels,l={extra:tI(o)/2,additionalAngle:a?$t/r:0},c;for(let d=0;d270||e<90)&&(t-=n),t}function $se(t,n,e){let{left:i,top:r,right:o,bottom:a}=e,{backdropColor:s}=n;if(!Tt(s)){let l=Ac(n.borderRadius),c=cr(n.backdropPadding);t.fillStyle=s;let d=i-c.left,p=r-c.top,_=o-i+c.width,b=a-r+c.height;Object.values(l).some(y=>y!==0)?(t.beginPath(),Gh(t,{x:d,y:p,w:_,h:b,radius:l}),t.fill()):t.fillRect(d,p,_,b)}}function Wse(t,n){let{ctx:e,options:{pointLabels:i}}=t;for(let r=n-1;r>=0;r--){let o=t._pointLabelItems[r];if(!o.visible)continue;let a=i.setContext(t.getPointLabelContext(r));$se(e,a,o);let s=fn(a.font),{x:l,y:c,textAlign:d}=o;Ic(e,t._pointLabels[r],l,c+s.lineHeight/2,s,{color:a.color,textAlign:d,textBaseline:"middle"})}}function E5(t,n,e,i){let{ctx:r}=t;if(e)r.arc(t.xCenter,t.yCenter,n,0,Ii);else{let o=t.getPointPosition(0,n);r.moveTo(o.x,o.y);for(let a=1;a{let r=wi(this.options.pointLabels.callback,[e,i],this);return r||r===0?r:""}).filter((e,i)=>this.chart.getDataVisibility(i))}fit(){let n=this.options;n.display&&n.pointLabels.display?Nse(this):this.setCenterPoint(0,0,0,0)}setCenterPoint(n,e,i,r){this.xCenter+=Math.floor((n-e)/2),this.yCenter+=Math.floor((i-r)/2),this.drawingArea-=Math.min(this.drawingArea/2,Math.max(n,e,i,r))}getIndexAngle(n){let e=Ii/(this._pointLabels.length||1),i=this.options.startAngle||0;return sr(n*e+sa(i))}getDistanceFromCenterForValue(n){if(Tt(n))return NaN;let e=this.drawingArea/(this.max-this.min);return this.options.reverse?(this.max-n)*e:(n-this.min)*e}getValueForDistanceFromCenter(n){if(Tt(n))return NaN;let e=n/(this.drawingArea/(this.max-this.min));return this.options.reverse?this.max-e:this.min+e}getPointLabelContext(n){let e=this._pointLabels||[];if(n>=0&&n{if(p!==0||p===0&&this.min<0){l=this.getDistanceFromCenterForValue(d.value);let _=this.getContext(p),b=r.setContext(_),y=o.setContext(_);Gse(this,b,l,a,y)}}),i.display){for(n.save(),s=a-1;s>=0;s--){let d=i.setContext(this.getPointLabelContext(s)),{color:p,lineWidth:_}=d;!_||!p||(n.lineWidth=_,n.strokeStyle=p,n.setLineDash(d.borderDash),n.lineDashOffset=d.borderDashOffset,l=this.getDistanceFromCenterForValue(e.reverse?this.min:this.max),c=this.getPointPosition(s,l),n.beginPath(),n.moveTo(this.xCenter,this.yCenter),n.lineTo(c.x,c.y),n.stroke())}n.restore()}}drawBorder(){}drawLabels(){let n=this.ctx,e=this.options,i=e.ticks;if(!i.display)return;let r=this.getIndexAngle(0),o,a;n.save(),n.translate(this.xCenter,this.yCenter),n.rotate(r),n.textAlign="center",n.textBaseline="middle",this.ticks.forEach((s,l)=>{if(l===0&&this.min>=0&&!e.reverse)return;let c=i.setContext(this.getContext(l)),d=fn(c.font);if(o=this.getDistanceFromCenterForValue(this.ticks[l].value),c.showLabelBackdrop){n.font=d.string,a=n.measureText(s.label).width,n.fillStyle=c.backdropColor;let p=cr(c.backdropPadding);n.fillRect(-a/2-p.left,-o-d.size/2-p.top,a+p.width,d.size+p.height)}Ic(n,s.label,0,-o,d,{color:c.color,strokeColor:c.textStrokeColor,strokeWidth:c.textStrokeWidth})}),n.restore()}drawTitle(){}},vC={millisecond:{common:!0,size:1,steps:1e3},second:{common:!0,size:1e3,steps:60},minute:{common:!0,size:6e4,steps:60},hour:{common:!0,size:36e5,steps:24},day:{common:!0,size:864e5,steps:30},week:{common:!1,size:6048e5,steps:4},month:{common:!0,size:2628e6,steps:12},quarter:{common:!1,size:7884e6,steps:4},year:{common:!0,size:3154e7}},co=Object.keys(vC);function e5(t,n){return t-n}function t5(t,n){if(Tt(n))return null;let e=t._adapter,{parser:i,round:r,isoWeekday:o}=t._parseOpts,a=n;return typeof i=="function"&&(a=i(a)),Yi(a)||(a=typeof i=="string"?e.parse(a,i):e.parse(a)),a===null?null:(r&&(a=r==="week"&&(Mu(o)||o===!0)?e.startOf(a,"isoWeek",o):e.startOf(a,r)),+a)}function i5(t,n,e,i){let r=co.length;for(let o=co.indexOf(t);o=co.indexOf(e);o--){let a=co[o];if(vC[a].common&&t._adapter.diff(r,i,a)>=n-1)return a}return co[e?co.indexOf(e):0]}function Qse(t){for(let n=co.indexOf(t)+1,e=co.length;n=n?e[i]:e[r];t[o]=!0}}function Kse(t,n,e,i){let r=t._adapter,o=+r.startOf(n[0].value,i),a=n[n.length-1].value,s,l;for(s=o;s<=a;s=+r.add(s,1,i))l=e[s],l>=0&&(n[l].major=!0);return n}function r5(t,n,e){let i=[],r={},o=n.length,a,s;for(a=0;a{class t extends Iu{static id="time";static defaults={bounds:"data",adapters:{},time:{parser:!1,unit:!1,round:!1,isoWeekday:!1,minUnit:"millisecond",displayFormats:{}},ticks:{source:"auto",callback:!1,major:{enabled:!1}}};constructor(e){super(e),this._cache={data:[],labels:[],all:[]},this._unit="day",this._majorUnit=void 0,this._offsets={},this._normalized=!1,this._parseOpts=void 0}init(e,i={}){let r=e.time||(e.time={}),o=this._adapter=new soe._date(e.adapters.date);o.init(i),Hh(r.displayFormats,o.formats()),this._parseOpts={parser:r.parser,round:r.round,isoWeekday:r.isoWeekday},super.init(e),this._normalized=i.normalized}parse(e,i){return e===void 0?null:t5(this,e)}beforeLayout(){super.beforeLayout(),this._cache={data:[],labels:[],all:[]}}determineDataLimits(){let e=this.options,i=this._adapter,r=e.time.unit||"day",{min:o,max:a,minDefined:s,maxDefined:l}=this.getUserBounds();function c(d){!s&&!isNaN(d.min)&&(o=Math.min(o,d.min)),!l&&!isNaN(d.max)&&(a=Math.max(a,d.max))}(!s||!l)&&(c(this._getLabelBounds()),(e.bounds!=="ticks"||e.ticks.source!=="labels")&&c(this.getMinMax(!1))),o=Yi(o)&&!isNaN(o)?o:+i.startOf(Date.now(),r),a=Yi(a)&&!isNaN(a)?a:+i.endOf(Date.now(),r)+1,this.min=Math.min(o,a-1),this.max=Math.max(o+1,a)}_getLabelBounds(){let e=this.getLabelTimestamps(),i=Number.POSITIVE_INFINITY,r=Number.NEGATIVE_INFINITY;return e.length&&(i=e[0],r=e[e.length-1]),{min:i,max:r}}buildTicks(){let e=this.options,i=e.time,r=e.ticks,o=r.source==="labels"?this.getLabelTimestamps():this._generate();e.bounds==="ticks"&&o.length&&(this.min=this._userMin||o[0],this.max=this._userMax||o[o.length-1]);let a=this.min,s=this.max,l=Vj(o,a,s);return this._unit=i.unit||(r.autoSkip?i5(i.minUnit,this.min,this.max,this._getLabelCapacity(a)):Yse(this,l.length,i.minUnit,this.min,this.max)),this._majorUnit=!r.major.enabled||this._unit==="year"?void 0:Qse(this._unit),this.initOffsets(o),e.reverse&&l.reverse(),r5(this,l,this._majorUnit)}afterAutoSkip(){this.options.offsetAfterAutoskip&&this.initOffsets(this.ticks.map(e=>+e.value))}initOffsets(e=[]){let i=0,r=0,o,a;this.options.offset&&e.length&&(o=this.getDecimalForValue(e[0]),e.length===1?i=1-o:i=(this.getDecimalForValue(e[1])-o)/2,a=this.getDecimalForValue(e[e.length-1]),e.length===1?r=a:r=(a-this.getDecimalForValue(e[e.length-2]))/2);let s=e.length<3?.5:.25;i=Sn(i,0,s),r=Sn(r,0,s),this._offsets={start:i,end:r,factor:1/(i+1+r)}}_generate(){let e=this._adapter,i=this.min,r=this.max,o=this.options,a=o.time,s=a.unit||i5(a.minUnit,i,r,this._getLabelCapacity(i)),l=lt(o.ticks.stepSize,1),c=s==="week"?a.isoWeekday:!1,d=Mu(c)||c===!0,p={},_=i,b,y;if(d&&(_=+e.startOf(_,"isoWeek",c)),_=+e.startOf(_,d?"day":s),e.diff(r,i,s)>1e5*l)throw new Error(i+" and "+r+" are too far apart with stepSize of "+l+" "+s);let w=o.ticks.source==="data"&&this.getDataTimestamps();for(b=_,y=0;b+C)}getLabelForValue(e){let i=this._adapter,r=this.options.time;return r.tooltipFormat?i.format(e,r.tooltipFormat):i.format(e,r.displayFormats.datetime)}format(e,i){let o=this.options.time.displayFormats,a=this._unit,s=i||o[a];return this._adapter.format(e,s)}_tickFormatFunction(e,i,r,o){let a=this.options,s=a.ticks.callback;if(s)return wi(s,[e,i,r],this);let l=a.time.displayFormats,c=this._unit,d=this._majorUnit,p=c&&l[c],_=d&&l[d],b=r[i],y=d&&_&&b&&b.major;return this._adapter.format(e,o||(y?_:p))}generateTickLabels(e){let i,r,o;for(i=0,r=e.length;i0?l:1}getDataTimestamps(){let e=this._cache.data||[],i,r;if(e.length)return e;let o=this.getMatchingVisibleMetas();if(this._normalized&&o.length)return this._cache.data=o[0].controller.getAllParsedValues(this);for(i=0,r=o.length;i=t[i].pos&&n<=t[r].pos&&({lo:i,hi:r}=ks(t,"pos",n)),{pos:o,time:s}=t[i],{pos:a,time:l}=t[r]):(n>=t[i].time&&n<=t[r].time&&({lo:i,hi:r}=ks(t,"time",n)),{time:o,pos:s}=t[i],{time:a,pos:l}=t[r]);let c=a-o;return c?s+(l-s)*(n-o)/c:s}var rI=class extends nI{static id="timeseries";static defaults=nI.defaults;constructor(n){super(n),this._table=[],this._minPos=void 0,this._tableRange=void 0}initOffsets(){let n=this._getTimestampsForTable(),e=this._table=this.buildLookupTable(n);this._minPos=sC(e,this.min),this._tableRange=sC(e,this.max)-this._minPos,super.initOffsets(n)}buildLookupTable(n){let{min:e,max:i}=this,r=[],o=[],a,s,l,c,d;for(a=0,s=n.length;a=e&&c<=i&&r.push(c);if(r.length<2)return[{time:e,pos:0},{time:i,pos:1}];for(a=0,s=r.length;ar-o)}_getTimestampsForTable(){let n=this._cache.all||[];if(n.length)return n;let e=this.getDataTimestamps(),i=this.getLabelTimestamps();return e.length&&i.length?n=this.normalize(e.concat(i)):n=e.length?e:i,n=this._cache.all=n,n}getDecimalForValue(n){return(sC(this._table,n)-this._minPos)/this._tableRange}getValueForPixel(n){let e=this._offsets,i=this.getDecimalForPixel(n)/e.factor-e.end;return sC(this._table,i*this._tableRange+this._minPos,!0)}},Zse=Object.freeze({__proto__:null,CategoryScale:Ase,LinearScale:JT,LogarithmicScale:eI,RadialLinearScale:iI,TimeScale:nI,TimeSeriesScale:rI}),M5=[aoe,Oae,Sse,Zse];var Xse=typeof global=="object"&&global&&global.Object===Object&&global,yC=Xse;var Jse=typeof self=="object"&&self&&self.Object===Object&&self,ele=yC||Jse||Function("return this")(),la=ele;var tle=la.Symbol,Zh=tle;var S5=Object.prototype,ile=S5.hasOwnProperty,nle=S5.toString,r_=Zh?Zh.toStringTag:void 0;function rle(t){var n=ile.call(t,r_),e=t[r_];try{t[r_]=void 0;var i=!0}catch{}var r=nle.call(t);return i&&(n?t[r_]=e:delete t[r_]),r}var k5=rle;var ole=Object.prototype,ale=ole.toString;function sle(t){return ale.call(t)}var T5=sle;var lle="[object Null]",cle="[object Undefined]",I5=Zh?Zh.toStringTag:void 0;function dle(t){return t==null?t===void 0?cle:lle:I5&&I5 in Object(t)?k5(t):T5(t)}var Fc=dle;function ule(t){return t!=null&&typeof t=="object"}var Ps=ule;var mle=Array.isArray,o_=mle;function hle(t){var n=typeof t;return t!=null&&(n=="object"||n=="function")}var uo=hle;function ple(t){return t}var xC=ple;var fle="[object AsyncFunction]",gle="[object Function]",_le="[object GeneratorFunction]",ble="[object Proxy]";function vle(t){if(!uo(t))return!1;var n=Fc(t);return n==gle||n==_le||n==fle||n==ble}var Xh=vle;var yle=la["__core-js_shared__"],CC=yle;var A5=(function(){var t=/[^.]+$/.exec(CC&&CC.keys&&CC.keys.IE_PROTO||"");return t?"Symbol(src)_1."+t:""})();function xle(t){return!!A5&&A5 in t}var O5=xle;var Cle=Function.prototype,wle=Cle.toString;function Dle(t){if(t!=null){try{return wle.call(t)}catch{}try{return t+""}catch{}}return""}var R5=Dle;var Ele=/[\\^$.*+?()[\]{}|]/g,Mle=/^\[object .+?Constructor\]$/,Sle=Function.prototype,kle=Object.prototype,Tle=Sle.toString,Ile=kle.hasOwnProperty,Ale=RegExp("^"+Tle.call(Ile).replace(Ele,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function Ole(t){if(!uo(t)||O5(t))return!1;var n=Xh(t)?Ale:Mle;return n.test(R5(t))}var P5=Ole;function Rle(t,n){return t?.[n]}var F5=Rle;function Ple(t,n){var e=F5(t,n);return P5(e)?e:void 0}var Jh=Ple;var N5=Object.create,Fle=(function(){function t(){}return function(n){if(!uo(n))return{};if(N5)return N5(n);t.prototype=n;var e=new t;return t.prototype=void 0,e}})(),L5=Fle;function Nle(t,n,e){switch(e.length){case 0:return t.call(n);case 1:return t.call(n,e[0]);case 2:return t.call(n,e[0],e[1]);case 3:return t.call(n,e[0],e[1],e[2])}return t.apply(n,e)}var V5=Nle;function Lle(t,n){var e=-1,i=t.length;for(n||(n=Array(i));++e0){if(++n>=Vle)return arguments[0]}else n=0;return t.apply(void 0,arguments)}}var j5=Hle;function zle(t){return function(){return t}}var H5=zle;var Ule=(function(){try{var t=Jh(Object,"defineProperty");return t({},"",{}),t}catch{}})(),ep=Ule;var $le=ep?function(t,n){return ep(t,"toString",{configurable:!0,enumerable:!1,value:H5(n),writable:!0})}:xC,z5=$le;var Wle=j5(z5),U5=Wle;var Gle=9007199254740991,qle=/^(?:0|[1-9]\d*)$/;function Yle(t,n){var e=typeof t;return n=n??Gle,!!n&&(e=="number"||e!="symbol"&&qle.test(t))&&t>-1&&t%1==0&&t-1&&t%1==0&&t<=nce}var DC=rce;function oce(t){return t!=null&&DC(t.length)&&!Xh(t)}var ip=oce;function ace(t,n,e){if(!uo(e))return!1;var i=typeof n;return(i=="number"?ip(e)&&wC(n,e.length):i=="string"&&n in e)?Nc(e[n],t):!1}var Q5=ace;function sce(t){return Y5(function(n,e){var i=-1,r=e.length,o=r>1?e[r-1]:void 0,a=r>2?e[2]:void 0;for(o=t.length>3&&typeof o=="function"?(r--,o):void 0,a&&Q5(e[0],e[1],a)&&(o=r<3?void 0:o,r=1),n=Object(n);++i-1}var vH=Cde;function wde(t,n){var e=this.__data__,i=Lc(e,t);return i<0?(++this.size,e.push([t,n])):e[i][1]=n,this}var yH=wde;function rp(t){var n=-1,e=t==null?0:t.length;for(this.clear();++n{let n=class n{constructor(){this.colorschemesOptions=new it(void 0)}setColorschemesOptions(i){this.pColorschemesOptions=i,this.colorschemesOptions.next(i)}getColorschemesOptions(){return this.pColorschemesOptions}};n.\u0275fac=function(r){return new(r||n)},n.\u0275prov=R({token:n,factory:n.\u0275fac,providedIn:"root"});let t=n;return t})(),ez=(()=>{let n=class n{constructor(i,r,o,a){this.zone=r,this.themeService=o,this.type="bar",this.plugins=[],this.chartClick=new U,this.chartHover=new U,this.subs=[],this.themeOverrides={},a?.registerables&&gC.register(...a.registerables),a?.defaults&&Di.set(a.defaults),this.ctx=i.nativeElement.getContext("2d"),this.subs.push(this.themeService.colorschemesOptions.pipe(_n()).subscribe(s=>this.themeChanged(s)))}ngOnChanges(i){let r=["type"],o=Object.getOwnPropertyNames(i);if(o.some(a=>r.includes(a))||o.every(a=>i[a].isFirstChange()))this.render();else{let a=this.getChartConfiguration();this.chart&&(Object.assign(this.chart.config.data,a.data),this.chart.config.plugins&&Object.assign(this.chart.config.plugins,a.plugins),this.chart.config.options&&Object.assign(this.chart.config.options,a.options)),this.update()}}ngOnDestroy(){this.chart&&(this.chart.destroy(),this.chart=void 0),this.subs.forEach(i=>i.unsubscribe())}render(){return this.chart&&this.chart.destroy(),this.zone.runOutsideAngular(()=>this.chart=new gC(this.ctx,this.getChartConfiguration()))}update(i){this.chart&&this.zone.runOutsideAngular(()=>this.chart?.update(i))}hideDataset(i,r){this.chart&&(this.chart.getDatasetMeta(i).hidden=r,this.update())}isDatasetHidden(i){return this.chart?.getDatasetMeta(i)?.hidden}toBase64Image(){return this.chart?.toBase64Image()}themeChanged(i){this.themeOverrides=i,this.chart&&(this.chart.config.options&&Object.assign(this.chart.config.options,this.getChartOptions()),this.update())}getChartOptions(){return AC({onHover:(i,r)=>{!this.chartHover.observed&&!this.chartHover.observers?.length||this.zone.run(()=>this.chartHover.emit({event:i,active:r}))},onClick:(i,r)=>{!this.chartClick.observed&&!this.chartClick.observers?.length||this.zone.run(()=>this.chartClick.emit({event:i,active:r}))}},this.themeOverrides,this.options,{plugins:{legend:{display:this.legend}}})}getChartConfiguration(){return{type:this.type,data:this.getChartData(),options:this.getChartOptions(),plugins:this.plugins}}getChartData(){return this.data?this.data:{labels:this.labels||[],datasets:this.datasets||[]}}};n.\u0275fac=function(r){return new(r||n)(be(Y),be(ae),be(oue),be(ZH,8))},n.\u0275dir=P({type:n,selectors:[["canvas","baseChart",""]],inputs:{type:"type",legend:"legend",data:"data",options:"options",plugins:"plugins",labels:"labels",datasets:"datasets"},outputs:{chartClick:"chartClick",chartHover:"chartHover"},exportAs:["base-chart"],features:[Ae]});let t=n;return t})();var Qi={production:!0,baseUrl:"",useHash:!1,apiUrl:"https://app-talent-api-dev.azurewebsites.net/api/v1",identityServerUrl:"https://app-talent-ids-dev.azurewebsites.net",clientId:"TalentManagement",scope:"openid profile email roles app.api.talentmanagement.read app.api.talentmanagement.write",allowAnonymousAccess:!0,aiEnabled:!0};var uI=document.baseURI.endsWith("/")?document.baseURI.slice(0,-1):document.baseURI,tz={issuer:Qi.identityServerUrl,redirectUri:uI+"/callback",postLogoutRedirectUri:uI,clientId:Qi.clientId,scope:Qi.scope,responseType:"code",showDebugInformation:!Qi.production,useSilentRefresh:!0,silentRefreshRedirectUri:uI+"/silent-refresh.html",silentRefreshTimeout:5e3,timeoutFactor:.75,sessionChecksEnabled:!0,clearHashAfterLogin:!0,strictDiscoveryDocumentValidation:!1,skipIssuerCheck:!Qi.production,requireHttps:Qi.production,requestAccessToken:!0,dummyClientSecret:void 0,customQueryParams:{}};var Ot=(()=>{let n=class n{constructor(){this.oauthService=u(Km),this.router=u(Re),this.isAuthenticatedSubject=new it(!1),this.isAuthenticated$=this.isAuthenticatedSubject.asObservable(),this.userInfoSubject=new it(null),this.userInfo$=this.userInfoSubject.asObservable(),this.permissionsChangeSubject=new z,this.permissionsChange$=this.permissionsChangeSubject.asObservable(),this.configureOAuth()}configureOAuth(){this.oauthService.configure(tz),this.oauthService.events.pipe(ce(i=>i.type==="token_received")).subscribe(()=>{this.handleSuccessfulLogin()}),this.oauthService.events.pipe(ce(i=>i.type==="token_error"||i.type==="token_refresh_error")).subscribe(()=>{console.error("Token error occurred")}),this.oauthService.setupAutomaticSilentRefresh()}initAuth(){return gn(this,null,function*(){try{return yield this.oauthService.loadDiscoveryDocument(),yield this.oauthService.tryLogin(),this.oauthService.hasValidAccessToken()?(yield this.handleSuccessfulLogin(),!0):!1}catch(i){return console.error("Error during authentication initialization:",i),!1}})}login(i){i?this.oauthService.initCodeFlow(i):this.oauthService.initCodeFlow()}logout(){this.oauthService.logOut(),this.isAuthenticatedSubject.next(!1),this.userInfoSubject.next(null),this.permissionsChangeSubject.next()}handleSuccessfulLogin(){return gn(this,null,function*(){try{let i=this.oauthService.getIdentityClaims();this.userInfoSubject.next(i),this.isAuthenticatedSubject.next(!0),this.permissionsChangeSubject.next()}catch(i){console.error("Error loading user info:",i)}})}isAuthenticated(){return this.oauthService.hasValidAccessToken()}getAccessToken(){return this.oauthService.getAccessToken()}getUserInfo(){return this.userInfoSubject.value}getUserRoles(){let i=this.oauthService.getIdentityClaims();if(!i)return[];let r=i.role;return Array.isArray(r)?r:typeof r=="string"?[r]:[]}hasRole(i){return this.getUserRoles().includes(i)}isEmployee(){return this.hasRole("Employee")}isManager(){return this.hasRole("Manager")}isHRAdmin(){return this.hasRole("HRAdmin")}hasAnyRole(i){let r=this.getUserRoles();return i.some(o=>r.includes(o))}getUserDisplayName(){let i=this.getUserInfo();return i?.name||i?.email||"User"}};n.\u0275fac=function(r){return new(r||n)},n.\u0275prov=R({token:n,factory:n.\u0275fac,providedIn:"root"});let t=n;return t})();var mI=(t,n)=>{let e=u(Ot);return Qi.allowAnonymousAccess||e.isAuthenticated()?!0:(e.login(n?.url),!1)};var d_=t=>{let n=u(Ot),e=u(Re);return n.isAuthenticated()?n.isManager()||n.isHRAdmin()?!0:(e.navigate(["/403"]),!1):(n.login(),!1)},u_=t=>{let n=u(Ot),e=u(Re);return n.isAuthenticated()?n.isHRAdmin()?!0:(e.navigate(["/403"]),!1):(n.login(),!1)};var mo=(()=>{let n=class n{constructor(){this.menu$=new it([])}getAll(){return this.menu$.asObservable()}change(){return this.menu$.pipe(Vl())}set(i){return this.menu$.next(i),this.menu$.asObservable()}add(i){let r=this.menu$.value;r.push(i),this.menu$.next(r)}reset(){this.menu$.next([])}buildRoute(i){let r="";return i.forEach(o=>{o&&o.trim()&&(r+="/"+o.replace(/^\/+|\/+$/g,""))}),r}getItemName(i){return this.getLevel(i)[i.length-1]}isLeafItem(i){let r=i.route===void 0,o=i.children===void 0,a=!o&&i.children?.length===0;return r||o||a}deepClone(i){return JSON.parse(JSON.stringify(i))}isJsonObjEqual(i,r){return JSON.stringify(i)===JSON.stringify(r)}isRouteEqual(i,r){return r=this.deepClone(r),r=r.filter(o=>o!==""),this.isJsonObjEqual(i,r)}getLevel(i){let r=[];return this.menu$.value.forEach(o=>{let a=[{item:o,parentNamePathList:[],realRouteArr:[]}];for(;a.length>0;){let s=[];for(let l of a){let c=l.item,d=this.deepClone(l.parentNamePathList).concat(c.name),p=this.deepClone(l.realRouteArr).concat(c.route);if(this.isRouteEqual(i,p)){r=d;break}if(!this.isLeafItem(c)){let _=c.children?.map(b=>({item:b,parentNamePathList:d,realRouteArr:p}));s=s.concat(_)}}a=s}}),r}addNamespace(i,r){i.forEach(o=>{o.name=`${r}.${o.name}`,o.children&&o.children.length>0&&this.addNamespace(o.children,o.name)})}};n.\u0275fac=function(r){return new(r||n)},n.\u0275prov=R({token:n,factory:n.\u0275fac,providedIn:"root"});let t=n;return t})();var OC;function aue(){if(OC===void 0&&(OC=null,typeof window<"u")){let t=window;t.trustedTypes!==void 0&&(OC=t.trustedTypes.createPolicy("angular#components",{createHTML:n=>n}))}return OC}function m_(t){return aue()?.createHTML(t)||t}function iz(t){return Error(`Unable to find icon with the name "${t}"`)}function sue(){return Error("Could not find HttpClient for use with Angular Material icons. Please add provideHttpClient() to your providers.")}function nz(t){return Error(`The URL provided to MatIconRegistry was not trusted as a resource URL via Angular's DomSanitizer. Attempted URL was "${t}".`)}function rz(t){return Error(`The literal provided to MatIconRegistry was not trusted as safe HTML by Angular's DomSanitizer. Attempted literal was "${t}".`)}var Dl=class{url;svgText;options;svgElement;constructor(n,e,i){this.url=n,this.svgText=e,this.options=i}},az=(()=>{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,i,r,o){this._httpClient=e,this._sanitizer=i,this._errorHandler=o,this._document=r}addSvgIcon(e,i,r){return this.addSvgIconInNamespace("",e,i,r)}addSvgIconLiteral(e,i,r){return this.addSvgIconLiteralInNamespace("",e,i,r)}addSvgIconInNamespace(e,i,r,o){return this._addSvgIconConfig(e,i,new Dl(r,null,o))}addSvgIconResolver(e){return this._resolvers.push(e),this}addSvgIconLiteralInNamespace(e,i,r,o){let a=this._sanitizer.sanitize(Rn.HTML,r);if(!a)throw rz(r);let s=m_(a);return this._addSvgIconConfig(e,i,new Dl("",s,o))}addSvgIconSet(e,i){return this.addSvgIconSetInNamespace("",e,i)}addSvgIconSetLiteral(e,i){return this.addSvgIconSetLiteralInNamespace("",e,i)}addSvgIconSetInNamespace(e,i,r){return this._addSvgIconSetConfig(e,new Dl(i,null,r))}addSvgIconSetLiteralInNamespace(e,i,r){let o=this._sanitizer.sanitize(Rn.HTML,i);if(!o)throw rz(i);let a=m_(o);return this._addSvgIconSetConfig(e,new Dl("",a,r))}registerFontClassAlias(e,i=e){return this._fontCssClassesByAlias.set(e,i),this}classNameForFontAlias(e){return this._fontCssClassesByAlias.get(e)||e}setDefaultFontSetClass(...e){return this._defaultFontSetClass=e,this}getDefaultFontSetClass(){return this._defaultFontSetClass}getSvgIconFromUrl(e){let i=this._sanitizer.sanitize(Rn.RESOURCE_URL,e);if(!i)throw nz(e);let r=this._cachedIconsByUrl.get(i);return r?Q(RC(r)):this._loadSvgIconFromConfig(new Dl(e,null)).pipe(He(o=>this._cachedIconsByUrl.set(i,o)),se(o=>RC(o)))}getNamedSvgIcon(e,i=""){let r=oz(i,e),o=this._svgIconConfigs.get(r);if(o)return this._getSvgFromConfig(o);if(o=this._getIconConfigFromResolvers(i,e),o)return this._svgIconConfigs.set(r,o),this._getSvgFromConfig(o);let a=this._iconSetConfigs.get(i);return a?this._getSvgFromIconSetConfigs(e,a):qn(iz(r))}ngOnDestroy(){this._resolvers=[],this._svgIconConfigs.clear(),this._iconSetConfigs.clear(),this._cachedIconsByUrl.clear()}_getSvgFromConfig(e){return e.svgText?Q(RC(this._svgElementFromConfig(e))):this._loadSvgIconFromConfig(e).pipe(se(i=>RC(i)))}_getSvgFromIconSetConfigs(e,i){let r=this._extractIconWithNameFromAnySet(e,i);if(r)return Q(r);let o=i.filter(a=>!a.svgText).map(a=>this._loadSvgIconSetFromConfig(a).pipe(ii(s=>{let c=`Loading icon set URL: ${this._sanitizer.sanitize(Rn.RESOURCE_URL,a.url)} failed: ${s.message}`;return this._errorHandler.handleError(new Error(c)),Q(null)})));return qa(o).pipe(se(()=>{let a=this._extractIconWithNameFromAnySet(e,i);if(!a)throw iz(e);return a}))}_extractIconWithNameFromAnySet(e,i){for(let r=i.length-1;r>=0;r--){let o=i[r];if(o.svgText&&o.svgText.toString().indexOf(e)>-1){let a=this._svgElementFromConfig(o),s=this._extractSvgIconFromSet(a,e,o.options);if(s)return s}}return null}_loadSvgIconFromConfig(e){return this._fetchIcon(e).pipe(He(i=>e.svgText=i),se(()=>this._svgElementFromConfig(e)))}_loadSvgIconSetFromConfig(e){return e.svgText?Q(null):this._fetchIcon(e).pipe(He(i=>e.svgText=i))}_extractSvgIconFromSet(e,i,r){let o=e.querySelector(`[id="${i}"]`);if(!o)return null;let a=o.cloneNode(!0);if(a.removeAttribute("id"),a.nodeName.toLowerCase()==="svg")return this._setSvgAttributes(a,r);if(a.nodeName.toLowerCase()==="symbol")return this._setSvgAttributes(this._toSvgElement(a),r);let s=this._svgElementFromString(m_(""));return s.appendChild(a),this._setSvgAttributes(s,r)}_svgElementFromString(e){let i=this._document.createElement("DIV");i.innerHTML=e;let r=i.querySelector("svg");if(!r)throw Error(" tag not found");return r}_toSvgElement(e){let i=this._svgElementFromString(m_("")),r=e.attributes;for(let o=0;om_(c)),Gr(()=>this._inProgressUrlFetches.delete(a)),Vl());return this._inProgressUrlFetches.set(a,l),l}_addSvgIconConfig(e,i,r){return this._svgIconConfigs.set(oz(e,i),r),this}_addSvgIconSetConfig(e,i){let r=this._iconSetConfigs.get(e);return r?r.push(i):this._iconSetConfigs.set(e,[i]),this}_svgElementFromConfig(e){if(!e.svgElement){let i=this._svgElementFromString(e.svgText);this._setSvgAttributes(i,e.options),e.svgElement=i}return e.svgElement}_getIconConfigFromResolvers(e,i){for(let r=0;rn?n.pathname+n.search:""}}var sz=["clip-path","color-profile","src","cursor","fill","filter","marker","marker-start","marker-mid","marker-end","mask","stroke"],hue=sz.map(t=>`[${t}]`).join(", "),pue=/^url\(['"]?#(.*?)['"]?\)$/,st=(()=>{class t{_elementRef=u(Y);_iconRegistry=u(az);_location=u(uue);_errorHandler=u(An);_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 i=this._cleanupFontValue(e);i!==this._fontSet&&(this._fontSet=i,this._updateFontIconClasses())}_fontSet;get fontIcon(){return this._fontIcon}set fontIcon(e){let i=this._cleanupFontValue(e);i!==this._fontIcon&&(this._fontIcon=i,this._updateFontIconClasses())}_fontIcon;_previousFontSetClass=[];_previousFontIconClass;_svgName;_svgNamespace;_previousPath;_elementsWithExternalReferences;_currentIconFetch=Te.EMPTY;constructor(){let e=u(new Oi("aria-hidden"),{optional:!0}),i=u(due,{optional:!0});i&&(i.color&&(this.color=this._defaultColor=i.color),i.fontSet&&(this.fontSet=i.fontSet)),e||this._elementRef.nativeElement.setAttribute("aria-hidden","true")}_splitIconName(e){if(!e)return["",""];let i=e.split(":");switch(i.length){case 1:return["",i[0]];case 2:return i;default:throw Error(`Invalid icon name: "${e}"`)}}ngOnInit(){this._updateFontIconClasses()}ngAfterViewChecked(){let e=this._elementsWithExternalReferences;if(e&&e.size){let i=this._location.getPathname();i!==this._previousPath&&(this._previousPath=i,this._prependPathToReferences(i))}}ngOnDestroy(){this._currentIconFetch.unsubscribe(),this._elementsWithExternalReferences&&this._elementsWithExternalReferences.clear()}_usingFontIcon(){return!this.svgIcon}_setSvgElement(e){this._clearSvgElement();let i=this._location.getPathname();this._previousPath=i,this._cacheChildrenWithExternalReferences(e),this._prependPathToReferences(i),this._elementRef.nativeElement.appendChild(e)}_clearSvgElement(){let e=this._elementRef.nativeElement,i=e.childNodes.length;for(this._elementsWithExternalReferences&&this._elementsWithExternalReferences.clear();i--;){let r=e.childNodes[i];(r.nodeType!==1||r.nodeName.toLowerCase()==="svg")&&r.remove()}}_updateFontIconClasses(){if(!this._usingFontIcon())return;let e=this._elementRef.nativeElement,i=(this.fontSet?this._iconRegistry.classNameForFontAlias(this.fontSet).split(/ +/):this._iconRegistry.getDefaultFontSetClass()).filter(r=>r.length>0);this._previousFontSetClass.forEach(r=>e.classList.remove(r)),i.forEach(r=>e.classList.add(r)),this._previousFontSetClass=i,this.fontIcon!==this._previousFontIconClass&&!i.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 i=this._elementsWithExternalReferences;i&&i.forEach((r,o)=>{r.forEach(a=>{o.setAttribute(a.name,`url('${e}#${a.value}')`)})})}_cacheChildrenWithExternalReferences(e){let i=e.querySelectorAll(hue),r=this._elementsWithExternalReferences=this._elementsWithExternalReferences||new Map;for(let o=0;o{let s=i[o],l=s.getAttribute(a),c=l?l.match(pue):null;if(c){let d=r.get(s);d||(d=[],r.set(s,d)),d.push({name:a,value:c[1]})}})}_updateSvgIcon(e){if(this._svgNamespace=null,this._svgName=null,this._currentIconFetch.unsubscribe(),e){let[i,r]=this._splitIconName(e);i&&(this._svgNamespace=i),r&&(this._svgName=r),this._currentIconFetch=this._iconRegistry.getNamedSvgIcon(r,i).pipe(ct(1)).subscribe(o=>this._setSvgElement(o),o=>{let a=`Error retrieving icon ${i}:${r}! ${o.message}`;this._errorHandler.handleError(new Error(a))})}}static \u0275fac=function(i){return new(i||t)};static \u0275cmp=E({type:t,selectors:[["mat-icon"]],hostAttrs:["role","img",1,"mat-icon","notranslate"],hostVars:10,hostBindings:function(i,r){i&2&&(X("data-mat-icon-type",r._usingFontIcon()?"font":"svg")("data-mat-icon-name",r._svgName||r.fontIcon)("data-mat-icon-namespace",r._svgNamespace||r.fontSet)("fontIcon",r._usingFontIcon()?r.fontIcon:null),nt(r.color?"mat-"+r.color:""),G("mat-icon-inline",r.inline)("mat-icon-no-color",r.color!=="primary"&&r.color!=="accent"&&r.color!=="warn"))},inputs:{color:"color",inline:[2,"inline","inline",L],svgIcon:"svgIcon",fontSet:"fontSet",fontIcon:"fontIcon"},exportAs:["matIcon"],ngContentSelectors:cue,decls:1,vars:0,template:function(i,r){i&1&&(Se(),ne(0))},styles:[`mat-icon,mat-icon.mat-primary,mat-icon.mat-accent,mat-icon.mat-warn{color:var(--mat-icon-color, inherit)}.mat-icon{-webkit-user-select:none;user-select:none;background-repeat:no-repeat;display:inline-block;fill:currentColor;height:24px;width:24px;overflow:hidden}.mat-icon.mat-icon-inline{font-size:inherit;height:inherit;line-height:inherit;width:inherit}.mat-icon.mat-ligature-font[fontIcon]::before{content:attr(fontIcon)}[dir=rtl] .mat-icon-rtl-mirror{transform:scale(-1, 1)}.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-prefix .mat-icon,.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-suffix .mat-icon{display:block}.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-prefix .mat-icon-button .mat-icon,.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})(),tt=(()=>{class t{static \u0275fac=function(i){return new(i||t)};static \u0275mod=ee({type:t});static \u0275inj=J({imports:[De,De]})}return t})();function fue(t,n){if(t&1&&(m(0,"a",3),g(1),h()),t&2){let e=x().$implicit;f(),N(e)}}function gue(t,n){if(t&1&&(m(0,"mat-icon",4),g(1,"chevron_right"),h(),m(2,"span"),g(3),ue(4,"translate"),h()),t&2){let e=x().$implicit;f(3),N(Oe(4,1,e))}}function _ue(t,n){if(t&1&&(m(0,"li",2),V(1,fue,2,1,"a",3),V(2,gue,5,3),h()),t&2){let e=n.$index;f(),B(e===0?1:-1),f(),B(e!==0?2:-1)}}var lz=(()=>{let n=class n{constructor(){this.router=u(Re),this.menu=u(mo),this.nav=re([]),this.navItems=[]}ngOnInit(){this.router.events.pipe(ce(i=>i instanceof xi),Ue(this.router)).subscribe(()=>{this.genBreadcrumb()})}genBreadcrumb(){let i=this.router.url.slice(1).split("/");this.nav().length>0?this.navItems=[...this.nav()]:(this.navItems=this.menu.getLevel(i),this.navItems.unshift("home"))}};n.\u0275fac=function(r){return new(r||n)},n.\u0275cmp=E({type:n,selectors:[["breadcrumb"]],inputs:{nav:[1,"nav"]},decls:4,vars:0,consts:[["aria-label","breadcrumb"],[1,"matero-breadcrumb"],[1,"matero-breadcrumb-item"],["href","#",1,"link"],[1,"chevron"]],template:function(r,o){r&1&&(m(0,"nav",0)(1,"ol",1),xt(2,_ue,3,2,"li",2,Ui),h()()),r&2&&(f(2),Ct(o.navItems))},dependencies:[tt,st,Sr,Mr],styles:[`.matero-breadcrumb{display:flex;flex-wrap:wrap;padding:0;margin-bottom:1rem;font-size:.875rem;list-style:none}.matero-breadcrumb-item{line-height:1.125rem;text-transform:capitalize}.matero-breadcrumb-item>*{vertical-align:middle}.matero-breadcrumb-item>a.link{color:currentColor;text-decoration:none}.matero-breadcrumb-item>a.link:hover{color:currentColor;text-decoration:underline}.matero-breadcrumb-item>.chevron{width:1.125rem;height:1.125rem;font-size:1.125rem;-webkit-user-select:none;user-select:none} +`],encapsulation:2});let t=n;return t})();function bue(t,n){}var jc=class{viewContainerRef;injector;id;role="dialog";panelClass="";hasBackdrop=!0;backdropClass="";disableClose=!1;closePredicate;width="";height="";minWidth;minHeight;maxWidth;maxHeight;positionStrategy;data=null;direction;ariaDescribedBy=null;ariaLabelledBy=null;ariaLabel=null;ariaModal=!1;autoFocus="first-tabbable";restoreFocus=!0;scrollStrategy;closeOnNavigation=!0;closeOnDestroy=!0;closeOnOverlayDetachments=!0;disableAnimations=!1;providers;container;templateContext};var pI=(()=>{class t extends mc{_elementRef=u(Y);_focusTrapFactory=u(eh);_config;_interactivityChecker=u(lc);_ngZone=u(ae);_focusMonitor=u(ti);_renderer=u(ze);_changeDetectorRef=u(ye);_injector=u(de);_platform=u(qe);_document=u(_e);_portalOutlet;_focusTrapped=new z;_focusTrap=null;_elementFocusedBeforeDialogWasOpened=null;_closeInteractionType=null;_ariaLabelledByQueue=[];_isDestroyed=!1;constructor(){super(),this._config=u(jc,{optional:!0})||new jc,this._config.ariaLabelledBy&&this._ariaLabelledByQueue.push(this._config.ariaLabelledBy)}_addAriaLabelledBy(e){this._ariaLabelledByQueue.push(e),this._changeDetectorRef.markForCheck()}_removeAriaLabelledBy(e){let i=this._ariaLabelledByQueue.indexOf(e);i>-1&&(this._ariaLabelledByQueue.splice(i,1),this._changeDetectorRef.markForCheck())}_contentAttached(){this._initializeFocusTrap(),this._captureInitialFocus()}_captureInitialFocus(){this._trapFocus()}ngOnDestroy(){this._focusTrapped.complete(),this._isDestroyed=!0,this._restoreFocus()}attachComponentPortal(e){this._portalOutlet.hasAttached();let i=this._portalOutlet.attachComponentPortal(e);return this._contentAttached(),i}attachTemplatePortal(e){this._portalOutlet.hasAttached();let i=this._portalOutlet.attachTemplatePortal(e);return this._contentAttached(),i}attachDomPortal=e=>{this._portalOutlet.hasAttached();let i=this._portalOutlet.attachDomPortal(e);return this._contentAttached(),i};_recaptureFocus(){this._containsFocus()||this._trapFocus()}_forceFocus(e,i){this._interactivityChecker.isFocusable(e)||(e.tabIndex=-1,this._ngZone.runOutsideAngular(()=>{let r=()=>{o(),a(),e.removeAttribute("tabindex")},o=this._renderer.listen(e,"blur",r),a=this._renderer.listen(e,"mousedown",r)})),e.focus(i)}_focusByCssSelector(e,i){let r=this._elementRef.nativeElement.querySelector(e);r&&this._forceFocus(r,i)}_trapFocus(e){this._isDestroyed||gt(()=>{let i=this._elementRef.nativeElement;switch(this._config.autoFocus){case!1:case"dialog":this._containsFocus()||i.focus(e);break;case!0:case"first-tabbable":this._focusTrap?.focusInitialElement(e)||this._focusDialogContainer(e);break;case"first-heading":this._focusByCssSelector('h1, h2, h3, h4, h5, h6, [role="heading"]',e);break;default:this._focusByCssSelector(this._config.autoFocus,e);break}this._focusTrapped.next()},{injector:this._injector})}_restoreFocus(){let e=this._config.restoreFocus,i=null;if(typeof e=="string"?i=this._document.querySelector(e):typeof e=="boolean"?i=e?this._elementFocusedBeforeDialogWasOpened:null:e&&(i=e),this._config.restoreFocus&&i&&typeof i.focus=="function"){let r=wo(),o=this._elementRef.nativeElement;(!r||r===this._document.body||r===o||o.contains(r))&&(this._focusMonitor?(this._focusMonitor.focusVia(i,this._closeInteractionType),this._closeInteractionType=null):i.focus())}this._focusTrap&&this._focusTrap.destroy()}_focusDialogContainer(e){this._elementRef.nativeElement.focus?.(e)}_containsFocus(){let e=this._elementRef.nativeElement,i=wo();return e===i||e.contains(i)}_initializeFocusTrap(){this._platform.isBrowser&&(this._focusTrap=this._focusTrapFactory.create(this._elementRef.nativeElement),this._document&&(this._elementFocusedBeforeDialogWasOpened=wo()))}static \u0275fac=function(i){return new(i||t)};static \u0275cmp=E({type:t,selectors:[["cdk-dialog-container"]],viewQuery:function(i,r){if(i&1&&ie(wr,7),i&2){let o;j(o=H())&&(r._portalOutlet=o.first)}},hostAttrs:["tabindex","-1",1,"cdk-dialog-container"],hostVars:6,hostBindings:function(i,r){i&2&&X("id",r._config.id||null)("role",r._config.role)("aria-modal",r._config.ariaModal)("aria-labelledby",r._config.ariaLabel?null:r._ariaLabelledByQueue[0])("aria-label",r._config.ariaLabel)("aria-describedby",r._config.ariaDescribedBy||null)},features:[le],decls:1,vars:0,consts:[["cdkPortalOutlet",""]],template:function(i,r){i&1&&A(0,bue,0,0,"ng-template",0)},dependencies:[wr],styles:[`.cdk-dialog-container{display:block;width:100%;height:100%;min-height:inherit;max-height:inherit} +`],encapsulation:2})}return t})(),h_=class{overlayRef;config;componentInstance;componentRef;containerInstance;disableClose;closed=new z;backdropClick;keydownEvents;outsidePointerEvents;id;_detachSubscription;constructor(n,e){this.overlayRef=n,this.config=e,this.disableClose=e.disableClose,this.backdropClick=n.backdropClick(),this.keydownEvents=n.keydownEvents(),this.outsidePointerEvents=n.outsidePointerEvents(),this.id=e.id,this.keydownEvents.subscribe(i=>{i.keyCode===27&&!this.disableClose&&!Lt(i)&&(i.preventDefault(),this.close(void 0,{focusOrigin:"keyboard"}))}),this.backdropClick.subscribe(()=>{!this.disableClose&&this._canClose()?this.close(void 0,{focusOrigin:"mouse"}):this.containerInstance._recaptureFocus?.()}),this._detachSubscription=n.detachments().subscribe(()=>{e.closeOnOverlayDetachments!==!1&&this.close()})}close(n,e){if(this._canClose(n)){let i=this.closed;this.containerInstance._closeInteractionType=e?.focusOrigin||"program",this._detachSubscription.unsubscribe(),this.overlayRef.dispose(),i.next(n),i.complete(),this.componentInstance=this.containerInstance=null}}updatePosition(){return this.overlayRef.updatePosition(),this}updateSize(n="",e=""){return this.overlayRef.updateSize({width:n,height:e}),this}addPanelClass(n){return this.overlayRef.addPanelClass(n),this}removePanelClass(n){return this.overlayRef.removePanelClass(n),this}_canClose(n){let e=this.config;return!!this.containerInstance&&(!e.closePredicate||e.closePredicate(n,e,this.componentInstance))}},vue=new O("DialogScrollStrategy",{providedIn:"root",factory:()=>{let t=u(de);return()=>hc(t)}}),yue=new O("DialogData"),xue=new O("DefaultDialogConfig");function Cue(t){let n=he(t),e=new U;return{valueSignal:n,get value(){return n()},change:e,ngOnDestroy(){e.complete()}}}var fI=(()=>{class t{_injector=u(de);_defaultOptions=u(xue,{optional:!0});_parentDialog=u(t,{optional:!0,skipSelf:!0});_overlayContainer=u(rx);_idGenerator=u(Ze);_openDialogsAtThisLevel=[];_afterAllClosedAtThisLevel=new z;_afterOpenedAtThisLevel=new z;_ariaHiddenElements=new Map;_scrollStrategy=u(vue);get openDialogs(){return this._parentDialog?this._parentDialog.openDialogs:this._openDialogsAtThisLevel}get afterOpened(){return this._parentDialog?this._parentDialog.afterOpened:this._afterOpenedAtThisLevel}afterAllClosed=In(()=>this.openDialogs.length?this._getAfterAllClosed():this._getAfterAllClosed().pipe(Ue(void 0)));constructor(){}open(e,i){let r=this._defaultOptions||new jc;i=k(k({},r),i),i.id=i.id||this._idGenerator.getId("cdk-dialog-"),i.id&&this.getDialogById(i.id);let o=this._getOverlayConfig(i),a=zr(this._injector,o),s=new h_(a,i),l=this._attachContainer(a,s,i);if(s.containerInstance=l,!this.openDialogs.length){let c=this._overlayContainer.getContainerElement();l._focusTrapped?l._focusTrapped.pipe(ct(1)).subscribe(()=>{this._hideNonDialogContentFromAssistiveTechnology(c)}):this._hideNonDialogContentFromAssistiveTechnology(c)}return this._attachDialogContent(e,s,l,i),this.openDialogs.push(s),s.closed.subscribe(()=>this._removeOpenDialog(s,!0)),this.afterOpened.next(s),s}closeAll(){hI(this.openDialogs,e=>e.close())}getDialogById(e){return this.openDialogs.find(i=>i.id===e)}ngOnDestroy(){hI(this._openDialogsAtThisLevel,e=>{e.config.closeOnDestroy===!1&&this._removeOpenDialog(e,!1)}),hI(this._openDialogsAtThisLevel,e=>e.close()),this._afterAllClosedAtThisLevel.complete(),this._afterOpenedAtThisLevel.complete(),this._openDialogsAtThisLevel=[]}_getOverlayConfig(e){let i=new Hr({positionStrategy:e.positionStrategy||Es().centerHorizontally().centerVertically(),scrollStrategy:e.scrollStrategy||this._scrollStrategy(),panelClass:e.panelClass,hasBackdrop:e.hasBackdrop,direction:e.direction,minWidth:e.minWidth,minHeight:e.minHeight,maxWidth:e.maxWidth,maxHeight:e.maxHeight,width:e.width,height:e.height,disposeOnNavigation:e.closeOnNavigation,disableAnimations:e.disableAnimations});return e.backdropClass&&(i.backdropClass=e.backdropClass),i}_attachContainer(e,i,r){let o=r.injector||r.viewContainerRef?.injector,a=[{provide:jc,useValue:r},{provide:h_,useValue:i},{provide:Ch,useValue:e}],s;r.container?typeof r.container=="function"?s=r.container:(s=r.container.type,a.push(...r.container.providers(r))):s=pI;let l=new to(s,r.viewContainerRef,de.create({parent:o||this._injector,providers:a}));return e.attach(l).instance}_attachDialogContent(e,i,r,o){if(e instanceof te){let a=this._createInjector(o,i,r,void 0),s={$implicit:o.data,dialogRef:i};o.templateContext&&(s=k(k({},s),typeof o.templateContext=="function"?o.templateContext():o.templateContext)),r.attachTemplatePortal(new Dn(e,null,s,a))}else{let a=this._createInjector(o,i,r,this._injector),s=r.attachComponentPortal(new to(e,o.viewContainerRef,a));i.componentRef=s,i.componentInstance=s.instance}}_createInjector(e,i,r,o){let a=e.injector||e.viewContainerRef?.injector,s=[{provide:yue,useValue:e.data},{provide:h_,useValue:i}];return e.providers&&(typeof e.providers=="function"?s.push(...e.providers(i,e,r)):s.push(...e.providers)),e.direction&&(!a||!a.get(Bt,null,{optional:!0}))&&s.push({provide:Bt,useValue:Cue(e.direction)}),de.create({parent:a||o,providers:s})}_removeOpenDialog(e,i){let r=this.openDialogs.indexOf(e);r>-1&&(this.openDialogs.splice(r,1),this.openDialogs.length||(this._ariaHiddenElements.forEach((o,a)=>{o?a.setAttribute("aria-hidden",o):a.removeAttribute("aria-hidden")}),this._ariaHiddenElements.clear(),i&&this._getAfterAllClosed().next()))}_hideNonDialogContentFromAssistiveTechnology(e){if(e.parentElement){let i=e.parentElement.children;for(let r=i.length-1;r>-1;r--){let o=i[r];o!==e&&o.nodeName!=="SCRIPT"&&o.nodeName!=="STYLE"&&!o.hasAttribute("aria-live")&&(this._ariaHiddenElements.set(o,o.getAttribute("aria-hidden")),o.setAttribute("aria-hidden","true"))}}}_getAfterAllClosed(){let e=this._parentDialog;return e?e._getAfterAllClosed():this._afterAllClosedAtThisLevel}static \u0275fac=function(i){return new(i||t)};static \u0275prov=R({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();function hI(t,n){let e=t.length;for(;e--;)n(t[e])}var cz=(()=>{class t{static \u0275fac=function(i){return new(i||t)};static \u0275mod=ee({type:t});static \u0275inj=J({providers:[fI],imports:[nr,ko,cl,ko]})}return t})();function wue(t,n){}var f_=class{viewContainerRef;injector;id;role="dialog";panelClass="";hasBackdrop=!0;backdropClass="";disableClose=!1;closePredicate;width="";height="";minWidth;minHeight;maxWidth;maxHeight;position;data=null;direction;ariaDescribedBy=null;ariaLabelledBy=null;ariaLabel=null;ariaModal=!1;autoFocus="first-tabbable";restoreFocus=!0;delayFocusTrap=!0;scrollStrategy;closeOnNavigation=!0;enterAnimationDuration;exitAnimationDuration},gI="mdc-dialog--open",dz="mdc-dialog--opening",uz="mdc-dialog--closing",Due=150,Eue=75,pz=(()=>{class t extends pI{_animationStateChanged=new U;_animationsEnabled=!Ye();_actionSectionCount=0;_hostElement=this._elementRef.nativeElement;_enterAnimationDuration=this._animationsEnabled?hz(this._config.enterAnimationDuration)??Due:0;_exitAnimationDuration=this._animationsEnabled?hz(this._config.exitAnimationDuration)??Eue:0;_animationTimer=null;_contentAttached(){super._contentAttached(),this._startOpenAnimation()}_startOpenAnimation(){this._animationStateChanged.emit({state:"opening",totalTime:this._enterAnimationDuration}),this._animationsEnabled?(this._hostElement.style.setProperty(mz,`${this._enterAnimationDuration}ms`),this._requestAnimationFrame(()=>this._hostElement.classList.add(dz,gI)),this._waitForAnimationToComplete(this._enterAnimationDuration,this._finishDialogOpen)):(this._hostElement.classList.add(gI),Promise.resolve().then(()=>this._finishDialogOpen()))}_startExitAnimation(){this._animationStateChanged.emit({state:"closing",totalTime:this._exitAnimationDuration}),this._hostElement.classList.remove(gI),this._animationsEnabled?(this._hostElement.style.setProperty(mz,`${this._exitAnimationDuration}ms`),this._requestAnimationFrame(()=>this._hostElement.classList.add(uz)),this._waitForAnimationToComplete(this._exitAnimationDuration,this._finishDialogClose)):Promise.resolve().then(()=>this._finishDialogClose())}_updateActionSectionCount(e){this._actionSectionCount+=e,this._changeDetectorRef.markForCheck()}_finishDialogOpen=()=>{this._clearAnimationClasses(),this._openAnimationDone(this._enterAnimationDuration)};_finishDialogClose=()=>{this._clearAnimationClasses(),this._animationStateChanged.emit({state:"closed",totalTime:this._exitAnimationDuration})};_clearAnimationClasses(){this._hostElement.classList.remove(dz,uz)}_waitForAnimationToComplete(e,i){this._animationTimer!==null&&clearTimeout(this._animationTimer),this._animationTimer=setTimeout(i,e)}_requestAnimationFrame(e){this._ngZone.runOutsideAngular(()=>{typeof requestAnimationFrame=="function"?requestAnimationFrame(e):e()})}_captureInitialFocus(){this._config.delayFocusTrap||this._trapFocus()}_openAnimationDone(e){this._config.delayFocusTrap&&this._trapFocus(),this._animationStateChanged.next({state:"opened",totalTime:e})}ngOnDestroy(){super.ngOnDestroy(),this._animationTimer!==null&&clearTimeout(this._animationTimer)}attachComponentPortal(e){let i=super.attachComponentPortal(e);return i.location.nativeElement.classList.add("mat-mdc-dialog-component-host"),i}static \u0275fac=(()=>{let e;return function(r){return(e||(e=ge(t)))(r||t)}})();static \u0275cmp=E({type:t,selectors:[["mat-dialog-container"]],hostAttrs:["tabindex","-1",1,"mat-mdc-dialog-container","mdc-dialog"],hostVars:10,hostBindings:function(i,r){i&2&&(ci("id",r._config.id),X("aria-modal",r._config.ariaModal)("role",r._config.role)("aria-labelledby",r._config.ariaLabel?null:r._ariaLabelledByQueue[0])("aria-label",r._config.ariaLabel)("aria-describedby",r._config.ariaDescribedBy||null),G("_mat-animation-noopable",!r._animationsEnabled)("mat-mdc-dialog-container-with-actions",r._actionSectionCount>0))},features:[le],decls:3,vars:0,consts:[[1,"mat-mdc-dialog-inner-container","mdc-dialog__container"],[1,"mat-mdc-dialog-surface","mdc-dialog__surface"],["cdkPortalOutlet",""]],template:function(i,r){i&1&&(m(0,"div",0)(1,"div",1),A(2,wue,0,0,"ng-template",2),h()())},dependencies:[wr],styles:[`.mat-mdc-dialog-container{width:100%;height:100%;display:block;box-sizing:border-box;max-height:inherit;min-height:inherit;min-width:inherit;max-width:inherit;outline:0}.cdk-overlay-pane.mat-mdc-dialog-panel{max-width:var(--mat-dialog-container-max-width, 560px);min-width:var(--mat-dialog-container-min-width, 280px)}@media(max-width: 599px){.cdk-overlay-pane.mat-mdc-dialog-panel{max-width:var(--mat-dialog-container-small-max-width, calc(100vw - 32px))}}.mat-mdc-dialog-inner-container{display:flex;flex-direction:row;align-items:center;justify-content:space-around;box-sizing:border-box;height:100%;opacity:0;transition:opacity linear var(--mat-dialog-transition-duration, 0ms);max-height:inherit;min-height:inherit;min-width:inherit;max-width:inherit}.mdc-dialog--closing .mat-mdc-dialog-inner-container{transition:opacity 75ms linear;transform:none}.mdc-dialog--open .mat-mdc-dialog-inner-container{opacity:1}._mat-animation-noopable .mat-mdc-dialog-inner-container{transition:none}.mat-mdc-dialog-surface{display:flex;flex-direction:column;flex-grow:0;flex-shrink:0;box-sizing:border-box;width:100%;height:100%;position:relative;overflow-y:auto;outline:0;transform:scale(0.8);transition:transform var(--mat-dialog-transition-duration, 0ms) cubic-bezier(0, 0, 0.2, 1);max-height:inherit;min-height:inherit;min-width:inherit;max-width:inherit;box-shadow:var(--mat-dialog-container-elevation-shadow, none);border-radius:var(--mat-dialog-container-shape, var(--mat-sys-corner-extra-large, 4px));background-color:var(--mat-dialog-container-color, var(--mat-sys-surface, white))}[dir=rtl] .mat-mdc-dialog-surface{text-align:right}.mdc-dialog--open .mat-mdc-dialog-surface,.mdc-dialog--closing .mat-mdc-dialog-surface{transform:none}._mat-animation-noopable .mat-mdc-dialog-surface{transition:none}.mat-mdc-dialog-surface::before{position:absolute;box-sizing:border-box;width:100%;height:100%;top:0;left:0;border:2px solid rgba(0,0,0,0);border-radius:inherit;content:"";pointer-events:none}.mat-mdc-dialog-title{display:block;position:relative;flex-shrink:0;box-sizing:border-box;margin:0 0 1px;padding:var(--mat-dialog-headline-padding, 6px 24px 13px)}.mat-mdc-dialog-title::before{display:inline-block;width:0;height:40px;content:"";vertical-align:0}[dir=rtl] .mat-mdc-dialog-title{text-align:right}.mat-mdc-dialog-container .mat-mdc-dialog-title{color:var(--mat-dialog-subhead-color, var(--mat-sys-on-surface, rgba(0, 0, 0, 0.87)));font-family:var(--mat-dialog-subhead-font, var(--mat-sys-headline-small-font, inherit));line-height:var(--mat-dialog-subhead-line-height, var(--mat-sys-headline-small-line-height, 1.5rem));font-size:var(--mat-dialog-subhead-size, var(--mat-sys-headline-small-size, 1rem));font-weight:var(--mat-dialog-subhead-weight, var(--mat-sys-headline-small-weight, 400));letter-spacing:var(--mat-dialog-subhead-tracking, var(--mat-sys-headline-small-tracking, 0.03125em))}.mat-mdc-dialog-content{display:block;flex-grow:1;box-sizing:border-box;margin:0;overflow:auto;max-height:65vh}.mat-mdc-dialog-content>:first-child{margin-top:0}.mat-mdc-dialog-content>:last-child{margin-bottom:0}.mat-mdc-dialog-container .mat-mdc-dialog-content{color:var(--mat-dialog-supporting-text-color, var(--mat-sys-on-surface-variant, rgba(0, 0, 0, 0.6)));font-family:var(--mat-dialog-supporting-text-font, var(--mat-sys-body-medium-font, inherit));line-height:var(--mat-dialog-supporting-text-line-height, var(--mat-sys-body-medium-line-height, 1.5rem));font-size:var(--mat-dialog-supporting-text-size, var(--mat-sys-body-medium-size, 1rem));font-weight:var(--mat-dialog-supporting-text-weight, var(--mat-sys-body-medium-weight, 400));letter-spacing:var(--mat-dialog-supporting-text-tracking, var(--mat-sys-body-medium-tracking, 0.03125em))}.mat-mdc-dialog-container .mat-mdc-dialog-content{padding:var(--mat-dialog-content-padding, 20px 24px)}.mat-mdc-dialog-container-with-actions .mat-mdc-dialog-content{padding:var(--mat-dialog-with-actions-content-padding, 20px 24px 0)}.mat-mdc-dialog-container .mat-mdc-dialog-title+.mat-mdc-dialog-content{padding-top:0}.mat-mdc-dialog-actions{display:flex;position:relative;flex-shrink:0;flex-wrap:wrap;align-items:center;box-sizing:border-box;min-height:52px;margin:0;border-top:1px solid rgba(0,0,0,0);padding:var(--mat-dialog-actions-padding, 16px 24px);justify-content:var(--mat-dialog-actions-alignment, flex-end)}@media(forced-colors: active){.mat-mdc-dialog-actions{border-top-color:CanvasText}}.mat-mdc-dialog-actions.mat-mdc-dialog-actions-align-start,.mat-mdc-dialog-actions[align=start]{justify-content:start}.mat-mdc-dialog-actions.mat-mdc-dialog-actions-align-center,.mat-mdc-dialog-actions[align=center]{justify-content:center}.mat-mdc-dialog-actions.mat-mdc-dialog-actions-align-end,.mat-mdc-dialog-actions[align=end]{justify-content:flex-end}.mat-mdc-dialog-actions .mat-button-base+.mat-button-base,.mat-mdc-dialog-actions .mat-mdc-button-base+.mat-mdc-button-base{margin-left:8px}[dir=rtl] .mat-mdc-dialog-actions .mat-button-base+.mat-button-base,[dir=rtl] .mat-mdc-dialog-actions .mat-mdc-button-base+.mat-mdc-button-base{margin-left:0;margin-right:8px}.mat-mdc-dialog-component-host{display:contents} +`],encapsulation:2})}return t})(),mz="--mat-dialog-transition-duration";function hz(t){return t==null?null:typeof t=="number"?t:t.endsWith("ms")?Bn(t.substring(0,t.length-2)):t.endsWith("s")?Bn(t.substring(0,t.length-1))*1e3:t==="0"?0:null}var p_=(function(t){return t[t.OPEN=0]="OPEN",t[t.CLOSING=1]="CLOSING",t[t.CLOSED=2]="CLOSED",t})(p_||{}),Au=class{_ref;_config;_containerInstance;componentInstance;componentRef;disableClose;id;_afterOpened=new z;_beforeClosed=new z;_result;_closeFallbackTimeout;_state=p_.OPEN;_closeInteractionType;constructor(n,e,i){this._ref=n,this._config=e,this._containerInstance=i,this.disableClose=e.disableClose,this.id=n.id,n.addPanelClass("mat-mdc-dialog-panel"),i._animationStateChanged.pipe(ce(r=>r.state==="opened"),ct(1)).subscribe(()=>{this._afterOpened.next(),this._afterOpened.complete()}),i._animationStateChanged.pipe(ce(r=>r.state==="closed"),ct(1)).subscribe(()=>{clearTimeout(this._closeFallbackTimeout),this._finishDialogClose()}),n.overlayRef.detachments().subscribe(()=>{this._beforeClosed.next(this._result),this._beforeClosed.complete(),this._finishDialogClose()}),Je(this.backdropClick(),this.keydownEvents().pipe(ce(r=>r.keyCode===27&&!this.disableClose&&!Lt(r)))).subscribe(r=>{this.disableClose||(r.preventDefault(),fz(this,r.type==="keydown"?"keyboard":"mouse"))})}close(n){let e=this._config.closePredicate;e&&!e(n,this._config,this.componentInstance)||(this._result=n,this._containerInstance._animationStateChanged.pipe(ce(i=>i.state==="closing"),ct(1)).subscribe(i=>{this._beforeClosed.next(n),this._beforeClosed.complete(),this._ref.overlayRef.detachBackdrop(),this._closeFallbackTimeout=setTimeout(()=>this._finishDialogClose(),i.totalTime+100)}),this._state=p_.CLOSING,this._containerInstance._startExitAnimation())}afterOpened(){return this._afterOpened}afterClosed(){return this._ref.closed}beforeClosed(){return this._beforeClosed}backdropClick(){return this._ref.backdropClick}keydownEvents(){return this._ref.keydownEvents}updatePosition(n){let e=this._ref.config.positionStrategy;return n&&(n.left||n.right)?n.left?e.left(n.left):e.right(n.right):e.centerHorizontally(),n&&(n.top||n.bottom)?n.top?e.top(n.top):e.bottom(n.bottom):e.centerVertically(),this._ref.updatePosition(),this}updateSize(n="",e=""){return this._ref.updateSize(n,e),this}addPanelClass(n){return this._ref.addPanelClass(n),this}removePanelClass(n){return this._ref.removePanelClass(n),this}getState(){return this._state}_finishDialogClose(){this._state=p_.CLOSED,this._ref.close(this._result,{focusOrigin:this._closeInteractionType}),this.componentInstance=null}};function fz(t,n,e){return t._closeInteractionType=n,t.close(e)}var PC=new O("MatMdcDialogData"),gz=new O("mat-mdc-dialog-default-options"),_z=new O("mat-mdc-dialog-scroll-strategy",{providedIn:"root",factory:()=>{let t=u(de);return()=>hc(t)}}),kn=(()=>{class t{_defaultOptions=u(gz,{optional:!0});_scrollStrategy=u(_z);_parentDialog=u(t,{optional:!0,skipSelf:!0});_idGenerator=u(Ze);_injector=u(de);_dialog=u(fI);_animationsDisabled=Ye();_openDialogsAtThisLevel=[];_afterAllClosedAtThisLevel=new z;_afterOpenedAtThisLevel=new z;dialogConfigClass=f_;_dialogRefConstructor;_dialogContainerType;_dialogDataToken;get openDialogs(){return this._parentDialog?this._parentDialog.openDialogs:this._openDialogsAtThisLevel}get afterOpened(){return this._parentDialog?this._parentDialog.afterOpened:this._afterOpenedAtThisLevel}_getAfterAllClosed(){let e=this._parentDialog;return e?e._getAfterAllClosed():this._afterAllClosedAtThisLevel}afterAllClosed=In(()=>this.openDialogs.length?this._getAfterAllClosed():this._getAfterAllClosed().pipe(Ue(void 0)));constructor(){this._dialogRefConstructor=Au,this._dialogContainerType=pz,this._dialogDataToken=PC}open(e,i){let r;i=k(k({},this._defaultOptions||new f_),i),i.id=i.id||this._idGenerator.getId("mat-mdc-dialog-"),i.scrollStrategy=i.scrollStrategy||this._scrollStrategy();let o=this._dialog.open(e,Ee(k({},i),{positionStrategy:Es(this._injector).centerHorizontally().centerVertically(),disableClose:!0,closePredicate:void 0,closeOnDestroy:!1,closeOnOverlayDetachments:!1,disableAnimations:this._animationsDisabled||i.enterAnimationDuration?.toLocaleString()==="0"||i.exitAnimationDuration?.toString()==="0",container:{type:this._dialogContainerType,providers:()=>[{provide:this.dialogConfigClass,useValue:i},{provide:jc,useValue:i}]},templateContext:()=>({dialogRef:r}),providers:(a,s,l)=>(r=new this._dialogRefConstructor(a,i,l),r.updatePosition(i?.position),[{provide:this._dialogContainerType,useValue:l},{provide:this._dialogDataToken,useValue:s.data},{provide:this._dialogRefConstructor,useValue:r}])}));return r.componentRef=o.componentRef,r.componentInstance=o.componentInstance,this.openDialogs.push(r),this.afterOpened.next(r),r.afterClosed().subscribe(()=>{let a=this.openDialogs.indexOf(r);a>-1&&(this.openDialogs.splice(a,1),this.openDialogs.length||this._getAfterAllClosed().next())}),r}closeAll(){this._closeDialogs(this.openDialogs)}getDialogById(e){return this.openDialogs.find(i=>i.id===e)}ngOnDestroy(){this._closeDialogs(this._openDialogsAtThisLevel),this._afterAllClosedAtThisLevel.complete(),this._afterOpenedAtThisLevel.complete()}_closeDialogs(e){let i=e.length;for(;i--;)e[i].close()}static \u0275fac=function(i){return new(i||t)};static \u0275prov=R({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();var bz=(()=>{class t{_dialogRef=u(Au,{optional:!0});_elementRef=u(Y);_dialog=u(kn);constructor(){}ngOnInit(){this._dialogRef||(this._dialogRef=Mue(this._elementRef,this._dialog.openDialogs)),this._dialogRef&&Promise.resolve().then(()=>{this._onAdd()})}ngOnDestroy(){this._dialogRef?._containerInstance&&Promise.resolve().then(()=>{this._onRemove()})}static \u0275fac=function(i){return new(i||t)};static \u0275dir=P({type:t})}return t})(),_I=(()=>{class t extends bz{id=u(Ze).getId("mat-mdc-dialog-title-");_onAdd(){this._dialogRef._containerInstance?._addAriaLabelledBy?.(this.id)}_onRemove(){this._dialogRef?._containerInstance?._removeAriaLabelledBy?.(this.id)}static \u0275fac=(()=>{let e;return function(r){return(e||(e=ge(t)))(r||t)}})();static \u0275dir=P({type:t,selectors:[["","mat-dialog-title",""],["","matDialogTitle",""]],hostAttrs:[1,"mat-mdc-dialog-title","mdc-dialog__title"],hostVars:1,hostBindings:function(i,r){i&2&&ci("id",r.id)},inputs:{id:"id"},exportAs:["matDialogTitle"],features:[le]})}return t})(),bI=(()=>{class t{static \u0275fac=function(i){return new(i||t)};static \u0275dir=P({type:t,selectors:[["","mat-dialog-content",""],["mat-dialog-content"],["","matDialogContent",""]],hostAttrs:[1,"mat-mdc-dialog-content","mdc-dialog__content"],features:[Em([Fa])]})}return t})(),vI=(()=>{class t extends bz{align;_onAdd(){this._dialogRef._containerInstance?._updateActionSectionCount?.(1)}_onRemove(){this._dialogRef._containerInstance?._updateActionSectionCount?.(-1)}static \u0275fac=(()=>{let e;return function(r){return(e||(e=ge(t)))(r||t)}})();static \u0275dir=P({type:t,selectors:[["","mat-dialog-actions",""],["mat-dialog-actions"],["","matDialogActions",""]],hostAttrs:[1,"mat-mdc-dialog-actions","mdc-dialog__actions"],hostVars:6,hostBindings:function(i,r){i&2&&G("mat-mdc-dialog-actions-align-start",r.align==="start")("mat-mdc-dialog-actions-align-center",r.align==="center")("mat-mdc-dialog-actions-align-end",r.align==="end")},inputs:{align:"align"},features:[le]})}return t})();function Mue(t,n){let e=t.nativeElement.parentElement;for(;e&&!e.classList.contains("mat-mdc-dialog-container");)e=e.parentElement;return e?n.find(i=>i.id===e.id):null}var Tn=(()=>{class t{static \u0275fac=function(i){return new(i||t)};static \u0275mod=ee({type:t});static \u0275inj=J({providers:[kn],imports:[cz,nr,ko,De,De]})}return t})();var Tr=(()=>{let n=class n{constructor(){this.dialogRef=u(Au),this.data=u(PC)}confirm(){this.dialogRef.close(!0)}cancel(){this.dialogRef.close(!1)}};n.\u0275fac=function(r){return new(r||n)},n.\u0275cmp=E({type:n,selectors:[["app-confirm-dialog"]],decls:12,vars:4,consts:[["mat-dialog-title",""],["color","warn",2,"vertical-align","middle","margin-right","8px"],["align","end"],["mat-button","",3,"click"],["mat-raised-button","","color","warn","cdkFocusInitial","",3,"click"]],template:function(r,o){r&1&&(m(0,"h2",0)(1,"mat-icon",1),g(2,"warning"),h(),g(3),h(),m(4,"mat-dialog-content")(5,"p"),g(6),h()(),m(7,"mat-dialog-actions",2)(8,"button",3),S("click",function(){return o.cancel()}),g(9),h(),m(10,"button",4),S("click",function(){return o.confirm()}),g(11),h()()),r&2&&(f(3),pe(" ",o.data.title,` +`),f(3),N(o.data.message),f(3),pe(" ",o.data.cancelText||"Cancel"," "),f(2),pe(" ",o.data.confirmText||"Delete"," "))},dependencies:[Tn,_I,vI,bI,Be,Mt,tt,st],encapsulation:2});let t=n;return t})();function kue(t,n){if(t&1&&(m(0,"div",2),g(1),h()),t&2){let e=x();f(),N(e.title())}}function Tue(t,n){if(t&1&&(m(0,"div",3),g(1),h()),t&2){let e=x();f(),N(e.message())}}var sp=(()=>{let n=class n{constructor(){this.code=re(""),this.title=re(""),this.message=re("")}};n.\u0275fac=function(r){return new(r||n)},n.\u0275cmp=E({type:n,selectors:[["error-code"]],inputs:{code:[1,"code"],title:[1,"title"],message:[1,"message"]},decls:8,vars:3,consts:[[1,"matero-error-wrap"],[1,"matero-error-code"],[1,"matero-error-title"],[1,"matero-error-message"],["matButton","elevated","color","primary","routerLink","/"]],template:function(r,o){r&1&&(m(0,"div",0)(1,"div",1),g(2),h(),V(3,kue,2,1,"div",2),V(4,Tue,2,1,"div",3),m(5,"div")(6,"a",4),g(7,"Back to Home"),h()()()),r&2&&(f(2),N(o.code()),f(),B(o.title()?3:-1),f(),B(o.message()?4:-1))},dependencies:[Vn,Be,Mt],styles:[`.matero-error-wrap{text-align:center}.matero-error-code{padding:1.25rem 0;font-size:10rem;text-shadow:.1325825215rem .1325825215rem 0 rgba(0,0,0,.028575),.2651650429rem .2651650429rem 0 rgba(0,0,0,.02715),.3977475644rem .3977475644rem 0 rgba(0,0,0,.025725),.5303300859rem .5303300859rem 0 rgba(0,0,0,.0243),.6629126074rem .6629126074rem 0 rgba(0,0,0,.022875),.7954951288rem .7954951288rem 0 rgba(0,0,0,.02145),.9280776503rem .9280776503rem 0 rgba(0,0,0,.020025),1.0606601718rem 1.0606601718rem 0 rgba(0,0,0,.0186),1.1932426933rem 1.1932426933rem 0 rgba(0,0,0,.017175),1.3258252147rem 1.3258252147rem 0 rgba(0,0,0,.01575),1.4584077362rem 1.4584077362rem 0 rgba(0,0,0,.014325),1.5909902577rem 1.5909902577rem 0 rgba(0,0,0,.0129),1.7235727791rem 1.7235727791rem 0 rgba(0,0,0,.011475),1.8561553006rem 1.8561553006rem 0 rgba(0,0,0,.01005),1.9887378221rem 1.9887378221rem 0 rgba(0,0,0,.008625),2.1213203436rem 2.1213203436rem 0 rgba(0,0,0,.0072),2.253902865rem 2.253902865rem 0 rgba(0,0,0,.005775),2.3864853865rem 2.3864853865rem 0 rgba(0,0,0,.00435),2.519067908rem 2.519067908rem 0 rgba(0,0,0,.002925),2.6516504294rem 2.6516504294rem 0 rgba(0,0,0,.0015)}.matero-error-title{margin:0 0 1rem;font-size:1.25rem;font-weight:500;line-height:2rem}.matero-error-message{margin:0 0 1rem;font-size:1rem;font-weight:400;line-height:1.75rem} +`],encapsulation:2});let t=n;return t})();function Iue(t,n){if(t&1&&M(0,"breadcrumb",2),t&2){let e=x();v("nav",e.nav())}}var Qt=(()=>{let n=class n{constructor(){this.router=u(Re),this.menu=u(mo),this.title=re(""),this.subtitle=re(""),this.nav=re([]),this.hideBreadcrumb=re(!1,{transform:L}),this.titleName=oi(()=>{let i=this.router.url.slice(1).split("/"),r=this.menu.getLevel(i);return this.title()||r[r.length-1]})}};n.\u0275fac=function(r){return new(r||n)},n.\u0275cmp=E({type:n,selectors:[["page-header"]],hostAttrs:[1,"matero-page-header"],inputs:{title:[1,"title"],subtitle:[1,"subtitle"],nav:[1,"nav"],hideBreadcrumb:[1,"hideBreadcrumb"]},decls:7,vars:5,consts:[[1,"matero-page-header-inner"],[1,"matero-page-title"],[3,"nav"]],template:function(r,o){r&1&&(m(0,"div",0)(1,"h1",1),g(2),ue(3,"translate"),m(4,"small"),g(5),h()(),V(6,Iue,1,1,"breadcrumb",2),h()),r&2&&(f(2),pe(" ",Oe(3,3,o.titleName())," "),f(3),N(o.subtitle()),f(),B(o.hideBreadcrumb()?-1:6))},dependencies:[lz,Sr,Mr],styles:[`.matero-page-header{display:block;padding:1rem;margin-bottom:1rem;color:#ffffffde;background-color:#0074e9;border-radius:var(--mat-sys-corner-medium)}.matero-page-header .matero-breadcrumb{margin-top:.5rem;margin-bottom:0}.matero-page-title{margin:0;font-size:1.5rem;font-weight:400} +`],encapsulation:2});let t=n;return t})();var vz=(()=>{let n=class n{constructor(){this.change=new U,this.valueSignal=he("ltr")}get value(){return this.valueSignal()}set value(i){this.valueSignal.set(i),this.change.next(i)}ngOnDestroy(){this.change.complete()}};n.\u0275fac=function(r){return new(r||n)},n.\u0275prov=R({token:n,factory:n.\u0275fac,providedIn:"root"});let t=n;return t})();var yz=(()=>{let n=class n{constructor(){this.messages=[]}add(i){this.messages.push(i)}clear(){this.messages=[]}};n.\u0275fac=function(r){return new(r||n)},n.\u0275prov=R({token:n,factory:n.\u0275fac,providedIn:"root"});let t=n;return t})();var xz=(()=>{let n=class n{get(i){return JSON.parse(localStorage.getItem(i)||"{}")||{}}set(i,r){return localStorage.setItem(i,JSON.stringify(r)),!0}has(i){return!!localStorage.getItem(i)}remove(i){localStorage.removeItem(i)}clear(){localStorage.clear()}};n.\u0275fac=function(r){return new(r||n)},n.\u0275prov=R({token:n,factory:n.\u0275fac,providedIn:"root"});let t=n;return t})();var Cz=(()=>{let n=class n{constructor(){this.translate=u(oa),this.paginatorIntl=new bc,this.translate.onLangChange.subscribe(i=>this.getPaginatorIntl())}getPaginatorIntl(){return this.paginatorIntl.itemsPerPageLabel=this.translate.instant("paginator.items_per_page_label"),this.paginatorIntl.previousPageLabel=this.translate.instant("paginator.previous_page_label"),this.paginatorIntl.nextPageLabel=this.translate.instant("paginator.next_page_label"),this.paginatorIntl.firstPageLabel=this.translate.instant("paginator.first_page_label"),this.paginatorIntl.lastPageLabel=this.translate.instant("paginator.last_page_label"),this.paginatorIntl.getRangeLabel=this.getRangeLabel.bind(this),this.paginatorIntl.changes.next(),this.paginatorIntl}getRangeLabel(i,r,o){if(o===0||r===0)return this.translate.instant("paginator.range_page_label_1",{length:o});o=Math.max(o,0);let a=i*r,s=a{if(t.destroyed){e.next();return}return t.onDestroy(e.next.bind(e))});return e=>e.pipe(we(n))}function wz(t){let n=Y1(t);return new Fe(e=>{let i=n?.onDestroy(()=>e.complete()),r=t.subscribe(o=>e.next(o));return()=>{r.unsubscribe(),i?.()}})}var Aue=["content"],Oue=["scroll"],Rue=["padding"],Mz=["*"],g_=t=>({searchTerm:t});function Pue(t,n){if(t&1&&(m(0,"div",3),Ge(1,6),h()),t&2){let e=x();f(),v("ngTemplateOutlet",e.headerTemplate())("ngTemplateOutletContext",Nt(2,g_,e.filterValue()))}}function Fue(t,n){if(t&1&&(m(0,"div",5),Ge(1,6),h()),t&2){let e=x();f(),v("ngTemplateOutlet",e.footerTemplate())("ngTemplateOutletContext",Nt(2,g_,e.filterValue()))}}var Nue=["searchInput"],Lue=["clearButton"],Vue=(t,n,e)=>({item:t,clear:n,label:e}),Bue=(t,n)=>({items:t,clear:n}),jue=(t,n,e,i)=>({item:t,item$:n,index:e,searchTerm:i});function Hue(t,n){if(t&1&&(m(0,"div",20),g(1),h()),t&2){let e=x(2);f(),N(e.placeholder()??e.config.placeholder)}}function zue(t,n){}function Uue(t,n){if(t&1&&A(0,Hue,2,1,"ng-template",null,1,vi)(2,zue,0,0,"ng-template",19),t&2){let e=Me(1),i=x();f(2),v("ngTemplateOutlet",i.placeholderTemplate()||e)}}function $ue(t,n){if(t&1){let e=q();m(0,"span",23),S("click",function(){T(e);let r=x().$implicit,o=x(2);return I(o.unselect(r))}),g(1,"\xD7"),h(),M(2,"span",24)}if(t&2){let e=x().$implicit,i=x(2);f(2),v("ngItemLabel",e.label)("escape",i.escapeHTML)}}function Wue(t,n){}function Gue(t,n){if(t&1&&(m(0,"div",22),A(1,$ue,3,2,"ng-template",null,2,vi)(3,Wue,0,0,"ng-template",12),h()),t&2){let e=n.$implicit,i=Me(2),r=x(2);G("ng-value-disabled",e.disabled),f(3),v("ngTemplateOutlet",r.labelTemplate()||i)("ngTemplateOutletContext",Vd(4,Vue,e.value,r.clearItem,e.label))}}function que(t,n){if(t&1&&xt(0,Gue,4,8,"div",21,T0().trackByOption,!0),t&2){let e=x();Ct(e.selectedItems)}}function Yue(t,n){}function Que(t,n){if(t&1&&A(0,Yue,0,0,"ng-template",12),t&2){let e=x();v("ngTemplateOutlet",e.multiLabelTemplate())("ngTemplateOutletContext",Da(2,Bue,e.selectedValues,e.clearItem))}}function Kue(t,n){t&1&&M(0,"div",25)}function Zue(t,n){}function Xue(t,n){if(t&1&&A(0,Kue,1,0,"ng-template",null,3,vi)(2,Zue,0,0,"ng-template",19),t&2){let e=Me(1),i=x();f(2),v("ngTemplateOutlet",i.loadingSpinnerTemplate()||e)}}function Jue(t,n){if(t&1&&Ge(0,19),t&2){let e=x(2);v("ngTemplateOutlet",e.clearButtonTemplate())}}function eme(t,n){if(t&1){let e=q();m(0,"span",27,4),S("click",function(r){T(e);let o=x(2);return I(o.handleClearClick(r))}),m(2,"span",28),g(3,"\xD7"),h()()}if(t&2){let e=x(2);v("title",U1(e.clearAllText()||e.config.clearAllText)),X("tabindex",e.tabFocusOnClear()?0:-1)}}function tme(t,n){if(t&1&&V(0,Jue,1,1,"ng-container",19)(1,eme,4,3,"span",26),t&2){let e=x();B(e.clearButtonTemplate()?0:1)}}function ime(t,n){if(t&1&&M(0,"span",33),t&2){let e=x().$implicit,i=x(2);v("ngItemLabel",e.label)("escape",i.escapeHTML)}}function nme(t,n){}function rme(t,n){if(t&1){let e=q();m(0,"div",32),S("click",function(){let r=T(e).$implicit,o=x(2);return I(o.toggleItem(r))})("mouseover",function(){let r=T(e).$implicit,o=x(2);return I(o.onItemHover(r))}),A(1,ime,1,2,"ng-template",null,5,vi)(3,nme,0,0,"ng-template",12),h()}if(t&2){let e=n.$implicit,i=Me(2),r=x(2);G("ng-option-disabled",e.disabled)("ng-option-selected",e.selected)("ng-optgroup",e.children)("ng-option",!e.children)("ng-option-child",!!e.parent)("ng-option-marked",e===r.itemsList.markedItem),X("role",e.children?"group":"option")("aria-selected",e.selected)("id",e==null?null:e.htmlId)("aria-setsize",r.itemsList.filteredItems.length)("aria-posinset",e.index+1),f(3),v("ngTemplateOutlet",e.children?r.optgroupTemplate()||i:r.optionTemplate()||i)("ngTemplateOutletContext",km(19,jue,e.value,e,e.index,r.searchTerm))}}function ome(t,n){if(t&1&&(m(0,"span")(1,"span",35),g(2),h(),g(3),h()),t&2){let e=x(3);f(2),N(e.addTagText()||e.config.addTagText),f(),pe('"',e.searchTerm,'"')}}function ame(t,n){}function sme(t,n){if(t&1){let e=q();m(0,"div",34),S("mouseover",function(){T(e);let r=x(2);return I(r.itemsList.unmarkItem())})("click",function(){T(e);let r=x(2);return I(r.selectTag())}),A(1,ome,4,2,"ng-template",null,6,vi)(3,ame,0,0,"ng-template",12),h()}if(t&2){let e=Me(2),i=x(2);G("ng-option-marked",!i.itemsList.markedItem),f(3),v("ngTemplateOutlet",i.tagTemplate()||e)("ngTemplateOutletContext",Nt(4,g_,i.searchTerm))}}function lme(t,n){if(t&1&&(m(0,"div",36),g(1),h()),t&2){let e=x(3);f(),N(e.notFoundText()??e.config.notFoundText)}}function cme(t,n){}function dme(t,n){if(t&1&&A(0,lme,2,1,"ng-template",null,7,vi)(2,cme,0,0,"ng-template",12),t&2){let e=Me(1),i=x(2);f(2),v("ngTemplateOutlet",i.notFoundTemplate()||e)("ngTemplateOutletContext",Nt(2,g_,i.searchTerm))}}function ume(t,n){if(t&1&&(m(0,"div",36),g(1),h()),t&2){let e=x(3);f(),N(e.typeToSearchText()||e.config.typeToSearchText)}}function mme(t,n){}function hme(t,n){if(t&1&&A(0,ume,2,1,"ng-template",null,8,vi)(2,mme,0,0,"ng-template",19),t&2){let e=Me(1),i=x(2);f(2),v("ngTemplateOutlet",i.typeToSearchTemplate()||e)}}function pme(t,n){if(t&1&&(m(0,"div",36),g(1),h()),t&2){let e=x(3);f(),N(e.loadingText()||e.config.loadingText)}}function fme(t,n){}function gme(t,n){if(t&1&&A(0,pme,2,1,"ng-template",null,9,vi)(2,fme,0,0,"ng-template",12),t&2){let e=Me(1),i=x(2);f(2),v("ngTemplateOutlet",i.loadingTextTemplate()||e)("ngTemplateOutletContext",Nt(2,g_,i.searchTerm))}}function _me(t,n){if(t&1){let e=q();m(0,"ng-dropdown-panel",29),S("update",function(r){T(e);let o=x();return I(o.viewPortItems=r)})("scroll",function(r){T(e);let o=x();return I(o.scroll.emit(r))})("scrollToEnd",function(r){T(e);let o=x();return I(o.scrollToEnd.emit(r))})("outsideClick",function(){T(e);let r=x();return I(r.close())}),kt(1),xt(2,rme,4,24,"div",30,T0().trackByOption,!0),V(4,sme,4,6,"div",31),Dt(),V(5,dme,3,4),V(6,hme,3,1),V(7,gme,3,4),h()}if(t&2){let e=x(),i=e.appendTo()||e.config.appendTo;nt(i?e.ngClass()?e.ngClass():e.classes:null),G("ng-select-multiple",e.multiple()),v("virtualScroll",e.virtualScroll()??!e.config.disableVirtualScroll??!1)("bufferAmount",e.bufferAmount())("appendTo",i)("position",e.dropdownPosition())("outsideClickEvent",e.outsideClickEvent())("headerTemplate",e.headerTemplate())("footerTemplate",e.footerTemplate())("filterValue",e.searchTerm)("items",e.itemsList.filteredItems)("showAddTag",e.showAddTag)("markedItem",e.itemsList.markedItem)("id",e.dropdownId)("ariaLabelDropdown",e.ariaLabelDropdown()),f(2),Ct(e.viewPortItems),f(2),B(e.showAddTag?4:-1),f(),B(e.showNoItemsFound()?5:-1),f(),B(e.showTypeToSearch()?6:-1),f(),B(e.loading()&&e.itemsList.filteredItems.length===0?7:-1)}}function bme(t,n){if(t&1&&g(0),t&2){let e=x();pe(" ",e.notFoundText()??e.config.notFoundText," ")}}var Sz=/[&<>"']/g,vme=RegExp(Sz.source),yme={"&":"&","<":"<",">":">",'"':""","'":"'"};function xme(t){return t&&vme.test(t)?t.replace(Sz,n=>yme[n]):t}function nn(t){return t!=null}function Ru(t){return typeof t=="object"&&nn(t)}function Cme(t){return t instanceof Promise}function NC(t){return t instanceof Function}var wme=(()=>{let n=class n{constructor(){this.element=u(Y),this.ngItemLabel=re(),this.escape=re(!0),Lr(()=>{this.element.nativeElement.innerHTML=this.escape()?xme(this.ngItemLabel()):this.ngItemLabel()})}};n.\u0275fac=function(r){return new(r||n)},n.\u0275dir=P({type:n,selectors:[["","ngItemLabel",""]],inputs:{ngItemLabel:[1,"ngItemLabel"],escape:[1,"escape"]}});let t=n;return t})(),LC=(()=>{let n=class n{constructor(){this.template=u(te)}};n.\u0275fac=function(r){return new(r||n)},n.\u0275dir=P({type:n,selectors:[["","ng-option-tmp",""]]});let t=n;return t})(),VC=(()=>{let n=class n{constructor(){this.template=u(te)}};n.\u0275fac=function(r){return new(r||n)},n.\u0275dir=P({type:n,selectors:[["","ng-optgroup-tmp",""]]});let t=n;return t})(),BC=(()=>{let n=class n{constructor(){this.template=u(te)}};n.\u0275fac=function(r){return new(r||n)},n.\u0275dir=P({type:n,selectors:[["","ng-label-tmp",""]]});let t=n;return t})(),jC=(()=>{let n=class n{constructor(){this.template=u(te)}};n.\u0275fac=function(r){return new(r||n)},n.\u0275dir=P({type:n,selectors:[["","ng-multi-label-tmp",""]]});let t=n;return t})(),HC=(()=>{let n=class n{constructor(){this.template=u(te)}};n.\u0275fac=function(r){return new(r||n)},n.\u0275dir=P({type:n,selectors:[["","ng-header-tmp",""]]});let t=n;return t})(),zC=(()=>{let n=class n{constructor(){this.template=u(te)}};n.\u0275fac=function(r){return new(r||n)},n.\u0275dir=P({type:n,selectors:[["","ng-footer-tmp",""]]});let t=n;return t})(),UC=(()=>{let n=class n{constructor(){this.template=u(te)}};n.\u0275fac=function(r){return new(r||n)},n.\u0275dir=P({type:n,selectors:[["","ng-notfound-tmp",""]]});let t=n;return t})(),$C=(()=>{let n=class n{constructor(){this.template=u(te)}};n.\u0275fac=function(r){return new(r||n)},n.\u0275dir=P({type:n,selectors:[["","ng-placeholder-tmp",""]]});let t=n;return t})(),WC=(()=>{let n=class n{constructor(){this.template=u(te)}};n.\u0275fac=function(r){return new(r||n)},n.\u0275dir=P({type:n,selectors:[["","ng-typetosearch-tmp",""]]});let t=n;return t})(),GC=(()=>{let n=class n{constructor(){this.template=u(te)}};n.\u0275fac=function(r){return new(r||n)},n.\u0275dir=P({type:n,selectors:[["","ng-loadingtext-tmp",""]]});let t=n;return t})(),qC=(()=>{let n=class n{constructor(){this.template=u(te)}};n.\u0275fac=function(r){return new(r||n)},n.\u0275dir=P({type:n,selectors:[["","ng-tag-tmp",""]]});let t=n;return t})(),YC=(()=>{let n=class n{constructor(){this.template=u(te)}};n.\u0275fac=function(r){return new(r||n)},n.\u0275dir=P({type:n,selectors:[["","ng-loadingspinner-tmp",""]]});let t=n;return t})(),QC=(()=>{let n=class n{constructor(){this.template=u(te)}};n.\u0275fac=function(r){return new(r||n)},n.\u0275dir=P({type:n,selectors:[["","ng-clearbutton-tmp",""]]});let t=n;return t})(),Dme=(()=>{let n=class n{constructor(){this.fixedPlaceholder=!0,this.notFoundText="No items found",this.typeToSearchText="Type to search",this.addTagText="Add item",this.loadingText="Loading...",this.clearAllText="Clear all",this.disableVirtualScroll=!0,this.openOnEnter=!0,this.appearance="underline",this.tabFocusOnClear=!0,this.outsideClickEvent="click"}};n.\u0275fac=function(r){return new(r||n)},n.\u0275prov=R({token:n,factory:n.\u0275fac,providedIn:"root"});let t=n;return t})(),Eme=(()=>{let n=class n{warn(i){console.warn(i)}};n.\u0275fac=function(r){return new(r||n)},n.\u0275prov=R({token:n,factory:n.\u0275fac,providedIn:"root"});let t=n;return t})();function kz(){return"axxxxxxxxxxx".replace(/[x]/g,()=>(Math.random()*16|0).toString(16))}var Mme={"\u24B6":"A",\uFF21:"A",\u00C0:"A",\u00C1:"A",\u00C2:"A",\u1EA6:"A",\u1EA4:"A",\u1EAA:"A",\u1EA8:"A",\u00C3:"A",\u0100:"A",\u0102:"A",\u1EB0:"A",\u1EAE:"A",\u1EB4:"A",\u1EB2:"A",\u0226:"A",\u01E0:"A",\u00C4:"A",\u01DE:"A",\u1EA2:"A",\u00C5:"A",\u01FA:"A",\u01CD:"A",\u0200:"A",\u0202:"A",\u1EA0:"A",\u1EAC:"A",\u1EB6:"A",\u1E00:"A",\u0104:"A","\u023A":"A","\u2C6F":"A","\uA732":"AA",\u00C6:"AE",\u01FC:"AE",\u01E2:"AE","\uA734":"AO","\uA736":"AU","\uA738":"AV","\uA73A":"AV","\uA73C":"AY","\u24B7":"B",\uFF22:"B",\u1E02:"B",\u1E04:"B",\u1E06:"B","\u0243":"B",\u0182:"B",\u0181:"B","\u24B8":"C",\uFF23:"C",\u0106:"C",\u0108:"C",\u010A:"C",\u010C:"C",\u00C7:"C",\u1E08:"C",\u0187:"C","\u023B":"C","\uA73E":"C","\u24B9":"D",\uFF24:"D",\u1E0A:"D",\u010E:"D",\u1E0C:"D",\u1E10:"D",\u1E12:"D",\u1E0E:"D",\u0110:"D",\u018B:"D",\u018A:"D",\u0189:"D","\uA779":"D",\u01F1:"DZ",\u01C4:"DZ",\u01F2:"Dz",\u01C5:"Dz","\u24BA":"E",\uFF25:"E",\u00C8:"E",\u00C9:"E",\u00CA:"E",\u1EC0:"E",\u1EBE:"E",\u1EC4:"E",\u1EC2:"E",\u1EBC:"E",\u0112:"E",\u1E14:"E",\u1E16:"E",\u0114:"E",\u0116:"E",\u00CB:"E",\u1EBA:"E",\u011A:"E",\u0204:"E",\u0206:"E",\u1EB8:"E",\u1EC6:"E",\u0228:"E",\u1E1C:"E",\u0118:"E",\u1E18:"E",\u1E1A:"E",\u0190:"E",\u018E:"E","\u24BB":"F",\uFF26:"F",\u1E1E:"F",\u0191:"F","\uA77B":"F","\u24BC":"G",\uFF27:"G",\u01F4:"G",\u011C:"G",\u1E20:"G",\u011E:"G",\u0120:"G",\u01E6:"G",\u0122:"G",\u01E4:"G",\u0193:"G","\uA7A0":"G","\uA77D":"G","\uA77E":"G","\u24BD":"H",\uFF28:"H",\u0124:"H",\u1E22:"H",\u1E26:"H",\u021E:"H",\u1E24:"H",\u1E28:"H",\u1E2A:"H",\u0126:"H","\u2C67":"H","\u2C75":"H","\uA78D":"H","\u24BE":"I",\uFF29:"I",\u00CC:"I",\u00CD:"I",\u00CE:"I",\u0128:"I",\u012A:"I",\u012C:"I",\u0130:"I",\u00CF:"I",\u1E2E:"I",\u1EC8:"I",\u01CF:"I",\u0208:"I",\u020A:"I",\u1ECA:"I",\u012E:"I",\u1E2C:"I",\u0197:"I","\u24BF":"J",\uFF2A:"J",\u0134:"J","\u0248":"J","\u24C0":"K",\uFF2B:"K",\u1E30:"K",\u01E8:"K",\u1E32:"K",\u0136:"K",\u1E34:"K",\u0198:"K","\u2C69":"K","\uA740":"K","\uA742":"K","\uA744":"K","\uA7A2":"K","\u24C1":"L",\uFF2C:"L",\u013F:"L",\u0139:"L",\u013D:"L",\u1E36:"L",\u1E38:"L",\u013B:"L",\u1E3C:"L",\u1E3A:"L",\u0141:"L","\u023D":"L","\u2C62":"L","\u2C60":"L","\uA748":"L","\uA746":"L","\uA780":"L",\u01C7:"LJ",\u01C8:"Lj","\u24C2":"M",\uFF2D:"M",\u1E3E:"M",\u1E40:"M",\u1E42:"M","\u2C6E":"M",\u019C:"M","\u24C3":"N",\uFF2E:"N",\u01F8:"N",\u0143:"N",\u00D1:"N",\u1E44:"N",\u0147:"N",\u1E46:"N",\u0145:"N",\u1E4A:"N",\u1E48:"N","\u0220":"N",\u019D:"N","\uA790":"N","\uA7A4":"N",\u01CA:"NJ",\u01CB:"Nj","\u24C4":"O",\uFF2F:"O",\u00D2:"O",\u00D3:"O",\u00D4:"O",\u1ED2:"O",\u1ED0:"O",\u1ED6:"O",\u1ED4:"O",\u00D5:"O",\u1E4C:"O",\u022C:"O",\u1E4E:"O",\u014C:"O",\u1E50:"O",\u1E52:"O",\u014E:"O",\u022E:"O",\u0230:"O",\u00D6:"O",\u022A:"O",\u1ECE:"O",\u0150:"O",\u01D1:"O",\u020C:"O",\u020E:"O",\u01A0:"O",\u1EDC:"O",\u1EDA:"O",\u1EE0:"O",\u1EDE:"O",\u1EE2:"O",\u1ECC:"O",\u1ED8:"O",\u01EA:"O",\u01EC:"O",\u00D8:"O",\u01FE:"O",\u0186:"O",\u019F:"O","\uA74A":"O","\uA74C":"O",\u01A2:"OI","\uA74E":"OO",\u0222:"OU","\u24C5":"P",\uFF30:"P",\u1E54:"P",\u1E56:"P",\u01A4:"P","\u2C63":"P","\uA750":"P","\uA752":"P","\uA754":"P","\u24C6":"Q",\uFF31:"Q","\uA756":"Q","\uA758":"Q","\u024A":"Q","\u24C7":"R",\uFF32:"R",\u0154:"R",\u1E58:"R",\u0158:"R",\u0210:"R",\u0212:"R",\u1E5A:"R",\u1E5C:"R",\u0156:"R",\u1E5E:"R","\u024C":"R","\u2C64":"R","\uA75A":"R","\uA7A6":"R","\uA782":"R","\u24C8":"S",\uFF33:"S","\u1E9E":"S",\u015A:"S",\u1E64:"S",\u015C:"S",\u1E60:"S",\u0160:"S",\u1E66:"S",\u1E62:"S",\u1E68:"S",\u0218:"S",\u015E:"S","\u2C7E":"S","\uA7A8":"S","\uA784":"S","\u24C9":"T",\uFF34:"T",\u1E6A:"T",\u0164:"T",\u1E6C:"T",\u021A:"T",\u0162:"T",\u1E70:"T",\u1E6E:"T",\u0166:"T",\u01AC:"T",\u01AE:"T","\u023E":"T","\uA786":"T","\uA728":"TZ","\u24CA":"U",\uFF35:"U",\u00D9:"U",\u00DA:"U",\u00DB:"U",\u0168:"U",\u1E78:"U",\u016A:"U",\u1E7A:"U",\u016C:"U",\u00DC:"U",\u01DB:"U",\u01D7:"U",\u01D5:"U",\u01D9:"U",\u1EE6:"U",\u016E:"U",\u0170:"U",\u01D3:"U",\u0214:"U",\u0216:"U",\u01AF:"U",\u1EEA:"U",\u1EE8:"U",\u1EEE:"U",\u1EEC:"U",\u1EF0:"U",\u1EE4:"U",\u1E72:"U",\u0172:"U",\u1E76:"U",\u1E74:"U","\u0244":"U","\u24CB":"V",\uFF36:"V",\u1E7C:"V",\u1E7E:"V",\u01B2:"V","\uA75E":"V","\u0245":"V","\uA760":"VY","\u24CC":"W",\uFF37:"W",\u1E80:"W",\u1E82:"W",\u0174:"W",\u1E86:"W",\u1E84:"W",\u1E88:"W","\u2C72":"W","\u24CD":"X",\uFF38:"X",\u1E8A:"X",\u1E8C:"X","\u24CE":"Y",\uFF39:"Y",\u1EF2:"Y",\u00DD:"Y",\u0176:"Y",\u1EF8:"Y",\u0232:"Y",\u1E8E:"Y",\u0178:"Y",\u1EF6:"Y",\u1EF4:"Y",\u01B3:"Y","\u024E":"Y","\u1EFE":"Y","\u24CF":"Z",\uFF3A:"Z",\u0179:"Z",\u1E90:"Z",\u017B:"Z",\u017D:"Z",\u1E92:"Z",\u1E94:"Z",\u01B5:"Z",\u0224:"Z","\u2C7F":"Z","\u2C6B":"Z","\uA762":"Z","\u24D0":"a",\uFF41:"a",\u1E9A:"a",\u00E0:"a",\u00E1:"a",\u00E2:"a",\u1EA7:"a",\u1EA5:"a",\u1EAB:"a",\u1EA9:"a",\u00E3:"a",\u0101:"a",\u0103:"a",\u1EB1:"a",\u1EAF:"a",\u1EB5:"a",\u1EB3:"a",\u0227:"a",\u01E1:"a",\u00E4:"a",\u01DF:"a",\u1EA3:"a",\u00E5:"a",\u01FB:"a",\u01CE:"a",\u0201:"a",\u0203:"a",\u1EA1:"a",\u1EAD:"a",\u1EB7:"a",\u1E01:"a",\u0105:"a","\u2C65":"a",\u0250:"a","\uA733":"aa",\u00E6:"ae",\u01FD:"ae",\u01E3:"ae","\uA735":"ao","\uA737":"au","\uA739":"av","\uA73B":"av","\uA73D":"ay","\u24D1":"b",\uFF42:"b",\u1E03:"b",\u1E05:"b",\u1E07:"b",\u0180:"b",\u0183:"b",\u0253:"b","\u24D2":"c",\uFF43:"c",\u0107:"c",\u0109:"c",\u010B:"c",\u010D:"c",\u00E7:"c",\u1E09:"c",\u0188:"c","\u023C":"c","\uA73F":"c","\u2184":"c","\u24D3":"d",\uFF44:"d",\u1E0B:"d",\u010F:"d",\u1E0D:"d",\u1E11:"d",\u1E13:"d",\u1E0F:"d",\u0111:"d",\u018C:"d",\u0256:"d",\u0257:"d","\uA77A":"d",\u01F3:"dz",\u01C6:"dz","\u24D4":"e",\uFF45:"e",\u00E8:"e",\u00E9:"e",\u00EA:"e",\u1EC1:"e",\u1EBF:"e",\u1EC5:"e",\u1EC3:"e",\u1EBD:"e",\u0113:"e",\u1E15:"e",\u1E17:"e",\u0115:"e",\u0117:"e",\u00EB:"e",\u1EBB:"e",\u011B:"e",\u0205:"e",\u0207:"e",\u1EB9:"e",\u1EC7:"e",\u0229:"e",\u1E1D:"e",\u0119:"e",\u1E19:"e",\u1E1B:"e","\u0247":"e",\u025B:"e",\u01DD:"e","\u24D5":"f",\uFF46:"f",\u1E1F:"f",\u0192:"f","\uA77C":"f","\u24D6":"g",\uFF47:"g",\u01F5:"g",\u011D:"g",\u1E21:"g",\u011F:"g",\u0121:"g",\u01E7:"g",\u0123:"g",\u01E5:"g",\u0260:"g","\uA7A1":"g","\u1D79":"g","\uA77F":"g","\u24D7":"h",\uFF48:"h",\u0125:"h",\u1E23:"h",\u1E27:"h",\u021F:"h",\u1E25:"h",\u1E29:"h",\u1E2B:"h",\u1E96:"h",\u0127:"h","\u2C68":"h","\u2C76":"h",\u0265:"h",\u0195:"hv","\u24D8":"i",\uFF49:"i",\u00EC:"i",\u00ED:"i",\u00EE:"i",\u0129:"i",\u012B:"i",\u012D:"i",\u00EF:"i",\u1E2F:"i",\u1EC9:"i",\u01D0:"i",\u0209:"i",\u020B:"i",\u1ECB:"i",\u012F:"i",\u1E2D:"i",\u0268:"i",\u0131:"i","\u24D9":"j",\uFF4A:"j",\u0135:"j",\u01F0:"j","\u0249":"j","\u24DA":"k",\uFF4B:"k",\u1E31:"k",\u01E9:"k",\u1E33:"k",\u0137:"k",\u1E35:"k",\u0199:"k","\u2C6A":"k","\uA741":"k","\uA743":"k","\uA745":"k","\uA7A3":"k","\u24DB":"l",\uFF4C:"l",\u0140:"l",\u013A:"l",\u013E:"l",\u1E37:"l",\u1E39:"l",\u013C:"l",\u1E3D:"l",\u1E3B:"l",\u017F:"l",\u0142:"l",\u019A:"l",\u026B:"l","\u2C61":"l","\uA749":"l","\uA781":"l","\uA747":"l",\u01C9:"lj","\u24DC":"m",\uFF4D:"m",\u1E3F:"m",\u1E41:"m",\u1E43:"m",\u0271:"m",\u026F:"m","\u24DD":"n",\uFF4E:"n",\u01F9:"n",\u0144:"n",\u00F1:"n",\u1E45:"n",\u0148:"n",\u1E47:"n",\u0146:"n",\u1E4B:"n",\u1E49:"n",\u019E:"n",\u0272:"n",\u0149:"n","\uA791":"n","\uA7A5":"n",\u01CC:"nj","\u24DE":"o",\uFF4F:"o",\u00F2:"o",\u00F3:"o",\u00F4:"o",\u1ED3:"o",\u1ED1:"o",\u1ED7:"o",\u1ED5:"o",\u00F5:"o",\u1E4D:"o",\u022D:"o",\u1E4F:"o",\u014D:"o",\u1E51:"o",\u1E53:"o",\u014F:"o",\u022F:"o",\u0231:"o",\u00F6:"o",\u022B:"o",\u1ECF:"o",\u0151:"o",\u01D2:"o",\u020D:"o",\u020F:"o",\u01A1:"o",\u1EDD:"o",\u1EDB:"o",\u1EE1:"o",\u1EDF:"o",\u1EE3:"o",\u1ECD:"o",\u1ED9:"o",\u01EB:"o",\u01ED:"o",\u00F8:"o",\u01FF:"o",\u0254:"o","\uA74B":"o","\uA74D":"o",\u0275:"o",\u01A3:"oi",\u0223:"ou","\uA74F":"oo","\u24DF":"p",\uFF50:"p",\u1E55:"p",\u1E57:"p",\u01A5:"p","\u1D7D":"p","\uA751":"p","\uA753":"p","\uA755":"p","\u24E0":"q",\uFF51:"q","\u024B":"q","\uA757":"q","\uA759":"q","\u24E1":"r",\uFF52:"r",\u0155:"r",\u1E59:"r",\u0159:"r",\u0211:"r",\u0213:"r",\u1E5B:"r",\u1E5D:"r",\u0157:"r",\u1E5F:"r","\u024D":"r",\u027D:"r","\uA75B":"r","\uA7A7":"r","\uA783":"r","\u24E2":"s",\uFF53:"s",\u00DF:"s",\u015B:"s",\u1E65:"s",\u015D:"s",\u1E61:"s",\u0161:"s",\u1E67:"s",\u1E63:"s",\u1E69:"s",\u0219:"s",\u015F:"s","\u023F":"s","\uA7A9":"s","\uA785":"s",\u1E9B:"s","\u24E3":"t",\uFF54:"t",\u1E6B:"t",\u1E97:"t",\u0165:"t",\u1E6D:"t",\u021B:"t",\u0163:"t",\u1E71:"t",\u1E6F:"t",\u0167:"t",\u01AD:"t",\u0288:"t","\u2C66":"t","\uA787":"t","\uA729":"tz","\u24E4":"u",\uFF55:"u",\u00F9:"u",\u00FA:"u",\u00FB:"u",\u0169:"u",\u1E79:"u",\u016B:"u",\u1E7B:"u",\u016D:"u",\u00FC:"u",\u01DC:"u",\u01D8:"u",\u01D6:"u",\u01DA:"u",\u1EE7:"u",\u016F:"u",\u0171:"u",\u01D4:"u",\u0215:"u",\u0217:"u",\u01B0:"u",\u1EEB:"u",\u1EE9:"u",\u1EEF:"u",\u1EED:"u",\u1EF1:"u",\u1EE5:"u",\u1E73:"u",\u0173:"u",\u1E77:"u",\u1E75:"u",\u0289:"u","\u24E5":"v",\uFF56:"v",\u1E7D:"v",\u1E7F:"v",\u028B:"v","\uA75F":"v",\u028C:"v","\uA761":"vy","\u24E6":"w",\uFF57:"w",\u1E81:"w",\u1E83:"w",\u0175:"w",\u1E87:"w",\u1E85:"w",\u1E98:"w",\u1E89:"w","\u2C73":"w","\u24E7":"x",\uFF58:"x",\u1E8B:"x",\u1E8D:"x","\u24E8":"y",\uFF59:"y",\u1EF3:"y",\u00FD:"y",\u0177:"y",\u1EF9:"y",\u0233:"y",\u1E8F:"y",\u00FF:"y",\u1EF7:"y",\u1E99:"y",\u1EF5:"y",\u01B4:"y","\u024F":"y","\u1EFF":"y","\u24E9":"z",\uFF5A:"z",\u017A:"z",\u1E91:"z",\u017C:"z",\u017E:"z",\u1E93:"z",\u1E95:"z",\u01B6:"z",\u0225:"z","\u0240":"z","\u2C6C":"z","\uA763":"z",\u0386:"\u0391",\u0388:"\u0395",\u0389:"\u0397",\u038A:"\u0399",\u03AA:"\u0399",\u038C:"\u039F",\u038E:"\u03A5",\u03AB:"\u03A5",\u038F:"\u03A9",\u03AC:"\u03B1",\u03AD:"\u03B5",\u03AE:"\u03B7",\u03AF:"\u03B9",\u03CA:"\u03B9",\u0390:"\u03B9",\u03CC:"\u03BF",\u03CD:"\u03C5",\u03CB:"\u03C5",\u03B0:"\u03C5",\u03C9:"\u03C9",\u03C2:"\u03C3"};function FC(t){let n=e=>Mme[e]||e;return t.replace(/[^\u0000-\u007E]/g,n)}var xI=class{constructor(n,e){this._ngSelect=n,this._selectionModel=e,this._items=[],this._filteredItems=[],this._markedIndex=-1}get items(){return this._items}get filteredItems(){return this._filteredItems}get markedIndex(){return this._markedIndex}get selectedItems(){return this._selectionModel.value}get markedItem(){return this._filteredItems[this._markedIndex]}get noItemsToSelect(){return this._ngSelect.hideSelected()&&this._items.length===this.selectedItems.length}get maxItemsSelected(){return this._ngSelect.multiple()&&this._ngSelect.maxSelectedItems()<=this.selectedItems.length}get lastSelectedItem(){let n=this.selectedItems.length-1;for(;n>=0;n--){let e=this.selectedItems[n];if(!e.disabled)return e}return null}setItems(n){this._items=n.map((i,r)=>this.mapItem(i,r));let e=this._ngSelect.groupBy();e?(this._groups=this._groupBy(this._items,e),this._items=this._flatten(this._groups)):(this._groups=new Map,this._groups.set(void 0,this._items)),this._filteredItems=[...this._items]}select(n){if(n.selected||this.maxItemsSelected)return;let e=this._ngSelect.multiple();e||this.clearSelected(),this._selectionModel.select(n,e,this._ngSelect.selectableGroupAsModel()),this._ngSelect.hideSelected()&&this._hideSelected(n)}unselect(n){if(!n.selected)return;let e=this._ngSelect.multiple();this._selectionModel.unselect(n,e),this._ngSelect.hideSelected()&&nn(n.index)&&e&&this._showSelected(n)}findItem(n){let e;return this._ngSelect.compareWith()?e=i=>this._ngSelect.compareWith()(i.value,n):this._ngSelect.bindValue()?e=i=>!i.children&&this.resolveNested(i.value,this._ngSelect.bindValue())===n:e=i=>i.value===n||!i.children&&i.label&&i.label===this.resolveNested(n,this._ngSelect.bindLabel()),this._items.find(i=>e(i))}addItem(n){let e=this.mapItem(n,this._items.length);return this._items.push(e),this._filteredItems.push(e),e}clearSelected(n=!1){this._selectionModel.clear(n),this._items.forEach(e=>{e.selected=n&&e.selected&&e.disabled,e.marked=!1}),this._ngSelect.hideSelected()&&this.resetFilteredItems()}findByLabel(n){return n=FC(n).toLocaleLowerCase(),this.filteredItems.find(e=>FC(e.label).toLocaleLowerCase().substr(0,n.length)===n)}filter(n){if(!n){this.resetFilteredItems();return}this._filteredItems=[],n=this._ngSelect.searchFn()?n:FC(n).toLocaleLowerCase();let e=this._ngSelect.searchFn()||this._defaultSearchFn,i=this._ngSelect.hideSelected();for(let r of Array.from(this._groups.keys())){let o=[];for(let a of this._groups.get(r)){if(i&&(a.parent&&a.parent.selected||a.selected))continue;let s=this._ngSelect.searchFn()?a.value:a;e(n,s)&&o.push(a)}if(o.length>0){let[a]=o.slice(-1);if(a.parent){let s=this._items.find(l=>l===a.parent);this._filteredItems.push(s)}this._filteredItems.push(...o)}}}resetFilteredItems(){this._filteredItems.length!==this._items.length&&(this._ngSelect.hideSelected()&&this.selectedItems.length>0?this._filteredItems=this._items.filter(n=>!n.selected):this._filteredItems=this._items)}unmarkItem(){this._markedIndex=-1}markNextItem(){this._stepToItem(1)}markPreviousItem(){this._stepToItem(-1)}markItem(n){this._markedIndex=this._filteredItems.indexOf(n)}markSelectedOrDefault(n){if(this._filteredItems.length===0)return;let e=this._getLastMarkedIndex();e>-1?this._markedIndex=e:this._markedIndex=n?this.filteredItems.findIndex(i=>!i.disabled):-1}resolveNested(n,e){if(!Ru(n))return n;if(e.indexOf(".")===-1)return n[e];{let i=e.split("."),r=n;for(let o=0,a=i.length;othis._ngSelect.compareWith()(o.value,e.value));else{let o=i?this.resolveNested(e.value,i):e.value;r=nn(o)?this.findItem(o):null}this._selectionModel.unselect(e,n),this._selectionModel.select(r||e,n,this._ngSelect.selectableGroupAsModel())}this._ngSelect.hideSelected()&&(this._filteredItems=this.filteredItems.filter(e=>this.selectedItems.indexOf(e)===-1))}_showSelected(n){if(this._filteredItems.push(n),n.parent){let e=n.parent;this._filteredItems.find(r=>r===e)||this._filteredItems.push(e)}else if(n.children)for(let e of n.children)e.selected=!1,this._filteredItems.push(e);this._filteredItems=[...this._filteredItems.sort((e,i)=>e.index-i.index)]}_hideSelected(n){this._filteredItems=this._filteredItems.filter(e=>e!==n),n.parent?n.parent.children.every(i=>i.selected)&&(this._filteredItems=this._filteredItems.filter(i=>i!==n.parent)):n.children&&(this._filteredItems=this.filteredItems.filter(e=>e.parent!==n))}_defaultSearchFn(n,e){return FC(e.label).toLocaleLowerCase().indexOf(n)>-1}_getNextItemIndex(n){return n>0?this._markedIndex>=this._filteredItems.length-1?0:this._markedIndex+1:this._markedIndex<=0?this._filteredItems.length-1:this._markedIndex-1}_stepToItem(n){this._filteredItems.length===0||this._filteredItems.every(e=>e.disabled)||(this._markedIndex=this._getNextItemIndex(n),this.markedItem.disabled&&this._stepToItem(n))}_getLastMarkedIndex(){if(this._ngSelect.hideSelected()||this._markedIndex>-1&&this.markedItem===void 0)return-1;let n=this._filteredItems.indexOf(this.lastSelectedItem);return this.lastSelectedItem&&n<0?-1:Math.max(this.markedIndex,n)}_groupBy(n,e){let i=new Map;if(n.length===0)return i;if(Array.isArray(n[0].value[e])){for(let a of n){let s=(a.value[e]||[]).map((l,c)=>this.mapItem(l,c));i.set(a,s)}return i}let r=NC(this._ngSelect.groupBy()),o=a=>{let s=r?e(a.value):a.value[e];return nn(s)?s:void 0};for(let a of n){let s=o(a),l=i.get(s);l?l.push(a):i.set(s,[a])}return i}_flatten(n){let e=NC(this._ngSelect.groupBy()),i=[];for(let r of Array.from(n.keys())){let o=i.length;if(r===void 0){let p=n.get(void 0)||[];i.push(...p.map(_=>(_.index=o++,_)));continue}let a=Ru(r),s={label:a?"":String(r),children:void 0,parent:null,index:o++,disabled:!this._ngSelect.selectableGroup(),htmlId:kz()},l=e?this._ngSelect.bindLabel():this._ngSelect.groupBy(),c=this._ngSelect.groupValue()||(()=>a?r.value:{[l]:r}),d=n.get(r).map(p=>(p.parent=s,p.children=void 0,p.index=o++,p));s.children=d,s.value=c(r,d.map(p=>p.value)),i.push(s),i.push(...d)}return i}},Tz=(()=>{let n=class n{constructor(){this._dimensions={itemHeight:0,panelHeight:0,itemsPerViewport:0}}get dimensions(){return this._dimensions}calculateItems(i,r,o){let a=this._dimensions,s=a.itemHeight*r,c=Math.max(0,i)/s*r,d=Math.min(r,Math.ceil(c)+(a.itemsPerViewport+1)),_=Math.max(0,d-a.itemsPerViewport),b=Math.min(_,Math.floor(c)),y=a.itemHeight*Math.ceil(b)-a.itemHeight*Math.min(b,o);return y=isNaN(y)?0:y,b=isNaN(b)?-1:b,d=isNaN(d)?-1:d,b-=o,b=Math.max(0,b),d+=o,d=Math.min(r,d),{topPadding:y,scrollHeight:s,start:b,end:d}}setDimensions(i,r){let o=Math.max(1,Math.floor(r/i));this._dimensions={itemHeight:i,panelHeight:r,itemsPerViewport:o}}getScrollTo(i,r,o){let{panelHeight:a}=this.dimensions,s=i+r,l=o,c=l+a;return a>=s&&o===i?null:s>c?l+s-c:i<=l?i:null}};n.\u0275fac=function(r){return new(r||n)},n.\u0275prov=R({token:n,factory:n.\u0275fac});let t=n;return t})(),Dz=["top","right","bottom","left"],Sme=typeof requestAnimationFrame<"u"?Q_:G_,yI=(()=>{let n=class n{get currentPosition(){return this._currentPosition}get itemsLength(){return this._itemsLength}set itemsLength(i){i!==this._itemsLength&&(this._itemsLength=i,this._onItemsLengthChanged())}get _startOffset(){if(this.markedItem()){let{itemHeight:i,panelHeight:r}=this._panelService.dimensions,o=this.markedItem().index*i;return r>o?0:o}return 0}constructor(){this._renderer=u(ze),this._zone=u(ae),this._panelService=u(Tz),this._document=u(_e,{optional:!0}),this._destroyRef=u(an),this._dropdown=u(Y).nativeElement,this.items=re([]),this.showAddTag=re(!1,{transform:L}),this.markedItem=re(void 0),this.position=re("auto"),this.appendTo=re(void 0),this.bufferAmount=re(void 0),this.virtualScroll=re(!1,{transform:L}),this.headerTemplate=re(void 0),this.footerTemplate=re(void 0),this.filterValue=re(null),this.ariaLabelDropdown=re(null),this.outsideClickEvent=re("click"),this.update=yi(),this.scroll=yi(),this.scrollToEnd=yi(),this.outsideClick=yi(),this.contentElementRef=Qn("content",{read:Y}),this.scrollElementRef=Qn("scroll",{read:Y}),this.paddingElementRef=Qn("padding",{read:Y}),this._virtualPadding=oi(()=>this.paddingElementRef()?.nativeElement),this._scrollablePanel=oi(()=>this.scrollElementRef()?.nativeElement),this._contentPanel=oi(()=>this.contentElementRef()?.nativeElement),this._scrollToEndFired=!1,this._updateScrollHeight=!1,this._lastScrollPosition=0,this._destroyRef.onDestroy(()=>{this.appendTo()&&this._renderer.removeChild(this._dropdown.parentNode,this._dropdown)})}ngOnInit(){this._select=this._dropdown.parentElement,this._handleScroll(),this._handleOutsideClick(),this._appendDropdown(),this._setupMousedownListener()}ngOnChanges(i){if(i.items){let r=i.items;this._onItemsOrShowAddTagChange(r.currentValue,this.showAddTag(),r.firstChange)}if(i.showAddTag){let r=i.showAddTag;this._onItemsOrShowAddTagChange(this.items(),r.currentValue,r.firstChange)}}scrollTo(i,r=!1){if(!i)return;let o=this.items().indexOf(i);if(o<0||o>=this.itemsLength)return;let a;if(this.virtualScroll()){let s=this._panelService.dimensions.itemHeight;a=this._panelService.getScrollTo(o*s,s,this._lastScrollPosition)}else{let s=this._dropdown.querySelector(`#${i.htmlId}`),l=r?s.offsetTop:this._lastScrollPosition;a=this._panelService.getScrollTo(s.offsetTop,s.clientHeight,l)}nn(a)&&(this._scrollablePanel().scrollTop=a)}scrollToTag(){let i=this._scrollablePanel();i.scrollTop=i.scrollHeight-i.clientHeight}adjustPosition(){this._updateYPosition()}_handleDropdownPosition(){this._currentPosition=this._calculateCurrentPosition(this._dropdown),Dz.includes(this._currentPosition)?this._updateDropdownClass(this._currentPosition):this._updateDropdownClass("bottom"),this.appendTo()&&this._updateYPosition(),this._dropdown.style.opacity="1"}_updateDropdownClass(i){Dz.forEach(o=>{let a=`ng-select-${o}`;this._renderer.removeClass(this._dropdown,a),this._renderer.removeClass(this._select,a)});let r=`ng-select-${i}`;this._renderer.addClass(this._dropdown,r),this._renderer.addClass(this._select,r)}_handleScroll(){this._zone.runOutsideAngular(()=>{this._scrollablePanel()&&Us(this._scrollablePanel(),"scroll").pipe(Ou(this._destroyRef),Nl(0,Sme)).subscribe(i=>{let r=i.target;r&&"scrollTop"in r&&this._onContentScrolled(r.scrollTop)})})}_handleOutsideClick(){this._document&&this._zone.runOutsideAngular(()=>{Us(this._document,this.outsideClickEvent(),{capture:!0}).pipe(Ou(this._destroyRef)).subscribe(i=>this._checkToClose(i))})}_checkToClose(i){if(this._select.contains(i.target)||this._dropdown.contains(i.target))return;let r=i.path||i.composedPath&&i.composedPath();i.target&&i.target.shadowRoot&&r&&r[0]&&this._select.contains(r[0])||this._zone.run(()=>this.outsideClick.emit())}_onItemsOrShowAddTagChange(i=[],r,o){this._scrollToEndFired=!1,this.itemsLength=i.length,r&&i.length&&this.itemsLength++,this.virtualScroll()?this._updateItemsRange(o):(this._setVirtualHeight(),this._updateItems(o))}_updateItems(i){this.update.emit(this.items()),i!==!1&&this._zone.runOutsideAngular(()=>{Promise.resolve().then(()=>{let r=this._scrollablePanel().clientHeight;this._panelService.setDimensions(0,r),this._handleDropdownPosition(),this.scrollTo(this.markedItem(),i)})})}_updateItemsRange(i){this._zone.runOutsideAngular(()=>{this._measureDimensions().then(()=>{i?(this._renderItemsRange(this._startOffset),this._handleDropdownPosition()):this._renderItemsRange()})})}_onContentScrolled(i){this.virtualScroll()&&this._renderItemsRange(i),this._lastScrollPosition=i,this._fireScrollToEnd(i)}_updateVirtualHeight(i){this._updateScrollHeight&&(this._virtualPadding().style.height=`${i}px`,this._updateScrollHeight=!1)}_setVirtualHeight(){this._virtualPadding()&&(this._virtualPadding().style.height="0px")}_onItemsLengthChanged(){this._updateScrollHeight=!0}_renderItemsRange(i=null){if(i&&this._lastScrollPosition===i)return;i=i||this._scrollablePanel().scrollTop;let r=this._panelService.calculateItems(i,this.itemsLength,this.bufferAmount());this._updateVirtualHeight(r.scrollHeight),this._contentPanel().style.transform=`translateY(${r.topPadding}px)`,this._zone.run(()=>{this.update.emit(this.items().slice(r.start,r.end)),this.scroll.emit({start:r.start,end:r.end})}),nn(i)&&this._lastScrollPosition===0&&(this._scrollablePanel().scrollTop=i,this._lastScrollPosition=i)}_measureDimensions(){if(this._panelService.dimensions.itemHeight>0||this.itemsLength===0)return Promise.resolve(this._panelService.dimensions);let[i]=this.items();return this.update.emit([i]),Promise.resolve().then(()=>{let o=this._dropdown.querySelector(`#${i.htmlId}`).clientHeight;this._virtualPadding().style.height=`${o*this.itemsLength}px`;let a=this._scrollablePanel().clientHeight;return this._panelService.setDimensions(o,a),this._panelService.dimensions})}_fireScrollToEnd(i){if(this._scrollToEndFired||i===0)return;let r=this.virtualScroll()?this._virtualPadding():this._contentPanel();i+this._dropdown.clientHeight>=r.clientHeight-1&&(this._zone.run(()=>this.scrollToEnd.emit()),this._scrollToEndFired=!0)}_calculateCurrentPosition(i){let r=this.position();if(r!=="auto")return r;let o=this._select.getBoundingClientRect(),a=document.documentElement.scrollTop||document.body.scrollTop,s=o.top+window.pageYOffset,l=o.height,c=i.getBoundingClientRect().height;return s+l+c>a+document.documentElement.clientHeight?"top":"bottom"}_appendDropdown(){if(this.appendTo()){if(this._parent=this._dropdown.shadowRoot?this._dropdown.shadowRoot.querySelector(this.appendTo()):document.querySelector(this.appendTo()),!this._parent)throw new Error(`appendTo selector ${this.appendTo()} did not found any parent element`);this._updateXPosition(),this._parent.appendChild(this._dropdown)}}_updateXPosition(){let i=this._select.getBoundingClientRect(),r=this._parent.getBoundingClientRect(),o=document.documentElement.dir==="rtl",a=i.left-r.left;if(o){let s=r.right-i.right;this._dropdown.style.right=s+"px",this._dropdown.style.left="auto"}else this._dropdown.style.left=a+"px",this._dropdown.style.right="auto";this._dropdown.style.width=i.width+"px",this._dropdown.style.minWidth=i.width+"px"}_updateYPosition(){let i=this._select.getBoundingClientRect(),r=this._parent.getBoundingClientRect(),o=i.height;if(this._currentPosition==="top"){let a=r.bottom-i.bottom;this._dropdown.style.bottom=a+o+"px",this._dropdown.style.top="auto"}else if(this._currentPosition==="bottom"){let a=i.top-r.top;this._dropdown.style.top=a+o+"px",this._dropdown.style.bottom="auto"}}_setupMousedownListener(){this._zone.runOutsideAngular(()=>{Us(this._dropdown,"mousedown").pipe(Ou(this._destroyRef)).subscribe(i=>{i.target.tagName!=="INPUT"&&i.preventDefault()})})}};n.\u0275fac=function(r){return new(r||n)},n.\u0275cmp=E({type:n,selectors:[["ng-dropdown-panel"]],viewQuery:function(r,o){r&1&&(Nn(o.contentElementRef,Aue,5,Y),Nn(o.scrollElementRef,Oue,5,Y),Nn(o.paddingElementRef,Rue,5,Y)),r&2&&Go(3)},inputs:{items:[1,"items"],showAddTag:[1,"showAddTag"],markedItem:[1,"markedItem"],position:[1,"position"],appendTo:[1,"appendTo"],bufferAmount:[1,"bufferAmount"],virtualScroll:[1,"virtualScroll"],headerTemplate:[1,"headerTemplate"],footerTemplate:[1,"footerTemplate"],filterValue:[1,"filterValue"],ariaLabelDropdown:[1,"ariaLabelDropdown"],outsideClickEvent:[1,"outsideClickEvent"]},outputs:{update:"update",scroll:"scroll",scrollToEnd:"scrollToEnd",outsideClick:"outsideClick"},features:[Ae],ngContentSelectors:Mz,decls:9,vars:7,consts:[["scroll",""],["padding",""],["content",""],[1,"ng-dropdown-header"],["role","listbox",1,"ng-dropdown-panel-items","scroll-host"],[1,"ng-dropdown-footer"],[3,"ngTemplateOutlet","ngTemplateOutletContext"]],template:function(r,o){r&1&&(Se(),V(0,Pue,2,4,"div",3),m(1,"div",4,0),M(3,"div",null,1),m(5,"div",null,2),ne(7),h()(),V(8,Fue,2,4,"div",5)),r&2&&(B(o.headerTemplate()?0:-1),f(),X("aria-label",o.ariaLabelDropdown()),f(2),G("total-padding",o.virtualScroll()),f(2),G("scrollable-content",o.virtualScroll()&&o.items().length),f(3),B(o.footerTemplate()?8:-1))},dependencies:[Ln],encapsulation:2,changeDetection:0});let t=n;return t})(),Ez=(()=>{let n=class n{constructor(){this.value=re(),this.disabled=re(!1,{transform:L}),this.elementRef=u(Y),this.label=he(""),gt(()=>{let i=(this.elementRef.nativeElement.innerHTML||"").trim();i!==this.label()&&this.label.set(i)})}};n.\u0275fac=function(r){return new(r||n)},n.\u0275cmp=E({type:n,selectors:[["ng-option"]],inputs:{value:[1,"value"],disabled:[1,"disabled"]},ngContentSelectors:Mz,decls:1,vars:0,template:function(r,o){r&1&&(Se(),ne(0))},encapsulation:2,changeDetection:0});let t=n;return t})(),Fs=(function(t){return t.Tab="Tab",t.Enter="Enter",t.Esc="Escape",t.Space=" ",t.ArrowUp="ArrowUp",t.ArrowDown="ArrowDown",t.Backspace="Backspace",t})(Fs||{});function Iz(){return new CI}var CI=class{constructor(){this._selected=[]}get value(){return this._selected}select(n,e,i){if(n.selected=!0,(!n.children||!e&&i)&&this._selected.push(n),e)if(n.parent){let r=n.parent.children.length,o=n.parent.children.filter(a=>a.selected).length;n.parent.selected=r===o}else n.children&&(this._setChildrenSelectedState(n.children,!0),this._removeChildren(n),i&&this._activeChildren(n)?this._selected=[...this._selected.filter(r=>r.parent!==n),n]:this._selected=[...this._selected,...n.children.filter(r=>!r.disabled)])}unselect(n,e){if(this._selected=this._selected.filter(i=>i!==n),n.selected=!1,e)if(n.parent&&n.parent.selected){let i=n.parent.children;this._removeParent(n.parent),this._removeChildren(n.parent),this._selected.push(...i.filter(r=>r!==n&&!r.disabled)),n.parent.selected=!1}else n.children&&(this._setChildrenSelectedState(n.children,!1),this._removeChildren(n))}clear(n){this._selected=n?this._selected.filter(e=>e.disabled):[]}_setChildrenSelectedState(n,e){for(let i of n)i.disabled||(i.selected=e)}_removeChildren(n){this._selected=[...this._selected.filter(e=>e.parent!==n),...n.children.filter(e=>e.parent===n&&e.disabled&&e.selected)]}_removeParent(n){this._selected=this._selected.filter(e=>e!==n)}_activeChildren(n){return n.children.every(e=>!e.disabled||e.selected)}},Az=new O("ng-select-selection-model"),Oz=(()=>{let n=class n{constructor(){this.classes=u(new Oi("class"),{optional:!0}),this.config=u(Dme),this._cd=u(ye),this._console=u(Eme),this._destroyRef=u(an),this._disabled=he(!1),this.ariaLabelDropdown=re("Options List"),this.ariaLabel=re(void 0),this.markFirst=re(!0,{transform:L}),this.placeholder=re(this.config.placeholder),this.fixedPlaceholder=re(!0),this.notFoundText=re(void 0),this.typeToSearchText=re(void 0),this.preventToggleOnRightClick=re(!1),this.addTagText=re(void 0),this.loadingText=re(void 0),this.clearAllText=re(void 0),this.dropdownPosition=re("auto"),this.appendTo=re(void 0),this.outsideClickEvent=re(this.config.outsideClickEvent),this.loading=re(!1,{transform:L}),this.closeOnSelect=re(!0,{transform:L}),this.hideSelected=re(!1,{transform:L}),this.selectOnTab=re(!1,{transform:L}),this.openOnEnter=re(void 0,{transform:L}),this.maxSelectedItems=re(void 0,{transform:dt}),this.groupBy=re(void 0),this.groupValue=re(void 0),this.bufferAmount=re(4,{transform:dt}),this.virtualScroll=re(void 0,{transform:L}),this.selectableGroup=re(!1,{transform:L}),this.tabFocusOnClearButton=re(),this.selectableGroupAsModel=re(!0,{transform:L}),this.searchFn=re(null),this.trackByFn=re(null),this.clearOnBackspace=re(!0,{transform:L}),this.labelForId=re(null),this.inputAttrs=re({}),this.tabIndex=re(void 0,{transform:dt}),this.readonly=re(!1,{transform:L}),this.searchWhileComposing=re(!0,{transform:L}),this.minTermLength=re(0,{transform:dt}),this.editableSearchTerm=re(!1,{transform:L}),this.ngClass=re(null),this.typeahead=re(void 0),this.multiple=re(!1,{transform:L}),this.addTag=re(!1),this.searchable=re(!0,{transform:L}),this.clearable=re(!0,{transform:L}),this.deselectOnClick=re(),this.clearSearchOnAdd=re(void 0),this.compareWith=re(void 0,{transform:a=>{if(a!=null&&!NC(a))throw Error("`compareWith` must be a function.");return a}}),this.keyDownFn=re(a=>!0),this.bindLabel=Im(void 0),this.bindValue=Im(void 0),this.appearance=Im(void 0),this.isOpen=Im(!1),this.items=Im([]),this.blurEvent=yi({alias:"blur"}),this.focusEvent=yi({alias:"focus"}),this.changeEvent=yi({alias:"change"}),this.openEvent=yi({alias:"open"}),this.closeEvent=yi({alias:"close"}),this.searchEvent=yi({alias:"search"}),this.clearEvent=yi({alias:"clear"}),this.addEvent=yi({alias:"add"}),this.removeEvent=yi({alias:"remove"}),this.scroll=yi({alias:"scroll"}),this.scrollToEnd=yi({alias:"scrollToEnd"}),this.disabled=oi(()=>this.readonly()||this._disabled()),this.clearSearchOnAddValue=oi(()=>nn(this.clearSearchOnAdd())?this.clearSearchOnAdd():nn(this.config.clearSearchOnAdd)?this.config.clearSearchOnAdd:this.closeOnSelect()),this.deselectOnClickValue=oi(()=>nn(this.deselectOnClick())?this.deselectOnClick():nn(this.config.deselectOnClick)?this.config.deselectOnClick:this.multiple()),this.optionTemplate=_r(LC,{read:te}),this.optgroupTemplate=_r(VC,{read:te}),this.labelTemplate=_r(BC,{read:te}),this.multiLabelTemplate=_r(jC,{read:te}),this.headerTemplate=_r(HC,{read:te}),this.footerTemplate=_r(zC,{read:te}),this.notFoundTemplate=_r(UC,{read:te}),this.placeholderTemplate=_r($C,{read:te}),this.typeToSearchTemplate=_r(WC,{read:te}),this.loadingTextTemplate=_r(GC,{read:te}),this.tagTemplate=_r(qC,{read:te}),this.loadingSpinnerTemplate=_r(YC,{read:te}),this.clearButtonTemplate=_r(QC,{read:te}),this.ngOptions=c2(Ez,{descendants:!0}),this.dropdownPanel=Qn(ri(()=>yI)),this.searchInput=Qn("searchInput"),this.clearButton=Qn("clearButton"),this.dropdownId=kz(),this.escapeHTML=!0,this.viewPortItems=[],this.tabFocusOnClear=he(!0),this.autoFocus=u(new Oi("autofocus"),{optional:!0}),this._defaultLabel="label",this._editableSearchTerm=oi(()=>this.editableSearchTerm()&&!this.multiple()),this._injector=u(de),this._isComposing=!1,this._keyPress$=new z,this._pressedKeys=[],this._searchTerm=he(null),this._validTerm=oi(()=>{let a=this._searchTerm()?.trim();return a&&a.length>=this.minTermLength()}),this.clearItem=a=>{let s=this.selectedItems.find(l=>l.value===a);this.unselect(s)},this.trackByOption=(a,s)=>this.trackByFn()?this.trackByFn()(s.value):s,this._onChange=a=>{},this._onTouched=()=>{};let i=this.config,r=u(Az,{optional:!0}),o=u(Y);this._mergeGlobalConfig(i),this.itemsList=new xI(this,r?r():Iz()),this.element=o.nativeElement}get filtered(){return!!this.searchTerm&&this.searchable()||this._isComposing}get focused(){return this._focused}get searchTerm(){return this._searchTerm()}get selectedItems(){return this.itemsList.selectedItems}get selectedValues(){return this.selectedItems.map(i=>i.value)}get hasValue(){return this.selectedItems.length>0}get currentPanelPosition(){if(this.dropdownPanel())return this.dropdownPanel().currentPosition}get showAddTag(){if(!this._validTerm())return!1;let i=this.searchTerm.toLowerCase().trim();return this.addTag()&&!this.itemsList.filteredItems.some(r=>r.label.toLowerCase()===i)&&(!this.hideSelected()&&this.isOpen()||!this.selectedItems.some(r=>r.label.toLowerCase()===i))&&!this.loading()}ngOnInit(){this._handleKeyPresses(),this._setInputAttributes()}ngOnChanges(i){i.multiple&&this.itemsList.clearSelected(),i.items&&(this._itemsAreUsed=!0,this._setItems(i.items.currentValue||[])),i.isOpen&&(this._manualOpen=nn(i.isOpen.currentValue)),i.groupBy&&(i.items||this._setItems([...this.items()])),i.inputAttrs&&this._setInputAttributes(),this._setTabFocusOnClear()}ngAfterViewInit(){this._itemsAreUsed||(this.escapeHTML=!1,this._setItemsFromNgOptions()),nn(this.autoFocus)&&this.focus()}handleKeyDown(i){let r=i.key;if(Object.values(Fs).includes(r)){if(this.keyDownFn()(i)===!1)return;this.handleKeyCode(i)}else r&&r.length===1&&this._keyPress$.next(r.toLocaleLowerCase())}handleKeyCode(i){let r=i.target;this.clearButton()&&this.clearButton().nativeElement===r?this.handleKeyCodeClear(i):this.handleKeyCodeInput(i)}handleKeyCodeInput(i){switch(i.key){case Fs.ArrowDown:this._handleArrowDown(i);break;case Fs.ArrowUp:this._handleArrowUp(i);break;case Fs.Space:this._handleSpace(i);break;case Fs.Enter:this._handleEnter(i);break;case Fs.Tab:this._handleTab(i);break;case Fs.Esc:this.close(),i.preventDefault();break;case Fs.Backspace:this._handleBackspace();break}}handleKeyCodeClear(i){switch(i.key){case Fs.Enter:this.handleClearClick(),i.preventDefault();break}}handleMousedown(i){if(this.disabled())return;if(this.preventToggleOnRightClick()&&i.button===2)return!1;let r=i.target;if(r.tagName!=="INPUT"&&i.preventDefault(),!r.classList.contains("ng-clear-wrapper")){if(r.classList.contains("ng-arrow-wrapper")){this.handleArrowClick();return}r.classList.contains("ng-value-icon")||(this._focused||this.focus(),this.searchable()?this.open():this.toggle())}}handleArrowClick(){this.isOpen()?this.close():this.open()}handleClearClick(i){this.hasValue&&(this.itemsList.clearSelected(!0),this._updateNgModel()),this._clearSearch(),this.focus(),this.clearEvent.emit(),this._onSelectionChanged()}clearModel(){this.clearable()&&(this.itemsList.clearSelected(),this._updateNgModel())}writeValue(i){this.itemsList.clearSelected(),this._handleWriteValue(i),this._editableSearchTerm()&&this._setSearchTermFromItems(),this._cd.markForCheck()}registerOnChange(i){this._onChange=i}registerOnTouched(i){this._onTouched=i}setDisabledState(i){this._disabled.set(i),this._cd.markForCheck()}toggle(){this.isOpen()?this.close():this.open()}open(){this.disabled()||this.isOpen()||this._manualOpen||!this.typeahead()?.observed&&!this.addTag()&&this.itemsList.noItemsToSelect||(this.isOpen.set(!0),this.itemsList.markSelectedOrDefault(this.markFirst()),this.openEvent.emit(),this.searchTerm||this.focus(),this.detectChanges())}close(){!this.isOpen()||this._manualOpen||(this.isOpen.set(!1),this._isComposing=!1,this._editableSearchTerm()?this.itemsList.resetFilteredItems():this._clearSearch(),this.itemsList.unmarkItem(),this._onTouched(),this.closeEvent.emit(),this._cd.markForCheck())}toggleItem(i){!i||i.disabled||this.disabled()||(this.deselectOnClickValue()&&i.selected?this.unselect(i):this.select(i),this._editableSearchTerm()&&this._setSearchTermFromItems())}select(i){i.selected||(this.itemsList.select(i),this.clearSearchOnAddValue()&&!this._editableSearchTerm()&&this._clearSearch(),this._updateNgModel(),this.multiple()&&this.addEvent.emit(i.value)),(this.closeOnSelect()||this.itemsList.noItemsToSelect)&&this.close(),this._onSelectionChanged()}focus(){this.searchInput().nativeElement.focus()}blur(){this.searchInput().nativeElement.blur()}unselect(i){i&&(this.itemsList.unselect(i),this.focus(),this._updateNgModel(),this.removeEvent.emit(i.value),this._onSelectionChanged())}selectTag(){let i;NC(this.addTag())?i=this.addTag()(this.searchTerm):i=this._primitive?this.searchTerm:{[this.bindLabel()]:this.searchTerm};let r=o=>this.typeahead()?.observed||!this.isOpen()?this.itemsList.mapItem(o,null):this.itemsList.addItem(o);Cme(i)?i.then(o=>this.select(r(o))).catch(()=>{}):i&&this.select(r(i))}showClear(){return this.clearable()&&(this.hasValue||this.searchTerm)&&!this.disabled()}focusOnClear(){this.blur(),this.clearButton()&&this.clearButton().nativeElement.focus()}showNoItemsFound(){let i=this.itemsList.filteredItems.length===0;return(i&&!this.typeahead()?.observed&&!this.loading()||i&&this.typeahead()?.observed&&this._validTerm()&&!this.loading())&&!this.showAddTag}showTypeToSearch(){return this.itemsList.filteredItems.length===0&&this.typeahead()?.observed&&!this._validTerm()&&!this.loading()}onCompositionStart(){this._isComposing=!0}onCompositionEnd(i){this._isComposing=!1,!this.searchWhileComposing()&&this.filter(i)}filter(i){this._isComposing&&!this.searchWhileComposing()||(this._searchTerm.set(i),this.typeahead()?.observed&&(this._validTerm()||this.minTermLength()===0)&&this.typeahead().next(i),this.typeahead()?.observed||(this.itemsList.filter(i),this.isOpen()&&this.itemsList.markSelectedOrDefault(this.markFirst())),this.searchEvent.emit({term:i,items:this.itemsList.filteredItems.map(r=>r.value)}),this.open())}onInputFocus(i){this._focused||(this._editableSearchTerm()&&this._setSearchTermFromItems(),this.element.classList.add("ng-select-focused"),this.focusEvent.emit(i),this._focused=!0)}onInputBlur(i){this.element.classList.remove("ng-select-focused"),this.blurEvent.emit(i),!this.isOpen()&&!this.disabled()&&this._onTouched(),this._editableSearchTerm()&&this._setSearchTermFromItems(),this._focused=!1}onItemHover(i){i.disabled||this.itemsList.markItem(i)}detectChanges(){this._cd.destroyed||this._cd.detectChanges()}_setSearchTermFromItems(){let i=this.selectedItems?.[0];this._searchTerm.set(i?.label??null)}_setItems(i){let r=i[0];this.bindLabel.set(this.bindLabel()||this._defaultLabel),this._primitive=nn(r)?!Ru(r):this._primitive||this.bindLabel()===this._defaultLabel,this.itemsList.setItems(i),i.length>0&&this.hasValue&&this.itemsList.mapSelectedItems(),this.isOpen()&&nn(this.searchTerm)&&!this.typeahead()?.observed&&this.itemsList.filter(this.searchTerm),(this.typeahead()?.observed||this.isOpen())&&this.itemsList.markSelectedOrDefault(this.markFirst())}_setItemsFromNgOptions(){Lr(()=>{let i=this.ngOptions();this.bindLabel.set(this._defaultLabel);let r=i.map(o=>({$ngOptionValue:o.value(),$ngOptionLabel:o.elementRef.nativeElement.innerHTML,disabled:o.disabled()}))??[];this.items.set(r),this.itemsList.setItems(r),this.hasValue&&this.itemsList.mapSelectedItems(),this._cd.detectChanges(),i.map(o=>({option:o,item:this.itemsList.findItem(o.value())})).filter(({item:o})=>nn(o)).forEach(({option:o,item:a})=>{a.disabled=o.disabled(),a.label=o.label()||a.label})},{injector:this._injector})}_isValidWriteValue(i){if(!nn(i)||this.multiple()&&i===""||Array.isArray(i)&&i.length===0)return!1;let r=o=>!nn(this.compareWith())&&Ru(o)&&this.bindValue()?(this._console.warn(`Setting object(${JSON.stringify(o)}) as your model with bindValue is not allowed unless [compareWith] is used.`),!1):!0;return this.multiple()?Array.isArray(i)?i.every(o=>r(o)):(this._console.warn("Multiple select ngModel should be array."),!1):r(i)}_handleWriteValue(i){if(!this._isValidWriteValue(i))return;let r=o=>{let a=this.itemsList.findItem(o);if(a)this.itemsList.select(a);else{let s=Ru(o),l=!s&&!this.bindValue();s||l?this.itemsList.select(this.itemsList.mapItem(o,null)):this.bindValue()&&(a={[this.bindLabel()]:null,[this.bindValue()]:o},this.itemsList.select(this.itemsList.mapItem(a,null)))}};this.multiple()?i.forEach(o=>r(o)):r(i)}_handleKeyPresses(){this.searchable()||this._keyPress$.pipe(Ou(this._destroyRef),He(i=>this._pressedKeys.push(i)),St(200),ce(()=>this._pressedKeys.length>0),se(()=>this._pressedKeys.join(""))).subscribe(i=>{let r=this.itemsList.findByLabel(i);r&&(this.isOpen()?(this.itemsList.markItem(r),this._scrollToMarked(),this._cd.markForCheck()):this.select(r)),this._pressedKeys=[]})}_setInputAttributes(){let i=this.searchInput().nativeElement,r=k({type:"text",autocorrect:"off",autocapitalize:"off",autocomplete:"off","aria-controls":this.dropdownId},this.inputAttrs());for(let o of Object.keys(r))i.setAttribute(o,r[o])}_setTabFocusOnClear(){this.tabFocusOnClear.set(nn(this.tabFocusOnClearButton())?!!this.tabFocusOnClearButton():this.config.tabFocusOnClear)}_updateNgModel(){let i=[];for(let o of this.selectedItems)if(this.bindValue()){let a=null;if(o.children){let s=this.groupValue()?this.bindValue():this.groupBy();a=o.value[s||this.groupBy()]}else a=this.itemsList.resolveNested(o.value,this.bindValue());i.push(a)}else i.push(o.value);let r=this.selectedItems.map(o=>o.value);this.multiple()?(this._onChange(i),this.changeEvent.emit(r)):(this._onChange(nn(i[0])?i[0]:null),this.changeEvent.emit(r[0])),this._cd.markForCheck()}_clearSearch(){this.searchTerm&&(this._changeSearch(null),this.itemsList.resetFilteredItems())}_changeSearch(i){this._searchTerm.set(i),this.typeahead()?.observed&&this.typeahead().next(i)}_scrollToMarked(){!this.isOpen()||!this.dropdownPanel()||this.dropdownPanel().scrollTo(this.itemsList.markedItem)}_scrollToTag(){!this.isOpen()||!this.dropdownPanel()||this.dropdownPanel().scrollToTag()}_onSelectionChanged(){let i=this.appendTo()??this.config.appendTo;this.isOpen()&&this.deselectOnClickValue()&&i&&(this._cd.detectChanges(),this.dropdownPanel().adjustPosition())}_handleTab(i){if(this.isOpen()===!1){if(this.showClear()&&!i.shiftKey&&this.tabFocusOnClear())this.focusOnClear(),i.preventDefault();else if(!this.addTag())return}this.selectOnTab()?this.itemsList.markedItem?(this.toggleItem(this.itemsList.markedItem),i.preventDefault()):this.showAddTag?(this.selectTag(),i.preventDefault()):this.close():this.close()}_handleEnter(i){let r=this.openOnEnter()??this.config.openOnEnter;if(this.isOpen()||this._manualOpen)this.itemsList.markedItem?this.toggleItem(this.itemsList.markedItem):this.showAddTag&&this.selectTag();else if(r)this.open();else return;i.preventDefault()}_handleSpace(i){this.isOpen()||this._manualOpen||(this.open(),i.preventDefault())}_handleArrowDown(i){this._nextItemIsTag(1)?(this.itemsList.unmarkItem(),this._scrollToTag()):(this.itemsList.markNextItem(),this._scrollToMarked()),this.open(),i.preventDefault()}_handleArrowUp(i){this.isOpen()&&(this._nextItemIsTag(-1)?(this.itemsList.unmarkItem(),this._scrollToTag()):(this.itemsList.markPreviousItem(),this._scrollToMarked()),i.preventDefault())}_nextItemIsTag(i){let r=this.itemsList.markedIndex+i;return this.addTag()&&this.searchTerm&&this.itemsList.markedItem&&(r<0||r===this.itemsList.filteredItems.length)}_handleBackspace(){this.searchTerm||!this.clearable()||!this.clearOnBackspace()||!this.hasValue||(this.multiple()?this.unselect(this.itemsList.lastSelectedItem):this.clearModel())}_mergeGlobalConfig(i){this.bindValue.set(this.bindValue()||i.bindValue),this.bindLabel.set(this.bindLabel()||i.bindLabel),this.appearance.set(this.appearance()||i.appearance),this._setTabFocusOnClear()}getVirtualScroll(i){return nn(this.virtualScroll)?this.virtualScroll():this.isVirtualScrollDisabled(i)}isVirtualScrollDisabled(i){return nn(i.disableVirtualScroll)?!i.disableVirtualScroll:!1}};n.\u0275fac=function(r){return new(r||n)},n.\u0275cmp=E({type:n,selectors:[["ng-select"]],contentQueries:function(r,o,a){r&1&&(Fn(a,o.optionTemplate,LC,5,te),Fn(a,o.optgroupTemplate,VC,5,te),Fn(a,o.labelTemplate,BC,5,te),Fn(a,o.multiLabelTemplate,jC,5,te),Fn(a,o.headerTemplate,HC,5,te),Fn(a,o.footerTemplate,zC,5,te),Fn(a,o.notFoundTemplate,UC,5,te),Fn(a,o.placeholderTemplate,$C,5,te),Fn(a,o.typeToSearchTemplate,WC,5,te),Fn(a,o.loadingTextTemplate,GC,5,te),Fn(a,o.tagTemplate,qC,5,te),Fn(a,o.loadingSpinnerTemplate,YC,5,te),Fn(a,o.clearButtonTemplate,QC,5,te),Fn(a,o.ngOptions,Ez,5)),r&2&&Go(14)},viewQuery:function(r,o){r&1&&(Nn(o.dropdownPanel,yI,5),Nn(o.searchInput,Nue,5),Nn(o.clearButton,Lue,5)),r&2&&Go(3)},hostVars:20,hostBindings:function(r,o){r&1&&S("keydown",function(s){return o.handleKeyDown(s)}),r&2&&G("ng-select",!0)("ng-select-single",!o.multiple())("ng-select-typeahead",o.typeahead())("ng-select-multiple",o.multiple())("ng-select-taggable",o.addTag())("ng-select-searchable",o.searchable())("ng-select-clearable",o.clearable())("ng-select-opened",o.isOpen())("ng-select-filtered",o.filtered)("ng-select-disabled",o.disabled())},inputs:{ariaLabelDropdown:[1,"ariaLabelDropdown"],ariaLabel:[1,"ariaLabel"],markFirst:[1,"markFirst"],placeholder:[1,"placeholder"],fixedPlaceholder:[1,"fixedPlaceholder"],notFoundText:[1,"notFoundText"],typeToSearchText:[1,"typeToSearchText"],preventToggleOnRightClick:[1,"preventToggleOnRightClick"],addTagText:[1,"addTagText"],loadingText:[1,"loadingText"],clearAllText:[1,"clearAllText"],dropdownPosition:[1,"dropdownPosition"],appendTo:[1,"appendTo"],outsideClickEvent:[1,"outsideClickEvent"],loading:[1,"loading"],closeOnSelect:[1,"closeOnSelect"],hideSelected:[1,"hideSelected"],selectOnTab:[1,"selectOnTab"],openOnEnter:[1,"openOnEnter"],maxSelectedItems:[1,"maxSelectedItems"],groupBy:[1,"groupBy"],groupValue:[1,"groupValue"],bufferAmount:[1,"bufferAmount"],virtualScroll:[1,"virtualScroll"],selectableGroup:[1,"selectableGroup"],tabFocusOnClearButton:[1,"tabFocusOnClearButton"],selectableGroupAsModel:[1,"selectableGroupAsModel"],searchFn:[1,"searchFn"],trackByFn:[1,"trackByFn"],clearOnBackspace:[1,"clearOnBackspace"],labelForId:[1,"labelForId"],inputAttrs:[1,"inputAttrs"],tabIndex:[1,"tabIndex"],readonly:[1,"readonly"],searchWhileComposing:[1,"searchWhileComposing"],minTermLength:[1,"minTermLength"],editableSearchTerm:[1,"editableSearchTerm"],ngClass:[1,"ngClass"],typeahead:[1,"typeahead"],multiple:[1,"multiple"],addTag:[1,"addTag"],searchable:[1,"searchable"],clearable:[1,"clearable"],deselectOnClick:[1,"deselectOnClick"],clearSearchOnAdd:[1,"clearSearchOnAdd"],compareWith:[1,"compareWith"],keyDownFn:[1,"keyDownFn"],bindLabel:[1,"bindLabel"],bindValue:[1,"bindValue"],appearance:[1,"appearance"],isOpen:[1,"isOpen"],items:[1,"items"]},outputs:{bindLabel:"bindLabelChange",bindValue:"bindValueChange",appearance:"appearanceChange",isOpen:"isOpenChange",items:"itemsChange",blurEvent:"blur",focusEvent:"focus",changeEvent:"change",openEvent:"open",closeEvent:"close",searchEvent:"search",clearEvent:"clear",addEvent:"add",removeEvent:"remove",scroll:"scroll",scrollToEnd:"scrollToEnd"},exportAs:["ngSelect"],features:[Ce([{provide:rr,useExisting:ri(()=>n),multi:!0},Tz]),Ae],decls:15,vars:20,consts:[["searchInput",""],["defaultPlaceholderTemplate",""],["defaultLabelTemplate",""],["defaultLoadingSpinnerTemplate",""],["clearButton",""],["defaultOptionTemplate",""],["defaultTagTemplate",""],["defaultNotFoundTemplate",""],["defaultTypeToSearchTemplate",""],["defaultLoadingTextTemplate",""],[1,"ng-select-container",3,"mousedown"],[1,"ng-value-container"],[3,"ngTemplateOutlet","ngTemplateOutletContext"],[1,"ng-input"],["aria-autocomplete","list","role","combobox",3,"blur","change","compositionend","compositionstart","focus","input","disabled","readOnly","value"],[1,"ng-arrow-wrapper"],[1,"ng-arrow"],[1,"ng-dropdown-panel",3,"virtualScroll","bufferAmount","appendTo","position","outsideClickEvent","headerTemplate","footerTemplate","filterValue","items","showAddTag","markedItem","ng-select-multiple","class","id","ariaLabelDropdown"],["aria-atomic","true","aria-live","polite","role","status",1,"ng-visually-hidden"],[3,"ngTemplateOutlet"],[1,"ng-placeholder"],[1,"ng-value",3,"ng-value-disabled"],[1,"ng-value"],["aria-hidden","true",1,"ng-value-icon","left",3,"click"],[1,"ng-value-label",3,"ngItemLabel","escape"],[1,"ng-spinner-loader"],["role","button","tabindex","0",1,"ng-clear-wrapper",3,"title"],["role","button","tabindex","0",1,"ng-clear-wrapper",3,"click","title"],["aria-hidden","true",1,"ng-clear"],[1,"ng-dropdown-panel",3,"update","scroll","scrollToEnd","outsideClick","virtualScroll","bufferAmount","appendTo","position","outsideClickEvent","headerTemplate","footerTemplate","filterValue","items","showAddTag","markedItem","id","ariaLabelDropdown"],[1,"ng-option",3,"ng-option-disabled","ng-option-selected","ng-optgroup","ng-option","ng-option-child","ng-option-marked"],["role","option",1,"ng-option",3,"ng-option-marked"],[1,"ng-option",3,"click","mouseover"],[1,"ng-option-label",3,"ngItemLabel","escape"],["role","option",1,"ng-option",3,"mouseover","click"],[1,"ng-tag-label"],[1,"ng-option","ng-option-disabled"]],template:function(r,o){if(r&1){let a=q();m(0,"div",10),S("mousedown",function(l){return T(a),I(o.handleMousedown(l))}),m(1,"div",11),V(2,Uue,3,1),V(3,que,2,0),V(4,Que,1,5,null,12),m(5,"div",13)(6,"input",14,0),S("blur",function(l){return T(a),I(o.onInputBlur(l))})("change",function(l){return T(a),I(l.stopPropagation())})("compositionend",function(){T(a);let l=Me(7);return I(o.onCompositionEnd(l.value))})("compositionstart",function(){return T(a),I(o.onCompositionStart())})("focus",function(l){return T(a),I(o.onInputFocus(l))})("input",function(){T(a);let l=Me(7);return I(o.filter(l.value))}),h()()(),V(8,Xue,3,1),V(9,tme,2,1),m(10,"span",15),M(11,"span",16),h()(),V(12,_me,8,21,"ng-dropdown-panel",17),m(13,"div",18),V(14,bme,1,1),h()}r&2&&(G("ng-appearance-outline",o.appearance()==="outline")("ng-has-value",o.hasValue),f(2),B(o.selectedItems.length===0&&!o.searchTerm||(o.fixedPlaceholder()??o.config.fixedPlaceholder)?2:-1),f(),B((!o.multiLabelTemplate()||!o.multiple())&&o.selectedItems.length>0?3:-1),f(),B(o.multiple()&&o.multiLabelTemplate()&&o.selectedValues.length>0?4:-1),f(2),v("disabled",o.disabled())("readOnly",!o.searchable()||o.itemsList.maxItemsSelected)("value",o.searchTerm??""),X("aria-activedescendant",o.isOpen()?o.itemsList==null||o.itemsList.markedItem==null?null:o.itemsList.markedItem.htmlId:null)("aria-controls",o.isOpen()?o.dropdownId:null)("aria-expanded",o.isOpen())("aria-label",o.ariaLabel())("id",o.labelForId())("tabindex",o.tabIndex()),f(2),B(o.loading()?8:-1),f(),B(o.showClear()?9:-1),f(3),B(o.isOpen()?12:-1),f(2),B(o.isOpen()&&o.showNoItemsFound()?14:-1))},dependencies:[Ln,wme,yI],styles:[`@charset "UTF-8";.ng-select{position:relative;display:block;-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box}.ng-select div,.ng-select input,.ng-select span{-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box}.ng-select [hidden]{display:none}.ng-select.ng-select-searchable .ng-select-container .ng-value-container .ng-input{opacity:1}.ng-select.ng-select-opened .ng-select-container{z-index:1001}.ng-select.ng-select-disabled .ng-select-container .ng-value-container .ng-placeholder,.ng-select.ng-select-disabled .ng-select-container .ng-value-container .ng-value{-webkit-user-select:none;user-select:none;cursor:default}.ng-select.ng-select-disabled .ng-arrow-wrapper{cursor:default}.ng-select.ng-select-filtered .ng-placeholder{display:none}.ng-select .ng-select-container{cursor:default;display:flex;outline:none;overflow:hidden;position:relative;width:100%}.ng-select .ng-select-container .ng-value-container{display:flex;flex:1}.ng-select .ng-select-container .ng-value-container .ng-input{opacity:0}.ng-select .ng-select-container .ng-value-container .ng-input>input{box-sizing:content-box;background:none transparent;border:0 none;box-shadow:none;outline:none;padding:0;cursor:default;width:100%}.ng-select .ng-select-container .ng-value-container .ng-input>input::-ms-clear{display:none}.ng-select .ng-select-container .ng-value-container .ng-input>input[readonly]{-webkit-user-select:unset;user-select:unset;width:0;padding:0}.ng-select.ng-select-single.ng-select-filtered .ng-select-container .ng-value-container .ng-value{visibility:hidden}.ng-select.ng-select-single .ng-select-container .ng-value-container,.ng-select.ng-select-single .ng-select-container .ng-value-container .ng-value{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.ng-select.ng-select-single .ng-select-container .ng-value-container .ng-value .ng-value-icon{display:none}.ng-select.ng-select-single .ng-select-container .ng-value-container .ng-input{position:absolute;left:0;width:100%}.ng-select.ng-select-multiple.ng-select-disabled>.ng-select-container .ng-value-container .ng-value .ng-value-icon{display:none}.ng-select.ng-select-multiple .ng-select-container .ng-value-container{flex-wrap:wrap}.ng-select.ng-select-multiple .ng-select-container .ng-value-container .ng-placeholder{position:absolute}.ng-select.ng-select-multiple .ng-select-container .ng-value-container .ng-value{white-space:nowrap}.ng-select.ng-select-multiple .ng-select-container .ng-value-container .ng-value.ng-value-disabled .ng-value-icon{display:none}.ng-select.ng-select-multiple .ng-select-container .ng-value-container .ng-value .ng-value-icon{cursor:pointer}.ng-select.ng-select-multiple .ng-select-container .ng-value-container .ng-input{flex:1;z-index:2}.ng-select.ng-select-multiple .ng-select-container .ng-value-container .ng-placeholder{z-index:1}.ng-select .ng-clear-wrapper{cursor:pointer;position:relative;width:17px;-webkit-user-select:none;user-select:none}.ng-select .ng-clear-wrapper .ng-clear{display:inline-block;font-size:18px;line-height:1;pointer-events:none}.ng-select .ng-spinner-loader{border-radius:50%;width:17px;height:17px;margin-right:5px;font-size:10px;position:relative;text-indent:-9999em;border-top:2px solid rgba(66,66,66,.2);border-right:2px solid rgba(66,66,66,.2);border-bottom:2px solid rgba(66,66,66,.2);border-left:2px solid #424242;transform:translateZ(0);animation:load8 .8s infinite linear}.ng-select .ng-spinner-loader:after{border-radius:50%;width:17px;height:17px}@-webkit-keyframes load8{0%{-webkit-transform:rotate(0deg);transform:rotate(0)}to{-webkit-transform:rotate(360deg);transform:rotate(360deg)}}@keyframes load8{0%{-webkit-transform:rotate(0deg);transform:rotate(0)}to{-webkit-transform:rotate(360deg);transform:rotate(360deg)}}.ng-select .ng-arrow-wrapper{cursor:pointer;position:relative;text-align:center;-webkit-user-select:none;user-select:none}.ng-select .ng-arrow-wrapper .ng-arrow{pointer-events:none;display:inline-block;height:0;width:0;position:relative}.ng-dropdown-panel{box-sizing:border-box;position:absolute;opacity:0;width:100%;z-index:1050;-webkit-overflow-scrolling:touch}.ng-dropdown-panel .ng-dropdown-panel-items{display:block;height:auto;-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box;max-height:240px;overflow-y:auto}.ng-dropdown-panel .ng-dropdown-panel-items .ng-optgroup{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.ng-dropdown-panel .ng-dropdown-panel-items .ng-option{box-sizing:border-box;cursor:pointer;display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.ng-dropdown-panel .ng-dropdown-panel-items .ng-option .ng-option-label:empty:before{content:"\\200b"}.ng-dropdown-panel .ng-dropdown-panel-items .ng-option .highlighted{font-weight:700;text-decoration:underline}.ng-dropdown-panel .ng-dropdown-panel-items .ng-option.disabled{cursor:default}.ng-dropdown-panel .scroll-host{overflow:hidden;overflow-y:auto;position:relative;display:block;-webkit-overflow-scrolling:touch}.ng-dropdown-panel .scrollable-content{top:0;left:0;width:100%;height:100%;position:absolute}.ng-dropdown-panel .total-padding{width:1px;opacity:0}.ng-visually-hidden{position:absolute!important;width:1px;height:1px;margin:-1px;padding:0;overflow:hidden;clip:rect(0 0 0 0);border:0;white-space:nowrap} +`],encapsulation:2,changeDetection:0});let t=n;return t})(),wI=(()=>{let n=class n{};n.\u0275fac=function(r){return new(r||n)},n.\u0275mod=ee({type:n}),n.\u0275inj=J({providers:kme()});let t=n;return t})();function kme(){return[{provide:Az,useValue:Iz}]}var Ime=["*"],Ame=["ngSelect"],Ome=()=>({standalone:!0}),Pz=(t,n,e,i)=>({item:t,item$:n,index:e,searchTerm:i}),Rme=(t,n,e)=>({item:t,clear:n,label:e}),Pme=(t,n)=>({items:t,clear:n}),DI=t=>({searchTerm:t});function Fme(t,n){}function Nme(t,n){if(t&1&&A(0,Fme,0,0,"ng-template",15),t&2){let e=n.item,i=n.item$,r=n.index,o=n.searchTerm,a=x(2);v("ngTemplateOutlet",a.optionTemplate)("ngTemplateOutletContext",km(2,Pz,e,i,r,o))}}function Lme(t,n){t&1&&A(0,Nme,1,7,"ng-template",2)}function Vme(t,n){}function Bme(t,n){if(t&1&&A(0,Vme,0,0,"ng-template",15),t&2){let e=n.item,i=n.item$,r=n.index,o=n.searchTerm,a=x(2);v("ngTemplateOutlet",a.optgroupTemplate)("ngTemplateOutletContext",km(2,Pz,e,i,r,o))}}function jme(t,n){t&1&&A(0,Bme,1,7,"ng-template",3)}function Hme(t,n){}function zme(t,n){if(t&1&&A(0,Hme,0,0,"ng-template",15),t&2){let e=n.item,i=n.clear,r=n.label,o=x(2);v("ngTemplateOutlet",o.labelTemplate)("ngTemplateOutletContext",Vd(2,Rme,e,i,r))}}function Ume(t,n){t&1&&A(0,zme,1,6,"ng-template",4)}function $me(t,n){}function Wme(t,n){if(t&1&&A(0,$me,0,0,"ng-template",15),t&2){let e=n.items,i=n.clear,r=x(2);v("ngTemplateOutlet",r.multiLabelTemplate)("ngTemplateOutletContext",Da(2,Pme,e,i))}}function Gme(t,n){t&1&&A(0,Wme,1,5,"ng-template",5)}function qme(t,n){}function Yme(t,n){if(t&1&&A(0,qme,0,0,"ng-template",16),t&2){let e=x(2);v("ngTemplateOutlet",e.headerTemplate)}}function Qme(t,n){t&1&&A(0,Yme,1,1,"ng-template",6)}function Kme(t,n){}function Zme(t,n){if(t&1&&A(0,Kme,0,0,"ng-template",16),t&2){let e=x(2);v("ngTemplateOutlet",e.footerTemplate)}}function Xme(t,n){t&1&&A(0,Zme,1,1,"ng-template",7)}function Jme(t,n){}function ehe(t,n){if(t&1&&A(0,Jme,0,0,"ng-template",15),t&2){let e=n.searchTerm,i=x(2);v("ngTemplateOutlet",i.notFoundTemplate)("ngTemplateOutletContext",Nt(2,DI,e))}}function the(t,n){t&1&&A(0,ehe,1,4,"ng-template",8)}function ihe(t,n){}function nhe(t,n){if(t&1&&A(0,ihe,0,0,"ng-template",16),t&2){let e=x(2);v("ngTemplateOutlet",e.typeToSearchTemplate)}}function rhe(t,n){t&1&&A(0,nhe,1,1,"ng-template",9)}function ohe(t,n){}function ahe(t,n){if(t&1&&A(0,ohe,0,0,"ng-template",15),t&2){let e=n.searchTerm,i=x(2);v("ngTemplateOutlet",i.loadingTextTemplate)("ngTemplateOutletContext",Nt(2,DI,e))}}function she(t,n){t&1&&A(0,ahe,1,4,"ng-template",10)}function lhe(t,n){}function che(t,n){if(t&1&&A(0,lhe,0,0,"ng-template",15),t&2){let e=n.searchTerm,i=x(2);v("ngTemplateOutlet",i.tagTemplate)("ngTemplateOutletContext",Nt(2,DI,e))}}function dhe(t,n){t&1&&A(0,che,1,4,"ng-template",11)}function uhe(t,n){}function mhe(t,n){if(t&1&&A(0,uhe,0,0,"ng-template",16),t&2){let e=x(2);v("ngTemplateOutlet",e.loadingSpinnerTemplate)}}function hhe(t,n){t&1&&A(0,mhe,1,1,"ng-template",12)}function phe(t,n){}function fhe(t,n){if(t&1&&A(0,phe,0,0,"ng-template",16),t&2){let e=x(2);v("ngTemplateOutlet",e.placeholderTemplate)}}function ghe(t,n){t&1&&A(0,fhe,1,1,"ng-template",13)}function _he(t,n){}function bhe(t,n){if(t&1&&A(0,_he,0,0,"ng-template",16),t&2){let e=x(2);v("ngTemplateOutlet",e.clearbuttonTemplate)}}function vhe(t,n){t&1&&A(0,bhe,1,1,"ng-template",14)}var yhe=(()=>{let n=class n{constructor(){this.elementRef=u(Y),this.disabled=!1,this.stateChange$=new z}get label(){return(this.elementRef.nativeElement.textContent||"").trim()}ngOnChanges(i){i.disabled&&this.stateChange$.next({value:this.value,disabled:this.disabled})}ngAfterViewChecked(){this.label!==this._previousLabel&&(this._previousLabel=this.label,this.stateChange$.next({value:this.value,disabled:this.disabled,label:this.elementRef.nativeElement.innerHTML}))}ngOnDestroy(){this.stateChange$.complete()}};n.\u0275fac=function(r){return new(r||n)},n.\u0275cmp=E({type:n,selectors:[["mtx-option"]],inputs:{value:"value",disabled:[2,"disabled","disabled",L]},exportAs:["mtxOption"],features:[Ae],ngContentSelectors:Ime,decls:1,vars:0,template:function(r,o){r&1&&(Se(),ne(0))},encapsulation:2,changeDetection:0});let t=n;return t})(),xhe=(()=>{let n=class n{constructor(){this._defaultOptions=u(Fz,{optional:!0}),this.changes=new z,this.placeholder=this._defaultOptions?.placeholder,this.notFoundText=this._defaultOptions?.notFoundText??"No items found",this.typeToSearchText=this._defaultOptions?.typeToSearchText??"Type to search",this.addTagText=this._defaultOptions?.addTagText??"Add item",this.loadingText=this._defaultOptions?.loadingText??"Loading...",this.clearAllText=this._defaultOptions?.clearAllText??"Clear all"}};n.\u0275fac=function(r){return new(r||n)},n.\u0275prov=R({token:n,factory:n.\u0275fac,providedIn:"root"});let t=n;return t})(),Che=(()=>{let n=class n{constructor(){this.template=u(te)}};n.\u0275fac=function(r){return new(r||n)},n.\u0275dir=P({type:n,selectors:[["","ng-option-tmp",""]]});let t=n;return t})(),whe=(()=>{let n=class n{constructor(){this.template=u(te)}};n.\u0275fac=function(r){return new(r||n)},n.\u0275dir=P({type:n,selectors:[["","ng-optgroup-tmp",""]]});let t=n;return t})(),Dhe=(()=>{let n=class n{constructor(){this.template=u(te)}};n.\u0275fac=function(r){return new(r||n)},n.\u0275dir=P({type:n,selectors:[["","ng-label-tmp",""]]});let t=n;return t})(),Ehe=(()=>{let n=class n{constructor(){this.template=u(te)}};n.\u0275fac=function(r){return new(r||n)},n.\u0275dir=P({type:n,selectors:[["","ng-multi-label-tmp",""]]});let t=n;return t})(),Mhe=(()=>{let n=class n{constructor(){this.template=u(te)}};n.\u0275fac=function(r){return new(r||n)},n.\u0275dir=P({type:n,selectors:[["","ng-header-tmp",""]]});let t=n;return t})(),She=(()=>{let n=class n{constructor(){this.template=u(te)}};n.\u0275fac=function(r){return new(r||n)},n.\u0275dir=P({type:n,selectors:[["","ng-footer-tmp",""]]});let t=n;return t})(),khe=(()=>{let n=class n{constructor(){this.template=u(te)}};n.\u0275fac=function(r){return new(r||n)},n.\u0275dir=P({type:n,selectors:[["","ng-notfound-tmp",""]]});let t=n;return t})(),The=(()=>{let n=class n{constructor(){this.template=u(te)}};n.\u0275fac=function(r){return new(r||n)},n.\u0275dir=P({type:n,selectors:[["","ng-typetosearch-tmp",""]]});let t=n;return t})(),Ihe=(()=>{let n=class n{constructor(){this.template=u(te)}};n.\u0275fac=function(r){return new(r||n)},n.\u0275dir=P({type:n,selectors:[["","ng-loadingtext-tmp",""]]});let t=n;return t})(),Ahe=(()=>{let n=class n{constructor(){this.template=u(te)}};n.\u0275fac=function(r){return new(r||n)},n.\u0275dir=P({type:n,selectors:[["","ng-tag-tmp",""]]});let t=n;return t})(),Ohe=(()=>{let n=class n{constructor(){this.template=u(te)}};n.\u0275fac=function(r){return new(r||n)},n.\u0275dir=P({type:n,selectors:[["","ng-loadingspinner-tmp",""]]});let t=n;return t})(),Rhe=(()=>{let n=class n{constructor(){this.template=u(te)}};n.\u0275fac=function(r){return new(r||n)},n.\u0275dir=P({type:n,selectors:[["","ng-placeholder-tmp",""]]});let t=n;return t})(),Phe=(()=>{let n=class n{constructor(){this.template=u(te)}};n.\u0275fac=function(r){return new(r||n)},n.\u0275dir=P({type:n,selectors:[["","ng-clearbutton-tmp",""]]});let t=n;return t})(),Fz=new O("mtx-select-default-options"),Rz=0,EI=(()=>{let n=class n{get clearSearchOnAdd(){return this._clearSearchOnAdd??this.closeOnSelect}set clearSearchOnAdd(i){this._clearSearchOnAdd=i}get items(){return this._items}set items(i){this._itemsAreUsed=!0,this._items=i}get value(){return this._value}set value(i){this._assignValue(i)&&this._onChange(i)}get id(){return this._id}set id(i){this._id=i||this._uid,this.stateChanges.next()}get placeholder(){return this._placeholder}set placeholder(i){this._placeholder=i,this.stateChanges.next()}get focused(){return this._focused}get empty(){return this.value==null||Array.isArray(this.value)&&this.value.length===0}get shouldLabelFloat(){return this.focused||!this.empty}get required(){return this._required??this.ngControl?.control?.hasValidator(Le.required)??!1}set required(i){this._required=i,this.stateChanges.next()}get errorStateMatcher(){return this._errorStateTracker.matcher}set errorStateMatcher(i){this._errorStateTracker.matcher=i}get panelOpen(){return!!this.ngSelect.isOpen}get errorState(){return this._errorStateTracker.errorState}set errorState(i){this._errorStateTracker.errorState=i}constructor(){this._intl=u(xhe),this._changeDetectorRef=u(ye),this._elementRef=u(Y),this._focusMonitor=u(ti),this.ngControl=u(Un,{optional:!0,self:!0}),this._parentFormField=u(ta,{optional:!0}),this._defaultOptions=u(Fz,{optional:!0}),this._document=u(_e),this.addTag=!1,this.appearance="underline",this.appendTo=this._defaultOptions?.appendTo??"body",this.bindLabel=this._defaultOptions?.bindLabel,this.bindValue=this._defaultOptions?.bindValue,this.closeOnSelect=!0,this.clearable=!0,this.clearOnBackspace=!0,this.dropdownPosition="auto",this.bufferAmount=4,this.selectableGroup=!1,this.selectableGroupAsModel=!0,this.hideSelected=!1,this.loading=!1,this.labelForId=null,this.markFirst=!0,this.multiple=!1,this.searchable=!0,this.readonly=!1,this.searchFn=null,this.searchWhileComposing=!0,this.selectOnTab=!1,this.trackByFn=null,this.inputAttrs={},this.openOnEnter=this._defaultOptions?.openOnEnter??!0,this.minTermLength=0,this.editableSearchTerm=!1,this.keyDownFn=l=>!0,this.virtualScroll=this._defaultOptions?.virtualScroll??!1,this.fixedPlaceholder=this._defaultOptions?.fixedPlaceholder??!1,this.deselectOnClick=this._defaultOptions?.deselectOnClick??!1,this.blurEvent=new U,this.focusEvent=new U,this.changeEvent=new U,this.openEvent=new U,this.closeEvent=new U,this.searchEvent=new U,this.clearEvent=new U,this.addEvent=new U,this.removeEvent=new U,this.scroll=new U,this.scrollToEnd=new U,this._clearSearchOnAdd=this._defaultOptions?.clearSearchOnAdd,this._items=[],this._itemsAreUsed=!1,this._destroy$=new z,this._value=null,this.stateChanges=new z,this._uid=`mtx-select-${Rz++}`,this._focused=!1,this.disabled=!1,this.ariaLabel="",this.ariaLabelledby=null,this._ariaDescribedby=null,this.controlType="mtx-select",this._onChange=()=>{},this._onTouched=()=>{},this._valueId=`mtx-select-value-${Rz++}`,this._intlChangesSubscription=Te.EMPTY;let i=this._focusMonitor,r=u(ul),o=u(gc,{optional:!0}),a=u(Ji,{optional:!0}),s=this.ngControl;this._intlChangesSubscription=this._intl.changes.subscribe(()=>{this._changeDetectorRef.detectChanges()}),i.monitor(this._elementRef,!0).subscribe(l=>{this._focused&&!l&&this._onTouched(),this._focused=!!l,this.stateChanges.next()}),this.ngControl&&(this.ngControl.valueAccessor=this),this._errorStateTracker=new dl(r,s,a,o,this.stateChanges),this.id=this.id}ngOnInit(){this.compareWith&&(this.ngSelect.compareWith=this.compareWith)}ngAfterViewInit(){this._itemsAreUsed||(this.ngSelect.escapeHTML=!1,this._setItemsFromMtxOptions())}ngDoCheck(){if(this.ngControl){let i=this.ngControl;this._previousControl!==i.control&&(this._previousControl!==void 0&&i.disabled!==null&&i.disabled!==this.disabled&&(this.disabled=i.disabled),this._previousControl=i.control),this.updateErrorState()}}ngOnDestroy(){this._destroy$.next(),this._destroy$.complete(),this.stateChanges.complete(),this._focusMonitor.stopMonitoring(this._elementRef),this._intlChangesSubscription.unsubscribe()}_getAriaLabelledby(){if(this.ariaLabel)return null;let i=this._parentFormField?.getLabelId(),r=(i?i+" ":"")+this._valueId;return this.ariaLabelledby&&(r+=" "+this.ariaLabelledby),r}setDescribedByIds(i){this._ariaDescribedby=i.length?i.join(" "):null}setDisabledState(i){this.disabled=i,this._changeDetectorRef.markForCheck(),this.stateChanges.next()}onContainerClick(i){i.target.classList.contains("ng-arrow-wrapper")||(this.focus(),this.open())}writeValue(i){this._assignValue(i)}registerOnChange(i){this._onChange=i}registerOnTouched(i){this._onTouched=i}updateErrorState(){this._errorStateTracker.updateErrorState()}_assignValue(i){return i!==this._value||this.multiple&&Array.isArray(i)?(this._value=i,this._changeDetectorRef.markForCheck(),!0):!1}_setItemsFromMtxOptions(){let i=o=>{this.items=o.map(a=>({$ngOptionValue:a.value,$ngOptionLabel:a.elementRef.nativeElement.innerHTML,disabled:a.disabled})),this.ngSelect.itemsList.setItems(this.items),this.ngSelect.hasValue&&this.ngSelect.itemsList.mapSelectedItems(),this.ngSelect.detectChanges()},r=()=>{let o=Je(this.mtxOptions.changes,this._destroy$);Je(...this.mtxOptions.map(a=>a.stateChange$)).pipe(we(o)).subscribe(a=>{let s=this.ngSelect.itemsList.findItem(a.value);s.disabled=a.disabled,s.label=a.label||s.label,this.ngSelect.detectChanges()})};this.mtxOptions.changes.pipe(Ue(this.mtxOptions),we(this._destroy$)).subscribe(o=>{i(o),r()})}open(){this.ngSelect.open()}close(){this.ngSelect.close()}focus(){this.ngSelect.focus()}blur(){this.ngSelect.blur()}openChange(){this.openEvent.emit(),setTimeout(()=>{this._document.getElementById(this.ngSelect.dropdownId)?.classList.add("mat-"+this._parentFormField?.color)})}};n.\u0275fac=function(r){return new(r||n)},n.\u0275cmp=E({type:n,selectors:[["mtx-select"]],contentQueries:function(r,o,a){if(r&1&&(xe(a,Che,5,te),xe(a,whe,5,te),xe(a,Dhe,5,te),xe(a,Ehe,5,te),xe(a,Mhe,5,te),xe(a,She,5,te),xe(a,khe,5,te),xe(a,The,5,te),xe(a,Ihe,5,te),xe(a,Ahe,5,te),xe(a,Ohe,5,te),xe(a,Rhe,5,te),xe(a,Phe,5,te),xe(a,yhe,5)),r&2){let s;j(s=H())&&(o.optionTemplate=s.first),j(s=H())&&(o.optgroupTemplate=s.first),j(s=H())&&(o.labelTemplate=s.first),j(s=H())&&(o.multiLabelTemplate=s.first),j(s=H())&&(o.headerTemplate=s.first),j(s=H())&&(o.footerTemplate=s.first),j(s=H())&&(o.notFoundTemplate=s.first),j(s=H())&&(o.typeToSearchTemplate=s.first),j(s=H())&&(o.loadingTextTemplate=s.first),j(s=H())&&(o.tagTemplate=s.first),j(s=H())&&(o.loadingSpinnerTemplate=s.first),j(s=H())&&(o.placeholderTemplate=s.first),j(s=H())&&(o.clearbuttonTemplate=s.first),j(s=H())&&(o.mtxOptions=s)}},viewQuery:function(r,o){if(r&1&&ie(Ame,7),r&2){let a;j(a=H())&&(o.ngSelect=a.first)}},hostAttrs:["role","combobox","aria-autocomplete","none",1,"mtx-select"],hostVars:20,hostBindings:function(r,o){r&2&&(X("id",o.id)("aria-expanded",o.panelOpen)("aria-label",o.ariaLabel||null)("aria-labelledby",o._getAriaLabelledby())("aria-describedby",o._ariaDescribedby||null)("aria-required",o.required.toString())("aria-disabled",o.disabled.toString())("aria-invalid",o.errorState),G("mtx-select-floating",o.shouldLabelFloat)("mtx-select-disabled",o.disabled)("mtx-select-invalid",o.errorState)("mtx-select-required",o.required)("mtx-select-empty",o.empty)("mtx-select-multiple",o.multiple))},inputs:{addTag:"addTag",addTagText:"addTagText",appearance:"appearance",appendTo:"appendTo",bindLabel:"bindLabel",bindValue:"bindValue",closeOnSelect:[2,"closeOnSelect","closeOnSelect",L],clearAllText:"clearAllText",clearable:[2,"clearable","clearable",L],clearOnBackspace:[2,"clearOnBackspace","clearOnBackspace",L],compareWith:"compareWith",dropdownPosition:"dropdownPosition",groupBy:"groupBy",groupValue:"groupValue",bufferAmount:"bufferAmount",selectableGroup:[2,"selectableGroup","selectableGroup",L],selectableGroupAsModel:[2,"selectableGroupAsModel","selectableGroupAsModel",L],hideSelected:[2,"hideSelected","hideSelected",L],loading:[2,"loading","loading",L],loadingText:"loadingText",labelForId:"labelForId",markFirst:[2,"markFirst","markFirst",L],maxSelectedItems:"maxSelectedItems",multiple:[2,"multiple","multiple",L],notFoundText:"notFoundText",searchable:[2,"searchable","searchable",L],readonly:[2,"readonly","readonly",L],searchFn:"searchFn",searchWhileComposing:[2,"searchWhileComposing","searchWhileComposing",L],selectOnTab:[2,"selectOnTab","selectOnTab",L],trackByFn:"trackByFn",inputAttrs:"inputAttrs",tabIndex:"tabIndex",openOnEnter:[2,"openOnEnter","openOnEnter",L],minTermLength:"minTermLength",editableSearchTerm:[2,"editableSearchTerm","editableSearchTerm",L],keyDownFn:"keyDownFn",virtualScroll:[2,"virtualScroll","virtualScroll",L],typeToSearchText:"typeToSearchText",typeahead:"typeahead",isOpen:"isOpen",fixedPlaceholder:[2,"fixedPlaceholder","fixedPlaceholder",L],deselectOnClick:[2,"deselectOnClick","deselectOnClick",L],clearSearchOnAdd:"clearSearchOnAdd",items:"items",value:"value",id:"id",placeholder:"placeholder",disabled:[2,"disabled","disabled",L],required:[2,"required","required",L],errorStateMatcher:"errorStateMatcher",ariaLabel:[0,"aria-label","ariaLabel"],ariaLabelledby:[0,"aria-labelledby","ariaLabelledby"]},outputs:{blurEvent:"blur",focusEvent:"focus",changeEvent:"change",openEvent:"open",closeEvent:"close",searchEvent:"search",clearEvent:"clear",addEvent:"add",removeEvent:"remove",scroll:"scroll",scrollToEnd:"scrollToEnd"},exportAs:["mtxSelect"],features:[Ce([{provide:Pa,useExisting:n}])],decls:15,vars:63,consts:[["ngSelect",""],[3,"ngModelChange","blur","focus","change","open","close","search","clear","add","remove","scroll","scrollToEnd","ngModel","ngModelOptions","placeholder","items","addTag","addTagText","appendTo","appearance","bindLabel","bindValue","closeOnSelect","clearAllText","clearable","clearOnBackspace","dropdownPosition","groupBy","groupValue","bufferAmount","hideSelected","isOpen","inputAttrs","loading","loadingText","labelForId","markFirst","maxSelectedItems","multiple","notFoundText","readonly","typeahead","typeToSearchText","trackByFn","searchable","searchFn","searchWhileComposing","clearSearchOnAdd","selectableGroup","selectableGroupAsModel","selectOnTab","tabIndex","openOnEnter","minTermLength","editableSearchTerm","keyDownFn","virtualScroll","fixedPlaceholder","deselectOnClick"],["ng-option-tmp",""],["ng-optgroup-tmp",""],["ng-label-tmp",""],["ng-multi-label-tmp",""],["ng-header-tmp",""],["ng-footer-tmp",""],["ng-notfound-tmp",""],["ng-typetosearch-tmp",""],["ng-loadingtext-tmp",""],["ng-tag-tmp",""],["ng-loadingspinner-tmp",""],["ng-placeholder-tmp",""],["ng-clearbutton-tmp",""],[3,"ngTemplateOutlet","ngTemplateOutletContext"],[3,"ngTemplateOutlet"]],template:function(r,o){if(r&1){let a=q();m(0,"ng-select",1,0),Nr("ngModelChange",function(l){return T(a),Zr(o.value,l)||(o.value=l),I(l)}),S("blur",function(l){return T(a),I(o.blurEvent.emit(l))})("focus",function(l){return T(a),I(o.focusEvent.emit(l))})("change",function(l){return T(a),I(o.changeEvent.emit(l))})("open",function(){return T(a),I(o.openChange())})("close",function(){return T(a),I(o.closeEvent.emit())})("search",function(l){return T(a),I(o.searchEvent.emit(l))})("clear",function(l){return T(a),I(o.clearEvent.emit(l))})("add",function(l){return T(a),I(o.addEvent.emit(l))})("remove",function(l){return T(a),I(o.removeEvent.emit(l))})("scroll",function(l){return T(a),I(o.scroll.emit(l))})("scrollToEnd",function(){return T(a),I(o.scrollToEnd.emit())}),V(2,Lme,1,0,null,2),V(3,jme,1,0,null,3),V(4,Ume,1,0,null,4),V(5,Gme,1,0,null,5),V(6,Qme,1,0,null,6),V(7,Xme,1,0,null,7),V(8,the,1,0,null,8),V(9,rhe,1,0,null,9),V(10,she,1,0,null,10),V(11,dhe,1,0,null,11),V(12,hhe,1,0,null,12),V(13,ghe,1,0,null,13),V(14,vhe,1,0,null,14),h()}r&2&&(G("ng-select-invalid",o.errorState),Fr("ngModel",o.value),v("ngModelOptions",rt(62,Ome))("placeholder",o.placeholder||o._intl.placeholder)("items",o.items)("addTag",o.addTag)("addTagText",o.addTagText||o._intl.addTagText)("appendTo",o.appendTo)("appearance",o.appearance)("bindLabel",o.bindLabel)("bindValue",o.bindValue)("closeOnSelect",o.closeOnSelect)("clearAllText",o.clearAllText||o._intl.clearAllText)("clearable",o.clearable)("clearOnBackspace",o.clearOnBackspace)("dropdownPosition",o.dropdownPosition)("groupBy",o.groupBy)("groupValue",o.groupValue)("bufferAmount",o.bufferAmount)("hideSelected",o.hideSelected)("isOpen",o.isOpen)("inputAttrs",o.inputAttrs)("loading",o.loading)("loadingText",o.loadingText||o._intl.loadingText)("labelForId",o.labelForId)("markFirst",o.markFirst)("maxSelectedItems",o.maxSelectedItems)("multiple",o.multiple)("notFoundText",o.notFoundText||o._intl.notFoundText)("readonly",o.readonly||o.disabled)("typeahead",o.typeahead)("typeToSearchText",o.typeToSearchText||o._intl.typeToSearchText)("trackByFn",o.trackByFn)("searchable",o.searchable)("searchFn",o.searchFn)("searchWhileComposing",o.searchWhileComposing)("clearSearchOnAdd",o.clearSearchOnAdd)("selectableGroup",o.selectableGroup)("selectableGroupAsModel",o.selectableGroupAsModel)("selectOnTab",o.selectOnTab)("tabIndex",o.tabIndex)("openOnEnter",o.openOnEnter)("minTermLength",o.minTermLength)("editableSearchTerm",o.editableSearchTerm)("keyDownFn",o.keyDownFn)("virtualScroll",o.virtualScroll)("fixedPlaceholder",o.fixedPlaceholder)("deselectOnClick",o.deselectOnClick),f(2),B(o.optionTemplate?2:-1),f(),B(o.optgroupTemplate?3:-1),f(),B(o.labelTemplate?4:-1),f(),B(o.multiLabelTemplate?5:-1),f(),B(o.headerTemplate?6:-1),f(),B(o.footerTemplate?7:-1),f(),B(o.notFoundTemplate?8:-1),f(),B(o.typeToSearchTemplate?9:-1),f(),B(o.loadingTextTemplate?10:-1),f(),B(o.tagTemplate?11:-1),f(),B(o.loadingSpinnerTemplate?12:-1),f(),B(o.placeholderTemplate?13:-1),f(),B(o.clearbuttonTemplate?14:-1))},dependencies:[wI,Oz,VC,LC,BC,jC,HC,zC,$C,UC,WC,GC,qC,YC,QC,pl,qt,pu,Ln],styles:[`.ng-select{padding:var(--mat-form-field-filled-with-label-container-padding-top, 24px) 16px var(--mat-form-field-filled-with-label-container-padding-bottom, 8px);margin:calc(var(--mat-form-field-filled-with-label-container-padding-top, 24px) * -1) -16px calc(var(--mat-form-field-filled-with-label-container-padding-bottom, 8px) * -1)}.mdc-text-field--outlined .ng-select,.mdc-text-field--no-label .ng-select{padding-top:var(--mat-form-field-container-vertical-padding, 16px);padding-bottom:var(--mat-form-field-container-vertical-padding, 16px);margin-top:calc(var(--mat-form-field-container-vertical-padding, 16px) * -1);margin-bottom:calc(var(--mat-form-field-container-vertical-padding, 16px) * -1)}.ng-select .ng-select-container{align-items:center;color:var(--mtx-select-container-text-color, var(--mat-sys-on-surface))}.ng-select .ng-select-container .ng-value-container{align-items:center;gap:4px}.ng-select .ng-select-container .ng-value-container .ng-input>input{height:var(--mat-form-field-container-text-line-height, var(--mat-sys-body-large-line-height));color:inherit;font:inherit}.ng-select .ng-select-container .ng-clear-wrapper{display:inline-flex;justify-content:center;align-items:center;width:24px;height:var(--mat-form-field-container-text-line-height, var(--mat-sys-body-large-line-height))}.ng-select .ng-placeholder{transition:opacity .2s;opacity:1;color:var(--mtx-select-placeholder-text-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent))}.mat-form-field-hide-placeholder .ng-select .ng-placeholder{opacity:0}.ng-select .ng-has-value .ng-placeholder{display:none}.ng-select .ng-clear-wrapper{color:var(--mtx-select-clear-icon-color, var(--mat-sys-on-surface))}.ng-select .ng-clear-wrapper:hover .ng-clear{color:var(--mtx-select-clear-icon-hover-color, var(--mat-sys-error))}.ng-select.ng-select-disabled .ng-value{color:var(--mtx-select-disabled-text-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent))}.ng-select.ng-select-opened .ng-arrow-wrapper .ng-arrow{top:-2px;border-width:0 5px 5px}.ng-select.ng-select-single.ng-select-filtered .ng-placeholder{display:initial;visibility:hidden}.ng-select.ng-select-multiple .ng-select-container .ng-value-container .ng-value{display:inline-flex;align-items:center;height:var(--mat-form-field-container-text-line-height, var(--mat-sys-body-large-line-height));padding:0 calc((var(--mat-form-field-container-text-line-height, var(--mat-sys-body-large-line-height)) - 16px) / 2);border-radius:9999px;font-size:.875em;background-color:var(--mtx-select-multiple-value-background-color, transparent);border:1px solid var(--mtx-select-multiple-value-outline-color, var(--mat-sys-outline))}.ng-select.ng-select-multiple .ng-select-container .ng-value-container .ng-value.ng-value-disabled{opacity:.4}.ng-select.ng-select-multiple .ng-select-container .ng-value-container .ng-value .ng-value-label{display:inline-block;margin:0 4px;line-height:16px}.ng-select.ng-select-multiple .ng-select-container .ng-value-container .ng-value .ng-value-icon{width:16px;height:16px;line-height:16px;border-radius:50%;text-align:center}.ng-select.ng-select-multiple .ng-select-container .ng-value-container .ng-value .ng-value-icon:hover{background-color:var(--mtx-select-multiple-value-icon-hover-background-color, var(--mat-sys-outline-variant))}.ng-select.ng-select-multiple.ng-select-disabled .ng-select-container .ng-value-container .ng-value{border-color:var(--mtx-select-multiple-value-disabled-outline-color, color-mix(in srgb, var(--mat-sys-outline) 38%, transparent))}.ng-select .ng-arrow-wrapper{width:10px}.ng-select .ng-arrow{border-width:5px 5px 2px;border-style:solid;border-color:var(--mtx-select-enabled-arrow-color, var(--mat-sys-on-surface)) transparent transparent}.ng-select.ng-select-disabled .ng-arrow{border-color:var(--mtx-select-disabled-arrow-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent)) transparent transparent}.ng-select.ng-select-invalid .ng-arrow{border-color:var(--mtx-select-invalid-arrow-color, var(--mat-sys-error)) transparent transparent}.ng-select.ng-select-opened .ng-arrow{border-color:transparent transparent var(--mtx-select-enabled-arrow-color, var(--mat-sys-on-surface))}.ng-select.ng-select-opened.ng-select-invalid .ng-arrow{border-color:transparent transparent var(--mtx-select-invalid-arrow-color, var(--mat-sys-error))}.ng-dropdown-panel{background-color:var(--mtx-select-panel-background-color, var(--mat-sys-surface-container))}.ng-dropdown-panel.ng-select-bottom{top:100%;border-bottom-left-radius:var(--mtx-select-container-shape, var(--mat-sys-corner-extra-small));border-bottom-right-radius:var(--mtx-select-container-shape, var(--mat-sys-corner-extra-small));box-shadow:var(--mtx-select-container-elevation-shadow, 0px 3px 1px -2px rgba(0, 0, 0, .2), 0px 2px 2px 0px rgba(0, 0, 0, .14), 0px 1px 5px 0px rgba(0, 0, 0, .12))}.ng-dropdown-panel.ng-select-top{bottom:100%;border-top-left-radius:var(--mtx-select-container-shape, var(--mat-sys-corner-extra-small));border-top-right-radius:var(--mtx-select-container-shape, var(--mat-sys-corner-extra-small));box-shadow:var(--mtx-select-container-elevation-shadow, 0px 3px 1px -2px rgba(0, 0, 0, .2), 0px 2px 2px 0px rgba(0, 0, 0, .14), 0px 1px 5px 0px rgba(0, 0, 0, .12))}.ng-dropdown-panel .ng-dropdown-header,.ng-dropdown-panel .ng-dropdown-footer{padding:14px 16px}.ng-dropdown-panel .ng-dropdown-header{border-bottom:1px solid var(--mtx-select-panel-divider-color, var(--mat-sys-outline))}.ng-dropdown-panel .ng-dropdown-footer{border-top:1px solid var(--mtx-select-panel-divider-color, var(--mat-sys-outline))}.ng-dropdown-panel .ng-dropdown-panel-items .ng-optgroup{padding:14px 16px;font-weight:500;-webkit-user-select:none;user-select:none;cursor:pointer;color:var(--mtx-select-optgroup-label-text-color, var(--mat-sys-on-surface))}.ng-dropdown-panel .ng-dropdown-panel-items .ng-optgroup.ng-option-disabled{cursor:default}.ng-dropdown-panel .ng-dropdown-panel-items .ng-optgroup.ng-option-marked{background-color:var(--mtx-select-option-hover-state-background-color, color-mix(in srgb, var(--mat-sys-on-surface) calc(var(--mat-sys-hover-state-layer-opacity) * 100%), transparent))}.ng-dropdown-panel .ng-dropdown-panel-items .ng-optgroup.ng-option-selected{background-color:var(--mtx-select-option-selected-state-background-color, var(--mat-sys-secondary-container));color:var(--mtx-select-option-selected-state-text-color, var(--mat-sys-on-surface))}.ng-dropdown-panel .ng-dropdown-panel-items .ng-option{position:relative;padding:14px 16px;text-overflow:ellipsis;text-decoration:none;text-align:left;white-space:nowrap;overflow:hidden;color:var(--mtx-select-option-label-text-color, var(--mat-sys-on-surface))}.ng-dropdown-panel .ng-dropdown-panel-items .ng-option.ng-option-marked{background-color:var(--mtx-select-option-hover-state-background-color, color-mix(in srgb, var(--mat-sys-on-surface) calc(var(--mat-sys-hover-state-layer-opacity) * 100%), transparent))}.ng-dropdown-panel .ng-dropdown-panel-items .ng-option.ng-option-selected{background-color:var(--mtx-select-option-selected-state-background-color, var(--mat-sys-secondary-container));color:var(--mtx-select-option-selected-state-text-color, var(--mat-sys-on-surface))}.ng-dropdown-panel .ng-dropdown-panel-items .ng-option.ng-option-disabled{color:var(--mtx-select-option-disabled-state-text-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent))}[dir=rtl] .ng-dropdown-panel .ng-dropdown-panel-items .ng-option{text-align:right}.ng-dropdown-panel .ng-dropdown-panel-items .ng-option.ng-option-child{padding-left:32px}[dir=rtl] .ng-dropdown-panel .ng-dropdown-panel-items .ng-option.ng-option-child{padding-right:32px;padding-left:0}.ng-dropdown-panel .ng-dropdown-panel-items .ng-option .ng-tag-label{margin-right:6px;font-size:80%}[dir=rtl] .ng-dropdown-panel .ng-dropdown-panel-items .ng-option .ng-tag-label{margin-left:6px;margin-right:0} +`],encapsulation:2,changeDetection:0});let t=n;return t})(),Nz=(()=>{let n=class n{};n.\u0275fac=function(r){return new(r||n)},n.\u0275mod=ee({type:n}),n.\u0275inj=J({imports:[ut,pl,$n,wI,EI]});let t=n;return t})();var Lz=(()=>{let n=class n extends oo{get bindLabel(){return typeof this.props.labelProp=="string"?this.props.labelProp:""}get bindValue(){return typeof this.props.valueProp=="string"?this.props.valueProp:void 0}};n.\u0275fac=(()=>{let i;return function(o){return(i||(i=ge(n)))(o||n)}})(),n.\u0275cmp=E({type:n,selectors:[["formly-field-combobox"]],features:[le],decls:4,vars:13,consts:[["select",""],[3,"formControl","items","bindLabel","bindValue","multiple","placeholder","required","closeOnSelect","compareWith"]],template:function(r,o){r&1&&(M(0,"mtx-select",1,0),ue(2,"toObservable"),ue(3,"async")),r&2&&v("formControl",o.formControl)("items",Oe(3,11,Oe(2,9,o.props.options)))("bindLabel",o.bindLabel)("bindValue",o.bindValue)("multiple",o.props.multiple)("placeholder",o.props.placeholder)("required",o.props.required)("closeOnSelect",!o.props.multiple)("compareWith",o.props.compareWith)},dependencies:[$n,qt,Io,To,Nz,EI,f3,sn,p3],encapsulation:2});let t=n;return t})();var Vz=(()=>{let n=class n extends Mg{};n.\u0275fac=(()=>{let i;return function(o){return(i||(i=ge(n)))(o||n)}})(),n.\u0275cmp=E({type:n,selectors:[["formly-wrapper-card"]],features:[le],decls:8,vars:1,consts:[["fieldComponent",""],[1,"card"],[1,"card-header"],[1,"card-body"]],template:function(r,o){r&1&&(pt(0,"div",1)(1,"h3",2),g(2,"Its time to party"),_t(),pt(3,"h3",2),g(4),_t(),pt(5,"div",3),df(6,null,0),_t()()),r&2&&(f(4),N(o.props.label))},encapsulation:2});let t=n;return t})(),Bz=(()=>{let n=class n extends Mg{};n.\u0275fac=(()=>{let i;return function(o){return(i||(i=ge(n)))(o||n)}})(),n.\u0275cmp=E({type:n,selectors:[["formly-wrapper-div"]],features:[le],decls:3,vars:0,consts:[["fieldComponent",""]],template:function(r,o){r&1&&(pt(0,"div"),df(1,null,0),_t())},encapsulation:2});let t=n;return t})();function jz(t){return{types:[{name:"combobox",component:Lz,wrappers:["form-field"]}],wrappers:[{name:"card",component:Vz},{name:"div",component:Bz}],validators:[],validationMessages:[{name:"required",message:(n,e)=>t.stream("validation.required")},{name:"min",message:(n,e)=>t.stream("validation.min",{number:e.props?.min})},{name:"max",message:(n,e)=>t.stream("validation.max",{number:e.props?.max})},{name:"minLength",message:(n,e)=>t.stream("validation.min_length",{number:e.props?.minLength})},{name:"maxLength",message:(n,e)=>t.stream("validation.max_length",{number:e.props?.maxLength})}]}}var Nhe={lessThanXSeconds:{one:"\u4E0D\u5230 1 \u79D2",other:"\u4E0D\u5230 {{count}} \u79D2"},xSeconds:{one:"1 \u79D2",other:"{{count}} \u79D2"},halfAMinute:"\u534A\u5206\u949F",lessThanXMinutes:{one:"\u4E0D\u5230 1 \u5206\u949F",other:"\u4E0D\u5230 {{count}} \u5206\u949F"},xMinutes:{one:"1 \u5206\u949F",other:"{{count}} \u5206\u949F"},xHours:{one:"1 \u5C0F\u65F6",other:"{{count}} \u5C0F\u65F6"},aboutXHours:{one:"\u5927\u7EA6 1 \u5C0F\u65F6",other:"\u5927\u7EA6 {{count}} \u5C0F\u65F6"},xDays:{one:"1 \u5929",other:"{{count}} \u5929"},aboutXWeeks:{one:"\u5927\u7EA6 1 \u4E2A\u661F\u671F",other:"\u5927\u7EA6 {{count}} \u4E2A\u661F\u671F"},xWeeks:{one:"1 \u4E2A\u661F\u671F",other:"{{count}} \u4E2A\u661F\u671F"},aboutXMonths:{one:"\u5927\u7EA6 1 \u4E2A\u6708",other:"\u5927\u7EA6 {{count}} \u4E2A\u6708"},xMonths:{one:"1 \u4E2A\u6708",other:"{{count}} \u4E2A\u6708"},aboutXYears:{one:"\u5927\u7EA6 1 \u5E74",other:"\u5927\u7EA6 {{count}} \u5E74"},xYears:{one:"1 \u5E74",other:"{{count}} \u5E74"},overXYears:{one:"\u8D85\u8FC7 1 \u5E74",other:"\u8D85\u8FC7 {{count}} \u5E74"},almostXYears:{one:"\u5C06\u8FD1 1 \u5E74",other:"\u5C06\u8FD1 {{count}} \u5E74"}},Hz=(t,n,e)=>{let i,r=Nhe[t];return typeof r=="string"?i=r:n===1?i=r.one:i=r.other.replace("{{count}}",String(n)),e?.addSuffix?e.comparison&&e.comparison>0?i+"\u5185":i+"\u524D":i};var Lhe={full:"y'\u5E74'M'\u6708'd'\u65E5' EEEE",long:"y'\u5E74'M'\u6708'd'\u65E5'",medium:"yyyy-MM-dd",short:"yy-MM-dd"},Vhe={full:"zzzz a h:mm:ss",long:"z a h:mm:ss",medium:"a h:mm:ss",short:"a h:mm"},Bhe={full:"{{date}} {{time}}",long:"{{date}} {{time}}",medium:"{{date}} {{time}}",short:"{{date}} {{time}}"},zz={date:Xo({formats:Lhe,defaultWidth:"full"}),time:Xo({formats:Vhe,defaultWidth:"full"}),dateTime:Xo({formats:Bhe,defaultWidth:"full"})};function Uz(t,n,e){let i="eeee p";return jV(t,n,e)?i:t.getTime()>n.getTime()?"'\u4E0B\u4E2A'"+i:"'\u4E0A\u4E2A'"+i}var jhe={lastWeek:Uz,yesterday:"'\u6628\u5929' p",today:"'\u4ECA\u5929' p",tomorrow:"'\u660E\u5929' p",nextWeek:Uz,other:"PP p"},$z=(t,n,e,i)=>{let r=jhe[t];return typeof r=="function"?r(n,e,i):r};var Hhe={narrow:["\u524D","\u516C\u5143"],abbreviated:["\u524D","\u516C\u5143"],wide:["\u516C\u5143\u524D","\u516C\u5143"]},zhe={narrow:["1","2","3","4"],abbreviated:["\u7B2C\u4E00\u5B63","\u7B2C\u4E8C\u5B63","\u7B2C\u4E09\u5B63","\u7B2C\u56DB\u5B63"],wide:["\u7B2C\u4E00\u5B63\u5EA6","\u7B2C\u4E8C\u5B63\u5EA6","\u7B2C\u4E09\u5B63\u5EA6","\u7B2C\u56DB\u5B63\u5EA6"]},Uhe={narrow:["\u4E00","\u4E8C","\u4E09","\u56DB","\u4E94","\u516D","\u4E03","\u516B","\u4E5D","\u5341","\u5341\u4E00","\u5341\u4E8C"],abbreviated:["1\u6708","2\u6708","3\u6708","4\u6708","5\u6708","6\u6708","7\u6708","8\u6708","9\u6708","10\u6708","11\u6708","12\u6708"],wide:["\u4E00\u6708","\u4E8C\u6708","\u4E09\u6708","\u56DB\u6708","\u4E94\u6708","\u516D\u6708","\u4E03\u6708","\u516B\u6708","\u4E5D\u6708","\u5341\u6708","\u5341\u4E00\u6708","\u5341\u4E8C\u6708"]},$he={narrow:["\u65E5","\u4E00","\u4E8C","\u4E09","\u56DB","\u4E94","\u516D"],short:["\u65E5","\u4E00","\u4E8C","\u4E09","\u56DB","\u4E94","\u516D"],abbreviated:["\u5468\u65E5","\u5468\u4E00","\u5468\u4E8C","\u5468\u4E09","\u5468\u56DB","\u5468\u4E94","\u5468\u516D"],wide:["\u661F\u671F\u65E5","\u661F\u671F\u4E00","\u661F\u671F\u4E8C","\u661F\u671F\u4E09","\u661F\u671F\u56DB","\u661F\u671F\u4E94","\u661F\u671F\u516D"]},Whe={narrow:{am:"\u4E0A",pm:"\u4E0B",midnight:"\u51CC\u6668",noon:"\u5348",morning:"\u65E9",afternoon:"\u4E0B\u5348",evening:"\u665A",night:"\u591C"},abbreviated:{am:"\u4E0A\u5348",pm:"\u4E0B\u5348",midnight:"\u51CC\u6668",noon:"\u4E2D\u5348",morning:"\u65E9\u6668",afternoon:"\u4E2D\u5348",evening:"\u665A\u4E0A",night:"\u591C\u95F4"},wide:{am:"\u4E0A\u5348",pm:"\u4E0B\u5348",midnight:"\u51CC\u6668",noon:"\u4E2D\u5348",morning:"\u65E9\u6668",afternoon:"\u4E2D\u5348",evening:"\u665A\u4E0A",night:"\u591C\u95F4"}},Ghe={narrow:{am:"\u4E0A",pm:"\u4E0B",midnight:"\u51CC\u6668",noon:"\u5348",morning:"\u65E9",afternoon:"\u4E0B\u5348",evening:"\u665A",night:"\u591C"},abbreviated:{am:"\u4E0A\u5348",pm:"\u4E0B\u5348",midnight:"\u51CC\u6668",noon:"\u4E2D\u5348",morning:"\u65E9\u6668",afternoon:"\u4E2D\u5348",evening:"\u665A\u4E0A",night:"\u591C\u95F4"},wide:{am:"\u4E0A\u5348",pm:"\u4E0B\u5348",midnight:"\u51CC\u6668",noon:"\u4E2D\u5348",morning:"\u65E9\u6668",afternoon:"\u4E2D\u5348",evening:"\u665A\u4E0A",night:"\u591C\u95F4"}},qhe=(t,n)=>{let e=Number(t);switch(n?.unit){case"date":return e.toString()+"\u65E5";case"hour":return e.toString()+"\u65F6";case"minute":return e.toString()+"\u5206";case"second":return e.toString()+"\u79D2";default:return"\u7B2C "+e.toString()}},Wz={ordinalNumber:qhe,era:Hn({values:Hhe,defaultWidth:"wide"}),quarter:Hn({values:zhe,defaultWidth:"wide",argumentCallback:t=>t-1}),month:Hn({values:Uhe,defaultWidth:"wide"}),day:Hn({values:$he,defaultWidth:"wide"}),dayPeriod:Hn({values:Whe,defaultWidth:"wide",formattingValues:Ghe,defaultFormattingWidth:"wide"})};var Yhe=/^(第\s*)?\d+(日|时|分|秒)?/i,Qhe=/\d+/i,Khe={narrow:/^(前)/i,abbreviated:/^(前)/i,wide:/^(公元前|公元)/i},Zhe={any:[/^(前)/i,/^(公元)/i]},Xhe={narrow:/^[1234]/i,abbreviated:/^第[一二三四]刻/i,wide:/^第[一二三四]刻钟/i},Jhe={any:[/(1|一)/i,/(2|二)/i,/(3|三)/i,/(4|四)/i]},epe={narrow:/^(一|二|三|四|五|六|七|八|九|十[二一])/i,abbreviated:/^(一|二|三|四|五|六|七|八|九|十[二一]|\d|1[12])月/i,wide:/^(一|二|三|四|五|六|七|八|九|十[二一])月/i},tpe={narrow:[/^一/i,/^二/i,/^三/i,/^四/i,/^五/i,/^六/i,/^七/i,/^八/i,/^九/i,/^十(?!(一|二))/i,/^十一/i,/^十二/i],any:[/^一|1/i,/^二|2/i,/^三|3/i,/^四|4/i,/^五|5/i,/^六|6/i,/^七|7/i,/^八|8/i,/^九|9/i,/^十(?!(一|二))|10/i,/^十一|11/i,/^十二|12/i]},ipe={narrow:/^[一二三四五六日]/i,short:/^[一二三四五六日]/i,abbreviated:/^周[一二三四五六日]/i,wide:/^星期[一二三四五六日]/i},npe={any:[/日/i,/一/i,/二/i,/三/i,/四/i,/五/i,/六/i]},rpe={any:/^(上午?|下午?|午夜|[中正]午|早上?|下午|晚上?|凌晨|)/i},ope={any:{am:/^上午?/i,pm:/^下午?/i,midnight:/^午夜/i,noon:/^[中正]午/i,morning:/^早上/i,afternoon:/^下午/i,evening:/^晚上?/i,night:/^凌晨/i}},Gz={ordinalNumber:hh({matchPattern:Yhe,parsePattern:Qhe,valueCallback:t=>parseInt(t,10)}),era:zn({matchPatterns:Khe,defaultMatchWidth:"wide",parsePatterns:Zhe,defaultParseWidth:"any"}),quarter:zn({matchPatterns:Xhe,defaultMatchWidth:"wide",parsePatterns:Jhe,defaultParseWidth:"any",valueCallback:t=>t+1}),month:zn({matchPatterns:epe,defaultMatchWidth:"wide",parsePatterns:tpe,defaultParseWidth:"any"}),day:zn({matchPatterns:ipe,defaultMatchWidth:"wide",parsePatterns:npe,defaultParseWidth:"any"}),dayPeriod:zn({matchPatterns:rpe,defaultMatchWidth:"any",parsePatterns:ope,defaultParseWidth:"any"})};var qz={code:"zh-CN",formatDistance:Hz,formatLong:zz,formatRelative:$z,localize:Wz,match:Gz,options:{weekStartsOn:1,firstWeekContainsDate:4}};var ape={lessThanXSeconds:{one:"\u5C11\u65BC 1 \u79D2",other:"\u5C11\u65BC {{count}} \u79D2"},xSeconds:{one:"1 \u79D2",other:"{{count}} \u79D2"},halfAMinute:"\u534A\u5206\u9418",lessThanXMinutes:{one:"\u5C11\u65BC 1 \u5206\u9418",other:"\u5C11\u65BC {{count}} \u5206\u9418"},xMinutes:{one:"1 \u5206\u9418",other:"{{count}} \u5206\u9418"},xHours:{one:"1 \u5C0F\u6642",other:"{{count}} \u5C0F\u6642"},aboutXHours:{one:"\u5927\u7D04 1 \u5C0F\u6642",other:"\u5927\u7D04 {{count}} \u5C0F\u6642"},xDays:{one:"1 \u5929",other:"{{count}} \u5929"},aboutXWeeks:{one:"\u5927\u7D04 1 \u500B\u661F\u671F",other:"\u5927\u7D04 {{count}} \u500B\u661F\u671F"},xWeeks:{one:"1 \u500B\u661F\u671F",other:"{{count}} \u500B\u661F\u671F"},aboutXMonths:{one:"\u5927\u7D04 1 \u500B\u6708",other:"\u5927\u7D04 {{count}} \u500B\u6708"},xMonths:{one:"1 \u500B\u6708",other:"{{count}} \u500B\u6708"},aboutXYears:{one:"\u5927\u7D04 1 \u5E74",other:"\u5927\u7D04 {{count}} \u5E74"},xYears:{one:"1 \u5E74",other:"{{count}} \u5E74"},overXYears:{one:"\u8D85\u904E 1 \u5E74",other:"\u8D85\u904E {{count}} \u5E74"},almostXYears:{one:"\u5C07\u8FD1 1 \u5E74",other:"\u5C07\u8FD1 {{count}} \u5E74"}},Yz=(t,n,e)=>{let i,r=ape[t];return typeof r=="string"?i=r:n===1?i=r.one:i=r.other.replace("{{count}}",String(n)),e?.addSuffix?e.comparison&&e.comparison>0?i+"\u5167":i+"\u524D":i};var spe={full:"y'\u5E74'M'\u6708'd'\u65E5' EEEE",long:"y'\u5E74'M'\u6708'd'\u65E5'",medium:"yyyy-MM-dd",short:"yy-MM-dd"},lpe={full:"zzzz a h:mm:ss",long:"z a h:mm:ss",medium:"a h:mm:ss",short:"a h:mm"},cpe={full:"{{date}} {{time}}",long:"{{date}} {{time}}",medium:"{{date}} {{time}}",short:"{{date}} {{time}}"},Qz={date:Xo({formats:spe,defaultWidth:"full"}),time:Xo({formats:lpe,defaultWidth:"full"}),dateTime:Xo({formats:cpe,defaultWidth:"full"})};var dpe={lastWeek:"'\u4E0A\u500B'eeee p",yesterday:"'\u6628\u5929' p",today:"'\u4ECA\u5929' p",tomorrow:"'\u660E\u5929' p",nextWeek:"'\u4E0B\u500B'eeee p",other:"P"},Kz=(t,n,e,i)=>dpe[t];var upe={narrow:["\u524D","\u516C\u5143"],abbreviated:["\u524D","\u516C\u5143"],wide:["\u516C\u5143\u524D","\u516C\u5143"]},mpe={narrow:["1","2","3","4"],abbreviated:["\u7B2C\u4E00\u523B","\u7B2C\u4E8C\u523B","\u7B2C\u4E09\u523B","\u7B2C\u56DB\u523B"],wide:["\u7B2C\u4E00\u523B\u9418","\u7B2C\u4E8C\u523B\u9418","\u7B2C\u4E09\u523B\u9418","\u7B2C\u56DB\u523B\u9418"]},hpe={narrow:["\u4E00","\u4E8C","\u4E09","\u56DB","\u4E94","\u516D","\u4E03","\u516B","\u4E5D","\u5341","\u5341\u4E00","\u5341\u4E8C"],abbreviated:["1\u6708","2\u6708","3\u6708","4\u6708","5\u6708","6\u6708","7\u6708","8\u6708","9\u6708","10\u6708","11\u6708","12\u6708"],wide:["\u4E00\u6708","\u4E8C\u6708","\u4E09\u6708","\u56DB\u6708","\u4E94\u6708","\u516D\u6708","\u4E03\u6708","\u516B\u6708","\u4E5D\u6708","\u5341\u6708","\u5341\u4E00\u6708","\u5341\u4E8C\u6708"]},ppe={narrow:["\u65E5","\u4E00","\u4E8C","\u4E09","\u56DB","\u4E94","\u516D"],short:["\u65E5","\u4E00","\u4E8C","\u4E09","\u56DB","\u4E94","\u516D"],abbreviated:["\u9031\u65E5","\u9031\u4E00","\u9031\u4E8C","\u9031\u4E09","\u9031\u56DB","\u9031\u4E94","\u9031\u516D"],wide:["\u661F\u671F\u65E5","\u661F\u671F\u4E00","\u661F\u671F\u4E8C","\u661F\u671F\u4E09","\u661F\u671F\u56DB","\u661F\u671F\u4E94","\u661F\u671F\u516D"]},fpe={narrow:{am:"\u4E0A",pm:"\u4E0B",midnight:"\u51CC\u6668",noon:"\u5348",morning:"\u65E9",afternoon:"\u4E0B\u5348",evening:"\u665A",night:"\u591C"},abbreviated:{am:"\u4E0A\u5348",pm:"\u4E0B\u5348",midnight:"\u51CC\u6668",noon:"\u4E2D\u5348",morning:"\u65E9\u6668",afternoon:"\u4E2D\u5348",evening:"\u665A\u4E0A",night:"\u591C\u9593"},wide:{am:"\u4E0A\u5348",pm:"\u4E0B\u5348",midnight:"\u51CC\u6668",noon:"\u4E2D\u5348",morning:"\u65E9\u6668",afternoon:"\u4E2D\u5348",evening:"\u665A\u4E0A",night:"\u591C\u9593"}},gpe={narrow:{am:"\u4E0A",pm:"\u4E0B",midnight:"\u51CC\u6668",noon:"\u5348",morning:"\u65E9",afternoon:"\u4E0B\u5348",evening:"\u665A",night:"\u591C"},abbreviated:{am:"\u4E0A\u5348",pm:"\u4E0B\u5348",midnight:"\u51CC\u6668",noon:"\u4E2D\u5348",morning:"\u65E9\u6668",afternoon:"\u4E2D\u5348",evening:"\u665A\u4E0A",night:"\u591C\u9593"},wide:{am:"\u4E0A\u5348",pm:"\u4E0B\u5348",midnight:"\u51CC\u6668",noon:"\u4E2D\u5348",morning:"\u65E9\u6668",afternoon:"\u4E2D\u5348",evening:"\u665A\u4E0A",night:"\u591C\u9593"}},_pe=(t,n)=>{let e=Number(t);switch(n?.unit){case"date":return e+"\u65E5";case"hour":return e+"\u6642";case"minute":return e+"\u5206";case"second":return e+"\u79D2";default:return"\u7B2C "+e}},Zz={ordinalNumber:_pe,era:Hn({values:upe,defaultWidth:"wide"}),quarter:Hn({values:mpe,defaultWidth:"wide",argumentCallback:t=>t-1}),month:Hn({values:hpe,defaultWidth:"wide"}),day:Hn({values:ppe,defaultWidth:"wide"}),dayPeriod:Hn({values:fpe,defaultWidth:"wide",formattingValues:gpe,defaultFormattingWidth:"wide"})};var bpe=/^(第\s*)?\d+(日|時|分|秒)?/i,vpe=/\d+/i,ype={narrow:/^(前)/i,abbreviated:/^(前)/i,wide:/^(公元前|公元)/i},xpe={any:[/^(前)/i,/^(公元)/i]},Cpe={narrow:/^[1234]/i,abbreviated:/^第[一二三四]刻/i,wide:/^第[一二三四]刻鐘/i},wpe={any:[/(1|一)/i,/(2|二)/i,/(3|三)/i,/(4|四)/i]},Dpe={narrow:/^(一|二|三|四|五|六|七|八|九|十[二一])/i,abbreviated:/^(一|二|三|四|五|六|七|八|九|十[二一]|\d|1[12])月/i,wide:/^(一|二|三|四|五|六|七|八|九|十[二一])月/i},Epe={narrow:[/^一/i,/^二/i,/^三/i,/^四/i,/^五/i,/^六/i,/^七/i,/^八/i,/^九/i,/^十(?!(一|二))/i,/^十一/i,/^十二/i],any:[/^一|1/i,/^二|2/i,/^三|3/i,/^四|4/i,/^五|5/i,/^六|6/i,/^七|7/i,/^八|8/i,/^九|9/i,/^十(?!(一|二))|10/i,/^十一|11/i,/^十二|12/i]},Mpe={narrow:/^[一二三四五六日]/i,short:/^[一二三四五六日]/i,abbreviated:/^週[一二三四五六日]/i,wide:/^星期[一二三四五六日]/i},Spe={any:[/日/i,/一/i,/二/i,/三/i,/四/i,/五/i,/六/i]},kpe={any:/^(上午?|下午?|午夜|[中正]午|早上?|下午|晚上?|凌晨)/i},Tpe={any:{am:/^上午?/i,pm:/^下午?/i,midnight:/^午夜/i,noon:/^[中正]午/i,morning:/^早上/i,afternoon:/^下午/i,evening:/^晚上?/i,night:/^凌晨/i}},Xz={ordinalNumber:hh({matchPattern:bpe,parsePattern:vpe,valueCallback:t=>parseInt(t,10)}),era:zn({matchPatterns:ype,defaultMatchWidth:"wide",parsePatterns:xpe,defaultParseWidth:"any"}),quarter:zn({matchPatterns:Cpe,defaultMatchWidth:"wide",parsePatterns:wpe,defaultParseWidth:"any",valueCallback:t=>t+1}),month:zn({matchPatterns:Dpe,defaultMatchWidth:"wide",parsePatterns:Epe,defaultParseWidth:"any"}),day:zn({matchPatterns:Mpe,defaultMatchWidth:"wide",parsePatterns:Spe,defaultParseWidth:"any"}),dayPeriod:zn({matchPatterns:kpe,defaultMatchWidth:"any",parsePatterns:Tpe,defaultParseWidth:"any"})};var Jz={code:"zh-TW",formatDistance:Yz,formatLong:Qz,formatRelative:Kz,localize:Zz,match:Xz,options:{weekStartsOn:1,firstWeekContainsDate:4}};var MI={navPos:"side",theme:"auto",dir:"ltr",showHeader:!0,headerPos:"fixed",showUserPanel:!0,sidenavOpened:!0,sidenavCollapsed:!1,language:"auto"};var ca=(()=>{let n=class n{get notify(){return this.notify$.asObservable()}constructor(){this.key="ng-matero-settings",this.document=u(_e),this.translate=u(oa),this.store=u(xz),this.mediaMatcher=u(Xm),this.dir=u(vz),this.notify$=new it({}),this.htmlElement=this.document.querySelector("html"),this.storedOptions=this.store.get(this.key),this.options=Object.assign(MI,this.storedOptions),this.languages=["en-US","zh-CN","zh-TW"],this.localeMap={"en-US":su,"zh-CN":qz,"zh-TW":Jz},this.translate.addLangs(this.languages)}reset(){this.store.remove(this.key)}setOptions(i){this.options=Object.assign(MI,this.options,i),this.store.set(this.key,this.options),this.notify$.next(this.options)}setDirection(i){i&&this.setOptions({dir:i}),this.dir.value=this.options.dir,this.htmlElement.dir=this.options.dir}getThemeColor(){return this.options.theme==="auto"&&this.mediaMatcher.matchMedia("(prefers-color-scheme)").media!=="not all"?this.mediaMatcher.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light":this.options.theme}setTheme(i){i&&this.setOptions({theme:i}),this.getThemeColor()==="dark"?this.htmlElement.classList.add("theme-dark"):this.htmlElement.classList.remove("theme-dark")}getTranslateLang(){if(this.options.language==="auto"){let i=navigator.language;return this.languages.includes(i)?i:"en-US"}return this.options.language}setLanguage(i){i&&this.setOptions({language:i}),this.translate.use(this.getTranslateLang())}getLocale(){return this.localeMap[this.getTranslateLang()]}};n.\u0275fac=function(r){return new(r||n)},n.\u0275prov=R({token:n,factory:n.\u0275fac,providedIn:"root"});let t=n;return t})();var e8=(()=>{let n=class n{constructor(){this.http=u(xr),this.oidcAuth=u(Ot),this.menuService=u(mo),this.permissonsService=u(Cu),this.rolesService=u(Fh),this.oidcAuth.permissionsChange$.subscribe(()=>{console.log("StartupService: Permission change event received, refreshing permissions"),this.setPermissions()})}load(){return new Promise((i,r)=>{this.http.get("data/menu.json").pipe(He(o=>this.setMenu(o.menu))).subscribe({next:()=>{this.setPermissions(),i()},error:o=>{console.error("Error loading menu:",o),this.setPermissions(),i()}})})}setMenu(i){this.menuService.addNamespace(i,"menu"),this.menuService.set(i)}setPermissions(){let i=this.oidcAuth.getUserRoles();console.log("StartupService: User roles from token:",i);let r=["canAdd","canDelete","canEdit","canRead"];this.rolesService.flushRoles(),i.length>0?(this.permissonsService.loadPermissions(r),console.log("StartupService: Loaded permissions:",r),i.includes("HRAdmin")&&(this.rolesService.addRoles({HRAdmin:r}),console.log("StartupService: Added HRAdmin role with permissions:",r)),i.includes("Manager")&&(this.rolesService.addRoles({Manager:r}),console.log("StartupService: Added Manager role with permissions:",r)),i.includes("Employee")&&(this.rolesService.addRoles({Employee:["canRead"]}),console.log("StartupService: Added Employee role with canRead permission"))):(console.log("StartupService: No roles found - setting Guest permissions"),this.permissonsService.loadPermissions(["canRead"]),this.rolesService.addRoles({Guest:["canRead"]}))}};n.\u0275fac=function(r){return new(r||n)},n.\u0275prov=R({token:n,factory:n.\u0275fac,providedIn:"root"});let t=n;return t})();var t8=(()=>{let n=class n{constructor(){this.document=u(_e),this.selector="globalLoader"}getElement(){return this.document.getElementById(this.selector)}hide(){let i=this.getElement();i&&(i.addEventListener("transitionend",()=>{i.className="global-loader-hidden"}),i.classList.contains("global-loader-hidden")||(i.className+=" global-loader-fade-out"))}};n.\u0275fac=function(r){return new(r||n)},n.\u0275prov=R({token:n,factory:n.\u0275fac,providedIn:"root"});let t=n;return t})();var i8=(()=>{let n=class n{constructor(){this.translate=u(oa),this.settings=u(ca)}load(){return new Promise(i=>{let r=this.settings.getTranslateLang();this.translate.setFallbackLang(r),this.translate.use(r).subscribe({next:()=>console.log(`Successfully initialized '${r}' language.'`),error:()=>console.error(`Problem with '${r}' language initialization.'`),complete:()=>i()})})}};n.\u0275fac=function(r){return new(r||n)},n.\u0275prov=R({token:n,factory:n.\u0275fac,providedIn:"root"});let t=n;return t})();function n8(t,n){return n(t)}var SI=new O("BASE_URL");function Ipe(t){return new RegExp("^http(s)?://","i").test(t)}function r8(t,n){let e=u(SI,{optional:!0}),i=o=>e&&Ipe(o),r=o=>[e?.replace(/\/$/g,""),o.replace(/^\.?\//,"")].filter(a=>a).join("/");return i(t.url)===!1?n(t.clone({url:r(t.url)})):n(t)}function o8(t,n){let e=u(ca);return n(t.clone({headers:t.headers.append("Accept-Language",e.getTranslateLang())}))}function a8(t,n){let e=u(Lg);return t.url.includes("/api/")?n(t).pipe(It(i=>{if(i instanceof rl){let r=i.body;if(r&&"code"in r&&r.code!==0)return r.msg&&e.error(r.msg),qn(()=>[])}return Q(i)})):n(t)}var __=(function(t){return t[t.UNAUTHORIZED=401]="UNAUTHORIZED",t[t.FORBIDDEN=403]="FORBIDDEN",t[t.NOT_FOUND=404]="NOT_FOUND",t[t.INTERNAL_SERVER_ERROR=500]="INTERNAL_SERVER_ERROR",t})(__||{});function s8(t,n){let e=u(Re),i=u(Lg),r=[__.FORBIDDEN,__.NOT_FOUND,__.INTERNAL_SERVER_ERROR],o=a=>a.error?.message?a.error.message:a.error?.msg?a.error.msg:a.status===0?"Network error - please check your connection":`${a.status} ${a.statusText}`;return n(t).pipe(ii(a=>a.status===0?(console.warn("Network error (possible CORS issue):",a),qn(()=>a)):(!t.url.includes("/ai/")&&r.includes(a.status)?e.navigateByUrl(`/${a.status}`,{skipLocationChange:!0}):(console.error("ERROR",a),i.error(o(a)),a.status===__.UNAUTHORIZED&&console.warn("Unauthorized access - authentication required")),qn(()=>a))))}function l8(t,n){let e=u(yz),i=Date.now(),r;return n(t).pipe(He({next:o=>r=o instanceof rl?"succeeded":"",error:o=>r="failed"}),Gr(()=>{let o=Date.now()-i,a=`${t.method} "${t.urlWithParams}" ${r} in ${o} ms.`;e.add(a)}))}var c8=[n8,r8,o8,a8,s8,l8];var XC=["*"],Ape=["content"],Ope=[[["mat-drawer"]],[["mat-drawer-content"]],"*"],Rpe=["mat-drawer","mat-drawer-content","*"];function Ppe(t,n){if(t&1){let e=q();m(0,"div",1),S("click",function(){T(e);let r=x();return I(r._onBackdropClicked())}),h()}if(t&2){let e=x();G("mat-drawer-shown",e._isShowingBackdrop())}}function Fpe(t,n){t&1&&(m(0,"mat-drawer-content"),ne(1,2),h())}var Npe=[[["mat-sidenav"]],[["mat-sidenav-content"]],"*"],Lpe=["mat-sidenav","mat-sidenav-content","*"];function Vpe(t,n){if(t&1){let e=q();m(0,"div",1),S("click",function(){T(e);let r=x();return I(r._onBackdropClicked())}),h()}if(t&2){let e=x();G("mat-drawer-shown",e._isShowingBackdrop())}}function Bpe(t,n){t&1&&(m(0,"mat-sidenav-content"),ne(1,2),h())}var jpe=`.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:.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} +`;var Hpe=new O("MAT_DRAWER_DEFAULT_AUTOSIZE",{providedIn:"root",factory:zpe}),II=new O("MAT_DRAWER_CONTAINER");function zpe(){return!1}var KC=(()=>{class t extends Fa{_platform=u(qe);_changeDetectorRef=u(ye);_container=u(TI);constructor(){let e=u(Y),i=u(Ds),r=u(ae);super(e,i,r)}ngAfterContentInit(){this._container._contentMarginChanges.subscribe(()=>{this._changeDetectorRef.markForCheck()})}_shouldBeHidden(){if(this._platform.isBrowser)return!1;let{start:e,end:i}=this._container;return e!=null&&e.mode!=="over"&&e.opened||i!=null&&i.mode!=="over"&&i.opened}static \u0275fac=function(i){return new(i||t)};static \u0275cmp=E({type:t,selectors:[["mat-drawer-content"]],hostAttrs:[1,"mat-drawer-content"],hostVars:6,hostBindings:function(i,r){i&2&&(Et("margin-left",r._container._contentMargins.left,"px")("margin-right",r._container._contentMargins.right,"px"),G("mat-drawer-content-hidden",r._shouldBeHidden()))},features:[Ce([{provide:Fa,useExisting:t}]),le],ngContentSelectors:XC,decls:1,vars:0,template:function(i,r){i&1&&(Se(),ne(0))},encapsulation:2,changeDetection:0})}return t})(),kI=(()=>{class t{_elementRef=u(Y);_focusTrapFactory=u(eh);_focusMonitor=u(ti);_platform=u(qe);_ngZone=u(ae);_renderer=u(ze);_interactivityChecker=u(lc);_doc=u(_e);_container=u(II,{optional:!0});_focusTrap=null;_elementFocusedBeforeDrawerWasOpened=null;_eventCleanups;_isAttached;_anchor;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=Ri(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=Ri(e)),this._autoFocus=e}_autoFocus;get opened(){return this._opened()}set opened(e){this.toggle(Ri(e))}_opened=he(!1);_openedVia;_animationStarted=new z;_animationEnd=new z;openedChange=new U(!0);_openedStream=this.openedChange.pipe(ce(e=>e),se(()=>{}));openedStart=this._animationStarted.pipe(ce(()=>this.opened),Zu(void 0));_closedStream=this.openedChange.pipe(ce(e=>!e),se(()=>{}));closedStart=this._animationStarted.pipe(ce(()=>!this.opened),Zu(void 0));_destroyed=new z;onPositionChanged=new U;_content;_modeChanged=new z;_injector=u(de);_changeDetectorRef=u(ye);constructor(){this.openedChange.pipe(we(this._destroyed)).subscribe(e=>{e?(this._elementFocusedBeforeDrawerWasOpened=this._doc.activeElement,this._takeFocus()):this._isFocusWithinDrawer()&&this._restoreFocus(this._openedVia||"program")}),this._ngZone.runOutsideAngular(()=>{let e=this._elementRef.nativeElement;Us(e,"keydown").pipe(ce(i=>i.keyCode===27&&!this.disableClose&&!Lt(i)),we(this._destroyed)).subscribe(i=>this._ngZone.run(()=>{this.close(),i.stopPropagation(),i.preventDefault()})),this._eventCleanups=[this._renderer.listen(e,"transitionrun",this._handleTransitionEvent),this._renderer.listen(e,"transitionend",this._handleTransitionEvent),this._renderer.listen(e,"transitioncancel",this._handleTransitionEvent)]}),this._animationEnd.subscribe(()=>{this.openedChange.emit(this.opened)})}_forceFocus(e,i){this._interactivityChecker.isFocusable(e)||(e.tabIndex=-1,this._ngZone.runOutsideAngular(()=>{let r=()=>{o(),a(),e.removeAttribute("tabindex")},o=this._renderer.listen(e,"blur",r),a=this._renderer.listen(e,"mousedown",r)})),e.focus(i)}_focusByCssSelector(e,i){let r=this._elementRef.nativeElement.querySelector(e);r&&this._forceFocus(r,i)}_takeFocus(){if(!this._focusTrap)return;let e=this._elementRef.nativeElement;switch(this.autoFocus){case!1:case"dialog":return;case!0:case"first-tabbable":gt(()=>{!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,i){e&&i&&(this._openedVia=i);let r=this._setOpen(e,!e&&this._isFocusWithinDrawer(),this._openedVia||"program");return e||(this._openedVia=null),r}_setOpen(e,i,r){return e===this.opened?Promise.resolve(e?"open":"close"):(this._opened.set(e),this._container?._transitionsEnabled?this._setIsAnimating(!0):setTimeout(()=>{this._animationStarted.next(),this._animationEnd.next()}),this._elementRef.nativeElement.classList.toggle("mat-drawer-opened",e),!e&&i&&this._restoreFocus(r),this._changeDetectorRef.markForCheck(),this._updateFocusTrapState(),new Promise(o=>{this.openedChange.pipe(ct(1)).subscribe(a=>o(a?"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._container?.hasBackdrop&&this.opened)}_updatePositionInParent(e){if(!this._platform.isBrowser)return;let i=this._elementRef.nativeElement,r=i.parentNode;e==="end"?(this._anchor||(this._anchor=this._doc.createComment("mat-drawer-anchor"),r.insertBefore(this._anchor,i)),r.appendChild(i)):this._anchor&&this._anchor.parentNode.insertBefore(i,this._anchor)}_handleTransitionEvent=e=>{let i=this._elementRef.nativeElement;e.target===i&&this._ngZone.run(()=>{e.type==="transitionrun"?this._animationStarted.next(e):(e.type==="transitionend"&&this._setIsAnimating(!1),this._animationEnd.next(e))})};static \u0275fac=function(i){return new(i||t)};static \u0275cmp=E({type:t,selectors:[["mat-drawer"]],viewQuery:function(i,r){if(i&1&&ie(Ape,5),i&2){let o;j(o=H())&&(r._content=o.first)}},hostAttrs:[1,"mat-drawer"],hostVars:12,hostBindings:function(i,r){i&2&&(X("align",null)("tabIndex",r.mode!=="side"?"-1":null),Et("visibility",!r._container&&!r.opened?"hidden":null),G("mat-drawer-end",r.position==="end")("mat-drawer-over",r.mode==="over")("mat-drawer-push",r.mode==="push")("mat-drawer-side",r.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:XC,decls:3,vars:0,consts:[["content",""],["cdkScrollable","",1,"mat-drawer-inner-container"]],template:function(i,r){i&1&&(Se(),m(0,"div",1,0),ne(2),h())},dependencies:[Fa],encapsulation:2,changeDetection:0})}return t})(),TI=(()=>{class t{_dir=u(Bt,{optional:!0});_element=u(Y);_ngZone=u(ae);_changeDetectorRef=u(ye);_animationDisabled=Ye();_transitionsEnabled=!1;_allDrawers;_drawers=new gr;_content;_userContent;get start(){return this._start}get end(){return this._end}get autosize(){return this._autosize}set autosize(e){this._autosize=Ri(e)}_autosize=u(Hpe);get hasBackdrop(){return this._drawerHasBackdrop(this._start)||this._drawerHasBackdrop(this._end)}set hasBackdrop(e){this._backdropOverride=e==null?null:Ri(e)}_backdropOverride;backdropClick=new U;_start;_end;_left;_right;_destroyed=new z;_doCheckSubject=new z;_contentMargins={left:null,right:null};_contentMarginChanges=new z;get scrollable(){return this._userContent||this._content}_injector=u(de);constructor(){let e=u(qe),i=u(tr);this._dir?.change.pipe(we(this._destroyed)).subscribe(()=>{this._validateDrawers(),this.updateContentMargins()}),i.change().pipe(we(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(Ue(this._allDrawers),we(this._destroyed)).subscribe(e=>{this._drawers.reset(e.filter(i=>!i._container||i._container===this)),this._drawers.notifyOnChanges()}),this._drawers.changes.pipe(Ue(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(St(10),we(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,i=0;if(this._left&&this._left.opened){if(this._left.mode=="side")e+=this._left._getWidth();else if(this._left.mode=="push"){let r=this._left._getWidth();e+=r,i-=r}}if(this._right&&this._right.opened){if(this._right.mode=="side")i+=this._right._getWidth();else if(this._right.mode=="push"){let r=this._right._getWidth();i+=r,e-=r}}e=e||null,i=i||null,(e!==this._contentMargins.left||i!==this._contentMargins.right)&&(this._contentMargins={left:e,right:i},this._ngZone.run(()=>this._contentMarginChanges.next(this._contentMargins)))}ngDoCheck(){this._autosize&&this._isPushed()&&this._ngZone.runOutsideAngular(()=>this._doCheckSubject.next())}_watchDrawerToggle(e){e._animationStarted.pipe(we(this._drawers.changes)).subscribe(()=>{this.updateContentMargins(),this._changeDetectorRef.markForCheck()}),e.mode!=="side"&&e.openedChange.pipe(we(this._drawers.changes)).subscribe(()=>this._setContainerClass(e.opened))}_watchDrawerPosition(e){e.onPositionChanged.pipe(we(this._drawers.changes)).subscribe(()=>{gt({read:()=>this._validateDrawers()},{injector:this._injector})})}_watchDrawerMode(e){e._modeChanged.pipe(we(Je(this._drawers.changes,this._destroyed))).subscribe(()=>{this.updateContentMargins(),this._changeDetectorRef.markForCheck()})}_setContainerClass(e){let i=this._element.nativeElement.classList,r="mat-drawer-container-has-open";e?i.add(r):i.remove(r)}_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(i){return new(i||t)};static \u0275cmp=E({type:t,selectors:[["mat-drawer-container"]],contentQueries:function(i,r,o){if(i&1&&(xe(o,KC,5),xe(o,kI,5)),i&2){let a;j(a=H())&&(r._content=a.first),j(a=H())&&(r._allDrawers=a)}},viewQuery:function(i,r){if(i&1&&ie(KC,5),i&2){let o;j(o=H())&&(r._userContent=o.first)}},hostAttrs:[1,"mat-drawer-container"],hostVars:2,hostBindings:function(i,r){i&2&&G("mat-drawer-container-explicit-backdrop",r._backdropOverride)},inputs:{autosize:"autosize",hasBackdrop:"hasBackdrop"},outputs:{backdropClick:"backdropClick"},exportAs:["matDrawerContainer"],features:[Ce([{provide:II,useExisting:t}])],ngContentSelectors:Rpe,decls:4,vars:2,consts:[[1,"mat-drawer-backdrop",3,"mat-drawer-shown"],[1,"mat-drawer-backdrop",3,"click"]],template:function(i,r){i&1&&(Se(Ope),V(0,Ppe,1,2,"div",0),ne(1),ne(2,1),V(3,Fpe,2,0,"mat-drawer-content")),i&2&&(B(r.hasBackdrop?0:-1),f(3),B(r._content?-1:3))},dependencies:[KC],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:.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 t})(),ZC=(()=>{class t extends KC{static \u0275fac=(()=>{let e;return function(r){return(e||(e=ge(t)))(r||t)}})();static \u0275cmp=E({type:t,selectors:[["mat-sidenav-content"]],hostAttrs:[1,"mat-drawer-content","mat-sidenav-content"],features:[Ce([{provide:Fa,useExisting:t}]),le],ngContentSelectors:XC,decls:1,vars:0,template:function(i,r){i&1&&(Se(),ne(0))},encapsulation:2,changeDetection:0})}return t})(),AI=(()=>{class t extends kI{get fixedInViewport(){return this._fixedInViewport}set fixedInViewport(e){this._fixedInViewport=Ri(e)}_fixedInViewport=!1;get fixedTopGap(){return this._fixedTopGap}set fixedTopGap(e){this._fixedTopGap=Bn(e)}_fixedTopGap=0;get fixedBottomGap(){return this._fixedBottomGap}set fixedBottomGap(e){this._fixedBottomGap=Bn(e)}_fixedBottomGap=0;static \u0275fac=(()=>{let e;return function(r){return(e||(e=ge(t)))(r||t)}})();static \u0275cmp=E({type:t,selectors:[["mat-sidenav"]],hostAttrs:[1,"mat-drawer","mat-sidenav"],hostVars:16,hostBindings:function(i,r){i&2&&(X("tabIndex",r.mode!=="side"?"-1":null)("align",null),Et("top",r.fixedInViewport?r.fixedTopGap:null,"px")("bottom",r.fixedInViewport?r.fixedBottomGap:null,"px"),G("mat-drawer-end",r.position==="end")("mat-drawer-over",r.mode==="over")("mat-drawer-push",r.mode==="push")("mat-drawer-side",r.mode==="side")("mat-sidenav-fixed",r.fixedInViewport))},inputs:{fixedInViewport:"fixedInViewport",fixedTopGap:"fixedTopGap",fixedBottomGap:"fixedBottomGap"},exportAs:["matSidenav"],features:[Ce([{provide:kI,useExisting:t}]),le],ngContentSelectors:XC,decls:3,vars:0,consts:[["content",""],["cdkScrollable","",1,"mat-drawer-inner-container"]],template:function(i,r){i&1&&(Se(),m(0,"div",1,0),ne(2),h())},dependencies:[Fa],encapsulation:2,changeDetection:0})}return t})(),d8=(()=>{class t extends TI{_allDrawers=void 0;_content=void 0;static \u0275fac=(()=>{let e;return function(r){return(e||(e=ge(t)))(r||t)}})();static \u0275cmp=E({type:t,selectors:[["mat-sidenav-container"]],contentQueries:function(i,r,o){if(i&1&&(xe(o,ZC,5),xe(o,AI,5)),i&2){let a;j(a=H())&&(r._content=a.first),j(a=H())&&(r._allDrawers=a)}},hostAttrs:[1,"mat-drawer-container","mat-sidenav-container"],hostVars:2,hostBindings:function(i,r){i&2&&G("mat-drawer-container-explicit-backdrop",r._backdropOverride)},exportAs:["matSidenavContainer"],features:[Ce([{provide:II,useExisting:t},{provide:TI,useExisting:t}]),le],ngContentSelectors:Lpe,decls:4,vars:2,consts:[[1,"mat-drawer-backdrop",3,"mat-drawer-shown"],[1,"mat-drawer-backdrop",3,"click"]],template:function(i,r){i&1&&(Se(Npe),V(0,Vpe,1,2,"div",0),ne(1),ne(2,1),V(3,Bpe,2,0,"mat-sidenav-content")),i&2&&(B(r.hasBackdrop?0:-1),f(3),B(r._content?-1:3))},dependencies:[ZC],styles:[jpe],encapsulation:2,changeDetection:0})}return t})(),u8=(()=>{class t{static \u0275fac=function(i){return new(i||t)};static \u0275mod=ee({type:t});static \u0275inj=J({imports:[De,Cr,Cr,De]})}return t})();function $pe(t,n){t&1&&Xt(0,"div",3)}function Wpe(t,n){t&1&&(pt(0,"div",4),Xt(1,"div",5),_t())}var Gpe={min:8,max:100,speed:200,debounceTime:0,trickleSpeed:300,fadeOutSpeed:50,relative:!1,flat:!1,spinner:!1,direction:"ltr+",spinnerPosition:"right",trickleFunc:t=>t>=0&&t<20?10:t>=20&&t<50?4:t>=50&&t<80?2:t>=80&&t<99?.5:0},m8=new O("NG_PROGRESS_OPTIONS",{providedIn:"root",factory:()=>Gpe});var JC=(function(t){return t.START="START",t.COMPLETE="COMPLETE",t})(JC||{});function qpe(t){let n=dt(t)||0;return n<100&&n>=0?n:0}function Ype(t){let n=dt(t)||100;return n>0&&n<=100?n:100}var ew=(()=>{let n=class n{constructor(){this.defaultOptions=u(m8),this.min=re(this.defaultOptions.min,{transform:qpe}),this.max=re(this.defaultOptions.max,{transform:Ype}),this.speed=re(this.defaultOptions.speed,{transform:dt}),this.trickleSpeed=re(this.defaultOptions.trickleSpeed,{transform:dt}),this.fadeOutSpeed=re(this.defaultOptions.fadeOutSpeed,{transform:dt}),this.debounceTime=re(this.defaultOptions.debounceTime,{transform:dt}),this.trickleFunc=re(this.defaultOptions.trickleFunc),this.config=oi(()=>({max:this.max(),min:this.min(),speed:this.speed(),trickleSpeed:this.trickleSpeed(),fadeOutSpeed:this.fadeOutSpeed(),trickleFunc:this.trickleFunc(),debounceTime:this.debounceTime()})),this._progress=he(0),this._active=he(!1),this.active=oi(()=>this._active()),this.progress=oi(()=>this._progress()),this.started=yi(),this.completed=yi(),this._trigger=new it(null);let i;Lr(r=>{let o=this.config();Ai(()=>{i=this._trigger.pipe(ce(a=>!!a),je(a=>a===JC.START?Ya(o.debounceTime).pipe(je(()=>this.onTrickling(o))):this.onComplete(o))).subscribe(),r(()=>i?.unsubscribe())})})}start(){this.started.emit(),this._trigger.next(JC.START),this._active.set(!0)}complete(){this._trigger.next(JC.COMPLETE)}inc(i){let r=this.progress();this.active()?(typeof i!="number"&&(i=this.config().trickleFunc(r)),this.set(r+i)):this.start()}set(i){this._active.set(!0),this._progress.set(this.clamp(i))}clamp(i){return Math.max(this.config().min,Math.min(this.config().max,i))}onTrickling(i){return this.active()||this.set(i.min),Ya(0,i.trickleSpeed).pipe(He(()=>this.inc()))}onComplete(i){return this.active()?(this.completed.emit(),Q({}).pipe(He(()=>this._progress.set(100)),ga(i.speed+140),He(()=>this._active.set(!1)),ga(i.fadeOutSpeed),Gr(()=>this._progress.set(0)),we(wz(this.started)))):Vi}};n.\u0275fac=function(r){return new(r||n)},n.\u0275dir=P({type:n,selectors:[["","ngProgressRef",""]],inputs:{min:[1,"min"],max:[1,"max"],speed:[1,"speed"],trickleSpeed:[1,"trickleSpeed"],fadeOutSpeed:[1,"fadeOutSpeed"],debounceTime:[1,"debounceTime"],trickleFunc:[1,"trickleFunc"]},outputs:{started:"started",completed:"completed"},exportAs:["ngProgressRef"]});let t=n;return t})(),h8=(()=>{let n=class n{constructor(){this.config=u(m8),this.progressRef=u(ew,{host:!0,self:!0}),this.flat=re(this.config.flat,{transform:L}),this.spinner=re(this.config.spinner,{transform:L}),this.relative=re(this.config.relative,{transform:L}),this.spinnerPosition=re(this.config.spinnerPosition),this.direction=re(this.config.direction),this.progressTransform=oi(()=>`translate3d(${this.progressRef.progress()}%,0,0)`)}};n.\u0275fac=function(r){return new(r||n)},n.\u0275cmp=E({type:n,selectors:[["ng-progress"]],hostAttrs:["role","progressbar"],hostVars:12,hostBindings:function(r,o){r&2&&(X("spinnerPosition",o.spinnerPosition())("direction",o.direction()),Et("--_ng-progress-speed",o.progressRef.speed()+"ms")("--_ng-progress-fade-out-speed",o.progressRef.fadeOutSpeed()+"ms"),G("ng-progress-bar",!0)("ng-progress-bar-active",o.progressRef.active())("ng-progress-bar-relative",o.relative()))},inputs:{flat:[1,"flat"],spinner:[1,"spinner"],relative:[1,"relative"],spinnerPosition:[1,"spinnerPosition"],direction:[1,"direction"]},exportAs:["ngProgress"],features:[Em([{directive:ew,inputs:["min","min","max","max","speed","speed","trickleSpeed","trickleSpeed","fadeOutSpeed","fadeOutSpeed","debounceTime","debounceTime"],outputs:["started","started","completed","completed"]}])],decls:5,vars:4,consts:[[1,"ng-progress-bar-wrapper"],[1,"ng-bar-placeholder"],[1,"ng-bar"],[1,"ng-meteor"],[1,"ng-spinner"],[1,"ng-spinner-icon"]],template:function(r,o){r&1&&(pt(0,"div",0)(1,"div",1)(2,"div",2),V(3,$pe,1,0,"div",3),_t()(),V(4,Wpe,2,0,"div",4),_t()),r&2&&(f(2),Et("transform",o.progressTransform()),f(),B(o.flat()?-1:3),f(),B(o.spinner()?4:-1))},styles:['[_nghost-%COMP%]{--_ng-progress-thickness: var(--ng-progress-thickness, 2);--_ng-progress-thickness-px: calc(var(--_ng-progress-thickness) * 1px);--_ng-progress-thickness-add-one: calc(var(--_ng-progress-thickness) + 1);--_ng-progress-meteor-position-px: calc(var(--_ng-progress-thickness-add-one) * -1px);--_ng-progress-color: var(--ng-progress-color, #1B95E0);--_ng-progress-holder-color: var(--ng-progress-holder-color, transparent);--_ng-progress-ease: var(--ng-progress-ease, linear);--_ng-progress-spinner-thickness: var(--ng-progress-spinner-thickness, 2);--_ng-progress-spinner-thickness-px: calc(var(--_ng-progress-spinner-thickness) * 1px);--_ng-progress-spinner-spacing: var(--ng-progress-spinner-spacing, 15);--_ng-progress-spinner-spacing-px: calc(var(--_ng-progress-spinner-spacing) * 1px);--_ng-progress-spinner-size: var(--ng-progress-spinner-size, 18);--_ng-progress-spinner-size-px: calc(var(--_ng-progress-spinner-size) * 1px);--_ng-progress-spinner-speed: var(--ng-progress-spinner-speed, .25s);z-index:999999;pointer-events:none}.ng-progress-bar-active[_nghost-%COMP%] .ng-progress-bar-wrapper[_ngcontent-%COMP%]{filter:alpha(opacity=100);opacity:1;transition:none}.ng-progress-bar-active[_nghost-%COMP%] .ng-bar[_ngcontent-%COMP%]{transition:all var(--_ng-progress-speed) var(--_ng-progress-ease)}.ng-progress-bar-relative[_nghost-%COMP%] .ng-progress-bar-wrapper[_ngcontent-%COMP%]{position:relative}[direction="ltr+"][_nghost-%COMP%] .ng-meteor[_ngcontent-%COMP%], [direction=ltr-][_nghost-%COMP%] .ng-meteor[_ngcontent-%COMP%]{rotate:calc(var(--_ng-progress-thickness-add-one) * 1deg)}[direction="ltr+"][_nghost-%COMP%] .ng-bar[_ngcontent-%COMP%], [direction="rtl+"][_nghost-%COMP%] .ng-bar[_ngcontent-%COMP%]{margin-left:-100%}[direction="ltr+"][_nghost-%COMP%] .ng-meteor[_ngcontent-%COMP%], [direction="rtl+"][_nghost-%COMP%] .ng-meteor[_ngcontent-%COMP%]{right:0}[direction="ltr+"][_nghost-%COMP%] .ng-meteor[_ngcontent-%COMP%], [direction=rtl-][_nghost-%COMP%] .ng-meteor[_ngcontent-%COMP%]{top:var(--_ng-progress-meteor-position-px)}[direction=ltr-][_nghost-%COMP%] .ng-meteor[_ngcontent-%COMP%], [direction="rtl+"][_nghost-%COMP%] .ng-meteor[_ngcontent-%COMP%]{bottom:var(--_ng-progress-meteor-position-px)}[direction=ltr-][_nghost-%COMP%] .ng-bar-placeholder[_ngcontent-%COMP%], [direction="rtl+"][_nghost-%COMP%] .ng-bar-placeholder[_ngcontent-%COMP%]{transform:rotate(180deg)}[direction=ltr-][_nghost-%COMP%] .ng-spinner-icon[_ngcontent-%COMP%], [direction="rtl+"][_nghost-%COMP%] .ng-spinner-icon[_ngcontent-%COMP%]{animation-direction:reverse}[direction="rtl+"][_nghost-%COMP%] .ng-meteor[_ngcontent-%COMP%], [direction=rtl-][_nghost-%COMP%] .ng-meteor[_ngcontent-%COMP%]{rotate:calc(var(--_ng-progress-thickness-add-one) * -1deg)}[_nghost-%COMP%] .ng-spinner[_ngcontent-%COMP%]{top:var(--_ng-progress-spinner-spacing-px)}[spinnerPosition=left][_nghost-%COMP%] .ng-spinner[_ngcontent-%COMP%]{left:var(--_ng-progress-spinner-spacing-px)}[spinnerPosition=right][_nghost-%COMP%] .ng-spinner[_ngcontent-%COMP%]{right:var(--_ng-progress-spinner-spacing-px)}.ng-progress-bar-wrapper[_ngcontent-%COMP%]{position:fixed;z-index:999999;top:0;left:0;width:100%;transform:scale(1);filter:alpha(opacity=0);opacity:0;transition:opacity var(--_ng-progress-fade-out-speed) linear}.ng-bar-placeholder[_ngcontent-%COMP%]{position:absolute;height:var(--_ng-progress-thickness-px);width:100%}.ng-bar[_ngcontent-%COMP%]{width:100%;height:100%;transform:translate(-100%,0,0);background:var(--_ng-progress-color)}.ng-meteor[_ngcontent-%COMP%]{display:block;position:absolute;width:100px;height:100%;opacity:1;box-shadow:0 0 10px var(--_ng-progress-color),0 0 5px var(--_ng-progress-color)}.ng-spinner[_ngcontent-%COMP%]{position:absolute;display:block;z-index:1031;top:10px}.ng-spinner-icon[_ngcontent-%COMP%]{box-sizing:border-box;animation:_ngcontent-%COMP%_spinner-animation var(--_ng-progress-spinner-speed) linear infinite;border-style:solid;border-color:transparent;border-radius:50%;border-top-color:var(--_ng-progress-color);border-left-color:var(--_ng-progress-color);width:var(--_ng-progress-spinner-size-px);height:var(--_ng-progress-spinner-size-px);border-width:var(--_ng-progress-spinner-thickness-px)}@keyframes _ngcontent-%COMP%_spinner-animation{0%{transform:rotate(0)}to{transform:rotate(360deg)}}'],changeDetection:0});let t=n;return t})();var Qpe={minDuration:0,startEvents:[fs],completeEvents:[xi,Ko,nc]},Kpe=new O("NG_PROGRESS_ROUTER_OPTIONS",{providedIn:"root",factory:()=>Qpe});function p8(t,n){return n.some(e=>t instanceof e)}var Zpe=(()=>{let n=class n{constructor(){this.router=u(Re),this.config=u(Kpe),this.progressRef=u(ew,{host:!0,self:!0});let i;this.router.events.pipe(ce(r=>p8(r,[...this.config.startEvents,...this.config.completeEvents])),se(r=>p8(r,this.config.startEvents)),He(r=>{clearTimeout(i),r?this.progressRef.start():i=setTimeout(()=>{this.progressRef.complete()},this.config.minDuration)}),Ou()).subscribe()}};n.\u0275fac=function(r){return new(r||n)},n.\u0275dir=P({type:n});let t=n;return t})(),f8=(()=>{let n=class n extends Zpe{};n.\u0275fac=(()=>{let i;return function(o){return(i||(i=ge(n)))(o||n)}})(),n.\u0275dir=P({type:n,selectors:[["ng-progress","ngProgressRouter",""]],features:[le]});let t=n;return t})();var Xpe=["*",[["mat-toolbar-row"]]],Jpe=["*","mat-toolbar-row"],efe=(()=>{class t{static \u0275fac=function(i){return new(i||t)};static \u0275dir=P({type:t,selectors:[["mat-toolbar-row"]],hostAttrs:[1,"mat-toolbar-row"],exportAs:["matToolbarRow"]})}return t})(),tw=(()=>{class t{_elementRef=u(Y);_platform=u(qe);_document=u(_e);color;_toolbarRows;constructor(){}ngAfterViewInit(){this._platform.isBrowser&&(this._checkToolbarMixedModes(),this._toolbarRows.changes.subscribe(()=>this._checkToolbarMixedModes()))}_checkToolbarMixedModes(){this._toolbarRows.length}static \u0275fac=function(i){return new(i||t)};static \u0275cmp=E({type:t,selectors:[["mat-toolbar"]],contentQueries:function(i,r,o){if(i&1&&xe(o,efe,5),i&2){let a;j(a=H())&&(r._toolbarRows=a)}},hostAttrs:[1,"mat-toolbar"],hostVars:6,hostBindings:function(i,r){i&2&&(nt(r.color?"mat-"+r.color:""),G("mat-toolbar-multiple-rows",r._toolbarRows.length>0)("mat-toolbar-single-row",r._toolbarRows.length===0))},inputs:{color:"color"},exportAs:["matToolbar"],ngContentSelectors:Jpe,decls:2,vars:0,template:function(i,r){i&1&&(Se(Xpe),ne(0),ne(1,1))},styles:[`.mat-toolbar{background:var(--mat-toolbar-container-background-color, var(--mat-sys-surface));color:var(--mat-toolbar-container-text-color, var(--mat-sys-on-surface))}.mat-toolbar,.mat-toolbar h1,.mat-toolbar h2,.mat-toolbar h3,.mat-toolbar h4,.mat-toolbar h5,.mat-toolbar h6{font-family:var(--mat-toolbar-title-text-font, var(--mat-sys-title-large-font));font-size:var(--mat-toolbar-title-text-size, var(--mat-sys-title-large-size));line-height:var(--mat-toolbar-title-text-line-height, var(--mat-sys-title-large-line-height));font-weight:var(--mat-toolbar-title-text-weight, var(--mat-sys-title-large-weight));letter-spacing:var(--mat-toolbar-title-text-tracking, var(--mat-sys-title-large-tracking));margin:0}@media(forced-colors: active){.mat-toolbar{outline:solid 1px}}.mat-toolbar .mat-form-field-underline,.mat-toolbar .mat-form-field-ripple,.mat-toolbar .mat-focused .mat-form-field-ripple{background-color:currentColor}.mat-toolbar .mat-form-field-label,.mat-toolbar .mat-focused .mat-form-field-label,.mat-toolbar .mat-select-value,.mat-toolbar .mat-select-arrow,.mat-toolbar .mat-form-field.mat-focused .mat-select-arrow{color:inherit}.mat-toolbar .mat-input-element{caret-color:currentColor}.mat-toolbar .mat-mdc-button-base.mat-mdc-button-base.mat-unthemed{--mat-button-text-label-text-color: var(--mat-toolbar-container-text-color, var(--mat-sys-on-surface));--mat-button-outlined-label-text-color: var(--mat-toolbar-container-text-color, var(--mat-sys-on-surface))}.mat-toolbar-row,.mat-toolbar-single-row{display:flex;box-sizing:border-box;padding:0 16px;width:100%;flex-direction:row;align-items:center;white-space:nowrap;height:var(--mat-toolbar-standard-height, 64px)}@media(max-width: 599px){.mat-toolbar-row,.mat-toolbar-single-row{height:var(--mat-toolbar-mobile-height, 56px)}}.mat-toolbar-multiple-rows{display:flex;box-sizing:border-box;flex-direction:column;width:100%;min-height:var(--mat-toolbar-standard-height, 64px)}@media(max-width: 599px){.mat-toolbar-multiple-rows{min-height:var(--mat-toolbar-mobile-height, 56px)}} +`],encapsulation:2,changeDetection:0})}return t})();var iw=(()=>{class t{static \u0275fac=function(i){return new(i||t)};static \u0275mod=ee({type:t});static \u0275inj=J({imports:[De,De]})}return t})();var _8=[["requestFullscreen","exitFullscreen","fullscreenElement","fullscreenEnabled","fullscreenchange","fullscreenerror"],["webkitRequestFullscreen","webkitExitFullscreen","webkitFullscreenElement","webkitFullscreenEnabled","webkitfullscreenchange","webkitfullscreenerror"],["webkitRequestFullScreen","webkitCancelFullScreen","webkitCurrentFullScreenElement","webkitCancelFullScreen","webkitfullscreenchange","webkitfullscreenerror"],["mozRequestFullScreen","mozCancelFullScreen","mozFullScreenElement","mozFullScreenEnabled","mozfullscreenchange","mozfullscreenerror"],["msRequestFullscreen","msExitFullscreen","msFullscreenElement","msFullscreenEnabled","MSFullscreenChange","MSFullscreenError"]],El=(()=>{if(typeof document>"u")return!1;let t=_8[0],n={};for(let e of _8)if(e?.[1]in document){for(let[r,o]of e.entries())n[t[r]]=o;return n}return!1})(),b8={change:El.fullscreenchange,error:El.fullscreenerror},Ro={request(t=document.documentElement,n){return new Promise((e,i)=>{let r=()=>{Ro.off("change",r),e()};Ro.on("change",r);let o=t[El.requestFullscreen](n);o instanceof Promise&&o.then(r).catch(i)})},exit(){return new Promise((t,n)=>{if(!Ro.isFullscreen){t();return}let e=()=>{Ro.off("change",e),t()};Ro.on("change",e);let i=document[El.exitFullscreen]();i instanceof Promise&&i.then(e).catch(n)})},toggle(t,n){return Ro.isFullscreen?Ro.exit():Ro.request(t,n)},onchange(t){Ro.on("change",t)},onerror(t){Ro.on("error",t)},on(t,n){let e=b8[t];e&&document.addEventListener(e,n,!1)},off(t,n){let e=b8[t];e&&document.removeEventListener(e,n,!1)},raw:El};Object.defineProperties(Ro,{isFullscreen:{get:()=>!!document[El.fullscreenElement]},element:{enumerable:!0,get:()=>document[El.fullscreenElement]??void 0},isEnabled:{enumerable:!0,get:()=>!!document[El.fullscreenEnabled]}});El||(Ro={isEnabled:!1});var OI=Ro;function tfe(t,n){t&1&&(pt(0,"span",2),g(1,"Talent Management"),_t())}var nw=(()=>{let n=class n{constructor(){this.showName=re(!0)}};n.\u0275fac=function(r){return new(r||n)},n.\u0275cmp=E({type:n,selectors:[["app-branding"]],inputs:{showName:[1,"showName"]},decls:3,vars:1,consts:[["href","/",1,"branding"],["src","images/matero.png","alt","logo",1,"branding-logo"],[1,"branding-name"]],template:function(r,o){r&1&&(pt(0,"a",0),Xt(1,"img",1),V(2,tfe,2,0,"span",2),_t()),r&2&&(f(2),B(o.showName()?2:-1))},styles:[".branding[_ngcontent-%COMP%]{display:flex;align-items:center;margin:0 .5rem;text-decoration:none;white-space:nowrap;color:inherit;border-radius:50rem}.branding-logo[_ngcontent-%COMP%]{width:2rem;height:2rem;border-radius:50rem}.branding-name[_ngcontent-%COMP%]{margin:0 .5rem;font-size:1rem;font-weight:500}"]});let t=n;return t})();var v8=(()=>{let n=class n{};n.\u0275fac=function(r){return new(r||n)},n.\u0275cmp=E({type:n,selectors:[["app-github-button"]],decls:3,vars:0,consts:[["matIconButton","","href","https://github.com/ng-matero/ng-matero","target","_blank"],["viewBox","0 0 16 16"],["fill","currentColor","d",`M7.999,0.431c-4.285,0-7.76,3.474-7.76,7.761 c0,3.428,2.223,6.337,5.307,7.363c0.388, 0.071,0.53-0.168,0.53-0.374c0-0.184-0.007-0.672-0.01-1.32 c-2.159, 0.469-2.614-1.04-2.614-1.04c-0.353-0.896-0.862-1.135-0.862-1.135c-0.705-0.481, 0.053-0.472,0.053-0.472 c0.779,0.055,1.189,0.8,1.189,0.8c0.692,1.186,1.816,0.843,2.258, @@ -147,43 +148,46 @@ if you are not using oidc but just oauth2 password flow set oidc to false`);retu 0.261 c1.482-1.004,2.132-0.796,2.132-0.796c0.423,1.068,0.157,1.857,0.077,2.054c0.497, 0.542,0.798,1.235,0.798,2.082 c0,2.981-1.814,3.637-3.543,3.829c0.279,0.24,0.527,0.713, 0.527,1.437c0,1.037-0.01,1.874-0.01,2.129 c0,0.208,0.14,0.449,0.534,0.373c3.081-1.028, - 5.302-3.935,5.302-7.362C15.76,3.906,12.285,0.431,7.999,0.431z`]],template:function(r,o){r&1&&(h(0,"a",0),Gt(),h(1,"svg",1),k(2,"path",2),p()())},dependencies:[ze,ti],encapsulation:2});let t=n;return t})();var u8="mat-badge-content",Wpe=(()=>{class t{static \u0275fac=function(i){return new(i||t)};static \u0275cmp=E({type:t,selectors:[["ng-component"]],decls:0,vars:0,template:function(i,r){},styles:[`.mat-badge{position:relative}.mat-badge.mat-badge{overflow:visible}.mat-badge-content{position:absolute;text-align:center;display:inline-block;transition:transform 200ms ease-in-out;transform:scale(0.6);overflow:hidden;white-space:nowrap;text-overflow:ellipsis;box-sizing:border-box;pointer-events:none;background-color:var(--mat-badge-background-color, var(--mat-sys-error));color:var(--mat-badge-text-color, var(--mat-sys-on-error));font-family:var(--mat-badge-text-font, var(--mat-sys-label-small-font));font-weight:var(--mat-badge-text-weight, var(--mat-sys-label-small-weight));border-radius:var(--mat-badge-container-shape, var(--mat-sys-corner-full))}.mat-badge-above .mat-badge-content{bottom:100%}.mat-badge-below .mat-badge-content{top:100%}.mat-badge-before .mat-badge-content{right:100%}[dir=rtl] .mat-badge-before .mat-badge-content{right:auto;left:100%}.mat-badge-after .mat-badge-content{left:100%}[dir=rtl] .mat-badge-after .mat-badge-content{left:auto;right:100%}@media(forced-colors: active){.mat-badge-content{outline:solid 1px;border-radius:0}}.mat-badge-disabled .mat-badge-content{background-color:var(--mat-badge-disabled-state-background-color, color-mix(in srgb, var(--mat-sys-error) 38%, transparent));color:var(--mat-badge-disabled-state-text-color, var(--mat-sys-on-error))}.mat-badge-hidden .mat-badge-content{display:none}.ng-animate-disabled .mat-badge-content,.mat-badge-content._mat-animation-noopable{transition:none}.mat-badge-content.mat-badge-active{transform:none}.mat-badge-small .mat-badge-content{width:var(--mat-badge-legacy-small-size-container-size, unset);height:var(--mat-badge-legacy-small-size-container-size, unset);min-width:var(--mat-badge-small-size-container-size, 6px);min-height:var(--mat-badge-small-size-container-size, 6px);line-height:var(--mat-badge-small-size-line-height, 6px);padding:var(--mat-badge-small-size-container-padding, 0);font-size:var(--mat-badge-small-size-text-size, 0);margin:var(--mat-badge-small-size-container-offset, -6px 0)}.mat-badge-small.mat-badge-overlap .mat-badge-content{margin:var(--mat-badge-small-size-container-overlap-offset, -6px)}.mat-badge-medium .mat-badge-content{width:var(--mat-badge-legacy-container-size, unset);height:var(--mat-badge-legacy-container-size, unset);min-width:var(--mat-badge-container-size, 16px);min-height:var(--mat-badge-container-size, 16px);line-height:var(--mat-badge-line-height, 16px);padding:var(--mat-badge-container-padding, 0 4px);font-size:var(--mat-badge-text-size, var(--mat-sys-label-small-size));margin:var(--mat-badge-container-offset, -12px 0)}.mat-badge-medium.mat-badge-overlap .mat-badge-content{margin:var(--mat-badge-container-overlap-offset, -12px)}.mat-badge-large .mat-badge-content{width:var(--mat-badge-legacy-large-size-container-size, unset);height:var(--mat-badge-legacy-large-size-container-size, unset);min-width:var(--mat-badge-large-size-container-size, 16px);min-height:var(--mat-badge-large-size-container-size, 16px);line-height:var(--mat-badge-large-size-line-height, 16px);padding:var(--mat-badge-large-size-container-padding, 0 4px);font-size:var(--mat-badge-large-size-text-size, var(--mat-sys-label-small-size));margin:var(--mat-badge-large-size-container-offset, -12px 0)}.mat-badge-large.mat-badge-overlap .mat-badge-content{margin:var(--mat-badge-large-size-container-overlap-offset, -12px)} -`],encapsulation:2,changeDetection:0})}return t})(),m8=(()=>{class t{_ngZone=u(ae);_elementRef=u(q);_ariaDescriber=u(Xm);_renderer=u(je);_animationsDisabled=Ye();_idGenerator=u(Ze);get color(){return this._color}set color(e){this._setColor(e),this._color=e}_color="primary";overlap=!0;disabled;position="above after";get content(){return this._content}set content(e){this._updateRenderedContent(e)}_content;get description(){return this._description}set description(e){this._updateDescription(e)}_description;size="medium";hidden;_badgeElement;_inlineBadgeDescription;_isInitialized=!1;_interactivityChecker=u(ac);_document=u(ge);constructor(){let e=u(ut);e.load(Wpe),e.load(Qr)}isAbove(){return this.position.indexOf("below")===-1}isAfter(){return this.position.indexOf("before")===-1}getBadgeElement(){return this._badgeElement}ngOnInit(){this._clearExistingBadges(),this.content&&!this._badgeElement&&(this._badgeElement=this._createBadgeElement(),this._updateRenderedContent(this.content)),this._isInitialized=!0}ngOnDestroy(){this._renderer.destroyNode&&(this._renderer.destroyNode(this._badgeElement),this._inlineBadgeDescription?.remove()),this._ariaDescriber.removeDescription(this._elementRef.nativeElement,this.description)}_isHostInteractive(){return this._interactivityChecker.isFocusable(this._elementRef.nativeElement,{ignoreVisibility:!0})}_createBadgeElement(){let e=this._renderer.createElement("span"),i="mat-badge-active";return e.setAttribute("id",this._idGenerator.getId("mat-badge-content-")),e.setAttribute("aria-hidden","true"),e.classList.add(u8),this._animationsDisabled&&e.classList.add("_mat-animation-noopable"),this._elementRef.nativeElement.appendChild(e),typeof requestAnimationFrame=="function"&&!this._animationsDisabled?this._ngZone.runOutsideAngular(()=>{requestAnimationFrame(()=>{e.classList.add(i)})}):e.classList.add(i),e}_updateRenderedContent(e){let i=`${e??""}`.trim();this._isInitialized&&i&&!this._badgeElement&&(this._badgeElement=this._createBadgeElement()),this._badgeElement&&(this._badgeElement.textContent=i),this._content=i}_updateDescription(e){this._ariaDescriber.removeDescription(this._elementRef.nativeElement,this.description),(!e||this._isHostInteractive())&&this._removeInlineDescription(),this._description=e,this._isHostInteractive()?this._ariaDescriber.describe(this._elementRef.nativeElement,e):this._updateInlineDescription()}_updateInlineDescription(){this._inlineBadgeDescription||(this._inlineBadgeDescription=this._document.createElement("span"),this._inlineBadgeDescription.classList.add("cdk-visually-hidden")),this._inlineBadgeDescription.textContent=this.description,this._badgeElement?.appendChild(this._inlineBadgeDescription)}_removeInlineDescription(){this._inlineBadgeDescription?.remove(),this._inlineBadgeDescription=void 0}_setColor(e){let i=this._elementRef.nativeElement.classList;i.remove(`mat-badge-${this._color}`),e&&i.add(`mat-badge-${e}`)}_clearExistingBadges(){let e=this._elementRef.nativeElement.querySelectorAll(`:scope > .${u8}`);for(let i of Array.from(e))i!==this._badgeElement&&i.remove()}static \u0275fac=function(i){return new(i||t)};static \u0275dir=F({type:t,selectors:[["","matBadge",""]],hostAttrs:[1,"mat-badge"],hostVars:20,hostBindings:function(i,r){i&2&&G("mat-badge-overlap",r.overlap)("mat-badge-above",r.isAbove())("mat-badge-below",!r.isAbove())("mat-badge-before",!r.isAfter())("mat-badge-after",r.isAfter())("mat-badge-small",r.size==="small")("mat-badge-medium",r.size==="medium")("mat-badge-large",r.size==="large")("mat-badge-hidden",r.hidden||!r.content)("mat-badge-disabled",r.disabled)},inputs:{color:[0,"matBadgeColor","color"],overlap:[2,"matBadgeOverlap","overlap",V],disabled:[2,"matBadgeDisabled","disabled",V],position:[0,"matBadgePosition","position"],content:[0,"matBadge","content"],description:[0,"matBadgeDescription","description"],size:[0,"matBadgeSize","size"],hidden:[2,"matBadgeHidden","hidden",V]}})}return t})(),h8=(()=>{class t{static \u0275fac=function(i){return new(i||t)};static \u0275mod=ee({type:t});static \u0275inj=J({imports:[ll,we,we]})}return t})();var Ha=(()=>{class t{get vertical(){return this._vertical}set vertical(e){this._vertical=Ai(e)}_vertical=!1;get inset(){return this._inset}set inset(e){this._inset=Ai(e)}_inset=!1;static \u0275fac=function(i){return new(i||t)};static \u0275cmp=E({type:t,selectors:[["mat-divider"]],hostAttrs:["role","separator",1,"mat-divider"],hostVars:7,hostBindings:function(i,r){i&2&&(X("aria-orientation",r.vertical?"vertical":"horizontal"),G("mat-divider-vertical",r.vertical)("mat-divider-horizontal",!r.vertical)("mat-divider-inset",r.inset))},inputs:{vertical:"vertical",inset:"inset"},decls:0,vars:0,template:function(i,r){},styles:[`.mat-divider{display:block;margin:0;border-top-style:solid;border-top-color:var(--mat-divider-color, var(--mat-sys-outline-variant));border-top-width:var(--mat-divider-width, 1px)}.mat-divider.mat-divider-vertical{border-top:0;border-right-style:solid;border-right-color:var(--mat-divider-color, var(--mat-sys-outline-variant));border-right-width:var(--mat-divider-width, 1px)}.mat-divider.mat-divider-inset{margin-left:80px}[dir=rtl] .mat-divider.mat-divider-inset{margin-left:auto;margin-right:80px} -`],encapsulation:2,changeDetection:0})}return t})(),sa=(()=>{class t{static \u0275fac=function(i){return new(i||t)};static \u0275mod=ee({type:t});static \u0275inj=J({imports:[we,we]})}return t})();var p8=["*"],f8=`.mdc-list{margin:0;padding:8px 0;list-style-type:none}.mdc-list:focus{outline:none}.mdc-list-item{display:flex;position:relative;justify-content:flex-start;overflow:hidden;padding:0;align-items:stretch;cursor:pointer;padding-left:16px;padding-right:16px;background-color:var(--mat-list-list-item-container-color, transparent);border-radius:var(--mat-list-list-item-container-shape, var(--mat-sys-corner-none))}.mdc-list-item.mdc-list-item--selected{background-color:var(--mat-list-list-item-selected-container-color)}.mdc-list-item:focus{outline:0}.mdc-list-item.mdc-list-item--disabled{cursor:auto}.mdc-list-item.mdc-list-item--with-one-line{height:var(--mat-list-list-item-one-line-container-height, 48px)}.mdc-list-item.mdc-list-item--with-one-line .mdc-list-item__start{align-self:center;margin-top:0}.mdc-list-item.mdc-list-item--with-one-line .mdc-list-item__end{align-self:center;margin-top:0}.mdc-list-item.mdc-list-item--with-two-lines{height:var(--mat-list-list-item-two-line-container-height, 64px)}.mdc-list-item.mdc-list-item--with-two-lines .mdc-list-item__start{align-self:flex-start;margin-top:16px}.mdc-list-item.mdc-list-item--with-two-lines .mdc-list-item__end{align-self:center;margin-top:0}.mdc-list-item.mdc-list-item--with-three-lines{height:var(--mat-list-list-item-three-line-container-height, 88px)}.mdc-list-item.mdc-list-item--with-three-lines .mdc-list-item__start{align-self:flex-start;margin-top:16px}.mdc-list-item.mdc-list-item--with-three-lines .mdc-list-item__end{align-self:flex-start;margin-top:16px}.mdc-list-item.mdc-list-item--selected::before,.mdc-list-item.mdc-list-item--selected:focus::before,.mdc-list-item:not(.mdc-list-item--selected):focus::before{position:absolute;box-sizing:border-box;width:100%;height:100%;top:0;left:0;content:"";pointer-events:none}a.mdc-list-item{color:inherit;text-decoration:none}.mdc-list-item__start{fill:currentColor;flex-shrink:0;pointer-events:none}.mdc-list-item--with-leading-icon .mdc-list-item__start{color:var(--mat-list-list-item-leading-icon-color, var(--mat-sys-on-surface-variant));width:var(--mat-list-list-item-leading-icon-size, 24px);height:var(--mat-list-list-item-leading-icon-size, 24px);margin-left:16px;margin-right:32px}[dir=rtl] .mdc-list-item--with-leading-icon .mdc-list-item__start{margin-left:32px;margin-right:16px}.mdc-list-item--with-leading-icon:hover .mdc-list-item__start{color:var(--mat-list-list-item-hover-leading-icon-color)}.mdc-list-item--with-leading-avatar .mdc-list-item__start{width:var(--mat-list-list-item-leading-avatar-size, 40px);height:var(--mat-list-list-item-leading-avatar-size, 40px);margin-left:16px;margin-right:16px;border-radius:50%}.mdc-list-item--with-leading-avatar .mdc-list-item__start,[dir=rtl] .mdc-list-item--with-leading-avatar .mdc-list-item__start{margin-left:16px;margin-right:16px;border-radius:50%}.mdc-list-item__end{flex-shrink:0;pointer-events:none}.mdc-list-item--with-trailing-meta .mdc-list-item__end{font-family:var(--mat-list-list-item-trailing-supporting-text-font, var(--mat-sys-label-small-font));line-height:var(--mat-list-list-item-trailing-supporting-text-line-height, var(--mat-sys-label-small-line-height));font-size:var(--mat-list-list-item-trailing-supporting-text-size, var(--mat-sys-label-small-size));font-weight:var(--mat-list-list-item-trailing-supporting-text-weight, var(--mat-sys-label-small-weight));letter-spacing:var(--mat-list-list-item-trailing-supporting-text-tracking, var(--mat-sys-label-small-tracking))}.mdc-list-item--with-trailing-icon .mdc-list-item__end{color:var(--mat-list-list-item-trailing-icon-color, var(--mat-sys-on-surface-variant));width:var(--mat-list-list-item-trailing-icon-size, 24px);height:var(--mat-list-list-item-trailing-icon-size, 24px)}.mdc-list-item--with-trailing-icon:hover .mdc-list-item__end{color:var(--mat-list-list-item-hover-trailing-icon-color)}.mdc-list-item.mdc-list-item--with-trailing-meta .mdc-list-item__end{color:var(--mat-list-list-item-trailing-supporting-text-color, var(--mat-sys-on-surface-variant))}.mdc-list-item--selected.mdc-list-item--with-trailing-icon .mdc-list-item__end{color:var(--mat-list-list-item-selected-trailing-icon-color, var(--mat-sys-primary))}.mdc-list-item__content{text-overflow:ellipsis;white-space:nowrap;overflow:hidden;align-self:center;flex:1;pointer-events:none}.mdc-list-item--with-two-lines .mdc-list-item__content,.mdc-list-item--with-three-lines .mdc-list-item__content{align-self:stretch}.mdc-list-item__primary-text{text-overflow:ellipsis;white-space:nowrap;overflow:hidden;color:var(--mat-list-list-item-label-text-color, var(--mat-sys-on-surface));font-family:var(--mat-list-list-item-label-text-font, var(--mat-sys-body-large-font));line-height:var(--mat-list-list-item-label-text-line-height, var(--mat-sys-body-large-line-height));font-size:var(--mat-list-list-item-label-text-size, var(--mat-sys-body-large-size));font-weight:var(--mat-list-list-item-label-text-weight, var(--mat-sys-body-large-weight));letter-spacing:var(--mat-list-list-item-label-text-tracking, var(--mat-sys-body-large-tracking))}.mdc-list-item:hover .mdc-list-item__primary-text{color:var(--mat-list-list-item-hover-label-text-color, var(--mat-sys-on-surface))}.mdc-list-item:focus .mdc-list-item__primary-text{color:var(--mat-list-list-item-focus-label-text-color, var(--mat-sys-on-surface))}.mdc-list-item--with-two-lines .mdc-list-item__primary-text,.mdc-list-item--with-three-lines .mdc-list-item__primary-text{display:block;margin-top:0;line-height:normal;margin-bottom:-20px}.mdc-list-item--with-two-lines .mdc-list-item__primary-text::before,.mdc-list-item--with-three-lines .mdc-list-item__primary-text::before{display:inline-block;width:0;height:28px;content:"";vertical-align:0}.mdc-list-item--with-two-lines .mdc-list-item__primary-text::after,.mdc-list-item--with-three-lines .mdc-list-item__primary-text::after{display:inline-block;width:0;height:20px;content:"";vertical-align:-20px}.mdc-list-item__secondary-text{text-overflow:ellipsis;white-space:nowrap;overflow:hidden;display:block;margin-top:0;color:var(--mat-list-list-item-supporting-text-color, var(--mat-sys-on-surface-variant));font-family:var(--mat-list-list-item-supporting-text-font, var(--mat-sys-body-medium-font));line-height:var(--mat-list-list-item-supporting-text-line-height, var(--mat-sys-body-medium-line-height));font-size:var(--mat-list-list-item-supporting-text-size, var(--mat-sys-body-medium-size));font-weight:var(--mat-list-list-item-supporting-text-weight, var(--mat-sys-body-medium-weight));letter-spacing:var(--mat-list-list-item-supporting-text-tracking, var(--mat-sys-body-medium-tracking))}.mdc-list-item__secondary-text::before{display:inline-block;width:0;height:20px;content:"";vertical-align:0}.mdc-list-item--with-three-lines .mdc-list-item__secondary-text{white-space:normal;line-height:20px}.mdc-list-item--with-overline .mdc-list-item__secondary-text{white-space:nowrap;line-height:auto}.mdc-list-item--with-leading-radio.mdc-list-item,.mdc-list-item--with-leading-checkbox.mdc-list-item,.mdc-list-item--with-leading-icon.mdc-list-item,.mdc-list-item--with-leading-avatar.mdc-list-item{padding-left:0;padding-right:16px}[dir=rtl] .mdc-list-item--with-leading-radio.mdc-list-item,[dir=rtl] .mdc-list-item--with-leading-checkbox.mdc-list-item,[dir=rtl] .mdc-list-item--with-leading-icon.mdc-list-item,[dir=rtl] .mdc-list-item--with-leading-avatar.mdc-list-item{padding-left:16px;padding-right:0}.mdc-list-item--with-leading-radio.mdc-list-item--with-two-lines .mdc-list-item__primary-text,.mdc-list-item--with-leading-checkbox.mdc-list-item--with-two-lines .mdc-list-item__primary-text,.mdc-list-item--with-leading-icon.mdc-list-item--with-two-lines .mdc-list-item__primary-text,.mdc-list-item--with-leading-avatar.mdc-list-item--with-two-lines .mdc-list-item__primary-text{display:block;margin-top:0;line-height:normal;margin-bottom:-20px}.mdc-list-item--with-leading-radio.mdc-list-item--with-two-lines .mdc-list-item__primary-text::before,.mdc-list-item--with-leading-checkbox.mdc-list-item--with-two-lines .mdc-list-item__primary-text::before,.mdc-list-item--with-leading-icon.mdc-list-item--with-two-lines .mdc-list-item__primary-text::before,.mdc-list-item--with-leading-avatar.mdc-list-item--with-two-lines .mdc-list-item__primary-text::before{display:inline-block;width:0;height:32px;content:"";vertical-align:0}.mdc-list-item--with-leading-radio.mdc-list-item--with-two-lines .mdc-list-item__primary-text::after,.mdc-list-item--with-leading-checkbox.mdc-list-item--with-two-lines .mdc-list-item__primary-text::after,.mdc-list-item--with-leading-icon.mdc-list-item--with-two-lines .mdc-list-item__primary-text::after,.mdc-list-item--with-leading-avatar.mdc-list-item--with-two-lines .mdc-list-item__primary-text::after{display:inline-block;width:0;height:20px;content:"";vertical-align:-20px}.mdc-list-item--with-leading-radio.mdc-list-item--with-two-lines.mdc-list-item--with-trailing-meta .mdc-list-item__end,.mdc-list-item--with-leading-checkbox.mdc-list-item--with-two-lines.mdc-list-item--with-trailing-meta .mdc-list-item__end,.mdc-list-item--with-leading-icon.mdc-list-item--with-two-lines.mdc-list-item--with-trailing-meta .mdc-list-item__end,.mdc-list-item--with-leading-avatar.mdc-list-item--with-two-lines.mdc-list-item--with-trailing-meta .mdc-list-item__end{display:block;margin-top:0;line-height:normal}.mdc-list-item--with-leading-radio.mdc-list-item--with-two-lines.mdc-list-item--with-trailing-meta .mdc-list-item__end::before,.mdc-list-item--with-leading-checkbox.mdc-list-item--with-two-lines.mdc-list-item--with-trailing-meta .mdc-list-item__end::before,.mdc-list-item--with-leading-icon.mdc-list-item--with-two-lines.mdc-list-item--with-trailing-meta .mdc-list-item__end::before,.mdc-list-item--with-leading-avatar.mdc-list-item--with-two-lines.mdc-list-item--with-trailing-meta .mdc-list-item__end::before{display:inline-block;width:0;height:32px;content:"";vertical-align:0}.mdc-list-item--with-trailing-icon.mdc-list-item,[dir=rtl] .mdc-list-item--with-trailing-icon.mdc-list-item{padding-left:0;padding-right:0}.mdc-list-item--with-trailing-icon .mdc-list-item__end{margin-left:16px;margin-right:16px}.mdc-list-item--with-trailing-meta.mdc-list-item{padding-left:16px;padding-right:0}[dir=rtl] .mdc-list-item--with-trailing-meta.mdc-list-item{padding-left:0;padding-right:16px}.mdc-list-item--with-trailing-meta .mdc-list-item__end{-webkit-user-select:none;user-select:none;margin-left:28px;margin-right:16px}[dir=rtl] .mdc-list-item--with-trailing-meta .mdc-list-item__end{margin-left:16px;margin-right:28px}.mdc-list-item--with-trailing-meta.mdc-list-item--with-three-lines .mdc-list-item__end,.mdc-list-item--with-trailing-meta.mdc-list-item--with-two-lines .mdc-list-item__end{display:block;line-height:normal;align-self:flex-start;margin-top:0}.mdc-list-item--with-trailing-meta.mdc-list-item--with-three-lines .mdc-list-item__end::before,.mdc-list-item--with-trailing-meta.mdc-list-item--with-two-lines .mdc-list-item__end::before{display:inline-block;width:0;height:28px;content:"";vertical-align:0}.mdc-list-item--with-leading-radio .mdc-list-item__start,.mdc-list-item--with-leading-checkbox .mdc-list-item__start{margin-left:8px;margin-right:24px}[dir=rtl] .mdc-list-item--with-leading-radio .mdc-list-item__start,[dir=rtl] .mdc-list-item--with-leading-checkbox .mdc-list-item__start{margin-left:24px;margin-right:8px}.mdc-list-item--with-leading-radio.mdc-list-item--with-two-lines .mdc-list-item__start,.mdc-list-item--with-leading-checkbox.mdc-list-item--with-two-lines .mdc-list-item__start{align-self:flex-start;margin-top:8px}.mdc-list-item--with-trailing-radio.mdc-list-item,.mdc-list-item--with-trailing-checkbox.mdc-list-item{padding-left:16px;padding-right:0}[dir=rtl] .mdc-list-item--with-trailing-radio.mdc-list-item,[dir=rtl] .mdc-list-item--with-trailing-checkbox.mdc-list-item{padding-left:0;padding-right:16px}.mdc-list-item--with-trailing-radio.mdc-list-item--with-leading-icon,.mdc-list-item--with-trailing-radio.mdc-list-item--with-leading-avatar,.mdc-list-item--with-trailing-checkbox.mdc-list-item--with-leading-icon,.mdc-list-item--with-trailing-checkbox.mdc-list-item--with-leading-avatar{padding-left:0}[dir=rtl] .mdc-list-item--with-trailing-radio.mdc-list-item--with-leading-icon,[dir=rtl] .mdc-list-item--with-trailing-radio.mdc-list-item--with-leading-avatar,[dir=rtl] .mdc-list-item--with-trailing-checkbox.mdc-list-item--with-leading-icon,[dir=rtl] .mdc-list-item--with-trailing-checkbox.mdc-list-item--with-leading-avatar{padding-right:0}.mdc-list-item--with-trailing-radio .mdc-list-item__end,.mdc-list-item--with-trailing-checkbox .mdc-list-item__end{margin-left:24px;margin-right:8px}[dir=rtl] .mdc-list-item--with-trailing-radio .mdc-list-item__end,[dir=rtl] .mdc-list-item--with-trailing-checkbox .mdc-list-item__end{margin-left:8px;margin-right:24px}.mdc-list-item--with-trailing-radio.mdc-list-item--with-three-lines .mdc-list-item__end,.mdc-list-item--with-trailing-checkbox.mdc-list-item--with-three-lines .mdc-list-item__end{align-self:flex-start;margin-top:8px}.mdc-list-group__subheader{margin:.75rem 16px}.mdc-list-item--disabled .mdc-list-item__start,.mdc-list-item--disabled .mdc-list-item__content,.mdc-list-item--disabled .mdc-list-item__end{opacity:1}.mdc-list-item--disabled .mdc-list-item__primary-text,.mdc-list-item--disabled .mdc-list-item__secondary-text{opacity:var(--mat-list-list-item-disabled-label-text-opacity, 0.3)}.mdc-list-item--disabled.mdc-list-item--with-leading-icon .mdc-list-item__start{color:var(--mat-list-list-item-disabled-leading-icon-color, var(--mat-sys-on-surface));opacity:var(--mat-list-list-item-disabled-leading-icon-opacity, 0.38)}.mdc-list-item--disabled.mdc-list-item--with-trailing-icon .mdc-list-item__end{color:var(--mat-list-list-item-disabled-trailing-icon-color, var(--mat-sys-on-surface));opacity:var(--mat-list-list-item-disabled-trailing-icon-opacity, 0.38)}.mat-mdc-list-item.mat-mdc-list-item-both-leading-and-trailing,[dir=rtl] .mat-mdc-list-item.mat-mdc-list-item-both-leading-and-trailing{padding-left:0;padding-right:0}.mdc-list-item.mdc-list-item--disabled .mdc-list-item__primary-text{color:var(--mat-list-list-item-disabled-label-text-color, var(--mat-sys-on-surface))}.mdc-list-item:hover::before{background-color:var(--mat-list-list-item-hover-state-layer-color, var(--mat-sys-on-surface));opacity:var(--mat-list-list-item-hover-state-layer-opacity, var(--mat-sys-hover-state-layer-opacity))}.mdc-list-item.mdc-list-item--disabled::before{background-color:var(--mat-list-list-item-disabled-state-layer-color, var(--mat-sys-on-surface));opacity:var(--mat-list-list-item-disabled-state-layer-opacity, var(--mat-sys-focus-state-layer-opacity))}.mdc-list-item:focus::before{background-color:var(--mat-list-list-item-focus-state-layer-color, var(--mat-sys-on-surface));opacity:var(--mat-list-list-item-focus-state-layer-opacity, var(--mat-sys-focus-state-layer-opacity))}.mdc-list-item--disabled .mdc-radio,.mdc-list-item--disabled .mdc-checkbox{opacity:var(--mat-list-list-item-disabled-label-text-opacity, 0.3)}.mdc-list-item--with-leading-avatar .mat-mdc-list-item-avatar{border-radius:var(--mat-list-list-item-leading-avatar-shape, var(--mat-sys-corner-full));background-color:var(--mat-list-list-item-leading-avatar-color, var(--mat-sys-primary-container))}.mat-mdc-list-item-icon{font-size:var(--mat-list-list-item-leading-icon-size, 24px)}@media(forced-colors: active){a.mdc-list-item--activated::after{content:"";position:absolute;top:50%;right:16px;transform:translateY(-50%);width:10px;height:0;border-bottom:solid 10px;border-radius:10px}a.mdc-list-item--activated [dir=rtl]::after{right:auto;left:16px}}.mat-mdc-list-base{display:block}.mat-mdc-list-base .mdc-list-item__start,.mat-mdc-list-base .mdc-list-item__end,.mat-mdc-list-base .mdc-list-item__content{pointer-events:auto}.mat-mdc-list-item,.mat-mdc-list-option{width:100%;box-sizing:border-box;-webkit-tap-highlight-color:rgba(0,0,0,0)}.mat-mdc-list-item:not(.mat-mdc-list-item-interactive),.mat-mdc-list-option:not(.mat-mdc-list-item-interactive){cursor:default}.mat-mdc-list-item .mat-divider-inset,.mat-mdc-list-option .mat-divider-inset{position:absolute;left:0;right:0;bottom:0}.mat-mdc-list-item .mat-mdc-list-item-avatar~.mat-divider-inset,.mat-mdc-list-option .mat-mdc-list-item-avatar~.mat-divider-inset{margin-left:72px}[dir=rtl] .mat-mdc-list-item .mat-mdc-list-item-avatar~.mat-divider-inset,[dir=rtl] .mat-mdc-list-option .mat-mdc-list-item-avatar~.mat-divider-inset{margin-right:72px}.mat-mdc-list-item-interactive::before{top:0;left:0;right:0;bottom:0;position:absolute;content:"";opacity:0;pointer-events:none;border-radius:inherit}.mat-mdc-list-item>.mat-focus-indicator{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none}.mat-mdc-list-item:focus>.mat-focus-indicator::before{content:""}.mat-mdc-list-item.mdc-list-item--with-three-lines .mat-mdc-list-item-line.mdc-list-item__secondary-text{white-space:nowrap;line-height:normal}.mat-mdc-list-item.mdc-list-item--with-three-lines .mat-mdc-list-item-unscoped-content.mdc-list-item__secondary-text{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2}mat-action-list button{background:none;color:inherit;border:none;font:inherit;outline:inherit;-webkit-tap-highlight-color:rgba(0,0,0,0);text-align:start}mat-action-list button::-moz-focus-inner{border:0}.mdc-list-item--with-leading-icon .mdc-list-item__start{margin-inline-start:var(--mat-list-list-item-leading-icon-start-space, 16px);margin-inline-end:var(--mat-list-list-item-leading-icon-end-space, 16px)}.mat-mdc-nav-list .mat-mdc-list-item{border-radius:var(--mat-list-active-indicator-shape, var(--mat-sys-corner-full));--mat-focus-indicator-border-radius: var(--mat-list-active-indicator-shape, var(--mat-sys-corner-full))}.mat-mdc-nav-list .mat-mdc-list-item.mdc-list-item--activated{background-color:var(--mat-list-active-indicator-color, var(--mat-sys-secondary-container))} -`,qpe=["unscopedContent"],Ype=["text"],Qpe=[[["","matListItemAvatar",""],["","matListItemIcon",""]],[["","matListItemTitle",""]],[["","matListItemLine",""]],"*",[["","matListItemMeta",""]],[["mat-divider"]]],Kpe=["[matListItemAvatar],[matListItemIcon]","[matListItemTitle]","[matListItemLine]","*","[matListItemMeta]","mat-divider"];var Zpe=new T("ListOption"),Dl=(()=>{class t{_elementRef=u(q);constructor(){}static \u0275fac=function(i){return new(i||t)};static \u0275dir=F({type:t,selectors:[["","matListItemTitle",""]],hostAttrs:[1,"mat-mdc-list-item-title","mdc-list-item__primary-text"]})}return t})(),Tu=(()=>{class t{_elementRef=u(q);constructor(){}static \u0275fac=function(i){return new(i||t)};static \u0275dir=F({type:t,selectors:[["","matListItemLine",""]],hostAttrs:[1,"mat-mdc-list-item-line","mdc-list-item__secondary-text"]})}return t})(),SI=(()=>{class t{static \u0275fac=function(i){return new(i||t)};static \u0275dir=F({type:t,selectors:[["","matListItemMeta",""]],hostAttrs:[1,"mat-mdc-list-item-meta","mdc-list-item__end"]})}return t})(),g8=(()=>{class t{_listOption=u(Zpe,{optional:!0});constructor(){}_isAlignedAtStart(){return!this._listOption||this._listOption?._getTogglePosition()==="after"}static \u0275fac=function(i){return new(i||t)};static \u0275dir=F({type:t,hostVars:4,hostBindings:function(i,r){i&2&&G("mdc-list-item__start",r._isAlignedAtStart())("mdc-list-item__end",!r._isAlignedAtStart())}})}return t})(),Xpe=(()=>{class t extends g8{static \u0275fac=(()=>{let e;return function(r){return(e||(e=fe(t)))(r||t)}})();static \u0275dir=F({type:t,selectors:[["","matListItemAvatar",""]],hostAttrs:[1,"mat-mdc-list-item-avatar"],features:[le]})}return t})(),f_=(()=>{class t extends g8{static \u0275fac=(()=>{let e;return function(r){return(e||(e=fe(t)))(r||t)}})();static \u0275dir=F({type:t,selectors:[["","matListItemIcon",""]],hostAttrs:[1,"mat-mdc-list-item-icon"],features:[le]})}return t})(),Jpe=new T("MAT_LIST_CONFIG"),p_=(()=>{class t{_isNonInteractive=!0;get disableRipple(){return this._disableRipple}set disableRipple(e){this._disableRipple=Ai(e)}_disableRipple=!1;get disabled(){return this._disabled()}set disabled(e){this._disabled.set(Ai(e))}_disabled=he(!1);_defaultOptions=u(Jpe,{optional:!0});static \u0275fac=function(i){return new(i||t)};static \u0275dir=F({type:t,hostVars:1,hostBindings:function(i,r){i&2&&X("aria-disabled",r.disabled)},inputs:{disableRipple:"disableRipple",disabled:"disabled"}})}return t})(),efe=(()=>{class t{_elementRef=u(q);_ngZone=u(ae);_listBase=u(p_,{optional:!0});_platform=u(qe);_hostElement;_isButtonElement;_noopAnimations=Ye();_avatars;_icons;set lines(e){this._explicitLines=Ln(e,null),this._updateItemLines(!1)}_explicitLines=null;get disableRipple(){return this.disabled||this._disableRipple||this._noopAnimations||!!this._listBase?.disableRipple}set disableRipple(e){this._disableRipple=Ai(e)}_disableRipple=!1;get disabled(){return this._disabled()||!!this._listBase?.disabled}set disabled(e){this._disabled.set(Ai(e))}_disabled=he(!1);_subscriptions=new ke;_rippleRenderer=null;_hasUnscopedTextContent=!1;rippleConfig;get rippleDisabled(){return this.disableRipple||!!this.rippleConfig.disabled}constructor(){u(ut).load(Di);let e=u(Cs,{optional:!0});this.rippleConfig=e||{},this._hostElement=this._elementRef.nativeElement,this._isButtonElement=this._hostElement.nodeName.toLowerCase()==="button",this._listBase&&!this._listBase._isNonInteractive&&this._initInteractiveListItem(),this._isButtonElement&&!this._hostElement.hasAttribute("type")&&this._hostElement.setAttribute("type","button")}ngAfterViewInit(){this._monitorProjectedLinesAndTitle(),this._updateItemLines(!0)}ngOnDestroy(){this._subscriptions.unsubscribe(),this._rippleRenderer!==null&&this._rippleRenderer._removeTriggerEvents()}_hasIconOrAvatar(){return!!(this._avatars.length||this._icons.length)}_initInteractiveListItem(){this._hostElement.classList.add("mat-mdc-list-item-interactive"),this._rippleRenderer=new lc(this,this._ngZone,this._hostElement,this._platform,u(de)),this._rippleRenderer.setupTriggerEvents(this._hostElement)}_monitorProjectedLinesAndTitle(){this._ngZone.runOutsideAngular(()=>{this._subscriptions.add(Je(this._lines.changes,this._titles.changes).subscribe(()=>this._updateItemLines(!1)))})}_updateItemLines(e){if(!this._lines||!this._titles||!this._unscopedContent)return;e&&this._checkDomForUnscopedTextContent();let i=this._explicitLines??this._inferLinesFromContent(),r=this._unscopedContent.nativeElement;if(this._hostElement.classList.toggle("mat-mdc-list-item-single-line",i<=1),this._hostElement.classList.toggle("mdc-list-item--with-one-line",i<=1),this._hostElement.classList.toggle("mdc-list-item--with-two-lines",i===2),this._hostElement.classList.toggle("mdc-list-item--with-three-lines",i===3),this._hasUnscopedTextContent){let o=this._titles.length===0&&i===1;r.classList.toggle("mdc-list-item__primary-text",o),r.classList.toggle("mdc-list-item__secondary-text",!o)}else r.classList.remove("mdc-list-item__primary-text"),r.classList.remove("mdc-list-item__secondary-text")}_inferLinesFromContent(){let e=this._titles.length+this._lines.length;return this._hasUnscopedTextContent&&(e+=1),e}_checkDomForUnscopedTextContent(){this._hasUnscopedTextContent=Array.from(this._unscopedContent.nativeElement.childNodes).filter(e=>e.nodeType!==e.COMMENT_NODE).some(e=>!!(e.textContent&&e.textContent.trim()))}static \u0275fac=function(i){return new(i||t)};static \u0275dir=F({type:t,contentQueries:function(i,r,o){if(i&1&&(xe(o,Xpe,4),xe(o,f_,4)),i&2){let a;B(a=j())&&(r._avatars=a),B(a=j())&&(r._icons=a)}},hostVars:4,hostBindings:function(i,r){i&2&&(X("aria-disabled",r.disabled)("disabled",r._isButtonElement&&r.disabled||null),G("mdc-list-item--disabled",r.disabled))},inputs:{lines:"lines",disableRipple:"disableRipple",disabled:"disabled"}})}return t})();var Fs=(()=>{class t extends p_{static \u0275fac=(()=>{let e;return function(r){return(e||(e=fe(t)))(r||t)}})();static \u0275cmp=E({type:t,selectors:[["mat-list"]],hostAttrs:[1,"mat-mdc-list","mat-mdc-list-base","mdc-list"],exportAs:["matList"],features:[Ce([{provide:p_,useExisting:t}]),le],ngContentSelectors:p8,decls:1,vars:0,template:function(i,r){i&1&&(Me(),oe(0))},styles:[f8],encapsulation:2,changeDetection:0})}return t})(),la=(()=>{class t extends efe{_lines;_titles;_meta;_unscopedContent;_itemText;get activated(){return this._activated}set activated(e){this._activated=Ai(e)}_activated=!1;_getAriaCurrent(){return this._hostElement.nodeName==="A"&&this._activated?"page":null}_hasBothLeadingAndTrailing(){return this._meta.length!==0&&(this._avatars.length!==0||this._icons.length!==0)}static \u0275fac=(()=>{let e;return function(r){return(e||(e=fe(t)))(r||t)}})();static \u0275cmp=E({type:t,selectors:[["mat-list-item"],["a","mat-list-item",""],["button","mat-list-item",""]],contentQueries:function(i,r,o){if(i&1&&(xe(o,Tu,5),xe(o,Dl,5),xe(o,SI,5)),i&2){let a;B(a=j())&&(r._lines=a),B(a=j())&&(r._titles=a),B(a=j())&&(r._meta=a)}},viewQuery:function(i,r){if(i&1&&(ie(qpe,5),ie(Ype,5)),i&2){let o;B(o=j())&&(r._unscopedContent=o.first),B(o=j())&&(r._itemText=o.first)}},hostAttrs:[1,"mat-mdc-list-item","mdc-list-item"],hostVars:13,hostBindings:function(i,r){i&2&&(X("aria-current",r._getAriaCurrent()),G("mdc-list-item--activated",r.activated)("mdc-list-item--with-leading-avatar",r._avatars.length!==0)("mdc-list-item--with-leading-icon",r._icons.length!==0)("mdc-list-item--with-trailing-meta",r._meta.length!==0)("mat-mdc-list-item-both-leading-and-trailing",r._hasBothLeadingAndTrailing())("_mat-animation-noopable",r._noopAnimations))},inputs:{activated:"activated"},exportAs:["matListItem"],features:[le],ngContentSelectors:Kpe,decls:10,vars:0,consts:[["unscopedContent",""],[1,"mdc-list-item__content"],[1,"mat-mdc-list-item-unscoped-content",3,"cdkObserveContent"],[1,"mat-focus-indicator"]],template:function(i,r){if(i&1){let o=Y();Me(Qpe),oe(0),h(1,"span",1),oe(2,1),oe(3,2),h(4,"span",2,0),S("cdkObserveContent",function(){return I(o),A(r._updateItemLines(!0))}),oe(6,3),p()(),oe(7,4),oe(8,5),k(9,"div",3)}},dependencies:[Wf],encapsulation:2,changeDetection:0})}return t})();var _8=(()=>{class t extends p_{_isNonInteractive=!1;static \u0275fac=(()=>{let e;return function(r){return(e||(e=fe(t)))(r||t)}})();static \u0275cmp=E({type:t,selectors:[["mat-nav-list"]],hostAttrs:["role","navigation",1,"mat-mdc-nav-list","mat-mdc-list-base","mdc-list"],exportAs:["matNavList"],features:[Ce([{provide:p_,useExisting:t}]),le],ngContentSelectors:p8,decls:1,vars:0,template:function(i,r){i&1&&(Me(),oe(0))},styles:[f8],encapsulation:2,changeDetection:0})}return t})();var ca=(()=>{class t{static \u0275fac=function(i){return new(i||t)};static \u0275mod=ee({type:t});static \u0275inj=J({imports:[Ym,we,yo,Q0,sa]})}return t})();var tfe=["mat-menu-item",""],ife=[[["mat-icon"],["","matMenuItemIcon",""]],"*"],nfe=["mat-icon, [matMenuItemIcon]","*"];function rfe(t,n){t&1&&(Gt(),h(0,"svg",2),k(1,"polygon",3),p())}var ofe=["*"];function afe(t,n){if(t&1){let e=Y();ft(0,"div",0),kv("click",function(){I(e);let r=C();return A(r.closed.emit("click"))})("animationstart",function(r){I(e);let o=C();return A(o._onAnimationStart(r.animationName))})("animationend",function(r){I(e);let o=C();return A(o._onAnimationDone(r.animationName))})("animationcancel",function(r){I(e);let o=C();return A(o._onAnimationDone(r.animationName))}),ft(1,"div",1),oe(2),vt()()}if(t&2){let e=C();it(e._classList),G("mat-menu-panel-animations-disabled",e._animationsDisabled)("mat-menu-panel-exit-animation",e._panelAnimationState==="void")("mat-menu-panel-animating",e._isAnimating()),si("id",e.panelId),X("aria-label",e.ariaLabel||null)("aria-labelledby",e.ariaLabelledby||null)("aria-describedby",e.ariaDescribedby||null)}}var II=new T("MAT_MENU_PANEL"),El=(()=>{class t{_elementRef=u(q);_document=u(ge);_focusMonitor=u(Yt);_parentMenu=u(II,{optional:!0});_changeDetectorRef=u(ye);role="menuitem";disabled=!1;disableRipple=!1;_hovered=new z;_focused=new z;_highlighted=!1;_triggersSubmenu=!1;constructor(){u(ut).load(Di),this._parentMenu?.addItem?.(this)}focus(e,i){this._focusMonitor&&e?this._focusMonitor.focusVia(this._getHostElement(),e,i):this._getHostElement().focus(i),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),i=e.querySelectorAll("mat-icon, .material-icons");for(let r=0;r{class t{_elementRef=u(q);_changeDetectorRef=u(ye);_injector=u(de);_keyManager;_xPosition;_yPosition;_firstItemFocusRef;_exitFallbackTimeout;_animationsDisabled=Ye();_allItems;_directDescendantItems=new pr;_classList={};_panelAnimationState="void";_animationDone=new z;_isAnimating=he(!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;hasBackdrop;set panelClass(e){let i=this._previousPanelClass,r=M({},this._classList);i&&i.length&&i.split(" ").forEach(o=>{r[o]=!1}),this._previousPanelClass=e,e&&e.length&&(e.split(" ").forEach(o=>{r[o]=!0}),this._elementRef.nativeElement.className=""),this._classList=r}_previousPanelClass;get classList(){return this.panelClass}set classList(e){this.panelClass=e}closed=new U;close=this.closed;panelId=u(Ze).getId("mat-menu-panel-");constructor(){let e=u(lfe);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 bs(this._directDescendantItems).withWrap().withTypeAhead().withHomeAndEnd(),this._keyManager.tabOut.subscribe(()=>this.closed.emit("tab")),this._directDescendantItems.changes.pipe(He(this._directDescendantItems),$e(e=>Je(...e.map(i=>i._focused)))).subscribe(e=>this._keyManager.updateActiveItem(e)),this._directDescendantItems.changes.subscribe(e=>{let i=this._keyManager;if(this._panelAnimationState==="enter"&&i.activeItem?._hasFocus()){let r=e.toArray(),o=Math.max(0,Math.min(r.length-1,i.activeItemIndex||0));r[o]&&!r[o].disabled?i.setActiveItem(o):i.setNextItemActive()}})}ngOnDestroy(){this._keyManager?.destroy(),this._directDescendantItems.destroy(),this.closed.complete(),this._firstItemFocusRef?.destroy(),clearTimeout(this._exitFallbackTimeout)}_hovered(){return this._directDescendantItems.changes.pipe(He(this._directDescendantItems),$e(i=>Je(...i.map(r=>r._hovered))))}addItem(e){}removeItem(e){}_handleKeydown(e){let i=e.keyCode,r=this._keyManager;switch(i){case 27:Ft(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:(i===38||i===40)&&r.setFocusOrigin("keyboard"),r.onKeydown(e);return}}focusFirstItem(e="program"){this._firstItemFocusRef?.destroy(),this._firstItemFocusRef=pt(()=>{let i=this._resolvePanel();if(!i||!i.contains(document.activeElement)){let r=this._keyManager;r.setFocusOrigin(e).setFirstItemActive(),!r.activeItem&&i&&i.focus()}},{injector:this._injector})}resetActiveItem(){this._keyManager.setActiveItem(-1)}setElevation(e){}setPositionClasses(e=this.xPosition,i=this.yPosition){this._classList=De(M({},this._classList),{"mat-menu-before":e==="before","mat-menu-after":e==="after","mat-menu-above":i==="above","mat-menu-below":i==="below"}),this._changeDetectorRef.markForCheck()}_onAnimationDone(e){let i=e===JC;(i||e===TI)&&(i&&(clearTimeout(this._exitFallbackTimeout),this._exitFallbackTimeout=void 0),this._animationDone.next(i?"void":"enter"),this._isAnimating.set(!1))}_onAnimationStart(e){(e===TI||e===JC)&&this._isAnimating.set(!0)}_setIsOpen(e){if(this._panelAnimationState=e?"enter":"void",e){if(this._keyManager.activeItemIndex===0){let i=this._resolvePanel();i&&(i.scrollTop=0)}}else this._animationsDisabled||(this._exitFallbackTimeout=setTimeout(()=>this._onAnimationDone(JC),200));this._animationsDisabled&&setTimeout(()=>{this._onAnimationDone(e?TI:JC)}),this._changeDetectorRef.markForCheck()}_updateDirectDescendants(){this._allItems.changes.pipe(He(this._allItems)).subscribe(e=>{this._directDescendantItems.reset(e.filter(i=>i._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(i){return new(i||t)};static \u0275cmp=E({type:t,selectors:[["mat-menu"]],contentQueries:function(i,r,o){if(i&1&&(xe(o,sfe,5),xe(o,El,5),xe(o,El,4)),i&2){let a;B(a=j())&&(r.lazyContent=a.first),B(a=j())&&(r._allItems=a),B(a=j())&&(r.items=a)}},viewQuery:function(i,r){if(i&1&&ie(te,5),i&2){let o;B(o=j())&&(r.templateRef=o.first)}},hostVars:3,hostBindings:function(i,r){i&2&&X("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",V],hasBackdrop:[2,"hasBackdrop","hasBackdrop",e=>e==null?null:V(e)],panelClass:[0,"class","panelClass"],classList:"classList"},outputs:{closed:"closed",close:"close"},exportAs:["matMenu"],features:[Ce([{provide:II,useExisting:t}])],ngContentSelectors:ofe,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(i,r){i&1&&(Me(),xa(0,afe,3,12,"ng-template"))},styles:[`mat-menu{display:none}.mat-mdc-menu-content{margin:0;padding:8px 0;outline:0}.mat-mdc-menu-content,.mat-mdc-menu-content .mat-mdc-menu-item .mat-mdc-menu-item-text{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;flex:1;white-space:normal;font-family:var(--mat-menu-item-label-text-font, var(--mat-sys-label-large-font));line-height:var(--mat-menu-item-label-text-line-height, var(--mat-sys-label-large-line-height));font-size:var(--mat-menu-item-label-text-size, var(--mat-sys-label-large-size));letter-spacing:var(--mat-menu-item-label-text-tracking, var(--mat-sys-label-large-tracking));font-weight:var(--mat-menu-item-label-text-weight, var(--mat-sys-label-large-weight))}@keyframes _mat-menu-enter{from{opacity:0;transform:scale(0.8)}to{opacity:1;transform:none}}@keyframes _mat-menu-exit{from{opacity:1}to{opacity:0}}.mat-mdc-menu-panel{min-width:112px;max-width:280px;overflow:auto;box-sizing:border-box;outline:0;animation:_mat-menu-enter 120ms cubic-bezier(0, 0, 0.2, 1);border-radius:var(--mat-menu-container-shape, var(--mat-sys-corner-extra-small));background-color:var(--mat-menu-container-color, var(--mat-sys-surface-container));box-shadow:var(--mat-menu-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));will-change:transform,opacity}.mat-mdc-menu-panel.mat-menu-panel-exit-animation{animation:_mat-menu-exit 100ms 25ms linear forwards}.mat-mdc-menu-panel.mat-menu-panel-animations-disabled{animation:none}.mat-mdc-menu-panel.mat-menu-panel-animating{pointer-events:none}.mat-mdc-menu-panel.mat-menu-panel-animating:has(.mat-mdc-menu-content:empty){display:none}@media(forced-colors: active){.mat-mdc-menu-panel{outline:solid 1px}}.mat-mdc-menu-panel .mat-divider{color:var(--mat-menu-divider-color, var(--mat-sys-surface-variant));margin-bottom:var(--mat-menu-divider-bottom-spacing, 8px);margin-top:var(--mat-menu-divider-top-spacing, 8px)}.mat-mdc-menu-item{display:flex;position:relative;align-items:center;justify-content:flex-start;overflow:hidden;padding:0;cursor:pointer;width:100%;text-align:left;box-sizing:border-box;color:inherit;font-size:inherit;background:none;text-decoration:none;margin:0;min-height:48px;padding-left:var(--mat-menu-item-leading-spacing, 12px);padding-right:var(--mat-menu-item-trailing-spacing, 12px);-webkit-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:rgba(0,0,0,0)}.mat-mdc-menu-item::-moz-focus-inner{border:0}[dir=rtl] .mat-mdc-menu-item{padding-left:var(--mat-menu-item-trailing-spacing, 12px);padding-right:var(--mat-menu-item-leading-spacing, 12px)}.mat-mdc-menu-item:has(.material-icons,mat-icon,[matButtonIcon]){padding-left:var(--mat-menu-item-with-icon-leading-spacing, 12px);padding-right:var(--mat-menu-item-with-icon-trailing-spacing, 12px)}[dir=rtl] .mat-mdc-menu-item:has(.material-icons,mat-icon,[matButtonIcon]){padding-left:var(--mat-menu-item-with-icon-trailing-spacing, 12px);padding-right:var(--mat-menu-item-with-icon-leading-spacing, 12px)}.mat-mdc-menu-item,.mat-mdc-menu-item:visited,.mat-mdc-menu-item:link{color:var(--mat-menu-item-label-text-color, var(--mat-sys-on-surface))}.mat-mdc-menu-item .mat-icon-no-color,.mat-mdc-menu-item .mat-mdc-menu-submenu-icon{color:var(--mat-menu-item-icon-color, var(--mat-sys-on-surface-variant))}.mat-mdc-menu-item[disabled]{cursor:default;opacity:.38}.mat-mdc-menu-item[disabled]::after{display:block;position:absolute;content:"";top:0;left:0;bottom:0;right:0}.mat-mdc-menu-item:focus{outline:0}.mat-mdc-menu-item .mat-icon{flex-shrink:0;margin-right:var(--mat-menu-item-spacing, 12px);height:var(--mat-menu-item-icon-size, 24px);width:var(--mat-menu-item-icon-size, 24px)}[dir=rtl] .mat-mdc-menu-item{text-align:right}[dir=rtl] .mat-mdc-menu-item .mat-icon{margin-right:0;margin-left:var(--mat-menu-item-spacing, 12px)}.mat-mdc-menu-item:not([disabled]):hover{background-color:var(--mat-menu-item-hover-state-layer-color, color-mix(in srgb, var(--mat-sys-on-surface) calc(var(--mat-sys-hover-state-layer-opacity) * 100%), transparent))}.mat-mdc-menu-item:not([disabled]).cdk-program-focused,.mat-mdc-menu-item:not([disabled]).cdk-keyboard-focused,.mat-mdc-menu-item:not([disabled]).mat-mdc-menu-item-highlighted{background-color:var(--mat-menu-item-focus-state-layer-color, color-mix(in srgb, var(--mat-sys-on-surface) calc(var(--mat-sys-focus-state-layer-opacity) * 100%), transparent))}@media(forced-colors: active){.mat-mdc-menu-item{margin-top:1px}}.mat-mdc-menu-submenu-icon{width:var(--mat-menu-item-icon-size, 24px);height:10px;fill:currentColor;padding-left:var(--mat-menu-item-spacing, 12px)}[dir=rtl] .mat-mdc-menu-submenu-icon{padding-right:var(--mat-menu-item-spacing, 12px);padding-left:0}[dir=rtl] .mat-mdc-menu-submenu-icon polygon{transform:scaleX(-1);transform-origin:center}@media(forced-colors: active){.mat-mdc-menu-submenu-icon{fill:CanvasText}}.mat-mdc-menu-item .mat-mdc-menu-ripple{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none} -`],encapsulation:2,changeDetection:0})}return t})(),b8=new T("mat-menu-scroll-strategy",{providedIn:"root",factory:()=>{let t=u(de);return()=>wn(t)}});function dfe(t){let n=u(de);return()=>wn(n)}var ufe={provide:b8,deps:[],useFactory:dfe};var ip=new WeakMap,mfe=(()=>{class t{_canHaveBackdrop;_element=u(q);_viewContainerRef=u(nt);_menuItemInstance=u(El,{optional:!0,self:!0});_dir=u(Vt,{optional:!0});_focusMonitor=u(Yt);_ngZone=u(ae);_injector=u(de);_scrollStrategy=u(b8);_changeDetectorRef=u(ye);_animationsDisabled=Ye();_portal;_overlayRef=null;_menuOpen=!1;_closingActionsSubscription=ke.EMPTY;_menuCloseSubscription=ke.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(i=>{this._destroyMenu(i),(i==="click"||i==="tab")&&this._parentMaterialMenu&&this._parentMaterialMenu.closed.emit(i)})),this._menuItemInstance?._setTriggersSubmenu(this._triggersSubmenu()))}_menuInternal;constructor(e){this._canHaveBackdrop=e;let i=u(II,{optional:!0});this._parentMaterialMenu=i instanceof jr?i:void 0}ngOnDestroy(){this._menu&&this._ownsMenu(this._menu)&&ip.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){let i=this._menu;if(this._menuOpen||!i)return;this._pendingRemoval?.unsubscribe();let r=ip.get(i);ip.set(i,this),r&&r!==this&&r._closeMenu();let o=this._createOverlay(i),a=o.getConfig(),s=a.positionStrategy;this._setPosition(i,s),this._canHaveBackdrop?a.hasBackdrop=i.hasBackdrop==null?!this._triggersSubmenu():i.hasBackdrop:a.hasBackdrop=!1,o.hasAttached()||(o.attach(this._getPortal(i)),i.lazyContent?.attach(this.menuData)),this._closingActionsSubscription=this._menuClosingActions().subscribe(()=>this._closeMenu()),i.parentMenu=this._triggersSubmenu()?this._parentMaterialMenu:void 0,i.direction=this.dir,e&&i.focusFirstItem(this._openedBy||"program"),this._setIsMenuOpen(!0),i instanceof jr&&(i._setIsOpen(!0),i._directDescendantItems.changes.pipe(Te(i.close)).subscribe(()=>{s.withLockedPosition(!1).reapplyLastPosition(),s.withLockedPosition(!0)}))}focus(e,i){this._focusMonitor&&e?this._focusMonitor.focusVia(this._element,e,i):this._element.nativeElement.focus(i)}_destroyMenu(e){let i=this._overlayRef,r=this._menu;!i||!this.menuOpen||(this._closingActionsSubscription.unsubscribe(),this._pendingRemoval?.unsubscribe(),r instanceof jr&&this._ownsMenu(r)?(this._pendingRemoval=r._animationDone.pipe(lt(1)).subscribe(()=>{i.detach(),ip.has(r)||r.lazyContent?.detach()}),r._setIsOpen(!1)):(i.detach(),r?.lazyContent?.detach()),r&&this._ownsMenu(r)&&ip.delete(r),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 i=this._getOverlayConfig(e);this._subscribeToPositions(e,i.positionStrategy),this._overlayRef=Nr(this._injector,i),this._overlayRef.keydownEvents().subscribe(r=>{this._menu instanceof jr&&this._menu._handleKeydown(r)})}return this._overlayRef}_getOverlayConfig(e){return new Fr({positionStrategy:Fa(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,i){e.setPositionClasses&&i.positionChanges.subscribe(r=>{this._ngZone.run(()=>{let o=r.connectionPair.overlayX==="start"?"after":"before",a=r.connectionPair.overlayY==="top"?"below":"above";e.setPositionClasses(o,a)})})}_setPosition(e,i){let[r,o]=e.xPosition==="before"?["end","start"]:["start","end"],[a,s]=e.yPosition==="above"?["bottom","top"]:["top","bottom"],[l,c]=[a,s],[d,m]=[r,o],f=0;if(this._triggersSubmenu()){if(m=r=e.xPosition==="before"?"start":"end",o=d=r==="end"?"start":"end",this._parentMaterialMenu){if(this._parentInnerPadding==null){let b=this._parentMaterialMenu.items.first;this._parentInnerPadding=b?b._getHostElement().offsetTop:0}f=a==="bottom"?this._parentInnerPadding:-this._parentInnerPadding}}else e.overlapTrigger||(l=a==="top"?"bottom":"top",c=s==="top"?"bottom":"top");i.withPositions([{originX:r,originY:l,overlayX:d,overlayY:a,offsetY:f},{originX:o,originY:l,overlayX:m,overlayY:a,offsetY:f},{originX:r,originY:c,overlayX:d,overlayY:s,offsetY:-f},{originX:o,originY:c,overlayX:m,overlayY:s,offsetY:-f}])}_menuClosingActions(){let e=this._getOutsideClickStream(this._overlayRef),i=this._overlayRef.detachments(),r=this._parentMaterialMenu?this._parentMaterialMenu.closed:Q(),o=this._parentMaterialMenu?this._parentMaterialMenu._hovered().pipe(ce(a=>this._menuOpen&&a!==this._menuItemInstance)):Q();return Je(e,r,o,i)}_getPortal(e){return(!this._portal||this._portal.templateRef!==e.templateRef)&&(this._portal=new Cn(e.templateRef,this._viewContainerRef)),this._portal}_ownsMenu(e){return ip.get(e)===this}static \u0275fac=function(i){Ad()};static \u0275dir=F({type:t})}return t})(),Ns=(()=>{class t extends mfe{_cleanupTouchstart;_hoverSubscription=ke.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 U;onMenuOpen=this.menuOpened;menuClosed=new U;onMenuClose=this.menuClosed;constructor(){super(!0);let e=u(je);this._cleanupTouchstart=e.listen(this._element.nativeElement,"touchstart",i=>{Gd(i)||(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){Wd(e)||(this._openedBy=e.button===0?"mouse":void 0,this.triggersSubmenu()&&e.preventDefault())}_handleKeydown(e){let i=e.keyCode;(i===13||i===32)&&(this._openedBy="keyboard"),this.triggersSubmenu()&&(i===39&&this.dir==="ltr"||i===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(i){return new(i||t)};static \u0275dir=F({type:t,selectors:[["","mat-menu-trigger-for",""],["","matMenuTriggerFor",""]],hostAttrs:[1,"mat-mdc-menu-trigger"],hostVars:3,hostBindings:function(i,r){i&1&&S("click",function(a){return r._handleClick(a)})("mousedown",function(a){return r._handleMousedown(a)})("keydown",function(a){return r._handleKeydown(a)}),i&2&&X("aria-haspopup",r.menu?"menu":null)("aria-expanded",r.menuOpen)("aria-controls",r.menuOpen?r.menu==null?null:r.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:[le]})}return t})();var Ls=(()=>{class t{static \u0275fac=function(i){return new(i||t)};static \u0275mod=ee({type:t});static \u0275inj=J({providers:[ufe],imports:[yo,we,er,vr,we]})}return t})(),v8={transformMenu:{type:7,name:"transformMenu",definitions:[{type:0,name:"void",styles:{type:6,styles:{opacity:0,transform:"scale(0.8)"},offset:null}},{type:1,expr:"void => enter",animation:{type:4,styles:{type:6,styles:{opacity:1,transform:"scale(1)"},offset:null},timings:"120ms cubic-bezier(0, 0, 0.2, 1)"},options:null},{type:1,expr:"* => void",animation:{type:4,styles:{type:6,styles:{opacity:0},offset:null},timings:"100ms 25ms linear"},options:null}],options:{}},fadeInItems:{type:7,name:"fadeInItems",definitions:[{type:0,name:"showing",styles:{type:6,styles:{opacity:1},offset:null}},{type:1,expr:"void => *",animation:[{type:6,styles:{opacity:0},offset:null},{type:4,styles:null,timings:"400ms 100ms cubic-bezier(0.55, 0, 0.55, 0.2)"}],options:null}],options:{}}},dlt=v8.fadeInItems,ult=v8.transformMenu;function hfe(t,n){if(t&1&&(h(0,"mat-list-item")(1,"mat-icon",3),_(2,"info"),p(),h(3,"a",4),_(4),p()()),t&2){let e=n.$implicit;g(4),H(e)}}var y8=(()=>{let n=class n{constructor(){this.messages=["Server Error Reports 1","Server Error Reports 2","Server Error Reports 3"]}};n.\u0275fac=function(r){return new(r||n)},n.\u0275cmp=E({type:n,selectors:[["app-notification"]],decls:8,vars:1,consts:[["menu","matMenu"],["matIconButton","",3,"matMenuTriggerFor"],["matBadge","5","matBadgeColor","warn","aria-hidden","false"],["matListItemIcon","",1,"m-x-16"],["matListItemTitle","","href","#"]],template:function(r,o){if(r&1&&(h(0,"button",1)(1,"mat-icon",2),_(2,"notifications"),p()(),h(3,"mat-menu",null,0)(5,"mat-nav-list"),xt(6,hfe,5,1,"mat-list-item",null,Hi),p()()),r&2){let a=Se(4);y("matMenuTriggerFor",a),g(6),Ct(o.messages)}},dependencies:[h8,m8,ze,ti,ot,mt,ca,_8,la,f_,Dl,Ls,jr,Ns],styles:["[_nghost-%COMP%] .mat-badge-content{--mat-badge-background-color: #ef0000;--mat-badge-text-color: #fff}"]});let t=n;return t})();var pfe=(t,n)=>n.value;function ffe(t,n){t&1&&k(0,"mat-pseudo-checkbox",5)}function gfe(t,n){if(t&1){let e=Y();h(0,"button",3),S("click",function(){let r=I(e).$implicit,o=C();return A(o.changeLang(r.value))}),h(1,"span",4),_(2),me(3,"translate"),N(4,ffe,1,0,"mat-pseudo-checkbox",5),p()()}if(t&2){let e=n.$implicit,i=C();g(2),ve(" ",Oe(3,2,e.name)," "),g(2),L(e.value===i.options.language?4:-1)}}var x8=(()=>{let n=class n{constructor(){this.settings=u(aa),this.options=this.settings.options,this.langs=[{value:"en-US",name:"en_us"},{value:"zh-CN",name:"zh_cn"},{value:"zh-TW",name:"zh_tw"},{value:"auto",name:"system"}]}changeLang(i){this.settings.setLanguage(i)}};n.\u0275fac=function(r){return new(r||n)},n.\u0275cmp=E({type:n,selectors:[["app-translate"]],decls:7,vars:1,consts:[["menu","matMenu"],["matIconButton","",3,"matMenuTriggerFor"],["mat-menu-item",""],["mat-menu-item","",3,"click"],[1,"d-flex","justify-content-between","gap-8"],["state","checked","appearance","minimal"]],template:function(r,o){if(r&1&&(h(0,"button",1)(1,"mat-icon"),_(2,"translate"),p()(),h(3,"mat-menu",null,0),xt(5,gfe,5,4,"button",2,pfe),p()),r&2){let a=Se(4);y("matMenuTriggerFor",a),g(5),Ct(o.langs)}},dependencies:[ze,ti,ot,mt,Ls,jr,El,Ns,Qd,Cr],encapsulation:2});let t=n;return t})();function _fe(t,n){t&1&&(h(0,"button",8)(1,"mat-icon"),_(2,"account_circle"),p(),h(3,"span"),_(4),me(5,"translate"),p()(),h(6,"button",9)(7,"mat-icon"),_(8,"edit"),p(),h(9,"span"),_(10),me(11,"translate"),p()()),t&2&&(g(4),H(Oe(5,2,"profile")),g(6),H(Oe(11,4,"edit_profile")))}function bfe(t,n){if(t&1){let e=Y();h(0,"button",6),S("click",function(){I(e);let r=C();return A(r.logout())}),h(1,"mat-icon"),_(2,"exit_to_app"),p(),h(3,"span"),_(4),me(5,"translate"),p()()}t&2&&(g(4),H(Oe(5,1,"logout")))}function vfe(t,n){if(t&1){let e=Y();h(0,"button",6),S("click",function(){I(e);let r=C();return A(r.login())}),h(1,"mat-icon"),_(2,"login"),p(),h(3,"span"),_(4),me(5,"translate"),p()()}t&2&&(g(4),H(Oe(5,1,"login")))}var C8=(()=>{let n=class n{constructor(){this.oidcAuth=u(Tt),this.router=u(Re),this.settings=u(aa),this.userName="Guest",this.userEmail="",this.userRoles="Anonymous User"}ngOnInit(){this.updateUserInfo(),this.authSubscription=this.oidcAuth.isAuthenticated$.subscribe(()=>{this.updateUserInfo()})}ngOnDestroy(){this.authSubscription?.unsubscribe()}updateUserInfo(){if(!this.oidcAuth.isAuthenticated()){this.userName="Guest",this.userEmail="",this.userRoles="Anonymous User";return}let i=this.oidcAuth.getUserInfo();console.log("UserButton: User info:",i),console.log("UserButton: Available claims:",i?Object.keys(i):"null"),this.userName=i?.name||i?.preferred_username||i?.given_name||i?.["http://schemas.xmlsoap.org/ws/2005/05/identity/claims/name"]||i?.sub||"User",this.userEmail=i?.email||i?.["http://schemas.xmlsoap.org/ws/2005/05/identity/claims/emailaddress"]||"";let r=this.oidcAuth.getUserRoles();this.userRoles=r.length>0?r.join(", "):"No roles",console.log("UserButton: Set userName to:",this.userName,"email to:",this.userEmail,"roles:",this.userRoles)}isAuthenticated(){return this.oidcAuth.isAuthenticated()}login(){this.oidcAuth.login()}logout(){this.oidcAuth.logout(),this.router.navigateByUrl("/dashboard")}restore(){this.settings.reset(),window.location.reload()}};n.\u0275fac=function(r){return new(r||n)},n.\u0275cmp=E({type:n,selectors:[["app-user"]],decls:22,vars:9,consts:[["menu","matMenu"],["matIconButton","",1,"user-button",3,"matMenuTriggerFor"],[1,"user-info"],[1,"user-name"],[1,"user-email"],[1,"user-roles"],["mat-menu-item","",3,"click"],["mat-menu-item",""],["routerLink","/profile/overview","mat-menu-item",""],["routerLink","/profile/settings","mat-menu-item",""]],template:function(r,o){if(r&1){let a=Y();h(0,"button",1)(1,"mat-icon"),_(2,"account_circle"),p()(),h(3,"mat-menu",null,0)(5,"div",2)(6,"div",3),_(7),p(),h(8,"div",4),_(9),p(),h(10,"div",5),_(11),p()(),k(12,"mat-divider"),N(13,_fe,12,6),h(14,"button",6),S("click",function(){return I(a),A(o.restore())}),h(15,"mat-icon"),_(16,"restore"),p(),h(17,"span"),_(18),me(19,"translate"),p()(),N(20,bfe,6,3,"button",7)(21,vfe,6,3,"button",7),p()}if(r&2){let a=Se(4);y("matMenuTriggerFor",a),g(7),H(o.userName),g(2),H(o.userEmail),g(2),H(o.userRoles),g(2),L(o.isAuthenticated()?13:-1),g(5),H(Oe(19,7,"restore_defaults")),g(2),L(o.isAuthenticated()?20:21)}},dependencies:[gt,Nn,ze,ti,ot,mt,Ls,jr,El,Ns,sa,Ha,wr,Cr],styles:["[_nghost-%COMP%]{display:inline-block}.user-button[_ngcontent-%COMP%]{display:inline-flex!important}.user-info[_ngcontent-%COMP%]{padding:16px;max-width:250px}.user-info[_ngcontent-%COMP%] .user-name[_ngcontent-%COMP%]{font-weight:500;font-size:14px;margin-bottom:4px}.user-info[_ngcontent-%COMP%] .user-email[_ngcontent-%COMP%]{font-size:12px;color:#0009;margin-bottom:4px}.user-info[_ngcontent-%COMP%] .user-roles[_ngcontent-%COMP%]{font-size:11px;color:#00000080;font-style:italic}"]});let t=n;return t})();function yfe(t,n){if(t&1){let e=Y();h(0,"button",4),S("click",function(){I(e);let r=C();return A(r.toggleSidenav.emit())}),h(1,"mat-icon"),_(2,"menu"),p()()}}function xfe(t,n){t&1&&k(0,"app-branding")}var w8=(()=>{let n=class n{constructor(){this.showToggle=ne(!0),this.showBranding=ne(!1),this.toggleSidenav=bi(),this.toggleSidenavNotice=bi()}toggleFullscreen(){kI.isEnabled&&kI.toggle()}};n.\u0275fac=function(r){return new(r||n)},n.\u0275cmp=E({type:n,selectors:[["app-header"]],hostAttrs:[1,"matero-header"],inputs:{showToggle:[1,"showToggle"],showBranding:[1,"showBranding"]},outputs:{toggleSidenav:"toggleSidenav",toggleSidenavNotice:"toggleSidenavNotice"},decls:17,vars:2,consts:[["matIconButton",""],[1,"flex-fill"],["matIconButton","",1,"hide-small",3,"click"],[1,"hide-small"],["matIconButton","",3,"click"]],template:function(r,o){r&1&&(h(0,"mat-toolbar"),N(1,yfe,3,0,"button",0),N(2,xfe,1,0,"app-branding"),k(3,"span",1)(4,"app-github-button"),h(5,"button",0)(6,"mat-icon"),_(7,"search"),p()(),k(8,"app-translate"),h(9,"button",2),S("click",function(){return o.toggleFullscreen()}),h(10,"mat-icon"),_(11,"fullscreen"),p()(),k(12,"app-notification",3)(13,"app-user"),h(14,"button",2),S("click",function(){return o.toggleSidenavNotice.emit()}),h(15,"mat-icon"),_(16,"list"),p()()()),r&2&&(g(),L(o.showToggle()?1:-1),g(),L(o.showBranding()?2:-1))},dependencies:[ZC,KC,ze,ti,ot,mt,XC,d8,y8,x8,C8],styles:[`.matero-header{--mat-toolbar-container-background-color: transparent;position:relative;z-index:200;display:block;background-color:var(--header-background-color);-webkit-backdrop-filter:blur(8px);backdrop-filter:blur(8px)} -`],encapsulation:2});let t=n;return t})();var np=["*"];function Cfe(t,n){t&1&&oe(0)}var k8=["tabListContainer"],S8=["tabList"],T8=["tabListInner"],I8=["nextPaginator"],A8=["previousPaginator"],wfe=["content"];function Dfe(t,n){}var Efe=["tabBodyWrapper"],Mfe=["tabHeader"];function kfe(t,n){}function Sfe(t,n){if(t&1&&R(0,kfe,0,0,"ng-template",12),t&2){let e=C().$implicit;y("cdkPortalOutlet",e.templateLabel)}}function Tfe(t,n){if(t&1&&_(0),t&2){let e=C().$implicit;H(e.textLabel)}}function Ife(t,n){if(t&1){let e=Y();h(0,"div",7,2),S("click",function(){let r=I(e),o=r.$implicit,a=r.$index,s=C(),l=Se(1);return A(s._handleClick(o,l,a))})("cdkFocusChange",function(r){let o=I(e).$index,a=C();return A(a._tabFocusChanged(r,o))}),k(2,"span",8)(3,"div",9),h(4,"span",10)(5,"span",11),N(6,Sfe,1,1,null,12)(7,Tfe,1,1),p()()()}if(t&2){let e=n.$implicit,i=n.$index,r=Se(1),o=C();it(e.labelClass),G("mdc-tab--active",o.selectedIndex===i),y("id",o._getTabLabelId(e,i))("disabled",e.disabled)("fitInkBarToContent",o.fitInkBarToContent),X("tabIndex",o._getTabIndex(i))("aria-posinset",i+1)("aria-setsize",o._tabs.length)("aria-controls",o._getTabContentId(i))("aria-selected",o.selectedIndex===i)("aria-label",e.ariaLabel||null)("aria-labelledby",!e.ariaLabel&&e.ariaLabelledby?e.ariaLabelledby:null),g(3),y("matRippleTrigger",r)("matRippleDisabled",e.disabled||o.disableRipple),g(3),L(e.templateLabel?6:7)}}function Afe(t,n){t&1&&oe(0)}function Ofe(t,n){if(t&1){let e=Y();h(0,"mat-tab-body",13),S("_onCentered",function(){I(e);let r=C();return A(r._removeTabBodyWrapperHeight())})("_onCentering",function(r){I(e);let o=C();return A(o._setTabBodyWrapperHeight(r))})("_beforeCentering",function(r){I(e);let o=C();return A(o._bodyCentered(r))}),p()}if(t&2){let e=n.$implicit,i=n.$index,r=C();it(e.bodyClass),y("id",r._getTabContentId(i))("content",e.content)("position",e.position)("animationDuration",r.animationDuration)("preserveContent",r.preserveContent),X("tabindex",r.contentTabIndex!=null&&r.selectedIndex===i?r.contentTabIndex:null)("aria-labelledby",r._getTabLabelId(e,i))("aria-hidden",r.selectedIndex!==i)}}var Rfe=["mat-tab-nav-bar",""],Pfe=["mat-tab-link",""],Ffe=new T("MatTabContent"),Nfe=(()=>{class t{template=u(te);constructor(){}static \u0275fac=function(i){return new(i||t)};static \u0275dir=F({type:t,selectors:[["","matTabContent",""]],features:[Ce([{provide:Ffe,useExisting:t}])]})}return t})(),Lfe=new T("MatTabLabel"),O8=new T("MAT_TAB"),Vfe=(()=>{class t extends eB{_closestTab=u(O8,{optional:!0});static \u0275fac=(()=>{let e;return function(r){return(e||(e=fe(t)))(r||t)}})();static \u0275dir=F({type:t,selectors:[["","mat-tab-label",""],["","matTabLabel",""]],features:[Ce([{provide:Lfe,useExisting:t}]),le]})}return t})(),R8=new T("MAT_TAB_GROUP"),__=(()=>{class t{_viewContainerRef=u(nt);_closestTabGroup=u(R8,{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 z;position=null;origin=null;isActive=!1;constructor(){u(ut).load(Di)}ngOnChanges(e){(e.hasOwnProperty("textLabel")||e.hasOwnProperty("disabled"))&&this._stateChanges.next()}ngOnDestroy(){this._stateChanges.complete()}ngOnInit(){this._contentPortal=new Cn(this._explicitContent||this._implicitContent,this._viewContainerRef)}_setTemplateLabelInput(e){e&&e._closestTab===this&&(this._templateLabel=e)}static \u0275fac=function(i){return new(i||t)};static \u0275cmp=E({type:t,selectors:[["mat-tab"]],contentQueries:function(i,r,o){if(i&1&&(xe(o,Vfe,5),xe(o,Nfe,7,te)),i&2){let a;B(a=j())&&(r.templateLabel=a.first),B(a=j())&&(r._explicitContent=a.first)}},viewQuery:function(i,r){if(i&1&&ie(te,7),i&2){let o;B(o=j())&&(r._implicitContent=o.first)}},hostAttrs:["hidden",""],hostVars:1,hostBindings:function(i,r){i&2&&X("id",null)},inputs:{disabled:[2,"disabled","disabled",V],textLabel:[0,"label","textLabel"],ariaLabel:[0,"aria-label","ariaLabel"],ariaLabelledby:[0,"aria-labelledby","ariaLabelledby"],labelClass:"labelClass",bodyClass:"bodyClass",id:"id"},exportAs:["matTab"],features:[Ce([{provide:O8,useExisting:t}]),Ae],ngContentSelectors:np,decls:1,vars:0,template:function(i,r){i&1&&(Me(),xa(0,Cfe,1,0,"ng-template"))},encapsulation:2})}return t})(),AI="mdc-tab-indicator--active",D8="mdc-tab-indicator--no-transition",ew=class{_items;_currentItem;constructor(n){this._items=n}hide(){this._items.forEach(n=>n.deactivateInkBar()),this._currentItem=void 0}alignToElement(n){let e=this._items.find(r=>r.elementRef.nativeElement===n),i=this._currentItem;if(e!==i&&(i?.deactivateInkBar(),e)){let r=i?.elementRef.nativeElement.getBoundingClientRect?.();e.activateInkBar(r),this._currentItem=e}}},P8=(()=>{class t{_elementRef=u(q);_inkBarElement;_inkBarContentElement;_fitToContent=!1;get fitInkBarToContent(){return this._fitToContent}set fitInkBarToContent(e){this._fitToContent!==e&&(this._fitToContent=e,this._inkBarElement&&this._appendInkBarElement())}activateInkBar(e){let i=this._elementRef.nativeElement;if(!e||!i.getBoundingClientRect||!this._inkBarContentElement){i.classList.add(AI);return}let r=i.getBoundingClientRect(),o=e.width/r.width,a=e.left-r.left;i.classList.add(D8),this._inkBarContentElement.style.setProperty("transform",`translateX(${a}px) scaleX(${o})`),i.getBoundingClientRect(),i.classList.remove(D8),i.classList.add(AI),this._inkBarContentElement.style.setProperty("transform","")}deactivateInkBar(){this._elementRef.nativeElement.classList.remove(AI)}ngOnInit(){this._createInkBarElement()}ngOnDestroy(){this._inkBarElement?.remove(),this._inkBarElement=this._inkBarContentElement=null}_createInkBarElement(){let e=this._elementRef.nativeElement.ownerDocument||document,i=this._inkBarElement=e.createElement("span"),r=this._inkBarContentElement=e.createElement("span");i.className="mdc-tab-indicator",r.className="mdc-tab-indicator__content mdc-tab-indicator__content--underline",i.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(i){return new(i||t)};static \u0275dir=F({type:t,inputs:{fitInkBarToContent:[2,"fitInkBarToContent","fitInkBarToContent",V]}})}return t})();var F8=(()=>{class t extends P8{elementRef=u(q);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(r){return(e||(e=fe(t)))(r||t)}})();static \u0275dir=F({type:t,selectors:[["","matTabLabelWrapper",""]],hostVars:3,hostBindings:function(i,r){i&2&&(X("aria-disabled",!!r.disabled),G("mat-mdc-tab-disabled",r.disabled))},inputs:{disabled:[2,"disabled","disabled",V]},features:[le]})}return t})(),E8={passive:!0},Bfe=650,jfe=100,N8=(()=>{class t{_elementRef=u(q);_changeDetectorRef=u(ye);_viewportRuler=u(Xn);_dir=u(Vt,{optional:!0});_ngZone=u(ae);_platform=u(qe);_sharedResizeObserver=u(qy);_injector=u(de);_renderer=u(je);_animationsDisabled=Ye();_eventCleanups;_scrollDistance=0;_selectedIndexChanged=!1;_destroyed=new z;_showPaginationControls=!1;_disableScrollAfter=!0;_disableScrollBefore=!0;_tabLabelCount;_scrollDistanceChanged;_keyManager;_currentTextContent;_stopScrolling=new z;disablePagination=!1;get selectedIndex(){return this._selectedIndex}set selectedIndex(e){let i=isNaN(e)?0:e;this._selectedIndex!=i&&(this._selectedIndexChanged=!0,this._selectedIndex=i,this._keyManager&&this._keyManager.updateActiveItem(i))}_selectedIndex=0;selectFocusedIndex=new U;indexFocused=new U;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"),E8),this._renderer.listen(this._nextPaginator.nativeElement,"touchstart",()=>this._handlePaginatorPress("after"),E8))}ngAfterContentInit(){let e=this._dir?this._dir.change:Q("ltr"),i=this._sharedResizeObserver.observe(this._elementRef.nativeElement).pipe(Rt(32),Te(this._destroyed)),r=this._viewportRuler.change(150).pipe(Te(this._destroyed)),o=()=>{this.updatePagination(),this._alignInkBarToSelectedTab()};this._keyManager=new bs(this._items).withHorizontalOrientation(this._getLayoutDirection()).withHomeAndEnd().withWrap().skipPredicate(()=>!1),this._keyManager.updateActiveItem(Math.max(this._selectedIndex,0)),pt(o,{injector:this._injector}),Je(e,r,i,this._items.changes,this._itemsResized()).pipe(Te(this._destroyed)).subscribe(()=>{this._ngZone.run(()=>{Promise.resolve().then(()=>{this._scrollDistance=Math.max(0,Math.min(this._getMaxScrollDistance(),this._scrollDistance)),o()})}),this._keyManager?.withHorizontalOrientation(this._getLayoutDirection())}),this._keyManager.change.subscribe(a=>{this.indexFocused.emit(a),this._setTabFocus(a)})}_itemsResized(){return typeof ResizeObserver!="function"?Fi:this._items.changes.pipe(He(this._items),$e(e=>new Fe(i=>this._ngZone.runOutsideAngular(()=>{let r=new ResizeObserver(o=>i.next(o));return e.forEach(o=>r.observe(o.elementRef.nativeElement)),()=>{r.disconnect()}}))),Ya(1),ce(e=>e.some(i=>i.contentRect.width>0&&i.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(!Ft(e))switch(e.keyCode){case 13:case 32:if(this.focusIndex!==this.selectedIndex){let i=this._items.get(this.focusIndex);i&&!i.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 i=this._tabListContainer.nativeElement;this._getLayoutDirection()=="ltr"?i.scrollLeft=0:i.scrollLeft=i.scrollWidth-i.offsetWidth}}_getLayoutDirection(){return this._dir&&this._dir.value==="rtl"?"rtl":"ltr"}_updateTabScrollPosition(){if(this.disablePagination)return;let e=this.scrollDistance,i=this._getLayoutDirection()==="ltr"?-e:e;this._tabList.nativeElement.style.transform=`translateX(${Math.round(i)}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 i=this._tabListContainer.nativeElement.offsetWidth,r=(e=="before"?-1:1)*i/3;return this._scrollTo(this._scrollDistance+r)}_handlePaginatorClick(e){this._stopInterval(),this._scrollHeader(e)}_scrollToLabel(e){if(this.disablePagination)return;let i=this._items?this._items.toArray()[e]:null;if(!i)return;let r=this._tabListContainer.nativeElement.offsetWidth,{offsetLeft:o,offsetWidth:a}=i.elementRef.nativeElement,s,l;this._getLayoutDirection()=="ltr"?(s=o,l=s+a):(l=this._tabListInner.nativeElement.offsetWidth-o,s=l-a);let c=this.scrollDistance,d=this.scrollDistance+r;sd&&(this.scrollDistance+=Math.min(l-d,s-c))}_checkPaginationEnabled(){if(this.disablePagination)this._showPaginationControls=!1;else{let e=this._tabListInner.nativeElement.scrollWidth,i=this._elementRef.nativeElement.offsetWidth,r=e-i>=5;r||(this.scrollDistance=0),r!==this._showPaginationControls&&(this._showPaginationControls=r,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,i=this._tabListContainer.nativeElement.offsetWidth;return e-i||0}_alignInkBarToSelectedTab(){let e=this._items&&this._items.length?this._items.toArray()[this.selectedIndex]:null,i=e?e.elementRef.nativeElement:null;i?this._inkBar.alignToElement(i):this._inkBar.hide()}_stopInterval(){this._stopScrolling.next()}_handlePaginatorPress(e,i){i&&i.button!=null&&i.button!==0||(this._stopInterval(),qa(Bfe,jfe).pipe(Te(Je(this._stopScrolling,this._destroyed))).subscribe(()=>{let{maxScrollDistance:r,distance:o}=this._scrollHeader(e);(o===0||o>=r)&&this._stopInterval()}))}_scrollTo(e){if(this.disablePagination)return{maxScrollDistance:0,distance:0};let i=this._getMaxScrollDistance();return this._scrollDistance=Math.max(0,Math.min(i,e)),this._scrollDistanceChanged=!0,this._checkScrollingControls(),{maxScrollDistance:i,distance:this._scrollDistance}}static \u0275fac=function(i){return new(i||t)};static \u0275dir=F({type:t,inputs:{disablePagination:[2,"disablePagination","disablePagination",V],selectedIndex:[2,"selectedIndex","selectedIndex",ct]},outputs:{selectFocusedIndex:"selectFocusedIndex",indexFocused:"indexFocused"}})}return t})(),Hfe=(()=>{class t extends N8{_items;_tabListContainer;_tabList;_tabListInner;_nextPaginator;_previousPaginator;_inkBar;ariaLabel;ariaLabelledby;disableRipple=!1;ngAfterContentInit(){this._inkBar=new ew(this._items),super.ngAfterContentInit()}_itemSelected(e){e.preventDefault()}static \u0275fac=(()=>{let e;return function(r){return(e||(e=fe(t)))(r||t)}})();static \u0275cmp=E({type:t,selectors:[["mat-tab-header"]],contentQueries:function(i,r,o){if(i&1&&xe(o,F8,4),i&2){let a;B(a=j())&&(r._items=a)}},viewQuery:function(i,r){if(i&1&&(ie(k8,7),ie(S8,7),ie(T8,7),ie(I8,5),ie(A8,5)),i&2){let o;B(o=j())&&(r._tabListContainer=o.first),B(o=j())&&(r._tabList=o.first),B(o=j())&&(r._tabListInner=o.first),B(o=j())&&(r._nextPaginator=o.first),B(o=j())&&(r._previousPaginator=o.first)}},hostAttrs:[1,"mat-mdc-tab-header"],hostVars:4,hostBindings:function(i,r){i&2&&G("mat-mdc-tab-header-pagination-controls-enabled",r._showPaginationControls)("mat-mdc-tab-header-rtl",r._getLayoutDirection()=="rtl")},inputs:{ariaLabel:[0,"aria-label","ariaLabel"],ariaLabelledby:[0,"aria-labelledby","ariaLabelledby"],disableRipple:[2,"disableRipple","disableRipple",V]},features:[le],ngContentSelectors:np,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(i,r){if(i&1){let o=Y();Me(),h(0,"div",5,0),S("click",function(){return I(o),A(r._handlePaginatorClick("before"))})("mousedown",function(s){return I(o),A(r._handlePaginatorPress("before",s))})("touchend",function(){return I(o),A(r._stopInterval())}),k(2,"div",6),p(),h(3,"div",7,1),S("keydown",function(s){return I(o),A(r._handleKeydown(s))}),h(5,"div",8,2),S("cdkObserveContent",function(){return I(o),A(r._onContentChanges())}),h(7,"div",9,3),oe(9),p()()(),h(10,"div",10,4),S("mousedown",function(s){return I(o),A(r._handlePaginatorPress("after",s))})("click",function(){return I(o),A(r._handlePaginatorClick("after"))})("touchend",function(){return I(o),A(r._stopInterval())}),k(12,"div",6),p()}i&2&&(G("mat-mdc-tab-header-pagination-disabled",r._disableScrollBefore),y("matRippleDisabled",r._disableScrollBefore||r.disableRipple),g(3),G("_mat-animation-noopable",r._animationsDisabled),g(2),X("aria-label",r.ariaLabel||null)("aria-labelledby",r.ariaLabelledby||null),g(5),G("mat-mdc-tab-header-pagination-disabled",r._disableScrollAfter),y("matRippleDisabled",r._disableScrollAfter||r.disableRipple))},dependencies:[Vn,Wf],styles:[`.mat-mdc-tab-header{display:flex;overflow:hidden;position:relative;flex-shrink:0}.mdc-tab-indicator .mdc-tab-indicator__content{transition-duration:var(--mat-tab-animation-duration, 250ms)}.mat-mdc-tab-header-pagination{-webkit-user-select:none;user-select:none;position:relative;display:none;justify-content:center;align-items:center;min-width:32px;cursor:pointer;z-index:2;-webkit-tap-highlight-color:rgba(0,0,0,0);touch-action:none;box-sizing:content-box;outline:0}.mat-mdc-tab-header-pagination::-moz-focus-inner{border:0}.mat-mdc-tab-header-pagination .mat-ripple-element{opacity:.12;background-color:var(--mat-tab-inactive-ripple-color, var(--mat-sys-on-surface))}.mat-mdc-tab-header-pagination-controls-enabled .mat-mdc-tab-header-pagination{display:flex}.mat-mdc-tab-header-pagination-before,.mat-mdc-tab-header-rtl .mat-mdc-tab-header-pagination-after{padding-left:4px}.mat-mdc-tab-header-pagination-before .mat-mdc-tab-header-pagination-chevron,.mat-mdc-tab-header-rtl .mat-mdc-tab-header-pagination-after .mat-mdc-tab-header-pagination-chevron{transform:rotate(-135deg)}.mat-mdc-tab-header-rtl .mat-mdc-tab-header-pagination-before,.mat-mdc-tab-header-pagination-after{padding-right:4px}.mat-mdc-tab-header-rtl .mat-mdc-tab-header-pagination-before .mat-mdc-tab-header-pagination-chevron,.mat-mdc-tab-header-pagination-after .mat-mdc-tab-header-pagination-chevron{transform:rotate(45deg)}.mat-mdc-tab-header-pagination-chevron{border-style:solid;border-width:2px 2px 0 0;height:8px;width:8px;border-color:var(--mat-tab-pagination-icon-color, var(--mat-sys-on-surface))}.mat-mdc-tab-header-pagination-disabled{box-shadow:none;cursor:default;pointer-events:none}.mat-mdc-tab-header-pagination-disabled .mat-mdc-tab-header-pagination-chevron{opacity:.4}.mat-mdc-tab-list{flex-grow:1;position:relative;transition:transform 500ms cubic-bezier(0.35, 0, 0.25, 1)}._mat-animation-noopable .mat-mdc-tab-list{transition:none}.mat-mdc-tab-label-container{display:flex;flex-grow:1;overflow:hidden;z-index:1;border-bottom-style:solid;border-bottom-width:var(--mat-tab-divider-height, 1px);border-bottom-color:var(--mat-tab-divider-color, var(--mat-sys-surface-variant))}.mat-mdc-tab-group-inverted-header .mat-mdc-tab-label-container{border-bottom:none;border-top-style:solid;border-top-width:var(--mat-tab-divider-height, 1px);border-top-color:var(--mat-tab-divider-color, var(--mat-sys-surface-variant))}.mat-mdc-tab-labels{display:flex;flex:1 0 auto}[mat-align-tabs=center]>.mat-mdc-tab-header .mat-mdc-tab-labels{justify-content:center}[mat-align-tabs=end]>.mat-mdc-tab-header .mat-mdc-tab-labels{justify-content:flex-end}.cdk-drop-list .mat-mdc-tab-labels,.mat-mdc-tab-labels.cdk-drop-list{min-height:var(--mat-tab-container-height, 48px)}.mat-mdc-tab::before{margin:5px}@media(forced-colors: active){.mat-mdc-tab[aria-disabled=true]{color:GrayText}} -`],encapsulation:2})}return t})(),L8=new T("MAT_TABS_CONFIG"),M8=(()=>{class t extends yr{_host=u(OI);_ngZone=u(ae);_centeringSub=ke.EMPTY;_leavingSub=ke.EMPTY;constructor(){super()}ngOnInit(){super.ngOnInit(),this._centeringSub=this._host._beforeCentering.pipe(He(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(i){return new(i||t)};static \u0275dir=F({type:t,selectors:[["","matTabBodyHost",""]],features:[le]})}return t})(),OI=(()=>{class t{_elementRef=u(q);_dir=u(Vt,{optional:!0});_ngZone=u(ae);_injector=u(de);_renderer=u(je);_diAnimationsDisabled=Ye();_eventCleanups;_initialized;_fallbackTimer;_positionIndex;_dirChangeSubscription=ke.EMPTY;_position;_previousPosition;_onCentering=new U;_beforeCentering=new U;_afterLeavingCenter=new U;_onCentered=new U(!0);_portalHost;_contentElement;_content;animationDuration="500ms";preserveContent=!1;set position(e){this._positionIndex=e,this._computePositionAnimationState()}constructor(){if(this._dir){let e=u(ye);this._dirChangeSubscription=this._dir.change.subscribe(i=>{this._computePositionAnimationState(i),e.markForCheck()})}}ngOnInit(){this._bindTransitionEvents(),this._position==="center"&&(this._setActiveClass(!0),pt(()=>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,i=r=>{r.target===this._contentElement?.nativeElement&&(this._elementRef.nativeElement.classList.remove("mat-tab-body-animating"),r.type==="transitionend"&&this._transitionDone())};this._eventCleanups=[this._renderer.listen(e,"transitionstart",r=>{r.target===this._contentElement?.nativeElement&&(this._elementRef.nativeElement.classList.add("mat-tab-body-animating"),this._transitionStarted())}),this._renderer.listen(e,"transitionend",i),this._renderer.listen(e,"transitioncancel",i)]})}_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(),pt(()=>this._transitionDone(),{injector:this._injector})}_animationsDisabled(){return this._diAnimationsDisabled||this.animationDuration==="0ms"||this.animationDuration==="0s"}static \u0275fac=function(i){return new(i||t)};static \u0275cmp=E({type:t,selectors:[["mat-tab-body"]],viewQuery:function(i,r){if(i&1&&(ie(M8,5),ie(wfe,5)),i&2){let o;B(o=j())&&(r._portalHost=o.first),B(o=j())&&(r._contentElement=o.first)}},hostAttrs:[1,"mat-mdc-tab-body"],hostVars:1,hostBindings:function(i,r){i&2&&X("inert",r._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(i,r){i&1&&(h(0,"div",1,0),R(2,Dfe,0,0,"ng-template",2),p()),i&2&&G("mat-tab-body-content-left",r._position==="left")("mat-tab-body-content-right",r._position==="right")("mat-tab-body-content-can-animate",r._position==="center"||r._previousPosition==="center")},dependencies:[M8,Pa],styles:[`.mat-mdc-tab-body{top:0;left:0;right:0;bottom:0;position:absolute;display:block;overflow:hidden;outline:0;flex-basis:100%}.mat-mdc-tab-body.mat-mdc-tab-body-active{position:relative;overflow-x:hidden;overflow-y:auto;z-index:1;flex-grow:1}.mat-mdc-tab-group.mat-mdc-tab-group-dynamic-height .mat-mdc-tab-body.mat-mdc-tab-body-active{overflow-y:hidden}.mat-mdc-tab-body-content{height:100%;overflow:auto;transform:none;visibility:hidden}.mat-tab-body-animating>.mat-mdc-tab-body-content,.mat-mdc-tab-body-active>.mat-mdc-tab-body-content{visibility:visible}.mat-tab-body-animating>.mat-mdc-tab-body-content{min-height:1px}.mat-mdc-tab-group-dynamic-height .mat-mdc-tab-body-content{overflow:hidden}.mat-tab-body-content-can-animate{transition:transform var(--mat-tab-animation-duration) 1ms cubic-bezier(0.35, 0, 0.25, 1)}.mat-mdc-tab-body-wrapper._mat-animation-noopable .mat-tab-body-content-can-animate{transition:none}.mat-tab-body-content-left{transform:translate3d(-100%, 0, 0)}.mat-tab-body-content-right{transform:translate3d(100%, 0, 0)} -`],encapsulation:2})}return t})(),tw=(()=>{class t{_elementRef=u(q);_changeDetectorRef=u(ye);_ngZone=u(ae);_tabsSubscription=ke.EMPTY;_tabLabelSubscription=ke.EMPTY;_tabBodySubscription=ke.EMPTY;_diAnimationsDisabled=Ye();_allTabs;_tabBodies;_tabBodyWrapper;_tabHeader;_tabs=new pr;_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 i=e+"";this._animationDuration=/^\d+$/.test(i)?e+"ms":i}_animationDuration;get contentTabIndex(){return this._contentTabIndex}set contentTabIndex(e){this._contentTabIndex=isNaN(e)?null:e}_contentTabIndex;disablePagination=!1;disableRipple=!1;preserveContent=!1;get backgroundColor(){return this._backgroundColor}set backgroundColor(e){let i=this._elementRef.nativeElement.classList;i.remove("mat-tabs-with-background",`mat-background-${this.backgroundColor}`),e&&i.add("mat-tabs-with-background",`mat-background-${e}`),this._backgroundColor=e}_backgroundColor;ariaLabel;ariaLabelledby;selectedIndexChange=new U;focusChange=new U;animationDone=new U;selectedTabChange=new U(!0);_groupId;_isServer=!u(qe).isBrowser;constructor(){let e=u(L8,{optional:!0});this._groupId=u(Ze).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 i=this._selectedIndex==null;if(!i){this.selectedTabChange.emit(this._createChangeEvent(e));let r=this._tabBodyWrapper.nativeElement;r.style.minHeight=r.clientHeight+"px"}Promise.resolve().then(()=>{this._tabs.forEach((r,o)=>r.isActive=o===e),i||(this.selectedIndexChange.emit(e),this._tabBodyWrapper.nativeElement.style.minHeight="")})}this._tabs.forEach((i,r)=>{i.position=r-e,this._selectedIndex!=null&&i.position==0&&!i.origin&&(i.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 i=this._tabs.toArray(),r;for(let o=0;o{i[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(He(this._allTabs)).subscribe(e=>{this._tabs.reset(e.filter(i=>i._closestTabGroup===this||!i._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 i=this._tabHeader;i&&(i.focusIndex=e)}_focusChanged(e){this._lastFocusedTabIndex=e,this.focusChange.emit(this._createChangeEvent(e))}_createChangeEvent(e){let i=new RI;return i.index=e,this._tabs&&this._tabs.length&&(i.tab=this._tabs.toArray()[e]),i}_subscribeToTabLabels(){this._tabLabelSubscription&&this._tabLabelSubscription.unsubscribe(),this._tabLabelSubscription=Je(...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,i){return e.id||`${this._groupId}-label-${i}`}_getTabContentId(e){return`${this._groupId}-content-${e}`}_setTabBodyWrapperHeight(e){if(!this.dynamicHeight||!this._tabBodyWrapperHeight){this._tabBodyWrapperHeight=e;return}let i=this._tabBodyWrapper.nativeElement;i.style.height=this._tabBodyWrapperHeight+"px",this._tabBodyWrapper.nativeElement.offsetHeight&&(i.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,i,r){i.focusIndex=r,e.disabled||(this.selectedIndex=r)}_getTabIndex(e){let i=this._lastFocusedTabIndex??this.selectedIndex;return e===i?0:-1}_tabFocusChanged(e,i){e&&e!=="mouse"&&e!=="touch"&&(this._tabHeader.focusIndex=i)}_bodyCentered(e){e&&this._tabBodies?.forEach((i,r)=>i._setActiveClass(r===this._selectedIndex))}_animationsDisabled(){return this._diAnimationsDisabled||this.animationDuration==="0"||this.animationDuration==="0ms"}static \u0275fac=function(i){return new(i||t)};static \u0275cmp=E({type:t,selectors:[["mat-tab-group"]],contentQueries:function(i,r,o){if(i&1&&xe(o,__,5),i&2){let a;B(a=j())&&(r._allTabs=a)}},viewQuery:function(i,r){if(i&1&&(ie(Efe,5),ie(Mfe,5),ie(OI,5)),i&2){let o;B(o=j())&&(r._tabBodyWrapper=o.first),B(o=j())&&(r._tabHeader=o.first),B(o=j())&&(r._tabBodies=o)}},hostAttrs:[1,"mat-mdc-tab-group"],hostVars:11,hostBindings:function(i,r){i&2&&(X("mat-align-tabs",r.alignTabs),it("mat-"+(r.color||"primary")),Dt("--mat-tab-animation-duration",r.animationDuration),G("mat-mdc-tab-group-dynamic-height",r.dynamicHeight)("mat-mdc-tab-group-inverted-header",r.headerPosition==="below")("mat-mdc-tab-group-stretch-tabs",r.stretchTabs))},inputs:{color:"color",fitInkBarToContent:[2,"fitInkBarToContent","fitInkBarToContent",V],stretchTabs:[2,"mat-stretch-tabs","stretchTabs",V],alignTabs:[0,"mat-align-tabs","alignTabs"],dynamicHeight:[2,"dynamicHeight","dynamicHeight",V],selectedIndex:[2,"selectedIndex","selectedIndex",ct],headerPosition:"headerPosition",animationDuration:"animationDuration",contentTabIndex:[2,"contentTabIndex","contentTabIndex",ct],disablePagination:[2,"disablePagination","disablePagination",V],disableRipple:[2,"disableRipple","disableRipple",V],preserveContent:[2,"preserveContent","preserveContent",V],backgroundColor:"backgroundColor",ariaLabel:[0,"aria-label","ariaLabel"],ariaLabelledby:[0,"aria-labelledby","ariaLabelledby"]},outputs:{selectedIndexChange:"selectedIndexChange",focusChange:"focusChange",animationDone:"animationDone",selectedTabChange:"selectedTabChange"},exportAs:["matTabGroup"],features:[Ce([{provide:R8,useExisting:t}])],ngContentSelectors:np,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(i,r){if(i&1){let o=Y();Me(),h(0,"mat-tab-header",3,0),S("indexFocused",function(s){return I(o),A(r._focusChanged(s))})("selectFocusedIndex",function(s){return I(o),A(r.selectedIndex=s)}),xt(2,Ife,8,17,"div",4,xm),p(),N(4,Afe,1,0),h(5,"div",5,1),xt(7,Ofe,1,10,"mat-tab-body",6,xm),p()}i&2&&(y("selectedIndex",r.selectedIndex||0)("disableRipple",r.disableRipple)("disablePagination",r.disablePagination),Kl("aria-label",r.ariaLabel)("aria-labelledby",r.ariaLabelledby),g(2),Ct(r._tabs),g(2),L(r._isServer?4:-1),g(),G("_mat-animation-noopable",r._animationsDisabled()),g(2),Ct(r._tabs))},dependencies:[Hfe,F8,$f,Vn,yr,OI],styles:[`.mdc-tab{min-width:90px;padding:0 24px;display:flex;flex:1 0 auto;justify-content:center;box-sizing:border-box;border:none;outline:none;text-align:center;white-space:nowrap;cursor:pointer;z-index:1;touch-action:manipulation}.mdc-tab__content{display:flex;align-items:center;justify-content:center;height:inherit;pointer-events:none}.mdc-tab__text-label{transition:150ms color linear;display:inline-block;line-height:1;z-index:2}.mdc-tab--active .mdc-tab__text-label{transition-delay:100ms}._mat-animation-noopable .mdc-tab__text-label{transition:none}.mdc-tab-indicator{display:flex;position:absolute;top:0;left:0;justify-content:center;width:100%;height:100%;pointer-events:none;z-index:1}.mdc-tab-indicator__content{transition:var(--mat-tab-animation-duration, 250ms) transform cubic-bezier(0.4, 0, 0.2, 1);transform-origin:left;opacity:0}.mdc-tab-indicator__content--underline{align-self:flex-end;box-sizing:border-box;width:100%;border-top-style:solid}.mdc-tab-indicator--active .mdc-tab-indicator__content{opacity:1}._mat-animation-noopable .mdc-tab-indicator__content,.mdc-tab-indicator--no-transition .mdc-tab-indicator__content{transition:none}.mat-mdc-tab-ripple.mat-mdc-tab-ripple{position:absolute;top:0;left:0;bottom:0;right:0;pointer-events:none}.mat-mdc-tab{-webkit-tap-highlight-color:rgba(0,0,0,0);-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;text-decoration:none;background:none;height:var(--mat-tab-container-height, 48px);font-family:var(--mat-tab-label-text-font, var(--mat-sys-title-small-font));font-size:var(--mat-tab-label-text-size, var(--mat-sys-title-small-size));letter-spacing:var(--mat-tab-label-text-tracking, var(--mat-sys-title-small-tracking));line-height:var(--mat-tab-label-text-line-height, var(--mat-sys-title-small-line-height));font-weight:var(--mat-tab-label-text-weight, var(--mat-sys-title-small-weight))}.mat-mdc-tab.mdc-tab{flex-grow:0}.mat-mdc-tab .mdc-tab-indicator__content--underline{border-color:var(--mat-tab-active-indicator-color, var(--mat-sys-primary));border-top-width:var(--mat-tab-active-indicator-height, 2px);border-radius:var(--mat-tab-active-indicator-shape, 0)}.mat-mdc-tab:hover .mdc-tab__text-label{color:var(--mat-tab-inactive-hover-label-text-color, var(--mat-sys-on-surface))}.mat-mdc-tab:focus .mdc-tab__text-label{color:var(--mat-tab-inactive-focus-label-text-color, var(--mat-sys-on-surface))}.mat-mdc-tab.mdc-tab--active .mdc-tab__text-label{color:var(--mat-tab-active-label-text-color, var(--mat-sys-on-surface))}.mat-mdc-tab.mdc-tab--active .mdc-tab__ripple::before,.mat-mdc-tab.mdc-tab--active .mat-ripple-element{background-color:var(--mat-tab-active-ripple-color, var(--mat-sys-on-surface))}.mat-mdc-tab.mdc-tab--active:hover .mdc-tab__text-label{color:var(--mat-tab-active-hover-label-text-color, var(--mat-sys-on-surface))}.mat-mdc-tab.mdc-tab--active:hover .mdc-tab-indicator__content--underline{border-color:var(--mat-tab-active-hover-indicator-color, var(--mat-sys-primary))}.mat-mdc-tab.mdc-tab--active:focus .mdc-tab__text-label{color:var(--mat-tab-active-focus-label-text-color, var(--mat-sys-on-surface))}.mat-mdc-tab.mdc-tab--active:focus .mdc-tab-indicator__content--underline{border-color:var(--mat-tab-active-focus-indicator-color, var(--mat-sys-primary))}.mat-mdc-tab.mat-mdc-tab-disabled{opacity:.4;pointer-events:none}.mat-mdc-tab.mat-mdc-tab-disabled .mdc-tab__content{pointer-events:none}.mat-mdc-tab.mat-mdc-tab-disabled .mdc-tab__ripple::before,.mat-mdc-tab.mat-mdc-tab-disabled .mat-ripple-element{background-color:var(--mat-tab-disabled-ripple-color, var(--mat-sys-on-surface-variant))}.mat-mdc-tab .mdc-tab__ripple::before{content:"";display:block;position:absolute;top:0;left:0;right:0;bottom:0;opacity:0;pointer-events:none;background-color:var(--mat-tab-inactive-ripple-color, var(--mat-sys-on-surface))}.mat-mdc-tab .mdc-tab__text-label{color:var(--mat-tab-inactive-label-text-color, var(--mat-sys-on-surface));display:inline-flex;align-items:center}.mat-mdc-tab .mdc-tab__content{position:relative;pointer-events:auto}.mat-mdc-tab:hover .mdc-tab__ripple::before{opacity:.04}.mat-mdc-tab.cdk-program-focused .mdc-tab__ripple::before,.mat-mdc-tab.cdk-keyboard-focused .mdc-tab__ripple::before{opacity:.12}.mat-mdc-tab .mat-ripple-element{opacity:.12;background-color:var(--mat-tab-inactive-ripple-color, var(--mat-sys-on-surface))}.mat-mdc-tab-group.mat-mdc-tab-group-stretch-tabs>.mat-mdc-tab-header .mat-mdc-tab{flex-grow:1}.mat-mdc-tab-group{display:flex;flex-direction:column;max-width:100%}.mat-mdc-tab-group.mat-tabs-with-background>.mat-mdc-tab-header,.mat-mdc-tab-group.mat-tabs-with-background>.mat-mdc-tab-header-pagination{background-color:var(--mat-tab-background-color)}.mat-mdc-tab-group.mat-tabs-with-background.mat-primary>.mat-mdc-tab-header .mat-mdc-tab .mdc-tab__text-label{color:var(--mat-tab-foreground-color)}.mat-mdc-tab-group.mat-tabs-with-background.mat-primary>.mat-mdc-tab-header .mdc-tab-indicator__content--underline{border-color:var(--mat-tab-foreground-color)}.mat-mdc-tab-group.mat-tabs-with-background:not(.mat-primary)>.mat-mdc-tab-header .mat-mdc-tab:not(.mdc-tab--active) .mdc-tab__text-label{color:var(--mat-tab-foreground-color)}.mat-mdc-tab-group.mat-tabs-with-background:not(.mat-primary)>.mat-mdc-tab-header .mat-mdc-tab:not(.mdc-tab--active) .mdc-tab-indicator__content--underline{border-color:var(--mat-tab-foreground-color)}.mat-mdc-tab-group.mat-tabs-with-background>.mat-mdc-tab-header .mat-mdc-tab-header-pagination-chevron,.mat-mdc-tab-group.mat-tabs-with-background>.mat-mdc-tab-header .mat-focus-indicator::before,.mat-mdc-tab-group.mat-tabs-with-background>.mat-mdc-tab-header-pagination .mat-mdc-tab-header-pagination-chevron,.mat-mdc-tab-group.mat-tabs-with-background>.mat-mdc-tab-header-pagination .mat-focus-indicator::before{border-color:var(--mat-tab-foreground-color)}.mat-mdc-tab-group.mat-tabs-with-background>.mat-mdc-tab-header .mat-ripple-element,.mat-mdc-tab-group.mat-tabs-with-background>.mat-mdc-tab-header .mdc-tab__ripple::before,.mat-mdc-tab-group.mat-tabs-with-background>.mat-mdc-tab-header-pagination .mat-ripple-element,.mat-mdc-tab-group.mat-tabs-with-background>.mat-mdc-tab-header-pagination .mdc-tab__ripple::before{background-color:var(--mat-tab-foreground-color)}.mat-mdc-tab-group.mat-tabs-with-background>.mat-mdc-tab-header .mat-mdc-tab-header-pagination-chevron,.mat-mdc-tab-group.mat-tabs-with-background>.mat-mdc-tab-header-pagination .mat-mdc-tab-header-pagination-chevron{color:var(--mat-tab-foreground-color)}.mat-mdc-tab-group.mat-mdc-tab-group-inverted-header{flex-direction:column-reverse}.mat-mdc-tab-group.mat-mdc-tab-group-inverted-header .mdc-tab-indicator__content--underline{align-self:flex-start}.mat-mdc-tab-body-wrapper{position:relative;overflow:hidden;display:flex;transition:height 500ms cubic-bezier(0.35, 0, 0.25, 1)}.mat-mdc-tab-body-wrapper._mat-animation-noopable{transition:none !important;animation:none !important} -`],encapsulation:2})}return t})(),RI=class{index;tab},PI=(()=>{class t extends N8{_focusedItem=he(null);get fitInkBarToContent(){return this._fitInkBarToContent.value}set fitInkBarToContent(e){this._fitInkBarToContent.next(e),this._changeDetectorRef.markForCheck()}_fitInkBarToContent=new tt(!1);stretchTabs=!0;get animationDuration(){return this._animationDuration}set animationDuration(e){let i=e+"";this._animationDuration=/^\d+$/.test(i)?e+"ms":i}_animationDuration;_items;get backgroundColor(){return this._backgroundColor}set backgroundColor(e){let i=this._elementRef.nativeElement.classList;i.remove("mat-tabs-with-background",`mat-background-${this.backgroundColor}`),e&&i.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=he(!1);color="primary";tabPanel;_tabListContainer;_tabList;_tabListInner;_nextPaginator;_previousPaginator;_inkBar;constructor(){let e=u(L8,{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 ew(this._items),this._items.changes.pipe(He(null),Te(this._destroyed)).subscribe(()=>this.updateActiveLink()),super.ngAfterContentInit(),this._keyManager.change.pipe(He(null),Te(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 i=0;i.mat-mdc-tab-link-container .mat-mdc-tab-links{justify-content:center}[mat-align-tabs=end]>.mat-mdc-tab-link-container .mat-mdc-tab-links{justify-content:flex-end}.cdk-drop-list .mat-mdc-tab-links,.mat-mdc-tab-links.cdk-drop-list{min-height:var(--mat-tab-container-height, 48px)}.mat-mdc-tab-link-container{display:flex;flex-grow:1;overflow:hidden;z-index:1;border-bottom-style:solid;border-bottom-width:var(--mat-tab-divider-height, 1px);border-bottom-color:var(--mat-tab-divider-color, var(--mat-sys-surface-variant))}.mat-mdc-tab-nav-bar.mat-tabs-with-background>.mat-mdc-tab-link-container,.mat-mdc-tab-nav-bar.mat-tabs-with-background>.mat-mdc-tab-header-pagination{background-color:var(--mat-tab-background-color)}.mat-mdc-tab-nav-bar.mat-tabs-with-background.mat-primary>.mat-mdc-tab-link-container .mat-mdc-tab-link .mdc-tab__text-label{color:var(--mat-tab-foreground-color)}.mat-mdc-tab-nav-bar.mat-tabs-with-background.mat-primary>.mat-mdc-tab-link-container .mdc-tab-indicator__content--underline{border-color:var(--mat-tab-foreground-color)}.mat-mdc-tab-nav-bar.mat-tabs-with-background:not(.mat-primary)>.mat-mdc-tab-link-container .mat-mdc-tab-link:not(.mdc-tab--active) .mdc-tab__text-label{color:var(--mat-tab-foreground-color)}.mat-mdc-tab-nav-bar.mat-tabs-with-background:not(.mat-primary)>.mat-mdc-tab-link-container .mat-mdc-tab-link:not(.mdc-tab--active) .mdc-tab-indicator__content--underline{border-color:var(--mat-tab-foreground-color)}.mat-mdc-tab-nav-bar.mat-tabs-with-background>.mat-mdc-tab-link-container .mat-mdc-tab-header-pagination-chevron,.mat-mdc-tab-nav-bar.mat-tabs-with-background>.mat-mdc-tab-link-container .mat-focus-indicator::before,.mat-mdc-tab-nav-bar.mat-tabs-with-background>.mat-mdc-tab-header-pagination .mat-mdc-tab-header-pagination-chevron,.mat-mdc-tab-nav-bar.mat-tabs-with-background>.mat-mdc-tab-header-pagination .mat-focus-indicator::before{border-color:var(--mat-tab-foreground-color)}.mat-mdc-tab-nav-bar.mat-tabs-with-background>.mat-mdc-tab-link-container .mat-ripple-element,.mat-mdc-tab-nav-bar.mat-tabs-with-background>.mat-mdc-tab-link-container .mdc-tab__ripple::before,.mat-mdc-tab-nav-bar.mat-tabs-with-background>.mat-mdc-tab-header-pagination .mat-ripple-element,.mat-mdc-tab-nav-bar.mat-tabs-with-background>.mat-mdc-tab-header-pagination .mdc-tab__ripple::before{background-color:var(--mat-tab-foreground-color)}.mat-mdc-tab-nav-bar.mat-tabs-with-background>.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 t})(),zfe=(()=>{class t extends P8{_tabNavBar=u(PI);elementRef=u(q);_focusMonitor=u(Yt);_destroyed=new z;_isActive=!1;_tabIndex=Zt(()=>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=he(!1);tabIndex=0;rippleConfig;get rippleDisabled(){return this.disabled||this.disableRipple||this._tabNavBar.disableRipple||!!this.rippleConfig.disabled}id=u(Ze).getId("mat-tab-link-");constructor(){super(),u(ut).load(Di);let e=u(Cs,{optional:!0}),i=u(new Ii("tabindex"),{optional:!0});this.rippleConfig=e||{},this.tabIndex=i==null?0:parseInt(i)||0,Ye()&&(this.rippleConfig.animation={enterDuration:0,exitDuration:0}),this._tabNavBar._fitInkBarToContent.pipe(Te(this._destroyed)).subscribe(r=>{this.fitInkBarToContent=r})}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(i){return new(i||t)};static \u0275cmp=E({type:t,selectors:[["","mat-tab-link",""],["","matTabLink",""]],hostAttrs:[1,"mdc-tab","mat-mdc-tab-link","mat-focus-indicator"],hostVars:11,hostBindings:function(i,r){i&1&&S("focus",function(){return r._handleFocus()})("keydown",function(a){return r._handleKeydown(a)}),i&2&&(X("aria-controls",r._getAriaControls())("aria-current",r._getAriaCurrent())("aria-disabled",r.disabled)("aria-selected",r._getAriaSelected())("id",r.id)("tabIndex",r._tabIndex())("role",r._getRole()),G("mat-mdc-tab-disabled",r.disabled)("mdc-tab--active",r.active))},inputs:{active:[2,"active","active",V],disabled:[2,"disabled","disabled",V],disableRipple:[2,"disableRipple","disableRipple",V],tabIndex:[2,"tabIndex","tabIndex",e=>e==null?0:ct(e)],id:"id"},exportAs:["matTabLink"],features:[le],attrs:Pfe,ngContentSelectors:np,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(i,r){i&1&&(Me(),k(0,"span",0)(1,"div",1),h(2,"span",2)(3,"span",3),oe(4),p()()),i&2&&(g(),y("matRippleTrigger",r.elementRef.nativeElement)("matRippleDisabled",r.rippleDisabled))},dependencies:[Vn],styles:[`.mat-mdc-tab-link{-webkit-tap-highlight-color:rgba(0,0,0,0);-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;text-decoration:none;background:none;height:var(--mat-tab-container-height, 48px);font-family:var(--mat-tab-label-text-font, var(--mat-sys-title-small-font));font-size:var(--mat-tab-label-text-size, var(--mat-sys-title-small-size));letter-spacing:var(--mat-tab-label-text-tracking, var(--mat-sys-title-small-tracking));line-height:var(--mat-tab-label-text-line-height, var(--mat-sys-title-small-line-height));font-weight:var(--mat-tab-label-text-weight, var(--mat-sys-title-small-weight))}.mat-mdc-tab-link.mdc-tab{flex-grow:0}.mat-mdc-tab-link .mdc-tab-indicator__content--underline{border-color:var(--mat-tab-active-indicator-color, var(--mat-sys-primary));border-top-width:var(--mat-tab-active-indicator-height, 2px);border-radius:var(--mat-tab-active-indicator-shape, 0)}.mat-mdc-tab-link:hover .mdc-tab__text-label{color:var(--mat-tab-inactive-hover-label-text-color, var(--mat-sys-on-surface))}.mat-mdc-tab-link:focus .mdc-tab__text-label{color:var(--mat-tab-inactive-focus-label-text-color, var(--mat-sys-on-surface))}.mat-mdc-tab-link.mdc-tab--active .mdc-tab__text-label{color:var(--mat-tab-active-label-text-color, var(--mat-sys-on-surface))}.mat-mdc-tab-link.mdc-tab--active .mdc-tab__ripple::before,.mat-mdc-tab-link.mdc-tab--active .mat-ripple-element{background-color:var(--mat-tab-active-ripple-color, var(--mat-sys-on-surface))}.mat-mdc-tab-link.mdc-tab--active:hover .mdc-tab__text-label{color:var(--mat-tab-active-hover-label-text-color, var(--mat-sys-on-surface))}.mat-mdc-tab-link.mdc-tab--active:hover .mdc-tab-indicator__content--underline{border-color:var(--mat-tab-active-hover-indicator-color, var(--mat-sys-primary))}.mat-mdc-tab-link.mdc-tab--active:focus .mdc-tab__text-label{color:var(--mat-tab-active-focus-label-text-color, var(--mat-sys-on-surface))}.mat-mdc-tab-link.mdc-tab--active:focus .mdc-tab-indicator__content--underline{border-color:var(--mat-tab-active-focus-indicator-color, var(--mat-sys-primary))}.mat-mdc-tab-link.mat-mdc-tab-disabled{opacity:.4;pointer-events:none}.mat-mdc-tab-link.mat-mdc-tab-disabled .mdc-tab__content{pointer-events:none}.mat-mdc-tab-link.mat-mdc-tab-disabled .mdc-tab__ripple::before,.mat-mdc-tab-link.mat-mdc-tab-disabled .mat-ripple-element{background-color:var(--mat-tab-disabled-ripple-color, var(--mat-sys-on-surface-variant))}.mat-mdc-tab-link .mdc-tab__ripple::before{content:"";display:block;position:absolute;top:0;left:0;right:0;bottom:0;opacity:0;pointer-events:none;background-color:var(--mat-tab-inactive-ripple-color, var(--mat-sys-on-surface))}.mat-mdc-tab-link .mdc-tab__text-label{color:var(--mat-tab-inactive-label-text-color, var(--mat-sys-on-surface));display:inline-flex;align-items:center}.mat-mdc-tab-link .mdc-tab__content{position:relative;pointer-events:auto}.mat-mdc-tab-link:hover .mdc-tab__ripple::before{opacity:.04}.mat-mdc-tab-link.cdk-program-focused .mdc-tab__ripple::before,.mat-mdc-tab-link.cdk-keyboard-focused .mdc-tab__ripple::before{opacity:.12}.mat-mdc-tab-link .mat-ripple-element{opacity:.12;background-color:var(--mat-tab-inactive-ripple-color, var(--mat-sys-on-surface))}.mat-mdc-tab-header.mat-mdc-tab-nav-bar-stretch-tabs .mat-mdc-tab-link{flex-grow:1}.mat-mdc-tab-link::before{margin:5px}@media(max-width: 599px){.mat-mdc-tab-link{min-width:72px}} -`],encapsulation:2,changeDetection:0})}return t})(),V8=(()=>{class t{id=u(Ze).getId("mat-tab-nav-panel-");_activeTabId;static \u0275fac=function(i){return new(i||t)};static \u0275cmp=E({type:t,selectors:[["mat-tab-nav-panel"]],hostAttrs:["role","tabpanel",1,"mat-mdc-tab-nav-panel"],hostVars:2,hostBindings:function(i,r){i&2&&X("aria-labelledby",r._activeTabId)("id",r.id)},inputs:{id:"id"},exportAs:["matTabNavPanel"],ngContentSelectors:np,decls:1,vars:0,template:function(i,r){i&1&&(Me(),oe(0))},encapsulation:2,changeDetection:0})}return t})(),rp=(()=>{class t{static \u0275fac=function(i){return new(i||t)};static \u0275mod=ee({type:t});static \u0275inj=J({imports:[we,we]})}return t})();function Ufe(t,n){if(t&1&&(h(0,"div",1)(1,"div"),_(2),p(),h(3,"div",2)(4,"div",3),_(5),p(),h(6,"div",4),_(7),p()()()),t&2){let e=n.$implicit;g(),it($o("d-flex align-items-center justify-content-center r-12 ",e.color)),Dt("width",3,"rem")("height",3,"rem"),g(),ve(" ",e.icon," "),g(3),H(e.title),g(2),H(e.content)}}function $fe(t,n){if(t&1&&(h(0,"mat-tab",0),xt(1,Ufe,8,10,"div",1,Hi),p()),t&2){let e=n.$implicit;y("label",e.label),g(),Ct(e.messages)}}var B8=(()=>{let n=class n{constructor(){this.tabs=[{label:"Today",messages:[{icon:"\u{1F514}",color:"bg-red-95",title:"General Meeting for update",content:"You can use the Dashboard to explore how many new users download reports daily and monthly."},{icon:"\u{1F4E2}",color:"bg-azure-95",title:"Widgets update",content:"We've made some updates to the emendable widget which we think you are going to love."},{icon:"\u23F3",color:"bg-violet-95",title:"Coming soon new features",content:"More new features are coming soon, so stay patient!"}]},{label:"Notifications",messages:[{icon:"\u{1F4E9}",color:"bg-magenta-95",title:"Weekly reports are available",content:"Please go to the notification center to check your reports."}]}]}};n.\u0275fac=function(r){return new(r||n)},n.\u0275cmp=E({type:n,selectors:[["app-sidebar-notice"]],hostAttrs:[1,"matero-sidebar-notice"],decls:3,vars:0,consts:[[3,"label"],[1,"d-flex","align-items-center","gap-16","p-16","m-b-16","b-1","r-12"],[1,"flex-grow-1","w-0"],[1,"f-w-600"],[1,"f-s-14"]],template:function(r,o){r&1&&(h(0,"mat-tab-group"),xt(1,$fe,3,1,"mat-tab",0,Hi),p()),r&2&&(g(),Ct(o.tabs))},dependencies:[rp,__,tw],styles:[`.matero-sidebar-notice{display:block;height:100%}.matero-sidebar-notice .mat-mdc-tab-group{height:100%}.matero-sidebar-notice .mat-mdc-tab-body-wrapper{flex:1}.matero-sidebar-notice .mat-mdc-tab-body-content{padding:1rem} -`],encapsulation:2});let t=n;return t})();var Wfe=["switch"],Gfe=["*"];function qfe(t,n){t&1&&(h(0,"span",11),Gt(),h(1,"svg",13),k(2,"path",14),p(),h(3,"svg",15),k(4,"path",16),p()())}var Yfe=new T("mat-slide-toggle-default-options",{providedIn:"root",factory:()=>({disableToggleValue:!1,hideIcon:!1,disabledInteractive:!1})}),iw=class{source;checked;constructor(n,e){this.source=n,this.checked=e}},NI=(()=>{class t{_elementRef=u(q);_focusMonitor=u(Yt);_changeDetectorRef=u(ye);defaults=u(Yfe);_onChange=e=>{};_onTouched=()=>{};_validatorOnChange=()=>{};_uniqueId;_checked=!1;_createChangeEvent(e){return new iw(this,e)}_labelId;get buttonId(){return`${this.id||this._uniqueId}-button`}_switchElement;focus(){this._switchElement.nativeElement.focus()}_noopAnimations=Ye();_focused;name=null;id;labelPosition="after";ariaLabel=null;ariaLabelledby=null;ariaDescribedby;required;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 U;toggleChange=new U;get inputId(){return`${this.id||this._uniqueId}-input`}constructor(){u(ut).load(Di);let e=u(new Ii("tabindex"),{optional:!0}),i=this.defaults;this.tabIndex=e==null?0:parseInt(e)||0,this.color=i.color||"accent",this.id=this._uniqueId=u(Ze).getId("mat-mdc-slide-toggle-"),this.hideIcon=i.hideIcon??!1,this.disabledInteractive=i.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 iw(this,this.checked))))}_getAriaLabelledBy(){return this.ariaLabelledby?this.ariaLabelledby:this.ariaLabel?null:this._labelId}static \u0275fac=function(i){return new(i||t)};static \u0275cmp=E({type:t,selectors:[["mat-slide-toggle"]],viewQuery:function(i,r){if(i&1&&ie(Wfe,5),i&2){let o;B(o=j())&&(r._switchElement=o.first)}},hostAttrs:[1,"mat-mdc-slide-toggle"],hostVars:13,hostBindings:function(i,r){i&2&&(si("id",r.id),X("tabindex",null)("aria-label",null)("name",null)("aria-labelledby",null),it(r.color?"mat-"+r.color:""),G("mat-mdc-slide-toggle-focused",r._focused)("mat-mdc-slide-toggle-checked",r.checked)("_mat-animation-noopable",r._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",V],color:"color",disabled:[2,"disabled","disabled",V],disableRipple:[2,"disableRipple","disableRipple",V],tabIndex:[2,"tabIndex","tabIndex",e=>e==null?0:ct(e)],checked:[2,"checked","checked",V],hideIcon:[2,"hideIcon","hideIcon",V],disabledInteractive:[2,"disabledInteractive","disabledInteractive",V]},outputs:{change:"change",toggleChange:"toggleChange"},exportAs:["matSlideToggle"],features:[Ce([{provide:tr,useExisting:Kt(()=>t),multi:!0},{provide:ea,useExisting:t,multi:!0}]),Ae],ngContentSelectors:Gfe,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(i,r){if(i&1){let o=Y();Me(),h(0,"div",1)(1,"button",2,0),S("click",function(){return I(o),A(r._handleClick())}),k(3,"div",3)(4,"span",4),h(5,"span",5)(6,"span",6)(7,"span",7),k(8,"span",8),p(),h(9,"span",9),k(10,"span",10),p(),N(11,qfe,5,0,"span",11),p()()(),h(12,"label",12),S("click",function(s){return I(o),A(s.stopPropagation())}),oe(13),p()()}if(i&2){let o=Se(2);y("labelPosition",r.labelPosition),g(),G("mdc-switch--selected",r.checked)("mdc-switch--unselected",!r.checked)("mdc-switch--checked",r.checked)("mdc-switch--disabled",r.disabled)("mat-mdc-slide-toggle-disabled-interactive",r.disabledInteractive),y("tabIndex",r.disabled&&!r.disabledInteractive?-1:r.tabIndex)("disabled",r.disabled&&!r.disabledInteractive),X("id",r.buttonId)("name",r.name)("aria-label",r.ariaLabel)("aria-labelledby",r._getAriaLabelledBy())("aria-describedby",r.ariaDescribedby)("aria-required",r.required||null)("aria-checked",r.checked)("aria-disabled",r.disabled&&r.disabledInteractive?"true":null),g(9),y("matRippleTrigger",o)("matRippleDisabled",r.disableRipple||r.disabled)("matRippleCentered",!0),g(),L(r.hideIcon?-1:11),g(),y("for",r.buttonId),X("id",r._labelId)}},dependencies:[Vn,Gm],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 rgba(0,0,0,0);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 rgba(0,0,0,0);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:rgba(0,0,0,0);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:.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-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 t})(),j8=(()=>{class t{static \u0275fac=function(i){return new(i||t)};static \u0275mod=ee({type:t});static \u0275inj=J({imports:[NI,we,we]})}return t})();var nw=(()=>{let n=class n{constructor(){this.router=u(Re),this.menu=u(so),this.navItems=[],this.router.events.pipe(ce(i=>i instanceof vi)).subscribe(()=>this.checkOpenedItems()),this.menu.change().pipe(Rt(10)).subscribe(()=>{setTimeout(()=>this.checkOpenedItems())})}addItem(i){this.navItems.push(i)}removeItem(i){let r=this.navItems.indexOf(i);r!==-1&&this.navItems.splice(r,1)}closeOtherItems(i){this.navItems.forEach(r=>{r!==i&&r.setExpanded(!1)})}checkOpenedItems(){this.navItems.forEach(i=>{let r=i.route();r&&this.router.url.split("/").includes(r)&&(i.setExpanded(!0),this.closeOtherItems(i))})}};n.\u0275fac=function(r){return new(r||n)},n.\u0275dir=F({type:n,selectors:[["","navAccordion",""]],exportAs:["navAccordion"]});let t=n;return t})();var rw=(()=>{let n=class n{constructor(){this.nav=u(nw),this.route=ne(""),this.expanded=he(!1)}ngOnInit(){this.nav.addItem(this)}ngOnDestroy(){this.nav.removeItem(this)}toggle(){this.expanded.update(i=>!i),this.expanded()&&this.nav.closeOtherItems(this)}setExpanded(i){this.expanded()!==i&&this.expanded.set(i)}};n.\u0275fac=function(r){return new(r||n)},n.\u0275dir=F({type:n,selectors:[["","navAccordionItem",""]],hostVars:2,hostBindings:function(r,o){r&2&&G("expanded",o.expanded())},inputs:{route:[1,"route"]},exportAs:["navAccordionItem"]});let t=n;return t})();var H8=(()=>{let n=class n{constructor(){this.navItem=u(rw)}onClick(){this.navItem.toggle()}};n.\u0275fac=function(r){return new(r||n)},n.\u0275dir=F({type:n,selectors:[["","navAccordionToggle",""]],hostBindings:function(r,o){r&1&&S("click",function(){return o.onClick()})},exportAs:["navAccordionToggle"]});let t=n;return t})();var Kfe=()=>[],Zfe=(t,n)=>({menuList:t,parentRoute:n,level:0}),z8=t=>[t],ow=(t,n)=>({item:t,level:n}),Xfe=(t,n,e)=>({menuList:t,parentRoute:n,level:e});function Jfe(t,n){if(t&1&&(h(0,"a",6),Ge(1,2),p()),t&2){let e=C(2).$implicit,i=C(),r=i.parentRoute,o=i.level,a=C(),s=Se(5);y("routerLink",a.menu.buildRoute(r.concat(Pt(3,z8,e.route)))),g(),y("ngTemplateOutlet",s)("ngTemplateOutletContext",wa(5,ow,e,o))}}function ege(t,n){if(t&1&&(h(0,"a",7),Ge(1,2),p()),t&2){let e=C(2).$implicit,i=C().level;C();let r=Se(5);y("href",e.route,$r),g(),y("ngTemplateOutlet",r)("ngTemplateOutletContext",wa(3,ow,e,i))}}function tge(t,n){if(t&1&&(h(0,"a",8),Ge(1,2),p()),t&2){let e=C(2).$implicit,i=C().level;C();let r=Se(5);y("href",e.route,$r),g(),y("ngTemplateOutlet",r)("ngTemplateOutletContext",wa(3,ow,e,i))}}function ige(t,n){if(t&1&&(h(0,"button",9),Ge(1,2),p(),Ge(2,2)),t&2){let e=C(2).$implicit,i=C(),r=i.parentRoute,o=i.level;C();let a=Se(3),s=Se(5);g(),y("ngTemplateOutlet",s)("ngTemplateOutletContext",wa(4,ow,e,o)),g(),y("ngTemplateOutlet",a)("ngTemplateOutletContext",Rd(9,Xfe,e.children,r.concat(Pt(7,z8,e.route)),o+1))}}function nge(t,n){if(t&1&&(h(0,"li",5),N(1,Jfe,2,8,"a",6),N(2,ege,2,6,"a",7),N(3,tge,2,6,"a",8),N(4,ige,3,13),p()),t&2){let e=C().$implicit;y("route",e.route),g(),L(e.type==="link"?1:-1),g(),L(e.type==="extLink"?2:-1),g(),L(e.type==="extTabLink"?3:-1),g(),L(e.type==="sub"?4:-1)}}function rge(t,n){if(t&1&&R(0,nge,5,5,"ng-template",4),t&2){let e=n.$implicit;y("ngxPermissionsOnly",e.permissions==null?null:e.permissions.only)("ngxPermissionsExcept",e.permissions==null?null:e.permissions.except)}}function oge(t,n){if(t&1&&(h(0,"ul",3),xt(1,rge,1,2,null,4,Hi),p()),t&2){let e=n.menuList,i=n.level;it($o("matero-sidemenu level-",i)),G("submenu",i>0),g(),Ct(e)}}function age(t,n){if(t&1&&(h(0,"mat-icon",14),_(1),p()),t&2){let e=C(),i=e.item,r=e.level;G("submenu-icon",r>0),g(),H(i.icon)}}function sge(t,n){if(t&1&&(h(0,"span",14),_(1),me(2,"translate"),me(3,"slice"),p()),t&2){let e=C(),i=e.item,r=e.level;G("submenu-icon",r>0),g(),ve(" ",BM(3,5,Oe(2,3,i.name),0,1)," ")}}function lge(t,n){if(t&1&&(h(0,"span"),_(1),p()),t&2){let e=C().item;it($o("menu-label bg-",e.label.color)),g(),H(e.label.value)}}function cge(t,n){if(t&1&&(h(0,"span"),_(1),p()),t&2){let e=C().item;it($o("menu-badge bg-",e.badge.color)),g(),H(e.badge.value)}}function dge(t,n){if(t&1&&(h(0,"mat-icon",13),_(1),p()),t&2){let e=C().item;g(),H(e.type==="sub"?"arrow_drop_down":"launch")}}function uge(t,n){if(t&1&&(N(0,age,2,3,"mat-icon",10)(1,sge,4,9,"span",10),h(2,"span",11),_(3),me(4,"translate"),p(),N(5,lge,2,4,"span",12),N(6,cge,2,4,"span",12),N(7,dge,2,1,"mat-icon",13)),t&2){let e=n.item;L(e.icon?0:1),g(3),H(Oe(4,5,e.name)),g(2),L(e.label?5:-1),g(),L(e.badge?6:-1),g(),L(e.type!=="link"?7:-1)}}var U8=(()=>{let n=class n{constructor(){this.menu=u(so)}};n.\u0275fac=function(r){return new(r||n)},n.\u0275cmp=E({type:n,selectors:[["app-sidemenu"]],decls:6,vars:8,consts:[["menuTpl",""],["linkTypeTpl",""],[3,"ngTemplateOutlet","ngTemplateOutletContext"],["navAccordion",""],[3,"ngxPermissionsOnly","ngxPermissionsExcept"],["navAccordionItem","","routerLinkActive","active",1,"menu-item",3,"route"],["matRipple","",1,"menu-heading",3,"routerLink"],["matRipple","",1,"menu-heading",3,"href"],["target","_blank","matRipple","",1,"menu-heading",3,"href"],["navAccordionToggle","","matRipple","",1,"menu-heading","menu-toggle"],[1,"menu-icon",3,"submenu-icon"],[1,"menu-name"],[3,"class"],[1,"menu-caret"],[1,"menu-icon"]],template:function(r,o){if(r&1&&(Ge(0,2),me(1,"async"),R(2,oge,3,5,"ng-template",null,0,_i)(4,uge,8,7,"ng-template",null,1,_i)),r&2){let a=Se(3);y("ngTemplateOutlet",a)("ngTemplateOutletContext",wa(5,Zfe,Oe(1,2,o.menu.getAll()),at(4,Kfe)))}},dependencies:[Fn,Nn,zd,xc,Ih,ot,mt,yo,Vn,wr,nw,rw,H8,rn,d1,Cr],styles:[`.matero-sidemenu{padding:0;margin:0;list-style:none}.matero-sidemenu .menu-item{overflow:hidden;border-radius:1.5rem;transition:background 225ms cubic-bezier(.4,0,.2,1)}.matero-sidemenu .menu-item>.submenu{visibility:hidden;height:0;transition:all 225ms cubic-bezier(.4,0,.2,1)}.matero-sidemenu .menu-item>.menu-heading:hover,.matero-sidemenu .menu-item>.menu-heading:focus{background-color:var(--sidemenu-heading-hover-background-color)}.matero-sidemenu .menu-item.active>.menu-heading{color:var(--sidemenu-active-heading-text-color);background-color:var(--sidemenu-active-heading-background-color)}.matero-sidemenu .menu-item.active>.menu-heading:hover,.matero-sidemenu .menu-item.active>.menu-heading:focus{background-color:var(--sidemenu-active-heading-hover-background-color)}.matero-sidemenu .menu-item.expanded{background-color:var(--sidemenu-expanded-background-color)}.matero-sidemenu .menu-item.expanded>.submenu{visibility:visible;height:auto;height:calc-size(auto,size)}.matero-sidemenu .menu-item.expanded>.menu-toggle>.menu-caret{transform:rotate(-180deg)}.matero-sidemenu .menu-item:has(.active)>.menu-heading{color:var(--sidemenu-active-heading-text-color)}.matero-sidemenu .menu-heading{position:relative;display:flex;align-items:center;width:calc(var(--sidenav-width) - 1rem);padding:.75rem;font-size:inherit;color:inherit;text-decoration:none;cursor:pointer;outline:none;background-color:transparent;border:none;border-radius:1.5rem}.matero-sidemenu .menu-icon{width:1.5rem;height:1.5rem;margin-right:.75rem;font-size:1.25rem;line-height:1.5rem;text-align:center}[dir=rtl] .matero-sidemenu .menu-icon{margin-right:0;margin-left:.75rem}.matero-sidemenu .menu-icon.submenu-icon{position:absolute;left:.75rem;width:1.5rem;height:1.5rem;font-size:1rem;line-height:1.5rem;opacity:0}[dir=rtl] .matero-sidemenu .menu-icon.submenu-icon{right:.75rem;left:0}.matero-sidemenu .menu-caret{display:block;width:1.5rem;height:1.5rem;font-size:1.5rem;line-height:1.5rem;text-align:center;transition:transform .4s cubic-bezier(.25,.8,.25,1)}.matero-sidemenu .menu-name{flex:1;overflow:hidden;text-overflow:ellipsis;text-align:initial}.matero-sidemenu .menu-icon,.matero-sidemenu .menu-name,.matero-sidemenu .menu-label,.matero-sidemenu .menu-badge{transition:opacity .4s cubic-bezier(.25,.8,.25,1)}.matero-sidemenu .menu-label,.matero-sidemenu .menu-badge{padding:.25rem .5rem;font-size:.75rem;font-weight:700;line-height:1;color:#fff;background-color:#757575;border-radius:.375rem}.matero-sidemenu .menu-badge{border-radius:50rem}.matero-sidemenu.level-1>li>.menu-heading{padding-left:3rem}[dir=rtl] .matero-sidemenu.level-1>li>.menu-heading{padding-right:3rem;padding-left:1rem}.matero-sidemenu.level-2>li>.menu-heading{padding-left:4rem}[dir=rtl] .matero-sidemenu.level-2>li>.menu-heading{padding-right:4rem;padding-left:1rem}.matero-sidemenu.level-2 [class^=level-]>li>.menu-heading{padding-left:5rem}[dir=rtl] .matero-sidemenu.level-2 [class^=level-]>li>.menu-heading{padding-right:5rem;padding-left:1rem} -`],encapsulation:2});let t=n;return t})();var $8=(()=>{let n=class n{constructor(){this.oidcAuth=u(Tt),this.userName="Guest",this.userEmail="Anonymous"}ngOnInit(){this.updateUserInfo(),this.authSubscription=this.oidcAuth.isAuthenticated$.subscribe(i=>{console.log("UserPanel: Auth state changed:",i),this.updateUserInfo()})}ngOnDestroy(){this.authSubscription?.unsubscribe()}updateUserInfo(){let i=this.oidcAuth.isAuthenticated();if(console.log("UserPanel: Updating user info, isAuthenticated:",i),!i){this.userName="Guest",this.userEmail="Anonymous";return}let r=this.oidcAuth.getUserInfo();console.log("UserPanel: User info from service:",r),console.log("UserPanel: Available claims:",r?Object.keys(r):"null"),this.userName=r?.name||r?.preferred_username||r?.given_name||r?.["http://schemas.xmlsoap.org/ws/2005/05/identity/claims/name"]||r?.sub||"User",this.userEmail=r?.email||r?.["http://schemas.xmlsoap.org/ws/2005/05/identity/claims/emailaddress"]||"",console.log("UserPanel: Set userName to:",this.userName,"email to:",this.userEmail)}};n.\u0275fac=function(r){return new(r||n)},n.\u0275cmp=E({type:n,selectors:[["app-user-panel"]],decls:8,vars:4,consts:[[1,"matero-user-panel"],[1,"matero-user-panel-avatar"],[1,"matero-user-panel-info"]],template:function(r,o){r&1&&(h(0,"div",0)(1,"mat-icon",1),_(2,"account_circle"),p(),h(3,"div",2)(4,"h4"),_(5),p(),h(6,"h5"),_(7),p()()()),r&2&&(G("authenticated",o.oidcAuth.isAuthenticated()),g(5),H(o.userName),g(2),H(o.userEmail))},dependencies:[gt,ze,ot,mt,Br,wr],styles:[`.matero-user-panel{display:flex;align-items:center;padding:.75rem;margin-bottom:.75rem;cursor:pointer;outline:none;background-color:var(--user-panel-background-color);border-radius:.75rem}.matero-user-panel:hover,.matero-user-panel:focus{background-color:var(--user-panel-hover-background-color)}.matero-user-panel-avatar{width:3rem;height:3rem;font-size:3rem;border-radius:50rem;color:#0000008a;transform-origin:0 1.5rem;transition:transform .4s cubic-bezier(.25,.8,.25,1)}[dir=rtl] .matero-user-panel-avatar{transform-origin:3rem 1.5rem}.matero-user-panel-info{flex:1;width:0;margin-left:.75rem;opacity:1;transition:opacity .4s cubic-bezier(.25,.8,.25,1)}[dir=rtl] .matero-user-panel-info{margin-right:.75rem;margin-left:0}.matero-user-panel-info h4,.matero-user-panel-info h5{margin:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.matero-user-panel-info h4{margin-bottom:4px;font-size:1rem;font-weight:500}.matero-user-panel-info h5{font-size:.75rem;font-weight:400} -`],encapsulation:2});let t=n;return t})();function mge(t,n){if(t&1){let e=Y();h(0,"mat-slide-toggle",6),S("change",function(){I(e);let r=C(2);return A(r.toggleCollapsed.emit())}),p()}if(t&2){let e=C(2);y("checked",e.toggleChecked())}}function hge(t,n){if(t&1){let e=Y();h(0,"button",7),S("click",function(){I(e);let r=C(2);return A(r.closeSidenav.emit())}),h(1,"mat-icon"),_(2,"close"),p()()}}function pge(t,n){if(t&1&&(h(0,"div",0)(1,"mat-toolbar"),k(2,"app-branding",2)(3,"span",3),N(4,mge,1,1,"mat-slide-toggle",4)(5,hge,3,0,"button",5),p()()),t&2){let e=C();g(2),y("showName",!e.toggleChecked()),g(2),L(e.showToggle()?4:5)}}function fge(t,n){t&1&&k(0,"app-user-panel")}var W8=(()=>{let n=class n{constructor(){this.showToggle=ne(!0),this.showUser=ne(!0),this.showHeader=ne(!0),this.toggleChecked=ne(!1),this.toggleCollapsed=bi(),this.closeSidenav=bi()}};n.\u0275fac=function(r){return new(r||n)},n.\u0275cmp=E({type:n,selectors:[["app-sidebar"]],inputs:{showToggle:[1,"showToggle"],showUser:[1,"showUser"],showHeader:[1,"showHeader"],toggleChecked:[1,"toggleChecked"]},outputs:{toggleCollapsed:"toggleCollapsed",closeSidenav:"closeSidenav"},decls:4,vars:2,consts:[[1,"matero-sidebar-header"],[1,"matero-sidebar-main"],[3,"showName"],[1,"flex-fill"],["hideIcon","",3,"checked"],["mat-icon-button",""],["hideIcon","",3,"change","checked"],["mat-icon-button","",3,"click"]],template:function(r,o){r&1&&(N(0,pge,6,2,"div",0),h(1,"div",1),N(2,fge,1,0,"app-user-panel"),k(3,"app-sidemenu"),p()),r&2&&(L(o.showHeader()?0:-1),g(2),L(o.showUser()?2:-1))},dependencies:[j8,NI,ot,mt,ze,ti,ZC,KC,XC,U8,$8],styles:[`.matero-sidebar-header{overflow:hidden}.matero-sidebar-header mat-toolbar{width:var(--sidenav-width);padding:0 .5rem}.matero-sidebar-header mat-slide-toggle .mdc-label{display:none}.matero-sidebar-main{height:calc(100% - var(--mat-toolbar-standard-height));padding:0 .5rem .5rem;overflow:auto;scrollbar-width:none}@media (max-width: 599px){.matero-sidebar-main{height:calc(100% - var(--mat-toolbar-mobile-height))}} -`],encapsulation:2});let t=n;return t})();var G8=t=>[t],gge=()=>[];function _ge(t,n){if(t&1){let e=Y();h(0,"a",8,0),S("click",function(){I(e);let r=Se(1),o=C(3);return A(o.onRouterLinkClick(r))}),_(2),me(3,"translate"),p()}if(t&2){let e=C(2).$implicit,i=C();y("routerLink",i.menu.buildRoute(i.parentRoute().concat(Pt(4,G8,e.route)))),g(2),ve(" ",Oe(3,2,e.name)," ")}}function bge(t,n){if(t&1&&(h(0,"a",5)(1,"span",9),_(2),me(3,"translate"),p(),h(4,"mat-icon"),_(5,"launch"),p()()),t&2){let e=C(2).$implicit;y("href",e.route,$r),g(2),H(Oe(3,2,e.name))}}function vge(t,n){if(t&1&&(h(0,"a",6)(1,"span",9),_(2),me(3,"translate"),p(),h(4,"mat-icon"),_(5,"launch"),p()()),t&2){let e=C(2).$implicit;y("href",e.route,$r),g(2),H(Oe(3,2,e.name))}}function yge(t,n){if(t&1){let e=Y();h(0,"button",10),_(1),me(2,"translate"),h(3,"app-topmenu-panel",11,1),S("routeChange",function(r){I(e);let o=C(2).$implicit,a=C();return A(a.onRouteChange(r,o))}),p()()}if(t&2){let e=Se(4),i=C(2).$implicit,r=C();G("active",i.active==null?null:i.active()),y("matMenuTriggerFor",e.menuPanel()),g(),ve(" ",Oe(2,7,i.name)," "),g(2),y("items",i.children||at(9,gge))("parentRoute",r.parentRoute().concat(Pt(10,G8,i.route)))("level",r.level()+1)}}function xge(t,n){if(t&1&&(N(0,_ge,4,6,"a",4),N(1,bge,6,4,"a",5),N(2,vge,6,4,"a",6),N(3,yge,5,12,"button",7)),t&2){let e=C().$implicit;L(e.type==="link"?0:-1),g(),L(e.type==="extLink"?1:-1),g(),L(e.type==="extTabLink"?2:-1),g(),L(e.type==="sub"?3:-1)}}function Cge(t,n){if(t&1&&R(0,xge,4,4,"ng-template",3),t&2){let e=n.$implicit;y("ngxPermissionsOnly",e.permissions==null?null:e.permissions.only)("ngxPermissionsExcept",e.permissions==null?null:e.permissions.except)}}var q8=(()=>{let n=class n{constructor(){this.router=u(Re),this.menu=u(so),this.menuPanel=qn.required(jr),this.items=ne([]),this.parentRoute=ne([]),this.level=ne(1),this.routeChange=bi(),this.routerSubscription=this.router.events.pipe(ce(i=>i instanceof vi)).subscribe(i=>{this.items().map(r=>r.active?.set(!1))})}ngOnInit(){this.items().forEach(i=>{i.active=he(this.checkRoute(i))})}ngOnDestroy(){this.routerSubscription.unsubscribe()}checkRoute(i){return i.route?this.router.url.split("/").includes(i.route):this.checkChildRoute(i.children)}checkChildRoute(i=[]){return i.some(r=>this.router.url.split("/").includes(r.route)?!0:(!r.route&&r.children&&this.checkChildRoute(r.children),!1))}onRouterLinkClick(i){this.routeChange.emit(i)}onRouteChange(i,r){this.routeChange.emit(i),this.routerSubscription.unsubscribe(),this.routerSubscription=this.router.events.pipe(ce(o=>o instanceof vi),Be(()=>{this.items().filter(a=>a!=r).map(a=>a.active?.set(!1))}),Rt(10),Be(()=>{r.active?.set(i.isActive)})).subscribe()}};n.\u0275fac=function(r){return new(r||n)},n.\u0275cmp=E({type:n,selectors:[["app-topmenu-panel"]],viewQuery:function(r,o){r&1&&Pn(o.menuPanel,jr,5),r&2&&Ho()},inputs:{items:[1,"items"],parentRoute:[1,"parentRoute"],level:[1,"level"]},outputs:{routeChange:"routeChange"},decls:3,vars:0,consts:[["rla","routerLinkActive"],["submenu",""],[1,"matero-topmenu-panel"],[3,"ngxPermissionsOnly","ngxPermissionsExcept"],["mat-menu-item","","routerLinkActive","active",3,"routerLink"],["mat-menu-item","",3,"href"],["mat-menu-item","","target","_blank",3,"href"],["mat-menu-item","",3,"matMenuTriggerFor","active"],["mat-menu-item","","routerLinkActive","active",3,"click","routerLink"],[1,"menu-name"],["mat-menu-item","",3,"matMenuTriggerFor"],[3,"routeChange","items","parentRoute","level"]],template:function(r,o){r&1&&(h(0,"mat-menu",2),xt(1,Cge,1,2,null,3,Hi),p()),r&2&&(g(),Ct(o.items()))},dependencies:[n,Nn,zd,ot,mt,Ls,jr,El,Ns,xc,Ih,wr,Cr],encapsulation:2});let t=n;return t})();var Y8=t=>[t],sw=t=>({item:t}),wge=()=>[];function Dge(t,n){if(t&1&&(h(0,"a",5),Ge(1,9),p()),t&2){let e=C(2).$implicit,i=C(),r=Se(7);y("routerLink",i.menu.buildRoute(Pt(3,Y8,e.route))),g(),y("ngTemplateOutlet",r)("ngTemplateOutletContext",Pt(5,sw,e))}}function Ege(t,n){if(t&1&&(h(0,"a",6),Ge(1,9),p()),t&2){let e=C(2).$implicit;C();let i=Se(7);y("href",e.route,$r),g(),y("ngTemplateOutlet",i)("ngTemplateOutletContext",Pt(3,sw,e))}}function Mge(t,n){if(t&1&&(h(0,"a",7),Ge(1,9),p()),t&2){let e=C(2).$implicit;C();let i=Se(7);y("href",e.route,$r),g(),y("ngTemplateOutlet",i)("ngTemplateOutletContext",Pt(3,sw,e))}}function kge(t,n){if(t&1){let e=Y();h(0,"button",10),Ge(1,9),h(2,"app-topmenu-panel",11,2),S("routeChange",function(r){I(e);let o=C(2).$implicit,a=C();return A(a.onRouteChange(r,o))}),p()()}if(t&2){let e=Se(3),i=C(2).$implicit;C();let r=Se(7);G("active",i.active==null?null:i.active()),y("matMenuTriggerFor",e.menuPanel()),g(),y("ngTemplateOutlet",r)("ngTemplateOutletContext",Pt(8,sw,i)),g(),y("items",i.children||at(10,wge))("parentRoute",Pt(11,Y8,i.route))("level",1)}}function Sge(t,n){if(t&1&&(N(0,Dge,2,7,"a",5),N(1,Ege,2,5,"a",6),N(2,Mge,2,5,"a",7),N(3,kge,4,13,"button",8)),t&2){let e=C().$implicit;L(e.type==="link"?0:-1),g(),L(e.type==="extLink"?1:-1),g(),L(e.type==="extTabLink"?2:-1),g(),L(e.type==="sub"?3:-1)}}function Tge(t,n){if(t&1&&R(0,Sge,4,4,"ng-template",4),t&2){let e=n.$implicit;y("ngxPermissionsOnly",e.permissions==null?null:e.permissions.only)("ngxPermissionsExcept",e.permissions==null?null:e.permissions.except)}}function Ige(t,n){if(t&1&&(h(0,"span"),_(1),p()),t&2){let e=C().item;it($o("menu-label bg-",e.label.color)),g(),H(e.label.value)}}function Age(t,n){if(t&1&&(h(0,"span"),_(1),p()),t&2){let e=C().item;it($o("menu-badge bg-",e.badge.color)),g(),H(e.badge.value)}}function Oge(t,n){if(t&1&&(h(0,"mat-icon",15),_(1),p()),t&2){let e=C().item;g(),H(e.type==="sub"?"arrow_drop_down":"launch")}}function Rge(t,n){if(t&1&&(h(0,"mat-icon",12),_(1),p(),h(2,"span",13),_(3),me(4,"translate"),p(),N(5,Ige,2,4,"span",14),N(6,Age,2,4,"span",14),N(7,Oge,2,1,"mat-icon",15)),t&2){let e=n.item;g(),H(e.icon),g(2),H(Oe(4,5,e.name)),g(2),L(e.label?5:-1),g(),L(e.badge?6:-1),g(),L(e.type!=="link"?7:-1)}}var Q8=(()=>{let n=class n{constructor(){this.router=u(Re),this.menu=u(so),this.menuList=[],this.menuSubscription=this.menu.getAll().subscribe(i=>{this.menuList=i.map(r=>{let o=this.router.url.split("/").includes(r.route);return r.active=he(o),r})}),this.routerSubscription=this.router.events.pipe(ce(i=>i instanceof vi)).subscribe(i=>{this.menuList.map(r=>r.active?.set(!1))})}ngOnDestroy(){this.menuSubscription.unsubscribe(),this.routerSubscription.unsubscribe()}onRouteChange(i,r){this.routerSubscription.unsubscribe(),this.routerSubscription=this.router.events.pipe(ce(o=>o instanceof vi),Be(()=>{this.menuList.filter(o=>o!=r).map(o=>o.active?.set(!1))}),Rt(10),Be(()=>{r.active?.set(i.isActive)})).subscribe()}};n.\u0275fac=function(r){return new(r||n)},n.\u0275cmp=E({type:n,selectors:[["app-topmenu"]],hostAttrs:[1,"matero-topmenu"],decls:8,vars:3,consts:[["tabPanel",""],["linkTypeTpl",""],["submenu",""],["mat-tab-nav-bar","",3,"tabPanel"],[3,"ngxPermissionsOnly","ngxPermissionsExcept"],["matButton","","routerLinkActive","active",3,"routerLink"],["matButton","",3,"href"],["matButton","","target","_blank",3,"href"],["matButton","",3,"matMenuTriggerFor","active"],[3,"ngTemplateOutlet","ngTemplateOutletContext"],["matButton","",3,"matMenuTriggerFor"],[3,"routeChange","items","parentRoute","level"],[1,"menu-icon"],[1,"menu-name"],[3,"class"],[1,"menu-caret"]],template:function(r,o){if(r&1&&(h(0,"nav",3),xt(1,Tge,1,2,null,4,Hi),me(3,"async"),p(),k(4,"mat-tab-nav-panel",null,0),R(6,Rge,8,7,"ng-template",null,1,_i)),r&2){let a=Se(5);y("tabPanel",a),g(),Ct(Oe(3,1,o.menu.getAll()))}},dependencies:[Fn,Nn,zd,ze,kt,ot,mt,Ls,Ns,rp,PI,V8,xc,Ih,wr,q8,rn,Cr],styles:[`.matero-topmenu{--mat-tab-divider-height: 0;--mat-button-text-label-text-color: var(--topmenu-text-color);position:sticky;z-index:200;display:block;padding:.5rem;background-color:var(--topmenu-background-color);-webkit-backdrop-filter:blur(8px);backdrop-filter:blur(8px)}.matero-topmenu .mat-mdc-button{padding:0 1rem;white-space:nowrap}.matero-topmenu .mat-mdc-button.active{background-color:var(--topmenu-item-active-background-color)}.matero-topmenu .menu-icon,.matero-topmenu .menu-caret,.matero-topmenu .menu-name{vertical-align:middle}.matero-topmenu .mat-icon.menu-icon{width:1.125rem;height:1.125rem;margin-right:.5rem;font-size:1.125rem;line-height:1.125rem}[dir=rtl] .matero-topmenu .mat-icon.menu-icon{margin-right:auto;margin-left:.5rem}.matero-topmenu .mat-icon.menu-caret{margin-right:-.5rem}[dir=rtl] .matero-topmenu .mat-icon.menu-caret{margin-right:auto;margin-left:-.5rem}.matero-topmenu .menu-label,.matero-topmenu .menu-badge{padding:.25rem .5rem;margin-left:.5rem;font-size:.75rem;font-weight:700;line-height:1;color:#fff;background-color:#757575;border-radius:.375rem}[dir=rtl] .matero-topmenu .menu-label,[dir=rtl] .matero-topmenu .menu-badge{margin-right:.5rem;margin-left:auto}.matero-topmenu .menu-badge{border-radius:50rem}.matero-topmenu .mat-tab-nav-bar,.matero-topmenu .mat-tab-header{border-bottom:none}.matero-topmenu-panel .mat-mdc-menu-item.active{color:var(--topmenu-dropdown-item-active-text-color)} -`],encapsulation:2});let t=n;return t})();var Pge=["sidenav"],Fge=["content"];function Nge(t,n){if(t&1){let e=Y();h(0,"app-header",13),S("toggleSidenav",function(){I(e),C();let r=Se(5);return A(r.toggle())})("toggleSidenavNotice",function(){I(e),C();let r=Se(8);return A(r.toggle())}),p()}t&2&&y("showBranding",!0)}function Lge(t,n){if(t&1){let e=Y();h(0,"app-header",14),S("toggleSidenav",function(){I(e),C();let r=Se(5);return A(r.toggle())})("toggleSidenavNotice",function(){I(e),C();let r=Se(8);return A(r.toggle())}),p()}if(t&2){let e=C();y("showToggle",!e.options.sidenavCollapsed&&e.options.navPos!=="top")("showBranding",e.options.navPos==="top")}}function Vge(t,n){t&1&&k(0,"app-topmenu")}var K8="screen and (max-width: 599px)",Z8="screen and (min-width: 600px) and (max-width: 959px)",X8="screen and (min-width: 960px)",J8=(()=>{let n=class n{get themeColor(){return this.settings.getThemeColor()}get isOver(){return this.isMobileScreen}get contentWidthFix(){return this.isContentWidthFixed&&this.options.navPos==="side"&&this.options.sidenavOpened&&!this.isOver}get collapsedWidthFix(){return this.isCollapsedWidthFixed&&(this.options.navPos==="top"||this.options.sidenavOpened&&this.isOver)}constructor(){this.sidenav=qn.required("sidenav"),this.content=qn.required("content"),this.breakpointObserver=u(sl),this.router=u(Re),this.settings=u(aa),this.options=this.settings.options,this.isMobileScreen=!1,this.isContentWidthFixed=!0,this.isCollapsedWidthFixed=!1,this.layoutChangesSubscription=ke.EMPTY,this.layoutChangesSubscription=this.breakpointObserver.observe([K8,Z8,X8]).subscribe(i=>{this.options.sidenavOpened=!0,this.isMobileScreen=i.breakpoints[K8],this.options.sidenavCollapsed=i.breakpoints[Z8],this.isContentWidthFixed=i.breakpoints[X8]}),this.router.events.pipe(ce(i=>i instanceof vi)).subscribe(i=>{this.isOver&&this.sidenav().close(),this.content().scrollTo({top:0})})}ngOnDestroy(){this.layoutChangesSubscription.unsubscribe()}toggleCollapsed(){this.isContentWidthFixed=!1,this.options.sidenavCollapsed=!this.options.sidenavCollapsed,this.resetCollapsedState()}resetCollapsedState(i=400){setTimeout(()=>{this.settings.setOptions(this.options)},i)}onSidenavClosedStart(){this.isContentWidthFixed=!1}onSidenavOpenedChange(i){this.isCollapsedWidthFixed=!this.isOver,this.options.sidenavOpened=i,this.settings.setOptions(this.options)}updateOptions(i){this.options=i,this.settings.setOptions(i),this.settings.setDirection(),this.settings.setTheme()}};n.\u0275fac=function(r){return new(r||n)},n.\u0275cmp=E({type:n,selectors:[["app-admin-layout"]],viewQuery:function(r,o){r&1&&(Pn(o.sidenav,Pge,5),Pn(o.content,Fge,5)),r&2&&Ho(2)},hostVars:4,hostBindings:function(r,o){r&2&&G("matero-content-width-fix",o.contentWidthFix)("matero-sidenav-collapsed-fix",o.collapsedWidthFix)},decls:16,vars:20,consts:[["sidenav",""],["sidenavNotice",""],["content",""],[1,"matero-container-wrap",3,"dir"],["ngProgressRouter",""],[3,"showBranding"],["autosize","","autoFocus","",1,"matero-container"],[1,"matero-sidenav",3,"openedChange","closedStart","mode","opened"],[3,"toggleCollapsed","closeSidenav","showToggle","showUser","showHeader","toggleChecked"],["position","end","mode","over"],[1,"matero-content"],[3,"showToggle","showBranding"],[1,"matero-page-content"],[3,"toggleSidenav","toggleSidenavNotice","showBranding"],[3,"toggleSidenav","toggleSidenavNotice","showToggle","showBranding"]],template:function(r,o){if(r&1){let a=Y();h(0,"div",3),k(1,"ng-progress",4),N(2,Nge,1,1,"app-header",5),h(3,"mat-sidenav-container",6)(4,"mat-sidenav",7,0),S("openedChange",function(l){return I(a),A(o.onSidenavOpenedChange(l))})("closedStart",function(){return I(a),A(o.onSidenavClosedStart())}),h(6,"app-sidebar",8),S("toggleCollapsed",function(){return I(a),A(o.toggleCollapsed())})("closeSidenav",function(){I(a);let l=Se(5);return A(l.close())}),p()(),h(7,"mat-sidenav",9,1),k(9,"app-sidebar-notice"),p(),h(10,"mat-sidenav-content",10,2),N(12,Lge,1,2,"app-header",11),N(13,Vge,1,0,"app-topmenu"),h(14,"main",12),k(15,"router-outlet"),p()()()()}r&2&&(G("matero-sidenav-collapsed",o.options.sidenavCollapsed&&o.options.navPos!=="top")("matero-navbar-side",o.options.navPos==="side")("matero-navbar-top",o.options.navPos==="top")("matero-header-above",o.options.headerPos==="above")("matero-header-fixed",o.options.headerPos==="fixed"),y("dir",o.options.dir),g(2),L(o.options.showHeader&&o.options.headerPos==="above"?2:-1),g(2),y("mode",o.isOver?"over":"side")("opened",o.options.navPos==="side"&&o.options.sidenavOpened&&!o.isOver),g(2),y("showToggle",!o.isOver)("showUser",!!o.options.showUserPanel)("showHeader",o.options.headerPos!=="above")("toggleChecked",!!o.options.sidenavCollapsed),g(6),L(o.options.showHeader&&o.options.headerPos!=="above"?12:-1),g(),L(o.options.navPos==="top"?13:-1))},dependencies:[ol,vs,HL,i8,MI,t8,GC,r8,a8,w8,Q8,W8,B8],styles:[`.matero-container-wrap,.matero-container{--mat-sidenav-content-background-color: transparent;height:100%}.matero-sidenav{--mat-sidenav-container-width: var(--sidenav-width);position:absolute;overflow-x:hidden;border-width:0!important;transition-property:transform,width!important}.matero-header-above .matero-container{height:calc(100% - var(--mat-toolbar-standard-height))!important}@media (max-width: 599px){.matero-header-above .matero-container{height:calc(100% - var(--mat-toolbar-mobile-height))!important}}.matero-header-above .matero-sidebar-main{height:100%!important;padding-top:.5rem}.matero-sidenav-collapsed .matero-sidenav,.matero-sidenav-collapsed-fix .matero-sidenav{width:var(--sidenav-collapsed-width)}.matero-sidenav-collapsed .matero-sidenav .menu-name,.matero-sidenav-collapsed .matero-sidenav .menu-label,.matero-sidenav-collapsed .matero-sidenav .menu-badge,.matero-sidenav-collapsed .matero-sidenav .menu-caret,.matero-sidenav-collapsed .matero-sidenav .matero-user-panel-info,.matero-sidenav-collapsed-fix .matero-sidenav .menu-name,.matero-sidenav-collapsed-fix .matero-sidenav .menu-label,.matero-sidenav-collapsed-fix .matero-sidenav .menu-badge,.matero-sidenav-collapsed-fix .matero-sidenav .menu-caret,.matero-sidenav-collapsed-fix .matero-sidenav .matero-user-panel-info{opacity:0}.matero-sidenav-collapsed .matero-sidenav .menu-icon.submenu-icon,.matero-sidenav-collapsed-fix .matero-sidenav .menu-icon.submenu-icon{opacity:1}.matero-sidenav-collapsed .matero-sidenav .matero-user-panel-avatar,.matero-sidenav-collapsed-fix .matero-sidenav .matero-user-panel-avatar{transform:scale(.5)}.matero-sidenav-collapsed .matero-sidenav:hover,.matero-sidenav-collapsed-fix .matero-sidenav:hover{width:var(--sidenav-width)}.matero-sidenav-collapsed .matero-sidenav:hover .menu-name,.matero-sidenav-collapsed .matero-sidenav:hover .menu-label,.matero-sidenav-collapsed .matero-sidenav:hover .menu-badge,.matero-sidenav-collapsed .matero-sidenav:hover .menu-caret,.matero-sidenav-collapsed .matero-sidenav:hover .matero-user-panel-info,.matero-sidenav-collapsed-fix .matero-sidenav:hover .menu-name,.matero-sidenav-collapsed-fix .matero-sidenav:hover .menu-label,.matero-sidenav-collapsed-fix .matero-sidenav:hover .menu-badge,.matero-sidenav-collapsed-fix .matero-sidenav:hover .menu-caret,.matero-sidenav-collapsed-fix .matero-sidenav:hover .matero-user-panel-info{opacity:1}.matero-sidenav-collapsed .matero-sidenav:hover .menu-icon.submenu-icon,.matero-sidenav-collapsed-fix .matero-sidenav:hover .menu-icon.submenu-icon{opacity:0}.matero-sidenav-collapsed .matero-sidenav:hover .matero-user-panel-avatar,.matero-sidenav-collapsed-fix .matero-sidenav:hover .matero-user-panel-avatar{transform:scale(1)}.matero-sidenav-collapsed .matero-content{margin-left:var(--sidenav-collapsed-width)!important}[dir=rtl] .matero-sidenav-collapsed .matero-content,.matero-sidenav-collapsed[dir=rtl] .matero-content{margin-right:var(--sidenav-collapsed-width)!important;margin-left:auto!important}.matero-navbar-top .matero-topmenu{top:0}.matero-navbar-top .matero-branding{margin-left:1rem}[dir=rtl] .matero-navbar-top .matero-branding{margin-right:1rem;margin-left:auto}.matero-header-fixed .matero-header{position:sticky;top:0}.matero-header-fixed .matero-topmenu{top:var(--mat-toolbar-standard-height)}@media (max-width: 599px){.matero-header-fixed .matero-topmenu{top:var(--mat-toolbar-mobile-height)}}.matero-content-width-fix .matero-content{margin-left:var(--sidenav-width)!important}[dir=rtl] .matero-content-width-fix .matero-content{margin-right:var(--sidenav-width)!important;margin-left:auto!important}.matero-page-content{position:relative;padding:var(--gutter)}.matero-header+.matero-page-content,.matero-header-above .matero-page-content,.matero-navbar-top .matero-page-content{padding-top:0} -`],encapsulation:2});let t=n;return t})();var eU=(()=>{let n=class n{};n.\u0275fac=function(r){return new(r||n)},n.\u0275cmp=E({type:n,selectors:[["app-auth-layout"]],decls:2,vars:0,consts:[[1,"matero-auth-container"]],template:function(r,o){r&1&&(h(0,"div",0),k(1,"router-outlet"),p())},dependencies:[ol],styles:[`.matero-auth-container{position:relative;display:flex;justify-content:center;min-height:100%;background-image:radial-gradient(at 97% 21%,hsla(125,98%,72%,.3) 0,transparent 50%),radial-gradient(at 52% 99%,hsla(354,98%,61%,.3) 0,transparent 50%),radial-gradient(at 10% 29%,hsla(256,96%,67%,.3) 0,transparent 50%),radial-gradient(at 97% 96%,hsla(38,60%,74%,.3) 0,transparent 50%),radial-gradient(at 33% 50%,hsla(222,67%,73%,.3) 0,transparent 50%),radial-gradient(at 79% 53%,hsla(343,68%,79%,.3) 0,transparent 50%)} -`],encapsulation:2});let t=n;return t})();var Bge=["determinateSpinner"];function jge(t,n){if(t&1&&(Gt(),h(0,"svg",11),k(1,"circle",12),p()),t&2){let e=C();X("viewBox",e._viewBox()),g(),Dt("stroke-dasharray",e._strokeCircumference(),"px")("stroke-dashoffset",e._strokeCircumference()/2,"px")("stroke-width",e._circleStrokeWidth(),"%"),X("r",e._circleRadius())}}var Hge=new T("mat-progress-spinner-default-options",{providedIn:"root",factory:zge});function zge(){return{diameter:tU}}var tU=100,Uge=10,ki=(()=>{class t{_elementRef=u(q);_noopAnimations;get color(){return this._color||this._defaultColor}set color(e){this._color=e}_color;_defaultColor="primary";_determinateCircle;constructor(){let e=u(Hge),i=pk(),r=this._elementRef.nativeElement;this._noopAnimations=i==="di-disabled"&&!!e&&!e._forceAnimations,this.mode=r.nodeName.toLowerCase()==="mat-spinner"?"indeterminate":"determinate",!this._noopAnimations&&i==="reduced-motion"&&r.classList.add("mat-progress-spinner-reduced-motion"),e&&(e.color&&(this.color=this._defaultColor=e.color),e.diameter&&(this.diameter=e.diameter),e.strokeWidth&&(this.strokeWidth=e.strokeWidth))}mode;get value(){return this.mode==="determinate"?this._value:0}set value(e){this._value=Math.max(0,Math.min(100,e||0))}_value=0;get diameter(){return this._diameter}set diameter(e){this._diameter=e||0}_diameter=tU;get strokeWidth(){return this._strokeWidth??this.diameter/10}set strokeWidth(e){this._strokeWidth=e||0}_strokeWidth;_circleRadius(){return(this.diameter-Uge)/2}_viewBox(){let e=this._circleRadius()*2+this.strokeWidth;return`0 0 ${e} ${e}`}_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(i){return new(i||t)};static \u0275cmp=E({type:t,selectors:[["mat-progress-spinner"],["mat-spinner"]],viewQuery:function(i,r){if(i&1&&ie(Bge,5),i&2){let o;B(o=j())&&(r._determinateCircle=o.first)}},hostAttrs:["role","progressbar","tabindex","-1",1,"mat-mdc-progress-spinner","mdc-circular-progress"],hostVars:18,hostBindings:function(i,r){i&2&&(X("aria-valuemin",0)("aria-valuemax",100)("aria-valuenow",r.mode==="determinate"?r.value:null)("mode",r.mode),it("mat-"+r.color),Dt("width",r.diameter,"px")("height",r.diameter,"px")("--mat-progress-spinner-size",r.diameter+"px")("--mat-progress-spinner-active-indicator-width",r.diameter+"px"),G("_mat-animation-noopable",r._noopAnimations)("mdc-circular-progress--indeterminate",r.mode==="indeterminate"))},inputs:{color:"color",mode:"mode",value:[2,"value","value",ct],diameter:[2,"diameter","diameter",ct],strokeWidth:[2,"strokeWidth","strokeWidth",ct]},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(i,r){if(i&1&&(R(0,jge,2,8,"ng-template",null,0,_i),h(2,"div",2,1),Gt(),h(4,"svg",3),k(5,"circle",4),p()(),jo(),h(6,"div",5)(7,"div",6)(8,"div",7),Ge(9,8),p(),h(10,"div",9),Ge(11,8),p(),h(12,"div",10),Ge(13,8),p()()()),i&2){let o=Se(1);g(4),X("viewBox",r._viewBox()),g(),Dt("stroke-dasharray",r._strokeCircumference(),"px")("stroke-dashoffset",r._strokeDashOffset(),"px")("stroke-width",r._circleStrokeWidth(),"%"),X("r",r._circleRadius()),g(4),y("ngTemplateOutlet",o),g(2),y("ngTemplateOutlet",o),g(2),y("ngTemplateOutlet",o)}},dependencies:[Fn],styles:[`.mat-mdc-progress-spinner{--mat-progress-spinner-animation-multiplier: 1;display:block;overflow:hidden;line-height:0;position:relative;direction:ltr;transition:opacity 250ms cubic-bezier(0.4, 0, 0.6, 1)}.mat-mdc-progress-spinner circle{stroke-width:var(--mat-progress-spinner-active-indicator-width, 4px)}.mat-mdc-progress-spinner._mat-animation-noopable,.mat-mdc-progress-spinner._mat-animation-noopable .mdc-circular-progress__determinate-circle{transition:none !important}.mat-mdc-progress-spinner._mat-animation-noopable .mdc-circular-progress__indeterminate-circle-graphic,.mat-mdc-progress-spinner._mat-animation-noopable .mdc-circular-progress__spinner-layer,.mat-mdc-progress-spinner._mat-animation-noopable .mdc-circular-progress__indeterminate-container{animation:none !important}.mat-mdc-progress-spinner._mat-animation-noopable .mdc-circular-progress__indeterminate-container circle{stroke-dasharray:0 !important}@media(forced-colors: active){.mat-mdc-progress-spinner .mdc-circular-progress__indeterminate-circle-graphic,.mat-mdc-progress-spinner .mdc-circular-progress__determinate-circle{stroke:currentColor;stroke:CanvasText}}.mat-progress-spinner-reduced-motion{--mat-progress-spinner-animation-multiplier: 1.25}.mdc-circular-progress__determinate-container,.mdc-circular-progress__indeterminate-circle-graphic,.mdc-circular-progress__indeterminate-container,.mdc-circular-progress__spinner-layer{position:absolute;width:100%;height:100%}.mdc-circular-progress__determinate-container{transform:rotate(-90deg)}.mdc-circular-progress--indeterminate .mdc-circular-progress__determinate-container{opacity:0}.mdc-circular-progress__indeterminate-container{font-size:0;letter-spacing:0;white-space:nowrap;opacity:0}.mdc-circular-progress--indeterminate .mdc-circular-progress__indeterminate-container{opacity:1;animation:mdc-circular-progress-container-rotate calc(1568.2352941176ms*var(--mat-progress-spinner-animation-multiplier)) linear infinite}.mdc-circular-progress__determinate-circle-graphic,.mdc-circular-progress__indeterminate-circle-graphic{fill:rgba(0,0,0,0)}.mat-mdc-progress-spinner .mdc-circular-progress__determinate-circle,.mat-mdc-progress-spinner .mdc-circular-progress__indeterminate-circle-graphic{stroke:var(--mat-progress-spinner-active-indicator-color, var(--mat-sys-primary))}@media(forced-colors: active){.mat-mdc-progress-spinner .mdc-circular-progress__determinate-circle,.mat-mdc-progress-spinner .mdc-circular-progress__indeterminate-circle-graphic{stroke:CanvasText}}.mdc-circular-progress__determinate-circle{transition:stroke-dashoffset 500ms cubic-bezier(0, 0, 0.2, 1)}.mdc-circular-progress__gap-patch{position:absolute;top:0;left:47.5%;box-sizing:border-box;width:5%;height:100%;overflow:hidden}.mdc-circular-progress__gap-patch .mdc-circular-progress__indeterminate-circle-graphic{left:-900%;width:2000%;transform:rotate(180deg)}.mdc-circular-progress__circle-clipper .mdc-circular-progress__indeterminate-circle-graphic{width:200%}.mdc-circular-progress__circle-right .mdc-circular-progress__indeterminate-circle-graphic{left:-100%}.mdc-circular-progress--indeterminate .mdc-circular-progress__circle-left .mdc-circular-progress__indeterminate-circle-graphic{animation:mdc-circular-progress-left-spin calc(1333ms*var(--mat-progress-spinner-animation-multiplier)) cubic-bezier(0.4, 0, 0.2, 1) infinite both}.mdc-circular-progress--indeterminate .mdc-circular-progress__circle-right .mdc-circular-progress__indeterminate-circle-graphic{animation:mdc-circular-progress-right-spin calc(1333ms*var(--mat-progress-spinner-animation-multiplier)) cubic-bezier(0.4, 0, 0.2, 1) infinite both}.mdc-circular-progress__circle-clipper{display:inline-flex;position:relative;width:50%;height:100%;overflow:hidden}.mdc-circular-progress--indeterminate .mdc-circular-progress__spinner-layer{animation:mdc-circular-progress-spinner-layer-rotate calc(5332ms*var(--mat-progress-spinner-animation-multiplier)) cubic-bezier(0.4, 0, 0.2, 1) infinite both}@keyframes mdc-circular-progress-container-rotate{to{transform:rotate(360deg)}}@keyframes mdc-circular-progress-spinner-layer-rotate{12.5%{transform:rotate(135deg)}25%{transform:rotate(270deg)}37.5%{transform:rotate(405deg)}50%{transform:rotate(540deg)}62.5%{transform:rotate(675deg)}75%{transform:rotate(810deg)}87.5%{transform:rotate(945deg)}100%{transform:rotate(1080deg)}}@keyframes mdc-circular-progress-left-spin{from{transform:rotate(265deg)}50%{transform:rotate(130deg)}to{transform:rotate(265deg)}}@keyframes mdc-circular-progress-right-spin{from{transform:rotate(-265deg)}50%{transform:rotate(-130deg)}to{transform:rotate(-265deg)}} -`],encapsulation:2,changeDetection:0})}return t})();var Si=(()=>{class t{static \u0275fac=function(i){return new(i||t)};static \u0275mod=ee({type:t});static \u0275inj=J({imports:[we]})}return t})();function $ge(t,n){if(t&1){let e=Y();h(0,"div",1)(1,"button",2),S("click",function(){I(e);let r=C();return A(r.action())}),_(2),p()()}if(t&2){let e=C();g(2),ve(" ",e.data.action," ")}}var Wge=["label"];function Gge(t,n){}var qge=Math.pow(2,31)-1,b_=class{_overlayRef;instance;containerInstance;_afterDismissed=new z;_afterOpened=new z;_onAction=new z;_durationTimeoutId;_dismissedByAction=!1;constructor(n,e){this._overlayRef=e,this.containerInstance=n,n._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(n){this._durationTimeoutId=setTimeout(()=>this.dismiss(),Math.min(n,qge))}_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}},iU=new T("MatSnackBarData"),op=class{politeness="polite";announcementMessage="";viewContainerRef;duration=0;panelClass;direction;data=null;horizontalPosition="center";verticalPosition="bottom"},Yge=(()=>{class t{static \u0275fac=function(i){return new(i||t)};static \u0275dir=F({type:t,selectors:[["","matSnackBarLabel",""]],hostAttrs:[1,"mat-mdc-snack-bar-label","mdc-snackbar__label"]})}return t})(),Qge=(()=>{class t{static \u0275fac=function(i){return new(i||t)};static \u0275dir=F({type:t,selectors:[["","matSnackBarActions",""]],hostAttrs:[1,"mat-mdc-snack-bar-actions","mdc-snackbar__actions"]})}return t})(),Kge=(()=>{class t{static \u0275fac=function(i){return new(i||t)};static \u0275dir=F({type:t,selectors:[["","matSnackBarAction",""]],hostAttrs:[1,"mat-mdc-snack-bar-action","mdc-snackbar__action"]})}return t})(),nU=(()=>{class t{snackBarRef=u(b_);data=u(iU);constructor(){}action(){this.snackBarRef.dismissWithAction()}get hasAction(){return!!this.data.action}static \u0275fac=function(i){return new(i||t)};static \u0275cmp=E({type:t,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(i,r){i&1&&(h(0,"div",0),_(1),p(),N(2,$ge,3,1,"div",1)),i&2&&(g(),ve(" ",r.data.message,` -`),g(),L(r.hasAction?2:-1))},dependencies:[kt,Yge,Qge,Kge],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 t})(),LI="_mat-snack-bar-enter",VI="_mat-snack-bar-exit",Zge=(()=>{class t extends dc{_ngZone=u(ae);_elementRef=u(q);_changeDetectorRef=u(ye);_platform=u(qe);_animationsDisabled=Ye();snackBarConfig=u(op);_document=u(ge);_trackedModals=new Set;_enterFallback;_exitFallback;_injector=u(de);_announceDelay=150;_announceTimeoutId;_destroyed=!1;_portalOutlet;_onAnnounce=new z;_onExit=new z;_onEnter=new z;_animationState="void";_live;_label;_role;_liveElementId=u(Ze).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 i=this._portalOutlet.attachComponentPortal(e);return this._afterPortalAttached(),i}attachTemplatePortal(e){this._assertNotAttached();let i=this._portalOutlet.attachTemplatePortal(e);return this._afterPortalAttached(),i}attachDomPortal=e=>{this._assertNotAttached();let i=this._portalOutlet.attachDomPortal(e);return this._afterPortalAttached(),i};onAnimationEnd(e){e===VI?this._completeExit():e===LI&&(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?pt(()=>{this._ngZone.run(()=>queueMicrotask(()=>this.onAnimationEnd(LI)))},{injector:this._injector}):(clearTimeout(this._enterFallback),this._enterFallback=setTimeout(()=>{this._elementRef.nativeElement.classList.add("mat-snack-bar-fallback-visible"),this.onAnimationEnd(LI)},200)))}exit(){return this._destroyed?Q(void 0):(this._ngZone.run(()=>{this._animationState="hidden",this._changeDetectorRef.markForCheck(),this._elementRef.nativeElement.setAttribute("mat-exit",""),clearTimeout(this._announceTimeoutId),this._animationsDisabled?pt(()=>{this._ngZone.run(()=>queueMicrotask(()=>this.onAnimationEnd(VI)))},{injector:this._injector}):(clearTimeout(this._exitFallback),this._exitFallback=setTimeout(()=>this.onAnimationEnd(VI),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,i=this.snackBarConfig.panelClass;i&&(Array.isArray(i)?i.forEach(a=>e.classList.add(a)):e.classList.add(i)),this._exposeToModals();let r=this._label.nativeElement,o="mdc-snackbar__label";r.classList.toggle(o,!r.querySelector(`.${o}`))}_exposeToModals(){let e=this._liveElementId,i=this._document.querySelectorAll('body > .cdk-overlay-container [aria-modal="true"]');for(let r=0;r{let i=e.getAttribute("aria-owns");if(i){let r=i.replace(this._liveElementId,"").trim();r.length>0?e.setAttribute("aria-owns",r):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,i=e.querySelector("[aria-hidden]"),r=e.querySelector("[aria-live]");if(i&&r){let o=null;this._platform.isBrowser&&document.activeElement instanceof HTMLElement&&i.contains(document.activeElement)&&(o=document.activeElement),i.removeAttribute("aria-hidden"),r.appendChild(i),o?.focus(),this._onAnnounce.next(),this._onAnnounce.complete()}},this._announceDelay)})}static \u0275fac=function(i){return new(i||t)};static \u0275cmp=E({type:t,selectors:[["mat-snack-bar-container"]],viewQuery:function(i,r){if(i&1&&(ie(yr,7),ie(Wge,7)),i&2){let o;B(o=j())&&(r._portalOutlet=o.first),B(o=j())&&(r._label=o.first)}},hostAttrs:[1,"mdc-snackbar","mat-mdc-snack-bar-container"],hostVars:6,hostBindings:function(i,r){i&1&&S("animationend",function(a){return r.onAnimationEnd(a.animationName)})("animationcancel",function(a){return r.onAnimationEnd(a.animationName)}),i&2&&G("mat-snack-bar-container-enter",r._animationState==="visible")("mat-snack-bar-container-exit",r._animationState==="hidden")("mat-snack-bar-container-animations-enabled",!r._animationsDisabled)},features:[le],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(i,r){i&1&&(h(0,"div",1)(1,"div",2,0)(3,"div",3),R(4,Gge,0,0,"ng-template",4),p(),k(5,"div"),p()()),i&2&&(g(5),X("aria-live",r._live)("role",r._role)("id",r._liveElementId))},dependencies:[yr],styles:[`@keyframes _mat-snack-bar-enter{from{transform:scale(0.8);opacity:0}to{transform:scale(1);opacity:1}}@keyframes _mat-snack-bar-exit{from{opacity:1}to{opacity:0}}.mat-mdc-snack-bar-container{display:flex;align-items:center;justify-content:center;box-sizing:border-box;-webkit-tap-highlight-color:rgba(0,0,0,0);margin:8px}.mat-mdc-snack-bar-handset .mat-mdc-snack-bar-container{width:100vw}.mat-snack-bar-container-animations-enabled{opacity:0}.mat-snack-bar-container-animations-enabled.mat-snack-bar-fallback-visible{opacity:1}.mat-snack-bar-container-animations-enabled.mat-snack-bar-container-enter{animation:_mat-snack-bar-enter 150ms cubic-bezier(0, 0, 0.2, 1) forwards}.mat-snack-bar-container-animations-enabled.mat-snack-bar-container-exit{animation:_mat-snack-bar-exit 75ms cubic-bezier(0.4, 0, 1, 1) forwards}.mat-mdc-snackbar-surface{box-shadow:0px 3px 5px -1px rgba(0, 0, 0, 0.2), 0px 6px 10px 0px rgba(0, 0, 0, 0.14), 0px 1px 18px 0px rgba(0, 0, 0, 0.12);display:flex;align-items:center;justify-content:flex-start;box-sizing:border-box;padding-left:0;padding-right:8px}[dir=rtl] .mat-mdc-snackbar-surface{padding-right:0;padding-left:8px}.mat-mdc-snack-bar-container .mat-mdc-snackbar-surface{min-width:344px;max-width:672px}.mat-mdc-snack-bar-handset .mat-mdc-snackbar-surface{width:100%;min-width:0}@media(forced-colors: active){.mat-mdc-snackbar-surface{outline:solid 1px}}.mat-mdc-snack-bar-container .mat-mdc-snackbar-surface{color:var(--mat-snack-bar-supporting-text-color, var(--mat-sys-inverse-on-surface));border-radius:var(--mat-snack-bar-container-shape, var(--mat-sys-corner-extra-small));background-color:var(--mat-snack-bar-container-color, var(--mat-sys-inverse-surface))}.mdc-snackbar__label{width:100%;flex-grow:1;box-sizing:border-box;margin:0;padding:14px 8px 14px 16px}[dir=rtl] .mdc-snackbar__label{padding-left:8px;padding-right:16px}.mat-mdc-snack-bar-container .mdc-snackbar__label{font-family:var(--mat-snack-bar-supporting-text-font, var(--mat-sys-body-medium-font));font-size:var(--mat-snack-bar-supporting-text-size, var(--mat-sys-body-medium-size));font-weight:var(--mat-snack-bar-supporting-text-weight, var(--mat-sys-body-medium-weight));line-height:var(--mat-snack-bar-supporting-text-line-height, var(--mat-sys-body-medium-line-height))}.mat-mdc-snack-bar-actions{display:flex;flex-shrink:0;align-items:center;box-sizing:border-box}.mat-mdc-snack-bar-handset,.mat-mdc-snack-bar-container,.mat-mdc-snack-bar-label{flex:1 1 auto}.mat-mdc-snack-bar-container .mat-mdc-button.mat-mdc-snack-bar-action:not(:disabled){--mat-button-text-state-layer-color: currentColor;--mat-button-text-ripple-color: currentColor}.mat-mdc-snack-bar-container .mat-mdc-button.mat-mdc-snack-bar-action:not(:disabled).mat-unthemed{color:var(--mat-snack-bar-button-color, var(--mat-sys-inverse-primary))}.mat-mdc-snack-bar-container .mat-mdc-button.mat-mdc-snack-bar-action:not(:disabled) .mat-ripple-element{opacity:.1} -`],encapsulation:2})}return t})();function Xge(){return new op}var Jge=new T("mat-snack-bar-default-options",{providedIn:"root",factory:Xge}),di=(()=>{class t{_live=u(Gf);_injector=u(de);_breakpointObserver=u(sl);_parentSnackBar=u(t,{optional:!0,skipSelf:!0});_defaultConfig=u(Jge);_animationsDisabled=Ye();_snackBarRefAtThisLevel=null;simpleSnackBarComponent=nU;snackBarContainerComponent=Zge;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,i){return this._attach(e,i)}openFromTemplate(e,i){return this._attach(e,i)}open(e,i="",r){let o=M(M({},this._defaultConfig),r);return o.data={message:e,action:i},o.announcementMessage===e&&(o.announcementMessage=void 0),this.openFromComponent(this.simpleSnackBarComponent,o)}dismiss(){this._openedSnackBarRef&&this._openedSnackBarRef.dismiss()}ngOnDestroy(){this._snackBarRefAtThisLevel&&this._snackBarRefAtThisLevel.dismiss()}_attachSnackBarContainer(e,i){let r=i&&i.viewContainerRef&&i.viewContainerRef.injector,o=de.create({parent:r||this._injector,providers:[{provide:op,useValue:i}]}),a=new Zr(this.snackBarContainerComponent,i.viewContainerRef,o),s=e.attach(a);return s.instance.snackBarConfig=i,s.instance}_attach(e,i){let r=M(M(M({},new op),this._defaultConfig),i),o=this._createOverlay(r),a=this._attachSnackBarContainer(o,r),s=new b_(a,o);if(e instanceof te){let l=new Cn(e,null,{$implicit:r.data,snackBarRef:s});s.instance=a.attachTemplatePortal(l)}else{let l=this._createInjector(r,s),c=new Zr(e,void 0,l),d=a.attachComponentPortal(c);s.instance=d.instance}return this._breakpointObserver.observe(F0.HandsetPortrait).pipe(Te(o.detachments())).subscribe(l=>{o.overlayElement.classList.toggle(this.handsetCssClass,l.matches)}),r.announcementMessage&&a._onAnnounce.subscribe(()=>{this._live.announce(r.announcementMessage,r.politeness)}),this._animateSnackBar(s,r),this._openedSnackBarRef=s,this._openedSnackBarRef}_animateSnackBar(e,i){e.afterDismissed().subscribe(()=>{this._openedSnackBarRef==e&&(this._openedSnackBarRef=null),i.announcementMessage&&this._live.clear()}),i.duration&&i.duration>0&&e.afterOpened().subscribe(()=>e._dismissAfter(i.duration)),this._openedSnackBarRef?(this._openedSnackBarRef.afterDismissed().subscribe(()=>{e.containerInstance.enter()}),this._openedSnackBarRef.dismiss()):e.containerInstance.enter()}_createOverlay(e){let i=new Fr;i.direction=e.direction;let r=Ds(this._injector),o=e.direction==="rtl",a=e.horizontalPosition==="left"||e.horizontalPosition==="start"&&!o||e.horizontalPosition==="end"&&o,s=!a&&e.horizontalPosition!=="center";return a?r.left("0"):s?r.right("0"):r.centerHorizontally(),e.verticalPosition==="top"?r.top("0"):r.bottom("0"),i.positionStrategy=r,i.disableAnimations=this._animationsDisabled,Nr(this._injector,i)}_createInjector(e,i){let r=e&&e.viewContainerRef&&e.viewContainerRef.injector;return de.create({parent:r||this._injector,providers:[{provide:b_,useValue:i},{provide:iU,useValue:e.data}]})}static \u0275fac=function(i){return new(i||t)};static \u0275prov=O({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();var pi=(()=>{class t{static \u0275fac=function(i){return new(i||t)};static \u0275mod=ee({type:t});static \u0275inj=J({providers:[di],imports:[er,Co,ze,we,nU,we]})}return t})();var Un=(()=>{let n=class n{constructor(){this.authService=u(Tt),this.templateRef=u(te),this.viewContainer=u(nt)}set appHasRole(i){this.updateView(i)}ngOnInit(){this.subscription=this.authService.isAuthenticated$.subscribe(()=>{let i=this.roles;i&&this.updateView(i)})}ngOnDestroy(){this.subscription?.unsubscribe()}updateView(i){this.roles=i,this.viewContainer.clear(),this.checkRole(i)&&this.viewContainer.createEmbeddedView(this.templateRef)}checkRole(i){return this.authService.isAuthenticated()?typeof i=="string"?this.authService.hasRole(i):Array.isArray(i)?this.authService.hasAnyRole(i):!1:!1}};n.\u0275fac=function(r){return new(r||n)},n.\u0275dir=F({type:n,selectors:[["","appHasRole",""]],inputs:{appHasRole:"appHasRole"}});let t=n;return t})();var da=class{constructor(){this.http=u(Yr),this.apiUrl=ko.apiUrl}getAll(n){let e=this.buildHttpParams(n);return this.http.get(`${this.apiUrl}/${this.endpoint}`,{params:e}).pipe(se(i=>i.value))}getAllPaged(n){let e=this.buildHttpParams(n);return this.http.get(`${this.apiUrl}/${this.endpoint}`,{params:e})}getById(n){return this.http.get(`${this.apiUrl}/${this.endpoint}/${n}`).pipe(se(e=>e.value))}create(n){return this.http.post(`${this.apiUrl}/${this.endpoint}`,n).pipe(se(e=>e&&"value"in e&&typeof e.value=="string"?{id:e.value}:e))}update(n,e){return this.http.put(`${this.apiUrl}/${this.endpoint}/${n}`,e)}delete(n){return this.http.delete(`${this.apiUrl}/${this.endpoint}/${n}`)}buildHttpParams(n){let e=new Qn;return n&&Object.keys(n).forEach(i=>{let r=n[i];r!=null&&(e=e.set(i,r.toString()))}),e}};var rU=(()=>{let n=class n extends da{constructor(){super(...arguments),this.endpoint="Dashboard"}getDashboardMetrics(){return this.http.get(`${this.apiUrl}/${this.endpoint}/Metrics`).pipe(se(i=>{if(i.isSuccess&&i.value)return i.value;throw new Error(i.message||"Failed to load dashboard metrics")}))}};n.\u0275fac=(()=>{let i;return function(o){return(i||(i=fe(n)))(o||n)}})(),n.\u0275prov=O({token:n,factory:n.\u0275fac,providedIn:"root"});let t=n;return t})();var Vs=(()=>{let n=class n extends da{constructor(){super(...arguments),this.endpoint="Departments"}createDepartment(i){return this.create(i)}updateDepartment(i){return this.update(i.id,i)}};n.\u0275fac=(()=>{let i;return function(o){return(i||(i=fe(n)))(o||n)}})(),n.\u0275prov=O({token:n,factory:n.\u0275fac,providedIn:"root"});let t=n;return t})();var ap=(()=>{let n=class n extends da{constructor(){super(...arguments),this.endpoint="Employees"}createEmployee(i){return this.create(i)}updateEmployee(i){return this.update(i.id,i)}};n.\u0275fac=(()=>{let i;return function(o){return(i||(i=fe(n)))(o||n)}})(),n.\u0275prov=O({token:n,factory:n.\u0275fac,providedIn:"root"});let t=n;return t})();var Bc=(()=>{let n=class n extends da{constructor(){super(...arguments),this.endpoint="Positions"}createPosition(i){return this.create(i)}updatePosition(i){return this.update(i.id,i)}getAllPaged(i){let r=this.buildHttpParams(i);return this.http.get(`${this.apiUrl}/${this.endpoint}`,{params:r})}addMockPositions(i){return this.http.post(`${this.apiUrl}/${this.endpoint}/AddMock`,i)}};n.\u0275fac=(()=>{let i;return function(o){return(i||(i=fe(n)))(o||n)}})(),n.\u0275prov=O({token:n,factory:n.\u0275fac,providedIn:"root"});let t=n;return t})();var jc=(()=>{let n=class n extends da{constructor(){super(...arguments),this.endpoint="SalaryRanges"}createSalaryRange(i){return this.create(i)}updateSalaryRange(i){return this.update(i.id,i)}};n.\u0275fac=(()=>{let i;return function(o){return(i||(i=fe(n)))(o||n)}})(),n.\u0275prov=O({token:n,factory:n.\u0275fac,providedIn:"root"});let t=n;return t})();var oU=(()=>{let n=class n{decodeToken(i){if(!i)return null;try{let r=i.split(".");if(r.length!==3)return console.warn("Invalid JWT token format"),null;let o=this.decodeBase64Url(r[0]),a=this.decodeBase64Url(r[1]),s=r[2],l=JSON.parse(a),c=l.iat?new Date(l.iat*1e3):void 0,d=l.exp?new Date(l.exp*1e3):void 0,m=new Date,f=d?d24){let s=Math.floor(o/24);return`Expires in ${s} day${s>1?"s":""}`}else return o>0?`Expires in ${o}h ${a}m`:a>0?`Expires in ${a}m`:"Expires soon"}};n.\u0275fac=function(r){return new(r||n)},n.\u0275prov=O({token:n,factory:n.\u0275fac,providedIn:"root"});let t=n;return t})();var e_e=()=>["HRAdmin","Manager"],aU=()=>["HRAdmin"];function t_e(t,n){t&1&&(h(0,"div",3),k(1,"mat-spinner"),p())}function i_e(t,n){if(t&1&&(h(0,"div",21),k(1,"canvas",22),p()),t&2){let e=C(2);g(),y("data",e.departmentChartData)("options",e.departmentChartOptions)}}function n_e(t,n){t&1&&(h(0,"div",23)(1,"mat-icon"),_(2,"pie_chart"),p(),h(3,"p"),_(4,"No department data available"),p()())}function r_e(t,n){if(t&1&&(h(0,"div",21),k(1,"canvas",24),p()),t&2){let e=C(2);g(),y("data",e.positionChartData)("options",e.positionChartOptions)}}function o_e(t,n){t&1&&(h(0,"div",23)(1,"mat-icon"),_(2,"bar_chart"),p(),h(3,"p"),_(4,"No position data available"),p()())}function a_e(t,n){if(t&1&&(h(0,"div",21),k(1,"canvas",25),p()),t&2){let e=C(2);g(),y("data",e.genderChartData)("options",e.genderChartOptions)}}function s_e(t,n){t&1&&(h(0,"div",23)(1,"mat-icon"),_(2,"donut_large"),p(),h(3,"p"),_(4,"No gender data available"),p()())}function l_e(t,n){if(t&1&&(h(0,"div",21),k(1,"canvas",24),p()),t&2){let e=C(2);g(),y("data",e.salaryChartData)("options",e.salaryChartOptions)}}function c_e(t,n){t&1&&(h(0,"div",23)(1,"mat-icon"),_(2,"bar_chart"),p(),h(3,"p"),_(4,"No salary range data available"),p()())}function d_e(t,n){if(t&1){let e=Y();h(0,"mat-list-item",27),S("click",function(){let r=I(e).$implicit,o=C(3);return A(o.navigateToEmployee(r.id))}),h(1,"mat-icon",28),_(2,"person"),p(),h(3,"div",29),_(4),p(),h(5,"div",30),_(6),p(),h(7,"div",31),_(8),me(9,"date"),p()()}if(t&2){let e=n.$implicit;g(4),H(e.fullName),g(2),Od("",e.positionTitle," \u2022 ",e.departmentName),g(2),H(Ni(9,4,e.createdAt,"MMM d, y"))}}function u_e(t,n){if(t&1&&(h(0,"mat-list"),R(1,d_e,10,7,"mat-list-item",26),p()),t&2){let e=C(2);g(),y("ngForOf",e.metrics.recentEmployees)}}function m_e(t,n){t&1&&(h(0,"div",23)(1,"mat-icon"),_(2,"people_outline"),p(),h(3,"p"),_(4,"No recent employees"),p()())}function h_e(t,n){if(t&1){let e=Y();h(0,"button",36),S("click",function(){I(e);let r=C(3);return A(r.navigateToAddDepartment())}),h(1,"mat-icon"),_(2,"add_business"),p(),_(3," Add Department "),p()}}function p_e(t,n){if(t&1){let e=Y();h(0,"button",36),S("click",function(){I(e);let r=C(3);return A(r.navigateToAddPosition())}),h(1,"mat-icon"),_(2,"work_outline"),p(),_(3," Add Position "),p()}}function f_e(t,n){if(t&1){let e=Y();h(0,"div",32)(1,"mat-card")(2,"mat-card-header")(3,"mat-card-title"),_(4,"Quick Actions"),p()(),h(5,"mat-card-content")(6,"div",33)(7,"button",34),S("click",function(){I(e);let r=C(2);return A(r.navigateToAddEmployee())}),h(8,"mat-icon"),_(9,"person_add"),p(),_(10," Add Employee "),p(),R(11,h_e,4,0,"button",35)(12,p_e,4,0,"button",35),p()()()()}t&2&&(g(11),y("appHasRole",at(2,aU)),g(),y("appHasRole",at(3,aU)))}function g_e(t,n){if(t&1){let e=Y();h(0,"div",4)(1,"div",5)(2,"mat-card",6)(3,"mat-card-content")(4,"div",7)(5,"mat-icon"),_(6,"people"),p()(),h(7,"div",8),_(8),p(),h(9,"div",9),_(10,"Total Employees"),p()()(),h(11,"mat-card",6)(12,"mat-card-content")(13,"div",7)(14,"mat-icon"),_(15,"business"),p()(),h(16,"div",8),_(17),p(),h(18,"div",9),_(19,"Departments"),p()()(),h(20,"mat-card",6)(21,"mat-card-content")(22,"div",7)(23,"mat-icon"),_(24,"work"),p()(),h(25,"div",8),_(26),p(),h(27,"div",9),_(28,"Positions"),p()()(),h(29,"mat-card",6)(30,"mat-card-content")(31,"div",7)(32,"mat-icon"),_(33,"attach_money"),p()(),h(34,"div",8),_(35),p(),h(36,"div",9),_(37,"Salary Ranges"),p()()()(),h(38,"div",10)(39,"mat-card",11)(40,"mat-card-content")(41,"div",12)(42,"mat-icon"),_(43,"person_add"),p()(),h(44,"div",8),_(45),p(),h(46,"div",9),_(47,"New Hires This Month"),p()()(),h(48,"mat-card",11)(49,"mat-card-content")(50,"div",12)(51,"mat-icon"),_(52,"payments"),p()(),h(53,"div",8),_(54),me(55,"currency"),p(),h(56,"div",9),_(57,"Average Salary"),p()()()(),h(58,"div",13)(59,"mat-card",14)(60,"mat-card-header")(61,"mat-card-title"),_(62,"Employees by Department"),p()(),h(63,"mat-card-content"),R(64,i_e,2,2,"div",15)(65,n_e,5,0,"div",16),p()(),h(66,"mat-card",14)(67,"mat-card-header")(68,"mat-card-title"),_(69,"Top 10 Positions"),p()(),h(70,"mat-card-content"),R(71,r_e,2,2,"div",15)(72,o_e,5,0,"div",16),p()()(),h(73,"div",13)(74,"mat-card",14)(75,"mat-card-header")(76,"mat-card-title"),_(77,"Gender Distribution"),p()(),h(78,"mat-card-content"),R(79,a_e,2,2,"div",15)(80,s_e,5,0,"div",16),p()(),h(81,"mat-card",14)(82,"mat-card-header")(83,"mat-card-title"),_(84,"Salary Range Distribution"),p()(),h(85,"mat-card-content"),R(86,l_e,2,2,"div",15)(87,c_e,5,0,"div",16),p()()(),h(88,"div",17)(89,"mat-card")(90,"mat-card-header")(91,"mat-card-title"),_(92,"Recent Employees"),p(),h(93,"button",18),S("click",function(){I(e);let r=C();return A(r.navigateToEmployees())}),_(94," View All "),h(95,"mat-icon"),_(96,"arrow_forward"),p()()(),h(97,"mat-card-content"),R(98,u_e,2,1,"mat-list",19)(99,m_e,5,0,"div",16),p()()(),R(100,f_e,13,4,"div",20),p()}if(t&2){let e=C();g(8),H(e.metrics.totalEmployees),g(9),H(e.metrics.totalDepartments),g(9),H(e.metrics.totalPositions),g(9),H(e.metrics.totalSalaryRanges),g(10),H(e.metrics.newHiresThisMonth),g(9),H(Dm(55,17,e.metrics.averageSalary,"USD","symbol","1.0-0")),g(10),y("ngIf",e.departmentChartData),g(),y("ngIf",!e.departmentChartData),g(6),y("ngIf",e.positionChartData),g(),y("ngIf",!e.positionChartData),g(7),y("ngIf",e.genderChartData),g(),y("ngIf",!e.genderChartData),g(6),y("ngIf",e.salaryChartData),g(),y("ngIf",!e.salaryChartData),g(11),y("ngIf",e.metrics.recentEmployees&&e.metrics.recentEmployees.length>0),g(),y("ngIf",!e.metrics.recentEmployees||e.metrics.recentEmployees.length===0),g(),y("appHasRole",at(22,e_e))}}function __e(t,n){if(t&1){let e=Y();h(0,"div",37)(1,"mat-card")(2,"mat-card-content")(3,"div",23)(4,"mat-icon"),_(5,"error_outline"),p(),h(6,"p"),_(7,"Unable to load dashboard data"),p(),h(8,"button",34),S("click",function(){I(e);let r=C();return A(r.loadDashboardMetrics())}),h(9,"mat-icon"),_(10,"refresh"),p(),_(11," Retry "),p()()()()()}}var sU=(()=>{let n=class n{constructor(){this.dashboardService=u(rU),this.router=u(Re),this.snackBar=u(di),this.loading=!0,this.metrics=null,this.departmentChartData=null,this.departmentChartOptions={responsive:!0,maintainAspectRatio:!1,plugins:{legend:{position:"bottom"},tooltip:{callbacks:{label:i=>{let r=i.label||"",o=i.parsed||0;return`${r}: ${o} employees`}}}}},this.positionChartData=null,this.positionChartOptions={responsive:!0,maintainAspectRatio:!1,indexAxis:"y",plugins:{legend:{display:!1},tooltip:{callbacks:{label:i=>`${i.parsed.x} employees`}}},scales:{x:{beginAtZero:!0,ticks:{precision:0}}}},this.genderChartData=null,this.genderChartOptions={responsive:!0,maintainAspectRatio:!1,plugins:{legend:{position:"bottom"},tooltip:{callbacks:{label:i=>{let r=i.label||"",o=i.parsed||0;return`${r}: ${o} employees`}}}}},this.salaryChartData=null,this.salaryChartOptions={responsive:!0,maintainAspectRatio:!1,plugins:{legend:{display:!1},tooltip:{callbacks:{label:i=>`${i.parsed.y} employees`}}},scales:{y:{beginAtZero:!0,ticks:{precision:0}}}}}ngOnInit(){this.loadDashboardMetrics()}loadDashboardMetrics(){this.loading=!0,this.dashboardService.getDashboardMetrics().subscribe({next:i=>{this.metrics=i,this.prepareCharts(i),this.loading=!1},error:i=>{console.error("Error loading dashboard metrics:",i),this.showMessage("Error loading dashboard data"),this.loading=!1}})}prepareCharts(i){this.prepareDepartmentChart(i.employeesByDepartment),this.preparePositionChart(i.employeesByPosition),this.prepareGenderChart(i.genderDistribution),this.prepareSalaryChart(i.employeesBySalaryRange)}prepareDepartmentChart(i){if(!i||i.length===0){this.departmentChartData=null;return}this.departmentChartData={labels:i.map(r=>r.departmentName),datasets:[{data:i.map(r=>r.employeeCount),backgroundColor:["#FF6384","#36A2EB","#FFCE56","#4BC0C0","#9966FF","#FF9F40","#FF6384","#C9CBCF"]}]}}preparePositionChart(i){if(!i||i.length===0){this.positionChartData=null;return}this.positionChartData={labels:i.map(r=>r.positionTitle),datasets:[{label:"Employees",data:i.map(r=>r.employeeCount),backgroundColor:"#36A2EB"}]}}prepareGenderChart(i){if(!i){this.genderChartData=null;return}this.genderChartData={labels:["Male","Female"],datasets:[{data:[i.male,i.female],backgroundColor:["#36A2EB","#FF6384"]}]}}prepareSalaryChart(i){if(!i||i.length===0){this.salaryChartData=null;return}this.salaryChartData={labels:i.map(r=>r.rangeName),datasets:[{label:"Employees",data:i.map(r=>r.employeeCount),backgroundColor:"#4BC0C0"}]}}navigateToAddEmployee(){this.router.navigate(["/employees/create"])}navigateToAddDepartment(){this.router.navigate(["/departments/create"])}navigateToAddPosition(){this.router.navigate(["/positions/create"])}navigateToEmployees(){this.router.navigate(["/employees"])}navigateToEmployee(i){this.router.navigate(["/employees",i])}showMessage(i){this.snackBar.open(i,"Close",{duration:3e3,horizontalPosition:"end",verticalPosition:"top"})}};n.\u0275fac=function(r){return new(r||n)},n.\u0275cmp=E({type:n,selectors:[["app-dashboard"]],decls:4,vars:3,consts:[["class","loading-spinner",4,"ngIf"],["class","dashboard-container",4,"ngIf"],["class","error-state",4,"ngIf"],[1,"loading-spinner"],[1,"dashboard-container"],[1,"metrics-row"],[1,"metric-card"],[1,"metric-icon"],[1,"metric-value"],[1,"metric-label"],[1,"secondary-metrics-row"],[1,"metric-card","secondary"],[1,"metric-icon","secondary"],[1,"charts-row"],[1,"chart-card"],["class","chart-container",4,"ngIf"],["class","no-data",4,"ngIf"],[1,"activity-row"],["mat-button","","color","primary",3,"click"],[4,"ngIf"],["class","actions-row",4,"appHasRole"],[1,"chart-container"],["baseChart","","type","pie",3,"data","options"],[1,"no-data"],["baseChart","","type","bar",3,"data","options"],["baseChart","","type","doughnut",3,"data","options"],["class","clickable-item",3,"click",4,"ngFor","ngForOf"],[1,"clickable-item",3,"click"],["matListItemIcon",""],["matListItemTitle",""],["matListItemLine",""],["matListItemMeta",""],[1,"actions-row"],[1,"action-buttons"],["mat-raised-button","","color","primary",3,"click"],["mat-raised-button","","color","accent",3,"click",4,"appHasRole"],["mat-raised-button","","color","accent",3,"click"],[1,"error-state"]],template:function(r,o){r&1&&(k(0,"page-header"),R(1,t_e,2,0,"div",0)(2,g_e,101,23,"div",1)(3,__e,12,0,"div",2)),r&2&&(g(),y("ngIf",o.loading),g(),y("ngIf",!o.loading&&o.metrics),g(),y("ngIf",!o.loading&&!o.metrics))},dependencies:[gt,qr,li,$t,zt,Ut,Jt,Xt,ot,mt,ze,kt,Si,ki,ca,Fs,la,f_,Tu,Dl,SI,pi,W5,ni,Un,il,Sa],styles:[".loading-spinner[_ngcontent-%COMP%]{display:flex;justify-content:center;align-items:center;min-height:400px}.dashboard-container[_ngcontent-%COMP%]{padding:16px;max-width:1400px;margin:0 auto}.metrics-row[_ngcontent-%COMP%], .secondary-metrics-row[_ngcontent-%COMP%]{display:grid;grid-template-columns:repeat(auto-fit,minmax(200px,1fr));gap:16px;margin-bottom:24px}@media (max-width: 768px){.metrics-row[_ngcontent-%COMP%], .secondary-metrics-row[_ngcontent-%COMP%]{grid-template-columns:repeat(2,1fr)}}@media (max-width: 480px){.metrics-row[_ngcontent-%COMP%], .secondary-metrics-row[_ngcontent-%COMP%]{grid-template-columns:1fr}}.secondary-metrics-row[_ngcontent-%COMP%]{grid-template-columns:repeat(auto-fit,minmax(250px,1fr))}.metric-card[_ngcontent-%COMP%] mat-card-content[_ngcontent-%COMP%]{padding:24px!important;text-align:center}.metric-card[_ngcontent-%COMP%] .metric-icon[_ngcontent-%COMP%]{display:inline-flex;align-items:center;justify-content:center;width:64px;height:64px;border-radius:50%;background-color:#3f51b51a;margin-bottom:16px}.metric-card[_ngcontent-%COMP%] .metric-icon[_ngcontent-%COMP%] mat-icon[_ngcontent-%COMP%]{font-size:32px;width:32px;height:32px;color:#3f51b5}.metric-card[_ngcontent-%COMP%] .metric-icon.secondary[_ngcontent-%COMP%]{background-color:#ff98001a}.metric-card[_ngcontent-%COMP%] .metric-icon.secondary[_ngcontent-%COMP%] mat-icon[_ngcontent-%COMP%]{color:#ff9800}.metric-card[_ngcontent-%COMP%] .metric-value[_ngcontent-%COMP%]{font-size:32px;font-weight:600;color:#000000de;margin-bottom:8px;line-height:1.2}.metric-card[_ngcontent-%COMP%] .metric-label[_ngcontent-%COMP%]{font-size:14px;color:#0009;text-transform:uppercase;letter-spacing:.5px}.metric-card[_ngcontent-%COMP%]:hover{box-shadow:0 4px 8px #00000026;transition:box-shadow .3s ease}.charts-row[_ngcontent-%COMP%]{display:grid;grid-template-columns:repeat(auto-fit,minmax(400px,1fr));gap:24px;margin-bottom:24px}@media (max-width: 900px){.charts-row[_ngcontent-%COMP%]{grid-template-columns:1fr}}.chart-card[_ngcontent-%COMP%] mat-card-header[_ngcontent-%COMP%]{padding:16px 16px 0;margin-bottom:16px}.chart-card[_ngcontent-%COMP%] mat-card-header[_ngcontent-%COMP%] mat-card-title[_ngcontent-%COMP%]{font-size:18px;font-weight:500;margin:0}.chart-card[_ngcontent-%COMP%] mat-card-content[_ngcontent-%COMP%]{padding:0 16px 16px}.chart-card[_ngcontent-%COMP%] .chart-container[_ngcontent-%COMP%]{position:relative;height:300px;width:100%}.chart-card[_ngcontent-%COMP%] .no-data[_ngcontent-%COMP%]{display:flex;flex-direction:column;align-items:center;justify-content:center;min-height:300px;color:#00000061}.chart-card[_ngcontent-%COMP%] .no-data[_ngcontent-%COMP%] mat-icon[_ngcontent-%COMP%]{font-size:48px;width:48px;height:48px;margin-bottom:12px}.chart-card[_ngcontent-%COMP%] .no-data[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{margin:0;font-size:14px}.activity-row[_ngcontent-%COMP%]{margin-bottom:24px}.activity-row[_ngcontent-%COMP%] mat-card-header[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:space-between;padding:16px;border-bottom:1px solid rgba(0,0,0,.12)}.activity-row[_ngcontent-%COMP%] mat-card-header[_ngcontent-%COMP%] mat-card-title[_ngcontent-%COMP%]{font-size:18px;font-weight:500;margin:0}.activity-row[_ngcontent-%COMP%] mat-card-header[_ngcontent-%COMP%] button[_ngcontent-%COMP%] mat-icon[_ngcontent-%COMP%]{margin-left:4px;font-size:18px;width:18px;height:18px}.activity-row[_ngcontent-%COMP%] mat-card-content[_ngcontent-%COMP%]{padding:0}.activity-row[_ngcontent-%COMP%] mat-list[_ngcontent-%COMP%]{padding:0}.activity-row[_ngcontent-%COMP%] mat-list-item[_ngcontent-%COMP%]{height:auto;padding:12px 16px;cursor:pointer;transition:background-color .2s ease}.activity-row[_ngcontent-%COMP%] mat-list-item[_ngcontent-%COMP%]:hover{background-color:#0000000a}.activity-row[_ngcontent-%COMP%] mat-list-item[_ngcontent-%COMP%]:not(:last-child){border-bottom:1px solid rgba(0,0,0,.08)}.activity-row[_ngcontent-%COMP%] mat-list-item[_ngcontent-%COMP%] mat-icon[_ngcontent-%COMP%]{color:#0000008a}.activity-row[_ngcontent-%COMP%] .clickable-item[_ngcontent-%COMP%]{cursor:pointer}.activity-row[_ngcontent-%COMP%] .no-data[_ngcontent-%COMP%]{display:flex;flex-direction:column;align-items:center;justify-content:center;padding:48px 16px;color:#00000061}.activity-row[_ngcontent-%COMP%] .no-data[_ngcontent-%COMP%] mat-icon[_ngcontent-%COMP%]{font-size:48px;width:48px;height:48px;margin-bottom:12px}.activity-row[_ngcontent-%COMP%] .no-data[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{margin:0;font-size:14px}.actions-row[_ngcontent-%COMP%]{margin-bottom:24px}.actions-row[_ngcontent-%COMP%] mat-card-header[_ngcontent-%COMP%]{padding:16px;border-bottom:1px solid rgba(0,0,0,.12)}.actions-row[_ngcontent-%COMP%] mat-card-header[_ngcontent-%COMP%] mat-card-title[_ngcontent-%COMP%]{font-size:18px;font-weight:500;margin:0}.actions-row[_ngcontent-%COMP%] mat-card-content[_ngcontent-%COMP%]{padding:24px 16px}.actions-row[_ngcontent-%COMP%] .action-buttons[_ngcontent-%COMP%]{display:flex;gap:12px;flex-wrap:wrap}.actions-row[_ngcontent-%COMP%] .action-buttons[_ngcontent-%COMP%] button[_ngcontent-%COMP%] mat-icon[_ngcontent-%COMP%]{margin-right:8px}@media (max-width: 600px){.actions-row[_ngcontent-%COMP%] .action-buttons[_ngcontent-%COMP%]{flex-direction:column}.actions-row[_ngcontent-%COMP%] .action-buttons[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{width:100%}}.error-state[_ngcontent-%COMP%]{padding:16px}.error-state[_ngcontent-%COMP%] mat-card[_ngcontent-%COMP%]{max-width:600px;margin:0 auto}.error-state[_ngcontent-%COMP%] .no-data[_ngcontent-%COMP%]{display:flex;flex-direction:column;align-items:center;justify-content:center;padding:48px 16px;color:#0000008a}.error-state[_ngcontent-%COMP%] .no-data[_ngcontent-%COMP%] mat-icon[_ngcontent-%COMP%]{font-size:64px;width:64px;height:64px;margin-bottom:16px;color:#f44336}.error-state[_ngcontent-%COMP%] .no-data[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{margin:0 0 24px;font-size:16px}.error-state[_ngcontent-%COMP%] .no-data[_ngcontent-%COMP%] button[_ngcontent-%COMP%] mat-icon[_ngcontent-%COMP%]{margin-right:8px;font-size:20px;width:20px;height:20px}@media (max-width: 1200px){.dashboard-container[_ngcontent-%COMP%]{padding:12px}.charts-row[_ngcontent-%COMP%]{gap:16px}}@media (max-width: 768px){.metric-card[_ngcontent-%COMP%] mat-card-content[_ngcontent-%COMP%]{padding:16px!important}.metric-card[_ngcontent-%COMP%] .metric-icon[_ngcontent-%COMP%]{width:56px;height:56px}.metric-card[_ngcontent-%COMP%] .metric-icon[_ngcontent-%COMP%] mat-icon[_ngcontent-%COMP%]{font-size:28px;width:28px;height:28px}.metric-card[_ngcontent-%COMP%] .metric-value[_ngcontent-%COMP%]{font-size:28px}.metric-card[_ngcontent-%COMP%] .metric-label[_ngcontent-%COMP%]{font-size:12px}.chart-card[_ngcontent-%COMP%] .chart-container[_ngcontent-%COMP%]{height:250px}}@media (max-width: 480px){.dashboard-container[_ngcontent-%COMP%]{padding:8px}.metrics-row[_ngcontent-%COMP%], .secondary-metrics-row[_ngcontent-%COMP%], .charts-row[_ngcontent-%COMP%]{gap:12px;margin-bottom:16px}.metric-card[_ngcontent-%COMP%] .metric-value[_ngcontent-%COMP%]{font-size:24px}.chart-card[_ngcontent-%COMP%] .chart-container[_ngcontent-%COMP%]{height:200px}}"]});let t=n;return t})();var lU=(()=>{let n=class n{};n.\u0275fac=function(r){return new(r||n)},n.\u0275cmp=E({type:n,selectors:[["app-error-403"]],decls:1,vars:0,consts:[["code","403","title","Permission denied!","message","You do not have permission to access the requested data."]],template:function(r,o){r&1&&k(0,"error-code",0)},dependencies:[tp],encapsulation:2});let t=n;return t})();var cU=(()=>{let n=class n{};n.\u0275fac=function(r){return new(r||n)},n.\u0275cmp=E({type:n,selectors:[["app-error-404"]],decls:1,vars:0,consts:[["code","404","title","Page not found!","message","This is not the web page you are looking for."]],template:function(r,o){r&1&&k(0,"error-code",0)},dependencies:[tp],encapsulation:2});let t=n;return t})();var dU=(()=>{let n=class n{};n.\u0275fac=function(r){return new(r||n)},n.\u0275cmp=E({type:n,selectors:[["app-error-500"]],decls:1,vars:0,consts:[["code","500","title","Server went wrong!","message","Just kidding, looks like we have an internal issue, please try refreshing."]],template:function(r,o){r&1&&k(0,"error-code",0)},dependencies:[tp],encapsulation:2});let t=n;return t})();var b_e=t=>({value:t});function v_e(t,n){t&1&&(h(0,"mat-error")(1,"span"),_(2),me(3,"translate"),p()()),t&2&&(g(2),H(Oe(3,1,"validation.required")))}function y_e(t,n){t&1&&(h(0,"mat-error")(1,"span"),_(2),me(3,"translate"),p()()),t&2&&(g(2),H(Oe(3,1,"validation.required")))}function x_e(t,n){t&1&&(h(0,"mat-error")(1,"span"),_(2),me(3,"translate"),p()()),t&2&&(g(2),H(Oe(3,1,"validation.required")))}function C_e(t,n){t&1&&(h(0,"mat-error",8),me(1,"translate"),h(2,"span"),_(3),p()()),t&2&&(y("translateParams",Pt(4,b_e,Oe(1,2,"login.password"))),g(3),H("validation.inconsistent"))}var uU=(()=>{let n=class n{constructor(){this.fb=u(eo),this.registerForm=this.fb.nonNullable.group({username:["",[Le.required]],password:["",[Le.required]],confirmPassword:["",[Le.required]]},{validators:[this.matchValidator("password","confirmPassword")]})}matchValidator(i,r){return o=>{let a=o.get(i),s=o.get(r);return s.errors&&!s.errors.mismatch?null:a.value!==s.value?(s.setErrors({mismatch:!0}),{mismatch:!0}):(s.setErrors(null),null)}}};n.\u0275fac=function(r){return new(r||n)},n.\u0275cmp=E({type:n,selectors:[["app-register"]],decls:43,vars:32,consts:[[1,"d-flex","w-full","h-full"],[1,"m-auto",2,"max-width","380px"],[1,"m-b-24"],[1,"form-field-full",3,"formGroup"],["appearance","outline"],["matInput","","formControlName","username","required",""],["matInput","","type","password","formControlName","password","required",""],["matInput","","type","password","formControlName","confirmPassword","required",""],["translate","",3,"translateParams"],["matButton","filled",1,"w-full","m-y-16"],["routerLink","/auth/login"]],template:function(r,o){if(r&1&&(h(0,"div",0)(1,"mat-card",1)(2,"mat-card-header",2)(3,"mat-card-title"),_(4),me(5,"translate"),k(6,"br"),_(7),me(8,"translate"),p()(),h(9,"mat-card-content")(10,"form",3)(11,"mat-form-field",4)(12,"mat-label"),_(13),me(14,"translate"),p(),k(15,"input",5),N(16,v_e,4,3,"mat-error"),p(),h(17,"mat-form-field",4)(18,"mat-label"),_(19),me(20,"translate"),p(),k(21,"input",6),N(22,y_e,4,3,"mat-error"),p(),h(23,"mat-form-field",4)(24,"mat-label"),_(25),me(26,"translate"),p(),k(27,"input",7),N(28,x_e,4,3,"mat-error"),N(29,C_e,4,6,"mat-error",8),p(),h(30,"mat-checkbox"),_(31),me(32,"translate"),p(),h(33,"button",9),_(34),me(35,"translate"),p(),h(36,"div")(37,"span"),_(38),me(39,"translate"),p(),h(40,"a",10),_(41),me(42,"translate"),p()()()()()()),r&2){let a,s,l,c;g(4),ve(" ",Oe(5,14,"register_welcome"),", "),g(3),ve(" ",Oe(8,16,"register_title")," "),g(3),y("formGroup",o.registerForm),g(3),H(Oe(14,18,"username")),g(3),L((a=o.registerForm.get("username"))!=null&&a.invalid?16:-1),g(3),H(Oe(20,20,"password")),g(3),L((s=o.registerForm.get("password"))!=null&&s.invalid?22:-1),g(3),H(Oe(26,22,"confirm_password")),g(3),L((l=o.registerForm.get("confirmPassword"))!=null&&l.hasError("required")?28:-1),g(),L((c=o.registerForm.get("confirmPassword"))!=null&&c.hasError("mismatch")?29:-1),g(2),H(Oe(32,24,"read_and_agree")),g(3),H(Oe(35,26,"register")),g(4),ve("",Oe(39,28,"have_an_account"),"?"),g(3),H(Oe(42,30,"login"))}},dependencies:[Nn,du,Jr,Qi,ei,Xr,Do,zn,Ki,Lr,ze,kt,$t,zt,Ut,Jt,Xt,yx,Va,$i,Oi,sn,xo,rr,hn,wr,B3,Cr],encapsulation:2});let t=n;return t})();var mU=(()=>{let n=class n{constructor(){this.authService=u(Tt),this.router=u(Re)}ngOnInit(){return fn(this,null,function*(){try{(yield this.authService.initAuth())?this.router.navigate(["/dashboard"]):(console.warn("Authentication callback failed, redirecting to dashboard as guest"),this.router.navigate(["/dashboard"]))}catch(i){console.error("Error processing callback:",i),this.router.navigate(["/dashboard"])}})}};n.\u0275fac=function(r){return new(r||n)},n.\u0275cmp=E({type:n,selectors:[["app-callback"]],decls:5,vars:0,consts:[[1,"callback-container"]],template:function(r,o){r&1&&(ft(0,"div",0)(1,"h2"),_(2,"Processing login..."),vt(),ft(3,"p"),_(4,"Please wait while we complete your authentication."),vt()())},styles:[".callback-container[_ngcontent-%COMP%]{display:flex;flex-direction:column;align-items:center;justify-content:center;height:100vh;text-align:center}"]});let t=n;return t})();var w_e=[[["caption"]],[["colgroup"],["col"]],"*"],D_e=["caption","colgroup, col","*"];function E_e(t,n){t&1&&oe(0,2)}function M_e(t,n){t&1&&(h(0,"thead",0),Ge(1,1),p(),h(2,"tbody",0),Ge(3,2)(4,3),p(),h(5,"tfoot",0),Ge(6,4),p())}function k_e(t,n){t&1&&Ge(0,1)(1,2)(2,3)(3,4)}var za=new T("CDK_TABLE");var uw=(()=>{class t{template=u(te);constructor(){}static \u0275fac=function(i){return new(i||t)};static \u0275dir=F({type:t,selectors:[["","cdkCellDef",""]]})}return t})(),mw=(()=>{class t{template=u(te);constructor(){}static \u0275fac=function(i){return new(i||t)};static \u0275dir=F({type:t,selectors:[["","cdkHeaderCellDef",""]]})}return t})(),fU=(()=>{class t{template=u(te);constructor(){}static \u0275fac=function(i){return new(i||t)};static \u0275dir=F({type:t,selectors:[["","cdkFooterCellDef",""]]})}return t})(),sp=(()=>{class t{_table=u(za,{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(i){return new(i||t)};static \u0275dir=F({type:t,selectors:[["","cdkColumnDef",""]],contentQueries:function(i,r,o){if(i&1&&(xe(o,uw,5),xe(o,mw,5),xe(o,fU,5)),i&2){let a;B(a=j())&&(r.cell=a.first),B(a=j())&&(r.headerCell=a.first),B(a=j())&&(r.footerCell=a.first)}},inputs:{name:[0,"cdkColumnDef","name"],sticky:[2,"sticky","sticky",V],stickyEnd:[2,"stickyEnd","stickyEnd",V]},features:[Ce([{provide:"MAT_SORT_HEADER_COLUMN_DEF",useExisting:t}])]})}return t})(),cw=class{constructor(n,e){e.nativeElement.classList.add(...n._columnCssClassName)}},gU=(()=>{class t extends cw{constructor(){super(u(sp),u(q))}static \u0275fac=function(i){return new(i||t)};static \u0275dir=F({type:t,selectors:[["cdk-header-cell"],["th","cdk-header-cell",""]],hostAttrs:["role","columnheader",1,"cdk-header-cell"],features:[le]})}return t})();var _U=(()=>{class t extends cw{constructor(){let e=u(sp),i=u(q);super(e,i);let r=e._table?._getCellRole();r&&i.nativeElement.setAttribute("role",r)}static \u0275fac=function(i){return new(i||t)};static \u0275dir=F({type:t,selectors:[["cdk-cell"],["td","cdk-cell",""]],hostAttrs:[1,"cdk-cell"],features:[le]})}return t})();var jI=(()=>{class t{template=u(te);_differs=u(ds);columns;_columnsDiffer;constructor(){}ngOnChanges(e){if(!this._columnsDiffer){let i=e.columns&&e.columns.currentValue||[];this._columnsDiffer=this._differs.find(i).create(),this._columnsDiffer.diff(i)}}getColumnsDiff(){return this._columnsDiffer.diff(this.columns)}extractCellTemplate(e){return this instanceof v_?e.headerCell.template:this instanceof HI?e.footerCell.template:e.cell.template}static \u0275fac=function(i){return new(i||t)};static \u0275dir=F({type:t,features:[Ae]})}return t})(),v_=(()=>{class t extends jI{_table=u(za,{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(u(te),u(ds))}ngOnChanges(e){super.ngOnChanges(e)}hasStickyChanged(){let e=this._hasStickyChanged;return this.resetStickyChanged(),e}resetStickyChanged(){this._hasStickyChanged=!1}static \u0275fac=function(i){return new(i||t)};static \u0275dir=F({type:t,selectors:[["","cdkHeaderRowDef",""]],inputs:{columns:[0,"cdkHeaderRowDef","columns"],sticky:[2,"cdkHeaderRowDefSticky","sticky",V]},features:[le,Ae]})}return t})(),HI=(()=>{class t extends jI{_table=u(za,{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(u(te),u(ds))}ngOnChanges(e){super.ngOnChanges(e)}hasStickyChanged(){let e=this._hasStickyChanged;return this.resetStickyChanged(),e}resetStickyChanged(){this._hasStickyChanged=!1}static \u0275fac=function(i){return new(i||t)};static \u0275dir=F({type:t,selectors:[["","cdkFooterRowDef",""]],inputs:{columns:[0,"cdkFooterRowDef","columns"],sticky:[2,"cdkFooterRowDefSticky","sticky",V]},features:[le,Ae]})}return t})(),hw=(()=>{class t extends jI{_table=u(za,{optional:!0});when;constructor(){super(u(te),u(ds))}static \u0275fac=function(i){return new(i||t)};static \u0275dir=F({type:t,selectors:[["","cdkRowDef",""]],inputs:{columns:[0,"cdkRowDefColumns","columns"],when:[0,"cdkRowDefWhen","when"]},features:[le]})}return t})(),Au=(()=>{class t{_viewContainer=u(nt);cells;context;static mostRecentCellOutlet=null;constructor(){t.mostRecentCellOutlet=this}ngOnDestroy(){t.mostRecentCellOutlet===this&&(t.mostRecentCellOutlet=null)}static \u0275fac=function(i){return new(i||t)};static \u0275dir=F({type:t,selectors:[["","cdkCellOutlet",""]]})}return t})(),zI=(()=>{class t{static \u0275fac=function(i){return new(i||t)};static \u0275cmp=E({type:t,selectors:[["cdk-header-row"],["tr","cdk-header-row",""]],hostAttrs:["role","row",1,"cdk-header-row"],decls:1,vars:0,consts:[["cdkCellOutlet",""]],template:function(i,r){i&1&&Ge(0,0)},dependencies:[Au],encapsulation:2})}return t})();var UI=(()=>{class t{static \u0275fac=function(i){return new(i||t)};static \u0275cmp=E({type:t,selectors:[["cdk-row"],["tr","cdk-row",""]],hostAttrs:["role","row",1,"cdk-row"],decls:1,vars:0,consts:[["cdkCellOutlet",""]],template:function(i,r){i&1&&Ge(0,0)},dependencies:[Au],encapsulation:2})}return t})(),pw=(()=>{class t{templateRef=u(te);_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(i){return new(i||t)};static \u0275dir=F({type:t,selectors:[["ng-template","cdkNoDataRow",""]]})}return t})(),hU=["top","bottom","left","right"],BI=class{_isNativeHtmlTable;_stickCellCss;_isBrowser;_needsPositionStickyOnElement;direction;_positionListener;_tableInjector;_elemSizeCache=new WeakMap;_resizeObserver=globalThis?.ResizeObserver?new globalThis.ResizeObserver(n=>this._updateCachedSizes(n)):null;_updatedStickyColumnsParamsToReplay=[];_stickyColumnsReplayTimeout=null;_cachedCellWidths=[];_borderCellCss;_destroyed=!1;constructor(n,e,i=!0,r=!0,o,a,s){this._isNativeHtmlTable=n,this._stickCellCss=e,this._isBrowser=i,this._needsPositionStickyOnElement=r,this.direction=o,this._positionListener=a,this._tableInjector=s,this._borderCellCss={top:`${e}-border-elem-top`,bottom:`${e}-border-elem-bottom`,left:`${e}-border-elem-left`,right:`${e}-border-elem-right`}}clearStickyPositioning(n,e){(e.includes("left")||e.includes("right"))&&this._removeFromStickyColumnReplayQueue(n);let i=[];for(let r of n)r.nodeType===r.ELEMENT_NODE&&i.push(r,...Array.from(r.children));pt({write:()=>{for(let r of i)this._removeStickyStyle(r,e)}},{injector:this._tableInjector})}updateStickyColumns(n,e,i,r=!0,o=!0){if(!n.length||!this._isBrowser||!(e.some(x=>x)||i.some(x=>x))){this._positionListener?.stickyColumnsUpdated({sizes:[]}),this._positionListener?.stickyEndColumnsUpdated({sizes:[]});return}let a=n[0],s=a.children.length,l=this.direction==="rtl",c=l?"right":"left",d=l?"left":"right",m=e.lastIndexOf(!0),f=i.indexOf(!0),b,v,w;o&&this._updateStickyColumnReplayQueue({rows:[...n],stickyStartStates:[...e],stickyEndStates:[...i]}),pt({earlyRead:()=>{b=this._getCellWidths(a,r),v=this._getStickyStartColumnPositions(b,e),w=this._getStickyEndColumnPositions(b,i)},write:()=>{for(let x of n)for(let D=0;D!!x)&&(this._positionListener.stickyColumnsUpdated({sizes:m===-1?[]:b.slice(0,m+1).map((x,D)=>e[D]?x:null)}),this._positionListener.stickyEndColumnsUpdated({sizes:f===-1?[]:b.slice(f).map((x,D)=>i[D+f]?x:null).reverse()}))}},{injector:this._tableInjector})}stickRows(n,e,i){if(!this._isBrowser)return;let r=i==="bottom"?n.slice().reverse():n,o=i==="bottom"?e.slice().reverse():e,a=[],s=[],l=[];pt({earlyRead:()=>{for(let c=0,d=0;c{let c=o.lastIndexOf(!0);for(let d=0;d{let i=n.querySelector("tfoot");i&&(e.some(r=>!r)?this._removeStickyStyle(i,["bottom"]):this._addStickyStyle(i,"bottom",0,!1))}},{injector:this._tableInjector})}destroy(){this._stickyColumnsReplayTimeout&&clearTimeout(this._stickyColumnsReplayTimeout),this._resizeObserver?.disconnect(),this._destroyed=!0}_removeStickyStyle(n,e){if(!n.classList.contains(this._stickCellCss))return;for(let r of e)n.style[r]="",n.classList.remove(this._borderCellCss[r]);hU.some(r=>e.indexOf(r)===-1&&n.style[r])?n.style.zIndex=this._getCalculatedZIndex(n):(n.style.zIndex="",this._needsPositionStickyOnElement&&(n.style.position=""),n.classList.remove(this._stickCellCss))}_addStickyStyle(n,e,i,r){n.classList.add(this._stickCellCss),r&&n.classList.add(this._borderCellCss[e]),n.style[e]=`${i}px`,n.style.zIndex=this._getCalculatedZIndex(n),this._needsPositionStickyOnElement&&(n.style.cssText+="position: -webkit-sticky; position: sticky; ")}_getCalculatedZIndex(n){let e={top:100,bottom:10,left:1,right:1},i=0;for(let r of hU)n.style[r]&&(i+=e[r]);return i?`${i}`:""}_getCellWidths(n,e=!0){if(!e&&this._cachedCellWidths.length)return this._cachedCellWidths;let i=[],r=n.children;for(let o=0;o0;o--)e[o]&&(i[o]=r,r+=n[o]);return i}_retrieveElementSize(n){let e=this._elemSizeCache.get(n);if(e)return e;let i=n.getBoundingClientRect(),r={width:i.width,height:i.height};return this._resizeObserver&&(this._elemSizeCache.set(n,r),this._resizeObserver.observe(n,{box:"border-box"})),r}_updateStickyColumnReplayQueue(n){this._removeFromStickyColumnReplayQueue(n.rows),this._stickyColumnsReplayTimeout||this._updatedStickyColumnsParamsToReplay.push(n)}_removeFromStickyColumnReplayQueue(n){let e=new Set(n);for(let i of this._updatedStickyColumnsParamsToReplay)i.rows=i.rows.filter(r=>!e.has(r));this._updatedStickyColumnsParamsToReplay=this._updatedStickyColumnsParamsToReplay.filter(i=>!!i.rows.length)}_updateCachedSizes(n){let e=!1;for(let i of n){let r=i.borderBoxSize?.length?{width:i.borderBoxSize[0].inlineSize,height:i.borderBoxSize[0].blockSize}:{width:i.contentRect.width,height:i.contentRect.height};r.width!==this._elemSizeCache.get(i.target)?.width&&S_e(i.target)&&(e=!0),this._elemSizeCache.set(i.target,r)}e&&this._updatedStickyColumnsParamsToReplay.length&&(this._stickyColumnsReplayTimeout&&clearTimeout(this._stickyColumnsReplayTimeout),this._stickyColumnsReplayTimeout=setTimeout(()=>{if(!this._destroyed){for(let i of this._updatedStickyColumnsParamsToReplay)this.updateStickyColumns(i.rows,i.stickyStartStates,i.stickyEndStates,!0,!1);this._updatedStickyColumnsParamsToReplay=[],this._stickyColumnsReplayTimeout=null}},0))}};function S_e(t){return["cdk-cell","cdk-header-cell","cdk-footer-cell"].some(n=>t.classList.contains(n))}var dw=new T("CDK_SPL");var $I=(()=>{class t{viewContainer=u(nt);elementRef=u(q);constructor(){let e=u(za);e._rowOutlet=this,e._outletAssigned()}static \u0275fac=function(i){return new(i||t)};static \u0275dir=F({type:t,selectors:[["","rowOutlet",""]]})}return t})(),WI=(()=>{class t{viewContainer=u(nt);elementRef=u(q);constructor(){let e=u(za);e._headerRowOutlet=this,e._outletAssigned()}static \u0275fac=function(i){return new(i||t)};static \u0275dir=F({type:t,selectors:[["","headerRowOutlet",""]]})}return t})(),GI=(()=>{class t{viewContainer=u(nt);elementRef=u(q);constructor(){let e=u(za);e._footerRowOutlet=this,e._outletAssigned()}static \u0275fac=function(i){return new(i||t)};static \u0275dir=F({type:t,selectors:[["","footerRowOutlet",""]]})}return t})(),qI=(()=>{class t{viewContainer=u(nt);elementRef=u(q);constructor(){let e=u(za);e._noDataRowOutlet=this,e._outletAssigned()}static \u0275fac=function(i){return new(i||t)};static \u0275dir=F({type:t,selectors:[["","noDataRowOutlet",""]]})}return t})(),YI=(()=>{class t{_differs=u(ds);_changeDetectorRef=u(ye);_elementRef=u(q);_dir=u(Vt,{optional:!0});_platform=u(qe);_viewRepeater=u(fh);_viewportRuler=u(Xn);_stickyPositioningListener=u(dw,{optional:!0,skipSelf:!0});_document=u(ge);_data;_onDestroy=new z;_renderRows;_renderChangeSubscription;_columnDefsByName=new Map;_rowDefs;_headerRowDefs;_footerRowDefs;_dataDiffer;_defaultRowDef;_customColumnDefs=new Set;_customRowDefs=new Set;_customHeaderRowDefs=new Set;_customFooterRowDefs=new Set;_customNoDataRow;_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;_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)}_dataSource;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._fixedLayout}set fixedLayout(e){this._fixedLayout=e,this._forceRecalculateCellWidths=!0,this._stickyColumnStylesNeedReset=!0}_fixedLayout=!1;contentChanged=new U;viewChange=new tt({start:0,end:Number.MAX_VALUE});_rowOutlet;_headerRowOutlet;_footerRowOutlet;_noDataRowOutlet;_contentColumnDefs;_contentRowDefs;_contentHeaderRowDefs;_contentFooterRowDefs;_noDataRow;_injector=u(de);constructor(){u(new Ii("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((i,r)=>this.trackBy?this.trackBy(r.dataIndex,r.data):r)}ngOnInit(){this._setupStickyStyler(),this._viewportRuler.change().pipe(Te(this._onDestroy)).subscribe(()=>{this._forceRecalculateCellWidths=!0})}ngAfterContentInit(){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._onDestroy.next(),this._onDestroy.complete(),ig(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 i=this._rowOutlet.viewContainer;this._viewRepeater.applyChanges(e,i,(r,o,a)=>this._getEmbeddedViewArgs(r.item,a),r=>r.item.data,r=>{r.operation===cc.INSERTED&&r.context&&this._renderCellTemplateForItem(r.record.item.rowDef,r.context)}),this._updateRowIndexContext(),e.forEachIdentityChange(r=>{let o=i.get(r.currentIndex);o.context.$implicit=r.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 r=pU(this._headerRowOutlet,"thead");r&&(r.style.display=e.length?"":"none")}let i=this._headerRowDefs.map(r=>r.sticky);this._stickyStyler.clearStickyPositioning(e,["top"]),this._stickyStyler.stickRows(e,i,"top"),this._headerRowDefs.forEach(r=>r.resetStickyChanged())}updateStickyFooterRowStyles(){let e=this._getRenderedRows(this._footerRowOutlet);if(this._isNativeHtmlTable){let r=pU(this._footerRowOutlet,"tfoot");r&&(r.style.display=e.length?"":"none")}let i=this._footerRowDefs.map(r=>r.sticky);this._stickyStyler.clearStickyPositioning(e,["bottom"]),this._stickyStyler.stickRows(e,i,"bottom"),this._stickyStyler.updateStickyFooterContainer(this._elementRef.nativeElement,i),this._footerRowDefs.forEach(r=>r.resetStickyChanged())}updateStickyColumnStyles(){let e=this._getRenderedRows(this._headerRowOutlet),i=this._getRenderedRows(this._rowOutlet),r=this._getRenderedRows(this._footerRowOutlet);(this._isNativeHtmlTable&&!this._fixedLayout||this._stickyColumnStylesNeedReset)&&(this._stickyStyler.clearStickyPositioning([...e,...i,...r],["left","right"]),this._stickyColumnStylesNeedReset=!1),e.forEach((o,a)=>{this._addStickyColumnStyles([o],this._headerRowDefs[a])}),this._rowDefs.forEach(o=>{let a=[];for(let s=0;s{this._addStickyColumnStyles([o],this._footerRowDefs[a])}),Array.from(this._columnDefsByName.values()).forEach(o=>o.resetStickyChanged())}_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 i=this._renderUpdatedColumns()||this._headerRowDefChanged||this._footerRowDefChanged;this._stickyColumnStylesNeedReset=this._stickyColumnStylesNeedReset||i,this._forceRecalculateCellWidths=i,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(){let e=[],i=this._cachedRenderRowsMap;if(this._cachedRenderRowsMap=new Map,!this._data)return e;for(let r=0;r{let s=r&&r.has(a)?r.get(a):[];if(s.length){let l=s.shift();return l.dataIndex=i,l}else return{data:e,rowDef:a,dataIndex:i}})}_cacheColumnDefs(){this._columnDefsByName.clear(),lw(this._getOwnDefs(this._contentColumnDefs),this._customColumnDefs).forEach(i=>{this._columnDefsByName.has(i.name),this._columnDefsByName.set(i.name,i)})}_cacheRowDefs(){this._headerRowDefs=lw(this._getOwnDefs(this._contentHeaderRowDefs),this._customHeaderRowDefs),this._footerRowDefs=lw(this._getOwnDefs(this._contentFooterRowDefs),this._customFooterRowDefs),this._rowDefs=lw(this._getOwnDefs(this._contentRowDefs),this._customRowDefs);let e=this._rowDefs.filter(i=>!i.when);!this.multiTemplateDataRows&&e.length>1,this._defaultRowDef=e[0]}_renderUpdatedColumns(){let e=(a,s)=>{let l=!!s.getColumnsDiff();return a||l},i=this._rowDefs.reduce(e,!1);i&&this._forceRenderDataRows();let r=this._headerRowDefs.reduce(e,!1);r&&this._forceRenderHeaderRows();let o=this._footerRowDefs.reduce(e,!1);return o&&this._forceRenderFooterRows(),i||r||o}_switchDataSource(e){this._data=[],ig(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;ig(this.dataSource)?e=this.dataSource.connect(this):ji(this.dataSource)?e=this.dataSource:Array.isArray(this.dataSource)&&(e=Q(this.dataSource)),this._renderChangeSubscription=e.pipe(Te(this._onDestroy)).subscribe(i=>{this._data=i||[],this.renderRows()})}_forceRenderHeaderRows(){this._headerRowOutlet.viewContainer.length>0&&this._headerRowOutlet.viewContainer.clear(),this._headerRowDefs.forEach((e,i)=>this._renderRow(this._headerRowOutlet,e,i)),this.updateStickyHeaderRowStyles()}_forceRenderFooterRows(){this._footerRowOutlet.viewContainer.length>0&&this._footerRowOutlet.viewContainer.clear(),this._footerRowDefs.forEach((e,i)=>this._renderRow(this._footerRowOutlet,e,i)),this.updateStickyFooterRowStyles()}_addStickyColumnStyles(e,i){let r=Array.from(i?.columns||[]).map(s=>{let l=this._columnDefsByName.get(s);return l}),o=r.map(s=>s.sticky),a=r.map(s=>s.stickyEnd);this._stickyStyler.updateStickyColumns(e,o,a,!this._fixedLayout||this._forceRecalculateCellWidths)}_getRenderedRows(e){let i=[];for(let r=0;r!o.when||o.when(i,e));else{let o=this._rowDefs.find(a=>a.when&&a.when(i,e))||this._defaultRowDef;o&&r.push(o)}return r.length,r}_getEmbeddedViewArgs(e,i){let r=e.rowDef,o={$implicit:e.data};return{templateRef:r.template,context:o,index:i}}_renderRow(e,i,r,o={}){let a=e.viewContainer.createEmbeddedView(i.template,o,r);return this._renderCellTemplateForItem(i,o),a}_renderCellTemplateForItem(e,i){for(let r of this._getCellTemplates(e))Au.mostRecentCellOutlet&&Au.mostRecentCellOutlet._viewContainer.createEmbeddedView(r,i);this._changeDetectorRef.markForCheck()}_updateRowIndexContext(){let e=this._rowOutlet.viewContainer;for(let i=0,r=e.length;i{let r=this._columnDefsByName.get(i);return e.extractCellTemplate(r)})}_forceRenderDataRows(){this._dataDiffer.diff([]),this._rowOutlet.viewContainer.clear(),this.renderRows()}_checkStickyStates(){let e=(i,r)=>i||r.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";this._stickyStyler=new BI(this._isNativeHtmlTable,this.stickyCssClass,this._platform.isBrowser,this.needsPositionStickyOnElement,e,this._stickyPositioningListener,this._injector),(this._dir?this._dir.change:Q()).pipe(Te(this._onDestroy)).subscribe(i=>{this._stickyStyler.direction=i,this.updateStickyColumnStyles()})}_getOwnDefs(e){return e.filter(i=>!i._table||i._table===this)}_updateNoDataRow(){let e=this._customNoDataRow||this._noDataRow;if(!e)return;let i=this._rowOutlet.viewContainer.length===0;if(i===this._isShowingNoDataRow)return;let r=this._noDataRowOutlet.viewContainer;if(i){let o=r.createEmbeddedView(e.templateRef),a=o.rootNodes[0];if(o.rootNodes.length===1&&a?.nodeType===this._document.ELEMENT_NODE){a.setAttribute("role","row"),a.classList.add(...e._contentClassNames);let s=a.querySelectorAll(e._cellSelector);for(let l=0;l{class t{static \u0275fac=function(i){return new(i||t)};static \u0275mod=ee({type:t});static \u0275inj=J({imports:[ng]})}return t})();var T_e=[[["caption"]],[["colgroup"],["col"]],"*"],I_e=["caption","colgroup, col","*"];function A_e(t,n){t&1&&oe(0,2)}function O_e(t,n){t&1&&(h(0,"thead",0),Ge(1,1),p(),h(2,"tbody",2),Ge(3,3)(4,4),p(),h(5,"tfoot",0),Ge(6,5),p())}function R_e(t,n){t&1&&Ge(0,1)(1,3)(2,4)(3,5)}var Hc=(()=>{class t extends YI{stickyCssClass="mat-mdc-table-sticky";needsPositionStickyOnElement=!1;static \u0275fac=(()=>{let e;return function(r){return(e||(e=fe(t)))(r||t)}})();static \u0275cmp=E({type:t,selectors:[["mat-table"],["table","mat-table",""]],hostAttrs:[1,"mat-mdc-table","mdc-data-table__table"],hostVars:2,hostBindings:function(i,r){i&2&&G("mdc-table-fixed-layout",r.fixedLayout)},exportAs:["matTable"],features:[Ce([{provide:YI,useExisting:t},{provide:za,useExisting:t},{provide:fh,useClass:su},{provide:dw,useValue:null}]),le],ngContentSelectors:I_e,decls:5,vars:2,consts:[["role","rowgroup"],["headerRowOutlet",""],["role","rowgroup",1,"mdc-data-table__content"],["rowOutlet",""],["noDataRowOutlet",""],["footerRowOutlet",""]],template:function(i,r){i&1&&(Me(T_e),oe(0),oe(1,1),N(2,A_e,1,0),N(3,O_e,7,0)(4,R_e,4,0)),i&2&&(g(2),L(r._isServer?2:-1),g(),L(r._isNativeHtmlTable?3:4))},dependencies:[WI,$I,qI,GI],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))}.mdc-data-table__cell{box-sizing:border-box;overflow:hidden;text-align:left;text-overflow:ellipsis}[dir=rtl] .mdc-data-table__cell{text-align:right}.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:left}[dir=rtl] .mat-mdc-header-cell{text-align:right}.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 t})(),zc=(()=>{class t extends uw{static \u0275fac=(()=>{let e;return function(r){return(e||(e=fe(t)))(r||t)}})();static \u0275dir=F({type:t,selectors:[["","matCellDef",""]],features:[Ce([{provide:uw,useExisting:t}]),le]})}return t})(),Uc=(()=>{class t extends mw{static \u0275fac=(()=>{let e;return function(r){return(e||(e=fe(t)))(r||t)}})();static \u0275dir=F({type:t,selectors:[["","matHeaderCellDef",""]],features:[Ce([{provide:mw,useExisting:t}]),le]})}return t})();var $c=(()=>{class t extends sp{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(r){return(e||(e=fe(t)))(r||t)}})();static \u0275dir=F({type:t,selectors:[["","matColumnDef",""]],inputs:{name:[0,"matColumnDef","name"]},features:[Ce([{provide:sp,useExisting:t},{provide:"MAT_SORT_HEADER_COLUMN_DEF",useExisting:t}]),le]})}return t})(),Wc=(()=>{class t extends gU{static \u0275fac=(()=>{let e;return function(r){return(e||(e=fe(t)))(r||t)}})();static \u0275dir=F({type:t,selectors:[["mat-header-cell"],["th","mat-header-cell",""]],hostAttrs:["role","columnheader",1,"mat-mdc-header-cell","mdc-data-table__header-cell"],features:[le]})}return t})();var Gc=(()=>{class t extends _U{static \u0275fac=(()=>{let e;return function(r){return(e||(e=fe(t)))(r||t)}})();static \u0275dir=F({type:t,selectors:[["mat-cell"],["td","mat-cell",""]],hostAttrs:[1,"mat-mdc-cell","mdc-data-table__cell"],features:[le]})}return t})();var qc=(()=>{class t extends v_{static \u0275fac=(()=>{let e;return function(r){return(e||(e=fe(t)))(r||t)}})();static \u0275dir=F({type:t,selectors:[["","matHeaderRowDef",""]],inputs:{columns:[0,"matHeaderRowDef","columns"],sticky:[2,"matHeaderRowDefSticky","sticky",V]},features:[Ce([{provide:v_,useExisting:t}]),le]})}return t})();var Yc=(()=>{class t extends hw{static \u0275fac=(()=>{let e;return function(r){return(e||(e=fe(t)))(r||t)}})();static \u0275dir=F({type:t,selectors:[["","matRowDef",""]],inputs:{columns:[0,"matRowDefColumns","columns"],when:[0,"matRowDefWhen","when"]},features:[Ce([{provide:hw,useExisting:t}]),le]})}return t})(),Qc=(()=>{class t extends zI{static \u0275fac=(()=>{let e;return function(r){return(e||(e=fe(t)))(r||t)}})();static \u0275cmp=E({type:t,selectors:[["mat-header-row"],["tr","mat-header-row",""]],hostAttrs:["role","row",1,"mat-mdc-header-row","mdc-data-table__header-row"],exportAs:["matHeaderRow"],features:[Ce([{provide:zI,useExisting:t}]),le],decls:1,vars:0,consts:[["cdkCellOutlet",""]],template:function(i,r){i&1&&Ge(0,0)},dependencies:[Au],encapsulation:2})}return t})();var Kc=(()=>{class t extends UI{static \u0275fac=(()=>{let e;return function(r){return(e||(e=fe(t)))(r||t)}})();static \u0275cmp=E({type:t,selectors:[["mat-row"],["tr","mat-row",""]],hostAttrs:["role","row",1,"mat-mdc-row","mdc-data-table__row"],exportAs:["matRow"],features:[Ce([{provide:UI,useExisting:t}]),le],decls:1,vars:0,consts:[["cdkCellOutlet",""]],template:function(i,r){i&1&&Ge(0,0)},dependencies:[Au],encapsulation:2})}return t})(),gw=(()=>{class t extends pw{_cellSelector="td, mat-cell, [mat-cell], .mat-cell";constructor(){super(),this._contentClassNames.push("mat-mdc-no-data-row","mat-mdc-row","mdc-data-table__row"),this._cellClassNames.push("mat-mdc-cell","mdc-data-table__cell","mat-no-data-cell")}static \u0275fac=function(i){return new(i||t)};static \u0275dir=F({type:t,selectors:[["ng-template","matNoDataRow",""]],features:[Ce([{provide:pw,useExisting:t}]),le]})}return t})();var Zc=(()=>{class t{static \u0275fac=function(i){return new(i||t)};static \u0275mod=ee({type:t});static \u0275inj=J({imports:[we,bU,we]})}return t})(),P_e=9007199254740991,fw=class extends tg{_data;_renderData=new tt([]);_filter=new tt("");_internalPageChanges=new z;_renderChangesSubscription=null;filteredData;get data(){return this._data.value}set data(n){n=Array.isArray(n)?n:[],this._data.next(n),this._renderChangesSubscription||this._filterData(n)}get filter(){return this._filter.value}set filter(n){this._filter.next(n),this._renderChangesSubscription||this._filterData(this.data)}get sort(){return this._sort}set sort(n){this._sort=n,this._updateChangeSubscription()}_sort;get paginator(){return this._paginator}set paginator(n){this._paginator=n,this._updateChangeSubscription()}_paginator;sortingDataAccessor=(n,e)=>{let i=n[e];if(N0(i)){let r=Number(i);return r{let i=e.active,r=e.direction;return!i||r==""?n:n.sort((o,a)=>{let s=this.sortingDataAccessor(o,i),l=this.sortingDataAccessor(a,i),c=typeof s,d=typeof l;c!==d&&(c==="number"&&(s+=""),d==="number"&&(l+=""));let m=0;return s!=null&&l!=null?s>l?m=1:s{let i=e.trim().toLowerCase();return Object.values(n).some(r=>`${r}`.toLowerCase().includes(i))};constructor(n=[]){super(),this._data=new tt(n),this._updateChangeSubscription()}_updateChangeSubscription(){let n=this._sort?Je(this._sort.sortChange,this._sort.initialized):Q(null),e=this._paginator?Je(this._paginator.page,this._internalPageChanges,this._paginator.initialized):Q(null),i=this._data,r=co([i,this._filter]).pipe(se(([s])=>this._filterData(s))),o=co([r,n]).pipe(se(([s])=>this._orderData(s))),a=co([o,e]).pipe(se(([s])=>this._pageData(s)));this._renderChangesSubscription?.unsubscribe(),this._renderChangesSubscription=a.subscribe(s=>this._renderData.next(s))}_filterData(n){return this.filteredData=this.filter==null||this.filter===""?n:n.filter(e=>this.filterPredicate(e,this.filter)),this.paginator&&this._updatePaginator(this.filteredData.length),this.filteredData}_orderData(n){return this.sort?this.sortData(n.slice(),this.sort):n}_pageData(n){if(!this.paginator)return n;let e=this.paginator.pageIndex*this.paginator.pageSize;return n.slice(e,e+this.paginator.pageSize)}_updatePaginator(n){Promise.resolve().then(()=>{let e=this.paginator;if(e&&(e.length=n,e.pageIndex>0)){let i=Math.ceil(e.length/e.pageSize)-1||0,r=Math.min(e.pageIndex,i);r!==e.pageIndex&&(e.pageIndex=r,this._internalPageChanges.next())}})}connect(){return this._renderChangesSubscription||this._updateChangeSubscription(),this._renderData}disconnect(){this._renderChangesSubscription?.unsubscribe(),this._renderChangesSubscription=null}};var F_e=["panel"],N_e=["*"];function L_e(t,n){if(t&1&&(ft(0,"div",1,0),oe(2),vt()),t&2){let e=n.id,i=C();it(i._classList),G("mat-mdc-autocomplete-visible",i.showPanel)("mat-mdc-autocomplete-hidden",!i.showPanel)("mat-autocomplete-panel-animations-enabled",!i._animationsDisabled)("mat-primary",i._color==="primary")("mat-accent",i._color==="accent")("mat-warn",i._color==="warn"),si("id",i.id),X("aria-label",i.ariaLabel||null)("aria-labelledby",i._getPanelAriaLabelledby(e))}}var QI=class{source;option;constructor(n,e){this.source=n,this.option=e}},vU=new T("mat-autocomplete-default-options",{providedIn:"root",factory:V_e});function V_e(){return{autoActiveFirstOption:!1,autoSelectActiveOption:!1,hideSingleSelectionIndicator:!1,requireSelection:!1,hasBackdrop:!1}}var bw=(()=>{class t{_changeDetectorRef=u(ye);_elementRef=u(q);_defaults=u(vU);_animationsDisabled=Ye();_activeOptionChanges=ke.EMPTY;_keyManager;showPanel=!1;get isOpen(){return this._isOpen&&this.showPanel}_isOpen=!1;_latestOpeningTrigger;_setColor(e){this._color=e,this._changeDetectorRef.markForCheck()}_color;template;panel;options;optionGroups;ariaLabel;ariaLabelledby;displayWith=null;autoActiveFirstOption;autoSelectActiveOption;requireSelection;panelWidth;disableRipple;optionSelected=new U;opened=new U;closed=new U;optionActivated=new U;set classList(e){this._classList=e,this._elementRef.nativeElement.className=""}_classList;get hideSingleSelectionIndicator(){return this._hideSingleSelectionIndicator}set hideSingleSelectionIndicator(e){this._hideSingleSelectionIndicator=e,this._syncParentProperties()}_hideSingleSelectionIndicator;_syncParentProperties(){if(this.options)for(let e of this.options)e._changeDetectorRef.markForCheck()}id=u(Ze).getId("mat-autocomplete-");inertGroups;constructor(){let e=u(qe);this.inertGroups=e?.SAFARI||!1,this.autoActiveFirstOption=!!this._defaults.autoActiveFirstOption,this.autoSelectActiveOption=!!this._defaults.autoSelectActiveOption,this.requireSelection=!!this._defaults.requireSelection,this._hideSingleSelectionIndicator=this._defaults.hideSingleSelectionIndicator??!1}ngAfterContentInit(){this._keyManager=new qd(this.options).withWrap().skipPredicate(this._skipPredicate),this._activeOptionChanges=this._keyManager.change.subscribe(e=>{this.isOpen&&this.optionActivated.emit({source:this,option:this.options.toArray()[e]||null})}),this._setVisibility()}ngOnDestroy(){this._keyManager?.destroy(),this._activeOptionChanges.unsubscribe()}_setScrollTop(e){this.panel&&(this.panel.nativeElement.scrollTop=e)}_getScrollTop(){return this.panel?this.panel.nativeElement.scrollTop:0}_setVisibility(){this.showPanel=!!this.options?.length,this._changeDetectorRef.markForCheck()}_emitSelectEvent(e){let i=new QI(this,e);this.optionSelected.emit(i)}_getPanelAriaLabelledby(e){if(this.ariaLabel)return null;let i=e?e+" ":"";return this.ariaLabelledby?i+this.ariaLabelledby:e}_skipPredicate(){return!1}static \u0275fac=function(i){return new(i||t)};static \u0275cmp=E({type:t,selectors:[["mat-autocomplete"]],contentQueries:function(i,r,o){if(i&1&&(xe(o,xn,5),xe(o,Zd,5)),i&2){let a;B(a=j())&&(r.options=a),B(a=j())&&(r.optionGroups=a)}},viewQuery:function(i,r){if(i&1&&(ie(te,7),ie(F_e,5)),i&2){let o;B(o=j())&&(r.template=o.first),B(o=j())&&(r.panel=o.first)}},hostAttrs:[1,"mat-mdc-autocomplete"],inputs:{ariaLabel:[0,"aria-label","ariaLabel"],ariaLabelledby:[0,"aria-labelledby","ariaLabelledby"],displayWith:"displayWith",autoActiveFirstOption:[2,"autoActiveFirstOption","autoActiveFirstOption",V],autoSelectActiveOption:[2,"autoSelectActiveOption","autoSelectActiveOption",V],requireSelection:[2,"requireSelection","requireSelection",V],panelWidth:"panelWidth",disableRipple:[2,"disableRipple","disableRipple",V],classList:[0,"class","classList"],hideSingleSelectionIndicator:[2,"hideSingleSelectionIndicator","hideSingleSelectionIndicator",V]},outputs:{optionSelected:"optionSelected",opened:"opened",closed:"closed",optionActivated:"optionActivated"},exportAs:["matAutocomplete"],features:[Ce([{provide:Kd,useExisting:t}])],ngContentSelectors:N_e,decls:1,vars:0,consts:[["panel",""],["role","listbox",1,"mat-mdc-autocomplete-panel","mdc-menu-surface","mdc-menu-surface--open",3,"id"]],template:function(i,r){i&1&&(Me(),xa(0,L_e,3,17,"ng-template"))},styles:[`div.mat-mdc-autocomplete-panel{width:100%;max-height:256px;visibility:hidden;transform-origin:center top;overflow:auto;padding:8px 0;box-sizing:border-box;position:relative;border-radius:var(--mat-autocomplete-container-shape, var(--mat-sys-corner-extra-small));box-shadow:var(--mat-autocomplete-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));background-color:var(--mat-autocomplete-background-color, var(--mat-sys-surface-container))}@media(forced-colors: active){div.mat-mdc-autocomplete-panel{outline:solid 1px}}.cdk-overlay-pane:not(.mat-mdc-autocomplete-panel-above) div.mat-mdc-autocomplete-panel{border-top-left-radius:0;border-top-right-radius:0}.mat-mdc-autocomplete-panel-above div.mat-mdc-autocomplete-panel{border-bottom-left-radius:0;border-bottom-right-radius:0;transform-origin:center bottom}div.mat-mdc-autocomplete-panel.mat-mdc-autocomplete-visible{visibility:visible}div.mat-mdc-autocomplete-panel.mat-mdc-autocomplete-hidden{visibility:hidden;pointer-events:none}@keyframes _mat-autocomplete-enter{from{opacity:0;transform:scaleY(0.8)}to{opacity:1;transform:none}}.mat-autocomplete-panel-animations-enabled{animation:_mat-autocomplete-enter 120ms cubic-bezier(0, 0, 0.2, 1)}mat-autocomplete{display:none} -`],encapsulation:2,changeDetection:0})}return t})();var B_e={provide:tr,useExisting:Kt(()=>y_),multi:!0};var yU=new T("mat-autocomplete-scroll-strategy",{providedIn:"root",factory:()=>{let t=u(de);return()=>wn(t)}});function j_e(t){let n=u(de);return()=>wn(n)}var H_e={provide:yU,deps:[],useFactory:j_e},y_=(()=>{class t{_environmentInjector=u(Wt);_element=u(q);_injector=u(de);_viewContainerRef=u(nt);_zone=u(ae);_changeDetectorRef=u(ye);_dir=u(Vt,{optional:!0});_formField=u(Xo,{optional:!0,host:!0});_viewportRuler=u(Xn);_scrollStrategy=u(yU);_renderer=u(je);_animationsDisabled=Ye();_defaults=u(vU,{optional:!0});_overlayRef;_portal;_componentDestroyed=!1;_initialized=new z;_keydownSubscription;_outsideClickSubscription;_cleanupWindowBlur;_previousValue;_valueOnAttach;_valueOnLastKeydown;_positionStrategy;_manuallyFloatingLabel=!1;_closingActionsSubscription;_viewportSubscription=ke.EMPTY;_breakpointObserver=u(sl);_handsetLandscapeSubscription=ke.EMPTY;_canOpenOnNextFocus=!0;_valueBeforeAutoSelection;_pendingAutoselectedOption;_closeKeyEventStream=new z;_overlayPanelClass=al(this._defaults?.overlayPanelClass||[]);_windowBlurHandler=()=>{this._canOpenOnNextFocus=this.panelOpen||!this._hasFocus()};_onChange=()=>{};_onTouched=()=>{};autocomplete;position="auto";connectedTo;autocompleteAttribute="off";autocompleteDisabled;constructor(){}_aboveClass="mat-mdc-autocomplete-panel-above";ngAfterViewInit(){this._initialized.next(),this._initialized.complete(),this._cleanupWindowBlur=this._renderer.listen("window","blur",this._windowBlurHandler)}ngOnChanges(e){e.position&&this._positionStrategy&&(this._setStrategyPositions(this._positionStrategy),this.panelOpen&&this._overlayRef.updatePosition())}ngOnDestroy(){this._cleanupWindowBlur?.(),this._handsetLandscapeSubscription.unsubscribe(),this._viewportSubscription.unsubscribe(),this._componentDestroyed=!0,this._destroyPanel(),this._closeKeyEventStream.complete(),this._clearFromModal()}get panelOpen(){return this._overlayAttached&&this.autocomplete.showPanel}_overlayAttached=!1;openPanel(){this._openPanelInternal()}closePanel(){this._resetLabel(),this._overlayAttached&&(this.panelOpen&&this._zone.run(()=>{this.autocomplete.closed.emit()}),this.autocomplete._latestOpeningTrigger===this&&(this.autocomplete._isOpen=!1,this.autocomplete._latestOpeningTrigger=null),this._overlayAttached=!1,this._pendingAutoselectedOption=null,this._overlayRef&&this._overlayRef.hasAttached()&&(this._overlayRef.detach(),this._closingActionsSubscription.unsubscribe()),this._updatePanelState(),this._componentDestroyed||this._changeDetectorRef.detectChanges(),this._trackedModal&&sc(this._trackedModal,"aria-owns",this.autocomplete.id))}updatePosition(){this._overlayAttached&&this._overlayRef.updatePosition()}get panelClosingActions(){return Je(this.optionSelections,this.autocomplete._keyManager.tabOut.pipe(ce(()=>this._overlayAttached)),this._closeKeyEventStream,this._getOutsideClickStream(),this._overlayRef?this._overlayRef.detachments().pipe(ce(()=>this._overlayAttached)):Q()).pipe(se(e=>e instanceof nh?e:null))}optionSelections=kn(()=>{let e=this.autocomplete?this.autocomplete.options:null;return e?e.changes.pipe(He(e),$e(()=>Je(...e.map(i=>i.onSelectionChange)))):this._initialized.pipe($e(()=>this.optionSelections))});get activeOption(){return this.autocomplete&&this.autocomplete._keyManager?this.autocomplete._keyManager.activeItem:null}_getOutsideClickStream(){return new Fe(e=>{let i=o=>{let a=Kn(o),s=this._formField?this._formField.getConnectedOverlayOrigin().nativeElement:null,l=this.connectedTo?this.connectedTo.elementRef.nativeElement:null;this._overlayAttached&&a!==this._element.nativeElement&&!this._hasFocus()&&(!s||!s.contains(a))&&(!l||!l.contains(a))&&this._overlayRef&&!this._overlayRef.overlayElement.contains(a)&&e.next(o)},r=[this._renderer.listen("document","click",i),this._renderer.listen("document","auxclick",i),this._renderer.listen("document","touchend",i)];return()=>{r.forEach(o=>o())}})}writeValue(e){Promise.resolve(null).then(()=>this._assignOptionValue(e))}registerOnChange(e){this._onChange=e}registerOnTouched(e){this._onTouched=e}setDisabledState(e){this._element.nativeElement.disabled=e}_handleKeydown(e){let i=e,r=i.keyCode,o=Ft(i);if(r===27&&!o&&i.preventDefault(),this._valueOnLastKeydown=this._element.nativeElement.value,this.activeOption&&r===13&&this.panelOpen&&!o)this.activeOption._selectViaInteraction(),this._resetActiveItem(),i.preventDefault();else if(this.autocomplete){let a=this.autocomplete._keyManager.activeItem,s=r===38||r===40;r===9||s&&!o&&this.panelOpen?this.autocomplete._keyManager.onKeydown(i):s&&this._canOpen()&&this._openPanelInternal(this._valueOnLastKeydown),(s||this.autocomplete._keyManager.activeItem!==a)&&(this._scrollToOption(this.autocomplete._keyManager.activeItemIndex||0),this.autocomplete.autoSelectActiveOption&&this.activeOption&&(this._pendingAutoselectedOption||(this._valueBeforeAutoSelection=this._valueOnLastKeydown),this._pendingAutoselectedOption=this.activeOption,this._assignOptionValue(this.activeOption.value)))}}_handleInput(e){let i=e.target,r=i.value;if(i.type==="number"&&(r=r==""?null:parseFloat(r)),this._previousValue!==r){if(this._previousValue=r,this._pendingAutoselectedOption=null,(!this.autocomplete||!this.autocomplete.requireSelection)&&this._onChange(r),!r)this._clearPreviousSelectedOption(null,!1);else if(this.panelOpen&&!this.autocomplete.requireSelection){let o=this.autocomplete.options?.find(a=>a.selected);if(o){let a=this._getDisplayValue(o.value);r!==a&&o.deselect(!1)}}if(this._canOpen()&&this._hasFocus()){let o=this._valueOnLastKeydown??this._element.nativeElement.value;this._valueOnLastKeydown=null,this._openPanelInternal(o)}}}_handleFocus(){this._canOpenOnNextFocus?this._canOpen()&&(this._previousValue=this._element.nativeElement.value,this._attachOverlay(this._previousValue),this._floatLabel(!0)):this._canOpenOnNextFocus=!0}_handleClick(){this._canOpen()&&!this.panelOpen&&this._openPanelInternal()}_hasFocus(){return _o()===this._element.nativeElement}_floatLabel(e=!1){this._formField&&this._formField.floatLabel==="auto"&&(e?this._formField._animateAndLockLabel():this._formField.floatLabel="always",this._manuallyFloatingLabel=!0)}_resetLabel(){this._manuallyFloatingLabel&&(this._formField&&(this._formField.floatLabel="auto"),this._manuallyFloatingLabel=!1)}_subscribeToClosingActions(){let e=new Fe(r=>{pt(()=>{r.next()},{injector:this._environmentInjector})}),i=this.autocomplete.options?.changes.pipe(Be(()=>this._positionStrategy.reapplyLastPosition()),pa(0))??Q();return Je(e,i).pipe($e(()=>this._zone.run(()=>{let r=this.panelOpen;return this._resetActiveItem(),this._updatePanelState(),this._changeDetectorRef.detectChanges(),this.panelOpen&&this._overlayRef.updatePosition(),r!==this.panelOpen&&(this.panelOpen?this._emitOpened():this.autocomplete.closed.emit()),this.panelClosingActions})),lt(1)).subscribe(r=>this._setValueAndClose(r))}_emitOpened(){this.autocomplete.opened.emit()}_destroyPanel(){this._overlayRef&&(this.closePanel(),this._overlayRef.dispose(),this._overlayRef=null)}_getDisplayValue(e){let i=this.autocomplete;return i&&i.displayWith?i.displayWith(e):e}_assignOptionValue(e){let i=this._getDisplayValue(e);e==null&&this._clearPreviousSelectedOption(null,!1),this._updateNativeInputValue(i??"")}_updateNativeInputValue(e){this._formField?this._formField._control.value=e:this._element.nativeElement.value=e,this._previousValue=e}_setValueAndClose(e){let i=this.autocomplete,r=e?e.source:this._pendingAutoselectedOption;r?(this._clearPreviousSelectedOption(r),this._assignOptionValue(r.value),this._onChange(r.value),i._emitSelectEvent(r),this._element.nativeElement.focus()):i.requireSelection&&this._element.nativeElement.value!==this._valueOnAttach&&(this._clearPreviousSelectedOption(null),this._assignOptionValue(null),this._onChange(null)),this.closePanel()}_clearPreviousSelectedOption(e,i){this.autocomplete?.options?.forEach(r=>{r!==e&&r.selected&&r.deselect(i)})}_openPanelInternal(e=this._element.nativeElement.value){if(this._attachOverlay(e),this._floatLabel(),this._trackedModal){let i=this.autocomplete.id;Zm(this._trackedModal,"aria-owns",i)}}_attachOverlay(e){this.autocomplete;let i=this._overlayRef;i?(this._positionStrategy.setOrigin(this._getConnectedElement()),i.updateSize({width:this._getPanelWidth()})):(this._portal=new Cn(this.autocomplete.template,this._viewContainerRef,{id:this._formField?.getLabelId()}),i=Nr(this._injector,this._getOverlayConfig()),this._overlayRef=i,this._viewportSubscription=this._viewportRuler.change().subscribe(()=>{this.panelOpen&&i&&i.updateSize({width:this._getPanelWidth()})}),this._handsetLandscapeSubscription=this._breakpointObserver.observe(F0.HandsetLandscape).subscribe(o=>{o.matches?this._positionStrategy.withFlexibleDimensions(!0).withGrowAfterOpen(!0).withViewportMargin(8):this._positionStrategy.withFlexibleDimensions(!1).withGrowAfterOpen(!1).withViewportMargin(0)})),i&&!i.hasAttached()&&(i.attach(this._portal),this._valueOnAttach=e,this._valueOnLastKeydown=null,this._closingActionsSubscription=this._subscribeToClosingActions());let r=this.panelOpen;this.autocomplete._isOpen=this._overlayAttached=!0,this.autocomplete._latestOpeningTrigger=this,this.autocomplete._setColor(this._formField?.color),this._updatePanelState(),this._applyModalPanelOwnership(),this.panelOpen&&r!==this.panelOpen&&this._emitOpened()}_handlePanelKeydown=e=>{(e.keyCode===27&&!Ft(e)||e.keyCode===38&&Ft(e,"altKey"))&&(this._pendingAutoselectedOption&&(this._updateNativeInputValue(this._valueBeforeAutoSelection??""),this._pendingAutoselectedOption=null),this._closeKeyEventStream.next(),this._resetActiveItem(),e.stopPropagation(),e.preventDefault())};_updatePanelState(){if(this.autocomplete._setVisibility(),this.panelOpen){let e=this._overlayRef;this._keydownSubscription||(this._keydownSubscription=e.keydownEvents().subscribe(this._handlePanelKeydown)),this._outsideClickSubscription||(this._outsideClickSubscription=e.outsidePointerEvents().subscribe())}else this._keydownSubscription?.unsubscribe(),this._outsideClickSubscription?.unsubscribe(),this._keydownSubscription=this._outsideClickSubscription=null}_getOverlayConfig(){return new Fr({positionStrategy:this._getOverlayPosition(),scrollStrategy:this._scrollStrategy(),width:this._getPanelWidth(),direction:this._dir??void 0,hasBackdrop:this._defaults?.hasBackdrop,backdropClass:this._defaults?.backdropClass||"cdk-overlay-transparent-backdrop",panelClass:this._overlayPanelClass,disableAnimations:this._animationsDisabled})}_getOverlayPosition(){let e=Fa(this._injector,this._getConnectedElement()).withFlexibleDimensions(!1).withPush(!1);return this._setStrategyPositions(e),this._positionStrategy=e,e}_setStrategyPositions(e){let i=[{originX:"start",originY:"bottom",overlayX:"start",overlayY:"top"},{originX:"end",originY:"bottom",overlayX:"end",overlayY:"top"}],r=this._aboveClass,o=[{originX:"start",originY:"top",overlayX:"start",overlayY:"bottom",panelClass:r},{originX:"end",originY:"top",overlayX:"end",overlayY:"bottom",panelClass:r}],a;this.position==="above"?a=o:this.position==="below"?a=i:a=[...i,...o],e.withPositions(a)}_getConnectedElement(){return this.connectedTo?this.connectedTo.elementRef:this._formField?this._formField.getConnectedOverlayOrigin():this._element}_getPanelWidth(){return this.autocomplete.panelWidth||this._getHostWidth()}_getHostWidth(){return this._getConnectedElement().nativeElement.getBoundingClientRect().width}_resetActiveItem(){let e=this.autocomplete;if(e.autoActiveFirstOption){let i=-1;for(let r=0;r .cdk-overlay-container [aria-modal="true"]');if(!e)return;let i=this.autocomplete.id;this._trackedModal&&sc(this._trackedModal,"aria-owns",i),Zm(e,"aria-owns",i),this._trackedModal=e}_clearFromModal(){if(this._trackedModal){let e=this.autocomplete.id;sc(this._trackedModal,"aria-owns",e),this._trackedModal=null}}static \u0275fac=function(i){return new(i||t)};static \u0275dir=F({type:t,selectors:[["input","matAutocomplete",""],["textarea","matAutocomplete",""]],hostAttrs:[1,"mat-mdc-autocomplete-trigger"],hostVars:7,hostBindings:function(i,r){i&1&&S("focusin",function(){return r._handleFocus()})("blur",function(){return r._onTouched()})("input",function(a){return r._handleInput(a)})("keydown",function(a){return r._handleKeydown(a)})("click",function(){return r._handleClick()}),i&2&&X("autocomplete",r.autocompleteAttribute)("role",r.autocompleteDisabled?null:"combobox")("aria-autocomplete",r.autocompleteDisabled?null:"list")("aria-activedescendant",r.panelOpen&&r.activeOption?r.activeOption.id:null)("aria-expanded",r.autocompleteDisabled?null:r.panelOpen.toString())("aria-controls",r.autocompleteDisabled||!r.panelOpen||r.autocomplete==null?null:r.autocomplete.id)("aria-haspopup",r.autocompleteDisabled?null:"listbox")},inputs:{autocomplete:[0,"matAutocomplete","autocomplete"],position:[0,"matAutocompletePosition","position"],connectedTo:[0,"matAutocompleteConnectedTo","connectedTo"],autocompleteAttribute:[0,"autocomplete","autocompleteAttribute"],autocompleteDisabled:[2,"matAutocompleteDisabled","autocompleteDisabled",V]},exportAs:["matAutocompleteTrigger"],features:[Ce([B_e]),Ae]})}return t})(),vw=(()=>{class t{static \u0275fac=function(i){return new(i||t)};static \u0275mod=ee({type:t});static \u0275inj=J({providers:[H_e],imports:[er,rh,we,vr,rh,we]})}return t})();var xU=()=>["HRAdmin","Manager"],z_e=()=>[5,10,25,50,100],U_e=()=>["HRAdmin"];function $_e(t,n){if(t&1){let e=Y();h(0,"button",22),S("click",function(){I(e);let r=C();return A(r.createEmployee())}),h(1,"mat-icon"),_(2,"add"),p(),_(3," Add Employee "),p()}}function W_e(t,n){if(t&1&&(h(0,"mat-option",23),_(1),p()),t&2){let e=n.$implicit;y("value",e),g(),ve(" ",e," ")}}function G_e(t,n){if(t&1&&(h(0,"mat-option",23),_(1),p()),t&2){let e=n.$implicit;y("value",e),g(),ve(" ",e," ")}}function q_e(t,n){if(t&1&&(h(0,"mat-option",23),_(1),p()),t&2){let e=n.$implicit;y("value",e),g(),ve(" ",e," ")}}function Y_e(t,n){if(t&1&&(h(0,"mat-option",23),_(1),p()),t&2){let e=n.$implicit;y("value",e),g(),ve(" ",e," ")}}function Q_e(t,n){if(t&1&&(h(0,"mat-option",23),_(1),p()),t&2){let e=n.$implicit;y("value",e),g(),ve(" ",e," ")}}function K_e(t,n){t&1&&(h(0,"div",24),k(1,"mat-spinner"),p())}function Z_e(t,n){t&1&&(h(0,"th",37),_(1,"Employee #"),p())}function X_e(t,n){if(t&1&&(h(0,"td",38),_(1),p()),t&2){let e=n.$implicit;g(),H(e.employeeNumber)}}function J_e(t,n){t&1&&(h(0,"th",37),_(1,"Name"),p())}function ebe(t,n){if(t&1&&(h(0,"td",38),_(1),p()),t&2){let e=n.$implicit,i=C(2);g(),H(i.getFullName(e))}}function tbe(t,n){t&1&&(h(0,"th",37),_(1,"Email"),p())}function ibe(t,n){if(t&1&&(h(0,"td",38),_(1),p()),t&2){let e=n.$implicit;g(),H(e.email)}}function nbe(t,n){t&1&&(h(0,"th",37),_(1,"Phone"),p())}function rbe(t,n){if(t&1&&(h(0,"td",38),_(1),p()),t&2){let e=n.$implicit;g(),H(e.phoneNumber||e.phone||"-")}}function obe(t,n){t&1&&(h(0,"th",37),_(1,"Position"),p())}function abe(t,n){if(t&1&&(h(0,"td",38),_(1),p()),t&2){let e=n.$implicit;g(),H(e.positionTitle||(e.position==null?null:e.position.positionTitle)||"-")}}function sbe(t,n){t&1&&(h(0,"th",37),_(1,"Actions"),p())}function lbe(t,n){if(t&1){let e=Y();h(0,"button",43),S("click",function(){I(e);let r=C().$implicit,o=C(2);return A(o.editEmployee(r))}),h(1,"mat-icon"),_(2,"edit"),p()()}}function cbe(t,n){if(t&1){let e=Y();h(0,"button",44),S("click",function(){I(e);let r=C().$implicit,o=C(2);return A(o.deleteEmployee(r))}),h(1,"mat-icon"),_(2,"delete"),p()()}}function dbe(t,n){if(t&1){let e=Y();h(0,"td",38)(1,"div",39)(2,"button",40),S("click",function(){let r=I(e).$implicit,o=C(2);return A(o.viewEmployee(r))}),h(3,"mat-icon"),_(4,"visibility"),p()(),R(5,lbe,3,0,"button",41)(6,cbe,3,0,"button",42),p()()}t&2&&(g(5),y("appHasRole",at(2,xU)),g(),y("appHasRole",at(3,U_e)))}function ube(t,n){t&1&&k(0,"tr",45)}function mbe(t,n){t&1&&k(0,"tr",46)}function hbe(t,n){if(t&1&&(h(0,"tr",47)(1,"td",48)(2,"div",49)(3,"mat-icon"),_(4,"info"),p(),h(5,"p"),_(6,"No employees found"),p()()()()),t&2){let e=C(2);g(),X("colspan",e.displayedColumns.length)}}function pbe(t,n){if(t&1&&(h(0,"table",25),jt(1,26),R(2,Z_e,2,0,"th",27)(3,X_e,2,1,"td",28),Lt(),jt(4,29),R(5,J_e,2,0,"th",27)(6,ebe,2,1,"td",28),Lt(),jt(7,30),R(8,tbe,2,0,"th",27)(9,ibe,2,1,"td",28),Lt(),jt(10,31),R(11,nbe,2,0,"th",27)(12,rbe,2,1,"td",28),Lt(),jt(13,32),R(14,obe,2,0,"th",27)(15,abe,2,1,"td",28),Lt(),jt(16,33),R(17,sbe,2,0,"th",27)(18,dbe,7,4,"td",28),Lt(),R(19,ube,1,0,"tr",34)(20,mbe,1,0,"tr",35)(21,hbe,7,1,"tr",36),p()),t&2){let e=C();y("dataSource",e.employees),g(19),y("matHeaderRowDef",e.displayedColumns),g(),y("matRowDefColumns",e.displayedColumns),g(),y("ngIf",e.employees.length===0)}}var CU=(()=>{let n=class n{constructor(){this.employeeService=u(ap),this.authService=u(Tt),this.router=u(Re),this.fb=u(eo),this.snackBar=u(di),this.dialog=u(En),this.employees=[],this.loading=!1,this.totalCount=0,this.pageSize=10,this.pageNumber=1,this.destroy$=new z,this.displayedColumns=["employeeNumber","name","email","phone","positionTitle","actions"]}ngOnInit(){this.initSearchForm(),this.setupAutocomplete(),this.setupAutoSubmit(),this.loadEmployees()}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete()}initSearchForm(){this.searchForm=this.fb.group({FirstName:[""],LastName:[""],Email:[""],EmployeeNumber:[""],PositionTitle:[""]})}setupAutocomplete(){this.filteredEmployeeNumbers$=this.searchForm.get("EmployeeNumber").valueChanges.pipe(He(""),Rt(300),Sn(),$e(i=>this.getAutocompleteOptions("EmployeeNumber",i))),this.filteredFirstNames$=this.searchForm.get("FirstName").valueChanges.pipe(He(""),Rt(300),Sn(),$e(i=>this.getAutocompleteOptions("FirstName",i))),this.filteredLastNames$=this.searchForm.get("LastName").valueChanges.pipe(He(""),Rt(300),Sn(),$e(i=>this.getAutocompleteOptions("LastName",i))),this.filteredEmails$=this.searchForm.get("Email").valueChanges.pipe(He(""),Rt(300),Sn(),$e(i=>this.getAutocompleteOptions("Email",i))),this.filteredPositionTitles$=this.searchForm.get("PositionTitle").valueChanges.pipe(He(""),Rt(300),Sn(),$e(i=>this.getAutocompleteOptions("PositionTitle",i)))}setupAutoSubmit(){this.searchForm.valueChanges.pipe(Rt(500),Sn((i,r)=>JSON.stringify(i)===JSON.stringify(r)),Te(this.destroy$)).subscribe(()=>{this.pageNumber=1,this.loadEmployees()})}getAutocompleteOptions(i,r){if(!r||r.length<2)return Q([]);let o={PageNumber:1,PageSize:10,[i]:r};return this.employeeService.getAllPaged(o).pipe(se(a=>{let s={EmployeeNumber:c=>c.employeeNumber,FirstName:c=>c.firstName,LastName:c=>c.lastName,Email:c=>c.email,PositionTitle:c=>c.positionTitle||""};return a.value.map(c=>s[i](c)).filter((c,d,m)=>c&&m.indexOf(c)===d)}),fi(()=>Q([])))}loadEmployees(){this.loading=!0;let i=M({PageNumber:this.pageNumber,PageSize:this.pageSize},this.searchForm.value);Object.keys(i).forEach(r=>{(i[r]===""||i[r]===null||i[r]===void 0)&&delete i[r]}),this.employeeService.getAllPaged(i).subscribe({next:r=>{this.employees=r.value,this.totalCount=r.recordsTotal,this.loading=!1},error:r=>{console.error("Error loading employees:",r),this.loading=!1}})}onClearSearch(){this.searchForm.reset(),this.pageNumber=1,this.paginator&&(this.paginator.pageIndex=0),this.loadEmployees()}onPageChange(i){this.pageSize=i.pageSize,this.pageNumber=i.pageIndex+1,this.loadEmployees()}getFullName(i){return[i.prefix,i.firstName,i.middleName,i.lastName].filter(Boolean).join(" ")}viewEmployee(i){this.router.navigate(["/employees",i.id])}editEmployee(i){this.router.navigate(["/employees","edit",i.id])}deleteEmployee(i){let r=this.getFullName(i);this.dialog.open(Er,{width:"400px",data:{title:"Delete Employee",message:`Are you sure you want to delete ${r}? This action cannot be undone.`,confirmText:"Delete",cancelText:"Cancel"}}).afterClosed().subscribe(a=>{a&&this.employeeService.delete(i.id).subscribe({next:()=>{this.snackBar.open(`${r} has been deleted.`,"Close",{duration:3e3,horizontalPosition:"end",verticalPosition:"top"}),this.loadEmployees()},error:s=>{console.error("Error deleting employee:",s),this.snackBar.open("Failed to delete employee. Please try again.","Close",{duration:4e3,horizontalPosition:"end",verticalPosition:"top"})}})})}createEmployee(){this.router.navigate(["/employees","create"])}canEdit(){return this.authService.isHRAdmin()||this.authService.isManager()}canDelete(){return this.authService.isHRAdmin()}canCreate(){return this.authService.isHRAdmin()||this.authService.isManager()}};n.\u0275fac=function(r){return new(r||n)},n.\u0275cmp=E({type:n,selectors:[["app-employee-list"]],viewQuery:function(r,o){if(r&1&&ie(ir,5),r&2){let a;B(a=j())&&(o.paginator=a.first)}},decls:59,vars:30,consts:[["autoEmployeeNumber","matAutocomplete"],["autoFirstName","matAutocomplete"],["autoLastName","matAutocomplete"],["autoEmail","matAutocomplete"],["autoPositionTitle","matAutocomplete"],[1,"flex-spacer"],["mat-raised-button","","color","primary",3,"click",4,"appHasRole"],[1,"search-form",3,"formGroup"],[1,"search-row"],["appearance","outline"],["matInput","","formControlName","EmployeeNumber",3,"matAutocomplete"],[3,"value",4,"ngFor","ngForOf"],["matInput","","formControlName","FirstName",3,"matAutocomplete"],["matInput","","formControlName","LastName",3,"matAutocomplete"],["matInput","","formControlName","Email",3,"matAutocomplete"],["matInput","","formControlName","PositionTitle",3,"matAutocomplete"],[1,"search-buttons"],["mat-raised-button","","color","accent","type","button",3,"click"],[1,"table-container"],["class","loading-spinner",4,"ngIf"],["mat-table","","class","employee-table",3,"dataSource",4,"ngIf"],["showFirstLastButtons","",3,"page","length","pageSize","pageSizeOptions","pageIndex"],["mat-raised-button","","color","primary",3,"click"],[3,"value"],[1,"loading-spinner"],["mat-table","",1,"employee-table",3,"dataSource"],["matColumnDef","employeeNumber"],["mat-header-cell","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","name"],["matColumnDef","email"],["matColumnDef","phone"],["matColumnDef","positionTitle"],["matColumnDef","actions"],["mat-header-row","",4,"matHeaderRowDef"],["mat-row","",4,"matRowDef","matRowDefColumns"],["class","mat-row",4,"ngIf"],["mat-header-cell",""],["mat-cell",""],[1,"action-buttons"],["mat-icon-button","","color","primary","matTooltip","View Details",3,"click"],["mat-icon-button","","color","accent","matTooltip","Edit Employee",3,"click",4,"appHasRole"],["mat-icon-button","","color","warn","matTooltip","Delete Employee",3,"click",4,"appHasRole"],["mat-icon-button","","color","accent","matTooltip","Edit Employee",3,"click"],["mat-icon-button","","color","warn","matTooltip","Delete Employee",3,"click"],["mat-header-row",""],["mat-row",""],[1,"mat-row"],[1,"mat-cell"],[1,"no-data"]],template:function(r,o){if(r&1){let a=Y();k(0,"page-header"),h(1,"mat-card")(2,"mat-card-header")(3,"mat-card-title"),_(4,"Employee Directory"),p(),k(5,"div",5),R(6,$_e,4,0,"button",6),p(),h(7,"mat-card-content")(8,"form",7)(9,"div",8)(10,"mat-form-field",9)(11,"mat-label"),_(12,"Employee Number"),p(),k(13,"input",10),h(14,"mat-autocomplete",null,0),R(16,W_e,2,2,"mat-option",11),me(17,"async"),p()(),h(18,"mat-form-field",9)(19,"mat-label"),_(20,"First Name"),p(),k(21,"input",12),h(22,"mat-autocomplete",null,1),R(24,G_e,2,2,"mat-option",11),me(25,"async"),p()(),h(26,"mat-form-field",9)(27,"mat-label"),_(28,"Last Name"),p(),k(29,"input",13),h(30,"mat-autocomplete",null,2),R(32,q_e,2,2,"mat-option",11),me(33,"async"),p()(),h(34,"mat-form-field",9)(35,"mat-label"),_(36,"Email"),p(),k(37,"input",14),h(38,"mat-autocomplete",null,3),R(40,Y_e,2,2,"mat-option",11),me(41,"async"),p()(),h(42,"mat-form-field",9)(43,"mat-label"),_(44,"Position Title"),p(),k(45,"input",15),h(46,"mat-autocomplete",null,4),R(48,Q_e,2,2,"mat-option",11),me(49,"async"),p()(),h(50,"div",16)(51,"button",17),S("click",function(){return I(a),A(o.onClearSearch())}),h(52,"mat-icon"),_(53,"clear"),p(),_(54," Clear Filters "),p()()()(),h(55,"div",18),R(56,K_e,2,0,"div",19)(57,pbe,22,4,"table",20),p(),h(58,"mat-paginator",21),S("page",function(l){return I(a),A(o.onPageChange(l))}),p()()()}if(r&2){let a=Se(15),s=Se(23),l=Se(31),c=Se(39),d=Se(47);g(6),y("appHasRole",at(28,xU)),g(2),y("formGroup",o.searchForm),g(5),y("matAutocomplete",a),g(3),y("ngForOf",Oe(17,18,o.filteredEmployeeNumbers$)),g(5),y("matAutocomplete",s),g(3),y("ngForOf",Oe(25,20,o.filteredFirstNames$)),g(5),y("matAutocomplete",l),g(3),y("ngForOf",Oe(33,22,o.filteredLastNames$)),g(5),y("matAutocomplete",c),g(3),y("ngForOf",Oe(41,24,o.filteredEmails$)),g(5),y("matAutocomplete",d),g(3),y("ngForOf",Oe(49,26,o.filteredPositionTitles$)),g(8),y("ngIf",o.loading),g(),y("ngIf",!o.loading),g(),y("length",o.totalCount)("pageSize",o.pageSize)("pageSizeOptions",at(29,z_e))("pageIndex",o.pageNumber-1)}},dependencies:[gt,qr,li,zn,Jr,Qi,ei,Xr,Ki,Lr,ze,kt,ti,$t,zt,Ut,Jt,Xt,ot,mt,rr,hn,Oi,sn,$i,Zc,Hc,Uc,qc,$c,zc,Yc,Wc,Gc,Qc,Kc,_c,ir,Si,ki,Br,Eo,vw,bw,xn,y_,pi,Mn,ni,Un,rn],styles:["mat-card[_ngcontent-%COMP%]{margin:16px}mat-card-header[_ngcontent-%COMP%]{display:flex;align-items:center;margin-bottom:16px;padding:16px;border-bottom:1px solid rgba(0,0,0,.12)}mat-card-header[_ngcontent-%COMP%] mat-card-title[_ngcontent-%COMP%]{font-size:20px;font-weight:500;margin:0}mat-card-header[_ngcontent-%COMP%] .flex-spacer[_ngcontent-%COMP%]{flex:1 1 auto}mat-card-header[_ngcontent-%COMP%] button[_ngcontent-%COMP%] mat-icon[_ngcontent-%COMP%]{margin-right:4px}mat-card-content[_ngcontent-%COMP%]{padding:0}.search-form[_ngcontent-%COMP%]{padding:16px;background-color:#f5f5f5;margin-bottom:0}.search-form[_ngcontent-%COMP%] .search-row[_ngcontent-%COMP%]{display:grid;grid-template-columns:repeat(auto-fit,minmax(180px,1fr));gap:16px;align-items:start}.search-form[_ngcontent-%COMP%] .search-row[_ngcontent-%COMP%] mat-form-field[_ngcontent-%COMP%]{width:100%}.search-form[_ngcontent-%COMP%] .search-row[_ngcontent-%COMP%] .search-buttons[_ngcontent-%COMP%]{display:flex;gap:8px;align-items:center}.search-form[_ngcontent-%COMP%] .search-row[_ngcontent-%COMP%] .search-buttons[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{white-space:nowrap}.search-form[_ngcontent-%COMP%] .search-row[_ngcontent-%COMP%] .search-buttons[_ngcontent-%COMP%] button[_ngcontent-%COMP%] mat-icon[_ngcontent-%COMP%]{margin-right:4px}.table-container[_ngcontent-%COMP%]{position:relative;min-height:300px;overflow-x:auto}.loading-spinner[_ngcontent-%COMP%]{display:flex;justify-content:center;align-items:center;min-height:300px}.employee-table[_ngcontent-%COMP%]{width:100%}.employee-table[_ngcontent-%COMP%] th[_ngcontent-%COMP%]{font-weight:600;font-size:14px;color:#000000de}.employee-table[_ngcontent-%COMP%] td[_ngcontent-%COMP%]{font-size:14px;color:#000000de}.employee-table[_ngcontent-%COMP%] .mat-column-employeeNumber[_ngcontent-%COMP%]{width:120px}.employee-table[_ngcontent-%COMP%] .mat-column-name[_ngcontent-%COMP%], .employee-table[_ngcontent-%COMP%] .mat-column-email[_ngcontent-%COMP%]{min-width:200px}.employee-table[_ngcontent-%COMP%] .mat-column-phone[_ngcontent-%COMP%]{width:150px}.employee-table[_ngcontent-%COMP%] .mat-column-positionTitle[_ngcontent-%COMP%]{min-width:200px}.employee-table[_ngcontent-%COMP%] .mat-column-actions[_ngcontent-%COMP%]{width:120px;text-align:right}.employee-table[_ngcontent-%COMP%] .mat-column-actions[_ngcontent-%COMP%] .action-buttons[_ngcontent-%COMP%]{display:flex;justify-content:flex-end;align-items:center;gap:4px}.no-data[_ngcontent-%COMP%]{display:flex;flex-direction:column;align-items:center;justify-content:center;padding:48px 16px;color:#0000008a}.no-data[_ngcontent-%COMP%] mat-icon[_ngcontent-%COMP%]{font-size:48px;width:48px;height:48px;margin-bottom:16px}.no-data[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{margin:0;font-size:16px}mat-paginator[_ngcontent-%COMP%]{border-top:1px solid rgba(0,0,0,.12)}"]});let t=n;return t})();var Ou=(function(t){return t[t.Male=0]="Male",t[t.Female=1]="Female",t})(Ou||{});var fbe=()=>["HRAdmin","Manager"],gbe=()=>["HRAdmin"];function _be(t,n){t&1&&(h(0,"div",2),k(1,"mat-spinner"),p())}function bbe(t,n){if(t&1){let e=Y();h(0,"button",14),S("click",function(){I(e);let r=C(2);return A(r.editEmployee())}),h(1,"mat-icon"),_(2,"edit"),p(),_(3," Edit "),p()}}function vbe(t,n){if(t&1){let e=Y();h(0,"button",15),S("click",function(){I(e);let r=C(2);return A(r.deleteEmployee())}),h(1,"mat-icon"),_(2,"delete"),p(),_(3," Delete "),p()}}function ybe(t,n){if(t&1&&(h(0,"mat-list-item")(1,"span",10),_(2,"Address"),p(),h(3,"span",11),_(4),p()()),t&2){let e=C(2);g(4),H(e.employee.address)}}function xbe(t,n){if(t&1&&(h(0,"mat-list-item")(1,"span",10),_(2,"Hire Date"),p(),h(3,"span",11),_(4),me(5,"date"),p()()),t&2){let e=C(2);g(4),H(Oe(5,1,e.employee.hireDate))}}function Cbe(t,n){if(t&1&&(h(0,"mat-list-item")(1,"span",10),_(2,"Salary Range"),p(),h(3,"span",11),_(4),me(5,"number"),me(6,"number"),p()()),t&2){let e=C(2);g(4),Cm(" ",e.employee.salaryRange.name," ($",Oe(5,3,e.employee.salaryRange.minSalary)," - $",Oe(6,5,e.employee.salaryRange.maxSalary),") ")}}function wbe(t,n){if(t&1&&(h(0,"mat-list-item")(1,"span",10),_(2,"Created"),p(),h(3,"span",11),_(4),me(5,"date"),p()()),t&2){let e=C(3);g(4),H(Ni(5,1,e.employee.createdAt,"medium"))}}function Dbe(t,n){if(t&1&&(h(0,"mat-list-item")(1,"span",10),_(2,"Last Modified"),p(),h(3,"span",11),_(4),me(5,"date"),p()()),t&2){let e=C(3);g(4),H(Ni(5,1,e.employee.lastModifiedAt,"medium"))}}function Ebe(t,n){if(t&1&&(h(0,"div",9)(1,"h3"),_(2,"Audit Information"),p(),k(3,"mat-divider"),h(4,"mat-list"),R(5,wbe,6,4,"mat-list-item",1)(6,Dbe,6,4,"mat-list-item",1),p()()),t&2){let e=C(2);g(5),y("ngIf",e.employee.createdAt),g(),y("ngIf",e.employee.lastModifiedAt)}}function Mbe(t,n){if(t&1){let e=Y();h(0,"mat-card")(1,"mat-card-header")(2,"mat-card-title"),_(3),p(),k(4,"div",3),h(5,"div",4)(6,"button",5),S("click",function(){I(e);let r=C();return A(r.goBack())}),h(7,"mat-icon"),_(8,"arrow_back"),p(),_(9," Back to List "),p(),R(10,bbe,4,0,"button",6)(11,vbe,4,0,"button",7),p()(),h(12,"mat-card-content")(13,"div",8)(14,"div",9)(15,"h3"),_(16,"Personal Information"),p(),k(17,"mat-divider"),h(18,"mat-list")(19,"mat-list-item")(20,"span",10),_(21,"Employee Number"),p(),h(22,"span",11),_(23),p()(),h(24,"mat-list-item")(25,"span",10),_(26,"Full Name"),p(),h(27,"span",11),_(28),p()(),h(29,"mat-list-item")(30,"span",10),_(31,"Date of Birth"),p(),h(32,"span",11),_(33),me(34,"date"),p()(),h(35,"mat-list-item")(36,"span",10),_(37,"Gender"),p(),h(38,"span",11),_(39),p()()()(),h(40,"div",9)(41,"h3"),_(42,"Contact Information"),p(),k(43,"mat-divider"),h(44,"mat-list")(45,"mat-list-item")(46,"span",10),_(47,"Email"),p(),h(48,"span",11)(49,"a",12),_(50),p()()(),h(51,"mat-list-item")(52,"span",10),_(53,"Phone Number"),p(),h(54,"span",11)(55,"a",12),_(56),p()()(),R(57,ybe,5,1,"mat-list-item",1),p()(),h(58,"div",9)(59,"h3"),_(60,"Employment Information"),p(),k(61,"mat-divider"),h(62,"mat-list"),R(63,xbe,6,3,"mat-list-item",1),h(64,"mat-list-item")(65,"span",10),_(66,"Salary"),p(),h(67,"span",11),_(68),me(69,"currency"),p()(),h(70,"mat-list-item")(71,"span",10),_(72,"Department"),p(),h(73,"span",11),_(74),p()(),h(75,"mat-list-item")(76,"span",10),_(77,"Position"),p(),h(78,"span",11),_(79),p()(),R(80,Cbe,7,7,"mat-list-item",1),p()(),R(81,Ebe,7,2,"div",13),p()()()}if(t&2){let e=C();g(3),H(e.getFullName()),g(7),y("appHasRole",at(22,fbe)),g(),y("appHasRole",at(23,gbe)),g(12),H(e.employee.employeeNumber),g(5),H(e.getFullName()),g(5),H(Oe(34,18,e.employee.dateOfBirth||e.employee.birthday)),g(6),H(e.getGenderLabel(e.employee.gender)),g(10),y("href","mailto:"+e.employee.email,$r),g(),H(e.employee.email),g(5),y("href","tel:"+(e.employee.phoneNumber||e.employee.phone),$r),g(),H(e.employee.phoneNumber||e.employee.phone),g(),y("ngIf",e.employee.address),g(6),y("ngIf",e.employee.hireDate),g(5),H(Oe(69,20,e.employee.salary)),g(6),H(e.employee.departmentName||(e.employee.department==null?null:e.employee.department.name)||"N/A"),g(5),H(e.employee.positionTitle||(e.employee.position==null?null:e.employee.position.positionTitle)||"N/A"),g(),y("ngIf",e.employee.salaryRange),g(),y("ngIf",e.employee.createdAt||e.employee.lastModifiedAt)}}function kbe(t,n){if(t&1){let e=Y();h(0,"mat-card")(1,"mat-card-content")(2,"div",16)(3,"mat-icon"),_(4,"error"),p(),h(5,"p"),_(6,"Employee not found"),p(),h(7,"button",17),S("click",function(){I(e);let r=C();return A(r.goBack())}),_(8," Go Back "),p()()()()}}var wU=(()=>{let n=class n{constructor(){this.employeeService=u(ap),this.authService=u(Tt),this.router=u(Re),this.route=u(wi),this.snackBar=u(di),this.dialog=u(En),this.loading=!1}ngOnInit(){let i=this.route.snapshot.paramMap.get("id");i&&this.loadEmployee(i)}loadEmployee(i){this.loading=!0,this.employeeService.getById(i).subscribe({next:r=>{this.employee=r,this.loading=!1},error:r=>{console.error("Error loading employee:",r),this.loading=!1,this.router.navigate(["/employees"])}})}getFullName(){return this.employee?[this.employee.prefix,this.employee.firstName,this.employee.middleName,this.employee.lastName,this.employee.suffix].filter(Boolean).join(" "):""}getGenderLabel(i){return i===Ou.Male?"Male":"Female"}editEmployee(){this.employee&&this.router.navigate(["/employees","edit",this.employee.id])}deleteEmployee(){if(!this.employee)return;let i=this.getFullName();this.dialog.open(Er,{width:"400px",data:{title:"Delete Employee",message:`Are you sure you want to delete ${i}? This action cannot be undone.`,confirmText:"Delete",cancelText:"Cancel"}}).afterClosed().subscribe(o=>{o&&this.employeeService.delete(this.employee.id).subscribe({next:()=>{let a=this.snackBar.open(`${i} has been deleted.`,"Close",{duration:3e3,horizontalPosition:"end",verticalPosition:"top"});a.afterDismissed().subscribe(()=>this.router.navigate(["/employees"])),a.onAction().subscribe(()=>this.router.navigate(["/employees"]))},error:a=>{console.error("Error deleting employee:",a),this.snackBar.open("Failed to delete employee. Please try again.","Close",{duration:4e3,horizontalPosition:"end",verticalPosition:"top"})}})})}goBack(){this.router.navigate(["/employees"])}canEdit(){return this.authService.isHRAdmin()||this.authService.isManager()}canDelete(){return this.authService.isHRAdmin()}};n.\u0275fac=function(r){return new(r||n)},n.\u0275cmp=E({type:n,selectors:[["app-employee-detail"]],decls:4,vars:3,consts:[["class","loading-spinner",4,"ngIf"],[4,"ngIf"],[1,"loading-spinner"],[1,"flex-spacer"],[1,"header-actions"],["mat-stroked-button","",3,"click"],["mat-raised-button","","color","accent",3,"click",4,"appHasRole"],["mat-raised-button","","color","warn",3,"click",4,"appHasRole"],[1,"detail-container"],[1,"detail-section"],["matListItemTitle",""],["matListItemLine",""],[3,"href"],["class","detail-section",4,"ngIf"],["mat-raised-button","","color","accent",3,"click"],["mat-raised-button","","color","warn",3,"click"],[1,"no-data"],["mat-raised-button","","color","primary",3,"click"]],template:function(r,o){r&1&&(k(0,"page-header"),R(1,_be,2,0,"div",0)(2,Mbe,82,24,"mat-card",1)(3,kbe,9,0,"mat-card",1)),r&2&&(g(),y("ngIf",o.loading),g(),y("ngIf",!o.loading&&o.employee),g(),y("ngIf",!o.loading&&!o.employee))},dependencies:[gt,li,ze,kt,$t,zt,Ut,Jt,Xt,ot,mt,Si,ki,sa,Ha,ca,Fs,la,Tu,Dl,pi,Mn,ni,Un,ff,il,Sa],styles:[".loading-spinner[_ngcontent-%COMP%]{display:flex;justify-content:center;align-items:center;min-height:400px}mat-card[_ngcontent-%COMP%]{margin:16px;max-width:1200px}mat-card-header[_ngcontent-%COMP%]{display:flex;align-items:center;padding:16px;border-bottom:1px solid rgba(0,0,0,.12)}mat-card-header[_ngcontent-%COMP%] mat-card-title[_ngcontent-%COMP%]{font-size:24px;font-weight:500;margin:0}mat-card-header[_ngcontent-%COMP%] .flex-spacer[_ngcontent-%COMP%]{flex:1 1 auto}mat-card-header[_ngcontent-%COMP%] .header-actions[_ngcontent-%COMP%]{display:flex;gap:12px}mat-card-header[_ngcontent-%COMP%] .header-actions[_ngcontent-%COMP%] button[_ngcontent-%COMP%] mat-icon[_ngcontent-%COMP%]{margin-right:4px}mat-card-content[_ngcontent-%COMP%]{padding:24px}.detail-container[_ngcontent-%COMP%]{display:grid;grid-template-columns:1fr 1fr;gap:24px}@media (max-width: 768px){.detail-container[_ngcontent-%COMP%]{grid-template-columns:1fr}}.detail-section[_ngcontent-%COMP%] h3[_ngcontent-%COMP%]{font-size:16px;font-weight:500;margin:0 0 8px;color:#000000de}.detail-section[_ngcontent-%COMP%] mat-divider[_ngcontent-%COMP%]{margin-bottom:16px}.detail-section[_ngcontent-%COMP%] mat-list[_ngcontent-%COMP%]{padding:0}.detail-section[_ngcontent-%COMP%] mat-list-item[_ngcontent-%COMP%]{height:auto;min-height:48px;padding:8px 0}.detail-section[_ngcontent-%COMP%] mat-list-item[_ngcontent-%COMP%] span[matListItemTitle][_ngcontent-%COMP%]{font-weight:500;color:#0009;font-size:12px;text-transform:uppercase;letter-spacing:.5px}.detail-section[_ngcontent-%COMP%] mat-list-item[_ngcontent-%COMP%] span[matListItemLine][_ngcontent-%COMP%]{font-size:14px;color:#000000de;margin-top:4px;white-space:normal;word-break:break-word}.detail-section[_ngcontent-%COMP%] mat-list-item[_ngcontent-%COMP%] span[matListItemLine][_ngcontent-%COMP%] a[_ngcontent-%COMP%]{color:#1976d2;text-decoration:none}.detail-section[_ngcontent-%COMP%] mat-list-item[_ngcontent-%COMP%] span[matListItemLine][_ngcontent-%COMP%] a[_ngcontent-%COMP%]:hover{text-decoration:underline}.no-data[_ngcontent-%COMP%]{display:flex;flex-direction:column;align-items:center;justify-content:center;padding:48px 16px;color:#0000008a}.no-data[_ngcontent-%COMP%] mat-icon[_ngcontent-%COMP%]{font-size:64px;width:64px;height:64px;margin-bottom:16px;color:#f44336}.no-data[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{margin:0 0 24px;font-size:18px}"]});let t=n;return t})();var Tbe=["mat-calendar-body",""];function Ibe(t,n){return this._trackRow(n)}var IU=(t,n)=>n.id;function Abe(t,n){if(t&1&&(h(0,"tr",0)(1,"td",3),_(2),p()()),t&2){let e=C();g(),Dt("padding-top",e._cellPadding)("padding-bottom",e._cellPadding),X("colspan",e.numCols),g(),ve(" ",e.label," ")}}function Obe(t,n){if(t&1&&(h(0,"td",3),_(1),p()),t&2){let e=C(2);Dt("padding-top",e._cellPadding)("padding-bottom",e._cellPadding),X("colspan",e._firstRowOffset),g(),ve(" ",e._firstRowOffset>=e.labelMinRequiredCells?e.label:""," ")}}function Rbe(t,n){if(t&1){let e=Y();h(0,"td",6)(1,"button",7),S("click",function(r){let o=I(e).$implicit,a=C(2);return A(a._cellClicked(o,r))})("focus",function(r){let o=I(e).$implicit,a=C(2);return A(a._emitActiveDateChange(o,r))}),h(2,"span",8),_(3),p(),k(4,"span",9),p()()}if(t&2){let e=n.$implicit,i=n.$index,r=C().$index,o=C();Dt("width",o._cellWidth)("padding-top",o._cellPadding)("padding-bottom",o._cellPadding),X("data-mat-row",r)("data-mat-col",i),g(),G("mat-calendar-body-disabled",!e.enabled)("mat-calendar-body-active",o._isActiveCell(r,i))("mat-calendar-body-range-start",o._isRangeStart(e.compareValue))("mat-calendar-body-range-end",o._isRangeEnd(e.compareValue))("mat-calendar-body-in-range",o._isInRange(e.compareValue))("mat-calendar-body-comparison-bridge-start",o._isComparisonBridgeStart(e.compareValue,r,i))("mat-calendar-body-comparison-bridge-end",o._isComparisonBridgeEnd(e.compareValue,r,i))("mat-calendar-body-comparison-start",o._isComparisonStart(e.compareValue))("mat-calendar-body-comparison-end",o._isComparisonEnd(e.compareValue))("mat-calendar-body-in-comparison-range",o._isInComparisonRange(e.compareValue))("mat-calendar-body-preview-start",o._isPreviewStart(e.compareValue))("mat-calendar-body-preview-end",o._isPreviewEnd(e.compareValue))("mat-calendar-body-in-preview",o._isInPreview(e.compareValue)),y("ngClass",e.cssClasses)("tabindex",o._isActiveCell(r,i)?0:-1),X("aria-label",e.ariaLabel)("aria-disabled",!e.enabled||null)("aria-pressed",o._isSelected(e.compareValue))("aria-current",o.todayValue===e.compareValue?"date":null)("aria-describedby",o._getDescribedby(e.compareValue)),g(),G("mat-calendar-body-selected",o._isSelected(e.compareValue))("mat-calendar-body-comparison-identical",o._isComparisonIdentical(e.compareValue))("mat-calendar-body-today",o.todayValue===e.compareValue),g(),ve(" ",e.displayValue," ")}}function Pbe(t,n){if(t&1&&(h(0,"tr",1),N(1,Obe,2,6,"td",4),xt(2,Rbe,5,48,"td",5,IU),p()),t&2){let e=n.$implicit,i=n.$index,r=C();g(),L(i===0&&r._firstRowOffset?1:-1),g(),Ct(e)}}function Fbe(t,n){if(t&1&&(h(0,"th",2)(1,"span",6),_(2),p(),h(3,"span",3),_(4),p()()),t&2){let e=n.$implicit;g(2),H(e.long),g(2),H(e.narrow)}}var Nbe=["*"];function Lbe(t,n){}function Vbe(t,n){if(t&1){let e=Y();h(0,"mat-month-view",4),Uo("activeDateChange",function(r){I(e);let o=C();return Ca(o.activeDate,r)||(o.activeDate=r),A(r)}),S("_userSelection",function(r){I(e);let o=C();return A(o._dateSelected(r))})("dragStarted",function(r){I(e);let o=C();return A(o._dragStarted(r))})("dragEnded",function(r){I(e);let o=C();return A(o._dragEnded(r))}),p()}if(t&2){let e=C();zo("activeDate",e.activeDate),y("selected",e.selected)("dateFilter",e.dateFilter)("maxDate",e.maxDate)("minDate",e.minDate)("dateClass",e.dateClass)("comparisonStart",e.comparisonStart)("comparisonEnd",e.comparisonEnd)("startDateAccessibleName",e.startDateAccessibleName)("endDateAccessibleName",e.endDateAccessibleName)("activeDrag",e._activeDrag)}}function Bbe(t,n){if(t&1){let e=Y();h(0,"mat-year-view",5),Uo("activeDateChange",function(r){I(e);let o=C();return Ca(o.activeDate,r)||(o.activeDate=r),A(r)}),S("monthSelected",function(r){I(e);let o=C();return A(o._monthSelectedInYearView(r))})("selectedChange",function(r){I(e);let o=C();return A(o._goToDateInView(r,"month"))}),p()}if(t&2){let e=C();zo("activeDate",e.activeDate),y("selected",e.selected)("dateFilter",e.dateFilter)("maxDate",e.maxDate)("minDate",e.minDate)("dateClass",e.dateClass)}}function jbe(t,n){if(t&1){let e=Y();h(0,"mat-multi-year-view",6),Uo("activeDateChange",function(r){I(e);let o=C();return Ca(o.activeDate,r)||(o.activeDate=r),A(r)}),S("yearSelected",function(r){I(e);let o=C();return A(o._yearSelectedInMultiYearView(r))})("selectedChange",function(r){I(e);let o=C();return A(o._goToDateInView(r,"year"))}),p()}if(t&2){let e=C();zo("activeDate",e.activeDate),y("selected",e.selected)("dateFilter",e.dateFilter)("maxDate",e.maxDate)("minDate",e.minDate)("dateClass",e.dateClass)}}function Hbe(t,n){}var zbe=["button"],Ube=[[["","matDatepickerToggleIcon",""]]],$be=["[matDatepickerToggleIcon]"];function Wbe(t,n){t&1&&(Gt(),h(0,"svg",2),k(1,"path",3),p())}var dp=(()=>{class t{changes=new z;calendarLabel="Calendar";openCalendarLabel="Open calendar";closeCalendarLabel="Close calendar";prevMonthLabel="Previous month";nextMonthLabel="Next month";prevYearLabel="Previous year";nextYearLabel="Next year";prevMultiYearLabel="Previous 24 years";nextMultiYearLabel="Next 24 years";switchToMonthViewLabel="Choose date";switchToMultiYearViewLabel="Choose month and year";startDateLabel="Start date";endDateLabel="End date";comparisonDateLabel="Comparison range";formatYearRange(e,i){return`${e} \u2013 ${i}`}formatYearRangeLabel(e,i){return`${e} to ${i}`}static \u0275fac=function(i){return new(i||t)};static \u0275prov=O({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),Gbe=0,C_=class{value;displayValue;ariaLabel;enabled;cssClasses;compareValue;rawValue;id=Gbe++;constructor(n,e,i,r,o={},a=n,s){this.value=n,this.displayValue=e,this.ariaLabel=i,this.enabled=r,this.cssClasses=o,this.compareValue=a,this.rawValue=s}},qbe={passive:!1,capture:!0},xw={passive:!0,capture:!0},DU={passive:!0},cp=(()=>{class t{_elementRef=u(q);_ngZone=u(ae);_platform=u(qe);_intl=u(dp);_eventCleanups;_skipNextFocus;_focusActiveCellAfterViewChecked=!1;label;rows;todayValue;startValue;endValue;labelMinRequiredCells;numCols=7;activeCell=0;ngAfterViewChecked(){this._focusActiveCellAfterViewChecked&&(this._focusActiveCell(),this._focusActiveCellAfterViewChecked=!1)}isRange=!1;cellAspectRatio=1;comparisonStart;comparisonEnd;previewStart=null;previewEnd=null;startDateAccessibleName;endDateAccessibleName;selectedValueChange=new U;previewChange=new U;activeDateChange=new U;dragStarted=new U;dragEnded=new U;_firstRowOffset;_cellPadding;_cellWidth;_startDateLabelId;_endDateLabelId;_comparisonStartDateLabelId;_comparisonEndDateLabelId;_didDragSinceMouseDown=!1;_injector=u(de);comparisonDateAccessibleName=this._intl.comparisonDateLabel;_trackRow=e=>e;constructor(){let e=u(je),i=u(Ze);this._startDateLabelId=i.getId("mat-calendar-body-start-"),this._endDateLabelId=i.getId("mat-calendar-body-end-"),this._comparisonStartDateLabelId=i.getId("mat-calendar-body-comparison-start-"),this._comparisonEndDateLabelId=i.getId("mat-calendar-body-comparison-end-"),u(ut).load(Di),this._ngZone.runOutsideAngular(()=>{let r=this._elementRef.nativeElement,o=[e.listen(r,"touchmove",this._touchmoveHandler,qbe),e.listen(r,"mouseenter",this._enterHandler,xw),e.listen(r,"focus",this._enterHandler,xw),e.listen(r,"mouseleave",this._leaveHandler,xw),e.listen(r,"blur",this._leaveHandler,xw),e.listen(r,"mousedown",this._mousedownHandler,DU),e.listen(r,"touchstart",this._mousedownHandler,DU)];this._platform.isBrowser&&o.push(e.listen("window","mouseup",this._mouseupHandler),e.listen("window","touchend",this._touchendHandler)),this._eventCleanups=o})}_cellClicked(e,i){this._didDragSinceMouseDown||e.enabled&&this.selectedValueChange.emit({value:e.value,event:i})}_emitActiveDateChange(e,i){e.enabled&&this.activeDateChange.emit({value:e.value,event:i})}_isSelected(e){return this.startValue===e||this.endValue===e}ngOnChanges(e){let i=e.numCols,{rows:r,numCols:o}=this;(e.rows||i)&&(this._firstRowOffset=r&&r.length&&r[0].length?o-r[0].length:0),(e.cellAspectRatio||i||!this._cellPadding)&&(this._cellPadding=`${50*this.cellAspectRatio/o}%`),(i||!this._cellWidth)&&(this._cellWidth=`${100/o}%`)}ngOnDestroy(){this._eventCleanups.forEach(e=>e())}_isActiveCell(e,i){let r=e*this.numCols+i;return e&&(r-=this._firstRowOffset),r==this.activeCell}_focusActiveCell(e=!0){pt(()=>{setTimeout(()=>{let i=this._elementRef.nativeElement.querySelector(".mat-calendar-body-active");i&&(e||(this._skipNextFocus=!0),i.focus())})},{injector:this._injector})}_scheduleFocusActiveCellAfterViewChecked(){this._focusActiveCellAfterViewChecked=!0}_isRangeStart(e){return XI(e,this.startValue,this.endValue)}_isRangeEnd(e){return JI(e,this.startValue,this.endValue)}_isInRange(e){return eA(e,this.startValue,this.endValue,this.isRange)}_isComparisonStart(e){return XI(e,this.comparisonStart,this.comparisonEnd)}_isComparisonBridgeStart(e,i,r){if(!this._isComparisonStart(e)||this._isRangeStart(e)||!this._isInRange(e))return!1;let o=this.rows[i][r-1];if(!o){let a=this.rows[i-1];o=a&&a[a.length-1]}return o&&!this._isRangeEnd(o.compareValue)}_isComparisonBridgeEnd(e,i,r){if(!this._isComparisonEnd(e)||this._isRangeEnd(e)||!this._isInRange(e))return!1;let o=this.rows[i][r+1];if(!o){let a=this.rows[i+1];o=a&&a[0]}return o&&!this._isRangeStart(o.compareValue)}_isComparisonEnd(e){return JI(e,this.comparisonStart,this.comparisonEnd)}_isInComparisonRange(e){return eA(e,this.comparisonStart,this.comparisonEnd,this.isRange)}_isComparisonIdentical(e){return this.comparisonStart===this.comparisonEnd&&e===this.comparisonStart}_isPreviewStart(e){return XI(e,this.previewStart,this.previewEnd)}_isPreviewEnd(e){return JI(e,this.previewStart,this.previewEnd)}_isInPreview(e){return eA(e,this.previewStart,this.previewEnd,this.isRange)}_getDescribedby(e){if(!this.isRange)return null;if(this.startValue===e&&this.endValue===e)return`${this._startDateLabelId} ${this._endDateLabelId}`;if(this.startValue===e)return this._startDateLabelId;if(this.endValue===e)return this._endDateLabelId;if(this.comparisonStart!==null&&this.comparisonEnd!==null){if(e===this.comparisonStart&&e===this.comparisonEnd)return`${this._comparisonStartDateLabelId} ${this._comparisonEndDateLabelId}`;if(e===this.comparisonStart)return this._comparisonStartDateLabelId;if(e===this.comparisonEnd)return this._comparisonEndDateLabelId}return null}_enterHandler=e=>{if(this._skipNextFocus&&e.type==="focus"){this._skipNextFocus=!1;return}if(e.target&&this.isRange){let i=this._getCellFromElement(e.target);i&&this._ngZone.run(()=>this.previewChange.emit({value:i.enabled?i:null,event:e}))}};_touchmoveHandler=e=>{if(!this.isRange)return;let i=EU(e),r=i?this._getCellFromElement(i):null;i!==e.target&&(this._didDragSinceMouseDown=!0),ZI(e.target)&&e.preventDefault(),this._ngZone.run(()=>this.previewChange.emit({value:r?.enabled?r:null,event:e}))};_leaveHandler=e=>{this.previewEnd!==null&&this.isRange&&(e.type!=="blur"&&(this._didDragSinceMouseDown=!0),e.target&&this._getCellFromElement(e.target)&&!(e.relatedTarget&&this._getCellFromElement(e.relatedTarget))&&this._ngZone.run(()=>this.previewChange.emit({value:null,event:e})))};_mousedownHandler=e=>{if(!this.isRange)return;this._didDragSinceMouseDown=!1;let i=e.target&&this._getCellFromElement(e.target);!i||!this._isInRange(i.compareValue)||this._ngZone.run(()=>{this.dragStarted.emit({value:i.rawValue,event:e})})};_mouseupHandler=e=>{if(!this.isRange)return;let i=ZI(e.target);if(!i){this._ngZone.run(()=>{this.dragEnded.emit({value:null,event:e})});return}i.closest(".mat-calendar-body")===this._elementRef.nativeElement&&this._ngZone.run(()=>{let r=this._getCellFromElement(i);this.dragEnded.emit({value:r?.rawValue??null,event:e})})};_touchendHandler=e=>{let i=EU(e);i&&this._mouseupHandler({target:i})};_getCellFromElement(e){let i=ZI(e);if(i){let r=i.getAttribute("data-mat-row"),o=i.getAttribute("data-mat-col");if(r&&o)return this.rows[parseInt(r)]?.[parseInt(o)]||null}return null}static \u0275fac=function(i){return new(i||t)};static \u0275cmp=E({type:t,selectors:[["","mat-calendar-body",""]],hostAttrs:[1,"mat-calendar-body"],inputs:{label:"label",rows:"rows",todayValue:"todayValue",startValue:"startValue",endValue:"endValue",labelMinRequiredCells:"labelMinRequiredCells",numCols:"numCols",activeCell:"activeCell",isRange:"isRange",cellAspectRatio:"cellAspectRatio",comparisonStart:"comparisonStart",comparisonEnd:"comparisonEnd",previewStart:"previewStart",previewEnd:"previewEnd",startDateAccessibleName:"startDateAccessibleName",endDateAccessibleName:"endDateAccessibleName"},outputs:{selectedValueChange:"selectedValueChange",previewChange:"previewChange",activeDateChange:"activeDateChange",dragStarted:"dragStarted",dragEnded:"dragEnded"},exportAs:["matCalendarBody"],features:[Ae],attrs:Tbe,decls:11,vars:11,consts:[["aria-hidden","true"],["role","row"],[1,"mat-calendar-body-hidden-label",3,"id"],[1,"mat-calendar-body-label"],[1,"mat-calendar-body-label",3,"paddingTop","paddingBottom"],["role","gridcell",1,"mat-calendar-body-cell-container",3,"width","paddingTop","paddingBottom"],["role","gridcell",1,"mat-calendar-body-cell-container"],["type","button",1,"mat-calendar-body-cell",3,"click","focus","ngClass","tabindex"],[1,"mat-calendar-body-cell-content","mat-focus-indicator"],["aria-hidden","true",1,"mat-calendar-body-cell-preview"]],template:function(i,r){i&1&&(N(0,Abe,3,6,"tr",0),xt(1,Pbe,4,1,"tr",1,Ibe,!0),h(3,"span",2),_(4),p(),h(5,"span",2),_(6),p(),h(7,"span",2),_(8),p(),h(9,"span",2),_(10),p()),i&2&&(L(r._firstRowOffset.mat-calendar-body-cell-content:not(.mat-calendar-body-selected):not(.mat-calendar-body-comparison-identical){color:var(--mat-datepicker-calendar-date-disabled-state-text-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent))}.mat-calendar-body-disabled>.mat-calendar-body-today:not(.mat-calendar-body-selected):not(.mat-calendar-body-comparison-identical){border-color:var(--mat-datepicker-calendar-date-today-disabled-state-outline-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent))}@media(forced-colors: active){.mat-calendar-body-disabled{opacity:.5}}.mat-calendar-body-cell-content{top:5%;left:5%;z-index:1;display:flex;align-items:center;justify-content:center;box-sizing:border-box;width:90%;height:90%;line-height:1;border-width:1px;border-style:solid;border-radius:999px;color:var(--mat-datepicker-calendar-date-text-color, var(--mat-sys-on-surface));border-color:var(--mat-datepicker-calendar-date-outline-color, transparent)}.mat-calendar-body-cell-content.mat-focus-indicator{position:absolute}@media(forced-colors: active){.mat-calendar-body-cell-content{border:none}}.cdk-keyboard-focused .mat-calendar-body-active>.mat-calendar-body-cell-content:not(.mat-calendar-body-selected):not(.mat-calendar-body-comparison-identical),.cdk-program-focused .mat-calendar-body-active>.mat-calendar-body-cell-content:not(.mat-calendar-body-selected):not(.mat-calendar-body-comparison-identical){background-color:var(--mat-datepicker-calendar-date-focus-state-background-color, color-mix(in srgb, var(--mat-sys-on-surface) calc(var(--mat-sys-focus-state-layer-opacity) * 100%), transparent))}@media(hover: hover){.mat-calendar-body-cell:not(.mat-calendar-body-disabled):hover>.mat-calendar-body-cell-content:not(.mat-calendar-body-selected):not(.mat-calendar-body-comparison-identical){background-color:var(--mat-datepicker-calendar-date-hover-state-background-color, color-mix(in srgb, var(--mat-sys-on-surface) calc(var(--mat-sys-hover-state-layer-opacity) * 100%), transparent))}}.mat-calendar-body-selected{background-color:var(--mat-datepicker-calendar-date-selected-state-background-color, var(--mat-sys-primary));color:var(--mat-datepicker-calendar-date-selected-state-text-color, var(--mat-sys-on-primary))}.mat-calendar-body-disabled>.mat-calendar-body-selected{background-color:var(--mat-datepicker-calendar-date-selected-disabled-state-background-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent))}.mat-calendar-body-selected.mat-calendar-body-today{box-shadow:inset 0 0 0 1px var(--mat-datepicker-calendar-date-today-selected-state-outline-color, var(--mat-sys-primary))}.mat-calendar-body-in-range::before{background:var(--mat-datepicker-calendar-date-in-range-state-background-color, var(--mat-sys-primary-container))}.mat-calendar-body-comparison-identical,.mat-calendar-body-in-comparison-range::before{background:var(--mat-datepicker-calendar-date-in-comparison-range-state-background-color, var(--mat-sys-tertiary-container))}.mat-calendar-body-comparison-identical,.mat-calendar-body-in-comparison-range::before{background:var(--mat-datepicker-calendar-date-in-comparison-range-state-background-color, var(--mat-sys-tertiary-container))}.mat-calendar-body-comparison-bridge-start::before,[dir=rtl] .mat-calendar-body-comparison-bridge-end::before{background:linear-gradient(to right, var(--mat-datepicker-calendar-date-in-range-state-background-color, var(--mat-sys-primary-container)) 50%, var(--mat-datepicker-calendar-date-in-comparison-range-state-background-color, var(--mat-sys-tertiary-container)) 50%)}.mat-calendar-body-comparison-bridge-end::before,[dir=rtl] .mat-calendar-body-comparison-bridge-start::before{background:linear-gradient(to left, var(--mat-datepicker-calendar-date-in-range-state-background-color, var(--mat-sys-primary-container)) 50%, var(--mat-datepicker-calendar-date-in-comparison-range-state-background-color, var(--mat-sys-tertiary-container)) 50%)}.mat-calendar-body-in-range>.mat-calendar-body-comparison-identical,.mat-calendar-body-in-comparison-range.mat-calendar-body-in-range::after{background:var(--mat-datepicker-calendar-date-in-overlap-range-state-background-color, var(--mat-sys-secondary-container))}.mat-calendar-body-comparison-identical.mat-calendar-body-selected,.mat-calendar-body-in-comparison-range>.mat-calendar-body-selected{background:var(--mat-datepicker-calendar-date-in-overlap-range-selected-state-background-color, var(--mat-sys-secondary))}@media(forced-colors: active){.mat-datepicker-popup:not(:empty),.mat-calendar-body-cell:not(.mat-calendar-body-in-range) .mat-calendar-body-selected{outline:solid 1px}.mat-calendar-body-today{outline:dotted 1px}.mat-calendar-body-cell::before,.mat-calendar-body-cell::after,.mat-calendar-body-selected{background:none}.mat-calendar-body-in-range::before,.mat-calendar-body-comparison-bridge-start::before,.mat-calendar-body-comparison-bridge-end::before{border-top:solid 1px;border-bottom:solid 1px}.mat-calendar-body-range-start::before{border-left:solid 1px}[dir=rtl] .mat-calendar-body-range-start::before{border-left:0;border-right:solid 1px}.mat-calendar-body-range-end::before{border-right:solid 1px}[dir=rtl] .mat-calendar-body-range-end::before{border-right:0;border-left:solid 1px}.mat-calendar-body-in-comparison-range::before{border-top:dashed 1px;border-bottom:dashed 1px}.mat-calendar-body-comparison-start::before{border-left:dashed 1px}[dir=rtl] .mat-calendar-body-comparison-start::before{border-left:0;border-right:dashed 1px}.mat-calendar-body-comparison-end::before{border-right:dashed 1px}[dir=rtl] .mat-calendar-body-comparison-end::before{border-right:0;border-left:dashed 1px}} -`],encapsulation:2,changeDetection:0})}return t})();function KI(t){return t?.nodeName==="TD"}function ZI(t){let n;return KI(t)?n=t:KI(t.parentNode)?n=t.parentNode:KI(t.parentNode?.parentNode)&&(n=t.parentNode.parentNode),n?.getAttribute("data-mat-row")!=null?n:null}function XI(t,n,e){return e!==null&&n!==e&&t=n&&t===e}function eA(t,n,e,i){return i&&n!==null&&e!==null&&n!==e&&t>=n&&t<=e}function EU(t){let n=t.changedTouches[0];return document.elementFromPoint(n.clientX,n.clientY)}var ua=class{start;end;_disableStructuralEquivalency;constructor(n,e){this.start=n,this.end=e}},w_=(()=>{class t{selection;_adapter;_selectionChanged=new z;selectionChanged=this._selectionChanged;constructor(e,i){this.selection=e,this._adapter=i,this.selection=e}updateSelection(e,i){let r=this.selection;this.selection=e,this._selectionChanged.next({selection:e,source:i,oldValue:r})}ngOnDestroy(){this._selectionChanged.complete()}_isValidDateInstance(e){return this._adapter.isDateInstance(e)&&this._adapter.isValid(e)}static \u0275fac=function(i){Ad()};static \u0275prov=O({token:t,factory:t.\u0275fac})}return t})(),Ybe=(()=>{class t extends w_{constructor(e){super(null,e)}add(e){super.updateSelection(e,this)}isValid(){return this.selection!=null&&this._isValidDateInstance(this.selection)}isComplete(){return this.selection!=null}clone(){let e=new t(this._adapter);return e.updateSelection(this.selection,this),e}static \u0275fac=function(i){return new(i||t)(pe(Li))};static \u0275prov=O({token:t,factory:t.\u0275fac})}return t})();function Qbe(t,n){return t||new Ybe(n)}var AU={provide:w_,deps:[[new ss,new Gl,w_],Li],useFactory:Qbe};var OU=new T("MAT_DATE_RANGE_SELECTION_STRATEGY");var tA=7,Kbe=0,MU=(()=>{class t{_changeDetectorRef=u(ye);_dateFormats=u(xs,{optional:!0});_dateAdapter=u(Li,{optional:!0});_dir=u(Vt,{optional:!0});_rangeStrategy=u(OU,{optional:!0});_rerenderSubscription=ke.EMPTY;_selectionKeyPressed;get activeDate(){return this._activeDate}set activeDate(e){let i=this._activeDate,r=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e))||this._dateAdapter.today();this._activeDate=this._dateAdapter.clampDate(r,this.minDate,this.maxDate),this._hasSameMonthAndYear(i,this._activeDate)||this._init()}_activeDate;get selected(){return this._selected}set selected(e){e instanceof ua?this._selected=e:this._selected=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e)),this._setRanges(this._selected)}_selected;get minDate(){return this._minDate}set minDate(e){this._minDate=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e))}_minDate;get maxDate(){return this._maxDate}set maxDate(e){this._maxDate=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e))}_maxDate;dateFilter;dateClass;comparisonStart;comparisonEnd;startDateAccessibleName;endDateAccessibleName;activeDrag=null;selectedChange=new U;_userSelection=new U;dragStarted=new U;dragEnded=new U;activeDateChange=new U;_matCalendarBody;_monthLabel=he("");_weeks=he([]);_firstWeekOffset=he(0);_rangeStart=he(null);_rangeEnd=he(null);_comparisonRangeStart=he(null);_comparisonRangeEnd=he(null);_previewStart=he(null);_previewEnd=he(null);_isRange=he(!1);_todayDate=he(null);_weekdays=he([]);constructor(){u(ut).load(Qr),this._activeDate=this._dateAdapter.today()}ngAfterContentInit(){this._rerenderSubscription=this._dateAdapter.localeChanges.pipe(He(null)).subscribe(()=>this._init())}ngOnChanges(e){let i=e.comparisonStart||e.comparisonEnd;i&&!i.firstChange&&this._setRanges(this.selected),e.activeDrag&&!this.activeDrag&&this._clearPreview()}ngOnDestroy(){this._rerenderSubscription.unsubscribe()}_dateSelected(e){let i=e.value,r=this._getDateFromDayOfMonth(i),o,a;this._selected instanceof ua?(o=this._getDateInCurrentMonth(this._selected.start),a=this._getDateInCurrentMonth(this._selected.end)):o=a=this._getDateInCurrentMonth(this._selected),(o!==i||a!==i)&&this.selectedChange.emit(r),this._userSelection.emit({value:r,event:e.event}),this._clearPreview(),this._changeDetectorRef.markForCheck()}_updateActiveDate(e){let i=e.value,r=this._activeDate;this.activeDate=this._getDateFromDayOfMonth(i),this._dateAdapter.compareDate(r,this.activeDate)&&this.activeDateChange.emit(this._activeDate)}_handleCalendarBodyKeydown(e){let i=this._activeDate,r=this._isRtl();switch(e.keyCode){case 37:this.activeDate=this._dateAdapter.addCalendarDays(this._activeDate,r?1:-1);break;case 39:this.activeDate=this._dateAdapter.addCalendarDays(this._activeDate,r?-1:1);break;case 38:this.activeDate=this._dateAdapter.addCalendarDays(this._activeDate,-7);break;case 40:this.activeDate=this._dateAdapter.addCalendarDays(this._activeDate,7);break;case 36:this.activeDate=this._dateAdapter.addCalendarDays(this._activeDate,1-this._dateAdapter.getDate(this._activeDate));break;case 35:this.activeDate=this._dateAdapter.addCalendarDays(this._activeDate,this._dateAdapter.getNumDaysInMonth(this._activeDate)-this._dateAdapter.getDate(this._activeDate));break;case 33:this.activeDate=e.altKey?this._dateAdapter.addCalendarYears(this._activeDate,-1):this._dateAdapter.addCalendarMonths(this._activeDate,-1);break;case 34:this.activeDate=e.altKey?this._dateAdapter.addCalendarYears(this._activeDate,1):this._dateAdapter.addCalendarMonths(this._activeDate,1);break;case 13:case 32:this._selectionKeyPressed=!0,this._canSelect(this._activeDate)&&e.preventDefault();return;case 27:this._previewEnd()!=null&&!Ft(e)&&(this._clearPreview(),this.activeDrag?this.dragEnded.emit({value:null,event:e}):(this.selectedChange.emit(null),this._userSelection.emit({value:null,event:e})),e.preventDefault(),e.stopPropagation());return;default:return}this._dateAdapter.compareDate(i,this.activeDate)&&(this.activeDateChange.emit(this.activeDate),this._focusActiveCellAfterViewChecked()),e.preventDefault()}_handleCalendarBodyKeyup(e){(e.keyCode===32||e.keyCode===13)&&(this._selectionKeyPressed&&this._canSelect(this._activeDate)&&this._dateSelected({value:this._dateAdapter.getDate(this._activeDate),event:e}),this._selectionKeyPressed=!1)}_init(){this._setRanges(this.selected),this._todayDate.set(this._getCellCompareValue(this._dateAdapter.today())),this._monthLabel.set(this._dateFormats.display.monthLabel?this._dateAdapter.format(this.activeDate,this._dateFormats.display.monthLabel):this._dateAdapter.getMonthNames("short")[this._dateAdapter.getMonth(this.activeDate)].toLocaleUpperCase());let e=this._dateAdapter.createDate(this._dateAdapter.getYear(this.activeDate),this._dateAdapter.getMonth(this.activeDate),1);this._firstWeekOffset.set((tA+this._dateAdapter.getDayOfWeek(e)-this._dateAdapter.getFirstDayOfWeek())%tA),this._initWeekdays(),this._createWeekCells(),this._changeDetectorRef.markForCheck()}_focusActiveCell(e){this._matCalendarBody._focusActiveCell(e)}_focusActiveCellAfterViewChecked(){this._matCalendarBody._scheduleFocusActiveCellAfterViewChecked()}_previewChanged({event:e,value:i}){if(this._rangeStrategy){let r=i?i.rawValue:null,o=this._rangeStrategy.createPreview(r,this.selected,e);if(this._previewStart.set(this._getCellCompareValue(o.start)),this._previewEnd.set(this._getCellCompareValue(o.end)),this.activeDrag&&r){let a=this._rangeStrategy.createDrag?.(this.activeDrag.value,this.selected,r,e);a&&(this._previewStart.set(this._getCellCompareValue(a.start)),this._previewEnd.set(this._getCellCompareValue(a.end)))}}}_dragEnded(e){if(this.activeDrag)if(e.value){let i=this._rangeStrategy?.createDrag?.(this.activeDrag.value,this.selected,e.value,e.event);this.dragEnded.emit({value:i??null,event:e.event})}else this.dragEnded.emit({value:null,event:e.event})}_getDateFromDayOfMonth(e){return this._dateAdapter.createDate(this._dateAdapter.getYear(this.activeDate),this._dateAdapter.getMonth(this.activeDate),e)}_initWeekdays(){let e=this._dateAdapter.getFirstDayOfWeek(),i=this._dateAdapter.getDayOfWeekNames("narrow"),o=this._dateAdapter.getDayOfWeekNames("long").map((a,s)=>({long:a,narrow:i[s],id:Kbe++}));this._weekdays.set(o.slice(e).concat(o.slice(0,e)))}_createWeekCells(){let e=this._dateAdapter.getNumDaysInMonth(this.activeDate),i=this._dateAdapter.getDateNames(),r=[[]];for(let o=0,a=this._firstWeekOffset();o=0)&&(!this.maxDate||this._dateAdapter.compareDate(e,this.maxDate)<=0)&&(!this.dateFilter||this.dateFilter(e))}_getDateInCurrentMonth(e){return e&&this._hasSameMonthAndYear(e,this.activeDate)?this._dateAdapter.getDate(e):null}_hasSameMonthAndYear(e,i){return!!(e&&i&&this._dateAdapter.getMonth(e)==this._dateAdapter.getMonth(i)&&this._dateAdapter.getYear(e)==this._dateAdapter.getYear(i))}_getCellCompareValue(e){if(e){let i=this._dateAdapter.getYear(e),r=this._dateAdapter.getMonth(e),o=this._dateAdapter.getDate(e);return new Date(i,r,o).getTime()}return null}_isRtl(){return this._dir&&this._dir.value==="rtl"}_setRanges(e){e instanceof ua?(this._rangeStart.set(this._getCellCompareValue(e.start)),this._rangeEnd.set(this._getCellCompareValue(e.end)),this._isRange.set(!0)):(this._rangeStart.set(this._getCellCompareValue(e)),this._rangeEnd.set(this._rangeStart()),this._isRange.set(!1)),this._comparisonRangeStart.set(this._getCellCompareValue(this.comparisonStart)),this._comparisonRangeEnd.set(this._getCellCompareValue(this.comparisonEnd))}_canSelect(e){return!this.dateFilter||this.dateFilter(e)}_clearPreview(){this._previewStart.set(null),this._previewEnd.set(null)}static \u0275fac=function(i){return new(i||t)};static \u0275cmp=E({type:t,selectors:[["mat-month-view"]],viewQuery:function(i,r){if(i&1&&ie(cp,5),i&2){let o;B(o=j())&&(r._matCalendarBody=o.first)}},inputs:{activeDate:"activeDate",selected:"selected",minDate:"minDate",maxDate:"maxDate",dateFilter:"dateFilter",dateClass:"dateClass",comparisonStart:"comparisonStart",comparisonEnd:"comparisonEnd",startDateAccessibleName:"startDateAccessibleName",endDateAccessibleName:"endDateAccessibleName",activeDrag:"activeDrag"},outputs:{selectedChange:"selectedChange",_userSelection:"_userSelection",dragStarted:"dragStarted",dragEnded:"dragEnded",activeDateChange:"activeDateChange"},exportAs:["matMonthView"],features:[Ae],decls:8,vars:14,consts:[["role","grid",1,"mat-calendar-table"],[1,"mat-calendar-table-header"],["scope","col"],["aria-hidden","true"],["colspan","7",1,"mat-calendar-table-header-divider"],["mat-calendar-body","",3,"selectedValueChange","activeDateChange","previewChange","dragStarted","dragEnded","keyup","keydown","label","rows","todayValue","startValue","endValue","comparisonStart","comparisonEnd","previewStart","previewEnd","isRange","labelMinRequiredCells","activeCell","startDateAccessibleName","endDateAccessibleName"],[1,"cdk-visually-hidden"]],template:function(i,r){i&1&&(h(0,"table",0)(1,"thead",1)(2,"tr"),xt(3,Fbe,5,2,"th",2,IU),p(),h(5,"tr",3),k(6,"th",4),p()(),h(7,"tbody",5),S("selectedValueChange",function(a){return r._dateSelected(a)})("activeDateChange",function(a){return r._updateActiveDate(a)})("previewChange",function(a){return r._previewChanged(a)})("dragStarted",function(a){return r.dragStarted.emit(a)})("dragEnded",function(a){return r._dragEnded(a)})("keyup",function(a){return r._handleCalendarBodyKeyup(a)})("keydown",function(a){return r._handleCalendarBodyKeydown(a)}),p()()),i&2&&(g(3),Ct(r._weekdays()),g(4),y("label",r._monthLabel())("rows",r._weeks())("todayValue",r._todayDate())("startValue",r._rangeStart())("endValue",r._rangeEnd())("comparisonStart",r._comparisonRangeStart())("comparisonEnd",r._comparisonRangeEnd())("previewStart",r._previewStart())("previewEnd",r._previewEnd())("isRange",r._isRange())("labelMinRequiredCells",3)("activeCell",r._dateAdapter.getDate(r.activeDate)-1)("startDateAccessibleName",r.startDateAccessibleName)("endDateAccessibleName",r.endDateAccessibleName))},dependencies:[cp],encapsulation:2,changeDetection:0})}return t})(),Io=24,iA=4,kU=(()=>{class t{_changeDetectorRef=u(ye);_dateAdapter=u(Li,{optional:!0});_dir=u(Vt,{optional:!0});_rerenderSubscription=ke.EMPTY;_selectionKeyPressed;get activeDate(){return this._activeDate}set activeDate(e){let i=this._activeDate,r=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e))||this._dateAdapter.today();this._activeDate=this._dateAdapter.clampDate(r,this.minDate,this.maxDate),RU(this._dateAdapter,i,this._activeDate,this.minDate,this.maxDate)||this._init()}_activeDate;get selected(){return this._selected}set selected(e){e instanceof ua?this._selected=e:this._selected=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e)),this._setSelectedYear(e)}_selected;get minDate(){return this._minDate}set minDate(e){this._minDate=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e))}_minDate;get maxDate(){return this._maxDate}set maxDate(e){this._maxDate=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e))}_maxDate;dateFilter;dateClass;selectedChange=new U;yearSelected=new U;activeDateChange=new U;_matCalendarBody;_years=he([]);_todayYear=he(0);_selectedYear=he(null);constructor(){this._dateAdapter,this._activeDate=this._dateAdapter.today()}ngAfterContentInit(){this._rerenderSubscription=this._dateAdapter.localeChanges.pipe(He(null)).subscribe(()=>this._init())}ngOnDestroy(){this._rerenderSubscription.unsubscribe()}_init(){this._todayYear.set(this._dateAdapter.getYear(this._dateAdapter.today()));let i=this._dateAdapter.getYear(this._activeDate)-x_(this._dateAdapter,this.activeDate,this.minDate,this.maxDate),r=[];for(let o=0,a=[];othis._createCellForYear(s))),a=[]);this._years.set(r),this._changeDetectorRef.markForCheck()}_yearSelected(e){let i=e.value,r=this._dateAdapter.createDate(i,0,1),o=this._getDateFromYear(i);this.yearSelected.emit(r),this.selectedChange.emit(o)}_updateActiveDate(e){let i=e.value,r=this._activeDate;this.activeDate=this._getDateFromYear(i),this._dateAdapter.compareDate(r,this.activeDate)&&this.activeDateChange.emit(this.activeDate)}_handleCalendarBodyKeydown(e){let i=this._activeDate,r=this._isRtl();switch(e.keyCode){case 37:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,r?1:-1);break;case 39:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,r?-1:1);break;case 38:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,-iA);break;case 40:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,iA);break;case 36:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,-x_(this._dateAdapter,this.activeDate,this.minDate,this.maxDate));break;case 35:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,Io-x_(this._dateAdapter,this.activeDate,this.minDate,this.maxDate)-1);break;case 33:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,e.altKey?-Io*10:-Io);break;case 34:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,e.altKey?Io*10:Io);break;case 13:case 32:this._selectionKeyPressed=!0;break;default:return}this._dateAdapter.compareDate(i,this.activeDate)&&this.activeDateChange.emit(this.activeDate),this._focusActiveCellAfterViewChecked(),e.preventDefault()}_handleCalendarBodyKeyup(e){(e.keyCode===32||e.keyCode===13)&&(this._selectionKeyPressed&&this._yearSelected({value:this._dateAdapter.getYear(this._activeDate),event:e}),this._selectionKeyPressed=!1)}_getActiveCell(){return x_(this._dateAdapter,this.activeDate,this.minDate,this.maxDate)}_focusActiveCell(){this._matCalendarBody._focusActiveCell()}_focusActiveCellAfterViewChecked(){this._matCalendarBody._scheduleFocusActiveCellAfterViewChecked()}_getDateFromYear(e){let i=this._dateAdapter.getMonth(this.activeDate),r=this._dateAdapter.getNumDaysInMonth(this._dateAdapter.createDate(e,i,1));return this._dateAdapter.createDate(e,i,Math.min(this._dateAdapter.getDate(this.activeDate),r))}_createCellForYear(e){let i=this._dateAdapter.createDate(e,0,1),r=this._dateAdapter.getYearName(i),o=this.dateClass?this.dateClass(i,"multi-year"):void 0;return new C_(e,r,r,this._shouldEnableYear(e),o)}_shouldEnableYear(e){if(e==null||this.maxDate&&e>this._dateAdapter.getYear(this.maxDate)||this.minDate&&e{class t{_changeDetectorRef=u(ye);_dateFormats=u(xs,{optional:!0});_dateAdapter=u(Li,{optional:!0});_dir=u(Vt,{optional:!0});_rerenderSubscription=ke.EMPTY;_selectionKeyPressed;get activeDate(){return this._activeDate}set activeDate(e){let i=this._activeDate,r=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e))||this._dateAdapter.today();this._activeDate=this._dateAdapter.clampDate(r,this.minDate,this.maxDate),this._dateAdapter.getYear(i)!==this._dateAdapter.getYear(this._activeDate)&&this._init()}_activeDate;get selected(){return this._selected}set selected(e){e instanceof ua?this._selected=e:this._selected=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e)),this._setSelectedMonth(e)}_selected;get minDate(){return this._minDate}set minDate(e){this._minDate=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e))}_minDate;get maxDate(){return this._maxDate}set maxDate(e){this._maxDate=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e))}_maxDate;dateFilter;dateClass;selectedChange=new U;monthSelected=new U;activeDateChange=new U;_matCalendarBody;_months=he([]);_yearLabel=he("");_todayMonth=he(null);_selectedMonth=he(null);constructor(){this._activeDate=this._dateAdapter.today()}ngAfterContentInit(){this._rerenderSubscription=this._dateAdapter.localeChanges.pipe(He(null)).subscribe(()=>this._init())}ngOnDestroy(){this._rerenderSubscription.unsubscribe()}_monthSelected(e){let i=e.value,r=this._dateAdapter.createDate(this._dateAdapter.getYear(this.activeDate),i,1);this.monthSelected.emit(r);let o=this._getDateFromMonth(i);this.selectedChange.emit(o)}_updateActiveDate(e){let i=e.value,r=this._activeDate;this.activeDate=this._getDateFromMonth(i),this._dateAdapter.compareDate(r,this.activeDate)&&this.activeDateChange.emit(this.activeDate)}_handleCalendarBodyKeydown(e){let i=this._activeDate,r=this._isRtl();switch(e.keyCode){case 37:this.activeDate=this._dateAdapter.addCalendarMonths(this._activeDate,r?1:-1);break;case 39:this.activeDate=this._dateAdapter.addCalendarMonths(this._activeDate,r?-1:1);break;case 38:this.activeDate=this._dateAdapter.addCalendarMonths(this._activeDate,-4);break;case 40:this.activeDate=this._dateAdapter.addCalendarMonths(this._activeDate,4);break;case 36:this.activeDate=this._dateAdapter.addCalendarMonths(this._activeDate,-this._dateAdapter.getMonth(this._activeDate));break;case 35:this.activeDate=this._dateAdapter.addCalendarMonths(this._activeDate,11-this._dateAdapter.getMonth(this._activeDate));break;case 33:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,e.altKey?-10:-1);break;case 34:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,e.altKey?10:1);break;case 13:case 32:this._selectionKeyPressed=!0;break;default:return}this._dateAdapter.compareDate(i,this.activeDate)&&(this.activeDateChange.emit(this.activeDate),this._focusActiveCellAfterViewChecked()),e.preventDefault()}_handleCalendarBodyKeyup(e){(e.keyCode===32||e.keyCode===13)&&(this._selectionKeyPressed&&this._monthSelected({value:this._dateAdapter.getMonth(this._activeDate),event:e}),this._selectionKeyPressed=!1)}_init(){this._setSelectedMonth(this.selected),this._todayMonth.set(this._getMonthInCurrentYear(this._dateAdapter.today())),this._yearLabel.set(this._dateAdapter.getYearName(this.activeDate));let e=this._dateAdapter.getMonthNames("short");this._months.set([[0,1,2,3],[4,5,6,7],[8,9,10,11]].map(i=>i.map(r=>this._createCellForMonth(r,e[r])))),this._changeDetectorRef.markForCheck()}_focusActiveCell(){this._matCalendarBody._focusActiveCell()}_focusActiveCellAfterViewChecked(){this._matCalendarBody._scheduleFocusActiveCellAfterViewChecked()}_getMonthInCurrentYear(e){return e&&this._dateAdapter.getYear(e)==this._dateAdapter.getYear(this.activeDate)?this._dateAdapter.getMonth(e):null}_getDateFromMonth(e){let i=this._dateAdapter.createDate(this._dateAdapter.getYear(this.activeDate),e,1),r=this._dateAdapter.getNumDaysInMonth(i);return this._dateAdapter.createDate(this._dateAdapter.getYear(this.activeDate),e,Math.min(this._dateAdapter.getDate(this.activeDate),r))}_createCellForMonth(e,i){let r=this._dateAdapter.createDate(this._dateAdapter.getYear(this.activeDate),e,1),o=this._dateAdapter.format(r,this._dateFormats.display.monthYearA11yLabel),a=this.dateClass?this.dateClass(r,"year"):void 0;return new C_(e,i.toLocaleUpperCase(),o,this._shouldEnableMonth(e),a)}_shouldEnableMonth(e){let i=this._dateAdapter.getYear(this.activeDate);if(e==null||this._isYearAndMonthAfterMaxDate(i,e)||this._isYearAndMonthBeforeMinDate(i,e))return!1;if(!this.dateFilter)return!0;let r=this._dateAdapter.createDate(i,e,1);for(let o=r;this._dateAdapter.getMonth(o)==e;o=this._dateAdapter.addCalendarDays(o,1))if(this.dateFilter(o))return!0;return!1}_isYearAndMonthAfterMaxDate(e,i){if(this.maxDate){let r=this._dateAdapter.getYear(this.maxDate),o=this._dateAdapter.getMonth(this.maxDate);return e>r||e===r&&i>o}return!1}_isYearAndMonthBeforeMinDate(e,i){if(this.minDate){let r=this._dateAdapter.getYear(this.minDate),o=this._dateAdapter.getMonth(this.minDate);return e{class t{_intl=u(dp);calendar=u(nA);_dateAdapter=u(Li,{optional:!0});_dateFormats=u(xs,{optional:!0});_periodButtonText;_periodButtonDescription;_periodButtonLabel;_prevButtonLabel;_nextButtonLabel;constructor(){u(ut).load(Qr);let e=u(ye);this._updateLabels(),this.calendar.stateChanges.subscribe(()=>{this._updateLabels(),e.markForCheck()})}get periodButtonText(){return this._periodButtonText}get periodButtonDescription(){return this._periodButtonDescription}get periodButtonLabel(){return this._periodButtonLabel}get prevButtonLabel(){return this._prevButtonLabel}get nextButtonLabel(){return this._nextButtonLabel}currentPeriodClicked(){this.calendar.currentView=this.calendar.currentView=="month"?"multi-year":"month"}previousClicked(){this.previousEnabled()&&(this.calendar.activeDate=this.calendar.currentView=="month"?this._dateAdapter.addCalendarMonths(this.calendar.activeDate,-1):this._dateAdapter.addCalendarYears(this.calendar.activeDate,this.calendar.currentView=="year"?-1:-Io))}nextClicked(){this.nextEnabled()&&(this.calendar.activeDate=this.calendar.currentView=="month"?this._dateAdapter.addCalendarMonths(this.calendar.activeDate,1):this._dateAdapter.addCalendarYears(this.calendar.activeDate,this.calendar.currentView=="year"?1:Io))}previousEnabled(){return this.calendar.minDate?!this.calendar.minDate||!this._isSameView(this.calendar.activeDate,this.calendar.minDate):!0}nextEnabled(){return!this.calendar.maxDate||!this._isSameView(this.calendar.activeDate,this.calendar.maxDate)}_updateLabels(){let e=this.calendar,i=this._intl,r=this._dateAdapter;e.currentView==="month"?(this._periodButtonText=r.format(e.activeDate,this._dateFormats.display.monthYearLabel).toLocaleUpperCase(),this._periodButtonDescription=r.format(e.activeDate,this._dateFormats.display.monthYearLabel).toLocaleUpperCase(),this._periodButtonLabel=i.switchToMultiYearViewLabel,this._prevButtonLabel=i.prevMonthLabel,this._nextButtonLabel=i.nextMonthLabel):e.currentView==="year"?(this._periodButtonText=r.getYearName(e.activeDate),this._periodButtonDescription=r.getYearName(e.activeDate),this._periodButtonLabel=i.switchToMonthViewLabel,this._prevButtonLabel=i.prevYearLabel,this._nextButtonLabel=i.nextYearLabel):(this._periodButtonText=i.formatYearRange(...this._formatMinAndMaxYearLabels()),this._periodButtonDescription=i.formatYearRangeLabel(...this._formatMinAndMaxYearLabels()),this._periodButtonLabel=i.switchToMonthViewLabel,this._prevButtonLabel=i.prevMultiYearLabel,this._nextButtonLabel=i.nextMultiYearLabel)}_isSameView(e,i){return this.calendar.currentView=="month"?this._dateAdapter.getYear(e)==this._dateAdapter.getYear(i)&&this._dateAdapter.getMonth(e)==this._dateAdapter.getMonth(i):this.calendar.currentView=="year"?this._dateAdapter.getYear(e)==this._dateAdapter.getYear(i):RU(this._dateAdapter,e,i,this.calendar.minDate,this.calendar.maxDate)}_formatMinAndMaxYearLabels(){let i=this._dateAdapter.getYear(this.calendar.activeDate)-x_(this._dateAdapter,this.calendar.activeDate,this.calendar.minDate,this.calendar.maxDate),r=i+Io-1,o=this._dateAdapter.getYearName(this._dateAdapter.createDate(i,0,1)),a=this._dateAdapter.getYearName(this._dateAdapter.createDate(r,0,1));return[o,a]}_periodButtonLabelId=u(Ze).getId("mat-calendar-period-label-");static \u0275fac=function(i){return new(i||t)};static \u0275cmp=E({type:t,selectors:[["mat-calendar-header"]],exportAs:["matCalendarHeader"],ngContentSelectors:Nbe,decls:17,vars:13,consts:[[1,"mat-calendar-header"],[1,"mat-calendar-controls"],["aria-live","polite",1,"cdk-visually-hidden",3,"id"],["matButton","","type","button",1,"mat-calendar-period-button",3,"click"],["aria-hidden","true"],["viewBox","0 0 10 5","focusable","false","aria-hidden","true",1,"mat-calendar-arrow"],["points","0,0 5,5 10,0"],[1,"mat-calendar-spacer"],["matIconButton","","type","button","disabledInteractive","",1,"mat-calendar-previous-button",3,"click","disabled","matTooltip"],["viewBox","0 0 24 24","focusable","false","aria-hidden","true"],["d","M15.41 7.41L14 6l-6 6 6 6 1.41-1.41L10.83 12z"],["matIconButton","","type","button","disabledInteractive","",1,"mat-calendar-next-button",3,"click","disabled","matTooltip"],["d","M10 6L8.59 7.41 13.17 12l-4.58 4.59L10 18l6-6z"]],template:function(i,r){i&1&&(Me(),h(0,"div",0)(1,"div",1)(2,"span",2),_(3),p(),h(4,"button",3),S("click",function(){return r.currentPeriodClicked()}),h(5,"span",4),_(6),p(),Gt(),h(7,"svg",5),k(8,"polygon",6),p()(),jo(),k(9,"div",7),oe(10),h(11,"button",8),S("click",function(){return r.previousClicked()}),Gt(),h(12,"svg",9),k(13,"path",10),p()(),jo(),h(14,"button",11),S("click",function(){return r.nextClicked()}),Gt(),h(15,"svg",9),k(16,"path",12),p()()()()),i&2&&(g(2),y("id",r._periodButtonLabelId),g(),H(r.periodButtonDescription),g(),X("aria-label",r.periodButtonLabel)("aria-describedby",r._periodButtonLabelId),g(2),H(r.periodButtonText),g(),G("mat-calendar-invert",r.calendar.currentView!=="month"),g(4),y("disabled",!r.previousEnabled())("matTooltip",r.prevButtonLabel),X("aria-label",r.prevButtonLabel),g(3),y("disabled",!r.nextEnabled())("matTooltip",r.nextButtonLabel),X("aria-label",r.nextButtonLabel))},dependencies:[kt,ti,Eo],encapsulation:2,changeDetection:0})}return t})(),nA=(()=>{class t{_dateAdapter=u(Li,{optional:!0});_dateFormats=u(xs,{optional:!0});_changeDetectorRef=u(ye);_elementRef=u(q);headerComponent;_calendarHeaderPortal;_intlChanges;_moveFocusOnNextTick=!1;get startAt(){return this._startAt}set startAt(e){this._startAt=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e))}_startAt;startView="month";get selected(){return this._selected}set selected(e){e instanceof ua?this._selected=e:this._selected=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e))}_selected;get minDate(){return this._minDate}set minDate(e){this._minDate=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e))}_minDate;get maxDate(){return this._maxDate}set maxDate(e){this._maxDate=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e))}_maxDate;dateFilter;dateClass;comparisonStart;comparisonEnd;startDateAccessibleName;endDateAccessibleName;selectedChange=new U;yearSelected=new U;monthSelected=new U;viewChanged=new U(!0);_userSelection=new U;_userDragDrop=new U;monthView;yearView;multiYearView;get activeDate(){return this._clampedActiveDate}set activeDate(e){this._clampedActiveDate=this._dateAdapter.clampDate(e,this.minDate,this.maxDate),this.stateChanges.next(),this._changeDetectorRef.markForCheck()}_clampedActiveDate;get currentView(){return this._currentView}set currentView(e){let i=this._currentView!==e?e:null;this._currentView=e,this._moveFocusOnNextTick=!0,this._changeDetectorRef.markForCheck(),i&&(this.stateChanges.next(),this.viewChanged.emit(i))}_currentView;_activeDrag=null;stateChanges=new z;constructor(){this._intlChanges=u(dp).changes.subscribe(()=>{this._changeDetectorRef.markForCheck(),this.stateChanges.next()})}ngAfterContentInit(){this._calendarHeaderPortal=new Zr(this.headerComponent||FU),this.activeDate=this.startAt||this._dateAdapter.today(),this._currentView=this.startView}ngAfterViewChecked(){this._moveFocusOnNextTick&&(this._moveFocusOnNextTick=!1,this.focusActiveCell())}ngOnDestroy(){this._intlChanges.unsubscribe(),this.stateChanges.complete()}ngOnChanges(e){let i=e.minDate&&!this._dateAdapter.sameDate(e.minDate.previousValue,e.minDate.currentValue)?e.minDate:void 0,r=e.maxDate&&!this._dateAdapter.sameDate(e.maxDate.previousValue,e.maxDate.currentValue)?e.maxDate:void 0,o=i||r||e.dateFilter;if(o&&!o.firstChange){let a=this._getCurrentViewComponent();a&&(this._elementRef.nativeElement.contains(_o())&&(this._moveFocusOnNextTick=!0),this._changeDetectorRef.detectChanges(),a._init())}this.stateChanges.next()}focusActiveCell(){this._getCurrentViewComponent()._focusActiveCell(!1)}updateTodaysDate(){this._getCurrentViewComponent()._init()}_dateSelected(e){let i=e.value;(this.selected instanceof ua||i&&!this._dateAdapter.sameDate(i,this.selected))&&this.selectedChange.emit(i),this._userSelection.emit(e)}_yearSelectedInMultiYearView(e){this.yearSelected.emit(e)}_monthSelectedInYearView(e){this.monthSelected.emit(e)}_goToDateInView(e,i){this.activeDate=e,this.currentView=i}_dragStarted(e){this._activeDrag=e}_dragEnded(e){this._activeDrag&&(e.value&&this._userDragDrop.emit(e),this._activeDrag=null)}_getCurrentViewComponent(){return this.monthView||this.yearView||this.multiYearView}static \u0275fac=function(i){return new(i||t)};static \u0275cmp=E({type:t,selectors:[["mat-calendar"]],viewQuery:function(i,r){if(i&1&&(ie(MU,5),ie(SU,5),ie(kU,5)),i&2){let o;B(o=j())&&(r.monthView=o.first),B(o=j())&&(r.yearView=o.first),B(o=j())&&(r.multiYearView=o.first)}},hostAttrs:[1,"mat-calendar"],inputs:{headerComponent:"headerComponent",startAt:"startAt",startView:"startView",selected:"selected",minDate:"minDate",maxDate:"maxDate",dateFilter:"dateFilter",dateClass:"dateClass",comparisonStart:"comparisonStart",comparisonEnd:"comparisonEnd",startDateAccessibleName:"startDateAccessibleName",endDateAccessibleName:"endDateAccessibleName"},outputs:{selectedChange:"selectedChange",yearSelected:"yearSelected",monthSelected:"monthSelected",viewChanged:"viewChanged",_userSelection:"_userSelection",_userDragDrop:"_userDragDrop"},exportAs:["matCalendar"],features:[Ce([AU]),Ae],decls:5,vars:2,consts:[[3,"cdkPortalOutlet"],["cdkMonitorSubtreeFocus","","tabindex","-1",1,"mat-calendar-content"],[3,"activeDate","selected","dateFilter","maxDate","minDate","dateClass","comparisonStart","comparisonEnd","startDateAccessibleName","endDateAccessibleName","activeDrag"],[3,"activeDate","selected","dateFilter","maxDate","minDate","dateClass"],[3,"activeDateChange","_userSelection","dragStarted","dragEnded","activeDate","selected","dateFilter","maxDate","minDate","dateClass","comparisonStart","comparisonEnd","startDateAccessibleName","endDateAccessibleName","activeDrag"],[3,"activeDateChange","monthSelected","selectedChange","activeDate","selected","dateFilter","maxDate","minDate","dateClass"],[3,"activeDateChange","yearSelected","selectedChange","activeDate","selected","dateFilter","maxDate","minDate","dateClass"]],template:function(i,r){if(i&1&&(R(0,Lbe,0,0,"ng-template",0),h(1,"div",1),N(2,Vbe,1,11,"mat-month-view",2)(3,Bbe,1,6,"mat-year-view",3)(4,jbe,1,6,"mat-multi-year-view",3),p()),i&2){let o;y("cdkPortalOutlet",r._calendarHeaderPortal),g(2),L((o=r.currentView)==="month"?2:o==="year"?3:o==="multi-year"?4:-1)}},dependencies:[yr,$f,MU,SU,kU],styles:[`.mat-calendar{display:block;line-height:normal;font-family:var(--mat-datepicker-calendar-text-font, var(--mat-sys-body-medium-font));font-size:var(--mat-datepicker-calendar-text-size, var(--mat-sys-body-medium-size))}.mat-calendar-header{padding:8px 8px 0 8px}.mat-calendar-content{padding:0 8px 8px 8px;outline:none}.mat-calendar-controls{display:flex;align-items:center;margin:5% calc(4.7142857143% - 16px)}.mat-calendar-spacer{flex:1 1 auto}.mat-calendar-period-button{min-width:0;margin:0 8px;font-size:var(--mat-datepicker-calendar-period-button-text-size, var(--mat-sys-title-small-size));font-weight:var(--mat-datepicker-calendar-period-button-text-weight, var(--mat-sys-title-small-weight));--mat-button-text-label-text-color: var(--mat-datepicker-calendar-period-button-text-color, var(--mat-sys-on-surface-variant))}.mat-calendar-arrow{display:inline-block;width:10px;height:5px;margin:0 0 0 5px;vertical-align:middle;fill:var(--mat-datepicker-calendar-period-button-icon-color, var(--mat-sys-on-surface-variant))}.mat-calendar-arrow.mat-calendar-invert{transform:rotate(180deg)}[dir=rtl] .mat-calendar-arrow{margin:0 5px 0 0}@media(forced-colors: active){.mat-calendar-arrow{fill:CanvasText}}.mat-datepicker-content .mat-calendar-previous-button:not(.mat-mdc-button-disabled),.mat-datepicker-content .mat-calendar-next-button:not(.mat-mdc-button-disabled){color:var(--mat-datepicker-calendar-navigation-button-icon-color, var(--mat-sys-on-surface-variant))}[dir=rtl] .mat-calendar-previous-button,[dir=rtl] .mat-calendar-next-button{transform:rotate(180deg)}.mat-calendar-table{border-spacing:0;border-collapse:collapse;width:100%}.mat-calendar-table-header th{text-align:center;padding:0 0 8px 0;color:var(--mat-datepicker-calendar-header-text-color, var(--mat-sys-on-surface-variant));font-size:var(--mat-datepicker-calendar-header-text-size, var(--mat-sys-title-small-size));font-weight:var(--mat-datepicker-calendar-header-text-weight, var(--mat-sys-title-small-weight))}.mat-calendar-table-header-divider{position:relative;height:1px}.mat-calendar-table-header-divider::after{content:"";position:absolute;top:0;left:-8px;right:-8px;height:1px;background:var(--mat-datepicker-calendar-header-divider-color, transparent)}.mat-calendar-body-cell-content::before{margin:calc(calc(var(--mat-focus-indicator-border-width, 3px) + 3px)*-1)}.mat-calendar-body-cell:focus .mat-focus-indicator::before{content:""} -`],encapsulation:2,changeDetection:0})}return t})(),NU=new T("mat-datepicker-scroll-strategy",{providedIn:"root",factory:()=>{let t=u(de);return()=>wn(t)}});function Xbe(t){let n=u(de);return()=>wn(n)}var Jbe={provide:NU,deps:[],useFactory:Xbe},LU=(()=>{class t{_elementRef=u(q);_animationsDisabled=Ye();_changeDetectorRef=u(ye);_globalModel=u(w_);_dateAdapter=u(Li);_ngZone=u(ae);_rangeSelectionStrategy=u(OU,{optional:!0});_stateChanges;_model;_eventCleanups;_animationFallback;_calendar;color;datepicker;comparisonStart;comparisonEnd;startDateAccessibleName;endDateAccessibleName;_isAbove;_animationDone=new z;_isAnimating=!1;_closeButtonText;_closeButtonFocused;_actionsPortal=null;_dialogLabelId;constructor(){if(u(ut).load(Qr),this._closeButtonText=u(dp).closeCalendarLabel,!this._animationsDisabled){let e=this._elementRef.nativeElement,i=u(je);this._eventCleanups=this._ngZone.runOutsideAngular(()=>[i.listen(e,"animationstart",this._handleAnimationEvent),i.listen(e,"animationend",this._handleAnimationEvent),i.listen(e,"animationcancel",this._handleAnimationEvent)])}}ngAfterViewInit(){this._stateChanges=this.datepicker.stateChanges.subscribe(()=>{this._changeDetectorRef.markForCheck()}),this._calendar.focusActiveCell()}ngOnDestroy(){clearTimeout(this._animationFallback),this._eventCleanups?.forEach(e=>e()),this._stateChanges?.unsubscribe(),this._animationDone.complete()}_handleUserSelection(e){let i=this._model.selection,r=e.value,o=i instanceof ua;if(o&&this._rangeSelectionStrategy){let a=this._rangeSelectionStrategy.selectionFinished(r,i,e.event);this._model.updateSelection(a,this)}else r&&(o||!this._dateAdapter.sameDate(r,i))&&this._model.add(r);(!this._model||this._model.isComplete())&&!this._actionsPortal&&this.datepicker.close()}_handleUserDragDrop(e){this._model.updateSelection(e.value,this)}_startExitAnimation(){this._elementRef.nativeElement.classList.add("mat-datepicker-content-exit"),this._animationsDisabled?this._animationDone.next():(clearTimeout(this._animationFallback),this._animationFallback=setTimeout(()=>{this._isAnimating||this._animationDone.next()},200))}_handleAnimationEvent=e=>{let i=this._elementRef.nativeElement;e.target!==i||!e.animationName.startsWith("_mat-datepicker-content")||(clearTimeout(this._animationFallback),this._isAnimating=e.type==="animationstart",i.classList.toggle("mat-datepicker-content-animating",this._isAnimating),this._isAnimating||this._animationDone.next())};_getSelected(){return this._model.selection}_applyPendingSelection(){this._model!==this._globalModel&&this._globalModel.updateSelection(this._model.selection,this)}_assignActions(e,i){this._model=e?this._globalModel.clone():this._globalModel,this._actionsPortal=e,i&&this._changeDetectorRef.detectChanges()}static \u0275fac=function(i){return new(i||t)};static \u0275cmp=E({type:t,selectors:[["mat-datepicker-content"]],viewQuery:function(i,r){if(i&1&&ie(nA,5),i&2){let o;B(o=j())&&(r._calendar=o.first)}},hostAttrs:[1,"mat-datepicker-content"],hostVars:6,hostBindings:function(i,r){i&2&&(it(r.color?"mat-"+r.color:""),G("mat-datepicker-content-touch",r.datepicker.touchUi)("mat-datepicker-content-animations-enabled",!r._animationsDisabled))},inputs:{color:"color"},exportAs:["matDatepickerContent"],decls:5,vars:26,consts:[["cdkTrapFocus","","role","dialog",1,"mat-datepicker-content-container"],[3,"yearSelected","monthSelected","viewChanged","_userSelection","_userDragDrop","id","startAt","startView","minDate","maxDate","dateFilter","headerComponent","selected","dateClass","comparisonStart","comparisonEnd","startDateAccessibleName","endDateAccessibleName"],[3,"cdkPortalOutlet"],["type","button","matButton","elevated",1,"mat-datepicker-close-button",3,"focus","blur","click","color"]],template:function(i,r){i&1&&(h(0,"div",0)(1,"mat-calendar",1),S("yearSelected",function(a){return r.datepicker._selectYear(a)})("monthSelected",function(a){return r.datepicker._selectMonth(a)})("viewChanged",function(a){return r.datepicker._viewChanged(a)})("_userSelection",function(a){return r._handleUserSelection(a)})("_userDragDrop",function(a){return r._handleUserDragDrop(a)}),p(),R(2,Hbe,0,0,"ng-template",2),h(3,"button",3),S("focus",function(){return r._closeButtonFocused=!0})("blur",function(){return r._closeButtonFocused=!1})("click",function(){return r.datepicker.close()}),_(4),p()()),i&2&&(G("mat-datepicker-content-container-with-custom-header",r.datepicker.calendarHeaderComponent)("mat-datepicker-content-container-with-actions",r._actionsPortal),X("aria-modal",!0)("aria-labelledby",r._dialogLabelId??void 0),g(),it(r.datepicker.panelClass),y("id",r.datepicker.id)("startAt",r.datepicker.startAt)("startView",r.datepicker.startView)("minDate",r.datepicker._getMinDate())("maxDate",r.datepicker._getMaxDate())("dateFilter",r.datepicker._getDateFilter())("headerComponent",r.datepicker.calendarHeaderComponent)("selected",r._getSelected())("dateClass",r.datepicker.dateClass)("comparisonStart",r.comparisonStart)("comparisonEnd",r.comparisonEnd)("startDateAccessibleName",r.startDateAccessibleName)("endDateAccessibleName",r.endDateAccessibleName),g(),y("cdkPortalOutlet",r._actionsPortal),g(),G("cdk-visually-hidden",!r._closeButtonFocused),y("color",r.color||"primary"),g(),H(r._closeButtonText))},dependencies:[vk,nA,yr,kt],styles:[`@keyframes _mat-datepicker-content-dropdown-enter{from{opacity:0;transform:scaleY(0.8)}to{opacity:1;transform:none}}@keyframes _mat-datepicker-content-dialog-enter{from{opacity:0;transform:scale(0.8)}to{opacity:1;transform:none}}@keyframes _mat-datepicker-content-exit{from{opacity:1}to{opacity:0}}.mat-datepicker-content{display:block;background-color:var(--mat-datepicker-calendar-container-background-color, var(--mat-sys-surface-container-high));color:var(--mat-datepicker-calendar-container-text-color, var(--mat-sys-on-surface));box-shadow:var(--mat-datepicker-calendar-container-elevation-shadow, 0px 0px 0px 0px rgba(0, 0, 0, 0.2), 0px 0px 0px 0px rgba(0, 0, 0, 0.14), 0px 0px 0px 0px rgba(0, 0, 0, 0.12));border-radius:var(--mat-datepicker-calendar-container-shape, var(--mat-sys-corner-large))}.mat-datepicker-content.mat-datepicker-content-animations-enabled{animation:_mat-datepicker-content-dropdown-enter 120ms cubic-bezier(0, 0, 0.2, 1)}.mat-datepicker-content .mat-calendar{width:296px;height:354px}.mat-datepicker-content .mat-datepicker-content-container-with-custom-header .mat-calendar{height:auto}.mat-datepicker-content .mat-datepicker-close-button{position:absolute;top:100%;left:0;margin-top:8px}.mat-datepicker-content-animating .mat-datepicker-content .mat-datepicker-close-button{display:none}.mat-datepicker-content-container{display:flex;flex-direction:column;justify-content:space-between}.mat-datepicker-content-touch{display:block;max-height:80vh;box-shadow:var(--mat-datepicker-calendar-container-touch-elevation-shadow, 0px 0px 0px 0px rgba(0, 0, 0, 0.2), 0px 0px 0px 0px rgba(0, 0, 0, 0.14), 0px 0px 0px 0px rgba(0, 0, 0, 0.12));border-radius:var(--mat-datepicker-calendar-container-touch-shape, var(--mat-sys-corner-extra-large));position:relative;overflow:visible}.mat-datepicker-content-touch.mat-datepicker-content-animations-enabled{animation:_mat-datepicker-content-dialog-enter 150ms cubic-bezier(0, 0, 0.2, 1)}.mat-datepicker-content-touch .mat-datepicker-content-container{min-height:312px;max-height:788px;min-width:250px;max-width:750px}.mat-datepicker-content-touch .mat-calendar{width:100%;height:auto}.mat-datepicker-content-exit.mat-datepicker-content-animations-enabled{animation:_mat-datepicker-content-exit 100ms linear}@media all and (orientation: landscape){.mat-datepicker-content-touch .mat-datepicker-content-container{width:64vh;height:80vh}}@media all and (orientation: portrait){.mat-datepicker-content-touch .mat-datepicker-content-container{width:80vw;height:100vw}.mat-datepicker-content-touch .mat-datepicker-content-container-with-actions{height:115vw}} -`],encapsulation:2,changeDetection:0})}return t})(),TU=(()=>{class t{_injector=u(de);_viewContainerRef=u(nt);_dateAdapter=u(Li,{optional:!0});_dir=u(Vt,{optional:!0});_model=u(w_);_animationsDisabled=Ye();_scrollStrategy=u(NU);_inputStateChanges=ke.EMPTY;_document=u(ge);calendarHeaderComponent;get startAt(){return this._startAt||(this.datepickerInput?this.datepickerInput.getStartValue():null)}set startAt(e){this._startAt=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e))}_startAt;startView="month";get color(){return this._color||(this.datepickerInput?this.datepickerInput.getThemePalette():void 0)}set color(e){this._color=e}_color;touchUi=!1;get disabled(){return this._disabled===void 0&&this.datepickerInput?this.datepickerInput.disabled:!!this._disabled}set disabled(e){e!==this._disabled&&(this._disabled=e,this.stateChanges.next(void 0))}_disabled;xPosition="start";yPosition="below";restoreFocus=!0;yearSelected=new U;monthSelected=new U;viewChanged=new U(!0);dateClass;openedStream=new U;closedStream=new U;get panelClass(){return this._panelClass}set panelClass(e){this._panelClass=UL(e)}_panelClass;get opened(){return this._opened}set opened(e){e?this.open():this.close()}_opened=!1;id=u(Ze).getId("mat-datepicker-");_getMinDate(){return this.datepickerInput&&this.datepickerInput.min}_getMaxDate(){return this.datepickerInput&&this.datepickerInput.max}_getDateFilter(){return this.datepickerInput&&this.datepickerInput.dateFilter}_overlayRef;_componentRef;_focusedElementBeforeOpen=null;_backdropHarnessClass=`${this.id}-backdrop`;_actionsPortal;datepickerInput;stateChanges=new z;_changeDetectorRef=u(ye);constructor(){this._dateAdapter,this._model.selectionChanged.subscribe(()=>{this._changeDetectorRef.markForCheck()})}ngOnChanges(e){let i=e.xPosition||e.yPosition;if(i&&!i.firstChange&&this._overlayRef){let r=this._overlayRef.getConfig().positionStrategy;r instanceof _h&&(this._setConnectedPositions(r),this.opened&&this._overlayRef.updatePosition())}this.stateChanges.next(void 0)}ngOnDestroy(){this._destroyOverlay(),this.close(),this._inputStateChanges.unsubscribe(),this.stateChanges.complete()}select(e){this._model.add(e)}_selectYear(e){this.yearSelected.emit(e)}_selectMonth(e){this.monthSelected.emit(e)}_viewChanged(e){this.viewChanged.emit(e)}registerInput(e){return this.datepickerInput,this._inputStateChanges.unsubscribe(),this.datepickerInput=e,this._inputStateChanges=e.stateChanges.subscribe(()=>this.stateChanges.next(void 0)),this._model}registerActions(e){this._actionsPortal,this._actionsPortal=e,this._componentRef?.instance._assignActions(e,!0)}removeActions(e){e===this._actionsPortal&&(this._actionsPortal=null,this._componentRef?.instance._assignActions(null,!0))}open(){this._opened||this.disabled||this._componentRef?.instance._isAnimating||(this.datepickerInput,this._focusedElementBeforeOpen=_o(),this._openOverlay(),this._opened=!0,this.openedStream.emit())}close(){if(!this._opened||this._componentRef?.instance._isAnimating)return;let e=this.restoreFocus&&this._focusedElementBeforeOpen&&typeof this._focusedElementBeforeOpen.focus=="function",i=()=>{this._opened&&(this._opened=!1,this.closedStream.emit())};if(this._componentRef){let{instance:r,location:o}=this._componentRef;r._animationDone.pipe(lt(1)).subscribe(()=>{let a=this._document.activeElement;e&&(!a||a===this._document.activeElement||o.nativeElement.contains(a))&&this._focusedElementBeforeOpen.focus(),this._focusedElementBeforeOpen=null,this._destroyOverlay()}),r._startExitAnimation()}e?setTimeout(i):i()}_applyPendingSelection(){this._componentRef?.instance?._applyPendingSelection()}_forwardContentValues(e){e.datepicker=this,e.color=this.color,e._dialogLabelId=this.datepickerInput.getOverlayLabelId(),e._assignActions(this._actionsPortal,!1)}_openOverlay(){this._destroyOverlay();let e=this.touchUi,i=new Zr(LU,this._viewContainerRef),r=this._overlayRef=Nr(this._injector,new Fr({positionStrategy:e?this._getDialogStrategy():this._getDropdownStrategy(),hasBackdrop:!0,backdropClass:[e?"cdk-overlay-dark-backdrop":"mat-overlay-transparent-backdrop",this._backdropHarnessClass],direction:this._dir||"ltr",scrollStrategy:e?uc(this._injector):this._scrollStrategy(),panelClass:`mat-datepicker-${e?"dialog":"popup"}`,disableAnimations:this._animationsDisabled}));this._getCloseStream(r).subscribe(o=>{o&&o.preventDefault(),this.close()}),r.keydownEvents().subscribe(o=>{let a=o.keyCode;(a===38||a===40||a===37||a===39||a===33||a===34)&&o.preventDefault()}),this._componentRef=r.attach(i),this._forwardContentValues(this._componentRef.instance),e||pt(()=>{r.updatePosition()},{injector:this._injector})}_destroyOverlay(){this._overlayRef&&(this._overlayRef.dispose(),this._overlayRef=this._componentRef=null)}_getDialogStrategy(){return Ds(this._injector).centerHorizontally().centerVertically()}_getDropdownStrategy(){let e=Fa(this._injector,this.datepickerInput.getConnectedOverlayOrigin()).withTransformOriginOn(".mat-datepicker-content").withFlexibleDimensions(!1).withViewportMargin(8).withLockedPosition();return this._setConnectedPositions(e)}_setConnectedPositions(e){let i=this.xPosition==="end"?"end":"start",r=i==="start"?"end":"start",o=this.yPosition==="above"?"bottom":"top",a=o==="top"?"bottom":"top";return e.withPositions([{originX:i,originY:a,overlayX:i,overlayY:o},{originX:i,originY:o,overlayX:i,overlayY:a},{originX:r,originY:a,overlayX:r,overlayY:o},{originX:r,originY:o,overlayX:r,overlayY:a}])}_getCloseStream(e){let i=["ctrlKey","shiftKey","metaKey"];return Je(e.backdropClick(),e.detachments(),e.keydownEvents().pipe(ce(r=>r.keyCode===27&&!Ft(r)||this.datepickerInput&&Ft(r,"altKey")&&r.keyCode===38&&i.every(o=>!Ft(r,o)))))}static \u0275fac=function(i){return new(i||t)};static \u0275dir=F({type:t,inputs:{calendarHeaderComponent:"calendarHeaderComponent",startAt:"startAt",startView:"startView",color:"color",touchUi:[2,"touchUi","touchUi",V],disabled:[2,"disabled","disabled",V],xPosition:"xPosition",yPosition:"yPosition",restoreFocus:[2,"restoreFocus","restoreFocus",V],dateClass:"dateClass",panelClass:"panelClass",opened:[2,"opened","opened",V]},outputs:{yearSelected:"yearSelected",monthSelected:"monthSelected",viewChanged:"viewChanged",openedStream:"opened",closedStream:"closed"},features:[Ae]})}return t})(),VU=(()=>{class t extends TU{static \u0275fac=(()=>{let e;return function(r){return(e||(e=fe(t)))(r||t)}})();static \u0275cmp=E({type:t,selectors:[["mat-datepicker"]],exportAs:["matDatepicker"],features:[Ce([AU,{provide:TU,useExisting:t}]),le],decls:0,vars:0,template:function(i,r){},encapsulation:2,changeDetection:0})}return t})(),lp=class{target;targetElement;value;constructor(n,e){this.target=n,this.targetElement=e,this.value=this.target.value}},eve=(()=>{class t{_elementRef=u(q);_dateAdapter=u(Li,{optional:!0});_dateFormats=u(xs,{optional:!0});_isInitialized;get value(){return this._model?this._getValueFromModel(this._model.selection):this._pendingValue}set value(e){this._assignValueProgrammatically(e)}_model;get disabled(){return!!this._disabled||this._parentDisabled()}set disabled(e){let i=e,r=this._elementRef.nativeElement;this._disabled!==i&&(this._disabled=i,this.stateChanges.next(void 0)),i&&this._isInitialized&&r.blur&&r.blur()}_disabled;dateChange=new U;dateInput=new U;stateChanges=new z;_onTouched=()=>{};_validatorOnChange=()=>{};_cvaOnChange=()=>{};_valueChangesSubscription=ke.EMPTY;_localeSubscription=ke.EMPTY;_pendingValue;_parseValidator=()=>this._lastValueValid?null:{matDatepickerParse:{text:this._elementRef.nativeElement.value}};_filterValidator=e=>{let i=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e.value));return!i||this._matchesFilter(i)?null:{matDatepickerFilter:!0}};_minValidator=e=>{let i=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e.value)),r=this._getMinDate();return!r||!i||this._dateAdapter.compareDate(r,i)<=0?null:{matDatepickerMin:{min:r,actual:i}}};_maxValidator=e=>{let i=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e.value)),r=this._getMaxDate();return!r||!i||this._dateAdapter.compareDate(r,i)>=0?null:{matDatepickerMax:{max:r,actual:i}}};_getValidators(){return[this._parseValidator,this._minValidator,this._maxValidator,this._filterValidator]}_registerModel(e){this._model=e,this._valueChangesSubscription.unsubscribe(),this._pendingValue&&this._assignValue(this._pendingValue),this._valueChangesSubscription=this._model.selectionChanged.subscribe(i=>{if(this._shouldHandleChangeEvent(i)){let r=this._getValueFromModel(i.selection);this._lastValueValid=this._isValidValue(r),this._cvaOnChange(r),this._onTouched(),this._formatValue(r),this.dateInput.emit(new lp(this,this._elementRef.nativeElement)),this.dateChange.emit(new lp(this,this._elementRef.nativeElement))}})}_lastValueValid=!1;constructor(){this._localeSubscription=this._dateAdapter.localeChanges.subscribe(()=>{this._assignValueProgrammatically(this.value)})}ngAfterViewInit(){this._isInitialized=!0}ngOnChanges(e){tve(e,this._dateAdapter)&&this.stateChanges.next(void 0)}ngOnDestroy(){this._valueChangesSubscription.unsubscribe(),this._localeSubscription.unsubscribe(),this.stateChanges.complete()}registerOnValidatorChange(e){this._validatorOnChange=e}validate(e){return this._validator?this._validator(e):null}writeValue(e){this._assignValueProgrammatically(e)}registerOnChange(e){this._cvaOnChange=e}registerOnTouched(e){this._onTouched=e}setDisabledState(e){this.disabled=e}_onKeydown(e){let i=["ctrlKey","shiftKey","metaKey"];Ft(e,"altKey")&&e.keyCode===40&&i.every(o=>!Ft(e,o))&&!this._elementRef.nativeElement.readOnly&&(this._openPopup(),e.preventDefault())}_onInput(e){let i=e.target.value,r=this._lastValueValid,o=this._dateAdapter.parse(i,this._dateFormats.parse.dateInput);this._lastValueValid=this._isValidValue(o),o=this._dateAdapter.getValidDateOrNull(o);let a=!this._dateAdapter.sameDate(o,this.value);!o||a?this._cvaOnChange(o):(i&&!this.value&&this._cvaOnChange(o),r!==this._lastValueValid&&this._validatorOnChange()),a&&(this._assignValue(o),this.dateInput.emit(new lp(this,this._elementRef.nativeElement)))}_onChange(){this.dateChange.emit(new lp(this,this._elementRef.nativeElement))}_onBlur(){this.value&&this._formatValue(this.value),this._onTouched()}_formatValue(e){this._elementRef.nativeElement.value=e!=null?this._dateAdapter.format(e,this._dateFormats.display.dateInput):""}_assignValue(e){this._model?(this._assignValueToModel(e),this._pendingValue=null):this._pendingValue=e}_isValidValue(e){return!e||this._dateAdapter.isValid(e)}_parentDisabled(){return!1}_assignValueProgrammatically(e){e=this._dateAdapter.deserialize(e),this._lastValueValid=this._isValidValue(e),e=this._dateAdapter.getValidDateOrNull(e),this._assignValue(e),this._formatValue(e)}_matchesFilter(e){let i=this._getDateFilter();return!i||i(e)}static \u0275fac=function(i){return new(i||t)};static \u0275dir=F({type:t,inputs:{value:"value",disabled:[2,"disabled","disabled",V]},outputs:{dateChange:"dateChange",dateInput:"dateInput"},features:[Ae]})}return t})();function tve(t,n){let e=Object.keys(t);for(let i of e){let{previousValue:r,currentValue:o}=t[i];if(n.isDateInstance(r)&&n.isDateInstance(o)){if(!n.sameDate(r,o))return!0}else return!0}return!1}var ive={provide:tr,useExisting:Kt(()=>Cw),multi:!0},nve={provide:ea,useExisting:Kt(()=>Cw),multi:!0},Cw=(()=>{class t extends eve{_formField=u(Xo,{optional:!0});_closedSubscription=ke.EMPTY;_openedSubscription=ke.EMPTY;set matDatepicker(e){e&&(this._datepicker=e,this._ariaOwns.set(e.opened?e.id:null),this._closedSubscription=e.closedStream.subscribe(()=>{this._onTouched(),this._ariaOwns.set(null)}),this._openedSubscription=e.openedStream.subscribe(()=>{this._ariaOwns.set(e.id)}),this._registerModel(e.registerInput(this)))}_datepicker;_ariaOwns=he(null);get min(){return this._min}set min(e){let i=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e));this._dateAdapter.sameDate(i,this._min)||(this._min=i,this._validatorOnChange())}_min;get max(){return this._max}set max(e){let i=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e));this._dateAdapter.sameDate(i,this._max)||(this._max=i,this._validatorOnChange())}_max;get dateFilter(){return this._dateFilter}set dateFilter(e){let i=this._matchesFilter(this.value);this._dateFilter=e,this._matchesFilter(this.value)!==i&&this._validatorOnChange()}_dateFilter;_validator;constructor(){super(),this._validator=Le.compose(super._getValidators())}getConnectedOverlayOrigin(){return this._formField?this._formField.getConnectedOverlayOrigin():this._elementRef}getOverlayLabelId(){return this._formField?this._formField.getLabelId():this._elementRef.nativeElement.getAttribute("aria-labelledby")}getThemePalette(){return this._formField?this._formField.color:void 0}getStartValue(){return this.value}ngOnDestroy(){super.ngOnDestroy(),this._closedSubscription.unsubscribe(),this._openedSubscription.unsubscribe()}_openPopup(){this._datepicker&&this._datepicker.open()}_getValueFromModel(e){return e}_assignValueToModel(e){this._model&&this._model.updateSelection(e,this)}_getMinDate(){return this._min}_getMaxDate(){return this._max}_getDateFilter(){return this._dateFilter}_shouldHandleChangeEvent(e){return e.source!==this}static \u0275fac=function(i){return new(i||t)};static \u0275dir=F({type:t,selectors:[["input","matDatepicker",""]],hostAttrs:[1,"mat-datepicker-input"],hostVars:6,hostBindings:function(i,r){i&1&&S("input",function(a){return r._onInput(a)})("change",function(){return r._onChange()})("blur",function(){return r._onBlur()})("keydown",function(a){return r._onKeydown(a)}),i&2&&(si("disabled",r.disabled),X("aria-haspopup",r._datepicker?"dialog":null)("aria-owns",r._ariaOwns())("min",r.min?r._dateAdapter.toIso8601(r.min):null)("max",r.max?r._dateAdapter.toIso8601(r.max):null)("data-mat-calendar",r._datepicker?r._datepicker.id:null))},inputs:{matDatepicker:"matDatepicker",min:"min",max:"max",dateFilter:[0,"matDatepickerFilter","dateFilter"]},exportAs:["matDatepickerInput"],features:[Ce([ive,nve,{provide:wh,useExisting:t}]),le]})}return t})(),rve=(()=>{class t{static \u0275fac=function(i){return new(i||t)};static \u0275dir=F({type:t,selectors:[["","matDatepickerToggleIcon",""]]})}return t})(),rA=(()=>{class t{_intl=u(dp);_changeDetectorRef=u(ye);_stateChanges=ke.EMPTY;datepicker;tabIndex;ariaLabel;get disabled(){return this._disabled===void 0&&this.datepicker?this.datepicker.disabled:!!this._disabled}set disabled(e){this._disabled=e}_disabled;disableRipple;_customIcon;_button;constructor(){let e=u(new Ii("tabindex"),{optional:!0}),i=Number(e);this.tabIndex=i||i===0?i:null}ngOnChanges(e){e.datepicker&&this._watchStateChanges()}ngOnDestroy(){this._stateChanges.unsubscribe()}ngAfterContentInit(){this._watchStateChanges()}_open(e){this.datepicker&&!this.disabled&&(this.datepicker.open(),e.stopPropagation())}_watchStateChanges(){let e=this.datepicker?this.datepicker.stateChanges:Q(),i=this.datepicker&&this.datepicker.datepickerInput?this.datepicker.datepickerInput.stateChanges:Q(),r=this.datepicker?Je(this.datepicker.openedStream,this.datepicker.closedStream):Q();this._stateChanges.unsubscribe(),this._stateChanges=Je(this._intl.changes,e,i,r).subscribe(()=>this._changeDetectorRef.markForCheck())}static \u0275fac=function(i){return new(i||t)};static \u0275cmp=E({type:t,selectors:[["mat-datepicker-toggle"]],contentQueries:function(i,r,o){if(i&1&&xe(o,rve,5),i&2){let a;B(a=j())&&(r._customIcon=a.first)}},viewQuery:function(i,r){if(i&1&&ie(zbe,5),i&2){let o;B(o=j())&&(r._button=o.first)}},hostAttrs:[1,"mat-datepicker-toggle"],hostVars:8,hostBindings:function(i,r){i&1&&S("click",function(a){return r._open(a)}),i&2&&(X("tabindex",null)("data-mat-calendar",r.datepicker?r.datepicker.id:null),G("mat-datepicker-toggle-active",r.datepicker&&r.datepicker.opened)("mat-accent",r.datepicker&&r.datepicker.color==="accent")("mat-warn",r.datepicker&&r.datepicker.color==="warn"))},inputs:{datepicker:[0,"for","datepicker"],tabIndex:"tabIndex",ariaLabel:[0,"aria-label","ariaLabel"],disabled:[2,"disabled","disabled",V],disableRipple:"disableRipple"},exportAs:["matDatepickerToggle"],features:[Ae],ngContentSelectors:$be,decls:4,vars:7,consts:[["button",""],["matIconButton","","type","button",3,"tabIndex","disabled","disableRipple"],["viewBox","0 0 24 24","width","24px","height","24px","fill","currentColor","focusable","false","aria-hidden","true",1,"mat-datepicker-toggle-default-icon"],["d","M19 3h-1V1h-2v2H8V1H6v2H5c-1.11 0-1.99.9-1.99 2L3 19c0 1.1.89 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm0 16H5V8h14v11zM7 10h5v5H7z"]],template:function(i,r){i&1&&(Me(Ube),h(0,"button",1,0),N(2,Wbe,2,0,":svg:svg",2),oe(3),p()),i&2&&(y("tabIndex",r.disabled?-1:r.tabIndex)("disabled",r.disabled)("disableRipple",r.disableRipple),X("aria-haspopup",r.datepicker?"dialog":null)("aria-label",r.ariaLabel||r._intl.openCalendarLabel)("aria-expanded",r.datepicker?r.datepicker.opened:null),g(2),L(r._customIcon?-1:2))},dependencies:[ti],styles:[`.mat-datepicker-toggle{pointer-events:auto;color:var(--mat-datepicker-toggle-icon-color, var(--mat-sys-on-surface-variant))}.mat-datepicker-toggle button{color:inherit}.mat-datepicker-toggle-active{color:var(--mat-datepicker-toggle-active-state-icon-color, var(--mat-sys-primary))}@media(forced-colors: active){.mat-datepicker-toggle-default-icon{color:CanvasText}} -`],encapsulation:2,changeDetection:0})}return t})();var BU=(()=>{class t{static \u0275fac=function(i){return new(i||t)};static \u0275mod=ee({type:t});static \u0275inj=J({providers:[dp,Jbe],imports:[ze,er,ll,Co,we,LU,rA,FU,vr]})}return t})();function ave(t,n){t&1&&(h(0,"div",1),k(1,"mat-spinner"),p())}function sve(t,n){t&1&&(h(0,"mat-error"),_(1," Employee number is required "),p())}function lve(t,n){t&1&&(h(0,"mat-error"),_(1," First name is required "),p())}function cve(t,n){t&1&&(h(0,"mat-error"),_(1," Last name is required "),p())}function dve(t,n){t&1&&(h(0,"mat-error"),_(1," Date of birth is required "),p())}function uve(t,n){t&1&&(h(0,"mat-error"),_(1," Email is required "),p())}function mve(t,n){t&1&&(h(0,"mat-error"),_(1," Please enter a valid email "),p())}function hve(t,n){t&1&&(h(0,"mat-error"),_(1," Phone number is required "),p())}function pve(t,n){if(t&1&&(h(0,"mat-option",25),_(1),p()),t&2){let e=n.$implicit;y("value",e.value),g(),ve(" ",e.label," ")}}function fve(t,n){t&1&&(h(0,"mat-error"),_(1," Gender is required "),p())}function gve(t,n){if(t&1&&(h(0,"mat-option",25),_(1),p()),t&2){let e=n.$implicit;y("value",e.id),g(),ve(" ",e.name," ")}}function _ve(t,n){t&1&&(h(0,"mat-error"),_(1," Department is required "),p())}function bve(t,n){if(t&1&&(h(0,"mat-option",25),_(1),p()),t&2){let e=n.$implicit;y("value",e.id),g(),ve(" ",e.positionTitle," ")}}function vve(t,n){t&1&&(h(0,"mat-error"),_(1," Position is required "),p())}function yve(t,n){t&1&&(h(0,"mat-error"),_(1," Salary is required "),p())}function xve(t,n){t&1&&(h(0,"mat-error"),_(1," Salary must be greater than 0 "),p())}var oA=(()=>{let n=class n{constructor(){this.fb=u(eo),this.router=u(Re),this.route=u(wi),this.snackBar=u(di),this.employeeService=u(ap),this.positionService=u(Bc),this.departmentService=u(Vs),this.loading=!1,this.isEditMode=!1,this.positions=[],this.departments=[],this.genderOptions=[{value:Ou.Male,label:"Male"},{value:Ou.Female,label:"Female"}]}ngOnInit(){this.initForm(),this.loadDependencies(),this.checkEditMode()}initForm(){this.employeeForm=this.fb.group({employeeNumber:["",[Le.required,Le.maxLength(50)]],prefix:["",Le.maxLength(10)],firstName:["",[Le.required,Le.maxLength(100)]],middleName:["",Le.maxLength(100)],lastName:["",[Le.required,Le.maxLength(100)]],birthday:[null,Le.required],gender:[Ou.Male,Le.required],email:["",[Le.required,Le.email,Le.maxLength(255)]],phone:["",[Le.required,Le.maxLength(20)]],salary:[0,[Le.required,Le.min(0)]],positionId:["",Le.required],departmentId:["",Le.required]})}loadDependencies(){this.departmentService.getAll().subscribe({next:i=>{this.departments=i},error:i=>{console.error("Error loading departments:",i),this.showMessage("Error loading departments")}}),this.positionService.getAll().subscribe({next:i=>{this.positions=i},error:i=>{console.error("Error loading positions:",i),this.showMessage("Error loading positions")}})}checkEditMode(){this.employeeId=this.route.snapshot.paramMap.get("id")||void 0,this.isEditMode=!!this.employeeId,this.isEditMode&&this.employeeId&&this.loadEmployee(this.employeeId)}loadEmployee(i){this.loading=!0,this.employeeService.getById(i).subscribe({next:r=>{this.employeeForm.patchValue({employeeNumber:r.employeeNumber,prefix:r.prefix,firstName:r.firstName,middleName:r.middleName,lastName:r.lastName,birthday:r.birthday||r.dateOfBirth,gender:r.gender,email:r.email,phone:r.phone||r.phoneNumber,salary:r.salary,positionId:r.positionId,departmentId:r.departmentId}),this.loading=!1},error:r=>{console.error("Error loading employee:",r),this.showMessage("Error loading employee"),this.loading=!1}})}onSubmit(){if(this.employeeForm.invalid){this.employeeForm.markAllAsTouched();return}if(this.loading=!0,this.isEditMode&&this.employeeId){let i=M({id:this.employeeId},this.employeeForm.value);this.employeeService.updateEmployee(i).subscribe({next:()=>{this.showMessage("Employee updated successfully"),this.router.navigate(["/employees",this.employeeId])},error:r=>{console.error("Error updating employee:",r),this.showMessage("Error updating employee"),this.loading=!1}})}else{let i=this.employeeForm.value;this.employeeService.createEmployee(i).subscribe({next:r=>{console.log("Employee created - Response:",r),console.log("Employee ID:",r?.id),this.showMessage("Employee created successfully"),r?.id?(console.log("Navigating to detail page:","/employees/"+r.id),this.router.navigate(["/employees",r.id])):(console.warn("No employee ID returned, navigating to list page"),this.router.navigate(["/employees"])),this.loading=!1},error:r=>{console.error("Error creating employee:",r),this.showMessage("Error creating employee"),this.loading=!1}})}}onCancel(){this.router.navigate(["/employees"])}showMessage(i){this.snackBar.open(i,"Close",{duration:3e3,horizontalPosition:"end",verticalPosition:"top"})}getFormTitle(){return this.isEditMode?"Edit Employee":"Create Employee"}};n.\u0275fac=function(r){return new(r||n)},n.\u0275cmp=E({type:n,selectors:[["app-employee-form"]],decls:94,vars:22,consts:[["dobPicker",""],[1,"loading-overlay"],[3,"ngSubmit","formGroup"],[1,"form-section"],[1,"form-row"],["appearance","outline"],["matInput","","formControlName","employeeNumber"],[4,"ngIf"],["matInput","","formControlName","prefix","placeholder","Mr., Mrs., Dr."],["matInput","","formControlName","firstName"],["matInput","","formControlName","middleName"],["matInput","","formControlName","lastName"],["matInput","","formControlName","birthday",3,"matDatepicker"],["matIconSuffix","",3,"for"],["matInput","","type","email","formControlName","email"],["matInput","","formControlName","phone"],["formControlName","gender"],[3,"value",4,"ngFor","ngForOf"],["formControlName","departmentId"],["formControlName","positionId"],["matInput","","type","number","formControlName","salary"],["matTextPrefix",""],[1,"form-actions"],["type","button","mat-stroked-button","",3,"click"],["type","submit","mat-raised-button","","color","primary",3,"disabled"],[3,"value"]],template:function(r,o){if(r&1){let a=Y();k(0,"page-header"),h(1,"mat-card")(2,"mat-card-header")(3,"mat-card-title"),_(4),p()(),h(5,"mat-card-content"),N(6,ave,2,0,"div",1),h(7,"form",2),S("ngSubmit",function(){return I(a),A(o.onSubmit())}),h(8,"div",3)(9,"h3"),_(10,"Personal Information"),p(),h(11,"div",4)(12,"mat-form-field",5)(13,"mat-label"),_(14,"Employee Number"),p(),k(15,"input",6),R(16,sve,2,0,"mat-error",7),p(),h(17,"mat-form-field",5)(18,"mat-label"),_(19,"Prefix"),p(),k(20,"input",8),p()(),h(21,"div",4)(22,"mat-form-field",5)(23,"mat-label"),_(24,"First Name"),p(),k(25,"input",9),R(26,lve,2,0,"mat-error",7),p(),h(27,"mat-form-field",5)(28,"mat-label"),_(29,"Middle Name"),p(),k(30,"input",10),p()(),h(31,"div",4)(32,"mat-form-field",5)(33,"mat-label"),_(34,"Last Name"),p(),k(35,"input",11),R(36,cve,2,0,"mat-error",7),p(),h(37,"mat-form-field",5)(38,"mat-label"),_(39,"Date of Birth"),p(),k(40,"input",12)(41,"mat-datepicker-toggle",13)(42,"mat-datepicker",null,0),R(44,dve,2,0,"mat-error",7),p()(),h(45,"div",4)(46,"mat-form-field",5)(47,"mat-label"),_(48,"Email"),p(),k(49,"input",14),R(50,uve,2,0,"mat-error",7)(51,mve,2,0,"mat-error",7),p(),h(52,"mat-form-field",5)(53,"mat-label"),_(54,"Phone Number"),p(),k(55,"input",15),R(56,hve,2,0,"mat-error",7),p()(),h(57,"div",4)(58,"mat-form-field",5)(59,"mat-label"),_(60,"Gender"),p(),h(61,"mat-select",16),R(62,pve,2,2,"mat-option",17),p(),R(63,fve,2,0,"mat-error",7),p()()(),h(64,"div",3)(65,"h3"),_(66,"Employment Information"),p(),h(67,"div",4)(68,"mat-form-field",5)(69,"mat-label"),_(70,"Department"),p(),h(71,"mat-select",18),R(72,gve,2,2,"mat-option",17),p(),R(73,_ve,2,0,"mat-error",7),p(),h(74,"mat-form-field",5)(75,"mat-label"),_(76,"Position"),p(),h(77,"mat-select",19),R(78,bve,2,2,"mat-option",17),p(),R(79,vve,2,0,"mat-error",7),p()(),h(80,"div",4)(81,"mat-form-field",5)(82,"mat-label"),_(83,"Salary"),p(),k(84,"input",20),h(85,"span",21),_(86,"$\xA0"),p(),R(87,yve,2,0,"mat-error",7)(88,xve,2,0,"mat-error",7),p()()(),h(89,"div",22)(90,"button",23),S("click",function(){return I(a),A(o.onCancel())}),_(91," Cancel "),p(),h(92,"button",24),_(93),p()()()()()}if(r&2){let a,s,l,c,d,m,f,b,v,w,x,D,P=Se(43);g(4),H(o.getFormTitle()),g(2),L(o.loading?6:-1),g(),y("formGroup",o.employeeForm),g(9),y("ngIf",(a=o.employeeForm.get("employeeNumber"))==null?null:a.hasError("required")),g(10),y("ngIf",(s=o.employeeForm.get("firstName"))==null?null:s.hasError("required")),g(10),y("ngIf",(l=o.employeeForm.get("lastName"))==null?null:l.hasError("required")),g(4),y("matDatepicker",P),g(),y("for",P),g(3),y("ngIf",(c=o.employeeForm.get("birthday"))==null?null:c.hasError("required")),g(6),y("ngIf",(d=o.employeeForm.get("email"))==null?null:d.hasError("required")),g(),y("ngIf",(m=o.employeeForm.get("email"))==null?null:m.hasError("email")),g(5),y("ngIf",(f=o.employeeForm.get("phone"))==null?null:f.hasError("required")),g(6),y("ngForOf",o.genderOptions),g(),y("ngIf",(b=o.employeeForm.get("gender"))==null?null:b.hasError("required")),g(9),y("ngForOf",o.departments),g(),y("ngIf",(v=o.employeeForm.get("departmentId"))==null?null:v.hasError("required")),g(5),y("ngForOf",o.positions),g(),y("ngIf",(w=o.employeeForm.get("positionId"))==null?null:w.hasError("required")),g(8),y("ngIf",(x=o.employeeForm.get("salary"))==null?null:x.hasError("required")),g(),y("ngIf",(D=o.employeeForm.get("salary"))==null?null:D.hasError("min")),g(4),y("disabled",o.loading),g(),ve(" ",o.isEditMode?"Update":"Create"," ")}},dependencies:[gt,qr,li,zn,Jr,Qi,cu,ei,Xr,Ki,Lr,ze,kt,$t,zt,Ut,Jt,Xt,$i,Oi,sn,xo,nu,ru,rr,hn,fc,Na,xn,BU,VU,Cw,rA,KL,Si,ki,pi,ni],styles:["mat-card[_ngcontent-%COMP%]{margin:16px;max-width:1200px}mat-card-header[_ngcontent-%COMP%]{padding:16px;border-bottom:1px solid rgba(0,0,0,.12);margin-bottom:24px}mat-card-header[_ngcontent-%COMP%] mat-card-title[_ngcontent-%COMP%]{font-size:20px;font-weight:500;margin:0}mat-card-content[_ngcontent-%COMP%]{padding:24px;position:relative}.loading-overlay[_ngcontent-%COMP%]{position:absolute;inset:0;background-color:#fffc;display:flex;align-items:center;justify-content:center;z-index:1000}form[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:24px}.form-section[_ngcontent-%COMP%] h3[_ngcontent-%COMP%]{font-size:16px;font-weight:500;margin:0 0 16px;color:#000000de}.form-row[_ngcontent-%COMP%]{display:grid;grid-template-columns:1fr 1fr;gap:16px;margin-bottom:8px}@media (max-width: 768px){.form-row[_ngcontent-%COMP%]{grid-template-columns:1fr}}mat-form-field[_ngcontent-%COMP%]{width:100%}mat-form-field.full-width[_ngcontent-%COMP%]{grid-column:1/-1}.form-actions[_ngcontent-%COMP%]{display:flex;justify-content:flex-end;gap:12px;margin-top:24px;padding-top:24px;border-top:1px solid rgba(0,0,0,.12)}.form-actions[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{min-width:120px}"]});let t=n;return t})();var jU=()=>["HRAdmin","Manager"],Cve=()=>[5,10,25,50,100],wve=()=>["HRAdmin"];function Dve(t,n){if(t&1){let e=Y();h(0,"button",14),S("click",function(){I(e);let r=C();return A(r.createDepartment())}),h(1,"mat-icon"),_(2,"add"),p(),_(3," Add Department "),p()}}function Eve(t,n){if(t&1&&(h(0,"mat-option",15),_(1),p()),t&2){let e=n.$implicit;y("value",e),g(),ve(" ",e," ")}}function Mve(t,n){t&1&&(h(0,"div",16),k(1,"mat-spinner"),p())}function kve(t,n){t&1&&(h(0,"th",25),_(1,"Name"),p())}function Sve(t,n){if(t&1&&(h(0,"td",26),_(1),p()),t&2){let e=n.$implicit;g(),H(e.name)}}function Tve(t,n){t&1&&(h(0,"th",25),_(1,"Actions"),p())}function Ive(t,n){if(t&1){let e=Y();h(0,"button",31),S("click",function(){I(e);let r=C().$implicit,o=C(2);return A(o.editDepartment(r))}),h(1,"mat-icon"),_(2,"edit"),p()()}}function Ave(t,n){if(t&1){let e=Y();h(0,"button",32),S("click",function(){I(e);let r=C().$implicit,o=C(2);return A(o.deleteDepartment(r))}),h(1,"mat-icon"),_(2,"delete"),p()()}}function Ove(t,n){if(t&1){let e=Y();h(0,"td",26)(1,"div",27)(2,"button",28),S("click",function(){let r=I(e).$implicit,o=C(2);return A(o.viewDepartment(r))}),h(3,"mat-icon"),_(4,"visibility"),p()(),R(5,Ive,3,0,"button",29)(6,Ave,3,0,"button",30),p()()}t&2&&(g(5),y("appHasRole",at(2,jU)),g(),y("appHasRole",at(3,wve)))}function Rve(t,n){t&1&&k(0,"tr",33)}function Pve(t,n){t&1&&k(0,"tr",34)}function Fve(t,n){if(t&1&&(h(0,"tr",35)(1,"td",36)(2,"div",37)(3,"mat-icon"),_(4,"info"),p(),h(5,"p"),_(6,"No departments found"),p()()()()),t&2){let e=C(2);g(),X("colspan",e.displayedColumns.length)}}function Nve(t,n){if(t&1&&(h(0,"table",17),jt(1,18),R(2,kve,2,0,"th",19)(3,Sve,2,1,"td",20),Lt(),jt(4,21),R(5,Tve,2,0,"th",19)(6,Ove,7,4,"td",20),Lt(),R(7,Rve,1,0,"tr",22)(8,Pve,1,0,"tr",23)(9,Fve,7,1,"tr",24),p()),t&2){let e=C();y("dataSource",e.departments),g(7),y("matHeaderRowDef",e.displayedColumns),g(),y("matRowDefColumns",e.displayedColumns),g(),y("ngIf",e.departments.length===0)}}var HU=(()=>{let n=class n{constructor(){this.departmentService=u(Vs),this.authService=u(Tt),this.router=u(Re),this.fb=u(eo),this.snackBar=u(di),this.dialog=u(En),this.departments=[],this.loading=!1,this.totalCount=0,this.pageSize=10,this.pageNumber=1,this.destroy$=new z,this.displayedColumns=["name","actions"]}ngOnInit(){this.initSearchForm(),this.setupAutocomplete(),this.setupAutoSubmit(),this.loadDepartments()}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete()}initSearchForm(){this.searchForm=this.fb.group({Name:[""]})}setupAutocomplete(){this.filteredNames$=this.searchForm.get("Name").valueChanges.pipe(He(""),Rt(300),Sn(),$e(i=>this.getAutocompleteOptions("Name",i)))}setupAutoSubmit(){this.searchForm.valueChanges.pipe(Rt(500),Sn((i,r)=>JSON.stringify(i)===JSON.stringify(r)),Te(this.destroy$)).subscribe(()=>{this.pageNumber=1,this.loadDepartments()})}getAutocompleteOptions(i,r){if(!r||r.length<2)return Q([]);let o={PageNumber:1,PageSize:10,[i]:r};return this.departmentService.getAllPaged(o).pipe(se(a=>a.value.map(l=>l.name).filter((l,c,d)=>l&&d.indexOf(l)===c)),fi(()=>Q([])))}loadDepartments(){this.loading=!0;let i=M({PageNumber:this.pageNumber,PageSize:this.pageSize},this.searchForm.value);Object.keys(i).forEach(r=>{(i[r]===""||i[r]===null||i[r]===void 0)&&delete i[r]}),this.departmentService.getAllPaged(i).subscribe({next:r=>{this.departments=r.value,this.totalCount=r.recordsTotal,this.loading=!1},error:r=>{console.error("Error loading departments:",r),this.loading=!1}})}onClearSearch(){this.searchForm.reset(),this.pageNumber=1,this.paginator&&(this.paginator.pageIndex=0),this.loadDepartments()}onPageChange(i){this.pageSize=i.pageSize,this.pageNumber=i.pageIndex+1,this.loadDepartments()}viewDepartment(i){this.router.navigate(["/departments",i.id])}editDepartment(i){this.router.navigate(["/departments","edit",i.id])}deleteDepartment(i){this.dialog.open(Er,{width:"400px",data:{title:"Delete Department",message:`Are you sure you want to delete "${i.name}"? This action cannot be undone.`,confirmText:"Delete",cancelText:"Cancel"}}).afterClosed().subscribe(o=>{o&&this.departmentService.delete(i.id).subscribe({next:()=>{this.showMessage(`"${i.name}" has been deleted.`),this.loadDepartments()},error:a=>{console.error("Error deleting department:",a),this.showMessage("Failed to delete department. Please try again.")}})})}createDepartment(){this.router.navigate(["/departments","create"])}canEdit(){return this.authService.isHRAdmin()||this.authService.isManager()}canDelete(){return this.authService.isHRAdmin()}canCreate(){return this.authService.isHRAdmin()||this.authService.isManager()}showMessage(i){this.snackBar.open(i,"Close",{duration:3e3,horizontalPosition:"end",verticalPosition:"top"})}};n.\u0275fac=function(r){return new(r||n)},n.\u0275cmp=E({type:n,selectors:[["app-department-list"]],viewQuery:function(r,o){if(r&1&&ie(ir,5),r&2){let a;B(a=j())&&(o.paginator=a.first)}},decls:27,vars:14,consts:[["autoName","matAutocomplete"],[1,"flex-spacer"],["mat-raised-button","","color","primary",3,"click",4,"appHasRole"],[1,"search-form",3,"formGroup"],[1,"search-row"],["appearance","outline"],["matInput","","formControlName","Name",3,"matAutocomplete"],[3,"value",4,"ngFor","ngForOf"],[1,"search-buttons"],["mat-raised-button","","color","accent","type","button",3,"click"],[1,"table-container"],["class","loading-spinner",4,"ngIf"],["mat-table","","class","department-table",3,"dataSource",4,"ngIf"],["showFirstLastButtons","",3,"page","length","pageSize","pageSizeOptions","pageIndex"],["mat-raised-button","","color","primary",3,"click"],[3,"value"],[1,"loading-spinner"],["mat-table","",1,"department-table",3,"dataSource"],["matColumnDef","name"],["mat-header-cell","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","actions"],["mat-header-row","",4,"matHeaderRowDef"],["mat-row","",4,"matRowDef","matRowDefColumns"],["class","mat-row",4,"ngIf"],["mat-header-cell",""],["mat-cell",""],[1,"action-buttons"],["mat-icon-button","","color","primary","matTooltip","View Details",3,"click"],["mat-icon-button","","color","accent","matTooltip","Edit Department",3,"click",4,"appHasRole"],["mat-icon-button","","color","warn","matTooltip","Delete Department",3,"click",4,"appHasRole"],["mat-icon-button","","color","accent","matTooltip","Edit Department",3,"click"],["mat-icon-button","","color","warn","matTooltip","Delete Department",3,"click"],["mat-header-row",""],["mat-row",""],[1,"mat-row"],[1,"mat-cell"],[1,"no-data"]],template:function(r,o){if(r&1){let a=Y();k(0,"page-header"),h(1,"mat-card")(2,"mat-card-header")(3,"mat-card-title"),_(4,"Department Directory"),p(),k(5,"div",1),R(6,Dve,4,0,"button",2),p(),h(7,"mat-card-content")(8,"form",3)(9,"div",4)(10,"mat-form-field",5)(11,"mat-label"),_(12,"Department Name"),p(),k(13,"input",6),h(14,"mat-autocomplete",null,0),R(16,Eve,2,2,"mat-option",7),me(17,"async"),p()(),h(18,"div",8)(19,"button",9),S("click",function(){return I(a),A(o.onClearSearch())}),h(20,"mat-icon"),_(21,"clear"),p(),_(22," Clear Filters "),p()()()(),h(23,"div",10),R(24,Mve,2,0,"div",11)(25,Nve,10,4,"table",12),p(),h(26,"mat-paginator",13),S("page",function(l){return I(a),A(o.onPageChange(l))}),p()()()}if(r&2){let a=Se(15);g(6),y("appHasRole",at(12,jU)),g(2),y("formGroup",o.searchForm),g(5),y("matAutocomplete",a),g(3),y("ngForOf",Oe(17,10,o.filteredNames$)),g(8),y("ngIf",o.loading),g(),y("ngIf",!o.loading),g(),y("length",o.totalCount)("pageSize",o.pageSize)("pageSizeOptions",at(13,Cve))("pageIndex",o.pageNumber-1)}},dependencies:[gt,qr,li,zn,Jr,Qi,ei,Xr,Ki,Lr,ze,kt,ti,$t,zt,Ut,Jt,Xt,ot,mt,rr,hn,Oi,sn,$i,Zc,Hc,Uc,qc,$c,zc,Yc,Wc,Gc,Qc,Kc,_c,ir,Si,ki,Br,Eo,vw,bw,xn,y_,pi,Mn,ni,Un,rn],styles:["mat-card[_ngcontent-%COMP%]{margin:16px}mat-card-header[_ngcontent-%COMP%]{display:flex;align-items:center;margin-bottom:16px;padding:16px;border-bottom:1px solid rgba(0,0,0,.12)}mat-card-header[_ngcontent-%COMP%] mat-card-title[_ngcontent-%COMP%]{font-size:20px;font-weight:500;margin:0}mat-card-header[_ngcontent-%COMP%] .flex-spacer[_ngcontent-%COMP%]{flex:1 1 auto}mat-card-header[_ngcontent-%COMP%] button[_ngcontent-%COMP%] mat-icon[_ngcontent-%COMP%]{margin-right:4px}mat-card-content[_ngcontent-%COMP%]{padding:0}.search-form[_ngcontent-%COMP%]{padding:16px;background-color:#f5f5f5;margin-bottom:0}.search-form[_ngcontent-%COMP%] .search-row[_ngcontent-%COMP%]{display:grid;grid-template-columns:1fr auto;gap:16px;align-items:start}.search-form[_ngcontent-%COMP%] .search-row[_ngcontent-%COMP%] mat-form-field[_ngcontent-%COMP%]{width:100%}.search-form[_ngcontent-%COMP%] .search-row[_ngcontent-%COMP%] .search-buttons[_ngcontent-%COMP%]{display:flex;gap:8px;align-items:center}.search-form[_ngcontent-%COMP%] .search-row[_ngcontent-%COMP%] .search-buttons[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{white-space:nowrap}.search-form[_ngcontent-%COMP%] .search-row[_ngcontent-%COMP%] .search-buttons[_ngcontent-%COMP%] button[_ngcontent-%COMP%] mat-icon[_ngcontent-%COMP%]{margin-right:4px}.table-container[_ngcontent-%COMP%]{position:relative;min-height:300px;overflow-x:auto}.loading-spinner[_ngcontent-%COMP%]{display:flex;justify-content:center;align-items:center;min-height:300px}.department-table[_ngcontent-%COMP%]{width:100%}.department-table[_ngcontent-%COMP%] th[_ngcontent-%COMP%]{font-weight:600;font-size:14px;color:#000000de}.department-table[_ngcontent-%COMP%] td[_ngcontent-%COMP%]{font-size:14px;color:#000000de}.department-table[_ngcontent-%COMP%] .mat-column-name[_ngcontent-%COMP%]{min-width:200px}.department-table[_ngcontent-%COMP%] .mat-column-actions[_ngcontent-%COMP%]{width:120px;text-align:right}.department-table[_ngcontent-%COMP%] .mat-column-actions[_ngcontent-%COMP%] .action-buttons[_ngcontent-%COMP%]{display:flex;justify-content:flex-end;align-items:center;gap:4px}.no-data[_ngcontent-%COMP%]{display:flex;flex-direction:column;align-items:center;justify-content:center;padding:48px 16px;color:#0000008a}.no-data[_ngcontent-%COMP%] mat-icon[_ngcontent-%COMP%]{font-size:48px;width:48px;height:48px;margin-bottom:16px}.no-data[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{margin:0;font-size:16px}mat-paginator[_ngcontent-%COMP%]{border-top:1px solid rgba(0,0,0,.12)}"]});let t=n;return t})();var Lve=()=>["HRAdmin","Manager"],Vve=()=>["HRAdmin"];function Bve(t,n){if(t&1){let e=Y();h(0,"button",10),S("click",function(){I(e);let r=C(2);return A(r.editDepartment())}),h(1,"mat-icon"),_(2,"edit"),p(),_(3," Edit "),p()}}function jve(t,n){if(t&1){let e=Y();h(0,"button",11),S("click",function(){I(e);let r=C(2);return A(r.deleteDepartment())}),h(1,"mat-icon"),_(2,"delete"),p(),_(3," Delete "),p()}}function Hve(t,n){if(t&1&&(h(0,"mat-list-item")(1,"span",7),_(2,"Created At"),p(),h(3,"span",8),_(4),me(5,"date"),p()()),t&2){let e=C(3);g(4),H(Ni(5,1,e.department.createdAt,"medium"))}}function zve(t,n){if(t&1&&(h(0,"mat-list-item")(1,"span",7),_(2,"Last Modified At"),p(),h(3,"span",8),_(4),me(5,"date"),p()()),t&2){let e=C(3);g(4),H(Ni(5,1,e.department.lastModifiedAt,"medium"))}}function Uve(t,n){if(t&1&&(h(0,"div",6)(1,"h3"),_(2,"Audit Information"),p(),k(3,"mat-divider"),h(4,"mat-list"),R(5,Hve,6,4,"mat-list-item",0)(6,zve,6,4,"mat-list-item",0),p()()),t&2){let e=C(2);g(5),y("ngIf",e.department.createdAt),g(),y("ngIf",e.department.lastModifiedAt)}}function $ve(t,n){if(t&1){let e=Y();h(0,"mat-card")(1,"mat-card-header")(2,"mat-card-title"),_(3,"Department Details"),p(),k(4,"div",1),R(5,Bve,4,0,"button",2)(6,jve,4,0,"button",3),h(7,"button",4),S("click",function(){I(e);let r=C();return A(r.goBack())}),h(8,"mat-icon"),_(9,"arrow_back"),p(),_(10," Back to List "),p()(),h(11,"mat-card-content")(12,"div",5)(13,"div",6)(14,"h3"),_(15,"Basic Information"),p(),k(16,"mat-divider"),h(17,"mat-list")(18,"mat-list-item")(19,"span",7),_(20,"Department Name"),p(),h(21,"span",8),_(22),p()()()(),R(23,Uve,7,2,"div",9),p()()()}if(t&2){let e=C();g(5),y("appHasRole",at(4,Lve)),g(),y("appHasRole",at(5,Vve)),g(16),H(e.department.name),g(),y("ngIf",e.department.createdAt||e.department.lastModifiedAt)}}function Wve(t,n){t&1&&(h(0,"mat-card")(1,"mat-card-content")(2,"div",12),k(3,"mat-spinner"),p()()())}function Gve(t,n){if(t&1){let e=Y();h(0,"mat-card")(1,"mat-card-content")(2,"div",13)(3,"mat-icon"),_(4,"error"),p(),h(5,"p"),_(6,"Department not found"),p(),h(7,"button",14),S("click",function(){I(e);let r=C();return A(r.goBack())}),_(8," Go Back "),p()()()()}}var zU=(()=>{let n=class n{constructor(){this.departmentService=u(Vs),this.authService=u(Tt),this.route=u(wi),this.router=u(Re),this.snackBar=u(di),this.dialog=u(En),this.loading=!1}ngOnInit(){let i=this.route.snapshot.paramMap.get("id");i&&this.loadDepartment(i)}loadDepartment(i){this.loading=!0,this.departmentService.getById(i).subscribe({next:r=>{this.department=r,this.loading=!1},error:r=>{console.error("Error loading department:",r),this.showMessage("Error loading department"),this.loading=!1,this.router.navigate(["/departments"])}})}editDepartment(){this.router.navigate(["/departments","edit",this.department.id])}deleteDepartment(){this.dialog.open(Er,{width:"400px",data:{title:"Delete Department",message:`Are you sure you want to delete "${this.department.name}"? This action cannot be undone.`,confirmText:"Delete",cancelText:"Cancel"}}).afterClosed().subscribe(r=>{r&&this.departmentService.delete(this.department.id).subscribe({next:()=>{let o=this.snackBar.open(`"${this.department.name}" has been deleted.`,"Close",{duration:3e3,horizontalPosition:"end",verticalPosition:"top"});o.afterDismissed().subscribe(()=>this.router.navigate(["/departments"])),o.onAction().subscribe(()=>this.router.navigate(["/departments"]))},error:o=>{console.error("Error deleting department:",o),this.showMessage("Failed to delete department. Please try again.")}})})}goBack(){this.router.navigate(["/departments"])}canEdit(){return this.authService.isHRAdmin()||this.authService.isManager()}canDelete(){return this.authService.isHRAdmin()}showMessage(i){this.snackBar.open(i,"Close",{duration:3e3,horizontalPosition:"end",verticalPosition:"top"})}};n.\u0275fac=function(r){return new(r||n)},n.\u0275cmp=E({type:n,selectors:[["app-department-detail"]],decls:4,vars:3,consts:[[4,"ngIf"],[1,"flex-spacer"],["mat-raised-button","","color","accent",3,"click",4,"appHasRole"],["mat-raised-button","","color","warn",3,"click",4,"appHasRole"],["mat-stroked-button","",3,"click"],[1,"detail-grid"],[1,"detail-section"],["matListItemTitle",""],["matListItemLine",""],["class","detail-section",4,"ngIf"],["mat-raised-button","","color","accent",3,"click"],["mat-raised-button","","color","warn",3,"click"],[1,"loading-container"],[1,"no-data"],["mat-raised-button","","color","primary",3,"click"]],template:function(r,o){r&1&&(k(0,"page-header"),R(1,$ve,24,6,"mat-card",0)(2,Wve,4,0,"mat-card",0)(3,Gve,9,0,"mat-card",0)),r&2&&(g(),y("ngIf",!o.loading&&o.department),g(),y("ngIf",o.loading),g(),y("ngIf",!o.loading&&!o.department))},dependencies:[gt,li,ze,kt,$t,zt,Ut,Jt,Xt,ot,mt,ca,Fs,la,Ha,Tu,Dl,sa,Si,ki,pi,Mn,ni,Un,Sa],styles:["mat-card[_ngcontent-%COMP%]{margin:16px}mat-card-header[_ngcontent-%COMP%]{display:flex;align-items:center;margin-bottom:16px;padding:16px;border-bottom:1px solid rgba(0,0,0,.12)}mat-card-header[_ngcontent-%COMP%] mat-card-title[_ngcontent-%COMP%]{font-size:20px;font-weight:500;margin:0}mat-card-header[_ngcontent-%COMP%] .flex-spacer[_ngcontent-%COMP%]{flex:1 1 auto}mat-card-header[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{margin-left:8px}mat-card-header[_ngcontent-%COMP%] button[_ngcontent-%COMP%] mat-icon[_ngcontent-%COMP%]{margin-right:4px}mat-card-content[_ngcontent-%COMP%]{padding:16px}.detail-grid[_ngcontent-%COMP%]{display:grid;grid-template-columns:repeat(auto-fit,minmax(400px,1fr));gap:24px}.detail-section[_ngcontent-%COMP%] h3[_ngcontent-%COMP%]{margin:0 0 8px;font-size:16px;font-weight:500;color:#000000de}.detail-section[_ngcontent-%COMP%] mat-divider[_ngcontent-%COMP%]{margin-bottom:16px}.detail-section[_ngcontent-%COMP%] mat-list[_ngcontent-%COMP%]{padding:0}.detail-section[_ngcontent-%COMP%] mat-list-item[_ngcontent-%COMP%]{height:auto;min-height:48px;padding:8px 0}.loading-container[_ngcontent-%COMP%]{display:flex;justify-content:center;align-items:center;min-height:300px}.no-data[_ngcontent-%COMP%]{display:flex;flex-direction:column;align-items:center;justify-content:center;padding:48px 16px;color:#0000008a}.no-data[_ngcontent-%COMP%] mat-icon[_ngcontent-%COMP%]{font-size:48px;width:48px;height:48px;margin-bottom:16px}.no-data[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{margin:0 0 16px;font-size:16px}"]});let t=n;return t})();function qve(t,n){t&1&&(h(0,"div",0),k(1,"mat-spinner"),p())}function Yve(t,n){t&1&&(h(0,"mat-error"),_(1," Department name is required "),p())}function Qve(t,n){t&1&&(h(0,"mat-error"),_(1," Department name cannot exceed 100 characters "),p())}var aA=(()=>{let n=class n{constructor(){this.departmentService=u(Vs),this.route=u(wi),this.router=u(Re),this.fb=u(eo),this.snackBar=u(di),this.loading=!1,this.isEditMode=!1}ngOnInit(){this.initForm();let i=this.route.snapshot.paramMap.get("id");i&&(this.isEditMode=!0,this.departmentId=i,this.loadDepartment(i))}initForm(){this.departmentForm=this.fb.group({name:["",[Le.required,Le.maxLength(100)]]})}loadDepartment(i){this.loading=!0,this.departmentService.getById(i).subscribe({next:r=>{this.departmentForm.patchValue({name:r.name}),this.loading=!1},error:r=>{console.error("Error loading department:",r),this.showMessage("Error loading department"),this.loading=!1}})}onSubmit(){if(!this.departmentForm.invalid)if(this.loading=!0,this.isEditMode&&this.departmentId){let i={id:this.departmentId,name:this.departmentForm.value.name};this.departmentService.updateDepartment(i).subscribe({next:()=>{this.showMessage("Department updated successfully"),this.router.navigate(["/departments",this.departmentId])},error:r=>{console.error("Error updating department:",r),this.showMessage("Error updating department"),this.loading=!1}})}else{let i={name:this.departmentForm.value.name};this.departmentService.createDepartment(i).subscribe({next:r=>{console.log("Department created - Response:",r),console.log("Department ID:",r?.id),this.showMessage("Department created successfully"),r?.id?(console.log("Navigating to detail page:","/departments/"+r.id),this.router.navigate(["/departments",r.id])):(console.warn("No department ID returned, navigating to list page"),this.router.navigate(["/departments"])),this.loading=!1},error:r=>{console.error("Error creating department:",r),this.showMessage("Error creating department"),this.loading=!1}})}}onCancel(){this.isEditMode&&this.departmentId?this.router.navigate(["/departments",this.departmentId]):this.router.navigate(["/departments"])}showMessage(i){this.snackBar.open(i,"Close",{duration:3e3,horizontalPosition:"end",verticalPosition:"top"})}};n.\u0275fac=function(r){return new(r||n)},n.\u0275cmp=E({type:n,selectors:[["app-department-form"]],decls:23,vars:7,consts:[[1,"loading-overlay"],[3,"ngSubmit","formGroup"],[1,"form-section"],[1,"form-row"],["appearance","outline"],["matInput","","formControlName","name"],[4,"ngIf"],[1,"form-actions"],["type","button","mat-stroked-button","",3,"click"],["type","submit","mat-raised-button","","color","primary",3,"disabled"]],template:function(r,o){if(r&1&&(k(0,"page-header"),h(1,"mat-card")(2,"mat-card-header")(3,"mat-card-title"),_(4),p()(),h(5,"mat-card-content"),N(6,qve,2,0,"div",0),h(7,"form",1),S("ngSubmit",function(){return o.onSubmit()}),h(8,"div",2)(9,"h3"),_(10,"Department Information"),p(),h(11,"div",3)(12,"mat-form-field",4)(13,"mat-label"),_(14,"Department Name"),p(),k(15,"input",5),R(16,Yve,2,0,"mat-error",6)(17,Qve,2,0,"mat-error",6),p()()(),h(18,"div",7)(19,"button",8),S("click",function(){return o.onCancel()}),_(20," Cancel "),p(),h(21,"button",9),_(22),p()()()()()),r&2){let a,s;g(4),H(o.isEditMode?"Edit Department":"Create Department"),g(2),L(o.loading?6:-1),g(),y("formGroup",o.departmentForm),g(9),y("ngIf",(a=o.departmentForm.get("name"))==null?null:a.hasError("required")),g(),y("ngIf",(s=o.departmentForm.get("name"))==null?null:s.hasError("maxlength")),g(4),y("disabled",o.loading),g(),ve(" ",o.isEditMode?"Update":"Create"," ")}},dependencies:[gt,li,zn,Jr,Qi,ei,Xr,Ki,Lr,ze,kt,$t,zt,Ut,Jt,Xt,ot,rr,hn,Oi,sn,xo,$i,Si,ki,pi,ni],styles:["mat-card[_ngcontent-%COMP%]{margin:16px;max-width:800px}mat-card-header[_ngcontent-%COMP%]{padding:16px;border-bottom:1px solid rgba(0,0,0,.12)}mat-card-header[_ngcontent-%COMP%] mat-card-title[_ngcontent-%COMP%]{font-size:20px;font-weight:500;margin:0}mat-card-content[_ngcontent-%COMP%]{padding:24px;position:relative}.form-section[_ngcontent-%COMP%]{margin-bottom:24px}.form-section[_ngcontent-%COMP%] h3[_ngcontent-%COMP%]{margin:0 0 16px;font-size:16px;font-weight:500;color:#000000de}.form-section[_ngcontent-%COMP%] .form-row[_ngcontent-%COMP%]{display:grid;grid-template-columns:1fr;gap:16px;margin-bottom:16px}.form-section[_ngcontent-%COMP%] .form-row[_ngcontent-%COMP%] mat-form-field[_ngcontent-%COMP%]{width:100%}.form-actions[_ngcontent-%COMP%]{display:flex;justify-content:flex-end;gap:8px;padding-top:16px;border-top:1px solid rgba(0,0,0,.12)}.loading-overlay[_ngcontent-%COMP%]{position:absolute;inset:0;background-color:#fffc;display:flex;align-items:center;justify-content:center;z-index:1000}"]});let t=n;return t})();var Kve=["mat-sort-header",""],Zve=["*"];function Xve(t,n){t&1&&(ft(0,"div",2),Gt(),ft(1,"svg",3),ai(2,"path",4),vt()())}var UU=new T("MAT_SORT_DEFAULT_OPTIONS"),Ml=(()=>{class t{_defaultOptions;_initializedStream=new $a(1);sortables=new Map;_stateChanges=new z;active;start="asc";get direction(){return this._direction}set direction(e){this._direction=e}_direction="";disableClear;disabled=!1;sortChange=new U;initialized=this._initializedStream;constructor(e){this._defaultOptions=e}register(e){this.sortables.set(e.id,e)}deregister(e){this.sortables.delete(e.id)}sort(e){this.active!=e.id?(this.active=e.id,this.direction=e.start?e.start:this.start):this.direction=this.getNextSortDirection(e),this.sortChange.emit({active:this.active,direction:this.direction})}getNextSortDirection(e){if(!e)return"";let i=e?.disableClear??this.disableClear??!!this._defaultOptions?.disableClear,r=Jve(e.start||this.start,i),o=r.indexOf(this.direction)+1;return o>=r.length&&(o=0),r[o]}ngOnInit(){this._initializedStream.next()}ngOnChanges(){this._stateChanges.next()}ngOnDestroy(){this._stateChanges.complete(),this._initializedStream.complete()}static \u0275fac=function(i){return new(i||t)(_e(UU,8))};static \u0275dir=F({type:t,selectors:[["","matSort",""]],hostAttrs:[1,"mat-sort"],inputs:{active:[0,"matSortActive","active"],start:[0,"matSortStart","start"],direction:[0,"matSortDirection","direction"],disableClear:[2,"matSortDisableClear","disableClear",V],disabled:[2,"matSortDisabled","disabled",V]},outputs:{sortChange:"matSortChange"},exportAs:["matSort"],features:[Ae]})}return t})();function Jve(t,n){let e=["asc","desc"];return t=="desc"&&e.reverse(),n||e.push(""),e}var ww=(()=>{class t{changes=new z;static \u0275fac=function(i){return new(i||t)};static \u0275prov=O({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();function e0e(t){return t||new ww}var t0e={provide:ww,deps:[[new ss,new Gl,ww]],useFactory:e0e},Dw=(()=>{class t{_intl=u(ww);_sort=u(Ml,{optional:!0});_columnDef=u("MAT_SORT_HEADER_COLUMN_DEF",{optional:!0});_changeDetectorRef=u(ye);_focusMonitor=u(Yt);_elementRef=u(q);_ariaDescriber=u(Xm,{optional:!0});_renderChanges;_animationsDisabled=Ye();_recentlyCleared=he(null);_sortButton;id;arrowPosition="after";start;disabled=!1;get sortActionDescription(){return this._sortActionDescription}set sortActionDescription(e){this._updateSortActionDescription(e)}_sortActionDescription="Sort";disableClear;constructor(){u(ut).load(Di);let e=u(UU,{optional:!0});this._sort,e?.arrowPosition&&(this.arrowPosition=e?.arrowPosition)}ngOnInit(){!this.id&&this._columnDef&&(this.id=this._columnDef.name),this._sort.register(this),this._renderChanges=Je(this._sort._stateChanges,this._sort.sortChange).subscribe(()=>this._changeDetectorRef.markForCheck()),this._sortButton=this._elementRef.nativeElement.querySelector(".mat-sort-header-container"),this._updateSortActionDescription(this._sortActionDescription)}ngAfterViewInit(){this._focusMonitor.monitor(this._elementRef,!0).subscribe(()=>{Promise.resolve().then(()=>this._recentlyCleared.set(null))})}ngOnDestroy(){this._focusMonitor.stopMonitoring(this._elementRef),this._sort.deregister(this),this._renderChanges?.unsubscribe(),this._sortButton&&this._ariaDescriber?.removeDescription(this._sortButton,this._sortActionDescription)}_toggleOnInteraction(){if(!this._isDisabled()){let e=this._isSorted(),i=this._sort.direction;this._sort.sort(this),this._recentlyCleared.set(e&&!this._isSorted()?i:null)}}_handleKeydown(e){(e.keyCode===32||e.keyCode===13)&&(e.preventDefault(),this._toggleOnInteraction())}_isSorted(){return this._sort.active==this.id&&(this._sort.direction==="asc"||this._sort.direction==="desc")}_isDisabled(){return this._sort.disabled||this.disabled}_getAriaSortAttribute(){return this._isSorted()?this._sort.direction=="asc"?"ascending":"descending":"none"}_renderArrow(){return!this._isDisabled()||this._isSorted()}_updateSortActionDescription(e){this._sortButton&&(this._ariaDescriber?.removeDescription(this._sortButton,this._sortActionDescription),this._ariaDescriber?.describe(this._sortButton,e)),this._sortActionDescription=e}static \u0275fac=function(i){return new(i||t)};static \u0275cmp=E({type:t,selectors:[["","mat-sort-header",""]],hostAttrs:[1,"mat-sort-header"],hostVars:3,hostBindings:function(i,r){i&1&&S("click",function(){return r._toggleOnInteraction()})("keydown",function(a){return r._handleKeydown(a)})("mouseleave",function(){return r._recentlyCleared.set(null)}),i&2&&(X("aria-sort",r._getAriaSortAttribute()),G("mat-sort-header-disabled",r._isDisabled()))},inputs:{id:[0,"mat-sort-header","id"],arrowPosition:"arrowPosition",start:"start",disabled:[2,"disabled","disabled",V],sortActionDescription:"sortActionDescription",disableClear:[2,"disableClear","disableClear",V]},exportAs:["matSortHeader"],attrs:Kve,ngContentSelectors:Zve,decls:4,vars:17,consts:[[1,"mat-sort-header-container","mat-focus-indicator"],[1,"mat-sort-header-content"],[1,"mat-sort-header-arrow"],["viewBox","0 -960 960 960","focusable","false","aria-hidden","true"],["d","M440-240v-368L296-464l-56-56 240-240 240 240-56 56-144-144v368h-80Z"]],template:function(i,r){i&1&&(Me(),ft(0,"div",0)(1,"div",1),oe(2),vt(),N(3,Xve,3,0,"div",2),vt()),i&2&&(G("mat-sort-header-sorted",r._isSorted())("mat-sort-header-position-before",r.arrowPosition==="before")("mat-sort-header-descending",r._sort.direction==="desc")("mat-sort-header-ascending",r._sort.direction==="asc")("mat-sort-header-recently-cleared-ascending",r._recentlyCleared()==="asc")("mat-sort-header-recently-cleared-descending",r._recentlyCleared()==="desc")("mat-sort-header-animations-disabled",r._animationsDisabled),X("tabindex",r._isDisabled()?null:0)("role",r._isDisabled()?null:"button"),g(3),L(r._renderArrow()?3:-1))},styles:[`.mat-sort-header{cursor:pointer}.mat-sort-header-disabled{cursor:default}.mat-sort-header-container{display:flex;align-items:center;letter-spacing:normal;outline:0}[mat-sort-header].cdk-keyboard-focused .mat-sort-header-container,[mat-sort-header].cdk-program-focused .mat-sort-header-container{border-bottom:solid 1px currentColor}.mat-sort-header-container::before{margin:calc(calc(var(--mat-focus-indicator-border-width, 3px) + 2px)*-1)}.mat-sort-header-content{display:flex;align-items:center}.mat-sort-header-position-before{flex-direction:row-reverse}@keyframes _mat-sort-header-recently-cleared-ascending{from{transform:translateY(0);opacity:1}to{transform:translateY(-25%);opacity:0}}@keyframes _mat-sort-header-recently-cleared-descending{from{transform:translateY(0) rotate(180deg);opacity:1}to{transform:translateY(25%) rotate(180deg);opacity:0}}.mat-sort-header-arrow{height:12px;width:12px;position:relative;transition:transform 225ms cubic-bezier(0.4, 0, 0.2, 1),opacity 225ms cubic-bezier(0.4, 0, 0.2, 1);opacity:0;overflow:visible;color:var(--mat-sort-arrow-color, var(--mat-sys-on-surface))}.mat-sort-header.cdk-keyboard-focused .mat-sort-header-arrow,.mat-sort-header.cdk-program-focused .mat-sort-header-arrow,.mat-sort-header:hover .mat-sort-header-arrow{opacity:.54}.mat-sort-header .mat-sort-header-sorted .mat-sort-header-arrow{opacity:1}.mat-sort-header-descending .mat-sort-header-arrow{transform:rotate(180deg)}.mat-sort-header-recently-cleared-ascending .mat-sort-header-arrow{transform:translateY(-25%)}.mat-sort-header-recently-cleared-ascending .mat-sort-header-arrow{transition:none;animation:_mat-sort-header-recently-cleared-ascending 225ms cubic-bezier(0.4, 0, 0.2, 1) forwards}.mat-sort-header-recently-cleared-descending .mat-sort-header-arrow{transition:none;animation:_mat-sort-header-recently-cleared-descending 225ms cubic-bezier(0.4, 0, 0.2, 1) forwards}.mat-sort-header-animations-disabled .mat-sort-header-arrow{transition-duration:0ms;animation-duration:0ms}.mat-sort-header-arrow svg{width:24px;height:24px;fill:currentColor;position:absolute;top:50%;left:50%;margin:-12px 0 0 -12px;transform:translateZ(0)}.mat-sort-header-arrow,[dir=rtl] .mat-sort-header-position-before .mat-sort-header-arrow{margin:0 0 0 6px}.mat-sort-header-position-before .mat-sort-header-arrow,[dir=rtl] .mat-sort-header-arrow{margin:0 6px 0 0} -`],encapsulation:2,changeDetection:0})}return t})(),Ew=(()=>{class t{static \u0275fac=function(i){return new(i||t)};static \u0275mod=ee({type:t});static \u0275inj=J({providers:[t0e],imports:[we]})}return t})();var WU=()=>["HRAdmin","Manager"],GU=()=>["HRAdmin"];function i0e(t,n){if(t&1){let e=Y();h(0,"button",14),S("click",function(){I(e);let r=C();return A(r.createPosition())}),h(1,"mat-icon"),_(2,"add"),p(),_(3," Add Position "),p()}}function n0e(t,n){if(t&1){let e=Y();h(0,"button",15),S("click",function(){I(e);let r=C();return A(r.addMockData())}),h(1,"mat-icon"),_(2,"data_object"),p(),_(3," Add Mock Data "),p()}}function r0e(t,n){t&1&&(h(0,"div",16),k(1,"mat-spinner"),p())}function o0e(t,n){t&1&&(h(0,"th",30),_(1,"Position Number"),p())}function a0e(t,n){if(t&1&&(h(0,"td",31),_(1),p()),t&2){let e=n.$implicit;g(),H(e.positionNumber)}}function s0e(t,n){t&1&&(h(0,"th",30),_(1,"Position Title"),p())}function l0e(t,n){if(t&1&&(h(0,"td",31),_(1),p()),t&2){let e=n.$implicit;g(),H(e.positionTitle)}}function c0e(t,n){t&1&&(h(0,"th",30),_(1,"Department"),p())}function d0e(t,n){if(t&1&&(h(0,"td",31),_(1),p()),t&2){let e=n.$implicit;g(),H(e.department==null?null:e.department.name)}}function u0e(t,n){t&1&&(h(0,"th",30),_(1,"Salary Range"),p())}function m0e(t,n){if(t&1&&(h(0,"td",31),_(1),p()),t&2){let e=n.$implicit;g(),H(e.salaryRange==null?null:e.salaryRange.name)}}function h0e(t,n){t&1&&(h(0,"th",32),_(1,"Actions"),p())}function p0e(t,n){if(t&1){let e=Y();h(0,"button",38),S("click",function(){I(e);let r=C().$implicit,o=C(2);return A(o.editPosition(r))}),h(1,"mat-icon"),_(2,"edit"),p()()}}function f0e(t,n){if(t&1){let e=Y();h(0,"button",39),S("click",function(){I(e);let r=C().$implicit,o=C(2);return A(o.deletePosition(r))}),h(1,"mat-icon"),_(2,"delete"),p()()}}function g0e(t,n){if(t&1){let e=Y();h(0,"td",33)(1,"div",34)(2,"button",35),S("click",function(){let r=I(e).$implicit,o=C(2);return A(o.viewPosition(r))}),h(3,"mat-icon"),_(4,"visibility"),p()(),R(5,p0e,3,0,"button",36)(6,f0e,3,0,"button",37),p()()}t&2&&(g(5),y("appHasRole",at(2,WU)),g(),y("appHasRole",at(3,GU)))}function _0e(t,n){t&1&&k(0,"tr",40)}function b0e(t,n){t&1&&k(0,"tr",41)}function v0e(t,n){if(t&1&&(h(0,"tr",42)(1,"td",43)(2,"div",44)(3,"mat-icon"),_(4,"work_off"),p(),h(5,"p"),_(6,"No positions found"),p()()()()),t&2){let e=C(2);g(),X("colspan",e.displayedColumns.length)}}function y0e(t,n){if(t&1){let e=Y();h(0,"table",17),S("matSortChange",function(r){I(e);let o=C();return A(o.onSortChange(r))}),jt(1,18),R(2,o0e,2,0,"th",19)(3,a0e,2,1,"td",20),Lt(),jt(4,21),R(5,s0e,2,0,"th",19)(6,l0e,2,1,"td",20),Lt(),jt(7,22),R(8,c0e,2,0,"th",19)(9,d0e,2,1,"td",20),Lt(),jt(10,23),R(11,u0e,2,0,"th",19)(12,m0e,2,1,"td",20),Lt(),jt(13,24),R(14,h0e,2,0,"th",25)(15,g0e,7,4,"td",26),Lt(),R(16,_0e,1,0,"tr",27)(17,b0e,1,0,"tr",28)(18,v0e,7,1,"tr",29),p()}if(t&2){let e=C();y("dataSource",e.positions),g(16),y("matHeaderRowDef",e.displayedColumns),g(),y("matRowDefColumns",e.displayedColumns)}}var qU=(()=>{let n=class n{constructor(){this.positionService=u(Bc),this.authService=u(Tt),this.router=u(Re),this.dialog=u(En),this.snackBar=u(di),this.searchSubject=new z,this.positions=[],this.loading=!1,this.displayedColumns=["positionNumber","positionTitle","departmentId","salaryRangeId","actions"],this.totalCount=0,this.pageNumber=1,this.pageSize=10,this.pageSizeOptions=[5,10,25,50,100],this.searchPositionNumber="",this.searchPositionTitle="",this.searchDepartment=""}ngOnInit(){this.searchSubject.pipe(Rt(500)).subscribe(()=>{this.pageNumber=1,this.loadPositions()}),this.loadPositions()}ngAfterViewInit(){}loadPositions(){this.loading=!0;let i={pageNumber:this.pageNumber,pageSize:this.pageSize};this.searchPositionNumber&&(i.PositionNumber=this.searchPositionNumber),this.searchPositionTitle&&(i.PositionTitle=this.searchPositionTitle),this.searchDepartment&&(i.Department=this.searchDepartment),this.sort?.active&&this.sort?.direction&&(i.orderBy=`${this.sort.active} ${this.sort.direction}`),this.positionService.getAllPaged(i).subscribe({next:r=>{this.positions=r.value,this.totalCount=r.recordsTotal,this.loading=!1},error:r=>{console.error("Error loading positions:",r),this.loading=!1}})}onSearch(){this.searchSubject.next()}onPageChange(i){this.pageNumber=i.pageIndex+1,this.pageSize=i.pageSize,this.loadPositions()}onSortChange(i){this.loadPositions()}clearFilters(){this.searchPositionNumber="",this.searchPositionTitle="",this.searchDepartment="",this.pageNumber=1,this.loadPositions()}createPosition(){this.router.navigate(["/positions/create"])}viewPosition(i){this.router.navigate(["/positions",i.id])}editPosition(i){this.router.navigate(["/positions/edit",i.id])}deletePosition(i){this.dialog.open(Er,{width:"400px",data:{title:"Delete Position",message:`Are you sure you want to delete "${i.positionTitle}"? This action cannot be undone.`,confirmText:"Delete",cancelText:"Cancel"}}).afterClosed().subscribe(o=>{o&&this.positionService.delete(i.id).subscribe({next:()=>{this.showMessage(`"${i.positionTitle}" has been deleted.`),this.loadPositions()},error:a=>{console.error("Error deleting position:",a),this.showMessage("Failed to delete position. Please try again.")}})})}addMockData(){let i=prompt("How many mock positions would you like to add?","10");if(i){let r=parseInt(i,10);r>0&&r<=100?(this.loading=!0,this.positionService.addMockPositions({rowCount:r}).subscribe({next:()=>{this.showMessage(`${r} mock positions added successfully`),this.loadPositions()},error:o=>{console.error("Error adding mock positions:",o),this.showMessage("Error adding mock positions"),this.loading=!1}})):this.showMessage("Please enter a number between 1 and 100")}}showMessage(i){this.snackBar.open(i,"Close",{duration:3e3,horizontalPosition:"end",verticalPosition:"top"})}canEdit(){return this.authService.hasRole("HRAdmin")||this.authService.hasRole("Manager")}};n.\u0275fac=function(r){return new(r||n)},n.\u0275cmp=E({type:n,selectors:[["app-position-list"]],viewQuery:function(r,o){if(r&1&&(ie(ir,5),ie(Ml,5)),r&2){let a;B(a=j())&&(o.paginator=a.first),B(a=j())&&(o.sort=a.first)}},decls:36,vars:13,consts:[[1,"flex-spacer"],["mat-raised-button","","color","primary",3,"click",4,"appHasRole"],["mat-stroked-button","","color","accent","style","margin-left: 8px;",3,"click",4,"appHasRole"],[1,"search-filters",2,"margin-bottom","16px","display","flex","gap","16px","flex-wrap","wrap"],["appearance","outline",2,"flex","1","min-width","200px"],["matInput","","placeholder","Search by position number",3,"ngModelChange","input","ngModel"],["matSuffix",""],["matInput","","placeholder","Search by position title",3,"ngModelChange","input","ngModel"],["matInput","","placeholder","Search by department",3,"ngModelChange","input","ngModel"],["mat-stroked-button","",2,"height","56px",3,"click"],[1,"table-container"],["class","loading-spinner",4,"ngIf"],["mat-table","","matSort","","class","position-table",3,"dataSource","matSortChange",4,"ngIf"],["showFirstLastButtons","",3,"page","length","pageSize","pageSizeOptions","pageIndex"],["mat-raised-button","","color","primary",3,"click"],["mat-stroked-button","","color","accent",2,"margin-left","8px",3,"click"],[1,"loading-spinner"],["mat-table","","matSort","",1,"position-table",3,"matSortChange","dataSource"],["matColumnDef","positionNumber"],["mat-header-cell","","mat-sort-header","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","positionTitle"],["matColumnDef","departmentId"],["matColumnDef","salaryRangeId"],["matColumnDef","actions"],["mat-header-cell","","class","mat-column-actions",4,"matHeaderCellDef"],["mat-cell","","class","mat-column-actions",4,"matCellDef"],["mat-header-row","",4,"matHeaderRowDef"],["mat-row","",4,"matRowDef","matRowDefColumns"],["class","mat-row",4,"matNoDataRow"],["mat-header-cell","","mat-sort-header",""],["mat-cell",""],["mat-header-cell","",1,"mat-column-actions"],["mat-cell","",1,"mat-column-actions"],[1,"action-buttons"],["mat-icon-button","","color","primary","matTooltip","View Details",3,"click"],["mat-icon-button","","color","accent","matTooltip","Edit Position",3,"click",4,"appHasRole"],["mat-icon-button","","color","warn","matTooltip","Delete Position",3,"click",4,"appHasRole"],["mat-icon-button","","color","accent","matTooltip","Edit Position",3,"click"],["mat-icon-button","","color","warn","matTooltip","Delete Position",3,"click"],["mat-header-row",""],["mat-row",""],[1,"mat-row"],[1,"mat-cell"],[1,"no-data"]],template:function(r,o){r&1&&(k(0,"page-header"),h(1,"mat-card")(2,"mat-card-header")(3,"mat-card-title"),_(4,"Positions"),p(),k(5,"span",0),R(6,i0e,4,0,"button",1)(7,n0e,4,0,"button",2),p(),h(8,"mat-card-content")(9,"div",3)(10,"mat-form-field",4)(11,"mat-label"),_(12,"Position Number"),p(),h(13,"input",5),Uo("ngModelChange",function(s){return Ca(o.searchPositionNumber,s)||(o.searchPositionNumber=s),s}),S("input",function(){return o.onSearch()}),p(),h(14,"mat-icon",6),_(15,"search"),p()(),h(16,"mat-form-field",4)(17,"mat-label"),_(18,"Position Title"),p(),h(19,"input",7),Uo("ngModelChange",function(s){return Ca(o.searchPositionTitle,s)||(o.searchPositionTitle=s),s}),S("input",function(){return o.onSearch()}),p(),h(20,"mat-icon",6),_(21,"search"),p()(),h(22,"mat-form-field",4)(23,"mat-label"),_(24,"Department"),p(),h(25,"input",8),Uo("ngModelChange",function(s){return Ca(o.searchDepartment,s)||(o.searchDepartment=s),s}),S("input",function(){return o.onSearch()}),p(),h(26,"mat-icon",6),_(27,"search"),p()(),h(28,"button",9),S("click",function(){return o.clearFilters()}),h(29,"mat-icon"),_(30,"clear"),p(),_(31," Clear Filters "),p()(),h(32,"div",10),R(33,r0e,2,0,"div",11)(34,y0e,19,3,"table",12),p(),h(35,"mat-paginator",13),S("page",function(s){return o.onPageChange(s)}),p()()()),r&2&&(g(6),y("appHasRole",at(11,WU)),g(),y("appHasRole",at(12,GU)),g(6),zo("ngModel",o.searchPositionNumber),g(6),zo("ngModel",o.searchPositionTitle),g(6),zo("ngModel",o.searchDepartment),g(8),y("ngIf",o.loading),g(),y("ngIf",!o.loading),g(),y("length",o.totalCount)("pageSize",o.pageSize)("pageSizeOptions",o.pageSizeOptions)("pageIndex",o.pageNumber-1))},dependencies:[gt,li,ze,kt,ti,$t,zt,Ut,Jt,Xt,ot,mt,Zc,Hc,Uc,qc,$c,zc,Yc,Wc,Gc,Qc,Kc,gw,_c,ir,Ew,Ml,Dw,Si,ki,Br,Eo,Mn,$i,Oi,sn,ru,rr,hn,pi,du,Qi,ei,gg,ni,Un],styles:["mat-card[_ngcontent-%COMP%]{margin:16px}mat-card-header[_ngcontent-%COMP%]{display:flex;align-items:center;margin-bottom:16px;padding:16px;border-bottom:1px solid rgba(0,0,0,.12)}mat-card-header[_ngcontent-%COMP%] mat-card-title[_ngcontent-%COMP%]{font-size:20px;font-weight:500;margin:0}mat-card-header[_ngcontent-%COMP%] .flex-spacer[_ngcontent-%COMP%]{flex:1 1 auto}mat-card-header[_ngcontent-%COMP%] button[_ngcontent-%COMP%] mat-icon[_ngcontent-%COMP%]{margin-right:4px}mat-card-content[_ngcontent-%COMP%]{padding:0}.table-container[_ngcontent-%COMP%]{position:relative;min-height:300px;overflow-x:auto}.loading-spinner[_ngcontent-%COMP%]{display:flex;justify-content:center;align-items:center;min-height:300px}.position-table[_ngcontent-%COMP%]{width:100%}.position-table[_ngcontent-%COMP%] th[_ngcontent-%COMP%]{font-weight:600;font-size:14px;color:#000000de}.position-table[_ngcontent-%COMP%] td[_ngcontent-%COMP%]{font-size:14px;color:#000000de}.position-table[_ngcontent-%COMP%] .mat-column-positionNumber[_ngcontent-%COMP%]{min-width:150px}.position-table[_ngcontent-%COMP%] .mat-column-positionTitle[_ngcontent-%COMP%]{min-width:200px}.position-table[_ngcontent-%COMP%] .mat-column-departmentId[_ngcontent-%COMP%], .position-table[_ngcontent-%COMP%] .mat-column-salaryRangeId[_ngcontent-%COMP%]{min-width:150px}.position-table[_ngcontent-%COMP%] .mat-column-actions[_ngcontent-%COMP%]{width:150px;text-align:right}.position-table[_ngcontent-%COMP%] .action-buttons[_ngcontent-%COMP%]{display:flex;justify-content:flex-end;gap:4px}.position-table[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{margin-left:4px}.no-data[_ngcontent-%COMP%]{display:flex;flex-direction:column;align-items:center;justify-content:center;padding:48px 16px;color:#0000008a}.no-data[_ngcontent-%COMP%] mat-icon[_ngcontent-%COMP%]{font-size:48px;width:48px;height:48px;margin-bottom:16px}.no-data[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{margin:0;font-size:16px}mat-paginator[_ngcontent-%COMP%]{border-top:1px solid rgba(0,0,0,.12)}"]});let t=n;return t})();var YU=()=>["HRAdmin","Manager"];function x0e(t,n){t&1&&(h(0,"div",2),k(1,"mat-spinner"),p())}function C0e(t,n){if(t&1){let e=Y();h(0,"button",9),S("click",function(){I(e);let r=C(2);return A(r.editPosition())}),h(1,"mat-icon"),_(2,"edit"),p()()}}function w0e(t,n){if(t&1){let e=Y();h(0,"button",10),S("click",function(){I(e);let r=C(2);return A(r.deletePosition())}),h(1,"mat-icon"),_(2,"delete"),p()()}}function D0e(t,n){if(t&1&&(h(0,"mat-list-item")(1,"span",7),_(2,"Description:"),p(),h(3,"span",8),_(4),p()()),t&2){let e=C(2);g(4),H(e.position.positionDescription)}}function E0e(t,n){t&1&&k(0,"mat-divider")}function M0e(t,n){if(t&1&&(h(0,"mat-list-item")(1,"span",7),_(2,"Created:"),p(),h(3,"span",8),_(4),me(5,"date"),p()()),t&2){let e=C(2);g(4),H(Ni(5,1,e.position.createdAt,"medium"))}}function k0e(t,n){t&1&&k(0,"mat-divider")}function S0e(t,n){if(t&1&&(h(0,"mat-list-item")(1,"span",7),_(2,"Last Modified:"),p(),h(3,"span",8),_(4),me(5,"date"),p()()),t&2){let e=C(2);g(4),H(Ni(5,1,e.position.lastModifiedAt,"medium"))}}function T0e(t,n){if(t&1){let e=Y();h(0,"mat-card")(1,"mat-card-header")(2,"mat-card-title"),_(3),p(),h(4,"div",3),R(5,C0e,3,0,"button",4)(6,w0e,3,0,"button",5),h(7,"button",6),S("click",function(){I(e);let r=C();return A(r.goBack())}),h(8,"mat-icon"),_(9,"arrow_back"),p()()()(),h(10,"mat-card-content")(11,"mat-list")(12,"mat-list-item")(13,"span",7),_(14,"Position Number:"),p(),h(15,"span",8),_(16),p()(),k(17,"mat-divider"),h(18,"mat-list-item")(19,"span",7),_(20,"Position Title:"),p(),h(21,"span",8),_(22),p()(),k(23,"mat-divider"),R(24,D0e,5,1,"mat-list-item",1)(25,E0e,1,0,"mat-divider",1),h(26,"mat-list-item")(27,"span",7),_(28,"Department:"),p(),h(29,"span",8),_(30),p()(),k(31,"mat-divider"),h(32,"mat-list-item")(33,"span",7),_(34,"Salary Range:"),p(),h(35,"span",8),_(36),p()(),k(37,"mat-divider"),R(38,M0e,6,4,"mat-list-item",1)(39,k0e,1,0,"mat-divider",1)(40,S0e,6,4,"mat-list-item",1),p()()()}if(t&2){let e=C();g(3),H(e.position.positionTitle),g(2),y("appHasRole",at(12,YU)),g(),y("appHasRole",at(13,YU)),g(10),H(e.position.positionNumber),g(6),H(e.position.positionTitle),g(2),y("ngIf",e.position.positionDescription),g(),y("ngIf",e.position.positionDescription),g(5),H((e.position.department==null?null:e.position.department.name)||e.position.departmentId),g(6),H((e.position.salaryRange==null?null:e.position.salaryRange.name)||e.position.salaryRangeId),g(2),y("ngIf",e.position.createdAt),g(),y("ngIf",e.position.createdAt),g(),y("ngIf",e.position.lastModifiedAt)}}function I0e(t,n){t&1&&(h(0,"mat-card")(1,"mat-card-content")(2,"p"),_(3,"Position not found."),p()()())}var QU=(()=>{let n=class n{constructor(){this.positionService=u(Bc),this.authService=u(Tt),this.route=u(wi),this.router=u(Re),this.snackBar=u(di),this.dialog=u(En),this.loading=!1}ngOnInit(){let i=this.route.snapshot.paramMap.get("id");i&&this.loadPosition(i)}loadPosition(i){this.loading=!0,this.positionService.getById(i).subscribe({next:r=>{this.position=r,this.loading=!1},error:r=>{console.error("Error loading position:",r),this.showMessage("Error loading position"),this.loading=!1,this.router.navigate(["/positions"])}})}editPosition(){this.router.navigate(["/positions","edit",this.position.id])}deletePosition(){this.dialog.open(Er,{width:"400px",data:{title:"Delete Position",message:`Are you sure you want to delete "${this.position.positionTitle}"? This action cannot be undone.`,confirmText:"Delete",cancelText:"Cancel"}}).afterClosed().subscribe(r=>{r&&this.positionService.delete(this.position.id).subscribe({next:()=>{let o=this.snackBar.open(`"${this.position.positionTitle}" has been deleted.`,"Close",{duration:3e3,horizontalPosition:"end",verticalPosition:"top"});o.afterDismissed().subscribe(()=>this.router.navigate(["/positions"])),o.onAction().subscribe(()=>this.router.navigate(["/positions"]))},error:o=>{console.error("Error deleting position:",o),this.showMessage("Failed to delete position. Please try again.")}})})}goBack(){this.router.navigate(["/positions"])}canEdit(){return this.authService.isHRAdmin()||this.authService.isManager()}canDelete(){return this.authService.isHRAdmin()||this.authService.isManager()}showMessage(i){this.snackBar.open(i,"Close",{duration:3e3,horizontalPosition:"end",verticalPosition:"top"})}};n.\u0275fac=function(r){return new(r||n)},n.\u0275cmp=E({type:n,selectors:[["app-position-detail"]],decls:4,vars:3,consts:[["class","loading-spinner",4,"ngIf"],[4,"ngIf"],[1,"loading-spinner"],[1,"header-actions"],["mat-icon-button","","color","primary","matTooltip","Edit Position",3,"click",4,"appHasRole"],["mat-icon-button","","color","warn","matTooltip","Delete Position",3,"click",4,"appHasRole"],["mat-icon-button","","matTooltip","Back to List",3,"click"],[1,"label"],[1,"value"],["mat-icon-button","","color","primary","matTooltip","Edit Position",3,"click"],["mat-icon-button","","color","warn","matTooltip","Delete Position",3,"click"]],template:function(r,o){r&1&&(k(0,"page-header"),R(1,x0e,2,0,"div",0)(2,T0e,41,14,"mat-card",1)(3,I0e,4,0,"mat-card",1)),r&2&&(g(),y("ngIf",o.loading),g(),y("ngIf",!o.loading&&o.position),g(),y("ngIf",!o.loading&&!o.position))},dependencies:[gt,li,ze,ti,$t,zt,Ut,Jt,Xt,ot,mt,ca,Fs,la,Ha,sa,Si,ki,pi,Mn,ni,Un,Sa],styles:[".loading-spinner[_ngcontent-%COMP%]{display:flex;justify-content:center;align-items:center;min-height:400px}mat-card[_ngcontent-%COMP%]{margin:16px;max-width:800px}mat-card-header[_ngcontent-%COMP%]{padding:16px;border-bottom:1px solid rgba(0,0,0,.12);display:flex;justify-content:space-between;align-items:center}mat-card-header[_ngcontent-%COMP%] mat-card-title[_ngcontent-%COMP%]{font-size:24px;font-weight:500;margin:0}mat-card-header[_ngcontent-%COMP%] .header-actions[_ngcontent-%COMP%]{display:flex;gap:8px}mat-card-content[_ngcontent-%COMP%]{padding:0}mat-list[_ngcontent-%COMP%]{padding:0}mat-list-item[_ngcontent-%COMP%]{height:auto!important;min-height:48px;padding:12px 16px;display:flex;justify-content:space-between;align-items:flex-start}mat-list-item[_ngcontent-%COMP%] .label[_ngcontent-%COMP%]{font-weight:500;color:#0009;min-width:180px}mat-list-item[_ngcontent-%COMP%] .value[_ngcontent-%COMP%]{flex:1;text-align:right;word-break:break-word}"]});let t=n;return t})();function A0e(t,n){t&1&&(h(0,"div",0),k(1,"mat-spinner"),p())}function O0e(t,n){t&1&&(h(0,"mat-error"),_(1," Position title is required "),p())}function R0e(t,n){t&1&&(h(0,"mat-error"),_(1," Position title cannot exceed 100 characters "),p())}function P0e(t,n){t&1&&(h(0,"mat-error"),_(1," Position number is required "),p())}function F0e(t,n){t&1&&(h(0,"mat-error"),_(1," Position number cannot exceed 50 characters "),p())}function N0e(t,n){t&1&&(h(0,"mat-error"),_(1," Position description cannot exceed 500 characters "),p())}function L0e(t,n){if(t&1&&(h(0,"mat-option",14),_(1),p()),t&2){let e=n.$implicit;y("value",e.id),g(),ve(" ",e.name," ")}}function V0e(t,n){t&1&&(h(0,"mat-error"),_(1," Department is required "),p())}function B0e(t,n){if(t&1&&(h(0,"mat-option",14),_(1),me(2,"number"),me(3,"number"),p()),t&2){let e=n.$implicit;y("value",e.id),g(),Cm(" ",e.name," ($",Ni(2,4,e.minSalary,"1.0-0")," - $",Ni(3,7,e.maxSalary,"1.0-0"),") ")}}function j0e(t,n){t&1&&(h(0,"mat-error"),_(1," Salary range is required "),p())}var sA=(()=>{let n=class n{constructor(){this.fb=u(eo),this.router=u(Re),this.route=u(wi),this.snackBar=u(di),this.positionService=u(Bc),this.departmentService=u(Vs),this.salaryRangeService=u(jc),this.loading=!1,this.isEditMode=!1,this.departments=[],this.salaryRanges=[]}ngOnInit(){this.initForm(),this.loadDepartments(),this.loadSalaryRanges(),this.checkEditMode()}initForm(){this.positionForm=this.fb.group({positionTitle:["",[Le.required,Le.maxLength(100)]],positionNumber:["",[Le.required,Le.maxLength(50)]],positionDescription:["",[Le.maxLength(500)]],departmentId:["",Le.required],salaryRangeId:["",Le.required]})}loadDepartments(){this.departmentService.getAll().subscribe({next:i=>{this.departments=i},error:i=>{console.error("Error loading departments:",i),this.showMessage("Error loading departments")}})}loadSalaryRanges(){this.salaryRangeService.getAll().subscribe({next:i=>{this.salaryRanges=i},error:i=>{console.error("Error loading salary ranges:",i),this.showMessage("Error loading salary ranges")}})}checkEditMode(){this.positionId=this.route.snapshot.paramMap.get("id")||void 0,this.isEditMode=!!this.positionId,this.isEditMode&&this.positionId&&this.loadPosition(this.positionId)}loadPosition(i){this.loading=!0,this.positionService.getById(i).subscribe({next:r=>{this.positionForm.patchValue({positionTitle:r.positionTitle,positionNumber:r.positionNumber,positionDescription:r.positionDescription,departmentId:r.departmentId,salaryRangeId:r.salaryRangeId}),this.loading=!1},error:r=>{console.error("Error loading position:",r),this.showMessage("Error loading position"),this.loading=!1}})}onSubmit(){if(this.positionForm.invalid){this.positionForm.markAllAsTouched();return}if(this.loading=!0,this.isEditMode&&this.positionId){let i=M({id:this.positionId},this.positionForm.value);this.positionService.updatePosition(i).subscribe({next:()=>{this.showMessage("Position updated successfully"),this.router.navigate(["/positions",this.positionId])},error:r=>{console.error("Error updating position:",r),this.showMessage("Error updating position"),this.loading=!1}})}else{let i=this.positionForm.value;this.positionService.createPosition(i).subscribe({next:r=>{console.log("Position created - Response:",r),console.log("Position ID:",r?.id),this.showMessage("Position created successfully"),r?.id?(console.log("Navigating to detail page:","/positions/"+r.id),this.router.navigate(["/positions",r.id])):(console.warn("No position ID returned, navigating to list page"),this.router.navigate(["/positions"])),this.loading=!1},error:r=>{console.error("Error creating position:",r),this.showMessage("Error creating position"),this.loading=!1}})}}onCancel(){this.router.navigate(["/positions"])}showMessage(i){this.snackBar.open(i,"Close",{duration:3e3,horizontalPosition:"end",verticalPosition:"top"})}getFormTitle(){return this.isEditMode?"Edit Position":"Create Position"}};n.\u0275fac=function(r){return new(r||n)},n.\u0275cmp=E({type:n,selectors:[["app-position-form"]],decls:43,vars:14,consts:[[1,"loading-overlay"],[3,"ngSubmit","formGroup"],[1,"form-section"],["appearance","outline",1,"full-width"],["matInput","","formControlName","positionTitle"],[4,"ngIf"],["matInput","","formControlName","positionNumber"],["matInput","","formControlName","positionDescription","rows","4"],["formControlName","departmentId"],[3,"value",4,"ngFor","ngForOf"],["formControlName","salaryRangeId"],[1,"form-actions"],["type","button","mat-stroked-button","",3,"click"],["type","submit","mat-raised-button","","color","primary",3,"disabled"],[3,"value"]],template:function(r,o){if(r&1&&(k(0,"page-header"),h(1,"mat-card")(2,"mat-card-header")(3,"mat-card-title"),_(4),p()(),h(5,"mat-card-content"),N(6,A0e,2,0,"div",0),h(7,"form",1),S("ngSubmit",function(){return o.onSubmit()}),h(8,"div",2)(9,"mat-form-field",3)(10,"mat-label"),_(11,"Position Title"),p(),k(12,"input",4),R(13,O0e,2,0,"mat-error",5)(14,R0e,2,0,"mat-error",5),p(),h(15,"mat-form-field",3)(16,"mat-label"),_(17,"Position Number"),p(),k(18,"input",6),R(19,P0e,2,0,"mat-error",5)(20,F0e,2,0,"mat-error",5),p(),h(21,"mat-form-field",3)(22,"mat-label"),_(23,"Position Description"),p(),k(24,"textarea",7),R(25,N0e,2,0,"mat-error",5),p(),h(26,"mat-form-field",3)(27,"mat-label"),_(28,"Department"),p(),h(29,"mat-select",8),R(30,L0e,2,2,"mat-option",9),p(),R(31,V0e,2,0,"mat-error",5),p(),h(32,"mat-form-field",3)(33,"mat-label"),_(34,"Salary Range"),p(),h(35,"mat-select",10),R(36,B0e,4,10,"mat-option",9),p(),R(37,j0e,2,0,"mat-error",5),p()(),h(38,"div",11)(39,"button",12),S("click",function(){return o.onCancel()}),_(40," Cancel "),p(),h(41,"button",13),_(42),p()()()()()),r&2){let a,s,l,c,d,m,f;g(4),H(o.getFormTitle()),g(2),L(o.loading?6:-1),g(),y("formGroup",o.positionForm),g(6),y("ngIf",(a=o.positionForm.get("positionTitle"))==null?null:a.hasError("required")),g(),y("ngIf",(s=o.positionForm.get("positionTitle"))==null?null:s.hasError("maxlength")),g(5),y("ngIf",(l=o.positionForm.get("positionNumber"))==null?null:l.hasError("required")),g(),y("ngIf",(c=o.positionForm.get("positionNumber"))==null?null:c.hasError("maxlength")),g(5),y("ngIf",(d=o.positionForm.get("positionDescription"))==null?null:d.hasError("maxlength")),g(5),y("ngForOf",o.departments),g(),y("ngIf",(m=o.positionForm.get("departmentId"))==null?null:m.hasError("required")),g(5),y("ngForOf",o.salaryRanges),g(),y("ngIf",(f=o.positionForm.get("salaryRangeId"))==null?null:f.hasError("required")),g(4),y("disabled",o.loading),g(),ve(" ",o.isEditMode?"Update":"Create"," ")}},dependencies:[gt,qr,li,zn,Jr,Qi,ei,Xr,Ki,Lr,ze,kt,$t,zt,Ut,Jt,Xt,$i,Oi,sn,xo,rr,hn,fc,Na,xn,Si,ki,pi,ni,ff],styles:["mat-card[_ngcontent-%COMP%]{margin:16px;max-width:800px}mat-card-header[_ngcontent-%COMP%]{margin-bottom:16px;padding:16px;border-bottom:1px solid rgba(0,0,0,.12)}mat-card-header[_ngcontent-%COMP%] mat-card-title[_ngcontent-%COMP%]{font-size:20px;font-weight:500;margin:0}mat-card-content[_ngcontent-%COMP%]{padding:16px;position:relative}.loading-overlay[_ngcontent-%COMP%]{position:absolute;inset:0;background-color:#fffc;display:flex;align-items:center;justify-content:center;z-index:1000}.form-section[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:16px;margin-bottom:24px}.form-section[_ngcontent-%COMP%] .full-width[_ngcontent-%COMP%]{width:100%}.form-actions[_ngcontent-%COMP%]{display:flex;gap:12px;justify-content:flex-end;padding-top:16px;border-top:1px solid rgba(0,0,0,.12)}"]});let t=n;return t})();var KU=()=>["HRAdmin","Manager"],H0e=()=>[5,10,25,50],z0e=()=>["HRAdmin"];function U0e(t,n){if(t&1){let e=Y();h(0,"button",6),S("click",function(){I(e);let r=C();return A(r.createSalaryRange())}),h(1,"mat-icon"),_(2,"add"),p(),_(3," Add Salary Range "),p()}}function $0e(t,n){t&1&&(h(0,"div",7),k(1,"mat-spinner"),p())}function W0e(t,n){t&1&&(h(0,"th",20),_(1,"Range Name"),p())}function G0e(t,n){if(t&1&&(h(0,"td",21),_(1),p()),t&2){let e=n.$implicit;g(),H(e.name)}}function q0e(t,n){t&1&&(h(0,"th",20),_(1,"Minimum Salary"),p())}function Y0e(t,n){if(t&1&&(h(0,"td",21),_(1),me(2,"currency"),p()),t&2){let e=n.$implicit;g(),H(Dm(2,1,e.minSalary,"USD","symbol","1.0-0"))}}function Q0e(t,n){t&1&&(h(0,"th",20),_(1,"Maximum Salary"),p())}function K0e(t,n){if(t&1&&(h(0,"td",21),_(1),me(2,"currency"),p()),t&2){let e=n.$implicit;g(),H(Dm(2,1,e.maxSalary,"USD","symbol","1.0-0"))}}function Z0e(t,n){t&1&&(h(0,"th",22),_(1,"Actions"),p())}function X0e(t,n){if(t&1){let e=Y();h(0,"button",28),S("click",function(){I(e);let r=C().$implicit,o=C(2);return A(o.editSalaryRange(r))}),h(1,"mat-icon"),_(2,"edit"),p()()}}function J0e(t,n){if(t&1){let e=Y();h(0,"button",29),S("click",function(){I(e);let r=C().$implicit,o=C(2);return A(o.deleteSalaryRange(r))}),h(1,"mat-icon"),_(2,"delete"),p()()}}function eye(t,n){if(t&1){let e=Y();h(0,"td",23)(1,"div",24)(2,"button",25),S("click",function(){let r=I(e).$implicit,o=C(2);return A(o.viewSalaryRange(r))}),h(3,"mat-icon"),_(4,"visibility"),p()(),R(5,X0e,3,0,"button",26)(6,J0e,3,0,"button",27),p()()}t&2&&(g(5),y("appHasRole",at(2,KU)),g(),y("appHasRole",at(3,z0e)))}function tye(t,n){t&1&&k(0,"tr",30)}function iye(t,n){t&1&&k(0,"tr",31)}function nye(t,n){if(t&1&&(h(0,"tr",32)(1,"td",33)(2,"div",34)(3,"mat-icon"),_(4,"money_off"),p(),h(5,"p"),_(6,"No salary ranges found"),p()()()()),t&2){let e=C(2);g(),X("colspan",e.displayedColumns.length)}}function rye(t,n){if(t&1&&(h(0,"table",8),jt(1,9),R(2,W0e,2,0,"th",10)(3,G0e,2,1,"td",11),Lt(),jt(4,12),R(5,q0e,2,0,"th",10)(6,Y0e,3,6,"td",11),Lt(),jt(7,13),R(8,Q0e,2,0,"th",10)(9,K0e,3,6,"td",11),Lt(),jt(10,14),R(11,Z0e,2,0,"th",15)(12,eye,7,4,"td",16),Lt(),R(13,tye,1,0,"tr",17)(14,iye,1,0,"tr",18)(15,nye,7,1,"tr",19),p()),t&2){let e=C();y("dataSource",e.dataSource),g(13),y("matHeaderRowDef",e.displayedColumns),g(),y("matRowDefColumns",e.displayedColumns)}}var ZU=(()=>{let n=class n{constructor(){this.salaryRangeService=u(jc),this.authService=u(Tt),this.router=u(Re),this.snackBar=u(di),this.dialog=u(En),this.dataSource=new fw([]),this.loading=!1,this.displayedColumns=["name","minSalary","maxSalary","actions"]}ngOnInit(){this.loadSalaryRanges()}ngAfterViewInit(){this.dataSource.paginator=this.paginator,this.dataSource.sort=this.sort}loadSalaryRanges(){this.loading=!0,this.salaryRangeService.getAll().subscribe({next:i=>{this.dataSource.data=i,this.loading=!1},error:i=>{console.error("Error loading salary ranges:",i),this.loading=!1}})}createSalaryRange(){this.router.navigate(["/salary-ranges/create"])}viewSalaryRange(i){this.router.navigate(["/salary-ranges",i.id])}editSalaryRange(i){this.router.navigate(["/salary-ranges/edit",i.id])}deleteSalaryRange(i){this.dialog.open(Er,{width:"400px",data:{title:"Delete Salary Range",message:`Are you sure you want to delete "${i.name}"? This action cannot be undone.`,confirmText:"Delete",cancelText:"Cancel"}}).afterClosed().subscribe(o=>{o&&this.salaryRangeService.delete(i.id).subscribe({next:()=>{this.showMessage(`"${i.name}" has been deleted.`),this.loadSalaryRanges()},error:a=>{console.error("Error deleting salary range:",a),this.showMessage("Failed to delete salary range. Please try again.")}})})}showMessage(i){this.snackBar.open(i,"Close",{duration:3e3,horizontalPosition:"end",verticalPosition:"top"})}canEdit(){return this.authService.hasRole("HRAdmin")||this.authService.hasRole("Manager")}};n.\u0275fac=function(r){return new(r||n)},n.\u0275cmp=E({type:n,selectors:[["app-salary-range-list"]],viewQuery:function(r,o){if(r&1&&(ie(ir,5),ie(Ml,5)),r&2){let a;B(a=j())&&(o.paginator=a.first),B(a=j())&&(o.sort=a.first)}},decls:12,vars:6,consts:[[1,"flex-spacer"],["mat-raised-button","","color","primary",3,"click",4,"appHasRole"],[1,"table-container"],["class","loading-spinner",4,"ngIf"],["mat-table","","matSort","","class","salary-range-table",3,"dataSource",4,"ngIf"],["showFirstLastButtons","",3,"pageSizeOptions"],["mat-raised-button","","color","primary",3,"click"],[1,"loading-spinner"],["mat-table","","matSort","",1,"salary-range-table",3,"dataSource"],["matColumnDef","name"],["mat-header-cell","","mat-sort-header","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","minSalary"],["matColumnDef","maxSalary"],["matColumnDef","actions"],["mat-header-cell","","class","mat-column-actions",4,"matHeaderCellDef"],["mat-cell","","class","mat-column-actions",4,"matCellDef"],["mat-header-row","",4,"matHeaderRowDef"],["mat-row","",4,"matRowDef","matRowDefColumns"],["class","mat-row",4,"matNoDataRow"],["mat-header-cell","","mat-sort-header",""],["mat-cell",""],["mat-header-cell","",1,"mat-column-actions"],["mat-cell","",1,"mat-column-actions"],[1,"action-buttons"],["mat-icon-button","","color","primary","matTooltip","View Details",3,"click"],["mat-icon-button","","color","accent","matTooltip","Edit Salary Range",3,"click",4,"appHasRole"],["mat-icon-button","","color","warn","matTooltip","Delete Salary Range",3,"click",4,"appHasRole"],["mat-icon-button","","color","accent","matTooltip","Edit Salary Range",3,"click"],["mat-icon-button","","color","warn","matTooltip","Delete Salary Range",3,"click"],["mat-header-row",""],["mat-row",""],[1,"mat-row"],[1,"mat-cell"],[1,"no-data"]],template:function(r,o){r&1&&(k(0,"page-header"),h(1,"mat-card")(2,"mat-card-header")(3,"mat-card-title"),_(4,"Salary Ranges"),p(),k(5,"span",0),R(6,U0e,4,0,"button",1),p(),h(7,"mat-card-content")(8,"div",2),R(9,$0e,2,0,"div",3)(10,rye,16,3,"table",4),p(),k(11,"mat-paginator",5),p()()),r&2&&(g(6),y("appHasRole",at(4,KU)),g(3),y("ngIf",o.loading),g(),y("ngIf",!o.loading),g(),y("pageSizeOptions",at(5,H0e)))},dependencies:[gt,li,ze,kt,ti,$t,zt,Ut,Jt,Xt,ot,mt,Zc,Hc,Uc,qc,$c,zc,Yc,Wc,Gc,Qc,Kc,gw,_c,ir,Ew,Ml,Dw,Si,ki,Br,Eo,pi,Mn,ni,Un,il],styles:["mat-card[_ngcontent-%COMP%]{margin:16px}mat-card-header[_ngcontent-%COMP%]{display:flex;align-items:center;margin-bottom:16px;padding:16px;border-bottom:1px solid rgba(0,0,0,.12)}mat-card-header[_ngcontent-%COMP%] mat-card-title[_ngcontent-%COMP%]{font-size:20px;font-weight:500;margin:0}mat-card-header[_ngcontent-%COMP%] .flex-spacer[_ngcontent-%COMP%]{flex:1 1 auto}mat-card-header[_ngcontent-%COMP%] button[_ngcontent-%COMP%] mat-icon[_ngcontent-%COMP%]{margin-right:4px}mat-card-content[_ngcontent-%COMP%]{padding:0}.table-container[_ngcontent-%COMP%]{position:relative;min-height:300px;overflow-x:auto}.loading-spinner[_ngcontent-%COMP%]{display:flex;justify-content:center;align-items:center;min-height:300px}.salary-range-table[_ngcontent-%COMP%]{width:100%}.salary-range-table[_ngcontent-%COMP%] th[_ngcontent-%COMP%]{font-weight:600;font-size:14px;color:#000000de}.salary-range-table[_ngcontent-%COMP%] td[_ngcontent-%COMP%]{font-size:14px;color:#000000de}.salary-range-table[_ngcontent-%COMP%] .mat-column-name[_ngcontent-%COMP%]{min-width:200px}.salary-range-table[_ngcontent-%COMP%] .mat-column-minSalary[_ngcontent-%COMP%], .salary-range-table[_ngcontent-%COMP%] .mat-column-maxSalary[_ngcontent-%COMP%]{min-width:150px}.salary-range-table[_ngcontent-%COMP%] .mat-column-actions[_ngcontent-%COMP%]{width:150px;text-align:right}.salary-range-table[_ngcontent-%COMP%] .action-buttons[_ngcontent-%COMP%]{display:flex;justify-content:flex-end;gap:4px}.salary-range-table[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{margin-left:4px}.no-data[_ngcontent-%COMP%]{display:flex;flex-direction:column;align-items:center;justify-content:center;padding:48px 16px;color:#0000008a}.no-data[_ngcontent-%COMP%] mat-icon[_ngcontent-%COMP%]{font-size:48px;width:48px;height:48px;margin-bottom:16px}.no-data[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{margin:0;font-size:16px}mat-paginator[_ngcontent-%COMP%]{border-top:1px solid rgba(0,0,0,.12)}"]});let t=n;return t})();var XU=()=>["HRAdmin","Manager"];function oye(t,n){t&1&&(h(0,"div",2),k(1,"mat-spinner"),p())}function aye(t,n){if(t&1){let e=Y();h(0,"button",9),S("click",function(){I(e);let r=C(2);return A(r.editSalaryRange())}),h(1,"mat-icon"),_(2,"edit"),p()()}}function sye(t,n){if(t&1){let e=Y();h(0,"button",10),S("click",function(){I(e);let r=C(2);return A(r.deleteSalaryRange())}),h(1,"mat-icon"),_(2,"delete"),p()()}}function lye(t,n){if(t&1&&(h(0,"mat-list-item")(1,"span",7),_(2,"Created:"),p(),h(3,"span",8),_(4),me(5,"date"),p()()),t&2){let e=C(2);g(4),H(Ni(5,1,e.salaryRange.createdAt,"medium"))}}function cye(t,n){t&1&&k(0,"mat-divider")}function dye(t,n){if(t&1&&(h(0,"mat-list-item")(1,"span",7),_(2,"Last Modified:"),p(),h(3,"span",8),_(4),me(5,"date"),p()()),t&2){let e=C(2);g(4),H(Ni(5,1,e.salaryRange.lastModifiedAt,"medium"))}}function uye(t,n){if(t&1){let e=Y();h(0,"mat-card")(1,"mat-card-header")(2,"mat-card-title"),_(3),p(),h(4,"div",3),R(5,aye,3,0,"button",4)(6,sye,3,0,"button",5),h(7,"button",6),S("click",function(){I(e);let r=C();return A(r.goBack())}),h(8,"mat-icon"),_(9,"arrow_back"),p()()()(),h(10,"mat-card-content")(11,"mat-list")(12,"mat-list-item")(13,"span",7),_(14,"Name:"),p(),h(15,"span",8),_(16),p()(),k(17,"mat-divider"),h(18,"mat-list-item")(19,"span",7),_(20,"Minimum Salary:"),p(),h(21,"span",8),_(22),me(23,"currency"),p()(),k(24,"mat-divider"),h(25,"mat-list-item")(26,"span",7),_(27,"Maximum Salary:"),p(),h(28,"span",8),_(29),me(30,"currency"),p()(),k(31,"mat-divider"),R(32,lye,6,4,"mat-list-item",1)(33,cye,1,0,"mat-divider",1)(34,dye,6,4,"mat-list-item",1),p()()()}if(t&2){let e=C();g(3),H(e.salaryRange.name),g(2),y("appHasRole",at(13,XU)),g(),y("appHasRole",at(14,XU)),g(10),H(e.salaryRange.name),g(6),H(Oe(23,9,e.salaryRange.minSalary)),g(7),H(Oe(30,11,e.salaryRange.maxSalary)),g(3),y("ngIf",e.salaryRange.createdAt),g(),y("ngIf",e.salaryRange.createdAt),g(),y("ngIf",e.salaryRange.lastModifiedAt)}}function mye(t,n){t&1&&(h(0,"mat-card")(1,"mat-card-content")(2,"p"),_(3,"Salary range not found."),p()()())}var JU=(()=>{let n=class n{constructor(){this.salaryRangeService=u(jc),this.authService=u(Tt),this.route=u(wi),this.router=u(Re),this.snackBar=u(di),this.dialog=u(En),this.loading=!1}ngOnInit(){let i=this.route.snapshot.paramMap.get("id");i&&this.loadSalaryRange(i)}loadSalaryRange(i){this.loading=!0,this.salaryRangeService.getById(i).subscribe({next:r=>{this.salaryRange=r,this.loading=!1},error:r=>{console.error("Error loading salary range:",r),this.showMessage("Error loading salary range"),this.loading=!1,this.router.navigate(["/salary-ranges"])}})}editSalaryRange(){this.router.navigate(["/salary-ranges","edit",this.salaryRange.id])}deleteSalaryRange(){this.dialog.open(Er,{width:"400px",data:{title:"Delete Salary Range",message:`Are you sure you want to delete "${this.salaryRange.name}"? This action cannot be undone.`,confirmText:"Delete",cancelText:"Cancel"}}).afterClosed().subscribe(r=>{r&&this.salaryRangeService.delete(this.salaryRange.id).subscribe({next:()=>{let o=this.snackBar.open(`"${this.salaryRange.name}" has been deleted.`,"Close",{duration:3e3,horizontalPosition:"end",verticalPosition:"top"});o.afterDismissed().subscribe(()=>this.router.navigate(["/salary-ranges"])),o.onAction().subscribe(()=>this.router.navigate(["/salary-ranges"]))},error:o=>{console.error("Error deleting salary range:",o),this.showMessage("Failed to delete salary range. Please try again.")}})})}goBack(){this.router.navigate(["/salary-ranges"])}canEdit(){return this.authService.isHRAdmin()||this.authService.isManager()}canDelete(){return this.authService.isHRAdmin()||this.authService.isManager()}showMessage(i){this.snackBar.open(i,"Close",{duration:3e3,horizontalPosition:"end",verticalPosition:"top"})}};n.\u0275fac=function(r){return new(r||n)},n.\u0275cmp=E({type:n,selectors:[["app-salary-range-detail"]],decls:4,vars:3,consts:[["class","loading-spinner",4,"ngIf"],[4,"ngIf"],[1,"loading-spinner"],[1,"header-actions"],["mat-icon-button","","color","primary","matTooltip","Edit Salary Range",3,"click",4,"appHasRole"],["mat-icon-button","","color","warn","matTooltip","Delete Salary Range",3,"click",4,"appHasRole"],["mat-icon-button","","matTooltip","Back to List",3,"click"],[1,"label"],[1,"value"],["mat-icon-button","","color","primary","matTooltip","Edit Salary Range",3,"click"],["mat-icon-button","","color","warn","matTooltip","Delete Salary Range",3,"click"]],template:function(r,o){r&1&&(k(0,"page-header"),R(1,oye,2,0,"div",0)(2,uye,35,15,"mat-card",1)(3,mye,4,0,"mat-card",1)),r&2&&(g(),y("ngIf",o.loading),g(),y("ngIf",!o.loading&&o.salaryRange),g(),y("ngIf",!o.loading&&!o.salaryRange))},dependencies:[gt,li,ze,ti,$t,zt,Ut,Jt,Xt,ot,mt,ca,Fs,la,Ha,sa,Si,ki,pi,Mn,ni,Un,il,Sa],styles:[".loading-spinner[_ngcontent-%COMP%]{display:flex;justify-content:center;align-items:center;min-height:400px}mat-card[_ngcontent-%COMP%]{margin:16px;max-width:800px}mat-card-header[_ngcontent-%COMP%]{padding:16px;border-bottom:1px solid rgba(0,0,0,.12);display:flex;justify-content:space-between;align-items:center}mat-card-header[_ngcontent-%COMP%] mat-card-title[_ngcontent-%COMP%]{font-size:24px;font-weight:500;margin:0}mat-card-header[_ngcontent-%COMP%] .header-actions[_ngcontent-%COMP%]{display:flex;gap:8px}mat-card-content[_ngcontent-%COMP%]{padding:0}mat-list[_ngcontent-%COMP%]{padding:0}mat-list-item[_ngcontent-%COMP%]{height:auto!important;min-height:48px;padding:12px 16px;display:flex;justify-content:space-between;align-items:flex-start}mat-list-item[_ngcontent-%COMP%] .label[_ngcontent-%COMP%]{font-weight:500;color:#0009;min-width:180px}mat-list-item[_ngcontent-%COMP%] .value[_ngcontent-%COMP%]{flex:1;text-align:right;word-break:break-word}"]});let t=n;return t})();function hye(t,n){t&1&&(h(0,"div",0),k(1,"mat-spinner"),p())}function pye(t,n){t&1&&(h(0,"mat-error"),_(1," Range name is required "),p())}function fye(t,n){t&1&&(h(0,"mat-error"),_(1," Range name cannot exceed 100 characters "),p())}function gye(t,n){t&1&&(h(0,"mat-error"),_(1," Minimum salary is required "),p())}function _ye(t,n){t&1&&(h(0,"mat-error"),_(1," Minimum salary must be at least 0 "),p())}function bye(t,n){t&1&&(h(0,"mat-error"),_(1," Maximum salary is required "),p())}function vye(t,n){t&1&&(h(0,"mat-error"),_(1," Maximum salary must be at least 0 "),p())}function yye(t,n){t&1&&(h(0,"mat-error",13),_(1," Maximum salary must be greater than minimum salary "),p())}var lA=(()=>{let n=class n{constructor(){this.fb=u(eo),this.router=u(Re),this.route=u(wi),this.snackBar=u(di),this.salaryRangeService=u(jc),this.loading=!1,this.isEditMode=!1}ngOnInit(){this.initForm(),this.checkEditMode()}initForm(){this.salaryRangeForm=this.fb.group({name:["",[Le.required,Le.maxLength(100)]],minSalary:["",[Le.required,Le.min(0)]],maxSalary:["",[Le.required,Le.min(0)]]},{validators:this.salaryRangeValidator})}salaryRangeValidator(i){let r=i.get("minSalary")?.value,o=i.get("maxSalary")?.value;return r&&o&&parseFloat(r)>=parseFloat(o)?{salaryRangeInvalid:!0}:null}checkEditMode(){this.salaryRangeId=this.route.snapshot.paramMap.get("id")||void 0,this.isEditMode=!!this.salaryRangeId,this.isEditMode&&this.salaryRangeId&&this.loadSalaryRange(this.salaryRangeId)}loadSalaryRange(i){this.loading=!0,this.salaryRangeService.getById(i).subscribe({next:r=>{this.salaryRangeForm.patchValue({name:r.name,minSalary:r.minSalary,maxSalary:r.maxSalary}),this.loading=!1},error:r=>{console.error("Error loading salary range:",r),this.showMessage("Error loading salary range"),this.loading=!1}})}onSubmit(){if(this.salaryRangeForm.invalid){this.salaryRangeForm.markAllAsTouched();return}if(this.loading=!0,this.isEditMode&&this.salaryRangeId){let i={id:this.salaryRangeId,name:this.salaryRangeForm.value.name,minSalary:parseFloat(this.salaryRangeForm.value.minSalary),maxSalary:parseFloat(this.salaryRangeForm.value.maxSalary)};this.salaryRangeService.updateSalaryRange(i).subscribe({next:()=>{this.showMessage("Salary range updated successfully"),this.router.navigate(["/salary-ranges",this.salaryRangeId])},error:r=>{console.error("Error updating salary range:",r),this.showMessage("Error updating salary range"),this.loading=!1}})}else{let i={name:this.salaryRangeForm.value.name,minSalary:parseFloat(this.salaryRangeForm.value.minSalary),maxSalary:parseFloat(this.salaryRangeForm.value.maxSalary)};this.salaryRangeService.createSalaryRange(i).subscribe({next:r=>{console.log("Salary range created - Response:",r),console.log("Salary range ID:",r?.id),this.showMessage("Salary range created successfully"),r?.id?(console.log("Navigating to detail page:","/salary-ranges/"+r.id),this.router.navigate(["/salary-ranges",r.id])):(console.warn("No salary range ID returned, navigating to list page"),this.router.navigate(["/salary-ranges"])),this.loading=!1},error:r=>{console.error("Error creating salary range:",r),this.showMessage("Error creating salary range"),this.loading=!1}})}}onCancel(){this.router.navigate(["/salary-ranges"])}showMessage(i){this.snackBar.open(i,"Close",{duration:3e3,horizontalPosition:"end",verticalPosition:"top"})}getFormTitle(){return this.isEditMode?"Edit Salary Range":"Create Salary Range"}};n.\u0275fac=function(r){return new(r||n)},n.\u0275cmp=E({type:n,selectors:[["app-salary-range-form"]],decls:37,vars:12,consts:[[1,"loading-overlay"],[3,"ngSubmit","formGroup"],[1,"form-section"],["appearance","outline",1,"full-width"],["matInput","","formControlName","name"],[4,"ngIf"],["matInput","","type","number","formControlName","minSalary"],["matTextPrefix",""],["matInput","","type","number","formControlName","maxSalary"],["class","range-error",4,"ngIf"],[1,"form-actions"],["type","button","mat-stroked-button","",3,"click"],["type","submit","mat-raised-button","","color","primary",3,"disabled"],[1,"range-error"]],template:function(r,o){if(r&1&&(k(0,"page-header"),h(1,"mat-card")(2,"mat-card-header")(3,"mat-card-title"),_(4),p()(),h(5,"mat-card-content"),N(6,hye,2,0,"div",0),h(7,"form",1),S("ngSubmit",function(){return o.onSubmit()}),h(8,"div",2)(9,"mat-form-field",3)(10,"mat-label"),_(11,"Range Name"),p(),k(12,"input",4),R(13,pye,2,0,"mat-error",5)(14,fye,2,0,"mat-error",5),p(),h(15,"mat-form-field",3)(16,"mat-label"),_(17,"Minimum Salary"),p(),k(18,"input",6),h(19,"span",7),_(20,"$\xA0"),p(),R(21,gye,2,0,"mat-error",5)(22,_ye,2,0,"mat-error",5),p(),h(23,"mat-form-field",3)(24,"mat-label"),_(25,"Maximum Salary"),p(),k(26,"input",8),h(27,"span",7),_(28,"$\xA0"),p(),R(29,bye,2,0,"mat-error",5)(30,vye,2,0,"mat-error",5),p(),R(31,yye,2,0,"mat-error",9),p(),h(32,"div",10)(33,"button",11),S("click",function(){return o.onCancel()}),_(34," Cancel "),p(),h(35,"button",12),_(36),p()()()()()),r&2){let a,s,l,c,d,m;g(4),H(o.getFormTitle()),g(2),L(o.loading?6:-1),g(),y("formGroup",o.salaryRangeForm),g(6),y("ngIf",(a=o.salaryRangeForm.get("name"))==null?null:a.hasError("required")),g(),y("ngIf",(s=o.salaryRangeForm.get("name"))==null?null:s.hasError("maxlength")),g(7),y("ngIf",(l=o.salaryRangeForm.get("minSalary"))==null?null:l.hasError("required")),g(),y("ngIf",(c=o.salaryRangeForm.get("minSalary"))==null?null:c.hasError("min")),g(7),y("ngIf",(d=o.salaryRangeForm.get("maxSalary"))==null?null:d.hasError("required")),g(),y("ngIf",(m=o.salaryRangeForm.get("maxSalary"))==null?null:m.hasError("min")),g(),y("ngIf",o.salaryRangeForm.hasError("salaryRangeInvalid")&&o.salaryRangeForm.touched),g(4),y("disabled",o.loading),g(),ve(" ",o.isEditMode?"Update":"Create"," ")}},dependencies:[gt,li,zn,Jr,Qi,cu,ei,Xr,Ki,Lr,ze,kt,$t,zt,Ut,Jt,Xt,$i,Oi,sn,xo,nu,rr,hn,Si,ki,pi,ni],styles:["mat-card[_ngcontent-%COMP%]{margin:16px;max-width:800px}mat-card-header[_ngcontent-%COMP%]{margin-bottom:16px;padding:16px;border-bottom:1px solid rgba(0,0,0,.12)}mat-card-header[_ngcontent-%COMP%] mat-card-title[_ngcontent-%COMP%]{font-size:20px;font-weight:500;margin:0}mat-card-content[_ngcontent-%COMP%]{padding:16px;position:relative}.loading-overlay[_ngcontent-%COMP%]{position:absolute;inset:0;background-color:#fffc;display:flex;align-items:center;justify-content:center;z-index:1000}.form-section[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:16px;margin-bottom:24px}.form-section[_ngcontent-%COMP%] .full-width[_ngcontent-%COMP%]{width:100%}.form-section[_ngcontent-%COMP%] .range-error[_ngcontent-%COMP%]{color:#f44336;font-size:12px;margin-top:-8px}.form-actions[_ngcontent-%COMP%]{display:flex;gap:12px;justify-content:flex-end;padding-top:16px;border-top:1px solid rgba(0,0,0,.12)}"]});let t=n;return t})();var xye=["*",[["mat-chip-avatar"],["","matChipAvatar",""]],[["mat-chip-trailing-icon"],["","matChipRemove",""],["","matChipTrailingIcon",""]]],Cye=["*","mat-chip-avatar, [matChipAvatar]","mat-chip-trailing-icon,[matChipRemove],[matChipTrailingIcon]"];function wye(t,n){t&1&&(h(0,"span",3),oe(1,1),p())}function Dye(t,n){t&1&&(h(0,"span",6),oe(1,2),p())}var Eye=["*"];var Mye=new T("mat-chips-default-options",{providedIn:"root",factory:()=>({separatorKeyCodes:[13]})}),e6=new T("MatChipAvatar"),t6=new T("MatChipTrailingIcon"),i6=new T("MatChipEdit"),n6=new T("MatChipRemove"),o6=new T("MatChip"),r6=(()=>{class t{_elementRef=u(q);_parentChip=u(o6);isInteractive=!0;_isPrimary=!0;_isLeading=!1;get disabled(){return this._disabled||this._parentChip?.disabled||!1}set disabled(e){this._disabled=e}_disabled=!1;tabIndex=-1;_allowFocusWhenDisabled=!1;_getDisabledAttribute(){return this.disabled&&!this._allowFocusWhenDisabled?"":null}_getTabindex(){return this.disabled&&!this._allowFocusWhenDisabled||!this.isInteractive?null:this.tabIndex.toString()}constructor(){u(ut).load(Di),this._elementRef.nativeElement.nodeName==="BUTTON"&&this._elementRef.nativeElement.setAttribute("type","button")}focus(){this._elementRef.nativeElement.focus()}_handleClick(e){!this.disabled&&this.isInteractive&&this._isPrimary&&(e.preventDefault(),this._parentChip._handlePrimaryActionInteraction())}_handleKeydown(e){(e.keyCode===13||e.keyCode===32)&&!this.disabled&&this.isInteractive&&this._isPrimary&&!this._parentChip._isEditing&&(e.preventDefault(),this._parentChip._handlePrimaryActionInteraction())}static \u0275fac=function(i){return new(i||t)};static \u0275dir=F({type:t,selectors:[["","matChipAction",""]],hostAttrs:[1,"mdc-evolution-chip__action","mat-mdc-chip-action"],hostVars:11,hostBindings:function(i,r){i&1&&S("click",function(a){return r._handleClick(a)})("keydown",function(a){return r._handleKeydown(a)}),i&2&&(X("tabindex",r._getTabindex())("disabled",r._getDisabledAttribute())("aria-disabled",r.disabled),G("mdc-evolution-chip__action--primary",r._isPrimary)("mdc-evolution-chip__action--presentational",!r.isInteractive)("mdc-evolution-chip__action--secondary",!r._isPrimary)("mdc-evolution-chip__action--trailing",!r._isPrimary&&!r._isLeading))},inputs:{isInteractive:"isInteractive",disabled:[2,"disabled","disabled",V],tabIndex:[2,"tabIndex","tabIndex",e=>e==null?-1:ct(e)],_allowFocusWhenDisabled:"_allowFocusWhenDisabled"}})}return t})();var cA=(()=>{class t{_changeDetectorRef=u(ye);_elementRef=u(q);_tagName=u(ZM);_ngZone=u(ae);_focusMonitor=u(Yt);_globalRippleOptions=u(Cs,{optional:!0});_document=u(ge);_onFocus=new z;_onBlur=new z;_isBasicChip;role=null;_hasFocusInternal=!1;_pendingFocus;_actionChanges;_animationsDisabled=Ye();_allLeadingIcons;_allTrailingIcons;_allEditIcons;_allRemoveIcons;_hasFocus(){return this._hasFocusInternal}id=u(Ze).getId("mat-mdc-chip-");ariaLabel=null;ariaDescription=null;_chipListDisabled=!1;_hadFocusOnRemove=!1;_textElement;get value(){return this._value!==void 0?this._value:this._textElement.textContent.trim()}set value(e){this._value=e}_value;color;removable=!0;highlighted=!1;disableRipple=!1;get disabled(){return this._disabled||this._chipListDisabled}set disabled(e){this._disabled=e}_disabled=!1;removed=new U;destroyed=new U;basicChipAttrName="mat-basic-chip";leadingIcon;editIcon;trailingIcon;removeIcon;primaryAction;_rippleLoader=u(Z0);_injector=u(de);constructor(){let e=u(ut);e.load(Di),e.load(Qr),this._monitorFocus(),this._rippleLoader?.configureRipple(this._elementRef.nativeElement,{className:"mat-mdc-chip-ripple",disabled:this._isRippleDisabled()})}ngOnInit(){this._isBasicChip=this._elementRef.nativeElement.hasAttribute(this.basicChipAttrName)||this._tagName.toLowerCase()===this.basicChipAttrName}ngAfterViewInit(){this._textElement=this._elementRef.nativeElement.querySelector(".mat-mdc-chip-action-label"),this._pendingFocus&&(this._pendingFocus=!1,this.focus())}ngAfterContentInit(){this._actionChanges=Je(this._allLeadingIcons.changes,this._allTrailingIcons.changes,this._allEditIcons.changes,this._allRemoveIcons.changes).subscribe(()=>this._changeDetectorRef.markForCheck())}ngDoCheck(){this._rippleLoader.setDisabled(this._elementRef.nativeElement,this._isRippleDisabled())}ngOnDestroy(){this._focusMonitor.stopMonitoring(this._elementRef),this._rippleLoader?.destroyRipple(this._elementRef.nativeElement),this._actionChanges?.unsubscribe(),this.destroyed.emit({chip:this}),this.destroyed.complete()}remove(){this.removable&&(this._hadFocusOnRemove=this._hasFocus(),this.removed.emit({chip:this}))}_isRippleDisabled(){return this.disabled||this.disableRipple||this._animationsDisabled||this._isBasicChip||!this._hasInteractiveActions()||!!this._globalRippleOptions?.disabled}_hasTrailingIcon(){return!!(this.trailingIcon||this.removeIcon)}_handleKeydown(e){(e.keyCode===8&&!e.repeat||e.keyCode===46)&&(e.preventDefault(),this.remove())}focus(){this.disabled||(this.primaryAction?this.primaryAction.focus():this._pendingFocus=!0)}_getSourceAction(e){return this._getActions().find(i=>{let r=i._elementRef.nativeElement;return r===e||r.contains(e)})}_getActions(){let e=[];return this.editIcon&&e.push(this.editIcon),this.primaryAction&&e.push(this.primaryAction),this.removeIcon&&e.push(this.removeIcon),this.trailingIcon&&e.push(this.trailingIcon),e}_handlePrimaryActionInteraction(){}_hasInteractiveActions(){return this._getActions().some(e=>e.isInteractive)}_edit(e){}_monitorFocus(){this._focusMonitor.monitor(this._elementRef,!0).subscribe(e=>{let i=e!==null;i!==this._hasFocusInternal&&(this._hasFocusInternal=i,i?this._onFocus.next({chip:this}):(this._changeDetectorRef.markForCheck(),setTimeout(()=>this._ngZone.run(()=>this._onBlur.next({chip:this})))))})}static \u0275fac=function(i){return new(i||t)};static \u0275cmp=E({type:t,selectors:[["mat-basic-chip"],["","mat-basic-chip",""],["mat-chip"],["","mat-chip",""]],contentQueries:function(i,r,o){if(i&1&&(xe(o,e6,5),xe(o,i6,5),xe(o,t6,5),xe(o,n6,5),xe(o,e6,5),xe(o,t6,5),xe(o,i6,5),xe(o,n6,5)),i&2){let a;B(a=j())&&(r.leadingIcon=a.first),B(a=j())&&(r.editIcon=a.first),B(a=j())&&(r.trailingIcon=a.first),B(a=j())&&(r.removeIcon=a.first),B(a=j())&&(r._allLeadingIcons=a),B(a=j())&&(r._allTrailingIcons=a),B(a=j())&&(r._allEditIcons=a),B(a=j())&&(r._allRemoveIcons=a)}},viewQuery:function(i,r){if(i&1&&ie(r6,5),i&2){let o;B(o=j())&&(r.primaryAction=o.first)}},hostAttrs:[1,"mat-mdc-chip"],hostVars:31,hostBindings:function(i,r){i&1&&S("keydown",function(a){return r._handleKeydown(a)}),i&2&&(si("id",r.id),X("role",r.role)("aria-label",r.ariaLabel),it("mat-"+(r.color||"primary")),G("mdc-evolution-chip",!r._isBasicChip)("mdc-evolution-chip--disabled",r.disabled)("mdc-evolution-chip--with-trailing-action",r._hasTrailingIcon())("mdc-evolution-chip--with-primary-graphic",r.leadingIcon)("mdc-evolution-chip--with-primary-icon",r.leadingIcon)("mdc-evolution-chip--with-avatar",r.leadingIcon)("mat-mdc-chip-with-avatar",r.leadingIcon)("mat-mdc-chip-highlighted",r.highlighted)("mat-mdc-chip-disabled",r.disabled)("mat-mdc-basic-chip",r._isBasicChip)("mat-mdc-standard-chip",!r._isBasicChip)("mat-mdc-chip-with-trailing-icon",r._hasTrailingIcon())("_mat-animation-noopable",r._animationsDisabled))},inputs:{role:"role",id:"id",ariaLabel:[0,"aria-label","ariaLabel"],ariaDescription:[0,"aria-description","ariaDescription"],value:"value",color:"color",removable:[2,"removable","removable",V],highlighted:[2,"highlighted","highlighted",V],disableRipple:[2,"disableRipple","disableRipple",V],disabled:[2,"disabled","disabled",V]},outputs:{removed:"removed",destroyed:"destroyed"},exportAs:["matChip"],features:[Ce([{provide:o6,useExisting:t}])],ngContentSelectors:Cye,decls:8,vars:3,consts:[[1,"mat-mdc-chip-focus-overlay"],[1,"mdc-evolution-chip__cell","mdc-evolution-chip__cell--primary"],["matChipAction","",3,"isInteractive"],[1,"mdc-evolution-chip__graphic","mat-mdc-chip-graphic"],[1,"mdc-evolution-chip__text-label","mat-mdc-chip-action-label"],[1,"mat-mdc-chip-primary-focus-indicator","mat-focus-indicator"],[1,"mdc-evolution-chip__cell","mdc-evolution-chip__cell--trailing"]],template:function(i,r){i&1&&(Me(xye),k(0,"span",0),h(1,"span",1)(2,"span",2),N(3,wye,2,0,"span",3),h(4,"span",4),oe(5),k(6,"span",5),p()()(),N(7,Dye,2,0,"span",6)),i&2&&(g(2),y("isInteractive",!1),g(),L(r.leadingIcon?3:-1),g(4),L(r._hasTrailingIcon()?7:-1))},dependencies:[r6],styles:[`.mdc-evolution-chip,.mdc-evolution-chip__cell,.mdc-evolution-chip__action{display:inline-flex;align-items:center}.mdc-evolution-chip{position:relative;max-width:100%}.mdc-evolution-chip__cell,.mdc-evolution-chip__action{height:100%}.mdc-evolution-chip__cell--primary{flex-basis:100%;overflow-x:hidden}.mdc-evolution-chip__cell--trailing{flex:1 0 auto}.mdc-evolution-chip__action{align-items:center;background:none;border:none;box-sizing:content-box;cursor:pointer;display:inline-flex;justify-content:center;outline:none;padding:0;text-decoration:none;color:inherit}.mdc-evolution-chip__action--presentational{cursor:auto}.mdc-evolution-chip--disabled,.mdc-evolution-chip__action:disabled{pointer-events:none}@media(forced-colors: active){.mdc-evolution-chip--disabled,.mdc-evolution-chip__action:disabled{forced-color-adjust:none}}.mdc-evolution-chip__action--primary{font:inherit;letter-spacing:inherit;white-space:inherit;overflow-x:hidden}.mat-mdc-standard-chip .mdc-evolution-chip__action--primary::before{border-width:var(--mat-chip-outline-width, 1px);border-radius:var(--mat-chip-container-shape-radius, 8px);box-sizing:border-box;content:"";height:100%;left:0;position:absolute;pointer-events:none;top:0;width:100%;z-index:1;border-style:solid}.mat-mdc-standard-chip .mdc-evolution-chip__action--primary{padding-left:12px;padding-right:12px}.mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic .mdc-evolution-chip__action--primary{padding-left:0;padding-right:12px}[dir=rtl] .mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic .mdc-evolution-chip__action--primary{padding-left:12px;padding-right:0}.mat-mdc-standard-chip:not(.mdc-evolution-chip--disabled) .mdc-evolution-chip__action--primary::before{border-color:var(--mat-chip-outline-color, var(--mat-sys-outline))}.mdc-evolution-chip__action--primary:not(.mdc-evolution-chip__action--presentational):not(.mdc-ripple-upgraded):focus::before{border-color:var(--mat-chip-focus-outline-color, var(--mat-sys-on-surface-variant))}.mat-mdc-standard-chip.mdc-evolution-chip--disabled .mdc-evolution-chip__action--primary::before{border-color:var(--mat-chip-disabled-outline-color, color-mix(in srgb, var(--mat-sys-on-surface) 12%, transparent))}.mat-mdc-standard-chip.mdc-evolution-chip--selected .mdc-evolution-chip__action--primary::before{border-width:var(--mat-chip-flat-selected-outline-width, 0)}.mat-mdc-basic-chip .mdc-evolution-chip__action--primary{font:inherit}.mat-mdc-standard-chip.mdc-evolution-chip--with-leading-action .mdc-evolution-chip__action--primary{padding-left:0;padding-right:12px}[dir=rtl] .mat-mdc-standard-chip.mdc-evolution-chip--with-leading-action .mdc-evolution-chip__action--primary{padding-left:12px;padding-right:0}.mat-mdc-standard-chip.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--primary{padding-left:12px;padding-right:0}[dir=rtl] .mat-mdc-standard-chip.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--primary{padding-left:0;padding-right:12px}.mat-mdc-standard-chip.mdc-evolution-chip--with-leading-action.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--primary{padding-left:0;padding-right:0}.mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--primary{padding-left:0;padding-right:0}[dir=rtl] .mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--primary{padding-left:0;padding-right:0}.mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic .mdc-evolution-chip__action--primary{padding-left:0;padding-right:12px}[dir=rtl] .mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic .mdc-evolution-chip__action--primary{padding-left:12px;padding-right:0}.mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--primary{padding-left:0;padding-right:0}[dir=rtl] .mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--primary{padding-left:0;padding-right:0}.mdc-evolution-chip__action--secondary{position:relative;overflow:visible}.mat-mdc-standard-chip:not(.mdc-evolution-chip--disabled) .mdc-evolution-chip__action--secondary{color:var(--mat-chip-with-trailing-icon-trailing-icon-color, var(--mat-sys-on-surface-variant))}.mat-mdc-standard-chip.mdc-evolution-chip--disabled .mdc-evolution-chip__action--secondary{color:var(--mat-chip-with-trailing-icon-disabled-trailing-icon-color, var(--mat-sys-on-surface))}.mat-mdc-standard-chip.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--secondary{padding-left:8px;padding-right:8px}.mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--secondary{padding-left:8px;padding-right:8px}.mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--secondary{padding-left:8px;padding-right:8px}[dir=rtl] .mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--secondary{padding-left:8px;padding-right:8px}.mdc-evolution-chip__text-label{-webkit-user-select:none;user-select:none;white-space:nowrap;text-overflow:ellipsis;overflow:hidden}.mat-mdc-standard-chip .mdc-evolution-chip__text-label{font-family:var(--mat-chip-label-text-font, var(--mat-sys-label-large-font));line-height:var(--mat-chip-label-text-line-height, var(--mat-sys-label-large-line-height));font-size:var(--mat-chip-label-text-size, var(--mat-sys-label-large-size));font-weight:var(--mat-chip-label-text-weight, var(--mat-sys-label-large-weight));letter-spacing:var(--mat-chip-label-text-tracking, var(--mat-sys-label-large-tracking))}.mat-mdc-standard-chip:not(.mdc-evolution-chip--disabled) .mdc-evolution-chip__text-label{color:var(--mat-chip-label-text-color, var(--mat-sys-on-surface-variant))}.mat-mdc-standard-chip.mdc-evolution-chip--selected:not(.mdc-evolution-chip--disabled) .mdc-evolution-chip__text-label{color:var(--mat-chip-selected-label-text-color, var(--mat-sys-on-secondary-container))}.mat-mdc-standard-chip.mdc-evolution-chip--disabled .mdc-evolution-chip__text-label,.mat-mdc-standard-chip.mdc-evolution-chip--selected.mdc-evolution-chip--disabled .mdc-evolution-chip__text-label{color:var(--mat-chip-disabled-label-text-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent))}.mdc-evolution-chip__graphic{align-items:center;display:inline-flex;justify-content:center;overflow:hidden;pointer-events:none;position:relative;flex:1 0 auto}.mat-mdc-standard-chip .mdc-evolution-chip__graphic{width:var(--mat-chip-with-avatar-avatar-size, 24px);height:var(--mat-chip-with-avatar-avatar-size, 24px);font-size:var(--mat-chip-with-avatar-avatar-size, 24px)}.mdc-evolution-chip--selecting .mdc-evolution-chip__graphic{transition:width 150ms 0ms cubic-bezier(0.4, 0, 0.2, 1)}.mdc-evolution-chip--selectable:not(.mdc-evolution-chip--selected):not(.mdc-evolution-chip--with-primary-icon) .mdc-evolution-chip__graphic{width:0}.mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic .mdc-evolution-chip__graphic{padding-left:6px;padding-right:6px}.mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic .mdc-evolution-chip__graphic{padding-left:4px;padding-right:8px}[dir=rtl] .mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic .mdc-evolution-chip__graphic{padding-left:8px;padding-right:4px}.mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__graphic{padding-left:6px;padding-right:6px}.mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__graphic{padding-left:4px;padding-right:8px}[dir=rtl] .mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__graphic{padding-left:8px;padding-right:4px}.mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-leading-action .mdc-evolution-chip__graphic{padding-left:0}.mdc-evolution-chip__checkmark{position:absolute;opacity:0;top:50%;left:50%;height:20px;width:20px}.mat-mdc-standard-chip:not(.mdc-evolution-chip--disabled) .mdc-evolution-chip__checkmark{color:var(--mat-chip-with-icon-selected-icon-color, var(--mat-sys-on-secondary-container))}.mat-mdc-standard-chip.mdc-evolution-chip--disabled .mdc-evolution-chip__checkmark{color:var(--mat-chip-with-icon-disabled-icon-color, var(--mat-sys-on-surface))}.mdc-evolution-chip--selecting .mdc-evolution-chip__checkmark{transition:transform 150ms 0ms cubic-bezier(0.4, 0, 0.2, 1);transform:translate(-75%, -50%)}.mdc-evolution-chip--selected .mdc-evolution-chip__checkmark{transform:translate(-50%, -50%);opacity:1}.mdc-evolution-chip__checkmark-svg{display:block}.mdc-evolution-chip__checkmark-path{stroke-width:2px;stroke-dasharray:29.7833385;stroke-dashoffset:29.7833385;stroke:currentColor}.mdc-evolution-chip--selecting .mdc-evolution-chip__checkmark-path{transition:stroke-dashoffset 150ms 45ms cubic-bezier(0.4, 0, 0.2, 1)}.mdc-evolution-chip--selected .mdc-evolution-chip__checkmark-path{stroke-dashoffset:0}@media(forced-colors: active){.mdc-evolution-chip__checkmark-path{stroke:CanvasText !important}}.mat-mdc-standard-chip .mdc-evolution-chip__icon--trailing{height:18px;width:18px;font-size:18px}.mdc-evolution-chip--disabled .mdc-evolution-chip__icon--trailing.mat-mdc-chip-remove{opacity:calc(var(--mat-chip-trailing-action-opacity, 1)*var(--mat-chip-with-trailing-icon-disabled-trailing-icon-opacity, 0.38))}.mdc-evolution-chip--disabled .mdc-evolution-chip__icon--trailing.mat-mdc-chip-remove:focus{opacity:calc(var(--mat-chip-trailing-action-focus-opacity, 1)*var(--mat-chip-with-trailing-icon-disabled-trailing-icon-opacity, 0.38))}.mat-mdc-standard-chip{border-radius:var(--mat-chip-container-shape-radius, 8px);height:var(--mat-chip-container-height, 32px)}.mat-mdc-standard-chip:not(.mdc-evolution-chip--disabled){background-color:var(--mat-chip-elevated-container-color, transparent)}.mat-mdc-standard-chip.mdc-evolution-chip--disabled{background-color:var(--mat-chip-elevated-disabled-container-color)}.mat-mdc-standard-chip.mdc-evolution-chip--selected:not(.mdc-evolution-chip--disabled){background-color:var(--mat-chip-elevated-selected-container-color, var(--mat-sys-secondary-container))}.mat-mdc-standard-chip.mdc-evolution-chip--selected.mdc-evolution-chip--disabled{background-color:var(--mat-chip-flat-disabled-selected-container-color, color-mix(in srgb, var(--mat-sys-on-surface) 12%, transparent))}@media(forced-colors: active){.mat-mdc-standard-chip{outline:solid 1px}}.mat-mdc-standard-chip .mdc-evolution-chip__icon--primary{border-radius:var(--mat-chip-with-avatar-avatar-shape-radius, 24px);width:var(--mat-chip-with-icon-icon-size, 18px);height:var(--mat-chip-with-icon-icon-size, 18px);font-size:var(--mat-chip-with-icon-icon-size, 18px)}.mdc-evolution-chip--selected .mdc-evolution-chip__icon--primary{opacity:0}.mat-mdc-standard-chip:not(.mdc-evolution-chip--disabled) .mdc-evolution-chip__icon--primary{color:var(--mat-chip-with-icon-icon-color, var(--mat-sys-on-surface-variant))}.mat-mdc-standard-chip.mdc-evolution-chip--disabled .mdc-evolution-chip__icon--primary{color:var(--mat-chip-with-icon-disabled-icon-color, var(--mat-sys-on-surface))}.mat-mdc-chip-highlighted{--mat-chip-with-icon-icon-color: var(--mat-chip-with-icon-selected-icon-color, var(--mat-sys-on-secondary-container));--mat-chip-elevated-container-color: var(--mat-chip-elevated-selected-container-color, var(--mat-sys-secondary-container));--mat-chip-label-text-color: var(--mat-chip-selected-label-text-color, var(--mat-sys-on-secondary-container));--mat-chip-outline-width: var(--mat-chip-flat-selected-outline-width, 0)}.mat-mdc-chip-focus-overlay{background:var(--mat-chip-focus-state-layer-color, var(--mat-sys-on-surface-variant))}.mat-mdc-chip-selected .mat-mdc-chip-focus-overlay,.mat-mdc-chip-highlighted .mat-mdc-chip-focus-overlay{background:var(--mat-chip-selected-focus-state-layer-color, var(--mat-sys-on-secondary-container))}.mat-mdc-chip:hover .mat-mdc-chip-focus-overlay{background:var(--mat-chip-hover-state-layer-color, var(--mat-sys-on-surface-variant));opacity:var(--mat-chip-hover-state-layer-opacity, var(--mat-sys-hover-state-layer-opacity))}.mat-mdc-chip-focus-overlay .mat-mdc-chip-selected:hover,.mat-mdc-chip-highlighted:hover .mat-mdc-chip-focus-overlay{background:var(--mat-chip-selected-hover-state-layer-color, var(--mat-sys-on-secondary-container));opacity:var(--mat-chip-selected-hover-state-layer-opacity, var(--mat-sys-hover-state-layer-opacity))}.mat-mdc-chip.cdk-focused .mat-mdc-chip-focus-overlay{background:var(--mat-chip-focus-state-layer-color, var(--mat-sys-on-surface-variant));opacity:var(--mat-chip-focus-state-layer-opacity, var(--mat-sys-focus-state-layer-opacity))}.mat-mdc-chip-selected.cdk-focused .mat-mdc-chip-focus-overlay,.mat-mdc-chip-highlighted.cdk-focused .mat-mdc-chip-focus-overlay{background:var(--mat-chip-selected-focus-state-layer-color, var(--mat-sys-on-secondary-container));opacity:var(--mat-chip-selected-focus-state-layer-opacity, var(--mat-sys-focus-state-layer-opacity))}.mdc-evolution-chip--disabled:not(.mdc-evolution-chip--selected) .mat-mdc-chip-avatar{opacity:var(--mat-chip-with-avatar-disabled-avatar-opacity, 0.38)}.mdc-evolution-chip--disabled .mdc-evolution-chip__icon--trailing{opacity:var(--mat-chip-with-trailing-icon-disabled-trailing-icon-opacity, 0.38)}.mdc-evolution-chip--disabled.mdc-evolution-chip--selected .mdc-evolution-chip__checkmark{opacity:var(--mat-chip-with-icon-disabled-icon-opacity, 0.38)}.mat-mdc-standard-chip.mdc-evolution-chip--disabled{opacity:var(--mat-chip-disabled-container-opacity, 1)}.mat-mdc-standard-chip.mdc-evolution-chip--selected .mdc-evolution-chip__icon--trailing,.mat-mdc-standard-chip.mat-mdc-chip-highlighted .mdc-evolution-chip__icon--trailing{color:var(--mat-chip-selected-trailing-icon-color, var(--mat-sys-on-secondary-container))}.mat-mdc-standard-chip.mdc-evolution-chip--selected.mdc-evolution-chip--disabled .mdc-evolution-chip__icon--trailing,.mat-mdc-standard-chip.mat-mdc-chip-highlighted.mdc-evolution-chip--disabled .mdc-evolution-chip__icon--trailing{color:var(--mat-chip-selected-disabled-trailing-icon-color, var(--mat-sys-on-surface))}.mat-mdc-chip-edit,.mat-mdc-chip-remove{opacity:var(--mat-chip-trailing-action-opacity, 1)}.mat-mdc-chip-edit:focus,.mat-mdc-chip-remove:focus{opacity:var(--mat-chip-trailing-action-focus-opacity, 1)}.mat-mdc-chip-edit::after,.mat-mdc-chip-remove::after{background-color:var(--mat-chip-trailing-action-state-layer-color, var(--mat-sys-on-surface-variant))}.mat-mdc-chip-edit:hover::after,.mat-mdc-chip-remove:hover::after{opacity:var(--mat-chip-trailing-action-hover-state-layer-opacity, var(--mat-sys-hover-state-layer-opacity))}.mat-mdc-chip-edit:focus::after,.mat-mdc-chip-remove:focus::after{opacity:var(--mat-chip-trailing-action-focus-state-layer-opacity, var(--mat-sys-focus-state-layer-opacity))}.mat-mdc-chip-selected .mat-mdc-chip-remove::after,.mat-mdc-chip-highlighted .mat-mdc-chip-remove::after{background-color:var(--mat-chip-selected-trailing-action-state-layer-color, var(--mat-sys-on-secondary-container))}.mat-mdc-standard-chip{-webkit-tap-highlight-color:rgba(0,0,0,0)}.mat-mdc-standard-chip .mdc-evolution-chip__cell--primary,.mat-mdc-standard-chip .mdc-evolution-chip__action--primary,.mat-mdc-standard-chip .mat-mdc-chip-action-label{overflow:visible}.mat-mdc-standard-chip .mat-mdc-chip-graphic,.mat-mdc-standard-chip .mat-mdc-chip-trailing-icon{box-sizing:content-box}.mat-mdc-standard-chip._mat-animation-noopable,.mat-mdc-standard-chip._mat-animation-noopable .mdc-evolution-chip__graphic,.mat-mdc-standard-chip._mat-animation-noopable .mdc-evolution-chip__checkmark,.mat-mdc-standard-chip._mat-animation-noopable .mdc-evolution-chip__checkmark-path{transition-duration:1ms;animation-duration:1ms}.mat-mdc-chip-focus-overlay{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none;opacity:0;border-radius:inherit;transition:opacity 150ms linear}._mat-animation-noopable .mat-mdc-chip-focus-overlay{transition:none}.mat-mdc-basic-chip .mat-mdc-chip-focus-overlay{display:none}.mat-mdc-chip .mat-ripple.mat-mdc-chip-ripple{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none;border-radius:inherit}.mat-mdc-chip-avatar{text-align:center;line-height:1;color:var(--mat-chip-with-icon-icon-color, currentColor)}.mat-mdc-chip{position:relative;z-index:0}.mat-mdc-chip-action-label{text-align:left;z-index:1}[dir=rtl] .mat-mdc-chip-action-label{text-align:right}.mat-mdc-chip.mdc-evolution-chip--with-trailing-action .mat-mdc-chip-action-label{position:relative}.mat-mdc-chip-action-label .mat-mdc-chip-primary-focus-indicator{position:absolute;top:0;right:0;bottom:0;left:0;pointer-events:none}.mat-mdc-chip-action-label .mat-focus-indicator::before{margin:calc(calc(var(--mat-focus-indicator-border-width, 3px) + 2px)*-1)}.mat-mdc-chip-edit::before,.mat-mdc-chip-remove::before{margin:calc(var(--mat-focus-indicator-border-width, 3px)*-1);left:8px;right:8px}.mat-mdc-chip-edit::after,.mat-mdc-chip-remove::after{content:"";display:block;opacity:0;position:absolute;top:-3px;bottom:-3px;left:5px;right:5px;border-radius:50%;box-sizing:border-box;padding:12px;margin:-12px;background-clip:content-box}.mat-mdc-chip-edit .mat-icon,.mat-mdc-chip-remove .mat-icon{width:18px;height:18px;font-size:18px;box-sizing:content-box}.mat-chip-edit-input{cursor:text;display:inline-block;color:inherit;outline:0}@media(forced-colors: active){.mat-mdc-chip-selected:not(.mat-mdc-chip-multiple){outline-width:3px}}.mat-mdc-chip-action:focus .mat-focus-indicator::before{content:""}.mdc-evolution-chip__icon,.mat-mdc-chip-edit .mat-icon,.mat-mdc-chip-remove .mat-icon{min-height:fit-content}img.mdc-evolution-chip__icon{min-height:0} -`],encapsulation:2,changeDetection:0})}return t})();var a6=(()=>{class t{_elementRef=u(q);_changeDetectorRef=u(ye);_dir=u(Vt,{optional:!0});_lastDestroyedFocusedChipIndex=null;_keyManager;_destroyed=new z;_defaultRole="presentation";get chipFocusChanges(){return this._getChipStream(e=>e._onFocus)}get chipDestroyedChanges(){return this._getChipStream(e=>e.destroyed)}get chipRemovedChanges(){return this._getChipStream(e=>e.removed)}get disabled(){return this._disabled}set disabled(e){this._disabled=e,this._syncChipsState()}_disabled=!1;get empty(){return!this._chips||this._chips.length===0}get role(){return this._explicitRole?this._explicitRole:this.empty?null:this._defaultRole}tabIndex=0;set role(e){this._explicitRole=e}_explicitRole=null;get focused(){return this._hasFocusedChip()}_chips;_chipActions=new pr;constructor(){}ngAfterViewInit(){this._setUpFocusManagement(),this._trackChipSetChanges(),this._trackDestroyedFocusedChip()}ngOnDestroy(){this._keyManager?.destroy(),this._chipActions.destroy(),this._destroyed.next(),this._destroyed.complete()}_hasFocusedChip(){return this._chips&&this._chips.some(e=>e._hasFocus())}_syncChipsState(){this._chips?.forEach(e=>{e._chipListDisabled=this._disabled,e._changeDetectorRef.markForCheck()})}focus(){}_handleKeydown(e){this._originatesFromChip(e)&&this._keyManager.onKeydown(e)}_isValidIndex(e){return e>=0&&ethis._elementRef.nativeElement.tabIndex=e))}_getChipStream(e){return this._chips.changes.pipe(He(null),$e(()=>Je(...this._chips.map(e))))}_originatesFromChip(e){let i=e.target;for(;i&&i!==this._elementRef.nativeElement;){if(i.classList.contains("mat-mdc-chip"))return!0;i=i.parentElement}return!1}_setUpFocusManagement(){this._chips.changes.pipe(He(this._chips)).subscribe(e=>{let i=[];e.forEach(r=>r._getActions().forEach(o=>i.push(o))),this._chipActions.reset(i),this._chipActions.notifyOnChanges()}),this._keyManager=new bs(this._chipActions).withVerticalOrientation().withHorizontalOrientation(this._dir?this._dir.value:"ltr").withHomeAndEnd().skipPredicate(e=>this._skipPredicate(e)),this.chipFocusChanges.pipe(Te(this._destroyed)).subscribe(({chip:e})=>{let i=e._getSourceAction(document.activeElement);i&&this._keyManager.updateActiveItem(i)}),this._dir?.change.pipe(Te(this._destroyed)).subscribe(e=>this._keyManager.withHorizontalOrientation(e))}_skipPredicate(e){return!e.isInteractive||e.disabled}_trackChipSetChanges(){this._chips.changes.pipe(He(null),Te(this._destroyed)).subscribe(()=>{this.disabled&&Promise.resolve().then(()=>this._syncChipsState()),this._redirectDestroyedChipFocus()})}_trackDestroyedFocusedChip(){this.chipDestroyedChanges.pipe(Te(this._destroyed)).subscribe(e=>{let r=this._chips.toArray().indexOf(e.chip),o=e.chip._hasFocus(),a=e.chip._hadFocusOnRemove&&this._keyManager.activeItem&&e.chip._getActions().includes(this._keyManager.activeItem),s=o||a;this._isValidIndex(r)&&s&&(this._lastDestroyedFocusedChipIndex=r)})}_redirectDestroyedChipFocus(){if(this._lastDestroyedFocusedChipIndex!=null){if(this._chips.length){let e=Math.min(this._lastDestroyedFocusedChipIndex,this._chips.length-1),i=this._chips.toArray()[e];i.disabled?this._chips.length===1?this.focus():this._keyManager.setPreviousItemActive():i.focus()}else this.focus();this._lastDestroyedFocusedChipIndex=null}}static \u0275fac=function(i){return new(i||t)};static \u0275cmp=E({type:t,selectors:[["mat-chip-set"]],contentQueries:function(i,r,o){if(i&1&&xe(o,cA,5),i&2){let a;B(a=j())&&(r._chips=a)}},hostAttrs:[1,"mat-mdc-chip-set","mdc-evolution-chip-set"],hostVars:1,hostBindings:function(i,r){i&1&&S("keydown",function(a){return r._handleKeydown(a)}),i&2&&X("role",r.role)},inputs:{disabled:[2,"disabled","disabled",V],role:"role",tabIndex:[2,"tabIndex","tabIndex",e=>e==null?0:ct(e)]},ngContentSelectors:Eye,decls:2,vars:0,consts:[["role","presentation",1,"mdc-evolution-chip-set__chips"]],template:function(i,r){i&1&&(Me(),ft(0,"div",0),oe(1),vt())},styles:[`.mat-mdc-chip-set{display:flex}.mat-mdc-chip-set:focus{outline:none}.mat-mdc-chip-set .mdc-evolution-chip-set__chips{min-width:100%;margin-left:-8px;margin-right:0}.mat-mdc-chip-set .mdc-evolution-chip{margin:4px 0 4px 8px}[dir=rtl] .mat-mdc-chip-set .mdc-evolution-chip-set__chips{margin-left:0;margin-right:-8px}[dir=rtl] .mat-mdc-chip-set .mdc-evolution-chip{margin-left:0;margin-right:8px}.mdc-evolution-chip-set__chips{display:flex;flex-flow:wrap;min-width:0}.mat-mdc-chip-set-stacked{flex-direction:column;align-items:flex-start}.mat-mdc-chip-set-stacked .mat-mdc-chip{width:100%}.mat-mdc-chip-set-stacked .mdc-evolution-chip__graphic{flex-grow:0}.mat-mdc-chip-set-stacked .mdc-evolution-chip__action--primary{flex-basis:100%;justify-content:start}input.mat-mdc-chip-input{flex:1 0 150px;margin-left:8px}[dir=rtl] input.mat-mdc-chip-input{margin-left:0;margin-right:8px}.mat-mdc-form-field:not(.mat-form-field-hide-placeholder) input.mat-mdc-chip-input::placeholder{opacity:1}.mat-mdc-form-field:not(.mat-form-field-hide-placeholder) input.mat-mdc-chip-input::-moz-placeholder{opacity:1}.mat-mdc-form-field:not(.mat-form-field-hide-placeholder) input.mat-mdc-chip-input::-webkit-input-placeholder{opacity:1}.mat-mdc-form-field:not(.mat-form-field-hide-placeholder) input.mat-mdc-chip-input:-ms-input-placeholder{opacity:1}.mat-mdc-chip-set+input.mat-mdc-chip-input{margin-left:0;margin-right:0} -`],encapsulation:2,changeDetection:0})}return t})();var s6=(()=>{class t{static \u0275fac=function(i){return new(i||t)};static \u0275mod=ee({type:t});static \u0275inj=J({providers:[dl,{provide:Mye,useValue:{separatorKeyCodes:[13]}}],imports:[we,yo,we]})}return t})();var l6=new T("CdkAccordion");var c6=(()=>{class t{accordion=u(l6,{optional:!0,skipSelf:!0});_changeDetectorRef=u(ye);_expansionDispatcher=u(au);_openCloseAllSubscription=ke.EMPTY;closed=new U;opened=new U;destroyed=new U;expandedChange=new U;id=u(Ze).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 i=this.accordion?this.accordion.id:this.id;this._expansionDispatcher.notify(this.id,i)}else this.closed.emit();this._changeDetectorRef.markForCheck()}}_expanded=!1;get disabled(){return this._disabled()}set disabled(e){this._disabled.set(e)}_disabled=he(!1);_removeUniqueSelectionListener=()=>{};constructor(){}ngOnInit(){this._removeUniqueSelectionListener=this._expansionDispatcher.listen((e,i)=>{this.accordion&&!this.accordion.multi&&this.accordion.id===i&&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(i){return new(i||t)};static \u0275dir=F({type:t,selectors:[["cdk-accordion-item"],["","cdkAccordionItem",""]],inputs:{expanded:[2,"expanded","expanded",V],disabled:[2,"disabled","disabled",V]},outputs:{closed:"closed",opened:"opened",destroyed:"destroyed",expandedChange:"expandedChange"},exportAs:["cdkAccordionItem"],features:[Ce([{provide:l6,useValue:void 0}])]})}return t})(),d6=(()=>{class t{static \u0275fac=function(i){return new(i||t)};static \u0275mod=ee({type:t});static \u0275inj=J({})}return t})();var Sye=["body"],Tye=["bodyWrapper"],Iye=[[["mat-expansion-panel-header"]],"*",[["mat-action-row"]]],Aye=["mat-expansion-panel-header","*","mat-action-row"];function Oye(t,n){}var Rye=[[["mat-panel-title"]],[["mat-panel-description"]],"*"],Pye=["mat-panel-title","mat-panel-description","*"];function Fye(t,n){t&1&&(ft(0,"span",1),Gt(),ft(1,"svg",2),ai(2,"path",3),vt()())}var u6=new T("MAT_ACCORDION"),m6=new T("MAT_EXPANSION_PANEL"),Nye=(()=>{class t{_template=u(te);_expansionPanel=u(m6,{optional:!0});constructor(){}static \u0275fac=function(i){return new(i||t)};static \u0275dir=F({type:t,selectors:[["ng-template","matExpansionPanelContent",""]]})}return t})(),h6=new T("MAT_EXPANSION_PANEL_DEFAULT_OPTIONS"),dA=(()=>{class t extends c6{_viewContainerRef=u(nt);_animationsDisabled=Ye();_document=u(ge);_ngZone=u(ae);_elementRef=u(q);_renderer=u(je);_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 U;afterCollapse=new U;_inputChanges=new z;accordion=u(u6,{optional:!0,skipSelf:!0});_lazyContent;_body;_bodyWrapper;_portal;_headerId=u(Ze).getId("mat-expansion-panel-header-");constructor(){super();let e=u(h6,{optional:!0});this._expansionDispatcher=u(au),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(He(null),ce(()=>this.expanded&&!this._portal),lt(1)).subscribe(()=>{this._portal=new Cn(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,i=this._body.nativeElement;return e===i||i.contains(e)}return!1}_transitionEndListener=({target:e,propertyName:i})=>{e===this._bodyWrapper?.nativeElement&&i==="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(i){return new(i||t)};static \u0275cmp=E({type:t,selectors:[["mat-expansion-panel"]],contentQueries:function(i,r,o){if(i&1&&xe(o,Nye,5),i&2){let a;B(a=j())&&(r._lazyContent=a.first)}},viewQuery:function(i,r){if(i&1&&(ie(Sye,5),ie(Tye,5)),i&2){let o;B(o=j())&&(r._body=o.first),B(o=j())&&(r._bodyWrapper=o.first)}},hostAttrs:[1,"mat-expansion-panel"],hostVars:4,hostBindings:function(i,r){i&2&&G("mat-expanded",r.expanded)("mat-expansion-panel-spacing",r._hasSpacing())},inputs:{hideToggle:[2,"hideToggle","hideToggle",V],togglePosition:"togglePosition"},outputs:{afterExpand:"afterExpand",afterCollapse:"afterCollapse"},exportAs:["matExpansionPanel"],features:[Ce([{provide:u6,useValue:void 0},{provide:m6,useExisting:t}]),le,Ae],ngContentSelectors:Aye,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(i,r){i&1&&(Me(Iye),oe(0),h(1,"div",2,0)(3,"div",3,1)(5,"div",4),oe(6,1),R(7,Oye,0,0,"ng-template",5),p(),oe(8,2),p()()),i&2&&(g(),X("inert",r.expanded?null:""),g(2),y("id",r.id),X("aria-labelledby",r._headerId),g(4),y("cdkPortalOutlet",r._portal))},dependencies:[yr],styles:[`.mat-expansion-panel{box-sizing:content-box;display:block;margin:0;overflow:hidden;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.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: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}}.mat-expansion-panel-content{display:flex;flex-direction:column;overflow:visible;min-height:0;visibility:hidden;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-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-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 t})();var p6=(()=>{class t{panel=u(dA,{host:!0});_element=u(q);_focusMonitor=u(Yt);_changeDetectorRef=u(ye);_parentChangeSubscription=ke.EMPTY;constructor(){u(ut).load(Di);let e=this.panel,i=u(h6,{optional:!0}),r=u(new Ii("tabindex"),{optional:!0}),o=e.accordion?e.accordion._stateChanges.pipe(ce(a=>!!(a.hideToggle||a.togglePosition))):Fi;this.tabIndex=parseInt(r||"")||0,this._parentChangeSubscription=Je(e.opened,e.closed,o,e._inputChanges.pipe(ce(a=>!!(a.hideToggle||a.disabled||a.togglePosition)))).subscribe(()=>this._changeDetectorRef.markForCheck()),e.closed.pipe(ce(()=>e._containsFocus())).subscribe(()=>this._focusMonitor.focusVia(this._element,"program")),i&&(this.expandedHeight=i.expandedHeight,this.collapsedHeight=i.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:Ft(e)||(e.preventDefault(),this._toggle());break;default:this.panel.accordion&&this.panel.accordion._handleHeaderKeydown(e);return}}focus(e,i){e?this._focusMonitor.focusVia(this._element,e,i):this._element.nativeElement.focus(i)}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(i){return new(i||t)};static \u0275cmp=E({type:t,selectors:[["mat-expansion-panel-header"]],hostAttrs:["role","button",1,"mat-expansion-panel-header","mat-focus-indicator"],hostVars:13,hostBindings:function(i,r){i&1&&S("click",function(){return r._toggle()})("keydown",function(a){return r._keydown(a)}),i&2&&(X("id",r.panel._headerId)("tabindex",r.disabled?-1:r.tabIndex)("aria-controls",r._getPanelId())("aria-expanded",r._isExpanded())("aria-disabled",r.panel.disabled),Dt("height",r._getHeaderHeight()),G("mat-expanded",r._isExpanded())("mat-expansion-toggle-indicator-after",r._getTogglePosition()==="after")("mat-expansion-toggle-indicator-before",r._getTogglePosition()==="before"))},inputs:{expandedHeight:"expandedHeight",collapsedHeight:"collapsedHeight",tabIndex:[2,"tabIndex","tabIndex",e=>e==null?0:ct(e)]},ngContentSelectors:Pye,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(i,r){i&1&&(Me(Rye),ft(0,"span",0),oe(1),oe(2,1),oe(3,2),vt(),N(4,Fye,3,0,"span",1)),i&2&&(G("mat-content-hide-toggle",!r._showToggle()),g(4),L(r._showToggle()?4:-1))},styles:[`.mat-expansion-panel-header{display:flex;flex-direction:row;align-items:center;padding:0 24px;border-radius:inherit;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-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.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 t})();var f6=(()=>{class t{static \u0275fac=function(i){return new(i||t)};static \u0275dir=F({type:t,selectors:[["mat-panel-title"]],hostAttrs:[1,"mat-expansion-panel-header-title"]})}return t})();var g6=(()=>{class t{static \u0275fac=function(i){return new(i||t)};static \u0275mod=ee({type:t});static \u0275inj=J({imports:[we,d6,Co]})}return t})();function Vye(t,n){if(t&1&&(jt(0),h(1,"mat-icon"),_(2,"account_circle"),p(),_(3),Lt()),t&2){let e=n.ngIf;g(3),ve(" ",e.name||e.preferred_username||"User Profile"," ")}}function Bye(t,n){t&1&&(jt(0),h(1,"mat-icon"),_(2,"account_circle"),p(),_(3," User Profile "),Lt())}function jye(t,n){t&1&&(h(0,"div",3)(1,"mat-card")(2,"mat-card-content")(3,"div",4)(4,"mat-icon"),_(5,"lock"),p(),h(6,"h2"),_(7,"Not Authenticated"),p(),h(8,"p"),_(9,"Please log in to view your profile information."),p(),h(10,"button",5)(11,"mat-icon"),_(12,"login"),p(),_(13," Log In "),p()()()()())}function Hye(t,n){if(t&1&&(h(0,"mat-chip",23),_(1),p()),t&2){let e=n.$implicit;y("color","primary"),g(),ve(" ",e," ")}}function zye(t,n){if(t&1&&(h(0,"mat-chip",24),_(1),p()),t&2){let e=n.$implicit;y("color","accent"),g(),ve(" ",e," ")}}function Uye(t,n){if(t&1&&(h(0,"div",17)(1,"div",18)(2,"label"),_(3,"User ID (sub)"),p(),h(4,"div",19),_(5),p()(),h(6,"div",18)(7,"label"),_(8,"Display Name"),p(),h(9,"div",19),_(10),p()(),h(11,"div",18)(12,"label"),_(13,"Email"),p(),h(14,"div",19),_(15),p()(),h(16,"div",18)(17,"label"),_(18,"Username"),p(),h(19,"div",19),_(20),p()(),h(21,"div",20)(22,"label"),_(23,"Roles"),p(),h(24,"div",19)(25,"mat-chip-set"),R(26,Hye,2,2,"mat-chip",21),p()()(),h(27,"div",20)(28,"label"),_(29,"Permissions"),p(),h(30,"div",19)(31,"mat-chip-set"),R(32,zye,2,2,"mat-chip",22),p()()()()),t&2){let e=n.ngIf,i=C(2);g(5),H(e.sub),g(5),H(e.name||"N/A"),g(5),H(e.email||"N/A"),g(5),H(e.preferred_username||"N/A"),g(6),y("ngForOf",i.profileData==null?null:i.profileData.roles),g(6),y("ngForOf",i.profileData==null?null:i.profileData.permissions)}}function $ye(t,n){t&1&&(h(0,"mat-chip",36)(1,"mat-icon"),_(2,"verified_user"),p(),_(3," Valid "),p())}function Wye(t,n){t&1&&(h(0,"mat-chip",37)(1,"mat-icon"),_(2,"error"),p(),_(3," Expired "),p())}function Gye(t,n){if(t&1&&(h(0,"div",30)(1,"label"),_(2,"Issuer"),p(),h(3,"div"),_(4),p()()),t&2){let e=C().ngIf;g(4),H(e.payload.iss)}}function qye(t,n){if(t&1&&(h(0,"mat-expansion-panel",38)(1,"mat-expansion-panel-header")(2,"mat-panel-title"),_(3,"Raw JWT Token"),p()(),h(4,"pre",39),_(5),p()()),t&2){let e=C().ngIf;g(5),H(e.raw)}}function Yye(t,n){if(t&1){let e=Y();h(0,"div",25)(1,"div",26)(2,"mat-chip-set")(3,"mat-chip",23)(4,"mat-icon"),_(5,"schedule"),p(),_(6),p(),R(7,$ye,4,0,"mat-chip",27)(8,Wye,4,0,"mat-chip",28),p()(),h(9,"div",29)(10,"div",30)(11,"label"),_(12,"Issued At"),p(),h(13,"div"),_(14),p()(),h(15,"div",30)(16,"label"),_(17,"Expires At"),p(),h(18,"div"),_(19),p()(),R(20,Gye,5,1,"div",31),p(),h(21,"div",32)(22,"button",33),S("click",function(){I(e);let r=C(2);return A(r.toggleRawIdToken())}),h(23,"mat-icon"),_(24),p(),_(25),p(),h(26,"button",33),S("click",function(){let r=I(e).ngIf,o=C(2);return A(o.copyToClipboard(r.raw,"ID Token"))}),h(27,"mat-icon"),_(28,"content_copy"),p(),_(29," Copy Token "),p()(),R(30,qye,6,1,"mat-expansion-panel",34),h(31,"mat-expansion-panel")(32,"mat-expansion-panel-header")(33,"mat-panel-title"),_(34,"Token Header"),p()(),h(35,"pre",35),_(36),p()(),h(37,"mat-expansion-panel")(38,"mat-expansion-panel-header")(39,"mat-panel-title"),_(40,"Token Claims (Payload)"),p()(),h(41,"pre",35),_(42),p()()()}if(t&2){let e=n.ngIf,i=C(2);g(3),y("color",i.getExpirationColor(e)),g(3),ve(" ",i.getExpirationStatus(e)," "),g(),y("ngIf",!e.isExpired),g(),y("ngIf",e.isExpired),g(6),H(i.formatDate(e.issuedAt)),g(5),H(i.formatDate(e.expiresAt)),g(),y("ngIf",e.payload.iss),g(4),H(i.showRawIdToken?"visibility_off":"visibility"),g(),ve(" ",i.showRawIdToken?"Hide":"Show"," Raw Token "),g(5),y("ngIf",i.showRawIdToken),g(6),H(i.formatJson(e.header)),g(6),H(i.formatJson(e.payload))}}function Qye(t,n){t&1&&(h(0,"div",40)(1,"mat-icon"),_(2,"info"),p(),h(3,"p"),_(4,"ID Token not available"),p()())}function Kye(t,n){t&1&&(h(0,"mat-chip",36)(1,"mat-icon"),_(2,"verified_user"),p(),_(3," Valid "),p())}function Zye(t,n){t&1&&(h(0,"mat-chip",37)(1,"mat-icon"),_(2,"error"),p(),_(3," Expired "),p())}function Xye(t,n){if(t&1&&(h(0,"div",30)(1,"label"),_(2,"Audience"),p(),h(3,"div"),_(4),p()()),t&2){let e=C().ngIf;g(4),H(e.payload.aud)}}function Jye(t,n){if(t&1&&(h(0,"mat-expansion-panel",38)(1,"mat-expansion-panel-header")(2,"mat-panel-title"),_(3,"Raw JWT Token"),p()(),h(4,"pre",39),_(5),p()()),t&2){let e=C().ngIf;g(5),H(e.raw)}}function exe(t,n){if(t&1&&(h(0,"mat-chip"),_(1),p()),t&2){let e=n.$implicit;g(),ve(" ",e," ")}}function txe(t,n){if(t&1&&(h(0,"mat-expansion-panel")(1,"mat-expansion-panel-header")(2,"mat-panel-title"),_(3,"Scopes"),p()(),h(4,"div",41)(5,"mat-chip-set"),R(6,exe,2,1,"mat-chip",42),p()()()),t&2){let e=C().ngIf,i=C(2);g(6),y("ngForOf",i.getScopes(e.payload.scope))}}function ixe(t,n){if(t&1){let e=Y();h(0,"div",25)(1,"div",26)(2,"mat-chip-set")(3,"mat-chip",23)(4,"mat-icon"),_(5,"schedule"),p(),_(6),p(),R(7,Kye,4,0,"mat-chip",27)(8,Zye,4,0,"mat-chip",28),p()(),h(9,"div",29)(10,"div",30)(11,"label"),_(12,"Issued At"),p(),h(13,"div"),_(14),p()(),h(15,"div",30)(16,"label"),_(17,"Expires At"),p(),h(18,"div"),_(19),p()(),R(20,Xye,5,1,"div",31),p(),h(21,"div",32)(22,"button",33),S("click",function(){I(e);let r=C(2);return A(r.toggleRawAccessToken())}),h(23,"mat-icon"),_(24),p(),_(25),p(),h(26,"button",33),S("click",function(){let r=I(e).ngIf,o=C(2);return A(o.copyToClipboard(r.raw,"Access Token"))}),h(27,"mat-icon"),_(28,"content_copy"),p(),_(29," Copy Token "),p()(),R(30,Jye,6,1,"mat-expansion-panel",34),h(31,"mat-expansion-panel")(32,"mat-expansion-panel-header")(33,"mat-panel-title"),_(34,"Token Header"),p()(),h(35,"pre",35),_(36),p()(),h(37,"mat-expansion-panel")(38,"mat-expansion-panel-header")(39,"mat-panel-title"),_(40,"Token Claims (Payload)"),p()(),h(41,"pre",35),_(42),p()(),R(43,txe,7,1,"mat-expansion-panel",0),p()}if(t&2){let e=n.ngIf,i=C(2);g(3),y("color",i.getExpirationColor(e)),g(3),ve(" ",i.getExpirationStatus(e)," "),g(),y("ngIf",!e.isExpired),g(),y("ngIf",e.isExpired),g(6),H(i.formatDate(e.issuedAt)),g(5),H(i.formatDate(e.expiresAt)),g(),y("ngIf",e.payload.aud),g(4),H(i.showRawAccessToken?"visibility_off":"visibility"),g(),ve(" ",i.showRawAccessToken?"Hide":"Show"," Raw Token "),g(5),y("ngIf",i.showRawAccessToken),g(6),H(i.formatJson(e.header)),g(6),H(i.formatJson(e.payload)),g(),y("ngIf",e.payload.scope)}}function nxe(t,n){t&1&&(h(0,"div",40)(1,"mat-icon"),_(2,"info"),p(),h(3,"p"),_(4,"Access Token not available"),p()())}function rxe(t,n){if(t&1&&(h(0,"div",6)(1,"mat-card",7)(2,"mat-card-content")(3,"div",8)(4,"mat-icon"),_(5,"warning"),p(),h(6,"div")(7,"strong"),_(8,"Security Notice:"),p(),_(9," Tokens displayed on this page contain sensitive information. Do not share these tokens with anyone or paste them in untrusted applications. "),p()()()(),h(10,"mat-card",9)(11,"mat-card-header")(12,"mat-icon",10),_(13,"person"),p(),h(14,"mat-card-title"),_(15,"User Information"),p(),h(16,"mat-card-subtitle"),_(17,"Your profile details from ID token"),p()(),h(18,"mat-card-content"),R(19,Uye,33,6,"div",11),p()(),h(20,"mat-card",12)(21,"mat-card-header")(22,"mat-icon",10),_(23,"vpn_key"),p(),h(24,"mat-card-title"),_(25,"Token Details"),p(),h(26,"mat-card-subtitle"),_(27,"Detailed JWT token information and claims"),p()(),h(28,"mat-card-content")(29,"mat-tab-group")(30,"mat-tab",13),R(31,Yye,43,12,"div",14)(32,Qye,5,0,"div",15),p(),h(33,"mat-tab",16),R(34,ixe,44,13,"div",14)(35,nxe,5,0,"div",15),p()()()()()),t&2){let e=C();g(19),y("ngIf",e.profileData==null?null:e.profileData.userInfo),g(12),y("ngIf",e.profileData==null?null:e.profileData.idToken),g(),y("ngIf",!(e.profileData!=null&&e.profileData.idToken)),g(2),y("ngIf",e.profileData==null?null:e.profileData.accessToken),g(),y("ngIf",!(e.profileData!=null&&e.profileData.accessToken))}}var _6=(()=>{let n=class n{constructor(){this.authService=u(Tt),this.oauthService=u(Wm),this.tokenDecoder=u(oU),this.snackBar=u(di),this.router=u(Re),this.profileData=null,this.showRawIdToken=!1,this.showRawAccessToken=!1}ngOnInit(){this.loadProfileData(),this.authSubscription=this.authService.isAuthenticated$.subscribe(()=>{this.loadProfileData()})}ngOnDestroy(){this.authSubscription?.unsubscribe()}loadProfileData(){let i=this.authService.isAuthenticated(),r=this.oauthService.hasValidAccessToken();if(console.log("Authentication Status:",{isAuthenticated:i,hasValidAccessToken:r}),!i&&!r){this.profileData=null;return}let o=this.authService.getUserInfo(),a=this.authService.getAccessToken(),s=this.oauthService.getIdToken(),l=this.authService.getUserRoles();console.log("Profile Data Debug:",{isAuthenticated:i,hasUserInfo:!!o,hasAccessToken:!!a,accessTokenLength:a?.length,hasIdToken:!!s,idTokenLength:s?.length,roles:l}),this.profileData={isAuthenticated:i,userInfo:o,idToken:s?this.tokenDecoder.decodeToken(s):null,accessToken:a?this.tokenDecoder.decodeToken(a):null,roles:l,permissions:this.getUserPermissions()},console.log("Decoded tokens:",{idToken:this.profileData.idToken,accessToken:this.profileData.accessToken})}getUserPermissions(){let i=[];return this.authService.hasRole("HRAdmin")||this.authService.hasRole("Manager")?i.push("canAdd","canEdit","canDelete","canRead"):this.authService.hasRole("Employee")&&i.push("canRead"),i}toggleRawIdToken(){this.showRawIdToken=!this.showRawIdToken}toggleRawAccessToken(){this.showRawAccessToken=!this.showRawAccessToken}copyToClipboard(i,r){navigator.clipboard.writeText(i).then(()=>{this.showMessage(`${r} copied to clipboard`)}).catch(o=>{console.error("Failed to copy:",o),this.showMessage("Failed to copy to clipboard")})}formatJson(i){return JSON.stringify(i,null,2)}getExpirationStatus(i){return this.tokenDecoder.getExpirationStatus(i)}getExpirationColor(i){if(!i||!i.expiresIn)return"";let r=i.expiresIn/3600;return i.isExpired?"warn":r<1?"accent":"primary"}formatDate(i){return i?new Intl.DateTimeFormat("en-US",{dateStyle:"medium",timeStyle:"medium"}).format(i):"N/A"}showMessage(i){this.snackBar.open(i,"Close",{duration:3e3,horizontalPosition:"end",verticalPosition:"top"})}getScopes(i){return i?Array.isArray(i)?i:typeof i=="string"?i.split(" ").filter(r=>r.length>0):[]:[]}};n.\u0275fac=function(r){return new(r||n)},n.\u0275cmp=E({type:n,selectors:[["app-profile-overview"]],decls:5,vars:4,consts:[[4,"ngIf"],["class","not-authenticated",4,"ngIf"],["class","profile-container",4,"ngIf"],[1,"not-authenticated"],[1,"empty-state"],["mat-raised-button","","color","primary","routerLink","/login"],[1,"profile-container"],[1,"security-warning"],[1,"warning-content"],[1,"profile-card"],["mat-card-avatar",""],["class","info-grid",4,"ngIf"],[1,"tokens-card"],["label","ID Token"],["class","token-content",4,"ngIf"],["class","no-token",4,"ngIf"],["label","Access Token"],[1,"info-grid"],[1,"info-item"],[1,"value"],[1,"info-item","full-width"],["highlighted","",3,"color",4,"ngFor","ngForOf"],[3,"color",4,"ngFor","ngForOf"],["highlighted","",3,"color"],[3,"color"],[1,"token-content"],[1,"token-status"],["color","primary",4,"ngIf"],["color","warn",4,"ngIf"],[1,"token-metadata"],[1,"metadata-item"],["class","metadata-item",4,"ngIf"],[1,"token-actions"],["mat-button","",3,"click"],["expanded","",4,"ngIf"],[1,"json-display"],["color","primary"],["color","warn"],["expanded",""],[1,"token-display"],[1,"no-token"],[1,"scopes-list"],[4,"ngFor","ngForOf"]],template:function(r,o){r&1&&(h(0,"page-header"),R(1,Vye,4,1,"ng-container",0)(2,Bye,4,0,"ng-container",0),p(),R(3,jye,14,0,"div",1)(4,rxe,36,5,"div",2)),r&2&&(g(),y("ngIf",o.profileData==null?null:o.profileData.userInfo),g(),y("ngIf",!(o.profileData!=null&&o.profileData.isAuthenticated)),g(),y("ngIf",!(o.profileData!=null&&o.profileData.isAuthenticated)),g(),y("ngIf",o.profileData==null?null:o.profileData.isAuthenticated))},dependencies:[gt,qr,li,$t,zt,HV,Ut,Jt,jV,Xt,ot,mt,ze,kt,s6,cA,a6,g6,dA,p6,f6,Br,pi,rp,__,tw,lk,Nn,ni],styles:[".profile-container[_ngcontent-%COMP%]{padding:16px;max-width:1200px;margin:0 auto;display:flex;flex-direction:column;gap:24px}.not-authenticated[_ngcontent-%COMP%]{padding:16px;max-width:600px;margin:0 auto}.not-authenticated[_ngcontent-%COMP%] .empty-state[_ngcontent-%COMP%]{display:flex;flex-direction:column;align-items:center;justify-content:center;padding:48px 16px;text-align:center}.not-authenticated[_ngcontent-%COMP%] .empty-state[_ngcontent-%COMP%] mat-icon[_ngcontent-%COMP%]{font-size:64px;width:64px;height:64px;color:#00000061;margin-bottom:16px}.not-authenticated[_ngcontent-%COMP%] .empty-state[_ngcontent-%COMP%] h2[_ngcontent-%COMP%]{margin:0 0 8px;font-size:24px;font-weight:500}.not-authenticated[_ngcontent-%COMP%] .empty-state[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{margin:0 0 24px;color:#0009}.not-authenticated[_ngcontent-%COMP%] .empty-state[_ngcontent-%COMP%] button[_ngcontent-%COMP%] mat-icon[_ngcontent-%COMP%]{font-size:20px;width:20px;height:20px;margin-right:8px;color:inherit}.security-warning[_ngcontent-%COMP%]{background-color:#fff3cd;border-left:4px solid #ff9800}.security-warning[_ngcontent-%COMP%] mat-card-content[_ngcontent-%COMP%]{padding:16px}.security-warning[_ngcontent-%COMP%] .warning-content[_ngcontent-%COMP%]{display:flex;align-items:center;gap:12px}.security-warning[_ngcontent-%COMP%] .warning-content[_ngcontent-%COMP%] mat-icon[_ngcontent-%COMP%]{color:#ff9800;flex-shrink:0}.security-warning[_ngcontent-%COMP%] .warning-content[_ngcontent-%COMP%] strong[_ngcontent-%COMP%]{font-weight:600}.profile-card[_ngcontent-%COMP%] mat-card-header[_ngcontent-%COMP%], .tokens-card[_ngcontent-%COMP%] mat-card-header[_ngcontent-%COMP%]{padding:16px;border-bottom:1px solid rgba(0,0,0,.12)}.profile-card[_ngcontent-%COMP%] mat-card-header[_ngcontent-%COMP%] mat-card-title[_ngcontent-%COMP%], .tokens-card[_ngcontent-%COMP%] mat-card-header[_ngcontent-%COMP%] mat-card-title[_ngcontent-%COMP%]{font-size:20px;font-weight:500;margin:0}.profile-card[_ngcontent-%COMP%] mat-card-header[_ngcontent-%COMP%] mat-card-subtitle[_ngcontent-%COMP%], .tokens-card[_ngcontent-%COMP%] mat-card-header[_ngcontent-%COMP%] mat-card-subtitle[_ngcontent-%COMP%]{margin-top:4px;color:#0009}.profile-card[_ngcontent-%COMP%] mat-card-content[_ngcontent-%COMP%], .tokens-card[_ngcontent-%COMP%] mat-card-content[_ngcontent-%COMP%]{padding:24px}.info-grid[_ngcontent-%COMP%]{display:grid;grid-template-columns:repeat(2,1fr);gap:24px}@media (max-width: 768px){.info-grid[_ngcontent-%COMP%]{grid-template-columns:1fr}}.info-grid[_ngcontent-%COMP%] .info-item[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:8px}.info-grid[_ngcontent-%COMP%] .info-item.full-width[_ngcontent-%COMP%]{grid-column:1/-1}.info-grid[_ngcontent-%COMP%] .info-item[_ngcontent-%COMP%] label[_ngcontent-%COMP%]{font-size:12px;font-weight:500;text-transform:uppercase;letter-spacing:.5px;color:#0009}.info-grid[_ngcontent-%COMP%] .info-item[_ngcontent-%COMP%] .value[_ngcontent-%COMP%]{font-size:16px;color:#000000de;word-break:break-word}.token-content[_ngcontent-%COMP%]{padding:24px 0;display:flex;flex-direction:column;gap:16px}.token-content[_ngcontent-%COMP%] .token-status[_ngcontent-%COMP%] mat-chip-set[_ngcontent-%COMP%] mat-chip[_ngcontent-%COMP%] mat-icon[_ngcontent-%COMP%]{margin-right:4px;font-size:18px;width:18px;height:18px}.token-content[_ngcontent-%COMP%] .token-metadata[_ngcontent-%COMP%]{display:grid;grid-template-columns:repeat(auto-fit,minmax(200px,1fr));gap:16px;padding:16px;background-color:#00000005;border-radius:4px}.token-content[_ngcontent-%COMP%] .token-metadata[_ngcontent-%COMP%] .metadata-item[_ngcontent-%COMP%] label[_ngcontent-%COMP%]{display:block;font-size:12px;font-weight:500;text-transform:uppercase;letter-spacing:.5px;color:#0009;margin-bottom:4px}.token-content[_ngcontent-%COMP%] .token-metadata[_ngcontent-%COMP%] .metadata-item[_ngcontent-%COMP%] div[_ngcontent-%COMP%]{font-size:14px;color:#000000de;word-break:break-word}.token-content[_ngcontent-%COMP%] .token-actions[_ngcontent-%COMP%]{display:flex;gap:8px;flex-wrap:wrap}.token-content[_ngcontent-%COMP%] .token-actions[_ngcontent-%COMP%] button[_ngcontent-%COMP%] mat-icon[_ngcontent-%COMP%]{margin-right:4px}.token-content[_ngcontent-%COMP%] mat-expansion-panel[_ngcontent-%COMP%]{margin-top:8px}.token-content[_ngcontent-%COMP%] .token-display[_ngcontent-%COMP%], .token-content[_ngcontent-%COMP%] .json-display[_ngcontent-%COMP%]{background-color:#f5f5f5;padding:16px;border-radius:4px;overflow-x:auto;font-family:Courier New,monospace;font-size:12px;line-height:1.5;margin:0;white-space:pre-wrap;word-break:break-all}.token-content[_ngcontent-%COMP%] .scopes-list[_ngcontent-%COMP%]{padding:16px}.token-content[_ngcontent-%COMP%] .scopes-list[_ngcontent-%COMP%] mat-chip-set[_ngcontent-%COMP%] mat-chip[_ngcontent-%COMP%]{margin:4px}.no-token[_ngcontent-%COMP%]{display:flex;flex-direction:column;align-items:center;justify-content:center;padding:48px 16px;text-align:center;color:#00000061}.no-token[_ngcontent-%COMP%] mat-icon[_ngcontent-%COMP%]{font-size:48px;width:48px;height:48px;margin-bottom:12px}.no-token[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{margin:0;font-size:14px}mat-chip-set[_ngcontent-%COMP%] mat-chip[_ngcontent-%COMP%]{margin:4px}@media (max-width: 768px){.profile-container[_ngcontent-%COMP%]{padding:12px}.profile-card[_ngcontent-%COMP%] mat-card-content[_ngcontent-%COMP%], .tokens-card[_ngcontent-%COMP%] mat-card-content[_ngcontent-%COMP%]{padding:16px}.token-content[_ngcontent-%COMP%]{padding:16px 0}.token-content[_ngcontent-%COMP%] .token-metadata[_ngcontent-%COMP%]{grid-template-columns:1fr}.security-warning[_ngcontent-%COMP%] .warning-content[_ngcontent-%COMP%]{flex-direction:column;align-items:flex-start}}"]});let t=n;return t})();var b6=(()=>{let n=class n{};n.\u0275fac=function(r){return new(r||n)},n.\u0275cmp=E({type:n,selectors:[["app-profile-settings"]],decls:14,vars:0,consts:[[1,"settings-container"],[1,"coming-soon"]],template:function(r,o){r&1&&(h(0,"page-header")(1,"mat-icon"),_(2,"settings"),p(),_(3,` Profile Settings -`),p(),h(4,"div",0)(5,"mat-card")(6,"mat-card-content")(7,"div",1)(8,"mat-icon"),_(9,"construction"),p(),h(10,"h2"),_(11,"Coming Soon"),p(),h(12,"p"),_(13,"User settings functionality will be available in a future update."),p()()()()())},dependencies:[gt,$t,zt,Ut,ot,mt,ni],styles:[".settings-container[_ngcontent-%COMP%]{padding:16px;max-width:800px;margin:0 auto}.settings-container[_ngcontent-%COMP%] .coming-soon[_ngcontent-%COMP%]{display:flex;flex-direction:column;align-items:center;justify-content:center;padding:48px 16px;text-align:center}.settings-container[_ngcontent-%COMP%] .coming-soon[_ngcontent-%COMP%] mat-icon[_ngcontent-%COMP%]{font-size:64px;width:64px;height:64px;color:#00000061;margin-bottom:16px}.settings-container[_ngcontent-%COMP%] .coming-soon[_ngcontent-%COMP%] h2[_ngcontent-%COMP%]{margin:0 0 8px;font-size:24px;font-weight:500}.settings-container[_ngcontent-%COMP%] .coming-soon[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{margin:0;color:#0009}"]});let t=n;return t})();var v6=[{path:"",component:J8,canActivate:[sI],canActivateChild:[sI],children:[{path:"",redirectTo:"dashboard",pathMatch:"full"},{path:"dashboard",component:sU},{path:"employees",component:CU},{path:"employees/create",component:oA,canActivate:[a_]},{path:"employees/edit/:id",component:oA,canActivate:[a_]},{path:"employees/:id",component:wU},{path:"departments",component:HU},{path:"departments/create",component:aA,canActivate:[a_]},{path:"departments/edit/:id",component:aA,canActivate:[a_]},{path:"departments/:id",component:zU},{path:"positions",component:qU},{path:"positions/create",component:sA,canActivate:[s_]},{path:"positions/edit/:id",component:sA,canActivate:[s_]},{path:"positions/:id",component:QU},{path:"salary-ranges",component:ZU},{path:"salary-ranges/create",component:lA,canActivate:[s_]},{path:"salary-ranges/edit/:id",component:lA,canActivate:[s_]},{path:"salary-ranges/:id",component:JU},{path:"profile",children:[{path:"overview",component:_6},{path:"settings",component:b6},{path:"",redirectTo:"overview",pathMatch:"full"}]},{path:"403",component:lU},{path:"404",component:cU},{path:"500",component:dU}]},{path:"auth",component:eU,children:[{path:"register",component:uU}]},{path:"callback",component:mU},{path:"**",redirectTo:"dashboard"}];var y6=(t,n)=>{let e=u(Tt);if(!e.isAuthenticated())return n(t);let i=e.getAccessToken();if(!i)return n(t);let r=t.clone({setHeaders:{Authorization:`Bearer ${i}`}});return n(r)};var x6={providers:[ZD(),{provide:CI,useValue:ko.baseUrl},fL(),Ql(()=>u(Tt).initAuth()),Ql(()=>u(qz).load()),Ql(()=>u(Wz).load()),S1(T1([y6,...e8])),ok(v6,ak({scrollPositionRestoration:"enabled",anchorScrolling:"enabled"}),S0()),J3(),$5(U5()),$3({loader:W3({prefix:"i18n/",suffix:".json"})}),xb(xc.forRoot()),p3([...O3()]),{provide:yg,useFactory:Az,deps:[ia],multi:!0},{provide:gc,deps:[hz],useFactory:t=>t.getPaginatorIntl()},{provide:Bk,useValue:{appearance:"outlined"}},BV({parse:{dateInput:"yyyy-MM-dd"},display:{dateInput:"yyyy-MM-dd",monthYearLabel:"yyyy MMM",dateA11yLabel:"LL",monthYearA11yLabel:"yyyy MMM"}}),l3({parse:{dateInput:"yyyy-MM-dd",yearInput:"yyyy",monthInput:"MMMM",datetimeInput:"yyyy-MM-dd HH:mm",timeInput:"HH:mm"},display:{dateInput:"yyyy-MM-dd",yearInput:"yyyy",monthInput:"MMMM",datetimeInput:"yyyy-MM-dd HH:mm",timeInput:"HH:mm",monthYearLabel:"yyyy MMMM",dateA11yLabel:"LL",monthYearA11yLabel:"MMMM yyyy",popupHeaderDateLabel:"MMM dd, E"}})]};var C6=(()=>{let n=class n{constructor(){this.preloader=u(Gz),this.settings=u(aa)}ngOnInit(){this.settings.setDirection(),this.settings.setTheme()}ngAfterViewInit(){this.preloader.hide()}};n.\u0275fac=function(r){return new(r||n)},n.\u0275cmp=E({type:n,selectors:[["app-root"]],decls:1,vars:0,template:function(r,o){r&1&&k(0,"router-outlet")},dependencies:[ol],encapsulation:2});let t=n;return t})();C1(C6,x6).catch(t=>console.error(t)); + 5.302-3.935,5.302-7.362C15.76,3.906,12.285,0.431,7.999,0.431z`]],template:function(r,o){r&1&&(m(0,"a",0),Zt(),m(1,"svg",1),M(2,"path",2),h()())},dependencies:[Be,Yt],encapsulation:2});let t=n;return t})();var y8="mat-badge-content",ife=(()=>{class t{static \u0275fac=function(i){return new(i||t)};static \u0275cmp=E({type:t,selectors:[["ng-component"]],decls:0,vars:0,template:function(i,r){},styles:[`.mat-badge{position:relative}.mat-badge.mat-badge{overflow:visible}.mat-badge-content{position:absolute;text-align:center;display:inline-block;transition:transform 200ms ease-in-out;transform:scale(0.6);overflow:hidden;white-space:nowrap;text-overflow:ellipsis;box-sizing:border-box;pointer-events:none;background-color:var(--mat-badge-background-color, var(--mat-sys-error));color:var(--mat-badge-text-color, var(--mat-sys-on-error));font-family:var(--mat-badge-text-font, var(--mat-sys-label-small-font));font-weight:var(--mat-badge-text-weight, var(--mat-sys-label-small-weight));border-radius:var(--mat-badge-container-shape, var(--mat-sys-corner-full))}.mat-badge-above .mat-badge-content{bottom:100%}.mat-badge-below .mat-badge-content{top:100%}.mat-badge-before .mat-badge-content{right:100%}[dir=rtl] .mat-badge-before .mat-badge-content{right:auto;left:100%}.mat-badge-after .mat-badge-content{left:100%}[dir=rtl] .mat-badge-after .mat-badge-content{left:auto;right:100%}@media(forced-colors: active){.mat-badge-content{outline:solid 1px;border-radius:0}}.mat-badge-disabled .mat-badge-content{background-color:var(--mat-badge-disabled-state-background-color, color-mix(in srgb, var(--mat-sys-error) 38%, transparent));color:var(--mat-badge-disabled-state-text-color, var(--mat-sys-on-error))}.mat-badge-hidden .mat-badge-content{display:none}.ng-animate-disabled .mat-badge-content,.mat-badge-content._mat-animation-noopable{transition:none}.mat-badge-content.mat-badge-active{transform:none}.mat-badge-small .mat-badge-content{width:var(--mat-badge-legacy-small-size-container-size, unset);height:var(--mat-badge-legacy-small-size-container-size, unset);min-width:var(--mat-badge-small-size-container-size, 6px);min-height:var(--mat-badge-small-size-container-size, 6px);line-height:var(--mat-badge-small-size-line-height, 6px);padding:var(--mat-badge-small-size-container-padding, 0);font-size:var(--mat-badge-small-size-text-size, 0);margin:var(--mat-badge-small-size-container-offset, -6px 0)}.mat-badge-small.mat-badge-overlap .mat-badge-content{margin:var(--mat-badge-small-size-container-overlap-offset, -6px)}.mat-badge-medium .mat-badge-content{width:var(--mat-badge-legacy-container-size, unset);height:var(--mat-badge-legacy-container-size, unset);min-width:var(--mat-badge-container-size, 16px);min-height:var(--mat-badge-container-size, 16px);line-height:var(--mat-badge-line-height, 16px);padding:var(--mat-badge-container-padding, 0 4px);font-size:var(--mat-badge-text-size, var(--mat-sys-label-small-size));margin:var(--mat-badge-container-offset, -12px 0)}.mat-badge-medium.mat-badge-overlap .mat-badge-content{margin:var(--mat-badge-container-overlap-offset, -12px)}.mat-badge-large .mat-badge-content{width:var(--mat-badge-legacy-large-size-container-size, unset);height:var(--mat-badge-legacy-large-size-container-size, unset);min-width:var(--mat-badge-large-size-container-size, 16px);min-height:var(--mat-badge-large-size-container-size, 16px);line-height:var(--mat-badge-large-size-line-height, 16px);padding:var(--mat-badge-large-size-container-padding, 0 4px);font-size:var(--mat-badge-large-size-text-size, var(--mat-sys-label-small-size));margin:var(--mat-badge-large-size-container-offset, -12px 0)}.mat-badge-large.mat-badge-overlap .mat-badge-content{margin:var(--mat-badge-large-size-container-overlap-offset, -12px)} +`],encapsulation:2,changeDetection:0})}return t})(),x8=(()=>{class t{_ngZone=u(ae);_elementRef=u(Y);_ariaDescriber=u(nh);_renderer=u(ze);_animationsDisabled=Ye();_idGenerator=u(Ze);get color(){return this._color}set color(e){this._setColor(e),this._color=e}_color="primary";overlap=!0;disabled;position="above after";get content(){return this._content}set content(e){this._updateRenderedContent(e)}_content;get description(){return this._description}set description(e){this._updateDescription(e)}_description;size="medium";hidden;_badgeElement;_inlineBadgeDescription;_isInitialized=!1;_interactivityChecker=u(lc);_document=u(_e);constructor(){let e=u(ht);e.load(ife),e.load(Jr)}isAbove(){return this.position.indexOf("below")===-1}isAfter(){return this.position.indexOf("before")===-1}getBadgeElement(){return this._badgeElement}ngOnInit(){this._clearExistingBadges(),this.content&&!this._badgeElement&&(this._badgeElement=this._createBadgeElement(),this._updateRenderedContent(this.content)),this._isInitialized=!0}ngOnDestroy(){this._renderer.destroyNode&&(this._renderer.destroyNode(this._badgeElement),this._inlineBadgeDescription?.remove()),this._ariaDescriber.removeDescription(this._elementRef.nativeElement,this.description)}_isHostInteractive(){return this._interactivityChecker.isFocusable(this._elementRef.nativeElement,{ignoreVisibility:!0})}_createBadgeElement(){let e=this._renderer.createElement("span"),i="mat-badge-active";return e.setAttribute("id",this._idGenerator.getId("mat-badge-content-")),e.setAttribute("aria-hidden","true"),e.classList.add(y8),this._animationsDisabled&&e.classList.add("_mat-animation-noopable"),this._elementRef.nativeElement.appendChild(e),typeof requestAnimationFrame=="function"&&!this._animationsDisabled?this._ngZone.runOutsideAngular(()=>{requestAnimationFrame(()=>{e.classList.add(i)})}):e.classList.add(i),e}_updateRenderedContent(e){let i=`${e??""}`.trim();this._isInitialized&&i&&!this._badgeElement&&(this._badgeElement=this._createBadgeElement()),this._badgeElement&&(this._badgeElement.textContent=i),this._content=i}_updateDescription(e){this._ariaDescriber.removeDescription(this._elementRef.nativeElement,this.description),(!e||this._isHostInteractive())&&this._removeInlineDescription(),this._description=e,this._isHostInteractive()?this._ariaDescriber.describe(this._elementRef.nativeElement,e):this._updateInlineDescription()}_updateInlineDescription(){this._inlineBadgeDescription||(this._inlineBadgeDescription=this._document.createElement("span"),this._inlineBadgeDescription.classList.add("cdk-visually-hidden")),this._inlineBadgeDescription.textContent=this.description,this._badgeElement?.appendChild(this._inlineBadgeDescription)}_removeInlineDescription(){this._inlineBadgeDescription?.remove(),this._inlineBadgeDescription=void 0}_setColor(e){let i=this._elementRef.nativeElement.classList;i.remove(`mat-badge-${this._color}`),e&&i.add(`mat-badge-${e}`)}_clearExistingBadges(){let e=this._elementRef.nativeElement.querySelectorAll(`:scope > .${y8}`);for(let i of Array.from(e))i!==this._badgeElement&&i.remove()}static \u0275fac=function(i){return new(i||t)};static \u0275dir=P({type:t,selectors:[["","matBadge",""]],hostAttrs:[1,"mat-badge"],hostVars:20,hostBindings:function(i,r){i&2&&G("mat-badge-overlap",r.overlap)("mat-badge-above",r.isAbove())("mat-badge-below",!r.isAbove())("mat-badge-before",!r.isAfter())("mat-badge-after",r.isAfter())("mat-badge-small",r.size==="small")("mat-badge-medium",r.size==="medium")("mat-badge-large",r.size==="large")("mat-badge-hidden",r.hidden||!r.content)("mat-badge-disabled",r.disabled)},inputs:{color:[0,"matBadgeColor","color"],overlap:[2,"matBadgeOverlap","overlap",L],disabled:[2,"matBadgeDisabled","disabled",L],position:[0,"matBadgePosition","position"],content:[0,"matBadge","content"],description:[0,"matBadgeDescription","description"],size:[0,"matBadgeSize","size"],hidden:[2,"matBadgeHidden","hidden",L]}})}return t})(),C8=(()=>{class t{static \u0275fac=function(i){return new(i||t)};static \u0275mod=ee({type:t});static \u0275inj=J({imports:[cl,De,De]})}return t})();var Po=(()=>{class t{get vertical(){return this._vertical}set vertical(e){this._vertical=Ri(e)}_vertical=!1;get inset(){return this._inset}set inset(e){this._inset=Ri(e)}_inset=!1;static \u0275fac=function(i){return new(i||t)};static \u0275cmp=E({type:t,selectors:[["mat-divider"]],hostAttrs:["role","separator",1,"mat-divider"],hostVars:7,hostBindings:function(i,r){i&2&&(X("aria-orientation",r.vertical?"vertical":"horizontal"),G("mat-divider-vertical",r.vertical)("mat-divider-horizontal",!r.vertical)("mat-divider-inset",r.inset))},inputs:{vertical:"vertical",inset:"inset"},decls:0,vars:0,template:function(i,r){},styles:[`.mat-divider{display:block;margin:0;border-top-style:solid;border-top-color:var(--mat-divider-color, var(--mat-sys-outline-variant));border-top-width:var(--mat-divider-width, 1px)}.mat-divider.mat-divider-vertical{border-top:0;border-right-style:solid;border-right-color:var(--mat-divider-color, var(--mat-sys-outline-variant));border-right-width:var(--mat-divider-width, 1px)}.mat-divider.mat-divider-inset{margin-left:80px}[dir=rtl] .mat-divider.mat-divider-inset{margin-left:auto;margin-right:80px} +`],encapsulation:2,changeDetection:0})}return t})(),ho=(()=>{class t{static \u0275fac=function(i){return new(i||t)};static \u0275mod=ee({type:t});static \u0275inj=J({imports:[De,De]})}return t})();var w8=["*"],D8=`.mdc-list{margin:0;padding:8px 0;list-style-type:none}.mdc-list:focus{outline:none}.mdc-list-item{display:flex;position:relative;justify-content:flex-start;overflow:hidden;padding:0;align-items:stretch;cursor:pointer;padding-left:16px;padding-right:16px;background-color:var(--mat-list-list-item-container-color, transparent);border-radius:var(--mat-list-list-item-container-shape, var(--mat-sys-corner-none))}.mdc-list-item.mdc-list-item--selected{background-color:var(--mat-list-list-item-selected-container-color)}.mdc-list-item:focus{outline:0}.mdc-list-item.mdc-list-item--disabled{cursor:auto}.mdc-list-item.mdc-list-item--with-one-line{height:var(--mat-list-list-item-one-line-container-height, 48px)}.mdc-list-item.mdc-list-item--with-one-line .mdc-list-item__start{align-self:center;margin-top:0}.mdc-list-item.mdc-list-item--with-one-line .mdc-list-item__end{align-self:center;margin-top:0}.mdc-list-item.mdc-list-item--with-two-lines{height:var(--mat-list-list-item-two-line-container-height, 64px)}.mdc-list-item.mdc-list-item--with-two-lines .mdc-list-item__start{align-self:flex-start;margin-top:16px}.mdc-list-item.mdc-list-item--with-two-lines .mdc-list-item__end{align-self:center;margin-top:0}.mdc-list-item.mdc-list-item--with-three-lines{height:var(--mat-list-list-item-three-line-container-height, 88px)}.mdc-list-item.mdc-list-item--with-three-lines .mdc-list-item__start{align-self:flex-start;margin-top:16px}.mdc-list-item.mdc-list-item--with-three-lines .mdc-list-item__end{align-self:flex-start;margin-top:16px}.mdc-list-item.mdc-list-item--selected::before,.mdc-list-item.mdc-list-item--selected:focus::before,.mdc-list-item:not(.mdc-list-item--selected):focus::before{position:absolute;box-sizing:border-box;width:100%;height:100%;top:0;left:0;content:"";pointer-events:none}a.mdc-list-item{color:inherit;text-decoration:none}.mdc-list-item__start{fill:currentColor;flex-shrink:0;pointer-events:none}.mdc-list-item--with-leading-icon .mdc-list-item__start{color:var(--mat-list-list-item-leading-icon-color, var(--mat-sys-on-surface-variant));width:var(--mat-list-list-item-leading-icon-size, 24px);height:var(--mat-list-list-item-leading-icon-size, 24px);margin-left:16px;margin-right:32px}[dir=rtl] .mdc-list-item--with-leading-icon .mdc-list-item__start{margin-left:32px;margin-right:16px}.mdc-list-item--with-leading-icon:hover .mdc-list-item__start{color:var(--mat-list-list-item-hover-leading-icon-color)}.mdc-list-item--with-leading-avatar .mdc-list-item__start{width:var(--mat-list-list-item-leading-avatar-size, 40px);height:var(--mat-list-list-item-leading-avatar-size, 40px);margin-left:16px;margin-right:16px;border-radius:50%}.mdc-list-item--with-leading-avatar .mdc-list-item__start,[dir=rtl] .mdc-list-item--with-leading-avatar .mdc-list-item__start{margin-left:16px;margin-right:16px;border-radius:50%}.mdc-list-item__end{flex-shrink:0;pointer-events:none}.mdc-list-item--with-trailing-meta .mdc-list-item__end{font-family:var(--mat-list-list-item-trailing-supporting-text-font, var(--mat-sys-label-small-font));line-height:var(--mat-list-list-item-trailing-supporting-text-line-height, var(--mat-sys-label-small-line-height));font-size:var(--mat-list-list-item-trailing-supporting-text-size, var(--mat-sys-label-small-size));font-weight:var(--mat-list-list-item-trailing-supporting-text-weight, var(--mat-sys-label-small-weight));letter-spacing:var(--mat-list-list-item-trailing-supporting-text-tracking, var(--mat-sys-label-small-tracking))}.mdc-list-item--with-trailing-icon .mdc-list-item__end{color:var(--mat-list-list-item-trailing-icon-color, var(--mat-sys-on-surface-variant));width:var(--mat-list-list-item-trailing-icon-size, 24px);height:var(--mat-list-list-item-trailing-icon-size, 24px)}.mdc-list-item--with-trailing-icon:hover .mdc-list-item__end{color:var(--mat-list-list-item-hover-trailing-icon-color)}.mdc-list-item.mdc-list-item--with-trailing-meta .mdc-list-item__end{color:var(--mat-list-list-item-trailing-supporting-text-color, var(--mat-sys-on-surface-variant))}.mdc-list-item--selected.mdc-list-item--with-trailing-icon .mdc-list-item__end{color:var(--mat-list-list-item-selected-trailing-icon-color, var(--mat-sys-primary))}.mdc-list-item__content{text-overflow:ellipsis;white-space:nowrap;overflow:hidden;align-self:center;flex:1;pointer-events:none}.mdc-list-item--with-two-lines .mdc-list-item__content,.mdc-list-item--with-three-lines .mdc-list-item__content{align-self:stretch}.mdc-list-item__primary-text{text-overflow:ellipsis;white-space:nowrap;overflow:hidden;color:var(--mat-list-list-item-label-text-color, var(--mat-sys-on-surface));font-family:var(--mat-list-list-item-label-text-font, var(--mat-sys-body-large-font));line-height:var(--mat-list-list-item-label-text-line-height, var(--mat-sys-body-large-line-height));font-size:var(--mat-list-list-item-label-text-size, var(--mat-sys-body-large-size));font-weight:var(--mat-list-list-item-label-text-weight, var(--mat-sys-body-large-weight));letter-spacing:var(--mat-list-list-item-label-text-tracking, var(--mat-sys-body-large-tracking))}.mdc-list-item:hover .mdc-list-item__primary-text{color:var(--mat-list-list-item-hover-label-text-color, var(--mat-sys-on-surface))}.mdc-list-item:focus .mdc-list-item__primary-text{color:var(--mat-list-list-item-focus-label-text-color, var(--mat-sys-on-surface))}.mdc-list-item--with-two-lines .mdc-list-item__primary-text,.mdc-list-item--with-three-lines .mdc-list-item__primary-text{display:block;margin-top:0;line-height:normal;margin-bottom:-20px}.mdc-list-item--with-two-lines .mdc-list-item__primary-text::before,.mdc-list-item--with-three-lines .mdc-list-item__primary-text::before{display:inline-block;width:0;height:28px;content:"";vertical-align:0}.mdc-list-item--with-two-lines .mdc-list-item__primary-text::after,.mdc-list-item--with-three-lines .mdc-list-item__primary-text::after{display:inline-block;width:0;height:20px;content:"";vertical-align:-20px}.mdc-list-item__secondary-text{text-overflow:ellipsis;white-space:nowrap;overflow:hidden;display:block;margin-top:0;color:var(--mat-list-list-item-supporting-text-color, var(--mat-sys-on-surface-variant));font-family:var(--mat-list-list-item-supporting-text-font, var(--mat-sys-body-medium-font));line-height:var(--mat-list-list-item-supporting-text-line-height, var(--mat-sys-body-medium-line-height));font-size:var(--mat-list-list-item-supporting-text-size, var(--mat-sys-body-medium-size));font-weight:var(--mat-list-list-item-supporting-text-weight, var(--mat-sys-body-medium-weight));letter-spacing:var(--mat-list-list-item-supporting-text-tracking, var(--mat-sys-body-medium-tracking))}.mdc-list-item__secondary-text::before{display:inline-block;width:0;height:20px;content:"";vertical-align:0}.mdc-list-item--with-three-lines .mdc-list-item__secondary-text{white-space:normal;line-height:20px}.mdc-list-item--with-overline .mdc-list-item__secondary-text{white-space:nowrap;line-height:auto}.mdc-list-item--with-leading-radio.mdc-list-item,.mdc-list-item--with-leading-checkbox.mdc-list-item,.mdc-list-item--with-leading-icon.mdc-list-item,.mdc-list-item--with-leading-avatar.mdc-list-item{padding-left:0;padding-right:16px}[dir=rtl] .mdc-list-item--with-leading-radio.mdc-list-item,[dir=rtl] .mdc-list-item--with-leading-checkbox.mdc-list-item,[dir=rtl] .mdc-list-item--with-leading-icon.mdc-list-item,[dir=rtl] .mdc-list-item--with-leading-avatar.mdc-list-item{padding-left:16px;padding-right:0}.mdc-list-item--with-leading-radio.mdc-list-item--with-two-lines .mdc-list-item__primary-text,.mdc-list-item--with-leading-checkbox.mdc-list-item--with-two-lines .mdc-list-item__primary-text,.mdc-list-item--with-leading-icon.mdc-list-item--with-two-lines .mdc-list-item__primary-text,.mdc-list-item--with-leading-avatar.mdc-list-item--with-two-lines .mdc-list-item__primary-text{display:block;margin-top:0;line-height:normal;margin-bottom:-20px}.mdc-list-item--with-leading-radio.mdc-list-item--with-two-lines .mdc-list-item__primary-text::before,.mdc-list-item--with-leading-checkbox.mdc-list-item--with-two-lines .mdc-list-item__primary-text::before,.mdc-list-item--with-leading-icon.mdc-list-item--with-two-lines .mdc-list-item__primary-text::before,.mdc-list-item--with-leading-avatar.mdc-list-item--with-two-lines .mdc-list-item__primary-text::before{display:inline-block;width:0;height:32px;content:"";vertical-align:0}.mdc-list-item--with-leading-radio.mdc-list-item--with-two-lines .mdc-list-item__primary-text::after,.mdc-list-item--with-leading-checkbox.mdc-list-item--with-two-lines .mdc-list-item__primary-text::after,.mdc-list-item--with-leading-icon.mdc-list-item--with-two-lines .mdc-list-item__primary-text::after,.mdc-list-item--with-leading-avatar.mdc-list-item--with-two-lines .mdc-list-item__primary-text::after{display:inline-block;width:0;height:20px;content:"";vertical-align:-20px}.mdc-list-item--with-leading-radio.mdc-list-item--with-two-lines.mdc-list-item--with-trailing-meta .mdc-list-item__end,.mdc-list-item--with-leading-checkbox.mdc-list-item--with-two-lines.mdc-list-item--with-trailing-meta .mdc-list-item__end,.mdc-list-item--with-leading-icon.mdc-list-item--with-two-lines.mdc-list-item--with-trailing-meta .mdc-list-item__end,.mdc-list-item--with-leading-avatar.mdc-list-item--with-two-lines.mdc-list-item--with-trailing-meta .mdc-list-item__end{display:block;margin-top:0;line-height:normal}.mdc-list-item--with-leading-radio.mdc-list-item--with-two-lines.mdc-list-item--with-trailing-meta .mdc-list-item__end::before,.mdc-list-item--with-leading-checkbox.mdc-list-item--with-two-lines.mdc-list-item--with-trailing-meta .mdc-list-item__end::before,.mdc-list-item--with-leading-icon.mdc-list-item--with-two-lines.mdc-list-item--with-trailing-meta .mdc-list-item__end::before,.mdc-list-item--with-leading-avatar.mdc-list-item--with-two-lines.mdc-list-item--with-trailing-meta .mdc-list-item__end::before{display:inline-block;width:0;height:32px;content:"";vertical-align:0}.mdc-list-item--with-trailing-icon.mdc-list-item,[dir=rtl] .mdc-list-item--with-trailing-icon.mdc-list-item{padding-left:0;padding-right:0}.mdc-list-item--with-trailing-icon .mdc-list-item__end{margin-left:16px;margin-right:16px}.mdc-list-item--with-trailing-meta.mdc-list-item{padding-left:16px;padding-right:0}[dir=rtl] .mdc-list-item--with-trailing-meta.mdc-list-item{padding-left:0;padding-right:16px}.mdc-list-item--with-trailing-meta .mdc-list-item__end{-webkit-user-select:none;user-select:none;margin-left:28px;margin-right:16px}[dir=rtl] .mdc-list-item--with-trailing-meta .mdc-list-item__end{margin-left:16px;margin-right:28px}.mdc-list-item--with-trailing-meta.mdc-list-item--with-three-lines .mdc-list-item__end,.mdc-list-item--with-trailing-meta.mdc-list-item--with-two-lines .mdc-list-item__end{display:block;line-height:normal;align-self:flex-start;margin-top:0}.mdc-list-item--with-trailing-meta.mdc-list-item--with-three-lines .mdc-list-item__end::before,.mdc-list-item--with-trailing-meta.mdc-list-item--with-two-lines .mdc-list-item__end::before{display:inline-block;width:0;height:28px;content:"";vertical-align:0}.mdc-list-item--with-leading-radio .mdc-list-item__start,.mdc-list-item--with-leading-checkbox .mdc-list-item__start{margin-left:8px;margin-right:24px}[dir=rtl] .mdc-list-item--with-leading-radio .mdc-list-item__start,[dir=rtl] .mdc-list-item--with-leading-checkbox .mdc-list-item__start{margin-left:24px;margin-right:8px}.mdc-list-item--with-leading-radio.mdc-list-item--with-two-lines .mdc-list-item__start,.mdc-list-item--with-leading-checkbox.mdc-list-item--with-two-lines .mdc-list-item__start{align-self:flex-start;margin-top:8px}.mdc-list-item--with-trailing-radio.mdc-list-item,.mdc-list-item--with-trailing-checkbox.mdc-list-item{padding-left:16px;padding-right:0}[dir=rtl] .mdc-list-item--with-trailing-radio.mdc-list-item,[dir=rtl] .mdc-list-item--with-trailing-checkbox.mdc-list-item{padding-left:0;padding-right:16px}.mdc-list-item--with-trailing-radio.mdc-list-item--with-leading-icon,.mdc-list-item--with-trailing-radio.mdc-list-item--with-leading-avatar,.mdc-list-item--with-trailing-checkbox.mdc-list-item--with-leading-icon,.mdc-list-item--with-trailing-checkbox.mdc-list-item--with-leading-avatar{padding-left:0}[dir=rtl] .mdc-list-item--with-trailing-radio.mdc-list-item--with-leading-icon,[dir=rtl] .mdc-list-item--with-trailing-radio.mdc-list-item--with-leading-avatar,[dir=rtl] .mdc-list-item--with-trailing-checkbox.mdc-list-item--with-leading-icon,[dir=rtl] .mdc-list-item--with-trailing-checkbox.mdc-list-item--with-leading-avatar{padding-right:0}.mdc-list-item--with-trailing-radio .mdc-list-item__end,.mdc-list-item--with-trailing-checkbox .mdc-list-item__end{margin-left:24px;margin-right:8px}[dir=rtl] .mdc-list-item--with-trailing-radio .mdc-list-item__end,[dir=rtl] .mdc-list-item--with-trailing-checkbox .mdc-list-item__end{margin-left:8px;margin-right:24px}.mdc-list-item--with-trailing-radio.mdc-list-item--with-three-lines .mdc-list-item__end,.mdc-list-item--with-trailing-checkbox.mdc-list-item--with-three-lines .mdc-list-item__end{align-self:flex-start;margin-top:8px}.mdc-list-group__subheader{margin:.75rem 16px}.mdc-list-item--disabled .mdc-list-item__start,.mdc-list-item--disabled .mdc-list-item__content,.mdc-list-item--disabled .mdc-list-item__end{opacity:1}.mdc-list-item--disabled .mdc-list-item__primary-text,.mdc-list-item--disabled .mdc-list-item__secondary-text{opacity:var(--mat-list-list-item-disabled-label-text-opacity, 0.3)}.mdc-list-item--disabled.mdc-list-item--with-leading-icon .mdc-list-item__start{color:var(--mat-list-list-item-disabled-leading-icon-color, var(--mat-sys-on-surface));opacity:var(--mat-list-list-item-disabled-leading-icon-opacity, 0.38)}.mdc-list-item--disabled.mdc-list-item--with-trailing-icon .mdc-list-item__end{color:var(--mat-list-list-item-disabled-trailing-icon-color, var(--mat-sys-on-surface));opacity:var(--mat-list-list-item-disabled-trailing-icon-opacity, 0.38)}.mat-mdc-list-item.mat-mdc-list-item-both-leading-and-trailing,[dir=rtl] .mat-mdc-list-item.mat-mdc-list-item-both-leading-and-trailing{padding-left:0;padding-right:0}.mdc-list-item.mdc-list-item--disabled .mdc-list-item__primary-text{color:var(--mat-list-list-item-disabled-label-text-color, var(--mat-sys-on-surface))}.mdc-list-item:hover::before{background-color:var(--mat-list-list-item-hover-state-layer-color, var(--mat-sys-on-surface));opacity:var(--mat-list-list-item-hover-state-layer-opacity, var(--mat-sys-hover-state-layer-opacity))}.mdc-list-item.mdc-list-item--disabled::before{background-color:var(--mat-list-list-item-disabled-state-layer-color, var(--mat-sys-on-surface));opacity:var(--mat-list-list-item-disabled-state-layer-opacity, var(--mat-sys-focus-state-layer-opacity))}.mdc-list-item:focus::before{background-color:var(--mat-list-list-item-focus-state-layer-color, var(--mat-sys-on-surface));opacity:var(--mat-list-list-item-focus-state-layer-opacity, var(--mat-sys-focus-state-layer-opacity))}.mdc-list-item--disabled .mdc-radio,.mdc-list-item--disabled .mdc-checkbox{opacity:var(--mat-list-list-item-disabled-label-text-opacity, 0.3)}.mdc-list-item--with-leading-avatar .mat-mdc-list-item-avatar{border-radius:var(--mat-list-list-item-leading-avatar-shape, var(--mat-sys-corner-full));background-color:var(--mat-list-list-item-leading-avatar-color, var(--mat-sys-primary-container))}.mat-mdc-list-item-icon{font-size:var(--mat-list-list-item-leading-icon-size, 24px)}@media(forced-colors: active){a.mdc-list-item--activated::after{content:"";position:absolute;top:50%;right:16px;transform:translateY(-50%);width:10px;height:0;border-bottom:solid 10px;border-radius:10px}a.mdc-list-item--activated [dir=rtl]::after{right:auto;left:16px}}.mat-mdc-list-base{display:block}.mat-mdc-list-base .mdc-list-item__start,.mat-mdc-list-base .mdc-list-item__end,.mat-mdc-list-base .mdc-list-item__content{pointer-events:auto}.mat-mdc-list-item,.mat-mdc-list-option{width:100%;box-sizing:border-box;-webkit-tap-highlight-color:rgba(0,0,0,0)}.mat-mdc-list-item:not(.mat-mdc-list-item-interactive),.mat-mdc-list-option:not(.mat-mdc-list-item-interactive){cursor:default}.mat-mdc-list-item .mat-divider-inset,.mat-mdc-list-option .mat-divider-inset{position:absolute;left:0;right:0;bottom:0}.mat-mdc-list-item .mat-mdc-list-item-avatar~.mat-divider-inset,.mat-mdc-list-option .mat-mdc-list-item-avatar~.mat-divider-inset{margin-left:72px}[dir=rtl] .mat-mdc-list-item .mat-mdc-list-item-avatar~.mat-divider-inset,[dir=rtl] .mat-mdc-list-option .mat-mdc-list-item-avatar~.mat-divider-inset{margin-right:72px}.mat-mdc-list-item-interactive::before{top:0;left:0;right:0;bottom:0;position:absolute;content:"";opacity:0;pointer-events:none;border-radius:inherit}.mat-mdc-list-item>.mat-focus-indicator{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none}.mat-mdc-list-item:focus>.mat-focus-indicator::before{content:""}.mat-mdc-list-item.mdc-list-item--with-three-lines .mat-mdc-list-item-line.mdc-list-item__secondary-text{white-space:nowrap;line-height:normal}.mat-mdc-list-item.mdc-list-item--with-three-lines .mat-mdc-list-item-unscoped-content.mdc-list-item__secondary-text{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2}mat-action-list button{background:none;color:inherit;border:none;font:inherit;outline:inherit;-webkit-tap-highlight-color:rgba(0,0,0,0);text-align:start}mat-action-list button::-moz-focus-inner{border:0}.mdc-list-item--with-leading-icon .mdc-list-item__start{margin-inline-start:var(--mat-list-list-item-leading-icon-start-space, 16px);margin-inline-end:var(--mat-list-list-item-leading-icon-end-space, 16px)}.mat-mdc-nav-list .mat-mdc-list-item{border-radius:var(--mat-list-active-indicator-shape, var(--mat-sys-corner-full));--mat-focus-indicator-border-radius: var(--mat-list-active-indicator-shape, var(--mat-sys-corner-full))}.mat-mdc-nav-list .mat-mdc-list-item.mdc-list-item--activated{background-color:var(--mat-list-active-indicator-color, var(--mat-sys-secondary-container))} +`,rfe=["unscopedContent"],ofe=["text"],afe=[[["","matListItemAvatar",""],["","matListItemIcon",""]],[["","matListItemTitle",""]],[["","matListItemLine",""]],"*",[["","matListItemMeta",""]],[["mat-divider"]]],sfe=["[matListItemAvatar],[matListItemIcon]","[matListItemTitle]","[matListItemLine]","*","[matListItemMeta]","mat-divider"];var lfe=new O("ListOption"),Ml=(()=>{class t{_elementRef=u(Y);constructor(){}static \u0275fac=function(i){return new(i||t)};static \u0275dir=P({type:t,selectors:[["","matListItemTitle",""]],hostAttrs:[1,"mat-mdc-list-item-title","mdc-list-item__primary-text"]})}return t})(),Pu=(()=>{class t{_elementRef=u(Y);constructor(){}static \u0275fac=function(i){return new(i||t)};static \u0275dir=P({type:t,selectors:[["","matListItemLine",""]],hostAttrs:[1,"mat-mdc-list-item-line","mdc-list-item__secondary-text"]})}return t})(),RI=(()=>{class t{static \u0275fac=function(i){return new(i||t)};static \u0275dir=P({type:t,selectors:[["","matListItemMeta",""]],hostAttrs:[1,"mat-mdc-list-item-meta","mdc-list-item__end"]})}return t})(),E8=(()=>{class t{_listOption=u(lfe,{optional:!0});constructor(){}_isAlignedAtStart(){return!this._listOption||this._listOption?._getTogglePosition()==="after"}static \u0275fac=function(i){return new(i||t)};static \u0275dir=P({type:t,hostVars:4,hostBindings:function(i,r){i&2&&G("mdc-list-item__start",r._isAlignedAtStart())("mdc-list-item__end",!r._isAlignedAtStart())}})}return t})(),cfe=(()=>{class t extends E8{static \u0275fac=(()=>{let e;return function(r){return(e||(e=ge(t)))(r||t)}})();static \u0275dir=P({type:t,selectors:[["","matListItemAvatar",""]],hostAttrs:[1,"mat-mdc-list-item-avatar"],features:[le]})}return t})(),v_=(()=>{class t extends E8{static \u0275fac=(()=>{let e;return function(r){return(e||(e=ge(t)))(r||t)}})();static \u0275dir=P({type:t,selectors:[["","matListItemIcon",""]],hostAttrs:[1,"mat-mdc-list-item-icon"],features:[le]})}return t})(),dfe=new O("MAT_LIST_CONFIG"),b_=(()=>{class t{_isNonInteractive=!0;get disableRipple(){return this._disableRipple}set disableRipple(e){this._disableRipple=Ri(e)}_disableRipple=!1;get disabled(){return this._disabled()}set disabled(e){this._disabled.set(Ri(e))}_disabled=he(!1);_defaultOptions=u(dfe,{optional:!0});static \u0275fac=function(i){return new(i||t)};static \u0275dir=P({type:t,hostVars:1,hostBindings:function(i,r){i&2&&X("aria-disabled",r.disabled)},inputs:{disableRipple:"disableRipple",disabled:"disabled"}})}return t})(),ufe=(()=>{class t{_elementRef=u(Y);_ngZone=u(ae);_listBase=u(b_,{optional:!0});_platform=u(qe);_hostElement;_isButtonElement;_noopAnimations=Ye();_avatars;_icons;set lines(e){this._explicitLines=Bn(e,null),this._updateItemLines(!1)}_explicitLines=null;get disableRipple(){return this.disabled||this._disableRipple||this._noopAnimations||!!this._listBase?.disableRipple}set disableRipple(e){this._disableRipple=Ri(e)}_disableRipple=!1;get disabled(){return this._disabled()||!!this._listBase?.disabled}set disabled(e){this._disabled.set(Ri(e))}_disabled=he(!1);_subscriptions=new Te;_rippleRenderer=null;_hasUnscopedTextContent=!1;rippleConfig;get rippleDisabled(){return this.disableRipple||!!this.rippleConfig.disabled}constructor(){u(ht).load(ki);let e=u(ws,{optional:!0});this.rippleConfig=e||{},this._hostElement=this._elementRef.nativeElement,this._isButtonElement=this._hostElement.nodeName.toLowerCase()==="button",this._listBase&&!this._listBase._isNonInteractive&&this._initInteractiveListItem(),this._isButtonElement&&!this._hostElement.hasAttribute("type")&&this._hostElement.setAttribute("type","button")}ngAfterViewInit(){this._monitorProjectedLinesAndTitle(),this._updateItemLines(!0)}ngOnDestroy(){this._subscriptions.unsubscribe(),this._rippleRenderer!==null&&this._rippleRenderer._removeTriggerEvents()}_hasIconOrAvatar(){return!!(this._avatars.length||this._icons.length)}_initInteractiveListItem(){this._hostElement.classList.add("mat-mdc-list-item-interactive"),this._rippleRenderer=new dc(this,this._ngZone,this._hostElement,this._platform,u(de)),this._rippleRenderer.setupTriggerEvents(this._hostElement)}_monitorProjectedLinesAndTitle(){this._ngZone.runOutsideAngular(()=>{this._subscriptions.add(Je(this._lines.changes,this._titles.changes).subscribe(()=>this._updateItemLines(!1)))})}_updateItemLines(e){if(!this._lines||!this._titles||!this._unscopedContent)return;e&&this._checkDomForUnscopedTextContent();let i=this._explicitLines??this._inferLinesFromContent(),r=this._unscopedContent.nativeElement;if(this._hostElement.classList.toggle("mat-mdc-list-item-single-line",i<=1),this._hostElement.classList.toggle("mdc-list-item--with-one-line",i<=1),this._hostElement.classList.toggle("mdc-list-item--with-two-lines",i===2),this._hostElement.classList.toggle("mdc-list-item--with-three-lines",i===3),this._hasUnscopedTextContent){let o=this._titles.length===0&&i===1;r.classList.toggle("mdc-list-item__primary-text",o),r.classList.toggle("mdc-list-item__secondary-text",!o)}else r.classList.remove("mdc-list-item__primary-text"),r.classList.remove("mdc-list-item__secondary-text")}_inferLinesFromContent(){let e=this._titles.length+this._lines.length;return this._hasUnscopedTextContent&&(e+=1),e}_checkDomForUnscopedTextContent(){this._hasUnscopedTextContent=Array.from(this._unscopedContent.nativeElement.childNodes).filter(e=>e.nodeType!==e.COMMENT_NODE).some(e=>!!(e.textContent&&e.textContent.trim()))}static \u0275fac=function(i){return new(i||t)};static \u0275dir=P({type:t,contentQueries:function(i,r,o){if(i&1&&(xe(o,cfe,4),xe(o,v_,4)),i&2){let a;j(a=H())&&(r._avatars=a),j(a=H())&&(r._icons=a)}},hostVars:4,hostBindings:function(i,r){i&2&&(X("aria-disabled",r.disabled)("disabled",r._isButtonElement&&r.disabled||null),G("mdc-list-item--disabled",r.disabled))},inputs:{lines:"lines",disableRipple:"disableRipple",disabled:"disabled"}})}return t})();var Ns=(()=>{class t extends b_{static \u0275fac=(()=>{let e;return function(r){return(e||(e=ge(t)))(r||t)}})();static \u0275cmp=E({type:t,selectors:[["mat-list"]],hostAttrs:[1,"mat-mdc-list","mat-mdc-list-base","mdc-list"],exportAs:["matList"],features:[Ce([{provide:b_,useExisting:t}]),le],ngContentSelectors:w8,decls:1,vars:0,template:function(i,r){i&1&&(Se(),ne(0))},styles:[D8],encapsulation:2,changeDetection:0})}return t})(),da=(()=>{class t extends ufe{_lines;_titles;_meta;_unscopedContent;_itemText;get activated(){return this._activated}set activated(e){this._activated=Ri(e)}_activated=!1;_getAriaCurrent(){return this._hostElement.nodeName==="A"&&this._activated?"page":null}_hasBothLeadingAndTrailing(){return this._meta.length!==0&&(this._avatars.length!==0||this._icons.length!==0)}static \u0275fac=(()=>{let e;return function(r){return(e||(e=ge(t)))(r||t)}})();static \u0275cmp=E({type:t,selectors:[["mat-list-item"],["a","mat-list-item",""],["button","mat-list-item",""]],contentQueries:function(i,r,o){if(i&1&&(xe(o,Pu,5),xe(o,Ml,5),xe(o,RI,5)),i&2){let a;j(a=H())&&(r._lines=a),j(a=H())&&(r._titles=a),j(a=H())&&(r._meta=a)}},viewQuery:function(i,r){if(i&1&&(ie(rfe,5),ie(ofe,5)),i&2){let o;j(o=H())&&(r._unscopedContent=o.first),j(o=H())&&(r._itemText=o.first)}},hostAttrs:[1,"mat-mdc-list-item","mdc-list-item"],hostVars:13,hostBindings:function(i,r){i&2&&(X("aria-current",r._getAriaCurrent()),G("mdc-list-item--activated",r.activated)("mdc-list-item--with-leading-avatar",r._avatars.length!==0)("mdc-list-item--with-leading-icon",r._icons.length!==0)("mdc-list-item--with-trailing-meta",r._meta.length!==0)("mat-mdc-list-item-both-leading-and-trailing",r._hasBothLeadingAndTrailing())("_mat-animation-noopable",r._noopAnimations))},inputs:{activated:"activated"},exportAs:["matListItem"],features:[le],ngContentSelectors:sfe,decls:10,vars:0,consts:[["unscopedContent",""],[1,"mdc-list-item__content"],[1,"mat-mdc-list-item-unscoped-content",3,"cdkObserveContent"],[1,"mat-focus-indicator"]],template:function(i,r){if(i&1){let o=q();Se(afe),ne(0),m(1,"span",1),ne(2,1),ne(3,2),m(4,"span",2,0),S("cdkObserveContent",function(){return T(o),I(r._updateItemLines(!0))}),ne(6,3),h()(),ne(7,4),ne(8,5),M(9,"div",3)}},dependencies:[Kf],encapsulation:2,changeDetection:0})}return t})();var M8=(()=>{class t extends b_{_isNonInteractive=!1;static \u0275fac=(()=>{let e;return function(r){return(e||(e=ge(t)))(r||t)}})();static \u0275cmp=E({type:t,selectors:[["mat-nav-list"]],hostAttrs:["role","navigation",1,"mat-mdc-nav-list","mat-mdc-list-base","mdc-list"],exportAs:["matNavList"],features:[Ce([{provide:b_,useExisting:t}]),le],ngContentSelectors:w8,decls:1,vars:0,template:function(i,r){i&1&&(Se(),ne(0))},styles:[D8],encapsulation:2,changeDetection:0})}return t})();var ua=(()=>{class t{static \u0275fac=function(i){return new(i||t)};static \u0275mod=ee({type:t});static \u0275inj=J({imports:[Jm,De,Mo,Xv,ho]})}return t})();var mfe=["mat-menu-item",""],hfe=[[["mat-icon"],["","matMenuItemIcon",""]],"*"],pfe=["mat-icon, [matMenuItemIcon]","*"];function ffe(t,n){t&1&&(Zt(),m(0,"svg",2),M(1,"polygon",3),h())}var gfe=["*"];function _fe(t,n){if(t&1){let e=q();pt(0,"div",0),I0("click",function(){T(e);let r=x();return I(r.closed.emit("click"))})("animationstart",function(r){T(e);let o=x();return I(o._onAnimationStart(r.animationName))})("animationend",function(r){T(e);let o=x();return I(o._onAnimationDone(r.animationName))})("animationcancel",function(r){T(e);let o=x();return I(o._onAnimationDone(r.animationName))}),pt(1,"div",1),ne(2),_t()()}if(t&2){let e=x();nt(e._classList),G("mat-menu-panel-animations-disabled",e._animationsDisabled)("mat-menu-panel-exit-animation",e._panelAnimationState==="void")("mat-menu-panel-animating",e._isAnimating()),ci("id",e.panelId),X("aria-label",e.ariaLabel||null)("aria-labelledby",e.ariaLabelledby||null)("aria-describedby",e.ariaDescribedby||null)}}var FI=new O("MAT_MENU_PANEL"),Sl=(()=>{class t{_elementRef=u(Y);_document=u(_e);_focusMonitor=u(ti);_parentMenu=u(FI,{optional:!0});_changeDetectorRef=u(ye);role="menuitem";disabled=!1;disableRipple=!1;_hovered=new z;_focused=new z;_highlighted=!1;_triggersSubmenu=!1;constructor(){u(ht).load(ki),this._parentMenu?.addItem?.(this)}focus(e,i){this._focusMonitor&&e?this._focusMonitor.focusVia(this._getHostElement(),e,i):this._getHostElement().focus(i),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),i=e.querySelectorAll("mat-icon, .material-icons");for(let r=0;r{class t{_elementRef=u(Y);_changeDetectorRef=u(ye);_injector=u(de);_keyManager;_xPosition;_yPosition;_firstItemFocusRef;_exitFallbackTimeout;_animationsDisabled=Ye();_allItems;_directDescendantItems=new gr;_classList={};_panelAnimationState="void";_animationDone=new z;_isAnimating=he(!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;hasBackdrop;set panelClass(e){let i=this._previousPanelClass,r=k({},this._classList);i&&i.length&&i.split(" ").forEach(o=>{r[o]=!1}),this._previousPanelClass=e,e&&e.length&&(e.split(" ").forEach(o=>{r[o]=!0}),this._elementRef.nativeElement.className=""),this._classList=r}_previousPanelClass;get classList(){return this.panelClass}set classList(e){this.panelClass=e}closed=new U;close=this.closed;panelId=u(Ze).getId("mat-menu-panel-");constructor(){let e=u(vfe);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 vs(this._directDescendantItems).withWrap().withTypeAhead().withHomeAndEnd(),this._keyManager.tabOut.subscribe(()=>this.closed.emit("tab")),this._directDescendantItems.changes.pipe(Ue(this._directDescendantItems),je(e=>Je(...e.map(i=>i._focused)))).subscribe(e=>this._keyManager.updateActiveItem(e)),this._directDescendantItems.changes.subscribe(e=>{let i=this._keyManager;if(this._panelAnimationState==="enter"&&i.activeItem?._hasFocus()){let r=e.toArray(),o=Math.max(0,Math.min(r.length-1,i.activeItemIndex||0));r[o]&&!r[o].disabled?i.setActiveItem(o):i.setNextItemActive()}})}ngOnDestroy(){this._keyManager?.destroy(),this._directDescendantItems.destroy(),this.closed.complete(),this._firstItemFocusRef?.destroy(),clearTimeout(this._exitFallbackTimeout)}_hovered(){return this._directDescendantItems.changes.pipe(Ue(this._directDescendantItems),je(i=>Je(...i.map(r=>r._hovered))))}addItem(e){}removeItem(e){}_handleKeydown(e){let i=e.keyCode,r=this._keyManager;switch(i){case 27:Lt(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:(i===38||i===40)&&r.setFocusOrigin("keyboard"),r.onKeydown(e);return}}focusFirstItem(e="program"){this._firstItemFocusRef?.destroy(),this._firstItemFocusRef=gt(()=>{let i=this._resolvePanel();if(!i||!i.contains(document.activeElement)){let r=this._keyManager;r.setFocusOrigin(e).setFirstItemActive(),!r.activeItem&&i&&i.focus()}},{injector:this._injector})}resetActiveItem(){this._keyManager.setActiveItem(-1)}setElevation(e){}setPositionClasses(e=this.xPosition,i=this.yPosition){this._classList=Ee(k({},this._classList),{"mat-menu-before":e==="before","mat-menu-after":e==="after","mat-menu-above":i==="above","mat-menu-below":i==="below"}),this._changeDetectorRef.markForCheck()}_onAnimationDone(e){let i=e===rw;(i||e===PI)&&(i&&(clearTimeout(this._exitFallbackTimeout),this._exitFallbackTimeout=void 0),this._animationDone.next(i?"void":"enter"),this._isAnimating.set(!1))}_onAnimationStart(e){(e===PI||e===rw)&&this._isAnimating.set(!0)}_setIsOpen(e){if(this._panelAnimationState=e?"enter":"void",e){if(this._keyManager.activeItemIndex===0){let i=this._resolvePanel();i&&(i.scrollTop=0)}}else this._animationsDisabled||(this._exitFallbackTimeout=setTimeout(()=>this._onAnimationDone(rw),200));this._animationsDisabled&&setTimeout(()=>{this._onAnimationDone(e?PI:rw)}),this._changeDetectorRef.markForCheck()}_updateDirectDescendants(){this._allItems.changes.pipe(Ue(this._allItems)).subscribe(e=>{this._directDescendantItems.reset(e.filter(i=>i._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(i){return new(i||t)};static \u0275cmp=E({type:t,selectors:[["mat-menu"]],contentQueries:function(i,r,o){if(i&1&&(xe(o,bfe,5),xe(o,Sl,5),xe(o,Sl,4)),i&2){let a;j(a=H())&&(r.lazyContent=a.first),j(a=H())&&(r._allItems=a),j(a=H())&&(r.items=a)}},viewQuery:function(i,r){if(i&1&&ie(te,5),i&2){let o;j(o=H())&&(r.templateRef=o.first)}},hostVars:3,hostBindings:function(i,r){i&2&&X("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",L],hasBackdrop:[2,"hasBackdrop","hasBackdrop",e=>e==null?null:L(e)],panelClass:[0,"class","panelClass"],classList:"classList"},outputs:{closed:"closed",close:"close"},exportAs:["matMenu"],features:[Ce([{provide:FI,useExisting:t}])],ngContentSelectors:gfe,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(i,r){i&1&&(Se(),wa(0,_fe,3,12,"ng-template"))},styles:[`mat-menu{display:none}.mat-mdc-menu-content{margin:0;padding:8px 0;outline:0}.mat-mdc-menu-content,.mat-mdc-menu-content .mat-mdc-menu-item .mat-mdc-menu-item-text{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;flex:1;white-space:normal;font-family:var(--mat-menu-item-label-text-font, var(--mat-sys-label-large-font));line-height:var(--mat-menu-item-label-text-line-height, var(--mat-sys-label-large-line-height));font-size:var(--mat-menu-item-label-text-size, var(--mat-sys-label-large-size));letter-spacing:var(--mat-menu-item-label-text-tracking, var(--mat-sys-label-large-tracking));font-weight:var(--mat-menu-item-label-text-weight, var(--mat-sys-label-large-weight))}@keyframes _mat-menu-enter{from{opacity:0;transform:scale(0.8)}to{opacity:1;transform:none}}@keyframes _mat-menu-exit{from{opacity:1}to{opacity:0}}.mat-mdc-menu-panel{min-width:112px;max-width:280px;overflow:auto;box-sizing:border-box;outline:0;animation:_mat-menu-enter 120ms cubic-bezier(0, 0, 0.2, 1);border-radius:var(--mat-menu-container-shape, var(--mat-sys-corner-extra-small));background-color:var(--mat-menu-container-color, var(--mat-sys-surface-container));box-shadow:var(--mat-menu-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));will-change:transform,opacity}.mat-mdc-menu-panel.mat-menu-panel-exit-animation{animation:_mat-menu-exit 100ms 25ms linear forwards}.mat-mdc-menu-panel.mat-menu-panel-animations-disabled{animation:none}.mat-mdc-menu-panel.mat-menu-panel-animating{pointer-events:none}.mat-mdc-menu-panel.mat-menu-panel-animating:has(.mat-mdc-menu-content:empty){display:none}@media(forced-colors: active){.mat-mdc-menu-panel{outline:solid 1px}}.mat-mdc-menu-panel .mat-divider{color:var(--mat-menu-divider-color, var(--mat-sys-surface-variant));margin-bottom:var(--mat-menu-divider-bottom-spacing, 8px);margin-top:var(--mat-menu-divider-top-spacing, 8px)}.mat-mdc-menu-item{display:flex;position:relative;align-items:center;justify-content:flex-start;overflow:hidden;padding:0;cursor:pointer;width:100%;text-align:left;box-sizing:border-box;color:inherit;font-size:inherit;background:none;text-decoration:none;margin:0;min-height:48px;padding-left:var(--mat-menu-item-leading-spacing, 12px);padding-right:var(--mat-menu-item-trailing-spacing, 12px);-webkit-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:rgba(0,0,0,0)}.mat-mdc-menu-item::-moz-focus-inner{border:0}[dir=rtl] .mat-mdc-menu-item{padding-left:var(--mat-menu-item-trailing-spacing, 12px);padding-right:var(--mat-menu-item-leading-spacing, 12px)}.mat-mdc-menu-item:has(.material-icons,mat-icon,[matButtonIcon]){padding-left:var(--mat-menu-item-with-icon-leading-spacing, 12px);padding-right:var(--mat-menu-item-with-icon-trailing-spacing, 12px)}[dir=rtl] .mat-mdc-menu-item:has(.material-icons,mat-icon,[matButtonIcon]){padding-left:var(--mat-menu-item-with-icon-trailing-spacing, 12px);padding-right:var(--mat-menu-item-with-icon-leading-spacing, 12px)}.mat-mdc-menu-item,.mat-mdc-menu-item:visited,.mat-mdc-menu-item:link{color:var(--mat-menu-item-label-text-color, var(--mat-sys-on-surface))}.mat-mdc-menu-item .mat-icon-no-color,.mat-mdc-menu-item .mat-mdc-menu-submenu-icon{color:var(--mat-menu-item-icon-color, var(--mat-sys-on-surface-variant))}.mat-mdc-menu-item[disabled]{cursor:default;opacity:.38}.mat-mdc-menu-item[disabled]::after{display:block;position:absolute;content:"";top:0;left:0;bottom:0;right:0}.mat-mdc-menu-item:focus{outline:0}.mat-mdc-menu-item .mat-icon{flex-shrink:0;margin-right:var(--mat-menu-item-spacing, 12px);height:var(--mat-menu-item-icon-size, 24px);width:var(--mat-menu-item-icon-size, 24px)}[dir=rtl] .mat-mdc-menu-item{text-align:right}[dir=rtl] .mat-mdc-menu-item .mat-icon{margin-right:0;margin-left:var(--mat-menu-item-spacing, 12px)}.mat-mdc-menu-item:not([disabled]):hover{background-color:var(--mat-menu-item-hover-state-layer-color, color-mix(in srgb, var(--mat-sys-on-surface) calc(var(--mat-sys-hover-state-layer-opacity) * 100%), transparent))}.mat-mdc-menu-item:not([disabled]).cdk-program-focused,.mat-mdc-menu-item:not([disabled]).cdk-keyboard-focused,.mat-mdc-menu-item:not([disabled]).mat-mdc-menu-item-highlighted{background-color:var(--mat-menu-item-focus-state-layer-color, color-mix(in srgb, var(--mat-sys-on-surface) calc(var(--mat-sys-focus-state-layer-opacity) * 100%), transparent))}@media(forced-colors: active){.mat-mdc-menu-item{margin-top:1px}}.mat-mdc-menu-submenu-icon{width:var(--mat-menu-item-icon-size, 24px);height:10px;fill:currentColor;padding-left:var(--mat-menu-item-spacing, 12px)}[dir=rtl] .mat-mdc-menu-submenu-icon{padding-right:var(--mat-menu-item-spacing, 12px);padding-left:0}[dir=rtl] .mat-mdc-menu-submenu-icon polygon{transform:scaleX(-1);transform-origin:center}@media(forced-colors: active){.mat-mdc-menu-submenu-icon{fill:CanvasText}}.mat-mdc-menu-item .mat-mdc-menu-ripple{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none} +`],encapsulation:2,changeDetection:0})}return t})(),S8=new O("mat-menu-scroll-strategy",{providedIn:"root",factory:()=>{let t=u(de);return()=>En(t)}});function xfe(t){let n=u(de);return()=>En(n)}var Cfe={provide:S8,deps:[],useFactory:xfe};var lp=new WeakMap,wfe=(()=>{class t{_canHaveBackdrop;_element=u(Y);_viewContainerRef=u(ot);_menuItemInstance=u(Sl,{optional:!0,self:!0});_dir=u(Bt,{optional:!0});_focusMonitor=u(ti);_ngZone=u(ae);_injector=u(de);_scrollStrategy=u(S8);_changeDetectorRef=u(ye);_animationsDisabled=Ye();_portal;_overlayRef=null;_menuOpen=!1;_closingActionsSubscription=Te.EMPTY;_menuCloseSubscription=Te.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(i=>{this._destroyMenu(i),(i==="click"||i==="tab")&&this._parentMaterialMenu&&this._parentMaterialMenu.closed.emit(i)})),this._menuItemInstance?._setTriggersSubmenu(this._triggersSubmenu()))}_menuInternal;constructor(e){this._canHaveBackdrop=e;let i=u(FI,{optional:!0});this._parentMaterialMenu=i instanceof Wr?i:void 0}ngOnDestroy(){this._menu&&this._ownsMenu(this._menu)&&lp.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){let i=this._menu;if(this._menuOpen||!i)return;this._pendingRemoval?.unsubscribe();let r=lp.get(i);lp.set(i,this),r&&r!==this&&r._closeMenu();let o=this._createOverlay(i),a=o.getConfig(),s=a.positionStrategy;this._setPosition(i,s),this._canHaveBackdrop?a.hasBackdrop=i.hasBackdrop==null?!this._triggersSubmenu():i.hasBackdrop:a.hasBackdrop=!1,o.hasAttached()||(o.attach(this._getPortal(i)),i.lazyContent?.attach(this.menuData)),this._closingActionsSubscription=this._menuClosingActions().subscribe(()=>this._closeMenu()),i.parentMenu=this._triggersSubmenu()?this._parentMaterialMenu:void 0,i.direction=this.dir,e&&i.focusFirstItem(this._openedBy||"program"),this._setIsMenuOpen(!0),i instanceof Wr&&(i._setIsOpen(!0),i._directDescendantItems.changes.pipe(we(i.close)).subscribe(()=>{s.withLockedPosition(!1).reapplyLastPosition(),s.withLockedPosition(!0)}))}focus(e,i){this._focusMonitor&&e?this._focusMonitor.focusVia(this._element,e,i):this._element.nativeElement.focus(i)}_destroyMenu(e){let i=this._overlayRef,r=this._menu;!i||!this.menuOpen||(this._closingActionsSubscription.unsubscribe(),this._pendingRemoval?.unsubscribe(),r instanceof Wr&&this._ownsMenu(r)?(this._pendingRemoval=r._animationDone.pipe(ct(1)).subscribe(()=>{i.detach(),lp.has(r)||r.lazyContent?.detach()}),r._setIsOpen(!1)):(i.detach(),r?.lazyContent?.detach()),r&&this._ownsMenu(r)&&lp.delete(r),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 i=this._getOverlayConfig(e);this._subscribeToPositions(e,i.positionStrategy),this._overlayRef=zr(this._injector,i),this._overlayRef.keydownEvents().subscribe(r=>{this._menu instanceof Wr&&this._menu._handleKeydown(r)})}return this._overlayRef}_getOverlayConfig(e){return new Hr({positionStrategy:Na(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,i){e.setPositionClasses&&i.positionChanges.subscribe(r=>{this._ngZone.run(()=>{let o=r.connectionPair.overlayX==="start"?"after":"before",a=r.connectionPair.overlayY==="top"?"below":"above";e.setPositionClasses(o,a)})})}_setPosition(e,i){let[r,o]=e.xPosition==="before"?["end","start"]:["start","end"],[a,s]=e.yPosition==="above"?["bottom","top"]:["top","bottom"],[l,c]=[a,s],[d,p]=[r,o],_=0;if(this._triggersSubmenu()){if(p=r=e.xPosition==="before"?"start":"end",o=d=r==="end"?"start":"end",this._parentMaterialMenu){if(this._parentInnerPadding==null){let b=this._parentMaterialMenu.items.first;this._parentInnerPadding=b?b._getHostElement().offsetTop:0}_=a==="bottom"?this._parentInnerPadding:-this._parentInnerPadding}}else e.overlapTrigger||(l=a==="top"?"bottom":"top",c=s==="top"?"bottom":"top");i.withPositions([{originX:r,originY:l,overlayX:d,overlayY:a,offsetY:_},{originX:o,originY:l,overlayX:p,overlayY:a,offsetY:_},{originX:r,originY:c,overlayX:d,overlayY:s,offsetY:-_},{originX:o,originY:c,overlayX:p,overlayY:s,offsetY:-_}])}_menuClosingActions(){let e=this._getOutsideClickStream(this._overlayRef),i=this._overlayRef.detachments(),r=this._parentMaterialMenu?this._parentMaterialMenu.closed:Q(),o=this._parentMaterialMenu?this._parentMaterialMenu._hovered().pipe(ce(a=>this._menuOpen&&a!==this._menuItemInstance)):Q();return Je(e,r,o,i)}_getPortal(e){return(!this._portal||this._portal.templateRef!==e.templateRef)&&(this._portal=new Dn(e.templateRef,this._viewContainerRef)),this._portal}_ownsMenu(e){return lp.get(e)===this}static \u0275fac=function(i){Nd()};static \u0275dir=P({type:t})}return t})(),Ls=(()=>{class t extends wfe{_cleanupTouchstart;_hoverSubscription=Te.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 U;onMenuOpen=this.menuOpened;menuClosed=new U;onMenuClose=this.menuClosed;constructor(){super(!0);let e=u(ze);this._cleanupTouchstart=e.listen(this._element.nativeElement,"touchstart",i=>{Xd(i)||(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){Zd(e)||(this._openedBy=e.button===0?"mouse":void 0,this.triggersSubmenu()&&e.preventDefault())}_handleKeydown(e){let i=e.keyCode;(i===13||i===32)&&(this._openedBy="keyboard"),this.triggersSubmenu()&&(i===39&&this.dir==="ltr"||i===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(i){return new(i||t)};static \u0275dir=P({type:t,selectors:[["","mat-menu-trigger-for",""],["","matMenuTriggerFor",""]],hostAttrs:[1,"mat-mdc-menu-trigger"],hostVars:3,hostBindings:function(i,r){i&1&&S("click",function(a){return r._handleClick(a)})("mousedown",function(a){return r._handleMousedown(a)})("keydown",function(a){return r._handleKeydown(a)}),i&2&&X("aria-haspopup",r.menu?"menu":null)("aria-expanded",r.menuOpen)("aria-controls",r.menuOpen?r.menu==null?null:r.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:[le]})}return t})();var Vs=(()=>{class t{static \u0275fac=function(i){return new(i||t)};static \u0275mod=ee({type:t});static \u0275inj=J({providers:[Cfe],imports:[Mo,De,nr,Cr,De]})}return t})(),k8={transformMenu:{type:7,name:"transformMenu",definitions:[{type:0,name:"void",styles:{type:6,styles:{opacity:0,transform:"scale(0.8)"},offset:null}},{type:1,expr:"void => enter",animation:{type:4,styles:{type:6,styles:{opacity:1,transform:"scale(1)"},offset:null},timings:"120ms cubic-bezier(0, 0, 0.2, 1)"},options:null},{type:1,expr:"* => void",animation:{type:4,styles:{type:6,styles:{opacity:0},offset:null},timings:"100ms 25ms linear"},options:null}],options:{}},fadeInItems:{type:7,name:"fadeInItems",definitions:[{type:0,name:"showing",styles:{type:6,styles:{opacity:1},offset:null}},{type:1,expr:"void => *",animation:[{type:6,styles:{opacity:0},offset:null},{type:4,styles:null,timings:"400ms 100ms cubic-bezier(0.55, 0, 0.55, 0.2)"}],options:null}],options:{}}},hct=k8.fadeInItems,pct=k8.transformMenu;function Dfe(t,n){if(t&1&&(m(0,"mat-list-item")(1,"mat-icon",3),g(2,"info"),h(),m(3,"a",4),g(4),h()()),t&2){let e=n.$implicit;f(4),N(e)}}var T8=(()=>{let n=class n{constructor(){this.messages=["Server Error Reports 1","Server Error Reports 2","Server Error Reports 3"]}};n.\u0275fac=function(r){return new(r||n)},n.\u0275cmp=E({type:n,selectors:[["app-notification"]],decls:8,vars:1,consts:[["menu","matMenu"],["matIconButton","",3,"matMenuTriggerFor"],["matBadge","5","matBadgeColor","warn","aria-hidden","false"],["matListItemIcon","",1,"m-x-16"],["matListItemTitle","","href","#"]],template:function(r,o){if(r&1&&(m(0,"button",1)(1,"mat-icon",2),g(2,"notifications"),h()(),m(3,"mat-menu",null,0)(5,"mat-nav-list"),xt(6,Dfe,5,1,"mat-list-item",null,Ui),h()()),r&2){let a=Me(4);v("matMenuTriggerFor",a),f(6),Ct(o.messages)}},dependencies:[C8,x8,Be,Yt,tt,st,ua,M8,da,v_,Ml,Vs,Wr,Ls],styles:["[_nghost-%COMP%] .mat-badge-content{--mat-badge-background-color: #ef0000;--mat-badge-text-color: #fff}"]});let t=n;return t})();var Efe=(t,n)=>n.value;function Mfe(t,n){t&1&&M(0,"mat-pseudo-checkbox",5)}function Sfe(t,n){if(t&1){let e=q();m(0,"button",3),S("click",function(){let r=T(e).$implicit,o=x();return I(o.changeLang(r.value))}),m(1,"span",4),g(2),ue(3,"translate"),V(4,Mfe,1,0,"mat-pseudo-checkbox",5),h()()}if(t&2){let e=n.$implicit,i=x();f(2),pe(" ",Oe(3,2,e.name)," "),f(2),B(e.value===i.options.language?4:-1)}}var I8=(()=>{let n=class n{constructor(){this.settings=u(ca),this.options=this.settings.options,this.langs=[{value:"en-US",name:"en_us"},{value:"zh-CN",name:"zh_cn"},{value:"zh-TW",name:"zh_tw"},{value:"auto",name:"system"}]}changeLang(i){this.settings.setLanguage(i)}};n.\u0275fac=function(r){return new(r||n)},n.\u0275cmp=E({type:n,selectors:[["app-translate"]],decls:7,vars:1,consts:[["menu","matMenu"],["matIconButton","",3,"matMenuTriggerFor"],["mat-menu-item",""],["mat-menu-item","",3,"click"],[1,"d-flex","justify-content-between","gap-8"],["state","checked","appearance","minimal"]],template:function(r,o){if(r&1&&(m(0,"button",1)(1,"mat-icon"),g(2,"translate"),h()(),m(3,"mat-menu",null,0),xt(5,Sfe,5,4,"button",2,Efe),h()),r&2){let a=Me(4);v("matMenuTriggerFor",a),f(5),Ct(o.langs)}},dependencies:[Be,Yt,tt,st,Vs,Wr,Sl,Ls,tu,Mr],encapsulation:2});let t=n;return t})();function kfe(t,n){t&1&&(m(0,"button",8)(1,"mat-icon"),g(2,"account_circle"),h(),m(3,"span"),g(4),ue(5,"translate"),h()(),m(6,"button",9)(7,"mat-icon"),g(8,"edit"),h(),m(9,"span"),g(10),ue(11,"translate"),h()()),t&2&&(f(4),N(Oe(5,2,"profile")),f(6),N(Oe(11,4,"edit_profile")))}function Tfe(t,n){if(t&1){let e=q();m(0,"button",6),S("click",function(){T(e);let r=x();return I(r.logout())}),m(1,"mat-icon"),g(2,"exit_to_app"),h(),m(3,"span"),g(4),ue(5,"translate"),h()()}t&2&&(f(4),N(Oe(5,1,"logout")))}function Ife(t,n){if(t&1){let e=q();m(0,"button",6),S("click",function(){T(e);let r=x();return I(r.login())}),m(1,"mat-icon"),g(2,"login"),h(),m(3,"span"),g(4),ue(5,"translate"),h()()}t&2&&(f(4),N(Oe(5,1,"login")))}var A8=(()=>{let n=class n{constructor(){this.oidcAuth=u(Ot),this.router=u(Re),this.settings=u(ca),this.userName="Guest",this.userEmail="",this.userRoles="Anonymous User"}ngOnInit(){this.updateUserInfo(),this.authSubscription=this.oidcAuth.isAuthenticated$.subscribe(()=>{this.updateUserInfo()})}ngOnDestroy(){this.authSubscription?.unsubscribe()}updateUserInfo(){if(!this.oidcAuth.isAuthenticated()){this.userName="Guest",this.userEmail="",this.userRoles="Anonymous User";return}let i=this.oidcAuth.getUserInfo();console.log("UserButton: User info:",i),console.log("UserButton: Available claims:",i?Object.keys(i):"null"),this.userName=i?.name||i?.preferred_username||i?.given_name||i?.["http://schemas.xmlsoap.org/ws/2005/05/identity/claims/name"]||i?.sub||"User",this.userEmail=i?.email||i?.["http://schemas.xmlsoap.org/ws/2005/05/identity/claims/emailaddress"]||"";let r=this.oidcAuth.getUserRoles();this.userRoles=r.length>0?r.join(", "):"No roles",console.log("UserButton: Set userName to:",this.userName,"email to:",this.userEmail,"roles:",this.userRoles)}isAuthenticated(){return this.oidcAuth.isAuthenticated()}login(){this.oidcAuth.login()}logout(){this.oidcAuth.logout(),this.router.navigateByUrl("/dashboard")}restore(){this.settings.reset(),window.location.reload()}};n.\u0275fac=function(r){return new(r||n)},n.\u0275cmp=E({type:n,selectors:[["app-user"]],decls:22,vars:9,consts:[["menu","matMenu"],["matIconButton","",1,"user-button",3,"matMenuTriggerFor"],[1,"user-info"],[1,"user-name"],[1,"user-email"],[1,"user-roles"],["mat-menu-item","",3,"click"],["mat-menu-item",""],["routerLink","/profile/overview","mat-menu-item",""],["routerLink","/profile/settings","mat-menu-item",""]],template:function(r,o){if(r&1){let a=q();m(0,"button",1)(1,"mat-icon"),g(2,"account_circle"),h()(),m(3,"mat-menu",null,0)(5,"div",2)(6,"div",3),g(7),h(),m(8,"div",4),g(9),h(),m(10,"div",5),g(11),h()(),M(12,"mat-divider"),V(13,kfe,12,6),m(14,"button",6),S("click",function(){return T(a),I(o.restore())}),m(15,"mat-icon"),g(16,"restore"),h(),m(17,"span"),g(18),ue(19,"translate"),h()(),V(20,Tfe,6,3,"button",7)(21,Ife,6,3,"button",7),h()}if(r&2){let a=Me(4);v("matMenuTriggerFor",a),f(7),N(o.userName),f(2),N(o.userEmail),f(2),N(o.userRoles),f(2),B(o.isAuthenticated()?13:-1),f(5),N(Oe(19,7,"restore_defaults")),f(2),B(o.isAuthenticated()?20:21)}},dependencies:[ut,Vn,Be,Yt,tt,st,Vs,Wr,Sl,Ls,ho,Po,Sr,Mr],styles:["[_nghost-%COMP%]{display:inline-block}.user-button[_ngcontent-%COMP%]{display:inline-flex!important}.user-info[_ngcontent-%COMP%]{padding:16px;max-width:250px}.user-info[_ngcontent-%COMP%] .user-name[_ngcontent-%COMP%]{font-weight:500;font-size:14px;margin-bottom:4px}.user-info[_ngcontent-%COMP%] .user-email[_ngcontent-%COMP%]{font-size:12px;color:#0009;margin-bottom:4px}.user-info[_ngcontent-%COMP%] .user-roles[_ngcontent-%COMP%]{font-size:11px;color:#00000080;font-style:italic}"]});let t=n;return t})();function Afe(t,n){if(t&1){let e=q();m(0,"button",4),S("click",function(){T(e);let r=x();return I(r.toggleSidenav.emit())}),m(1,"mat-icon"),g(2,"menu"),h()()}}function Ofe(t,n){t&1&&M(0,"app-branding")}var O8=(()=>{let n=class n{constructor(){this.showToggle=re(!0),this.showBranding=re(!1),this.toggleSidenav=yi(),this.toggleSidenavNotice=yi()}toggleFullscreen(){OI.isEnabled&&OI.toggle()}};n.\u0275fac=function(r){return new(r||n)},n.\u0275cmp=E({type:n,selectors:[["app-header"]],hostAttrs:[1,"matero-header"],inputs:{showToggle:[1,"showToggle"],showBranding:[1,"showBranding"]},outputs:{toggleSidenav:"toggleSidenav",toggleSidenavNotice:"toggleSidenavNotice"},decls:17,vars:2,consts:[["matIconButton",""],[1,"flex-fill"],["matIconButton","",1,"hide-small",3,"click"],[1,"hide-small"],["matIconButton","",3,"click"]],template:function(r,o){r&1&&(m(0,"mat-toolbar"),V(1,Afe,3,0,"button",0),V(2,Ofe,1,0,"app-branding"),M(3,"span",1)(4,"app-github-button"),m(5,"button",0)(6,"mat-icon"),g(7,"search"),h()(),M(8,"app-translate"),m(9,"button",2),S("click",function(){return o.toggleFullscreen()}),m(10,"mat-icon"),g(11,"fullscreen"),h()(),M(12,"app-notification",3)(13,"app-user"),m(14,"button",2),S("click",function(){return o.toggleSidenavNotice.emit()}),m(15,"mat-icon"),g(16,"list"),h()()()),r&2&&(f(),B(o.showToggle()?1:-1),f(),B(o.showBranding()?2:-1))},dependencies:[iw,tw,Be,Yt,tt,st,nw,v8,T8,I8,A8],styles:[`.matero-header{--mat-toolbar-container-background-color: transparent;position:relative;z-index:200;display:block;background-color:var(--header-background-color);-webkit-backdrop-filter:blur(8px);backdrop-filter:blur(8px)} +`],encapsulation:2});let t=n;return t})();var cp=["*"];function Rfe(t,n){t&1&&ne(0)}var N8=["tabListContainer"],L8=["tabList"],V8=["tabListInner"],B8=["nextPaginator"],j8=["previousPaginator"],Pfe=["content"];function Ffe(t,n){}var Nfe=["tabBodyWrapper"],Lfe=["tabHeader"];function Vfe(t,n){}function Bfe(t,n){if(t&1&&A(0,Vfe,0,0,"ng-template",12),t&2){let e=x().$implicit;v("cdkPortalOutlet",e.templateLabel)}}function jfe(t,n){if(t&1&&g(0),t&2){let e=x().$implicit;N(e.textLabel)}}function Hfe(t,n){if(t&1){let e=q();m(0,"div",7,2),S("click",function(){let r=T(e),o=r.$implicit,a=r.$index,s=x(),l=Me(1);return I(s._handleClick(o,l,a))})("cdkFocusChange",function(r){let o=T(e).$index,a=x();return I(a._tabFocusChanged(r,o))}),M(2,"span",8)(3,"div",9),m(4,"span",10)(5,"span",11),V(6,Bfe,1,1,null,12)(7,jfe,1,1),h()()()}if(t&2){let e=n.$implicit,i=n.$index,r=Me(1),o=x();nt(e.labelClass),G("mdc-tab--active",o.selectedIndex===i),v("id",o._getTabLabelId(e,i))("disabled",e.disabled)("fitInkBarToContent",o.fitInkBarToContent),X("tabIndex",o._getTabIndex(i))("aria-posinset",i+1)("aria-setsize",o._tabs.length)("aria-controls",o._getTabContentId(i))("aria-selected",o.selectedIndex===i)("aria-label",e.ariaLabel||null)("aria-labelledby",!e.ariaLabel&&e.ariaLabelledby?e.ariaLabelledby:null),f(3),v("matRippleTrigger",r)("matRippleDisabled",e.disabled||o.disableRipple),f(3),B(e.templateLabel?6:7)}}function zfe(t,n){t&1&&ne(0)}function Ufe(t,n){if(t&1){let e=q();m(0,"mat-tab-body",13),S("_onCentered",function(){T(e);let r=x();return I(r._removeTabBodyWrapperHeight())})("_onCentering",function(r){T(e);let o=x();return I(o._setTabBodyWrapperHeight(r))})("_beforeCentering",function(r){T(e);let o=x();return I(o._bodyCentered(r))}),h()}if(t&2){let e=n.$implicit,i=n.$index,r=x();nt(e.bodyClass),v("id",r._getTabContentId(i))("content",e.content)("position",e.position)("animationDuration",r.animationDuration)("preserveContent",r.preserveContent),X("tabindex",r.contentTabIndex!=null&&r.selectedIndex===i?r.contentTabIndex:null)("aria-labelledby",r._getTabLabelId(e,i))("aria-hidden",r.selectedIndex!==i)}}var $fe=["mat-tab-nav-bar",""],Wfe=["mat-tab-link",""],Gfe=new O("MatTabContent"),qfe=(()=>{class t{template=u(te);constructor(){}static \u0275fac=function(i){return new(i||t)};static \u0275dir=P({type:t,selectors:[["","matTabContent",""]],features:[Ce([{provide:Gfe,useExisting:t}])]})}return t})(),Yfe=new O("MatTabLabel"),H8=new O("MAT_TAB"),BI=(()=>{class t extends rB{_closestTab=u(H8,{optional:!0});static \u0275fac=(()=>{let e;return function(r){return(e||(e=ge(t)))(r||t)}})();static \u0275dir=P({type:t,selectors:[["","mat-tab-label",""],["","matTabLabel",""]],features:[Ce([{provide:Yfe,useExisting:t}]),le]})}return t})(),z8=new O("MAT_TAB_GROUP"),Fu=(()=>{class t{_viewContainerRef=u(ot);_closestTabGroup=u(z8,{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 z;position=null;origin=null;isActive=!1;constructor(){u(ht).load(ki)}ngOnChanges(e){(e.hasOwnProperty("textLabel")||e.hasOwnProperty("disabled"))&&this._stateChanges.next()}ngOnDestroy(){this._stateChanges.complete()}ngOnInit(){this._contentPortal=new Dn(this._explicitContent||this._implicitContent,this._viewContainerRef)}_setTemplateLabelInput(e){e&&e._closestTab===this&&(this._templateLabel=e)}static \u0275fac=function(i){return new(i||t)};static \u0275cmp=E({type:t,selectors:[["mat-tab"]],contentQueries:function(i,r,o){if(i&1&&(xe(o,BI,5),xe(o,qfe,7,te)),i&2){let a;j(a=H())&&(r.templateLabel=a.first),j(a=H())&&(r._explicitContent=a.first)}},viewQuery:function(i,r){if(i&1&&ie(te,7),i&2){let o;j(o=H())&&(r._implicitContent=o.first)}},hostAttrs:["hidden",""],hostVars:1,hostBindings:function(i,r){i&2&&X("id",null)},inputs:{disabled:[2,"disabled","disabled",L],textLabel:[0,"label","textLabel"],ariaLabel:[0,"aria-label","ariaLabel"],ariaLabelledby:[0,"aria-labelledby","ariaLabelledby"],labelClass:"labelClass",bodyClass:"bodyClass",id:"id"},exportAs:["matTab"],features:[Ce([{provide:H8,useExisting:t}]),Ae],ngContentSelectors:cp,decls:1,vars:0,template:function(i,r){i&1&&(Se(),wa(0,Rfe,1,0,"ng-template"))},encapsulation:2})}return t})(),NI="mdc-tab-indicator--active",R8="mdc-tab-indicator--no-transition",ow=class{_items;_currentItem;constructor(n){this._items=n}hide(){this._items.forEach(n=>n.deactivateInkBar()),this._currentItem=void 0}alignToElement(n){let e=this._items.find(r=>r.elementRef.nativeElement===n),i=this._currentItem;if(e!==i&&(i?.deactivateInkBar(),e)){let r=i?.elementRef.nativeElement.getBoundingClientRect?.();e.activateInkBar(r),this._currentItem=e}}},U8=(()=>{class t{_elementRef=u(Y);_inkBarElement;_inkBarContentElement;_fitToContent=!1;get fitInkBarToContent(){return this._fitToContent}set fitInkBarToContent(e){this._fitToContent!==e&&(this._fitToContent=e,this._inkBarElement&&this._appendInkBarElement())}activateInkBar(e){let i=this._elementRef.nativeElement;if(!e||!i.getBoundingClientRect||!this._inkBarContentElement){i.classList.add(NI);return}let r=i.getBoundingClientRect(),o=e.width/r.width,a=e.left-r.left;i.classList.add(R8),this._inkBarContentElement.style.setProperty("transform",`translateX(${a}px) scaleX(${o})`),i.getBoundingClientRect(),i.classList.remove(R8),i.classList.add(NI),this._inkBarContentElement.style.setProperty("transform","")}deactivateInkBar(){this._elementRef.nativeElement.classList.remove(NI)}ngOnInit(){this._createInkBarElement()}ngOnDestroy(){this._inkBarElement?.remove(),this._inkBarElement=this._inkBarContentElement=null}_createInkBarElement(){let e=this._elementRef.nativeElement.ownerDocument||document,i=this._inkBarElement=e.createElement("span"),r=this._inkBarContentElement=e.createElement("span");i.className="mdc-tab-indicator",r.className="mdc-tab-indicator__content mdc-tab-indicator__content--underline",i.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(i){return new(i||t)};static \u0275dir=P({type:t,inputs:{fitInkBarToContent:[2,"fitInkBarToContent","fitInkBarToContent",L]}})}return t})();var $8=(()=>{class t extends U8{elementRef=u(Y);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(r){return(e||(e=ge(t)))(r||t)}})();static \u0275dir=P({type:t,selectors:[["","matTabLabelWrapper",""]],hostVars:3,hostBindings:function(i,r){i&2&&(X("aria-disabled",!!r.disabled),G("mat-mdc-tab-disabled",r.disabled))},inputs:{disabled:[2,"disabled","disabled",L]},features:[le]})}return t})(),P8={passive:!0},Qfe=650,Kfe=100,W8=(()=>{class t{_elementRef=u(Y);_changeDetectorRef=u(ye);_viewportRuler=u(tr);_dir=u(Bt,{optional:!0});_ngZone=u(ae);_platform=u(qe);_sharedResizeObserver=u(Zy);_injector=u(de);_renderer=u(ze);_animationsDisabled=Ye();_eventCleanups;_scrollDistance=0;_selectedIndexChanged=!1;_destroyed=new z;_showPaginationControls=!1;_disableScrollAfter=!0;_disableScrollBefore=!0;_tabLabelCount;_scrollDistanceChanged;_keyManager;_currentTextContent;_stopScrolling=new z;disablePagination=!1;get selectedIndex(){return this._selectedIndex}set selectedIndex(e){let i=isNaN(e)?0:e;this._selectedIndex!=i&&(this._selectedIndexChanged=!0,this._selectedIndex=i,this._keyManager&&this._keyManager.updateActiveItem(i))}_selectedIndex=0;selectFocusedIndex=new U;indexFocused=new U;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"),P8),this._renderer.listen(this._nextPaginator.nativeElement,"touchstart",()=>this._handlePaginatorPress("after"),P8))}ngAfterContentInit(){let e=this._dir?this._dir.change:Q("ltr"),i=this._sharedResizeObserver.observe(this._elementRef.nativeElement).pipe(St(32),we(this._destroyed)),r=this._viewportRuler.change(150).pipe(we(this._destroyed)),o=()=>{this.updatePagination(),this._alignInkBarToSelectedTab()};this._keyManager=new vs(this._items).withHorizontalOrientation(this._getLayoutDirection()).withHomeAndEnd().withWrap().skipPredicate(()=>!1),this._keyManager.updateActiveItem(Math.max(this._selectedIndex,0)),gt(o,{injector:this._injector}),Je(e,r,i,this._items.changes,this._itemsResized()).pipe(we(this._destroyed)).subscribe(()=>{this._ngZone.run(()=>{Promise.resolve().then(()=>{this._scrollDistance=Math.max(0,Math.min(this._getMaxScrollDistance(),this._scrollDistance)),o()})}),this._keyManager?.withHorizontalOrientation(this._getLayoutDirection())}),this._keyManager.change.subscribe(a=>{this.indexFocused.emit(a),this._setTabFocus(a)})}_itemsResized(){return typeof ResizeObserver!="function"?Vi:this._items.changes.pipe(Ue(this._items),je(e=>new Fe(i=>this._ngZone.runOutsideAngular(()=>{let r=new ResizeObserver(o=>i.next(o));return e.forEach(o=>r.observe(o.elementRef.nativeElement)),()=>{r.disconnect()}}))),Qa(1),ce(e=>e.some(i=>i.contentRect.width>0&&i.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(!Lt(e))switch(e.keyCode){case 13:case 32:if(this.focusIndex!==this.selectedIndex){let i=this._items.get(this.focusIndex);i&&!i.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 i=this._tabListContainer.nativeElement;this._getLayoutDirection()=="ltr"?i.scrollLeft=0:i.scrollLeft=i.scrollWidth-i.offsetWidth}}_getLayoutDirection(){return this._dir&&this._dir.value==="rtl"?"rtl":"ltr"}_updateTabScrollPosition(){if(this.disablePagination)return;let e=this.scrollDistance,i=this._getLayoutDirection()==="ltr"?-e:e;this._tabList.nativeElement.style.transform=`translateX(${Math.round(i)}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 i=this._tabListContainer.nativeElement.offsetWidth,r=(e=="before"?-1:1)*i/3;return this._scrollTo(this._scrollDistance+r)}_handlePaginatorClick(e){this._stopInterval(),this._scrollHeader(e)}_scrollToLabel(e){if(this.disablePagination)return;let i=this._items?this._items.toArray()[e]:null;if(!i)return;let r=this._tabListContainer.nativeElement.offsetWidth,{offsetLeft:o,offsetWidth:a}=i.elementRef.nativeElement,s,l;this._getLayoutDirection()=="ltr"?(s=o,l=s+a):(l=this._tabListInner.nativeElement.offsetWidth-o,s=l-a);let c=this.scrollDistance,d=this.scrollDistance+r;sd&&(this.scrollDistance+=Math.min(l-d,s-c))}_checkPaginationEnabled(){if(this.disablePagination)this._showPaginationControls=!1;else{let e=this._tabListInner.nativeElement.scrollWidth,i=this._elementRef.nativeElement.offsetWidth,r=e-i>=5;r||(this.scrollDistance=0),r!==this._showPaginationControls&&(this._showPaginationControls=r,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,i=this._tabListContainer.nativeElement.offsetWidth;return e-i||0}_alignInkBarToSelectedTab(){let e=this._items&&this._items.length?this._items.toArray()[this.selectedIndex]:null,i=e?e.elementRef.nativeElement:null;i?this._inkBar.alignToElement(i):this._inkBar.hide()}_stopInterval(){this._stopScrolling.next()}_handlePaginatorPress(e,i){i&&i.button!=null&&i.button!==0||(this._stopInterval(),Ya(Qfe,Kfe).pipe(we(Je(this._stopScrolling,this._destroyed))).subscribe(()=>{let{maxScrollDistance:r,distance:o}=this._scrollHeader(e);(o===0||o>=r)&&this._stopInterval()}))}_scrollTo(e){if(this.disablePagination)return{maxScrollDistance:0,distance:0};let i=this._getMaxScrollDistance();return this._scrollDistance=Math.max(0,Math.min(i,e)),this._scrollDistanceChanged=!0,this._checkScrollingControls(),{maxScrollDistance:i,distance:this._scrollDistance}}static \u0275fac=function(i){return new(i||t)};static \u0275dir=P({type:t,inputs:{disablePagination:[2,"disablePagination","disablePagination",L],selectedIndex:[2,"selectedIndex","selectedIndex",dt]},outputs:{selectFocusedIndex:"selectFocusedIndex",indexFocused:"indexFocused"}})}return t})(),Zfe=(()=>{class t extends W8{_items;_tabListContainer;_tabList;_tabListInner;_nextPaginator;_previousPaginator;_inkBar;ariaLabel;ariaLabelledby;disableRipple=!1;ngAfterContentInit(){this._inkBar=new ow(this._items),super.ngAfterContentInit()}_itemSelected(e){e.preventDefault()}static \u0275fac=(()=>{let e;return function(r){return(e||(e=ge(t)))(r||t)}})();static \u0275cmp=E({type:t,selectors:[["mat-tab-header"]],contentQueries:function(i,r,o){if(i&1&&xe(o,$8,4),i&2){let a;j(a=H())&&(r._items=a)}},viewQuery:function(i,r){if(i&1&&(ie(N8,7),ie(L8,7),ie(V8,7),ie(B8,5),ie(j8,5)),i&2){let o;j(o=H())&&(r._tabListContainer=o.first),j(o=H())&&(r._tabList=o.first),j(o=H())&&(r._tabListInner=o.first),j(o=H())&&(r._nextPaginator=o.first),j(o=H())&&(r._previousPaginator=o.first)}},hostAttrs:[1,"mat-mdc-tab-header"],hostVars:4,hostBindings:function(i,r){i&2&&G("mat-mdc-tab-header-pagination-controls-enabled",r._showPaginationControls)("mat-mdc-tab-header-rtl",r._getLayoutDirection()=="rtl")},inputs:{ariaLabel:[0,"aria-label","ariaLabel"],ariaLabelledby:[0,"aria-labelledby","ariaLabelledby"],disableRipple:[2,"disableRipple","disableRipple",L]},features:[le],ngContentSelectors:cp,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(i,r){if(i&1){let o=q();Se(),m(0,"div",5,0),S("click",function(){return T(o),I(r._handlePaginatorClick("before"))})("mousedown",function(s){return T(o),I(r._handlePaginatorPress("before",s))})("touchend",function(){return T(o),I(r._stopInterval())}),M(2,"div",6),h(),m(3,"div",7,1),S("keydown",function(s){return T(o),I(r._handleKeydown(s))}),m(5,"div",8,2),S("cdkObserveContent",function(){return T(o),I(r._onContentChanges())}),m(7,"div",9,3),ne(9),h()()(),m(10,"div",10,4),S("mousedown",function(s){return T(o),I(r._handlePaginatorPress("after",s))})("click",function(){return T(o),I(r._handlePaginatorClick("after"))})("touchend",function(){return T(o),I(r._stopInterval())}),M(12,"div",6),h()}i&2&&(G("mat-mdc-tab-header-pagination-disabled",r._disableScrollBefore),v("matRippleDisabled",r._disableScrollBefore||r.disableRipple),f(3),G("_mat-animation-noopable",r._animationsDisabled),f(2),X("aria-label",r.ariaLabel||null)("aria-labelledby",r.ariaLabelledby||null),f(5),G("mat-mdc-tab-header-pagination-disabled",r._disableScrollAfter),v("matRippleDisabled",r._disableScrollAfter||r.disableRipple))},dependencies:[jn,Kf],styles:[`.mat-mdc-tab-header{display:flex;overflow:hidden;position:relative;flex-shrink:0}.mdc-tab-indicator .mdc-tab-indicator__content{transition-duration:var(--mat-tab-animation-duration, 250ms)}.mat-mdc-tab-header-pagination{-webkit-user-select:none;user-select:none;position:relative;display:none;justify-content:center;align-items:center;min-width:32px;cursor:pointer;z-index:2;-webkit-tap-highlight-color:rgba(0,0,0,0);touch-action:none;box-sizing:content-box;outline:0}.mat-mdc-tab-header-pagination::-moz-focus-inner{border:0}.mat-mdc-tab-header-pagination .mat-ripple-element{opacity:.12;background-color:var(--mat-tab-inactive-ripple-color, var(--mat-sys-on-surface))}.mat-mdc-tab-header-pagination-controls-enabled .mat-mdc-tab-header-pagination{display:flex}.mat-mdc-tab-header-pagination-before,.mat-mdc-tab-header-rtl .mat-mdc-tab-header-pagination-after{padding-left:4px}.mat-mdc-tab-header-pagination-before .mat-mdc-tab-header-pagination-chevron,.mat-mdc-tab-header-rtl .mat-mdc-tab-header-pagination-after .mat-mdc-tab-header-pagination-chevron{transform:rotate(-135deg)}.mat-mdc-tab-header-rtl .mat-mdc-tab-header-pagination-before,.mat-mdc-tab-header-pagination-after{padding-right:4px}.mat-mdc-tab-header-rtl .mat-mdc-tab-header-pagination-before .mat-mdc-tab-header-pagination-chevron,.mat-mdc-tab-header-pagination-after .mat-mdc-tab-header-pagination-chevron{transform:rotate(45deg)}.mat-mdc-tab-header-pagination-chevron{border-style:solid;border-width:2px 2px 0 0;height:8px;width:8px;border-color:var(--mat-tab-pagination-icon-color, var(--mat-sys-on-surface))}.mat-mdc-tab-header-pagination-disabled{box-shadow:none;cursor:default;pointer-events:none}.mat-mdc-tab-header-pagination-disabled .mat-mdc-tab-header-pagination-chevron{opacity:.4}.mat-mdc-tab-list{flex-grow:1;position:relative;transition:transform 500ms cubic-bezier(0.35, 0, 0.25, 1)}._mat-animation-noopable .mat-mdc-tab-list{transition:none}.mat-mdc-tab-label-container{display:flex;flex-grow:1;overflow:hidden;z-index:1;border-bottom-style:solid;border-bottom-width:var(--mat-tab-divider-height, 1px);border-bottom-color:var(--mat-tab-divider-color, var(--mat-sys-surface-variant))}.mat-mdc-tab-group-inverted-header .mat-mdc-tab-label-container{border-bottom:none;border-top-style:solid;border-top-width:var(--mat-tab-divider-height, 1px);border-top-color:var(--mat-tab-divider-color, var(--mat-sys-surface-variant))}.mat-mdc-tab-labels{display:flex;flex:1 0 auto}[mat-align-tabs=center]>.mat-mdc-tab-header .mat-mdc-tab-labels{justify-content:center}[mat-align-tabs=end]>.mat-mdc-tab-header .mat-mdc-tab-labels{justify-content:flex-end}.cdk-drop-list .mat-mdc-tab-labels,.mat-mdc-tab-labels.cdk-drop-list{min-height:var(--mat-tab-container-height, 48px)}.mat-mdc-tab::before{margin:5px}@media(forced-colors: active){.mat-mdc-tab[aria-disabled=true]{color:GrayText}} +`],encapsulation:2})}return t})(),G8=new O("MAT_TABS_CONFIG"),F8=(()=>{class t extends wr{_host=u(LI);_ngZone=u(ae);_centeringSub=Te.EMPTY;_leavingSub=Te.EMPTY;constructor(){super()}ngOnInit(){super.ngOnInit(),this._centeringSub=this._host._beforeCentering.pipe(Ue(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(i){return new(i||t)};static \u0275dir=P({type:t,selectors:[["","matTabBodyHost",""]],features:[le]})}return t})(),LI=(()=>{class t{_elementRef=u(Y);_dir=u(Bt,{optional:!0});_ngZone=u(ae);_injector=u(de);_renderer=u(ze);_diAnimationsDisabled=Ye();_eventCleanups;_initialized;_fallbackTimer;_positionIndex;_dirChangeSubscription=Te.EMPTY;_position;_previousPosition;_onCentering=new U;_beforeCentering=new U;_afterLeavingCenter=new U;_onCentered=new U(!0);_portalHost;_contentElement;_content;animationDuration="500ms";preserveContent=!1;set position(e){this._positionIndex=e,this._computePositionAnimationState()}constructor(){if(this._dir){let e=u(ye);this._dirChangeSubscription=this._dir.change.subscribe(i=>{this._computePositionAnimationState(i),e.markForCheck()})}}ngOnInit(){this._bindTransitionEvents(),this._position==="center"&&(this._setActiveClass(!0),gt(()=>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,i=r=>{r.target===this._contentElement?.nativeElement&&(this._elementRef.nativeElement.classList.remove("mat-tab-body-animating"),r.type==="transitionend"&&this._transitionDone())};this._eventCleanups=[this._renderer.listen(e,"transitionstart",r=>{r.target===this._contentElement?.nativeElement&&(this._elementRef.nativeElement.classList.add("mat-tab-body-animating"),this._transitionStarted())}),this._renderer.listen(e,"transitionend",i),this._renderer.listen(e,"transitioncancel",i)]})}_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(),gt(()=>this._transitionDone(),{injector:this._injector})}_animationsDisabled(){return this._diAnimationsDisabled||this.animationDuration==="0ms"||this.animationDuration==="0s"}static \u0275fac=function(i){return new(i||t)};static \u0275cmp=E({type:t,selectors:[["mat-tab-body"]],viewQuery:function(i,r){if(i&1&&(ie(F8,5),ie(Pfe,5)),i&2){let o;j(o=H())&&(r._portalHost=o.first),j(o=H())&&(r._contentElement=o.first)}},hostAttrs:[1,"mat-mdc-tab-body"],hostVars:1,hostBindings:function(i,r){i&2&&X("inert",r._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(i,r){i&1&&(m(0,"div",1,0),A(2,Ffe,0,0,"ng-template",2),h()),i&2&&G("mat-tab-body-content-left",r._position==="left")("mat-tab-body-content-right",r._position==="right")("mat-tab-body-content-can-animate",r._position==="center"||r._previousPosition==="center")},dependencies:[F8,Fa],styles:[`.mat-mdc-tab-body{top:0;left:0;right:0;bottom:0;position:absolute;display:block;overflow:hidden;outline:0;flex-basis:100%}.mat-mdc-tab-body.mat-mdc-tab-body-active{position:relative;overflow-x:hidden;overflow-y:auto;z-index:1;flex-grow:1}.mat-mdc-tab-group.mat-mdc-tab-group-dynamic-height .mat-mdc-tab-body.mat-mdc-tab-body-active{overflow-y:hidden}.mat-mdc-tab-body-content{height:100%;overflow:auto;transform:none;visibility:hidden}.mat-tab-body-animating>.mat-mdc-tab-body-content,.mat-mdc-tab-body-active>.mat-mdc-tab-body-content{visibility:visible}.mat-tab-body-animating>.mat-mdc-tab-body-content{min-height:1px}.mat-mdc-tab-group-dynamic-height .mat-mdc-tab-body-content{overflow:hidden}.mat-tab-body-content-can-animate{transition:transform var(--mat-tab-animation-duration) 1ms cubic-bezier(0.35, 0, 0.25, 1)}.mat-mdc-tab-body-wrapper._mat-animation-noopable .mat-tab-body-content-can-animate{transition:none}.mat-tab-body-content-left{transform:translate3d(-100%, 0, 0)}.mat-tab-body-content-right{transform:translate3d(100%, 0, 0)} +`],encapsulation:2})}return t})(),dp=(()=>{class t{_elementRef=u(Y);_changeDetectorRef=u(ye);_ngZone=u(ae);_tabsSubscription=Te.EMPTY;_tabLabelSubscription=Te.EMPTY;_tabBodySubscription=Te.EMPTY;_diAnimationsDisabled=Ye();_allTabs;_tabBodies;_tabBodyWrapper;_tabHeader;_tabs=new gr;_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 i=e+"";this._animationDuration=/^\d+$/.test(i)?e+"ms":i}_animationDuration;get contentTabIndex(){return this._contentTabIndex}set contentTabIndex(e){this._contentTabIndex=isNaN(e)?null:e}_contentTabIndex;disablePagination=!1;disableRipple=!1;preserveContent=!1;get backgroundColor(){return this._backgroundColor}set backgroundColor(e){let i=this._elementRef.nativeElement.classList;i.remove("mat-tabs-with-background",`mat-background-${this.backgroundColor}`),e&&i.add("mat-tabs-with-background",`mat-background-${e}`),this._backgroundColor=e}_backgroundColor;ariaLabel;ariaLabelledby;selectedIndexChange=new U;focusChange=new U;animationDone=new U;selectedTabChange=new U(!0);_groupId;_isServer=!u(qe).isBrowser;constructor(){let e=u(G8,{optional:!0});this._groupId=u(Ze).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 i=this._selectedIndex==null;if(!i){this.selectedTabChange.emit(this._createChangeEvent(e));let r=this._tabBodyWrapper.nativeElement;r.style.minHeight=r.clientHeight+"px"}Promise.resolve().then(()=>{this._tabs.forEach((r,o)=>r.isActive=o===e),i||(this.selectedIndexChange.emit(e),this._tabBodyWrapper.nativeElement.style.minHeight="")})}this._tabs.forEach((i,r)=>{i.position=r-e,this._selectedIndex!=null&&i.position==0&&!i.origin&&(i.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 i=this._tabs.toArray(),r;for(let o=0;o{i[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(Ue(this._allTabs)).subscribe(e=>{this._tabs.reset(e.filter(i=>i._closestTabGroup===this||!i._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 i=this._tabHeader;i&&(i.focusIndex=e)}_focusChanged(e){this._lastFocusedTabIndex=e,this.focusChange.emit(this._createChangeEvent(e))}_createChangeEvent(e){let i=new VI;return i.index=e,this._tabs&&this._tabs.length&&(i.tab=this._tabs.toArray()[e]),i}_subscribeToTabLabels(){this._tabLabelSubscription&&this._tabLabelSubscription.unsubscribe(),this._tabLabelSubscription=Je(...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,i){return e.id||`${this._groupId}-label-${i}`}_getTabContentId(e){return`${this._groupId}-content-${e}`}_setTabBodyWrapperHeight(e){if(!this.dynamicHeight||!this._tabBodyWrapperHeight){this._tabBodyWrapperHeight=e;return}let i=this._tabBodyWrapper.nativeElement;i.style.height=this._tabBodyWrapperHeight+"px",this._tabBodyWrapper.nativeElement.offsetHeight&&(i.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,i,r){i.focusIndex=r,e.disabled||(this.selectedIndex=r)}_getTabIndex(e){let i=this._lastFocusedTabIndex??this.selectedIndex;return e===i?0:-1}_tabFocusChanged(e,i){e&&e!=="mouse"&&e!=="touch"&&(this._tabHeader.focusIndex=i)}_bodyCentered(e){e&&this._tabBodies?.forEach((i,r)=>i._setActiveClass(r===this._selectedIndex))}_animationsDisabled(){return this._diAnimationsDisabled||this.animationDuration==="0"||this.animationDuration==="0ms"}static \u0275fac=function(i){return new(i||t)};static \u0275cmp=E({type:t,selectors:[["mat-tab-group"]],contentQueries:function(i,r,o){if(i&1&&xe(o,Fu,5),i&2){let a;j(a=H())&&(r._allTabs=a)}},viewQuery:function(i,r){if(i&1&&(ie(Nfe,5),ie(Lfe,5),ie(LI,5)),i&2){let o;j(o=H())&&(r._tabBodyWrapper=o.first),j(o=H())&&(r._tabHeader=o.first),j(o=H())&&(r._tabBodies=o)}},hostAttrs:[1,"mat-mdc-tab-group"],hostVars:11,hostBindings:function(i,r){i&2&&(X("mat-align-tabs",r.alignTabs),nt("mat-"+(r.color||"primary")),Et("--mat-tab-animation-duration",r.animationDuration),G("mat-mdc-tab-group-dynamic-height",r.dynamicHeight)("mat-mdc-tab-group-inverted-header",r.headerPosition==="below")("mat-mdc-tab-group-stretch-tabs",r.stretchTabs))},inputs:{color:"color",fitInkBarToContent:[2,"fitInkBarToContent","fitInkBarToContent",L],stretchTabs:[2,"mat-stretch-tabs","stretchTabs",L],alignTabs:[0,"mat-align-tabs","alignTabs"],dynamicHeight:[2,"dynamicHeight","dynamicHeight",L],selectedIndex:[2,"selectedIndex","selectedIndex",dt],headerPosition:"headerPosition",animationDuration:"animationDuration",contentTabIndex:[2,"contentTabIndex","contentTabIndex",dt],disablePagination:[2,"disablePagination","disablePagination",L],disableRipple:[2,"disableRipple","disableRipple",L],preserveContent:[2,"preserveContent","preserveContent",L],backgroundColor:"backgroundColor",ariaLabel:[0,"aria-label","ariaLabel"],ariaLabelledby:[0,"aria-labelledby","ariaLabelledby"]},outputs:{selectedIndexChange:"selectedIndexChange",focusChange:"focusChange",animationDone:"animationDone",selectedTabChange:"selectedTabChange"},exportAs:["matTabGroup"],features:[Ce([{provide:z8,useExisting:t}])],ngContentSelectors:cp,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(i,r){if(i&1){let o=q();Se(),m(0,"mat-tab-header",3,0),S("indexFocused",function(s){return T(o),I(r._focusChanged(s))})("selectFocusedIndex",function(s){return T(o),I(r.selectedIndex=s)}),xt(2,Hfe,8,17,"div",4,Mm),h(),V(4,zfe,1,0),m(5,"div",5,1),xt(7,Ufe,1,10,"mat-tab-body",6,Mm),h()}i&2&&(v("selectedIndex",r.selectedIndex||0)("disableRipple",r.disableRipple)("disablePagination",r.disablePagination),Xl("aria-label",r.ariaLabel)("aria-labelledby",r.ariaLabelledby),f(2),Ct(r._tabs),f(2),B(r._isServer?4:-1),f(),G("_mat-animation-noopable",r._animationsDisabled()),f(2),Ct(r._tabs))},dependencies:[Zfe,$8,Qf,jn,wr,LI],styles:[`.mdc-tab{min-width:90px;padding:0 24px;display:flex;flex:1 0 auto;justify-content:center;box-sizing:border-box;border:none;outline:none;text-align:center;white-space:nowrap;cursor:pointer;z-index:1;touch-action:manipulation}.mdc-tab__content{display:flex;align-items:center;justify-content:center;height:inherit;pointer-events:none}.mdc-tab__text-label{transition:150ms color linear;display:inline-block;line-height:1;z-index:2}.mdc-tab--active .mdc-tab__text-label{transition-delay:100ms}._mat-animation-noopable .mdc-tab__text-label{transition:none}.mdc-tab-indicator{display:flex;position:absolute;top:0;left:0;justify-content:center;width:100%;height:100%;pointer-events:none;z-index:1}.mdc-tab-indicator__content{transition:var(--mat-tab-animation-duration, 250ms) transform cubic-bezier(0.4, 0, 0.2, 1);transform-origin:left;opacity:0}.mdc-tab-indicator__content--underline{align-self:flex-end;box-sizing:border-box;width:100%;border-top-style:solid}.mdc-tab-indicator--active .mdc-tab-indicator__content{opacity:1}._mat-animation-noopable .mdc-tab-indicator__content,.mdc-tab-indicator--no-transition .mdc-tab-indicator__content{transition:none}.mat-mdc-tab-ripple.mat-mdc-tab-ripple{position:absolute;top:0;left:0;bottom:0;right:0;pointer-events:none}.mat-mdc-tab{-webkit-tap-highlight-color:rgba(0,0,0,0);-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;text-decoration:none;background:none;height:var(--mat-tab-container-height, 48px);font-family:var(--mat-tab-label-text-font, var(--mat-sys-title-small-font));font-size:var(--mat-tab-label-text-size, var(--mat-sys-title-small-size));letter-spacing:var(--mat-tab-label-text-tracking, var(--mat-sys-title-small-tracking));line-height:var(--mat-tab-label-text-line-height, var(--mat-sys-title-small-line-height));font-weight:var(--mat-tab-label-text-weight, var(--mat-sys-title-small-weight))}.mat-mdc-tab.mdc-tab{flex-grow:0}.mat-mdc-tab .mdc-tab-indicator__content--underline{border-color:var(--mat-tab-active-indicator-color, var(--mat-sys-primary));border-top-width:var(--mat-tab-active-indicator-height, 2px);border-radius:var(--mat-tab-active-indicator-shape, 0)}.mat-mdc-tab:hover .mdc-tab__text-label{color:var(--mat-tab-inactive-hover-label-text-color, var(--mat-sys-on-surface))}.mat-mdc-tab:focus .mdc-tab__text-label{color:var(--mat-tab-inactive-focus-label-text-color, var(--mat-sys-on-surface))}.mat-mdc-tab.mdc-tab--active .mdc-tab__text-label{color:var(--mat-tab-active-label-text-color, var(--mat-sys-on-surface))}.mat-mdc-tab.mdc-tab--active .mdc-tab__ripple::before,.mat-mdc-tab.mdc-tab--active .mat-ripple-element{background-color:var(--mat-tab-active-ripple-color, var(--mat-sys-on-surface))}.mat-mdc-tab.mdc-tab--active:hover .mdc-tab__text-label{color:var(--mat-tab-active-hover-label-text-color, var(--mat-sys-on-surface))}.mat-mdc-tab.mdc-tab--active:hover .mdc-tab-indicator__content--underline{border-color:var(--mat-tab-active-hover-indicator-color, var(--mat-sys-primary))}.mat-mdc-tab.mdc-tab--active:focus .mdc-tab__text-label{color:var(--mat-tab-active-focus-label-text-color, var(--mat-sys-on-surface))}.mat-mdc-tab.mdc-tab--active:focus .mdc-tab-indicator__content--underline{border-color:var(--mat-tab-active-focus-indicator-color, var(--mat-sys-primary))}.mat-mdc-tab.mat-mdc-tab-disabled{opacity:.4;pointer-events:none}.mat-mdc-tab.mat-mdc-tab-disabled .mdc-tab__content{pointer-events:none}.mat-mdc-tab.mat-mdc-tab-disabled .mdc-tab__ripple::before,.mat-mdc-tab.mat-mdc-tab-disabled .mat-ripple-element{background-color:var(--mat-tab-disabled-ripple-color, var(--mat-sys-on-surface-variant))}.mat-mdc-tab .mdc-tab__ripple::before{content:"";display:block;position:absolute;top:0;left:0;right:0;bottom:0;opacity:0;pointer-events:none;background-color:var(--mat-tab-inactive-ripple-color, var(--mat-sys-on-surface))}.mat-mdc-tab .mdc-tab__text-label{color:var(--mat-tab-inactive-label-text-color, var(--mat-sys-on-surface));display:inline-flex;align-items:center}.mat-mdc-tab .mdc-tab__content{position:relative;pointer-events:auto}.mat-mdc-tab:hover .mdc-tab__ripple::before{opacity:.04}.mat-mdc-tab.cdk-program-focused .mdc-tab__ripple::before,.mat-mdc-tab.cdk-keyboard-focused .mdc-tab__ripple::before{opacity:.12}.mat-mdc-tab .mat-ripple-element{opacity:.12;background-color:var(--mat-tab-inactive-ripple-color, var(--mat-sys-on-surface))}.mat-mdc-tab-group.mat-mdc-tab-group-stretch-tabs>.mat-mdc-tab-header .mat-mdc-tab{flex-grow:1}.mat-mdc-tab-group{display:flex;flex-direction:column;max-width:100%}.mat-mdc-tab-group.mat-tabs-with-background>.mat-mdc-tab-header,.mat-mdc-tab-group.mat-tabs-with-background>.mat-mdc-tab-header-pagination{background-color:var(--mat-tab-background-color)}.mat-mdc-tab-group.mat-tabs-with-background.mat-primary>.mat-mdc-tab-header .mat-mdc-tab .mdc-tab__text-label{color:var(--mat-tab-foreground-color)}.mat-mdc-tab-group.mat-tabs-with-background.mat-primary>.mat-mdc-tab-header .mdc-tab-indicator__content--underline{border-color:var(--mat-tab-foreground-color)}.mat-mdc-tab-group.mat-tabs-with-background:not(.mat-primary)>.mat-mdc-tab-header .mat-mdc-tab:not(.mdc-tab--active) .mdc-tab__text-label{color:var(--mat-tab-foreground-color)}.mat-mdc-tab-group.mat-tabs-with-background:not(.mat-primary)>.mat-mdc-tab-header .mat-mdc-tab:not(.mdc-tab--active) .mdc-tab-indicator__content--underline{border-color:var(--mat-tab-foreground-color)}.mat-mdc-tab-group.mat-tabs-with-background>.mat-mdc-tab-header .mat-mdc-tab-header-pagination-chevron,.mat-mdc-tab-group.mat-tabs-with-background>.mat-mdc-tab-header .mat-focus-indicator::before,.mat-mdc-tab-group.mat-tabs-with-background>.mat-mdc-tab-header-pagination .mat-mdc-tab-header-pagination-chevron,.mat-mdc-tab-group.mat-tabs-with-background>.mat-mdc-tab-header-pagination .mat-focus-indicator::before{border-color:var(--mat-tab-foreground-color)}.mat-mdc-tab-group.mat-tabs-with-background>.mat-mdc-tab-header .mat-ripple-element,.mat-mdc-tab-group.mat-tabs-with-background>.mat-mdc-tab-header .mdc-tab__ripple::before,.mat-mdc-tab-group.mat-tabs-with-background>.mat-mdc-tab-header-pagination .mat-ripple-element,.mat-mdc-tab-group.mat-tabs-with-background>.mat-mdc-tab-header-pagination .mdc-tab__ripple::before{background-color:var(--mat-tab-foreground-color)}.mat-mdc-tab-group.mat-tabs-with-background>.mat-mdc-tab-header .mat-mdc-tab-header-pagination-chevron,.mat-mdc-tab-group.mat-tabs-with-background>.mat-mdc-tab-header-pagination .mat-mdc-tab-header-pagination-chevron{color:var(--mat-tab-foreground-color)}.mat-mdc-tab-group.mat-mdc-tab-group-inverted-header{flex-direction:column-reverse}.mat-mdc-tab-group.mat-mdc-tab-group-inverted-header .mdc-tab-indicator__content--underline{align-self:flex-start}.mat-mdc-tab-body-wrapper{position:relative;overflow:hidden;display:flex;transition:height 500ms cubic-bezier(0.35, 0, 0.25, 1)}.mat-mdc-tab-body-wrapper._mat-animation-noopable{transition:none !important;animation:none !important} +`],encapsulation:2})}return t})(),VI=class{index;tab},jI=(()=>{class t extends W8{_focusedItem=he(null);get fitInkBarToContent(){return this._fitInkBarToContent.value}set fitInkBarToContent(e){this._fitInkBarToContent.next(e),this._changeDetectorRef.markForCheck()}_fitInkBarToContent=new it(!1);stretchTabs=!0;get animationDuration(){return this._animationDuration}set animationDuration(e){let i=e+"";this._animationDuration=/^\d+$/.test(i)?e+"ms":i}_animationDuration;_items;get backgroundColor(){return this._backgroundColor}set backgroundColor(e){let i=this._elementRef.nativeElement.classList;i.remove("mat-tabs-with-background",`mat-background-${this.backgroundColor}`),e&&i.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=he(!1);color="primary";tabPanel;_tabListContainer;_tabList;_tabListInner;_nextPaginator;_previousPaginator;_inkBar;constructor(){let e=u(G8,{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 ow(this._items),this._items.changes.pipe(Ue(null),we(this._destroyed)).subscribe(()=>this.updateActiveLink()),super.ngAfterContentInit(),this._keyManager.change.pipe(Ue(null),we(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 i=0;i.mat-mdc-tab-link-container .mat-mdc-tab-links{justify-content:center}[mat-align-tabs=end]>.mat-mdc-tab-link-container .mat-mdc-tab-links{justify-content:flex-end}.cdk-drop-list .mat-mdc-tab-links,.mat-mdc-tab-links.cdk-drop-list{min-height:var(--mat-tab-container-height, 48px)}.mat-mdc-tab-link-container{display:flex;flex-grow:1;overflow:hidden;z-index:1;border-bottom-style:solid;border-bottom-width:var(--mat-tab-divider-height, 1px);border-bottom-color:var(--mat-tab-divider-color, var(--mat-sys-surface-variant))}.mat-mdc-tab-nav-bar.mat-tabs-with-background>.mat-mdc-tab-link-container,.mat-mdc-tab-nav-bar.mat-tabs-with-background>.mat-mdc-tab-header-pagination{background-color:var(--mat-tab-background-color)}.mat-mdc-tab-nav-bar.mat-tabs-with-background.mat-primary>.mat-mdc-tab-link-container .mat-mdc-tab-link .mdc-tab__text-label{color:var(--mat-tab-foreground-color)}.mat-mdc-tab-nav-bar.mat-tabs-with-background.mat-primary>.mat-mdc-tab-link-container .mdc-tab-indicator__content--underline{border-color:var(--mat-tab-foreground-color)}.mat-mdc-tab-nav-bar.mat-tabs-with-background:not(.mat-primary)>.mat-mdc-tab-link-container .mat-mdc-tab-link:not(.mdc-tab--active) .mdc-tab__text-label{color:var(--mat-tab-foreground-color)}.mat-mdc-tab-nav-bar.mat-tabs-with-background:not(.mat-primary)>.mat-mdc-tab-link-container .mat-mdc-tab-link:not(.mdc-tab--active) .mdc-tab-indicator__content--underline{border-color:var(--mat-tab-foreground-color)}.mat-mdc-tab-nav-bar.mat-tabs-with-background>.mat-mdc-tab-link-container .mat-mdc-tab-header-pagination-chevron,.mat-mdc-tab-nav-bar.mat-tabs-with-background>.mat-mdc-tab-link-container .mat-focus-indicator::before,.mat-mdc-tab-nav-bar.mat-tabs-with-background>.mat-mdc-tab-header-pagination .mat-mdc-tab-header-pagination-chevron,.mat-mdc-tab-nav-bar.mat-tabs-with-background>.mat-mdc-tab-header-pagination .mat-focus-indicator::before{border-color:var(--mat-tab-foreground-color)}.mat-mdc-tab-nav-bar.mat-tabs-with-background>.mat-mdc-tab-link-container .mat-ripple-element,.mat-mdc-tab-nav-bar.mat-tabs-with-background>.mat-mdc-tab-link-container .mdc-tab__ripple::before,.mat-mdc-tab-nav-bar.mat-tabs-with-background>.mat-mdc-tab-header-pagination .mat-ripple-element,.mat-mdc-tab-nav-bar.mat-tabs-with-background>.mat-mdc-tab-header-pagination .mdc-tab__ripple::before{background-color:var(--mat-tab-foreground-color)}.mat-mdc-tab-nav-bar.mat-tabs-with-background>.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 t})(),Xfe=(()=>{class t extends U8{_tabNavBar=u(jI);elementRef=u(Y);_focusMonitor=u(ti);_destroyed=new z;_isActive=!1;_tabIndex=oi(()=>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=he(!1);tabIndex=0;rippleConfig;get rippleDisabled(){return this.disabled||this.disableRipple||this._tabNavBar.disableRipple||!!this.rippleConfig.disabled}id=u(Ze).getId("mat-tab-link-");constructor(){super(),u(ht).load(ki);let e=u(ws,{optional:!0}),i=u(new Oi("tabindex"),{optional:!0});this.rippleConfig=e||{},this.tabIndex=i==null?0:parseInt(i)||0,Ye()&&(this.rippleConfig.animation={enterDuration:0,exitDuration:0}),this._tabNavBar._fitInkBarToContent.pipe(we(this._destroyed)).subscribe(r=>{this.fitInkBarToContent=r})}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(i){return new(i||t)};static \u0275cmp=E({type:t,selectors:[["","mat-tab-link",""],["","matTabLink",""]],hostAttrs:[1,"mdc-tab","mat-mdc-tab-link","mat-focus-indicator"],hostVars:11,hostBindings:function(i,r){i&1&&S("focus",function(){return r._handleFocus()})("keydown",function(a){return r._handleKeydown(a)}),i&2&&(X("aria-controls",r._getAriaControls())("aria-current",r._getAriaCurrent())("aria-disabled",r.disabled)("aria-selected",r._getAriaSelected())("id",r.id)("tabIndex",r._tabIndex())("role",r._getRole()),G("mat-mdc-tab-disabled",r.disabled)("mdc-tab--active",r.active))},inputs:{active:[2,"active","active",L],disabled:[2,"disabled","disabled",L],disableRipple:[2,"disableRipple","disableRipple",L],tabIndex:[2,"tabIndex","tabIndex",e=>e==null?0:dt(e)],id:"id"},exportAs:["matTabLink"],features:[le],attrs:Wfe,ngContentSelectors:cp,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(i,r){i&1&&(Se(),M(0,"span",0)(1,"div",1),m(2,"span",2)(3,"span",3),ne(4),h()()),i&2&&(f(),v("matRippleTrigger",r.elementRef.nativeElement)("matRippleDisabled",r.rippleDisabled))},dependencies:[jn],styles:[`.mat-mdc-tab-link{-webkit-tap-highlight-color:rgba(0,0,0,0);-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;text-decoration:none;background:none;height:var(--mat-tab-container-height, 48px);font-family:var(--mat-tab-label-text-font, var(--mat-sys-title-small-font));font-size:var(--mat-tab-label-text-size, var(--mat-sys-title-small-size));letter-spacing:var(--mat-tab-label-text-tracking, var(--mat-sys-title-small-tracking));line-height:var(--mat-tab-label-text-line-height, var(--mat-sys-title-small-line-height));font-weight:var(--mat-tab-label-text-weight, var(--mat-sys-title-small-weight))}.mat-mdc-tab-link.mdc-tab{flex-grow:0}.mat-mdc-tab-link .mdc-tab-indicator__content--underline{border-color:var(--mat-tab-active-indicator-color, var(--mat-sys-primary));border-top-width:var(--mat-tab-active-indicator-height, 2px);border-radius:var(--mat-tab-active-indicator-shape, 0)}.mat-mdc-tab-link:hover .mdc-tab__text-label{color:var(--mat-tab-inactive-hover-label-text-color, var(--mat-sys-on-surface))}.mat-mdc-tab-link:focus .mdc-tab__text-label{color:var(--mat-tab-inactive-focus-label-text-color, var(--mat-sys-on-surface))}.mat-mdc-tab-link.mdc-tab--active .mdc-tab__text-label{color:var(--mat-tab-active-label-text-color, var(--mat-sys-on-surface))}.mat-mdc-tab-link.mdc-tab--active .mdc-tab__ripple::before,.mat-mdc-tab-link.mdc-tab--active .mat-ripple-element{background-color:var(--mat-tab-active-ripple-color, var(--mat-sys-on-surface))}.mat-mdc-tab-link.mdc-tab--active:hover .mdc-tab__text-label{color:var(--mat-tab-active-hover-label-text-color, var(--mat-sys-on-surface))}.mat-mdc-tab-link.mdc-tab--active:hover .mdc-tab-indicator__content--underline{border-color:var(--mat-tab-active-hover-indicator-color, var(--mat-sys-primary))}.mat-mdc-tab-link.mdc-tab--active:focus .mdc-tab__text-label{color:var(--mat-tab-active-focus-label-text-color, var(--mat-sys-on-surface))}.mat-mdc-tab-link.mdc-tab--active:focus .mdc-tab-indicator__content--underline{border-color:var(--mat-tab-active-focus-indicator-color, var(--mat-sys-primary))}.mat-mdc-tab-link.mat-mdc-tab-disabled{opacity:.4;pointer-events:none}.mat-mdc-tab-link.mat-mdc-tab-disabled .mdc-tab__content{pointer-events:none}.mat-mdc-tab-link.mat-mdc-tab-disabled .mdc-tab__ripple::before,.mat-mdc-tab-link.mat-mdc-tab-disabled .mat-ripple-element{background-color:var(--mat-tab-disabled-ripple-color, var(--mat-sys-on-surface-variant))}.mat-mdc-tab-link .mdc-tab__ripple::before{content:"";display:block;position:absolute;top:0;left:0;right:0;bottom:0;opacity:0;pointer-events:none;background-color:var(--mat-tab-inactive-ripple-color, var(--mat-sys-on-surface))}.mat-mdc-tab-link .mdc-tab__text-label{color:var(--mat-tab-inactive-label-text-color, var(--mat-sys-on-surface));display:inline-flex;align-items:center}.mat-mdc-tab-link .mdc-tab__content{position:relative;pointer-events:auto}.mat-mdc-tab-link:hover .mdc-tab__ripple::before{opacity:.04}.mat-mdc-tab-link.cdk-program-focused .mdc-tab__ripple::before,.mat-mdc-tab-link.cdk-keyboard-focused .mdc-tab__ripple::before{opacity:.12}.mat-mdc-tab-link .mat-ripple-element{opacity:.12;background-color:var(--mat-tab-inactive-ripple-color, var(--mat-sys-on-surface))}.mat-mdc-tab-header.mat-mdc-tab-nav-bar-stretch-tabs .mat-mdc-tab-link{flex-grow:1}.mat-mdc-tab-link::before{margin:5px}@media(max-width: 599px){.mat-mdc-tab-link{min-width:72px}} +`],encapsulation:2,changeDetection:0})}return t})(),q8=(()=>{class t{id=u(Ze).getId("mat-tab-nav-panel-");_activeTabId;static \u0275fac=function(i){return new(i||t)};static \u0275cmp=E({type:t,selectors:[["mat-tab-nav-panel"]],hostAttrs:["role","tabpanel",1,"mat-mdc-tab-nav-panel"],hostVars:2,hostBindings:function(i,r){i&2&&X("aria-labelledby",r._activeTabId)("id",r.id)},inputs:{id:"id"},exportAs:["matTabNavPanel"],ngContentSelectors:cp,decls:1,vars:0,template:function(i,r){i&1&&(Se(),ne(0))},encapsulation:2,changeDetection:0})}return t})(),zc=(()=>{class t{static \u0275fac=function(i){return new(i||t)};static \u0275mod=ee({type:t});static \u0275inj=J({imports:[De,De]})}return t})();function Jfe(t,n){if(t&1&&(m(0,"div",1)(1,"div"),g(2),h(),m(3,"div",2)(4,"div",3),g(5),h(),m(6,"div",4),g(7),h()()()),t&2){let e=n.$implicit;f(),nt(qo("d-flex align-items-center justify-content-center r-12 ",e.color)),Et("width",3,"rem")("height",3,"rem"),f(),pe(" ",e.icon," "),f(3),N(e.title),f(2),N(e.content)}}function ege(t,n){if(t&1&&(m(0,"mat-tab",0),xt(1,Jfe,8,10,"div",1,Ui),h()),t&2){let e=n.$implicit;v("label",e.label),f(),Ct(e.messages)}}var Y8=(()=>{let n=class n{constructor(){this.tabs=[{label:"Today",messages:[{icon:"\u{1F514}",color:"bg-red-95",title:"General Meeting for update",content:"You can use the Dashboard to explore how many new users download reports daily and monthly."},{icon:"\u{1F4E2}",color:"bg-azure-95",title:"Widgets update",content:"We've made some updates to the emendable widget which we think you are going to love."},{icon:"\u23F3",color:"bg-violet-95",title:"Coming soon new features",content:"More new features are coming soon, so stay patient!"}]},{label:"Notifications",messages:[{icon:"\u{1F4E9}",color:"bg-magenta-95",title:"Weekly reports are available",content:"Please go to the notification center to check your reports."}]}]}};n.\u0275fac=function(r){return new(r||n)},n.\u0275cmp=E({type:n,selectors:[["app-sidebar-notice"]],hostAttrs:[1,"matero-sidebar-notice"],decls:3,vars:0,consts:[[3,"label"],[1,"d-flex","align-items-center","gap-16","p-16","m-b-16","b-1","r-12"],[1,"flex-grow-1","w-0"],[1,"f-w-600"],[1,"f-s-14"]],template:function(r,o){r&1&&(m(0,"mat-tab-group"),xt(1,ege,3,1,"mat-tab",0,Ui),h()),r&2&&(f(),Ct(o.tabs))},dependencies:[zc,Fu,dp],styles:[`.matero-sidebar-notice{display:block;height:100%}.matero-sidebar-notice .mat-mdc-tab-group{height:100%}.matero-sidebar-notice .mat-mdc-tab-body-wrapper{flex:1}.matero-sidebar-notice .mat-mdc-tab-body-content{padding:1rem} +`],encapsulation:2});let t=n;return t})();var tge=["switch"],ige=["*"];function nge(t,n){t&1&&(m(0,"span",11),Zt(),m(1,"svg",13),M(2,"path",14),h(),m(3,"svg",15),M(4,"path",16),h()())}var rge=new O("mat-slide-toggle-default-options",{providedIn:"root",factory:()=>({disableToggleValue:!1,hideIcon:!1,disabledInteractive:!1})}),sw=class{source;checked;constructor(n,e){this.source=n,this.checked=e}},HI=(()=>{class t{_elementRef=u(Y);_focusMonitor=u(ti);_changeDetectorRef=u(ye);defaults=u(rge);_onChange=e=>{};_onTouched=()=>{};_validatorOnChange=()=>{};_uniqueId;_checked=!1;_createChangeEvent(e){return new sw(this,e)}_labelId;get buttonId(){return`${this.id||this._uniqueId}-button`}_switchElement;focus(){this._switchElement.nativeElement.focus()}_noopAnimations=Ye();_focused;name=null;id;labelPosition="after";ariaLabel=null;ariaLabelledby=null;ariaDescribedby;required;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 U;toggleChange=new U;get inputId(){return`${this.id||this._uniqueId}-input`}constructor(){u(ht).load(ki);let e=u(new Oi("tabindex"),{optional:!0}),i=this.defaults;this.tabIndex=e==null?0:parseInt(e)||0,this.color=i.color||"accent",this.id=this._uniqueId=u(Ze).getId("mat-mdc-slide-toggle-"),this.hideIcon=i.hideIcon??!1,this.disabledInteractive=i.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 sw(this,this.checked))))}_getAriaLabelledBy(){return this.ariaLabelledby?this.ariaLabelledby:this.ariaLabel?null:this._labelId}static \u0275fac=function(i){return new(i||t)};static \u0275cmp=E({type:t,selectors:[["mat-slide-toggle"]],viewQuery:function(i,r){if(i&1&&ie(tge,5),i&2){let o;j(o=H())&&(r._switchElement=o.first)}},hostAttrs:[1,"mat-mdc-slide-toggle"],hostVars:13,hostBindings:function(i,r){i&2&&(ci("id",r.id),X("tabindex",null)("aria-label",null)("name",null)("aria-labelledby",null),nt(r.color?"mat-"+r.color:""),G("mat-mdc-slide-toggle-focused",r._focused)("mat-mdc-slide-toggle-checked",r.checked)("_mat-animation-noopable",r._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",L],color:"color",disabled:[2,"disabled","disabled",L],disableRipple:[2,"disableRipple","disableRipple",L],tabIndex:[2,"tabIndex","tabIndex",e=>e==null?0:dt(e)],checked:[2,"checked","checked",L],hideIcon:[2,"hideIcon","hideIcon",L],disabledInteractive:[2,"disabledInteractive","disabledInteractive",L]},outputs:{change:"change",toggleChange:"toggleChange"},exportAs:["matSlideToggle"],features:[Ce([{provide:rr,useExisting:ri(()=>t),multi:!0},{provide:na,useExisting:t,multi:!0}]),Ae],ngContentSelectors:ige,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(i,r){if(i&1){let o=q();Se(),m(0,"div",1)(1,"button",2,0),S("click",function(){return T(o),I(r._handleClick())}),M(3,"div",3)(4,"span",4),m(5,"span",5)(6,"span",6)(7,"span",7),M(8,"span",8),h(),m(9,"span",9),M(10,"span",10),h(),V(11,nge,5,0,"span",11),h()()(),m(12,"label",12),S("click",function(s){return T(o),I(s.stopPropagation())}),ne(13),h()()}if(i&2){let o=Me(2);v("labelPosition",r.labelPosition),f(),G("mdc-switch--selected",r.checked)("mdc-switch--unselected",!r.checked)("mdc-switch--checked",r.checked)("mdc-switch--disabled",r.disabled)("mat-mdc-slide-toggle-disabled-interactive",r.disabledInteractive),v("tabIndex",r.disabled&&!r.disabledInteractive?-1:r.tabIndex)("disabled",r.disabled&&!r.disabledInteractive),X("id",r.buttonId)("name",r.name)("aria-label",r.ariaLabel)("aria-labelledby",r._getAriaLabelledBy())("aria-describedby",r.ariaDescribedby)("aria-required",r.required||null)("aria-checked",r.checked)("aria-disabled",r.disabled&&r.disabledInteractive?"true":null),f(9),v("matRippleTrigger",o)("matRippleDisabled",r.disableRipple||r.disabled)("matRippleCentered",!0),f(),B(r.hideIcon?-1:11),f(),v("for",r.buttonId),X("id",r._labelId)}},dependencies:[jn,Zm],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 rgba(0,0,0,0);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 rgba(0,0,0,0);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:rgba(0,0,0,0);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:.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-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 t})(),Q8=(()=>{class t{static \u0275fac=function(i){return new(i||t)};static \u0275mod=ee({type:t});static \u0275inj=J({imports:[HI,De,De]})}return t})();var lw=(()=>{let n=class n{constructor(){this.router=u(Re),this.menu=u(mo),this.navItems=[],this.router.events.pipe(ce(i=>i instanceof xi)).subscribe(()=>this.checkOpenedItems()),this.menu.change().pipe(St(10)).subscribe(()=>{setTimeout(()=>this.checkOpenedItems())})}addItem(i){this.navItems.push(i)}removeItem(i){let r=this.navItems.indexOf(i);r!==-1&&this.navItems.splice(r,1)}closeOtherItems(i){this.navItems.forEach(r=>{r!==i&&r.setExpanded(!1)})}checkOpenedItems(){this.navItems.forEach(i=>{let r=i.route();r&&this.router.url.split("/").includes(r)&&(i.setExpanded(!0),this.closeOtherItems(i))})}};n.\u0275fac=function(r){return new(r||n)},n.\u0275dir=P({type:n,selectors:[["","navAccordion",""]],exportAs:["navAccordion"]});let t=n;return t})();var cw=(()=>{let n=class n{constructor(){this.nav=u(lw),this.route=re(""),this.expanded=he(!1)}ngOnInit(){this.nav.addItem(this)}ngOnDestroy(){this.nav.removeItem(this)}toggle(){this.expanded.update(i=>!i),this.expanded()&&this.nav.closeOtherItems(this)}setExpanded(i){this.expanded()!==i&&this.expanded.set(i)}};n.\u0275fac=function(r){return new(r||n)},n.\u0275dir=P({type:n,selectors:[["","navAccordionItem",""]],hostVars:2,hostBindings:function(r,o){r&2&&G("expanded",o.expanded())},inputs:{route:[1,"route"]},exportAs:["navAccordionItem"]});let t=n;return t})();var K8=(()=>{let n=class n{constructor(){this.navItem=u(cw)}onClick(){this.navItem.toggle()}};n.\u0275fac=function(r){return new(r||n)},n.\u0275dir=P({type:n,selectors:[["","navAccordionToggle",""]],hostBindings:function(r,o){r&1&&S("click",function(){return o.onClick()})},exportAs:["navAccordionToggle"]});let t=n;return t})();var age=()=>[],sge=(t,n)=>({menuList:t,parentRoute:n,level:0}),Z8=t=>[t],dw=(t,n)=>({item:t,level:n}),lge=(t,n,e)=>({menuList:t,parentRoute:n,level:e});function cge(t,n){if(t&1&&(m(0,"a",6),Ge(1,2),h()),t&2){let e=x(2).$implicit,i=x(),r=i.parentRoute,o=i.level,a=x(),s=Me(5);v("routerLink",a.menu.buildRoute(r.concat(Nt(3,Z8,e.route)))),f(),v("ngTemplateOutlet",s)("ngTemplateOutletContext",Da(5,dw,e,o))}}function dge(t,n){if(t&1&&(m(0,"a",7),Ge(1,2),h()),t&2){let e=x(2).$implicit,i=x().level;x();let r=Me(5);v("href",e.route,Qr),f(),v("ngTemplateOutlet",r)("ngTemplateOutletContext",Da(3,dw,e,i))}}function uge(t,n){if(t&1&&(m(0,"a",8),Ge(1,2),h()),t&2){let e=x(2).$implicit,i=x().level;x();let r=Me(5);v("href",e.route,Qr),f(),v("ngTemplateOutlet",r)("ngTemplateOutletContext",Da(3,dw,e,i))}}function mge(t,n){if(t&1&&(m(0,"button",9),Ge(1,2),h(),Ge(2,2)),t&2){let e=x(2).$implicit,i=x(),r=i.parentRoute,o=i.level;x();let a=Me(3),s=Me(5);f(),v("ngTemplateOutlet",s)("ngTemplateOutletContext",Da(4,dw,e,o)),f(),v("ngTemplateOutlet",a)("ngTemplateOutletContext",Vd(9,lge,e.children,r.concat(Nt(7,Z8,e.route)),o+1))}}function hge(t,n){if(t&1&&(m(0,"li",5),V(1,cge,2,8,"a",6),V(2,dge,2,6,"a",7),V(3,uge,2,6,"a",8),V(4,mge,3,13),h()),t&2){let e=x().$implicit;v("route",e.route),f(),B(e.type==="link"?1:-1),f(),B(e.type==="extLink"?2:-1),f(),B(e.type==="extTabLink"?3:-1),f(),B(e.type==="sub"?4:-1)}}function pge(t,n){if(t&1&&A(0,hge,5,5,"ng-template",4),t&2){let e=n.$implicit;v("ngxPermissionsOnly",e.permissions==null?null:e.permissions.only)("ngxPermissionsExcept",e.permissions==null?null:e.permissions.except)}}function fge(t,n){if(t&1&&(m(0,"ul",3),xt(1,pge,1,2,null,4,Ui),h()),t&2){let e=n.menuList,i=n.level;nt(qo("matero-sidemenu level-",i)),G("submenu",i>0),f(),Ct(e)}}function gge(t,n){if(t&1&&(m(0,"mat-icon",14),g(1),h()),t&2){let e=x(),i=e.item,r=e.level;G("submenu-icon",r>0),f(),N(i.icon)}}function _ge(t,n){if(t&1&&(m(0,"span",14),g(1),ue(2,"translate"),ue(3,"slice"),h()),t&2){let e=x(),i=e.item,r=e.level;G("submenu-icon",r>0),f(),pe(" ",$1(3,5,Oe(2,3,i.name),0,1)," ")}}function bge(t,n){if(t&1&&(m(0,"span"),g(1),h()),t&2){let e=x().item;nt(qo("menu-label bg-",e.label.color)),f(),N(e.label.value)}}function vge(t,n){if(t&1&&(m(0,"span"),g(1),h()),t&2){let e=x().item;nt(qo("menu-badge bg-",e.badge.color)),f(),N(e.badge.value)}}function yge(t,n){if(t&1&&(m(0,"mat-icon",13),g(1),h()),t&2){let e=x().item;f(),N(e.type==="sub"?"arrow_drop_down":"launch")}}function xge(t,n){if(t&1&&(V(0,gge,2,3,"mat-icon",10)(1,_ge,4,9,"span",10),m(2,"span",11),g(3),ue(4,"translate"),h(),V(5,bge,2,4,"span",12),V(6,vge,2,4,"span",12),V(7,yge,2,1,"mat-icon",13)),t&2){let e=n.item;B(e.icon?0:1),f(3),N(Oe(4,5,e.name)),f(2),B(e.label?5:-1),f(),B(e.badge?6:-1),f(),B(e.type!=="link"?7:-1)}}var X8=(()=>{let n=class n{constructor(){this.menu=u(mo)}};n.\u0275fac=function(r){return new(r||n)},n.\u0275cmp=E({type:n,selectors:[["app-sidemenu"]],decls:6,vars:8,consts:[["menuTpl",""],["linkTypeTpl",""],[3,"ngTemplateOutlet","ngTemplateOutletContext"],["navAccordion",""],[3,"ngxPermissionsOnly","ngxPermissionsExcept"],["navAccordionItem","","routerLinkActive","active",1,"menu-item",3,"route"],["matRipple","",1,"menu-heading",3,"routerLink"],["matRipple","",1,"menu-heading",3,"href"],["target","_blank","matRipple","",1,"menu-heading",3,"href"],["navAccordionToggle","","matRipple","",1,"menu-heading","menu-toggle"],[1,"menu-icon",3,"submenu-icon"],[1,"menu-name"],[3,"class"],[1,"menu-caret"],[1,"menu-icon"]],template:function(r,o){if(r&1&&(Ge(0,2),ue(1,"async"),A(2,fge,3,5,"ng-template",null,0,vi)(4,xge,8,7,"ng-template",null,1,vi)),r&2){let a=Me(3);v("ngTemplateOutlet",a)("ngTemplateOutletContext",Da(5,sge,Oe(1,2,o.menu.getAll()),rt(4,age)))}},dependencies:[Ln,Vn,Yd,wc,Nh,tt,st,Mo,jn,Sr,lw,cw,K8,sn,fM,Mr],styles:[`.matero-sidemenu{padding:0;margin:0;list-style:none}.matero-sidemenu .menu-item{overflow:hidden;border-radius:1.5rem;transition:background 225ms cubic-bezier(.4,0,.2,1)}.matero-sidemenu .menu-item>.submenu{visibility:hidden;height:0;transition:all 225ms cubic-bezier(.4,0,.2,1)}.matero-sidemenu .menu-item>.menu-heading:hover,.matero-sidemenu .menu-item>.menu-heading:focus{background-color:var(--sidemenu-heading-hover-background-color)}.matero-sidemenu .menu-item.active>.menu-heading{color:var(--sidemenu-active-heading-text-color);background-color:var(--sidemenu-active-heading-background-color)}.matero-sidemenu .menu-item.active>.menu-heading:hover,.matero-sidemenu .menu-item.active>.menu-heading:focus{background-color:var(--sidemenu-active-heading-hover-background-color)}.matero-sidemenu .menu-item.expanded{background-color:var(--sidemenu-expanded-background-color)}.matero-sidemenu .menu-item.expanded>.submenu{visibility:visible;height:auto;height:calc-size(auto,size)}.matero-sidemenu .menu-item.expanded>.menu-toggle>.menu-caret{transform:rotate(-180deg)}.matero-sidemenu .menu-item:has(.active)>.menu-heading{color:var(--sidemenu-active-heading-text-color)}.matero-sidemenu .menu-heading{position:relative;display:flex;align-items:center;width:calc(var(--sidenav-width) - 1rem);padding:.75rem;font-size:inherit;color:inherit;text-decoration:none;cursor:pointer;outline:none;background-color:transparent;border:none;border-radius:1.5rem}.matero-sidemenu .menu-icon{width:1.5rem;height:1.5rem;margin-right:.75rem;font-size:1.25rem;line-height:1.5rem;text-align:center}[dir=rtl] .matero-sidemenu .menu-icon{margin-right:0;margin-left:.75rem}.matero-sidemenu .menu-icon.submenu-icon{position:absolute;left:.75rem;width:1.5rem;height:1.5rem;font-size:1rem;line-height:1.5rem;opacity:0}[dir=rtl] .matero-sidemenu .menu-icon.submenu-icon{right:.75rem;left:0}.matero-sidemenu .menu-caret{display:block;width:1.5rem;height:1.5rem;font-size:1.5rem;line-height:1.5rem;text-align:center;transition:transform .4s cubic-bezier(.25,.8,.25,1)}.matero-sidemenu .menu-name{flex:1;overflow:hidden;text-overflow:ellipsis;text-align:initial}.matero-sidemenu .menu-icon,.matero-sidemenu .menu-name,.matero-sidemenu .menu-label,.matero-sidemenu .menu-badge{transition:opacity .4s cubic-bezier(.25,.8,.25,1)}.matero-sidemenu .menu-label,.matero-sidemenu .menu-badge{padding:.25rem .5rem;font-size:.75rem;font-weight:700;line-height:1;color:#fff;background-color:#757575;border-radius:.375rem}.matero-sidemenu .menu-badge{border-radius:50rem}.matero-sidemenu.level-1>li>.menu-heading{padding-left:3rem}[dir=rtl] .matero-sidemenu.level-1>li>.menu-heading{padding-right:3rem;padding-left:1rem}.matero-sidemenu.level-2>li>.menu-heading{padding-left:4rem}[dir=rtl] .matero-sidemenu.level-2>li>.menu-heading{padding-right:4rem;padding-left:1rem}.matero-sidemenu.level-2 [class^=level-]>li>.menu-heading{padding-left:5rem}[dir=rtl] .matero-sidemenu.level-2 [class^=level-]>li>.menu-heading{padding-right:5rem;padding-left:1rem} +`],encapsulation:2});let t=n;return t})();var J8=(()=>{let n=class n{constructor(){this.oidcAuth=u(Ot),this.userName="Guest",this.userEmail="Anonymous"}ngOnInit(){this.updateUserInfo(),this.authSubscription=this.oidcAuth.isAuthenticated$.subscribe(i=>{console.log("UserPanel: Auth state changed:",i),this.updateUserInfo()})}ngOnDestroy(){this.authSubscription?.unsubscribe()}updateUserInfo(){let i=this.oidcAuth.isAuthenticated();if(console.log("UserPanel: Updating user info, isAuthenticated:",i),!i){this.userName="Guest",this.userEmail="Anonymous";return}let r=this.oidcAuth.getUserInfo();console.log("UserPanel: User info from service:",r),console.log("UserPanel: Available claims:",r?Object.keys(r):"null"),this.userName=r?.name||r?.preferred_username||r?.given_name||r?.["http://schemas.xmlsoap.org/ws/2005/05/identity/claims/name"]||r?.sub||"User",this.userEmail=r?.email||r?.["http://schemas.xmlsoap.org/ws/2005/05/identity/claims/emailaddress"]||"",console.log("UserPanel: Set userName to:",this.userName,"email to:",this.userEmail)}};n.\u0275fac=function(r){return new(r||n)},n.\u0275cmp=E({type:n,selectors:[["app-user-panel"]],decls:8,vars:4,consts:[[1,"matero-user-panel"],[1,"matero-user-panel-avatar"],[1,"matero-user-panel-info"]],template:function(r,o){r&1&&(m(0,"div",0)(1,"mat-icon",1),g(2,"account_circle"),h(),m(3,"div",2)(4,"h4"),g(5),h(),m(6,"h5"),g(7),h()()()),r&2&&(G("authenticated",o.oidcAuth.isAuthenticated()),f(5),N(o.userName),f(2),N(o.userEmail))},dependencies:[ut,Be,tt,st,$r,Sr],styles:[`.matero-user-panel{display:flex;align-items:center;padding:.75rem;margin-bottom:.75rem;cursor:pointer;outline:none;background-color:var(--user-panel-background-color);border-radius:.75rem}.matero-user-panel:hover,.matero-user-panel:focus{background-color:var(--user-panel-hover-background-color)}.matero-user-panel-avatar{width:3rem;height:3rem;font-size:3rem;border-radius:50rem;color:#0000008a;transform-origin:0 1.5rem;transition:transform .4s cubic-bezier(.25,.8,.25,1)}[dir=rtl] .matero-user-panel-avatar{transform-origin:3rem 1.5rem}.matero-user-panel-info{flex:1;width:0;margin-left:.75rem;opacity:1;transition:opacity .4s cubic-bezier(.25,.8,.25,1)}[dir=rtl] .matero-user-panel-info{margin-right:.75rem;margin-left:0}.matero-user-panel-info h4,.matero-user-panel-info h5{margin:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.matero-user-panel-info h4{margin-bottom:4px;font-size:1rem;font-weight:500}.matero-user-panel-info h5{font-size:.75rem;font-weight:400} +`],encapsulation:2});let t=n;return t})();function Cge(t,n){if(t&1){let e=q();m(0,"mat-slide-toggle",6),S("change",function(){T(e);let r=x(2);return I(r.toggleCollapsed.emit())}),h()}if(t&2){let e=x(2);v("checked",e.toggleChecked())}}function wge(t,n){if(t&1){let e=q();m(0,"button",7),S("click",function(){T(e);let r=x(2);return I(r.closeSidenav.emit())}),m(1,"mat-icon"),g(2,"close"),h()()}}function Dge(t,n){if(t&1&&(m(0,"div",0)(1,"mat-toolbar"),M(2,"app-branding",2)(3,"span",3),V(4,Cge,1,1,"mat-slide-toggle",4)(5,wge,3,0,"button",5),h()()),t&2){let e=x();f(2),v("showName",!e.toggleChecked()),f(2),B(e.showToggle()?4:5)}}function Ege(t,n){t&1&&M(0,"app-user-panel")}var e6=(()=>{let n=class n{constructor(){this.showToggle=re(!0),this.showUser=re(!0),this.showHeader=re(!0),this.toggleChecked=re(!1),this.toggleCollapsed=yi(),this.closeSidenav=yi()}};n.\u0275fac=function(r){return new(r||n)},n.\u0275cmp=E({type:n,selectors:[["app-sidebar"]],inputs:{showToggle:[1,"showToggle"],showUser:[1,"showUser"],showHeader:[1,"showHeader"],toggleChecked:[1,"toggleChecked"]},outputs:{toggleCollapsed:"toggleCollapsed",closeSidenav:"closeSidenav"},decls:4,vars:2,consts:[[1,"matero-sidebar-header"],[1,"matero-sidebar-main"],[3,"showName"],[1,"flex-fill"],["hideIcon","",3,"checked"],["mat-icon-button",""],["hideIcon","",3,"change","checked"],["mat-icon-button","",3,"click"]],template:function(r,o){r&1&&(V(0,Dge,6,2,"div",0),m(1,"div",1),V(2,Ege,1,0,"app-user-panel"),M(3,"app-sidemenu"),h()),r&2&&(B(o.showHeader()?0:-1),f(2),B(o.showUser()?2:-1))},dependencies:[Q8,HI,tt,st,Be,Yt,iw,tw,nw,X8,J8],styles:[`.matero-sidebar-header{overflow:hidden}.matero-sidebar-header mat-toolbar{width:var(--sidenav-width);padding:0 .5rem}.matero-sidebar-header mat-slide-toggle .mdc-label{display:none}.matero-sidebar-main{height:calc(100% - var(--mat-toolbar-standard-height));padding:0 .5rem .5rem;overflow:auto;scrollbar-width:none}@media (max-width: 599px){.matero-sidebar-main{height:calc(100% - var(--mat-toolbar-mobile-height))}} +`],encapsulation:2});let t=n;return t})();var t6=t=>[t],Mge=()=>[];function Sge(t,n){if(t&1){let e=q();m(0,"a",8,0),S("click",function(){T(e);let r=Me(1),o=x(3);return I(o.onRouterLinkClick(r))}),g(2),ue(3,"translate"),h()}if(t&2){let e=x(2).$implicit,i=x();v("routerLink",i.menu.buildRoute(i.parentRoute().concat(Nt(4,t6,e.route)))),f(2),pe(" ",Oe(3,2,e.name)," ")}}function kge(t,n){if(t&1&&(m(0,"a",5)(1,"span",9),g(2),ue(3,"translate"),h(),m(4,"mat-icon"),g(5,"launch"),h()()),t&2){let e=x(2).$implicit;v("href",e.route,Qr),f(2),N(Oe(3,2,e.name))}}function Tge(t,n){if(t&1&&(m(0,"a",6)(1,"span",9),g(2),ue(3,"translate"),h(),m(4,"mat-icon"),g(5,"launch"),h()()),t&2){let e=x(2).$implicit;v("href",e.route,Qr),f(2),N(Oe(3,2,e.name))}}function Ige(t,n){if(t&1){let e=q();m(0,"button",10),g(1),ue(2,"translate"),m(3,"app-topmenu-panel",11,1),S("routeChange",function(r){T(e);let o=x(2).$implicit,a=x();return I(a.onRouteChange(r,o))}),h()()}if(t&2){let e=Me(4),i=x(2).$implicit,r=x();G("active",i.active==null?null:i.active()),v("matMenuTriggerFor",e.menuPanel()),f(),pe(" ",Oe(2,7,i.name)," "),f(2),v("items",i.children||rt(9,Mge))("parentRoute",r.parentRoute().concat(Nt(10,t6,i.route)))("level",r.level()+1)}}function Age(t,n){if(t&1&&(V(0,Sge,4,6,"a",4),V(1,kge,6,4,"a",5),V(2,Tge,6,4,"a",6),V(3,Ige,5,12,"button",7)),t&2){let e=x().$implicit;B(e.type==="link"?0:-1),f(),B(e.type==="extLink"?1:-1),f(),B(e.type==="extTabLink"?2:-1),f(),B(e.type==="sub"?3:-1)}}function Oge(t,n){if(t&1&&A(0,Age,4,4,"ng-template",3),t&2){let e=n.$implicit;v("ngxPermissionsOnly",e.permissions==null?null:e.permissions.only)("ngxPermissionsExcept",e.permissions==null?null:e.permissions.except)}}var i6=(()=>{let n=class n{constructor(){this.router=u(Re),this.menu=u(mo),this.menuPanel=Qn.required(Wr),this.items=re([]),this.parentRoute=re([]),this.level=re(1),this.routeChange=yi(),this.routerSubscription=this.router.events.pipe(ce(i=>i instanceof xi)).subscribe(i=>{this.items().map(r=>r.active?.set(!1))})}ngOnInit(){this.items().forEach(i=>{i.active=he(this.checkRoute(i))})}ngOnDestroy(){this.routerSubscription.unsubscribe()}checkRoute(i){return i.route?this.router.url.split("/").includes(i.route):this.checkChildRoute(i.children)}checkChildRoute(i=[]){return i.some(r=>this.router.url.split("/").includes(r.route)?!0:(!r.route&&r.children&&this.checkChildRoute(r.children),!1))}onRouterLinkClick(i){this.routeChange.emit(i)}onRouteChange(i,r){this.routeChange.emit(i),this.routerSubscription.unsubscribe(),this.routerSubscription=this.router.events.pipe(ce(o=>o instanceof xi),He(()=>{this.items().filter(a=>a!=r).map(a=>a.active?.set(!1))}),St(10),He(()=>{r.active?.set(i.isActive)})).subscribe()}};n.\u0275fac=function(r){return new(r||n)},n.\u0275cmp=E({type:n,selectors:[["app-topmenu-panel"]],viewQuery:function(r,o){r&1&&Nn(o.menuPanel,Wr,5),r&2&&Go()},inputs:{items:[1,"items"],parentRoute:[1,"parentRoute"],level:[1,"level"]},outputs:{routeChange:"routeChange"},decls:3,vars:0,consts:[["rla","routerLinkActive"],["submenu",""],[1,"matero-topmenu-panel"],[3,"ngxPermissionsOnly","ngxPermissionsExcept"],["mat-menu-item","","routerLinkActive","active",3,"routerLink"],["mat-menu-item","",3,"href"],["mat-menu-item","","target","_blank",3,"href"],["mat-menu-item","",3,"matMenuTriggerFor","active"],["mat-menu-item","","routerLinkActive","active",3,"click","routerLink"],[1,"menu-name"],["mat-menu-item","",3,"matMenuTriggerFor"],[3,"routeChange","items","parentRoute","level"]],template:function(r,o){r&1&&(m(0,"mat-menu",2),xt(1,Oge,1,2,null,3,Ui),h()),r&2&&(f(),Ct(o.items()))},dependencies:[n,Vn,Yd,tt,st,Vs,Wr,Sl,Ls,wc,Nh,Sr,Mr],encapsulation:2});let t=n;return t})();var n6=t=>[t],mw=t=>({item:t}),Rge=()=>[];function Pge(t,n){if(t&1&&(m(0,"a",5),Ge(1,9),h()),t&2){let e=x(2).$implicit,i=x(),r=Me(7);v("routerLink",i.menu.buildRoute(Nt(3,n6,e.route))),f(),v("ngTemplateOutlet",r)("ngTemplateOutletContext",Nt(5,mw,e))}}function Fge(t,n){if(t&1&&(m(0,"a",6),Ge(1,9),h()),t&2){let e=x(2).$implicit;x();let i=Me(7);v("href",e.route,Qr),f(),v("ngTemplateOutlet",i)("ngTemplateOutletContext",Nt(3,mw,e))}}function Nge(t,n){if(t&1&&(m(0,"a",7),Ge(1,9),h()),t&2){let e=x(2).$implicit;x();let i=Me(7);v("href",e.route,Qr),f(),v("ngTemplateOutlet",i)("ngTemplateOutletContext",Nt(3,mw,e))}}function Lge(t,n){if(t&1){let e=q();m(0,"button",10),Ge(1,9),m(2,"app-topmenu-panel",11,2),S("routeChange",function(r){T(e);let o=x(2).$implicit,a=x();return I(a.onRouteChange(r,o))}),h()()}if(t&2){let e=Me(3),i=x(2).$implicit;x();let r=Me(7);G("active",i.active==null?null:i.active()),v("matMenuTriggerFor",e.menuPanel()),f(),v("ngTemplateOutlet",r)("ngTemplateOutletContext",Nt(8,mw,i)),f(),v("items",i.children||rt(10,Rge))("parentRoute",Nt(11,n6,i.route))("level",1)}}function Vge(t,n){if(t&1&&(V(0,Pge,2,7,"a",5),V(1,Fge,2,5,"a",6),V(2,Nge,2,5,"a",7),V(3,Lge,4,13,"button",8)),t&2){let e=x().$implicit;B(e.type==="link"?0:-1),f(),B(e.type==="extLink"?1:-1),f(),B(e.type==="extTabLink"?2:-1),f(),B(e.type==="sub"?3:-1)}}function Bge(t,n){if(t&1&&A(0,Vge,4,4,"ng-template",4),t&2){let e=n.$implicit;v("ngxPermissionsOnly",e.permissions==null?null:e.permissions.only)("ngxPermissionsExcept",e.permissions==null?null:e.permissions.except)}}function jge(t,n){if(t&1&&(m(0,"span"),g(1),h()),t&2){let e=x().item;nt(qo("menu-label bg-",e.label.color)),f(),N(e.label.value)}}function Hge(t,n){if(t&1&&(m(0,"span"),g(1),h()),t&2){let e=x().item;nt(qo("menu-badge bg-",e.badge.color)),f(),N(e.badge.value)}}function zge(t,n){if(t&1&&(m(0,"mat-icon",15),g(1),h()),t&2){let e=x().item;f(),N(e.type==="sub"?"arrow_drop_down":"launch")}}function Uge(t,n){if(t&1&&(m(0,"mat-icon",12),g(1),h(),m(2,"span",13),g(3),ue(4,"translate"),h(),V(5,jge,2,4,"span",14),V(6,Hge,2,4,"span",14),V(7,zge,2,1,"mat-icon",15)),t&2){let e=n.item;f(),N(e.icon),f(2),N(Oe(4,5,e.name)),f(2),B(e.label?5:-1),f(),B(e.badge?6:-1),f(),B(e.type!=="link"?7:-1)}}var r6=(()=>{let n=class n{constructor(){this.router=u(Re),this.menu=u(mo),this.menuList=[],this.menuSubscription=this.menu.getAll().subscribe(i=>{this.menuList=i.map(r=>{let o=this.router.url.split("/").includes(r.route);return r.active=he(o),r})}),this.routerSubscription=this.router.events.pipe(ce(i=>i instanceof xi)).subscribe(i=>{this.menuList.map(r=>r.active?.set(!1))})}ngOnDestroy(){this.menuSubscription.unsubscribe(),this.routerSubscription.unsubscribe()}onRouteChange(i,r){this.routerSubscription.unsubscribe(),this.routerSubscription=this.router.events.pipe(ce(o=>o instanceof xi),He(()=>{this.menuList.filter(o=>o!=r).map(o=>o.active?.set(!1))}),St(10),He(()=>{r.active?.set(i.isActive)})).subscribe()}};n.\u0275fac=function(r){return new(r||n)},n.\u0275cmp=E({type:n,selectors:[["app-topmenu"]],hostAttrs:[1,"matero-topmenu"],decls:8,vars:3,consts:[["tabPanel",""],["linkTypeTpl",""],["submenu",""],["mat-tab-nav-bar","",3,"tabPanel"],[3,"ngxPermissionsOnly","ngxPermissionsExcept"],["matButton","","routerLinkActive","active",3,"routerLink"],["matButton","",3,"href"],["matButton","","target","_blank",3,"href"],["matButton","",3,"matMenuTriggerFor","active"],[3,"ngTemplateOutlet","ngTemplateOutletContext"],["matButton","",3,"matMenuTriggerFor"],[3,"routeChange","items","parentRoute","level"],[1,"menu-icon"],[1,"menu-name"],[3,"class"],[1,"menu-caret"]],template:function(r,o){if(r&1&&(m(0,"nav",3),xt(1,Bge,1,2,null,4,Ui),ue(3,"async"),h(),M(4,"mat-tab-nav-panel",null,0),A(6,Uge,8,7,"ng-template",null,1,vi)),r&2){let a=Me(5);v("tabPanel",a),f(),Ct(Oe(3,1,o.menu.getAll()))}},dependencies:[Ln,Vn,Yd,Be,Mt,tt,st,Vs,Ls,zc,jI,q8,wc,Nh,Sr,i6,sn,Mr],styles:[`.matero-topmenu{--mat-tab-divider-height: 0;--mat-button-text-label-text-color: var(--topmenu-text-color);position:sticky;z-index:200;display:block;padding:.5rem;background-color:var(--topmenu-background-color);-webkit-backdrop-filter:blur(8px);backdrop-filter:blur(8px)}.matero-topmenu .mat-mdc-button{padding:0 1rem;white-space:nowrap}.matero-topmenu .mat-mdc-button.active{background-color:var(--topmenu-item-active-background-color)}.matero-topmenu .menu-icon,.matero-topmenu .menu-caret,.matero-topmenu .menu-name{vertical-align:middle}.matero-topmenu .mat-icon.menu-icon{width:1.125rem;height:1.125rem;margin-right:.5rem;font-size:1.125rem;line-height:1.125rem}[dir=rtl] .matero-topmenu .mat-icon.menu-icon{margin-right:auto;margin-left:.5rem}.matero-topmenu .mat-icon.menu-caret{margin-right:-.5rem}[dir=rtl] .matero-topmenu .mat-icon.menu-caret{margin-right:auto;margin-left:-.5rem}.matero-topmenu .menu-label,.matero-topmenu .menu-badge{padding:.25rem .5rem;margin-left:.5rem;font-size:.75rem;font-weight:700;line-height:1;color:#fff;background-color:#757575;border-radius:.375rem}[dir=rtl] .matero-topmenu .menu-label,[dir=rtl] .matero-topmenu .menu-badge{margin-right:.5rem;margin-left:auto}.matero-topmenu .menu-badge{border-radius:50rem}.matero-topmenu .mat-tab-nav-bar,.matero-topmenu .mat-tab-header{border-bottom:none}.matero-topmenu-panel .mat-mdc-menu-item.active{color:var(--topmenu-dropdown-item-active-text-color)} +`],encapsulation:2});let t=n;return t})();var $ge=["sidenav"],Wge=["content"];function Gge(t,n){if(t&1){let e=q();m(0,"app-header",13),S("toggleSidenav",function(){T(e),x();let r=Me(5);return I(r.toggle())})("toggleSidenavNotice",function(){T(e),x();let r=Me(8);return I(r.toggle())}),h()}t&2&&v("showBranding",!0)}function qge(t,n){if(t&1){let e=q();m(0,"app-header",14),S("toggleSidenav",function(){T(e),x();let r=Me(5);return I(r.toggle())})("toggleSidenavNotice",function(){T(e),x();let r=Me(8);return I(r.toggle())}),h()}if(t&2){let e=x();v("showToggle",!e.options.sidenavCollapsed&&e.options.navPos!=="top")("showBranding",e.options.navPos==="top")}}function Yge(t,n){t&1&&M(0,"app-topmenu")}var o6="screen and (max-width: 599px)",a6="screen and (min-width: 600px) and (max-width: 959px)",s6="screen and (min-width: 960px)",l6=(()=>{let n=class n{get themeColor(){return this.settings.getThemeColor()}get isOver(){return this.isMobileScreen}get contentWidthFix(){return this.isContentWidthFixed&&this.options.navPos==="side"&&this.options.sidenavOpened&&!this.isOver}get collapsedWidthFix(){return this.isCollapsedWidthFixed&&(this.options.navPos==="top"||this.options.sidenavOpened&&this.isOver)}constructor(){this.sidenav=Qn.required("sidenav"),this.content=Qn.required("content"),this.breakpointObserver=u(ll),this.router=u(Re),this.settings=u(ca),this.options=this.settings.options,this.isMobileScreen=!1,this.isContentWidthFixed=!0,this.isCollapsedWidthFixed=!1,this.layoutChangesSubscription=Te.EMPTY,this.layoutChangesSubscription=this.breakpointObserver.observe([o6,a6,s6]).subscribe(i=>{this.options.sidenavOpened=!0,this.isMobileScreen=i.breakpoints[o6],this.options.sidenavCollapsed=i.breakpoints[a6],this.isContentWidthFixed=i.breakpoints[s6]}),this.router.events.pipe(ce(i=>i instanceof xi)).subscribe(i=>{this.isOver&&this.sidenav().close(),this.content().scrollTo({top:0})})}ngOnDestroy(){this.layoutChangesSubscription.unsubscribe()}toggleCollapsed(){this.isContentWidthFixed=!1,this.options.sidenavCollapsed=!this.options.sidenavCollapsed,this.resetCollapsedState()}resetCollapsedState(i=400){setTimeout(()=>{this.settings.setOptions(this.options)},i)}onSidenavClosedStart(){this.isContentWidthFixed=!1}onSidenavOpenedChange(i){this.isCollapsedWidthFixed=!this.isOver,this.options.sidenavOpened=i,this.settings.setOptions(this.options)}updateOptions(i){this.options=i,this.settings.setOptions(i),this.settings.setDirection(),this.settings.setTheme()}};n.\u0275fac=function(r){return new(r||n)},n.\u0275cmp=E({type:n,selectors:[["app-admin-layout"]],viewQuery:function(r,o){r&1&&(Nn(o.sidenav,$ge,5),Nn(o.content,Wge,5)),r&2&&Go(2)},hostVars:4,hostBindings:function(r,o){r&2&&G("matero-content-width-fix",o.contentWidthFix)("matero-sidenav-collapsed-fix",o.collapsedWidthFix)},decls:16,vars:20,consts:[["sidenav",""],["sidenavNotice",""],["content",""],[1,"matero-container-wrap",3,"dir"],["ngProgressRouter",""],[3,"showBranding"],["autosize","","autoFocus","",1,"matero-container"],[1,"matero-sidenav",3,"openedChange","closedStart","mode","opened"],[3,"toggleCollapsed","closeSidenav","showToggle","showUser","showHeader","toggleChecked"],["position","end","mode","over"],[1,"matero-content"],[3,"showToggle","showBranding"],[1,"matero-page-content"],[3,"toggleSidenav","toggleSidenavNotice","showBranding"],[3,"toggleSidenav","toggleSidenavNotice","showToggle","showBranding"]],template:function(r,o){if(r&1){let a=q();m(0,"div",3),M(1,"ng-progress",4),V(2,Gge,1,1,"app-header",5),m(3,"mat-sidenav-container",6)(4,"mat-sidenav",7,0),S("openedChange",function(l){return T(a),I(o.onSidenavOpenedChange(l))})("closedStart",function(){return T(a),I(o.onSidenavClosedStart())}),m(6,"app-sidebar",8),S("toggleCollapsed",function(){return T(a),I(o.toggleCollapsed())})("closeSidenav",function(){T(a);let l=Me(5);return I(l.close())}),h()(),m(7,"mat-sidenav",9,1),M(9,"app-sidebar-notice"),h(),m(10,"mat-sidenav-content",10,2),V(12,qge,1,2,"app-header",11),V(13,Yge,1,0,"app-topmenu"),m(14,"main",12),M(15,"router-outlet"),h()()()()}r&2&&(G("matero-sidenav-collapsed",o.options.sidenavCollapsed&&o.options.navPos!=="top")("matero-navbar-side",o.options.navPos==="side")("matero-navbar-top",o.options.navPos==="top")("matero-header-above",o.options.headerPos==="above")("matero-header-fixed",o.options.headerPos==="fixed"),v("dir",o.options.dir),f(2),B(o.options.showHeader&&o.options.headerPos==="above"?2:-1),f(2),v("mode",o.isOver?"over":"side")("opened",o.options.navPos==="side"&&o.options.sidenavOpened&&!o.isOver),f(2),v("showToggle",!o.isOver)("showUser",!!o.options.showUserPanel)("showHeader",o.options.headerPos!=="above")("toggleChecked",!!o.options.sidenavCollapsed),f(6),B(o.options.showHeader&&o.options.headerPos!=="above"?12:-1),f(),B(o.options.navPos==="top"?13:-1))},dependencies:[al,ys,GL,u8,AI,d8,ZC,h8,f8,O8,r6,e6,Y8],styles:[`.matero-container-wrap,.matero-container{--mat-sidenav-content-background-color: transparent;height:100%}.matero-sidenav{--mat-sidenav-container-width: var(--sidenav-width);position:absolute;overflow-x:hidden;border-width:0!important;transition-property:transform,width!important}.matero-header-above .matero-container{height:calc(100% - var(--mat-toolbar-standard-height))!important}@media (max-width: 599px){.matero-header-above .matero-container{height:calc(100% - var(--mat-toolbar-mobile-height))!important}}.matero-header-above .matero-sidebar-main{height:100%!important;padding-top:.5rem}.matero-sidenav-collapsed .matero-sidenav,.matero-sidenav-collapsed-fix .matero-sidenav{width:var(--sidenav-collapsed-width)}.matero-sidenav-collapsed .matero-sidenav .menu-name,.matero-sidenav-collapsed .matero-sidenav .menu-label,.matero-sidenav-collapsed .matero-sidenav .menu-badge,.matero-sidenav-collapsed .matero-sidenav .menu-caret,.matero-sidenav-collapsed .matero-sidenav .matero-user-panel-info,.matero-sidenav-collapsed-fix .matero-sidenav .menu-name,.matero-sidenav-collapsed-fix .matero-sidenav .menu-label,.matero-sidenav-collapsed-fix .matero-sidenav .menu-badge,.matero-sidenav-collapsed-fix .matero-sidenav .menu-caret,.matero-sidenav-collapsed-fix .matero-sidenav .matero-user-panel-info{opacity:0}.matero-sidenav-collapsed .matero-sidenav .menu-icon.submenu-icon,.matero-sidenav-collapsed-fix .matero-sidenav .menu-icon.submenu-icon{opacity:1}.matero-sidenav-collapsed .matero-sidenav .matero-user-panel-avatar,.matero-sidenav-collapsed-fix .matero-sidenav .matero-user-panel-avatar{transform:scale(.5)}.matero-sidenav-collapsed .matero-sidenav:hover,.matero-sidenav-collapsed-fix .matero-sidenav:hover{width:var(--sidenav-width)}.matero-sidenav-collapsed .matero-sidenav:hover .menu-name,.matero-sidenav-collapsed .matero-sidenav:hover .menu-label,.matero-sidenav-collapsed .matero-sidenav:hover .menu-badge,.matero-sidenav-collapsed .matero-sidenav:hover .menu-caret,.matero-sidenav-collapsed .matero-sidenav:hover .matero-user-panel-info,.matero-sidenav-collapsed-fix .matero-sidenav:hover .menu-name,.matero-sidenav-collapsed-fix .matero-sidenav:hover .menu-label,.matero-sidenav-collapsed-fix .matero-sidenav:hover .menu-badge,.matero-sidenav-collapsed-fix .matero-sidenav:hover .menu-caret,.matero-sidenav-collapsed-fix .matero-sidenav:hover .matero-user-panel-info{opacity:1}.matero-sidenav-collapsed .matero-sidenav:hover .menu-icon.submenu-icon,.matero-sidenav-collapsed-fix .matero-sidenav:hover .menu-icon.submenu-icon{opacity:0}.matero-sidenav-collapsed .matero-sidenav:hover .matero-user-panel-avatar,.matero-sidenav-collapsed-fix .matero-sidenav:hover .matero-user-panel-avatar{transform:scale(1)}.matero-sidenav-collapsed .matero-content{margin-left:var(--sidenav-collapsed-width)!important}[dir=rtl] .matero-sidenav-collapsed .matero-content,.matero-sidenav-collapsed[dir=rtl] .matero-content{margin-right:var(--sidenav-collapsed-width)!important;margin-left:auto!important}.matero-navbar-top .matero-topmenu{top:0}.matero-navbar-top .matero-branding{margin-left:1rem}[dir=rtl] .matero-navbar-top .matero-branding{margin-right:1rem;margin-left:auto}.matero-header-fixed .matero-header{position:sticky;top:0}.matero-header-fixed .matero-topmenu{top:var(--mat-toolbar-standard-height)}@media (max-width: 599px){.matero-header-fixed .matero-topmenu{top:var(--mat-toolbar-mobile-height)}}.matero-content-width-fix .matero-content{margin-left:var(--sidenav-width)!important}[dir=rtl] .matero-content-width-fix .matero-content{margin-right:var(--sidenav-width)!important;margin-left:auto!important}.matero-page-content{position:relative;padding:var(--gutter)}.matero-header+.matero-page-content,.matero-header-above .matero-page-content,.matero-navbar-top .matero-page-content{padding-top:0} +`],encapsulation:2});let t=n;return t})();var c6=(()=>{let n=class n{};n.\u0275fac=function(r){return new(r||n)},n.\u0275cmp=E({type:n,selectors:[["app-auth-layout"]],decls:2,vars:0,consts:[[1,"matero-auth-container"]],template:function(r,o){r&1&&(m(0,"div",0),M(1,"router-outlet"),h())},dependencies:[al],styles:[`.matero-auth-container{position:relative;display:flex;justify-content:center;min-height:100%;background-image:radial-gradient(at 97% 21%,hsla(125,98%,72%,.3) 0,transparent 50%),radial-gradient(at 52% 99%,hsla(354,98%,61%,.3) 0,transparent 50%),radial-gradient(at 10% 29%,hsla(256,96%,67%,.3) 0,transparent 50%),radial-gradient(at 97% 96%,hsla(38,60%,74%,.3) 0,transparent 50%),radial-gradient(at 33% 50%,hsla(222,67%,73%,.3) 0,transparent 50%),radial-gradient(at 79% 53%,hsla(343,68%,79%,.3) 0,transparent 50%)} +`],encapsulation:2});let t=n;return t})();var Qge=["determinateSpinner"];function Kge(t,n){if(t&1&&(Zt(),m(0,"svg",11),M(1,"circle",12),h()),t&2){let e=x();X("viewBox",e._viewBox()),f(),Et("stroke-dasharray",e._strokeCircumference(),"px")("stroke-dashoffset",e._strokeCircumference()/2,"px")("stroke-width",e._circleStrokeWidth(),"%"),X("r",e._circleRadius())}}var Zge=new O("mat-progress-spinner-default-options",{providedIn:"root",factory:Xge});function Xge(){return{diameter:d6}}var d6=100,Jge=10,fi=(()=>{class t{_elementRef=u(Y);_noopAnimations;get color(){return this._color||this._defaultColor}set color(e){this._color=e}_color;_defaultColor="primary";_determinateCircle;constructor(){let e=u(Zge),i=vS(),r=this._elementRef.nativeElement;this._noopAnimations=i==="di-disabled"&&!!e&&!e._forceAnimations,this.mode=r.nodeName.toLowerCase()==="mat-spinner"?"indeterminate":"determinate",!this._noopAnimations&&i==="reduced-motion"&&r.classList.add("mat-progress-spinner-reduced-motion"),e&&(e.color&&(this.color=this._defaultColor=e.color),e.diameter&&(this.diameter=e.diameter),e.strokeWidth&&(this.strokeWidth=e.strokeWidth))}mode;get value(){return this.mode==="determinate"?this._value:0}set value(e){this._value=Math.max(0,Math.min(100,e||0))}_value=0;get diameter(){return this._diameter}set diameter(e){this._diameter=e||0}_diameter=d6;get strokeWidth(){return this._strokeWidth??this.diameter/10}set strokeWidth(e){this._strokeWidth=e||0}_strokeWidth;_circleRadius(){return(this.diameter-Jge)/2}_viewBox(){let e=this._circleRadius()*2+this.strokeWidth;return`0 0 ${e} ${e}`}_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(i){return new(i||t)};static \u0275cmp=E({type:t,selectors:[["mat-progress-spinner"],["mat-spinner"]],viewQuery:function(i,r){if(i&1&&ie(Qge,5),i&2){let o;j(o=H())&&(r._determinateCircle=o.first)}},hostAttrs:["role","progressbar","tabindex","-1",1,"mat-mdc-progress-spinner","mdc-circular-progress"],hostVars:18,hostBindings:function(i,r){i&2&&(X("aria-valuemin",0)("aria-valuemax",100)("aria-valuenow",r.mode==="determinate"?r.value:null)("mode",r.mode),nt("mat-"+r.color),Et("width",r.diameter,"px")("height",r.diameter,"px")("--mat-progress-spinner-size",r.diameter+"px")("--mat-progress-spinner-active-indicator-width",r.diameter+"px"),G("_mat-animation-noopable",r._noopAnimations)("mdc-circular-progress--indeterminate",r.mode==="indeterminate"))},inputs:{color:"color",mode:"mode",value:[2,"value","value",dt],diameter:[2,"diameter","diameter",dt],strokeWidth:[2,"strokeWidth","strokeWidth",dt]},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(i,r){if(i&1&&(A(0,Kge,2,8,"ng-template",null,0,vi),m(2,"div",2,1),Zt(),m(4,"svg",3),M(5,"circle",4),h()(),Wo(),m(6,"div",5)(7,"div",6)(8,"div",7),Ge(9,8),h(),m(10,"div",9),Ge(11,8),h(),m(12,"div",10),Ge(13,8),h()()()),i&2){let o=Me(1);f(4),X("viewBox",r._viewBox()),f(),Et("stroke-dasharray",r._strokeCircumference(),"px")("stroke-dashoffset",r._strokeDashOffset(),"px")("stroke-width",r._circleStrokeWidth(),"%"),X("r",r._circleRadius()),f(4),v("ngTemplateOutlet",o),f(2),v("ngTemplateOutlet",o),f(2),v("ngTemplateOutlet",o)}},dependencies:[Ln],styles:[`.mat-mdc-progress-spinner{--mat-progress-spinner-animation-multiplier: 1;display:block;overflow:hidden;line-height:0;position:relative;direction:ltr;transition:opacity 250ms cubic-bezier(0.4, 0, 0.6, 1)}.mat-mdc-progress-spinner circle{stroke-width:var(--mat-progress-spinner-active-indicator-width, 4px)}.mat-mdc-progress-spinner._mat-animation-noopable,.mat-mdc-progress-spinner._mat-animation-noopable .mdc-circular-progress__determinate-circle{transition:none !important}.mat-mdc-progress-spinner._mat-animation-noopable .mdc-circular-progress__indeterminate-circle-graphic,.mat-mdc-progress-spinner._mat-animation-noopable .mdc-circular-progress__spinner-layer,.mat-mdc-progress-spinner._mat-animation-noopable .mdc-circular-progress__indeterminate-container{animation:none !important}.mat-mdc-progress-spinner._mat-animation-noopable .mdc-circular-progress__indeterminate-container circle{stroke-dasharray:0 !important}@media(forced-colors: active){.mat-mdc-progress-spinner .mdc-circular-progress__indeterminate-circle-graphic,.mat-mdc-progress-spinner .mdc-circular-progress__determinate-circle{stroke:currentColor;stroke:CanvasText}}.mat-progress-spinner-reduced-motion{--mat-progress-spinner-animation-multiplier: 1.25}.mdc-circular-progress__determinate-container,.mdc-circular-progress__indeterminate-circle-graphic,.mdc-circular-progress__indeterminate-container,.mdc-circular-progress__spinner-layer{position:absolute;width:100%;height:100%}.mdc-circular-progress__determinate-container{transform:rotate(-90deg)}.mdc-circular-progress--indeterminate .mdc-circular-progress__determinate-container{opacity:0}.mdc-circular-progress__indeterminate-container{font-size:0;letter-spacing:0;white-space:nowrap;opacity:0}.mdc-circular-progress--indeterminate .mdc-circular-progress__indeterminate-container{opacity:1;animation:mdc-circular-progress-container-rotate calc(1568.2352941176ms*var(--mat-progress-spinner-animation-multiplier)) linear infinite}.mdc-circular-progress__determinate-circle-graphic,.mdc-circular-progress__indeterminate-circle-graphic{fill:rgba(0,0,0,0)}.mat-mdc-progress-spinner .mdc-circular-progress__determinate-circle,.mat-mdc-progress-spinner .mdc-circular-progress__indeterminate-circle-graphic{stroke:var(--mat-progress-spinner-active-indicator-color, var(--mat-sys-primary))}@media(forced-colors: active){.mat-mdc-progress-spinner .mdc-circular-progress__determinate-circle,.mat-mdc-progress-spinner .mdc-circular-progress__indeterminate-circle-graphic{stroke:CanvasText}}.mdc-circular-progress__determinate-circle{transition:stroke-dashoffset 500ms cubic-bezier(0, 0, 0.2, 1)}.mdc-circular-progress__gap-patch{position:absolute;top:0;left:47.5%;box-sizing:border-box;width:5%;height:100%;overflow:hidden}.mdc-circular-progress__gap-patch .mdc-circular-progress__indeterminate-circle-graphic{left:-900%;width:2000%;transform:rotate(180deg)}.mdc-circular-progress__circle-clipper .mdc-circular-progress__indeterminate-circle-graphic{width:200%}.mdc-circular-progress__circle-right .mdc-circular-progress__indeterminate-circle-graphic{left:-100%}.mdc-circular-progress--indeterminate .mdc-circular-progress__circle-left .mdc-circular-progress__indeterminate-circle-graphic{animation:mdc-circular-progress-left-spin calc(1333ms*var(--mat-progress-spinner-animation-multiplier)) cubic-bezier(0.4, 0, 0.2, 1) infinite both}.mdc-circular-progress--indeterminate .mdc-circular-progress__circle-right .mdc-circular-progress__indeterminate-circle-graphic{animation:mdc-circular-progress-right-spin calc(1333ms*var(--mat-progress-spinner-animation-multiplier)) cubic-bezier(0.4, 0, 0.2, 1) infinite both}.mdc-circular-progress__circle-clipper{display:inline-flex;position:relative;width:50%;height:100%;overflow:hidden}.mdc-circular-progress--indeterminate .mdc-circular-progress__spinner-layer{animation:mdc-circular-progress-spinner-layer-rotate calc(5332ms*var(--mat-progress-spinner-animation-multiplier)) cubic-bezier(0.4, 0, 0.2, 1) infinite both}@keyframes mdc-circular-progress-container-rotate{to{transform:rotate(360deg)}}@keyframes mdc-circular-progress-spinner-layer-rotate{12.5%{transform:rotate(135deg)}25%{transform:rotate(270deg)}37.5%{transform:rotate(405deg)}50%{transform:rotate(540deg)}62.5%{transform:rotate(675deg)}75%{transform:rotate(810deg)}87.5%{transform:rotate(945deg)}100%{transform:rotate(1080deg)}}@keyframes mdc-circular-progress-left-spin{from{transform:rotate(265deg)}50%{transform:rotate(130deg)}to{transform:rotate(265deg)}}@keyframes mdc-circular-progress-right-spin{from{transform:rotate(-265deg)}50%{transform:rotate(-130deg)}to{transform:rotate(-265deg)}} +`],encapsulation:2,changeDetection:0})}return t})();var gi=(()=>{class t{static \u0275fac=function(i){return new(i||t)};static \u0275mod=ee({type:t});static \u0275inj=J({imports:[De]})}return t})();function e_e(t,n){if(t&1){let e=q();m(0,"div",1)(1,"button",2),S("click",function(){T(e);let r=x();return I(r.action())}),g(2),h()()}if(t&2){let e=x();f(2),pe(" ",e.data.action," ")}}var t_e=["label"];function i_e(t,n){}var n_e=Math.pow(2,31)-1,x_=class{_overlayRef;instance;containerInstance;_afterDismissed=new z;_afterOpened=new z;_onAction=new z;_durationTimeoutId;_dismissedByAction=!1;constructor(n,e){this._overlayRef=e,this.containerInstance=n,n._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(n){this._durationTimeoutId=setTimeout(()=>this.dismiss(),Math.min(n,n_e))}_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}},u6=new O("MatSnackBarData"),up=class{politeness="polite";announcementMessage="";viewContainerRef;duration=0;panelClass;direction;data=null;horizontalPosition="center";verticalPosition="bottom"},r_e=(()=>{class t{static \u0275fac=function(i){return new(i||t)};static \u0275dir=P({type:t,selectors:[["","matSnackBarLabel",""]],hostAttrs:[1,"mat-mdc-snack-bar-label","mdc-snackbar__label"]})}return t})(),o_e=(()=>{class t{static \u0275fac=function(i){return new(i||t)};static \u0275dir=P({type:t,selectors:[["","matSnackBarActions",""]],hostAttrs:[1,"mat-mdc-snack-bar-actions","mdc-snackbar__actions"]})}return t})(),a_e=(()=>{class t{static \u0275fac=function(i){return new(i||t)};static \u0275dir=P({type:t,selectors:[["","matSnackBarAction",""]],hostAttrs:[1,"mat-mdc-snack-bar-action","mdc-snackbar__action"]})}return t})(),m6=(()=>{class t{snackBarRef=u(x_);data=u(u6);constructor(){}action(){this.snackBarRef.dismissWithAction()}get hasAction(){return!!this.data.action}static \u0275fac=function(i){return new(i||t)};static \u0275cmp=E({type:t,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(i,r){i&1&&(m(0,"div",0),g(1),h(),V(2,e_e,3,1,"div",1)),i&2&&(f(),pe(" ",r.data.message,` +`),f(),B(r.hasAction?2:-1))},dependencies:[Mt,r_e,o_e,a_e],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 t})(),zI="_mat-snack-bar-enter",UI="_mat-snack-bar-exit",s_e=(()=>{class t extends mc{_ngZone=u(ae);_elementRef=u(Y);_changeDetectorRef=u(ye);_platform=u(qe);_animationsDisabled=Ye();snackBarConfig=u(up);_document=u(_e);_trackedModals=new Set;_enterFallback;_exitFallback;_injector=u(de);_announceDelay=150;_announceTimeoutId;_destroyed=!1;_portalOutlet;_onAnnounce=new z;_onExit=new z;_onEnter=new z;_animationState="void";_live;_label;_role;_liveElementId=u(Ze).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 i=this._portalOutlet.attachComponentPortal(e);return this._afterPortalAttached(),i}attachTemplatePortal(e){this._assertNotAttached();let i=this._portalOutlet.attachTemplatePortal(e);return this._afterPortalAttached(),i}attachDomPortal=e=>{this._assertNotAttached();let i=this._portalOutlet.attachDomPortal(e);return this._afterPortalAttached(),i};onAnimationEnd(e){e===UI?this._completeExit():e===zI&&(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?gt(()=>{this._ngZone.run(()=>queueMicrotask(()=>this.onAnimationEnd(zI)))},{injector:this._injector}):(clearTimeout(this._enterFallback),this._enterFallback=setTimeout(()=>{this._elementRef.nativeElement.classList.add("mat-snack-bar-fallback-visible"),this.onAnimationEnd(zI)},200)))}exit(){return this._destroyed?Q(void 0):(this._ngZone.run(()=>{this._animationState="hidden",this._changeDetectorRef.markForCheck(),this._elementRef.nativeElement.setAttribute("mat-exit",""),clearTimeout(this._announceTimeoutId),this._animationsDisabled?gt(()=>{this._ngZone.run(()=>queueMicrotask(()=>this.onAnimationEnd(UI)))},{injector:this._injector}):(clearTimeout(this._exitFallback),this._exitFallback=setTimeout(()=>this.onAnimationEnd(UI),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,i=this.snackBarConfig.panelClass;i&&(Array.isArray(i)?i.forEach(a=>e.classList.add(a)):e.classList.add(i)),this._exposeToModals();let r=this._label.nativeElement,o="mdc-snackbar__label";r.classList.toggle(o,!r.querySelector(`.${o}`))}_exposeToModals(){let e=this._liveElementId,i=this._document.querySelectorAll('body > .cdk-overlay-container [aria-modal="true"]');for(let r=0;r{let i=e.getAttribute("aria-owns");if(i){let r=i.replace(this._liveElementId,"").trim();r.length>0?e.setAttribute("aria-owns",r):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,i=e.querySelector("[aria-hidden]"),r=e.querySelector("[aria-live]");if(i&&r){let o=null;this._platform.isBrowser&&document.activeElement instanceof HTMLElement&&i.contains(document.activeElement)&&(o=document.activeElement),i.removeAttribute("aria-hidden"),r.appendChild(i),o?.focus(),this._onAnnounce.next(),this._onAnnounce.complete()}},this._announceDelay)})}static \u0275fac=function(i){return new(i||t)};static \u0275cmp=E({type:t,selectors:[["mat-snack-bar-container"]],viewQuery:function(i,r){if(i&1&&(ie(wr,7),ie(t_e,7)),i&2){let o;j(o=H())&&(r._portalOutlet=o.first),j(o=H())&&(r._label=o.first)}},hostAttrs:[1,"mdc-snackbar","mat-mdc-snack-bar-container"],hostVars:6,hostBindings:function(i,r){i&1&&S("animationend",function(a){return r.onAnimationEnd(a.animationName)})("animationcancel",function(a){return r.onAnimationEnd(a.animationName)}),i&2&&G("mat-snack-bar-container-enter",r._animationState==="visible")("mat-snack-bar-container-exit",r._animationState==="hidden")("mat-snack-bar-container-animations-enabled",!r._animationsDisabled)},features:[le],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(i,r){i&1&&(m(0,"div",1)(1,"div",2,0)(3,"div",3),A(4,i_e,0,0,"ng-template",4),h(),M(5,"div"),h()()),i&2&&(f(5),X("aria-live",r._live)("role",r._role)("id",r._liveElementId))},dependencies:[wr],styles:[`@keyframes _mat-snack-bar-enter{from{transform:scale(0.8);opacity:0}to{transform:scale(1);opacity:1}}@keyframes _mat-snack-bar-exit{from{opacity:1}to{opacity:0}}.mat-mdc-snack-bar-container{display:flex;align-items:center;justify-content:center;box-sizing:border-box;-webkit-tap-highlight-color:rgba(0,0,0,0);margin:8px}.mat-mdc-snack-bar-handset .mat-mdc-snack-bar-container{width:100vw}.mat-snack-bar-container-animations-enabled{opacity:0}.mat-snack-bar-container-animations-enabled.mat-snack-bar-fallback-visible{opacity:1}.mat-snack-bar-container-animations-enabled.mat-snack-bar-container-enter{animation:_mat-snack-bar-enter 150ms cubic-bezier(0, 0, 0.2, 1) forwards}.mat-snack-bar-container-animations-enabled.mat-snack-bar-container-exit{animation:_mat-snack-bar-exit 75ms cubic-bezier(0.4, 0, 1, 1) forwards}.mat-mdc-snackbar-surface{box-shadow:0px 3px 5px -1px rgba(0, 0, 0, 0.2), 0px 6px 10px 0px rgba(0, 0, 0, 0.14), 0px 1px 18px 0px rgba(0, 0, 0, 0.12);display:flex;align-items:center;justify-content:flex-start;box-sizing:border-box;padding-left:0;padding-right:8px}[dir=rtl] .mat-mdc-snackbar-surface{padding-right:0;padding-left:8px}.mat-mdc-snack-bar-container .mat-mdc-snackbar-surface{min-width:344px;max-width:672px}.mat-mdc-snack-bar-handset .mat-mdc-snackbar-surface{width:100%;min-width:0}@media(forced-colors: active){.mat-mdc-snackbar-surface{outline:solid 1px}}.mat-mdc-snack-bar-container .mat-mdc-snackbar-surface{color:var(--mat-snack-bar-supporting-text-color, var(--mat-sys-inverse-on-surface));border-radius:var(--mat-snack-bar-container-shape, var(--mat-sys-corner-extra-small));background-color:var(--mat-snack-bar-container-color, var(--mat-sys-inverse-surface))}.mdc-snackbar__label{width:100%;flex-grow:1;box-sizing:border-box;margin:0;padding:14px 8px 14px 16px}[dir=rtl] .mdc-snackbar__label{padding-left:8px;padding-right:16px}.mat-mdc-snack-bar-container .mdc-snackbar__label{font-family:var(--mat-snack-bar-supporting-text-font, var(--mat-sys-body-medium-font));font-size:var(--mat-snack-bar-supporting-text-size, var(--mat-sys-body-medium-size));font-weight:var(--mat-snack-bar-supporting-text-weight, var(--mat-sys-body-medium-weight));line-height:var(--mat-snack-bar-supporting-text-line-height, var(--mat-sys-body-medium-line-height))}.mat-mdc-snack-bar-actions{display:flex;flex-shrink:0;align-items:center;box-sizing:border-box}.mat-mdc-snack-bar-handset,.mat-mdc-snack-bar-container,.mat-mdc-snack-bar-label{flex:1 1 auto}.mat-mdc-snack-bar-container .mat-mdc-button.mat-mdc-snack-bar-action:not(:disabled){--mat-button-text-state-layer-color: currentColor;--mat-button-text-ripple-color: currentColor}.mat-mdc-snack-bar-container .mat-mdc-button.mat-mdc-snack-bar-action:not(:disabled).mat-unthemed{color:var(--mat-snack-bar-button-color, var(--mat-sys-inverse-primary))}.mat-mdc-snack-bar-container .mat-mdc-button.mat-mdc-snack-bar-action:not(:disabled) .mat-ripple-element{opacity:.1} +`],encapsulation:2})}return t})();function l_e(){return new up}var c_e=new O("mat-snack-bar-default-options",{providedIn:"root",factory:l_e}),ui=(()=>{class t{_live=u(Zf);_injector=u(de);_breakpointObserver=u(ll);_parentSnackBar=u(t,{optional:!0,skipSelf:!0});_defaultConfig=u(c_e);_animationsDisabled=Ye();_snackBarRefAtThisLevel=null;simpleSnackBarComponent=m6;snackBarContainerComponent=s_e;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,i){return this._attach(e,i)}openFromTemplate(e,i){return this._attach(e,i)}open(e,i="",r){let o=k(k({},this._defaultConfig),r);return o.data={message:e,action:i},o.announcementMessage===e&&(o.announcementMessage=void 0),this.openFromComponent(this.simpleSnackBarComponent,o)}dismiss(){this._openedSnackBarRef&&this._openedSnackBarRef.dismiss()}ngOnDestroy(){this._snackBarRefAtThisLevel&&this._snackBarRefAtThisLevel.dismiss()}_attachSnackBarContainer(e,i){let r=i&&i.viewContainerRef&&i.viewContainerRef.injector,o=de.create({parent:r||this._injector,providers:[{provide:up,useValue:i}]}),a=new to(this.snackBarContainerComponent,i.viewContainerRef,o),s=e.attach(a);return s.instance.snackBarConfig=i,s.instance}_attach(e,i){let r=k(k(k({},new up),this._defaultConfig),i),o=this._createOverlay(r),a=this._attachSnackBarContainer(o,r),s=new x_(a,o);if(e instanceof te){let l=new Dn(e,null,{$implicit:r.data,snackBarRef:s});s.instance=a.attachTemplatePortal(l)}else{let l=this._createInjector(r,s),c=new to(e,void 0,l),d=a.attachComponentPortal(c);s.instance=d.instance}return this._breakpointObserver.observe(Vv.HandsetPortrait).pipe(we(o.detachments())).subscribe(l=>{o.overlayElement.classList.toggle(this.handsetCssClass,l.matches)}),r.announcementMessage&&a._onAnnounce.subscribe(()=>{this._live.announce(r.announcementMessage,r.politeness)}),this._animateSnackBar(s,r),this._openedSnackBarRef=s,this._openedSnackBarRef}_animateSnackBar(e,i){e.afterDismissed().subscribe(()=>{this._openedSnackBarRef==e&&(this._openedSnackBarRef=null),i.announcementMessage&&this._live.clear()}),i.duration&&i.duration>0&&e.afterOpened().subscribe(()=>e._dismissAfter(i.duration)),this._openedSnackBarRef?(this._openedSnackBarRef.afterDismissed().subscribe(()=>{e.containerInstance.enter()}),this._openedSnackBarRef.dismiss()):e.containerInstance.enter()}_createOverlay(e){let i=new Hr;i.direction=e.direction;let r=Es(this._injector),o=e.direction==="rtl",a=e.horizontalPosition==="left"||e.horizontalPosition==="start"&&!o||e.horizontalPosition==="end"&&o,s=!a&&e.horizontalPosition!=="center";return a?r.left("0"):s?r.right("0"):r.centerHorizontally(),e.verticalPosition==="top"?r.top("0"):r.bottom("0"),i.positionStrategy=r,i.disableAnimations=this._animationsDisabled,zr(this._injector,i)}_createInjector(e,i){let r=e&&e.viewContainerRef&&e.viewContainerRef.injector;return de.create({parent:r||this._injector,providers:[{provide:x_,useValue:i},{provide:u6,useValue:e.data}]})}static \u0275fac=function(i){return new(i||t)};static \u0275prov=R({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();var _i=(()=>{class t{static \u0275fac=function(i){return new(i||t)};static \u0275mod=ee({type:t});static \u0275inj=J({providers:[ui],imports:[nr,ko,Be,De,m6,De]})}return t})();var Wn=(()=>{let n=class n{constructor(){this.authService=u(Ot),this.templateRef=u(te),this.viewContainer=u(ot)}set appHasRole(i){this.updateView(i)}ngOnInit(){this.subscription=this.authService.isAuthenticated$.subscribe(()=>{let i=this.roles;i&&this.updateView(i)})}ngOnDestroy(){this.subscription?.unsubscribe()}updateView(i){this.roles=i,this.viewContainer.clear(),this.checkRole(i)&&this.viewContainer.createEmbeddedView(this.templateRef)}checkRole(i){return this.authService.isAuthenticated()?typeof i=="string"?this.authService.hasRole(i):Array.isArray(i)?this.authService.hasAnyRole(i):!1:!1}};n.\u0275fac=function(r){return new(r||n)},n.\u0275dir=P({type:n,selectors:[["","appHasRole",""]],inputs:{appHasRole:"appHasRole"}});let t=n;return t})();var Uc=(()=>{let n=class n{constructor(){this.http=u(xr),this.apiUrl=Qi.apiUrl}chat(i,r){return this.http.post(`${this.apiUrl}/ai/chat`,{message:i,systemPrompt:r})}hrInsight(i){return this.http.post(`${this.apiUrl}/ai/hr-insight`,{question:i})}nlEmployeeSearch(i){return this.http.post(`${this.apiUrl}/ai/nl-employee-search`,{query:i})}semanticPositionSearch(i,r=10){return this.http.post(`${this.apiUrl}/positions/semantic-search`,{queryText:i,topK:r})}};n.\u0275fac=function(r){return new(r||n)},n.\u0275prov=R({token:n,factory:n.\u0275fac,providedIn:"root"});let t=n;return t})();var ma=class{constructor(){this.http=u(xr),this.apiUrl=Qi.apiUrl}getAll(n){let e=this.buildHttpParams(n);return this.http.get(`${this.apiUrl}/${this.endpoint}`,{params:e}).pipe(se(i=>i.value))}getAllPaged(n){let e=this.buildHttpParams(n);return this.http.get(`${this.apiUrl}/${this.endpoint}`,{params:e})}getById(n){return this.http.get(`${this.apiUrl}/${this.endpoint}/${n}`).pipe(se(e=>e.value))}create(n){return this.http.post(`${this.apiUrl}/${this.endpoint}`,n).pipe(se(e=>e&&"value"in e&&typeof e.value=="string"?{id:e.value}:e))}update(n,e){return this.http.put(`${this.apiUrl}/${this.endpoint}/${n}`,e)}delete(n){return this.http.delete(`${this.apiUrl}/${this.endpoint}/${n}`)}buildHttpParams(n){let e=new Zn;return n&&Object.keys(n).forEach(i=>{let r=n[i];r!=null&&(e=e.set(i,r.toString()))}),e}};var h6=(()=>{let n=class n extends ma{constructor(){super(...arguments),this.endpoint="Dashboard"}getDashboardMetrics(){return this.http.get(`${this.apiUrl}/${this.endpoint}/Metrics`).pipe(se(i=>{if(i.isSuccess&&i.value)return i.value;throw new Error(i.message||"Failed to load dashboard metrics")}))}};n.\u0275fac=(()=>{let i;return function(o){return(i||(i=ge(n)))(o||n)}})(),n.\u0275prov=R({token:n,factory:n.\u0275fac,providedIn:"root"});let t=n;return t})();var Bs=(()=>{let n=class n extends ma{constructor(){super(...arguments),this.endpoint="Departments"}createDepartment(i){return this.create(i)}updateDepartment(i){return this.update(i.id,i)}};n.\u0275fac=(()=>{let i;return function(o){return(i||(i=ge(n)))(o||n)}})(),n.\u0275prov=R({token:n,factory:n.\u0275fac,providedIn:"root"});let t=n;return t})();var mp=(()=>{let n=class n extends ma{constructor(){super(...arguments),this.endpoint="Employees"}createEmployee(i){return this.create(i)}updateEmployee(i){return this.update(i.id,i)}};n.\u0275fac=(()=>{let i;return function(o){return(i||(i=ge(n)))(o||n)}})(),n.\u0275prov=R({token:n,factory:n.\u0275fac,providedIn:"root"});let t=n;return t})();var $c=(()=>{let n=class n extends ma{constructor(){super(...arguments),this.endpoint="Positions"}createPosition(i){return this.create(i)}updatePosition(i){return this.update(i.id,i)}getAllPaged(i){let r=this.buildHttpParams(i);return this.http.get(`${this.apiUrl}/${this.endpoint}`,{params:r})}addMockPositions(i){return this.http.post(`${this.apiUrl}/${this.endpoint}/AddMock`,i)}};n.\u0275fac=(()=>{let i;return function(o){return(i||(i=ge(n)))(o||n)}})(),n.\u0275prov=R({token:n,factory:n.\u0275fac,providedIn:"root"});let t=n;return t})();var Wc=(()=>{let n=class n extends ma{constructor(){super(...arguments),this.endpoint="SalaryRanges"}createSalaryRange(i){return this.create(i)}updateSalaryRange(i){return this.update(i.id,i)}};n.\u0275fac=(()=>{let i;return function(o){return(i||(i=ge(n)))(o||n)}})(),n.\u0275prov=R({token:n,factory:n.\u0275fac,providedIn:"root"});let t=n;return t})();var p6=(()=>{let n=class n{decodeToken(i){if(!i)return null;try{let r=i.split(".");if(r.length!==3)return console.warn("Invalid JWT token format"),null;let o=this.decodeBase64Url(r[0]),a=this.decodeBase64Url(r[1]),s=r[2],l=JSON.parse(a),c=l.iat?new Date(l.iat*1e3):void 0,d=l.exp?new Date(l.exp*1e3):void 0,p=new Date,_=d?d24){let s=Math.floor(o/24);return`Expires in ${s} day${s>1?"s":""}`}else return o>0?`Expires in ${o}h ${a}m`:a>0?`Expires in ${a}m`:"Expires soon"}};n.\u0275fac=function(r){return new(r||n)},n.\u0275prov=R({token:n,factory:n.\u0275fac,providedIn:"root"});let t=n;return t})();var d_e=()=>["HRAdmin","Manager"],f6=()=>["HRAdmin"];function u_e(t,n){t&1&&(m(0,"div",9),M(1,"mat-spinner",10),m(2,"span"),g(3,"Analyzing workforce data\u2026"),h()())}function m_e(t,n){if(t&1&&(m(0,"p",11),g(1),h()),t&2){let e=x(2);f(),pe(" ",e.aiInsight," ")}}function h_e(t,n){if(t&1&&(m(0,"p",12)(1,"mat-icon"),g(2,"warning"),h(),g(3),h()),t&2){let e=x(2);f(3),pe(" ",e.aiInsightError," ")}}function p_e(t,n){if(t&1&&(m(0,"mat-card",4)(1,"mat-card-header")(2,"mat-icon",5),g(3,"smart_toy"),h(),m(4,"mat-card-title"),g(5,"AI Workforce Insights"),h(),m(6,"mat-card-subtitle"),g(7,"Generated from live dashboard metrics"),h()(),m(8,"mat-card-content"),A(9,u_e,4,0,"div",6)(10,m_e,2,1,"p",7)(11,h_e,4,1,"p",8),h()()),t&2){let e=x();f(9),v("ngIf",e.aiInsightLoading),f(),v("ngIf",!e.aiInsightLoading&&e.aiInsight),f(),v("ngIf",!e.aiInsightLoading&&e.aiInsightError)}}function f_e(t,n){t&1&&(m(0,"div",13),M(1,"mat-spinner"),h())}function g_e(t,n){if(t&1&&(m(0,"div",31),M(1,"canvas",32),h()),t&2){let e=x(2);f(),v("data",e.departmentChartData)("options",e.departmentChartOptions)}}function __e(t,n){t&1&&(m(0,"div",33)(1,"mat-icon"),g(2,"pie_chart"),h(),m(3,"p"),g(4,"No department data available"),h()())}function b_e(t,n){if(t&1&&(m(0,"div",31),M(1,"canvas",34),h()),t&2){let e=x(2);f(),v("data",e.positionChartData)("options",e.positionChartOptions)}}function v_e(t,n){t&1&&(m(0,"div",33)(1,"mat-icon"),g(2,"bar_chart"),h(),m(3,"p"),g(4,"No position data available"),h()())}function y_e(t,n){if(t&1&&(m(0,"div",31),M(1,"canvas",35),h()),t&2){let e=x(2);f(),v("data",e.genderChartData)("options",e.genderChartOptions)}}function x_e(t,n){t&1&&(m(0,"div",33)(1,"mat-icon"),g(2,"donut_large"),h(),m(3,"p"),g(4,"No gender data available"),h()())}function C_e(t,n){if(t&1&&(m(0,"div",31),M(1,"canvas",34),h()),t&2){let e=x(2);f(),v("data",e.salaryChartData)("options",e.salaryChartOptions)}}function w_e(t,n){t&1&&(m(0,"div",33)(1,"mat-icon"),g(2,"bar_chart"),h(),m(3,"p"),g(4,"No salary range data available"),h()())}function D_e(t,n){if(t&1){let e=q();m(0,"mat-list-item",37),S("click",function(){let r=T(e).$implicit,o=x(3);return I(o.navigateToEmployee(r.id))}),m(1,"mat-icon",38),g(2,"person"),h(),m(3,"div",39),g(4),h(),m(5,"div",40),g(6),h(),m(7,"div",41),g(8),ue(9,"date"),h()()}if(t&2){let e=n.$implicit;f(4),N(e.fullName),f(2),Ld("",e.positionTitle," \u2022 ",e.departmentName),f(2),N(Ei(9,4,e.createdAt,"MMM d, y"))}}function E_e(t,n){if(t&1&&(m(0,"mat-list"),A(1,D_e,10,7,"mat-list-item",36),h()),t&2){let e=x(2);f(),v("ngForOf",e.metrics.recentEmployees)}}function M_e(t,n){t&1&&(m(0,"div",33)(1,"mat-icon"),g(2,"people_outline"),h(),m(3,"p"),g(4,"No recent employees"),h()())}function S_e(t,n){if(t&1){let e=q();m(0,"button",46),S("click",function(){T(e);let r=x(3);return I(r.navigateToAddDepartment())}),m(1,"mat-icon"),g(2,"add_business"),h(),g(3," Add Department "),h()}}function k_e(t,n){if(t&1){let e=q();m(0,"button",46),S("click",function(){T(e);let r=x(3);return I(r.navigateToAddPosition())}),m(1,"mat-icon"),g(2,"work_outline"),h(),g(3," Add Position "),h()}}function T_e(t,n){if(t&1){let e=q();m(0,"div",42)(1,"mat-card")(2,"mat-card-header")(3,"mat-card-title"),g(4,"Quick Actions"),h()(),m(5,"mat-card-content")(6,"div",43)(7,"button",44),S("click",function(){T(e);let r=x(2);return I(r.navigateToAddEmployee())}),m(8,"mat-icon"),g(9,"person_add"),h(),g(10," Add Employee "),h(),A(11,S_e,4,0,"button",45)(12,k_e,4,0,"button",45),h()()()()}t&2&&(f(11),v("appHasRole",rt(2,f6)),f(),v("appHasRole",rt(3,f6)))}function I_e(t,n){if(t&1){let e=q();m(0,"div",14)(1,"div",15)(2,"mat-card",16)(3,"mat-card-content")(4,"div",17)(5,"mat-icon"),g(6,"people"),h()(),m(7,"div",18),g(8),h(),m(9,"div",19),g(10,"Total Employees"),h()()(),m(11,"mat-card",16)(12,"mat-card-content")(13,"div",17)(14,"mat-icon"),g(15,"business"),h()(),m(16,"div",18),g(17),h(),m(18,"div",19),g(19,"Departments"),h()()(),m(20,"mat-card",16)(21,"mat-card-content")(22,"div",17)(23,"mat-icon"),g(24,"work"),h()(),m(25,"div",18),g(26),h(),m(27,"div",19),g(28,"Positions"),h()()(),m(29,"mat-card",16)(30,"mat-card-content")(31,"div",17)(32,"mat-icon"),g(33,"attach_money"),h()(),m(34,"div",18),g(35),h(),m(36,"div",19),g(37,"Salary Ranges"),h()()()(),m(38,"div",20)(39,"mat-card",21)(40,"mat-card-content")(41,"div",22)(42,"mat-icon"),g(43,"person_add"),h()(),m(44,"div",18),g(45),h(),m(46,"div",19),g(47,"New Hires This Month"),h()()(),m(48,"mat-card",21)(49,"mat-card-content")(50,"div",22)(51,"mat-icon"),g(52,"payments"),h()(),m(53,"div",18),g(54),ue(55,"currency"),h(),m(56,"div",19),g(57,"Average Salary"),h()()()(),m(58,"div",23)(59,"mat-card",24)(60,"mat-card-header")(61,"mat-card-title"),g(62,"Employees by Department"),h()(),m(63,"mat-card-content"),A(64,g_e,2,2,"div",25)(65,__e,5,0,"div",26),h()(),m(66,"mat-card",24)(67,"mat-card-header")(68,"mat-card-title"),g(69,"Top 10 Positions"),h()(),m(70,"mat-card-content"),A(71,b_e,2,2,"div",25)(72,v_e,5,0,"div",26),h()()(),m(73,"div",23)(74,"mat-card",24)(75,"mat-card-header")(76,"mat-card-title"),g(77,"Gender Distribution"),h()(),m(78,"mat-card-content"),A(79,y_e,2,2,"div",25)(80,x_e,5,0,"div",26),h()(),m(81,"mat-card",24)(82,"mat-card-header")(83,"mat-card-title"),g(84,"Salary Range Distribution"),h()(),m(85,"mat-card-content"),A(86,C_e,2,2,"div",25)(87,w_e,5,0,"div",26),h()()(),m(88,"div",27)(89,"mat-card")(90,"mat-card-header")(91,"mat-card-title"),g(92,"Recent Employees"),h(),m(93,"button",28),S("click",function(){T(e);let r=x();return I(r.navigateToEmployees())}),g(94," View All "),m(95,"mat-icon"),g(96,"arrow_forward"),h()()(),m(97,"mat-card-content"),A(98,E_e,2,1,"mat-list",29)(99,M_e,5,0,"div",26),h()()(),A(100,T_e,13,4,"div",30),h()}if(t&2){let e=x();f(8),N(e.metrics.totalEmployees),f(9),N(e.metrics.totalDepartments),f(9),N(e.metrics.totalPositions),f(9),N(e.metrics.totalSalaryRanges),f(10),N(e.metrics.newHiresThisMonth),f(9),N(Tm(55,17,e.metrics.averageSalary,"USD","symbol","1.0-0")),f(10),v("ngIf",e.departmentChartData),f(),v("ngIf",!e.departmentChartData),f(6),v("ngIf",e.positionChartData),f(),v("ngIf",!e.positionChartData),f(7),v("ngIf",e.genderChartData),f(),v("ngIf",!e.genderChartData),f(6),v("ngIf",e.salaryChartData),f(),v("ngIf",!e.salaryChartData),f(11),v("ngIf",e.metrics.recentEmployees&&e.metrics.recentEmployees.length>0),f(),v("ngIf",!e.metrics.recentEmployees||e.metrics.recentEmployees.length===0),f(),v("appHasRole",rt(22,d_e))}}function A_e(t,n){if(t&1){let e=q();m(0,"div",47)(1,"mat-card")(2,"mat-card-content")(3,"div",33)(4,"mat-icon"),g(5,"error_outline"),h(),m(6,"p"),g(7,"Unable to load dashboard data"),h(),m(8,"button",44),S("click",function(){T(e);let r=x();return I(r.loadDashboardMetrics())}),m(9,"mat-icon"),g(10,"refresh"),h(),g(11," Retry "),h()()()()()}}var g6=(()=>{let n=class n{constructor(){this.dashboardService=u(h6),this.aiService=u(Uc),this.router=u(Re),this.snackBar=u(ui),this.destroy$=new z,this.loading=!0,this.metrics=null,this.aiEnabled=Qi.aiEnabled,this.aiInsight="",this.aiInsightLoading=!1,this.aiInsightError="",this.departmentChartData=null,this.departmentChartOptions={responsive:!0,maintainAspectRatio:!1,plugins:{legend:{position:"bottom"},tooltip:{callbacks:{label:i=>{let r=i.label||"",o=i.parsed||0;return`${r}: ${o} employees`}}}}},this.positionChartData=null,this.positionChartOptions={responsive:!0,maintainAspectRatio:!1,indexAxis:"y",plugins:{legend:{display:!1},tooltip:{callbacks:{label:i=>`${i.parsed.x} employees`}}},scales:{x:{beginAtZero:!0,ticks:{precision:0}}}},this.genderChartData=null,this.genderChartOptions={responsive:!0,maintainAspectRatio:!1,plugins:{legend:{position:"bottom"},tooltip:{callbacks:{label:i=>{let r=i.label||"",o=i.parsed||0;return`${r}: ${o} employees`}}}}},this.salaryChartData=null,this.salaryChartOptions={responsive:!0,maintainAspectRatio:!1,plugins:{legend:{display:!1},tooltip:{callbacks:{label:i=>`${i.parsed.y} employees`}}},scales:{y:{beginAtZero:!0,ticks:{precision:0}}}}}ngOnInit(){this.loadDashboardMetrics()}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete()}loadDashboardMetrics(){this.loading=!0,this.dashboardService.getDashboardMetrics().subscribe({next:i=>{this.metrics=i,this.prepareCharts(i),this.loading=!1,this.aiEnabled&&this.loadAiInsight(i)},error:i=>{console.error("Error loading dashboard metrics:",i),this.showMessage("Error loading dashboard data"),this.loading=!1}})}loadAiInsight(i){this.aiInsightLoading=!0,this.aiInsightError="",this.aiInsight="";let r=`You are an HR analytics assistant. Analyze the following workforce metrics and provide a concise executive summary (3-4 sentences) highlighting key observations, any notable patterns, and one actionable recommendation. Be specific \u2014 reference the actual numbers. + +Workforce Metrics: +${JSON.stringify(i,null,2)}`;this.aiService.chat("Provide a brief executive summary of the current workforce.",r).pipe(we(this.destroy$)).subscribe({next:a=>{this.aiInsight=a.reply,this.aiInsightLoading=!1},error:a=>{this.aiInsightError=a?.error?.detail??"AI insights unavailable. Is the API running with AiEnabled: true?",this.aiInsightLoading=!1}})}prepareCharts(i){this.prepareDepartmentChart(i.employeesByDepartment),this.preparePositionChart(i.employeesByPosition),this.prepareGenderChart(i.genderDistribution),this.prepareSalaryChart(i.employeesBySalaryRange)}prepareDepartmentChart(i){if(!i||i.length===0){this.departmentChartData=null;return}this.departmentChartData={labels:i.map(r=>r.departmentName),datasets:[{data:i.map(r=>r.employeeCount),backgroundColor:["#FF6384","#36A2EB","#FFCE56","#4BC0C0","#9966FF","#FF9F40","#FF6384","#C9CBCF"]}]}}preparePositionChart(i){if(!i||i.length===0){this.positionChartData=null;return}this.positionChartData={labels:i.map(r=>r.positionTitle),datasets:[{label:"Employees",data:i.map(r=>r.employeeCount),backgroundColor:"#36A2EB"}]}}prepareGenderChart(i){if(!i){this.genderChartData=null;return}this.genderChartData={labels:["Male","Female"],datasets:[{data:[i.male,i.female],backgroundColor:["#36A2EB","#FF6384"]}]}}prepareSalaryChart(i){if(!i||i.length===0){this.salaryChartData=null;return}this.salaryChartData={labels:i.map(r=>r.rangeName),datasets:[{label:"Employees",data:i.map(r=>r.employeeCount),backgroundColor:"#4BC0C0"}]}}navigateToAddEmployee(){this.router.navigate(["/employees/create"])}navigateToAddDepartment(){this.router.navigate(["/departments/create"])}navigateToAddPosition(){this.router.navigate(["/positions/create"])}navigateToEmployees(){this.router.navigate(["/employees"])}navigateToEmployee(i){this.router.navigate(["/employees",i])}showMessage(i){this.snackBar.open(i,"Close",{duration:3e3,horizontalPosition:"end",verticalPosition:"top"})}};n.\u0275fac=function(r){return new(r||n)},n.\u0275cmp=E({type:n,selectors:[["app-dashboard"]],decls:5,vars:4,consts:[["class","ai-insights-card",4,"ngIf"],["class","loading-spinner",4,"ngIf"],["class","dashboard-container",4,"ngIf"],["class","error-state",4,"ngIf"],[1,"ai-insights-card"],["mat-card-avatar",""],["class","ai-insight-loading",4,"ngIf"],["class","ai-insight-text",4,"ngIf"],["class","ai-insight-error",4,"ngIf"],[1,"ai-insight-loading"],["diameter","24"],[1,"ai-insight-text"],[1,"ai-insight-error"],[1,"loading-spinner"],[1,"dashboard-container"],[1,"metrics-row"],[1,"metric-card"],[1,"metric-icon"],[1,"metric-value"],[1,"metric-label"],[1,"secondary-metrics-row"],[1,"metric-card","secondary"],[1,"metric-icon","secondary"],[1,"charts-row"],[1,"chart-card"],["class","chart-container",4,"ngIf"],["class","no-data",4,"ngIf"],[1,"activity-row"],["mat-button","","color","primary",3,"click"],[4,"ngIf"],["class","actions-row",4,"appHasRole"],[1,"chart-container"],["baseChart","","type","pie",3,"data","options"],[1,"no-data"],["baseChart","","type","bar",3,"data","options"],["baseChart","","type","doughnut",3,"data","options"],["class","clickable-item",3,"click",4,"ngFor","ngForOf"],[1,"clickable-item",3,"click"],["matListItemIcon",""],["matListItemTitle",""],["matListItemLine",""],["matListItemMeta",""],[1,"actions-row"],[1,"action-buttons"],["mat-raised-button","","color","primary",3,"click"],["mat-raised-button","","color","accent",3,"click",4,"appHasRole"],["mat-raised-button","","color","accent",3,"click"],[1,"error-state"]],template:function(r,o){r&1&&(M(0,"page-header"),A(1,p_e,12,3,"mat-card",0)(2,f_e,2,0,"div",1)(3,I_e,101,23,"div",2)(4,A_e,12,0,"div",3)),r&2&&(f(),v("ngIf",o.aiEnabled),f(),v("ngIf",o.loading),f(),v("ngIf",!o.loading&&o.metrics),f(),v("ngIf",!o.loading&&!o.metrics))},dependencies:[ut,vr,Jt,Ut,Ht,Ky,zt,Gt,yh,Wt,tt,st,Be,Mt,gi,fi,ua,Ns,da,v_,Pu,Ml,RI,_i,ez,Qt,Wn,nl,Ta],styles:[".loading-spinner[_ngcontent-%COMP%]{display:flex;justify-content:center;align-items:center;min-height:400px}.dashboard-container[_ngcontent-%COMP%]{padding:16px;max-width:1400px;margin:0 auto}.metrics-row[_ngcontent-%COMP%], .secondary-metrics-row[_ngcontent-%COMP%]{display:grid;grid-template-columns:repeat(auto-fit,minmax(200px,1fr));gap:16px;margin-bottom:24px}@media (max-width: 768px){.metrics-row[_ngcontent-%COMP%], .secondary-metrics-row[_ngcontent-%COMP%]{grid-template-columns:repeat(2,1fr)}}@media (max-width: 480px){.metrics-row[_ngcontent-%COMP%], .secondary-metrics-row[_ngcontent-%COMP%]{grid-template-columns:1fr}}.secondary-metrics-row[_ngcontent-%COMP%]{grid-template-columns:repeat(auto-fit,minmax(250px,1fr))}.metric-card[_ngcontent-%COMP%] mat-card-content[_ngcontent-%COMP%]{padding:24px!important;text-align:center}.metric-card[_ngcontent-%COMP%] .metric-icon[_ngcontent-%COMP%]{display:inline-flex;align-items:center;justify-content:center;width:64px;height:64px;border-radius:50%;background-color:#3f51b51a;margin-bottom:16px}.metric-card[_ngcontent-%COMP%] .metric-icon[_ngcontent-%COMP%] mat-icon[_ngcontent-%COMP%]{font-size:32px;width:32px;height:32px;color:#3f51b5}.metric-card[_ngcontent-%COMP%] .metric-icon.secondary[_ngcontent-%COMP%]{background-color:#ff98001a}.metric-card[_ngcontent-%COMP%] .metric-icon.secondary[_ngcontent-%COMP%] mat-icon[_ngcontent-%COMP%]{color:#ff9800}.metric-card[_ngcontent-%COMP%] .metric-value[_ngcontent-%COMP%]{font-size:32px;font-weight:600;color:#000000de;margin-bottom:8px;line-height:1.2}.metric-card[_ngcontent-%COMP%] .metric-label[_ngcontent-%COMP%]{font-size:14px;color:#0009;text-transform:uppercase;letter-spacing:.5px}.metric-card[_ngcontent-%COMP%]:hover{box-shadow:0 4px 8px #00000026;transition:box-shadow .3s ease}.charts-row[_ngcontent-%COMP%]{display:grid;grid-template-columns:repeat(auto-fit,minmax(400px,1fr));gap:24px;margin-bottom:24px}@media (max-width: 900px){.charts-row[_ngcontent-%COMP%]{grid-template-columns:1fr}}.chart-card[_ngcontent-%COMP%] mat-card-header[_ngcontent-%COMP%]{padding:16px 16px 0;margin-bottom:16px}.chart-card[_ngcontent-%COMP%] mat-card-header[_ngcontent-%COMP%] mat-card-title[_ngcontent-%COMP%]{font-size:18px;font-weight:500;margin:0}.chart-card[_ngcontent-%COMP%] mat-card-content[_ngcontent-%COMP%]{padding:0 16px 16px}.chart-card[_ngcontent-%COMP%] .chart-container[_ngcontent-%COMP%]{position:relative;height:300px;width:100%}.chart-card[_ngcontent-%COMP%] .no-data[_ngcontent-%COMP%]{display:flex;flex-direction:column;align-items:center;justify-content:center;min-height:300px;color:#00000061}.chart-card[_ngcontent-%COMP%] .no-data[_ngcontent-%COMP%] mat-icon[_ngcontent-%COMP%]{font-size:48px;width:48px;height:48px;margin-bottom:12px}.chart-card[_ngcontent-%COMP%] .no-data[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{margin:0;font-size:14px}.activity-row[_ngcontent-%COMP%]{margin-bottom:24px}.activity-row[_ngcontent-%COMP%] mat-card-header[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:space-between;padding:16px;border-bottom:1px solid rgba(0,0,0,.12)}.activity-row[_ngcontent-%COMP%] mat-card-header[_ngcontent-%COMP%] mat-card-title[_ngcontent-%COMP%]{font-size:18px;font-weight:500;margin:0}.activity-row[_ngcontent-%COMP%] mat-card-header[_ngcontent-%COMP%] button[_ngcontent-%COMP%] mat-icon[_ngcontent-%COMP%]{margin-left:4px;font-size:18px;width:18px;height:18px}.activity-row[_ngcontent-%COMP%] mat-card-content[_ngcontent-%COMP%]{padding:0}.activity-row[_ngcontent-%COMP%] mat-list[_ngcontent-%COMP%]{padding:0}.activity-row[_ngcontent-%COMP%] mat-list-item[_ngcontent-%COMP%]{height:auto;padding:12px 16px;cursor:pointer;transition:background-color .2s ease}.activity-row[_ngcontent-%COMP%] mat-list-item[_ngcontent-%COMP%]:hover{background-color:#0000000a}.activity-row[_ngcontent-%COMP%] mat-list-item[_ngcontent-%COMP%]:not(:last-child){border-bottom:1px solid rgba(0,0,0,.08)}.activity-row[_ngcontent-%COMP%] mat-list-item[_ngcontent-%COMP%] mat-icon[_ngcontent-%COMP%]{color:#0000008a}.activity-row[_ngcontent-%COMP%] .clickable-item[_ngcontent-%COMP%]{cursor:pointer}.activity-row[_ngcontent-%COMP%] .no-data[_ngcontent-%COMP%]{display:flex;flex-direction:column;align-items:center;justify-content:center;padding:48px 16px;color:#00000061}.activity-row[_ngcontent-%COMP%] .no-data[_ngcontent-%COMP%] mat-icon[_ngcontent-%COMP%]{font-size:48px;width:48px;height:48px;margin-bottom:12px}.activity-row[_ngcontent-%COMP%] .no-data[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{margin:0;font-size:14px}.actions-row[_ngcontent-%COMP%]{margin-bottom:24px}.actions-row[_ngcontent-%COMP%] mat-card-header[_ngcontent-%COMP%]{padding:16px;border-bottom:1px solid rgba(0,0,0,.12)}.actions-row[_ngcontent-%COMP%] mat-card-header[_ngcontent-%COMP%] mat-card-title[_ngcontent-%COMP%]{font-size:18px;font-weight:500;margin:0}.actions-row[_ngcontent-%COMP%] mat-card-content[_ngcontent-%COMP%]{padding:24px 16px}.actions-row[_ngcontent-%COMP%] .action-buttons[_ngcontent-%COMP%]{display:flex;gap:12px;flex-wrap:wrap}.actions-row[_ngcontent-%COMP%] .action-buttons[_ngcontent-%COMP%] button[_ngcontent-%COMP%] mat-icon[_ngcontent-%COMP%]{margin-right:8px}@media (max-width: 600px){.actions-row[_ngcontent-%COMP%] .action-buttons[_ngcontent-%COMP%]{flex-direction:column}.actions-row[_ngcontent-%COMP%] .action-buttons[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{width:100%}}.error-state[_ngcontent-%COMP%]{padding:16px}.error-state[_ngcontent-%COMP%] mat-card[_ngcontent-%COMP%]{max-width:600px;margin:0 auto}.error-state[_ngcontent-%COMP%] .no-data[_ngcontent-%COMP%]{display:flex;flex-direction:column;align-items:center;justify-content:center;padding:48px 16px;color:#0000008a}.error-state[_ngcontent-%COMP%] .no-data[_ngcontent-%COMP%] mat-icon[_ngcontent-%COMP%]{font-size:64px;width:64px;height:64px;margin-bottom:16px;color:#f44336}.error-state[_ngcontent-%COMP%] .no-data[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{margin:0 0 24px;font-size:16px}.error-state[_ngcontent-%COMP%] .no-data[_ngcontent-%COMP%] button[_ngcontent-%COMP%] mat-icon[_ngcontent-%COMP%]{margin-right:8px;font-size:20px;width:20px;height:20px}.ai-insights-card[_ngcontent-%COMP%]{margin:16px 16px 0}.ai-insights-card[_ngcontent-%COMP%] mat-card-avatar[_ngcontent-%COMP%]{background:none;color:#1976d2}.ai-insights-card[_ngcontent-%COMP%] .ai-insight-loading[_ngcontent-%COMP%]{display:flex;align-items:center;gap:12px;color:#0000008a;font-size:14px;padding:8px 0}.ai-insights-card[_ngcontent-%COMP%] .ai-insight-text[_ngcontent-%COMP%]{font-size:15px;line-height:1.6;color:#000000de;margin:0;padding:4px 0}.ai-insights-card[_ngcontent-%COMP%] .ai-insight-error[_ngcontent-%COMP%]{display:flex;align-items:center;gap:8px;font-size:14px;color:#b00020}.ai-insights-card[_ngcontent-%COMP%] .ai-insight-error[_ngcontent-%COMP%] mat-icon[_ngcontent-%COMP%]{font-size:18px;height:18px;width:18px}@media (max-width: 1200px){.dashboard-container[_ngcontent-%COMP%]{padding:12px}.charts-row[_ngcontent-%COMP%]{gap:16px}}@media (max-width: 768px){.metric-card[_ngcontent-%COMP%] mat-card-content[_ngcontent-%COMP%]{padding:16px!important}.metric-card[_ngcontent-%COMP%] .metric-icon[_ngcontent-%COMP%]{width:56px;height:56px}.metric-card[_ngcontent-%COMP%] .metric-icon[_ngcontent-%COMP%] mat-icon[_ngcontent-%COMP%]{font-size:28px;width:28px;height:28px}.metric-card[_ngcontent-%COMP%] .metric-value[_ngcontent-%COMP%]{font-size:28px}.metric-card[_ngcontent-%COMP%] .metric-label[_ngcontent-%COMP%]{font-size:12px}.chart-card[_ngcontent-%COMP%] .chart-container[_ngcontent-%COMP%]{height:250px}}@media (max-width: 480px){.dashboard-container[_ngcontent-%COMP%]{padding:8px}.metrics-row[_ngcontent-%COMP%], .secondary-metrics-row[_ngcontent-%COMP%], .charts-row[_ngcontent-%COMP%]{gap:12px;margin-bottom:16px}.metric-card[_ngcontent-%COMP%] .metric-value[_ngcontent-%COMP%]{font-size:24px}.chart-card[_ngcontent-%COMP%] .chart-container[_ngcontent-%COMP%]{height:200px}}"]});let t=n;return t})();var _6=(()=>{let n=class n{};n.\u0275fac=function(r){return new(r||n)},n.\u0275cmp=E({type:n,selectors:[["app-error-403"]],decls:1,vars:0,consts:[["code","403","title","Permission denied!","message","You do not have permission to access the requested data."]],template:function(r,o){r&1&&M(0,"error-code",0)},dependencies:[sp],encapsulation:2});let t=n;return t})();var b6=(()=>{let n=class n{};n.\u0275fac=function(r){return new(r||n)},n.\u0275cmp=E({type:n,selectors:[["app-error-404"]],decls:1,vars:0,consts:[["code","404","title","Page not found!","message","This is not the web page you are looking for."]],template:function(r,o){r&1&&M(0,"error-code",0)},dependencies:[sp],encapsulation:2});let t=n;return t})();var v6=(()=>{let n=class n{};n.\u0275fac=function(r){return new(r||n)},n.\u0275cmp=E({type:n,selectors:[["app-error-500"]],decls:1,vars:0,consts:[["code","500","title","Server went wrong!","message","Just kidding, looks like we have an internal issue, please try refreshing."]],template:function(r,o){r&1&&M(0,"error-code",0)},dependencies:[sp],encapsulation:2});let t=n;return t})();var O_e=t=>({value:t});function R_e(t,n){t&1&&(m(0,"mat-error")(1,"span"),g(2),ue(3,"translate"),h()()),t&2&&(f(2),N(Oe(3,1,"validation.required")))}function P_e(t,n){t&1&&(m(0,"mat-error")(1,"span"),g(2),ue(3,"translate"),h()()),t&2&&(f(2),N(Oe(3,1,"validation.required")))}function F_e(t,n){t&1&&(m(0,"mat-error")(1,"span"),g(2),ue(3,"translate"),h()()),t&2&&(f(2),N(Oe(3,1,"validation.required")))}function N_e(t,n){t&1&&(m(0,"mat-error",8),ue(1,"translate"),m(2,"span"),g(3),h()()),t&2&&(v("translateParams",Nt(4,O_e,Oe(1,2,"login.password"))),f(3),N("validation.inconsistent"))}var y6=(()=>{let n=class n{constructor(){this.fb=u(ro),this.registerForm=this.fb.nonNullable.group({username:["",[Le.required]],password:["",[Le.required]],confirmPassword:["",[Le.required]]},{validators:[this.matchValidator("password","confirmPassword")]})}matchValidator(i,r){return o=>{let a=o.get(i),s=o.get(r);return s.errors&&!s.errors.mismatch?null:a.value!==s.value?(s.setErrors({mismatch:!0}),{mismatch:!0}):(s.setErrors(null),null)}}};n.\u0275fac=function(r){return new(r||n)},n.\u0275cmp=E({type:n,selectors:[["app-register"]],decls:43,vars:32,consts:[[1,"d-flex","w-full","h-full"],[1,"m-auto",2,"max-width","380px"],[1,"m-b-24"],[1,"form-field-full",3,"formGroup"],["appearance","outline"],["matInput","","formControlName","username","required",""],["matInput","","type","password","formControlName","password","required",""],["matInput","","type","password","formControlName","confirmPassword","required",""],["translate","",3,"translateParams"],["matButton","filled",1,"w-full","m-y-16"],["routerLink","/auth/login"]],template:function(r,o){if(r&1&&(m(0,"div",0)(1,"mat-card",1)(2,"mat-card-header",2)(3,"mat-card-title"),g(4),ue(5,"translate"),M(6,"br"),g(7),ue(8,"translate"),h()(),m(9,"mat-card-content")(10,"form",3)(11,"mat-form-field",4)(12,"mat-label"),g(13),ue(14,"translate"),h(),M(15,"input",5),V(16,R_e,4,3,"mat-error"),h(),m(17,"mat-form-field",4)(18,"mat-label"),g(19),ue(20,"translate"),h(),M(21,"input",6),V(22,P_e,4,3,"mat-error"),h(),m(23,"mat-form-field",4)(24,"mat-label"),g(25),ue(26,"translate"),h(),M(27,"input",7),V(28,F_e,4,3,"mat-error"),V(29,N_e,4,6,"mat-error",8),h(),m(30,"mat-checkbox"),g(31),ue(32,"translate"),h(),m(33,"button",9),g(34),ue(35,"translate"),h(),m(36,"div")(37,"span"),g(38),ue(39,"translate"),h(),m(40,"a",10),g(41),ue(42,"translate"),h()()()()()()),r&2){let a,s,l,c;f(4),pe(" ",Oe(5,14,"register_welcome"),", "),f(3),pe(" ",Oe(8,16,"register_title")," "),f(3),v("formGroup",o.registerForm),f(3),N(Oe(14,18,"username")),f(3),B((a=o.registerForm.get("username"))!=null&&a.invalid?16:-1),f(3),N(Oe(20,20,"password")),f(3),B((s=o.registerForm.get("password"))!=null&&s.invalid?22:-1),f(3),N(Oe(26,22,"confirm_password")),f(3),B((l=o.registerForm.get("confirmPassword"))!=null&&l.hasError("required")?28:-1),f(),B((c=o.registerForm.get("confirmPassword"))!=null&&c.hasError("mismatch")?29:-1),f(2),N(Oe(32,24,"read_and_agree")),f(3),N(Oe(35,26,"register")),f(4),pe("",Oe(39,28,"have_an_account"),"?"),f(3),N(Oe(42,30,"login"))}},dependencies:[Vn,pl,no,Hi,qt,io,Io,$n,Ji,Ur,Be,Mt,Ut,Ht,zt,Gt,Wt,Ex,ja,Pi,Ci,Gi,So,Mn,en,Sr,Y3,Mr],encapsulation:2});let t=n;return t})();var x6=(()=>{let n=class n{constructor(){this.authService=u(Ot),this.router=u(Re)}ngOnInit(){return gn(this,null,function*(){try{(yield this.authService.initAuth())?this.router.navigate(["/dashboard"]):(console.warn("Authentication callback failed, redirecting to dashboard as guest"),this.router.navigate(["/dashboard"]))}catch(i){console.error("Error processing callback:",i),this.router.navigate(["/dashboard"])}})}};n.\u0275fac=function(r){return new(r||n)},n.\u0275cmp=E({type:n,selectors:[["app-callback"]],decls:5,vars:0,consts:[[1,"callback-container"]],template:function(r,o){r&1&&(pt(0,"div",0)(1,"h2"),g(2,"Processing login..."),_t(),pt(3,"p"),g(4,"Please wait while we complete your authentication."),_t()())},styles:[".callback-container[_ngcontent-%COMP%]{display:flex;flex-direction:column;align-items:center;justify-content:center;height:100vh;text-align:center}"]});let t=n;return t})();var L_e=[[["caption"]],[["colgroup"],["col"]],"*"],V_e=["caption","colgroup, col","*"];function B_e(t,n){t&1&&ne(0,2)}function j_e(t,n){t&1&&(m(0,"thead",0),Ge(1,1),h(),m(2,"tbody",0),Ge(3,2)(4,3),h(),m(5,"tfoot",0),Ge(6,4),h())}function H_e(t,n){t&1&&Ge(0,1)(1,2)(2,3)(3,4)}var Ua=new O("CDK_TABLE");var gw=(()=>{class t{template=u(te);constructor(){}static \u0275fac=function(i){return new(i||t)};static \u0275dir=P({type:t,selectors:[["","cdkCellDef",""]]})}return t})(),_w=(()=>{class t{template=u(te);constructor(){}static \u0275fac=function(i){return new(i||t)};static \u0275dir=P({type:t,selectors:[["","cdkHeaderCellDef",""]]})}return t})(),D6=(()=>{class t{template=u(te);constructor(){}static \u0275fac=function(i){return new(i||t)};static \u0275dir=P({type:t,selectors:[["","cdkFooterCellDef",""]]})}return t})(),hp=(()=>{class t{_table=u(Ua,{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(i){return new(i||t)};static \u0275dir=P({type:t,selectors:[["","cdkColumnDef",""]],contentQueries:function(i,r,o){if(i&1&&(xe(o,gw,5),xe(o,_w,5),xe(o,D6,5)),i&2){let a;j(a=H())&&(r.cell=a.first),j(a=H())&&(r.headerCell=a.first),j(a=H())&&(r.footerCell=a.first)}},inputs:{name:[0,"cdkColumnDef","name"],sticky:[2,"sticky","sticky",L],stickyEnd:[2,"stickyEnd","stickyEnd",L]},features:[Ce([{provide:"MAT_SORT_HEADER_COLUMN_DEF",useExisting:t}])]})}return t})(),pw=class{constructor(n,e){e.nativeElement.classList.add(...n._columnCssClassName)}},E6=(()=>{class t extends pw{constructor(){super(u(hp),u(Y))}static \u0275fac=function(i){return new(i||t)};static \u0275dir=P({type:t,selectors:[["cdk-header-cell"],["th","cdk-header-cell",""]],hostAttrs:["role","columnheader",1,"cdk-header-cell"],features:[le]})}return t})();var M6=(()=>{class t extends pw{constructor(){let e=u(hp),i=u(Y);super(e,i);let r=e._table?._getCellRole();r&&i.nativeElement.setAttribute("role",r)}static \u0275fac=function(i){return new(i||t)};static \u0275dir=P({type:t,selectors:[["cdk-cell"],["td","cdk-cell",""]],hostAttrs:[1,"cdk-cell"],features:[le]})}return t})();var WI=(()=>{class t{template=u(te);_differs=u(us);columns;_columnsDiffer;constructor(){}ngOnChanges(e){if(!this._columnsDiffer){let i=e.columns&&e.columns.currentValue||[];this._columnsDiffer=this._differs.find(i).create(),this._columnsDiffer.diff(i)}}getColumnsDiff(){return this._columnsDiffer.diff(this.columns)}extractCellTemplate(e){return this instanceof C_?e.headerCell.template:this instanceof GI?e.footerCell.template:e.cell.template}static \u0275fac=function(i){return new(i||t)};static \u0275dir=P({type:t,features:[Ae]})}return t})(),C_=(()=>{class t extends WI{_table=u(Ua,{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(u(te),u(us))}ngOnChanges(e){super.ngOnChanges(e)}hasStickyChanged(){let e=this._hasStickyChanged;return this.resetStickyChanged(),e}resetStickyChanged(){this._hasStickyChanged=!1}static \u0275fac=function(i){return new(i||t)};static \u0275dir=P({type:t,selectors:[["","cdkHeaderRowDef",""]],inputs:{columns:[0,"cdkHeaderRowDef","columns"],sticky:[2,"cdkHeaderRowDefSticky","sticky",L]},features:[le,Ae]})}return t})(),GI=(()=>{class t extends WI{_table=u(Ua,{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(u(te),u(us))}ngOnChanges(e){super.ngOnChanges(e)}hasStickyChanged(){let e=this._hasStickyChanged;return this.resetStickyChanged(),e}resetStickyChanged(){this._hasStickyChanged=!1}static \u0275fac=function(i){return new(i||t)};static \u0275dir=P({type:t,selectors:[["","cdkFooterRowDef",""]],inputs:{columns:[0,"cdkFooterRowDef","columns"],sticky:[2,"cdkFooterRowDefSticky","sticky",L]},features:[le,Ae]})}return t})(),bw=(()=>{class t extends WI{_table=u(Ua,{optional:!0});when;constructor(){super(u(te),u(us))}static \u0275fac=function(i){return new(i||t)};static \u0275dir=P({type:t,selectors:[["","cdkRowDef",""]],inputs:{columns:[0,"cdkRowDefColumns","columns"],when:[0,"cdkRowDefWhen","when"]},features:[le]})}return t})(),Nu=(()=>{class t{_viewContainer=u(ot);cells;context;static mostRecentCellOutlet=null;constructor(){t.mostRecentCellOutlet=this}ngOnDestroy(){t.mostRecentCellOutlet===this&&(t.mostRecentCellOutlet=null)}static \u0275fac=function(i){return new(i||t)};static \u0275dir=P({type:t,selectors:[["","cdkCellOutlet",""]]})}return t})(),qI=(()=>{class t{static \u0275fac=function(i){return new(i||t)};static \u0275cmp=E({type:t,selectors:[["cdk-header-row"],["tr","cdk-header-row",""]],hostAttrs:["role","row",1,"cdk-header-row"],decls:1,vars:0,consts:[["cdkCellOutlet",""]],template:function(i,r){i&1&&Ge(0,0)},dependencies:[Nu],encapsulation:2})}return t})();var YI=(()=>{class t{static \u0275fac=function(i){return new(i||t)};static \u0275cmp=E({type:t,selectors:[["cdk-row"],["tr","cdk-row",""]],hostAttrs:["role","row",1,"cdk-row"],decls:1,vars:0,consts:[["cdkCellOutlet",""]],template:function(i,r){i&1&&Ge(0,0)},dependencies:[Nu],encapsulation:2})}return t})(),vw=(()=>{class t{templateRef=u(te);_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(i){return new(i||t)};static \u0275dir=P({type:t,selectors:[["ng-template","cdkNoDataRow",""]]})}return t})(),C6=["top","bottom","left","right"],$I=class{_isNativeHtmlTable;_stickCellCss;_isBrowser;_needsPositionStickyOnElement;direction;_positionListener;_tableInjector;_elemSizeCache=new WeakMap;_resizeObserver=globalThis?.ResizeObserver?new globalThis.ResizeObserver(n=>this._updateCachedSizes(n)):null;_updatedStickyColumnsParamsToReplay=[];_stickyColumnsReplayTimeout=null;_cachedCellWidths=[];_borderCellCss;_destroyed=!1;constructor(n,e,i=!0,r=!0,o,a,s){this._isNativeHtmlTable=n,this._stickCellCss=e,this._isBrowser=i,this._needsPositionStickyOnElement=r,this.direction=o,this._positionListener=a,this._tableInjector=s,this._borderCellCss={top:`${e}-border-elem-top`,bottom:`${e}-border-elem-bottom`,left:`${e}-border-elem-left`,right:`${e}-border-elem-right`}}clearStickyPositioning(n,e){(e.includes("left")||e.includes("right"))&&this._removeFromStickyColumnReplayQueue(n);let i=[];for(let r of n)r.nodeType===r.ELEMENT_NODE&&i.push(r,...Array.from(r.children));gt({write:()=>{for(let r of i)this._removeStickyStyle(r,e)}},{injector:this._tableInjector})}updateStickyColumns(n,e,i,r=!0,o=!0){if(!n.length||!this._isBrowser||!(e.some(C=>C)||i.some(C=>C))){this._positionListener?.stickyColumnsUpdated({sizes:[]}),this._positionListener?.stickyEndColumnsUpdated({sizes:[]});return}let a=n[0],s=a.children.length,l=this.direction==="rtl",c=l?"right":"left",d=l?"left":"right",p=e.lastIndexOf(!0),_=i.indexOf(!0),b,y,w;o&&this._updateStickyColumnReplayQueue({rows:[...n],stickyStartStates:[...e],stickyEndStates:[...i]}),gt({earlyRead:()=>{b=this._getCellWidths(a,r),y=this._getStickyStartColumnPositions(b,e),w=this._getStickyEndColumnPositions(b,i)},write:()=>{for(let C of n)for(let D=0;D!!C)&&(this._positionListener.stickyColumnsUpdated({sizes:p===-1?[]:b.slice(0,p+1).map((C,D)=>e[D]?C:null)}),this._positionListener.stickyEndColumnsUpdated({sizes:_===-1?[]:b.slice(_).map((C,D)=>i[D+_]?C:null).reverse()}))}},{injector:this._tableInjector})}stickRows(n,e,i){if(!this._isBrowser)return;let r=i==="bottom"?n.slice().reverse():n,o=i==="bottom"?e.slice().reverse():e,a=[],s=[],l=[];gt({earlyRead:()=>{for(let c=0,d=0;c{let c=o.lastIndexOf(!0);for(let d=0;d{let i=n.querySelector("tfoot");i&&(e.some(r=>!r)?this._removeStickyStyle(i,["bottom"]):this._addStickyStyle(i,"bottom",0,!1))}},{injector:this._tableInjector})}destroy(){this._stickyColumnsReplayTimeout&&clearTimeout(this._stickyColumnsReplayTimeout),this._resizeObserver?.disconnect(),this._destroyed=!0}_removeStickyStyle(n,e){if(!n.classList.contains(this._stickCellCss))return;for(let r of e)n.style[r]="",n.classList.remove(this._borderCellCss[r]);C6.some(r=>e.indexOf(r)===-1&&n.style[r])?n.style.zIndex=this._getCalculatedZIndex(n):(n.style.zIndex="",this._needsPositionStickyOnElement&&(n.style.position=""),n.classList.remove(this._stickCellCss))}_addStickyStyle(n,e,i,r){n.classList.add(this._stickCellCss),r&&n.classList.add(this._borderCellCss[e]),n.style[e]=`${i}px`,n.style.zIndex=this._getCalculatedZIndex(n),this._needsPositionStickyOnElement&&(n.style.cssText+="position: -webkit-sticky; position: sticky; ")}_getCalculatedZIndex(n){let e={top:100,bottom:10,left:1,right:1},i=0;for(let r of C6)n.style[r]&&(i+=e[r]);return i?`${i}`:""}_getCellWidths(n,e=!0){if(!e&&this._cachedCellWidths.length)return this._cachedCellWidths;let i=[],r=n.children;for(let o=0;o0;o--)e[o]&&(i[o]=r,r+=n[o]);return i}_retrieveElementSize(n){let e=this._elemSizeCache.get(n);if(e)return e;let i=n.getBoundingClientRect(),r={width:i.width,height:i.height};return this._resizeObserver&&(this._elemSizeCache.set(n,r),this._resizeObserver.observe(n,{box:"border-box"})),r}_updateStickyColumnReplayQueue(n){this._removeFromStickyColumnReplayQueue(n.rows),this._stickyColumnsReplayTimeout||this._updatedStickyColumnsParamsToReplay.push(n)}_removeFromStickyColumnReplayQueue(n){let e=new Set(n);for(let i of this._updatedStickyColumnsParamsToReplay)i.rows=i.rows.filter(r=>!e.has(r));this._updatedStickyColumnsParamsToReplay=this._updatedStickyColumnsParamsToReplay.filter(i=>!!i.rows.length)}_updateCachedSizes(n){let e=!1;for(let i of n){let r=i.borderBoxSize?.length?{width:i.borderBoxSize[0].inlineSize,height:i.borderBoxSize[0].blockSize}:{width:i.contentRect.width,height:i.contentRect.height};r.width!==this._elemSizeCache.get(i.target)?.width&&z_e(i.target)&&(e=!0),this._elemSizeCache.set(i.target,r)}e&&this._updatedStickyColumnsParamsToReplay.length&&(this._stickyColumnsReplayTimeout&&clearTimeout(this._stickyColumnsReplayTimeout),this._stickyColumnsReplayTimeout=setTimeout(()=>{if(!this._destroyed){for(let i of this._updatedStickyColumnsParamsToReplay)this.updateStickyColumns(i.rows,i.stickyStartStates,i.stickyEndStates,!0,!1);this._updatedStickyColumnsParamsToReplay=[],this._stickyColumnsReplayTimeout=null}},0))}};function z_e(t){return["cdk-cell","cdk-header-cell","cdk-footer-cell"].some(n=>t.classList.contains(n))}var fw=new O("CDK_SPL");var QI=(()=>{class t{viewContainer=u(ot);elementRef=u(Y);constructor(){let e=u(Ua);e._rowOutlet=this,e._outletAssigned()}static \u0275fac=function(i){return new(i||t)};static \u0275dir=P({type:t,selectors:[["","rowOutlet",""]]})}return t})(),KI=(()=>{class t{viewContainer=u(ot);elementRef=u(Y);constructor(){let e=u(Ua);e._headerRowOutlet=this,e._outletAssigned()}static \u0275fac=function(i){return new(i||t)};static \u0275dir=P({type:t,selectors:[["","headerRowOutlet",""]]})}return t})(),ZI=(()=>{class t{viewContainer=u(ot);elementRef=u(Y);constructor(){let e=u(Ua);e._footerRowOutlet=this,e._outletAssigned()}static \u0275fac=function(i){return new(i||t)};static \u0275dir=P({type:t,selectors:[["","footerRowOutlet",""]]})}return t})(),XI=(()=>{class t{viewContainer=u(ot);elementRef=u(Y);constructor(){let e=u(Ua);e._noDataRowOutlet=this,e._outletAssigned()}static \u0275fac=function(i){return new(i||t)};static \u0275dir=P({type:t,selectors:[["","noDataRowOutlet",""]]})}return t})(),JI=(()=>{class t{_differs=u(us);_changeDetectorRef=u(ye);_elementRef=u(Y);_dir=u(Bt,{optional:!0});_platform=u(qe);_viewRepeater=u(xh);_viewportRuler=u(tr);_stickyPositioningListener=u(fw,{optional:!0,skipSelf:!0});_document=u(_e);_data;_onDestroy=new z;_renderRows;_renderChangeSubscription;_columnDefsByName=new Map;_rowDefs;_headerRowDefs;_footerRowDefs;_dataDiffer;_defaultRowDef;_customColumnDefs=new Set;_customRowDefs=new Set;_customHeaderRowDefs=new Set;_customFooterRowDefs=new Set;_customNoDataRow;_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;_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)}_dataSource;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._fixedLayout}set fixedLayout(e){this._fixedLayout=e,this._forceRecalculateCellWidths=!0,this._stickyColumnStylesNeedReset=!0}_fixedLayout=!1;contentChanged=new U;viewChange=new it({start:0,end:Number.MAX_VALUE});_rowOutlet;_headerRowOutlet;_footerRowOutlet;_noDataRowOutlet;_contentColumnDefs;_contentRowDefs;_contentHeaderRowDefs;_contentFooterRowDefs;_noDataRow;_injector=u(de);constructor(){u(new Oi("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((i,r)=>this.trackBy?this.trackBy(r.dataIndex,r.data):r)}ngOnInit(){this._setupStickyStyler(),this._viewportRuler.change().pipe(we(this._onDestroy)).subscribe(()=>{this._forceRecalculateCellWidths=!0})}ngAfterContentInit(){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._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 i=this._rowOutlet.viewContainer;this._viewRepeater.applyChanges(e,i,(r,o,a)=>this._getEmbeddedViewArgs(r.item,a),r=>r.item.data,r=>{r.operation===uc.INSERTED&&r.context&&this._renderCellTemplateForItem(r.record.item.rowDef,r.context)}),this._updateRowIndexContext(),e.forEachIdentityChange(r=>{let o=i.get(r.currentIndex);o.context.$implicit=r.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 r=w6(this._headerRowOutlet,"thead");r&&(r.style.display=e.length?"":"none")}let i=this._headerRowDefs.map(r=>r.sticky);this._stickyStyler.clearStickyPositioning(e,["top"]),this._stickyStyler.stickRows(e,i,"top"),this._headerRowDefs.forEach(r=>r.resetStickyChanged())}updateStickyFooterRowStyles(){let e=this._getRenderedRows(this._footerRowOutlet);if(this._isNativeHtmlTable){let r=w6(this._footerRowOutlet,"tfoot");r&&(r.style.display=e.length?"":"none")}let i=this._footerRowDefs.map(r=>r.sticky);this._stickyStyler.clearStickyPositioning(e,["bottom"]),this._stickyStyler.stickRows(e,i,"bottom"),this._stickyStyler.updateStickyFooterContainer(this._elementRef.nativeElement,i),this._footerRowDefs.forEach(r=>r.resetStickyChanged())}updateStickyColumnStyles(){let e=this._getRenderedRows(this._headerRowOutlet),i=this._getRenderedRows(this._rowOutlet),r=this._getRenderedRows(this._footerRowOutlet);(this._isNativeHtmlTable&&!this._fixedLayout||this._stickyColumnStylesNeedReset)&&(this._stickyStyler.clearStickyPositioning([...e,...i,...r],["left","right"]),this._stickyColumnStylesNeedReset=!1),e.forEach((o,a)=>{this._addStickyColumnStyles([o],this._headerRowDefs[a])}),this._rowDefs.forEach(o=>{let a=[];for(let s=0;s{this._addStickyColumnStyles([o],this._footerRowDefs[a])}),Array.from(this._columnDefsByName.values()).forEach(o=>o.resetStickyChanged())}_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 i=this._renderUpdatedColumns()||this._headerRowDefChanged||this._footerRowDefChanged;this._stickyColumnStylesNeedReset=this._stickyColumnStylesNeedReset||i,this._forceRecalculateCellWidths=i,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(){let e=[],i=this._cachedRenderRowsMap;if(this._cachedRenderRowsMap=new Map,!this._data)return e;for(let r=0;r{let s=r&&r.has(a)?r.get(a):[];if(s.length){let l=s.shift();return l.dataIndex=i,l}else return{data:e,rowDef:a,dataIndex:i}})}_cacheColumnDefs(){this._columnDefsByName.clear(),hw(this._getOwnDefs(this._contentColumnDefs),this._customColumnDefs).forEach(i=>{this._columnDefsByName.has(i.name),this._columnDefsByName.set(i.name,i)})}_cacheRowDefs(){this._headerRowDefs=hw(this._getOwnDefs(this._contentHeaderRowDefs),this._customHeaderRowDefs),this._footerRowDefs=hw(this._getOwnDefs(this._contentFooterRowDefs),this._customFooterRowDefs),this._rowDefs=hw(this._getOwnDefs(this._contentRowDefs),this._customRowDefs);let e=this._rowDefs.filter(i=>!i.when);!this.multiTemplateDataRows&&e.length>1,this._defaultRowDef=e[0]}_renderUpdatedColumns(){let e=(a,s)=>{let l=!!s.getColumnsDiff();return a||l},i=this._rowDefs.reduce(e,!1);i&&this._forceRenderDataRows();let r=this._headerRowDefs.reduce(e,!1);r&&this._forceRenderHeaderRows();let o=this._footerRowDefs.reduce(e,!1);return o&&this._forceRenderFooterRows(),i||r||o}_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):zi(this.dataSource)?e=this.dataSource:Array.isArray(this.dataSource)&&(e=Q(this.dataSource)),this._renderChangeSubscription=e.pipe(we(this._onDestroy)).subscribe(i=>{this._data=i||[],this.renderRows()})}_forceRenderHeaderRows(){this._headerRowOutlet.viewContainer.length>0&&this._headerRowOutlet.viewContainer.clear(),this._headerRowDefs.forEach((e,i)=>this._renderRow(this._headerRowOutlet,e,i)),this.updateStickyHeaderRowStyles()}_forceRenderFooterRows(){this._footerRowOutlet.viewContainer.length>0&&this._footerRowOutlet.viewContainer.clear(),this._footerRowDefs.forEach((e,i)=>this._renderRow(this._footerRowOutlet,e,i)),this.updateStickyFooterRowStyles()}_addStickyColumnStyles(e,i){let r=Array.from(i?.columns||[]).map(s=>{let l=this._columnDefsByName.get(s);return l}),o=r.map(s=>s.sticky),a=r.map(s=>s.stickyEnd);this._stickyStyler.updateStickyColumns(e,o,a,!this._fixedLayout||this._forceRecalculateCellWidths)}_getRenderedRows(e){let i=[];for(let r=0;r!o.when||o.when(i,e));else{let o=this._rowDefs.find(a=>a.when&&a.when(i,e))||this._defaultRowDef;o&&r.push(o)}return r.length,r}_getEmbeddedViewArgs(e,i){let r=e.rowDef,o={$implicit:e.data};return{templateRef:r.template,context:o,index:i}}_renderRow(e,i,r,o={}){let a=e.viewContainer.createEmbeddedView(i.template,o,r);return this._renderCellTemplateForItem(i,o),a}_renderCellTemplateForItem(e,i){for(let r of this._getCellTemplates(e))Nu.mostRecentCellOutlet&&Nu.mostRecentCellOutlet._viewContainer.createEmbeddedView(r,i);this._changeDetectorRef.markForCheck()}_updateRowIndexContext(){let e=this._rowOutlet.viewContainer;for(let i=0,r=e.length;i{let r=this._columnDefsByName.get(i);return e.extractCellTemplate(r)})}_forceRenderDataRows(){this._dataDiffer.diff([]),this._rowOutlet.viewContainer.clear(),this.renderRows()}_checkStickyStates(){let e=(i,r)=>i||r.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";this._stickyStyler=new $I(this._isNativeHtmlTable,this.stickyCssClass,this._platform.isBrowser,this.needsPositionStickyOnElement,e,this._stickyPositioningListener,this._injector),(this._dir?this._dir.change:Q()).pipe(we(this._onDestroy)).subscribe(i=>{this._stickyStyler.direction=i,this.updateStickyColumnStyles()})}_getOwnDefs(e){return e.filter(i=>!i._table||i._table===this)}_updateNoDataRow(){let e=this._customNoDataRow||this._noDataRow;if(!e)return;let i=this._rowOutlet.viewContainer.length===0;if(i===this._isShowingNoDataRow)return;let r=this._noDataRowOutlet.viewContainer;if(i){let o=r.createEmbeddedView(e.templateRef),a=o.rootNodes[0];if(o.rootNodes.length===1&&a?.nodeType===this._document.ELEMENT_NODE){a.setAttribute("role","row"),a.classList.add(...e._contentClassNames);let s=a.querySelectorAll(e._cellSelector);for(let l=0;l{class t{static \u0275fac=function(i){return new(i||t)};static \u0275mod=ee({type:t});static \u0275inj=J({imports:[lg]})}return t})();var U_e=[[["caption"]],[["colgroup"],["col"]],"*"],$_e=["caption","colgroup, col","*"];function W_e(t,n){t&1&&ne(0,2)}function G_e(t,n){t&1&&(m(0,"thead",0),Ge(1,1),h(),m(2,"tbody",2),Ge(3,3)(4,4),h(),m(5,"tfoot",0),Ge(6,5),h())}function q_e(t,n){t&1&&Ge(0,1)(1,3)(2,4)(3,5)}var Gc=(()=>{class t extends JI{stickyCssClass="mat-mdc-table-sticky";needsPositionStickyOnElement=!1;static \u0275fac=(()=>{let e;return function(r){return(e||(e=ge(t)))(r||t)}})();static \u0275cmp=E({type:t,selectors:[["mat-table"],["table","mat-table",""]],hostAttrs:[1,"mat-mdc-table","mdc-data-table__table"],hostVars:2,hostBindings:function(i,r){i&2&&G("mdc-table-fixed-layout",r.fixedLayout)},exportAs:["matTable"],features:[Ce([{provide:JI,useExisting:t},{provide:Ua,useExisting:t},{provide:xh,useClass:mu},{provide:fw,useValue:null}]),le],ngContentSelectors:$_e,decls:5,vars:2,consts:[["role","rowgroup"],["headerRowOutlet",""],["role","rowgroup",1,"mdc-data-table__content"],["rowOutlet",""],["noDataRowOutlet",""],["footerRowOutlet",""]],template:function(i,r){i&1&&(Se(U_e),ne(0),ne(1,1),V(2,W_e,1,0),V(3,G_e,7,0)(4,q_e,4,0)),i&2&&(f(2),B(r._isServer?2:-1),f(),B(r._isNativeHtmlTable?3:4))},dependencies:[KI,QI,XI,ZI],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))}.mdc-data-table__cell{box-sizing:border-box;overflow:hidden;text-align:left;text-overflow:ellipsis}[dir=rtl] .mdc-data-table__cell{text-align:right}.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:left}[dir=rtl] .mat-mdc-header-cell{text-align:right}.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 t})(),qc=(()=>{class t extends gw{static \u0275fac=(()=>{let e;return function(r){return(e||(e=ge(t)))(r||t)}})();static \u0275dir=P({type:t,selectors:[["","matCellDef",""]],features:[Ce([{provide:gw,useExisting:t}]),le]})}return t})(),Yc=(()=>{class t extends _w{static \u0275fac=(()=>{let e;return function(r){return(e||(e=ge(t)))(r||t)}})();static \u0275dir=P({type:t,selectors:[["","matHeaderCellDef",""]],features:[Ce([{provide:_w,useExisting:t}]),le]})}return t})();var Qc=(()=>{class t extends hp{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(r){return(e||(e=ge(t)))(r||t)}})();static \u0275dir=P({type:t,selectors:[["","matColumnDef",""]],inputs:{name:[0,"matColumnDef","name"]},features:[Ce([{provide:hp,useExisting:t},{provide:"MAT_SORT_HEADER_COLUMN_DEF",useExisting:t}]),le]})}return t})(),Kc=(()=>{class t extends E6{static \u0275fac=(()=>{let e;return function(r){return(e||(e=ge(t)))(r||t)}})();static \u0275dir=P({type:t,selectors:[["mat-header-cell"],["th","mat-header-cell",""]],hostAttrs:["role","columnheader",1,"mat-mdc-header-cell","mdc-data-table__header-cell"],features:[le]})}return t})();var Zc=(()=>{class t extends M6{static \u0275fac=(()=>{let e;return function(r){return(e||(e=ge(t)))(r||t)}})();static \u0275dir=P({type:t,selectors:[["mat-cell"],["td","mat-cell",""]],hostAttrs:[1,"mat-mdc-cell","mdc-data-table__cell"],features:[le]})}return t})();var Xc=(()=>{class t extends C_{static \u0275fac=(()=>{let e;return function(r){return(e||(e=ge(t)))(r||t)}})();static \u0275dir=P({type:t,selectors:[["","matHeaderRowDef",""]],inputs:{columns:[0,"matHeaderRowDef","columns"],sticky:[2,"matHeaderRowDefSticky","sticky",L]},features:[Ce([{provide:C_,useExisting:t}]),le]})}return t})();var Jc=(()=>{class t extends bw{static \u0275fac=(()=>{let e;return function(r){return(e||(e=ge(t)))(r||t)}})();static \u0275dir=P({type:t,selectors:[["","matRowDef",""]],inputs:{columns:[0,"matRowDefColumns","columns"],when:[0,"matRowDefWhen","when"]},features:[Ce([{provide:bw,useExisting:t}]),le]})}return t})(),ed=(()=>{class t extends qI{static \u0275fac=(()=>{let e;return function(r){return(e||(e=ge(t)))(r||t)}})();static \u0275cmp=E({type:t,selectors:[["mat-header-row"],["tr","mat-header-row",""]],hostAttrs:["role","row",1,"mat-mdc-header-row","mdc-data-table__header-row"],exportAs:["matHeaderRow"],features:[Ce([{provide:qI,useExisting:t}]),le],decls:1,vars:0,consts:[["cdkCellOutlet",""]],template:function(i,r){i&1&&Ge(0,0)},dependencies:[Nu],encapsulation:2})}return t})();var td=(()=>{class t extends YI{static \u0275fac=(()=>{let e;return function(r){return(e||(e=ge(t)))(r||t)}})();static \u0275cmp=E({type:t,selectors:[["mat-row"],["tr","mat-row",""]],hostAttrs:["role","row",1,"mat-mdc-row","mdc-data-table__row"],exportAs:["matRow"],features:[Ce([{provide:YI,useExisting:t}]),le],decls:1,vars:0,consts:[["cdkCellOutlet",""]],template:function(i,r){i&1&&Ge(0,0)},dependencies:[Nu],encapsulation:2})}return t})(),xw=(()=>{class t extends vw{_cellSelector="td, mat-cell, [mat-cell], .mat-cell";constructor(){super(),this._contentClassNames.push("mat-mdc-no-data-row","mat-mdc-row","mdc-data-table__row"),this._cellClassNames.push("mat-mdc-cell","mdc-data-table__cell","mat-no-data-cell")}static \u0275fac=function(i){return new(i||t)};static \u0275dir=P({type:t,selectors:[["ng-template","matNoDataRow",""]],features:[Ce([{provide:vw,useExisting:t}]),le]})}return t})();var id=(()=>{class t{static \u0275fac=function(i){return new(i||t)};static \u0275mod=ee({type:t});static \u0275inj=J({imports:[De,S6,De]})}return t})(),Y_e=9007199254740991,yw=class extends ag{_data;_renderData=new it([]);_filter=new it("");_internalPageChanges=new z;_renderChangesSubscription=null;filteredData;get data(){return this._data.value}set data(n){n=Array.isArray(n)?n:[],this._data.next(n),this._renderChangesSubscription||this._filterData(n)}get filter(){return this._filter.value}set filter(n){this._filter.next(n),this._renderChangesSubscription||this._filterData(this.data)}get sort(){return this._sort}set sort(n){this._sort=n,this._updateChangeSubscription()}_sort;get paginator(){return this._paginator}set paginator(n){this._paginator=n,this._updateChangeSubscription()}_paginator;sortingDataAccessor=(n,e)=>{let i=n[e];if(Bv(i)){let r=Number(i);return r{let i=e.active,r=e.direction;return!i||r==""?n:n.sort((o,a)=>{let s=this.sortingDataAccessor(o,i),l=this.sortingDataAccessor(a,i),c=typeof s,d=typeof l;c!==d&&(c==="number"&&(s+=""),d==="number"&&(l+=""));let p=0;return s!=null&&l!=null?s>l?p=1:s{let i=e.trim().toLowerCase();return Object.values(n).some(r=>`${r}`.toLowerCase().includes(i))};constructor(n=[]){super(),this._data=new it(n),this._updateChangeSubscription()}_updateChangeSubscription(){let n=this._sort?Je(this._sort.sortChange,this._sort.initialized):Q(null),e=this._paginator?Je(this._paginator.page,this._internalPageChanges,this._paginator.initialized):Q(null),i=this._data,r=go([i,this._filter]).pipe(se(([s])=>this._filterData(s))),o=go([r,n]).pipe(se(([s])=>this._orderData(s))),a=go([o,e]).pipe(se(([s])=>this._pageData(s)));this._renderChangesSubscription?.unsubscribe(),this._renderChangesSubscription=a.subscribe(s=>this._renderData.next(s))}_filterData(n){return this.filteredData=this.filter==null||this.filter===""?n:n.filter(e=>this.filterPredicate(e,this.filter)),this.paginator&&this._updatePaginator(this.filteredData.length),this.filteredData}_orderData(n){return this.sort?this.sortData(n.slice(),this.sort):n}_pageData(n){if(!this.paginator)return n;let e=this.paginator.pageIndex*this.paginator.pageSize;return n.slice(e,e+this.paginator.pageSize)}_updatePaginator(n){Promise.resolve().then(()=>{let e=this.paginator;if(e&&(e.length=n,e.pageIndex>0)){let i=Math.ceil(e.length/e.pageSize)-1||0,r=Math.min(e.pageIndex,i);r!==e.pageIndex&&(e.pageIndex=r,this._internalPageChanges.next())}})}connect(){return this._renderChangesSubscription||this._updateChangeSubscription(),this._renderData}disconnect(){this._renderChangesSubscription?.unsubscribe(),this._renderChangesSubscription=null}};var Q_e=["panel"],K_e=["*"];function Z_e(t,n){if(t&1&&(pt(0,"div",1,0),ne(2),_t()),t&2){let e=n.id,i=x();nt(i._classList),G("mat-mdc-autocomplete-visible",i.showPanel)("mat-mdc-autocomplete-hidden",!i.showPanel)("mat-autocomplete-panel-animations-enabled",!i._animationsDisabled)("mat-primary",i._color==="primary")("mat-accent",i._color==="accent")("mat-warn",i._color==="warn"),ci("id",i.id),X("aria-label",i.ariaLabel||null)("aria-labelledby",i._getPanelAriaLabelledby(e))}}var eA=class{source;option;constructor(n,e){this.source=n,this.option=e}},k6=new O("mat-autocomplete-default-options",{providedIn:"root",factory:X_e});function X_e(){return{autoActiveFirstOption:!1,autoSelectActiveOption:!1,hideSingleSelectionIndicator:!1,requireSelection:!1,hasBackdrop:!1}}var ww=(()=>{class t{_changeDetectorRef=u(ye);_elementRef=u(Y);_defaults=u(k6);_animationsDisabled=Ye();_activeOptionChanges=Te.EMPTY;_keyManager;showPanel=!1;get isOpen(){return this._isOpen&&this.showPanel}_isOpen=!1;_latestOpeningTrigger;_setColor(e){this._color=e,this._changeDetectorRef.markForCheck()}_color;template;panel;options;optionGroups;ariaLabel;ariaLabelledby;displayWith=null;autoActiveFirstOption;autoSelectActiveOption;requireSelection;panelWidth;disableRipple;optionSelected=new U;opened=new U;closed=new U;optionActivated=new U;set classList(e){this._classList=e,this._elementRef.nativeElement.className=""}_classList;get hideSingleSelectionIndicator(){return this._hideSingleSelectionIndicator}set hideSingleSelectionIndicator(e){this._hideSingleSelectionIndicator=e,this._syncParentProperties()}_hideSingleSelectionIndicator;_syncParentProperties(){if(this.options)for(let e of this.options)e._changeDetectorRef.markForCheck()}id=u(Ze).getId("mat-autocomplete-");inertGroups;constructor(){let e=u(qe);this.inertGroups=e?.SAFARI||!1,this.autoActiveFirstOption=!!this._defaults.autoActiveFirstOption,this.autoSelectActiveOption=!!this._defaults.autoSelectActiveOption,this.requireSelection=!!this._defaults.requireSelection,this._hideSingleSelectionIndicator=this._defaults.hideSingleSelectionIndicator??!1}ngAfterContentInit(){this._keyManager=new Jd(this.options).withWrap().skipPredicate(this._skipPredicate),this._activeOptionChanges=this._keyManager.change.subscribe(e=>{this.isOpen&&this.optionActivated.emit({source:this,option:this.options.toArray()[e]||null})}),this._setVisibility()}ngOnDestroy(){this._keyManager?.destroy(),this._activeOptionChanges.unsubscribe()}_setScrollTop(e){this.panel&&(this.panel.nativeElement.scrollTop=e)}_getScrollTop(){return this.panel?this.panel.nativeElement.scrollTop:0}_setVisibility(){this.showPanel=!!this.options?.length,this._changeDetectorRef.markForCheck()}_emitSelectEvent(e){let i=new eA(this,e);this.optionSelected.emit(i)}_getPanelAriaLabelledby(e){if(this.ariaLabel)return null;let i=e?e+" ":"";return this.ariaLabelledby?i+this.ariaLabelledby:e}_skipPredicate(){return!1}static \u0275fac=function(i){return new(i||t)};static \u0275cmp=E({type:t,selectors:[["mat-autocomplete"]],contentQueries:function(i,r,o){if(i&1&&(xe(o,wn,5),xe(o,nu,5)),i&2){let a;j(a=H())&&(r.options=a),j(a=H())&&(r.optionGroups=a)}},viewQuery:function(i,r){if(i&1&&(ie(te,7),ie(Q_e,5)),i&2){let o;j(o=H())&&(r.template=o.first),j(o=H())&&(r.panel=o.first)}},hostAttrs:[1,"mat-mdc-autocomplete"],inputs:{ariaLabel:[0,"aria-label","ariaLabel"],ariaLabelledby:[0,"aria-labelledby","ariaLabelledby"],displayWith:"displayWith",autoActiveFirstOption:[2,"autoActiveFirstOption","autoActiveFirstOption",L],autoSelectActiveOption:[2,"autoSelectActiveOption","autoSelectActiveOption",L],requireSelection:[2,"requireSelection","requireSelection",L],panelWidth:"panelWidth",disableRipple:[2,"disableRipple","disableRipple",L],classList:[0,"class","classList"],hideSingleSelectionIndicator:[2,"hideSingleSelectionIndicator","hideSingleSelectionIndicator",L]},outputs:{optionSelected:"optionSelected",opened:"opened",closed:"closed",optionActivated:"optionActivated"},exportAs:["matAutocomplete"],features:[Ce([{provide:iu,useExisting:t}])],ngContentSelectors:K_e,decls:1,vars:0,consts:[["panel",""],["role","listbox",1,"mat-mdc-autocomplete-panel","mdc-menu-surface","mdc-menu-surface--open",3,"id"]],template:function(i,r){i&1&&(Se(),wa(0,Z_e,3,17,"ng-template"))},styles:[`div.mat-mdc-autocomplete-panel{width:100%;max-height:256px;visibility:hidden;transform-origin:center top;overflow:auto;padding:8px 0;box-sizing:border-box;position:relative;border-radius:var(--mat-autocomplete-container-shape, var(--mat-sys-corner-extra-small));box-shadow:var(--mat-autocomplete-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));background-color:var(--mat-autocomplete-background-color, var(--mat-sys-surface-container))}@media(forced-colors: active){div.mat-mdc-autocomplete-panel{outline:solid 1px}}.cdk-overlay-pane:not(.mat-mdc-autocomplete-panel-above) div.mat-mdc-autocomplete-panel{border-top-left-radius:0;border-top-right-radius:0}.mat-mdc-autocomplete-panel-above div.mat-mdc-autocomplete-panel{border-bottom-left-radius:0;border-bottom-right-radius:0;transform-origin:center bottom}div.mat-mdc-autocomplete-panel.mat-mdc-autocomplete-visible{visibility:visible}div.mat-mdc-autocomplete-panel.mat-mdc-autocomplete-hidden{visibility:hidden;pointer-events:none}@keyframes _mat-autocomplete-enter{from{opacity:0;transform:scaleY(0.8)}to{opacity:1;transform:none}}.mat-autocomplete-panel-animations-enabled{animation:_mat-autocomplete-enter 120ms cubic-bezier(0, 0, 0.2, 1)}mat-autocomplete{display:none} +`],encapsulation:2,changeDetection:0})}return t})();var J_e={provide:rr,useExisting:ri(()=>w_),multi:!0};var T6=new O("mat-autocomplete-scroll-strategy",{providedIn:"root",factory:()=>{let t=u(de);return()=>En(t)}});function ebe(t){let n=u(de);return()=>En(n)}var tbe={provide:T6,deps:[],useFactory:ebe},w_=(()=>{class t{_environmentInjector=u(Kt);_element=u(Y);_injector=u(de);_viewContainerRef=u(ot);_zone=u(ae);_changeDetectorRef=u(ye);_dir=u(Bt,{optional:!0});_formField=u(ta,{optional:!0,host:!0});_viewportRuler=u(tr);_scrollStrategy=u(T6);_renderer=u(ze);_animationsDisabled=Ye();_defaults=u(k6,{optional:!0});_overlayRef;_portal;_componentDestroyed=!1;_initialized=new z;_keydownSubscription;_outsideClickSubscription;_cleanupWindowBlur;_previousValue;_valueOnAttach;_valueOnLastKeydown;_positionStrategy;_manuallyFloatingLabel=!1;_closingActionsSubscription;_viewportSubscription=Te.EMPTY;_breakpointObserver=u(ll);_handsetLandscapeSubscription=Te.EMPTY;_canOpenOnNextFocus=!0;_valueBeforeAutoSelection;_pendingAutoselectedOption;_closeKeyEventStream=new z;_overlayPanelClass=sl(this._defaults?.overlayPanelClass||[]);_windowBlurHandler=()=>{this._canOpenOnNextFocus=this.panelOpen||!this._hasFocus()};_onChange=()=>{};_onTouched=()=>{};autocomplete;position="auto";connectedTo;autocompleteAttribute="off";autocompleteDisabled;constructor(){}_aboveClass="mat-mdc-autocomplete-panel-above";ngAfterViewInit(){this._initialized.next(),this._initialized.complete(),this._cleanupWindowBlur=this._renderer.listen("window","blur",this._windowBlurHandler)}ngOnChanges(e){e.position&&this._positionStrategy&&(this._setStrategyPositions(this._positionStrategy),this.panelOpen&&this._overlayRef.updatePosition())}ngOnDestroy(){this._cleanupWindowBlur?.(),this._handsetLandscapeSubscription.unsubscribe(),this._viewportSubscription.unsubscribe(),this._componentDestroyed=!0,this._destroyPanel(),this._closeKeyEventStream.complete(),this._clearFromModal()}get panelOpen(){return this._overlayAttached&&this.autocomplete.showPanel}_overlayAttached=!1;openPanel(){this._openPanelInternal()}closePanel(){this._resetLabel(),this._overlayAttached&&(this.panelOpen&&this._zone.run(()=>{this.autocomplete.closed.emit()}),this.autocomplete._latestOpeningTrigger===this&&(this.autocomplete._isOpen=!1,this.autocomplete._latestOpeningTrigger=null),this._overlayAttached=!1,this._pendingAutoselectedOption=null,this._overlayRef&&this._overlayRef.hasAttached()&&(this._overlayRef.detach(),this._closingActionsSubscription.unsubscribe()),this._updatePanelState(),this._componentDestroyed||this._changeDetectorRef.detectChanges(),this._trackedModal&&cc(this._trackedModal,"aria-owns",this.autocomplete.id))}updatePosition(){this._overlayAttached&&this._overlayRef.updatePosition()}get panelClosingActions(){return Je(this.optionSelections,this.autocomplete._keyManager.tabOut.pipe(ce(()=>this._overlayAttached)),this._closeKeyEventStream,this._getOutsideClickStream(),this._overlayRef?this._overlayRef.detachments().pipe(ce(()=>this._overlayAttached)):Q()).pipe(se(e=>e instanceof lh?e:null))}optionSelections=In(()=>{let e=this.autocomplete?this.autocomplete.options:null;return e?e.changes.pipe(Ue(e),je(()=>Je(...e.map(i=>i.onSelectionChange)))):this._initialized.pipe(je(()=>this.optionSelections))});get activeOption(){return this.autocomplete&&this.autocomplete._keyManager?this.autocomplete._keyManager.activeItem:null}_getOutsideClickStream(){return new Fe(e=>{let i=o=>{let a=Xn(o),s=this._formField?this._formField.getConnectedOverlayOrigin().nativeElement:null,l=this.connectedTo?this.connectedTo.elementRef.nativeElement:null;this._overlayAttached&&a!==this._element.nativeElement&&!this._hasFocus()&&(!s||!s.contains(a))&&(!l||!l.contains(a))&&this._overlayRef&&!this._overlayRef.overlayElement.contains(a)&&e.next(o)},r=[this._renderer.listen("document","click",i),this._renderer.listen("document","auxclick",i),this._renderer.listen("document","touchend",i)];return()=>{r.forEach(o=>o())}})}writeValue(e){Promise.resolve(null).then(()=>this._assignOptionValue(e))}registerOnChange(e){this._onChange=e}registerOnTouched(e){this._onTouched=e}setDisabledState(e){this._element.nativeElement.disabled=e}_handleKeydown(e){let i=e,r=i.keyCode,o=Lt(i);if(r===27&&!o&&i.preventDefault(),this._valueOnLastKeydown=this._element.nativeElement.value,this.activeOption&&r===13&&this.panelOpen&&!o)this.activeOption._selectViaInteraction(),this._resetActiveItem(),i.preventDefault();else if(this.autocomplete){let a=this.autocomplete._keyManager.activeItem,s=r===38||r===40;r===9||s&&!o&&this.panelOpen?this.autocomplete._keyManager.onKeydown(i):s&&this._canOpen()&&this._openPanelInternal(this._valueOnLastKeydown),(s||this.autocomplete._keyManager.activeItem!==a)&&(this._scrollToOption(this.autocomplete._keyManager.activeItemIndex||0),this.autocomplete.autoSelectActiveOption&&this.activeOption&&(this._pendingAutoselectedOption||(this._valueBeforeAutoSelection=this._valueOnLastKeydown),this._pendingAutoselectedOption=this.activeOption,this._assignOptionValue(this.activeOption.value)))}}_handleInput(e){let i=e.target,r=i.value;if(i.type==="number"&&(r=r==""?null:parseFloat(r)),this._previousValue!==r){if(this._previousValue=r,this._pendingAutoselectedOption=null,(!this.autocomplete||!this.autocomplete.requireSelection)&&this._onChange(r),!r)this._clearPreviousSelectedOption(null,!1);else if(this.panelOpen&&!this.autocomplete.requireSelection){let o=this.autocomplete.options?.find(a=>a.selected);if(o){let a=this._getDisplayValue(o.value);r!==a&&o.deselect(!1)}}if(this._canOpen()&&this._hasFocus()){let o=this._valueOnLastKeydown??this._element.nativeElement.value;this._valueOnLastKeydown=null,this._openPanelInternal(o)}}}_handleFocus(){this._canOpenOnNextFocus?this._canOpen()&&(this._previousValue=this._element.nativeElement.value,this._attachOverlay(this._previousValue),this._floatLabel(!0)):this._canOpenOnNextFocus=!0}_handleClick(){this._canOpen()&&!this.panelOpen&&this._openPanelInternal()}_hasFocus(){return wo()===this._element.nativeElement}_floatLabel(e=!1){this._formField&&this._formField.floatLabel==="auto"&&(e?this._formField._animateAndLockLabel():this._formField.floatLabel="always",this._manuallyFloatingLabel=!0)}_resetLabel(){this._manuallyFloatingLabel&&(this._formField&&(this._formField.floatLabel="auto"),this._manuallyFloatingLabel=!1)}_subscribeToClosingActions(){let e=new Fe(r=>{gt(()=>{r.next()},{injector:this._environmentInjector})}),i=this.autocomplete.options?.changes.pipe(He(()=>this._positionStrategy.reapplyLastPosition()),ga(0))??Q();return Je(e,i).pipe(je(()=>this._zone.run(()=>{let r=this.panelOpen;return this._resetActiveItem(),this._updatePanelState(),this._changeDetectorRef.detectChanges(),this.panelOpen&&this._overlayRef.updatePosition(),r!==this.panelOpen&&(this.panelOpen?this._emitOpened():this.autocomplete.closed.emit()),this.panelClosingActions})),ct(1)).subscribe(r=>this._setValueAndClose(r))}_emitOpened(){this.autocomplete.opened.emit()}_destroyPanel(){this._overlayRef&&(this.closePanel(),this._overlayRef.dispose(),this._overlayRef=null)}_getDisplayValue(e){let i=this.autocomplete;return i&&i.displayWith?i.displayWith(e):e}_assignOptionValue(e){let i=this._getDisplayValue(e);e==null&&this._clearPreviousSelectedOption(null,!1),this._updateNativeInputValue(i??"")}_updateNativeInputValue(e){this._formField?this._formField._control.value=e:this._element.nativeElement.value=e,this._previousValue=e}_setValueAndClose(e){let i=this.autocomplete,r=e?e.source:this._pendingAutoselectedOption;r?(this._clearPreviousSelectedOption(r),this._assignOptionValue(r.value),this._onChange(r.value),i._emitSelectEvent(r),this._element.nativeElement.focus()):i.requireSelection&&this._element.nativeElement.value!==this._valueOnAttach&&(this._clearPreviousSelectedOption(null),this._assignOptionValue(null),this._onChange(null)),this.closePanel()}_clearPreviousSelectedOption(e,i){this.autocomplete?.options?.forEach(r=>{r!==e&&r.selected&&r.deselect(i)})}_openPanelInternal(e=this._element.nativeElement.value){if(this._attachOverlay(e),this._floatLabel(),this._trackedModal){let i=this.autocomplete.id;ih(this._trackedModal,"aria-owns",i)}}_attachOverlay(e){this.autocomplete;let i=this._overlayRef;i?(this._positionStrategy.setOrigin(this._getConnectedElement()),i.updateSize({width:this._getPanelWidth()})):(this._portal=new Dn(this.autocomplete.template,this._viewContainerRef,{id:this._formField?.getLabelId()}),i=zr(this._injector,this._getOverlayConfig()),this._overlayRef=i,this._viewportSubscription=this._viewportRuler.change().subscribe(()=>{this.panelOpen&&i&&i.updateSize({width:this._getPanelWidth()})}),this._handsetLandscapeSubscription=this._breakpointObserver.observe(Vv.HandsetLandscape).subscribe(o=>{o.matches?this._positionStrategy.withFlexibleDimensions(!0).withGrowAfterOpen(!0).withViewportMargin(8):this._positionStrategy.withFlexibleDimensions(!1).withGrowAfterOpen(!1).withViewportMargin(0)})),i&&!i.hasAttached()&&(i.attach(this._portal),this._valueOnAttach=e,this._valueOnLastKeydown=null,this._closingActionsSubscription=this._subscribeToClosingActions());let r=this.panelOpen;this.autocomplete._isOpen=this._overlayAttached=!0,this.autocomplete._latestOpeningTrigger=this,this.autocomplete._setColor(this._formField?.color),this._updatePanelState(),this._applyModalPanelOwnership(),this.panelOpen&&r!==this.panelOpen&&this._emitOpened()}_handlePanelKeydown=e=>{(e.keyCode===27&&!Lt(e)||e.keyCode===38&&Lt(e,"altKey"))&&(this._pendingAutoselectedOption&&(this._updateNativeInputValue(this._valueBeforeAutoSelection??""),this._pendingAutoselectedOption=null),this._closeKeyEventStream.next(),this._resetActiveItem(),e.stopPropagation(),e.preventDefault())};_updatePanelState(){if(this.autocomplete._setVisibility(),this.panelOpen){let e=this._overlayRef;this._keydownSubscription||(this._keydownSubscription=e.keydownEvents().subscribe(this._handlePanelKeydown)),this._outsideClickSubscription||(this._outsideClickSubscription=e.outsidePointerEvents().subscribe())}else this._keydownSubscription?.unsubscribe(),this._outsideClickSubscription?.unsubscribe(),this._keydownSubscription=this._outsideClickSubscription=null}_getOverlayConfig(){return new Hr({positionStrategy:this._getOverlayPosition(),scrollStrategy:this._scrollStrategy(),width:this._getPanelWidth(),direction:this._dir??void 0,hasBackdrop:this._defaults?.hasBackdrop,backdropClass:this._defaults?.backdropClass||"cdk-overlay-transparent-backdrop",panelClass:this._overlayPanelClass,disableAnimations:this._animationsDisabled})}_getOverlayPosition(){let e=Na(this._injector,this._getConnectedElement()).withFlexibleDimensions(!1).withPush(!1);return this._setStrategyPositions(e),this._positionStrategy=e,e}_setStrategyPositions(e){let i=[{originX:"start",originY:"bottom",overlayX:"start",overlayY:"top"},{originX:"end",originY:"bottom",overlayX:"end",overlayY:"top"}],r=this._aboveClass,o=[{originX:"start",originY:"top",overlayX:"start",overlayY:"bottom",panelClass:r},{originX:"end",originY:"top",overlayX:"end",overlayY:"bottom",panelClass:r}],a;this.position==="above"?a=o:this.position==="below"?a=i:a=[...i,...o],e.withPositions(a)}_getConnectedElement(){return this.connectedTo?this.connectedTo.elementRef:this._formField?this._formField.getConnectedOverlayOrigin():this._element}_getPanelWidth(){return this.autocomplete.panelWidth||this._getHostWidth()}_getHostWidth(){return this._getConnectedElement().nativeElement.getBoundingClientRect().width}_resetActiveItem(){let e=this.autocomplete;if(e.autoActiveFirstOption){let i=-1;for(let r=0;r .cdk-overlay-container [aria-modal="true"]');if(!e)return;let i=this.autocomplete.id;this._trackedModal&&cc(this._trackedModal,"aria-owns",i),ih(e,"aria-owns",i),this._trackedModal=e}_clearFromModal(){if(this._trackedModal){let e=this.autocomplete.id;cc(this._trackedModal,"aria-owns",e),this._trackedModal=null}}static \u0275fac=function(i){return new(i||t)};static \u0275dir=P({type:t,selectors:[["input","matAutocomplete",""],["textarea","matAutocomplete",""]],hostAttrs:[1,"mat-mdc-autocomplete-trigger"],hostVars:7,hostBindings:function(i,r){i&1&&S("focusin",function(){return r._handleFocus()})("blur",function(){return r._onTouched()})("input",function(a){return r._handleInput(a)})("keydown",function(a){return r._handleKeydown(a)})("click",function(){return r._handleClick()}),i&2&&X("autocomplete",r.autocompleteAttribute)("role",r.autocompleteDisabled?null:"combobox")("aria-autocomplete",r.autocompleteDisabled?null:"list")("aria-activedescendant",r.panelOpen&&r.activeOption?r.activeOption.id:null)("aria-expanded",r.autocompleteDisabled?null:r.panelOpen.toString())("aria-controls",r.autocompleteDisabled||!r.panelOpen||r.autocomplete==null?null:r.autocomplete.id)("aria-haspopup",r.autocompleteDisabled?null:"listbox")},inputs:{autocomplete:[0,"matAutocomplete","autocomplete"],position:[0,"matAutocompletePosition","position"],connectedTo:[0,"matAutocompleteConnectedTo","connectedTo"],autocompleteAttribute:[0,"autocomplete","autocompleteAttribute"],autocompleteDisabled:[2,"matAutocompleteDisabled","autocompleteDisabled",L]},exportAs:["matAutocompleteTrigger"],features:[Ce([J_e]),Ae]})}return t})(),Dw=(()=>{class t{static \u0275fac=function(i){return new(i||t)};static \u0275mod=ee({type:t});static \u0275inj=J({providers:[tbe],imports:[nr,ch,De,Cr,ch,De]})}return t})();var I6=()=>["HRAdmin","Manager"],ibe=()=>[5,10,25,50,100],nbe=()=>["HRAdmin"];function rbe(t,n){t&1&&(m(0,"mat-icon",32),g(1,"search"),h())}function obe(t,n){t&1&&M(0,"mat-spinner",33)}function abe(t,n){if(t&1){let e=q();m(0,"button",34),S("click",function(){T(e);let r=x(2);return I(r.clearNlSearch())}),m(1,"mat-icon"),g(2,"close"),h()()}}function sbe(t,n){if(t&1&&(m(0,"div",35)(1,"mat-icon"),g(2,"auto_awesome"),h(),m(3,"span"),g(4,"AI interpreted: "),m(5,"em"),g(6),h()()()),t&2){let e=x(2);f(6),N(e.nlParsedExpression)}}function lbe(t,n){if(t&1&&(m(0,"div",36)(1,"mat-icon"),g(2,"warning"),h(),m(3,"span"),g(4),h()()),t&2){let e=x(2);f(4),N(e.nlError)}}function cbe(t,n){if(t&1){let e=q();m(0,"mat-card",24)(1,"mat-card-content")(2,"mat-form-field",25)(3,"mat-label")(4,"mat-icon"),g(5,"smart_toy"),h(),g(6," Search in plain English "),h(),m(7,"input",26,5),S("input",function(){T(e);let r=Me(8),o=x();return I(o.onNlQueryChange(r.value))}),h(),A(9,rbe,2,0,"mat-icon",27)(10,obe,1,0,"mat-spinner",28)(11,abe,3,0,"button",29),h(),A(12,sbe,7,1,"div",30)(13,lbe,5,1,"div",31),h()()}if(t&2){let e=x();f(7),v("value",e.nlQuery),f(2),v("ngIf",!e.nlLoading&&!e.nlQuery),f(),v("ngIf",e.nlLoading),f(),v("ngIf",e.nlQuery&&!e.nlLoading),f(),v("ngIf",e.nlParsedExpression&&!e.nlLoading),f(),v("ngIf",e.nlError)}}function dbe(t,n){if(t&1){let e=q();m(0,"button",37),S("click",function(){T(e);let r=x();return I(r.createEmployee())}),m(1,"mat-icon"),g(2,"add"),h(),g(3," Add Employee "),h()}}function ube(t,n){if(t&1&&(m(0,"mat-option",38),g(1),h()),t&2){let e=n.$implicit;v("value",e),f(),pe(" ",e," ")}}function mbe(t,n){if(t&1&&(m(0,"mat-option",38),g(1),h()),t&2){let e=n.$implicit;v("value",e),f(),pe(" ",e," ")}}function hbe(t,n){if(t&1&&(m(0,"mat-option",38),g(1),h()),t&2){let e=n.$implicit;v("value",e),f(),pe(" ",e," ")}}function pbe(t,n){if(t&1&&(m(0,"mat-option",38),g(1),h()),t&2){let e=n.$implicit;v("value",e),f(),pe(" ",e," ")}}function fbe(t,n){if(t&1&&(m(0,"mat-option",38),g(1),h()),t&2){let e=n.$implicit;v("value",e),f(),pe(" ",e," ")}}function gbe(t,n){t&1&&(m(0,"div",39),M(1,"mat-spinner"),h())}function _be(t,n){t&1&&(m(0,"th",52),g(1,"Employee #"),h())}function bbe(t,n){if(t&1&&(m(0,"td",53),g(1),h()),t&2){let e=n.$implicit;f(),N(e.employeeNumber)}}function vbe(t,n){t&1&&(m(0,"th",52),g(1,"Name"),h())}function ybe(t,n){if(t&1&&(m(0,"td",53),g(1),h()),t&2){let e=n.$implicit,i=x(2);f(),N(i.getFullName(e))}}function xbe(t,n){t&1&&(m(0,"th",52),g(1,"Email"),h())}function Cbe(t,n){if(t&1&&(m(0,"td",53),g(1),h()),t&2){let e=n.$implicit;f(),N(e.email)}}function wbe(t,n){t&1&&(m(0,"th",52),g(1,"Phone"),h())}function Dbe(t,n){if(t&1&&(m(0,"td",53),g(1),h()),t&2){let e=n.$implicit;f(),N(e.phoneNumber||e.phone||"-")}}function Ebe(t,n){t&1&&(m(0,"th",52),g(1,"Position"),h())}function Mbe(t,n){if(t&1&&(m(0,"td",53),g(1),h()),t&2){let e=n.$implicit;f(),N(e.positionTitle||(e.position==null?null:e.position.positionTitle)||"-")}}function Sbe(t,n){t&1&&(m(0,"th",52),g(1,"Actions"),h())}function kbe(t,n){if(t&1){let e=q();m(0,"button",58),S("click",function(){T(e);let r=x().$implicit,o=x(2);return I(o.editEmployee(r))}),m(1,"mat-icon"),g(2,"edit"),h()()}}function Tbe(t,n){if(t&1){let e=q();m(0,"button",59),S("click",function(){T(e);let r=x().$implicit,o=x(2);return I(o.deleteEmployee(r))}),m(1,"mat-icon"),g(2,"delete"),h()()}}function Ibe(t,n){if(t&1){let e=q();m(0,"td",53)(1,"div",54)(2,"button",55),S("click",function(){let r=T(e).$implicit,o=x(2);return I(o.viewEmployee(r))}),m(3,"mat-icon"),g(4,"visibility"),h()(),A(5,kbe,3,0,"button",56)(6,Tbe,3,0,"button",57),h()()}t&2&&(f(5),v("appHasRole",rt(2,I6)),f(),v("appHasRole",rt(3,nbe)))}function Abe(t,n){t&1&&M(0,"tr",60)}function Obe(t,n){t&1&&M(0,"tr",61)}function Rbe(t,n){if(t&1&&(m(0,"tr",62)(1,"td",63)(2,"div",64)(3,"mat-icon"),g(4,"info"),h(),m(5,"p"),g(6,"No employees found"),h()()()()),t&2){let e=x(2);f(),X("colspan",e.displayedColumns.length)}}function Pbe(t,n){if(t&1&&(m(0,"table",40),kt(1,41),A(2,_be,2,0,"th",42)(3,bbe,2,1,"td",43),Dt(),kt(4,44),A(5,vbe,2,0,"th",42)(6,ybe,2,1,"td",43),Dt(),kt(7,45),A(8,xbe,2,0,"th",42)(9,Cbe,2,1,"td",43),Dt(),kt(10,46),A(11,wbe,2,0,"th",42)(12,Dbe,2,1,"td",43),Dt(),kt(13,47),A(14,Ebe,2,0,"th",42)(15,Mbe,2,1,"td",43),Dt(),kt(16,48),A(17,Sbe,2,0,"th",42)(18,Ibe,7,4,"td",43),Dt(),A(19,Abe,1,0,"tr",49)(20,Obe,1,0,"tr",50)(21,Rbe,7,1,"tr",51),h()),t&2){let e=x();v("dataSource",e.employees),f(19),v("matHeaderRowDef",e.displayedColumns),f(),v("matRowDefColumns",e.displayedColumns),f(),v("ngIf",e.employees.length===0)}}var A6=(()=>{let n=class n{constructor(){this.employeeService=u(mp),this.aiService=u(Uc),this.authService=u(Ot),this.router=u(Re),this.fb=u(ro),this.snackBar=u(ui),this.dialog=u(kn),this.employees=[],this.loading=!1,this.totalCount=0,this.pageSize=10,this.pageNumber=1,this.aiEnabled=Qi.aiEnabled,this.nlQuery="",this.nlLoading=!1,this.nlError="",this.nlParsedExpression="",this.nlSearch$=new z,this.destroy$=new z,this.displayedColumns=["employeeNumber","name","email","phone","positionTitle","actions"]}ngOnInit(){this.initSearchForm(),this.setupAutocomplete(),this.setupAutoSubmit(),this.loadEmployees(),this.setupNlSearch()}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete()}initSearchForm(){this.searchForm=this.fb.group({FirstName:[""],LastName:[""],Email:[""],EmployeeNumber:[""],PositionTitle:[""]})}setupAutocomplete(){this.filteredEmployeeNumbers$=this.searchForm.get("EmployeeNumber").valueChanges.pipe(Ue(""),St(300),_n(),je(i=>this.getAutocompleteOptions("EmployeeNumber",i))),this.filteredFirstNames$=this.searchForm.get("FirstName").valueChanges.pipe(Ue(""),St(300),_n(),je(i=>this.getAutocompleteOptions("FirstName",i))),this.filteredLastNames$=this.searchForm.get("LastName").valueChanges.pipe(Ue(""),St(300),_n(),je(i=>this.getAutocompleteOptions("LastName",i))),this.filteredEmails$=this.searchForm.get("Email").valueChanges.pipe(Ue(""),St(300),_n(),je(i=>this.getAutocompleteOptions("Email",i))),this.filteredPositionTitles$=this.searchForm.get("PositionTitle").valueChanges.pipe(Ue(""),St(300),_n(),je(i=>this.getAutocompleteOptions("PositionTitle",i)))}setupAutoSubmit(){this.searchForm.valueChanges.pipe(St(500),_n((i,r)=>JSON.stringify(i)===JSON.stringify(r)),we(this.destroy$)).subscribe(()=>{this.pageNumber=1,this.loadEmployees()})}getAutocompleteOptions(i,r){if(!r||r.length<2)return Q([]);let o={PageNumber:1,PageSize:10,[i]:r};return this.employeeService.getAllPaged(o).pipe(se(a=>{let s={EmployeeNumber:c=>c.employeeNumber,FirstName:c=>c.firstName,LastName:c=>c.lastName,Email:c=>c.email,PositionTitle:c=>c.positionTitle||""};return a.value.map(c=>s[i](c)).filter((c,d,p)=>c&&p.indexOf(c)===d)}),ii(()=>Q([])))}loadEmployees(){this.loading=!0;let i=k({PageNumber:this.pageNumber,PageSize:this.pageSize},this.searchForm.value);Object.keys(i).forEach(r=>{(i[r]===""||i[r]===null||i[r]===void 0)&&delete i[r]}),this.employeeService.getAllPaged(i).subscribe({next:r=>{this.employees=r.value,this.totalCount=r.recordsTotal,this.loading=!1},error:r=>{console.error("Error loading employees:",r),this.loading=!1}})}onClearSearch(){this.searchForm.reset(),this.pageNumber=1,this.paginator&&(this.paginator.pageIndex=0),this.loadEmployees()}onPageChange(i){this.pageSize=i.pageSize,this.pageNumber=i.pageIndex+1,this.loadEmployees()}getFullName(i){return[i.prefix,i.firstName,i.middleName,i.lastName].filter(Boolean).join(" ")}viewEmployee(i){this.router.navigate(["/employees",i.id])}editEmployee(i){this.router.navigate(["/employees","edit",i.id])}deleteEmployee(i){let r=this.getFullName(i);this.dialog.open(Tr,{width:"400px",data:{title:"Delete Employee",message:`Are you sure you want to delete ${r}? This action cannot be undone.`,confirmText:"Delete",cancelText:"Cancel"}}).afterClosed().subscribe(a=>{a&&this.employeeService.delete(i.id).subscribe({next:()=>{this.snackBar.open(`${r} has been deleted.`,"Close",{duration:3e3,horizontalPosition:"end",verticalPosition:"top"}),this.loadEmployees()},error:s=>{console.error("Error deleting employee:",s),this.snackBar.open("Failed to delete employee. Please try again.","Close",{duration:4e3,horizontalPosition:"end",verticalPosition:"top"})}})})}createEmployee(){this.router.navigate(["/employees","create"])}canEdit(){return this.authService.isHRAdmin()||this.authService.isManager()}canDelete(){return this.authService.isHRAdmin()}canCreate(){return this.authService.isHRAdmin()||this.authService.isManager()}onNlQueryChange(i){this.nlQuery=i,this.nlSearch$.next(i)}clearNlSearch(){this.nlQuery="",this.nlParsedExpression="",this.nlError="",this.searchForm.reset(),this.pageNumber=1,this.loadEmployees()}setupNlSearch(){this.nlSearch$.pipe(St(600),_n(),je(i=>!i||i.length<3?(this.nlParsedExpression="",this.nlError="",Q(null)):(this.nlLoading=!0,this.nlError="",this.aiService.nlEmployeeSearch(i).pipe(ii(r=>(this.nlLoading=!1,this.nlError=r?.error?.detail??"Could not parse query. Try rephrasing.",Q(null)))))),we(this.destroy$)).subscribe(i=>{i&&(this.nlLoading=!1,this.nlParsedExpression=i.parsedExpression,this.applyNlFilter(i))})}applyNlFilter(i){this.searchForm.patchValue({FirstName:i.firstName,LastName:i.lastName,Email:i.email,EmployeeNumber:i.employeeNumber,PositionTitle:i.positionTitle})}};n.\u0275fac=function(r){return new(r||n)},n.\u0275cmp=E({type:n,selectors:[["app-employee-list"]],viewQuery:function(r,o){if(r&1&&ie(or,5),r&2){let a;j(a=H())&&(o.paginator=a.first)}},decls:60,vars:31,consts:[["autoEmployeeNumber","matAutocomplete"],["autoFirstName","matAutocomplete"],["autoLastName","matAutocomplete"],["autoEmail","matAutocomplete"],["autoPositionTitle","matAutocomplete"],["nlInput",""],["class","nl-search-card",4,"ngIf"],[1,"flex-spacer"],["mat-raised-button","","color","primary",3,"click",4,"appHasRole"],[1,"search-form",3,"formGroup"],[1,"search-row"],["appearance","outline"],["matInput","","formControlName","EmployeeNumber",3,"matAutocomplete"],[3,"value",4,"ngFor","ngForOf"],["matInput","","formControlName","FirstName",3,"matAutocomplete"],["matInput","","formControlName","LastName",3,"matAutocomplete"],["matInput","","formControlName","Email",3,"matAutocomplete"],["matInput","","formControlName","PositionTitle",3,"matAutocomplete"],[1,"search-buttons"],["mat-raised-button","","color","accent","type","button",3,"click"],[1,"table-container"],["class","loading-spinner",4,"ngIf"],["mat-table","","class","employee-table",3,"dataSource",4,"ngIf"],["showFirstLastButtons","",3,"page","length","pageSize","pageSizeOptions","pageIndex"],[1,"nl-search-card"],["appearance","outline",1,"nl-search-field"],["matInput","","type","text","placeholder",'e.g. "find all engineers" or "employees named Johnson"',"autocomplete","off",3,"input","value"],["matSuffix","",4,"ngIf"],["matSuffix","","diameter","20",4,"ngIf"],["mat-icon-button","","matSuffix","","type","button",3,"click",4,"ngIf"],["class","nl-parsed-hint",4,"ngIf"],["class","nl-error",4,"ngIf"],["matSuffix",""],["matSuffix","","diameter","20"],["mat-icon-button","","matSuffix","","type","button",3,"click"],[1,"nl-parsed-hint"],[1,"nl-error"],["mat-raised-button","","color","primary",3,"click"],[3,"value"],[1,"loading-spinner"],["mat-table","",1,"employee-table",3,"dataSource"],["matColumnDef","employeeNumber"],["mat-header-cell","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","name"],["matColumnDef","email"],["matColumnDef","phone"],["matColumnDef","positionTitle"],["matColumnDef","actions"],["mat-header-row","",4,"matHeaderRowDef"],["mat-row","",4,"matRowDef","matRowDefColumns"],["class","mat-row",4,"ngIf"],["mat-header-cell",""],["mat-cell",""],[1,"action-buttons"],["mat-icon-button","","color","primary","matTooltip","View Details",3,"click"],["mat-icon-button","","color","accent","matTooltip","Edit Employee",3,"click",4,"appHasRole"],["mat-icon-button","","color","warn","matTooltip","Delete Employee",3,"click",4,"appHasRole"],["mat-icon-button","","color","accent","matTooltip","Edit Employee",3,"click"],["mat-icon-button","","color","warn","matTooltip","Delete Employee",3,"click"],["mat-header-row",""],["mat-row",""],[1,"mat-row"],[1,"mat-cell"],[1,"no-data"]],template:function(r,o){if(r&1){let a=q();M(0,"page-header"),A(1,cbe,14,6,"mat-card",6),m(2,"mat-card")(3,"mat-card-header")(4,"mat-card-title"),g(5,"Employee Directory"),h(),M(6,"div",7),A(7,dbe,4,0,"button",8),h(),m(8,"mat-card-content")(9,"form",9)(10,"div",10)(11,"mat-form-field",11)(12,"mat-label"),g(13,"Employee Number"),h(),M(14,"input",12),m(15,"mat-autocomplete",null,0),A(17,ube,2,2,"mat-option",13),ue(18,"async"),h()(),m(19,"mat-form-field",11)(20,"mat-label"),g(21,"First Name"),h(),M(22,"input",14),m(23,"mat-autocomplete",null,1),A(25,mbe,2,2,"mat-option",13),ue(26,"async"),h()(),m(27,"mat-form-field",11)(28,"mat-label"),g(29,"Last Name"),h(),M(30,"input",15),m(31,"mat-autocomplete",null,2),A(33,hbe,2,2,"mat-option",13),ue(34,"async"),h()(),m(35,"mat-form-field",11)(36,"mat-label"),g(37,"Email"),h(),M(38,"input",16),m(39,"mat-autocomplete",null,3),A(41,pbe,2,2,"mat-option",13),ue(42,"async"),h()(),m(43,"mat-form-field",11)(44,"mat-label"),g(45,"Position Title"),h(),M(46,"input",17),m(47,"mat-autocomplete",null,4),A(49,fbe,2,2,"mat-option",13),ue(50,"async"),h()(),m(51,"div",18)(52,"button",19),S("click",function(){return T(a),I(o.onClearSearch())}),m(53,"mat-icon"),g(54,"clear"),h(),g(55," Clear Filters "),h()()()(),m(56,"div",20),A(57,gbe,2,0,"div",21)(58,Pbe,22,4,"table",22),h(),m(59,"mat-paginator",23),S("page",function(l){return T(a),I(o.onPageChange(l))}),h()()()}if(r&2){let a=Me(16),s=Me(24),l=Me(32),c=Me(40),d=Me(48);f(),v("ngIf",o.aiEnabled),f(6),v("appHasRole",rt(29,I6)),f(2),v("formGroup",o.searchForm),f(5),v("matAutocomplete",a),f(3),v("ngForOf",Oe(18,19,o.filteredEmployeeNumbers$)),f(5),v("matAutocomplete",s),f(3),v("ngForOf",Oe(26,21,o.filteredFirstNames$)),f(5),v("matAutocomplete",l),f(3),v("ngForOf",Oe(34,23,o.filteredLastNames$)),f(5),v("matAutocomplete",c),f(3),v("ngForOf",Oe(42,25,o.filteredEmails$)),f(5),v("matAutocomplete",d),f(3),v("ngForOf",Oe(50,27,o.filteredPositionTitles$)),f(8),v("ngIf",o.loading),f(),v("ngIf",!o.loading),f(),v("length",o.totalCount)("pageSize",o.pageSize)("pageSizeOptions",rt(30,ibe))("pageIndex",o.pageNumber-1)}},dependencies:[ut,vr,Jt,$n,no,Hi,qt,io,Ji,Ur,Be,Mt,Yt,Ut,Ht,zt,Gt,Wt,tt,st,Mn,en,Ci,Gi,hl,Pi,id,Gc,Yc,Xc,Qc,qc,Jc,Kc,Zc,ed,td,vc,or,gi,fi,$r,Ao,Dw,ww,wn,w_,_i,Tn,Qt,Wn,sn],styles:["mat-card[_ngcontent-%COMP%]{margin:16px}.nl-search-card[_ngcontent-%COMP%]{margin-bottom:0}.nl-search-card[_ngcontent-%COMP%] .nl-search-field[_ngcontent-%COMP%]{width:100%}.nl-search-card[_ngcontent-%COMP%] .nl-parsed-hint[_ngcontent-%COMP%]{display:flex;align-items:center;gap:8px;font-size:13px;color:#0009;margin-top:4px}.nl-search-card[_ngcontent-%COMP%] .nl-parsed-hint[_ngcontent-%COMP%] mat-icon[_ngcontent-%COMP%]{font-size:16px;height:16px;width:16px;color:#1976d2}.nl-search-card[_ngcontent-%COMP%] .nl-error[_ngcontent-%COMP%]{display:flex;align-items:center;gap:8px;font-size:13px;color:#b00020;margin-top:4px}.nl-search-card[_ngcontent-%COMP%] .nl-error[_ngcontent-%COMP%] mat-icon[_ngcontent-%COMP%]{font-size:16px;height:16px;width:16px}mat-card-header[_ngcontent-%COMP%]{display:flex;align-items:center;margin-bottom:16px;padding:16px;border-bottom:1px solid rgba(0,0,0,.12)}mat-card-header[_ngcontent-%COMP%] mat-card-title[_ngcontent-%COMP%]{font-size:20px;font-weight:500;margin:0}mat-card-header[_ngcontent-%COMP%] .flex-spacer[_ngcontent-%COMP%]{flex:1 1 auto}mat-card-header[_ngcontent-%COMP%] button[_ngcontent-%COMP%] mat-icon[_ngcontent-%COMP%]{margin-right:4px}mat-card-content[_ngcontent-%COMP%]{padding:0}.search-form[_ngcontent-%COMP%]{padding:16px;background-color:#f5f5f5;margin-bottom:0}.search-form[_ngcontent-%COMP%] .search-row[_ngcontent-%COMP%]{display:grid;grid-template-columns:repeat(auto-fit,minmax(180px,1fr));gap:16px;align-items:start}.search-form[_ngcontent-%COMP%] .search-row[_ngcontent-%COMP%] mat-form-field[_ngcontent-%COMP%]{width:100%}.search-form[_ngcontent-%COMP%] .search-row[_ngcontent-%COMP%] .search-buttons[_ngcontent-%COMP%]{display:flex;gap:8px;align-items:center}.search-form[_ngcontent-%COMP%] .search-row[_ngcontent-%COMP%] .search-buttons[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{white-space:nowrap}.search-form[_ngcontent-%COMP%] .search-row[_ngcontent-%COMP%] .search-buttons[_ngcontent-%COMP%] button[_ngcontent-%COMP%] mat-icon[_ngcontent-%COMP%]{margin-right:4px}.table-container[_ngcontent-%COMP%]{position:relative;min-height:300px;overflow-x:auto}.loading-spinner[_ngcontent-%COMP%]{display:flex;justify-content:center;align-items:center;min-height:300px}.employee-table[_ngcontent-%COMP%]{width:100%}.employee-table[_ngcontent-%COMP%] th[_ngcontent-%COMP%]{font-weight:600;font-size:14px;color:#000000de}.employee-table[_ngcontent-%COMP%] td[_ngcontent-%COMP%]{font-size:14px;color:#000000de}.employee-table[_ngcontent-%COMP%] .mat-column-employeeNumber[_ngcontent-%COMP%]{width:120px}.employee-table[_ngcontent-%COMP%] .mat-column-name[_ngcontent-%COMP%], .employee-table[_ngcontent-%COMP%] .mat-column-email[_ngcontent-%COMP%]{min-width:200px}.employee-table[_ngcontent-%COMP%] .mat-column-phone[_ngcontent-%COMP%]{width:150px}.employee-table[_ngcontent-%COMP%] .mat-column-positionTitle[_ngcontent-%COMP%]{min-width:200px}.employee-table[_ngcontent-%COMP%] .mat-column-actions[_ngcontent-%COMP%]{width:120px;text-align:right}.employee-table[_ngcontent-%COMP%] .mat-column-actions[_ngcontent-%COMP%] .action-buttons[_ngcontent-%COMP%]{display:flex;justify-content:flex-end;align-items:center;gap:4px}.no-data[_ngcontent-%COMP%]{display:flex;flex-direction:column;align-items:center;justify-content:center;padding:48px 16px;color:#0000008a}.no-data[_ngcontent-%COMP%] mat-icon[_ngcontent-%COMP%]{font-size:48px;width:48px;height:48px;margin-bottom:16px}.no-data[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{margin:0;font-size:16px}mat-paginator[_ngcontent-%COMP%]{border-top:1px solid rgba(0,0,0,.12)}"]});let t=n;return t})();var Lu=(function(t){return t[t.Male=0]="Male",t[t.Female=1]="Female",t})(Lu||{});var Fbe=()=>["HRAdmin","Manager"],Nbe=()=>["HRAdmin"];function Lbe(t,n){t&1&&(m(0,"div",2),M(1,"mat-spinner"),h())}function Vbe(t,n){if(t&1){let e=q();m(0,"button",14),S("click",function(){T(e);let r=x(2);return I(r.editEmployee())}),m(1,"mat-icon"),g(2,"edit"),h(),g(3," Edit "),h()}}function Bbe(t,n){if(t&1){let e=q();m(0,"button",15),S("click",function(){T(e);let r=x(2);return I(r.deleteEmployee())}),m(1,"mat-icon"),g(2,"delete"),h(),g(3," Delete "),h()}}function jbe(t,n){if(t&1&&(m(0,"mat-list-item")(1,"span",10),g(2,"Address"),h(),m(3,"span",11),g(4),h()()),t&2){let e=x(2);f(4),N(e.employee.address)}}function Hbe(t,n){if(t&1&&(m(0,"mat-list-item")(1,"span",10),g(2,"Hire Date"),h(),m(3,"span",11),g(4),ue(5,"date"),h()()),t&2){let e=x(2);f(4),N(Oe(5,1,e.employee.hireDate))}}function zbe(t,n){if(t&1&&(m(0,"mat-list-item")(1,"span",10),g(2,"Salary Range"),h(),m(3,"span",11),g(4),ue(5,"number"),ue(6,"number"),h()()),t&2){let e=x(2);f(4),Sm(" ",e.employee.salaryRange.name," ($",Oe(5,3,e.employee.salaryRange.minSalary)," - $",Oe(6,5,e.employee.salaryRange.maxSalary),") ")}}function Ube(t,n){if(t&1&&(m(0,"mat-list-item")(1,"span",10),g(2,"Created"),h(),m(3,"span",11),g(4),ue(5,"date"),h()()),t&2){let e=x(3);f(4),N(Ei(5,1,e.employee.createdAt,"medium"))}}function $be(t,n){if(t&1&&(m(0,"mat-list-item")(1,"span",10),g(2,"Last Modified"),h(),m(3,"span",11),g(4),ue(5,"date"),h()()),t&2){let e=x(3);f(4),N(Ei(5,1,e.employee.lastModifiedAt,"medium"))}}function Wbe(t,n){if(t&1&&(m(0,"div",9)(1,"h3"),g(2,"Audit Information"),h(),M(3,"mat-divider"),m(4,"mat-list"),A(5,Ube,6,4,"mat-list-item",1)(6,$be,6,4,"mat-list-item",1),h()()),t&2){let e=x(2);f(5),v("ngIf",e.employee.createdAt),f(),v("ngIf",e.employee.lastModifiedAt)}}function Gbe(t,n){if(t&1){let e=q();m(0,"mat-card")(1,"mat-card-header")(2,"mat-card-title"),g(3),h(),M(4,"div",3),m(5,"div",4)(6,"button",5),S("click",function(){T(e);let r=x();return I(r.goBack())}),m(7,"mat-icon"),g(8,"arrow_back"),h(),g(9," Back to List "),h(),A(10,Vbe,4,0,"button",6)(11,Bbe,4,0,"button",7),h()(),m(12,"mat-card-content")(13,"div",8)(14,"div",9)(15,"h3"),g(16,"Personal Information"),h(),M(17,"mat-divider"),m(18,"mat-list")(19,"mat-list-item")(20,"span",10),g(21,"Employee Number"),h(),m(22,"span",11),g(23),h()(),m(24,"mat-list-item")(25,"span",10),g(26,"Full Name"),h(),m(27,"span",11),g(28),h()(),m(29,"mat-list-item")(30,"span",10),g(31,"Date of Birth"),h(),m(32,"span",11),g(33),ue(34,"date"),h()(),m(35,"mat-list-item")(36,"span",10),g(37,"Gender"),h(),m(38,"span",11),g(39),h()()()(),m(40,"div",9)(41,"h3"),g(42,"Contact Information"),h(),M(43,"mat-divider"),m(44,"mat-list")(45,"mat-list-item")(46,"span",10),g(47,"Email"),h(),m(48,"span",11)(49,"a",12),g(50),h()()(),m(51,"mat-list-item")(52,"span",10),g(53,"Phone Number"),h(),m(54,"span",11)(55,"a",12),g(56),h()()(),A(57,jbe,5,1,"mat-list-item",1),h()(),m(58,"div",9)(59,"h3"),g(60,"Employment Information"),h(),M(61,"mat-divider"),m(62,"mat-list"),A(63,Hbe,6,3,"mat-list-item",1),m(64,"mat-list-item")(65,"span",10),g(66,"Salary"),h(),m(67,"span",11),g(68),ue(69,"currency"),h()(),m(70,"mat-list-item")(71,"span",10),g(72,"Department"),h(),m(73,"span",11),g(74),h()(),m(75,"mat-list-item")(76,"span",10),g(77,"Position"),h(),m(78,"span",11),g(79),h()(),A(80,zbe,7,7,"mat-list-item",1),h()(),A(81,Wbe,7,2,"div",13),h()()()}if(t&2){let e=x();f(3),N(e.getFullName()),f(7),v("appHasRole",rt(22,Fbe)),f(),v("appHasRole",rt(23,Nbe)),f(12),N(e.employee.employeeNumber),f(5),N(e.getFullName()),f(5),N(Oe(34,18,e.employee.dateOfBirth||e.employee.birthday)),f(6),N(e.getGenderLabel(e.employee.gender)),f(10),v("href","mailto:"+e.employee.email,Qr),f(),N(e.employee.email),f(5),v("href","tel:"+(e.employee.phoneNumber||e.employee.phone),Qr),f(),N(e.employee.phoneNumber||e.employee.phone),f(),v("ngIf",e.employee.address),f(6),v("ngIf",e.employee.hireDate),f(5),N(Oe(69,20,e.employee.salary)),f(6),N(e.employee.departmentName||(e.employee.department==null?null:e.employee.department.name)||"N/A"),f(5),N(e.employee.positionTitle||(e.employee.position==null?null:e.employee.position.positionTitle)||"N/A"),f(),v("ngIf",e.employee.salaryRange),f(),v("ngIf",e.employee.createdAt||e.employee.lastModifiedAt)}}function qbe(t,n){if(t&1){let e=q();m(0,"mat-card")(1,"mat-card-content")(2,"div",16)(3,"mat-icon"),g(4,"error"),h(),m(5,"p"),g(6,"Employee not found"),h(),m(7,"button",17),S("click",function(){T(e);let r=x();return I(r.goBack())}),g(8," Go Back "),h()()()()}}var O6=(()=>{let n=class n{constructor(){this.employeeService=u(mp),this.authService=u(Ot),this.router=u(Re),this.route=u(Si),this.snackBar=u(ui),this.dialog=u(kn),this.loading=!1}ngOnInit(){let i=this.route.snapshot.paramMap.get("id");i&&this.loadEmployee(i)}loadEmployee(i){this.loading=!0,this.employeeService.getById(i).subscribe({next:r=>{this.employee=r,this.loading=!1},error:r=>{console.error("Error loading employee:",r),this.loading=!1,this.router.navigate(["/employees"])}})}getFullName(){return this.employee?[this.employee.prefix,this.employee.firstName,this.employee.middleName,this.employee.lastName,this.employee.suffix].filter(Boolean).join(" "):""}getGenderLabel(i){return i===Lu.Male?"Male":"Female"}editEmployee(){this.employee&&this.router.navigate(["/employees","edit",this.employee.id])}deleteEmployee(){if(!this.employee)return;let i=this.getFullName();this.dialog.open(Tr,{width:"400px",data:{title:"Delete Employee",message:`Are you sure you want to delete ${i}? This action cannot be undone.`,confirmText:"Delete",cancelText:"Cancel"}}).afterClosed().subscribe(o=>{o&&this.employeeService.delete(this.employee.id).subscribe({next:()=>{let a=this.snackBar.open(`${i} has been deleted.`,"Close",{duration:3e3,horizontalPosition:"end",verticalPosition:"top"});a.afterDismissed().subscribe(()=>this.router.navigate(["/employees"])),a.onAction().subscribe(()=>this.router.navigate(["/employees"]))},error:a=>{console.error("Error deleting employee:",a),this.snackBar.open("Failed to delete employee. Please try again.","Close",{duration:4e3,horizontalPosition:"end",verticalPosition:"top"})}})})}goBack(){this.router.navigate(["/employees"])}canEdit(){return this.authService.isHRAdmin()||this.authService.isManager()}canDelete(){return this.authService.isHRAdmin()}};n.\u0275fac=function(r){return new(r||n)},n.\u0275cmp=E({type:n,selectors:[["app-employee-detail"]],decls:4,vars:3,consts:[["class","loading-spinner",4,"ngIf"],[4,"ngIf"],[1,"loading-spinner"],[1,"flex-spacer"],[1,"header-actions"],["mat-stroked-button","",3,"click"],["mat-raised-button","","color","accent",3,"click",4,"appHasRole"],["mat-raised-button","","color","warn",3,"click",4,"appHasRole"],[1,"detail-container"],[1,"detail-section"],["matListItemTitle",""],["matListItemLine",""],[3,"href"],["class","detail-section",4,"ngIf"],["mat-raised-button","","color","accent",3,"click"],["mat-raised-button","","color","warn",3,"click"],[1,"no-data"],["mat-raised-button","","color","primary",3,"click"]],template:function(r,o){r&1&&(M(0,"page-header"),A(1,Lbe,2,0,"div",0)(2,Gbe,82,24,"mat-card",1)(3,qbe,9,0,"mat-card",1)),r&2&&(f(),v("ngIf",o.loading),f(),v("ngIf",!o.loading&&o.employee),f(),v("ngIf",!o.loading&&!o.employee))},dependencies:[ut,Jt,Be,Mt,Ut,Ht,zt,Gt,Wt,tt,st,gi,fi,ho,Po,ua,Ns,da,Pu,Ml,_i,Tn,Qt,Wn,jd,nl,Ta],styles:[".loading-spinner[_ngcontent-%COMP%]{display:flex;justify-content:center;align-items:center;min-height:400px}mat-card[_ngcontent-%COMP%]{margin:16px;max-width:1200px}mat-card-header[_ngcontent-%COMP%]{display:flex;align-items:center;padding:16px;border-bottom:1px solid rgba(0,0,0,.12)}mat-card-header[_ngcontent-%COMP%] mat-card-title[_ngcontent-%COMP%]{font-size:24px;font-weight:500;margin:0}mat-card-header[_ngcontent-%COMP%] .flex-spacer[_ngcontent-%COMP%]{flex:1 1 auto}mat-card-header[_ngcontent-%COMP%] .header-actions[_ngcontent-%COMP%]{display:flex;gap:12px}mat-card-header[_ngcontent-%COMP%] .header-actions[_ngcontent-%COMP%] button[_ngcontent-%COMP%] mat-icon[_ngcontent-%COMP%]{margin-right:4px}mat-card-content[_ngcontent-%COMP%]{padding:24px}.detail-container[_ngcontent-%COMP%]{display:grid;grid-template-columns:1fr 1fr;gap:24px}@media (max-width: 768px){.detail-container[_ngcontent-%COMP%]{grid-template-columns:1fr}}.detail-section[_ngcontent-%COMP%] h3[_ngcontent-%COMP%]{font-size:16px;font-weight:500;margin:0 0 8px;color:#000000de}.detail-section[_ngcontent-%COMP%] mat-divider[_ngcontent-%COMP%]{margin-bottom:16px}.detail-section[_ngcontent-%COMP%] mat-list[_ngcontent-%COMP%]{padding:0}.detail-section[_ngcontent-%COMP%] mat-list-item[_ngcontent-%COMP%]{height:auto;min-height:48px;padding:8px 0}.detail-section[_ngcontent-%COMP%] mat-list-item[_ngcontent-%COMP%] span[matListItemTitle][_ngcontent-%COMP%]{font-weight:500;color:#0009;font-size:12px;text-transform:uppercase;letter-spacing:.5px}.detail-section[_ngcontent-%COMP%] mat-list-item[_ngcontent-%COMP%] span[matListItemLine][_ngcontent-%COMP%]{font-size:14px;color:#000000de;margin-top:4px;white-space:normal;word-break:break-word}.detail-section[_ngcontent-%COMP%] mat-list-item[_ngcontent-%COMP%] span[matListItemLine][_ngcontent-%COMP%] a[_ngcontent-%COMP%]{color:#1976d2;text-decoration:none}.detail-section[_ngcontent-%COMP%] mat-list-item[_ngcontent-%COMP%] span[matListItemLine][_ngcontent-%COMP%] a[_ngcontent-%COMP%]:hover{text-decoration:underline}.no-data[_ngcontent-%COMP%]{display:flex;flex-direction:column;align-items:center;justify-content:center;padding:48px 16px;color:#0000008a}.no-data[_ngcontent-%COMP%] mat-icon[_ngcontent-%COMP%]{font-size:64px;width:64px;height:64px;margin-bottom:16px;color:#f44336}.no-data[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{margin:0 0 24px;font-size:18px}"]});let t=n;return t})();var Qbe=["mat-calendar-body",""];function Kbe(t,n){return this._trackRow(n)}var B6=(t,n)=>n.id;function Zbe(t,n){if(t&1&&(m(0,"tr",0)(1,"td",3),g(2),h()()),t&2){let e=x();f(),Et("padding-top",e._cellPadding)("padding-bottom",e._cellPadding),X("colspan",e.numCols),f(),pe(" ",e.label," ")}}function Xbe(t,n){if(t&1&&(m(0,"td",3),g(1),h()),t&2){let e=x(2);Et("padding-top",e._cellPadding)("padding-bottom",e._cellPadding),X("colspan",e._firstRowOffset),f(),pe(" ",e._firstRowOffset>=e.labelMinRequiredCells?e.label:""," ")}}function Jbe(t,n){if(t&1){let e=q();m(0,"td",6)(1,"button",7),S("click",function(r){let o=T(e).$implicit,a=x(2);return I(a._cellClicked(o,r))})("focus",function(r){let o=T(e).$implicit,a=x(2);return I(a._emitActiveDateChange(o,r))}),m(2,"span",8),g(3),h(),M(4,"span",9),h()()}if(t&2){let e=n.$implicit,i=n.$index,r=x().$index,o=x();Et("width",o._cellWidth)("padding-top",o._cellPadding)("padding-bottom",o._cellPadding),X("data-mat-row",r)("data-mat-col",i),f(),G("mat-calendar-body-disabled",!e.enabled)("mat-calendar-body-active",o._isActiveCell(r,i))("mat-calendar-body-range-start",o._isRangeStart(e.compareValue))("mat-calendar-body-range-end",o._isRangeEnd(e.compareValue))("mat-calendar-body-in-range",o._isInRange(e.compareValue))("mat-calendar-body-comparison-bridge-start",o._isComparisonBridgeStart(e.compareValue,r,i))("mat-calendar-body-comparison-bridge-end",o._isComparisonBridgeEnd(e.compareValue,r,i))("mat-calendar-body-comparison-start",o._isComparisonStart(e.compareValue))("mat-calendar-body-comparison-end",o._isComparisonEnd(e.compareValue))("mat-calendar-body-in-comparison-range",o._isInComparisonRange(e.compareValue))("mat-calendar-body-preview-start",o._isPreviewStart(e.compareValue))("mat-calendar-body-preview-end",o._isPreviewEnd(e.compareValue))("mat-calendar-body-in-preview",o._isInPreview(e.compareValue)),v("ngClass",e.cssClasses)("tabindex",o._isActiveCell(r,i)?0:-1),X("aria-label",e.ariaLabel)("aria-disabled",!e.enabled||null)("aria-pressed",o._isSelected(e.compareValue))("aria-current",o.todayValue===e.compareValue?"date":null)("aria-describedby",o._getDescribedby(e.compareValue)),f(),G("mat-calendar-body-selected",o._isSelected(e.compareValue))("mat-calendar-body-comparison-identical",o._isComparisonIdentical(e.compareValue))("mat-calendar-body-today",o.todayValue===e.compareValue),f(),pe(" ",e.displayValue," ")}}function e0e(t,n){if(t&1&&(m(0,"tr",1),V(1,Xbe,2,6,"td",4),xt(2,Jbe,5,48,"td",5,B6),h()),t&2){let e=n.$implicit,i=n.$index,r=x();f(),B(i===0&&r._firstRowOffset?1:-1),f(),Ct(e)}}function t0e(t,n){if(t&1&&(m(0,"th",2)(1,"span",6),g(2),h(),m(3,"span",3),g(4),h()()),t&2){let e=n.$implicit;f(2),N(e.long),f(2),N(e.narrow)}}var i0e=["*"];function n0e(t,n){}function r0e(t,n){if(t&1){let e=q();m(0,"mat-month-view",4),Nr("activeDateChange",function(r){T(e);let o=x();return Zr(o.activeDate,r)||(o.activeDate=r),I(r)}),S("_userSelection",function(r){T(e);let o=x();return I(o._dateSelected(r))})("dragStarted",function(r){T(e);let o=x();return I(o._dragStarted(r))})("dragEnded",function(r){T(e);let o=x();return I(o._dragEnded(r))}),h()}if(t&2){let e=x();Fr("activeDate",e.activeDate),v("selected",e.selected)("dateFilter",e.dateFilter)("maxDate",e.maxDate)("minDate",e.minDate)("dateClass",e.dateClass)("comparisonStart",e.comparisonStart)("comparisonEnd",e.comparisonEnd)("startDateAccessibleName",e.startDateAccessibleName)("endDateAccessibleName",e.endDateAccessibleName)("activeDrag",e._activeDrag)}}function o0e(t,n){if(t&1){let e=q();m(0,"mat-year-view",5),Nr("activeDateChange",function(r){T(e);let o=x();return Zr(o.activeDate,r)||(o.activeDate=r),I(r)}),S("monthSelected",function(r){T(e);let o=x();return I(o._monthSelectedInYearView(r))})("selectedChange",function(r){T(e);let o=x();return I(o._goToDateInView(r,"month"))}),h()}if(t&2){let e=x();Fr("activeDate",e.activeDate),v("selected",e.selected)("dateFilter",e.dateFilter)("maxDate",e.maxDate)("minDate",e.minDate)("dateClass",e.dateClass)}}function a0e(t,n){if(t&1){let e=q();m(0,"mat-multi-year-view",6),Nr("activeDateChange",function(r){T(e);let o=x();return Zr(o.activeDate,r)||(o.activeDate=r),I(r)}),S("yearSelected",function(r){T(e);let o=x();return I(o._yearSelectedInMultiYearView(r))})("selectedChange",function(r){T(e);let o=x();return I(o._goToDateInView(r,"year"))}),h()}if(t&2){let e=x();Fr("activeDate",e.activeDate),v("selected",e.selected)("dateFilter",e.dateFilter)("maxDate",e.maxDate)("minDate",e.minDate)("dateClass",e.dateClass)}}function s0e(t,n){}var l0e=["button"],c0e=[[["","matDatepickerToggleIcon",""]]],d0e=["[matDatepickerToggleIcon]"];function u0e(t,n){t&1&&(Zt(),m(0,"svg",2),M(1,"path",3),h())}var gp=(()=>{class t{changes=new z;calendarLabel="Calendar";openCalendarLabel="Open calendar";closeCalendarLabel="Close calendar";prevMonthLabel="Previous month";nextMonthLabel="Next month";prevYearLabel="Previous year";nextYearLabel="Next year";prevMultiYearLabel="Previous 24 years";nextMultiYearLabel="Next 24 years";switchToMonthViewLabel="Choose date";switchToMultiYearViewLabel="Choose month and year";startDateLabel="Start date";endDateLabel="End date";comparisonDateLabel="Comparison range";formatYearRange(e,i){return`${e} \u2013 ${i}`}formatYearRangeLabel(e,i){return`${e} to ${i}`}static \u0275fac=function(i){return new(i||t)};static \u0275prov=R({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),m0e=0,E_=class{value;displayValue;ariaLabel;enabled;cssClasses;compareValue;rawValue;id=m0e++;constructor(n,e,i,r,o={},a=n,s){this.value=n,this.displayValue=e,this.ariaLabel=i,this.enabled=r,this.cssClasses=o,this.compareValue=a,this.rawValue=s}},h0e={passive:!1,capture:!0},Mw={passive:!0,capture:!0},R6={passive:!0},fp=(()=>{class t{_elementRef=u(Y);_ngZone=u(ae);_platform=u(qe);_intl=u(gp);_eventCleanups;_skipNextFocus;_focusActiveCellAfterViewChecked=!1;label;rows;todayValue;startValue;endValue;labelMinRequiredCells;numCols=7;activeCell=0;ngAfterViewChecked(){this._focusActiveCellAfterViewChecked&&(this._focusActiveCell(),this._focusActiveCellAfterViewChecked=!1)}isRange=!1;cellAspectRatio=1;comparisonStart;comparisonEnd;previewStart=null;previewEnd=null;startDateAccessibleName;endDateAccessibleName;selectedValueChange=new U;previewChange=new U;activeDateChange=new U;dragStarted=new U;dragEnded=new U;_firstRowOffset;_cellPadding;_cellWidth;_startDateLabelId;_endDateLabelId;_comparisonStartDateLabelId;_comparisonEndDateLabelId;_didDragSinceMouseDown=!1;_injector=u(de);comparisonDateAccessibleName=this._intl.comparisonDateLabel;_trackRow=e=>e;constructor(){let e=u(ze),i=u(Ze);this._startDateLabelId=i.getId("mat-calendar-body-start-"),this._endDateLabelId=i.getId("mat-calendar-body-end-"),this._comparisonStartDateLabelId=i.getId("mat-calendar-body-comparison-start-"),this._comparisonEndDateLabelId=i.getId("mat-calendar-body-comparison-end-"),u(ht).load(ki),this._ngZone.runOutsideAngular(()=>{let r=this._elementRef.nativeElement,o=[e.listen(r,"touchmove",this._touchmoveHandler,h0e),e.listen(r,"mouseenter",this._enterHandler,Mw),e.listen(r,"focus",this._enterHandler,Mw),e.listen(r,"mouseleave",this._leaveHandler,Mw),e.listen(r,"blur",this._leaveHandler,Mw),e.listen(r,"mousedown",this._mousedownHandler,R6),e.listen(r,"touchstart",this._mousedownHandler,R6)];this._platform.isBrowser&&o.push(e.listen("window","mouseup",this._mouseupHandler),e.listen("window","touchend",this._touchendHandler)),this._eventCleanups=o})}_cellClicked(e,i){this._didDragSinceMouseDown||e.enabled&&this.selectedValueChange.emit({value:e.value,event:i})}_emitActiveDateChange(e,i){e.enabled&&this.activeDateChange.emit({value:e.value,event:i})}_isSelected(e){return this.startValue===e||this.endValue===e}ngOnChanges(e){let i=e.numCols,{rows:r,numCols:o}=this;(e.rows||i)&&(this._firstRowOffset=r&&r.length&&r[0].length?o-r[0].length:0),(e.cellAspectRatio||i||!this._cellPadding)&&(this._cellPadding=`${50*this.cellAspectRatio/o}%`),(i||!this._cellWidth)&&(this._cellWidth=`${100/o}%`)}ngOnDestroy(){this._eventCleanups.forEach(e=>e())}_isActiveCell(e,i){let r=e*this.numCols+i;return e&&(r-=this._firstRowOffset),r==this.activeCell}_focusActiveCell(e=!0){gt(()=>{setTimeout(()=>{let i=this._elementRef.nativeElement.querySelector(".mat-calendar-body-active");i&&(e||(this._skipNextFocus=!0),i.focus())})},{injector:this._injector})}_scheduleFocusActiveCellAfterViewChecked(){this._focusActiveCellAfterViewChecked=!0}_isRangeStart(e){return nA(e,this.startValue,this.endValue)}_isRangeEnd(e){return rA(e,this.startValue,this.endValue)}_isInRange(e){return oA(e,this.startValue,this.endValue,this.isRange)}_isComparisonStart(e){return nA(e,this.comparisonStart,this.comparisonEnd)}_isComparisonBridgeStart(e,i,r){if(!this._isComparisonStart(e)||this._isRangeStart(e)||!this._isInRange(e))return!1;let o=this.rows[i][r-1];if(!o){let a=this.rows[i-1];o=a&&a[a.length-1]}return o&&!this._isRangeEnd(o.compareValue)}_isComparisonBridgeEnd(e,i,r){if(!this._isComparisonEnd(e)||this._isRangeEnd(e)||!this._isInRange(e))return!1;let o=this.rows[i][r+1];if(!o){let a=this.rows[i+1];o=a&&a[0]}return o&&!this._isRangeStart(o.compareValue)}_isComparisonEnd(e){return rA(e,this.comparisonStart,this.comparisonEnd)}_isInComparisonRange(e){return oA(e,this.comparisonStart,this.comparisonEnd,this.isRange)}_isComparisonIdentical(e){return this.comparisonStart===this.comparisonEnd&&e===this.comparisonStart}_isPreviewStart(e){return nA(e,this.previewStart,this.previewEnd)}_isPreviewEnd(e){return rA(e,this.previewStart,this.previewEnd)}_isInPreview(e){return oA(e,this.previewStart,this.previewEnd,this.isRange)}_getDescribedby(e){if(!this.isRange)return null;if(this.startValue===e&&this.endValue===e)return`${this._startDateLabelId} ${this._endDateLabelId}`;if(this.startValue===e)return this._startDateLabelId;if(this.endValue===e)return this._endDateLabelId;if(this.comparisonStart!==null&&this.comparisonEnd!==null){if(e===this.comparisonStart&&e===this.comparisonEnd)return`${this._comparisonStartDateLabelId} ${this._comparisonEndDateLabelId}`;if(e===this.comparisonStart)return this._comparisonStartDateLabelId;if(e===this.comparisonEnd)return this._comparisonEndDateLabelId}return null}_enterHandler=e=>{if(this._skipNextFocus&&e.type==="focus"){this._skipNextFocus=!1;return}if(e.target&&this.isRange){let i=this._getCellFromElement(e.target);i&&this._ngZone.run(()=>this.previewChange.emit({value:i.enabled?i:null,event:e}))}};_touchmoveHandler=e=>{if(!this.isRange)return;let i=P6(e),r=i?this._getCellFromElement(i):null;i!==e.target&&(this._didDragSinceMouseDown=!0),iA(e.target)&&e.preventDefault(),this._ngZone.run(()=>this.previewChange.emit({value:r?.enabled?r:null,event:e}))};_leaveHandler=e=>{this.previewEnd!==null&&this.isRange&&(e.type!=="blur"&&(this._didDragSinceMouseDown=!0),e.target&&this._getCellFromElement(e.target)&&!(e.relatedTarget&&this._getCellFromElement(e.relatedTarget))&&this._ngZone.run(()=>this.previewChange.emit({value:null,event:e})))};_mousedownHandler=e=>{if(!this.isRange)return;this._didDragSinceMouseDown=!1;let i=e.target&&this._getCellFromElement(e.target);!i||!this._isInRange(i.compareValue)||this._ngZone.run(()=>{this.dragStarted.emit({value:i.rawValue,event:e})})};_mouseupHandler=e=>{if(!this.isRange)return;let i=iA(e.target);if(!i){this._ngZone.run(()=>{this.dragEnded.emit({value:null,event:e})});return}i.closest(".mat-calendar-body")===this._elementRef.nativeElement&&this._ngZone.run(()=>{let r=this._getCellFromElement(i);this.dragEnded.emit({value:r?.rawValue??null,event:e})})};_touchendHandler=e=>{let i=P6(e);i&&this._mouseupHandler({target:i})};_getCellFromElement(e){let i=iA(e);if(i){let r=i.getAttribute("data-mat-row"),o=i.getAttribute("data-mat-col");if(r&&o)return this.rows[parseInt(r)]?.[parseInt(o)]||null}return null}static \u0275fac=function(i){return new(i||t)};static \u0275cmp=E({type:t,selectors:[["","mat-calendar-body",""]],hostAttrs:[1,"mat-calendar-body"],inputs:{label:"label",rows:"rows",todayValue:"todayValue",startValue:"startValue",endValue:"endValue",labelMinRequiredCells:"labelMinRequiredCells",numCols:"numCols",activeCell:"activeCell",isRange:"isRange",cellAspectRatio:"cellAspectRatio",comparisonStart:"comparisonStart",comparisonEnd:"comparisonEnd",previewStart:"previewStart",previewEnd:"previewEnd",startDateAccessibleName:"startDateAccessibleName",endDateAccessibleName:"endDateAccessibleName"},outputs:{selectedValueChange:"selectedValueChange",previewChange:"previewChange",activeDateChange:"activeDateChange",dragStarted:"dragStarted",dragEnded:"dragEnded"},exportAs:["matCalendarBody"],features:[Ae],attrs:Qbe,decls:11,vars:11,consts:[["aria-hidden","true"],["role","row"],[1,"mat-calendar-body-hidden-label",3,"id"],[1,"mat-calendar-body-label"],[1,"mat-calendar-body-label",3,"paddingTop","paddingBottom"],["role","gridcell",1,"mat-calendar-body-cell-container",3,"width","paddingTop","paddingBottom"],["role","gridcell",1,"mat-calendar-body-cell-container"],["type","button",1,"mat-calendar-body-cell",3,"click","focus","ngClass","tabindex"],[1,"mat-calendar-body-cell-content","mat-focus-indicator"],["aria-hidden","true",1,"mat-calendar-body-cell-preview"]],template:function(i,r){i&1&&(V(0,Zbe,3,6,"tr",0),xt(1,e0e,4,1,"tr",1,Kbe,!0),m(3,"span",2),g(4),h(),m(5,"span",2),g(6),h(),m(7,"span",2),g(8),h(),m(9,"span",2),g(10),h()),i&2&&(B(r._firstRowOffset.mat-calendar-body-cell-content:not(.mat-calendar-body-selected):not(.mat-calendar-body-comparison-identical){color:var(--mat-datepicker-calendar-date-disabled-state-text-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent))}.mat-calendar-body-disabled>.mat-calendar-body-today:not(.mat-calendar-body-selected):not(.mat-calendar-body-comparison-identical){border-color:var(--mat-datepicker-calendar-date-today-disabled-state-outline-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent))}@media(forced-colors: active){.mat-calendar-body-disabled{opacity:.5}}.mat-calendar-body-cell-content{top:5%;left:5%;z-index:1;display:flex;align-items:center;justify-content:center;box-sizing:border-box;width:90%;height:90%;line-height:1;border-width:1px;border-style:solid;border-radius:999px;color:var(--mat-datepicker-calendar-date-text-color, var(--mat-sys-on-surface));border-color:var(--mat-datepicker-calendar-date-outline-color, transparent)}.mat-calendar-body-cell-content.mat-focus-indicator{position:absolute}@media(forced-colors: active){.mat-calendar-body-cell-content{border:none}}.cdk-keyboard-focused .mat-calendar-body-active>.mat-calendar-body-cell-content:not(.mat-calendar-body-selected):not(.mat-calendar-body-comparison-identical),.cdk-program-focused .mat-calendar-body-active>.mat-calendar-body-cell-content:not(.mat-calendar-body-selected):not(.mat-calendar-body-comparison-identical){background-color:var(--mat-datepicker-calendar-date-focus-state-background-color, color-mix(in srgb, var(--mat-sys-on-surface) calc(var(--mat-sys-focus-state-layer-opacity) * 100%), transparent))}@media(hover: hover){.mat-calendar-body-cell:not(.mat-calendar-body-disabled):hover>.mat-calendar-body-cell-content:not(.mat-calendar-body-selected):not(.mat-calendar-body-comparison-identical){background-color:var(--mat-datepicker-calendar-date-hover-state-background-color, color-mix(in srgb, var(--mat-sys-on-surface) calc(var(--mat-sys-hover-state-layer-opacity) * 100%), transparent))}}.mat-calendar-body-selected{background-color:var(--mat-datepicker-calendar-date-selected-state-background-color, var(--mat-sys-primary));color:var(--mat-datepicker-calendar-date-selected-state-text-color, var(--mat-sys-on-primary))}.mat-calendar-body-disabled>.mat-calendar-body-selected{background-color:var(--mat-datepicker-calendar-date-selected-disabled-state-background-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent))}.mat-calendar-body-selected.mat-calendar-body-today{box-shadow:inset 0 0 0 1px var(--mat-datepicker-calendar-date-today-selected-state-outline-color, var(--mat-sys-primary))}.mat-calendar-body-in-range::before{background:var(--mat-datepicker-calendar-date-in-range-state-background-color, var(--mat-sys-primary-container))}.mat-calendar-body-comparison-identical,.mat-calendar-body-in-comparison-range::before{background:var(--mat-datepicker-calendar-date-in-comparison-range-state-background-color, var(--mat-sys-tertiary-container))}.mat-calendar-body-comparison-identical,.mat-calendar-body-in-comparison-range::before{background:var(--mat-datepicker-calendar-date-in-comparison-range-state-background-color, var(--mat-sys-tertiary-container))}.mat-calendar-body-comparison-bridge-start::before,[dir=rtl] .mat-calendar-body-comparison-bridge-end::before{background:linear-gradient(to right, var(--mat-datepicker-calendar-date-in-range-state-background-color, var(--mat-sys-primary-container)) 50%, var(--mat-datepicker-calendar-date-in-comparison-range-state-background-color, var(--mat-sys-tertiary-container)) 50%)}.mat-calendar-body-comparison-bridge-end::before,[dir=rtl] .mat-calendar-body-comparison-bridge-start::before{background:linear-gradient(to left, var(--mat-datepicker-calendar-date-in-range-state-background-color, var(--mat-sys-primary-container)) 50%, var(--mat-datepicker-calendar-date-in-comparison-range-state-background-color, var(--mat-sys-tertiary-container)) 50%)}.mat-calendar-body-in-range>.mat-calendar-body-comparison-identical,.mat-calendar-body-in-comparison-range.mat-calendar-body-in-range::after{background:var(--mat-datepicker-calendar-date-in-overlap-range-state-background-color, var(--mat-sys-secondary-container))}.mat-calendar-body-comparison-identical.mat-calendar-body-selected,.mat-calendar-body-in-comparison-range>.mat-calendar-body-selected{background:var(--mat-datepicker-calendar-date-in-overlap-range-selected-state-background-color, var(--mat-sys-secondary))}@media(forced-colors: active){.mat-datepicker-popup:not(:empty),.mat-calendar-body-cell:not(.mat-calendar-body-in-range) .mat-calendar-body-selected{outline:solid 1px}.mat-calendar-body-today{outline:dotted 1px}.mat-calendar-body-cell::before,.mat-calendar-body-cell::after,.mat-calendar-body-selected{background:none}.mat-calendar-body-in-range::before,.mat-calendar-body-comparison-bridge-start::before,.mat-calendar-body-comparison-bridge-end::before{border-top:solid 1px;border-bottom:solid 1px}.mat-calendar-body-range-start::before{border-left:solid 1px}[dir=rtl] .mat-calendar-body-range-start::before{border-left:0;border-right:solid 1px}.mat-calendar-body-range-end::before{border-right:solid 1px}[dir=rtl] .mat-calendar-body-range-end::before{border-right:0;border-left:solid 1px}.mat-calendar-body-in-comparison-range::before{border-top:dashed 1px;border-bottom:dashed 1px}.mat-calendar-body-comparison-start::before{border-left:dashed 1px}[dir=rtl] .mat-calendar-body-comparison-start::before{border-left:0;border-right:dashed 1px}.mat-calendar-body-comparison-end::before{border-right:dashed 1px}[dir=rtl] .mat-calendar-body-comparison-end::before{border-right:0;border-left:dashed 1px}} +`],encapsulation:2,changeDetection:0})}return t})();function tA(t){return t?.nodeName==="TD"}function iA(t){let n;return tA(t)?n=t:tA(t.parentNode)?n=t.parentNode:tA(t.parentNode?.parentNode)&&(n=t.parentNode.parentNode),n?.getAttribute("data-mat-row")!=null?n:null}function nA(t,n,e){return e!==null&&n!==e&&t=n&&t===e}function oA(t,n,e,i){return i&&n!==null&&e!==null&&n!==e&&t>=n&&t<=e}function P6(t){let n=t.changedTouches[0];return document.elementFromPoint(n.clientX,n.clientY)}var ha=class{start;end;_disableStructuralEquivalency;constructor(n,e){this.start=n,this.end=e}},M_=(()=>{class t{selection;_adapter;_selectionChanged=new z;selectionChanged=this._selectionChanged;constructor(e,i){this.selection=e,this._adapter=i,this.selection=e}updateSelection(e,i){let r=this.selection;this.selection=e,this._selectionChanged.next({selection:e,source:i,oldValue:r})}ngOnDestroy(){this._selectionChanged.complete()}_isValidDateInstance(e){return this._adapter.isDateInstance(e)&&this._adapter.isValid(e)}static \u0275fac=function(i){Nd()};static \u0275prov=R({token:t,factory:t.\u0275fac})}return t})(),p0e=(()=>{class t extends M_{constructor(e){super(null,e)}add(e){super.updateSelection(e,this)}isValid(){return this.selection!=null&&this._isValidDateInstance(this.selection)}isComplete(){return this.selection!=null}clone(){let e=new t(this._adapter);return e.updateSelection(this.selection,this),e}static \u0275fac=function(i){return new(i||t)(fe(Bi))};static \u0275prov=R({token:t,factory:t.\u0275fac})}return t})();function f0e(t,n){return t||new p0e(n)}var j6={provide:M_,deps:[[new ls,new Yl,M_],Bi],useFactory:f0e};var H6=new O("MAT_DATE_RANGE_SELECTION_STRATEGY");var aA=7,g0e=0,F6=(()=>{class t{_changeDetectorRef=u(ye);_dateFormats=u(Cs,{optional:!0});_dateAdapter=u(Bi,{optional:!0});_dir=u(Bt,{optional:!0});_rangeStrategy=u(H6,{optional:!0});_rerenderSubscription=Te.EMPTY;_selectionKeyPressed;get activeDate(){return this._activeDate}set activeDate(e){let i=this._activeDate,r=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e))||this._dateAdapter.today();this._activeDate=this._dateAdapter.clampDate(r,this.minDate,this.maxDate),this._hasSameMonthAndYear(i,this._activeDate)||this._init()}_activeDate;get selected(){return this._selected}set selected(e){e instanceof ha?this._selected=e:this._selected=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e)),this._setRanges(this._selected)}_selected;get minDate(){return this._minDate}set minDate(e){this._minDate=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e))}_minDate;get maxDate(){return this._maxDate}set maxDate(e){this._maxDate=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e))}_maxDate;dateFilter;dateClass;comparisonStart;comparisonEnd;startDateAccessibleName;endDateAccessibleName;activeDrag=null;selectedChange=new U;_userSelection=new U;dragStarted=new U;dragEnded=new U;activeDateChange=new U;_matCalendarBody;_monthLabel=he("");_weeks=he([]);_firstWeekOffset=he(0);_rangeStart=he(null);_rangeEnd=he(null);_comparisonRangeStart=he(null);_comparisonRangeEnd=he(null);_previewStart=he(null);_previewEnd=he(null);_isRange=he(!1);_todayDate=he(null);_weekdays=he([]);constructor(){u(ht).load(Jr),this._activeDate=this._dateAdapter.today()}ngAfterContentInit(){this._rerenderSubscription=this._dateAdapter.localeChanges.pipe(Ue(null)).subscribe(()=>this._init())}ngOnChanges(e){let i=e.comparisonStart||e.comparisonEnd;i&&!i.firstChange&&this._setRanges(this.selected),e.activeDrag&&!this.activeDrag&&this._clearPreview()}ngOnDestroy(){this._rerenderSubscription.unsubscribe()}_dateSelected(e){let i=e.value,r=this._getDateFromDayOfMonth(i),o,a;this._selected instanceof ha?(o=this._getDateInCurrentMonth(this._selected.start),a=this._getDateInCurrentMonth(this._selected.end)):o=a=this._getDateInCurrentMonth(this._selected),(o!==i||a!==i)&&this.selectedChange.emit(r),this._userSelection.emit({value:r,event:e.event}),this._clearPreview(),this._changeDetectorRef.markForCheck()}_updateActiveDate(e){let i=e.value,r=this._activeDate;this.activeDate=this._getDateFromDayOfMonth(i),this._dateAdapter.compareDate(r,this.activeDate)&&this.activeDateChange.emit(this._activeDate)}_handleCalendarBodyKeydown(e){let i=this._activeDate,r=this._isRtl();switch(e.keyCode){case 37:this.activeDate=this._dateAdapter.addCalendarDays(this._activeDate,r?1:-1);break;case 39:this.activeDate=this._dateAdapter.addCalendarDays(this._activeDate,r?-1:1);break;case 38:this.activeDate=this._dateAdapter.addCalendarDays(this._activeDate,-7);break;case 40:this.activeDate=this._dateAdapter.addCalendarDays(this._activeDate,7);break;case 36:this.activeDate=this._dateAdapter.addCalendarDays(this._activeDate,1-this._dateAdapter.getDate(this._activeDate));break;case 35:this.activeDate=this._dateAdapter.addCalendarDays(this._activeDate,this._dateAdapter.getNumDaysInMonth(this._activeDate)-this._dateAdapter.getDate(this._activeDate));break;case 33:this.activeDate=e.altKey?this._dateAdapter.addCalendarYears(this._activeDate,-1):this._dateAdapter.addCalendarMonths(this._activeDate,-1);break;case 34:this.activeDate=e.altKey?this._dateAdapter.addCalendarYears(this._activeDate,1):this._dateAdapter.addCalendarMonths(this._activeDate,1);break;case 13:case 32:this._selectionKeyPressed=!0,this._canSelect(this._activeDate)&&e.preventDefault();return;case 27:this._previewEnd()!=null&&!Lt(e)&&(this._clearPreview(),this.activeDrag?this.dragEnded.emit({value:null,event:e}):(this.selectedChange.emit(null),this._userSelection.emit({value:null,event:e})),e.preventDefault(),e.stopPropagation());return;default:return}this._dateAdapter.compareDate(i,this.activeDate)&&(this.activeDateChange.emit(this.activeDate),this._focusActiveCellAfterViewChecked()),e.preventDefault()}_handleCalendarBodyKeyup(e){(e.keyCode===32||e.keyCode===13)&&(this._selectionKeyPressed&&this._canSelect(this._activeDate)&&this._dateSelected({value:this._dateAdapter.getDate(this._activeDate),event:e}),this._selectionKeyPressed=!1)}_init(){this._setRanges(this.selected),this._todayDate.set(this._getCellCompareValue(this._dateAdapter.today())),this._monthLabel.set(this._dateFormats.display.monthLabel?this._dateAdapter.format(this.activeDate,this._dateFormats.display.monthLabel):this._dateAdapter.getMonthNames("short")[this._dateAdapter.getMonth(this.activeDate)].toLocaleUpperCase());let e=this._dateAdapter.createDate(this._dateAdapter.getYear(this.activeDate),this._dateAdapter.getMonth(this.activeDate),1);this._firstWeekOffset.set((aA+this._dateAdapter.getDayOfWeek(e)-this._dateAdapter.getFirstDayOfWeek())%aA),this._initWeekdays(),this._createWeekCells(),this._changeDetectorRef.markForCheck()}_focusActiveCell(e){this._matCalendarBody._focusActiveCell(e)}_focusActiveCellAfterViewChecked(){this._matCalendarBody._scheduleFocusActiveCellAfterViewChecked()}_previewChanged({event:e,value:i}){if(this._rangeStrategy){let r=i?i.rawValue:null,o=this._rangeStrategy.createPreview(r,this.selected,e);if(this._previewStart.set(this._getCellCompareValue(o.start)),this._previewEnd.set(this._getCellCompareValue(o.end)),this.activeDrag&&r){let a=this._rangeStrategy.createDrag?.(this.activeDrag.value,this.selected,r,e);a&&(this._previewStart.set(this._getCellCompareValue(a.start)),this._previewEnd.set(this._getCellCompareValue(a.end)))}}}_dragEnded(e){if(this.activeDrag)if(e.value){let i=this._rangeStrategy?.createDrag?.(this.activeDrag.value,this.selected,e.value,e.event);this.dragEnded.emit({value:i??null,event:e.event})}else this.dragEnded.emit({value:null,event:e.event})}_getDateFromDayOfMonth(e){return this._dateAdapter.createDate(this._dateAdapter.getYear(this.activeDate),this._dateAdapter.getMonth(this.activeDate),e)}_initWeekdays(){let e=this._dateAdapter.getFirstDayOfWeek(),i=this._dateAdapter.getDayOfWeekNames("narrow"),o=this._dateAdapter.getDayOfWeekNames("long").map((a,s)=>({long:a,narrow:i[s],id:g0e++}));this._weekdays.set(o.slice(e).concat(o.slice(0,e)))}_createWeekCells(){let e=this._dateAdapter.getNumDaysInMonth(this.activeDate),i=this._dateAdapter.getDateNames(),r=[[]];for(let o=0,a=this._firstWeekOffset();o=0)&&(!this.maxDate||this._dateAdapter.compareDate(e,this.maxDate)<=0)&&(!this.dateFilter||this.dateFilter(e))}_getDateInCurrentMonth(e){return e&&this._hasSameMonthAndYear(e,this.activeDate)?this._dateAdapter.getDate(e):null}_hasSameMonthAndYear(e,i){return!!(e&&i&&this._dateAdapter.getMonth(e)==this._dateAdapter.getMonth(i)&&this._dateAdapter.getYear(e)==this._dateAdapter.getYear(i))}_getCellCompareValue(e){if(e){let i=this._dateAdapter.getYear(e),r=this._dateAdapter.getMonth(e),o=this._dateAdapter.getDate(e);return new Date(i,r,o).getTime()}return null}_isRtl(){return this._dir&&this._dir.value==="rtl"}_setRanges(e){e instanceof ha?(this._rangeStart.set(this._getCellCompareValue(e.start)),this._rangeEnd.set(this._getCellCompareValue(e.end)),this._isRange.set(!0)):(this._rangeStart.set(this._getCellCompareValue(e)),this._rangeEnd.set(this._rangeStart()),this._isRange.set(!1)),this._comparisonRangeStart.set(this._getCellCompareValue(this.comparisonStart)),this._comparisonRangeEnd.set(this._getCellCompareValue(this.comparisonEnd))}_canSelect(e){return!this.dateFilter||this.dateFilter(e)}_clearPreview(){this._previewStart.set(null),this._previewEnd.set(null)}static \u0275fac=function(i){return new(i||t)};static \u0275cmp=E({type:t,selectors:[["mat-month-view"]],viewQuery:function(i,r){if(i&1&&ie(fp,5),i&2){let o;j(o=H())&&(r._matCalendarBody=o.first)}},inputs:{activeDate:"activeDate",selected:"selected",minDate:"minDate",maxDate:"maxDate",dateFilter:"dateFilter",dateClass:"dateClass",comparisonStart:"comparisonStart",comparisonEnd:"comparisonEnd",startDateAccessibleName:"startDateAccessibleName",endDateAccessibleName:"endDateAccessibleName",activeDrag:"activeDrag"},outputs:{selectedChange:"selectedChange",_userSelection:"_userSelection",dragStarted:"dragStarted",dragEnded:"dragEnded",activeDateChange:"activeDateChange"},exportAs:["matMonthView"],features:[Ae],decls:8,vars:14,consts:[["role","grid",1,"mat-calendar-table"],[1,"mat-calendar-table-header"],["scope","col"],["aria-hidden","true"],["colspan","7",1,"mat-calendar-table-header-divider"],["mat-calendar-body","",3,"selectedValueChange","activeDateChange","previewChange","dragStarted","dragEnded","keyup","keydown","label","rows","todayValue","startValue","endValue","comparisonStart","comparisonEnd","previewStart","previewEnd","isRange","labelMinRequiredCells","activeCell","startDateAccessibleName","endDateAccessibleName"],[1,"cdk-visually-hidden"]],template:function(i,r){i&1&&(m(0,"table",0)(1,"thead",1)(2,"tr"),xt(3,t0e,5,2,"th",2,B6),h(),m(5,"tr",3),M(6,"th",4),h()(),m(7,"tbody",5),S("selectedValueChange",function(a){return r._dateSelected(a)})("activeDateChange",function(a){return r._updateActiveDate(a)})("previewChange",function(a){return r._previewChanged(a)})("dragStarted",function(a){return r.dragStarted.emit(a)})("dragEnded",function(a){return r._dragEnded(a)})("keyup",function(a){return r._handleCalendarBodyKeyup(a)})("keydown",function(a){return r._handleCalendarBodyKeydown(a)}),h()()),i&2&&(f(3),Ct(r._weekdays()),f(4),v("label",r._monthLabel())("rows",r._weeks())("todayValue",r._todayDate())("startValue",r._rangeStart())("endValue",r._rangeEnd())("comparisonStart",r._comparisonRangeStart())("comparisonEnd",r._comparisonRangeEnd())("previewStart",r._previewStart())("previewEnd",r._previewEnd())("isRange",r._isRange())("labelMinRequiredCells",3)("activeCell",r._dateAdapter.getDate(r.activeDate)-1)("startDateAccessibleName",r.startDateAccessibleName)("endDateAccessibleName",r.endDateAccessibleName))},dependencies:[fp],encapsulation:2,changeDetection:0})}return t})(),Fo=24,sA=4,N6=(()=>{class t{_changeDetectorRef=u(ye);_dateAdapter=u(Bi,{optional:!0});_dir=u(Bt,{optional:!0});_rerenderSubscription=Te.EMPTY;_selectionKeyPressed;get activeDate(){return this._activeDate}set activeDate(e){let i=this._activeDate,r=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e))||this._dateAdapter.today();this._activeDate=this._dateAdapter.clampDate(r,this.minDate,this.maxDate),z6(this._dateAdapter,i,this._activeDate,this.minDate,this.maxDate)||this._init()}_activeDate;get selected(){return this._selected}set selected(e){e instanceof ha?this._selected=e:this._selected=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e)),this._setSelectedYear(e)}_selected;get minDate(){return this._minDate}set minDate(e){this._minDate=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e))}_minDate;get maxDate(){return this._maxDate}set maxDate(e){this._maxDate=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e))}_maxDate;dateFilter;dateClass;selectedChange=new U;yearSelected=new U;activeDateChange=new U;_matCalendarBody;_years=he([]);_todayYear=he(0);_selectedYear=he(null);constructor(){this._dateAdapter,this._activeDate=this._dateAdapter.today()}ngAfterContentInit(){this._rerenderSubscription=this._dateAdapter.localeChanges.pipe(Ue(null)).subscribe(()=>this._init())}ngOnDestroy(){this._rerenderSubscription.unsubscribe()}_init(){this._todayYear.set(this._dateAdapter.getYear(this._dateAdapter.today()));let i=this._dateAdapter.getYear(this._activeDate)-D_(this._dateAdapter,this.activeDate,this.minDate,this.maxDate),r=[];for(let o=0,a=[];othis._createCellForYear(s))),a=[]);this._years.set(r),this._changeDetectorRef.markForCheck()}_yearSelected(e){let i=e.value,r=this._dateAdapter.createDate(i,0,1),o=this._getDateFromYear(i);this.yearSelected.emit(r),this.selectedChange.emit(o)}_updateActiveDate(e){let i=e.value,r=this._activeDate;this.activeDate=this._getDateFromYear(i),this._dateAdapter.compareDate(r,this.activeDate)&&this.activeDateChange.emit(this.activeDate)}_handleCalendarBodyKeydown(e){let i=this._activeDate,r=this._isRtl();switch(e.keyCode){case 37:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,r?1:-1);break;case 39:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,r?-1:1);break;case 38:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,-sA);break;case 40:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,sA);break;case 36:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,-D_(this._dateAdapter,this.activeDate,this.minDate,this.maxDate));break;case 35:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,Fo-D_(this._dateAdapter,this.activeDate,this.minDate,this.maxDate)-1);break;case 33:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,e.altKey?-Fo*10:-Fo);break;case 34:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,e.altKey?Fo*10:Fo);break;case 13:case 32:this._selectionKeyPressed=!0;break;default:return}this._dateAdapter.compareDate(i,this.activeDate)&&this.activeDateChange.emit(this.activeDate),this._focusActiveCellAfterViewChecked(),e.preventDefault()}_handleCalendarBodyKeyup(e){(e.keyCode===32||e.keyCode===13)&&(this._selectionKeyPressed&&this._yearSelected({value:this._dateAdapter.getYear(this._activeDate),event:e}),this._selectionKeyPressed=!1)}_getActiveCell(){return D_(this._dateAdapter,this.activeDate,this.minDate,this.maxDate)}_focusActiveCell(){this._matCalendarBody._focusActiveCell()}_focusActiveCellAfterViewChecked(){this._matCalendarBody._scheduleFocusActiveCellAfterViewChecked()}_getDateFromYear(e){let i=this._dateAdapter.getMonth(this.activeDate),r=this._dateAdapter.getNumDaysInMonth(this._dateAdapter.createDate(e,i,1));return this._dateAdapter.createDate(e,i,Math.min(this._dateAdapter.getDate(this.activeDate),r))}_createCellForYear(e){let i=this._dateAdapter.createDate(e,0,1),r=this._dateAdapter.getYearName(i),o=this.dateClass?this.dateClass(i,"multi-year"):void 0;return new E_(e,r,r,this._shouldEnableYear(e),o)}_shouldEnableYear(e){if(e==null||this.maxDate&&e>this._dateAdapter.getYear(this.maxDate)||this.minDate&&e{class t{_changeDetectorRef=u(ye);_dateFormats=u(Cs,{optional:!0});_dateAdapter=u(Bi,{optional:!0});_dir=u(Bt,{optional:!0});_rerenderSubscription=Te.EMPTY;_selectionKeyPressed;get activeDate(){return this._activeDate}set activeDate(e){let i=this._activeDate,r=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e))||this._dateAdapter.today();this._activeDate=this._dateAdapter.clampDate(r,this.minDate,this.maxDate),this._dateAdapter.getYear(i)!==this._dateAdapter.getYear(this._activeDate)&&this._init()}_activeDate;get selected(){return this._selected}set selected(e){e instanceof ha?this._selected=e:this._selected=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e)),this._setSelectedMonth(e)}_selected;get minDate(){return this._minDate}set minDate(e){this._minDate=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e))}_minDate;get maxDate(){return this._maxDate}set maxDate(e){this._maxDate=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e))}_maxDate;dateFilter;dateClass;selectedChange=new U;monthSelected=new U;activeDateChange=new U;_matCalendarBody;_months=he([]);_yearLabel=he("");_todayMonth=he(null);_selectedMonth=he(null);constructor(){this._activeDate=this._dateAdapter.today()}ngAfterContentInit(){this._rerenderSubscription=this._dateAdapter.localeChanges.pipe(Ue(null)).subscribe(()=>this._init())}ngOnDestroy(){this._rerenderSubscription.unsubscribe()}_monthSelected(e){let i=e.value,r=this._dateAdapter.createDate(this._dateAdapter.getYear(this.activeDate),i,1);this.monthSelected.emit(r);let o=this._getDateFromMonth(i);this.selectedChange.emit(o)}_updateActiveDate(e){let i=e.value,r=this._activeDate;this.activeDate=this._getDateFromMonth(i),this._dateAdapter.compareDate(r,this.activeDate)&&this.activeDateChange.emit(this.activeDate)}_handleCalendarBodyKeydown(e){let i=this._activeDate,r=this._isRtl();switch(e.keyCode){case 37:this.activeDate=this._dateAdapter.addCalendarMonths(this._activeDate,r?1:-1);break;case 39:this.activeDate=this._dateAdapter.addCalendarMonths(this._activeDate,r?-1:1);break;case 38:this.activeDate=this._dateAdapter.addCalendarMonths(this._activeDate,-4);break;case 40:this.activeDate=this._dateAdapter.addCalendarMonths(this._activeDate,4);break;case 36:this.activeDate=this._dateAdapter.addCalendarMonths(this._activeDate,-this._dateAdapter.getMonth(this._activeDate));break;case 35:this.activeDate=this._dateAdapter.addCalendarMonths(this._activeDate,11-this._dateAdapter.getMonth(this._activeDate));break;case 33:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,e.altKey?-10:-1);break;case 34:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,e.altKey?10:1);break;case 13:case 32:this._selectionKeyPressed=!0;break;default:return}this._dateAdapter.compareDate(i,this.activeDate)&&(this.activeDateChange.emit(this.activeDate),this._focusActiveCellAfterViewChecked()),e.preventDefault()}_handleCalendarBodyKeyup(e){(e.keyCode===32||e.keyCode===13)&&(this._selectionKeyPressed&&this._monthSelected({value:this._dateAdapter.getMonth(this._activeDate),event:e}),this._selectionKeyPressed=!1)}_init(){this._setSelectedMonth(this.selected),this._todayMonth.set(this._getMonthInCurrentYear(this._dateAdapter.today())),this._yearLabel.set(this._dateAdapter.getYearName(this.activeDate));let e=this._dateAdapter.getMonthNames("short");this._months.set([[0,1,2,3],[4,5,6,7],[8,9,10,11]].map(i=>i.map(r=>this._createCellForMonth(r,e[r])))),this._changeDetectorRef.markForCheck()}_focusActiveCell(){this._matCalendarBody._focusActiveCell()}_focusActiveCellAfterViewChecked(){this._matCalendarBody._scheduleFocusActiveCellAfterViewChecked()}_getMonthInCurrentYear(e){return e&&this._dateAdapter.getYear(e)==this._dateAdapter.getYear(this.activeDate)?this._dateAdapter.getMonth(e):null}_getDateFromMonth(e){let i=this._dateAdapter.createDate(this._dateAdapter.getYear(this.activeDate),e,1),r=this._dateAdapter.getNumDaysInMonth(i);return this._dateAdapter.createDate(this._dateAdapter.getYear(this.activeDate),e,Math.min(this._dateAdapter.getDate(this.activeDate),r))}_createCellForMonth(e,i){let r=this._dateAdapter.createDate(this._dateAdapter.getYear(this.activeDate),e,1),o=this._dateAdapter.format(r,this._dateFormats.display.monthYearA11yLabel),a=this.dateClass?this.dateClass(r,"year"):void 0;return new E_(e,i.toLocaleUpperCase(),o,this._shouldEnableMonth(e),a)}_shouldEnableMonth(e){let i=this._dateAdapter.getYear(this.activeDate);if(e==null||this._isYearAndMonthAfterMaxDate(i,e)||this._isYearAndMonthBeforeMinDate(i,e))return!1;if(!this.dateFilter)return!0;let r=this._dateAdapter.createDate(i,e,1);for(let o=r;this._dateAdapter.getMonth(o)==e;o=this._dateAdapter.addCalendarDays(o,1))if(this.dateFilter(o))return!0;return!1}_isYearAndMonthAfterMaxDate(e,i){if(this.maxDate){let r=this._dateAdapter.getYear(this.maxDate),o=this._dateAdapter.getMonth(this.maxDate);return e>r||e===r&&i>o}return!1}_isYearAndMonthBeforeMinDate(e,i){if(this.minDate){let r=this._dateAdapter.getYear(this.minDate),o=this._dateAdapter.getMonth(this.minDate);return e{class t{_intl=u(gp);calendar=u(lA);_dateAdapter=u(Bi,{optional:!0});_dateFormats=u(Cs,{optional:!0});_periodButtonText;_periodButtonDescription;_periodButtonLabel;_prevButtonLabel;_nextButtonLabel;constructor(){u(ht).load(Jr);let e=u(ye);this._updateLabels(),this.calendar.stateChanges.subscribe(()=>{this._updateLabels(),e.markForCheck()})}get periodButtonText(){return this._periodButtonText}get periodButtonDescription(){return this._periodButtonDescription}get periodButtonLabel(){return this._periodButtonLabel}get prevButtonLabel(){return this._prevButtonLabel}get nextButtonLabel(){return this._nextButtonLabel}currentPeriodClicked(){this.calendar.currentView=this.calendar.currentView=="month"?"multi-year":"month"}previousClicked(){this.previousEnabled()&&(this.calendar.activeDate=this.calendar.currentView=="month"?this._dateAdapter.addCalendarMonths(this.calendar.activeDate,-1):this._dateAdapter.addCalendarYears(this.calendar.activeDate,this.calendar.currentView=="year"?-1:-Fo))}nextClicked(){this.nextEnabled()&&(this.calendar.activeDate=this.calendar.currentView=="month"?this._dateAdapter.addCalendarMonths(this.calendar.activeDate,1):this._dateAdapter.addCalendarYears(this.calendar.activeDate,this.calendar.currentView=="year"?1:Fo))}previousEnabled(){return this.calendar.minDate?!this.calendar.minDate||!this._isSameView(this.calendar.activeDate,this.calendar.minDate):!0}nextEnabled(){return!this.calendar.maxDate||!this._isSameView(this.calendar.activeDate,this.calendar.maxDate)}_updateLabels(){let e=this.calendar,i=this._intl,r=this._dateAdapter;e.currentView==="month"?(this._periodButtonText=r.format(e.activeDate,this._dateFormats.display.monthYearLabel).toLocaleUpperCase(),this._periodButtonDescription=r.format(e.activeDate,this._dateFormats.display.monthYearLabel).toLocaleUpperCase(),this._periodButtonLabel=i.switchToMultiYearViewLabel,this._prevButtonLabel=i.prevMonthLabel,this._nextButtonLabel=i.nextMonthLabel):e.currentView==="year"?(this._periodButtonText=r.getYearName(e.activeDate),this._periodButtonDescription=r.getYearName(e.activeDate),this._periodButtonLabel=i.switchToMonthViewLabel,this._prevButtonLabel=i.prevYearLabel,this._nextButtonLabel=i.nextYearLabel):(this._periodButtonText=i.formatYearRange(...this._formatMinAndMaxYearLabels()),this._periodButtonDescription=i.formatYearRangeLabel(...this._formatMinAndMaxYearLabels()),this._periodButtonLabel=i.switchToMonthViewLabel,this._prevButtonLabel=i.prevMultiYearLabel,this._nextButtonLabel=i.nextMultiYearLabel)}_isSameView(e,i){return this.calendar.currentView=="month"?this._dateAdapter.getYear(e)==this._dateAdapter.getYear(i)&&this._dateAdapter.getMonth(e)==this._dateAdapter.getMonth(i):this.calendar.currentView=="year"?this._dateAdapter.getYear(e)==this._dateAdapter.getYear(i):z6(this._dateAdapter,e,i,this.calendar.minDate,this.calendar.maxDate)}_formatMinAndMaxYearLabels(){let i=this._dateAdapter.getYear(this.calendar.activeDate)-D_(this._dateAdapter,this.calendar.activeDate,this.calendar.minDate,this.calendar.maxDate),r=i+Fo-1,o=this._dateAdapter.getYearName(this._dateAdapter.createDate(i,0,1)),a=this._dateAdapter.getYearName(this._dateAdapter.createDate(r,0,1));return[o,a]}_periodButtonLabelId=u(Ze).getId("mat-calendar-period-label-");static \u0275fac=function(i){return new(i||t)};static \u0275cmp=E({type:t,selectors:[["mat-calendar-header"]],exportAs:["matCalendarHeader"],ngContentSelectors:i0e,decls:17,vars:13,consts:[[1,"mat-calendar-header"],[1,"mat-calendar-controls"],["aria-live","polite",1,"cdk-visually-hidden",3,"id"],["matButton","","type","button",1,"mat-calendar-period-button",3,"click"],["aria-hidden","true"],["viewBox","0 0 10 5","focusable","false","aria-hidden","true",1,"mat-calendar-arrow"],["points","0,0 5,5 10,0"],[1,"mat-calendar-spacer"],["matIconButton","","type","button","disabledInteractive","",1,"mat-calendar-previous-button",3,"click","disabled","matTooltip"],["viewBox","0 0 24 24","focusable","false","aria-hidden","true"],["d","M15.41 7.41L14 6l-6 6 6 6 1.41-1.41L10.83 12z"],["matIconButton","","type","button","disabledInteractive","",1,"mat-calendar-next-button",3,"click","disabled","matTooltip"],["d","M10 6L8.59 7.41 13.17 12l-4.58 4.59L10 18l6-6z"]],template:function(i,r){i&1&&(Se(),m(0,"div",0)(1,"div",1)(2,"span",2),g(3),h(),m(4,"button",3),S("click",function(){return r.currentPeriodClicked()}),m(5,"span",4),g(6),h(),Zt(),m(7,"svg",5),M(8,"polygon",6),h()(),Wo(),M(9,"div",7),ne(10),m(11,"button",8),S("click",function(){return r.previousClicked()}),Zt(),m(12,"svg",9),M(13,"path",10),h()(),Wo(),m(14,"button",11),S("click",function(){return r.nextClicked()}),Zt(),m(15,"svg",9),M(16,"path",12),h()()()()),i&2&&(f(2),v("id",r._periodButtonLabelId),f(),N(r.periodButtonDescription),f(),X("aria-label",r.periodButtonLabel)("aria-describedby",r._periodButtonLabelId),f(2),N(r.periodButtonText),f(),G("mat-calendar-invert",r.calendar.currentView!=="month"),f(4),v("disabled",!r.previousEnabled())("matTooltip",r.prevButtonLabel),X("aria-label",r.prevButtonLabel),f(3),v("disabled",!r.nextEnabled())("matTooltip",r.nextButtonLabel),X("aria-label",r.nextButtonLabel))},dependencies:[Mt,Yt,Ao],encapsulation:2,changeDetection:0})}return t})(),lA=(()=>{class t{_dateAdapter=u(Bi,{optional:!0});_dateFormats=u(Cs,{optional:!0});_changeDetectorRef=u(ye);_elementRef=u(Y);headerComponent;_calendarHeaderPortal;_intlChanges;_moveFocusOnNextTick=!1;get startAt(){return this._startAt}set startAt(e){this._startAt=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e))}_startAt;startView="month";get selected(){return this._selected}set selected(e){e instanceof ha?this._selected=e:this._selected=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e))}_selected;get minDate(){return this._minDate}set minDate(e){this._minDate=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e))}_minDate;get maxDate(){return this._maxDate}set maxDate(e){this._maxDate=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e))}_maxDate;dateFilter;dateClass;comparisonStart;comparisonEnd;startDateAccessibleName;endDateAccessibleName;selectedChange=new U;yearSelected=new U;monthSelected=new U;viewChanged=new U(!0);_userSelection=new U;_userDragDrop=new U;monthView;yearView;multiYearView;get activeDate(){return this._clampedActiveDate}set activeDate(e){this._clampedActiveDate=this._dateAdapter.clampDate(e,this.minDate,this.maxDate),this.stateChanges.next(),this._changeDetectorRef.markForCheck()}_clampedActiveDate;get currentView(){return this._currentView}set currentView(e){let i=this._currentView!==e?e:null;this._currentView=e,this._moveFocusOnNextTick=!0,this._changeDetectorRef.markForCheck(),i&&(this.stateChanges.next(),this.viewChanged.emit(i))}_currentView;_activeDrag=null;stateChanges=new z;constructor(){this._intlChanges=u(gp).changes.subscribe(()=>{this._changeDetectorRef.markForCheck(),this.stateChanges.next()})}ngAfterContentInit(){this._calendarHeaderPortal=new to(this.headerComponent||$6),this.activeDate=this.startAt||this._dateAdapter.today(),this._currentView=this.startView}ngAfterViewChecked(){this._moveFocusOnNextTick&&(this._moveFocusOnNextTick=!1,this.focusActiveCell())}ngOnDestroy(){this._intlChanges.unsubscribe(),this.stateChanges.complete()}ngOnChanges(e){let i=e.minDate&&!this._dateAdapter.sameDate(e.minDate.previousValue,e.minDate.currentValue)?e.minDate:void 0,r=e.maxDate&&!this._dateAdapter.sameDate(e.maxDate.previousValue,e.maxDate.currentValue)?e.maxDate:void 0,o=i||r||e.dateFilter;if(o&&!o.firstChange){let a=this._getCurrentViewComponent();a&&(this._elementRef.nativeElement.contains(wo())&&(this._moveFocusOnNextTick=!0),this._changeDetectorRef.detectChanges(),a._init())}this.stateChanges.next()}focusActiveCell(){this._getCurrentViewComponent()._focusActiveCell(!1)}updateTodaysDate(){this._getCurrentViewComponent()._init()}_dateSelected(e){let i=e.value;(this.selected instanceof ha||i&&!this._dateAdapter.sameDate(i,this.selected))&&this.selectedChange.emit(i),this._userSelection.emit(e)}_yearSelectedInMultiYearView(e){this.yearSelected.emit(e)}_monthSelectedInYearView(e){this.monthSelected.emit(e)}_goToDateInView(e,i){this.activeDate=e,this.currentView=i}_dragStarted(e){this._activeDrag=e}_dragEnded(e){this._activeDrag&&(e.value&&this._userDragDrop.emit(e),this._activeDrag=null)}_getCurrentViewComponent(){return this.monthView||this.yearView||this.multiYearView}static \u0275fac=function(i){return new(i||t)};static \u0275cmp=E({type:t,selectors:[["mat-calendar"]],viewQuery:function(i,r){if(i&1&&(ie(F6,5),ie(L6,5),ie(N6,5)),i&2){let o;j(o=H())&&(r.monthView=o.first),j(o=H())&&(r.yearView=o.first),j(o=H())&&(r.multiYearView=o.first)}},hostAttrs:[1,"mat-calendar"],inputs:{headerComponent:"headerComponent",startAt:"startAt",startView:"startView",selected:"selected",minDate:"minDate",maxDate:"maxDate",dateFilter:"dateFilter",dateClass:"dateClass",comparisonStart:"comparisonStart",comparisonEnd:"comparisonEnd",startDateAccessibleName:"startDateAccessibleName",endDateAccessibleName:"endDateAccessibleName"},outputs:{selectedChange:"selectedChange",yearSelected:"yearSelected",monthSelected:"monthSelected",viewChanged:"viewChanged",_userSelection:"_userSelection",_userDragDrop:"_userDragDrop"},exportAs:["matCalendar"],features:[Ce([j6]),Ae],decls:5,vars:2,consts:[[3,"cdkPortalOutlet"],["cdkMonitorSubtreeFocus","","tabindex","-1",1,"mat-calendar-content"],[3,"activeDate","selected","dateFilter","maxDate","minDate","dateClass","comparisonStart","comparisonEnd","startDateAccessibleName","endDateAccessibleName","activeDrag"],[3,"activeDate","selected","dateFilter","maxDate","minDate","dateClass"],[3,"activeDateChange","_userSelection","dragStarted","dragEnded","activeDate","selected","dateFilter","maxDate","minDate","dateClass","comparisonStart","comparisonEnd","startDateAccessibleName","endDateAccessibleName","activeDrag"],[3,"activeDateChange","monthSelected","selectedChange","activeDate","selected","dateFilter","maxDate","minDate","dateClass"],[3,"activeDateChange","yearSelected","selectedChange","activeDate","selected","dateFilter","maxDate","minDate","dateClass"]],template:function(i,r){if(i&1&&(A(0,n0e,0,0,"ng-template",0),m(1,"div",1),V(2,r0e,1,11,"mat-month-view",2)(3,o0e,1,6,"mat-year-view",3)(4,a0e,1,6,"mat-multi-year-view",3),h()),i&2){let o;v("cdkPortalOutlet",r._calendarHeaderPortal),f(2),B((o=r.currentView)==="month"?2:o==="year"?3:o==="multi-year"?4:-1)}},dependencies:[wr,Qf,F6,L6,N6],styles:[`.mat-calendar{display:block;line-height:normal;font-family:var(--mat-datepicker-calendar-text-font, var(--mat-sys-body-medium-font));font-size:var(--mat-datepicker-calendar-text-size, var(--mat-sys-body-medium-size))}.mat-calendar-header{padding:8px 8px 0 8px}.mat-calendar-content{padding:0 8px 8px 8px;outline:none}.mat-calendar-controls{display:flex;align-items:center;margin:5% calc(4.7142857143% - 16px)}.mat-calendar-spacer{flex:1 1 auto}.mat-calendar-period-button{min-width:0;margin:0 8px;font-size:var(--mat-datepicker-calendar-period-button-text-size, var(--mat-sys-title-small-size));font-weight:var(--mat-datepicker-calendar-period-button-text-weight, var(--mat-sys-title-small-weight));--mat-button-text-label-text-color: var(--mat-datepicker-calendar-period-button-text-color, var(--mat-sys-on-surface-variant))}.mat-calendar-arrow{display:inline-block;width:10px;height:5px;margin:0 0 0 5px;vertical-align:middle;fill:var(--mat-datepicker-calendar-period-button-icon-color, var(--mat-sys-on-surface-variant))}.mat-calendar-arrow.mat-calendar-invert{transform:rotate(180deg)}[dir=rtl] .mat-calendar-arrow{margin:0 5px 0 0}@media(forced-colors: active){.mat-calendar-arrow{fill:CanvasText}}.mat-datepicker-content .mat-calendar-previous-button:not(.mat-mdc-button-disabled),.mat-datepicker-content .mat-calendar-next-button:not(.mat-mdc-button-disabled){color:var(--mat-datepicker-calendar-navigation-button-icon-color, var(--mat-sys-on-surface-variant))}[dir=rtl] .mat-calendar-previous-button,[dir=rtl] .mat-calendar-next-button{transform:rotate(180deg)}.mat-calendar-table{border-spacing:0;border-collapse:collapse;width:100%}.mat-calendar-table-header th{text-align:center;padding:0 0 8px 0;color:var(--mat-datepicker-calendar-header-text-color, var(--mat-sys-on-surface-variant));font-size:var(--mat-datepicker-calendar-header-text-size, var(--mat-sys-title-small-size));font-weight:var(--mat-datepicker-calendar-header-text-weight, var(--mat-sys-title-small-weight))}.mat-calendar-table-header-divider{position:relative;height:1px}.mat-calendar-table-header-divider::after{content:"";position:absolute;top:0;left:-8px;right:-8px;height:1px;background:var(--mat-datepicker-calendar-header-divider-color, transparent)}.mat-calendar-body-cell-content::before{margin:calc(calc(var(--mat-focus-indicator-border-width, 3px) + 3px)*-1)}.mat-calendar-body-cell:focus .mat-focus-indicator::before{content:""} +`],encapsulation:2,changeDetection:0})}return t})(),W6=new O("mat-datepicker-scroll-strategy",{providedIn:"root",factory:()=>{let t=u(de);return()=>En(t)}});function b0e(t){let n=u(de);return()=>En(n)}var v0e={provide:W6,deps:[],useFactory:b0e},G6=(()=>{class t{_elementRef=u(Y);_animationsDisabled=Ye();_changeDetectorRef=u(ye);_globalModel=u(M_);_dateAdapter=u(Bi);_ngZone=u(ae);_rangeSelectionStrategy=u(H6,{optional:!0});_stateChanges;_model;_eventCleanups;_animationFallback;_calendar;color;datepicker;comparisonStart;comparisonEnd;startDateAccessibleName;endDateAccessibleName;_isAbove;_animationDone=new z;_isAnimating=!1;_closeButtonText;_closeButtonFocused;_actionsPortal=null;_dialogLabelId;constructor(){if(u(ht).load(Jr),this._closeButtonText=u(gp).closeCalendarLabel,!this._animationsDisabled){let e=this._elementRef.nativeElement,i=u(ze);this._eventCleanups=this._ngZone.runOutsideAngular(()=>[i.listen(e,"animationstart",this._handleAnimationEvent),i.listen(e,"animationend",this._handleAnimationEvent),i.listen(e,"animationcancel",this._handleAnimationEvent)])}}ngAfterViewInit(){this._stateChanges=this.datepicker.stateChanges.subscribe(()=>{this._changeDetectorRef.markForCheck()}),this._calendar.focusActiveCell()}ngOnDestroy(){clearTimeout(this._animationFallback),this._eventCleanups?.forEach(e=>e()),this._stateChanges?.unsubscribe(),this._animationDone.complete()}_handleUserSelection(e){let i=this._model.selection,r=e.value,o=i instanceof ha;if(o&&this._rangeSelectionStrategy){let a=this._rangeSelectionStrategy.selectionFinished(r,i,e.event);this._model.updateSelection(a,this)}else r&&(o||!this._dateAdapter.sameDate(r,i))&&this._model.add(r);(!this._model||this._model.isComplete())&&!this._actionsPortal&&this.datepicker.close()}_handleUserDragDrop(e){this._model.updateSelection(e.value,this)}_startExitAnimation(){this._elementRef.nativeElement.classList.add("mat-datepicker-content-exit"),this._animationsDisabled?this._animationDone.next():(clearTimeout(this._animationFallback),this._animationFallback=setTimeout(()=>{this._isAnimating||this._animationDone.next()},200))}_handleAnimationEvent=e=>{let i=this._elementRef.nativeElement;e.target!==i||!e.animationName.startsWith("_mat-datepicker-content")||(clearTimeout(this._animationFallback),this._isAnimating=e.type==="animationstart",i.classList.toggle("mat-datepicker-content-animating",this._isAnimating),this._isAnimating||this._animationDone.next())};_getSelected(){return this._model.selection}_applyPendingSelection(){this._model!==this._globalModel&&this._globalModel.updateSelection(this._model.selection,this)}_assignActions(e,i){this._model=e?this._globalModel.clone():this._globalModel,this._actionsPortal=e,i&&this._changeDetectorRef.detectChanges()}static \u0275fac=function(i){return new(i||t)};static \u0275cmp=E({type:t,selectors:[["mat-datepicker-content"]],viewQuery:function(i,r){if(i&1&&ie(lA,5),i&2){let o;j(o=H())&&(r._calendar=o.first)}},hostAttrs:[1,"mat-datepicker-content"],hostVars:6,hostBindings:function(i,r){i&2&&(nt(r.color?"mat-"+r.color:""),G("mat-datepicker-content-touch",r.datepicker.touchUi)("mat-datepicker-content-animations-enabled",!r._animationsDisabled))},inputs:{color:"color"},exportAs:["matDatepickerContent"],decls:5,vars:26,consts:[["cdkTrapFocus","","role","dialog",1,"mat-datepicker-content-container"],[3,"yearSelected","monthSelected","viewChanged","_userSelection","_userDragDrop","id","startAt","startView","minDate","maxDate","dateFilter","headerComponent","selected","dateClass","comparisonStart","comparisonEnd","startDateAccessibleName","endDateAccessibleName"],[3,"cdkPortalOutlet"],["type","button","matButton","elevated",1,"mat-datepicker-close-button",3,"focus","blur","click","color"]],template:function(i,r){i&1&&(m(0,"div",0)(1,"mat-calendar",1),S("yearSelected",function(a){return r.datepicker._selectYear(a)})("monthSelected",function(a){return r.datepicker._selectMonth(a)})("viewChanged",function(a){return r.datepicker._viewChanged(a)})("_userSelection",function(a){return r._handleUserSelection(a)})("_userDragDrop",function(a){return r._handleUserDragDrop(a)}),h(),A(2,s0e,0,0,"ng-template",2),m(3,"button",3),S("focus",function(){return r._closeButtonFocused=!0})("blur",function(){return r._closeButtonFocused=!1})("click",function(){return r.datepicker.close()}),g(4),h()()),i&2&&(G("mat-datepicker-content-container-with-custom-header",r.datepicker.calendarHeaderComponent)("mat-datepicker-content-container-with-actions",r._actionsPortal),X("aria-modal",!0)("aria-labelledby",r._dialogLabelId??void 0),f(),nt(r.datepicker.panelClass),v("id",r.datepicker.id)("startAt",r.datepicker.startAt)("startView",r.datepicker.startView)("minDate",r.datepicker._getMinDate())("maxDate",r.datepicker._getMaxDate())("dateFilter",r.datepicker._getDateFilter())("headerComponent",r.datepicker.calendarHeaderComponent)("selected",r._getSelected())("dateClass",r.datepicker.dateClass)("comparisonStart",r.comparisonStart)("comparisonEnd",r.comparisonEnd)("startDateAccessibleName",r.startDateAccessibleName)("endDateAccessibleName",r.endDateAccessibleName),f(),v("cdkPortalOutlet",r._actionsPortal),f(),G("cdk-visually-hidden",!r._closeButtonFocused),v("color",r.color||"primary"),f(),N(r._closeButtonText))},dependencies:[DS,lA,wr,Mt],styles:[`@keyframes _mat-datepicker-content-dropdown-enter{from{opacity:0;transform:scaleY(0.8)}to{opacity:1;transform:none}}@keyframes _mat-datepicker-content-dialog-enter{from{opacity:0;transform:scale(0.8)}to{opacity:1;transform:none}}@keyframes _mat-datepicker-content-exit{from{opacity:1}to{opacity:0}}.mat-datepicker-content{display:block;background-color:var(--mat-datepicker-calendar-container-background-color, var(--mat-sys-surface-container-high));color:var(--mat-datepicker-calendar-container-text-color, var(--mat-sys-on-surface));box-shadow:var(--mat-datepicker-calendar-container-elevation-shadow, 0px 0px 0px 0px rgba(0, 0, 0, 0.2), 0px 0px 0px 0px rgba(0, 0, 0, 0.14), 0px 0px 0px 0px rgba(0, 0, 0, 0.12));border-radius:var(--mat-datepicker-calendar-container-shape, var(--mat-sys-corner-large))}.mat-datepicker-content.mat-datepicker-content-animations-enabled{animation:_mat-datepicker-content-dropdown-enter 120ms cubic-bezier(0, 0, 0.2, 1)}.mat-datepicker-content .mat-calendar{width:296px;height:354px}.mat-datepicker-content .mat-datepicker-content-container-with-custom-header .mat-calendar{height:auto}.mat-datepicker-content .mat-datepicker-close-button{position:absolute;top:100%;left:0;margin-top:8px}.mat-datepicker-content-animating .mat-datepicker-content .mat-datepicker-close-button{display:none}.mat-datepicker-content-container{display:flex;flex-direction:column;justify-content:space-between}.mat-datepicker-content-touch{display:block;max-height:80vh;box-shadow:var(--mat-datepicker-calendar-container-touch-elevation-shadow, 0px 0px 0px 0px rgba(0, 0, 0, 0.2), 0px 0px 0px 0px rgba(0, 0, 0, 0.14), 0px 0px 0px 0px rgba(0, 0, 0, 0.12));border-radius:var(--mat-datepicker-calendar-container-touch-shape, var(--mat-sys-corner-extra-large));position:relative;overflow:visible}.mat-datepicker-content-touch.mat-datepicker-content-animations-enabled{animation:_mat-datepicker-content-dialog-enter 150ms cubic-bezier(0, 0, 0.2, 1)}.mat-datepicker-content-touch .mat-datepicker-content-container{min-height:312px;max-height:788px;min-width:250px;max-width:750px}.mat-datepicker-content-touch .mat-calendar{width:100%;height:auto}.mat-datepicker-content-exit.mat-datepicker-content-animations-enabled{animation:_mat-datepicker-content-exit 100ms linear}@media all and (orientation: landscape){.mat-datepicker-content-touch .mat-datepicker-content-container{width:64vh;height:80vh}}@media all and (orientation: portrait){.mat-datepicker-content-touch .mat-datepicker-content-container{width:80vw;height:100vw}.mat-datepicker-content-touch .mat-datepicker-content-container-with-actions{height:115vw}} +`],encapsulation:2,changeDetection:0})}return t})(),V6=(()=>{class t{_injector=u(de);_viewContainerRef=u(ot);_dateAdapter=u(Bi,{optional:!0});_dir=u(Bt,{optional:!0});_model=u(M_);_animationsDisabled=Ye();_scrollStrategy=u(W6);_inputStateChanges=Te.EMPTY;_document=u(_e);calendarHeaderComponent;get startAt(){return this._startAt||(this.datepickerInput?this.datepickerInput.getStartValue():null)}set startAt(e){this._startAt=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e))}_startAt;startView="month";get color(){return this._color||(this.datepickerInput?this.datepickerInput.getThemePalette():void 0)}set color(e){this._color=e}_color;touchUi=!1;get disabled(){return this._disabled===void 0&&this.datepickerInput?this.datepickerInput.disabled:!!this._disabled}set disabled(e){e!==this._disabled&&(this._disabled=e,this.stateChanges.next(void 0))}_disabled;xPosition="start";yPosition="below";restoreFocus=!0;yearSelected=new U;monthSelected=new U;viewChanged=new U(!0);dateClass;openedStream=new U;closedStream=new U;get panelClass(){return this._panelClass}set panelClass(e){this._panelClass=YL(e)}_panelClass;get opened(){return this._opened}set opened(e){e?this.open():this.close()}_opened=!1;id=u(Ze).getId("mat-datepicker-");_getMinDate(){return this.datepickerInput&&this.datepickerInput.min}_getMaxDate(){return this.datepickerInput&&this.datepickerInput.max}_getDateFilter(){return this.datepickerInput&&this.datepickerInput.dateFilter}_overlayRef;_componentRef;_focusedElementBeforeOpen=null;_backdropHarnessClass=`${this.id}-backdrop`;_actionsPortal;datepickerInput;stateChanges=new z;_changeDetectorRef=u(ye);constructor(){this._dateAdapter,this._model.selectionChanged.subscribe(()=>{this._changeDetectorRef.markForCheck()})}ngOnChanges(e){let i=e.xPosition||e.yPosition;if(i&&!i.firstChange&&this._overlayRef){let r=this._overlayRef.getConfig().positionStrategy;r instanceof wh&&(this._setConnectedPositions(r),this.opened&&this._overlayRef.updatePosition())}this.stateChanges.next(void 0)}ngOnDestroy(){this._destroyOverlay(),this.close(),this._inputStateChanges.unsubscribe(),this.stateChanges.complete()}select(e){this._model.add(e)}_selectYear(e){this.yearSelected.emit(e)}_selectMonth(e){this.monthSelected.emit(e)}_viewChanged(e){this.viewChanged.emit(e)}registerInput(e){return this.datepickerInput,this._inputStateChanges.unsubscribe(),this.datepickerInput=e,this._inputStateChanges=e.stateChanges.subscribe(()=>this.stateChanges.next(void 0)),this._model}registerActions(e){this._actionsPortal,this._actionsPortal=e,this._componentRef?.instance._assignActions(e,!0)}removeActions(e){e===this._actionsPortal&&(this._actionsPortal=null,this._componentRef?.instance._assignActions(null,!0))}open(){this._opened||this.disabled||this._componentRef?.instance._isAnimating||(this.datepickerInput,this._focusedElementBeforeOpen=wo(),this._openOverlay(),this._opened=!0,this.openedStream.emit())}close(){if(!this._opened||this._componentRef?.instance._isAnimating)return;let e=this.restoreFocus&&this._focusedElementBeforeOpen&&typeof this._focusedElementBeforeOpen.focus=="function",i=()=>{this._opened&&(this._opened=!1,this.closedStream.emit())};if(this._componentRef){let{instance:r,location:o}=this._componentRef;r._animationDone.pipe(ct(1)).subscribe(()=>{let a=this._document.activeElement;e&&(!a||a===this._document.activeElement||o.nativeElement.contains(a))&&this._focusedElementBeforeOpen.focus(),this._focusedElementBeforeOpen=null,this._destroyOverlay()}),r._startExitAnimation()}e?setTimeout(i):i()}_applyPendingSelection(){this._componentRef?.instance?._applyPendingSelection()}_forwardContentValues(e){e.datepicker=this,e.color=this.color,e._dialogLabelId=this.datepickerInput.getOverlayLabelId(),e._assignActions(this._actionsPortal,!1)}_openOverlay(){this._destroyOverlay();let e=this.touchUi,i=new to(G6,this._viewContainerRef),r=this._overlayRef=zr(this._injector,new Hr({positionStrategy:e?this._getDialogStrategy():this._getDropdownStrategy(),hasBackdrop:!0,backdropClass:[e?"cdk-overlay-dark-backdrop":"mat-overlay-transparent-backdrop",this._backdropHarnessClass],direction:this._dir||"ltr",scrollStrategy:e?hc(this._injector):this._scrollStrategy(),panelClass:`mat-datepicker-${e?"dialog":"popup"}`,disableAnimations:this._animationsDisabled}));this._getCloseStream(r).subscribe(o=>{o&&o.preventDefault(),this.close()}),r.keydownEvents().subscribe(o=>{let a=o.keyCode;(a===38||a===40||a===37||a===39||a===33||a===34)&&o.preventDefault()}),this._componentRef=r.attach(i),this._forwardContentValues(this._componentRef.instance),e||gt(()=>{r.updatePosition()},{injector:this._injector})}_destroyOverlay(){this._overlayRef&&(this._overlayRef.dispose(),this._overlayRef=this._componentRef=null)}_getDialogStrategy(){return Es(this._injector).centerHorizontally().centerVertically()}_getDropdownStrategy(){let e=Na(this._injector,this.datepickerInput.getConnectedOverlayOrigin()).withTransformOriginOn(".mat-datepicker-content").withFlexibleDimensions(!1).withViewportMargin(8).withLockedPosition();return this._setConnectedPositions(e)}_setConnectedPositions(e){let i=this.xPosition==="end"?"end":"start",r=i==="start"?"end":"start",o=this.yPosition==="above"?"bottom":"top",a=o==="top"?"bottom":"top";return e.withPositions([{originX:i,originY:a,overlayX:i,overlayY:o},{originX:i,originY:o,overlayX:i,overlayY:a},{originX:r,originY:a,overlayX:r,overlayY:o},{originX:r,originY:o,overlayX:r,overlayY:a}])}_getCloseStream(e){let i=["ctrlKey","shiftKey","metaKey"];return Je(e.backdropClick(),e.detachments(),e.keydownEvents().pipe(ce(r=>r.keyCode===27&&!Lt(r)||this.datepickerInput&&Lt(r,"altKey")&&r.keyCode===38&&i.every(o=>!Lt(r,o)))))}static \u0275fac=function(i){return new(i||t)};static \u0275dir=P({type:t,inputs:{calendarHeaderComponent:"calendarHeaderComponent",startAt:"startAt",startView:"startView",color:"color",touchUi:[2,"touchUi","touchUi",L],disabled:[2,"disabled","disabled",L],xPosition:"xPosition",yPosition:"yPosition",restoreFocus:[2,"restoreFocus","restoreFocus",L],dateClass:"dateClass",panelClass:"panelClass",opened:[2,"opened","opened",L]},outputs:{yearSelected:"yearSelected",monthSelected:"monthSelected",viewChanged:"viewChanged",openedStream:"opened",closedStream:"closed"},features:[Ae]})}return t})(),q6=(()=>{class t extends V6{static \u0275fac=(()=>{let e;return function(r){return(e||(e=ge(t)))(r||t)}})();static \u0275cmp=E({type:t,selectors:[["mat-datepicker"]],exportAs:["matDatepicker"],features:[Ce([j6,{provide:V6,useExisting:t}]),le],decls:0,vars:0,template:function(i,r){},encapsulation:2,changeDetection:0})}return t})(),pp=class{target;targetElement;value;constructor(n,e){this.target=n,this.targetElement=e,this.value=this.target.value}},y0e=(()=>{class t{_elementRef=u(Y);_dateAdapter=u(Bi,{optional:!0});_dateFormats=u(Cs,{optional:!0});_isInitialized;get value(){return this._model?this._getValueFromModel(this._model.selection):this._pendingValue}set value(e){this._assignValueProgrammatically(e)}_model;get disabled(){return!!this._disabled||this._parentDisabled()}set disabled(e){let i=e,r=this._elementRef.nativeElement;this._disabled!==i&&(this._disabled=i,this.stateChanges.next(void 0)),i&&this._isInitialized&&r.blur&&r.blur()}_disabled;dateChange=new U;dateInput=new U;stateChanges=new z;_onTouched=()=>{};_validatorOnChange=()=>{};_cvaOnChange=()=>{};_valueChangesSubscription=Te.EMPTY;_localeSubscription=Te.EMPTY;_pendingValue;_parseValidator=()=>this._lastValueValid?null:{matDatepickerParse:{text:this._elementRef.nativeElement.value}};_filterValidator=e=>{let i=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e.value));return!i||this._matchesFilter(i)?null:{matDatepickerFilter:!0}};_minValidator=e=>{let i=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e.value)),r=this._getMinDate();return!r||!i||this._dateAdapter.compareDate(r,i)<=0?null:{matDatepickerMin:{min:r,actual:i}}};_maxValidator=e=>{let i=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e.value)),r=this._getMaxDate();return!r||!i||this._dateAdapter.compareDate(r,i)>=0?null:{matDatepickerMax:{max:r,actual:i}}};_getValidators(){return[this._parseValidator,this._minValidator,this._maxValidator,this._filterValidator]}_registerModel(e){this._model=e,this._valueChangesSubscription.unsubscribe(),this._pendingValue&&this._assignValue(this._pendingValue),this._valueChangesSubscription=this._model.selectionChanged.subscribe(i=>{if(this._shouldHandleChangeEvent(i)){let r=this._getValueFromModel(i.selection);this._lastValueValid=this._isValidValue(r),this._cvaOnChange(r),this._onTouched(),this._formatValue(r),this.dateInput.emit(new pp(this,this._elementRef.nativeElement)),this.dateChange.emit(new pp(this,this._elementRef.nativeElement))}})}_lastValueValid=!1;constructor(){this._localeSubscription=this._dateAdapter.localeChanges.subscribe(()=>{this._assignValueProgrammatically(this.value)})}ngAfterViewInit(){this._isInitialized=!0}ngOnChanges(e){x0e(e,this._dateAdapter)&&this.stateChanges.next(void 0)}ngOnDestroy(){this._valueChangesSubscription.unsubscribe(),this._localeSubscription.unsubscribe(),this.stateChanges.complete()}registerOnValidatorChange(e){this._validatorOnChange=e}validate(e){return this._validator?this._validator(e):null}writeValue(e){this._assignValueProgrammatically(e)}registerOnChange(e){this._cvaOnChange=e}registerOnTouched(e){this._onTouched=e}setDisabledState(e){this.disabled=e}_onKeydown(e){let i=["ctrlKey","shiftKey","metaKey"];Lt(e,"altKey")&&e.keyCode===40&&i.every(o=>!Lt(e,o))&&!this._elementRef.nativeElement.readOnly&&(this._openPopup(),e.preventDefault())}_onInput(e){let i=e.target.value,r=this._lastValueValid,o=this._dateAdapter.parse(i,this._dateFormats.parse.dateInput);this._lastValueValid=this._isValidValue(o),o=this._dateAdapter.getValidDateOrNull(o);let a=!this._dateAdapter.sameDate(o,this.value);!o||a?this._cvaOnChange(o):(i&&!this.value&&this._cvaOnChange(o),r!==this._lastValueValid&&this._validatorOnChange()),a&&(this._assignValue(o),this.dateInput.emit(new pp(this,this._elementRef.nativeElement)))}_onChange(){this.dateChange.emit(new pp(this,this._elementRef.nativeElement))}_onBlur(){this.value&&this._formatValue(this.value),this._onTouched()}_formatValue(e){this._elementRef.nativeElement.value=e!=null?this._dateAdapter.format(e,this._dateFormats.display.dateInput):""}_assignValue(e){this._model?(this._assignValueToModel(e),this._pendingValue=null):this._pendingValue=e}_isValidValue(e){return!e||this._dateAdapter.isValid(e)}_parentDisabled(){return!1}_assignValueProgrammatically(e){e=this._dateAdapter.deserialize(e),this._lastValueValid=this._isValidValue(e),e=this._dateAdapter.getValidDateOrNull(e),this._assignValue(e),this._formatValue(e)}_matchesFilter(e){let i=this._getDateFilter();return!i||i(e)}static \u0275fac=function(i){return new(i||t)};static \u0275dir=P({type:t,inputs:{value:"value",disabled:[2,"disabled","disabled",L]},outputs:{dateChange:"dateChange",dateInput:"dateInput"},features:[Ae]})}return t})();function x0e(t,n){let e=Object.keys(t);for(let i of e){let{previousValue:r,currentValue:o}=t[i];if(n.isDateInstance(r)&&n.isDateInstance(o)){if(!n.sameDate(r,o))return!0}else return!0}return!1}var C0e={provide:rr,useExisting:ri(()=>Sw),multi:!0},w0e={provide:na,useExisting:ri(()=>Sw),multi:!0},Sw=(()=>{class t extends y0e{_formField=u(ta,{optional:!0});_closedSubscription=Te.EMPTY;_openedSubscription=Te.EMPTY;set matDatepicker(e){e&&(this._datepicker=e,this._ariaOwns.set(e.opened?e.id:null),this._closedSubscription=e.closedStream.subscribe(()=>{this._onTouched(),this._ariaOwns.set(null)}),this._openedSubscription=e.openedStream.subscribe(()=>{this._ariaOwns.set(e.id)}),this._registerModel(e.registerInput(this)))}_datepicker;_ariaOwns=he(null);get min(){return this._min}set min(e){let i=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e));this._dateAdapter.sameDate(i,this._min)||(this._min=i,this._validatorOnChange())}_min;get max(){return this._max}set max(e){let i=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e));this._dateAdapter.sameDate(i,this._max)||(this._max=i,this._validatorOnChange())}_max;get dateFilter(){return this._dateFilter}set dateFilter(e){let i=this._matchesFilter(this.value);this._dateFilter=e,this._matchesFilter(this.value)!==i&&this._validatorOnChange()}_dateFilter;_validator;constructor(){super(),this._validator=Le.compose(super._getValidators())}getConnectedOverlayOrigin(){return this._formField?this._formField.getConnectedOverlayOrigin():this._elementRef}getOverlayLabelId(){return this._formField?this._formField.getLabelId():this._elementRef.nativeElement.getAttribute("aria-labelledby")}getThemePalette(){return this._formField?this._formField.color:void 0}getStartValue(){return this.value}ngOnDestroy(){super.ngOnDestroy(),this._closedSubscription.unsubscribe(),this._openedSubscription.unsubscribe()}_openPopup(){this._datepicker&&this._datepicker.open()}_getValueFromModel(e){return e}_assignValueToModel(e){this._model&&this._model.updateSelection(e,this)}_getMinDate(){return this._min}_getMaxDate(){return this._max}_getDateFilter(){return this._dateFilter}_shouldHandleChangeEvent(e){return e.source!==this}static \u0275fac=function(i){return new(i||t)};static \u0275dir=P({type:t,selectors:[["input","matDatepicker",""]],hostAttrs:[1,"mat-datepicker-input"],hostVars:6,hostBindings:function(i,r){i&1&&S("input",function(a){return r._onInput(a)})("change",function(){return r._onChange()})("blur",function(){return r._onBlur()})("keydown",function(a){return r._onKeydown(a)}),i&2&&(ci("disabled",r.disabled),X("aria-haspopup",r._datepicker?"dialog":null)("aria-owns",r._ariaOwns())("min",r.min?r._dateAdapter.toIso8601(r.min):null)("max",r.max?r._dateAdapter.toIso8601(r.max):null)("data-mat-calendar",r._datepicker?r._datepicker.id:null))},inputs:{matDatepicker:"matDatepicker",min:"min",max:"max",dateFilter:[0,"matDatepickerFilter","dateFilter"]},exportAs:["matDatepickerInput"],features:[Ce([C0e,w0e,{provide:Th,useExisting:t}]),le]})}return t})(),D0e=(()=>{class t{static \u0275fac=function(i){return new(i||t)};static \u0275dir=P({type:t,selectors:[["","matDatepickerToggleIcon",""]]})}return t})(),cA=(()=>{class t{_intl=u(gp);_changeDetectorRef=u(ye);_stateChanges=Te.EMPTY;datepicker;tabIndex;ariaLabel;get disabled(){return this._disabled===void 0&&this.datepicker?this.datepicker.disabled:!!this._disabled}set disabled(e){this._disabled=e}_disabled;disableRipple;_customIcon;_button;constructor(){let e=u(new Oi("tabindex"),{optional:!0}),i=Number(e);this.tabIndex=i||i===0?i:null}ngOnChanges(e){e.datepicker&&this._watchStateChanges()}ngOnDestroy(){this._stateChanges.unsubscribe()}ngAfterContentInit(){this._watchStateChanges()}_open(e){this.datepicker&&!this.disabled&&(this.datepicker.open(),e.stopPropagation())}_watchStateChanges(){let e=this.datepicker?this.datepicker.stateChanges:Q(),i=this.datepicker&&this.datepicker.datepickerInput?this.datepicker.datepickerInput.stateChanges:Q(),r=this.datepicker?Je(this.datepicker.openedStream,this.datepicker.closedStream):Q();this._stateChanges.unsubscribe(),this._stateChanges=Je(this._intl.changes,e,i,r).subscribe(()=>this._changeDetectorRef.markForCheck())}static \u0275fac=function(i){return new(i||t)};static \u0275cmp=E({type:t,selectors:[["mat-datepicker-toggle"]],contentQueries:function(i,r,o){if(i&1&&xe(o,D0e,5),i&2){let a;j(a=H())&&(r._customIcon=a.first)}},viewQuery:function(i,r){if(i&1&&ie(l0e,5),i&2){let o;j(o=H())&&(r._button=o.first)}},hostAttrs:[1,"mat-datepicker-toggle"],hostVars:8,hostBindings:function(i,r){i&1&&S("click",function(a){return r._open(a)}),i&2&&(X("tabindex",null)("data-mat-calendar",r.datepicker?r.datepicker.id:null),G("mat-datepicker-toggle-active",r.datepicker&&r.datepicker.opened)("mat-accent",r.datepicker&&r.datepicker.color==="accent")("mat-warn",r.datepicker&&r.datepicker.color==="warn"))},inputs:{datepicker:[0,"for","datepicker"],tabIndex:"tabIndex",ariaLabel:[0,"aria-label","ariaLabel"],disabled:[2,"disabled","disabled",L],disableRipple:"disableRipple"},exportAs:["matDatepickerToggle"],features:[Ae],ngContentSelectors:d0e,decls:4,vars:7,consts:[["button",""],["matIconButton","","type","button",3,"tabIndex","disabled","disableRipple"],["viewBox","0 0 24 24","width","24px","height","24px","fill","currentColor","focusable","false","aria-hidden","true",1,"mat-datepicker-toggle-default-icon"],["d","M19 3h-1V1h-2v2H8V1H6v2H5c-1.11 0-1.99.9-1.99 2L3 19c0 1.1.89 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm0 16H5V8h14v11zM7 10h5v5H7z"]],template:function(i,r){i&1&&(Se(c0e),m(0,"button",1,0),V(2,u0e,2,0,":svg:svg",2),ne(3),h()),i&2&&(v("tabIndex",r.disabled?-1:r.tabIndex)("disabled",r.disabled)("disableRipple",r.disableRipple),X("aria-haspopup",r.datepicker?"dialog":null)("aria-label",r.ariaLabel||r._intl.openCalendarLabel)("aria-expanded",r.datepicker?r.datepicker.opened:null),f(2),B(r._customIcon?-1:2))},dependencies:[Yt],styles:[`.mat-datepicker-toggle{pointer-events:auto;color:var(--mat-datepicker-toggle-icon-color, var(--mat-sys-on-surface-variant))}.mat-datepicker-toggle button{color:inherit}.mat-datepicker-toggle-active{color:var(--mat-datepicker-toggle-active-state-icon-color, var(--mat-sys-primary))}@media(forced-colors: active){.mat-datepicker-toggle-default-icon{color:CanvasText}} +`],encapsulation:2,changeDetection:0})}return t})();var Y6=(()=>{class t{static \u0275fac=function(i){return new(i||t)};static \u0275mod=ee({type:t});static \u0275inj=J({providers:[gp,v0e],imports:[Be,nr,cl,ko,De,G6,cA,$6,Cr]})}return t})();function M0e(t,n){t&1&&(m(0,"div",1),M(1,"mat-spinner"),h())}function S0e(t,n){t&1&&(m(0,"mat-error"),g(1," Employee number is required "),h())}function k0e(t,n){t&1&&(m(0,"mat-error"),g(1," First name is required "),h())}function T0e(t,n){t&1&&(m(0,"mat-error"),g(1," Last name is required "),h())}function I0e(t,n){t&1&&(m(0,"mat-error"),g(1," Date of birth is required "),h())}function A0e(t,n){t&1&&(m(0,"mat-error"),g(1," Email is required "),h())}function O0e(t,n){t&1&&(m(0,"mat-error"),g(1," Please enter a valid email "),h())}function R0e(t,n){t&1&&(m(0,"mat-error"),g(1," Phone number is required "),h())}function P0e(t,n){if(t&1&&(m(0,"mat-option",25),g(1),h()),t&2){let e=n.$implicit;v("value",e.value),f(),pe(" ",e.label," ")}}function F0e(t,n){t&1&&(m(0,"mat-error"),g(1," Gender is required "),h())}function N0e(t,n){if(t&1&&(m(0,"mat-option",25),g(1),h()),t&2){let e=n.$implicit;v("value",e.id),f(),pe(" ",e.name," ")}}function L0e(t,n){t&1&&(m(0,"mat-error"),g(1," Department is required "),h())}function V0e(t,n){if(t&1&&(m(0,"mat-option",25),g(1),h()),t&2){let e=n.$implicit;v("value",e.id),f(),pe(" ",e.positionTitle," ")}}function B0e(t,n){t&1&&(m(0,"mat-error"),g(1," Position is required "),h())}function j0e(t,n){t&1&&(m(0,"mat-error"),g(1," Salary is required "),h())}function H0e(t,n){t&1&&(m(0,"mat-error"),g(1," Salary must be greater than 0 "),h())}var dA=(()=>{let n=class n{constructor(){this.fb=u(ro),this.router=u(Re),this.route=u(Si),this.snackBar=u(ui),this.employeeService=u(mp),this.positionService=u($c),this.departmentService=u(Bs),this.loading=!1,this.isEditMode=!1,this.positions=[],this.departments=[],this.genderOptions=[{value:Lu.Male,label:"Male"},{value:Lu.Female,label:"Female"}]}ngOnInit(){this.initForm(),this.loadDependencies(),this.checkEditMode()}initForm(){this.employeeForm=this.fb.group({employeeNumber:["",[Le.required,Le.maxLength(50)]],prefix:["",Le.maxLength(10)],firstName:["",[Le.required,Le.maxLength(100)]],middleName:["",Le.maxLength(100)],lastName:["",[Le.required,Le.maxLength(100)]],birthday:[null,Le.required],gender:[Lu.Male,Le.required],email:["",[Le.required,Le.email,Le.maxLength(255)]],phone:["",[Le.required,Le.maxLength(20)]],salary:[0,[Le.required,Le.min(0)]],positionId:["",Le.required],departmentId:["",Le.required]})}loadDependencies(){this.departmentService.getAll().subscribe({next:i=>{this.departments=i},error:i=>{console.error("Error loading departments:",i),this.showMessage("Error loading departments")}}),this.positionService.getAll().subscribe({next:i=>{this.positions=i},error:i=>{console.error("Error loading positions:",i),this.showMessage("Error loading positions")}})}checkEditMode(){this.employeeId=this.route.snapshot.paramMap.get("id")||void 0,this.isEditMode=!!this.employeeId,this.isEditMode&&this.employeeId&&this.loadEmployee(this.employeeId)}loadEmployee(i){this.loading=!0,this.employeeService.getById(i).subscribe({next:r=>{this.employeeForm.patchValue({employeeNumber:r.employeeNumber,prefix:r.prefix,firstName:r.firstName,middleName:r.middleName,lastName:r.lastName,birthday:r.birthday||r.dateOfBirth,gender:r.gender,email:r.email,phone:r.phone||r.phoneNumber,salary:r.salary,positionId:r.positionId,departmentId:r.departmentId}),this.loading=!1},error:r=>{console.error("Error loading employee:",r),this.showMessage("Error loading employee"),this.loading=!1}})}onSubmit(){if(this.employeeForm.invalid){this.employeeForm.markAllAsTouched();return}if(this.loading=!0,this.isEditMode&&this.employeeId){let i=k({id:this.employeeId},this.employeeForm.value);this.employeeService.updateEmployee(i).subscribe({next:()=>{this.showMessage("Employee updated successfully"),this.router.navigate(["/employees",this.employeeId])},error:r=>{console.error("Error updating employee:",r),this.showMessage("Error updating employee"),this.loading=!1}})}else{let i=this.employeeForm.value;this.employeeService.createEmployee(i).subscribe({next:r=>{console.log("Employee created - Response:",r),console.log("Employee ID:",r?.id),this.showMessage("Employee created successfully"),r?.id?(console.log("Navigating to detail page:","/employees/"+r.id),this.router.navigate(["/employees",r.id])):(console.warn("No employee ID returned, navigating to list page"),this.router.navigate(["/employees"])),this.loading=!1},error:r=>{console.error("Error creating employee:",r),this.showMessage("Error creating employee"),this.loading=!1}})}}onCancel(){this.router.navigate(["/employees"])}showMessage(i){this.snackBar.open(i,"Close",{duration:3e3,horizontalPosition:"end",verticalPosition:"top"})}getFormTitle(){return this.isEditMode?"Edit Employee":"Create Employee"}};n.\u0275fac=function(r){return new(r||n)},n.\u0275cmp=E({type:n,selectors:[["app-employee-form"]],decls:94,vars:22,consts:[["dobPicker",""],[1,"loading-overlay"],[3,"ngSubmit","formGroup"],[1,"form-section"],[1,"form-row"],["appearance","outline"],["matInput","","formControlName","employeeNumber"],[4,"ngIf"],["matInput","","formControlName","prefix","placeholder","Mr., Mrs., Dr."],["matInput","","formControlName","firstName"],["matInput","","formControlName","middleName"],["matInput","","formControlName","lastName"],["matInput","","formControlName","birthday",3,"matDatepicker"],["matIconSuffix","",3,"for"],["matInput","","type","email","formControlName","email"],["matInput","","formControlName","phone"],["formControlName","gender"],[3,"value",4,"ngFor","ngForOf"],["formControlName","departmentId"],["formControlName","positionId"],["matInput","","type","number","formControlName","salary"],["matTextPrefix",""],[1,"form-actions"],["type","button","mat-stroked-button","",3,"click"],["type","submit","mat-raised-button","","color","primary",3,"disabled"],[3,"value"]],template:function(r,o){if(r&1){let a=q();M(0,"page-header"),m(1,"mat-card")(2,"mat-card-header")(3,"mat-card-title"),g(4),h()(),m(5,"mat-card-content"),V(6,M0e,2,0,"div",1),m(7,"form",2),S("ngSubmit",function(){return T(a),I(o.onSubmit())}),m(8,"div",3)(9,"h3"),g(10,"Personal Information"),h(),m(11,"div",4)(12,"mat-form-field",5)(13,"mat-label"),g(14,"Employee Number"),h(),M(15,"input",6),A(16,S0e,2,0,"mat-error",7),h(),m(17,"mat-form-field",5)(18,"mat-label"),g(19,"Prefix"),h(),M(20,"input",8),h()(),m(21,"div",4)(22,"mat-form-field",5)(23,"mat-label"),g(24,"First Name"),h(),M(25,"input",9),A(26,k0e,2,0,"mat-error",7),h(),m(27,"mat-form-field",5)(28,"mat-label"),g(29,"Middle Name"),h(),M(30,"input",10),h()(),m(31,"div",4)(32,"mat-form-field",5)(33,"mat-label"),g(34,"Last Name"),h(),M(35,"input",11),A(36,T0e,2,0,"mat-error",7),h(),m(37,"mat-form-field",5)(38,"mat-label"),g(39,"Date of Birth"),h(),M(40,"input",12)(41,"mat-datepicker-toggle",13)(42,"mat-datepicker",null,0),A(44,I0e,2,0,"mat-error",7),h()(),m(45,"div",4)(46,"mat-form-field",5)(47,"mat-label"),g(48,"Email"),h(),M(49,"input",14),A(50,A0e,2,0,"mat-error",7)(51,O0e,2,0,"mat-error",7),h(),m(52,"mat-form-field",5)(53,"mat-label"),g(54,"Phone Number"),h(),M(55,"input",15),A(56,R0e,2,0,"mat-error",7),h()(),m(57,"div",4)(58,"mat-form-field",5)(59,"mat-label"),g(60,"Gender"),h(),m(61,"mat-select",16),A(62,P0e,2,2,"mat-option",17),h(),A(63,F0e,2,0,"mat-error",7),h()()(),m(64,"div",3)(65,"h3"),g(66,"Employment Information"),h(),m(67,"div",4)(68,"mat-form-field",5)(69,"mat-label"),g(70,"Department"),h(),m(71,"mat-select",18),A(72,N0e,2,2,"mat-option",17),h(),A(73,L0e,2,0,"mat-error",7),h(),m(74,"mat-form-field",5)(75,"mat-label"),g(76,"Position"),h(),m(77,"mat-select",19),A(78,V0e,2,2,"mat-option",17),h(),A(79,B0e,2,0,"mat-error",7),h()(),m(80,"div",4)(81,"mat-form-field",5)(82,"mat-label"),g(83,"Salary"),h(),M(84,"input",20),m(85,"span",21),g(86,"$\xA0"),h(),A(87,j0e,2,0,"mat-error",7)(88,H0e,2,0,"mat-error",7),h()()(),m(89,"div",22)(90,"button",23),S("click",function(){return T(a),I(o.onCancel())}),g(91," Cancel "),h(),m(92,"button",24),g(93),h()()()()()}if(r&2){let a,s,l,c,d,p,_,b,y,w,C,D,F=Me(43);f(4),N(o.getFormTitle()),f(2),B(o.loading?6:-1),f(),v("formGroup",o.employeeForm),f(9),v("ngIf",(a=o.employeeForm.get("employeeNumber"))==null?null:a.hasError("required")),f(10),v("ngIf",(s=o.employeeForm.get("firstName"))==null?null:s.hasError("required")),f(10),v("ngIf",(l=o.employeeForm.get("lastName"))==null?null:l.hasError("required")),f(4),v("matDatepicker",F),f(),v("for",F),f(3),v("ngIf",(c=o.employeeForm.get("birthday"))==null?null:c.hasError("required")),f(6),v("ngIf",(d=o.employeeForm.get("email"))==null?null:d.hasError("required")),f(),v("ngIf",(p=o.employeeForm.get("email"))==null?null:p.hasError("email")),f(5),v("ngIf",(_=o.employeeForm.get("phone"))==null?null:_.hasError("required")),f(6),v("ngForOf",o.genderOptions),f(),v("ngIf",(b=o.employeeForm.get("gender"))==null?null:b.hasError("required")),f(9),v("ngForOf",o.departments),f(),v("ngIf",(y=o.employeeForm.get("departmentId"))==null?null:y.hasError("required")),f(5),v("ngForOf",o.positions),f(),v("ngIf",(w=o.employeeForm.get("positionId"))==null?null:w.hasError("required")),f(8),v("ngIf",(C=o.employeeForm.get("salary"))==null?null:C.hasError("required")),f(),v("ngIf",(D=o.employeeForm.get("salary"))==null?null:D.hasError("min")),f(4),v("disabled",o.loading),f(),pe(" ",o.isEditMode?"Update":"Create"," ")}},dependencies:[ut,vr,Jt,$n,no,Hi,fu,qt,io,Ji,Ur,Be,Mt,Ut,Ht,zt,Gt,Wt,Pi,Ci,Gi,So,cu,hl,Mn,en,_c,La,wn,Y6,q6,Sw,cA,tV,gi,fi,_i,Qt],styles:["mat-card[_ngcontent-%COMP%]{margin:16px;max-width:1200px}mat-card-header[_ngcontent-%COMP%]{padding:16px;border-bottom:1px solid rgba(0,0,0,.12);margin-bottom:24px}mat-card-header[_ngcontent-%COMP%] mat-card-title[_ngcontent-%COMP%]{font-size:20px;font-weight:500;margin:0}mat-card-content[_ngcontent-%COMP%]{padding:24px;position:relative}.loading-overlay[_ngcontent-%COMP%]{position:absolute;inset:0;background-color:#fffc;display:flex;align-items:center;justify-content:center;z-index:1000}form[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:24px}.form-section[_ngcontent-%COMP%] h3[_ngcontent-%COMP%]{font-size:16px;font-weight:500;margin:0 0 16px;color:#000000de}.form-row[_ngcontent-%COMP%]{display:grid;grid-template-columns:1fr 1fr;gap:16px;margin-bottom:8px}@media (max-width: 768px){.form-row[_ngcontent-%COMP%]{grid-template-columns:1fr}}mat-form-field[_ngcontent-%COMP%]{width:100%}mat-form-field.full-width[_ngcontent-%COMP%]{grid-column:1/-1}.form-actions[_ngcontent-%COMP%]{display:flex;justify-content:flex-end;gap:12px;margin-top:24px;padding-top:24px;border-top:1px solid rgba(0,0,0,.12)}.form-actions[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{min-width:120px}"]});let t=n;return t})();var Q6=()=>["HRAdmin","Manager"],z0e=()=>[5,10,25,50,100],U0e=()=>["HRAdmin"];function $0e(t,n){if(t&1){let e=q();m(0,"button",14),S("click",function(){T(e);let r=x();return I(r.createDepartment())}),m(1,"mat-icon"),g(2,"add"),h(),g(3," Add Department "),h()}}function W0e(t,n){if(t&1&&(m(0,"mat-option",15),g(1),h()),t&2){let e=n.$implicit;v("value",e),f(),pe(" ",e," ")}}function G0e(t,n){t&1&&(m(0,"div",16),M(1,"mat-spinner"),h())}function q0e(t,n){t&1&&(m(0,"th",25),g(1,"Name"),h())}function Y0e(t,n){if(t&1&&(m(0,"td",26),g(1),h()),t&2){let e=n.$implicit;f(),N(e.name)}}function Q0e(t,n){t&1&&(m(0,"th",25),g(1,"Actions"),h())}function K0e(t,n){if(t&1){let e=q();m(0,"button",31),S("click",function(){T(e);let r=x().$implicit,o=x(2);return I(o.editDepartment(r))}),m(1,"mat-icon"),g(2,"edit"),h()()}}function Z0e(t,n){if(t&1){let e=q();m(0,"button",32),S("click",function(){T(e);let r=x().$implicit,o=x(2);return I(o.deleteDepartment(r))}),m(1,"mat-icon"),g(2,"delete"),h()()}}function X0e(t,n){if(t&1){let e=q();m(0,"td",26)(1,"div",27)(2,"button",28),S("click",function(){let r=T(e).$implicit,o=x(2);return I(o.viewDepartment(r))}),m(3,"mat-icon"),g(4,"visibility"),h()(),A(5,K0e,3,0,"button",29)(6,Z0e,3,0,"button",30),h()()}t&2&&(f(5),v("appHasRole",rt(2,Q6)),f(),v("appHasRole",rt(3,U0e)))}function J0e(t,n){t&1&&M(0,"tr",33)}function eve(t,n){t&1&&M(0,"tr",34)}function tve(t,n){if(t&1&&(m(0,"tr",35)(1,"td",36)(2,"div",37)(3,"mat-icon"),g(4,"info"),h(),m(5,"p"),g(6,"No departments found"),h()()()()),t&2){let e=x(2);f(),X("colspan",e.displayedColumns.length)}}function ive(t,n){if(t&1&&(m(0,"table",17),kt(1,18),A(2,q0e,2,0,"th",19)(3,Y0e,2,1,"td",20),Dt(),kt(4,21),A(5,Q0e,2,0,"th",19)(6,X0e,7,4,"td",20),Dt(),A(7,J0e,1,0,"tr",22)(8,eve,1,0,"tr",23)(9,tve,7,1,"tr",24),h()),t&2){let e=x();v("dataSource",e.departments),f(7),v("matHeaderRowDef",e.displayedColumns),f(),v("matRowDefColumns",e.displayedColumns),f(),v("ngIf",e.departments.length===0)}}var K6=(()=>{let n=class n{constructor(){this.departmentService=u(Bs),this.authService=u(Ot),this.router=u(Re),this.fb=u(ro),this.snackBar=u(ui),this.dialog=u(kn),this.departments=[],this.loading=!1,this.totalCount=0,this.pageSize=10,this.pageNumber=1,this.destroy$=new z,this.displayedColumns=["name","actions"]}ngOnInit(){this.initSearchForm(),this.setupAutocomplete(),this.setupAutoSubmit(),this.loadDepartments()}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete()}initSearchForm(){this.searchForm=this.fb.group({Name:[""]})}setupAutocomplete(){this.filteredNames$=this.searchForm.get("Name").valueChanges.pipe(Ue(""),St(300),_n(),je(i=>this.getAutocompleteOptions("Name",i)))}setupAutoSubmit(){this.searchForm.valueChanges.pipe(St(500),_n((i,r)=>JSON.stringify(i)===JSON.stringify(r)),we(this.destroy$)).subscribe(()=>{this.pageNumber=1,this.loadDepartments()})}getAutocompleteOptions(i,r){if(!r||r.length<2)return Q([]);let o={PageNumber:1,PageSize:10,[i]:r};return this.departmentService.getAllPaged(o).pipe(se(a=>a.value.map(l=>l.name).filter((l,c,d)=>l&&d.indexOf(l)===c)),ii(()=>Q([])))}loadDepartments(){this.loading=!0;let i=k({PageNumber:this.pageNumber,PageSize:this.pageSize},this.searchForm.value);Object.keys(i).forEach(r=>{(i[r]===""||i[r]===null||i[r]===void 0)&&delete i[r]}),this.departmentService.getAllPaged(i).subscribe({next:r=>{this.departments=r.value,this.totalCount=r.recordsTotal,this.loading=!1},error:r=>{console.error("Error loading departments:",r),this.loading=!1}})}onClearSearch(){this.searchForm.reset(),this.pageNumber=1,this.paginator&&(this.paginator.pageIndex=0),this.loadDepartments()}onPageChange(i){this.pageSize=i.pageSize,this.pageNumber=i.pageIndex+1,this.loadDepartments()}viewDepartment(i){this.router.navigate(["/departments",i.id])}editDepartment(i){this.router.navigate(["/departments","edit",i.id])}deleteDepartment(i){this.dialog.open(Tr,{width:"400px",data:{title:"Delete Department",message:`Are you sure you want to delete "${i.name}"? This action cannot be undone.`,confirmText:"Delete",cancelText:"Cancel"}}).afterClosed().subscribe(o=>{o&&this.departmentService.delete(i.id).subscribe({next:()=>{this.showMessage(`"${i.name}" has been deleted.`),this.loadDepartments()},error:a=>{console.error("Error deleting department:",a),this.showMessage("Failed to delete department. Please try again.")}})})}createDepartment(){this.router.navigate(["/departments","create"])}canEdit(){return this.authService.isHRAdmin()||this.authService.isManager()}canDelete(){return this.authService.isHRAdmin()}canCreate(){return this.authService.isHRAdmin()||this.authService.isManager()}showMessage(i){this.snackBar.open(i,"Close",{duration:3e3,horizontalPosition:"end",verticalPosition:"top"})}};n.\u0275fac=function(r){return new(r||n)},n.\u0275cmp=E({type:n,selectors:[["app-department-list"]],viewQuery:function(r,o){if(r&1&&ie(or,5),r&2){let a;j(a=H())&&(o.paginator=a.first)}},decls:27,vars:14,consts:[["autoName","matAutocomplete"],[1,"flex-spacer"],["mat-raised-button","","color","primary",3,"click",4,"appHasRole"],[1,"search-form",3,"formGroup"],[1,"search-row"],["appearance","outline"],["matInput","","formControlName","Name",3,"matAutocomplete"],[3,"value",4,"ngFor","ngForOf"],[1,"search-buttons"],["mat-raised-button","","color","accent","type","button",3,"click"],[1,"table-container"],["class","loading-spinner",4,"ngIf"],["mat-table","","class","department-table",3,"dataSource",4,"ngIf"],["showFirstLastButtons","",3,"page","length","pageSize","pageSizeOptions","pageIndex"],["mat-raised-button","","color","primary",3,"click"],[3,"value"],[1,"loading-spinner"],["mat-table","",1,"department-table",3,"dataSource"],["matColumnDef","name"],["mat-header-cell","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","actions"],["mat-header-row","",4,"matHeaderRowDef"],["mat-row","",4,"matRowDef","matRowDefColumns"],["class","mat-row",4,"ngIf"],["mat-header-cell",""],["mat-cell",""],[1,"action-buttons"],["mat-icon-button","","color","primary","matTooltip","View Details",3,"click"],["mat-icon-button","","color","accent","matTooltip","Edit Department",3,"click",4,"appHasRole"],["mat-icon-button","","color","warn","matTooltip","Delete Department",3,"click",4,"appHasRole"],["mat-icon-button","","color","accent","matTooltip","Edit Department",3,"click"],["mat-icon-button","","color","warn","matTooltip","Delete Department",3,"click"],["mat-header-row",""],["mat-row",""],[1,"mat-row"],[1,"mat-cell"],[1,"no-data"]],template:function(r,o){if(r&1){let a=q();M(0,"page-header"),m(1,"mat-card")(2,"mat-card-header")(3,"mat-card-title"),g(4,"Department Directory"),h(),M(5,"div",1),A(6,$0e,4,0,"button",2),h(),m(7,"mat-card-content")(8,"form",3)(9,"div",4)(10,"mat-form-field",5)(11,"mat-label"),g(12,"Department Name"),h(),M(13,"input",6),m(14,"mat-autocomplete",null,0),A(16,W0e,2,2,"mat-option",7),ue(17,"async"),h()(),m(18,"div",8)(19,"button",9),S("click",function(){return T(a),I(o.onClearSearch())}),m(20,"mat-icon"),g(21,"clear"),h(),g(22," Clear Filters "),h()()()(),m(23,"div",10),A(24,G0e,2,0,"div",11)(25,ive,10,4,"table",12),h(),m(26,"mat-paginator",13),S("page",function(l){return T(a),I(o.onPageChange(l))}),h()()()}if(r&2){let a=Me(15);f(6),v("appHasRole",rt(12,Q6)),f(2),v("formGroup",o.searchForm),f(5),v("matAutocomplete",a),f(3),v("ngForOf",Oe(17,10,o.filteredNames$)),f(8),v("ngIf",o.loading),f(),v("ngIf",!o.loading),f(),v("length",o.totalCount)("pageSize",o.pageSize)("pageSizeOptions",rt(13,z0e))("pageIndex",o.pageNumber-1)}},dependencies:[ut,vr,Jt,$n,no,Hi,qt,io,Ji,Ur,Be,Mt,Yt,Ut,Ht,zt,Gt,Wt,tt,st,Mn,en,Ci,Gi,Pi,id,Gc,Yc,Xc,Qc,qc,Jc,Kc,Zc,ed,td,vc,or,gi,fi,$r,Ao,Dw,ww,wn,w_,_i,Tn,Qt,Wn,sn],styles:["mat-card[_ngcontent-%COMP%]{margin:16px}mat-card-header[_ngcontent-%COMP%]{display:flex;align-items:center;margin-bottom:16px;padding:16px;border-bottom:1px solid rgba(0,0,0,.12)}mat-card-header[_ngcontent-%COMP%] mat-card-title[_ngcontent-%COMP%]{font-size:20px;font-weight:500;margin:0}mat-card-header[_ngcontent-%COMP%] .flex-spacer[_ngcontent-%COMP%]{flex:1 1 auto}mat-card-header[_ngcontent-%COMP%] button[_ngcontent-%COMP%] mat-icon[_ngcontent-%COMP%]{margin-right:4px}mat-card-content[_ngcontent-%COMP%]{padding:0}.search-form[_ngcontent-%COMP%]{padding:16px;background-color:#f5f5f5;margin-bottom:0}.search-form[_ngcontent-%COMP%] .search-row[_ngcontent-%COMP%]{display:grid;grid-template-columns:1fr auto;gap:16px;align-items:start}.search-form[_ngcontent-%COMP%] .search-row[_ngcontent-%COMP%] mat-form-field[_ngcontent-%COMP%]{width:100%}.search-form[_ngcontent-%COMP%] .search-row[_ngcontent-%COMP%] .search-buttons[_ngcontent-%COMP%]{display:flex;gap:8px;align-items:center}.search-form[_ngcontent-%COMP%] .search-row[_ngcontent-%COMP%] .search-buttons[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{white-space:nowrap}.search-form[_ngcontent-%COMP%] .search-row[_ngcontent-%COMP%] .search-buttons[_ngcontent-%COMP%] button[_ngcontent-%COMP%] mat-icon[_ngcontent-%COMP%]{margin-right:4px}.table-container[_ngcontent-%COMP%]{position:relative;min-height:300px;overflow-x:auto}.loading-spinner[_ngcontent-%COMP%]{display:flex;justify-content:center;align-items:center;min-height:300px}.department-table[_ngcontent-%COMP%]{width:100%}.department-table[_ngcontent-%COMP%] th[_ngcontent-%COMP%]{font-weight:600;font-size:14px;color:#000000de}.department-table[_ngcontent-%COMP%] td[_ngcontent-%COMP%]{font-size:14px;color:#000000de}.department-table[_ngcontent-%COMP%] .mat-column-name[_ngcontent-%COMP%]{min-width:200px}.department-table[_ngcontent-%COMP%] .mat-column-actions[_ngcontent-%COMP%]{width:120px;text-align:right}.department-table[_ngcontent-%COMP%] .mat-column-actions[_ngcontent-%COMP%] .action-buttons[_ngcontent-%COMP%]{display:flex;justify-content:flex-end;align-items:center;gap:4px}.no-data[_ngcontent-%COMP%]{display:flex;flex-direction:column;align-items:center;justify-content:center;padding:48px 16px;color:#0000008a}.no-data[_ngcontent-%COMP%] mat-icon[_ngcontent-%COMP%]{font-size:48px;width:48px;height:48px;margin-bottom:16px}.no-data[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{margin:0;font-size:16px}mat-paginator[_ngcontent-%COMP%]{border-top:1px solid rgba(0,0,0,.12)}"]});let t=n;return t})();var nve=()=>["HRAdmin","Manager"],rve=()=>["HRAdmin"];function ove(t,n){if(t&1){let e=q();m(0,"button",10),S("click",function(){T(e);let r=x(2);return I(r.editDepartment())}),m(1,"mat-icon"),g(2,"edit"),h(),g(3," Edit "),h()}}function ave(t,n){if(t&1){let e=q();m(0,"button",11),S("click",function(){T(e);let r=x(2);return I(r.deleteDepartment())}),m(1,"mat-icon"),g(2,"delete"),h(),g(3," Delete "),h()}}function sve(t,n){if(t&1&&(m(0,"mat-list-item")(1,"span",7),g(2,"Created At"),h(),m(3,"span",8),g(4),ue(5,"date"),h()()),t&2){let e=x(3);f(4),N(Ei(5,1,e.department.createdAt,"medium"))}}function lve(t,n){if(t&1&&(m(0,"mat-list-item")(1,"span",7),g(2,"Last Modified At"),h(),m(3,"span",8),g(4),ue(5,"date"),h()()),t&2){let e=x(3);f(4),N(Ei(5,1,e.department.lastModifiedAt,"medium"))}}function cve(t,n){if(t&1&&(m(0,"div",6)(1,"h3"),g(2,"Audit Information"),h(),M(3,"mat-divider"),m(4,"mat-list"),A(5,sve,6,4,"mat-list-item",0)(6,lve,6,4,"mat-list-item",0),h()()),t&2){let e=x(2);f(5),v("ngIf",e.department.createdAt),f(),v("ngIf",e.department.lastModifiedAt)}}function dve(t,n){if(t&1){let e=q();m(0,"mat-card")(1,"mat-card-header")(2,"mat-card-title"),g(3,"Department Details"),h(),M(4,"div",1),A(5,ove,4,0,"button",2)(6,ave,4,0,"button",3),m(7,"button",4),S("click",function(){T(e);let r=x();return I(r.goBack())}),m(8,"mat-icon"),g(9,"arrow_back"),h(),g(10," Back to List "),h()(),m(11,"mat-card-content")(12,"div",5)(13,"div",6)(14,"h3"),g(15,"Basic Information"),h(),M(16,"mat-divider"),m(17,"mat-list")(18,"mat-list-item")(19,"span",7),g(20,"Department Name"),h(),m(21,"span",8),g(22),h()()()(),A(23,cve,7,2,"div",9),h()()()}if(t&2){let e=x();f(5),v("appHasRole",rt(4,nve)),f(),v("appHasRole",rt(5,rve)),f(16),N(e.department.name),f(),v("ngIf",e.department.createdAt||e.department.lastModifiedAt)}}function uve(t,n){t&1&&(m(0,"mat-card")(1,"mat-card-content")(2,"div",12),M(3,"mat-spinner"),h()()())}function mve(t,n){if(t&1){let e=q();m(0,"mat-card")(1,"mat-card-content")(2,"div",13)(3,"mat-icon"),g(4,"error"),h(),m(5,"p"),g(6,"Department not found"),h(),m(7,"button",14),S("click",function(){T(e);let r=x();return I(r.goBack())}),g(8," Go Back "),h()()()()}}var Z6=(()=>{let n=class n{constructor(){this.departmentService=u(Bs),this.authService=u(Ot),this.route=u(Si),this.router=u(Re),this.snackBar=u(ui),this.dialog=u(kn),this.loading=!1}ngOnInit(){let i=this.route.snapshot.paramMap.get("id");i&&this.loadDepartment(i)}loadDepartment(i){this.loading=!0,this.departmentService.getById(i).subscribe({next:r=>{this.department=r,this.loading=!1},error:r=>{console.error("Error loading department:",r),this.showMessage("Error loading department"),this.loading=!1,this.router.navigate(["/departments"])}})}editDepartment(){this.router.navigate(["/departments","edit",this.department.id])}deleteDepartment(){this.dialog.open(Tr,{width:"400px",data:{title:"Delete Department",message:`Are you sure you want to delete "${this.department.name}"? This action cannot be undone.`,confirmText:"Delete",cancelText:"Cancel"}}).afterClosed().subscribe(r=>{r&&this.departmentService.delete(this.department.id).subscribe({next:()=>{let o=this.snackBar.open(`"${this.department.name}" has been deleted.`,"Close",{duration:3e3,horizontalPosition:"end",verticalPosition:"top"});o.afterDismissed().subscribe(()=>this.router.navigate(["/departments"])),o.onAction().subscribe(()=>this.router.navigate(["/departments"]))},error:o=>{console.error("Error deleting department:",o),this.showMessage("Failed to delete department. Please try again.")}})})}goBack(){this.router.navigate(["/departments"])}canEdit(){return this.authService.isHRAdmin()||this.authService.isManager()}canDelete(){return this.authService.isHRAdmin()}showMessage(i){this.snackBar.open(i,"Close",{duration:3e3,horizontalPosition:"end",verticalPosition:"top"})}};n.\u0275fac=function(r){return new(r||n)},n.\u0275cmp=E({type:n,selectors:[["app-department-detail"]],decls:4,vars:3,consts:[[4,"ngIf"],[1,"flex-spacer"],["mat-raised-button","","color","accent",3,"click",4,"appHasRole"],["mat-raised-button","","color","warn",3,"click",4,"appHasRole"],["mat-stroked-button","",3,"click"],[1,"detail-grid"],[1,"detail-section"],["matListItemTitle",""],["matListItemLine",""],["class","detail-section",4,"ngIf"],["mat-raised-button","","color","accent",3,"click"],["mat-raised-button","","color","warn",3,"click"],[1,"loading-container"],[1,"no-data"],["mat-raised-button","","color","primary",3,"click"]],template:function(r,o){r&1&&(M(0,"page-header"),A(1,dve,24,6,"mat-card",0)(2,uve,4,0,"mat-card",0)(3,mve,9,0,"mat-card",0)),r&2&&(f(),v("ngIf",!o.loading&&o.department),f(),v("ngIf",o.loading),f(),v("ngIf",!o.loading&&!o.department))},dependencies:[ut,Jt,Be,Mt,Ut,Ht,zt,Gt,Wt,tt,st,ua,Ns,da,Po,Pu,Ml,ho,gi,fi,_i,Tn,Qt,Wn,Ta],styles:["mat-card[_ngcontent-%COMP%]{margin:16px}mat-card-header[_ngcontent-%COMP%]{display:flex;align-items:center;margin-bottom:16px;padding:16px;border-bottom:1px solid rgba(0,0,0,.12)}mat-card-header[_ngcontent-%COMP%] mat-card-title[_ngcontent-%COMP%]{font-size:20px;font-weight:500;margin:0}mat-card-header[_ngcontent-%COMP%] .flex-spacer[_ngcontent-%COMP%]{flex:1 1 auto}mat-card-header[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{margin-left:8px}mat-card-header[_ngcontent-%COMP%] button[_ngcontent-%COMP%] mat-icon[_ngcontent-%COMP%]{margin-right:4px}mat-card-content[_ngcontent-%COMP%]{padding:16px}.detail-grid[_ngcontent-%COMP%]{display:grid;grid-template-columns:repeat(auto-fit,minmax(400px,1fr));gap:24px}.detail-section[_ngcontent-%COMP%] h3[_ngcontent-%COMP%]{margin:0 0 8px;font-size:16px;font-weight:500;color:#000000de}.detail-section[_ngcontent-%COMP%] mat-divider[_ngcontent-%COMP%]{margin-bottom:16px}.detail-section[_ngcontent-%COMP%] mat-list[_ngcontent-%COMP%]{padding:0}.detail-section[_ngcontent-%COMP%] mat-list-item[_ngcontent-%COMP%]{height:auto;min-height:48px;padding:8px 0}.loading-container[_ngcontent-%COMP%]{display:flex;justify-content:center;align-items:center;min-height:300px}.no-data[_ngcontent-%COMP%]{display:flex;flex-direction:column;align-items:center;justify-content:center;padding:48px 16px;color:#0000008a}.no-data[_ngcontent-%COMP%] mat-icon[_ngcontent-%COMP%]{font-size:48px;width:48px;height:48px;margin-bottom:16px}.no-data[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{margin:0 0 16px;font-size:16px}"]});let t=n;return t})();function hve(t,n){t&1&&(m(0,"div",0),M(1,"mat-spinner"),h())}function pve(t,n){t&1&&(m(0,"mat-error"),g(1," Department name is required "),h())}function fve(t,n){t&1&&(m(0,"mat-error"),g(1," Department name cannot exceed 100 characters "),h())}var uA=(()=>{let n=class n{constructor(){this.departmentService=u(Bs),this.route=u(Si),this.router=u(Re),this.fb=u(ro),this.snackBar=u(ui),this.loading=!1,this.isEditMode=!1}ngOnInit(){this.initForm();let i=this.route.snapshot.paramMap.get("id");i&&(this.isEditMode=!0,this.departmentId=i,this.loadDepartment(i))}initForm(){this.departmentForm=this.fb.group({name:["",[Le.required,Le.maxLength(100)]]})}loadDepartment(i){this.loading=!0,this.departmentService.getById(i).subscribe({next:r=>{this.departmentForm.patchValue({name:r.name}),this.loading=!1},error:r=>{console.error("Error loading department:",r),this.showMessage("Error loading department"),this.loading=!1}})}onSubmit(){if(!this.departmentForm.invalid)if(this.loading=!0,this.isEditMode&&this.departmentId){let i={id:this.departmentId,name:this.departmentForm.value.name};this.departmentService.updateDepartment(i).subscribe({next:()=>{this.showMessage("Department updated successfully"),this.router.navigate(["/departments",this.departmentId])},error:r=>{console.error("Error updating department:",r),this.showMessage("Error updating department"),this.loading=!1}})}else{let i={name:this.departmentForm.value.name};this.departmentService.createDepartment(i).subscribe({next:r=>{console.log("Department created - Response:",r),console.log("Department ID:",r?.id),this.showMessage("Department created successfully"),r?.id?(console.log("Navigating to detail page:","/departments/"+r.id),this.router.navigate(["/departments",r.id])):(console.warn("No department ID returned, navigating to list page"),this.router.navigate(["/departments"])),this.loading=!1},error:r=>{console.error("Error creating department:",r),this.showMessage("Error creating department"),this.loading=!1}})}}onCancel(){this.isEditMode&&this.departmentId?this.router.navigate(["/departments",this.departmentId]):this.router.navigate(["/departments"])}showMessage(i){this.snackBar.open(i,"Close",{duration:3e3,horizontalPosition:"end",verticalPosition:"top"})}};n.\u0275fac=function(r){return new(r||n)},n.\u0275cmp=E({type:n,selectors:[["app-department-form"]],decls:23,vars:7,consts:[[1,"loading-overlay"],[3,"ngSubmit","formGroup"],[1,"form-section"],[1,"form-row"],["appearance","outline"],["matInput","","formControlName","name"],[4,"ngIf"],[1,"form-actions"],["type","button","mat-stroked-button","",3,"click"],["type","submit","mat-raised-button","","color","primary",3,"disabled"]],template:function(r,o){if(r&1&&(M(0,"page-header"),m(1,"mat-card")(2,"mat-card-header")(3,"mat-card-title"),g(4),h()(),m(5,"mat-card-content"),V(6,hve,2,0,"div",0),m(7,"form",1),S("ngSubmit",function(){return o.onSubmit()}),m(8,"div",2)(9,"h3"),g(10,"Department Information"),h(),m(11,"div",3)(12,"mat-form-field",4)(13,"mat-label"),g(14,"Department Name"),h(),M(15,"input",5),A(16,pve,2,0,"mat-error",6)(17,fve,2,0,"mat-error",6),h()()(),m(18,"div",7)(19,"button",8),S("click",function(){return o.onCancel()}),g(20," Cancel "),h(),m(21,"button",9),g(22),h()()()()()),r&2){let a,s;f(4),N(o.isEditMode?"Edit Department":"Create Department"),f(2),B(o.loading?6:-1),f(),v("formGroup",o.departmentForm),f(9),v("ngIf",(a=o.departmentForm.get("name"))==null?null:a.hasError("required")),f(),v("ngIf",(s=o.departmentForm.get("name"))==null?null:s.hasError("maxlength")),f(4),v("disabled",o.loading),f(),pe(" ",o.isEditMode?"Update":"Create"," ")}},dependencies:[ut,Jt,$n,no,Hi,qt,io,Ji,Ur,Be,Mt,Ut,Ht,zt,Gt,Wt,tt,Mn,en,Ci,Gi,So,Pi,gi,fi,_i,Qt],styles:["mat-card[_ngcontent-%COMP%]{margin:16px;max-width:800px}mat-card-header[_ngcontent-%COMP%]{padding:16px;border-bottom:1px solid rgba(0,0,0,.12)}mat-card-header[_ngcontent-%COMP%] mat-card-title[_ngcontent-%COMP%]{font-size:20px;font-weight:500;margin:0}mat-card-content[_ngcontent-%COMP%]{padding:24px;position:relative}.form-section[_ngcontent-%COMP%]{margin-bottom:24px}.form-section[_ngcontent-%COMP%] h3[_ngcontent-%COMP%]{margin:0 0 16px;font-size:16px;font-weight:500;color:#000000de}.form-section[_ngcontent-%COMP%] .form-row[_ngcontent-%COMP%]{display:grid;grid-template-columns:1fr;gap:16px;margin-bottom:16px}.form-section[_ngcontent-%COMP%] .form-row[_ngcontent-%COMP%] mat-form-field[_ngcontent-%COMP%]{width:100%}.form-actions[_ngcontent-%COMP%]{display:flex;justify-content:flex-end;gap:8px;padding-top:16px;border-top:1px solid rgba(0,0,0,.12)}.loading-overlay[_ngcontent-%COMP%]{position:absolute;inset:0;background-color:#fffc;display:flex;align-items:center;justify-content:center;z-index:1000}"]});let t=n;return t})();var gve=["mat-sort-header",""],_ve=["*"];function bve(t,n){t&1&&(pt(0,"div",2),Zt(),pt(1,"svg",3),Xt(2,"path",4),_t()())}var X6=new O("MAT_SORT_DEFAULT_OPTIONS"),kl=(()=>{class t{_defaultOptions;_initializedStream=new Wa(1);sortables=new Map;_stateChanges=new z;active;start="asc";get direction(){return this._direction}set direction(e){this._direction=e}_direction="";disableClear;disabled=!1;sortChange=new U;initialized=this._initializedStream;constructor(e){this._defaultOptions=e}register(e){this.sortables.set(e.id,e)}deregister(e){this.sortables.delete(e.id)}sort(e){this.active!=e.id?(this.active=e.id,this.direction=e.start?e.start:this.start):this.direction=this.getNextSortDirection(e),this.sortChange.emit({active:this.active,direction:this.direction})}getNextSortDirection(e){if(!e)return"";let i=e?.disableClear??this.disableClear??!!this._defaultOptions?.disableClear,r=vve(e.start||this.start,i),o=r.indexOf(this.direction)+1;return o>=r.length&&(o=0),r[o]}ngOnInit(){this._initializedStream.next()}ngOnChanges(){this._stateChanges.next()}ngOnDestroy(){this._stateChanges.complete(),this._initializedStream.complete()}static \u0275fac=function(i){return new(i||t)(be(X6,8))};static \u0275dir=P({type:t,selectors:[["","matSort",""]],hostAttrs:[1,"mat-sort"],inputs:{active:[0,"matSortActive","active"],start:[0,"matSortStart","start"],direction:[0,"matSortDirection","direction"],disableClear:[2,"matSortDisableClear","disableClear",L],disabled:[2,"matSortDisabled","disabled",L]},outputs:{sortChange:"matSortChange"},exportAs:["matSort"],features:[Ae]})}return t})();function vve(t,n){let e=["asc","desc"];return t=="desc"&&e.reverse(),n||e.push(""),e}var kw=(()=>{class t{changes=new z;static \u0275fac=function(i){return new(i||t)};static \u0275prov=R({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();function yve(t){return t||new kw}var xve={provide:kw,deps:[[new ls,new Yl,kw]],useFactory:yve},Tw=(()=>{class t{_intl=u(kw);_sort=u(kl,{optional:!0});_columnDef=u("MAT_SORT_HEADER_COLUMN_DEF",{optional:!0});_changeDetectorRef=u(ye);_focusMonitor=u(ti);_elementRef=u(Y);_ariaDescriber=u(nh,{optional:!0});_renderChanges;_animationsDisabled=Ye();_recentlyCleared=he(null);_sortButton;id;arrowPosition="after";start;disabled=!1;get sortActionDescription(){return this._sortActionDescription}set sortActionDescription(e){this._updateSortActionDescription(e)}_sortActionDescription="Sort";disableClear;constructor(){u(ht).load(ki);let e=u(X6,{optional:!0});this._sort,e?.arrowPosition&&(this.arrowPosition=e?.arrowPosition)}ngOnInit(){!this.id&&this._columnDef&&(this.id=this._columnDef.name),this._sort.register(this),this._renderChanges=Je(this._sort._stateChanges,this._sort.sortChange).subscribe(()=>this._changeDetectorRef.markForCheck()),this._sortButton=this._elementRef.nativeElement.querySelector(".mat-sort-header-container"),this._updateSortActionDescription(this._sortActionDescription)}ngAfterViewInit(){this._focusMonitor.monitor(this._elementRef,!0).subscribe(()=>{Promise.resolve().then(()=>this._recentlyCleared.set(null))})}ngOnDestroy(){this._focusMonitor.stopMonitoring(this._elementRef),this._sort.deregister(this),this._renderChanges?.unsubscribe(),this._sortButton&&this._ariaDescriber?.removeDescription(this._sortButton,this._sortActionDescription)}_toggleOnInteraction(){if(!this._isDisabled()){let e=this._isSorted(),i=this._sort.direction;this._sort.sort(this),this._recentlyCleared.set(e&&!this._isSorted()?i:null)}}_handleKeydown(e){(e.keyCode===32||e.keyCode===13)&&(e.preventDefault(),this._toggleOnInteraction())}_isSorted(){return this._sort.active==this.id&&(this._sort.direction==="asc"||this._sort.direction==="desc")}_isDisabled(){return this._sort.disabled||this.disabled}_getAriaSortAttribute(){return this._isSorted()?this._sort.direction=="asc"?"ascending":"descending":"none"}_renderArrow(){return!this._isDisabled()||this._isSorted()}_updateSortActionDescription(e){this._sortButton&&(this._ariaDescriber?.removeDescription(this._sortButton,this._sortActionDescription),this._ariaDescriber?.describe(this._sortButton,e)),this._sortActionDescription=e}static \u0275fac=function(i){return new(i||t)};static \u0275cmp=E({type:t,selectors:[["","mat-sort-header",""]],hostAttrs:[1,"mat-sort-header"],hostVars:3,hostBindings:function(i,r){i&1&&S("click",function(){return r._toggleOnInteraction()})("keydown",function(a){return r._handleKeydown(a)})("mouseleave",function(){return r._recentlyCleared.set(null)}),i&2&&(X("aria-sort",r._getAriaSortAttribute()),G("mat-sort-header-disabled",r._isDisabled()))},inputs:{id:[0,"mat-sort-header","id"],arrowPosition:"arrowPosition",start:"start",disabled:[2,"disabled","disabled",L],sortActionDescription:"sortActionDescription",disableClear:[2,"disableClear","disableClear",L]},exportAs:["matSortHeader"],attrs:gve,ngContentSelectors:_ve,decls:4,vars:17,consts:[[1,"mat-sort-header-container","mat-focus-indicator"],[1,"mat-sort-header-content"],[1,"mat-sort-header-arrow"],["viewBox","0 -960 960 960","focusable","false","aria-hidden","true"],["d","M440-240v-368L296-464l-56-56 240-240 240 240-56 56-144-144v368h-80Z"]],template:function(i,r){i&1&&(Se(),pt(0,"div",0)(1,"div",1),ne(2),_t(),V(3,bve,3,0,"div",2),_t()),i&2&&(G("mat-sort-header-sorted",r._isSorted())("mat-sort-header-position-before",r.arrowPosition==="before")("mat-sort-header-descending",r._sort.direction==="desc")("mat-sort-header-ascending",r._sort.direction==="asc")("mat-sort-header-recently-cleared-ascending",r._recentlyCleared()==="asc")("mat-sort-header-recently-cleared-descending",r._recentlyCleared()==="desc")("mat-sort-header-animations-disabled",r._animationsDisabled),X("tabindex",r._isDisabled()?null:0)("role",r._isDisabled()?null:"button"),f(3),B(r._renderArrow()?3:-1))},styles:[`.mat-sort-header{cursor:pointer}.mat-sort-header-disabled{cursor:default}.mat-sort-header-container{display:flex;align-items:center;letter-spacing:normal;outline:0}[mat-sort-header].cdk-keyboard-focused .mat-sort-header-container,[mat-sort-header].cdk-program-focused .mat-sort-header-container{border-bottom:solid 1px currentColor}.mat-sort-header-container::before{margin:calc(calc(var(--mat-focus-indicator-border-width, 3px) + 2px)*-1)}.mat-sort-header-content{display:flex;align-items:center}.mat-sort-header-position-before{flex-direction:row-reverse}@keyframes _mat-sort-header-recently-cleared-ascending{from{transform:translateY(0);opacity:1}to{transform:translateY(-25%);opacity:0}}@keyframes _mat-sort-header-recently-cleared-descending{from{transform:translateY(0) rotate(180deg);opacity:1}to{transform:translateY(25%) rotate(180deg);opacity:0}}.mat-sort-header-arrow{height:12px;width:12px;position:relative;transition:transform 225ms cubic-bezier(0.4, 0, 0.2, 1),opacity 225ms cubic-bezier(0.4, 0, 0.2, 1);opacity:0;overflow:visible;color:var(--mat-sort-arrow-color, var(--mat-sys-on-surface))}.mat-sort-header.cdk-keyboard-focused .mat-sort-header-arrow,.mat-sort-header.cdk-program-focused .mat-sort-header-arrow,.mat-sort-header:hover .mat-sort-header-arrow{opacity:.54}.mat-sort-header .mat-sort-header-sorted .mat-sort-header-arrow{opacity:1}.mat-sort-header-descending .mat-sort-header-arrow{transform:rotate(180deg)}.mat-sort-header-recently-cleared-ascending .mat-sort-header-arrow{transform:translateY(-25%)}.mat-sort-header-recently-cleared-ascending .mat-sort-header-arrow{transition:none;animation:_mat-sort-header-recently-cleared-ascending 225ms cubic-bezier(0.4, 0, 0.2, 1) forwards}.mat-sort-header-recently-cleared-descending .mat-sort-header-arrow{transition:none;animation:_mat-sort-header-recently-cleared-descending 225ms cubic-bezier(0.4, 0, 0.2, 1) forwards}.mat-sort-header-animations-disabled .mat-sort-header-arrow{transition-duration:0ms;animation-duration:0ms}.mat-sort-header-arrow svg{width:24px;height:24px;fill:currentColor;position:absolute;top:50%;left:50%;margin:-12px 0 0 -12px;transform:translateZ(0)}.mat-sort-header-arrow,[dir=rtl] .mat-sort-header-position-before .mat-sort-header-arrow{margin:0 0 0 6px}.mat-sort-header-position-before .mat-sort-header-arrow,[dir=rtl] .mat-sort-header-arrow{margin:0 6px 0 0} +`],encapsulation:2,changeDetection:0})}return t})(),Iw=(()=>{class t{static \u0275fac=function(i){return new(i||t)};static \u0275mod=ee({type:t});static \u0275inj=J({providers:[xve],imports:[De]})}return t})();var tU=()=>["HRAdmin","Manager"],iU=()=>["HRAdmin"],eU=()=>["score","positionNumber","positionTitle","departmentName","salaryRangeName"];function Cve(t,n){t&1&&(m(0,"div",23),M(1,"mat-spinner",24),m(2,"span"),g(3,"Searching\u2026"),h()())}function wve(t,n){if(t&1&&(m(0,"div",25),g(1),h()),t&2){let e=x(2);f(),N(e.semanticError)}}function Dve(t,n){t&1&&(m(0,"th",39),g(1,"Score"),h())}function Eve(t,n){if(t&1&&(m(0,"td",40),g(1),ue(2,"number"),h()),t&2){let e=n.$implicit;f(),N(Ei(2,1,e.score,"1.3-3"))}}function Mve(t,n){t&1&&(m(0,"th",39),g(1,"Position #"),h())}function Sve(t,n){if(t&1&&(m(0,"td",40),g(1),h()),t&2){let e=n.$implicit;f(),N(e.positionNumber)}}function kve(t,n){t&1&&(m(0,"th",39),g(1,"Title"),h())}function Tve(t,n){if(t&1&&(m(0,"td",40),g(1),h()),t&2){let e=n.$implicit;f(),N(e.positionTitle)}}function Ive(t,n){t&1&&(m(0,"th",39),g(1,"Department"),h())}function Ave(t,n){if(t&1&&(m(0,"td",40),g(1),h()),t&2){let e=n.$implicit;f(),N(e.departmentName)}}function Ove(t,n){t&1&&(m(0,"th",39),g(1,"Salary Range"),h())}function Rve(t,n){if(t&1&&(m(0,"td",40),g(1),h()),t&2){let e=n.$implicit;f(),N(e.salaryRangeName)}}function Pve(t,n){t&1&&M(0,"tr",41)}function Fve(t,n){t&1&&M(0,"tr",42)}function Nve(t,n){if(t&1){let e=q();m(0,"div")(1,"div",26)(2,"span",27),g(3),h(),m(4,"button",28),S("click",function(){T(e);let r=x(2);return I(r.clearSemanticSearch())}),m(5,"mat-icon"),g(6,"clear"),h(),g(7," Clear "),h()(),m(8,"table",29),kt(9,30),A(10,Dve,2,0,"th",31)(11,Eve,3,4,"td",32),Dt(),kt(12,33),A(13,Mve,2,0,"th",31)(14,Sve,2,1,"td",32),Dt(),kt(15,34),A(16,kve,2,0,"th",31)(17,Tve,2,1,"td",32),Dt(),kt(18,35),A(19,Ive,2,0,"th",31)(20,Ave,2,1,"td",32),Dt(),kt(21,36),A(22,Ove,2,0,"th",31)(23,Rve,2,1,"td",32),Dt(),A(24,Pve,1,0,"tr",37)(25,Fve,1,0,"tr",38),h()()}if(t&2){let e=x(2);f(3),pe("",e.semanticResults.length," result(s) found"),f(5),v("dataSource",e.semanticResults),f(16),v("matHeaderRowDef",rt(4,eU)),f(),v("matRowDefColumns",rt(5,eU))}}function Lve(t,n){if(t&1){let e=q();m(0,"mat-card",16)(1,"mat-card-header")(2,"mat-card-title")(3,"mat-icon",17),g(4,"auto_awesome"),h(),g(5," Semantic Position Search "),h()(),m(6,"mat-card-content")(7,"mat-form-field",18)(8,"mat-label"),g(9,"Describe the position you're looking for\u2026"),h(),m(10,"input",19,0),S("input",function(){T(e);let r=Me(11),o=x();return I(o.onSemanticQueryChange(r.value))}),h(),m(12,"mat-icon",8),g(13,"search"),h()(),A(14,Cve,4,0,"div",20)(15,wve,2,1,"div",21)(16,Nve,26,6,"div",22),h()()}if(t&2){let e=x();f(10),v("value",e.semanticQuery),f(4),v("ngIf",e.semanticLoading),f(),v("ngIf",e.semanticError),f(),v("ngIf",e.semanticResults!==null&&!e.semanticLoading)}}function Vve(t,n){if(t&1){let e=q();m(0,"button",43),S("click",function(){T(e);let r=x();return I(r.createPosition())}),m(1,"mat-icon"),g(2,"add"),h(),g(3," Add Position "),h()}}function Bve(t,n){if(t&1){let e=q();m(0,"button",44),S("click",function(){T(e);let r=x();return I(r.addMockData())}),m(1,"mat-icon"),g(2,"data_object"),h(),g(3," Add Mock Data "),h()}}function jve(t,n){t&1&&(m(0,"div",45),M(1,"mat-spinner"),h())}function Hve(t,n){t&1&&(m(0,"th",54),g(1,"Position Number"),h())}function zve(t,n){if(t&1&&(m(0,"td",40),g(1),h()),t&2){let e=n.$implicit;f(),N(e.positionNumber)}}function Uve(t,n){t&1&&(m(0,"th",54),g(1,"Position Title"),h())}function $ve(t,n){if(t&1&&(m(0,"td",40),g(1),h()),t&2){let e=n.$implicit;f(),N(e.positionTitle)}}function Wve(t,n){t&1&&(m(0,"th",54),g(1,"Department"),h())}function Gve(t,n){if(t&1&&(m(0,"td",40),g(1),h()),t&2){let e=n.$implicit;f(),N(e.department==null?null:e.department.name)}}function qve(t,n){t&1&&(m(0,"th",54),g(1,"Salary Range"),h())}function Yve(t,n){if(t&1&&(m(0,"td",40),g(1),h()),t&2){let e=n.$implicit;f(),N(e.salaryRange==null?null:e.salaryRange.name)}}function Qve(t,n){t&1&&(m(0,"th",55),g(1,"Actions"),h())}function Kve(t,n){if(t&1){let e=q();m(0,"button",61),S("click",function(){T(e);let r=x().$implicit,o=x(2);return I(o.editPosition(r))}),m(1,"mat-icon"),g(2,"edit"),h()()}}function Zve(t,n){if(t&1){let e=q();m(0,"button",62),S("click",function(){T(e);let r=x().$implicit,o=x(2);return I(o.deletePosition(r))}),m(1,"mat-icon"),g(2,"delete"),h()()}}function Xve(t,n){if(t&1){let e=q();m(0,"td",56)(1,"div",57)(2,"button",58),S("click",function(){let r=T(e).$implicit,o=x(2);return I(o.viewPosition(r))}),m(3,"mat-icon"),g(4,"visibility"),h()(),A(5,Kve,3,0,"button",59)(6,Zve,3,0,"button",60),h()()}t&2&&(f(5),v("appHasRole",rt(2,tU)),f(),v("appHasRole",rt(3,iU)))}function Jve(t,n){t&1&&M(0,"tr",41)}function eye(t,n){t&1&&M(0,"tr",42)}function tye(t,n){if(t&1&&(m(0,"tr",63)(1,"td",64)(2,"div",65)(3,"mat-icon"),g(4,"work_off"),h(),m(5,"p"),g(6,"No positions found"),h()()()()),t&2){let e=x(2);f(),X("colspan",e.displayedColumns.length)}}function iye(t,n){if(t&1){let e=q();m(0,"table",46),S("matSortChange",function(r){T(e);let o=x();return I(o.onSortChange(r))}),kt(1,33),A(2,Hve,2,0,"th",47)(3,zve,2,1,"td",32),Dt(),kt(4,34),A(5,Uve,2,0,"th",47)(6,$ve,2,1,"td",32),Dt(),kt(7,48),A(8,Wve,2,0,"th",47)(9,Gve,2,1,"td",32),Dt(),kt(10,49),A(11,qve,2,0,"th",47)(12,Yve,2,1,"td",32),Dt(),kt(13,50),A(14,Qve,2,0,"th",51)(15,Xve,7,4,"td",52),Dt(),A(16,Jve,1,0,"tr",37)(17,eye,1,0,"tr",38)(18,tye,7,1,"tr",53),h()}if(t&2){let e=x();v("dataSource",e.positions),f(16),v("matHeaderRowDef",e.displayedColumns),f(),v("matRowDefColumns",e.displayedColumns)}}var nU=(()=>{let n=class n{constructor(){this.positionService=u($c),this.aiService=u(Uc),this.authService=u(Ot),this.router=u(Re),this.dialog=u(kn),this.snackBar=u(ui),this.searchSubject=new z,this.destroy$=new z,this.positions=[],this.aiEnabled=Qi.aiEnabled,this.semanticQuery="",this.semanticLoading=!1,this.semanticError="",this.semanticResults=null,this.semanticSearch$=new z,this.loading=!1,this.displayedColumns=["positionNumber","positionTitle","departmentId","salaryRangeId","actions"],this.totalCount=0,this.pageNumber=1,this.pageSize=10,this.pageSizeOptions=[5,10,25,50,100],this.searchPositionNumber="",this.searchPositionTitle="",this.searchDepartment=""}ngOnInit(){this.searchSubject.pipe(St(500)).subscribe(()=>{this.pageNumber=1,this.loadPositions()}),this.setupSemanticSearch(),this.loadPositions()}ngAfterViewInit(){}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete()}setupSemanticSearch(){this.semanticSearch$.pipe(St(600),je(i=>!i||i.trim().length<3?(this.semanticResults=null,this.semanticError="",Q(null)):(this.semanticLoading=!0,this.semanticError="",this.aiService.semanticPositionSearch(i.trim()).pipe(ii(r=>(this.semanticError=r?.error?.detail??"Semantic search failed. Please try again.",Q(null)))))),we(this.destroy$)).subscribe(i=>{this.semanticLoading=!1,i!==null&&(this.semanticResults=i)})}onSemanticQueryChange(i){this.semanticQuery=i,this.semanticSearch$.next(i)}clearSemanticSearch(){this.semanticQuery="",this.semanticResults=null,this.semanticError=""}loadPositions(){this.loading=!0;let i={pageNumber:this.pageNumber,pageSize:this.pageSize};this.searchPositionNumber&&(i.PositionNumber=this.searchPositionNumber),this.searchPositionTitle&&(i.PositionTitle=this.searchPositionTitle),this.searchDepartment&&(i.Department=this.searchDepartment),this.sort?.active&&this.sort?.direction&&(i.orderBy=`${this.sort.active} ${this.sort.direction}`),this.positionService.getAllPaged(i).subscribe({next:r=>{this.positions=r.value,this.totalCount=r.recordsTotal,this.loading=!1},error:r=>{console.error("Error loading positions:",r),this.loading=!1}})}onSearch(){this.searchSubject.next()}onPageChange(i){this.pageNumber=i.pageIndex+1,this.pageSize=i.pageSize,this.loadPositions()}onSortChange(i){this.loadPositions()}clearFilters(){this.searchPositionNumber="",this.searchPositionTitle="",this.searchDepartment="",this.pageNumber=1,this.loadPositions()}createPosition(){this.router.navigate(["/positions/create"])}viewPosition(i){this.router.navigate(["/positions",i.id])}editPosition(i){this.router.navigate(["/positions/edit",i.id])}deletePosition(i){this.dialog.open(Tr,{width:"400px",data:{title:"Delete Position",message:`Are you sure you want to delete "${i.positionTitle}"? This action cannot be undone.`,confirmText:"Delete",cancelText:"Cancel"}}).afterClosed().subscribe(o=>{o&&this.positionService.delete(i.id).subscribe({next:()=>{this.showMessage(`"${i.positionTitle}" has been deleted.`),this.loadPositions()},error:a=>{console.error("Error deleting position:",a),this.showMessage("Failed to delete position. Please try again.")}})})}addMockData(){let i=prompt("How many mock positions would you like to add?","10");if(i){let r=parseInt(i,10);r>0&&r<=100?(this.loading=!0,this.positionService.addMockPositions({rowCount:r}).subscribe({next:()=>{this.showMessage(`${r} mock positions added successfully`),this.loadPositions()},error:o=>{console.error("Error adding mock positions:",o),this.showMessage("Error adding mock positions"),this.loading=!1}})):this.showMessage("Please enter a number between 1 and 100")}}showMessage(i){this.snackBar.open(i,"Close",{duration:3e3,horizontalPosition:"end",verticalPosition:"top"})}canEdit(){return this.authService.hasRole("HRAdmin")||this.authService.hasRole("Manager")}};n.\u0275fac=function(r){return new(r||n)},n.\u0275cmp=E({type:n,selectors:[["app-position-list"]],viewQuery:function(r,o){if(r&1&&(ie(or,5),ie(kl,5)),r&2){let a;j(a=H())&&(o.paginator=a.first),j(a=H())&&(o.sort=a.first)}},decls:37,vars:14,consts:[["semanticInput",""],["class","nl-search-card",4,"ngIf"],[1,"flex-spacer"],["mat-raised-button","","color","primary",3,"click",4,"appHasRole"],["mat-stroked-button","","color","accent","style","margin-left: 8px;",3,"click",4,"appHasRole"],[1,"search-filters",2,"margin-bottom","16px","display","flex","gap","16px","flex-wrap","wrap"],["appearance","outline",2,"flex","1","min-width","200px"],["matInput","","placeholder","Search by position number",3,"ngModelChange","input","ngModel"],["matSuffix",""],["matInput","","placeholder","Search by position title",3,"ngModelChange","input","ngModel"],["matInput","","placeholder","Search by department",3,"ngModelChange","input","ngModel"],["mat-stroked-button","",2,"height","56px",3,"click"],[1,"table-container"],["class","loading-spinner",4,"ngIf"],["mat-table","","matSort","","class","position-table",3,"dataSource","matSortChange",4,"ngIf"],["showFirstLastButtons","",3,"page","length","pageSize","pageSizeOptions","pageIndex"],[1,"nl-search-card"],[2,"vertical-align","middle","margin-right","8px"],["appearance","outline",2,"width","100%"],["matInput","","placeholder","e.g. senior software engineer in finance with high salary",3,"input","value"],["style","display: flex; align-items: center; gap: 8px; margin-top: 8px;",4,"ngIf"],["class","nl-error",4,"ngIf"],[4,"ngIf"],[2,"display","flex","align-items","center","gap","8px","margin-top","8px"],["diameter","20"],[1,"nl-error"],[2,"display","flex","justify-content","space-between","align-items","center","margin-bottom","8px"],[1,"nl-parsed-hint"],["mat-stroked-button","",3,"click"],["mat-table","",1,"position-table",2,"width","100%",3,"dataSource"],["matColumnDef","score"],["mat-header-cell","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","positionNumber"],["matColumnDef","positionTitle"],["matColumnDef","departmentName"],["matColumnDef","salaryRangeName"],["mat-header-row","",4,"matHeaderRowDef"],["mat-row","",4,"matRowDef","matRowDefColumns"],["mat-header-cell",""],["mat-cell",""],["mat-header-row",""],["mat-row",""],["mat-raised-button","","color","primary",3,"click"],["mat-stroked-button","","color","accent",2,"margin-left","8px",3,"click"],[1,"loading-spinner"],["mat-table","","matSort","",1,"position-table",3,"matSortChange","dataSource"],["mat-header-cell","","mat-sort-header","",4,"matHeaderCellDef"],["matColumnDef","departmentId"],["matColumnDef","salaryRangeId"],["matColumnDef","actions"],["mat-header-cell","","class","mat-column-actions",4,"matHeaderCellDef"],["mat-cell","","class","mat-column-actions",4,"matCellDef"],["class","mat-row",4,"matNoDataRow"],["mat-header-cell","","mat-sort-header",""],["mat-header-cell","",1,"mat-column-actions"],["mat-cell","",1,"mat-column-actions"],[1,"action-buttons"],["mat-icon-button","","color","primary","matTooltip","View Details",3,"click"],["mat-icon-button","","color","accent","matTooltip","Edit Position",3,"click",4,"appHasRole"],["mat-icon-button","","color","warn","matTooltip","Delete Position",3,"click",4,"appHasRole"],["mat-icon-button","","color","accent","matTooltip","Edit Position",3,"click"],["mat-icon-button","","color","warn","matTooltip","Delete Position",3,"click"],[1,"mat-row"],[1,"mat-cell"],[1,"no-data"]],template:function(r,o){r&1&&(M(0,"page-header"),A(1,Lve,17,4,"mat-card",1),m(2,"mat-card")(3,"mat-card-header")(4,"mat-card-title"),g(5,"Positions"),h(),M(6,"span",2),A(7,Vve,4,0,"button",3)(8,Bve,4,0,"button",4),h(),m(9,"mat-card-content")(10,"div",5)(11,"mat-form-field",6)(12,"mat-label"),g(13,"Position Number"),h(),m(14,"input",7),Nr("ngModelChange",function(s){return Zr(o.searchPositionNumber,s)||(o.searchPositionNumber=s),s}),S("input",function(){return o.onSearch()}),h(),m(15,"mat-icon",8),g(16,"search"),h()(),m(17,"mat-form-field",6)(18,"mat-label"),g(19,"Position Title"),h(),m(20,"input",9),Nr("ngModelChange",function(s){return Zr(o.searchPositionTitle,s)||(o.searchPositionTitle=s),s}),S("input",function(){return o.onSearch()}),h(),m(21,"mat-icon",8),g(22,"search"),h()(),m(23,"mat-form-field",6)(24,"mat-label"),g(25,"Department"),h(),m(26,"input",10),Nr("ngModelChange",function(s){return Zr(o.searchDepartment,s)||(o.searchDepartment=s),s}),S("input",function(){return o.onSearch()}),h(),m(27,"mat-icon",8),g(28,"search"),h()(),m(29,"button",11),S("click",function(){return o.clearFilters()}),m(30,"mat-icon"),g(31,"clear"),h(),g(32," Clear Filters "),h()(),m(33,"div",12),A(34,jve,2,0,"div",13)(35,iye,19,3,"table",14),h(),m(36,"mat-paginator",15),S("page",function(s){return o.onPageChange(s)}),h()()()),r&2&&(f(),v("ngIf",o.aiEnabled),f(6),v("appHasRole",rt(12,tU)),f(),v("appHasRole",rt(13,iU)),f(6),Fr("ngModel",o.searchPositionNumber),f(6),Fr("ngModel",o.searchPositionTitle),f(6),Fr("ngModel",o.searchDepartment),f(8),v("ngIf",o.loading),f(),v("ngIf",!o.loading),f(),v("length",o.totalCount)("pageSize",o.pageSize)("pageSizeOptions",o.pageSizeOptions)("pageIndex",o.pageNumber-1))},dependencies:[ut,Jt,Be,Mt,Yt,Ut,Ht,zt,Gt,Wt,tt,st,id,Gc,Yc,Xc,Qc,qc,Jc,Kc,Zc,ed,td,xw,vc,or,Iw,kl,Tw,gi,fi,$r,Ao,Tn,Pi,Ci,Gi,hl,Mn,en,_i,pl,Hi,qt,pu,Qt,Wn,jd],styles:["mat-card[_ngcontent-%COMP%]{margin:16px}.nl-search-card[_ngcontent-%COMP%]{margin:16px 16px 0}.nl-search-card[_ngcontent-%COMP%] mat-card-title[_ngcontent-%COMP%]{display:flex;align-items:center;font-size:18px}.nl-parsed-hint[_ngcontent-%COMP%]{font-size:13px;color:#0000008a}.nl-error[_ngcontent-%COMP%]{color:#f44336;font-size:13px;margin-top:8px}mat-card-header[_ngcontent-%COMP%]{display:flex;align-items:center;margin-bottom:16px;padding:16px;border-bottom:1px solid rgba(0,0,0,.12)}mat-card-header[_ngcontent-%COMP%] mat-card-title[_ngcontent-%COMP%]{font-size:20px;font-weight:500;margin:0}mat-card-header[_ngcontent-%COMP%] .flex-spacer[_ngcontent-%COMP%]{flex:1 1 auto}mat-card-header[_ngcontent-%COMP%] button[_ngcontent-%COMP%] mat-icon[_ngcontent-%COMP%]{margin-right:4px}mat-card-content[_ngcontent-%COMP%]{padding:0}.table-container[_ngcontent-%COMP%]{position:relative;min-height:300px;overflow-x:auto}.loading-spinner[_ngcontent-%COMP%]{display:flex;justify-content:center;align-items:center;min-height:300px}.position-table[_ngcontent-%COMP%]{width:100%}.position-table[_ngcontent-%COMP%] th[_ngcontent-%COMP%]{font-weight:600;font-size:14px;color:#000000de}.position-table[_ngcontent-%COMP%] td[_ngcontent-%COMP%]{font-size:14px;color:#000000de}.position-table[_ngcontent-%COMP%] .mat-column-positionNumber[_ngcontent-%COMP%]{min-width:150px}.position-table[_ngcontent-%COMP%] .mat-column-positionTitle[_ngcontent-%COMP%]{min-width:200px}.position-table[_ngcontent-%COMP%] .mat-column-departmentId[_ngcontent-%COMP%], .position-table[_ngcontent-%COMP%] .mat-column-salaryRangeId[_ngcontent-%COMP%]{min-width:150px}.position-table[_ngcontent-%COMP%] .mat-column-actions[_ngcontent-%COMP%]{width:150px;text-align:right}.position-table[_ngcontent-%COMP%] .action-buttons[_ngcontent-%COMP%]{display:flex;justify-content:flex-end;gap:4px}.position-table[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{margin-left:4px}.no-data[_ngcontent-%COMP%]{display:flex;flex-direction:column;align-items:center;justify-content:center;padding:48px 16px;color:#0000008a}.no-data[_ngcontent-%COMP%] mat-icon[_ngcontent-%COMP%]{font-size:48px;width:48px;height:48px;margin-bottom:16px}.no-data[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{margin:0;font-size:16px}mat-paginator[_ngcontent-%COMP%]{border-top:1px solid rgba(0,0,0,.12)}"]});let t=n;return t})();var rU=()=>["HRAdmin","Manager"];function nye(t,n){t&1&&(m(0,"div",2),M(1,"mat-spinner"),h())}function rye(t,n){if(t&1){let e=q();m(0,"button",9),S("click",function(){T(e);let r=x(2);return I(r.editPosition())}),m(1,"mat-icon"),g(2,"edit"),h()()}}function oye(t,n){if(t&1){let e=q();m(0,"button",10),S("click",function(){T(e);let r=x(2);return I(r.deletePosition())}),m(1,"mat-icon"),g(2,"delete"),h()()}}function aye(t,n){if(t&1&&(m(0,"mat-list-item")(1,"span",7),g(2,"Description:"),h(),m(3,"span",8),g(4),h()()),t&2){let e=x(2);f(4),N(e.position.positionDescription)}}function sye(t,n){t&1&&M(0,"mat-divider")}function lye(t,n){if(t&1&&(m(0,"mat-list-item")(1,"span",7),g(2,"Created:"),h(),m(3,"span",8),g(4),ue(5,"date"),h()()),t&2){let e=x(2);f(4),N(Ei(5,1,e.position.createdAt,"medium"))}}function cye(t,n){t&1&&M(0,"mat-divider")}function dye(t,n){if(t&1&&(m(0,"mat-list-item")(1,"span",7),g(2,"Last Modified:"),h(),m(3,"span",8),g(4),ue(5,"date"),h()()),t&2){let e=x(2);f(4),N(Ei(5,1,e.position.lastModifiedAt,"medium"))}}function uye(t,n){if(t&1){let e=q();m(0,"mat-card")(1,"mat-card-header")(2,"mat-card-title"),g(3),h(),m(4,"div",3),A(5,rye,3,0,"button",4)(6,oye,3,0,"button",5),m(7,"button",6),S("click",function(){T(e);let r=x();return I(r.goBack())}),m(8,"mat-icon"),g(9,"arrow_back"),h()()()(),m(10,"mat-card-content")(11,"mat-list")(12,"mat-list-item")(13,"span",7),g(14,"Position Number:"),h(),m(15,"span",8),g(16),h()(),M(17,"mat-divider"),m(18,"mat-list-item")(19,"span",7),g(20,"Position Title:"),h(),m(21,"span",8),g(22),h()(),M(23,"mat-divider"),A(24,aye,5,1,"mat-list-item",1)(25,sye,1,0,"mat-divider",1),m(26,"mat-list-item")(27,"span",7),g(28,"Department:"),h(),m(29,"span",8),g(30),h()(),M(31,"mat-divider"),m(32,"mat-list-item")(33,"span",7),g(34,"Salary Range:"),h(),m(35,"span",8),g(36),h()(),M(37,"mat-divider"),A(38,lye,6,4,"mat-list-item",1)(39,cye,1,0,"mat-divider",1)(40,dye,6,4,"mat-list-item",1),h()()()}if(t&2){let e=x();f(3),N(e.position.positionTitle),f(2),v("appHasRole",rt(12,rU)),f(),v("appHasRole",rt(13,rU)),f(10),N(e.position.positionNumber),f(6),N(e.position.positionTitle),f(2),v("ngIf",e.position.positionDescription),f(),v("ngIf",e.position.positionDescription),f(5),N((e.position.department==null?null:e.position.department.name)||e.position.departmentId),f(6),N((e.position.salaryRange==null?null:e.position.salaryRange.name)||e.position.salaryRangeId),f(2),v("ngIf",e.position.createdAt),f(),v("ngIf",e.position.createdAt),f(),v("ngIf",e.position.lastModifiedAt)}}function mye(t,n){t&1&&(m(0,"mat-card")(1,"mat-card-content")(2,"p"),g(3,"Position not found."),h()()())}var oU=(()=>{let n=class n{constructor(){this.positionService=u($c),this.authService=u(Ot),this.route=u(Si),this.router=u(Re),this.snackBar=u(ui),this.dialog=u(kn),this.loading=!1}ngOnInit(){let i=this.route.snapshot.paramMap.get("id");i&&this.loadPosition(i)}loadPosition(i){this.loading=!0,this.positionService.getById(i).subscribe({next:r=>{this.position=r,this.loading=!1},error:r=>{console.error("Error loading position:",r),this.showMessage("Error loading position"),this.loading=!1,this.router.navigate(["/positions"])}})}editPosition(){this.router.navigate(["/positions","edit",this.position.id])}deletePosition(){this.dialog.open(Tr,{width:"400px",data:{title:"Delete Position",message:`Are you sure you want to delete "${this.position.positionTitle}"? This action cannot be undone.`,confirmText:"Delete",cancelText:"Cancel"}}).afterClosed().subscribe(r=>{r&&this.positionService.delete(this.position.id).subscribe({next:()=>{let o=this.snackBar.open(`"${this.position.positionTitle}" has been deleted.`,"Close",{duration:3e3,horizontalPosition:"end",verticalPosition:"top"});o.afterDismissed().subscribe(()=>this.router.navigate(["/positions"])),o.onAction().subscribe(()=>this.router.navigate(["/positions"]))},error:o=>{console.error("Error deleting position:",o),this.showMessage("Failed to delete position. Please try again.")}})})}goBack(){this.router.navigate(["/positions"])}canEdit(){return this.authService.isHRAdmin()||this.authService.isManager()}canDelete(){return this.authService.isHRAdmin()||this.authService.isManager()}showMessage(i){this.snackBar.open(i,"Close",{duration:3e3,horizontalPosition:"end",verticalPosition:"top"})}};n.\u0275fac=function(r){return new(r||n)},n.\u0275cmp=E({type:n,selectors:[["app-position-detail"]],decls:4,vars:3,consts:[["class","loading-spinner",4,"ngIf"],[4,"ngIf"],[1,"loading-spinner"],[1,"header-actions"],["mat-icon-button","","color","primary","matTooltip","Edit Position",3,"click",4,"appHasRole"],["mat-icon-button","","color","warn","matTooltip","Delete Position",3,"click",4,"appHasRole"],["mat-icon-button","","matTooltip","Back to List",3,"click"],[1,"label"],[1,"value"],["mat-icon-button","","color","primary","matTooltip","Edit Position",3,"click"],["mat-icon-button","","color","warn","matTooltip","Delete Position",3,"click"]],template:function(r,o){r&1&&(M(0,"page-header"),A(1,nye,2,0,"div",0)(2,uye,41,14,"mat-card",1)(3,mye,4,0,"mat-card",1)),r&2&&(f(),v("ngIf",o.loading),f(),v("ngIf",!o.loading&&o.position),f(),v("ngIf",!o.loading&&!o.position))},dependencies:[ut,Jt,Be,Yt,Ut,Ht,zt,Gt,Wt,tt,st,ua,Ns,da,Po,ho,gi,fi,_i,Tn,Qt,Wn,Ta],styles:[".loading-spinner[_ngcontent-%COMP%]{display:flex;justify-content:center;align-items:center;min-height:400px}mat-card[_ngcontent-%COMP%]{margin:16px;max-width:800px}mat-card-header[_ngcontent-%COMP%]{padding:16px;border-bottom:1px solid rgba(0,0,0,.12);display:flex;justify-content:space-between;align-items:center}mat-card-header[_ngcontent-%COMP%] mat-card-title[_ngcontent-%COMP%]{font-size:24px;font-weight:500;margin:0}mat-card-header[_ngcontent-%COMP%] .header-actions[_ngcontent-%COMP%]{display:flex;gap:8px}mat-card-content[_ngcontent-%COMP%]{padding:0}mat-list[_ngcontent-%COMP%]{padding:0}mat-list-item[_ngcontent-%COMP%]{height:auto!important;min-height:48px;padding:12px 16px;display:flex;justify-content:space-between;align-items:flex-start}mat-list-item[_ngcontent-%COMP%] .label[_ngcontent-%COMP%]{font-weight:500;color:#0009;min-width:180px}mat-list-item[_ngcontent-%COMP%] .value[_ngcontent-%COMP%]{flex:1;text-align:right;word-break:break-word}"]});let t=n;return t})();function hye(t,n){t&1&&(m(0,"div",0),M(1,"mat-spinner"),h())}function pye(t,n){t&1&&(m(0,"mat-error"),g(1," Position title is required "),h())}function fye(t,n){t&1&&(m(0,"mat-error"),g(1," Position title cannot exceed 100 characters "),h())}function gye(t,n){t&1&&(m(0,"mat-error"),g(1," Position number is required "),h())}function _ye(t,n){t&1&&(m(0,"mat-error"),g(1," Position number cannot exceed 50 characters "),h())}function bye(t,n){t&1&&(m(0,"mat-error"),g(1," Position description cannot exceed 500 characters "),h())}function vye(t,n){if(t&1&&(m(0,"mat-option",14),g(1),h()),t&2){let e=n.$implicit;v("value",e.id),f(),pe(" ",e.name," ")}}function yye(t,n){t&1&&(m(0,"mat-error"),g(1," Department is required "),h())}function xye(t,n){if(t&1&&(m(0,"mat-option",14),g(1),ue(2,"number"),ue(3,"number"),h()),t&2){let e=n.$implicit;v("value",e.id),f(),Sm(" ",e.name," ($",Ei(2,4,e.minSalary,"1.0-0")," - $",Ei(3,7,e.maxSalary,"1.0-0"),") ")}}function Cye(t,n){t&1&&(m(0,"mat-error"),g(1," Salary range is required "),h())}var mA=(()=>{let n=class n{constructor(){this.fb=u(ro),this.router=u(Re),this.route=u(Si),this.snackBar=u(ui),this.positionService=u($c),this.departmentService=u(Bs),this.salaryRangeService=u(Wc),this.loading=!1,this.isEditMode=!1,this.departments=[],this.salaryRanges=[]}ngOnInit(){this.initForm(),this.loadDepartments(),this.loadSalaryRanges(),this.checkEditMode()}initForm(){this.positionForm=this.fb.group({positionTitle:["",[Le.required,Le.maxLength(100)]],positionNumber:["",[Le.required,Le.maxLength(50)]],positionDescription:["",[Le.maxLength(500)]],departmentId:["",Le.required],salaryRangeId:["",Le.required]})}loadDepartments(){this.departmentService.getAll().subscribe({next:i=>{this.departments=i},error:i=>{console.error("Error loading departments:",i),this.showMessage("Error loading departments")}})}loadSalaryRanges(){this.salaryRangeService.getAll().subscribe({next:i=>{this.salaryRanges=i},error:i=>{console.error("Error loading salary ranges:",i),this.showMessage("Error loading salary ranges")}})}checkEditMode(){this.positionId=this.route.snapshot.paramMap.get("id")||void 0,this.isEditMode=!!this.positionId,this.isEditMode&&this.positionId&&this.loadPosition(this.positionId)}loadPosition(i){this.loading=!0,this.positionService.getById(i).subscribe({next:r=>{this.positionForm.patchValue({positionTitle:r.positionTitle,positionNumber:r.positionNumber,positionDescription:r.positionDescription,departmentId:r.departmentId,salaryRangeId:r.salaryRangeId}),this.loading=!1},error:r=>{console.error("Error loading position:",r),this.showMessage("Error loading position"),this.loading=!1}})}onSubmit(){if(this.positionForm.invalid){this.positionForm.markAllAsTouched();return}if(this.loading=!0,this.isEditMode&&this.positionId){let i=k({id:this.positionId},this.positionForm.value);this.positionService.updatePosition(i).subscribe({next:()=>{this.showMessage("Position updated successfully"),this.router.navigate(["/positions",this.positionId])},error:r=>{console.error("Error updating position:",r),this.showMessage("Error updating position"),this.loading=!1}})}else{let i=this.positionForm.value;this.positionService.createPosition(i).subscribe({next:r=>{console.log("Position created - Response:",r),console.log("Position ID:",r?.id),this.showMessage("Position created successfully"),r?.id?(console.log("Navigating to detail page:","/positions/"+r.id),this.router.navigate(["/positions",r.id])):(console.warn("No position ID returned, navigating to list page"),this.router.navigate(["/positions"])),this.loading=!1},error:r=>{console.error("Error creating position:",r),this.showMessage("Error creating position"),this.loading=!1}})}}onCancel(){this.router.navigate(["/positions"])}showMessage(i){this.snackBar.open(i,"Close",{duration:3e3,horizontalPosition:"end",verticalPosition:"top"})}getFormTitle(){return this.isEditMode?"Edit Position":"Create Position"}};n.\u0275fac=function(r){return new(r||n)},n.\u0275cmp=E({type:n,selectors:[["app-position-form"]],decls:43,vars:14,consts:[[1,"loading-overlay"],[3,"ngSubmit","formGroup"],[1,"form-section"],["appearance","outline",1,"full-width"],["matInput","","formControlName","positionTitle"],[4,"ngIf"],["matInput","","formControlName","positionNumber"],["matInput","","formControlName","positionDescription","rows","4"],["formControlName","departmentId"],[3,"value",4,"ngFor","ngForOf"],["formControlName","salaryRangeId"],[1,"form-actions"],["type","button","mat-stroked-button","",3,"click"],["type","submit","mat-raised-button","","color","primary",3,"disabled"],[3,"value"]],template:function(r,o){if(r&1&&(M(0,"page-header"),m(1,"mat-card")(2,"mat-card-header")(3,"mat-card-title"),g(4),h()(),m(5,"mat-card-content"),V(6,hye,2,0,"div",0),m(7,"form",1),S("ngSubmit",function(){return o.onSubmit()}),m(8,"div",2)(9,"mat-form-field",3)(10,"mat-label"),g(11,"Position Title"),h(),M(12,"input",4),A(13,pye,2,0,"mat-error",5)(14,fye,2,0,"mat-error",5),h(),m(15,"mat-form-field",3)(16,"mat-label"),g(17,"Position Number"),h(),M(18,"input",6),A(19,gye,2,0,"mat-error",5)(20,_ye,2,0,"mat-error",5),h(),m(21,"mat-form-field",3)(22,"mat-label"),g(23,"Position Description"),h(),M(24,"textarea",7),A(25,bye,2,0,"mat-error",5),h(),m(26,"mat-form-field",3)(27,"mat-label"),g(28,"Department"),h(),m(29,"mat-select",8),A(30,vye,2,2,"mat-option",9),h(),A(31,yye,2,0,"mat-error",5),h(),m(32,"mat-form-field",3)(33,"mat-label"),g(34,"Salary Range"),h(),m(35,"mat-select",10),A(36,xye,4,10,"mat-option",9),h(),A(37,Cye,2,0,"mat-error",5),h()(),m(38,"div",11)(39,"button",12),S("click",function(){return o.onCancel()}),g(40," Cancel "),h(),m(41,"button",13),g(42),h()()()()()),r&2){let a,s,l,c,d,p,_;f(4),N(o.getFormTitle()),f(2),B(o.loading?6:-1),f(),v("formGroup",o.positionForm),f(6),v("ngIf",(a=o.positionForm.get("positionTitle"))==null?null:a.hasError("required")),f(),v("ngIf",(s=o.positionForm.get("positionTitle"))==null?null:s.hasError("maxlength")),f(5),v("ngIf",(l=o.positionForm.get("positionNumber"))==null?null:l.hasError("required")),f(),v("ngIf",(c=o.positionForm.get("positionNumber"))==null?null:c.hasError("maxlength")),f(5),v("ngIf",(d=o.positionForm.get("positionDescription"))==null?null:d.hasError("maxlength")),f(5),v("ngForOf",o.departments),f(),v("ngIf",(p=o.positionForm.get("departmentId"))==null?null:p.hasError("required")),f(5),v("ngForOf",o.salaryRanges),f(),v("ngIf",(_=o.positionForm.get("salaryRangeId"))==null?null:_.hasError("required")),f(4),v("disabled",o.loading),f(),pe(" ",o.isEditMode?"Update":"Create"," ")}},dependencies:[ut,vr,Jt,$n,no,Hi,qt,io,Ji,Ur,Be,Mt,Ut,Ht,zt,Gt,Wt,Pi,Ci,Gi,So,Mn,en,_c,La,wn,gi,fi,_i,Qt,jd],styles:["mat-card[_ngcontent-%COMP%]{margin:16px;max-width:800px}mat-card-header[_ngcontent-%COMP%]{margin-bottom:16px;padding:16px;border-bottom:1px solid rgba(0,0,0,.12)}mat-card-header[_ngcontent-%COMP%] mat-card-title[_ngcontent-%COMP%]{font-size:20px;font-weight:500;margin:0}mat-card-content[_ngcontent-%COMP%]{padding:16px;position:relative}.loading-overlay[_ngcontent-%COMP%]{position:absolute;inset:0;background-color:#fffc;display:flex;align-items:center;justify-content:center;z-index:1000}.form-section[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:16px;margin-bottom:24px}.form-section[_ngcontent-%COMP%] .full-width[_ngcontent-%COMP%]{width:100%}.form-actions[_ngcontent-%COMP%]{display:flex;gap:12px;justify-content:flex-end;padding-top:16px;border-top:1px solid rgba(0,0,0,.12)}"]});let t=n;return t})();var aU=()=>["HRAdmin","Manager"],wye=()=>[5,10,25,50],Dye=()=>["HRAdmin"];function Eye(t,n){if(t&1){let e=q();m(0,"button",6),S("click",function(){T(e);let r=x();return I(r.createSalaryRange())}),m(1,"mat-icon"),g(2,"add"),h(),g(3," Add Salary Range "),h()}}function Mye(t,n){t&1&&(m(0,"div",7),M(1,"mat-spinner"),h())}function Sye(t,n){t&1&&(m(0,"th",20),g(1,"Range Name"),h())}function kye(t,n){if(t&1&&(m(0,"td",21),g(1),h()),t&2){let e=n.$implicit;f(),N(e.name)}}function Tye(t,n){t&1&&(m(0,"th",20),g(1,"Minimum Salary"),h())}function Iye(t,n){if(t&1&&(m(0,"td",21),g(1),ue(2,"currency"),h()),t&2){let e=n.$implicit;f(),N(Tm(2,1,e.minSalary,"USD","symbol","1.0-0"))}}function Aye(t,n){t&1&&(m(0,"th",20),g(1,"Maximum Salary"),h())}function Oye(t,n){if(t&1&&(m(0,"td",21),g(1),ue(2,"currency"),h()),t&2){let e=n.$implicit;f(),N(Tm(2,1,e.maxSalary,"USD","symbol","1.0-0"))}}function Rye(t,n){t&1&&(m(0,"th",22),g(1,"Actions"),h())}function Pye(t,n){if(t&1){let e=q();m(0,"button",28),S("click",function(){T(e);let r=x().$implicit,o=x(2);return I(o.editSalaryRange(r))}),m(1,"mat-icon"),g(2,"edit"),h()()}}function Fye(t,n){if(t&1){let e=q();m(0,"button",29),S("click",function(){T(e);let r=x().$implicit,o=x(2);return I(o.deleteSalaryRange(r))}),m(1,"mat-icon"),g(2,"delete"),h()()}}function Nye(t,n){if(t&1){let e=q();m(0,"td",23)(1,"div",24)(2,"button",25),S("click",function(){let r=T(e).$implicit,o=x(2);return I(o.viewSalaryRange(r))}),m(3,"mat-icon"),g(4,"visibility"),h()(),A(5,Pye,3,0,"button",26)(6,Fye,3,0,"button",27),h()()}t&2&&(f(5),v("appHasRole",rt(2,aU)),f(),v("appHasRole",rt(3,Dye)))}function Lye(t,n){t&1&&M(0,"tr",30)}function Vye(t,n){t&1&&M(0,"tr",31)}function Bye(t,n){if(t&1&&(m(0,"tr",32)(1,"td",33)(2,"div",34)(3,"mat-icon"),g(4,"money_off"),h(),m(5,"p"),g(6,"No salary ranges found"),h()()()()),t&2){let e=x(2);f(),X("colspan",e.displayedColumns.length)}}function jye(t,n){if(t&1&&(m(0,"table",8),kt(1,9),A(2,Sye,2,0,"th",10)(3,kye,2,1,"td",11),Dt(),kt(4,12),A(5,Tye,2,0,"th",10)(6,Iye,3,6,"td",11),Dt(),kt(7,13),A(8,Aye,2,0,"th",10)(9,Oye,3,6,"td",11),Dt(),kt(10,14),A(11,Rye,2,0,"th",15)(12,Nye,7,4,"td",16),Dt(),A(13,Lye,1,0,"tr",17)(14,Vye,1,0,"tr",18)(15,Bye,7,1,"tr",19),h()),t&2){let e=x();v("dataSource",e.dataSource),f(13),v("matHeaderRowDef",e.displayedColumns),f(),v("matRowDefColumns",e.displayedColumns)}}var sU=(()=>{let n=class n{constructor(){this.salaryRangeService=u(Wc),this.authService=u(Ot),this.router=u(Re),this.snackBar=u(ui),this.dialog=u(kn),this.dataSource=new yw([]),this.loading=!1,this.displayedColumns=["name","minSalary","maxSalary","actions"]}ngOnInit(){this.loadSalaryRanges()}ngAfterViewInit(){this.dataSource.paginator=this.paginator,this.dataSource.sort=this.sort}loadSalaryRanges(){this.loading=!0,this.salaryRangeService.getAll().subscribe({next:i=>{this.dataSource.data=i,this.loading=!1},error:i=>{console.error("Error loading salary ranges:",i),this.loading=!1}})}createSalaryRange(){this.router.navigate(["/salary-ranges/create"])}viewSalaryRange(i){this.router.navigate(["/salary-ranges",i.id])}editSalaryRange(i){this.router.navigate(["/salary-ranges/edit",i.id])}deleteSalaryRange(i){this.dialog.open(Tr,{width:"400px",data:{title:"Delete Salary Range",message:`Are you sure you want to delete "${i.name}"? This action cannot be undone.`,confirmText:"Delete",cancelText:"Cancel"}}).afterClosed().subscribe(o=>{o&&this.salaryRangeService.delete(i.id).subscribe({next:()=>{this.showMessage(`"${i.name}" has been deleted.`),this.loadSalaryRanges()},error:a=>{console.error("Error deleting salary range:",a),this.showMessage("Failed to delete salary range. Please try again.")}})})}showMessage(i){this.snackBar.open(i,"Close",{duration:3e3,horizontalPosition:"end",verticalPosition:"top"})}canEdit(){return this.authService.hasRole("HRAdmin")||this.authService.hasRole("Manager")}};n.\u0275fac=function(r){return new(r||n)},n.\u0275cmp=E({type:n,selectors:[["app-salary-range-list"]],viewQuery:function(r,o){if(r&1&&(ie(or,5),ie(kl,5)),r&2){let a;j(a=H())&&(o.paginator=a.first),j(a=H())&&(o.sort=a.first)}},decls:12,vars:6,consts:[[1,"flex-spacer"],["mat-raised-button","","color","primary",3,"click",4,"appHasRole"],[1,"table-container"],["class","loading-spinner",4,"ngIf"],["mat-table","","matSort","","class","salary-range-table",3,"dataSource",4,"ngIf"],["showFirstLastButtons","",3,"pageSizeOptions"],["mat-raised-button","","color","primary",3,"click"],[1,"loading-spinner"],["mat-table","","matSort","",1,"salary-range-table",3,"dataSource"],["matColumnDef","name"],["mat-header-cell","","mat-sort-header","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","minSalary"],["matColumnDef","maxSalary"],["matColumnDef","actions"],["mat-header-cell","","class","mat-column-actions",4,"matHeaderCellDef"],["mat-cell","","class","mat-column-actions",4,"matCellDef"],["mat-header-row","",4,"matHeaderRowDef"],["mat-row","",4,"matRowDef","matRowDefColumns"],["class","mat-row",4,"matNoDataRow"],["mat-header-cell","","mat-sort-header",""],["mat-cell",""],["mat-header-cell","",1,"mat-column-actions"],["mat-cell","",1,"mat-column-actions"],[1,"action-buttons"],["mat-icon-button","","color","primary","matTooltip","View Details",3,"click"],["mat-icon-button","","color","accent","matTooltip","Edit Salary Range",3,"click",4,"appHasRole"],["mat-icon-button","","color","warn","matTooltip","Delete Salary Range",3,"click",4,"appHasRole"],["mat-icon-button","","color","accent","matTooltip","Edit Salary Range",3,"click"],["mat-icon-button","","color","warn","matTooltip","Delete Salary Range",3,"click"],["mat-header-row",""],["mat-row",""],[1,"mat-row"],[1,"mat-cell"],[1,"no-data"]],template:function(r,o){r&1&&(M(0,"page-header"),m(1,"mat-card")(2,"mat-card-header")(3,"mat-card-title"),g(4,"Salary Ranges"),h(),M(5,"span",0),A(6,Eye,4,0,"button",1),h(),m(7,"mat-card-content")(8,"div",2),A(9,Mye,2,0,"div",3)(10,jye,16,3,"table",4),h(),M(11,"mat-paginator",5),h()()),r&2&&(f(6),v("appHasRole",rt(4,aU)),f(3),v("ngIf",o.loading),f(),v("ngIf",!o.loading),f(),v("pageSizeOptions",rt(5,wye)))},dependencies:[ut,Jt,Be,Mt,Yt,Ut,Ht,zt,Gt,Wt,tt,st,id,Gc,Yc,Xc,Qc,qc,Jc,Kc,Zc,ed,td,xw,vc,or,Iw,kl,Tw,gi,fi,$r,Ao,_i,Tn,Qt,Wn,nl],styles:["mat-card[_ngcontent-%COMP%]{margin:16px}mat-card-header[_ngcontent-%COMP%]{display:flex;align-items:center;margin-bottom:16px;padding:16px;border-bottom:1px solid rgba(0,0,0,.12)}mat-card-header[_ngcontent-%COMP%] mat-card-title[_ngcontent-%COMP%]{font-size:20px;font-weight:500;margin:0}mat-card-header[_ngcontent-%COMP%] .flex-spacer[_ngcontent-%COMP%]{flex:1 1 auto}mat-card-header[_ngcontent-%COMP%] button[_ngcontent-%COMP%] mat-icon[_ngcontent-%COMP%]{margin-right:4px}mat-card-content[_ngcontent-%COMP%]{padding:0}.table-container[_ngcontent-%COMP%]{position:relative;min-height:300px;overflow-x:auto}.loading-spinner[_ngcontent-%COMP%]{display:flex;justify-content:center;align-items:center;min-height:300px}.salary-range-table[_ngcontent-%COMP%]{width:100%}.salary-range-table[_ngcontent-%COMP%] th[_ngcontent-%COMP%]{font-weight:600;font-size:14px;color:#000000de}.salary-range-table[_ngcontent-%COMP%] td[_ngcontent-%COMP%]{font-size:14px;color:#000000de}.salary-range-table[_ngcontent-%COMP%] .mat-column-name[_ngcontent-%COMP%]{min-width:200px}.salary-range-table[_ngcontent-%COMP%] .mat-column-minSalary[_ngcontent-%COMP%], .salary-range-table[_ngcontent-%COMP%] .mat-column-maxSalary[_ngcontent-%COMP%]{min-width:150px}.salary-range-table[_ngcontent-%COMP%] .mat-column-actions[_ngcontent-%COMP%]{width:150px;text-align:right}.salary-range-table[_ngcontent-%COMP%] .action-buttons[_ngcontent-%COMP%]{display:flex;justify-content:flex-end;gap:4px}.salary-range-table[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{margin-left:4px}.no-data[_ngcontent-%COMP%]{display:flex;flex-direction:column;align-items:center;justify-content:center;padding:48px 16px;color:#0000008a}.no-data[_ngcontent-%COMP%] mat-icon[_ngcontent-%COMP%]{font-size:48px;width:48px;height:48px;margin-bottom:16px}.no-data[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{margin:0;font-size:16px}mat-paginator[_ngcontent-%COMP%]{border-top:1px solid rgba(0,0,0,.12)}"]});let t=n;return t})();var lU=()=>["HRAdmin","Manager"];function Hye(t,n){t&1&&(m(0,"div",2),M(1,"mat-spinner"),h())}function zye(t,n){if(t&1){let e=q();m(0,"button",9),S("click",function(){T(e);let r=x(2);return I(r.editSalaryRange())}),m(1,"mat-icon"),g(2,"edit"),h()()}}function Uye(t,n){if(t&1){let e=q();m(0,"button",10),S("click",function(){T(e);let r=x(2);return I(r.deleteSalaryRange())}),m(1,"mat-icon"),g(2,"delete"),h()()}}function $ye(t,n){if(t&1&&(m(0,"mat-list-item")(1,"span",7),g(2,"Created:"),h(),m(3,"span",8),g(4),ue(5,"date"),h()()),t&2){let e=x(2);f(4),N(Ei(5,1,e.salaryRange.createdAt,"medium"))}}function Wye(t,n){t&1&&M(0,"mat-divider")}function Gye(t,n){if(t&1&&(m(0,"mat-list-item")(1,"span",7),g(2,"Last Modified:"),h(),m(3,"span",8),g(4),ue(5,"date"),h()()),t&2){let e=x(2);f(4),N(Ei(5,1,e.salaryRange.lastModifiedAt,"medium"))}}function qye(t,n){if(t&1){let e=q();m(0,"mat-card")(1,"mat-card-header")(2,"mat-card-title"),g(3),h(),m(4,"div",3),A(5,zye,3,0,"button",4)(6,Uye,3,0,"button",5),m(7,"button",6),S("click",function(){T(e);let r=x();return I(r.goBack())}),m(8,"mat-icon"),g(9,"arrow_back"),h()()()(),m(10,"mat-card-content")(11,"mat-list")(12,"mat-list-item")(13,"span",7),g(14,"Name:"),h(),m(15,"span",8),g(16),h()(),M(17,"mat-divider"),m(18,"mat-list-item")(19,"span",7),g(20,"Minimum Salary:"),h(),m(21,"span",8),g(22),ue(23,"currency"),h()(),M(24,"mat-divider"),m(25,"mat-list-item")(26,"span",7),g(27,"Maximum Salary:"),h(),m(28,"span",8),g(29),ue(30,"currency"),h()(),M(31,"mat-divider"),A(32,$ye,6,4,"mat-list-item",1)(33,Wye,1,0,"mat-divider",1)(34,Gye,6,4,"mat-list-item",1),h()()()}if(t&2){let e=x();f(3),N(e.salaryRange.name),f(2),v("appHasRole",rt(13,lU)),f(),v("appHasRole",rt(14,lU)),f(10),N(e.salaryRange.name),f(6),N(Oe(23,9,e.salaryRange.minSalary)),f(7),N(Oe(30,11,e.salaryRange.maxSalary)),f(3),v("ngIf",e.salaryRange.createdAt),f(),v("ngIf",e.salaryRange.createdAt),f(),v("ngIf",e.salaryRange.lastModifiedAt)}}function Yye(t,n){t&1&&(m(0,"mat-card")(1,"mat-card-content")(2,"p"),g(3,"Salary range not found."),h()()())}var cU=(()=>{let n=class n{constructor(){this.salaryRangeService=u(Wc),this.authService=u(Ot),this.route=u(Si),this.router=u(Re),this.snackBar=u(ui),this.dialog=u(kn),this.loading=!1}ngOnInit(){let i=this.route.snapshot.paramMap.get("id");i&&this.loadSalaryRange(i)}loadSalaryRange(i){this.loading=!0,this.salaryRangeService.getById(i).subscribe({next:r=>{this.salaryRange=r,this.loading=!1},error:r=>{console.error("Error loading salary range:",r),this.showMessage("Error loading salary range"),this.loading=!1,this.router.navigate(["/salary-ranges"])}})}editSalaryRange(){this.router.navigate(["/salary-ranges","edit",this.salaryRange.id])}deleteSalaryRange(){this.dialog.open(Tr,{width:"400px",data:{title:"Delete Salary Range",message:`Are you sure you want to delete "${this.salaryRange.name}"? This action cannot be undone.`,confirmText:"Delete",cancelText:"Cancel"}}).afterClosed().subscribe(r=>{r&&this.salaryRangeService.delete(this.salaryRange.id).subscribe({next:()=>{let o=this.snackBar.open(`"${this.salaryRange.name}" has been deleted.`,"Close",{duration:3e3,horizontalPosition:"end",verticalPosition:"top"});o.afterDismissed().subscribe(()=>this.router.navigate(["/salary-ranges"])),o.onAction().subscribe(()=>this.router.navigate(["/salary-ranges"]))},error:o=>{console.error("Error deleting salary range:",o),this.showMessage("Failed to delete salary range. Please try again.")}})})}goBack(){this.router.navigate(["/salary-ranges"])}canEdit(){return this.authService.isHRAdmin()||this.authService.isManager()}canDelete(){return this.authService.isHRAdmin()||this.authService.isManager()}showMessage(i){this.snackBar.open(i,"Close",{duration:3e3,horizontalPosition:"end",verticalPosition:"top"})}};n.\u0275fac=function(r){return new(r||n)},n.\u0275cmp=E({type:n,selectors:[["app-salary-range-detail"]],decls:4,vars:3,consts:[["class","loading-spinner",4,"ngIf"],[4,"ngIf"],[1,"loading-spinner"],[1,"header-actions"],["mat-icon-button","","color","primary","matTooltip","Edit Salary Range",3,"click",4,"appHasRole"],["mat-icon-button","","color","warn","matTooltip","Delete Salary Range",3,"click",4,"appHasRole"],["mat-icon-button","","matTooltip","Back to List",3,"click"],[1,"label"],[1,"value"],["mat-icon-button","","color","primary","matTooltip","Edit Salary Range",3,"click"],["mat-icon-button","","color","warn","matTooltip","Delete Salary Range",3,"click"]],template:function(r,o){r&1&&(M(0,"page-header"),A(1,Hye,2,0,"div",0)(2,qye,35,15,"mat-card",1)(3,Yye,4,0,"mat-card",1)),r&2&&(f(),v("ngIf",o.loading),f(),v("ngIf",!o.loading&&o.salaryRange),f(),v("ngIf",!o.loading&&!o.salaryRange))},dependencies:[ut,Jt,Be,Yt,Ut,Ht,zt,Gt,Wt,tt,st,ua,Ns,da,Po,ho,gi,fi,_i,Tn,Qt,Wn,nl,Ta],styles:[".loading-spinner[_ngcontent-%COMP%]{display:flex;justify-content:center;align-items:center;min-height:400px}mat-card[_ngcontent-%COMP%]{margin:16px;max-width:800px}mat-card-header[_ngcontent-%COMP%]{padding:16px;border-bottom:1px solid rgba(0,0,0,.12);display:flex;justify-content:space-between;align-items:center}mat-card-header[_ngcontent-%COMP%] mat-card-title[_ngcontent-%COMP%]{font-size:24px;font-weight:500;margin:0}mat-card-header[_ngcontent-%COMP%] .header-actions[_ngcontent-%COMP%]{display:flex;gap:8px}mat-card-content[_ngcontent-%COMP%]{padding:0}mat-list[_ngcontent-%COMP%]{padding:0}mat-list-item[_ngcontent-%COMP%]{height:auto!important;min-height:48px;padding:12px 16px;display:flex;justify-content:space-between;align-items:flex-start}mat-list-item[_ngcontent-%COMP%] .label[_ngcontent-%COMP%]{font-weight:500;color:#0009;min-width:180px}mat-list-item[_ngcontent-%COMP%] .value[_ngcontent-%COMP%]{flex:1;text-align:right;word-break:break-word}"]});let t=n;return t})();function Qye(t,n){t&1&&(m(0,"div",0),M(1,"mat-spinner"),h())}function Kye(t,n){t&1&&(m(0,"mat-error"),g(1," Range name is required "),h())}function Zye(t,n){t&1&&(m(0,"mat-error"),g(1," Range name cannot exceed 100 characters "),h())}function Xye(t,n){t&1&&(m(0,"mat-error"),g(1," Minimum salary is required "),h())}function Jye(t,n){t&1&&(m(0,"mat-error"),g(1," Minimum salary must be at least 0 "),h())}function exe(t,n){t&1&&(m(0,"mat-error"),g(1," Maximum salary is required "),h())}function txe(t,n){t&1&&(m(0,"mat-error"),g(1," Maximum salary must be at least 0 "),h())}function ixe(t,n){t&1&&(m(0,"mat-error",13),g(1," Maximum salary must be greater than minimum salary "),h())}var hA=(()=>{let n=class n{constructor(){this.fb=u(ro),this.router=u(Re),this.route=u(Si),this.snackBar=u(ui),this.salaryRangeService=u(Wc),this.loading=!1,this.isEditMode=!1}ngOnInit(){this.initForm(),this.checkEditMode()}initForm(){this.salaryRangeForm=this.fb.group({name:["",[Le.required,Le.maxLength(100)]],minSalary:["",[Le.required,Le.min(0)]],maxSalary:["",[Le.required,Le.min(0)]]},{validators:this.salaryRangeValidator})}salaryRangeValidator(i){let r=i.get("minSalary")?.value,o=i.get("maxSalary")?.value;return r&&o&&parseFloat(r)>=parseFloat(o)?{salaryRangeInvalid:!0}:null}checkEditMode(){this.salaryRangeId=this.route.snapshot.paramMap.get("id")||void 0,this.isEditMode=!!this.salaryRangeId,this.isEditMode&&this.salaryRangeId&&this.loadSalaryRange(this.salaryRangeId)}loadSalaryRange(i){this.loading=!0,this.salaryRangeService.getById(i).subscribe({next:r=>{this.salaryRangeForm.patchValue({name:r.name,minSalary:r.minSalary,maxSalary:r.maxSalary}),this.loading=!1},error:r=>{console.error("Error loading salary range:",r),this.showMessage("Error loading salary range"),this.loading=!1}})}onSubmit(){if(this.salaryRangeForm.invalid){this.salaryRangeForm.markAllAsTouched();return}if(this.loading=!0,this.isEditMode&&this.salaryRangeId){let i={id:this.salaryRangeId,name:this.salaryRangeForm.value.name,minSalary:parseFloat(this.salaryRangeForm.value.minSalary),maxSalary:parseFloat(this.salaryRangeForm.value.maxSalary)};this.salaryRangeService.updateSalaryRange(i).subscribe({next:()=>{this.showMessage("Salary range updated successfully"),this.router.navigate(["/salary-ranges",this.salaryRangeId])},error:r=>{console.error("Error updating salary range:",r),this.showMessage("Error updating salary range"),this.loading=!1}})}else{let i={name:this.salaryRangeForm.value.name,minSalary:parseFloat(this.salaryRangeForm.value.minSalary),maxSalary:parseFloat(this.salaryRangeForm.value.maxSalary)};this.salaryRangeService.createSalaryRange(i).subscribe({next:r=>{console.log("Salary range created - Response:",r),console.log("Salary range ID:",r?.id),this.showMessage("Salary range created successfully"),r?.id?(console.log("Navigating to detail page:","/salary-ranges/"+r.id),this.router.navigate(["/salary-ranges",r.id])):(console.warn("No salary range ID returned, navigating to list page"),this.router.navigate(["/salary-ranges"])),this.loading=!1},error:r=>{console.error("Error creating salary range:",r),this.showMessage("Error creating salary range"),this.loading=!1}})}}onCancel(){this.router.navigate(["/salary-ranges"])}showMessage(i){this.snackBar.open(i,"Close",{duration:3e3,horizontalPosition:"end",verticalPosition:"top"})}getFormTitle(){return this.isEditMode?"Edit Salary Range":"Create Salary Range"}};n.\u0275fac=function(r){return new(r||n)},n.\u0275cmp=E({type:n,selectors:[["app-salary-range-form"]],decls:37,vars:12,consts:[[1,"loading-overlay"],[3,"ngSubmit","formGroup"],[1,"form-section"],["appearance","outline",1,"full-width"],["matInput","","formControlName","name"],[4,"ngIf"],["matInput","","type","number","formControlName","minSalary"],["matTextPrefix",""],["matInput","","type","number","formControlName","maxSalary"],["class","range-error",4,"ngIf"],[1,"form-actions"],["type","button","mat-stroked-button","",3,"click"],["type","submit","mat-raised-button","","color","primary",3,"disabled"],[1,"range-error"]],template:function(r,o){if(r&1&&(M(0,"page-header"),m(1,"mat-card")(2,"mat-card-header")(3,"mat-card-title"),g(4),h()(),m(5,"mat-card-content"),V(6,Qye,2,0,"div",0),m(7,"form",1),S("ngSubmit",function(){return o.onSubmit()}),m(8,"div",2)(9,"mat-form-field",3)(10,"mat-label"),g(11,"Range Name"),h(),M(12,"input",4),A(13,Kye,2,0,"mat-error",5)(14,Zye,2,0,"mat-error",5),h(),m(15,"mat-form-field",3)(16,"mat-label"),g(17,"Minimum Salary"),h(),M(18,"input",6),m(19,"span",7),g(20,"$\xA0"),h(),A(21,Xye,2,0,"mat-error",5)(22,Jye,2,0,"mat-error",5),h(),m(23,"mat-form-field",3)(24,"mat-label"),g(25,"Maximum Salary"),h(),M(26,"input",8),m(27,"span",7),g(28,"$\xA0"),h(),A(29,exe,2,0,"mat-error",5)(30,txe,2,0,"mat-error",5),h(),A(31,ixe,2,0,"mat-error",9),h(),m(32,"div",10)(33,"button",11),S("click",function(){return o.onCancel()}),g(34," Cancel "),h(),m(35,"button",12),g(36),h()()()()()),r&2){let a,s,l,c,d,p;f(4),N(o.getFormTitle()),f(2),B(o.loading?6:-1),f(),v("formGroup",o.salaryRangeForm),f(6),v("ngIf",(a=o.salaryRangeForm.get("name"))==null?null:a.hasError("required")),f(),v("ngIf",(s=o.salaryRangeForm.get("name"))==null?null:s.hasError("maxlength")),f(7),v("ngIf",(l=o.salaryRangeForm.get("minSalary"))==null?null:l.hasError("required")),f(),v("ngIf",(c=o.salaryRangeForm.get("minSalary"))==null?null:c.hasError("min")),f(7),v("ngIf",(d=o.salaryRangeForm.get("maxSalary"))==null?null:d.hasError("required")),f(),v("ngIf",(p=o.salaryRangeForm.get("maxSalary"))==null?null:p.hasError("min")),f(),v("ngIf",o.salaryRangeForm.hasError("salaryRangeInvalid")&&o.salaryRangeForm.touched),f(4),v("disabled",o.loading),f(),pe(" ",o.isEditMode?"Update":"Create"," ")}},dependencies:[ut,Jt,$n,no,Hi,fu,qt,io,Ji,Ur,Be,Mt,Ut,Ht,zt,Gt,Wt,Pi,Ci,Gi,So,cu,Mn,en,gi,fi,_i,Qt],styles:["mat-card[_ngcontent-%COMP%]{margin:16px;max-width:800px}mat-card-header[_ngcontent-%COMP%]{margin-bottom:16px;padding:16px;border-bottom:1px solid rgba(0,0,0,.12)}mat-card-header[_ngcontent-%COMP%] mat-card-title[_ngcontent-%COMP%]{font-size:20px;font-weight:500;margin:0}mat-card-content[_ngcontent-%COMP%]{padding:16px;position:relative}.loading-overlay[_ngcontent-%COMP%]{position:absolute;inset:0;background-color:#fffc;display:flex;align-items:center;justify-content:center;z-index:1000}.form-section[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:16px;margin-bottom:24px}.form-section[_ngcontent-%COMP%] .full-width[_ngcontent-%COMP%]{width:100%}.form-section[_ngcontent-%COMP%] .range-error[_ngcontent-%COMP%]{color:#f44336;font-size:12px;margin-top:-8px}.form-actions[_ngcontent-%COMP%]{display:flex;gap:12px;justify-content:flex-end;padding-top:16px;border-top:1px solid rgba(0,0,0,.12)}"]});let t=n;return t})();var nxe=["*",[["mat-chip-avatar"],["","matChipAvatar",""]],[["mat-chip-trailing-icon"],["","matChipRemove",""],["","matChipTrailingIcon",""]]],rxe=["*","mat-chip-avatar, [matChipAvatar]","mat-chip-trailing-icon,[matChipRemove],[matChipTrailingIcon]"];function oxe(t,n){t&1&&(m(0,"span",3),ne(1,1),h())}function axe(t,n){t&1&&(m(0,"span",6),ne(1,2),h())}var sxe=["*"];var lxe=new O("mat-chips-default-options",{providedIn:"root",factory:()=>({separatorKeyCodes:[13]})}),dU=new O("MatChipAvatar"),uU=new O("MatChipTrailingIcon"),mU=new O("MatChipEdit"),hU=new O("MatChipRemove"),fU=new O("MatChip"),pU=(()=>{class t{_elementRef=u(Y);_parentChip=u(fU);isInteractive=!0;_isPrimary=!0;_isLeading=!1;get disabled(){return this._disabled||this._parentChip?.disabled||!1}set disabled(e){this._disabled=e}_disabled=!1;tabIndex=-1;_allowFocusWhenDisabled=!1;_getDisabledAttribute(){return this.disabled&&!this._allowFocusWhenDisabled?"":null}_getTabindex(){return this.disabled&&!this._allowFocusWhenDisabled||!this.isInteractive?null:this.tabIndex.toString()}constructor(){u(ht).load(ki),this._elementRef.nativeElement.nodeName==="BUTTON"&&this._elementRef.nativeElement.setAttribute("type","button")}focus(){this._elementRef.nativeElement.focus()}_handleClick(e){!this.disabled&&this.isInteractive&&this._isPrimary&&(e.preventDefault(),this._parentChip._handlePrimaryActionInteraction())}_handleKeydown(e){(e.keyCode===13||e.keyCode===32)&&!this.disabled&&this.isInteractive&&this._isPrimary&&!this._parentChip._isEditing&&(e.preventDefault(),this._parentChip._handlePrimaryActionInteraction())}static \u0275fac=function(i){return new(i||t)};static \u0275dir=P({type:t,selectors:[["","matChipAction",""]],hostAttrs:[1,"mdc-evolution-chip__action","mat-mdc-chip-action"],hostVars:11,hostBindings:function(i,r){i&1&&S("click",function(a){return r._handleClick(a)})("keydown",function(a){return r._handleKeydown(a)}),i&2&&(X("tabindex",r._getTabindex())("disabled",r._getDisabledAttribute())("aria-disabled",r.disabled),G("mdc-evolution-chip__action--primary",r._isPrimary)("mdc-evolution-chip__action--presentational",!r.isInteractive)("mdc-evolution-chip__action--secondary",!r._isPrimary)("mdc-evolution-chip__action--trailing",!r._isPrimary&&!r._isLeading))},inputs:{isInteractive:"isInteractive",disabled:[2,"disabled","disabled",L],tabIndex:[2,"tabIndex","tabIndex",e=>e==null?-1:dt(e)],_allowFocusWhenDisabled:"_allowFocusWhenDisabled"}})}return t})();var pA=(()=>{class t{_changeDetectorRef=u(ye);_elementRef=u(Y);_tagName=u(iM);_ngZone=u(ae);_focusMonitor=u(ti);_globalRippleOptions=u(ws,{optional:!0});_document=u(_e);_onFocus=new z;_onBlur=new z;_isBasicChip;role=null;_hasFocusInternal=!1;_pendingFocus;_actionChanges;_animationsDisabled=Ye();_allLeadingIcons;_allTrailingIcons;_allEditIcons;_allRemoveIcons;_hasFocus(){return this._hasFocusInternal}id=u(Ze).getId("mat-mdc-chip-");ariaLabel=null;ariaDescription=null;_chipListDisabled=!1;_hadFocusOnRemove=!1;_textElement;get value(){return this._value!==void 0?this._value:this._textElement.textContent.trim()}set value(e){this._value=e}_value;color;removable=!0;highlighted=!1;disableRipple=!1;get disabled(){return this._disabled||this._chipListDisabled}set disabled(e){this._disabled=e}_disabled=!1;removed=new U;destroyed=new U;basicChipAttrName="mat-basic-chip";leadingIcon;editIcon;trailingIcon;removeIcon;primaryAction;_rippleLoader=u(ey);_injector=u(de);constructor(){let e=u(ht);e.load(ki),e.load(Jr),this._monitorFocus(),this._rippleLoader?.configureRipple(this._elementRef.nativeElement,{className:"mat-mdc-chip-ripple",disabled:this._isRippleDisabled()})}ngOnInit(){this._isBasicChip=this._elementRef.nativeElement.hasAttribute(this.basicChipAttrName)||this._tagName.toLowerCase()===this.basicChipAttrName}ngAfterViewInit(){this._textElement=this._elementRef.nativeElement.querySelector(".mat-mdc-chip-action-label"),this._pendingFocus&&(this._pendingFocus=!1,this.focus())}ngAfterContentInit(){this._actionChanges=Je(this._allLeadingIcons.changes,this._allTrailingIcons.changes,this._allEditIcons.changes,this._allRemoveIcons.changes).subscribe(()=>this._changeDetectorRef.markForCheck())}ngDoCheck(){this._rippleLoader.setDisabled(this._elementRef.nativeElement,this._isRippleDisabled())}ngOnDestroy(){this._focusMonitor.stopMonitoring(this._elementRef),this._rippleLoader?.destroyRipple(this._elementRef.nativeElement),this._actionChanges?.unsubscribe(),this.destroyed.emit({chip:this}),this.destroyed.complete()}remove(){this.removable&&(this._hadFocusOnRemove=this._hasFocus(),this.removed.emit({chip:this}))}_isRippleDisabled(){return this.disabled||this.disableRipple||this._animationsDisabled||this._isBasicChip||!this._hasInteractiveActions()||!!this._globalRippleOptions?.disabled}_hasTrailingIcon(){return!!(this.trailingIcon||this.removeIcon)}_handleKeydown(e){(e.keyCode===8&&!e.repeat||e.keyCode===46)&&(e.preventDefault(),this.remove())}focus(){this.disabled||(this.primaryAction?this.primaryAction.focus():this._pendingFocus=!0)}_getSourceAction(e){return this._getActions().find(i=>{let r=i._elementRef.nativeElement;return r===e||r.contains(e)})}_getActions(){let e=[];return this.editIcon&&e.push(this.editIcon),this.primaryAction&&e.push(this.primaryAction),this.removeIcon&&e.push(this.removeIcon),this.trailingIcon&&e.push(this.trailingIcon),e}_handlePrimaryActionInteraction(){}_hasInteractiveActions(){return this._getActions().some(e=>e.isInteractive)}_edit(e){}_monitorFocus(){this._focusMonitor.monitor(this._elementRef,!0).subscribe(e=>{let i=e!==null;i!==this._hasFocusInternal&&(this._hasFocusInternal=i,i?this._onFocus.next({chip:this}):(this._changeDetectorRef.markForCheck(),setTimeout(()=>this._ngZone.run(()=>this._onBlur.next({chip:this})))))})}static \u0275fac=function(i){return new(i||t)};static \u0275cmp=E({type:t,selectors:[["mat-basic-chip"],["","mat-basic-chip",""],["mat-chip"],["","mat-chip",""]],contentQueries:function(i,r,o){if(i&1&&(xe(o,dU,5),xe(o,mU,5),xe(o,uU,5),xe(o,hU,5),xe(o,dU,5),xe(o,uU,5),xe(o,mU,5),xe(o,hU,5)),i&2){let a;j(a=H())&&(r.leadingIcon=a.first),j(a=H())&&(r.editIcon=a.first),j(a=H())&&(r.trailingIcon=a.first),j(a=H())&&(r.removeIcon=a.first),j(a=H())&&(r._allLeadingIcons=a),j(a=H())&&(r._allTrailingIcons=a),j(a=H())&&(r._allEditIcons=a),j(a=H())&&(r._allRemoveIcons=a)}},viewQuery:function(i,r){if(i&1&&ie(pU,5),i&2){let o;j(o=H())&&(r.primaryAction=o.first)}},hostAttrs:[1,"mat-mdc-chip"],hostVars:31,hostBindings:function(i,r){i&1&&S("keydown",function(a){return r._handleKeydown(a)}),i&2&&(ci("id",r.id),X("role",r.role)("aria-label",r.ariaLabel),nt("mat-"+(r.color||"primary")),G("mdc-evolution-chip",!r._isBasicChip)("mdc-evolution-chip--disabled",r.disabled)("mdc-evolution-chip--with-trailing-action",r._hasTrailingIcon())("mdc-evolution-chip--with-primary-graphic",r.leadingIcon)("mdc-evolution-chip--with-primary-icon",r.leadingIcon)("mdc-evolution-chip--with-avatar",r.leadingIcon)("mat-mdc-chip-with-avatar",r.leadingIcon)("mat-mdc-chip-highlighted",r.highlighted)("mat-mdc-chip-disabled",r.disabled)("mat-mdc-basic-chip",r._isBasicChip)("mat-mdc-standard-chip",!r._isBasicChip)("mat-mdc-chip-with-trailing-icon",r._hasTrailingIcon())("_mat-animation-noopable",r._animationsDisabled))},inputs:{role:"role",id:"id",ariaLabel:[0,"aria-label","ariaLabel"],ariaDescription:[0,"aria-description","ariaDescription"],value:"value",color:"color",removable:[2,"removable","removable",L],highlighted:[2,"highlighted","highlighted",L],disableRipple:[2,"disableRipple","disableRipple",L],disabled:[2,"disabled","disabled",L]},outputs:{removed:"removed",destroyed:"destroyed"},exportAs:["matChip"],features:[Ce([{provide:fU,useExisting:t}])],ngContentSelectors:rxe,decls:8,vars:3,consts:[[1,"mat-mdc-chip-focus-overlay"],[1,"mdc-evolution-chip__cell","mdc-evolution-chip__cell--primary"],["matChipAction","",3,"isInteractive"],[1,"mdc-evolution-chip__graphic","mat-mdc-chip-graphic"],[1,"mdc-evolution-chip__text-label","mat-mdc-chip-action-label"],[1,"mat-mdc-chip-primary-focus-indicator","mat-focus-indicator"],[1,"mdc-evolution-chip__cell","mdc-evolution-chip__cell--trailing"]],template:function(i,r){i&1&&(Se(nxe),M(0,"span",0),m(1,"span",1)(2,"span",2),V(3,oxe,2,0,"span",3),m(4,"span",4),ne(5),M(6,"span",5),h()()(),V(7,axe,2,0,"span",6)),i&2&&(f(2),v("isInteractive",!1),f(),B(r.leadingIcon?3:-1),f(4),B(r._hasTrailingIcon()?7:-1))},dependencies:[pU],styles:[`.mdc-evolution-chip,.mdc-evolution-chip__cell,.mdc-evolution-chip__action{display:inline-flex;align-items:center}.mdc-evolution-chip{position:relative;max-width:100%}.mdc-evolution-chip__cell,.mdc-evolution-chip__action{height:100%}.mdc-evolution-chip__cell--primary{flex-basis:100%;overflow-x:hidden}.mdc-evolution-chip__cell--trailing{flex:1 0 auto}.mdc-evolution-chip__action{align-items:center;background:none;border:none;box-sizing:content-box;cursor:pointer;display:inline-flex;justify-content:center;outline:none;padding:0;text-decoration:none;color:inherit}.mdc-evolution-chip__action--presentational{cursor:auto}.mdc-evolution-chip--disabled,.mdc-evolution-chip__action:disabled{pointer-events:none}@media(forced-colors: active){.mdc-evolution-chip--disabled,.mdc-evolution-chip__action:disabled{forced-color-adjust:none}}.mdc-evolution-chip__action--primary{font:inherit;letter-spacing:inherit;white-space:inherit;overflow-x:hidden}.mat-mdc-standard-chip .mdc-evolution-chip__action--primary::before{border-width:var(--mat-chip-outline-width, 1px);border-radius:var(--mat-chip-container-shape-radius, 8px);box-sizing:border-box;content:"";height:100%;left:0;position:absolute;pointer-events:none;top:0;width:100%;z-index:1;border-style:solid}.mat-mdc-standard-chip .mdc-evolution-chip__action--primary{padding-left:12px;padding-right:12px}.mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic .mdc-evolution-chip__action--primary{padding-left:0;padding-right:12px}[dir=rtl] .mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic .mdc-evolution-chip__action--primary{padding-left:12px;padding-right:0}.mat-mdc-standard-chip:not(.mdc-evolution-chip--disabled) .mdc-evolution-chip__action--primary::before{border-color:var(--mat-chip-outline-color, var(--mat-sys-outline))}.mdc-evolution-chip__action--primary:not(.mdc-evolution-chip__action--presentational):not(.mdc-ripple-upgraded):focus::before{border-color:var(--mat-chip-focus-outline-color, var(--mat-sys-on-surface-variant))}.mat-mdc-standard-chip.mdc-evolution-chip--disabled .mdc-evolution-chip__action--primary::before{border-color:var(--mat-chip-disabled-outline-color, color-mix(in srgb, var(--mat-sys-on-surface) 12%, transparent))}.mat-mdc-standard-chip.mdc-evolution-chip--selected .mdc-evolution-chip__action--primary::before{border-width:var(--mat-chip-flat-selected-outline-width, 0)}.mat-mdc-basic-chip .mdc-evolution-chip__action--primary{font:inherit}.mat-mdc-standard-chip.mdc-evolution-chip--with-leading-action .mdc-evolution-chip__action--primary{padding-left:0;padding-right:12px}[dir=rtl] .mat-mdc-standard-chip.mdc-evolution-chip--with-leading-action .mdc-evolution-chip__action--primary{padding-left:12px;padding-right:0}.mat-mdc-standard-chip.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--primary{padding-left:12px;padding-right:0}[dir=rtl] .mat-mdc-standard-chip.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--primary{padding-left:0;padding-right:12px}.mat-mdc-standard-chip.mdc-evolution-chip--with-leading-action.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--primary{padding-left:0;padding-right:0}.mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--primary{padding-left:0;padding-right:0}[dir=rtl] .mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--primary{padding-left:0;padding-right:0}.mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic .mdc-evolution-chip__action--primary{padding-left:0;padding-right:12px}[dir=rtl] .mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic .mdc-evolution-chip__action--primary{padding-left:12px;padding-right:0}.mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--primary{padding-left:0;padding-right:0}[dir=rtl] .mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--primary{padding-left:0;padding-right:0}.mdc-evolution-chip__action--secondary{position:relative;overflow:visible}.mat-mdc-standard-chip:not(.mdc-evolution-chip--disabled) .mdc-evolution-chip__action--secondary{color:var(--mat-chip-with-trailing-icon-trailing-icon-color, var(--mat-sys-on-surface-variant))}.mat-mdc-standard-chip.mdc-evolution-chip--disabled .mdc-evolution-chip__action--secondary{color:var(--mat-chip-with-trailing-icon-disabled-trailing-icon-color, var(--mat-sys-on-surface))}.mat-mdc-standard-chip.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--secondary{padding-left:8px;padding-right:8px}.mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--secondary{padding-left:8px;padding-right:8px}.mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--secondary{padding-left:8px;padding-right:8px}[dir=rtl] .mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--secondary{padding-left:8px;padding-right:8px}.mdc-evolution-chip__text-label{-webkit-user-select:none;user-select:none;white-space:nowrap;text-overflow:ellipsis;overflow:hidden}.mat-mdc-standard-chip .mdc-evolution-chip__text-label{font-family:var(--mat-chip-label-text-font, var(--mat-sys-label-large-font));line-height:var(--mat-chip-label-text-line-height, var(--mat-sys-label-large-line-height));font-size:var(--mat-chip-label-text-size, var(--mat-sys-label-large-size));font-weight:var(--mat-chip-label-text-weight, var(--mat-sys-label-large-weight));letter-spacing:var(--mat-chip-label-text-tracking, var(--mat-sys-label-large-tracking))}.mat-mdc-standard-chip:not(.mdc-evolution-chip--disabled) .mdc-evolution-chip__text-label{color:var(--mat-chip-label-text-color, var(--mat-sys-on-surface-variant))}.mat-mdc-standard-chip.mdc-evolution-chip--selected:not(.mdc-evolution-chip--disabled) .mdc-evolution-chip__text-label{color:var(--mat-chip-selected-label-text-color, var(--mat-sys-on-secondary-container))}.mat-mdc-standard-chip.mdc-evolution-chip--disabled .mdc-evolution-chip__text-label,.mat-mdc-standard-chip.mdc-evolution-chip--selected.mdc-evolution-chip--disabled .mdc-evolution-chip__text-label{color:var(--mat-chip-disabled-label-text-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent))}.mdc-evolution-chip__graphic{align-items:center;display:inline-flex;justify-content:center;overflow:hidden;pointer-events:none;position:relative;flex:1 0 auto}.mat-mdc-standard-chip .mdc-evolution-chip__graphic{width:var(--mat-chip-with-avatar-avatar-size, 24px);height:var(--mat-chip-with-avatar-avatar-size, 24px);font-size:var(--mat-chip-with-avatar-avatar-size, 24px)}.mdc-evolution-chip--selecting .mdc-evolution-chip__graphic{transition:width 150ms 0ms cubic-bezier(0.4, 0, 0.2, 1)}.mdc-evolution-chip--selectable:not(.mdc-evolution-chip--selected):not(.mdc-evolution-chip--with-primary-icon) .mdc-evolution-chip__graphic{width:0}.mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic .mdc-evolution-chip__graphic{padding-left:6px;padding-right:6px}.mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic .mdc-evolution-chip__graphic{padding-left:4px;padding-right:8px}[dir=rtl] .mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic .mdc-evolution-chip__graphic{padding-left:8px;padding-right:4px}.mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__graphic{padding-left:6px;padding-right:6px}.mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__graphic{padding-left:4px;padding-right:8px}[dir=rtl] .mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__graphic{padding-left:8px;padding-right:4px}.mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-leading-action .mdc-evolution-chip__graphic{padding-left:0}.mdc-evolution-chip__checkmark{position:absolute;opacity:0;top:50%;left:50%;height:20px;width:20px}.mat-mdc-standard-chip:not(.mdc-evolution-chip--disabled) .mdc-evolution-chip__checkmark{color:var(--mat-chip-with-icon-selected-icon-color, var(--mat-sys-on-secondary-container))}.mat-mdc-standard-chip.mdc-evolution-chip--disabled .mdc-evolution-chip__checkmark{color:var(--mat-chip-with-icon-disabled-icon-color, var(--mat-sys-on-surface))}.mdc-evolution-chip--selecting .mdc-evolution-chip__checkmark{transition:transform 150ms 0ms cubic-bezier(0.4, 0, 0.2, 1);transform:translate(-75%, -50%)}.mdc-evolution-chip--selected .mdc-evolution-chip__checkmark{transform:translate(-50%, -50%);opacity:1}.mdc-evolution-chip__checkmark-svg{display:block}.mdc-evolution-chip__checkmark-path{stroke-width:2px;stroke-dasharray:29.7833385;stroke-dashoffset:29.7833385;stroke:currentColor}.mdc-evolution-chip--selecting .mdc-evolution-chip__checkmark-path{transition:stroke-dashoffset 150ms 45ms cubic-bezier(0.4, 0, 0.2, 1)}.mdc-evolution-chip--selected .mdc-evolution-chip__checkmark-path{stroke-dashoffset:0}@media(forced-colors: active){.mdc-evolution-chip__checkmark-path{stroke:CanvasText !important}}.mat-mdc-standard-chip .mdc-evolution-chip__icon--trailing{height:18px;width:18px;font-size:18px}.mdc-evolution-chip--disabled .mdc-evolution-chip__icon--trailing.mat-mdc-chip-remove{opacity:calc(var(--mat-chip-trailing-action-opacity, 1)*var(--mat-chip-with-trailing-icon-disabled-trailing-icon-opacity, 0.38))}.mdc-evolution-chip--disabled .mdc-evolution-chip__icon--trailing.mat-mdc-chip-remove:focus{opacity:calc(var(--mat-chip-trailing-action-focus-opacity, 1)*var(--mat-chip-with-trailing-icon-disabled-trailing-icon-opacity, 0.38))}.mat-mdc-standard-chip{border-radius:var(--mat-chip-container-shape-radius, 8px);height:var(--mat-chip-container-height, 32px)}.mat-mdc-standard-chip:not(.mdc-evolution-chip--disabled){background-color:var(--mat-chip-elevated-container-color, transparent)}.mat-mdc-standard-chip.mdc-evolution-chip--disabled{background-color:var(--mat-chip-elevated-disabled-container-color)}.mat-mdc-standard-chip.mdc-evolution-chip--selected:not(.mdc-evolution-chip--disabled){background-color:var(--mat-chip-elevated-selected-container-color, var(--mat-sys-secondary-container))}.mat-mdc-standard-chip.mdc-evolution-chip--selected.mdc-evolution-chip--disabled{background-color:var(--mat-chip-flat-disabled-selected-container-color, color-mix(in srgb, var(--mat-sys-on-surface) 12%, transparent))}@media(forced-colors: active){.mat-mdc-standard-chip{outline:solid 1px}}.mat-mdc-standard-chip .mdc-evolution-chip__icon--primary{border-radius:var(--mat-chip-with-avatar-avatar-shape-radius, 24px);width:var(--mat-chip-with-icon-icon-size, 18px);height:var(--mat-chip-with-icon-icon-size, 18px);font-size:var(--mat-chip-with-icon-icon-size, 18px)}.mdc-evolution-chip--selected .mdc-evolution-chip__icon--primary{opacity:0}.mat-mdc-standard-chip:not(.mdc-evolution-chip--disabled) .mdc-evolution-chip__icon--primary{color:var(--mat-chip-with-icon-icon-color, var(--mat-sys-on-surface-variant))}.mat-mdc-standard-chip.mdc-evolution-chip--disabled .mdc-evolution-chip__icon--primary{color:var(--mat-chip-with-icon-disabled-icon-color, var(--mat-sys-on-surface))}.mat-mdc-chip-highlighted{--mat-chip-with-icon-icon-color: var(--mat-chip-with-icon-selected-icon-color, var(--mat-sys-on-secondary-container));--mat-chip-elevated-container-color: var(--mat-chip-elevated-selected-container-color, var(--mat-sys-secondary-container));--mat-chip-label-text-color: var(--mat-chip-selected-label-text-color, var(--mat-sys-on-secondary-container));--mat-chip-outline-width: var(--mat-chip-flat-selected-outline-width, 0)}.mat-mdc-chip-focus-overlay{background:var(--mat-chip-focus-state-layer-color, var(--mat-sys-on-surface-variant))}.mat-mdc-chip-selected .mat-mdc-chip-focus-overlay,.mat-mdc-chip-highlighted .mat-mdc-chip-focus-overlay{background:var(--mat-chip-selected-focus-state-layer-color, var(--mat-sys-on-secondary-container))}.mat-mdc-chip:hover .mat-mdc-chip-focus-overlay{background:var(--mat-chip-hover-state-layer-color, var(--mat-sys-on-surface-variant));opacity:var(--mat-chip-hover-state-layer-opacity, var(--mat-sys-hover-state-layer-opacity))}.mat-mdc-chip-focus-overlay .mat-mdc-chip-selected:hover,.mat-mdc-chip-highlighted:hover .mat-mdc-chip-focus-overlay{background:var(--mat-chip-selected-hover-state-layer-color, var(--mat-sys-on-secondary-container));opacity:var(--mat-chip-selected-hover-state-layer-opacity, var(--mat-sys-hover-state-layer-opacity))}.mat-mdc-chip.cdk-focused .mat-mdc-chip-focus-overlay{background:var(--mat-chip-focus-state-layer-color, var(--mat-sys-on-surface-variant));opacity:var(--mat-chip-focus-state-layer-opacity, var(--mat-sys-focus-state-layer-opacity))}.mat-mdc-chip-selected.cdk-focused .mat-mdc-chip-focus-overlay,.mat-mdc-chip-highlighted.cdk-focused .mat-mdc-chip-focus-overlay{background:var(--mat-chip-selected-focus-state-layer-color, var(--mat-sys-on-secondary-container));opacity:var(--mat-chip-selected-focus-state-layer-opacity, var(--mat-sys-focus-state-layer-opacity))}.mdc-evolution-chip--disabled:not(.mdc-evolution-chip--selected) .mat-mdc-chip-avatar{opacity:var(--mat-chip-with-avatar-disabled-avatar-opacity, 0.38)}.mdc-evolution-chip--disabled .mdc-evolution-chip__icon--trailing{opacity:var(--mat-chip-with-trailing-icon-disabled-trailing-icon-opacity, 0.38)}.mdc-evolution-chip--disabled.mdc-evolution-chip--selected .mdc-evolution-chip__checkmark{opacity:var(--mat-chip-with-icon-disabled-icon-opacity, 0.38)}.mat-mdc-standard-chip.mdc-evolution-chip--disabled{opacity:var(--mat-chip-disabled-container-opacity, 1)}.mat-mdc-standard-chip.mdc-evolution-chip--selected .mdc-evolution-chip__icon--trailing,.mat-mdc-standard-chip.mat-mdc-chip-highlighted .mdc-evolution-chip__icon--trailing{color:var(--mat-chip-selected-trailing-icon-color, var(--mat-sys-on-secondary-container))}.mat-mdc-standard-chip.mdc-evolution-chip--selected.mdc-evolution-chip--disabled .mdc-evolution-chip__icon--trailing,.mat-mdc-standard-chip.mat-mdc-chip-highlighted.mdc-evolution-chip--disabled .mdc-evolution-chip__icon--trailing{color:var(--mat-chip-selected-disabled-trailing-icon-color, var(--mat-sys-on-surface))}.mat-mdc-chip-edit,.mat-mdc-chip-remove{opacity:var(--mat-chip-trailing-action-opacity, 1)}.mat-mdc-chip-edit:focus,.mat-mdc-chip-remove:focus{opacity:var(--mat-chip-trailing-action-focus-opacity, 1)}.mat-mdc-chip-edit::after,.mat-mdc-chip-remove::after{background-color:var(--mat-chip-trailing-action-state-layer-color, var(--mat-sys-on-surface-variant))}.mat-mdc-chip-edit:hover::after,.mat-mdc-chip-remove:hover::after{opacity:var(--mat-chip-trailing-action-hover-state-layer-opacity, var(--mat-sys-hover-state-layer-opacity))}.mat-mdc-chip-edit:focus::after,.mat-mdc-chip-remove:focus::after{opacity:var(--mat-chip-trailing-action-focus-state-layer-opacity, var(--mat-sys-focus-state-layer-opacity))}.mat-mdc-chip-selected .mat-mdc-chip-remove::after,.mat-mdc-chip-highlighted .mat-mdc-chip-remove::after{background-color:var(--mat-chip-selected-trailing-action-state-layer-color, var(--mat-sys-on-secondary-container))}.mat-mdc-standard-chip{-webkit-tap-highlight-color:rgba(0,0,0,0)}.mat-mdc-standard-chip .mdc-evolution-chip__cell--primary,.mat-mdc-standard-chip .mdc-evolution-chip__action--primary,.mat-mdc-standard-chip .mat-mdc-chip-action-label{overflow:visible}.mat-mdc-standard-chip .mat-mdc-chip-graphic,.mat-mdc-standard-chip .mat-mdc-chip-trailing-icon{box-sizing:content-box}.mat-mdc-standard-chip._mat-animation-noopable,.mat-mdc-standard-chip._mat-animation-noopable .mdc-evolution-chip__graphic,.mat-mdc-standard-chip._mat-animation-noopable .mdc-evolution-chip__checkmark,.mat-mdc-standard-chip._mat-animation-noopable .mdc-evolution-chip__checkmark-path{transition-duration:1ms;animation-duration:1ms}.mat-mdc-chip-focus-overlay{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none;opacity:0;border-radius:inherit;transition:opacity 150ms linear}._mat-animation-noopable .mat-mdc-chip-focus-overlay{transition:none}.mat-mdc-basic-chip .mat-mdc-chip-focus-overlay{display:none}.mat-mdc-chip .mat-ripple.mat-mdc-chip-ripple{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none;border-radius:inherit}.mat-mdc-chip-avatar{text-align:center;line-height:1;color:var(--mat-chip-with-icon-icon-color, currentColor)}.mat-mdc-chip{position:relative;z-index:0}.mat-mdc-chip-action-label{text-align:left;z-index:1}[dir=rtl] .mat-mdc-chip-action-label{text-align:right}.mat-mdc-chip.mdc-evolution-chip--with-trailing-action .mat-mdc-chip-action-label{position:relative}.mat-mdc-chip-action-label .mat-mdc-chip-primary-focus-indicator{position:absolute;top:0;right:0;bottom:0;left:0;pointer-events:none}.mat-mdc-chip-action-label .mat-focus-indicator::before{margin:calc(calc(var(--mat-focus-indicator-border-width, 3px) + 2px)*-1)}.mat-mdc-chip-edit::before,.mat-mdc-chip-remove::before{margin:calc(var(--mat-focus-indicator-border-width, 3px)*-1);left:8px;right:8px}.mat-mdc-chip-edit::after,.mat-mdc-chip-remove::after{content:"";display:block;opacity:0;position:absolute;top:-3px;bottom:-3px;left:5px;right:5px;border-radius:50%;box-sizing:border-box;padding:12px;margin:-12px;background-clip:content-box}.mat-mdc-chip-edit .mat-icon,.mat-mdc-chip-remove .mat-icon{width:18px;height:18px;font-size:18px;box-sizing:content-box}.mat-chip-edit-input{cursor:text;display:inline-block;color:inherit;outline:0}@media(forced-colors: active){.mat-mdc-chip-selected:not(.mat-mdc-chip-multiple){outline-width:3px}}.mat-mdc-chip-action:focus .mat-focus-indicator::before{content:""}.mdc-evolution-chip__icon,.mat-mdc-chip-edit .mat-icon,.mat-mdc-chip-remove .mat-icon{min-height:fit-content}img.mdc-evolution-chip__icon{min-height:0} +`],encapsulation:2,changeDetection:0})}return t})();var gU=(()=>{class t{_elementRef=u(Y);_changeDetectorRef=u(ye);_dir=u(Bt,{optional:!0});_lastDestroyedFocusedChipIndex=null;_keyManager;_destroyed=new z;_defaultRole="presentation";get chipFocusChanges(){return this._getChipStream(e=>e._onFocus)}get chipDestroyedChanges(){return this._getChipStream(e=>e.destroyed)}get chipRemovedChanges(){return this._getChipStream(e=>e.removed)}get disabled(){return this._disabled}set disabled(e){this._disabled=e,this._syncChipsState()}_disabled=!1;get empty(){return!this._chips||this._chips.length===0}get role(){return this._explicitRole?this._explicitRole:this.empty?null:this._defaultRole}tabIndex=0;set role(e){this._explicitRole=e}_explicitRole=null;get focused(){return this._hasFocusedChip()}_chips;_chipActions=new gr;constructor(){}ngAfterViewInit(){this._setUpFocusManagement(),this._trackChipSetChanges(),this._trackDestroyedFocusedChip()}ngOnDestroy(){this._keyManager?.destroy(),this._chipActions.destroy(),this._destroyed.next(),this._destroyed.complete()}_hasFocusedChip(){return this._chips&&this._chips.some(e=>e._hasFocus())}_syncChipsState(){this._chips?.forEach(e=>{e._chipListDisabled=this._disabled,e._changeDetectorRef.markForCheck()})}focus(){}_handleKeydown(e){this._originatesFromChip(e)&&this._keyManager.onKeydown(e)}_isValidIndex(e){return e>=0&&ethis._elementRef.nativeElement.tabIndex=e))}_getChipStream(e){return this._chips.changes.pipe(Ue(null),je(()=>Je(...this._chips.map(e))))}_originatesFromChip(e){let i=e.target;for(;i&&i!==this._elementRef.nativeElement;){if(i.classList.contains("mat-mdc-chip"))return!0;i=i.parentElement}return!1}_setUpFocusManagement(){this._chips.changes.pipe(Ue(this._chips)).subscribe(e=>{let i=[];e.forEach(r=>r._getActions().forEach(o=>i.push(o))),this._chipActions.reset(i),this._chipActions.notifyOnChanges()}),this._keyManager=new vs(this._chipActions).withVerticalOrientation().withHorizontalOrientation(this._dir?this._dir.value:"ltr").withHomeAndEnd().skipPredicate(e=>this._skipPredicate(e)),this.chipFocusChanges.pipe(we(this._destroyed)).subscribe(({chip:e})=>{let i=e._getSourceAction(document.activeElement);i&&this._keyManager.updateActiveItem(i)}),this._dir?.change.pipe(we(this._destroyed)).subscribe(e=>this._keyManager.withHorizontalOrientation(e))}_skipPredicate(e){return!e.isInteractive||e.disabled}_trackChipSetChanges(){this._chips.changes.pipe(Ue(null),we(this._destroyed)).subscribe(()=>{this.disabled&&Promise.resolve().then(()=>this._syncChipsState()),this._redirectDestroyedChipFocus()})}_trackDestroyedFocusedChip(){this.chipDestroyedChanges.pipe(we(this._destroyed)).subscribe(e=>{let r=this._chips.toArray().indexOf(e.chip),o=e.chip._hasFocus(),a=e.chip._hadFocusOnRemove&&this._keyManager.activeItem&&e.chip._getActions().includes(this._keyManager.activeItem),s=o||a;this._isValidIndex(r)&&s&&(this._lastDestroyedFocusedChipIndex=r)})}_redirectDestroyedChipFocus(){if(this._lastDestroyedFocusedChipIndex!=null){if(this._chips.length){let e=Math.min(this._lastDestroyedFocusedChipIndex,this._chips.length-1),i=this._chips.toArray()[e];i.disabled?this._chips.length===1?this.focus():this._keyManager.setPreviousItemActive():i.focus()}else this.focus();this._lastDestroyedFocusedChipIndex=null}}static \u0275fac=function(i){return new(i||t)};static \u0275cmp=E({type:t,selectors:[["mat-chip-set"]],contentQueries:function(i,r,o){if(i&1&&xe(o,pA,5),i&2){let a;j(a=H())&&(r._chips=a)}},hostAttrs:[1,"mat-mdc-chip-set","mdc-evolution-chip-set"],hostVars:1,hostBindings:function(i,r){i&1&&S("keydown",function(a){return r._handleKeydown(a)}),i&2&&X("role",r.role)},inputs:{disabled:[2,"disabled","disabled",L],role:"role",tabIndex:[2,"tabIndex","tabIndex",e=>e==null?0:dt(e)]},ngContentSelectors:sxe,decls:2,vars:0,consts:[["role","presentation",1,"mdc-evolution-chip-set__chips"]],template:function(i,r){i&1&&(Se(),pt(0,"div",0),ne(1),_t())},styles:[`.mat-mdc-chip-set{display:flex}.mat-mdc-chip-set:focus{outline:none}.mat-mdc-chip-set .mdc-evolution-chip-set__chips{min-width:100%;margin-left:-8px;margin-right:0}.mat-mdc-chip-set .mdc-evolution-chip{margin:4px 0 4px 8px}[dir=rtl] .mat-mdc-chip-set .mdc-evolution-chip-set__chips{margin-left:0;margin-right:-8px}[dir=rtl] .mat-mdc-chip-set .mdc-evolution-chip{margin-left:0;margin-right:8px}.mdc-evolution-chip-set__chips{display:flex;flex-flow:wrap;min-width:0}.mat-mdc-chip-set-stacked{flex-direction:column;align-items:flex-start}.mat-mdc-chip-set-stacked .mat-mdc-chip{width:100%}.mat-mdc-chip-set-stacked .mdc-evolution-chip__graphic{flex-grow:0}.mat-mdc-chip-set-stacked .mdc-evolution-chip__action--primary{flex-basis:100%;justify-content:start}input.mat-mdc-chip-input{flex:1 0 150px;margin-left:8px}[dir=rtl] input.mat-mdc-chip-input{margin-left:0;margin-right:8px}.mat-mdc-form-field:not(.mat-form-field-hide-placeholder) input.mat-mdc-chip-input::placeholder{opacity:1}.mat-mdc-form-field:not(.mat-form-field-hide-placeholder) input.mat-mdc-chip-input::-moz-placeholder{opacity:1}.mat-mdc-form-field:not(.mat-form-field-hide-placeholder) input.mat-mdc-chip-input::-webkit-input-placeholder{opacity:1}.mat-mdc-form-field:not(.mat-form-field-hide-placeholder) input.mat-mdc-chip-input:-ms-input-placeholder{opacity:1}.mat-mdc-chip-set+input.mat-mdc-chip-input{margin-left:0;margin-right:0} +`],encapsulation:2,changeDetection:0})}return t})();var _U=(()=>{class t{static \u0275fac=function(i){return new(i||t)};static \u0275mod=ee({type:t});static \u0275inj=J({providers:[ul,{provide:lxe,useValue:{separatorKeyCodes:[13]}}],imports:[De,Mo,De]})}return t})();var bU=new O("CdkAccordion");var vU=(()=>{class t{accordion=u(bU,{optional:!0,skipSelf:!0});_changeDetectorRef=u(ye);_expansionDispatcher=u(uu);_openCloseAllSubscription=Te.EMPTY;closed=new U;opened=new U;destroyed=new U;expandedChange=new U;id=u(Ze).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 i=this.accordion?this.accordion.id:this.id;this._expansionDispatcher.notify(this.id,i)}else this.closed.emit();this._changeDetectorRef.markForCheck()}}_expanded=!1;get disabled(){return this._disabled()}set disabled(e){this._disabled.set(e)}_disabled=he(!1);_removeUniqueSelectionListener=()=>{};constructor(){}ngOnInit(){this._removeUniqueSelectionListener=this._expansionDispatcher.listen((e,i)=>{this.accordion&&!this.accordion.multi&&this.accordion.id===i&&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(i){return new(i||t)};static \u0275dir=P({type:t,selectors:[["cdk-accordion-item"],["","cdkAccordionItem",""]],inputs:{expanded:[2,"expanded","expanded",L],disabled:[2,"disabled","disabled",L]},outputs:{closed:"closed",opened:"opened",destroyed:"destroyed",expandedChange:"expandedChange"},exportAs:["cdkAccordionItem"],features:[Ce([{provide:bU,useValue:void 0}])]})}return t})(),yU=(()=>{class t{static \u0275fac=function(i){return new(i||t)};static \u0275mod=ee({type:t});static \u0275inj=J({})}return t})();var dxe=["body"],uxe=["bodyWrapper"],mxe=[[["mat-expansion-panel-header"]],"*",[["mat-action-row"]]],hxe=["mat-expansion-panel-header","*","mat-action-row"];function pxe(t,n){}var fxe=[[["mat-panel-title"]],[["mat-panel-description"]],"*"],gxe=["mat-panel-title","mat-panel-description","*"];function _xe(t,n){t&1&&(pt(0,"span",1),Zt(),pt(1,"svg",2),Xt(2,"path",3),_t()())}var xU=new O("MAT_ACCORDION"),CU=new O("MAT_EXPANSION_PANEL"),bxe=(()=>{class t{_template=u(te);_expansionPanel=u(CU,{optional:!0});constructor(){}static \u0275fac=function(i){return new(i||t)};static \u0275dir=P({type:t,selectors:[["ng-template","matExpansionPanelContent",""]]})}return t})(),wU=new O("MAT_EXPANSION_PANEL_DEFAULT_OPTIONS"),fA=(()=>{class t extends vU{_viewContainerRef=u(ot);_animationsDisabled=Ye();_document=u(_e);_ngZone=u(ae);_elementRef=u(Y);_renderer=u(ze);_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 U;afterCollapse=new U;_inputChanges=new z;accordion=u(xU,{optional:!0,skipSelf:!0});_lazyContent;_body;_bodyWrapper;_portal;_headerId=u(Ze).getId("mat-expansion-panel-header-");constructor(){super();let e=u(wU,{optional:!0});this._expansionDispatcher=u(uu),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(Ue(null),ce(()=>this.expanded&&!this._portal),ct(1)).subscribe(()=>{this._portal=new Dn(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,i=this._body.nativeElement;return e===i||i.contains(e)}return!1}_transitionEndListener=({target:e,propertyName:i})=>{e===this._bodyWrapper?.nativeElement&&i==="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(i){return new(i||t)};static \u0275cmp=E({type:t,selectors:[["mat-expansion-panel"]],contentQueries:function(i,r,o){if(i&1&&xe(o,bxe,5),i&2){let a;j(a=H())&&(r._lazyContent=a.first)}},viewQuery:function(i,r){if(i&1&&(ie(dxe,5),ie(uxe,5)),i&2){let o;j(o=H())&&(r._body=o.first),j(o=H())&&(r._bodyWrapper=o.first)}},hostAttrs:[1,"mat-expansion-panel"],hostVars:4,hostBindings:function(i,r){i&2&&G("mat-expanded",r.expanded)("mat-expansion-panel-spacing",r._hasSpacing())},inputs:{hideToggle:[2,"hideToggle","hideToggle",L],togglePosition:"togglePosition"},outputs:{afterExpand:"afterExpand",afterCollapse:"afterCollapse"},exportAs:["matExpansionPanel"],features:[Ce([{provide:xU,useValue:void 0},{provide:CU,useExisting:t}]),le,Ae],ngContentSelectors:hxe,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(i,r){i&1&&(Se(mxe),ne(0),m(1,"div",2,0)(3,"div",3,1)(5,"div",4),ne(6,1),A(7,pxe,0,0,"ng-template",5),h(),ne(8,2),h()()),i&2&&(f(),X("inert",r.expanded?null:""),f(2),v("id",r.id),X("aria-labelledby",r._headerId),f(4),v("cdkPortalOutlet",r._portal))},dependencies:[wr],styles:[`.mat-expansion-panel{box-sizing:content-box;display:block;margin:0;overflow:hidden;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.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: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}}.mat-expansion-panel-content{display:flex;flex-direction:column;overflow:visible;min-height:0;visibility:hidden;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-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-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 t})();var DU=(()=>{class t{panel=u(fA,{host:!0});_element=u(Y);_focusMonitor=u(ti);_changeDetectorRef=u(ye);_parentChangeSubscription=Te.EMPTY;constructor(){u(ht).load(ki);let e=this.panel,i=u(wU,{optional:!0}),r=u(new Oi("tabindex"),{optional:!0}),o=e.accordion?e.accordion._stateChanges.pipe(ce(a=>!!(a.hideToggle||a.togglePosition))):Vi;this.tabIndex=parseInt(r||"")||0,this._parentChangeSubscription=Je(e.opened,e.closed,o,e._inputChanges.pipe(ce(a=>!!(a.hideToggle||a.disabled||a.togglePosition)))).subscribe(()=>this._changeDetectorRef.markForCheck()),e.closed.pipe(ce(()=>e._containsFocus())).subscribe(()=>this._focusMonitor.focusVia(this._element,"program")),i&&(this.expandedHeight=i.expandedHeight,this.collapsedHeight=i.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:Lt(e)||(e.preventDefault(),this._toggle());break;default:this.panel.accordion&&this.panel.accordion._handleHeaderKeydown(e);return}}focus(e,i){e?this._focusMonitor.focusVia(this._element,e,i):this._element.nativeElement.focus(i)}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(i){return new(i||t)};static \u0275cmp=E({type:t,selectors:[["mat-expansion-panel-header"]],hostAttrs:["role","button",1,"mat-expansion-panel-header","mat-focus-indicator"],hostVars:13,hostBindings:function(i,r){i&1&&S("click",function(){return r._toggle()})("keydown",function(a){return r._keydown(a)}),i&2&&(X("id",r.panel._headerId)("tabindex",r.disabled?-1:r.tabIndex)("aria-controls",r._getPanelId())("aria-expanded",r._isExpanded())("aria-disabled",r.panel.disabled),Et("height",r._getHeaderHeight()),G("mat-expanded",r._isExpanded())("mat-expansion-toggle-indicator-after",r._getTogglePosition()==="after")("mat-expansion-toggle-indicator-before",r._getTogglePosition()==="before"))},inputs:{expandedHeight:"expandedHeight",collapsedHeight:"collapsedHeight",tabIndex:[2,"tabIndex","tabIndex",e=>e==null?0:dt(e)]},ngContentSelectors:gxe,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(i,r){i&1&&(Se(fxe),pt(0,"span",0),ne(1),ne(2,1),ne(3,2),_t(),V(4,_xe,3,0,"span",1)),i&2&&(G("mat-content-hide-toggle",!r._showToggle()),f(4),B(r._showToggle()?4:-1))},styles:[`.mat-expansion-panel-header{display:flex;flex-direction:row;align-items:center;padding:0 24px;border-radius:inherit;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-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.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 t})();var EU=(()=>{class t{static \u0275fac=function(i){return new(i||t)};static \u0275dir=P({type:t,selectors:[["mat-panel-title"]],hostAttrs:[1,"mat-expansion-panel-header-title"]})}return t})();var MU=(()=>{class t{static \u0275fac=function(i){return new(i||t)};static \u0275mod=ee({type:t});static \u0275inj=J({imports:[De,yU,ko]})}return t})();function yxe(t,n){if(t&1&&(kt(0),m(1,"mat-icon"),g(2,"account_circle"),h(),g(3),Dt()),t&2){let e=n.ngIf;f(3),pe(" ",e.name||e.preferred_username||"User Profile"," ")}}function xxe(t,n){t&1&&(kt(0),m(1,"mat-icon"),g(2,"account_circle"),h(),g(3," User Profile "),Dt())}function Cxe(t,n){t&1&&(m(0,"div",3)(1,"mat-card")(2,"mat-card-content")(3,"div",4)(4,"mat-icon"),g(5,"lock"),h(),m(6,"h2"),g(7,"Not Authenticated"),h(),m(8,"p"),g(9,"Please log in to view your profile information."),h(),m(10,"button",5)(11,"mat-icon"),g(12,"login"),h(),g(13," Log In "),h()()()()())}function wxe(t,n){if(t&1&&(m(0,"mat-chip",23),g(1),h()),t&2){let e=n.$implicit;v("color","primary"),f(),pe(" ",e," ")}}function Dxe(t,n){if(t&1&&(m(0,"mat-chip",24),g(1),h()),t&2){let e=n.$implicit;v("color","accent"),f(),pe(" ",e," ")}}function Exe(t,n){if(t&1&&(m(0,"div",17)(1,"div",18)(2,"label"),g(3,"User ID (sub)"),h(),m(4,"div",19),g(5),h()(),m(6,"div",18)(7,"label"),g(8,"Display Name"),h(),m(9,"div",19),g(10),h()(),m(11,"div",18)(12,"label"),g(13,"Email"),h(),m(14,"div",19),g(15),h()(),m(16,"div",18)(17,"label"),g(18,"Username"),h(),m(19,"div",19),g(20),h()(),m(21,"div",20)(22,"label"),g(23,"Roles"),h(),m(24,"div",19)(25,"mat-chip-set"),A(26,wxe,2,2,"mat-chip",21),h()()(),m(27,"div",20)(28,"label"),g(29,"Permissions"),h(),m(30,"div",19)(31,"mat-chip-set"),A(32,Dxe,2,2,"mat-chip",22),h()()()()),t&2){let e=n.ngIf,i=x(2);f(5),N(e.sub),f(5),N(e.name||"N/A"),f(5),N(e.email||"N/A"),f(5),N(e.preferred_username||"N/A"),f(6),v("ngForOf",i.profileData==null?null:i.profileData.roles),f(6),v("ngForOf",i.profileData==null?null:i.profileData.permissions)}}function Mxe(t,n){t&1&&(m(0,"mat-chip",36)(1,"mat-icon"),g(2,"verified_user"),h(),g(3," Valid "),h())}function Sxe(t,n){t&1&&(m(0,"mat-chip",37)(1,"mat-icon"),g(2,"error"),h(),g(3," Expired "),h())}function kxe(t,n){if(t&1&&(m(0,"div",30)(1,"label"),g(2,"Issuer"),h(),m(3,"div"),g(4),h()()),t&2){let e=x().ngIf;f(4),N(e.payload.iss)}}function Txe(t,n){if(t&1&&(m(0,"mat-expansion-panel",38)(1,"mat-expansion-panel-header")(2,"mat-panel-title"),g(3,"Raw JWT Token"),h()(),m(4,"pre",39),g(5),h()()),t&2){let e=x().ngIf;f(5),N(e.raw)}}function Ixe(t,n){if(t&1){let e=q();m(0,"div",25)(1,"div",26)(2,"mat-chip-set")(3,"mat-chip",23)(4,"mat-icon"),g(5,"schedule"),h(),g(6),h(),A(7,Mxe,4,0,"mat-chip",27)(8,Sxe,4,0,"mat-chip",28),h()(),m(9,"div",29)(10,"div",30)(11,"label"),g(12,"Issued At"),h(),m(13,"div"),g(14),h()(),m(15,"div",30)(16,"label"),g(17,"Expires At"),h(),m(18,"div"),g(19),h()(),A(20,kxe,5,1,"div",31),h(),m(21,"div",32)(22,"button",33),S("click",function(){T(e);let r=x(2);return I(r.toggleRawIdToken())}),m(23,"mat-icon"),g(24),h(),g(25),h(),m(26,"button",33),S("click",function(){let r=T(e).ngIf,o=x(2);return I(o.copyToClipboard(r.raw,"ID Token"))}),m(27,"mat-icon"),g(28,"content_copy"),h(),g(29," Copy Token "),h()(),A(30,Txe,6,1,"mat-expansion-panel",34),m(31,"mat-expansion-panel")(32,"mat-expansion-panel-header")(33,"mat-panel-title"),g(34,"Token Header"),h()(),m(35,"pre",35),g(36),h()(),m(37,"mat-expansion-panel")(38,"mat-expansion-panel-header")(39,"mat-panel-title"),g(40,"Token Claims (Payload)"),h()(),m(41,"pre",35),g(42),h()()()}if(t&2){let e=n.ngIf,i=x(2);f(3),v("color",i.getExpirationColor(e)),f(3),pe(" ",i.getExpirationStatus(e)," "),f(),v("ngIf",!e.isExpired),f(),v("ngIf",e.isExpired),f(6),N(i.formatDate(e.issuedAt)),f(5),N(i.formatDate(e.expiresAt)),f(),v("ngIf",e.payload.iss),f(4),N(i.showRawIdToken?"visibility_off":"visibility"),f(),pe(" ",i.showRawIdToken?"Hide":"Show"," Raw Token "),f(5),v("ngIf",i.showRawIdToken),f(6),N(i.formatJson(e.header)),f(6),N(i.formatJson(e.payload))}}function Axe(t,n){t&1&&(m(0,"div",40)(1,"mat-icon"),g(2,"info"),h(),m(3,"p"),g(4,"ID Token not available"),h()())}function Oxe(t,n){t&1&&(m(0,"mat-chip",36)(1,"mat-icon"),g(2,"verified_user"),h(),g(3," Valid "),h())}function Rxe(t,n){t&1&&(m(0,"mat-chip",37)(1,"mat-icon"),g(2,"error"),h(),g(3," Expired "),h())}function Pxe(t,n){if(t&1&&(m(0,"div",30)(1,"label"),g(2,"Audience"),h(),m(3,"div"),g(4),h()()),t&2){let e=x().ngIf;f(4),N(e.payload.aud)}}function Fxe(t,n){if(t&1&&(m(0,"mat-expansion-panel",38)(1,"mat-expansion-panel-header")(2,"mat-panel-title"),g(3,"Raw JWT Token"),h()(),m(4,"pre",39),g(5),h()()),t&2){let e=x().ngIf;f(5),N(e.raw)}}function Nxe(t,n){if(t&1&&(m(0,"mat-chip"),g(1),h()),t&2){let e=n.$implicit;f(),pe(" ",e," ")}}function Lxe(t,n){if(t&1&&(m(0,"mat-expansion-panel")(1,"mat-expansion-panel-header")(2,"mat-panel-title"),g(3,"Scopes"),h()(),m(4,"div",41)(5,"mat-chip-set"),A(6,Nxe,2,1,"mat-chip",42),h()()()),t&2){let e=x().ngIf,i=x(2);f(6),v("ngForOf",i.getScopes(e.payload.scope))}}function Vxe(t,n){if(t&1){let e=q();m(0,"div",25)(1,"div",26)(2,"mat-chip-set")(3,"mat-chip",23)(4,"mat-icon"),g(5,"schedule"),h(),g(6),h(),A(7,Oxe,4,0,"mat-chip",27)(8,Rxe,4,0,"mat-chip",28),h()(),m(9,"div",29)(10,"div",30)(11,"label"),g(12,"Issued At"),h(),m(13,"div"),g(14),h()(),m(15,"div",30)(16,"label"),g(17,"Expires At"),h(),m(18,"div"),g(19),h()(),A(20,Pxe,5,1,"div",31),h(),m(21,"div",32)(22,"button",33),S("click",function(){T(e);let r=x(2);return I(r.toggleRawAccessToken())}),m(23,"mat-icon"),g(24),h(),g(25),h(),m(26,"button",33),S("click",function(){let r=T(e).ngIf,o=x(2);return I(o.copyToClipboard(r.raw,"Access Token"))}),m(27,"mat-icon"),g(28,"content_copy"),h(),g(29," Copy Token "),h()(),A(30,Fxe,6,1,"mat-expansion-panel",34),m(31,"mat-expansion-panel")(32,"mat-expansion-panel-header")(33,"mat-panel-title"),g(34,"Token Header"),h()(),m(35,"pre",35),g(36),h()(),m(37,"mat-expansion-panel")(38,"mat-expansion-panel-header")(39,"mat-panel-title"),g(40,"Token Claims (Payload)"),h()(),m(41,"pre",35),g(42),h()(),A(43,Lxe,7,1,"mat-expansion-panel",0),h()}if(t&2){let e=n.ngIf,i=x(2);f(3),v("color",i.getExpirationColor(e)),f(3),pe(" ",i.getExpirationStatus(e)," "),f(),v("ngIf",!e.isExpired),f(),v("ngIf",e.isExpired),f(6),N(i.formatDate(e.issuedAt)),f(5),N(i.formatDate(e.expiresAt)),f(),v("ngIf",e.payload.aud),f(4),N(i.showRawAccessToken?"visibility_off":"visibility"),f(),pe(" ",i.showRawAccessToken?"Hide":"Show"," Raw Token "),f(5),v("ngIf",i.showRawAccessToken),f(6),N(i.formatJson(e.header)),f(6),N(i.formatJson(e.payload)),f(),v("ngIf",e.payload.scope)}}function Bxe(t,n){t&1&&(m(0,"div",40)(1,"mat-icon"),g(2,"info"),h(),m(3,"p"),g(4,"Access Token not available"),h()())}function jxe(t,n){if(t&1&&(m(0,"div",6)(1,"mat-card",7)(2,"mat-card-content")(3,"div",8)(4,"mat-icon"),g(5,"warning"),h(),m(6,"div")(7,"strong"),g(8,"Security Notice:"),h(),g(9," Tokens displayed on this page contain sensitive information. Do not share these tokens with anyone or paste them in untrusted applications. "),h()()()(),m(10,"mat-card",9)(11,"mat-card-header")(12,"mat-icon",10),g(13,"person"),h(),m(14,"mat-card-title"),g(15,"User Information"),h(),m(16,"mat-card-subtitle"),g(17,"Your profile details from ID token"),h()(),m(18,"mat-card-content"),A(19,Exe,33,6,"div",11),h()(),m(20,"mat-card",12)(21,"mat-card-header")(22,"mat-icon",10),g(23,"vpn_key"),h(),m(24,"mat-card-title"),g(25,"Token Details"),h(),m(26,"mat-card-subtitle"),g(27,"Detailed JWT token information and claims"),h()(),m(28,"mat-card-content")(29,"mat-tab-group")(30,"mat-tab",13),A(31,Ixe,43,12,"div",14)(32,Axe,5,0,"div",15),h(),m(33,"mat-tab",16),A(34,Vxe,44,13,"div",14)(35,Bxe,5,0,"div",15),h()()()()()),t&2){let e=x();f(19),v("ngIf",e.profileData==null?null:e.profileData.userInfo),f(12),v("ngIf",e.profileData==null?null:e.profileData.idToken),f(),v("ngIf",!(e.profileData!=null&&e.profileData.idToken)),f(2),v("ngIf",e.profileData==null?null:e.profileData.accessToken),f(),v("ngIf",!(e.profileData!=null&&e.profileData.accessToken))}}var SU=(()=>{let n=class n{constructor(){this.authService=u(Ot),this.oauthService=u(Km),this.tokenDecoder=u(p6),this.snackBar=u(ui),this.router=u(Re),this.profileData=null,this.showRawIdToken=!1,this.showRawAccessToken=!1}ngOnInit(){this.loadProfileData(),this.authSubscription=this.authService.isAuthenticated$.subscribe(()=>{this.loadProfileData()})}ngOnDestroy(){this.authSubscription?.unsubscribe()}loadProfileData(){let i=this.authService.isAuthenticated(),r=this.oauthService.hasValidAccessToken();if(console.log("Authentication Status:",{isAuthenticated:i,hasValidAccessToken:r}),!i&&!r){this.profileData=null;return}let o=this.authService.getUserInfo(),a=this.authService.getAccessToken(),s=this.oauthService.getIdToken(),l=this.authService.getUserRoles();console.log("Profile Data Debug:",{isAuthenticated:i,hasUserInfo:!!o,hasAccessToken:!!a,accessTokenLength:a?.length,hasIdToken:!!s,idTokenLength:s?.length,roles:l}),this.profileData={isAuthenticated:i,userInfo:o,idToken:s?this.tokenDecoder.decodeToken(s):null,accessToken:a?this.tokenDecoder.decodeToken(a):null,roles:l,permissions:this.getUserPermissions()},console.log("Decoded tokens:",{idToken:this.profileData.idToken,accessToken:this.profileData.accessToken})}getUserPermissions(){let i=[];return this.authService.hasRole("HRAdmin")||this.authService.hasRole("Manager")?i.push("canAdd","canEdit","canDelete","canRead"):this.authService.hasRole("Employee")&&i.push("canRead"),i}toggleRawIdToken(){this.showRawIdToken=!this.showRawIdToken}toggleRawAccessToken(){this.showRawAccessToken=!this.showRawAccessToken}copyToClipboard(i,r){navigator.clipboard.writeText(i).then(()=>{this.showMessage(`${r} copied to clipboard`)}).catch(o=>{console.error("Failed to copy:",o),this.showMessage("Failed to copy to clipboard")})}formatJson(i){return JSON.stringify(i,null,2)}getExpirationStatus(i){return this.tokenDecoder.getExpirationStatus(i)}getExpirationColor(i){if(!i||!i.expiresIn)return"";let r=i.expiresIn/3600;return i.isExpired?"warn":r<1?"accent":"primary"}formatDate(i){return i?new Intl.DateTimeFormat("en-US",{dateStyle:"medium",timeStyle:"medium"}).format(i):"N/A"}showMessage(i){this.snackBar.open(i,"Close",{duration:3e3,horizontalPosition:"end",verticalPosition:"top"})}getScopes(i){return i?Array.isArray(i)?i:typeof i=="string"?i.split(" ").filter(r=>r.length>0):[]:[]}};n.\u0275fac=function(r){return new(r||n)},n.\u0275cmp=E({type:n,selectors:[["app-profile-overview"]],decls:5,vars:4,consts:[[4,"ngIf"],["class","not-authenticated",4,"ngIf"],["class","profile-container",4,"ngIf"],[1,"not-authenticated"],[1,"empty-state"],["mat-raised-button","","color","primary","routerLink","/login"],[1,"profile-container"],[1,"security-warning"],[1,"warning-content"],[1,"profile-card"],["mat-card-avatar",""],["class","info-grid",4,"ngIf"],[1,"tokens-card"],["label","ID Token"],["class","token-content",4,"ngIf"],["class","no-token",4,"ngIf"],["label","Access Token"],[1,"info-grid"],[1,"info-item"],[1,"value"],[1,"info-item","full-width"],["highlighted","",3,"color",4,"ngFor","ngForOf"],[3,"color",4,"ngFor","ngForOf"],["highlighted","",3,"color"],[3,"color"],[1,"token-content"],[1,"token-status"],["color","primary",4,"ngIf"],["color","warn",4,"ngIf"],[1,"token-metadata"],[1,"metadata-item"],["class","metadata-item",4,"ngIf"],[1,"token-actions"],["mat-button","",3,"click"],["expanded","",4,"ngIf"],[1,"json-display"],["color","primary"],["color","warn"],["expanded",""],[1,"token-display"],[1,"no-token"],[1,"scopes-list"],[4,"ngFor","ngForOf"]],template:function(r,o){r&1&&(m(0,"page-header"),A(1,yxe,4,1,"ng-container",0)(2,xxe,4,0,"ng-container",0),h(),A(3,Cxe,14,0,"div",1)(4,jxe,36,5,"div",2)),r&2&&(f(),v("ngIf",o.profileData==null?null:o.profileData.userInfo),f(),v("ngIf",!(o.profileData!=null&&o.profileData.isAuthenticated)),f(),v("ngIf",!(o.profileData!=null&&o.profileData.isAuthenticated)),f(),v("ngIf",o.profileData==null?null:o.profileData.isAuthenticated))},dependencies:[ut,vr,Jt,Ut,Ht,Ky,zt,Gt,yh,Wt,tt,st,Be,Mt,_U,pA,gU,MU,fA,DU,EU,$r,_i,zc,Fu,dp,hS,Vn,Qt],styles:[".profile-container[_ngcontent-%COMP%]{padding:16px;max-width:1200px;margin:0 auto;display:flex;flex-direction:column;gap:24px}.not-authenticated[_ngcontent-%COMP%]{padding:16px;max-width:600px;margin:0 auto}.not-authenticated[_ngcontent-%COMP%] .empty-state[_ngcontent-%COMP%]{display:flex;flex-direction:column;align-items:center;justify-content:center;padding:48px 16px;text-align:center}.not-authenticated[_ngcontent-%COMP%] .empty-state[_ngcontent-%COMP%] mat-icon[_ngcontent-%COMP%]{font-size:64px;width:64px;height:64px;color:#00000061;margin-bottom:16px}.not-authenticated[_ngcontent-%COMP%] .empty-state[_ngcontent-%COMP%] h2[_ngcontent-%COMP%]{margin:0 0 8px;font-size:24px;font-weight:500}.not-authenticated[_ngcontent-%COMP%] .empty-state[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{margin:0 0 24px;color:#0009}.not-authenticated[_ngcontent-%COMP%] .empty-state[_ngcontent-%COMP%] button[_ngcontent-%COMP%] mat-icon[_ngcontent-%COMP%]{font-size:20px;width:20px;height:20px;margin-right:8px;color:inherit}.security-warning[_ngcontent-%COMP%]{background-color:#fff3cd;border-left:4px solid #ff9800}.security-warning[_ngcontent-%COMP%] mat-card-content[_ngcontent-%COMP%]{padding:16px}.security-warning[_ngcontent-%COMP%] .warning-content[_ngcontent-%COMP%]{display:flex;align-items:center;gap:12px}.security-warning[_ngcontent-%COMP%] .warning-content[_ngcontent-%COMP%] mat-icon[_ngcontent-%COMP%]{color:#ff9800;flex-shrink:0}.security-warning[_ngcontent-%COMP%] .warning-content[_ngcontent-%COMP%] strong[_ngcontent-%COMP%]{font-weight:600}.profile-card[_ngcontent-%COMP%] mat-card-header[_ngcontent-%COMP%], .tokens-card[_ngcontent-%COMP%] mat-card-header[_ngcontent-%COMP%]{padding:16px;border-bottom:1px solid rgba(0,0,0,.12)}.profile-card[_ngcontent-%COMP%] mat-card-header[_ngcontent-%COMP%] mat-card-title[_ngcontent-%COMP%], .tokens-card[_ngcontent-%COMP%] mat-card-header[_ngcontent-%COMP%] mat-card-title[_ngcontent-%COMP%]{font-size:20px;font-weight:500;margin:0}.profile-card[_ngcontent-%COMP%] mat-card-header[_ngcontent-%COMP%] mat-card-subtitle[_ngcontent-%COMP%], .tokens-card[_ngcontent-%COMP%] mat-card-header[_ngcontent-%COMP%] mat-card-subtitle[_ngcontent-%COMP%]{margin-top:4px;color:#0009}.profile-card[_ngcontent-%COMP%] mat-card-content[_ngcontent-%COMP%], .tokens-card[_ngcontent-%COMP%] mat-card-content[_ngcontent-%COMP%]{padding:24px}.info-grid[_ngcontent-%COMP%]{display:grid;grid-template-columns:repeat(2,1fr);gap:24px}@media (max-width: 768px){.info-grid[_ngcontent-%COMP%]{grid-template-columns:1fr}}.info-grid[_ngcontent-%COMP%] .info-item[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:8px}.info-grid[_ngcontent-%COMP%] .info-item.full-width[_ngcontent-%COMP%]{grid-column:1/-1}.info-grid[_ngcontent-%COMP%] .info-item[_ngcontent-%COMP%] label[_ngcontent-%COMP%]{font-size:12px;font-weight:500;text-transform:uppercase;letter-spacing:.5px;color:#0009}.info-grid[_ngcontent-%COMP%] .info-item[_ngcontent-%COMP%] .value[_ngcontent-%COMP%]{font-size:16px;color:#000000de;word-break:break-word}.token-content[_ngcontent-%COMP%]{padding:24px 0;display:flex;flex-direction:column;gap:16px}.token-content[_ngcontent-%COMP%] .token-status[_ngcontent-%COMP%] mat-chip-set[_ngcontent-%COMP%] mat-chip[_ngcontent-%COMP%] mat-icon[_ngcontent-%COMP%]{margin-right:4px;font-size:18px;width:18px;height:18px}.token-content[_ngcontent-%COMP%] .token-metadata[_ngcontent-%COMP%]{display:grid;grid-template-columns:repeat(auto-fit,minmax(200px,1fr));gap:16px;padding:16px;background-color:#00000005;border-radius:4px}.token-content[_ngcontent-%COMP%] .token-metadata[_ngcontent-%COMP%] .metadata-item[_ngcontent-%COMP%] label[_ngcontent-%COMP%]{display:block;font-size:12px;font-weight:500;text-transform:uppercase;letter-spacing:.5px;color:#0009;margin-bottom:4px}.token-content[_ngcontent-%COMP%] .token-metadata[_ngcontent-%COMP%] .metadata-item[_ngcontent-%COMP%] div[_ngcontent-%COMP%]{font-size:14px;color:#000000de;word-break:break-word}.token-content[_ngcontent-%COMP%] .token-actions[_ngcontent-%COMP%]{display:flex;gap:8px;flex-wrap:wrap}.token-content[_ngcontent-%COMP%] .token-actions[_ngcontent-%COMP%] button[_ngcontent-%COMP%] mat-icon[_ngcontent-%COMP%]{margin-right:4px}.token-content[_ngcontent-%COMP%] mat-expansion-panel[_ngcontent-%COMP%]{margin-top:8px}.token-content[_ngcontent-%COMP%] .token-display[_ngcontent-%COMP%], .token-content[_ngcontent-%COMP%] .json-display[_ngcontent-%COMP%]{background-color:#f5f5f5;padding:16px;border-radius:4px;overflow-x:auto;font-family:Courier New,monospace;font-size:12px;line-height:1.5;margin:0;white-space:pre-wrap;word-break:break-all}.token-content[_ngcontent-%COMP%] .scopes-list[_ngcontent-%COMP%]{padding:16px}.token-content[_ngcontent-%COMP%] .scopes-list[_ngcontent-%COMP%] mat-chip-set[_ngcontent-%COMP%] mat-chip[_ngcontent-%COMP%]{margin:4px}.no-token[_ngcontent-%COMP%]{display:flex;flex-direction:column;align-items:center;justify-content:center;padding:48px 16px;text-align:center;color:#00000061}.no-token[_ngcontent-%COMP%] mat-icon[_ngcontent-%COMP%]{font-size:48px;width:48px;height:48px;margin-bottom:12px}.no-token[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{margin:0;font-size:14px}mat-chip-set[_ngcontent-%COMP%] mat-chip[_ngcontent-%COMP%]{margin:4px}@media (max-width: 768px){.profile-container[_ngcontent-%COMP%]{padding:12px}.profile-card[_ngcontent-%COMP%] mat-card-content[_ngcontent-%COMP%], .tokens-card[_ngcontent-%COMP%] mat-card-content[_ngcontent-%COMP%]{padding:16px}.token-content[_ngcontent-%COMP%]{padding:16px 0}.token-content[_ngcontent-%COMP%] .token-metadata[_ngcontent-%COMP%]{grid-template-columns:1fr}.security-warning[_ngcontent-%COMP%] .warning-content[_ngcontent-%COMP%]{flex-direction:column;align-items:flex-start}}"]});let t=n;return t})();var kU=(()=>{let n=class n{};n.\u0275fac=function(r){return new(r||n)},n.\u0275cmp=E({type:n,selectors:[["app-profile-settings"]],decls:14,vars:0,consts:[[1,"settings-container"],[1,"coming-soon"]],template:function(r,o){r&1&&(m(0,"page-header")(1,"mat-icon"),g(2,"settings"),h(),g(3,` Profile Settings +`),h(),m(4,"div",0)(5,"mat-card")(6,"mat-card-content")(7,"div",1)(8,"mat-icon"),g(9,"construction"),h(),m(10,"h2"),g(11,"Coming Soon"),h(),m(12,"p"),g(13,"User settings functionality will be available in a future update."),h()()()()())},dependencies:[ut,Ut,Ht,zt,tt,st,Qt],styles:[".settings-container[_ngcontent-%COMP%]{padding:16px;max-width:800px;margin:0 auto}.settings-container[_ngcontent-%COMP%] .coming-soon[_ngcontent-%COMP%]{display:flex;flex-direction:column;align-items:center;justify-content:center;padding:48px 16px;text-align:center}.settings-container[_ngcontent-%COMP%] .coming-soon[_ngcontent-%COMP%] mat-icon[_ngcontent-%COMP%]{font-size:64px;width:64px;height:64px;color:#00000061;margin-bottom:16px}.settings-container[_ngcontent-%COMP%] .coming-soon[_ngcontent-%COMP%] h2[_ngcontent-%COMP%]{margin:0 0 8px;font-size:24px;font-weight:500}.settings-container[_ngcontent-%COMP%] .coming-soon[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{margin:0;color:#0009}"]});let t=n;return t})();function Hxe(t,n){t&1&&(m(0,"div",2)(1,"mat-card",3)(2,"mat-card-content")(3,"div",4)(4,"mat-icon"),g(5,"info"),h(),m(6,"div")(7,"strong"),g(8,"AI features are disabled."),h(),m(9,"p"),g(10," To enable AI, set "),m(11,"code"),g(12,"aiEnabled: true"),h(),g(13," in "),m(14,"code"),g(15,"src/environments/environment.ts"),h(),g(16," and "),m(17,"code"),g(18,'"AiEnabled": true'),h(),g(19," in the API's "),m(20,"code"),g(21,"appsettings.json"),h(),g(22,". "),h()()()()()())}function zxe(t,n){t&1&&(m(0,"mat-icon",22),g(1,"chat"),h(),g(2," General Chat "))}function Uxe(t,n){if(t&1&&(m(0,"div",25)(1,"mat-icon",26),g(2),h(),m(3,"div",27),g(4),h()()),t&2){let e=n.$implicit;G("user-message",e.role==="user")("assistant-message",e.role==="assistant"),f(2),N(e.role==="user"?"person":"smart_toy"),f(2),N(e.content)}}function $xe(t,n){if(t&1&&(m(0,"div",23),A(1,Uxe,5,6,"div",24),h()),t&2){let e=x(2);f(),v("ngForOf",e.chatMessages)}}function Wxe(t,n){t&1&&(m(0,"div",28)(1,"mat-icon"),g(2,"chat_bubble_outline"),h(),m(3,"p"),g(4,"Start a conversation"),h()())}function Gxe(t,n){t&1&&(m(0,"div",29),M(1,"mat-spinner",30),m(2,"span"),g(3,"Thinking\u2026"),h()())}function qxe(t,n){if(t&1&&(m(0,"div",31)(1,"mat-icon"),g(2,"error_outline"),h(),m(3,"span"),g(4),h()()),t&2){let e=x(2);f(4),N(e.chatError)}}function Yxe(t,n){t&1&&(m(0,"mat-icon",22),g(1,"analytics"),h(),g(2," HR Insights "))}function Qxe(t,n){if(t&1){let e=q();m(0,"div",32)(1,"p",33),g(2,"Try asking:"),h(),m(3,"div",34)(4,"button",35),S("click",function(){T(e);let r=x(2);return I(r.hrInput="Which department has the most employees?")}),g(5,"Which department has the most employees?"),h(),m(6,"button",35),S("click",function(){T(e);let r=x(2);return I(r.hrInput="How many new hires joined this month?")}),g(7,"How many new hires joined this month?"),h(),m(8,"button",35),S("click",function(){T(e);let r=x(2);return I(r.hrInput="What is the gender distribution?")}),g(9,"What is the gender distribution?"),h(),m(10,"button",35),S("click",function(){T(e);let r=x(2);return I(r.hrInput="Who are the most recent hires?")}),g(11,"Who are the most recent hires?"),h()()()}}function Kxe(t,n){if(t&1&&(m(0,"span",38),g(1),h()),t&2){let e=x().$implicit;f(),pe("",e.executionTimeMs,"ms")}}function Zxe(t,n){if(t&1&&(m(0,"div",25)(1,"mat-icon",26),g(2),h(),m(3,"div",36)(4,"div",27),g(5),h(),A(6,Kxe,2,1,"span",37),h()()),t&2){let e=n.$implicit;G("user-message",e.role==="user")("assistant-message",e.role==="assistant"),f(2),N(e.role==="user"?"person":"analytics"),f(3),N(e.content),f(),v("ngIf",e.executionTimeMs)}}function Xxe(t,n){if(t&1&&(m(0,"div",23),A(1,Zxe,7,7,"div",24),h()),t&2){let e=x(2);f(),v("ngForOf",e.hrMessages)}}function Jxe(t,n){t&1&&(m(0,"div",29),M(1,"mat-spinner",30),m(2,"span"),g(3,"Fetching live data and reasoning\u2026"),h()())}function eCe(t,n){if(t&1&&(m(0,"div",31)(1,"mat-icon"),g(2,"error_outline"),h(),m(3,"span"),g(4),h()()),t&2){let e=x(2);f(4),N(e.hrError)}}function tCe(t,n){if(t&1){let e=q();m(0,"div",5)(1,"mat-tab-group",6)(2,"mat-tab"),A(3,zxe,3,0,"ng-template",7),m(4,"div",8)(5,"mat-card",9)(6,"mat-card-header")(7,"mat-card-title"),g(8,"AI Assistant"),h(),m(9,"mat-card-subtitle"),g(10,"Ask anything \u2014 general knowledge, writing help, code questions"),h(),m(11,"div",10)(12,"button",11),S("click",function(){T(e);let r=x();return I(r.clearChat())}),m(13,"mat-icon"),g(14,"delete_sweep"),h()()()(),m(15,"mat-card-content"),A(16,$xe,2,1,"div",12)(17,Wxe,5,0,"div",13)(18,Gxe,4,0,"div",14)(19,qxe,5,1,"div",15),h(),M(20,"mat-divider"),m(21,"mat-card-actions",16)(22,"mat-form-field",17)(23,"mat-label"),g(24,"Message"),h(),m(25,"input",18),Nr("ngModelChange",function(r){T(e);let o=x();return Zr(o.chatInput,r)||(o.chatInput=r),I(r)}),S("keydown",function(r){T(e);let o=x();return I(o.onChatKeydown(r))}),h()(),m(26,"button",19),S("click",function(){T(e);let r=x();return I(r.sendChat())}),m(27,"mat-icon"),g(28,"send"),h(),g(29," Send "),h()()()()(),m(30,"mat-tab"),A(31,Yxe,3,0,"ng-template",7),m(32,"div",8)(33,"mat-card",9)(34,"mat-card-header")(35,"mat-card-title"),g(36,"HR AI Assistant"),h(),m(37,"mat-card-subtitle"),g(38,"Ask about your live workforce data \u2014 headcount, departments, recent hires"),h(),m(39,"div",10)(40,"button",11),S("click",function(){T(e);let r=x();return I(r.clearHr())}),m(41,"mat-icon"),g(42,"delete_sweep"),h()()()(),m(43,"mat-card-content"),A(44,Qxe,12,0,"div",20)(45,Xxe,2,1,"div",12)(46,Jxe,4,0,"div",14)(47,eCe,5,1,"div",15),h(),M(48,"mat-divider"),m(49,"mat-card-actions",16)(50,"mat-form-field",17)(51,"mat-label"),g(52,"Question"),h(),m(53,"input",21),Nr("ngModelChange",function(r){T(e);let o=x();return Zr(o.hrInput,r)||(o.hrInput=r),I(r)}),S("keydown",function(r){T(e);let o=x();return I(o.onHrKeydown(r))}),h()(),m(54,"button",19),S("click",function(){T(e);let r=x();return I(r.sendHrInsight())}),m(55,"mat-icon"),g(56,"send"),h(),g(57," Ask "),h()()()()()()()}if(t&2){let e=x();f(16),v("ngIf",e.chatMessages.length>0),f(),v("ngIf",e.chatMessages.length===0&&!e.chatLoading),f(),v("ngIf",e.chatLoading),f(),v("ngIf",e.chatError),f(6),Fr("ngModel",e.chatInput),v("disabled",e.chatLoading),f(),v("disabled",!e.chatInput.trim()||e.chatLoading),f(18),v("ngIf",e.hrMessages.length===0&&!e.hrLoading),f(),v("ngIf",e.hrMessages.length>0),f(),v("ngIf",e.hrLoading),f(),v("ngIf",e.hrError),f(6),Fr("ngModel",e.hrInput),v("disabled",e.hrLoading),f(),v("disabled",!e.hrInput.trim()||e.hrLoading)}}var TU=(()=>{let n=class n{constructor(){this.aiService=u(Uc),this.destroy$=new z,this.aiEnabled=Qi.aiEnabled,this.chatMessages=[],this.chatInput="",this.chatLoading=!1,this.chatError="",this.hrMessages=[],this.hrInput="",this.hrLoading=!1,this.hrError=""}sendChat(){let i=this.chatInput.trim();!i||this.chatLoading||(this.chatMessages.push({role:"user",content:i}),this.chatInput="",this.chatLoading=!0,this.chatError="",this.aiService.chat(i).pipe(we(this.destroy$)).subscribe({next:r=>{this.chatMessages.push({role:"assistant",content:r.reply}),this.chatLoading=!1},error:r=>{this.chatError=r?.error?.detail??"Failed to get a response. Is the API running with AiEnabled: true?",this.chatLoading=!1}}))}sendHrInsight(){let i=this.hrInput.trim();!i||this.hrLoading||(this.hrMessages.push({role:"user",content:i}),this.hrInput="",this.hrLoading=!0,this.hrError="",this.aiService.hrInsight(i).pipe(we(this.destroy$)).subscribe({next:r=>{this.hrMessages.push({role:"assistant",content:r.answer,executionTimeMs:r.executionTimeMs}),this.hrLoading=!1},error:r=>{this.hrError=r?.error?.detail??"Failed to get HR insights. Is the API running with AiEnabled: true?",this.hrLoading=!1}}))}onChatKeydown(i){i.key==="Enter"&&!i.shiftKey&&(i.preventDefault(),this.sendChat())}onHrKeydown(i){i.key==="Enter"&&!i.shiftKey&&(i.preventDefault(),this.sendHrInsight())}clearChat(){this.chatMessages=[],this.chatError=""}clearHr(){this.hrMessages=[],this.hrError=""}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete()}};n.\u0275fac=function(r){return new(r||n)},n.\u0275cmp=E({type:n,selectors:[["app-ai-chat"]],decls:3,vars:2,consts:[["class","ai-disabled-banner",4,"ngIf"],["class","chat-container",4,"ngIf"],[1,"ai-disabled-banner"],[1,"disabled-card"],[1,"disabled-content"],[1,"chat-container"],["animationDuration","200ms"],["mat-tab-label",""],[1,"tab-content"],[1,"chat-card"],[1,"header-actions"],["mat-icon-button","","matTooltip","Clear conversation",3,"click"],["class","message-list",4,"ngIf"],["class","empty-state",4,"ngIf"],["class","loading-row",4,"ngIf"],["class","error-row",4,"ngIf"],[1,"input-area"],["appearance","outline",1,"message-input"],["matInput","","placeholder","Ask the AI assistant anything\u2026",3,"ngModelChange","keydown","ngModel","disabled"],["mat-fab","","extended","","color","primary",3,"click","disabled"],["class","suggestions",4,"ngIf"],["matInput","","placeholder","Ask about your workforce data\u2026",3,"ngModelChange","keydown","ngModel","disabled"],[1,"tab-icon"],[1,"message-list"],["class","message",3,"user-message","assistant-message",4,"ngFor","ngForOf"],[1,"message"],[1,"avatar-icon"],[1,"bubble"],[1,"empty-state"],[1,"loading-row"],["diameter","24"],[1,"error-row"],[1,"suggestions"],[1,"suggestions-label"],[1,"suggestion-list"],["mat-stroked-button","",3,"click"],[1,"bubble-wrapper"],["class","exec-time",4,"ngIf"],[1,"exec-time"]],template:function(r,o){r&1&&(M(0,"page-header"),A(1,Hxe,23,0,"div",0)(2,tCe,58,14,"div",1)),r&2&&(f(),v("ngIf",!o.aiEnabled),f(),v("ngIf",o.aiEnabled))},dependencies:[ut,vr,Jt,pl,Hi,qt,pu,Ut,Ht,WV,zt,Gt,yh,Wt,tt,st,Be,Mt,Yt,u3,Mn,en,Ci,Gi,Pi,gi,fi,zc,BI,Fu,dp,ho,Po,Qt],styles:[".ai-disabled-banner[_ngcontent-%COMP%]{padding:16px}.ai-disabled-banner[_ngcontent-%COMP%] .disabled-card[_ngcontent-%COMP%]{max-width:720px;margin:0 auto;border-left:4px solid #2196f3}.ai-disabled-banner[_ngcontent-%COMP%] .disabled-card[_ngcontent-%COMP%] mat-card-content[_ngcontent-%COMP%]{padding:20px}.ai-disabled-banner[_ngcontent-%COMP%] .disabled-card[_ngcontent-%COMP%] .disabled-content[_ngcontent-%COMP%]{display:flex;align-items:flex-start;gap:16px}.ai-disabled-banner[_ngcontent-%COMP%] .disabled-card[_ngcontent-%COMP%] .disabled-content[_ngcontent-%COMP%] mat-icon[_ngcontent-%COMP%]{font-size:28px;width:28px;height:28px;color:#2196f3;flex-shrink:0;margin-top:2px}.ai-disabled-banner[_ngcontent-%COMP%] .disabled-card[_ngcontent-%COMP%] .disabled-content[_ngcontent-%COMP%] strong[_ngcontent-%COMP%]{font-size:16px}.ai-disabled-banner[_ngcontent-%COMP%] .disabled-card[_ngcontent-%COMP%] .disabled-content[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{margin:8px 0 0;color:#0009;font-size:14px;line-height:1.5}.ai-disabled-banner[_ngcontent-%COMP%] .disabled-card[_ngcontent-%COMP%] .disabled-content[_ngcontent-%COMP%] code[_ngcontent-%COMP%]{background:#0000000f;padding:2px 6px;border-radius:4px;font-family:monospace;font-size:13px}.chat-container[_ngcontent-%COMP%]{padding:16px;max-width:900px;margin:0 auto}.tab-icon[_ngcontent-%COMP%]{margin-right:6px;font-size:18px;width:18px;height:18px;vertical-align:middle}.tab-content[_ngcontent-%COMP%]{padding-top:16px}.chat-card[_ngcontent-%COMP%] mat-card-header[_ngcontent-%COMP%]{display:flex;align-items:flex-start;padding:16px 16px 0;margin-bottom:0}.chat-card[_ngcontent-%COMP%] mat-card-header[_ngcontent-%COMP%] .mat-mdc-card-header-text[_ngcontent-%COMP%]{flex:1}.chat-card[_ngcontent-%COMP%] mat-card-header[_ngcontent-%COMP%] .header-actions[_ngcontent-%COMP%]{margin-left:auto}.chat-card[_ngcontent-%COMP%] mat-card-content[_ngcontent-%COMP%]{padding:16px;min-height:320px;max-height:480px;overflow-y:auto}.message-list[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:12px}.message[_ngcontent-%COMP%]{display:flex;align-items:flex-start;gap:10px}.message[_ngcontent-%COMP%] .avatar-icon[_ngcontent-%COMP%]{font-size:22px;width:22px;height:22px;flex-shrink:0;margin-top:4px}.message[_ngcontent-%COMP%] .bubble[_ngcontent-%COMP%]{padding:10px 14px;border-radius:12px;font-size:14px;line-height:1.6;white-space:pre-wrap;word-break:break-word;max-width:100%}.message[_ngcontent-%COMP%] .bubble-wrapper[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:4px}.message[_ngcontent-%COMP%] .bubble-wrapper[_ngcontent-%COMP%] .exec-time[_ngcontent-%COMP%]{font-size:11px;color:#00000061;padding-left:4px}.message.user-message[_ngcontent-%COMP%]{flex-direction:row-reverse}.message.user-message[_ngcontent-%COMP%] .avatar-icon[_ngcontent-%COMP%]{color:#3f51b5}.message.user-message[_ngcontent-%COMP%] .bubble[_ngcontent-%COMP%]{background:#e8eaf6;color:#000000de}.message.assistant-message[_ngcontent-%COMP%] .avatar-icon[_ngcontent-%COMP%]{color:#4caf50}.message.assistant-message[_ngcontent-%COMP%] .bubble[_ngcontent-%COMP%]{background:#f5f5f5;color:#000000de}.empty-state[_ngcontent-%COMP%]{display:flex;flex-direction:column;align-items:center;justify-content:center;min-height:240px;color:#00000061}.empty-state[_ngcontent-%COMP%] mat-icon[_ngcontent-%COMP%]{font-size:48px;width:48px;height:48px;margin-bottom:12px}.empty-state[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{margin:0;font-size:14px}.suggestions[_ngcontent-%COMP%]{padding-bottom:16px}.suggestions[_ngcontent-%COMP%] .suggestions-label[_ngcontent-%COMP%]{font-size:13px;color:#0000008a;margin:0 0 10px}.suggestions[_ngcontent-%COMP%] .suggestion-list[_ngcontent-%COMP%]{display:flex;flex-wrap:wrap;gap:8px}.suggestions[_ngcontent-%COMP%] .suggestion-list[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{font-size:13px;height:32px}.loading-row[_ngcontent-%COMP%]{display:flex;align-items:center;gap:12px;padding:16px 0;color:#0000008a;font-size:14px}.error-row[_ngcontent-%COMP%]{display:flex;align-items:flex-start;gap:8px;padding:12px;border-radius:6px;background:#fff3e0;color:#e65100;font-size:14px;margin-top:8px}.error-row[_ngcontent-%COMP%] mat-icon[_ngcontent-%COMP%]{font-size:20px;width:20px;height:20px;flex-shrink:0}.input-area[_ngcontent-%COMP%]{padding:12px 16px;display:flex;gap:12px;align-items:flex-end}.input-area[_ngcontent-%COMP%] .message-input[_ngcontent-%COMP%]{flex:1;margin-bottom:0}@media (max-width: 600px){.chat-container[_ngcontent-%COMP%]{padding:8px}.input-area[_ngcontent-%COMP%]{flex-direction:column;align-items:stretch}.input-area[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{width:100%}.suggestion-list[_ngcontent-%COMP%]{flex-direction:column}}"]});let t=n;return t})();var IU=[{path:"",component:l6,canActivate:[mI],canActivateChild:[mI],children:[{path:"",redirectTo:"dashboard",pathMatch:"full"},{path:"dashboard",component:g6},{path:"employees",component:A6},{path:"employees/create",component:dA,canActivate:[d_]},{path:"employees/edit/:id",component:dA,canActivate:[d_]},{path:"employees/:id",component:O6},{path:"departments",component:K6},{path:"departments/create",component:uA,canActivate:[d_]},{path:"departments/edit/:id",component:uA,canActivate:[d_]},{path:"departments/:id",component:Z6},{path:"positions",component:nU},{path:"positions/create",component:mA,canActivate:[u_]},{path:"positions/edit/:id",component:mA,canActivate:[u_]},{path:"positions/:id",component:oU},{path:"salary-ranges",component:sU},{path:"salary-ranges/create",component:hA,canActivate:[u_]},{path:"salary-ranges/edit/:id",component:hA,canActivate:[u_]},{path:"salary-ranges/:id",component:cU},{path:"profile",children:[{path:"overview",component:SU},{path:"settings",component:kU},{path:"",redirectTo:"overview",pathMatch:"full"}]},{path:"ai-chat",component:TU},{path:"403",component:_6},{path:"404",component:b6},{path:"500",component:v6}]},{path:"auth",component:c6,children:[{path:"register",component:y6}]},{path:"callback",component:x6},{path:"**",redirectTo:"dashboard"}];var AU=(t,n)=>{let e=u(Ot);if(!e.isAuthenticated())return n(t);let i=e.getAccessToken();if(!i)return n(t);let r=t.clone({setHeaders:{Authorization:`Bearer ${i}`}});return n(r)};var OU={providers:[iE(),{provide:SI,useValue:Qi.baseUrl},yL(),Zl(()=>u(Ot).initAuth()),Zl(()=>u(i8).load()),Zl(()=>u(e8).load()),RM(PM([AU,...c8])),dS(IU,uS({scrollPositionRestoration:"enabled",anchorScrolling:"enabled"}),Av()),lj(),JH(XH()),J3({loader:ej({prefix:"i18n/",suffix:".json"})}),Db(wc.forRoot()),w3([...H3()]),{provide:Dg,useFactory:jz,deps:[oa],multi:!0},{provide:bc,deps:[Cz],useFactory:t=>t.getPaginatorIntl()},{provide:$S,useValue:{appearance:"outlined"}},$V({parse:{dateInput:"yyyy-MM-dd"},display:{dateInput:"yyyy-MM-dd",monthYearLabel:"yyyy MMM",dateA11yLabel:"LL",monthYearA11yLabel:"yyyy MMM"}}),_3({parse:{dateInput:"yyyy-MM-dd",yearInput:"yyyy",monthInput:"MMMM",datetimeInput:"yyyy-MM-dd HH:mm",timeInput:"HH:mm"},display:{dateInput:"yyyy-MM-dd",yearInput:"yyyy",monthInput:"MMMM",datetimeInput:"yyyy-MM-dd HH:mm",timeInput:"HH:mm",monthYearLabel:"yyyy MMMM",dateA11yLabel:"LL",monthYearA11yLabel:"MMMM yyyy",popupHeaderDateLabel:"MMM dd, E"}})]};var RU=(()=>{let n=class n{constructor(){this.preloader=u(t8),this.settings=u(ca)}ngOnInit(){this.settings.setDirection(),this.settings.setTheme()}ngAfterViewInit(){this.preloader.hide()}};n.\u0275fac=function(r){return new(r||n)},n.\u0275cmp=E({type:n,selectors:[["app-root"]],decls:1,vars:0,template:function(r,o){r&1&&M(0,"router-outlet")},dependencies:[al],encapsulation:2});let t=n;return t})();SM(RU,OU).catch(t=>console.error(t)); From 7a883a74b51a8445402aeb41efaf91a85c23f514 Mon Sep 17 00:00:00 2001 From: workcontrolgit Date: Tue, 21 Apr 2026 17:41:52 +0000 Subject: [PATCH 6/8] =?UTF-8?q?Deploying=20to=20gh-pages=20from=20@=20work?= =?UTF-8?q?controlgit/AngularNetTutorial@7f495d7adb5ac1da0e8c11a8062602041?= =?UTF-8?q?1f931c8=20=F0=9F=9A=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- 404.html | 2 +- data/menu.json | 30 ++- i18n/en-US.json | 6 +- index.html | 2 +- main-GWAUQRAV.js => main-UBMTBLRM.js | 349 +++++++++++++-------------- 5 files changed, 206 insertions(+), 183 deletions(-) rename main-GWAUQRAV.js => main-UBMTBLRM.js (63%) diff --git a/404.html b/404.html index d963eae..b6277bf 100644 --- a/404.html +++ b/404.html @@ -76,5 +76,5 @@

LOADING

- + diff --git a/data/menu.json b/data/menu.json index 3ef2220..2ea144f 100644 --- a/data/menu.json +++ b/data/menu.json @@ -91,10 +91,32 @@ ] }, { - "route": "ai-chat", - "name": "aiChat", - "type": "link", - "icon": "smart_toy" + "route": "ai", + "name": "ai", + "type": "sub", + "icon": "smart_toy", + "children": [ + { + "route": "assistant", + "name": "ai.aiAssistant", + "type": "link" + }, + { + "route": "hr-insight", + "name": "ai.aiHrInsight", + "type": "link" + }, + { + "route": "nl-search", + "name": "ai.aiNlSearch", + "type": "link" + }, + { + "route": "vector-search", + "name": "ai.aiVectorSearch", + "type": "link" + } + ] } ] } diff --git a/i18n/en-US.json b/i18n/en-US.json index c46b7d3..05e6ffa 100644 --- a/i18n/en-US.json +++ b/i18n/en-US.json @@ -13,7 +13,11 @@ "salaryRanges": "Salary Ranges", "salaryRanges.salaryRangeList": "List", "salaryRanges.addSalaryRange": "Create", - "aiChat": "AI Assistant", + "ai": "AI", + "ai.aiAssistant": "AI Assistant", + "ai.aiHrInsight": "HR Insight", + "ai.aiNlSearch": "NL Search", + "ai.aiVectorSearch": "Vector Search", "design": "Design", "design.colors": "Color System", "design.icons": "Material Icons", diff --git a/index.html b/index.html index d963eae..b6277bf 100644 --- a/index.html +++ b/index.html @@ -76,5 +76,5 @@

LOADING

- + diff --git a/main-GWAUQRAV.js b/main-UBMTBLRM.js similarity index 63% rename from main-GWAUQRAV.js rename to main-UBMTBLRM.js index e153eb8..4c27c76 100644 --- a/main-GWAUQRAV.js +++ b/main-UBMTBLRM.js @@ -1,144 +1,144 @@ -var PU=Object.defineProperty,FU=Object.defineProperties;var NU=Object.getOwnPropertyDescriptors;var k_=Object.getOwnPropertySymbols;var _A=Object.prototype.hasOwnProperty,bA=Object.prototype.propertyIsEnumerable;var gA=(t,n,e)=>n in t?PU(t,n,{enumerable:!0,configurable:!0,writable:!0,value:e}):t[n]=e,k=(t,n)=>{for(var e in n||={})_A.call(n,e)&&gA(t,e,n[e]);if(k_)for(var e of k_(n))bA.call(n,e)&&gA(t,e,n[e]);return t},Ee=(t,n)=>FU(t,NU(n));var vA=t=>typeof t=="symbol"?t:t+"",od=(t,n)=>{var e={};for(var i in t)_A.call(t,i)&&n.indexOf(i)<0&&(e[i]=t[i]);if(t!=null&&k_)for(var i of k_(t))n.indexOf(i)<0&&bA.call(t,i)&&(e[i]=t[i]);return e};var gn=(t,n,e)=>new Promise((i,r)=>{var o=l=>{try{s(e.next(l))}catch(c){r(c)}},a=l=>{try{s(e.throw(l))}catch(c){r(c)}},s=l=>l.done?i(l.value):Promise.resolve(l.value).then(o,a);s((e=e.apply(t,n)).next())});var Aw;function T_(){return Aw}function $a(t){let n=Aw;return Aw=t,n}var yA=Symbol("NotFound");function ju(t){return t===yA||t?.name==="\u0275NotFound"}var ur=null,I_=!1,Ow=1,LU=null,un=Symbol("SIGNAL");function Xe(t){let n=ur;return ur=t,n}function P_(){return ur}var ad={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 Tl(t){if(I_)throw new Error("");if(ur===null)return;ur.consumerOnSignalRead(t);let n=ur.producersTail;if(n!==void 0&&n.producer===t)return;let e,i=ur.recomputing;if(i&&(e=n!==void 0?n.nextProducer:ur.producers,e!==void 0&&e.producer===t)){ur.producersTail=e,e.lastReadVersion=t.version;return}let r=t.consumersTail;if(r!==void 0&&r.consumer===ur&&(!i||BU(r,ur)))return;let o=Hu(ur),a={producer:t,consumer:ur,nextProducer:e,prevConsumer:r,lastReadVersion:t.version,nextConsumer:void 0};ur.producersTail=a,n!==void 0?n.nextProducer=a:ur.producers=a,o&&DA(t,a)}function xA(){Ow++}function F_(t){if(!(Hu(t)&&!t.dirty)&&!(!t.dirty&&t.lastCleanEpoch===Ow)){if(!t.producerMustRecompute(t)&&!ld(t)){R_(t);return}t.producerRecomputeValue(t),R_(t)}}function Rw(t){if(t.consumers===void 0)return;let n=I_;I_=!0;try{for(let e=t.consumers;e!==void 0;e=e.nextConsumer){let i=e.consumer;i.dirty||VU(i)}}finally{I_=n}}function Pw(){return ur?.consumerAllowSignalWrites!==!1}function VU(t){t.dirty=!0,Rw(t),t.consumerMarkedDirty?.(t)}function R_(t){t.dirty=!1,t.lastCleanEpoch=Ow}function Il(t){return t&&CA(t),Xe(t)}function CA(t){t.producersTail=void 0,t.recomputing=!0}function sd(t,n){Xe(n),t&&wA(t)}function wA(t){t.recomputing=!1;let n=t.producersTail,e=n!==void 0?n.nextProducer:t.producers;if(e!==void 0){if(Hu(t))do e=Fw(e);while(e!==void 0);n!==void 0?n.nextProducer=void 0:t.producers=void 0}}function ld(t){for(let n=t.producers;n!==void 0;n=n.nextProducer){let e=n.producer,i=n.lastReadVersion;if(i!==e.version||(F_(e),i!==e.version))return!0}return!1}function Al(t){if(Hu(t)){let n=t.producers;for(;n!==void 0;)n=Fw(n)}t.producers=void 0,t.producersTail=void 0,t.consumers=void 0,t.consumersTail=void 0}function DA(t,n){let e=t.consumersTail,i=Hu(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,!i)for(let r=t.producers;r!==void 0;r=r.nextProducer)DA(r.producer,r)}function Fw(t){let n=t.producer,e=t.nextProducer,i=t.nextConsumer,r=t.prevConsumer;if(t.nextConsumer=void 0,t.prevConsumer=void 0,i!==void 0?i.prevConsumer=r:n.consumersTail=r,r!==void 0)r.nextConsumer=i;else if(n.consumers=i,!Hu(n)){let o=n.producers;for(;o!==void 0;)o=Fw(o)}return e}function Hu(t){return t.consumerIsAlwaysLive||t.consumers!==void 0}function N_(t){LU?.(t)}function BU(t,n){let e=n.producersTail;if(e!==void 0){let i=n.producers;do{if(i===t)return!0;if(i===e)break;i=i.nextProducer}while(i!==void 0)}return!1}function L_(t,n){return Object.is(t,n)}function yp(t,n){let e=Object.create(jU);e.computation=t,n!==void 0&&(e.equal=n);let i=()=>{if(F_(e),Tl(e),e.value===vp)throw e.error;return e.value};return i[un]=e,N_(e),i}var A_=Symbol("UNSET"),O_=Symbol("COMPUTING"),vp=Symbol("ERRORED"),jU=Ee(k({},ad),{value:A_,dirty:!0,error:null,equal:L_,kind:"computed",producerMustRecompute(t){return t.value===A_||t.value===O_},producerRecomputeValue(t){if(t.value===O_)throw new Error("");let n=t.value;t.value=O_;let e=Il(t),i,r=!1;try{i=t.computation(),Xe(null),r=n!==A_&&n!==vp&&i!==vp&&t.equal(n,i)}catch(o){i=vp,t.error=o}finally{sd(t,e)}if(r){t.value=n;return}t.value=i,t.version++}});function HU(){throw new Error}var EA=HU;function MA(t){EA(t)}function Nw(t){EA=t}var zU=null;function Lw(t,n){let e=Object.create(xp);e.value=t,n!==void 0&&(e.equal=n);let i=()=>SA(e);return i[un]=e,N_(e),[i,a=>cd(e,a),a=>Vw(e,a)]}function SA(t){return Tl(t),t.value}function cd(t,n){Pw()||MA(t),t.equal(t.value,n)||(t.value=n,UU(t))}function Vw(t,n){Pw()||MA(t),cd(t,n(t.value))}var xp=Ee(k({},ad),{equal:L_,value:void 0,kind:"signal"});function UU(t){t.version++,xA(),Rw(t),zU?.(t)}function Ke(t){return typeof t=="function"}function Ol(t){let e=t(i=>{Error.call(i),i.stack=new Error().stack});return e.prototype=Object.create(Error.prototype),e.prototype.constructor=e,e}var V_=Ol(t=>function(e){t(this),this.message=e?`${e.length} errors occurred during unsubscription: +var FU=Object.defineProperty,NU=Object.defineProperties;var LU=Object.getOwnPropertyDescriptors;var I_=Object.getOwnPropertySymbols;var vA=Object.prototype.hasOwnProperty,yA=Object.prototype.propertyIsEnumerable;var bA=(t,n,e)=>n in t?FU(t,n,{enumerable:!0,configurable:!0,writable:!0,value:e}):t[n]=e,I=(t,n)=>{for(var e in n||={})vA.call(n,e)&&bA(t,e,n[e]);if(I_)for(var e of I_(n))yA.call(n,e)&&bA(t,e,n[e]);return t},Me=(t,n)=>NU(t,LU(n));var xA=t=>typeof t=="symbol"?t:t+"",cd=(t,n)=>{var e={};for(var i in t)vA.call(t,i)&&n.indexOf(i)<0&&(e[i]=t[i]);if(t!=null&&I_)for(var i of I_(t))n.indexOf(i)<0&&yA.call(t,i)&&(e[i]=t[i]);return e};var yn=(t,n,e)=>new Promise((i,r)=>{var o=l=>{try{s(e.next(l))}catch(c){r(c)}},a=l=>{try{s(e.throw(l))}catch(c){r(c)}},s=l=>l.done?i(l.value):Promise.resolve(l.value).then(o,a);s((e=e.apply(t,n)).next())});var Rw;function A_(){return Rw}function os(t){let n=Rw;return Rw=t,n}var CA=Symbol("NotFound");function ju(t){return t===CA||t?.name==="\u0275NotFound"}var vr=null,O_=!1,Pw=1,VU=null,mn=Symbol("SIGNAL");function tt(t){let n=vr;return vr=t,n}function N_(){return vr}var dd={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 Wl(t){if(O_)throw new Error("");if(vr===null)return;vr.consumerOnSignalRead(t);let n=vr.producersTail;if(n!==void 0&&n.producer===t)return;let e,i=vr.recomputing;if(i&&(e=n!==void 0?n.nextProducer:vr.producers,e!==void 0&&e.producer===t)){vr.producersTail=e,e.lastReadVersion=t.version;return}let r=t.consumersTail;if(r!==void 0&&r.consumer===vr&&(!i||jU(r,vr)))return;let o=Hu(vr),a={producer:t,consumer:vr,nextProducer:e,prevConsumer:r,lastReadVersion:t.version,nextConsumer:void 0};vr.producersTail=a,n!==void 0?n.nextProducer=a:vr.producers=a,o&&EA(t,a)}function wA(){Pw++}function L_(t){if(!(Hu(t)&&!t.dirty)&&!(!t.dirty&&t.lastCleanEpoch===Pw)){if(!t.producerMustRecompute(t)&&!md(t)){F_(t);return}t.producerRecomputeValue(t),F_(t)}}function Fw(t){if(t.consumers===void 0)return;let n=O_;O_=!0;try{for(let e=t.consumers;e!==void 0;e=e.nextConsumer){let i=e.consumer;i.dirty||BU(i)}}finally{O_=n}}function Nw(){return vr?.consumerAllowSignalWrites!==!1}function BU(t){t.dirty=!0,Fw(t),t.consumerMarkedDirty?.(t)}function F_(t){t.dirty=!1,t.lastCleanEpoch=Pw}function Gl(t){return t&&DA(t),tt(t)}function DA(t){t.producersTail=void 0,t.recomputing=!0}function ud(t,n){tt(n),t&&MA(t)}function MA(t){t.recomputing=!1;let n=t.producersTail,e=n!==void 0?n.nextProducer:t.producers;if(e!==void 0){if(Hu(t))do e=Lw(e);while(e!==void 0);n!==void 0?n.nextProducer=void 0:t.producers=void 0}}function md(t){for(let n=t.producers;n!==void 0;n=n.nextProducer){let e=n.producer,i=n.lastReadVersion;if(i!==e.version||(L_(e),i!==e.version))return!0}return!1}function ql(t){if(Hu(t)){let n=t.producers;for(;n!==void 0;)n=Lw(n)}t.producers=void 0,t.producersTail=void 0,t.consumers=void 0,t.consumersTail=void 0}function EA(t,n){let e=t.consumersTail,i=Hu(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,!i)for(let r=t.producers;r!==void 0;r=r.nextProducer)EA(r.producer,r)}function Lw(t){let n=t.producer,e=t.nextProducer,i=t.nextConsumer,r=t.prevConsumer;if(t.nextConsumer=void 0,t.prevConsumer=void 0,i!==void 0?i.prevConsumer=r:n.consumersTail=r,r!==void 0)r.nextConsumer=i;else if(n.consumers=i,!Hu(n)){let o=n.producers;for(;o!==void 0;)o=Lw(o)}return e}function Hu(t){return t.consumerIsAlwaysLive||t.consumers!==void 0}function V_(t){VU?.(t)}function jU(t,n){let e=n.producersTail;if(e!==void 0){let i=n.producers;do{if(i===t)return!0;if(i===e)break;i=i.nextProducer}while(i!==void 0)}return!1}function B_(t,n){return Object.is(t,n)}function yp(t,n){let e=Object.create(HU);e.computation=t,n!==void 0&&(e.equal=n);let i=()=>{if(L_(e),Wl(e),e.value===vp)throw e.error;return e.value};return i[mn]=e,V_(e),i}var R_=Symbol("UNSET"),P_=Symbol("COMPUTING"),vp=Symbol("ERRORED"),HU=Me(I({},dd),{value:R_,dirty:!0,error:null,equal:B_,kind:"computed",producerMustRecompute(t){return t.value===R_||t.value===P_},producerRecomputeValue(t){if(t.value===P_)throw new Error("");let n=t.value;t.value=P_;let e=Gl(t),i,r=!1;try{i=t.computation(),tt(null),r=n!==R_&&n!==vp&&i!==vp&&t.equal(n,i)}catch(o){i=vp,t.error=o}finally{ud(t,e)}if(r){t.value=n;return}t.value=i,t.version++}});function zU(){throw new Error}var SA=zU;function kA(t){SA(t)}function Vw(t){SA=t}var UU=null;function Bw(t,n){let e=Object.create(xp);e.value=t,n!==void 0&&(e.equal=n);let i=()=>TA(e);return i[mn]=e,V_(e),[i,a=>hd(e,a),a=>jw(e,a)]}function TA(t){return Wl(t),t.value}function hd(t,n){Nw()||kA(t),t.equal(t.value,n)||(t.value=n,$U(t))}function jw(t,n){Nw()||kA(t),hd(t,n(t.value))}var xp=Me(I({},dd),{equal:B_,value:void 0,kind:"signal"});function $U(t){t.version++,wA(),Fw(t),UU?.(t)}function Xe(t){return typeof t=="function"}function Yl(t){let e=t(i=>{Error.call(i),i.stack=new Error().stack});return e.prototype=Object.create(Error.prototype),e.prototype.constructor=e,e}var j_=Yl(t=>function(e){t(this),this.message=e?`${e.length} errors occurred during unsubscription: ${e.map((i,r)=>`${r+1}) ${i.toString()}`).join(` - `)}`:"",this.name="UnsubscriptionError",this.errors=e});function dd(t,n){if(t){let e=t.indexOf(n);0<=e&&t.splice(e,1)}}var Te=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 o of e)o.remove(this);else e.remove(this);let{initialTeardown:i}=this;if(Ke(i))try{i()}catch(o){n=o instanceof V_?o.errors:[o]}let{_finalizers:r}=this;if(r){this._finalizers=null;for(let o of r)try{kA(o)}catch(a){n=n??[],a instanceof V_?n=[...n,...a.errors]:n.push(a)}}if(n)throw new V_(n)}}add(n){var e;if(n&&n!==this)if(this.closed)kA(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)&&dd(e,n)}remove(n){let{_finalizers:e}=this;e&&dd(e,n),n instanceof t&&n._removeParent(this)}};Te.EMPTY=(()=>{let t=new Te;return t.closed=!0,t})();var Bw=Te.EMPTY;function B_(t){return t instanceof Te||t&&"closed"in t&&Ke(t.remove)&&Ke(t.add)&&Ke(t.unsubscribe)}function kA(t){Ke(t)?t():t.unsubscribe()}var fa={onUnhandledError:null,onStoppedNotification:null,Promise:void 0,useDeprecatedSynchronousErrorHandling:!1,useDeprecatedNextContext:!1};var zu={setTimeout(t,n,...e){let{delegate:i}=zu;return i?.setTimeout?i.setTimeout(t,n,...e):setTimeout(t,n,...e)},clearTimeout(t){let{delegate:n}=zu;return(n?.clearTimeout||clearTimeout)(t)},delegate:void 0};function j_(t){zu.setTimeout(()=>{let{onUnhandledError:n}=fa;if(n)n(t);else throw t})}function ud(){}var TA=jw("C",void 0,void 0);function IA(t){return jw("E",void 0,t)}function AA(t){return jw("N",t,void 0)}function jw(t,n,e){return{kind:t,value:n,error:e}}var md=null;function Uu(t){if(fa.useDeprecatedSynchronousErrorHandling){let n=!md;if(n&&(md={errorThrown:!1,error:null}),t(),n){let{errorThrown:e,error:i}=md;if(md=null,e)throw i}}else t()}function OA(t){fa.useDeprecatedSynchronousErrorHandling&&md&&(md.errorThrown=!0,md.error=t)}var hd=class extends Te{constructor(n){super(),this.isStopped=!1,n?(this.destination=n,B_(n)&&n.add(this)):this.destination=GU}static create(n,e,i){return new js(n,e,i)}next(n){this.isStopped?zw(AA(n),this):this._next(n)}error(n){this.isStopped?zw(IA(n),this):(this.isStopped=!0,this._error(n))}complete(){this.isStopped?zw(TA,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()}}},$U=Function.prototype.bind;function Hw(t,n){return $U.call(t,n)}var Uw=class{constructor(n){this.partialObserver=n}next(n){let{partialObserver:e}=this;if(e.next)try{e.next(n)}catch(i){H_(i)}}error(n){let{partialObserver:e}=this;if(e.error)try{e.error(n)}catch(i){H_(i)}else H_(n)}complete(){let{partialObserver:n}=this;if(n.complete)try{n.complete()}catch(e){H_(e)}}},js=class extends hd{constructor(n,e,i){super();let r;if(Ke(n)||!n)r={next:n??void 0,error:e??void 0,complete:i??void 0};else{let o;this&&fa.useDeprecatedNextContext?(o=Object.create(n),o.unsubscribe=()=>this.unsubscribe(),r={next:n.next&&Hw(n.next,o),error:n.error&&Hw(n.error,o),complete:n.complete&&Hw(n.complete,o)}):r=n}this.destination=new Uw(r)}};function H_(t){fa.useDeprecatedSynchronousErrorHandling?OA(t):j_(t)}function WU(t){throw t}function zw(t,n){let{onStoppedNotification:e}=fa;e&&zu.setTimeout(()=>e(t,n))}var GU={closed:!0,next:ud,error:WU,complete:ud};var $u=typeof Symbol=="function"&&Symbol.observable||"@@observable";function Ir(t){return t}function $w(...t){return Ww(t)}function Ww(t){return t.length===0?Ir:t.length===1?t[0]:function(e){return t.reduce((i,r)=>r(i),e)}}var Fe=(()=>{class t{constructor(e){e&&(this._subscribe=e)}lift(e){let i=new t;return i.source=this,i.operator=e,i}subscribe(e,i,r){let o=YU(e)?e:new js(e,i,r);return Uu(()=>{let{operator:a,source:s}=this;o.add(a?a.call(o,s):s?this._subscribe(o):this._trySubscribe(o))}),o}_trySubscribe(e){try{return this._subscribe(e)}catch(i){e.error(i)}}forEach(e,i){return i=RA(i),new i((r,o)=>{let a=new js({next:s=>{try{e(s)}catch(l){o(l),a.unsubscribe()}},error:o,complete:r});this.subscribe(a)})}_subscribe(e){var i;return(i=this.source)===null||i===void 0?void 0:i.subscribe(e)}[$u](){return this}pipe(...e){return Ww(e)(this)}toPromise(e){return e=RA(e),new e((i,r)=>{let o;this.subscribe(a=>o=a,a=>r(a),()=>i(o))})}}return t.create=n=>new t(n),t})();function RA(t){var n;return(n=t??fa.Promise)!==null&&n!==void 0?n:Promise}function qU(t){return t&&Ke(t.next)&&Ke(t.error)&&Ke(t.complete)}function YU(t){return t&&t instanceof hd||qU(t)&&B_(t)}function Gw(t){return Ke(t?.lift)}function Qe(t){return n=>{if(Gw(n))return n.lift(function(e){try{return t(e,this)}catch(i){this.error(i)}});throw new TypeError("Unable to lift unknown Observable type")}}function $e(t,n,e,i,r){return new qw(t,n,e,i,r)}var qw=class extends hd{constructor(n,e,i,r,o,a){super(n),this.onFinalize=o,this.shouldUnsubscribe=a,this._next=e?function(s){try{e(s)}catch(l){n.error(l)}}:super._next,this._error=r?function(s){try{r(s)}catch(l){n.error(l)}finally{this.unsubscribe()}}:super._error,this._complete=i?function(){try{i()}catch(s){n.error(s)}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 Wu(){return Qe((t,n)=>{let e=null;t._refCount++;let i=$e(n,void 0,void 0,void 0,()=>{if(!t||t._refCount<=0||0<--t._refCount){e=null;return}let r=t._connection,o=e;e=null,r&&(!o||r===o)&&r.unsubscribe(),n.unsubscribe()});t.subscribe(i),i.closed||(e=t.connect())})}var Rl=class extends Fe{constructor(n,e){super(),this.source=n,this.subjectFactory=e,this._subject=null,this._refCount=0,this._connection=null,Gw(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 Te;let e=this.getSubject();n.add(this.source.subscribe($e(e,void 0,()=>{this._teardown(),e.complete()},i=>{this._teardown(),e.error(i)},()=>this._teardown()))),n.closed&&(this._connection=null,n=Te.EMPTY)}return n}refCount(){return Wu()(this)}};var Gu={schedule(t){let n=requestAnimationFrame,e=cancelAnimationFrame,{delegate:i}=Gu;i&&(n=i.requestAnimationFrame,e=i.cancelAnimationFrame);let r=n(o=>{e=void 0,t(o)});return new Te(()=>e?.(r))},requestAnimationFrame(...t){let{delegate:n}=Gu;return(n?.requestAnimationFrame||requestAnimationFrame)(...t)},cancelAnimationFrame(...t){let{delegate:n}=Gu;return(n?.cancelAnimationFrame||cancelAnimationFrame)(...t)},delegate:void 0};var PA=Ol(t=>function(){t(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"});var z=(()=>{class t extends Fe{constructor(){super(),this.closed=!1,this.currentObservers=null,this.observers=[],this.isStopped=!1,this.hasError=!1,this.thrownError=null}lift(e){let i=new z_(this,this);return i.operator=e,i}_throwIfClosed(){if(this.closed)throw new PA}next(e){Uu(()=>{if(this._throwIfClosed(),!this.isStopped){this.currentObservers||(this.currentObservers=Array.from(this.observers));for(let i of this.currentObservers)i.next(e)}})}error(e){Uu(()=>{if(this._throwIfClosed(),!this.isStopped){this.hasError=this.isStopped=!0,this.thrownError=e;let{observers:i}=this;for(;i.length;)i.shift().error(e)}})}complete(){Uu(()=>{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:i,isStopped:r,observers:o}=this;return i||r?Bw:(this.currentObservers=null,o.push(e),new Te(()=>{this.currentObservers=null,dd(o,e)}))}_checkFinalizedStatuses(e){let{hasError:i,thrownError:r,isStopped:o}=this;i?e.error(r):o&&e.complete()}asObservable(){let e=new Fe;return e.source=this,e}}return t.create=(n,e)=>new z_(n,e),t})(),z_=class extends z{constructor(n,e){super(),this.destination=n,this.source=e}next(n){var e,i;(i=(e=this.destination)===null||e===void 0?void 0:e.next)===null||i===void 0||i.call(e,n)}error(n){var e,i;(i=(e=this.destination)===null||e===void 0?void 0:e.error)===null||i===void 0||i.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,i;return(i=(e=this.source)===null||e===void 0?void 0:e.subscribe(n))!==null&&i!==void 0?i:Bw}};var it=class extends z{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:i}=this;if(n)throw e;return this._throwIfClosed(),i}next(n){super.next(this._value=n)}};var Cp={now(){return(Cp.delegate||Date).now()},delegate:void 0};var Wa=class extends z{constructor(n=1/0,e=1/0,i=Cp){super(),this._bufferSize=n,this._windowTime=e,this._timestampProvider=i,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:i,_infiniteTimeWindow:r,_timestampProvider:o,_windowTime:a}=this;e||(i.push(n),!r&&i.push(o.now()+a)),this._trimBuffer(),super.next(n)}_subscribe(n){this._throwIfClosed(),this._trimBuffer();let e=this._innerSubscribe(n),{_infiniteTimeWindow:i,_buffer:r}=this,o=r.slice();for(let a=0;aFA(n)&&t()),n},clearImmediate(t){FA(t)}};var{setImmediate:KU,clearImmediate:ZU}=NA,Dp={setImmediate(...t){let{delegate:n}=Dp;return(n?.setImmediate||KU)(...t)},clearImmediate(t){let{delegate:n}=Dp;return(n?.clearImmediate||ZU)(t)},delegate:void 0};var $_=class extends Pl{constructor(n,e){super(n,e),this.scheduler=n,this.work=e}requestAsyncId(n,e,i=0){return i!==null&&i>0?super.requestAsyncId(n,e,i):(n.actions.push(this),n._scheduled||(n._scheduled=Dp.setImmediate(n.flush.bind(n,void 0))))}recycleAsyncId(n,e,i=0){var r;if(i!=null?i>0:this.delay>0)return super.recycleAsyncId(n,e,i);let{actions:o}=n;e!=null&&((r=o[o.length-1])===null||r===void 0?void 0:r.id)!==e&&(Dp.clearImmediate(e),n._scheduled===e&&(n._scheduled=void 0))}};var qu=class t{constructor(n,e=t.now){this.schedulerActionCtor=n,this.now=e}schedule(n,e=0,i){return new this.schedulerActionCtor(this,n).schedule(i,e)}};qu.now=Cp.now;var Fl=class extends qu{constructor(n,e=qu.now){super(n,e),this.actions=[],this._active=!1}flush(n){let{actions:e}=this;if(this._active){e.push(n);return}let i;this._active=!0;do if(i=n.execute(n.state,n.delay))break;while(n=e.shift());if(this._active=!1,i){for(;n=e.shift();)n.unsubscribe();throw i}}};var W_=class extends Fl{flush(n){this._active=!0;let e=this._scheduled;this._scheduled=void 0;let{actions:i}=this,r;n=n||i.shift();do if(r=n.execute(n.state,n.delay))break;while((n=i[0])&&n.id===e&&i.shift());if(this._active=!1,r){for(;(n=i[0])&&n.id===e&&i.shift();)n.unsubscribe();throw r}}};var G_=new W_($_);var Hs=new Fl(Pl),LA=Hs;var q_=class extends Pl{constructor(n,e){super(n,e),this.scheduler=n,this.work=e}requestAsyncId(n,e,i=0){return i!==null&&i>0?super.requestAsyncId(n,e,i):(n.actions.push(this),n._scheduled||(n._scheduled=Gu.requestAnimationFrame(()=>n.flush(void 0))))}recycleAsyncId(n,e,i=0){var r;if(i!=null?i>0:this.delay>0)return super.recycleAsyncId(n,e,i);let{actions:o}=n;e!=null&&e===n._scheduled&&((r=o[o.length-1])===null||r===void 0?void 0:r.id)!==e&&(Gu.cancelAnimationFrame(e),n._scheduled=void 0)}};var Y_=class extends Fl{flush(n){this._active=!0;let e;n?e=n.id:(e=this._scheduled,this._scheduled=void 0);let{actions:i}=this,r;n=n||i.shift();do if(r=n.execute(n.state,n.delay))break;while((n=i[0])&&n.id===e&&i.shift());if(this._active=!1,r){for(;(n=i[0])&&n.id===e&&i.shift();)n.unsubscribe();throw r}}};var Q_=new Y_(q_);var Vi=new Fe(t=>t.complete());function K_(t){return t&&Ke(t.schedule)}function Kw(t){return t[t.length-1]}function Z_(t){return Ke(Kw(t))?t.pop():void 0}function Ga(t){return K_(Kw(t))?t.pop():void 0}function VA(t,n){return typeof Kw(t)=="number"?t.pop():n}function jA(t,n,e,i){function r(o){return o instanceof e?o:new e(function(a){a(o)})}return new(e||(e=Promise))(function(o,a){function s(d){try{c(i.next(d))}catch(p){a(p)}}function l(d){try{c(i.throw(d))}catch(p){a(p)}}function c(d){d.done?o(d.value):r(d.value).then(s,l)}c((i=i.apply(t,n||[])).next())})}function BA(t){var n=typeof Symbol=="function"&&Symbol.iterator,e=n&&t[n],i=0;if(e)return e.call(t);if(t&&typeof t.length=="number")return{next:function(){return t&&i>=t.length&&(t=void 0),{value:t&&t[i++],done:!t}}};throw new TypeError(n?"Object is not iterable.":"Symbol.iterator is not defined.")}function pd(t){return this instanceof pd?(this.v=t,this):new pd(t)}function HA(t,n,e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var i=e.apply(t,n||[]),r,o=[];return r=Object.create((typeof AsyncIterator=="function"?AsyncIterator:Object).prototype),s("next"),s("throw"),s("return",a),r[Symbol.asyncIterator]=function(){return this},r;function a(b){return function(y){return Promise.resolve(y).then(b,p)}}function s(b,y){i[b]&&(r[b]=function(w){return new Promise(function(C,D){o.push([b,w,C,D])>1||l(b,w)})},y&&(r[b]=y(r[b])))}function l(b,y){try{c(i[b](y))}catch(w){_(o[0][3],w)}}function c(b){b.value instanceof pd?Promise.resolve(b.value.v).then(d,p):_(o[0][2],b)}function d(b){l("next",b)}function p(b){l("throw",b)}function _(b,y){b(y),o.shift(),o.length&&l(o[0][0],o[0][1])}}function zA(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 BA=="function"?BA(t):t[Symbol.iterator](),e={},i("next"),i("throw"),i("return"),e[Symbol.asyncIterator]=function(){return this},e);function i(o){e[o]=t[o]&&function(a){return new Promise(function(s,l){a=t[o](a),r(s,l,a.done,a.value)})}}function r(o,a,s,l){Promise.resolve(l).then(function(c){o({value:c,done:s})},a)}}var Yu=t=>t&&typeof t.length=="number"&&typeof t!="function";function X_(t){return Ke(t?.then)}function J_(t){return Ke(t[$u])}function eb(t){return Symbol.asyncIterator&&Ke(t?.[Symbol.asyncIterator])}function tb(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 XU(){return typeof Symbol!="function"||!Symbol.iterator?"@@iterator":Symbol.iterator}var ib=XU();function nb(t){return Ke(t?.[ib])}function rb(t){return HA(this,arguments,function*(){let e=t.getReader();try{for(;;){let{value:i,done:r}=yield pd(e.read());if(r)return yield pd(void 0);yield yield pd(i)}}finally{e.releaseLock()}})}function ob(t){return Ke(t?.getReader)}function Pt(t){if(t instanceof Fe)return t;if(t!=null){if(J_(t))return JU(t);if(Yu(t))return e$(t);if(X_(t))return t$(t);if(eb(t))return UA(t);if(nb(t))return i$(t);if(ob(t))return n$(t)}throw tb(t)}function JU(t){return new Fe(n=>{let e=t[$u]();if(Ke(e.subscribe))return e.subscribe(n);throw new TypeError("Provided object does not correctly implement Symbol.observable")})}function e$(t){return new Fe(n=>{for(let e=0;e{t.then(e=>{n.closed||(n.next(e),n.complete())},e=>n.error(e)).then(null,j_)})}function i$(t){return new Fe(n=>{for(let e of t)if(n.next(e),n.closed)return;n.complete()})}function UA(t){return new Fe(n=>{r$(t,n).catch(e=>n.error(e))})}function n$(t){return UA(rb(t))}function r$(t,n){var e,i,r,o;return jA(this,void 0,void 0,function*(){try{for(e=zA(t);i=yield e.next(),!i.done;){let a=i.value;if(n.next(a),n.closed)return}}catch(a){r={error:a}}finally{try{i&&!i.done&&(o=e.return)&&(yield o.call(e))}finally{if(r)throw r.error}}n.complete()})}function mr(t,n,e,i=0,r=!1){let o=n.schedule(function(){e(),r?t.add(this.schedule(null,i)):this.unsubscribe()},i);if(t.add(o),!r)return o}function ab(t,n=0){return Qe((e,i)=>{e.subscribe($e(i,r=>mr(i,t,()=>i.next(r),n),()=>mr(i,t,()=>i.complete(),n),r=>mr(i,t,()=>i.error(r),n)))})}function sb(t,n=0){return Qe((e,i)=>{i.add(t.schedule(()=>e.subscribe(i),n))})}function $A(t,n){return Pt(t).pipe(sb(n),ab(n))}function WA(t,n){return Pt(t).pipe(sb(n),ab(n))}function GA(t,n){return new Fe(e=>{let i=0;return n.schedule(function(){i===t.length?e.complete():(e.next(t[i++]),e.closed||this.schedule())})})}function qA(t,n){return new Fe(e=>{let i;return mr(e,n,()=>{i=t[ib](),mr(e,n,()=>{let r,o;try{({value:r,done:o}=i.next())}catch(a){e.error(a);return}o?e.complete():e.next(r)},0,!0)}),()=>Ke(i?.return)&&i.return()})}function lb(t,n){if(!t)throw new Error("Iterable cannot be null");return new Fe(e=>{mr(e,n,()=>{let i=t[Symbol.asyncIterator]();mr(e,n,()=>{i.next().then(r=>{r.done?e.complete():e.next(r.value)})},0,!0)})})}function YA(t,n){return lb(rb(t),n)}function QA(t,n){if(t!=null){if(J_(t))return $A(t,n);if(Yu(t))return GA(t,n);if(X_(t))return WA(t,n);if(eb(t))return lb(t,n);if(nb(t))return qA(t,n);if(ob(t))return YA(t,n)}throw tb(t)}function Ft(t,n){return n?QA(t,n):Pt(t)}function Q(...t){let n=Ga(t);return Ft(t,n)}function qn(t,n){let e=Ke(t)?t:()=>t,i=r=>r.error(e());return new Fe(n?r=>n.schedule(i,0,r):i)}function zi(t){return!!t&&(t instanceof Fe||Ke(t.lift)&&Ke(t.subscribe))}var zs=Ol(t=>function(){t(this),this.name="EmptyError",this.message="no elements in sequence"});function cb(t){return t instanceof Date&&!isNaN(t)}var o$=Ol(t=>function(e=null){t(this),this.message="Timeout has occurred",this.name="TimeoutError",this.info=e});function Zw(t,n){let{first:e,each:i,with:r=a$,scheduler:o=n??Hs,meta:a=null}=cb(t)?{first:t}:typeof t=="number"?{each:t}:t;if(e==null&&i==null)throw new TypeError("No timeout provided.");return Qe((s,l)=>{let c,d,p=null,_=0,b=y=>{d=mr(l,o,()=>{try{c.unsubscribe(),Pt(r({meta:a,lastValue:p,seen:_})).subscribe(l)}catch(w){l.error(w)}},y)};c=s.subscribe($e(l,y=>{d?.unsubscribe(),_++,l.next(p=y),i>0&&b(i)},void 0,void 0,()=>{d?.closed||d?.unsubscribe(),p=null})),!_&&b(e!=null?typeof e=="number"?e:+e-o.now():i)})}function a$(t){throw new o$(t)}function se(t,n){return Qe((e,i)=>{let r=0;e.subscribe($e(i,o=>{i.next(t.call(n,o,r++))}))})}var{isArray:s$}=Array;function l$(t,n){return s$(n)?t(...n):t(n)}function Qu(t){return se(n=>l$(t,n))}var{isArray:c$}=Array,{getPrototypeOf:d$,prototype:u$,keys:m$}=Object;function db(t){if(t.length===1){let n=t[0];if(c$(n))return{args:n,keys:null};if(h$(n)){let e=m$(n);return{args:e.map(i=>n[i]),keys:e}}}return{args:t,keys:null}}function h$(t){return t&&typeof t=="object"&&d$(t)===u$}function ub(t,n){return t.reduce((e,i,r)=>(e[i]=n[r],e),{})}function go(...t){let n=Ga(t),e=Z_(t),{args:i,keys:r}=db(t);if(i.length===0)return Ft([],n);let o=new Fe(p$(i,n,r?a=>ub(r,a):Ir));return e?o.pipe(Qu(e)):o}function p$(t,n,e=Ir){return i=>{KA(n,()=>{let{length:r}=t,o=new Array(r),a=r,s=r;for(let l=0;l{let c=Ft(t[l],n),d=!1;c.subscribe($e(i,p=>{o[l]=p,d||(d=!0,s--),s||i.next(e(o.slice()))},()=>{--a||i.complete()}))},i)},i)}}function KA(t,n,e){t?mr(e,t,n):n()}function ZA(t,n,e,i,r,o,a,s){let l=[],c=0,d=0,p=!1,_=()=>{p&&!l.length&&!c&&n.complete()},b=w=>c{o&&n.next(w),c++;let C=!1;Pt(e(w,d++)).subscribe($e(n,D=>{r?.(D),o?b(D):n.next(D)},()=>{C=!0},void 0,()=>{if(C)try{for(c--;l.length&&cy(D)):y(D)}_()}catch(D){n.error(D)}}))};return t.subscribe($e(n,b,()=>{p=!0,_()})),()=>{s?.()}}function It(t,n,e=1/0){return Ke(n)?It((i,r)=>se((o,a)=>n(i,o,r,a))(Pt(t(i,r))),e):(typeof n=="number"&&(e=n),Qe((i,r)=>ZA(i,r,t,e)))}function _o(t=1/0){return It(Ir,t)}function XA(){return _o(1)}function bo(...t){return XA()(Ft(t,Ga(t)))}function In(t){return new Fe(n=>{Pt(t()).subscribe(n)})}function qa(...t){let n=Z_(t),{args:e,keys:i}=db(t),r=new Fe(o=>{let{length:a}=e;if(!a){o.complete();return}let s=new Array(a),l=a,c=a;for(let d=0;d{p||(p=!0,c--),s[d]=_},()=>l--,void 0,()=>{(!l||!p)&&(c||o.next(i?ub(i,s):s),o.complete())}))}});return n?r.pipe(Qu(n)):r}var f$=["addListener","removeListener"],g$=["addEventListener","removeEventListener"],_$=["on","off"];function Us(t,n,e,i){if(Ke(e)&&(i=e,e=void 0),i)return Us(t,n,e).pipe(Qu(i));let[r,o]=y$(t)?g$.map(a=>s=>t[a](n,s,e)):b$(t)?f$.map(JA(t,n)):v$(t)?_$.map(JA(t,n)):[];if(!r&&Yu(t))return It(a=>Us(a,n,e))(Pt(t));if(!r)throw new TypeError("Invalid event target");return new Fe(a=>{let s=(...l)=>a.next(1o(s)})}function JA(t,n){return e=>i=>t[e](n,i)}function b$(t){return Ke(t.addListener)&&Ke(t.removeListener)}function v$(t){return Ke(t.on)&&Ke(t.off)}function y$(t){return Ke(t.addEventListener)&&Ke(t.removeEventListener)}function Ya(t=0,n,e=LA){let i=-1;return n!=null&&(K_(n)?e=n:i=n),new Fe(r=>{let o=cb(t)?+t-e.now():t;o<0&&(o=0);let a=0;return e.schedule(function(){r.closed||(r.next(a++),0<=i?this.schedule(void 0,i):r.complete())},o)})}function Je(...t){let n=Ga(t),e=VA(t,1/0),i=t;return i.length?i.length===1?Pt(i[0]):_o(e)(Ft(i,n)):Vi}var{isArray:x$}=Array;function eO(t){return t.length===1&&x$(t[0])?t[0]:t}function ce(t,n){return Qe((e,i)=>{let r=0;e.subscribe($e(i,o=>t.call(n,o,r++)&&i.next(o)))})}function Ku(...t){return t=eO(t),t.length===1?Pt(t[0]):new Fe(C$(t))}function C$(t){return n=>{let e=[];for(let i=0;e&&!n.closed&&i{if(e){for(let o=0;o{let i=!1,r=null,o=null,a=!1,s=()=>{if(o?.unsubscribe(),o=null,i){i=!1;let c=r;r=null,e.next(c)}a&&e.complete()},l=()=>{o=null,a&&e.complete()};n.subscribe($e(e,c=>{i=!0,r=c,o||Pt(t(c)).subscribe(o=$e(e,s,l))},()=>{a=!0,(!i||!o||o.closed)&&e.complete()}))})}function Nl(t,n=Hs){return tO(()=>Ya(t,n))}function ii(t){return Qe((n,e)=>{let i=null,r=!1,o;i=n.subscribe($e(e,void 0,void 0,a=>{o=Pt(t(a,ii(t)(n))),i?(i.unsubscribe(),i=null,o.subscribe(e)):r=!0})),r&&(i.unsubscribe(),i=null,o.subscribe(e))})}function iO(t,n,e,i,r){return(o,a)=>{let s=e,l=n,c=0;o.subscribe($e(a,d=>{let p=c++;l=s?t(l,d,p):(s=!0,d),i&&a.next(l)},r&&(()=>{s&&a.next(l),a.complete()})))}}function No(t,n){return Ke(n)?It(t,n,1):It(t,1)}function St(t,n=Hs){return Qe((e,i)=>{let r=null,o=null,a=null,s=()=>{if(r){r.unsubscribe(),r=null;let c=o;o=null,i.next(c)}};function l(){let c=a+t,d=n.now();if(d{o=c,a=n.now(),r||(r=n.schedule(l,t),i.add(r))},()=>{s(),i.complete()},void 0,()=>{o=r=null}))})}function Ll(t){return Qe((n,e)=>{let i=!1;n.subscribe($e(e,r=>{i=!0,e.next(r)},()=>{i||e.next(t),e.complete()}))})}function ct(t){return t<=0?()=>Vi:Qe((n,e)=>{let i=0;n.subscribe($e(e,r=>{++i<=t&&(e.next(r),t<=i&&e.complete())}))})}function nO(){return Qe((t,n)=>{t.subscribe($e(n,ud))})}function Zu(t){return se(()=>t)}function Xw(t,n){return n?e=>bo(n.pipe(ct(1),nO()),e.pipe(Xw(t))):It((e,i)=>Pt(t(e,i)).pipe(ct(1),Zu(e)))}function ga(t,n=Hs){let e=Ya(t,n);return Xw(()=>e)}function _n(t,n=Ir){return t=t??w$,Qe((e,i)=>{let r,o=!0;e.subscribe($e(i,a=>{let s=n(a);(o||!t(r,s))&&(o=!1,r=s,i.next(a))}))})}function w$(t,n){return t===n}function mb(t=D$){return Qe((n,e)=>{let i=!1;n.subscribe($e(e,r=>{i=!0,e.next(r)},()=>i?e.complete():e.error(t())))})}function D$(){return new zs}function Jw(t,n){return Qe((e,i)=>{let r=0;e.subscribe($e(i,o=>{t.call(n,o,r++,e)||(i.next(!1),i.complete())},()=>{i.next(!0),i.complete()}))})}function Gr(t){return Qe((n,e)=>{try{n.subscribe(e)}finally{e.add(t)}})}function bn(t,n){let e=arguments.length>=2;return i=>i.pipe(t?ce((r,o)=>t(r,o,i)):Ir,ct(1),e?Ll(n):mb(()=>new zs))}function Xu(t){return t<=0?()=>Vi:Qe((n,e)=>{let i=[];n.subscribe($e(e,r=>{i.push(r),t{for(let r of i)e.next(r);e.complete()},void 0,()=>{i=null}))})}function eD(t,n){let e=arguments.length>=2;return i=>i.pipe(t?ce((r,o)=>t(r,o,i)):Ir,Xu(1),e?Ll(n):mb(()=>new zs))}function hb(){return Qe((t,n)=>{let e,i=!1;t.subscribe($e(n,r=>{let o=e;e=r,i&&n.next([o,r]),i=!0}))})}function tD(t,n){return Qe(iO(t,n,arguments.length>=2,!0))}function Vl(t={}){let{connector:n=()=>new z,resetOnError:e=!0,resetOnComplete:i=!0,resetOnRefCountZero:r=!0}=t;return o=>{let a,s,l,c=0,d=!1,p=!1,_=()=>{s?.unsubscribe(),s=void 0},b=()=>{_(),a=l=void 0,d=p=!1},y=()=>{let w=a;b(),w?.unsubscribe()};return Qe((w,C)=>{c++,!p&&!d&&_();let D=l=l??n();C.add(()=>{c--,c===0&&!p&&!d&&(s=iD(y,r))}),D.subscribe(C),!a&&c>0&&(a=new js({next:F=>D.next(F),error:F=>{p=!0,_(),s=iD(b,e,F),D.error(F)},complete:()=>{d=!0,_(),s=iD(b,i),D.complete()}}),Pt(w).subscribe(a))})(o)}}function iD(t,n,...e){if(n===!0){t();return}if(n===!1)return;let i=new js({next:()=>{i.unsubscribe(),t()}});return Pt(n(...e)).subscribe(i)}function fd(t,n,e){let i,r=!1;return t&&typeof t=="object"?{bufferSize:i=1/0,windowTime:n=1/0,refCount:r=!1,scheduler:e}=t:i=t??1/0,Vl({connector:()=>new Wa(i,n,e),resetOnError:!0,resetOnComplete:!1,resetOnRefCountZero:r})}function Qa(t){return ce((n,e)=>t<=e)}function Ue(...t){let n=Ga(t);return Qe((e,i)=>{(n?bo(t,e,n):bo(t,e)).subscribe(i)})}function je(t,n){return Qe((e,i)=>{let r=null,o=0,a=!1,s=()=>a&&!r&&i.complete();e.subscribe($e(i,l=>{r?.unsubscribe();let c=0,d=o++;Pt(t(l,d)).subscribe(r=$e(i,p=>i.next(n?n(l,p,d,c++):p),()=>{r=null,s()}))},()=>{a=!0,s()}))})}function we(t){return Qe((n,e)=>{Pt(t).subscribe($e(e,()=>e.complete(),ud)),!e.closed&&n.subscribe(e)})}function nD(t,n=!1){return Qe((e,i)=>{let r=0;e.subscribe($e(i,o=>{let a=t(o,r++);(a||n)&&i.next(o),!a&&i.complete()}))})}function He(t,n,e){let i=Ke(t)||n||e?{next:t,error:n,complete:e}:t;return i?Qe((r,o)=>{var a;(a=i.subscribe)===null||a===void 0||a.call(i);let s=!0;r.subscribe($e(o,l=>{var c;(c=i.next)===null||c===void 0||c.call(i,l),o.next(l)},()=>{var l;s=!1,(l=i.complete)===null||l===void 0||l.call(i),o.complete()},l=>{var c;s=!1,(c=i.error)===null||c===void 0||c.call(i,l),o.error(l)},()=>{var l,c;s&&((l=i.unsubscribe)===null||l===void 0||l.call(i)),(c=i.finalize)===null||c===void 0||c.call(i)}))}):Ir}function rO(t){let n=Xe(null);try{return t()}finally{Xe(n)}}var oO=Ee(k({},ad),{consumerIsAlwaysLive:!0,consumerAllowSignalWrites:!0,dirty:!0,kind:"effect"});function aO(t){if(t.dirty=!1,t.version>0&&!ld(t))return;t.version++;let n=Il(t);try{t.cleanup(),t.fn()}finally{sd(t,n)}}var Bl=class{full;major;minor;patch;constructor(n){this.full=n;let e=n.split(".");this.major=e[0],this.minor=e[1],this.patch=e.slice(2).join(".")}},Tp=new Bl("20.3.16");var _b="https://angular.dev/best-practices/security#preventing-cross-site-scripting-xss",me=class extends Error{code;constructor(n,e){super(Vo(n,e)),this.code=n}};function E$(t){return`NG0${Math.abs(t)}`}function Vo(t,n){return`${E$(t)}${n?": "+n:""}`}var Bo=globalThis;function ni(t){for(let n in t)if(t[n]===ni)return n;throw Error("")}function cO(t,n){for(let e in n)n.hasOwnProperty(e)&&!t.hasOwnProperty(e)&&(t[e]=n[e])}function Ws(t){if(typeof t=="string")return t;if(Array.isArray(t))return`[${t.map(Ws).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 i=e.indexOf(` -`);return i>=0?e.slice(0,i):e}function bb(t,n){return t?n?`${t} ${n}`:t:n||""}var M$=ni({__forward_ref__:ni});function ri(t){return t.__forward_ref__=ri,t.toString=function(){return Ws(this())},t}function vn(t){return fD(t)?t():t}function fD(t){return typeof t=="function"&&t.hasOwnProperty(M$)&&t.__forward_ref__===ri}function R(t){return{token:t.token,providedIn:t.providedIn||null,factory:t.factory,value:void 0}}function J(t){return{providers:t.providers||[],imports:t.imports||[]}}function Ip(t){return S$(t,vb)}function gD(t){return Ip(t)!==null}function S$(t,n){return t.hasOwnProperty(n)&&t[n]||null}function k$(t){let n=t?.[vb]??null;return n||null}function oD(t){return t&&t.hasOwnProperty(fb)?t[fb]:null}var vb=ni({\u0275prov:ni}),fb=ni({\u0275inj:ni}),O=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=R({token:this,providedIn:e.providedIn||"root",factory:e.factory}))}get multi(){return this}toString(){return`InjectionToken ${this._desc}`}};function _D(t){return t&&!!t.\u0275providers}var bD=ni({\u0275cmp:ni}),vD=ni({\u0275dir:ni}),yD=ni({\u0275pipe:ni}),xD=ni({\u0275mod:ni}),Mp=ni({\u0275fac:ni}),yd=ni({__NG_ELEMENT_ID__:ni}),sO=ni({__NG_ENV_ID__:ni});function jo(t){return typeof t=="string"?t:t==null?"":String(t)}function dO(t){return typeof t=="function"?t.name||t.toString():typeof t=="object"&&t!=null&&typeof t.type=="function"?t.type.name||t.type.toString():jo(t)}var uO=ni({ngErrorCode:ni}),T$=ni({ngErrorMessage:ni}),I$=ni({ngTokenPath:ni});function CD(t,n){return mO("",-200,n)}function yb(t,n){throw new me(-201,!1)}function mO(t,n,e){let i=new me(n,t);return i[uO]=n,i[T$]=t,e&&(i[I$]=e),i}function A$(t){return t[uO]}var aD;function hO(){return aD}function Ar(t){let n=aD;return aD=t,n}function wD(t,n,e){let i=Ip(t);if(i&&i.providedIn=="root")return i.value===void 0?i.value=i.factory():i.value;if(e&8)return null;if(n!==void 0)return n;yb(t,"Injector")}var O$={},gd=O$,sD="__NG_DI_FLAG__",lD=class{injector;constructor(n){this.injector=n}retrieve(n,e){let i=_d(e)||0;try{return this.injector.get(n,i&8?null:gd,i)}catch(r){if(ju(r))return r;throw r}}};function R$(t,n=0){let e=T_();if(e===void 0)throw new me(-203,!1);if(e===null)return wD(t,void 0,n);{let i=P$(n),r=e.retrieve(t,i);if(ju(r)){if(i.optional)return null;throw r}return r}}function fe(t,n=0){return(hO()||R$)(vn(t),n)}function u(t,n){return fe(t,_d(n))}function _d(t){return typeof t>"u"||typeof t=="number"?t:0|(t.optional&&8)|(t.host&&1)|(t.self&&2)|(t.skipSelf&&4)}function P$(t){return{optional:!!(t&8),host:!!(t&1),self:!!(t&2),skipSelf:!!(t&4)}}function cD(t){let n=[];for(let e=0;eArray.isArray(e)?xb(e,n):n(e))}function ED(t,n,e){n>=t.length?t.push(e):t.splice(n,0,e)}function Ap(t,n){return n>=t.length-1?t.pop():t.splice(n,1)[0]}function gO(t,n){let e=[];for(let i=0;in;){let o=r-2;t[r]=t[o],r--}t[n]=e,t[n+1]=i}}function Op(t,n,e){let i=em(t,n);return i>=0?t[i|1]=e:(i=~i,_O(t,i,n,e)),i}function Cb(t,n){let e=em(t,n);if(e>=0)return t[e|1]}function em(t,n){return N$(t,n,1)}function N$(t,n,e){let i=0,r=t.length>>e;for(;r!==i;){let o=i+(r-i>>1),a=t[o<n?r=o:i=o+1}return~(r<{e.push(a)};return xb(n,a=>{let s=a;gb(s,o,[],i)&&(r||=[],r.push(s))}),r!==void 0&&yO(r,o),e}function yO(t,n){for(let e=0;e{n(o,i)})}}function gb(t,n,e,i){if(t=vn(t),!t)return!1;let r=null,o=oD(t),a=!o&&Za(t);if(!o&&!a){let l=t.ngModule;if(o=oD(l),o)r=l;else return!1}else{if(a&&!a.standalone)return!1;r=t}let s=i.has(r);if(a){if(s)return!1;if(i.add(r),a.dependencies){let l=typeof a.dependencies=="function"?a.dependencies():a.dependencies;for(let c of l)gb(c,n,e,i)}}else if(o){if(o.imports!=null&&!s){i.add(r);let c;try{xb(o.imports,d=>{gb(d,n,e,i)&&(c||=[],c.push(d))})}finally{}c!==void 0&&yO(c,n)}if(!s){let c=jl(r)||(()=>new r);n({provide:r,useFactory:c,deps:hr},r),n({provide:SD,useValue:r,multi:!0},r),n({provide:Ka,useValue:()=>fe(r),multi:!0},r)}let l=o.providers;if(l!=null&&!s){let c=t;ID(l,d=>{n(d,c)})}}else return!1;return r!==t&&t.providers!==void 0}function ID(t,n){for(let e of t)_D(e)&&(e=e.\u0275providers),Array.isArray(e)?ID(e,n):n(e)}var L$=ni({provide:String,useValue:ni});function xO(t){return t!==null&&typeof t=="object"&&L$ in t}function V$(t){return!!(t&&t.useExisting)}function B$(t){return!!(t&&t.useFactory)}function bd(t){return typeof t=="function"}function CO(t){return!!t.useClass}var Rp=new O(""),pb={},lO={},rD;function tm(){return rD===void 0&&(rD=new Sp),rD}var Kt=class{},vd=class extends Kt{parent;source;scopes;records=new Map;_ngOnDestroyHooks=new Set;_onDestroyHooks=[];get destroyed(){return this._destroyed}_destroyed=!1;injectorDefTypes;constructor(n,e,i,r){super(),this.parent=e,this.source=i,this.scopes=r,uD(n,a=>this.processProvider(a)),this.records.set(MD,Ju(void 0,this)),r.has("environment")&&this.records.set(Kt,Ju(void 0,this));let o=this.records.get(Rp);o!=null&&typeof o.value=="string"&&this.scopes.add(o.value),this.injectorDefTypes=new Set(this.get(SD,hr,{self:!0}))}retrieve(n,e){let i=_d(e)||0;try{return this.get(n,gd,i)}catch(r){if(ju(r))return r;throw r}}destroy(){Ep(this),this._destroyed=!0;let n=Xe(null);try{for(let i of this._ngOnDestroyHooks)i.ngOnDestroy();let e=this._onDestroyHooks;this._onDestroyHooks=[];for(let i of e)i()}finally{this.records.clear(),this._ngOnDestroyHooks.clear(),this.injectorDefTypes.clear(),Xe(n)}}onDestroy(n){return Ep(this),this._onDestroyHooks.push(n),()=>this.removeOnDestroy(n)}runInContext(n){Ep(this);let e=$a(this),i=Ar(void 0),r;try{return n()}finally{$a(e),Ar(i)}}get(n,e=gd,i){if(Ep(this),n.hasOwnProperty(sO))return n[sO](this);let r=_d(i),o,a=$a(this),s=Ar(void 0);try{if(!(r&4)){let c=this.records.get(n);if(c===void 0){let d=$$(n)&&Ip(n);d&&this.injectableDefInScope(d)?c=Ju(dD(n),pb):c=null,this.records.set(n,c)}if(c!=null)return this.hydrate(n,c,r)}let l=r&2?tm():this.parent;return e=r&8&&e===gd?null:e,l.get(n,e)}catch(l){let c=A$(l);throw c===-200||c===-201?new me(c,null):l}finally{Ar(s),$a(a)}}resolveInjectorInitializers(){let n=Xe(null),e=$a(this),i=Ar(void 0),r;try{let o=this.get(Ka,hr,{self:!0});for(let a of o)a()}finally{$a(e),Ar(i),Xe(n)}}toString(){let n=[],e=this.records;for(let i of e.keys())n.push(Ws(i));return`R3Injector[${n.join(", ")}]`}processProvider(n){n=vn(n);let e=bd(n)?n:vn(n&&n.provide),i=H$(n);if(!bd(n)&&n.multi===!0){let r=this.records.get(e);r||(r=Ju(void 0,pb,!0),r.factory=()=>cD(r.multi),this.records.set(e,r)),e=n,r.multi.push(n)}this.records.set(e,i)}hydrate(n,e,i){let r=Xe(null);try{if(e.value===lO)throw CD(Ws(n));return e.value===pb&&(e.value=lO,e.value=e.factory(void 0,i)),typeof e.value=="object"&&e.value&&U$(e.value)&&this._ngOnDestroyHooks.add(e.value),e.value}finally{Xe(r)}}injectableDefInScope(n){if(!n.providedIn)return!1;let e=vn(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 dD(t){let n=Ip(t),e=n!==null?n.factory:jl(t);if(e!==null)return e;if(t instanceof O)throw new me(204,!1);if(t instanceof Function)return j$(t);throw new me(204,!1)}function j$(t){if(t.length>0)throw new me(204,!1);let e=k$(t);return e!==null?()=>e.factory(t):()=>new t}function H$(t){if(xO(t))return Ju(void 0,t.useValue);{let n=AD(t);return Ju(n,pb)}}function AD(t,n,e){let i;if(bd(t)){let r=vn(t);return jl(r)||dD(r)}else if(xO(t))i=()=>vn(t.useValue);else if(B$(t))i=()=>t.useFactory(...cD(t.deps||[]));else if(V$(t))i=(r,o)=>fe(vn(t.useExisting),o!==void 0&&o&8?8:void 0);else{let r=vn(t&&(t.useClass||t.provide));if(z$(t))i=()=>new r(...cD(t.deps));else return jl(r)||dD(r)}return i}function Ep(t){if(t.destroyed)throw new me(205,!1)}function Ju(t,n,e=!1){return{factory:t,value:n,multi:e?[]:void 0}}function z$(t){return!!t.deps}function U$(t){return t!==null&&typeof t=="object"&&typeof t.ngOnDestroy=="function"}function $$(t){return typeof t=="function"||typeof t=="object"&&t.ngMetadataName==="InjectionToken"}function uD(t,n){for(let e of t)Array.isArray(e)?uD(e,n):e&&_D(e)?uD(e.\u0275providers,n):n(e)}function On(t,n){let e;t instanceof vd?(Ep(t),e=t):e=new lD(t);let i,r=$a(e),o=Ar(void 0);try{return n()}finally{$a(r),Ar(o)}}function wO(){return hO()!==void 0||T_()!=null}var ba=0,We=1,et=2,yn=3,Ho=4,Or=5,xd=6,im=7,Zi=8,Gs=9,Xa=10,si=11,nm=12,OD=13,Cd=14,pr=15,zl=16,wd=17,Ja=18,Pp=19,RD=20,$s=21,Eb=22,qs=23,vo=24,Dd=25,Ed=26,hi=27,DO=1,PD=6,Ul=7,Fp=8,Md=9,Xi=10;function es(t){return Array.isArray(t)&&typeof t[DO]=="object"}function va(t){return Array.isArray(t)&&t[DO]===!0}function FD(t){return(t.flags&4)!==0}function Ys(t){return t.componentOffset>-1}function rm(t){return(t.flags&1)===1}function ya(t){return!!t.template}function om(t){return(t[et]&512)!==0}function Sd(t){return(t[et]&256)===256}var ND="svg",EO="math";function zo(t){for(;Array.isArray(t);)t=t[ba];return t}function LD(t,n){return zo(n[t])}function Uo(t,n){return zo(n[t.index])}function Np(t,n){return t.data[n]}function am(t,n){return t[n]}function VD(t,n,e,i){e>=t.data.length&&(t.data[e]=null,t.blueprint[e]=null),n[e]=i}function $o(t,n){let e=n[t];return es(e)?e:e[ba]}function MO(t){return(t[et]&4)===4}function Mb(t){return(t[et]&128)===128}function SO(t){return va(t[yn])}function yo(t,n){return n==null?null:t[n]}function BD(t){t[wd]=0}function jD(t){t[et]&1024||(t[et]|=1024,Mb(t)&&$l(t))}function kO(t,n){for(;t>0;)n=n[Cd],t--;return n}function Lp(t){return!!(t[et]&9216||t[vo]?.dirty)}function Sb(t){t[Xa].changeDetectionScheduler?.notify(8),t[et]&64&&(t[et]|=1024),Lp(t)&&$l(t)}function $l(t){t[Xa].changeDetectionScheduler?.notify(0);let n=Hl(t);for(;n!==null&&!(n[et]&8192||(n[et]|=8192,!Mb(n)));)n=Hl(n)}function HD(t,n){if(Sd(t))throw new me(911,!1);t[$s]===null&&(t[$s]=[]),t[$s].push(n)}function TO(t,n){if(t[$s]===null)return;let e=t[$s].indexOf(n);e!==-1&&t[$s].splice(e,1)}function Hl(t){let n=t[yn];return va(n)?n[yn]:n}function zD(t){return t[im]??=[]}function UD(t){return t.cleanup??=[]}function IO(t,n,e,i){let r=zD(n);r.push(e),t.firstCreatePass&&UD(t).push(i,r.length-1)}var ft={lFrame:HO(null),bindingsEnabled:!0,skipHydrationRootTNode:null};var mD=!1;function AO(){return ft.lFrame.elementDepthCount}function OO(){ft.lFrame.elementDepthCount++}function $D(){ft.lFrame.elementDepthCount--}function kb(){return ft.bindingsEnabled}function WD(){return ft.skipHydrationRootTNode!==null}function GD(t){return ft.skipHydrationRootTNode===t}function qD(){ft.skipHydrationRootTNode=null}function Ne(){return ft.lFrame.lView}function bi(){return ft.lFrame.tView}function T(t){return ft.lFrame.contextLView=t,t[Zi]}function I(t){return ft.lFrame.contextLView=null,t}function on(){let t=YD();for(;t!==null&&t.type===64;)t=t.parent;return t}function YD(){return ft.lFrame.currentTNode}function RO(){let t=ft.lFrame,n=t.currentTNode;return t.isParent?n:n.parent}function sm(t,n){let e=ft.lFrame;e.currentTNode=t,e.isParent=n}function QD(){return ft.lFrame.isParent}function KD(){ft.lFrame.isParent=!1}function PO(){return ft.lFrame.contextLView}function ZD(){return mD}function lm(t){let n=mD;return mD=t,n}function ts(){let t=ft.lFrame,n=t.bindingRootIndex;return n===-1&&(n=t.bindingRootIndex=t.tView.bindingStartIndex),n}function XD(){return ft.lFrame.bindingIndex}function FO(t){return ft.lFrame.bindingIndex=t}function is(){return ft.lFrame.bindingIndex++}function Vp(t){let n=ft.lFrame,e=n.bindingIndex;return n.bindingIndex=n.bindingIndex+t,e}function NO(){return ft.lFrame.inI18n}function LO(t,n){let e=ft.lFrame;e.bindingIndex=e.bindingRootIndex=t,Tb(n)}function VO(){return ft.lFrame.currentDirectiveIndex}function Tb(t){ft.lFrame.currentDirectiveIndex=t}function BO(t){let n=ft.lFrame.currentDirectiveIndex;return n===-1?null:t[n]}function Ib(){return ft.lFrame.currentQueryIndex}function Bp(t){ft.lFrame.currentQueryIndex=t}function W$(t){let n=t[We];return n.type===2?n.declTNode:n.type===1?t[Or]:null}function JD(t,n,e){if(e&4){let r=n,o=t;for(;r=r.parent,r===null&&!(e&1);)if(r=W$(o),r===null||(o=o[Cd],r.type&10))break;if(r===null)return!1;n=r,t=o}let i=ft.lFrame=jO();return i.currentTNode=n,i.lView=t,!0}function Ab(t){let n=jO(),e=t[We];ft.lFrame=n,n.currentTNode=e.firstChild,n.lView=t,n.tView=e,n.contextLView=t,n.bindingIndex=e.bindingStartIndex,n.inI18n=!1}function jO(){let t=ft.lFrame,n=t===null?null:t.child;return n===null?HO(t):n}function HO(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 zO(){let t=ft.lFrame;return ft.lFrame=t.parent,t.currentTNode=null,t.lView=null,t}var eE=zO;function Ob(){let t=zO();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 UO(t){return(ft.lFrame.contextLView=kO(t,ft.lFrame.contextLView))[Zi]}function xa(){return ft.lFrame.selectedIndex}function Wl(t){ft.lFrame.selectedIndex=t}function cm(){let t=ft.lFrame;return Np(t.tView,t.selectedIndex)}function Zt(){ft.lFrame.currentNamespace=ND}function Wo(){G$()}function G$(){ft.lFrame.currentNamespace=null}function $O(){return ft.lFrame.currentNamespace}var WO=!0;function Rb(){return WO}function jp(t){WO=t}function hD(t,n=null,e=null,i){let r=tE(t,n,e,i);return r.resolveInjectorInitializers(),r}function tE(t,n=null,e=null,i,r=new Set){let o=[e||hr,Db(t)];return i=i||(typeof t=="object"?void 0:Ws(t)),new vd(o,n||tm(),i||null,r)}var de=class t{static THROW_IF_NOT_FOUND=gd;static NULL=new Sp;static create(n,e){if(Array.isArray(n))return hD({name:""},e,n,"");{let i=n.name??"";return hD({name:i},n.parent,n.providers,i)}}static \u0275prov=R({token:t,providedIn:"any",factory:()=>fe(MD)});static __NG_ELEMENT_ID__=-1},_e=new O(""),an=(()=>{class t{static __NG_ELEMENT_ID__=q$;static __NG_ENV_ID__=e=>e}return t})(),kp=class extends an{_lView;constructor(n){super(),this._lView=n}get destroyed(){return Sd(this._lView)}onDestroy(n){let e=this._lView;return HD(e,n),()=>TO(e,n)}};function q$(){return new kp(Ne())}var An=class{_console=console;handleError(n){this._console.error("ERROR",n)}},fr=new O("",{providedIn:"root",factory:()=>{let t=u(Kt),n;return e=>{t.destroyed&&!n?setTimeout(()=>{throw e}):(n??=t.get(An),n.handleError(e))}}}),GO={provide:Ka,useValue:()=>void u(An),multi:!0},Y$=new O("",{providedIn:"root",factory:()=>{let t=u(_e).defaultView;if(!t)return;let n=u(fr),e=o=>{n(o.reason),o.preventDefault()},i=o=>{o.error?n(o.error):n(new Error(o.message,{cause:o})),o.preventDefault()},r=()=>{t.addEventListener("unhandledrejection",e),t.addEventListener("error",i)};typeof Zone<"u"?Zone.root.run(r):r(),u(an).onDestroy(()=>{t.removeEventListener("error",i),t.removeEventListener("unhandledrejection",e)})}});function iE(){return qr([vO(()=>void u(Y$))])}function ns(t){return typeof t=="function"&&t[un]!==void 0}function he(t,n){let[e,i,r]=Lw(t,n?.equal),o=e,a=o[un];return o.set=i,o.update=r,o.asReadonly=Pb.bind(o),o}function Pb(){let t=this[un];if(t.readonlyFn===void 0){let n=()=>this();n[un]=t,t.readonlyFn=n}return t.readonlyFn}function nE(t){return ns(t)&&typeof t.set=="function"}var kd=(()=>{class t{view;node;constructor(e,i){this.view=e,this.node=i}static __NG_ELEMENT_ID__=Q$}return t})();function Q$(){return new kd(Ne(),on())}var Lo=class{},Hp=new O("",{providedIn:"root",factory:()=>!1});var rE=new O(""),oE=new O(""),rs=(()=>{class t{taskId=0;pendingTasks=new Set;destroyed=!1;pendingTask=new it(!1);get hasPendingTasks(){return this.destroyed?!1:this.pendingTask.value}get hasPendingTasksObservable(){return this.destroyed?new Fe(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),e}has(e){return this.pendingTasks.has(e)}remove(e){this.pendingTasks.delete(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=R({token:t,providedIn:"root",factory:()=>new t})}return t})(),dm=(()=>{class t{internalPendingTasks=u(rs);scheduler=u(Lo);errorHandler=u(fr);add(){let e=this.internalPendingTasks.add();return()=>{this.internalPendingTasks.has(e)&&(this.scheduler.notify(11),this.internalPendingTasks.remove(e))}}run(e){let i=this.add();e().catch(this.errorHandler).finally(i)}static \u0275prov=R({token:t,providedIn:"root",factory:()=>new t})}return t})();function Td(...t){}var zp=(()=>{class t{static \u0275prov=R({token:t,providedIn:"root",factory:()=>new pD})}return t})(),pD=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,i=this.queues.get(e);i.has(n)&&(i.delete(n),n.dirty&&this.dirtyEffectCount--)}enqueue(n){let e=n.zone;this.queues.has(e)||this.queues.set(e,new Set);let i=this.queues.get(e);i.has(n)||i.add(n)}flush(){for(;this.dirtyEffectCount>0;){let n=!1;for(let[e,i]of this.queues)e===null?n||=this.flushQueue(i):n||=e.run(()=>this.flushQueue(i));n||(this.dirtyEffectCount=0)}}flushQueue(n){let e=!1;for(let i of n)i.dirty&&(this.dirtyEffectCount--,e=!0,i.run());return e}};function vm(t){return{toString:t}.toString()}var Fb="__parameters__";function tW(t){return function(...e){if(t){let i=t(...e);for(let r in i)this[r]=i[r]}}}function OR(t,n,e){return vm(()=>{let i=tW(n);function r(...o){if(this instanceof r)return i.apply(this,o),this;let a=new r(...o);return s.annotation=a,s;function s(l,c,d){let p=l.hasOwnProperty(Fb)?l[Fb]:Object.defineProperty(l,Fb,{value:[]})[Fb];for(;p.length<=d;)p.push(null);return(p[d]=p[d]||[]).push(a),l}}return r.prototype.ngMetadataName=t,r.annotationCls=r,r})}var ls=DD(OR("Optional"),8);var Yl=DD(OR("SkipSelf"),4);var Pd=Function;function iW(t){return typeof t=="function"}var Gb=class{previousValue;currentValue;firstChange;constructor(n,e,i){this.previousValue=n,this.currentValue=e,this.firstChange=i}isFirstChange(){return this.firstChange}};function RR(t,n,e,i){n!==null?n.applyValueToInputSignal(n,i):t[e]=i}var Ae=(()=>{let t=()=>PR;return t.ngInherit=!0,t})();function PR(t){return t.type.prototype.ngOnChanges&&(t.setInput=rW),nW}function nW(){let t=NR(this),n=t?.current;if(n){let e=t.previous;if(e===_a)t.previous=n;else for(let i in n)e[i]=n[i];t.current=null,this.ngOnChanges(n)}}function rW(t,n,e,i,r){let o=this.declaredInputs[i],a=NR(t)||oW(t,{previous:_a,current:null}),s=a.current||(a.current={}),l=a.previous,c=l[o];s[o]=new Gb(c&&c.currentValue,e,l===_a),RR(t,n,r,e)}var FR="__ngSimpleChanges__";function NR(t){return t[FR]||null}function oW(t,n){return t[FR]=n}var qO=[];var li=function(t,n=null,e){for(let i=0;i=i)break}else n[l]<0&&(t[wd]+=65536),(s>14>16&&(t[et]&3)===n&&(t[et]+=16384,YO(s,o)):YO(s,o)}var mm=-1,Ad=class{factory;name;injectImpl;resolving=!1;canSeeViewProviders;multi;componentProviders;index;providerFactory;constructor(n,e,i,r){this.factory=n,this.name=r,this.canSeeViewProviders=e,this.injectImpl=i}};function lW(t){return(t.flags&8)!==0}function cW(t){return(t.flags&16)!==0}function dW(t,n,e){let i=0;for(;in){a=o-1;break}}}for(;o>16}function Yb(t,n){let e=mW(t),i=n;for(;e>0;)i=i[Cd],e--;return i}var _E=!0;function Qb(t){let n=_E;return _E=t,n}var hW=256,HR=hW-1,zR=5,pW=0,os={};function fW(t,n,e){let i;typeof e=="string"?i=e.charCodeAt(0)||0:e.hasOwnProperty(yd)&&(i=e[yd]),i==null&&(i=e[yd]=pW++);let r=i&HR,o=1<>zR)]|=o}function Kb(t,n){let e=UR(t,n);if(e!==-1)return e;let i=n[We];i.firstCreatePass&&(t.injectorIndex=n.length,sE(i.data,t),sE(n,null),sE(i.blueprint,null));let r=i1(t,n),o=t.injectorIndex;if(jR(r)){let a=qb(r),s=Yb(r,n),l=s[We].data;for(let c=0;c<8;c++)n[o+c]=s[a+c]|l[a+c]}return n[o+8]=r,o}function sE(t,n){t.push(0,0,0,0,0,0,0,0,n)}function UR(t,n){return t.injectorIndex===-1||t.parent&&t.parent.injectorIndex===t.injectorIndex||n[t.injectorIndex+8]===null?-1:t.injectorIndex}function i1(t,n){if(t.parent&&t.parent.injectorIndex!==-1)return t.parent.injectorIndex;let e=0,i=null,r=n;for(;r!==null;){if(i=YR(r),i===null)return mm;if(e++,r=r[Cd],i.injectorIndex!==-1)return i.injectorIndex|e<<16}return mm}function bE(t,n,e){fW(t,n,e)}function gW(t,n){if(n==="class")return t.classes;if(n==="style")return t.styles;let e=t.attrs;if(e){let i=e.length,r=0;for(;r>20,p=i?s:s+d,_=r?s+d:c;for(let b=p;b<_;b++){let y=a[b];if(b=l&&y.type===e)return b}if(r){let b=a[l];if(b&&ya(b)&&b.type===e)return l}return null}function Wp(t,n,e,i,r){let o=t[e],a=n.data;if(o instanceof Ad){let s=o;if(s.resolving){let b=dO(a[e]);throw CD(b)}let l=Qb(s.canSeeViewProviders);s.resolving=!0;let c=a[e].type||a[e],d,p=s.injectImpl?Ar(s.injectImpl):null,_=JD(t,i,0);try{o=t[e]=s.factory(void 0,r,a,t,i),n.firstCreatePass&&e>=i.directiveStart&&aW(e,a[e],n)}finally{p!==null&&Ar(p),Qb(l),s.resolving=!1,eE()}}return o}function bW(t){if(typeof t=="string")return t.charCodeAt(0)||0;let n=t.hasOwnProperty(yd)?t[yd]:void 0;return typeof n=="number"?n>=0?n&HR:vW:n}function KO(t,n,e){let i=1<>zR)]&i)}function ZO(t,n){return!(t&2)&&!(t&1&&n)}var Id=class{_tNode;_lView;constructor(n,e){this._tNode=n,this._lView=e}get(n,e,i){return GR(this._tNode,this._lView,n,_d(i),e)}};function vW(){return new Id(on(),Ne())}function ge(t){return vm(()=>{let n=t.prototype.constructor,e=n[Mp]||vE(n),i=Object.prototype,r=Object.getPrototypeOf(t.prototype).constructor;for(;r&&r!==i;){let o=r[Mp]||vE(r);if(o&&o!==e)return o;r=Object.getPrototypeOf(r)}return o=>new o})}function vE(t){return fD(t)?()=>{let n=vE(vn(t));return n&&n()}:jl(t)}function yW(t,n,e,i,r){let o=t,a=n;for(;o!==null&&a!==null&&a[et]&2048&&!om(a);){let s=qR(o,a,e,i|2,os);if(s!==os)return s;let l=o.parent;if(!l){let c=a[RD];if(c){let d=c.get(e,os,i);if(d!==os)return d}l=YR(a),a=a[Cd]}o=l}return r}function YR(t){let n=t[We],e=n.type;return e===2?n.declTNode:e===1?t[Or]:null}function Jp(t){return gW(on(),t)}function xW(){return ym(on(),Ne())}function ym(t,n){return new Y(Uo(t,n))}var Y=(()=>{class t{nativeElement;constructor(e){this.nativeElement=e}static __NG_ELEMENT_ID__=xW}return t})();function QR(t){return t instanceof Y?t.nativeElement:t}function CW(){return this._results[Symbol.iterator]()}var gr=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 z}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 i=fO(n);(this._changesDetected=!pO(this._results,i,e))&&(this._results=i,this.length=i.length,this.last=i[this.length-1],this.first=i[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]=CW};function KR(t){return(t.flags&128)===128}var n1=(function(t){return t[t.OnPush=0]="OnPush",t[t.Default=1]="Default",t})(n1||{}),ZR=new Map,wW=0;function DW(){return wW++}function EW(t){ZR.set(t[Pp],t)}function yE(t){ZR.delete(t[Pp])}var XO="__ngContext__";function pm(t,n){es(n)?(t[XO]=n[Pp],EW(n)):t[XO]=n}function XR(t){return eP(t[nm])}function JR(t){return eP(t[Ho])}function eP(t){for(;t!==null&&!va(t);)t=t[Ho];return t}var xE;function r1(t){xE=t}function o1(){if(xE!==void 0)return xE;if(typeof document<"u")return document;throw new me(210,!1)}var Ql=new O("",{providedIn:"root",factory:()=>MW}),MW="ng",d0=new O(""),Zs=new O("",{providedIn:"platform",factory:()=>"unknown"});var ef=new O(""),xm=new O("",{providedIn:"root",factory:()=>o1().body?.querySelector("[ngCspNonce]")?.getAttribute("ngCspNonce")||null});var SW="h",kW="b";var tP="r";var iP="di";var nP=!1,rP=new O("",{providedIn:"root",factory:()=>nP});var u0=new O("");var TW=(t,n,e,i)=>{};function IW(t,n,e,i){TW(t,n,e,i)}function m0(t){return(t.flags&32)===32}var AW=()=>null;function oP(t,n,e=!1){return AW(t,n,e)}function aP(t,n){let e=t.contentQueries;if(e!==null){let i=Xe(null);try{for(let r=0;rt,createScript:t=>t,createScriptURL:t=>t})}catch{}return Nb}function h0(t){return OW()?.createHTML(t)||t}var Lb;function sP(){if(Lb===void 0&&(Lb=null,Bo.trustedTypes))try{Lb=Bo.trustedTypes.createPolicy("angular#unsafe-bypass",{createHTML:t=>t,createScript:t=>t,createScriptURL:t=>t})}catch{}return Lb}function JO(t){return sP()?.createHTML(t)||t}function eR(t){return sP()?.createScriptURL(t)||t}var Ks=class{changingThisBreaksApplicationSecurity;constructor(n){this.changingThisBreaksApplicationSecurity=n}toString(){return`SafeValue must use [property]=binding: ${this.changingThisBreaksApplicationSecurity} (see ${_b})`}},wE=class extends Ks{getTypeName(){return"HTML"}},DE=class extends Ks{getTypeName(){return"Style"}},EE=class extends Ks{getTypeName(){return"Script"}},ME=class extends Ks{getTypeName(){return"URL"}},SE=class extends Ks{getTypeName(){return"ResourceURL"}};function Yr(t){return t instanceof Ks?t.changingThisBreaksApplicationSecurity:t}function cs(t,n){let e=lP(t);if(e!=null&&e!==n){if(e==="ResourceURL"&&n==="URL")return!0;throw new Error(`Required a safe ${n}, got a ${e} (see ${_b})`)}return e===n}function lP(t){return t instanceof Ks&&t.getTypeName()||null}function s1(t){return new wE(t)}function l1(t){return new DE(t)}function c1(t){return new EE(t)}function d1(t){return new ME(t)}function u1(t){return new SE(t)}function RW(t){let n=new TE(t);return PW()?new kE(n):n}var kE=class{inertDocumentHelper;constructor(n){this.inertDocumentHelper=n}getInertBodyElement(n){n=""+n;try{let e=new window.DOMParser().parseFromString(h0(n),"text/html").body;return e===null?this.inertDocumentHelper.getInertBodyElement(n):(e.firstChild?.remove(),e)}catch{return null}}},TE=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=h0(n),e}};function PW(){try{return!!new window.DOMParser().parseFromString(h0(""),"text/html")}catch{return!1}}var FW=/^(?!javascript:)(?:[a-z0-9+.-]+:|[^&:\/?#]*(?:[\/?#]|$))/i;function tf(t){return t=String(t),t.match(FW)?t:"unsafe:"+t}function Xs(t){let n={};for(let e of t.split(","))n[e]=!0;return n}function nf(...t){let n={};for(let e of t)for(let i in e)e.hasOwnProperty(i)&&(n[i]=!0);return n}var cP=Xs("area,br,col,hr,img,wbr"),dP=Xs("colgroup,dd,dt,li,p,tbody,td,tfoot,th,thead,tr"),uP=Xs("rp,rt"),NW=nf(uP,dP),LW=nf(dP,Xs("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")),VW=nf(uP,Xs("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")),tR=nf(cP,LW,VW,NW),mP=Xs("background,cite,href,itemtype,longdesc,poster,src,xlink:href"),BW=Xs("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"),jW=Xs("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"),HW=nf(mP,BW,jW),zW=Xs("script,style,template"),IE=class{sanitizedSomething=!1;buf=[];sanitizeChildren(n){let e=n.firstChild,i=!0,r=[];for(;e;){if(e.nodeType===Node.ELEMENT_NODE?i=this.startElement(e):e.nodeType===Node.TEXT_NODE?this.chars(e.nodeValue):this.sanitizedSomething=!0,i&&e.firstChild){r.push(e),e=WW(e);continue}for(;e;){e.nodeType===Node.ELEMENT_NODE&&this.endElement(e);let o=$W(e);if(o){e=o;break}e=r.pop()}}return this.buf.join("")}startElement(n){let e=iR(n).toLowerCase();if(!tR.hasOwnProperty(e))return this.sanitizedSomething=!0,!zW.hasOwnProperty(e);this.buf.push("<"),this.buf.push(e);let i=n.attributes;for(let r=0;r"),!0}endElement(n){let e=iR(n).toLowerCase();tR.hasOwnProperty(e)&&!cP.hasOwnProperty(e)&&(this.buf.push(""))}chars(n){this.buf.push(nR(n))}};function UW(t,n){return(t.compareDocumentPosition(n)&Node.DOCUMENT_POSITION_CONTAINED_BY)!==Node.DOCUMENT_POSITION_CONTAINED_BY}function $W(t){let n=t.nextSibling;if(n&&t!==n.previousSibling)throw hP(n);return n}function WW(t){let n=t.firstChild;if(n&&UW(t,n))throw hP(n);return n}function iR(t){let n=t.nodeName;return typeof n=="string"?n:"FORM"}function hP(t){return new Error(`Failed to sanitize html because the element is clobbered: ${t.outerHTML}`)}var GW=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,qW=/([^\#-~ |!])/g;function nR(t){return t.replace(/&/g,"&").replace(GW,function(n){let e=n.charCodeAt(0),i=n.charCodeAt(1);return"&#"+((e-55296)*1024+(i-56320)+65536)+";"}).replace(qW,function(n){return"&#"+n.charCodeAt(0)+";"}).replace(//g,">")}var Vb;function p0(t,n){let e=null;try{Vb=Vb||RW(t);let i=n?String(n):"";e=Vb.getInertBodyElement(i);let r=5,o=i;do{if(r===0)throw new Error("Failed to sanitize html because the input is unstable");r--,i=o,o=e.innerHTML,e=Vb.getInertBodyElement(i)}while(i!==o);let s=new IE().sanitizeChildren(rR(e)||e);return h0(s)}finally{if(e){let i=rR(e)||e;for(;i.firstChild;)i.firstChild.remove()}}}function rR(t){return"content"in t&&YW(t)?t.content:null}function YW(t){return t.nodeType===Node.ELEMENT_NODE&&t.nodeName==="TEMPLATE"}var QW=/^>|^->||--!>|)/g,ZW="\u200B$1\u200B";function XW(t){return t.replace(QW,n=>n.replace(KW,ZW))}function JW(t,n){return t.createText(n)}function e7(t,n,e){t.setValue(n,e)}function t7(t,n){return t.createComment(XW(n))}function pP(t,n,e){return t.createElement(n,e)}function Zb(t,n,e,i,r){t.insertBefore(n,e,i,r)}function fP(t,n,e){t.appendChild(n,e)}function oR(t,n,e,i,r){i!==null?Zb(t,n,e,i,r):fP(t,n,e)}function gP(t,n,e,i){t.removeChild(null,n,e,i)}function i7(t,n,e){t.setAttribute(n,"style",e)}function n7(t,n,e){e===""?t.removeAttribute(n,"class"):t.setAttribute(n,"class",e)}function _P(t,n,e){let{mergedAttrs:i,classes:r,styles:o}=e;i!==null&&dW(t,n,i),r!==null&&n7(t,n,r),o!==null&&i7(t,n,o)}var Rn=(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})(Rn||{});function rf(t){let n=h1();return n?JO(n.sanitize(Rn.HTML,t)||""):cs(t,"HTML")?JO(Yr(t)):p0(o1(),jo(t))}function Qr(t){let n=h1();return n?n.sanitize(Rn.URL,t)||"":cs(t,"URL")?Yr(t):tf(jo(t))}function bP(t){let n=h1();if(n)return eR(n.sanitize(Rn.RESOURCE_URL,t)||"");if(cs(t,"ResourceURL"))return eR(Yr(t));throw new me(904,!1)}var r7=new Set(["embed","frame","iframe","media","script"]),o7=new Set(["base","link","script"]);function a7(t,n){return n==="src"&&r7.has(t)||n==="href"&&o7.has(t)||n==="xlink:href"&&t==="script"?bP:Qr}function m1(t,n,e){return a7(n,e)(t)}function h1(){let t=Ne();return t&&t[Xa].sanitizer}function vP(t){return t instanceof Function?t():t}function s7(t,n,e){let i=t.length;for(;;){let r=t.indexOf(n,e);if(r===-1)return r;if(r===0||t.charCodeAt(r-1)<=32){let o=n.length;if(r+o===i||t.charCodeAt(r+o)<=32)return r}e=r+1}}var yP="ng-template";function l7(t,n,e,i){let r=0;if(i){for(;r-1){let o;for(;++ro?p="":p=r[d+1].toLowerCase(),i&2&&c!==p){if(Ca(i))return!1;a=!0}}}}return Ca(i)||a}function Ca(t){return(t&1)===0}function u7(t,n,e,i){if(n===null)return-1;let r=0;if(i||!e){let o=!1;for(;r-1)for(e++;e0?'="'+s+'"':"")+"]"}else i&8?r+="."+a:i&4&&(r+=" "+a);else r!==""&&!Ca(a)&&(n+=aR(o,r),r=""),i=a,o=o||!Ca(i);e++}return r!==""&&(n+=aR(o,r)),n}function _7(t){return t.map(g7).join(",")}function b7(t){let n=[],e=[],i=1,r=2;for(;inull),a=i;if(n&&typeof n=="object"){let l=n;r=l.next?.bind(l),o=l.error?.bind(l),a=l.complete?.bind(l)}this.__isAsync&&(o=this.wrapInTimeout(o),r&&(r=this.wrapInTimeout(r)),a&&(a=this.wrapInTimeout(a)));let s=super.subscribe({next:r,error:o,complete:a});return n instanceof Te&&n.add(s),s}wrapInTimeout(n){return e=>{let i=this.pendingTasks?.add();setTimeout(()=>{try{n(e)}finally{i!==void 0&&this.pendingTasks?.remove(i)}})}}},U=OE;function MP(t){let n,e;function i(){t=Td;try{e!==void 0&&typeof cancelAnimationFrame=="function"&&cancelAnimationFrame(e),n!==void 0&&clearTimeout(n)}catch{}}return n=setTimeout(()=>{t(),i()}),typeof requestAnimationFrame=="function"&&(e=requestAnimationFrame(()=>{t(),i()})),()=>i()}function lR(t){return queueMicrotask(()=>t()),()=>{t=Td}}var v1="isAngularZone",Xb=v1+"_ID",w7=0,ae=class t{hasPendingMacrotasks=!1;hasPendingMicrotasks=!1;isStable=!0;onUnstable=new U(!1);onMicrotaskEmpty=new U(!1);onStable=new U(!1);onError=new U(!1);constructor(n){let{enableLongStackTrace:e=!1,shouldCoalesceEventChangeDetection:i=!1,shouldCoalesceRunChangeDetection:r=!1,scheduleInRootZone:o=EP}=n;if(typeof Zone>"u")throw new me(908,!1);Zone.assertZonePatched();let a=this;a._nesting=0,a._outer=a._inner=Zone.current,Zone.TaskTrackingZoneSpec&&(a._inner=a._inner.fork(new Zone.TaskTrackingZoneSpec)),e&&Zone.longStackTraceZoneSpec&&(a._inner=a._inner.fork(Zone.longStackTraceZoneSpec)),a.shouldCoalesceEventChangeDetection=!r&&i,a.shouldCoalesceRunChangeDetection=r,a.callbackScheduled=!1,a.scheduleInRootZone=o,M7(a)}static isInAngularZone(){return typeof Zone<"u"&&Zone.current.get(v1)===!0}static assertInAngularZone(){if(!t.isInAngularZone())throw new me(909,!1)}static assertNotInAngularZone(){if(t.isInAngularZone())throw new me(909,!1)}run(n,e,i){return this._inner.run(n,e,i)}runTask(n,e,i,r){let o=this._inner,a=o.scheduleEventTask("NgZoneEvent: "+r,n,D7,Td,Td);try{return o.runTask(a,e,i)}finally{o.cancelTask(a)}}runGuarded(n,e,i){return this._inner.runGuarded(n,e,i)}runOutsideAngular(n){return this._outer.run(n)}},D7={};function y1(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 E7(t){if(t.isCheckStableRunning||t.callbackScheduled)return;t.callbackScheduled=!0;function n(){MP(()=>{t.callbackScheduled=!1,RE(t),t.isCheckStableRunning=!0,y1(t),t.isCheckStableRunning=!1})}t.scheduleInRootZone?Zone.root.run(()=>{n()}):t._outer.run(()=>{n()}),RE(t)}function M7(t){let n=()=>{E7(t)},e=w7++;t._inner=t._inner.fork({name:"angular",properties:{[v1]:!0,[Xb]:e,[Xb+e]:!0},onInvokeTask:(i,r,o,a,s,l)=>{if(S7(l))return i.invokeTask(o,a,s,l);try{return cR(t),i.invokeTask(o,a,s,l)}finally{(t.shouldCoalesceEventChangeDetection&&a.type==="eventTask"||t.shouldCoalesceRunChangeDetection)&&n(),dR(t)}},onInvoke:(i,r,o,a,s,l,c)=>{try{return cR(t),i.invoke(o,a,s,l,c)}finally{t.shouldCoalesceRunChangeDetection&&!t.callbackScheduled&&!k7(l)&&n(),dR(t)}},onHasTask:(i,r,o,a)=>{i.hasTask(o,a),r===o&&(a.change=="microTask"?(t._hasPendingMicrotasks=a.microTask,RE(t),y1(t)):a.change=="macroTask"&&(t.hasPendingMacrotasks=a.macroTask))},onHandleError:(i,r,o,a)=>(i.handleError(o,a),t.runOutsideAngular(()=>t.onError.emit(a)),!1)})}function RE(t){t._hasPendingMicrotasks||(t.shouldCoalesceEventChangeDetection||t.shouldCoalesceRunChangeDetection)&&t.callbackScheduled===!0?t.hasPendingMicrotasks=!0:t.hasPendingMicrotasks=!1}function cR(t){t._nesting++,t.isStable&&(t.isStable=!1,t.onUnstable.emit(null))}function dR(t){t._nesting--,y1(t)}var Gp=class{hasPendingMicrotasks=!1;hasPendingMacrotasks=!1;isStable=!0;onUnstable=new U;onMicrotaskEmpty=new U;onStable=new U;onError=new U;run(n,e,i){return n.apply(e,i)}runGuarded(n,e,i){return n.apply(e,i)}runOutsideAngular(n){return n()}runTask(n,e,i,r){return n.apply(e,i)}};function S7(t){return SP(t,"__ignore_ng_zone__")}function k7(t){return SP(t,"__scheduler_tick__")}function SP(t,n){return!Array.isArray(t)||t.length!==1?!1:t[0]?.data?.[n]===!0}var _0=(()=>{class t{impl=null;execute(){this.impl?.execute()}static \u0275prov=R({token:t,providedIn:"root",factory:()=>new t})}return t})(),x1=[0,1,2,3],C1=(()=>{class t{ngZone=u(ae);scheduler=u(Lo);errorHandler=u(An,{optional:!0});sequences=new Set;deferredRegistrations=new Set;executing=!1;constructor(){u(Kl,{optional:!0})}execute(){let e=this.sequences.size>0;e&&li(16),this.executing=!0;for(let i of x1)for(let r of this.sequences)if(!(r.erroredOrDestroyed||!r.hooks[i]))try{r.pipelinedValue=this.ngZone.runOutsideAngular(()=>this.maybeTrace(()=>{let o=r.hooks[i];return o(r.pipelinedValue)},r.snapshot))}catch(o){r.erroredOrDestroyed=!0,this.errorHandler?.handleError(o)}this.executing=!1;for(let i of this.sequences)i.afterRun(),i.once&&(this.sequences.delete(i),i.destroy());for(let i of this.deferredRegistrations)this.sequences.add(i);this.deferredRegistrations.size>0&&this.scheduler.notify(7),this.deferredRegistrations.clear(),e&&li(17)}register(e){let{view:i}=e;i!==void 0?((i[Dd]??=[]).push(e),$l(i),i[et]|=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,i){return i?i.run(g0.AFTER_NEXT_RENDER,e):e()}static \u0275prov=R({token:t,providedIn:"root",factory:()=>new t})}return t})(),qp=class{impl;hooks;view;once;snapshot;erroredOrDestroyed=!1;pipelinedValue=void 0;unregisterOnDestroy;constructor(n,e,i,r,o,a=null){this.impl=n,this.hooks=e,this.view=i,this.once=r,this.snapshot=a,this.unregisterOnDestroy=o?.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?.[Dd];n&&(this.view[Dd]=n.filter(e=>e!==this))}};function gt(t,n){let e=n?.injector??u(de);return ds("NgAfterNextRender"),I7(t,e,n,!0)}function T7(t){return t instanceof Function?[void 0,void 0,t,void 0]:[t.earlyRead,t.write,t.mixedReadWrite,t.read]}function I7(t,n,e,i){let r=n.get(_0);r.impl??=n.get(C1);let o=n.get(Kl,null,{optional:!0}),a=e?.manualCleanup!==!0?n.get(an):null,s=n.get(kd,null,{optional:!0}),l=new qp(r.impl,T7(t),s?.view,i,a,o?.snapshot(null));return r.impl.register(l),l}var kP=new O("",{providedIn:"root",factory:()=>({queue:new Set,isScheduled:!1,scheduler:null})});function TP(t,n,e){let i=t.get(kP);if(Array.isArray(n))for(let r of n)i.queue.add(r),e?.detachedLeaveAnimationFns?.push(r);else i.queue.add(n),e?.detachedLeaveAnimationFns?.push(n);i.scheduler&&i.scheduler(t)}function A7(t,n){let e=t.get(kP);if(n.detachedLeaveAnimationFns){for(let i of n.detachedLeaveAnimationFns)e.queue.delete(i);n.detachedLeaveAnimationFns=void 0}}function O7(t,n){for(let[e,i]of n)TP(t,i.animateFns)}function uR(t,n,e,i){let r=t?.[Ed]?.enter;n!==null&&r&&r.has(e.index)&&O7(i,r)}function um(t,n,e,i,r,o,a,s){if(r!=null){let l,c=!1;va(r)?l=r:es(r)&&(c=!0,r=r[ba]);let d=zo(r);t===0&&i!==null?(uR(s,i,o,e),a==null?fP(n,i,d):Zb(n,i,d,a||null,!0)):t===1&&i!==null?(uR(s,i,o,e),Zb(n,i,d,a||null,!0)):t===2?mR(s,o,e,p=>{gP(n,d,c,p)}):t===3&&mR(s,o,e,()=>{n.destroyNode(d)}),l!=null&&U7(n,t,e,l,o,i,a)}}function R7(t,n){IP(t,n),n[ba]=null,n[Or]=null}function P7(t,n,e,i,r,o){i[ba]=r,i[Or]=n,v0(t,i,e,1,r,o)}function IP(t,n){n[Xa].changeDetectionScheduler?.notify(9),v0(t,n,n[si],2,null,null)}function F7(t){let n=t[nm];if(!n)return lE(t[We],t);for(;n;){let e=null;if(es(n))e=n[nm];else{let i=n[Xi];i&&(e=i)}if(!e){for(;n&&!n[Ho]&&n!==t;)es(n)&&lE(n[We],n),n=n[yn];n===null&&(n=t),es(n)&&lE(n[We],n),e=n&&n[Ho]}n=e}}function w1(t,n){let e=t[Md],i=e.indexOf(n);e.splice(i,1)}function b0(t,n){if(Sd(n))return;let e=n[si];e.destroyNode&&v0(t,n,e,3,null,null),F7(n)}function lE(t,n){if(Sd(n))return;let e=Xe(null);try{n[et]&=-129,n[et]|=256,n[vo]&&Al(n[vo]),V7(t,n),L7(t,n),n[We].type===1&&n[si].destroy();let i=n[zl];if(i!==null&&va(n[yn])){i!==n[yn]&&w1(i,n);let r=n[Ja];r!==null&&r.detachView(t)}yE(n)}finally{Xe(e)}}function mR(t,n,e,i){let r=t?.[Ed];if(r==null||r.leave==null||!r.leave.has(n.index))return i(!1);t&&Od.add(t),TP(e,()=>{if(r.leave&&r.leave.has(n.index)){let a=r.leave.get(n.index),s=[];if(a){for(let l=0;l{t[Ed].running=void 0,Od.delete(t),n(!0)});return}n(!1)}function L7(t,n){let e=t.cleanup,i=n[im];if(e!==null)for(let a=0;a=0?i[s]():i[-s].unsubscribe(),a+=2}else{let s=i[e[a+1]];e[a].call(s)}i!==null&&(n[im]=null);let r=n[$s];if(r!==null){n[$s]=null;for(let a=0;ahi&&DP(t,n,hi,!1),li(a?2:0,r,e),e(i,r)}finally{Wl(o),li(a?3:1,r,e)}}function y0(t,n,e){Q7(t,n,e),(e.flags&64)===64&&K7(t,n,e)}function Cm(t,n,e=Uo){let i=n.localNames;if(i!==null){let r=n.index+1;for(let o=0;onull;function Y7(t){return t==="class"?"className":t==="for"?"htmlFor":t==="formaction"?"formAction":t==="innerHtml"?"innerHTML":t==="readonly"?"readOnly":t==="tabindex"?"tabIndex":t}function NP(t,n,e,i,r,o){let a=n[We];if(w0(t,a,n,e,i)){Ys(t)&&VP(n,t.index);return}t.type&3&&(e=Y7(e)),LP(t,n,e,i,r,o)}function LP(t,n,e,i,r,o){if(t.type&3){let a=Uo(t,n);i=o!=null?o(i,t.value||"",e):i,r.setProperty(a,e,i)}else t.type&12}function VP(t,n){let e=$o(n,t);e[et]&16||(e[et]|=64)}function Q7(t,n,e){let i=e.directiveStart,r=e.directiveEnd;Ys(e)&&x7(n,e,t.data[i+e.componentOffset]),t.firstCreatePass||Kb(e,n);let o=e.initialInputs;for(let a=i;a{$l(t.lView)},consumerOnSignalRead(){this.lView[vo]=this}});function lG(t){let n=t[vo]??Object.create(cG);return n.lView=t,n}var cG=Ee(k({},ad),{consumerIsAlwaysLive:!0,kind:"template",consumerMarkedDirty:t=>{let n=Hl(t.lView);for(;n&&!UP(n[We]);)n=Hl(n);n&&jD(n)},consumerOnSignalRead(){this.lView[vo]=this}});function UP(t){return t.type!==2}function $P(t){if(t[qs]===null)return;let n=!0;for(;n;){let e=!1;for(let i of t[qs])i.dirty&&(e=!0,i.zone===null||Zone.current===i.zone?i.run():i.zone.run(()=>i.run()));n=e&&!!(t[et]&8192)}}var dG=100;function WP(t,n=0){let i=t[Xa].rendererFactory,r=!1;r||i.begin?.();try{uG(t,n)}finally{r||i.end?.()}}function uG(t,n){let e=ZD();try{lm(!0),FE(t,n);let i=0;for(;Lp(t);){if(i===dG)throw new me(103,!1);i++,FE(t,1)}}finally{lm(e)}}function mG(t,n,e,i){if(Sd(n))return;let r=n[et],o=!1,a=!1;Ab(n);let s=!0,l=null,c=null;o||(UP(t)?(c=rG(n),l=Il(c)):P_()===null?(s=!1,c=lG(n),l=Il(c)):n[vo]&&(Al(n[vo]),n[vo]=null));try{BD(n),FO(t.bindingStartIndex),e!==null&&FP(t,n,e,2,i);let d=(r&3)===3;if(!o)if(d){let b=t.preOrderCheckHooks;b!==null&&Hb(n,b,null)}else{let b=t.preOrderHooks;b!==null&&zb(n,b,0,null),aE(n,0)}if(a||hG(n),$P(n),GP(n,0),t.contentQueries!==null&&aP(t,n),!o)if(d){let b=t.contentCheckHooks;b!==null&&Hb(n,b)}else{let b=t.contentHooks;b!==null&&zb(n,b,1),aE(n,1)}fG(t,n);let p=t.components;p!==null&&YP(n,p,0);let _=t.viewQuery;if(_!==null&&CE(2,_,i),!o)if(d){let b=t.viewCheckHooks;b!==null&&Hb(n,b)}else{let b=t.viewHooks;b!==null&&zb(n,b,2),aE(n,2)}if(t.firstUpdatePass===!0&&(t.firstUpdatePass=!1),n[Eb]){for(let b of n[Eb])b();n[Eb]=null}o||(HP(n),n[et]&=-73)}catch(d){throw o||$l(n),d}finally{c!==null&&(sd(c,l),s&&aG(c)),Ob()}}function GP(t,n){for(let e=XR(t);e!==null;e=JR(e))for(let i=Xi;i0&&(t[e-1][Ho]=i[Ho]);let o=Ap(t,Xi+n);R7(i[We],i);let a=o[Ja];a!==null&&a.detachView(o[We]),i[yn]=null,i[Ho]=null,i[et]&=-129}return i}function gG(t,n,e,i){let r=Xi+i,o=e.length;i>0&&(e[r-1][Ho]=n),i-1&&(Qp(n,i),Ap(e,i))}this._attachedToViewContainer=!1}b0(this._lView[We],this._lView)}onDestroy(n){HD(this._lView,n)}markForCheck(){k1(this._cdRefInjectingView||this._lView,4)}detach(){this._lView[et]&=-129}reattach(){Sb(this._lView),this._lView[et]|=128}detectChanges(){this._lView[et]|=1024,WP(this._lView)}checkNoChanges(){}attachToViewContainerRef(){if(this._appRef)throw new me(902,!1);this._attachedToViewContainer=!0}detachFromAppRef(){this._appRef=null;let n=om(this._lView),e=this._lView[zl];e!==null&&!n&&w1(e,this._lView),IP(this._lView[We],this._lView)}attachToAppRef(n){if(this._attachedToViewContainer)throw new me(902,!1);this._appRef=n;let e=om(this._lView),i=this._lView[zl];i!==null&&!e&&XP(i,this._lView),Sb(this._lView)}};var te=(()=>{class t{_declarationLView;_declarationTContainer;elementRef;static __NG_ELEMENT_ID__=_G;constructor(e,i,r){this._declarationLView=e,this._declarationTContainer=i,this.elementRef=r}get ssrId(){return this._declarationTContainer.tView?.ssrId||null}createEmbeddedView(e,i){return this.createEmbeddedViewImpl(e,i)}createEmbeddedViewImpl(e,i,r){let o=of(this._declarationLView,this._declarationTContainer,e,{embeddedViewInjector:i,dehydratedView:r});return new Gl(o)}}return t})();function _G(){return D0(on(),Ne())}function D0(t,n){return t.type&4?new te(n,t,ym(t,n)):null}function wm(t,n,e,i,r){let o=t.data[n];if(o===null)o=bG(t,n,e,i,r),NO()&&(o.flags|=32);else if(o.type&64){o.type=e,o.value=i,o.attrs=r;let a=RO();o.injectorIndex=a===null?-1:a.injectorIndex}return sm(o,!0),o}function bG(t,n,e,i,r){let o=YD(),a=QD(),s=a?o:o&&o.parent,l=t.data[n]=yG(t,s,e,n,i,r);return vG(t,l,o,a),l}function vG(t,n,e,i){t.firstChild===null&&(t.firstChild=n),e!==null&&(i?e.child==null&&n.parent!==null&&(e.child=n):e.next===null&&(e.next=n,n.prev=e))}function yG(t,n,e,i,r,o){let a=n?n.injectorIndex:-1,s=0;return WD()&&(s|=128),{type:e,index:i,insertBeforeIndex:null,injectorIndex:a,directiveStart:-1,directiveEnd:-1,directiveStylingLast:-1,componentOffset:-1,propertyBindings:null,flags:s,providerIndexes:0,value:r,attrs:o,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}}var uAe=new RegExp(`^(\\d+)*(${kW}|${SW})*(.*)`);function xG(t){let n=t[PD]??[],i=t[yn][si],r=[];for(let o of n)o.data[iP]!==void 0?r.push(o):CG(o,i);t[PD]=r}function CG(t,n){let e=0,i=t.firstChild;if(i){let r=t.data[tP];for(;enull,DG=()=>null;function Jb(t,n){return wG(t,n)}function JP(t,n,e){return DG(t,n,e)}var Fd=class{},E0=class{},NE=class{resolveComponentFactory(n){throw new me(917,!1)}},sf=class{static NULL=new NE},mn=class{},ze=(()=>{class t{destroyNode=null;static __NG_ELEMENT_ID__=()=>EG()}return t})();function EG(){let t=Ne(),n=on(),e=$o(n.index,t);return(es(e)?e:t)[si]}var eF=(()=>{class t{static \u0275prov=R({token:t,providedIn:"root",factory:()=>null})}return t})();var $b={},LE=class{injector;parentInjector;constructor(n,e){this.injector=n,this.parentInjector=e}get(n,e,i){let r=this.injector.get(n,$b,i);return r!==$b||e===$b?r:this.parentInjector.get(n,e,i)}};function e0(t,n,e){let i=e?t.styles:null,r=e?t.classes:null,o=0;if(n!==null)for(let a=0;a0&&(e.directiveToIndex=new Map);for(let _=0;_0;){let e=t[--n];if(typeof e=="number"&&e<0)return e}return 0}function RG(t,n,e){if(e){if(n.exportAs)for(let i=0;ii(zo(w[t.index])):t.index;lF(y,n,e,o,s,b,!1)}}return c}function LG(t){return t.startsWith("animation")||t.startsWith("transition")}function VG(t,n,e,i){let r=t.cleanup;if(r!=null)for(let o=0;ol?s[l]:null}typeof a=="string"&&(o+=2)}return null}function lF(t,n,e,i,r,o,a){let s=n.firstCreatePass?UD(n):null,l=zD(e),c=l.length;l.push(r,o),s&&s.push(i,t,c,(c+1)*(a?-1:1))}function bR(t,n,e,i,r,o){let a=n[e],s=n[We],c=s.data[e].outputs[i],p=a[c].subscribe(o);lF(t.index,s,n,r,o,p,!0)}var VE=Symbol("BINDING");var t0=class extends sf{ngModule;constructor(n){super(),this.ngModule=n}resolveComponentFactory(n){let e=Za(n);return new ql(e,this.ngModule)}};function BG(t){return Object.keys(t).map(n=>{let[e,i,r]=t[n],o={propName:e,templateName:n,isSignal:(i&f0.SignalBased)!==0};return r&&(o.transform=r),o})}function jG(t){return Object.keys(t).map(n=>({propName:t[n],templateName:n}))}function HG(t,n,e){let i=n instanceof Kt?n:n?.injector;return i&&t.getStandaloneInjector!==null&&(i=t.getStandaloneInjector(i)||i),i?new LE(e,i):e}function zG(t){let n=t.get(mn,null);if(n===null)throw new me(407,!1);let e=t.get(eF,null),i=t.get(Lo,null);return{rendererFactory:n,sanitizer:e,changeDetectionScheduler:i,ngReflect:!1}}function UG(t,n){let e=cF(t);return pP(n,e,e==="svg"?ND:e==="math"?EO:null)}function cF(t){return(t.selectors[0][0]||"div").toLowerCase()}var ql=class extends E0{componentDef;ngModule;selector;componentType;ngContentSelectors;isBoundToModule;cachedInputs=null;cachedOutputs=null;get inputs(){return this.cachedInputs??=BG(this.componentDef.inputs),this.cachedInputs}get outputs(){return this.cachedOutputs??=jG(this.componentDef.outputs),this.cachedOutputs}constructor(n,e){super(),this.componentDef=n,this.ngModule=e,this.componentType=n.type,this.selector=_7(n.selectors),this.ngContentSelectors=n.ngContentSelectors??[],this.isBoundToModule=!!e}create(n,e,i,r,o,a){li(22);let s=Xe(null);try{let l=this.componentDef,c=$G(i,l,a,o),d=HG(l,r||this.ngModule,n),p=zG(d),_=p.rendererFactory.createRenderer(null,l),b=i?W7(_,i,l.encapsulation,d):UG(l,_),y=a?.some(vR)||o?.some(D=>typeof D!="function"&&D.bindings.some(vR)),w=g1(null,c,null,512|CP(l),null,null,p,_,d,null,oP(b,d,!0));w[hi]=b,Ab(w);let C=null;try{let D=T1(hi,w,2,"#host",()=>c.directiveRegistry,!0,0);_P(_,b,D),pm(b,w),y0(c,w,D),a1(c,D,w),I1(c,D),e!==void 0&&GG(D,this.ngContentSelectors,e),C=$o(D.index,w),w[Zi]=C[Zi],S1(c,w,null)}catch(D){throw C!==null&&yE(C),yE(w),D}finally{li(23),Ob()}return new i0(this.componentType,w,!!y)}finally{Xe(s)}}};function $G(t,n,e,i){let r=t?["ng-version","20.3.16"]:b7(n.selectors[0]),o=null,a=null,s=0;if(e)for(let d of e)s+=d[VE].requiredVars,d.create&&(d.targetIdx=0,(o??=[]).push(d)),d.update&&(d.targetIdx=0,(a??=[]).push(d));if(i)for(let d=0;d{if(e&1&&t)for(let i of t)i.create();if(e&2&&n)for(let i of n)i.update()}}function vR(t){let n=t[VE].kind;return n==="input"||n==="twoWay"}var i0=class extends Fd{_rootLView;_hasInputBindings;instance;hostView;changeDetectorRef;componentType;location;previousInputValues=null;_tNode;constructor(n,e,i){super(),this._rootLView=e,this._hasInputBindings=i,this._tNode=Np(e[We],hi),this.location=ym(this._tNode,e),this.instance=$o(this._tNode.index,e)[Zi],this.hostView=this.changeDetectorRef=new Gl(e,void 0),this.componentType=n}setInput(n,e){this._hasInputBindings;let i=this._tNode;if(this.previousInputValues??=new Map,this.previousInputValues.has(n)&&Object.is(this.previousInputValues.get(n),e))return;let r=this._rootLView,o=w0(i,r[We],r,n,e);this.previousInputValues.set(n,e);let a=$o(i.index,r);k1(a,1)}get injector(){return new Id(this._tNode,this._rootLView)}destroy(){this.hostView.destroy()}onDestroy(n){this.hostView.onDestroy(n)}};function GG(t,n,e){let i=t.projection=[];for(let r=0;r{class t{static __NG_ELEMENT_ID__=qG}return t})();function qG(){let t=on();return uF(t,Ne())}var YG=ot,dF=class extends YG{_lContainer;_hostTNode;_hostLView;constructor(n,e,i){super(),this._lContainer=n,this._hostTNode=e,this._hostLView=i}get element(){return ym(this._hostTNode,this._hostLView)}get injector(){return new Id(this._hostTNode,this._hostLView)}get parentInjector(){let n=i1(this._hostTNode,this._hostLView);if(jR(n)){let e=Yb(n,this._hostLView),i=qb(n),r=e[We].data[i+8];return new Id(r,e)}else return new Id(null,this._hostLView)}clear(){for(;this.length>0;)this.remove(this.length-1)}get(n){let e=yR(this._lContainer);return e!==null&&e[n]||null}get length(){return this._lContainer.length-Xi}createEmbeddedView(n,e,i){let r,o;typeof i=="number"?r=i:i!=null&&(r=i.index,o=i.injector);let a=Jb(this._lContainer,n.ssrId),s=n.createEmbeddedViewImpl(e||{},o,a);return this.insertImpl(s,r,fm(this._hostTNode,a)),s}createComponent(n,e,i,r,o,a,s){let l=n&&!iW(n),c;if(l)c=e;else{let C=e||{};c=C.index,i=C.injector,r=C.projectableNodes,o=C.environmentInjector||C.ngModuleRef,a=C.directives,s=C.bindings}let d=l?n:new ql(Za(n)),p=i||this.parentInjector;if(!o&&d.ngModule==null){let D=(l?p:this.parentInjector).get(Kt,null);D&&(o=D)}let _=Za(d.componentType??{}),b=Jb(this._lContainer,_?.id??null),y=b?.firstChild??null,w=d.create(p,r,y,o,a,s);return this.insertImpl(w.hostView,c,fm(this._hostTNode,b)),w}insert(n,e){return this.insertImpl(n,e,!0)}insertImpl(n,e,i){let r=n._lView;if(SO(r)){let s=this.indexOf(n);if(s!==-1)this.detach(s);else{let l=r[yn],c=new dF(l,l[Or],l[yn]);c.detach(c.indexOf(n))}}let o=this._adjustIndex(e),a=this._lContainer;return af(a,r,o,i),n.attachToViewContainerRef(),ED(cE(a),o,n),n}move(n,e){return this.insert(n,e)}indexOf(n){let e=yR(this._lContainer);return e!==null?e.indexOf(n):-1}remove(n){let e=this._adjustIndex(n,-1),i=Qp(this._lContainer,e);i&&(Ap(cE(this._lContainer),e),b0(i[We],i))}detach(n){let e=this._adjustIndex(n,-1),i=Qp(this._lContainer,e);return i&&Ap(cE(this._lContainer),e)!=null?new Gl(i):null}_adjustIndex(n,e=0){return n??this.length+e}};function yR(t){return t[Fp]}function cE(t){return t[Fp]||(t[Fp]=[])}function uF(t,n){let e,i=n[t.index];return va(i)?e=i:(e=QP(i,n,null,t),n[t.index]=e,_1(n,e)),KG(e,n,t,i),new dF(e,t,n)}function QG(t,n){let e=t[si],i=e.createComment(""),r=Uo(n,t),o=e.parentNode(r);return Zb(e,o,i,e.nextSibling(r),!1),i}var KG=JG,ZG=()=>!1;function XG(t,n,e){return ZG(t,n,e)}function JG(t,n,e,i){if(t[Ul])return;let r;e.type&8?r=zo(i):r=QG(n,e),t[Ul]=r}var BE=class t{queryList;matches=null;constructor(n){this.queryList=n}clone(){return new t(this.queryList)}setDirty(){this.queryList.setDirty()}},jE=class t{queries;constructor(n=[]){this.queries=n}createEmbeddedView(n){let e=n.queries;if(e!==null){let i=n.contentQueries!==null?n.contentQueries[0]:e.length,r=[];for(let o=0;o0)i.push(a[s/2]);else{let c=o[s+1],d=n[-l];for(let p=Xi;pn.trim())}function gF(t,n,e){t.queries===null&&(t.queries=new HE),t.queries.track(new zE(n,e))}function o9(t,n){let e=t.contentQueries||(t.contentQueries=[]),i=e.length?e[e.length-1]:-1;n!==i&&e.push(t.queries.length-1,n)}function R1(t,n){return t.queries.getByIndex(n)}function _F(t,n){let e=t[We],i=R1(e,n);return i.crossesNgTemplate?UE(e,t,n,[]):mF(e,t,i,n)}function P1(t,n,e){let i,r=yp(()=>{i._dirtyCounter();let o=a9(i,t);if(n&&o===void 0)throw new me(-951,!1);return o});return i=r[un],i._dirtyCounter=he(0),i._flatValue=void 0,r}function F1(t){return P1(!0,!1,t)}function N1(t){return P1(!0,!0,t)}function bF(t){return P1(!1,!1,t)}function vF(t,n){let e=t[un];e._lView=Ne(),e._queryIndex=n,e._queryList=O1(e._lView,n),e._queryList.onDirty(()=>e._dirtyCounter.update(i=>i+1))}function a9(t,n){let e=t._lView,i=t._queryIndex;if(e===void 0||i===void 0||e[et]&4)return n?void 0:hr;let r=O1(e,i),o=_F(e,i);return r.reset(o,QR),n?r.first:r._changesDetected||t._flatValue===void 0?t._flatValue=r.toArray():t._flatValue}var ss=class{},M0=class{};var r0=class extends ss{ngModuleType;_parent;_bootstrapComponents=[];_r3Injector;instance;destroyCbs=[];componentFactoryResolver=new t0(this);constructor(n,e,i,r=!0){super(),this.ngModuleType=n,this._parent=e;let o=kD(n);this._bootstrapComponents=vP(o.bootstrap),this._r3Injector=tE(n,e,[{provide:ss,useValue:this},{provide:sf,useValue:this.componentFactoryResolver},...i],Ws(n),new Set(["environment"])),r&&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)}},o0=class extends M0{moduleType;constructor(n){super(),this.moduleType=n}create(n){return new r0(this.moduleType,n,[])}};var Zp=class extends ss{injector;componentFactoryResolver=new t0(this);instance=null;constructor(n){super();let e=new vd([...n.providers,{provide:ss,useValue:this},{provide:sf,useValue:this.componentFactoryResolver}],n.parent||tm(),n.debugName,new Set(["environment"]));this.injector=e,n.runEnvironmentInitializers&&e.resolveInjectorInitializers()}destroy(){this.injector.destroy()}onDestroy(n){this.injector.onDestroy(n)}};function Dm(t,n,e=null){return new Zp({providers:t,parent:n,debugName:e,runEnvironmentInitializers:!0}).injector}var s9=(()=>{class t{_injector;cachedInjectors=new Map;constructor(e){this._injector=e}getOrCreateStandaloneInjector(e){if(!e.standalone)return null;if(!this.cachedInjectors.has(e)){let i=TD(!1,e.type),r=i.length>0?Dm([i],this._injector,`Standalone[${e.type.name}]`):null;this.cachedInjectors.set(e,r)}return this.cachedInjectors.get(e)}ngOnDestroy(){try{for(let e of this.cachedInjectors.values())e!==null&&e.destroy()}finally{this.cachedInjectors.clear()}}static \u0275prov=R({token:t,providedIn:"environment",factory:()=>new t(fe(Kt))})}return t})();function E(t){return vm(()=>{let n=yF(t),e=Ee(k({},n),{decls:t.decls,vars:t.vars,template:t.template,consts:t.consts||null,ngContentSelectors:t.ngContentSelectors,onPush:t.changeDetection===n1.OnPush,directiveDefs:null,pipeDefs:null,dependencies:n.standalone&&t.dependencies||null,getStandaloneInjector:n.standalone?r=>r.get(s9).getOrCreateStandaloneInjector(e):null,getExternalStyles:null,signals:t.signals??!1,data:t.data||{},encapsulation:t.encapsulation||Qs.Emulated,styles:t.styles||hr,_:null,schemas:t.schemas||null,tView:null,id:""});n.standalone&&ds("NgStandalone"),xF(e);let i=t.dependencies;return e.directiveDefs=xR(i,l9),e.pipeDefs=xR(i,bO),e.id=u9(e),e})}function l9(t){return Za(t)||wb(t)}function ee(t){return vm(()=>({type:t.type,bootstrap:t.bootstrap||hr,declarations:t.declarations||hr,imports:t.imports||hr,exports:t.exports||hr,transitiveCompileScopes:null,schemas:t.schemas||null,id:t.id||null}))}function c9(t,n){if(t==null)return _a;let e={};for(let i in t)if(t.hasOwnProperty(i)){let r=t[i],o,a,s,l;Array.isArray(r)?(s=r[0],o=r[1],a=r[2]??o,l=r[3]||null):(o=r,a=r,s=f0.None,l=null),e[o]=[i,s,l],n[o]=a}return e}function d9(t){if(t==null)return _a;let n={};for(let e in t)t.hasOwnProperty(e)&&(n[t[e]]=e);return n}function P(t){return vm(()=>{let n=yF(t);return xF(n),n})}function Kr(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 yF(t){let n={};return{type:t.type,providersResolver:null,factory:null,hostBindings:t.hostBindings||null,hostVars:t.hostVars||0,hostAttrs:t.hostAttrs||null,contentQueries:t.contentQueries||null,declaredInputs:n,inputConfig:t.inputs||_a,exportAs:t.exportAs||null,standalone:t.standalone??!0,signals:t.signals===!0,selectors:t.selectors||hr,viewQuery:t.viewQuery||null,features:t.features||null,setInput:null,resolveHostDirectives:null,hostDirectives:null,inputs:c9(t.inputs,n),outputs:d9(t.outputs),debugInfo:null}}function xF(t){t.features?.forEach(n=>n(t))}function xR(t,n){return t?()=>{let e=typeof t=="function"?t():t,i=[];for(let r of e){let o=n(r);o!==null&&i.push(o)}return i}:null}function u9(t){let n=0,e=typeof t.consts=="function"?"":t.consts,i=[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 o of i.join("|"))n=Math.imul(31,n)+o.charCodeAt(0)<<0;return n+=2147483648,"c"+n}function m9(t){return Object.getPrototypeOf(t.prototype).constructor}function le(t){let n=m9(t.type),e=!0,i=[t];for(;n;){let r;if(ya(t))r=n.\u0275cmp||n.\u0275dir;else{if(n.\u0275cmp)throw new me(903,!1);r=n.\u0275dir}if(r){if(e){i.push(r);let a=t;a.inputs=dE(t.inputs),a.declaredInputs=dE(t.declaredInputs),a.outputs=dE(t.outputs);let s=r.hostBindings;s&&_9(t,s);let l=r.viewQuery,c=r.contentQueries;if(l&&f9(t,l),c&&g9(t,c),h9(t,r),cO(t.outputs,r.outputs),ya(r)&&r.data.animation){let d=t.data;d.animation=(d.animation||[]).concat(r.data.animation)}}let o=r.features;if(o)for(let a=0;a=0;i--){let r=t[i];r.hostVars=n+=r.hostVars,r.hostAttrs=hm(r.hostAttrs,e=hm(e,r.hostAttrs))}}function dE(t){return t===_a?{}:t===hr?[]:t}function f9(t,n){let e=t.viewQuery;e?t.viewQuery=(i,r)=>{n(i,r),e(i,r)}:t.viewQuery=n}function g9(t,n){let e=t.contentQueries;e?t.contentQueries=(i,r,o)=>{n(i,r,o),e(i,r,o)}:t.contentQueries=n}function _9(t,n){let e=t.hostBindings;e?t.hostBindings=(i,r)=>{n(i,r),e(i,r)}:t.hostBindings=n}function Em(t){let n=e=>{let i=Array.isArray(t);e.hostDirectives===null?(e.resolveHostDirectives=b9,e.hostDirectives=i?t.map($E):[t]):i?e.hostDirectives.unshift(...t.map($E)):e.hostDirectives.unshift(t)};return n.ngInherit=!0,n}function b9(t){let n=[],e=!1,i=null,r=null;for(let o=0;o{class t{log(e){console.log(e)}warn(e){console.warn(e)}static \u0275fac=function(i){return new(i||t)};static \u0275prov=R({token:t,factory:t.\u0275fac,providedIn:"platform"})}return t})();var L1=new O("");function Js(t){return!!t&&typeof t.then=="function"}function k0(t){return!!t&&typeof t.subscribe=="function"}var V1=new O("");function Zl(t){return qr([{provide:V1,multi:!0,useValue:t}])}var B1=(()=>{class t{resolve;reject;initialized=!1;done=!1;donePromise=new Promise((e,i)=>{this.resolve=e,this.reject=i});appInits=u(V1,{optional:!0})??[];injector=u(de);constructor(){}runInitializers(){if(this.initialized)return;let e=[];for(let r of this.appInits){let o=On(this.injector,r);if(Js(o))e.push(o);else if(k0(o)){let a=new Promise((s,l)=>{o.subscribe({complete:s,error:l})});e.push(a)}}let i=()=>{this.done=!0,this.resolve()};Promise.all(e).then(()=>{i()}).catch(r=>{this.reject(r)}),e.length===0&&i(),this.initialized=!0}static \u0275fac=function(i){return new(i||t)};static \u0275prov=R({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),cf=new O("");function DF(){Nw(()=>{let t="";throw new me(600,t)})}function EF(t){return t.isBoundToModule}var w9=10;var Yn=(()=>{class t{_runningTick=!1;_destroyed=!1;_destroyListeners=[];_views=[];internalErrorHandler=u(fr);afterRenderManager=u(_0);zonelessEnabled=u(Hp);rootEffectScheduler=u(zp);dirtyFlags=0;tracingSnapshot=null;allTestViews=new Set;autoDetectTestViews=new Set;includeAllTestViews=!1;afterTick=new z;get allViews(){return[...(this.includeAllTestViews?this.allTestViews:this.autoDetectTestViews).keys(),...this._views]}get destroyed(){return this._destroyed}componentTypes=[];components=[];internalPendingTask=u(rs);get isStable(){return this.internalPendingTask.hasPendingTasksObservable.pipe(se(e=>!e))}constructor(){u(Kl,{optional:!0})}whenStable(){let e;return new Promise(i=>{e=this.isStable.subscribe({next:r=>{r&&i()}})}).finally(()=>{e.unsubscribe()})}_injector=u(Kt);_rendererFactory=null;get injector(){return this._injector}bootstrap(e,i){return this.bootstrapImpl(e,i)}bootstrapImpl(e,i,r=de.NULL){return this._injector.get(ae).run(()=>{li(10);let a=e instanceof E0;if(!this._injector.get(B1).done){let y="";throw new me(405,y)}let l;a?l=e:l=this._injector.get(sf).resolveComponentFactory(e),this.componentTypes.push(l.componentType);let c=EF(l)?void 0:this._injector.get(ss),d=i||l.selector,p=l.create(r,[],d,c),_=p.location.nativeElement,b=p.injector.get(L1,null);return b?.registerApplication(_),p.onDestroy(()=>{this.detachView(p.hostView),$p(this.components,p),b?.unregisterApplication(_)}),this._loadComponent(p),li(11,p),p})}tick(){this.zonelessEnabled||(this.dirtyFlags|=1),this._tick()}_tick(){li(12),this.tracingSnapshot!==null?this.tracingSnapshot.run(g0.CHANGE_DETECTION,this.tickImpl):this.tickImpl()}tickImpl=()=>{if(this._runningTick)throw new me(101,!1);let e=Xe(null);try{this._runningTick=!0,this.synchronize()}finally{this._runningTick=!1,this.tracingSnapshot?.dispose(),this.tracingSnapshot=null,Xe(e),this.afterTick.next(),li(13)}};synchronize(){this._rendererFactory===null&&!this._injector.destroyed&&(this._rendererFactory=this._injector.get(mn,null,{optional:!0}));let e=0;for(;this.dirtyFlags!==0&&e++Lp(e))){this.dirtyFlags|=2;return}else this.dirtyFlags&=-8}attachView(e){let i=e;this._views.push(i),i.attachToAppRef(this)}detachView(e){let i=e;$p(this._views,i),i.detachFromAppRef()}_loadComponent(e){this.attachView(e.hostView);try{this.tick()}catch(r){this.internalErrorHandler(r)}this.components.push(e),this._injector.get(cf,[]).forEach(r=>r(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),()=>$p(this._destroyListeners,e)}destroy(){if(this._destroyed)throw new me(406,!1);let e=this._injector;e.destroy&&!e.destroyed&&e.destroy()}get viewCount(){return this._views.length}static \u0275fac=function(i){return new(i||t)};static \u0275prov=R({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();function $p(t,n){let e=t.indexOf(n);e>-1&&t.splice(e,1)}function Xl(t,n){let e=Ne(),i=is();if(Rr(e,i,n)){let r=bi(),o=cm();if(w0(o,r,e,t,n))Ys(o)&&VP(e,o.index);else{let s=Uo(o,e);BP(e[si],s,null,o.value,t,n,null)}}return Xl}function X(t,n,e,i){let r=Ne(),o=is();if(Rr(r,o,n)){let a=bi(),s=cm();X7(s,r,t,n,e,i)}return X}var bAe=typeof document<"u"&&typeof document?.documentElement?.getAnimations=="function";function T0(){return Ne()[pr][Zi]}var WE=class{destroy(n){}updateValue(n,e){}swap(n,e){let i=Math.min(n,e),r=Math.max(n,e),o=this.detach(r);if(r-i>1){let a=this.detach(i);this.attach(i,o),this.attach(r,a)}else this.attach(i,o)}move(n,e){this.attach(e,this.detach(n))}};function uE(t,n,e,i,r){return t===e&&Object.is(n,i)?1:Object.is(r(t,n),r(e,i))?-1:0}function D9(t,n,e){let i,r,o=0,a=t.length-1,s=void 0;if(Array.isArray(n)){let l=n.length-1;for(;o<=a&&o<=l;){let c=t.at(o),d=n[o],p=uE(o,c,o,d,e);if(p!==0){p<0&&t.updateValue(o,d),o++;continue}let _=t.at(a),b=n[l],y=uE(a,_,l,b,e);if(y!==0){y<0&&t.updateValue(a,b),a--,l--;continue}let w=e(o,c),C=e(a,_),D=e(o,d);if(Object.is(D,C)){let F=e(l,b);Object.is(F,w)?(t.swap(o,a),t.updateValue(a,b),l--,a--):t.move(a,o),t.updateValue(o,d),o++;continue}if(i??=new a0,r??=ER(t,o,a,e),GE(t,i,o,D))t.updateValue(o,d),o++,a++;else if(r.has(D))i.set(w,t.detach(o)),a--;else{let F=t.create(o,n[o]);t.attach(o,F),o++,a++}}for(;o<=l;)DR(t,i,e,o,n[o]),o++}else if(n!=null){let l=n[Symbol.iterator](),c=l.next();for(;!c.done&&o<=a;){let d=t.at(o),p=c.value,_=uE(o,d,o,p,e);if(_!==0)_<0&&t.updateValue(o,p),o++,c=l.next();else{i??=new a0,r??=ER(t,o,a,e);let b=e(o,p);if(GE(t,i,o,b))t.updateValue(o,p),o++,a++,c=l.next();else if(!r.has(b))t.attach(o,t.create(o,p)),o++,a++,c=l.next();else{let y=e(o,d);i.set(y,t.detach(o)),a--}}}for(;!c.done;)DR(t,i,e,t.length,c.value),c=l.next()}for(;o<=a;)t.destroy(t.detach(a--));i?.forEach(l=>{t.destroy(l)})}function GE(t,n,e,i){return n!==void 0&&n.has(i)?(t.attach(e,n.get(i)),n.delete(i),!0):!1}function DR(t,n,e,i,r){if(GE(t,n,i,e(i,r)))t.updateValue(i,r);else{let o=t.create(i,r);t.attach(i,o)}}function ER(t,n,e,i){let r=new Set;for(let o=n;o<=e;o++)r.add(i(o,t.at(o)));return r}var a0=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 i=this.kvMap.get(n);this._vMap===void 0&&(this._vMap=new Map);let r=this._vMap;for(;r.has(i);)i=r.get(i);r.set(i,e)}else this.kvMap.set(n,e)}forEach(n){for(let[e,i]of this.kvMap)if(n(i,e),this._vMap!==void 0){let r=this._vMap;for(;r.has(i);)i=r.get(i),n(i,e)}}};function V(t,n,e,i,r,o,a,s){ds("NgControlFlow");let l=Ne(),c=bi(),d=yo(c.consts,o);return gm(l,c,t,n,e,i,r,d,256,a,s),j1}function j1(t,n,e,i,r,o,a,s){ds("NgControlFlow");let l=Ne(),c=bi(),d=yo(c.consts,o);return gm(l,c,t,n,e,i,r,d,512,a,s),j1}function B(t,n){ds("NgControlFlow");let e=Ne(),i=is(),r=e[i]!==Pn?e[i]:-1,o=r!==-1?s0(e,hi+r):void 0,a=0;if(Rr(e,i,t)){let s=Xe(null);try{if(o!==void 0&&ZP(o,a),t!==-1){let l=hi+t,c=s0(e,l),d=KE(e[We],l),p=JP(c,d,e),_=of(e,d,n,{dehydratedView:p});af(c,_,a,fm(d,p))}}finally{Xe(s)}}else if(o!==void 0){let s=KP(o,a);s!==void 0&&(s[Zi]=n)}}var qE=class{lContainer;$implicit;$index;constructor(n,e,i){this.lContainer=n,this.$implicit=e,this.$index=i}get $count(){return this.lContainer.length-Xi}};function Ui(t){return t}function Mm(t,n){return n}var YE=class{hasEmptyBlock;trackByFn;liveCollection;constructor(n,e,i){this.hasEmptyBlock=n,this.trackByFn=e,this.liveCollection=i}};function xt(t,n,e,i,r,o,a,s,l,c,d,p,_){ds("NgControlFlow");let b=Ne(),y=bi(),w=l!==void 0,C=Ne(),D=s?a.bind(C[pr][Zi]):a,F=new YE(w,D);C[hi+t]=F,gm(b,y,t+1,n,e,i,r,yo(y.consts,o),256),w&&gm(b,y,t+2,l,c,d,p,yo(y.consts,_),512)}var QE=class extends WE{lContainer;hostLView;templateTNode;operationsCounter=void 0;needsIndexUpdate=!1;constructor(n,e,i){super(),this.lContainer=n,this.hostLView=e,this.templateTNode=i}get length(){return this.lContainer.length-Xi}at(n){return this.getLView(n)[Zi].$implicit}attach(n,e){let i=e[xd];this.needsIndexUpdate||=n!==this.length,af(this.lContainer,e,n,fm(this.templateTNode,i)),E9(this.lContainer,n)}detach(n){return this.needsIndexUpdate||=n!==this.length-1,M9(this.lContainer,n),S9(this.lContainer,n)}create(n,e){let i=Jb(this.lContainer,this.templateTNode.tView.ssrId),r=of(this.hostLView,this.templateTNode,new qE(this.lContainer,e,n),{dehydratedView:i});return this.operationsCounter?.recordCreate(),r}destroy(n){b0(n[We],n),this.operationsCounter?.recordDestroy()}updateValue(n,e){this.getLView(n)[Zi].$implicit=e}reset(){this.needsIndexUpdate=!1,this.operationsCounter?.reset()}updateIndexes(){if(this.needsIndexUpdate)for(let n=0;n0){let o=i[Gs];A7(o,r),Od.delete(i),r.detachedLeaveAnimationFns=void 0}}function M9(t,n){if(t.length<=Xi)return;let e=Xi+n,i=t[e],r=i?i[Ed]:void 0;r&&r.leave&&r.leave.size>0&&(r.detachedLeaveAnimationFns=[])}function S9(t,n){return Qp(t,n)}function k9(t,n){return KP(t,n)}function KE(t,n){return Np(t,n)}function v(t,n,e){let i=Ne(),r=is();if(Rr(i,r,n)){let o=bi(),a=cm();NP(a,i,t,n,i[si],e)}return v}function ZE(t,n,e,i,r){w0(n,t,e,r?"class":"style",i)}function m(t,n,e,i){let r=Ne(),o=r[We],a=t+hi,s=o.firstCreatePass?T1(a,r,2,n,M1,kb(),e,i):o.data[a];if(x0(s,r,t,n,MF),rm(s)){let l=r[We];y0(l,r,s),a1(l,s,r)}return i!=null&&Cm(r,s),m}function h(){let t=bi(),n=on(),e=C0(n);return t.firstCreatePass&&I1(t,e),GD(e)&&qD(),$D(),e.classesWithoutHost!=null&&lW(e)&&ZE(t,e,Ne(),e.classesWithoutHost,!0),e.stylesWithoutHost!=null&&cW(e)&&ZE(t,e,Ne(),e.stylesWithoutHost,!1),h}function M(t,n,e,i){return m(t,n,e,i),h(),M}function pt(t,n,e,i){let r=Ne(),o=r[We],a=t+hi,s=o.firstCreatePass?nF(a,o,2,n,e,i):o.data[a];return x0(s,r,t,n,MF),i!=null&&Cm(r,s),pt}function _t(){let t=on(),n=C0(t);return GD(n)&&qD(),$D(),_t}function Xt(t,n,e,i){return pt(t,n,e,i),_t(),Xt}var MF=(t,n,e,i,r)=>(jp(!0),pP(n[si],i,$O()));function kt(t,n,e){let i=Ne(),r=i[We],o=t+hi,a=r.firstCreatePass?T1(o,i,8,"ng-container",M1,kb(),n,e):r.data[o];if(x0(a,i,t,"ng-container",kF),rm(a)){let s=i[We];y0(s,i,a),a1(s,a,i)}return e!=null&&Cm(i,a),kt}function Dt(){let t=bi(),n=on(),e=C0(n);return t.firstCreatePass&&I1(t,e),Dt}function Ge(t,n,e){return kt(t,n,e),Dt(),Ge}function H1(t,n,e){let i=Ne(),r=i[We],o=t+hi,a=r.firstCreatePass?nF(o,r,8,"ng-container",n,e):r.data[o];return x0(a,i,t,"ng-container",kF),e!=null&&Cm(i,a),H1}function SF(){let t=on(),n=C0(t);return Dt}function df(t,n,e){return H1(t,n,e),SF(),df}var kF=(t,n,e,i,r)=>(jp(!0),t7(n[si],""));function q(){return Ne()}function ci(t,n,e){let i=Ne(),r=is();if(Rr(i,r,n)){let o=bi(),a=cm();LP(a,i,t,n,i[si],e)}return ci}var Bb=void 0;function T9(t){let n=Math.floor(Math.abs(t)),e=t.toString().replace(/^[^.]*\.?/,"").length;return n===1&&e===0?1:5}var I9=["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"]],Bb,[["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"]],Bb,[["B","A"],["BC","AD"],["Before Christ","Anno Domini"]],0,[6,0],["M/d/yy","MMM d, y","MMMM d, y","EEEE, MMMM d, y"],["h:mm a","h:mm:ss a","h:mm:ss a z","h:mm:ss a zzzz"],["{1}, {0}",Bb,"{1} 'at' {0}",Bb],[".",",",";","%","+","-","E","\xD7","\u2030","\u221E","NaN",":"],["#,##0.###","#,##0%","\xA4#,##0.00","#E0"],"USD","$","US Dollar",{},"ltr",T9],mE={};function Pr(t){let n=A9(t),e=MR(n);if(e)return e;let i=n.split("-")[0];if(e=MR(i),e)return e;if(i==="en")return I9;throw new me(701,!1)}function MR(t){return t in mE||(mE[t]=Bo.ng&&Bo.ng.common&&Bo.ng.common.locales&&Bo.ng.common.locales[t]),mE[t]}var $i=(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})($i||{});function A9(t){return t.toLowerCase().replace(/_/g,"-")}var uf="en-US",O9="USD";var R9=uf;function TF(t){typeof t=="string"&&(R9=t.toLowerCase().replace(/_/g,"-"))}function S(t,n,e){let i=Ne(),r=bi(),o=on();return IF(r,i,i[si],o,t,n,e),S}function I0(t,n,e){let i=Ne(),r=bi(),o=on();return(o.type&3||e)&&sF(o,r,i,e,i[si],t,n,Wb(o,i,n)),I0}function IF(t,n,e,i,r,o,a){let s=!0,l=null;if((i.type&3||a)&&(l??=Wb(i,n,o),sF(i,t,n,a,e,r,o,l)&&(s=!1)),s){let c=i.outputs?.[r],d=i.hostDirectiveOutputs?.[r];if(d&&d.length)for(let p=0;p>17&32767}function N9(t){return(t&2)==2}function L9(t,n){return t&131071|n<<17}function XE(t){return t|2}function _m(t){return(t&131068)>>2}function hE(t,n){return t&-131069|n<<2}function V9(t){return(t&1)===1}function JE(t){return t|1}function B9(t,n,e,i,r,o){let a=o?n.classBindings:n.styleBindings,s=Rd(a),l=_m(a);t[i]=e;let c=!1,d;if(Array.isArray(e)){let p=e;d=p[1],(d===null||em(p,d)>0)&&(c=!0)}else d=e;if(r)if(l!==0){let _=Rd(t[s+1]);t[i+1]=jb(_,s),_!==0&&(t[_+1]=hE(t[_+1],i)),t[s+1]=L9(t[s+1],i)}else t[i+1]=jb(s,0),s!==0&&(t[s+1]=hE(t[s+1],i)),s=i;else t[i+1]=jb(l,0),s===0?s=i:t[l+1]=hE(t[l+1],i),l=i;c&&(t[i+1]=XE(t[i+1])),SR(t,d,i,!0),SR(t,d,i,!1),j9(n,d,t,i,o),a=jb(s,l),o?n.classBindings=a:n.styleBindings=a}function j9(t,n,e,i,r){let o=r?t.residualClasses:t.residualStyles;o!=null&&typeof n=="string"&&em(o,n)>=0&&(e[i+1]=JE(e[i+1]))}function SR(t,n,e,i){let r=t[e+1],o=n===null,a=i?Rd(r):_m(r),s=!1;for(;a!==0&&(s===!1||o);){let l=t[a],c=t[a+1];H9(l,n)&&(s=!0,t[a+1]=i?JE(c):XE(c)),a=i?Rd(c):_m(c)}s&&(t[e+1]=i?XE(r):JE(r))}function H9(t,n){return t===null||n==null||(Array.isArray(t)?t[1]:t)===n?!0:Array.isArray(t)&&typeof n=="string"?em(t,n)>=0:!1}var xn={textEnd:0,key:0,keyEnd:0,value:0,valueEnd:0};function AF(t){return t.substring(xn.key,xn.keyEnd)}function z9(t){return t.substring(xn.value,xn.valueEnd)}function U9(t){return PF(t),OF(t,bm(t,0,xn.textEnd))}function OF(t,n){let e=xn.textEnd;return e===n?-1:(n=xn.keyEnd=W9(t,xn.key=n,e),bm(t,n,e))}function $9(t){return PF(t),RF(t,bm(t,0,xn.textEnd))}function RF(t,n){let e=xn.textEnd,i=xn.key=bm(t,n,e);return e===i?-1:(i=xn.keyEnd=G9(t,i,e),i=kR(t,i,e,58),i=xn.value=bm(t,i,e),i=xn.valueEnd=q9(t,i,e),kR(t,i,e,59))}function PF(t){xn.key=0,xn.keyEnd=0,xn.value=0,xn.valueEnd=0,xn.textEnd=t.length}function bm(t,n,e){for(;n32;)n++;return n}function G9(t,n,e){let i;for(;n=65&&(i&-33)<=90||i>=48&&i<=57);)n++;return n}function kR(t,n,e,i){return n=bm(t,n,e),n32&&(s=a),o=r,r=i,i=l&-33}return s}function TR(t,n,e,i){let r=-1,o=e;for(;o=0;e=RF(n,e))BF(t,AF(n),z9(n))}function nt(t){NF(tq,Q9,t,!0)}function Q9(t,n){for(let e=U9(n);e>=0;e=OF(n,e))Op(t,AF(n),!0)}function FF(t,n,e,i){let r=Ne(),o=bi(),a=Vp(2);if(o.firstUpdatePass&&VF(o,t,a,i),n!==Pn&&Rr(r,a,n)){let s=o.data[xa()];jF(o,s,r,r[si],t,r[a+1]=nq(n,e),i,a)}}function NF(t,n,e,i){let r=bi(),o=Vp(2);r.firstUpdatePass&&VF(r,null,o,i);let a=Ne();if(e!==Pn&&Rr(a,o,e)){let s=r.data[xa()];if(HF(s,i)&&!LF(r,o)){let l=i?s.classesWithoutHost:s.stylesWithoutHost;l!==null&&(e=bb(l,e||"")),ZE(r,s,a,e,i)}else iq(r,s,a,a[si],a[o+1],a[o+1]=eq(t,n,e),i,o)}}function LF(t,n){return n>=t.expandoStartIndex}function VF(t,n,e,i){let r=t.data;if(r[e+1]===null){let o=r[xa()],a=LF(t,e);HF(o,i)&&n===null&&!a&&(n=!1),n=K9(r,o,n,i),B9(r,o,n,e,a,i)}}function K9(t,n,e,i){let r=BO(t),o=i?n.residualClasses:n.residualStyles;if(r===null)(i?n.classBindings:n.styleBindings)===0&&(e=pE(null,t,n,e,i),e=Xp(e,n.attrs,i),o=null);else{let a=n.directiveStylingLast;if(a===-1||t[a]!==r)if(e=pE(r,t,n,e,i),o===null){let l=Z9(t,n,i);l!==void 0&&Array.isArray(l)&&(l=pE(null,t,n,l[1],i),l=Xp(l,n.attrs,i),X9(t,n,i,l))}else o=J9(t,n,i)}return o!==void 0&&(i?n.residualClasses=o:n.residualStyles=o),e}function Z9(t,n,e){let i=e?n.classBindings:n.styleBindings;if(_m(i)!==0)return t[Rd(i)]}function X9(t,n,e,i){let r=e?n.classBindings:n.styleBindings;t[Rd(r)]=i}function J9(t,n,e){let i,r=n.directiveEnd;for(let o=1+n.directiveStylingLast;o0;){let l=t[r],c=Array.isArray(l),d=c?l[1]:l,p=d===null,_=e[r+1];_===Pn&&(_=p?hr:void 0);let b=p?Cb(_,i):d===i?_:void 0;if(c&&!l0(b)&&(b=Cb(l,i)),l0(b)&&(s=b,a))return s;let y=t[r+1];r=a?Rd(y):_m(y)}if(n!==null){let l=o?n.residualClasses:n.residualStyles;l!=null&&(s=Cb(l,i))}return s}function l0(t){return t!==void 0}function nq(t,n){return t==null||t===""||(typeof n=="string"?t=t+n:typeof t=="object"&&(t=Ws(Yr(t)))),t}function HF(t,n){return(t.flags&(n?8:16))!==0}function g(t,n=""){let e=Ne(),i=bi(),r=t+hi,o=i.firstCreatePass?wm(i,r,1,n,null):i.data[r],a=rq(i,e,o,n,t);e[r]=a,Rb()&&D1(i,e,a,o),sm(o,!1)}var rq=(t,n,e,i,r)=>(jp(!0),JW(n[si],i));function zF(t,n,e,i=""){return Rr(t,is(),e)?n+jo(e)+i:Pn}function oq(t,n,e,i,r,o=""){let a=XD(),s=Kp(t,a,e,r);return Vp(2),s?n+jo(e)+i+jo(r)+o:Pn}function aq(t,n,e,i,r,o,a,s=""){let l=XD(),c=aF(t,l,e,r,a);return Vp(3),c?n+jo(e)+i+jo(r)+o+jo(a)+s:Pn}function N(t){return pe("",t),N}function pe(t,n,e){let i=Ne(),r=zF(i,t,n,e);return r!==Pn&&z1(i,xa(),r),pe}function Ld(t,n,e,i,r){let o=Ne(),a=oq(o,t,n,e,i,r);return a!==Pn&&z1(o,xa(),a),Ld}function Sm(t,n,e,i,r,o,a){let s=Ne(),l=aq(s,t,n,e,i,r,o,a);return l!==Pn&&z1(s,xa(),l),Sm}function z1(t,n,e){let i=LD(n,t);e7(t[si],i,e)}function Fr(t,n,e){nE(n)&&(n=n());let i=Ne(),r=is();if(Rr(i,r,n)){let o=bi(),a=cm();NP(a,i,t,n,i[si],e)}return Fr}function Zr(t,n){let e=nE(t);return e&&t.set(n),e}function Nr(t,n){let e=Ne(),i=bi(),r=on();return IF(i,e,e[si],r,t,n),Nr}function U1(t){return Rr(Ne(),is(),t)?jo(t):Pn}function qo(t,n,e=""){return zF(Ne(),t,n,e)}function sq(t,n,e){let i=bi();if(i.firstCreatePass){let r=ya(t);e1(e,i.data,i.blueprint,r,!0),e1(n,i.data,i.blueprint,r,!1)}}function e1(t,n,e,i,r){if(t=vn(t),Array.isArray(t))for(let o=0;o>20;if(bd(t)||!t.multi){let b=new Ad(c,r,be,null),y=gE(l,n,r?d:d+_,p);y===-1?(bE(Kb(s,a),o,l),fE(o,t,n.length),n.push(l),s.directiveStart++,s.directiveEnd++,r&&(s.providerIndexes+=1048576),e.push(b),a.push(b)):(e[y]=b,a[y]=b)}else{let b=gE(l,n,d+_,p),y=gE(l,n,d,d+_),w=b>=0&&e[b],C=y>=0&&e[y];if(r&&!C||!r&&!w){bE(Kb(s,a),o,l);let D=dq(r?cq:lq,e.length,r,i,c,t);!r&&C&&(e[y].providerFactory=D),fE(o,t,n.length,0),n.push(l),s.directiveStart++,s.directiveEnd++,r&&(s.providerIndexes+=1048576),e.push(D),a.push(D)}else{let D=UF(e[r?y:b],c,!r&&i);fE(o,t,b>-1?b:y,D)}!r&&i&&C&&e[y].componentProviders++}}}function fE(t,n,e,i){let r=bd(n),o=CO(n);if(r||o){let l=(o?vn(n.useClass):n).prototype.ngOnDestroy;if(l){let c=t.destroyHooks||(t.destroyHooks=[]);if(!r&&n.multi){let d=c.indexOf(e);d===-1?c.push(e,[i,l]):c[d+1].push(i,l)}else c.push(e,l)}}}function UF(t,n,e){return e&&t.componentProviders++,t.multi.push(n)-1}function gE(t,n,e,i){for(let r=e;r{e.providersResolver=(i,r)=>sq(i,r?r(t):t,n)}}function rt(t,n,e){let i=ts()+t,r=Ne();return r[i]===Pn?lf(r,i,e?n.call(e):n()):FG(r,i)}function Nt(t,n,e,i){return $F(Ne(),ts(),t,n,e,i)}function Da(t,n,e,i,r){return WF(Ne(),ts(),t,n,e,i,r)}function Vd(t,n,e,i,r,o){return GF(Ne(),ts(),t,n,e,i,r,o)}function km(t,n,e,i,r,o,a){return qF(Ne(),ts(),t,n,e,i,r,o,a)}function A0(t,n){let e=t[n];return e===Pn?void 0:e}function $F(t,n,e,i,r,o){let a=n+e;return Rr(t,a,r)?lf(t,a+1,o?i.call(o,r):i(r)):A0(t,a+1)}function WF(t,n,e,i,r,o,a){let s=n+e;return Kp(t,s,r,o)?lf(t,s+2,a?i.call(a,r,o):i(r,o)):A0(t,s+2)}function GF(t,n,e,i,r,o,a,s){let l=n+e;return aF(t,l,r,o,a)?lf(t,l+3,s?i.call(s,r,o,a):i(r,o,a)):A0(t,l+3)}function qF(t,n,e,i,r,o,a,s,l){let c=n+e;return NG(t,c,r,o,a,s)?lf(t,c+4,l?i.call(l,r,o,a,s):i(r,o,a,s)):A0(t,c+4)}function ue(t,n){let e=bi(),i,r=t+hi;e.firstCreatePass?(i=uq(n,e.pipeRegistry),e.data[r]=i,i.onDestroy&&(e.destroyHooks??=[]).push(r,i.onDestroy)):i=e.data[r];let o=i.factory||(i.factory=jl(i.type,!0)),a,s=Ar(be);try{let l=Qb(!1),c=o();return Qb(l),VD(e,Ne(),r,c),c}finally{Ar(s)}}function uq(t,n){if(n)for(let e=n.length-1;e>=0;e--){let i=n[e];if(t===i.name)return i}}function Oe(t,n,e){let i=t+hi,r=Ne(),o=am(r,i);return O0(r,i)?$F(r,ts(),n,o.transform,e,o):o.transform(e)}function Ei(t,n,e,i){let r=t+hi,o=Ne(),a=am(o,r);return O0(o,r)?WF(o,ts(),n,a.transform,e,i,a):a.transform(e,i)}function $1(t,n,e,i,r){let o=t+hi,a=Ne(),s=am(a,o);return O0(a,o)?GF(a,ts(),n,s.transform,e,i,r,s):s.transform(e,i,r)}function Tm(t,n,e,i,r,o){let a=t+hi,s=Ne(),l=am(s,a);return O0(s,a)?qF(s,ts(),n,l.transform,e,i,r,o,l):l.transform(e,i,r,o)}function O0(t,n){return t[We].data[n].pure}function vi(t,n){return D0(t,n)}var c0=class{ngModuleFactory;componentFactories;constructor(n,e){this.ngModuleFactory=n,this.componentFactories=e}},W1=(()=>{class t{compileModuleSync(e){return new o0(e)}compileModuleAsync(e){return Promise.resolve(this.compileModuleSync(e))}compileModuleAndAllComponentsSync(e){let i=this.compileModuleSync(e),r=kD(e),o=vP(r.declarations).reduce((a,s)=>{let l=Za(s);return l&&a.push(new ql(l)),a},[]);return new c0(i,o)}compileModuleAndAllComponentsAsync(e){return Promise.resolve(this.compileModuleAndAllComponentsSync(e))}clearCache(){}clearCacheFor(e){}getModuleId(e){}static \u0275fac=function(i){return new(i||t)};static \u0275prov=R({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();var mq=(()=>{class t{zone=u(ae);changeDetectionScheduler=u(Lo);applicationRef=u(Yn);applicationErrorHandler=u(fr);_onMicrotaskEmptySubscription;initialize(){this._onMicrotaskEmptySubscription||(this._onMicrotaskEmptySubscription=this.zone.onMicrotaskEmpty.subscribe({next:()=>{this.changeDetectionScheduler.runningTick||this.zone.run(()=>{try{this.applicationRef.dirtyFlags|=1,this.applicationRef._tick()}catch(e){this.applicationErrorHandler(e)}})}}))}ngOnDestroy(){this._onMicrotaskEmptySubscription?.unsubscribe()}static \u0275fac=function(i){return new(i||t)};static \u0275prov=R({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();function YF({ngZoneFactory:t,ignoreChangesOutsideZone:n,scheduleInRootZone:e}){return t??=()=>new ae(Ee(k({},QF()),{scheduleInRootZone:e})),[{provide:ae,useFactory:t},{provide:Ka,multi:!0,useFactory:()=>{let i=u(mq,{optional:!0});return()=>i.initialize()}},{provide:Ka,multi:!0,useFactory:()=>{let i=u(hq);return()=>{i.initialize()}}},n===!0?{provide:rE,useValue:!0}:[],{provide:oE,useValue:e??EP},{provide:fr,useFactory:()=>{let i=u(ae),r=u(Kt),o;return a=>{i.runOutsideAngular(()=>{r.destroyed&&!o?setTimeout(()=>{throw a}):(o??=r.get(An),o.handleError(a))})}}}]}function QF(t){return{enableLongStackTrace:!1,shouldCoalesceEventChangeDetection:t?.eventCoalescing??!1,shouldCoalesceRunChangeDetection:t?.runCoalescing??!1}}var hq=(()=>{class t{subscription=new Te;initialized=!1;zone=u(ae);pendingTasks=u(rs);initialize(){if(this.initialized)return;this.initialized=!0;let e=null;!this.zone.isStable&&!this.zone.hasPendingMacrotasks&&!this.zone.hasPendingMicrotasks&&(e=this.pendingTasks.add()),this.zone.runOutsideAngular(()=>{this.subscription.add(this.zone.onStable.subscribe(()=>{ae.assertNotInAngularZone(),queueMicrotask(()=>{e!==null&&!this.zone.hasPendingMacrotasks&&!this.zone.hasPendingMicrotasks&&(this.pendingTasks.remove(e),e=null)})}))}),this.subscription.add(this.zone.onUnstable.subscribe(()=>{ae.assertInAngularZone(),e??=this.pendingTasks.add()}))}ngOnDestroy(){this.subscription.unsubscribe()}static \u0275fac=function(i){return new(i||t)};static \u0275prov=R({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();var KF=(()=>{class t{applicationErrorHandler=u(fr);appRef=u(Yn);taskService=u(rs);ngZone=u(ae);zonelessEnabled=u(Hp);tracing=u(Kl,{optional:!0});disableScheduling=u(rE,{optional:!0})??!1;zoneIsDefined=typeof Zone<"u"&&!!Zone.root.run;schedulerTickApplyArgs=[{data:{__scheduler_tick__:!0}}];subscriptions=new Te;angularZoneId=this.zoneIsDefined?this.ngZone._inner?.get(Xb):null;scheduleInRootZone=!this.zonelessEnabled&&this.zoneIsDefined&&(u(oE,{optional:!0})??!1);cancelScheduledCallback=null;useMicrotaskScheduler=!1;runningTick=!1;pendingRenderTaskId=null;constructor(){this.subscriptions.add(this.appRef.afterTick.subscribe(()=>{this.runningTick||this.cleanup()})),this.subscriptions.add(this.ngZone.onUnstable.subscribe(()=>{this.runningTick||this.cleanup()})),this.disableScheduling||=!this.zonelessEnabled&&(this.ngZone instanceof Gp||!this.zoneIsDefined)}notify(e){if(!this.zonelessEnabled&&e===5)return;let i=!1;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,i=!0;break}case 12:{this.appRef.dirtyFlags|=16,i=!0;break}case 13:{this.appRef.dirtyFlags|=2,i=!0;break}case 11:{i=!0;break}case 9:case 8:case 7:case 10:default:this.appRef.dirtyFlags|=8}if(this.appRef.tracingSnapshot=this.tracing?.snapshot(this.appRef.tracingSnapshot)??null,!this.shouldScheduleTick(i))return;let r=this.useMicrotaskScheduler?lR:MP;this.pendingRenderTaskId=this.taskService.add(),this.scheduleInRootZone?this.cancelScheduledCallback=Zone.root.run(()=>r(()=>this.tick())):this.cancelScheduledCallback=this.ngZone.runOutsideAngular(()=>r(()=>this.tick()))}shouldScheduleTick(e){return!(this.disableScheduling&&!e||this.appRef.destroyed||this.pendingRenderTaskId!==null||this.runningTick||this.appRef._runningTick||!this.zonelessEnabled&&this.zoneIsDefined&&Zone.current.get(Xb+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(i){this.taskService.remove(e),this.applicationErrorHandler(i)}finally{this.cleanup()}this.useMicrotaskScheduler=!0,lR(()=>{this.useMicrotaskScheduler=!1,this.taskService.remove(e)})}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(i){return new(i||t)};static \u0275prov=R({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();function pq(){return typeof $localize<"u"&&$localize.locale||uf}var tl=new O("",{providedIn:"root",factory:()=>u(tl,{optional:!0,skipSelf:!0})||pq()}),G1=new O("",{providedIn:"root",factory:()=>O9});var mf=class{destroyed=!1;listeners=null;errorHandler=u(An,{optional:!0});destroyRef=u(an);constructor(){this.destroyRef.onDestroy(()=>{this.destroyed=!0,this.listeners=null})}subscribe(n){if(this.destroyed)throw new me(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(Vo(953,!1));return}if(this.listeners===null)return;let e=Xe(null);try{for(let i of this.listeners)try{i(n)}catch(r){this.errorHandler?.handleError(r)}}finally{Xe(e)}}};function Y1(t){return t.destroyRef}function Ai(t){return rO(t)}function oi(t,n){return yp(t,n?.equal)}var q1=class{[un];constructor(n){this[un]=n}destroy(){this[un].destroy()}};function Lr(t,n){let e=n?.injector??u(de),i=n?.manualCleanup!==!0?e.get(an):null,r,o=e.get(kd,null,{optional:!0}),a=e.get(Lo);return o!==null?(r=_q(o.view,a,t),i instanceof kp&&i._lView===o.view&&(i=null)):r=bq(t,e.get(zp),a),r.injector=e,i!==null&&(r.onDestroyFn=i.onDestroy(()=>r.destroy())),new q1(r)}var ZF=Ee(k({},oO),{cleanupFns:void 0,zone:null,onDestroyFn:Td,run(){let t=lm(!1);try{aO(this)}finally{lm(t)}},cleanup(){if(!this.cleanupFns?.length)return;let t=Xe(null);try{for(;this.cleanupFns.length;)this.cleanupFns.pop()()}finally{this.cleanupFns=[],Xe(t)}}}),fq=Ee(k({},ZF),{consumerMarkedDirty(){this.scheduler.schedule(this),this.notifier.notify(12)},destroy(){Al(this),this.onDestroyFn(),this.cleanup(),this.scheduler.remove(this)}}),gq=Ee(k({},ZF),{consumerMarkedDirty(){this.view[et]|=8192,$l(this.view),this.notifier.notify(13)},destroy(){Al(this),this.onDestroyFn(),this.cleanup(),this.view[qs]?.delete(this)}});function _q(t,n,e){let i=Object.create(gq);return i.view=t,i.zone=typeof Zone<"u"?Zone.current:null,i.notifier=n,i.fn=XF(i,e),t[qs]??=new Set,t[qs].add(i),i.consumerMarkedDirty(i),i}function bq(t,n,e){let i=Object.create(fq);return i.fn=XF(i,t),i.scheduler=n,i.notifier=e,i.zone=typeof Zone<"u"?Zone.current:null,i.scheduler.add(i),i.notifier.notify(12),i}function XF(t,n){return()=>{n(e=>(t.cleanupFns??=[]).push(e))}}var F0=Symbol("InputSignalNode#UNSET"),s2=Ee(k({},xp),{transformFn:void 0,applyValueToInputSignal(t,n){cd(t,n)}});function l2(t,n){let e=Object.create(s2);e.value=t,e.transformFn=n?.transform;function i(){if(Tl(e),e.value===F0){let r=null;throw new me(-950,r)}return e.value}return i[un]=e,i}var Oi=class{attributeName;constructor(n){this.attributeName=n}__NG_ELEMENT_ID__=()=>Jp(this.attributeName);toString(){return`HostAttributeToken ${this.attributeName}`}},iM=new O("");iM.__NG_ELEMENT_ID__=t=>{let n=on();if(n===null)throw new me(204,!1);if(n.type&2)return n.value;if(t&8)return null;throw new me(204,!1)};function yi(t){return new mf}function JF(t,n){return l2(t,n)}function Oq(t){return l2(F0,t)}var re=(JF.required=Oq,JF);function e2(t,n){return F1(n)}function Rq(t,n){return N1(n)}var Qn=(e2.required=Rq,e2);function t2(t,n){return F1(n)}function Pq(t,n){return N1(n)}var _r=(t2.required=Pq,t2);function c2(t,n){return bF(n)}function d2(t,n){let e=Object.create(s2),i=new mf;e.value=t;function r(){return Tl(e),i2(e.value),e.value}return r[un]=e,r.asReadonly=Pb.bind(r),r.set=o=>{e.equal(e.value,o)||(cd(e,o),i.emit(o))},r.update=o=>{i2(e.value),r.set(o(e.value))},r.subscribe=i.subscribe.bind(i),r.destroyRef=i.destroyRef,r}function i2(t){if(t===F0)throw new me(952,!1)}function n2(t,n){return d2(t,n)}function Fq(t){return d2(F0,t)}var Im=(n2.required=Fq,n2);var K1=new O(""),Nq=new O("");function hf(t){return!t.moduleRef}function Lq(t){let n=hf(t)?t.r3Injector:t.moduleRef.injector,e=n.get(ae);return e.run(()=>{hf(t)?t.r3Injector.resolveInjectorInitializers():t.moduleRef.resolveInjectorInitializers();let i=n.get(fr),r;if(e.runOutsideAngular(()=>{r=e.onError.subscribe({next:i})}),hf(t)){let o=()=>n.destroy(),a=t.platformInjector.get(K1);a.add(o),n.onDestroy(()=>{r.unsubscribe(),a.delete(o)})}else{let o=()=>t.moduleRef.destroy(),a=t.platformInjector.get(K1);a.add(o),t.moduleRef.onDestroy(()=>{$p(t.allPlatformModules,t.moduleRef),r.unsubscribe(),a.delete(o)})}return Bq(i,e,()=>{let o=n.get(rs),a=o.add(),s=n.get(B1);return s.runInitializers(),s.donePromise.then(()=>{let l=n.get(tl,uf);if(TF(l||uf),!n.get(Nq,!0))return hf(t)?n.get(Yn):(t.allPlatformModules.push(t.moduleRef),t.moduleRef);if(hf(t)){let d=n.get(Yn);return t.rootComponent!==void 0&&d.bootstrap(t.rootComponent),d}else return Vq?.(t.moduleRef,t.allPlatformModules),t.moduleRef}).finally(()=>void o.remove(a))})})}var Vq;function Bq(t,n,e){try{let i=e();return Js(i)?i.catch(r=>{throw n.runOutsideAngular(()=>t(r)),r}):i}catch(i){throw n.runOutsideAngular(()=>t(i)),i}}var R0=null;function jq(t=[],n){return de.create({name:n,providers:[{provide:Rp,useValue:"platform"},{provide:K1,useValue:new Set([()=>R0=null])},...t]})}function Hq(t=[]){if(R0)return R0;let n=jq(t);return R0=n,DF(),zq(n),n}function zq(t){let n=t.get(d0,null);On(t,()=>{n?.forEach(e=>e())})}var ye=(()=>{class t{static __NG_ELEMENT_ID__=Uq}return t})();function Uq(t){return $q(on(),Ne(),(t&16)===16)}function $q(t,n,e){if(Ys(t)&&!e){let i=$o(t.index,n);return new Gl(i,i)}else if(t.type&175){let i=n[pr];return new Gl(i,n)}return null}var Z1=class{constructor(){}supports(n){return A1(n)}create(n){return new X1(n)}},Wq=(t,n)=>n,X1=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||Wq}forEachItem(n){let e;for(e=this._itHead;e!==null;e=e._next)n(e)}forEachOperation(n){let e=this._itHead,i=this._removalsHead,r=0,o=null;for(;e||i;){let a=!i||e&&e.currentIndex{a=this._trackByFn(r,s),e===null||!Object.is(e.trackById,a)?(e=this._mismatch(e,s,a,r),i=!0):(i&&(e=this._verifyReinsertion(e,s,a,r)),Object.is(e.item,s)||this._addIdentityChange(e,s)),e=e._next,r++}),this.length=r;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,i,r){let o;return n===null?o=this._itTail:(o=n._prev,this._remove(n)),n=this._unlinkedRecords===null?null:this._unlinkedRecords.get(i,null),n!==null?(Object.is(n.item,e)||this._addIdentityChange(n,e),this._reinsertAfter(n,o,r)):(n=this._linkedRecords===null?null:this._linkedRecords.get(i,r),n!==null?(Object.is(n.item,e)||this._addIdentityChange(n,e),this._moveAfter(n,o,r)):n=this._addAfter(new J1(e,i),o,r)),n}_verifyReinsertion(n,e,i,r){let o=this._unlinkedRecords===null?null:this._unlinkedRecords.get(i,null);return o!==null?n=this._reinsertAfter(o,n._prev,r):n.currentIndex!=r&&(n.currentIndex=r,this._addToMoves(n,r)),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,i){this._unlinkedRecords!==null&&this._unlinkedRecords.remove(n);let r=n._prevRemoved,o=n._nextRemoved;return r===null?this._removalsHead=o:r._nextRemoved=o,o===null?this._removalsTail=r:o._prevRemoved=r,this._insertAfter(n,e,i),this._addToMoves(n,i),n}_moveAfter(n,e,i){return this._unlink(n),this._insertAfter(n,e,i),this._addToMoves(n,i),n}_addAfter(n,e,i){return this._insertAfter(n,e,i),this._additionsTail===null?this._additionsTail=this._additionsHead=n:this._additionsTail=this._additionsTail._nextAdded=n,n}_insertAfter(n,e,i){let r=e===null?this._itHead:e._next;return n._next=r,n._prev=e,r===null?this._itTail=n:r._prev=n,e===null?this._itHead=n:e._next=n,this._linkedRecords===null&&(this._linkedRecords=new P0),this._linkedRecords.put(n),n.currentIndex=i,n}_remove(n){return this._addToRemovals(this._unlink(n))}_unlink(n){this._linkedRecords!==null&&this._linkedRecords.remove(n);let e=n._prev,i=n._next;return e===null?this._itHead=i:e._next=i,i===null?this._itTail=e:i._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 P0),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}},J1=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}},eM=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 i;for(i=this._head;i!==null;i=i._nextDup)if((e===null||e<=i.currentIndex)&&Object.is(i.trackById,n))return i;return null}remove(n){let e=n._prevDup,i=n._nextDup;return e===null?this._head=i:e._nextDup=i,i===null?this._tail=e:i._prevDup=e,this._head===null}},P0=class{map=new Map;put(n){let e=n.trackById,i=this.map.get(e);i||(i=new eM,this.map.set(e,i)),i.add(n)}get(n,e){let i=n,r=this.map.get(i);return r?r.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 r2(t,n,e){let i=t.previousIndex;if(i===null)return i;let r=0;return e&&i{class t{factories;static \u0275prov=R({token:t,providedIn:"root",factory:o2});constructor(e){this.factories=e}static create(e,i){if(i!=null){let r=i.factories.slice();e=e.concat(r)}return new t(e)}static extend(e){return{provide:t,useFactory:()=>{let i=u(t,{optional:!0,skipSelf:!0});return t.create(e,i||o2())}}}find(e){let i=this.factories.find(r=>r.supports(e));if(i!=null)return i;throw new me(901,!1)}}return t})();function u2(t){let{rootComponent:n,appProviders:e,platformProviders:i,platformRef:r}=t;li(8);try{let o=r?.injector??Hq(i),a=[YF({}),{provide:Lo,useExisting:KF},GO,...e||[]],s=new Zp({providers:a,parent:o,debugName:"",runEnvironmentInitializers:!1});return Lq({r3Injector:s.injector,platformInjector:o,rootComponent:n})}catch(o){return Promise.reject(o)}finally{li(9)}}function L(t){return typeof t=="boolean"?t:t!=null&&t!=="false"}function dt(t,n=NaN){return!isNaN(parseFloat(t))&&!isNaN(Number(t))?Number(t):n}var Q1=Symbol("NOT_SET"),m2=new Set,Gq=Ee(k({},xp),{consumerIsAlwaysLive:!0,consumerAllowSignalWrites:!0,value:Q1,cleanup:null,consumerMarkedDirty(){if(this.sequence.impl.executing){if(this.sequence.lastPhase===null||this.sequence.lastPhase(Tl(c),c.value),c.signal[un]=c,c.registerCleanupFn=d=>(c.cleanup??=new Set).add(d),this.nodes[s]=c,this.hooks[s]=d=>c.phaseFn(d)}}afterRun(){super.afterRun(),this.lastPhase=null}destroy(){super.destroy();for(let n of this.nodes)if(n)try{for(let e of n.cleanup??m2)e()}finally{Al(n)}}};function h2(t,n){let e=n?.injector??u(de),i=e.get(Lo),r=e.get(_0),o=e.get(Kl,null,{optional:!0});r.impl??=e.get(C1);let a=t;typeof a=="function"&&(a={mixedReadWrite:t});let s=e.get(kd,null,{optional:!0}),l=new tM(r.impl,[a.earlyRead,a.write,a.mixedReadWrite,a.read],s?.view,i,e,o?.snapshot(null));return r.impl.register(l),l}function Am(t,n){let e=Za(t),i=n.elementInjector||tm();return new ql(e).create(i,n.projectableNodes,n.hostElement,n.environmentInjector,n.directives,n.bindings)}function p2(t){let n=Za(t);if(!n)return null;let e=new ql(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 _2=null;function Yo(){return _2}function nM(t){_2??=t}var pf=class{},ff=(()=>{class t{historyGo(e){throw new Error("")}static \u0275fac=function(i){return new(i||t)};static \u0275prov=R({token:t,factory:()=>u(b2),providedIn:"platform"})}return t})(),rM=new O(""),b2=(()=>{class t extends ff{_location;_history;_doc=u(_e);constructor(){super(),this._location=window.location,this._history=window.history}getBaseHrefFromDOM(){return Yo().getBaseHref(this._doc)}onPopState(e){let i=Yo().getGlobalEventTarget(this._doc,"window");return i.addEventListener("popstate",e,!1),()=>i.removeEventListener("popstate",e)}onHashChange(e){let i=Yo().getGlobalEventTarget(this._doc,"window");return i.addEventListener("hashchange",e,!1),()=>i.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,i,r){this._history.pushState(e,i,r)}replaceState(e,i,r){this._history.replaceState(e,i,r)}forward(){this._history.forward()}back(){this._history.back()}historyGo(e=0){this._history.go(e)}getState(){return this._history.state}static \u0275fac=function(i){return new(i||t)};static \u0275prov=R({token:t,factory:()=>new t,providedIn:"platform"})}return t})();function N0(t,n){return t?n?t.endsWith("/")?n.startsWith("/")?t+n.slice(1):t+n:n.startsWith("/")?t+n:`${t}/${n}`:t:n}function f2(t){let n=t.search(/#|\?|$/);return t[n-1]==="/"?t.slice(0,n-1)+t.slice(n):t}function Ea(t){return t&&t[0]!=="?"?`?${t}`:t}var Ma=(()=>{class t{historyGo(e){throw new Error("")}static \u0275fac=function(i){return new(i||t)};static \u0275prov=R({token:t,factory:()=>u(V0),providedIn:"root"})}return t})(),L0=new O(""),V0=(()=>{class t extends Ma{_platformLocation;_baseHref;_removeListenerFns=[];constructor(e,i){super(),this._platformLocation=e,this._baseHref=i??this._platformLocation.getBaseHrefFromDOM()??u(_e).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 N0(this._baseHref,e)}path(e=!1){let i=this._platformLocation.pathname+Ea(this._platformLocation.search),r=this._platformLocation.hash;return r&&e?`${i}${r}`:i}pushState(e,i,r,o){let a=this.prepareExternalUrl(r+Ea(o));this._platformLocation.pushState(e,i,a)}replaceState(e,i,r,o){let a=this.prepareExternalUrl(r+Ea(o));this._platformLocation.replaceState(e,i,a)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}getState(){return this._platformLocation.getState()}historyGo(e=0){this._platformLocation.historyGo?.(e)}static \u0275fac=function(i){return new(i||t)(fe(ff),fe(L0,8))};static \u0275prov=R({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),ms=(()=>{class t{_subject=new z;_basePath;_locationStrategy;_urlChangeListeners=[];_urlChangeSubscription=null;constructor(e){this._locationStrategy=e;let i=this._locationStrategy.getBaseHref();this._basePath=Qq(f2(g2(i))),this._locationStrategy.onPopState(r=>{this._subject.next({url:this.path(!0),pop:!0,state:r.state,type:r.type})})}ngOnDestroy(){this._urlChangeSubscription?.unsubscribe(),this._urlChangeListeners=[]}path(e=!1){return this.normalize(this._locationStrategy.path(e))}getState(){return this._locationStrategy.getState()}isCurrentPathEqualTo(e,i=""){return this.path()==this.normalize(e+Ea(i))}normalize(e){return t.stripTrailingSlash(Yq(this._basePath,g2(e)))}prepareExternalUrl(e){return e&&e[0]!=="/"&&(e="/"+e),this._locationStrategy.prepareExternalUrl(e)}go(e,i="",r=null){this._locationStrategy.pushState(r,"",e,i),this._notifyUrlChangeListeners(this.prepareExternalUrl(e+Ea(i)),r)}replaceState(e,i="",r=null){this._locationStrategy.replaceState(r,"",e,i),this._notifyUrlChangeListeners(this.prepareExternalUrl(e+Ea(i)),r)}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(i=>{this._notifyUrlChangeListeners(i.url,i.state)}),()=>{let i=this._urlChangeListeners.indexOf(e);this._urlChangeListeners.splice(i,1),this._urlChangeListeners.length===0&&(this._urlChangeSubscription?.unsubscribe(),this._urlChangeSubscription=null)}}_notifyUrlChangeListeners(e="",i){this._urlChangeListeners.forEach(r=>r(e,i))}subscribe(e,i,r){return this._subject.subscribe({next:e,error:i??void 0,complete:r??void 0})}static normalizeQueryParams=Ea;static joinWithSlash=N0;static stripTrailingSlash=f2;static \u0275fac=function(i){return new(i||t)(fe(Ma))};static \u0275prov=R({token:t,factory:()=>qq(),providedIn:"root"})}return t})();function qq(){return new ms(fe(Ma))}function Yq(t,n){if(!t||!n.startsWith(t))return n;let e=n.substring(t.length);return e===""||["/",";","?","#"].includes(e[0])?e:n}function g2(t){return t.replace(/\/index.html$/,"")}function Qq(t){if(new RegExp("^(https?:)?//").test(t)){let[,e]=t.split(/\/\/[^\/]+/);return e}return t}var hM=(()=>{class t extends Ma{_platformLocation;_baseHref="";_removeListenerFns=[];constructor(e,i){super(),this._platformLocation=e,i!=null&&(this._baseHref=i)}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 i=this._platformLocation.hash??"#";return i.length>0?i.substring(1):i}prepareExternalUrl(e){let i=N0(this._baseHref,e);return i.length>0?"#"+i:i}pushState(e,i,r,o){let a=this.prepareExternalUrl(r+Ea(o))||this._platformLocation.pathname;this._platformLocation.pushState(e,i,a)}replaceState(e,i,r,o){let a=this.prepareExternalUrl(r+Ea(o))||this._platformLocation.pathname;this._platformLocation.replaceState(e,i,a)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}getState(){return this._platformLocation.getState()}historyGo(e=0){this._platformLocation.historyGo?.(e)}static \u0275fac=function(i){return new(i||t)(fe(ff),fe(L0,8))};static \u0275prov=R({token:t,factory:t.\u0275fac})}return t})(),E2={ADP:[void 0,void 0,0],AFN:[void 0,"\u060B",0],ALL:[void 0,void 0,0],AMD:[void 0,"\u058F",2],AOA:[void 0,"Kz"],ARS:[void 0,"$"],AUD:["A$","$"],AZN:[void 0,"\u20BC"],BAM:[void 0,"KM"],BBD:[void 0,"$"],BDT:[void 0,"\u09F3"],BHD:[void 0,void 0,3],BIF:[void 0,void 0,0],BMD:[void 0,"$"],BND:[void 0,"$"],BOB:[void 0,"Bs"],BRL:["R$"],BSD:[void 0,"$"],BWP:[void 0,"P"],BYN:[void 0,void 0,2],BYR:[void 0,void 0,0],BZD:[void 0,"$"],CAD:["CA$","$",2],CHF:[void 0,void 0,2],CLF:[void 0,void 0,4],CLP:[void 0,"$",0],CNY:["CN\xA5","\xA5"],COP:[void 0,"$",2],CRC:[void 0,"\u20A1",2],CUC:[void 0,"$"],CUP:[void 0,"$"],CZK:[void 0,"K\u010D",2],DJF:[void 0,void 0,0],DKK:[void 0,"kr",2],DOP:[void 0,"$"],EGP:[void 0,"E\xA3"],ESP:[void 0,"\u20A7",0],EUR:["\u20AC"],FJD:[void 0,"$"],FKP:[void 0,"\xA3"],GBP:["\xA3"],GEL:[void 0,"\u20BE"],GHS:[void 0,"GH\u20B5"],GIP:[void 0,"\xA3"],GNF:[void 0,"FG",0],GTQ:[void 0,"Q"],GYD:[void 0,"$",2],HKD:["HK$","$"],HNL:[void 0,"L"],HRK:[void 0,"kn"],HUF:[void 0,"Ft",2],IDR:[void 0,"Rp",2],ILS:["\u20AA"],INR:["\u20B9"],IQD:[void 0,void 0,0],IRR:[void 0,void 0,0],ISK:[void 0,"kr",0],ITL:[void 0,void 0,0],JMD:[void 0,"$"],JOD:[void 0,void 0,3],JPY:["\xA5",void 0,0],KHR:[void 0,"\u17DB"],KMF:[void 0,"CF",0],KPW:[void 0,"\u20A9",0],KRW:["\u20A9",void 0,0],KWD:[void 0,void 0,3],KYD:[void 0,"$"],KZT:[void 0,"\u20B8"],LAK:[void 0,"\u20AD",0],LBP:[void 0,"L\xA3",0],LKR:[void 0,"Rs"],LRD:[void 0,"$"],LTL:[void 0,"Lt"],LUF:[void 0,void 0,0],LVL:[void 0,"Ls"],LYD:[void 0,void 0,3],MGA:[void 0,"Ar",0],MGF:[void 0,void 0,0],MMK:[void 0,"K",0],MNT:[void 0,"\u20AE",2],MRO:[void 0,void 0,0],MUR:[void 0,"Rs",2],MXN:["MX$","$"],MYR:[void 0,"RM"],NAD:[void 0,"$"],NGN:[void 0,"\u20A6"],NIO:[void 0,"C$"],NOK:[void 0,"kr",2],NPR:[void 0,"Rs"],NZD:["NZ$","$"],OMR:[void 0,void 0,3],PHP:["\u20B1"],PKR:[void 0,"Rs",2],PLN:[void 0,"z\u0142"],PYG:[void 0,"\u20B2",0],RON:[void 0,"lei"],RSD:[void 0,void 0,0],RUB:[void 0,"\u20BD"],RWF:[void 0,"RF",0],SBD:[void 0,"$"],SEK:[void 0,"kr",2],SGD:[void 0,"$"],SHP:[void 0,"\xA3"],SLE:[void 0,void 0,2],SLL:[void 0,void 0,0],SOS:[void 0,void 0,0],SRD:[void 0,"$"],SSP:[void 0,"\xA3"],STD:[void 0,void 0,0],STN:[void 0,"Db"],SYP:[void 0,"\xA3",0],THB:[void 0,"\u0E3F"],TMM:[void 0,void 0,0],TND:[void 0,void 0,3],TOP:[void 0,"T$"],TRL:[void 0,void 0,0],TRY:[void 0,"\u20BA"],TTD:[void 0,"$"],TWD:["NT$","$",2],TZS:[void 0,void 0,2],UAH:[void 0,"\u20B4"],UGX:[void 0,void 0,0],USD:["$"],UYI:[void 0,void 0,0],UYU:[void 0,"$"],UYW:[void 0,void 0,4],UZS:[void 0,void 0,2],VEF:[void 0,"Bs",2],VND:["\u20AB",void 0,0],VUV:[void 0,void 0,0],XAF:["FCFA",void 0,0],XCD:["EC$","$"],XOF:["F\u202FCFA",void 0,0],XPF:["CFPF",void 0,0],XXX:["\xA4"],YER:[void 0,void 0,0],ZAR:[void 0,"R"],ZMK:[void 0,void 0,0],ZMW:[void 0,"ZK"],ZWD:[void 0,void 0,0]},Y0=(function(t){return t[t.Decimal=0]="Decimal",t[t.Percent=1]="Percent",t[t.Currency=2]="Currency",t[t.Scientific=3]="Scientific",t})(Y0||{});var br=(function(t){return t[t.Format=0]="Format",t[t.Standalone=1]="Standalone",t})(br||{}),pi=(function(t){return t[t.Narrow=0]="Narrow",t[t.Abbreviated=1]="Abbreviated",t[t.Wide=2]="Wide",t[t.Short=3]="Short",t})(pi||{}),Xr=(function(t){return t[t.Short=0]="Short",t[t.Medium=1]="Medium",t[t.Long=2]="Long",t[t.Full=3]="Full",t})(Xr||{}),Kn={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 M2(t){return Pr(t)[$i.LocaleId]}function S2(t,n,e){let i=Pr(t),r=[i[$i.DayPeriodsFormat],i[$i.DayPeriodsStandalone]],o=Qo(r,n);return Qo(o,e)}function k2(t,n,e){let i=Pr(t),r=[i[$i.DaysFormat],i[$i.DaysStandalone]],o=Qo(r,n);return Qo(o,e)}function T2(t,n,e){let i=Pr(t),r=[i[$i.MonthsFormat],i[$i.MonthsStandalone]],o=Qo(r,n);return Qo(o,e)}function I2(t,n){let i=Pr(t)[$i.Eras];return Qo(i,n)}function gf(t,n){let e=Pr(t);return Qo(e[$i.DateFormat],n)}function _f(t,n){let e=Pr(t);return Qo(e[$i.TimeFormat],n)}function bf(t,n){let i=Pr(t)[$i.DateTimeFormat];return Qo(i,n)}function ka(t,n){let e=Pr(t),i=e[$i.NumberSymbols][n];if(typeof i>"u"){if(n===Kn.CurrencyDecimal)return e[$i.NumberSymbols][Kn.Decimal];if(n===Kn.CurrencyGroup)return e[$i.NumberSymbols][Kn.Group]}return i}function pM(t,n){return Pr(t)[$i.NumberFormats][n]}function Kq(t){return Pr(t)[$i.Currencies]}function A2(t){if(!t[$i.ExtraData])throw new me(2303,!1)}function O2(t){let n=Pr(t);return A2(n),(n[$i.ExtraData][2]||[]).map(i=>typeof i=="string"?oM(i):[oM(i[0]),oM(i[1])])}function R2(t,n,e){let i=Pr(t);A2(i);let r=[i[$i.ExtraData][0],i[$i.ExtraData][1]],o=Qo(r,n)||[];return Qo(o,e)||[]}function Qo(t,n){for(let e=n;e>-1;e--)if(typeof t[e]<"u")return t[e];throw new me(2304,!1)}function oM(t){let[n,e]=t.split(":");return{hours:+n,minutes:+e}}function P2(t,n,e="en"){let i=Kq(e)[t]||E2[t]||[],r=i[1];return n==="narrow"&&typeof r=="string"?r:i[0]||t}var Zq=2;function F2(t){let n,e=E2[t];return e&&(n=e[2]),typeof n=="number"?n:Zq}var Xq=/^(\d{4,})-?(\d\d)-?(\d\d)(?:T(\d\d)(?::?(\d\d)(?::?(\d\d)(?:\.(\d+))?)?)?(Z|([+-])(\d\d):?(\d\d))?)?$/,B0={},Jq=/((?:[^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]*)/;function N2(t,n,e,i){let r=lY(t);n=il(e,n)||n;let a=[],s;for(;n;)if(s=Jq.exec(n),s){a=a.concat(s.slice(1));let d=a.pop();if(!d)break;n=d}else{a.push(n);break}let l=r.getTimezoneOffset();i&&(l=V2(i,l),r=sY(r,i));let c="";return a.forEach(d=>{let p=oY(d);c+=p?p(r,e,l):d==="''"?"'":d.replace(/(^'|'$)/g,"").replace(/''/g,"'")}),c}function $0(t,n,e){let i=new Date(0);return i.setFullYear(t,n,e),i.setHours(0,0,0),i}function il(t,n){let e=M2(t);if(B0[e]??={},B0[e][n])return B0[e][n];let i="";switch(n){case"shortDate":i=gf(t,Xr.Short);break;case"mediumDate":i=gf(t,Xr.Medium);break;case"longDate":i=gf(t,Xr.Long);break;case"fullDate":i=gf(t,Xr.Full);break;case"shortTime":i=_f(t,Xr.Short);break;case"mediumTime":i=_f(t,Xr.Medium);break;case"longTime":i=_f(t,Xr.Long);break;case"fullTime":i=_f(t,Xr.Full);break;case"short":let r=il(t,"shortTime"),o=il(t,"shortDate");i=j0(bf(t,Xr.Short),[r,o]);break;case"medium":let a=il(t,"mediumTime"),s=il(t,"mediumDate");i=j0(bf(t,Xr.Medium),[a,s]);break;case"long":let l=il(t,"longTime"),c=il(t,"longDate");i=j0(bf(t,Xr.Long),[l,c]);break;case"full":let d=il(t,"fullTime"),p=il(t,"fullDate");i=j0(bf(t,Xr.Full),[d,p]);break}return i&&(B0[e][n]=i),i}function j0(t,n){return n&&(t=t.replace(/\{([^}]+)}/g,function(e,i){return n!=null&&i in n?n[i]:e})),t}function Sa(t,n,e="-",i,r){let o="";(t<0||r&&t<=0)&&(r?t=-t+1:(t=-t,o=e));let a=String(t);for(;a.length0||s>-e)&&(s+=e),t===3)s===0&&e===-12&&(s=12);else if(t===6)return eY(s,n);let l=ka(a,Kn.MinusSign);return Sa(s,n,l,i,r)}}function tY(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 me(2301,!1)}}function Mi(t,n,e=br.Format,i=!1){return function(r,o){return iY(r,o,t,n,e,i)}}function iY(t,n,e,i,r,o){switch(e){case 2:return T2(n,r,i)[t.getMonth()];case 1:return k2(n,r,i)[t.getDay()];case 0:let a=t.getHours(),s=t.getMinutes();if(o){let c=O2(n),d=R2(n,r,i),p=c.findIndex(_=>{if(Array.isArray(_)){let[b,y]=_,w=a>=b.hours&&s>=b.minutes,C=a0?Math.floor(r/60):Math.ceil(r/60);switch(t){case 0:return(r>=0?"+":"")+Sa(a,2,o)+Sa(Math.abs(r%60),2,o);case 1:return"GMT"+(r>=0?"+":"")+Sa(a,1,o);case 2:return"GMT"+(r>=0?"+":"")+Sa(a,2,o)+":"+Sa(Math.abs(r%60),2,o);case 3:return i===0?"Z":(r>=0?"+":"")+Sa(a,2,o)+":"+Sa(Math.abs(r%60),2,o);default:throw new me(2310,!1)}}}var nY=0,U0=4;function rY(t){let n=$0(t,nY,1).getDay();return $0(t,0,1+(n<=U0?U0:U0+7)-n)}function L2(t){let n=t.getDay(),e=n===0?-3:U0-n;return $0(t.getFullYear(),t.getMonth(),t.getDate()+e)}function aM(t,n=!1){return function(e,i){let r;if(n){let o=new Date(e.getFullYear(),e.getMonth(),1).getDay()-1,a=e.getDate();r=1+Math.floor((a+o)/7)}else{let o=L2(e),a=rY(o.getFullYear()),s=o.getTime()-a.getTime();r=1+Math.round(s/6048e5)}return Sa(r,t,ka(i,Kn.MinusSign))}}function z0(t,n=!1){return function(e,i){let o=L2(e).getFullYear();return Sa(o,t,ka(i,Kn.MinusSign),n)}}var sM={};function oY(t){if(sM[t])return sM[t];let n;switch(t){case"G":case"GG":case"GGG":n=Mi(3,pi.Abbreviated);break;case"GGGG":n=Mi(3,pi.Wide);break;case"GGGGG":n=Mi(3,pi.Narrow);break;case"y":n=hn(0,1,0,!1,!0);break;case"yy":n=hn(0,2,0,!0,!0);break;case"yyy":n=hn(0,3,0,!1,!0);break;case"yyyy":n=hn(0,4,0,!1,!0);break;case"Y":n=z0(1);break;case"YY":n=z0(2,!0);break;case"YYY":n=z0(3);break;case"YYYY":n=z0(4);break;case"M":case"L":n=hn(1,1,1);break;case"MM":case"LL":n=hn(1,2,1);break;case"MMM":n=Mi(2,pi.Abbreviated);break;case"MMMM":n=Mi(2,pi.Wide);break;case"MMMMM":n=Mi(2,pi.Narrow);break;case"LLL":n=Mi(2,pi.Abbreviated,br.Standalone);break;case"LLLL":n=Mi(2,pi.Wide,br.Standalone);break;case"LLLLL":n=Mi(2,pi.Narrow,br.Standalone);break;case"w":n=aM(1);break;case"ww":n=aM(2);break;case"W":n=aM(1,!0);break;case"d":n=hn(2,1);break;case"dd":n=hn(2,2);break;case"c":case"cc":n=hn(7,1);break;case"ccc":n=Mi(1,pi.Abbreviated,br.Standalone);break;case"cccc":n=Mi(1,pi.Wide,br.Standalone);break;case"ccccc":n=Mi(1,pi.Narrow,br.Standalone);break;case"cccccc":n=Mi(1,pi.Short,br.Standalone);break;case"E":case"EE":case"EEE":n=Mi(1,pi.Abbreviated);break;case"EEEE":n=Mi(1,pi.Wide);break;case"EEEEE":n=Mi(1,pi.Narrow);break;case"EEEEEE":n=Mi(1,pi.Short);break;case"a":case"aa":case"aaa":n=Mi(0,pi.Abbreviated);break;case"aaaa":n=Mi(0,pi.Wide);break;case"aaaaa":n=Mi(0,pi.Narrow);break;case"b":case"bb":case"bbb":n=Mi(0,pi.Abbreviated,br.Standalone,!0);break;case"bbbb":n=Mi(0,pi.Wide,br.Standalone,!0);break;case"bbbbb":n=Mi(0,pi.Narrow,br.Standalone,!0);break;case"B":case"BB":case"BBB":n=Mi(0,pi.Abbreviated,br.Format,!0);break;case"BBBB":n=Mi(0,pi.Wide,br.Format,!0);break;case"BBBBB":n=Mi(0,pi.Narrow,br.Format,!0);break;case"h":n=hn(3,1,-12);break;case"hh":n=hn(3,2,-12);break;case"H":n=hn(3,1);break;case"HH":n=hn(3,2);break;case"m":n=hn(4,1);break;case"mm":n=hn(4,2);break;case"s":n=hn(5,1);break;case"ss":n=hn(5,2);break;case"S":n=hn(6,1);break;case"SS":n=hn(6,2);break;case"SSS":n=hn(6,3);break;case"Z":case"ZZ":case"ZZZ":n=H0(0);break;case"ZZZZZ":n=H0(3);break;case"O":case"OO":case"OOO":case"z":case"zz":case"zzz":n=H0(1);break;case"OOOO":case"ZZZZ":case"zzzz":n=H0(2);break;default:return null}return sM[t]=n,n}function V2(t,n){t=t.replace(/:/g,"");let e=Date.parse("Jan 01, 1970 00:00:00 "+t)/6e4;return isNaN(e)?n:e}function aY(t,n){return t=new Date(t.getTime()),t.setMinutes(t.getMinutes()+n),t}function sY(t,n,e){let r=t.getTimezoneOffset(),o=V2(n,r);return aY(t,-1*(o-r))}function lY(t){if(v2(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[r,o=1,a=1]=t.split("-").map(s=>+s);return $0(r,o-1,a)}let e=parseFloat(t);if(!isNaN(t-e))return new Date(e);let i;if(i=t.match(Xq))return cY(i)}let n=new Date(t);if(!v2(n))throw new me(2311,!1);return n}function cY(t){let n=new Date(0),e=0,i=0,r=t[8]?n.setUTCFullYear:n.setFullYear,o=t[8]?n.setUTCHours:n.setHours;t[9]&&(e=Number(t[9]+t[10]),i=Number(t[9]+t[11])),r.call(n,Number(t[1]),Number(t[2])-1,Number(t[3]));let a=Number(t[4]||0)-e,s=Number(t[5]||0)-i,l=Number(t[6]||0),c=Math.floor(parseFloat("0."+(t[7]||0))*1e3);return o.call(n,a,s,l,c),n}function v2(t){return t instanceof Date&&!isNaN(t.valueOf())}var dY=/^(\d+)?\.((\d+)(-(\d+))?)?$/,y2=22,W0=".",vf="0",uY=";",mY=",",lM="#",x2="\xA4";function B2(t,n,e,i,r,o,a=!1){let s="",l=!1;if(!isFinite(t))s=ka(e,Kn.Infinity);else{let c=pY(t);a&&(c=hY(c));let d=n.minInt,p=n.minFrac,_=n.maxFrac;if(o){let F=o.match(dY);if(F===null)throw new me(2306,!1);let W=F[1],Z=F[3],K=F[5];W!=null&&(d=cM(W)),Z!=null&&(p=cM(Z)),K!=null?_=cM(K):Z!=null&&p>_&&(_=p)}fY(c,p,_);let b=c.digits,y=c.integerLen,w=c.exponent,C=[];for(l=b.every(F=>!F);y0?C=b.splice(y,b.length):(C=b,b=[0]);let D=[];for(b.length>=n.lgSize&&D.unshift(b.splice(-n.lgSize,b.length).join(""));b.length>n.gSize;)D.unshift(b.splice(-n.gSize,b.length).join(""));b.length&&D.unshift(b.join("")),s=D.join(ka(e,i)),C.length&&(s+=ka(e,r)+C.join("")),w&&(s+=ka(e,Kn.Exponential)+"+"+w)}return t<0&&!l?s=n.negPre+s+n.negSuf:s=n.posPre+s+n.posSuf,s}function j2(t,n,e,i,r){let o=pM(n,Y0.Currency),a=z2(o,ka(n,Kn.MinusSign));return a.minFrac=F2(i),a.maxFrac=a.minFrac,B2(t,a,n,Kn.CurrencyGroup,Kn.CurrencyDecimal,r).replace(x2,e).replace(x2,"").trim()}function H2(t,n,e){let i=pM(n,Y0.Decimal),r=z2(i,ka(n,Kn.MinusSign));return B2(t,r,n,Kn.Group,Kn.Decimal,e)}function z2(t,n="-"){let e={minInt:1,minFrac:0,maxFrac:0,posPre:"",posSuf:"",negPre:"",negSuf:"",gSize:0,lgSize:0},i=t.split(uY),r=i[0],o=i[1],a=r.indexOf(W0)!==-1?r.split(W0):[r.substring(0,r.lastIndexOf(vf)+1),r.substring(r.lastIndexOf(vf)+1)],s=a[0],l=a[1]||"";e.posPre=s.substring(0,s.indexOf(lM));for(let d=0;d-1&&(n=n.replace(W0,"")),(o=n.search(/e/i))>0?(r<0&&(r=o),r+=+n.slice(o+1),n=n.substring(0,o)):r<0&&(r=n.length),o=0;n.charAt(o)===vf;o++);if(o===(s=n.length))i=[0],r=1;else{for(s--;n.charAt(s)===vf;)s--;for(r-=o,i=[],a=0;o<=s;o++,a++)i[a]=Number(n.charAt(o))}return r>y2&&(i=i.splice(0,y2-1),e=r-1,r=1),{digits:i,exponent:e,integerLen:r}}function fY(t,n,e){if(n>e)throw new me(2307,!1);let i=t.digits,r=i.length-t.integerLen,o=Math.min(Math.max(n,r),e),a=o+t.integerLen,s=i[a];if(a>0){i.splice(Math.max(t.integerLen,a));for(let p=a;p=5)if(a-1<0){for(let p=0;p>a;p--)i.unshift(0),t.integerLen++;i.unshift(1),t.integerLen++}else i[a-1]++;for(;r=c?y.pop():l=!1),_>=10?1:0},0);d&&(i.unshift(d),t.integerLen++)}function cM(t){let n=parseInt(t);if(isNaN(n))throw new me(2305,!1);return n}var dM=/\s+/,C2=[],Bd=(()=>{class t{_ngEl;_renderer;initialClasses=C2;rawClass;stateMap=new Map;constructor(e,i){this._ngEl=e,this._renderer=i}set klass(e){this.initialClasses=e!=null?e.trim().split(dM):C2}set ngClass(e){this.rawClass=typeof e=="string"?e.trim().split(dM):e}ngDoCheck(){for(let i of this.initialClasses)this._updateState(i,!0);let e=this.rawClass;if(Array.isArray(e)||e instanceof Set)for(let i of e)this._updateState(i,!0);else if(e!=null)for(let i of Object.keys(e))this._updateState(i,!!e[i]);this._applyStateDiff()}_updateState(e,i){let r=this.stateMap.get(e);r!==void 0?(r.enabled!==i&&(r.changed=!0,r.enabled=i),r.touched=!0):this.stateMap.set(e,{enabled:i,changed:!0,touched:!0})}_applyStateDiff(){for(let e of this.stateMap){let i=e[0],r=e[1];r.changed?(this._toggleClass(i,r.enabled),r.changed=!1):r.touched||(r.enabled&&this._toggleClass(i,!1),this.stateMap.delete(i)),r.touched=!1}}_toggleClass(e,i){e=e.trim(),e.length>0&&e.split(dM).forEach(r=>{i?this._renderer.addClass(this._ngEl.nativeElement,r):this._renderer.removeClass(this._ngEl.nativeElement,r)})}static \u0275fac=function(i){return new(i||t)(be(Y),be(ze))};static \u0275dir=P({type:t,selectors:[["","ngClass",""]],inputs:{klass:[0,"class","klass"],ngClass:"ngClass"}})}return t})();var G0=class{$implicit;ngForOf;index;count;constructor(n,e,i,r){this.$implicit=n,this.ngForOf=e,this.index=i,this.count=r}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}},vr=(()=>{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,i,r){this._viewContainer=e,this._template=i,this._differs=r}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 i=this._viewContainer;e.forEachOperation((r,o,a)=>{if(r.previousIndex==null)i.createEmbeddedView(this._template,new G0(r.item,this._ngForOf,-1,-1),a===null?void 0:a);else if(a==null)i.remove(o===null?void 0:o);else if(o!==null){let s=i.get(o);i.move(s,a),w2(s,r)}});for(let r=0,o=i.length;r{let o=i.get(r.currentIndex);w2(o,r)})}static ngTemplateContextGuard(e,i){return!0}static \u0275fac=function(i){return new(i||t)(be(ot),be(te),be(us))};static \u0275dir=P({type:t,selectors:[["","ngFor","","ngForOf",""]],inputs:{ngForOf:"ngForOf",ngForTrackBy:"ngForTrackBy",ngForTemplate:"ngForTemplate"}})}return t})();function w2(t,n){t.context.$implicit=n.item}var Jt=(()=>{class t{_viewContainer;_context=new q0;_thenTemplateRef=null;_elseTemplateRef=null;_thenViewRef=null;_elseViewRef=null;constructor(e,i){this._viewContainer=e,this._thenTemplateRef=i}set ngIf(e){this._context.$implicit=this._context.ngIf=e,this._updateView()}set ngIfThen(e){D2(e,!1),this._thenTemplateRef=e,this._thenViewRef=null,this._updateView()}set ngIfElse(e){D2(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,i){return!0}static \u0275fac=function(i){return new(i||t)(be(ot),be(te))};static \u0275dir=P({type:t,selectors:[["","ngIf",""]],inputs:{ngIf:"ngIf",ngIfThen:"ngIfThen",ngIfElse:"ngIfElse"}})}return t})(),q0=class{$implicit=null;ngIf=null};function D2(t,n){if(t&&!t.createEmbeddedView)throw new me(2020,!1)}var Ln=(()=>{class t{_viewContainerRef;_viewRef=null;ngTemplateOutletContext=null;ngTemplateOutlet=null;ngTemplateOutletInjector=null;constructor(e){this._viewContainerRef=e}ngOnChanges(e){if(this._shouldRecreateView(e)){let i=this._viewContainerRef;if(this._viewRef&&i.remove(i.indexOf(this._viewRef)),!this.ngTemplateOutlet){this._viewRef=null;return}let r=this._createContextForwardProxy();this._viewRef=i.createEmbeddedView(this.ngTemplateOutlet,r,{injector:this.ngTemplateOutletInjector??void 0})}}_shouldRecreateView(e){return!!e.ngTemplateOutlet||!!e.ngTemplateOutletInjector}_createContextForwardProxy(){return new Proxy({},{set:(e,i,r)=>this.ngTemplateOutletContext?Reflect.set(this.ngTemplateOutletContext,i,r):!1,get:(e,i,r)=>{if(this.ngTemplateOutletContext)return Reflect.get(this.ngTemplateOutletContext,i,r)}})}static \u0275fac=function(i){return new(i||t)(be(ot))};static \u0275dir=P({type:t,selectors:[["","ngTemplateOutlet",""]],inputs:{ngTemplateOutletContext:"ngTemplateOutletContext",ngTemplateOutlet:"ngTemplateOutlet",ngTemplateOutletInjector:"ngTemplateOutletInjector"},features:[Ae]})}return t})();function yf(t,n){return new me(2100,!1)}var uM=class{createSubscription(n,e,i){return Ai(()=>n.subscribe({next:e,error:i}))}dispose(n){Ai(()=>n.unsubscribe())}},mM=class{createSubscription(n,e,i){return n.then(r=>e?.(r),r=>i?.(r)),{unsubscribe:()=>{e=null,i=null}}}dispose(n){n.unsubscribe()}},gY=new mM,_Y=new uM,sn=(()=>{class t{_ref;_latestValue=null;markForCheckOnValueUpdate=!0;_subscription=null;_obj=null;_strategy=null;applicationErrorHandler=u(fr);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,i=>this._updateLatestValue(e,i),i=>this.applicationErrorHandler(i))}_selectStrategy(e){if(Js(e))return gY;if(k0(e))return _Y;throw yf(t,e)}_dispose(){this._strategy.dispose(this._subscription),this._latestValue=null,this._subscription=null,this._obj=null}_updateLatestValue(e,i){e===this._obj&&(this._latestValue=i,this.markForCheckOnValueUpdate&&this._ref?.markForCheck())}static \u0275fac=function(i){return new(i||t)(be(ye,16))};static \u0275pipe=Kr({name:"async",type:t,pure:!1})}return t})();var bY="mediumDate",U2=new O(""),$2=new O(""),Ta=(()=>{class t{locale;defaultTimezone;defaultOptions;constructor(e,i,r){this.locale=e,this.defaultTimezone=i,this.defaultOptions=r}transform(e,i,r,o){if(e==null||e===""||e!==e)return null;try{let a=i??this.defaultOptions?.dateFormat??bY,s=r??this.defaultOptions?.timezone??this.defaultTimezone??void 0;return N2(e,a,o||this.locale,s)}catch(a){throw yf(t,a.message)}}static \u0275fac=function(i){return new(i||t)(be(tl,16),be(U2,24),be($2,24))};static \u0275pipe=Kr({name:"date",type:t,pure:!0})}return t})();var jd=(()=>{class t{_locale;constructor(e){this._locale=e}transform(e,i,r){if(!W2(e))return null;r||=this._locale;try{let o=G2(e);return H2(o,r,i)}catch(o){throw yf(t,o.message)}}static \u0275fac=function(i){return new(i||t)(be(tl,16))};static \u0275pipe=Kr({name:"number",type:t,pure:!0})}return t})();var nl=(()=>{class t{_locale;_defaultCurrencyCode;constructor(e,i="USD"){this._locale=e,this._defaultCurrencyCode=i}transform(e,i=this._defaultCurrencyCode,r="symbol",o,a){if(!W2(e))return null;a||=this._locale,typeof r=="boolean"&&(r=r?"symbol":"code");let s=i||this._defaultCurrencyCode;r!=="code"&&(r==="symbol"||r==="symbol-narrow"?s=P2(s,r==="symbol"?"wide":"narrow",a):s=r);try{let l=G2(e);return j2(l,a,s,i,o)}catch(l){throw yf(t,l.message)}}static \u0275fac=function(i){return new(i||t)(be(tl,16),be(G1,16))};static \u0275pipe=Kr({name:"currency",type:t,pure:!0})}return t})();function W2(t){return!(t==null||t===""||t!==t)}function G2(t){if(typeof t=="string"&&!isNaN(Number(t)-parseFloat(t)))return Number(t);if(typeof t!="number")throw new me(2309,!1);return t}var fM=(()=>{class t{transform(e,i,r){if(e==null)return null;if(!(typeof e=="string"||Array.isArray(e)))throw yf(t,e);return e.slice(i,r)}static \u0275fac=function(i){return new(i||t)};static \u0275pipe=Kr({name:"slice",type:t,pure:!1})}return t})();var ut=(()=>{class t{static \u0275fac=function(i){return new(i||t)};static \u0275mod=ee({type:t});static \u0275inj=J({})}return t})();function xf(t,n){n=encodeURIComponent(n);for(let e of t.split(";")){let i=e.indexOf("="),[r,o]=i==-1?[e,""]:[e.slice(0,i),e.slice(i+1)];if(r.trim()===n)return decodeURIComponent(o)}return null}var Hd=class{};var _M="browser",vY="server";function q2(t){return t===_M}function Y2(t){return t===vY}var bM=(()=>{class t{static \u0275prov=R({token:t,providedIn:"root",factory:()=>new gM(u(_e),window)})}return t})(),gM=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(Ee(k({},e),{left:n[0],top:n[1]}))}scrollToAnchor(n,e){let i=yY(this.document,n);i&&(this.scrollToElement(i,e),i.focus())}setHistoryScrollRestoration(n){try{this.window.history.scrollRestoration=n}catch{console.warn(Vo(2400,!1))}}scrollToElement(n,e){let i=n.getBoundingClientRect(),r=i.left+this.window.pageXOffset,o=i.top+this.window.pageYOffset,a=this.offset();this.window.scrollTo(Ee(k({},e),{left:r-a[0],top:o-a[1]}))}};function yY(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 i=t.createTreeWalker(t.body,NodeFilter.SHOW_ELEMENT),r=i.currentNode;for(;r;){let o=r.shadowRoot;if(o){let a=o.getElementById(n)||o.querySelector(`[name="${n}"]`);if(a)return a}r=i.nextNode()}}return null}var Cf=class{_doc;constructor(n){this._doc=n}manager},Q0=(()=>{class t extends Cf{constructor(e){super(e)}supports(e){return!0}addEventListener(e,i,r,o){return e.addEventListener(i,r,o),()=>this.removeEventListener(e,i,r,o)}removeEventListener(e,i,r,o){return e.removeEventListener(i,r,o)}static \u0275fac=function(i){return new(i||t)(fe(_e))};static \u0275prov=R({token:t,factory:t.\u0275fac})}return t})(),Z0=new O(""),wM=(()=>{class t{_zone;_plugins;_eventNameToPlugin=new Map;constructor(e,i){this._zone=i,e.forEach(a=>{a.manager=this});let r=e.filter(a=>!(a instanceof Q0));this._plugins=r.slice().reverse();let o=e.find(a=>a instanceof Q0);o&&this._plugins.push(o)}addEventListener(e,i,r,o){return this._findPluginFor(i).addEventListener(e,i,r,o)}getZone(){return this._zone}_findPluginFor(e){let i=this._eventNameToPlugin.get(e);if(i)return i;if(i=this._plugins.find(o=>o.supports(e)),!i)throw new me(5101,!1);return this._eventNameToPlugin.set(e,i),i}static \u0275fac=function(i){return new(i||t)(fe(Z0),fe(ae))};static \u0275prov=R({token:t,factory:t.\u0275fac})}return t})(),vM="ng-app-id";function Q2(t){for(let n of t)n.remove()}function K2(t,n){let e=n.createElement("style");return e.textContent=t,e}function xY(t,n,e,i){let r=t.head?.querySelectorAll(`style[${vM}="${n}"],link[${vM}="${n}"]`);if(r)for(let o of r)o.removeAttribute(vM),o instanceof HTMLLinkElement?i.set(o.href.slice(o.href.lastIndexOf("/")+1),{usage:0,elements:[o]}):o.textContent&&e.set(o.textContent,{usage:0,elements:[o]})}function xM(t,n){let e=n.createElement("link");return e.setAttribute("rel","stylesheet"),e.setAttribute("href",t),e}var DM=(()=>{class t{doc;appId;nonce;inline=new Map;external=new Map;hosts=new Set;constructor(e,i,r,o={}){this.doc=e,this.appId=i,this.nonce=r,xY(e,i,this.inline,this.external),this.hosts.add(e.head)}addStyles(e,i){for(let r of e)this.addUsage(r,this.inline,K2);i?.forEach(r=>this.addUsage(r,this.external,xM))}removeStyles(e,i){for(let r of e)this.removeUsage(r,this.inline);i?.forEach(r=>this.removeUsage(r,this.external))}addUsage(e,i,r){let o=i.get(e);o?o.usage++:i.set(e,{usage:1,elements:[...this.hosts].map(a=>this.addElement(a,r(e,this.doc)))})}removeUsage(e,i){let r=i.get(e);r&&(r.usage--,r.usage<=0&&(Q2(r.elements),i.delete(e)))}ngOnDestroy(){for(let[,{elements:e}]of[...this.inline,...this.external])Q2(e);this.hosts.clear()}addHost(e){this.hosts.add(e);for(let[i,{elements:r}]of this.inline)r.push(this.addElement(e,K2(i,this.doc)));for(let[i,{elements:r}]of this.external)r.push(this.addElement(e,xM(i,this.doc)))}removeHost(e){this.hosts.delete(e)}addElement(e,i){return this.nonce&&i.setAttribute("nonce",this.nonce),e.appendChild(i)}static \u0275fac=function(i){return new(i||t)(fe(_e),fe(Ql),fe(xm,8),fe(Zs))};static \u0275prov=R({token:t,factory:t.\u0275fac})}return t})(),yM={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"},EM=/%COMP%/g;var X2="%COMP%",CY=`_nghost-${X2}`,wY=`_ngcontent-${X2}`,DY=!0,EY=new O("",{providedIn:"root",factory:()=>DY});function MY(t){return wY.replace(EM,t)}function SY(t){return CY.replace(EM,t)}function J2(t,n){return n.map(e=>e.replace(EM,t))}var MM=(()=>{class t{eventManager;sharedStylesHost;appId;removeStylesOnCompDestroy;doc;ngZone;nonce;tracingService;rendererByCompId=new Map;defaultRenderer;platformIsServer;constructor(e,i,r,o,a,s,l=null,c=null){this.eventManager=e,this.sharedStylesHost=i,this.appId=r,this.removeStylesOnCompDestroy=o,this.doc=a,this.ngZone=s,this.nonce=l,this.tracingService=c,this.platformIsServer=!1,this.defaultRenderer=new wf(e,a,s,this.platformIsServer,this.tracingService)}createRenderer(e,i){if(!e||!i)return this.defaultRenderer;let r=this.getOrCreateRenderer(e,i);return r instanceof K0?r.applyToHost(e):r instanceof Df&&r.applyStyles(),r}getOrCreateRenderer(e,i){let r=this.rendererByCompId,o=r.get(i.id);if(!o){let a=this.doc,s=this.ngZone,l=this.eventManager,c=this.sharedStylesHost,d=this.removeStylesOnCompDestroy,p=this.platformIsServer,_=this.tracingService;switch(i.encapsulation){case Qs.Emulated:o=new K0(l,c,i,this.appId,d,a,s,p,_);break;case Qs.ShadowDom:return new CM(l,c,e,i,a,s,this.nonce,p,_);default:o=new Df(l,c,i,d,a,s,p,_);break}r.set(i.id,o)}return o}ngOnDestroy(){this.rendererByCompId.clear()}componentReplaced(e){this.rendererByCompId.delete(e)}static \u0275fac=function(i){return new(i||t)(fe(wM),fe(DM),fe(Ql),fe(EY),fe(_e),fe(ae),fe(xm),fe(Kl,8))};static \u0275prov=R({token:t,factory:t.\u0275fac})}return t})(),wf=class{eventManager;doc;ngZone;platformIsServer;tracingService;data=Object.create(null);throwOnSyntheticProps=!0;constructor(n,e,i,r,o){this.eventManager=n,this.doc=e,this.ngZone=i,this.platformIsServer=r,this.tracingService=o}destroy(){}destroyNode=null;createElement(n,e){return e?this.doc.createElementNS(yM[e]||e,n):this.doc.createElement(n)}createComment(n){return this.doc.createComment(n)}createText(n){return this.doc.createTextNode(n)}appendChild(n,e){(Z2(n)?n.content:n).appendChild(e)}insertBefore(n,e,i){n&&(Z2(n)?n.content:n).insertBefore(e,i)}removeChild(n,e){e.remove()}selectRootElement(n,e){let i=typeof n=="string"?this.doc.querySelector(n):n;if(!i)throw new me(-5104,!1);return e||(i.textContent=""),i}parentNode(n){return n.parentNode}nextSibling(n){return n.nextSibling}setAttribute(n,e,i,r){if(r){e=r+":"+e;let o=yM[r];o?n.setAttributeNS(o,e,i):n.setAttribute(e,i)}else n.setAttribute(e,i)}removeAttribute(n,e,i){if(i){let r=yM[i];r?n.removeAttributeNS(r,e):n.removeAttribute(`${i}:${e}`)}else n.removeAttribute(e)}addClass(n,e){n.classList.add(e)}removeClass(n,e){n.classList.remove(e)}setStyle(n,e,i,r){r&(as.DashCase|as.Important)?n.style.setProperty(e,i,r&as.Important?"important":""):n.style[e]=i}removeStyle(n,e,i){i&as.DashCase?n.style.removeProperty(e):n.style[e]=""}setProperty(n,e,i){n!=null&&(n[e]=i)}setValue(n,e){n.nodeValue=e}listen(n,e,i,r){if(typeof n=="string"&&(n=Yo().getGlobalEventTarget(this.doc,n),!n))throw new me(5102,!1);let o=this.decoratePreventDefault(i);return this.tracingService?.wrapEventListener&&(o=this.tracingService.wrapEventListener(n,e,o)),this.eventManager.addEventListener(n,e,o,r)}decoratePreventDefault(n){return e=>{if(e==="__ngUnwrap__")return n;n(e)===!1&&e.preventDefault()}}};function Z2(t){return t.tagName==="TEMPLATE"&&t.content!==void 0}var CM=class extends wf{sharedStylesHost;hostEl;shadowRoot;constructor(n,e,i,r,o,a,s,l,c){super(n,o,a,l,c),this.sharedStylesHost=e,this.hostEl=i,this.shadowRoot=i.attachShadow({mode:"open"}),this.sharedStylesHost.addHost(this.shadowRoot);let d=r.styles;d=J2(r.id,d);for(let _ of d){let b=document.createElement("style");s&&b.setAttribute("nonce",s),b.textContent=_,this.shadowRoot.appendChild(b)}let p=r.getExternalStyles?.();if(p)for(let _ of p){let b=xM(_,o);s&&b.setAttribute("nonce",s),this.shadowRoot.appendChild(b)}}nodeOrShadowRoot(n){return n===this.hostEl?this.shadowRoot:n}appendChild(n,e){return super.appendChild(this.nodeOrShadowRoot(n),e)}insertBefore(n,e,i){return super.insertBefore(this.nodeOrShadowRoot(n),e,i)}removeChild(n,e){return super.removeChild(null,e)}parentNode(n){return this.nodeOrShadowRoot(super.parentNode(this.nodeOrShadowRoot(n)))}destroy(){this.sharedStylesHost.removeHost(this.shadowRoot)}},Df=class extends wf{sharedStylesHost;removeStylesOnCompDestroy;styles;styleUrls;constructor(n,e,i,r,o,a,s,l,c){super(n,o,a,s,l),this.sharedStylesHost=e,this.removeStylesOnCompDestroy=r;let d=i.styles;this.styles=c?J2(c,d):d,this.styleUrls=i.getExternalStyles?.(c)}applyStyles(){this.sharedStylesHost.addStyles(this.styles,this.styleUrls)}destroy(){this.removeStylesOnCompDestroy&&Od.size===0&&this.sharedStylesHost.removeStyles(this.styles,this.styleUrls)}},K0=class extends Df{contentAttr;hostAttr;constructor(n,e,i,r,o,a,s,l,c){let d=r+"-"+i.id;super(n,e,i,o,a,s,l,c,d),this.contentAttr=MY(d),this.hostAttr=SY(d)}applyToHost(n){this.applyStyles(),this.setAttribute(n,this.hostAttr,"")}createElement(n,e){let i=super.createElement(n,e);return super.setAttribute(i,this.contentAttr,""),i}};var X0=class t extends pf{supportsDOMEvents=!0;static makeCurrent(){nM(new t)}onAndCancel(n,e,i,r){return n.addEventListener(e,i,r),()=>{n.removeEventListener(e,i,r)}}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=kY();return e==null?null:TY(e)}resetBaseElement(){Ef=null}getUserAgent(){return window.navigator.userAgent}getCookie(n){return xf(document.cookie,n)}},Ef=null;function kY(){return Ef=Ef||document.head.querySelector("base"),Ef?Ef.getAttribute("href"):null}function TY(t){return new URL(t,document.baseURI).pathname}var IY=(()=>{class t{build(){return new XMLHttpRequest}static \u0275fac=function(i){return new(i||t)};static \u0275prov=R({token:t,factory:t.\u0275fac})}return t})(),eN=["alt","control","meta","shift"],AY={"\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"},OY={alt:t=>t.altKey,control:t=>t.ctrlKey,meta:t=>t.metaKey,shift:t=>t.shiftKey},tN=(()=>{class t extends Cf{constructor(e){super(e)}supports(e){return t.parseEventName(e)!=null}addEventListener(e,i,r,o){let a=t.parseEventName(i),s=t.eventCallback(a.fullKey,r,this.manager.getZone());return this.manager.getZone().runOutsideAngular(()=>Yo().onAndCancel(e,a.domEventName,s,o))}static parseEventName(e){let i=e.toLowerCase().split("."),r=i.shift();if(i.length===0||!(r==="keydown"||r==="keyup"))return null;let o=t._normalizeKey(i.pop()),a="",s=i.indexOf("code");if(s>-1&&(i.splice(s,1),a="code."),eN.forEach(c=>{let d=i.indexOf(c);d>-1&&(i.splice(d,1),a+=c+".")}),a+=o,i.length!=0||o.length===0)return null;let l={};return l.domEventName=r,l.fullKey=a,l}static matchEventFullKeyCode(e,i){let r=AY[e.key]||e.key,o="";return i.indexOf("code.")>-1&&(r=e.code,o="code."),r==null||!r?!1:(r=r.toLowerCase(),r===" "?r="space":r==="."&&(r="dot"),eN.forEach(a=>{if(a!==r){let s=OY[a];s(e)&&(o+=a+".")}}),o+=r,o===i)}static eventCallback(e,i,r){return o=>{t.matchEventFullKeyCode(o,e)&&r.runGuarded(()=>i(o))}}static _normalizeKey(e){return e==="esc"?"escape":e}static \u0275fac=function(i){return new(i||t)(fe(_e))};static \u0275prov=R({token:t,factory:t.\u0275fac})}return t})();function SM(t,n,e){let i=k({rootComponent:t,platformRef:e?.platformRef},RY(n));return u2(i)}function RY(t){return{appProviders:[...VY,...t?.providers??[]],platformProviders:LY}}function PY(){X0.makeCurrent()}function FY(){return new An}function NY(){return r1(document),document}var LY=[{provide:Zs,useValue:_M},{provide:d0,useValue:PY,multi:!0},{provide:_e,useFactory:NY}];var VY=[{provide:Rp,useValue:"root"},{provide:An,useFactory:FY},{provide:Z0,useClass:Q0,multi:!0,deps:[_e]},{provide:Z0,useClass:tN,multi:!0,deps:[_e]},MM,DM,wM,{provide:mn,useExisting:MM},{provide:Hd,useClass:IY},[]];var Pm=class{},Jl=class{},yr=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 i=e.indexOf(":");if(i>0){let r=e.slice(0,i),o=e.slice(i+1).trim();this.addHeaderEntry(r,o)}})}:typeof Headers<"u"&&n instanceof Headers?(this.headers=new Map,n.forEach((e,i)=>{this.addHeaderEntry(i,e)})):this.lazyInit=()=>{this.headers=new Map,Object.entries(n).forEach(([e,i])=>{this.setHeaderEntries(e,i)})}: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(),Array.from(n.headers.keys()).forEach(e=>{this.headers.set(e,n.headers.get(e)),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 i=n.value;if(typeof i=="string"&&(i=[i]),i.length===0)return;this.maybeSetNormalizedName(n.name,e);let r=(n.op==="a"?this.headers.get(e):void 0)||[];r.push(...i),this.headers.set(e,r);break;case"d":let o=n.value;if(!o)this.headers.delete(e),this.normalizedNames.delete(e);else{let a=this.headers.get(e);if(!a)return;a=a.filter(s=>o.indexOf(s)===-1),a.length===0?(this.headers.delete(e),this.normalizedNames.delete(e)):this.headers.set(e,a)}break}}addHeaderEntry(n,e){let i=n.toLowerCase();this.maybeSetNormalizedName(n,i),this.headers.has(i)?this.headers.get(i).push(e):this.headers.set(i,[e])}setHeaderEntries(n,e){let i=(Array.isArray(e)?e:[e]).map(o=>o.toString()),r=n.toLowerCase();this.headers.set(r,i),this.maybeSetNormalizedName(n,r)}forEach(n){this.init(),Array.from(this.normalizedNames.keys()).forEach(e=>n(this.normalizedNames.get(e),this.headers.get(e)))}};var ev=class{encodeKey(n){return iN(n)}encodeValue(n){return iN(n)}decodeKey(n){return decodeURIComponent(n)}decodeValue(n){return decodeURIComponent(n)}};function BY(t,n){let e=new Map;return t.length>0&&t.replace(/^\?/,"").split("&").forEach(r=>{let o=r.indexOf("="),[a,s]=o==-1?[n.decodeKey(r),""]:[n.decodeKey(r.slice(0,o)),n.decodeValue(r.slice(o+1))],l=e.get(a)||[];l.push(s),e.set(a,l)}),e}var jY=/%(\d[a-f0-9])/gi,HY={40:"@","3A":":",24:"$","2C":",","3B":";","3D":"=","3F":"?","2F":"/"};function iN(t){return encodeURIComponent(t).replace(jY,(n,e)=>HY[e]??n)}function J0(t){return`${t}`}var Zn=class t{map;encoder;updates=null;cloneFrom=null;constructor(n={}){if(this.encoder=n.encoder||new ev,n.fromString){if(n.fromObject)throw new me(2805,!1);this.map=BY(n.fromString,this.encoder)}else n.fromObject?(this.map=new Map,Object.keys(n.fromObject).forEach(e=>{let i=n.fromObject[e],r=Array.isArray(i)?i.map(J0):[J0(i)];this.map.set(e,r)})):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(i=>{let r=n[i];Array.isArray(r)?r.forEach(o=>{e.push({param:i,value:o,op:"a"})}):e.push({param:i,value:r,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(i=>e+"="+this.encoder.encodeValue(i)).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(){this.map===null&&(this.map=new Map),this.cloneFrom!==null&&(this.cloneFrom.init(),this.cloneFrom.keys().forEach(n=>this.map.set(n,this.cloneFrom.map.get(n))),this.updates.forEach(n=>{switch(n.op){case"a":case"s":let e=(n.op==="a"?this.map.get(n.param):void 0)||[];e.push(J0(n.value)),this.map.set(n.param,e);break;case"d":if(n.value!==void 0){let i=this.map.get(n.param)||[],r=i.indexOf(J0(n.value));r!==-1&&i.splice(r,1),i.length>0?this.map.set(n.param,i):this.map.delete(n.param)}else{this.map.delete(n.param);break}}}),this.cloneFrom=this.updates=null)}};var tv=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()}};function zY(t){switch(t){case"DELETE":case"GET":case"HEAD":case"OPTIONS":case"JSONP":return!1;default:return!0}}function nN(t){return typeof ArrayBuffer<"u"&&t instanceof ArrayBuffer}function rN(t){return typeof Blob<"u"&&t instanceof Blob}function oN(t){return typeof FormData<"u"&&t instanceof FormData}function UY(t){return typeof URLSearchParams<"u"&&t instanceof URLSearchParams}var aN="Content-Type",sN="Accept",lN="X-Request-URL",cN="text/plain",dN="application/json",$Y=`${dN}, ${cN}, */*`,Om=class t{url;body=null;headers;context;reportProgress=!1;withCredentials=!1;credentials;keepalive=!1;cache;priority;mode;redirect;referrer;integrity;responseType="json";method;params;urlWithParams;transferCache;timeout;constructor(n,e,i,r){this.url=e,this.method=n.toUpperCase();let o;if(zY(this.method)||r?(this.body=i!==void 0?i:null,o=r):o=i,o){if(this.reportProgress=!!o.reportProgress,this.withCredentials=!!o.withCredentials,this.keepalive=!!o.keepalive,o.responseType&&(this.responseType=o.responseType),o.headers&&(this.headers=o.headers),o.context&&(this.context=o.context),o.params&&(this.params=o.params),o.priority&&(this.priority=o.priority),o.cache&&(this.cache=o.cache),o.credentials&&(this.credentials=o.credentials),typeof o.timeout=="number"){if(o.timeout<1||!Number.isInteger(o.timeout))throw new me(2822,"");this.timeout=o.timeout}o.mode&&(this.mode=o.mode),o.redirect&&(this.redirect=o.redirect),o.integrity&&(this.integrity=o.integrity),o.referrer&&(this.referrer=o.referrer),this.transferCache=o.transferCache}if(this.headers??=new yr,this.context??=new tv,!this.params)this.params=new Zn,this.urlWithParams=e;else{let a=this.params.toString();if(a.length===0)this.urlWithParams=e;else{let s=e.indexOf("?"),l=s===-1?"?":sK.set(oe,n.setHeaders[oe]),F)),n.setParams&&(W=Object.keys(n.setParams).reduce((K,oe)=>K.set(oe,n.setParams[oe]),W)),new t(e,i,w,{params:W,headers:F,context:Z,reportProgress:D,responseType:r,withCredentials:C,transferCache:b,keepalive:o,cache:s,priority:a,timeout:y,mode:l,redirect:c,credentials:d,referrer:p,integrity:_})}},zd=(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})(zd||{}),Fm=class{headers;status;statusText;url;ok;type;redirected;constructor(n,e=200,i="OK"){this.headers=n.headers||new yr,this.status=n.status!==void 0?n.status:e,this.statusText=n.statusText||i,this.url=n.url||null,this.redirected=n.redirected,this.ok=this.status>=200&&this.status<300}},iv=class t extends Fm{constructor(n={}){super(n)}type=zd.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})}},rl=class t extends Fm{body;constructor(n={}){super(n),this.body=n.body!==void 0?n.body:null}type=zd.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})}},Rm=class extends Fm{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}},WY=200,GY=204;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}}var xr=(()=>{class t{handler;constructor(e){this.handler=e}request(e,i,r={}){let o;if(e instanceof Om)o=e;else{let l;r.headers instanceof yr?l=r.headers:l=new yr(r.headers);let c;r.params&&(r.params instanceof Zn?c=r.params:c=new Zn({fromObject:r.params})),o=new Om(e,i,r.body!==void 0?r.body:null,{headers:l,context:r.context,params:c,reportProgress:r.reportProgress,responseType:r.responseType||"json",withCredentials:r.withCredentials,transferCache:r.transferCache,keepalive:r.keepalive,priority:r.priority,cache:r.cache,mode:r.mode,redirect:r.redirect,credentials:r.credentials,referrer:r.referrer,integrity:r.integrity,timeout:r.timeout})}let a=Q(o).pipe(No(l=>this.handler.handle(l)));if(e instanceof Om||r.observe==="events")return a;let s=a.pipe(ce(l=>l instanceof rl));switch(r.observe||"body"){case"body":switch(o.responseType){case"arraybuffer":return s.pipe(se(l=>{if(l.body!==null&&!(l.body instanceof ArrayBuffer))throw new me(2806,!1);return l.body}));case"blob":return s.pipe(se(l=>{if(l.body!==null&&!(l.body instanceof Blob))throw new me(2807,!1);return l.body}));case"text":return s.pipe(se(l=>{if(l.body!==null&&typeof l.body!="string")throw new me(2808,!1);return l.body}));case"json":default:return s.pipe(se(l=>l.body))}case"response":return s;default:throw new me(2809,!1)}}delete(e,i={}){return this.request("DELETE",e,i)}get(e,i={}){return this.request("GET",e,i)}head(e,i={}){return this.request("HEAD",e,i)}jsonp(e,i){return this.request("JSONP",e,{params:new Zn().append(i,"JSONP_CALLBACK"),observe:"body",responseType:"json"})}options(e,i={}){return this.request("OPTIONS",e,i)}patch(e,i,r={}){return this.request("PATCH",e,kM(r,i))}post(e,i,r={}){return this.request("POST",e,kM(r,i))}put(e,i,r={}){return this.request("PUT",e,kM(r,i))}static \u0275fac=function(i){return new(i||t)(fe(Pm))};static \u0275prov=R({token:t,factory:t.\u0275fac})}return t})();var qY=new O("");function YY(t,n){return n(t)}function QY(t,n,e){return(i,r)=>On(e,()=>n(i,o=>t(o,r)))}var IM=new O(""),AM=new O(""),uN=new O(""),mN=new O("",{providedIn:"root",factory:()=>!0});var nv=(()=>{class t extends Pm{backend;injector;chain=null;pendingTasks=u(dm);contributeToStability=u(mN);constructor(e,i){super(),this.backend=e,this.injector=i}handle(e){if(this.chain===null){let i=Array.from(new Set([...this.injector.get(AM),...this.injector.get(uN,[])]));this.chain=i.reduceRight((r,o)=>QY(r,o,this.injector),YY)}if(this.contributeToStability){let i=this.pendingTasks.add();return this.chain(e,r=>this.backend.handle(r)).pipe(Gr(i))}else return this.chain(e,i=>this.backend.handle(i))}static \u0275fac=function(i){return new(i||t)(fe(Jl),fe(Kt))};static \u0275prov=R({token:t,factory:t.\u0275fac})}return t})();var KY=/^\)\]\}',?\n/,ZY=RegExp(`^${lN}:`,"m");function XY(t){return"responseURL"in t&&t.responseURL?t.responseURL:ZY.test(t.getAllResponseHeaders())?t.getResponseHeader(lN):null}var TM=(()=>{class t{xhrFactory;constructor(e){this.xhrFactory=e}handle(e){if(e.method==="JSONP")throw new me(-2800,!1);let i=this.xhrFactory;return Q(null).pipe(je(()=>new Fe(o=>{let a=i.build();if(a.open(e.method,e.urlWithParams),e.withCredentials&&(a.withCredentials=!0),e.headers.forEach((C,D)=>a.setRequestHeader(C,D.join(","))),e.headers.has(sN)||a.setRequestHeader(sN,$Y),!e.headers.has(aN)){let C=e.detectContentTypeHeader();C!==null&&a.setRequestHeader(aN,C)}if(e.timeout&&(a.timeout=e.timeout),e.responseType){let C=e.responseType.toLowerCase();a.responseType=C!=="json"?C:"text"}let s=e.serializeBody(),l=null,c=()=>{if(l!==null)return l;let C=a.statusText||"OK",D=new yr(a.getAllResponseHeaders()),F=XY(a)||e.url;return l=new iv({headers:D,status:a.status,statusText:C,url:F}),l},d=()=>{let{headers:C,status:D,statusText:F,url:W}=c(),Z=null;D!==GY&&(Z=typeof a.response>"u"?a.responseText:a.response),D===0&&(D=Z?WY:0);let K=D>=200&&D<300;if(e.responseType==="json"&&typeof Z=="string"){let oe=Z;Z=Z.replace(KY,"");try{Z=Z!==""?JSON.parse(Z):null}catch(ke){Z=oe,K&&(K=!1,Z={error:ke,text:Z})}}K?(o.next(new rl({body:Z,headers:C,status:D,statusText:F,url:W||void 0})),o.complete()):o.error(new Rm({error:Z,headers:C,status:D,statusText:F,url:W||void 0}))},p=C=>{let{url:D}=c(),F=new Rm({error:C,status:a.status||0,statusText:a.statusText||"Unknown Error",url:D||void 0});o.error(F)},_=p;e.timeout&&(_=C=>{let{url:D}=c(),F=new Rm({error:new DOMException("Request timed out","TimeoutError"),status:a.status||0,statusText:a.statusText||"Request timeout",url:D||void 0});o.error(F)});let b=!1,y=C=>{b||(o.next(c()),b=!0);let D={type:zd.DownloadProgress,loaded:C.loaded};C.lengthComputable&&(D.total=C.total),e.responseType==="text"&&a.responseText&&(D.partialText=a.responseText),o.next(D)},w=C=>{let D={type:zd.UploadProgress,loaded:C.loaded};C.lengthComputable&&(D.total=C.total),o.next(D)};return a.addEventListener("load",d),a.addEventListener("error",p),a.addEventListener("timeout",_),a.addEventListener("abort",p),e.reportProgress&&(a.addEventListener("progress",y),s!==null&&a.upload&&a.upload.addEventListener("progress",w)),a.send(s),o.next({type:zd.Sent}),()=>{a.removeEventListener("error",p),a.removeEventListener("abort",p),a.removeEventListener("load",d),a.removeEventListener("timeout",_),e.reportProgress&&(a.removeEventListener("progress",y),s!==null&&a.upload&&a.upload.removeEventListener("progress",w)),a.readyState!==a.DONE&&a.abort()}})))}static \u0275fac=function(i){return new(i||t)(fe(Hd))};static \u0275prov=R({token:t,factory:t.\u0275fac})}return t})(),hN=new O(""),JY="XSRF-TOKEN",eQ=new O("",{providedIn:"root",factory:()=>JY}),tQ="X-XSRF-TOKEN",iQ=new O("",{providedIn:"root",factory:()=>tQ}),Mf=class{},nQ=(()=>{class t{doc;cookieName;lastCookieString="";lastToken=null;parseCount=0;constructor(e,i){this.doc=e,this.cookieName=i}getToken(){let e=this.doc.cookie||"";return e!==this.lastCookieString&&(this.parseCount++,this.lastToken=xf(e,this.cookieName),this.lastCookieString=e),this.lastToken}static \u0275fac=function(i){return new(i||t)(fe(_e),fe(eQ))};static \u0275prov=R({token:t,factory:t.\u0275fac})}return t})(),rQ=/^(?:https?:)?\/\//i;function oQ(t,n){if(!u(hN)||t.method==="GET"||t.method==="HEAD"||rQ.test(t.url))return n(t);let e=u(Mf).getToken(),i=u(iQ);return e!=null&&!t.headers.has(i)&&(t=t.clone({headers:t.headers.set(i,e)})),n(t)}var OM=(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})(OM||{});function aQ(t,n){return{\u0275kind:t,\u0275providers:n}}function RM(...t){let n=[xr,TM,nv,{provide:Pm,useExisting:nv},{provide:Jl,useFactory:()=>u(qY,{optional:!0})??u(TM)},{provide:AM,useValue:oQ,multi:!0},{provide:hN,useValue:!0},{provide:Mf,useClass:nQ}];for(let e of t)n.push(...e.\u0275providers);return qr(n)}function PM(t){return aQ(OM.Interceptors,t.map(n=>({provide:AM,useValue:n,multi:!0})))}var fN=(()=>{class t{_doc;constructor(e){this._doc=e}getTitle(){return this._doc.title}setTitle(e){this._doc.title=e||""}static \u0275fac=function(i){return new(i||t)(fe(_e))};static \u0275prov=R({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();var Sf=(()=>{class t{static \u0275fac=function(i){return new(i||t)};static \u0275prov=R({token:t,factory:function(i){let r=null;return i?r=new(i||t):r=fe(sQ),r},providedIn:"root"})}return t})(),sQ=(()=>{class t extends Sf{_doc;constructor(e){super(),this._doc=e}sanitize(e,i){if(i==null)return null;switch(e){case Rn.NONE:return i;case Rn.HTML:return cs(i,"HTML")?Yr(i):p0(this._doc,String(i)).toString();case Rn.STYLE:return cs(i,"Style")?Yr(i):i;case Rn.SCRIPT:if(cs(i,"Script"))return Yr(i);throw new me(5200,!1);case Rn.URL:return cs(i,"URL")?Yr(i):tf(String(i));case Rn.RESOURCE_URL:if(cs(i,"ResourceURL"))return Yr(i);throw new me(5201,!1);default:throw new me(5202,!1)}}bypassSecurityTrustHtml(e){return s1(e)}bypassSecurityTrustStyle(e){return l1(e)}bypassSecurityTrustScript(e){return c1(e)}bypassSecurityTrustUrl(e){return d1(e)}bypassSecurityTrustResourceUrl(e){return u1(e)}static \u0275fac=function(i){return new(i||t)(fe(_e))};static \u0275prov=R({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();var mt="primary",jf=Symbol("RouteTitle"),jM=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 Wd(t){return new jM(t)}function wN(t,n,e){let i=e.path.split("/");if(i.length>t.length||e.pathMatch==="full"&&(n.hasChildren()||i.lengthi[o]===r)}else return t===n}function EN(t){return t.length>0?t[t.length-1]:null}function ol(t){return zi(t)?t:Js(t)?Ft(Promise.resolve(t)):Q(t)}var cQ={exact:SN,subset:kN},MN={exact:dQ,subset:uQ,ignored:()=>!0};function gN(t,n,e){return cQ[e.paths](t.root,n.root,e.matrixParams)&&MN[e.queryParams](t.queryParams,n.queryParams)&&!(e.fragment==="exact"&&t.fragment!==n.fragment)}function dQ(t,n){return hs(t,n)}function SN(t,n,e){if(!Ud(t.segments,n.segments)||!av(t.segments,n.segments,e)||t.numberOfChildren!==n.numberOfChildren)return!1;for(let i in n.children)if(!t.children[i]||!SN(t.children[i],n.children[i],e))return!1;return!0}function uQ(t,n){return Object.keys(n).length<=Object.keys(t).length&&Object.keys(n).every(e=>DN(t[e],n[e]))}function kN(t,n,e){return TN(t,n,n.segments,e)}function TN(t,n,e,i){if(t.segments.length>e.length){let r=t.segments.slice(0,e.length);return!(!Ud(r,e)||n.hasChildren()||!av(r,e,i))}else if(t.segments.length===e.length){if(!Ud(t.segments,e)||!av(t.segments,e,i))return!1;for(let r in n.children)if(!t.children[r]||!kN(t.children[r],n.children[r],i))return!1;return!0}else{let r=e.slice(0,t.segments.length),o=e.slice(t.segments.length);return!Ud(t.segments,r)||!av(t.segments,r,i)||!t.children[mt]?!1:TN(t.children[mt],n,o,i)}}function av(t,n,e){return n.every((i,r)=>MN[e](t[r].parameters,i.parameters))}var ps=class{root;queryParams;fragment;_queryParamMap;constructor(n=new ei([],{}),e={},i=null){this.root=n,this.queryParams=e,this.fragment=i}get queryParamMap(){return this._queryParamMap??=Wd(this.queryParams),this._queryParamMap}toString(){return pQ.serialize(this)}},ei=class{segments;children;parent=null;constructor(n,e){this.segments=n,this.children=e,Object.values(e).forEach(i=>i.parent=this)}hasChildren(){return this.numberOfChildren>0}get numberOfChildren(){return Object.keys(this.children).length}toString(){return sv(this)}},ec=class{path;parameters;_parameterMap;constructor(n,e){this.path=n,this.parameters=e}get parameterMap(){return this._parameterMap??=Wd(this.parameters),this._parameterMap}toString(){return AN(this)}};function mQ(t,n){return Ud(t,n)&&t.every((e,i)=>hs(e.parameters,n[i].parameters))}function Ud(t,n){return t.length!==n.length?!1:t.every((e,i)=>e.path===n[i].path)}function hQ(t,n){let e=[];return Object.entries(t.children).forEach(([i,r])=>{i===mt&&(e=e.concat(n(r,i)))}),Object.entries(t.children).forEach(([i,r])=>{i!==mt&&(e=e.concat(n(r,i)))}),e}var rc=(()=>{class t{static \u0275fac=function(i){return new(i||t)};static \u0275prov=R({token:t,factory:()=>new tc,providedIn:"root"})}return t})(),tc=class{parse(n){let e=new UM(n);return new ps(e.parseRootSegment(),e.parseQueryParams(),e.parseFragment())}serialize(n){let e=`/${kf(n.root,!0)}`,i=_Q(n.queryParams),r=typeof n.fragment=="string"?`#${fQ(n.fragment)}`:"";return`${e}${i}${r}`}},pQ=new tc;function sv(t){return t.segments.map(n=>AN(n)).join("/")}function kf(t,n){if(!t.hasChildren())return sv(t);if(n){let e=t.children[mt]?kf(t.children[mt],!1):"",i=[];return Object.entries(t.children).forEach(([r,o])=>{r!==mt&&i.push(`${r}:${kf(o,!1)}`)}),i.length>0?`${e}(${i.join("//")})`:e}else{let e=hQ(t,(i,r)=>r===mt?[kf(t.children[mt],!1)]:[`${r}:${kf(i,!1)}`]);return Object.keys(t.children).length===1&&t.children[mt]!=null?`${sv(t)}/${e[0]}`:`${sv(t)}/(${e.join("//")})`}}function IN(t){return encodeURIComponent(t).replace(/%40/g,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",")}function rv(t){return IN(t).replace(/%3B/gi,";")}function fQ(t){return encodeURI(t)}function zM(t){return IN(t).replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/%26/gi,"&")}function lv(t){return decodeURIComponent(t)}function _N(t){return lv(t.replace(/\+/g,"%20"))}function AN(t){return`${zM(t.path)}${gQ(t.parameters)}`}function gQ(t){return Object.entries(t).map(([n,e])=>`;${zM(n)}=${zM(e)}`).join("")}function _Q(t){let n=Object.entries(t).map(([e,i])=>Array.isArray(i)?i.map(r=>`${rv(e)}=${rv(r)}`).join("&"):`${rv(e)}=${rv(i)}`).filter(e=>e);return n.length?`?${n.join("&")}`:""}var bQ=/^[^\/()?;#]+/;function NM(t){let n=t.match(bQ);return n?n[0]:""}var vQ=/^[^\/()?;=#]+/;function yQ(t){let n=t.match(vQ);return n?n[0]:""}var xQ=/^[^=?&#]+/;function CQ(t){let n=t.match(xQ);return n?n[0]:""}var wQ=/^[^&#]+/;function DQ(t){let n=t.match(wQ);return n?n[0]:""}var UM=class{url;remaining;constructor(n){this.url=n,this.remaining=n}parseRootSegment(){return this.consumeOptional("/"),this.remaining===""||this.peekStartsWith("?")||this.peekStartsWith("#")?new ei([],{}):new ei([],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(){if(this.remaining==="")return{};this.consumeOptional("/");let n=[];for(this.peekStartsWith("(")||n.push(this.parseSegment());this.peekStartsWith("/")&&!this.peekStartsWith("//")&&!this.peekStartsWith("/(");)this.capture("/"),n.push(this.parseSegment());let e={};this.peekStartsWith("/(")&&(this.capture("/"),e=this.parseParens(!0));let i={};return this.peekStartsWith("(")&&(i=this.parseParens(!1)),(n.length>0||Object.keys(e).length>0)&&(i[mt]=new ei(n,e)),i}parseSegment(){let n=NM(this.remaining);if(n===""&&this.peekStartsWith(";"))throw new me(4009,!1);return this.capture(n),new ec(lv(n),this.parseMatrixParams())}parseMatrixParams(){let n={};for(;this.consumeOptional(";");)this.parseParam(n);return n}parseParam(n){let e=yQ(this.remaining);if(!e)return;this.capture(e);let i="";if(this.consumeOptional("=")){let r=NM(this.remaining);r&&(i=r,this.capture(i))}n[lv(e)]=lv(i)}parseQueryParam(n){let e=CQ(this.remaining);if(!e)return;this.capture(e);let i="";if(this.consumeOptional("=")){let a=DQ(this.remaining);a&&(i=a,this.capture(i))}let r=_N(e),o=_N(i);if(n.hasOwnProperty(r)){let a=n[r];Array.isArray(a)||(a=[a],n[r]=a),a.push(o)}else n[r]=o}parseParens(n){let e={};for(this.capture("(");!this.consumeOptional(")")&&this.remaining.length>0;){let i=NM(this.remaining),r=this.remaining[i.length];if(r!=="/"&&r!==")"&&r!==";")throw new me(4010,!1);let o;i.indexOf(":")>-1?(o=i.slice(0,i.indexOf(":")),this.capture(o),this.capture(":")):n&&(o=mt);let a=this.parseChildren();e[o??mt]=Object.keys(a).length===1&&a[mt]?a[mt]:new ei([],a),this.consumeOptional("//")}return e}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 me(4011,!1)}};function ON(t){return t.segments.length>0?new ei([],{[mt]:t}):t}function RN(t){let n={};for(let[i,r]of Object.entries(t.children)){let o=RN(r);if(i===mt&&o.segments.length===0&&o.hasChildren())for(let[a,s]of Object.entries(o.children))n[a]=s;else(o.segments.length>0||o.hasChildren())&&(n[i]=o)}let e=new ei(t.segments,n);return EQ(e)}function EQ(t){if(t.numberOfChildren===1&&t.children[mt]){let n=t.children[mt];return new ei(t.segments.concat(n.segments),n.children)}return t}function ic(t){return t instanceof ps}function PN(t,n,e=null,i=null){let r=FN(t);return NN(r,n,e,i)}function FN(t){let n;function e(o){let a={};for(let l of o.children){let c=e(l);a[l.outlet]=c}let s=new ei(o.url,a);return o===t&&(n=s),s}let i=e(t.root),r=ON(i);return n??r}function NN(t,n,e,i){let r=t;for(;r.parent;)r=r.parent;if(n.length===0)return LM(r,r,r,e,i);let o=MQ(n);if(o.toRoot())return LM(r,r,new ei([],{}),e,i);let a=SQ(o,r,t),s=a.processChildren?If(a.segmentGroup,a.index,o.commands):VN(a.segmentGroup,a.index,o.commands);return LM(r,a.segmentGroup,s,e,i)}function cv(t){return typeof t=="object"&&t!=null&&!t.outlets&&!t.segmentPath}function Of(t){return typeof t=="object"&&t!=null&&t.outlets}function LM(t,n,e,i,r){let o={};i&&Object.entries(i).forEach(([l,c])=>{o[l]=Array.isArray(c)?c.map(d=>`${d}`):`${c}`});let a;t===n?a=e:a=LN(t,n,e);let s=ON(RN(a));return new ps(s,o,r)}function LN(t,n,e){let i={};return Object.entries(t.children).forEach(([r,o])=>{o===n?i[r]=e:i[r]=LN(o,n,e)}),new ei(t.segments,i)}var dv=class{isAbsolute;numberOfDoubleDots;commands;constructor(n,e,i){if(this.isAbsolute=n,this.numberOfDoubleDots=e,this.commands=i,n&&i.length>0&&cv(i[0]))throw new me(4003,!1);let r=i.find(Of);if(r&&r!==EN(i))throw new me(4004,!1)}toRoot(){return this.isAbsolute&&this.commands.length===1&&this.commands[0]=="/"}};function MQ(t){if(typeof t[0]=="string"&&t.length===1&&t[0]==="/")return new dv(!0,0,t);let n=0,e=!1,i=t.reduce((r,o,a)=>{if(typeof o=="object"&&o!=null){if(o.outlets){let s={};return Object.entries(o.outlets).forEach(([l,c])=>{s[l]=typeof c=="string"?c.split("/"):c}),[...r,{outlets:s}]}if(o.segmentPath)return[...r,o.segmentPath]}return typeof o!="string"?[...r,o]:a===0?(o.split("/").forEach((s,l)=>{l==0&&s==="."||(l==0&&s===""?e=!0:s===".."?n++:s!=""&&r.push(s))}),r):[...r,o]},[]);return new dv(e,n,i)}var Vm=class{segmentGroup;processChildren;index;constructor(n,e,i){this.segmentGroup=n,this.processChildren=e,this.index=i}};function SQ(t,n,e){if(t.isAbsolute)return new Vm(n,!0,0);if(!e)return new Vm(n,!1,NaN);if(e.parent===null)return new Vm(e,!0,0);let i=cv(t.commands[0])?0:1,r=e.segments.length-1+i;return kQ(e,r,t.numberOfDoubleDots)}function kQ(t,n,e){let i=t,r=n,o=e;for(;o>r;){if(o-=r,i=i.parent,!i)throw new me(4005,!1);r=i.segments.length}return new Vm(i,!1,r-o)}function TQ(t){return Of(t[0])?t[0].outlets:{[mt]:t}}function VN(t,n,e){if(t??=new ei([],{}),t.segments.length===0&&t.hasChildren())return If(t,n,e);let i=IQ(t,n,e),r=e.slice(i.commandIndex);if(i.match&&i.pathIndexo!==mt)&&t.children[mt]&&t.numberOfChildren===1&&t.children[mt].segments.length===0){let o=If(t.children[mt],n,e);return new ei(t.segments,o.children)}return Object.entries(i).forEach(([o,a])=>{typeof a=="string"&&(a=[a]),a!==null&&(r[o]=VN(t.children[o],n,a))}),Object.entries(t.children).forEach(([o,a])=>{i[o]===void 0&&(r[o]=a)}),new ei(t.segments,r)}}function IQ(t,n,e){let i=0,r=n,o={match:!1,pathIndex:0,commandIndex:0};for(;r=e.length)return o;let a=t.segments[r],s=e[i];if(Of(s))break;let l=`${s}`,c=i0&&l===void 0)break;if(l&&c&&typeof c=="object"&&c.outlets===void 0){if(!vN(l,c,a))return o;i+=2}else{if(!vN(l,{},a))return o;i++}r++}return{match:!0,pathIndex:r,commandIndex:i}}function $M(t,n,e){let i=t.segments.slice(0,n),r=0;for(;r{typeof i=="string"&&(i=[i]),i!==null&&(n[e]=$M(new ei([],{}),0,i))}),n}function bN(t){let n={};return Object.entries(t).forEach(([e,i])=>n[e]=`${i}`),n}function vN(t,n,e){return t==e.path&&hs(n,e.parameters)}var Bm="imperative",Cn=(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})(Cn||{}),Co=class{id;url;constructor(n,e){this.id=n,this.url=e}},fs=class extends Co{type=Cn.NavigationStart;navigationTrigger;restoredState;constructor(n,e,i="imperative",r=null){super(n,e),this.navigationTrigger=i,this.restoredState=r}toString(){return`NavigationStart(id: ${this.id}, url: '${this.url}')`}},xi=class extends Co{urlAfterRedirects;type=Cn.NavigationEnd;constructor(n,e,i){super(n,e),this.urlAfterRedirects=i}toString(){return`NavigationEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}')`}},Vr=(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})(Vr||{}),Hm=(function(t){return t[t.IgnoredSameUrlNavigation=0]="IgnoredSameUrlNavigation",t[t.IgnoredByUrlHandlingStrategy=1]="IgnoredByUrlHandlingStrategy",t})(Hm||{}),Ko=class extends Co{reason;code;type=Cn.NavigationCancel;constructor(n,e,i,r){super(n,e),this.reason=i,this.code=r}toString(){return`NavigationCancel(id: ${this.id}, url: '${this.url}')`}},gs=class extends Co{reason;code;type=Cn.NavigationSkipped;constructor(n,e,i,r){super(n,e),this.reason=i,this.code=r}},nc=class extends Co{error;target;type=Cn.NavigationError;constructor(n,e,i,r){super(n,e),this.error=i,this.target=r}toString(){return`NavigationError(id: ${this.id}, url: '${this.url}', error: ${this.error})`}},Rf=class extends Co{urlAfterRedirects;state;type=Cn.RoutesRecognized;constructor(n,e,i,r){super(n,e),this.urlAfterRedirects=i,this.state=r}toString(){return`RoutesRecognized(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}},uv=class extends Co{urlAfterRedirects;state;type=Cn.GuardsCheckStart;constructor(n,e,i,r){super(n,e),this.urlAfterRedirects=i,this.state=r}toString(){return`GuardsCheckStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}},mv=class extends Co{urlAfterRedirects;state;shouldActivate;type=Cn.GuardsCheckEnd;constructor(n,e,i,r,o){super(n,e),this.urlAfterRedirects=i,this.state=r,this.shouldActivate=o}toString(){return`GuardsCheckEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state}, shouldActivate: ${this.shouldActivate})`}},hv=class extends Co{urlAfterRedirects;state;type=Cn.ResolveStart;constructor(n,e,i,r){super(n,e),this.urlAfterRedirects=i,this.state=r}toString(){return`ResolveStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}},pv=class extends Co{urlAfterRedirects;state;type=Cn.ResolveEnd;constructor(n,e,i,r){super(n,e),this.urlAfterRedirects=i,this.state=r}toString(){return`ResolveEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}},fv=class{route;type=Cn.RouteConfigLoadStart;constructor(n){this.route=n}toString(){return`RouteConfigLoadStart(path: ${this.route.path})`}},gv=class{route;type=Cn.RouteConfigLoadEnd;constructor(n){this.route=n}toString(){return`RouteConfigLoadEnd(path: ${this.route.path})`}},_v=class{snapshot;type=Cn.ChildActivationStart;constructor(n){this.snapshot=n}toString(){return`ChildActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}},bv=class{snapshot;type=Cn.ChildActivationEnd;constructor(n){this.snapshot=n}toString(){return`ChildActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}},vv=class{snapshot;type=Cn.ActivationStart;constructor(n){this.snapshot=n}toString(){return`ActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}},yv=class{snapshot;type=Cn.ActivationEnd;constructor(n){this.snapshot=n}toString(){return`ActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}},zm=class{routerEvent;position;anchor;type=Cn.Scroll;constructor(n,e,i){this.routerEvent=n,this.position=e,this.anchor=i}toString(){let n=this.position?`${this.position[0]}, ${this.position[1]}`:null;return`Scroll(anchor: '${this.anchor}', position: '${n}')`}},Pf=class{},Um=class{url;navigationBehaviorOptions;constructor(n,e){this.url=n,this.navigationBehaviorOptions=e}};function OQ(t){return!(t instanceof Pf)&&!(t instanceof Um)}function RQ(t,n){return t.providers&&!t._injector&&(t._injector=Dm(t.providers,n,`Route: ${t.path}`)),t._injector??n}function Ia(t){return t.outlet||mt}function PQ(t,n){let e=t.filter(i=>Ia(i)===n);return e.push(...t.filter(i=>Ia(i)!==n)),e}function Gm(t){if(!t)return null;if(t.routeConfig?._injector)return t.routeConfig._injector;for(let n=t.parent;n;n=n.parent){let e=n.routeConfig;if(e?._loadedInjector)return e._loadedInjector;if(e?._injector)return e._injector}return null}var xv=class{rootInjector;outlet=null;route=null;children;attachRef=null;get injector(){return Gm(this.route?.snapshot)??this.rootInjector}constructor(n){this.rootInjector=n,this.children=new Gd(this.rootInjector)}},Gd=(()=>{class t{rootInjector;contexts=new Map;constructor(e){this.rootInjector=e}onChildOutletCreated(e,i){let r=this.getOrCreateContext(e);r.outlet=i,this.contexts.set(e,r)}onChildOutletDestroyed(e){let i=this.getContext(e);i&&(i.outlet=null,i.attachRef=null)}onOutletDeactivated(){let e=this.contexts;return this.contexts=new Map,e}onOutletReAttached(e){this.contexts=e}getOrCreateContext(e){let i=this.getContext(e);return i||(i=new xv(this.rootInjector),this.contexts.set(e,i)),i}getContext(e){return this.contexts.get(e)||null}static \u0275fac=function(i){return new(i||t)(fe(Kt))};static \u0275prov=R({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),Cv=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=WM(n,this._root);return e?e.children.map(i=>i.value):[]}firstChild(n){let e=WM(n,this._root);return e&&e.children.length>0?e.children[0].value:null}siblings(n){let e=GM(n,this._root);return e.length<2?[]:e[e.length-2].children.map(r=>r.value).filter(r=>r!==n)}pathFromRoot(n){return GM(n,this._root).map(e=>e.value)}};function WM(t,n){if(t===n.value)return n;for(let e of n.children){let i=WM(t,e);if(i)return i}return null}function GM(t,n){if(t===n.value)return[n];for(let e of n.children){let i=GM(t,e);if(i.length)return i.unshift(n),i}return[]}var xo=class{value;children;constructor(n,e){this.value=n,this.children=e}toString(){return`TreeNode(${this.value})`}};function Lm(t){let n={};return t&&t.children.forEach(e=>n[e.value.outlet]=e),n}var Ff=class extends Cv{snapshot;constructor(n,e){super(n),this.snapshot=e,eS(this,n)}toString(){return this.snapshot.toString()}};function BN(t){let n=FQ(t),e=new it([new ec("",{})]),i=new it({}),r=new it({}),o=new it({}),a=new it(""),s=new Si(e,i,o,a,r,mt,t,n.root);return s.snapshot=n.root,new Ff(new xo(s,[]),n)}function FQ(t){let n={},e={},i={},o=new $d([],n,i,"",e,mt,t,null,{});return new Nf("",new xo(o,[]))}var Si=class{urlSubject;paramsSubject;queryParamsSubject;fragmentSubject;dataSubject;outlet;component;snapshot;_futureSnapshot;_routerState;_paramMap;_queryParamMap;title;url;params;queryParams;fragment;data;constructor(n,e,i,r,o,a,s,l){this.urlSubject=n,this.paramsSubject=e,this.queryParamsSubject=i,this.fragmentSubject=r,this.dataSubject=o,this.outlet=a,this.component=s,this._futureSnapshot=l,this.title=this.dataSubject?.pipe(se(c=>c[jf]))??Q(void 0),this.url=n,this.params=e,this.queryParams=i,this.fragment=r,this.data=o}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(se(n=>Wd(n))),this._paramMap}get queryParamMap(){return this._queryParamMap??=this.queryParams.pipe(se(n=>Wd(n))),this._queryParamMap}toString(){return this.snapshot?this.snapshot.toString():`Future(${this._futureSnapshot})`}};function wv(t,n,e="emptyOnly"){let i,{routeConfig:r}=t;return n!==null&&(e==="always"||r?.path===""||!n.component&&!n.routeConfig?.loadComponent)?i={params:k(k({},n.params),t.params),data:k(k({},n.data),t.data),resolve:k(k(k(k({},t.data),n.data),r?.data),t._resolvedData)}:i={params:k({},t.params),data:k({},t.data),resolve:k(k({},t.data),t._resolvedData??{})},r&&HN(r)&&(i.resolve[jf]=r.title),i}var $d=class{url;params;queryParams;fragment;data;outlet;component;routeConfig;_resolve;_resolvedData;_routerState;_paramMap;_queryParamMap;get title(){return this.data?.[jf]}constructor(n,e,i,r,o,a,s,l,c){this.url=n,this.params=e,this.queryParams=i,this.fragment=r,this.data=o,this.outlet=a,this.component=s,this.routeConfig=l,this._resolve=c}get root(){return this._routerState.root}get parent(){return this._routerState.parent(this)}get firstChild(){return this._routerState.firstChild(this)}get children(){return this._routerState.children(this)}get pathFromRoot(){return this._routerState.pathFromRoot(this)}get paramMap(){return this._paramMap??=Wd(this.params),this._paramMap}get queryParamMap(){return this._queryParamMap??=Wd(this.queryParams),this._queryParamMap}toString(){let n=this.url.map(i=>i.toString()).join("/"),e=this.routeConfig?this.routeConfig.path:"";return`Route(url:'${n}', path:'${e}')`}},Nf=class extends Cv{url;constructor(n,e){super(e),this.url=n,eS(this,e)}toString(){return jN(this._root)}};function eS(t,n){n.value._routerState=t,n.children.forEach(e=>eS(t,e))}function jN(t){let n=t.children.length>0?` { ${t.children.map(jN).join(", ")} } `:"";return`${t.value}${n}`}function VM(t){if(t.snapshot){let n=t.snapshot,e=t._futureSnapshot;t.snapshot=e,hs(n.queryParams,e.queryParams)||t.queryParamsSubject.next(e.queryParams),n.fragment!==e.fragment&&t.fragmentSubject.next(e.fragment),hs(n.params,e.params)||t.paramsSubject.next(e.params),lQ(n.url,e.url)||t.urlSubject.next(e.url),hs(n.data,e.data)||t.dataSubject.next(e.data)}else t.snapshot=t._futureSnapshot,t.dataSubject.next(t._futureSnapshot.data)}function qM(t,n){let e=hs(t.params,n.params)&&mQ(t.url,n.url),i=!t.parent!=!n.parent;return e&&!i&&(!t.parent||qM(t.parent,n.parent))}function HN(t){return typeof t.title=="string"||t.title===null}var zN=new O(""),al=(()=>{class t{activated=null;get activatedComponentRef(){return this.activated}_activatedRoute=null;name=mt;activateEvents=new U;deactivateEvents=new U;attachEvents=new U;detachEvents=new U;routerOutletData=re();parentContexts=u(Gd);location=u(ot);changeDetector=u(ye);inputBinder=u(Hf,{optional:!0});supportsBindingToComponentInputs=!0;ngOnChanges(e){if(e.name){let{firstChange:i,previousValue:r}=e.name;if(i)return;this.isTrackedInParentContexts(r)&&(this.deactivate(),this.parentContexts.onChildOutletDestroyed(r)),this.initializeOutletWithName()}}ngOnDestroy(){this.isTrackedInParentContexts(this.name)&&this.parentContexts.onChildOutletDestroyed(this.name),this.inputBinder?.unsubscribeFromRouteData(this)}isTrackedInParentContexts(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 me(4012,!1);return this.activated.instance}get activatedRoute(){if(!this.activated)throw new me(4012,!1);return this._activatedRoute}get activatedRouteData(){return this._activatedRoute?this._activatedRoute.snapshot.data:{}}detach(){if(!this.activated)throw new me(4012,!1);this.location.detach();let e=this.activated;return this.activated=null,this._activatedRoute=null,this.detachEvents.emit(e.instance),e}attach(e,i){this.activated=e,this._activatedRoute=i,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,i){if(this.isActivated)throw new me(4013,!1);this._activatedRoute=e;let r=this.location,a=e.snapshot.component,s=this.parentContexts.getOrCreateContext(this.name).children,l=new YM(e,s,r.injector,this.routerOutletData);this.activated=r.createComponent(a,{index:r.length,injector:l,environmentInjector:i}),this.changeDetector.markForCheck(),this.inputBinder?.bindActivatedRouteToOutletComponent(this),this.activateEvents.emit(this.activated.instance)}static \u0275fac=function(i){return new(i||t)};static \u0275dir=P({type:t,selectors:[["router-outlet"]],inputs:{name:"name",routerOutletData:[1,"routerOutletData"]},outputs:{activateEvents:"activate",deactivateEvents:"deactivate",attachEvents:"attach",detachEvents:"detach"},exportAs:["outlet"],features:[Ae]})}return t})(),YM=class{route;childContexts;parent;outletData;constructor(n,e,i,r){this.route=n,this.childContexts=e,this.parent=i,this.outletData=r}get(n,e){return n===Si?this.route:n===Gd?this.childContexts:n===zN?this.outletData:this.parent.get(n,e)}},Hf=new O(""),tS=(()=>{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:i}=e,r=go([i.queryParams,i.params,i.data]).pipe(je(([o,a,s],l)=>(s=k(k(k({},o),a),s),l===0?Q(s):Promise.resolve(s)))).subscribe(o=>{if(!e.isActivated||!e.activatedComponentRef||e.activatedRoute!==i||i.component===null){this.unsubscribeFromRouteData(e);return}let a=p2(i.component);if(!a){this.unsubscribeFromRouteData(e);return}for(let{templateName:s}of a.inputs)e.activatedComponentRef.setInput(s,o[s])});this.outletDataSubscriptions.set(e,r)}static \u0275fac=function(i){return new(i||t)};static \u0275prov=R({token:t,factory:t.\u0275fac})}return t})(),iS=(()=>{class t{static \u0275fac=function(i){return new(i||t)};static \u0275cmp=E({type:t,selectors:[["ng-component"]],exportAs:["emptyRouterOutlet"],decls:1,vars:0,template:function(i,r){i&1&&M(0,"router-outlet")},dependencies:[al],encapsulation:2})}return t})();function nS(t){let n=t.children&&t.children.map(nS),e=n?Ee(k({},t),{children:n}):k({},t);return!e.component&&!e.loadComponent&&(n||e.loadChildren)&&e.outlet&&e.outlet!==mt&&(e.component=iS),e}function NQ(t,n,e){let i=Lf(t,n._root,e?e._root:void 0);return new Ff(i,n)}function Lf(t,n,e){if(e&&t.shouldReuseRoute(n.value,e.value.snapshot)){let i=e.value;i._futureSnapshot=n.value;let r=LQ(t,n,e);return new xo(i,r)}else{if(t.shouldAttach(n.value)){let o=t.retrieve(n.value);if(o!==null){let a=o.route;return a.value._futureSnapshot=n.value,a.children=n.children.map(s=>Lf(t,s)),a}}let i=VQ(n.value),r=n.children.map(o=>Lf(t,o));return new xo(i,r)}}function LQ(t,n,e){return n.children.map(i=>{for(let r of e.children)if(t.shouldReuseRoute(i.value,r.value.snapshot))return Lf(t,i,r);return Lf(t,i)})}function VQ(t){return new Si(new it(t.url),new it(t.params),new it(t.queryParams),new it(t.fragment),new it(t.data),t.outlet,t.component,t)}var $m=class{redirectTo;navigationBehaviorOptions;constructor(n,e){this.redirectTo=n,this.navigationBehaviorOptions=e}},UN="ngNavigationCancelingError";function Dv(t,n){let{redirectTo:e,navigationBehaviorOptions:i}=ic(n)?{redirectTo:n,navigationBehaviorOptions:void 0}:n,r=$N(!1,Vr.Redirect);return r.url=e,r.navigationBehaviorOptions=i,r}function $N(t,n){let e=new Error(`NavigationCancelingError: ${t||""}`);return e[UN]=!0,e.cancellationCode=n,e}function BQ(t){return WN(t)&&ic(t.url)}function WN(t){return!!t&&t[UN]}var jQ=(t,n,e,i)=>se(r=>(new QM(n,r.targetRouterState,r.currentRouterState,e,i).activate(t),r)),QM=class{routeReuseStrategy;futureState;currState;forwardEvent;inputBindingEnabled;constructor(n,e,i,r,o){this.routeReuseStrategy=n,this.futureState=e,this.currState=i,this.forwardEvent=r,this.inputBindingEnabled=o}activate(n){let e=this.futureState._root,i=this.currState?this.currState._root:null;this.deactivateChildRoutes(e,i,n),VM(this.futureState.root),this.activateChildRoutes(e,i,n)}deactivateChildRoutes(n,e,i){let r=Lm(e);n.children.forEach(o=>{let a=o.value.outlet;this.deactivateRoutes(o,r[a],i),delete r[a]}),Object.values(r).forEach(o=>{this.deactivateRouteAndItsChildren(o,i)})}deactivateRoutes(n,e,i){let r=n.value,o=e?e.value:null;if(r===o)if(r.component){let a=i.getContext(r.outlet);a&&this.deactivateChildRoutes(n,e,a.children)}else this.deactivateChildRoutes(n,e,i);else o&&this.deactivateRouteAndItsChildren(e,i)}deactivateRouteAndItsChildren(n,e){n.value.component&&this.routeReuseStrategy.shouldDetach(n.value.snapshot)?this.detachAndStoreRouteSubtree(n,e):this.deactivateRouteAndOutlet(n,e)}detachAndStoreRouteSubtree(n,e){let i=e.getContext(n.value.outlet),r=i&&n.value.component?i.children:e,o=Lm(n);for(let a of Object.values(o))this.deactivateRouteAndItsChildren(a,r);if(i&&i.outlet){let a=i.outlet.detach(),s=i.children.onOutletDeactivated();this.routeReuseStrategy.store(n.value.snapshot,{componentRef:a,route:n,contexts:s})}}deactivateRouteAndOutlet(n,e){let i=e.getContext(n.value.outlet),r=i&&n.value.component?i.children:e,o=Lm(n);for(let a of Object.values(o))this.deactivateRouteAndItsChildren(a,r);i&&(i.outlet&&(i.outlet.deactivate(),i.children.onOutletDeactivated()),i.attachRef=null,i.route=null)}activateChildRoutes(n,e,i){let r=Lm(e);n.children.forEach(o=>{this.activateRoutes(o,r[o.value.outlet],i),this.forwardEvent(new yv(o.value.snapshot))}),n.children.length&&this.forwardEvent(new bv(n.value.snapshot))}activateRoutes(n,e,i){let r=n.value,o=e?e.value:null;if(VM(r),r===o)if(r.component){let a=i.getOrCreateContext(r.outlet);this.activateChildRoutes(n,e,a.children)}else this.activateChildRoutes(n,e,i);else if(r.component){let a=i.getOrCreateContext(r.outlet);if(this.routeReuseStrategy.shouldAttach(r.snapshot)){let s=this.routeReuseStrategy.retrieve(r.snapshot);this.routeReuseStrategy.store(r.snapshot,null),a.children.onOutletReAttached(s.contexts),a.attachRef=s.componentRef,a.route=s.route.value,a.outlet&&a.outlet.attach(s.componentRef,s.route.value),VM(s.route.value),this.activateChildRoutes(n,null,a.children)}else a.attachRef=null,a.route=r,a.outlet&&a.outlet.activateWith(r,a.injector),this.activateChildRoutes(n,null,a.children)}else this.activateChildRoutes(n,null,i)}},Ev=class{path;route;constructor(n){this.path=n,this.route=this.path[this.path.length-1]}},jm=class{component;route;constructor(n,e){this.component=n,this.route=e}};function HQ(t,n,e){let i=t._root,r=n?n._root:null;return Tf(i,r,e,[i.value])}function zQ(t){let n=t.routeConfig?t.routeConfig.canActivateChild:null;return!n||n.length===0?null:{node:t,guards:n}}function qm(t,n){let e=Symbol(),i=n.get(t,e);return i===e?typeof t=="function"&&!gD(t)?t:n.get(t):i}function Tf(t,n,e,i,r={canDeactivateChecks:[],canActivateChecks:[]}){let o=Lm(n);return t.children.forEach(a=>{UQ(a,o[a.value.outlet],e,i.concat([a.value]),r),delete o[a.value.outlet]}),Object.entries(o).forEach(([a,s])=>Af(s,e.getContext(a),r)),r}function UQ(t,n,e,i,r={canDeactivateChecks:[],canActivateChecks:[]}){let o=t.value,a=n?n.value:null,s=e?e.getContext(t.value.outlet):null;if(a&&o.routeConfig===a.routeConfig){let l=$Q(a,o,o.routeConfig.runGuardsAndResolvers);l?r.canActivateChecks.push(new Ev(i)):(o.data=a.data,o._resolvedData=a._resolvedData),o.component?Tf(t,n,s?s.children:null,i,r):Tf(t,n,e,i,r),l&&s&&s.outlet&&s.outlet.isActivated&&r.canDeactivateChecks.push(new jm(s.outlet.component,a))}else a&&Af(n,s,r),r.canActivateChecks.push(new Ev(i)),o.component?Tf(t,null,s?s.children:null,i,r):Tf(t,null,e,i,r);return r}function $Q(t,n,e){if(typeof e=="function")return e(t,n);switch(e){case"pathParamsChange":return!Ud(t.url,n.url);case"pathParamsOrQueryParamsChange":return!Ud(t.url,n.url)||!hs(t.queryParams,n.queryParams);case"always":return!0;case"paramsOrQueryParamsChange":return!qM(t,n)||!hs(t.queryParams,n.queryParams);case"paramsChange":default:return!qM(t,n)}}function Af(t,n,e){let i=Lm(t),r=t.value;Object.entries(i).forEach(([o,a])=>{r.component?n?Af(a,n.children.getContext(o),e):Af(a,null,e):Af(a,n,e)}),r.component?n&&n.outlet&&n.outlet.isActivated?e.canDeactivateChecks.push(new jm(n.outlet.component,r)):e.canDeactivateChecks.push(new jm(null,r)):e.canDeactivateChecks.push(new jm(null,r))}function zf(t){return typeof t=="function"}function WQ(t){return typeof t=="boolean"}function GQ(t){return t&&zf(t.canLoad)}function qQ(t){return t&&zf(t.canActivate)}function YQ(t){return t&&zf(t.canActivateChild)}function QQ(t){return t&&zf(t.canDeactivate)}function KQ(t){return t&&zf(t.canMatch)}function GN(t){return t instanceof zs||t?.name==="EmptyError"}var ov=Symbol("INITIAL_VALUE");function Wm(){return je(t=>go(t.map(n=>n.pipe(ct(1),Ue(ov)))).pipe(se(n=>{for(let e of n)if(e!==!0){if(e===ov)return ov;if(e===!1||ZQ(e))return e}return!0}),ce(n=>n!==ov),ct(1)))}function ZQ(t){return ic(t)||t instanceof $m}function XQ(t,n){return It(e=>{let{targetSnapshot:i,currentSnapshot:r,guards:{canActivateChecks:o,canDeactivateChecks:a}}=e;return a.length===0&&o.length===0?Q(Ee(k({},e),{guardsResult:!0})):JQ(a,i,r,t).pipe(It(s=>s&&WQ(s)?eK(i,o,t,n):Q(s)),se(s=>Ee(k({},e),{guardsResult:s})))})}function JQ(t,n,e,i){return Ft(t).pipe(It(r=>oK(r.component,r.route,e,n,i)),bn(r=>r!==!0,!0))}function eK(t,n,e,i){return Ft(n).pipe(No(r=>bo(iK(r.route.parent,i),tK(r.route,i),rK(t,r.path,e),nK(t,r.route,e))),bn(r=>r!==!0,!0))}function tK(t,n){return t!==null&&n&&n(new vv(t)),Q(!0)}function iK(t,n){return t!==null&&n&&n(new _v(t)),Q(!0)}function nK(t,n,e){let i=n.routeConfig?n.routeConfig.canActivate:null;if(!i||i.length===0)return Q(!0);let r=i.map(o=>In(()=>{let a=Gm(n)??e,s=qm(o,a),l=qQ(s)?s.canActivate(n,t):On(a,()=>s(n,t));return ol(l).pipe(bn())}));return Q(r).pipe(Wm())}function rK(t,n,e){let i=n[n.length-1],o=n.slice(0,n.length-1).reverse().map(a=>zQ(a)).filter(a=>a!==null).map(a=>In(()=>{let s=a.guards.map(l=>{let c=Gm(a.node)??e,d=qm(l,c),p=YQ(d)?d.canActivateChild(i,t):On(c,()=>d(i,t));return ol(p).pipe(bn())});return Q(s).pipe(Wm())}));return Q(o).pipe(Wm())}function oK(t,n,e,i,r){let o=n&&n.routeConfig?n.routeConfig.canDeactivate:null;if(!o||o.length===0)return Q(!0);let a=o.map(s=>{let l=Gm(n)??r,c=qm(s,l),d=QQ(c)?c.canDeactivate(t,n,e,i):On(l,()=>c(t,n,e,i));return ol(d).pipe(bn())});return Q(a).pipe(Wm())}function aK(t,n,e,i){let r=n.canLoad;if(r===void 0||r.length===0)return Q(!0);let o=r.map(a=>{let s=qm(a,t),l=GQ(s)?s.canLoad(n,e):On(t,()=>s(n,e));return ol(l)});return Q(o).pipe(Wm(),qN(i))}function qN(t){return $w(He(n=>{if(typeof n!="boolean")throw Dv(t,n)}),se(n=>n===!0))}function sK(t,n,e,i){let r=n.canMatch;if(!r||r.length===0)return Q(!0);let o=r.map(a=>{let s=qm(a,t),l=KQ(s)?s.canMatch(n,e):On(t,()=>s(n,e));return ol(l)});return Q(o).pipe(Wm(),qN(i))}var Vf=class{segmentGroup;constructor(n){this.segmentGroup=n||null}},Bf=class extends Error{urlTree;constructor(n){super(),this.urlTree=n}};function Nm(t){return qn(new Vf(t))}function lK(t){return qn(new me(4e3,!1))}function cK(t){return qn($N(!1,Vr.GuardRejected))}var KM=class{urlSerializer;urlTree;constructor(n,e){this.urlSerializer=n,this.urlTree=e}lineralizeSegments(n,e){let i=[],r=e.root;for(;;){if(i=i.concat(r.segments),r.numberOfChildren===0)return Q(i);if(r.numberOfChildren>1||!r.children[mt])return lK(`${n.redirectTo}`);r=r.children[mt]}}applyRedirectCommands(n,e,i,r,o){return dK(e,r,o).pipe(se(a=>{if(a instanceof ps)throw new Bf(a);let s=this.applyRedirectCreateUrlTree(a,this.urlSerializer.parse(a),n,i);if(a[0]==="/")throw new Bf(s);return s}))}applyRedirectCreateUrlTree(n,e,i,r){let o=this.createSegmentGroup(n,e.root,i,r);return new ps(o,this.createQueryParams(e.queryParams,this.urlTree.queryParams),e.fragment)}createQueryParams(n,e){let i={};return Object.entries(n).forEach(([r,o])=>{if(typeof o=="string"&&o[0]===":"){let s=o.substring(1);i[r]=e[s]}else i[r]=o}),i}createSegmentGroup(n,e,i,r){let o=this.createSegments(n,e.segments,i,r),a={};return Object.entries(e.children).forEach(([s,l])=>{a[s]=this.createSegmentGroup(n,l,i,r)}),new ei(o,a)}createSegments(n,e,i,r){return e.map(o=>o.path[0]===":"?this.findPosParam(n,o,r):this.findOrReturn(o,i))}findPosParam(n,e,i){let r=i[e.path.substring(1)];if(!r)throw new me(4001,!1);return r}findOrReturn(n,e){let i=0;for(let r of e){if(r.path===n.path)return e.splice(i),r;i++}return n}};function dK(t,n,e){if(typeof t=="string")return Q(t);let i=t,{queryParams:r,fragment:o,routeConfig:a,url:s,outlet:l,params:c,data:d,title:p}=n;return ol(On(e,()=>i({params:c,data:d,queryParams:r,fragment:o,routeConfig:a,url:s,outlet:l,title:p})))}var ZM={matched:!1,consumedSegments:[],remainingSegments:[],parameters:{},positionalParamSegments:{}};function uK(t,n,e,i,r){let o=YN(t,n,e);return o.matched?(i=RQ(n,i),sK(i,n,e,r).pipe(se(a=>a===!0?o:k({},ZM)))):Q(o)}function YN(t,n,e){if(n.path==="**")return mK(e);if(n.path==="")return n.pathMatch==="full"&&(t.hasChildren()||e.length>0)?k({},ZM):{matched:!0,consumedSegments:[],remainingSegments:e,parameters:{},positionalParamSegments:{}};let r=(n.matcher||wN)(e,t,n);if(!r)return k({},ZM);let o={};Object.entries(r.posParams??{}).forEach(([s,l])=>{o[s]=l.path});let a=r.consumed.length>0?k(k({},o),r.consumed[r.consumed.length-1].parameters):o;return{matched:!0,consumedSegments:r.consumed,remainingSegments:e.slice(r.consumed.length),parameters:a,positionalParamSegments:r.posParams??{}}}function mK(t){return{matched:!0,parameters:t.length>0?EN(t).parameters:{},consumedSegments:t,remainingSegments:[],positionalParamSegments:{}}}function yN(t,n,e,i){return e.length>0&&fK(t,e,i)?{segmentGroup:new ei(n,pK(i,new ei(e,t.children))),slicedSegments:[]}:e.length===0&&gK(t,e,i)?{segmentGroup:new ei(t.segments,hK(t,e,i,t.children)),slicedSegments:e}:{segmentGroup:new ei(t.segments,t.children),slicedSegments:e}}function hK(t,n,e,i){let r={};for(let o of e)if(Sv(t,n,o)&&!i[Ia(o)]){let a=new ei([],{});r[Ia(o)]=a}return k(k({},i),r)}function pK(t,n){let e={};e[mt]=n;for(let i of t)if(i.path===""&&Ia(i)!==mt){let r=new ei([],{});e[Ia(i)]=r}return e}function fK(t,n,e){return e.some(i=>Sv(t,n,i)&&Ia(i)!==mt)}function gK(t,n,e){return e.some(i=>Sv(t,n,i))}function Sv(t,n,e){return(t.hasChildren()||n.length>0)&&e.pathMatch==="full"?!1:e.path===""}function _K(t,n,e){return n.length===0&&!t.children[e]}var XM=class{};function bK(t,n,e,i,r,o,a="emptyOnly"){return new JM(t,n,e,i,r,a,o).recognize()}var vK=31,JM=class{injector;configLoader;rootComponentType;config;urlTree;paramsInheritanceStrategy;urlSerializer;applyRedirects;absoluteRedirectCount=0;allowRedirects=!0;constructor(n,e,i,r,o,a,s){this.injector=n,this.configLoader=e,this.rootComponentType=i,this.config=r,this.urlTree=o,this.paramsInheritanceStrategy=a,this.urlSerializer=s,this.applyRedirects=new KM(this.urlSerializer,this.urlTree)}noMatchError(n){return new me(4002,`'${n.segmentGroup}'`)}recognize(){let n=yN(this.urlTree.root,[],[],this.config).segmentGroup;return this.match(n).pipe(se(({children:e,rootSnapshot:i})=>{let r=new xo(i,e),o=new Nf("",r),a=PN(i,[],this.urlTree.queryParams,this.urlTree.fragment);return a.queryParams=this.urlTree.queryParams,o.url=this.urlSerializer.serialize(a),{state:o,tree:a}}))}match(n){let e=new $d([],Object.freeze({}),Object.freeze(k({},this.urlTree.queryParams)),this.urlTree.fragment,Object.freeze({}),mt,this.rootComponentType,null,{});return this.processSegmentGroup(this.injector,this.config,n,mt,e).pipe(se(i=>({children:i,rootSnapshot:e})),ii(i=>{if(i instanceof Bf)return this.urlTree=i.urlTree,this.match(i.urlTree.root);throw i instanceof Vf?this.noMatchError(i):i}))}processSegmentGroup(n,e,i,r,o){return i.segments.length===0&&i.hasChildren()?this.processChildren(n,e,i,o):this.processSegment(n,e,i,i.segments,r,!0,o).pipe(se(a=>a instanceof xo?[a]:[]))}processChildren(n,e,i,r){let o=[];for(let a of Object.keys(i.children))a==="primary"?o.unshift(a):o.push(a);return Ft(o).pipe(No(a=>{let s=i.children[a],l=PQ(e,a);return this.processSegmentGroup(n,l,s,a,r)}),tD((a,s)=>(a.push(...s),a)),Ll(null),eD(),It(a=>{if(a===null)return Nm(i);let s=QN(a);return yK(s),Q(s)}))}processSegment(n,e,i,r,o,a,s){return Ft(e).pipe(No(l=>this.processSegmentAgainstRoute(l._injector??n,e,l,i,r,o,a,s).pipe(ii(c=>{if(c instanceof Vf)return Q(null);throw c}))),bn(l=>!!l),ii(l=>{if(GN(l))return _K(i,r,o)?Q(new XM):Nm(i);throw l}))}processSegmentAgainstRoute(n,e,i,r,o,a,s,l){return Ia(i)!==a&&(a===mt||!Sv(r,o,i))?Nm(r):i.redirectTo===void 0?this.matchSegmentAgainstRoute(n,r,i,o,a,l):this.allowRedirects&&s?this.expandSegmentAgainstRouteUsingRedirect(n,r,e,i,o,a,l):Nm(r)}expandSegmentAgainstRouteUsingRedirect(n,e,i,r,o,a,s){let{matched:l,parameters:c,consumedSegments:d,positionalParamSegments:p,remainingSegments:_}=YN(e,r,o);if(!l)return Nm(e);typeof r.redirectTo=="string"&&r.redirectTo[0]==="/"&&(this.absoluteRedirectCount++,this.absoluteRedirectCount>vK&&(this.allowRedirects=!1));let b=new $d(o,c,Object.freeze(k({},this.urlTree.queryParams)),this.urlTree.fragment,xN(r),Ia(r),r.component??r._loadedComponent??null,r,CN(r)),y=wv(b,s,this.paramsInheritanceStrategy);return b.params=Object.freeze(y.params),b.data=Object.freeze(y.data),this.applyRedirects.applyRedirectCommands(d,r.redirectTo,p,b,n).pipe(je(C=>this.applyRedirects.lineralizeSegments(r,C)),It(C=>this.processSegment(n,i,e,C.concat(_),a,!1,s)))}matchSegmentAgainstRoute(n,e,i,r,o,a){let s=uK(e,i,r,n,this.urlSerializer);return i.path==="**"&&(e.children={}),s.pipe(je(l=>l.matched?(n=i._injector??n,this.getChildConfig(n,i,r).pipe(je(({routes:c})=>{let d=i._loadedInjector??n,{parameters:p,consumedSegments:_,remainingSegments:b}=l,y=new $d(_,p,Object.freeze(k({},this.urlTree.queryParams)),this.urlTree.fragment,xN(i),Ia(i),i.component??i._loadedComponent??null,i,CN(i)),w=wv(y,a,this.paramsInheritanceStrategy);y.params=Object.freeze(w.params),y.data=Object.freeze(w.data);let{segmentGroup:C,slicedSegments:D}=yN(e,_,b,c);if(D.length===0&&C.hasChildren())return this.processChildren(d,c,C,y).pipe(se(W=>new xo(y,W)));if(c.length===0&&D.length===0)return Q(new xo(y,[]));let F=Ia(i)===o;return this.processSegment(d,c,C,D,F?mt:o,!0,y).pipe(se(W=>new xo(y,W instanceof xo?[W]:[])))}))):Nm(e)))}getChildConfig(n,e,i){return e.children?Q({routes:e.children,injector:n}):e.loadChildren?e._loadedRoutes!==void 0?Q({routes:e._loadedRoutes,injector:e._loadedInjector}):aK(n,e,i,this.urlSerializer).pipe(It(r=>r?this.configLoader.loadChildren(n,e).pipe(He(o=>{e._loadedRoutes=o.routes,e._loadedInjector=o.injector})):cK(e))):Q({routes:[],injector:n})}};function yK(t){t.sort((n,e)=>n.value.outlet===mt?-1:e.value.outlet===mt?1:n.value.outlet.localeCompare(e.value.outlet))}function xK(t){let n=t.value.routeConfig;return n&&n.path===""}function QN(t){let n=[],e=new Set;for(let i of t){if(!xK(i)){n.push(i);continue}let r=n.find(o=>i.value.routeConfig===o.value.routeConfig);r!==void 0?(r.children.push(...i.children),e.add(r)):n.push(i)}for(let i of e){let r=QN(i.children);n.push(new xo(i.value,r))}return n.filter(i=>!e.has(i))}function xN(t){return t.data||{}}function CN(t){return t.resolve||{}}function CK(t,n,e,i,r,o){return It(a=>bK(t,n,e,i,a.extractedUrl,r,o).pipe(se(({state:s,tree:l})=>Ee(k({},a),{targetSnapshot:s,urlAfterRedirects:l}))))}function wK(t,n){return It(e=>{let{targetSnapshot:i,guards:{canActivateChecks:r}}=e;if(!r.length)return Q(e);let o=new Set(r.map(l=>l.route)),a=new Set;for(let l of o)if(!a.has(l))for(let c of KN(l))a.add(c);let s=0;return Ft(a).pipe(No(l=>o.has(l)?DK(l,i,t,n):(l.data=wv(l,l.parent,t).resolve,Q(void 0))),He(()=>s++),Xu(1),It(l=>s===a.size?Q(e):Vi))})}function KN(t){let n=t.children.map(e=>KN(e)).flat();return[t,...n]}function DK(t,n,e,i){let r=t.routeConfig,o=t._resolve;return r?.title!==void 0&&!HN(r)&&(o[jf]=r.title),In(()=>(t.data=wv(t,t.parent,e).resolve,EK(o,t,n,i).pipe(se(a=>(t._resolvedData=a,t.data=k(k({},t.data),a),null)))))}function EK(t,n,e,i){let r=HM(t);if(r.length===0)return Q({});let o={};return Ft(r).pipe(It(a=>MK(t[a],n,e,i).pipe(bn(),He(s=>{if(s instanceof $m)throw Dv(new tc,s);o[a]=s}))),Xu(1),se(()=>o),ii(a=>GN(a)?Vi:qn(a)))}function MK(t,n,e,i){let r=Gm(n)??i,o=qm(t,r),a=o.resolve?o.resolve(n,e):On(r,()=>o(n,e));return ol(a)}function BM(t){return je(n=>{let e=t(n);return e?Ft(e).pipe(se(()=>n)):Q(n)})}var rS=(()=>{class t{buildTitle(e){let i,r=e.root;for(;r!==void 0;)i=this.getResolvedTitleForRoute(r)??i,r=r.children.find(o=>o.outlet===mt);return i}getResolvedTitleForRoute(e){return e.data[jf]}static \u0275fac=function(i){return new(i||t)};static \u0275prov=R({token:t,factory:()=>u(ZN),providedIn:"root"})}return t})(),ZN=(()=>{class t extends rS{title;constructor(e){super(),this.title=e}updateTitle(e){let i=this.buildTitle(e);i!==void 0&&this.title.setTitle(i)}static \u0275fac=function(i){return new(i||t)(fe(fN))};static \u0275prov=R({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),oc=new O("",{providedIn:"root",factory:()=>({})}),qd=new O(""),kv=(()=>{class t{componentLoaders=new WeakMap;childrenLoaders=new WeakMap;onLoadStartListener;onLoadEndListener;compiler=u(W1);loadComponent(e,i){if(this.componentLoaders.get(i))return this.componentLoaders.get(i);if(i._loadedComponent)return Q(i._loadedComponent);this.onLoadStartListener&&this.onLoadStartListener(i);let r=ol(On(e,()=>i.loadComponent())).pipe(se(JN),je(eL),He(a=>{this.onLoadEndListener&&this.onLoadEndListener(i),i._loadedComponent=a}),Gr(()=>{this.componentLoaders.delete(i)})),o=new Rl(r,()=>new z).pipe(Wu());return this.componentLoaders.set(i,o),o}loadChildren(e,i){if(this.childrenLoaders.get(i))return this.childrenLoaders.get(i);if(i._loadedRoutes)return Q({routes:i._loadedRoutes,injector:i._loadedInjector});this.onLoadStartListener&&this.onLoadStartListener(i);let o=XN(i,this.compiler,e,this.onLoadEndListener).pipe(Gr(()=>{this.childrenLoaders.delete(i)})),a=new Rl(o,()=>new z).pipe(Wu());return this.childrenLoaders.set(i,a),a}static \u0275fac=function(i){return new(i||t)};static \u0275prov=R({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();function XN(t,n,e,i){return ol(On(e,()=>t.loadChildren())).pipe(se(JN),je(eL),It(r=>r instanceof M0||Array.isArray(r)?Q(r):Ft(n.compileModuleAsync(r))),se(r=>{i&&i(t);let o,a,s=!1;return Array.isArray(r)?(a=r,s=!0):(o=r.create(e).injector,a=o.get(qd,[],{optional:!0,self:!0}).flat()),{routes:a.map(nS),injector:o}}))}function SK(t){return t&&typeof t=="object"&&"default"in t}function JN(t){return SK(t)?t.default:t}function eL(t){return Q(t)}var Tv=(()=>{class t{static \u0275fac=function(i){return new(i||t)};static \u0275prov=R({token:t,factory:()=>u(kK),providedIn:"root"})}return t})(),kK=(()=>{class t{shouldProcessUrl(e){return!0}extract(e){return e}merge(e,i){return e}static \u0275fac=function(i){return new(i||t)};static \u0275prov=R({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),oS=new O(""),aS=new O("");function tL(t,n,e){let i=t.get(aS),r=t.get(_e);if(!r.startViewTransition||i.skipNextTransition)return i.skipNextTransition=!1,new Promise(c=>setTimeout(c));let o,a=new Promise(c=>{o=c}),s=r.startViewTransition(()=>(o(),TK(t)));s.ready.catch(c=>{});let{onViewTransitionCreated:l}=i;return l&&On(t,()=>l({transition:s,from:n,to:e})),a}function TK(t){return new Promise(n=>{gt({read:()=>setTimeout(n)},{injector:t})})}var sS=new O(""),Uf=(()=>{class t{currentNavigation=he(null,{equal:()=>!1});currentTransition=null;lastSuccessfulNavigation=null;events=new z;transitionAbortWithErrorSubject=new z;configLoader=u(kv);environmentInjector=u(Kt);destroyRef=u(an);urlSerializer=u(rc);rootContexts=u(Gd);location=u(ms);inputBindingEnabled=u(Hf,{optional:!0})!==null;titleStrategy=u(rS);options=u(oc,{optional:!0})||{};paramsInheritanceStrategy=this.options.paramsInheritanceStrategy||"emptyOnly";urlHandlingStrategy=u(Tv);createViewTransition=u(oS,{optional:!0});navigationErrorHandler=u(sS,{optional:!0});navigationId=0;get hasRequestedNavigation(){return this.navigationId!==0}transitions;afterPreactivation=()=>Q(void 0);rootComponentType=null;destroyed=!1;constructor(){let e=r=>this.events.next(new fv(r)),i=r=>this.events.next(new gv(r));this.configLoader.onLoadEndListener=i,this.configLoader.onLoadStartListener=e,this.destroyRef.onDestroy(()=>{this.destroyed=!0})}complete(){this.transitions?.complete()}handleNavigationRequest(e){let i=++this.navigationId;Ai(()=>{this.transitions?.next(Ee(k({},e),{extractedUrl:this.urlHandlingStrategy.extract(e.rawUrl),targetSnapshot:null,targetRouterState:null,guards:{canActivateChecks:[],canDeactivateChecks:[]},guardsResult:null,abortController:new AbortController,id:i}))})}setupNavigations(e){return this.transitions=new it(null),this.transitions.pipe(ce(i=>i!==null),je(i=>{let r=!1;return Q(i).pipe(je(o=>{if(this.navigationId>i.id)return this.cancelNavigationTransition(i,"",Vr.SupersededByNewNavigation),Vi;this.currentTransition=i,this.currentNavigation.set({id:o.id,initialUrl:o.rawUrl,extractedUrl:o.extractedUrl,targetBrowserUrl:typeof o.extras.browserUrl=="string"?this.urlSerializer.parse(o.extras.browserUrl):o.extras.browserUrl,trigger:o.source,extras:o.extras,previousNavigation:this.lastSuccessfulNavigation?Ee(k({},this.lastSuccessfulNavigation),{previousNavigation:null}):null,abort:()=>o.abortController.abort()});let a=!e.navigated||this.isUpdatingInternalState()||this.isUpdatedBrowserUrl(),s=o.extras.onSameUrlNavigation??e.onSameUrlNavigation;if(!a&&s!=="reload")return this.events.next(new gs(o.id,this.urlSerializer.serialize(o.rawUrl),"",Hm.IgnoredSameUrlNavigation)),o.resolve(!1),Vi;if(this.urlHandlingStrategy.shouldProcessUrl(o.rawUrl))return Q(o).pipe(je(l=>(this.events.next(new fs(l.id,this.urlSerializer.serialize(l.extractedUrl),l.source,l.restoredState)),l.id!==this.navigationId?Vi:Promise.resolve(l))),CK(this.environmentInjector,this.configLoader,this.rootComponentType,e.config,this.urlSerializer,this.paramsInheritanceStrategy),He(l=>{i.targetSnapshot=l.targetSnapshot,i.urlAfterRedirects=l.urlAfterRedirects,this.currentNavigation.update(d=>(d.finalUrl=l.urlAfterRedirects,d));let c=new Rf(l.id,this.urlSerializer.serialize(l.extractedUrl),this.urlSerializer.serialize(l.urlAfterRedirects),l.targetSnapshot);this.events.next(c)}));if(a&&this.urlHandlingStrategy.shouldProcessUrl(o.currentRawUrl)){let{id:l,extractedUrl:c,source:d,restoredState:p,extras:_}=o,b=new fs(l,this.urlSerializer.serialize(c),d,p);this.events.next(b);let y=BN(this.rootComponentType).snapshot;return this.currentTransition=i=Ee(k({},o),{targetSnapshot:y,urlAfterRedirects:c,extras:Ee(k({},_),{skipLocationChange:!1,replaceUrl:!1})}),this.currentNavigation.update(w=>(w.finalUrl=c,w)),Q(i)}else return this.events.next(new gs(o.id,this.urlSerializer.serialize(o.extractedUrl),"",Hm.IgnoredByUrlHandlingStrategy)),o.resolve(!1),Vi}),He(o=>{let a=new uv(o.id,this.urlSerializer.serialize(o.extractedUrl),this.urlSerializer.serialize(o.urlAfterRedirects),o.targetSnapshot);this.events.next(a)}),se(o=>(this.currentTransition=i=Ee(k({},o),{guards:HQ(o.targetSnapshot,o.currentSnapshot,this.rootContexts)}),i)),XQ(this.environmentInjector,o=>this.events.next(o)),He(o=>{if(i.guardsResult=o.guardsResult,o.guardsResult&&typeof o.guardsResult!="boolean")throw Dv(this.urlSerializer,o.guardsResult);let a=new mv(o.id,this.urlSerializer.serialize(o.extractedUrl),this.urlSerializer.serialize(o.urlAfterRedirects),o.targetSnapshot,!!o.guardsResult);this.events.next(a)}),ce(o=>o.guardsResult?!0:(this.cancelNavigationTransition(o,"",Vr.GuardRejected),!1)),BM(o=>{if(o.guards.canActivateChecks.length!==0)return Q(o).pipe(He(a=>{let s=new hv(a.id,this.urlSerializer.serialize(a.extractedUrl),this.urlSerializer.serialize(a.urlAfterRedirects),a.targetSnapshot);this.events.next(s)}),je(a=>{let s=!1;return Q(a).pipe(wK(this.paramsInheritanceStrategy,this.environmentInjector),He({next:()=>s=!0,complete:()=>{s||this.cancelNavigationTransition(a,"",Vr.NoDataFromResolver)}}))}),He(a=>{let s=new pv(a.id,this.urlSerializer.serialize(a.extractedUrl),this.urlSerializer.serialize(a.urlAfterRedirects),a.targetSnapshot);this.events.next(s)}))}),BM(o=>{let a=s=>{let l=[];if(s.routeConfig?.loadComponent){let c=Gm(s)??this.environmentInjector;l.push(this.configLoader.loadComponent(c,s.routeConfig).pipe(He(d=>{s.component=d}),se(()=>{})))}for(let c of s.children)l.push(...a(c));return l};return go(a(o.targetSnapshot.root)).pipe(Ll(null),ct(1))}),BM(()=>this.afterPreactivation()),je(()=>{let{currentSnapshot:o,targetSnapshot:a}=i,s=this.createViewTransition?.(this.environmentInjector,o.root,a.root);return s?Ft(s).pipe(se(()=>i)):Q(i)}),se(o=>{let a=NQ(e.routeReuseStrategy,o.targetSnapshot,o.currentRouterState);return this.currentTransition=i=Ee(k({},o),{targetRouterState:a}),this.currentNavigation.update(s=>(s.targetRouterState=a,s)),i}),He(()=>{this.events.next(new Pf)}),jQ(this.rootContexts,e.routeReuseStrategy,o=>this.events.next(o),this.inputBindingEnabled),ct(1),we(new Fe(o=>{let a=i.abortController.signal,s=()=>o.next();return a.addEventListener("abort",s),()=>a.removeEventListener("abort",s)}).pipe(ce(()=>!r&&!i.targetRouterState),He(()=>{this.cancelNavigationTransition(i,i.abortController.signal.reason+"",Vr.Aborted)}))),He({next:o=>{r=!0,this.lastSuccessfulNavigation=Ai(this.currentNavigation),this.events.next(new xi(o.id,this.urlSerializer.serialize(o.extractedUrl),this.urlSerializer.serialize(o.urlAfterRedirects))),this.titleStrategy?.updateTitle(o.targetRouterState.snapshot),o.resolve(!0)},complete:()=>{r=!0}}),we(this.transitionAbortWithErrorSubject.pipe(He(o=>{throw o}))),Gr(()=>{r||this.cancelNavigationTransition(i,"",Vr.SupersededByNewNavigation),this.currentTransition?.id===i.id&&(this.currentNavigation.set(null),this.currentTransition=null)}),ii(o=>{if(this.destroyed)return i.resolve(!1),Vi;if(r=!0,WN(o))this.events.next(new Ko(i.id,this.urlSerializer.serialize(i.extractedUrl),o.message,o.cancellationCode)),BQ(o)?this.events.next(new Um(o.url,o.navigationBehaviorOptions)):i.resolve(!1);else{let a=new nc(i.id,this.urlSerializer.serialize(i.extractedUrl),o,i.targetSnapshot??void 0);try{let s=On(this.environmentInjector,()=>this.navigationErrorHandler?.(a));if(s instanceof $m){let{message:l,cancellationCode:c}=Dv(this.urlSerializer,s);this.events.next(new Ko(i.id,this.urlSerializer.serialize(i.extractedUrl),l,c)),this.events.next(new Um(s.redirectTo,s.navigationBehaviorOptions))}else throw this.events.next(a),o}catch(s){this.options.resolveNavigationPromiseOnError?i.resolve(!1):i.reject(s)}}return Vi}))}))}cancelNavigationTransition(e,i,r){let o=new Ko(e.id,this.urlSerializer.serialize(e.extractedUrl),i,r);this.events.next(o),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))),i=Ai(this.currentNavigation),r=i?.targetBrowserUrl??i?.extractedUrl;return e.toString()!==r?.toString()&&!i?.extras.skipLocationChange}static \u0275fac=function(i){return new(i||t)};static \u0275prov=R({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();function IK(t){return t!==Bm}var iL=(()=>{class t{static \u0275fac=function(i){return new(i||t)};static \u0275prov=R({token:t,factory:()=>u(AK),providedIn:"root"})}return t})(),Mv=class{shouldDetach(n){return!1}store(n,e){}shouldAttach(n){return!1}retrieve(n){return null}shouldReuseRoute(n,e){return n.routeConfig===e.routeConfig}},AK=(()=>{class t extends Mv{static \u0275fac=(()=>{let e;return function(r){return(e||(e=ge(t)))(r||t)}})();static \u0275prov=R({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),nL=(()=>{class t{urlSerializer=u(rc);options=u(oc,{optional:!0})||{};canceledNavigationResolution=this.options.canceledNavigationResolution||"replace";location=u(ms);urlHandlingStrategy=u(Tv);urlUpdateStrategy=this.options.urlUpdateStrategy||"deferred";currentUrlTree=new ps;getCurrentUrlTree(){return this.currentUrlTree}rawUrlTree=this.currentUrlTree;getRawUrlTree(){return this.rawUrlTree}createBrowserPath({finalUrl:e,initialUrl:i,targetBrowserUrl:r}){let o=e!==void 0?this.urlHandlingStrategy.merge(e,i):i,a=r??o;return a instanceof ps?this.urlSerializer.serialize(a):a}commitTransition({targetRouterState:e,finalUrl:i,initialUrl:r}){i&&e?(this.currentUrlTree=i,this.rawUrlTree=this.urlHandlingStrategy.merge(i,r),this.routerState=e):this.rawUrlTree=r}routerState=BN(null);getRouterState(){return this.routerState}stateMemento=this.createStateMemento();updateStateMemento(){this.stateMemento=this.createStateMemento()}createStateMemento(){return{rawUrlTree:this.rawUrlTree,currentUrlTree:this.currentUrlTree,routerState:this.routerState}}resetInternalState({finalUrl:e}){this.routerState=this.stateMemento.routerState,this.currentUrlTree=this.stateMemento.currentUrlTree,this.rawUrlTree=this.urlHandlingStrategy.merge(this.currentUrlTree,e??this.rawUrlTree)}static \u0275fac=function(i){return new(i||t)};static \u0275prov=R({token:t,factory:()=>u(OK),providedIn:"root"})}return t})(),OK=(()=>{class t extends nL{currentPageId=0;lastSuccessfulId=-1;restoredState(){return this.location.getState()}get browserPageId(){return this.canceledNavigationResolution!=="computed"?this.currentPageId:this.restoredState()?.\u0275routerPageId??this.currentPageId}registerNonRouterCurrentEntryChangeListener(e){return this.location.subscribe(i=>{i.type==="popstate"&&setTimeout(()=>{e(i.url,i.state,"popstate")})})}handleRouterEvent(e,i){e instanceof fs?this.updateStateMemento():e instanceof gs?this.commitTransition(i):e instanceof Rf?this.urlUpdateStrategy==="eager"&&(i.extras.skipLocationChange||this.setBrowserUrl(this.createBrowserPath(i),i)):e instanceof Pf?(this.commitTransition(i),this.urlUpdateStrategy==="deferred"&&!i.extras.skipLocationChange&&this.setBrowserUrl(this.createBrowserPath(i),i)):e instanceof Ko&&e.code!==Vr.SupersededByNewNavigation&&e.code!==Vr.Redirect?this.restoreHistory(i):e instanceof nc?this.restoreHistory(i,!0):e instanceof xi&&(this.lastSuccessfulId=e.id,this.currentPageId=this.browserPageId)}setBrowserUrl(e,{extras:i,id:r}){let{replaceUrl:o,state:a}=i;if(this.location.isCurrentPathEqualTo(e)||o){let s=this.browserPageId,l=k(k({},a),this.generateNgRouterState(r,s));this.location.replaceState(e,"",l)}else{let s=k(k({},a),this.generateNgRouterState(r,this.browserPageId+1));this.location.go(e,"",s)}}restoreHistory(e,i=!1){if(this.canceledNavigationResolution==="computed"){let r=this.browserPageId,o=this.currentPageId-r;o!==0?this.location.historyGo(o):this.getCurrentUrlTree()===e.finalUrl&&o===0&&(this.resetInternalState(e),this.resetUrlToCurrentUrlTree())}else this.canceledNavigationResolution==="replace"&&(i&&this.resetInternalState(e),this.resetUrlToCurrentUrlTree())}resetUrlToCurrentUrlTree(){this.location.replaceState(this.urlSerializer.serialize(this.getRawUrlTree()),"",this.generateNgRouterState(this.lastSuccessfulId,this.currentPageId))}generateNgRouterState(e,i){return this.canceledNavigationResolution==="computed"?{navigationId:e,\u0275routerPageId:i}:{navigationId:e}}static \u0275fac=(()=>{let e;return function(r){return(e||(e=ge(t)))(r||t)}})();static \u0275prov=R({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();function Iv(t,n){t.events.pipe(ce(e=>e instanceof xi||e instanceof Ko||e instanceof nc||e instanceof gs),se(e=>e instanceof xi||e instanceof gs?0:(e instanceof Ko?e.code===Vr.Redirect||e.code===Vr.SupersededByNewNavigation:!1)?2:1),ce(e=>e!==2),ct(1)).subscribe(()=>{n()})}var RK={paths:"exact",fragment:"ignored",matrixParams:"ignored",queryParams:"exact"},PK={paths:"subset",fragment:"ignored",matrixParams:"ignored",queryParams:"subset"},Re=(()=>{class t{get currentUrlTree(){return this.stateManager.getCurrentUrlTree()}get rawUrlTree(){return this.stateManager.getRawUrlTree()}disposed=!1;nonRouterCurrentEntryChangeSubscription;console=u(S0);stateManager=u(nL);options=u(oc,{optional:!0})||{};pendingTasks=u(rs);urlUpdateStrategy=this.options.urlUpdateStrategy||"deferred";navigationTransitions=u(Uf);urlSerializer=u(rc);location=u(ms);urlHandlingStrategy=u(Tv);injector=u(Kt);_events=new z;get events(){return this._events}get routerState(){return this.stateManager.getRouterState()}navigated=!1;routeReuseStrategy=u(iL);onSameUrlNavigation=this.options.onSameUrlNavigation||"ignore";config=u(qd,{optional:!0})?.flat()??[];componentInputBindingEnabled=!!u(Hf,{optional:!0});currentNavigation=this.navigationTransitions.currentNavigation.asReadonly();constructor(){this.resetConfig(this.config),this.navigationTransitions.setupNavigations(this).subscribe({error:e=>{this.console.warn(e)}}),this.subscribeToNavigationEvents()}eventsSubscription=new Te;subscribeToNavigationEvents(){let e=this.navigationTransitions.events.subscribe(i=>{try{let r=this.navigationTransitions.currentTransition,o=Ai(this.navigationTransitions.currentNavigation);if(r!==null&&o!==null){if(this.stateManager.handleRouterEvent(i,o),i instanceof Ko&&i.code!==Vr.Redirect&&i.code!==Vr.SupersededByNewNavigation)this.navigated=!0;else if(i instanceof xi)this.navigated=!0;else if(i instanceof Um){let a=i.navigationBehaviorOptions,s=this.urlHandlingStrategy.merge(i.url,r.currentRawUrl),l=k({browserUrl:r.extras.browserUrl,info:r.extras.info,skipLocationChange:r.extras.skipLocationChange,replaceUrl:r.extras.replaceUrl||this.urlUpdateStrategy==="eager"||IK(r.source)},a);this.scheduleNavigation(s,Bm,null,l,{resolve:r.resolve,reject:r.reject,promise:r.promise})}}OQ(i)&&this._events.next(i)}catch(r){this.navigationTransitions.transitionAbortWithErrorSubject.next(r)}});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),Bm,this.stateManager.restoredState())}setUpLocationChangeListener(){this.nonRouterCurrentEntryChangeSubscription??=this.stateManager.registerNonRouterCurrentEntryChangeListener((e,i,r)=>{this.navigateToSyncWithBrowser(e,r,i)})}navigateToSyncWithBrowser(e,i,r){let o={replaceUrl:!0},a=r?.navigationId?r:null;if(r){let l=k({},r);delete l.navigationId,delete l.\u0275routerPageId,Object.keys(l).length!==0&&(o.state=l)}let s=this.parseUrl(e);this.scheduleNavigation(s,i,a,o).catch(l=>{this.disposed||this.injector.get(fr)(l)})}get url(){return this.serializeUrl(this.currentUrlTree)}getCurrentNavigation(){return Ai(this.navigationTransitions.currentNavigation)}get lastSuccessfulNavigation(){return this.navigationTransitions.lastSuccessfulNavigation}resetConfig(e){this.config=e.map(nS),this.navigated=!1}ngOnDestroy(){this.dispose()}dispose(){this._events.unsubscribe(),this.navigationTransitions.complete(),this.nonRouterCurrentEntryChangeSubscription&&(this.nonRouterCurrentEntryChangeSubscription.unsubscribe(),this.nonRouterCurrentEntryChangeSubscription=void 0),this.disposed=!0,this.eventsSubscription.unsubscribe()}createUrlTree(e,i={}){let{relativeTo:r,queryParams:o,fragment:a,queryParamsHandling:s,preserveFragment:l}=i,c=l?this.currentUrlTree.fragment:a,d=null;switch(s??this.options.defaultQueryParamsHandling){case"merge":d=k(k({},this.currentUrlTree.queryParams),o);break;case"preserve":d=this.currentUrlTree.queryParams;break;default:d=o||null}d!==null&&(d=this.removeEmptyProps(d));let p;try{let _=r?r.snapshot:this.routerState.snapshot.root;p=FN(_)}catch{(typeof e[0]!="string"||e[0][0]!=="/")&&(e=[]),p=this.currentUrlTree.root}return NN(p,e,d,c??null)}navigateByUrl(e,i={skipLocationChange:!1}){let r=ic(e)?e:this.parseUrl(e),o=this.urlHandlingStrategy.merge(r,this.rawUrlTree);return this.scheduleNavigation(o,Bm,null,i)}navigate(e,i={skipLocationChange:!1}){return FK(e),this.navigateByUrl(this.createUrlTree(e,i),i)}serializeUrl(e){return this.urlSerializer.serialize(e)}parseUrl(e){try{return this.urlSerializer.parse(e)}catch{return this.console.warn(Vo(4018,!1)),this.urlSerializer.parse("/")}}isActive(e,i){let r;if(i===!0?r=k({},RK):i===!1?r=k({},PK):r=i,ic(e))return gN(this.currentUrlTree,e,r);let o=this.parseUrl(e);return gN(this.currentUrlTree,o,r)}removeEmptyProps(e){return Object.entries(e).reduce((i,[r,o])=>(o!=null&&(i[r]=o),i),{})}scheduleNavigation(e,i,r,o,a){if(this.disposed)return Promise.resolve(!1);let s,l,c;a?(s=a.resolve,l=a.reject,c=a.promise):c=new Promise((p,_)=>{s=p,l=_});let d=this.pendingTasks.add();return Iv(this,()=>{queueMicrotask(()=>this.pendingTasks.remove(d))}),this.navigationTransitions.handleNavigationRequest({source:i,restoredState:r,currentUrlTree:this.currentUrlTree,currentRawUrl:this.currentUrlTree,rawUrl:e,extras:o,resolve:s,reject:l,promise:c,currentSnapshot:this.routerState.snapshot,currentRouterState:this.routerState}),c.catch(p=>Promise.reject(p))}static \u0275fac=function(i){return new(i||t)};static \u0275prov=R({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();function FK(t){for(let n=0;n{class t{router;route;tabIndexAttribute;renderer;el;locationStrategy;reactiveHref=he(null);get href(){return Ai(this.reactiveHref)}set href(e){this.reactiveHref.set(e)}target;queryParams;fragment;queryParamsHandling;state;info;relativeTo;isAnchorElement;subscription;onChanges=new z;applicationErrorHandler=u(fr);options=u(oc,{optional:!0});constructor(e,i,r,o,a,s){this.router=e,this.route=i,this.tabIndexAttribute=r,this.renderer=o,this.el=a,this.locationStrategy=s,this.reactiveHref.set(u(new Oi("href"),{optional:!0}));let l=a.nativeElement.tagName?.toLowerCase();this.isAnchorElement=l==="a"||l==="area"||!!(typeof customElements=="object"&&customElements.get(l)?.observedAttributes?.includes?.("href")),this.isAnchorElement?this.setTabIndexIfNotOnNativeEl("0"):this.subscribeToNavigationEventsIfNecessary()}subscribeToNavigationEventsIfNecessary(){if(this.subscription!==void 0||!this.isAnchorElement)return;let e=this.preserveFragment,i=r=>r==="merge"||r==="preserve";e||=i(this.queryParamsHandling),e||=!this.queryParamsHandling&&!i(this.options?.defaultQueryParamsHandling),e&&(this.subscription=this.router.events.subscribe(r=>{r instanceof xi&&this.updateHref()}))}preserveFragment=!1;skipLocationChange=!1;replaceUrl=!1;setTabIndexIfNotOnNativeEl(e){this.tabIndexAttribute!=null||this.isAnchorElement||this.applyAttributeValue("tabindex",e)}ngOnChanges(e){this.isAnchorElement&&(this.updateHref(),this.subscribeToNavigationEventsIfNecessary()),this.onChanges.next(this)}routerLinkInput=null;set routerLink(e){e==null?(this.routerLinkInput=null,this.setTabIndexIfNotOnNativeEl(null)):(ic(e)?this.routerLinkInput=e:this.routerLinkInput=Array.isArray(e)?e:[e],this.setTabIndexIfNotOnNativeEl("0"))}onClick(e,i,r,o,a){let s=this.urlTree;if(s===null||this.isAnchorElement&&(e!==0||i||r||o||a||typeof this.target=="string"&&this.target!="_self"))return!0;let l={skipLocationChange:this.skipLocationChange,replaceUrl:this.replaceUrl,state:this.state,info:this.info};return this.router.navigateByUrl(s,l)?.catch(c=>{this.applicationErrorHandler(c)}),!this.isAnchorElement}ngOnDestroy(){this.subscription?.unsubscribe()}updateHref(){let e=this.urlTree;this.reactiveHref.set(e!==null&&this.locationStrategy?this.locationStrategy?.prepareExternalUrl(this.router.serializeUrl(e))??"":null)}applyAttributeValue(e,i){let r=this.renderer,o=this.el.nativeElement;i!==null?r.setAttribute(o,e,i):r.removeAttribute(o,e)}get urlTree(){return this.routerLinkInput===null?null:ic(this.routerLinkInput)?this.routerLinkInput:this.router.createUrlTree(this.routerLinkInput,{relativeTo:this.relativeTo!==void 0?this.relativeTo:this.route,queryParams:this.queryParams,fragment:this.fragment,queryParamsHandling:this.queryParamsHandling,preserveFragment:this.preserveFragment})}static \u0275fac=function(i){return new(i||t)(be(Re),be(Si),Jp("tabindex"),be(ze),be(Y),be(Ma))};static \u0275dir=P({type:t,selectors:[["","routerLink",""]],hostVars:2,hostBindings:function(i,r){i&1&&S("click",function(a){return r.onClick(a.button,a.ctrlKey,a.shiftKey,a.altKey,a.metaKey)}),i&2&&X("href",r.reactiveHref(),m1)("target",r.target)},inputs:{target:"target",queryParams:"queryParams",fragment:"fragment",queryParamsHandling:"queryParamsHandling",state:"state",info:"info",relativeTo:"relativeTo",preserveFragment:[2,"preserveFragment","preserveFragment",L],skipLocationChange:[2,"skipLocationChange","skipLocationChange",L],replaceUrl:[2,"replaceUrl","replaceUrl",L],routerLink:"routerLink"},features:[Ae]})}return t})(),Yd=(()=>{class t{router;element;renderer;cdr;link;links;classes=[];routerEventsSubscription;linkInputChangesSubscription;_isActive=!1;get isActive(){return this._isActive}routerLinkActiveOptions={exact:!1};ariaCurrentWhenActive;isActiveChange=new U;constructor(e,i,r,o,a){this.router=e,this.element=i,this.renderer=r,this.cdr=o,this.link=a,this.routerEventsSubscription=e.events.subscribe(s=>{s instanceof xi&&this.update()})}ngAfterContentInit(){Q(this.links.changes,Q(null)).pipe(_o()).subscribe(e=>{this.update(),this.subscribeToEachLinkOnChanges()})}subscribeToEachLinkOnChanges(){this.linkInputChangesSubscription?.unsubscribe();let e=[...this.links.toArray(),this.link].filter(i=>!!i).map(i=>i.onChanges);this.linkInputChangesSubscription=Ft(e).pipe(_o()).subscribe(i=>{this._isActive!==this.isLinkActive(this.router)(i)&&this.update()})}set routerLinkActive(e){let i=Array.isArray(e)?e:e.split(" ");this.classes=i.filter(r=>!!r)}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(i=>{e?this.renderer.addClass(this.element.nativeElement,i):this.renderer.removeClass(this.element.nativeElement,i)}),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 i=NK(this.routerLinkActiveOptions)?this.routerLinkActiveOptions:this.routerLinkActiveOptions.exact||!1;return r=>{let o=r.urlTree;return o?e.isActive(o,i):!1}}hasActiveLinks(){let e=this.isLinkActive(this.router);return this.link&&e(this.link)||this.links.some(e)}static \u0275fac=function(i){return new(i||t)(be(Re),be(Y),be(ze),be(ye),be(Vn,8))};static \u0275dir=P({type:t,selectors:[["","routerLinkActive",""]],contentQueries:function(i,r,o){if(i&1&&xe(o,Vn,5),i&2){let a;j(a=H())&&(r.links=a)}},inputs:{routerLinkActiveOptions:"routerLinkActiveOptions",ariaCurrentWhenActive:"ariaCurrentWhenActive",routerLinkActive:"routerLinkActive"},outputs:{isActiveChange:"isActiveChange"},exportAs:["routerLinkActive"],features:[Ae]})}return t})();function NK(t){return!!t.paths}var $f=class{};var rL=(()=>{class t{router;injector;preloadingStrategy;loader;subscription;constructor(e,i,r,o){this.router=e,this.injector=i,this.preloadingStrategy=r,this.loader=o}setUpPreloading(){this.subscription=this.router.events.pipe(ce(e=>e instanceof xi),No(()=>this.preload())).subscribe(()=>{})}preload(){return this.processRoutes(this.injector,this.router.config)}ngOnDestroy(){this.subscription&&this.subscription.unsubscribe()}processRoutes(e,i){let r=[];for(let o of i){o.providers&&!o._injector&&(o._injector=Dm(o.providers,e,`Route: ${o.path}`));let a=o._injector??e,s=o._loadedInjector??a;(o.loadChildren&&!o._loadedRoutes&&o.canLoad===void 0||o.loadComponent&&!o._loadedComponent)&&r.push(this.preloadConfig(a,o)),(o.children||o._loadedRoutes)&&r.push(this.processRoutes(s,o.children??o._loadedRoutes))}return Ft(r).pipe(_o())}preloadConfig(e,i){return this.preloadingStrategy.preload(i,()=>{let r;i.loadChildren&&i.canLoad===void 0?r=this.loader.loadChildren(e,i):r=Q(null);let o=r.pipe(It(a=>a===null?Q(void 0):(i._loadedRoutes=a.routes,i._loadedInjector=a.injector,this.processRoutes(a.injector??e,a.routes))));if(i.loadComponent&&!i._loadedComponent){let a=this.loader.loadComponent(e,i);return Ft([o,a]).pipe(_o())}else return o})}static \u0275fac=function(i){return new(i||t)(fe(Re),fe(Kt),fe($f),fe(kv))};static \u0275prov=R({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),cS=new O(""),oL=(()=>{class t{urlSerializer;transitions;viewportScroller;zone;options;routerEventsSubscription;scrollEventsSubscription;lastId=0;lastSource=Bm;restoredId=0;store={};constructor(e,i,r,o,a={}){this.urlSerializer=e,this.transitions=i,this.viewportScroller=r,this.zone=o,this.options=a,a.scrollPositionRestoration||="disabled",a.anchorScrolling||="disabled"}init(){this.options.scrollPositionRestoration!=="disabled"&&this.viewportScroller.setHistoryScrollRestoration("manual"),this.routerEventsSubscription=this.createScrollEvents(),this.scrollEventsSubscription=this.consumeScrollEvents()}createScrollEvents(){return this.transitions.events.subscribe(e=>{e instanceof fs?(this.store[this.lastId]=this.viewportScroller.getScrollPosition(),this.lastSource=e.navigationTrigger,this.restoredId=e.restoredState?e.restoredState.navigationId:0):e instanceof xi?(this.lastId=e.id,this.scheduleScrollEvent(e,this.urlSerializer.parse(e.urlAfterRedirects).fragment)):e instanceof gs&&e.code===Hm.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 zm))return;let i={behavior:"instant"};e.position?this.options.scrollPositionRestoration==="top"?this.viewportScroller.scrollToPosition([0,0],i):this.options.scrollPositionRestoration==="enabled"&&this.viewportScroller.scrollToPosition(e.position,i):e.anchor&&this.options.anchorScrolling==="enabled"?this.viewportScroller.scrollToAnchor(e.anchor):this.options.scrollPositionRestoration!=="disabled"&&this.viewportScroller.scrollToPosition([0,0])})}scheduleScrollEvent(e,i){this.zone.runOutsideAngular(()=>gn(this,null,function*(){yield new Promise(r=>{setTimeout(r),typeof requestAnimationFrame<"u"&&requestAnimationFrame(r)}),this.zone.run(()=>{this.transitions.events.next(new zm(e,this.lastSource==="popstate"?this.store[this.restoredId]:null,i))})}))}ngOnDestroy(){this.routerEventsSubscription?.unsubscribe(),this.scrollEventsSubscription?.unsubscribe()}static \u0275fac=function(i){Nd()};static \u0275prov=R({token:t,factory:t.\u0275fac})}return t})();function dS(t,...n){return qr([{provide:qd,multi:!0,useValue:t},[],{provide:Si,useFactory:aL,deps:[Re]},{provide:cf,multi:!0,useFactory:sL},n.map(e=>e.\u0275providers)])}function aL(t){return t.routerState.root}function Ym(t,n){return{\u0275kind:t,\u0275providers:n}}function uS(t={}){return Ym(4,[{provide:cS,useFactory:()=>{let e=u(bM),i=u(ae),r=u(Uf),o=u(rc);return new oL(o,r,e,i,t)}}])}function sL(){let t=u(de);return n=>{let e=t.get(Yn);if(n!==e.components[0])return;let i=t.get(Re),r=t.get(lL);t.get(mS)===1&&i.initialNavigation(),t.get(uL,null,{optional:!0})?.setUpPreloading(),t.get(cS,null,{optional:!0})?.init(),i.resetRootComponentType(e.componentTypes[0]),r.closed||(r.next(),r.complete(),r.unsubscribe())}}var lL=new O("",{factory:()=>new z}),mS=new O("",{providedIn:"root",factory:()=>1});function cL(){let t=[{provide:u0,useValue:!0},{provide:mS,useValue:0},Zl(()=>{let n=u(de);return n.get(rM,Promise.resolve()).then(()=>new Promise(i=>{let r=n.get(Re),o=n.get(lL);Iv(r,()=>{i(!0)}),n.get(Uf).afterPreactivation=()=>(i(!0),o.closed?Q(void 0):o),r.initialNavigation()}))})];return Ym(2,t)}function dL(){let t=[Zl(()=>{u(Re).setUpLocationChangeListener()}),{provide:mS,useValue:2}];return Ym(3,t)}var uL=new O("");function mL(t){return Ym(0,[{provide:uL,useExisting:rL},{provide:$f,useExisting:t}])}function Av(){return Ym(8,[tS,{provide:Hf,useExisting:tS}])}function hL(t){ds("NgRouterViewTransitions");let n=[{provide:oS,useValue:tL},{provide:aS,useValue:k({skipNextTransition:!!t?.skipInitialTransition},t)}];return Ym(9,n)}var pL=[ms,{provide:rc,useClass:tc},Re,Gd,{provide:Si,useFactory:aL,deps:[Re]},kv,[]],hS=(()=>{class t{constructor(){}static forRoot(e,i){return{ngModule:t,providers:[pL,[],{provide:qd,multi:!0,useValue:e},[],i?.errorHandler?{provide:sS,useValue:i.errorHandler}:[],{provide:oc,useValue:i||{}},i?.useHash?VK():BK(),LK(),i?.preloadingStrategy?mL(i.preloadingStrategy).\u0275providers:[],i?.initialNavigation?jK(i):[],i?.bindToComponentInputs?Av().\u0275providers:[],i?.enableViewTransitions?hL().\u0275providers:[],HK()]}}static forChild(e){return{ngModule:t,providers:[{provide:qd,multi:!0,useValue:e}]}}static \u0275fac=function(i){return new(i||t)};static \u0275mod=ee({type:t});static \u0275inj=J({})}return t})();function LK(){return{provide:cS,useFactory:()=>{let t=u(bM),n=u(ae),e=u(oc),i=u(Uf),r=u(rc);return e.scrollOffset&&t.setOffset(e.scrollOffset),new oL(r,i,t,n,e)}}}function VK(){return{provide:Ma,useClass:hM}}function BK(){return{provide:Ma,useClass:V0}}function jK(t){return[t.initialNavigation==="disabled"?dL().\u0275providers:[],t.initialNavigation==="enabledBlocking"?cL().\u0275providers:[]]}var lS=new O("");function HK(){return[{provide:lS,useFactory:sL},{provide:cf,multi:!0,useExisting:lS}]}var fS=class{validateSignature(n){return Promise.resolve(null)}validateAtHash(n){return Promise.resolve(!0)}},Ov=class{};var Wf=class{},zK=(()=>{let n=class n extends Wf{now(){return Date.now()}new(){return new Date}};n.\u0275fac=(()=>{let i;return function(o){return(i||(i=ge(n)))(o||n)}})(),n.\u0275prov=R({token:n,factory:n.\u0275fac});let t=n;return t})();var Rv=class{},Pv=class{},UK=(()=>{let n=class n{constructor(){this.data=new Map}getItem(i){return this.data.get(i)}removeItem(i){this.data.delete(i)}setItem(i,r){this.data.set(i,r)}};n.\u0275fac=function(r){return new(r||n)},n.\u0275prov=R({token:n,factory:n.\u0275fac});let t=n;return t})();var Gf=class{constructor(n){this.type=n}},Br=class extends Gf{constructor(n,e=null){super(n),this.info=e}},Aa=class extends Gf{constructor(n,e=null){super(n),this.info=e}},Wi=class extends Gf{constructor(n,e,i=null){super(n),this.reason=e,this.params=i}};function gL(t){let n=t.replace(/-/g,"+").replace(/_/g,"/");return decodeURIComponent(atob(n).split("").map(function(e){return"%"+("00"+e.charCodeAt(0).toString(16)).slice(-2)}).join(""))}function _L(t){return btoa(t).replace(/\+/g,"-").replace(/\//g,"_").replace(/=/g,"")}var Qm=class{constructor(n){this.clientId="",this.redirectUri="",this.postLogoutRedirectUri="",this.redirectUriAsPostLogoutRedirectUriFallback=!0,this.loginUrl="",this.scope="openid profile",this.resource="",this.rngUrl="",this.oidc=!0,this.requestAccessToken=!0,this.options=null,this.issuer="",this.logoutUrl="",this.clearHashAfterLogin=!0,this.tokenEndpoint=null,this.revocationEndpoint=null,this.customTokenParameters=[],this.userinfoEndpoint=null,this.responseType="",this.showDebugInformation=!1,this.silentRefreshRedirectUri="",this.silentRefreshMessagePrefix="",this.silentRefreshShowIFrame=!1,this.siletRefreshTimeout=1e3*20,this.silentRefreshTimeout=1e3*20,this.dummyClientSecret="",this.requireHttps="remoteOnly",this.strictDiscoveryDocumentValidation=!0,this.jwks=null,this.customQueryParams=null,this.silentRefreshIFrameName="angular-oauth-oidc-silent-refresh-iframe",this.timeoutFactor=.75,this.sessionChecksEnabled=!1,this.sessionCheckIntervall=3*1e3,this.sessionCheckIFrameUrl=null,this.sessionCheckIFrameName="angular-oauth-oidc-check-session-iframe",this.disableAtHashCheck=!1,this.skipSubjectCheck=!1,this.useIdTokenHintForSilentRefresh=!1,this.skipIssuerCheck=!1,this.nonceStateSeparator=";",this.useHttpBasicAuth=!1,this.decreaseExpirationBySec=0,this.waitForTokenInMsec=0,this.disablePKCE=!1,this.preserveRequestedRoute=!1,this.disableIdTokenTimer=!1,this.checkOrigin=!1,this.openUri=e=>{location.href=e},n&&Object.assign(this,n)}},Qd=class{encodeKey(n){return encodeURIComponent(n)}encodeValue(n){return encodeURIComponent(n)}decodeKey(n){return decodeURIComponent(n)}decodeValue(n){return decodeURIComponent(n)}},Fv=class{};var bL=(()=>{let n=class n{getHashFragmentParams(i){let r=i||window.location.hash;if(r=decodeURIComponent(r),r.indexOf("#")!==0)return{};let o=r.indexOf("?");return o>-1?r=r.substr(o+1):r=r.substr(1),this.parseQueryString(r)}parseQueryString(i){let r={},o,a,s,l,c,d;if(i===null)return r;let p=i.split("&");for(let _=0;_=64;){for(o=n[0],a=n[1],s=n[2],l=n[3],c=n[4],d=n[5],p=n[6],_=n[7],y=0;y<16;y++)w=i+y*4,t[y]=(e[w]&255)<<24|(e[w+1]&255)<<16|(e[w+2]&255)<<8|e[w+3]&255;for(y=16;y<64;y++)b=t[y-2],C=(b>>>17|b<<15)^(b>>>19|b<<13)^b>>>10,b=t[y-15],D=(b>>>7|b<<25)^(b>>>18|b<<14)^b>>>3,t[y]=(C+t[y-7]|0)+(D+t[y-16]|0);for(y=0;y<64;y++)C=(((c>>>6|c<<26)^(c>>>11|c<<21)^(c>>>25|c<<7))+(c&d^~c&p)|0)+(_+(WK[y]+t[y]|0)|0)|0,D=((o>>>2|o<<30)^(o>>>13|o<<19)^(o>>>22|o<<10))+(o&a^o&s^a&s)|0,_=p,p=d,d=c,c=l+C|0,l=s,s=a,a=o,o=C+D|0;n[0]+=o,n[1]+=a,n[2]+=s,n[3]+=l,n[4]+=c,n[5]+=d,n[6]+=p,n[7]+=_,i+=64,r-=64}return i}var gS=class{constructor(){this.digestLength=vL,this.blockSize=$K,this.state=new Int32Array(8),this.temp=new Int32Array(64),this.buffer=new Uint8Array(128),this.bufferLength=0,this.bytesHashed=0,this.finished=!1,this.reset()}reset(){return this.state[0]=1779033703,this.state[1]=3144134277,this.state[2]=1013904242,this.state[3]=2773480762,this.state[4]=1359893119,this.state[5]=2600822924,this.state[6]=528734635,this.state[7]=1541459225,this.bufferLength=0,this.bytesHashed=0,this.finished=!1,this}clean(){for(let n=0;n0){for(;this.bufferLength<64&&e>0;)this.buffer[this.bufferLength++]=n[i++],e--;this.bufferLength===64&&(pS(this.temp,this.state,this.buffer,0,64),this.bufferLength=0)}for(e>=64&&(i=pS(this.temp,this.state,n,i,e),e%=64);e>0;)this.buffer[this.bufferLength++]=n[i++],e--;return this}finish(n){if(!this.finished){let e=this.bytesHashed,i=this.bufferLength,r=e/536870912|0,o=e<<3,a=e%64<56?64:128;this.buffer[i]=128;for(let s=i+1;s>>24&255,this.buffer[a-7]=r>>>16&255,this.buffer[a-6]=r>>>8&255,this.buffer[a-5]=r>>>0&255,this.buffer[a-4]=o>>>24&255,this.buffer[a-3]=o>>>16&255,this.buffer[a-2]=o>>>8&255,this.buffer[a-1]=o>>>0&255,pS(this.temp,this.state,this.buffer,0,a),this.finished=!0}for(let e=0;e<8;e++)n[e*4+0]=this.state[e]>>>24&255,n[e*4+1]=this.state[e]>>>16&255,n[e*4+2]=this.state[e]>>>8&255,n[e*4+3]=this.state[e]>>>0&255;return this}digest(){let n=new Uint8Array(this.digestLength);return this.finish(n),n}_saveState(n){for(let e=0;e{let n=class n{calcHash(i,r){return gn(this,null,function*(){return YK(GK(qK(i)))})}toHashString2(i){let r="";for(let o of i)r+=String.fromCharCode(o);return r}toHashString(i){let r=new Uint8Array(i),o="";for(let a of r)o+=String.fromCharCode(a);return o}};n.\u0275fac=function(r){return new(r||n)},n.\u0275prov=R({token:n,factory:n.\u0275fac});let t=n;return t})(),Km=(()=>{let n=class n extends Qm{constructor(i,r,o,a,s,l,c,d,p,_){super(),this.ngZone=i,this.http=r,this.config=s,this.urlHelper=l,this.logger=c,this.crypto=d,this.dateTimeService=_,this.discoveryDocumentLoaded=!1,this.state="",this.eventsSubject=new z,this.discoveryDocumentLoadedSubject=new z,this.grantTypesSupported=[],this.inImplicitFlow=!1,this.saveNoncesInLocalStorage=!1,this.debug("angular-oauth2-oidc v10"),this.document=p,s||(s={}),this.discoveryDocumentLoaded$=this.discoveryDocumentLoadedSubject.asObservable(),this.events=this.eventsSubject.asObservable(),a&&(this.tokenValidationHandler=a),s&&this.configure(s);try{o?this.setStorage(o):typeof sessionStorage<"u"&&this.setStorage(sessionStorage)}catch(b){console.error("No OAuthStorage provided and cannot access default (sessionStorage).Consider providing a custom OAuthStorage implementation in your module.",b)}if(this.checkLocalStorageAccessable()){let b=window?.navigator?.userAgent;(b?.includes("MSIE ")||b?.includes("Trident"))&&(this.saveNoncesInLocalStorage=!0)}this.setupRefreshTimer()}checkLocalStorageAccessable(){if(typeof window>"u")return!1;let i="test";try{return typeof window.localStorage>"u"?!1:(localStorage.setItem(i,i),localStorage.removeItem(i),!0)}catch{return!1}}configure(i){Object.assign(this,new Qm,i),this.config=Object.assign({},new Qm,i),this.sessionChecksEnabled&&this.setupSessionCheck(),this.configChanged()}configChanged(){this.setupRefreshTimer()}restartSessionChecksIfStillLoggedIn(){this.hasValidIdToken()&&this.initSessionCheck()}restartRefreshTimerIfStillLoggedIn(){this.setupExpirationTimers()}setupSessionCheck(){this.events.pipe(ce(i=>i.type==="token_received")).subscribe(()=>{this.initSessionCheck()})}setupAutomaticSilentRefresh(i={},r,o=!0){let a=!0;this.clearAutomaticRefreshTimer(),this.automaticRefreshSubscription=this.events.pipe(He(s=>{s.type==="token_received"?a=!0:s.type==="logout"&&(a=!1)}),ce(s=>s.type==="token_expires"&&(r==null||r==="any"||s.info===r)),St(1e3)).subscribe(()=>{a&&this.refreshInternal(i,o).catch(()=>{this.debug("Automatic silent refresh did not work")})}),this.restartRefreshTimerIfStillLoggedIn()}refreshInternal(i,r){return!this.useSilentRefresh&&this.responseType==="code"?this.refreshToken():this.silentRefresh(i,r)}loadDiscoveryDocumentAndTryLogin(i=null){return this.loadDiscoveryDocument().then(()=>this.tryLogin(i))}loadDiscoveryDocumentAndLogin(i=null){return i=i||{},this.loadDiscoveryDocumentAndTryLogin(i).then(()=>{if(!this.hasValidIdToken()||!this.hasValidAccessToken()){let r=typeof i.state=="string"?i.state:"";return this.initLoginFlow(r),!1}else return!0})}debug(...i){this.showDebugInformation&&this.logger.debug(...i)}validateUrlFromDiscoveryDocument(i){let r=[],o=this.validateUrlForHttps(i),a=this.validateUrlAgainstIssuer(i);return o||r.push("https for all urls required. Also for urls received by discovery."),a||r.push("Every url in discovery document has to start with the issuer url.Also see property strictDiscoveryDocumentValidation."),r}validateUrlForHttps(i){if(!i)return!0;let r=i.toLowerCase();return this.requireHttps===!1||(r.match(/^http:\/\/localhost($|[:/])/)||r.match(/^http:\/\/localhost($|[:/])/))&&this.requireHttps==="remoteOnly"?!0:r.startsWith("https://")}assertUrlNotNullAndCorrectProtocol(i,r){if(!i)throw new Error(`'${r}' should not be null`);if(!this.validateUrlForHttps(i))throw new Error(`'${r}' must use HTTPS (with TLS), or config value for property 'requireHttps' must be set to 'false' and allow HTTP (without TLS).`)}validateUrlAgainstIssuer(i){return!this.strictDiscoveryDocumentValidation||!i?!0:i.toLowerCase().startsWith(this.issuer.toLowerCase())}setupRefreshTimer(){if(typeof window>"u"){this.debug("timer not supported on this plattform");return}(this.hasValidIdToken()||this.hasValidAccessToken())&&(this.clearAccessTokenTimer(),this.clearIdTokenTimer(),this.setupExpirationTimers()),this.tokenReceivedSubscription&&this.tokenReceivedSubscription.unsubscribe(),this.tokenReceivedSubscription=this.events.pipe(ce(i=>i.type==="token_received")).subscribe(()=>{this.clearAccessTokenTimer(),this.clearIdTokenTimer(),this.setupExpirationTimers()})}setupExpirationTimers(){this.hasValidAccessToken()&&this.setupAccessTokenTimer(),!this.disableIdTokenTimer&&this.hasValidIdToken()&&this.setupIdTokenTimer()}setupAccessTokenTimer(){let i=this.getAccessTokenExpiration(),r=this.getAccessTokenStoredAt(),o=this.calcTimeout(r,i);this.ngZone.runOutsideAngular(()=>{this.accessTokenTimeoutSubscription=Q(new Aa("token_expires","access_token")).pipe(ga(o)).subscribe(a=>{this.ngZone.run(()=>{this.eventsSubject.next(a)})})})}setupIdTokenTimer(){let i=this.getIdTokenExpiration(),r=this.getIdTokenStoredAt(),o=this.calcTimeout(r,i);this.ngZone.runOutsideAngular(()=>{this.idTokenTimeoutSubscription=Q(new Aa("token_expires","id_token")).pipe(ga(o)).subscribe(a=>{this.ngZone.run(()=>{this.eventsSubject.next(a)})})})}stopAutomaticRefresh(){this.clearAccessTokenTimer(),this.clearIdTokenTimer(),this.clearAutomaticRefreshTimer()}clearAccessTokenTimer(){this.accessTokenTimeoutSubscription&&this.accessTokenTimeoutSubscription.unsubscribe()}clearIdTokenTimer(){this.idTokenTimeoutSubscription&&this.idTokenTimeoutSubscription.unsubscribe()}clearAutomaticRefreshTimer(){this.automaticRefreshSubscription&&this.automaticRefreshSubscription.unsubscribe()}calcTimeout(i,r){let o=this.dateTimeService.now(),a=(r-i)*this.timeoutFactor-(o-i),s=Math.max(0,a),l=2147483647;return s>l?l:s}setStorage(i){this._storage=i,this.configChanged()}loadDiscoveryDocument(i=null){return new Promise((r,o)=>{if(i||(i=this.issuer||"",i.endsWith("/")||(i+="/"),i+=".well-known/openid-configuration"),!this.validateUrlForHttps(i)){o("issuer must use HTTPS (with TLS), or config value for property 'requireHttps' must be set to 'false' and allow HTTP (without TLS).");return}this.http.get(i).subscribe(a=>{if(!this.validateDiscoveryDocument(a)){this.eventsSubject.next(new Wi("discovery_document_validation_error",null)),o("discovery_document_validation_error");return}this.loginUrl=a.authorization_endpoint,this.logoutUrl=a.end_session_endpoint||this.logoutUrl,this.grantTypesSupported=a.grant_types_supported,this.issuer=a.issuer,this.tokenEndpoint=a.token_endpoint,this.userinfoEndpoint=a.userinfo_endpoint||this.userinfoEndpoint,this.jwksUri=a.jwks_uri,this.sessionCheckIFrameUrl=a.check_session_iframe||this.sessionCheckIFrameUrl,this.discoveryDocumentLoaded=!0,this.discoveryDocumentLoadedSubject.next(a),this.revocationEndpoint=a.revocation_endpoint||this.revocationEndpoint,this.sessionChecksEnabled&&this.restartSessionChecksIfStillLoggedIn(),this.loadJwks().then(s=>{let l={discoveryDocument:a,jwks:s},c=new Br("discovery_document_loaded",l);this.eventsSubject.next(c),r(c)}).catch(s=>{this.eventsSubject.next(new Wi("discovery_document_load_error",s)),o(s)})},a=>{this.logger.error("error loading discovery document",a),this.eventsSubject.next(new Wi("discovery_document_load_error",a)),o(a)})})}loadJwks(){return new Promise((i,r)=>{this.jwksUri?this.http.get(this.jwksUri).subscribe(o=>{this.jwks=o,i(o)},o=>{this.logger.error("error loading jwks",o),this.eventsSubject.next(new Wi("jwks_load_error",o)),r(o)}):i(null)})}validateDiscoveryDocument(i){let r;return!this.skipIssuerCheck&&i.issuer!==this.issuer?(this.logger.error("invalid issuer in discovery document","expected: "+this.issuer,"current: "+i.issuer),!1):(r=this.validateUrlFromDiscoveryDocument(i.authorization_endpoint),r.length>0?(this.logger.error("error validating authorization_endpoint in discovery document",r),!1):(r=this.validateUrlFromDiscoveryDocument(i.end_session_endpoint),r.length>0?(this.logger.error("error validating end_session_endpoint in discovery document",r),!1):(r=this.validateUrlFromDiscoveryDocument(i.token_endpoint),r.length>0&&this.logger.error("error validating token_endpoint in discovery document",r),r=this.validateUrlFromDiscoveryDocument(i.revocation_endpoint),r.length>0&&this.logger.error("error validating revocation_endpoint in discovery document",r),r=this.validateUrlFromDiscoveryDocument(i.userinfo_endpoint),r.length>0?(this.logger.error("error validating userinfo_endpoint in discovery document",r),!1):(r=this.validateUrlFromDiscoveryDocument(i.jwks_uri),r.length>0?(this.logger.error("error validating jwks_uri in discovery document",r),!1):(this.sessionChecksEnabled&&!i.check_session_iframe&&this.logger.warn("sessionChecksEnabled is activated but discovery document does not contain a check_session_iframe field"),!0)))))}fetchTokenUsingPasswordFlowAndLoadUserProfile(i,r,o=new yr){return this.fetchTokenUsingPasswordFlow(i,r,o).then(()=>this.loadUserProfile())}loadUserProfile(){if(!this.hasValidAccessToken())throw new Error("Can not load User Profile without access_token");if(!this.validateUrlForHttps(this.userinfoEndpoint))throw new Error("userinfoEndpoint must use HTTPS (with TLS), or config value for property 'requireHttps' must be set to 'false' and allow HTTP (without TLS).");return new Promise((i,r)=>{let o=new yr().set("Authorization","Bearer "+this.getAccessToken());this.http.get(this.userinfoEndpoint,{headers:o,observe:"response",responseType:"text"}).subscribe(a=>{if(this.debug("userinfo received",JSON.stringify(a)),a.headers.get("content-type").startsWith("application/json")){let s=JSON.parse(a.body),l=this.getIdentityClaims()||{};if(!this.skipSubjectCheck&&this.oidc&&(!l.sub||s.sub!==l.sub)){r(`if property oidc is true, the received user-id (sub) has to be the user-id of the user that has logged in with oidc. -if you are not using oidc but just oauth2 password flow set oidc to false`);return}s=Object.assign({},l,s),this._storage.setItem("id_token_claims_obj",JSON.stringify(s)),this.eventsSubject.next(new Br("user_profile_loaded")),i({info:s})}else this.debug("userinfo is not JSON, treating it as JWE/JWS"),this.eventsSubject.next(new Br("user_profile_loaded")),i(JSON.parse(a.body))},a=>{this.logger.error("error loading user info",a),this.eventsSubject.next(new Wi("user_profile_load_error",a)),r(a)})})}fetchTokenUsingPasswordFlow(i,r,o=new yr){let a={username:i,password:r};return this.fetchTokenUsingGrant("password",a,o)}fetchTokenUsingGrant(i,r,o=new yr){this.assertUrlNotNullAndCorrectProtocol(this.tokenEndpoint,"tokenEndpoint");let a=new Zn({encoder:new Qd}).set("grant_type",i).set("scope",this.scope);if(this.useHttpBasicAuth){let s=btoa(`${this.clientId}:${this.dummyClientSecret}`);o=o.set("Authorization","Basic "+s)}if(this.useHttpBasicAuth||(a=a.set("client_id",this.clientId)),!this.useHttpBasicAuth&&this.dummyClientSecret&&(a=a.set("client_secret",this.dummyClientSecret)),this.customQueryParams)for(let s of Object.getOwnPropertyNames(this.customQueryParams))a=a.set(s,this.customQueryParams[s]);for(let s of Object.keys(r))a=a.set(s,r[s]);return o=o.set("Content-Type","application/x-www-form-urlencoded"),new Promise((s,l)=>{this.http.post(this.tokenEndpoint,a,{headers:o}).subscribe(c=>{this.debug("tokenResponse",c),this.storeAccessTokenResponse(c.access_token,c.refresh_token,c.expires_in||this.fallbackAccessTokenExpirationTimeInSec,c.scope,this.extractRecognizedCustomParameters(c)),this.oidc&&c.id_token&&this.processIdToken(c.id_token,c.access_token).then(d=>{this.storeIdToken(d),s(c)}),this.eventsSubject.next(new Br("token_received")),s(c)},c=>{this.logger.error("Error performing ${grantType} flow",c),this.eventsSubject.next(new Wi("token_error",c)),l(c)})})}refreshToken(){return this.assertUrlNotNullAndCorrectProtocol(this.tokenEndpoint,"tokenEndpoint"),new Promise((i,r)=>{let o=new Zn({encoder:new Qd}).set("grant_type","refresh_token").set("scope",this.scope).set("refresh_token",this._storage.getItem("refresh_token")),a=new yr().set("Content-Type","application/x-www-form-urlencoded");if(this.useHttpBasicAuth){let s=btoa(`${this.clientId}:${this.dummyClientSecret}`);a=a.set("Authorization","Basic "+s)}if(this.useHttpBasicAuth||(o=o.set("client_id",this.clientId)),!this.useHttpBasicAuth&&this.dummyClientSecret&&(o=o.set("client_secret",this.dummyClientSecret)),this.customQueryParams)for(let s of Object.getOwnPropertyNames(this.customQueryParams))o=o.set(s,this.customQueryParams[s]);this.http.post(this.tokenEndpoint,o,{headers:a}).pipe(je(s=>this.oidc&&s.id_token?Ft(this.processIdToken(s.id_token,s.access_token,!0)).pipe(He(l=>this.storeIdToken(l)),se(()=>s)):Q(s))).subscribe(s=>{this.debug("refresh tokenResponse",s),this.storeAccessTokenResponse(s.access_token,s.refresh_token,s.expires_in||this.fallbackAccessTokenExpirationTimeInSec,s.scope,this.extractRecognizedCustomParameters(s)),this.eventsSubject.next(new Br("token_received")),this.eventsSubject.next(new Br("token_refreshed")),i(s)},s=>{this.logger.error("Error refreshing token",s),this.eventsSubject.next(new Wi("token_refresh_error",s)),r(s)})})}removeSilentRefreshEventListener(){this.silentRefreshPostMessageEventListener&&(window.removeEventListener("message",this.silentRefreshPostMessageEventListener),this.silentRefreshPostMessageEventListener=null)}setupSilentRefreshEventListener(){this.removeSilentRefreshEventListener(),this.silentRefreshPostMessageEventListener=i=>{let r=this.processMessageEventMessage(i);this.checkOrigin&&i.origin!==location.origin&&console.error("wrong origin requested silent refresh!"),this.tryLogin({customHashFragment:r,preventClearHashAfterLogin:!0,customRedirectUri:this.silentRefreshRedirectUri||this.redirectUri}).catch(o=>this.debug("tryLogin during silent refresh failed",o))},window.addEventListener("message",this.silentRefreshPostMessageEventListener)}silentRefresh(i={},r=!0){let o=this.getIdentityClaims()||{};if(this.useIdTokenHintForSilentRefresh&&this.hasValidIdToken()&&(i.id_token_hint=this.getIdToken()),!this.validateUrlForHttps(this.loginUrl))throw new Error("loginUrl must use HTTPS (with TLS), or config value for property 'requireHttps' must be set to 'false' and allow HTTP (without TLS).");if(typeof this.document>"u")throw new Error("silent refresh is not supported on this platform");let a=this.document.getElementById(this.silentRefreshIFrameName);a&&this.document.body.removeChild(a),this.silentRefreshSubject=o.sub;let s=this.document.createElement("iframe");s.id=this.silentRefreshIFrameName,this.setupSilentRefreshEventListener();let l=this.silentRefreshRedirectUri||this.redirectUri;this.createLoginUrl(null,null,l,r,i).then(_=>{s.setAttribute("src",_),this.silentRefreshShowIFrame||(s.style.display="none"),this.document.body.appendChild(s)});let c=this.events.pipe(ce(_=>_ instanceof Wi),bn()),d=this.events.pipe(ce(_=>_.type==="token_received"),bn()),p=Q(new Wi("silent_refresh_timeout",null)).pipe(ga(this.silentRefreshTimeout));return Ku([c,d,p]).pipe(se(_=>{if(_ instanceof Wi)throw _.type==="silent_refresh_timeout"?this.eventsSubject.next(_):(_=new Wi("silent_refresh_error",_),this.eventsSubject.next(_)),_;return _.type==="token_received"&&(_=new Br("silently_refreshed"),this.eventsSubject.next(_)),_})).toPromise()}initImplicitFlowInPopup(i){return this.initLoginFlowInPopup(i)}initLoginFlowInPopup(i){return i=i||{},this.createLoginUrl(null,null,this.silentRefreshRedirectUri,!1,{display:"popup"}).then(r=>new Promise((o,a)=>{let l=null;i.windowRef?i.windowRef&&!i.windowRef.closed&&(l=i.windowRef,l.location.href=r):l=window.open(r,"ngx-oauth2-oidc-login",this.calculatePopupFeatures(i));let c,d=w=>{this.tryLogin({customHashFragment:w,preventClearHashAfterLogin:!0,customRedirectUri:this.silentRefreshRedirectUri}).then(()=>{_(),o(!0)},C=>{_(),a(C)})},p=()=>{(!l||l.closed)&&(_(),a(new Wi("popup_closed",{})))};l?c=window.setInterval(p,500):a(new Wi("popup_blocked",{}));let _=()=>{window.clearInterval(c),window.removeEventListener("storage",y),window.removeEventListener("message",b),l!==null&&l.close(),l=null},b=w=>{let C=this.processMessageEventMessage(w);C&&C!==null?(window.removeEventListener("storage",y),d(C)):console.log("false event firing")},y=w=>{w.key==="auth_hash"&&(window.removeEventListener("message",b),d(w.newValue))};window.addEventListener("message",b),window.addEventListener("storage",y)}))}calculatePopupFeatures(i){let r=i.height||470,o=i.width||500,a=window.screenLeft+(window.outerWidth-o)/2,s=window.screenTop+(window.outerHeight-r)/2;return`location=no,toolbar=no,width=${o},height=${r},top=${s},left=${a}`}processMessageEventMessage(i){let r="#";if(this.silentRefreshMessagePrefix&&(r+=this.silentRefreshMessagePrefix),!i||!i.data||typeof i.data!="string")return;let o=i.data;if(o.startsWith(r))return"#"+o.substr(r.length)}canPerformSessionCheck(){return this.sessionChecksEnabled?this.sessionCheckIFrameUrl?this.getSessionState()?!(typeof this.document>"u"):(console.warn("sessionChecksEnabled is activated but there is no session_state"),!1):(console.warn("sessionChecksEnabled is activated but there is no sessionCheckIFrameUrl"),!1):!1}setupSessionCheckEventListener(){this.removeSessionCheckEventListener(),this.sessionCheckEventListener=i=>{let r=i.origin.toLowerCase(),o=this.issuer.toLowerCase();if(this.debug("sessionCheckEventListener"),!o.startsWith(r)){this.debug("sessionCheckEventListener","wrong origin",r,"expected",o,"event",i);return}switch(i.data){case"unchanged":this.ngZone.run(()=>{this.handleSessionUnchanged()});break;case"changed":this.ngZone.run(()=>{this.handleSessionChange()});break;case"error":this.ngZone.run(()=>{this.handleSessionError()});break}this.debug("got info from session check inframe",i)},this.ngZone.runOutsideAngular(()=>{window.addEventListener("message",this.sessionCheckEventListener)})}handleSessionUnchanged(){this.debug("session check","session unchanged"),this.eventsSubject.next(new Aa("session_unchanged"))}handleSessionChange(){this.eventsSubject.next(new Aa("session_changed")),this.stopSessionCheckTimer(),!this.useSilentRefresh&&this.responseType==="code"?this.refreshToken().then(()=>{this.debug("token refresh after session change worked")}).catch(()=>{this.debug("token refresh did not work after session changed"),this.eventsSubject.next(new Aa("session_terminated")),this.logOut(!0)}):this.silentRefreshRedirectUri?(this.silentRefresh().catch(()=>this.debug("silent refresh failed after session changed")),this.waitForSilentRefreshAfterSessionChange()):(this.eventsSubject.next(new Aa("session_terminated")),this.logOut(!0))}waitForSilentRefreshAfterSessionChange(){this.events.pipe(ce(i=>i.type==="silently_refreshed"||i.type==="silent_refresh_timeout"||i.type==="silent_refresh_error"),bn()).subscribe(i=>{i.type!=="silently_refreshed"&&(this.debug("silent refresh did not work after session changed"),this.eventsSubject.next(new Aa("session_terminated")),this.logOut(!0))})}handleSessionError(){this.stopSessionCheckTimer(),this.eventsSubject.next(new Aa("session_error"))}removeSessionCheckEventListener(){this.sessionCheckEventListener&&(window.removeEventListener("message",this.sessionCheckEventListener),this.sessionCheckEventListener=null)}initSessionCheck(){if(!this.canPerformSessionCheck())return;let i=this.document.getElementById(this.sessionCheckIFrameName);i&&this.document.body.removeChild(i);let r=this.document.createElement("iframe");r.id=this.sessionCheckIFrameName,this.setupSessionCheckEventListener();let o=this.sessionCheckIFrameUrl;r.setAttribute("src",o),r.style.display="none",this.document.body.appendChild(r),this.startSessionCheckTimer()}startSessionCheckTimer(){this.stopSessionCheckTimer(),this.ngZone.runOutsideAngular(()=>{this.sessionCheckTimer=setInterval(this.checkSession.bind(this),this.sessionCheckIntervall)})}stopSessionCheckTimer(){this.sessionCheckTimer&&(clearInterval(this.sessionCheckTimer),this.sessionCheckTimer=null)}checkSession(){let i=this.document.getElementById(this.sessionCheckIFrameName);i||this.logger.warn("checkSession did not find iframe",this.sessionCheckIFrameName);let r=this.getSessionState();r||this.stopSessionCheckTimer();let o=this.clientId+" "+r;i.contentWindow.postMessage(o,this.issuer)}createLoginUrl(){return gn(this,arguments,function*(i="",r="",o="",a=!1,s={}){let l=this,c;o?c=o:c=this.redirectUri;let d=yield this.createAndSaveNonce();if(i?i=d+this.config.nonceStateSeparator+encodeURIComponent(i):i=d,!this.requestAccessToken&&!this.oidc)throw new Error("Either requestAccessToken or oidc or both must be true");this.config.responseType?this.responseType=this.config.responseType:this.oidc&&this.requestAccessToken?this.responseType="id_token token":this.oidc&&!this.requestAccessToken?this.responseType="id_token":this.responseType="token";let p=l.loginUrl.indexOf("?")>-1?"&":"?",_=l.scope;this.oidc&&!_.match(/(^|\s)openid($|\s)/)&&(_="openid "+_);let b=l.loginUrl+p+"response_type="+encodeURIComponent(l.responseType)+"&client_id="+encodeURIComponent(l.clientId)+"&state="+encodeURIComponent(i)+"&redirect_uri="+encodeURIComponent(c)+"&scope="+encodeURIComponent(_);if(this.responseType.includes("code")&&!this.disablePKCE){let[y,w]=yield this.createChallangeVerifierPairForPKCE();this.saveNoncesInLocalStorage&&typeof window.localStorage<"u"?localStorage.setItem("PKCE_verifier",w):this._storage.setItem("PKCE_verifier",w),b+="&code_challenge="+y,b+="&code_challenge_method=S256"}r&&(b+="&login_hint="+encodeURIComponent(r)),l.resource&&(b+="&resource="+encodeURIComponent(l.resource)),l.oidc&&(b+="&nonce="+encodeURIComponent(d)),a&&(b+="&prompt=none");for(let y of Object.keys(s))b+="&"+encodeURIComponent(y)+"="+encodeURIComponent(s[y]);if(this.customQueryParams)for(let y of Object.getOwnPropertyNames(this.customQueryParams))b+="&"+y+"="+encodeURIComponent(this.customQueryParams[y]);return b})}initImplicitFlowInternal(i="",r=""){if(this.inImplicitFlow)return;if(this.inImplicitFlow=!0,!this.validateUrlForHttps(this.loginUrl))throw new Error("loginUrl must use HTTPS (with TLS), or config value for property 'requireHttps' must be set to 'false' and allow HTTP (without TLS).");let o={},a=null;typeof r=="string"?a=r:typeof r=="object"&&(o=r),this.createLoginUrl(i,a,null,!1,o).then(this.config.openUri).catch(s=>{console.error("Error in initImplicitFlow",s),this.inImplicitFlow=!1})}initImplicitFlow(i="",r=""){this.loginUrl!==""?this.initImplicitFlowInternal(i,r):this.events.pipe(ce(o=>o.type==="discovery_document_loaded")).subscribe(()=>this.initImplicitFlowInternal(i,r))}resetImplicitFlow(){this.inImplicitFlow=!1}callOnTokenReceivedIfExists(i){let r=this;if(i.onTokenReceived){let o={idClaims:r.getIdentityClaims(),idToken:r.getIdToken(),accessToken:r.getAccessToken(),state:r.state};i.onTokenReceived(o)}}storeAccessTokenResponse(i,r,o,a,s){if(this._storage.setItem("access_token",i),a&&!Array.isArray(a)?this._storage.setItem("granted_scopes",JSON.stringify(a.split(" "))):a&&Array.isArray(a)&&this._storage.setItem("granted_scopes",JSON.stringify(a)),this._storage.setItem("access_token_stored_at",""+this.dateTimeService.now()),o){let l=o*1e3,d=this.dateTimeService.new().getTime()+l;this._storage.setItem("expires_at",""+d)}r&&this._storage.setItem("refresh_token",r),s&&s.forEach((l,c)=>{this._storage.setItem(c,l)})}tryLogin(i=null){return this.config.responseType==="code"?this.tryLoginCodeFlow(i).then(()=>!0):this.tryLoginImplicitFlow(i)}parseQueryString(i){return!i||i.length===0?{}:(i.charAt(0)==="?"&&(i=i.substr(1)),this.urlHelper.parseQueryString(i))}tryLoginCodeFlow(i=null){return gn(this,null,function*(){i=i||{};let r=i.customHashFragment?i.customHashFragment.substring(1):window.location.search,o=this.getCodePartsFromUrl(r),a=o.code,s=o.state,l=o.session_state;if(!i.preventClearHashAfterLogin){let p=location.origin+location.pathname+location.search.replace(/code=[^&$]*/,"").replace(/scope=[^&$]*/,"").replace(/state=[^&$]*/,"").replace(/session_state=[^&$]*/,"").replace(/^\?&/,"?").replace(/&$/,"").replace(/^\?$/,"").replace(/&+/g,"&").replace(/\?&/,"?").replace(/\?$/,"")+location.hash;history.replaceState(null,window.name,p)}let[c,d]=this.parseState(s);if(this.state=d,o.error){this.debug("error trying to login"),this.handleLoginError(i,o);let p=new Wi("code_error",{},o);return this.eventsSubject.next(p),Promise.reject(p)}if(!i.disableNonceCheck){if(!c)return this.saveRequestedRoute(),Promise.resolve();if(!i.disableOAuth2StateCheck&&!this.validateNonce(c)){let _=new Wi("invalid_nonce_in_state",null);return this.eventsSubject.next(_),Promise.reject(_)}}return this.storeSessionState(l),a&&(yield this.getTokenFromCode(a,i),this.restoreRequestedRoute()),Promise.resolve()})}saveRequestedRoute(){this.config.preserveRequestedRoute&&this._storage.setItem("requested_route",window.location.pathname+window.location.search)}restoreRequestedRoute(){let i=this._storage.getItem("requested_route");i&&history.replaceState(null,"",window.location.origin+i)}getCodePartsFromUrl(i){return!i||i.length===0?this.urlHelper.getHashFragmentParams():(i.charAt(0)==="?"&&(i=i.substr(1)),this.urlHelper.parseQueryString(i))}getTokenFromCode(i,r){let o=new Zn({encoder:new Qd}).set("grant_type","authorization_code").set("code",i).set("redirect_uri",r.customRedirectUri||this.redirectUri);if(!this.disablePKCE){let a;this.saveNoncesInLocalStorage&&typeof window.localStorage<"u"?a=localStorage.getItem("PKCE_verifier"):a=this._storage.getItem("PKCE_verifier"),a?o=o.set("code_verifier",a):console.warn("No PKCE verifier found in oauth storage!")}return this.fetchAndProcessToken(o,r)}fetchAndProcessToken(i,r){r=r||{},this.assertUrlNotNullAndCorrectProtocol(this.tokenEndpoint,"tokenEndpoint");let o=new yr().set("Content-Type","application/x-www-form-urlencoded");if(this.useHttpBasicAuth){let a=btoa(`${this.clientId}:${this.dummyClientSecret}`);o=o.set("Authorization","Basic "+a)}return this.useHttpBasicAuth||(i=i.set("client_id",this.clientId)),!this.useHttpBasicAuth&&this.dummyClientSecret&&(i=i.set("client_secret",this.dummyClientSecret)),new Promise((a,s)=>{if(this.customQueryParams)for(let l of Object.getOwnPropertyNames(this.customQueryParams))i=i.set(l,this.customQueryParams[l]);this.http.post(this.tokenEndpoint,i,{headers:o}).subscribe(l=>{this.debug("refresh tokenResponse",l),this.storeAccessTokenResponse(l.access_token,l.refresh_token,l.expires_in||this.fallbackAccessTokenExpirationTimeInSec,l.scope,this.extractRecognizedCustomParameters(l)),this.oidc&&l.id_token?this.processIdToken(l.id_token,l.access_token,r.disableNonceCheck).then(c=>{this.storeIdToken(c),this.eventsSubject.next(new Br("token_received")),this.eventsSubject.next(new Br("token_refreshed")),a(l)}).catch(c=>{this.eventsSubject.next(new Wi("token_validation_error",c)),console.error("Error validating tokens"),console.error(c),s(c)}):(this.eventsSubject.next(new Br("token_received")),this.eventsSubject.next(new Br("token_refreshed")),a(l))},l=>{console.error("Error getting token",l),this.eventsSubject.next(new Wi("token_error",l)),s(l)})})}tryLoginImplicitFlow(i=null){i=i||{};let r;i.customHashFragment?r=this.urlHelper.getHashFragmentParams(i.customHashFragment):r=this.urlHelper.getHashFragmentParams(),this.debug("parsed url",r);let o=r.state,[a,s]=this.parseState(o);if(this.state=s,r.error){this.debug("error trying to login"),this.handleLoginError(i,r);let _=new Wi("token_error",{},r);return this.eventsSubject.next(_),Promise.reject(_)}let l=r.access_token,c=r.id_token,d=r.session_state,p=r.scope;if(!this.requestAccessToken&&!this.oidc)return Promise.reject("Either requestAccessToken or oidc (or both) must be true.");if(this.requestAccessToken&&!l||this.requestAccessToken&&!i.disableOAuth2StateCheck&&!o||this.oidc&&!c)return Promise.resolve(!1);if(this.sessionChecksEnabled&&!d&&this.logger.warn("session checks (Session Status Change Notification) were activated in the configuration but the id_token does not contain a session_state claim"),this.requestAccessToken&&!i.disableNonceCheck&&!this.validateNonce(a)){let b=new Wi("invalid_nonce_in_state",null);return this.eventsSubject.next(b),Promise.reject(b)}return this.requestAccessToken&&this.storeAccessTokenResponse(l,null,r.expires_in||this.fallbackAccessTokenExpirationTimeInSec,p),this.oidc?this.processIdToken(c,l,i.disableNonceCheck).then(_=>i.validationHandler?i.validationHandler({accessToken:l,idClaims:_.idTokenClaims,idToken:_.idToken,state:o}).then(()=>_):_).then(_=>(this.storeIdToken(_),this.storeSessionState(d),this.clearHashAfterLogin&&!i.preventClearHashAfterLogin&&this.clearLocationHash(),this.eventsSubject.next(new Br("token_received")),this.callOnTokenReceivedIfExists(i),this.inImplicitFlow=!1,!0)).catch(_=>(this.eventsSubject.next(new Wi("token_validation_error",_)),this.logger.error("Error validating tokens"),this.logger.error(_),Promise.reject(_))):(this.eventsSubject.next(new Br("token_received")),this.clearHashAfterLogin&&!i.preventClearHashAfterLogin&&this.clearLocationHash(),this.callOnTokenReceivedIfExists(i),Promise.resolve(!0))}parseState(i){let r=i,o="";if(i){let a=i.indexOf(this.config.nonceStateSeparator);a>-1&&(r=i.substr(0,a),o=i.substr(a+this.config.nonceStateSeparator.length))}return[r,o]}validateNonce(i){let r;return this.saveNoncesInLocalStorage&&typeof window.localStorage<"u"?r=localStorage.getItem("nonce"):r=this._storage.getItem("nonce"),r!==i?(console.error("Validating access_token failed, wrong state/nonce.",r,i),!1):!0}storeIdToken(i){this._storage.setItem("id_token",i.idToken),this._storage.setItem("id_token_claims_obj",i.idTokenClaimsJson),this._storage.setItem("id_token_expires_at",""+i.idTokenExpiresAt),this._storage.setItem("id_token_stored_at",""+this.dateTimeService.now())}storeSessionState(i){this._storage.setItem("session_state",i)}getSessionState(){return this._storage.getItem("session_state")}handleLoginError(i,r){i.onLoginError&&i.onLoginError(r),this.clearHashAfterLogin&&!i.preventClearHashAfterLogin&&this.clearLocationHash()}getClockSkewInMsec(i=6e5){return!this.clockSkewInSec&&this.clockSkewInSec!==0?i:this.clockSkewInSec*1e3}processIdToken(i,r,o=!1){let a=i.split("."),s=this.padBase64(a[0]),l=gL(s),c=JSON.parse(l),d=this.padBase64(a[1]),p=gL(d),_=JSON.parse(p),b;if(this.saveNoncesInLocalStorage&&typeof window.localStorage<"u"?b=localStorage.getItem("nonce"):b=this._storage.getItem("nonce"),Array.isArray(_.aud)){if(_.aud.every(W=>W!==this.clientId)){let W="Wrong audience: "+_.aud.join(",");return this.logger.warn(W),Promise.reject(W)}}else if(_.aud!==this.clientId){let W="Wrong audience: "+_.aud;return this.logger.warn(W),Promise.reject(W)}if(!_.sub){let W="No sub claim in id_token";return this.logger.warn(W),Promise.reject(W)}if(this.sessionChecksEnabled&&this.silentRefreshSubject&&this.silentRefreshSubject!==_.sub){let W=`After refreshing, we got an id_token for another user (sub). Expected sub: ${this.silentRefreshSubject}, received sub: ${_.sub}`;return this.logger.warn(W),Promise.reject(W)}if(!_.iat){let W="No iat claim in id_token";return this.logger.warn(W),Promise.reject(W)}if(!this.skipIssuerCheck&&_.iss!==this.issuer){let W="Wrong issuer: "+_.iss;return this.logger.warn(W),Promise.reject(W)}if(!o&&_.nonce!==b){let W="Wrong nonce: "+_.nonce;return this.logger.warn(W),Promise.reject(W)}if(Object.prototype.hasOwnProperty.call(this,"responseType")&&(this.responseType==="code"||this.responseType==="id_token")&&(this.disableAtHashCheck=!0),!this.disableAtHashCheck&&this.requestAccessToken&&!_.at_hash){let W="An at_hash is needed!";return this.logger.warn(W),Promise.reject(W)}let y=this.dateTimeService.now(),w=_.iat*1e3,C=_.exp*1e3,D=this.getClockSkewInMsec();if(w-D>=y||C+D-this.decreaseExpirationBySec<=y){let W="Token has expired";return console.error(W),console.error({now:y,issuedAtMSec:w,expiresAtMSec:C}),Promise.reject(W)}let F={accessToken:r,idToken:i,jwks:this.jwks,idTokenClaims:_,idTokenHeader:c,loadKeys:()=>this.loadJwks()};return this.disableAtHashCheck?this.checkSignature(F).then(()=>({idToken:i,idTokenClaims:_,idTokenClaimsJson:p,idTokenHeader:c,idTokenHeaderJson:l,idTokenExpiresAt:C})):this.checkAtHash(F).then(W=>{if(!this.disableAtHashCheck&&this.requestAccessToken&&!W){let Z="Wrong at_hash";return this.logger.warn(Z),Promise.reject(Z)}return this.checkSignature(F).then(()=>{let Z=!this.disableAtHashCheck,K={idToken:i,idTokenClaims:_,idTokenClaimsJson:p,idTokenHeader:c,idTokenHeaderJson:l,idTokenExpiresAt:C};return Z?this.checkAtHash(F).then(oe=>{if(this.requestAccessToken&&!oe){let ke="Wrong at_hash";return this.logger.warn(ke),Promise.reject(ke)}else return K}):K})})}getIdentityClaims(){let i=this._storage.getItem("id_token_claims_obj");return i?JSON.parse(i):null}getGrantedScopes(){let i=this._storage.getItem("granted_scopes");return i?JSON.parse(i):null}getIdToken(){return this._storage?this._storage.getItem("id_token"):null}padBase64(i){for(;i.length%4!==0;)i+="=";return i}getAccessToken(){return this._storage?this._storage.getItem("access_token"):null}getRefreshToken(){return this._storage?this._storage.getItem("refresh_token"):null}getAccessTokenExpiration(){return this._storage.getItem("expires_at")?parseInt(this._storage.getItem("expires_at"),10):null}getAccessTokenStoredAt(){return parseInt(this._storage.getItem("access_token_stored_at"),10)}getIdTokenStoredAt(){return parseInt(this._storage.getItem("id_token_stored_at"),10)}getIdTokenExpiration(){return this._storage.getItem("id_token_expires_at")?parseInt(this._storage.getItem("id_token_expires_at"),10):null}hasValidAccessToken(){if(this.getAccessToken()){let i=this._storage.getItem("expires_at"),r=this.dateTimeService.new();return!(i&&parseInt(i,10)-this.decreaseExpirationBySec=0&&this._storage.getItem(i)!==null?JSON.parse(this._storage.getItem(i)):null}authorizationHeader(){return"Bearer "+this.getAccessToken()}logOut(i={},r=""){let o=!1;typeof i=="boolean"&&(o=i,i={});let a=this.getIdToken();if(this._storage.removeItem("access_token"),this._storage.removeItem("id_token"),this._storage.removeItem("refresh_token"),this.saveNoncesInLocalStorage?(localStorage.removeItem("nonce"),localStorage.removeItem("PKCE_verifier")):(this._storage.removeItem("nonce"),this._storage.removeItem("PKCE_verifier")),this._storage.removeItem("expires_at"),this._storage.removeItem("id_token_claims_obj"),this._storage.removeItem("id_token_expires_at"),this._storage.removeItem("id_token_stored_at"),this._storage.removeItem("access_token_stored_at"),this._storage.removeItem("granted_scopes"),this._storage.removeItem("session_state"),this.config.customTokenParameters&&this.config.customTokenParameters.forEach(l=>this._storage.removeItem(l)),this.silentRefreshSubject=null,this.eventsSubject.next(new Aa("logout")),!this.logoutUrl||o)return;let s;if(!this.validateUrlForHttps(this.logoutUrl))throw new Error("logoutUrl must use HTTPS (with TLS), or config value for property 'requireHttps' must be set to 'false' and allow HTTP (without TLS).");if(this.logoutUrl.indexOf("{{")>-1)s=this.logoutUrl.replace(/\{\{id_token\}\}/,encodeURIComponent(a)).replace(/\{\{client_id\}\}/,encodeURIComponent(this.clientId));else{let l=new Zn({encoder:new Qd});a&&(l=l.set("id_token_hint",a));let c=this.postLogoutRedirectUri||this.redirectUriAsPostLogoutRedirectUriFallback&&this.redirectUri||"";c&&(l=l.set("post_logout_redirect_uri",c),r&&(l=l.set("state",r)));for(let d in i)l=l.set(d,i[d]);s=this.logoutUrl+(this.logoutUrl.indexOf("?")>-1?"&":"?")+l.toString()}this.config.openUri(s)}createAndSaveNonce(){let i=this;return this.createNonce().then(function(r){return i.saveNoncesInLocalStorage&&typeof window.localStorage<"u"?localStorage.setItem("nonce",r):i._storage.setItem("nonce",r),r})}ngOnDestroy(){this.clearAccessTokenTimer(),this.clearIdTokenTimer(),this.removeSilentRefreshEventListener();let i=this.document.getElementById(this.silentRefreshIFrameName);i&&i.remove(),this.stopSessionCheckTimer(),this.removeSessionCheckEventListener();let r=this.document.getElementById(this.sessionCheckIFrameName);r&&r.remove()}createNonce(){return new Promise(i=>{if(this.rngUrl)throw new Error("createNonce with rng-web-api has not been implemented so far");let r="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-._~",o=45,a="",s=typeof self>"u"?null:self.crypto||self.msCrypto;if(s){let l=new Uint8Array(o);s.getRandomValues(l),l.map||(l.map=Array.prototype.map),l=l.map(c=>r.charCodeAt(c%r.length)),a=String.fromCharCode.apply(null,l)}else for(;0o.type==="discovery_document_loaded")).subscribe(()=>this.initCodeFlowInternal(i,r))}initCodeFlowInternal(i="",r={}){if(!this.validateUrlForHttps(this.loginUrl))throw new Error("loginUrl must use HTTPS (with TLS), or config value for property 'requireHttps' must be set to 'false' and allow HTTP (without TLS).");let o={},a=null;typeof r=="string"?a=r:typeof r=="object"&&(o=r),this.createLoginUrl(i,a,null,!1,o).then(this.config.openUri).catch(s=>{console.error("Error in initAuthorizationCodeFlow"),console.error(s)})}createChallangeVerifierPairForPKCE(){return gn(this,null,function*(){if(!this.crypto)throw new Error("PKCE support for code flow needs a CryptoHander. Did you import the OAuthModule using forRoot() ?");let i=yield this.createNonce(),r=yield this.crypto.calcHash(i,"sha-256");return[_L(r),i]})}extractRecognizedCustomParameters(i){let r=new Map;return this.config.customTokenParameters&&this.config.customTokenParameters.forEach(o=>{i[o]&&r.set(o,JSON.stringify(i[o]))}),r}revokeTokenAndLogout(i={},r=!1){let o=this.revocationEndpoint,a=this.getAccessToken(),s=this.getRefreshToken();if(!a)return Promise.resolve();let l=new Zn({encoder:new Qd}),c=new yr().set("Content-Type","application/x-www-form-urlencoded");if(this.useHttpBasicAuth){let d=btoa(`${this.clientId}:${this.dummyClientSecret}`);c=c.set("Authorization","Basic "+d)}if(this.useHttpBasicAuth||(l=l.set("client_id",this.clientId)),!this.useHttpBasicAuth&&this.dummyClientSecret&&(l=l.set("client_secret",this.dummyClientSecret)),this.customQueryParams)for(let d of Object.getOwnPropertyNames(this.customQueryParams))l=l.set(d,this.customQueryParams[d]);return new Promise((d,p)=>{let _,b;if(a){let y=l.set("token",a).set("token_type_hint","access_token");_=this.http.post(o,y,{headers:c})}else _=Q(null);if(s){let y=l.set("token",s).set("token_type_hint","refresh_token");b=this.http.post(o,y,{headers:c})}else b=Q(null);r&&(_=_.pipe(ii(y=>y.status===0?Q(null):qn(y))),b=b.pipe(ii(y=>y.status===0?Q(null):qn(y)))),go([_,b]).subscribe(y=>{this.logOut(i),d(y),this.logger.info("Token successfully revoked")},y=>{this.logger.error("Error revoking token",y),this.eventsSubject.next(new Wi("token_revoke_error",y)),p(y)})})}clearLocationHash(){location.hash!=""&&(location.hash="")}};n.\u0275fac=function(r){return new(r||n)(fe(ae),fe(xr),fe(Pv,8),fe(Fv,8),fe(Qm,8),fe(bL),fe(Rv),fe(Nv,8),fe(_e),fe(Wf))},n.\u0275prov=R({token:n,factory:n.\u0275fac});let t=n;return t})(),Lv=class{},_S=class{handleError(n){return qn(n)}},KK=(()=>{let n=class n{constructor(i,r,o){this.oAuthService=i,this.errorHandler=r,this.moduleConfig=o}checkUrl(i){return this.moduleConfig.resourceServer.customUrlValidation?this.moduleConfig.resourceServer.customUrlValidation(i):this.moduleConfig.resourceServer.allowedUrls?!!this.moduleConfig.resourceServer.allowedUrls.find(r=>i.toLowerCase().startsWith(r.toLowerCase())):!0}intercept(i,r){let o=i.url.toLowerCase();return!this.moduleConfig||!this.moduleConfig.resourceServer||!this.checkUrl(o)?r.handle(i):this.moduleConfig.resourceServer.sendAccessToken?Je(Q(this.oAuthService.getAccessToken()).pipe(ce(s=>!!s)),this.oAuthService.events.pipe(ce(s=>s.type==="token_received"),Zw(this.oAuthService.waitForTokenInMsec||0),ii(()=>Q(null)),se(()=>this.oAuthService.getAccessToken()))).pipe(ct(1),It(s=>{if(s){let l="Bearer "+s,c=i.headers.set("Authorization",l);i=i.clone({headers:c})}return r.handle(i).pipe(ii(l=>this.errorHandler.handleError(l)))})):r.handle(i).pipe(ii(s=>this.errorHandler.handleError(s)))}};n.\u0275fac=function(r){return new(r||n)(fe(Km),fe(Lv),fe(Ov,8))},n.\u0275prov=R({token:n,factory:n.\u0275fac});let t=n;return t})();function ZK(){return console}function XK(){return typeof sessionStorage<"u"?sessionStorage:new UK}function yL(t=null,n=fS){return qr([Km,bL,{provide:Rv,useFactory:ZK},{provide:Pv,useFactory:XK},{provide:Fv,useClass:n},{provide:Nv,useClass:QK},{provide:Lv,useClass:_S},{provide:Ov,useValue:t},{provide:IM,useClass:KK,multi:!0},{provide:Wf,useClass:zK}])}var JK=["mat-internal-form-field",""],eZ=["*"],Zm=(()=>{class t{labelPosition;static \u0275fac=function(i){return new(i||t)};static \u0275cmp=E({type:t,selectors:[["div","mat-internal-form-field",""]],hostAttrs:[1,"mdc-form-field","mat-internal-form-field"],hostVars:2,hostBindings:function(i,r){i&2&&G("mdc-form-field--align-end",r.labelPosition==="before")},inputs:{labelPosition:"labelPosition"},attrs:JK,ngContentSelectors:eZ,decls:1,vars:0,template:function(i,r){i&1&&(Se(),ne(0))},styles:[`.mat-internal-form-field{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;display:inline-flex;align-items:center;vertical-align:middle}.mat-internal-form-field>label{margin-left:0;margin-right:auto;padding-left:4px;padding-right:0;order:0}[dir=rtl] .mat-internal-form-field>label{margin-left:auto;margin-right:0;padding-left:0;padding-right:4px}.mdc-form-field--align-end>label{margin-left:auto;margin-right:0;padding-left:0;padding-right:4px;order:-1}[dir=rtl] .mdc-form-field--align-end .mdc-form-field--align-end label{margin-left:0;margin-right:auto;padding-left:4px;padding-right:0} -`],encapsulation:2,changeDetection:0})}return t})();var bS;try{bS=typeof Intl<"u"&&Intl.v8BreakIterator}catch{bS=!1}var qe=(()=>{class t{_platformId=u(Zs);isBrowser=this._platformId?q2(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||bS)&&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(i){return new(i||t)};static \u0275prov=R({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();function sl(t){return Array.isArray(t)?t:[t]}var xL=new Set,Kd,Xm=(()=>{class t{_platform=u(qe);_nonce=u(xm,{optional:!0});_matchMedia;constructor(){this._matchMedia=this._platform.isBrowser&&window.matchMedia?window.matchMedia.bind(window):iZ}matchMedia(e){return(this._platform.WEBKIT||this._platform.BLINK)&&tZ(e,this._nonce),this._matchMedia(e)}static \u0275fac=function(i){return new(i||t)};static \u0275prov=R({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();function tZ(t,n){if(!xL.has(t))try{Kd||(Kd=document.createElement("style"),n&&Kd.setAttribute("nonce",n),Kd.setAttribute("type","text/css"),document.head.appendChild(Kd)),Kd.sheet&&(Kd.sheet.insertRule(`@media ${t} {body{ }}`,0),xL.add(t))}catch(e){console.error(e)}}function iZ(t){return{matches:t==="all"||t==="",media:t,addListener:()=>{},removeListener:()=>{}}}var ll=(()=>{class t{_mediaMatcher=u(Xm);_zone=u(ae);_queries=new Map;_destroySubject=new z;constructor(){}ngOnDestroy(){this._destroySubject.next(),this._destroySubject.complete()}isMatched(e){return CL(sl(e)).some(r=>this._registerQuery(r).mql.matches)}observe(e){let r=CL(sl(e)).map(a=>this._registerQuery(a).observable),o=go(r);return o=bo(o.pipe(ct(1)),o.pipe(Qa(1),St(0))),o.pipe(se(a=>{let s={matches:!1,breakpoints:{}};return a.forEach(({matches:l,query:c})=>{s.matches=s.matches||l,s.breakpoints[c]=l}),s}))}_registerQuery(e){if(this._queries.has(e))return this._queries.get(e);let i=this._mediaMatcher.matchMedia(e),o={observable:new Fe(a=>{let s=l=>this._zone.run(()=>a.next(l));return i.addListener(s),()=>{i.removeListener(s)}}).pipe(Ue(i),se(({matches:a})=>({query:e,matches:a})),we(this._destroySubject)),mql:i};return this._queries.set(e,o),o}static \u0275fac=function(i){return new(i||t)};static \u0275prov=R({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();function CL(t){return t.map(n=>n.split(",")).reduce((n,e)=>n.concat(e)).map(n=>n.trim())}var Vv={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 nZ=new O("MATERIAL_ANIMATIONS");var wL=null;function vS(){return u(nZ,{optional:!0})?.animationsDisabled||u(ef,{optional:!0})==="NoopAnimations"?"di-disabled":(wL??=u(Xm).matchMedia("(prefers-reduced-motion)").matches,wL?"reduced-motion":"enabled")}function Ye(){return vS()!=="enabled"}function Zd(t){return t.buttons===0||t.detail===0}function Xd(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 yS;function DL(){if(yS==null){let t=typeof document<"u"?document.head:null;yS=!!(t&&(t.createShadowRoot||t.attachShadow))}return yS}function xS(t){if(DL()){let n=t.getRootNode?t.getRootNode():null;if(typeof ShadowRoot<"u"&&ShadowRoot&&n instanceof ShadowRoot)return n}return null}function wo(){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 Xn(t){return t.composedPath?t.composedPath()[0]:t.target}var qf;function EL(){if(qf==null&&typeof window<"u")try{window.addEventListener("test",null,Object.defineProperty({},"passive",{get:()=>qf=!0}))}finally{qf=qf||!1}return qf}function ac(t){return EL()?t:!!t.capture}function Bn(t,n=0){return Bv(t)?Number(t):arguments.length===2?n:0}function Bv(t){return!isNaN(parseFloat(t))&&!isNaN(Number(t))}function jr(t){return t instanceof Y?t.nativeElement:t}var ML=new O("cdk-input-modality-detector-options"),SL={ignoreKeys:[18,17,224,91,16]},kL=650,CS={passive:!0,capture:!0},TL=(()=>{class t{_platform=u(qe);_listenerCleanups;modalityDetected;modalityChanged;get mostRecentModality(){return this._modality.value}_mostRecentTarget=null;_modality=new it(null);_options;_lastTouchMs=0;_onKeydown=e=>{this._options?.ignoreKeys?.some(i=>i===e.keyCode)||(this._modality.next("keyboard"),this._mostRecentTarget=Xn(e))};_onMousedown=e=>{Date.now()-this._lastTouchMs{if(Xd(e)){this._modality.next("keyboard");return}this._lastTouchMs=Date.now(),this._modality.next("touch"),this._mostRecentTarget=Xn(e)};constructor(){let e=u(ae),i=u(_e),r=u(ML,{optional:!0});if(this._options=k(k({},SL),r),this.modalityDetected=this._modality.pipe(Qa(1)),this.modalityChanged=this.modalityDetected.pipe(_n()),this._platform.isBrowser){let o=u(mn).createRenderer(null,null);this._listenerCleanups=e.runOutsideAngular(()=>[o.listen(i,"keydown",this._onKeydown,CS),o.listen(i,"mousedown",this._onMousedown,CS),o.listen(i,"touchstart",this._onTouchstart,CS)])}}ngOnDestroy(){this._modality.complete(),this._listenerCleanups?.forEach(e=>e())}static \u0275fac=function(i){return new(i||t)};static \u0275prov=R({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),Yf=(function(t){return t[t.IMMEDIATE=0]="IMMEDIATE",t[t.EVENTUAL=1]="EVENTUAL",t})(Yf||{}),IL=new O("cdk-focus-monitor-default-options"),jv=ac({passive:!0,capture:!0}),ti=(()=>{class t{_ngZone=u(ae);_platform=u(qe);_inputModalityDetector=u(TL);_origin=null;_lastFocusOrigin;_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=u(_e);_stopInputModalityDetector=new z;constructor(){let e=u(IL,{optional:!0});this._detectionMode=e?.detectionMode||Yf.IMMEDIATE}_rootNodeFocusAndBlurListener=e=>{let i=Xn(e);for(let r=i;r;r=r.parentElement)e.type==="focus"?this._onFocus(e,r):this._onBlur(e,r)};monitor(e,i=!1){let r=jr(e);if(!this._platform.isBrowser||r.nodeType!==1)return Q();let o=xS(r)||this._document,a=this._elementInfo.get(r);if(a)return i&&(a.checkChildren=!0),a.subject;let s={checkChildren:i,subject:new z,rootNode:o};return this._elementInfo.set(r,s),this._registerGlobalListeners(s),s.subject}stopMonitoring(e){let i=jr(e),r=this._elementInfo.get(i);r&&(r.subject.complete(),this._setClasses(i),this._elementInfo.delete(i),this._removeGlobalListeners(r))}focusVia(e,i,r){let o=jr(e),a=this._document.activeElement;o===a?this._getClosestElementsInfo(o).forEach(([s,l])=>this._originChanged(s,i,l)):(this._setOrigin(i),typeof o.focus=="function"&&o.focus(r))}ngOnDestroy(){this._elementInfo.forEach((e,i)=>this.stopMonitoring(i))}_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===Yf.EVENTUAL||!!e?.contains(this._inputModalityDetector._mostRecentTarget)}_setClasses(e,i){e.classList.toggle("cdk-focused",!!i),e.classList.toggle("cdk-touch-focused",i==="touch"),e.classList.toggle("cdk-keyboard-focused",i==="keyboard"),e.classList.toggle("cdk-mouse-focused",i==="mouse"),e.classList.toggle("cdk-program-focused",i==="program")}_setOrigin(e,i=!1){this._ngZone.runOutsideAngular(()=>{if(this._origin=e,this._originFromTouchInteraction=e==="touch"&&i,this._detectionMode===Yf.IMMEDIATE){clearTimeout(this._originTimeoutId);let r=this._originFromTouchInteraction?kL:1;this._originTimeoutId=setTimeout(()=>this._origin=null,r)}})}_onFocus(e,i){let r=this._elementInfo.get(i),o=Xn(e);!r||!r.checkChildren&&i!==o||this._originChanged(i,this._getFocusOrigin(o),r)}_onBlur(e,i){let r=this._elementInfo.get(i);!r||r.checkChildren&&e.relatedTarget instanceof Node&&i.contains(e.relatedTarget)||(this._setClasses(i),this._emitOrigin(r,null))}_emitOrigin(e,i){e.subject.observers.length&&this._ngZone.run(()=>e.subject.next(i))}_registerGlobalListeners(e){if(!this._platform.isBrowser)return;let i=e.rootNode,r=this._rootNodeFocusListenerCount.get(i)||0;r||this._ngZone.runOutsideAngular(()=>{i.addEventListener("focus",this._rootNodeFocusAndBlurListener,jv),i.addEventListener("blur",this._rootNodeFocusAndBlurListener,jv)}),this._rootNodeFocusListenerCount.set(i,r+1),++this._monitoredElementCount===1&&(this._ngZone.runOutsideAngular(()=>{this._getWindow().addEventListener("focus",this._windowFocusListener)}),this._inputModalityDetector.modalityDetected.pipe(we(this._stopInputModalityDetector)).subscribe(o=>{this._setOrigin(o,!0)}))}_removeGlobalListeners(e){let i=e.rootNode;if(this._rootNodeFocusListenerCount.has(i)){let r=this._rootNodeFocusListenerCount.get(i);r>1?this._rootNodeFocusListenerCount.set(i,r-1):(i.removeEventListener("focus",this._rootNodeFocusAndBlurListener,jv),i.removeEventListener("blur",this._rootNodeFocusAndBlurListener,jv),this._rootNodeFocusListenerCount.delete(i))}--this._monitoredElementCount||(this._getWindow().removeEventListener("focus",this._windowFocusListener),this._stopInputModalityDetector.next(),clearTimeout(this._windowFocusTimeoutId),clearTimeout(this._originTimeoutId))}_originChanged(e,i,r){this._setClasses(e,i),this._emitOrigin(r,i),this._lastFocusOrigin=i}_getClosestElementsInfo(e){let i=[];return this._elementInfo.forEach((r,o)=>{(o===e||r.checkChildren&&o.contains(e))&&i.push([o,r])}),i}_isLastInteractionFromInputLabel(e){let{_mostRecentTarget:i,mostRecentModality:r}=this._inputModalityDetector;if(r!=="mouse"||!i||i===e||e.nodeName!=="INPUT"&&e.nodeName!=="TEXTAREA"||e.disabled)return!1;let o=e.labels;if(o){for(let a=0;a{class t{_elementRef=u(Y);_focusMonitor=u(ti);_monitorSubscription;_focusOrigin=null;cdkFocusChange=new U;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(i=>{this._focusOrigin=i,this.cdkFocusChange.emit(i)})}ngOnDestroy(){this._focusMonitor.stopMonitoring(this._elementRef),this._monitorSubscription&&this._monitorSubscription.unsubscribe()}static \u0275fac=function(i){return new(i||t)};static \u0275dir=P({type:t,selectors:[["","cdkMonitorElementFocus",""],["","cdkMonitorSubtreeFocus",""]],outputs:{cdkFocusChange:"cdkFocusChange"},exportAs:["cdkMonitorFocus"]})}return t})();var Hv=new WeakMap,ht=(()=>{class t{_appRef;_injector=u(de);_environmentInjector=u(Kt);load(e){let i=this._appRef=this._appRef||this._injector.get(Yn),r=Hv.get(i);r||(r={loaders:new Set,refs:[]},Hv.set(i,r),i.onDestroy(()=>{Hv.get(i)?.refs.forEach(o=>o.destroy()),Hv.delete(i)})),r.loaders.has(e)||(r.loaders.add(e),r.refs.push(Am(e,{environmentInjector:this._environmentInjector})))}static \u0275fac=function(i){return new(i||t)};static \u0275prov=R({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();var Jr=(()=>{class t{static \u0275fac=function(i){return new(i||t)};static \u0275cmp=E({type:t,selectors:[["ng-component"]],exportAs:["cdkVisuallyHidden"],decls:0,vars:0,template:function(i,r){},styles:[`.cdk-visually-hidden{border:0;clip:rect(0 0 0 0);height:1px;margin:-1px;overflow:hidden;padding:0;position:absolute;width:1px;white-space:nowrap;outline:0;-webkit-appearance:none;-moz-appearance:none;left:0}[dir=rtl] .cdk-visually-hidden{left:auto;right:0} -`],encapsulation:2,changeDetection:0})}return t})();function rZ(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(i){return new(i||t)};static \u0275prov=R({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),OL=(()=>{class t{_mutationObserverFactory=u(AL);_observedElements=new Map;_ngZone=u(ae);constructor(){}ngOnDestroy(){this._observedElements.forEach((e,i)=>this._cleanupObserver(i))}observe(e){let i=jr(e);return new Fe(r=>{let a=this._observeElement(i).pipe(se(s=>s.filter(l=>!rZ(l))),ce(s=>!!s.length)).subscribe(s=>{this._ngZone.run(()=>{r.next(s)})});return()=>{a.unsubscribe(),this._unobserveElement(i)}})}_observeElement(e){return this._ngZone.runOutsideAngular(()=>{if(this._observedElements.has(e))this._observedElements.get(e).count++;else{let i=new z,r=this._mutationObserverFactory.create(o=>i.next(o));r&&r.observe(e,{characterData:!0,childList:!0,subtree:!0}),this._observedElements.set(e,{observer:r,stream:i,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:i,stream:r}=this._observedElements.get(e);i&&i.disconnect(),r.complete(),this._observedElements.delete(e)}}static \u0275fac=function(i){return new(i||t)};static \u0275prov=R({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),Kf=(()=>{class t{_contentObserver=u(OL);_elementRef=u(Y);event=new U;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=Bn(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(St(this.debounce)):e).subscribe(this.event)}_unsubscribe(){this._currentSubscription?.unsubscribe()}static \u0275fac=function(i){return new(i||t)};static \u0275dir=P({type:t,selectors:[["","cdkObserveContent",""]],inputs:{disabled:[2,"cdkObserveContentDisabled","disabled",L],debounce:"debounce"},outputs:{event:"cdkObserveContent"},exportAs:["cdkObserveContent"]})}return t})(),Jm=(()=>{class t{static \u0275fac=function(i){return new(i||t)};static \u0275mod=ee({type:t});static \u0275inj=J({providers:[AL]})}return t})();var lc=(()=>{class t{_platform=u(qe);constructor(){}isDisabled(e){return e.hasAttribute("disabled")}isVisible(e){return aZ(e)&&getComputedStyle(e).visibility==="visible"}isTabbable(e){if(!this._platform.isBrowser)return!1;let i=oZ(pZ(e));if(i&&(RL(i)===-1||!this.isVisible(i)))return!1;let r=e.nodeName.toLowerCase(),o=RL(e);return e.hasAttribute("contenteditable")?o!==-1:r==="iframe"||r==="object"||this._platform.WEBKIT&&this._platform.IOS&&!mZ(e)?!1:r==="audio"?e.hasAttribute("controls")?o!==-1:!1:r==="video"?o===-1?!1:o!==null?!0:this._platform.FIREFOX||e.hasAttribute("controls"):e.tabIndex>=0}isFocusable(e,i){return hZ(e)&&!this.isDisabled(e)&&(i?.ignoreVisibility||this.isVisible(e))}static \u0275fac=function(i){return new(i||t)};static \u0275prov=R({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();function oZ(t){try{return t.frameElement}catch{return null}}function aZ(t){return!!(t.offsetWidth||t.offsetHeight||typeof t.getClientRects=="function"&&t.getClientRects().length)}function sZ(t){let n=t.nodeName.toLowerCase();return n==="input"||n==="select"||n==="button"||n==="textarea"}function lZ(t){return dZ(t)&&t.type=="hidden"}function cZ(t){return uZ(t)&&t.hasAttribute("href")}function dZ(t){return t.nodeName.toLowerCase()=="input"}function uZ(t){return t.nodeName.toLowerCase()=="a"}function NL(t){if(!t.hasAttribute("tabindex")||t.tabIndex===void 0)return!1;let n=t.getAttribute("tabindex");return!!(n&&!isNaN(parseInt(n,10)))}function RL(t){if(!NL(t))return null;let n=parseInt(t.getAttribute("tabindex")||"",10);return isNaN(n)?-1:n}function mZ(t){let n=t.nodeName.toLowerCase(),e=n==="input"&&t.type;return e==="text"||e==="password"||n==="select"||n==="textarea"}function hZ(t){return lZ(t)?!1:sZ(t)||cZ(t)||t.hasAttribute("contenteditable")||NL(t)}function pZ(t){return t.ownerDocument&&t.ownerDocument.defaultView||window}var zv=class{_element;_checker;_ngZone;_document;_injector;_startAnchor;_endAnchor;_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,i,r,o=!1,a){this._element=n,this._checker=e,this._ngZone=i,this._document=r,this._injector=a,o||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 i=this._getFirstTabbableElement(e);return i?.focus(n),!!i}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 i=0;i=0;i--){let r=e[i].nodeType===this._document.ELEMENT_NODE?this._getLastTabbableElement(e[i]):null;if(r)return r}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?gt(n,{injector:this._injector}):setTimeout(n)}},eh=(()=>{class t{_checker=u(lc);_ngZone=u(ae);_document=u(_e);_injector=u(de);constructor(){u(ht).load(Jr)}create(e,i=!1){return new zv(e,this._checker,this._ngZone,this._document,i,this._injector)}static \u0275fac=function(i){return new(i||t)};static \u0275prov=R({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),DS=(()=>{class t{_elementRef=u(Y);_focusTrapFactory=u(eh);focusTrap;_previouslyFocusedElement=null;get enabled(){return this.focusTrap?.enabled||!1}set enabled(e){this.focusTrap&&(this.focusTrap.enabled=e)}autoCapture;constructor(){u(qe).isBrowser&&(this.focusTrap=this._focusTrapFactory.create(this._elementRef.nativeElement,!0))}ngOnDestroy(){this.focusTrap?.destroy(),this._previouslyFocusedElement&&(this._previouslyFocusedElement.focus(),this._previouslyFocusedElement=null)}ngAfterContentInit(){this.focusTrap?.attachAnchors(),this.autoCapture&&this._captureFocus()}ngDoCheck(){this.focusTrap&&!this.focusTrap.hasAttached()&&this.focusTrap.attachAnchors()}ngOnChanges(e){let i=e.autoCapture;i&&!i.firstChange&&this.autoCapture&&this.focusTrap?.hasAttached()&&this._captureFocus()}_captureFocus(){this._previouslyFocusedElement=wo(),this.focusTrap?.focusInitialElementWhenReady()}static \u0275fac=function(i){return new(i||t)};static \u0275dir=P({type:t,selectors:[["","cdkTrapFocus",""]],inputs:{enabled:[2,"cdkTrapFocus","enabled",L],autoCapture:[2,"cdkTrapFocusAutoCapture","autoCapture",L]},exportAs:["cdkTrapFocus"],features:[Ae]})}return t})(),LL=new O("liveAnnouncerElement",{providedIn:"root",factory:VL});function VL(){return null}var BL=new O("LIVE_ANNOUNCER_DEFAULT_OPTIONS"),fZ=0,Zf=(()=>{class t{_ngZone=u(ae);_defaultOptions=u(BL,{optional:!0});_liveElement;_document=u(_e);_previousTimeout;_currentPromise;_currentResolve;constructor(){let e=u(LL,{optional:!0});this._liveElement=e||this._createLiveElement()}announce(e,...i){let r=this._defaultOptions,o,a;return i.length===1&&typeof i[0]=="number"?a=i[0]:[o,a]=i,this.clear(),clearTimeout(this._previousTimeout),o||(o=r&&r.politeness?r.politeness:"polite"),a==null&&r&&(a=r.duration),this._liveElement.setAttribute("aria-live",o),this._liveElement.id&&this._exposeAnnouncerToModals(this._liveElement.id),this._ngZone.runOutsideAngular(()=>(this._currentPromise||(this._currentPromise=new Promise(s=>this._currentResolve=s)),clearTimeout(this._previousTimeout),this._previousTimeout=setTimeout(()=>{this._liveElement.textContent=e,typeof a=="number"&&(this._previousTimeout=setTimeout(()=>this.clear(),a)),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",i=this._document.getElementsByClassName(e),r=this._document.createElement("div");for(let o=0;o .cdk-overlay-container [aria-modal="true"]');for(let r=0;r{class t{_platform=u(qe);_hasCheckedHighContrastMode;_document=u(_e);_breakpointSubscription;constructor(){this._breakpointSubscription=u(ll).observe("(forced-colors: active)").subscribe(()=>{this._hasCheckedHighContrastMode&&(this._hasCheckedHighContrastMode=!1,this._applyBodyHighContrastModeCssClasses())})}getHighContrastMode(){if(!this._platform.isBrowser)return sc.NONE;let e=this._document.createElement("div");e.style.backgroundColor="rgb(1,2,3)",e.style.position="absolute",this._document.body.appendChild(e);let i=this._document.defaultView||window,r=i&&i.getComputedStyle?i.getComputedStyle(e):null,o=(r&&r.backgroundColor||"").replace(/ /g,"");switch(e.remove(),o){case"rgb(0,0,0)":case"rgb(45,50,54)":case"rgb(32,32,32)":return sc.WHITE_ON_BLACK;case"rgb(255,255,255)":case"rgb(255,250,239)":return sc.BLACK_ON_WHITE}return sc.NONE}ngOnDestroy(){this._breakpointSubscription.unsubscribe()}_applyBodyHighContrastModeCssClasses(){if(!this._hasCheckedHighContrastMode&&this._platform.isBrowser&&this._document.body){let e=this._document.body.classList;e.remove(wS,PL,FL),this._hasCheckedHighContrastMode=!0;let i=this.getHighContrastMode();i===sc.BLACK_ON_WHITE?e.add(wS,PL):i===sc.WHITE_ON_BLACK&&e.add(wS,FL)}}static \u0275fac=function(i){return new(i||t)};static \u0275prov=R({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),cl=(()=>{class t{constructor(){u(Uv)._applyBodyHighContrastModeCssClasses()}static \u0275fac=function(i){return new(i||t)};static \u0275mod=ee({type:t});static \u0275inj=J({imports:[Jm]})}return t})();var ES={},Ze=(()=>{class t{_appId=u(Ql);getId(e){return this._appId!=="ng"&&(e+=this._appId),ES.hasOwnProperty(e)||(ES[e]=0),`${e}${ES[e]++}`}static \u0275fac=function(i){return new(i||t)};static \u0275prov=R({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();var gZ=200,$v=class{_letterKeyStream=new z;_items=[];_selectedItemIndex=-1;_pressedLetters=[];_skipPredicateFn;_selectedItem=new z;selectedItem=this._selectedItem;constructor(n,e){let i=typeof e?.debounceInterval=="number"?e.debounceInterval:gZ;e?.skipPredicate&&(this._skipPredicateFn=e.skipPredicate),this.setItems(n),this._setupKeyHandler(i)}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(He(e=>this._pressedLetters.push(e)),St(n),ce(()=>this._pressedLetters.length>0),se(()=>this._pressedLetters.join("").toLocaleUpperCase())).subscribe(e=>{for(let i=1;it[e]):t.altKey||t.shiftKey||t.ctrlKey||t.metaKey}var th=class{_items;_activeItemIndex=he(-1);_activeItem=he(null);_wrap=!1;_typeaheadSubscription=Te.EMPTY;_itemChangesSubscription;_vertical=!0;_horizontal;_allowedModifierKeys=[];_homeAndEnd=!1;_pageUpAndDown={enabled:!1,delta:10};_effectRef;_typeahead;_skipPredicateFn=n=>n.disabled;constructor(n,e){this._items=n,n instanceof gr?this._itemChangesSubscription=n.changes.subscribe(i=>this._itemsChanged(i.toArray())):ns(n)&&(this._effectRef=Lr(()=>this._itemsChanged(n()),{injector:e}))}tabOut=new z;change=new z;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 $v(e,{debounceInterval:typeof n=="number"?n:void 0,skipPredicate:i=>this._skipPredicateFn(i)}),this._typeaheadSubscription=this._typeahead.selectedItem.subscribe(i=>{this.setActiveItem(i)}),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,r=["altKey","ctrlKey","metaKey","shiftKey"].every(o=>!n[o]||this._allowedModifierKeys.indexOf(o)>-1);switch(e){case 9:this.tabOut.next();return;case 40:if(this._vertical&&r){this.setNextItemActive();break}else return;case 38:if(this._vertical&&r){this.setPreviousItemActive();break}else return;case 39:if(this._horizontal&&r){this._horizontal==="rtl"?this.setPreviousItemActive():this.setNextItemActive();break}else return;case 37:if(this._horizontal&&r){this._horizontal==="rtl"?this.setNextItemActive():this.setPreviousItemActive();break}else return;case 36:if(this._homeAndEnd&&r){this.setFirstItemActive();break}else return;case 35:if(this._homeAndEnd&&r){this.setLastItemActive();break}else return;case 33:if(this._pageUpAndDown.enabled&&r){let o=this._activeItemIndex()-this._pageUpAndDown.delta;this._setActiveItemByIndex(o>0?o:0,1);break}else return;case 34:if(this._pageUpAndDown.enabled&&r){let o=this._activeItemIndex()+this._pageUpAndDown.delta,a=this._getItemsArray().length;this._setActiveItemByIndex(o-1&&i!==this._activeItemIndex()&&(this._activeItemIndex.set(i),this._typeahead?.setCurrentSelectedItemIndex(i))}}};var Jd=class extends th{setActiveItem(n){this.activeItem&&this.activeItem.setInactiveStyles(),super.setActiveItem(n),this.activeItem&&this.activeItem.setActiveStyles()}};var vs=class extends th{_origin="program";setFocusOrigin(n){return this._origin=n,this}setActiveItem(n){super.setActiveItem(n),this.activeItem&&this.activeItem.focus(this._origin)}};var UL=" ";function ih(t,n,e){let i=Yv(t,n);e=e.trim(),!i.some(r=>r.trim()===e)&&(i.push(e),t.setAttribute(n,i.join(UL)))}function cc(t,n,e){let i=Yv(t,n);e=e.trim();let r=i.filter(o=>o!==e);r.length?t.setAttribute(n,r.join(UL)):t.removeAttribute(n)}function Yv(t,n){return t.getAttribute(n)?.match(/\S+/g)??[]}var $L="cdk-describedby-message",qv="cdk-describedby-host",SS=0,nh=(()=>{class t{_platform=u(qe);_document=u(_e);_messageRegistry=new Map;_messagesContainer=null;_id=`${SS++}`;constructor(){u(ht).load(Jr),this._id=u(Ql)+"-"+SS++}describe(e,i,r){if(!this._canBeDescribed(e,i))return;let o=MS(i,r);typeof i!="string"?(zL(i,this._id),this._messageRegistry.set(o,{messageElement:i,referenceCount:0})):this._messageRegistry.has(o)||this._createMessageElement(i,r),this._isElementDescribedByMessage(e,o)||this._addMessageReference(e,o)}removeDescription(e,i,r){if(!i||!this._isElementNode(e))return;let o=MS(i,r);if(this._isElementDescribedByMessage(e,o)&&this._removeMessageReference(e,o),typeof i=="string"){let a=this._messageRegistry.get(o);a&&a.referenceCount===0&&this._deleteMessageElement(o)}this._messagesContainer?.childNodes.length===0&&(this._messagesContainer.remove(),this._messagesContainer=null)}ngOnDestroy(){let e=this._document.querySelectorAll(`[${qv}="${this._id}"]`);for(let i=0;ir.indexOf($L)!=0);e.setAttribute("aria-describedby",i.join(" "))}_addMessageReference(e,i){let r=this._messageRegistry.get(i);ih(e,"aria-describedby",r.messageElement.id),e.setAttribute(qv,this._id),r.referenceCount++}_removeMessageReference(e,i){let r=this._messageRegistry.get(i);r.referenceCount--,cc(e,"aria-describedby",r.messageElement.id),e.removeAttribute(qv)}_isElementDescribedByMessage(e,i){let r=Yv(e,"aria-describedby"),o=this._messageRegistry.get(i),a=o&&o.messageElement.id;return!!a&&r.indexOf(a)!=-1}_canBeDescribed(e,i){if(!this._isElementNode(e))return!1;if(i&&typeof i=="object")return!0;let r=i==null?"":`${i}`.trim(),o=e.getAttribute("aria-label");return r?!o||o.trim()!==r:!1}_isElementNode(e){return e.nodeType===this._document.ELEMENT_NODE}static \u0275fac=function(i){return new(i||t)};static \u0275prov=R({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();function MS(t,n){return typeof t=="string"?`${n||""}/${t}`:t}function zL(t,n){t.id||(t.id=`${$L}-${n}-${SS++}`)}var _Z=new O("cdk-dir-doc",{providedIn:"root",factory:bZ});function bZ(){return u(_e)}var vZ=/^(ar|ckb|dv|he|iw|fa|nqo|ps|sd|ug|ur|yi|.*[-_](Adlm|Arab|Hebr|Nkoo|Rohg|Thaa))(?!.*[-_](Latn|Cyrl)($|-|_))($|-|_)/i;function kS(t){let n=t?.toLowerCase()||"";return n==="auto"&&typeof navigator<"u"&&navigator?.language?vZ.test(navigator.language)?"rtl":"ltr":n==="rtl"?"rtl":"ltr"}var Bt=(()=>{class t{get value(){return this.valueSignal()}valueSignal=he("ltr");change=new U;constructor(){let e=u(_Z,{optional:!0});if(e){let i=e.body?e.body.dir:null,r=e.documentElement?e.documentElement.dir:null;this.valueSignal.set(kS(i||r||"ltr"))}}ngOnDestroy(){this.change.complete()}static \u0275fac=function(i){return new(i||t)};static \u0275prov=R({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();var GL=(()=>{class t{_isInitialized=!1;_rawDir;change=new U;get dir(){return this.valueSignal()}set dir(e){let i=this.valueSignal();this.valueSignal.set(kS(e)),this._rawDir=e,i!==this.valueSignal()&&this._isInitialized&&this.change.emit(this.valueSignal())}get value(){return this.dir}valueSignal=he("ltr");ngAfterContentInit(){this._isInitialized=!0}ngOnDestroy(){this.change.complete()}static \u0275fac=function(i){return new(i||t)};static \u0275dir=P({type:t,selectors:[["","dir",""]],hostVars:1,hostBindings:function(i,r){i&2&&X("dir",r._rawDir)},inputs:{dir:"dir"},outputs:{change:"dirChange"},exportAs:["dir"],features:[Ce([{provide:Bt,useExisting:t}])]})}return t})(),ys=(()=>{class t{static \u0275fac=function(i){return new(i||t)};static \u0275mod=ee({type:t});static \u0275inj=J({})}return t})();var De=(()=>{class t{constructor(){u(Uv)._applyBodyHighContrastModeCssClasses()}static \u0275fac=function(i){return new(i||t)};static \u0275mod=ee({type:t});static \u0275inj=J({imports:[ys,ys]})}return t})();var dl=class{_defaultMatcher;ngControl;_parentFormGroup;_parentForm;_stateChanges;errorState=!1;matcher;constructor(n,e,i,r,o){this._defaultMatcher=n,this.ngControl=e,this._parentFormGroup=i,this._parentForm=r,this._stateChanges=o}updateErrorState(){let n=this.errorState,e=this._parentFormGroup||this._parentForm,i=this.matcher||this._defaultMatcher,r=this.ngControl?this.ngControl.control:null,o=i?.isErrorState(r,e)??!1;o!==n&&(this.errorState=o,this._stateChanges.next())}};var xs=new O("MAT_DATE_LOCALE",{providedIn:"root",factory:xZ});function xZ(){return u(tl)}var rh="Method not implemented",Bi=class{locale;_localeChanges=new z;localeChanges=this._localeChanges;setTime(n,e,i,r){throw new Error(rh)}getHours(n){throw new Error(rh)}getMinutes(n){throw new Error(rh)}getSeconds(n){throw new Error(rh)}parseTime(n,e){throw new Error(rh)}addSeconds(n,e){throw new Error(rh)}getValidDateOrNull(n){return this.isDateInstance(n)&&this.isValid(n)?n:null}deserialize(n){return n==null||this.isDateInstance(n)&&this.isValid(n)?n:this.invalid()}setLocale(n){this.locale=n,this._localeChanges.next()}compareDate(n,e){return this.getYear(n)-this.getYear(e)||this.getMonth(n)-this.getMonth(e)||this.getDate(n)-this.getDate(e)}compareTime(n,e){return this.getHours(n)-this.getHours(e)||this.getMinutes(n)-this.getMinutes(e)||this.getSeconds(n)-this.getSeconds(e)}sameDate(n,e){if(n&&e){let i=this.isValid(n),r=this.isValid(e);return i&&r?!this.compareDate(n,e):i==r}return n==e}sameTime(n,e){if(n&&e){let i=this.isValid(n),r=this.isValid(e);return i&&r?!this.compareTime(n,e):i==r}return n==e}clampDate(n,e,i){return e&&this.compareDate(n,e)<0?e:i&&this.compareDate(n,i)>0?i:n}},Cs=new O("mat-date-formats");var ul=(()=>{class t{isErrorState(e,i){return!!(e&&e.invalid&&(e.touched||i&&i.submitted))}static \u0275fac=function(i){return new(i||t)};static \u0275prov=R({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();var ki=(()=>{class t{static \u0275fac=function(i){return new(i||t)};static \u0275cmp=E({type:t,selectors:[["structural-styles"]],decls:0,vars:0,template:function(i,r){},styles:[`.mat-focus-indicator{position:relative}.mat-focus-indicator::before{top:0;left:0;right:0;bottom:0;position:absolute;box-sizing:border-box;pointer-events:none;display:var(--mat-focus-indicator-display, none);border-width:var(--mat-focus-indicator-border-width, 3px);border-style:var(--mat-focus-indicator-border-style, solid);border-color:var(--mat-focus-indicator-border-color, transparent);border-radius:var(--mat-focus-indicator-border-radius, 4px)}.mat-focus-indicator:focus::before{content:""}@media(forced-colors: active){html{--mat-focus-indicator-display: block}} -`],encapsulation:2,changeDetection:0})}return t})();var Oa=(function(t){return t[t.NORMAL=0]="NORMAL",t[t.NEGATED=1]="NEGATED",t[t.INVERTED=2]="INVERTED",t})(Oa||{}),Qv,eu;function Kv(){if(eu==null){if(typeof document!="object"||!document||typeof Element!="function"||!Element)return eu=!1,eu;if(document.documentElement?.style&&"scrollBehavior"in document.documentElement.style)eu=!0;else{let t=Element.prototype.scrollTo;t?eu=!/\{\s*\[native code\]\s*\}/.test(t.toString()):eu=!1}}return eu}function oh(){if(typeof document!="object"||!document)return Oa.NORMAL;if(Qv==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"),i=e.style;i.width="2px",i.height="1px",t.appendChild(e),document.body.appendChild(t),Qv=Oa.NORMAL,t.scrollLeft===0&&(t.scrollLeft=1,Qv=t.scrollLeft===0?Oa.NEGATED:Oa.INVERTED),t.remove()}return Qv}function TS(){return typeof __karma__<"u"&&!!__karma__||typeof jasmine<"u"&&!!jasmine||typeof jest<"u"&&!!jest||typeof Mocha<"u"&&!!Mocha}var ah,qL=["color","button","checkbox","date","datetime-local","email","file","hidden","image","month","number","password","radio","range","reset","search","submit","tel","text","time","url","week"];function IS(){if(ah)return ah;if(typeof document!="object"||!document)return ah=new Set(qL),ah;let t=document.createElement("input");return ah=new Set(qL.filter(n=>(t.setAttribute("type",n),t.type===n))),ah}function cn(t){return t==null?"":typeof t=="string"?t:`${t}px`}function Ri(t){return t!=null&&`${t}`!="false"}function YL(t,n=/\s+/){let e=[];if(t!=null){let i=Array.isArray(t)?t:`${t}`.split(n);for(let r of i){let o=`${r}`.trim();o&&e.push(o)}}return e}var Eo=(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})(Eo||{}),Zv=class{_renderer;element;config;_animationForciblyDisabledThroughCss;state=Eo.HIDDEN;constructor(n,e,i,r=!1){this._renderer=n,this.element=e,this.config=i,this._animationForciblyDisabledThroughCss=r}fadeOut(){this._renderer.fadeOutRipple(this)}},QL=ac({passive:!0,capture:!0}),AS=class{_events=new Map;addHandler(n,e,i,r){let o=this._events.get(e);if(o){let a=o.get(i);a?a.add(r):o.set(i,new Set([r]))}else this._events.set(e,new Map([[i,new Set([r])]])),n.runOutsideAngular(()=>{document.addEventListener(e,this._delegateEventHandler,QL)})}removeHandler(n,e,i){let r=this._events.get(n);if(!r)return;let o=r.get(e);o&&(o.delete(i),o.size===0&&r.delete(e),r.size===0&&(this._events.delete(n),document.removeEventListener(n,this._delegateEventHandler,QL)))}_delegateEventHandler=n=>{let e=Xn(n);e&&this._events.get(n.type)?.forEach((i,r)=>{(r===e||r.contains(e))&&i.forEach(o=>o.handleEvent(n))})}},sh={enterDuration:225,exitDuration:150},CZ=800,KL=ac({passive:!0,capture:!0}),ZL=["mousedown","touchstart"],XL=["mouseup","mouseleave","touchend","touchcancel"],wZ=(()=>{class t{static \u0275fac=function(i){return new(i||t)};static \u0275cmp=E({type:t,selectors:[["ng-component"]],hostAttrs:["mat-ripple-style-loader",""],decls:0,vars:0,template:function(i,r){},styles:[`.mat-ripple{overflow:hidden;position:relative}.mat-ripple:not(:empty){transform:translateZ(0)}.mat-ripple.mat-ripple-unbounded{overflow:visible}.mat-ripple-element{position:absolute;border-radius:50%;pointer-events:none;transition:opacity,transform 0ms cubic-bezier(0, 0, 0.2, 1);transform:scale3d(0, 0, 0);background-color:var(--mat-ripple-color, color-mix(in srgb, var(--mat-sys-on-surface) 10%, transparent))}@media(forced-colors: active){.mat-ripple-element{display:none}}.cdk-drag-preview .mat-ripple-element,.cdk-drag-placeholder .mat-ripple-element{display:none} -`],encapsulation:2,changeDetection:0})}return t})(),dc=class t{_target;_ngZone;_platform;_containerElement;_triggerElement;_isPointerDown=!1;_activeRipples=new Map;_mostRecentTransientRipple;_lastTouchStartEvent;_pointerUpEventsRegistered=!1;_containerRect;static _eventManager=new AS;constructor(n,e,i,r,o){this._target=n,this._ngZone=e,this._platform=r,r.isBrowser&&(this._containerElement=jr(i)),o&&o.get(ht).load(wZ)}fadeInRipple(n,e,i={}){let r=this._containerRect=this._containerRect||this._containerElement.getBoundingClientRect(),o=k(k({},sh),i.animation);i.centered&&(n=r.left+r.width/2,e=r.top+r.height/2);let a=i.radius||DZ(n,e,r),s=n-r.left,l=e-r.top,c=o.enterDuration,d=document.createElement("div");d.classList.add("mat-ripple-element"),d.style.left=`${s-a}px`,d.style.top=`${l-a}px`,d.style.height=`${a*2}px`,d.style.width=`${a*2}px`,i.color!=null&&(d.style.backgroundColor=i.color),d.style.transitionDuration=`${c}ms`,this._containerElement.appendChild(d);let p=window.getComputedStyle(d),_=p.transitionProperty,b=p.transitionDuration,y=_==="none"||b==="0s"||b==="0s, 0s"||r.width===0&&r.height===0,w=new Zv(this,d,i,y);d.style.transform="scale3d(1, 1, 1)",w.state=Eo.FADING_IN,i.persistent||(this._mostRecentTransientRipple=w);let C=null;return!y&&(c||o.exitDuration)&&this._ngZone.runOutsideAngular(()=>{let D=()=>{C&&(C.fallbackTimer=null),clearTimeout(W),this._finishRippleTransition(w)},F=()=>this._destroyRipple(w),W=setTimeout(F,c+100);d.addEventListener("transitionend",D),d.addEventListener("transitioncancel",F),C={onTransitionEnd:D,onTransitionCancel:F,fallbackTimer:W}}),this._activeRipples.set(w,C),(y||!c)&&this._finishRippleTransition(w),w}fadeOutRipple(n){if(n.state===Eo.FADING_OUT||n.state===Eo.HIDDEN)return;let e=n.element,i=k(k({},sh),n.config.animation);e.style.transitionDuration=`${i.exitDuration}ms`,e.style.opacity="0",n.state=Eo.FADING_OUT,(n._animationForciblyDisabledThroughCss||!i.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=jr(n);!this._platform.isBrowser||!e||e===this._triggerElement||(this._removeTriggerEvents(),this._triggerElement=e,ZL.forEach(i=>{t._eventManager.addHandler(this._ngZone,i,e,this)}))}handleEvent(n){n.type==="mousedown"?this._onMousedown(n):n.type==="touchstart"?this._onTouchStart(n):this._onPointerUp(),this._pointerUpEventsRegistered||(this._ngZone.runOutsideAngular(()=>{XL.forEach(e=>{this._triggerElement.addEventListener(e,this,KL)})}),this._pointerUpEventsRegistered=!0)}_finishRippleTransition(n){n.state===Eo.FADING_IN?this._startFadeOutTransition(n):n.state===Eo.FADING_OUT&&this._destroyRipple(n)}_startFadeOutTransition(n){let e=n===this._mostRecentTransientRipple,{persistent:i}=n.config;n.state=Eo.VISIBLE,!i&&(!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=Eo.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=Zd(n),i=this._lastTouchStartEvent&&Date.now(){let e=n.state===Eo.VISIBLE||n.config.terminateOnPointerUp&&n.state===Eo.FADING_IN;!n.config.persistent&&e&&n.fadeOut()}))}_getActiveRipples(){return Array.from(this._activeRipples.keys())}_removeTriggerEvents(){let n=this._triggerElement;n&&(ZL.forEach(e=>t._eventManager.removeHandler(e,n,this)),this._pointerUpEventsRegistered&&(XL.forEach(e=>n.removeEventListener(e,this,KL)),this._pointerUpEventsRegistered=!1))}};function DZ(t,n,e){let i=Math.max(Math.abs(t-e.left),Math.abs(t-e.right)),r=Math.max(Math.abs(n-e.top),Math.abs(n-e.bottom));return Math.sqrt(i*i+r*r)}var ws=new O("mat-ripple-global-options"),jn=(()=>{class t{_elementRef=u(Y);_animationsDisabled=Ye();color;unbounded;centered;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=u(ae),i=u(qe),r=u(ws,{optional:!0}),o=u(de);this._globalOptions=r||{},this._rippleRenderer=new dc(this,e,this._elementRef,i,o)}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:k(k(k({},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,i=0,r){return typeof e=="number"?this._rippleRenderer.fadeInRipple(e,i,k(k({},this.rippleConfig),r)):this._rippleRenderer.fadeInRipple(0,0,k(k({},this.rippleConfig),e))}static \u0275fac=function(i){return new(i||t)};static \u0275dir=P({type:t,selectors:[["","mat-ripple",""],["","matRipple",""]],hostAttrs:[1,"mat-ripple"],hostVars:2,hostBindings:function(i,r){i&2&&G("mat-ripple-unbounded",r.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 Mo=(()=>{class t{static \u0275fac=function(i){return new(i||t)};static \u0275mod=ee({type:t});static \u0275inj=J({imports:[De,De]})}return t})();var tu=(()=>{class t{_animationsDisabled=Ye();state="unchecked";disabled=!1;appearance="full";constructor(){}static \u0275fac=function(i){return new(i||t)};static \u0275cmp=E({type:t,selectors:[["mat-pseudo-checkbox"]],hostAttrs:[1,"mat-pseudo-checkbox"],hostVars:12,hostBindings:function(i,r){i&2&&G("mat-pseudo-checkbox-indeterminate",r.state==="indeterminate")("mat-pseudo-checkbox-checked",r.state==="checked")("mat-pseudo-checkbox-disabled",r.disabled)("mat-pseudo-checkbox-minimal",r.appearance==="minimal")("mat-pseudo-checkbox-full",r.appearance==="full")("_mat-animation-noopable",r._animationsDisabled)},inputs:{state:"state",disabled:"disabled",appearance:"appearance"},decls:0,vars:0,template:function(i,r){},styles:[`.mat-pseudo-checkbox{border-radius:2px;cursor:pointer;display:inline-block;vertical-align:middle;box-sizing:border-box;position:relative;flex-shrink:0;transition:border-color 90ms cubic-bezier(0, 0, 0.2, 0.1),background-color 90ms cubic-bezier(0, 0, 0.2, 0.1)}.mat-pseudo-checkbox::after{position:absolute;opacity:0;content:"";border-bottom:2px solid currentColor;transition:opacity 90ms cubic-bezier(0, 0, 0.2, 0.1)}.mat-pseudo-checkbox._mat-animation-noopable{transition:none !important;animation:none !important}.mat-pseudo-checkbox._mat-animation-noopable::after{transition:none}.mat-pseudo-checkbox-disabled{cursor:default}.mat-pseudo-checkbox-indeterminate::after{left:1px;opacity:1;border-radius:2px}.mat-pseudo-checkbox-checked::after{left:1px;border-left:2px solid currentColor;transform:rotate(-45deg);opacity:1;box-sizing:content-box}.mat-pseudo-checkbox-minimal.mat-pseudo-checkbox-checked::after,.mat-pseudo-checkbox-minimal.mat-pseudo-checkbox-indeterminate::after{color:var(--mat-pseudo-checkbox-minimal-selected-checkmark-color, var(--mat-sys-primary))}.mat-pseudo-checkbox-minimal.mat-pseudo-checkbox-checked.mat-pseudo-checkbox-disabled::after,.mat-pseudo-checkbox-minimal.mat-pseudo-checkbox-indeterminate.mat-pseudo-checkbox-disabled::after{color:var(--mat-pseudo-checkbox-minimal-disabled-selected-checkmark-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent))}.mat-pseudo-checkbox-full{border-color:var(--mat-pseudo-checkbox-full-unselected-icon-color, var(--mat-sys-on-surface-variant));border-width:2px;border-style:solid}.mat-pseudo-checkbox-full.mat-pseudo-checkbox-disabled{border-color:var(--mat-pseudo-checkbox-full-disabled-unselected-icon-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent))}.mat-pseudo-checkbox-full.mat-pseudo-checkbox-checked,.mat-pseudo-checkbox-full.mat-pseudo-checkbox-indeterminate{background-color:var(--mat-pseudo-checkbox-full-selected-icon-color, var(--mat-sys-primary));border-color:rgba(0,0,0,0)}.mat-pseudo-checkbox-full.mat-pseudo-checkbox-checked::after,.mat-pseudo-checkbox-full.mat-pseudo-checkbox-indeterminate::after{color:var(--mat-pseudo-checkbox-full-selected-checkmark-color, var(--mat-sys-on-primary))}.mat-pseudo-checkbox-full.mat-pseudo-checkbox-checked.mat-pseudo-checkbox-disabled,.mat-pseudo-checkbox-full.mat-pseudo-checkbox-indeterminate.mat-pseudo-checkbox-disabled{background-color:var(--mat-pseudo-checkbox-full-disabled-selected-icon-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent))}.mat-pseudo-checkbox-full.mat-pseudo-checkbox-checked.mat-pseudo-checkbox-disabled::after,.mat-pseudo-checkbox-full.mat-pseudo-checkbox-indeterminate.mat-pseudo-checkbox-disabled::after{color:var(--mat-pseudo-checkbox-full-disabled-selected-checkmark-color, var(--mat-sys-surface))}.mat-pseudo-checkbox{width:18px;height:18px}.mat-pseudo-checkbox-minimal.mat-pseudo-checkbox-checked::after{width:14px;height:6px;transform-origin:center;top:-4.2426406871px;left:0;bottom:0;right:0;margin:auto}.mat-pseudo-checkbox-minimal.mat-pseudo-checkbox-indeterminate::after{top:8px;width:16px}.mat-pseudo-checkbox-full.mat-pseudo-checkbox-checked::after{width:10px;height:4px;transform-origin:center;top:-2.8284271247px;left:0;bottom:0;right:0;margin:auto}.mat-pseudo-checkbox-full.mat-pseudo-checkbox-indeterminate::after{top:6px;width:12px} -`],encapsulation:2,changeDetection:0})}return t})();var Xv=(()=>{class t{static \u0275fac=function(i){return new(i||t)};static \u0275mod=ee({type:t});static \u0275inj=J({imports:[De]})}return t})();var EZ=["*",[["mat-option"],["ng-container"]]],MZ=["*","mat-option, ng-container"],SZ=["text"],kZ=[[["mat-icon"]],"*"],TZ=["mat-icon","*"];function IZ(t,n){if(t&1&&M(0,"mat-pseudo-checkbox",1),t&2){let e=x();v("disabled",e.disabled)("state",e.selected?"checked":"unchecked")}}function AZ(t,n){if(t&1&&M(0,"mat-pseudo-checkbox",3),t&2){let e=x();v("disabled",e.disabled)}}function OZ(t,n){if(t&1&&(m(0,"span",4),g(1),h()),t&2){let e=x();f(),pe("(",e.group.label,")")}}var iu=new O("MAT_OPTION_PARENT_COMPONENT"),nu=new O("MatOptgroup"),OS=(()=>{class t{label;disabled=!1;_labelId=u(Ze).getId("mat-optgroup-label-");_inert;constructor(){let e=u(iu,{optional:!0});this._inert=e?.inertGroups??!1}static \u0275fac=function(i){return new(i||t)};static \u0275cmp=E({type:t,selectors:[["mat-optgroup"]],hostAttrs:[1,"mat-mdc-optgroup"],hostVars:3,hostBindings:function(i,r){i&2&&X("role",r._inert?null:"group")("aria-disabled",r._inert?null:r.disabled.toString())("aria-labelledby",r._inert?null:r._labelId)},inputs:{label:"label",disabled:[2,"disabled","disabled",L]},exportAs:["matOptgroup"],features:[Ce([{provide:nu,useExisting:t}])],ngContentSelectors:MZ,decls:5,vars:4,consts:[["role","presentation",1,"mat-mdc-optgroup-label",3,"id"],[1,"mdc-list-item__primary-text"]],template:function(i,r){i&1&&(Se(EZ),pt(0,"span",0)(1,"span",1),g(2),ne(3),_t()(),ne(4,1)),i&2&&(G("mdc-list-item--disabled",r.disabled),ci("id",r._labelId),f(2),pe("",r.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));font-size:var(--mat-optgroup-label-text-size, var(--mat-sys-title-small-size));letter-spacing:var(--mat-optgroup-label-text-tracking, var(--mat-sys-title-small-tracking));font-weight:var(--mat-optgroup-label-text-weight, var(--mat-sys-title-small-weight))}.mat-mdc-optgroup-label{display:flex;position:relative;align-items:center;justify-content:flex-start;overflow:hidden;min-height:48px;padding:0 16px;outline:none}.mat-mdc-optgroup-label.mdc-list-item--disabled{opacity:.38}.mat-mdc-optgroup-label .mdc-list-item__primary-text{font-size:inherit;font-weight:inherit;letter-spacing:inherit;line-height:inherit;font-family:inherit;text-decoration:inherit;text-transform:inherit;white-space:normal;color:inherit} -`],encapsulation:2,changeDetection:0})}return t})(),lh=class{source;isUserInput;constructor(n,e=!1){this.source=n,this.isUserInput=e}},wn=(()=>{class t{_element=u(Y);_changeDetectorRef=u(ye);_parent=u(iu,{optional:!0});group=u(nu,{optional:!0});_signalDisableRipple=!1;_selected=!1;_active=!1;_mostRecentViewValue="";get multiple(){return this._parent&&this._parent.multiple}get selected(){return this._selected}value;id=u(Ze).getId("mat-option-");get disabled(){return this.group&&this.group.disabled||this._disabled()}set disabled(e){this._disabled.set(e)}_disabled=he(!1);get disableRipple(){return this._signalDisableRipple?this._parent.disableRipple():!!this._parent?.disableRipple}get hideSingleSelectionIndicator(){return!!(this._parent&&this._parent.hideSingleSelectionIndicator)}onSelectionChange=new U;_text;_stateChanges=new z;constructor(){let e=u(ht);e.load(ki),e.load(Jr),this._signalDisableRipple=!!this._parent&&ns(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,i){let r=this._getHostElement();typeof r.focus=="function"&&r.focus(i)}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)&&!Lt(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 lh(this,e))}static \u0275fac=function(i){return new(i||t)};static \u0275cmp=E({type:t,selectors:[["mat-option"]],viewQuery:function(i,r){if(i&1&&ie(SZ,7),i&2){let o;j(o=H())&&(r._text=o.first)}},hostAttrs:["role","option",1,"mat-mdc-option","mdc-list-item"],hostVars:11,hostBindings:function(i,r){i&1&&S("click",function(){return r._selectViaInteraction()})("keydown",function(a){return r._handleKeydown(a)}),i&2&&(ci("id",r.id),X("aria-selected",r.selected)("aria-disabled",r.disabled.toString()),G("mdc-list-item--selected",r.selected)("mat-mdc-option-multiple",r.multiple)("mat-mdc-option-active",r.active)("mdc-list-item--disabled",r.disabled))},inputs:{value:"value",id:"id",disabled:[2,"disabled","disabled",L]},outputs:{onSelectionChange:"onSelectionChange"},exportAs:["matOption"],ngContentSelectors:TZ,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(i,r){i&1&&(Se(kZ),V(0,IZ,1,2,"mat-pseudo-checkbox",1),ne(1),m(2,"span",2,0),ne(4,1),h(),V(5,AZ,1,1,"mat-pseudo-checkbox",3),V(6,OZ,2,1,"span",4),M(7,"div",5)),i&2&&(B(r.multiple?0:-1),f(5),B(!r.multiple&&r.selected&&!r.hideSingleSelectionIndicator?5:-1),f(),B(r.group&&r.group._inert?6:-1),f(),v("matRippleTrigger",r._getHostElement())("matRippleDisabled",r.disabled||r.disableRipple))},dependencies:[tu,jn],styles:[`.mat-mdc-option{-webkit-user-select:none;user-select:none;-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;display:flex;position:relative;align-items:center;justify-content:flex-start;overflow:hidden;min-height:48px;padding:0 16px;cursor:pointer;-webkit-tap-highlight-color:rgba(0,0,0,0);color:var(--mat-option-label-text-color, var(--mat-sys-on-surface));font-family:var(--mat-option-label-text-font, var(--mat-sys-label-large-font));line-height:var(--mat-option-label-text-line-height, var(--mat-sys-label-large-line-height));font-size:var(--mat-option-label-text-size, var(--mat-sys-body-large-size));letter-spacing:var(--mat-option-label-text-tracking, var(--mat-sys-label-large-tracking));font-weight:var(--mat-option-label-text-weight, var(--mat-sys-body-large-weight))}.mat-mdc-option:hover:not(.mdc-list-item--disabled){background-color:var(--mat-option-hover-state-layer-color, color-mix(in srgb, var(--mat-sys-on-surface) calc(var(--mat-sys-hover-state-layer-opacity) * 100%), transparent))}.mat-mdc-option:focus.mdc-list-item,.mat-mdc-option.mat-mdc-option-active.mdc-list-item{background-color:var(--mat-option-focus-state-layer-color, color-mix(in srgb, var(--mat-sys-on-surface) calc(var(--mat-sys-focus-state-layer-opacity) * 100%), transparent));outline:0}.mat-mdc-option.mdc-list-item--selected:not(.mdc-list-item--disabled):not(.mat-mdc-option-multiple){background-color:var(--mat-option-selected-state-layer-color, var(--mat-sys-secondary-container))}.mat-mdc-option.mdc-list-item--selected:not(.mdc-list-item--disabled):not(.mat-mdc-option-multiple) .mdc-list-item__primary-text{color:var(--mat-option-selected-state-label-text-color, var(--mat-sys-on-secondary-container))}.mat-mdc-option .mat-pseudo-checkbox{--mat-pseudo-checkbox-minimal-selected-checkmark-color: var(--mat-option-selected-state-label-text-color, var(--mat-sys-on-secondary-container))}.mat-mdc-option.mdc-list-item{align-items:center;background:rgba(0,0,0,0)}.mat-mdc-option.mdc-list-item--disabled{cursor:default;pointer-events:none}.mat-mdc-option.mdc-list-item--disabled .mat-mdc-option-pseudo-checkbox,.mat-mdc-option.mdc-list-item--disabled .mdc-list-item__primary-text,.mat-mdc-option.mdc-list-item--disabled>mat-icon{opacity:.38}.mat-mdc-optgroup .mat-mdc-option:not(.mat-mdc-option-multiple){padding-left:32px}[dir=rtl] .mat-mdc-optgroup .mat-mdc-option:not(.mat-mdc-option-multiple){padding-left:16px;padding-right:32px}.mat-mdc-option .mat-icon,.mat-mdc-option .mat-pseudo-checkbox-full{margin-right:16px;flex-shrink:0}[dir=rtl] .mat-mdc-option .mat-icon,[dir=rtl] .mat-mdc-option .mat-pseudo-checkbox-full{margin-right:0;margin-left:16px}.mat-mdc-option .mat-pseudo-checkbox-minimal{margin-left:16px;flex-shrink:0}[dir=rtl] .mat-mdc-option .mat-pseudo-checkbox-minimal{margin-right:16px;margin-left:0}.mat-mdc-option .mat-mdc-option-ripple{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none}.mat-mdc-option .mdc-list-item__primary-text{white-space:normal;font-size:inherit;font-weight:inherit;letter-spacing:inherit;line-height:inherit;font-family:inherit;text-decoration:inherit;text-transform:inherit;margin-right:auto}[dir=rtl] .mat-mdc-option .mdc-list-item__primary-text{margin-right:0;margin-left:auto}@media(forced-colors: active){.mat-mdc-option.mdc-list-item--selected:not(:has(.mat-mdc-option-pseudo-checkbox))::after{content:"";position:absolute;top:50%;right:16px;transform:translateY(-50%);width:10px;height:0;border-bottom:solid 10px;border-radius:10px}[dir=rtl] .mat-mdc-option.mdc-list-item--selected:not(:has(.mat-mdc-option-pseudo-checkbox))::after{right:auto;left:16px}}.mat-mdc-option-multiple{--mat-list-list-item-selected-container-color: var(--mat-list-list-item-container-color, transparent)}.mat-mdc-option-active .mat-focus-indicator::before{content:""} -`],encapsulation:2,changeDetection:0})}return t})();function eg(t,n,e){if(e.length){let i=n.toArray(),r=e.toArray(),o=0;for(let a=0;ae+i?Math.max(0,t-i+n):e}var ch=(()=>{class t{static \u0275fac=function(i){return new(i||t)};static \u0275mod=ee({type:t});static \u0275inj=J({imports:[Mo,De,Xv,wn]})}return t})();var RZ={capture:!0},PZ=["focus","mousedown","mouseenter","touchstart"],RS="mat-ripple-loader-uninitialized",PS="mat-ripple-loader-class-name",JL="mat-ripple-loader-centered",Jv="mat-ripple-loader-disabled",ey=(()=>{class t{_document=u(_e);_animationsDisabled=Ye();_globalRippleOptions=u(ws,{optional:!0});_platform=u(qe);_ngZone=u(ae);_injector=u(de);_eventCleanups;_hosts=new Map;constructor(){let e=u(mn).createRenderer(null,null);this._eventCleanups=this._ngZone.runOutsideAngular(()=>PZ.map(i=>e.listen(this._document,i,this._onInteraction,RZ)))}ngOnDestroy(){let e=this._hosts.keys();for(let i of e)this.destroyRipple(i);this._eventCleanups.forEach(i=>i())}configureRipple(e,i){e.setAttribute(RS,this._globalRippleOptions?.namespace??""),(i.className||!e.hasAttribute(PS))&&e.setAttribute(PS,i.className||""),i.centered&&e.setAttribute(JL,""),i.disabled&&e.setAttribute(Jv,"")}setDisabled(e,i){let r=this._hosts.get(e);r?(r.target.rippleDisabled=i,!i&&!r.hasSetUpEvents&&(r.hasSetUpEvents=!0,r.renderer.setupTriggerEvents(e))):i?e.setAttribute(Jv,""):e.removeAttribute(Jv)}_onInteraction=e=>{let i=Xn(e);if(i instanceof HTMLElement){let r=i.closest(`[${RS}="${this._globalRippleOptions?.namespace??""}"]`);r&&this._createRipple(r)}};_createRipple(e){if(!this._document||this._hosts.has(e))return;e.querySelector(".mat-ripple")?.remove();let i=this._document.createElement("span");i.classList.add("mat-ripple",e.getAttribute(PS)),e.append(i);let r=this._globalRippleOptions,o=this._animationsDisabled?0:r?.animation?.enterDuration??sh.enterDuration,a=this._animationsDisabled?0:r?.animation?.exitDuration??sh.exitDuration,s={rippleDisabled:this._animationsDisabled||r?.disabled||e.hasAttribute(Jv),rippleConfig:{centered:e.hasAttribute(JL),terminateOnPointerUp:r?.terminateOnPointerUp,animation:{enterDuration:o,exitDuration:a}}},l=new dc(s,this._ngZone,i,this._platform,this._injector),c=!s.rippleDisabled;c&&l.setupTriggerEvents(e),this._hosts.set(e,{target:s,renderer:l,hasSetUpEvents:c}),e.removeAttribute(RS)}destroyRipple(e){let i=this._hosts.get(e);i&&(i.renderer._removeTriggerEvents(),this._hosts.delete(e))}static \u0275fac=function(i){return new(i||t)};static \u0275prov=R({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();var FZ=/^\d{4}-\d{2}-\d{2}(?:T\d{2}:\d{2}:\d{2}(?:\.\d+)?(?:Z|(?:(?:\+|-)\d{2}:\d{2}))?)?$/,NZ=/^(\d?\d)[:.](\d?\d)(?:[:.](\d?\d))?\s*(AM|PM)?$/i;function FS(t,n){let e=Array(t);for(let i=0;i{class t extends Bi{useUtcForDisplay=!1;_matDateLocale=u(xs,{optional:!0});constructor(){super();let e=u(xs,{optional:!0});e!==void 0&&(this._matDateLocale=e),super.setLocale(this._matDateLocale)}getYear(e){return e.getFullYear()}getMonth(e){return e.getMonth()}getDate(e){return e.getDate()}getDayOfWeek(e){return e.getDay()}getMonthNames(e){let i=new Intl.DateTimeFormat(this.locale,{month:e,timeZone:"utc"});return FS(12,r=>this._format(i,new Date(2017,r,1)))}getDateNames(){let e=new Intl.DateTimeFormat(this.locale,{day:"numeric",timeZone:"utc"});return FS(31,i=>this._format(e,new Date(2017,0,i+1)))}getDayOfWeekNames(e){let i=new Intl.DateTimeFormat(this.locale,{weekday:e,timeZone:"utc"});return FS(7,r=>this._format(i,new Date(2017,0,r+1)))}getYearName(e){let i=new Intl.DateTimeFormat(this.locale,{year:"numeric",timeZone:"utc"});return this._format(i,e)}getFirstDayOfWeek(){if(typeof Intl<"u"&&Intl.Locale){let e=new Intl.Locale(this.locale),i=(e.getWeekInfo?.()||e.weekInfo)?.firstDay??0;return i===7?0:i}return 0}getNumDaysInMonth(e){return this.getDate(this._createDateWithOverflow(this.getYear(e),this.getMonth(e)+1,0))}clone(e){return new Date(e.getTime())}createDate(e,i,r){let o=this._createDateWithOverflow(e,i,r);return o.getMonth()!=i,o}today(){return new Date}parse(e,i){return typeof e=="number"?new Date(e):e?new Date(Date.parse(e)):null}format(e,i){if(!this.isValid(e))throw Error("NativeDateAdapter: Cannot format invalid date.");let r=new Intl.DateTimeFormat(this.locale,Ee(k({},i),{timeZone:"utc"}));return this._format(r,e)}addCalendarYears(e,i){return this.addCalendarMonths(e,i*12)}addCalendarMonths(e,i){let r=this._createDateWithOverflow(this.getYear(e),this.getMonth(e)+i,this.getDate(e));return this.getMonth(r)!=((this.getMonth(e)+i)%12+12)%12&&(r=this._createDateWithOverflow(this.getYear(r),this.getMonth(r),0)),r}addCalendarDays(e,i){return this._createDateWithOverflow(this.getYear(e),this.getMonth(e),this.getDate(e)+i)}toIso8601(e){return[e.getUTCFullYear(),this._2digit(e.getUTCMonth()+1),this._2digit(e.getUTCDate())].join("-")}deserialize(e){if(typeof e=="string"){if(!e)return null;if(FZ.test(e)){let i=new Date(e);if(this.isValid(i))return i}}return super.deserialize(e)}isDateInstance(e){return e instanceof Date}isValid(e){return!isNaN(e.getTime())}invalid(){return new Date(NaN)}setTime(e,i,r,o){let a=this.clone(e);return a.setHours(i,r,o,0),a}getHours(e){return e.getHours()}getMinutes(e){return e.getMinutes()}getSeconds(e){return e.getSeconds()}parseTime(e,i){if(typeof e!="string")return e instanceof Date?new Date(e.getTime()):null;let r=e.trim();if(r.length===0)return null;let o=this._parseTimeString(r);if(o===null){let a=r.replace(/[^0-9:(AM|PM)]/gi,"").trim();a.length>0&&(o=this._parseTimeString(a))}return o||this.invalid()}addSeconds(e,i){return new Date(e.getTime()+i*1e3)}_createDateWithOverflow(e,i,r){let o=new Date;return o.setFullYear(e,i,r),o.setHours(0,0,0,0),o}_2digit(e){return("00"+e).slice(-2)}_format(e,i){let r=new Date;return r.setUTCFullYear(i.getFullYear(),i.getMonth(),i.getDate()),r.setUTCHours(i.getHours(),i.getMinutes(),i.getSeconds(),i.getMilliseconds()),e.format(r)}_parseTimeString(e){let i=e.toUpperCase().match(NZ);if(i){let r=parseInt(i[1]),o=parseInt(i[2]),a=i[3]==null?void 0:parseInt(i[3]),s=i[4];if(r===12?r=s==="AM"?0:r:s==="PM"&&(r+=12),NS(r,0,23)&&NS(o,0,59)&&(a==null||NS(a,0,59)))return this.setTime(this.today(),r,o,a||0)}return null}static \u0275fac=function(i){return new(i||t)};static \u0275prov=R({token:t,factory:t.\u0275fac})}return t})();function NS(t,n,e){return!isNaN(t)&&t>=n&&t<=e}var LZ={parse:{dateInput:null,timeInput:null},display:{dateInput:{year:"numeric",month:"numeric",day:"numeric"},timeInput:{hour:"numeric",minute:"numeric"},monthYearLabel:{year:"numeric",month:"short"},dateA11yLabel:{year:"numeric",month:"long",day:"numeric"},monthYearA11yLabel:{year:"numeric",month:"long"},timeOptionLabel:{hour:"numeric",minute:"numeric"}}};var tV=(()=>{class t{static \u0275fac=function(i){return new(i||t)};static \u0275mod=ee({type:t});static \u0275inj=J({providers:[VZ()]})}return t})();function VZ(t=LZ){return[{provide:Bi,useClass:eV},{provide:Cs,useValue:t}]}var BZ=Math.pow(10,8)*24*60*60*1e3,A4e=-BZ,ty=6048e5,nV=864e5,ru=6e4,ou=36e5,rV=1e3;var jZ=3600;var oV=jZ*24,O4e=oV*7,HZ=oV*365.2425,zZ=HZ/12,R4e=zZ*3,LS=Symbol.for("constructDateFrom");function at(t,n){return typeof t=="function"?t(n):t&&typeof t=="object"&&LS in t?t[LS](n):t instanceof Date?new t.constructor(n):new Date(n)}function Ie(t,n){return at(n||t,t)}function dh(t,n,e){let i=Ie(t,e?.in);return isNaN(n)?at(e?.in||t,NaN):(n&&i.setDate(i.getDate()+n),i)}function uh(t,n,e){let i=Ie(t,e?.in);if(isNaN(n))return at(e?.in||t,NaN);if(!n)return i;let r=i.getDate(),o=at(e?.in||t,i.getTime());o.setMonth(i.getMonth()+n+1,0);let a=o.getDate();return r>=a?o:(i.setFullYear(o.getFullYear(),o.getMonth(),r),i)}function iy(t,n,e){return at(e?.in||t,+Ie(t)+n)}function aV(t,n,e){return iy(t,n*ou,e)}var UZ={};function Zo(){return UZ}function Jn(t,n){let e=Zo(),i=n?.weekStartsOn??n?.locale?.options?.weekStartsOn??e.weekStartsOn??e.locale?.options?.weekStartsOn??0,r=Ie(t,n?.in),o=r.getDay(),a=(o=o.getTime()?i+1:e.getTime()>=s.getTime()?i:i-1}function au(t){let n=Ie(t),e=new Date(Date.UTC(n.getFullYear(),n.getMonth(),n.getDate(),n.getHours(),n.getMinutes(),n.getSeconds(),n.getMilliseconds()));return e.setUTCFullYear(n.getFullYear()),+t-+e}function ry(t,...n){let e=at.bind(null,t||n.find(i=>typeof i=="object"));return n.map(e)}function VS(t,n){let e=Ie(t,n?.in);return e.setHours(0,0,0,0),e}function sV(t,n,e){let[i,r]=ry(e?.in,t,n),o=VS(i),a=VS(r),s=+o-au(o),l=+a-au(a);return Math.round((s-l)/nV)}function lV(t,n){let e=ny(t,n),i=at(n?.in||t,0);return i.setFullYear(e,0,4),i.setHours(0,0,0,0),Ra(i)}function cV(t,n,e){let i=Ie(t,e?.in);return i.setTime(i.getTime()+n*ru),i}function dV(t,n,e){return iy(t,n*1e3,e)}function uV(t,n,e){return uh(t,n*12,e)}function oy(t){return t instanceof Date||typeof t=="object"&&Object.prototype.toString.call(t)==="[object Date]"}function mh(t){return!(!oy(t)&&typeof t!="number"||isNaN(+Ie(t)))}function mV(t,n){let e=Ie(t,n?.in);return e.setDate(1),e.setHours(0,0,0,0),e}function hV(t,n){let e=Ie(t,n?.in);return e.setFullYear(e.getFullYear(),0,1),e.setHours(0,0,0,0),e}var $Z={lessThanXSeconds:{one:"less than a second",other:"less than {{count}} seconds"},xSeconds:{one:"1 second",other:"{{count}} seconds"},halfAMinute:"half a minute",lessThanXMinutes:{one:"less than a minute",other:"less than {{count}} minutes"},xMinutes:{one:"1 minute",other:"{{count}} minutes"},aboutXHours:{one:"about 1 hour",other:"about {{count}} hours"},xHours:{one:"1 hour",other:"{{count}} hours"},xDays:{one:"1 day",other:"{{count}} days"},aboutXWeeks:{one:"about 1 week",other:"about {{count}} weeks"},xWeeks:{one:"1 week",other:"{{count}} weeks"},aboutXMonths:{one:"about 1 month",other:"about {{count}} months"},xMonths:{one:"1 month",other:"{{count}} months"},aboutXYears:{one:"about 1 year",other:"about {{count}} years"},xYears:{one:"1 year",other:"{{count}} years"},overXYears:{one:"over 1 year",other:"over {{count}} years"},almostXYears:{one:"almost 1 year",other:"almost {{count}} years"}},pV=(t,n,e)=>{let i,r=$Z[t];return typeof r=="string"?i=r:n===1?i=r.one:i=r.other.replace("{{count}}",n.toString()),e?.addSuffix?e.comparison&&e.comparison>0?"in "+i:i+" ago":i};function Xo(t){return(n={})=>{let e=n.width?String(n.width):t.defaultWidth;return t.formats[e]||t.formats[t.defaultWidth]}}var WZ={full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},GZ={full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},qZ={full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},fV={date:Xo({formats:WZ,defaultWidth:"full"}),time:Xo({formats:GZ,defaultWidth:"full"}),dateTime:Xo({formats:qZ,defaultWidth:"full"})};var YZ={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"},gV=(t,n,e,i)=>YZ[t];function Hn(t){return(n,e)=>{let i=e?.context?String(e.context):"standalone",r;if(i==="formatting"&&t.formattingValues){let a=t.defaultFormattingWidth||t.defaultWidth,s=e?.width?String(e.width):a;r=t.formattingValues[s]||t.formattingValues[a]}else{let a=t.defaultWidth,s=e?.width?String(e.width):t.defaultWidth;r=t.values[s]||t.values[a]}let o=t.argumentCallback?t.argumentCallback(n):n;return r[o]}}var QZ={narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},KZ={narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},ZZ={narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],wide:["January","February","March","April","May","June","July","August","September","October","November","December"]},XZ={narrow:["S","M","T","W","T","F","S"],short:["Su","Mo","Tu","We","Th","Fr","Sa"],abbreviated:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],wide:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},JZ={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"}},eX={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"}},tX=(t,n)=>{let e=Number(t),i=e%100;if(i>20||i<10)switch(i%10){case 1:return e+"st";case 2:return e+"nd";case 3:return e+"rd"}return e+"th"},_V={ordinalNumber:tX,era:Hn({values:QZ,defaultWidth:"wide"}),quarter:Hn({values:KZ,defaultWidth:"wide",argumentCallback:t=>t-1}),month:Hn({values:ZZ,defaultWidth:"wide"}),day:Hn({values:XZ,defaultWidth:"wide"}),dayPeriod:Hn({values:JZ,defaultWidth:"wide",formattingValues:eX,defaultFormattingWidth:"wide"})};function zn(t){return(n,e={})=>{let i=e.width,r=i&&t.matchPatterns[i]||t.matchPatterns[t.defaultMatchWidth],o=n.match(r);if(!o)return null;let a=o[0],s=i&&t.parsePatterns[i]||t.parsePatterns[t.defaultParseWidth],l=Array.isArray(s)?nX(s,p=>p.test(a)):iX(s,p=>p.test(a)),c;c=t.valueCallback?t.valueCallback(l):l,c=e.valueCallback?e.valueCallback(c):c;let d=n.slice(a.length);return{value:c,rest:d}}}function iX(t,n){for(let e in t)if(Object.prototype.hasOwnProperty.call(t,e)&&n(t[e]))return e}function nX(t,n){for(let e=0;e{let i=n.match(t.matchPattern);if(!i)return null;let r=i[0],o=n.match(t.parsePattern);if(!o)return null;let a=t.valueCallback?t.valueCallback(o[0]):o[0];a=e.valueCallback?e.valueCallback(a):a;let s=n.slice(r.length);return{value:a,rest:s}}}var rX=/^(\d+)(th|st|nd|rd)?/i,oX=/\d+/i,aX={narrow:/^(b|a)/i,abbreviated:/^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,wide:/^(before christ|before common era|anno domini|common era)/i},sX={any:[/^b/i,/^(a|c)/i]},lX={narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},cX={any:[/1/i,/2/i,/3/i,/4/i]},dX={narrow:/^[jfmasond]/i,abbreviated:/^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,wide:/^(january|february|march|april|may|june|july|august|september|october|november|december)/i},uX={narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ap/i,/^may/i,/^jun/i,/^jul/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},mX={narrow:/^[smtwf]/i,short:/^(su|mo|tu|we|th|fr|sa)/i,abbreviated:/^(sun|mon|tue|wed|thu|fri|sat)/i,wide:/^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i},hX={narrow:[/^s/i,/^m/i,/^t/i,/^w/i,/^t/i,/^f/i,/^s/i],any:[/^su/i,/^m/i,/^tu/i,/^w/i,/^th/i,/^f/i,/^sa/i]},pX={narrow:/^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,any:/^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i},fX={any:{am:/^a/i,pm:/^p/i,midnight:/^mi/i,noon:/^no/i,morning:/morning/i,afternoon:/afternoon/i,evening:/evening/i,night:/night/i}},bV={ordinalNumber:hh({matchPattern:rX,parsePattern:oX,valueCallback:t=>parseInt(t,10)}),era:zn({matchPatterns:aX,defaultMatchWidth:"wide",parsePatterns:sX,defaultParseWidth:"any"}),quarter:zn({matchPatterns:lX,defaultMatchWidth:"wide",parsePatterns:cX,defaultParseWidth:"any",valueCallback:t=>t+1}),month:zn({matchPatterns:dX,defaultMatchWidth:"wide",parsePatterns:uX,defaultParseWidth:"any"}),day:zn({matchPatterns:mX,defaultMatchWidth:"wide",parsePatterns:hX,defaultParseWidth:"any"}),dayPeriod:zn({matchPatterns:pX,defaultMatchWidth:"any",parsePatterns:fX,defaultParseWidth:"any"})};var su={code:"en-US",formatDistance:pV,formatLong:fV,formatRelative:gV,localize:_V,match:bV,options:{weekStartsOn:0,firstWeekContainsDate:1}};function vV(t,n){let e=Ie(t,n?.in);return sV(e,hV(e))+1}function ay(t,n){let e=Ie(t,n?.in),i=+Ra(e)-+lV(e);return Math.round(i/ty)+1}function ph(t,n){let e=Ie(t,n?.in),i=e.getFullYear(),r=Zo(),o=n?.firstWeekContainsDate??n?.locale?.options?.firstWeekContainsDate??r.firstWeekContainsDate??r.locale?.options?.firstWeekContainsDate??1,a=at(n?.in||t,0);a.setFullYear(i+1,0,o),a.setHours(0,0,0,0);let s=Jn(a,n),l=at(n?.in||t,0);l.setFullYear(i,0,o),l.setHours(0,0,0,0);let c=Jn(l,n);return+e>=+s?i+1:+e>=+c?i:i-1}function yV(t,n){let e=Zo(),i=n?.firstWeekContainsDate??n?.locale?.options?.firstWeekContainsDate??e.firstWeekContainsDate??e.locale?.options?.firstWeekContainsDate??1,r=ph(t,n),o=at(n?.in||t,0);return o.setFullYear(r,0,i),o.setHours(0,0,0,0),Jn(o,n)}function fh(t,n){let e=Ie(t,n?.in),i=+Jn(e,n)-+yV(e,n);return Math.round(i/ty)+1}function wt(t,n){let e=t<0?"-":"",i=Math.abs(t).toString().padStart(n,"0");return e+i}var ml={y(t,n){let e=t.getFullYear(),i=e>0?e:1-e;return wt(n==="yy"?i%100:i,n.length)},M(t,n){let e=t.getMonth();return n==="M"?String(e+1):wt(e+1,2)},d(t,n){return wt(t.getDate(),n.length)},a(t,n){let e=t.getHours()/12>=1?"pm":"am";switch(n){case"a":case"aa":return e.toUpperCase();case"aaa":return e;case"aaaaa":return e[0];case"aaaa":default:return e==="am"?"a.m.":"p.m."}},h(t,n){return wt(t.getHours()%12||12,n.length)},H(t,n){return wt(t.getHours(),n.length)},m(t,n){return wt(t.getMinutes(),n.length)},s(t,n){return wt(t.getSeconds(),n.length)},S(t,n){let e=n.length,i=t.getMilliseconds(),r=Math.trunc(i*Math.pow(10,e-3));return wt(r,n.length)}};var gh={am:"am",pm:"pm",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},BS={G:function(t,n,e){let i=t.getFullYear()>0?1:0;switch(n){case"G":case"GG":case"GGG":return e.era(i,{width:"abbreviated"});case"GGGGG":return e.era(i,{width:"narrow"});case"GGGG":default:return e.era(i,{width:"wide"})}},y:function(t,n,e){if(n==="yo"){let i=t.getFullYear(),r=i>0?i:1-i;return e.ordinalNumber(r,{unit:"year"})}return ml.y(t,n)},Y:function(t,n,e,i){let r=ph(t,i),o=r>0?r:1-r;if(n==="YY"){let a=o%100;return wt(a,2)}return n==="Yo"?e.ordinalNumber(o,{unit:"year"}):wt(o,n.length)},R:function(t,n){let e=ny(t);return wt(e,n.length)},u:function(t,n){let e=t.getFullYear();return wt(e,n.length)},Q:function(t,n,e){let i=Math.ceil((t.getMonth()+1)/3);switch(n){case"Q":return String(i);case"QQ":return wt(i,2);case"Qo":return e.ordinalNumber(i,{unit:"quarter"});case"QQQ":return e.quarter(i,{width:"abbreviated",context:"formatting"});case"QQQQQ":return e.quarter(i,{width:"narrow",context:"formatting"});case"QQQQ":default:return e.quarter(i,{width:"wide",context:"formatting"})}},q:function(t,n,e){let i=Math.ceil((t.getMonth()+1)/3);switch(n){case"q":return String(i);case"qq":return wt(i,2);case"qo":return e.ordinalNumber(i,{unit:"quarter"});case"qqq":return e.quarter(i,{width:"abbreviated",context:"standalone"});case"qqqqq":return e.quarter(i,{width:"narrow",context:"standalone"});case"qqqq":default:return e.quarter(i,{width:"wide",context:"standalone"})}},M:function(t,n,e){let i=t.getMonth();switch(n){case"M":case"MM":return ml.M(t,n);case"Mo":return e.ordinalNumber(i+1,{unit:"month"});case"MMM":return e.month(i,{width:"abbreviated",context:"formatting"});case"MMMMM":return e.month(i,{width:"narrow",context:"formatting"});case"MMMM":default:return e.month(i,{width:"wide",context:"formatting"})}},L:function(t,n,e){let i=t.getMonth();switch(n){case"L":return String(i+1);case"LL":return wt(i+1,2);case"Lo":return e.ordinalNumber(i+1,{unit:"month"});case"LLL":return e.month(i,{width:"abbreviated",context:"standalone"});case"LLLLL":return e.month(i,{width:"narrow",context:"standalone"});case"LLLL":default:return e.month(i,{width:"wide",context:"standalone"})}},w:function(t,n,e,i){let r=fh(t,i);return n==="wo"?e.ordinalNumber(r,{unit:"week"}):wt(r,n.length)},I:function(t,n,e){let i=ay(t);return n==="Io"?e.ordinalNumber(i,{unit:"week"}):wt(i,n.length)},d:function(t,n,e){return n==="do"?e.ordinalNumber(t.getDate(),{unit:"date"}):ml.d(t,n)},D:function(t,n,e){let i=vV(t);return n==="Do"?e.ordinalNumber(i,{unit:"dayOfYear"}):wt(i,n.length)},E:function(t,n,e){let i=t.getDay();switch(n){case"E":case"EE":case"EEE":return e.day(i,{width:"abbreviated",context:"formatting"});case"EEEEE":return e.day(i,{width:"narrow",context:"formatting"});case"EEEEEE":return e.day(i,{width:"short",context:"formatting"});case"EEEE":default:return e.day(i,{width:"wide",context:"formatting"})}},e:function(t,n,e,i){let r=t.getDay(),o=(r-i.weekStartsOn+8)%7||7;switch(n){case"e":return String(o);case"ee":return wt(o,2);case"eo":return e.ordinalNumber(o,{unit:"day"});case"eee":return e.day(r,{width:"abbreviated",context:"formatting"});case"eeeee":return e.day(r,{width:"narrow",context:"formatting"});case"eeeeee":return e.day(r,{width:"short",context:"formatting"});case"eeee":default:return e.day(r,{width:"wide",context:"formatting"})}},c:function(t,n,e,i){let r=t.getDay(),o=(r-i.weekStartsOn+8)%7||7;switch(n){case"c":return String(o);case"cc":return wt(o,n.length);case"co":return e.ordinalNumber(o,{unit:"day"});case"ccc":return e.day(r,{width:"abbreviated",context:"standalone"});case"ccccc":return e.day(r,{width:"narrow",context:"standalone"});case"cccccc":return e.day(r,{width:"short",context:"standalone"});case"cccc":default:return e.day(r,{width:"wide",context:"standalone"})}},i:function(t,n,e){let i=t.getDay(),r=i===0?7:i;switch(n){case"i":return String(r);case"ii":return wt(r,n.length);case"io":return e.ordinalNumber(r,{unit:"day"});case"iii":return e.day(i,{width:"abbreviated",context:"formatting"});case"iiiii":return e.day(i,{width:"narrow",context:"formatting"});case"iiiiii":return e.day(i,{width:"short",context:"formatting"});case"iiii":default:return e.day(i,{width:"wide",context:"formatting"})}},a:function(t,n,e){let r=t.getHours()/12>=1?"pm":"am";switch(n){case"a":case"aa":return e.dayPeriod(r,{width:"abbreviated",context:"formatting"});case"aaa":return e.dayPeriod(r,{width:"abbreviated",context:"formatting"}).toLowerCase();case"aaaaa":return e.dayPeriod(r,{width:"narrow",context:"formatting"});case"aaaa":default:return e.dayPeriod(r,{width:"wide",context:"formatting"})}},b:function(t,n,e){let i=t.getHours(),r;switch(i===12?r=gh.noon:i===0?r=gh.midnight:r=i/12>=1?"pm":"am",n){case"b":case"bb":return e.dayPeriod(r,{width:"abbreviated",context:"formatting"});case"bbb":return e.dayPeriod(r,{width:"abbreviated",context:"formatting"}).toLowerCase();case"bbbbb":return e.dayPeriod(r,{width:"narrow",context:"formatting"});case"bbbb":default:return e.dayPeriod(r,{width:"wide",context:"formatting"})}},B:function(t,n,e){let i=t.getHours(),r;switch(i>=17?r=gh.evening:i>=12?r=gh.afternoon:i>=4?r=gh.morning:r=gh.night,n){case"B":case"BB":case"BBB":return e.dayPeriod(r,{width:"abbreviated",context:"formatting"});case"BBBBB":return e.dayPeriod(r,{width:"narrow",context:"formatting"});case"BBBB":default:return e.dayPeriod(r,{width:"wide",context:"formatting"})}},h:function(t,n,e){if(n==="ho"){let i=t.getHours()%12;return i===0&&(i=12),e.ordinalNumber(i,{unit:"hour"})}return ml.h(t,n)},H:function(t,n,e){return n==="Ho"?e.ordinalNumber(t.getHours(),{unit:"hour"}):ml.H(t,n)},K:function(t,n,e){let i=t.getHours()%12;return n==="Ko"?e.ordinalNumber(i,{unit:"hour"}):wt(i,n.length)},k:function(t,n,e){let i=t.getHours();return i===0&&(i=24),n==="ko"?e.ordinalNumber(i,{unit:"hour"}):wt(i,n.length)},m:function(t,n,e){return n==="mo"?e.ordinalNumber(t.getMinutes(),{unit:"minute"}):ml.m(t,n)},s:function(t,n,e){return n==="so"?e.ordinalNumber(t.getSeconds(),{unit:"second"}):ml.s(t,n)},S:function(t,n){return ml.S(t,n)},X:function(t,n,e){let i=t.getTimezoneOffset();if(i===0)return"Z";switch(n){case"X":return CV(i);case"XXXX":case"XX":return lu(i);case"XXXXX":case"XXX":default:return lu(i,":")}},x:function(t,n,e){let i=t.getTimezoneOffset();switch(n){case"x":return CV(i);case"xxxx":case"xx":return lu(i);case"xxxxx":case"xxx":default:return lu(i,":")}},O:function(t,n,e){let i=t.getTimezoneOffset();switch(n){case"O":case"OO":case"OOO":return"GMT"+xV(i,":");case"OOOO":default:return"GMT"+lu(i,":")}},z:function(t,n,e){let i=t.getTimezoneOffset();switch(n){case"z":case"zz":case"zzz":return"GMT"+xV(i,":");case"zzzz":default:return"GMT"+lu(i,":")}},t:function(t,n,e){let i=Math.trunc(+t/1e3);return wt(i,n.length)},T:function(t,n,e){return wt(+t,n.length)}};function xV(t,n=""){let e=t>0?"-":"+",i=Math.abs(t),r=Math.trunc(i/60),o=i%60;return o===0?e+String(r):e+String(r)+n+wt(o,2)}function CV(t,n){return t%60===0?(t>0?"-":"+")+wt(Math.abs(t)/60,2):lu(t,n)}function lu(t,n=""){let e=t>0?"-":"+",i=Math.abs(t),r=wt(Math.trunc(i/60),2),o=wt(i%60,2);return e+r+n+o}var wV=(t,n)=>{switch(t){case"P":return n.date({width:"short"});case"PP":return n.date({width:"medium"});case"PPP":return n.date({width:"long"});case"PPPP":default:return n.date({width:"full"})}},DV=(t,n)=>{switch(t){case"p":return n.time({width:"short"});case"pp":return n.time({width:"medium"});case"ppp":return n.time({width:"long"});case"pppp":default:return n.time({width:"full"})}},gX=(t,n)=>{let e=t.match(/(P+)(p+)?/)||[],i=e[1],r=e[2];if(!r)return wV(t,n);let o;switch(i){case"P":o=n.dateTime({width:"short"});break;case"PP":o=n.dateTime({width:"medium"});break;case"PPP":o=n.dateTime({width:"long"});break;case"PPPP":default:o=n.dateTime({width:"full"});break}return o.replace("{{date}}",wV(i,n)).replace("{{time}}",DV(r,n))},ig={p:DV,P:gX};var _X=/^D+$/,bX=/^Y+$/,vX=["D","DD","YY","YYYY"];function sy(t){return _X.test(t)}function ly(t){return bX.test(t)}function ng(t,n,e){let i=yX(t,n,e);if(console.warn(i),vX.includes(t))throw new RangeError(i)}function yX(t,n,e){let i=t[0]==="Y"?"years":"days of the month";return`Use \`${t.toLowerCase()}\` instead of \`${t}\` (in \`${n}\`) for formatting ${i} to the input \`${e}\`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md`}var xX=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,CX=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,wX=/^'([^]*?)'?$/,DX=/''/g,EX=/[a-zA-Z]/;function EV(t,n,e){let i=Zo(),r=e?.locale??i.locale??su,o=e?.firstWeekContainsDate??e?.locale?.options?.firstWeekContainsDate??i.firstWeekContainsDate??i.locale?.options?.firstWeekContainsDate??1,a=e?.weekStartsOn??e?.locale?.options?.weekStartsOn??i.weekStartsOn??i.locale?.options?.weekStartsOn??0,s=Ie(t,e?.in);if(!mh(s))throw new RangeError("Invalid time value");let l=n.match(CX).map(d=>{let p=d[0];if(p==="p"||p==="P"){let _=ig[p];return _(d,r.formatLong)}return d}).join("").match(xX).map(d=>{if(d==="''")return{isToken:!1,value:"'"};let p=d[0];if(p==="'")return{isToken:!1,value:MX(d)};if(BS[p])return{isToken:!0,value:d};if(p.match(EX))throw new RangeError("Format string contains an unescaped latin alphabet character `"+p+"`");return{isToken:!1,value:d}});r.localize.preprocessor&&(l=r.localize.preprocessor(s,l));let c={firstWeekContainsDate:o,weekStartsOn:a,locale:r};return l.map(d=>{if(!d.isToken)return d.value;let p=d.value;(!e?.useAdditionalWeekYearTokens&&ly(p)||!e?.useAdditionalDayOfYearTokens&&sy(p))&&ng(p,n,String(t));let _=BS[p[0]];return _(s,p,r.localize,c)}).join("")}function MX(t){let n=t.match(wX);return n?n[1].replace(DX,"'"):t}function MV(t,n){let e=Ie(t,n?.in);if(isNaN(+e))throw new RangeError("Invalid time value");let i=n?.format??"extended",r=n?.representation??"complete",o="",a="",s=i==="extended"?"-":"",l=i==="extended"?":":"";if(r!=="time"){let c=wt(e.getDate(),2),d=wt(e.getMonth()+1,2);o=`${wt(e.getFullYear(),4)}${s}${d}${s}${c}`}if(r!=="date"){let c=e.getTimezoneOffset();if(c!==0){let w=Math.abs(c),C=wt(Math.trunc(w/60),2),D=wt(w%60,2);a=`${c<0?"+":"-"}${C}:${D}`}else a="Z";let d=wt(e.getHours(),2),p=wt(e.getMinutes(),2),_=wt(e.getSeconds(),2),b=o===""?"":"T",y=[d,p,_].join(l);o=`${o}${b}${y}${a}`}return o}function SV(t,n){return Ie(t,n?.in).getDate()}function kV(t,n){return Ie(t,n?.in).getDay()}function cy(t,n){let e=Ie(t,n?.in),i=e.getFullYear(),r=e.getMonth(),o=at(e,0);return o.setFullYear(i,r+1,0),o.setHours(0,0,0,0),o.getDate()}function TV(){return Object.assign({},Zo())}function dy(t,n){return Ie(t,n?.in).getHours()}function IV(t,n){let e=Ie(t,n?.in).getDay();return e===0?7:e}function uy(t,n){return Ie(t,n?.in).getMinutes()}function AV(t,n){return Ie(t,n?.in).getMonth()}function OV(t){return Ie(t).getSeconds()}function RV(t,n){return Ie(t,n?.in).getFullYear()}function PV(t,n){let e=SX(n)?new n(0):at(n,0);return e.setFullYear(t.getFullYear(),t.getMonth(),t.getDate()),e.setHours(t.getHours(),t.getMinutes(),t.getSeconds(),t.getMilliseconds()),e}function SX(t){return typeof t=="function"&&t.prototype?.constructor===t}var kX=10,my=class{subPriority=0;validate(n,e){return!0}},hy=class extends my{constructor(n,e,i,r,o){super(),this.value=n,this.validateValue=e,this.setValue=i,this.priority=r,o&&(this.subPriority=o)}validate(n,e){return this.validateValue(n,this.value,e)}set(n,e,i){return this.setValue(n,e,this.value,i)}},py=class extends my{priority=kX;subPriority=-1;constructor(n,e){super(),this.context=n||(i=>at(e,i))}set(n,e){return e.timestampIsSet?n:at(n,PV(n,this.context))}};var Pe=class{run(n,e,i,r){let o=this.parse(n,e,i,r);return o?{setter:new hy(o.value,this.validate,this.set,this.priority,this.subPriority),rest:o.rest}:null}validate(n,e,i){return!0}};var fy=class extends Pe{priority=140;parse(n,e,i){switch(e){case"G":case"GG":case"GGG":return i.era(n,{width:"abbreviated"})||i.era(n,{width:"narrow"});case"GGGGG":return i.era(n,{width:"narrow"});case"GGGG":default:return i.era(n,{width:"wide"})||i.era(n,{width:"abbreviated"})||i.era(n,{width:"narrow"})}}set(n,e,i){return e.era=i,n.setFullYear(i,0,1),n.setHours(0,0,0,0),n}incompatibleTokens=["R","u","t","T"]};var jt={month:/^(1[0-2]|0?\d)/,date:/^(3[0-1]|[0-2]?\d)/,dayOfYear:/^(36[0-6]|3[0-5]\d|[0-2]?\d?\d)/,week:/^(5[0-3]|[0-4]?\d)/,hour23h:/^(2[0-3]|[0-1]?\d)/,hour24h:/^(2[0-4]|[0-1]?\d)/,hour11h:/^(1[0-1]|0?\d)/,hour12h:/^(1[0-2]|0?\d)/,minute:/^[0-5]?\d/,second:/^[0-5]?\d/,singleDigit:/^\d/,twoDigits:/^\d{1,2}/,threeDigits:/^\d{1,3}/,fourDigits:/^\d{1,4}/,anyDigitsSigned:/^-?\d+/,singleDigitSigned:/^-?\d/,twoDigitsSigned:/^-?\d{1,2}/,threeDigitsSigned:/^-?\d{1,3}/,fourDigitsSigned:/^-?\d{1,4}/},Jo={basicOptionalMinutes:/^([+-])(\d{2})(\d{2})?|Z/,basic:/^([+-])(\d{2})(\d{2})|Z/,basicOptionalSeconds:/^([+-])(\d{2})(\d{2})((\d{2}))?|Z/,extended:/^([+-])(\d{2}):(\d{2})|Z/,extendedOptionalSeconds:/^([+-])(\d{2}):(\d{2})(:(\d{2}))?|Z/};function di(t,n){return t&&{value:n(t.value),rest:t.rest}}function Vt(t,n){let e=n.match(t);return e?{value:parseInt(e[0],10),rest:n.slice(e[0].length)}:null}function ea(t,n){let e=n.match(t);if(!e)return null;if(e[0]==="Z")return{value:0,rest:n.slice(1)};let i=e[1]==="+"?1:-1,r=e[2]?parseInt(e[2],10):0,o=e[3]?parseInt(e[3],10):0,a=e[5]?parseInt(e[5],10):0;return{value:i*(r*ou+o*ru+a*rV),rest:n.slice(e[0].length)}}function gy(t){return Vt(jt.anyDigitsSigned,t)}function bt(t,n){switch(t){case 1:return Vt(jt.singleDigit,n);case 2:return Vt(jt.twoDigits,n);case 3:return Vt(jt.threeDigits,n);case 4:return Vt(jt.fourDigits,n);default:return Vt(new RegExp("^\\d{1,"+t+"}"),n)}}function _h(t,n){switch(t){case 1:return Vt(jt.singleDigitSigned,n);case 2:return Vt(jt.twoDigitsSigned,n);case 3:return Vt(jt.threeDigitsSigned,n);case 4:return Vt(jt.fourDigitsSigned,n);default:return Vt(new RegExp("^-?\\d{1,"+t+"}"),n)}}function bh(t){switch(t){case"morning":return 4;case"evening":return 17;case"pm":case"noon":case"afternoon":return 12;case"am":case"midnight":case"night":default:return 0}}function _y(t,n){let e=n>0,i=e?n:1-n,r;if(i<=50)r=t||100;else{let o=i+50,a=Math.trunc(o/100)*100,s=t>=o%100;r=t+a-(s?100:0)}return e?r:1-r}function by(t){return t%400===0||t%4===0&&t%100!==0}var vy=class extends Pe{priority=130;incompatibleTokens=["Y","R","u","w","I","i","e","c","t","T"];parse(n,e,i){let r=o=>({year:o,isTwoDigitYear:e==="yy"});switch(e){case"y":return di(bt(4,n),r);case"yo":return di(i.ordinalNumber(n,{unit:"year"}),r);default:return di(bt(e.length,n),r)}}validate(n,e){return e.isTwoDigitYear||e.year>0}set(n,e,i){let r=n.getFullYear();if(i.isTwoDigitYear){let a=_y(i.year,r);return n.setFullYear(a,0,1),n.setHours(0,0,0,0),n}let o=!("era"in e)||e.era===1?i.year:1-i.year;return n.setFullYear(o,0,1),n.setHours(0,0,0,0),n}};var yy=class extends Pe{priority=130;parse(n,e,i){let r=o=>({year:o,isTwoDigitYear:e==="YY"});switch(e){case"Y":return di(bt(4,n),r);case"Yo":return di(i.ordinalNumber(n,{unit:"year"}),r);default:return di(bt(e.length,n),r)}}validate(n,e){return e.isTwoDigitYear||e.year>0}set(n,e,i,r){let o=ph(n,r);if(i.isTwoDigitYear){let s=_y(i.year,o);return n.setFullYear(s,0,r.firstWeekContainsDate),n.setHours(0,0,0,0),Jn(n,r)}let a=!("era"in e)||e.era===1?i.year:1-i.year;return n.setFullYear(a,0,r.firstWeekContainsDate),n.setHours(0,0,0,0),Jn(n,r)}incompatibleTokens=["y","R","u","Q","q","M","L","I","d","D","i","t","T"]};var xy=class extends Pe{priority=130;parse(n,e){return e==="R"?_h(4,n):_h(e.length,n)}set(n,e,i){let r=at(n,0);return r.setFullYear(i,0,4),r.setHours(0,0,0,0),Ra(r)}incompatibleTokens=["G","y","Y","u","Q","q","M","L","w","d","D","e","c","t","T"]};var Cy=class extends Pe{priority=130;parse(n,e){return e==="u"?_h(4,n):_h(e.length,n)}set(n,e,i){return n.setFullYear(i,0,1),n.setHours(0,0,0,0),n}incompatibleTokens=["G","y","Y","R","w","I","i","e","c","t","T"]};var wy=class extends Pe{priority=120;parse(n,e,i){switch(e){case"Q":case"QQ":return bt(e.length,n);case"Qo":return i.ordinalNumber(n,{unit:"quarter"});case"QQQ":return i.quarter(n,{width:"abbreviated",context:"formatting"})||i.quarter(n,{width:"narrow",context:"formatting"});case"QQQQQ":return i.quarter(n,{width:"narrow",context:"formatting"});case"QQQQ":default:return i.quarter(n,{width:"wide",context:"formatting"})||i.quarter(n,{width:"abbreviated",context:"formatting"})||i.quarter(n,{width:"narrow",context:"formatting"})}}validate(n,e){return e>=1&&e<=4}set(n,e,i){return n.setMonth((i-1)*3,1),n.setHours(0,0,0,0),n}incompatibleTokens=["Y","R","q","M","L","w","I","d","D","i","e","c","t","T"]};var Dy=class extends Pe{priority=120;parse(n,e,i){switch(e){case"q":case"qq":return bt(e.length,n);case"qo":return i.ordinalNumber(n,{unit:"quarter"});case"qqq":return i.quarter(n,{width:"abbreviated",context:"standalone"})||i.quarter(n,{width:"narrow",context:"standalone"});case"qqqqq":return i.quarter(n,{width:"narrow",context:"standalone"});case"qqqq":default:return i.quarter(n,{width:"wide",context:"standalone"})||i.quarter(n,{width:"abbreviated",context:"standalone"})||i.quarter(n,{width:"narrow",context:"standalone"})}}validate(n,e){return e>=1&&e<=4}set(n,e,i){return n.setMonth((i-1)*3,1),n.setHours(0,0,0,0),n}incompatibleTokens=["Y","R","Q","M","L","w","I","d","D","i","e","c","t","T"]};var Ey=class extends Pe{incompatibleTokens=["Y","R","q","Q","L","w","I","D","i","e","c","t","T"];priority=110;parse(n,e,i){let r=o=>o-1;switch(e){case"M":return di(Vt(jt.month,n),r);case"MM":return di(bt(2,n),r);case"Mo":return di(i.ordinalNumber(n,{unit:"month"}),r);case"MMM":return i.month(n,{width:"abbreviated",context:"formatting"})||i.month(n,{width:"narrow",context:"formatting"});case"MMMMM":return i.month(n,{width:"narrow",context:"formatting"});case"MMMM":default:return i.month(n,{width:"wide",context:"formatting"})||i.month(n,{width:"abbreviated",context:"formatting"})||i.month(n,{width:"narrow",context:"formatting"})}}validate(n,e){return e>=0&&e<=11}set(n,e,i){return n.setMonth(i,1),n.setHours(0,0,0,0),n}};var My=class extends Pe{priority=110;parse(n,e,i){let r=o=>o-1;switch(e){case"L":return di(Vt(jt.month,n),r);case"LL":return di(bt(2,n),r);case"Lo":return di(i.ordinalNumber(n,{unit:"month"}),r);case"LLL":return i.month(n,{width:"abbreviated",context:"standalone"})||i.month(n,{width:"narrow",context:"standalone"});case"LLLLL":return i.month(n,{width:"narrow",context:"standalone"});case"LLLL":default:return i.month(n,{width:"wide",context:"standalone"})||i.month(n,{width:"abbreviated",context:"standalone"})||i.month(n,{width:"narrow",context:"standalone"})}}validate(n,e){return e>=0&&e<=11}set(n,e,i){return n.setMonth(i,1),n.setHours(0,0,0,0),n}incompatibleTokens=["Y","R","q","Q","M","w","I","D","i","e","c","t","T"]};function FV(t,n,e){let i=Ie(t,e?.in),r=fh(i,e)-n;return i.setDate(i.getDate()-r*7),Ie(i,e?.in)}var Sy=class extends Pe{priority=100;parse(n,e,i){switch(e){case"w":return Vt(jt.week,n);case"wo":return i.ordinalNumber(n,{unit:"week"});default:return bt(e.length,n)}}validate(n,e){return e>=1&&e<=53}set(n,e,i,r){return Jn(FV(n,i,r),r)}incompatibleTokens=["y","R","u","q","Q","M","L","I","d","D","i","t","T"]};function NV(t,n,e){let i=Ie(t,e?.in),r=ay(i,e)-n;return i.setDate(i.getDate()-r*7),i}var ky=class extends Pe{priority=100;parse(n,e,i){switch(e){case"I":return Vt(jt.week,n);case"Io":return i.ordinalNumber(n,{unit:"week"});default:return bt(e.length,n)}}validate(n,e){return e>=1&&e<=53}set(n,e,i){return Ra(NV(n,i))}incompatibleTokens=["y","Y","u","q","Q","M","L","w","d","D","e","c","t","T"]};var TX=[31,28,31,30,31,30,31,31,30,31,30,31],IX=[31,29,31,30,31,30,31,31,30,31,30,31],Ty=class extends Pe{priority=90;subPriority=1;parse(n,e,i){switch(e){case"d":return Vt(jt.date,n);case"do":return i.ordinalNumber(n,{unit:"date"});default:return bt(e.length,n)}}validate(n,e){let i=n.getFullYear(),r=by(i),o=n.getMonth();return r?e>=1&&e<=IX[o]:e>=1&&e<=TX[o]}set(n,e,i){return n.setDate(i),n.setHours(0,0,0,0),n}incompatibleTokens=["Y","R","q","Q","w","I","D","i","e","c","t","T"]};var Iy=class extends Pe{priority=90;subpriority=1;parse(n,e,i){switch(e){case"D":case"DD":return Vt(jt.dayOfYear,n);case"Do":return i.ordinalNumber(n,{unit:"date"});default:return bt(e.length,n)}}validate(n,e){let i=n.getFullYear();return by(i)?e>=1&&e<=366:e>=1&&e<=365}set(n,e,i){return n.setMonth(0,i),n.setHours(0,0,0,0),n}incompatibleTokens=["Y","R","q","Q","M","L","w","I","d","E","i","e","c","t","T"]};function vh(t,n,e){let i=Zo(),r=e?.weekStartsOn??e?.locale?.options?.weekStartsOn??i.weekStartsOn??i.locale?.options?.weekStartsOn??0,o=Ie(t,e?.in),a=o.getDay(),l=(n%7+7)%7,c=7-r,d=n<0||n>6?n-(a+c)%7:(l+c)%7-(a+c)%7;return dh(o,d,e)}var Ay=class extends Pe{priority=90;parse(n,e,i){switch(e){case"E":case"EE":case"EEE":return i.day(n,{width:"abbreviated",context:"formatting"})||i.day(n,{width:"short",context:"formatting"})||i.day(n,{width:"narrow",context:"formatting"});case"EEEEE":return i.day(n,{width:"narrow",context:"formatting"});case"EEEEEE":return i.day(n,{width:"short",context:"formatting"})||i.day(n,{width:"narrow",context:"formatting"});case"EEEE":default:return i.day(n,{width:"wide",context:"formatting"})||i.day(n,{width:"abbreviated",context:"formatting"})||i.day(n,{width:"short",context:"formatting"})||i.day(n,{width:"narrow",context:"formatting"})}}validate(n,e){return e>=0&&e<=6}set(n,e,i,r){return n=vh(n,i,r),n.setHours(0,0,0,0),n}incompatibleTokens=["D","i","e","c","t","T"]};var Oy=class extends Pe{priority=90;parse(n,e,i,r){let o=a=>{let s=Math.floor((a-1)/7)*7;return(a+r.weekStartsOn+6)%7+s};switch(e){case"e":case"ee":return di(bt(e.length,n),o);case"eo":return di(i.ordinalNumber(n,{unit:"day"}),o);case"eee":return i.day(n,{width:"abbreviated",context:"formatting"})||i.day(n,{width:"short",context:"formatting"})||i.day(n,{width:"narrow",context:"formatting"});case"eeeee":return i.day(n,{width:"narrow",context:"formatting"});case"eeeeee":return i.day(n,{width:"short",context:"formatting"})||i.day(n,{width:"narrow",context:"formatting"});case"eeee":default:return i.day(n,{width:"wide",context:"formatting"})||i.day(n,{width:"abbreviated",context:"formatting"})||i.day(n,{width:"short",context:"formatting"})||i.day(n,{width:"narrow",context:"formatting"})}}validate(n,e){return e>=0&&e<=6}set(n,e,i,r){return n=vh(n,i,r),n.setHours(0,0,0,0),n}incompatibleTokens=["y","R","u","q","Q","M","L","I","d","D","E","i","c","t","T"]};var Ry=class extends Pe{priority=90;parse(n,e,i,r){let o=a=>{let s=Math.floor((a-1)/7)*7;return(a+r.weekStartsOn+6)%7+s};switch(e){case"c":case"cc":return di(bt(e.length,n),o);case"co":return di(i.ordinalNumber(n,{unit:"day"}),o);case"ccc":return i.day(n,{width:"abbreviated",context:"standalone"})||i.day(n,{width:"short",context:"standalone"})||i.day(n,{width:"narrow",context:"standalone"});case"ccccc":return i.day(n,{width:"narrow",context:"standalone"});case"cccccc":return i.day(n,{width:"short",context:"standalone"})||i.day(n,{width:"narrow",context:"standalone"});case"cccc":default:return i.day(n,{width:"wide",context:"standalone"})||i.day(n,{width:"abbreviated",context:"standalone"})||i.day(n,{width:"short",context:"standalone"})||i.day(n,{width:"narrow",context:"standalone"})}}validate(n,e){return e>=0&&e<=6}set(n,e,i,r){return n=vh(n,i,r),n.setHours(0,0,0,0),n}incompatibleTokens=["y","R","u","q","Q","M","L","I","d","D","E","i","e","t","T"]};function LV(t,n,e){let i=Ie(t,e?.in),r=IV(i,e),o=n-r;return dh(i,o,e)}var Py=class extends Pe{priority=90;parse(n,e,i){let r=o=>o===0?7:o;switch(e){case"i":case"ii":return bt(e.length,n);case"io":return i.ordinalNumber(n,{unit:"day"});case"iii":return di(i.day(n,{width:"abbreviated",context:"formatting"})||i.day(n,{width:"short",context:"formatting"})||i.day(n,{width:"narrow",context:"formatting"}),r);case"iiiii":return di(i.day(n,{width:"narrow",context:"formatting"}),r);case"iiiiii":return di(i.day(n,{width:"short",context:"formatting"})||i.day(n,{width:"narrow",context:"formatting"}),r);case"iiii":default:return di(i.day(n,{width:"wide",context:"formatting"})||i.day(n,{width:"abbreviated",context:"formatting"})||i.day(n,{width:"short",context:"formatting"})||i.day(n,{width:"narrow",context:"formatting"}),r)}}validate(n,e){return e>=1&&e<=7}set(n,e,i){return n=LV(n,i),n.setHours(0,0,0,0),n}incompatibleTokens=["y","Y","u","q","Q","M","L","w","d","D","E","e","c","t","T"]};var Fy=class extends Pe{priority=80;parse(n,e,i){switch(e){case"a":case"aa":case"aaa":return i.dayPeriod(n,{width:"abbreviated",context:"formatting"})||i.dayPeriod(n,{width:"narrow",context:"formatting"});case"aaaaa":return i.dayPeriod(n,{width:"narrow",context:"formatting"});case"aaaa":default:return i.dayPeriod(n,{width:"wide",context:"formatting"})||i.dayPeriod(n,{width:"abbreviated",context:"formatting"})||i.dayPeriod(n,{width:"narrow",context:"formatting"})}}set(n,e,i){return n.setHours(bh(i),0,0,0),n}incompatibleTokens=["b","B","H","k","t","T"]};var Ny=class extends Pe{priority=80;parse(n,e,i){switch(e){case"b":case"bb":case"bbb":return i.dayPeriod(n,{width:"abbreviated",context:"formatting"})||i.dayPeriod(n,{width:"narrow",context:"formatting"});case"bbbbb":return i.dayPeriod(n,{width:"narrow",context:"formatting"});case"bbbb":default:return i.dayPeriod(n,{width:"wide",context:"formatting"})||i.dayPeriod(n,{width:"abbreviated",context:"formatting"})||i.dayPeriod(n,{width:"narrow",context:"formatting"})}}set(n,e,i){return n.setHours(bh(i),0,0,0),n}incompatibleTokens=["a","B","H","k","t","T"]};var Ly=class extends Pe{priority=80;parse(n,e,i){switch(e){case"B":case"BB":case"BBB":return i.dayPeriod(n,{width:"abbreviated",context:"formatting"})||i.dayPeriod(n,{width:"narrow",context:"formatting"});case"BBBBB":return i.dayPeriod(n,{width:"narrow",context:"formatting"});case"BBBB":default:return i.dayPeriod(n,{width:"wide",context:"formatting"})||i.dayPeriod(n,{width:"abbreviated",context:"formatting"})||i.dayPeriod(n,{width:"narrow",context:"formatting"})}}set(n,e,i){return n.setHours(bh(i),0,0,0),n}incompatibleTokens=["a","b","t","T"]};var Vy=class extends Pe{priority=70;parse(n,e,i){switch(e){case"h":return Vt(jt.hour12h,n);case"ho":return i.ordinalNumber(n,{unit:"hour"});default:return bt(e.length,n)}}validate(n,e){return e>=1&&e<=12}set(n,e,i){let r=n.getHours()>=12;return r&&i<12?n.setHours(i+12,0,0,0):!r&&i===12?n.setHours(0,0,0,0):n.setHours(i,0,0,0),n}incompatibleTokens=["H","K","k","t","T"]};var By=class extends Pe{priority=70;parse(n,e,i){switch(e){case"H":return Vt(jt.hour23h,n);case"Ho":return i.ordinalNumber(n,{unit:"hour"});default:return bt(e.length,n)}}validate(n,e){return e>=0&&e<=23}set(n,e,i){return n.setHours(i,0,0,0),n}incompatibleTokens=["a","b","h","K","k","t","T"]};var jy=class extends Pe{priority=70;parse(n,e,i){switch(e){case"K":return Vt(jt.hour11h,n);case"Ko":return i.ordinalNumber(n,{unit:"hour"});default:return bt(e.length,n)}}validate(n,e){return e>=0&&e<=11}set(n,e,i){return n.getHours()>=12&&i<12?n.setHours(i+12,0,0,0):n.setHours(i,0,0,0),n}incompatibleTokens=["h","H","k","t","T"]};var Hy=class extends Pe{priority=70;parse(n,e,i){switch(e){case"k":return Vt(jt.hour24h,n);case"ko":return i.ordinalNumber(n,{unit:"hour"});default:return bt(e.length,n)}}validate(n,e){return e>=1&&e<=24}set(n,e,i){let r=i<=24?i%24:i;return n.setHours(r,0,0,0),n}incompatibleTokens=["a","b","h","H","K","t","T"]};var zy=class extends Pe{priority=60;parse(n,e,i){switch(e){case"m":return Vt(jt.minute,n);case"mo":return i.ordinalNumber(n,{unit:"minute"});default:return bt(e.length,n)}}validate(n,e){return e>=0&&e<=59}set(n,e,i){return n.setMinutes(i,0,0),n}incompatibleTokens=["t","T"]};var Uy=class extends Pe{priority=50;parse(n,e,i){switch(e){case"s":return Vt(jt.second,n);case"so":return i.ordinalNumber(n,{unit:"second"});default:return bt(e.length,n)}}validate(n,e){return e>=0&&e<=59}set(n,e,i){return n.setSeconds(i,0),n}incompatibleTokens=["t","T"]};var $y=class extends Pe{priority=30;parse(n,e){let i=r=>Math.trunc(r*Math.pow(10,-e.length+3));return di(bt(e.length,n),i)}set(n,e,i){return n.setMilliseconds(i),n}incompatibleTokens=["t","T"]};var Wy=class extends Pe{priority=10;parse(n,e){switch(e){case"X":return ea(Jo.basicOptionalMinutes,n);case"XX":return ea(Jo.basic,n);case"XXXX":return ea(Jo.basicOptionalSeconds,n);case"XXXXX":return ea(Jo.extendedOptionalSeconds,n);case"XXX":default:return ea(Jo.extended,n)}}set(n,e,i){return e.timestampIsSet?n:at(n,n.getTime()-au(n)-i)}incompatibleTokens=["t","T","x"]};var Gy=class extends Pe{priority=10;parse(n,e){switch(e){case"x":return ea(Jo.basicOptionalMinutes,n);case"xx":return ea(Jo.basic,n);case"xxxx":return ea(Jo.basicOptionalSeconds,n);case"xxxxx":return ea(Jo.extendedOptionalSeconds,n);case"xxx":default:return ea(Jo.extended,n)}}set(n,e,i){return e.timestampIsSet?n:at(n,n.getTime()-au(n)-i)}incompatibleTokens=["t","T","X"]};var qy=class extends Pe{priority=40;parse(n){return gy(n)}set(n,e,i){return[at(n,i*1e3),{timestampIsSet:!0}]}incompatibleTokens="*"};var Yy=class extends Pe{priority=20;parse(n){return gy(n)}set(n,e,i){return[at(n,i),{timestampIsSet:!0}]}incompatibleTokens="*"};var VV={G:new fy,y:new vy,Y:new yy,R:new xy,u:new Cy,Q:new wy,q:new Dy,M:new Ey,L:new My,w:new Sy,I:new ky,d:new Ty,D:new Iy,E:new Ay,e:new Oy,c:new Ry,i:new Py,a:new Fy,b:new Ny,B:new Ly,h:new Vy,H:new By,K:new jy,k:new Hy,m:new zy,s:new Uy,S:new $y,X:new Wy,x:new Gy,t:new qy,T:new Yy};var AX=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,OX=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,RX=/^'([^]*?)'?$/,PX=/''/g,FX=/\S/,NX=/[a-zA-Z]/;function BV(t,n,e,i){let r=()=>at(i?.in||e,NaN),o=TV(),a=i?.locale??o.locale??su,s=i?.firstWeekContainsDate??i?.locale?.options?.firstWeekContainsDate??o.firstWeekContainsDate??o.locale?.options?.firstWeekContainsDate??1,l=i?.weekStartsOn??i?.locale?.options?.weekStartsOn??o.weekStartsOn??o.locale?.options?.weekStartsOn??0;if(!n)return t?r():Ie(e,i?.in);let c={firstWeekContainsDate:s,weekStartsOn:l,locale:a},d=[new py(i?.in,e)],p=n.match(OX).map(C=>{let D=C[0];if(D in ig){let F=ig[D];return F(C,a.formatLong)}return C}).join("").match(AX),_=[];for(let C of p){!i?.useAdditionalWeekYearTokens&&ly(C)&&ng(C,n,t),!i?.useAdditionalDayOfYearTokens&&sy(C)&&ng(C,n,t);let D=C[0],F=VV[D];if(F){let{incompatibleTokens:W}=F;if(Array.isArray(W)){let K=_.find(oe=>W.includes(oe.token)||oe.token===D);if(K)throw new RangeError(`The format string mustn't contain \`${K.fullToken}\` and \`${C}\` at the same time`)}else if(F.incompatibleTokens==="*"&&_.length>0)throw new RangeError(`The format string mustn't contain \`${C}\` and any other token at the same time`);_.push({token:D,fullToken:C});let Z=F.run(t,C,a.match,c);if(!Z)return r();d.push(Z.setter),t=Z.rest}else{if(D.match(NX))throw new RangeError("Format string contains an unescaped latin alphabet character `"+D+"`");if(C==="''"?C="'":D==="'"&&(C=LX(C)),t.indexOf(C)===0)t=t.slice(C.length);else return r()}}if(t.length>0&&FX.test(t))return r();let b=d.map(C=>C.priority).sort((C,D)=>D-C).filter((C,D,F)=>F.indexOf(C)===D).map(C=>d.filter(D=>D.priority===C).sort((D,F)=>F.subPriority-D.subPriority)).map(C=>C[0]),y=Ie(e,i?.in);if(isNaN(+y))return r();let w={};for(let C of b){if(!C.validate(y,c))return r();let D=C.set(y,w,c);Array.isArray(D)?(y=D[0],Object.assign(w,D[1])):y=D}return y}function LX(t){return t.match(RX)[1].replace(PX,"'")}function jV(t,n,e){let[i,r]=ry(e?.in,t,n);return+Jn(i,e)==+Jn(r,e)}function HS(t,n){let e=()=>at(n?.in,NaN),i=n?.additionalDigits??2,r=HX(t),o;if(r.date){let c=zX(r.date,i);o=UX(c.restDateString,c.year)}if(!o||isNaN(+o))return e();let a=+o,s=0,l;if(r.time&&(s=$X(r.time),isNaN(s)))return e();if(r.timezone){if(l=WX(r.timezone),isNaN(l))return e()}else{let c=new Date(a+s),d=Ie(0,n?.in);return d.setFullYear(c.getUTCFullYear(),c.getUTCMonth(),c.getUTCDate()),d.setHours(c.getUTCHours(),c.getUTCMinutes(),c.getUTCSeconds(),c.getUTCMilliseconds()),d}return Ie(a+s+l,n?.in)}var Qy={dateTimeDelimiter:/[T ]/,timeZoneDelimiter:/[Z ]/i,timezone:/([Z+-].*)$/},VX=/^-?(?:(\d{3})|(\d{2})(?:-?(\d{2}))?|W(\d{2})(?:-?(\d{1}))?|)$/,BX=/^(\d{2}(?:[.,]\d*)?)(?::?(\d{2}(?:[.,]\d*)?))?(?::?(\d{2}(?:[.,]\d*)?))?$/,jX=/^([+-])(\d{2})(?::?(\d{2}))?$/;function HX(t){let n={},e=t.split(Qy.dateTimeDelimiter),i;if(e.length>2)return n;if(/:/.test(e[0])?i=e[0]:(n.date=e[0],i=e[1],Qy.timeZoneDelimiter.test(n.date)&&(n.date=t.split(Qy.timeZoneDelimiter)[0],i=t.substr(n.date.length,t.length))),i){let r=Qy.timezone.exec(i);r?(n.time=i.replace(r[1],""),n.timezone=r[1]):n.time=i}return n}function zX(t,n){let e=new RegExp("^(?:(\\d{4}|[+-]\\d{"+(4+n)+"})|(\\d{2}|[+-]\\d{"+(2+n)+"})$)"),i=t.match(e);if(!i)return{year:NaN,restDateString:""};let r=i[1]?parseInt(i[1]):null,o=i[2]?parseInt(i[2]):null;return{year:o===null?r:o*100,restDateString:t.slice((i[1]||i[2]).length)}}function UX(t,n){if(n===null)return new Date(NaN);let e=t.match(VX);if(!e)return new Date(NaN);let i=!!e[4],r=rg(e[1]),o=rg(e[2])-1,a=rg(e[3]),s=rg(e[4]),l=rg(e[5])-1;if(i)return KX(n,s,l)?GX(n,s,l):new Date(NaN);{let c=new Date(0);return!YX(n,o,a)||!QX(n,r)?new Date(NaN):(c.setUTCFullYear(n,o,Math.max(r,a)),c)}}function rg(t){return t?parseInt(t):1}function $X(t){let n=t.match(BX);if(!n)return NaN;let e=jS(n[1]),i=jS(n[2]),r=jS(n[3]);return ZX(e,i,r)?e*ou+i*ru+r*1e3:NaN}function jS(t){return t&&parseFloat(t.replace(",","."))||0}function WX(t){if(t==="Z")return 0;let n=t.match(jX);if(!n)return 0;let e=n[1]==="+"?-1:1,i=parseInt(n[2]),r=n[3]&&parseInt(n[3])||0;return XX(i,r)?e*(i*ou+r*ru):NaN}function GX(t,n,e){let i=new Date(0);i.setUTCFullYear(t,0,4);let r=i.getUTCDay()||7,o=(n-1)*7+e+1-r;return i.setUTCDate(i.getUTCDate()+o),i}var qX=[31,null,31,30,31,30,31,31,30,31,30,31];function HV(t){return t%400===0||t%4===0&&t%100!==0}function YX(t,n,e){return n>=0&&n<=11&&e>=1&&e<=(qX[n]||(HV(t)?29:28))}function QX(t,n){return n>=1&&n<=(HV(t)?366:365)}function KX(t,n,e){return n>=1&&n<=53&&e>=0&&e<=6}function ZX(t,n,e){return t===24?n===0&&e===0:e>=0&&e<60&&n>=0&&n<60&&t>=0&&t<25}function XX(t,n){return n>=0&&n<=59}function zV(t,n,e){let i=Ie(t,e?.in),r=i.getFullYear(),o=i.getDate(),a=at(e?.in||t,0);a.setFullYear(r,n,15),a.setHours(0,0,0,0);let s=cy(a);return i.setMonth(n,Math.min(o,s)),i}function UV(t,n,e){let i=Ie(t,e?.in);return isNaN(+i)?at(e?.in||t,NaN):(n.year!=null&&i.setFullYear(n.year),n.month!=null&&(i=zV(i,n.month)),n.date!=null&&i.setDate(n.date),n.hours!=null&&i.setHours(n.hours),n.minutes!=null&&i.setMinutes(n.minutes),n.seconds!=null&&i.setSeconds(n.seconds),n.milliseconds!=null&&i.setMilliseconds(n.milliseconds),i)}function zS(t,n){let e=Array(t);for(let i=0;i{class t extends Bi{constructor(){super();let e=u(xs,{optional:!0});this.setLocale(e)}getYear(e){return RV(e)}getMonth(e){return AV(e)}getDate(e){return SV(e)}getDayOfWeek(e){return kV(e)}getMonthNames(e){let i=JX[e];return zS(12,r=>this.format(new Date(2017,r,1),i))}getDateNames(){let e=typeof Intl<"u"?new Intl.DateTimeFormat(this.locale.code,{day:"numeric",timeZone:"utc"}):null;return zS(31,i=>{if(e){let r=new Date;return r.setUTCFullYear(2017,0,i+1),r.setUTCHours(0,0,0,0),e.format(r).replace(/[\u200e\u200f]/g,"")}return i+""})}getDayOfWeekNames(e){let i=eJ[e];return zS(7,r=>this.format(new Date(2017,0,r+1),i))}getYearName(e){return this.format(e,"y")}getFirstDayOfWeek(){return this.locale.options?.weekStartsOn??0}getNumDaysInMonth(e){return cy(e)}clone(e){return new Date(e.getTime())}createDate(e,i,r){let o=new Date;return o.setFullYear(e,i,r),o.setHours(0,0,0,0),o.getMonth()!=i,o}today(){return new Date}parse(e,i){return this._parse(e,i)}format(e,i){if(!this.isValid(e))throw Error("DateFnsAdapter: Cannot format invalid date.");return EV(e,i,{locale:this.locale})}addCalendarYears(e,i){return uV(e,i)}addCalendarMonths(e,i){return uh(e,i)}addCalendarDays(e,i){return dh(e,i)}toIso8601(e){return MV(e,{representation:"date"})}deserialize(e){if(typeof e=="string"){if(!e)return null;let i=HS(e);if(this.isValid(i))return i}return super.deserialize(e)}isDateInstance(e){return oy(e)}isValid(e){return mh(e)}invalid(){return new Date(NaN)}setTime(e,i,r,o){return UV(this.clone(e),{hours:i,minutes:r,seconds:o,milliseconds:0})}getHours(e){return dy(e)}getMinutes(e){return uy(e)}getSeconds(e){return OV(e)}parseTime(e,i){return this._parse(e,i,!1)}addSeconds(e,i){return dV(e,i)}_parse(e,i,r=!0){if(typeof e=="string"&&e.length>0){if(r){let a=HS(e);if(this.isValid(a))return a}let o=Array.isArray(i)?i:[i];if(!i.length)throw Error("Formats array must not be empty.");for(let a of o){let s=BV(e,a,new Date,{locale:this.locale});if(this.isValid(s))return s}return this.invalid()}else{if(typeof e=="number")return new Date(e);if(e instanceof Date)return this.clone(e)}return null}static \u0275fac=function(i){return new(i||t)};static \u0275prov=R({token:t,factory:t.\u0275fac})}return t})(),tJ={parse:{dateInput:"P",timeInput:"p"},display:{dateInput:"P",timeInput:"p",monthYearLabel:"LLL uuuu",dateA11yLabel:"PP",monthYearA11yLabel:"LLLL uuuu",timeOptionLabel:"p"}};function $V(t=tJ){return[{provide:Bi,useClass:US,deps:[xs]},{provide:Cs,useValue:t}]}var iJ=["*"];var nJ=[[["","mat-card-avatar",""],["","matCardAvatar",""]],[["mat-card-title"],["mat-card-subtitle"],["","mat-card-title",""],["","mat-card-subtitle",""],["","matCardTitle",""],["","matCardSubtitle",""]],"*"],rJ=["[mat-card-avatar], [matCardAvatar]",`mat-card-title, mat-card-subtitle, + `)}`:"",this.name="UnsubscriptionError",this.errors=e});function pd(t,n){if(t){let e=t.indexOf(n);0<=e&&t.splice(e,1)}}var ke=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 o of e)o.remove(this);else e.remove(this);let{initialTeardown:i}=this;if(Xe(i))try{i()}catch(o){n=o instanceof j_?o.errors:[o]}let{_finalizers:r}=this;if(r){this._finalizers=null;for(let o of r)try{IA(o)}catch(a){n=n??[],a instanceof j_?n=[...n,...a.errors]:n.push(a)}}if(n)throw new j_(n)}}add(n){var e;if(n&&n!==this)if(this.closed)IA(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)&&pd(e,n)}remove(n){let{_finalizers:e}=this;e&&pd(e,n),n instanceof t&&n._removeParent(this)}};ke.EMPTY=(()=>{let t=new ke;return t.closed=!0,t})();var Hw=ke.EMPTY;function H_(t){return t instanceof ke||t&&"closed"in t&&Xe(t.remove)&&Xe(t.add)&&Xe(t.unsubscribe)}function IA(t){Xe(t)?t():t.unsubscribe()}var Ia={onUnhandledError:null,onStoppedNotification:null,Promise:void 0,useDeprecatedSynchronousErrorHandling:!1,useDeprecatedNextContext:!1};var zu={setTimeout(t,n,...e){let{delegate:i}=zu;return i?.setTimeout?i.setTimeout(t,n,...e):setTimeout(t,n,...e)},clearTimeout(t){let{delegate:n}=zu;return(n?.clearTimeout||clearTimeout)(t)},delegate:void 0};function z_(t){zu.setTimeout(()=>{let{onUnhandledError:n}=Ia;if(n)n(t);else throw t})}function fd(){}var AA=zw("C",void 0,void 0);function OA(t){return zw("E",void 0,t)}function RA(t){return zw("N",t,void 0)}function zw(t,n,e){return{kind:t,value:n,error:e}}var gd=null;function Uu(t){if(Ia.useDeprecatedSynchronousErrorHandling){let n=!gd;if(n&&(gd={errorThrown:!1,error:null}),t(),n){let{errorThrown:e,error:i}=gd;if(gd=null,e)throw i}}else t()}function PA(t){Ia.useDeprecatedSynchronousErrorHandling&&gd&&(gd.errorThrown=!0,gd.error=t)}var _d=class extends ke{constructor(n){super(),this.isStopped=!1,n?(this.destination=n,H_(n)&&n.add(this)):this.destination=qU}static create(n,e,i){return new il(n,e,i)}next(n){this.isStopped?$w(RA(n),this):this._next(n)}error(n){this.isStopped?$w(OA(n),this):(this.isStopped=!0,this._error(n))}complete(){this.isStopped?$w(AA,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()}}},WU=Function.prototype.bind;function Uw(t,n){return WU.call(t,n)}var Ww=class{constructor(n){this.partialObserver=n}next(n){let{partialObserver:e}=this;if(e.next)try{e.next(n)}catch(i){U_(i)}}error(n){let{partialObserver:e}=this;if(e.error)try{e.error(n)}catch(i){U_(i)}else U_(n)}complete(){let{partialObserver:n}=this;if(n.complete)try{n.complete()}catch(e){U_(e)}}},il=class extends _d{constructor(n,e,i){super();let r;if(Xe(n)||!n)r={next:n??void 0,error:e??void 0,complete:i??void 0};else{let o;this&&Ia.useDeprecatedNextContext?(o=Object.create(n),o.unsubscribe=()=>this.unsubscribe(),r={next:n.next&&Uw(n.next,o),error:n.error&&Uw(n.error,o),complete:n.complete&&Uw(n.complete,o)}):r=n}this.destination=new Ww(r)}};function U_(t){Ia.useDeprecatedSynchronousErrorHandling?PA(t):z_(t)}function GU(t){throw t}function $w(t,n){let{onStoppedNotification:e}=Ia;e&&zu.setTimeout(()=>e(t,n))}var qU={closed:!0,next:fd,error:GU,complete:fd};var $u=typeof Symbol=="function"&&Symbol.observable||"@@observable";function Lr(t){return t}function Gw(...t){return qw(t)}function qw(t){return t.length===0?Lr:t.length===1?t[0]:function(e){return t.reduce((i,r)=>r(i),e)}}var Ne=(()=>{class t{constructor(e){e&&(this._subscribe=e)}lift(e){let i=new t;return i.source=this,i.operator=e,i}subscribe(e,i,r){let o=QU(e)?e:new il(e,i,r);return Uu(()=>{let{operator:a,source:s}=this;o.add(a?a.call(o,s):s?this._subscribe(o):this._trySubscribe(o))}),o}_trySubscribe(e){try{return this._subscribe(e)}catch(i){e.error(i)}}forEach(e,i){return i=FA(i),new i((r,o)=>{let a=new il({next:s=>{try{e(s)}catch(l){o(l),a.unsubscribe()}},error:o,complete:r});this.subscribe(a)})}_subscribe(e){var i;return(i=this.source)===null||i===void 0?void 0:i.subscribe(e)}[$u](){return this}pipe(...e){return qw(e)(this)}toPromise(e){return e=FA(e),new e((i,r)=>{let o;this.subscribe(a=>o=a,a=>r(a),()=>i(o))})}}return t.create=n=>new t(n),t})();function FA(t){var n;return(n=t??Ia.Promise)!==null&&n!==void 0?n:Promise}function YU(t){return t&&Xe(t.next)&&Xe(t.error)&&Xe(t.complete)}function QU(t){return t&&t instanceof _d||YU(t)&&H_(t)}function Yw(t){return Xe(t?.lift)}function Ke(t){return n=>{if(Yw(n))return n.lift(function(e){try{return t(e,this)}catch(i){this.error(i)}});throw new TypeError("Unable to lift unknown Observable type")}}function $e(t,n,e,i,r){return new Qw(t,n,e,i,r)}var Qw=class extends _d{constructor(n,e,i,r,o,a){super(n),this.onFinalize=o,this.shouldUnsubscribe=a,this._next=e?function(s){try{e(s)}catch(l){n.error(l)}}:super._next,this._error=r?function(s){try{r(s)}catch(l){n.error(l)}finally{this.unsubscribe()}}:super._error,this._complete=i?function(){try{i()}catch(s){n.error(s)}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 Wu(){return Ke((t,n)=>{let e=null;t._refCount++;let i=$e(n,void 0,void 0,void 0,()=>{if(!t||t._refCount<=0||0<--t._refCount){e=null;return}let r=t._connection,o=e;e=null,r&&(!o||r===o)&&r.unsubscribe(),n.unsubscribe()});t.subscribe(i),i.closed||(e=t.connect())})}var Ql=class extends Ne{constructor(n,e){super(),this.source=n,this.subjectFactory=e,this._subject=null,this._refCount=0,this._connection=null,Yw(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 ke;let e=this.getSubject();n.add(this.source.subscribe($e(e,void 0,()=>{this._teardown(),e.complete()},i=>{this._teardown(),e.error(i)},()=>this._teardown()))),n.closed&&(this._connection=null,n=ke.EMPTY)}return n}refCount(){return Wu()(this)}};var Gu={schedule(t){let n=requestAnimationFrame,e=cancelAnimationFrame,{delegate:i}=Gu;i&&(n=i.requestAnimationFrame,e=i.cancelAnimationFrame);let r=n(o=>{e=void 0,t(o)});return new ke(()=>e?.(r))},requestAnimationFrame(...t){let{delegate:n}=Gu;return(n?.requestAnimationFrame||requestAnimationFrame)(...t)},cancelAnimationFrame(...t){let{delegate:n}=Gu;return(n?.cancelAnimationFrame||cancelAnimationFrame)(...t)},delegate:void 0};var NA=Yl(t=>function(){t(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"});var z=(()=>{class t extends Ne{constructor(){super(),this.closed=!1,this.currentObservers=null,this.observers=[],this.isStopped=!1,this.hasError=!1,this.thrownError=null}lift(e){let i=new $_(this,this);return i.operator=e,i}_throwIfClosed(){if(this.closed)throw new NA}next(e){Uu(()=>{if(this._throwIfClosed(),!this.isStopped){this.currentObservers||(this.currentObservers=Array.from(this.observers));for(let i of this.currentObservers)i.next(e)}})}error(e){Uu(()=>{if(this._throwIfClosed(),!this.isStopped){this.hasError=this.isStopped=!0,this.thrownError=e;let{observers:i}=this;for(;i.length;)i.shift().error(e)}})}complete(){Uu(()=>{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:i,isStopped:r,observers:o}=this;return i||r?Hw:(this.currentObservers=null,o.push(e),new ke(()=>{this.currentObservers=null,pd(o,e)}))}_checkFinalizedStatuses(e){let{hasError:i,thrownError:r,isStopped:o}=this;i?e.error(r):o&&e.complete()}asObservable(){let e=new Ne;return e.source=this,e}}return t.create=(n,e)=>new $_(n,e),t})(),$_=class extends z{constructor(n,e){super(),this.destination=n,this.source=e}next(n){var e,i;(i=(e=this.destination)===null||e===void 0?void 0:e.next)===null||i===void 0||i.call(e,n)}error(n){var e,i;(i=(e=this.destination)===null||e===void 0?void 0:e.error)===null||i===void 0||i.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,i;return(i=(e=this.source)===null||e===void 0?void 0:e.subscribe(n))!==null&&i!==void 0?i:Hw}};var rt=class extends z{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:i}=this;if(n)throw e;return this._throwIfClosed(),i}next(n){super.next(this._value=n)}};var Cp={now(){return(Cp.delegate||Date).now()},delegate:void 0};var as=class extends z{constructor(n=1/0,e=1/0,i=Cp){super(),this._bufferSize=n,this._windowTime=e,this._timestampProvider=i,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:i,_infiniteTimeWindow:r,_timestampProvider:o,_windowTime:a}=this;e||(i.push(n),!r&&i.push(o.now()+a)),this._trimBuffer(),super.next(n)}_subscribe(n){this._throwIfClosed(),this._trimBuffer();let e=this._innerSubscribe(n),{_infiniteTimeWindow:i,_buffer:r}=this,o=r.slice();for(let a=0;aLA(n)&&t()),n},clearImmediate(t){LA(t)}};var{setImmediate:ZU,clearImmediate:XU}=VA,Dp={setImmediate(...t){let{delegate:n}=Dp;return(n?.setImmediate||ZU)(...t)},clearImmediate(t){let{delegate:n}=Dp;return(n?.clearImmediate||XU)(t)},delegate:void 0};var G_=class extends Kl{constructor(n,e){super(n,e),this.scheduler=n,this.work=e}requestAsyncId(n,e,i=0){return i!==null&&i>0?super.requestAsyncId(n,e,i):(n.actions.push(this),n._scheduled||(n._scheduled=Dp.setImmediate(n.flush.bind(n,void 0))))}recycleAsyncId(n,e,i=0){var r;if(i!=null?i>0:this.delay>0)return super.recycleAsyncId(n,e,i);let{actions:o}=n;e!=null&&((r=o[o.length-1])===null||r===void 0?void 0:r.id)!==e&&(Dp.clearImmediate(e),n._scheduled===e&&(n._scheduled=void 0))}};var qu=class t{constructor(n,e=t.now){this.schedulerActionCtor=n,this.now=e}schedule(n,e=0,i){return new this.schedulerActionCtor(this,n).schedule(i,e)}};qu.now=Cp.now;var Zl=class extends qu{constructor(n,e=qu.now){super(n,e),this.actions=[],this._active=!1}flush(n){let{actions:e}=this;if(this._active){e.push(n);return}let i;this._active=!0;do if(i=n.execute(n.state,n.delay))break;while(n=e.shift());if(this._active=!1,i){for(;n=e.shift();)n.unsubscribe();throw i}}};var q_=class extends Zl{flush(n){this._active=!0;let e=this._scheduled;this._scheduled=void 0;let{actions:i}=this,r;n=n||i.shift();do if(r=n.execute(n.state,n.delay))break;while((n=i[0])&&n.id===e&&i.shift());if(this._active=!1,r){for(;(n=i[0])&&n.id===e&&i.shift();)n.unsubscribe();throw r}}};var Y_=new q_(G_);var nl=new Zl(Kl),BA=nl;var Q_=class extends Kl{constructor(n,e){super(n,e),this.scheduler=n,this.work=e}requestAsyncId(n,e,i=0){return i!==null&&i>0?super.requestAsyncId(n,e,i):(n.actions.push(this),n._scheduled||(n._scheduled=Gu.requestAnimationFrame(()=>n.flush(void 0))))}recycleAsyncId(n,e,i=0){var r;if(i!=null?i>0:this.delay>0)return super.recycleAsyncId(n,e,i);let{actions:o}=n;e!=null&&e===n._scheduled&&((r=o[o.length-1])===null||r===void 0?void 0:r.id)!==e&&(Gu.cancelAnimationFrame(e),n._scheduled=void 0)}};var K_=class extends Zl{flush(n){this._active=!0;let e;n?e=n.id:(e=this._scheduled,this._scheduled=void 0);let{actions:i}=this,r;n=n||i.shift();do if(r=n.execute(n.state,n.delay))break;while((n=i[0])&&n.id===e&&i.shift());if(this._active=!1,r){for(;(n=i[0])&&n.id===e&&i.shift();)n.unsubscribe();throw r}}};var Z_=new K_(Q_);var zi=new Ne(t=>t.complete());function X_(t){return t&&Xe(t.schedule)}function Xw(t){return t[t.length-1]}function J_(t){return Xe(Xw(t))?t.pop():void 0}function ss(t){return X_(Xw(t))?t.pop():void 0}function jA(t,n){return typeof Xw(t)=="number"?t.pop():n}function zA(t,n,e,i){function r(o){return o instanceof e?o:new e(function(a){a(o)})}return new(e||(e=Promise))(function(o,a){function s(d){try{c(i.next(d))}catch(p){a(p)}}function l(d){try{c(i.throw(d))}catch(p){a(p)}}function c(d){d.done?o(d.value):r(d.value).then(s,l)}c((i=i.apply(t,n||[])).next())})}function HA(t){var n=typeof Symbol=="function"&&Symbol.iterator,e=n&&t[n],i=0;if(e)return e.call(t);if(t&&typeof t.length=="number")return{next:function(){return t&&i>=t.length&&(t=void 0),{value:t&&t[i++],done:!t}}};throw new TypeError(n?"Object is not iterable.":"Symbol.iterator is not defined.")}function bd(t){return this instanceof bd?(this.v=t,this):new bd(t)}function UA(t,n,e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var i=e.apply(t,n||[]),r,o=[];return r=Object.create((typeof AsyncIterator=="function"?AsyncIterator:Object).prototype),s("next"),s("throw"),s("return",a),r[Symbol.asyncIterator]=function(){return this},r;function a(b){return function(y){return Promise.resolve(y).then(b,p)}}function s(b,y){i[b]&&(r[b]=function(w){return new Promise(function(C,D){o.push([b,w,C,D])>1||l(b,w)})},y&&(r[b]=y(r[b])))}function l(b,y){try{c(i[b](y))}catch(w){_(o[0][3],w)}}function c(b){b.value instanceof bd?Promise.resolve(b.value.v).then(d,p):_(o[0][2],b)}function d(b){l("next",b)}function p(b){l("throw",b)}function _(b,y){b(y),o.shift(),o.length&&l(o[0][0],o[0][1])}}function $A(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 HA=="function"?HA(t):t[Symbol.iterator](),e={},i("next"),i("throw"),i("return"),e[Symbol.asyncIterator]=function(){return this},e);function i(o){e[o]=t[o]&&function(a){return new Promise(function(s,l){a=t[o](a),r(s,l,a.done,a.value)})}}function r(o,a,s,l){Promise.resolve(l).then(function(c){o({value:c,done:s})},a)}}var Yu=t=>t&&typeof t.length=="number"&&typeof t!="function";function eb(t){return Xe(t?.then)}function tb(t){return Xe(t[$u])}function ib(t){return Symbol.asyncIterator&&Xe(t?.[Symbol.asyncIterator])}function nb(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 JU(){return typeof Symbol!="function"||!Symbol.iterator?"@@iterator":Symbol.iterator}var rb=JU();function ob(t){return Xe(t?.[rb])}function ab(t){return UA(this,arguments,function*(){let e=t.getReader();try{for(;;){let{value:i,done:r}=yield bd(e.read());if(r)return yield bd(void 0);yield yield bd(i)}}finally{e.releaseLock()}})}function sb(t){return Xe(t?.getReader)}function Ut(t){if(t instanceof Ne)return t;if(t!=null){if(tb(t))return e$(t);if(Yu(t))return t$(t);if(eb(t))return i$(t);if(ib(t))return WA(t);if(ob(t))return n$(t);if(sb(t))return r$(t)}throw nb(t)}function e$(t){return new Ne(n=>{let e=t[$u]();if(Xe(e.subscribe))return e.subscribe(n);throw new TypeError("Provided object does not correctly implement Symbol.observable")})}function t$(t){return new Ne(n=>{for(let e=0;e{t.then(e=>{n.closed||(n.next(e),n.complete())},e=>n.error(e)).then(null,z_)})}function n$(t){return new Ne(n=>{for(let e of t)if(n.next(e),n.closed)return;n.complete()})}function WA(t){return new Ne(n=>{o$(t,n).catch(e=>n.error(e))})}function r$(t){return WA(ab(t))}function o$(t,n){var e,i,r,o;return zA(this,void 0,void 0,function*(){try{for(e=$A(t);i=yield e.next(),!i.done;){let a=i.value;if(n.next(a),n.closed)return}}catch(a){r={error:a}}finally{try{i&&!i.done&&(o=e.return)&&(yield o.call(e))}finally{if(r)throw r.error}}n.complete()})}function yr(t,n,e,i=0,r=!1){let o=n.schedule(function(){e(),r?t.add(this.schedule(null,i)):this.unsubscribe()},i);if(t.add(o),!r)return o}function lb(t,n=0){return Ke((e,i)=>{e.subscribe($e(i,r=>yr(i,t,()=>i.next(r),n),()=>yr(i,t,()=>i.complete(),n),r=>yr(i,t,()=>i.error(r),n)))})}function cb(t,n=0){return Ke((e,i)=>{i.add(t.schedule(()=>e.subscribe(i),n))})}function GA(t,n){return Ut(t).pipe(cb(n),lb(n))}function qA(t,n){return Ut(t).pipe(cb(n),lb(n))}function YA(t,n){return new Ne(e=>{let i=0;return n.schedule(function(){i===t.length?e.complete():(e.next(t[i++]),e.closed||this.schedule())})})}function QA(t,n){return new Ne(e=>{let i;return yr(e,n,()=>{i=t[rb](),yr(e,n,()=>{let r,o;try{({value:r,done:o}=i.next())}catch(a){e.error(a);return}o?e.complete():e.next(r)},0,!0)}),()=>Xe(i?.return)&&i.return()})}function db(t,n){if(!t)throw new Error("Iterable cannot be null");return new Ne(e=>{yr(e,n,()=>{let i=t[Symbol.asyncIterator]();yr(e,n,()=>{i.next().then(r=>{r.done?e.complete():e.next(r.value)})},0,!0)})})}function KA(t,n){return db(ab(t),n)}function ZA(t,n){if(t!=null){if(tb(t))return GA(t,n);if(Yu(t))return YA(t,n);if(eb(t))return qA(t,n);if(ib(t))return db(t,n);if(ob(t))return QA(t,n);if(sb(t))return KA(t,n)}throw nb(t)}function $t(t,n){return n?ZA(t,n):Ut(t)}function Q(...t){let n=ss(t);return $t(t,n)}function er(t,n){let e=Xe(t)?t:()=>t,i=r=>r.error(e());return new Ne(n?r=>n.schedule(i,0,r):i)}function qi(t){return!!t&&(t instanceof Ne||Xe(t.lift)&&Xe(t.subscribe))}var rl=Yl(t=>function(){t(this),this.name="EmptyError",this.message="no elements in sequence"});function ub(t){return t instanceof Date&&!isNaN(t)}var a$=Yl(t=>function(e=null){t(this),this.message="Timeout has occurred",this.name="TimeoutError",this.info=e});function Jw(t,n){let{first:e,each:i,with:r=s$,scheduler:o=n??nl,meta:a=null}=ub(t)?{first:t}:typeof t=="number"?{each:t}:t;if(e==null&&i==null)throw new TypeError("No timeout provided.");return Ke((s,l)=>{let c,d,p=null,_=0,b=y=>{d=yr(l,o,()=>{try{c.unsubscribe(),Ut(r({meta:a,lastValue:p,seen:_})).subscribe(l)}catch(w){l.error(w)}},y)};c=s.subscribe($e(l,y=>{d?.unsubscribe(),_++,l.next(p=y),i>0&&b(i)},void 0,void 0,()=>{d?.closed||d?.unsubscribe(),p=null})),!_&&b(e!=null?typeof e=="number"?e:+e-o.now():i)})}function s$(t){throw new a$(t)}function se(t,n){return Ke((e,i)=>{let r=0;e.subscribe($e(i,o=>{i.next(t.call(n,o,r++))}))})}var{isArray:l$}=Array;function c$(t,n){return l$(n)?t(...n):t(n)}function Qu(t){return se(n=>c$(t,n))}var{isArray:d$}=Array,{getPrototypeOf:u$,prototype:m$,keys:h$}=Object;function mb(t){if(t.length===1){let n=t[0];if(d$(n))return{args:n,keys:null};if(p$(n)){let e=h$(n);return{args:e.map(i=>n[i]),keys:e}}}return{args:t,keys:null}}function p$(t){return t&&typeof t=="object"&&u$(t)===m$}function hb(t,n){return t.reduce((e,i,r)=>(e[i]=n[r],e),{})}function yo(...t){let n=ss(t),e=J_(t),{args:i,keys:r}=mb(t);if(i.length===0)return $t([],n);let o=new Ne(f$(i,n,r?a=>hb(r,a):Lr));return e?o.pipe(Qu(e)):o}function f$(t,n,e=Lr){return i=>{XA(n,()=>{let{length:r}=t,o=new Array(r),a=r,s=r;for(let l=0;l{let c=$t(t[l],n),d=!1;c.subscribe($e(i,p=>{o[l]=p,d||(d=!0,s--),s||i.next(e(o.slice()))},()=>{--a||i.complete()}))},i)},i)}}function XA(t,n,e){t?yr(e,t,n):n()}function JA(t,n,e,i,r,o,a,s){let l=[],c=0,d=0,p=!1,_=()=>{p&&!l.length&&!c&&n.complete()},b=w=>c{o&&n.next(w),c++;let C=!1;Ut(e(w,d++)).subscribe($e(n,D=>{r?.(D),o?b(D):n.next(D)},()=>{C=!0},void 0,()=>{if(C)try{for(c--;l.length&&cy(D)):y(D)}_()}catch(D){n.error(D)}}))};return t.subscribe($e(n,b,()=>{p=!0,_()})),()=>{s?.()}}function Vt(t,n,e=1/0){return Xe(n)?Vt((i,r)=>se((o,a)=>n(i,o,r,a))(Ut(t(i,r))),e):(typeof n=="number"&&(e=n),Ke((i,r)=>JA(i,r,t,e)))}function xo(t=1/0){return Vt(Lr,t)}function eO(){return xo(1)}function Co(...t){return eO()($t(t,ss(t)))}function Fn(t){return new Ne(n=>{Ut(t()).subscribe(n)})}function ls(...t){let n=J_(t),{args:e,keys:i}=mb(t),r=new Ne(o=>{let{length:a}=e;if(!a){o.complete();return}let s=new Array(a),l=a,c=a;for(let d=0;d{p||(p=!0,c--),s[d]=_},()=>l--,void 0,()=>{(!l||!p)&&(c||o.next(i?hb(i,s):s),o.complete())}))}});return n?r.pipe(Qu(n)):r}var g$=["addListener","removeListener"],_$=["addEventListener","removeEventListener"],b$=["on","off"];function ol(t,n,e,i){if(Xe(e)&&(i=e,e=void 0),i)return ol(t,n,e).pipe(Qu(i));let[r,o]=x$(t)?_$.map(a=>s=>t[a](n,s,e)):v$(t)?g$.map(tO(t,n)):y$(t)?b$.map(tO(t,n)):[];if(!r&&Yu(t))return Vt(a=>ol(a,n,e))(Ut(t));if(!r)throw new TypeError("Invalid event target");return new Ne(a=>{let s=(...l)=>a.next(1o(s)})}function tO(t,n){return e=>i=>t[e](n,i)}function v$(t){return Xe(t.addListener)&&Xe(t.removeListener)}function y$(t){return Xe(t.on)&&Xe(t.off)}function x$(t){return Xe(t.addEventListener)&&Xe(t.removeEventListener)}function cs(t=0,n,e=BA){let i=-1;return n!=null&&(X_(n)?e=n:i=n),new Ne(r=>{let o=ub(t)?+t-e.now():t;o<0&&(o=0);let a=0;return e.schedule(function(){r.closed||(r.next(a++),0<=i?this.schedule(void 0,i):r.complete())},o)})}function it(...t){let n=ss(t),e=jA(t,1/0),i=t;return i.length?i.length===1?Ut(i[0]):xo(e)($t(i,n)):zi}var{isArray:C$}=Array;function iO(t){return t.length===1&&C$(t[0])?t[0]:t}function ce(t,n){return Ke((e,i)=>{let r=0;e.subscribe($e(i,o=>t.call(n,o,r++)&&i.next(o)))})}function Ku(...t){return t=iO(t),t.length===1?Ut(t[0]):new Ne(w$(t))}function w$(t){return n=>{let e=[];for(let i=0;e&&!n.closed&&i{if(e){for(let o=0;o{let i=!1,r=null,o=null,a=!1,s=()=>{if(o?.unsubscribe(),o=null,i){i=!1;let c=r;r=null,e.next(c)}a&&e.complete()},l=()=>{o=null,a&&e.complete()};n.subscribe($e(e,c=>{i=!0,r=c,o||Ut(t(c)).subscribe(o=$e(e,s,l))},()=>{a=!0,(!i||!o||o.closed)&&e.complete()}))})}function Xl(t,n=nl){return nO(()=>cs(t,n))}function ei(t){return Ke((n,e)=>{let i=null,r=!1,o;i=n.subscribe($e(e,void 0,void 0,a=>{o=Ut(t(a,ei(t)(n))),i?(i.unsubscribe(),i=null,o.subscribe(e)):r=!0})),r&&(i.unsubscribe(),i=null,o.subscribe(e))})}function rO(t,n,e,i,r){return(o,a)=>{let s=e,l=n,c=0;o.subscribe($e(a,d=>{let p=c++;l=s?t(l,d,p):(s=!0,d),i&&a.next(l)},r&&(()=>{s&&a.next(l),a.complete()})))}}function jo(t,n){return Xe(n)?Vt(t,n,1):Vt(t,1)}function Dt(t,n=nl){return Ke((e,i)=>{let r=null,o=null,a=null,s=()=>{if(r){r.unsubscribe(),r=null;let c=o;o=null,i.next(c)}};function l(){let c=a+t,d=n.now();if(d{o=c,a=n.now(),r||(r=n.schedule(l,t),i.add(r))},()=>{s(),i.complete()},void 0,()=>{o=r=null}))})}function Jl(t){return Ke((n,e)=>{let i=!1;n.subscribe($e(e,r=>{i=!0,e.next(r)},()=>{i||e.next(t),e.complete()}))})}function mt(t){return t<=0?()=>zi:Ke((n,e)=>{let i=0;n.subscribe($e(e,r=>{++i<=t&&(e.next(r),t<=i&&e.complete())}))})}function oO(){return Ke((t,n)=>{t.subscribe($e(n,fd))})}function Zu(t){return se(()=>t)}function eD(t,n){return n?e=>Co(n.pipe(mt(1),oO()),e.pipe(eD(t))):Vt((e,i)=>Ut(t(e,i)).pipe(mt(1),Zu(e)))}function Aa(t,n=nl){let e=cs(t,n);return eD(()=>e)}function Nn(t,n=Lr){return t=t??D$,Ke((e,i)=>{let r,o=!0;e.subscribe($e(i,a=>{let s=n(a);(o||!t(r,s))&&(o=!1,r=s,i.next(a))}))})}function D$(t,n){return t===n}function pb(t=M$){return Ke((n,e)=>{let i=!1;n.subscribe($e(e,r=>{i=!0,e.next(r)},()=>i?e.complete():e.error(t())))})}function M$(){return new rl}function tD(t,n){return Ke((e,i)=>{let r=0;e.subscribe($e(i,o=>{t.call(n,o,r++,e)||(i.next(!1),i.complete())},()=>{i.next(!0),i.complete()}))})}function Xr(t){return Ke((n,e)=>{try{n.subscribe(e)}finally{e.add(t)}})}function xn(t,n){let e=arguments.length>=2;return i=>i.pipe(t?ce((r,o)=>t(r,o,i)):Lr,mt(1),e?Jl(n):pb(()=>new rl))}function Xu(t){return t<=0?()=>zi:Ke((n,e)=>{let i=[];n.subscribe($e(e,r=>{i.push(r),t{for(let r of i)e.next(r);e.complete()},void 0,()=>{i=null}))})}function iD(t,n){let e=arguments.length>=2;return i=>i.pipe(t?ce((r,o)=>t(r,o,i)):Lr,Xu(1),e?Jl(n):pb(()=>new rl))}function fb(){return Ke((t,n)=>{let e,i=!1;t.subscribe($e(n,r=>{let o=e;e=r,i&&n.next([o,r]),i=!0}))})}function nD(t,n){return Ke(rO(t,n,arguments.length>=2,!0))}function ec(t={}){let{connector:n=()=>new z,resetOnError:e=!0,resetOnComplete:i=!0,resetOnRefCountZero:r=!0}=t;return o=>{let a,s,l,c=0,d=!1,p=!1,_=()=>{s?.unsubscribe(),s=void 0},b=()=>{_(),a=l=void 0,d=p=!1},y=()=>{let w=a;b(),w?.unsubscribe()};return Ke((w,C)=>{c++,!p&&!d&&_();let D=l=l??n();C.add(()=>{c--,c===0&&!p&&!d&&(s=rD(y,r))}),D.subscribe(C),!a&&c>0&&(a=new il({next:F=>D.next(F),error:F=>{p=!0,_(),s=rD(b,e,F),D.error(F)},complete:()=>{d=!0,_(),s=rD(b,i),D.complete()}}),Ut(w).subscribe(a))})(o)}}function rD(t,n,...e){if(n===!0){t();return}if(n===!1)return;let i=new il({next:()=>{i.unsubscribe(),t()}});return Ut(n(...e)).subscribe(i)}function vd(t,n,e){let i,r=!1;return t&&typeof t=="object"?{bufferSize:i=1/0,windowTime:n=1/0,refCount:r=!1,scheduler:e}=t:i=t??1/0,ec({connector:()=>new as(i,n,e),resetOnError:!0,resetOnComplete:!1,resetOnRefCountZero:r})}function ds(t){return ce((n,e)=>t<=e)}function Ue(...t){let n=ss(t);return Ke((e,i)=>{(n?Co(t,e,n):Co(t,e)).subscribe(i)})}function je(t,n){return Ke((e,i)=>{let r=null,o=0,a=!1,s=()=>a&&!r&&i.complete();e.subscribe($e(i,l=>{r?.unsubscribe();let c=0,d=o++;Ut(t(l,d)).subscribe(r=$e(i,p=>i.next(n?n(l,p,d,c++):p),()=>{r=null,s()}))},()=>{a=!0,s()}))})}function we(t){return Ke((n,e)=>{Ut(t).subscribe($e(e,()=>e.complete(),fd)),!e.closed&&n.subscribe(e)})}function oD(t,n=!1){return Ke((e,i)=>{let r=0;e.subscribe($e(i,o=>{let a=t(o,r++);(a||n)&&i.next(o),!a&&i.complete()}))})}function He(t,n,e){let i=Xe(t)||n||e?{next:t,error:n,complete:e}:t;return i?Ke((r,o)=>{var a;(a=i.subscribe)===null||a===void 0||a.call(i);let s=!0;r.subscribe($e(o,l=>{var c;(c=i.next)===null||c===void 0||c.call(i,l),o.next(l)},()=>{var l;s=!1,(l=i.complete)===null||l===void 0||l.call(i),o.complete()},l=>{var c;s=!1,(c=i.error)===null||c===void 0||c.call(i,l),o.error(l)},()=>{var l,c;s&&((l=i.unsubscribe)===null||l===void 0||l.call(i)),(c=i.finalize)===null||c===void 0||c.call(i)}))}):Lr}function aO(t){let n=tt(null);try{return t()}finally{tt(n)}}var sO=Me(I({},dd),{consumerIsAlwaysLive:!0,consumerAllowSignalWrites:!0,dirty:!0,kind:"effect"});function lO(t){if(t.dirty=!1,t.version>0&&!md(t))return;t.version++;let n=Gl(t);try{t.cleanup(),t.fn()}finally{ud(t,n)}}var tc=class{full;major;minor;patch;constructor(n){this.full=n;let e=n.split(".");this.major=e[0],this.minor=e[1],this.patch=e.slice(2).join(".")}},Tp=new tc("20.3.16");var vb="https://angular.dev/best-practices/security#preventing-cross-site-scripting-xss",ue=class extends Error{code;constructor(n,e){super(zo(n,e)),this.code=n}};function E$(t){return`NG0${Math.abs(t)}`}function zo(t,n){return`${E$(t)}${n?": "+n:""}`}var Uo=globalThis;function si(t){for(let n in t)if(t[n]===si)return n;throw Error("")}function uO(t,n){for(let e in n)n.hasOwnProperty(e)&&!t.hasOwnProperty(e)&&(t[e]=n[e])}function sl(t){if(typeof t=="string")return t;if(Array.isArray(t))return`[${t.map(sl).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 i=e.indexOf(` +`);return i>=0?e.slice(0,i):e}function yb(t,n){return t?n?`${t} ${n}`:t:n||""}var S$=si({__forward_ref__:si});function li(t){return t.__forward_ref__=li,t.toString=function(){return sl(this())},t}function Cn(t){return _D(t)?t():t}function _D(t){return typeof t=="function"&&t.hasOwnProperty(S$)&&t.__forward_ref__===li}function R(t){return{token:t.token,providedIn:t.providedIn||null,factory:t.factory,value:void 0}}function J(t){return{providers:t.providers||[],imports:t.imports||[]}}function Ip(t){return k$(t,xb)}function bD(t){return Ip(t)!==null}function k$(t,n){return t.hasOwnProperty(n)&&t[n]||null}function T$(t){let n=t?.[xb]??null;return n||null}function sD(t){return t&&t.hasOwnProperty(_b)?t[_b]:null}var xb=si({\u0275prov:si}),_b=si({\u0275inj:si}),O=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=R({token:this,providedIn:e.providedIn||"root",factory:e.factory}))}get multi(){return this}toString(){return`InjectionToken ${this._desc}`}};function vD(t){return t&&!!t.\u0275providers}var yD=si({\u0275cmp:si}),xD=si({\u0275dir:si}),CD=si({\u0275pipe:si}),wD=si({\u0275mod:si}),Ep=si({\u0275fac:si}),Dd=si({__NG_ELEMENT_ID__:si}),cO=si({__NG_ENV_ID__:si});function $o(t){return typeof t=="string"?t:t==null?"":String(t)}function mO(t){return typeof t=="function"?t.name||t.toString():typeof t=="object"&&t!=null&&typeof t.type=="function"?t.type.name||t.type.toString():$o(t)}var hO=si({ngErrorCode:si}),I$=si({ngErrorMessage:si}),A$=si({ngTokenPath:si});function DD(t,n){return pO("",-200,n)}function Cb(t,n){throw new ue(-201,!1)}function pO(t,n,e){let i=new ue(n,t);return i[hO]=n,i[I$]=t,e&&(i[A$]=e),i}function O$(t){return t[hO]}var lD;function fO(){return lD}function Vr(t){let n=lD;return lD=t,n}function MD(t,n,e){let i=Ip(t);if(i&&i.providedIn=="root")return i.value===void 0?i.value=i.factory():i.value;if(e&8)return null;if(n!==void 0)return n;Cb(t,"Injector")}var R$={},yd=R$,cD="__NG_DI_FLAG__",dD=class{injector;constructor(n){this.injector=n}retrieve(n,e){let i=xd(e)||0;try{return this.injector.get(n,i&8?null:yd,i)}catch(r){if(ju(r))return r;throw r}}};function P$(t,n=0){let e=A_();if(e===void 0)throw new ue(-203,!1);if(e===null)return MD(t,void 0,n);{let i=F$(n),r=e.retrieve(t,i);if(ju(r)){if(i.optional)return null;throw r}return r}}function pe(t,n=0){return(fO()||P$)(Cn(t),n)}function u(t,n){return pe(t,xd(n))}function xd(t){return typeof t>"u"||typeof t=="number"?t:0|(t.optional&&8)|(t.host&&1)|(t.self&&2)|(t.skipSelf&&4)}function F$(t){return{optional:!!(t&8),host:!!(t&1),self:!!(t&2),skipSelf:!!(t&4)}}function uD(t){let n=[];for(let e=0;eArray.isArray(e)?wb(e,n):n(e))}function SD(t,n,e){n>=t.length?t.push(e):t.splice(n,0,e)}function Ap(t,n){return n>=t.length-1?t.pop():t.splice(n,1)[0]}function bO(t,n){let e=[];for(let i=0;in;){let o=r-2;t[r]=t[o],r--}t[n]=e,t[n+1]=i}}function Op(t,n,e){let i=em(t,n);return i>=0?t[i|1]=e:(i=~i,vO(t,i,n,e)),i}function Db(t,n){let e=em(t,n);if(e>=0)return t[e|1]}function em(t,n){return L$(t,n,1)}function L$(t,n,e){let i=0,r=t.length>>e;for(;r!==i;){let o=i+(r-i>>1),a=t[o<n?r=o:i=o+1}return~(r<{e.push(a)};return wb(n,a=>{let s=a;bb(s,o,[],i)&&(r||=[],r.push(s))}),r!==void 0&&CO(r,o),e}function CO(t,n){for(let e=0;e{n(o,i)})}}function bb(t,n,e,i){if(t=Cn(t),!t)return!1;let r=null,o=sD(t),a=!o&&ms(t);if(!o&&!a){let l=t.ngModule;if(o=sD(l),o)r=l;else return!1}else{if(a&&!a.standalone)return!1;r=t}let s=i.has(r);if(a){if(s)return!1;if(i.add(r),a.dependencies){let l=typeof a.dependencies=="function"?a.dependencies():a.dependencies;for(let c of l)bb(c,n,e,i)}}else if(o){if(o.imports!=null&&!s){i.add(r);let c;try{wb(o.imports,d=>{bb(d,n,e,i)&&(c||=[],c.push(d))})}finally{}c!==void 0&&CO(c,n)}if(!s){let c=ic(r)||(()=>new r);n({provide:r,useFactory:c,deps:xr},r),n({provide:TD,useValue:r,multi:!0},r),n({provide:us,useValue:()=>pe(r),multi:!0},r)}let l=o.providers;if(l!=null&&!s){let c=t;OD(l,d=>{n(d,c)})}}else return!1;return r!==t&&t.providers!==void 0}function OD(t,n){for(let e of t)vD(e)&&(e=e.\u0275providers),Array.isArray(e)?OD(e,n):n(e)}var V$=si({provide:String,useValue:si});function wO(t){return t!==null&&typeof t=="object"&&V$ in t}function B$(t){return!!(t&&t.useExisting)}function j$(t){return!!(t&&t.useFactory)}function Cd(t){return typeof t=="function"}function DO(t){return!!t.useClass}var Rp=new O(""),gb={},dO={},aD;function tm(){return aD===void 0&&(aD=new Sp),aD}var ti=class{},wd=class extends ti{parent;source;scopes;records=new Map;_ngOnDestroyHooks=new Set;_onDestroyHooks=[];get destroyed(){return this._destroyed}_destroyed=!1;injectorDefTypes;constructor(n,e,i,r){super(),this.parent=e,this.source=i,this.scopes=r,hD(n,a=>this.processProvider(a)),this.records.set(kD,Ju(void 0,this)),r.has("environment")&&this.records.set(ti,Ju(void 0,this));let o=this.records.get(Rp);o!=null&&typeof o.value=="string"&&this.scopes.add(o.value),this.injectorDefTypes=new Set(this.get(TD,xr,{self:!0}))}retrieve(n,e){let i=xd(e)||0;try{return this.get(n,yd,i)}catch(r){if(ju(r))return r;throw r}}destroy(){Mp(this),this._destroyed=!0;let n=tt(null);try{for(let i of this._ngOnDestroyHooks)i.ngOnDestroy();let e=this._onDestroyHooks;this._onDestroyHooks=[];for(let i of e)i()}finally{this.records.clear(),this._ngOnDestroyHooks.clear(),this.injectorDefTypes.clear(),tt(n)}}onDestroy(n){return Mp(this),this._onDestroyHooks.push(n),()=>this.removeOnDestroy(n)}runInContext(n){Mp(this);let e=os(this),i=Vr(void 0),r;try{return n()}finally{os(e),Vr(i)}}get(n,e=yd,i){if(Mp(this),n.hasOwnProperty(cO))return n[cO](this);let r=xd(i),o,a=os(this),s=Vr(void 0);try{if(!(r&4)){let c=this.records.get(n);if(c===void 0){let d=W$(n)&&Ip(n);d&&this.injectableDefInScope(d)?c=Ju(mD(n),gb):c=null,this.records.set(n,c)}if(c!=null)return this.hydrate(n,c,r)}let l=r&2?tm():this.parent;return e=r&8&&e===yd?null:e,l.get(n,e)}catch(l){let c=O$(l);throw c===-200||c===-201?new ue(c,null):l}finally{Vr(s),os(a)}}resolveInjectorInitializers(){let n=tt(null),e=os(this),i=Vr(void 0),r;try{let o=this.get(us,xr,{self:!0});for(let a of o)a()}finally{os(e),Vr(i),tt(n)}}toString(){let n=[],e=this.records;for(let i of e.keys())n.push(sl(i));return`R3Injector[${n.join(", ")}]`}processProvider(n){n=Cn(n);let e=Cd(n)?n:Cn(n&&n.provide),i=z$(n);if(!Cd(n)&&n.multi===!0){let r=this.records.get(e);r||(r=Ju(void 0,gb,!0),r.factory=()=>uD(r.multi),this.records.set(e,r)),e=n,r.multi.push(n)}this.records.set(e,i)}hydrate(n,e,i){let r=tt(null);try{if(e.value===dO)throw DD(sl(n));return e.value===gb&&(e.value=dO,e.value=e.factory(void 0,i)),typeof e.value=="object"&&e.value&&$$(e.value)&&this._ngOnDestroyHooks.add(e.value),e.value}finally{tt(r)}}injectableDefInScope(n){if(!n.providedIn)return!1;let e=Cn(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 mD(t){let n=Ip(t),e=n!==null?n.factory:ic(t);if(e!==null)return e;if(t instanceof O)throw new ue(204,!1);if(t instanceof Function)return H$(t);throw new ue(204,!1)}function H$(t){if(t.length>0)throw new ue(204,!1);let e=T$(t);return e!==null?()=>e.factory(t):()=>new t}function z$(t){if(wO(t))return Ju(void 0,t.useValue);{let n=RD(t);return Ju(n,gb)}}function RD(t,n,e){let i;if(Cd(t)){let r=Cn(t);return ic(r)||mD(r)}else if(wO(t))i=()=>Cn(t.useValue);else if(j$(t))i=()=>t.useFactory(...uD(t.deps||[]));else if(B$(t))i=(r,o)=>pe(Cn(t.useExisting),o!==void 0&&o&8?8:void 0);else{let r=Cn(t&&(t.useClass||t.provide));if(U$(t))i=()=>new r(...uD(t.deps));else return ic(r)||mD(r)}return i}function Mp(t){if(t.destroyed)throw new ue(205,!1)}function Ju(t,n,e=!1){return{factory:t,value:n,multi:e?[]:void 0}}function U$(t){return!!t.deps}function $$(t){return t!==null&&typeof t=="object"&&typeof t.ngOnDestroy=="function"}function W$(t){return typeof t=="function"||typeof t=="object"&&t.ngMetadataName==="InjectionToken"}function hD(t,n){for(let e of t)Array.isArray(e)?hD(e,n):e&&vD(e)?hD(e.\u0275providers,n):n(e)}function Vn(t,n){let e;t instanceof wd?(Mp(t),e=t):e=new dD(t);let i,r=os(e),o=Vr(void 0);try{return n()}finally{os(r),Vr(o)}}function MO(){return fO()!==void 0||A_()!=null}var Ra=0,We=1,nt=2,wn=3,Wo=4,Br=5,Md=6,im=7,en=8,ll=9,hs=10,mi=11,nm=12,PD=13,Ed=14,Cr=15,rc=16,Sd=17,ps=18,Pp=19,FD=20,al=21,Sb=22,cl=23,wo=24,kd=25,Td=26,vi=27,EO=1,ND=6,oc=7,Fp=8,Id=9,tn=10;function fs(t){return Array.isArray(t)&&typeof t[EO]=="object"}function Pa(t){return Array.isArray(t)&&t[EO]===!0}function LD(t){return(t.flags&4)!==0}function dl(t){return t.componentOffset>-1}function rm(t){return(t.flags&1)===1}function Fa(t){return!!t.template}function om(t){return(t[nt]&512)!==0}function Ad(t){return(t[nt]&256)===256}var VD="svg",SO="math";function Go(t){for(;Array.isArray(t);)t=t[Ra];return t}function BD(t,n){return Go(n[t])}function qo(t,n){return Go(n[t.index])}function Np(t,n){return t.data[n]}function am(t,n){return t[n]}function jD(t,n,e,i){e>=t.data.length&&(t.data[e]=null,t.blueprint[e]=null),n[e]=i}function Yo(t,n){let e=n[t];return fs(e)?e:e[Ra]}function kO(t){return(t[nt]&4)===4}function kb(t){return(t[nt]&128)===128}function TO(t){return Pa(t[wn])}function Do(t,n){return n==null?null:t[n]}function HD(t){t[Sd]=0}function zD(t){t[nt]&1024||(t[nt]|=1024,kb(t)&&ac(t))}function IO(t,n){for(;t>0;)n=n[Ed],t--;return n}function Lp(t){return!!(t[nt]&9216||t[wo]?.dirty)}function Tb(t){t[hs].changeDetectionScheduler?.notify(8),t[nt]&64&&(t[nt]|=1024),Lp(t)&&ac(t)}function ac(t){t[hs].changeDetectionScheduler?.notify(0);let n=nc(t);for(;n!==null&&!(n[nt]&8192||(n[nt]|=8192,!kb(n)));)n=nc(n)}function UD(t,n){if(Ad(t))throw new ue(911,!1);t[al]===null&&(t[al]=[]),t[al].push(n)}function AO(t,n){if(t[al]===null)return;let e=t[al].indexOf(n);e!==-1&&t[al].splice(e,1)}function nc(t){let n=t[wn];return Pa(n)?n[wn]:n}function $D(t){return t[im]??=[]}function WD(t){return t.cleanup??=[]}function OO(t,n,e,i){let r=$D(n);r.push(e),t.firstCreatePass&&WD(t).push(i,r.length-1)}var bt={lFrame:UO(null),bindingsEnabled:!0,skipHydrationRootTNode:null};var pD=!1;function RO(){return bt.lFrame.elementDepthCount}function PO(){bt.lFrame.elementDepthCount++}function GD(){bt.lFrame.elementDepthCount--}function Ib(){return bt.bindingsEnabled}function qD(){return bt.skipHydrationRootTNode!==null}function YD(t){return bt.skipHydrationRootTNode===t}function QD(){bt.skipHydrationRootTNode=null}function Le(){return bt.lFrame.lView}function Di(){return bt.lFrame.tView}function k(t){return bt.lFrame.contextLView=t,t[en]}function T(t){return bt.lFrame.contextLView=null,t}function sn(){let t=KD();for(;t!==null&&t.type===64;)t=t.parent;return t}function KD(){return bt.lFrame.currentTNode}function FO(){let t=bt.lFrame,n=t.currentTNode;return t.isParent?n:n.parent}function sm(t,n){let e=bt.lFrame;e.currentTNode=t,e.isParent=n}function ZD(){return bt.lFrame.isParent}function XD(){bt.lFrame.isParent=!1}function NO(){return bt.lFrame.contextLView}function JD(){return pD}function lm(t){let n=pD;return pD=t,n}function gs(){let t=bt.lFrame,n=t.bindingRootIndex;return n===-1&&(n=t.bindingRootIndex=t.tView.bindingStartIndex),n}function e1(){return bt.lFrame.bindingIndex}function LO(t){return bt.lFrame.bindingIndex=t}function _s(){return bt.lFrame.bindingIndex++}function Vp(t){let n=bt.lFrame,e=n.bindingIndex;return n.bindingIndex=n.bindingIndex+t,e}function VO(){return bt.lFrame.inI18n}function BO(t,n){let e=bt.lFrame;e.bindingIndex=e.bindingRootIndex=t,Ab(n)}function jO(){return bt.lFrame.currentDirectiveIndex}function Ab(t){bt.lFrame.currentDirectiveIndex=t}function HO(t){let n=bt.lFrame.currentDirectiveIndex;return n===-1?null:t[n]}function Ob(){return bt.lFrame.currentQueryIndex}function Bp(t){bt.lFrame.currentQueryIndex=t}function G$(t){let n=t[We];return n.type===2?n.declTNode:n.type===1?t[Br]:null}function t1(t,n,e){if(e&4){let r=n,o=t;for(;r=r.parent,r===null&&!(e&1);)if(r=G$(o),r===null||(o=o[Ed],r.type&10))break;if(r===null)return!1;n=r,t=o}let i=bt.lFrame=zO();return i.currentTNode=n,i.lView=t,!0}function Rb(t){let n=zO(),e=t[We];bt.lFrame=n,n.currentTNode=e.firstChild,n.lView=t,n.tView=e,n.contextLView=t,n.bindingIndex=e.bindingStartIndex,n.inI18n=!1}function zO(){let t=bt.lFrame,n=t===null?null:t.child;return n===null?UO(t):n}function UO(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 $O(){let t=bt.lFrame;return bt.lFrame=t.parent,t.currentTNode=null,t.lView=null,t}var i1=$O;function Pb(){let t=$O();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 WO(t){return(bt.lFrame.contextLView=IO(t,bt.lFrame.contextLView))[en]}function Na(){return bt.lFrame.selectedIndex}function sc(t){bt.lFrame.selectedIndex=t}function cm(){let t=bt.lFrame;return Np(t.tView,t.selectedIndex)}function ii(){bt.lFrame.currentNamespace=VD}function Qo(){q$()}function q$(){bt.lFrame.currentNamespace=null}function GO(){return bt.lFrame.currentNamespace}var qO=!0;function Fb(){return qO}function jp(t){qO=t}function fD(t,n=null,e=null,i){let r=n1(t,n,e,i);return r.resolveInjectorInitializers(),r}function n1(t,n=null,e=null,i,r=new Set){let o=[e||xr,Eb(t)];return i=i||(typeof t=="object"?void 0:sl(t)),new wd(o,n||tm(),i||null,r)}var de=class t{static THROW_IF_NOT_FOUND=yd;static NULL=new Sp;static create(n,e){if(Array.isArray(n))return fD({name:""},e,n,"");{let i=n.name??"";return fD({name:i},n.parent,n.providers,i)}}static \u0275prov=R({token:t,providedIn:"any",factory:()=>pe(kD)});static __NG_ELEMENT_ID__=-1},_e=new O(""),ln=(()=>{class t{static __NG_ELEMENT_ID__=Y$;static __NG_ENV_ID__=e=>e}return t})(),kp=class extends ln{_lView;constructor(n){super(),this._lView=n}get destroyed(){return Ad(this._lView)}onDestroy(n){let e=this._lView;return UD(e,n),()=>AO(e,n)}};function Y$(){return new kp(Le())}var Ln=class{_console=console;handleError(n){this._console.error("ERROR",n)}},wr=new O("",{providedIn:"root",factory:()=>{let t=u(ti),n;return e=>{t.destroyed&&!n?setTimeout(()=>{throw e}):(n??=t.get(Ln),n.handleError(e))}}}),YO={provide:us,useValue:()=>void u(Ln),multi:!0},Q$=new O("",{providedIn:"root",factory:()=>{let t=u(_e).defaultView;if(!t)return;let n=u(wr),e=o=>{n(o.reason),o.preventDefault()},i=o=>{o.error?n(o.error):n(new Error(o.message,{cause:o})),o.preventDefault()},r=()=>{t.addEventListener("unhandledrejection",e),t.addEventListener("error",i)};typeof Zone<"u"?Zone.root.run(r):r(),u(ln).onDestroy(()=>{t.removeEventListener("error",i),t.removeEventListener("unhandledrejection",e)})}});function r1(){return Jr([xO(()=>void u(Q$))])}function bs(t){return typeof t=="function"&&t[mn]!==void 0}function he(t,n){let[e,i,r]=Bw(t,n?.equal),o=e,a=o[mn];return o.set=i,o.update=r,o.asReadonly=Nb.bind(o),o}function Nb(){let t=this[mn];if(t.readonlyFn===void 0){let n=()=>this();n[mn]=t,t.readonlyFn=n}return t.readonlyFn}function o1(t){return bs(t)&&typeof t.set=="function"}var Od=(()=>{class t{view;node;constructor(e,i){this.view=e,this.node=i}static __NG_ELEMENT_ID__=K$}return t})();function K$(){return new Od(Le(),sn())}var Ho=class{},Hp=new O("",{providedIn:"root",factory:()=>!1});var a1=new O(""),s1=new O(""),vs=(()=>{class t{taskId=0;pendingTasks=new Set;destroyed=!1;pendingTask=new rt(!1);get hasPendingTasks(){return this.destroyed?!1:this.pendingTask.value}get hasPendingTasksObservable(){return this.destroyed?new Ne(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),e}has(e){return this.pendingTasks.has(e)}remove(e){this.pendingTasks.delete(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=R({token:t,providedIn:"root",factory:()=>new t})}return t})(),dm=(()=>{class t{internalPendingTasks=u(vs);scheduler=u(Ho);errorHandler=u(wr);add(){let e=this.internalPendingTasks.add();return()=>{this.internalPendingTasks.has(e)&&(this.scheduler.notify(11),this.internalPendingTasks.remove(e))}}run(e){let i=this.add();e().catch(this.errorHandler).finally(i)}static \u0275prov=R({token:t,providedIn:"root",factory:()=>new t})}return t})();function Rd(...t){}var zp=(()=>{class t{static \u0275prov=R({token:t,providedIn:"root",factory:()=>new gD})}return t})(),gD=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,i=this.queues.get(e);i.has(n)&&(i.delete(n),n.dirty&&this.dirtyEffectCount--)}enqueue(n){let e=n.zone;this.queues.has(e)||this.queues.set(e,new Set);let i=this.queues.get(e);i.has(n)||i.add(n)}flush(){for(;this.dirtyEffectCount>0;){let n=!1;for(let[e,i]of this.queues)e===null?n||=this.flushQueue(i):n||=e.run(()=>this.flushQueue(i));n||(this.dirtyEffectCount=0)}}flushQueue(n){let e=!1;for(let i of n)i.dirty&&(this.dirtyEffectCount--,e=!0,i.run());return e}};function vm(t){return{toString:t}.toString()}var Lb="__parameters__";function iW(t){return function(...e){if(t){let i=t(...e);for(let r in i)this[r]=i[r]}}}function PR(t,n,e){return vm(()=>{let i=iW(n);function r(...o){if(this instanceof r)return i.apply(this,o),this;let a=new r(...o);return s.annotation=a,s;function s(l,c,d){let p=l.hasOwnProperty(Lb)?l[Lb]:Object.defineProperty(l,Lb,{value:[]})[Lb];for(;p.length<=d;)p.push(null);return(p[d]=p[d]||[]).push(a),l}}return r.prototype.ngMetadataName=t,r.annotationCls=r,r})}var ws=ED(PR("Optional"),8);var dc=ED(PR("SkipSelf"),4);var Vd=Function;function nW(t){return typeof t=="function"}var Yb=class{previousValue;currentValue;firstChange;constructor(n,e,i){this.previousValue=n,this.currentValue=e,this.firstChange=i}isFirstChange(){return this.firstChange}};function FR(t,n,e,i){n!==null?n.applyValueToInputSignal(n,i):t[e]=i}var Oe=(()=>{let t=()=>NR;return t.ngInherit=!0,t})();function NR(t){return t.type.prototype.ngOnChanges&&(t.setInput=oW),rW}function rW(){let t=VR(this),n=t?.current;if(n){let e=t.previous;if(e===Oa)t.previous=n;else for(let i in n)e[i]=n[i];t.current=null,this.ngOnChanges(n)}}function oW(t,n,e,i,r){let o=this.declaredInputs[i],a=VR(t)||aW(t,{previous:Oa,current:null}),s=a.current||(a.current={}),l=a.previous,c=l[o];s[o]=new Yb(c&&c.currentValue,e,l===Oa),FR(t,n,r,e)}var LR="__ngSimpleChanges__";function VR(t){return t[LR]||null}function aW(t,n){return t[LR]=n}var QO=[];var hi=function(t,n=null,e){for(let i=0;i=i)break}else n[l]<0&&(t[Sd]+=65536),(s>14>16&&(t[nt]&3)===n&&(t[nt]+=16384,KO(s,o)):KO(s,o)}var mm=-1,Fd=class{factory;name;injectImpl;resolving=!1;canSeeViewProviders;multi;componentProviders;index;providerFactory;constructor(n,e,i,r){this.factory=n,this.name=r,this.canSeeViewProviders=e,this.injectImpl=i}};function cW(t){return(t.flags&8)!==0}function dW(t){return(t.flags&16)!==0}function uW(t,n,e){let i=0;for(;in){a=o-1;break}}}for(;o>16}function Kb(t,n){let e=hW(t),i=n;for(;e>0;)i=i[Ed],e--;return i}var v1=!0;function Zb(t){let n=v1;return v1=t,n}var pW=256,UR=pW-1,$R=5,fW=0,ys={};function gW(t,n,e){let i;typeof e=="string"?i=e.charCodeAt(0)||0:e.hasOwnProperty(Dd)&&(i=e[Dd]),i==null&&(i=e[Dd]=fW++);let r=i&UR,o=1<>$R)]|=o}function Xb(t,n){let e=WR(t,n);if(e!==-1)return e;let i=n[We];i.firstCreatePass&&(t.injectorIndex=n.length,c1(i.data,t),c1(n,null),c1(i.blueprint,null));let r=rM(t,n),o=t.injectorIndex;if(zR(r)){let a=Qb(r),s=Kb(r,n),l=s[We].data;for(let c=0;c<8;c++)n[o+c]=s[a+c]|l[a+c]}return n[o+8]=r,o}function c1(t,n){t.push(0,0,0,0,0,0,0,0,n)}function WR(t,n){return t.injectorIndex===-1||t.parent&&t.parent.injectorIndex===t.injectorIndex||n[t.injectorIndex+8]===null?-1:t.injectorIndex}function rM(t,n){if(t.parent&&t.parent.injectorIndex!==-1)return t.parent.injectorIndex;let e=0,i=null,r=n;for(;r!==null;){if(i=KR(r),i===null)return mm;if(e++,r=r[Ed],i.injectorIndex!==-1)return i.injectorIndex|e<<16}return mm}function y1(t,n,e){gW(t,n,e)}function _W(t,n){if(n==="class")return t.classes;if(n==="style")return t.styles;let e=t.attrs;if(e){let i=e.length,r=0;for(;r>20,p=i?s:s+d,_=r?s+d:c;for(let b=p;b<_;b++){let y=a[b];if(b=l&&y.type===e)return b}if(r){let b=a[l];if(b&&Fa(b)&&b.type===e)return l}return null}function Wp(t,n,e,i,r){let o=t[e],a=n.data;if(o instanceof Fd){let s=o;if(s.resolving){let b=mO(a[e]);throw DD(b)}let l=Zb(s.canSeeViewProviders);s.resolving=!0;let c=a[e].type||a[e],d,p=s.injectImpl?Vr(s.injectImpl):null,_=t1(t,i,0);try{o=t[e]=s.factory(void 0,r,a,t,i),n.firstCreatePass&&e>=i.directiveStart&&sW(e,a[e],n)}finally{p!==null&&Vr(p),Zb(l),s.resolving=!1,i1()}}return o}function vW(t){if(typeof t=="string")return t.charCodeAt(0)||0;let n=t.hasOwnProperty(Dd)?t[Dd]:void 0;return typeof n=="number"?n>=0?n&UR:yW:n}function XO(t,n,e){let i=1<>$R)]&i)}function JO(t,n){return!(t&2)&&!(t&1&&n)}var Pd=class{_tNode;_lView;constructor(n,e){this._tNode=n,this._lView=e}get(n,e,i){return YR(this._tNode,this._lView,n,xd(i),e)}};function yW(){return new Pd(sn(),Le())}function ge(t){return vm(()=>{let n=t.prototype.constructor,e=n[Ep]||x1(n),i=Object.prototype,r=Object.getPrototypeOf(t.prototype).constructor;for(;r&&r!==i;){let o=r[Ep]||x1(r);if(o&&o!==e)return o;r=Object.getPrototypeOf(r)}return o=>new o})}function x1(t){return _D(t)?()=>{let n=x1(Cn(t));return n&&n()}:ic(t)}function xW(t,n,e,i,r){let o=t,a=n;for(;o!==null&&a!==null&&a[nt]&2048&&!om(a);){let s=QR(o,a,e,i|2,ys);if(s!==ys)return s;let l=o.parent;if(!l){let c=a[FD];if(c){let d=c.get(e,ys,i);if(d!==ys)return d}l=KR(a),a=a[Ed]}o=l}return r}function KR(t){let n=t[We],e=n.type;return e===2?n.declTNode:e===1?t[Br]:null}function Jp(t){return _W(sn(),t)}function CW(){return ym(sn(),Le())}function ym(t,n){return new Y(qo(t,n))}var Y=(()=>{class t{nativeElement;constructor(e){this.nativeElement=e}static __NG_ELEMENT_ID__=CW}return t})();function ZR(t){return t instanceof Y?t.nativeElement:t}function wW(){return this._results[Symbol.iterator]()}var Dr=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 z}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 i=_O(n);(this._changesDetected=!gO(this._results,i,e))&&(this._results=i,this.length=i.length,this.last=i[this.length-1],this.first=i[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]=wW};function XR(t){return(t.flags&128)===128}var oM=(function(t){return t[t.OnPush=0]="OnPush",t[t.Default=1]="Default",t})(oM||{}),JR=new Map,DW=0;function MW(){return DW++}function EW(t){JR.set(t[Pp],t)}function C1(t){JR.delete(t[Pp])}var eR="__ngContext__";function pm(t,n){fs(n)?(t[eR]=n[Pp],EW(n)):t[eR]=n}function eP(t){return iP(t[nm])}function tP(t){return iP(t[Wo])}function iP(t){for(;t!==null&&!Pa(t);)t=t[Wo];return t}var w1;function aM(t){w1=t}function sM(){if(w1!==void 0)return w1;if(typeof document<"u")return document;throw new ue(210,!1)}var uc=new O("",{providedIn:"root",factory:()=>SW}),SW="ng",m0=new O(""),hl=new O("",{providedIn:"platform",factory:()=>"unknown"});var ef=new O(""),xm=new O("",{providedIn:"root",factory:()=>sM().body?.querySelector("[ngCspNonce]")?.getAttribute("ngCspNonce")||null});var kW="h",TW="b";var nP="r";var rP="di";var oP=!1,aP=new O("",{providedIn:"root",factory:()=>oP});var h0=new O("");var IW=(t,n,e,i)=>{};function AW(t,n,e,i){IW(t,n,e,i)}function p0(t){return(t.flags&32)===32}var OW=()=>null;function sP(t,n,e=!1){return OW(t,n,e)}function lP(t,n){let e=t.contentQueries;if(e!==null){let i=tt(null);try{for(let r=0;rt,createScript:t=>t,createScriptURL:t=>t})}catch{}return Vb}function f0(t){return RW()?.createHTML(t)||t}var Bb;function cP(){if(Bb===void 0&&(Bb=null,Uo.trustedTypes))try{Bb=Uo.trustedTypes.createPolicy("angular#unsafe-bypass",{createHTML:t=>t,createScript:t=>t,createScriptURL:t=>t})}catch{}return Bb}function tR(t){return cP()?.createHTML(t)||t}function iR(t){return cP()?.createScriptURL(t)||t}var ml=class{changingThisBreaksApplicationSecurity;constructor(n){this.changingThisBreaksApplicationSecurity=n}toString(){return`SafeValue must use [property]=binding: ${this.changingThisBreaksApplicationSecurity} (see ${vb})`}},M1=class extends ml{getTypeName(){return"HTML"}},E1=class extends ml{getTypeName(){return"Style"}},S1=class extends ml{getTypeName(){return"Script"}},k1=class extends ml{getTypeName(){return"URL"}},T1=class extends ml{getTypeName(){return"ResourceURL"}};function eo(t){return t instanceof ml?t.changingThisBreaksApplicationSecurity:t}function Ds(t,n){let e=dP(t);if(e!=null&&e!==n){if(e==="ResourceURL"&&n==="URL")return!0;throw new Error(`Required a safe ${n}, got a ${e} (see ${vb})`)}return e===n}function dP(t){return t instanceof ml&&t.getTypeName()||null}function cM(t){return new M1(t)}function dM(t){return new E1(t)}function uM(t){return new S1(t)}function mM(t){return new k1(t)}function hM(t){return new T1(t)}function PW(t){let n=new A1(t);return FW()?new I1(n):n}var I1=class{inertDocumentHelper;constructor(n){this.inertDocumentHelper=n}getInertBodyElement(n){n=""+n;try{let e=new window.DOMParser().parseFromString(f0(n),"text/html").body;return e===null?this.inertDocumentHelper.getInertBodyElement(n):(e.firstChild?.remove(),e)}catch{return null}}},A1=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=f0(n),e}};function FW(){try{return!!new window.DOMParser().parseFromString(f0(""),"text/html")}catch{return!1}}var NW=/^(?!javascript:)(?:[a-z0-9+.-]+:|[^&:\/?#]*(?:[\/?#]|$))/i;function tf(t){return t=String(t),t.match(NW)?t:"unsafe:"+t}function pl(t){let n={};for(let e of t.split(","))n[e]=!0;return n}function nf(...t){let n={};for(let e of t)for(let i in e)e.hasOwnProperty(i)&&(n[i]=!0);return n}var uP=pl("area,br,col,hr,img,wbr"),mP=pl("colgroup,dd,dt,li,p,tbody,td,tfoot,th,thead,tr"),hP=pl("rp,rt"),LW=nf(hP,mP),VW=nf(mP,pl("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")),BW=nf(hP,pl("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")),nR=nf(uP,VW,BW,LW),pP=pl("background,cite,href,itemtype,longdesc,poster,src,xlink:href"),jW=pl("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"),HW=pl("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"),zW=nf(pP,jW,HW),UW=pl("script,style,template"),O1=class{sanitizedSomething=!1;buf=[];sanitizeChildren(n){let e=n.firstChild,i=!0,r=[];for(;e;){if(e.nodeType===Node.ELEMENT_NODE?i=this.startElement(e):e.nodeType===Node.TEXT_NODE?this.chars(e.nodeValue):this.sanitizedSomething=!0,i&&e.firstChild){r.push(e),e=GW(e);continue}for(;e;){e.nodeType===Node.ELEMENT_NODE&&this.endElement(e);let o=WW(e);if(o){e=o;break}e=r.pop()}}return this.buf.join("")}startElement(n){let e=rR(n).toLowerCase();if(!nR.hasOwnProperty(e))return this.sanitizedSomething=!0,!UW.hasOwnProperty(e);this.buf.push("<"),this.buf.push(e);let i=n.attributes;for(let r=0;r"),!0}endElement(n){let e=rR(n).toLowerCase();nR.hasOwnProperty(e)&&!uP.hasOwnProperty(e)&&(this.buf.push(""))}chars(n){this.buf.push(oR(n))}};function $W(t,n){return(t.compareDocumentPosition(n)&Node.DOCUMENT_POSITION_CONTAINED_BY)!==Node.DOCUMENT_POSITION_CONTAINED_BY}function WW(t){let n=t.nextSibling;if(n&&t!==n.previousSibling)throw fP(n);return n}function GW(t){let n=t.firstChild;if(n&&$W(t,n))throw fP(n);return n}function rR(t){let n=t.nodeName;return typeof n=="string"?n:"FORM"}function fP(t){return new Error(`Failed to sanitize html because the element is clobbered: ${t.outerHTML}`)}var qW=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,YW=/([^\#-~ |!])/g;function oR(t){return t.replace(/&/g,"&").replace(qW,function(n){let e=n.charCodeAt(0),i=n.charCodeAt(1);return"&#"+((e-55296)*1024+(i-56320)+65536)+";"}).replace(YW,function(n){return"&#"+n.charCodeAt(0)+";"}).replace(//g,">")}var jb;function g0(t,n){let e=null;try{jb=jb||PW(t);let i=n?String(n):"";e=jb.getInertBodyElement(i);let r=5,o=i;do{if(r===0)throw new Error("Failed to sanitize html because the input is unstable");r--,i=o,o=e.innerHTML,e=jb.getInertBodyElement(i)}while(i!==o);let s=new O1().sanitizeChildren(aR(e)||e);return f0(s)}finally{if(e){let i=aR(e)||e;for(;i.firstChild;)i.firstChild.remove()}}}function aR(t){return"content"in t&&QW(t)?t.content:null}function QW(t){return t.nodeType===Node.ELEMENT_NODE&&t.nodeName==="TEMPLATE"}var KW=/^>|^->||--!>|)/g,XW="\u200B$1\u200B";function JW(t){return t.replace(KW,n=>n.replace(ZW,XW))}function e7(t,n){return t.createText(n)}function t7(t,n,e){t.setValue(n,e)}function i7(t,n){return t.createComment(JW(n))}function gP(t,n,e){return t.createElement(n,e)}function Jb(t,n,e,i,r){t.insertBefore(n,e,i,r)}function _P(t,n,e){t.appendChild(n,e)}function sR(t,n,e,i,r){i!==null?Jb(t,n,e,i,r):_P(t,n,e)}function bP(t,n,e,i){t.removeChild(null,n,e,i)}function n7(t,n,e){t.setAttribute(n,"style",e)}function r7(t,n,e){e===""?t.removeAttribute(n,"class"):t.setAttribute(n,"class",e)}function vP(t,n,e){let{mergedAttrs:i,classes:r,styles:o}=e;i!==null&&uW(t,n,i),r!==null&&r7(t,n,r),o!==null&&n7(t,n,o)}var Bn=(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})(Bn||{});function rf(t){let n=fM();return n?tR(n.sanitize(Bn.HTML,t)||""):Ds(t,"HTML")?tR(eo(t)):g0(sM(),$o(t))}function to(t){let n=fM();return n?n.sanitize(Bn.URL,t)||"":Ds(t,"URL")?eo(t):tf($o(t))}function yP(t){let n=fM();if(n)return iR(n.sanitize(Bn.RESOURCE_URL,t)||"");if(Ds(t,"ResourceURL"))return iR(eo(t));throw new ue(904,!1)}var o7=new Set(["embed","frame","iframe","media","script"]),a7=new Set(["base","link","script"]);function s7(t,n){return n==="src"&&o7.has(t)||n==="href"&&a7.has(t)||n==="xlink:href"&&t==="script"?yP:to}function pM(t,n,e){return s7(n,e)(t)}function fM(){let t=Le();return t&&t[hs].sanitizer}function xP(t){return t instanceof Function?t():t}function l7(t,n,e){let i=t.length;for(;;){let r=t.indexOf(n,e);if(r===-1)return r;if(r===0||t.charCodeAt(r-1)<=32){let o=n.length;if(r+o===i||t.charCodeAt(r+o)<=32)return r}e=r+1}}var CP="ng-template";function c7(t,n,e,i){let r=0;if(i){for(;r-1){let o;for(;++ro?p="":p=r[d+1].toLowerCase(),i&2&&c!==p){if(La(i))return!1;a=!0}}}}return La(i)||a}function La(t){return(t&1)===0}function m7(t,n,e,i){if(n===null)return-1;let r=0;if(i||!e){let o=!1;for(;r-1)for(e++;e0?'="'+s+'"':"")+"]"}else i&8?r+="."+a:i&4&&(r+=" "+a);else r!==""&&!La(a)&&(n+=lR(o,r),r=""),i=a,o=o||!La(i);e++}return r!==""&&(n+=lR(o,r)),n}function b7(t){return t.map(_7).join(",")}function v7(t){let n=[],e=[],i=1,r=2;for(;inull),a=i;if(n&&typeof n=="object"){let l=n;r=l.next?.bind(l),o=l.error?.bind(l),a=l.complete?.bind(l)}this.__isAsync&&(o=this.wrapInTimeout(o),r&&(r=this.wrapInTimeout(r)),a&&(a=this.wrapInTimeout(a)));let s=super.subscribe({next:r,error:o,complete:a});return n instanceof ke&&n.add(s),s}wrapInTimeout(n){return e=>{let i=this.pendingTasks?.add();setTimeout(()=>{try{n(e)}finally{i!==void 0&&this.pendingTasks?.remove(i)}})}}},U=P1;function kP(t){let n,e;function i(){t=Rd;try{e!==void 0&&typeof cancelAnimationFrame=="function"&&cancelAnimationFrame(e),n!==void 0&&clearTimeout(n)}catch{}}return n=setTimeout(()=>{t(),i()}),typeof requestAnimationFrame=="function"&&(e=requestAnimationFrame(()=>{t(),i()})),()=>i()}function dR(t){return queueMicrotask(()=>t()),()=>{t=Rd}}var xM="isAngularZone",e0=xM+"_ID",D7=0,ae=class t{hasPendingMacrotasks=!1;hasPendingMicrotasks=!1;isStable=!0;onUnstable=new U(!1);onMicrotaskEmpty=new U(!1);onStable=new U(!1);onError=new U(!1);constructor(n){let{enableLongStackTrace:e=!1,shouldCoalesceEventChangeDetection:i=!1,shouldCoalesceRunChangeDetection:r=!1,scheduleInRootZone:o=SP}=n;if(typeof Zone>"u")throw new ue(908,!1);Zone.assertZonePatched();let a=this;a._nesting=0,a._outer=a._inner=Zone.current,Zone.TaskTrackingZoneSpec&&(a._inner=a._inner.fork(new Zone.TaskTrackingZoneSpec)),e&&Zone.longStackTraceZoneSpec&&(a._inner=a._inner.fork(Zone.longStackTraceZoneSpec)),a.shouldCoalesceEventChangeDetection=!r&&i,a.shouldCoalesceRunChangeDetection=r,a.callbackScheduled=!1,a.scheduleInRootZone=o,S7(a)}static isInAngularZone(){return typeof Zone<"u"&&Zone.current.get(xM)===!0}static assertInAngularZone(){if(!t.isInAngularZone())throw new ue(909,!1)}static assertNotInAngularZone(){if(t.isInAngularZone())throw new ue(909,!1)}run(n,e,i){return this._inner.run(n,e,i)}runTask(n,e,i,r){let o=this._inner,a=o.scheduleEventTask("NgZoneEvent: "+r,n,M7,Rd,Rd);try{return o.runTask(a,e,i)}finally{o.cancelTask(a)}}runGuarded(n,e,i){return this._inner.runGuarded(n,e,i)}runOutsideAngular(n){return this._outer.run(n)}},M7={};function CM(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 E7(t){if(t.isCheckStableRunning||t.callbackScheduled)return;t.callbackScheduled=!0;function n(){kP(()=>{t.callbackScheduled=!1,F1(t),t.isCheckStableRunning=!0,CM(t),t.isCheckStableRunning=!1})}t.scheduleInRootZone?Zone.root.run(()=>{n()}):t._outer.run(()=>{n()}),F1(t)}function S7(t){let n=()=>{E7(t)},e=D7++;t._inner=t._inner.fork({name:"angular",properties:{[xM]:!0,[e0]:e,[e0+e]:!0},onInvokeTask:(i,r,o,a,s,l)=>{if(k7(l))return i.invokeTask(o,a,s,l);try{return uR(t),i.invokeTask(o,a,s,l)}finally{(t.shouldCoalesceEventChangeDetection&&a.type==="eventTask"||t.shouldCoalesceRunChangeDetection)&&n(),mR(t)}},onInvoke:(i,r,o,a,s,l,c)=>{try{return uR(t),i.invoke(o,a,s,l,c)}finally{t.shouldCoalesceRunChangeDetection&&!t.callbackScheduled&&!T7(l)&&n(),mR(t)}},onHasTask:(i,r,o,a)=>{i.hasTask(o,a),r===o&&(a.change=="microTask"?(t._hasPendingMicrotasks=a.microTask,F1(t),CM(t)):a.change=="macroTask"&&(t.hasPendingMacrotasks=a.macroTask))},onHandleError:(i,r,o,a)=>(i.handleError(o,a),t.runOutsideAngular(()=>t.onError.emit(a)),!1)})}function F1(t){t._hasPendingMicrotasks||(t.shouldCoalesceEventChangeDetection||t.shouldCoalesceRunChangeDetection)&&t.callbackScheduled===!0?t.hasPendingMicrotasks=!0:t.hasPendingMicrotasks=!1}function uR(t){t._nesting++,t.isStable&&(t.isStable=!1,t.onUnstable.emit(null))}function mR(t){t._nesting--,CM(t)}var Gp=class{hasPendingMicrotasks=!1;hasPendingMacrotasks=!1;isStable=!0;onUnstable=new U;onMicrotaskEmpty=new U;onStable=new U;onError=new U;run(n,e,i){return n.apply(e,i)}runGuarded(n,e,i){return n.apply(e,i)}runOutsideAngular(n){return n()}runTask(n,e,i,r){return n.apply(e,i)}};function k7(t){return TP(t,"__ignore_ng_zone__")}function T7(t){return TP(t,"__scheduler_tick__")}function TP(t,n){return!Array.isArray(t)||t.length!==1?!1:t[0]?.data?.[n]===!0}var v0=(()=>{class t{impl=null;execute(){this.impl?.execute()}static \u0275prov=R({token:t,providedIn:"root",factory:()=>new t})}return t})(),wM=[0,1,2,3],DM=(()=>{class t{ngZone=u(ae);scheduler=u(Ho);errorHandler=u(Ln,{optional:!0});sequences=new Set;deferredRegistrations=new Set;executing=!1;constructor(){u(mc,{optional:!0})}execute(){let e=this.sequences.size>0;e&&hi(16),this.executing=!0;for(let i of wM)for(let r of this.sequences)if(!(r.erroredOrDestroyed||!r.hooks[i]))try{r.pipelinedValue=this.ngZone.runOutsideAngular(()=>this.maybeTrace(()=>{let o=r.hooks[i];return o(r.pipelinedValue)},r.snapshot))}catch(o){r.erroredOrDestroyed=!0,this.errorHandler?.handleError(o)}this.executing=!1;for(let i of this.sequences)i.afterRun(),i.once&&(this.sequences.delete(i),i.destroy());for(let i of this.deferredRegistrations)this.sequences.add(i);this.deferredRegistrations.size>0&&this.scheduler.notify(7),this.deferredRegistrations.clear(),e&&hi(17)}register(e){let{view:i}=e;i!==void 0?((i[kd]??=[]).push(e),ac(i),i[nt]|=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,i){return i?i.run(b0.AFTER_NEXT_RENDER,e):e()}static \u0275prov=R({token:t,providedIn:"root",factory:()=>new t})}return t})(),qp=class{impl;hooks;view;once;snapshot;erroredOrDestroyed=!1;pipelinedValue=void 0;unregisterOnDestroy;constructor(n,e,i,r,o,a=null){this.impl=n,this.hooks=e,this.view=i,this.once=r,this.snapshot=a,this.unregisterOnDestroy=o?.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?.[kd];n&&(this.view[kd]=n.filter(e=>e!==this))}};function vt(t,n){let e=n?.injector??u(de);return Ms("NgAfterNextRender"),A7(t,e,n,!0)}function I7(t){return t instanceof Function?[void 0,void 0,t,void 0]:[t.earlyRead,t.write,t.mixedReadWrite,t.read]}function A7(t,n,e,i){let r=n.get(v0);r.impl??=n.get(DM);let o=n.get(mc,null,{optional:!0}),a=e?.manualCleanup!==!0?n.get(ln):null,s=n.get(Od,null,{optional:!0}),l=new qp(r.impl,I7(t),s?.view,i,a,o?.snapshot(null));return r.impl.register(l),l}var IP=new O("",{providedIn:"root",factory:()=>({queue:new Set,isScheduled:!1,scheduler:null})});function AP(t,n,e){let i=t.get(IP);if(Array.isArray(n))for(let r of n)i.queue.add(r),e?.detachedLeaveAnimationFns?.push(r);else i.queue.add(n),e?.detachedLeaveAnimationFns?.push(n);i.scheduler&&i.scheduler(t)}function O7(t,n){let e=t.get(IP);if(n.detachedLeaveAnimationFns){for(let i of n.detachedLeaveAnimationFns)e.queue.delete(i);n.detachedLeaveAnimationFns=void 0}}function R7(t,n){for(let[e,i]of n)AP(t,i.animateFns)}function hR(t,n,e,i){let r=t?.[Td]?.enter;n!==null&&r&&r.has(e.index)&&R7(i,r)}function um(t,n,e,i,r,o,a,s){if(r!=null){let l,c=!1;Pa(r)?l=r:fs(r)&&(c=!0,r=r[Ra]);let d=Go(r);t===0&&i!==null?(hR(s,i,o,e),a==null?_P(n,i,d):Jb(n,i,d,a||null,!0)):t===1&&i!==null?(hR(s,i,o,e),Jb(n,i,d,a||null,!0)):t===2?pR(s,o,e,p=>{bP(n,d,c,p)}):t===3&&pR(s,o,e,()=>{n.destroyNode(d)}),l!=null&&$7(n,t,e,l,o,i,a)}}function P7(t,n){OP(t,n),n[Ra]=null,n[Br]=null}function F7(t,n,e,i,r,o){i[Ra]=r,i[Br]=n,x0(t,i,e,1,r,o)}function OP(t,n){n[hs].changeDetectionScheduler?.notify(9),x0(t,n,n[mi],2,null,null)}function N7(t){let n=t[nm];if(!n)return d1(t[We],t);for(;n;){let e=null;if(fs(n))e=n[nm];else{let i=n[tn];i&&(e=i)}if(!e){for(;n&&!n[Wo]&&n!==t;)fs(n)&&d1(n[We],n),n=n[wn];n===null&&(n=t),fs(n)&&d1(n[We],n),e=n&&n[Wo]}n=e}}function MM(t,n){let e=t[Id],i=e.indexOf(n);e.splice(i,1)}function y0(t,n){if(Ad(n))return;let e=n[mi];e.destroyNode&&x0(t,n,e,3,null,null),N7(n)}function d1(t,n){if(Ad(n))return;let e=tt(null);try{n[nt]&=-129,n[nt]|=256,n[wo]&&ql(n[wo]),B7(t,n),V7(t,n),n[We].type===1&&n[mi].destroy();let i=n[rc];if(i!==null&&Pa(n[wn])){i!==n[wn]&&MM(i,n);let r=n[ps];r!==null&&r.detachView(t)}C1(n)}finally{tt(e)}}function pR(t,n,e,i){let r=t?.[Td];if(r==null||r.leave==null||!r.leave.has(n.index))return i(!1);t&&Nd.add(t),AP(e,()=>{if(r.leave&&r.leave.has(n.index)){let a=r.leave.get(n.index),s=[];if(a){for(let l=0;l{t[Td].running=void 0,Nd.delete(t),n(!0)});return}n(!1)}function V7(t,n){let e=t.cleanup,i=n[im];if(e!==null)for(let a=0;a=0?i[s]():i[-s].unsubscribe(),a+=2}else{let s=i[e[a+1]];e[a].call(s)}i!==null&&(n[im]=null);let r=n[al];if(r!==null){n[al]=null;for(let a=0;avi&&EP(t,n,vi,!1),hi(a?2:0,r,e),e(i,r)}finally{sc(o),hi(a?3:1,r,e)}}function C0(t,n,e){K7(t,n,e),(e.flags&64)===64&&Z7(t,n,e)}function Cm(t,n,e=qo){let i=n.localNames;if(i!==null){let r=n.index+1;for(let o=0;onull;function Q7(t){return t==="class"?"className":t==="for"?"htmlFor":t==="formaction"?"formAction":t==="innerHtml"?"innerHTML":t==="readonly"?"readOnly":t==="tabindex"?"tabIndex":t}function VP(t,n,e,i,r,o){let a=n[We];if(M0(t,a,n,e,i)){dl(t)&&jP(n,t.index);return}t.type&3&&(e=Q7(e)),BP(t,n,e,i,r,o)}function BP(t,n,e,i,r,o){if(t.type&3){let a=qo(t,n);i=o!=null?o(i,t.value||"",e):i,r.setProperty(a,e,i)}else t.type&12}function jP(t,n){let e=Yo(n,t);e[nt]&16||(e[nt]|=64)}function K7(t,n,e){let i=e.directiveStart,r=e.directiveEnd;dl(e)&&C7(n,e,t.data[i+e.componentOffset]),t.firstCreatePass||Xb(e,n);let o=e.initialInputs;for(let a=i;a{ac(t.lView)},consumerOnSignalRead(){this.lView[wo]=this}});function c9(t){let n=t[wo]??Object.create(d9);return n.lView=t,n}var d9=Me(I({},dd),{consumerIsAlwaysLive:!0,kind:"template",consumerMarkedDirty:t=>{let n=nc(t.lView);for(;n&&!WP(n[We]);)n=nc(n);n&&zD(n)},consumerOnSignalRead(){this.lView[wo]=this}});function WP(t){return t.type!==2}function GP(t){if(t[cl]===null)return;let n=!0;for(;n;){let e=!1;for(let i of t[cl])i.dirty&&(e=!0,i.zone===null||Zone.current===i.zone?i.run():i.zone.run(()=>i.run()));n=e&&!!(t[nt]&8192)}}var u9=100;function qP(t,n=0){let i=t[hs].rendererFactory,r=!1;r||i.begin?.();try{m9(t,n)}finally{r||i.end?.()}}function m9(t,n){let e=JD();try{lm(!0),L1(t,n);let i=0;for(;Lp(t);){if(i===u9)throw new ue(103,!1);i++,L1(t,1)}}finally{lm(e)}}function h9(t,n,e,i){if(Ad(n))return;let r=n[nt],o=!1,a=!1;Rb(n);let s=!0,l=null,c=null;o||(WP(t)?(c=o9(n),l=Gl(c)):N_()===null?(s=!1,c=c9(n),l=Gl(c)):n[wo]&&(ql(n[wo]),n[wo]=null));try{HD(n),LO(t.bindingStartIndex),e!==null&&LP(t,n,e,2,i);let d=(r&3)===3;if(!o)if(d){let b=t.preOrderCheckHooks;b!==null&&Ub(n,b,null)}else{let b=t.preOrderHooks;b!==null&&$b(n,b,0,null),l1(n,0)}if(a||p9(n),GP(n),YP(n,0),t.contentQueries!==null&&lP(t,n),!o)if(d){let b=t.contentCheckHooks;b!==null&&Ub(n,b)}else{let b=t.contentHooks;b!==null&&$b(n,b,1),l1(n,1)}g9(t,n);let p=t.components;p!==null&&KP(n,p,0);let _=t.viewQuery;if(_!==null&&D1(2,_,i),!o)if(d){let b=t.viewCheckHooks;b!==null&&Ub(n,b)}else{let b=t.viewHooks;b!==null&&$b(n,b,2),l1(n,2)}if(t.firstUpdatePass===!0&&(t.firstUpdatePass=!1),n[Sb]){for(let b of n[Sb])b();n[Sb]=null}o||(UP(n),n[nt]&=-73)}catch(d){throw o||ac(n),d}finally{c!==null&&(ud(c,l),s&&s9(c)),Pb()}}function YP(t,n){for(let e=eP(t);e!==null;e=tP(e))for(let i=tn;i0&&(t[e-1][Wo]=i[Wo]);let o=Ap(t,tn+n);P7(i[We],i);let a=o[ps];a!==null&&a.detachView(o[We]),i[wn]=null,i[Wo]=null,i[nt]&=-129}return i}function _9(t,n,e,i){let r=tn+i,o=e.length;i>0&&(e[r-1][Wo]=n),i-1&&(Qp(n,i),Ap(e,i))}this._attachedToViewContainer=!1}y0(this._lView[We],this._lView)}onDestroy(n){UD(this._lView,n)}markForCheck(){IM(this._cdRefInjectingView||this._lView,4)}detach(){this._lView[nt]&=-129}reattach(){Tb(this._lView),this._lView[nt]|=128}detectChanges(){this._lView[nt]|=1024,qP(this._lView)}checkNoChanges(){}attachToViewContainerRef(){if(this._appRef)throw new ue(902,!1);this._attachedToViewContainer=!0}detachFromAppRef(){this._appRef=null;let n=om(this._lView),e=this._lView[rc];e!==null&&!n&&MM(e,this._lView),OP(this._lView[We],this._lView)}attachToAppRef(n){if(this._attachedToViewContainer)throw new ue(902,!1);this._appRef=n;let e=om(this._lView),i=this._lView[rc];i!==null&&!e&&eF(i,this._lView),Tb(this._lView)}};var te=(()=>{class t{_declarationLView;_declarationTContainer;elementRef;static __NG_ELEMENT_ID__=b9;constructor(e,i,r){this._declarationLView=e,this._declarationTContainer=i,this.elementRef=r}get ssrId(){return this._declarationTContainer.tView?.ssrId||null}createEmbeddedView(e,i){return this.createEmbeddedViewImpl(e,i)}createEmbeddedViewImpl(e,i,r){let o=of(this._declarationLView,this._declarationTContainer,e,{embeddedViewInjector:i,dehydratedView:r});return new lc(o)}}return t})();function b9(){return E0(sn(),Le())}function E0(t,n){return t.type&4?new te(n,t,ym(t,n)):null}function wm(t,n,e,i,r){let o=t.data[n];if(o===null)o=v9(t,n,e,i,r),VO()&&(o.flags|=32);else if(o.type&64){o.type=e,o.value=i,o.attrs=r;let a=FO();o.injectorIndex=a===null?-1:a.injectorIndex}return sm(o,!0),o}function v9(t,n,e,i,r){let o=KD(),a=ZD(),s=a?o:o&&o.parent,l=t.data[n]=x9(t,s,e,n,i,r);return y9(t,l,o,a),l}function y9(t,n,e,i){t.firstChild===null&&(t.firstChild=n),e!==null&&(i?e.child==null&&n.parent!==null&&(e.child=n):e.next===null&&(e.next=n,n.prev=e))}function x9(t,n,e,i,r,o){let a=n?n.injectorIndex:-1,s=0;return qD()&&(s|=128),{type:e,index:i,insertBeforeIndex:null,injectorIndex:a,directiveStart:-1,directiveEnd:-1,directiveStylingLast:-1,componentOffset:-1,propertyBindings:null,flags:s,providerIndexes:0,value:r,attrs:o,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}}var kAe=new RegExp(`^(\\d+)*(${TW}|${kW})*(.*)`);function C9(t){let n=t[ND]??[],i=t[wn][mi],r=[];for(let o of n)o.data[rP]!==void 0?r.push(o):w9(o,i);t[ND]=r}function w9(t,n){let e=0,i=t.firstChild;if(i){let r=t.data[nP];for(;enull,M9=()=>null;function t0(t,n){return D9(t,n)}function tF(t,n,e){return M9(t,n,e)}var Bd=class{},S0=class{},V1=class{resolveComponentFactory(n){throw new ue(917,!1)}},sf=class{static NULL=new V1},hn=class{},ze=(()=>{class t{destroyNode=null;static __NG_ELEMENT_ID__=()=>E9()}return t})();function E9(){let t=Le(),n=sn(),e=Yo(n.index,t);return(fs(e)?e:t)[mi]}var iF=(()=>{class t{static \u0275prov=R({token:t,providedIn:"root",factory:()=>null})}return t})();var Gb={},B1=class{injector;parentInjector;constructor(n,e){this.injector=n,this.parentInjector=e}get(n,e,i){let r=this.injector.get(n,Gb,i);return r!==Gb||e===Gb?r:this.parentInjector.get(n,e,i)}};function i0(t,n,e){let i=e?t.styles:null,r=e?t.classes:null,o=0;if(n!==null)for(let a=0;a0&&(e.directiveToIndex=new Map);for(let _=0;_0;){let e=t[--n];if(typeof e=="number"&&e<0)return e}return 0}function P9(t,n,e){if(e){if(n.exportAs)for(let i=0;ii(Go(w[t.index])):t.index;dF(y,n,e,o,s,b,!1)}}return c}function V9(t){return t.startsWith("animation")||t.startsWith("transition")}function B9(t,n,e,i){let r=t.cleanup;if(r!=null)for(let o=0;ol?s[l]:null}typeof a=="string"&&(o+=2)}return null}function dF(t,n,e,i,r,o,a){let s=n.firstCreatePass?WD(n):null,l=$D(e),c=l.length;l.push(r,o),s&&s.push(i,t,c,(c+1)*(a?-1:1))}function yR(t,n,e,i,r,o){let a=n[e],s=n[We],c=s.data[e].outputs[i],p=a[c].subscribe(o);dF(t.index,s,n,r,o,p,!0)}var j1=Symbol("BINDING");var n0=class extends sf{ngModule;constructor(n){super(),this.ngModule=n}resolveComponentFactory(n){let e=ms(n);return new cc(e,this.ngModule)}};function j9(t){return Object.keys(t).map(n=>{let[e,i,r]=t[n],o={propName:e,templateName:n,isSignal:(i&_0.SignalBased)!==0};return r&&(o.transform=r),o})}function H9(t){return Object.keys(t).map(n=>({propName:t[n],templateName:n}))}function z9(t,n,e){let i=n instanceof ti?n:n?.injector;return i&&t.getStandaloneInjector!==null&&(i=t.getStandaloneInjector(i)||i),i?new B1(e,i):e}function U9(t){let n=t.get(hn,null);if(n===null)throw new ue(407,!1);let e=t.get(iF,null),i=t.get(Ho,null);return{rendererFactory:n,sanitizer:e,changeDetectionScheduler:i,ngReflect:!1}}function $9(t,n){let e=uF(t);return gP(n,e,e==="svg"?VD:e==="math"?SO:null)}function uF(t){return(t.selectors[0][0]||"div").toLowerCase()}var cc=class extends S0{componentDef;ngModule;selector;componentType;ngContentSelectors;isBoundToModule;cachedInputs=null;cachedOutputs=null;get inputs(){return this.cachedInputs??=j9(this.componentDef.inputs),this.cachedInputs}get outputs(){return this.cachedOutputs??=H9(this.componentDef.outputs),this.cachedOutputs}constructor(n,e){super(),this.componentDef=n,this.ngModule=e,this.componentType=n.type,this.selector=b7(n.selectors),this.ngContentSelectors=n.ngContentSelectors??[],this.isBoundToModule=!!e}create(n,e,i,r,o,a){hi(22);let s=tt(null);try{let l=this.componentDef,c=W9(i,l,a,o),d=z9(l,r||this.ngModule,n),p=U9(d),_=p.rendererFactory.createRenderer(null,l),b=i?G7(_,i,l.encapsulation,d):$9(l,_),y=a?.some(xR)||o?.some(D=>typeof D!="function"&&D.bindings.some(xR)),w=bM(null,c,null,512|DP(l),null,null,p,_,d,null,sP(b,d,!0));w[vi]=b,Rb(w);let C=null;try{let D=AM(vi,w,2,"#host",()=>c.directiveRegistry,!0,0);vP(_,b,D),pm(b,w),C0(c,w,D),lM(c,D,w),OM(c,D),e!==void 0&&q9(D,this.ngContentSelectors,e),C=Yo(D.index,w),w[en]=C[en],TM(c,w,null)}catch(D){throw C!==null&&C1(C),C1(w),D}finally{hi(23),Pb()}return new r0(this.componentType,w,!!y)}finally{tt(s)}}};function W9(t,n,e,i){let r=t?["ng-version","20.3.16"]:v7(n.selectors[0]),o=null,a=null,s=0;if(e)for(let d of e)s+=d[j1].requiredVars,d.create&&(d.targetIdx=0,(o??=[]).push(d)),d.update&&(d.targetIdx=0,(a??=[]).push(d));if(i)for(let d=0;d{if(e&1&&t)for(let i of t)i.create();if(e&2&&n)for(let i of n)i.update()}}function xR(t){let n=t[j1].kind;return n==="input"||n==="twoWay"}var r0=class extends Bd{_rootLView;_hasInputBindings;instance;hostView;changeDetectorRef;componentType;location;previousInputValues=null;_tNode;constructor(n,e,i){super(),this._rootLView=e,this._hasInputBindings=i,this._tNode=Np(e[We],vi),this.location=ym(this._tNode,e),this.instance=Yo(this._tNode.index,e)[en],this.hostView=this.changeDetectorRef=new lc(e,void 0),this.componentType=n}setInput(n,e){this._hasInputBindings;let i=this._tNode;if(this.previousInputValues??=new Map,this.previousInputValues.has(n)&&Object.is(this.previousInputValues.get(n),e))return;let r=this._rootLView,o=M0(i,r[We],r,n,e);this.previousInputValues.set(n,e);let a=Yo(i.index,r);IM(a,1)}get injector(){return new Pd(this._tNode,this._rootLView)}destroy(){this.hostView.destroy()}onDestroy(n){this.hostView.onDestroy(n)}};function q9(t,n,e){let i=t.projection=[];for(let r=0;r{class t{static __NG_ELEMENT_ID__=Y9}return t})();function Y9(){let t=sn();return hF(t,Le())}var Q9=st,mF=class extends Q9{_lContainer;_hostTNode;_hostLView;constructor(n,e,i){super(),this._lContainer=n,this._hostTNode=e,this._hostLView=i}get element(){return ym(this._hostTNode,this._hostLView)}get injector(){return new Pd(this._hostTNode,this._hostLView)}get parentInjector(){let n=rM(this._hostTNode,this._hostLView);if(zR(n)){let e=Kb(n,this._hostLView),i=Qb(n),r=e[We].data[i+8];return new Pd(r,e)}else return new Pd(null,this._hostLView)}clear(){for(;this.length>0;)this.remove(this.length-1)}get(n){let e=CR(this._lContainer);return e!==null&&e[n]||null}get length(){return this._lContainer.length-tn}createEmbeddedView(n,e,i){let r,o;typeof i=="number"?r=i:i!=null&&(r=i.index,o=i.injector);let a=t0(this._lContainer,n.ssrId),s=n.createEmbeddedViewImpl(e||{},o,a);return this.insertImpl(s,r,fm(this._hostTNode,a)),s}createComponent(n,e,i,r,o,a,s){let l=n&&!nW(n),c;if(l)c=e;else{let C=e||{};c=C.index,i=C.injector,r=C.projectableNodes,o=C.environmentInjector||C.ngModuleRef,a=C.directives,s=C.bindings}let d=l?n:new cc(ms(n)),p=i||this.parentInjector;if(!o&&d.ngModule==null){let D=(l?p:this.parentInjector).get(ti,null);D&&(o=D)}let _=ms(d.componentType??{}),b=t0(this._lContainer,_?.id??null),y=b?.firstChild??null,w=d.create(p,r,y,o,a,s);return this.insertImpl(w.hostView,c,fm(this._hostTNode,b)),w}insert(n,e){return this.insertImpl(n,e,!0)}insertImpl(n,e,i){let r=n._lView;if(TO(r)){let s=this.indexOf(n);if(s!==-1)this.detach(s);else{let l=r[wn],c=new mF(l,l[Br],l[wn]);c.detach(c.indexOf(n))}}let o=this._adjustIndex(e),a=this._lContainer;return af(a,r,o,i),n.attachToViewContainerRef(),SD(u1(a),o,n),n}move(n,e){return this.insert(n,e)}indexOf(n){let e=CR(this._lContainer);return e!==null?e.indexOf(n):-1}remove(n){let e=this._adjustIndex(n,-1),i=Qp(this._lContainer,e);i&&(Ap(u1(this._lContainer),e),y0(i[We],i))}detach(n){let e=this._adjustIndex(n,-1),i=Qp(this._lContainer,e);return i&&Ap(u1(this._lContainer),e)!=null?new lc(i):null}_adjustIndex(n,e=0){return n??this.length+e}};function CR(t){return t[Fp]}function u1(t){return t[Fp]||(t[Fp]=[])}function hF(t,n){let e,i=n[t.index];return Pa(i)?e=i:(e=ZP(i,n,null,t),n[t.index]=e,vM(n,e)),Z9(e,n,t,i),new mF(e,t,n)}function K9(t,n){let e=t[mi],i=e.createComment(""),r=qo(n,t),o=e.parentNode(r);return Jb(e,o,i,e.nextSibling(r),!1),i}var Z9=eG,X9=()=>!1;function J9(t,n,e){return X9(t,n,e)}function eG(t,n,e,i){if(t[oc])return;let r;e.type&8?r=Go(i):r=K9(n,e),t[oc]=r}var H1=class t{queryList;matches=null;constructor(n){this.queryList=n}clone(){return new t(this.queryList)}setDirty(){this.queryList.setDirty()}},z1=class t{queries;constructor(n=[]){this.queries=n}createEmbeddedView(n){let e=n.queries;if(e!==null){let i=n.contentQueries!==null?n.contentQueries[0]:e.length,r=[];for(let o=0;o0)i.push(a[s/2]);else{let c=o[s+1],d=n[-l];for(let p=tn;pn.trim())}function bF(t,n,e){t.queries===null&&(t.queries=new U1),t.queries.track(new $1(n,e))}function aG(t,n){let e=t.contentQueries||(t.contentQueries=[]),i=e.length?e[e.length-1]:-1;n!==i&&e.push(t.queries.length-1,n)}function FM(t,n){return t.queries.getByIndex(n)}function vF(t,n){let e=t[We],i=FM(e,n);return i.crossesNgTemplate?W1(e,t,n,[]):pF(e,t,i,n)}function NM(t,n,e){let i,r=yp(()=>{i._dirtyCounter();let o=sG(i,t);if(n&&o===void 0)throw new ue(-951,!1);return o});return i=r[mn],i._dirtyCounter=he(0),i._flatValue=void 0,r}function LM(t){return NM(!0,!1,t)}function VM(t){return NM(!0,!0,t)}function yF(t){return NM(!1,!1,t)}function xF(t,n){let e=t[mn];e._lView=Le(),e._queryIndex=n,e._queryList=PM(e._lView,n),e._queryList.onDirty(()=>e._dirtyCounter.update(i=>i+1))}function sG(t,n){let e=t._lView,i=t._queryIndex;if(e===void 0||i===void 0||e[nt]&4)return n?void 0:xr;let r=PM(e,i),o=vF(e,i);return r.reset(o,ZR),n?r.first:r._changesDetected||t._flatValue===void 0?t._flatValue=r.toArray():t._flatValue}var Cs=class{},k0=class{};var a0=class extends Cs{ngModuleType;_parent;_bootstrapComponents=[];_r3Injector;instance;destroyCbs=[];componentFactoryResolver=new n0(this);constructor(n,e,i,r=!0){super(),this.ngModuleType=n,this._parent=e;let o=ID(n);this._bootstrapComponents=xP(o.bootstrap),this._r3Injector=n1(n,e,[{provide:Cs,useValue:this},{provide:sf,useValue:this.componentFactoryResolver},...i],sl(n),new Set(["environment"])),r&&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)}},s0=class extends k0{moduleType;constructor(n){super(),this.moduleType=n}create(n){return new a0(this.moduleType,n,[])}};var Zp=class extends Cs{injector;componentFactoryResolver=new n0(this);instance=null;constructor(n){super();let e=new wd([...n.providers,{provide:Cs,useValue:this},{provide:sf,useValue:this.componentFactoryResolver}],n.parent||tm(),n.debugName,new Set(["environment"]));this.injector=e,n.runEnvironmentInitializers&&e.resolveInjectorInitializers()}destroy(){this.injector.destroy()}onDestroy(n){this.injector.onDestroy(n)}};function Dm(t,n,e=null){return new Zp({providers:t,parent:n,debugName:e,runEnvironmentInitializers:!0}).injector}var lG=(()=>{class t{_injector;cachedInjectors=new Map;constructor(e){this._injector=e}getOrCreateStandaloneInjector(e){if(!e.standalone)return null;if(!this.cachedInjectors.has(e)){let i=AD(!1,e.type),r=i.length>0?Dm([i],this._injector,`Standalone[${e.type.name}]`):null;this.cachedInjectors.set(e,r)}return this.cachedInjectors.get(e)}ngOnDestroy(){try{for(let e of this.cachedInjectors.values())e!==null&&e.destroy()}finally{this.cachedInjectors.clear()}}static \u0275prov=R({token:t,providedIn:"environment",factory:()=>new t(pe(ti))})}return t})();function E(t){return vm(()=>{let n=CF(t),e=Me(I({},n),{decls:t.decls,vars:t.vars,template:t.template,consts:t.consts||null,ngContentSelectors:t.ngContentSelectors,onPush:t.changeDetection===oM.OnPush,directiveDefs:null,pipeDefs:null,dependencies:n.standalone&&t.dependencies||null,getStandaloneInjector:n.standalone?r=>r.get(lG).getOrCreateStandaloneInjector(e):null,getExternalStyles:null,signals:t.signals??!1,data:t.data||{},encapsulation:t.encapsulation||ul.Emulated,styles:t.styles||xr,_:null,schemas:t.schemas||null,tView:null,id:""});n.standalone&&Ms("NgStandalone"),wF(e);let i=t.dependencies;return e.directiveDefs=wR(i,cG),e.pipeDefs=wR(i,yO),e.id=mG(e),e})}function cG(t){return ms(t)||Mb(t)}function ee(t){return vm(()=>({type:t.type,bootstrap:t.bootstrap||xr,declarations:t.declarations||xr,imports:t.imports||xr,exports:t.exports||xr,transitiveCompileScopes:null,schemas:t.schemas||null,id:t.id||null}))}function dG(t,n){if(t==null)return Oa;let e={};for(let i in t)if(t.hasOwnProperty(i)){let r=t[i],o,a,s,l;Array.isArray(r)?(s=r[0],o=r[1],a=r[2]??o,l=r[3]||null):(o=r,a=r,s=_0.None,l=null),e[o]=[i,s,l],n[o]=a}return e}function uG(t){if(t==null)return Oa;let n={};for(let e in t)t.hasOwnProperty(e)&&(n[t[e]]=e);return n}function P(t){return vm(()=>{let n=CF(t);return wF(n),n})}function io(t){return{type:t.type,name:t.name,factory:null,pure:t.pure!==!1,standalone:t.standalone??!0,onDestroy:t.type.prototype.ngOnDestroy||null}}function CF(t){let n={};return{type:t.type,providersResolver:null,factory:null,hostBindings:t.hostBindings||null,hostVars:t.hostVars||0,hostAttrs:t.hostAttrs||null,contentQueries:t.contentQueries||null,declaredInputs:n,inputConfig:t.inputs||Oa,exportAs:t.exportAs||null,standalone:t.standalone??!0,signals:t.signals===!0,selectors:t.selectors||xr,viewQuery:t.viewQuery||null,features:t.features||null,setInput:null,resolveHostDirectives:null,hostDirectives:null,inputs:dG(t.inputs,n),outputs:uG(t.outputs),debugInfo:null}}function wF(t){t.features?.forEach(n=>n(t))}function wR(t,n){return t?()=>{let e=typeof t=="function"?t():t,i=[];for(let r of e){let o=n(r);o!==null&&i.push(o)}return i}:null}function mG(t){let n=0,e=typeof t.consts=="function"?"":t.consts,i=[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 o of i.join("|"))n=Math.imul(31,n)+o.charCodeAt(0)<<0;return n+=2147483648,"c"+n}function hG(t){return Object.getPrototypeOf(t.prototype).constructor}function le(t){let n=hG(t.type),e=!0,i=[t];for(;n;){let r;if(Fa(t))r=n.\u0275cmp||n.\u0275dir;else{if(n.\u0275cmp)throw new ue(903,!1);r=n.\u0275dir}if(r){if(e){i.push(r);let a=t;a.inputs=m1(t.inputs),a.declaredInputs=m1(t.declaredInputs),a.outputs=m1(t.outputs);let s=r.hostBindings;s&&bG(t,s);let l=r.viewQuery,c=r.contentQueries;if(l&&gG(t,l),c&&_G(t,c),pG(t,r),uO(t.outputs,r.outputs),Fa(r)&&r.data.animation){let d=t.data;d.animation=(d.animation||[]).concat(r.data.animation)}}let o=r.features;if(o)for(let a=0;a=0;i--){let r=t[i];r.hostVars=n+=r.hostVars,r.hostAttrs=hm(r.hostAttrs,e=hm(e,r.hostAttrs))}}function m1(t){return t===Oa?{}:t===xr?[]:t}function gG(t,n){let e=t.viewQuery;e?t.viewQuery=(i,r)=>{n(i,r),e(i,r)}:t.viewQuery=n}function _G(t,n){let e=t.contentQueries;e?t.contentQueries=(i,r,o)=>{n(i,r,o),e(i,r,o)}:t.contentQueries=n}function bG(t,n){let e=t.hostBindings;e?t.hostBindings=(i,r)=>{n(i,r),e(i,r)}:t.hostBindings=n}function Mm(t){let n=e=>{let i=Array.isArray(t);e.hostDirectives===null?(e.resolveHostDirectives=vG,e.hostDirectives=i?t.map(G1):[t]):i?e.hostDirectives.unshift(...t.map(G1)):e.hostDirectives.unshift(t)};return n.ngInherit=!0,n}function vG(t){let n=[],e=!1,i=null,r=null;for(let o=0;o{class t{log(e){console.log(e)}warn(e){console.warn(e)}static \u0275fac=function(i){return new(i||t)};static \u0275prov=R({token:t,factory:t.\u0275fac,providedIn:"platform"})}return t})();var BM=new O("");function fl(t){return!!t&&typeof t.then=="function"}function I0(t){return!!t&&typeof t.subscribe=="function"}var jM=new O("");function hc(t){return Jr([{provide:jM,multi:!0,useValue:t}])}var HM=(()=>{class t{resolve;reject;initialized=!1;done=!1;donePromise=new Promise((e,i)=>{this.resolve=e,this.reject=i});appInits=u(jM,{optional:!0})??[];injector=u(de);constructor(){}runInitializers(){if(this.initialized)return;let e=[];for(let r of this.appInits){let o=Vn(this.injector,r);if(fl(o))e.push(o);else if(I0(o)){let a=new Promise((s,l)=>{o.subscribe({complete:s,error:l})});e.push(a)}}let i=()=>{this.done=!0,this.resolve()};Promise.all(e).then(()=>{i()}).catch(r=>{this.reject(r)}),e.length===0&&i(),this.initialized=!0}static \u0275fac=function(i){return new(i||t)};static \u0275prov=R({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),cf=new O("");function EF(){Vw(()=>{let t="";throw new ue(600,t)})}function SF(t){return t.isBoundToModule}var DG=10;var tr=(()=>{class t{_runningTick=!1;_destroyed=!1;_destroyListeners=[];_views=[];internalErrorHandler=u(wr);afterRenderManager=u(v0);zonelessEnabled=u(Hp);rootEffectScheduler=u(zp);dirtyFlags=0;tracingSnapshot=null;allTestViews=new Set;autoDetectTestViews=new Set;includeAllTestViews=!1;afterTick=new z;get allViews(){return[...(this.includeAllTestViews?this.allTestViews:this.autoDetectTestViews).keys(),...this._views]}get destroyed(){return this._destroyed}componentTypes=[];components=[];internalPendingTask=u(vs);get isStable(){return this.internalPendingTask.hasPendingTasksObservable.pipe(se(e=>!e))}constructor(){u(mc,{optional:!0})}whenStable(){let e;return new Promise(i=>{e=this.isStable.subscribe({next:r=>{r&&i()}})}).finally(()=>{e.unsubscribe()})}_injector=u(ti);_rendererFactory=null;get injector(){return this._injector}bootstrap(e,i){return this.bootstrapImpl(e,i)}bootstrapImpl(e,i,r=de.NULL){return this._injector.get(ae).run(()=>{hi(10);let a=e instanceof S0;if(!this._injector.get(HM).done){let y="";throw new ue(405,y)}let l;a?l=e:l=this._injector.get(sf).resolveComponentFactory(e),this.componentTypes.push(l.componentType);let c=SF(l)?void 0:this._injector.get(Cs),d=i||l.selector,p=l.create(r,[],d,c),_=p.location.nativeElement,b=p.injector.get(BM,null);return b?.registerApplication(_),p.onDestroy(()=>{this.detachView(p.hostView),$p(this.components,p),b?.unregisterApplication(_)}),this._loadComponent(p),hi(11,p),p})}tick(){this.zonelessEnabled||(this.dirtyFlags|=1),this._tick()}_tick(){hi(12),this.tracingSnapshot!==null?this.tracingSnapshot.run(b0.CHANGE_DETECTION,this.tickImpl):this.tickImpl()}tickImpl=()=>{if(this._runningTick)throw new ue(101,!1);let e=tt(null);try{this._runningTick=!0,this.synchronize()}finally{this._runningTick=!1,this.tracingSnapshot?.dispose(),this.tracingSnapshot=null,tt(e),this.afterTick.next(),hi(13)}};synchronize(){this._rendererFactory===null&&!this._injector.destroyed&&(this._rendererFactory=this._injector.get(hn,null,{optional:!0}));let e=0;for(;this.dirtyFlags!==0&&e++Lp(e))){this.dirtyFlags|=2;return}else this.dirtyFlags&=-8}attachView(e){let i=e;this._views.push(i),i.attachToAppRef(this)}detachView(e){let i=e;$p(this._views,i),i.detachFromAppRef()}_loadComponent(e){this.attachView(e.hostView);try{this.tick()}catch(r){this.internalErrorHandler(r)}this.components.push(e),this._injector.get(cf,[]).forEach(r=>r(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),()=>$p(this._destroyListeners,e)}destroy(){if(this._destroyed)throw new ue(406,!1);let e=this._injector;e.destroy&&!e.destroyed&&e.destroy()}get viewCount(){return this._views.length}static \u0275fac=function(i){return new(i||t)};static \u0275prov=R({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();function $p(t,n){let e=t.indexOf(n);e>-1&&t.splice(e,1)}function pc(t,n){let e=Le(),i=_s();if(jr(e,i,n)){let r=Di(),o=cm();if(M0(o,r,e,t,n))dl(o)&&jP(e,o.index);else{let s=qo(o,e);HP(e[mi],s,null,o.value,t,n,null)}}return pc}function X(t,n,e,i){let r=Le(),o=_s();if(jr(r,o,n)){let a=Di(),s=cm();J7(s,r,t,n,e,i)}return X}var FAe=typeof document<"u"&&typeof document?.documentElement?.getAnimations=="function";function A0(){return Le()[Cr][en]}var q1=class{destroy(n){}updateValue(n,e){}swap(n,e){let i=Math.min(n,e),r=Math.max(n,e),o=this.detach(r);if(r-i>1){let a=this.detach(i);this.attach(i,o),this.attach(r,a)}else this.attach(i,o)}move(n,e){this.attach(e,this.detach(n))}};function h1(t,n,e,i,r){return t===e&&Object.is(n,i)?1:Object.is(r(t,n),r(e,i))?-1:0}function MG(t,n,e){let i,r,o=0,a=t.length-1,s=void 0;if(Array.isArray(n)){let l=n.length-1;for(;o<=a&&o<=l;){let c=t.at(o),d=n[o],p=h1(o,c,o,d,e);if(p!==0){p<0&&t.updateValue(o,d),o++;continue}let _=t.at(a),b=n[l],y=h1(a,_,l,b,e);if(y!==0){y<0&&t.updateValue(a,b),a--,l--;continue}let w=e(o,c),C=e(a,_),D=e(o,d);if(Object.is(D,C)){let F=e(l,b);Object.is(F,w)?(t.swap(o,a),t.updateValue(a,b),l--,a--):t.move(a,o),t.updateValue(o,d),o++;continue}if(i??=new l0,r??=SR(t,o,a,e),Y1(t,i,o,D))t.updateValue(o,d),o++,a++;else if(r.has(D))i.set(w,t.detach(o)),a--;else{let F=t.create(o,n[o]);t.attach(o,F),o++,a++}}for(;o<=l;)ER(t,i,e,o,n[o]),o++}else if(n!=null){let l=n[Symbol.iterator](),c=l.next();for(;!c.done&&o<=a;){let d=t.at(o),p=c.value,_=h1(o,d,o,p,e);if(_!==0)_<0&&t.updateValue(o,p),o++,c=l.next();else{i??=new l0,r??=SR(t,o,a,e);let b=e(o,p);if(Y1(t,i,o,b))t.updateValue(o,p),o++,a++,c=l.next();else if(!r.has(b))t.attach(o,t.create(o,p)),o++,a++,c=l.next();else{let y=e(o,d);i.set(y,t.detach(o)),a--}}}for(;!c.done;)ER(t,i,e,t.length,c.value),c=l.next()}for(;o<=a;)t.destroy(t.detach(a--));i?.forEach(l=>{t.destroy(l)})}function Y1(t,n,e,i){return n!==void 0&&n.has(i)?(t.attach(e,n.get(i)),n.delete(i),!0):!1}function ER(t,n,e,i,r){if(Y1(t,n,i,e(i,r)))t.updateValue(i,r);else{let o=t.create(i,r);t.attach(i,o)}}function SR(t,n,e,i){let r=new Set;for(let o=n;o<=e;o++)r.add(i(o,t.at(o)));return r}var l0=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 i=this.kvMap.get(n);this._vMap===void 0&&(this._vMap=new Map);let r=this._vMap;for(;r.has(i);)i=r.get(i);r.set(i,e)}else this.kvMap.set(n,e)}forEach(n){for(let[e,i]of this.kvMap)if(n(i,e),this._vMap!==void 0){let r=this._vMap;for(;r.has(i);)i=r.get(i),n(i,e)}}};function V(t,n,e,i,r,o,a,s){Ms("NgControlFlow");let l=Le(),c=Di(),d=Do(c.consts,o);return gm(l,c,t,n,e,i,r,d,256,a,s),zM}function zM(t,n,e,i,r,o,a,s){Ms("NgControlFlow");let l=Le(),c=Di(),d=Do(c.consts,o);return gm(l,c,t,n,e,i,r,d,512,a,s),zM}function B(t,n){Ms("NgControlFlow");let e=Le(),i=_s(),r=e[i]!==jn?e[i]:-1,o=r!==-1?c0(e,vi+r):void 0,a=0;if(jr(e,i,t)){let s=tt(null);try{if(o!==void 0&&JP(o,a),t!==-1){let l=vi+t,c=c0(e,l),d=X1(e[We],l),p=tF(c,d,e),_=of(e,d,n,{dehydratedView:p});af(c,_,a,fm(d,p))}}finally{tt(s)}}else if(o!==void 0){let s=XP(o,a);s!==void 0&&(s[en]=n)}}var Q1=class{lContainer;$implicit;$index;constructor(n,e,i){this.lContainer=n,this.$implicit=e,this.$index=i}get $count(){return this.lContainer.length-tn}};function Yi(t){return t}function Em(t,n){return n}var K1=class{hasEmptyBlock;trackByFn;liveCollection;constructor(n,e,i){this.hasEmptyBlock=n,this.trackByFn=e,this.liveCollection=i}};function Mt(t,n,e,i,r,o,a,s,l,c,d,p,_){Ms("NgControlFlow");let b=Le(),y=Di(),w=l!==void 0,C=Le(),D=s?a.bind(C[Cr][en]):a,F=new K1(w,D);C[vi+t]=F,gm(b,y,t+1,n,e,i,r,Do(y.consts,o),256),w&&gm(b,y,t+2,l,c,d,p,Do(y.consts,_),512)}var Z1=class extends q1{lContainer;hostLView;templateTNode;operationsCounter=void 0;needsIndexUpdate=!1;constructor(n,e,i){super(),this.lContainer=n,this.hostLView=e,this.templateTNode=i}get length(){return this.lContainer.length-tn}at(n){return this.getLView(n)[en].$implicit}attach(n,e){let i=e[Md];this.needsIndexUpdate||=n!==this.length,af(this.lContainer,e,n,fm(this.templateTNode,i)),EG(this.lContainer,n)}detach(n){return this.needsIndexUpdate||=n!==this.length-1,SG(this.lContainer,n),kG(this.lContainer,n)}create(n,e){let i=t0(this.lContainer,this.templateTNode.tView.ssrId),r=of(this.hostLView,this.templateTNode,new Q1(this.lContainer,e,n),{dehydratedView:i});return this.operationsCounter?.recordCreate(),r}destroy(n){y0(n[We],n),this.operationsCounter?.recordDestroy()}updateValue(n,e){this.getLView(n)[en].$implicit=e}reset(){this.needsIndexUpdate=!1,this.operationsCounter?.reset()}updateIndexes(){if(this.needsIndexUpdate)for(let n=0;n0){let o=i[ll];O7(o,r),Nd.delete(i),r.detachedLeaveAnimationFns=void 0}}function SG(t,n){if(t.length<=tn)return;let e=tn+n,i=t[e],r=i?i[Td]:void 0;r&&r.leave&&r.leave.size>0&&(r.detachedLeaveAnimationFns=[])}function kG(t,n){return Qp(t,n)}function TG(t,n){return XP(t,n)}function X1(t,n){return Np(t,n)}function v(t,n,e){let i=Le(),r=_s();if(jr(i,r,n)){let o=Di(),a=cm();VP(a,i,t,n,i[mi],e)}return v}function J1(t,n,e,i,r){M0(n,t,e,r?"class":"style",i)}function m(t,n,e,i){let r=Le(),o=r[We],a=t+vi,s=o.firstCreatePass?AM(a,r,2,n,kM,Ib(),e,i):o.data[a];if(w0(s,r,t,n,kF),rm(s)){let l=r[We];C0(l,r,s),lM(l,s,r)}return i!=null&&Cm(r,s),m}function h(){let t=Di(),n=sn(),e=D0(n);return t.firstCreatePass&&OM(t,e),YD(e)&&QD(),GD(),e.classesWithoutHost!=null&&cW(e)&&J1(t,e,Le(),e.classesWithoutHost,!0),e.stylesWithoutHost!=null&&dW(e)&&J1(t,e,Le(),e.stylesWithoutHost,!1),h}function M(t,n,e,i){return m(t,n,e,i),h(),M}function gt(t,n,e,i){let r=Le(),o=r[We],a=t+vi,s=o.firstCreatePass?oF(a,o,2,n,e,i):o.data[a];return w0(s,r,t,n,kF),i!=null&&Cm(r,s),gt}function yt(){let t=sn(),n=D0(t);return YD(n)&&QD(),GD(),yt}function ni(t,n,e,i){return gt(t,n,e,i),yt(),ni}var kF=(t,n,e,i,r)=>(jp(!0),gP(n[mi],i,GO()));function lt(t,n,e){let i=Le(),r=i[We],o=t+vi,a=r.firstCreatePass?AM(o,i,8,"ng-container",kM,Ib(),n,e):r.data[o];if(w0(a,i,t,"ng-container",IF),rm(a)){let s=i[We];C0(s,i,a),lM(s,a,i)}return e!=null&&Cm(i,a),lt}function ot(){let t=Di(),n=sn(),e=D0(n);return t.firstCreatePass&&OM(t,e),ot}function qe(t,n,e){return lt(t,n,e),ot(),qe}function UM(t,n,e){let i=Le(),r=i[We],o=t+vi,a=r.firstCreatePass?oF(o,r,8,"ng-container",n,e):r.data[o];return w0(a,i,t,"ng-container",IF),e!=null&&Cm(i,a),UM}function TF(){let t=sn(),n=D0(t);return ot}function df(t,n,e){return UM(t,n,e),TF(),df}var IF=(t,n,e,i,r)=>(jp(!0),i7(n[mi],""));function q(){return Le()}function pi(t,n,e){let i=Le(),r=_s();if(jr(i,r,n)){let o=Di(),a=cm();BP(a,i,t,n,i[mi],e)}return pi}var Hb=void 0;function IG(t){let n=Math.floor(Math.abs(t)),e=t.toString().replace(/^[^.]*\.?/,"").length;return n===1&&e===0?1:5}var AG=["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"]],Hb,[["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"]],Hb,[["B","A"],["BC","AD"],["Before Christ","Anno Domini"]],0,[6,0],["M/d/yy","MMM d, y","MMMM d, y","EEEE, MMMM d, y"],["h:mm a","h:mm:ss a","h:mm:ss a z","h:mm:ss a zzzz"],["{1}, {0}",Hb,"{1} 'at' {0}",Hb],[".",",",";","%","+","-","E","\xD7","\u2030","\u221E","NaN",":"],["#,##0.###","#,##0%","\xA4#,##0.00","#E0"],"USD","$","US Dollar",{},"ltr",IG],p1={};function Hr(t){let n=OG(t),e=kR(n);if(e)return e;let i=n.split("-")[0];if(e=kR(i),e)return e;if(i==="en")return AG;throw new ue(701,!1)}function kR(t){return t in p1||(p1[t]=Uo.ng&&Uo.ng.common&&Uo.ng.common.locales&&Uo.ng.common.locales[t]),p1[t]}var Qi=(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})(Qi||{});function OG(t){return t.toLowerCase().replace(/_/g,"-")}var uf="en-US",RG="USD";var PG=uf;function AF(t){typeof t=="string"&&(PG=t.toLowerCase().replace(/_/g,"-"))}function S(t,n,e){let i=Le(),r=Di(),o=sn();return OF(r,i,i[mi],o,t,n,e),S}function O0(t,n,e){let i=Le(),r=Di(),o=sn();return(o.type&3||e)&&cF(o,r,i,e,i[mi],t,n,qb(o,i,n)),O0}function OF(t,n,e,i,r,o,a){let s=!0,l=null;if((i.type&3||a)&&(l??=qb(i,n,o),cF(i,t,n,a,e,r,o,l)&&(s=!1)),s){let c=i.outputs?.[r],d=i.hostDirectiveOutputs?.[r];if(d&&d.length)for(let p=0;p>17&32767}function LG(t){return(t&2)==2}function VG(t,n){return t&131071|n<<17}function eM(t){return t|2}function _m(t){return(t&131068)>>2}function f1(t,n){return t&-131069|n<<2}function BG(t){return(t&1)===1}function tM(t){return t|1}function jG(t,n,e,i,r,o){let a=o?n.classBindings:n.styleBindings,s=Ld(a),l=_m(a);t[i]=e;let c=!1,d;if(Array.isArray(e)){let p=e;d=p[1],(d===null||em(p,d)>0)&&(c=!0)}else d=e;if(r)if(l!==0){let _=Ld(t[s+1]);t[i+1]=zb(_,s),_!==0&&(t[_+1]=f1(t[_+1],i)),t[s+1]=VG(t[s+1],i)}else t[i+1]=zb(s,0),s!==0&&(t[s+1]=f1(t[s+1],i)),s=i;else t[i+1]=zb(l,0),s===0?s=i:t[l+1]=f1(t[l+1],i),l=i;c&&(t[i+1]=eM(t[i+1])),TR(t,d,i,!0),TR(t,d,i,!1),HG(n,d,t,i,o),a=zb(s,l),o?n.classBindings=a:n.styleBindings=a}function HG(t,n,e,i,r){let o=r?t.residualClasses:t.residualStyles;o!=null&&typeof n=="string"&&em(o,n)>=0&&(e[i+1]=tM(e[i+1]))}function TR(t,n,e,i){let r=t[e+1],o=n===null,a=i?Ld(r):_m(r),s=!1;for(;a!==0&&(s===!1||o);){let l=t[a],c=t[a+1];zG(l,n)&&(s=!0,t[a+1]=i?tM(c):eM(c)),a=i?Ld(c):_m(c)}s&&(t[e+1]=i?eM(r):tM(r))}function zG(t,n){return t===null||n==null||(Array.isArray(t)?t[1]:t)===n?!0:Array.isArray(t)&&typeof n=="string"?em(t,n)>=0:!1}var Dn={textEnd:0,key:0,keyEnd:0,value:0,valueEnd:0};function RF(t){return t.substring(Dn.key,Dn.keyEnd)}function UG(t){return t.substring(Dn.value,Dn.valueEnd)}function $G(t){return NF(t),PF(t,bm(t,0,Dn.textEnd))}function PF(t,n){let e=Dn.textEnd;return e===n?-1:(n=Dn.keyEnd=GG(t,Dn.key=n,e),bm(t,n,e))}function WG(t){return NF(t),FF(t,bm(t,0,Dn.textEnd))}function FF(t,n){let e=Dn.textEnd,i=Dn.key=bm(t,n,e);return e===i?-1:(i=Dn.keyEnd=qG(t,i,e),i=IR(t,i,e,58),i=Dn.value=bm(t,i,e),i=Dn.valueEnd=YG(t,i,e),IR(t,i,e,59))}function NF(t){Dn.key=0,Dn.keyEnd=0,Dn.value=0,Dn.valueEnd=0,Dn.textEnd=t.length}function bm(t,n,e){for(;n32;)n++;return n}function qG(t,n,e){let i;for(;n=65&&(i&-33)<=90||i>=48&&i<=57);)n++;return n}function IR(t,n,e,i){return n=bm(t,n,e),n32&&(s=a),o=r,r=i,i=l&-33}return s}function AR(t,n,e,i){let r=-1,o=e;for(;o=0;e=FF(n,e))HF(t,RF(n),UG(n))}function at(t){VF(iq,KG,t,!0)}function KG(t,n){for(let e=$G(n);e>=0;e=PF(n,e))Op(t,RF(n),!0)}function LF(t,n,e,i){let r=Le(),o=Di(),a=Vp(2);if(o.firstUpdatePass&&jF(o,t,a,i),n!==jn&&jr(r,a,n)){let s=o.data[Na()];zF(o,s,r,r[mi],t,r[a+1]=rq(n,e),i,a)}}function VF(t,n,e,i){let r=Di(),o=Vp(2);r.firstUpdatePass&&jF(r,null,o,i);let a=Le();if(e!==jn&&jr(a,o,e)){let s=r.data[Na()];if(UF(s,i)&&!BF(r,o)){let l=i?s.classesWithoutHost:s.stylesWithoutHost;l!==null&&(e=yb(l,e||"")),J1(r,s,a,e,i)}else nq(r,s,a,a[mi],a[o+1],a[o+1]=tq(t,n,e),i,o)}}function BF(t,n){return n>=t.expandoStartIndex}function jF(t,n,e,i){let r=t.data;if(r[e+1]===null){let o=r[Na()],a=BF(t,e);UF(o,i)&&n===null&&!a&&(n=!1),n=ZG(r,o,n,i),jG(r,o,n,e,a,i)}}function ZG(t,n,e,i){let r=HO(t),o=i?n.residualClasses:n.residualStyles;if(r===null)(i?n.classBindings:n.styleBindings)===0&&(e=g1(null,t,n,e,i),e=Xp(e,n.attrs,i),o=null);else{let a=n.directiveStylingLast;if(a===-1||t[a]!==r)if(e=g1(r,t,n,e,i),o===null){let l=XG(t,n,i);l!==void 0&&Array.isArray(l)&&(l=g1(null,t,n,l[1],i),l=Xp(l,n.attrs,i),JG(t,n,i,l))}else o=eq(t,n,i)}return o!==void 0&&(i?n.residualClasses=o:n.residualStyles=o),e}function XG(t,n,e){let i=e?n.classBindings:n.styleBindings;if(_m(i)!==0)return t[Ld(i)]}function JG(t,n,e,i){let r=e?n.classBindings:n.styleBindings;t[Ld(r)]=i}function eq(t,n,e){let i,r=n.directiveEnd;for(let o=1+n.directiveStylingLast;o0;){let l=t[r],c=Array.isArray(l),d=c?l[1]:l,p=d===null,_=e[r+1];_===jn&&(_=p?xr:void 0);let b=p?Db(_,i):d===i?_:void 0;if(c&&!d0(b)&&(b=Db(l,i)),d0(b)&&(s=b,a))return s;let y=t[r+1];r=a?Ld(y):_m(y)}if(n!==null){let l=o?n.residualClasses:n.residualStyles;l!=null&&(s=Db(l,i))}return s}function d0(t){return t!==void 0}function rq(t,n){return t==null||t===""||(typeof n=="string"?t=t+n:typeof t=="object"&&(t=sl(eo(t)))),t}function UF(t,n){return(t.flags&(n?8:16))!==0}function f(t,n=""){let e=Le(),i=Di(),r=t+vi,o=i.firstCreatePass?wm(i,r,1,n,null):i.data[r],a=oq(i,e,o,n,t);e[r]=a,Fb()&&EM(i,e,a,o),sm(o,!1)}var oq=(t,n,e,i,r)=>(jp(!0),e7(n[mi],i));function $F(t,n,e,i=""){return jr(t,_s(),e)?n+$o(e)+i:jn}function aq(t,n,e,i,r,o=""){let a=e1(),s=Kp(t,a,e,r);return Vp(2),s?n+$o(e)+i+$o(r)+o:jn}function sq(t,n,e,i,r,o,a,s=""){let l=e1(),c=lF(t,l,e,r,a);return Vp(3),c?n+$o(e)+i+$o(r)+o+$o(a)+s:jn}function N(t){return fe("",t),N}function fe(t,n,e){let i=Le(),r=$F(i,t,n,e);return r!==jn&&$M(i,Na(),r),fe}function _l(t,n,e,i,r){let o=Le(),a=aq(o,t,n,e,i,r);return a!==jn&&$M(o,Na(),a),_l}function Sm(t,n,e,i,r,o,a){let s=Le(),l=sq(s,t,n,e,i,r,o,a);return l!==jn&&$M(s,Na(),l),Sm}function $M(t,n,e){let i=BD(n,t);t7(t[mi],i,e)}function pn(t,n,e){o1(n)&&(n=n());let i=Le(),r=_s();if(jr(i,r,n)){let o=Di(),a=cm();VP(a,i,t,n,i[mi],e)}return pn}function Mn(t,n){let e=o1(t);return e&&t.set(n),e}function fn(t,n){let e=Le(),i=Di(),r=sn();return OF(i,e,e[mi],r,t,n),fn}function WM(t){return jr(Le(),_s(),t)?$o(t):jn}function Zo(t,n,e=""){return $F(Le(),t,n,e)}function lq(t,n,e){let i=Di();if(i.firstCreatePass){let r=Fa(t);iM(e,i.data,i.blueprint,r,!0),iM(n,i.data,i.blueprint,r,!1)}}function iM(t,n,e,i,r){if(t=Cn(t),Array.isArray(t))for(let o=0;o>20;if(Cd(t)||!t.multi){let b=new Fd(c,r,be,null),y=b1(l,n,r?d:d+_,p);y===-1?(y1(Xb(s,a),o,l),_1(o,t,n.length),n.push(l),s.directiveStart++,s.directiveEnd++,r&&(s.providerIndexes+=1048576),e.push(b),a.push(b)):(e[y]=b,a[y]=b)}else{let b=b1(l,n,d+_,p),y=b1(l,n,d,d+_),w=b>=0&&e[b],C=y>=0&&e[y];if(r&&!C||!r&&!w){y1(Xb(s,a),o,l);let D=uq(r?dq:cq,e.length,r,i,c,t);!r&&C&&(e[y].providerFactory=D),_1(o,t,n.length,0),n.push(l),s.directiveStart++,s.directiveEnd++,r&&(s.providerIndexes+=1048576),e.push(D),a.push(D)}else{let D=WF(e[r?y:b],c,!r&&i);_1(o,t,b>-1?b:y,D)}!r&&i&&C&&e[y].componentProviders++}}}function _1(t,n,e,i){let r=Cd(n),o=DO(n);if(r||o){let l=(o?Cn(n.useClass):n).prototype.ngOnDestroy;if(l){let c=t.destroyHooks||(t.destroyHooks=[]);if(!r&&n.multi){let d=c.indexOf(e);d===-1?c.push(e,[i,l]):c[d+1].push(i,l)}else c.push(e,l)}}}function WF(t,n,e){return e&&t.componentProviders++,t.multi.push(n)-1}function b1(t,n,e,i){for(let r=e;r{e.providersResolver=(i,r)=>lq(i,r?r(t):t,n)}}function dt(t,n,e){let i=gs()+t,r=Le();return r[i]===jn?lf(r,i,e?n.call(e):n()):N9(r,i)}function Wt(t,n,e,i){return GF(Le(),gs(),t,n,e,i)}function Ba(t,n,e,i,r){return qF(Le(),gs(),t,n,e,i,r)}function Hd(t,n,e,i,r,o){return YF(Le(),gs(),t,n,e,i,r,o)}function km(t,n,e,i,r,o,a){return QF(Le(),gs(),t,n,e,i,r,o,a)}function R0(t,n){let e=t[n];return e===jn?void 0:e}function GF(t,n,e,i,r,o){let a=n+e;return jr(t,a,r)?lf(t,a+1,o?i.call(o,r):i(r)):R0(t,a+1)}function qF(t,n,e,i,r,o,a){let s=n+e;return Kp(t,s,r,o)?lf(t,s+2,a?i.call(a,r,o):i(r,o)):R0(t,s+2)}function YF(t,n,e,i,r,o,a,s){let l=n+e;return lF(t,l,r,o,a)?lf(t,l+3,s?i.call(s,r,o,a):i(r,o,a)):R0(t,l+3)}function QF(t,n,e,i,r,o,a,s,l){let c=n+e;return L9(t,c,r,o,a,s)?lf(t,c+4,l?i.call(l,r,o,a,s):i(r,o,a,s)):R0(t,c+4)}function me(t,n){let e=Di(),i,r=t+vi;e.firstCreatePass?(i=mq(n,e.pipeRegistry),e.data[r]=i,i.onDestroy&&(e.destroyHooks??=[]).push(r,i.onDestroy)):i=e.data[r];let o=i.factory||(i.factory=ic(i.type,!0)),a,s=Vr(be);try{let l=Zb(!1),c=o();return Zb(l),jD(e,Le(),r,c),c}finally{Vr(s)}}function mq(t,n){if(n)for(let e=n.length-1;e>=0;e--){let i=n[e];if(t===i.name)return i}}function Re(t,n,e){let i=t+vi,r=Le(),o=am(r,i);return P0(r,i)?GF(r,gs(),n,o.transform,e,o):o.transform(e)}function Ui(t,n,e,i){let r=t+vi,o=Le(),a=am(o,r);return P0(o,r)?qF(o,gs(),n,a.transform,e,i,a):a.transform(e,i)}function GM(t,n,e,i,r){let o=t+vi,a=Le(),s=am(a,o);return P0(a,o)?YF(a,gs(),n,s.transform,e,i,r,s):s.transform(e,i,r)}function Tm(t,n,e,i,r,o){let a=t+vi,s=Le(),l=am(s,a);return P0(s,a)?QF(s,gs(),n,l.transform,e,i,r,o,l):l.transform(e,i,r,o)}function P0(t,n){return t[We].data[n].pure}function Mi(t,n){return E0(t,n)}var u0=class{ngModuleFactory;componentFactories;constructor(n,e){this.ngModuleFactory=n,this.componentFactories=e}},qM=(()=>{class t{compileModuleSync(e){return new s0(e)}compileModuleAsync(e){return Promise.resolve(this.compileModuleSync(e))}compileModuleAndAllComponentsSync(e){let i=this.compileModuleSync(e),r=ID(e),o=xP(r.declarations).reduce((a,s)=>{let l=ms(s);return l&&a.push(new cc(l)),a},[]);return new u0(i,o)}compileModuleAndAllComponentsAsync(e){return Promise.resolve(this.compileModuleAndAllComponentsSync(e))}clearCache(){}clearCacheFor(e){}getModuleId(e){}static \u0275fac=function(i){return new(i||t)};static \u0275prov=R({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();var hq=(()=>{class t{zone=u(ae);changeDetectionScheduler=u(Ho);applicationRef=u(tr);applicationErrorHandler=u(wr);_onMicrotaskEmptySubscription;initialize(){this._onMicrotaskEmptySubscription||(this._onMicrotaskEmptySubscription=this.zone.onMicrotaskEmpty.subscribe({next:()=>{this.changeDetectionScheduler.runningTick||this.zone.run(()=>{try{this.applicationRef.dirtyFlags|=1,this.applicationRef._tick()}catch(e){this.applicationErrorHandler(e)}})}}))}ngOnDestroy(){this._onMicrotaskEmptySubscription?.unsubscribe()}static \u0275fac=function(i){return new(i||t)};static \u0275prov=R({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();function KF({ngZoneFactory:t,ignoreChangesOutsideZone:n,scheduleInRootZone:e}){return t??=()=>new ae(Me(I({},ZF()),{scheduleInRootZone:e})),[{provide:ae,useFactory:t},{provide:us,multi:!0,useFactory:()=>{let i=u(hq,{optional:!0});return()=>i.initialize()}},{provide:us,multi:!0,useFactory:()=>{let i=u(pq);return()=>{i.initialize()}}},n===!0?{provide:a1,useValue:!0}:[],{provide:s1,useValue:e??SP},{provide:wr,useFactory:()=>{let i=u(ae),r=u(ti),o;return a=>{i.runOutsideAngular(()=>{r.destroyed&&!o?setTimeout(()=>{throw a}):(o??=r.get(Ln),o.handleError(a))})}}}]}function ZF(t){return{enableLongStackTrace:!1,shouldCoalesceEventChangeDetection:t?.eventCoalescing??!1,shouldCoalesceRunChangeDetection:t?.runCoalescing??!1}}var pq=(()=>{class t{subscription=new ke;initialized=!1;zone=u(ae);pendingTasks=u(vs);initialize(){if(this.initialized)return;this.initialized=!0;let e=null;!this.zone.isStable&&!this.zone.hasPendingMacrotasks&&!this.zone.hasPendingMicrotasks&&(e=this.pendingTasks.add()),this.zone.runOutsideAngular(()=>{this.subscription.add(this.zone.onStable.subscribe(()=>{ae.assertNotInAngularZone(),queueMicrotask(()=>{e!==null&&!this.zone.hasPendingMacrotasks&&!this.zone.hasPendingMicrotasks&&(this.pendingTasks.remove(e),e=null)})}))}),this.subscription.add(this.zone.onUnstable.subscribe(()=>{ae.assertInAngularZone(),e??=this.pendingTasks.add()}))}ngOnDestroy(){this.subscription.unsubscribe()}static \u0275fac=function(i){return new(i||t)};static \u0275prov=R({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();var XF=(()=>{class t{applicationErrorHandler=u(wr);appRef=u(tr);taskService=u(vs);ngZone=u(ae);zonelessEnabled=u(Hp);tracing=u(mc,{optional:!0});disableScheduling=u(a1,{optional:!0})??!1;zoneIsDefined=typeof Zone<"u"&&!!Zone.root.run;schedulerTickApplyArgs=[{data:{__scheduler_tick__:!0}}];subscriptions=new ke;angularZoneId=this.zoneIsDefined?this.ngZone._inner?.get(e0):null;scheduleInRootZone=!this.zonelessEnabled&&this.zoneIsDefined&&(u(s1,{optional:!0})??!1);cancelScheduledCallback=null;useMicrotaskScheduler=!1;runningTick=!1;pendingRenderTaskId=null;constructor(){this.subscriptions.add(this.appRef.afterTick.subscribe(()=>{this.runningTick||this.cleanup()})),this.subscriptions.add(this.ngZone.onUnstable.subscribe(()=>{this.runningTick||this.cleanup()})),this.disableScheduling||=!this.zonelessEnabled&&(this.ngZone instanceof Gp||!this.zoneIsDefined)}notify(e){if(!this.zonelessEnabled&&e===5)return;let i=!1;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,i=!0;break}case 12:{this.appRef.dirtyFlags|=16,i=!0;break}case 13:{this.appRef.dirtyFlags|=2,i=!0;break}case 11:{i=!0;break}case 9:case 8:case 7:case 10:default:this.appRef.dirtyFlags|=8}if(this.appRef.tracingSnapshot=this.tracing?.snapshot(this.appRef.tracingSnapshot)??null,!this.shouldScheduleTick(i))return;let r=this.useMicrotaskScheduler?dR:kP;this.pendingRenderTaskId=this.taskService.add(),this.scheduleInRootZone?this.cancelScheduledCallback=Zone.root.run(()=>r(()=>this.tick())):this.cancelScheduledCallback=this.ngZone.runOutsideAngular(()=>r(()=>this.tick()))}shouldScheduleTick(e){return!(this.disableScheduling&&!e||this.appRef.destroyed||this.pendingRenderTaskId!==null||this.runningTick||this.appRef._runningTick||!this.zonelessEnabled&&this.zoneIsDefined&&Zone.current.get(e0+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(i){this.taskService.remove(e),this.applicationErrorHandler(i)}finally{this.cleanup()}this.useMicrotaskScheduler=!0,dR(()=>{this.useMicrotaskScheduler=!1,this.taskService.remove(e)})}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(i){return new(i||t)};static \u0275prov=R({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();function fq(){return typeof $localize<"u"&&$localize.locale||uf}var bl=new O("",{providedIn:"root",factory:()=>u(bl,{optional:!0,skipSelf:!0})||fq()}),YM=new O("",{providedIn:"root",factory:()=>RG});var mf=class{destroyed=!1;listeners=null;errorHandler=u(Ln,{optional:!0});destroyRef=u(ln);constructor(){this.destroyRef.onDestroy(()=>{this.destroyed=!0,this.listeners=null})}subscribe(n){if(this.destroyed)throw new ue(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(zo(953,!1));return}if(this.listeners===null)return;let e=tt(null);try{for(let i of this.listeners)try{i(n)}catch(r){this.errorHandler?.handleError(r)}}finally{tt(e)}}};function KM(t){return t.destroyRef}function Ni(t){return aO(t)}function ci(t,n){return yp(t,n?.equal)}var QM=class{[mn];constructor(n){this[mn]=n}destroy(){this[mn].destroy()}};function zr(t,n){let e=n?.injector??u(de),i=n?.manualCleanup!==!0?e.get(ln):null,r,o=e.get(Od,null,{optional:!0}),a=e.get(Ho);return o!==null?(r=bq(o.view,a,t),i instanceof kp&&i._lView===o.view&&(i=null)):r=vq(t,e.get(zp),a),r.injector=e,i!==null&&(r.onDestroyFn=i.onDestroy(()=>r.destroy())),new QM(r)}var JF=Me(I({},sO),{cleanupFns:void 0,zone:null,onDestroyFn:Rd,run(){let t=lm(!1);try{lO(this)}finally{lm(t)}},cleanup(){if(!this.cleanupFns?.length)return;let t=tt(null);try{for(;this.cleanupFns.length;)this.cleanupFns.pop()()}finally{this.cleanupFns=[],tt(t)}}}),gq=Me(I({},JF),{consumerMarkedDirty(){this.scheduler.schedule(this),this.notifier.notify(12)},destroy(){ql(this),this.onDestroyFn(),this.cleanup(),this.scheduler.remove(this)}}),_q=Me(I({},JF),{consumerMarkedDirty(){this.view[nt]|=8192,ac(this.view),this.notifier.notify(13)},destroy(){ql(this),this.onDestroyFn(),this.cleanup(),this.view[cl]?.delete(this)}});function bq(t,n,e){let i=Object.create(_q);return i.view=t,i.zone=typeof Zone<"u"?Zone.current:null,i.notifier=n,i.fn=e2(i,e),t[cl]??=new Set,t[cl].add(i),i.consumerMarkedDirty(i),i}function vq(t,n,e){let i=Object.create(gq);return i.fn=e2(i,t),i.scheduler=n,i.notifier=e,i.zone=typeof Zone<"u"?Zone.current:null,i.scheduler.add(i),i.notifier.notify(12),i}function e2(t,n){return()=>{n(e=>(t.cleanupFns??=[]).push(e))}}var L0=Symbol("InputSignalNode#UNSET"),c2=Me(I({},xp),{transformFn:void 0,applyValueToInputSignal(t,n){hd(t,n)}});function d2(t,n){let e=Object.create(c2);e.value=t,e.transformFn=n?.transform;function i(){if(Wl(e),e.value===L0){let r=null;throw new ue(-950,r)}return e.value}return i[mn]=e,i}var Li=class{attributeName;constructor(n){this.attributeName=n}__NG_ELEMENT_ID__=()=>Jp(this.attributeName);toString(){return`HostAttributeToken ${this.attributeName}`}},rE=new O("");rE.__NG_ELEMENT_ID__=t=>{let n=sn();if(n===null)throw new ue(204,!1);if(n.type&2)return n.value;if(t&8)return null;throw new ue(204,!1)};function Ei(t){return new mf}function t2(t,n){return d2(t,n)}function Rq(t){return d2(L0,t)}var re=(t2.required=Rq,t2);function i2(t,n){return LM(n)}function Pq(t,n){return VM(n)}var ir=(i2.required=Pq,i2);function n2(t,n){return LM(n)}function Fq(t,n){return VM(n)}var Mr=(n2.required=Fq,n2);function u2(t,n){return yF(n)}function m2(t,n){let e=Object.create(c2),i=new mf;e.value=t;function r(){return Wl(e),r2(e.value),e.value}return r[mn]=e,r.asReadonly=Nb.bind(r),r.set=o=>{e.equal(e.value,o)||(hd(e,o),i.emit(o))},r.update=o=>{r2(e.value),r.set(o(e.value))},r.subscribe=i.subscribe.bind(i),r.destroyRef=i.destroyRef,r}function r2(t){if(t===L0)throw new ue(952,!1)}function o2(t,n){return m2(t,n)}function Nq(t){return m2(L0,t)}var Im=(o2.required=Nq,o2);var XM=new O(""),Lq=new O("");function hf(t){return!t.moduleRef}function Vq(t){let n=hf(t)?t.r3Injector:t.moduleRef.injector,e=n.get(ae);return e.run(()=>{hf(t)?t.r3Injector.resolveInjectorInitializers():t.moduleRef.resolveInjectorInitializers();let i=n.get(wr),r;if(e.runOutsideAngular(()=>{r=e.onError.subscribe({next:i})}),hf(t)){let o=()=>n.destroy(),a=t.platformInjector.get(XM);a.add(o),n.onDestroy(()=>{r.unsubscribe(),a.delete(o)})}else{let o=()=>t.moduleRef.destroy(),a=t.platformInjector.get(XM);a.add(o),t.moduleRef.onDestroy(()=>{$p(t.allPlatformModules,t.moduleRef),r.unsubscribe(),a.delete(o)})}return jq(i,e,()=>{let o=n.get(vs),a=o.add(),s=n.get(HM);return s.runInitializers(),s.donePromise.then(()=>{let l=n.get(bl,uf);if(AF(l||uf),!n.get(Lq,!0))return hf(t)?n.get(tr):(t.allPlatformModules.push(t.moduleRef),t.moduleRef);if(hf(t)){let d=n.get(tr);return t.rootComponent!==void 0&&d.bootstrap(t.rootComponent),d}else return Bq?.(t.moduleRef,t.allPlatformModules),t.moduleRef}).finally(()=>void o.remove(a))})})}var Bq;function jq(t,n,e){try{let i=e();return fl(i)?i.catch(r=>{throw n.runOutsideAngular(()=>t(r)),r}):i}catch(i){throw n.runOutsideAngular(()=>t(i)),i}}var F0=null;function Hq(t=[],n){return de.create({name:n,providers:[{provide:Rp,useValue:"platform"},{provide:XM,useValue:new Set([()=>F0=null])},...t]})}function zq(t=[]){if(F0)return F0;let n=Hq(t);return F0=n,EF(),Uq(n),n}function Uq(t){let n=t.get(m0,null);Vn(t,()=>{n?.forEach(e=>e())})}var ye=(()=>{class t{static __NG_ELEMENT_ID__=$q}return t})();function $q(t){return Wq(sn(),Le(),(t&16)===16)}function Wq(t,n,e){if(dl(t)&&!e){let i=Yo(t.index,n);return new lc(i,i)}else if(t.type&175){let i=n[Cr];return new lc(i,n)}return null}var JM=class{constructor(){}supports(n){return RM(n)}create(n){return new eE(n)}},Gq=(t,n)=>n,eE=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||Gq}forEachItem(n){let e;for(e=this._itHead;e!==null;e=e._next)n(e)}forEachOperation(n){let e=this._itHead,i=this._removalsHead,r=0,o=null;for(;e||i;){let a=!i||e&&e.currentIndex{a=this._trackByFn(r,s),e===null||!Object.is(e.trackById,a)?(e=this._mismatch(e,s,a,r),i=!0):(i&&(e=this._verifyReinsertion(e,s,a,r)),Object.is(e.item,s)||this._addIdentityChange(e,s)),e=e._next,r++}),this.length=r;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,i,r){let o;return n===null?o=this._itTail:(o=n._prev,this._remove(n)),n=this._unlinkedRecords===null?null:this._unlinkedRecords.get(i,null),n!==null?(Object.is(n.item,e)||this._addIdentityChange(n,e),this._reinsertAfter(n,o,r)):(n=this._linkedRecords===null?null:this._linkedRecords.get(i,r),n!==null?(Object.is(n.item,e)||this._addIdentityChange(n,e),this._moveAfter(n,o,r)):n=this._addAfter(new tE(e,i),o,r)),n}_verifyReinsertion(n,e,i,r){let o=this._unlinkedRecords===null?null:this._unlinkedRecords.get(i,null);return o!==null?n=this._reinsertAfter(o,n._prev,r):n.currentIndex!=r&&(n.currentIndex=r,this._addToMoves(n,r)),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,i){this._unlinkedRecords!==null&&this._unlinkedRecords.remove(n);let r=n._prevRemoved,o=n._nextRemoved;return r===null?this._removalsHead=o:r._nextRemoved=o,o===null?this._removalsTail=r:o._prevRemoved=r,this._insertAfter(n,e,i),this._addToMoves(n,i),n}_moveAfter(n,e,i){return this._unlink(n),this._insertAfter(n,e,i),this._addToMoves(n,i),n}_addAfter(n,e,i){return this._insertAfter(n,e,i),this._additionsTail===null?this._additionsTail=this._additionsHead=n:this._additionsTail=this._additionsTail._nextAdded=n,n}_insertAfter(n,e,i){let r=e===null?this._itHead:e._next;return n._next=r,n._prev=e,r===null?this._itTail=n:r._prev=n,e===null?this._itHead=n:e._next=n,this._linkedRecords===null&&(this._linkedRecords=new N0),this._linkedRecords.put(n),n.currentIndex=i,n}_remove(n){return this._addToRemovals(this._unlink(n))}_unlink(n){this._linkedRecords!==null&&this._linkedRecords.remove(n);let e=n._prev,i=n._next;return e===null?this._itHead=i:e._next=i,i===null?this._itTail=e:i._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 N0),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}},tE=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}},iE=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 i;for(i=this._head;i!==null;i=i._nextDup)if((e===null||e<=i.currentIndex)&&Object.is(i.trackById,n))return i;return null}remove(n){let e=n._prevDup,i=n._nextDup;return e===null?this._head=i:e._nextDup=i,i===null?this._tail=e:i._prevDup=e,this._head===null}},N0=class{map=new Map;put(n){let e=n.trackById,i=this.map.get(e);i||(i=new iE,this.map.set(e,i)),i.add(n)}get(n,e){let i=n,r=this.map.get(i);return r?r.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 a2(t,n,e){let i=t.previousIndex;if(i===null)return i;let r=0;return e&&i{class t{factories;static \u0275prov=R({token:t,providedIn:"root",factory:s2});constructor(e){this.factories=e}static create(e,i){if(i!=null){let r=i.factories.slice();e=e.concat(r)}return new t(e)}static extend(e){return{provide:t,useFactory:()=>{let i=u(t,{optional:!0,skipSelf:!0});return t.create(e,i||s2())}}}find(e){let i=this.factories.find(r=>r.supports(e));if(i!=null)return i;throw new ue(901,!1)}}return t})();function h2(t){let{rootComponent:n,appProviders:e,platformProviders:i,platformRef:r}=t;hi(8);try{let o=r?.injector??zq(i),a=[KF({}),{provide:Ho,useExisting:XF},YO,...e||[]],s=new Zp({providers:a,parent:o,debugName:"",runEnvironmentInitializers:!1});return Vq({r3Injector:s.injector,platformInjector:o,rootComponent:n})}catch(o){return Promise.reject(o)}finally{hi(9)}}function L(t){return typeof t=="boolean"?t:t!=null&&t!=="false"}function ht(t,n=NaN){return!isNaN(parseFloat(t))&&!isNaN(Number(t))?Number(t):n}var ZM=Symbol("NOT_SET"),p2=new Set,qq=Me(I({},xp),{consumerIsAlwaysLive:!0,consumerAllowSignalWrites:!0,value:ZM,cleanup:null,consumerMarkedDirty(){if(this.sequence.impl.executing){if(this.sequence.lastPhase===null||this.sequence.lastPhase(Wl(c),c.value),c.signal[mn]=c,c.registerCleanupFn=d=>(c.cleanup??=new Set).add(d),this.nodes[s]=c,this.hooks[s]=d=>c.phaseFn(d)}}afterRun(){super.afterRun(),this.lastPhase=null}destroy(){super.destroy();for(let n of this.nodes)if(n)try{for(let e of n.cleanup??p2)e()}finally{ql(n)}}};function f2(t,n){let e=n?.injector??u(de),i=e.get(Ho),r=e.get(v0),o=e.get(mc,null,{optional:!0});r.impl??=e.get(DM);let a=t;typeof a=="function"&&(a={mixedReadWrite:t});let s=e.get(Od,null,{optional:!0}),l=new nE(r.impl,[a.earlyRead,a.write,a.mixedReadWrite,a.read],s?.view,i,e,o?.snapshot(null));return r.impl.register(l),l}function Am(t,n){let e=ms(t),i=n.elementInjector||tm();return new cc(e).create(i,n.projectableNodes,n.hostElement,n.environmentInjector,n.directives,n.bindings)}function g2(t){let n=ms(t);if(!n)return null;let e=new cc(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 v2=null;function Xo(){return v2}function oE(t){v2??=t}var pf=class{},ff=(()=>{class t{historyGo(e){throw new Error("")}static \u0275fac=function(i){return new(i||t)};static \u0275prov=R({token:t,factory:()=>u(y2),providedIn:"platform"})}return t})(),aE=new O(""),y2=(()=>{class t extends ff{_location;_history;_doc=u(_e);constructor(){super(),this._location=window.location,this._history=window.history}getBaseHrefFromDOM(){return Xo().getBaseHref(this._doc)}onPopState(e){let i=Xo().getGlobalEventTarget(this._doc,"window");return i.addEventListener("popstate",e,!1),()=>i.removeEventListener("popstate",e)}onHashChange(e){let i=Xo().getGlobalEventTarget(this._doc,"window");return i.addEventListener("hashchange",e,!1),()=>i.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,i,r){this._history.pushState(e,i,r)}replaceState(e,i,r){this._history.replaceState(e,i,r)}forward(){this._history.forward()}back(){this._history.back()}historyGo(e=0){this._history.go(e)}getState(){return this._history.state}static \u0275fac=function(i){return new(i||t)};static \u0275prov=R({token:t,factory:()=>new t,providedIn:"platform"})}return t})();function V0(t,n){return t?n?t.endsWith("/")?n.startsWith("/")?t+n.slice(1):t+n:n.startsWith("/")?t+n:`${t}/${n}`:t:n}function _2(t){let n=t.search(/#|\?|$/);return t[n-1]==="/"?t.slice(0,n-1)+t.slice(n):t}function ja(t){return t&&t[0]!=="?"?`?${t}`:t}var Ha=(()=>{class t{historyGo(e){throw new Error("")}static \u0275fac=function(i){return new(i||t)};static \u0275prov=R({token:t,factory:()=>u(j0),providedIn:"root"})}return t})(),B0=new O(""),j0=(()=>{class t extends Ha{_platformLocation;_baseHref;_removeListenerFns=[];constructor(e,i){super(),this._platformLocation=e,this._baseHref=i??this._platformLocation.getBaseHrefFromDOM()??u(_e).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 V0(this._baseHref,e)}path(e=!1){let i=this._platformLocation.pathname+ja(this._platformLocation.search),r=this._platformLocation.hash;return r&&e?`${i}${r}`:i}pushState(e,i,r,o){let a=this.prepareExternalUrl(r+ja(o));this._platformLocation.pushState(e,i,a)}replaceState(e,i,r,o){let a=this.prepareExternalUrl(r+ja(o));this._platformLocation.replaceState(e,i,a)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}getState(){return this._platformLocation.getState()}historyGo(e=0){this._platformLocation.historyGo?.(e)}static \u0275fac=function(i){return new(i||t)(pe(ff),pe(B0,8))};static \u0275prov=R({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),Ss=(()=>{class t{_subject=new z;_basePath;_locationStrategy;_urlChangeListeners=[];_urlChangeSubscription=null;constructor(e){this._locationStrategy=e;let i=this._locationStrategy.getBaseHref();this._basePath=Kq(_2(b2(i))),this._locationStrategy.onPopState(r=>{this._subject.next({url:this.path(!0),pop:!0,state:r.state,type:r.type})})}ngOnDestroy(){this._urlChangeSubscription?.unsubscribe(),this._urlChangeListeners=[]}path(e=!1){return this.normalize(this._locationStrategy.path(e))}getState(){return this._locationStrategy.getState()}isCurrentPathEqualTo(e,i=""){return this.path()==this.normalize(e+ja(i))}normalize(e){return t.stripTrailingSlash(Qq(this._basePath,b2(e)))}prepareExternalUrl(e){return e&&e[0]!=="/"&&(e="/"+e),this._locationStrategy.prepareExternalUrl(e)}go(e,i="",r=null){this._locationStrategy.pushState(r,"",e,i),this._notifyUrlChangeListeners(this.prepareExternalUrl(e+ja(i)),r)}replaceState(e,i="",r=null){this._locationStrategy.replaceState(r,"",e,i),this._notifyUrlChangeListeners(this.prepareExternalUrl(e+ja(i)),r)}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(i=>{this._notifyUrlChangeListeners(i.url,i.state)}),()=>{let i=this._urlChangeListeners.indexOf(e);this._urlChangeListeners.splice(i,1),this._urlChangeListeners.length===0&&(this._urlChangeSubscription?.unsubscribe(),this._urlChangeSubscription=null)}}_notifyUrlChangeListeners(e="",i){this._urlChangeListeners.forEach(r=>r(e,i))}subscribe(e,i,r){return this._subject.subscribe({next:e,error:i??void 0,complete:r??void 0})}static normalizeQueryParams=ja;static joinWithSlash=V0;static stripTrailingSlash=_2;static \u0275fac=function(i){return new(i||t)(pe(Ha))};static \u0275prov=R({token:t,factory:()=>Yq(),providedIn:"root"})}return t})();function Yq(){return new Ss(pe(Ha))}function Qq(t,n){if(!t||!n.startsWith(t))return n;let e=n.substring(t.length);return e===""||["/",";","?","#"].includes(e[0])?e:n}function b2(t){return t.replace(/\/index.html$/,"")}function Kq(t){if(new RegExp("^(https?:)?//").test(t)){let[,e]=t.split(/\/\/[^\/]+/);return e}return t}var fE=(()=>{class t extends Ha{_platformLocation;_baseHref="";_removeListenerFns=[];constructor(e,i){super(),this._platformLocation=e,i!=null&&(this._baseHref=i)}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 i=this._platformLocation.hash??"#";return i.length>0?i.substring(1):i}prepareExternalUrl(e){let i=V0(this._baseHref,e);return i.length>0?"#"+i:i}pushState(e,i,r,o){let a=this.prepareExternalUrl(r+ja(o))||this._platformLocation.pathname;this._platformLocation.pushState(e,i,a)}replaceState(e,i,r,o){let a=this.prepareExternalUrl(r+ja(o))||this._platformLocation.pathname;this._platformLocation.replaceState(e,i,a)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}getState(){return this._platformLocation.getState()}historyGo(e=0){this._platformLocation.historyGo?.(e)}static \u0275fac=function(i){return new(i||t)(pe(ff),pe(B0,8))};static \u0275prov=R({token:t,factory:t.\u0275fac})}return t})(),S2={ADP:[void 0,void 0,0],AFN:[void 0,"\u060B",0],ALL:[void 0,void 0,0],AMD:[void 0,"\u058F",2],AOA:[void 0,"Kz"],ARS:[void 0,"$"],AUD:["A$","$"],AZN:[void 0,"\u20BC"],BAM:[void 0,"KM"],BBD:[void 0,"$"],BDT:[void 0,"\u09F3"],BHD:[void 0,void 0,3],BIF:[void 0,void 0,0],BMD:[void 0,"$"],BND:[void 0,"$"],BOB:[void 0,"Bs"],BRL:["R$"],BSD:[void 0,"$"],BWP:[void 0,"P"],BYN:[void 0,void 0,2],BYR:[void 0,void 0,0],BZD:[void 0,"$"],CAD:["CA$","$",2],CHF:[void 0,void 0,2],CLF:[void 0,void 0,4],CLP:[void 0,"$",0],CNY:["CN\xA5","\xA5"],COP:[void 0,"$",2],CRC:[void 0,"\u20A1",2],CUC:[void 0,"$"],CUP:[void 0,"$"],CZK:[void 0,"K\u010D",2],DJF:[void 0,void 0,0],DKK:[void 0,"kr",2],DOP:[void 0,"$"],EGP:[void 0,"E\xA3"],ESP:[void 0,"\u20A7",0],EUR:["\u20AC"],FJD:[void 0,"$"],FKP:[void 0,"\xA3"],GBP:["\xA3"],GEL:[void 0,"\u20BE"],GHS:[void 0,"GH\u20B5"],GIP:[void 0,"\xA3"],GNF:[void 0,"FG",0],GTQ:[void 0,"Q"],GYD:[void 0,"$",2],HKD:["HK$","$"],HNL:[void 0,"L"],HRK:[void 0,"kn"],HUF:[void 0,"Ft",2],IDR:[void 0,"Rp",2],ILS:["\u20AA"],INR:["\u20B9"],IQD:[void 0,void 0,0],IRR:[void 0,void 0,0],ISK:[void 0,"kr",0],ITL:[void 0,void 0,0],JMD:[void 0,"$"],JOD:[void 0,void 0,3],JPY:["\xA5",void 0,0],KHR:[void 0,"\u17DB"],KMF:[void 0,"CF",0],KPW:[void 0,"\u20A9",0],KRW:["\u20A9",void 0,0],KWD:[void 0,void 0,3],KYD:[void 0,"$"],KZT:[void 0,"\u20B8"],LAK:[void 0,"\u20AD",0],LBP:[void 0,"L\xA3",0],LKR:[void 0,"Rs"],LRD:[void 0,"$"],LTL:[void 0,"Lt"],LUF:[void 0,void 0,0],LVL:[void 0,"Ls"],LYD:[void 0,void 0,3],MGA:[void 0,"Ar",0],MGF:[void 0,void 0,0],MMK:[void 0,"K",0],MNT:[void 0,"\u20AE",2],MRO:[void 0,void 0,0],MUR:[void 0,"Rs",2],MXN:["MX$","$"],MYR:[void 0,"RM"],NAD:[void 0,"$"],NGN:[void 0,"\u20A6"],NIO:[void 0,"C$"],NOK:[void 0,"kr",2],NPR:[void 0,"Rs"],NZD:["NZ$","$"],OMR:[void 0,void 0,3],PHP:["\u20B1"],PKR:[void 0,"Rs",2],PLN:[void 0,"z\u0142"],PYG:[void 0,"\u20B2",0],RON:[void 0,"lei"],RSD:[void 0,void 0,0],RUB:[void 0,"\u20BD"],RWF:[void 0,"RF",0],SBD:[void 0,"$"],SEK:[void 0,"kr",2],SGD:[void 0,"$"],SHP:[void 0,"\xA3"],SLE:[void 0,void 0,2],SLL:[void 0,void 0,0],SOS:[void 0,void 0,0],SRD:[void 0,"$"],SSP:[void 0,"\xA3"],STD:[void 0,void 0,0],STN:[void 0,"Db"],SYP:[void 0,"\xA3",0],THB:[void 0,"\u0E3F"],TMM:[void 0,void 0,0],TND:[void 0,void 0,3],TOP:[void 0,"T$"],TRL:[void 0,void 0,0],TRY:[void 0,"\u20BA"],TTD:[void 0,"$"],TWD:["NT$","$",2],TZS:[void 0,void 0,2],UAH:[void 0,"\u20B4"],UGX:[void 0,void 0,0],USD:["$"],UYI:[void 0,void 0,0],UYU:[void 0,"$"],UYW:[void 0,void 0,4],UZS:[void 0,void 0,2],VEF:[void 0,"Bs",2],VND:["\u20AB",void 0,0],VUV:[void 0,void 0,0],XAF:["FCFA",void 0,0],XCD:["EC$","$"],XOF:["F\u202FCFA",void 0,0],XPF:["CFPF",void 0,0],XXX:["\xA4"],YER:[void 0,void 0,0],ZAR:[void 0,"R"],ZMK:[void 0,void 0,0],ZMW:[void 0,"ZK"],ZWD:[void 0,void 0,0]},K0=(function(t){return t[t.Decimal=0]="Decimal",t[t.Percent=1]="Percent",t[t.Currency=2]="Currency",t[t.Scientific=3]="Scientific",t})(K0||{});var Er=(function(t){return t[t.Format=0]="Format",t[t.Standalone=1]="Standalone",t})(Er||{}),yi=(function(t){return t[t.Narrow=0]="Narrow",t[t.Abbreviated=1]="Abbreviated",t[t.Wide=2]="Wide",t[t.Short=3]="Short",t})(yi||{}),no=(function(t){return t[t.Short=0]="Short",t[t.Medium=1]="Medium",t[t.Long=2]="Long",t[t.Full=3]="Full",t})(no||{}),nr={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 k2(t){return Hr(t)[Qi.LocaleId]}function T2(t,n,e){let i=Hr(t),r=[i[Qi.DayPeriodsFormat],i[Qi.DayPeriodsStandalone]],o=Jo(r,n);return Jo(o,e)}function I2(t,n,e){let i=Hr(t),r=[i[Qi.DaysFormat],i[Qi.DaysStandalone]],o=Jo(r,n);return Jo(o,e)}function A2(t,n,e){let i=Hr(t),r=[i[Qi.MonthsFormat],i[Qi.MonthsStandalone]],o=Jo(r,n);return Jo(o,e)}function O2(t,n){let i=Hr(t)[Qi.Eras];return Jo(i,n)}function gf(t,n){let e=Hr(t);return Jo(e[Qi.DateFormat],n)}function _f(t,n){let e=Hr(t);return Jo(e[Qi.TimeFormat],n)}function bf(t,n){let i=Hr(t)[Qi.DateTimeFormat];return Jo(i,n)}function Ua(t,n){let e=Hr(t),i=e[Qi.NumberSymbols][n];if(typeof i>"u"){if(n===nr.CurrencyDecimal)return e[Qi.NumberSymbols][nr.Decimal];if(n===nr.CurrencyGroup)return e[Qi.NumberSymbols][nr.Group]}return i}function gE(t,n){return Hr(t)[Qi.NumberFormats][n]}function Zq(t){return Hr(t)[Qi.Currencies]}function R2(t){if(!t[Qi.ExtraData])throw new ue(2303,!1)}function P2(t){let n=Hr(t);return R2(n),(n[Qi.ExtraData][2]||[]).map(i=>typeof i=="string"?sE(i):[sE(i[0]),sE(i[1])])}function F2(t,n,e){let i=Hr(t);R2(i);let r=[i[Qi.ExtraData][0],i[Qi.ExtraData][1]],o=Jo(r,n)||[];return Jo(o,e)||[]}function Jo(t,n){for(let e=n;e>-1;e--)if(typeof t[e]<"u")return t[e];throw new ue(2304,!1)}function sE(t){let[n,e]=t.split(":");return{hours:+n,minutes:+e}}function N2(t,n,e="en"){let i=Zq(e)[t]||S2[t]||[],r=i[1];return n==="narrow"&&typeof r=="string"?r:i[0]||t}var Xq=2;function L2(t){let n,e=S2[t];return e&&(n=e[2]),typeof n=="number"?n:Xq}var Jq=/^(\d{4,})-?(\d\d)-?(\d\d)(?:T(\d\d)(?::?(\d\d)(?::?(\d\d)(?:\.(\d+))?)?)?(Z|([+-])(\d\d):?(\d\d))?)?$/,H0={},eY=/((?:[^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]*)/;function V2(t,n,e,i){let r=cY(t);n=vl(e,n)||n;let a=[],s;for(;n;)if(s=eY.exec(n),s){a=a.concat(s.slice(1));let d=a.pop();if(!d)break;n=d}else{a.push(n);break}let l=r.getTimezoneOffset();i&&(l=j2(i,l),r=lY(r,i));let c="";return a.forEach(d=>{let p=aY(d);c+=p?p(r,e,l):d==="''"?"'":d.replace(/(^'|'$)/g,"").replace(/''/g,"'")}),c}function G0(t,n,e){let i=new Date(0);return i.setFullYear(t,n,e),i.setHours(0,0,0),i}function vl(t,n){let e=k2(t);if(H0[e]??={},H0[e][n])return H0[e][n];let i="";switch(n){case"shortDate":i=gf(t,no.Short);break;case"mediumDate":i=gf(t,no.Medium);break;case"longDate":i=gf(t,no.Long);break;case"fullDate":i=gf(t,no.Full);break;case"shortTime":i=_f(t,no.Short);break;case"mediumTime":i=_f(t,no.Medium);break;case"longTime":i=_f(t,no.Long);break;case"fullTime":i=_f(t,no.Full);break;case"short":let r=vl(t,"shortTime"),o=vl(t,"shortDate");i=z0(bf(t,no.Short),[r,o]);break;case"medium":let a=vl(t,"mediumTime"),s=vl(t,"mediumDate");i=z0(bf(t,no.Medium),[a,s]);break;case"long":let l=vl(t,"longTime"),c=vl(t,"longDate");i=z0(bf(t,no.Long),[l,c]);break;case"full":let d=vl(t,"fullTime"),p=vl(t,"fullDate");i=z0(bf(t,no.Full),[d,p]);break}return i&&(H0[e][n]=i),i}function z0(t,n){return n&&(t=t.replace(/\{([^}]+)}/g,function(e,i){return n!=null&&i in n?n[i]:e})),t}function za(t,n,e="-",i,r){let o="";(t<0||r&&t<=0)&&(r?t=-t+1:(t=-t,o=e));let a=String(t);for(;a.length0||s>-e)&&(s+=e),t===3)s===0&&e===-12&&(s=12);else if(t===6)return tY(s,n);let l=Ua(a,nr.MinusSign);return za(s,n,l,i,r)}}function iY(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 ue(2301,!1)}}function Ii(t,n,e=Er.Format,i=!1){return function(r,o){return nY(r,o,t,n,e,i)}}function nY(t,n,e,i,r,o){switch(e){case 2:return A2(n,r,i)[t.getMonth()];case 1:return I2(n,r,i)[t.getDay()];case 0:let a=t.getHours(),s=t.getMinutes();if(o){let c=P2(n),d=F2(n,r,i),p=c.findIndex(_=>{if(Array.isArray(_)){let[b,y]=_,w=a>=b.hours&&s>=b.minutes,C=a0?Math.floor(r/60):Math.ceil(r/60);switch(t){case 0:return(r>=0?"+":"")+za(a,2,o)+za(Math.abs(r%60),2,o);case 1:return"GMT"+(r>=0?"+":"")+za(a,1,o);case 2:return"GMT"+(r>=0?"+":"")+za(a,2,o)+":"+za(Math.abs(r%60),2,o);case 3:return i===0?"Z":(r>=0?"+":"")+za(a,2,o)+":"+za(Math.abs(r%60),2,o);default:throw new ue(2310,!1)}}}var rY=0,W0=4;function oY(t){let n=G0(t,rY,1).getDay();return G0(t,0,1+(n<=W0?W0:W0+7)-n)}function B2(t){let n=t.getDay(),e=n===0?-3:W0-n;return G0(t.getFullYear(),t.getMonth(),t.getDate()+e)}function lE(t,n=!1){return function(e,i){let r;if(n){let o=new Date(e.getFullYear(),e.getMonth(),1).getDay()-1,a=e.getDate();r=1+Math.floor((a+o)/7)}else{let o=B2(e),a=oY(o.getFullYear()),s=o.getTime()-a.getTime();r=1+Math.round(s/6048e5)}return za(r,t,Ua(i,nr.MinusSign))}}function $0(t,n=!1){return function(e,i){let o=B2(e).getFullYear();return za(o,t,Ua(i,nr.MinusSign),n)}}var cE={};function aY(t){if(cE[t])return cE[t];let n;switch(t){case"G":case"GG":case"GGG":n=Ii(3,yi.Abbreviated);break;case"GGGG":n=Ii(3,yi.Wide);break;case"GGGGG":n=Ii(3,yi.Narrow);break;case"y":n=gn(0,1,0,!1,!0);break;case"yy":n=gn(0,2,0,!0,!0);break;case"yyy":n=gn(0,3,0,!1,!0);break;case"yyyy":n=gn(0,4,0,!1,!0);break;case"Y":n=$0(1);break;case"YY":n=$0(2,!0);break;case"YYY":n=$0(3);break;case"YYYY":n=$0(4);break;case"M":case"L":n=gn(1,1,1);break;case"MM":case"LL":n=gn(1,2,1);break;case"MMM":n=Ii(2,yi.Abbreviated);break;case"MMMM":n=Ii(2,yi.Wide);break;case"MMMMM":n=Ii(2,yi.Narrow);break;case"LLL":n=Ii(2,yi.Abbreviated,Er.Standalone);break;case"LLLL":n=Ii(2,yi.Wide,Er.Standalone);break;case"LLLLL":n=Ii(2,yi.Narrow,Er.Standalone);break;case"w":n=lE(1);break;case"ww":n=lE(2);break;case"W":n=lE(1,!0);break;case"d":n=gn(2,1);break;case"dd":n=gn(2,2);break;case"c":case"cc":n=gn(7,1);break;case"ccc":n=Ii(1,yi.Abbreviated,Er.Standalone);break;case"cccc":n=Ii(1,yi.Wide,Er.Standalone);break;case"ccccc":n=Ii(1,yi.Narrow,Er.Standalone);break;case"cccccc":n=Ii(1,yi.Short,Er.Standalone);break;case"E":case"EE":case"EEE":n=Ii(1,yi.Abbreviated);break;case"EEEE":n=Ii(1,yi.Wide);break;case"EEEEE":n=Ii(1,yi.Narrow);break;case"EEEEEE":n=Ii(1,yi.Short);break;case"a":case"aa":case"aaa":n=Ii(0,yi.Abbreviated);break;case"aaaa":n=Ii(0,yi.Wide);break;case"aaaaa":n=Ii(0,yi.Narrow);break;case"b":case"bb":case"bbb":n=Ii(0,yi.Abbreviated,Er.Standalone,!0);break;case"bbbb":n=Ii(0,yi.Wide,Er.Standalone,!0);break;case"bbbbb":n=Ii(0,yi.Narrow,Er.Standalone,!0);break;case"B":case"BB":case"BBB":n=Ii(0,yi.Abbreviated,Er.Format,!0);break;case"BBBB":n=Ii(0,yi.Wide,Er.Format,!0);break;case"BBBBB":n=Ii(0,yi.Narrow,Er.Format,!0);break;case"h":n=gn(3,1,-12);break;case"hh":n=gn(3,2,-12);break;case"H":n=gn(3,1);break;case"HH":n=gn(3,2);break;case"m":n=gn(4,1);break;case"mm":n=gn(4,2);break;case"s":n=gn(5,1);break;case"ss":n=gn(5,2);break;case"S":n=gn(6,1);break;case"SS":n=gn(6,2);break;case"SSS":n=gn(6,3);break;case"Z":case"ZZ":case"ZZZ":n=U0(0);break;case"ZZZZZ":n=U0(3);break;case"O":case"OO":case"OOO":case"z":case"zz":case"zzz":n=U0(1);break;case"OOOO":case"ZZZZ":case"zzzz":n=U0(2);break;default:return null}return cE[t]=n,n}function j2(t,n){t=t.replace(/:/g,"");let e=Date.parse("Jan 01, 1970 00:00:00 "+t)/6e4;return isNaN(e)?n:e}function sY(t,n){return t=new Date(t.getTime()),t.setMinutes(t.getMinutes()+n),t}function lY(t,n,e){let r=t.getTimezoneOffset(),o=j2(n,r);return sY(t,-1*(o-r))}function cY(t){if(x2(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[r,o=1,a=1]=t.split("-").map(s=>+s);return G0(r,o-1,a)}let e=parseFloat(t);if(!isNaN(t-e))return new Date(e);let i;if(i=t.match(Jq))return dY(i)}let n=new Date(t);if(!x2(n))throw new ue(2311,!1);return n}function dY(t){let n=new Date(0),e=0,i=0,r=t[8]?n.setUTCFullYear:n.setFullYear,o=t[8]?n.setUTCHours:n.setHours;t[9]&&(e=Number(t[9]+t[10]),i=Number(t[9]+t[11])),r.call(n,Number(t[1]),Number(t[2])-1,Number(t[3]));let a=Number(t[4]||0)-e,s=Number(t[5]||0)-i,l=Number(t[6]||0),c=Math.floor(parseFloat("0."+(t[7]||0))*1e3);return o.call(n,a,s,l,c),n}function x2(t){return t instanceof Date&&!isNaN(t.valueOf())}var uY=/^(\d+)?\.((\d+)(-(\d+))?)?$/,C2=22,q0=".",vf="0",mY=";",hY=",",dE="#",w2="\xA4";function H2(t,n,e,i,r,o,a=!1){let s="",l=!1;if(!isFinite(t))s=Ua(e,nr.Infinity);else{let c=fY(t);a&&(c=pY(c));let d=n.minInt,p=n.minFrac,_=n.maxFrac;if(o){let F=o.match(uY);if(F===null)throw new ue(2306,!1);let W=F[1],Z=F[3],K=F[5];W!=null&&(d=uE(W)),Z!=null&&(p=uE(Z)),K!=null?_=uE(K):Z!=null&&p>_&&(_=p)}gY(c,p,_);let b=c.digits,y=c.integerLen,w=c.exponent,C=[];for(l=b.every(F=>!F);y0?C=b.splice(y,b.length):(C=b,b=[0]);let D=[];for(b.length>=n.lgSize&&D.unshift(b.splice(-n.lgSize,b.length).join(""));b.length>n.gSize;)D.unshift(b.splice(-n.gSize,b.length).join(""));b.length&&D.unshift(b.join("")),s=D.join(Ua(e,i)),C.length&&(s+=Ua(e,r)+C.join("")),w&&(s+=Ua(e,nr.Exponential)+"+"+w)}return t<0&&!l?s=n.negPre+s+n.negSuf:s=n.posPre+s+n.posSuf,s}function z2(t,n,e,i,r){let o=gE(n,K0.Currency),a=$2(o,Ua(n,nr.MinusSign));return a.minFrac=L2(i),a.maxFrac=a.minFrac,H2(t,a,n,nr.CurrencyGroup,nr.CurrencyDecimal,r).replace(w2,e).replace(w2,"").trim()}function U2(t,n,e){let i=gE(n,K0.Decimal),r=$2(i,Ua(n,nr.MinusSign));return H2(t,r,n,nr.Group,nr.Decimal,e)}function $2(t,n="-"){let e={minInt:1,minFrac:0,maxFrac:0,posPre:"",posSuf:"",negPre:"",negSuf:"",gSize:0,lgSize:0},i=t.split(mY),r=i[0],o=i[1],a=r.indexOf(q0)!==-1?r.split(q0):[r.substring(0,r.lastIndexOf(vf)+1),r.substring(r.lastIndexOf(vf)+1)],s=a[0],l=a[1]||"";e.posPre=s.substring(0,s.indexOf(dE));for(let d=0;d-1&&(n=n.replace(q0,"")),(o=n.search(/e/i))>0?(r<0&&(r=o),r+=+n.slice(o+1),n=n.substring(0,o)):r<0&&(r=n.length),o=0;n.charAt(o)===vf;o++);if(o===(s=n.length))i=[0],r=1;else{for(s--;n.charAt(s)===vf;)s--;for(r-=o,i=[],a=0;o<=s;o++,a++)i[a]=Number(n.charAt(o))}return r>C2&&(i=i.splice(0,C2-1),e=r-1,r=1),{digits:i,exponent:e,integerLen:r}}function gY(t,n,e){if(n>e)throw new ue(2307,!1);let i=t.digits,r=i.length-t.integerLen,o=Math.min(Math.max(n,r),e),a=o+t.integerLen,s=i[a];if(a>0){i.splice(Math.max(t.integerLen,a));for(let p=a;p=5)if(a-1<0){for(let p=0;p>a;p--)i.unshift(0),t.integerLen++;i.unshift(1),t.integerLen++}else i[a-1]++;for(;r=c?y.pop():l=!1),_>=10?1:0},0);d&&(i.unshift(d),t.integerLen++)}function uE(t){let n=parseInt(t);if(isNaN(n))throw new ue(2305,!1);return n}var mE=/\s+/,D2=[],zd=(()=>{class t{_ngEl;_renderer;initialClasses=D2;rawClass;stateMap=new Map;constructor(e,i){this._ngEl=e,this._renderer=i}set klass(e){this.initialClasses=e!=null?e.trim().split(mE):D2}set ngClass(e){this.rawClass=typeof e=="string"?e.trim().split(mE):e}ngDoCheck(){for(let i of this.initialClasses)this._updateState(i,!0);let e=this.rawClass;if(Array.isArray(e)||e instanceof Set)for(let i of e)this._updateState(i,!0);else if(e!=null)for(let i of Object.keys(e))this._updateState(i,!!e[i]);this._applyStateDiff()}_updateState(e,i){let r=this.stateMap.get(e);r!==void 0?(r.enabled!==i&&(r.changed=!0,r.enabled=i),r.touched=!0):this.stateMap.set(e,{enabled:i,changed:!0,touched:!0})}_applyStateDiff(){for(let e of this.stateMap){let i=e[0],r=e[1];r.changed?(this._toggleClass(i,r.enabled),r.changed=!1):r.touched||(r.enabled&&this._toggleClass(i,!1),this.stateMap.delete(i)),r.touched=!1}}_toggleClass(e,i){e=e.trim(),e.length>0&&e.split(mE).forEach(r=>{i?this._renderer.addClass(this._ngEl.nativeElement,r):this._renderer.removeClass(this._ngEl.nativeElement,r)})}static \u0275fac=function(i){return new(i||t)(be(Y),be(ze))};static \u0275dir=P({type:t,selectors:[["","ngClass",""]],inputs:{klass:[0,"class","klass"],ngClass:"ngClass"}})}return t})();var Y0=class{$implicit;ngForOf;index;count;constructor(n,e,i,r){this.$implicit=n,this.ngForOf=e,this.index=i,this.count=r}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}},Un=(()=>{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,i,r){this._viewContainer=e,this._template=i,this._differs=r}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 i=this._viewContainer;e.forEachOperation((r,o,a)=>{if(r.previousIndex==null)i.createEmbeddedView(this._template,new Y0(r.item,this._ngForOf,-1,-1),a===null?void 0:a);else if(a==null)i.remove(o===null?void 0:o);else if(o!==null){let s=i.get(o);i.move(s,a),M2(s,r)}});for(let r=0,o=i.length;r{let o=i.get(r.currentIndex);M2(o,r)})}static ngTemplateContextGuard(e,i){return!0}static \u0275fac=function(i){return new(i||t)(be(st),be(te),be(Es))};static \u0275dir=P({type:t,selectors:[["","ngFor","","ngForOf",""]],inputs:{ngForOf:"ngForOf",ngForTrackBy:"ngForTrackBy",ngForTemplate:"ngForTemplate"}})}return t})();function M2(t,n){t.context.$implicit=n.item}var Bt=(()=>{class t{_viewContainer;_context=new Q0;_thenTemplateRef=null;_elseTemplateRef=null;_thenViewRef=null;_elseViewRef=null;constructor(e,i){this._viewContainer=e,this._thenTemplateRef=i}set ngIf(e){this._context.$implicit=this._context.ngIf=e,this._updateView()}set ngIfThen(e){E2(e,!1),this._thenTemplateRef=e,this._thenViewRef=null,this._updateView()}set ngIfElse(e){E2(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,i){return!0}static \u0275fac=function(i){return new(i||t)(be(st),be(te))};static \u0275dir=P({type:t,selectors:[["","ngIf",""]],inputs:{ngIf:"ngIf",ngIfThen:"ngIfThen",ngIfElse:"ngIfElse"}})}return t})(),Q0=class{$implicit=null;ngIf=null};function E2(t,n){if(t&&!t.createEmbeddedView)throw new ue(2020,!1)}var $n=(()=>{class t{_viewContainerRef;_viewRef=null;ngTemplateOutletContext=null;ngTemplateOutlet=null;ngTemplateOutletInjector=null;constructor(e){this._viewContainerRef=e}ngOnChanges(e){if(this._shouldRecreateView(e)){let i=this._viewContainerRef;if(this._viewRef&&i.remove(i.indexOf(this._viewRef)),!this.ngTemplateOutlet){this._viewRef=null;return}let r=this._createContextForwardProxy();this._viewRef=i.createEmbeddedView(this.ngTemplateOutlet,r,{injector:this.ngTemplateOutletInjector??void 0})}}_shouldRecreateView(e){return!!e.ngTemplateOutlet||!!e.ngTemplateOutletInjector}_createContextForwardProxy(){return new Proxy({},{set:(e,i,r)=>this.ngTemplateOutletContext?Reflect.set(this.ngTemplateOutletContext,i,r):!1,get:(e,i,r)=>{if(this.ngTemplateOutletContext)return Reflect.get(this.ngTemplateOutletContext,i,r)}})}static \u0275fac=function(i){return new(i||t)(be(st))};static \u0275dir=P({type:t,selectors:[["","ngTemplateOutlet",""]],inputs:{ngTemplateOutletContext:"ngTemplateOutletContext",ngTemplateOutlet:"ngTemplateOutlet",ngTemplateOutletInjector:"ngTemplateOutletInjector"},features:[Oe]})}return t})();function yf(t,n){return new ue(2100,!1)}var hE=class{createSubscription(n,e,i){return Ni(()=>n.subscribe({next:e,error:i}))}dispose(n){Ni(()=>n.unsubscribe())}},pE=class{createSubscription(n,e,i){return n.then(r=>e?.(r),r=>i?.(r)),{unsubscribe:()=>{e=null,i=null}}}dispose(n){n.unsubscribe()}},_Y=new pE,bY=new hE,cn=(()=>{class t{_ref;_latestValue=null;markForCheckOnValueUpdate=!0;_subscription=null;_obj=null;_strategy=null;applicationErrorHandler=u(wr);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,i=>this._updateLatestValue(e,i),i=>this.applicationErrorHandler(i))}_selectStrategy(e){if(fl(e))return _Y;if(I0(e))return bY;throw yf(t,e)}_dispose(){this._strategy.dispose(this._subscription),this._latestValue=null,this._subscription=null,this._obj=null}_updateLatestValue(e,i){e===this._obj&&(this._latestValue=i,this.markForCheckOnValueUpdate&&this._ref?.markForCheck())}static \u0275fac=function(i){return new(i||t)(be(ye,16))};static \u0275pipe=io({name:"async",type:t,pure:!1})}return t})();var vY="mediumDate",W2=new O(""),G2=new O(""),$a=(()=>{class t{locale;defaultTimezone;defaultOptions;constructor(e,i,r){this.locale=e,this.defaultTimezone=i,this.defaultOptions=r}transform(e,i,r,o){if(e==null||e===""||e!==e)return null;try{let a=i??this.defaultOptions?.dateFormat??vY,s=r??this.defaultOptions?.timezone??this.defaultTimezone??void 0;return V2(e,a,o||this.locale,s)}catch(a){throw yf(t,a.message)}}static \u0275fac=function(i){return new(i||t)(be(bl,16),be(W2,24),be(G2,24))};static \u0275pipe=io({name:"date",type:t,pure:!0})}return t})();var xf=(()=>{class t{_locale;constructor(e){this._locale=e}transform(e,i,r){if(!q2(e))return null;r||=this._locale;try{let o=Y2(e);return U2(o,r,i)}catch(o){throw yf(t,o.message)}}static \u0275fac=function(i){return new(i||t)(be(bl,16))};static \u0275pipe=io({name:"number",type:t,pure:!0})}return t})();var yl=(()=>{class t{_locale;_defaultCurrencyCode;constructor(e,i="USD"){this._locale=e,this._defaultCurrencyCode=i}transform(e,i=this._defaultCurrencyCode,r="symbol",o,a){if(!q2(e))return null;a||=this._locale,typeof r=="boolean"&&(r=r?"symbol":"code");let s=i||this._defaultCurrencyCode;r!=="code"&&(r==="symbol"||r==="symbol-narrow"?s=N2(s,r==="symbol"?"wide":"narrow",a):s=r);try{let l=Y2(e);return z2(l,a,s,i,o)}catch(l){throw yf(t,l.message)}}static \u0275fac=function(i){return new(i||t)(be(bl,16),be(YM,16))};static \u0275pipe=io({name:"currency",type:t,pure:!0})}return t})();function q2(t){return!(t==null||t===""||t!==t)}function Y2(t){if(typeof t=="string"&&!isNaN(Number(t)-parseFloat(t)))return Number(t);if(typeof t!="number")throw new ue(2309,!1);return t}var _E=(()=>{class t{transform(e,i,r){if(e==null)return null;if(!(typeof e=="string"||Array.isArray(e)))throw yf(t,e);return e.slice(i,r)}static \u0275fac=function(i){return new(i||t)};static \u0275pipe=io({name:"slice",type:t,pure:!1})}return t})();var Je=(()=>{class t{static \u0275fac=function(i){return new(i||t)};static \u0275mod=ee({type:t});static \u0275inj=J({})}return t})();function Cf(t,n){n=encodeURIComponent(n);for(let e of t.split(";")){let i=e.indexOf("="),[r,o]=i==-1?[e,""]:[e.slice(0,i),e.slice(i+1)];if(r.trim()===n)return decodeURIComponent(o)}return null}var Ud=class{};var vE="browser",yY="server";function Q2(t){return t===vE}function K2(t){return t===yY}var yE=(()=>{class t{static \u0275prov=R({token:t,providedIn:"root",factory:()=>new bE(u(_e),window)})}return t})(),bE=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(Me(I({},e),{left:n[0],top:n[1]}))}scrollToAnchor(n,e){let i=xY(this.document,n);i&&(this.scrollToElement(i,e),i.focus())}setHistoryScrollRestoration(n){try{this.window.history.scrollRestoration=n}catch{console.warn(zo(2400,!1))}}scrollToElement(n,e){let i=n.getBoundingClientRect(),r=i.left+this.window.pageXOffset,o=i.top+this.window.pageYOffset,a=this.offset();this.window.scrollTo(Me(I({},e),{left:r-a[0],top:o-a[1]}))}};function xY(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 i=t.createTreeWalker(t.body,NodeFilter.SHOW_ELEMENT),r=i.currentNode;for(;r;){let o=r.shadowRoot;if(o){let a=o.getElementById(n)||o.querySelector(`[name="${n}"]`);if(a)return a}r=i.nextNode()}}return null}var wf=class{_doc;constructor(n){this._doc=n}manager},Z0=(()=>{class t extends wf{constructor(e){super(e)}supports(e){return!0}addEventListener(e,i,r,o){return e.addEventListener(i,r,o),()=>this.removeEventListener(e,i,r,o)}removeEventListener(e,i,r,o){return e.removeEventListener(i,r,o)}static \u0275fac=function(i){return new(i||t)(pe(_e))};static \u0275prov=R({token:t,factory:t.\u0275fac})}return t})(),J0=new O(""),ME=(()=>{class t{_zone;_plugins;_eventNameToPlugin=new Map;constructor(e,i){this._zone=i,e.forEach(a=>{a.manager=this});let r=e.filter(a=>!(a instanceof Z0));this._plugins=r.slice().reverse();let o=e.find(a=>a instanceof Z0);o&&this._plugins.push(o)}addEventListener(e,i,r,o){return this._findPluginFor(i).addEventListener(e,i,r,o)}getZone(){return this._zone}_findPluginFor(e){let i=this._eventNameToPlugin.get(e);if(i)return i;if(i=this._plugins.find(o=>o.supports(e)),!i)throw new ue(5101,!1);return this._eventNameToPlugin.set(e,i),i}static \u0275fac=function(i){return new(i||t)(pe(J0),pe(ae))};static \u0275prov=R({token:t,factory:t.\u0275fac})}return t})(),xE="ng-app-id";function Z2(t){for(let n of t)n.remove()}function X2(t,n){let e=n.createElement("style");return e.textContent=t,e}function CY(t,n,e,i){let r=t.head?.querySelectorAll(`style[${xE}="${n}"],link[${xE}="${n}"]`);if(r)for(let o of r)o.removeAttribute(xE),o instanceof HTMLLinkElement?i.set(o.href.slice(o.href.lastIndexOf("/")+1),{usage:0,elements:[o]}):o.textContent&&e.set(o.textContent,{usage:0,elements:[o]})}function wE(t,n){let e=n.createElement("link");return e.setAttribute("rel","stylesheet"),e.setAttribute("href",t),e}var EE=(()=>{class t{doc;appId;nonce;inline=new Map;external=new Map;hosts=new Set;constructor(e,i,r,o={}){this.doc=e,this.appId=i,this.nonce=r,CY(e,i,this.inline,this.external),this.hosts.add(e.head)}addStyles(e,i){for(let r of e)this.addUsage(r,this.inline,X2);i?.forEach(r=>this.addUsage(r,this.external,wE))}removeStyles(e,i){for(let r of e)this.removeUsage(r,this.inline);i?.forEach(r=>this.removeUsage(r,this.external))}addUsage(e,i,r){let o=i.get(e);o?o.usage++:i.set(e,{usage:1,elements:[...this.hosts].map(a=>this.addElement(a,r(e,this.doc)))})}removeUsage(e,i){let r=i.get(e);r&&(r.usage--,r.usage<=0&&(Z2(r.elements),i.delete(e)))}ngOnDestroy(){for(let[,{elements:e}]of[...this.inline,...this.external])Z2(e);this.hosts.clear()}addHost(e){this.hosts.add(e);for(let[i,{elements:r}]of this.inline)r.push(this.addElement(e,X2(i,this.doc)));for(let[i,{elements:r}]of this.external)r.push(this.addElement(e,wE(i,this.doc)))}removeHost(e){this.hosts.delete(e)}addElement(e,i){return this.nonce&&i.setAttribute("nonce",this.nonce),e.appendChild(i)}static \u0275fac=function(i){return new(i||t)(pe(_e),pe(uc),pe(xm,8),pe(hl))};static \u0275prov=R({token:t,factory:t.\u0275fac})}return t})(),CE={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"},SE=/%COMP%/g;var eN="%COMP%",wY=`_nghost-${eN}`,DY=`_ngcontent-${eN}`,MY=!0,EY=new O("",{providedIn:"root",factory:()=>MY});function SY(t){return DY.replace(SE,t)}function kY(t){return wY.replace(SE,t)}function tN(t,n){return n.map(e=>e.replace(SE,t))}var kE=(()=>{class t{eventManager;sharedStylesHost;appId;removeStylesOnCompDestroy;doc;ngZone;nonce;tracingService;rendererByCompId=new Map;defaultRenderer;platformIsServer;constructor(e,i,r,o,a,s,l=null,c=null){this.eventManager=e,this.sharedStylesHost=i,this.appId=r,this.removeStylesOnCompDestroy=o,this.doc=a,this.ngZone=s,this.nonce=l,this.tracingService=c,this.platformIsServer=!1,this.defaultRenderer=new Df(e,a,s,this.platformIsServer,this.tracingService)}createRenderer(e,i){if(!e||!i)return this.defaultRenderer;let r=this.getOrCreateRenderer(e,i);return r instanceof X0?r.applyToHost(e):r instanceof Mf&&r.applyStyles(),r}getOrCreateRenderer(e,i){let r=this.rendererByCompId,o=r.get(i.id);if(!o){let a=this.doc,s=this.ngZone,l=this.eventManager,c=this.sharedStylesHost,d=this.removeStylesOnCompDestroy,p=this.platformIsServer,_=this.tracingService;switch(i.encapsulation){case ul.Emulated:o=new X0(l,c,i,this.appId,d,a,s,p,_);break;case ul.ShadowDom:return new DE(l,c,e,i,a,s,this.nonce,p,_);default:o=new Mf(l,c,i,d,a,s,p,_);break}r.set(i.id,o)}return o}ngOnDestroy(){this.rendererByCompId.clear()}componentReplaced(e){this.rendererByCompId.delete(e)}static \u0275fac=function(i){return new(i||t)(pe(ME),pe(EE),pe(uc),pe(EY),pe(_e),pe(ae),pe(xm),pe(mc,8))};static \u0275prov=R({token:t,factory:t.\u0275fac})}return t})(),Df=class{eventManager;doc;ngZone;platformIsServer;tracingService;data=Object.create(null);throwOnSyntheticProps=!0;constructor(n,e,i,r,o){this.eventManager=n,this.doc=e,this.ngZone=i,this.platformIsServer=r,this.tracingService=o}destroy(){}destroyNode=null;createElement(n,e){return e?this.doc.createElementNS(CE[e]||e,n):this.doc.createElement(n)}createComment(n){return this.doc.createComment(n)}createText(n){return this.doc.createTextNode(n)}appendChild(n,e){(J2(n)?n.content:n).appendChild(e)}insertBefore(n,e,i){n&&(J2(n)?n.content:n).insertBefore(e,i)}removeChild(n,e){e.remove()}selectRootElement(n,e){let i=typeof n=="string"?this.doc.querySelector(n):n;if(!i)throw new ue(-5104,!1);return e||(i.textContent=""),i}parentNode(n){return n.parentNode}nextSibling(n){return n.nextSibling}setAttribute(n,e,i,r){if(r){e=r+":"+e;let o=CE[r];o?n.setAttributeNS(o,e,i):n.setAttribute(e,i)}else n.setAttribute(e,i)}removeAttribute(n,e,i){if(i){let r=CE[i];r?n.removeAttributeNS(r,e):n.removeAttribute(`${i}:${e}`)}else n.removeAttribute(e)}addClass(n,e){n.classList.add(e)}removeClass(n,e){n.classList.remove(e)}setStyle(n,e,i,r){r&(xs.DashCase|xs.Important)?n.style.setProperty(e,i,r&xs.Important?"important":""):n.style[e]=i}removeStyle(n,e,i){i&xs.DashCase?n.style.removeProperty(e):n.style[e]=""}setProperty(n,e,i){n!=null&&(n[e]=i)}setValue(n,e){n.nodeValue=e}listen(n,e,i,r){if(typeof n=="string"&&(n=Xo().getGlobalEventTarget(this.doc,n),!n))throw new ue(5102,!1);let o=this.decoratePreventDefault(i);return this.tracingService?.wrapEventListener&&(o=this.tracingService.wrapEventListener(n,e,o)),this.eventManager.addEventListener(n,e,o,r)}decoratePreventDefault(n){return e=>{if(e==="__ngUnwrap__")return n;n(e)===!1&&e.preventDefault()}}};function J2(t){return t.tagName==="TEMPLATE"&&t.content!==void 0}var DE=class extends Df{sharedStylesHost;hostEl;shadowRoot;constructor(n,e,i,r,o,a,s,l,c){super(n,o,a,l,c),this.sharedStylesHost=e,this.hostEl=i,this.shadowRoot=i.attachShadow({mode:"open"}),this.sharedStylesHost.addHost(this.shadowRoot);let d=r.styles;d=tN(r.id,d);for(let _ of d){let b=document.createElement("style");s&&b.setAttribute("nonce",s),b.textContent=_,this.shadowRoot.appendChild(b)}let p=r.getExternalStyles?.();if(p)for(let _ of p){let b=wE(_,o);s&&b.setAttribute("nonce",s),this.shadowRoot.appendChild(b)}}nodeOrShadowRoot(n){return n===this.hostEl?this.shadowRoot:n}appendChild(n,e){return super.appendChild(this.nodeOrShadowRoot(n),e)}insertBefore(n,e,i){return super.insertBefore(this.nodeOrShadowRoot(n),e,i)}removeChild(n,e){return super.removeChild(null,e)}parentNode(n){return this.nodeOrShadowRoot(super.parentNode(this.nodeOrShadowRoot(n)))}destroy(){this.sharedStylesHost.removeHost(this.shadowRoot)}},Mf=class extends Df{sharedStylesHost;removeStylesOnCompDestroy;styles;styleUrls;constructor(n,e,i,r,o,a,s,l,c){super(n,o,a,s,l),this.sharedStylesHost=e,this.removeStylesOnCompDestroy=r;let d=i.styles;this.styles=c?tN(c,d):d,this.styleUrls=i.getExternalStyles?.(c)}applyStyles(){this.sharedStylesHost.addStyles(this.styles,this.styleUrls)}destroy(){this.removeStylesOnCompDestroy&&Nd.size===0&&this.sharedStylesHost.removeStyles(this.styles,this.styleUrls)}},X0=class extends Mf{contentAttr;hostAttr;constructor(n,e,i,r,o,a,s,l,c){let d=r+"-"+i.id;super(n,e,i,o,a,s,l,c,d),this.contentAttr=SY(d),this.hostAttr=kY(d)}applyToHost(n){this.applyStyles(),this.setAttribute(n,this.hostAttr,"")}createElement(n,e){let i=super.createElement(n,e);return super.setAttribute(i,this.contentAttr,""),i}};var ev=class t extends pf{supportsDOMEvents=!0;static makeCurrent(){oE(new t)}onAndCancel(n,e,i,r){return n.addEventListener(e,i,r),()=>{n.removeEventListener(e,i,r)}}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=TY();return e==null?null:IY(e)}resetBaseElement(){Ef=null}getUserAgent(){return window.navigator.userAgent}getCookie(n){return Cf(document.cookie,n)}},Ef=null;function TY(){return Ef=Ef||document.head.querySelector("base"),Ef?Ef.getAttribute("href"):null}function IY(t){return new URL(t,document.baseURI).pathname}var AY=(()=>{class t{build(){return new XMLHttpRequest}static \u0275fac=function(i){return new(i||t)};static \u0275prov=R({token:t,factory:t.\u0275fac})}return t})(),iN=["alt","control","meta","shift"],OY={"\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"},RY={alt:t=>t.altKey,control:t=>t.ctrlKey,meta:t=>t.metaKey,shift:t=>t.shiftKey},nN=(()=>{class t extends wf{constructor(e){super(e)}supports(e){return t.parseEventName(e)!=null}addEventListener(e,i,r,o){let a=t.parseEventName(i),s=t.eventCallback(a.fullKey,r,this.manager.getZone());return this.manager.getZone().runOutsideAngular(()=>Xo().onAndCancel(e,a.domEventName,s,o))}static parseEventName(e){let i=e.toLowerCase().split("."),r=i.shift();if(i.length===0||!(r==="keydown"||r==="keyup"))return null;let o=t._normalizeKey(i.pop()),a="",s=i.indexOf("code");if(s>-1&&(i.splice(s,1),a="code."),iN.forEach(c=>{let d=i.indexOf(c);d>-1&&(i.splice(d,1),a+=c+".")}),a+=o,i.length!=0||o.length===0)return null;let l={};return l.domEventName=r,l.fullKey=a,l}static matchEventFullKeyCode(e,i){let r=OY[e.key]||e.key,o="";return i.indexOf("code.")>-1&&(r=e.code,o="code."),r==null||!r?!1:(r=r.toLowerCase(),r===" "?r="space":r==="."&&(r="dot"),iN.forEach(a=>{if(a!==r){let s=RY[a];s(e)&&(o+=a+".")}}),o+=r,o===i)}static eventCallback(e,i,r){return o=>{t.matchEventFullKeyCode(o,e)&&r.runGuarded(()=>i(o))}}static _normalizeKey(e){return e==="esc"?"escape":e}static \u0275fac=function(i){return new(i||t)(pe(_e))};static \u0275prov=R({token:t,factory:t.\u0275fac})}return t})();function TE(t,n,e){let i=I({rootComponent:t,platformRef:e?.platformRef},PY(n));return h2(i)}function PY(t){return{appProviders:[...BY,...t?.providers??[]],platformProviders:VY}}function FY(){ev.makeCurrent()}function NY(){return new Ln}function LY(){return aM(document),document}var VY=[{provide:hl,useValue:vE},{provide:m0,useValue:FY,multi:!0},{provide:_e,useFactory:LY}];var BY=[{provide:Rp,useValue:"root"},{provide:Ln,useFactory:NY},{provide:J0,useClass:Z0,multi:!0,deps:[_e]},{provide:J0,useClass:nN,multi:!0,deps:[_e]},kE,EE,ME,{provide:hn,useExisting:kE},{provide:Ud,useClass:AY},[]];var Pm=class{},fc=class{},Sr=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 i=e.indexOf(":");if(i>0){let r=e.slice(0,i),o=e.slice(i+1).trim();this.addHeaderEntry(r,o)}})}:typeof Headers<"u"&&n instanceof Headers?(this.headers=new Map,n.forEach((e,i)=>{this.addHeaderEntry(i,e)})):this.lazyInit=()=>{this.headers=new Map,Object.entries(n).forEach(([e,i])=>{this.setHeaderEntries(e,i)})}: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(),Array.from(n.headers.keys()).forEach(e=>{this.headers.set(e,n.headers.get(e)),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 i=n.value;if(typeof i=="string"&&(i=[i]),i.length===0)return;this.maybeSetNormalizedName(n.name,e);let r=(n.op==="a"?this.headers.get(e):void 0)||[];r.push(...i),this.headers.set(e,r);break;case"d":let o=n.value;if(!o)this.headers.delete(e),this.normalizedNames.delete(e);else{let a=this.headers.get(e);if(!a)return;a=a.filter(s=>o.indexOf(s)===-1),a.length===0?(this.headers.delete(e),this.normalizedNames.delete(e)):this.headers.set(e,a)}break}}addHeaderEntry(n,e){let i=n.toLowerCase();this.maybeSetNormalizedName(n,i),this.headers.has(i)?this.headers.get(i).push(e):this.headers.set(i,[e])}setHeaderEntries(n,e){let i=(Array.isArray(e)?e:[e]).map(o=>o.toString()),r=n.toLowerCase();this.headers.set(r,i),this.maybeSetNormalizedName(n,r)}forEach(n){this.init(),Array.from(this.normalizedNames.keys()).forEach(e=>n(this.normalizedNames.get(e),this.headers.get(e)))}};var iv=class{encodeKey(n){return rN(n)}encodeValue(n){return rN(n)}decodeKey(n){return decodeURIComponent(n)}decodeValue(n){return decodeURIComponent(n)}};function jY(t,n){let e=new Map;return t.length>0&&t.replace(/^\?/,"").split("&").forEach(r=>{let o=r.indexOf("="),[a,s]=o==-1?[n.decodeKey(r),""]:[n.decodeKey(r.slice(0,o)),n.decodeValue(r.slice(o+1))],l=e.get(a)||[];l.push(s),e.set(a,l)}),e}var HY=/%(\d[a-f0-9])/gi,zY={40:"@","3A":":",24:"$","2C":",","3B":";","3D":"=","3F":"?","2F":"/"};function rN(t){return encodeURIComponent(t).replace(HY,(n,e)=>zY[e]??n)}function tv(t){return`${t}`}var rr=class t{map;encoder;updates=null;cloneFrom=null;constructor(n={}){if(this.encoder=n.encoder||new iv,n.fromString){if(n.fromObject)throw new ue(2805,!1);this.map=jY(n.fromString,this.encoder)}else n.fromObject?(this.map=new Map,Object.keys(n.fromObject).forEach(e=>{let i=n.fromObject[e],r=Array.isArray(i)?i.map(tv):[tv(i)];this.map.set(e,r)})):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(i=>{let r=n[i];Array.isArray(r)?r.forEach(o=>{e.push({param:i,value:o,op:"a"})}):e.push({param:i,value:r,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(i=>e+"="+this.encoder.encodeValue(i)).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(){this.map===null&&(this.map=new Map),this.cloneFrom!==null&&(this.cloneFrom.init(),this.cloneFrom.keys().forEach(n=>this.map.set(n,this.cloneFrom.map.get(n))),this.updates.forEach(n=>{switch(n.op){case"a":case"s":let e=(n.op==="a"?this.map.get(n.param):void 0)||[];e.push(tv(n.value)),this.map.set(n.param,e);break;case"d":if(n.value!==void 0){let i=this.map.get(n.param)||[],r=i.indexOf(tv(n.value));r!==-1&&i.splice(r,1),i.length>0?this.map.set(n.param,i):this.map.delete(n.param)}else{this.map.delete(n.param);break}}}),this.cloneFrom=this.updates=null)}};var nv=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()}};function UY(t){switch(t){case"DELETE":case"GET":case"HEAD":case"OPTIONS":case"JSONP":return!1;default:return!0}}function oN(t){return typeof ArrayBuffer<"u"&&t instanceof ArrayBuffer}function aN(t){return typeof Blob<"u"&&t instanceof Blob}function sN(t){return typeof FormData<"u"&&t instanceof FormData}function $Y(t){return typeof URLSearchParams<"u"&&t instanceof URLSearchParams}var lN="Content-Type",cN="Accept",dN="X-Request-URL",uN="text/plain",mN="application/json",WY=`${mN}, ${uN}, */*`,Om=class t{url;body=null;headers;context;reportProgress=!1;withCredentials=!1;credentials;keepalive=!1;cache;priority;mode;redirect;referrer;integrity;responseType="json";method;params;urlWithParams;transferCache;timeout;constructor(n,e,i,r){this.url=e,this.method=n.toUpperCase();let o;if(UY(this.method)||r?(this.body=i!==void 0?i:null,o=r):o=i,o){if(this.reportProgress=!!o.reportProgress,this.withCredentials=!!o.withCredentials,this.keepalive=!!o.keepalive,o.responseType&&(this.responseType=o.responseType),o.headers&&(this.headers=o.headers),o.context&&(this.context=o.context),o.params&&(this.params=o.params),o.priority&&(this.priority=o.priority),o.cache&&(this.cache=o.cache),o.credentials&&(this.credentials=o.credentials),typeof o.timeout=="number"){if(o.timeout<1||!Number.isInteger(o.timeout))throw new ue(2822,"");this.timeout=o.timeout}o.mode&&(this.mode=o.mode),o.redirect&&(this.redirect=o.redirect),o.integrity&&(this.integrity=o.integrity),o.referrer&&(this.referrer=o.referrer),this.transferCache=o.transferCache}if(this.headers??=new Sr,this.context??=new nv,!this.params)this.params=new rr,this.urlWithParams=e;else{let a=this.params.toString();if(a.length===0)this.urlWithParams=e;else{let s=e.indexOf("?"),l=s===-1?"?":sK.set(oe,n.setHeaders[oe]),F)),n.setParams&&(W=Object.keys(n.setParams).reduce((K,oe)=>K.set(oe,n.setParams[oe]),W)),new t(e,i,w,{params:W,headers:F,context:Z,reportProgress:D,responseType:r,withCredentials:C,transferCache:b,keepalive:o,cache:s,priority:a,timeout:y,mode:l,redirect:c,credentials:d,referrer:p,integrity:_})}},$d=(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})($d||{}),Fm=class{headers;status;statusText;url;ok;type;redirected;constructor(n,e=200,i="OK"){this.headers=n.headers||new Sr,this.status=n.status!==void 0?n.status:e,this.statusText=n.statusText||i,this.url=n.url||null,this.redirected=n.redirected,this.ok=this.status>=200&&this.status<300}},rv=class t extends Fm{constructor(n={}){super(n)}type=$d.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})}},xl=class t extends Fm{body;constructor(n={}){super(n),this.body=n.body!==void 0?n.body:null}type=$d.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})}},Rm=class extends Fm{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}},GY=200,qY=204;function IE(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}}var kr=(()=>{class t{handler;constructor(e){this.handler=e}request(e,i,r={}){let o;if(e instanceof Om)o=e;else{let l;r.headers instanceof Sr?l=r.headers:l=new Sr(r.headers);let c;r.params&&(r.params instanceof rr?c=r.params:c=new rr({fromObject:r.params})),o=new Om(e,i,r.body!==void 0?r.body:null,{headers:l,context:r.context,params:c,reportProgress:r.reportProgress,responseType:r.responseType||"json",withCredentials:r.withCredentials,transferCache:r.transferCache,keepalive:r.keepalive,priority:r.priority,cache:r.cache,mode:r.mode,redirect:r.redirect,credentials:r.credentials,referrer:r.referrer,integrity:r.integrity,timeout:r.timeout})}let a=Q(o).pipe(jo(l=>this.handler.handle(l)));if(e instanceof Om||r.observe==="events")return a;let s=a.pipe(ce(l=>l instanceof xl));switch(r.observe||"body"){case"body":switch(o.responseType){case"arraybuffer":return s.pipe(se(l=>{if(l.body!==null&&!(l.body instanceof ArrayBuffer))throw new ue(2806,!1);return l.body}));case"blob":return s.pipe(se(l=>{if(l.body!==null&&!(l.body instanceof Blob))throw new ue(2807,!1);return l.body}));case"text":return s.pipe(se(l=>{if(l.body!==null&&typeof l.body!="string")throw new ue(2808,!1);return l.body}));case"json":default:return s.pipe(se(l=>l.body))}case"response":return s;default:throw new ue(2809,!1)}}delete(e,i={}){return this.request("DELETE",e,i)}get(e,i={}){return this.request("GET",e,i)}head(e,i={}){return this.request("HEAD",e,i)}jsonp(e,i){return this.request("JSONP",e,{params:new rr().append(i,"JSONP_CALLBACK"),observe:"body",responseType:"json"})}options(e,i={}){return this.request("OPTIONS",e,i)}patch(e,i,r={}){return this.request("PATCH",e,IE(r,i))}post(e,i,r={}){return this.request("POST",e,IE(r,i))}put(e,i,r={}){return this.request("PUT",e,IE(r,i))}static \u0275fac=function(i){return new(i||t)(pe(Pm))};static \u0275prov=R({token:t,factory:t.\u0275fac})}return t})();var YY=new O("");function QY(t,n){return n(t)}function KY(t,n,e){return(i,r)=>Vn(e,()=>n(i,o=>t(o,r)))}var OE=new O(""),RE=new O(""),hN=new O(""),pN=new O("",{providedIn:"root",factory:()=>!0});var ov=(()=>{class t extends Pm{backend;injector;chain=null;pendingTasks=u(dm);contributeToStability=u(pN);constructor(e,i){super(),this.backend=e,this.injector=i}handle(e){if(this.chain===null){let i=Array.from(new Set([...this.injector.get(RE),...this.injector.get(hN,[])]));this.chain=i.reduceRight((r,o)=>KY(r,o,this.injector),QY)}if(this.contributeToStability){let i=this.pendingTasks.add();return this.chain(e,r=>this.backend.handle(r)).pipe(Xr(i))}else return this.chain(e,i=>this.backend.handle(i))}static \u0275fac=function(i){return new(i||t)(pe(fc),pe(ti))};static \u0275prov=R({token:t,factory:t.\u0275fac})}return t})();var ZY=/^\)\]\}',?\n/,XY=RegExp(`^${dN}:`,"m");function JY(t){return"responseURL"in t&&t.responseURL?t.responseURL:XY.test(t.getAllResponseHeaders())?t.getResponseHeader(dN):null}var AE=(()=>{class t{xhrFactory;constructor(e){this.xhrFactory=e}handle(e){if(e.method==="JSONP")throw new ue(-2800,!1);let i=this.xhrFactory;return Q(null).pipe(je(()=>new Ne(o=>{let a=i.build();if(a.open(e.method,e.urlWithParams),e.withCredentials&&(a.withCredentials=!0),e.headers.forEach((C,D)=>a.setRequestHeader(C,D.join(","))),e.headers.has(cN)||a.setRequestHeader(cN,WY),!e.headers.has(lN)){let C=e.detectContentTypeHeader();C!==null&&a.setRequestHeader(lN,C)}if(e.timeout&&(a.timeout=e.timeout),e.responseType){let C=e.responseType.toLowerCase();a.responseType=C!=="json"?C:"text"}let s=e.serializeBody(),l=null,c=()=>{if(l!==null)return l;let C=a.statusText||"OK",D=new Sr(a.getAllResponseHeaders()),F=JY(a)||e.url;return l=new rv({headers:D,status:a.status,statusText:C,url:F}),l},d=()=>{let{headers:C,status:D,statusText:F,url:W}=c(),Z=null;D!==qY&&(Z=typeof a.response>"u"?a.responseText:a.response),D===0&&(D=Z?GY:0);let K=D>=200&&D<300;if(e.responseType==="json"&&typeof Z=="string"){let oe=Z;Z=Z.replace(ZY,"");try{Z=Z!==""?JSON.parse(Z):null}catch(Se){Z=oe,K&&(K=!1,Z={error:Se,text:Z})}}K?(o.next(new xl({body:Z,headers:C,status:D,statusText:F,url:W||void 0})),o.complete()):o.error(new Rm({error:Z,headers:C,status:D,statusText:F,url:W||void 0}))},p=C=>{let{url:D}=c(),F=new Rm({error:C,status:a.status||0,statusText:a.statusText||"Unknown Error",url:D||void 0});o.error(F)},_=p;e.timeout&&(_=C=>{let{url:D}=c(),F=new Rm({error:new DOMException("Request timed out","TimeoutError"),status:a.status||0,statusText:a.statusText||"Request timeout",url:D||void 0});o.error(F)});let b=!1,y=C=>{b||(o.next(c()),b=!0);let D={type:$d.DownloadProgress,loaded:C.loaded};C.lengthComputable&&(D.total=C.total),e.responseType==="text"&&a.responseText&&(D.partialText=a.responseText),o.next(D)},w=C=>{let D={type:$d.UploadProgress,loaded:C.loaded};C.lengthComputable&&(D.total=C.total),o.next(D)};return a.addEventListener("load",d),a.addEventListener("error",p),a.addEventListener("timeout",_),a.addEventListener("abort",p),e.reportProgress&&(a.addEventListener("progress",y),s!==null&&a.upload&&a.upload.addEventListener("progress",w)),a.send(s),o.next({type:$d.Sent}),()=>{a.removeEventListener("error",p),a.removeEventListener("abort",p),a.removeEventListener("load",d),a.removeEventListener("timeout",_),e.reportProgress&&(a.removeEventListener("progress",y),s!==null&&a.upload&&a.upload.removeEventListener("progress",w)),a.readyState!==a.DONE&&a.abort()}})))}static \u0275fac=function(i){return new(i||t)(pe(Ud))};static \u0275prov=R({token:t,factory:t.\u0275fac})}return t})(),fN=new O(""),eQ="XSRF-TOKEN",tQ=new O("",{providedIn:"root",factory:()=>eQ}),iQ="X-XSRF-TOKEN",nQ=new O("",{providedIn:"root",factory:()=>iQ}),Sf=class{},rQ=(()=>{class t{doc;cookieName;lastCookieString="";lastToken=null;parseCount=0;constructor(e,i){this.doc=e,this.cookieName=i}getToken(){let e=this.doc.cookie||"";return e!==this.lastCookieString&&(this.parseCount++,this.lastToken=Cf(e,this.cookieName),this.lastCookieString=e),this.lastToken}static \u0275fac=function(i){return new(i||t)(pe(_e),pe(tQ))};static \u0275prov=R({token:t,factory:t.\u0275fac})}return t})(),oQ=/^(?:https?:)?\/\//i;function aQ(t,n){if(!u(fN)||t.method==="GET"||t.method==="HEAD"||oQ.test(t.url))return n(t);let e=u(Sf).getToken(),i=u(nQ);return e!=null&&!t.headers.has(i)&&(t=t.clone({headers:t.headers.set(i,e)})),n(t)}var PE=(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})(PE||{});function sQ(t,n){return{\u0275kind:t,\u0275providers:n}}function FE(...t){let n=[kr,AE,ov,{provide:Pm,useExisting:ov},{provide:fc,useFactory:()=>u(YY,{optional:!0})??u(AE)},{provide:RE,useValue:aQ,multi:!0},{provide:fN,useValue:!0},{provide:Sf,useClass:rQ}];for(let e of t)n.push(...e.\u0275providers);return Jr(n)}function NE(t){return sQ(PE.Interceptors,t.map(n=>({provide:RE,useValue:n,multi:!0})))}var _N=(()=>{class t{_doc;constructor(e){this._doc=e}getTitle(){return this._doc.title}setTitle(e){this._doc.title=e||""}static \u0275fac=function(i){return new(i||t)(pe(_e))};static \u0275prov=R({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();var kf=(()=>{class t{static \u0275fac=function(i){return new(i||t)};static \u0275prov=R({token:t,factory:function(i){let r=null;return i?r=new(i||t):r=pe(lQ),r},providedIn:"root"})}return t})(),lQ=(()=>{class t extends kf{_doc;constructor(e){super(),this._doc=e}sanitize(e,i){if(i==null)return null;switch(e){case Bn.NONE:return i;case Bn.HTML:return Ds(i,"HTML")?eo(i):g0(this._doc,String(i)).toString();case Bn.STYLE:return Ds(i,"Style")?eo(i):i;case Bn.SCRIPT:if(Ds(i,"Script"))return eo(i);throw new ue(5200,!1);case Bn.URL:return Ds(i,"URL")?eo(i):tf(String(i));case Bn.RESOURCE_URL:if(Ds(i,"ResourceURL"))return eo(i);throw new ue(5201,!1);default:throw new ue(5202,!1)}}bypassSecurityTrustHtml(e){return cM(e)}bypassSecurityTrustStyle(e){return dM(e)}bypassSecurityTrustScript(e){return uM(e)}bypassSecurityTrustUrl(e){return mM(e)}bypassSecurityTrustResourceUrl(e){return hM(e)}static \u0275fac=function(i){return new(i||t)(pe(_e))};static \u0275prov=R({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();var pt="primary",Hf=Symbol("RouteTitle"),zE=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 qd(t){return new zE(t)}function MN(t,n,e){let i=e.path.split("/");if(i.length>t.length||e.pathMatch==="full"&&(n.hasChildren()||i.lengthi[o]===r)}else return t===n}function SN(t){return t.length>0?t[t.length-1]:null}function Cl(t){return qi(t)?t:fl(t)?$t(Promise.resolve(t)):Q(t)}var dQ={exact:TN,subset:IN},kN={exact:uQ,subset:mQ,ignored:()=>!0};function bN(t,n,e){return dQ[e.paths](t.root,n.root,e.matrixParams)&&kN[e.queryParams](t.queryParams,n.queryParams)&&!(e.fragment==="exact"&&t.fragment!==n.fragment)}function uQ(t,n){return ks(t,n)}function TN(t,n,e){if(!Wd(t.segments,n.segments)||!lv(t.segments,n.segments,e)||t.numberOfChildren!==n.numberOfChildren)return!1;for(let i in n.children)if(!t.children[i]||!TN(t.children[i],n.children[i],e))return!1;return!0}function mQ(t,n){return Object.keys(n).length<=Object.keys(t).length&&Object.keys(n).every(e=>EN(t[e],n[e]))}function IN(t,n,e){return AN(t,n,n.segments,e)}function AN(t,n,e,i){if(t.segments.length>e.length){let r=t.segments.slice(0,e.length);return!(!Wd(r,e)||n.hasChildren()||!lv(r,e,i))}else if(t.segments.length===e.length){if(!Wd(t.segments,e)||!lv(t.segments,e,i))return!1;for(let r in n.children)if(!t.children[r]||!IN(t.children[r],n.children[r],i))return!1;return!0}else{let r=e.slice(0,t.segments.length),o=e.slice(t.segments.length);return!Wd(t.segments,r)||!lv(t.segments,r,i)||!t.children[pt]?!1:AN(t.children[pt],n,o,i)}}function lv(t,n,e){return n.every((i,r)=>kN[e](t[r].parameters,i.parameters))}var Ts=class{root;queryParams;fragment;_queryParamMap;constructor(n=new ri([],{}),e={},i=null){this.root=n,this.queryParams=e,this.fragment=i}get queryParamMap(){return this._queryParamMap??=qd(this.queryParams),this._queryParamMap}toString(){return fQ.serialize(this)}},ri=class{segments;children;parent=null;constructor(n,e){this.segments=n,this.children=e,Object.values(e).forEach(i=>i.parent=this)}hasChildren(){return this.numberOfChildren>0}get numberOfChildren(){return Object.keys(this.children).length}toString(){return cv(this)}},gc=class{path;parameters;_parameterMap;constructor(n,e){this.path=n,this.parameters=e}get parameterMap(){return this._parameterMap??=qd(this.parameters),this._parameterMap}toString(){return RN(this)}};function hQ(t,n){return Wd(t,n)&&t.every((e,i)=>ks(e.parameters,n[i].parameters))}function Wd(t,n){return t.length!==n.length?!1:t.every((e,i)=>e.path===n[i].path)}function pQ(t,n){let e=[];return Object.entries(t.children).forEach(([i,r])=>{i===pt&&(e=e.concat(n(r,i)))}),Object.entries(t.children).forEach(([i,r])=>{i!==pt&&(e=e.concat(n(r,i)))}),e}var yc=(()=>{class t{static \u0275fac=function(i){return new(i||t)};static \u0275prov=R({token:t,factory:()=>new _c,providedIn:"root"})}return t})(),_c=class{parse(n){let e=new WE(n);return new Ts(e.parseRootSegment(),e.parseQueryParams(),e.parseFragment())}serialize(n){let e=`/${Tf(n.root,!0)}`,i=bQ(n.queryParams),r=typeof n.fragment=="string"?`#${gQ(n.fragment)}`:"";return`${e}${i}${r}`}},fQ=new _c;function cv(t){return t.segments.map(n=>RN(n)).join("/")}function Tf(t,n){if(!t.hasChildren())return cv(t);if(n){let e=t.children[pt]?Tf(t.children[pt],!1):"",i=[];return Object.entries(t.children).forEach(([r,o])=>{r!==pt&&i.push(`${r}:${Tf(o,!1)}`)}),i.length>0?`${e}(${i.join("//")})`:e}else{let e=pQ(t,(i,r)=>r===pt?[Tf(t.children[pt],!1)]:[`${r}:${Tf(i,!1)}`]);return Object.keys(t.children).length===1&&t.children[pt]!=null?`${cv(t)}/${e[0]}`:`${cv(t)}/(${e.join("//")})`}}function ON(t){return encodeURIComponent(t).replace(/%40/g,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",")}function av(t){return ON(t).replace(/%3B/gi,";")}function gQ(t){return encodeURI(t)}function $E(t){return ON(t).replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/%26/gi,"&")}function dv(t){return decodeURIComponent(t)}function vN(t){return dv(t.replace(/\+/g,"%20"))}function RN(t){return`${$E(t.path)}${_Q(t.parameters)}`}function _Q(t){return Object.entries(t).map(([n,e])=>`;${$E(n)}=${$E(e)}`).join("")}function bQ(t){let n=Object.entries(t).map(([e,i])=>Array.isArray(i)?i.map(r=>`${av(e)}=${av(r)}`).join("&"):`${av(e)}=${av(i)}`).filter(e=>e);return n.length?`?${n.join("&")}`:""}var vQ=/^[^\/()?;#]+/;function VE(t){let n=t.match(vQ);return n?n[0]:""}var yQ=/^[^\/()?;=#]+/;function xQ(t){let n=t.match(yQ);return n?n[0]:""}var CQ=/^[^=?&#]+/;function wQ(t){let n=t.match(CQ);return n?n[0]:""}var DQ=/^[^&#]+/;function MQ(t){let n=t.match(DQ);return n?n[0]:""}var WE=class{url;remaining;constructor(n){this.url=n,this.remaining=n}parseRootSegment(){return this.consumeOptional("/"),this.remaining===""||this.peekStartsWith("?")||this.peekStartsWith("#")?new ri([],{}):new ri([],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(){if(this.remaining==="")return{};this.consumeOptional("/");let n=[];for(this.peekStartsWith("(")||n.push(this.parseSegment());this.peekStartsWith("/")&&!this.peekStartsWith("//")&&!this.peekStartsWith("/(");)this.capture("/"),n.push(this.parseSegment());let e={};this.peekStartsWith("/(")&&(this.capture("/"),e=this.parseParens(!0));let i={};return this.peekStartsWith("(")&&(i=this.parseParens(!1)),(n.length>0||Object.keys(e).length>0)&&(i[pt]=new ri(n,e)),i}parseSegment(){let n=VE(this.remaining);if(n===""&&this.peekStartsWith(";"))throw new ue(4009,!1);return this.capture(n),new gc(dv(n),this.parseMatrixParams())}parseMatrixParams(){let n={};for(;this.consumeOptional(";");)this.parseParam(n);return n}parseParam(n){let e=xQ(this.remaining);if(!e)return;this.capture(e);let i="";if(this.consumeOptional("=")){let r=VE(this.remaining);r&&(i=r,this.capture(i))}n[dv(e)]=dv(i)}parseQueryParam(n){let e=wQ(this.remaining);if(!e)return;this.capture(e);let i="";if(this.consumeOptional("=")){let a=MQ(this.remaining);a&&(i=a,this.capture(i))}let r=vN(e),o=vN(i);if(n.hasOwnProperty(r)){let a=n[r];Array.isArray(a)||(a=[a],n[r]=a),a.push(o)}else n[r]=o}parseParens(n){let e={};for(this.capture("(");!this.consumeOptional(")")&&this.remaining.length>0;){let i=VE(this.remaining),r=this.remaining[i.length];if(r!=="/"&&r!==")"&&r!==";")throw new ue(4010,!1);let o;i.indexOf(":")>-1?(o=i.slice(0,i.indexOf(":")),this.capture(o),this.capture(":")):n&&(o=pt);let a=this.parseChildren();e[o??pt]=Object.keys(a).length===1&&a[pt]?a[pt]:new ri([],a),this.consumeOptional("//")}return e}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 ue(4011,!1)}};function PN(t){return t.segments.length>0?new ri([],{[pt]:t}):t}function FN(t){let n={};for(let[i,r]of Object.entries(t.children)){let o=FN(r);if(i===pt&&o.segments.length===0&&o.hasChildren())for(let[a,s]of Object.entries(o.children))n[a]=s;else(o.segments.length>0||o.hasChildren())&&(n[i]=o)}let e=new ri(t.segments,n);return EQ(e)}function EQ(t){if(t.numberOfChildren===1&&t.children[pt]){let n=t.children[pt];return new ri(t.segments.concat(n.segments),n.children)}return t}function bc(t){return t instanceof Ts}function NN(t,n,e=null,i=null){let r=LN(t);return VN(r,n,e,i)}function LN(t){let n;function e(o){let a={};for(let l of o.children){let c=e(l);a[l.outlet]=c}let s=new ri(o.url,a);return o===t&&(n=s),s}let i=e(t.root),r=PN(i);return n??r}function VN(t,n,e,i){let r=t;for(;r.parent;)r=r.parent;if(n.length===0)return BE(r,r,r,e,i);let o=SQ(n);if(o.toRoot())return BE(r,r,new ri([],{}),e,i);let a=kQ(o,r,t),s=a.processChildren?Af(a.segmentGroup,a.index,o.commands):jN(a.segmentGroup,a.index,o.commands);return BE(r,a.segmentGroup,s,e,i)}function uv(t){return typeof t=="object"&&t!=null&&!t.outlets&&!t.segmentPath}function Rf(t){return typeof t=="object"&&t!=null&&t.outlets}function BE(t,n,e,i,r){let o={};i&&Object.entries(i).forEach(([l,c])=>{o[l]=Array.isArray(c)?c.map(d=>`${d}`):`${c}`});let a;t===n?a=e:a=BN(t,n,e);let s=PN(FN(a));return new Ts(s,o,r)}function BN(t,n,e){let i={};return Object.entries(t.children).forEach(([r,o])=>{o===n?i[r]=e:i[r]=BN(o,n,e)}),new ri(t.segments,i)}var mv=class{isAbsolute;numberOfDoubleDots;commands;constructor(n,e,i){if(this.isAbsolute=n,this.numberOfDoubleDots=e,this.commands=i,n&&i.length>0&&uv(i[0]))throw new ue(4003,!1);let r=i.find(Rf);if(r&&r!==SN(i))throw new ue(4004,!1)}toRoot(){return this.isAbsolute&&this.commands.length===1&&this.commands[0]=="/"}};function SQ(t){if(typeof t[0]=="string"&&t.length===1&&t[0]==="/")return new mv(!0,0,t);let n=0,e=!1,i=t.reduce((r,o,a)=>{if(typeof o=="object"&&o!=null){if(o.outlets){let s={};return Object.entries(o.outlets).forEach(([l,c])=>{s[l]=typeof c=="string"?c.split("/"):c}),[...r,{outlets:s}]}if(o.segmentPath)return[...r,o.segmentPath]}return typeof o!="string"?[...r,o]:a===0?(o.split("/").forEach((s,l)=>{l==0&&s==="."||(l==0&&s===""?e=!0:s===".."?n++:s!=""&&r.push(s))}),r):[...r,o]},[]);return new mv(e,n,i)}var Vm=class{segmentGroup;processChildren;index;constructor(n,e,i){this.segmentGroup=n,this.processChildren=e,this.index=i}};function kQ(t,n,e){if(t.isAbsolute)return new Vm(n,!0,0);if(!e)return new Vm(n,!1,NaN);if(e.parent===null)return new Vm(e,!0,0);let i=uv(t.commands[0])?0:1,r=e.segments.length-1+i;return TQ(e,r,t.numberOfDoubleDots)}function TQ(t,n,e){let i=t,r=n,o=e;for(;o>r;){if(o-=r,i=i.parent,!i)throw new ue(4005,!1);r=i.segments.length}return new Vm(i,!1,r-o)}function IQ(t){return Rf(t[0])?t[0].outlets:{[pt]:t}}function jN(t,n,e){if(t??=new ri([],{}),t.segments.length===0&&t.hasChildren())return Af(t,n,e);let i=AQ(t,n,e),r=e.slice(i.commandIndex);if(i.match&&i.pathIndexo!==pt)&&t.children[pt]&&t.numberOfChildren===1&&t.children[pt].segments.length===0){let o=Af(t.children[pt],n,e);return new ri(t.segments,o.children)}return Object.entries(i).forEach(([o,a])=>{typeof a=="string"&&(a=[a]),a!==null&&(r[o]=jN(t.children[o],n,a))}),Object.entries(t.children).forEach(([o,a])=>{i[o]===void 0&&(r[o]=a)}),new ri(t.segments,r)}}function AQ(t,n,e){let i=0,r=n,o={match:!1,pathIndex:0,commandIndex:0};for(;r=e.length)return o;let a=t.segments[r],s=e[i];if(Rf(s))break;let l=`${s}`,c=i0&&l===void 0)break;if(l&&c&&typeof c=="object"&&c.outlets===void 0){if(!xN(l,c,a))return o;i+=2}else{if(!xN(l,{},a))return o;i++}r++}return{match:!0,pathIndex:r,commandIndex:i}}function GE(t,n,e){let i=t.segments.slice(0,n),r=0;for(;r{typeof i=="string"&&(i=[i]),i!==null&&(n[e]=GE(new ri([],{}),0,i))}),n}function yN(t){let n={};return Object.entries(t).forEach(([e,i])=>n[e]=`${i}`),n}function xN(t,n,e){return t==e.path&&ks(n,e.parameters)}var Bm="imperative",En=(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})(En||{}),Eo=class{id;url;constructor(n,e){this.id=n,this.url=e}},Is=class extends Eo{type=En.NavigationStart;navigationTrigger;restoredState;constructor(n,e,i="imperative",r=null){super(n,e),this.navigationTrigger=i,this.restoredState=r}toString(){return`NavigationStart(id: ${this.id}, url: '${this.url}')`}},Si=class extends Eo{urlAfterRedirects;type=En.NavigationEnd;constructor(n,e,i){super(n,e),this.urlAfterRedirects=i}toString(){return`NavigationEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}')`}},Ur=(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})(Ur||{}),Hm=(function(t){return t[t.IgnoredSameUrlNavigation=0]="IgnoredSameUrlNavigation",t[t.IgnoredByUrlHandlingStrategy=1]="IgnoredByUrlHandlingStrategy",t})(Hm||{}),ea=class extends Eo{reason;code;type=En.NavigationCancel;constructor(n,e,i,r){super(n,e),this.reason=i,this.code=r}toString(){return`NavigationCancel(id: ${this.id}, url: '${this.url}')`}},As=class extends Eo{reason;code;type=En.NavigationSkipped;constructor(n,e,i,r){super(n,e),this.reason=i,this.code=r}},vc=class extends Eo{error;target;type=En.NavigationError;constructor(n,e,i,r){super(n,e),this.error=i,this.target=r}toString(){return`NavigationError(id: ${this.id}, url: '${this.url}', error: ${this.error})`}},Pf=class extends Eo{urlAfterRedirects;state;type=En.RoutesRecognized;constructor(n,e,i,r){super(n,e),this.urlAfterRedirects=i,this.state=r}toString(){return`RoutesRecognized(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}},hv=class extends Eo{urlAfterRedirects;state;type=En.GuardsCheckStart;constructor(n,e,i,r){super(n,e),this.urlAfterRedirects=i,this.state=r}toString(){return`GuardsCheckStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}},pv=class extends Eo{urlAfterRedirects;state;shouldActivate;type=En.GuardsCheckEnd;constructor(n,e,i,r,o){super(n,e),this.urlAfterRedirects=i,this.state=r,this.shouldActivate=o}toString(){return`GuardsCheckEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state}, shouldActivate: ${this.shouldActivate})`}},fv=class extends Eo{urlAfterRedirects;state;type=En.ResolveStart;constructor(n,e,i,r){super(n,e),this.urlAfterRedirects=i,this.state=r}toString(){return`ResolveStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}},gv=class extends Eo{urlAfterRedirects;state;type=En.ResolveEnd;constructor(n,e,i,r){super(n,e),this.urlAfterRedirects=i,this.state=r}toString(){return`ResolveEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}},_v=class{route;type=En.RouteConfigLoadStart;constructor(n){this.route=n}toString(){return`RouteConfigLoadStart(path: ${this.route.path})`}},bv=class{route;type=En.RouteConfigLoadEnd;constructor(n){this.route=n}toString(){return`RouteConfigLoadEnd(path: ${this.route.path})`}},vv=class{snapshot;type=En.ChildActivationStart;constructor(n){this.snapshot=n}toString(){return`ChildActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}},yv=class{snapshot;type=En.ChildActivationEnd;constructor(n){this.snapshot=n}toString(){return`ChildActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}},xv=class{snapshot;type=En.ActivationStart;constructor(n){this.snapshot=n}toString(){return`ActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}},Cv=class{snapshot;type=En.ActivationEnd;constructor(n){this.snapshot=n}toString(){return`ActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}},zm=class{routerEvent;position;anchor;type=En.Scroll;constructor(n,e,i){this.routerEvent=n,this.position=e,this.anchor=i}toString(){let n=this.position?`${this.position[0]}, ${this.position[1]}`:null;return`Scroll(anchor: '${this.anchor}', position: '${n}')`}},Ff=class{},Um=class{url;navigationBehaviorOptions;constructor(n,e){this.url=n,this.navigationBehaviorOptions=e}};function RQ(t){return!(t instanceof Ff)&&!(t instanceof Um)}function PQ(t,n){return t.providers&&!t._injector&&(t._injector=Dm(t.providers,n,`Route: ${t.path}`)),t._injector??n}function Wa(t){return t.outlet||pt}function FQ(t,n){let e=t.filter(i=>Wa(i)===n);return e.push(...t.filter(i=>Wa(i)!==n)),e}function Gm(t){if(!t)return null;if(t.routeConfig?._injector)return t.routeConfig._injector;for(let n=t.parent;n;n=n.parent){let e=n.routeConfig;if(e?._loadedInjector)return e._loadedInjector;if(e?._injector)return e._injector}return null}var wv=class{rootInjector;outlet=null;route=null;children;attachRef=null;get injector(){return Gm(this.route?.snapshot)??this.rootInjector}constructor(n){this.rootInjector=n,this.children=new Yd(this.rootInjector)}},Yd=(()=>{class t{rootInjector;contexts=new Map;constructor(e){this.rootInjector=e}onChildOutletCreated(e,i){let r=this.getOrCreateContext(e);r.outlet=i,this.contexts.set(e,r)}onChildOutletDestroyed(e){let i=this.getContext(e);i&&(i.outlet=null,i.attachRef=null)}onOutletDeactivated(){let e=this.contexts;return this.contexts=new Map,e}onOutletReAttached(e){this.contexts=e}getOrCreateContext(e){let i=this.getContext(e);return i||(i=new wv(this.rootInjector),this.contexts.set(e,i)),i}getContext(e){return this.contexts.get(e)||null}static \u0275fac=function(i){return new(i||t)(pe(ti))};static \u0275prov=R({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),Dv=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=qE(n,this._root);return e?e.children.map(i=>i.value):[]}firstChild(n){let e=qE(n,this._root);return e&&e.children.length>0?e.children[0].value:null}siblings(n){let e=YE(n,this._root);return e.length<2?[]:e[e.length-2].children.map(r=>r.value).filter(r=>r!==n)}pathFromRoot(n){return YE(n,this._root).map(e=>e.value)}};function qE(t,n){if(t===n.value)return n;for(let e of n.children){let i=qE(t,e);if(i)return i}return null}function YE(t,n){if(t===n.value)return[n];for(let e of n.children){let i=YE(t,e);if(i.length)return i.unshift(n),i}return[]}var Mo=class{value;children;constructor(n,e){this.value=n,this.children=e}toString(){return`TreeNode(${this.value})`}};function Lm(t){let n={};return t&&t.children.forEach(e=>n[e.value.outlet]=e),n}var Nf=class extends Dv{snapshot;constructor(n,e){super(n),this.snapshot=e,iS(this,n)}toString(){return this.snapshot.toString()}};function HN(t){let n=NQ(t),e=new rt([new gc("",{})]),i=new rt({}),r=new rt({}),o=new rt({}),a=new rt(""),s=new Ai(e,i,o,a,r,pt,t,n.root);return s.snapshot=n.root,new Nf(new Mo(s,[]),n)}function NQ(t){let n={},e={},i={},o=new Gd([],n,i,"",e,pt,t,null,{});return new Lf("",new Mo(o,[]))}var Ai=class{urlSubject;paramsSubject;queryParamsSubject;fragmentSubject;dataSubject;outlet;component;snapshot;_futureSnapshot;_routerState;_paramMap;_queryParamMap;title;url;params;queryParams;fragment;data;constructor(n,e,i,r,o,a,s,l){this.urlSubject=n,this.paramsSubject=e,this.queryParamsSubject=i,this.fragmentSubject=r,this.dataSubject=o,this.outlet=a,this.component=s,this._futureSnapshot=l,this.title=this.dataSubject?.pipe(se(c=>c[Hf]))??Q(void 0),this.url=n,this.params=e,this.queryParams=i,this.fragment=r,this.data=o}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(se(n=>qd(n))),this._paramMap}get queryParamMap(){return this._queryParamMap??=this.queryParams.pipe(se(n=>qd(n))),this._queryParamMap}toString(){return this.snapshot?this.snapshot.toString():`Future(${this._futureSnapshot})`}};function Mv(t,n,e="emptyOnly"){let i,{routeConfig:r}=t;return n!==null&&(e==="always"||r?.path===""||!n.component&&!n.routeConfig?.loadComponent)?i={params:I(I({},n.params),t.params),data:I(I({},n.data),t.data),resolve:I(I(I(I({},t.data),n.data),r?.data),t._resolvedData)}:i={params:I({},t.params),data:I({},t.data),resolve:I(I({},t.data),t._resolvedData??{})},r&&UN(r)&&(i.resolve[Hf]=r.title),i}var Gd=class{url;params;queryParams;fragment;data;outlet;component;routeConfig;_resolve;_resolvedData;_routerState;_paramMap;_queryParamMap;get title(){return this.data?.[Hf]}constructor(n,e,i,r,o,a,s,l,c){this.url=n,this.params=e,this.queryParams=i,this.fragment=r,this.data=o,this.outlet=a,this.component=s,this.routeConfig=l,this._resolve=c}get root(){return this._routerState.root}get parent(){return this._routerState.parent(this)}get firstChild(){return this._routerState.firstChild(this)}get children(){return this._routerState.children(this)}get pathFromRoot(){return this._routerState.pathFromRoot(this)}get paramMap(){return this._paramMap??=qd(this.params),this._paramMap}get queryParamMap(){return this._queryParamMap??=qd(this.queryParams),this._queryParamMap}toString(){let n=this.url.map(i=>i.toString()).join("/"),e=this.routeConfig?this.routeConfig.path:"";return`Route(url:'${n}', path:'${e}')`}},Lf=class extends Dv{url;constructor(n,e){super(e),this.url=n,iS(this,e)}toString(){return zN(this._root)}};function iS(t,n){n.value._routerState=t,n.children.forEach(e=>iS(t,e))}function zN(t){let n=t.children.length>0?` { ${t.children.map(zN).join(", ")} } `:"";return`${t.value}${n}`}function jE(t){if(t.snapshot){let n=t.snapshot,e=t._futureSnapshot;t.snapshot=e,ks(n.queryParams,e.queryParams)||t.queryParamsSubject.next(e.queryParams),n.fragment!==e.fragment&&t.fragmentSubject.next(e.fragment),ks(n.params,e.params)||t.paramsSubject.next(e.params),cQ(n.url,e.url)||t.urlSubject.next(e.url),ks(n.data,e.data)||t.dataSubject.next(e.data)}else t.snapshot=t._futureSnapshot,t.dataSubject.next(t._futureSnapshot.data)}function QE(t,n){let e=ks(t.params,n.params)&&hQ(t.url,n.url),i=!t.parent!=!n.parent;return e&&!i&&(!t.parent||QE(t.parent,n.parent))}function UN(t){return typeof t.title=="string"||t.title===null}var $N=new O(""),wl=(()=>{class t{activated=null;get activatedComponentRef(){return this.activated}_activatedRoute=null;name=pt;activateEvents=new U;deactivateEvents=new U;attachEvents=new U;detachEvents=new U;routerOutletData=re();parentContexts=u(Yd);location=u(st);changeDetector=u(ye);inputBinder=u(zf,{optional:!0});supportsBindingToComponentInputs=!0;ngOnChanges(e){if(e.name){let{firstChange:i,previousValue:r}=e.name;if(i)return;this.isTrackedInParentContexts(r)&&(this.deactivate(),this.parentContexts.onChildOutletDestroyed(r)),this.initializeOutletWithName()}}ngOnDestroy(){this.isTrackedInParentContexts(this.name)&&this.parentContexts.onChildOutletDestroyed(this.name),this.inputBinder?.unsubscribeFromRouteData(this)}isTrackedInParentContexts(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 ue(4012,!1);return this.activated.instance}get activatedRoute(){if(!this.activated)throw new ue(4012,!1);return this._activatedRoute}get activatedRouteData(){return this._activatedRoute?this._activatedRoute.snapshot.data:{}}detach(){if(!this.activated)throw new ue(4012,!1);this.location.detach();let e=this.activated;return this.activated=null,this._activatedRoute=null,this.detachEvents.emit(e.instance),e}attach(e,i){this.activated=e,this._activatedRoute=i,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,i){if(this.isActivated)throw new ue(4013,!1);this._activatedRoute=e;let r=this.location,a=e.snapshot.component,s=this.parentContexts.getOrCreateContext(this.name).children,l=new KE(e,s,r.injector,this.routerOutletData);this.activated=r.createComponent(a,{index:r.length,injector:l,environmentInjector:i}),this.changeDetector.markForCheck(),this.inputBinder?.bindActivatedRouteToOutletComponent(this),this.activateEvents.emit(this.activated.instance)}static \u0275fac=function(i){return new(i||t)};static \u0275dir=P({type:t,selectors:[["router-outlet"]],inputs:{name:"name",routerOutletData:[1,"routerOutletData"]},outputs:{activateEvents:"activate",deactivateEvents:"deactivate",attachEvents:"attach",detachEvents:"detach"},exportAs:["outlet"],features:[Oe]})}return t})(),KE=class{route;childContexts;parent;outletData;constructor(n,e,i,r){this.route=n,this.childContexts=e,this.parent=i,this.outletData=r}get(n,e){return n===Ai?this.route:n===Yd?this.childContexts:n===$N?this.outletData:this.parent.get(n,e)}},zf=new O(""),nS=(()=>{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:i}=e,r=yo([i.queryParams,i.params,i.data]).pipe(je(([o,a,s],l)=>(s=I(I(I({},o),a),s),l===0?Q(s):Promise.resolve(s)))).subscribe(o=>{if(!e.isActivated||!e.activatedComponentRef||e.activatedRoute!==i||i.component===null){this.unsubscribeFromRouteData(e);return}let a=g2(i.component);if(!a){this.unsubscribeFromRouteData(e);return}for(let{templateName:s}of a.inputs)e.activatedComponentRef.setInput(s,o[s])});this.outletDataSubscriptions.set(e,r)}static \u0275fac=function(i){return new(i||t)};static \u0275prov=R({token:t,factory:t.\u0275fac})}return t})(),rS=(()=>{class t{static \u0275fac=function(i){return new(i||t)};static \u0275cmp=E({type:t,selectors:[["ng-component"]],exportAs:["emptyRouterOutlet"],decls:1,vars:0,template:function(i,r){i&1&&M(0,"router-outlet")},dependencies:[wl],encapsulation:2})}return t})();function oS(t){let n=t.children&&t.children.map(oS),e=n?Me(I({},t),{children:n}):I({},t);return!e.component&&!e.loadComponent&&(n||e.loadChildren)&&e.outlet&&e.outlet!==pt&&(e.component=rS),e}function LQ(t,n,e){let i=Vf(t,n._root,e?e._root:void 0);return new Nf(i,n)}function Vf(t,n,e){if(e&&t.shouldReuseRoute(n.value,e.value.snapshot)){let i=e.value;i._futureSnapshot=n.value;let r=VQ(t,n,e);return new Mo(i,r)}else{if(t.shouldAttach(n.value)){let o=t.retrieve(n.value);if(o!==null){let a=o.route;return a.value._futureSnapshot=n.value,a.children=n.children.map(s=>Vf(t,s)),a}}let i=BQ(n.value),r=n.children.map(o=>Vf(t,o));return new Mo(i,r)}}function VQ(t,n,e){return n.children.map(i=>{for(let r of e.children)if(t.shouldReuseRoute(i.value,r.value.snapshot))return Vf(t,i,r);return Vf(t,i)})}function BQ(t){return new Ai(new rt(t.url),new rt(t.params),new rt(t.queryParams),new rt(t.fragment),new rt(t.data),t.outlet,t.component,t)}var $m=class{redirectTo;navigationBehaviorOptions;constructor(n,e){this.redirectTo=n,this.navigationBehaviorOptions=e}},WN="ngNavigationCancelingError";function Ev(t,n){let{redirectTo:e,navigationBehaviorOptions:i}=bc(n)?{redirectTo:n,navigationBehaviorOptions:void 0}:n,r=GN(!1,Ur.Redirect);return r.url=e,r.navigationBehaviorOptions=i,r}function GN(t,n){let e=new Error(`NavigationCancelingError: ${t||""}`);return e[WN]=!0,e.cancellationCode=n,e}function jQ(t){return qN(t)&&bc(t.url)}function qN(t){return!!t&&t[WN]}var HQ=(t,n,e,i)=>se(r=>(new ZE(n,r.targetRouterState,r.currentRouterState,e,i).activate(t),r)),ZE=class{routeReuseStrategy;futureState;currState;forwardEvent;inputBindingEnabled;constructor(n,e,i,r,o){this.routeReuseStrategy=n,this.futureState=e,this.currState=i,this.forwardEvent=r,this.inputBindingEnabled=o}activate(n){let e=this.futureState._root,i=this.currState?this.currState._root:null;this.deactivateChildRoutes(e,i,n),jE(this.futureState.root),this.activateChildRoutes(e,i,n)}deactivateChildRoutes(n,e,i){let r=Lm(e);n.children.forEach(o=>{let a=o.value.outlet;this.deactivateRoutes(o,r[a],i),delete r[a]}),Object.values(r).forEach(o=>{this.deactivateRouteAndItsChildren(o,i)})}deactivateRoutes(n,e,i){let r=n.value,o=e?e.value:null;if(r===o)if(r.component){let a=i.getContext(r.outlet);a&&this.deactivateChildRoutes(n,e,a.children)}else this.deactivateChildRoutes(n,e,i);else o&&this.deactivateRouteAndItsChildren(e,i)}deactivateRouteAndItsChildren(n,e){n.value.component&&this.routeReuseStrategy.shouldDetach(n.value.snapshot)?this.detachAndStoreRouteSubtree(n,e):this.deactivateRouteAndOutlet(n,e)}detachAndStoreRouteSubtree(n,e){let i=e.getContext(n.value.outlet),r=i&&n.value.component?i.children:e,o=Lm(n);for(let a of Object.values(o))this.deactivateRouteAndItsChildren(a,r);if(i&&i.outlet){let a=i.outlet.detach(),s=i.children.onOutletDeactivated();this.routeReuseStrategy.store(n.value.snapshot,{componentRef:a,route:n,contexts:s})}}deactivateRouteAndOutlet(n,e){let i=e.getContext(n.value.outlet),r=i&&n.value.component?i.children:e,o=Lm(n);for(let a of Object.values(o))this.deactivateRouteAndItsChildren(a,r);i&&(i.outlet&&(i.outlet.deactivate(),i.children.onOutletDeactivated()),i.attachRef=null,i.route=null)}activateChildRoutes(n,e,i){let r=Lm(e);n.children.forEach(o=>{this.activateRoutes(o,r[o.value.outlet],i),this.forwardEvent(new Cv(o.value.snapshot))}),n.children.length&&this.forwardEvent(new yv(n.value.snapshot))}activateRoutes(n,e,i){let r=n.value,o=e?e.value:null;if(jE(r),r===o)if(r.component){let a=i.getOrCreateContext(r.outlet);this.activateChildRoutes(n,e,a.children)}else this.activateChildRoutes(n,e,i);else if(r.component){let a=i.getOrCreateContext(r.outlet);if(this.routeReuseStrategy.shouldAttach(r.snapshot)){let s=this.routeReuseStrategy.retrieve(r.snapshot);this.routeReuseStrategy.store(r.snapshot,null),a.children.onOutletReAttached(s.contexts),a.attachRef=s.componentRef,a.route=s.route.value,a.outlet&&a.outlet.attach(s.componentRef,s.route.value),jE(s.route.value),this.activateChildRoutes(n,null,a.children)}else a.attachRef=null,a.route=r,a.outlet&&a.outlet.activateWith(r,a.injector),this.activateChildRoutes(n,null,a.children)}else this.activateChildRoutes(n,null,i)}},Sv=class{path;route;constructor(n){this.path=n,this.route=this.path[this.path.length-1]}},jm=class{component;route;constructor(n,e){this.component=n,this.route=e}};function zQ(t,n,e){let i=t._root,r=n?n._root:null;return If(i,r,e,[i.value])}function UQ(t){let n=t.routeConfig?t.routeConfig.canActivateChild:null;return!n||n.length===0?null:{node:t,guards:n}}function qm(t,n){let e=Symbol(),i=n.get(t,e);return i===e?typeof t=="function"&&!bD(t)?t:n.get(t):i}function If(t,n,e,i,r={canDeactivateChecks:[],canActivateChecks:[]}){let o=Lm(n);return t.children.forEach(a=>{$Q(a,o[a.value.outlet],e,i.concat([a.value]),r),delete o[a.value.outlet]}),Object.entries(o).forEach(([a,s])=>Of(s,e.getContext(a),r)),r}function $Q(t,n,e,i,r={canDeactivateChecks:[],canActivateChecks:[]}){let o=t.value,a=n?n.value:null,s=e?e.getContext(t.value.outlet):null;if(a&&o.routeConfig===a.routeConfig){let l=WQ(a,o,o.routeConfig.runGuardsAndResolvers);l?r.canActivateChecks.push(new Sv(i)):(o.data=a.data,o._resolvedData=a._resolvedData),o.component?If(t,n,s?s.children:null,i,r):If(t,n,e,i,r),l&&s&&s.outlet&&s.outlet.isActivated&&r.canDeactivateChecks.push(new jm(s.outlet.component,a))}else a&&Of(n,s,r),r.canActivateChecks.push(new Sv(i)),o.component?If(t,null,s?s.children:null,i,r):If(t,null,e,i,r);return r}function WQ(t,n,e){if(typeof e=="function")return e(t,n);switch(e){case"pathParamsChange":return!Wd(t.url,n.url);case"pathParamsOrQueryParamsChange":return!Wd(t.url,n.url)||!ks(t.queryParams,n.queryParams);case"always":return!0;case"paramsOrQueryParamsChange":return!QE(t,n)||!ks(t.queryParams,n.queryParams);case"paramsChange":default:return!QE(t,n)}}function Of(t,n,e){let i=Lm(t),r=t.value;Object.entries(i).forEach(([o,a])=>{r.component?n?Of(a,n.children.getContext(o),e):Of(a,null,e):Of(a,n,e)}),r.component?n&&n.outlet&&n.outlet.isActivated?e.canDeactivateChecks.push(new jm(n.outlet.component,r)):e.canDeactivateChecks.push(new jm(null,r)):e.canDeactivateChecks.push(new jm(null,r))}function Uf(t){return typeof t=="function"}function GQ(t){return typeof t=="boolean"}function qQ(t){return t&&Uf(t.canLoad)}function YQ(t){return t&&Uf(t.canActivate)}function QQ(t){return t&&Uf(t.canActivateChild)}function KQ(t){return t&&Uf(t.canDeactivate)}function ZQ(t){return t&&Uf(t.canMatch)}function YN(t){return t instanceof rl||t?.name==="EmptyError"}var sv=Symbol("INITIAL_VALUE");function Wm(){return je(t=>yo(t.map(n=>n.pipe(mt(1),Ue(sv)))).pipe(se(n=>{for(let e of n)if(e!==!0){if(e===sv)return sv;if(e===!1||XQ(e))return e}return!0}),ce(n=>n!==sv),mt(1)))}function XQ(t){return bc(t)||t instanceof $m}function JQ(t,n){return Vt(e=>{let{targetSnapshot:i,currentSnapshot:r,guards:{canActivateChecks:o,canDeactivateChecks:a}}=e;return a.length===0&&o.length===0?Q(Me(I({},e),{guardsResult:!0})):eK(a,i,r,t).pipe(Vt(s=>s&&GQ(s)?tK(i,o,t,n):Q(s)),se(s=>Me(I({},e),{guardsResult:s})))})}function eK(t,n,e,i){return $t(t).pipe(Vt(r=>aK(r.component,r.route,e,n,i)),xn(r=>r!==!0,!0))}function tK(t,n,e,i){return $t(n).pipe(jo(r=>Co(nK(r.route.parent,i),iK(r.route,i),oK(t,r.path,e),rK(t,r.route,e))),xn(r=>r!==!0,!0))}function iK(t,n){return t!==null&&n&&n(new xv(t)),Q(!0)}function nK(t,n){return t!==null&&n&&n(new vv(t)),Q(!0)}function rK(t,n,e){let i=n.routeConfig?n.routeConfig.canActivate:null;if(!i||i.length===0)return Q(!0);let r=i.map(o=>Fn(()=>{let a=Gm(n)??e,s=qm(o,a),l=YQ(s)?s.canActivate(n,t):Vn(a,()=>s(n,t));return Cl(l).pipe(xn())}));return Q(r).pipe(Wm())}function oK(t,n,e){let i=n[n.length-1],o=n.slice(0,n.length-1).reverse().map(a=>UQ(a)).filter(a=>a!==null).map(a=>Fn(()=>{let s=a.guards.map(l=>{let c=Gm(a.node)??e,d=qm(l,c),p=QQ(d)?d.canActivateChild(i,t):Vn(c,()=>d(i,t));return Cl(p).pipe(xn())});return Q(s).pipe(Wm())}));return Q(o).pipe(Wm())}function aK(t,n,e,i,r){let o=n&&n.routeConfig?n.routeConfig.canDeactivate:null;if(!o||o.length===0)return Q(!0);let a=o.map(s=>{let l=Gm(n)??r,c=qm(s,l),d=KQ(c)?c.canDeactivate(t,n,e,i):Vn(l,()=>c(t,n,e,i));return Cl(d).pipe(xn())});return Q(a).pipe(Wm())}function sK(t,n,e,i){let r=n.canLoad;if(r===void 0||r.length===0)return Q(!0);let o=r.map(a=>{let s=qm(a,t),l=qQ(s)?s.canLoad(n,e):Vn(t,()=>s(n,e));return Cl(l)});return Q(o).pipe(Wm(),QN(i))}function QN(t){return Gw(He(n=>{if(typeof n!="boolean")throw Ev(t,n)}),se(n=>n===!0))}function lK(t,n,e,i){let r=n.canMatch;if(!r||r.length===0)return Q(!0);let o=r.map(a=>{let s=qm(a,t),l=ZQ(s)?s.canMatch(n,e):Vn(t,()=>s(n,e));return Cl(l)});return Q(o).pipe(Wm(),QN(i))}var Bf=class{segmentGroup;constructor(n){this.segmentGroup=n||null}},jf=class extends Error{urlTree;constructor(n){super(),this.urlTree=n}};function Nm(t){return er(new Bf(t))}function cK(t){return er(new ue(4e3,!1))}function dK(t){return er(GN(!1,Ur.GuardRejected))}var XE=class{urlSerializer;urlTree;constructor(n,e){this.urlSerializer=n,this.urlTree=e}lineralizeSegments(n,e){let i=[],r=e.root;for(;;){if(i=i.concat(r.segments),r.numberOfChildren===0)return Q(i);if(r.numberOfChildren>1||!r.children[pt])return cK(`${n.redirectTo}`);r=r.children[pt]}}applyRedirectCommands(n,e,i,r,o){return uK(e,r,o).pipe(se(a=>{if(a instanceof Ts)throw new jf(a);let s=this.applyRedirectCreateUrlTree(a,this.urlSerializer.parse(a),n,i);if(a[0]==="/")throw new jf(s);return s}))}applyRedirectCreateUrlTree(n,e,i,r){let o=this.createSegmentGroup(n,e.root,i,r);return new Ts(o,this.createQueryParams(e.queryParams,this.urlTree.queryParams),e.fragment)}createQueryParams(n,e){let i={};return Object.entries(n).forEach(([r,o])=>{if(typeof o=="string"&&o[0]===":"){let s=o.substring(1);i[r]=e[s]}else i[r]=o}),i}createSegmentGroup(n,e,i,r){let o=this.createSegments(n,e.segments,i,r),a={};return Object.entries(e.children).forEach(([s,l])=>{a[s]=this.createSegmentGroup(n,l,i,r)}),new ri(o,a)}createSegments(n,e,i,r){return e.map(o=>o.path[0]===":"?this.findPosParam(n,o,r):this.findOrReturn(o,i))}findPosParam(n,e,i){let r=i[e.path.substring(1)];if(!r)throw new ue(4001,!1);return r}findOrReturn(n,e){let i=0;for(let r of e){if(r.path===n.path)return e.splice(i),r;i++}return n}};function uK(t,n,e){if(typeof t=="string")return Q(t);let i=t,{queryParams:r,fragment:o,routeConfig:a,url:s,outlet:l,params:c,data:d,title:p}=n;return Cl(Vn(e,()=>i({params:c,data:d,queryParams:r,fragment:o,routeConfig:a,url:s,outlet:l,title:p})))}var JE={matched:!1,consumedSegments:[],remainingSegments:[],parameters:{},positionalParamSegments:{}};function mK(t,n,e,i,r){let o=KN(t,n,e);return o.matched?(i=PQ(n,i),lK(i,n,e,r).pipe(se(a=>a===!0?o:I({},JE)))):Q(o)}function KN(t,n,e){if(n.path==="**")return hK(e);if(n.path==="")return n.pathMatch==="full"&&(t.hasChildren()||e.length>0)?I({},JE):{matched:!0,consumedSegments:[],remainingSegments:e,parameters:{},positionalParamSegments:{}};let r=(n.matcher||MN)(e,t,n);if(!r)return I({},JE);let o={};Object.entries(r.posParams??{}).forEach(([s,l])=>{o[s]=l.path});let a=r.consumed.length>0?I(I({},o),r.consumed[r.consumed.length-1].parameters):o;return{matched:!0,consumedSegments:r.consumed,remainingSegments:e.slice(r.consumed.length),parameters:a,positionalParamSegments:r.posParams??{}}}function hK(t){return{matched:!0,parameters:t.length>0?SN(t).parameters:{},consumedSegments:t,remainingSegments:[],positionalParamSegments:{}}}function CN(t,n,e,i){return e.length>0&&gK(t,e,i)?{segmentGroup:new ri(n,fK(i,new ri(e,t.children))),slicedSegments:[]}:e.length===0&&_K(t,e,i)?{segmentGroup:new ri(t.segments,pK(t,e,i,t.children)),slicedSegments:e}:{segmentGroup:new ri(t.segments,t.children),slicedSegments:e}}function pK(t,n,e,i){let r={};for(let o of e)if(Tv(t,n,o)&&!i[Wa(o)]){let a=new ri([],{});r[Wa(o)]=a}return I(I({},i),r)}function fK(t,n){let e={};e[pt]=n;for(let i of t)if(i.path===""&&Wa(i)!==pt){let r=new ri([],{});e[Wa(i)]=r}return e}function gK(t,n,e){return e.some(i=>Tv(t,n,i)&&Wa(i)!==pt)}function _K(t,n,e){return e.some(i=>Tv(t,n,i))}function Tv(t,n,e){return(t.hasChildren()||n.length>0)&&e.pathMatch==="full"?!1:e.path===""}function bK(t,n,e){return n.length===0&&!t.children[e]}var eS=class{};function vK(t,n,e,i,r,o,a="emptyOnly"){return new tS(t,n,e,i,r,a,o).recognize()}var yK=31,tS=class{injector;configLoader;rootComponentType;config;urlTree;paramsInheritanceStrategy;urlSerializer;applyRedirects;absoluteRedirectCount=0;allowRedirects=!0;constructor(n,e,i,r,o,a,s){this.injector=n,this.configLoader=e,this.rootComponentType=i,this.config=r,this.urlTree=o,this.paramsInheritanceStrategy=a,this.urlSerializer=s,this.applyRedirects=new XE(this.urlSerializer,this.urlTree)}noMatchError(n){return new ue(4002,`'${n.segmentGroup}'`)}recognize(){let n=CN(this.urlTree.root,[],[],this.config).segmentGroup;return this.match(n).pipe(se(({children:e,rootSnapshot:i})=>{let r=new Mo(i,e),o=new Lf("",r),a=NN(i,[],this.urlTree.queryParams,this.urlTree.fragment);return a.queryParams=this.urlTree.queryParams,o.url=this.urlSerializer.serialize(a),{state:o,tree:a}}))}match(n){let e=new Gd([],Object.freeze({}),Object.freeze(I({},this.urlTree.queryParams)),this.urlTree.fragment,Object.freeze({}),pt,this.rootComponentType,null,{});return this.processSegmentGroup(this.injector,this.config,n,pt,e).pipe(se(i=>({children:i,rootSnapshot:e})),ei(i=>{if(i instanceof jf)return this.urlTree=i.urlTree,this.match(i.urlTree.root);throw i instanceof Bf?this.noMatchError(i):i}))}processSegmentGroup(n,e,i,r,o){return i.segments.length===0&&i.hasChildren()?this.processChildren(n,e,i,o):this.processSegment(n,e,i,i.segments,r,!0,o).pipe(se(a=>a instanceof Mo?[a]:[]))}processChildren(n,e,i,r){let o=[];for(let a of Object.keys(i.children))a==="primary"?o.unshift(a):o.push(a);return $t(o).pipe(jo(a=>{let s=i.children[a],l=FQ(e,a);return this.processSegmentGroup(n,l,s,a,r)}),nD((a,s)=>(a.push(...s),a)),Jl(null),iD(),Vt(a=>{if(a===null)return Nm(i);let s=ZN(a);return xK(s),Q(s)}))}processSegment(n,e,i,r,o,a,s){return $t(e).pipe(jo(l=>this.processSegmentAgainstRoute(l._injector??n,e,l,i,r,o,a,s).pipe(ei(c=>{if(c instanceof Bf)return Q(null);throw c}))),xn(l=>!!l),ei(l=>{if(YN(l))return bK(i,r,o)?Q(new eS):Nm(i);throw l}))}processSegmentAgainstRoute(n,e,i,r,o,a,s,l){return Wa(i)!==a&&(a===pt||!Tv(r,o,i))?Nm(r):i.redirectTo===void 0?this.matchSegmentAgainstRoute(n,r,i,o,a,l):this.allowRedirects&&s?this.expandSegmentAgainstRouteUsingRedirect(n,r,e,i,o,a,l):Nm(r)}expandSegmentAgainstRouteUsingRedirect(n,e,i,r,o,a,s){let{matched:l,parameters:c,consumedSegments:d,positionalParamSegments:p,remainingSegments:_}=KN(e,r,o);if(!l)return Nm(e);typeof r.redirectTo=="string"&&r.redirectTo[0]==="/"&&(this.absoluteRedirectCount++,this.absoluteRedirectCount>yK&&(this.allowRedirects=!1));let b=new Gd(o,c,Object.freeze(I({},this.urlTree.queryParams)),this.urlTree.fragment,wN(r),Wa(r),r.component??r._loadedComponent??null,r,DN(r)),y=Mv(b,s,this.paramsInheritanceStrategy);return b.params=Object.freeze(y.params),b.data=Object.freeze(y.data),this.applyRedirects.applyRedirectCommands(d,r.redirectTo,p,b,n).pipe(je(C=>this.applyRedirects.lineralizeSegments(r,C)),Vt(C=>this.processSegment(n,i,e,C.concat(_),a,!1,s)))}matchSegmentAgainstRoute(n,e,i,r,o,a){let s=mK(e,i,r,n,this.urlSerializer);return i.path==="**"&&(e.children={}),s.pipe(je(l=>l.matched?(n=i._injector??n,this.getChildConfig(n,i,r).pipe(je(({routes:c})=>{let d=i._loadedInjector??n,{parameters:p,consumedSegments:_,remainingSegments:b}=l,y=new Gd(_,p,Object.freeze(I({},this.urlTree.queryParams)),this.urlTree.fragment,wN(i),Wa(i),i.component??i._loadedComponent??null,i,DN(i)),w=Mv(y,a,this.paramsInheritanceStrategy);y.params=Object.freeze(w.params),y.data=Object.freeze(w.data);let{segmentGroup:C,slicedSegments:D}=CN(e,_,b,c);if(D.length===0&&C.hasChildren())return this.processChildren(d,c,C,y).pipe(se(W=>new Mo(y,W)));if(c.length===0&&D.length===0)return Q(new Mo(y,[]));let F=Wa(i)===o;return this.processSegment(d,c,C,D,F?pt:o,!0,y).pipe(se(W=>new Mo(y,W instanceof Mo?[W]:[])))}))):Nm(e)))}getChildConfig(n,e,i){return e.children?Q({routes:e.children,injector:n}):e.loadChildren?e._loadedRoutes!==void 0?Q({routes:e._loadedRoutes,injector:e._loadedInjector}):sK(n,e,i,this.urlSerializer).pipe(Vt(r=>r?this.configLoader.loadChildren(n,e).pipe(He(o=>{e._loadedRoutes=o.routes,e._loadedInjector=o.injector})):dK(e))):Q({routes:[],injector:n})}};function xK(t){t.sort((n,e)=>n.value.outlet===pt?-1:e.value.outlet===pt?1:n.value.outlet.localeCompare(e.value.outlet))}function CK(t){let n=t.value.routeConfig;return n&&n.path===""}function ZN(t){let n=[],e=new Set;for(let i of t){if(!CK(i)){n.push(i);continue}let r=n.find(o=>i.value.routeConfig===o.value.routeConfig);r!==void 0?(r.children.push(...i.children),e.add(r)):n.push(i)}for(let i of e){let r=ZN(i.children);n.push(new Mo(i.value,r))}return n.filter(i=>!e.has(i))}function wN(t){return t.data||{}}function DN(t){return t.resolve||{}}function wK(t,n,e,i,r,o){return Vt(a=>vK(t,n,e,i,a.extractedUrl,r,o).pipe(se(({state:s,tree:l})=>Me(I({},a),{targetSnapshot:s,urlAfterRedirects:l}))))}function DK(t,n){return Vt(e=>{let{targetSnapshot:i,guards:{canActivateChecks:r}}=e;if(!r.length)return Q(e);let o=new Set(r.map(l=>l.route)),a=new Set;for(let l of o)if(!a.has(l))for(let c of XN(l))a.add(c);let s=0;return $t(a).pipe(jo(l=>o.has(l)?MK(l,i,t,n):(l.data=Mv(l,l.parent,t).resolve,Q(void 0))),He(()=>s++),Xu(1),Vt(l=>s===a.size?Q(e):zi))})}function XN(t){let n=t.children.map(e=>XN(e)).flat();return[t,...n]}function MK(t,n,e,i){let r=t.routeConfig,o=t._resolve;return r?.title!==void 0&&!UN(r)&&(o[Hf]=r.title),Fn(()=>(t.data=Mv(t,t.parent,e).resolve,EK(o,t,n,i).pipe(se(a=>(t._resolvedData=a,t.data=I(I({},t.data),a),null)))))}function EK(t,n,e,i){let r=UE(t);if(r.length===0)return Q({});let o={};return $t(r).pipe(Vt(a=>SK(t[a],n,e,i).pipe(xn(),He(s=>{if(s instanceof $m)throw Ev(new _c,s);o[a]=s}))),Xu(1),se(()=>o),ei(a=>YN(a)?zi:er(a)))}function SK(t,n,e,i){let r=Gm(n)??i,o=qm(t,r),a=o.resolve?o.resolve(n,e):Vn(r,()=>o(n,e));return Cl(a)}function HE(t){return je(n=>{let e=t(n);return e?$t(e).pipe(se(()=>n)):Q(n)})}var aS=(()=>{class t{buildTitle(e){let i,r=e.root;for(;r!==void 0;)i=this.getResolvedTitleForRoute(r)??i,r=r.children.find(o=>o.outlet===pt);return i}getResolvedTitleForRoute(e){return e.data[Hf]}static \u0275fac=function(i){return new(i||t)};static \u0275prov=R({token:t,factory:()=>u(JN),providedIn:"root"})}return t})(),JN=(()=>{class t extends aS{title;constructor(e){super(),this.title=e}updateTitle(e){let i=this.buildTitle(e);i!==void 0&&this.title.setTitle(i)}static \u0275fac=function(i){return new(i||t)(pe(_N))};static \u0275prov=R({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),xc=new O("",{providedIn:"root",factory:()=>({})}),Qd=new O(""),Iv=(()=>{class t{componentLoaders=new WeakMap;childrenLoaders=new WeakMap;onLoadStartListener;onLoadEndListener;compiler=u(qM);loadComponent(e,i){if(this.componentLoaders.get(i))return this.componentLoaders.get(i);if(i._loadedComponent)return Q(i._loadedComponent);this.onLoadStartListener&&this.onLoadStartListener(i);let r=Cl(Vn(e,()=>i.loadComponent())).pipe(se(tL),je(iL),He(a=>{this.onLoadEndListener&&this.onLoadEndListener(i),i._loadedComponent=a}),Xr(()=>{this.componentLoaders.delete(i)})),o=new Ql(r,()=>new z).pipe(Wu());return this.componentLoaders.set(i,o),o}loadChildren(e,i){if(this.childrenLoaders.get(i))return this.childrenLoaders.get(i);if(i._loadedRoutes)return Q({routes:i._loadedRoutes,injector:i._loadedInjector});this.onLoadStartListener&&this.onLoadStartListener(i);let o=eL(i,this.compiler,e,this.onLoadEndListener).pipe(Xr(()=>{this.childrenLoaders.delete(i)})),a=new Ql(o,()=>new z).pipe(Wu());return this.childrenLoaders.set(i,a),a}static \u0275fac=function(i){return new(i||t)};static \u0275prov=R({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();function eL(t,n,e,i){return Cl(Vn(e,()=>t.loadChildren())).pipe(se(tL),je(iL),Vt(r=>r instanceof k0||Array.isArray(r)?Q(r):$t(n.compileModuleAsync(r))),se(r=>{i&&i(t);let o,a,s=!1;return Array.isArray(r)?(a=r,s=!0):(o=r.create(e).injector,a=o.get(Qd,[],{optional:!0,self:!0}).flat()),{routes:a.map(oS),injector:o}}))}function kK(t){return t&&typeof t=="object"&&"default"in t}function tL(t){return kK(t)?t.default:t}function iL(t){return Q(t)}var Av=(()=>{class t{static \u0275fac=function(i){return new(i||t)};static \u0275prov=R({token:t,factory:()=>u(TK),providedIn:"root"})}return t})(),TK=(()=>{class t{shouldProcessUrl(e){return!0}extract(e){return e}merge(e,i){return e}static \u0275fac=function(i){return new(i||t)};static \u0275prov=R({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),sS=new O(""),lS=new O("");function nL(t,n,e){let i=t.get(lS),r=t.get(_e);if(!r.startViewTransition||i.skipNextTransition)return i.skipNextTransition=!1,new Promise(c=>setTimeout(c));let o,a=new Promise(c=>{o=c}),s=r.startViewTransition(()=>(o(),IK(t)));s.ready.catch(c=>{});let{onViewTransitionCreated:l}=i;return l&&Vn(t,()=>l({transition:s,from:n,to:e})),a}function IK(t){return new Promise(n=>{vt({read:()=>setTimeout(n)},{injector:t})})}var cS=new O(""),$f=(()=>{class t{currentNavigation=he(null,{equal:()=>!1});currentTransition=null;lastSuccessfulNavigation=null;events=new z;transitionAbortWithErrorSubject=new z;configLoader=u(Iv);environmentInjector=u(ti);destroyRef=u(ln);urlSerializer=u(yc);rootContexts=u(Yd);location=u(Ss);inputBindingEnabled=u(zf,{optional:!0})!==null;titleStrategy=u(aS);options=u(xc,{optional:!0})||{};paramsInheritanceStrategy=this.options.paramsInheritanceStrategy||"emptyOnly";urlHandlingStrategy=u(Av);createViewTransition=u(sS,{optional:!0});navigationErrorHandler=u(cS,{optional:!0});navigationId=0;get hasRequestedNavigation(){return this.navigationId!==0}transitions;afterPreactivation=()=>Q(void 0);rootComponentType=null;destroyed=!1;constructor(){let e=r=>this.events.next(new _v(r)),i=r=>this.events.next(new bv(r));this.configLoader.onLoadEndListener=i,this.configLoader.onLoadStartListener=e,this.destroyRef.onDestroy(()=>{this.destroyed=!0})}complete(){this.transitions?.complete()}handleNavigationRequest(e){let i=++this.navigationId;Ni(()=>{this.transitions?.next(Me(I({},e),{extractedUrl:this.urlHandlingStrategy.extract(e.rawUrl),targetSnapshot:null,targetRouterState:null,guards:{canActivateChecks:[],canDeactivateChecks:[]},guardsResult:null,abortController:new AbortController,id:i}))})}setupNavigations(e){return this.transitions=new rt(null),this.transitions.pipe(ce(i=>i!==null),je(i=>{let r=!1;return Q(i).pipe(je(o=>{if(this.navigationId>i.id)return this.cancelNavigationTransition(i,"",Ur.SupersededByNewNavigation),zi;this.currentTransition=i,this.currentNavigation.set({id:o.id,initialUrl:o.rawUrl,extractedUrl:o.extractedUrl,targetBrowserUrl:typeof o.extras.browserUrl=="string"?this.urlSerializer.parse(o.extras.browserUrl):o.extras.browserUrl,trigger:o.source,extras:o.extras,previousNavigation:this.lastSuccessfulNavigation?Me(I({},this.lastSuccessfulNavigation),{previousNavigation:null}):null,abort:()=>o.abortController.abort()});let a=!e.navigated||this.isUpdatingInternalState()||this.isUpdatedBrowserUrl(),s=o.extras.onSameUrlNavigation??e.onSameUrlNavigation;if(!a&&s!=="reload")return this.events.next(new As(o.id,this.urlSerializer.serialize(o.rawUrl),"",Hm.IgnoredSameUrlNavigation)),o.resolve(!1),zi;if(this.urlHandlingStrategy.shouldProcessUrl(o.rawUrl))return Q(o).pipe(je(l=>(this.events.next(new Is(l.id,this.urlSerializer.serialize(l.extractedUrl),l.source,l.restoredState)),l.id!==this.navigationId?zi:Promise.resolve(l))),wK(this.environmentInjector,this.configLoader,this.rootComponentType,e.config,this.urlSerializer,this.paramsInheritanceStrategy),He(l=>{i.targetSnapshot=l.targetSnapshot,i.urlAfterRedirects=l.urlAfterRedirects,this.currentNavigation.update(d=>(d.finalUrl=l.urlAfterRedirects,d));let c=new Pf(l.id,this.urlSerializer.serialize(l.extractedUrl),this.urlSerializer.serialize(l.urlAfterRedirects),l.targetSnapshot);this.events.next(c)}));if(a&&this.urlHandlingStrategy.shouldProcessUrl(o.currentRawUrl)){let{id:l,extractedUrl:c,source:d,restoredState:p,extras:_}=o,b=new Is(l,this.urlSerializer.serialize(c),d,p);this.events.next(b);let y=HN(this.rootComponentType).snapshot;return this.currentTransition=i=Me(I({},o),{targetSnapshot:y,urlAfterRedirects:c,extras:Me(I({},_),{skipLocationChange:!1,replaceUrl:!1})}),this.currentNavigation.update(w=>(w.finalUrl=c,w)),Q(i)}else return this.events.next(new As(o.id,this.urlSerializer.serialize(o.extractedUrl),"",Hm.IgnoredByUrlHandlingStrategy)),o.resolve(!1),zi}),He(o=>{let a=new hv(o.id,this.urlSerializer.serialize(o.extractedUrl),this.urlSerializer.serialize(o.urlAfterRedirects),o.targetSnapshot);this.events.next(a)}),se(o=>(this.currentTransition=i=Me(I({},o),{guards:zQ(o.targetSnapshot,o.currentSnapshot,this.rootContexts)}),i)),JQ(this.environmentInjector,o=>this.events.next(o)),He(o=>{if(i.guardsResult=o.guardsResult,o.guardsResult&&typeof o.guardsResult!="boolean")throw Ev(this.urlSerializer,o.guardsResult);let a=new pv(o.id,this.urlSerializer.serialize(o.extractedUrl),this.urlSerializer.serialize(o.urlAfterRedirects),o.targetSnapshot,!!o.guardsResult);this.events.next(a)}),ce(o=>o.guardsResult?!0:(this.cancelNavigationTransition(o,"",Ur.GuardRejected),!1)),HE(o=>{if(o.guards.canActivateChecks.length!==0)return Q(o).pipe(He(a=>{let s=new fv(a.id,this.urlSerializer.serialize(a.extractedUrl),this.urlSerializer.serialize(a.urlAfterRedirects),a.targetSnapshot);this.events.next(s)}),je(a=>{let s=!1;return Q(a).pipe(DK(this.paramsInheritanceStrategy,this.environmentInjector),He({next:()=>s=!0,complete:()=>{s||this.cancelNavigationTransition(a,"",Ur.NoDataFromResolver)}}))}),He(a=>{let s=new gv(a.id,this.urlSerializer.serialize(a.extractedUrl),this.urlSerializer.serialize(a.urlAfterRedirects),a.targetSnapshot);this.events.next(s)}))}),HE(o=>{let a=s=>{let l=[];if(s.routeConfig?.loadComponent){let c=Gm(s)??this.environmentInjector;l.push(this.configLoader.loadComponent(c,s.routeConfig).pipe(He(d=>{s.component=d}),se(()=>{})))}for(let c of s.children)l.push(...a(c));return l};return yo(a(o.targetSnapshot.root)).pipe(Jl(null),mt(1))}),HE(()=>this.afterPreactivation()),je(()=>{let{currentSnapshot:o,targetSnapshot:a}=i,s=this.createViewTransition?.(this.environmentInjector,o.root,a.root);return s?$t(s).pipe(se(()=>i)):Q(i)}),se(o=>{let a=LQ(e.routeReuseStrategy,o.targetSnapshot,o.currentRouterState);return this.currentTransition=i=Me(I({},o),{targetRouterState:a}),this.currentNavigation.update(s=>(s.targetRouterState=a,s)),i}),He(()=>{this.events.next(new Ff)}),HQ(this.rootContexts,e.routeReuseStrategy,o=>this.events.next(o),this.inputBindingEnabled),mt(1),we(new Ne(o=>{let a=i.abortController.signal,s=()=>o.next();return a.addEventListener("abort",s),()=>a.removeEventListener("abort",s)}).pipe(ce(()=>!r&&!i.targetRouterState),He(()=>{this.cancelNavigationTransition(i,i.abortController.signal.reason+"",Ur.Aborted)}))),He({next:o=>{r=!0,this.lastSuccessfulNavigation=Ni(this.currentNavigation),this.events.next(new Si(o.id,this.urlSerializer.serialize(o.extractedUrl),this.urlSerializer.serialize(o.urlAfterRedirects))),this.titleStrategy?.updateTitle(o.targetRouterState.snapshot),o.resolve(!0)},complete:()=>{r=!0}}),we(this.transitionAbortWithErrorSubject.pipe(He(o=>{throw o}))),Xr(()=>{r||this.cancelNavigationTransition(i,"",Ur.SupersededByNewNavigation),this.currentTransition?.id===i.id&&(this.currentNavigation.set(null),this.currentTransition=null)}),ei(o=>{if(this.destroyed)return i.resolve(!1),zi;if(r=!0,qN(o))this.events.next(new ea(i.id,this.urlSerializer.serialize(i.extractedUrl),o.message,o.cancellationCode)),jQ(o)?this.events.next(new Um(o.url,o.navigationBehaviorOptions)):i.resolve(!1);else{let a=new vc(i.id,this.urlSerializer.serialize(i.extractedUrl),o,i.targetSnapshot??void 0);try{let s=Vn(this.environmentInjector,()=>this.navigationErrorHandler?.(a));if(s instanceof $m){let{message:l,cancellationCode:c}=Ev(this.urlSerializer,s);this.events.next(new ea(i.id,this.urlSerializer.serialize(i.extractedUrl),l,c)),this.events.next(new Um(s.redirectTo,s.navigationBehaviorOptions))}else throw this.events.next(a),o}catch(s){this.options.resolveNavigationPromiseOnError?i.resolve(!1):i.reject(s)}}return zi}))}))}cancelNavigationTransition(e,i,r){let o=new ea(e.id,this.urlSerializer.serialize(e.extractedUrl),i,r);this.events.next(o),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))),i=Ni(this.currentNavigation),r=i?.targetBrowserUrl??i?.extractedUrl;return e.toString()!==r?.toString()&&!i?.extras.skipLocationChange}static \u0275fac=function(i){return new(i||t)};static \u0275prov=R({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();function AK(t){return t!==Bm}var rL=(()=>{class t{static \u0275fac=function(i){return new(i||t)};static \u0275prov=R({token:t,factory:()=>u(OK),providedIn:"root"})}return t})(),kv=class{shouldDetach(n){return!1}store(n,e){}shouldAttach(n){return!1}retrieve(n){return null}shouldReuseRoute(n,e){return n.routeConfig===e.routeConfig}},OK=(()=>{class t extends kv{static \u0275fac=(()=>{let e;return function(r){return(e||(e=ge(t)))(r||t)}})();static \u0275prov=R({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),oL=(()=>{class t{urlSerializer=u(yc);options=u(xc,{optional:!0})||{};canceledNavigationResolution=this.options.canceledNavigationResolution||"replace";location=u(Ss);urlHandlingStrategy=u(Av);urlUpdateStrategy=this.options.urlUpdateStrategy||"deferred";currentUrlTree=new Ts;getCurrentUrlTree(){return this.currentUrlTree}rawUrlTree=this.currentUrlTree;getRawUrlTree(){return this.rawUrlTree}createBrowserPath({finalUrl:e,initialUrl:i,targetBrowserUrl:r}){let o=e!==void 0?this.urlHandlingStrategy.merge(e,i):i,a=r??o;return a instanceof Ts?this.urlSerializer.serialize(a):a}commitTransition({targetRouterState:e,finalUrl:i,initialUrl:r}){i&&e?(this.currentUrlTree=i,this.rawUrlTree=this.urlHandlingStrategy.merge(i,r),this.routerState=e):this.rawUrlTree=r}routerState=HN(null);getRouterState(){return this.routerState}stateMemento=this.createStateMemento();updateStateMemento(){this.stateMemento=this.createStateMemento()}createStateMemento(){return{rawUrlTree:this.rawUrlTree,currentUrlTree:this.currentUrlTree,routerState:this.routerState}}resetInternalState({finalUrl:e}){this.routerState=this.stateMemento.routerState,this.currentUrlTree=this.stateMemento.currentUrlTree,this.rawUrlTree=this.urlHandlingStrategy.merge(this.currentUrlTree,e??this.rawUrlTree)}static \u0275fac=function(i){return new(i||t)};static \u0275prov=R({token:t,factory:()=>u(RK),providedIn:"root"})}return t})(),RK=(()=>{class t extends oL{currentPageId=0;lastSuccessfulId=-1;restoredState(){return this.location.getState()}get browserPageId(){return this.canceledNavigationResolution!=="computed"?this.currentPageId:this.restoredState()?.\u0275routerPageId??this.currentPageId}registerNonRouterCurrentEntryChangeListener(e){return this.location.subscribe(i=>{i.type==="popstate"&&setTimeout(()=>{e(i.url,i.state,"popstate")})})}handleRouterEvent(e,i){e instanceof Is?this.updateStateMemento():e instanceof As?this.commitTransition(i):e instanceof Pf?this.urlUpdateStrategy==="eager"&&(i.extras.skipLocationChange||this.setBrowserUrl(this.createBrowserPath(i),i)):e instanceof Ff?(this.commitTransition(i),this.urlUpdateStrategy==="deferred"&&!i.extras.skipLocationChange&&this.setBrowserUrl(this.createBrowserPath(i),i)):e instanceof ea&&e.code!==Ur.SupersededByNewNavigation&&e.code!==Ur.Redirect?this.restoreHistory(i):e instanceof vc?this.restoreHistory(i,!0):e instanceof Si&&(this.lastSuccessfulId=e.id,this.currentPageId=this.browserPageId)}setBrowserUrl(e,{extras:i,id:r}){let{replaceUrl:o,state:a}=i;if(this.location.isCurrentPathEqualTo(e)||o){let s=this.browserPageId,l=I(I({},a),this.generateNgRouterState(r,s));this.location.replaceState(e,"",l)}else{let s=I(I({},a),this.generateNgRouterState(r,this.browserPageId+1));this.location.go(e,"",s)}}restoreHistory(e,i=!1){if(this.canceledNavigationResolution==="computed"){let r=this.browserPageId,o=this.currentPageId-r;o!==0?this.location.historyGo(o):this.getCurrentUrlTree()===e.finalUrl&&o===0&&(this.resetInternalState(e),this.resetUrlToCurrentUrlTree())}else this.canceledNavigationResolution==="replace"&&(i&&this.resetInternalState(e),this.resetUrlToCurrentUrlTree())}resetUrlToCurrentUrlTree(){this.location.replaceState(this.urlSerializer.serialize(this.getRawUrlTree()),"",this.generateNgRouterState(this.lastSuccessfulId,this.currentPageId))}generateNgRouterState(e,i){return this.canceledNavigationResolution==="computed"?{navigationId:e,\u0275routerPageId:i}:{navigationId:e}}static \u0275fac=(()=>{let e;return function(r){return(e||(e=ge(t)))(r||t)}})();static \u0275prov=R({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();function Ov(t,n){t.events.pipe(ce(e=>e instanceof Si||e instanceof ea||e instanceof vc||e instanceof As),se(e=>e instanceof Si||e instanceof As?0:(e instanceof ea?e.code===Ur.Redirect||e.code===Ur.SupersededByNewNavigation:!1)?2:1),ce(e=>e!==2),mt(1)).subscribe(()=>{n()})}var PK={paths:"exact",fragment:"ignored",matrixParams:"ignored",queryParams:"exact"},FK={paths:"subset",fragment:"ignored",matrixParams:"ignored",queryParams:"subset"},Ae=(()=>{class t{get currentUrlTree(){return this.stateManager.getCurrentUrlTree()}get rawUrlTree(){return this.stateManager.getRawUrlTree()}disposed=!1;nonRouterCurrentEntryChangeSubscription;console=u(T0);stateManager=u(oL);options=u(xc,{optional:!0})||{};pendingTasks=u(vs);urlUpdateStrategy=this.options.urlUpdateStrategy||"deferred";navigationTransitions=u($f);urlSerializer=u(yc);location=u(Ss);urlHandlingStrategy=u(Av);injector=u(ti);_events=new z;get events(){return this._events}get routerState(){return this.stateManager.getRouterState()}navigated=!1;routeReuseStrategy=u(rL);onSameUrlNavigation=this.options.onSameUrlNavigation||"ignore";config=u(Qd,{optional:!0})?.flat()??[];componentInputBindingEnabled=!!u(zf,{optional:!0});currentNavigation=this.navigationTransitions.currentNavigation.asReadonly();constructor(){this.resetConfig(this.config),this.navigationTransitions.setupNavigations(this).subscribe({error:e=>{this.console.warn(e)}}),this.subscribeToNavigationEvents()}eventsSubscription=new ke;subscribeToNavigationEvents(){let e=this.navigationTransitions.events.subscribe(i=>{try{let r=this.navigationTransitions.currentTransition,o=Ni(this.navigationTransitions.currentNavigation);if(r!==null&&o!==null){if(this.stateManager.handleRouterEvent(i,o),i instanceof ea&&i.code!==Ur.Redirect&&i.code!==Ur.SupersededByNewNavigation)this.navigated=!0;else if(i instanceof Si)this.navigated=!0;else if(i instanceof Um){let a=i.navigationBehaviorOptions,s=this.urlHandlingStrategy.merge(i.url,r.currentRawUrl),l=I({browserUrl:r.extras.browserUrl,info:r.extras.info,skipLocationChange:r.extras.skipLocationChange,replaceUrl:r.extras.replaceUrl||this.urlUpdateStrategy==="eager"||AK(r.source)},a);this.scheduleNavigation(s,Bm,null,l,{resolve:r.resolve,reject:r.reject,promise:r.promise})}}RQ(i)&&this._events.next(i)}catch(r){this.navigationTransitions.transitionAbortWithErrorSubject.next(r)}});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),Bm,this.stateManager.restoredState())}setUpLocationChangeListener(){this.nonRouterCurrentEntryChangeSubscription??=this.stateManager.registerNonRouterCurrentEntryChangeListener((e,i,r)=>{this.navigateToSyncWithBrowser(e,r,i)})}navigateToSyncWithBrowser(e,i,r){let o={replaceUrl:!0},a=r?.navigationId?r:null;if(r){let l=I({},r);delete l.navigationId,delete l.\u0275routerPageId,Object.keys(l).length!==0&&(o.state=l)}let s=this.parseUrl(e);this.scheduleNavigation(s,i,a,o).catch(l=>{this.disposed||this.injector.get(wr)(l)})}get url(){return this.serializeUrl(this.currentUrlTree)}getCurrentNavigation(){return Ni(this.navigationTransitions.currentNavigation)}get lastSuccessfulNavigation(){return this.navigationTransitions.lastSuccessfulNavigation}resetConfig(e){this.config=e.map(oS),this.navigated=!1}ngOnDestroy(){this.dispose()}dispose(){this._events.unsubscribe(),this.navigationTransitions.complete(),this.nonRouterCurrentEntryChangeSubscription&&(this.nonRouterCurrentEntryChangeSubscription.unsubscribe(),this.nonRouterCurrentEntryChangeSubscription=void 0),this.disposed=!0,this.eventsSubscription.unsubscribe()}createUrlTree(e,i={}){let{relativeTo:r,queryParams:o,fragment:a,queryParamsHandling:s,preserveFragment:l}=i,c=l?this.currentUrlTree.fragment:a,d=null;switch(s??this.options.defaultQueryParamsHandling){case"merge":d=I(I({},this.currentUrlTree.queryParams),o);break;case"preserve":d=this.currentUrlTree.queryParams;break;default:d=o||null}d!==null&&(d=this.removeEmptyProps(d));let p;try{let _=r?r.snapshot:this.routerState.snapshot.root;p=LN(_)}catch{(typeof e[0]!="string"||e[0][0]!=="/")&&(e=[]),p=this.currentUrlTree.root}return VN(p,e,d,c??null)}navigateByUrl(e,i={skipLocationChange:!1}){let r=bc(e)?e:this.parseUrl(e),o=this.urlHandlingStrategy.merge(r,this.rawUrlTree);return this.scheduleNavigation(o,Bm,null,i)}navigate(e,i={skipLocationChange:!1}){return NK(e),this.navigateByUrl(this.createUrlTree(e,i),i)}serializeUrl(e){return this.urlSerializer.serialize(e)}parseUrl(e){try{return this.urlSerializer.parse(e)}catch{return this.console.warn(zo(4018,!1)),this.urlSerializer.parse("/")}}isActive(e,i){let r;if(i===!0?r=I({},PK):i===!1?r=I({},FK):r=i,bc(e))return bN(this.currentUrlTree,e,r);let o=this.parseUrl(e);return bN(this.currentUrlTree,o,r)}removeEmptyProps(e){return Object.entries(e).reduce((i,[r,o])=>(o!=null&&(i[r]=o),i),{})}scheduleNavigation(e,i,r,o,a){if(this.disposed)return Promise.resolve(!1);let s,l,c;a?(s=a.resolve,l=a.reject,c=a.promise):c=new Promise((p,_)=>{s=p,l=_});let d=this.pendingTasks.add();return Ov(this,()=>{queueMicrotask(()=>this.pendingTasks.remove(d))}),this.navigationTransitions.handleNavigationRequest({source:i,restoredState:r,currentUrlTree:this.currentUrlTree,currentRawUrl:this.currentUrlTree,rawUrl:e,extras:o,resolve:s,reject:l,promise:c,currentSnapshot:this.routerState.snapshot,currentRouterState:this.routerState}),c.catch(p=>Promise.reject(p))}static \u0275fac=function(i){return new(i||t)};static \u0275prov=R({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();function NK(t){for(let n=0;n{class t{router;route;tabIndexAttribute;renderer;el;locationStrategy;reactiveHref=he(null);get href(){return Ni(this.reactiveHref)}set href(e){this.reactiveHref.set(e)}target;queryParams;fragment;queryParamsHandling;state;info;relativeTo;isAnchorElement;subscription;onChanges=new z;applicationErrorHandler=u(wr);options=u(xc,{optional:!0});constructor(e,i,r,o,a,s){this.router=e,this.route=i,this.tabIndexAttribute=r,this.renderer=o,this.el=a,this.locationStrategy=s,this.reactiveHref.set(u(new Li("href"),{optional:!0}));let l=a.nativeElement.tagName?.toLowerCase();this.isAnchorElement=l==="a"||l==="area"||!!(typeof customElements=="object"&&customElements.get(l)?.observedAttributes?.includes?.("href")),this.isAnchorElement?this.setTabIndexIfNotOnNativeEl("0"):this.subscribeToNavigationEventsIfNecessary()}subscribeToNavigationEventsIfNecessary(){if(this.subscription!==void 0||!this.isAnchorElement)return;let e=this.preserveFragment,i=r=>r==="merge"||r==="preserve";e||=i(this.queryParamsHandling),e||=!this.queryParamsHandling&&!i(this.options?.defaultQueryParamsHandling),e&&(this.subscription=this.router.events.subscribe(r=>{r instanceof Si&&this.updateHref()}))}preserveFragment=!1;skipLocationChange=!1;replaceUrl=!1;setTabIndexIfNotOnNativeEl(e){this.tabIndexAttribute!=null||this.isAnchorElement||this.applyAttributeValue("tabindex",e)}ngOnChanges(e){this.isAnchorElement&&(this.updateHref(),this.subscribeToNavigationEventsIfNecessary()),this.onChanges.next(this)}routerLinkInput=null;set routerLink(e){e==null?(this.routerLinkInput=null,this.setTabIndexIfNotOnNativeEl(null)):(bc(e)?this.routerLinkInput=e:this.routerLinkInput=Array.isArray(e)?e:[e],this.setTabIndexIfNotOnNativeEl("0"))}onClick(e,i,r,o,a){let s=this.urlTree;if(s===null||this.isAnchorElement&&(e!==0||i||r||o||a||typeof this.target=="string"&&this.target!="_self"))return!0;let l={skipLocationChange:this.skipLocationChange,replaceUrl:this.replaceUrl,state:this.state,info:this.info};return this.router.navigateByUrl(s,l)?.catch(c=>{this.applicationErrorHandler(c)}),!this.isAnchorElement}ngOnDestroy(){this.subscription?.unsubscribe()}updateHref(){let e=this.urlTree;this.reactiveHref.set(e!==null&&this.locationStrategy?this.locationStrategy?.prepareExternalUrl(this.router.serializeUrl(e))??"":null)}applyAttributeValue(e,i){let r=this.renderer,o=this.el.nativeElement;i!==null?r.setAttribute(o,e,i):r.removeAttribute(o,e)}get urlTree(){return this.routerLinkInput===null?null:bc(this.routerLinkInput)?this.routerLinkInput:this.router.createUrlTree(this.routerLinkInput,{relativeTo:this.relativeTo!==void 0?this.relativeTo:this.route,queryParams:this.queryParams,fragment:this.fragment,queryParamsHandling:this.queryParamsHandling,preserveFragment:this.preserveFragment})}static \u0275fac=function(i){return new(i||t)(be(Ae),be(Ai),Jp("tabindex"),be(ze),be(Y),be(Ha))};static \u0275dir=P({type:t,selectors:[["","routerLink",""]],hostVars:2,hostBindings:function(i,r){i&1&&S("click",function(a){return r.onClick(a.button,a.ctrlKey,a.shiftKey,a.altKey,a.metaKey)}),i&2&&X("href",r.reactiveHref(),pM)("target",r.target)},inputs:{target:"target",queryParams:"queryParams",fragment:"fragment",queryParamsHandling:"queryParamsHandling",state:"state",info:"info",relativeTo:"relativeTo",preserveFragment:[2,"preserveFragment","preserveFragment",L],skipLocationChange:[2,"skipLocationChange","skipLocationChange",L],replaceUrl:[2,"replaceUrl","replaceUrl",L],routerLink:"routerLink"},features:[Oe]})}return t})(),Kd=(()=>{class t{router;element;renderer;cdr;link;links;classes=[];routerEventsSubscription;linkInputChangesSubscription;_isActive=!1;get isActive(){return this._isActive}routerLinkActiveOptions={exact:!1};ariaCurrentWhenActive;isActiveChange=new U;constructor(e,i,r,o,a){this.router=e,this.element=i,this.renderer=r,this.cdr=o,this.link=a,this.routerEventsSubscription=e.events.subscribe(s=>{s instanceof Si&&this.update()})}ngAfterContentInit(){Q(this.links.changes,Q(null)).pipe(xo()).subscribe(e=>{this.update(),this.subscribeToEachLinkOnChanges()})}subscribeToEachLinkOnChanges(){this.linkInputChangesSubscription?.unsubscribe();let e=[...this.links.toArray(),this.link].filter(i=>!!i).map(i=>i.onChanges);this.linkInputChangesSubscription=$t(e).pipe(xo()).subscribe(i=>{this._isActive!==this.isLinkActive(this.router)(i)&&this.update()})}set routerLinkActive(e){let i=Array.isArray(e)?e:e.split(" ");this.classes=i.filter(r=>!!r)}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(i=>{e?this.renderer.addClass(this.element.nativeElement,i):this.renderer.removeClass(this.element.nativeElement,i)}),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 i=LK(this.routerLinkActiveOptions)?this.routerLinkActiveOptions:this.routerLinkActiveOptions.exact||!1;return r=>{let o=r.urlTree;return o?e.isActive(o,i):!1}}hasActiveLinks(){let e=this.isLinkActive(this.router);return this.link&&e(this.link)||this.links.some(e)}static \u0275fac=function(i){return new(i||t)(be(Ae),be(Y),be(ze),be(ye),be(Wn,8))};static \u0275dir=P({type:t,selectors:[["","routerLinkActive",""]],contentQueries:function(i,r,o){if(i&1&&xe(o,Wn,5),i&2){let a;j(a=H())&&(r.links=a)}},inputs:{routerLinkActiveOptions:"routerLinkActiveOptions",ariaCurrentWhenActive:"ariaCurrentWhenActive",routerLinkActive:"routerLinkActive"},outputs:{isActiveChange:"isActiveChange"},exportAs:["routerLinkActive"],features:[Oe]})}return t})();function LK(t){return!!t.paths}var Wf=class{};var aL=(()=>{class t{router;injector;preloadingStrategy;loader;subscription;constructor(e,i,r,o){this.router=e,this.injector=i,this.preloadingStrategy=r,this.loader=o}setUpPreloading(){this.subscription=this.router.events.pipe(ce(e=>e instanceof Si),jo(()=>this.preload())).subscribe(()=>{})}preload(){return this.processRoutes(this.injector,this.router.config)}ngOnDestroy(){this.subscription&&this.subscription.unsubscribe()}processRoutes(e,i){let r=[];for(let o of i){o.providers&&!o._injector&&(o._injector=Dm(o.providers,e,`Route: ${o.path}`));let a=o._injector??e,s=o._loadedInjector??a;(o.loadChildren&&!o._loadedRoutes&&o.canLoad===void 0||o.loadComponent&&!o._loadedComponent)&&r.push(this.preloadConfig(a,o)),(o.children||o._loadedRoutes)&&r.push(this.processRoutes(s,o.children??o._loadedRoutes))}return $t(r).pipe(xo())}preloadConfig(e,i){return this.preloadingStrategy.preload(i,()=>{let r;i.loadChildren&&i.canLoad===void 0?r=this.loader.loadChildren(e,i):r=Q(null);let o=r.pipe(Vt(a=>a===null?Q(void 0):(i._loadedRoutes=a.routes,i._loadedInjector=a.injector,this.processRoutes(a.injector??e,a.routes))));if(i.loadComponent&&!i._loadedComponent){let a=this.loader.loadComponent(e,i);return $t([o,a]).pipe(xo())}else return o})}static \u0275fac=function(i){return new(i||t)(pe(Ae),pe(ti),pe(Wf),pe(Iv))};static \u0275prov=R({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),uS=new O(""),sL=(()=>{class t{urlSerializer;transitions;viewportScroller;zone;options;routerEventsSubscription;scrollEventsSubscription;lastId=0;lastSource=Bm;restoredId=0;store={};constructor(e,i,r,o,a={}){this.urlSerializer=e,this.transitions=i,this.viewportScroller=r,this.zone=o,this.options=a,a.scrollPositionRestoration||="disabled",a.anchorScrolling||="disabled"}init(){this.options.scrollPositionRestoration!=="disabled"&&this.viewportScroller.setHistoryScrollRestoration("manual"),this.routerEventsSubscription=this.createScrollEvents(),this.scrollEventsSubscription=this.consumeScrollEvents()}createScrollEvents(){return this.transitions.events.subscribe(e=>{e instanceof Is?(this.store[this.lastId]=this.viewportScroller.getScrollPosition(),this.lastSource=e.navigationTrigger,this.restoredId=e.restoredState?e.restoredState.navigationId:0):e instanceof Si?(this.lastId=e.id,this.scheduleScrollEvent(e,this.urlSerializer.parse(e.urlAfterRedirects).fragment)):e instanceof As&&e.code===Hm.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 zm))return;let i={behavior:"instant"};e.position?this.options.scrollPositionRestoration==="top"?this.viewportScroller.scrollToPosition([0,0],i):this.options.scrollPositionRestoration==="enabled"&&this.viewportScroller.scrollToPosition(e.position,i):e.anchor&&this.options.anchorScrolling==="enabled"?this.viewportScroller.scrollToAnchor(e.anchor):this.options.scrollPositionRestoration!=="disabled"&&this.viewportScroller.scrollToPosition([0,0])})}scheduleScrollEvent(e,i){this.zone.runOutsideAngular(()=>yn(this,null,function*(){yield new Promise(r=>{setTimeout(r),typeof requestAnimationFrame<"u"&&requestAnimationFrame(r)}),this.zone.run(()=>{this.transitions.events.next(new zm(e,this.lastSource==="popstate"?this.store[this.restoredId]:null,i))})}))}ngOnDestroy(){this.routerEventsSubscription?.unsubscribe(),this.scrollEventsSubscription?.unsubscribe()}static \u0275fac=function(i){jd()};static \u0275prov=R({token:t,factory:t.\u0275fac})}return t})();function mS(t,...n){return Jr([{provide:Qd,multi:!0,useValue:t},[],{provide:Ai,useFactory:lL,deps:[Ae]},{provide:cf,multi:!0,useFactory:cL},n.map(e=>e.\u0275providers)])}function lL(t){return t.routerState.root}function Ym(t,n){return{\u0275kind:t,\u0275providers:n}}function hS(t={}){return Ym(4,[{provide:uS,useFactory:()=>{let e=u(yE),i=u(ae),r=u($f),o=u(yc);return new sL(o,r,e,i,t)}}])}function cL(){let t=u(de);return n=>{let e=t.get(tr);if(n!==e.components[0])return;let i=t.get(Ae),r=t.get(dL);t.get(pS)===1&&i.initialNavigation(),t.get(hL,null,{optional:!0})?.setUpPreloading(),t.get(uS,null,{optional:!0})?.init(),i.resetRootComponentType(e.componentTypes[0]),r.closed||(r.next(),r.complete(),r.unsubscribe())}}var dL=new O("",{factory:()=>new z}),pS=new O("",{providedIn:"root",factory:()=>1});function uL(){let t=[{provide:h0,useValue:!0},{provide:pS,useValue:0},hc(()=>{let n=u(de);return n.get(aE,Promise.resolve()).then(()=>new Promise(i=>{let r=n.get(Ae),o=n.get(dL);Ov(r,()=>{i(!0)}),n.get($f).afterPreactivation=()=>(i(!0),o.closed?Q(void 0):o),r.initialNavigation()}))})];return Ym(2,t)}function mL(){let t=[hc(()=>{u(Ae).setUpLocationChangeListener()}),{provide:pS,useValue:2}];return Ym(3,t)}var hL=new O("");function pL(t){return Ym(0,[{provide:hL,useExisting:aL},{provide:Wf,useExisting:t}])}function Rv(){return Ym(8,[nS,{provide:zf,useExisting:nS}])}function fL(t){Ms("NgRouterViewTransitions");let n=[{provide:sS,useValue:nL},{provide:lS,useValue:I({skipNextTransition:!!t?.skipInitialTransition},t)}];return Ym(9,n)}var gL=[Ss,{provide:yc,useClass:_c},Ae,Yd,{provide:Ai,useFactory:lL,deps:[Ae]},Iv,[]],fS=(()=>{class t{constructor(){}static forRoot(e,i){return{ngModule:t,providers:[gL,[],{provide:Qd,multi:!0,useValue:e},[],i?.errorHandler?{provide:cS,useValue:i.errorHandler}:[],{provide:xc,useValue:i||{}},i?.useHash?BK():jK(),VK(),i?.preloadingStrategy?pL(i.preloadingStrategy).\u0275providers:[],i?.initialNavigation?HK(i):[],i?.bindToComponentInputs?Rv().\u0275providers:[],i?.enableViewTransitions?fL().\u0275providers:[],zK()]}}static forChild(e){return{ngModule:t,providers:[{provide:Qd,multi:!0,useValue:e}]}}static \u0275fac=function(i){return new(i||t)};static \u0275mod=ee({type:t});static \u0275inj=J({})}return t})();function VK(){return{provide:uS,useFactory:()=>{let t=u(yE),n=u(ae),e=u(xc),i=u($f),r=u(yc);return e.scrollOffset&&t.setOffset(e.scrollOffset),new sL(r,i,t,n,e)}}}function BK(){return{provide:Ha,useClass:fE}}function jK(){return{provide:Ha,useClass:j0}}function HK(t){return[t.initialNavigation==="disabled"?mL().\u0275providers:[],t.initialNavigation==="enabledBlocking"?uL().\u0275providers:[]]}var dS=new O("");function zK(){return[{provide:dS,useFactory:cL},{provide:cf,multi:!0,useExisting:dS}]}var _S=class{validateSignature(n){return Promise.resolve(null)}validateAtHash(n){return Promise.resolve(!0)}},Pv=class{};var Gf=class{},UK=(()=>{let n=class n extends Gf{now(){return Date.now()}new(){return new Date}};n.\u0275fac=(()=>{let i;return function(o){return(i||(i=ge(n)))(o||n)}})(),n.\u0275prov=R({token:n,factory:n.\u0275fac});let t=n;return t})();var Fv=class{},Nv=class{},$K=(()=>{let n=class n{constructor(){this.data=new Map}getItem(i){return this.data.get(i)}removeItem(i){this.data.delete(i)}setItem(i,r){this.data.set(i,r)}};n.\u0275fac=function(r){return new(r||n)},n.\u0275prov=R({token:n,factory:n.\u0275fac});let t=n;return t})();var qf=class{constructor(n){this.type=n}},$r=class extends qf{constructor(n,e=null){super(n),this.info=e}},Ga=class extends qf{constructor(n,e=null){super(n),this.info=e}},Ki=class extends qf{constructor(n,e,i=null){super(n),this.reason=e,this.params=i}};function bL(t){let n=t.replace(/-/g,"+").replace(/_/g,"/");return decodeURIComponent(atob(n).split("").map(function(e){return"%"+("00"+e.charCodeAt(0).toString(16)).slice(-2)}).join(""))}function vL(t){return btoa(t).replace(/\+/g,"-").replace(/\//g,"_").replace(/=/g,"")}var Qm=class{constructor(n){this.clientId="",this.redirectUri="",this.postLogoutRedirectUri="",this.redirectUriAsPostLogoutRedirectUriFallback=!0,this.loginUrl="",this.scope="openid profile",this.resource="",this.rngUrl="",this.oidc=!0,this.requestAccessToken=!0,this.options=null,this.issuer="",this.logoutUrl="",this.clearHashAfterLogin=!0,this.tokenEndpoint=null,this.revocationEndpoint=null,this.customTokenParameters=[],this.userinfoEndpoint=null,this.responseType="",this.showDebugInformation=!1,this.silentRefreshRedirectUri="",this.silentRefreshMessagePrefix="",this.silentRefreshShowIFrame=!1,this.siletRefreshTimeout=1e3*20,this.silentRefreshTimeout=1e3*20,this.dummyClientSecret="",this.requireHttps="remoteOnly",this.strictDiscoveryDocumentValidation=!0,this.jwks=null,this.customQueryParams=null,this.silentRefreshIFrameName="angular-oauth-oidc-silent-refresh-iframe",this.timeoutFactor=.75,this.sessionChecksEnabled=!1,this.sessionCheckIntervall=3*1e3,this.sessionCheckIFrameUrl=null,this.sessionCheckIFrameName="angular-oauth-oidc-check-session-iframe",this.disableAtHashCheck=!1,this.skipSubjectCheck=!1,this.useIdTokenHintForSilentRefresh=!1,this.skipIssuerCheck=!1,this.nonceStateSeparator=";",this.useHttpBasicAuth=!1,this.decreaseExpirationBySec=0,this.waitForTokenInMsec=0,this.disablePKCE=!1,this.preserveRequestedRoute=!1,this.disableIdTokenTimer=!1,this.checkOrigin=!1,this.openUri=e=>{location.href=e},n&&Object.assign(this,n)}},Zd=class{encodeKey(n){return encodeURIComponent(n)}encodeValue(n){return encodeURIComponent(n)}decodeKey(n){return decodeURIComponent(n)}decodeValue(n){return decodeURIComponent(n)}},Lv=class{};var yL=(()=>{let n=class n{getHashFragmentParams(i){let r=i||window.location.hash;if(r=decodeURIComponent(r),r.indexOf("#")!==0)return{};let o=r.indexOf("?");return o>-1?r=r.substr(o+1):r=r.substr(1),this.parseQueryString(r)}parseQueryString(i){let r={},o,a,s,l,c,d;if(i===null)return r;let p=i.split("&");for(let _=0;_=64;){for(o=n[0],a=n[1],s=n[2],l=n[3],c=n[4],d=n[5],p=n[6],_=n[7],y=0;y<16;y++)w=i+y*4,t[y]=(e[w]&255)<<24|(e[w+1]&255)<<16|(e[w+2]&255)<<8|e[w+3]&255;for(y=16;y<64;y++)b=t[y-2],C=(b>>>17|b<<15)^(b>>>19|b<<13)^b>>>10,b=t[y-15],D=(b>>>7|b<<25)^(b>>>18|b<<14)^b>>>3,t[y]=(C+t[y-7]|0)+(D+t[y-16]|0);for(y=0;y<64;y++)C=(((c>>>6|c<<26)^(c>>>11|c<<21)^(c>>>25|c<<7))+(c&d^~c&p)|0)+(_+(GK[y]+t[y]|0)|0)|0,D=((o>>>2|o<<30)^(o>>>13|o<<19)^(o>>>22|o<<10))+(o&a^o&s^a&s)|0,_=p,p=d,d=c,c=l+C|0,l=s,s=a,a=o,o=C+D|0;n[0]+=o,n[1]+=a,n[2]+=s,n[3]+=l,n[4]+=c,n[5]+=d,n[6]+=p,n[7]+=_,i+=64,r-=64}return i}var bS=class{constructor(){this.digestLength=xL,this.blockSize=WK,this.state=new Int32Array(8),this.temp=new Int32Array(64),this.buffer=new Uint8Array(128),this.bufferLength=0,this.bytesHashed=0,this.finished=!1,this.reset()}reset(){return this.state[0]=1779033703,this.state[1]=3144134277,this.state[2]=1013904242,this.state[3]=2773480762,this.state[4]=1359893119,this.state[5]=2600822924,this.state[6]=528734635,this.state[7]=1541459225,this.bufferLength=0,this.bytesHashed=0,this.finished=!1,this}clean(){for(let n=0;n0){for(;this.bufferLength<64&&e>0;)this.buffer[this.bufferLength++]=n[i++],e--;this.bufferLength===64&&(gS(this.temp,this.state,this.buffer,0,64),this.bufferLength=0)}for(e>=64&&(i=gS(this.temp,this.state,n,i,e),e%=64);e>0;)this.buffer[this.bufferLength++]=n[i++],e--;return this}finish(n){if(!this.finished){let e=this.bytesHashed,i=this.bufferLength,r=e/536870912|0,o=e<<3,a=e%64<56?64:128;this.buffer[i]=128;for(let s=i+1;s>>24&255,this.buffer[a-7]=r>>>16&255,this.buffer[a-6]=r>>>8&255,this.buffer[a-5]=r>>>0&255,this.buffer[a-4]=o>>>24&255,this.buffer[a-3]=o>>>16&255,this.buffer[a-2]=o>>>8&255,this.buffer[a-1]=o>>>0&255,gS(this.temp,this.state,this.buffer,0,a),this.finished=!0}for(let e=0;e<8;e++)n[e*4+0]=this.state[e]>>>24&255,n[e*4+1]=this.state[e]>>>16&255,n[e*4+2]=this.state[e]>>>8&255,n[e*4+3]=this.state[e]>>>0&255;return this}digest(){let n=new Uint8Array(this.digestLength);return this.finish(n),n}_saveState(n){for(let e=0;e{let n=class n{calcHash(i,r){return yn(this,null,function*(){return QK(qK(YK(i)))})}toHashString2(i){let r="";for(let o of i)r+=String.fromCharCode(o);return r}toHashString(i){let r=new Uint8Array(i),o="";for(let a of r)o+=String.fromCharCode(a);return o}};n.\u0275fac=function(r){return new(r||n)},n.\u0275prov=R({token:n,factory:n.\u0275fac});let t=n;return t})(),Km=(()=>{let n=class n extends Qm{constructor(i,r,o,a,s,l,c,d,p,_){super(),this.ngZone=i,this.http=r,this.config=s,this.urlHelper=l,this.logger=c,this.crypto=d,this.dateTimeService=_,this.discoveryDocumentLoaded=!1,this.state="",this.eventsSubject=new z,this.discoveryDocumentLoadedSubject=new z,this.grantTypesSupported=[],this.inImplicitFlow=!1,this.saveNoncesInLocalStorage=!1,this.debug("angular-oauth2-oidc v10"),this.document=p,s||(s={}),this.discoveryDocumentLoaded$=this.discoveryDocumentLoadedSubject.asObservable(),this.events=this.eventsSubject.asObservable(),a&&(this.tokenValidationHandler=a),s&&this.configure(s);try{o?this.setStorage(o):typeof sessionStorage<"u"&&this.setStorage(sessionStorage)}catch(b){console.error("No OAuthStorage provided and cannot access default (sessionStorage).Consider providing a custom OAuthStorage implementation in your module.",b)}if(this.checkLocalStorageAccessable()){let b=window?.navigator?.userAgent;(b?.includes("MSIE ")||b?.includes("Trident"))&&(this.saveNoncesInLocalStorage=!0)}this.setupRefreshTimer()}checkLocalStorageAccessable(){if(typeof window>"u")return!1;let i="test";try{return typeof window.localStorage>"u"?!1:(localStorage.setItem(i,i),localStorage.removeItem(i),!0)}catch{return!1}}configure(i){Object.assign(this,new Qm,i),this.config=Object.assign({},new Qm,i),this.sessionChecksEnabled&&this.setupSessionCheck(),this.configChanged()}configChanged(){this.setupRefreshTimer()}restartSessionChecksIfStillLoggedIn(){this.hasValidIdToken()&&this.initSessionCheck()}restartRefreshTimerIfStillLoggedIn(){this.setupExpirationTimers()}setupSessionCheck(){this.events.pipe(ce(i=>i.type==="token_received")).subscribe(()=>{this.initSessionCheck()})}setupAutomaticSilentRefresh(i={},r,o=!0){let a=!0;this.clearAutomaticRefreshTimer(),this.automaticRefreshSubscription=this.events.pipe(He(s=>{s.type==="token_received"?a=!0:s.type==="logout"&&(a=!1)}),ce(s=>s.type==="token_expires"&&(r==null||r==="any"||s.info===r)),Dt(1e3)).subscribe(()=>{a&&this.refreshInternal(i,o).catch(()=>{this.debug("Automatic silent refresh did not work")})}),this.restartRefreshTimerIfStillLoggedIn()}refreshInternal(i,r){return!this.useSilentRefresh&&this.responseType==="code"?this.refreshToken():this.silentRefresh(i,r)}loadDiscoveryDocumentAndTryLogin(i=null){return this.loadDiscoveryDocument().then(()=>this.tryLogin(i))}loadDiscoveryDocumentAndLogin(i=null){return i=i||{},this.loadDiscoveryDocumentAndTryLogin(i).then(()=>{if(!this.hasValidIdToken()||!this.hasValidAccessToken()){let r=typeof i.state=="string"?i.state:"";return this.initLoginFlow(r),!1}else return!0})}debug(...i){this.showDebugInformation&&this.logger.debug(...i)}validateUrlFromDiscoveryDocument(i){let r=[],o=this.validateUrlForHttps(i),a=this.validateUrlAgainstIssuer(i);return o||r.push("https for all urls required. Also for urls received by discovery."),a||r.push("Every url in discovery document has to start with the issuer url.Also see property strictDiscoveryDocumentValidation."),r}validateUrlForHttps(i){if(!i)return!0;let r=i.toLowerCase();return this.requireHttps===!1||(r.match(/^http:\/\/localhost($|[:/])/)||r.match(/^http:\/\/localhost($|[:/])/))&&this.requireHttps==="remoteOnly"?!0:r.startsWith("https://")}assertUrlNotNullAndCorrectProtocol(i,r){if(!i)throw new Error(`'${r}' should not be null`);if(!this.validateUrlForHttps(i))throw new Error(`'${r}' must use HTTPS (with TLS), or config value for property 'requireHttps' must be set to 'false' and allow HTTP (without TLS).`)}validateUrlAgainstIssuer(i){return!this.strictDiscoveryDocumentValidation||!i?!0:i.toLowerCase().startsWith(this.issuer.toLowerCase())}setupRefreshTimer(){if(typeof window>"u"){this.debug("timer not supported on this plattform");return}(this.hasValidIdToken()||this.hasValidAccessToken())&&(this.clearAccessTokenTimer(),this.clearIdTokenTimer(),this.setupExpirationTimers()),this.tokenReceivedSubscription&&this.tokenReceivedSubscription.unsubscribe(),this.tokenReceivedSubscription=this.events.pipe(ce(i=>i.type==="token_received")).subscribe(()=>{this.clearAccessTokenTimer(),this.clearIdTokenTimer(),this.setupExpirationTimers()})}setupExpirationTimers(){this.hasValidAccessToken()&&this.setupAccessTokenTimer(),!this.disableIdTokenTimer&&this.hasValidIdToken()&&this.setupIdTokenTimer()}setupAccessTokenTimer(){let i=this.getAccessTokenExpiration(),r=this.getAccessTokenStoredAt(),o=this.calcTimeout(r,i);this.ngZone.runOutsideAngular(()=>{this.accessTokenTimeoutSubscription=Q(new Ga("token_expires","access_token")).pipe(Aa(o)).subscribe(a=>{this.ngZone.run(()=>{this.eventsSubject.next(a)})})})}setupIdTokenTimer(){let i=this.getIdTokenExpiration(),r=this.getIdTokenStoredAt(),o=this.calcTimeout(r,i);this.ngZone.runOutsideAngular(()=>{this.idTokenTimeoutSubscription=Q(new Ga("token_expires","id_token")).pipe(Aa(o)).subscribe(a=>{this.ngZone.run(()=>{this.eventsSubject.next(a)})})})}stopAutomaticRefresh(){this.clearAccessTokenTimer(),this.clearIdTokenTimer(),this.clearAutomaticRefreshTimer()}clearAccessTokenTimer(){this.accessTokenTimeoutSubscription&&this.accessTokenTimeoutSubscription.unsubscribe()}clearIdTokenTimer(){this.idTokenTimeoutSubscription&&this.idTokenTimeoutSubscription.unsubscribe()}clearAutomaticRefreshTimer(){this.automaticRefreshSubscription&&this.automaticRefreshSubscription.unsubscribe()}calcTimeout(i,r){let o=this.dateTimeService.now(),a=(r-i)*this.timeoutFactor-(o-i),s=Math.max(0,a),l=2147483647;return s>l?l:s}setStorage(i){this._storage=i,this.configChanged()}loadDiscoveryDocument(i=null){return new Promise((r,o)=>{if(i||(i=this.issuer||"",i.endsWith("/")||(i+="/"),i+=".well-known/openid-configuration"),!this.validateUrlForHttps(i)){o("issuer must use HTTPS (with TLS), or config value for property 'requireHttps' must be set to 'false' and allow HTTP (without TLS).");return}this.http.get(i).subscribe(a=>{if(!this.validateDiscoveryDocument(a)){this.eventsSubject.next(new Ki("discovery_document_validation_error",null)),o("discovery_document_validation_error");return}this.loginUrl=a.authorization_endpoint,this.logoutUrl=a.end_session_endpoint||this.logoutUrl,this.grantTypesSupported=a.grant_types_supported,this.issuer=a.issuer,this.tokenEndpoint=a.token_endpoint,this.userinfoEndpoint=a.userinfo_endpoint||this.userinfoEndpoint,this.jwksUri=a.jwks_uri,this.sessionCheckIFrameUrl=a.check_session_iframe||this.sessionCheckIFrameUrl,this.discoveryDocumentLoaded=!0,this.discoveryDocumentLoadedSubject.next(a),this.revocationEndpoint=a.revocation_endpoint||this.revocationEndpoint,this.sessionChecksEnabled&&this.restartSessionChecksIfStillLoggedIn(),this.loadJwks().then(s=>{let l={discoveryDocument:a,jwks:s},c=new $r("discovery_document_loaded",l);this.eventsSubject.next(c),r(c)}).catch(s=>{this.eventsSubject.next(new Ki("discovery_document_load_error",s)),o(s)})},a=>{this.logger.error("error loading discovery document",a),this.eventsSubject.next(new Ki("discovery_document_load_error",a)),o(a)})})}loadJwks(){return new Promise((i,r)=>{this.jwksUri?this.http.get(this.jwksUri).subscribe(o=>{this.jwks=o,i(o)},o=>{this.logger.error("error loading jwks",o),this.eventsSubject.next(new Ki("jwks_load_error",o)),r(o)}):i(null)})}validateDiscoveryDocument(i){let r;return!this.skipIssuerCheck&&i.issuer!==this.issuer?(this.logger.error("invalid issuer in discovery document","expected: "+this.issuer,"current: "+i.issuer),!1):(r=this.validateUrlFromDiscoveryDocument(i.authorization_endpoint),r.length>0?(this.logger.error("error validating authorization_endpoint in discovery document",r),!1):(r=this.validateUrlFromDiscoveryDocument(i.end_session_endpoint),r.length>0?(this.logger.error("error validating end_session_endpoint in discovery document",r),!1):(r=this.validateUrlFromDiscoveryDocument(i.token_endpoint),r.length>0&&this.logger.error("error validating token_endpoint in discovery document",r),r=this.validateUrlFromDiscoveryDocument(i.revocation_endpoint),r.length>0&&this.logger.error("error validating revocation_endpoint in discovery document",r),r=this.validateUrlFromDiscoveryDocument(i.userinfo_endpoint),r.length>0?(this.logger.error("error validating userinfo_endpoint in discovery document",r),!1):(r=this.validateUrlFromDiscoveryDocument(i.jwks_uri),r.length>0?(this.logger.error("error validating jwks_uri in discovery document",r),!1):(this.sessionChecksEnabled&&!i.check_session_iframe&&this.logger.warn("sessionChecksEnabled is activated but discovery document does not contain a check_session_iframe field"),!0)))))}fetchTokenUsingPasswordFlowAndLoadUserProfile(i,r,o=new Sr){return this.fetchTokenUsingPasswordFlow(i,r,o).then(()=>this.loadUserProfile())}loadUserProfile(){if(!this.hasValidAccessToken())throw new Error("Can not load User Profile without access_token");if(!this.validateUrlForHttps(this.userinfoEndpoint))throw new Error("userinfoEndpoint must use HTTPS (with TLS), or config value for property 'requireHttps' must be set to 'false' and allow HTTP (without TLS).");return new Promise((i,r)=>{let o=new Sr().set("Authorization","Bearer "+this.getAccessToken());this.http.get(this.userinfoEndpoint,{headers:o,observe:"response",responseType:"text"}).subscribe(a=>{if(this.debug("userinfo received",JSON.stringify(a)),a.headers.get("content-type").startsWith("application/json")){let s=JSON.parse(a.body),l=this.getIdentityClaims()||{};if(!this.skipSubjectCheck&&this.oidc&&(!l.sub||s.sub!==l.sub)){r(`if property oidc is true, the received user-id (sub) has to be the user-id of the user that has logged in with oidc. +if you are not using oidc but just oauth2 password flow set oidc to false`);return}s=Object.assign({},l,s),this._storage.setItem("id_token_claims_obj",JSON.stringify(s)),this.eventsSubject.next(new $r("user_profile_loaded")),i({info:s})}else this.debug("userinfo is not JSON, treating it as JWE/JWS"),this.eventsSubject.next(new $r("user_profile_loaded")),i(JSON.parse(a.body))},a=>{this.logger.error("error loading user info",a),this.eventsSubject.next(new Ki("user_profile_load_error",a)),r(a)})})}fetchTokenUsingPasswordFlow(i,r,o=new Sr){let a={username:i,password:r};return this.fetchTokenUsingGrant("password",a,o)}fetchTokenUsingGrant(i,r,o=new Sr){this.assertUrlNotNullAndCorrectProtocol(this.tokenEndpoint,"tokenEndpoint");let a=new rr({encoder:new Zd}).set("grant_type",i).set("scope",this.scope);if(this.useHttpBasicAuth){let s=btoa(`${this.clientId}:${this.dummyClientSecret}`);o=o.set("Authorization","Basic "+s)}if(this.useHttpBasicAuth||(a=a.set("client_id",this.clientId)),!this.useHttpBasicAuth&&this.dummyClientSecret&&(a=a.set("client_secret",this.dummyClientSecret)),this.customQueryParams)for(let s of Object.getOwnPropertyNames(this.customQueryParams))a=a.set(s,this.customQueryParams[s]);for(let s of Object.keys(r))a=a.set(s,r[s]);return o=o.set("Content-Type","application/x-www-form-urlencoded"),new Promise((s,l)=>{this.http.post(this.tokenEndpoint,a,{headers:o}).subscribe(c=>{this.debug("tokenResponse",c),this.storeAccessTokenResponse(c.access_token,c.refresh_token,c.expires_in||this.fallbackAccessTokenExpirationTimeInSec,c.scope,this.extractRecognizedCustomParameters(c)),this.oidc&&c.id_token&&this.processIdToken(c.id_token,c.access_token).then(d=>{this.storeIdToken(d),s(c)}),this.eventsSubject.next(new $r("token_received")),s(c)},c=>{this.logger.error("Error performing ${grantType} flow",c),this.eventsSubject.next(new Ki("token_error",c)),l(c)})})}refreshToken(){return this.assertUrlNotNullAndCorrectProtocol(this.tokenEndpoint,"tokenEndpoint"),new Promise((i,r)=>{let o=new rr({encoder:new Zd}).set("grant_type","refresh_token").set("scope",this.scope).set("refresh_token",this._storage.getItem("refresh_token")),a=new Sr().set("Content-Type","application/x-www-form-urlencoded");if(this.useHttpBasicAuth){let s=btoa(`${this.clientId}:${this.dummyClientSecret}`);a=a.set("Authorization","Basic "+s)}if(this.useHttpBasicAuth||(o=o.set("client_id",this.clientId)),!this.useHttpBasicAuth&&this.dummyClientSecret&&(o=o.set("client_secret",this.dummyClientSecret)),this.customQueryParams)for(let s of Object.getOwnPropertyNames(this.customQueryParams))o=o.set(s,this.customQueryParams[s]);this.http.post(this.tokenEndpoint,o,{headers:a}).pipe(je(s=>this.oidc&&s.id_token?$t(this.processIdToken(s.id_token,s.access_token,!0)).pipe(He(l=>this.storeIdToken(l)),se(()=>s)):Q(s))).subscribe(s=>{this.debug("refresh tokenResponse",s),this.storeAccessTokenResponse(s.access_token,s.refresh_token,s.expires_in||this.fallbackAccessTokenExpirationTimeInSec,s.scope,this.extractRecognizedCustomParameters(s)),this.eventsSubject.next(new $r("token_received")),this.eventsSubject.next(new $r("token_refreshed")),i(s)},s=>{this.logger.error("Error refreshing token",s),this.eventsSubject.next(new Ki("token_refresh_error",s)),r(s)})})}removeSilentRefreshEventListener(){this.silentRefreshPostMessageEventListener&&(window.removeEventListener("message",this.silentRefreshPostMessageEventListener),this.silentRefreshPostMessageEventListener=null)}setupSilentRefreshEventListener(){this.removeSilentRefreshEventListener(),this.silentRefreshPostMessageEventListener=i=>{let r=this.processMessageEventMessage(i);this.checkOrigin&&i.origin!==location.origin&&console.error("wrong origin requested silent refresh!"),this.tryLogin({customHashFragment:r,preventClearHashAfterLogin:!0,customRedirectUri:this.silentRefreshRedirectUri||this.redirectUri}).catch(o=>this.debug("tryLogin during silent refresh failed",o))},window.addEventListener("message",this.silentRefreshPostMessageEventListener)}silentRefresh(i={},r=!0){let o=this.getIdentityClaims()||{};if(this.useIdTokenHintForSilentRefresh&&this.hasValidIdToken()&&(i.id_token_hint=this.getIdToken()),!this.validateUrlForHttps(this.loginUrl))throw new Error("loginUrl must use HTTPS (with TLS), or config value for property 'requireHttps' must be set to 'false' and allow HTTP (without TLS).");if(typeof this.document>"u")throw new Error("silent refresh is not supported on this platform");let a=this.document.getElementById(this.silentRefreshIFrameName);a&&this.document.body.removeChild(a),this.silentRefreshSubject=o.sub;let s=this.document.createElement("iframe");s.id=this.silentRefreshIFrameName,this.setupSilentRefreshEventListener();let l=this.silentRefreshRedirectUri||this.redirectUri;this.createLoginUrl(null,null,l,r,i).then(_=>{s.setAttribute("src",_),this.silentRefreshShowIFrame||(s.style.display="none"),this.document.body.appendChild(s)});let c=this.events.pipe(ce(_=>_ instanceof Ki),xn()),d=this.events.pipe(ce(_=>_.type==="token_received"),xn()),p=Q(new Ki("silent_refresh_timeout",null)).pipe(Aa(this.silentRefreshTimeout));return Ku([c,d,p]).pipe(se(_=>{if(_ instanceof Ki)throw _.type==="silent_refresh_timeout"?this.eventsSubject.next(_):(_=new Ki("silent_refresh_error",_),this.eventsSubject.next(_)),_;return _.type==="token_received"&&(_=new $r("silently_refreshed"),this.eventsSubject.next(_)),_})).toPromise()}initImplicitFlowInPopup(i){return this.initLoginFlowInPopup(i)}initLoginFlowInPopup(i){return i=i||{},this.createLoginUrl(null,null,this.silentRefreshRedirectUri,!1,{display:"popup"}).then(r=>new Promise((o,a)=>{let l=null;i.windowRef?i.windowRef&&!i.windowRef.closed&&(l=i.windowRef,l.location.href=r):l=window.open(r,"ngx-oauth2-oidc-login",this.calculatePopupFeatures(i));let c,d=w=>{this.tryLogin({customHashFragment:w,preventClearHashAfterLogin:!0,customRedirectUri:this.silentRefreshRedirectUri}).then(()=>{_(),o(!0)},C=>{_(),a(C)})},p=()=>{(!l||l.closed)&&(_(),a(new Ki("popup_closed",{})))};l?c=window.setInterval(p,500):a(new Ki("popup_blocked",{}));let _=()=>{window.clearInterval(c),window.removeEventListener("storage",y),window.removeEventListener("message",b),l!==null&&l.close(),l=null},b=w=>{let C=this.processMessageEventMessage(w);C&&C!==null?(window.removeEventListener("storage",y),d(C)):console.log("false event firing")},y=w=>{w.key==="auth_hash"&&(window.removeEventListener("message",b),d(w.newValue))};window.addEventListener("message",b),window.addEventListener("storage",y)}))}calculatePopupFeatures(i){let r=i.height||470,o=i.width||500,a=window.screenLeft+(window.outerWidth-o)/2,s=window.screenTop+(window.outerHeight-r)/2;return`location=no,toolbar=no,width=${o},height=${r},top=${s},left=${a}`}processMessageEventMessage(i){let r="#";if(this.silentRefreshMessagePrefix&&(r+=this.silentRefreshMessagePrefix),!i||!i.data||typeof i.data!="string")return;let o=i.data;if(o.startsWith(r))return"#"+o.substr(r.length)}canPerformSessionCheck(){return this.sessionChecksEnabled?this.sessionCheckIFrameUrl?this.getSessionState()?!(typeof this.document>"u"):(console.warn("sessionChecksEnabled is activated but there is no session_state"),!1):(console.warn("sessionChecksEnabled is activated but there is no sessionCheckIFrameUrl"),!1):!1}setupSessionCheckEventListener(){this.removeSessionCheckEventListener(),this.sessionCheckEventListener=i=>{let r=i.origin.toLowerCase(),o=this.issuer.toLowerCase();if(this.debug("sessionCheckEventListener"),!o.startsWith(r)){this.debug("sessionCheckEventListener","wrong origin",r,"expected",o,"event",i);return}switch(i.data){case"unchanged":this.ngZone.run(()=>{this.handleSessionUnchanged()});break;case"changed":this.ngZone.run(()=>{this.handleSessionChange()});break;case"error":this.ngZone.run(()=>{this.handleSessionError()});break}this.debug("got info from session check inframe",i)},this.ngZone.runOutsideAngular(()=>{window.addEventListener("message",this.sessionCheckEventListener)})}handleSessionUnchanged(){this.debug("session check","session unchanged"),this.eventsSubject.next(new Ga("session_unchanged"))}handleSessionChange(){this.eventsSubject.next(new Ga("session_changed")),this.stopSessionCheckTimer(),!this.useSilentRefresh&&this.responseType==="code"?this.refreshToken().then(()=>{this.debug("token refresh after session change worked")}).catch(()=>{this.debug("token refresh did not work after session changed"),this.eventsSubject.next(new Ga("session_terminated")),this.logOut(!0)}):this.silentRefreshRedirectUri?(this.silentRefresh().catch(()=>this.debug("silent refresh failed after session changed")),this.waitForSilentRefreshAfterSessionChange()):(this.eventsSubject.next(new Ga("session_terminated")),this.logOut(!0))}waitForSilentRefreshAfterSessionChange(){this.events.pipe(ce(i=>i.type==="silently_refreshed"||i.type==="silent_refresh_timeout"||i.type==="silent_refresh_error"),xn()).subscribe(i=>{i.type!=="silently_refreshed"&&(this.debug("silent refresh did not work after session changed"),this.eventsSubject.next(new Ga("session_terminated")),this.logOut(!0))})}handleSessionError(){this.stopSessionCheckTimer(),this.eventsSubject.next(new Ga("session_error"))}removeSessionCheckEventListener(){this.sessionCheckEventListener&&(window.removeEventListener("message",this.sessionCheckEventListener),this.sessionCheckEventListener=null)}initSessionCheck(){if(!this.canPerformSessionCheck())return;let i=this.document.getElementById(this.sessionCheckIFrameName);i&&this.document.body.removeChild(i);let r=this.document.createElement("iframe");r.id=this.sessionCheckIFrameName,this.setupSessionCheckEventListener();let o=this.sessionCheckIFrameUrl;r.setAttribute("src",o),r.style.display="none",this.document.body.appendChild(r),this.startSessionCheckTimer()}startSessionCheckTimer(){this.stopSessionCheckTimer(),this.ngZone.runOutsideAngular(()=>{this.sessionCheckTimer=setInterval(this.checkSession.bind(this),this.sessionCheckIntervall)})}stopSessionCheckTimer(){this.sessionCheckTimer&&(clearInterval(this.sessionCheckTimer),this.sessionCheckTimer=null)}checkSession(){let i=this.document.getElementById(this.sessionCheckIFrameName);i||this.logger.warn("checkSession did not find iframe",this.sessionCheckIFrameName);let r=this.getSessionState();r||this.stopSessionCheckTimer();let o=this.clientId+" "+r;i.contentWindow.postMessage(o,this.issuer)}createLoginUrl(){return yn(this,arguments,function*(i="",r="",o="",a=!1,s={}){let l=this,c;o?c=o:c=this.redirectUri;let d=yield this.createAndSaveNonce();if(i?i=d+this.config.nonceStateSeparator+encodeURIComponent(i):i=d,!this.requestAccessToken&&!this.oidc)throw new Error("Either requestAccessToken or oidc or both must be true");this.config.responseType?this.responseType=this.config.responseType:this.oidc&&this.requestAccessToken?this.responseType="id_token token":this.oidc&&!this.requestAccessToken?this.responseType="id_token":this.responseType="token";let p=l.loginUrl.indexOf("?")>-1?"&":"?",_=l.scope;this.oidc&&!_.match(/(^|\s)openid($|\s)/)&&(_="openid "+_);let b=l.loginUrl+p+"response_type="+encodeURIComponent(l.responseType)+"&client_id="+encodeURIComponent(l.clientId)+"&state="+encodeURIComponent(i)+"&redirect_uri="+encodeURIComponent(c)+"&scope="+encodeURIComponent(_);if(this.responseType.includes("code")&&!this.disablePKCE){let[y,w]=yield this.createChallangeVerifierPairForPKCE();this.saveNoncesInLocalStorage&&typeof window.localStorage<"u"?localStorage.setItem("PKCE_verifier",w):this._storage.setItem("PKCE_verifier",w),b+="&code_challenge="+y,b+="&code_challenge_method=S256"}r&&(b+="&login_hint="+encodeURIComponent(r)),l.resource&&(b+="&resource="+encodeURIComponent(l.resource)),l.oidc&&(b+="&nonce="+encodeURIComponent(d)),a&&(b+="&prompt=none");for(let y of Object.keys(s))b+="&"+encodeURIComponent(y)+"="+encodeURIComponent(s[y]);if(this.customQueryParams)for(let y of Object.getOwnPropertyNames(this.customQueryParams))b+="&"+y+"="+encodeURIComponent(this.customQueryParams[y]);return b})}initImplicitFlowInternal(i="",r=""){if(this.inImplicitFlow)return;if(this.inImplicitFlow=!0,!this.validateUrlForHttps(this.loginUrl))throw new Error("loginUrl must use HTTPS (with TLS), or config value for property 'requireHttps' must be set to 'false' and allow HTTP (without TLS).");let o={},a=null;typeof r=="string"?a=r:typeof r=="object"&&(o=r),this.createLoginUrl(i,a,null,!1,o).then(this.config.openUri).catch(s=>{console.error("Error in initImplicitFlow",s),this.inImplicitFlow=!1})}initImplicitFlow(i="",r=""){this.loginUrl!==""?this.initImplicitFlowInternal(i,r):this.events.pipe(ce(o=>o.type==="discovery_document_loaded")).subscribe(()=>this.initImplicitFlowInternal(i,r))}resetImplicitFlow(){this.inImplicitFlow=!1}callOnTokenReceivedIfExists(i){let r=this;if(i.onTokenReceived){let o={idClaims:r.getIdentityClaims(),idToken:r.getIdToken(),accessToken:r.getAccessToken(),state:r.state};i.onTokenReceived(o)}}storeAccessTokenResponse(i,r,o,a,s){if(this._storage.setItem("access_token",i),a&&!Array.isArray(a)?this._storage.setItem("granted_scopes",JSON.stringify(a.split(" "))):a&&Array.isArray(a)&&this._storage.setItem("granted_scopes",JSON.stringify(a)),this._storage.setItem("access_token_stored_at",""+this.dateTimeService.now()),o){let l=o*1e3,d=this.dateTimeService.new().getTime()+l;this._storage.setItem("expires_at",""+d)}r&&this._storage.setItem("refresh_token",r),s&&s.forEach((l,c)=>{this._storage.setItem(c,l)})}tryLogin(i=null){return this.config.responseType==="code"?this.tryLoginCodeFlow(i).then(()=>!0):this.tryLoginImplicitFlow(i)}parseQueryString(i){return!i||i.length===0?{}:(i.charAt(0)==="?"&&(i=i.substr(1)),this.urlHelper.parseQueryString(i))}tryLoginCodeFlow(i=null){return yn(this,null,function*(){i=i||{};let r=i.customHashFragment?i.customHashFragment.substring(1):window.location.search,o=this.getCodePartsFromUrl(r),a=o.code,s=o.state,l=o.session_state;if(!i.preventClearHashAfterLogin){let p=location.origin+location.pathname+location.search.replace(/code=[^&$]*/,"").replace(/scope=[^&$]*/,"").replace(/state=[^&$]*/,"").replace(/session_state=[^&$]*/,"").replace(/^\?&/,"?").replace(/&$/,"").replace(/^\?$/,"").replace(/&+/g,"&").replace(/\?&/,"?").replace(/\?$/,"")+location.hash;history.replaceState(null,window.name,p)}let[c,d]=this.parseState(s);if(this.state=d,o.error){this.debug("error trying to login"),this.handleLoginError(i,o);let p=new Ki("code_error",{},o);return this.eventsSubject.next(p),Promise.reject(p)}if(!i.disableNonceCheck){if(!c)return this.saveRequestedRoute(),Promise.resolve();if(!i.disableOAuth2StateCheck&&!this.validateNonce(c)){let _=new Ki("invalid_nonce_in_state",null);return this.eventsSubject.next(_),Promise.reject(_)}}return this.storeSessionState(l),a&&(yield this.getTokenFromCode(a,i),this.restoreRequestedRoute()),Promise.resolve()})}saveRequestedRoute(){this.config.preserveRequestedRoute&&this._storage.setItem("requested_route",window.location.pathname+window.location.search)}restoreRequestedRoute(){let i=this._storage.getItem("requested_route");i&&history.replaceState(null,"",window.location.origin+i)}getCodePartsFromUrl(i){return!i||i.length===0?this.urlHelper.getHashFragmentParams():(i.charAt(0)==="?"&&(i=i.substr(1)),this.urlHelper.parseQueryString(i))}getTokenFromCode(i,r){let o=new rr({encoder:new Zd}).set("grant_type","authorization_code").set("code",i).set("redirect_uri",r.customRedirectUri||this.redirectUri);if(!this.disablePKCE){let a;this.saveNoncesInLocalStorage&&typeof window.localStorage<"u"?a=localStorage.getItem("PKCE_verifier"):a=this._storage.getItem("PKCE_verifier"),a?o=o.set("code_verifier",a):console.warn("No PKCE verifier found in oauth storage!")}return this.fetchAndProcessToken(o,r)}fetchAndProcessToken(i,r){r=r||{},this.assertUrlNotNullAndCorrectProtocol(this.tokenEndpoint,"tokenEndpoint");let o=new Sr().set("Content-Type","application/x-www-form-urlencoded");if(this.useHttpBasicAuth){let a=btoa(`${this.clientId}:${this.dummyClientSecret}`);o=o.set("Authorization","Basic "+a)}return this.useHttpBasicAuth||(i=i.set("client_id",this.clientId)),!this.useHttpBasicAuth&&this.dummyClientSecret&&(i=i.set("client_secret",this.dummyClientSecret)),new Promise((a,s)=>{if(this.customQueryParams)for(let l of Object.getOwnPropertyNames(this.customQueryParams))i=i.set(l,this.customQueryParams[l]);this.http.post(this.tokenEndpoint,i,{headers:o}).subscribe(l=>{this.debug("refresh tokenResponse",l),this.storeAccessTokenResponse(l.access_token,l.refresh_token,l.expires_in||this.fallbackAccessTokenExpirationTimeInSec,l.scope,this.extractRecognizedCustomParameters(l)),this.oidc&&l.id_token?this.processIdToken(l.id_token,l.access_token,r.disableNonceCheck).then(c=>{this.storeIdToken(c),this.eventsSubject.next(new $r("token_received")),this.eventsSubject.next(new $r("token_refreshed")),a(l)}).catch(c=>{this.eventsSubject.next(new Ki("token_validation_error",c)),console.error("Error validating tokens"),console.error(c),s(c)}):(this.eventsSubject.next(new $r("token_received")),this.eventsSubject.next(new $r("token_refreshed")),a(l))},l=>{console.error("Error getting token",l),this.eventsSubject.next(new Ki("token_error",l)),s(l)})})}tryLoginImplicitFlow(i=null){i=i||{};let r;i.customHashFragment?r=this.urlHelper.getHashFragmentParams(i.customHashFragment):r=this.urlHelper.getHashFragmentParams(),this.debug("parsed url",r);let o=r.state,[a,s]=this.parseState(o);if(this.state=s,r.error){this.debug("error trying to login"),this.handleLoginError(i,r);let _=new Ki("token_error",{},r);return this.eventsSubject.next(_),Promise.reject(_)}let l=r.access_token,c=r.id_token,d=r.session_state,p=r.scope;if(!this.requestAccessToken&&!this.oidc)return Promise.reject("Either requestAccessToken or oidc (or both) must be true.");if(this.requestAccessToken&&!l||this.requestAccessToken&&!i.disableOAuth2StateCheck&&!o||this.oidc&&!c)return Promise.resolve(!1);if(this.sessionChecksEnabled&&!d&&this.logger.warn("session checks (Session Status Change Notification) were activated in the configuration but the id_token does not contain a session_state claim"),this.requestAccessToken&&!i.disableNonceCheck&&!this.validateNonce(a)){let b=new Ki("invalid_nonce_in_state",null);return this.eventsSubject.next(b),Promise.reject(b)}return this.requestAccessToken&&this.storeAccessTokenResponse(l,null,r.expires_in||this.fallbackAccessTokenExpirationTimeInSec,p),this.oidc?this.processIdToken(c,l,i.disableNonceCheck).then(_=>i.validationHandler?i.validationHandler({accessToken:l,idClaims:_.idTokenClaims,idToken:_.idToken,state:o}).then(()=>_):_).then(_=>(this.storeIdToken(_),this.storeSessionState(d),this.clearHashAfterLogin&&!i.preventClearHashAfterLogin&&this.clearLocationHash(),this.eventsSubject.next(new $r("token_received")),this.callOnTokenReceivedIfExists(i),this.inImplicitFlow=!1,!0)).catch(_=>(this.eventsSubject.next(new Ki("token_validation_error",_)),this.logger.error("Error validating tokens"),this.logger.error(_),Promise.reject(_))):(this.eventsSubject.next(new $r("token_received")),this.clearHashAfterLogin&&!i.preventClearHashAfterLogin&&this.clearLocationHash(),this.callOnTokenReceivedIfExists(i),Promise.resolve(!0))}parseState(i){let r=i,o="";if(i){let a=i.indexOf(this.config.nonceStateSeparator);a>-1&&(r=i.substr(0,a),o=i.substr(a+this.config.nonceStateSeparator.length))}return[r,o]}validateNonce(i){let r;return this.saveNoncesInLocalStorage&&typeof window.localStorage<"u"?r=localStorage.getItem("nonce"):r=this._storage.getItem("nonce"),r!==i?(console.error("Validating access_token failed, wrong state/nonce.",r,i),!1):!0}storeIdToken(i){this._storage.setItem("id_token",i.idToken),this._storage.setItem("id_token_claims_obj",i.idTokenClaimsJson),this._storage.setItem("id_token_expires_at",""+i.idTokenExpiresAt),this._storage.setItem("id_token_stored_at",""+this.dateTimeService.now())}storeSessionState(i){this._storage.setItem("session_state",i)}getSessionState(){return this._storage.getItem("session_state")}handleLoginError(i,r){i.onLoginError&&i.onLoginError(r),this.clearHashAfterLogin&&!i.preventClearHashAfterLogin&&this.clearLocationHash()}getClockSkewInMsec(i=6e5){return!this.clockSkewInSec&&this.clockSkewInSec!==0?i:this.clockSkewInSec*1e3}processIdToken(i,r,o=!1){let a=i.split("."),s=this.padBase64(a[0]),l=bL(s),c=JSON.parse(l),d=this.padBase64(a[1]),p=bL(d),_=JSON.parse(p),b;if(this.saveNoncesInLocalStorage&&typeof window.localStorage<"u"?b=localStorage.getItem("nonce"):b=this._storage.getItem("nonce"),Array.isArray(_.aud)){if(_.aud.every(W=>W!==this.clientId)){let W="Wrong audience: "+_.aud.join(",");return this.logger.warn(W),Promise.reject(W)}}else if(_.aud!==this.clientId){let W="Wrong audience: "+_.aud;return this.logger.warn(W),Promise.reject(W)}if(!_.sub){let W="No sub claim in id_token";return this.logger.warn(W),Promise.reject(W)}if(this.sessionChecksEnabled&&this.silentRefreshSubject&&this.silentRefreshSubject!==_.sub){let W=`After refreshing, we got an id_token for another user (sub). Expected sub: ${this.silentRefreshSubject}, received sub: ${_.sub}`;return this.logger.warn(W),Promise.reject(W)}if(!_.iat){let W="No iat claim in id_token";return this.logger.warn(W),Promise.reject(W)}if(!this.skipIssuerCheck&&_.iss!==this.issuer){let W="Wrong issuer: "+_.iss;return this.logger.warn(W),Promise.reject(W)}if(!o&&_.nonce!==b){let W="Wrong nonce: "+_.nonce;return this.logger.warn(W),Promise.reject(W)}if(Object.prototype.hasOwnProperty.call(this,"responseType")&&(this.responseType==="code"||this.responseType==="id_token")&&(this.disableAtHashCheck=!0),!this.disableAtHashCheck&&this.requestAccessToken&&!_.at_hash){let W="An at_hash is needed!";return this.logger.warn(W),Promise.reject(W)}let y=this.dateTimeService.now(),w=_.iat*1e3,C=_.exp*1e3,D=this.getClockSkewInMsec();if(w-D>=y||C+D-this.decreaseExpirationBySec<=y){let W="Token has expired";return console.error(W),console.error({now:y,issuedAtMSec:w,expiresAtMSec:C}),Promise.reject(W)}let F={accessToken:r,idToken:i,jwks:this.jwks,idTokenClaims:_,idTokenHeader:c,loadKeys:()=>this.loadJwks()};return this.disableAtHashCheck?this.checkSignature(F).then(()=>({idToken:i,idTokenClaims:_,idTokenClaimsJson:p,idTokenHeader:c,idTokenHeaderJson:l,idTokenExpiresAt:C})):this.checkAtHash(F).then(W=>{if(!this.disableAtHashCheck&&this.requestAccessToken&&!W){let Z="Wrong at_hash";return this.logger.warn(Z),Promise.reject(Z)}return this.checkSignature(F).then(()=>{let Z=!this.disableAtHashCheck,K={idToken:i,idTokenClaims:_,idTokenClaimsJson:p,idTokenHeader:c,idTokenHeaderJson:l,idTokenExpiresAt:C};return Z?this.checkAtHash(F).then(oe=>{if(this.requestAccessToken&&!oe){let Se="Wrong at_hash";return this.logger.warn(Se),Promise.reject(Se)}else return K}):K})})}getIdentityClaims(){let i=this._storage.getItem("id_token_claims_obj");return i?JSON.parse(i):null}getGrantedScopes(){let i=this._storage.getItem("granted_scopes");return i?JSON.parse(i):null}getIdToken(){return this._storage?this._storage.getItem("id_token"):null}padBase64(i){for(;i.length%4!==0;)i+="=";return i}getAccessToken(){return this._storage?this._storage.getItem("access_token"):null}getRefreshToken(){return this._storage?this._storage.getItem("refresh_token"):null}getAccessTokenExpiration(){return this._storage.getItem("expires_at")?parseInt(this._storage.getItem("expires_at"),10):null}getAccessTokenStoredAt(){return parseInt(this._storage.getItem("access_token_stored_at"),10)}getIdTokenStoredAt(){return parseInt(this._storage.getItem("id_token_stored_at"),10)}getIdTokenExpiration(){return this._storage.getItem("id_token_expires_at")?parseInt(this._storage.getItem("id_token_expires_at"),10):null}hasValidAccessToken(){if(this.getAccessToken()){let i=this._storage.getItem("expires_at"),r=this.dateTimeService.new();return!(i&&parseInt(i,10)-this.decreaseExpirationBySec=0&&this._storage.getItem(i)!==null?JSON.parse(this._storage.getItem(i)):null}authorizationHeader(){return"Bearer "+this.getAccessToken()}logOut(i={},r=""){let o=!1;typeof i=="boolean"&&(o=i,i={});let a=this.getIdToken();if(this._storage.removeItem("access_token"),this._storage.removeItem("id_token"),this._storage.removeItem("refresh_token"),this.saveNoncesInLocalStorage?(localStorage.removeItem("nonce"),localStorage.removeItem("PKCE_verifier")):(this._storage.removeItem("nonce"),this._storage.removeItem("PKCE_verifier")),this._storage.removeItem("expires_at"),this._storage.removeItem("id_token_claims_obj"),this._storage.removeItem("id_token_expires_at"),this._storage.removeItem("id_token_stored_at"),this._storage.removeItem("access_token_stored_at"),this._storage.removeItem("granted_scopes"),this._storage.removeItem("session_state"),this.config.customTokenParameters&&this.config.customTokenParameters.forEach(l=>this._storage.removeItem(l)),this.silentRefreshSubject=null,this.eventsSubject.next(new Ga("logout")),!this.logoutUrl||o)return;let s;if(!this.validateUrlForHttps(this.logoutUrl))throw new Error("logoutUrl must use HTTPS (with TLS), or config value for property 'requireHttps' must be set to 'false' and allow HTTP (without TLS).");if(this.logoutUrl.indexOf("{{")>-1)s=this.logoutUrl.replace(/\{\{id_token\}\}/,encodeURIComponent(a)).replace(/\{\{client_id\}\}/,encodeURIComponent(this.clientId));else{let l=new rr({encoder:new Zd});a&&(l=l.set("id_token_hint",a));let c=this.postLogoutRedirectUri||this.redirectUriAsPostLogoutRedirectUriFallback&&this.redirectUri||"";c&&(l=l.set("post_logout_redirect_uri",c),r&&(l=l.set("state",r)));for(let d in i)l=l.set(d,i[d]);s=this.logoutUrl+(this.logoutUrl.indexOf("?")>-1?"&":"?")+l.toString()}this.config.openUri(s)}createAndSaveNonce(){let i=this;return this.createNonce().then(function(r){return i.saveNoncesInLocalStorage&&typeof window.localStorage<"u"?localStorage.setItem("nonce",r):i._storage.setItem("nonce",r),r})}ngOnDestroy(){this.clearAccessTokenTimer(),this.clearIdTokenTimer(),this.removeSilentRefreshEventListener();let i=this.document.getElementById(this.silentRefreshIFrameName);i&&i.remove(),this.stopSessionCheckTimer(),this.removeSessionCheckEventListener();let r=this.document.getElementById(this.sessionCheckIFrameName);r&&r.remove()}createNonce(){return new Promise(i=>{if(this.rngUrl)throw new Error("createNonce with rng-web-api has not been implemented so far");let r="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-._~",o=45,a="",s=typeof self>"u"?null:self.crypto||self.msCrypto;if(s){let l=new Uint8Array(o);s.getRandomValues(l),l.map||(l.map=Array.prototype.map),l=l.map(c=>r.charCodeAt(c%r.length)),a=String.fromCharCode.apply(null,l)}else for(;0o.type==="discovery_document_loaded")).subscribe(()=>this.initCodeFlowInternal(i,r))}initCodeFlowInternal(i="",r={}){if(!this.validateUrlForHttps(this.loginUrl))throw new Error("loginUrl must use HTTPS (with TLS), or config value for property 'requireHttps' must be set to 'false' and allow HTTP (without TLS).");let o={},a=null;typeof r=="string"?a=r:typeof r=="object"&&(o=r),this.createLoginUrl(i,a,null,!1,o).then(this.config.openUri).catch(s=>{console.error("Error in initAuthorizationCodeFlow"),console.error(s)})}createChallangeVerifierPairForPKCE(){return yn(this,null,function*(){if(!this.crypto)throw new Error("PKCE support for code flow needs a CryptoHander. Did you import the OAuthModule using forRoot() ?");let i=yield this.createNonce(),r=yield this.crypto.calcHash(i,"sha-256");return[vL(r),i]})}extractRecognizedCustomParameters(i){let r=new Map;return this.config.customTokenParameters&&this.config.customTokenParameters.forEach(o=>{i[o]&&r.set(o,JSON.stringify(i[o]))}),r}revokeTokenAndLogout(i={},r=!1){let o=this.revocationEndpoint,a=this.getAccessToken(),s=this.getRefreshToken();if(!a)return Promise.resolve();let l=new rr({encoder:new Zd}),c=new Sr().set("Content-Type","application/x-www-form-urlencoded");if(this.useHttpBasicAuth){let d=btoa(`${this.clientId}:${this.dummyClientSecret}`);c=c.set("Authorization","Basic "+d)}if(this.useHttpBasicAuth||(l=l.set("client_id",this.clientId)),!this.useHttpBasicAuth&&this.dummyClientSecret&&(l=l.set("client_secret",this.dummyClientSecret)),this.customQueryParams)for(let d of Object.getOwnPropertyNames(this.customQueryParams))l=l.set(d,this.customQueryParams[d]);return new Promise((d,p)=>{let _,b;if(a){let y=l.set("token",a).set("token_type_hint","access_token");_=this.http.post(o,y,{headers:c})}else _=Q(null);if(s){let y=l.set("token",s).set("token_type_hint","refresh_token");b=this.http.post(o,y,{headers:c})}else b=Q(null);r&&(_=_.pipe(ei(y=>y.status===0?Q(null):er(y))),b=b.pipe(ei(y=>y.status===0?Q(null):er(y)))),yo([_,b]).subscribe(y=>{this.logOut(i),d(y),this.logger.info("Token successfully revoked")},y=>{this.logger.error("Error revoking token",y),this.eventsSubject.next(new Ki("token_revoke_error",y)),p(y)})})}clearLocationHash(){location.hash!=""&&(location.hash="")}};n.\u0275fac=function(r){return new(r||n)(pe(ae),pe(kr),pe(Nv,8),pe(Lv,8),pe(Qm,8),pe(yL),pe(Fv),pe(Vv,8),pe(_e),pe(Gf))},n.\u0275prov=R({token:n,factory:n.\u0275fac});let t=n;return t})(),Bv=class{},vS=class{handleError(n){return er(n)}},ZK=(()=>{let n=class n{constructor(i,r,o){this.oAuthService=i,this.errorHandler=r,this.moduleConfig=o}checkUrl(i){return this.moduleConfig.resourceServer.customUrlValidation?this.moduleConfig.resourceServer.customUrlValidation(i):this.moduleConfig.resourceServer.allowedUrls?!!this.moduleConfig.resourceServer.allowedUrls.find(r=>i.toLowerCase().startsWith(r.toLowerCase())):!0}intercept(i,r){let o=i.url.toLowerCase();return!this.moduleConfig||!this.moduleConfig.resourceServer||!this.checkUrl(o)?r.handle(i):this.moduleConfig.resourceServer.sendAccessToken?it(Q(this.oAuthService.getAccessToken()).pipe(ce(s=>!!s)),this.oAuthService.events.pipe(ce(s=>s.type==="token_received"),Jw(this.oAuthService.waitForTokenInMsec||0),ei(()=>Q(null)),se(()=>this.oAuthService.getAccessToken()))).pipe(mt(1),Vt(s=>{if(s){let l="Bearer "+s,c=i.headers.set("Authorization",l);i=i.clone({headers:c})}return r.handle(i).pipe(ei(l=>this.errorHandler.handleError(l)))})):r.handle(i).pipe(ei(s=>this.errorHandler.handleError(s)))}};n.\u0275fac=function(r){return new(r||n)(pe(Km),pe(Bv),pe(Pv,8))},n.\u0275prov=R({token:n,factory:n.\u0275fac});let t=n;return t})();function XK(){return console}function JK(){return typeof sessionStorage<"u"?sessionStorage:new $K}function CL(t=null,n=_S){return Jr([Km,yL,{provide:Fv,useFactory:XK},{provide:Nv,useFactory:JK},{provide:Lv,useClass:n},{provide:Vv,useClass:KK},{provide:Bv,useClass:vS},{provide:Pv,useValue:t},{provide:OE,useClass:ZK,multi:!0},{provide:Gf,useClass:UK}])}var eZ=["mat-internal-form-field",""],tZ=["*"],Zm=(()=>{class t{labelPosition;static \u0275fac=function(i){return new(i||t)};static \u0275cmp=E({type:t,selectors:[["div","mat-internal-form-field",""]],hostAttrs:[1,"mdc-form-field","mat-internal-form-field"],hostVars:2,hostBindings:function(i,r){i&2&&G("mdc-form-field--align-end",r.labelPosition==="before")},inputs:{labelPosition:"labelPosition"},attrs:eZ,ngContentSelectors:tZ,decls:1,vars:0,template:function(i,r){i&1&&(Ee(),ne(0))},styles:[`.mat-internal-form-field{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;display:inline-flex;align-items:center;vertical-align:middle}.mat-internal-form-field>label{margin-left:0;margin-right:auto;padding-left:4px;padding-right:0;order:0}[dir=rtl] .mat-internal-form-field>label{margin-left:auto;margin-right:0;padding-left:0;padding-right:4px}.mdc-form-field--align-end>label{margin-left:auto;margin-right:0;padding-left:0;padding-right:4px;order:-1}[dir=rtl] .mdc-form-field--align-end .mdc-form-field--align-end label{margin-left:0;margin-right:auto;padding-left:4px;padding-right:0} +`],encapsulation:2,changeDetection:0})}return t})();var yS;try{yS=typeof Intl<"u"&&Intl.v8BreakIterator}catch{yS=!1}var Ye=(()=>{class t{_platformId=u(hl);isBrowser=this._platformId?Q2(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||yS)&&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(i){return new(i||t)};static \u0275prov=R({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();function Dl(t){return Array.isArray(t)?t:[t]}var wL=new Set,Xd,Xm=(()=>{class t{_platform=u(Ye);_nonce=u(xm,{optional:!0});_matchMedia;constructor(){this._matchMedia=this._platform.isBrowser&&window.matchMedia?window.matchMedia.bind(window):nZ}matchMedia(e){return(this._platform.WEBKIT||this._platform.BLINK)&&iZ(e,this._nonce),this._matchMedia(e)}static \u0275fac=function(i){return new(i||t)};static \u0275prov=R({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();function iZ(t,n){if(!wL.has(t))try{Xd||(Xd=document.createElement("style"),n&&Xd.setAttribute("nonce",n),Xd.setAttribute("type","text/css"),document.head.appendChild(Xd)),Xd.sheet&&(Xd.sheet.insertRule(`@media ${t} {body{ }}`,0),wL.add(t))}catch(e){console.error(e)}}function nZ(t){return{matches:t==="all"||t==="",media:t,addListener:()=>{},removeListener:()=>{}}}var Ml=(()=>{class t{_mediaMatcher=u(Xm);_zone=u(ae);_queries=new Map;_destroySubject=new z;constructor(){}ngOnDestroy(){this._destroySubject.next(),this._destroySubject.complete()}isMatched(e){return DL(Dl(e)).some(r=>this._registerQuery(r).mql.matches)}observe(e){let r=DL(Dl(e)).map(a=>this._registerQuery(a).observable),o=yo(r);return o=Co(o.pipe(mt(1)),o.pipe(ds(1),Dt(0))),o.pipe(se(a=>{let s={matches:!1,breakpoints:{}};return a.forEach(({matches:l,query:c})=>{s.matches=s.matches||l,s.breakpoints[c]=l}),s}))}_registerQuery(e){if(this._queries.has(e))return this._queries.get(e);let i=this._mediaMatcher.matchMedia(e),o={observable:new Ne(a=>{let s=l=>this._zone.run(()=>a.next(l));return i.addListener(s),()=>{i.removeListener(s)}}).pipe(Ue(i),se(({matches:a})=>({query:e,matches:a})),we(this._destroySubject)),mql:i};return this._queries.set(e,o),o}static \u0275fac=function(i){return new(i||t)};static \u0275prov=R({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();function DL(t){return t.map(n=>n.split(",")).reduce((n,e)=>n.concat(e)).map(n=>n.trim())}var jv={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 rZ=new O("MATERIAL_ANIMATIONS");var ML=null;function xS(){return u(rZ,{optional:!0})?.animationsDisabled||u(ef,{optional:!0})==="NoopAnimations"?"di-disabled":(ML??=u(Xm).matchMedia("(prefers-reduced-motion)").matches,ML?"reduced-motion":"enabled")}function Qe(){return xS()!=="enabled"}function Jd(t){return t.buttons===0||t.detail===0}function eu(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 CS;function EL(){if(CS==null){let t=typeof document<"u"?document.head:null;CS=!!(t&&(t.createShadowRoot||t.attachShadow))}return CS}function wS(t){if(EL()){let n=t.getRootNode?t.getRootNode():null;if(typeof ShadowRoot<"u"&&ShadowRoot&&n instanceof ShadowRoot)return n}return null}function So(){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 or(t){return t.composedPath?t.composedPath()[0]:t.target}var Yf;function SL(){if(Yf==null&&typeof window<"u")try{window.addEventListener("test",null,Object.defineProperty({},"passive",{get:()=>Yf=!0}))}finally{Yf=Yf||!1}return Yf}function Cc(t){return SL()?t:!!t.capture}function Gn(t,n=0){return Hv(t)?Number(t):arguments.length===2?n:0}function Hv(t){return!isNaN(parseFloat(t))&&!isNaN(Number(t))}function Wr(t){return t instanceof Y?t.nativeElement:t}var kL=new O("cdk-input-modality-detector-options"),TL={ignoreKeys:[18,17,224,91,16]},IL=650,DS={passive:!0,capture:!0},AL=(()=>{class t{_platform=u(Ye);_listenerCleanups;modalityDetected;modalityChanged;get mostRecentModality(){return this._modality.value}_mostRecentTarget=null;_modality=new rt(null);_options;_lastTouchMs=0;_onKeydown=e=>{this._options?.ignoreKeys?.some(i=>i===e.keyCode)||(this._modality.next("keyboard"),this._mostRecentTarget=or(e))};_onMousedown=e=>{Date.now()-this._lastTouchMs{if(eu(e)){this._modality.next("keyboard");return}this._lastTouchMs=Date.now(),this._modality.next("touch"),this._mostRecentTarget=or(e)};constructor(){let e=u(ae),i=u(_e),r=u(kL,{optional:!0});if(this._options=I(I({},TL),r),this.modalityDetected=this._modality.pipe(ds(1)),this.modalityChanged=this.modalityDetected.pipe(Nn()),this._platform.isBrowser){let o=u(hn).createRenderer(null,null);this._listenerCleanups=e.runOutsideAngular(()=>[o.listen(i,"keydown",this._onKeydown,DS),o.listen(i,"mousedown",this._onMousedown,DS),o.listen(i,"touchstart",this._onTouchstart,DS)])}}ngOnDestroy(){this._modality.complete(),this._listenerCleanups?.forEach(e=>e())}static \u0275fac=function(i){return new(i||t)};static \u0275prov=R({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),Qf=(function(t){return t[t.IMMEDIATE=0]="IMMEDIATE",t[t.EVENTUAL=1]="EVENTUAL",t})(Qf||{}),OL=new O("cdk-focus-monitor-default-options"),zv=Cc({passive:!0,capture:!0}),oi=(()=>{class t{_ngZone=u(ae);_platform=u(Ye);_inputModalityDetector=u(AL);_origin=null;_lastFocusOrigin;_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=u(_e);_stopInputModalityDetector=new z;constructor(){let e=u(OL,{optional:!0});this._detectionMode=e?.detectionMode||Qf.IMMEDIATE}_rootNodeFocusAndBlurListener=e=>{let i=or(e);for(let r=i;r;r=r.parentElement)e.type==="focus"?this._onFocus(e,r):this._onBlur(e,r)};monitor(e,i=!1){let r=Wr(e);if(!this._platform.isBrowser||r.nodeType!==1)return Q();let o=wS(r)||this._document,a=this._elementInfo.get(r);if(a)return i&&(a.checkChildren=!0),a.subject;let s={checkChildren:i,subject:new z,rootNode:o};return this._elementInfo.set(r,s),this._registerGlobalListeners(s),s.subject}stopMonitoring(e){let i=Wr(e),r=this._elementInfo.get(i);r&&(r.subject.complete(),this._setClasses(i),this._elementInfo.delete(i),this._removeGlobalListeners(r))}focusVia(e,i,r){let o=Wr(e),a=this._document.activeElement;o===a?this._getClosestElementsInfo(o).forEach(([s,l])=>this._originChanged(s,i,l)):(this._setOrigin(i),typeof o.focus=="function"&&o.focus(r))}ngOnDestroy(){this._elementInfo.forEach((e,i)=>this.stopMonitoring(i))}_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===Qf.EVENTUAL||!!e?.contains(this._inputModalityDetector._mostRecentTarget)}_setClasses(e,i){e.classList.toggle("cdk-focused",!!i),e.classList.toggle("cdk-touch-focused",i==="touch"),e.classList.toggle("cdk-keyboard-focused",i==="keyboard"),e.classList.toggle("cdk-mouse-focused",i==="mouse"),e.classList.toggle("cdk-program-focused",i==="program")}_setOrigin(e,i=!1){this._ngZone.runOutsideAngular(()=>{if(this._origin=e,this._originFromTouchInteraction=e==="touch"&&i,this._detectionMode===Qf.IMMEDIATE){clearTimeout(this._originTimeoutId);let r=this._originFromTouchInteraction?IL:1;this._originTimeoutId=setTimeout(()=>this._origin=null,r)}})}_onFocus(e,i){let r=this._elementInfo.get(i),o=or(e);!r||!r.checkChildren&&i!==o||this._originChanged(i,this._getFocusOrigin(o),r)}_onBlur(e,i){let r=this._elementInfo.get(i);!r||r.checkChildren&&e.relatedTarget instanceof Node&&i.contains(e.relatedTarget)||(this._setClasses(i),this._emitOrigin(r,null))}_emitOrigin(e,i){e.subject.observers.length&&this._ngZone.run(()=>e.subject.next(i))}_registerGlobalListeners(e){if(!this._platform.isBrowser)return;let i=e.rootNode,r=this._rootNodeFocusListenerCount.get(i)||0;r||this._ngZone.runOutsideAngular(()=>{i.addEventListener("focus",this._rootNodeFocusAndBlurListener,zv),i.addEventListener("blur",this._rootNodeFocusAndBlurListener,zv)}),this._rootNodeFocusListenerCount.set(i,r+1),++this._monitoredElementCount===1&&(this._ngZone.runOutsideAngular(()=>{this._getWindow().addEventListener("focus",this._windowFocusListener)}),this._inputModalityDetector.modalityDetected.pipe(we(this._stopInputModalityDetector)).subscribe(o=>{this._setOrigin(o,!0)}))}_removeGlobalListeners(e){let i=e.rootNode;if(this._rootNodeFocusListenerCount.has(i)){let r=this._rootNodeFocusListenerCount.get(i);r>1?this._rootNodeFocusListenerCount.set(i,r-1):(i.removeEventListener("focus",this._rootNodeFocusAndBlurListener,zv),i.removeEventListener("blur",this._rootNodeFocusAndBlurListener,zv),this._rootNodeFocusListenerCount.delete(i))}--this._monitoredElementCount||(this._getWindow().removeEventListener("focus",this._windowFocusListener),this._stopInputModalityDetector.next(),clearTimeout(this._windowFocusTimeoutId),clearTimeout(this._originTimeoutId))}_originChanged(e,i,r){this._setClasses(e,i),this._emitOrigin(r,i),this._lastFocusOrigin=i}_getClosestElementsInfo(e){let i=[];return this._elementInfo.forEach((r,o)=>{(o===e||r.checkChildren&&o.contains(e))&&i.push([o,r])}),i}_isLastInteractionFromInputLabel(e){let{_mostRecentTarget:i,mostRecentModality:r}=this._inputModalityDetector;if(r!=="mouse"||!i||i===e||e.nodeName!=="INPUT"&&e.nodeName!=="TEXTAREA"||e.disabled)return!1;let o=e.labels;if(o){for(let a=0;a{class t{_elementRef=u(Y);_focusMonitor=u(oi);_monitorSubscription;_focusOrigin=null;cdkFocusChange=new U;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(i=>{this._focusOrigin=i,this.cdkFocusChange.emit(i)})}ngOnDestroy(){this._focusMonitor.stopMonitoring(this._elementRef),this._monitorSubscription&&this._monitorSubscription.unsubscribe()}static \u0275fac=function(i){return new(i||t)};static \u0275dir=P({type:t,selectors:[["","cdkMonitorElementFocus",""],["","cdkMonitorSubtreeFocus",""]],outputs:{cdkFocusChange:"cdkFocusChange"},exportAs:["cdkMonitorFocus"]})}return t})();var Uv=new WeakMap,ft=(()=>{class t{_appRef;_injector=u(de);_environmentInjector=u(ti);load(e){let i=this._appRef=this._appRef||this._injector.get(tr),r=Uv.get(i);r||(r={loaders:new Set,refs:[]},Uv.set(i,r),i.onDestroy(()=>{Uv.get(i)?.refs.forEach(o=>o.destroy()),Uv.delete(i)})),r.loaders.has(e)||(r.loaders.add(e),r.refs.push(Am(e,{environmentInjector:this._environmentInjector})))}static \u0275fac=function(i){return new(i||t)};static \u0275prov=R({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();var ro=(()=>{class t{static \u0275fac=function(i){return new(i||t)};static \u0275cmp=E({type:t,selectors:[["ng-component"]],exportAs:["cdkVisuallyHidden"],decls:0,vars:0,template:function(i,r){},styles:[`.cdk-visually-hidden{border:0;clip:rect(0 0 0 0);height:1px;margin:-1px;overflow:hidden;padding:0;position:absolute;width:1px;white-space:nowrap;outline:0;-webkit-appearance:none;-moz-appearance:none;left:0}[dir=rtl] .cdk-visually-hidden{left:auto;right:0} +`],encapsulation:2,changeDetection:0})}return t})();function oZ(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(i){return new(i||t)};static \u0275prov=R({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),PL=(()=>{class t{_mutationObserverFactory=u(RL);_observedElements=new Map;_ngZone=u(ae);constructor(){}ngOnDestroy(){this._observedElements.forEach((e,i)=>this._cleanupObserver(i))}observe(e){let i=Wr(e);return new Ne(r=>{let a=this._observeElement(i).pipe(se(s=>s.filter(l=>!oZ(l))),ce(s=>!!s.length)).subscribe(s=>{this._ngZone.run(()=>{r.next(s)})});return()=>{a.unsubscribe(),this._unobserveElement(i)}})}_observeElement(e){return this._ngZone.runOutsideAngular(()=>{if(this._observedElements.has(e))this._observedElements.get(e).count++;else{let i=new z,r=this._mutationObserverFactory.create(o=>i.next(o));r&&r.observe(e,{characterData:!0,childList:!0,subtree:!0}),this._observedElements.set(e,{observer:r,stream:i,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:i,stream:r}=this._observedElements.get(e);i&&i.disconnect(),r.complete(),this._observedElements.delete(e)}}static \u0275fac=function(i){return new(i||t)};static \u0275prov=R({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),Zf=(()=>{class t{_contentObserver=u(PL);_elementRef=u(Y);event=new U;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=Gn(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(Dt(this.debounce)):e).subscribe(this.event)}_unsubscribe(){this._currentSubscription?.unsubscribe()}static \u0275fac=function(i){return new(i||t)};static \u0275dir=P({type:t,selectors:[["","cdkObserveContent",""]],inputs:{disabled:[2,"cdkObserveContentDisabled","disabled",L],debounce:"debounce"},outputs:{event:"cdkObserveContent"},exportAs:["cdkObserveContent"]})}return t})(),Jm=(()=>{class t{static \u0275fac=function(i){return new(i||t)};static \u0275mod=ee({type:t});static \u0275inj=J({providers:[RL]})}return t})();var Dc=(()=>{class t{_platform=u(Ye);constructor(){}isDisabled(e){return e.hasAttribute("disabled")}isVisible(e){return sZ(e)&&getComputedStyle(e).visibility==="visible"}isTabbable(e){if(!this._platform.isBrowser)return!1;let i=aZ(fZ(e));if(i&&(FL(i)===-1||!this.isVisible(i)))return!1;let r=e.nodeName.toLowerCase(),o=FL(e);return e.hasAttribute("contenteditable")?o!==-1:r==="iframe"||r==="object"||this._platform.WEBKIT&&this._platform.IOS&&!hZ(e)?!1:r==="audio"?e.hasAttribute("controls")?o!==-1:!1:r==="video"?o===-1?!1:o!==null?!0:this._platform.FIREFOX||e.hasAttribute("controls"):e.tabIndex>=0}isFocusable(e,i){return pZ(e)&&!this.isDisabled(e)&&(i?.ignoreVisibility||this.isVisible(e))}static \u0275fac=function(i){return new(i||t)};static \u0275prov=R({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();function aZ(t){try{return t.frameElement}catch{return null}}function sZ(t){return!!(t.offsetWidth||t.offsetHeight||typeof t.getClientRects=="function"&&t.getClientRects().length)}function lZ(t){let n=t.nodeName.toLowerCase();return n==="input"||n==="select"||n==="button"||n==="textarea"}function cZ(t){return uZ(t)&&t.type=="hidden"}function dZ(t){return mZ(t)&&t.hasAttribute("href")}function uZ(t){return t.nodeName.toLowerCase()=="input"}function mZ(t){return t.nodeName.toLowerCase()=="a"}function VL(t){if(!t.hasAttribute("tabindex")||t.tabIndex===void 0)return!1;let n=t.getAttribute("tabindex");return!!(n&&!isNaN(parseInt(n,10)))}function FL(t){if(!VL(t))return null;let n=parseInt(t.getAttribute("tabindex")||"",10);return isNaN(n)?-1:n}function hZ(t){let n=t.nodeName.toLowerCase(),e=n==="input"&&t.type;return e==="text"||e==="password"||n==="select"||n==="textarea"}function pZ(t){return cZ(t)?!1:lZ(t)||dZ(t)||t.hasAttribute("contenteditable")||VL(t)}function fZ(t){return t.ownerDocument&&t.ownerDocument.defaultView||window}var $v=class{_element;_checker;_ngZone;_document;_injector;_startAnchor;_endAnchor;_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,i,r,o=!1,a){this._element=n,this._checker=e,this._ngZone=i,this._document=r,this._injector=a,o||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 i=this._getFirstTabbableElement(e);return i?.focus(n),!!i}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 i=0;i=0;i--){let r=e[i].nodeType===this._document.ELEMENT_NODE?this._getLastTabbableElement(e[i]):null;if(r)return r}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?vt(n,{injector:this._injector}):setTimeout(n)}},eh=(()=>{class t{_checker=u(Dc);_ngZone=u(ae);_document=u(_e);_injector=u(de);constructor(){u(ft).load(ro)}create(e,i=!1){return new $v(e,this._checker,this._ngZone,this._document,i,this._injector)}static \u0275fac=function(i){return new(i||t)};static \u0275prov=R({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),ES=(()=>{class t{_elementRef=u(Y);_focusTrapFactory=u(eh);focusTrap;_previouslyFocusedElement=null;get enabled(){return this.focusTrap?.enabled||!1}set enabled(e){this.focusTrap&&(this.focusTrap.enabled=e)}autoCapture;constructor(){u(Ye).isBrowser&&(this.focusTrap=this._focusTrapFactory.create(this._elementRef.nativeElement,!0))}ngOnDestroy(){this.focusTrap?.destroy(),this._previouslyFocusedElement&&(this._previouslyFocusedElement.focus(),this._previouslyFocusedElement=null)}ngAfterContentInit(){this.focusTrap?.attachAnchors(),this.autoCapture&&this._captureFocus()}ngDoCheck(){this.focusTrap&&!this.focusTrap.hasAttached()&&this.focusTrap.attachAnchors()}ngOnChanges(e){let i=e.autoCapture;i&&!i.firstChange&&this.autoCapture&&this.focusTrap?.hasAttached()&&this._captureFocus()}_captureFocus(){this._previouslyFocusedElement=So(),this.focusTrap?.focusInitialElementWhenReady()}static \u0275fac=function(i){return new(i||t)};static \u0275dir=P({type:t,selectors:[["","cdkTrapFocus",""]],inputs:{enabled:[2,"cdkTrapFocus","enabled",L],autoCapture:[2,"cdkTrapFocusAutoCapture","autoCapture",L]},exportAs:["cdkTrapFocus"],features:[Oe]})}return t})(),BL=new O("liveAnnouncerElement",{providedIn:"root",factory:jL});function jL(){return null}var HL=new O("LIVE_ANNOUNCER_DEFAULT_OPTIONS"),gZ=0,Xf=(()=>{class t{_ngZone=u(ae);_defaultOptions=u(HL,{optional:!0});_liveElement;_document=u(_e);_previousTimeout;_currentPromise;_currentResolve;constructor(){let e=u(BL,{optional:!0});this._liveElement=e||this._createLiveElement()}announce(e,...i){let r=this._defaultOptions,o,a;return i.length===1&&typeof i[0]=="number"?a=i[0]:[o,a]=i,this.clear(),clearTimeout(this._previousTimeout),o||(o=r&&r.politeness?r.politeness:"polite"),a==null&&r&&(a=r.duration),this._liveElement.setAttribute("aria-live",o),this._liveElement.id&&this._exposeAnnouncerToModals(this._liveElement.id),this._ngZone.runOutsideAngular(()=>(this._currentPromise||(this._currentPromise=new Promise(s=>this._currentResolve=s)),clearTimeout(this._previousTimeout),this._previousTimeout=setTimeout(()=>{this._liveElement.textContent=e,typeof a=="number"&&(this._previousTimeout=setTimeout(()=>this.clear(),a)),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",i=this._document.getElementsByClassName(e),r=this._document.createElement("div");for(let o=0;o .cdk-overlay-container [aria-modal="true"]');for(let r=0;r{class t{_platform=u(Ye);_hasCheckedHighContrastMode;_document=u(_e);_breakpointSubscription;constructor(){this._breakpointSubscription=u(Ml).observe("(forced-colors: active)").subscribe(()=>{this._hasCheckedHighContrastMode&&(this._hasCheckedHighContrastMode=!1,this._applyBodyHighContrastModeCssClasses())})}getHighContrastMode(){if(!this._platform.isBrowser)return wc.NONE;let e=this._document.createElement("div");e.style.backgroundColor="rgb(1,2,3)",e.style.position="absolute",this._document.body.appendChild(e);let i=this._document.defaultView||window,r=i&&i.getComputedStyle?i.getComputedStyle(e):null,o=(r&&r.backgroundColor||"").replace(/ /g,"");switch(e.remove(),o){case"rgb(0,0,0)":case"rgb(45,50,54)":case"rgb(32,32,32)":return wc.WHITE_ON_BLACK;case"rgb(255,255,255)":case"rgb(255,250,239)":return wc.BLACK_ON_WHITE}return wc.NONE}ngOnDestroy(){this._breakpointSubscription.unsubscribe()}_applyBodyHighContrastModeCssClasses(){if(!this._hasCheckedHighContrastMode&&this._platform.isBrowser&&this._document.body){let e=this._document.body.classList;e.remove(MS,NL,LL),this._hasCheckedHighContrastMode=!0;let i=this.getHighContrastMode();i===wc.BLACK_ON_WHITE?e.add(MS,NL):i===wc.WHITE_ON_BLACK&&e.add(MS,LL)}}static \u0275fac=function(i){return new(i||t)};static \u0275prov=R({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),El=(()=>{class t{constructor(){u(Wv)._applyBodyHighContrastModeCssClasses()}static \u0275fac=function(i){return new(i||t)};static \u0275mod=ee({type:t});static \u0275inj=J({imports:[Jm]})}return t})();var SS={},et=(()=>{class t{_appId=u(uc);getId(e){return this._appId!=="ng"&&(e+=this._appId),SS.hasOwnProperty(e)||(SS[e]=0),`${e}${SS[e]++}`}static \u0275fac=function(i){return new(i||t)};static \u0275prov=R({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();var _Z=200,Gv=class{_letterKeyStream=new z;_items=[];_selectedItemIndex=-1;_pressedLetters=[];_skipPredicateFn;_selectedItem=new z;selectedItem=this._selectedItem;constructor(n,e){let i=typeof e?.debounceInterval=="number"?e.debounceInterval:_Z;e?.skipPredicate&&(this._skipPredicateFn=e.skipPredicate),this.setItems(n),this._setupKeyHandler(i)}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(He(e=>this._pressedLetters.push(e)),Dt(n),ce(()=>this._pressedLetters.length>0),se(()=>this._pressedLetters.join("").toLocaleUpperCase())).subscribe(e=>{for(let i=1;it[e]):t.altKey||t.shiftKey||t.ctrlKey||t.metaKey}var th=class{_items;_activeItemIndex=he(-1);_activeItem=he(null);_wrap=!1;_typeaheadSubscription=ke.EMPTY;_itemChangesSubscription;_vertical=!0;_horizontal;_allowedModifierKeys=[];_homeAndEnd=!1;_pageUpAndDown={enabled:!1,delta:10};_effectRef;_typeahead;_skipPredicateFn=n=>n.disabled;constructor(n,e){this._items=n,n instanceof Dr?this._itemChangesSubscription=n.changes.subscribe(i=>this._itemsChanged(i.toArray())):bs(n)&&(this._effectRef=zr(()=>this._itemsChanged(n()),{injector:e}))}tabOut=new z;change=new z;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 Gv(e,{debounceInterval:typeof n=="number"?n:void 0,skipPredicate:i=>this._skipPredicateFn(i)}),this._typeaheadSubscription=this._typeahead.selectedItem.subscribe(i=>{this.setActiveItem(i)}),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,r=["altKey","ctrlKey","metaKey","shiftKey"].every(o=>!n[o]||this._allowedModifierKeys.indexOf(o)>-1);switch(e){case 9:this.tabOut.next();return;case 40:if(this._vertical&&r){this.setNextItemActive();break}else return;case 38:if(this._vertical&&r){this.setPreviousItemActive();break}else return;case 39:if(this._horizontal&&r){this._horizontal==="rtl"?this.setPreviousItemActive():this.setNextItemActive();break}else return;case 37:if(this._horizontal&&r){this._horizontal==="rtl"?this.setNextItemActive():this.setPreviousItemActive();break}else return;case 36:if(this._homeAndEnd&&r){this.setFirstItemActive();break}else return;case 35:if(this._homeAndEnd&&r){this.setLastItemActive();break}else return;case 33:if(this._pageUpAndDown.enabled&&r){let o=this._activeItemIndex()-this._pageUpAndDown.delta;this._setActiveItemByIndex(o>0?o:0,1);break}else return;case 34:if(this._pageUpAndDown.enabled&&r){let o=this._activeItemIndex()+this._pageUpAndDown.delta,a=this._getItemsArray().length;this._setActiveItemByIndex(o-1&&i!==this._activeItemIndex()&&(this._activeItemIndex.set(i),this._typeahead?.setCurrentSelectedItemIndex(i))}}};var tu=class extends th{setActiveItem(n){this.activeItem&&this.activeItem.setInactiveStyles(),super.setActiveItem(n),this.activeItem&&this.activeItem.setActiveStyles()}};var Ps=class extends th{_origin="program";setFocusOrigin(n){return this._origin=n,this}setActiveItem(n){super.setActiveItem(n),this.activeItem&&this.activeItem.focus(this._origin)}};var WL=" ";function ih(t,n,e){let i=Kv(t,n);e=e.trim(),!i.some(r=>r.trim()===e)&&(i.push(e),t.setAttribute(n,i.join(WL)))}function Mc(t,n,e){let i=Kv(t,n);e=e.trim();let r=i.filter(o=>o!==e);r.length?t.setAttribute(n,r.join(WL)):t.removeAttribute(n)}function Kv(t,n){return t.getAttribute(n)?.match(/\S+/g)??[]}var GL="cdk-describedby-message",Qv="cdk-describedby-host",TS=0,nh=(()=>{class t{_platform=u(Ye);_document=u(_e);_messageRegistry=new Map;_messagesContainer=null;_id=`${TS++}`;constructor(){u(ft).load(ro),this._id=u(uc)+"-"+TS++}describe(e,i,r){if(!this._canBeDescribed(e,i))return;let o=kS(i,r);typeof i!="string"?($L(i,this._id),this._messageRegistry.set(o,{messageElement:i,referenceCount:0})):this._messageRegistry.has(o)||this._createMessageElement(i,r),this._isElementDescribedByMessage(e,o)||this._addMessageReference(e,o)}removeDescription(e,i,r){if(!i||!this._isElementNode(e))return;let o=kS(i,r);if(this._isElementDescribedByMessage(e,o)&&this._removeMessageReference(e,o),typeof i=="string"){let a=this._messageRegistry.get(o);a&&a.referenceCount===0&&this._deleteMessageElement(o)}this._messagesContainer?.childNodes.length===0&&(this._messagesContainer.remove(),this._messagesContainer=null)}ngOnDestroy(){let e=this._document.querySelectorAll(`[${Qv}="${this._id}"]`);for(let i=0;ir.indexOf(GL)!=0);e.setAttribute("aria-describedby",i.join(" "))}_addMessageReference(e,i){let r=this._messageRegistry.get(i);ih(e,"aria-describedby",r.messageElement.id),e.setAttribute(Qv,this._id),r.referenceCount++}_removeMessageReference(e,i){let r=this._messageRegistry.get(i);r.referenceCount--,Mc(e,"aria-describedby",r.messageElement.id),e.removeAttribute(Qv)}_isElementDescribedByMessage(e,i){let r=Kv(e,"aria-describedby"),o=this._messageRegistry.get(i),a=o&&o.messageElement.id;return!!a&&r.indexOf(a)!=-1}_canBeDescribed(e,i){if(!this._isElementNode(e))return!1;if(i&&typeof i=="object")return!0;let r=i==null?"":`${i}`.trim(),o=e.getAttribute("aria-label");return r?!o||o.trim()!==r:!1}_isElementNode(e){return e.nodeType===this._document.ELEMENT_NODE}static \u0275fac=function(i){return new(i||t)};static \u0275prov=R({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();function kS(t,n){return typeof t=="string"?`${n||""}/${t}`:t}function $L(t,n){t.id||(t.id=`${GL}-${n}-${TS++}`)}var bZ=new O("cdk-dir-doc",{providedIn:"root",factory:vZ});function vZ(){return u(_e)}var yZ=/^(ar|ckb|dv|he|iw|fa|nqo|ps|sd|ug|ur|yi|.*[-_](Adlm|Arab|Hebr|Nkoo|Rohg|Thaa))(?!.*[-_](Latn|Cyrl)($|-|_))($|-|_)/i;function IS(t){let n=t?.toLowerCase()||"";return n==="auto"&&typeof navigator<"u"&&navigator?.language?yZ.test(navigator.language)?"rtl":"ltr":n==="rtl"?"rtl":"ltr"}var Yt=(()=>{class t{get value(){return this.valueSignal()}valueSignal=he("ltr");change=new U;constructor(){let e=u(bZ,{optional:!0});if(e){let i=e.body?e.body.dir:null,r=e.documentElement?e.documentElement.dir:null;this.valueSignal.set(IS(i||r||"ltr"))}}ngOnDestroy(){this.change.complete()}static \u0275fac=function(i){return new(i||t)};static \u0275prov=R({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();var YL=(()=>{class t{_isInitialized=!1;_rawDir;change=new U;get dir(){return this.valueSignal()}set dir(e){let i=this.valueSignal();this.valueSignal.set(IS(e)),this._rawDir=e,i!==this.valueSignal()&&this._isInitialized&&this.change.emit(this.valueSignal())}get value(){return this.dir}valueSignal=he("ltr");ngAfterContentInit(){this._isInitialized=!0}ngOnDestroy(){this.change.complete()}static \u0275fac=function(i){return new(i||t)};static \u0275dir=P({type:t,selectors:[["","dir",""]],hostVars:1,hostBindings:function(i,r){i&2&&X("dir",r._rawDir)},inputs:{dir:"dir"},outputs:{change:"dirChange"},exportAs:["dir"],features:[Ce([{provide:Yt,useExisting:t}])]})}return t})(),Fs=(()=>{class t{static \u0275fac=function(i){return new(i||t)};static \u0275mod=ee({type:t});static \u0275inj=J({})}return t})();var De=(()=>{class t{constructor(){u(Wv)._applyBodyHighContrastModeCssClasses()}static \u0275fac=function(i){return new(i||t)};static \u0275mod=ee({type:t});static \u0275inj=J({imports:[Fs,Fs]})}return t})();var Sl=class{_defaultMatcher;ngControl;_parentFormGroup;_parentForm;_stateChanges;errorState=!1;matcher;constructor(n,e,i,r,o){this._defaultMatcher=n,this.ngControl=e,this._parentFormGroup=i,this._parentForm=r,this._stateChanges=o}updateErrorState(){let n=this.errorState,e=this._parentFormGroup||this._parentForm,i=this.matcher||this._defaultMatcher,r=this.ngControl?this.ngControl.control:null,o=i?.isErrorState(r,e)??!1;o!==n&&(this.errorState=o,this._stateChanges.next())}};var Ns=new O("MAT_DATE_LOCALE",{providedIn:"root",factory:CZ});function CZ(){return u(bl)}var rh="Method not implemented",Wi=class{locale;_localeChanges=new z;localeChanges=this._localeChanges;setTime(n,e,i,r){throw new Error(rh)}getHours(n){throw new Error(rh)}getMinutes(n){throw new Error(rh)}getSeconds(n){throw new Error(rh)}parseTime(n,e){throw new Error(rh)}addSeconds(n,e){throw new Error(rh)}getValidDateOrNull(n){return this.isDateInstance(n)&&this.isValid(n)?n:null}deserialize(n){return n==null||this.isDateInstance(n)&&this.isValid(n)?n:this.invalid()}setLocale(n){this.locale=n,this._localeChanges.next()}compareDate(n,e){return this.getYear(n)-this.getYear(e)||this.getMonth(n)-this.getMonth(e)||this.getDate(n)-this.getDate(e)}compareTime(n,e){return this.getHours(n)-this.getHours(e)||this.getMinutes(n)-this.getMinutes(e)||this.getSeconds(n)-this.getSeconds(e)}sameDate(n,e){if(n&&e){let i=this.isValid(n),r=this.isValid(e);return i&&r?!this.compareDate(n,e):i==r}return n==e}sameTime(n,e){if(n&&e){let i=this.isValid(n),r=this.isValid(e);return i&&r?!this.compareTime(n,e):i==r}return n==e}clampDate(n,e,i){return e&&this.compareDate(n,e)<0?e:i&&this.compareDate(n,i)>0?i:n}},Ls=new O("mat-date-formats");var kl=(()=>{class t{isErrorState(e,i){return!!(e&&e.invalid&&(e.touched||i&&i.submitted))}static \u0275fac=function(i){return new(i||t)};static \u0275prov=R({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();var Oi=(()=>{class t{static \u0275fac=function(i){return new(i||t)};static \u0275cmp=E({type:t,selectors:[["structural-styles"]],decls:0,vars:0,template:function(i,r){},styles:[`.mat-focus-indicator{position:relative}.mat-focus-indicator::before{top:0;left:0;right:0;bottom:0;position:absolute;box-sizing:border-box;pointer-events:none;display:var(--mat-focus-indicator-display, none);border-width:var(--mat-focus-indicator-border-width, 3px);border-style:var(--mat-focus-indicator-border-style, solid);border-color:var(--mat-focus-indicator-border-color, transparent);border-radius:var(--mat-focus-indicator-border-radius, 4px)}.mat-focus-indicator:focus::before{content:""}@media(forced-colors: active){html{--mat-focus-indicator-display: block}} +`],encapsulation:2,changeDetection:0})}return t})();var qa=(function(t){return t[t.NORMAL=0]="NORMAL",t[t.NEGATED=1]="NEGATED",t[t.INVERTED=2]="INVERTED",t})(qa||{}),Zv,iu;function Xv(){if(iu==null){if(typeof document!="object"||!document||typeof Element!="function"||!Element)return iu=!1,iu;if(document.documentElement?.style&&"scrollBehavior"in document.documentElement.style)iu=!0;else{let t=Element.prototype.scrollTo;t?iu=!/\{\s*\[native code\]\s*\}/.test(t.toString()):iu=!1}}return iu}function oh(){if(typeof document!="object"||!document)return qa.NORMAL;if(Zv==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"),i=e.style;i.width="2px",i.height="1px",t.appendChild(e),document.body.appendChild(t),Zv=qa.NORMAL,t.scrollLeft===0&&(t.scrollLeft=1,Zv=t.scrollLeft===0?qa.NEGATED:qa.INVERTED),t.remove()}return Zv}function AS(){return typeof __karma__<"u"&&!!__karma__||typeof jasmine<"u"&&!!jasmine||typeof jest<"u"&&!!jest||typeof Mocha<"u"&&!!Mocha}var ah,QL=["color","button","checkbox","date","datetime-local","email","file","hidden","image","month","number","password","radio","range","reset","search","submit","tel","text","time","url","week"];function OS(){if(ah)return ah;if(typeof document!="object"||!document)return ah=new Set(QL),ah;let t=document.createElement("input");return ah=new Set(QL.filter(n=>(t.setAttribute("type",n),t.type===n))),ah}function dn(t){return t==null?"":typeof t=="string"?t:`${t}px`}function Vi(t){return t!=null&&`${t}`!="false"}function KL(t,n=/\s+/){let e=[];if(t!=null){let i=Array.isArray(t)?t:`${t}`.split(n);for(let r of i){let o=`${r}`.trim();o&&e.push(o)}}return e}var To=(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})(To||{}),Jv=class{_renderer;element;config;_animationForciblyDisabledThroughCss;state=To.HIDDEN;constructor(n,e,i,r=!1){this._renderer=n,this.element=e,this.config=i,this._animationForciblyDisabledThroughCss=r}fadeOut(){this._renderer.fadeOutRipple(this)}},ZL=Cc({passive:!0,capture:!0}),RS=class{_events=new Map;addHandler(n,e,i,r){let o=this._events.get(e);if(o){let a=o.get(i);a?a.add(r):o.set(i,new Set([r]))}else this._events.set(e,new Map([[i,new Set([r])]])),n.runOutsideAngular(()=>{document.addEventListener(e,this._delegateEventHandler,ZL)})}removeHandler(n,e,i){let r=this._events.get(n);if(!r)return;let o=r.get(e);o&&(o.delete(i),o.size===0&&r.delete(e),r.size===0&&(this._events.delete(n),document.removeEventListener(n,this._delegateEventHandler,ZL)))}_delegateEventHandler=n=>{let e=or(n);e&&this._events.get(n.type)?.forEach((i,r)=>{(r===e||r.contains(e))&&i.forEach(o=>o.handleEvent(n))})}},sh={enterDuration:225,exitDuration:150},wZ=800,XL=Cc({passive:!0,capture:!0}),JL=["mousedown","touchstart"],eV=["mouseup","mouseleave","touchend","touchcancel"],DZ=(()=>{class t{static \u0275fac=function(i){return new(i||t)};static \u0275cmp=E({type:t,selectors:[["ng-component"]],hostAttrs:["mat-ripple-style-loader",""],decls:0,vars:0,template:function(i,r){},styles:[`.mat-ripple{overflow:hidden;position:relative}.mat-ripple:not(:empty){transform:translateZ(0)}.mat-ripple.mat-ripple-unbounded{overflow:visible}.mat-ripple-element{position:absolute;border-radius:50%;pointer-events:none;transition:opacity,transform 0ms cubic-bezier(0, 0, 0.2, 1);transform:scale3d(0, 0, 0);background-color:var(--mat-ripple-color, color-mix(in srgb, var(--mat-sys-on-surface) 10%, transparent))}@media(forced-colors: active){.mat-ripple-element{display:none}}.cdk-drag-preview .mat-ripple-element,.cdk-drag-placeholder .mat-ripple-element{display:none} +`],encapsulation:2,changeDetection:0})}return t})(),Ec=class t{_target;_ngZone;_platform;_containerElement;_triggerElement;_isPointerDown=!1;_activeRipples=new Map;_mostRecentTransientRipple;_lastTouchStartEvent;_pointerUpEventsRegistered=!1;_containerRect;static _eventManager=new RS;constructor(n,e,i,r,o){this._target=n,this._ngZone=e,this._platform=r,r.isBrowser&&(this._containerElement=Wr(i)),o&&o.get(ft).load(DZ)}fadeInRipple(n,e,i={}){let r=this._containerRect=this._containerRect||this._containerElement.getBoundingClientRect(),o=I(I({},sh),i.animation);i.centered&&(n=r.left+r.width/2,e=r.top+r.height/2);let a=i.radius||MZ(n,e,r),s=n-r.left,l=e-r.top,c=o.enterDuration,d=document.createElement("div");d.classList.add("mat-ripple-element"),d.style.left=`${s-a}px`,d.style.top=`${l-a}px`,d.style.height=`${a*2}px`,d.style.width=`${a*2}px`,i.color!=null&&(d.style.backgroundColor=i.color),d.style.transitionDuration=`${c}ms`,this._containerElement.appendChild(d);let p=window.getComputedStyle(d),_=p.transitionProperty,b=p.transitionDuration,y=_==="none"||b==="0s"||b==="0s, 0s"||r.width===0&&r.height===0,w=new Jv(this,d,i,y);d.style.transform="scale3d(1, 1, 1)",w.state=To.FADING_IN,i.persistent||(this._mostRecentTransientRipple=w);let C=null;return!y&&(c||o.exitDuration)&&this._ngZone.runOutsideAngular(()=>{let D=()=>{C&&(C.fallbackTimer=null),clearTimeout(W),this._finishRippleTransition(w)},F=()=>this._destroyRipple(w),W=setTimeout(F,c+100);d.addEventListener("transitionend",D),d.addEventListener("transitioncancel",F),C={onTransitionEnd:D,onTransitionCancel:F,fallbackTimer:W}}),this._activeRipples.set(w,C),(y||!c)&&this._finishRippleTransition(w),w}fadeOutRipple(n){if(n.state===To.FADING_OUT||n.state===To.HIDDEN)return;let e=n.element,i=I(I({},sh),n.config.animation);e.style.transitionDuration=`${i.exitDuration}ms`,e.style.opacity="0",n.state=To.FADING_OUT,(n._animationForciblyDisabledThroughCss||!i.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=Wr(n);!this._platform.isBrowser||!e||e===this._triggerElement||(this._removeTriggerEvents(),this._triggerElement=e,JL.forEach(i=>{t._eventManager.addHandler(this._ngZone,i,e,this)}))}handleEvent(n){n.type==="mousedown"?this._onMousedown(n):n.type==="touchstart"?this._onTouchStart(n):this._onPointerUp(),this._pointerUpEventsRegistered||(this._ngZone.runOutsideAngular(()=>{eV.forEach(e=>{this._triggerElement.addEventListener(e,this,XL)})}),this._pointerUpEventsRegistered=!0)}_finishRippleTransition(n){n.state===To.FADING_IN?this._startFadeOutTransition(n):n.state===To.FADING_OUT&&this._destroyRipple(n)}_startFadeOutTransition(n){let e=n===this._mostRecentTransientRipple,{persistent:i}=n.config;n.state=To.VISIBLE,!i&&(!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=To.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=Jd(n),i=this._lastTouchStartEvent&&Date.now(){let e=n.state===To.VISIBLE||n.config.terminateOnPointerUp&&n.state===To.FADING_IN;!n.config.persistent&&e&&n.fadeOut()}))}_getActiveRipples(){return Array.from(this._activeRipples.keys())}_removeTriggerEvents(){let n=this._triggerElement;n&&(JL.forEach(e=>t._eventManager.removeHandler(e,n,this)),this._pointerUpEventsRegistered&&(eV.forEach(e=>n.removeEventListener(e,this,XL)),this._pointerUpEventsRegistered=!1))}};function MZ(t,n,e){let i=Math.max(Math.abs(t-e.left),Math.abs(t-e.right)),r=Math.max(Math.abs(n-e.top),Math.abs(n-e.bottom));return Math.sqrt(i*i+r*r)}var Vs=new O("mat-ripple-global-options"),qn=(()=>{class t{_elementRef=u(Y);_animationsDisabled=Qe();color;unbounded;centered;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=u(ae),i=u(Ye),r=u(Vs,{optional:!0}),o=u(de);this._globalOptions=r||{},this._rippleRenderer=new Ec(this,e,this._elementRef,i,o)}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:I(I(I({},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,i=0,r){return typeof e=="number"?this._rippleRenderer.fadeInRipple(e,i,I(I({},this.rippleConfig),r)):this._rippleRenderer.fadeInRipple(0,0,I(I({},this.rippleConfig),e))}static \u0275fac=function(i){return new(i||t)};static \u0275dir=P({type:t,selectors:[["","mat-ripple",""],["","matRipple",""]],hostAttrs:[1,"mat-ripple"],hostVars:2,hostBindings:function(i,r){i&2&&G("mat-ripple-unbounded",r.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 Io=(()=>{class t{static \u0275fac=function(i){return new(i||t)};static \u0275mod=ee({type:t});static \u0275inj=J({imports:[De,De]})}return t})();var nu=(()=>{class t{_animationsDisabled=Qe();state="unchecked";disabled=!1;appearance="full";constructor(){}static \u0275fac=function(i){return new(i||t)};static \u0275cmp=E({type:t,selectors:[["mat-pseudo-checkbox"]],hostAttrs:[1,"mat-pseudo-checkbox"],hostVars:12,hostBindings:function(i,r){i&2&&G("mat-pseudo-checkbox-indeterminate",r.state==="indeterminate")("mat-pseudo-checkbox-checked",r.state==="checked")("mat-pseudo-checkbox-disabled",r.disabled)("mat-pseudo-checkbox-minimal",r.appearance==="minimal")("mat-pseudo-checkbox-full",r.appearance==="full")("_mat-animation-noopable",r._animationsDisabled)},inputs:{state:"state",disabled:"disabled",appearance:"appearance"},decls:0,vars:0,template:function(i,r){},styles:[`.mat-pseudo-checkbox{border-radius:2px;cursor:pointer;display:inline-block;vertical-align:middle;box-sizing:border-box;position:relative;flex-shrink:0;transition:border-color 90ms cubic-bezier(0, 0, 0.2, 0.1),background-color 90ms cubic-bezier(0, 0, 0.2, 0.1)}.mat-pseudo-checkbox::after{position:absolute;opacity:0;content:"";border-bottom:2px solid currentColor;transition:opacity 90ms cubic-bezier(0, 0, 0.2, 0.1)}.mat-pseudo-checkbox._mat-animation-noopable{transition:none !important;animation:none !important}.mat-pseudo-checkbox._mat-animation-noopable::after{transition:none}.mat-pseudo-checkbox-disabled{cursor:default}.mat-pseudo-checkbox-indeterminate::after{left:1px;opacity:1;border-radius:2px}.mat-pseudo-checkbox-checked::after{left:1px;border-left:2px solid currentColor;transform:rotate(-45deg);opacity:1;box-sizing:content-box}.mat-pseudo-checkbox-minimal.mat-pseudo-checkbox-checked::after,.mat-pseudo-checkbox-minimal.mat-pseudo-checkbox-indeterminate::after{color:var(--mat-pseudo-checkbox-minimal-selected-checkmark-color, var(--mat-sys-primary))}.mat-pseudo-checkbox-minimal.mat-pseudo-checkbox-checked.mat-pseudo-checkbox-disabled::after,.mat-pseudo-checkbox-minimal.mat-pseudo-checkbox-indeterminate.mat-pseudo-checkbox-disabled::after{color:var(--mat-pseudo-checkbox-minimal-disabled-selected-checkmark-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent))}.mat-pseudo-checkbox-full{border-color:var(--mat-pseudo-checkbox-full-unselected-icon-color, var(--mat-sys-on-surface-variant));border-width:2px;border-style:solid}.mat-pseudo-checkbox-full.mat-pseudo-checkbox-disabled{border-color:var(--mat-pseudo-checkbox-full-disabled-unselected-icon-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent))}.mat-pseudo-checkbox-full.mat-pseudo-checkbox-checked,.mat-pseudo-checkbox-full.mat-pseudo-checkbox-indeterminate{background-color:var(--mat-pseudo-checkbox-full-selected-icon-color, var(--mat-sys-primary));border-color:rgba(0,0,0,0)}.mat-pseudo-checkbox-full.mat-pseudo-checkbox-checked::after,.mat-pseudo-checkbox-full.mat-pseudo-checkbox-indeterminate::after{color:var(--mat-pseudo-checkbox-full-selected-checkmark-color, var(--mat-sys-on-primary))}.mat-pseudo-checkbox-full.mat-pseudo-checkbox-checked.mat-pseudo-checkbox-disabled,.mat-pseudo-checkbox-full.mat-pseudo-checkbox-indeterminate.mat-pseudo-checkbox-disabled{background-color:var(--mat-pseudo-checkbox-full-disabled-selected-icon-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent))}.mat-pseudo-checkbox-full.mat-pseudo-checkbox-checked.mat-pseudo-checkbox-disabled::after,.mat-pseudo-checkbox-full.mat-pseudo-checkbox-indeterminate.mat-pseudo-checkbox-disabled::after{color:var(--mat-pseudo-checkbox-full-disabled-selected-checkmark-color, var(--mat-sys-surface))}.mat-pseudo-checkbox{width:18px;height:18px}.mat-pseudo-checkbox-minimal.mat-pseudo-checkbox-checked::after{width:14px;height:6px;transform-origin:center;top:-4.2426406871px;left:0;bottom:0;right:0;margin:auto}.mat-pseudo-checkbox-minimal.mat-pseudo-checkbox-indeterminate::after{top:8px;width:16px}.mat-pseudo-checkbox-full.mat-pseudo-checkbox-checked::after{width:10px;height:4px;transform-origin:center;top:-2.8284271247px;left:0;bottom:0;right:0;margin:auto}.mat-pseudo-checkbox-full.mat-pseudo-checkbox-indeterminate::after{top:6px;width:12px} +`],encapsulation:2,changeDetection:0})}return t})();var ey=(()=>{class t{static \u0275fac=function(i){return new(i||t)};static \u0275mod=ee({type:t});static \u0275inj=J({imports:[De]})}return t})();var EZ=["*",[["mat-option"],["ng-container"]]],SZ=["*","mat-option, ng-container"],kZ=["text"],TZ=[[["mat-icon"]],"*"],IZ=["mat-icon","*"];function AZ(t,n){if(t&1&&M(0,"mat-pseudo-checkbox",1),t&2){let e=x();v("disabled",e.disabled)("state",e.selected?"checked":"unchecked")}}function OZ(t,n){if(t&1&&M(0,"mat-pseudo-checkbox",3),t&2){let e=x();v("disabled",e.disabled)}}function RZ(t,n){if(t&1&&(m(0,"span",4),f(1),h()),t&2){let e=x();g(),fe("(",e.group.label,")")}}var ru=new O("MAT_OPTION_PARENT_COMPONENT"),ou=new O("MatOptgroup"),PS=(()=>{class t{label;disabled=!1;_labelId=u(et).getId("mat-optgroup-label-");_inert;constructor(){let e=u(ru,{optional:!0});this._inert=e?.inertGroups??!1}static \u0275fac=function(i){return new(i||t)};static \u0275cmp=E({type:t,selectors:[["mat-optgroup"]],hostAttrs:[1,"mat-mdc-optgroup"],hostVars:3,hostBindings:function(i,r){i&2&&X("role",r._inert?null:"group")("aria-disabled",r._inert?null:r.disabled.toString())("aria-labelledby",r._inert?null:r._labelId)},inputs:{label:"label",disabled:[2,"disabled","disabled",L]},exportAs:["matOptgroup"],features:[Ce([{provide:ou,useExisting:t}])],ngContentSelectors:SZ,decls:5,vars:4,consts:[["role","presentation",1,"mat-mdc-optgroup-label",3,"id"],[1,"mdc-list-item__primary-text"]],template:function(i,r){i&1&&(Ee(EZ),gt(0,"span",0)(1,"span",1),f(2),ne(3),yt()(),ne(4,1)),i&2&&(G("mdc-list-item--disabled",r.disabled),pi("id",r._labelId),g(2),fe("",r.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));font-size:var(--mat-optgroup-label-text-size, var(--mat-sys-title-small-size));letter-spacing:var(--mat-optgroup-label-text-tracking, var(--mat-sys-title-small-tracking));font-weight:var(--mat-optgroup-label-text-weight, var(--mat-sys-title-small-weight))}.mat-mdc-optgroup-label{display:flex;position:relative;align-items:center;justify-content:flex-start;overflow:hidden;min-height:48px;padding:0 16px;outline:none}.mat-mdc-optgroup-label.mdc-list-item--disabled{opacity:.38}.mat-mdc-optgroup-label .mdc-list-item__primary-text{font-size:inherit;font-weight:inherit;letter-spacing:inherit;line-height:inherit;font-family:inherit;text-decoration:inherit;text-transform:inherit;white-space:normal;color:inherit} +`],encapsulation:2,changeDetection:0})}return t})(),lh=class{source;isUserInput;constructor(n,e=!1){this.source=n,this.isUserInput=e}},Sn=(()=>{class t{_element=u(Y);_changeDetectorRef=u(ye);_parent=u(ru,{optional:!0});group=u(ou,{optional:!0});_signalDisableRipple=!1;_selected=!1;_active=!1;_mostRecentViewValue="";get multiple(){return this._parent&&this._parent.multiple}get selected(){return this._selected}value;id=u(et).getId("mat-option-");get disabled(){return this.group&&this.group.disabled||this._disabled()}set disabled(e){this._disabled.set(e)}_disabled=he(!1);get disableRipple(){return this._signalDisableRipple?this._parent.disableRipple():!!this._parent?.disableRipple}get hideSingleSelectionIndicator(){return!!(this._parent&&this._parent.hideSingleSelectionIndicator)}onSelectionChange=new U;_text;_stateChanges=new z;constructor(){let e=u(ft);e.load(Oi),e.load(ro),this._signalDisableRipple=!!this._parent&&bs(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,i){let r=this._getHostElement();typeof r.focus=="function"&&r.focus(i)}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)&&!Gt(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 lh(this,e))}static \u0275fac=function(i){return new(i||t)};static \u0275cmp=E({type:t,selectors:[["mat-option"]],viewQuery:function(i,r){if(i&1&&ie(kZ,7),i&2){let o;j(o=H())&&(r._text=o.first)}},hostAttrs:["role","option",1,"mat-mdc-option","mdc-list-item"],hostVars:11,hostBindings:function(i,r){i&1&&S("click",function(){return r._selectViaInteraction()})("keydown",function(a){return r._handleKeydown(a)}),i&2&&(pi("id",r.id),X("aria-selected",r.selected)("aria-disabled",r.disabled.toString()),G("mdc-list-item--selected",r.selected)("mat-mdc-option-multiple",r.multiple)("mat-mdc-option-active",r.active)("mdc-list-item--disabled",r.disabled))},inputs:{value:"value",id:"id",disabled:[2,"disabled","disabled",L]},outputs:{onSelectionChange:"onSelectionChange"},exportAs:["matOption"],ngContentSelectors:IZ,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(i,r){i&1&&(Ee(TZ),V(0,AZ,1,2,"mat-pseudo-checkbox",1),ne(1),m(2,"span",2,0),ne(4,1),h(),V(5,OZ,1,1,"mat-pseudo-checkbox",3),V(6,RZ,2,1,"span",4),M(7,"div",5)),i&2&&(B(r.multiple?0:-1),g(5),B(!r.multiple&&r.selected&&!r.hideSingleSelectionIndicator?5:-1),g(),B(r.group&&r.group._inert?6:-1),g(),v("matRippleTrigger",r._getHostElement())("matRippleDisabled",r.disabled||r.disableRipple))},dependencies:[nu,qn],styles:[`.mat-mdc-option{-webkit-user-select:none;user-select:none;-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;display:flex;position:relative;align-items:center;justify-content:flex-start;overflow:hidden;min-height:48px;padding:0 16px;cursor:pointer;-webkit-tap-highlight-color:rgba(0,0,0,0);color:var(--mat-option-label-text-color, var(--mat-sys-on-surface));font-family:var(--mat-option-label-text-font, var(--mat-sys-label-large-font));line-height:var(--mat-option-label-text-line-height, var(--mat-sys-label-large-line-height));font-size:var(--mat-option-label-text-size, var(--mat-sys-body-large-size));letter-spacing:var(--mat-option-label-text-tracking, var(--mat-sys-label-large-tracking));font-weight:var(--mat-option-label-text-weight, var(--mat-sys-body-large-weight))}.mat-mdc-option:hover:not(.mdc-list-item--disabled){background-color:var(--mat-option-hover-state-layer-color, color-mix(in srgb, var(--mat-sys-on-surface) calc(var(--mat-sys-hover-state-layer-opacity) * 100%), transparent))}.mat-mdc-option:focus.mdc-list-item,.mat-mdc-option.mat-mdc-option-active.mdc-list-item{background-color:var(--mat-option-focus-state-layer-color, color-mix(in srgb, var(--mat-sys-on-surface) calc(var(--mat-sys-focus-state-layer-opacity) * 100%), transparent));outline:0}.mat-mdc-option.mdc-list-item--selected:not(.mdc-list-item--disabled):not(.mat-mdc-option-multiple){background-color:var(--mat-option-selected-state-layer-color, var(--mat-sys-secondary-container))}.mat-mdc-option.mdc-list-item--selected:not(.mdc-list-item--disabled):not(.mat-mdc-option-multiple) .mdc-list-item__primary-text{color:var(--mat-option-selected-state-label-text-color, var(--mat-sys-on-secondary-container))}.mat-mdc-option .mat-pseudo-checkbox{--mat-pseudo-checkbox-minimal-selected-checkmark-color: var(--mat-option-selected-state-label-text-color, var(--mat-sys-on-secondary-container))}.mat-mdc-option.mdc-list-item{align-items:center;background:rgba(0,0,0,0)}.mat-mdc-option.mdc-list-item--disabled{cursor:default;pointer-events:none}.mat-mdc-option.mdc-list-item--disabled .mat-mdc-option-pseudo-checkbox,.mat-mdc-option.mdc-list-item--disabled .mdc-list-item__primary-text,.mat-mdc-option.mdc-list-item--disabled>mat-icon{opacity:.38}.mat-mdc-optgroup .mat-mdc-option:not(.mat-mdc-option-multiple){padding-left:32px}[dir=rtl] .mat-mdc-optgroup .mat-mdc-option:not(.mat-mdc-option-multiple){padding-left:16px;padding-right:32px}.mat-mdc-option .mat-icon,.mat-mdc-option .mat-pseudo-checkbox-full{margin-right:16px;flex-shrink:0}[dir=rtl] .mat-mdc-option .mat-icon,[dir=rtl] .mat-mdc-option .mat-pseudo-checkbox-full{margin-right:0;margin-left:16px}.mat-mdc-option .mat-pseudo-checkbox-minimal{margin-left:16px;flex-shrink:0}[dir=rtl] .mat-mdc-option .mat-pseudo-checkbox-minimal{margin-right:16px;margin-left:0}.mat-mdc-option .mat-mdc-option-ripple{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none}.mat-mdc-option .mdc-list-item__primary-text{white-space:normal;font-size:inherit;font-weight:inherit;letter-spacing:inherit;line-height:inherit;font-family:inherit;text-decoration:inherit;text-transform:inherit;margin-right:auto}[dir=rtl] .mat-mdc-option .mdc-list-item__primary-text{margin-right:0;margin-left:auto}@media(forced-colors: active){.mat-mdc-option.mdc-list-item--selected:not(:has(.mat-mdc-option-pseudo-checkbox))::after{content:"";position:absolute;top:50%;right:16px;transform:translateY(-50%);width:10px;height:0;border-bottom:solid 10px;border-radius:10px}[dir=rtl] .mat-mdc-option.mdc-list-item--selected:not(:has(.mat-mdc-option-pseudo-checkbox))::after{right:auto;left:16px}}.mat-mdc-option-multiple{--mat-list-list-item-selected-container-color: var(--mat-list-list-item-container-color, transparent)}.mat-mdc-option-active .mat-focus-indicator::before{content:""} +`],encapsulation:2,changeDetection:0})}return t})();function tg(t,n,e){if(e.length){let i=n.toArray(),r=e.toArray(),o=0;for(let a=0;ae+i?Math.max(0,t-i+n):e}var ch=(()=>{class t{static \u0275fac=function(i){return new(i||t)};static \u0275mod=ee({type:t});static \u0275inj=J({imports:[Io,De,ey,Sn]})}return t})();var PZ={capture:!0},FZ=["focus","mousedown","mouseenter","touchstart"],FS="mat-ripple-loader-uninitialized",NS="mat-ripple-loader-class-name",tV="mat-ripple-loader-centered",ty="mat-ripple-loader-disabled",iy=(()=>{class t{_document=u(_e);_animationsDisabled=Qe();_globalRippleOptions=u(Vs,{optional:!0});_platform=u(Ye);_ngZone=u(ae);_injector=u(de);_eventCleanups;_hosts=new Map;constructor(){let e=u(hn).createRenderer(null,null);this._eventCleanups=this._ngZone.runOutsideAngular(()=>FZ.map(i=>e.listen(this._document,i,this._onInteraction,PZ)))}ngOnDestroy(){let e=this._hosts.keys();for(let i of e)this.destroyRipple(i);this._eventCleanups.forEach(i=>i())}configureRipple(e,i){e.setAttribute(FS,this._globalRippleOptions?.namespace??""),(i.className||!e.hasAttribute(NS))&&e.setAttribute(NS,i.className||""),i.centered&&e.setAttribute(tV,""),i.disabled&&e.setAttribute(ty,"")}setDisabled(e,i){let r=this._hosts.get(e);r?(r.target.rippleDisabled=i,!i&&!r.hasSetUpEvents&&(r.hasSetUpEvents=!0,r.renderer.setupTriggerEvents(e))):i?e.setAttribute(ty,""):e.removeAttribute(ty)}_onInteraction=e=>{let i=or(e);if(i instanceof HTMLElement){let r=i.closest(`[${FS}="${this._globalRippleOptions?.namespace??""}"]`);r&&this._createRipple(r)}};_createRipple(e){if(!this._document||this._hosts.has(e))return;e.querySelector(".mat-ripple")?.remove();let i=this._document.createElement("span");i.classList.add("mat-ripple",e.getAttribute(NS)),e.append(i);let r=this._globalRippleOptions,o=this._animationsDisabled?0:r?.animation?.enterDuration??sh.enterDuration,a=this._animationsDisabled?0:r?.animation?.exitDuration??sh.exitDuration,s={rippleDisabled:this._animationsDisabled||r?.disabled||e.hasAttribute(ty),rippleConfig:{centered:e.hasAttribute(tV),terminateOnPointerUp:r?.terminateOnPointerUp,animation:{enterDuration:o,exitDuration:a}}},l=new Ec(s,this._ngZone,i,this._platform,this._injector),c=!s.rippleDisabled;c&&l.setupTriggerEvents(e),this._hosts.set(e,{target:s,renderer:l,hasSetUpEvents:c}),e.removeAttribute(FS)}destroyRipple(e){let i=this._hosts.get(e);i&&(i.renderer._removeTriggerEvents(),this._hosts.delete(e))}static \u0275fac=function(i){return new(i||t)};static \u0275prov=R({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();var NZ=/^\d{4}-\d{2}-\d{2}(?:T\d{2}:\d{2}:\d{2}(?:\.\d+)?(?:Z|(?:(?:\+|-)\d{2}:\d{2}))?)?$/,LZ=/^(\d?\d)[:.](\d?\d)(?:[:.](\d?\d))?\s*(AM|PM)?$/i;function LS(t,n){let e=Array(t);for(let i=0;i{class t extends Wi{useUtcForDisplay=!1;_matDateLocale=u(Ns,{optional:!0});constructor(){super();let e=u(Ns,{optional:!0});e!==void 0&&(this._matDateLocale=e),super.setLocale(this._matDateLocale)}getYear(e){return e.getFullYear()}getMonth(e){return e.getMonth()}getDate(e){return e.getDate()}getDayOfWeek(e){return e.getDay()}getMonthNames(e){let i=new Intl.DateTimeFormat(this.locale,{month:e,timeZone:"utc"});return LS(12,r=>this._format(i,new Date(2017,r,1)))}getDateNames(){let e=new Intl.DateTimeFormat(this.locale,{day:"numeric",timeZone:"utc"});return LS(31,i=>this._format(e,new Date(2017,0,i+1)))}getDayOfWeekNames(e){let i=new Intl.DateTimeFormat(this.locale,{weekday:e,timeZone:"utc"});return LS(7,r=>this._format(i,new Date(2017,0,r+1)))}getYearName(e){let i=new Intl.DateTimeFormat(this.locale,{year:"numeric",timeZone:"utc"});return this._format(i,e)}getFirstDayOfWeek(){if(typeof Intl<"u"&&Intl.Locale){let e=new Intl.Locale(this.locale),i=(e.getWeekInfo?.()||e.weekInfo)?.firstDay??0;return i===7?0:i}return 0}getNumDaysInMonth(e){return this.getDate(this._createDateWithOverflow(this.getYear(e),this.getMonth(e)+1,0))}clone(e){return new Date(e.getTime())}createDate(e,i,r){let o=this._createDateWithOverflow(e,i,r);return o.getMonth()!=i,o}today(){return new Date}parse(e,i){return typeof e=="number"?new Date(e):e?new Date(Date.parse(e)):null}format(e,i){if(!this.isValid(e))throw Error("NativeDateAdapter: Cannot format invalid date.");let r=new Intl.DateTimeFormat(this.locale,Me(I({},i),{timeZone:"utc"}));return this._format(r,e)}addCalendarYears(e,i){return this.addCalendarMonths(e,i*12)}addCalendarMonths(e,i){let r=this._createDateWithOverflow(this.getYear(e),this.getMonth(e)+i,this.getDate(e));return this.getMonth(r)!=((this.getMonth(e)+i)%12+12)%12&&(r=this._createDateWithOverflow(this.getYear(r),this.getMonth(r),0)),r}addCalendarDays(e,i){return this._createDateWithOverflow(this.getYear(e),this.getMonth(e),this.getDate(e)+i)}toIso8601(e){return[e.getUTCFullYear(),this._2digit(e.getUTCMonth()+1),this._2digit(e.getUTCDate())].join("-")}deserialize(e){if(typeof e=="string"){if(!e)return null;if(NZ.test(e)){let i=new Date(e);if(this.isValid(i))return i}}return super.deserialize(e)}isDateInstance(e){return e instanceof Date}isValid(e){return!isNaN(e.getTime())}invalid(){return new Date(NaN)}setTime(e,i,r,o){let a=this.clone(e);return a.setHours(i,r,o,0),a}getHours(e){return e.getHours()}getMinutes(e){return e.getMinutes()}getSeconds(e){return e.getSeconds()}parseTime(e,i){if(typeof e!="string")return e instanceof Date?new Date(e.getTime()):null;let r=e.trim();if(r.length===0)return null;let o=this._parseTimeString(r);if(o===null){let a=r.replace(/[^0-9:(AM|PM)]/gi,"").trim();a.length>0&&(o=this._parseTimeString(a))}return o||this.invalid()}addSeconds(e,i){return new Date(e.getTime()+i*1e3)}_createDateWithOverflow(e,i,r){let o=new Date;return o.setFullYear(e,i,r),o.setHours(0,0,0,0),o}_2digit(e){return("00"+e).slice(-2)}_format(e,i){let r=new Date;return r.setUTCFullYear(i.getFullYear(),i.getMonth(),i.getDate()),r.setUTCHours(i.getHours(),i.getMinutes(),i.getSeconds(),i.getMilliseconds()),e.format(r)}_parseTimeString(e){let i=e.toUpperCase().match(LZ);if(i){let r=parseInt(i[1]),o=parseInt(i[2]),a=i[3]==null?void 0:parseInt(i[3]),s=i[4];if(r===12?r=s==="AM"?0:r:s==="PM"&&(r+=12),VS(r,0,23)&&VS(o,0,59)&&(a==null||VS(a,0,59)))return this.setTime(this.today(),r,o,a||0)}return null}static \u0275fac=function(i){return new(i||t)};static \u0275prov=R({token:t,factory:t.\u0275fac})}return t})();function VS(t,n,e){return!isNaN(t)&&t>=n&&t<=e}var VZ={parse:{dateInput:null,timeInput:null},display:{dateInput:{year:"numeric",month:"numeric",day:"numeric"},timeInput:{hour:"numeric",minute:"numeric"},monthYearLabel:{year:"numeric",month:"short"},dateA11yLabel:{year:"numeric",month:"long",day:"numeric"},monthYearA11yLabel:{year:"numeric",month:"long"},timeOptionLabel:{hour:"numeric",minute:"numeric"}}};var nV=(()=>{class t{static \u0275fac=function(i){return new(i||t)};static \u0275mod=ee({type:t});static \u0275inj=J({providers:[BZ()]})}return t})();function BZ(t=VZ){return[{provide:Wi,useClass:iV},{provide:Ls,useValue:t}]}var jZ=Math.pow(10,8)*24*60*60*1e3,Y4e=-jZ,ny=6048e5,oV=864e5,au=6e4,su=36e5,aV=1e3;var HZ=3600;var sV=HZ*24,Q4e=sV*7,zZ=sV*365.2425,UZ=zZ/12,K4e=UZ*3,BS=Symbol.for("constructDateFrom");function ct(t,n){return typeof t=="function"?t(n):t&&typeof t=="object"&&BS in t?t[BS](n):t instanceof Date?new t.constructor(n):new Date(n)}function Ie(t,n){return ct(n||t,t)}function dh(t,n,e){let i=Ie(t,e?.in);return isNaN(n)?ct(e?.in||t,NaN):(n&&i.setDate(i.getDate()+n),i)}function uh(t,n,e){let i=Ie(t,e?.in);if(isNaN(n))return ct(e?.in||t,NaN);if(!n)return i;let r=i.getDate(),o=ct(e?.in||t,i.getTime());o.setMonth(i.getMonth()+n+1,0);let a=o.getDate();return r>=a?o:(i.setFullYear(o.getFullYear(),o.getMonth(),r),i)}function ry(t,n,e){return ct(e?.in||t,+Ie(t)+n)}function lV(t,n,e){return ry(t,n*su,e)}var $Z={};function ta(){return $Z}function ar(t,n){let e=ta(),i=n?.weekStartsOn??n?.locale?.options?.weekStartsOn??e.weekStartsOn??e.locale?.options?.weekStartsOn??0,r=Ie(t,n?.in),o=r.getDay(),a=(o=o.getTime()?i+1:e.getTime()>=s.getTime()?i:i-1}function lu(t){let n=Ie(t),e=new Date(Date.UTC(n.getFullYear(),n.getMonth(),n.getDate(),n.getHours(),n.getMinutes(),n.getSeconds(),n.getMilliseconds()));return e.setUTCFullYear(n.getFullYear()),+t-+e}function ay(t,...n){let e=ct.bind(null,t||n.find(i=>typeof i=="object"));return n.map(e)}function jS(t,n){let e=Ie(t,n?.in);return e.setHours(0,0,0,0),e}function cV(t,n,e){let[i,r]=ay(e?.in,t,n),o=jS(i),a=jS(r),s=+o-lu(o),l=+a-lu(a);return Math.round((s-l)/oV)}function dV(t,n){let e=oy(t,n),i=ct(n?.in||t,0);return i.setFullYear(e,0,4),i.setHours(0,0,0,0),Ya(i)}function uV(t,n,e){let i=Ie(t,e?.in);return i.setTime(i.getTime()+n*au),i}function mV(t,n,e){return ry(t,n*1e3,e)}function hV(t,n,e){return uh(t,n*12,e)}function sy(t){return t instanceof Date||typeof t=="object"&&Object.prototype.toString.call(t)==="[object Date]"}function mh(t){return!(!sy(t)&&typeof t!="number"||isNaN(+Ie(t)))}function pV(t,n){let e=Ie(t,n?.in);return e.setDate(1),e.setHours(0,0,0,0),e}function fV(t,n){let e=Ie(t,n?.in);return e.setFullYear(e.getFullYear(),0,1),e.setHours(0,0,0,0),e}var WZ={lessThanXSeconds:{one:"less than a second",other:"less than {{count}} seconds"},xSeconds:{one:"1 second",other:"{{count}} seconds"},halfAMinute:"half a minute",lessThanXMinutes:{one:"less than a minute",other:"less than {{count}} minutes"},xMinutes:{one:"1 minute",other:"{{count}} minutes"},aboutXHours:{one:"about 1 hour",other:"about {{count}} hours"},xHours:{one:"1 hour",other:"{{count}} hours"},xDays:{one:"1 day",other:"{{count}} days"},aboutXWeeks:{one:"about 1 week",other:"about {{count}} weeks"},xWeeks:{one:"1 week",other:"{{count}} weeks"},aboutXMonths:{one:"about 1 month",other:"about {{count}} months"},xMonths:{one:"1 month",other:"{{count}} months"},aboutXYears:{one:"about 1 year",other:"about {{count}} years"},xYears:{one:"1 year",other:"{{count}} years"},overXYears:{one:"over 1 year",other:"over {{count}} years"},almostXYears:{one:"almost 1 year",other:"almost {{count}} years"}},gV=(t,n,e)=>{let i,r=WZ[t];return typeof r=="string"?i=r:n===1?i=r.one:i=r.other.replace("{{count}}",n.toString()),e?.addSuffix?e.comparison&&e.comparison>0?"in "+i:i+" ago":i};function ia(t){return(n={})=>{let e=n.width?String(n.width):t.defaultWidth;return t.formats[e]||t.formats[t.defaultWidth]}}var GZ={full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},qZ={full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},YZ={full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},_V={date:ia({formats:GZ,defaultWidth:"full"}),time:ia({formats:qZ,defaultWidth:"full"}),dateTime:ia({formats:YZ,defaultWidth:"full"})};var QZ={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"},bV=(t,n,e,i)=>QZ[t];function Yn(t){return(n,e)=>{let i=e?.context?String(e.context):"standalone",r;if(i==="formatting"&&t.formattingValues){let a=t.defaultFormattingWidth||t.defaultWidth,s=e?.width?String(e.width):a;r=t.formattingValues[s]||t.formattingValues[a]}else{let a=t.defaultWidth,s=e?.width?String(e.width):t.defaultWidth;r=t.values[s]||t.values[a]}let o=t.argumentCallback?t.argumentCallback(n):n;return r[o]}}var KZ={narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},ZZ={narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},XZ={narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],wide:["January","February","March","April","May","June","July","August","September","October","November","December"]},JZ={narrow:["S","M","T","W","T","F","S"],short:["Su","Mo","Tu","We","Th","Fr","Sa"],abbreviated:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],wide:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},eX={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"}},tX={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"}},iX=(t,n)=>{let e=Number(t),i=e%100;if(i>20||i<10)switch(i%10){case 1:return e+"st";case 2:return e+"nd";case 3:return e+"rd"}return e+"th"},vV={ordinalNumber:iX,era:Yn({values:KZ,defaultWidth:"wide"}),quarter:Yn({values:ZZ,defaultWidth:"wide",argumentCallback:t=>t-1}),month:Yn({values:XZ,defaultWidth:"wide"}),day:Yn({values:JZ,defaultWidth:"wide"}),dayPeriod:Yn({values:eX,defaultWidth:"wide",formattingValues:tX,defaultFormattingWidth:"wide"})};function Qn(t){return(n,e={})=>{let i=e.width,r=i&&t.matchPatterns[i]||t.matchPatterns[t.defaultMatchWidth],o=n.match(r);if(!o)return null;let a=o[0],s=i&&t.parsePatterns[i]||t.parsePatterns[t.defaultParseWidth],l=Array.isArray(s)?rX(s,p=>p.test(a)):nX(s,p=>p.test(a)),c;c=t.valueCallback?t.valueCallback(l):l,c=e.valueCallback?e.valueCallback(c):c;let d=n.slice(a.length);return{value:c,rest:d}}}function nX(t,n){for(let e in t)if(Object.prototype.hasOwnProperty.call(t,e)&&n(t[e]))return e}function rX(t,n){for(let e=0;e{let i=n.match(t.matchPattern);if(!i)return null;let r=i[0],o=n.match(t.parsePattern);if(!o)return null;let a=t.valueCallback?t.valueCallback(o[0]):o[0];a=e.valueCallback?e.valueCallback(a):a;let s=n.slice(r.length);return{value:a,rest:s}}}var oX=/^(\d+)(th|st|nd|rd)?/i,aX=/\d+/i,sX={narrow:/^(b|a)/i,abbreviated:/^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,wide:/^(before christ|before common era|anno domini|common era)/i},lX={any:[/^b/i,/^(a|c)/i]},cX={narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},dX={any:[/1/i,/2/i,/3/i,/4/i]},uX={narrow:/^[jfmasond]/i,abbreviated:/^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,wide:/^(january|february|march|april|may|june|july|august|september|october|november|december)/i},mX={narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ap/i,/^may/i,/^jun/i,/^jul/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},hX={narrow:/^[smtwf]/i,short:/^(su|mo|tu|we|th|fr|sa)/i,abbreviated:/^(sun|mon|tue|wed|thu|fri|sat)/i,wide:/^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i},pX={narrow:[/^s/i,/^m/i,/^t/i,/^w/i,/^t/i,/^f/i,/^s/i],any:[/^su/i,/^m/i,/^tu/i,/^w/i,/^th/i,/^f/i,/^sa/i]},fX={narrow:/^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,any:/^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i},gX={any:{am:/^a/i,pm:/^p/i,midnight:/^mi/i,noon:/^no/i,morning:/morning/i,afternoon:/afternoon/i,evening:/evening/i,night:/night/i}},yV={ordinalNumber:hh({matchPattern:oX,parsePattern:aX,valueCallback:t=>parseInt(t,10)}),era:Qn({matchPatterns:sX,defaultMatchWidth:"wide",parsePatterns:lX,defaultParseWidth:"any"}),quarter:Qn({matchPatterns:cX,defaultMatchWidth:"wide",parsePatterns:dX,defaultParseWidth:"any",valueCallback:t=>t+1}),month:Qn({matchPatterns:uX,defaultMatchWidth:"wide",parsePatterns:mX,defaultParseWidth:"any"}),day:Qn({matchPatterns:hX,defaultMatchWidth:"wide",parsePatterns:pX,defaultParseWidth:"any"}),dayPeriod:Qn({matchPatterns:fX,defaultMatchWidth:"any",parsePatterns:gX,defaultParseWidth:"any"})};var cu={code:"en-US",formatDistance:gV,formatLong:_V,formatRelative:bV,localize:vV,match:yV,options:{weekStartsOn:0,firstWeekContainsDate:1}};function xV(t,n){let e=Ie(t,n?.in);return cV(e,fV(e))+1}function ly(t,n){let e=Ie(t,n?.in),i=+Ya(e)-+dV(e);return Math.round(i/ny)+1}function ph(t,n){let e=Ie(t,n?.in),i=e.getFullYear(),r=ta(),o=n?.firstWeekContainsDate??n?.locale?.options?.firstWeekContainsDate??r.firstWeekContainsDate??r.locale?.options?.firstWeekContainsDate??1,a=ct(n?.in||t,0);a.setFullYear(i+1,0,o),a.setHours(0,0,0,0);let s=ar(a,n),l=ct(n?.in||t,0);l.setFullYear(i,0,o),l.setHours(0,0,0,0);let c=ar(l,n);return+e>=+s?i+1:+e>=+c?i:i-1}function CV(t,n){let e=ta(),i=n?.firstWeekContainsDate??n?.locale?.options?.firstWeekContainsDate??e.firstWeekContainsDate??e.locale?.options?.firstWeekContainsDate??1,r=ph(t,n),o=ct(n?.in||t,0);return o.setFullYear(r,0,i),o.setHours(0,0,0,0),ar(o,n)}function fh(t,n){let e=Ie(t,n?.in),i=+ar(e,n)-+CV(e,n);return Math.round(i/ny)+1}function St(t,n){let e=t<0?"-":"",i=Math.abs(t).toString().padStart(n,"0");return e+i}var Tl={y(t,n){let e=t.getFullYear(),i=e>0?e:1-e;return St(n==="yy"?i%100:i,n.length)},M(t,n){let e=t.getMonth();return n==="M"?String(e+1):St(e+1,2)},d(t,n){return St(t.getDate(),n.length)},a(t,n){let e=t.getHours()/12>=1?"pm":"am";switch(n){case"a":case"aa":return e.toUpperCase();case"aaa":return e;case"aaaaa":return e[0];case"aaaa":default:return e==="am"?"a.m.":"p.m."}},h(t,n){return St(t.getHours()%12||12,n.length)},H(t,n){return St(t.getHours(),n.length)},m(t,n){return St(t.getMinutes(),n.length)},s(t,n){return St(t.getSeconds(),n.length)},S(t,n){let e=n.length,i=t.getMilliseconds(),r=Math.trunc(i*Math.pow(10,e-3));return St(r,n.length)}};var gh={am:"am",pm:"pm",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},HS={G:function(t,n,e){let i=t.getFullYear()>0?1:0;switch(n){case"G":case"GG":case"GGG":return e.era(i,{width:"abbreviated"});case"GGGGG":return e.era(i,{width:"narrow"});case"GGGG":default:return e.era(i,{width:"wide"})}},y:function(t,n,e){if(n==="yo"){let i=t.getFullYear(),r=i>0?i:1-i;return e.ordinalNumber(r,{unit:"year"})}return Tl.y(t,n)},Y:function(t,n,e,i){let r=ph(t,i),o=r>0?r:1-r;if(n==="YY"){let a=o%100;return St(a,2)}return n==="Yo"?e.ordinalNumber(o,{unit:"year"}):St(o,n.length)},R:function(t,n){let e=oy(t);return St(e,n.length)},u:function(t,n){let e=t.getFullYear();return St(e,n.length)},Q:function(t,n,e){let i=Math.ceil((t.getMonth()+1)/3);switch(n){case"Q":return String(i);case"QQ":return St(i,2);case"Qo":return e.ordinalNumber(i,{unit:"quarter"});case"QQQ":return e.quarter(i,{width:"abbreviated",context:"formatting"});case"QQQQQ":return e.quarter(i,{width:"narrow",context:"formatting"});case"QQQQ":default:return e.quarter(i,{width:"wide",context:"formatting"})}},q:function(t,n,e){let i=Math.ceil((t.getMonth()+1)/3);switch(n){case"q":return String(i);case"qq":return St(i,2);case"qo":return e.ordinalNumber(i,{unit:"quarter"});case"qqq":return e.quarter(i,{width:"abbreviated",context:"standalone"});case"qqqqq":return e.quarter(i,{width:"narrow",context:"standalone"});case"qqqq":default:return e.quarter(i,{width:"wide",context:"standalone"})}},M:function(t,n,e){let i=t.getMonth();switch(n){case"M":case"MM":return Tl.M(t,n);case"Mo":return e.ordinalNumber(i+1,{unit:"month"});case"MMM":return e.month(i,{width:"abbreviated",context:"formatting"});case"MMMMM":return e.month(i,{width:"narrow",context:"formatting"});case"MMMM":default:return e.month(i,{width:"wide",context:"formatting"})}},L:function(t,n,e){let i=t.getMonth();switch(n){case"L":return String(i+1);case"LL":return St(i+1,2);case"Lo":return e.ordinalNumber(i+1,{unit:"month"});case"LLL":return e.month(i,{width:"abbreviated",context:"standalone"});case"LLLLL":return e.month(i,{width:"narrow",context:"standalone"});case"LLLL":default:return e.month(i,{width:"wide",context:"standalone"})}},w:function(t,n,e,i){let r=fh(t,i);return n==="wo"?e.ordinalNumber(r,{unit:"week"}):St(r,n.length)},I:function(t,n,e){let i=ly(t);return n==="Io"?e.ordinalNumber(i,{unit:"week"}):St(i,n.length)},d:function(t,n,e){return n==="do"?e.ordinalNumber(t.getDate(),{unit:"date"}):Tl.d(t,n)},D:function(t,n,e){let i=xV(t);return n==="Do"?e.ordinalNumber(i,{unit:"dayOfYear"}):St(i,n.length)},E:function(t,n,e){let i=t.getDay();switch(n){case"E":case"EE":case"EEE":return e.day(i,{width:"abbreviated",context:"formatting"});case"EEEEE":return e.day(i,{width:"narrow",context:"formatting"});case"EEEEEE":return e.day(i,{width:"short",context:"formatting"});case"EEEE":default:return e.day(i,{width:"wide",context:"formatting"})}},e:function(t,n,e,i){let r=t.getDay(),o=(r-i.weekStartsOn+8)%7||7;switch(n){case"e":return String(o);case"ee":return St(o,2);case"eo":return e.ordinalNumber(o,{unit:"day"});case"eee":return e.day(r,{width:"abbreviated",context:"formatting"});case"eeeee":return e.day(r,{width:"narrow",context:"formatting"});case"eeeeee":return e.day(r,{width:"short",context:"formatting"});case"eeee":default:return e.day(r,{width:"wide",context:"formatting"})}},c:function(t,n,e,i){let r=t.getDay(),o=(r-i.weekStartsOn+8)%7||7;switch(n){case"c":return String(o);case"cc":return St(o,n.length);case"co":return e.ordinalNumber(o,{unit:"day"});case"ccc":return e.day(r,{width:"abbreviated",context:"standalone"});case"ccccc":return e.day(r,{width:"narrow",context:"standalone"});case"cccccc":return e.day(r,{width:"short",context:"standalone"});case"cccc":default:return e.day(r,{width:"wide",context:"standalone"})}},i:function(t,n,e){let i=t.getDay(),r=i===0?7:i;switch(n){case"i":return String(r);case"ii":return St(r,n.length);case"io":return e.ordinalNumber(r,{unit:"day"});case"iii":return e.day(i,{width:"abbreviated",context:"formatting"});case"iiiii":return e.day(i,{width:"narrow",context:"formatting"});case"iiiiii":return e.day(i,{width:"short",context:"formatting"});case"iiii":default:return e.day(i,{width:"wide",context:"formatting"})}},a:function(t,n,e){let r=t.getHours()/12>=1?"pm":"am";switch(n){case"a":case"aa":return e.dayPeriod(r,{width:"abbreviated",context:"formatting"});case"aaa":return e.dayPeriod(r,{width:"abbreviated",context:"formatting"}).toLowerCase();case"aaaaa":return e.dayPeriod(r,{width:"narrow",context:"formatting"});case"aaaa":default:return e.dayPeriod(r,{width:"wide",context:"formatting"})}},b:function(t,n,e){let i=t.getHours(),r;switch(i===12?r=gh.noon:i===0?r=gh.midnight:r=i/12>=1?"pm":"am",n){case"b":case"bb":return e.dayPeriod(r,{width:"abbreviated",context:"formatting"});case"bbb":return e.dayPeriod(r,{width:"abbreviated",context:"formatting"}).toLowerCase();case"bbbbb":return e.dayPeriod(r,{width:"narrow",context:"formatting"});case"bbbb":default:return e.dayPeriod(r,{width:"wide",context:"formatting"})}},B:function(t,n,e){let i=t.getHours(),r;switch(i>=17?r=gh.evening:i>=12?r=gh.afternoon:i>=4?r=gh.morning:r=gh.night,n){case"B":case"BB":case"BBB":return e.dayPeriod(r,{width:"abbreviated",context:"formatting"});case"BBBBB":return e.dayPeriod(r,{width:"narrow",context:"formatting"});case"BBBB":default:return e.dayPeriod(r,{width:"wide",context:"formatting"})}},h:function(t,n,e){if(n==="ho"){let i=t.getHours()%12;return i===0&&(i=12),e.ordinalNumber(i,{unit:"hour"})}return Tl.h(t,n)},H:function(t,n,e){return n==="Ho"?e.ordinalNumber(t.getHours(),{unit:"hour"}):Tl.H(t,n)},K:function(t,n,e){let i=t.getHours()%12;return n==="Ko"?e.ordinalNumber(i,{unit:"hour"}):St(i,n.length)},k:function(t,n,e){let i=t.getHours();return i===0&&(i=24),n==="ko"?e.ordinalNumber(i,{unit:"hour"}):St(i,n.length)},m:function(t,n,e){return n==="mo"?e.ordinalNumber(t.getMinutes(),{unit:"minute"}):Tl.m(t,n)},s:function(t,n,e){return n==="so"?e.ordinalNumber(t.getSeconds(),{unit:"second"}):Tl.s(t,n)},S:function(t,n){return Tl.S(t,n)},X:function(t,n,e){let i=t.getTimezoneOffset();if(i===0)return"Z";switch(n){case"X":return DV(i);case"XXXX":case"XX":return du(i);case"XXXXX":case"XXX":default:return du(i,":")}},x:function(t,n,e){let i=t.getTimezoneOffset();switch(n){case"x":return DV(i);case"xxxx":case"xx":return du(i);case"xxxxx":case"xxx":default:return du(i,":")}},O:function(t,n,e){let i=t.getTimezoneOffset();switch(n){case"O":case"OO":case"OOO":return"GMT"+wV(i,":");case"OOOO":default:return"GMT"+du(i,":")}},z:function(t,n,e){let i=t.getTimezoneOffset();switch(n){case"z":case"zz":case"zzz":return"GMT"+wV(i,":");case"zzzz":default:return"GMT"+du(i,":")}},t:function(t,n,e){let i=Math.trunc(+t/1e3);return St(i,n.length)},T:function(t,n,e){return St(+t,n.length)}};function wV(t,n=""){let e=t>0?"-":"+",i=Math.abs(t),r=Math.trunc(i/60),o=i%60;return o===0?e+String(r):e+String(r)+n+St(o,2)}function DV(t,n){return t%60===0?(t>0?"-":"+")+St(Math.abs(t)/60,2):du(t,n)}function du(t,n=""){let e=t>0?"-":"+",i=Math.abs(t),r=St(Math.trunc(i/60),2),o=St(i%60,2);return e+r+n+o}var MV=(t,n)=>{switch(t){case"P":return n.date({width:"short"});case"PP":return n.date({width:"medium"});case"PPP":return n.date({width:"long"});case"PPPP":default:return n.date({width:"full"})}},EV=(t,n)=>{switch(t){case"p":return n.time({width:"short"});case"pp":return n.time({width:"medium"});case"ppp":return n.time({width:"long"});case"pppp":default:return n.time({width:"full"})}},_X=(t,n)=>{let e=t.match(/(P+)(p+)?/)||[],i=e[1],r=e[2];if(!r)return MV(t,n);let o;switch(i){case"P":o=n.dateTime({width:"short"});break;case"PP":o=n.dateTime({width:"medium"});break;case"PPP":o=n.dateTime({width:"long"});break;case"PPPP":default:o=n.dateTime({width:"full"});break}return o.replace("{{date}}",MV(i,n)).replace("{{time}}",EV(r,n))},ng={p:EV,P:_X};var bX=/^D+$/,vX=/^Y+$/,yX=["D","DD","YY","YYYY"];function cy(t){return bX.test(t)}function dy(t){return vX.test(t)}function rg(t,n,e){let i=xX(t,n,e);if(console.warn(i),yX.includes(t))throw new RangeError(i)}function xX(t,n,e){let i=t[0]==="Y"?"years":"days of the month";return`Use \`${t.toLowerCase()}\` instead of \`${t}\` (in \`${n}\`) for formatting ${i} to the input \`${e}\`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md`}var CX=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,wX=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,DX=/^'([^]*?)'?$/,MX=/''/g,EX=/[a-zA-Z]/;function SV(t,n,e){let i=ta(),r=e?.locale??i.locale??cu,o=e?.firstWeekContainsDate??e?.locale?.options?.firstWeekContainsDate??i.firstWeekContainsDate??i.locale?.options?.firstWeekContainsDate??1,a=e?.weekStartsOn??e?.locale?.options?.weekStartsOn??i.weekStartsOn??i.locale?.options?.weekStartsOn??0,s=Ie(t,e?.in);if(!mh(s))throw new RangeError("Invalid time value");let l=n.match(wX).map(d=>{let p=d[0];if(p==="p"||p==="P"){let _=ng[p];return _(d,r.formatLong)}return d}).join("").match(CX).map(d=>{if(d==="''")return{isToken:!1,value:"'"};let p=d[0];if(p==="'")return{isToken:!1,value:SX(d)};if(HS[p])return{isToken:!0,value:d};if(p.match(EX))throw new RangeError("Format string contains an unescaped latin alphabet character `"+p+"`");return{isToken:!1,value:d}});r.localize.preprocessor&&(l=r.localize.preprocessor(s,l));let c={firstWeekContainsDate:o,weekStartsOn:a,locale:r};return l.map(d=>{if(!d.isToken)return d.value;let p=d.value;(!e?.useAdditionalWeekYearTokens&&dy(p)||!e?.useAdditionalDayOfYearTokens&&cy(p))&&rg(p,n,String(t));let _=HS[p[0]];return _(s,p,r.localize,c)}).join("")}function SX(t){let n=t.match(DX);return n?n[1].replace(MX,"'"):t}function kV(t,n){let e=Ie(t,n?.in);if(isNaN(+e))throw new RangeError("Invalid time value");let i=n?.format??"extended",r=n?.representation??"complete",o="",a="",s=i==="extended"?"-":"",l=i==="extended"?":":"";if(r!=="time"){let c=St(e.getDate(),2),d=St(e.getMonth()+1,2);o=`${St(e.getFullYear(),4)}${s}${d}${s}${c}`}if(r!=="date"){let c=e.getTimezoneOffset();if(c!==0){let w=Math.abs(c),C=St(Math.trunc(w/60),2),D=St(w%60,2);a=`${c<0?"+":"-"}${C}:${D}`}else a="Z";let d=St(e.getHours(),2),p=St(e.getMinutes(),2),_=St(e.getSeconds(),2),b=o===""?"":"T",y=[d,p,_].join(l);o=`${o}${b}${y}${a}`}return o}function TV(t,n){return Ie(t,n?.in).getDate()}function IV(t,n){return Ie(t,n?.in).getDay()}function uy(t,n){let e=Ie(t,n?.in),i=e.getFullYear(),r=e.getMonth(),o=ct(e,0);return o.setFullYear(i,r+1,0),o.setHours(0,0,0,0),o.getDate()}function AV(){return Object.assign({},ta())}function my(t,n){return Ie(t,n?.in).getHours()}function OV(t,n){let e=Ie(t,n?.in).getDay();return e===0?7:e}function hy(t,n){return Ie(t,n?.in).getMinutes()}function RV(t,n){return Ie(t,n?.in).getMonth()}function PV(t){return Ie(t).getSeconds()}function FV(t,n){return Ie(t,n?.in).getFullYear()}function NV(t,n){let e=kX(n)?new n(0):ct(n,0);return e.setFullYear(t.getFullYear(),t.getMonth(),t.getDate()),e.setHours(t.getHours(),t.getMinutes(),t.getSeconds(),t.getMilliseconds()),e}function kX(t){return typeof t=="function"&&t.prototype?.constructor===t}var TX=10,py=class{subPriority=0;validate(n,e){return!0}},fy=class extends py{constructor(n,e,i,r,o){super(),this.value=n,this.validateValue=e,this.setValue=i,this.priority=r,o&&(this.subPriority=o)}validate(n,e){return this.validateValue(n,this.value,e)}set(n,e,i){return this.setValue(n,e,this.value,i)}},gy=class extends py{priority=TX;subPriority=-1;constructor(n,e){super(),this.context=n||(i=>ct(e,i))}set(n,e){return e.timestampIsSet?n:ct(n,NV(n,this.context))}};var Pe=class{run(n,e,i,r){let o=this.parse(n,e,i,r);return o?{setter:new fy(o.value,this.validate,this.set,this.priority,this.subPriority),rest:o.rest}:null}validate(n,e,i){return!0}};var _y=class extends Pe{priority=140;parse(n,e,i){switch(e){case"G":case"GG":case"GGG":return i.era(n,{width:"abbreviated"})||i.era(n,{width:"narrow"});case"GGGGG":return i.era(n,{width:"narrow"});case"GGGG":default:return i.era(n,{width:"wide"})||i.era(n,{width:"abbreviated"})||i.era(n,{width:"narrow"})}}set(n,e,i){return e.era=i,n.setFullYear(i,0,1),n.setHours(0,0,0,0),n}incompatibleTokens=["R","u","t","T"]};var Qt={month:/^(1[0-2]|0?\d)/,date:/^(3[0-1]|[0-2]?\d)/,dayOfYear:/^(36[0-6]|3[0-5]\d|[0-2]?\d?\d)/,week:/^(5[0-3]|[0-4]?\d)/,hour23h:/^(2[0-3]|[0-1]?\d)/,hour24h:/^(2[0-4]|[0-1]?\d)/,hour11h:/^(1[0-1]|0?\d)/,hour12h:/^(1[0-2]|0?\d)/,minute:/^[0-5]?\d/,second:/^[0-5]?\d/,singleDigit:/^\d/,twoDigits:/^\d{1,2}/,threeDigits:/^\d{1,3}/,fourDigits:/^\d{1,4}/,anyDigitsSigned:/^-?\d+/,singleDigitSigned:/^-?\d/,twoDigitsSigned:/^-?\d{1,2}/,threeDigitsSigned:/^-?\d{1,3}/,fourDigitsSigned:/^-?\d{1,4}/},na={basicOptionalMinutes:/^([+-])(\d{2})(\d{2})?|Z/,basic:/^([+-])(\d{2})(\d{2})|Z/,basicOptionalSeconds:/^([+-])(\d{2})(\d{2})((\d{2}))?|Z/,extended:/^([+-])(\d{2}):(\d{2})|Z/,extendedOptionalSeconds:/^([+-])(\d{2}):(\d{2})(:(\d{2}))?|Z/};function fi(t,n){return t&&{value:n(t.value),rest:t.rest}}function qt(t,n){let e=n.match(t);return e?{value:parseInt(e[0],10),rest:n.slice(e[0].length)}:null}function ra(t,n){let e=n.match(t);if(!e)return null;if(e[0]==="Z")return{value:0,rest:n.slice(1)};let i=e[1]==="+"?1:-1,r=e[2]?parseInt(e[2],10):0,o=e[3]?parseInt(e[3],10):0,a=e[5]?parseInt(e[5],10):0;return{value:i*(r*su+o*au+a*aV),rest:n.slice(e[0].length)}}function by(t){return qt(Qt.anyDigitsSigned,t)}function xt(t,n){switch(t){case 1:return qt(Qt.singleDigit,n);case 2:return qt(Qt.twoDigits,n);case 3:return qt(Qt.threeDigits,n);case 4:return qt(Qt.fourDigits,n);default:return qt(new RegExp("^\\d{1,"+t+"}"),n)}}function _h(t,n){switch(t){case 1:return qt(Qt.singleDigitSigned,n);case 2:return qt(Qt.twoDigitsSigned,n);case 3:return qt(Qt.threeDigitsSigned,n);case 4:return qt(Qt.fourDigitsSigned,n);default:return qt(new RegExp("^-?\\d{1,"+t+"}"),n)}}function bh(t){switch(t){case"morning":return 4;case"evening":return 17;case"pm":case"noon":case"afternoon":return 12;case"am":case"midnight":case"night":default:return 0}}function vy(t,n){let e=n>0,i=e?n:1-n,r;if(i<=50)r=t||100;else{let o=i+50,a=Math.trunc(o/100)*100,s=t>=o%100;r=t+a-(s?100:0)}return e?r:1-r}function yy(t){return t%400===0||t%4===0&&t%100!==0}var xy=class extends Pe{priority=130;incompatibleTokens=["Y","R","u","w","I","i","e","c","t","T"];parse(n,e,i){let r=o=>({year:o,isTwoDigitYear:e==="yy"});switch(e){case"y":return fi(xt(4,n),r);case"yo":return fi(i.ordinalNumber(n,{unit:"year"}),r);default:return fi(xt(e.length,n),r)}}validate(n,e){return e.isTwoDigitYear||e.year>0}set(n,e,i){let r=n.getFullYear();if(i.isTwoDigitYear){let a=vy(i.year,r);return n.setFullYear(a,0,1),n.setHours(0,0,0,0),n}let o=!("era"in e)||e.era===1?i.year:1-i.year;return n.setFullYear(o,0,1),n.setHours(0,0,0,0),n}};var Cy=class extends Pe{priority=130;parse(n,e,i){let r=o=>({year:o,isTwoDigitYear:e==="YY"});switch(e){case"Y":return fi(xt(4,n),r);case"Yo":return fi(i.ordinalNumber(n,{unit:"year"}),r);default:return fi(xt(e.length,n),r)}}validate(n,e){return e.isTwoDigitYear||e.year>0}set(n,e,i,r){let o=ph(n,r);if(i.isTwoDigitYear){let s=vy(i.year,o);return n.setFullYear(s,0,r.firstWeekContainsDate),n.setHours(0,0,0,0),ar(n,r)}let a=!("era"in e)||e.era===1?i.year:1-i.year;return n.setFullYear(a,0,r.firstWeekContainsDate),n.setHours(0,0,0,0),ar(n,r)}incompatibleTokens=["y","R","u","Q","q","M","L","I","d","D","i","t","T"]};var wy=class extends Pe{priority=130;parse(n,e){return e==="R"?_h(4,n):_h(e.length,n)}set(n,e,i){let r=ct(n,0);return r.setFullYear(i,0,4),r.setHours(0,0,0,0),Ya(r)}incompatibleTokens=["G","y","Y","u","Q","q","M","L","w","d","D","e","c","t","T"]};var Dy=class extends Pe{priority=130;parse(n,e){return e==="u"?_h(4,n):_h(e.length,n)}set(n,e,i){return n.setFullYear(i,0,1),n.setHours(0,0,0,0),n}incompatibleTokens=["G","y","Y","R","w","I","i","e","c","t","T"]};var My=class extends Pe{priority=120;parse(n,e,i){switch(e){case"Q":case"QQ":return xt(e.length,n);case"Qo":return i.ordinalNumber(n,{unit:"quarter"});case"QQQ":return i.quarter(n,{width:"abbreviated",context:"formatting"})||i.quarter(n,{width:"narrow",context:"formatting"});case"QQQQQ":return i.quarter(n,{width:"narrow",context:"formatting"});case"QQQQ":default:return i.quarter(n,{width:"wide",context:"formatting"})||i.quarter(n,{width:"abbreviated",context:"formatting"})||i.quarter(n,{width:"narrow",context:"formatting"})}}validate(n,e){return e>=1&&e<=4}set(n,e,i){return n.setMonth((i-1)*3,1),n.setHours(0,0,0,0),n}incompatibleTokens=["Y","R","q","M","L","w","I","d","D","i","e","c","t","T"]};var Ey=class extends Pe{priority=120;parse(n,e,i){switch(e){case"q":case"qq":return xt(e.length,n);case"qo":return i.ordinalNumber(n,{unit:"quarter"});case"qqq":return i.quarter(n,{width:"abbreviated",context:"standalone"})||i.quarter(n,{width:"narrow",context:"standalone"});case"qqqqq":return i.quarter(n,{width:"narrow",context:"standalone"});case"qqqq":default:return i.quarter(n,{width:"wide",context:"standalone"})||i.quarter(n,{width:"abbreviated",context:"standalone"})||i.quarter(n,{width:"narrow",context:"standalone"})}}validate(n,e){return e>=1&&e<=4}set(n,e,i){return n.setMonth((i-1)*3,1),n.setHours(0,0,0,0),n}incompatibleTokens=["Y","R","Q","M","L","w","I","d","D","i","e","c","t","T"]};var Sy=class extends Pe{incompatibleTokens=["Y","R","q","Q","L","w","I","D","i","e","c","t","T"];priority=110;parse(n,e,i){let r=o=>o-1;switch(e){case"M":return fi(qt(Qt.month,n),r);case"MM":return fi(xt(2,n),r);case"Mo":return fi(i.ordinalNumber(n,{unit:"month"}),r);case"MMM":return i.month(n,{width:"abbreviated",context:"formatting"})||i.month(n,{width:"narrow",context:"formatting"});case"MMMMM":return i.month(n,{width:"narrow",context:"formatting"});case"MMMM":default:return i.month(n,{width:"wide",context:"formatting"})||i.month(n,{width:"abbreviated",context:"formatting"})||i.month(n,{width:"narrow",context:"formatting"})}}validate(n,e){return e>=0&&e<=11}set(n,e,i){return n.setMonth(i,1),n.setHours(0,0,0,0),n}};var ky=class extends Pe{priority=110;parse(n,e,i){let r=o=>o-1;switch(e){case"L":return fi(qt(Qt.month,n),r);case"LL":return fi(xt(2,n),r);case"Lo":return fi(i.ordinalNumber(n,{unit:"month"}),r);case"LLL":return i.month(n,{width:"abbreviated",context:"standalone"})||i.month(n,{width:"narrow",context:"standalone"});case"LLLLL":return i.month(n,{width:"narrow",context:"standalone"});case"LLLL":default:return i.month(n,{width:"wide",context:"standalone"})||i.month(n,{width:"abbreviated",context:"standalone"})||i.month(n,{width:"narrow",context:"standalone"})}}validate(n,e){return e>=0&&e<=11}set(n,e,i){return n.setMonth(i,1),n.setHours(0,0,0,0),n}incompatibleTokens=["Y","R","q","Q","M","w","I","D","i","e","c","t","T"]};function LV(t,n,e){let i=Ie(t,e?.in),r=fh(i,e)-n;return i.setDate(i.getDate()-r*7),Ie(i,e?.in)}var Ty=class extends Pe{priority=100;parse(n,e,i){switch(e){case"w":return qt(Qt.week,n);case"wo":return i.ordinalNumber(n,{unit:"week"});default:return xt(e.length,n)}}validate(n,e){return e>=1&&e<=53}set(n,e,i,r){return ar(LV(n,i,r),r)}incompatibleTokens=["y","R","u","q","Q","M","L","I","d","D","i","t","T"]};function VV(t,n,e){let i=Ie(t,e?.in),r=ly(i,e)-n;return i.setDate(i.getDate()-r*7),i}var Iy=class extends Pe{priority=100;parse(n,e,i){switch(e){case"I":return qt(Qt.week,n);case"Io":return i.ordinalNumber(n,{unit:"week"});default:return xt(e.length,n)}}validate(n,e){return e>=1&&e<=53}set(n,e,i){return Ya(VV(n,i))}incompatibleTokens=["y","Y","u","q","Q","M","L","w","d","D","e","c","t","T"]};var IX=[31,28,31,30,31,30,31,31,30,31,30,31],AX=[31,29,31,30,31,30,31,31,30,31,30,31],Ay=class extends Pe{priority=90;subPriority=1;parse(n,e,i){switch(e){case"d":return qt(Qt.date,n);case"do":return i.ordinalNumber(n,{unit:"date"});default:return xt(e.length,n)}}validate(n,e){let i=n.getFullYear(),r=yy(i),o=n.getMonth();return r?e>=1&&e<=AX[o]:e>=1&&e<=IX[o]}set(n,e,i){return n.setDate(i),n.setHours(0,0,0,0),n}incompatibleTokens=["Y","R","q","Q","w","I","D","i","e","c","t","T"]};var Oy=class extends Pe{priority=90;subpriority=1;parse(n,e,i){switch(e){case"D":case"DD":return qt(Qt.dayOfYear,n);case"Do":return i.ordinalNumber(n,{unit:"date"});default:return xt(e.length,n)}}validate(n,e){let i=n.getFullYear();return yy(i)?e>=1&&e<=366:e>=1&&e<=365}set(n,e,i){return n.setMonth(0,i),n.setHours(0,0,0,0),n}incompatibleTokens=["Y","R","q","Q","M","L","w","I","d","E","i","e","c","t","T"]};function vh(t,n,e){let i=ta(),r=e?.weekStartsOn??e?.locale?.options?.weekStartsOn??i.weekStartsOn??i.locale?.options?.weekStartsOn??0,o=Ie(t,e?.in),a=o.getDay(),l=(n%7+7)%7,c=7-r,d=n<0||n>6?n-(a+c)%7:(l+c)%7-(a+c)%7;return dh(o,d,e)}var Ry=class extends Pe{priority=90;parse(n,e,i){switch(e){case"E":case"EE":case"EEE":return i.day(n,{width:"abbreviated",context:"formatting"})||i.day(n,{width:"short",context:"formatting"})||i.day(n,{width:"narrow",context:"formatting"});case"EEEEE":return i.day(n,{width:"narrow",context:"formatting"});case"EEEEEE":return i.day(n,{width:"short",context:"formatting"})||i.day(n,{width:"narrow",context:"formatting"});case"EEEE":default:return i.day(n,{width:"wide",context:"formatting"})||i.day(n,{width:"abbreviated",context:"formatting"})||i.day(n,{width:"short",context:"formatting"})||i.day(n,{width:"narrow",context:"formatting"})}}validate(n,e){return e>=0&&e<=6}set(n,e,i,r){return n=vh(n,i,r),n.setHours(0,0,0,0),n}incompatibleTokens=["D","i","e","c","t","T"]};var Py=class extends Pe{priority=90;parse(n,e,i,r){let o=a=>{let s=Math.floor((a-1)/7)*7;return(a+r.weekStartsOn+6)%7+s};switch(e){case"e":case"ee":return fi(xt(e.length,n),o);case"eo":return fi(i.ordinalNumber(n,{unit:"day"}),o);case"eee":return i.day(n,{width:"abbreviated",context:"formatting"})||i.day(n,{width:"short",context:"formatting"})||i.day(n,{width:"narrow",context:"formatting"});case"eeeee":return i.day(n,{width:"narrow",context:"formatting"});case"eeeeee":return i.day(n,{width:"short",context:"formatting"})||i.day(n,{width:"narrow",context:"formatting"});case"eeee":default:return i.day(n,{width:"wide",context:"formatting"})||i.day(n,{width:"abbreviated",context:"formatting"})||i.day(n,{width:"short",context:"formatting"})||i.day(n,{width:"narrow",context:"formatting"})}}validate(n,e){return e>=0&&e<=6}set(n,e,i,r){return n=vh(n,i,r),n.setHours(0,0,0,0),n}incompatibleTokens=["y","R","u","q","Q","M","L","I","d","D","E","i","c","t","T"]};var Fy=class extends Pe{priority=90;parse(n,e,i,r){let o=a=>{let s=Math.floor((a-1)/7)*7;return(a+r.weekStartsOn+6)%7+s};switch(e){case"c":case"cc":return fi(xt(e.length,n),o);case"co":return fi(i.ordinalNumber(n,{unit:"day"}),o);case"ccc":return i.day(n,{width:"abbreviated",context:"standalone"})||i.day(n,{width:"short",context:"standalone"})||i.day(n,{width:"narrow",context:"standalone"});case"ccccc":return i.day(n,{width:"narrow",context:"standalone"});case"cccccc":return i.day(n,{width:"short",context:"standalone"})||i.day(n,{width:"narrow",context:"standalone"});case"cccc":default:return i.day(n,{width:"wide",context:"standalone"})||i.day(n,{width:"abbreviated",context:"standalone"})||i.day(n,{width:"short",context:"standalone"})||i.day(n,{width:"narrow",context:"standalone"})}}validate(n,e){return e>=0&&e<=6}set(n,e,i,r){return n=vh(n,i,r),n.setHours(0,0,0,0),n}incompatibleTokens=["y","R","u","q","Q","M","L","I","d","D","E","i","e","t","T"]};function BV(t,n,e){let i=Ie(t,e?.in),r=OV(i,e),o=n-r;return dh(i,o,e)}var Ny=class extends Pe{priority=90;parse(n,e,i){let r=o=>o===0?7:o;switch(e){case"i":case"ii":return xt(e.length,n);case"io":return i.ordinalNumber(n,{unit:"day"});case"iii":return fi(i.day(n,{width:"abbreviated",context:"formatting"})||i.day(n,{width:"short",context:"formatting"})||i.day(n,{width:"narrow",context:"formatting"}),r);case"iiiii":return fi(i.day(n,{width:"narrow",context:"formatting"}),r);case"iiiiii":return fi(i.day(n,{width:"short",context:"formatting"})||i.day(n,{width:"narrow",context:"formatting"}),r);case"iiii":default:return fi(i.day(n,{width:"wide",context:"formatting"})||i.day(n,{width:"abbreviated",context:"formatting"})||i.day(n,{width:"short",context:"formatting"})||i.day(n,{width:"narrow",context:"formatting"}),r)}}validate(n,e){return e>=1&&e<=7}set(n,e,i){return n=BV(n,i),n.setHours(0,0,0,0),n}incompatibleTokens=["y","Y","u","q","Q","M","L","w","d","D","E","e","c","t","T"]};var Ly=class extends Pe{priority=80;parse(n,e,i){switch(e){case"a":case"aa":case"aaa":return i.dayPeriod(n,{width:"abbreviated",context:"formatting"})||i.dayPeriod(n,{width:"narrow",context:"formatting"});case"aaaaa":return i.dayPeriod(n,{width:"narrow",context:"formatting"});case"aaaa":default:return i.dayPeriod(n,{width:"wide",context:"formatting"})||i.dayPeriod(n,{width:"abbreviated",context:"formatting"})||i.dayPeriod(n,{width:"narrow",context:"formatting"})}}set(n,e,i){return n.setHours(bh(i),0,0,0),n}incompatibleTokens=["b","B","H","k","t","T"]};var Vy=class extends Pe{priority=80;parse(n,e,i){switch(e){case"b":case"bb":case"bbb":return i.dayPeriod(n,{width:"abbreviated",context:"formatting"})||i.dayPeriod(n,{width:"narrow",context:"formatting"});case"bbbbb":return i.dayPeriod(n,{width:"narrow",context:"formatting"});case"bbbb":default:return i.dayPeriod(n,{width:"wide",context:"formatting"})||i.dayPeriod(n,{width:"abbreviated",context:"formatting"})||i.dayPeriod(n,{width:"narrow",context:"formatting"})}}set(n,e,i){return n.setHours(bh(i),0,0,0),n}incompatibleTokens=["a","B","H","k","t","T"]};var By=class extends Pe{priority=80;parse(n,e,i){switch(e){case"B":case"BB":case"BBB":return i.dayPeriod(n,{width:"abbreviated",context:"formatting"})||i.dayPeriod(n,{width:"narrow",context:"formatting"});case"BBBBB":return i.dayPeriod(n,{width:"narrow",context:"formatting"});case"BBBB":default:return i.dayPeriod(n,{width:"wide",context:"formatting"})||i.dayPeriod(n,{width:"abbreviated",context:"formatting"})||i.dayPeriod(n,{width:"narrow",context:"formatting"})}}set(n,e,i){return n.setHours(bh(i),0,0,0),n}incompatibleTokens=["a","b","t","T"]};var jy=class extends Pe{priority=70;parse(n,e,i){switch(e){case"h":return qt(Qt.hour12h,n);case"ho":return i.ordinalNumber(n,{unit:"hour"});default:return xt(e.length,n)}}validate(n,e){return e>=1&&e<=12}set(n,e,i){let r=n.getHours()>=12;return r&&i<12?n.setHours(i+12,0,0,0):!r&&i===12?n.setHours(0,0,0,0):n.setHours(i,0,0,0),n}incompatibleTokens=["H","K","k","t","T"]};var Hy=class extends Pe{priority=70;parse(n,e,i){switch(e){case"H":return qt(Qt.hour23h,n);case"Ho":return i.ordinalNumber(n,{unit:"hour"});default:return xt(e.length,n)}}validate(n,e){return e>=0&&e<=23}set(n,e,i){return n.setHours(i,0,0,0),n}incompatibleTokens=["a","b","h","K","k","t","T"]};var zy=class extends Pe{priority=70;parse(n,e,i){switch(e){case"K":return qt(Qt.hour11h,n);case"Ko":return i.ordinalNumber(n,{unit:"hour"});default:return xt(e.length,n)}}validate(n,e){return e>=0&&e<=11}set(n,e,i){return n.getHours()>=12&&i<12?n.setHours(i+12,0,0,0):n.setHours(i,0,0,0),n}incompatibleTokens=["h","H","k","t","T"]};var Uy=class extends Pe{priority=70;parse(n,e,i){switch(e){case"k":return qt(Qt.hour24h,n);case"ko":return i.ordinalNumber(n,{unit:"hour"});default:return xt(e.length,n)}}validate(n,e){return e>=1&&e<=24}set(n,e,i){let r=i<=24?i%24:i;return n.setHours(r,0,0,0),n}incompatibleTokens=["a","b","h","H","K","t","T"]};var $y=class extends Pe{priority=60;parse(n,e,i){switch(e){case"m":return qt(Qt.minute,n);case"mo":return i.ordinalNumber(n,{unit:"minute"});default:return xt(e.length,n)}}validate(n,e){return e>=0&&e<=59}set(n,e,i){return n.setMinutes(i,0,0),n}incompatibleTokens=["t","T"]};var Wy=class extends Pe{priority=50;parse(n,e,i){switch(e){case"s":return qt(Qt.second,n);case"so":return i.ordinalNumber(n,{unit:"second"});default:return xt(e.length,n)}}validate(n,e){return e>=0&&e<=59}set(n,e,i){return n.setSeconds(i,0),n}incompatibleTokens=["t","T"]};var Gy=class extends Pe{priority=30;parse(n,e){let i=r=>Math.trunc(r*Math.pow(10,-e.length+3));return fi(xt(e.length,n),i)}set(n,e,i){return n.setMilliseconds(i),n}incompatibleTokens=["t","T"]};var qy=class extends Pe{priority=10;parse(n,e){switch(e){case"X":return ra(na.basicOptionalMinutes,n);case"XX":return ra(na.basic,n);case"XXXX":return ra(na.basicOptionalSeconds,n);case"XXXXX":return ra(na.extendedOptionalSeconds,n);case"XXX":default:return ra(na.extended,n)}}set(n,e,i){return e.timestampIsSet?n:ct(n,n.getTime()-lu(n)-i)}incompatibleTokens=["t","T","x"]};var Yy=class extends Pe{priority=10;parse(n,e){switch(e){case"x":return ra(na.basicOptionalMinutes,n);case"xx":return ra(na.basic,n);case"xxxx":return ra(na.basicOptionalSeconds,n);case"xxxxx":return ra(na.extendedOptionalSeconds,n);case"xxx":default:return ra(na.extended,n)}}set(n,e,i){return e.timestampIsSet?n:ct(n,n.getTime()-lu(n)-i)}incompatibleTokens=["t","T","X"]};var Qy=class extends Pe{priority=40;parse(n){return by(n)}set(n,e,i){return[ct(n,i*1e3),{timestampIsSet:!0}]}incompatibleTokens="*"};var Ky=class extends Pe{priority=20;parse(n){return by(n)}set(n,e,i){return[ct(n,i),{timestampIsSet:!0}]}incompatibleTokens="*"};var jV={G:new _y,y:new xy,Y:new Cy,R:new wy,u:new Dy,Q:new My,q:new Ey,M:new Sy,L:new ky,w:new Ty,I:new Iy,d:new Ay,D:new Oy,E:new Ry,e:new Py,c:new Fy,i:new Ny,a:new Ly,b:new Vy,B:new By,h:new jy,H:new Hy,K:new zy,k:new Uy,m:new $y,s:new Wy,S:new Gy,X:new qy,x:new Yy,t:new Qy,T:new Ky};var OX=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,RX=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,PX=/^'([^]*?)'?$/,FX=/''/g,NX=/\S/,LX=/[a-zA-Z]/;function HV(t,n,e,i){let r=()=>ct(i?.in||e,NaN),o=AV(),a=i?.locale??o.locale??cu,s=i?.firstWeekContainsDate??i?.locale?.options?.firstWeekContainsDate??o.firstWeekContainsDate??o.locale?.options?.firstWeekContainsDate??1,l=i?.weekStartsOn??i?.locale?.options?.weekStartsOn??o.weekStartsOn??o.locale?.options?.weekStartsOn??0;if(!n)return t?r():Ie(e,i?.in);let c={firstWeekContainsDate:s,weekStartsOn:l,locale:a},d=[new gy(i?.in,e)],p=n.match(RX).map(C=>{let D=C[0];if(D in ng){let F=ng[D];return F(C,a.formatLong)}return C}).join("").match(OX),_=[];for(let C of p){!i?.useAdditionalWeekYearTokens&&dy(C)&&rg(C,n,t),!i?.useAdditionalDayOfYearTokens&&cy(C)&&rg(C,n,t);let D=C[0],F=jV[D];if(F){let{incompatibleTokens:W}=F;if(Array.isArray(W)){let K=_.find(oe=>W.includes(oe.token)||oe.token===D);if(K)throw new RangeError(`The format string mustn't contain \`${K.fullToken}\` and \`${C}\` at the same time`)}else if(F.incompatibleTokens==="*"&&_.length>0)throw new RangeError(`The format string mustn't contain \`${C}\` and any other token at the same time`);_.push({token:D,fullToken:C});let Z=F.run(t,C,a.match,c);if(!Z)return r();d.push(Z.setter),t=Z.rest}else{if(D.match(LX))throw new RangeError("Format string contains an unescaped latin alphabet character `"+D+"`");if(C==="''"?C="'":D==="'"&&(C=VX(C)),t.indexOf(C)===0)t=t.slice(C.length);else return r()}}if(t.length>0&&NX.test(t))return r();let b=d.map(C=>C.priority).sort((C,D)=>D-C).filter((C,D,F)=>F.indexOf(C)===D).map(C=>d.filter(D=>D.priority===C).sort((D,F)=>F.subPriority-D.subPriority)).map(C=>C[0]),y=Ie(e,i?.in);if(isNaN(+y))return r();let w={};for(let C of b){if(!C.validate(y,c))return r();let D=C.set(y,w,c);Array.isArray(D)?(y=D[0],Object.assign(w,D[1])):y=D}return y}function VX(t){return t.match(PX)[1].replace(FX,"'")}function zV(t,n,e){let[i,r]=ay(e?.in,t,n);return+ar(i,e)==+ar(r,e)}function US(t,n){let e=()=>ct(n?.in,NaN),i=n?.additionalDigits??2,r=zX(t),o;if(r.date){let c=UX(r.date,i);o=$X(c.restDateString,c.year)}if(!o||isNaN(+o))return e();let a=+o,s=0,l;if(r.time&&(s=WX(r.time),isNaN(s)))return e();if(r.timezone){if(l=GX(r.timezone),isNaN(l))return e()}else{let c=new Date(a+s),d=Ie(0,n?.in);return d.setFullYear(c.getUTCFullYear(),c.getUTCMonth(),c.getUTCDate()),d.setHours(c.getUTCHours(),c.getUTCMinutes(),c.getUTCSeconds(),c.getUTCMilliseconds()),d}return Ie(a+s+l,n?.in)}var Zy={dateTimeDelimiter:/[T ]/,timeZoneDelimiter:/[Z ]/i,timezone:/([Z+-].*)$/},BX=/^-?(?:(\d{3})|(\d{2})(?:-?(\d{2}))?|W(\d{2})(?:-?(\d{1}))?|)$/,jX=/^(\d{2}(?:[.,]\d*)?)(?::?(\d{2}(?:[.,]\d*)?))?(?::?(\d{2}(?:[.,]\d*)?))?$/,HX=/^([+-])(\d{2})(?::?(\d{2}))?$/;function zX(t){let n={},e=t.split(Zy.dateTimeDelimiter),i;if(e.length>2)return n;if(/:/.test(e[0])?i=e[0]:(n.date=e[0],i=e[1],Zy.timeZoneDelimiter.test(n.date)&&(n.date=t.split(Zy.timeZoneDelimiter)[0],i=t.substr(n.date.length,t.length))),i){let r=Zy.timezone.exec(i);r?(n.time=i.replace(r[1],""),n.timezone=r[1]):n.time=i}return n}function UX(t,n){let e=new RegExp("^(?:(\\d{4}|[+-]\\d{"+(4+n)+"})|(\\d{2}|[+-]\\d{"+(2+n)+"})$)"),i=t.match(e);if(!i)return{year:NaN,restDateString:""};let r=i[1]?parseInt(i[1]):null,o=i[2]?parseInt(i[2]):null;return{year:o===null?r:o*100,restDateString:t.slice((i[1]||i[2]).length)}}function $X(t,n){if(n===null)return new Date(NaN);let e=t.match(BX);if(!e)return new Date(NaN);let i=!!e[4],r=og(e[1]),o=og(e[2])-1,a=og(e[3]),s=og(e[4]),l=og(e[5])-1;if(i)return ZX(n,s,l)?qX(n,s,l):new Date(NaN);{let c=new Date(0);return!QX(n,o,a)||!KX(n,r)?new Date(NaN):(c.setUTCFullYear(n,o,Math.max(r,a)),c)}}function og(t){return t?parseInt(t):1}function WX(t){let n=t.match(jX);if(!n)return NaN;let e=zS(n[1]),i=zS(n[2]),r=zS(n[3]);return XX(e,i,r)?e*su+i*au+r*1e3:NaN}function zS(t){return t&&parseFloat(t.replace(",","."))||0}function GX(t){if(t==="Z")return 0;let n=t.match(HX);if(!n)return 0;let e=n[1]==="+"?-1:1,i=parseInt(n[2]),r=n[3]&&parseInt(n[3])||0;return JX(i,r)?e*(i*su+r*au):NaN}function qX(t,n,e){let i=new Date(0);i.setUTCFullYear(t,0,4);let r=i.getUTCDay()||7,o=(n-1)*7+e+1-r;return i.setUTCDate(i.getUTCDate()+o),i}var YX=[31,null,31,30,31,30,31,31,30,31,30,31];function UV(t){return t%400===0||t%4===0&&t%100!==0}function QX(t,n,e){return n>=0&&n<=11&&e>=1&&e<=(YX[n]||(UV(t)?29:28))}function KX(t,n){return n>=1&&n<=(UV(t)?366:365)}function ZX(t,n,e){return n>=1&&n<=53&&e>=0&&e<=6}function XX(t,n,e){return t===24?n===0&&e===0:e>=0&&e<60&&n>=0&&n<60&&t>=0&&t<25}function JX(t,n){return n>=0&&n<=59}function $V(t,n,e){let i=Ie(t,e?.in),r=i.getFullYear(),o=i.getDate(),a=ct(e?.in||t,0);a.setFullYear(r,n,15),a.setHours(0,0,0,0);let s=uy(a);return i.setMonth(n,Math.min(o,s)),i}function WV(t,n,e){let i=Ie(t,e?.in);return isNaN(+i)?ct(e?.in||t,NaN):(n.year!=null&&i.setFullYear(n.year),n.month!=null&&(i=$V(i,n.month)),n.date!=null&&i.setDate(n.date),n.hours!=null&&i.setHours(n.hours),n.minutes!=null&&i.setMinutes(n.minutes),n.seconds!=null&&i.setSeconds(n.seconds),n.milliseconds!=null&&i.setMilliseconds(n.milliseconds),i)}function $S(t,n){let e=Array(t);for(let i=0;i{class t extends Wi{constructor(){super();let e=u(Ns,{optional:!0});this.setLocale(e)}getYear(e){return FV(e)}getMonth(e){return RV(e)}getDate(e){return TV(e)}getDayOfWeek(e){return IV(e)}getMonthNames(e){let i=eJ[e];return $S(12,r=>this.format(new Date(2017,r,1),i))}getDateNames(){let e=typeof Intl<"u"?new Intl.DateTimeFormat(this.locale.code,{day:"numeric",timeZone:"utc"}):null;return $S(31,i=>{if(e){let r=new Date;return r.setUTCFullYear(2017,0,i+1),r.setUTCHours(0,0,0,0),e.format(r).replace(/[\u200e\u200f]/g,"")}return i+""})}getDayOfWeekNames(e){let i=tJ[e];return $S(7,r=>this.format(new Date(2017,0,r+1),i))}getYearName(e){return this.format(e,"y")}getFirstDayOfWeek(){return this.locale.options?.weekStartsOn??0}getNumDaysInMonth(e){return uy(e)}clone(e){return new Date(e.getTime())}createDate(e,i,r){let o=new Date;return o.setFullYear(e,i,r),o.setHours(0,0,0,0),o.getMonth()!=i,o}today(){return new Date}parse(e,i){return this._parse(e,i)}format(e,i){if(!this.isValid(e))throw Error("DateFnsAdapter: Cannot format invalid date.");return SV(e,i,{locale:this.locale})}addCalendarYears(e,i){return hV(e,i)}addCalendarMonths(e,i){return uh(e,i)}addCalendarDays(e,i){return dh(e,i)}toIso8601(e){return kV(e,{representation:"date"})}deserialize(e){if(typeof e=="string"){if(!e)return null;let i=US(e);if(this.isValid(i))return i}return super.deserialize(e)}isDateInstance(e){return sy(e)}isValid(e){return mh(e)}invalid(){return new Date(NaN)}setTime(e,i,r,o){return WV(this.clone(e),{hours:i,minutes:r,seconds:o,milliseconds:0})}getHours(e){return my(e)}getMinutes(e){return hy(e)}getSeconds(e){return PV(e)}parseTime(e,i){return this._parse(e,i,!1)}addSeconds(e,i){return mV(e,i)}_parse(e,i,r=!0){if(typeof e=="string"&&e.length>0){if(r){let a=US(e);if(this.isValid(a))return a}let o=Array.isArray(i)?i:[i];if(!i.length)throw Error("Formats array must not be empty.");for(let a of o){let s=HV(e,a,new Date,{locale:this.locale});if(this.isValid(s))return s}return this.invalid()}else{if(typeof e=="number")return new Date(e);if(e instanceof Date)return this.clone(e)}return null}static \u0275fac=function(i){return new(i||t)};static \u0275prov=R({token:t,factory:t.\u0275fac})}return t})(),iJ={parse:{dateInput:"P",timeInput:"p"},display:{dateInput:"P",timeInput:"p",monthYearLabel:"LLL uuuu",dateA11yLabel:"PP",monthYearA11yLabel:"LLLL uuuu",timeOptionLabel:"p"}};function GV(t=iJ){return[{provide:Wi,useClass:WS,deps:[Ns]},{provide:Ls,useValue:t}]}var nJ=["*"];var rJ=[[["","mat-card-avatar",""],["","matCardAvatar",""]],[["mat-card-title"],["mat-card-subtitle"],["","mat-card-title",""],["","mat-card-subtitle",""],["","matCardTitle",""],["","matCardSubtitle",""]],"*"],oJ=["[mat-card-avatar], [matCardAvatar]",`mat-card-title, mat-card-subtitle, [mat-card-title], [mat-card-subtitle], - [matCardTitle], [matCardSubtitle]`,"*"],$S=new O("MAT_CARD_CONFIG"),Ht=(()=>{class t{appearance;constructor(){let e=u($S,{optional:!0});this.appearance=e?.appearance||"raised"}static \u0275fac=function(i){return new(i||t)};static \u0275cmp=E({type:t,selectors:[["mat-card"]],hostAttrs:[1,"mat-mdc-card","mdc-card"],hostVars:8,hostBindings:function(i,r){i&2&&G("mat-mdc-card-outlined",r.appearance==="outlined")("mdc-card--outlined",r.appearance==="outlined")("mat-mdc-card-filled",r.appearance==="filled")("mdc-card--filled",r.appearance==="filled")},inputs:{appearance:"appearance"},exportAs:["matCard"],ngContentSelectors:iJ,decls:1,vars:0,template:function(i,r){i&1&&(Se(),ne(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 rgba(0,0,0,0);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 t})(),Wt=(()=>{class t{static \u0275fac=function(i){return new(i||t)};static \u0275dir=P({type:t,selectors:[["mat-card-title"],["","mat-card-title",""],["","matCardTitle",""]],hostAttrs:[1,"mat-mdc-card-title"]})}return t})();var zt=(()=>{class t{static \u0275fac=function(i){return new(i||t)};static \u0275dir=P({type:t,selectors:[["mat-card-content"]],hostAttrs:[1,"mat-mdc-card-content"]})}return t})(),yh=(()=>{class t{static \u0275fac=function(i){return new(i||t)};static \u0275dir=P({type:t,selectors:[["mat-card-subtitle"],["","mat-card-subtitle",""],["","matCardSubtitle",""]],hostAttrs:[1,"mat-mdc-card-subtitle"]})}return t})(),WV=(()=>{class t{align="start";static \u0275fac=function(i){return new(i||t)};static \u0275dir=P({type:t,selectors:[["mat-card-actions"]],hostAttrs:[1,"mat-mdc-card-actions","mdc-card__actions"],hostVars:2,hostBindings:function(i,r){i&2&&G("mat-mdc-card-actions-align-end",r.align==="end")},inputs:{align:"align"},exportAs:["matCardActions"]})}return t})(),Gt=(()=>{class t{static \u0275fac=function(i){return new(i||t)};static \u0275cmp=E({type:t,selectors:[["mat-card-header"]],hostAttrs:[1,"mat-mdc-card-header"],ngContentSelectors:rJ,decls:4,vars:0,consts:[[1,"mat-mdc-card-header-text"]],template:function(i,r){i&1&&(Se(nJ),ne(0),pt(1,"div",0),ne(2,1),_t(),ne(3,2))},encapsulation:2,changeDetection:0})}return t})();var Ky=(()=>{class t{static \u0275fac=function(i){return new(i||t)};static \u0275dir=P({type:t,selectors:[["","mat-card-avatar",""],["","matCardAvatar",""]],hostAttrs:[1,"mat-mdc-card-avatar"]})}return t})();var Ut=(()=>{class t{static \u0275fac=function(i){return new(i||t)};static \u0275mod=ee({type:t});static \u0275inj=J({imports:[De,De]})}return t})();var WS=class{_box;_destroyed=new z;_resizeSubject=new z;_resizeObserver;_elementObservables=new Map;constructor(n){this._box=n,typeof ResizeObserver<"u"&&(this._resizeObserver=new ResizeObserver(e=>this._resizeSubject.next(e)))}observe(n){return this._elementObservables.has(n)||this._elementObservables.set(n,new Fe(e=>{let i=this._resizeSubject.subscribe(e);return this._resizeObserver?.observe(n,{box:this._box}),()=>{this._resizeObserver?.unobserve(n),i.unsubscribe(),this._elementObservables.delete(n)}}).pipe(ce(e=>e.some(i=>i.target===n)),fd({bufferSize:1,refCount:!0}),we(this._destroyed))),this._elementObservables.get(n)}destroy(){this._destroyed.next(),this._destroyed.complete(),this._resizeSubject.complete(),this._elementObservables.clear()}},Zy=(()=>{class t{_cleanupErrorListener;_observers=new Map;_ngZone=u(ae);constructor(){typeof ResizeObserver<"u"}ngOnDestroy(){for(let[,e]of this._observers)e.destroy();this._observers.clear(),this._cleanupErrorListener?.()}observe(e,i){let r=i?.box||"content-box";return this._observers.has(r)||this._observers.set(r,new WS(r)),this._observers.get(r).observe(e)}static \u0275fac=function(i){return new(i||t)};static \u0275prov=R({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();var oJ=["notch"],aJ=["matFormFieldNotchedOutline",""],sJ=["*"],GV=["iconPrefixContainer"],qV=["textPrefixContainer"],YV=["iconSuffixContainer"],QV=["textSuffixContainer"],lJ=["textField"],cJ=["*",[["mat-label"]],[["","matPrefix",""],["","matIconPrefix",""]],[["","matTextPrefix",""]],[["","matTextSuffix",""]],[["","matSuffix",""],["","matIconSuffix",""]],[["mat-error"],["","matError",""]],[["mat-hint",3,"align","end"]],[["mat-hint","align","end"]]],dJ=["*","mat-label","[matPrefix], [matIconPrefix]","[matTextPrefix]","[matTextSuffix]","[matSuffix], [matIconSuffix]","mat-error, [matError]","mat-hint:not([align='end'])","mat-hint[align='end']"];function uJ(t,n){t&1&&M(0,"span",21)}function mJ(t,n){if(t&1&&(m(0,"label",20),ne(1,1),V(2,uJ,1,0,"span",21),h()),t&2){let e=x(2);v("floating",e._shouldLabelFloat())("monitorResize",e._hasOutline())("id",e._labelId),X("for",e._control.disableAutomaticLabeling?null:e._control.id),f(2),B(!e.hideRequiredMarker&&e._control.required?2:-1)}}function hJ(t,n){if(t&1&&V(0,mJ,3,5,"label",20),t&2){let e=x();B(e._hasFloatingLabel()?0:-1)}}function pJ(t,n){t&1&&M(0,"div",7)}function fJ(t,n){}function gJ(t,n){if(t&1&&A(0,fJ,0,0,"ng-template",13),t&2){x(2);let e=Me(1);v("ngTemplateOutlet",e)}}function _J(t,n){if(t&1&&(m(0,"div",9),V(1,gJ,1,1,null,13),h()),t&2){let e=x();v("matFormFieldNotchedOutlineOpen",e._shouldLabelFloat()),f(),B(e._forceDisplayInfixLabel()?-1:1)}}function bJ(t,n){t&1&&(m(0,"div",10,2),ne(2,2),h())}function vJ(t,n){t&1&&(m(0,"div",11,3),ne(2,3),h())}function yJ(t,n){}function xJ(t,n){if(t&1&&A(0,yJ,0,0,"ng-template",13),t&2){x();let e=Me(1);v("ngTemplateOutlet",e)}}function CJ(t,n){t&1&&(m(0,"div",14,4),ne(2,4),h())}function wJ(t,n){t&1&&(m(0,"div",15,5),ne(2,5),h())}function DJ(t,n){t&1&&M(0,"div",16)}function EJ(t,n){t&1&&(m(0,"div",18),ne(1,6),h())}function MJ(t,n){if(t&1&&(m(0,"mat-hint",22),g(1),h()),t&2){let e=x(2);v("id",e._hintLabelId),f(),N(e.hintLabel)}}function SJ(t,n){if(t&1&&(m(0,"div",19),V(1,MJ,2,2,"mat-hint",22),ne(2,7),M(3,"div",23),ne(4,8),h()),t&2){let e=x();f(),B(e.hintLabel?1:-1)}}var Gi=(()=>{class t{static \u0275fac=function(i){return new(i||t)};static \u0275dir=P({type:t,selectors:[["mat-label"]]})}return t})(),GS=new O("MatError"),So=(()=>{class t{id=u(Ze).getId("mat-mdc-error-");constructor(){}static \u0275fac=function(i){return new(i||t)};static \u0275dir=P({type:t,selectors:[["mat-error"],["","matError",""]],hostAttrs:[1,"mat-mdc-form-field-error","mat-mdc-form-field-bottom-align"],hostVars:1,hostBindings:function(i,r){i&2&&ci("id",r.id)},inputs:{id:"id"},features:[Ce([{provide:GS,useExisting:t}])]})}return t})(),og=(()=>{class t{align="start";id=u(Ze).getId("mat-mdc-hint-");static \u0275fac=function(i){return new(i||t)};static \u0275dir=P({type:t,selectors:[["mat-hint"]],hostAttrs:[1,"mat-mdc-form-field-hint","mat-mdc-form-field-bottom-align"],hostVars:4,hostBindings:function(i,r){i&2&&(ci("id",r.id),X("align",null),G("mat-mdc-form-field-hint-end",r.align==="end"))},inputs:{align:"align",id:"id"}})}return t})(),qS=new O("MatPrefix"),cu=(()=>{class t{set _isTextSelector(e){this._isText=!0}_isText=!1;static \u0275fac=function(i){return new(i||t)};static \u0275dir=P({type:t,selectors:[["","matPrefix",""],["","matIconPrefix",""],["","matTextPrefix",""]],inputs:{_isTextSelector:[0,"matTextPrefix","_isTextSelector"]},features:[Ce([{provide:qS,useExisting:t}])]})}return t})(),YS=new O("MatSuffix"),hl=(()=>{class t{set _isTextSelector(e){this._isText=!0}_isText=!1;static \u0275fac=function(i){return new(i||t)};static \u0275dir=P({type:t,selectors:[["","matSuffix",""],["","matIconSuffix",""],["","matTextSuffix",""]],inputs:{_isTextSelector:[0,"matTextSuffix","_isTextSelector"]},features:[Ce([{provide:YS,useExisting:t}])]})}return t})(),iB=new O("FloatingLabelParent"),KV=(()=>{class t{_elementRef=u(Y);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=u(Zy);_ngZone=u(ae);_parent=u(iB);_resizeSubscription=new Te;constructor(){}ngOnDestroy(){this._resizeSubscription.unsubscribe()}getWidth(){return kJ(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(i){return new(i||t)};static \u0275dir=P({type:t,selectors:[["label","matFormFieldFloatingLabel",""]],hostAttrs:[1,"mdc-floating-label","mat-mdc-floating-label"],hostVars:2,hostBindings:function(i,r){i&2&&G("mdc-floating-label--float-above",r.floating)},inputs:{floating:"floating",monitorResize:"monitorResize"}})}return t})();function kJ(t){let n=t;if(n.offsetParent!==null)return n.scrollWidth;let e=n.cloneNode(!0);e.style.setProperty("position","absolute"),e.style.setProperty("transform","translate(-9999px, -9999px)"),document.documentElement.appendChild(e);let i=e.scrollWidth;return e.remove(),i}var ZV="mdc-line-ripple--active",Xy="mdc-line-ripple--deactivating",XV=(()=>{class t{_elementRef=u(Y);_cleanupTransitionEnd;constructor(){let e=u(ae),i=u(ze);e.runOutsideAngular(()=>{this._cleanupTransitionEnd=i.listen(this._elementRef.nativeElement,"transitionend",this._handleTransitionEnd)})}activate(){let e=this._elementRef.nativeElement.classList;e.remove(Xy),e.add(ZV)}deactivate(){this._elementRef.nativeElement.classList.add(Xy)}_handleTransitionEnd=e=>{let i=this._elementRef.nativeElement.classList,r=i.contains(Xy);e.propertyName==="opacity"&&r&&i.remove(ZV,Xy)};ngOnDestroy(){this._cleanupTransitionEnd()}static \u0275fac=function(i){return new(i||t)};static \u0275dir=P({type:t,selectors:[["div","matFormFieldLineRipple",""]],hostAttrs:[1,"mdc-line-ripple"]})}return t})(),JV=(()=>{class t{_elementRef=u(Y);_ngZone=u(ae);open=!1;_notch;ngAfterViewInit(){let e=this._elementRef.nativeElement,i=e.querySelector(".mdc-floating-label");i?(e.classList.add("mdc-notched-outline--upgraded"),typeof requestAnimationFrame=="function"&&(i.style.transitionDuration="0s",this._ngZone.runOutsideAngular(()=>{requestAnimationFrame(()=>i.style.transitionDuration="")}))):e.classList.add("mdc-notched-outline--no-label")}_setNotchWidth(e){let i=this._notch.nativeElement;!this.open||!e?i.style.width="":i.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(i){return new(i||t)};static \u0275cmp=E({type:t,selectors:[["div","matFormFieldNotchedOutline",""]],viewQuery:function(i,r){if(i&1&&ie(oJ,5),i&2){let o;j(o=H())&&(r._notch=o.first)}},hostAttrs:[1,"mdc-notched-outline"],hostVars:2,hostBindings:function(i,r){i&2&&G("mdc-notched-outline--notched",r.open)},inputs:{open:[0,"matFormFieldNotchedOutlineOpen","open"]},attrs:aJ,ngContentSelectors:sJ,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(i,r){i&1&&(Se(),Xt(0,"div",1),pt(1,"div",2,0),ne(3),_t(),Xt(4,"div",3))},encapsulation:2,changeDetection:0})}return t})(),Pa=(()=>{class t{value;stateChanges;id;placeholder;ngControl;focused;empty;shouldLabelFloat;required;disabled;errorState;controlType;autofilled;userAriaDescribedBy;disableAutomaticLabeling;describedByIds;static \u0275fac=function(i){return new(i||t)};static \u0275dir=P({type:t})}return t})();var ta=new O("MatFormField"),nB=new O("MAT_FORM_FIELD_DEFAULT_OPTIONS"),eB="fill",TJ="auto",tB="fixed",IJ="translateY(-50%)",Ci=(()=>{class t{_elementRef=u(Y);_changeDetectorRef=u(ye);_platform=u(qe);_idGenerator=u(Ze);_ngZone=u(ae);_defaults=u(nB,{optional:!0});_currentDirection;_textField;_iconPrefixContainer;_textPrefixContainer;_iconSuffixContainer;_textSuffixContainer;_floatingLabel;_notchedOutline;_lineRipple;_iconPrefixContainerSignal=Qn("iconPrefixContainer");_textPrefixContainerSignal=Qn("textPrefixContainer");_iconSuffixContainerSignal=Qn("iconSuffixContainer");_textSuffixContainerSignal=Qn("textSuffixContainer");_prefixSuffixContainers=oi(()=>[this._iconPrefixContainerSignal(),this._textPrefixContainerSignal(),this._iconSuffixContainerSignal(),this._textSuffixContainerSignal()].map(e=>e?.nativeElement).filter(e=>e!==void 0));_formFieldControl;_prefixChildren;_suffixChildren;_errorChildren;_hintChildren;_labelChild=_r(Gi);get hideRequiredMarker(){return this._hideRequiredMarker}set hideRequiredMarker(e){this._hideRequiredMarker=Ri(e)}_hideRequiredMarker=!1;color="primary";get floatLabel(){return this._floatLabel||this._defaults?.floatLabel||TJ}set floatLabel(e){e!==this._floatLabel&&(this._floatLabel=e,this._changeDetectorRef.markForCheck())}_floatLabel;get appearance(){return this._appearanceSignal()}set appearance(e){let i=e||this._defaults?.appearance||eB;this._appearanceSignal.set(i)}_appearanceSignal=he(eB);get subscriptSizing(){return this._subscriptSizing||this._defaults?.subscriptSizing||tB}set subscriptSizing(e){this._subscriptSizing=e||this._defaults?.subscriptSizing||tB}_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 z;_isFocused=null;_explicitFormFieldControl;_previousControl=null;_previousControlValidatorFn=null;_stateChanges;_valueChanges;_describedByChanges;_outlineLabelOffsetResizeObserver=null;_animationsDisabled=Ye();constructor(){let e=this._defaults,i=u(Bt);e&&(e.appearance&&(this.appearance=e.appearance),this._hideRequiredMarker=!!e?.hideRequiredMarker,e.color&&(this.color=e.color)),Lr(()=>this._currentDirection=i.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=oi(()=>this._hasFloatingLabel()?this._labelId:null);getConnectedOverlayOrigin(){return this._textField||this._elementRef}_animateAndLockLabel(){this._hasFloatingLabel()&&(this.floatLabel="always")}_initializeControl(e){let i=this._control,r="mat-mdc-form-field-type-";e&&this._elementRef.nativeElement.classList.remove(r+e.controlType),i.controlType&&this._elementRef.nativeElement.classList.add(r+i.controlType),this._stateChanges?.unsubscribe(),this._stateChanges=i.stateChanges.subscribe(()=>{this._updateFocusState(),this._changeDetectorRef.markForCheck()}),this._describedByChanges?.unsubscribe(),this._describedByChanges=i.stateChanges.pipe(Ue([void 0,void 0]),se(()=>[i.errorState,i.userAriaDescribedBy]),hb(),ce(([[o,a],[s,l]])=>o!==s||a!==l)).subscribe(()=>this._syncDescribedByIds()),this._valueChanges?.unsubscribe(),i.ngControl&&i.ngControl.valueChanges&&(this._valueChanges=i.ngControl.valueChanges.pipe(we(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(),Je(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(){h2({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=oi(()=>!!this._labelChild());_shouldLabelFloat(){return this._hasFloatingLabel()?this._control.shouldLabelFloat||this._shouldAlwaysFloat():!1}_shouldForward(e){let i=this._control?this._control.ngControl:null;return i&&i[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 o=this._hintChildren?this._hintChildren.find(s=>s.align==="start"):null,a=this._hintChildren?this._hintChildren.find(s=>s.align==="end"):null;o?e.push(o.id):this._hintLabel&&e.push(this._hintLabelId),a&&e.push(a.id)}else this._errorChildren&&e.push(...this._errorChildren.map(o=>o.id));let i=this._control.describedByIds,r;if(i){let o=this._describedByIds||e;r=e.concat(i.filter(a=>a&&!o.includes(a)))}else r=e;this._control.setDescribedByIds(r),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,i=this._textPrefixContainer?.nativeElement,r=this._iconSuffixContainer?.nativeElement,o=this._textSuffixContainer?.nativeElement,a=e?.getBoundingClientRect().width??0,s=i?.getBoundingClientRect().width??0,l=r?.getBoundingClientRect().width??0,c=o?.getBoundingClientRect().width??0,d=this._currentDirection==="rtl"?"-1":"1",p=`${a+s}px`,b=`calc(${d} * (${p} + var(--mat-mdc-form-field-label-offset-x, 0px)))`,y=`var(--mat-mdc-form-field-label-transform, ${IJ} translateX(${b}))`,w=a+s+l+c;return[y,w]}_writeOutlinedLabelStyles(e){if(e!==null){let[i,r]=e;this._floatingLabel&&(this._floatingLabel.element.style.transform=i),r!==null&&this._notchedOutline?._setMaxWidth(r)}}_isAttachedToDom(){let e=this._elementRef.nativeElement;if(e.getRootNode){let i=e.getRootNode();return i&&i!==e}return document.documentElement.contains(e)}static \u0275fac=function(i){return new(i||t)};static \u0275cmp=E({type:t,selectors:[["mat-form-field"]],contentQueries:function(i,r,o){if(i&1&&(Fn(o,r._labelChild,Gi,5),xe(o,Pa,5),xe(o,qS,5),xe(o,YS,5),xe(o,GS,5),xe(o,og,5)),i&2){Go();let a;j(a=H())&&(r._formFieldControl=a.first),j(a=H())&&(r._prefixChildren=a),j(a=H())&&(r._suffixChildren=a),j(a=H())&&(r._errorChildren=a),j(a=H())&&(r._hintChildren=a)}},viewQuery:function(i,r){if(i&1&&(Nn(r._iconPrefixContainerSignal,GV,5),Nn(r._textPrefixContainerSignal,qV,5),Nn(r._iconSuffixContainerSignal,YV,5),Nn(r._textSuffixContainerSignal,QV,5),ie(lJ,5),ie(GV,5),ie(qV,5),ie(YV,5),ie(QV,5),ie(KV,5),ie(JV,5),ie(XV,5)),i&2){Go(4);let o;j(o=H())&&(r._textField=o.first),j(o=H())&&(r._iconPrefixContainer=o.first),j(o=H())&&(r._textPrefixContainer=o.first),j(o=H())&&(r._iconSuffixContainer=o.first),j(o=H())&&(r._textSuffixContainer=o.first),j(o=H())&&(r._floatingLabel=o.first),j(o=H())&&(r._notchedOutline=o.first),j(o=H())&&(r._lineRipple=o.first)}},hostAttrs:[1,"mat-mdc-form-field"],hostVars:38,hostBindings:function(i,r){i&2&&G("mat-mdc-form-field-label-always-float",r._shouldAlwaysFloat())("mat-mdc-form-field-has-icon-prefix",r._hasIconPrefix)("mat-mdc-form-field-has-icon-suffix",r._hasIconSuffix)("mat-form-field-invalid",r._control.errorState)("mat-form-field-disabled",r._control.disabled)("mat-form-field-autofilled",r._control.autofilled)("mat-form-field-appearance-fill",r.appearance=="fill")("mat-form-field-appearance-outline",r.appearance=="outline")("mat-form-field-hide-placeholder",r._hasFloatingLabel()&&!r._shouldLabelFloat())("mat-primary",r.color!=="accent"&&r.color!=="warn")("mat-accent",r.color==="accent")("mat-warn",r.color==="warn")("ng-untouched",r._shouldForward("untouched"))("ng-touched",r._shouldForward("touched"))("ng-pristine",r._shouldForward("pristine"))("ng-dirty",r._shouldForward("dirty"))("ng-valid",r._shouldForward("valid"))("ng-invalid",r._shouldForward("invalid"))("ng-pending",r._shouldForward("pending"))},inputs:{hideRequiredMarker:"hideRequiredMarker",color:"color",floatLabel:"floatLabel",appearance:"appearance",subscriptSizing:"subscriptSizing",hintLabel:"hintLabel"},exportAs:["matFormField"],features:[Ce([{provide:ta,useExisting:t},{provide:iB,useExisting:t}])],ngContentSelectors:dJ,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(i,r){if(i&1){let o=q();Se(cJ),A(0,hJ,1,1,"ng-template",null,0,vi),m(2,"div",6,1),S("click",function(s){return T(o),I(r._control.onContainerClick(s))}),V(4,pJ,1,0,"div",7),m(5,"div",8),V(6,_J,2,2,"div",9),V(7,bJ,3,0,"div",10),V(8,vJ,3,0,"div",11),m(9,"div",12),V(10,xJ,1,1,null,13),ne(11),h(),V(12,CJ,3,0,"div",14),V(13,wJ,3,0,"div",15),h(),V(14,DJ,1,0,"div",16),h(),m(15,"div",17),V(16,EJ,2,0,"div",18)(17,SJ,5,1,"div",19),h()}if(i&2){let o;f(2),G("mdc-text-field--filled",!r._hasOutline())("mdc-text-field--outlined",r._hasOutline())("mdc-text-field--no-label",!r._hasFloatingLabel())("mdc-text-field--disabled",r._control.disabled)("mdc-text-field--invalid",r._control.errorState),f(2),B(!r._hasOutline()&&!r._control.disabled?4:-1),f(2),B(r._hasOutline()?6:-1),f(),B(r._hasIconPrefix?7:-1),f(),B(r._hasTextPrefix?8:-1),f(2),B(!r._hasOutline()||r._forceDisplayInfixLabel()?10:-1),f(2),B(r._hasTextSuffix?12:-1),f(),B(r._hasIconSuffix?13:-1),f(),B(r._hasOutline()?-1:14),f(),G("mat-mdc-form-field-subscript-dynamic-size",r.subscriptSizing==="dynamic");let a=r._getSubscriptMessageType();f(),B((o=a)==="error"?16:o==="hint"?17:-1)}},dependencies:[KV,JV,Ln,XV,og],styles:[`.mdc-text-field{display:inline-flex;align-items:baseline;padding:0 16px;position:relative;box-sizing:border-box;overflow:hidden;will-change:opacity,transform,color;border-top-left-radius:4px;border-top-right-radius:4px;border-bottom-right-radius:0;border-bottom-left-radius:0}.mdc-text-field__input{width:100%;min-width:0;border:none;border-radius:0;background:none;padding:0;-moz-appearance:none;-webkit-appearance:none;height:28px}.mdc-text-field__input::-webkit-calendar-picker-indicator,.mdc-text-field__input::-webkit-search-cancel-button{display:none}.mdc-text-field__input::-ms-clear{display:none}.mdc-text-field__input:focus{outline:none}.mdc-text-field__input:invalid{box-shadow:none}.mdc-text-field__input::placeholder{opacity:0}.mdc-text-field__input::-moz-placeholder{opacity:0}.mdc-text-field__input::-webkit-input-placeholder{opacity:0}.mdc-text-field__input:-ms-input-placeholder{opacity:0}.mdc-text-field--no-label .mdc-text-field__input::placeholder,.mdc-text-field--focused .mdc-text-field__input::placeholder{opacity:1}.mdc-text-field--no-label .mdc-text-field__input::-moz-placeholder,.mdc-text-field--focused .mdc-text-field__input::-moz-placeholder{opacity:1}.mdc-text-field--no-label .mdc-text-field__input::-webkit-input-placeholder,.mdc-text-field--focused .mdc-text-field__input::-webkit-input-placeholder{opacity:1}.mdc-text-field--no-label .mdc-text-field__input:-ms-input-placeholder,.mdc-text-field--focused .mdc-text-field__input:-ms-input-placeholder{opacity:1}.mdc-text-field--disabled:not(.mdc-text-field--no-label) .mdc-text-field__input.mat-mdc-input-disabled-interactive::placeholder{opacity:0}.mdc-text-field--disabled:not(.mdc-text-field--no-label) .mdc-text-field__input.mat-mdc-input-disabled-interactive::-moz-placeholder{opacity:0}.mdc-text-field--disabled:not(.mdc-text-field--no-label) .mdc-text-field__input.mat-mdc-input-disabled-interactive::-webkit-input-placeholder{opacity:0}.mdc-text-field--disabled:not(.mdc-text-field--no-label) .mdc-text-field__input.mat-mdc-input-disabled-interactive:-ms-input-placeholder{opacity:0}.mdc-text-field--outlined .mdc-text-field__input,.mdc-text-field--filled.mdc-text-field--no-label .mdc-text-field__input{height:100%}.mdc-text-field--outlined .mdc-text-field__input{display:flex;border:none !important;background-color:rgba(0,0,0,0)}.mdc-text-field--disabled .mdc-text-field__input{pointer-events:auto}.mdc-text-field--filled:not(.mdc-text-field--disabled) .mdc-text-field__input{color:var(--mat-form-field-filled-input-text-color, var(--mat-sys-on-surface));caret-color:var(--mat-form-field-filled-caret-color, var(--mat-sys-primary))}.mdc-text-field--filled:not(.mdc-text-field--disabled) .mdc-text-field__input::placeholder{color:var(--mat-form-field-filled-input-text-placeholder-color, var(--mat-sys-on-surface-variant))}.mdc-text-field--filled:not(.mdc-text-field--disabled) .mdc-text-field__input::-moz-placeholder{color:var(--mat-form-field-filled-input-text-placeholder-color, var(--mat-sys-on-surface-variant))}.mdc-text-field--filled:not(.mdc-text-field--disabled) .mdc-text-field__input::-webkit-input-placeholder{color:var(--mat-form-field-filled-input-text-placeholder-color, var(--mat-sys-on-surface-variant))}.mdc-text-field--filled:not(.mdc-text-field--disabled) .mdc-text-field__input:-ms-input-placeholder{color:var(--mat-form-field-filled-input-text-placeholder-color, var(--mat-sys-on-surface-variant))}.mdc-text-field--outlined:not(.mdc-text-field--disabled) .mdc-text-field__input{color:var(--mat-form-field-outlined-input-text-color, var(--mat-sys-on-surface));caret-color:var(--mat-form-field-outlined-caret-color, var(--mat-sys-primary))}.mdc-text-field--outlined:not(.mdc-text-field--disabled) .mdc-text-field__input::placeholder{color:var(--mat-form-field-outlined-input-text-placeholder-color, var(--mat-sys-on-surface-variant))}.mdc-text-field--outlined:not(.mdc-text-field--disabled) .mdc-text-field__input::-moz-placeholder{color:var(--mat-form-field-outlined-input-text-placeholder-color, var(--mat-sys-on-surface-variant))}.mdc-text-field--outlined:not(.mdc-text-field--disabled) .mdc-text-field__input::-webkit-input-placeholder{color:var(--mat-form-field-outlined-input-text-placeholder-color, var(--mat-sys-on-surface-variant))}.mdc-text-field--outlined:not(.mdc-text-field--disabled) .mdc-text-field__input:-ms-input-placeholder{color:var(--mat-form-field-outlined-input-text-placeholder-color, var(--mat-sys-on-surface-variant))}.mdc-text-field--filled.mdc-text-field--invalid:not(.mdc-text-field--disabled) .mdc-text-field__input{caret-color:var(--mat-form-field-filled-error-caret-color, var(--mat-sys-error))}.mdc-text-field--outlined.mdc-text-field--invalid:not(.mdc-text-field--disabled) .mdc-text-field__input{caret-color:var(--mat-form-field-outlined-error-caret-color, var(--mat-sys-error))}.mdc-text-field--filled.mdc-text-field--disabled .mdc-text-field__input{color:var(--mat-form-field-filled-disabled-input-text-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent))}.mdc-text-field--outlined.mdc-text-field--disabled .mdc-text-field__input{color:var(--mat-form-field-outlined-disabled-input-text-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent))}@media(forced-colors: active){.mdc-text-field--disabled .mdc-text-field__input{background-color:Window}}.mdc-text-field--filled{height:56px;border-bottom-right-radius:0;border-bottom-left-radius:0;border-top-left-radius:var(--mat-form-field-filled-container-shape, var(--mat-sys-corner-extra-small));border-top-right-radius:var(--mat-form-field-filled-container-shape, var(--mat-sys-corner-extra-small))}.mdc-text-field--filled:not(.mdc-text-field--disabled){background-color:var(--mat-form-field-filled-container-color, var(--mat-sys-surface-variant))}.mdc-text-field--filled.mdc-text-field--disabled{background-color:var(--mat-form-field-filled-disabled-container-color, color-mix(in srgb, var(--mat-sys-on-surface) 4%, transparent))}.mdc-text-field--outlined{height:56px;overflow:visible;padding-right:max(16px,var(--mat-form-field-outlined-container-shape, var(--mat-sys-corner-extra-small)));padding-left:max(16px,var(--mat-form-field-outlined-container-shape, var(--mat-sys-corner-extra-small)) + 4px)}[dir=rtl] .mdc-text-field--outlined{padding-right:max(16px,var(--mat-form-field-outlined-container-shape, var(--mat-sys-corner-extra-small)) + 4px);padding-left:max(16px,var(--mat-form-field-outlined-container-shape, var(--mat-sys-corner-extra-small)))}.mdc-floating-label{position:absolute;left:0;transform-origin:left top;line-height:1.15rem;text-align:left;text-overflow:ellipsis;white-space:nowrap;cursor:text;overflow:hidden;will-change:transform}[dir=rtl] .mdc-floating-label{right:0;left:auto;transform-origin:right top;text-align:right}.mdc-text-field .mdc-floating-label{top:50%;transform:translateY(-50%);pointer-events:none}.mdc-notched-outline .mdc-floating-label{display:inline-block;position:relative;max-width:100%}.mdc-text-field--outlined .mdc-floating-label{left:4px;right:auto}[dir=rtl] .mdc-text-field--outlined .mdc-floating-label{left:auto;right:4px}.mdc-text-field--filled .mdc-floating-label{left:16px;right:auto}[dir=rtl] .mdc-text-field--filled .mdc-floating-label{left:auto;right:16px}.mdc-text-field--disabled .mdc-floating-label{cursor:default}@media(forced-colors: active){.mdc-text-field--disabled .mdc-floating-label{z-index:1}}.mdc-text-field--filled.mdc-text-field--no-label .mdc-floating-label{display:none}.mdc-text-field--filled:not(.mdc-text-field--disabled) .mdc-floating-label{color:var(--mat-form-field-filled-label-text-color, var(--mat-sys-on-surface-variant))}.mdc-text-field--filled:not(.mdc-text-field--disabled).mdc-text-field--focused .mdc-floating-label{color:var(--mat-form-field-filled-focus-label-text-color, var(--mat-sys-primary))}.mdc-text-field--filled:not(.mdc-text-field--disabled):not(.mdc-text-field--focused):hover .mdc-floating-label{color:var(--mat-form-field-filled-hover-label-text-color, var(--mat-sys-on-surface-variant))}.mdc-text-field--filled.mdc-text-field--disabled .mdc-floating-label{color:var(--mat-form-field-filled-disabled-label-text-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent))}.mdc-text-field--filled:not(.mdc-text-field--disabled).mdc-text-field--invalid .mdc-floating-label{color:var(--mat-form-field-filled-error-label-text-color, var(--mat-sys-error))}.mdc-text-field--filled:not(.mdc-text-field--disabled).mdc-text-field--invalid.mdc-text-field--focused .mdc-floating-label{color:var(--mat-form-field-filled-error-focus-label-text-color, var(--mat-sys-error))}.mdc-text-field--filled:not(.mdc-text-field--disabled).mdc-text-field--invalid:not(.mdc-text-field--disabled):hover .mdc-floating-label{color:var(--mat-form-field-filled-error-hover-label-text-color, var(--mat-sys-on-error-container))}.mdc-text-field--filled .mdc-floating-label{font-family:var(--mat-form-field-filled-label-text-font, var(--mat-sys-body-large-font));font-size:var(--mat-form-field-filled-label-text-size, var(--mat-sys-body-large-size));font-weight:var(--mat-form-field-filled-label-text-weight, var(--mat-sys-body-large-weight));letter-spacing:var(--mat-form-field-filled-label-text-tracking, var(--mat-sys-body-large-tracking))}.mdc-text-field--outlined:not(.mdc-text-field--disabled) .mdc-floating-label{color:var(--mat-form-field-outlined-label-text-color, var(--mat-sys-on-surface-variant))}.mdc-text-field--outlined:not(.mdc-text-field--disabled).mdc-text-field--focused .mdc-floating-label{color:var(--mat-form-field-outlined-focus-label-text-color, var(--mat-sys-primary))}.mdc-text-field--outlined:not(.mdc-text-field--disabled):not(.mdc-text-field--focused):hover .mdc-floating-label{color:var(--mat-form-field-outlined-hover-label-text-color, var(--mat-sys-on-surface))}.mdc-text-field--outlined.mdc-text-field--disabled .mdc-floating-label{color:var(--mat-form-field-outlined-disabled-label-text-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent))}.mdc-text-field--outlined:not(.mdc-text-field--disabled).mdc-text-field--invalid .mdc-floating-label{color:var(--mat-form-field-outlined-error-label-text-color, var(--mat-sys-error))}.mdc-text-field--outlined:not(.mdc-text-field--disabled).mdc-text-field--invalid.mdc-text-field--focused .mdc-floating-label{color:var(--mat-form-field-outlined-error-focus-label-text-color, var(--mat-sys-error))}.mdc-text-field--outlined:not(.mdc-text-field--disabled).mdc-text-field--invalid:not(.mdc-text-field--disabled):hover .mdc-floating-label{color:var(--mat-form-field-outlined-error-hover-label-text-color, var(--mat-sys-on-error-container))}.mdc-text-field--outlined .mdc-floating-label{font-family:var(--mat-form-field-outlined-label-text-font, var(--mat-sys-body-large-font));font-size:var(--mat-form-field-outlined-label-text-size, var(--mat-sys-body-large-size));font-weight:var(--mat-form-field-outlined-label-text-weight, var(--mat-sys-body-large-weight));letter-spacing:var(--mat-form-field-outlined-label-text-tracking, var(--mat-sys-body-large-tracking))}.mdc-floating-label--float-above{cursor:auto;transform:translateY(-106%) scale(0.75)}.mdc-text-field--filled .mdc-floating-label--float-above{transform:translateY(-106%) scale(0.75)}.mdc-text-field--outlined .mdc-floating-label--float-above{transform:translateY(-37.25px) scale(1);font-size:.75rem}.mdc-notched-outline .mdc-floating-label--float-above{text-overflow:clip}.mdc-notched-outline--upgraded .mdc-floating-label--float-above{max-width:133.3333333333%}.mdc-text-field--outlined.mdc-notched-outline--upgraded .mdc-floating-label--float-above,.mdc-text-field--outlined .mdc-notched-outline--upgraded .mdc-floating-label--float-above{transform:translateY(-34.75px) scale(0.75)}.mdc-text-field--outlined.mdc-notched-outline--upgraded .mdc-floating-label--float-above,.mdc-text-field--outlined .mdc-notched-outline--upgraded .mdc-floating-label--float-above{font-size:1rem}.mdc-floating-label--required:not(.mdc-floating-label--hide-required-marker)::after{margin-left:1px;margin-right:0;content:"*"}[dir=rtl] .mdc-floating-label--required:not(.mdc-floating-label--hide-required-marker)::after{margin-left:0;margin-right:1px}.mdc-notched-outline{display:flex;position:absolute;top:0;right:0;left:0;box-sizing:border-box;width:100%;max-width:100%;height:100%;text-align:left;pointer-events:none}[dir=rtl] .mdc-notched-outline{text-align:right}.mdc-text-field--outlined .mdc-notched-outline{z-index:1}.mat-mdc-notch-piece{box-sizing:border-box;height:100%;pointer-events:none;border-top:1px solid;border-bottom:1px solid}.mdc-text-field--focused .mat-mdc-notch-piece{border-width:2px}.mdc-text-field--outlined:not(.mdc-text-field--disabled) .mat-mdc-notch-piece{border-color:var(--mat-form-field-outlined-outline-color, var(--mat-sys-outline));border-width:var(--mat-form-field-outlined-outline-width, 1px)}.mdc-text-field--outlined:not(.mdc-text-field--disabled):not(.mdc-text-field--focused):hover .mat-mdc-notch-piece{border-color:var(--mat-form-field-outlined-hover-outline-color, var(--mat-sys-on-surface))}.mdc-text-field--outlined:not(.mdc-text-field--disabled).mdc-text-field--focused .mat-mdc-notch-piece{border-color:var(--mat-form-field-outlined-focus-outline-color, var(--mat-sys-primary))}.mdc-text-field--outlined.mdc-text-field--disabled .mat-mdc-notch-piece{border-color:var(--mat-form-field-outlined-disabled-outline-color, color-mix(in srgb, var(--mat-sys-on-surface) 12%, transparent))}.mdc-text-field--outlined:not(.mdc-text-field--disabled).mdc-text-field--invalid .mat-mdc-notch-piece{border-color:var(--mat-form-field-outlined-error-outline-color, var(--mat-sys-error))}.mdc-text-field--outlined:not(.mdc-text-field--disabled).mdc-text-field--invalid:not(.mdc-text-field--focused):hover .mdc-notched-outline .mat-mdc-notch-piece{border-color:var(--mat-form-field-outlined-error-hover-outline-color, var(--mat-sys-on-error-container))}.mdc-text-field--outlined:not(.mdc-text-field--disabled).mdc-text-field--invalid.mdc-text-field--focused .mat-mdc-notch-piece{border-color:var(--mat-form-field-outlined-error-focus-outline-color, var(--mat-sys-error))}.mdc-text-field--outlined:not(.mdc-text-field--disabled).mdc-text-field--focused .mdc-notched-outline .mat-mdc-notch-piece{border-width:var(--mat-form-field-outlined-focus-outline-width, 2px)}.mdc-notched-outline__leading{border-left:1px solid;border-right:none;border-top-right-radius:0;border-bottom-right-radius:0;border-top-left-radius:var(--mat-form-field-outlined-container-shape, var(--mat-sys-corner-extra-small));border-bottom-left-radius:var(--mat-form-field-outlined-container-shape, var(--mat-sys-corner-extra-small))}.mdc-text-field--outlined .mdc-notched-outline .mdc-notched-outline__leading{width:max(12px,var(--mat-form-field-outlined-container-shape, var(--mat-sys-corner-extra-small)))}[dir=rtl] .mdc-notched-outline__leading{border-left:none;border-right:1px solid;border-bottom-left-radius:0;border-top-left-radius:0;border-top-right-radius:var(--mat-form-field-outlined-container-shape, var(--mat-sys-corner-extra-small));border-bottom-right-radius:var(--mat-form-field-outlined-container-shape, var(--mat-sys-corner-extra-small))}.mdc-notched-outline__trailing{flex-grow:1;border-left:none;border-right:1px solid;border-top-left-radius:0;border-bottom-left-radius:0;border-top-right-radius:var(--mat-form-field-outlined-container-shape, var(--mat-sys-corner-extra-small));border-bottom-right-radius:var(--mat-form-field-outlined-container-shape, var(--mat-sys-corner-extra-small))}[dir=rtl] .mdc-notched-outline__trailing{border-left:1px solid;border-right:none;border-top-right-radius:0;border-bottom-right-radius:0;border-top-left-radius:var(--mat-form-field-outlined-container-shape, var(--mat-sys-corner-extra-small));border-bottom-left-radius:var(--mat-form-field-outlined-container-shape, var(--mat-sys-corner-extra-small))}.mdc-notched-outline__notch{flex:0 0 auto;width:auto}.mdc-text-field--outlined .mdc-notched-outline .mdc-notched-outline__notch{max-width:min(var(--mat-form-field-notch-max-width, 100%),calc(100% - max(12px, var(--mat-form-field-outlined-container-shape, var(--mat-sys-corner-extra-small))) * 2))}.mdc-text-field--outlined .mdc-notched-outline--notched .mdc-notched-outline__notch{max-width:min(100%,calc(100% - max(12px, var(--mat-form-field-outlined-container-shape, var(--mat-sys-corner-extra-small))) * 2))}.mdc-text-field--outlined .mdc-notched-outline--notched .mdc-notched-outline__notch{padding-top:1px}.mdc-text-field--focused.mdc-text-field--outlined .mdc-notched-outline--notched .mdc-notched-outline__notch{padding-top:2px}.mdc-notched-outline--notched .mdc-notched-outline__notch{padding-left:0;padding-right:8px;border-top:none}[dir=rtl] .mdc-notched-outline--notched .mdc-notched-outline__notch{padding-left:8px;padding-right:0}.mdc-notched-outline--no-label .mdc-notched-outline__notch{display:none}.mdc-line-ripple::before,.mdc-line-ripple::after{position:absolute;bottom:0;left:0;width:100%;border-bottom-style:solid;content:""}.mdc-line-ripple::before{z-index:1;border-bottom-width:var(--mat-form-field-filled-active-indicator-height, 1px)}.mdc-text-field--filled:not(.mdc-text-field--disabled) .mdc-line-ripple::before{border-bottom-color:var(--mat-form-field-filled-active-indicator-color, var(--mat-sys-on-surface-variant))}.mdc-text-field--filled:not(.mdc-text-field--disabled):not(.mdc-text-field--focused):hover .mdc-line-ripple::before{border-bottom-color:var(--mat-form-field-filled-hover-active-indicator-color, var(--mat-sys-on-surface))}.mdc-text-field--filled.mdc-text-field--disabled .mdc-line-ripple::before{border-bottom-color:var(--mat-form-field-filled-disabled-active-indicator-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent))}.mdc-text-field--filled:not(.mdc-text-field--disabled).mdc-text-field--invalid .mdc-line-ripple::before{border-bottom-color:var(--mat-form-field-filled-error-active-indicator-color, var(--mat-sys-error))}.mdc-text-field--filled:not(.mdc-text-field--disabled).mdc-text-field--invalid:not(.mdc-text-field--focused):hover .mdc-line-ripple::before{border-bottom-color:var(--mat-form-field-filled-error-hover-active-indicator-color, var(--mat-sys-on-error-container))}.mdc-line-ripple::after{transform:scaleX(0);opacity:0;z-index:2}.mdc-text-field--filled .mdc-line-ripple::after{border-bottom-width:var(--mat-form-field-filled-focus-active-indicator-height, 2px)}.mdc-text-field--filled:not(.mdc-text-field--disabled) .mdc-line-ripple::after{border-bottom-color:var(--mat-form-field-filled-focus-active-indicator-color, var(--mat-sys-primary))}.mdc-text-field--filled.mdc-text-field--invalid:not(.mdc-text-field--disabled) .mdc-line-ripple::after{border-bottom-color:var(--mat-form-field-filled-error-focus-active-indicator-color, var(--mat-sys-error))}.mdc-line-ripple--active::after{transform:scaleX(1);opacity:1}.mdc-line-ripple--deactivating::after{opacity:0}.mdc-text-field--disabled{pointer-events:none}.mat-mdc-form-field-textarea-control{vertical-align:middle;resize:vertical;box-sizing:border-box;height:auto;margin:0;padding:0;border:none;overflow:auto}.mat-mdc-form-field-input-control.mat-mdc-form-field-input-control{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;font:inherit;letter-spacing:inherit;text-decoration:inherit;text-transform:inherit;border:none}.mat-mdc-form-field .mat-mdc-floating-label.mdc-floating-label{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;line-height:normal;pointer-events:all;will-change:auto}.mat-mdc-form-field:not(.mat-form-field-disabled) .mat-mdc-floating-label.mdc-floating-label{cursor:inherit}.mdc-text-field--no-label:not(.mdc-text-field--textarea) .mat-mdc-form-field-input-control.mdc-text-field__input,.mat-mdc-text-field-wrapper .mat-mdc-form-field-input-control{height:auto}.mat-mdc-text-field-wrapper .mat-mdc-form-field-input-control.mdc-text-field__input[type=color]{height:23px}.mat-mdc-text-field-wrapper{height:auto;flex:auto;will-change:auto}.mat-mdc-form-field-has-icon-prefix .mat-mdc-text-field-wrapper{padding-left:0;--mat-mdc-form-field-label-offset-x: -16px}.mat-mdc-form-field-has-icon-suffix .mat-mdc-text-field-wrapper{padding-right:0}[dir=rtl] .mat-mdc-text-field-wrapper{padding-left:16px;padding-right:16px}[dir=rtl] .mat-mdc-form-field-has-icon-suffix .mat-mdc-text-field-wrapper{padding-left:0}[dir=rtl] .mat-mdc-form-field-has-icon-prefix .mat-mdc-text-field-wrapper{padding-right:0}.mat-form-field-disabled .mdc-text-field__input::placeholder{color:var(--mat-form-field-disabled-input-text-placeholder-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent))}.mat-form-field-disabled .mdc-text-field__input::-moz-placeholder{color:var(--mat-form-field-disabled-input-text-placeholder-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent))}.mat-form-field-disabled .mdc-text-field__input::-webkit-input-placeholder{color:var(--mat-form-field-disabled-input-text-placeholder-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent))}.mat-form-field-disabled .mdc-text-field__input:-ms-input-placeholder{color:var(--mat-form-field-disabled-input-text-placeholder-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent))}.mat-mdc-form-field-label-always-float .mdc-text-field__input::placeholder{transition-delay:40ms;transition-duration:110ms;opacity:1}.mat-mdc-text-field-wrapper .mat-mdc-form-field-infix .mat-mdc-floating-label{left:auto;right:auto}.mat-mdc-text-field-wrapper.mdc-text-field--outlined .mdc-text-field__input{display:inline-block}.mat-mdc-form-field .mat-mdc-text-field-wrapper.mdc-text-field .mdc-notched-outline__notch{padding-top:0}.mat-mdc-form-field.mat-mdc-form-field.mat-mdc-form-field.mat-mdc-form-field.mat-mdc-form-field.mat-mdc-form-field .mdc-notched-outline__notch{border-left:1px solid rgba(0,0,0,0)}[dir=rtl] .mat-mdc-form-field.mat-mdc-form-field.mat-mdc-form-field.mat-mdc-form-field.mat-mdc-form-field.mat-mdc-form-field .mdc-notched-outline__notch{border-left:none;border-right:1px solid rgba(0,0,0,0)}.mat-mdc-form-field-infix{min-height:var(--mat-form-field-container-height, 56px);padding-top:var(--mat-form-field-filled-with-label-container-padding-top, 24px);padding-bottom:var(--mat-form-field-filled-with-label-container-padding-bottom, 8px)}.mdc-text-field--outlined .mat-mdc-form-field-infix,.mdc-text-field--no-label .mat-mdc-form-field-infix{padding-top:var(--mat-form-field-container-vertical-padding, 16px);padding-bottom:var(--mat-form-field-container-vertical-padding, 16px)}.mat-mdc-text-field-wrapper .mat-mdc-form-field-flex .mat-mdc-floating-label{top:calc(var(--mat-form-field-container-height, 56px)/2)}.mdc-text-field--filled .mat-mdc-floating-label{display:var(--mat-form-field-filled-label-display, block)}.mat-mdc-text-field-wrapper.mdc-text-field--outlined .mdc-notched-outline--upgraded .mdc-floating-label--float-above{--mat-mdc-form-field-label-transform: translateY(calc(calc(6.75px + var(--mat-form-field-container-height, 56px) / 2) * -1)) scale(var(--mat-mdc-form-field-floating-label-scale, 0.75));transform:var(--mat-mdc-form-field-label-transform)}@keyframes _mat-form-field-subscript-animation{from{opacity:0;transform:translateY(-5px)}to{opacity:1;transform:translateY(0)}}.mat-mdc-form-field-subscript-wrapper{box-sizing:border-box;width:100%;position:relative}.mat-mdc-form-field-hint-wrapper,.mat-mdc-form-field-error-wrapper{position:absolute;top:0;left:0;right:0;padding:0 16px;opacity:1;transform:translateY(0);animation:_mat-form-field-subscript-animation 0ms cubic-bezier(0.55, 0, 0.55, 0.2)}.mat-mdc-form-field-subscript-dynamic-size .mat-mdc-form-field-hint-wrapper,.mat-mdc-form-field-subscript-dynamic-size .mat-mdc-form-field-error-wrapper{position:static}.mat-mdc-form-field-bottom-align::before{content:"";display:inline-block;height:16px}.mat-mdc-form-field-bottom-align.mat-mdc-form-field-subscript-dynamic-size::before{content:unset}.mat-mdc-form-field-hint-end{order:1}.mat-mdc-form-field-hint-wrapper{display:flex}.mat-mdc-form-field-hint-spacer{flex:1 0 1em}.mat-mdc-form-field-error{display:block;color:var(--mat-form-field-error-text-color, var(--mat-sys-error))}.mat-mdc-form-field-subscript-wrapper,.mat-mdc-form-field-bottom-align::before{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;font-family:var(--mat-form-field-subscript-text-font, var(--mat-sys-body-small-font));line-height:var(--mat-form-field-subscript-text-line-height, var(--mat-sys-body-small-line-height));font-size:var(--mat-form-field-subscript-text-size, var(--mat-sys-body-small-size));letter-spacing:var(--mat-form-field-subscript-text-tracking, var(--mat-sys-body-small-tracking));font-weight:var(--mat-form-field-subscript-text-weight, var(--mat-sys-body-small-weight))}.mat-mdc-form-field-focus-overlay{top:0;left:0;right:0;bottom:0;position:absolute;opacity:0;pointer-events:none;background-color:var(--mat-form-field-state-layer-color, var(--mat-sys-on-surface))}.mat-mdc-text-field-wrapper:hover .mat-mdc-form-field-focus-overlay{opacity:var(--mat-form-field-hover-state-layer-opacity, var(--mat-sys-hover-state-layer-opacity))}.mat-mdc-form-field.mat-focused .mat-mdc-form-field-focus-overlay{opacity:var(--mat-form-field-focus-state-layer-opacity, 0)}select.mat-mdc-form-field-input-control{-moz-appearance:none;-webkit-appearance:none;background-color:rgba(0,0,0,0);display:inline-flex;box-sizing:border-box}select.mat-mdc-form-field-input-control:not(:disabled){cursor:pointer}select.mat-mdc-form-field-input-control:not(.mat-mdc-native-select-inline) option{color:var(--mat-form-field-select-option-text-color, var(--mat-sys-neutral10))}select.mat-mdc-form-field-input-control:not(.mat-mdc-native-select-inline) option:disabled{color:var(--mat-form-field-select-disabled-option-text-color, color-mix(in srgb, var(--mat-sys-neutral10) 38%, transparent))}.mat-mdc-form-field-type-mat-native-select .mat-mdc-form-field-infix::after{content:"";width:0;height:0;border-left:5px solid rgba(0,0,0,0);border-right:5px solid rgba(0,0,0,0);border-top:5px solid;position:absolute;right:0;top:50%;margin-top:-2.5px;pointer-events:none;color:var(--mat-form-field-enabled-select-arrow-color, var(--mat-sys-on-surface-variant))}[dir=rtl] .mat-mdc-form-field-type-mat-native-select .mat-mdc-form-field-infix::after{right:auto;left:0}.mat-mdc-form-field-type-mat-native-select.mat-focused .mat-mdc-form-field-infix::after{color:var(--mat-form-field-focus-select-arrow-color, var(--mat-sys-primary))}.mat-mdc-form-field-type-mat-native-select.mat-form-field-disabled .mat-mdc-form-field-infix::after{color:var(--mat-form-field-disabled-select-arrow-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent))}.mat-mdc-form-field-type-mat-native-select .mat-mdc-form-field-input-control{padding-right:15px}[dir=rtl] .mat-mdc-form-field-type-mat-native-select .mat-mdc-form-field-input-control{padding-right:0;padding-left:15px}@media(forced-colors: active){.mat-form-field-appearance-fill .mat-mdc-text-field-wrapper{outline:solid 1px}}@media(forced-colors: active){.mat-form-field-appearance-fill.mat-form-field-disabled .mat-mdc-text-field-wrapper{outline-color:GrayText}}@media(forced-colors: active){.mat-form-field-appearance-fill.mat-focused .mat-mdc-text-field-wrapper{outline:dashed 3px}}@media(forced-colors: active){.mat-mdc-form-field.mat-focused .mdc-notched-outline{border:dashed 3px}}.mat-mdc-form-field-input-control[type=date],.mat-mdc-form-field-input-control[type=datetime],.mat-mdc-form-field-input-control[type=datetime-local],.mat-mdc-form-field-input-control[type=month],.mat-mdc-form-field-input-control[type=week],.mat-mdc-form-field-input-control[type=time]{line-height:1}.mat-mdc-form-field-input-control::-webkit-datetime-edit{line-height:1;padding:0;margin-bottom:-2px}.mat-mdc-form-field{--mat-mdc-form-field-floating-label-scale: 0.75;display:inline-flex;flex-direction:column;min-width:0;text-align:left;-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;font-family:var(--mat-form-field-container-text-font, var(--mat-sys-body-large-font));line-height:var(--mat-form-field-container-text-line-height, var(--mat-sys-body-large-line-height));font-size:var(--mat-form-field-container-text-size, var(--mat-sys-body-large-size));letter-spacing:var(--mat-form-field-container-text-tracking, var(--mat-sys-body-large-tracking));font-weight:var(--mat-form-field-container-text-weight, var(--mat-sys-body-large-weight))}.mat-mdc-form-field .mdc-text-field--outlined .mdc-floating-label--float-above{font-size:calc(var(--mat-form-field-outlined-label-text-populated-size)*var(--mat-mdc-form-field-floating-label-scale))}.mat-mdc-form-field .mdc-text-field--outlined .mdc-notched-outline--upgraded .mdc-floating-label--float-above{font-size:var(--mat-form-field-outlined-label-text-populated-size)}[dir=rtl] .mat-mdc-form-field{text-align:right}.mat-mdc-form-field-flex{display:inline-flex;align-items:baseline;box-sizing:border-box;width:100%}.mat-mdc-text-field-wrapper{width:100%;z-index:0}.mat-mdc-form-field-icon-prefix,.mat-mdc-form-field-icon-suffix{align-self:center;line-height:0;pointer-events:auto;position:relative;z-index:1}.mat-mdc-form-field-icon-prefix>.mat-icon,.mat-mdc-form-field-icon-suffix>.mat-icon{padding:0 12px;box-sizing:content-box}.mat-mdc-form-field-icon-prefix{color:var(--mat-form-field-leading-icon-color, var(--mat-sys-on-surface-variant))}.mat-form-field-disabled .mat-mdc-form-field-icon-prefix{color:var(--mat-form-field-disabled-leading-icon-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent))}.mat-mdc-form-field-icon-suffix{color:var(--mat-form-field-trailing-icon-color, var(--mat-sys-on-surface-variant))}.mat-form-field-disabled .mat-mdc-form-field-icon-suffix{color:var(--mat-form-field-disabled-trailing-icon-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent))}.mat-form-field-invalid .mat-mdc-form-field-icon-suffix{color:var(--mat-form-field-error-trailing-icon-color, var(--mat-sys-error))}.mat-form-field-invalid:not(.mat-focused):not(.mat-form-field-disabled) .mat-mdc-text-field-wrapper:hover .mat-mdc-form-field-icon-suffix{color:var(--mat-form-field-error-hover-trailing-icon-color, var(--mat-sys-on-error-container))}.mat-form-field-invalid.mat-focused .mat-mdc-text-field-wrapper .mat-mdc-form-field-icon-suffix{color:var(--mat-form-field-error-focus-trailing-icon-color, var(--mat-sys-error))}.mat-mdc-form-field-icon-prefix,[dir=rtl] .mat-mdc-form-field-icon-suffix{padding:0 4px 0 0}.mat-mdc-form-field-icon-suffix,[dir=rtl] .mat-mdc-form-field-icon-prefix{padding:0 0 0 4px}.mat-mdc-form-field-subscript-wrapper .mat-icon,.mat-mdc-form-field label .mat-icon{width:1em;height:1em;font-size:inherit}.mat-mdc-form-field-infix{flex:auto;min-width:0;width:180px;position:relative;box-sizing:border-box}.mat-mdc-form-field-infix:has(textarea[cols]){width:auto}.mat-mdc-form-field .mdc-notched-outline__notch{margin-left:-1px;-webkit-clip-path:inset(-9em -999em -9em 1px);clip-path:inset(-9em -999em -9em 1px)}[dir=rtl] .mat-mdc-form-field .mdc-notched-outline__notch{margin-left:0;margin-right:-1px;-webkit-clip-path:inset(-9em 1px -9em -999em);clip-path:inset(-9em 1px -9em -999em)}.mat-mdc-form-field.mat-form-field-animations-enabled .mdc-floating-label{transition:transform 150ms cubic-bezier(0.4, 0, 0.2, 1),color 150ms cubic-bezier(0.4, 0, 0.2, 1)}.mat-mdc-form-field.mat-form-field-animations-enabled .mdc-text-field__input{transition:opacity 150ms cubic-bezier(0.4, 0, 0.2, 1)}.mat-mdc-form-field.mat-form-field-animations-enabled .mdc-text-field__input::placeholder{transition:opacity 67ms cubic-bezier(0.4, 0, 0.2, 1)}.mat-mdc-form-field.mat-form-field-animations-enabled .mdc-text-field__input::-moz-placeholder{transition:opacity 67ms cubic-bezier(0.4, 0, 0.2, 1)}.mat-mdc-form-field.mat-form-field-animations-enabled .mdc-text-field__input::-webkit-input-placeholder{transition:opacity 67ms cubic-bezier(0.4, 0, 0.2, 1)}.mat-mdc-form-field.mat-form-field-animations-enabled .mdc-text-field__input:-ms-input-placeholder{transition:opacity 67ms cubic-bezier(0.4, 0, 0.2, 1)}.mat-mdc-form-field.mat-form-field-animations-enabled.mdc-text-field--no-label .mdc-text-field__input::placeholder,.mat-mdc-form-field.mat-form-field-animations-enabled.mdc-text-field--focused .mdc-text-field__input::placeholder{transition-delay:40ms;transition-duration:110ms}.mat-mdc-form-field.mat-form-field-animations-enabled.mdc-text-field--no-label .mdc-text-field__input::-moz-placeholder,.mat-mdc-form-field.mat-form-field-animations-enabled.mdc-text-field--focused .mdc-text-field__input::-moz-placeholder{transition-delay:40ms;transition-duration:110ms}.mat-mdc-form-field.mat-form-field-animations-enabled.mdc-text-field--no-label .mdc-text-field__input::-webkit-input-placeholder,.mat-mdc-form-field.mat-form-field-animations-enabled.mdc-text-field--focused .mdc-text-field__input::-webkit-input-placeholder{transition-delay:40ms;transition-duration:110ms}.mat-mdc-form-field.mat-form-field-animations-enabled.mdc-text-field--no-label .mdc-text-field__input:-ms-input-placeholder,.mat-mdc-form-field.mat-form-field-animations-enabled.mdc-text-field--focused .mdc-text-field__input:-ms-input-placeholder{transition-delay:40ms;transition-duration:110ms}.mat-mdc-form-field.mat-form-field-animations-enabled .mdc-text-field--filled:not(.mdc-ripple-upgraded):focus .mdc-text-field__ripple::before{transition-duration:75ms}.mat-mdc-form-field.mat-form-field-animations-enabled .mdc-line-ripple::after{transition:transform 180ms cubic-bezier(0.4, 0, 0.2, 1),opacity 180ms cubic-bezier(0.4, 0, 0.2, 1)}.mat-mdc-form-field.mat-form-field-animations-enabled .mat-mdc-form-field-hint-wrapper,.mat-mdc-form-field.mat-form-field-animations-enabled .mat-mdc-form-field-error-wrapper{animation-duration:300ms}.mdc-notched-outline .mdc-floating-label{max-width:calc(100% + 1px)}.mdc-notched-outline--upgraded .mdc-floating-label--float-above{max-width:calc(133.3333333333% + 1px)} -`],encapsulation:2,changeDetection:0})}return t})();var ag=class{};function sg(t){return t&&typeof t.connect=="function"&&!(t instanceof Rl)}var uc=(function(t){return t[t.REPLACED=0]="REPLACED",t[t.INSERTED=1]="INSERTED",t[t.MOVED=2]="MOVED",t[t.REMOVED=3]="REMOVED",t})(uc||{}),xh=new O("_ViewRepeater");var AJ=20,Ds=(()=>{class t{_ngZone=u(ae);_platform=u(qe);_renderer=u(mn).createRenderer(null,null);_cleanupGlobalListener;constructor(){}_scrolled=new z;_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 i=this.scrollContainers.get(e);i&&(i.unsubscribe(),this.scrollContainers.delete(e))}scrolled(e=AJ){return this._platform.isBrowser?new Fe(i=>{this._cleanupGlobalListener||(this._cleanupGlobalListener=this._ngZone.runOutsideAngular(()=>this._renderer.listen("document","scroll",()=>this._scrolled.next())));let r=e>0?this._scrolled.pipe(Nl(e)).subscribe(i):this._scrolled.subscribe(i);return this._scrolledCount++,()=>{r.unsubscribe(),this._scrolledCount--,this._scrolledCount||(this._cleanupGlobalListener?.(),this._cleanupGlobalListener=void 0)}}):Q()}ngOnDestroy(){this._cleanupGlobalListener?.(),this._cleanupGlobalListener=void 0,this.scrollContainers.forEach((e,i)=>this.deregister(i)),this._scrolled.complete()}ancestorScrolled(e,i){let r=this.getAncestorScrollContainers(e);return this.scrolled(i).pipe(ce(o=>!o||r.indexOf(o)>-1))}getAncestorScrollContainers(e){let i=[];return this.scrollContainers.forEach((r,o)=>{this._scrollableContainsElement(o,e)&&i.push(o)}),i}_scrollableContainsElement(e,i){let r=jr(i),o=e.getElementRef().nativeElement;do if(r==o)return!0;while(r=r.parentElement);return!1}static \u0275fac=function(i){return new(i||t)};static \u0275prov=R({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),Fa=(()=>{class t{elementRef=u(Y);scrollDispatcher=u(Ds);ngZone=u(ae);dir=u(Bt,{optional:!0});_scrollElement=this.elementRef.nativeElement;_destroyed=new z;_renderer=u(ze);_cleanupScroll;_elementScrolled=new z;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 i=this.elementRef.nativeElement,r=this.dir&&this.dir.value=="rtl";e.left==null&&(e.left=r?e.end:e.start),e.right==null&&(e.right=r?e.start:e.end),e.bottom!=null&&(e.top=i.scrollHeight-i.clientHeight-e.bottom),r&&oh()!=Oa.NORMAL?(e.left!=null&&(e.right=i.scrollWidth-i.clientWidth-e.left),oh()==Oa.INVERTED?e.left=e.right:oh()==Oa.NEGATED&&(e.left=e.right?-e.right:e.right)):e.right!=null&&(e.left=i.scrollWidth-i.clientWidth-e.right),this._applyScrollToOptions(e)}_applyScrollToOptions(e){let i=this.elementRef.nativeElement;Kv()?i.scrollTo(e):(e.top!=null&&(i.scrollTop=e.top),e.left!=null&&(i.scrollLeft=e.left))}measureScrollOffset(e){let i="left",r="right",o=this.elementRef.nativeElement;if(e=="top")return o.scrollTop;if(e=="bottom")return o.scrollHeight-o.clientHeight-o.scrollTop;let a=this.dir&&this.dir.value=="rtl";return e=="start"?e=a?r:i:e=="end"&&(e=a?i:r),a&&oh()==Oa.INVERTED?e==i?o.scrollWidth-o.clientWidth-o.scrollLeft:o.scrollLeft:a&&oh()==Oa.NEGATED?e==i?o.scrollLeft+o.scrollWidth-o.clientWidth:-o.scrollLeft:e==i?o.scrollLeft:o.scrollWidth-o.clientWidth-o.scrollLeft}static \u0275fac=function(i){return new(i||t)};static \u0275dir=P({type:t,selectors:[["","cdk-scrollable",""],["","cdkScrollable",""]]})}return t})(),OJ=20,tr=(()=>{class t{_platform=u(qe);_listeners;_viewportSize;_change=new z;_document=u(_e);constructor(){let e=u(ae),i=u(mn).createRenderer(null,null);e.runOutsideAngular(()=>{if(this._platform.isBrowser){let r=o=>this._change.next(o);this._listeners=[i.listen("window","resize",r),i.listen("window","orientationchange",r)]}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:i,height:r}=this.getViewportSize();return{top:e.top,left:e.left,bottom:e.top+r,right:e.left+i,height:r,width:i}}getViewportScrollPosition(){if(!this._platform.isBrowser)return{top:0,left:0};let e=this._document,i=this._getWindow(),r=e.documentElement,o=r.getBoundingClientRect(),a=-o.top||e.body.scrollTop||i.scrollY||r.scrollTop||0,s=-o.left||e.body.scrollLeft||i.scrollX||r.scrollLeft||0;return{top:a,left:s}}change(e=OJ){return e>0?this._change.pipe(Nl(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(i){return new(i||t)};static \u0275prov=R({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();var Cr=(()=>{class t{static \u0275fac=function(i){return new(i||t)};static \u0275mod=ee({type:t});static \u0275inj=J({})}return t})(),lg=(()=>{class t{static \u0275fac=function(i){return new(i||t)};static \u0275mod=ee({type:t});static \u0275inj=J({imports:[ys,Cr,ys,Cr]})}return t})();var cg=class{_attachedHost;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}},to=class extends cg{component;viewContainerRef;injector;projectableNodes;constructor(n,e,i,r){super(),this.component=n,this.viewContainerRef=e,this.injector=i,this.projectableNodes=r}},Dn=class extends cg{templateRef;viewContainerRef;context;injector;constructor(n,e,i,r){super(),this.templateRef=n,this.viewContainerRef=e,this.context=i,this.injector=r}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()}},QS=class extends cg{element;constructor(n){super(),this.element=n instanceof Y?n.nativeElement:n}},mc=class{_attachedPortal;_disposeFn;_isDisposed=!1;hasAttached(){return!!this._attachedPortal}attach(n){if(n instanceof to)return this._attachedPortal=n,this.attachComponentPortal(n);if(n instanceof Dn)return this._attachedPortal=n,this.attachTemplatePortal(n);if(this.attachDomPortal&&n instanceof QS)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)}},dg=class extends mc{outletElement;_appRef;_defaultInjector;constructor(n,e,i){super(),this.outletElement=n,this._appRef=e,this._defaultInjector=i}attachComponentPortal(n){let e;if(n.viewContainerRef){let i=n.injector||n.viewContainerRef.injector,r=i.get(ss,null,{optional:!0})||void 0;e=n.viewContainerRef.createComponent(n.component,{index:n.viewContainerRef.length,injector:i,ngModuleRef:r,projectableNodes:n.projectableNodes||void 0}),this.setDisposeFn(()=>e.destroy())}else{let i=this._appRef,r=n.injector||this._defaultInjector||de.NULL,o=r.get(Kt,i.injector);e=Am(n.component,{elementInjector:r,environmentInjector:o,projectableNodes:n.projectableNodes||void 0}),i.attachView(e.hostView),this.setDisposeFn(()=>{i.viewCount>0&&i.detachView(e.hostView),e.destroy()})}return this.outletElement.appendChild(this._getComponentRootNode(e)),this._attachedPortal=n,e}attachTemplatePortal(n){let e=n.viewContainerRef,i=e.createEmbeddedView(n.templateRef,n.context,{injector:n.injector});return i.rootNodes.forEach(r=>this.outletElement.appendChild(r)),i.detectChanges(),this.setDisposeFn(()=>{let r=e.indexOf(i);r!==-1&&e.remove(r)}),this._attachedPortal=n,i}attachDomPortal=n=>{let e=n.element;e.parentNode;let i=this.outletElement.ownerDocument.createComment("dom-portal");e.parentNode.insertBefore(i,e),this.outletElement.appendChild(e),this._attachedPortal=n,super.setDisposeFn(()=>{i.parentNode&&i.parentNode.replaceChild(e,i)})};dispose(){super.dispose(),this.outletElement.remove()}_getComponentRootNode(n){return n.hostView.rootNodes[0]}},rB=(()=>{class t extends Dn{constructor(){let e=u(te),i=u(ot);super(e,i)}static \u0275fac=function(i){return new(i||t)};static \u0275dir=P({type:t,selectors:[["","cdkPortal",""]],exportAs:["cdkPortal"],features:[le]})}return t})();var wr=(()=>{class t extends mc{_moduleRef=u(ss,{optional:!0});_document=u(_e);_viewContainerRef=u(ot);_isInitialized=!1;_attachedRef;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 U;get attachedRef(){return this._attachedRef}ngOnInit(){this._isInitialized=!0}ngOnDestroy(){super.dispose(),this._attachedRef=this._attachedPortal=null}attachComponentPortal(e){e.setAttachedHost(this);let i=e.viewContainerRef!=null?e.viewContainerRef:this._viewContainerRef,r=i.createComponent(e.component,{index:i.length,injector:e.injector||i.injector,projectableNodes:e.projectableNodes||void 0,ngModuleRef:this._moduleRef||void 0});return i!==this._viewContainerRef&&this._getRootNode().appendChild(r.hostView.rootNodes[0]),super.setDisposeFn(()=>r.destroy()),this._attachedPortal=e,this._attachedRef=r,this.attached.emit(r),r}attachTemplatePortal(e){e.setAttachedHost(this);let i=this._viewContainerRef.createEmbeddedView(e.templateRef,e.context,{injector:e.injector});return super.setDisposeFn(()=>this._viewContainerRef.clear()),this._attachedPortal=e,this._attachedRef=i,this.attached.emit(i),i}attachDomPortal=e=>{let i=e.element;i.parentNode;let r=this._document.createComment("dom-portal");e.setAttachedHost(this),i.parentNode.insertBefore(r,i),this._getRootNode().appendChild(i),this._attachedPortal=e,super.setDisposeFn(()=>{r.parentNode&&r.parentNode.replaceChild(i,r)})};_getRootNode(){let e=this._viewContainerRef.element.nativeElement;return e.nodeType===e.ELEMENT_NODE?e:e.parentNode}static \u0275fac=function(i){return new(i||t)};static \u0275dir=P({type:t,selectors:[["","cdkPortalOutlet",""]],inputs:{portal:[0,"cdkPortalOutlet","portal"]},outputs:{attached:"attached"},exportAs:["cdkPortalOutlet"],features:[le]})}return t})();var ko=(()=>{class t{static \u0275fac=function(i){return new(i||t)};static \u0275mod=ee({type:t});static \u0275inj=J({})}return t})();var oB=Kv();function hc(t){return new Jy(t.get(tr),t.get(_e))}var Jy=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=cn(-this._previousScrollPosition.left),n.style.top=cn(-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,i=n.style,r=e.style,o=i.scrollBehavior||"",a=r.scrollBehavior||"";this._isEnabled=!1,i.left=this._previousHTMLStyles.left,i.top=this._previousHTMLStyles.top,n.classList.remove("cdk-global-scrollblock"),oB&&(i.scrollBehavior=r.scrollBehavior="auto"),window.scroll(this._previousScrollPosition.left,this._previousScrollPosition.top),oB&&(i.scrollBehavior=o,r.scrollBehavior=a)}}_canBeEnabled(){if(this._document.documentElement.classList.contains("cdk-global-scrollblock")||this._isEnabled)return!1;let e=this._document.documentElement,i=this._viewportRuler.getViewportSize();return e.scrollHeight>i.height||e.scrollWidth>i.width}};function mB(t,n){return new ex(t.get(Ds),t.get(ae),t.get(tr),n)}var ex=class{_scrollDispatcher;_ngZone;_viewportRuler;_config;_scrollSubscription=null;_overlayRef;_initialScrollPosition;constructor(n,e,i,r){this._scrollDispatcher=n,this._ngZone=e,this._viewportRuler=i,this._config=r}attach(n){this._overlayRef,this._overlayRef=n}enable(){if(this._scrollSubscription)return;let n=this._scrollDispatcher.scrolled(0).pipe(ce(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 ug=class{enable(){}disable(){}attach(){}};function KS(t,n){return n.some(e=>{let i=t.bottome.bottom,o=t.righte.right;return i||r||o||a})}function aB(t,n){return n.some(e=>{let i=t.tope.bottom,o=t.lefte.right;return i||r||o||a})}function En(t,n){return new tx(t.get(Ds),t.get(tr),t.get(ae),n)}var tx=class{_scrollDispatcher;_viewportRuler;_ngZone;_config;_scrollSubscription=null;_overlayRef;constructor(n,e,i,r){this._scrollDispatcher=n,this._viewportRuler=e,this._ngZone=i,this._config=r}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:i,height:r}=this._viewportRuler.getViewportSize();KS(e,[{width:i,height:r,bottom:r,right:i,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}},hB=(()=>{class t{_injector=u(de);constructor(){}noop=()=>new ug;close=e=>mB(this._injector,e);block=()=>hc(this._injector);reposition=e=>En(this._injector,e);static \u0275fac=function(i){return new(i||t)};static \u0275prov=R({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),Hr=class{positionStrategy;scrollStrategy=new ug;panelClass="";hasBackdrop=!1;backdropClass="cdk-overlay-dark-backdrop";disableAnimations;width;height;minWidth;minHeight;maxWidth;maxHeight;direction;disposeOnNavigation=!1;constructor(n){if(n){let e=Object.keys(n);for(let i of e)n[i]!==void 0&&(this[i]=n[i])}}};var ix=class{connectionPair;scrollableViewProperties;constructor(n,e){this.connectionPair=n,this.scrollableViewProperties=e}};var pB=(()=>{class t{_attachedOverlays=[];_document=u(_e);_isAttached;constructor(){}ngOnDestroy(){this.detach()}add(e){this.remove(e),this._attachedOverlays.push(e)}remove(e){let i=this._attachedOverlays.indexOf(e);i>-1&&this._attachedOverlays.splice(i,1),this._attachedOverlays.length===0&&this.detach()}static \u0275fac=function(i){return new(i||t)};static \u0275prov=R({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),fB=(()=>{class t extends pB{_ngZone=u(ae);_renderer=u(mn).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 i=this._attachedOverlays;for(let r=i.length-1;r>-1;r--)if(i[r]._keydownEvents.observers.length>0){this._ngZone.run(()=>i[r]._keydownEvents.next(e));break}};static \u0275fac=(()=>{let e;return function(r){return(e||(e=ge(t)))(r||t)}})();static \u0275prov=R({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),gB=(()=>{class t extends pB{_platform=u(qe);_ngZone=u(ae);_renderer=u(mn).createRenderer(null,null);_cursorOriginalValue;_cursorStyleIsSet=!1;_pointerDownEventTarget;_cleanups;add(e){if(super.add(e),!this._isAttached){let i=this._document.body,r={capture:!0},o=this._renderer;this._cleanups=this._ngZone.runOutsideAngular(()=>[o.listen(i,"pointerdown",this._pointerDownListener,r),o.listen(i,"click",this._clickListener,r),o.listen(i,"auxclick",this._clickListener,r),o.listen(i,"contextmenu",this._clickListener,r)]),this._platform.IOS&&!this._cursorStyleIsSet&&(this._cursorOriginalValue=i.style.cursor,i.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=Xn(e)};_clickListener=e=>{let i=Xn(e),r=e.type==="click"&&this._pointerDownEventTarget?this._pointerDownEventTarget:i;this._pointerDownEventTarget=null;let o=this._attachedOverlays.slice();for(let a=o.length-1;a>-1;a--){let s=o[a];if(s._outsidePointerEvents.observers.length<1||!s.hasAttached())continue;if(sB(s.overlayElement,i)||sB(s.overlayElement,r))break;let l=s._outsidePointerEvents;this._ngZone?this._ngZone.run(()=>l.next(e)):l.next(e)}};static \u0275fac=(()=>{let e;return function(r){return(e||(e=ge(t)))(r||t)}})();static \u0275prov=R({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();function sB(t,n){let e=typeof ShadowRoot<"u"&&ShadowRoot,i=n;for(;i;){if(i===t)return!0;i=e&&i instanceof ShadowRoot?i.host:i.parentNode}return!1}var _B=(()=>{class t{static \u0275fac=function(i){return new(i||t)};static \u0275cmp=E({type:t,selectors:[["ng-component"]],hostAttrs:["cdk-overlay-style-loader",""],decls:0,vars:0,template:function(i,r){},styles:[`.cdk-overlay-container,.cdk-global-overlay-wrapper{pointer-events:none;top:0;left:0;height:100%;width:100%}.cdk-overlay-container{position:fixed}@layer cdk-overlay{.cdk-overlay-container{z-index:1000}}.cdk-overlay-container:empty{display:none}.cdk-global-overlay-wrapper{display:flex;position:absolute}@layer cdk-overlay{.cdk-global-overlay-wrapper{z-index:1000}}.cdk-overlay-pane{position:absolute;pointer-events:auto;box-sizing:border-box;display:flex;max-width:100%;max-height:100%}@layer cdk-overlay{.cdk-overlay-pane{z-index:1000}}.cdk-overlay-backdrop{position:absolute;top:0;bottom:0;left:0;right:0;pointer-events:auto;-webkit-tap-highlight-color:rgba(0,0,0,0);opacity:0;touch-action:manipulation}@layer cdk-overlay{.cdk-overlay-backdrop{z-index:1000;transition:opacity 400ms cubic-bezier(0.25, 0.8, 0.25, 1)}}@media(prefers-reduced-motion){.cdk-overlay-backdrop{transition-duration:1ms}}.cdk-overlay-backdrop-showing{opacity:1}@media(forced-colors: active){.cdk-overlay-backdrop-showing{opacity:.6}}@layer cdk-overlay{.cdk-overlay-dark-backdrop{background:rgba(0,0,0,.32)}}.cdk-overlay-transparent-backdrop{transition:visibility 1ms linear,opacity 1ms linear;visibility:hidden;opacity:1}.cdk-overlay-transparent-backdrop.cdk-overlay-backdrop-showing,.cdk-high-contrast-active .cdk-overlay-transparent-backdrop{opacity:0;visibility:visible}.cdk-overlay-backdrop-noop-animation{transition:none}.cdk-overlay-connected-position-bounding-box{position:absolute;display:flex;flex-direction:column;min-width:1px;min-height:1px}@layer cdk-overlay{.cdk-overlay-connected-position-bounding-box{z-index:1000}}.cdk-global-scrollblock{position:fixed;width:100%;overflow-y:scroll} -`],encapsulation:2,changeDetection:0})}return t})(),rx=(()=>{class t{_platform=u(qe);_containerElement;_document=u(_e);_styleLoader=u(ht);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||TS()){let r=this._document.querySelectorAll(`.${e}[platform="server"], .${e}[platform="test"]`);for(let o=0;o{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()}},Ch=class{_portalOutlet;_host;_pane;_config;_ngZone;_keyboardDispatcher;_document;_location;_outsideClickDispatcher;_animationsDisabled;_injector;_renderer;_backdropClick=new z;_attachments=new z;_detachments=new z;_positionStrategy;_scrollStrategy;_locationChanges=Te.EMPTY;_backdropRef=null;_detachContentMutationObserver;_detachContentAfterRenderRef;_previousHostParent;_keydownEvents=new z;_outsidePointerEvents=new z;_afterNextRenderRef;constructor(n,e,i,r,o,a,s,l,c,d=!1,p,_){this._portalOutlet=n,this._host=e,this._pane=i,this._config=r,this._ngZone=o,this._keyboardDispatcher=a,this._document=s,this._location=l,this._outsideClickDispatcher=c,this._animationsDisabled=d,this._injector=p,this._renderer=_,r.scrollStrategy&&(this._scrollStrategy=r.scrollStrategy,this._scrollStrategy.attach(this)),this._positionStrategy=r.positionStrategy}get overlayElement(){return this._pane}get backdropElement(){return this._backdropRef?.element||null}get hostElement(){return this._host}attach(n){!this._host.parentElement&&this._previousHostParent&&this._previousHostParent.appendChild(this._host);let e=this._portalOutlet.attach(n);return this._positionStrategy&&this._positionStrategy.attach(this),this._updateStackingOrder(),this._updateElementSize(),this._updateElementDirection(),this._scrollStrategy&&this._scrollStrategy.enable(),this._afterNextRenderRef?.destroy(),this._afterNextRenderRef=gt(()=>{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(){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()}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=k(k({},this._config),n),this._updateElementSize()}setDirection(n){this._config=Ee(k({},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=cn(this._config.width),n.height=cn(this._config.height),n.minWidth=cn(this._config.minWidth),n.minHeight=cn(this._config.minHeight),n.maxWidth=cn(this._config.maxWidth),n.maxHeight=cn(this._config.maxHeight)}_togglePointerEvents(n){this._pane.style.pointerEvents=n?"":"none"}_attachBackdrop(){let n="cdk-overlay-backdrop-showing";this._backdropRef?.dispose(),this._backdropRef=new ZS(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._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._host.nextSibling&&this._host.parentNode.appendChild(this._host)}detachBackdrop(){this._animationsDisabled?(this._backdropRef?.dispose(),this._backdropRef=null):this._backdropRef?.detach()}_toggleClasses(n,e,i){let r=sl(e||[]).filter(o=>!!o);r.length&&(i?n.classList.add(...r):n.classList.remove(...r))}_detachContentWhenEmpty(){let n=!1;try{this._detachContentAfterRenderRef=gt(()=>{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?.()}},lB="cdk-overlay-connected-position-bounding-box",PJ=/([A-Za-z%]+)$/;function Na(t,n){return new wh(n,t.get(tr),t.get(_e),t.get(qe),t.get(rx))}var wh=class{_viewportRuler;_document;_platform;_overlayContainer;_overlayRef;_isInitialRender;_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;_boundingBox;_lastPosition;_lastScrollVisibility;_positionChanges=new z;_resizeSubscription=Te.EMPTY;_offsetX=0;_offsetY=0;_transformOriginSelector;_appliedPanelClasses=[];_previousPushAmount;positionChanges=this._positionChanges;get positions(){return this._preferredPositions}constructor(n,e,i,r,o){this._viewportRuler=e,this._document=i,this._platform=r,this._overlayContainer=o,this.setOrigin(n)}attach(n){this._overlayRef&&this._overlayRef,this._validatePositions(),n.hostElement.classList.add(lB),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._overlayContainer.getContainerElement().getBoundingClientRect();let n=this._originRect,e=this._overlayRect,i=this._viewportRect,r=this._containerRect,o=[],a;for(let s of this._preferredPositions){let l=this._getOriginPoint(n,r,s),c=this._getOverlayPoint(l,e,s),d=this._getOverlayFit(c,e,i,s);if(d.isCompletelyWithinViewport){this._isPushed=!1,this._applyPosition(s,l);return}if(this._canFitWithFlexibleDimensions(d,c,i)){o.push({position:s,origin:l,overlayRect:e,boundingBoxRect:this._calculateBoundingBoxRect(l,s)});continue}(!a||a.overlayFit.visibleAreal&&(l=d,s=c)}this._isPushed=!1,this._applyPosition(s.position,s.origin);return}if(this._canPush){this._isPushed=!0,this._applyPosition(a.position,a.originPoint);return}this._applyPosition(a.position,a.originPoint)}detach(){this._clearPanelClasses(),this._lastPosition=null,this._previousPushAmount=null,this._resizeSubscription.unsubscribe()}dispose(){this._isDisposed||(this._boundingBox&&du(this._boundingBox.style,{top:"",left:"",right:"",bottom:"",height:"",width:"",alignItems:"",justifyContent:""}),this._pane&&this._resetOverlayElementStyles(),this._overlayRef&&this._overlayRef.hostElement.classList.remove(lB),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;if(n){this._originRect=this._getOriginRect(),this._overlayRect=this._pane.getBoundingClientRect(),this._viewportRect=this._getNarrowedViewportRect(),this._containerRect=this._overlayContainer.getContainerElement().getBoundingClientRect();let e=this._getOriginPoint(this._originRect,this._containerRect,n);this._applyPosition(n,e)}else 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}_getOriginPoint(n,e,i){let r;if(i.originX=="center")r=n.left+n.width/2;else{let a=this._isRtl()?n.right:n.left,s=this._isRtl()?n.left:n.right;r=i.originX=="start"?a:s}e.left<0&&(r-=e.left);let o;return i.originY=="center"?o=n.top+n.height/2:o=i.originY=="top"?n.top:n.bottom,e.top<0&&(o-=e.top),{x:r,y:o}}_getOverlayPoint(n,e,i){let r;i.overlayX=="center"?r=-e.width/2:i.overlayX==="start"?r=this._isRtl()?-e.width:0:r=this._isRtl()?0:-e.width;let o;return i.overlayY=="center"?o=-e.height/2:o=i.overlayY=="top"?0:-e.height,{x:n.x+r,y:n.y+o}}_getOverlayFit(n,e,i,r){let o=dB(e),{x:a,y:s}=n,l=this._getOffset(r,"x"),c=this._getOffset(r,"y");l&&(a+=l),c&&(s+=c);let d=0-a,p=a+o.width-i.width,_=0-s,b=s+o.height-i.height,y=this._subtractOverflows(o.width,d,p),w=this._subtractOverflows(o.height,_,b),C=y*w;return{visibleArea:C,isCompletelyWithinViewport:o.width*o.height===C,fitsInViewportVertically:w===o.height,fitsInViewportHorizontally:y==o.width}}_canFitWithFlexibleDimensions(n,e,i){if(this._hasFlexibleDimensions){let r=i.bottom-e.y,o=i.right-e.x,a=cB(this._overlayRef.getConfig().minHeight),s=cB(this._overlayRef.getConfig().minWidth),l=n.fitsInViewportVertically||a!=null&&a<=r,c=n.fitsInViewportHorizontally||s!=null&&s<=o;return l&&c}return!1}_pushOverlayOnScreen(n,e,i){if(this._previousPushAmount&&this._positionLocked)return{x:n.x+this._previousPushAmount.x,y:n.y+this._previousPushAmount.y};let r=dB(e),o=this._viewportRect,a=Math.max(n.x+r.width-o.width,0),s=Math.max(n.y+r.height-o.height,0),l=Math.max(o.top-i.top-n.y,0),c=Math.max(o.left-i.left-n.x,0),d=0,p=0;return r.width<=o.width?d=c||-a:d=n.xy&&!this._isInitialRender&&!this._growAfterOpen&&(a=n.y-y/2)}let l=e.overlayX==="start"&&!r||e.overlayX==="end"&&r,c=e.overlayX==="end"&&!r||e.overlayX==="start"&&r,d,p,_;if(c)_=i.width-n.x+this._viewportMargin*2,d=n.x-this._viewportMargin;else if(l)p=n.x,d=i.right-n.x;else{let b=Math.min(i.right-n.x+i.left,n.x),y=this._lastBoundingBoxSize.width;d=b*2,p=n.x-b,d>y&&!this._isInitialRender&&!this._growAfterOpen&&(p=n.x-y/2)}return{top:a,left:p,bottom:s,right:_,width:d,height:o}}_setBoundingBoxStyles(n,e){let i=this._calculateBoundingBoxRect(n,e);!this._isInitialRender&&!this._growAfterOpen&&(i.height=Math.min(i.height,this._lastBoundingBoxSize.height),i.width=Math.min(i.width,this._lastBoundingBoxSize.width));let r={};if(this._hasExactPosition())r.top=r.left="0",r.bottom=r.right=r.maxHeight=r.maxWidth="",r.width=r.height="100%";else{let o=this._overlayRef.getConfig().maxHeight,a=this._overlayRef.getConfig().maxWidth;r.height=cn(i.height),r.top=cn(i.top),r.bottom=cn(i.bottom),r.width=cn(i.width),r.left=cn(i.left),r.right=cn(i.right),e.overlayX==="center"?r.alignItems="center":r.alignItems=e.overlayX==="end"?"flex-end":"flex-start",e.overlayY==="center"?r.justifyContent="center":r.justifyContent=e.overlayY==="bottom"?"flex-end":"flex-start",o&&(r.maxHeight=cn(o)),a&&(r.maxWidth=cn(a))}this._lastBoundingBoxSize=i,du(this._boundingBox.style,r)}_resetBoundingBoxStyles(){du(this._boundingBox.style,{top:"0",left:"0",right:"0",bottom:"0",height:"",width:"",alignItems:"",justifyContent:""})}_resetOverlayElementStyles(){du(this._pane.style,{top:"",left:"",bottom:"",right:"",position:"",transform:""})}_setOverlayElementStyles(n,e){let i={},r=this._hasExactPosition(),o=this._hasFlexibleDimensions,a=this._overlayRef.getConfig();if(r){let d=this._viewportRuler.getViewportScrollPosition();du(i,this._getExactOverlayY(e,n,d)),du(i,this._getExactOverlayX(e,n,d))}else i.position="static";let s="",l=this._getOffset(e,"x"),c=this._getOffset(e,"y");l&&(s+=`translateX(${l}px) `),c&&(s+=`translateY(${c}px)`),i.transform=s.trim(),a.maxHeight&&(r?i.maxHeight=cn(a.maxHeight):o&&(i.maxHeight="")),a.maxWidth&&(r?i.maxWidth=cn(a.maxWidth):o&&(i.maxWidth="")),du(this._pane.style,i)}_getExactOverlayY(n,e,i){let r={top:"",bottom:""},o=this._getOverlayPoint(e,this._overlayRect,n);if(this._isPushed&&(o=this._pushOverlayOnScreen(o,this._overlayRect,i)),n.overlayY==="bottom"){let a=this._document.documentElement.clientHeight;r.bottom=`${a-(o.y+this._overlayRect.height)}px`}else r.top=cn(o.y);return r}_getExactOverlayX(n,e,i){let r={left:"",right:""},o=this._getOverlayPoint(e,this._overlayRect,n);this._isPushed&&(o=this._pushOverlayOnScreen(o,this._overlayRect,i));let a;if(this._isRtl()?a=n.overlayX==="end"?"left":"right":a=n.overlayX==="end"?"right":"left",a==="right"){let s=this._document.documentElement.clientWidth;r.right=`${s-(o.x+this._overlayRect.width)}px`}else r.left=cn(o.x);return r}_getScrollVisibility(){let n=this._getOriginRect(),e=this._pane.getBoundingClientRect(),i=this._scrollables.map(r=>r.getElementRef().nativeElement.getBoundingClientRect());return{isOriginClipped:aB(n,i),isOriginOutsideView:KS(n,i),isOverlayClipped:aB(e,i),isOverlayOutsideView:KS(e,i)}}_subtractOverflows(n,...e){return e.reduce((i,r)=>i-Math.max(r,0),n)}_getNarrowedViewportRect(){let n=this._document.documentElement.clientWidth,e=this._document.documentElement.clientHeight,i=this._viewportRuler.getViewportScrollPosition();return{top:i.top+this._viewportMargin,left:i.left+this._viewportMargin,right:i.left+n-this._viewportMargin,bottom:i.top+e-this._viewportMargin,width:n-2*this._viewportMargin,height:e-2*this._viewportMargin}}_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&&sl(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=[])}_getOriginRect(){let n=this._origin;if(n instanceof Y)return n.nativeElement.getBoundingClientRect();if(n instanceof Element)return n.getBoundingClientRect();let e=n.width||0,i=n.height||0;return{top:n.y,bottom:n.y+i,left:n.x,right:n.x+e,height:i,width:e}}};function du(t,n){for(let e in n)n.hasOwnProperty(e)&&(t[e]=n[e]);return t}function cB(t){if(typeof t!="number"&&t!=null){let[n,e]=t.split(PJ);return!e||e==="px"?parseFloat(n):null}return t||null}function dB(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 FJ(t,n){return t===n?!0:t.isOriginClipped===n.isOriginClipped&&t.isOriginOutsideView===n.isOriginOutsideView&&t.isOverlayClipped===n.isOverlayClipped&&t.isOverlayOutsideView===n.isOverlayOutsideView}var uB="cdk-global-overlay-wrapper";function Es(t){return new nx}var nx=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(uB),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,i=this._overlayRef.getConfig(),{width:r,height:o,maxWidth:a,maxHeight:s}=i,l=(r==="100%"||r==="100vw")&&(!a||a==="100%"||a==="100vw"),c=(o==="100%"||o==="100vh")&&(!s||s==="100%"||s==="100vh"),d=this._xPosition,p=this._xOffset,_=this._overlayRef.getConfig().direction==="rtl",b="",y="",w="";l?w="flex-start":d==="center"?(w="center",_?y=p:b=p):_?d==="left"||d==="end"?(w="flex-end",b=p):(d==="right"||d==="start")&&(w="flex-start",y=p):d==="left"||d==="start"?(w="flex-start",b=p):(d==="right"||d==="end")&&(w="flex-end",y=p),n.position=this._cssPosition,n.marginLeft=l?"0":b,n.marginTop=c?"0":this._topOffset,n.marginBottom=this._bottomOffset,n.marginRight=l?"0":y,e.justifyContent=w,e.alignItems=c?"flex-start":this._alignItems}dispose(){if(this._isDisposed||!this._overlayRef)return;let n=this._overlayRef.overlayElement.style,e=this._overlayRef.hostElement,i=e.style;e.classList.remove(uB),i.justifyContent=i.alignItems=n.marginTop=n.marginBottom=n.marginLeft=n.marginRight=n.position="",this._overlayRef=null,this._isDisposed=!0}},bB=(()=>{class t{_injector=u(de);constructor(){}global(){return Es()}flexibleConnectedTo(e){return Na(this._injector,e)}static \u0275fac=function(i){return new(i||t)};static \u0275prov=R({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();function zr(t,n){t.get(ht).load(_B);let e=t.get(rx),i=t.get(_e),r=t.get(Ze),o=t.get(Yn),a=t.get(Bt),s=i.createElement("div"),l=i.createElement("div");l.id=r.getId("cdk-overlay-"),l.classList.add("cdk-overlay-pane"),s.appendChild(l),e.getContainerElement().appendChild(s);let c=new dg(l,o,t),d=new Hr(n),p=t.get(ze,null,{optional:!0})||t.get(mn).createRenderer(null,null);return d.direction=d.direction||a.value,new Ch(c,s,l,d,t.get(ae),t.get(fB),i,t.get(ms),t.get(gB),n?.disableAnimations??t.get(ef,null,{optional:!0})==="NoopAnimations",t.get(Kt),p)}var vB=(()=>{class t{scrollStrategies=u(hB);_positionBuilder=u(bB);_injector=u(de);constructor(){}create(e){return zr(this._injector,e)}position(){return this._positionBuilder}static \u0275fac=function(i){return new(i||t)};static \u0275prov=R({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),NJ=[{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"}],yB=new O("cdk-connected-overlay-scroll-strategy",{providedIn:"root",factory:()=>{let t=u(de);return()=>En(t)}}),Dh=(()=>{class t{elementRef=u(Y);constructor(){}static \u0275fac=function(i){return new(i||t)};static \u0275dir=P({type:t,selectors:[["","cdk-overlay-origin",""],["","overlay-origin",""],["","cdkOverlayOrigin",""]],exportAs:["cdkOverlayOrigin"]})}return t})(),ox=(()=>{class t{_dir=u(Bt,{optional:!0});_injector=u(de);_overlayRef;_templatePortal;_backdropSubscription=Te.EMPTY;_attachSubscription=Te.EMPTY;_detachSubscription=Te.EMPTY;_positionSubscription=Te.EMPTY;_offsetX;_offsetY;_position;_scrollStrategyFactory=u(yB);_disposeOnNavigation=!1;_ngZone=u(ae);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;get disposeOnNavigation(){return this._disposeOnNavigation}set disposeOnNavigation(e){this._disposeOnNavigation=e}backdropClick=new U;positionChange=new U;attach=new U;detach=new U;overlayKeydown=new U;overlayOutsideClick=new U;constructor(){let e=u(te),i=u(ot);this._templatePortal=new Dn(e,i),this.scrollStrategy=this._scrollStrategyFactory()}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.width,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=NJ);let e=this._overlayRef=zr(this._injector,this._buildConfig());this._attachSubscription=e.attachments().subscribe(()=>this.attach.emit()),this._detachSubscription=e.detachments().subscribe(()=>this.detach.emit()),e.keydownEvents().subscribe(i=>{this.overlayKeydown.next(i),i.keyCode===27&&!this.disableClose&&!Lt(i)&&(i.preventDefault(),this.detachOverlay())}),this._overlayRef.outsidePointerEvents().subscribe(i=>{let r=this._getOriginElement(),o=Xn(i);(!r||r!==o&&!r.contains(o))&&this.overlayOutsideClick.next(i)})}_buildConfig(){let e=this._position=this.positionStrategy||this._createPositionStrategy(),i=new Hr({direction:this._dir||"ltr",positionStrategy:e,scrollStrategy:this.scrollStrategy,hasBackdrop:this.hasBackdrop,disposeOnNavigation:this.disposeOnNavigation});return(this.width||this.width===0)&&(i.width=this.width),(this.height||this.height===0)&&(i.height=this.height),(this.minWidth||this.minWidth===0)&&(i.minWidth=this.minWidth),(this.minHeight||this.minHeight===0)&&(i.minHeight=this.minHeight),this.backdropClass&&(i.backdropClass=this.backdropClass),this.panelClass&&(i.panelClass=this.panelClass),i}_updatePositionStrategy(e){let i=this.positions.map(r=>({originX:r.originX,originY:r.originY,overlayX:r.overlayX,overlayY:r.overlayY,offsetX:r.offsetX||this.offsetX,offsetY:r.offsetY||this.offsetY,panelClass:r.panelClass||void 0}));return e.setOrigin(this._getOrigin()).withPositions(i).withFlexibleDimensions(this.flexibleDimensions).withPush(this.push).withGrowAfterOpen(this.growAfterOpen).withViewportMargin(this.viewportMargin).withLockedPosition(this.lockPosition).withTransformOriginOn(this.transformOriginSelector)}_createPositionStrategy(){let e=Na(this._injector,this._getOrigin());return this._updatePositionStrategy(e),e}_getOrigin(){return this.origin instanceof Dh?this.origin.elementRef:this.origin}_getOriginElement(){return this.origin instanceof Dh?this.origin.elementRef.nativeElement:this.origin instanceof Y?this.origin.nativeElement:typeof Element<"u"&&this.origin instanceof Element?this.origin:null}attachOverlay(){this._overlayRef?this._overlayRef.getConfig().hasBackdrop=this.hasBackdrop:this._createOverlay(),this._overlayRef.hasAttached()||this._overlayRef.attach(this._templatePortal),this.hasBackdrop?this._backdropSubscription=this._overlayRef.backdropClick().subscribe(e=>{this.backdropClick.emit(e)}):this._backdropSubscription.unsubscribe(),this._positionSubscription.unsubscribe(),this.positionChange.observers.length>0&&(this._positionSubscription=this._position.positionChanges.pipe(nD(()=>this.positionChange.observers.length>0)).subscribe(e=>{this._ngZone.run(()=>this.positionChange.emit(e)),this.positionChange.observers.length===0&&this._positionSubscription.unsubscribe()})),this.open=!0}detachOverlay(){this._overlayRef?.detach(),this._backdropSubscription.unsubscribe(),this._positionSubscription.unsubscribe(),this.open=!1}static \u0275fac=function(i){return new(i||t)};static \u0275dir=P({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",L],lockPosition:[2,"cdkConnectedOverlayLockPosition","lockPosition",L],flexibleDimensions:[2,"cdkConnectedOverlayFlexibleDimensions","flexibleDimensions",L],growAfterOpen:[2,"cdkConnectedOverlayGrowAfterOpen","growAfterOpen",L],push:[2,"cdkConnectedOverlayPush","push",L],disposeOnNavigation:[2,"cdkConnectedOverlayDisposeOnNavigation","disposeOnNavigation",L]},outputs:{backdropClick:"backdropClick",positionChange:"positionChange",attach:"attach",detach:"detach",overlayKeydown:"overlayKeydown",overlayOutsideClick:"overlayOutsideClick"},exportAs:["cdkConnectedOverlay"],features:[Ae]})}return t})();function LJ(t){let n=u(de);return()=>En(n)}var VJ={provide:yB,useFactory:LJ},nr=(()=>{class t{static \u0275fac=function(i){return new(i||t)};static \u0275mod=ee({type:t});static \u0275inj=J({providers:[vB,VJ],imports:[ys,ko,lg,lg]})}return t})();var uu=(()=>{class t{_listeners=[];notify(e,i){for(let r of this._listeners)r(e,i)}listen(e){return this._listeners.push(e),()=>{this._listeners=this._listeners.filter(i=>e!==i)}}ngOnDestroy(){this._listeners=[]}static \u0275fac=function(i){return new(i||t)};static \u0275prov=R({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();var mu=class{applyChanges(n,e,i,r,o){n.forEachOperation((a,s,l)=>{let c,d;if(a.previousIndex==null){let p=i(a,s,l);c=e.createEmbeddedView(p.templateRef,p.context,p.index),d=uc.INSERTED}else l==null?(e.remove(s),d=uc.REMOVED):(c=e.get(s),e.move(c,l),d=uc.MOVED);o&&o({context:c?.context,operation:d,record:a})})}detach(){}};var mg=class{_multiple;_emitChanges;compareWith;_selection=new Set;_deselectedToEmit=[];_selectedToEmit=[];_selected;get selected(){return this._selected||(this._selected=Array.from(this._selection.values())),this._selected}changed=new z;constructor(n=!1,e,i=!0,r){this._multiple=n,this._emitChanges=i,this.compareWith=r,e&&e.length&&(n?e.forEach(o=>this._markSelected(o)):this._markSelected(e[0]),this._selectedToEmit.length=0)}select(...n){this._verifyValueAssignment(n),n.forEach(i=>this._markSelected(i));let e=this._hasQueuedChanges();return this._emitChangeEvent(),e}deselect(...n){this._verifyValueAssignment(n),n.forEach(i=>this._unmarkSelected(i));let e=this._hasQueuedChanges();return this._emitChangeEvent(),e}setSelection(...n){this._verifyValueAssignment(n);let e=this.selected,i=new Set(n.map(o=>this._getConcreteValue(o)));n.forEach(o=>this._markSelected(o)),e.filter(o=>!i.has(this._getConcreteValue(o,i))).forEach(o=>this._unmarkSelected(o));let r=this._hasQueuedChanges();return this._emitChangeEvent(),r}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 i of e)if(this.compareWith(n,i))return i;return n}else return n}};var TB=(()=>{class t{_renderer;_elementRef;onChange=e=>{};onTouched=()=>{};constructor(e,i){this._renderer=e,this._elementRef=i}setProperty(e,i){this._renderer.setProperty(this._elementRef.nativeElement,e,i)}registerOnTouched(e){this.onTouched=e}registerOnChange(e){this.onChange=e}setDisabledState(e){this.setProperty("disabled",e)}static \u0275fac=function(i){return new(i||t)(be(ze),be(Y))};static \u0275dir=P({type:t})}return t})(),IB=(()=>{class t extends TB{static \u0275fac=(()=>{let e;return function(r){return(e||(e=ge(t)))(r||t)}})();static \u0275dir=P({type:t,features:[le]})}return t})(),rr=new O("");var BJ={provide:rr,useExisting:ri(()=>Hi),multi:!0};function jJ(){let t=Yo()?Yo().getUserAgent():"";return/android (\d+)/.test(t.toLowerCase())}var HJ=new O(""),Hi=(()=>{class t extends TB{_compositionMode;_composing=!1;constructor(e,i,r){super(e,i),this._compositionMode=r,this._compositionMode==null&&(this._compositionMode=!jJ())}writeValue(e){let i=e??"";this.setProperty("value",i)}_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(i){return new(i||t)(be(ze),be(Y),be(HJ,8))};static \u0275dir=P({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(i,r){i&1&&S("input",function(a){return r._handleInput(a.target.value)})("blur",function(){return r.onTouched()})("compositionstart",function(){return r._compositionStart()})("compositionend",function(a){return r._compositionEnd(a.target.value)})},standalone:!1,features:[Ce([BJ]),le]})}return t})();function ek(t){return t==null||tk(t)===0}function tk(t){return t==null?null:Array.isArray(t)||typeof t=="string"?t.length:t instanceof Set?t.size:null}var na=new O(""),yg=new O(""),zJ=/^(?=.{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])?)*$/,Le=class{static min(n){return UJ(n)}static max(n){return $J(n)}static required(n){return AB(n)}static requiredTrue(n){return WJ(n)}static email(n){return GJ(n)}static minLength(n){return qJ(n)}static maxLength(n){return YJ(n)}static pattern(n){return QJ(n)}static nullValidator(n){return sx()}static compose(n){return LB(n)}static composeAsync(n){return VB(n)}};function UJ(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 AB(t){return ek(t.value)?{required:!0}:null}function WJ(t){return t.value===!0?null:{required:!0}}function GJ(t){return ek(t.value)||zJ.test(t.value)?null:{email:!0}}function qJ(t){return n=>{let e=n.value?.length??tk(n.value);return e===null||e===0?null:e{let e=n.value?.length??tk(n.value);return e!==null&&e>t?{maxlength:{requiredLength:t,actualLength:e}}:null}}function QJ(t){if(!t)return sx;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),i=>{if(ek(i.value))return null;let r=i.value;return n.test(r)?null:{pattern:{requiredPattern:e,actualValue:r}}}}function sx(t){return null}function OB(t){return t!=null}function RB(t){return Js(t)?Ft(t):t}function PB(t){let n={};return t.forEach(e=>{n=e!=null?k(k({},n),e):n}),Object.keys(n).length===0?null:n}function FB(t,n){return n.map(e=>e(t))}function KJ(t){return!t.validate}function NB(t){return t.map(n=>KJ(n)?n:e=>n.validate(e))}function LB(t){if(!t)return null;let n=t.filter(OB);return n.length==0?null:function(e){return PB(FB(e,n))}}function ik(t){return t!=null?LB(NB(t)):null}function VB(t){if(!t)return null;let n=t.filter(OB);return n.length==0?null:function(e){let i=FB(e,n).map(RB);return qa(i).pipe(se(PB))}}function nk(t){return t!=null?VB(NB(t)):null}function CB(t,n){return t===null?[n]:Array.isArray(t)?[...t,n]:[t,n]}function BB(t){return t._rawValidators}function jB(t){return t._rawAsyncValidators}function XS(t){return t?Array.isArray(t)?t:[t]:[]}function lx(t,n){return Array.isArray(t)?t.includes(n):t===n}function wB(t,n){let e=XS(n);return XS(t).forEach(r=>{lx(e,r)||e.push(r)}),e}function DB(t,n){return XS(n).filter(e=>!lx(t,e))}var cx=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=ik(this._rawValidators)}_setAsyncValidators(n){this._rawAsyncValidators=n||[],this._composedAsyncValidatorFn=nk(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&&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}},Ms=class extends cx{name;get formDirective(){return null}get path(){return null}},Un=class extends cx{_parent=null;name=null;valueAccessor=null},dx=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}},ZJ={"[class.ng-untouched]":"isUntouched","[class.ng-touched]":"isTouched","[class.ng-pristine]":"isPristine","[class.ng-dirty]":"isDirty","[class.ng-valid]":"isValid","[class.ng-invalid]":"isInvalid","[class.ng-pending]":"isPending"},N7e=Ee(k({},ZJ),{"[class.ng-submitted]":"isSubmitted"}),qt=(()=>{class t extends dx{constructor(e){super(e)}static \u0275fac=function(i){return new(i||t)(be(Un,2))};static \u0275dir=P({type:t,selectors:[["","formControlName",""],["","ngModel",""],["","formControl",""]],hostVars:14,hostBindings:function(i,r){i&2&&G("ng-untouched",r.isUntouched)("ng-touched",r.isTouched)("ng-pristine",r.isPristine)("ng-dirty",r.isDirty)("ng-valid",r.isValid)("ng-invalid",r.isInvalid)("ng-pending",r.isPending)},standalone:!1,features:[le]})}return t})(),io=(()=>{class t extends dx{constructor(e){super(e)}static \u0275fac=function(i){return new(i||t)(be(Ms,10))};static \u0275dir=P({type:t,selectors:[["","formGroupName",""],["","formArrayName",""],["","ngModelGroup",""],["","formGroup",""],["form",3,"ngNoForm",""],["","ngForm",""]],hostVars:16,hostBindings:function(i,r){i&2&&G("ng-untouched",r.isUntouched)("ng-touched",r.isTouched)("ng-pristine",r.isPristine)("ng-dirty",r.isDirty)("ng-valid",r.isValid)("ng-invalid",r.isInvalid)("ng-pending",r.isPending)("ng-submitted",r.isSubmitted)},standalone:!1,features:[le]})}return t})();var hg="VALID",ax="INVALID",Eh="PENDING",pg="DISABLED",pc=class{},ux=class extends pc{value;source;constructor(n,e){super(),this.value=n,this.source=e}},gg=class extends pc{pristine;source;constructor(n,e){super(),this.pristine=n,this.source=e}},_g=class extends pc{touched;source;constructor(n,e){super(),this.touched=n,this.source=e}},Mh=class extends pc{status;source;constructor(n,e){super(),this.status=n,this.source=e}},mx=class extends pc{source;constructor(n){super(),this.source=n}},bg=class extends pc{source;constructor(n){super(),this.source=n}};function rk(t){return(_x(t)?t.validators:t)||null}function XJ(t){return Array.isArray(t)?ik(t):t||null}function ok(t,n){return(_x(n)?n.asyncValidators:t)||null}function JJ(t){return Array.isArray(t)?nk(t):t||null}function _x(t){return t!=null&&!Array.isArray(t)&&typeof t=="object"}function HB(t,n,e){let i=t.controls;if(!(n?Object.keys(i):i).length)throw new me(1e3,"");if(!i[e])throw new me(1001,"")}function zB(t,n,e){t._forEachChild((i,r)=>{if(e[r]===void 0)throw new me(1002,"")})}var fc=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 Ai(this.statusReactive)}set status(n){Ai(()=>this.statusReactive.set(n))}_status=oi(()=>this.statusReactive());statusReactive=he(void 0);get valid(){return this.status===hg}get invalid(){return this.status===ax}get pending(){return this.status==Eh}get disabled(){return this.status===pg}get enabled(){return this.status!==pg}errors;get pristine(){return Ai(this.pristineReactive)}set pristine(n){Ai(()=>this.pristineReactive.set(n))}_pristine=oi(()=>this.pristineReactive());pristineReactive=he(!0);get dirty(){return!this.pristine}get touched(){return Ai(this.touchedReactive)}set touched(n){Ai(()=>this.touchedReactive.set(n))}_touched=oi(()=>this.touchedReactive());touchedReactive=he(!1);get untouched(){return!this.touched}_events=new z;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(wB(n,this._rawValidators))}addAsyncValidators(n){this.setAsyncValidators(wB(n,this._rawAsyncValidators))}removeValidators(n){this.setValidators(DB(n,this._rawValidators))}removeAsyncValidators(n){this.setAsyncValidators(DB(n,this._rawAsyncValidators))}hasValidator(n){return lx(this._rawValidators,n)}hasAsyncValidator(n){return lx(this._rawAsyncValidators,n)}clearValidators(){this.validator=null}clearAsyncValidators(){this.asyncValidator=null}markAsTouched(n={}){let e=this.touched===!1;this.touched=!0;let i=n.sourceControl??this;this._parent&&!n.onlySelf&&this._parent.markAsTouched(Ee(k({},n),{sourceControl:i})),e&&n.emitEvent!==!1&&this._events.next(new _g(!0,i))}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 i=n.sourceControl??this;this._forEachChild(r=>{r.markAsUntouched({onlySelf:!0,emitEvent:n.emitEvent,sourceControl:i})}),this._parent&&!n.onlySelf&&this._parent._updateTouched(n,i),e&&n.emitEvent!==!1&&this._events.next(new _g(!1,i))}markAsDirty(n={}){let e=this.pristine===!0;this.pristine=!1;let i=n.sourceControl??this;this._parent&&!n.onlySelf&&this._parent.markAsDirty(Ee(k({},n),{sourceControl:i})),e&&n.emitEvent!==!1&&this._events.next(new gg(!1,i))}markAsPristine(n={}){let e=this.pristine===!1;this.pristine=!0,this._pendingDirty=!1;let i=n.sourceControl??this;this._forEachChild(r=>{r.markAsPristine({onlySelf:!0,emitEvent:n.emitEvent})}),this._parent&&!n.onlySelf&&this._parent._updatePristine(n,i),e&&n.emitEvent!==!1&&this._events.next(new gg(!0,i))}markAsPending(n={}){this.status=Eh;let e=n.sourceControl??this;n.emitEvent!==!1&&(this._events.next(new Mh(this.status,e)),this.statusChanges.emit(this.status)),this._parent&&!n.onlySelf&&this._parent.markAsPending(Ee(k({},n),{sourceControl:e}))}disable(n={}){let e=this._parentMarkedDirty(n.onlySelf);this.status=pg,this.errors=null,this._forEachChild(r=>{r.disable(Ee(k({},n),{onlySelf:!0}))}),this._updateValue();let i=n.sourceControl??this;n.emitEvent!==!1&&(this._events.next(new ux(this.value,i)),this._events.next(new Mh(this.status,i)),this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._updateAncestors(Ee(k({},n),{skipPristineCheck:e}),this),this._onDisabledChange.forEach(r=>r(!0))}enable(n={}){let e=this._parentMarkedDirty(n.onlySelf);this.status=hg,this._forEachChild(i=>{i.enable(Ee(k({},n),{onlySelf:!0}))}),this.updateValueAndValidity({onlySelf:!0,emitEvent:n.emitEvent}),this._updateAncestors(Ee(k({},n),{skipPristineCheck:e}),this),this._onDisabledChange.forEach(i=>i(!1))}_updateAncestors(n,e){this._parent&&!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 i=this._cancelExistingSubscription();this.errors=this._runValidator(),this.status=this._calculateStatus(),(this.status===hg||this.status===Eh)&&this._runAsyncValidator(i,n.emitEvent)}let e=n.sourceControl??this;n.emitEvent!==!1&&(this._events.next(new ux(this.value,e)),this._events.next(new Mh(this.status,e)),this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._parent&&!n.onlySelf&&this._parent.updateValueAndValidity(Ee(k({},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()?pg:hg}_runValidator(){return this.validator?this.validator(this):null}_runAsyncValidator(n,e){if(this.asyncValidator){this.status=Eh,this._hasOwnPendingAsyncValidator={emitEvent:e!==!1,shouldHaveEmitted:n!==!1};let i=RB(this.asyncValidator(this));this._asyncValidationSubscription=i.subscribe(r=>{this._hasOwnPendingAsyncValidator=null,this.setErrors(r,{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((i,r)=>i&&i._find(r),this)}getError(n,e){let i=e?this.get(e):this;return i&&i.errors?i.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,i){this.status=this._calculateStatus(),n&&this.statusChanges.emit(this.status),(n||i)&&this._events.next(new Mh(this.status,e)),this._parent&&this._parent._updateControlsErrors(n,e,i)}_initObservables(){this.valueChanges=new U,this.statusChanges=new U}_calculateStatus(){return this._allControlsDisabled()?pg:this.errors?ax:this._hasOwnPendingAsyncValidator||this._anyControlsHaveStatus(Eh)?Eh:this._anyControlsHaveStatus(ax)?ax:hg}_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 i=!this._anyControlsDirty(),r=this.pristine!==i;this.pristine=i,this._parent&&!n.onlySelf&&this._parent._updatePristine(n,e),r&&this._events.next(new gg(this.pristine,e))}_updateTouched(n={},e){this.touched=this._anyControlsTouched(),this._events.next(new _g(this.touched,e)),this._parent&&!n.onlySelf&&this._parent._updateTouched(n,e)}_onDisabledChange=[];_registerOnCollectionChange(n){this._onCollectionChange=n}_setUpdateStrategy(n){_x(n)&&n.updateOn!=null&&(this._updateOn=n.updateOn)}_parentMarkedDirty(n){let e=this._parent&&this._parent.dirty;return!n&&!!e&&!this._parent._anyControlsDirty()}_find(n){return null}_assignValidators(n){this._rawValidators=Array.isArray(n)?n.slice():n,this._composedValidatorFn=XJ(this._rawValidators)}_assignAsyncValidators(n){this._rawAsyncValidators=Array.isArray(n)?n.slice():n,this._composedAsyncValidatorFn=JJ(this._rawAsyncValidators)}},hu=class extends fc{constructor(n,e,i){super(rk(e),ok(i,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,i={}){this.registerControl(n,e),this.updateValueAndValidity({emitEvent:i.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,i={}){this.controls[n]&&this.controls[n]._registerOnCollectionChange(()=>{}),delete this.controls[n],e&&this.registerControl(n,e),this.updateValueAndValidity({emitEvent:i.emitEvent}),this._onCollectionChange()}contains(n){return this.controls.hasOwnProperty(n)&&this.controls[n].enabled}setValue(n,e={}){zB(this,!0,n),Object.keys(n).forEach(i=>{HB(this,!0,i),this.controls[i].setValue(n[i],{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e)}patchValue(n,e={}){n!=null&&(Object.keys(n).forEach(i=>{let r=this.controls[i];r&&r.patchValue(n[i],{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e))}reset(n={},e={}){this._forEachChild((i,r)=>{i.reset(n?n[r]:null,{onlySelf:!0,emitEvent:e.emitEvent})}),this._updatePristine(e,this),this._updateTouched(e,this),this.updateValueAndValidity(e),e?.emitEvent!==!1&&this._events.next(new bg(this))}getRawValue(){return this._reduceChildren({},(n,e,i)=>(n[i]=e.getRawValue(),n))}_syncPendingControls(){let n=this._reduceChildren(!1,(e,i)=>i._syncPendingControls()?!0:e);return n&&this.updateValueAndValidity({onlySelf:!0}),n}_forEachChild(n){Object.keys(this.controls).forEach(e=>{let i=this.controls[e];i&&n(i,e)})}_setUpControls(){this._forEachChild(n=>{n.setParent(this),n._registerOnCollectionChange(this._onCollectionChange)})}_updateValue(){this.value=this._reduceValue()}_anyControls(n){for(let[e,i]of Object.entries(this.controls))if(this.contains(e)&&n(i))return!0;return!1}_reduceValue(){let n={};return this._reduceChildren(n,(e,i,r)=>((i.enabled||this.disabled)&&(e[r]=i.value),e))}_reduceChildren(n,e){let i=n;return this._forEachChild((r,o)=>{i=e(i,r,o)}),i}_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 bx=hu;var JS=class extends hu{};var Sh=new O("",{providedIn:"root",factory:()=>vx}),vx="always";function UB(t,n){return[...n.path,t]}function vg(t,n,e=vx){ak(t,n),n.valueAccessor.writeValue(t.value),(t.disabled||e==="always")&&n.valueAccessor.setDisabledState?.(t.disabled),tee(t,n),nee(t,n),iee(t,n),eee(t,n)}function hx(t,n,e=!0){let i=()=>{};n.valueAccessor&&(n.valueAccessor.registerOnChange(i),n.valueAccessor.registerOnTouched(i)),fx(t,n),t&&(n._invokeOnDestroyCallbacks(),t._registerOnCollectionChange(()=>{}))}function px(t,n){t.forEach(e=>{e.registerOnValidatorChange&&e.registerOnValidatorChange(n)})}function eee(t,n){if(n.valueAccessor.setDisabledState){let e=i=>{n.valueAccessor.setDisabledState(i)};t.registerOnDisabledChange(e),n._registerOnDestroy(()=>{t._unregisterOnDisabledChange(e)})}}function ak(t,n){let e=BB(t);n.validator!==null?t.setValidators(CB(e,n.validator)):typeof e=="function"&&t.setValidators([e]);let i=jB(t);n.asyncValidator!==null?t.setAsyncValidators(CB(i,n.asyncValidator)):typeof i=="function"&&t.setAsyncValidators([i]);let r=()=>t.updateValueAndValidity();px(n._rawValidators,r),px(n._rawAsyncValidators,r)}function fx(t,n){let e=!1;if(t!==null){if(n.validator!==null){let r=BB(t);if(Array.isArray(r)&&r.length>0){let o=r.filter(a=>a!==n.validator);o.length!==r.length&&(e=!0,t.setValidators(o))}}if(n.asyncValidator!==null){let r=jB(t);if(Array.isArray(r)&&r.length>0){let o=r.filter(a=>a!==n.asyncValidator);o.length!==r.length&&(e=!0,t.setAsyncValidators(o))}}}let i=()=>{};return px(n._rawValidators,i),px(n._rawAsyncValidators,i),e}function tee(t,n){n.valueAccessor.registerOnChange(e=>{t._pendingValue=e,t._pendingChange=!0,t._pendingDirty=!0,t.updateOn==="change"&&$B(t,n)})}function iee(t,n){n.valueAccessor.registerOnTouched(()=>{t._pendingTouched=!0,t.updateOn==="blur"&&t._pendingChange&&$B(t,n),t.updateOn!=="submit"&&t.markAsTouched()})}function $B(t,n){t._pendingDirty&&t.markAsDirty(),t.setValue(t._pendingValue,{emitModelToViewChange:!1}),n.viewToModelUpdate(t._pendingValue),t._pendingChange=!1}function nee(t,n){let e=(i,r)=>{n.valueAccessor.writeValue(i),r&&n.viewToModelUpdate(i)};t.registerOnChange(e),n._registerOnDestroy(()=>{t._unregisterOnChange(e)})}function WB(t,n){t==null,ak(t,n)}function ree(t,n){return fx(t,n)}function sk(t,n){if(!t.hasOwnProperty("model"))return!1;let e=t.model;return e.isFirstChange()?!0:!Object.is(n,e.currentValue)}function oee(t){return Object.getPrototypeOf(t.constructor)===IB}function GB(t,n){t._syncPendingControls(),n.forEach(e=>{let i=e.control;i.updateOn==="submit"&&i._pendingChange&&(e.viewToModelUpdate(i._pendingValue),i._pendingChange=!1)})}function lk(t,n){if(!n)return null;Array.isArray(n);let e,i,r;return n.forEach(o=>{o.constructor===Hi?e=o:oee(o)?i=o:r=o}),r||i||e||null}function aee(t,n){let e=t.indexOf(n);e>-1&&t.splice(e,1)}var see={provide:Ms,useExisting:ri(()=>gc)},fg=Promise.resolve(),gc=(()=>{class t extends Ms{callSetDisabledState;get submitted(){return Ai(this.submittedReactive)}_submitted=oi(()=>this.submittedReactive());submittedReactive=he(!1);_directives=new Set;form;ngSubmit=new U;options;constructor(e,i,r){super(),this.callSetDisabledState=r,this.form=new hu({},ik(e),nk(i))}ngAfterViewInit(){this._setUpdateStrategy()}get formDirective(){return this}get control(){return this.form}get path(){return[]}get controls(){return this.form.controls}addControl(e){fg.then(()=>{let i=this._findContainer(e.path);e.control=i.registerControl(e.name,e.control),vg(e.control,e,this.callSetDisabledState),e.control.updateValueAndValidity({emitEvent:!1}),this._directives.add(e)})}getControl(e){return this.form.get(e.path)}removeControl(e){fg.then(()=>{let i=this._findContainer(e.path);i&&i.removeControl(e.name),this._directives.delete(e)})}addFormGroup(e){fg.then(()=>{let i=this._findContainer(e.path),r=new hu({});WB(r,e),i.registerControl(e.name,r),r.updateValueAndValidity({emitEvent:!1})})}removeFormGroup(e){fg.then(()=>{let i=this._findContainer(e.path);i&&i.removeControl(e.name)})}getFormGroup(e){return this.form.get(e.path)}updateModel(e,i){fg.then(()=>{this.form.get(e.path).setValue(i)})}setValue(e){this.control.setValue(e)}onSubmit(e){return this.submittedReactive.set(!0),GB(this.form,this._directives),this.ngSubmit.emit(e),this.form._events.next(new mx(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(i){return new(i||t)(be(na,10),be(yg,10),be(Sh,8))};static \u0275dir=P({type:t,selectors:[["form",3,"ngNoForm","",3,"formGroup",""],["ng-form"],["","ngForm",""]],hostBindings:function(i,r){i&1&&S("submit",function(a){return r.onSubmit(a)})("reset",function(){return r.onReset()})},inputs:{options:[0,"ngFormOptions","options"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],standalone:!1,features:[Ce([see]),le]})}return t})();function EB(t,n){let e=t.indexOf(n);e>-1&&t.splice(e,1)}function MB(t){return typeof t=="object"&&t!==null&&Object.keys(t).length===2&&"value"in t&&"disabled"in t}var ia=class extends fc{defaultValue=null;_onChange=[];_pendingValue;_pendingChange=!1;constructor(n=null,e,i){super(rk(e),ok(i,e)),this._applyFormState(n),this._setUpdateStrategy(e),this._initObservables(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator}),_x(e)&&(e.nonNullable||e.initialValueIsDefault)&&(MB(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(i=>i(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),this._pendingChange=!1,e?.emitEvent!==!1&&this._events.next(new bg(this))}_updateValue(){}_anyControls(n){return!1}_allControlsDisabled(){return this.disabled}registerOnChange(n){this._onChange.push(n)}_unregisterOnChange(n){EB(this._onChange,n)}registerOnDisabledChange(n){this._onDisabledChange.push(n)}_unregisterOnDisabledChange(n){EB(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){MB(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}},qB=ia,lee=t=>t instanceof ia;var cee={provide:Un,useExisting:ri(()=>pu)},SB=Promise.resolve(),pu=(()=>{class t extends Un{_changeDetectorRef;callSetDisabledState;control=new ia;static ngAcceptInputType_isDisabled;_registered=!1;viewModel;name="";isDisabled;model;options;update=new U;constructor(e,i,r,o,a,s){super(),this._changeDetectorRef=a,this.callSetDisabledState=s,this._parent=e,this._setValidators(i),this._setAsyncValidators(r),this.valueAccessor=lk(this,o)}ngOnChanges(e){if(this._checkForErrors(),!this._registered||"name"in e){if(this._registered&&(this._checkName(),this.formDirective)){let i=e.name.previousValue;this.formDirective.removeControl({name:i,path:this._getPath(i)})}this._setUpControl()}"isDisabled"in e&&this._updateDisabled(e),sk(e,this.viewModel)&&(this._updateValue(this.model),this.viewModel=this.model)}ngOnDestroy(){this.formDirective&&this.formDirective.removeControl(this)}get path(){return this._getPath(this.name)}get formDirective(){return this._parent?this._parent.formDirective:null}viewToModelUpdate(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(){vg(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){SB.then(()=>{this.control.setValue(e,{emitViewToModelChange:!1}),this._changeDetectorRef?.markForCheck()})}_updateDisabled(e){let i=e.isDisabled.currentValue,r=i!==0&&L(i);SB.then(()=>{r&&!this.control.disabled?this.control.disable():!r&&this.control.disabled&&this.control.enable(),this._changeDetectorRef?.markForCheck()})}_getPath(e){return this._parent?UB(e,this._parent):[e]}static \u0275fac=function(i){return new(i||t)(be(Ms,9),be(na,10),be(yg,10),be(rr,10),be(ye,8),be(Sh,8))};static \u0275dir=P({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:[Ce([cee]),le,Ae]})}return t})();var no=(()=>{class t{static \u0275fac=function(i){return new(i||t)};static \u0275dir=P({type:t,selectors:[["form",3,"ngNoForm","",3,"ngNativeValidate",""]],hostAttrs:["novalidate",""],standalone:!1})}return t})(),dee={provide:rr,useExisting:ri(()=>fu),multi:!0},fu=(()=>{class t extends IB{writeValue(e){let i=e??"";this.setProperty("value",i)}registerOnChange(e){this.onChange=i=>{e(i==""?null:parseFloat(i))}}static \u0275fac=(()=>{let e;return function(r){return(e||(e=ge(t)))(r||t)}})();static \u0275dir=P({type:t,selectors:[["input","type","number","formControlName",""],["input","type","number","formControl",""],["input","type","number","ngModel",""]],hostBindings:function(i,r){i&1&&S("input",function(a){return r.onChange(a.target.value)})("blur",function(){return r.onTouched()})},standalone:!1,features:[Ce([dee]),le]})}return t})();var ck=new O(""),uee={provide:Un,useExisting:ri(()=>To)},To=(()=>{class t extends Un{_ngModelWarningConfig;callSetDisabledState;viewModel;form;set isDisabled(e){}model;update=new U;static _ngModelWarningSentOnce=!1;_ngModelWarningSent=!1;constructor(e,i,r,o,a){super(),this._ngModelWarningConfig=o,this.callSetDisabledState=a,this._setValidators(e),this._setAsyncValidators(i),this.valueAccessor=lk(this,r)}ngOnChanges(e){if(this._isControlChanged(e)){let i=e.form.previousValue;i&&hx(i,this,!1),vg(this.form,this,this.callSetDisabledState),this.form.updateValueAndValidity({emitEvent:!1})}sk(e,this.viewModel)&&(this.form.setValue(this.model),this.viewModel=this.model)}ngOnDestroy(){this.form&&hx(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(i){return new(i||t)(be(na,10),be(yg,10),be(rr,10),be(ck,8),be(Sh,8))};static \u0275dir=P({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:[Ce([uee]),le,Ae]})}return t})(),mee={provide:Ms,useExisting:ri(()=>Ji)},Ji=(()=>{class t extends Ms{callSetDisabledState;get submitted(){return Ai(this._submittedReactive)}set submitted(e){this._submittedReactive.set(e)}_submitted=oi(()=>this._submittedReactive());_submittedReactive=he(!1);_oldForm;_onCollectionChange=()=>this._updateDomValue();directives=[];form=null;ngSubmit=new U;constructor(e,i,r){super(),this.callSetDisabledState=r,this._setValidators(e),this._setAsyncValidators(i)}ngOnChanges(e){e.hasOwnProperty("form")&&(this._updateValidators(),this._updateDomValue(),this._updateRegistrations(),this._oldForm=this.form)}ngOnDestroy(){this.form&&(fx(this.form,this),this.form._onCollectionChange===this._onCollectionChange&&this.form._registerOnCollectionChange(()=>{}))}get formDirective(){return this}get control(){return this.form}get path(){return[]}addControl(e){let i=this.form.get(e.path);return vg(i,e,this.callSetDisabledState),i.updateValueAndValidity({emitEvent:!1}),this.directives.push(e),i}getControl(e){return this.form.get(e.path)}removeControl(e){hx(e.control||null,e,!1),aee(this.directives,e)}addFormGroup(e){this._setUpFormContainer(e)}removeFormGroup(e){this._cleanUpFormContainer(e)}getFormGroup(e){return this.form.get(e.path)}addFormArray(e){this._setUpFormContainer(e)}removeFormArray(e){this._cleanUpFormContainer(e)}getFormArray(e){return this.form.get(e.path)}updateModel(e,i){this.form.get(e.path).setValue(i)}onSubmit(e){return this._submittedReactive.set(!0),GB(this.form,this.directives),this.ngSubmit.emit(e),this.form._events.next(new mx(this.control)),e?.target?.method==="dialog"}onReset(){this.resetForm()}resetForm(e=void 0,i={}){this.form.reset(e,i),this._submittedReactive.set(!1)}_updateDomValue(){this.directives.forEach(e=>{let i=e.control,r=this.form.get(e.path);i!==r&&(hx(i||null,e),lee(r)&&(vg(r,e,this.callSetDisabledState),e.control=r))}),this.form._updateTreeValidity({emitEvent:!1})}_setUpFormContainer(e){let i=this.form.get(e.path);WB(i,e),i.updateValueAndValidity({emitEvent:!1})}_cleanUpFormContainer(e){if(this.form){let i=this.form.get(e.path);i&&ree(i,e)&&i.updateValueAndValidity({emitEvent:!1})}}_updateRegistrations(){this.form._registerOnCollectionChange(this._onCollectionChange),this._oldForm&&this._oldForm._registerOnCollectionChange(()=>{})}_updateValidators(){ak(this.form,this),this._oldForm&&fx(this._oldForm,this)}static \u0275fac=function(i){return new(i||t)(be(na,10),be(yg,10),be(Sh,8))};static \u0275dir=P({type:t,selectors:[["","formGroup",""]],hostBindings:function(i,r){i&1&&S("submit",function(a){return r.onSubmit(a)})("reset",function(){return r.onReset()})},inputs:{form:[0,"formGroup","form"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],standalone:!1,features:[Ce([mee]),le,Ae]})}return t})();var hee={provide:Un,useExisting:ri(()=>Ur)},Ur=(()=>{class t extends Un{_ngModelWarningConfig;_added=!1;viewModel;control;name=null;set isDisabled(e){}model;update=new U;static _ngModelWarningSentOnce=!1;_ngModelWarningSent=!1;constructor(e,i,r,o,a){super(),this._ngModelWarningConfig=a,this._parent=e,this._setValidators(i),this._setAsyncValidators(r),this.valueAccessor=lk(this,o)}ngOnChanges(e){this._added||this._setUpControl(),sk(e,this.viewModel)&&(this.viewModel=this.model,this.formDirective.updateModel(this,this.model))}ngOnDestroy(){this.formDirective&&this.formDirective.removeControl(this)}viewToModelUpdate(e){this.viewModel=e,this.update.emit(e)}get path(){return UB(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(i){return new(i||t)(be(Ms,13),be(na,10),be(yg,10),be(rr,10),be(ck,8))};static \u0275dir=P({type:t,selectors:[["","formControlName",""]],inputs:{name:[0,"formControlName","name"],isDisabled:[0,"disabled","isDisabled"],model:[0,"ngModel","model"]},outputs:{update:"ngModelChange"},standalone:!1,features:[Ce([hee]),le,Ae]})}return t})();var pee=(()=>{class t{_validator=sx;_onChange;_enabled;ngOnChanges(e){if(this.inputName in e){let i=this.normalizeInput(e[this.inputName].currentValue);this._enabled=this.enabled(i),this._validator=this._enabled?this.createValidator(i):sx,this._onChange&&this._onChange()}}validate(e){return this._validator(e)}registerOnValidatorChange(e){this._onChange=e}enabled(e){return e!=null}static \u0275fac=function(i){return new(i||t)};static \u0275dir=P({type:t,features:[Ae]})}return t})();var fee={provide:na,useExisting:ri(()=>Io),multi:!0};var Io=(()=>{class t extends pee{required;inputName="required";normalizeInput=L;createValidator=e=>AB;enabled(e){return e}static \u0275fac=(()=>{let e;return function(r){return(e||(e=ge(t)))(r||t)}})();static \u0275dir=P({type:t,selectors:[["","required","","formControlName","",3,"type","checkbox"],["","required","","formControl","",3,"type","checkbox"],["","required","","ngModel","",3,"type","checkbox"]],hostVars:1,hostBindings:function(i,r){i&2&&X("required",r._enabled?"":null)},inputs:{required:"required"},standalone:!1,features:[Ce([fee]),le]})}return t})();var YB=(()=>{class t{static \u0275fac=function(i){return new(i||t)};static \u0275mod=ee({type:t});static \u0275inj=J({})}return t})(),gx=class extends fc{constructor(n,e,i){super(rk(e),ok(i,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(i=>{this.controls.push(i),this._registerControl(i)}):(this.controls.push(n),this._registerControl(n)),this.updateValueAndValidity({emitEvent:e.emitEvent}),this._onCollectionChange()}insert(n,e,i={}){this.controls.splice(n,0,e),this._registerControl(e),this.updateValueAndValidity({emitEvent:i.emitEvent})}removeAt(n,e={}){let i=this._adjustIndex(n);i<0&&(i=0),this.controls[i]&&this.controls[i]._registerOnCollectionChange(()=>{}),this.controls.splice(i,1),this.updateValueAndValidity({emitEvent:e.emitEvent})}setControl(n,e,i={}){let r=this._adjustIndex(n);r<0&&(r=0),this.controls[r]&&this.controls[r]._registerOnCollectionChange(()=>{}),this.controls.splice(r,1),e&&(this.controls.splice(r,0,e),this._registerControl(e)),this.updateValueAndValidity({emitEvent:i.emitEvent}),this._onCollectionChange()}get length(){return this.controls.length}setValue(n,e={}){zB(this,!1,n),n.forEach((i,r)=>{HB(this,!1,r),this.at(r).setValue(i,{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e)}patchValue(n,e={}){n!=null&&(n.forEach((i,r)=>{this.at(r)&&this.at(r).patchValue(i,{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e))}reset(n=[],e={}){this._forEachChild((i,r)=>{i.reset(n[r],{onlySelf:!0,emitEvent:e.emitEvent})}),this._updatePristine(e,this),this._updateTouched(e,this),this.updateValueAndValidity(e),e?.emitEvent!==!1&&this._events.next(new bg(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,i)=>i._syncPendingControls()?!0:e,!1);return n&&this.updateValueAndValidity({onlySelf:!0}),n}_forEachChild(n){this.controls.forEach((e,i)=>{n(e,i)})}_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}},dk=gx;function kB(t){return!!t&&(t.asyncValidators!==void 0||t.validators!==void 0||t.updateOn!==void 0)}var ro=(()=>{class t{useNonNullable=!1;get nonNullable(){let e=new t;return e.useNonNullable=!0,e}group(e,i=null){let r=this._reduceControls(e),o={};return kB(i)?o=i:i!==null&&(o.validators=i.validator,o.asyncValidators=i.asyncValidator),new hu(r,o)}record(e,i=null){let r=this._reduceControls(e);return new JS(r,i)}control(e,i,r){let o={};return this.useNonNullable?(kB(i)?o=i:(o.validators=i,o.asyncValidators=r),new ia(e,Ee(k({},o),{nonNullable:!0}))):new ia(e,i,r)}array(e,i,r){let o=e.map(a=>this._createControl(a));return new gx(o,i,r)}_reduceControls(e){let i={};return Object.keys(e).forEach(r=>{i[r]=this._createControl(e[r])}),i}_createControl(e){if(e instanceof ia)return e;if(e instanceof fc)return e;if(Array.isArray(e)){let i=e[0],r=e.length>1?e[1]:null,o=e.length>2?e[2]:null;return this.control(i,r,o)}else return this.control(e)}static \u0275fac=function(i){return new(i||t)};static \u0275prov=R({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();var pl=(()=>{class t{static withConfig(e){return{ngModule:t,providers:[{provide:Sh,useValue:e.callSetDisabledState??vx}]}}static \u0275fac=function(i){return new(i||t)};static \u0275mod=ee({type:t});static \u0275inj=J({imports:[YB]})}return t})(),$n=(()=>{class t{static withConfig(e){return{ngModule:t,providers:[{provide:ck,useValue:e.warnOnNgModelWithFormControl??"always"},{provide:Sh,useValue:e.callSetDisabledState??vx}]}}static \u0275fac=function(i){return new(i||t)};static \u0275mod=ee({type:t});static \u0275inj=J({imports:[YB]})}return t})();var Pi=(()=>{class t{static \u0275fac=function(i){return new(i||t)};static \u0275mod=ee({type:t});static \u0275inj=J({imports:[De,Jm,Ci,De]})}return t})();var gee=["trigger"],_ee=["panel"],bee=[[["mat-select-trigger"]],"*"],vee=["mat-select-trigger","*"];function yee(t,n){if(t&1&&(m(0,"span",4),g(1),h()),t&2){let e=x();f(),N(e.placeholder)}}function xee(t,n){t&1&&ne(0)}function Cee(t,n){if(t&1&&(m(0,"span",11),g(1),h()),t&2){let e=x(2);f(),N(e.triggerValue)}}function wee(t,n){if(t&1&&(m(0,"span",5),V(1,xee,1,0)(2,Cee,2,1,"span",11),h()),t&2){let e=x();f(),B(e.customTrigger?1:2)}}function Dee(t,n){if(t&1){let e=q();m(0,"div",12,1),S("keydown",function(r){T(e);let o=x();return I(o._handleKeydown(r))}),ne(2,1),h()}if(t&2){let e=x();nt(qo("mat-mdc-select-panel mdc-menu-surface mdc-menu-surface--open ",e._getPanelTheme())),G("mat-select-panel-animations-enabled",!e._animationsDisabled),v("ngClass",e.panelClass),X("id",e.id+"-panel")("aria-multiselectable",e.multiple)("aria-label",e.ariaLabel||null)("aria-labelledby",e._getPanelAriaLabelledby())}}var uk=new O("mat-select-scroll-strategy",{providedIn:"root",factory:()=>{let t=u(de);return()=>En(t)}});function QB(t){let n=u(de);return()=>En(n)}var KB=new O("MAT_SELECT_CONFIG"),ZB={provide:uk,deps:[],useFactory:QB},XB=new O("MatSelectTrigger"),yx=class{source;value;constructor(n,e){this.source=n,this.value=e}},La=(()=>{class t{_viewportRuler=u(tr);_changeDetectorRef=u(ye);_elementRef=u(Y);_dir=u(Bt,{optional:!0});_idGenerator=u(Ze);_renderer=u(ze);_parentFormField=u(ta,{optional:!0});ngControl=u(Un,{self:!0,optional:!0});_liveAnnouncer=u(Zf);_defaultOptions=u(KB,{optional:!0});_animationsDisabled=Ye();_initialized=new z;_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 i=this.options.toArray()[e];if(i){let r=this.panel.nativeElement,o=eg(e,this.options,this.optionGroups),a=i._getHostElement();e===0&&o===1?r.scrollTop=0:r.scrollTop=tg(a.offsetTop,a.offsetHeight,r.scrollTop,r.offsetHeight)}}_positioningSettled(){this._scrollOptionIntoView(this._keyManager.activeItemIndex||0)}_getChangeEvent(e){return new yx(this,e)}_scrollStrategyFactory=u(uk);_panelOpen=!1;_compareWith=(e,i)=>e===i;_uid=this._idGenerator.getId("mat-select-");_triggerAriaLabelledBy=null;_previousControl;_destroy=new z;_errorStateTracker;stateChanges=new z;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=he(!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(Le.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=In(()=>{let e=this.options;return e?e.changes.pipe(Ue(e),je(()=>Je(...e.map(i=>i.onSelectionChange)))):this._initialized.pipe(je(()=>this.optionSelectionChanges))});openedChange=new U;_openedStream=this.openedChange.pipe(ce(e=>e),se(()=>{}));_closedStream=this.openedChange.pipe(ce(e=>!e),se(()=>{}));selectionChange=new U;valueChange=new U;constructor(){let e=u(ul),i=u(gc,{optional:!0}),r=u(Ji,{optional:!0}),o=u(new Oi("tabindex"),{optional:!0});this.ngControl&&(this.ngControl.valueAccessor=this),this._defaultOptions?.typeaheadDebounceInterval!=null&&(this.typeaheadDebounceInterval=this._defaultOptions.typeaheadDebounceInterval),this._errorStateTracker=new dl(e,this.ngControl,r,i,this.stateChanges),this._scrollStrategy=this._scrollStrategyFactory(),this.tabIndex=o==null?0:parseInt(o)||0,this.id=this.id}ngOnInit(){this._selectionModel=new mg(this.multiple),this.stateChanges.next(),this._viewportRuler.change().pipe(we(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(we(this._destroy)).subscribe(e=>{e.added.forEach(i=>i.select()),e.removed.forEach(i=>i.deselect())}),this.options.changes.pipe(Ue(null),we(this._destroy)).subscribe(()=>{this._resetOptions(),this._initializeSelection()})}ngDoCheck(){let e=this._getTriggerAriaLabelledby(),i=this.ngControl;if(e!==this._triggerAriaLabelledBy){let r=this._elementRef.nativeElement;this._triggerAriaLabelledBy=e,e?r.setAttribute("aria-labelledby",e):r.removeAttribute("aria-labelledby")}i&&(this._previousControl!==i.control&&(this._previousControl!==void 0&&i.disabled!==null&&i.disabled!==this.disabled&&(this.disabled=i.disabled),this._previousControl=i.control),this.updateErrorState())}ngOnChanges(e){(e.disabled||e.userAriaDescribedBy)&&this.stateChanges.next(),e.typeaheadDebounceInterval&&this._keyManager&&this._keyManager.withTypeAhead(this.typeaheadDebounceInterval)}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(ct(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 i=`${this.id}-panel`;this._trackedModal&&cc(this._trackedModal,"aria-owns",i),ih(e,"aria-owns",i),this._trackedModal=e}_clearFromModal(){if(!this._trackedModal)return;let e=`${this.id}-panel`;cc(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=()=>{i(),clearTimeout(r),this._cleanupDetach=void 0};let e=this.panel.nativeElement,i=this._renderer.listen(e,"animationend",o=>{o.animationName==="_mat-select-exit"&&(this._cleanupDetach?.(),this._detachOverlay())}),r=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(i=>i.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 i=e.keyCode,r=i===40||i===38||i===37||i===39,o=i===13||i===32,a=this._keyManager;if(!a.isTyping()&&o&&!Lt(e)||(this.multiple||e.altKey)&&r)e.preventDefault(),this.open();else if(!this.multiple){let s=this.selected;a.onKeydown(e);let l=this.selected;l&&s!==l&&this._liveAnnouncer.announce(l.viewValue,1e4)}}_handleOpenKeydown(e){let i=this._keyManager,r=e.keyCode,o=r===40||r===38,a=i.isTyping();if(o&&e.altKey)e.preventDefault(),this.close();else if(!a&&(r===13||r===32)&&i.activeItem&&!Lt(e))e.preventDefault(),i.activeItem._selectViaInteraction();else if(!a&&this._multiple&&r===65&&e.ctrlKey){e.preventDefault();let s=this.options.some(l=>!l.disabled&&!l.selected);this.options.forEach(l=>{l.disabled||(s?l.select():l.deselect())})}else{let s=i.activeItemIndex;i.onKeydown(e),this._multiple&&o&&e.shiftKey&&i.activeItem&&i.activeItemIndex!==s&&i.activeItem._selectViaInteraction()}}_handleOverlayKeydown(e){e.keyCode===27&&!Lt(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())}_getPanelTheme(){return this._parentFormField?`mat-${this._parentFormField.color}`:""}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(i=>i.setInactiveStyles()),this._selectionModel.clear(),this.multiple&&e)Array.isArray(e),e.forEach(i=>this._selectOptionByValue(i)),this._sortValues();else{let i=this._selectOptionByValue(e);i?this._keyManager.updateActiveItem(i):this.panelOpen||this._keyManager.updateActiveItem(-1)}this._changeDetectorRef.markForCheck()}_selectOptionByValue(e){let i=this.options.find(r=>{if(this._selectionModel.isSelected(r))return!1;try{return(r.value!=null||this.canSelectNullableOptions)&&this._compareWith(r.value,e)}catch{return!1}});return i&&this._selectionModel.select(i),i}_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 Dh?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 Jd(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=Je(this.options.changes,this._destroy);this.optionSelectionChanges.pipe(we(e)).subscribe(i=>{this._onSelect(i.source,i.isUserInput),i.isUserInput&&!this.multiple&&this._panelOpen&&(this.close(),this.focus())}),Je(...this.options.map(i=>i._stateChanges)).pipe(we(e)).subscribe(()=>{this._changeDetectorRef.detectChanges(),this.stateChanges.next()})}_onSelect(e,i){let r=this._selectionModel.isSelected(e);!this.canSelectNullableOptions&&e.value==null&&!this._multiple?(e.deselect(),this._selectionModel.clear(),this.value!=null&&this._propagateChanges(e.value)):(r!==e.selected&&(e.selected?this._selectionModel.select(e):this._selectionModel.deselect(e)),i&&this._keyManager.setActiveItem(e),this.multiple&&(this._sortValues(),i&&this.focus())),r!==this._selectionModel.isSelected(e)&&this._propagateChanges(),this.stateChanges.next()}_sortValues(){if(this.multiple){let e=this.options.toArray();this._selectionModel.sort((i,r)=>this.sortComparator?this.sortComparator(i,r,e):e.indexOf(i)-e.indexOf(r)),this.stateChanges.next()}}_propagateChanges(e){let i;this.multiple?i=this.selected.map(r=>r.value):i=this.selected?this.selected.value:e,this._value=i,this.valueChange.emit(i),this._onChange(i),this.selectionChange.emit(this._getChangeEvent(i)),this._changeDetectorRef.markForCheck()}_highlightCorrectOption(){if(this._keyManager)if(this.empty){let e=-1;for(let i=0;i0&&!!this._overlayDir}focus(e){this._elementRef.nativeElement.focus(e)}_getPanelAriaLabelledby(){if(this.ariaLabel)return null;let e=this._parentFormField?.getLabelId()||null,i=e?e+" ":"";return this.ariaLabelledby?i+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){e.length?this._elementRef.nativeElement.setAttribute("aria-describedby",e.join(" ")):this._elementRef.nativeElement.removeAttribute("aria-describedby")}onContainerClick(){this.focus(),this.open()}get shouldLabelFloat(){return this.panelOpen||!this.empty||this.focused&&!!this.placeholder}static \u0275fac=function(i){return new(i||t)};static \u0275cmp=E({type:t,selectors:[["mat-select"]],contentQueries:function(i,r,o){if(i&1&&(xe(o,XB,5),xe(o,wn,5),xe(o,nu,5)),i&2){let a;j(a=H())&&(r.customTrigger=a.first),j(a=H())&&(r.options=a),j(a=H())&&(r.optionGroups=a)}},viewQuery:function(i,r){if(i&1&&(ie(gee,5),ie(_ee,5),ie(ox,5)),i&2){let o;j(o=H())&&(r.trigger=o.first),j(o=H())&&(r.panel=o.first),j(o=H())&&(r._overlayDir=o.first)}},hostAttrs:["role","combobox","aria-haspopup","listbox",1,"mat-mdc-select"],hostVars:21,hostBindings:function(i,r){i&1&&S("keydown",function(a){return r._handleKeydown(a)})("focus",function(){return r._onFocus()})("blur",function(){return r._onBlur()}),i&2&&(X("id",r.id)("tabindex",r.disabled?-1:r.tabIndex)("aria-controls",r.panelOpen?r.id+"-panel":null)("aria-expanded",r.panelOpen)("aria-label",r.ariaLabel||null)("aria-required",r.required.toString())("aria-disabled",r.disabled.toString())("aria-invalid",r.errorState)("aria-activedescendant",r._getAriaActiveDescendant()),G("mat-mdc-select-disabled",r.disabled)("mat-mdc-select-invalid",r.errorState)("mat-mdc-select-required",r.required)("mat-mdc-select-empty",r.empty)("mat-mdc-select-multiple",r.multiple)("mat-select-open",r.panelOpen))},inputs:{userAriaDescribedBy:[0,"aria-describedby","userAriaDescribedBy"],panelClass:"panelClass",disabled:[2,"disabled","disabled",L],disableRipple:[2,"disableRipple","disableRipple",L],tabIndex:[2,"tabIndex","tabIndex",e=>e==null?0:dt(e)],hideSingleSelectionIndicator:[2,"hideSingleSelectionIndicator","hideSingleSelectionIndicator",L],placeholder:"placeholder",required:[2,"required","required",L],multiple:[2,"multiple","multiple",L],disableOptionCentering:[2,"disableOptionCentering","disableOptionCentering",L],compareWith:"compareWith",value:"value",ariaLabel:[0,"aria-label","ariaLabel"],ariaLabelledby:[0,"aria-labelledby","ariaLabelledby"],errorStateMatcher:"errorStateMatcher",typeaheadDebounceInterval:[2,"typeaheadDebounceInterval","typeaheadDebounceInterval",dt],sortComparator:"sortComparator",id:"id",panelWidth:"panelWidth",canSelectNullableOptions:[2,"canSelectNullableOptions","canSelectNullableOptions",L]},outputs:{openedChange:"openedChange",_openedStream:"opened",_closedStream:"closed",selectionChange:"selectionChange",valueChange:"valueChange"},exportAs:["matSelect"],features:[Ce([{provide:Pa,useExisting:t},{provide:iu,useExisting:t}]),Ae],ngContentSelectors:vee,decls:11,vars:9,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","","cdkConnectedOverlayLockPosition","","cdkConnectedOverlayHasBackdrop","","cdkConnectedOverlayBackdropClass","cdk-overlay-transparent-backdrop",3,"detach","backdropClick","overlayKeydown","cdkConnectedOverlayDisableClose","cdkConnectedOverlayPanelClass","cdkConnectedOverlayScrollStrategy","cdkConnectedOverlayOrigin","cdkConnectedOverlayPositions","cdkConnectedOverlayWidth","cdkConnectedOverlayFlexibleDimensions"],[1,"mat-mdc-select-min-line"],["role","listbox","tabindex","-1",3,"keydown","ngClass"]],template:function(i,r){if(i&1){let o=q();Se(bee),m(0,"div",2,0),S("click",function(){return T(o),I(r.open())}),m(3,"div",3),V(4,yee,2,1,"span",4)(5,wee,3,1,"span",5),h(),m(6,"div",6)(7,"div",7),Zt(),m(8,"svg",8),M(9,"path",9),h()()()(),A(10,Dee,3,10,"ng-template",10),S("detach",function(){return T(o),I(r.close())})("backdropClick",function(){return T(o),I(r.close())})("overlayKeydown",function(s){return T(o),I(r._handleOverlayKeydown(s))})}if(i&2){let o=Me(1);f(3),X("id",r._valueId),f(),B(r.empty?4:5),f(6),v("cdkConnectedOverlayDisableClose",!0)("cdkConnectedOverlayPanelClass",r._overlayPanelClass)("cdkConnectedOverlayScrollStrategy",r._scrollStrategy)("cdkConnectedOverlayOrigin",r._preferredOverlayOrigin||o)("cdkConnectedOverlayPositions",r._positions)("cdkConnectedOverlayWidth",r._overlayWidth)("cdkConnectedOverlayFlexibleDimensions",!0)}},dependencies:[Dh,ox,Bd],styles:[`@keyframes _mat-select-enter{from{opacity:0;transform:scaleY(0.8)}to{opacity:1;transform:none}}@keyframes _mat-select-exit{from{opacity:1}to{opacity:0}}.mat-mdc-select{display:inline-block;width:100%;outline:none;-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;color:var(--mat-select-enabled-trigger-text-color, var(--mat-sys-on-surface));font-family:var(--mat-select-trigger-text-font, var(--mat-sys-body-large-font));line-height:var(--mat-select-trigger-text-line-height, var(--mat-sys-body-large-line-height));font-size:var(--mat-select-trigger-text-size, var(--mat-sys-body-large-size));font-weight:var(--mat-select-trigger-text-weight, var(--mat-sys-body-large-weight));letter-spacing:var(--mat-select-trigger-text-tracking, var(--mat-sys-body-large-tracking))}div.mat-mdc-select-panel{box-shadow:var(--mat-select-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-mdc-select-disabled{color:var(--mat-select-disabled-trigger-text-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent))}.mat-mdc-select-disabled .mat-mdc-select-placeholder{color:var(--mat-select-disabled-trigger-text-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent))}.mat-mdc-select-trigger{display:inline-flex;align-items:center;cursor:pointer;position:relative;box-sizing:border-box;width:100%}.mat-mdc-select-disabled .mat-mdc-select-trigger{-webkit-user-select:none;user-select:none;cursor:default}.mat-mdc-select-value{width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.mat-mdc-select-value-text{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.mat-mdc-select-arrow-wrapper{height:24px;flex-shrink:0;display:inline-flex;align-items:center}.mat-form-field-appearance-fill .mdc-text-field--no-label .mat-mdc-select-arrow-wrapper{transform:none}.mat-mdc-form-field .mat-mdc-select.mat-mdc-select-invalid .mat-mdc-select-arrow,.mat-form-field-invalid:not(.mat-form-field-disabled) .mat-mdc-form-field-infix::after{color:var(--mat-select-invalid-arrow-color, var(--mat-sys-error))}.mat-mdc-select-arrow{width:10px;height:5px;position:relative;color:var(--mat-select-enabled-arrow-color, var(--mat-sys-on-surface-variant))}.mat-mdc-form-field.mat-focused .mat-mdc-select-arrow{color:var(--mat-select-focused-arrow-color, var(--mat-sys-primary))}.mat-mdc-form-field .mat-mdc-select.mat-mdc-select-disabled .mat-mdc-select-arrow{color:var(--mat-select-disabled-arrow-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent))}.mat-select-open .mat-mdc-select-arrow{transform:rotate(180deg)}.mat-form-field-animations-enabled .mat-mdc-select-arrow{transition:transform 80ms linear}.mat-mdc-select-arrow svg{fill:currentColor;position:absolute;top:50%;left:50%;transform:translate(-50%, -50%)}@media(forced-colors: active){.mat-mdc-select-arrow svg{fill:CanvasText}.mat-mdc-select-disabled .mat-mdc-select-arrow svg{fill:GrayText}}div.mat-mdc-select-panel{width:100%;max-height:275px;outline:0;overflow:auto;padding:8px 0;border-radius:4px;box-sizing:border-box;position:relative;background-color:var(--mat-select-panel-background-color, var(--mat-sys-surface-container))}@media(forced-colors: active){div.mat-mdc-select-panel{outline:solid 1px}}.cdk-overlay-pane:not(.mat-mdc-select-panel-above) div.mat-mdc-select-panel{border-top-left-radius:0;border-top-right-radius:0;transform-origin:top center}.mat-mdc-select-panel-above div.mat-mdc-select-panel{border-bottom-left-radius:0;border-bottom-right-radius:0;transform-origin:bottom center}.mat-select-panel-animations-enabled{animation:_mat-select-enter 120ms cubic-bezier(0, 0, 0.2, 1)}.mat-select-panel-animations-enabled.mat-select-panel-exit{animation:_mat-select-exit 100ms linear}.mat-mdc-select-placeholder{transition:color 400ms 133.3333333333ms cubic-bezier(0.25, 0.8, 0.25, 1);color:var(--mat-select-placeholder-text-color, var(--mat-sys-on-surface-variant))}.mat-mdc-form-field:not(.mat-form-field-animations-enabled) .mat-mdc-select-placeholder,._mat-animation-noopable .mat-mdc-select-placeholder{transition:none}.mat-form-field-hide-placeholder .mat-mdc-select-placeholder{color:rgba(0,0,0,0);-webkit-text-fill-color:rgba(0,0,0,0);transition:none;display:block}.mat-mdc-form-field-type-mat-select:not(.mat-form-field-disabled) .mat-mdc-text-field-wrapper{cursor:pointer}.mat-mdc-form-field-type-mat-select.mat-form-field-appearance-fill .mat-mdc-floating-label{max-width:calc(100% - 18px)}.mat-mdc-form-field-type-mat-select.mat-form-field-appearance-fill .mdc-floating-label--float-above{max-width:calc(100%/0.75 - 24px)}.mat-mdc-form-field-type-mat-select.mat-form-field-appearance-outline .mdc-notched-outline__notch{max-width:calc(100% - 60px)}.mat-mdc-form-field-type-mat-select.mat-form-field-appearance-outline .mdc-text-field--label-floating .mdc-notched-outline__notch{max-width:calc(100% - 24px)}.mat-mdc-select-min-line:empty::before{content:" ";white-space:pre;width:1px;display:inline-block;visibility:hidden}.mat-form-field-appearance-fill .mat-mdc-select-arrow-wrapper{transform:var(--mat-select-arrow-transform, translateY(-8px))} -`],encapsulation:2,changeDetection:0})}return t})();var _c=(()=>{class t{static \u0275fac=function(i){return new(i||t)};static \u0275mod=ee({type:t});static \u0275inj=J({providers:[ZB],imports:[nr,ch,De,Cr,Pi,ch,De]})}return t})();var Eee=["mat-icon-button",""],Mee=["*"],See=new O("MAT_BUTTON_CONFIG");function JB(t){return t==null?void 0:dt(t)}var xx=(()=>{class t{_elementRef=u(Y);_ngZone=u(ae);_animationsDisabled=Ye();_config=u(See,{optional:!0});_focusMonitor=u(ti);_cleanupClick;_renderer=u(ze);_rippleLoader=u(ey);_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(){u(ht).load(ki);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",i){e?this._focusMonitor.focusVia(this._elementRef.nativeElement,e,i):this._elementRef.nativeElement.focus(i)}_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(i){return new(i||t)};static \u0275dir=P({type:t,hostAttrs:[1,"mat-mdc-button-base"],hostVars:13,hostBindings:function(i,r){i&2&&(X("disabled",r._getDisabledAttribute())("aria-disabled",r._getAriaDisabled())("tabindex",r._getTabIndex()),nt(r.color?"mat-"+r.color:""),G("mat-mdc-button-disabled",r.disabled)("mat-mdc-button-disabled-interactive",r.disabledInteractive)("mat-unthemed",!r.color)("_mat-animation-noopable",r._animationsDisabled))},inputs:{color:"color",disableRipple:[2,"disableRipple","disableRipple",L],disabled:[2,"disabled","disabled",L],ariaDisabled:[2,"aria-disabled","ariaDisabled",L],disabledInteractive:[2,"disabledInteractive","disabledInteractive",L],tabIndex:[2,"tabIndex","tabIndex",JB],_tabindex:[2,"tabindex","_tabindex",JB]}})}return t})(),Yt=(()=>{class t extends xx{constructor(){super(),this._rippleLoader.configureRipple(this._elementRef.nativeElement,{centered:!0})}static \u0275fac=function(i){return new(i||t)};static \u0275cmp=E({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:[le],attrs:Eee,ngContentSelectors:Mee,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(i,r){i&1&&(Se(),Xt(0,"span",0),ne(1),Xt(2,"span",1)(3,"span",2))},styles:[`.mat-mdc-icon-button{-webkit-user-select:none;user-select:none;display:inline-block;position:relative;box-sizing:border-box;border:none;outline:none;background-color:rgba(0,0,0,0);fill:currentColor;text-decoration:none;cursor:pointer;z-index:0;overflow:visible;border-radius:var(--mat-icon-button-container-shape, var(--mat-sys-corner-full, 50%));flex-shrink:0;text-align:center;width:var(--mat-icon-button-state-layer-size, 40px);height:var(--mat-icon-button-state-layer-size, 40px);padding:calc(calc(var(--mat-icon-button-state-layer-size, 40px) - var(--mat-icon-button-icon-size, 24px)) / 2);font-size:var(--mat-icon-button-icon-size, 24px);color:var(--mat-icon-button-icon-color, var(--mat-sys-on-surface-variant));-webkit-tap-highlight-color:rgba(0,0,0,0)}.mat-mdc-icon-button .mat-mdc-button-ripple,.mat-mdc-icon-button .mat-mdc-button-persistent-ripple,.mat-mdc-icon-button .mat-mdc-button-persistent-ripple::before{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none;border-radius:inherit}.mat-mdc-icon-button .mat-mdc-button-ripple{overflow:hidden}.mat-mdc-icon-button .mat-mdc-button-persistent-ripple::before{content:"";opacity:0}.mat-mdc-icon-button .mdc-button__label,.mat-mdc-icon-button .mat-icon{z-index:1;position:relative}.mat-mdc-icon-button .mat-focus-indicator{top:0;left:0;right:0;bottom:0;position:absolute;border-radius:inherit}.mat-mdc-icon-button:focus>.mat-focus-indicator::before{content:"";border-radius:inherit}.mat-mdc-icon-button .mat-ripple-element{background-color:var(--mat-icon-button-ripple-color, color-mix(in srgb, var(--mat-sys-on-surface-variant) calc(var(--mat-sys-pressed-state-layer-opacity) * 100%), transparent))}.mat-mdc-icon-button .mat-mdc-button-persistent-ripple::before{background-color:var(--mat-icon-button-state-layer-color, var(--mat-sys-on-surface-variant))}.mat-mdc-icon-button.mat-mdc-button-disabled .mat-mdc-button-persistent-ripple::before{background-color:var(--mat-icon-button-disabled-state-layer-color, var(--mat-sys-on-surface-variant))}.mat-mdc-icon-button:hover>.mat-mdc-button-persistent-ripple::before{opacity:var(--mat-icon-button-hover-state-layer-opacity, var(--mat-sys-hover-state-layer-opacity))}.mat-mdc-icon-button.cdk-program-focused>.mat-mdc-button-persistent-ripple::before,.mat-mdc-icon-button.cdk-keyboard-focused>.mat-mdc-button-persistent-ripple::before,.mat-mdc-icon-button.mat-mdc-button-disabled-interactive:focus>.mat-mdc-button-persistent-ripple::before{opacity:var(--mat-icon-button-focus-state-layer-opacity, var(--mat-sys-focus-state-layer-opacity))}.mat-mdc-icon-button:active>.mat-mdc-button-persistent-ripple::before{opacity:var(--mat-icon-button-pressed-state-layer-opacity, var(--mat-sys-pressed-state-layer-opacity))}.mat-mdc-icon-button .mat-mdc-button-touch-target{position:absolute;top:50%;height:var(--mat-icon-button-touch-target-size, 48px);display:var(--mat-icon-button-touch-target-display, block);left:50%;width:var(--mat-icon-button-touch-target-size, 48px);transform:translate(-50%, -50%)}.mat-mdc-icon-button._mat-animation-noopable{transition:none !important;animation:none !important}.mat-mdc-icon-button[disabled],.mat-mdc-icon-button.mat-mdc-button-disabled{cursor:default;pointer-events:none;color:var(--mat-icon-button-disabled-icon-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent))}.mat-mdc-icon-button.mat-mdc-button-disabled-interactive{pointer-events:auto}.mat-mdc-icon-button img,.mat-mdc-icon-button svg{width:var(--mat-icon-button-icon-size, 24px);height:var(--mat-icon-button-icon-size, 24px);vertical-align:baseline}.mat-mdc-icon-button .mat-mdc-button-persistent-ripple{border-radius:var(--mat-icon-button-container-shape, var(--mat-sys-corner-full, 50%))}.mat-mdc-icon-button[hidden]{display:none}.mat-mdc-icon-button.mat-unthemed:not(.mdc-ripple-upgraded):focus::before,.mat-mdc-icon-button.mat-primary:not(.mdc-ripple-upgraded):focus::before,.mat-mdc-icon-button.mat-accent:not(.mdc-ripple-upgraded):focus::before,.mat-mdc-icon-button.mat-warn:not(.mdc-ripple-upgraded):focus::before{background:rgba(0,0,0,0);opacity:1} + [matCardTitle], [matCardSubtitle]`,"*"],GS=new O("MAT_CARD_CONFIG"),kt=(()=>{class t{appearance;constructor(){let e=u(GS,{optional:!0});this.appearance=e?.appearance||"raised"}static \u0275fac=function(i){return new(i||t)};static \u0275cmp=E({type:t,selectors:[["mat-card"]],hostAttrs:[1,"mat-mdc-card","mdc-card"],hostVars:8,hostBindings:function(i,r){i&2&&G("mat-mdc-card-outlined",r.appearance==="outlined")("mdc-card--outlined",r.appearance==="outlined")("mat-mdc-card-filled",r.appearance==="filled")("mdc-card--filled",r.appearance==="filled")},inputs:{appearance:"appearance"},exportAs:["matCard"],ngContentSelectors:nJ,decls:1,vars:0,template:function(i,r){i&1&&(Ee(),ne(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 rgba(0,0,0,0);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 t})(),Ot=(()=>{class t{static \u0275fac=function(i){return new(i||t)};static \u0275dir=P({type:t,selectors:[["mat-card-title"],["","mat-card-title",""],["","matCardTitle",""]],hostAttrs:[1,"mat-mdc-card-title"]})}return t})();var Tt=(()=>{class t{static \u0275fac=function(i){return new(i||t)};static \u0275dir=P({type:t,selectors:[["mat-card-content"]],hostAttrs:[1,"mat-mdc-card-content"]})}return t})(),Bs=(()=>{class t{static \u0275fac=function(i){return new(i||t)};static \u0275dir=P({type:t,selectors:[["mat-card-subtitle"],["","mat-card-subtitle",""],["","matCardSubtitle",""]],hostAttrs:[1,"mat-mdc-card-subtitle"]})}return t})(),Xy=(()=>{class t{align="start";static \u0275fac=function(i){return new(i||t)};static \u0275dir=P({type:t,selectors:[["mat-card-actions"]],hostAttrs:[1,"mat-mdc-card-actions","mdc-card__actions"],hostVars:2,hostBindings:function(i,r){i&2&&G("mat-mdc-card-actions-align-end",r.align==="end")},inputs:{align:"align"},exportAs:["matCardActions"]})}return t})(),Rt=(()=>{class t{static \u0275fac=function(i){return new(i||t)};static \u0275cmp=E({type:t,selectors:[["mat-card-header"]],hostAttrs:[1,"mat-mdc-card-header"],ngContentSelectors:oJ,decls:4,vars:0,consts:[[1,"mat-mdc-card-header-text"]],template:function(i,r){i&1&&(Ee(rJ),ne(0),gt(1,"div",0),ne(2,1),yt(),ne(3,2))},encapsulation:2,changeDetection:0})}return t})();var js=(()=>{class t{static \u0275fac=function(i){return new(i||t)};static \u0275dir=P({type:t,selectors:[["","mat-card-avatar",""],["","matCardAvatar",""]],hostAttrs:[1,"mat-mdc-card-avatar"]})}return t})();var It=(()=>{class t{static \u0275fac=function(i){return new(i||t)};static \u0275mod=ee({type:t});static \u0275inj=J({imports:[De,De]})}return t})();var qS=class{_box;_destroyed=new z;_resizeSubject=new z;_resizeObserver;_elementObservables=new Map;constructor(n){this._box=n,typeof ResizeObserver<"u"&&(this._resizeObserver=new ResizeObserver(e=>this._resizeSubject.next(e)))}observe(n){return this._elementObservables.has(n)||this._elementObservables.set(n,new Ne(e=>{let i=this._resizeSubject.subscribe(e);return this._resizeObserver?.observe(n,{box:this._box}),()=>{this._resizeObserver?.unobserve(n),i.unsubscribe(),this._elementObservables.delete(n)}}).pipe(ce(e=>e.some(i=>i.target===n)),vd({bufferSize:1,refCount:!0}),we(this._destroyed))),this._elementObservables.get(n)}destroy(){this._destroyed.next(),this._destroyed.complete(),this._resizeSubject.complete(),this._elementObservables.clear()}},Jy=(()=>{class t{_cleanupErrorListener;_observers=new Map;_ngZone=u(ae);constructor(){typeof ResizeObserver<"u"}ngOnDestroy(){for(let[,e]of this._observers)e.destroy();this._observers.clear(),this._cleanupErrorListener?.()}observe(e,i){let r=i?.box||"content-box";return this._observers.has(r)||this._observers.set(r,new qS(r)),this._observers.get(r).observe(e)}static \u0275fac=function(i){return new(i||t)};static \u0275prov=R({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();var aJ=["notch"],sJ=["matFormFieldNotchedOutline",""],lJ=["*"],qV=["iconPrefixContainer"],YV=["textPrefixContainer"],QV=["iconSuffixContainer"],KV=["textSuffixContainer"],cJ=["textField"],dJ=["*",[["mat-label"]],[["","matPrefix",""],["","matIconPrefix",""]],[["","matTextPrefix",""]],[["","matTextSuffix",""]],[["","matSuffix",""],["","matIconSuffix",""]],[["mat-error"],["","matError",""]],[["mat-hint",3,"align","end"]],[["mat-hint","align","end"]]],uJ=["*","mat-label","[matPrefix], [matIconPrefix]","[matTextPrefix]","[matTextSuffix]","[matSuffix], [matIconSuffix]","mat-error, [matError]","mat-hint:not([align='end'])","mat-hint[align='end']"];function mJ(t,n){t&1&&M(0,"span",21)}function hJ(t,n){if(t&1&&(m(0,"label",20),ne(1,1),V(2,mJ,1,0,"span",21),h()),t&2){let e=x(2);v("floating",e._shouldLabelFloat())("monitorResize",e._hasOutline())("id",e._labelId),X("for",e._control.disableAutomaticLabeling?null:e._control.id),g(2),B(!e.hideRequiredMarker&&e._control.required?2:-1)}}function pJ(t,n){if(t&1&&V(0,hJ,3,5,"label",20),t&2){let e=x();B(e._hasFloatingLabel()?0:-1)}}function fJ(t,n){t&1&&M(0,"div",7)}function gJ(t,n){}function _J(t,n){if(t&1&&A(0,gJ,0,0,"ng-template",13),t&2){x(2);let e=Te(1);v("ngTemplateOutlet",e)}}function bJ(t,n){if(t&1&&(m(0,"div",9),V(1,_J,1,1,null,13),h()),t&2){let e=x();v("matFormFieldNotchedOutlineOpen",e._shouldLabelFloat()),g(),B(e._forceDisplayInfixLabel()?-1:1)}}function vJ(t,n){t&1&&(m(0,"div",10,2),ne(2,2),h())}function yJ(t,n){t&1&&(m(0,"div",11,3),ne(2,3),h())}function xJ(t,n){}function CJ(t,n){if(t&1&&A(0,xJ,0,0,"ng-template",13),t&2){x();let e=Te(1);v("ngTemplateOutlet",e)}}function wJ(t,n){t&1&&(m(0,"div",14,4),ne(2,4),h())}function DJ(t,n){t&1&&(m(0,"div",15,5),ne(2,5),h())}function MJ(t,n){t&1&&M(0,"div",16)}function EJ(t,n){t&1&&(m(0,"div",18),ne(1,6),h())}function SJ(t,n){if(t&1&&(m(0,"mat-hint",22),f(1),h()),t&2){let e=x(2);v("id",e._hintLabelId),g(),N(e.hintLabel)}}function kJ(t,n){if(t&1&&(m(0,"div",19),V(1,SJ,2,2,"mat-hint",22),ne(2,7),M(3,"div",23),ne(4,8),h()),t&2){let e=x();g(),B(e.hintLabel?1:-1)}}var gi=(()=>{class t{static \u0275fac=function(i){return new(i||t)};static \u0275dir=P({type:t,selectors:[["mat-label"]]})}return t})(),YS=new O("MatError"),Ao=(()=>{class t{id=u(et).getId("mat-mdc-error-");constructor(){}static \u0275fac=function(i){return new(i||t)};static \u0275dir=P({type:t,selectors:[["mat-error"],["","matError",""]],hostAttrs:[1,"mat-mdc-form-field-error","mat-mdc-form-field-bottom-align"],hostVars:1,hostBindings:function(i,r){i&2&&pi("id",r.id)},inputs:{id:"id"},features:[Ce([{provide:YS,useExisting:t}])]})}return t})(),ag=(()=>{class t{align="start";id=u(et).getId("mat-mdc-hint-");static \u0275fac=function(i){return new(i||t)};static \u0275dir=P({type:t,selectors:[["mat-hint"]],hostAttrs:[1,"mat-mdc-form-field-hint","mat-mdc-form-field-bottom-align"],hostVars:4,hostBindings:function(i,r){i&2&&(pi("id",r.id),X("align",null),G("mat-mdc-form-field-hint-end",r.align==="end"))},inputs:{align:"align",id:"id"}})}return t})(),QS=new O("MatPrefix"),uu=(()=>{class t{set _isTextSelector(e){this._isText=!0}_isText=!1;static \u0275fac=function(i){return new(i||t)};static \u0275dir=P({type:t,selectors:[["","matPrefix",""],["","matIconPrefix",""],["","matTextPrefix",""]],inputs:{_isTextSelector:[0,"matTextPrefix","_isTextSelector"]},features:[Ce([{provide:QS,useExisting:t}])]})}return t})(),KS=new O("MatSuffix"),Qa=(()=>{class t{set _isTextSelector(e){this._isText=!0}_isText=!1;static \u0275fac=function(i){return new(i||t)};static \u0275dir=P({type:t,selectors:[["","matSuffix",""],["","matIconSuffix",""],["","matTextSuffix",""]],inputs:{_isTextSelector:[0,"matTextSuffix","_isTextSelector"]},features:[Ce([{provide:KS,useExisting:t}])]})}return t})(),nB=new O("FloatingLabelParent"),ZV=(()=>{class t{_elementRef=u(Y);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=u(Jy);_ngZone=u(ae);_parent=u(nB);_resizeSubscription=new ke;constructor(){}ngOnDestroy(){this._resizeSubscription.unsubscribe()}getWidth(){return TJ(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(i){return new(i||t)};static \u0275dir=P({type:t,selectors:[["label","matFormFieldFloatingLabel",""]],hostAttrs:[1,"mdc-floating-label","mat-mdc-floating-label"],hostVars:2,hostBindings:function(i,r){i&2&&G("mdc-floating-label--float-above",r.floating)},inputs:{floating:"floating",monitorResize:"monitorResize"}})}return t})();function TJ(t){let n=t;if(n.offsetParent!==null)return n.scrollWidth;let e=n.cloneNode(!0);e.style.setProperty("position","absolute"),e.style.setProperty("transform","translate(-9999px, -9999px)"),document.documentElement.appendChild(e);let i=e.scrollWidth;return e.remove(),i}var XV="mdc-line-ripple--active",ex="mdc-line-ripple--deactivating",JV=(()=>{class t{_elementRef=u(Y);_cleanupTransitionEnd;constructor(){let e=u(ae),i=u(ze);e.runOutsideAngular(()=>{this._cleanupTransitionEnd=i.listen(this._elementRef.nativeElement,"transitionend",this._handleTransitionEnd)})}activate(){let e=this._elementRef.nativeElement.classList;e.remove(ex),e.add(XV)}deactivate(){this._elementRef.nativeElement.classList.add(ex)}_handleTransitionEnd=e=>{let i=this._elementRef.nativeElement.classList,r=i.contains(ex);e.propertyName==="opacity"&&r&&i.remove(XV,ex)};ngOnDestroy(){this._cleanupTransitionEnd()}static \u0275fac=function(i){return new(i||t)};static \u0275dir=P({type:t,selectors:[["div","matFormFieldLineRipple",""]],hostAttrs:[1,"mdc-line-ripple"]})}return t})(),eB=(()=>{class t{_elementRef=u(Y);_ngZone=u(ae);open=!1;_notch;ngAfterViewInit(){let e=this._elementRef.nativeElement,i=e.querySelector(".mdc-floating-label");i?(e.classList.add("mdc-notched-outline--upgraded"),typeof requestAnimationFrame=="function"&&(i.style.transitionDuration="0s",this._ngZone.runOutsideAngular(()=>{requestAnimationFrame(()=>i.style.transitionDuration="")}))):e.classList.add("mdc-notched-outline--no-label")}_setNotchWidth(e){let i=this._notch.nativeElement;!this.open||!e?i.style.width="":i.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(i){return new(i||t)};static \u0275cmp=E({type:t,selectors:[["div","matFormFieldNotchedOutline",""]],viewQuery:function(i,r){if(i&1&&ie(aJ,5),i&2){let o;j(o=H())&&(r._notch=o.first)}},hostAttrs:[1,"mdc-notched-outline"],hostVars:2,hostBindings:function(i,r){i&2&&G("mdc-notched-outline--notched",r.open)},inputs:{open:[0,"matFormFieldNotchedOutlineOpen","open"]},attrs:sJ,ngContentSelectors:lJ,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(i,r){i&1&&(Ee(),ni(0,"div",1),gt(1,"div",2,0),ne(3),yt(),ni(4,"div",3))},encapsulation:2,changeDetection:0})}return t})(),Ka=(()=>{class t{value;stateChanges;id;placeholder;ngControl;focused;empty;shouldLabelFloat;required;disabled;errorState;controlType;autofilled;userAriaDescribedBy;disableAutomaticLabeling;describedByIds;static \u0275fac=function(i){return new(i||t)};static \u0275dir=P({type:t})}return t})();var oa=new O("MatFormField"),rB=new O("MAT_FORM_FIELD_DEFAULT_OPTIONS"),tB="fill",IJ="auto",iB="fixed",AJ="translateY(-50%)",Xt=(()=>{class t{_elementRef=u(Y);_changeDetectorRef=u(ye);_platform=u(Ye);_idGenerator=u(et);_ngZone=u(ae);_defaults=u(rB,{optional:!0});_currentDirection;_textField;_iconPrefixContainer;_textPrefixContainer;_iconSuffixContainer;_textSuffixContainer;_floatingLabel;_notchedOutline;_lineRipple;_iconPrefixContainerSignal=ir("iconPrefixContainer");_textPrefixContainerSignal=ir("textPrefixContainer");_iconSuffixContainerSignal=ir("iconSuffixContainer");_textSuffixContainerSignal=ir("textSuffixContainer");_prefixSuffixContainers=ci(()=>[this._iconPrefixContainerSignal(),this._textPrefixContainerSignal(),this._iconSuffixContainerSignal(),this._textSuffixContainerSignal()].map(e=>e?.nativeElement).filter(e=>e!==void 0));_formFieldControl;_prefixChildren;_suffixChildren;_errorChildren;_hintChildren;_labelChild=Mr(gi);get hideRequiredMarker(){return this._hideRequiredMarker}set hideRequiredMarker(e){this._hideRequiredMarker=Vi(e)}_hideRequiredMarker=!1;color="primary";get floatLabel(){return this._floatLabel||this._defaults?.floatLabel||IJ}set floatLabel(e){e!==this._floatLabel&&(this._floatLabel=e,this._changeDetectorRef.markForCheck())}_floatLabel;get appearance(){return this._appearanceSignal()}set appearance(e){let i=e||this._defaults?.appearance||tB;this._appearanceSignal.set(i)}_appearanceSignal=he(tB);get subscriptSizing(){return this._subscriptSizing||this._defaults?.subscriptSizing||iB}set subscriptSizing(e){this._subscriptSizing=e||this._defaults?.subscriptSizing||iB}_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 z;_isFocused=null;_explicitFormFieldControl;_previousControl=null;_previousControlValidatorFn=null;_stateChanges;_valueChanges;_describedByChanges;_outlineLabelOffsetResizeObserver=null;_animationsDisabled=Qe();constructor(){let e=this._defaults,i=u(Yt);e&&(e.appearance&&(this.appearance=e.appearance),this._hideRequiredMarker=!!e?.hideRequiredMarker,e.color&&(this.color=e.color)),zr(()=>this._currentDirection=i.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=ci(()=>this._hasFloatingLabel()?this._labelId:null);getConnectedOverlayOrigin(){return this._textField||this._elementRef}_animateAndLockLabel(){this._hasFloatingLabel()&&(this.floatLabel="always")}_initializeControl(e){let i=this._control,r="mat-mdc-form-field-type-";e&&this._elementRef.nativeElement.classList.remove(r+e.controlType),i.controlType&&this._elementRef.nativeElement.classList.add(r+i.controlType),this._stateChanges?.unsubscribe(),this._stateChanges=i.stateChanges.subscribe(()=>{this._updateFocusState(),this._changeDetectorRef.markForCheck()}),this._describedByChanges?.unsubscribe(),this._describedByChanges=i.stateChanges.pipe(Ue([void 0,void 0]),se(()=>[i.errorState,i.userAriaDescribedBy]),fb(),ce(([[o,a],[s,l]])=>o!==s||a!==l)).subscribe(()=>this._syncDescribedByIds()),this._valueChanges?.unsubscribe(),i.ngControl&&i.ngControl.valueChanges&&(this._valueChanges=i.ngControl.valueChanges.pipe(we(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(),it(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(){f2({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=ci(()=>!!this._labelChild());_shouldLabelFloat(){return this._hasFloatingLabel()?this._control.shouldLabelFloat||this._shouldAlwaysFloat():!1}_shouldForward(e){let i=this._control?this._control.ngControl:null;return i&&i[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 o=this._hintChildren?this._hintChildren.find(s=>s.align==="start"):null,a=this._hintChildren?this._hintChildren.find(s=>s.align==="end"):null;o?e.push(o.id):this._hintLabel&&e.push(this._hintLabelId),a&&e.push(a.id)}else this._errorChildren&&e.push(...this._errorChildren.map(o=>o.id));let i=this._control.describedByIds,r;if(i){let o=this._describedByIds||e;r=e.concat(i.filter(a=>a&&!o.includes(a)))}else r=e;this._control.setDescribedByIds(r),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,i=this._textPrefixContainer?.nativeElement,r=this._iconSuffixContainer?.nativeElement,o=this._textSuffixContainer?.nativeElement,a=e?.getBoundingClientRect().width??0,s=i?.getBoundingClientRect().width??0,l=r?.getBoundingClientRect().width??0,c=o?.getBoundingClientRect().width??0,d=this._currentDirection==="rtl"?"-1":"1",p=`${a+s}px`,b=`calc(${d} * (${p} + var(--mat-mdc-form-field-label-offset-x, 0px)))`,y=`var(--mat-mdc-form-field-label-transform, ${AJ} translateX(${b}))`,w=a+s+l+c;return[y,w]}_writeOutlinedLabelStyles(e){if(e!==null){let[i,r]=e;this._floatingLabel&&(this._floatingLabel.element.style.transform=i),r!==null&&this._notchedOutline?._setMaxWidth(r)}}_isAttachedToDom(){let e=this._elementRef.nativeElement;if(e.getRootNode){let i=e.getRootNode();return i&&i!==e}return document.documentElement.contains(e)}static \u0275fac=function(i){return new(i||t)};static \u0275cmp=E({type:t,selectors:[["mat-form-field"]],contentQueries:function(i,r,o){if(i&1&&(Hn(o,r._labelChild,gi,5),xe(o,Ka,5),xe(o,QS,5),xe(o,KS,5),xe(o,YS,5),xe(o,ag,5)),i&2){Ko();let a;j(a=H())&&(r._formFieldControl=a.first),j(a=H())&&(r._prefixChildren=a),j(a=H())&&(r._suffixChildren=a),j(a=H())&&(r._errorChildren=a),j(a=H())&&(r._hintChildren=a)}},viewQuery:function(i,r){if(i&1&&(zn(r._iconPrefixContainerSignal,qV,5),zn(r._textPrefixContainerSignal,YV,5),zn(r._iconSuffixContainerSignal,QV,5),zn(r._textSuffixContainerSignal,KV,5),ie(cJ,5),ie(qV,5),ie(YV,5),ie(QV,5),ie(KV,5),ie(ZV,5),ie(eB,5),ie(JV,5)),i&2){Ko(4);let o;j(o=H())&&(r._textField=o.first),j(o=H())&&(r._iconPrefixContainer=o.first),j(o=H())&&(r._textPrefixContainer=o.first),j(o=H())&&(r._iconSuffixContainer=o.first),j(o=H())&&(r._textSuffixContainer=o.first),j(o=H())&&(r._floatingLabel=o.first),j(o=H())&&(r._notchedOutline=o.first),j(o=H())&&(r._lineRipple=o.first)}},hostAttrs:[1,"mat-mdc-form-field"],hostVars:38,hostBindings:function(i,r){i&2&&G("mat-mdc-form-field-label-always-float",r._shouldAlwaysFloat())("mat-mdc-form-field-has-icon-prefix",r._hasIconPrefix)("mat-mdc-form-field-has-icon-suffix",r._hasIconSuffix)("mat-form-field-invalid",r._control.errorState)("mat-form-field-disabled",r._control.disabled)("mat-form-field-autofilled",r._control.autofilled)("mat-form-field-appearance-fill",r.appearance=="fill")("mat-form-field-appearance-outline",r.appearance=="outline")("mat-form-field-hide-placeholder",r._hasFloatingLabel()&&!r._shouldLabelFloat())("mat-primary",r.color!=="accent"&&r.color!=="warn")("mat-accent",r.color==="accent")("mat-warn",r.color==="warn")("ng-untouched",r._shouldForward("untouched"))("ng-touched",r._shouldForward("touched"))("ng-pristine",r._shouldForward("pristine"))("ng-dirty",r._shouldForward("dirty"))("ng-valid",r._shouldForward("valid"))("ng-invalid",r._shouldForward("invalid"))("ng-pending",r._shouldForward("pending"))},inputs:{hideRequiredMarker:"hideRequiredMarker",color:"color",floatLabel:"floatLabel",appearance:"appearance",subscriptSizing:"subscriptSizing",hintLabel:"hintLabel"},exportAs:["matFormField"],features:[Ce([{provide:oa,useExisting:t},{provide:nB,useExisting:t}])],ngContentSelectors:uJ,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(i,r){if(i&1){let o=q();Ee(dJ),A(0,pJ,1,1,"ng-template",null,0,Mi),m(2,"div",6,1),S("click",function(s){return k(o),T(r._control.onContainerClick(s))}),V(4,fJ,1,0,"div",7),m(5,"div",8),V(6,bJ,2,2,"div",9),V(7,vJ,3,0,"div",10),V(8,yJ,3,0,"div",11),m(9,"div",12),V(10,CJ,1,1,null,13),ne(11),h(),V(12,wJ,3,0,"div",14),V(13,DJ,3,0,"div",15),h(),V(14,MJ,1,0,"div",16),h(),m(15,"div",17),V(16,EJ,2,0,"div",18)(17,kJ,5,1,"div",19),h()}if(i&2){let o;g(2),G("mdc-text-field--filled",!r._hasOutline())("mdc-text-field--outlined",r._hasOutline())("mdc-text-field--no-label",!r._hasFloatingLabel())("mdc-text-field--disabled",r._control.disabled)("mdc-text-field--invalid",r._control.errorState),g(2),B(!r._hasOutline()&&!r._control.disabled?4:-1),g(2),B(r._hasOutline()?6:-1),g(),B(r._hasIconPrefix?7:-1),g(),B(r._hasTextPrefix?8:-1),g(2),B(!r._hasOutline()||r._forceDisplayInfixLabel()?10:-1),g(2),B(r._hasTextSuffix?12:-1),g(),B(r._hasIconSuffix?13:-1),g(),B(r._hasOutline()?-1:14),g(),G("mat-mdc-form-field-subscript-dynamic-size",r.subscriptSizing==="dynamic");let a=r._getSubscriptMessageType();g(),B((o=a)==="error"?16:o==="hint"?17:-1)}},dependencies:[ZV,eB,$n,JV,ag],styles:[`.mdc-text-field{display:inline-flex;align-items:baseline;padding:0 16px;position:relative;box-sizing:border-box;overflow:hidden;will-change:opacity,transform,color;border-top-left-radius:4px;border-top-right-radius:4px;border-bottom-right-radius:0;border-bottom-left-radius:0}.mdc-text-field__input{width:100%;min-width:0;border:none;border-radius:0;background:none;padding:0;-moz-appearance:none;-webkit-appearance:none;height:28px}.mdc-text-field__input::-webkit-calendar-picker-indicator,.mdc-text-field__input::-webkit-search-cancel-button{display:none}.mdc-text-field__input::-ms-clear{display:none}.mdc-text-field__input:focus{outline:none}.mdc-text-field__input:invalid{box-shadow:none}.mdc-text-field__input::placeholder{opacity:0}.mdc-text-field__input::-moz-placeholder{opacity:0}.mdc-text-field__input::-webkit-input-placeholder{opacity:0}.mdc-text-field__input:-ms-input-placeholder{opacity:0}.mdc-text-field--no-label .mdc-text-field__input::placeholder,.mdc-text-field--focused .mdc-text-field__input::placeholder{opacity:1}.mdc-text-field--no-label .mdc-text-field__input::-moz-placeholder,.mdc-text-field--focused .mdc-text-field__input::-moz-placeholder{opacity:1}.mdc-text-field--no-label .mdc-text-field__input::-webkit-input-placeholder,.mdc-text-field--focused .mdc-text-field__input::-webkit-input-placeholder{opacity:1}.mdc-text-field--no-label .mdc-text-field__input:-ms-input-placeholder,.mdc-text-field--focused .mdc-text-field__input:-ms-input-placeholder{opacity:1}.mdc-text-field--disabled:not(.mdc-text-field--no-label) .mdc-text-field__input.mat-mdc-input-disabled-interactive::placeholder{opacity:0}.mdc-text-field--disabled:not(.mdc-text-field--no-label) .mdc-text-field__input.mat-mdc-input-disabled-interactive::-moz-placeholder{opacity:0}.mdc-text-field--disabled:not(.mdc-text-field--no-label) .mdc-text-field__input.mat-mdc-input-disabled-interactive::-webkit-input-placeholder{opacity:0}.mdc-text-field--disabled:not(.mdc-text-field--no-label) .mdc-text-field__input.mat-mdc-input-disabled-interactive:-ms-input-placeholder{opacity:0}.mdc-text-field--outlined .mdc-text-field__input,.mdc-text-field--filled.mdc-text-field--no-label .mdc-text-field__input{height:100%}.mdc-text-field--outlined .mdc-text-field__input{display:flex;border:none !important;background-color:rgba(0,0,0,0)}.mdc-text-field--disabled .mdc-text-field__input{pointer-events:auto}.mdc-text-field--filled:not(.mdc-text-field--disabled) .mdc-text-field__input{color:var(--mat-form-field-filled-input-text-color, var(--mat-sys-on-surface));caret-color:var(--mat-form-field-filled-caret-color, var(--mat-sys-primary))}.mdc-text-field--filled:not(.mdc-text-field--disabled) .mdc-text-field__input::placeholder{color:var(--mat-form-field-filled-input-text-placeholder-color, var(--mat-sys-on-surface-variant))}.mdc-text-field--filled:not(.mdc-text-field--disabled) .mdc-text-field__input::-moz-placeholder{color:var(--mat-form-field-filled-input-text-placeholder-color, var(--mat-sys-on-surface-variant))}.mdc-text-field--filled:not(.mdc-text-field--disabled) .mdc-text-field__input::-webkit-input-placeholder{color:var(--mat-form-field-filled-input-text-placeholder-color, var(--mat-sys-on-surface-variant))}.mdc-text-field--filled:not(.mdc-text-field--disabled) .mdc-text-field__input:-ms-input-placeholder{color:var(--mat-form-field-filled-input-text-placeholder-color, var(--mat-sys-on-surface-variant))}.mdc-text-field--outlined:not(.mdc-text-field--disabled) .mdc-text-field__input{color:var(--mat-form-field-outlined-input-text-color, var(--mat-sys-on-surface));caret-color:var(--mat-form-field-outlined-caret-color, var(--mat-sys-primary))}.mdc-text-field--outlined:not(.mdc-text-field--disabled) .mdc-text-field__input::placeholder{color:var(--mat-form-field-outlined-input-text-placeholder-color, var(--mat-sys-on-surface-variant))}.mdc-text-field--outlined:not(.mdc-text-field--disabled) .mdc-text-field__input::-moz-placeholder{color:var(--mat-form-field-outlined-input-text-placeholder-color, var(--mat-sys-on-surface-variant))}.mdc-text-field--outlined:not(.mdc-text-field--disabled) .mdc-text-field__input::-webkit-input-placeholder{color:var(--mat-form-field-outlined-input-text-placeholder-color, var(--mat-sys-on-surface-variant))}.mdc-text-field--outlined:not(.mdc-text-field--disabled) .mdc-text-field__input:-ms-input-placeholder{color:var(--mat-form-field-outlined-input-text-placeholder-color, var(--mat-sys-on-surface-variant))}.mdc-text-field--filled.mdc-text-field--invalid:not(.mdc-text-field--disabled) .mdc-text-field__input{caret-color:var(--mat-form-field-filled-error-caret-color, var(--mat-sys-error))}.mdc-text-field--outlined.mdc-text-field--invalid:not(.mdc-text-field--disabled) .mdc-text-field__input{caret-color:var(--mat-form-field-outlined-error-caret-color, var(--mat-sys-error))}.mdc-text-field--filled.mdc-text-field--disabled .mdc-text-field__input{color:var(--mat-form-field-filled-disabled-input-text-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent))}.mdc-text-field--outlined.mdc-text-field--disabled .mdc-text-field__input{color:var(--mat-form-field-outlined-disabled-input-text-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent))}@media(forced-colors: active){.mdc-text-field--disabled .mdc-text-field__input{background-color:Window}}.mdc-text-field--filled{height:56px;border-bottom-right-radius:0;border-bottom-left-radius:0;border-top-left-radius:var(--mat-form-field-filled-container-shape, var(--mat-sys-corner-extra-small));border-top-right-radius:var(--mat-form-field-filled-container-shape, var(--mat-sys-corner-extra-small))}.mdc-text-field--filled:not(.mdc-text-field--disabled){background-color:var(--mat-form-field-filled-container-color, var(--mat-sys-surface-variant))}.mdc-text-field--filled.mdc-text-field--disabled{background-color:var(--mat-form-field-filled-disabled-container-color, color-mix(in srgb, var(--mat-sys-on-surface) 4%, transparent))}.mdc-text-field--outlined{height:56px;overflow:visible;padding-right:max(16px,var(--mat-form-field-outlined-container-shape, var(--mat-sys-corner-extra-small)));padding-left:max(16px,var(--mat-form-field-outlined-container-shape, var(--mat-sys-corner-extra-small)) + 4px)}[dir=rtl] .mdc-text-field--outlined{padding-right:max(16px,var(--mat-form-field-outlined-container-shape, var(--mat-sys-corner-extra-small)) + 4px);padding-left:max(16px,var(--mat-form-field-outlined-container-shape, var(--mat-sys-corner-extra-small)))}.mdc-floating-label{position:absolute;left:0;transform-origin:left top;line-height:1.15rem;text-align:left;text-overflow:ellipsis;white-space:nowrap;cursor:text;overflow:hidden;will-change:transform}[dir=rtl] .mdc-floating-label{right:0;left:auto;transform-origin:right top;text-align:right}.mdc-text-field .mdc-floating-label{top:50%;transform:translateY(-50%);pointer-events:none}.mdc-notched-outline .mdc-floating-label{display:inline-block;position:relative;max-width:100%}.mdc-text-field--outlined .mdc-floating-label{left:4px;right:auto}[dir=rtl] .mdc-text-field--outlined .mdc-floating-label{left:auto;right:4px}.mdc-text-field--filled .mdc-floating-label{left:16px;right:auto}[dir=rtl] .mdc-text-field--filled .mdc-floating-label{left:auto;right:16px}.mdc-text-field--disabled .mdc-floating-label{cursor:default}@media(forced-colors: active){.mdc-text-field--disabled .mdc-floating-label{z-index:1}}.mdc-text-field--filled.mdc-text-field--no-label .mdc-floating-label{display:none}.mdc-text-field--filled:not(.mdc-text-field--disabled) .mdc-floating-label{color:var(--mat-form-field-filled-label-text-color, var(--mat-sys-on-surface-variant))}.mdc-text-field--filled:not(.mdc-text-field--disabled).mdc-text-field--focused .mdc-floating-label{color:var(--mat-form-field-filled-focus-label-text-color, var(--mat-sys-primary))}.mdc-text-field--filled:not(.mdc-text-field--disabled):not(.mdc-text-field--focused):hover .mdc-floating-label{color:var(--mat-form-field-filled-hover-label-text-color, var(--mat-sys-on-surface-variant))}.mdc-text-field--filled.mdc-text-field--disabled .mdc-floating-label{color:var(--mat-form-field-filled-disabled-label-text-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent))}.mdc-text-field--filled:not(.mdc-text-field--disabled).mdc-text-field--invalid .mdc-floating-label{color:var(--mat-form-field-filled-error-label-text-color, var(--mat-sys-error))}.mdc-text-field--filled:not(.mdc-text-field--disabled).mdc-text-field--invalid.mdc-text-field--focused .mdc-floating-label{color:var(--mat-form-field-filled-error-focus-label-text-color, var(--mat-sys-error))}.mdc-text-field--filled:not(.mdc-text-field--disabled).mdc-text-field--invalid:not(.mdc-text-field--disabled):hover .mdc-floating-label{color:var(--mat-form-field-filled-error-hover-label-text-color, var(--mat-sys-on-error-container))}.mdc-text-field--filled .mdc-floating-label{font-family:var(--mat-form-field-filled-label-text-font, var(--mat-sys-body-large-font));font-size:var(--mat-form-field-filled-label-text-size, var(--mat-sys-body-large-size));font-weight:var(--mat-form-field-filled-label-text-weight, var(--mat-sys-body-large-weight));letter-spacing:var(--mat-form-field-filled-label-text-tracking, var(--mat-sys-body-large-tracking))}.mdc-text-field--outlined:not(.mdc-text-field--disabled) .mdc-floating-label{color:var(--mat-form-field-outlined-label-text-color, var(--mat-sys-on-surface-variant))}.mdc-text-field--outlined:not(.mdc-text-field--disabled).mdc-text-field--focused .mdc-floating-label{color:var(--mat-form-field-outlined-focus-label-text-color, var(--mat-sys-primary))}.mdc-text-field--outlined:not(.mdc-text-field--disabled):not(.mdc-text-field--focused):hover .mdc-floating-label{color:var(--mat-form-field-outlined-hover-label-text-color, var(--mat-sys-on-surface))}.mdc-text-field--outlined.mdc-text-field--disabled .mdc-floating-label{color:var(--mat-form-field-outlined-disabled-label-text-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent))}.mdc-text-field--outlined:not(.mdc-text-field--disabled).mdc-text-field--invalid .mdc-floating-label{color:var(--mat-form-field-outlined-error-label-text-color, var(--mat-sys-error))}.mdc-text-field--outlined:not(.mdc-text-field--disabled).mdc-text-field--invalid.mdc-text-field--focused .mdc-floating-label{color:var(--mat-form-field-outlined-error-focus-label-text-color, var(--mat-sys-error))}.mdc-text-field--outlined:not(.mdc-text-field--disabled).mdc-text-field--invalid:not(.mdc-text-field--disabled):hover .mdc-floating-label{color:var(--mat-form-field-outlined-error-hover-label-text-color, var(--mat-sys-on-error-container))}.mdc-text-field--outlined .mdc-floating-label{font-family:var(--mat-form-field-outlined-label-text-font, var(--mat-sys-body-large-font));font-size:var(--mat-form-field-outlined-label-text-size, var(--mat-sys-body-large-size));font-weight:var(--mat-form-field-outlined-label-text-weight, var(--mat-sys-body-large-weight));letter-spacing:var(--mat-form-field-outlined-label-text-tracking, var(--mat-sys-body-large-tracking))}.mdc-floating-label--float-above{cursor:auto;transform:translateY(-106%) scale(0.75)}.mdc-text-field--filled .mdc-floating-label--float-above{transform:translateY(-106%) scale(0.75)}.mdc-text-field--outlined .mdc-floating-label--float-above{transform:translateY(-37.25px) scale(1);font-size:.75rem}.mdc-notched-outline .mdc-floating-label--float-above{text-overflow:clip}.mdc-notched-outline--upgraded .mdc-floating-label--float-above{max-width:133.3333333333%}.mdc-text-field--outlined.mdc-notched-outline--upgraded .mdc-floating-label--float-above,.mdc-text-field--outlined .mdc-notched-outline--upgraded .mdc-floating-label--float-above{transform:translateY(-34.75px) scale(0.75)}.mdc-text-field--outlined.mdc-notched-outline--upgraded .mdc-floating-label--float-above,.mdc-text-field--outlined .mdc-notched-outline--upgraded .mdc-floating-label--float-above{font-size:1rem}.mdc-floating-label--required:not(.mdc-floating-label--hide-required-marker)::after{margin-left:1px;margin-right:0;content:"*"}[dir=rtl] .mdc-floating-label--required:not(.mdc-floating-label--hide-required-marker)::after{margin-left:0;margin-right:1px}.mdc-notched-outline{display:flex;position:absolute;top:0;right:0;left:0;box-sizing:border-box;width:100%;max-width:100%;height:100%;text-align:left;pointer-events:none}[dir=rtl] .mdc-notched-outline{text-align:right}.mdc-text-field--outlined .mdc-notched-outline{z-index:1}.mat-mdc-notch-piece{box-sizing:border-box;height:100%;pointer-events:none;border-top:1px solid;border-bottom:1px solid}.mdc-text-field--focused .mat-mdc-notch-piece{border-width:2px}.mdc-text-field--outlined:not(.mdc-text-field--disabled) .mat-mdc-notch-piece{border-color:var(--mat-form-field-outlined-outline-color, var(--mat-sys-outline));border-width:var(--mat-form-field-outlined-outline-width, 1px)}.mdc-text-field--outlined:not(.mdc-text-field--disabled):not(.mdc-text-field--focused):hover .mat-mdc-notch-piece{border-color:var(--mat-form-field-outlined-hover-outline-color, var(--mat-sys-on-surface))}.mdc-text-field--outlined:not(.mdc-text-field--disabled).mdc-text-field--focused .mat-mdc-notch-piece{border-color:var(--mat-form-field-outlined-focus-outline-color, var(--mat-sys-primary))}.mdc-text-field--outlined.mdc-text-field--disabled .mat-mdc-notch-piece{border-color:var(--mat-form-field-outlined-disabled-outline-color, color-mix(in srgb, var(--mat-sys-on-surface) 12%, transparent))}.mdc-text-field--outlined:not(.mdc-text-field--disabled).mdc-text-field--invalid .mat-mdc-notch-piece{border-color:var(--mat-form-field-outlined-error-outline-color, var(--mat-sys-error))}.mdc-text-field--outlined:not(.mdc-text-field--disabled).mdc-text-field--invalid:not(.mdc-text-field--focused):hover .mdc-notched-outline .mat-mdc-notch-piece{border-color:var(--mat-form-field-outlined-error-hover-outline-color, var(--mat-sys-on-error-container))}.mdc-text-field--outlined:not(.mdc-text-field--disabled).mdc-text-field--invalid.mdc-text-field--focused .mat-mdc-notch-piece{border-color:var(--mat-form-field-outlined-error-focus-outline-color, var(--mat-sys-error))}.mdc-text-field--outlined:not(.mdc-text-field--disabled).mdc-text-field--focused .mdc-notched-outline .mat-mdc-notch-piece{border-width:var(--mat-form-field-outlined-focus-outline-width, 2px)}.mdc-notched-outline__leading{border-left:1px solid;border-right:none;border-top-right-radius:0;border-bottom-right-radius:0;border-top-left-radius:var(--mat-form-field-outlined-container-shape, var(--mat-sys-corner-extra-small));border-bottom-left-radius:var(--mat-form-field-outlined-container-shape, var(--mat-sys-corner-extra-small))}.mdc-text-field--outlined .mdc-notched-outline .mdc-notched-outline__leading{width:max(12px,var(--mat-form-field-outlined-container-shape, var(--mat-sys-corner-extra-small)))}[dir=rtl] .mdc-notched-outline__leading{border-left:none;border-right:1px solid;border-bottom-left-radius:0;border-top-left-radius:0;border-top-right-radius:var(--mat-form-field-outlined-container-shape, var(--mat-sys-corner-extra-small));border-bottom-right-radius:var(--mat-form-field-outlined-container-shape, var(--mat-sys-corner-extra-small))}.mdc-notched-outline__trailing{flex-grow:1;border-left:none;border-right:1px solid;border-top-left-radius:0;border-bottom-left-radius:0;border-top-right-radius:var(--mat-form-field-outlined-container-shape, var(--mat-sys-corner-extra-small));border-bottom-right-radius:var(--mat-form-field-outlined-container-shape, var(--mat-sys-corner-extra-small))}[dir=rtl] .mdc-notched-outline__trailing{border-left:1px solid;border-right:none;border-top-right-radius:0;border-bottom-right-radius:0;border-top-left-radius:var(--mat-form-field-outlined-container-shape, var(--mat-sys-corner-extra-small));border-bottom-left-radius:var(--mat-form-field-outlined-container-shape, var(--mat-sys-corner-extra-small))}.mdc-notched-outline__notch{flex:0 0 auto;width:auto}.mdc-text-field--outlined .mdc-notched-outline .mdc-notched-outline__notch{max-width:min(var(--mat-form-field-notch-max-width, 100%),calc(100% - max(12px, var(--mat-form-field-outlined-container-shape, var(--mat-sys-corner-extra-small))) * 2))}.mdc-text-field--outlined .mdc-notched-outline--notched .mdc-notched-outline__notch{max-width:min(100%,calc(100% - max(12px, var(--mat-form-field-outlined-container-shape, var(--mat-sys-corner-extra-small))) * 2))}.mdc-text-field--outlined .mdc-notched-outline--notched .mdc-notched-outline__notch{padding-top:1px}.mdc-text-field--focused.mdc-text-field--outlined .mdc-notched-outline--notched .mdc-notched-outline__notch{padding-top:2px}.mdc-notched-outline--notched .mdc-notched-outline__notch{padding-left:0;padding-right:8px;border-top:none}[dir=rtl] .mdc-notched-outline--notched .mdc-notched-outline__notch{padding-left:8px;padding-right:0}.mdc-notched-outline--no-label .mdc-notched-outline__notch{display:none}.mdc-line-ripple::before,.mdc-line-ripple::after{position:absolute;bottom:0;left:0;width:100%;border-bottom-style:solid;content:""}.mdc-line-ripple::before{z-index:1;border-bottom-width:var(--mat-form-field-filled-active-indicator-height, 1px)}.mdc-text-field--filled:not(.mdc-text-field--disabled) .mdc-line-ripple::before{border-bottom-color:var(--mat-form-field-filled-active-indicator-color, var(--mat-sys-on-surface-variant))}.mdc-text-field--filled:not(.mdc-text-field--disabled):not(.mdc-text-field--focused):hover .mdc-line-ripple::before{border-bottom-color:var(--mat-form-field-filled-hover-active-indicator-color, var(--mat-sys-on-surface))}.mdc-text-field--filled.mdc-text-field--disabled .mdc-line-ripple::before{border-bottom-color:var(--mat-form-field-filled-disabled-active-indicator-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent))}.mdc-text-field--filled:not(.mdc-text-field--disabled).mdc-text-field--invalid .mdc-line-ripple::before{border-bottom-color:var(--mat-form-field-filled-error-active-indicator-color, var(--mat-sys-error))}.mdc-text-field--filled:not(.mdc-text-field--disabled).mdc-text-field--invalid:not(.mdc-text-field--focused):hover .mdc-line-ripple::before{border-bottom-color:var(--mat-form-field-filled-error-hover-active-indicator-color, var(--mat-sys-on-error-container))}.mdc-line-ripple::after{transform:scaleX(0);opacity:0;z-index:2}.mdc-text-field--filled .mdc-line-ripple::after{border-bottom-width:var(--mat-form-field-filled-focus-active-indicator-height, 2px)}.mdc-text-field--filled:not(.mdc-text-field--disabled) .mdc-line-ripple::after{border-bottom-color:var(--mat-form-field-filled-focus-active-indicator-color, var(--mat-sys-primary))}.mdc-text-field--filled.mdc-text-field--invalid:not(.mdc-text-field--disabled) .mdc-line-ripple::after{border-bottom-color:var(--mat-form-field-filled-error-focus-active-indicator-color, var(--mat-sys-error))}.mdc-line-ripple--active::after{transform:scaleX(1);opacity:1}.mdc-line-ripple--deactivating::after{opacity:0}.mdc-text-field--disabled{pointer-events:none}.mat-mdc-form-field-textarea-control{vertical-align:middle;resize:vertical;box-sizing:border-box;height:auto;margin:0;padding:0;border:none;overflow:auto}.mat-mdc-form-field-input-control.mat-mdc-form-field-input-control{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;font:inherit;letter-spacing:inherit;text-decoration:inherit;text-transform:inherit;border:none}.mat-mdc-form-field .mat-mdc-floating-label.mdc-floating-label{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;line-height:normal;pointer-events:all;will-change:auto}.mat-mdc-form-field:not(.mat-form-field-disabled) .mat-mdc-floating-label.mdc-floating-label{cursor:inherit}.mdc-text-field--no-label:not(.mdc-text-field--textarea) .mat-mdc-form-field-input-control.mdc-text-field__input,.mat-mdc-text-field-wrapper .mat-mdc-form-field-input-control{height:auto}.mat-mdc-text-field-wrapper .mat-mdc-form-field-input-control.mdc-text-field__input[type=color]{height:23px}.mat-mdc-text-field-wrapper{height:auto;flex:auto;will-change:auto}.mat-mdc-form-field-has-icon-prefix .mat-mdc-text-field-wrapper{padding-left:0;--mat-mdc-form-field-label-offset-x: -16px}.mat-mdc-form-field-has-icon-suffix .mat-mdc-text-field-wrapper{padding-right:0}[dir=rtl] .mat-mdc-text-field-wrapper{padding-left:16px;padding-right:16px}[dir=rtl] .mat-mdc-form-field-has-icon-suffix .mat-mdc-text-field-wrapper{padding-left:0}[dir=rtl] .mat-mdc-form-field-has-icon-prefix .mat-mdc-text-field-wrapper{padding-right:0}.mat-form-field-disabled .mdc-text-field__input::placeholder{color:var(--mat-form-field-disabled-input-text-placeholder-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent))}.mat-form-field-disabled .mdc-text-field__input::-moz-placeholder{color:var(--mat-form-field-disabled-input-text-placeholder-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent))}.mat-form-field-disabled .mdc-text-field__input::-webkit-input-placeholder{color:var(--mat-form-field-disabled-input-text-placeholder-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent))}.mat-form-field-disabled .mdc-text-field__input:-ms-input-placeholder{color:var(--mat-form-field-disabled-input-text-placeholder-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent))}.mat-mdc-form-field-label-always-float .mdc-text-field__input::placeholder{transition-delay:40ms;transition-duration:110ms;opacity:1}.mat-mdc-text-field-wrapper .mat-mdc-form-field-infix .mat-mdc-floating-label{left:auto;right:auto}.mat-mdc-text-field-wrapper.mdc-text-field--outlined .mdc-text-field__input{display:inline-block}.mat-mdc-form-field .mat-mdc-text-field-wrapper.mdc-text-field .mdc-notched-outline__notch{padding-top:0}.mat-mdc-form-field.mat-mdc-form-field.mat-mdc-form-field.mat-mdc-form-field.mat-mdc-form-field.mat-mdc-form-field .mdc-notched-outline__notch{border-left:1px solid rgba(0,0,0,0)}[dir=rtl] .mat-mdc-form-field.mat-mdc-form-field.mat-mdc-form-field.mat-mdc-form-field.mat-mdc-form-field.mat-mdc-form-field .mdc-notched-outline__notch{border-left:none;border-right:1px solid rgba(0,0,0,0)}.mat-mdc-form-field-infix{min-height:var(--mat-form-field-container-height, 56px);padding-top:var(--mat-form-field-filled-with-label-container-padding-top, 24px);padding-bottom:var(--mat-form-field-filled-with-label-container-padding-bottom, 8px)}.mdc-text-field--outlined .mat-mdc-form-field-infix,.mdc-text-field--no-label .mat-mdc-form-field-infix{padding-top:var(--mat-form-field-container-vertical-padding, 16px);padding-bottom:var(--mat-form-field-container-vertical-padding, 16px)}.mat-mdc-text-field-wrapper .mat-mdc-form-field-flex .mat-mdc-floating-label{top:calc(var(--mat-form-field-container-height, 56px)/2)}.mdc-text-field--filled .mat-mdc-floating-label{display:var(--mat-form-field-filled-label-display, block)}.mat-mdc-text-field-wrapper.mdc-text-field--outlined .mdc-notched-outline--upgraded .mdc-floating-label--float-above{--mat-mdc-form-field-label-transform: translateY(calc(calc(6.75px + var(--mat-form-field-container-height, 56px) / 2) * -1)) scale(var(--mat-mdc-form-field-floating-label-scale, 0.75));transform:var(--mat-mdc-form-field-label-transform)}@keyframes _mat-form-field-subscript-animation{from{opacity:0;transform:translateY(-5px)}to{opacity:1;transform:translateY(0)}}.mat-mdc-form-field-subscript-wrapper{box-sizing:border-box;width:100%;position:relative}.mat-mdc-form-field-hint-wrapper,.mat-mdc-form-field-error-wrapper{position:absolute;top:0;left:0;right:0;padding:0 16px;opacity:1;transform:translateY(0);animation:_mat-form-field-subscript-animation 0ms cubic-bezier(0.55, 0, 0.55, 0.2)}.mat-mdc-form-field-subscript-dynamic-size .mat-mdc-form-field-hint-wrapper,.mat-mdc-form-field-subscript-dynamic-size .mat-mdc-form-field-error-wrapper{position:static}.mat-mdc-form-field-bottom-align::before{content:"";display:inline-block;height:16px}.mat-mdc-form-field-bottom-align.mat-mdc-form-field-subscript-dynamic-size::before{content:unset}.mat-mdc-form-field-hint-end{order:1}.mat-mdc-form-field-hint-wrapper{display:flex}.mat-mdc-form-field-hint-spacer{flex:1 0 1em}.mat-mdc-form-field-error{display:block;color:var(--mat-form-field-error-text-color, var(--mat-sys-error))}.mat-mdc-form-field-subscript-wrapper,.mat-mdc-form-field-bottom-align::before{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;font-family:var(--mat-form-field-subscript-text-font, var(--mat-sys-body-small-font));line-height:var(--mat-form-field-subscript-text-line-height, var(--mat-sys-body-small-line-height));font-size:var(--mat-form-field-subscript-text-size, var(--mat-sys-body-small-size));letter-spacing:var(--mat-form-field-subscript-text-tracking, var(--mat-sys-body-small-tracking));font-weight:var(--mat-form-field-subscript-text-weight, var(--mat-sys-body-small-weight))}.mat-mdc-form-field-focus-overlay{top:0;left:0;right:0;bottom:0;position:absolute;opacity:0;pointer-events:none;background-color:var(--mat-form-field-state-layer-color, var(--mat-sys-on-surface))}.mat-mdc-text-field-wrapper:hover .mat-mdc-form-field-focus-overlay{opacity:var(--mat-form-field-hover-state-layer-opacity, var(--mat-sys-hover-state-layer-opacity))}.mat-mdc-form-field.mat-focused .mat-mdc-form-field-focus-overlay{opacity:var(--mat-form-field-focus-state-layer-opacity, 0)}select.mat-mdc-form-field-input-control{-moz-appearance:none;-webkit-appearance:none;background-color:rgba(0,0,0,0);display:inline-flex;box-sizing:border-box}select.mat-mdc-form-field-input-control:not(:disabled){cursor:pointer}select.mat-mdc-form-field-input-control:not(.mat-mdc-native-select-inline) option{color:var(--mat-form-field-select-option-text-color, var(--mat-sys-neutral10))}select.mat-mdc-form-field-input-control:not(.mat-mdc-native-select-inline) option:disabled{color:var(--mat-form-field-select-disabled-option-text-color, color-mix(in srgb, var(--mat-sys-neutral10) 38%, transparent))}.mat-mdc-form-field-type-mat-native-select .mat-mdc-form-field-infix::after{content:"";width:0;height:0;border-left:5px solid rgba(0,0,0,0);border-right:5px solid rgba(0,0,0,0);border-top:5px solid;position:absolute;right:0;top:50%;margin-top:-2.5px;pointer-events:none;color:var(--mat-form-field-enabled-select-arrow-color, var(--mat-sys-on-surface-variant))}[dir=rtl] .mat-mdc-form-field-type-mat-native-select .mat-mdc-form-field-infix::after{right:auto;left:0}.mat-mdc-form-field-type-mat-native-select.mat-focused .mat-mdc-form-field-infix::after{color:var(--mat-form-field-focus-select-arrow-color, var(--mat-sys-primary))}.mat-mdc-form-field-type-mat-native-select.mat-form-field-disabled .mat-mdc-form-field-infix::after{color:var(--mat-form-field-disabled-select-arrow-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent))}.mat-mdc-form-field-type-mat-native-select .mat-mdc-form-field-input-control{padding-right:15px}[dir=rtl] .mat-mdc-form-field-type-mat-native-select .mat-mdc-form-field-input-control{padding-right:0;padding-left:15px}@media(forced-colors: active){.mat-form-field-appearance-fill .mat-mdc-text-field-wrapper{outline:solid 1px}}@media(forced-colors: active){.mat-form-field-appearance-fill.mat-form-field-disabled .mat-mdc-text-field-wrapper{outline-color:GrayText}}@media(forced-colors: active){.mat-form-field-appearance-fill.mat-focused .mat-mdc-text-field-wrapper{outline:dashed 3px}}@media(forced-colors: active){.mat-mdc-form-field.mat-focused .mdc-notched-outline{border:dashed 3px}}.mat-mdc-form-field-input-control[type=date],.mat-mdc-form-field-input-control[type=datetime],.mat-mdc-form-field-input-control[type=datetime-local],.mat-mdc-form-field-input-control[type=month],.mat-mdc-form-field-input-control[type=week],.mat-mdc-form-field-input-control[type=time]{line-height:1}.mat-mdc-form-field-input-control::-webkit-datetime-edit{line-height:1;padding:0;margin-bottom:-2px}.mat-mdc-form-field{--mat-mdc-form-field-floating-label-scale: 0.75;display:inline-flex;flex-direction:column;min-width:0;text-align:left;-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;font-family:var(--mat-form-field-container-text-font, var(--mat-sys-body-large-font));line-height:var(--mat-form-field-container-text-line-height, var(--mat-sys-body-large-line-height));font-size:var(--mat-form-field-container-text-size, var(--mat-sys-body-large-size));letter-spacing:var(--mat-form-field-container-text-tracking, var(--mat-sys-body-large-tracking));font-weight:var(--mat-form-field-container-text-weight, var(--mat-sys-body-large-weight))}.mat-mdc-form-field .mdc-text-field--outlined .mdc-floating-label--float-above{font-size:calc(var(--mat-form-field-outlined-label-text-populated-size)*var(--mat-mdc-form-field-floating-label-scale))}.mat-mdc-form-field .mdc-text-field--outlined .mdc-notched-outline--upgraded .mdc-floating-label--float-above{font-size:var(--mat-form-field-outlined-label-text-populated-size)}[dir=rtl] .mat-mdc-form-field{text-align:right}.mat-mdc-form-field-flex{display:inline-flex;align-items:baseline;box-sizing:border-box;width:100%}.mat-mdc-text-field-wrapper{width:100%;z-index:0}.mat-mdc-form-field-icon-prefix,.mat-mdc-form-field-icon-suffix{align-self:center;line-height:0;pointer-events:auto;position:relative;z-index:1}.mat-mdc-form-field-icon-prefix>.mat-icon,.mat-mdc-form-field-icon-suffix>.mat-icon{padding:0 12px;box-sizing:content-box}.mat-mdc-form-field-icon-prefix{color:var(--mat-form-field-leading-icon-color, var(--mat-sys-on-surface-variant))}.mat-form-field-disabled .mat-mdc-form-field-icon-prefix{color:var(--mat-form-field-disabled-leading-icon-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent))}.mat-mdc-form-field-icon-suffix{color:var(--mat-form-field-trailing-icon-color, var(--mat-sys-on-surface-variant))}.mat-form-field-disabled .mat-mdc-form-field-icon-suffix{color:var(--mat-form-field-disabled-trailing-icon-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent))}.mat-form-field-invalid .mat-mdc-form-field-icon-suffix{color:var(--mat-form-field-error-trailing-icon-color, var(--mat-sys-error))}.mat-form-field-invalid:not(.mat-focused):not(.mat-form-field-disabled) .mat-mdc-text-field-wrapper:hover .mat-mdc-form-field-icon-suffix{color:var(--mat-form-field-error-hover-trailing-icon-color, var(--mat-sys-on-error-container))}.mat-form-field-invalid.mat-focused .mat-mdc-text-field-wrapper .mat-mdc-form-field-icon-suffix{color:var(--mat-form-field-error-focus-trailing-icon-color, var(--mat-sys-error))}.mat-mdc-form-field-icon-prefix,[dir=rtl] .mat-mdc-form-field-icon-suffix{padding:0 4px 0 0}.mat-mdc-form-field-icon-suffix,[dir=rtl] .mat-mdc-form-field-icon-prefix{padding:0 0 0 4px}.mat-mdc-form-field-subscript-wrapper .mat-icon,.mat-mdc-form-field label .mat-icon{width:1em;height:1em;font-size:inherit}.mat-mdc-form-field-infix{flex:auto;min-width:0;width:180px;position:relative;box-sizing:border-box}.mat-mdc-form-field-infix:has(textarea[cols]){width:auto}.mat-mdc-form-field .mdc-notched-outline__notch{margin-left:-1px;-webkit-clip-path:inset(-9em -999em -9em 1px);clip-path:inset(-9em -999em -9em 1px)}[dir=rtl] .mat-mdc-form-field .mdc-notched-outline__notch{margin-left:0;margin-right:-1px;-webkit-clip-path:inset(-9em 1px -9em -999em);clip-path:inset(-9em 1px -9em -999em)}.mat-mdc-form-field.mat-form-field-animations-enabled .mdc-floating-label{transition:transform 150ms cubic-bezier(0.4, 0, 0.2, 1),color 150ms cubic-bezier(0.4, 0, 0.2, 1)}.mat-mdc-form-field.mat-form-field-animations-enabled .mdc-text-field__input{transition:opacity 150ms cubic-bezier(0.4, 0, 0.2, 1)}.mat-mdc-form-field.mat-form-field-animations-enabled .mdc-text-field__input::placeholder{transition:opacity 67ms cubic-bezier(0.4, 0, 0.2, 1)}.mat-mdc-form-field.mat-form-field-animations-enabled .mdc-text-field__input::-moz-placeholder{transition:opacity 67ms cubic-bezier(0.4, 0, 0.2, 1)}.mat-mdc-form-field.mat-form-field-animations-enabled .mdc-text-field__input::-webkit-input-placeholder{transition:opacity 67ms cubic-bezier(0.4, 0, 0.2, 1)}.mat-mdc-form-field.mat-form-field-animations-enabled .mdc-text-field__input:-ms-input-placeholder{transition:opacity 67ms cubic-bezier(0.4, 0, 0.2, 1)}.mat-mdc-form-field.mat-form-field-animations-enabled.mdc-text-field--no-label .mdc-text-field__input::placeholder,.mat-mdc-form-field.mat-form-field-animations-enabled.mdc-text-field--focused .mdc-text-field__input::placeholder{transition-delay:40ms;transition-duration:110ms}.mat-mdc-form-field.mat-form-field-animations-enabled.mdc-text-field--no-label .mdc-text-field__input::-moz-placeholder,.mat-mdc-form-field.mat-form-field-animations-enabled.mdc-text-field--focused .mdc-text-field__input::-moz-placeholder{transition-delay:40ms;transition-duration:110ms}.mat-mdc-form-field.mat-form-field-animations-enabled.mdc-text-field--no-label .mdc-text-field__input::-webkit-input-placeholder,.mat-mdc-form-field.mat-form-field-animations-enabled.mdc-text-field--focused .mdc-text-field__input::-webkit-input-placeholder{transition-delay:40ms;transition-duration:110ms}.mat-mdc-form-field.mat-form-field-animations-enabled.mdc-text-field--no-label .mdc-text-field__input:-ms-input-placeholder,.mat-mdc-form-field.mat-form-field-animations-enabled.mdc-text-field--focused .mdc-text-field__input:-ms-input-placeholder{transition-delay:40ms;transition-duration:110ms}.mat-mdc-form-field.mat-form-field-animations-enabled .mdc-text-field--filled:not(.mdc-ripple-upgraded):focus .mdc-text-field__ripple::before{transition-duration:75ms}.mat-mdc-form-field.mat-form-field-animations-enabled .mdc-line-ripple::after{transition:transform 180ms cubic-bezier(0.4, 0, 0.2, 1),opacity 180ms cubic-bezier(0.4, 0, 0.2, 1)}.mat-mdc-form-field.mat-form-field-animations-enabled .mat-mdc-form-field-hint-wrapper,.mat-mdc-form-field.mat-form-field-animations-enabled .mat-mdc-form-field-error-wrapper{animation-duration:300ms}.mdc-notched-outline .mdc-floating-label{max-width:calc(100% + 1px)}.mdc-notched-outline--upgraded .mdc-floating-label--float-above{max-width:calc(133.3333333333% + 1px)} +`],encapsulation:2,changeDetection:0})}return t})();var sg=class{};function lg(t){return t&&typeof t.connect=="function"&&!(t instanceof Ql)}var Sc=(function(t){return t[t.REPLACED=0]="REPLACED",t[t.INSERTED=1]="INSERTED",t[t.MOVED=2]="MOVED",t[t.REMOVED=3]="REMOVED",t})(Sc||{}),yh=new O("_ViewRepeater");var OJ=20,Hs=(()=>{class t{_ngZone=u(ae);_platform=u(Ye);_renderer=u(hn).createRenderer(null,null);_cleanupGlobalListener;constructor(){}_scrolled=new z;_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 i=this.scrollContainers.get(e);i&&(i.unsubscribe(),this.scrollContainers.delete(e))}scrolled(e=OJ){return this._platform.isBrowser?new Ne(i=>{this._cleanupGlobalListener||(this._cleanupGlobalListener=this._ngZone.runOutsideAngular(()=>this._renderer.listen("document","scroll",()=>this._scrolled.next())));let r=e>0?this._scrolled.pipe(Xl(e)).subscribe(i):this._scrolled.subscribe(i);return this._scrolledCount++,()=>{r.unsubscribe(),this._scrolledCount--,this._scrolledCount||(this._cleanupGlobalListener?.(),this._cleanupGlobalListener=void 0)}}):Q()}ngOnDestroy(){this._cleanupGlobalListener?.(),this._cleanupGlobalListener=void 0,this.scrollContainers.forEach((e,i)=>this.deregister(i)),this._scrolled.complete()}ancestorScrolled(e,i){let r=this.getAncestorScrollContainers(e);return this.scrolled(i).pipe(ce(o=>!o||r.indexOf(o)>-1))}getAncestorScrollContainers(e){let i=[];return this.scrollContainers.forEach((r,o)=>{this._scrollableContainsElement(o,e)&&i.push(o)}),i}_scrollableContainsElement(e,i){let r=Wr(i),o=e.getElementRef().nativeElement;do if(r==o)return!0;while(r=r.parentElement);return!1}static \u0275fac=function(i){return new(i||t)};static \u0275prov=R({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),Za=(()=>{class t{elementRef=u(Y);scrollDispatcher=u(Hs);ngZone=u(ae);dir=u(Yt,{optional:!0});_scrollElement=this.elementRef.nativeElement;_destroyed=new z;_renderer=u(ze);_cleanupScroll;_elementScrolled=new z;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 i=this.elementRef.nativeElement,r=this.dir&&this.dir.value=="rtl";e.left==null&&(e.left=r?e.end:e.start),e.right==null&&(e.right=r?e.start:e.end),e.bottom!=null&&(e.top=i.scrollHeight-i.clientHeight-e.bottom),r&&oh()!=qa.NORMAL?(e.left!=null&&(e.right=i.scrollWidth-i.clientWidth-e.left),oh()==qa.INVERTED?e.left=e.right:oh()==qa.NEGATED&&(e.left=e.right?-e.right:e.right)):e.right!=null&&(e.left=i.scrollWidth-i.clientWidth-e.right),this._applyScrollToOptions(e)}_applyScrollToOptions(e){let i=this.elementRef.nativeElement;Xv()?i.scrollTo(e):(e.top!=null&&(i.scrollTop=e.top),e.left!=null&&(i.scrollLeft=e.left))}measureScrollOffset(e){let i="left",r="right",o=this.elementRef.nativeElement;if(e=="top")return o.scrollTop;if(e=="bottom")return o.scrollHeight-o.clientHeight-o.scrollTop;let a=this.dir&&this.dir.value=="rtl";return e=="start"?e=a?r:i:e=="end"&&(e=a?i:r),a&&oh()==qa.INVERTED?e==i?o.scrollWidth-o.clientWidth-o.scrollLeft:o.scrollLeft:a&&oh()==qa.NEGATED?e==i?o.scrollLeft+o.scrollWidth-o.clientWidth:-o.scrollLeft:e==i?o.scrollLeft:o.scrollWidth-o.clientWidth-o.scrollLeft}static \u0275fac=function(i){return new(i||t)};static \u0275dir=P({type:t,selectors:[["","cdk-scrollable",""],["","cdkScrollable",""]]})}return t})(),RJ=20,sr=(()=>{class t{_platform=u(Ye);_listeners;_viewportSize;_change=new z;_document=u(_e);constructor(){let e=u(ae),i=u(hn).createRenderer(null,null);e.runOutsideAngular(()=>{if(this._platform.isBrowser){let r=o=>this._change.next(o);this._listeners=[i.listen("window","resize",r),i.listen("window","orientationchange",r)]}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:i,height:r}=this.getViewportSize();return{top:e.top,left:e.left,bottom:e.top+r,right:e.left+i,height:r,width:i}}getViewportScrollPosition(){if(!this._platform.isBrowser)return{top:0,left:0};let e=this._document,i=this._getWindow(),r=e.documentElement,o=r.getBoundingClientRect(),a=-o.top||e.body.scrollTop||i.scrollY||r.scrollTop||0,s=-o.left||e.body.scrollLeft||i.scrollX||r.scrollLeft||0;return{top:a,left:s}}change(e=RJ){return e>0?this._change.pipe(Xl(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(i){return new(i||t)};static \u0275prov=R({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();var Tr=(()=>{class t{static \u0275fac=function(i){return new(i||t)};static \u0275mod=ee({type:t});static \u0275inj=J({})}return t})(),cg=(()=>{class t{static \u0275fac=function(i){return new(i||t)};static \u0275mod=ee({type:t});static \u0275inj=J({imports:[Fs,Tr,Fs,Tr]})}return t})();var dg=class{_attachedHost;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}},ao=class extends dg{component;viewContainerRef;injector;projectableNodes;constructor(n,e,i,r){super(),this.component=n,this.viewContainerRef=e,this.injector=i,this.projectableNodes=r}},kn=class extends dg{templateRef;viewContainerRef;context;injector;constructor(n,e,i,r){super(),this.templateRef=n,this.viewContainerRef=e,this.context=i,this.injector=r}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()}},ZS=class extends dg{element;constructor(n){super(),this.element=n instanceof Y?n.nativeElement:n}},kc=class{_attachedPortal;_disposeFn;_isDisposed=!1;hasAttached(){return!!this._attachedPortal}attach(n){if(n instanceof ao)return this._attachedPortal=n,this.attachComponentPortal(n);if(n instanceof kn)return this._attachedPortal=n,this.attachTemplatePortal(n);if(this.attachDomPortal&&n instanceof ZS)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)}},ug=class extends kc{outletElement;_appRef;_defaultInjector;constructor(n,e,i){super(),this.outletElement=n,this._appRef=e,this._defaultInjector=i}attachComponentPortal(n){let e;if(n.viewContainerRef){let i=n.injector||n.viewContainerRef.injector,r=i.get(Cs,null,{optional:!0})||void 0;e=n.viewContainerRef.createComponent(n.component,{index:n.viewContainerRef.length,injector:i,ngModuleRef:r,projectableNodes:n.projectableNodes||void 0}),this.setDisposeFn(()=>e.destroy())}else{let i=this._appRef,r=n.injector||this._defaultInjector||de.NULL,o=r.get(ti,i.injector);e=Am(n.component,{elementInjector:r,environmentInjector:o,projectableNodes:n.projectableNodes||void 0}),i.attachView(e.hostView),this.setDisposeFn(()=>{i.viewCount>0&&i.detachView(e.hostView),e.destroy()})}return this.outletElement.appendChild(this._getComponentRootNode(e)),this._attachedPortal=n,e}attachTemplatePortal(n){let e=n.viewContainerRef,i=e.createEmbeddedView(n.templateRef,n.context,{injector:n.injector});return i.rootNodes.forEach(r=>this.outletElement.appendChild(r)),i.detectChanges(),this.setDisposeFn(()=>{let r=e.indexOf(i);r!==-1&&e.remove(r)}),this._attachedPortal=n,i}attachDomPortal=n=>{let e=n.element;e.parentNode;let i=this.outletElement.ownerDocument.createComment("dom-portal");e.parentNode.insertBefore(i,e),this.outletElement.appendChild(e),this._attachedPortal=n,super.setDisposeFn(()=>{i.parentNode&&i.parentNode.replaceChild(e,i)})};dispose(){super.dispose(),this.outletElement.remove()}_getComponentRootNode(n){return n.hostView.rootNodes[0]}},oB=(()=>{class t extends kn{constructor(){let e=u(te),i=u(st);super(e,i)}static \u0275fac=function(i){return new(i||t)};static \u0275dir=P({type:t,selectors:[["","cdkPortal",""]],exportAs:["cdkPortal"],features:[le]})}return t})();var Ir=(()=>{class t extends kc{_moduleRef=u(Cs,{optional:!0});_document=u(_e);_viewContainerRef=u(st);_isInitialized=!1;_attachedRef;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 U;get attachedRef(){return this._attachedRef}ngOnInit(){this._isInitialized=!0}ngOnDestroy(){super.dispose(),this._attachedRef=this._attachedPortal=null}attachComponentPortal(e){e.setAttachedHost(this);let i=e.viewContainerRef!=null?e.viewContainerRef:this._viewContainerRef,r=i.createComponent(e.component,{index:i.length,injector:e.injector||i.injector,projectableNodes:e.projectableNodes||void 0,ngModuleRef:this._moduleRef||void 0});return i!==this._viewContainerRef&&this._getRootNode().appendChild(r.hostView.rootNodes[0]),super.setDisposeFn(()=>r.destroy()),this._attachedPortal=e,this._attachedRef=r,this.attached.emit(r),r}attachTemplatePortal(e){e.setAttachedHost(this);let i=this._viewContainerRef.createEmbeddedView(e.templateRef,e.context,{injector:e.injector});return super.setDisposeFn(()=>this._viewContainerRef.clear()),this._attachedPortal=e,this._attachedRef=i,this.attached.emit(i),i}attachDomPortal=e=>{let i=e.element;i.parentNode;let r=this._document.createComment("dom-portal");e.setAttachedHost(this),i.parentNode.insertBefore(r,i),this._getRootNode().appendChild(i),this._attachedPortal=e,super.setDisposeFn(()=>{r.parentNode&&r.parentNode.replaceChild(i,r)})};_getRootNode(){let e=this._viewContainerRef.element.nativeElement;return e.nodeType===e.ELEMENT_NODE?e:e.parentNode}static \u0275fac=function(i){return new(i||t)};static \u0275dir=P({type:t,selectors:[["","cdkPortalOutlet",""]],inputs:{portal:[0,"cdkPortalOutlet","portal"]},outputs:{attached:"attached"},exportAs:["cdkPortalOutlet"],features:[le]})}return t})();var Oo=(()=>{class t{static \u0275fac=function(i){return new(i||t)};static \u0275mod=ee({type:t});static \u0275inj=J({})}return t})();var aB=Xv();function Tc(t){return new tx(t.get(sr),t.get(_e))}var tx=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=dn(-this._previousScrollPosition.left),n.style.top=dn(-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,i=n.style,r=e.style,o=i.scrollBehavior||"",a=r.scrollBehavior||"";this._isEnabled=!1,i.left=this._previousHTMLStyles.left,i.top=this._previousHTMLStyles.top,n.classList.remove("cdk-global-scrollblock"),aB&&(i.scrollBehavior=r.scrollBehavior="auto"),window.scroll(this._previousScrollPosition.left,this._previousScrollPosition.top),aB&&(i.scrollBehavior=o,r.scrollBehavior=a)}}_canBeEnabled(){if(this._document.documentElement.classList.contains("cdk-global-scrollblock")||this._isEnabled)return!1;let e=this._document.documentElement,i=this._viewportRuler.getViewportSize();return e.scrollHeight>i.height||e.scrollWidth>i.width}};function hB(t,n){return new ix(t.get(Hs),t.get(ae),t.get(sr),n)}var ix=class{_scrollDispatcher;_ngZone;_viewportRuler;_config;_scrollSubscription=null;_overlayRef;_initialScrollPosition;constructor(n,e,i,r){this._scrollDispatcher=n,this._ngZone=e,this._viewportRuler=i,this._config=r}attach(n){this._overlayRef,this._overlayRef=n}enable(){if(this._scrollSubscription)return;let n=this._scrollDispatcher.scrolled(0).pipe(ce(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 mg=class{enable(){}disable(){}attach(){}};function XS(t,n){return n.some(e=>{let i=t.bottome.bottom,o=t.righte.right;return i||r||o||a})}function sB(t,n){return n.some(e=>{let i=t.tope.bottom,o=t.lefte.right;return i||r||o||a})}function Tn(t,n){return new nx(t.get(Hs),t.get(sr),t.get(ae),n)}var nx=class{_scrollDispatcher;_viewportRuler;_ngZone;_config;_scrollSubscription=null;_overlayRef;constructor(n,e,i,r){this._scrollDispatcher=n,this._viewportRuler=e,this._ngZone=i,this._config=r}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:i,height:r}=this._viewportRuler.getViewportSize();XS(e,[{width:i,height:r,bottom:r,right:i,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}},pB=(()=>{class t{_injector=u(de);constructor(){}noop=()=>new mg;close=e=>hB(this._injector,e);block=()=>Tc(this._injector);reposition=e=>Tn(this._injector,e);static \u0275fac=function(i){return new(i||t)};static \u0275prov=R({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),Gr=class{positionStrategy;scrollStrategy=new mg;panelClass="";hasBackdrop=!1;backdropClass="cdk-overlay-dark-backdrop";disableAnimations;width;height;minWidth;minHeight;maxWidth;maxHeight;direction;disposeOnNavigation=!1;constructor(n){if(n){let e=Object.keys(n);for(let i of e)n[i]!==void 0&&(this[i]=n[i])}}};var rx=class{connectionPair;scrollableViewProperties;constructor(n,e){this.connectionPair=n,this.scrollableViewProperties=e}};var fB=(()=>{class t{_attachedOverlays=[];_document=u(_e);_isAttached;constructor(){}ngOnDestroy(){this.detach()}add(e){this.remove(e),this._attachedOverlays.push(e)}remove(e){let i=this._attachedOverlays.indexOf(e);i>-1&&this._attachedOverlays.splice(i,1),this._attachedOverlays.length===0&&this.detach()}static \u0275fac=function(i){return new(i||t)};static \u0275prov=R({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),gB=(()=>{class t extends fB{_ngZone=u(ae);_renderer=u(hn).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 i=this._attachedOverlays;for(let r=i.length-1;r>-1;r--)if(i[r]._keydownEvents.observers.length>0){this._ngZone.run(()=>i[r]._keydownEvents.next(e));break}};static \u0275fac=(()=>{let e;return function(r){return(e||(e=ge(t)))(r||t)}})();static \u0275prov=R({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),_B=(()=>{class t extends fB{_platform=u(Ye);_ngZone=u(ae);_renderer=u(hn).createRenderer(null,null);_cursorOriginalValue;_cursorStyleIsSet=!1;_pointerDownEventTarget;_cleanups;add(e){if(super.add(e),!this._isAttached){let i=this._document.body,r={capture:!0},o=this._renderer;this._cleanups=this._ngZone.runOutsideAngular(()=>[o.listen(i,"pointerdown",this._pointerDownListener,r),o.listen(i,"click",this._clickListener,r),o.listen(i,"auxclick",this._clickListener,r),o.listen(i,"contextmenu",this._clickListener,r)]),this._platform.IOS&&!this._cursorStyleIsSet&&(this._cursorOriginalValue=i.style.cursor,i.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=or(e)};_clickListener=e=>{let i=or(e),r=e.type==="click"&&this._pointerDownEventTarget?this._pointerDownEventTarget:i;this._pointerDownEventTarget=null;let o=this._attachedOverlays.slice();for(let a=o.length-1;a>-1;a--){let s=o[a];if(s._outsidePointerEvents.observers.length<1||!s.hasAttached())continue;if(lB(s.overlayElement,i)||lB(s.overlayElement,r))break;let l=s._outsidePointerEvents;this._ngZone?this._ngZone.run(()=>l.next(e)):l.next(e)}};static \u0275fac=(()=>{let e;return function(r){return(e||(e=ge(t)))(r||t)}})();static \u0275prov=R({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();function lB(t,n){let e=typeof ShadowRoot<"u"&&ShadowRoot,i=n;for(;i;){if(i===t)return!0;i=e&&i instanceof ShadowRoot?i.host:i.parentNode}return!1}var bB=(()=>{class t{static \u0275fac=function(i){return new(i||t)};static \u0275cmp=E({type:t,selectors:[["ng-component"]],hostAttrs:["cdk-overlay-style-loader",""],decls:0,vars:0,template:function(i,r){},styles:[`.cdk-overlay-container,.cdk-global-overlay-wrapper{pointer-events:none;top:0;left:0;height:100%;width:100%}.cdk-overlay-container{position:fixed}@layer cdk-overlay{.cdk-overlay-container{z-index:1000}}.cdk-overlay-container:empty{display:none}.cdk-global-overlay-wrapper{display:flex;position:absolute}@layer cdk-overlay{.cdk-global-overlay-wrapper{z-index:1000}}.cdk-overlay-pane{position:absolute;pointer-events:auto;box-sizing:border-box;display:flex;max-width:100%;max-height:100%}@layer cdk-overlay{.cdk-overlay-pane{z-index:1000}}.cdk-overlay-backdrop{position:absolute;top:0;bottom:0;left:0;right:0;pointer-events:auto;-webkit-tap-highlight-color:rgba(0,0,0,0);opacity:0;touch-action:manipulation}@layer cdk-overlay{.cdk-overlay-backdrop{z-index:1000;transition:opacity 400ms cubic-bezier(0.25, 0.8, 0.25, 1)}}@media(prefers-reduced-motion){.cdk-overlay-backdrop{transition-duration:1ms}}.cdk-overlay-backdrop-showing{opacity:1}@media(forced-colors: active){.cdk-overlay-backdrop-showing{opacity:.6}}@layer cdk-overlay{.cdk-overlay-dark-backdrop{background:rgba(0,0,0,.32)}}.cdk-overlay-transparent-backdrop{transition:visibility 1ms linear,opacity 1ms linear;visibility:hidden;opacity:1}.cdk-overlay-transparent-backdrop.cdk-overlay-backdrop-showing,.cdk-high-contrast-active .cdk-overlay-transparent-backdrop{opacity:0;visibility:visible}.cdk-overlay-backdrop-noop-animation{transition:none}.cdk-overlay-connected-position-bounding-box{position:absolute;display:flex;flex-direction:column;min-width:1px;min-height:1px}@layer cdk-overlay{.cdk-overlay-connected-position-bounding-box{z-index:1000}}.cdk-global-scrollblock{position:fixed;width:100%;overflow-y:scroll} +`],encapsulation:2,changeDetection:0})}return t})(),ax=(()=>{class t{_platform=u(Ye);_containerElement;_document=u(_e);_styleLoader=u(ft);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||AS()){let r=this._document.querySelectorAll(`.${e}[platform="server"], .${e}[platform="test"]`);for(let o=0;o{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()}},xh=class{_portalOutlet;_host;_pane;_config;_ngZone;_keyboardDispatcher;_document;_location;_outsideClickDispatcher;_animationsDisabled;_injector;_renderer;_backdropClick=new z;_attachments=new z;_detachments=new z;_positionStrategy;_scrollStrategy;_locationChanges=ke.EMPTY;_backdropRef=null;_detachContentMutationObserver;_detachContentAfterRenderRef;_previousHostParent;_keydownEvents=new z;_outsidePointerEvents=new z;_afterNextRenderRef;constructor(n,e,i,r,o,a,s,l,c,d=!1,p,_){this._portalOutlet=n,this._host=e,this._pane=i,this._config=r,this._ngZone=o,this._keyboardDispatcher=a,this._document=s,this._location=l,this._outsideClickDispatcher=c,this._animationsDisabled=d,this._injector=p,this._renderer=_,r.scrollStrategy&&(this._scrollStrategy=r.scrollStrategy,this._scrollStrategy.attach(this)),this._positionStrategy=r.positionStrategy}get overlayElement(){return this._pane}get backdropElement(){return this._backdropRef?.element||null}get hostElement(){return this._host}attach(n){!this._host.parentElement&&this._previousHostParent&&this._previousHostParent.appendChild(this._host);let e=this._portalOutlet.attach(n);return this._positionStrategy&&this._positionStrategy.attach(this),this._updateStackingOrder(),this._updateElementSize(),this._updateElementDirection(),this._scrollStrategy&&this._scrollStrategy.enable(),this._afterNextRenderRef?.destroy(),this._afterNextRenderRef=vt(()=>{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(){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()}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=I(I({},this._config),n),this._updateElementSize()}setDirection(n){this._config=Me(I({},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=dn(this._config.width),n.height=dn(this._config.height),n.minWidth=dn(this._config.minWidth),n.minHeight=dn(this._config.minHeight),n.maxWidth=dn(this._config.maxWidth),n.maxHeight=dn(this._config.maxHeight)}_togglePointerEvents(n){this._pane.style.pointerEvents=n?"":"none"}_attachBackdrop(){let n="cdk-overlay-backdrop-showing";this._backdropRef?.dispose(),this._backdropRef=new JS(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._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._host.nextSibling&&this._host.parentNode.appendChild(this._host)}detachBackdrop(){this._animationsDisabled?(this._backdropRef?.dispose(),this._backdropRef=null):this._backdropRef?.detach()}_toggleClasses(n,e,i){let r=Dl(e||[]).filter(o=>!!o);r.length&&(i?n.classList.add(...r):n.classList.remove(...r))}_detachContentWhenEmpty(){let n=!1;try{this._detachContentAfterRenderRef=vt(()=>{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?.()}},cB="cdk-overlay-connected-position-bounding-box",FJ=/([A-Za-z%]+)$/;function Xa(t,n){return new Ch(n,t.get(sr),t.get(_e),t.get(Ye),t.get(ax))}var Ch=class{_viewportRuler;_document;_platform;_overlayContainer;_overlayRef;_isInitialRender;_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;_boundingBox;_lastPosition;_lastScrollVisibility;_positionChanges=new z;_resizeSubscription=ke.EMPTY;_offsetX=0;_offsetY=0;_transformOriginSelector;_appliedPanelClasses=[];_previousPushAmount;positionChanges=this._positionChanges;get positions(){return this._preferredPositions}constructor(n,e,i,r,o){this._viewportRuler=e,this._document=i,this._platform=r,this._overlayContainer=o,this.setOrigin(n)}attach(n){this._overlayRef&&this._overlayRef,this._validatePositions(),n.hostElement.classList.add(cB),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._overlayContainer.getContainerElement().getBoundingClientRect();let n=this._originRect,e=this._overlayRect,i=this._viewportRect,r=this._containerRect,o=[],a;for(let s of this._preferredPositions){let l=this._getOriginPoint(n,r,s),c=this._getOverlayPoint(l,e,s),d=this._getOverlayFit(c,e,i,s);if(d.isCompletelyWithinViewport){this._isPushed=!1,this._applyPosition(s,l);return}if(this._canFitWithFlexibleDimensions(d,c,i)){o.push({position:s,origin:l,overlayRect:e,boundingBoxRect:this._calculateBoundingBoxRect(l,s)});continue}(!a||a.overlayFit.visibleAreal&&(l=d,s=c)}this._isPushed=!1,this._applyPosition(s.position,s.origin);return}if(this._canPush){this._isPushed=!0,this._applyPosition(a.position,a.originPoint);return}this._applyPosition(a.position,a.originPoint)}detach(){this._clearPanelClasses(),this._lastPosition=null,this._previousPushAmount=null,this._resizeSubscription.unsubscribe()}dispose(){this._isDisposed||(this._boundingBox&&mu(this._boundingBox.style,{top:"",left:"",right:"",bottom:"",height:"",width:"",alignItems:"",justifyContent:""}),this._pane&&this._resetOverlayElementStyles(),this._overlayRef&&this._overlayRef.hostElement.classList.remove(cB),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;if(n){this._originRect=this._getOriginRect(),this._overlayRect=this._pane.getBoundingClientRect(),this._viewportRect=this._getNarrowedViewportRect(),this._containerRect=this._overlayContainer.getContainerElement().getBoundingClientRect();let e=this._getOriginPoint(this._originRect,this._containerRect,n);this._applyPosition(n,e)}else 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}_getOriginPoint(n,e,i){let r;if(i.originX=="center")r=n.left+n.width/2;else{let a=this._isRtl()?n.right:n.left,s=this._isRtl()?n.left:n.right;r=i.originX=="start"?a:s}e.left<0&&(r-=e.left);let o;return i.originY=="center"?o=n.top+n.height/2:o=i.originY=="top"?n.top:n.bottom,e.top<0&&(o-=e.top),{x:r,y:o}}_getOverlayPoint(n,e,i){let r;i.overlayX=="center"?r=-e.width/2:i.overlayX==="start"?r=this._isRtl()?-e.width:0:r=this._isRtl()?0:-e.width;let o;return i.overlayY=="center"?o=-e.height/2:o=i.overlayY=="top"?0:-e.height,{x:n.x+r,y:n.y+o}}_getOverlayFit(n,e,i,r){let o=uB(e),{x:a,y:s}=n,l=this._getOffset(r,"x"),c=this._getOffset(r,"y");l&&(a+=l),c&&(s+=c);let d=0-a,p=a+o.width-i.width,_=0-s,b=s+o.height-i.height,y=this._subtractOverflows(o.width,d,p),w=this._subtractOverflows(o.height,_,b),C=y*w;return{visibleArea:C,isCompletelyWithinViewport:o.width*o.height===C,fitsInViewportVertically:w===o.height,fitsInViewportHorizontally:y==o.width}}_canFitWithFlexibleDimensions(n,e,i){if(this._hasFlexibleDimensions){let r=i.bottom-e.y,o=i.right-e.x,a=dB(this._overlayRef.getConfig().minHeight),s=dB(this._overlayRef.getConfig().minWidth),l=n.fitsInViewportVertically||a!=null&&a<=r,c=n.fitsInViewportHorizontally||s!=null&&s<=o;return l&&c}return!1}_pushOverlayOnScreen(n,e,i){if(this._previousPushAmount&&this._positionLocked)return{x:n.x+this._previousPushAmount.x,y:n.y+this._previousPushAmount.y};let r=uB(e),o=this._viewportRect,a=Math.max(n.x+r.width-o.width,0),s=Math.max(n.y+r.height-o.height,0),l=Math.max(o.top-i.top-n.y,0),c=Math.max(o.left-i.left-n.x,0),d=0,p=0;return r.width<=o.width?d=c||-a:d=n.xy&&!this._isInitialRender&&!this._growAfterOpen&&(a=n.y-y/2)}let l=e.overlayX==="start"&&!r||e.overlayX==="end"&&r,c=e.overlayX==="end"&&!r||e.overlayX==="start"&&r,d,p,_;if(c)_=i.width-n.x+this._viewportMargin*2,d=n.x-this._viewportMargin;else if(l)p=n.x,d=i.right-n.x;else{let b=Math.min(i.right-n.x+i.left,n.x),y=this._lastBoundingBoxSize.width;d=b*2,p=n.x-b,d>y&&!this._isInitialRender&&!this._growAfterOpen&&(p=n.x-y/2)}return{top:a,left:p,bottom:s,right:_,width:d,height:o}}_setBoundingBoxStyles(n,e){let i=this._calculateBoundingBoxRect(n,e);!this._isInitialRender&&!this._growAfterOpen&&(i.height=Math.min(i.height,this._lastBoundingBoxSize.height),i.width=Math.min(i.width,this._lastBoundingBoxSize.width));let r={};if(this._hasExactPosition())r.top=r.left="0",r.bottom=r.right=r.maxHeight=r.maxWidth="",r.width=r.height="100%";else{let o=this._overlayRef.getConfig().maxHeight,a=this._overlayRef.getConfig().maxWidth;r.height=dn(i.height),r.top=dn(i.top),r.bottom=dn(i.bottom),r.width=dn(i.width),r.left=dn(i.left),r.right=dn(i.right),e.overlayX==="center"?r.alignItems="center":r.alignItems=e.overlayX==="end"?"flex-end":"flex-start",e.overlayY==="center"?r.justifyContent="center":r.justifyContent=e.overlayY==="bottom"?"flex-end":"flex-start",o&&(r.maxHeight=dn(o)),a&&(r.maxWidth=dn(a))}this._lastBoundingBoxSize=i,mu(this._boundingBox.style,r)}_resetBoundingBoxStyles(){mu(this._boundingBox.style,{top:"0",left:"0",right:"0",bottom:"0",height:"",width:"",alignItems:"",justifyContent:""})}_resetOverlayElementStyles(){mu(this._pane.style,{top:"",left:"",bottom:"",right:"",position:"",transform:""})}_setOverlayElementStyles(n,e){let i={},r=this._hasExactPosition(),o=this._hasFlexibleDimensions,a=this._overlayRef.getConfig();if(r){let d=this._viewportRuler.getViewportScrollPosition();mu(i,this._getExactOverlayY(e,n,d)),mu(i,this._getExactOverlayX(e,n,d))}else i.position="static";let s="",l=this._getOffset(e,"x"),c=this._getOffset(e,"y");l&&(s+=`translateX(${l}px) `),c&&(s+=`translateY(${c}px)`),i.transform=s.trim(),a.maxHeight&&(r?i.maxHeight=dn(a.maxHeight):o&&(i.maxHeight="")),a.maxWidth&&(r?i.maxWidth=dn(a.maxWidth):o&&(i.maxWidth="")),mu(this._pane.style,i)}_getExactOverlayY(n,e,i){let r={top:"",bottom:""},o=this._getOverlayPoint(e,this._overlayRect,n);if(this._isPushed&&(o=this._pushOverlayOnScreen(o,this._overlayRect,i)),n.overlayY==="bottom"){let a=this._document.documentElement.clientHeight;r.bottom=`${a-(o.y+this._overlayRect.height)}px`}else r.top=dn(o.y);return r}_getExactOverlayX(n,e,i){let r={left:"",right:""},o=this._getOverlayPoint(e,this._overlayRect,n);this._isPushed&&(o=this._pushOverlayOnScreen(o,this._overlayRect,i));let a;if(this._isRtl()?a=n.overlayX==="end"?"left":"right":a=n.overlayX==="end"?"right":"left",a==="right"){let s=this._document.documentElement.clientWidth;r.right=`${s-(o.x+this._overlayRect.width)}px`}else r.left=dn(o.x);return r}_getScrollVisibility(){let n=this._getOriginRect(),e=this._pane.getBoundingClientRect(),i=this._scrollables.map(r=>r.getElementRef().nativeElement.getBoundingClientRect());return{isOriginClipped:sB(n,i),isOriginOutsideView:XS(n,i),isOverlayClipped:sB(e,i),isOverlayOutsideView:XS(e,i)}}_subtractOverflows(n,...e){return e.reduce((i,r)=>i-Math.max(r,0),n)}_getNarrowedViewportRect(){let n=this._document.documentElement.clientWidth,e=this._document.documentElement.clientHeight,i=this._viewportRuler.getViewportScrollPosition();return{top:i.top+this._viewportMargin,left:i.left+this._viewportMargin,right:i.left+n-this._viewportMargin,bottom:i.top+e-this._viewportMargin,width:n-2*this._viewportMargin,height:e-2*this._viewportMargin}}_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&&Dl(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=[])}_getOriginRect(){let n=this._origin;if(n instanceof Y)return n.nativeElement.getBoundingClientRect();if(n instanceof Element)return n.getBoundingClientRect();let e=n.width||0,i=n.height||0;return{top:n.y,bottom:n.y+i,left:n.x,right:n.x+e,height:i,width:e}}};function mu(t,n){for(let e in n)n.hasOwnProperty(e)&&(t[e]=n[e]);return t}function dB(t){if(typeof t!="number"&&t!=null){let[n,e]=t.split(FJ);return!e||e==="px"?parseFloat(n):null}return t||null}function uB(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 NJ(t,n){return t===n?!0:t.isOriginClipped===n.isOriginClipped&&t.isOriginOutsideView===n.isOriginOutsideView&&t.isOverlayClipped===n.isOverlayClipped&&t.isOverlayOutsideView===n.isOverlayOutsideView}var mB="cdk-global-overlay-wrapper";function zs(t){return new ox}var ox=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(mB),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,i=this._overlayRef.getConfig(),{width:r,height:o,maxWidth:a,maxHeight:s}=i,l=(r==="100%"||r==="100vw")&&(!a||a==="100%"||a==="100vw"),c=(o==="100%"||o==="100vh")&&(!s||s==="100%"||s==="100vh"),d=this._xPosition,p=this._xOffset,_=this._overlayRef.getConfig().direction==="rtl",b="",y="",w="";l?w="flex-start":d==="center"?(w="center",_?y=p:b=p):_?d==="left"||d==="end"?(w="flex-end",b=p):(d==="right"||d==="start")&&(w="flex-start",y=p):d==="left"||d==="start"?(w="flex-start",b=p):(d==="right"||d==="end")&&(w="flex-end",y=p),n.position=this._cssPosition,n.marginLeft=l?"0":b,n.marginTop=c?"0":this._topOffset,n.marginBottom=this._bottomOffset,n.marginRight=l?"0":y,e.justifyContent=w,e.alignItems=c?"flex-start":this._alignItems}dispose(){if(this._isDisposed||!this._overlayRef)return;let n=this._overlayRef.overlayElement.style,e=this._overlayRef.hostElement,i=e.style;e.classList.remove(mB),i.justifyContent=i.alignItems=n.marginTop=n.marginBottom=n.marginLeft=n.marginRight=n.position="",this._overlayRef=null,this._isDisposed=!0}},vB=(()=>{class t{_injector=u(de);constructor(){}global(){return zs()}flexibleConnectedTo(e){return Xa(this._injector,e)}static \u0275fac=function(i){return new(i||t)};static \u0275prov=R({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();function qr(t,n){t.get(ft).load(bB);let e=t.get(ax),i=t.get(_e),r=t.get(et),o=t.get(tr),a=t.get(Yt),s=i.createElement("div"),l=i.createElement("div");l.id=r.getId("cdk-overlay-"),l.classList.add("cdk-overlay-pane"),s.appendChild(l),e.getContainerElement().appendChild(s);let c=new ug(l,o,t),d=new Gr(n),p=t.get(ze,null,{optional:!0})||t.get(hn).createRenderer(null,null);return d.direction=d.direction||a.value,new xh(c,s,l,d,t.get(ae),t.get(gB),i,t.get(Ss),t.get(_B),n?.disableAnimations??t.get(ef,null,{optional:!0})==="NoopAnimations",t.get(ti),p)}var yB=(()=>{class t{scrollStrategies=u(pB);_positionBuilder=u(vB);_injector=u(de);constructor(){}create(e){return qr(this._injector,e)}position(){return this._positionBuilder}static \u0275fac=function(i){return new(i||t)};static \u0275prov=R({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),LJ=[{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"}],xB=new O("cdk-connected-overlay-scroll-strategy",{providedIn:"root",factory:()=>{let t=u(de);return()=>Tn(t)}}),wh=(()=>{class t{elementRef=u(Y);constructor(){}static \u0275fac=function(i){return new(i||t)};static \u0275dir=P({type:t,selectors:[["","cdk-overlay-origin",""],["","overlay-origin",""],["","cdkOverlayOrigin",""]],exportAs:["cdkOverlayOrigin"]})}return t})(),sx=(()=>{class t{_dir=u(Yt,{optional:!0});_injector=u(de);_overlayRef;_templatePortal;_backdropSubscription=ke.EMPTY;_attachSubscription=ke.EMPTY;_detachSubscription=ke.EMPTY;_positionSubscription=ke.EMPTY;_offsetX;_offsetY;_position;_scrollStrategyFactory=u(xB);_disposeOnNavigation=!1;_ngZone=u(ae);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;get disposeOnNavigation(){return this._disposeOnNavigation}set disposeOnNavigation(e){this._disposeOnNavigation=e}backdropClick=new U;positionChange=new U;attach=new U;detach=new U;overlayKeydown=new U;overlayOutsideClick=new U;constructor(){let e=u(te),i=u(st);this._templatePortal=new kn(e,i),this.scrollStrategy=this._scrollStrategyFactory()}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.width,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=LJ);let e=this._overlayRef=qr(this._injector,this._buildConfig());this._attachSubscription=e.attachments().subscribe(()=>this.attach.emit()),this._detachSubscription=e.detachments().subscribe(()=>this.detach.emit()),e.keydownEvents().subscribe(i=>{this.overlayKeydown.next(i),i.keyCode===27&&!this.disableClose&&!Gt(i)&&(i.preventDefault(),this.detachOverlay())}),this._overlayRef.outsidePointerEvents().subscribe(i=>{let r=this._getOriginElement(),o=or(i);(!r||r!==o&&!r.contains(o))&&this.overlayOutsideClick.next(i)})}_buildConfig(){let e=this._position=this.positionStrategy||this._createPositionStrategy(),i=new Gr({direction:this._dir||"ltr",positionStrategy:e,scrollStrategy:this.scrollStrategy,hasBackdrop:this.hasBackdrop,disposeOnNavigation:this.disposeOnNavigation});return(this.width||this.width===0)&&(i.width=this.width),(this.height||this.height===0)&&(i.height=this.height),(this.minWidth||this.minWidth===0)&&(i.minWidth=this.minWidth),(this.minHeight||this.minHeight===0)&&(i.minHeight=this.minHeight),this.backdropClass&&(i.backdropClass=this.backdropClass),this.panelClass&&(i.panelClass=this.panelClass),i}_updatePositionStrategy(e){let i=this.positions.map(r=>({originX:r.originX,originY:r.originY,overlayX:r.overlayX,overlayY:r.overlayY,offsetX:r.offsetX||this.offsetX,offsetY:r.offsetY||this.offsetY,panelClass:r.panelClass||void 0}));return e.setOrigin(this._getOrigin()).withPositions(i).withFlexibleDimensions(this.flexibleDimensions).withPush(this.push).withGrowAfterOpen(this.growAfterOpen).withViewportMargin(this.viewportMargin).withLockedPosition(this.lockPosition).withTransformOriginOn(this.transformOriginSelector)}_createPositionStrategy(){let e=Xa(this._injector,this._getOrigin());return this._updatePositionStrategy(e),e}_getOrigin(){return this.origin instanceof wh?this.origin.elementRef:this.origin}_getOriginElement(){return this.origin instanceof wh?this.origin.elementRef.nativeElement:this.origin instanceof Y?this.origin.nativeElement:typeof Element<"u"&&this.origin instanceof Element?this.origin:null}attachOverlay(){this._overlayRef?this._overlayRef.getConfig().hasBackdrop=this.hasBackdrop:this._createOverlay(),this._overlayRef.hasAttached()||this._overlayRef.attach(this._templatePortal),this.hasBackdrop?this._backdropSubscription=this._overlayRef.backdropClick().subscribe(e=>{this.backdropClick.emit(e)}):this._backdropSubscription.unsubscribe(),this._positionSubscription.unsubscribe(),this.positionChange.observers.length>0&&(this._positionSubscription=this._position.positionChanges.pipe(oD(()=>this.positionChange.observers.length>0)).subscribe(e=>{this._ngZone.run(()=>this.positionChange.emit(e)),this.positionChange.observers.length===0&&this._positionSubscription.unsubscribe()})),this.open=!0}detachOverlay(){this._overlayRef?.detach(),this._backdropSubscription.unsubscribe(),this._positionSubscription.unsubscribe(),this.open=!1}static \u0275fac=function(i){return new(i||t)};static \u0275dir=P({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",L],lockPosition:[2,"cdkConnectedOverlayLockPosition","lockPosition",L],flexibleDimensions:[2,"cdkConnectedOverlayFlexibleDimensions","flexibleDimensions",L],growAfterOpen:[2,"cdkConnectedOverlayGrowAfterOpen","growAfterOpen",L],push:[2,"cdkConnectedOverlayPush","push",L],disposeOnNavigation:[2,"cdkConnectedOverlayDisposeOnNavigation","disposeOnNavigation",L]},outputs:{backdropClick:"backdropClick",positionChange:"positionChange",attach:"attach",detach:"detach",overlayKeydown:"overlayKeydown",overlayOutsideClick:"overlayOutsideClick"},exportAs:["cdkConnectedOverlay"],features:[Oe]})}return t})();function VJ(t){let n=u(de);return()=>Tn(n)}var BJ={provide:xB,useFactory:VJ},cr=(()=>{class t{static \u0275fac=function(i){return new(i||t)};static \u0275mod=ee({type:t});static \u0275inj=J({providers:[yB,BJ],imports:[Fs,Oo,cg,cg]})}return t})();var hu=(()=>{class t{_listeners=[];notify(e,i){for(let r of this._listeners)r(e,i)}listen(e){return this._listeners.push(e),()=>{this._listeners=this._listeners.filter(i=>e!==i)}}ngOnDestroy(){this._listeners=[]}static \u0275fac=function(i){return new(i||t)};static \u0275prov=R({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();var pu=class{applyChanges(n,e,i,r,o){n.forEachOperation((a,s,l)=>{let c,d;if(a.previousIndex==null){let p=i(a,s,l);c=e.createEmbeddedView(p.templateRef,p.context,p.index),d=Sc.INSERTED}else l==null?(e.remove(s),d=Sc.REMOVED):(c=e.get(s),e.move(c,l),d=Sc.MOVED);o&&o({context:c?.context,operation:d,record:a})})}detach(){}};var hg=class{_multiple;_emitChanges;compareWith;_selection=new Set;_deselectedToEmit=[];_selectedToEmit=[];_selected;get selected(){return this._selected||(this._selected=Array.from(this._selection.values())),this._selected}changed=new z;constructor(n=!1,e,i=!0,r){this._multiple=n,this._emitChanges=i,this.compareWith=r,e&&e.length&&(n?e.forEach(o=>this._markSelected(o)):this._markSelected(e[0]),this._selectedToEmit.length=0)}select(...n){this._verifyValueAssignment(n),n.forEach(i=>this._markSelected(i));let e=this._hasQueuedChanges();return this._emitChangeEvent(),e}deselect(...n){this._verifyValueAssignment(n),n.forEach(i=>this._unmarkSelected(i));let e=this._hasQueuedChanges();return this._emitChangeEvent(),e}setSelection(...n){this._verifyValueAssignment(n);let e=this.selected,i=new Set(n.map(o=>this._getConcreteValue(o)));n.forEach(o=>this._markSelected(o)),e.filter(o=>!i.has(this._getConcreteValue(o,i))).forEach(o=>this._unmarkSelected(o));let r=this._hasQueuedChanges();return this._emitChangeEvent(),r}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 i of e)if(this.compareWith(n,i))return i;return n}else return n}};var IB=(()=>{class t{_renderer;_elementRef;onChange=e=>{};onTouched=()=>{};constructor(e,i){this._renderer=e,this._elementRef=i}setProperty(e,i){this._renderer.setProperty(this._elementRef.nativeElement,e,i)}registerOnTouched(e){this.onTouched=e}registerOnChange(e){this.onChange=e}setDisabledState(e){this.setProperty("disabled",e)}static \u0275fac=function(i){return new(i||t)(be(ze),be(Y))};static \u0275dir=P({type:t})}return t})(),AB=(()=>{class t extends IB{static \u0275fac=(()=>{let e;return function(r){return(e||(e=ge(t)))(r||t)}})();static \u0275dir=P({type:t,features:[le]})}return t})(),dr=new O("");var jJ={provide:dr,useExisting:li(()=>di),multi:!0};function HJ(){let t=Xo()?Xo().getUserAgent():"";return/android (\d+)/.test(t.toLowerCase())}var zJ=new O(""),di=(()=>{class t extends IB{_compositionMode;_composing=!1;constructor(e,i,r){super(e,i),this._compositionMode=r,this._compositionMode==null&&(this._compositionMode=!HJ())}writeValue(e){let i=e??"";this.setProperty("value",i)}_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(i){return new(i||t)(be(ze),be(Y),be(zJ,8))};static \u0275dir=P({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(i,r){i&1&&S("input",function(a){return r._handleInput(a.target.value)})("blur",function(){return r.onTouched()})("compositionstart",function(){return r._compositionStart()})("compositionend",function(a){return r._compositionEnd(a.target.value)})},standalone:!1,features:[Ce([jJ]),le]})}return t})();function ik(t){return t==null||nk(t)===0}function nk(t){return t==null?null:Array.isArray(t)||typeof t=="string"?t.length:t instanceof Set?t.size:null}var sa=new O(""),xg=new O(""),UJ=/^(?=.{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])?)*$/,Ve=class{static min(n){return $J(n)}static max(n){return WJ(n)}static required(n){return OB(n)}static requiredTrue(n){return GJ(n)}static email(n){return qJ(n)}static minLength(n){return YJ(n)}static maxLength(n){return QJ(n)}static pattern(n){return KJ(n)}static nullValidator(n){return cx()}static compose(n){return VB(n)}static composeAsync(n){return BB(n)}};function $J(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 OB(t){return ik(t.value)?{required:!0}:null}function GJ(t){return t.value===!0?null:{required:!0}}function qJ(t){return ik(t.value)||UJ.test(t.value)?null:{email:!0}}function YJ(t){return n=>{let e=n.value?.length??nk(n.value);return e===null||e===0?null:e{let e=n.value?.length??nk(n.value);return e!==null&&e>t?{maxlength:{requiredLength:t,actualLength:e}}:null}}function KJ(t){if(!t)return cx;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),i=>{if(ik(i.value))return null;let r=i.value;return n.test(r)?null:{pattern:{requiredPattern:e,actualValue:r}}}}function cx(t){return null}function RB(t){return t!=null}function PB(t){return fl(t)?$t(t):t}function FB(t){let n={};return t.forEach(e=>{n=e!=null?I(I({},n),e):n}),Object.keys(n).length===0?null:n}function NB(t,n){return n.map(e=>e(t))}function ZJ(t){return!t.validate}function LB(t){return t.map(n=>ZJ(n)?n:e=>n.validate(e))}function VB(t){if(!t)return null;let n=t.filter(RB);return n.length==0?null:function(e){return FB(NB(e,n))}}function rk(t){return t!=null?VB(LB(t)):null}function BB(t){if(!t)return null;let n=t.filter(RB);return n.length==0?null:function(e){let i=NB(e,n).map(PB);return ls(i).pipe(se(FB))}}function ok(t){return t!=null?BB(LB(t)):null}function wB(t,n){return t===null?[n]:Array.isArray(t)?[...t,n]:[t,n]}function jB(t){return t._rawValidators}function HB(t){return t._rawAsyncValidators}function ek(t){return t?Array.isArray(t)?t:[t]:[]}function dx(t,n){return Array.isArray(t)?t.includes(n):t===n}function DB(t,n){let e=ek(n);return ek(t).forEach(r=>{dx(e,r)||e.push(r)}),e}function MB(t,n){return ek(n).filter(e=>!dx(t,e))}var ux=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=rk(this._rawValidators)}_setAsyncValidators(n){this._rawAsyncValidators=n||[],this._composedAsyncValidatorFn=ok(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&&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}},Us=class extends ux{name;get formDirective(){return null}get path(){return null}},Kn=class extends ux{_parent=null;name=null;valueAccessor=null},mx=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}},XJ={"[class.ng-untouched]":"isUntouched","[class.ng-touched]":"isTouched","[class.ng-pristine]":"isPristine","[class.ng-dirty]":"isDirty","[class.ng-valid]":"isValid","[class.ng-invalid]":"isInvalid","[class.ng-pending]":"isPending"},J7e=Me(I({},XJ),{"[class.ng-submitted]":"isSubmitted"}),Pt=(()=>{class t extends mx{constructor(e){super(e)}static \u0275fac=function(i){return new(i||t)(be(Kn,2))};static \u0275dir=P({type:t,selectors:[["","formControlName",""],["","ngModel",""],["","formControl",""]],hostVars:14,hostBindings:function(i,r){i&2&&G("ng-untouched",r.isUntouched)("ng-touched",r.isTouched)("ng-pristine",r.isPristine)("ng-dirty",r.isDirty)("ng-valid",r.isValid)("ng-invalid",r.isInvalid)("ng-pending",r.isPending)},standalone:!1,features:[le]})}return t})(),so=(()=>{class t extends mx{constructor(e){super(e)}static \u0275fac=function(i){return new(i||t)(be(Us,10))};static \u0275dir=P({type:t,selectors:[["","formGroupName",""],["","formArrayName",""],["","ngModelGroup",""],["","formGroup",""],["form",3,"ngNoForm",""],["","ngForm",""]],hostVars:16,hostBindings:function(i,r){i&2&&G("ng-untouched",r.isUntouched)("ng-touched",r.isTouched)("ng-pristine",r.isPristine)("ng-dirty",r.isDirty)("ng-valid",r.isValid)("ng-invalid",r.isInvalid)("ng-pending",r.isPending)("ng-submitted",r.isSubmitted)},standalone:!1,features:[le]})}return t})();var pg="VALID",lx="INVALID",Dh="PENDING",fg="DISABLED",Ic=class{},hx=class extends Ic{value;source;constructor(n,e){super(),this.value=n,this.source=e}},_g=class extends Ic{pristine;source;constructor(n,e){super(),this.pristine=n,this.source=e}},bg=class extends Ic{touched;source;constructor(n,e){super(),this.touched=n,this.source=e}},Mh=class extends Ic{status;source;constructor(n,e){super(),this.status=n,this.source=e}},px=class extends Ic{source;constructor(n){super(),this.source=n}},vg=class extends Ic{source;constructor(n){super(),this.source=n}};function ak(t){return(vx(t)?t.validators:t)||null}function JJ(t){return Array.isArray(t)?rk(t):t||null}function sk(t,n){return(vx(n)?n.asyncValidators:t)||null}function eee(t){return Array.isArray(t)?ok(t):t||null}function vx(t){return t!=null&&!Array.isArray(t)&&typeof t=="object"}function zB(t,n,e){let i=t.controls;if(!(n?Object.keys(i):i).length)throw new ue(1e3,"");if(!i[e])throw new ue(1001,"")}function UB(t,n,e){t._forEachChild((i,r)=>{if(e[r]===void 0)throw new ue(1002,"")})}var Ac=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 Ni(this.statusReactive)}set status(n){Ni(()=>this.statusReactive.set(n))}_status=ci(()=>this.statusReactive());statusReactive=he(void 0);get valid(){return this.status===pg}get invalid(){return this.status===lx}get pending(){return this.status==Dh}get disabled(){return this.status===fg}get enabled(){return this.status!==fg}errors;get pristine(){return Ni(this.pristineReactive)}set pristine(n){Ni(()=>this.pristineReactive.set(n))}_pristine=ci(()=>this.pristineReactive());pristineReactive=he(!0);get dirty(){return!this.pristine}get touched(){return Ni(this.touchedReactive)}set touched(n){Ni(()=>this.touchedReactive.set(n))}_touched=ci(()=>this.touchedReactive());touchedReactive=he(!1);get untouched(){return!this.touched}_events=new z;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(DB(n,this._rawValidators))}addAsyncValidators(n){this.setAsyncValidators(DB(n,this._rawAsyncValidators))}removeValidators(n){this.setValidators(MB(n,this._rawValidators))}removeAsyncValidators(n){this.setAsyncValidators(MB(n,this._rawAsyncValidators))}hasValidator(n){return dx(this._rawValidators,n)}hasAsyncValidator(n){return dx(this._rawAsyncValidators,n)}clearValidators(){this.validator=null}clearAsyncValidators(){this.asyncValidator=null}markAsTouched(n={}){let e=this.touched===!1;this.touched=!0;let i=n.sourceControl??this;this._parent&&!n.onlySelf&&this._parent.markAsTouched(Me(I({},n),{sourceControl:i})),e&&n.emitEvent!==!1&&this._events.next(new bg(!0,i))}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 i=n.sourceControl??this;this._forEachChild(r=>{r.markAsUntouched({onlySelf:!0,emitEvent:n.emitEvent,sourceControl:i})}),this._parent&&!n.onlySelf&&this._parent._updateTouched(n,i),e&&n.emitEvent!==!1&&this._events.next(new bg(!1,i))}markAsDirty(n={}){let e=this.pristine===!0;this.pristine=!1;let i=n.sourceControl??this;this._parent&&!n.onlySelf&&this._parent.markAsDirty(Me(I({},n),{sourceControl:i})),e&&n.emitEvent!==!1&&this._events.next(new _g(!1,i))}markAsPristine(n={}){let e=this.pristine===!1;this.pristine=!0,this._pendingDirty=!1;let i=n.sourceControl??this;this._forEachChild(r=>{r.markAsPristine({onlySelf:!0,emitEvent:n.emitEvent})}),this._parent&&!n.onlySelf&&this._parent._updatePristine(n,i),e&&n.emitEvent!==!1&&this._events.next(new _g(!0,i))}markAsPending(n={}){this.status=Dh;let e=n.sourceControl??this;n.emitEvent!==!1&&(this._events.next(new Mh(this.status,e)),this.statusChanges.emit(this.status)),this._parent&&!n.onlySelf&&this._parent.markAsPending(Me(I({},n),{sourceControl:e}))}disable(n={}){let e=this._parentMarkedDirty(n.onlySelf);this.status=fg,this.errors=null,this._forEachChild(r=>{r.disable(Me(I({},n),{onlySelf:!0}))}),this._updateValue();let i=n.sourceControl??this;n.emitEvent!==!1&&(this._events.next(new hx(this.value,i)),this._events.next(new Mh(this.status,i)),this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._updateAncestors(Me(I({},n),{skipPristineCheck:e}),this),this._onDisabledChange.forEach(r=>r(!0))}enable(n={}){let e=this._parentMarkedDirty(n.onlySelf);this.status=pg,this._forEachChild(i=>{i.enable(Me(I({},n),{onlySelf:!0}))}),this.updateValueAndValidity({onlySelf:!0,emitEvent:n.emitEvent}),this._updateAncestors(Me(I({},n),{skipPristineCheck:e}),this),this._onDisabledChange.forEach(i=>i(!1))}_updateAncestors(n,e){this._parent&&!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 i=this._cancelExistingSubscription();this.errors=this._runValidator(),this.status=this._calculateStatus(),(this.status===pg||this.status===Dh)&&this._runAsyncValidator(i,n.emitEvent)}let e=n.sourceControl??this;n.emitEvent!==!1&&(this._events.next(new hx(this.value,e)),this._events.next(new Mh(this.status,e)),this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._parent&&!n.onlySelf&&this._parent.updateValueAndValidity(Me(I({},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()?fg:pg}_runValidator(){return this.validator?this.validator(this):null}_runAsyncValidator(n,e){if(this.asyncValidator){this.status=Dh,this._hasOwnPendingAsyncValidator={emitEvent:e!==!1,shouldHaveEmitted:n!==!1};let i=PB(this.asyncValidator(this));this._asyncValidationSubscription=i.subscribe(r=>{this._hasOwnPendingAsyncValidator=null,this.setErrors(r,{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((i,r)=>i&&i._find(r),this)}getError(n,e){let i=e?this.get(e):this;return i&&i.errors?i.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,i){this.status=this._calculateStatus(),n&&this.statusChanges.emit(this.status),(n||i)&&this._events.next(new Mh(this.status,e)),this._parent&&this._parent._updateControlsErrors(n,e,i)}_initObservables(){this.valueChanges=new U,this.statusChanges=new U}_calculateStatus(){return this._allControlsDisabled()?fg:this.errors?lx:this._hasOwnPendingAsyncValidator||this._anyControlsHaveStatus(Dh)?Dh:this._anyControlsHaveStatus(lx)?lx:pg}_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 i=!this._anyControlsDirty(),r=this.pristine!==i;this.pristine=i,this._parent&&!n.onlySelf&&this._parent._updatePristine(n,e),r&&this._events.next(new _g(this.pristine,e))}_updateTouched(n={},e){this.touched=this._anyControlsTouched(),this._events.next(new bg(this.touched,e)),this._parent&&!n.onlySelf&&this._parent._updateTouched(n,e)}_onDisabledChange=[];_registerOnCollectionChange(n){this._onCollectionChange=n}_setUpdateStrategy(n){vx(n)&&n.updateOn!=null&&(this._updateOn=n.updateOn)}_parentMarkedDirty(n){let e=this._parent&&this._parent.dirty;return!n&&!!e&&!this._parent._anyControlsDirty()}_find(n){return null}_assignValidators(n){this._rawValidators=Array.isArray(n)?n.slice():n,this._composedValidatorFn=JJ(this._rawValidators)}_assignAsyncValidators(n){this._rawAsyncValidators=Array.isArray(n)?n.slice():n,this._composedAsyncValidatorFn=eee(this._rawAsyncValidators)}},fu=class extends Ac{constructor(n,e,i){super(ak(e),sk(i,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,i={}){this.registerControl(n,e),this.updateValueAndValidity({emitEvent:i.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,i={}){this.controls[n]&&this.controls[n]._registerOnCollectionChange(()=>{}),delete this.controls[n],e&&this.registerControl(n,e),this.updateValueAndValidity({emitEvent:i.emitEvent}),this._onCollectionChange()}contains(n){return this.controls.hasOwnProperty(n)&&this.controls[n].enabled}setValue(n,e={}){UB(this,!0,n),Object.keys(n).forEach(i=>{zB(this,!0,i),this.controls[i].setValue(n[i],{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e)}patchValue(n,e={}){n!=null&&(Object.keys(n).forEach(i=>{let r=this.controls[i];r&&r.patchValue(n[i],{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e))}reset(n={},e={}){this._forEachChild((i,r)=>{i.reset(n?n[r]:null,{onlySelf:!0,emitEvent:e.emitEvent})}),this._updatePristine(e,this),this._updateTouched(e,this),this.updateValueAndValidity(e),e?.emitEvent!==!1&&this._events.next(new vg(this))}getRawValue(){return this._reduceChildren({},(n,e,i)=>(n[i]=e.getRawValue(),n))}_syncPendingControls(){let n=this._reduceChildren(!1,(e,i)=>i._syncPendingControls()?!0:e);return n&&this.updateValueAndValidity({onlySelf:!0}),n}_forEachChild(n){Object.keys(this.controls).forEach(e=>{let i=this.controls[e];i&&n(i,e)})}_setUpControls(){this._forEachChild(n=>{n.setParent(this),n._registerOnCollectionChange(this._onCollectionChange)})}_updateValue(){this.value=this._reduceValue()}_anyControls(n){for(let[e,i]of Object.entries(this.controls))if(this.contains(e)&&n(i))return!0;return!1}_reduceValue(){let n={};return this._reduceChildren(n,(e,i,r)=>((i.enabled||this.disabled)&&(e[r]=i.value),e))}_reduceChildren(n,e){let i=n;return this._forEachChild((r,o)=>{i=e(i,r,o)}),i}_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 yx=fu;var tk=class extends fu{};var Eh=new O("",{providedIn:"root",factory:()=>xx}),xx="always";function $B(t,n){return[...n.path,t]}function yg(t,n,e=xx){lk(t,n),n.valueAccessor.writeValue(t.value),(t.disabled||e==="always")&&n.valueAccessor.setDisabledState?.(t.disabled),iee(t,n),ree(t,n),nee(t,n),tee(t,n)}function fx(t,n,e=!0){let i=()=>{};n.valueAccessor&&(n.valueAccessor.registerOnChange(i),n.valueAccessor.registerOnTouched(i)),_x(t,n),t&&(n._invokeOnDestroyCallbacks(),t._registerOnCollectionChange(()=>{}))}function gx(t,n){t.forEach(e=>{e.registerOnValidatorChange&&e.registerOnValidatorChange(n)})}function tee(t,n){if(n.valueAccessor.setDisabledState){let e=i=>{n.valueAccessor.setDisabledState(i)};t.registerOnDisabledChange(e),n._registerOnDestroy(()=>{t._unregisterOnDisabledChange(e)})}}function lk(t,n){let e=jB(t);n.validator!==null?t.setValidators(wB(e,n.validator)):typeof e=="function"&&t.setValidators([e]);let i=HB(t);n.asyncValidator!==null?t.setAsyncValidators(wB(i,n.asyncValidator)):typeof i=="function"&&t.setAsyncValidators([i]);let r=()=>t.updateValueAndValidity();gx(n._rawValidators,r),gx(n._rawAsyncValidators,r)}function _x(t,n){let e=!1;if(t!==null){if(n.validator!==null){let r=jB(t);if(Array.isArray(r)&&r.length>0){let o=r.filter(a=>a!==n.validator);o.length!==r.length&&(e=!0,t.setValidators(o))}}if(n.asyncValidator!==null){let r=HB(t);if(Array.isArray(r)&&r.length>0){let o=r.filter(a=>a!==n.asyncValidator);o.length!==r.length&&(e=!0,t.setAsyncValidators(o))}}}let i=()=>{};return gx(n._rawValidators,i),gx(n._rawAsyncValidators,i),e}function iee(t,n){n.valueAccessor.registerOnChange(e=>{t._pendingValue=e,t._pendingChange=!0,t._pendingDirty=!0,t.updateOn==="change"&&WB(t,n)})}function nee(t,n){n.valueAccessor.registerOnTouched(()=>{t._pendingTouched=!0,t.updateOn==="blur"&&t._pendingChange&&WB(t,n),t.updateOn!=="submit"&&t.markAsTouched()})}function WB(t,n){t._pendingDirty&&t.markAsDirty(),t.setValue(t._pendingValue,{emitModelToViewChange:!1}),n.viewToModelUpdate(t._pendingValue),t._pendingChange=!1}function ree(t,n){let e=(i,r)=>{n.valueAccessor.writeValue(i),r&&n.viewToModelUpdate(i)};t.registerOnChange(e),n._registerOnDestroy(()=>{t._unregisterOnChange(e)})}function GB(t,n){t==null,lk(t,n)}function oee(t,n){return _x(t,n)}function ck(t,n){if(!t.hasOwnProperty("model"))return!1;let e=t.model;return e.isFirstChange()?!0:!Object.is(n,e.currentValue)}function aee(t){return Object.getPrototypeOf(t.constructor)===AB}function qB(t,n){t._syncPendingControls(),n.forEach(e=>{let i=e.control;i.updateOn==="submit"&&i._pendingChange&&(e.viewToModelUpdate(i._pendingValue),i._pendingChange=!1)})}function dk(t,n){if(!n)return null;Array.isArray(n);let e,i,r;return n.forEach(o=>{o.constructor===di?e=o:aee(o)?i=o:r=o}),r||i||e||null}function see(t,n){let e=t.indexOf(n);e>-1&&t.splice(e,1)}var lee={provide:Us,useExisting:li(()=>Oc)},gg=Promise.resolve(),Oc=(()=>{class t extends Us{callSetDisabledState;get submitted(){return Ni(this.submittedReactive)}_submitted=ci(()=>this.submittedReactive());submittedReactive=he(!1);_directives=new Set;form;ngSubmit=new U;options;constructor(e,i,r){super(),this.callSetDisabledState=r,this.form=new fu({},rk(e),ok(i))}ngAfterViewInit(){this._setUpdateStrategy()}get formDirective(){return this}get control(){return this.form}get path(){return[]}get controls(){return this.form.controls}addControl(e){gg.then(()=>{let i=this._findContainer(e.path);e.control=i.registerControl(e.name,e.control),yg(e.control,e,this.callSetDisabledState),e.control.updateValueAndValidity({emitEvent:!1}),this._directives.add(e)})}getControl(e){return this.form.get(e.path)}removeControl(e){gg.then(()=>{let i=this._findContainer(e.path);i&&i.removeControl(e.name),this._directives.delete(e)})}addFormGroup(e){gg.then(()=>{let i=this._findContainer(e.path),r=new fu({});GB(r,e),i.registerControl(e.name,r),r.updateValueAndValidity({emitEvent:!1})})}removeFormGroup(e){gg.then(()=>{let i=this._findContainer(e.path);i&&i.removeControl(e.name)})}getFormGroup(e){return this.form.get(e.path)}updateModel(e,i){gg.then(()=>{this.form.get(e.path).setValue(i)})}setValue(e){this.control.setValue(e)}onSubmit(e){return this.submittedReactive.set(!0),qB(this.form,this._directives),this.ngSubmit.emit(e),this.form._events.next(new px(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(i){return new(i||t)(be(sa,10),be(xg,10),be(Eh,8))};static \u0275dir=P({type:t,selectors:[["form",3,"ngNoForm","",3,"formGroup",""],["ng-form"],["","ngForm",""]],hostBindings:function(i,r){i&1&&S("submit",function(a){return r.onSubmit(a)})("reset",function(){return r.onReset()})},inputs:{options:[0,"ngFormOptions","options"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],standalone:!1,features:[Ce([lee]),le]})}return t})();function EB(t,n){let e=t.indexOf(n);e>-1&&t.splice(e,1)}function SB(t){return typeof t=="object"&&t!==null&&Object.keys(t).length===2&&"value"in t&&"disabled"in t}var aa=class extends Ac{defaultValue=null;_onChange=[];_pendingValue;_pendingChange=!1;constructor(n=null,e,i){super(ak(e),sk(i,e)),this._applyFormState(n),this._setUpdateStrategy(e),this._initObservables(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator}),vx(e)&&(e.nonNullable||e.initialValueIsDefault)&&(SB(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(i=>i(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),this._pendingChange=!1,e?.emitEvent!==!1&&this._events.next(new vg(this))}_updateValue(){}_anyControls(n){return!1}_allControlsDisabled(){return this.disabled}registerOnChange(n){this._onChange.push(n)}_unregisterOnChange(n){EB(this._onChange,n)}registerOnDisabledChange(n){this._onDisabledChange.push(n)}_unregisterOnDisabledChange(n){EB(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){SB(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}},YB=aa,cee=t=>t instanceof aa;var dee={provide:Kn,useExisting:li(()=>Ro)},kB=Promise.resolve(),Ro=(()=>{class t extends Kn{_changeDetectorRef;callSetDisabledState;control=new aa;static ngAcceptInputType_isDisabled;_registered=!1;viewModel;name="";isDisabled;model;options;update=new U;constructor(e,i,r,o,a,s){super(),this._changeDetectorRef=a,this.callSetDisabledState=s,this._parent=e,this._setValidators(i),this._setAsyncValidators(r),this.valueAccessor=dk(this,o)}ngOnChanges(e){if(this._checkForErrors(),!this._registered||"name"in e){if(this._registered&&(this._checkName(),this.formDirective)){let i=e.name.previousValue;this.formDirective.removeControl({name:i,path:this._getPath(i)})}this._setUpControl()}"isDisabled"in e&&this._updateDisabled(e),ck(e,this.viewModel)&&(this._updateValue(this.model),this.viewModel=this.model)}ngOnDestroy(){this.formDirective&&this.formDirective.removeControl(this)}get path(){return this._getPath(this.name)}get formDirective(){return this._parent?this._parent.formDirective:null}viewToModelUpdate(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(){yg(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){kB.then(()=>{this.control.setValue(e,{emitViewToModelChange:!1}),this._changeDetectorRef?.markForCheck()})}_updateDisabled(e){let i=e.isDisabled.currentValue,r=i!==0&&L(i);kB.then(()=>{r&&!this.control.disabled?this.control.disable():!r&&this.control.disabled&&this.control.enable(),this._changeDetectorRef?.markForCheck()})}_getPath(e){return this._parent?$B(e,this._parent):[e]}static \u0275fac=function(i){return new(i||t)(be(Us,9),be(sa,10),be(xg,10),be(dr,10),be(ye,8),be(Eh,8))};static \u0275dir=P({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:[Ce([dee]),le,Oe]})}return t})();var lo=(()=>{class t{static \u0275fac=function(i){return new(i||t)};static \u0275dir=P({type:t,selectors:[["form",3,"ngNoForm","",3,"ngNativeValidate",""]],hostAttrs:["novalidate",""],standalone:!1})}return t})(),uee={provide:dr,useExisting:li(()=>gu),multi:!0},gu=(()=>{class t extends AB{writeValue(e){let i=e??"";this.setProperty("value",i)}registerOnChange(e){this.onChange=i=>{e(i==""?null:parseFloat(i))}}static \u0275fac=(()=>{let e;return function(r){return(e||(e=ge(t)))(r||t)}})();static \u0275dir=P({type:t,selectors:[["input","type","number","formControlName",""],["input","type","number","formControl",""],["input","type","number","ngModel",""]],hostBindings:function(i,r){i&1&&S("input",function(a){return r.onChange(a.target.value)})("blur",function(){return r.onTouched()})},standalone:!1,features:[Ce([uee]),le]})}return t})();var uk=new O(""),mee={provide:Kn,useExisting:li(()=>Po)},Po=(()=>{class t extends Kn{_ngModelWarningConfig;callSetDisabledState;viewModel;form;set isDisabled(e){}model;update=new U;static _ngModelWarningSentOnce=!1;_ngModelWarningSent=!1;constructor(e,i,r,o,a){super(),this._ngModelWarningConfig=o,this.callSetDisabledState=a,this._setValidators(e),this._setAsyncValidators(i),this.valueAccessor=dk(this,r)}ngOnChanges(e){if(this._isControlChanged(e)){let i=e.form.previousValue;i&&fx(i,this,!1),yg(this.form,this,this.callSetDisabledState),this.form.updateValueAndValidity({emitEvent:!1})}ck(e,this.viewModel)&&(this.form.setValue(this.model),this.viewModel=this.model)}ngOnDestroy(){this.form&&fx(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(i){return new(i||t)(be(sa,10),be(xg,10),be(dr,10),be(uk,8),be(Eh,8))};static \u0275dir=P({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:[Ce([mee]),le,Oe]})}return t})(),hee={provide:Us,useExisting:li(()=>nn)},nn=(()=>{class t extends Us{callSetDisabledState;get submitted(){return Ni(this._submittedReactive)}set submitted(e){this._submittedReactive.set(e)}_submitted=ci(()=>this._submittedReactive());_submittedReactive=he(!1);_oldForm;_onCollectionChange=()=>this._updateDomValue();directives=[];form=null;ngSubmit=new U;constructor(e,i,r){super(),this.callSetDisabledState=r,this._setValidators(e),this._setAsyncValidators(i)}ngOnChanges(e){e.hasOwnProperty("form")&&(this._updateValidators(),this._updateDomValue(),this._updateRegistrations(),this._oldForm=this.form)}ngOnDestroy(){this.form&&(_x(this.form,this),this.form._onCollectionChange===this._onCollectionChange&&this.form._registerOnCollectionChange(()=>{}))}get formDirective(){return this}get control(){return this.form}get path(){return[]}addControl(e){let i=this.form.get(e.path);return yg(i,e,this.callSetDisabledState),i.updateValueAndValidity({emitEvent:!1}),this.directives.push(e),i}getControl(e){return this.form.get(e.path)}removeControl(e){fx(e.control||null,e,!1),see(this.directives,e)}addFormGroup(e){this._setUpFormContainer(e)}removeFormGroup(e){this._cleanUpFormContainer(e)}getFormGroup(e){return this.form.get(e.path)}addFormArray(e){this._setUpFormContainer(e)}removeFormArray(e){this._cleanUpFormContainer(e)}getFormArray(e){return this.form.get(e.path)}updateModel(e,i){this.form.get(e.path).setValue(i)}onSubmit(e){return this._submittedReactive.set(!0),qB(this.form,this.directives),this.ngSubmit.emit(e),this.form._events.next(new px(this.control)),e?.target?.method==="dialog"}onReset(){this.resetForm()}resetForm(e=void 0,i={}){this.form.reset(e,i),this._submittedReactive.set(!1)}_updateDomValue(){this.directives.forEach(e=>{let i=e.control,r=this.form.get(e.path);i!==r&&(fx(i||null,e),cee(r)&&(yg(r,e,this.callSetDisabledState),e.control=r))}),this.form._updateTreeValidity({emitEvent:!1})}_setUpFormContainer(e){let i=this.form.get(e.path);GB(i,e),i.updateValueAndValidity({emitEvent:!1})}_cleanUpFormContainer(e){if(this.form){let i=this.form.get(e.path);i&&oee(i,e)&&i.updateValueAndValidity({emitEvent:!1})}}_updateRegistrations(){this.form._registerOnCollectionChange(this._onCollectionChange),this._oldForm&&this._oldForm._registerOnCollectionChange(()=>{})}_updateValidators(){lk(this.form,this),this._oldForm&&_x(this._oldForm,this)}static \u0275fac=function(i){return new(i||t)(be(sa,10),be(xg,10),be(Eh,8))};static \u0275dir=P({type:t,selectors:[["","formGroup",""]],hostBindings:function(i,r){i&1&&S("submit",function(a){return r.onSubmit(a)})("reset",function(){return r.onReset()})},inputs:{form:[0,"formGroup","form"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],standalone:!1,features:[Ce([hee]),le,Oe]})}return t})();var pee={provide:Kn,useExisting:li(()=>Yr)},Yr=(()=>{class t extends Kn{_ngModelWarningConfig;_added=!1;viewModel;control;name=null;set isDisabled(e){}model;update=new U;static _ngModelWarningSentOnce=!1;_ngModelWarningSent=!1;constructor(e,i,r,o,a){super(),this._ngModelWarningConfig=a,this._parent=e,this._setValidators(i),this._setAsyncValidators(r),this.valueAccessor=dk(this,o)}ngOnChanges(e){this._added||this._setUpControl(),ck(e,this.viewModel)&&(this.viewModel=this.model,this.formDirective.updateModel(this,this.model))}ngOnDestroy(){this.formDirective&&this.formDirective.removeControl(this)}viewToModelUpdate(e){this.viewModel=e,this.update.emit(e)}get path(){return $B(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(i){return new(i||t)(be(Us,13),be(sa,10),be(xg,10),be(dr,10),be(uk,8))};static \u0275dir=P({type:t,selectors:[["","formControlName",""]],inputs:{name:[0,"formControlName","name"],isDisabled:[0,"disabled","isDisabled"],model:[0,"ngModel","model"]},outputs:{update:"ngModelChange"},standalone:!1,features:[Ce([pee]),le,Oe]})}return t})();var fee=(()=>{class t{_validator=cx;_onChange;_enabled;ngOnChanges(e){if(this.inputName in e){let i=this.normalizeInput(e[this.inputName].currentValue);this._enabled=this.enabled(i),this._validator=this._enabled?this.createValidator(i):cx,this._onChange&&this._onChange()}}validate(e){return this._validator(e)}registerOnValidatorChange(e){this._onChange=e}enabled(e){return e!=null}static \u0275fac=function(i){return new(i||t)};static \u0275dir=P({type:t,features:[Oe]})}return t})();var gee={provide:sa,useExisting:li(()=>Fo),multi:!0};var Fo=(()=>{class t extends fee{required;inputName="required";normalizeInput=L;createValidator=e=>OB;enabled(e){return e}static \u0275fac=(()=>{let e;return function(r){return(e||(e=ge(t)))(r||t)}})();static \u0275dir=P({type:t,selectors:[["","required","","formControlName","",3,"type","checkbox"],["","required","","formControl","",3,"type","checkbox"],["","required","","ngModel","",3,"type","checkbox"]],hostVars:1,hostBindings:function(i,r){i&2&&X("required",r._enabled?"":null)},inputs:{required:"required"},standalone:!1,features:[Ce([gee]),le]})}return t})();var QB=(()=>{class t{static \u0275fac=function(i){return new(i||t)};static \u0275mod=ee({type:t});static \u0275inj=J({})}return t})(),bx=class extends Ac{constructor(n,e,i){super(ak(e),sk(i,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(i=>{this.controls.push(i),this._registerControl(i)}):(this.controls.push(n),this._registerControl(n)),this.updateValueAndValidity({emitEvent:e.emitEvent}),this._onCollectionChange()}insert(n,e,i={}){this.controls.splice(n,0,e),this._registerControl(e),this.updateValueAndValidity({emitEvent:i.emitEvent})}removeAt(n,e={}){let i=this._adjustIndex(n);i<0&&(i=0),this.controls[i]&&this.controls[i]._registerOnCollectionChange(()=>{}),this.controls.splice(i,1),this.updateValueAndValidity({emitEvent:e.emitEvent})}setControl(n,e,i={}){let r=this._adjustIndex(n);r<0&&(r=0),this.controls[r]&&this.controls[r]._registerOnCollectionChange(()=>{}),this.controls.splice(r,1),e&&(this.controls.splice(r,0,e),this._registerControl(e)),this.updateValueAndValidity({emitEvent:i.emitEvent}),this._onCollectionChange()}get length(){return this.controls.length}setValue(n,e={}){UB(this,!1,n),n.forEach((i,r)=>{zB(this,!1,r),this.at(r).setValue(i,{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e)}patchValue(n,e={}){n!=null&&(n.forEach((i,r)=>{this.at(r)&&this.at(r).patchValue(i,{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e))}reset(n=[],e={}){this._forEachChild((i,r)=>{i.reset(n[r],{onlySelf:!0,emitEvent:e.emitEvent})}),this._updatePristine(e,this),this._updateTouched(e,this),this.updateValueAndValidity(e),e?.emitEvent!==!1&&this._events.next(new vg(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,i)=>i._syncPendingControls()?!0:e,!1);return n&&this.updateValueAndValidity({onlySelf:!0}),n}_forEachChild(n){this.controls.forEach((e,i)=>{n(e,i)})}_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}},mk=bx;function TB(t){return!!t&&(t.asyncValidators!==void 0||t.validators!==void 0||t.updateOn!==void 0)}var co=(()=>{class t{useNonNullable=!1;get nonNullable(){let e=new t;return e.useNonNullable=!0,e}group(e,i=null){let r=this._reduceControls(e),o={};return TB(i)?o=i:i!==null&&(o.validators=i.validator,o.asyncValidators=i.asyncValidator),new fu(r,o)}record(e,i=null){let r=this._reduceControls(e);return new tk(r,i)}control(e,i,r){let o={};return this.useNonNullable?(TB(i)?o=i:(o.validators=i,o.asyncValidators=r),new aa(e,Me(I({},o),{nonNullable:!0}))):new aa(e,i,r)}array(e,i,r){let o=e.map(a=>this._createControl(a));return new bx(o,i,r)}_reduceControls(e){let i={};return Object.keys(e).forEach(r=>{i[r]=this._createControl(e[r])}),i}_createControl(e){if(e instanceof aa)return e;if(e instanceof Ac)return e;if(Array.isArray(e)){let i=e[0],r=e.length>1?e[1]:null,o=e.length>2?e[2]:null;return this.control(i,r,o)}else return this.control(e)}static \u0275fac=function(i){return new(i||t)};static \u0275prov=R({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();var Qr=(()=>{class t{static withConfig(e){return{ngModule:t,providers:[{provide:Eh,useValue:e.callSetDisabledState??xx}]}}static \u0275fac=function(i){return new(i||t)};static \u0275mod=ee({type:t});static \u0275inj=J({imports:[QB]})}return t})(),Zn=(()=>{class t{static withConfig(e){return{ngModule:t,providers:[{provide:uk,useValue:e.warnOnNgModelWithFormControl??"always"},{provide:Eh,useValue:e.callSetDisabledState??xx}]}}static \u0275fac=function(i){return new(i||t)};static \u0275mod=ee({type:t});static \u0275inj=J({imports:[QB]})}return t})();var ai=(()=>{class t{static \u0275fac=function(i){return new(i||t)};static \u0275mod=ee({type:t});static \u0275inj=J({imports:[De,Jm,Xt,De]})}return t})();var _ee=["trigger"],bee=["panel"],vee=[[["mat-select-trigger"]],"*"],yee=["mat-select-trigger","*"];function xee(t,n){if(t&1&&(m(0,"span",4),f(1),h()),t&2){let e=x();g(),N(e.placeholder)}}function Cee(t,n){t&1&&ne(0)}function wee(t,n){if(t&1&&(m(0,"span",11),f(1),h()),t&2){let e=x(2);g(),N(e.triggerValue)}}function Dee(t,n){if(t&1&&(m(0,"span",5),V(1,Cee,1,0)(2,wee,2,1,"span",11),h()),t&2){let e=x();g(),B(e.customTrigger?1:2)}}function Mee(t,n){if(t&1){let e=q();m(0,"div",12,1),S("keydown",function(r){k(e);let o=x();return T(o._handleKeydown(r))}),ne(2,1),h()}if(t&2){let e=x();at(Zo("mat-mdc-select-panel mdc-menu-surface mdc-menu-surface--open ",e._getPanelTheme())),G("mat-select-panel-animations-enabled",!e._animationsDisabled),v("ngClass",e.panelClass),X("id",e.id+"-panel")("aria-multiselectable",e.multiple)("aria-label",e.ariaLabel||null)("aria-labelledby",e._getPanelAriaLabelledby())}}var hk=new O("mat-select-scroll-strategy",{providedIn:"root",factory:()=>{let t=u(de);return()=>Tn(t)}});function KB(t){let n=u(de);return()=>Tn(n)}var ZB=new O("MAT_SELECT_CONFIG"),XB={provide:hk,deps:[],useFactory:KB},JB=new O("MatSelectTrigger"),Cx=class{source;value;constructor(n,e){this.source=n,this.value=e}},Ja=(()=>{class t{_viewportRuler=u(sr);_changeDetectorRef=u(ye);_elementRef=u(Y);_dir=u(Yt,{optional:!0});_idGenerator=u(et);_renderer=u(ze);_parentFormField=u(oa,{optional:!0});ngControl=u(Kn,{self:!0,optional:!0});_liveAnnouncer=u(Xf);_defaultOptions=u(ZB,{optional:!0});_animationsDisabled=Qe();_initialized=new z;_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 i=this.options.toArray()[e];if(i){let r=this.panel.nativeElement,o=tg(e,this.options,this.optionGroups),a=i._getHostElement();e===0&&o===1?r.scrollTop=0:r.scrollTop=ig(a.offsetTop,a.offsetHeight,r.scrollTop,r.offsetHeight)}}_positioningSettled(){this._scrollOptionIntoView(this._keyManager.activeItemIndex||0)}_getChangeEvent(e){return new Cx(this,e)}_scrollStrategyFactory=u(hk);_panelOpen=!1;_compareWith=(e,i)=>e===i;_uid=this._idGenerator.getId("mat-select-");_triggerAriaLabelledBy=null;_previousControl;_destroy=new z;_errorStateTracker;stateChanges=new z;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=he(!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(Ve.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=Fn(()=>{let e=this.options;return e?e.changes.pipe(Ue(e),je(()=>it(...e.map(i=>i.onSelectionChange)))):this._initialized.pipe(je(()=>this.optionSelectionChanges))});openedChange=new U;_openedStream=this.openedChange.pipe(ce(e=>e),se(()=>{}));_closedStream=this.openedChange.pipe(ce(e=>!e),se(()=>{}));selectionChange=new U;valueChange=new U;constructor(){let e=u(kl),i=u(Oc,{optional:!0}),r=u(nn,{optional:!0}),o=u(new Li("tabindex"),{optional:!0});this.ngControl&&(this.ngControl.valueAccessor=this),this._defaultOptions?.typeaheadDebounceInterval!=null&&(this.typeaheadDebounceInterval=this._defaultOptions.typeaheadDebounceInterval),this._errorStateTracker=new Sl(e,this.ngControl,r,i,this.stateChanges),this._scrollStrategy=this._scrollStrategyFactory(),this.tabIndex=o==null?0:parseInt(o)||0,this.id=this.id}ngOnInit(){this._selectionModel=new hg(this.multiple),this.stateChanges.next(),this._viewportRuler.change().pipe(we(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(we(this._destroy)).subscribe(e=>{e.added.forEach(i=>i.select()),e.removed.forEach(i=>i.deselect())}),this.options.changes.pipe(Ue(null),we(this._destroy)).subscribe(()=>{this._resetOptions(),this._initializeSelection()})}ngDoCheck(){let e=this._getTriggerAriaLabelledby(),i=this.ngControl;if(e!==this._triggerAriaLabelledBy){let r=this._elementRef.nativeElement;this._triggerAriaLabelledBy=e,e?r.setAttribute("aria-labelledby",e):r.removeAttribute("aria-labelledby")}i&&(this._previousControl!==i.control&&(this._previousControl!==void 0&&i.disabled!==null&&i.disabled!==this.disabled&&(this.disabled=i.disabled),this._previousControl=i.control),this.updateErrorState())}ngOnChanges(e){(e.disabled||e.userAriaDescribedBy)&&this.stateChanges.next(),e.typeaheadDebounceInterval&&this._keyManager&&this._keyManager.withTypeAhead(this.typeaheadDebounceInterval)}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(mt(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 i=`${this.id}-panel`;this._trackedModal&&Mc(this._trackedModal,"aria-owns",i),ih(e,"aria-owns",i),this._trackedModal=e}_clearFromModal(){if(!this._trackedModal)return;let e=`${this.id}-panel`;Mc(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=()=>{i(),clearTimeout(r),this._cleanupDetach=void 0};let e=this.panel.nativeElement,i=this._renderer.listen(e,"animationend",o=>{o.animationName==="_mat-select-exit"&&(this._cleanupDetach?.(),this._detachOverlay())}),r=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(i=>i.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 i=e.keyCode,r=i===40||i===38||i===37||i===39,o=i===13||i===32,a=this._keyManager;if(!a.isTyping()&&o&&!Gt(e)||(this.multiple||e.altKey)&&r)e.preventDefault(),this.open();else if(!this.multiple){let s=this.selected;a.onKeydown(e);let l=this.selected;l&&s!==l&&this._liveAnnouncer.announce(l.viewValue,1e4)}}_handleOpenKeydown(e){let i=this._keyManager,r=e.keyCode,o=r===40||r===38,a=i.isTyping();if(o&&e.altKey)e.preventDefault(),this.close();else if(!a&&(r===13||r===32)&&i.activeItem&&!Gt(e))e.preventDefault(),i.activeItem._selectViaInteraction();else if(!a&&this._multiple&&r===65&&e.ctrlKey){e.preventDefault();let s=this.options.some(l=>!l.disabled&&!l.selected);this.options.forEach(l=>{l.disabled||(s?l.select():l.deselect())})}else{let s=i.activeItemIndex;i.onKeydown(e),this._multiple&&o&&e.shiftKey&&i.activeItem&&i.activeItemIndex!==s&&i.activeItem._selectViaInteraction()}}_handleOverlayKeydown(e){e.keyCode===27&&!Gt(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())}_getPanelTheme(){return this._parentFormField?`mat-${this._parentFormField.color}`:""}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(i=>i.setInactiveStyles()),this._selectionModel.clear(),this.multiple&&e)Array.isArray(e),e.forEach(i=>this._selectOptionByValue(i)),this._sortValues();else{let i=this._selectOptionByValue(e);i?this._keyManager.updateActiveItem(i):this.panelOpen||this._keyManager.updateActiveItem(-1)}this._changeDetectorRef.markForCheck()}_selectOptionByValue(e){let i=this.options.find(r=>{if(this._selectionModel.isSelected(r))return!1;try{return(r.value!=null||this.canSelectNullableOptions)&&this._compareWith(r.value,e)}catch{return!1}});return i&&this._selectionModel.select(i),i}_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 wh?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 tu(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=it(this.options.changes,this._destroy);this.optionSelectionChanges.pipe(we(e)).subscribe(i=>{this._onSelect(i.source,i.isUserInput),i.isUserInput&&!this.multiple&&this._panelOpen&&(this.close(),this.focus())}),it(...this.options.map(i=>i._stateChanges)).pipe(we(e)).subscribe(()=>{this._changeDetectorRef.detectChanges(),this.stateChanges.next()})}_onSelect(e,i){let r=this._selectionModel.isSelected(e);!this.canSelectNullableOptions&&e.value==null&&!this._multiple?(e.deselect(),this._selectionModel.clear(),this.value!=null&&this._propagateChanges(e.value)):(r!==e.selected&&(e.selected?this._selectionModel.select(e):this._selectionModel.deselect(e)),i&&this._keyManager.setActiveItem(e),this.multiple&&(this._sortValues(),i&&this.focus())),r!==this._selectionModel.isSelected(e)&&this._propagateChanges(),this.stateChanges.next()}_sortValues(){if(this.multiple){let e=this.options.toArray();this._selectionModel.sort((i,r)=>this.sortComparator?this.sortComparator(i,r,e):e.indexOf(i)-e.indexOf(r)),this.stateChanges.next()}}_propagateChanges(e){let i;this.multiple?i=this.selected.map(r=>r.value):i=this.selected?this.selected.value:e,this._value=i,this.valueChange.emit(i),this._onChange(i),this.selectionChange.emit(this._getChangeEvent(i)),this._changeDetectorRef.markForCheck()}_highlightCorrectOption(){if(this._keyManager)if(this.empty){let e=-1;for(let i=0;i0&&!!this._overlayDir}focus(e){this._elementRef.nativeElement.focus(e)}_getPanelAriaLabelledby(){if(this.ariaLabel)return null;let e=this._parentFormField?.getLabelId()||null,i=e?e+" ":"";return this.ariaLabelledby?i+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){e.length?this._elementRef.nativeElement.setAttribute("aria-describedby",e.join(" ")):this._elementRef.nativeElement.removeAttribute("aria-describedby")}onContainerClick(){this.focus(),this.open()}get shouldLabelFloat(){return this.panelOpen||!this.empty||this.focused&&!!this.placeholder}static \u0275fac=function(i){return new(i||t)};static \u0275cmp=E({type:t,selectors:[["mat-select"]],contentQueries:function(i,r,o){if(i&1&&(xe(o,JB,5),xe(o,Sn,5),xe(o,ou,5)),i&2){let a;j(a=H())&&(r.customTrigger=a.first),j(a=H())&&(r.options=a),j(a=H())&&(r.optionGroups=a)}},viewQuery:function(i,r){if(i&1&&(ie(_ee,5),ie(bee,5),ie(sx,5)),i&2){let o;j(o=H())&&(r.trigger=o.first),j(o=H())&&(r.panel=o.first),j(o=H())&&(r._overlayDir=o.first)}},hostAttrs:["role","combobox","aria-haspopup","listbox",1,"mat-mdc-select"],hostVars:21,hostBindings:function(i,r){i&1&&S("keydown",function(a){return r._handleKeydown(a)})("focus",function(){return r._onFocus()})("blur",function(){return r._onBlur()}),i&2&&(X("id",r.id)("tabindex",r.disabled?-1:r.tabIndex)("aria-controls",r.panelOpen?r.id+"-panel":null)("aria-expanded",r.panelOpen)("aria-label",r.ariaLabel||null)("aria-required",r.required.toString())("aria-disabled",r.disabled.toString())("aria-invalid",r.errorState)("aria-activedescendant",r._getAriaActiveDescendant()),G("mat-mdc-select-disabled",r.disabled)("mat-mdc-select-invalid",r.errorState)("mat-mdc-select-required",r.required)("mat-mdc-select-empty",r.empty)("mat-mdc-select-multiple",r.multiple)("mat-select-open",r.panelOpen))},inputs:{userAriaDescribedBy:[0,"aria-describedby","userAriaDescribedBy"],panelClass:"panelClass",disabled:[2,"disabled","disabled",L],disableRipple:[2,"disableRipple","disableRipple",L],tabIndex:[2,"tabIndex","tabIndex",e=>e==null?0:ht(e)],hideSingleSelectionIndicator:[2,"hideSingleSelectionIndicator","hideSingleSelectionIndicator",L],placeholder:"placeholder",required:[2,"required","required",L],multiple:[2,"multiple","multiple",L],disableOptionCentering:[2,"disableOptionCentering","disableOptionCentering",L],compareWith:"compareWith",value:"value",ariaLabel:[0,"aria-label","ariaLabel"],ariaLabelledby:[0,"aria-labelledby","ariaLabelledby"],errorStateMatcher:"errorStateMatcher",typeaheadDebounceInterval:[2,"typeaheadDebounceInterval","typeaheadDebounceInterval",ht],sortComparator:"sortComparator",id:"id",panelWidth:"panelWidth",canSelectNullableOptions:[2,"canSelectNullableOptions","canSelectNullableOptions",L]},outputs:{openedChange:"openedChange",_openedStream:"opened",_closedStream:"closed",selectionChange:"selectionChange",valueChange:"valueChange"},exportAs:["matSelect"],features:[Ce([{provide:Ka,useExisting:t},{provide:ru,useExisting:t}]),Oe],ngContentSelectors:yee,decls:11,vars:9,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","","cdkConnectedOverlayLockPosition","","cdkConnectedOverlayHasBackdrop","","cdkConnectedOverlayBackdropClass","cdk-overlay-transparent-backdrop",3,"detach","backdropClick","overlayKeydown","cdkConnectedOverlayDisableClose","cdkConnectedOverlayPanelClass","cdkConnectedOverlayScrollStrategy","cdkConnectedOverlayOrigin","cdkConnectedOverlayPositions","cdkConnectedOverlayWidth","cdkConnectedOverlayFlexibleDimensions"],[1,"mat-mdc-select-min-line"],["role","listbox","tabindex","-1",3,"keydown","ngClass"]],template:function(i,r){if(i&1){let o=q();Ee(vee),m(0,"div",2,0),S("click",function(){return k(o),T(r.open())}),m(3,"div",3),V(4,xee,2,1,"span",4)(5,Dee,3,1,"span",5),h(),m(6,"div",6)(7,"div",7),ii(),m(8,"svg",8),M(9,"path",9),h()()()(),A(10,Mee,3,10,"ng-template",10),S("detach",function(){return k(o),T(r.close())})("backdropClick",function(){return k(o),T(r.close())})("overlayKeydown",function(s){return k(o),T(r._handleOverlayKeydown(s))})}if(i&2){let o=Te(1);g(3),X("id",r._valueId),g(),B(r.empty?4:5),g(6),v("cdkConnectedOverlayDisableClose",!0)("cdkConnectedOverlayPanelClass",r._overlayPanelClass)("cdkConnectedOverlayScrollStrategy",r._scrollStrategy)("cdkConnectedOverlayOrigin",r._preferredOverlayOrigin||o)("cdkConnectedOverlayPositions",r._positions)("cdkConnectedOverlayWidth",r._overlayWidth)("cdkConnectedOverlayFlexibleDimensions",!0)}},dependencies:[wh,sx,zd],styles:[`@keyframes _mat-select-enter{from{opacity:0;transform:scaleY(0.8)}to{opacity:1;transform:none}}@keyframes _mat-select-exit{from{opacity:1}to{opacity:0}}.mat-mdc-select{display:inline-block;width:100%;outline:none;-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;color:var(--mat-select-enabled-trigger-text-color, var(--mat-sys-on-surface));font-family:var(--mat-select-trigger-text-font, var(--mat-sys-body-large-font));line-height:var(--mat-select-trigger-text-line-height, var(--mat-sys-body-large-line-height));font-size:var(--mat-select-trigger-text-size, var(--mat-sys-body-large-size));font-weight:var(--mat-select-trigger-text-weight, var(--mat-sys-body-large-weight));letter-spacing:var(--mat-select-trigger-text-tracking, var(--mat-sys-body-large-tracking))}div.mat-mdc-select-panel{box-shadow:var(--mat-select-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-mdc-select-disabled{color:var(--mat-select-disabled-trigger-text-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent))}.mat-mdc-select-disabled .mat-mdc-select-placeholder{color:var(--mat-select-disabled-trigger-text-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent))}.mat-mdc-select-trigger{display:inline-flex;align-items:center;cursor:pointer;position:relative;box-sizing:border-box;width:100%}.mat-mdc-select-disabled .mat-mdc-select-trigger{-webkit-user-select:none;user-select:none;cursor:default}.mat-mdc-select-value{width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.mat-mdc-select-value-text{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.mat-mdc-select-arrow-wrapper{height:24px;flex-shrink:0;display:inline-flex;align-items:center}.mat-form-field-appearance-fill .mdc-text-field--no-label .mat-mdc-select-arrow-wrapper{transform:none}.mat-mdc-form-field .mat-mdc-select.mat-mdc-select-invalid .mat-mdc-select-arrow,.mat-form-field-invalid:not(.mat-form-field-disabled) .mat-mdc-form-field-infix::after{color:var(--mat-select-invalid-arrow-color, var(--mat-sys-error))}.mat-mdc-select-arrow{width:10px;height:5px;position:relative;color:var(--mat-select-enabled-arrow-color, var(--mat-sys-on-surface-variant))}.mat-mdc-form-field.mat-focused .mat-mdc-select-arrow{color:var(--mat-select-focused-arrow-color, var(--mat-sys-primary))}.mat-mdc-form-field .mat-mdc-select.mat-mdc-select-disabled .mat-mdc-select-arrow{color:var(--mat-select-disabled-arrow-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent))}.mat-select-open .mat-mdc-select-arrow{transform:rotate(180deg)}.mat-form-field-animations-enabled .mat-mdc-select-arrow{transition:transform 80ms linear}.mat-mdc-select-arrow svg{fill:currentColor;position:absolute;top:50%;left:50%;transform:translate(-50%, -50%)}@media(forced-colors: active){.mat-mdc-select-arrow svg{fill:CanvasText}.mat-mdc-select-disabled .mat-mdc-select-arrow svg{fill:GrayText}}div.mat-mdc-select-panel{width:100%;max-height:275px;outline:0;overflow:auto;padding:8px 0;border-radius:4px;box-sizing:border-box;position:relative;background-color:var(--mat-select-panel-background-color, var(--mat-sys-surface-container))}@media(forced-colors: active){div.mat-mdc-select-panel{outline:solid 1px}}.cdk-overlay-pane:not(.mat-mdc-select-panel-above) div.mat-mdc-select-panel{border-top-left-radius:0;border-top-right-radius:0;transform-origin:top center}.mat-mdc-select-panel-above div.mat-mdc-select-panel{border-bottom-left-radius:0;border-bottom-right-radius:0;transform-origin:bottom center}.mat-select-panel-animations-enabled{animation:_mat-select-enter 120ms cubic-bezier(0, 0, 0.2, 1)}.mat-select-panel-animations-enabled.mat-select-panel-exit{animation:_mat-select-exit 100ms linear}.mat-mdc-select-placeholder{transition:color 400ms 133.3333333333ms cubic-bezier(0.25, 0.8, 0.25, 1);color:var(--mat-select-placeholder-text-color, var(--mat-sys-on-surface-variant))}.mat-mdc-form-field:not(.mat-form-field-animations-enabled) .mat-mdc-select-placeholder,._mat-animation-noopable .mat-mdc-select-placeholder{transition:none}.mat-form-field-hide-placeholder .mat-mdc-select-placeholder{color:rgba(0,0,0,0);-webkit-text-fill-color:rgba(0,0,0,0);transition:none;display:block}.mat-mdc-form-field-type-mat-select:not(.mat-form-field-disabled) .mat-mdc-text-field-wrapper{cursor:pointer}.mat-mdc-form-field-type-mat-select.mat-form-field-appearance-fill .mat-mdc-floating-label{max-width:calc(100% - 18px)}.mat-mdc-form-field-type-mat-select.mat-form-field-appearance-fill .mdc-floating-label--float-above{max-width:calc(100%/0.75 - 24px)}.mat-mdc-form-field-type-mat-select.mat-form-field-appearance-outline .mdc-notched-outline__notch{max-width:calc(100% - 60px)}.mat-mdc-form-field-type-mat-select.mat-form-field-appearance-outline .mdc-text-field--label-floating .mdc-notched-outline__notch{max-width:calc(100% - 24px)}.mat-mdc-select-min-line:empty::before{content:" ";white-space:pre;width:1px;display:inline-block;visibility:hidden}.mat-form-field-appearance-fill .mat-mdc-select-arrow-wrapper{transform:var(--mat-select-arrow-transform, translateY(-8px))} +`],encapsulation:2,changeDetection:0})}return t})();var Rc=(()=>{class t{static \u0275fac=function(i){return new(i||t)};static \u0275mod=ee({type:t});static \u0275inj=J({providers:[XB],imports:[cr,ch,De,Tr,ai,ch,De]})}return t})();var Eee=["mat-icon-button",""],See=["*"],kee=new O("MAT_BUTTON_CONFIG");function e3(t){return t==null?void 0:ht(t)}var wx=(()=>{class t{_elementRef=u(Y);_ngZone=u(ae);_animationsDisabled=Qe();_config=u(kee,{optional:!0});_focusMonitor=u(oi);_cleanupClick;_renderer=u(ze);_rippleLoader=u(iy);_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(){u(ft).load(Oi);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",i){e?this._focusMonitor.focusVia(this._elementRef.nativeElement,e,i):this._elementRef.nativeElement.focus(i)}_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(i){return new(i||t)};static \u0275dir=P({type:t,hostAttrs:[1,"mat-mdc-button-base"],hostVars:13,hostBindings:function(i,r){i&2&&(X("disabled",r._getDisabledAttribute())("aria-disabled",r._getAriaDisabled())("tabindex",r._getTabIndex()),at(r.color?"mat-"+r.color:""),G("mat-mdc-button-disabled",r.disabled)("mat-mdc-button-disabled-interactive",r.disabledInteractive)("mat-unthemed",!r.color)("_mat-animation-noopable",r._animationsDisabled))},inputs:{color:"color",disableRipple:[2,"disableRipple","disableRipple",L],disabled:[2,"disabled","disabled",L],ariaDisabled:[2,"aria-disabled","ariaDisabled",L],disabledInteractive:[2,"disabledInteractive","disabledInteractive",L],tabIndex:[2,"tabIndex","tabIndex",e3],_tabindex:[2,"tabindex","_tabindex",e3]}})}return t})(),Ft=(()=>{class t extends wx{constructor(){super(),this._rippleLoader.configureRipple(this._elementRef.nativeElement,{centered:!0})}static \u0275fac=function(i){return new(i||t)};static \u0275cmp=E({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:[le],attrs:Eee,ngContentSelectors:See,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(i,r){i&1&&(Ee(),ni(0,"span",0),ne(1),ni(2,"span",1)(3,"span",2))},styles:[`.mat-mdc-icon-button{-webkit-user-select:none;user-select:none;display:inline-block;position:relative;box-sizing:border-box;border:none;outline:none;background-color:rgba(0,0,0,0);fill:currentColor;text-decoration:none;cursor:pointer;z-index:0;overflow:visible;border-radius:var(--mat-icon-button-container-shape, var(--mat-sys-corner-full, 50%));flex-shrink:0;text-align:center;width:var(--mat-icon-button-state-layer-size, 40px);height:var(--mat-icon-button-state-layer-size, 40px);padding:calc(calc(var(--mat-icon-button-state-layer-size, 40px) - var(--mat-icon-button-icon-size, 24px)) / 2);font-size:var(--mat-icon-button-icon-size, 24px);color:var(--mat-icon-button-icon-color, var(--mat-sys-on-surface-variant));-webkit-tap-highlight-color:rgba(0,0,0,0)}.mat-mdc-icon-button .mat-mdc-button-ripple,.mat-mdc-icon-button .mat-mdc-button-persistent-ripple,.mat-mdc-icon-button .mat-mdc-button-persistent-ripple::before{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none;border-radius:inherit}.mat-mdc-icon-button .mat-mdc-button-ripple{overflow:hidden}.mat-mdc-icon-button .mat-mdc-button-persistent-ripple::before{content:"";opacity:0}.mat-mdc-icon-button .mdc-button__label,.mat-mdc-icon-button .mat-icon{z-index:1;position:relative}.mat-mdc-icon-button .mat-focus-indicator{top:0;left:0;right:0;bottom:0;position:absolute;border-radius:inherit}.mat-mdc-icon-button:focus>.mat-focus-indicator::before{content:"";border-radius:inherit}.mat-mdc-icon-button .mat-ripple-element{background-color:var(--mat-icon-button-ripple-color, color-mix(in srgb, var(--mat-sys-on-surface-variant) calc(var(--mat-sys-pressed-state-layer-opacity) * 100%), transparent))}.mat-mdc-icon-button .mat-mdc-button-persistent-ripple::before{background-color:var(--mat-icon-button-state-layer-color, var(--mat-sys-on-surface-variant))}.mat-mdc-icon-button.mat-mdc-button-disabled .mat-mdc-button-persistent-ripple::before{background-color:var(--mat-icon-button-disabled-state-layer-color, var(--mat-sys-on-surface-variant))}.mat-mdc-icon-button:hover>.mat-mdc-button-persistent-ripple::before{opacity:var(--mat-icon-button-hover-state-layer-opacity, var(--mat-sys-hover-state-layer-opacity))}.mat-mdc-icon-button.cdk-program-focused>.mat-mdc-button-persistent-ripple::before,.mat-mdc-icon-button.cdk-keyboard-focused>.mat-mdc-button-persistent-ripple::before,.mat-mdc-icon-button.mat-mdc-button-disabled-interactive:focus>.mat-mdc-button-persistent-ripple::before{opacity:var(--mat-icon-button-focus-state-layer-opacity, var(--mat-sys-focus-state-layer-opacity))}.mat-mdc-icon-button:active>.mat-mdc-button-persistent-ripple::before{opacity:var(--mat-icon-button-pressed-state-layer-opacity, var(--mat-sys-pressed-state-layer-opacity))}.mat-mdc-icon-button .mat-mdc-button-touch-target{position:absolute;top:50%;height:var(--mat-icon-button-touch-target-size, 48px);display:var(--mat-icon-button-touch-target-display, block);left:50%;width:var(--mat-icon-button-touch-target-size, 48px);transform:translate(-50%, -50%)}.mat-mdc-icon-button._mat-animation-noopable{transition:none !important;animation:none !important}.mat-mdc-icon-button[disabled],.mat-mdc-icon-button.mat-mdc-button-disabled{cursor:default;pointer-events:none;color:var(--mat-icon-button-disabled-icon-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent))}.mat-mdc-icon-button.mat-mdc-button-disabled-interactive{pointer-events:auto}.mat-mdc-icon-button img,.mat-mdc-icon-button svg{width:var(--mat-icon-button-icon-size, 24px);height:var(--mat-icon-button-icon-size, 24px);vertical-align:baseline}.mat-mdc-icon-button .mat-mdc-button-persistent-ripple{border-radius:var(--mat-icon-button-container-shape, var(--mat-sys-corner-full, 50%))}.mat-mdc-icon-button[hidden]{display:none}.mat-mdc-icon-button.mat-unthemed:not(.mdc-ripple-upgraded):focus::before,.mat-mdc-icon-button.mat-primary:not(.mdc-ripple-upgraded):focus::before,.mat-mdc-icon-button.mat-accent:not(.mdc-ripple-upgraded):focus::before,.mat-mdc-icon-button.mat-warn:not(.mdc-ripple-upgraded):focus::before{background:rgba(0,0,0,0);opacity:1} `,`@media(forced-colors: active){.mat-mdc-button:not(.mdc-button--outlined),.mat-mdc-unelevated-button:not(.mdc-button--outlined),.mat-mdc-raised-button:not(.mdc-button--outlined),.mat-mdc-outlined-button:not(.mdc-button--outlined),.mat-mdc-button-base.mat-tonal-button,.mat-mdc-icon-button.mat-mdc-icon-button,.mat-mdc-outlined-button .mdc-button__ripple{outline:solid 1px}} -`],encapsulation:2,changeDetection:0})}return t})();var kee=["tooltip"],mk=20;var hk=new O("mat-tooltip-scroll-strategy",{providedIn:"root",factory:()=>{let t=u(de);return()=>En(t,{scrollThrottle:mk})}});function i3(t){let n=u(de);return()=>En(n,{scrollThrottle:mk})}var pk={provide:hk,deps:[],useFactory:i3};function n3(){return{showDelay:0,hideDelay:0,touchendHideDelay:1500}}var r3=new O("mat-tooltip-default-options",{providedIn:"root",factory:n3});var e3="tooltip-panel",t3=ac({passive:!0}),Tee=8,Iee=8,Aee=24,Oee=200,Ao=(()=>{class t{_elementRef=u(Y);_ngZone=u(ae);_platform=u(qe);_ariaDescriber=u(nh);_focusMonitor=u(ti);_dir=u(Bt);_injector=u(de);_viewContainerRef=u(ot);_animationsDisabled=Ye();_defaultOptions=u(r3,{optional:!0});_overlayRef;_tooltipInstance;_overlayPanelClass;_portal;_position="below";_positionAtOrigin=!1;_disabled=!1;_tooltipClass;_viewInitialized=!1;_pointerExitEventsInitialized=!1;_tooltipComponent=o3;_viewportMargin=8;_currentPosition;_cssClassPrefix="mat-mdc";_ariaDescriptionPending;_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=Ri(e),this._detach(),this._overlayRef=null}get disabled(){return this._disabled}set disabled(e){let i=Ri(e);this._disabled!==i&&(this._disabled=i,i?this.hide(0):this._setupPointerEnterEventsIfNeeded(),this._syncAriaDescription(this.message))}get showDelay(){return this._showDelay}set showDelay(e){this._showDelay=Bn(e)}_showDelay;get hideDelay(){return this._hideDelay}set hideDelay(e){this._hideDelay=Bn(e),this._tooltipInstance&&(this._tooltipInstance._mouseLeaveHideDelay=this._hideDelay)}_hideDelay;touchGestures="auto";get message(){return this._message}set message(e){let i=this._message;this._message=e!=null?String(e).trim():"",!this._message&&this._isTooltipVisible()?this.hide(0):(this._setupPointerEnterEventsIfNeeded(),this._updateTooltipMessage()),this._syncAriaDescription(i)}_message="";get tooltipClass(){return this._tooltipClass}set tooltipClass(e){this._tooltipClass=e,this._tooltipInstance&&this._setTooltipClass(this._tooltipClass)}_passiveListeners=[];_touchstartTimeout=null;_destroyed=new z;_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=Tee}ngAfterViewInit(){this._viewInitialized=!0,this._setupPointerEnterEventsIfNeeded(),this._focusMonitor.monitor(this._elementRef).pipe(we(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._passiveListeners.forEach(([i,r])=>{e.removeEventListener(i,r,t3)}),this._passiveListeners.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,i){if(this.disabled||!this.message||this._isTooltipVisible()){this._tooltipInstance?._cancelPendingAnimations();return}let r=this._createOverlay(i);this._detach(),this._portal=this._portal||new to(this._tooltipComponent,this._viewContainerRef);let o=this._tooltipInstance=r.attach(this._portal).instance;o._triggerElement=this._elementRef.nativeElement,o._mouseLeaveHideDelay=this._hideDelay,o.afterHidden().pipe(we(this._destroyed)).subscribe(()=>this._detach()),this._setTooltipClass(this._tooltipClass),this._updateTooltipMessage(),o.show(e)}hide(e=this.hideDelay){let i=this._tooltipInstance;i&&(i.isVisible()?i.hide(e):(i._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 a=this._overlayRef.getConfig().positionStrategy;if((!this.positionAtOrigin||!e)&&a._origin instanceof Y)return this._overlayRef;this._detach()}let i=this._injector.get(Ds).getAncestorScrollContainers(this._elementRef),r=`${this._cssClassPrefix}-${e3}`,o=Na(this._injector,this.positionAtOrigin?e||this._elementRef:this._elementRef).withTransformOriginOn(`.${this._cssClassPrefix}-tooltip`).withFlexibleDimensions(!1).withViewportMargin(this._viewportMargin).withScrollableContainers(i);return o.positionChanges.pipe(we(this._destroyed)).subscribe(a=>{this._updateCurrentPositionClass(a.connectionPair),this._tooltipInstance&&a.scrollableViewProperties.isOverlayClipped&&this._tooltipInstance.isVisible()&&this._ngZone.run(()=>this.hide(0))}),this._overlayRef=zr(this._injector,{direction:this._dir,positionStrategy:o,panelClass:this._overlayPanelClass?[...this._overlayPanelClass,r]:r,scrollStrategy:this._injector.get(hk)(),disableAnimations:this._animationsDisabled}),this._updatePosition(this._overlayRef),this._overlayRef.detachments().pipe(we(this._destroyed)).subscribe(()=>this._detach()),this._overlayRef.outsidePointerEvents().pipe(we(this._destroyed)).subscribe(()=>this._tooltipInstance?._handleBodyInteraction()),this._overlayRef.keydownEvents().pipe(we(this._destroyed)).subscribe(a=>{this._isTooltipVisible()&&a.keyCode===27&&!Lt(a)&&(a.preventDefault(),a.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(we(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 i=e.getConfig().positionStrategy,r=this._getOrigin(),o=this._getOverlayPosition();i.withPositions([this._addOffset(k(k({},r.main),o.main)),this._addOffset(k(k({},r.fallback),o.fallback))])}_addOffset(e){let i=Iee,r=!this._dir||this._dir.value=="ltr";return e.originY==="top"?e.offsetY=-i:e.originY==="bottom"?e.offsetY=i:e.originX==="start"?e.offsetX=r?-i:i:e.originX==="end"&&(e.offsetX=r?i:-i),e}_getOrigin(){let e=!this._dir||this._dir.value=="ltr",i=this.position,r;i=="above"||i=="below"?r={originX:"center",originY:i=="above"?"top":"bottom"}:i=="before"||i=="left"&&e||i=="right"&&!e?r={originX:"start",originY:"center"}:(i=="after"||i=="right"&&e||i=="left"&&!e)&&(r={originX:"end",originY:"center"});let{x:o,y:a}=this._invertPosition(r.originX,r.originY);return{main:r,fallback:{originX:o,originY:a}}}_getOverlayPosition(){let e=!this._dir||this._dir.value=="ltr",i=this.position,r;i=="above"?r={overlayX:"center",overlayY:"bottom"}:i=="below"?r={overlayX:"center",overlayY:"top"}:i=="before"||i=="left"&&e||i=="right"&&!e?r={overlayX:"end",overlayY:"center"}:(i=="after"||i=="right"&&e||i=="left"&&!e)&&(r={overlayX:"start",overlayY:"center"});let{x:o,y:a}=this._invertPosition(r.overlayX,r.overlayY);return{main:r,fallback:{overlayX:o,overlayY:a}}}_updateTooltipMessage(){this._tooltipInstance&&(this._tooltipInstance.message=this.message,this._tooltipInstance._markForCheck(),gt(()=>{this._tooltipInstance&&this._overlayRef.updatePosition()},{injector:this._injector}))}_setTooltipClass(e){this._tooltipInstance&&(this._tooltipInstance.tooltipClass=e,this._tooltipInstance._markForCheck())}_invertPosition(e,i){return this.position==="above"||this.position==="below"?i==="top"?i="bottom":i==="bottom"&&(i="top"):e==="end"?e="start":e==="start"&&(e="end"),{x:e,y:i}}_updateCurrentPositionClass(e){let{overlayY:i,originX:r,originY:o}=e,a;if(i==="center"?this._dir&&this._dir.value==="rtl"?a=r==="end"?"left":"right":a=r==="start"?"left":"right":a=i==="bottom"&&o==="top"?"above":"below",a!==this._currentPosition){let s=this._overlayRef;if(s){let l=`${this._cssClassPrefix}-${e3}-`;s.removePanelClass(l+this._currentPosition),s.addPanelClass(l+a)}this._currentPosition=a}}_setupPointerEnterEventsIfNeeded(){this._disabled||!this.message||!this._viewInitialized||this._passiveListeners.length||(this._platformSupportsMouseEvents()?this._passiveListeners.push(["mouseenter",e=>{this._setupPointerExitEventsIfNeeded();let i;e.x!==void 0&&e.y!==void 0&&(i=e),this.show(void 0,i)}]):this.touchGestures!=="off"&&(this._disableNativeGesturesIfNecessary(),this._passiveListeners.push(["touchstart",e=>{let i=e.targetTouches?.[0],r=i?{x:i.clientX,y:i.clientY}:void 0;this._setupPointerExitEventsIfNeeded(),this._touchstartTimeout&&clearTimeout(this._touchstartTimeout);let o=500;this._touchstartTimeout=setTimeout(()=>{this._touchstartTimeout=null,this.show(void 0,r)},this._defaultOptions?.touchLongPressShowDelay??o)}])),this._addListeners(this._passiveListeners))}_setupPointerExitEventsIfNeeded(){if(this._pointerExitEventsInitialized)return;this._pointerExitEventsInitialized=!0;let e=[];if(this._platformSupportsMouseEvents())e.push(["mouseleave",i=>{let r=i.relatedTarget;(!r||!this._overlayRef?.overlayElement.contains(r))&&this.hide()}],["wheel",i=>this._wheelListener(i)]);else if(this.touchGestures!=="off"){this._disableNativeGesturesIfNecessary();let i=()=>{this._touchstartTimeout&&clearTimeout(this._touchstartTimeout),this.hide(this._defaultOptions?.touchendHideDelay)};e.push(["touchend",i],["touchcancel",i])}this._addListeners(e),this._passiveListeners.push(...e)}_addListeners(e){e.forEach(([i,r])=>{this._elementRef.nativeElement.addEventListener(i,r,t3)})}_platformSupportsMouseEvents(){return!this._platform.IOS&&!this._platform.ANDROID}_wheelListener(e){if(this._isTooltipVisible()){let i=this._injector.get(_e).elementFromPoint(e.clientX,e.clientY),r=this._elementRef.nativeElement;i!==r&&!r.contains(i)&&this.hide()}}_disableNativeGesturesIfNecessary(){let e=this.touchGestures;if(e!=="off"){let i=this._elementRef.nativeElement,r=i.style;(e==="on"||i.nodeName!=="INPUT"&&i.nodeName!=="TEXTAREA")&&(r.userSelect=r.msUserSelect=r.webkitUserSelect=r.MozUserSelect="none"),(e==="on"||!i.draggable)&&(r.webkitUserDrag="none"),r.touchAction="none",r.webkitTapHighlightColor="transparent"}}_syncAriaDescription(e){this._ariaDescriptionPending||(this._ariaDescriptionPending=!0,this._ariaDescriber.removeDescription(this._elementRef.nativeElement,e,"tooltip"),this._isDestroyed||gt({write:()=>{this._ariaDescriptionPending=!1,this.message&&!this.disabled&&this._ariaDescriber.describe(this._elementRef.nativeElement,this.message,"tooltip")}},{injector:this._injector}))}static \u0275fac=function(i){return new(i||t)};static \u0275dir=P({type:t,selectors:[["","matTooltip",""]],hostAttrs:[1,"mat-mdc-tooltip-trigger"],hostVars:2,hostBindings:function(i,r){i&2&&G("mat-mdc-tooltip-disabled",r.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 t})(),o3=(()=>{class t{_changeDetectorRef=u(ye);_elementRef=u(Y);_isMultiline=!1;message;tooltipClass;_showTimeoutId;_hideTimeoutId;_triggerElement;_mouseLeaveHideDelay;_animationsDisabled=Ye();_tooltip;_closeOnInteraction=!1;_isVisible=!1;_onHide=new z;_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>Aee&&e.width>=Oee}_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 i=this._tooltip.nativeElement,r=this._showAnimation,o=this._hideAnimation;if(i.classList.remove(e?o:r),i.classList.add(e?r:o),this._isVisible!==e&&(this._isVisible=e,this._changeDetectorRef.markForCheck()),e&&!this._animationsDisabled&&typeof getComputedStyle=="function"){let a=getComputedStyle(i);(a.getPropertyValue("animation-duration")==="0s"||a.getPropertyValue("animation-name")==="none")&&(this._animationsDisabled=!0)}e&&this._onShow(),this._animationsDisabled&&(i.classList.add("_mat-animation-noopable"),this._finalizeAnimation(e))}static \u0275fac=function(i){return new(i||t)};static \u0275cmp=E({type:t,selectors:[["mat-tooltip-component"]],viewQuery:function(i,r){if(i&1&&ie(kee,7),i&2){let o;j(o=H())&&(r._tooltip=o.first)}},hostAttrs:["aria-hidden","true"],hostBindings:function(i,r){i&1&&S("mouseleave",function(a){return r._handleMouseLeave(a)})},decls:4,vars:4,consts:[["tooltip",""],[1,"mdc-tooltip","mat-mdc-tooltip",3,"animationend","ngClass"],[1,"mat-mdc-tooltip-surface","mdc-tooltip__surface"]],template:function(i,r){if(i&1){let o=q();m(0,"div",1,0),S("animationend",function(s){return T(o),I(r._handleAnimationEnd(s))}),m(2,"div",2),g(3),h()()}i&2&&(G("mdc-tooltip--multiline",r._isMultiline),v("ngClass",r.tooltipClass),f(3),N(r.message))},dependencies:[Bd],styles:[`.mat-mdc-tooltip{position:relative;transform:scale(0);display:inline-flex}.mat-mdc-tooltip::before{content:"";top:0;right:0;bottom:0;left:0;z-index:-1;position:absolute}.mat-mdc-tooltip-panel-below .mat-mdc-tooltip::before{top:-8px}.mat-mdc-tooltip-panel-above .mat-mdc-tooltip::before{bottom:-8px}.mat-mdc-tooltip-panel-right .mat-mdc-tooltip::before{left:-8px}.mat-mdc-tooltip-panel-left .mat-mdc-tooltip::before{right:-8px}.mat-mdc-tooltip._mat-animation-noopable{animation:none;transform:scale(1)}.mat-mdc-tooltip-surface{word-break:normal;overflow-wrap:anywhere;padding:4px 8px;min-width:40px;max-width:200px;min-height:24px;max-height:40vh;box-sizing:border-box;overflow:hidden;text-align:center;will-change:transform,opacity;background-color:var(--mat-tooltip-container-color, var(--mat-sys-inverse-surface));color:var(--mat-tooltip-supporting-text-color, var(--mat-sys-inverse-on-surface));border-radius:var(--mat-tooltip-container-shape, var(--mat-sys-corner-extra-small));font-family:var(--mat-tooltip-supporting-text-font, var(--mat-sys-body-small-font));font-size:var(--mat-tooltip-supporting-text-size, var(--mat-sys-body-small-size));font-weight:var(--mat-tooltip-supporting-text-weight, var(--mat-sys-body-small-weight));line-height:var(--mat-tooltip-supporting-text-line-height, var(--mat-sys-body-small-line-height));letter-spacing:var(--mat-tooltip-supporting-text-tracking, var(--mat-sys-body-small-tracking))}.mat-mdc-tooltip-surface::before{position:absolute;box-sizing:border-box;width:100%;height:100%;top:0;left:0;border:1px solid rgba(0,0,0,0);border-radius:inherit;content:"";pointer-events:none}.mdc-tooltip--multiline .mat-mdc-tooltip-surface{text-align:left}[dir=rtl] .mdc-tooltip--multiline .mat-mdc-tooltip-surface{text-align:right}.mat-mdc-tooltip-panel{line-height:normal}.mat-mdc-tooltip-panel.mat-mdc-tooltip-panel-non-interactive{pointer-events:none}@keyframes mat-mdc-tooltip-show{0%{opacity:0;transform:scale(0.8)}100%{opacity:1;transform:scale(1)}}@keyframes mat-mdc-tooltip-hide{0%{opacity:1;transform:scale(1)}100%{opacity:0;transform:scale(0.8)}}.mat-mdc-tooltip-show{animation:mat-mdc-tooltip-show 150ms cubic-bezier(0, 0, 0.2, 1) forwards}.mat-mdc-tooltip-hide{animation:mat-mdc-tooltip-hide 75ms cubic-bezier(0.4, 0, 1, 1) forwards} -`],encapsulation:2,changeDetection:0})}return t})();var $r=(()=>{class t{static \u0275fac=function(i){return new(i||t)};static \u0275mod=ee({type:t});static \u0275inj=J({providers:[pk],imports:[cl,nr,De,De,Cr]})}return t})();var Ree=["matButton",""],l3=[[["",8,"material-icons",3,"iconPositionEnd",""],["mat-icon",3,"iconPositionEnd",""],["","matButtonIcon","",3,"iconPositionEnd",""]],"*",[["","iconPositionEnd","",8,"material-icons"],["mat-icon","iconPositionEnd",""],["","matButtonIcon","","iconPositionEnd",""]]],c3=[".material-icons:not([iconPositionEnd]), mat-icon:not([iconPositionEnd]), [matButtonIcon]:not([iconPositionEnd])","*",".material-icons[iconPositionEnd], mat-icon[iconPositionEnd], [matButtonIcon][iconPositionEnd]"],Pee=["mat-fab",""];var a3=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"]]]),Mt=(()=>{class t extends xx{get appearance(){return this._appearance}set appearance(e){this.setAppearance(e||this._config?.defaultAppearance||"text")}_appearance=null;constructor(){super();let e=Fee(this._elementRef.nativeElement);e&&this.setAppearance(e)}setAppearance(e){if(e===this._appearance)return;let i=this._elementRef.nativeElement.classList,r=this._appearance?a3.get(this._appearance):null,o=a3.get(e);r&&i.remove(...r),i.add(...o),this._appearance=e}static \u0275fac=function(i){return new(i||t)};static \u0275cmp=E({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:[le],attrs:Ree,ngContentSelectors:c3,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(i,r){i&1&&(Se(l3),Xt(0,"span",0),ne(1),pt(2,"span",1),ne(3,1),_t(),ne(4,2),Xt(5,"span",2)(6,"span",3)),i&2&&G("mdc-button__ripple",!r._isFab)("mdc-fab__ripple",r._isFab)},styles:[`.mat-mdc-button-base{text-decoration:none}.mat-mdc-button-base .mat-icon{min-height:fit-content;flex-shrink:0}.mdc-button{-webkit-user-select:none;user-select:none;position:relative;display:inline-flex;align-items:center;justify-content:center;box-sizing:border-box;min-width:64px;border:none;outline:none;line-height:inherit;-webkit-appearance:none;overflow:visible;vertical-align:middle;background:rgba(0,0,0,0);padding:0 8px}.mdc-button::-moz-focus-inner{padding:0;border:0}.mdc-button:active{outline:none}.mdc-button:hover{cursor:pointer}.mdc-button:disabled{cursor:default;pointer-events:none}.mdc-button[hidden]{display:none}.mdc-button .mdc-button__label{position:relative}.mat-mdc-button{padding:0 var(--mat-button-text-horizontal-padding, 12px);height:var(--mat-button-text-container-height, 40px);font-family:var(--mat-button-text-label-text-font, var(--mat-sys-label-large-font));font-size:var(--mat-button-text-label-text-size, var(--mat-sys-label-large-size));letter-spacing:var(--mat-button-text-label-text-tracking, var(--mat-sys-label-large-tracking));text-transform:var(--mat-button-text-label-text-transform);font-weight:var(--mat-button-text-label-text-weight, var(--mat-sys-label-large-weight))}.mat-mdc-button,.mat-mdc-button .mdc-button__ripple{border-radius:var(--mat-button-text-container-shape, var(--mat-sys-corner-full))}.mat-mdc-button:not(:disabled){color:var(--mat-button-text-label-text-color, var(--mat-sys-primary))}.mat-mdc-button[disabled],.mat-mdc-button.mat-mdc-button-disabled{cursor:default;pointer-events:none;color:var(--mat-button-text-disabled-label-text-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent))}.mat-mdc-button.mat-mdc-button-disabled-interactive{pointer-events:auto}.mat-mdc-button:has(.material-icons,mat-icon,[matButtonIcon]){padding:0 var(--mat-button-text-with-icon-horizontal-padding, 16px)}.mat-mdc-button>.mat-icon{margin-right:var(--mat-button-text-icon-spacing, 8px);margin-left:var(--mat-button-text-icon-offset, -4px)}[dir=rtl] .mat-mdc-button>.mat-icon{margin-right:var(--mat-button-text-icon-offset, -4px);margin-left:var(--mat-button-text-icon-spacing, 8px)}.mat-mdc-button .mdc-button__label+.mat-icon{margin-right:var(--mat-button-text-icon-offset, -4px);margin-left:var(--mat-button-text-icon-spacing, 8px)}[dir=rtl] .mat-mdc-button .mdc-button__label+.mat-icon{margin-right:var(--mat-button-text-icon-spacing, 8px);margin-left:var(--mat-button-text-icon-offset, -4px)}.mat-mdc-button .mat-ripple-element{background-color:var(--mat-button-text-ripple-color, color-mix(in srgb, var(--mat-sys-primary) calc(var(--mat-sys-pressed-state-layer-opacity) * 100%), transparent))}.mat-mdc-button .mat-mdc-button-persistent-ripple::before{background-color:var(--mat-button-text-state-layer-color, var(--mat-sys-primary))}.mat-mdc-button.mat-mdc-button-disabled .mat-mdc-button-persistent-ripple::before{background-color:var(--mat-button-text-disabled-state-layer-color, var(--mat-sys-on-surface-variant))}.mat-mdc-button:hover>.mat-mdc-button-persistent-ripple::before{opacity:var(--mat-button-text-hover-state-layer-opacity, var(--mat-sys-hover-state-layer-opacity))}.mat-mdc-button.cdk-program-focused>.mat-mdc-button-persistent-ripple::before,.mat-mdc-button.cdk-keyboard-focused>.mat-mdc-button-persistent-ripple::before,.mat-mdc-button.mat-mdc-button-disabled-interactive:focus>.mat-mdc-button-persistent-ripple::before{opacity:var(--mat-button-text-focus-state-layer-opacity, var(--mat-sys-focus-state-layer-opacity))}.mat-mdc-button:active>.mat-mdc-button-persistent-ripple::before{opacity:var(--mat-button-text-pressed-state-layer-opacity, var(--mat-sys-pressed-state-layer-opacity))}.mat-mdc-button .mat-mdc-button-touch-target{position:absolute;top:50%;height:var(--mat-button-text-touch-target-size, 48px);display:var(--mat-button-text-touch-target-display, block);left:0;right:0;transform:translateY(-50%)}.mat-mdc-unelevated-button{transition:box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);height:var(--mat-button-filled-container-height, 40px);font-family:var(--mat-button-filled-label-text-font, var(--mat-sys-label-large-font));font-size:var(--mat-button-filled-label-text-size, var(--mat-sys-label-large-size));letter-spacing:var(--mat-button-filled-label-text-tracking, var(--mat-sys-label-large-tracking));text-transform:var(--mat-button-filled-label-text-transform);font-weight:var(--mat-button-filled-label-text-weight, var(--mat-sys-label-large-weight));padding:0 var(--mat-button-filled-horizontal-padding, 24px)}.mat-mdc-unelevated-button>.mat-icon{margin-right:var(--mat-button-filled-icon-spacing, 8px);margin-left:var(--mat-button-filled-icon-offset, -8px)}[dir=rtl] .mat-mdc-unelevated-button>.mat-icon{margin-right:var(--mat-button-filled-icon-offset, -8px);margin-left:var(--mat-button-filled-icon-spacing, 8px)}.mat-mdc-unelevated-button .mdc-button__label+.mat-icon{margin-right:var(--mat-button-filled-icon-offset, -8px);margin-left:var(--mat-button-filled-icon-spacing, 8px)}[dir=rtl] .mat-mdc-unelevated-button .mdc-button__label+.mat-icon{margin-right:var(--mat-button-filled-icon-spacing, 8px);margin-left:var(--mat-button-filled-icon-offset, -8px)}.mat-mdc-unelevated-button .mat-ripple-element{background-color:var(--mat-button-filled-ripple-color, color-mix(in srgb, var(--mat-sys-on-primary) calc(var(--mat-sys-pressed-state-layer-opacity) * 100%), transparent))}.mat-mdc-unelevated-button .mat-mdc-button-persistent-ripple::before{background-color:var(--mat-button-filled-state-layer-color, var(--mat-sys-on-primary))}.mat-mdc-unelevated-button.mat-mdc-button-disabled .mat-mdc-button-persistent-ripple::before{background-color:var(--mat-button-filled-disabled-state-layer-color, var(--mat-sys-on-surface-variant))}.mat-mdc-unelevated-button:hover>.mat-mdc-button-persistent-ripple::before{opacity:var(--mat-button-filled-hover-state-layer-opacity, var(--mat-sys-hover-state-layer-opacity))}.mat-mdc-unelevated-button.cdk-program-focused>.mat-mdc-button-persistent-ripple::before,.mat-mdc-unelevated-button.cdk-keyboard-focused>.mat-mdc-button-persistent-ripple::before,.mat-mdc-unelevated-button.mat-mdc-button-disabled-interactive:focus>.mat-mdc-button-persistent-ripple::before{opacity:var(--mat-button-filled-focus-state-layer-opacity, var(--mat-sys-focus-state-layer-opacity))}.mat-mdc-unelevated-button:active>.mat-mdc-button-persistent-ripple::before{opacity:var(--mat-button-filled-pressed-state-layer-opacity, var(--mat-sys-pressed-state-layer-opacity))}.mat-mdc-unelevated-button .mat-mdc-button-touch-target{position:absolute;top:50%;height:var(--mat-button-filled-touch-target-size, 48px);display:var(--mat-button-filled-touch-target-display, block);left:0;right:0;transform:translateY(-50%)}.mat-mdc-unelevated-button:not(:disabled){color:var(--mat-button-filled-label-text-color, var(--mat-sys-on-primary));background-color:var(--mat-button-filled-container-color, var(--mat-sys-primary))}.mat-mdc-unelevated-button,.mat-mdc-unelevated-button .mdc-button__ripple{border-radius:var(--mat-button-filled-container-shape, var(--mat-sys-corner-full))}.mat-mdc-unelevated-button[disabled],.mat-mdc-unelevated-button.mat-mdc-button-disabled{cursor:default;pointer-events:none;color:var(--mat-button-filled-disabled-label-text-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent));background-color:var(--mat-button-filled-disabled-container-color, color-mix(in srgb, var(--mat-sys-on-surface) 12%, transparent))}.mat-mdc-unelevated-button.mat-mdc-button-disabled-interactive{pointer-events:auto}.mat-mdc-raised-button{transition:box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);box-shadow:var(--mat-button-protected-container-elevation-shadow, var(--mat-sys-level1));height:var(--mat-button-protected-container-height, 40px);font-family:var(--mat-button-protected-label-text-font, var(--mat-sys-label-large-font));font-size:var(--mat-button-protected-label-text-size, var(--mat-sys-label-large-size));letter-spacing:var(--mat-button-protected-label-text-tracking, var(--mat-sys-label-large-tracking));text-transform:var(--mat-button-protected-label-text-transform);font-weight:var(--mat-button-protected-label-text-weight, var(--mat-sys-label-large-weight));padding:0 var(--mat-button-protected-horizontal-padding, 24px)}.mat-mdc-raised-button>.mat-icon{margin-right:var(--mat-button-protected-icon-spacing, 8px);margin-left:var(--mat-button-protected-icon-offset, -8px)}[dir=rtl] .mat-mdc-raised-button>.mat-icon{margin-right:var(--mat-button-protected-icon-offset, -8px);margin-left:var(--mat-button-protected-icon-spacing, 8px)}.mat-mdc-raised-button .mdc-button__label+.mat-icon{margin-right:var(--mat-button-protected-icon-offset, -8px);margin-left:var(--mat-button-protected-icon-spacing, 8px)}[dir=rtl] .mat-mdc-raised-button .mdc-button__label+.mat-icon{margin-right:var(--mat-button-protected-icon-spacing, 8px);margin-left:var(--mat-button-protected-icon-offset, -8px)}.mat-mdc-raised-button .mat-ripple-element{background-color:var(--mat-button-protected-ripple-color, color-mix(in srgb, var(--mat-sys-primary) calc(var(--mat-sys-pressed-state-layer-opacity) * 100%), transparent))}.mat-mdc-raised-button .mat-mdc-button-persistent-ripple::before{background-color:var(--mat-button-protected-state-layer-color, var(--mat-sys-primary))}.mat-mdc-raised-button.mat-mdc-button-disabled .mat-mdc-button-persistent-ripple::before{background-color:var(--mat-button-protected-disabled-state-layer-color, var(--mat-sys-on-surface-variant))}.mat-mdc-raised-button:hover>.mat-mdc-button-persistent-ripple::before{opacity:var(--mat-button-protected-hover-state-layer-opacity, var(--mat-sys-hover-state-layer-opacity))}.mat-mdc-raised-button.cdk-program-focused>.mat-mdc-button-persistent-ripple::before,.mat-mdc-raised-button.cdk-keyboard-focused>.mat-mdc-button-persistent-ripple::before,.mat-mdc-raised-button.mat-mdc-button-disabled-interactive:focus>.mat-mdc-button-persistent-ripple::before{opacity:var(--mat-button-protected-focus-state-layer-opacity, var(--mat-sys-focus-state-layer-opacity))}.mat-mdc-raised-button:active>.mat-mdc-button-persistent-ripple::before{opacity:var(--mat-button-protected-pressed-state-layer-opacity, var(--mat-sys-pressed-state-layer-opacity))}.mat-mdc-raised-button .mat-mdc-button-touch-target{position:absolute;top:50%;height:var(--mat-button-protected-touch-target-size, 48px);display:var(--mat-button-protected-touch-target-display, block);left:0;right:0;transform:translateY(-50%)}.mat-mdc-raised-button:not(:disabled){color:var(--mat-button-protected-label-text-color, var(--mat-sys-primary));background-color:var(--mat-button-protected-container-color, var(--mat-sys-surface))}.mat-mdc-raised-button,.mat-mdc-raised-button .mdc-button__ripple{border-radius:var(--mat-button-protected-container-shape, var(--mat-sys-corner-full))}.mat-mdc-raised-button:hover{box-shadow:var(--mat-button-protected-hover-container-elevation-shadow, var(--mat-sys-level2))}.mat-mdc-raised-button:focus{box-shadow:var(--mat-button-protected-focus-container-elevation-shadow, var(--mat-sys-level1))}.mat-mdc-raised-button:active,.mat-mdc-raised-button:focus:active{box-shadow:var(--mat-button-protected-pressed-container-elevation-shadow, var(--mat-sys-level1))}.mat-mdc-raised-button[disabled],.mat-mdc-raised-button.mat-mdc-button-disabled{cursor:default;pointer-events:none;color:var(--mat-button-protected-disabled-label-text-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent));background-color:var(--mat-button-protected-disabled-container-color, color-mix(in srgb, var(--mat-sys-on-surface) 12%, transparent))}.mat-mdc-raised-button[disabled].mat-mdc-button-disabled,.mat-mdc-raised-button.mat-mdc-button-disabled.mat-mdc-button-disabled{box-shadow:var(--mat-button-protected-disabled-container-elevation-shadow, var(--mat-sys-level0))}.mat-mdc-raised-button.mat-mdc-button-disabled-interactive{pointer-events:auto}.mat-mdc-outlined-button{border-style:solid;transition:border 280ms cubic-bezier(0.4, 0, 0.2, 1);height:var(--mat-button-outlined-container-height, 40px);font-family:var(--mat-button-outlined-label-text-font, var(--mat-sys-label-large-font));font-size:var(--mat-button-outlined-label-text-size, var(--mat-sys-label-large-size));letter-spacing:var(--mat-button-outlined-label-text-tracking, var(--mat-sys-label-large-tracking));text-transform:var(--mat-button-outlined-label-text-transform);font-weight:var(--mat-button-outlined-label-text-weight, var(--mat-sys-label-large-weight));border-radius:var(--mat-button-outlined-container-shape, var(--mat-sys-corner-full));border-width:var(--mat-button-outlined-outline-width, 1px);padding:0 var(--mat-button-outlined-horizontal-padding, 24px)}.mat-mdc-outlined-button>.mat-icon{margin-right:var(--mat-button-outlined-icon-spacing, 8px);margin-left:var(--mat-button-outlined-icon-offset, -8px)}[dir=rtl] .mat-mdc-outlined-button>.mat-icon{margin-right:var(--mat-button-outlined-icon-offset, -8px);margin-left:var(--mat-button-outlined-icon-spacing, 8px)}.mat-mdc-outlined-button .mdc-button__label+.mat-icon{margin-right:var(--mat-button-outlined-icon-offset, -8px);margin-left:var(--mat-button-outlined-icon-spacing, 8px)}[dir=rtl] .mat-mdc-outlined-button .mdc-button__label+.mat-icon{margin-right:var(--mat-button-outlined-icon-spacing, 8px);margin-left:var(--mat-button-outlined-icon-offset, -8px)}.mat-mdc-outlined-button .mat-ripple-element{background-color:var(--mat-button-outlined-ripple-color, color-mix(in srgb, var(--mat-sys-primary) calc(var(--mat-sys-pressed-state-layer-opacity) * 100%), transparent))}.mat-mdc-outlined-button .mat-mdc-button-persistent-ripple::before{background-color:var(--mat-button-outlined-state-layer-color, var(--mat-sys-primary))}.mat-mdc-outlined-button.mat-mdc-button-disabled .mat-mdc-button-persistent-ripple::before{background-color:var(--mat-button-outlined-disabled-state-layer-color, var(--mat-sys-on-surface-variant))}.mat-mdc-outlined-button:hover>.mat-mdc-button-persistent-ripple::before{opacity:var(--mat-button-outlined-hover-state-layer-opacity, var(--mat-sys-hover-state-layer-opacity))}.mat-mdc-outlined-button.cdk-program-focused>.mat-mdc-button-persistent-ripple::before,.mat-mdc-outlined-button.cdk-keyboard-focused>.mat-mdc-button-persistent-ripple::before,.mat-mdc-outlined-button.mat-mdc-button-disabled-interactive:focus>.mat-mdc-button-persistent-ripple::before{opacity:var(--mat-button-outlined-focus-state-layer-opacity, var(--mat-sys-focus-state-layer-opacity))}.mat-mdc-outlined-button:active>.mat-mdc-button-persistent-ripple::before{opacity:var(--mat-button-outlined-pressed-state-layer-opacity, var(--mat-sys-pressed-state-layer-opacity))}.mat-mdc-outlined-button .mat-mdc-button-touch-target{position:absolute;top:50%;height:var(--mat-button-outlined-touch-target-size, 48px);display:var(--mat-button-outlined-touch-target-display, block);left:0;right:0;transform:translateY(-50%)}.mat-mdc-outlined-button:not(:disabled){color:var(--mat-button-outlined-label-text-color, var(--mat-sys-primary));border-color:var(--mat-button-outlined-outline-color, var(--mat-sys-outline))}.mat-mdc-outlined-button[disabled],.mat-mdc-outlined-button.mat-mdc-button-disabled{cursor:default;pointer-events:none;color:var(--mat-button-outlined-disabled-label-text-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent));border-color:var(--mat-button-outlined-disabled-outline-color, color-mix(in srgb, var(--mat-sys-on-surface) 12%, transparent))}.mat-mdc-outlined-button.mat-mdc-button-disabled-interactive{pointer-events:auto}.mat-tonal-button{transition:box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);height:var(--mat-button-tonal-container-height, 40px);font-family:var(--mat-button-tonal-label-text-font, var(--mat-sys-label-large-font));font-size:var(--mat-button-tonal-label-text-size, var(--mat-sys-label-large-size));letter-spacing:var(--mat-button-tonal-label-text-tracking, var(--mat-sys-label-large-tracking));text-transform:var(--mat-button-tonal-label-text-transform);font-weight:var(--mat-button-tonal-label-text-weight, var(--mat-sys-label-large-weight));padding:0 var(--mat-button-tonal-horizontal-padding, 24px)}.mat-tonal-button:not(:disabled){color:var(--mat-button-tonal-label-text-color, var(--mat-sys-on-secondary-container));background-color:var(--mat-button-tonal-container-color, var(--mat-sys-secondary-container))}.mat-tonal-button,.mat-tonal-button .mdc-button__ripple{border-radius:var(--mat-button-tonal-container-shape, var(--mat-sys-corner-full))}.mat-tonal-button[disabled],.mat-tonal-button.mat-mdc-button-disabled{cursor:default;pointer-events:none;color:var(--mat-button-tonal-disabled-label-text-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent));background-color:var(--mat-button-tonal-disabled-container-color, color-mix(in srgb, var(--mat-sys-on-surface) 12%, transparent))}.mat-tonal-button.mat-mdc-button-disabled-interactive{pointer-events:auto}.mat-tonal-button>.mat-icon{margin-right:var(--mat-button-tonal-icon-spacing, 8px);margin-left:var(--mat-button-tonal-icon-offset, -8px)}[dir=rtl] .mat-tonal-button>.mat-icon{margin-right:var(--mat-button-tonal-icon-offset, -8px);margin-left:var(--mat-button-tonal-icon-spacing, 8px)}.mat-tonal-button .mdc-button__label+.mat-icon{margin-right:var(--mat-button-tonal-icon-offset, -8px);margin-left:var(--mat-button-tonal-icon-spacing, 8px)}[dir=rtl] .mat-tonal-button .mdc-button__label+.mat-icon{margin-right:var(--mat-button-tonal-icon-spacing, 8px);margin-left:var(--mat-button-tonal-icon-offset, -8px)}.mat-tonal-button .mat-ripple-element{background-color:var(--mat-button-tonal-ripple-color, color-mix(in srgb, var(--mat-sys-on-secondary-container) calc(var(--mat-sys-pressed-state-layer-opacity) * 100%), transparent))}.mat-tonal-button .mat-mdc-button-persistent-ripple::before{background-color:var(--mat-button-tonal-state-layer-color, var(--mat-sys-on-secondary-container))}.mat-tonal-button.mat-mdc-button-disabled .mat-mdc-button-persistent-ripple::before{background-color:var(--mat-button-tonal-disabled-state-layer-color, var(--mat-sys-on-surface-variant))}.mat-tonal-button:hover>.mat-mdc-button-persistent-ripple::before{opacity:var(--mat-button-tonal-hover-state-layer-opacity, var(--mat-sys-hover-state-layer-opacity))}.mat-tonal-button.cdk-program-focused>.mat-mdc-button-persistent-ripple::before,.mat-tonal-button.cdk-keyboard-focused>.mat-mdc-button-persistent-ripple::before,.mat-tonal-button.mat-mdc-button-disabled-interactive:focus>.mat-mdc-button-persistent-ripple::before{opacity:var(--mat-button-tonal-focus-state-layer-opacity, var(--mat-sys-focus-state-layer-opacity))}.mat-tonal-button:active>.mat-mdc-button-persistent-ripple::before{opacity:var(--mat-button-tonal-pressed-state-layer-opacity, var(--mat-sys-pressed-state-layer-opacity))}.mat-tonal-button .mat-mdc-button-touch-target{position:absolute;top:50%;height:var(--mat-button-tonal-touch-target-size, 48px);display:var(--mat-button-tonal-touch-target-display, block);left:0;right:0;transform:translateY(-50%)}.mat-mdc-button,.mat-mdc-unelevated-button,.mat-mdc-raised-button,.mat-mdc-outlined-button,.mat-tonal-button{-webkit-tap-highlight-color:rgba(0,0,0,0)}.mat-mdc-button .mat-mdc-button-ripple,.mat-mdc-button .mat-mdc-button-persistent-ripple,.mat-mdc-button .mat-mdc-button-persistent-ripple::before,.mat-mdc-unelevated-button .mat-mdc-button-ripple,.mat-mdc-unelevated-button .mat-mdc-button-persistent-ripple,.mat-mdc-unelevated-button .mat-mdc-button-persistent-ripple::before,.mat-mdc-raised-button .mat-mdc-button-ripple,.mat-mdc-raised-button .mat-mdc-button-persistent-ripple,.mat-mdc-raised-button .mat-mdc-button-persistent-ripple::before,.mat-mdc-outlined-button .mat-mdc-button-ripple,.mat-mdc-outlined-button .mat-mdc-button-persistent-ripple,.mat-mdc-outlined-button .mat-mdc-button-persistent-ripple::before,.mat-tonal-button .mat-mdc-button-ripple,.mat-tonal-button .mat-mdc-button-persistent-ripple,.mat-tonal-button .mat-mdc-button-persistent-ripple::before{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none;border-radius:inherit}.mat-mdc-button .mat-mdc-button-ripple,.mat-mdc-unelevated-button .mat-mdc-button-ripple,.mat-mdc-raised-button .mat-mdc-button-ripple,.mat-mdc-outlined-button .mat-mdc-button-ripple,.mat-tonal-button .mat-mdc-button-ripple{overflow:hidden}.mat-mdc-button .mat-mdc-button-persistent-ripple::before,.mat-mdc-unelevated-button .mat-mdc-button-persistent-ripple::before,.mat-mdc-raised-button .mat-mdc-button-persistent-ripple::before,.mat-mdc-outlined-button .mat-mdc-button-persistent-ripple::before,.mat-tonal-button .mat-mdc-button-persistent-ripple::before{content:"";opacity:0}.mat-mdc-button .mdc-button__label,.mat-mdc-button .mat-icon,.mat-mdc-unelevated-button .mdc-button__label,.mat-mdc-unelevated-button .mat-icon,.mat-mdc-raised-button .mdc-button__label,.mat-mdc-raised-button .mat-icon,.mat-mdc-outlined-button .mdc-button__label,.mat-mdc-outlined-button .mat-icon,.mat-tonal-button .mdc-button__label,.mat-tonal-button .mat-icon{z-index:1;position:relative}.mat-mdc-button .mat-focus-indicator,.mat-mdc-unelevated-button .mat-focus-indicator,.mat-mdc-raised-button .mat-focus-indicator,.mat-mdc-outlined-button .mat-focus-indicator,.mat-tonal-button .mat-focus-indicator{top:0;left:0;right:0;bottom:0;position:absolute;border-radius:inherit}.mat-mdc-button:focus>.mat-focus-indicator::before,.mat-mdc-unelevated-button:focus>.mat-focus-indicator::before,.mat-mdc-raised-button:focus>.mat-focus-indicator::before,.mat-mdc-outlined-button:focus>.mat-focus-indicator::before,.mat-tonal-button:focus>.mat-focus-indicator::before{content:"";border-radius:inherit}.mat-mdc-button._mat-animation-noopable,.mat-mdc-unelevated-button._mat-animation-noopable,.mat-mdc-raised-button._mat-animation-noopable,.mat-mdc-outlined-button._mat-animation-noopable,.mat-tonal-button._mat-animation-noopable{transition:none !important;animation:none !important}.mat-mdc-button>.mat-icon,.mat-mdc-unelevated-button>.mat-icon,.mat-mdc-raised-button>.mat-icon,.mat-mdc-outlined-button>.mat-icon,.mat-tonal-button>.mat-icon{display:inline-block;position:relative;vertical-align:top;font-size:1.125rem;height:1.125rem;width:1.125rem}.mat-mdc-outlined-button .mat-mdc-button-ripple,.mat-mdc-outlined-button .mdc-button__ripple{top:-1px;left:-1px;bottom:-1px;right:-1px}.mat-mdc-unelevated-button .mat-focus-indicator::before,.mat-tonal-button .mat-focus-indicator::before,.mat-mdc-raised-button .mat-focus-indicator::before{margin:calc(calc(var(--mat-focus-indicator-border-width, 3px) + 2px)*-1)}.mat-mdc-outlined-button .mat-focus-indicator::before{margin:calc(calc(var(--mat-focus-indicator-border-width, 3px) + 3px)*-1)} +`],encapsulation:2,changeDetection:0})}return t})();var Tee=["tooltip"],pk=20;var fk=new O("mat-tooltip-scroll-strategy",{providedIn:"root",factory:()=>{let t=u(de);return()=>Tn(t,{scrollThrottle:pk})}});function n3(t){let n=u(de);return()=>Tn(n,{scrollThrottle:pk})}var gk={provide:fk,deps:[],useFactory:n3};function r3(){return{showDelay:0,hideDelay:0,touchendHideDelay:1500}}var o3=new O("mat-tooltip-default-options",{providedIn:"root",factory:r3});var t3="tooltip-panel",i3=Cc({passive:!0}),Iee=8,Aee=8,Oee=24,Ree=200,ur=(()=>{class t{_elementRef=u(Y);_ngZone=u(ae);_platform=u(Ye);_ariaDescriber=u(nh);_focusMonitor=u(oi);_dir=u(Yt);_injector=u(de);_viewContainerRef=u(st);_animationsDisabled=Qe();_defaultOptions=u(o3,{optional:!0});_overlayRef;_tooltipInstance;_overlayPanelClass;_portal;_position="below";_positionAtOrigin=!1;_disabled=!1;_tooltipClass;_viewInitialized=!1;_pointerExitEventsInitialized=!1;_tooltipComponent=a3;_viewportMargin=8;_currentPosition;_cssClassPrefix="mat-mdc";_ariaDescriptionPending;_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=Vi(e),this._detach(),this._overlayRef=null}get disabled(){return this._disabled}set disabled(e){let i=Vi(e);this._disabled!==i&&(this._disabled=i,i?this.hide(0):this._setupPointerEnterEventsIfNeeded(),this._syncAriaDescription(this.message))}get showDelay(){return this._showDelay}set showDelay(e){this._showDelay=Gn(e)}_showDelay;get hideDelay(){return this._hideDelay}set hideDelay(e){this._hideDelay=Gn(e),this._tooltipInstance&&(this._tooltipInstance._mouseLeaveHideDelay=this._hideDelay)}_hideDelay;touchGestures="auto";get message(){return this._message}set message(e){let i=this._message;this._message=e!=null?String(e).trim():"",!this._message&&this._isTooltipVisible()?this.hide(0):(this._setupPointerEnterEventsIfNeeded(),this._updateTooltipMessage()),this._syncAriaDescription(i)}_message="";get tooltipClass(){return this._tooltipClass}set tooltipClass(e){this._tooltipClass=e,this._tooltipInstance&&this._setTooltipClass(this._tooltipClass)}_passiveListeners=[];_touchstartTimeout=null;_destroyed=new z;_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=Iee}ngAfterViewInit(){this._viewInitialized=!0,this._setupPointerEnterEventsIfNeeded(),this._focusMonitor.monitor(this._elementRef).pipe(we(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._passiveListeners.forEach(([i,r])=>{e.removeEventListener(i,r,i3)}),this._passiveListeners.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,i){if(this.disabled||!this.message||this._isTooltipVisible()){this._tooltipInstance?._cancelPendingAnimations();return}let r=this._createOverlay(i);this._detach(),this._portal=this._portal||new ao(this._tooltipComponent,this._viewContainerRef);let o=this._tooltipInstance=r.attach(this._portal).instance;o._triggerElement=this._elementRef.nativeElement,o._mouseLeaveHideDelay=this._hideDelay,o.afterHidden().pipe(we(this._destroyed)).subscribe(()=>this._detach()),this._setTooltipClass(this._tooltipClass),this._updateTooltipMessage(),o.show(e)}hide(e=this.hideDelay){let i=this._tooltipInstance;i&&(i.isVisible()?i.hide(e):(i._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 a=this._overlayRef.getConfig().positionStrategy;if((!this.positionAtOrigin||!e)&&a._origin instanceof Y)return this._overlayRef;this._detach()}let i=this._injector.get(Hs).getAncestorScrollContainers(this._elementRef),r=`${this._cssClassPrefix}-${t3}`,o=Xa(this._injector,this.positionAtOrigin?e||this._elementRef:this._elementRef).withTransformOriginOn(`.${this._cssClassPrefix}-tooltip`).withFlexibleDimensions(!1).withViewportMargin(this._viewportMargin).withScrollableContainers(i);return o.positionChanges.pipe(we(this._destroyed)).subscribe(a=>{this._updateCurrentPositionClass(a.connectionPair),this._tooltipInstance&&a.scrollableViewProperties.isOverlayClipped&&this._tooltipInstance.isVisible()&&this._ngZone.run(()=>this.hide(0))}),this._overlayRef=qr(this._injector,{direction:this._dir,positionStrategy:o,panelClass:this._overlayPanelClass?[...this._overlayPanelClass,r]:r,scrollStrategy:this._injector.get(fk)(),disableAnimations:this._animationsDisabled}),this._updatePosition(this._overlayRef),this._overlayRef.detachments().pipe(we(this._destroyed)).subscribe(()=>this._detach()),this._overlayRef.outsidePointerEvents().pipe(we(this._destroyed)).subscribe(()=>this._tooltipInstance?._handleBodyInteraction()),this._overlayRef.keydownEvents().pipe(we(this._destroyed)).subscribe(a=>{this._isTooltipVisible()&&a.keyCode===27&&!Gt(a)&&(a.preventDefault(),a.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(we(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 i=e.getConfig().positionStrategy,r=this._getOrigin(),o=this._getOverlayPosition();i.withPositions([this._addOffset(I(I({},r.main),o.main)),this._addOffset(I(I({},r.fallback),o.fallback))])}_addOffset(e){let i=Aee,r=!this._dir||this._dir.value=="ltr";return e.originY==="top"?e.offsetY=-i:e.originY==="bottom"?e.offsetY=i:e.originX==="start"?e.offsetX=r?-i:i:e.originX==="end"&&(e.offsetX=r?i:-i),e}_getOrigin(){let e=!this._dir||this._dir.value=="ltr",i=this.position,r;i=="above"||i=="below"?r={originX:"center",originY:i=="above"?"top":"bottom"}:i=="before"||i=="left"&&e||i=="right"&&!e?r={originX:"start",originY:"center"}:(i=="after"||i=="right"&&e||i=="left"&&!e)&&(r={originX:"end",originY:"center"});let{x:o,y:a}=this._invertPosition(r.originX,r.originY);return{main:r,fallback:{originX:o,originY:a}}}_getOverlayPosition(){let e=!this._dir||this._dir.value=="ltr",i=this.position,r;i=="above"?r={overlayX:"center",overlayY:"bottom"}:i=="below"?r={overlayX:"center",overlayY:"top"}:i=="before"||i=="left"&&e||i=="right"&&!e?r={overlayX:"end",overlayY:"center"}:(i=="after"||i=="right"&&e||i=="left"&&!e)&&(r={overlayX:"start",overlayY:"center"});let{x:o,y:a}=this._invertPosition(r.overlayX,r.overlayY);return{main:r,fallback:{overlayX:o,overlayY:a}}}_updateTooltipMessage(){this._tooltipInstance&&(this._tooltipInstance.message=this.message,this._tooltipInstance._markForCheck(),vt(()=>{this._tooltipInstance&&this._overlayRef.updatePosition()},{injector:this._injector}))}_setTooltipClass(e){this._tooltipInstance&&(this._tooltipInstance.tooltipClass=e,this._tooltipInstance._markForCheck())}_invertPosition(e,i){return this.position==="above"||this.position==="below"?i==="top"?i="bottom":i==="bottom"&&(i="top"):e==="end"?e="start":e==="start"&&(e="end"),{x:e,y:i}}_updateCurrentPositionClass(e){let{overlayY:i,originX:r,originY:o}=e,a;if(i==="center"?this._dir&&this._dir.value==="rtl"?a=r==="end"?"left":"right":a=r==="start"?"left":"right":a=i==="bottom"&&o==="top"?"above":"below",a!==this._currentPosition){let s=this._overlayRef;if(s){let l=`${this._cssClassPrefix}-${t3}-`;s.removePanelClass(l+this._currentPosition),s.addPanelClass(l+a)}this._currentPosition=a}}_setupPointerEnterEventsIfNeeded(){this._disabled||!this.message||!this._viewInitialized||this._passiveListeners.length||(this._platformSupportsMouseEvents()?this._passiveListeners.push(["mouseenter",e=>{this._setupPointerExitEventsIfNeeded();let i;e.x!==void 0&&e.y!==void 0&&(i=e),this.show(void 0,i)}]):this.touchGestures!=="off"&&(this._disableNativeGesturesIfNecessary(),this._passiveListeners.push(["touchstart",e=>{let i=e.targetTouches?.[0],r=i?{x:i.clientX,y:i.clientY}:void 0;this._setupPointerExitEventsIfNeeded(),this._touchstartTimeout&&clearTimeout(this._touchstartTimeout);let o=500;this._touchstartTimeout=setTimeout(()=>{this._touchstartTimeout=null,this.show(void 0,r)},this._defaultOptions?.touchLongPressShowDelay??o)}])),this._addListeners(this._passiveListeners))}_setupPointerExitEventsIfNeeded(){if(this._pointerExitEventsInitialized)return;this._pointerExitEventsInitialized=!0;let e=[];if(this._platformSupportsMouseEvents())e.push(["mouseleave",i=>{let r=i.relatedTarget;(!r||!this._overlayRef?.overlayElement.contains(r))&&this.hide()}],["wheel",i=>this._wheelListener(i)]);else if(this.touchGestures!=="off"){this._disableNativeGesturesIfNecessary();let i=()=>{this._touchstartTimeout&&clearTimeout(this._touchstartTimeout),this.hide(this._defaultOptions?.touchendHideDelay)};e.push(["touchend",i],["touchcancel",i])}this._addListeners(e),this._passiveListeners.push(...e)}_addListeners(e){e.forEach(([i,r])=>{this._elementRef.nativeElement.addEventListener(i,r,i3)})}_platformSupportsMouseEvents(){return!this._platform.IOS&&!this._platform.ANDROID}_wheelListener(e){if(this._isTooltipVisible()){let i=this._injector.get(_e).elementFromPoint(e.clientX,e.clientY),r=this._elementRef.nativeElement;i!==r&&!r.contains(i)&&this.hide()}}_disableNativeGesturesIfNecessary(){let e=this.touchGestures;if(e!=="off"){let i=this._elementRef.nativeElement,r=i.style;(e==="on"||i.nodeName!=="INPUT"&&i.nodeName!=="TEXTAREA")&&(r.userSelect=r.msUserSelect=r.webkitUserSelect=r.MozUserSelect="none"),(e==="on"||!i.draggable)&&(r.webkitUserDrag="none"),r.touchAction="none",r.webkitTapHighlightColor="transparent"}}_syncAriaDescription(e){this._ariaDescriptionPending||(this._ariaDescriptionPending=!0,this._ariaDescriber.removeDescription(this._elementRef.nativeElement,e,"tooltip"),this._isDestroyed||vt({write:()=>{this._ariaDescriptionPending=!1,this.message&&!this.disabled&&this._ariaDescriber.describe(this._elementRef.nativeElement,this.message,"tooltip")}},{injector:this._injector}))}static \u0275fac=function(i){return new(i||t)};static \u0275dir=P({type:t,selectors:[["","matTooltip",""]],hostAttrs:[1,"mat-mdc-tooltip-trigger"],hostVars:2,hostBindings:function(i,r){i&2&&G("mat-mdc-tooltip-disabled",r.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 t})(),a3=(()=>{class t{_changeDetectorRef=u(ye);_elementRef=u(Y);_isMultiline=!1;message;tooltipClass;_showTimeoutId;_hideTimeoutId;_triggerElement;_mouseLeaveHideDelay;_animationsDisabled=Qe();_tooltip;_closeOnInteraction=!1;_isVisible=!1;_onHide=new z;_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>Oee&&e.width>=Ree}_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 i=this._tooltip.nativeElement,r=this._showAnimation,o=this._hideAnimation;if(i.classList.remove(e?o:r),i.classList.add(e?r:o),this._isVisible!==e&&(this._isVisible=e,this._changeDetectorRef.markForCheck()),e&&!this._animationsDisabled&&typeof getComputedStyle=="function"){let a=getComputedStyle(i);(a.getPropertyValue("animation-duration")==="0s"||a.getPropertyValue("animation-name")==="none")&&(this._animationsDisabled=!0)}e&&this._onShow(),this._animationsDisabled&&(i.classList.add("_mat-animation-noopable"),this._finalizeAnimation(e))}static \u0275fac=function(i){return new(i||t)};static \u0275cmp=E({type:t,selectors:[["mat-tooltip-component"]],viewQuery:function(i,r){if(i&1&&ie(Tee,7),i&2){let o;j(o=H())&&(r._tooltip=o.first)}},hostAttrs:["aria-hidden","true"],hostBindings:function(i,r){i&1&&S("mouseleave",function(a){return r._handleMouseLeave(a)})},decls:4,vars:4,consts:[["tooltip",""],[1,"mdc-tooltip","mat-mdc-tooltip",3,"animationend","ngClass"],[1,"mat-mdc-tooltip-surface","mdc-tooltip__surface"]],template:function(i,r){if(i&1){let o=q();m(0,"div",1,0),S("animationend",function(s){return k(o),T(r._handleAnimationEnd(s))}),m(2,"div",2),f(3),h()()}i&2&&(G("mdc-tooltip--multiline",r._isMultiline),v("ngClass",r.tooltipClass),g(3),N(r.message))},dependencies:[zd],styles:[`.mat-mdc-tooltip{position:relative;transform:scale(0);display:inline-flex}.mat-mdc-tooltip::before{content:"";top:0;right:0;bottom:0;left:0;z-index:-1;position:absolute}.mat-mdc-tooltip-panel-below .mat-mdc-tooltip::before{top:-8px}.mat-mdc-tooltip-panel-above .mat-mdc-tooltip::before{bottom:-8px}.mat-mdc-tooltip-panel-right .mat-mdc-tooltip::before{left:-8px}.mat-mdc-tooltip-panel-left .mat-mdc-tooltip::before{right:-8px}.mat-mdc-tooltip._mat-animation-noopable{animation:none;transform:scale(1)}.mat-mdc-tooltip-surface{word-break:normal;overflow-wrap:anywhere;padding:4px 8px;min-width:40px;max-width:200px;min-height:24px;max-height:40vh;box-sizing:border-box;overflow:hidden;text-align:center;will-change:transform,opacity;background-color:var(--mat-tooltip-container-color, var(--mat-sys-inverse-surface));color:var(--mat-tooltip-supporting-text-color, var(--mat-sys-inverse-on-surface));border-radius:var(--mat-tooltip-container-shape, var(--mat-sys-corner-extra-small));font-family:var(--mat-tooltip-supporting-text-font, var(--mat-sys-body-small-font));font-size:var(--mat-tooltip-supporting-text-size, var(--mat-sys-body-small-size));font-weight:var(--mat-tooltip-supporting-text-weight, var(--mat-sys-body-small-weight));line-height:var(--mat-tooltip-supporting-text-line-height, var(--mat-sys-body-small-line-height));letter-spacing:var(--mat-tooltip-supporting-text-tracking, var(--mat-sys-body-small-tracking))}.mat-mdc-tooltip-surface::before{position:absolute;box-sizing:border-box;width:100%;height:100%;top:0;left:0;border:1px solid rgba(0,0,0,0);border-radius:inherit;content:"";pointer-events:none}.mdc-tooltip--multiline .mat-mdc-tooltip-surface{text-align:left}[dir=rtl] .mdc-tooltip--multiline .mat-mdc-tooltip-surface{text-align:right}.mat-mdc-tooltip-panel{line-height:normal}.mat-mdc-tooltip-panel.mat-mdc-tooltip-panel-non-interactive{pointer-events:none}@keyframes mat-mdc-tooltip-show{0%{opacity:0;transform:scale(0.8)}100%{opacity:1;transform:scale(1)}}@keyframes mat-mdc-tooltip-hide{0%{opacity:1;transform:scale(1)}100%{opacity:0;transform:scale(0.8)}}.mat-mdc-tooltip-show{animation:mat-mdc-tooltip-show 150ms cubic-bezier(0, 0, 0.2, 1) forwards}.mat-mdc-tooltip-hide{animation:mat-mdc-tooltip-hide 75ms cubic-bezier(0.4, 0, 1, 1) forwards} +`],encapsulation:2,changeDetection:0})}return t})();var An=(()=>{class t{static \u0275fac=function(i){return new(i||t)};static \u0275mod=ee({type:t});static \u0275inj=J({providers:[gk],imports:[El,cr,De,De,Tr]})}return t})();var Pee=["matButton",""],c3=[[["",8,"material-icons",3,"iconPositionEnd",""],["mat-icon",3,"iconPositionEnd",""],["","matButtonIcon","",3,"iconPositionEnd",""]],"*",[["","iconPositionEnd","",8,"material-icons"],["mat-icon","iconPositionEnd",""],["","matButtonIcon","","iconPositionEnd",""]]],d3=[".material-icons:not([iconPositionEnd]), mat-icon:not([iconPositionEnd]), [matButtonIcon]:not([iconPositionEnd])","*",".material-icons[iconPositionEnd], mat-icon[iconPositionEnd], [matButtonIcon][iconPositionEnd]"],Fee=["mat-fab",""];var s3=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"]]]),_t=(()=>{class t extends wx{get appearance(){return this._appearance}set appearance(e){this.setAppearance(e||this._config?.defaultAppearance||"text")}_appearance=null;constructor(){super();let e=Nee(this._elementRef.nativeElement);e&&this.setAppearance(e)}setAppearance(e){if(e===this._appearance)return;let i=this._elementRef.nativeElement.classList,r=this._appearance?s3.get(this._appearance):null,o=s3.get(e);r&&i.remove(...r),i.add(...o),this._appearance=e}static \u0275fac=function(i){return new(i||t)};static \u0275cmp=E({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:[le],attrs:Pee,ngContentSelectors:d3,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(i,r){i&1&&(Ee(c3),ni(0,"span",0),ne(1),gt(2,"span",1),ne(3,1),yt(),ne(4,2),ni(5,"span",2)(6,"span",3)),i&2&&G("mdc-button__ripple",!r._isFab)("mdc-fab__ripple",r._isFab)},styles:[`.mat-mdc-button-base{text-decoration:none}.mat-mdc-button-base .mat-icon{min-height:fit-content;flex-shrink:0}.mdc-button{-webkit-user-select:none;user-select:none;position:relative;display:inline-flex;align-items:center;justify-content:center;box-sizing:border-box;min-width:64px;border:none;outline:none;line-height:inherit;-webkit-appearance:none;overflow:visible;vertical-align:middle;background:rgba(0,0,0,0);padding:0 8px}.mdc-button::-moz-focus-inner{padding:0;border:0}.mdc-button:active{outline:none}.mdc-button:hover{cursor:pointer}.mdc-button:disabled{cursor:default;pointer-events:none}.mdc-button[hidden]{display:none}.mdc-button .mdc-button__label{position:relative}.mat-mdc-button{padding:0 var(--mat-button-text-horizontal-padding, 12px);height:var(--mat-button-text-container-height, 40px);font-family:var(--mat-button-text-label-text-font, var(--mat-sys-label-large-font));font-size:var(--mat-button-text-label-text-size, var(--mat-sys-label-large-size));letter-spacing:var(--mat-button-text-label-text-tracking, var(--mat-sys-label-large-tracking));text-transform:var(--mat-button-text-label-text-transform);font-weight:var(--mat-button-text-label-text-weight, var(--mat-sys-label-large-weight))}.mat-mdc-button,.mat-mdc-button .mdc-button__ripple{border-radius:var(--mat-button-text-container-shape, var(--mat-sys-corner-full))}.mat-mdc-button:not(:disabled){color:var(--mat-button-text-label-text-color, var(--mat-sys-primary))}.mat-mdc-button[disabled],.mat-mdc-button.mat-mdc-button-disabled{cursor:default;pointer-events:none;color:var(--mat-button-text-disabled-label-text-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent))}.mat-mdc-button.mat-mdc-button-disabled-interactive{pointer-events:auto}.mat-mdc-button:has(.material-icons,mat-icon,[matButtonIcon]){padding:0 var(--mat-button-text-with-icon-horizontal-padding, 16px)}.mat-mdc-button>.mat-icon{margin-right:var(--mat-button-text-icon-spacing, 8px);margin-left:var(--mat-button-text-icon-offset, -4px)}[dir=rtl] .mat-mdc-button>.mat-icon{margin-right:var(--mat-button-text-icon-offset, -4px);margin-left:var(--mat-button-text-icon-spacing, 8px)}.mat-mdc-button .mdc-button__label+.mat-icon{margin-right:var(--mat-button-text-icon-offset, -4px);margin-left:var(--mat-button-text-icon-spacing, 8px)}[dir=rtl] .mat-mdc-button .mdc-button__label+.mat-icon{margin-right:var(--mat-button-text-icon-spacing, 8px);margin-left:var(--mat-button-text-icon-offset, -4px)}.mat-mdc-button .mat-ripple-element{background-color:var(--mat-button-text-ripple-color, color-mix(in srgb, var(--mat-sys-primary) calc(var(--mat-sys-pressed-state-layer-opacity) * 100%), transparent))}.mat-mdc-button .mat-mdc-button-persistent-ripple::before{background-color:var(--mat-button-text-state-layer-color, var(--mat-sys-primary))}.mat-mdc-button.mat-mdc-button-disabled .mat-mdc-button-persistent-ripple::before{background-color:var(--mat-button-text-disabled-state-layer-color, var(--mat-sys-on-surface-variant))}.mat-mdc-button:hover>.mat-mdc-button-persistent-ripple::before{opacity:var(--mat-button-text-hover-state-layer-opacity, var(--mat-sys-hover-state-layer-opacity))}.mat-mdc-button.cdk-program-focused>.mat-mdc-button-persistent-ripple::before,.mat-mdc-button.cdk-keyboard-focused>.mat-mdc-button-persistent-ripple::before,.mat-mdc-button.mat-mdc-button-disabled-interactive:focus>.mat-mdc-button-persistent-ripple::before{opacity:var(--mat-button-text-focus-state-layer-opacity, var(--mat-sys-focus-state-layer-opacity))}.mat-mdc-button:active>.mat-mdc-button-persistent-ripple::before{opacity:var(--mat-button-text-pressed-state-layer-opacity, var(--mat-sys-pressed-state-layer-opacity))}.mat-mdc-button .mat-mdc-button-touch-target{position:absolute;top:50%;height:var(--mat-button-text-touch-target-size, 48px);display:var(--mat-button-text-touch-target-display, block);left:0;right:0;transform:translateY(-50%)}.mat-mdc-unelevated-button{transition:box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);height:var(--mat-button-filled-container-height, 40px);font-family:var(--mat-button-filled-label-text-font, var(--mat-sys-label-large-font));font-size:var(--mat-button-filled-label-text-size, var(--mat-sys-label-large-size));letter-spacing:var(--mat-button-filled-label-text-tracking, var(--mat-sys-label-large-tracking));text-transform:var(--mat-button-filled-label-text-transform);font-weight:var(--mat-button-filled-label-text-weight, var(--mat-sys-label-large-weight));padding:0 var(--mat-button-filled-horizontal-padding, 24px)}.mat-mdc-unelevated-button>.mat-icon{margin-right:var(--mat-button-filled-icon-spacing, 8px);margin-left:var(--mat-button-filled-icon-offset, -8px)}[dir=rtl] .mat-mdc-unelevated-button>.mat-icon{margin-right:var(--mat-button-filled-icon-offset, -8px);margin-left:var(--mat-button-filled-icon-spacing, 8px)}.mat-mdc-unelevated-button .mdc-button__label+.mat-icon{margin-right:var(--mat-button-filled-icon-offset, -8px);margin-left:var(--mat-button-filled-icon-spacing, 8px)}[dir=rtl] .mat-mdc-unelevated-button .mdc-button__label+.mat-icon{margin-right:var(--mat-button-filled-icon-spacing, 8px);margin-left:var(--mat-button-filled-icon-offset, -8px)}.mat-mdc-unelevated-button .mat-ripple-element{background-color:var(--mat-button-filled-ripple-color, color-mix(in srgb, var(--mat-sys-on-primary) calc(var(--mat-sys-pressed-state-layer-opacity) * 100%), transparent))}.mat-mdc-unelevated-button .mat-mdc-button-persistent-ripple::before{background-color:var(--mat-button-filled-state-layer-color, var(--mat-sys-on-primary))}.mat-mdc-unelevated-button.mat-mdc-button-disabled .mat-mdc-button-persistent-ripple::before{background-color:var(--mat-button-filled-disabled-state-layer-color, var(--mat-sys-on-surface-variant))}.mat-mdc-unelevated-button:hover>.mat-mdc-button-persistent-ripple::before{opacity:var(--mat-button-filled-hover-state-layer-opacity, var(--mat-sys-hover-state-layer-opacity))}.mat-mdc-unelevated-button.cdk-program-focused>.mat-mdc-button-persistent-ripple::before,.mat-mdc-unelevated-button.cdk-keyboard-focused>.mat-mdc-button-persistent-ripple::before,.mat-mdc-unelevated-button.mat-mdc-button-disabled-interactive:focus>.mat-mdc-button-persistent-ripple::before{opacity:var(--mat-button-filled-focus-state-layer-opacity, var(--mat-sys-focus-state-layer-opacity))}.mat-mdc-unelevated-button:active>.mat-mdc-button-persistent-ripple::before{opacity:var(--mat-button-filled-pressed-state-layer-opacity, var(--mat-sys-pressed-state-layer-opacity))}.mat-mdc-unelevated-button .mat-mdc-button-touch-target{position:absolute;top:50%;height:var(--mat-button-filled-touch-target-size, 48px);display:var(--mat-button-filled-touch-target-display, block);left:0;right:0;transform:translateY(-50%)}.mat-mdc-unelevated-button:not(:disabled){color:var(--mat-button-filled-label-text-color, var(--mat-sys-on-primary));background-color:var(--mat-button-filled-container-color, var(--mat-sys-primary))}.mat-mdc-unelevated-button,.mat-mdc-unelevated-button .mdc-button__ripple{border-radius:var(--mat-button-filled-container-shape, var(--mat-sys-corner-full))}.mat-mdc-unelevated-button[disabled],.mat-mdc-unelevated-button.mat-mdc-button-disabled{cursor:default;pointer-events:none;color:var(--mat-button-filled-disabled-label-text-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent));background-color:var(--mat-button-filled-disabled-container-color, color-mix(in srgb, var(--mat-sys-on-surface) 12%, transparent))}.mat-mdc-unelevated-button.mat-mdc-button-disabled-interactive{pointer-events:auto}.mat-mdc-raised-button{transition:box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);box-shadow:var(--mat-button-protected-container-elevation-shadow, var(--mat-sys-level1));height:var(--mat-button-protected-container-height, 40px);font-family:var(--mat-button-protected-label-text-font, var(--mat-sys-label-large-font));font-size:var(--mat-button-protected-label-text-size, var(--mat-sys-label-large-size));letter-spacing:var(--mat-button-protected-label-text-tracking, var(--mat-sys-label-large-tracking));text-transform:var(--mat-button-protected-label-text-transform);font-weight:var(--mat-button-protected-label-text-weight, var(--mat-sys-label-large-weight));padding:0 var(--mat-button-protected-horizontal-padding, 24px)}.mat-mdc-raised-button>.mat-icon{margin-right:var(--mat-button-protected-icon-spacing, 8px);margin-left:var(--mat-button-protected-icon-offset, -8px)}[dir=rtl] .mat-mdc-raised-button>.mat-icon{margin-right:var(--mat-button-protected-icon-offset, -8px);margin-left:var(--mat-button-protected-icon-spacing, 8px)}.mat-mdc-raised-button .mdc-button__label+.mat-icon{margin-right:var(--mat-button-protected-icon-offset, -8px);margin-left:var(--mat-button-protected-icon-spacing, 8px)}[dir=rtl] .mat-mdc-raised-button .mdc-button__label+.mat-icon{margin-right:var(--mat-button-protected-icon-spacing, 8px);margin-left:var(--mat-button-protected-icon-offset, -8px)}.mat-mdc-raised-button .mat-ripple-element{background-color:var(--mat-button-protected-ripple-color, color-mix(in srgb, var(--mat-sys-primary) calc(var(--mat-sys-pressed-state-layer-opacity) * 100%), transparent))}.mat-mdc-raised-button .mat-mdc-button-persistent-ripple::before{background-color:var(--mat-button-protected-state-layer-color, var(--mat-sys-primary))}.mat-mdc-raised-button.mat-mdc-button-disabled .mat-mdc-button-persistent-ripple::before{background-color:var(--mat-button-protected-disabled-state-layer-color, var(--mat-sys-on-surface-variant))}.mat-mdc-raised-button:hover>.mat-mdc-button-persistent-ripple::before{opacity:var(--mat-button-protected-hover-state-layer-opacity, var(--mat-sys-hover-state-layer-opacity))}.mat-mdc-raised-button.cdk-program-focused>.mat-mdc-button-persistent-ripple::before,.mat-mdc-raised-button.cdk-keyboard-focused>.mat-mdc-button-persistent-ripple::before,.mat-mdc-raised-button.mat-mdc-button-disabled-interactive:focus>.mat-mdc-button-persistent-ripple::before{opacity:var(--mat-button-protected-focus-state-layer-opacity, var(--mat-sys-focus-state-layer-opacity))}.mat-mdc-raised-button:active>.mat-mdc-button-persistent-ripple::before{opacity:var(--mat-button-protected-pressed-state-layer-opacity, var(--mat-sys-pressed-state-layer-opacity))}.mat-mdc-raised-button .mat-mdc-button-touch-target{position:absolute;top:50%;height:var(--mat-button-protected-touch-target-size, 48px);display:var(--mat-button-protected-touch-target-display, block);left:0;right:0;transform:translateY(-50%)}.mat-mdc-raised-button:not(:disabled){color:var(--mat-button-protected-label-text-color, var(--mat-sys-primary));background-color:var(--mat-button-protected-container-color, var(--mat-sys-surface))}.mat-mdc-raised-button,.mat-mdc-raised-button .mdc-button__ripple{border-radius:var(--mat-button-protected-container-shape, var(--mat-sys-corner-full))}.mat-mdc-raised-button:hover{box-shadow:var(--mat-button-protected-hover-container-elevation-shadow, var(--mat-sys-level2))}.mat-mdc-raised-button:focus{box-shadow:var(--mat-button-protected-focus-container-elevation-shadow, var(--mat-sys-level1))}.mat-mdc-raised-button:active,.mat-mdc-raised-button:focus:active{box-shadow:var(--mat-button-protected-pressed-container-elevation-shadow, var(--mat-sys-level1))}.mat-mdc-raised-button[disabled],.mat-mdc-raised-button.mat-mdc-button-disabled{cursor:default;pointer-events:none;color:var(--mat-button-protected-disabled-label-text-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent));background-color:var(--mat-button-protected-disabled-container-color, color-mix(in srgb, var(--mat-sys-on-surface) 12%, transparent))}.mat-mdc-raised-button[disabled].mat-mdc-button-disabled,.mat-mdc-raised-button.mat-mdc-button-disabled.mat-mdc-button-disabled{box-shadow:var(--mat-button-protected-disabled-container-elevation-shadow, var(--mat-sys-level0))}.mat-mdc-raised-button.mat-mdc-button-disabled-interactive{pointer-events:auto}.mat-mdc-outlined-button{border-style:solid;transition:border 280ms cubic-bezier(0.4, 0, 0.2, 1);height:var(--mat-button-outlined-container-height, 40px);font-family:var(--mat-button-outlined-label-text-font, var(--mat-sys-label-large-font));font-size:var(--mat-button-outlined-label-text-size, var(--mat-sys-label-large-size));letter-spacing:var(--mat-button-outlined-label-text-tracking, var(--mat-sys-label-large-tracking));text-transform:var(--mat-button-outlined-label-text-transform);font-weight:var(--mat-button-outlined-label-text-weight, var(--mat-sys-label-large-weight));border-radius:var(--mat-button-outlined-container-shape, var(--mat-sys-corner-full));border-width:var(--mat-button-outlined-outline-width, 1px);padding:0 var(--mat-button-outlined-horizontal-padding, 24px)}.mat-mdc-outlined-button>.mat-icon{margin-right:var(--mat-button-outlined-icon-spacing, 8px);margin-left:var(--mat-button-outlined-icon-offset, -8px)}[dir=rtl] .mat-mdc-outlined-button>.mat-icon{margin-right:var(--mat-button-outlined-icon-offset, -8px);margin-left:var(--mat-button-outlined-icon-spacing, 8px)}.mat-mdc-outlined-button .mdc-button__label+.mat-icon{margin-right:var(--mat-button-outlined-icon-offset, -8px);margin-left:var(--mat-button-outlined-icon-spacing, 8px)}[dir=rtl] .mat-mdc-outlined-button .mdc-button__label+.mat-icon{margin-right:var(--mat-button-outlined-icon-spacing, 8px);margin-left:var(--mat-button-outlined-icon-offset, -8px)}.mat-mdc-outlined-button .mat-ripple-element{background-color:var(--mat-button-outlined-ripple-color, color-mix(in srgb, var(--mat-sys-primary) calc(var(--mat-sys-pressed-state-layer-opacity) * 100%), transparent))}.mat-mdc-outlined-button .mat-mdc-button-persistent-ripple::before{background-color:var(--mat-button-outlined-state-layer-color, var(--mat-sys-primary))}.mat-mdc-outlined-button.mat-mdc-button-disabled .mat-mdc-button-persistent-ripple::before{background-color:var(--mat-button-outlined-disabled-state-layer-color, var(--mat-sys-on-surface-variant))}.mat-mdc-outlined-button:hover>.mat-mdc-button-persistent-ripple::before{opacity:var(--mat-button-outlined-hover-state-layer-opacity, var(--mat-sys-hover-state-layer-opacity))}.mat-mdc-outlined-button.cdk-program-focused>.mat-mdc-button-persistent-ripple::before,.mat-mdc-outlined-button.cdk-keyboard-focused>.mat-mdc-button-persistent-ripple::before,.mat-mdc-outlined-button.mat-mdc-button-disabled-interactive:focus>.mat-mdc-button-persistent-ripple::before{opacity:var(--mat-button-outlined-focus-state-layer-opacity, var(--mat-sys-focus-state-layer-opacity))}.mat-mdc-outlined-button:active>.mat-mdc-button-persistent-ripple::before{opacity:var(--mat-button-outlined-pressed-state-layer-opacity, var(--mat-sys-pressed-state-layer-opacity))}.mat-mdc-outlined-button .mat-mdc-button-touch-target{position:absolute;top:50%;height:var(--mat-button-outlined-touch-target-size, 48px);display:var(--mat-button-outlined-touch-target-display, block);left:0;right:0;transform:translateY(-50%)}.mat-mdc-outlined-button:not(:disabled){color:var(--mat-button-outlined-label-text-color, var(--mat-sys-primary));border-color:var(--mat-button-outlined-outline-color, var(--mat-sys-outline))}.mat-mdc-outlined-button[disabled],.mat-mdc-outlined-button.mat-mdc-button-disabled{cursor:default;pointer-events:none;color:var(--mat-button-outlined-disabled-label-text-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent));border-color:var(--mat-button-outlined-disabled-outline-color, color-mix(in srgb, var(--mat-sys-on-surface) 12%, transparent))}.mat-mdc-outlined-button.mat-mdc-button-disabled-interactive{pointer-events:auto}.mat-tonal-button{transition:box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);height:var(--mat-button-tonal-container-height, 40px);font-family:var(--mat-button-tonal-label-text-font, var(--mat-sys-label-large-font));font-size:var(--mat-button-tonal-label-text-size, var(--mat-sys-label-large-size));letter-spacing:var(--mat-button-tonal-label-text-tracking, var(--mat-sys-label-large-tracking));text-transform:var(--mat-button-tonal-label-text-transform);font-weight:var(--mat-button-tonal-label-text-weight, var(--mat-sys-label-large-weight));padding:0 var(--mat-button-tonal-horizontal-padding, 24px)}.mat-tonal-button:not(:disabled){color:var(--mat-button-tonal-label-text-color, var(--mat-sys-on-secondary-container));background-color:var(--mat-button-tonal-container-color, var(--mat-sys-secondary-container))}.mat-tonal-button,.mat-tonal-button .mdc-button__ripple{border-radius:var(--mat-button-tonal-container-shape, var(--mat-sys-corner-full))}.mat-tonal-button[disabled],.mat-tonal-button.mat-mdc-button-disabled{cursor:default;pointer-events:none;color:var(--mat-button-tonal-disabled-label-text-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent));background-color:var(--mat-button-tonal-disabled-container-color, color-mix(in srgb, var(--mat-sys-on-surface) 12%, transparent))}.mat-tonal-button.mat-mdc-button-disabled-interactive{pointer-events:auto}.mat-tonal-button>.mat-icon{margin-right:var(--mat-button-tonal-icon-spacing, 8px);margin-left:var(--mat-button-tonal-icon-offset, -8px)}[dir=rtl] .mat-tonal-button>.mat-icon{margin-right:var(--mat-button-tonal-icon-offset, -8px);margin-left:var(--mat-button-tonal-icon-spacing, 8px)}.mat-tonal-button .mdc-button__label+.mat-icon{margin-right:var(--mat-button-tonal-icon-offset, -8px);margin-left:var(--mat-button-tonal-icon-spacing, 8px)}[dir=rtl] .mat-tonal-button .mdc-button__label+.mat-icon{margin-right:var(--mat-button-tonal-icon-spacing, 8px);margin-left:var(--mat-button-tonal-icon-offset, -8px)}.mat-tonal-button .mat-ripple-element{background-color:var(--mat-button-tonal-ripple-color, color-mix(in srgb, var(--mat-sys-on-secondary-container) calc(var(--mat-sys-pressed-state-layer-opacity) * 100%), transparent))}.mat-tonal-button .mat-mdc-button-persistent-ripple::before{background-color:var(--mat-button-tonal-state-layer-color, var(--mat-sys-on-secondary-container))}.mat-tonal-button.mat-mdc-button-disabled .mat-mdc-button-persistent-ripple::before{background-color:var(--mat-button-tonal-disabled-state-layer-color, var(--mat-sys-on-surface-variant))}.mat-tonal-button:hover>.mat-mdc-button-persistent-ripple::before{opacity:var(--mat-button-tonal-hover-state-layer-opacity, var(--mat-sys-hover-state-layer-opacity))}.mat-tonal-button.cdk-program-focused>.mat-mdc-button-persistent-ripple::before,.mat-tonal-button.cdk-keyboard-focused>.mat-mdc-button-persistent-ripple::before,.mat-tonal-button.mat-mdc-button-disabled-interactive:focus>.mat-mdc-button-persistent-ripple::before{opacity:var(--mat-button-tonal-focus-state-layer-opacity, var(--mat-sys-focus-state-layer-opacity))}.mat-tonal-button:active>.mat-mdc-button-persistent-ripple::before{opacity:var(--mat-button-tonal-pressed-state-layer-opacity, var(--mat-sys-pressed-state-layer-opacity))}.mat-tonal-button .mat-mdc-button-touch-target{position:absolute;top:50%;height:var(--mat-button-tonal-touch-target-size, 48px);display:var(--mat-button-tonal-touch-target-display, block);left:0;right:0;transform:translateY(-50%)}.mat-mdc-button,.mat-mdc-unelevated-button,.mat-mdc-raised-button,.mat-mdc-outlined-button,.mat-tonal-button{-webkit-tap-highlight-color:rgba(0,0,0,0)}.mat-mdc-button .mat-mdc-button-ripple,.mat-mdc-button .mat-mdc-button-persistent-ripple,.mat-mdc-button .mat-mdc-button-persistent-ripple::before,.mat-mdc-unelevated-button .mat-mdc-button-ripple,.mat-mdc-unelevated-button .mat-mdc-button-persistent-ripple,.mat-mdc-unelevated-button .mat-mdc-button-persistent-ripple::before,.mat-mdc-raised-button .mat-mdc-button-ripple,.mat-mdc-raised-button .mat-mdc-button-persistent-ripple,.mat-mdc-raised-button .mat-mdc-button-persistent-ripple::before,.mat-mdc-outlined-button .mat-mdc-button-ripple,.mat-mdc-outlined-button .mat-mdc-button-persistent-ripple,.mat-mdc-outlined-button .mat-mdc-button-persistent-ripple::before,.mat-tonal-button .mat-mdc-button-ripple,.mat-tonal-button .mat-mdc-button-persistent-ripple,.mat-tonal-button .mat-mdc-button-persistent-ripple::before{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none;border-radius:inherit}.mat-mdc-button .mat-mdc-button-ripple,.mat-mdc-unelevated-button .mat-mdc-button-ripple,.mat-mdc-raised-button .mat-mdc-button-ripple,.mat-mdc-outlined-button .mat-mdc-button-ripple,.mat-tonal-button .mat-mdc-button-ripple{overflow:hidden}.mat-mdc-button .mat-mdc-button-persistent-ripple::before,.mat-mdc-unelevated-button .mat-mdc-button-persistent-ripple::before,.mat-mdc-raised-button .mat-mdc-button-persistent-ripple::before,.mat-mdc-outlined-button .mat-mdc-button-persistent-ripple::before,.mat-tonal-button .mat-mdc-button-persistent-ripple::before{content:"";opacity:0}.mat-mdc-button .mdc-button__label,.mat-mdc-button .mat-icon,.mat-mdc-unelevated-button .mdc-button__label,.mat-mdc-unelevated-button .mat-icon,.mat-mdc-raised-button .mdc-button__label,.mat-mdc-raised-button .mat-icon,.mat-mdc-outlined-button .mdc-button__label,.mat-mdc-outlined-button .mat-icon,.mat-tonal-button .mdc-button__label,.mat-tonal-button .mat-icon{z-index:1;position:relative}.mat-mdc-button .mat-focus-indicator,.mat-mdc-unelevated-button .mat-focus-indicator,.mat-mdc-raised-button .mat-focus-indicator,.mat-mdc-outlined-button .mat-focus-indicator,.mat-tonal-button .mat-focus-indicator{top:0;left:0;right:0;bottom:0;position:absolute;border-radius:inherit}.mat-mdc-button:focus>.mat-focus-indicator::before,.mat-mdc-unelevated-button:focus>.mat-focus-indicator::before,.mat-mdc-raised-button:focus>.mat-focus-indicator::before,.mat-mdc-outlined-button:focus>.mat-focus-indicator::before,.mat-tonal-button:focus>.mat-focus-indicator::before{content:"";border-radius:inherit}.mat-mdc-button._mat-animation-noopable,.mat-mdc-unelevated-button._mat-animation-noopable,.mat-mdc-raised-button._mat-animation-noopable,.mat-mdc-outlined-button._mat-animation-noopable,.mat-tonal-button._mat-animation-noopable{transition:none !important;animation:none !important}.mat-mdc-button>.mat-icon,.mat-mdc-unelevated-button>.mat-icon,.mat-mdc-raised-button>.mat-icon,.mat-mdc-outlined-button>.mat-icon,.mat-tonal-button>.mat-icon{display:inline-block;position:relative;vertical-align:top;font-size:1.125rem;height:1.125rem;width:1.125rem}.mat-mdc-outlined-button .mat-mdc-button-ripple,.mat-mdc-outlined-button .mdc-button__ripple{top:-1px;left:-1px;bottom:-1px;right:-1px}.mat-mdc-unelevated-button .mat-focus-indicator::before,.mat-tonal-button .mat-focus-indicator::before,.mat-mdc-raised-button .mat-focus-indicator::before{margin:calc(calc(var(--mat-focus-indicator-border-width, 3px) + 2px)*-1)}.mat-mdc-outlined-button .mat-focus-indicator::before{margin:calc(calc(var(--mat-focus-indicator-border-width, 3px) + 3px)*-1)} `,`@media(forced-colors: active){.mat-mdc-button:not(.mdc-button--outlined),.mat-mdc-unelevated-button:not(.mdc-button--outlined),.mat-mdc-raised-button:not(.mdc-button--outlined),.mat-mdc-outlined-button:not(.mdc-button--outlined),.mat-mdc-button-base.mat-tonal-button,.mat-mdc-icon-button.mat-mdc-icon-button,.mat-mdc-outlined-button .mdc-button__ripple{outline:solid 1px}} -`],encapsulation:2,changeDetection:0})}return t})();function Fee(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 Nee=new O("mat-mdc-fab-default-options",{providedIn:"root",factory:d3});function d3(){return{color:"accent"}}var s3=d3(),u3=(()=>{class t extends xx{_options=u(Nee,{optional:!0});_isFab=!0;extended;constructor(){super(),this._options=this._options||s3,this.color=this._options.color||s3.color}static \u0275fac=function(i){return new(i||t)};static \u0275cmp=E({type:t,selectors:[["button","mat-fab",""],["a","mat-fab",""],["button","matFab",""],["a","matFab",""]],hostAttrs:[1,"mdc-fab","mat-mdc-fab-base","mat-mdc-fab"],hostVars:4,hostBindings:function(i,r){i&2&&G("mdc-fab--extended",r.extended)("mat-mdc-extended-fab",r.extended)},inputs:{extended:[2,"extended","extended",L]},exportAs:["matButton","matAnchor"],features:[le],attrs:Pee,ngContentSelectors:c3,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(i,r){i&1&&(Se(l3),Xt(0,"span",0),ne(1),pt(2,"span",1),ne(3,1),_t(),ne(4,2),Xt(5,"span",2)(6,"span",3)),i&2&&G("mdc-button__ripple",!r._isFab)("mdc-fab__ripple",r._isFab)},styles:[`.mat-mdc-fab-base{-webkit-user-select:none;user-select:none;position:relative;display:inline-flex;align-items:center;justify-content:center;box-sizing:border-box;width:56px;height:56px;padding:0;border:none;fill:currentColor;text-decoration:none;cursor:pointer;-moz-appearance:none;-webkit-appearance:none;overflow:visible;transition:box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1),opacity 15ms linear 30ms,transform 270ms 0ms cubic-bezier(0, 0, 0.2, 1);flex-shrink:0;-webkit-tap-highlight-color:rgba(0,0,0,0)}.mat-mdc-fab-base .mat-mdc-button-ripple,.mat-mdc-fab-base .mat-mdc-button-persistent-ripple,.mat-mdc-fab-base .mat-mdc-button-persistent-ripple::before{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none;border-radius:inherit}.mat-mdc-fab-base .mat-mdc-button-ripple{overflow:hidden}.mat-mdc-fab-base .mat-mdc-button-persistent-ripple::before{content:"";opacity:0}.mat-mdc-fab-base .mdc-button__label,.mat-mdc-fab-base .mat-icon{z-index:1;position:relative}.mat-mdc-fab-base .mat-focus-indicator{top:0;left:0;right:0;bottom:0;position:absolute}.mat-mdc-fab-base:focus>.mat-focus-indicator::before{content:""}.mat-mdc-fab-base._mat-animation-noopable{transition:none !important;animation:none !important}.mat-mdc-fab-base::before{position:absolute;box-sizing:border-box;width:100%;height:100%;top:0;left:0;border:1px solid rgba(0,0,0,0);border-radius:inherit;content:"";pointer-events:none}.mat-mdc-fab-base[hidden]{display:none}.mat-mdc-fab-base::-moz-focus-inner{padding:0;border:0}.mat-mdc-fab-base:active,.mat-mdc-fab-base:focus{outline:none}.mat-mdc-fab-base:hover{cursor:pointer}.mat-mdc-fab-base>svg{width:100%}.mat-mdc-fab-base .mat-icon,.mat-mdc-fab-base .material-icons{transition:transform 180ms 90ms cubic-bezier(0, 0, 0.2, 1);fill:currentColor;will-change:transform}.mat-mdc-fab-base .mat-focus-indicator::before{margin:calc(calc(var(--mat-focus-indicator-border-width, 3px) + 2px)*-1)}.mat-mdc-fab-base[disabled],.mat-mdc-fab-base.mat-mdc-button-disabled{cursor:default;pointer-events:none}.mat-mdc-fab-base[disabled],.mat-mdc-fab-base[disabled]:focus,.mat-mdc-fab-base.mat-mdc-button-disabled,.mat-mdc-fab-base.mat-mdc-button-disabled:focus{box-shadow:none}.mat-mdc-fab-base.mat-mdc-button-disabled-interactive{pointer-events:auto}.mat-mdc-fab{background-color:var(--mat-fab-container-color, var(--mat-sys-primary-container));border-radius:var(--mat-fab-container-shape, var(--mat-sys-corner-large));color:var(--mat-fab-foreground-color, var(--mat-sys-on-primary-container, inherit));box-shadow:var(--mat-fab-container-elevation-shadow, var(--mat-sys-level3))}.mat-mdc-fab:hover{box-shadow:var(--mat-fab-hover-container-elevation-shadow, var(--mat-sys-level4))}.mat-mdc-fab:focus{box-shadow:var(--mat-fab-focus-container-elevation-shadow, var(--mat-sys-level3))}.mat-mdc-fab:active,.mat-mdc-fab:focus:active{box-shadow:var(--mat-fab-pressed-container-elevation-shadow, var(--mat-sys-level3))}.mat-mdc-fab[disabled],.mat-mdc-fab.mat-mdc-button-disabled{cursor:default;pointer-events:none;color:var(--mat-fab-disabled-state-foreground-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent));background-color:var(--mat-fab-disabled-state-container-color, color-mix(in srgb, var(--mat-sys-on-surface) 12%, transparent))}.mat-mdc-fab.mat-mdc-button-disabled-interactive{pointer-events:auto}.mat-mdc-fab .mat-mdc-button-touch-target{position:absolute;top:50%;height:var(--mat-fab-touch-target-size, 48px);display:var(--mat-fab-touch-target-display, block);left:50%;width:var(--mat-fab-touch-target-size, 48px);transform:translate(-50%, -50%)}.mat-mdc-fab .mat-ripple-element{background-color:var(--mat-fab-ripple-color, color-mix(in srgb, var(--mat-sys-on-primary-container) calc(var(--mat-sys-pressed-state-layer-opacity) * 100%), transparent))}.mat-mdc-fab .mat-mdc-button-persistent-ripple::before{background-color:var(--mat-fab-state-layer-color, var(--mat-sys-on-primary-container))}.mat-mdc-fab.mat-mdc-button-disabled .mat-mdc-button-persistent-ripple::before{background-color:var(--mat-fab-disabled-state-layer-color)}.mat-mdc-fab:hover>.mat-mdc-button-persistent-ripple::before{opacity:var(--mat-fab-hover-state-layer-opacity, var(--mat-sys-hover-state-layer-opacity))}.mat-mdc-fab.cdk-program-focused>.mat-mdc-button-persistent-ripple::before,.mat-mdc-fab.cdk-keyboard-focused>.mat-mdc-button-persistent-ripple::before,.mat-mdc-fab.mat-mdc-button-disabled-interactive:focus>.mat-mdc-button-persistent-ripple::before{opacity:var(--mat-fab-focus-state-layer-opacity, var(--mat-sys-focus-state-layer-opacity))}.mat-mdc-fab:active>.mat-mdc-button-persistent-ripple::before{opacity:var(--mat-fab-pressed-state-layer-opacity, var(--mat-sys-pressed-state-layer-opacity))}.mat-mdc-mini-fab{width:40px;height:40px;background-color:var(--mat-fab-small-container-color, var(--mat-sys-primary-container));border-radius:var(--mat-fab-small-container-shape, var(--mat-sys-corner-medium));color:var(--mat-fab-small-foreground-color, var(--mat-sys-on-primary-container, inherit));box-shadow:var(--mat-fab-small-container-elevation-shadow, var(--mat-sys-level3))}.mat-mdc-mini-fab:hover{box-shadow:var(--mat-fab-small-hover-container-elevation-shadow, var(--mat-sys-level4))}.mat-mdc-mini-fab:focus{box-shadow:var(--mat-fab-small-focus-container-elevation-shadow, var(--mat-sys-level3))}.mat-mdc-mini-fab:active,.mat-mdc-mini-fab:focus:active{box-shadow:var(--mat-fab-small-pressed-container-elevation-shadow, var(--mat-sys-level3))}.mat-mdc-mini-fab[disabled],.mat-mdc-mini-fab.mat-mdc-button-disabled{cursor:default;pointer-events:none;color:var(--mat-fab-small-disabled-state-foreground-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent));background-color:var(--mat-fab-small-disabled-state-container-color, color-mix(in srgb, var(--mat-sys-on-surface) 12%, transparent))}.mat-mdc-mini-fab.mat-mdc-button-disabled-interactive{pointer-events:auto}.mat-mdc-mini-fab .mat-mdc-button-touch-target{position:absolute;top:50%;height:var(--mat-fab-small-touch-target-size, 48px);display:var(--mat-fab-small-touch-target-display);left:50%;width:var(--mat-fab-small-touch-target-size, 48px);transform:translate(-50%, -50%)}.mat-mdc-mini-fab .mat-ripple-element{background-color:var(--mat-fab-small-ripple-color, color-mix(in srgb, var(--mat-sys-on-primary-container) calc(var(--mat-sys-pressed-state-layer-opacity) * 100%), transparent))}.mat-mdc-mini-fab .mat-mdc-button-persistent-ripple::before{background-color:var(--mat-fab-small-state-layer-color, var(--mat-sys-on-primary-container))}.mat-mdc-mini-fab.mat-mdc-button-disabled .mat-mdc-button-persistent-ripple::before{background-color:var(--mat-fab-small-disabled-state-layer-color)}.mat-mdc-mini-fab:hover>.mat-mdc-button-persistent-ripple::before{opacity:var(--mat-fab-small-hover-state-layer-opacity, var(--mat-sys-hover-state-layer-opacity))}.mat-mdc-mini-fab.cdk-program-focused>.mat-mdc-button-persistent-ripple::before,.mat-mdc-mini-fab.cdk-keyboard-focused>.mat-mdc-button-persistent-ripple::before,.mat-mdc-mini-fab.mat-mdc-button-disabled-interactive:focus>.mat-mdc-button-persistent-ripple::before{opacity:var(--mat-fab-small-focus-state-layer-opacity, var(--mat-sys-focus-state-layer-opacity))}.mat-mdc-mini-fab:active>.mat-mdc-button-persistent-ripple::before{opacity:var(--mat-fab-small-pressed-state-layer-opacity, var(--mat-sys-pressed-state-layer-opacity))}.mat-mdc-extended-fab{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;padding-left:20px;padding-right:20px;width:auto;max-width:100%;line-height:normal;box-shadow:var(--mat-fab-extended-container-elevation-shadow, var(--mat-sys-level3));height:var(--mat-fab-extended-container-height, 56px);border-radius:var(--mat-fab-extended-container-shape, var(--mat-sys-corner-large));font-family:var(--mat-fab-extended-label-text-font, var(--mat-sys-label-large-font));font-size:var(--mat-fab-extended-label-text-size, var(--mat-sys-label-large-size));font-weight:var(--mat-fab-extended-label-text-weight, var(--mat-sys-label-large-weight));letter-spacing:var(--mat-fab-extended-label-text-tracking, var(--mat-sys-label-large-tracking))}.mat-mdc-extended-fab:hover{box-shadow:var(--mat-fab-extended-hover-container-elevation-shadow, var(--mat-sys-level4))}.mat-mdc-extended-fab:focus{box-shadow:var(--mat-fab-extended-focus-container-elevation-shadow, var(--mat-sys-level3))}.mat-mdc-extended-fab:active,.mat-mdc-extended-fab:focus:active{box-shadow:var(--mat-fab-extended-pressed-container-elevation-shadow, var(--mat-sys-level3))}.mat-mdc-extended-fab[disabled],.mat-mdc-extended-fab.mat-mdc-button-disabled{cursor:default;pointer-events:none}.mat-mdc-extended-fab[disabled],.mat-mdc-extended-fab[disabled]:focus,.mat-mdc-extended-fab.mat-mdc-button-disabled,.mat-mdc-extended-fab.mat-mdc-button-disabled:focus{box-shadow:none}.mat-mdc-extended-fab.mat-mdc-button-disabled-interactive{pointer-events:auto}[dir=rtl] .mat-mdc-extended-fab .mdc-button__label+.mat-icon,[dir=rtl] .mat-mdc-extended-fab .mdc-button__label+.material-icons,.mat-mdc-extended-fab>.mat-icon,.mat-mdc-extended-fab>.material-icons{margin-left:-8px;margin-right:12px}.mat-mdc-extended-fab .mdc-button__label+.mat-icon,.mat-mdc-extended-fab .mdc-button__label+.material-icons,[dir=rtl] .mat-mdc-extended-fab>.mat-icon,[dir=rtl] .mat-mdc-extended-fab>.material-icons{margin-left:12px;margin-right:-8px}.mat-mdc-extended-fab .mat-mdc-button-touch-target{width:100%} -`],encapsulation:2,changeDetection:0})}return t})();var Be=(()=>{class t{static \u0275fac=function(i){return new(i||t)};static \u0275mod=ee({type:t});static \u0275inj=J({imports:[De,Mo,De]})}return t})();function Lee(t,n){if(t&1&&(m(0,"mat-option",17),g(1),h()),t&2){let e=n.$implicit;v("value",e),f(),pe(" ",e," ")}}function Vee(t,n){if(t&1){let e=q();m(0,"mat-form-field",14)(1,"mat-select",16,0),S("selectionChange",function(r){T(e);let o=x(2);return I(o._changePageSize(r.value))}),xt(3,Lee,2,2,"mat-option",17,Mm),h(),m(5,"div",18),S("click",function(){T(e);let r=Me(2);return I(r.open())}),h()()}if(t&2){let e=x(2);v("appearance",e._formFieldAppearance)("color",e.color),f(),v("value",e.pageSize)("disabled",e.disabled),Xl("aria-labelledby",e._pageSizeLabelId),v("panelClass",e.selectConfig.panelClass||"")("disableOptionCentering",e.selectConfig.disableOptionCentering),f(2),Ct(e._displayedPageSizeOptions)}}function Bee(t,n){if(t&1&&(m(0,"div",15),g(1),h()),t&2){let e=x(2);f(),N(e.pageSize)}}function jee(t,n){if(t&1&&(m(0,"div",3)(1,"div",13),g(2),h(),V(3,Vee,6,7,"mat-form-field",14),V(4,Bee,2,1,"div",15),h()),t&2){let e=x();f(),X("id",e._pageSizeLabelId),f(),pe(" ",e._intl.itemsPerPageLabel," "),f(),B(e._displayedPageSizeOptions.length>1?3:-1),f(),B(e._displayedPageSizeOptions.length<=1?4:-1)}}function Hee(t,n){if(t&1){let e=q();m(0,"button",19),S("click",function(){T(e);let r=x();return I(r._buttonClicked(0,r._previousButtonsDisabled()))}),Zt(),m(1,"svg",8),M(2,"path",20),h()()}if(t&2){let e=x();v("matTooltip",e._intl.firstPageLabel)("matTooltipDisabled",e._previousButtonsDisabled())("disabled",e._previousButtonsDisabled())("tabindex",e._previousButtonsDisabled()?-1:null),X("aria-label",e._intl.firstPageLabel)}}function zee(t,n){if(t&1){let e=q();m(0,"button",21),S("click",function(){T(e);let r=x();return I(r._buttonClicked(r.getNumberOfPages()-1,r._nextButtonsDisabled()))}),Zt(),m(1,"svg",8),M(2,"path",22),h()()}if(t&2){let e=x();v("matTooltip",e._intl.lastPageLabel)("matTooltipDisabled",e._nextButtonsDisabled())("disabled",e._nextButtonsDisabled())("tabindex",e._nextButtonsDisabled()?-1:null),X("aria-label",e._intl.lastPageLabel)}}var bc=(()=>{class t{changes=new z;itemsPerPageLabel="Items per page:";nextPageLabel="Next page";previousPageLabel="Previous page";firstPageLabel="First page";lastPageLabel="Last page";getRangeLabel=(e,i,r)=>{if(r==0||i==0)return`0 of ${r}`;r=Math.max(r,0);let o=e*i,a=o{class t{_intl=u(bc);_changeDetectorRef=u(ye);_formFieldAppearance;_pageSizeLabelId=u(Ze).getId("mat-paginator-page-size-label-");_intlChanges;_isInitialized=!1;_initializedStream=new Wa(1);color;get pageIndex(){return this._pageIndex}set pageIndex(e){this._pageIndex=Math.max(e||0,0),this._changeDetectorRef.markForCheck()}_pageIndex=0;get length(){return this._length}set length(e){this._length=e||0,this._changeDetectorRef.markForCheck()}_length=0;get pageSize(){return this._pageSize}set pageSize(e){this._pageSize=Math.max(e||0,0),this._updateDisplayedPageSizeOptions()}_pageSize;get pageSizeOptions(){return this._pageSizeOptions}set pageSizeOptions(e){this._pageSizeOptions=(e||[]).map(i=>dt(i,0)),this._updateDisplayedPageSizeOptions()}_pageSizeOptions=[];hidePageSize=!1;showFirstLastButtons=!1;selectConfig={};disabled=!1;page=new U;_displayedPageSizeOptions;initialized=this._initializedStream;constructor(){let e=this._intl,i=u(Gee,{optional:!0});if(this._intlChanges=e.changes.subscribe(()=>this._changeDetectorRef.markForCheck()),i){let{pageSize:r,pageSizeOptions:o,hidePageSize:a,showFirstLastButtons:s}=i;r!=null&&(this._pageSize=r),o!=null&&(this._pageSizeOptions=o),a!=null&&(this.hidePageSize=a),s!=null&&(this.showFirstLastButtons=s)}this._formFieldAppearance=i?.formFieldAppearance||"outline"}ngOnInit(){this._isInitialized=!0,this._updateDisplayedPageSizeOptions(),this._initializedStream.next()}ngOnDestroy(){this._initializedStream.complete(),this._intlChanges.unsubscribe()}nextPage(){this.hasNextPage()&&this._navigate(this.pageIndex+1)}previousPage(){this.hasPreviousPage()&&this._navigate(this.pageIndex-1)}firstPage(){this.hasPreviousPage()&&this._navigate(0)}lastPage(){this.hasNextPage()&&this._navigate(this.getNumberOfPages()-1)}hasPreviousPage(){return this.pageIndex>=1&&this.pageSize!=0}hasNextPage(){let e=this.getNumberOfPages()-1;return this.pageIndexe-i),this._changeDetectorRef.markForCheck())}_emitPageEvent(e){this.page.emit({previousPageIndex:e,pageIndex:this.pageIndex,pageSize:this.pageSize,length:this.length})}_navigate(e){let i=this.pageIndex;e!==i&&(this.pageIndex=e,this._emitPageEvent(i))}_buttonClicked(e,i){i||this._navigate(e)}static \u0275fac=function(i){return new(i||t)};static \u0275cmp=E({type:t,selectors:[["mat-paginator"]],hostAttrs:["role","group",1,"mat-mdc-paginator"],inputs:{color:"color",pageIndex:[2,"pageIndex","pageIndex",dt],length:[2,"length","length",dt],pageSize:[2,"pageSize","pageSize",dt],pageSizeOptions:"pageSizeOptions",hidePageSize:[2,"hidePageSize","hidePageSize",L],showFirstLastButtons:[2,"showFirstLastButtons","showFirstLastButtons",L],selectConfig:"selectConfig",disabled:[2,"disabled","disabled",L]},outputs:{page:"page"},exportAs:["matPaginator"],decls:14,vars:14,consts:[["selectRef",""],[1,"mat-mdc-paginator-outer-container"],[1,"mat-mdc-paginator-container"],[1,"mat-mdc-paginator-page-size"],[1,"mat-mdc-paginator-range-actions"],["aria-live","polite",1,"mat-mdc-paginator-range-label"],["matIconButton","","type","button","matTooltipPosition","above","disabledInteractive","",1,"mat-mdc-paginator-navigation-first",3,"matTooltip","matTooltipDisabled","disabled","tabindex"],["matIconButton","","type","button","matTooltipPosition","above","disabledInteractive","",1,"mat-mdc-paginator-navigation-previous",3,"click","matTooltip","matTooltipDisabled","disabled","tabindex"],["viewBox","0 0 24 24","focusable","false","aria-hidden","true",1,"mat-mdc-paginator-icon"],["d","M15.41 7.41L14 6l-6 6 6 6 1.41-1.41L10.83 12z"],["matIconButton","","type","button","matTooltipPosition","above","disabledInteractive","",1,"mat-mdc-paginator-navigation-next",3,"click","matTooltip","matTooltipDisabled","disabled","tabindex"],["d","M10 6L8.59 7.41 13.17 12l-4.58 4.59L10 18l6-6z"],["matIconButton","","type","button","matTooltipPosition","above","disabledInteractive","",1,"mat-mdc-paginator-navigation-last",3,"matTooltip","matTooltipDisabled","disabled","tabindex"],[1,"mat-mdc-paginator-page-size-label"],[1,"mat-mdc-paginator-page-size-select",3,"appearance","color"],[1,"mat-mdc-paginator-page-size-value"],["hideSingleSelectionIndicator","",3,"selectionChange","value","disabled","aria-labelledby","panelClass","disableOptionCentering"],[3,"value"],[1,"mat-mdc-paginator-touch-target",3,"click"],["matIconButton","","type","button","matTooltipPosition","above","disabledInteractive","",1,"mat-mdc-paginator-navigation-first",3,"click","matTooltip","matTooltipDisabled","disabled","tabindex"],["d","M18.41 16.59L13.82 12l4.59-4.59L17 6l-6 6 6 6zM6 6h2v12H6z"],["matIconButton","","type","button","matTooltipPosition","above","disabledInteractive","",1,"mat-mdc-paginator-navigation-last",3,"click","matTooltip","matTooltipDisabled","disabled","tabindex"],["d","M5.59 7.41L10.18 12l-4.59 4.59L7 18l6-6-6-6zM16 6h2v12h-2z"]],template:function(i,r){i&1&&(m(0,"div",1)(1,"div",2),V(2,jee,5,4,"div",3),m(3,"div",4)(4,"div",5),g(5),h(),V(6,Hee,3,5,"button",6),m(7,"button",7),S("click",function(){return r._buttonClicked(r.pageIndex-1,r._previousButtonsDisabled())}),Zt(),m(8,"svg",8),M(9,"path",9),h()(),Wo(),m(10,"button",10),S("click",function(){return r._buttonClicked(r.pageIndex+1,r._nextButtonsDisabled())}),Zt(),m(11,"svg",8),M(12,"path",11),h()(),V(13,zee,3,5,"button",12),h()()()),i&2&&(f(2),B(r.hidePageSize?-1:2),f(3),pe(" ",r._intl.getRangeLabel(r.pageIndex,r.pageSize,r.length)," "),f(),B(r.showFirstLastButtons?6:-1),f(),v("matTooltip",r._intl.previousPageLabel)("matTooltipDisabled",r._previousButtonsDisabled())("disabled",r._previousButtonsDisabled())("tabindex",r._previousButtonsDisabled()?-1:null),X("aria-label",r._intl.previousPageLabel),f(3),v("matTooltip",r._intl.nextPageLabel)("matTooltipDisabled",r._nextButtonsDisabled())("disabled",r._nextButtonsDisabled())("tabindex",r._nextButtonsDisabled()?-1:null),X("aria-label",r._intl.nextPageLabel),f(3),B(r.showFirstLastButtons?13:-1))},dependencies:[Ci,La,wn,Yt,Ao],styles:[`.mat-mdc-paginator{display:block;-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;color:var(--mat-paginator-container-text-color, var(--mat-sys-on-surface));background-color:var(--mat-paginator-container-background-color, var(--mat-sys-surface));font-family:var(--mat-paginator-container-text-font, var(--mat-sys-body-small-font));line-height:var(--mat-paginator-container-text-line-height, var(--mat-sys-body-small-line-height));font-size:var(--mat-paginator-container-text-size, var(--mat-sys-body-small-size));font-weight:var(--mat-paginator-container-text-weight, var(--mat-sys-body-small-weight));letter-spacing:var(--mat-paginator-container-text-tracking, var(--mat-sys-body-small-tracking));--mat-form-field-container-height: var(--mat-paginator-form-field-container-height, 40px);--mat-form-field-container-vertical-padding: var(--mat-paginator-form-field-container-vertical-padding, 8px)}.mat-mdc-paginator .mat-mdc-select-value{font-size:var(--mat-paginator-select-trigger-text-size, var(--mat-sys-body-small-size))}.mat-mdc-paginator .mat-mdc-form-field-subscript-wrapper{display:none}.mat-mdc-paginator .mat-mdc-select{line-height:1.5}.mat-mdc-paginator-outer-container{display:flex}.mat-mdc-paginator-container{display:flex;align-items:center;justify-content:flex-end;padding:0 8px;flex-wrap:wrap;width:100%;min-height:var(--mat-paginator-container-size, 56px)}.mat-mdc-paginator-page-size{display:flex;align-items:baseline;margin-right:8px}[dir=rtl] .mat-mdc-paginator-page-size{margin-right:0;margin-left:8px}.mat-mdc-paginator-page-size-label{margin:0 4px}.mat-mdc-paginator-page-size-select{margin:0 4px;width:var(--mat-paginator-page-size-select-width, 84px)}.mat-mdc-paginator-range-label{margin:0 32px 0 24px}.mat-mdc-paginator-range-actions{display:flex;align-items:center}.mat-mdc-paginator-icon{display:inline-block;width:28px;fill:var(--mat-paginator-enabled-icon-color, var(--mat-sys-on-surface-variant))}.mat-mdc-icon-button[aria-disabled] .mat-mdc-paginator-icon{fill:var(--mat-paginator-disabled-icon-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent))}[dir=rtl] .mat-mdc-paginator-icon{transform:rotate(180deg)}@media(forced-colors: active){.mat-mdc-icon-button[aria-disabled] .mat-mdc-paginator-icon,.mat-mdc-paginator-icon{fill:currentColor}.mat-mdc-paginator-range-actions .mat-mdc-icon-button{outline:solid 1px}.mat-mdc-paginator-range-actions .mat-mdc-icon-button[aria-disabled]{color:GrayText}}.mat-mdc-paginator-touch-target{display:var(--mat-paginator-touch-target-display, block);position:absolute;top:50%;left:50%;width:var(--mat-paginator-page-size-select-width, 84px);height:var(--mat-paginator-page-size-select-touch-target-height, 48px);background-color:rgba(0,0,0,0);transform:translate(-50%, -50%);cursor:pointer} -`],encapsulation:2,changeDetection:0})}return t})(),vc=(()=>{class t{static \u0275fac=function(i){return new(i||t)};static \u0275mod=ee({type:t});static \u0275inj=J({providers:[$ee],imports:[Be,_c,$r,or]})}return t})();var xg=class extends Bi{constructor(){super(...arguments),this._delegate=u(Bi)}getValidDateOrNull(n){return this.isDateInstance(n)&&this.isValid(n)?n:null}compareDatetime(n,e,i=!0){return this.compareDate(n,e)||this.getHour(n)-this.getHour(e)||i&&this.getMinute(n)-this.getMinute(e)}sameDatetime(n,e){if(n&&e){let i=this.isValid(n),r=this.isValid(e);return i&&r?!this.compareDatetime(n,e):i===r}return n===e}sameYear(n,e){return n&&e&&this.getYear(n)===this.getYear(e)}sameDay(n,e){return n&&e&&this.getDate(n)===this.getDate(e)&&this.sameMonthAndYear(n,e)}sameHour(n,e){return n&&e&&this.getHour(n)===this.getHour(e)&&this.sameDay(n,e)}sameMinute(n,e){return n&&e&&this.getMinute(n)===this.getMinute(e)&&this.sameHour(n,e)}sameMonthAndYear(n,e){if(n&&e){let i=this.isValid(n),r=this.isValid(e);return i&&r?!(this.getYear(n)-this.getYear(e)||this.getMonth(n)-this.getMonth(e)):i===r}return n===e}clone(n){return this._delegate.clone(n)}addCalendarYears(n,e){return this._delegate.addCalendarYears(n,e)}addCalendarMonths(n,e){return this._delegate.addCalendarMonths(n,e)}addCalendarDays(n,e){return this._delegate.addCalendarDays(n,e)}getYear(n){return this._delegate.getYear(n)}getMonth(n){return this._delegate.getMonth(n)}getDate(n){return this._delegate.getDate(n)}getDayOfWeek(n){return this._delegate.getDayOfWeek(n)}getMonthNames(n){return this._delegate.getMonthNames(n)}getDateNames(){return this._delegate.getDateNames()}getDayOfWeekNames(n){return this._delegate.getDayOfWeekNames(n)}getYearName(n){return this._delegate.getYearName(n)}getFirstDayOfWeek(){return this._delegate.getFirstDayOfWeek()}getNumDaysInMonth(n){return this._delegate.getNumDaysInMonth(n)}createDate(n,e,i){return this._delegate.createDate(n,e,i)}today(){return this._delegate.today()}parse(n,e){return this._delegate.parse(n,e)}format(n,e){return this._delegate.format(n,e)}toIso8601(n){return this._delegate.toIso8601(n)}isDateInstance(n){return this._delegate.isDateInstance(n)}isValid(n){return this._delegate.isValid(n)}invalid(){return this._delegate.invalid()}clampDate(n,e,i){return e&&this.compareDatetime(n,e)<0?e:i&&this.compareDatetime(n,i)>0?i:n}},m3=new O("mtx-datetime-formats"),$9e=h3(24,t=>String(t)),W9e=h3(60,t=>String(t));function h3(t,n){let e=Array(t);for(let i=0;i{let n=class n{transform(i){return zi(i)?i:Q(i)}};n.\u0275fac=function(r){return new(r||n)},n.\u0275pipe=Kr({name:"toObservable",type:n,pure:!0});let t=n;return t})();var f3=(()=>{let n=class n{};n.\u0275fac=function(r){return new(r||n)},n.\u0275mod=ee({type:n}),n.\u0275inj=J({imports:[ut]});let t=n;return t})();function g3(t,n){let e=Array(t);for(let i=0;i{let n=class n extends xg{constructor(){super();let i=u(xs,{optional:!0});this.setLocale(i)}setLocale(i){super.setLocale(i)}getHour(i){return dy(i)}getMinute(i){return uy(i)}isInNextMonth(i,r){let o=this.getDateInNextMonth(i);return super.sameMonthAndYear(o,r)}getWeek(i,r){return fh(i,{weekStartsOn:r})}createDatetime(i,r,o,a,s){if(r<0||r>11)throw Error(`Invalid month index "${r}". Month index has to be between 0 and 11.`);if(o<1)throw Error(`Invalid date "${o}". Date has to be greater than 0.`);if(a<0||a>23)throw Error(`Invalid hour "${a}". Hour has to be between 0 and 23.`);if(s<0||s>59)throw Error(`Invalid minute "${s}". Minute has to be between 0 and 59.`);let l=new Date(i,r,o,a,s);if(!mh(l))throw Error(`Invalid date "${o}" for month with index "${r}".`);return l}getFirstDateOfMonth(i){return mV(i)}getHourNames(){return g3(24,i=>i.toLocaleString(this.locale))}getMinuteNames(){return g3(60,i=>i.toLocaleString(this.locale))}addCalendarHours(i,r){return aV(i,r)}addCalendarMinutes(i,r){return cV(i,r)}deserialize(i){return this._delegate.deserialize(i)}getDateInNextMonth(i){return uh(i,1)}};n.\u0275fac=function(r){return new(r||n)},n.\u0275prov=R({token:n,factory:n.\u0275fac});let t=n;return t})(),Qee={parse:{dateInput:"P",monthInput:"LLLL",yearInput:"yyyy",datetimeInput:"P p",timeInput:"p"},display:{dateInput:"P",monthInput:"LLLL",yearInput:"yyyy",datetimeInput:"P p",timeInput:"p",monthYearLabel:"yyyy",dateA11yLabel:"LLLL dd, yyyy",monthYearA11yLabel:"MMMM yyyy",popupHeaderDateLabel:"ccc, dd LLL"}};function _3(t=Qee){return[{provide:Bi,useClass:US,deps:[xs]},{provide:xg,useClass:Yee},{provide:m3,useValue:t}]}var Kee=["container"];function Zee(t,n){}function Xee(t,n){}var Jee=["*"];function ete(t,n){if(t&1&&M(0,"formly-field",0),t&2){let e=n.$implicit;v("field",e)}}var b3=["fieldComponent"];function tte(t,n,e){if(n.id)return n.id;let i=n.type;return!i&&n.template&&(i="template"),i instanceof Pd&&(i=i.prototype.constructor.name),[t,i,n.key,e].join("_")}function pn(t){return!yc(t.key)&&t.key!==""&&(!Array.isArray(t.key)||t.key.length>0)}function gu(t){if(!pn(t))return[];if(t._keyPath?.key!==t.key){let n=[];if(typeof t.key=="string"){let e=t.key.indexOf("[")===-1?t.key:t.key.replace(/\[(\w+)\]/g,".$1");n=e.indexOf(".")!==-1?e.split("."):[e]}else Array.isArray(t.key)?n=t.key.slice(0):n=[`${t.key}`];ar(t,"_keyPath",{key:t.key,path:n})}return t._keyPath.path.slice(0)}var xk=["required","pattern","minLength","maxLength","min","max"];function Cg(t,n){let e=gu(t);if(e.length===0)return;let i=t;for(;i.parent;)i=i.parent,e=[...gu(i),...e];if(n===void 0&&t.resetOnHide){let r=e.pop(),o=e.reduce((a,s)=>a[s]||{},i.model);delete o[r];return}ite(i.model,e,n)}function ite(t,n,e){for(let i=0;i{for(let i in e)yc(t[i])||nte(t[i])?t[i]=xc(e[i]):rte(t[i],e[i])&&kh(t[i],e[i])}),t}function yc(t){return t==null}function wx(t){return t===void 0}function nte(t){return t===""}function fk(t){return typeof t=="function"}function rte(t,n){return Va(t)&&Va(n)&&Object.getPrototypeOf(t)===Object.getPrototypeOf(n)&&!(Array.isArray(t)||Array.isArray(n))}function Va(t){return t!=null&&typeof t=="object"}function ote(t){return!!t&&typeof t.then=="function"}function xc(t){if(!Va(t)||zi(t)||t instanceof te||t.changingThisBreaksApplicationSecurity||["RegExp","FileList","File","Blob"].indexOf(t.constructor?.name)!==-1)return t;if(t instanceof Set)return new Set(t);if(t instanceof Map)return new Map(t);if(t instanceof Uint8Array)return new Uint8Array(t);if(t instanceof Uint16Array)return new Uint16Array(t);if(t instanceof Uint32Array)return new Uint32Array(t);if(t._isAMomentObject&&fk(t.clone))return t.clone();if(t instanceof fc)return null;if(t instanceof Date)return new Date(t.getTime());if(Array.isArray(t))return t.slice(0).map(i=>xc(i));let n=Object.getPrototypeOf(t),e=Object.create(n);return e=Object.setPrototypeOf(e,n),Object.keys(t).reduce((i,r)=>{let o=Object.getOwnPropertyDescriptor(t,r);return o.get?Object.defineProperty(i,r,o):i[r]=xc(t[r]),i},e)}function ar(t,n,e){Object.defineProperty(t,n,{enumerable:!1,writable:!0,configurable:!0}),t[n]=e}function v3(t,n,e){let i=[],r=()=>{i.forEach(a=>a()),i=[]},o=qi(t,n,({firstChange:a,currentValue:s})=>{!a&&e(),r(),Va(s)&&s.constructor.name==="Object"&&Object.keys(s).forEach(l=>{i.push(v3(t,[...n,l],e))})});return()=>{o.unsubscribe(),r()}}function qi(t,n,e){t._observers||ar(t,"_observers",{});let i=t;for(let s=0;s=1&&Va(i))){let{enumerable:s}=Object.getOwnPropertyDescriptor(i,r)||{enumerable:!0};Object.defineProperty(i,r,{enumerable:s,configurable:!0,get:()=>a.value,set:l=>{if(l!==a.value){let c=a.value;a.value=l,a.onChange.forEach(d=>d({previousValue:c,currentValue:l,firstChange:!1}))}}})}return{setValue(s,l=!0){if(s===a.value)return;let c=a.value;a.value=s,a.onChange.forEach(d=>{d!==e&&l&&d({previousValue:c,currentValue:s,firstChange:!1})})},unsubscribe(){a.onChange=a.onChange.filter(s=>s!==e),a.onChange.length===0&&delete t._observers[o]}}}function y3(t,n){if(n=Array.isArray(n)?n.join("."):n,!!t.fieldGroup)for(let e=0,i=t.fieldGroup.length;e{n instanceof Fd?n.injector.get(ye).markForCheck():n.markForCheck()})}function ate(t){let n=i=>i.hide||i.expressions?.hide||i.hideExpression,e=!t.resetOnHide||!n(t);if(!n(t)&&t.resetOnHide){let i=t.parent;for(;i&&!n(i);)i=i.parent;e=!i||!n(i)}return!e}function x3(){return+Tp.major>18||+Tp.major>=18&&+Tp.minor>=1}function ste(t,n){try{return Function(...n,`return ${t};`)}catch(e){console.error(e)}}function lte(t,n,e){return typeof t=="function"?t.apply(n,e):!!t}function cte(t,n=!1){let e=t.formControl,i=e._fields?e._fields.indexOf(t):-1;i!==-1&&e._fields.splice(i,1);let r=e.parent;if(!r)return;let o={emitEvent:n};if(r instanceof dk){let a=r.controls.findIndex(s=>s===e);a!==-1&&r.removeAt(a,o)}else if(r instanceof bx){let a=gu(t),s=a[a.length-1];r.get([s])===e&&r.removeControl(s,o)}e.setParent(null)}function dte(t){return t.formControl?t.formControl:t.shareFormControl===!1?null:t.form?.get(gu(t))}function C3(t,n,e=!1){if(n=n||t.formControl,n._fields||ar(n,"_fields",[]),n._fields.indexOf(t)===-1&&n._fields.push(t),!t.formControl&&n){ar(t,"formControl",n),n.setValidators(null),n.setAsyncValidators(null),t.props.disabled=!!t.props.disabled;let s=qi(t,["props","disabled"],({firstChange:l,currentValue:c})=>{l||(c?t.formControl.disable():t.formControl.enable())});n instanceof ia&&n.registerOnDisabledChange(s.setValue)}if(!t.form||!pn(t))return;let i=t.form,r=gu(t),o=_u(t);!(yc(n.value)&&yc(o))&&n.value!==o&&n instanceof ia&&n.patchValue(o);for(let s=0;s{ar(n,"_hide",!!i),(!r||r&&i===!0)&&(n.props.hidden=i,n.options._hiddenFieldsForCheck.push({field:n}))}),n.hideExpression&&qi(n,["hideExpression"],({currentValue:i})=>{n._expressions.hide=this.parseExpressions(n,"hide",typeof i=="boolean"?()=>i:i)});let e=(i,r)=>{typeof r=="string"||fk(r)?n._expressions[i]=this.parseExpressions(n,i,r):r instanceof Fe&&(n._expressions[i]={value$:r.pipe(He(o=>{this.evalExpr(n,i,o),n.options._detectChanges(n)}))})};n.expressions=n.expressions||{};for(let i of Object.keys(n.expressions))qi(n,["expressions",i],({currentValue:r})=>{e(i,fk(r)?(...o)=>r(n,o[3]):r)});n.expressionProperties=n.expressionProperties||{};for(let i of Object.keys(n.expressionProperties))qi(n,["expressionProperties",i],({currentValue:r})=>e(i,r))}postPopulate(n){if(!n.parent&&!n.options.checkExpressions){let e=!1;n.options.checkExpressions=(i,r)=>{if(e)return;e=!0;let o=this.checkExpressions(i,r),a=n.options;a._hiddenFieldsForCheck.sort(s=>s.field.hide?-1:1).forEach(s=>this.changeHideState(s.field,s.field.hide??s.default,!r)),a._hiddenFieldsForCheck=[],o&&this.checkExpressions(n),e=!1}}}parseExpressions(n,e,i){let r;if(n.parent&&["hide","props.disabled"].includes(e)){let a=s=>e==="hide"?s.hide:s.props.disabled;r=()=>{let s=n.parent;for(;s.parent&&!a(s);)s=s.parent;return a(s)}}i=i||(()=>!1),typeof i=="string"&&(i=ste(i,["model","formState","field"]));let o;return{callback:a=>{try{let s=lte(r?(...l)=>r(n)||i(...l):i,{field:n},[n.model,n.options.formState,n,a]);return a||o!==s&&(!Va(s)||zi(s)||JSON.stringify(s)!==JSON.stringify(o))?(o=s,this.evalExpr(n,e,s),!0):!1}catch(s){throw s.message=`[Formly Error] [Expression "${e}"] ${s.message}`,s}}}}checkExpressions(n,e=!1){if(!n)return!1;let i=!1;if(n._expressions)for(let r of Object.keys(n._expressions))n._expressions[r].callback?.(e)&&(i=!0);return n.fieldGroup?.forEach(r=>this.checkExpressions(r,e)&&(i=!0)),i}changeDisabledState(n,e){n.fieldGroup&&n.fieldGroup.filter(i=>!i._expressions.hasOwnProperty("props.disabled")).forEach(i=>this.changeDisabledState(i,e)),pn(n)&&n.props.disabled!==e&&(n.props.disabled=e)}changeHideState(n,e,i){if(n.fieldGroup&&n.fieldGroup.filter(r=>r&&!r._expressions.hide).forEach(r=>this.changeHideState(r,e,i)),n.formControl&&pn(n)){ar(n,"_hide",!!(e||n.hide));let r=n.formControl;r._fields?.length>1&&wg(r),e===!0&&(!r._fields||r._fields.every(o=>!!o._hide))?(cte(n,!0),i&&n.resetOnHide&&(Cg(n,void 0),n.formControl.reset({value:void 0,disabled:n.formControl.disabled}),n.options.fieldChanges.next({value:void 0,field:n,type:"valueChanges"}),n.fieldGroup&&n.formControl instanceof dk&&(n.fieldGroup.length=0))):e===!1&&(n.resetOnHide&&!wx(n.defaultValue)&&wx(_u(n))&&Cg(n,n.defaultValue),C3(n,void 0,!0),n.resetOnHide&&n.fieldArray&&n.fieldGroup?.length!==n.model?.length&&n.options.build(n))}n.options.fieldChanges&&n.options.fieldChanges.next({field:n,type:"hidden",value:e})}evalExpr(n,e,i){if(e.indexOf("model.")===0){let r=e.replace(/^model\./,""),o=n.fieldGroup?n:n.parent,a=n?.key===r?n.formControl:n.form.get(r);!a&&n.get(r)&&(a=n.get(r).formControl),Cg({key:r,parent:o,model:n.model},i),a&&!(yc(a.value)&&yc(i))&&a.value!==i&&a.patchValue(i)}else{try{let r=n,o=this._evalExpressionPath(n,e),a=o.length-1;for(let s=0;sr).forEach(r=>{let o=r.match(/['|"](.*?)['|"]/);o?i.push(o[1]):i.push(...r.split(".").filter(a=>a))}),n._expressions[e]&&(n._expressions[e].paths=i),i}},bk=class{constructor(n){this.config=n,this.formId=0}prePopulate(n){let e=n.parent;this.initRootOptions(n),this.initFieldProps(n),e&&(Object.defineProperty(n,"options",{get:()=>e.options,configurable:!0}),Object.defineProperty(n,"model",{get:()=>pn(n)&&n.fieldGroup?_u(n):e.model,configurable:!0})),Object.defineProperty(n,"get",{value:i=>y3(n,i),configurable:!0}),this.getFieldComponentInstance(n).prePopulate?.(n)}onPopulate(n){this.initFieldOptions(n),this.getFieldComponentInstance(n).onPopulate?.(n),n.fieldGroup&&n.fieldGroup.forEach((e,i)=>{e&&(Object.defineProperty(e,"parent",{get:()=>n,configurable:!0}),Object.defineProperty(e,"index",{get:()=>i,configurable:!0})),this.formId++})}postPopulate(n){this.getFieldComponentInstance(n).postPopulate?.(n)}initFieldProps(n){n.props??=n.templateOptions,Object.defineProperty(n,"templateOptions",{get:()=>n.props,set:e=>n.props=e,configurable:!0})}initRootOptions(n){if(n.parent)return;let e=n.options;n.options.formState=n.options.formState||{},e.showError||(e.showError=this.config.extras.showError),e.fieldChanges||ar(e,"fieldChanges",new z),e._hiddenFieldsForCheck||(e._hiddenFieldsForCheck=[]),e._detectChanges=i=>{i._componentRefs&&gk(i),i.fieldGroup?.forEach(r=>r&&e._detectChanges(r))},e.detectChanges=i=>{i.options.checkExpressions?.(i),e._detectChanges(i)},e.resetModel=i=>{i=xc(i??e._initialModel),n.model&&(Object.keys(n.model).forEach(r=>delete n.model[r]),Object.assign(n.model,i||{})),x3()||qi(e,["parentForm","submitted"]).setValue(!1,!1),e.build(n),n.form.reset(n.model)},e.updateInitialValue=i=>e._initialModel=xc(i??n.model),n.options.updateInitialValue()}initFieldOptions(n){kh(n,{id:tte(`formly_${this.formId}`,n,n.index),hooks:{},modelOptions:{},validation:{messages:{}},props:!n.type||!pn(n)?{}:{label:"",placeholder:"",disabled:!1}}),this.config.extras.resetFieldOnHide&&n.resetOnHide!==!1&&(n.resetOnHide=!0),n.type!=="formly-template"&&(n.template||n.expressions?.template||n.expressionProperties?.template)&&(n.type="formly-template"),!n.type&&n.fieldGroup&&(n.type="formly-group"),n.type&&this.config.getMergedField(n),pn(n)&&!wx(n.defaultValue)&&wx(_u(n))&&!ate(n)&&Cg(n,n.defaultValue),n.wrappers=n.wrappers||[]}getFieldComponentInstance(n){let e=()=>{let i=this.config.resolveFieldTypeRef(n),r=n._componentRefs?.slice(-1)[0];return r instanceof Fd&&r?.componentType===i?.componentType&&(i=r),i?.instance};return n._proxyInstance||ar(n,"_proxyInstance",new Proxy({},{get:(i,r)=>e()?.[r],set:(i,r,o)=>e()[r]=o})),n._proxyInstance}},vk=class{prePopulate(n){this.root||(this.root=n),n.parent&&Object.defineProperty(n,"form",{get:()=>n.parent.formControl,configurable:!0})}onPopulate(n){n.hasOwnProperty("fieldGroup")&&!pn(n)?ar(n,"formControl",n.form):this.addFormControl(n)}postPopulate(n){if(this.root!==n)return;if(this.root=null,this.setValidators(n)&&n.parent){let i=n.parent;for(;i;)(pn(i)||!i.parent)&&wg(i.formControl,!0),i=i.parent}}addFormControl(n){let e=dte(n);if(!n.fieldArray){if(e){if(e instanceof ia){let i=pn(n)?_u(n):n.defaultValue;e.defaultValue=i}}else{let i={updateOn:n.modelOptions.updateOn};if(n.fieldGroup)e=new bx({},i);else{let r=pn(n)?_u(n):n.defaultValue;e=new qB({value:r,disabled:!!n.props.disabled},Ee(k({},i),{initialValueIsDefault:!0}))}}C3(n,e)}}setValidators(n,e=!1){e===!1&&pn(n)&&n.props?.disabled&&(e=!0);let i=!1;if(n.fieldGroup?.forEach(r=>r&&this.setValidators(r,e)&&(i=!0)),pn(n)||!n.parent||!pn(n)&&!n.fieldGroup){let{formControl:r}=n;if(r&&(pn(n)&&r instanceof ia&&(e&&r.enabled&&(r.disable({emitEvent:!1,onlySelf:!0}),i=!0),!e&&r.disabled&&(r.enable({emitEvent:!1,onlySelf:!0}),i=!0)),r.validator===null&&this.hasValidators(n,"_validators")&&(r.setValidators(()=>{let o=Le.compose(this.mergeValidators(n,"_validators"));return o?o(r):null}),i=!0),r.asyncValidator===null&&this.hasValidators(n,"_asyncValidators")&&(r.setAsyncValidators(()=>{let o=Le.composeAsync(this.mergeValidators(n,"_asyncValidators"));return o?o(r):Q(null)}),i=!0),i)){wg(r,!0);let o=r.parent;for(let a=1;a1&&i._fields.some(r=>r[e].length>0)||n[e].length>0?!0:n.fieldGroup?.some(r=>r?.fieldGroup&&!pn(r)&&this.hasValidators(r,e))}mergeValidators(n,e){let i=[],r=n.formControl;return r?._fields?.length>1?r._fields.filter(o=>!o._hide).forEach(o=>i.push(...o[e])):n[e]&&i.push(...n[e]),n.fieldGroup&&n.fieldGroup.filter(o=>o?.fieldGroup&&!pn(o)).forEach(o=>i.push(...this.mergeValidators(o,e))),i}},yk=class{constructor(n){this.config=n}onPopulate(n){this.initFieldValidation(n,"validators"),this.initFieldValidation(n,"asyncValidators")}initFieldValidation(n,e){let i=[];if(e==="validators"&&!(n.hasOwnProperty("fieldGroup")&&!pn(n))&&i.push(this.getPredefinedFieldValidation(n)),n[e])for(let r of Object.keys(n[e]))r==="validation"?i.push(...n[e].validation.map(o=>this.wrapNgValidatorFn(n,o))):i.push(this.wrapNgValidatorFn(n,n[e][r],r));ar(n,"_"+e,i)}getPredefinedFieldValidation(n){let e=[];return xk.forEach(i=>qi(n,["props",i],({currentValue:r,firstChange:o})=>{e=e.filter(a=>a!==i),i==="required"&&r!=null&&typeof r!="boolean"&&console.warn(`Formly: Invalid prop 'required' of type '${typeof r}', expected 'boolean' (Field:${n.key}).`),r!=null&&r!==!1&&e.push(i),!o&&n.formControl&&wg(n.formControl)})),i=>e.length===0?null:Le.compose(e.map(r=>()=>{let o=n.props[r];switch(r){case"required":return Le.required(i);case"pattern":return Le.pattern(o)(i);case"minLength":let a=Le.minLength(o)(i),s=this.config.getValidatorMessage("minlength")||n.validation?.messages?.minlength?"minlength":"minLength";return a?{[s]:a.minlength}:null;case"maxLength":let l=Le.maxLength(o)(i),c=this.config.getValidatorMessage("maxlength")||n.validation?.messages?.maxlength?"maxlength":"maxLength";return l?{[c]:l.maxlength}:null;case"min":return Le.min(o)(i);case"max":return Le.max(o)(i);default:return null}}))(i)}wrapNgValidatorFn(n,e,i){let r;if(typeof e=="string"&&(r=xc(this.config.getValidator(e))),typeof e=="object"&&e.name&&(r=xc(this.config.getValidator(e.name)),e.options&&(r.options=e.options)),typeof e=="object"&&e.expression){let o=e,{expression:a}=o,s=od(o,["expression"]);r={name:i,validation:a,options:Object.keys(s).length>0?s:null}}return typeof e=="function"&&(r={name:i,validation:e}),a=>{let s=r.validation(a,n,r.options);return ote(s)?s.then(l=>this.handleResult(n,i?!!l:l,r)):zi(s)?s.pipe(se(l=>this.handleResult(n,i?!!l:l,r))):this.handleResult(n,i?!!s:s,r)}}handleResult(n,e,{name:i,options:r}){typeof e=="boolean"&&(e=e?null:{[i]:r||!0});let o=n.formControl;return o?._childrenErrors?.[i]?.(),Va(e)&&Object.keys(e).forEach(a=>{let s=e[a].errorPath?e[a].errorPath:r?.errorPath,l=s?n.formControl.get(s):null;if(l){let c=e[a],{errorPath:d}=c,p=od(c,["errorPath"]);l.setErrors(Ee(k({},l.errors||{}),{[a]:p})),!o._childrenErrors&&ar(o,"_childrenErrors",{}),o._childrenErrors[a]=()=>{let y=l.errors||{},{[a]:_}=y,b=od(y,[vA(a)]);l.setErrors(Object.keys(b).length===0?null:b)}}}),e}},Eg=(()=>{let n=class n{constructor(){this.field={}}set _formlyControls(i){let r=this.field;r._localFields=i.map(o=>o.control._fields||[]).flat().filter(o=>o.formControl!==this.field.formControl)}get model(){return this.field.model}get form(){return this.field.form}get options(){return this.field.options}get key(){return this.field.key}get formControl(){return this.field.formControl}get props(){return this.field.props||{}}get to(){return this.props}get showError(){return this.options.showError(this)}get id(){return this.field.id}get formState(){return this.options?.formState||{}}};n.\u0275fac=function(r){return new(r||n)},n.\u0275dir=P({type:n,viewQuery:function(r,o){if(r&1&&ie(Un,5),r&2){let a;j(a=H())&&(o._formlyControls=a)}},inputs:{field:"field"},standalone:!1});let t=n;return t})(),ute=(()=>{let n=class n extends Eg{get template(){return this.field&&this.field.template!==this.innerHtml.template&&(this.innerHtml={template:this.field.template,content:this.props.safeHtml?this.sanitizer.bypassSecurityTrustHtml(this.field.template):this.field.template}),this.innerHtml.content}constructor(i){super(),this.sanitizer=i,this.innerHtml={}}};n.\u0275fac=function(r){return new(r||n)(be(Sf))},n.\u0275cmp=E({type:n,selectors:[["formly-template"]],standalone:!1,features:[le],decls:1,vars:1,consts:[[3,"innerHtml"]],template:function(r,o){r&1&&M(0,"div",0),r&2&&v("innerHtml",o.template,rf)},encapsulation:2,changeDetection:0});let t=n;return t})(),Ck=(()=>{let n=class n{constructor(){this.types={},this.validators={},this.wrappers={},this.messages={},this.extras={checkExpressionOn:"modelChange",lazyRender:!0,resetFieldOnHide:!0,renderFormlyFieldElement:!0,showError(i){return i.formControl?.invalid&&(i.formControl?.touched||i.options.parentForm?.submitted||!!i.field.validation?.show)}},this.extensions={},this.presets={},this.extensionsByPriority={},this.componentRefs={}}addConfig(i){if(Array.isArray(i)){i.forEach(r=>this.addConfig(r));return}i.types&&i.types.forEach(r=>this.setType(r)),i.validators&&i.validators.forEach(r=>this.setValidator(r)),i.wrappers&&i.wrappers.forEach(r=>this.setWrapper(r)),i.validationMessages&&i.validationMessages.forEach(r=>this.addValidatorMessage(r.name,r.message)),i.extensions&&this.setSortedExtensions(i.extensions),i.extras&&(this.extras=k(k({},this.extras),i.extras)),i.presets&&(this.presets=k(k({},this.presets),i.presets.reduce((r,o)=>Ee(k({},r),{[o.name]:o.config}),{})))}setType(i){Array.isArray(i)?i.forEach(r=>this.setType(r)):(this.types[i.name]||(this.types[i.name]={name:i.name}),["component","extends","defaultOptions","wrappers"].forEach(r=>{i.hasOwnProperty(r)&&(this.types[i.name][r]=i[r])}))}getType(i,r=!1){if(i instanceof Pd)return{component:i,name:i.prototype.constructor.name};if(!this.types[i]){if(r)throw new Error(`[Formly Error] The type "${i}" could not be found. Please make sure that is registered through the FormlyModule declaration.`);return null}return this.mergeExtendedType(i),this.types[i]}getMergedField(i={}){let r=this.getType(i.type);if(!r)return;r.defaultOptions&&kh(i,r.defaultOptions);let o=r.extends&&this.getType(r.extends).defaultOptions;o&&kh(i,o),i?.optionsTypes&&i.optionsTypes.forEach(s=>{let l=this.getType(s).defaultOptions;l&&kh(i,l)});let a=this.resolveFieldTypeRef(i);a?.instance?.defaultOptions&&kh(i,a.instance.defaultOptions),!i.wrappers&&r.wrappers&&(i.wrappers=[...r.wrappers])}resolveFieldTypeRef(i={}){let r=this.getType(i.type);if(!r||!r.component)return null;if(!this.componentRefs[r.name]){let{_viewContainerRef:o,_injector:a}=i.options;if(!o||!a)return null;let s=o.createComponent(r.component,{injector:a});this.componentRefs[r.name]=s;try{s.destroy()}catch(l){console.error(`An error occurred while destroying the Formly component type "${i.type}"`,l)}}return this.componentRefs[r.name]}clearRefs(){this.componentRefs={}}setWrapper(i){this.wrappers[i.name]=i,i.types&&i.types.forEach(r=>{this.setTypeWrapper(r,i.name)})}getWrapper(i){if(i instanceof Pd)return{component:i,name:i.prototype.constructor.name};if(!this.wrappers[i])throw new Error(`[Formly Error] The wrapper "${i}" could not be found. Please make sure that is registered through the FormlyModule declaration.`);return this.wrappers[i]}setTypeWrapper(i,r){this.types[i]||(this.types[i]={}),this.types[i].wrappers||(this.types[i].wrappers=[]),this.types[i].wrappers.indexOf(r)===-1&&this.types[i].wrappers.push(r)}setValidator(i){this.validators[i.name]=i}getValidator(i){if(!this.validators[i])throw new Error(`[Formly Error] The validator "${i}" could not be found. Please make sure that is registered through the FormlyModule declaration.`);return this.validators[i]}addValidatorMessage(i,r){this.messages[i]=r}getValidatorMessage(i){return this.messages[i]}setSortedExtensions(i){i.forEach(r=>{let o=r.priority??1;this.extensionsByPriority[o]=Ee(k({},this.extensionsByPriority[o]),{[r.name]:r.extension})}),this.extensions=Object.keys(this.extensionsByPriority).map(Number).sort((r,o)=>r-o).reduce((r,o)=>k(k({},r),this.extensionsByPriority[o]),{})}mergeExtendedType(i){if(!this.types[i].extends)return;let r=this.getType(this.types[i].extends);this.types[i].component||(this.types[i].component=r.component),this.types[i].wrappers||(this.types[i].wrappers=r.wrappers)}};n.\u0275fac=function(r){return new(r||n)},n.\u0275prov=R({token:n,factory:n.\u0275fac,providedIn:"root"});let t=n;return t})();var mte=(()=>{let n=class n{};n.\u0275fac=function(r){return new(r||n)},n.\u0275prov=R({token:n,factory:n.\u0275fac});let t=n;return t})(),hte=(()=>{let n=class n{get containerRef(){return this.config.extras.renderFormlyFieldElement?this.viewContainerRef:this.hostContainerRef}get elementRef(){return this.config.extras.renderFormlyFieldElement?this._elementRef:this.componentRefs?.[0]instanceof Fd?this.componentRefs[0].location:null}constructor(i,r,o,a,s){this.config=i,this.renderer=r,this._elementRef=o,this.hostContainerRef=a,this.form=s,this.hostObservers=[],this.componentRefs=[],this.hooksObservers=[],this.detectFieldBuild=!1,this.valueChangesUnsubscribe=()=>{}}ngAfterContentInit(){this.triggerHook("afterContentInit")}ngAfterViewInit(){this.triggerHook("afterViewInit")}ngDoCheck(){this.detectFieldBuild&&this.field&&this.field.options&&this.render()}ngOnInit(){this.triggerHook("onInit")}ngOnChanges(i){this.triggerHook("onChanges",i)}ngOnDestroy(){this.resetRefs(this.field),this.hostObservers.forEach(i=>i.unsubscribe()),this.hooksObservers.forEach(i=>i()),this.valueChangesUnsubscribe(),this.triggerHook("onDestroy")}renderField(i,r,o=[]){if(this.containerRef===i&&(this.resetRefs(this.field),this.containerRef.clear(),o=this.field?.wrappers),o?.length>0){let[a,...s]=o,{component:l}=this.config.getWrapper(a),c=i.createComponent(l);this.attachComponentRef(c,r),qi(c.instance,["fieldComponent"],({currentValue:d,previousValue:p,firstChange:_})=>{if(d){if(p&&p._lContainer===d._lContainer)return;let b=p?p.detach():null;b&&!b.destroyed?d.insert(b):this.renderField(d,r,s),!_&&c.changeDetectorRef.detectChanges()}})}else if(r?.type){let a=this.form?.templates?.find(l=>l.name===r.type),s;if(a)s=i.createEmbeddedView(a.ref,{$implicit:r});else{let{component:l}=this.config.getType(r.type,!0);s=i.createComponent(l)}this.attachComponentRef(s,r)}}triggerHook(i,r){if((i==="onInit"||i==="onChanges"&&r.field&&!r.field.firstChange)&&(this.valueChangesUnsubscribe(),this.valueChangesUnsubscribe=this.fieldChanges(this.field)),this.field?.hooks?.[i]&&(!r||r.field)){let o=this.field.hooks[i](this.field);if(zi(o)&&["onInit","afterContentInit","afterViewInit"].indexOf(i)!==-1){let a=o.subscribe();this.hooksObservers.push(()=>a.unsubscribe())}}i==="onChanges"&&r.field&&(this.resetRefs(r.field.previousValue),this.render())}attachComponentRef(i,r){this.componentRefs.push(i),r._componentRefs.push(i),i instanceof Fd&&Object.assign(i.instance,{field:r})}render(){if(this.field){if(!this.field.options){this.detectFieldBuild=!0;return}if(this.detectFieldBuild=!1,this.hostObservers.forEach(i=>i.unsubscribe()),this.hostObservers=[qi(this.field,["hide"],({firstChange:i,currentValue:r})=>{let o=this.containerRef;this.config.extras.lazyRender===!1?(i&&this.renderField(o,this.field),(!i||i&&r)&&this.elementRef&&this.renderer.setStyle(this.elementRef.nativeElement,"display",r?"none":"")):r?(o.clear(),this.field.className&&this.renderer.removeAttribute(this.elementRef.nativeElement,"class")):(this.renderField(o,this.field),this.field.className&&this.renderer.setAttribute(this.elementRef.nativeElement,"class",this.field.className)),!i&&this.field.options.detectChanges(this.field)}),qi(this.field,["className"],({firstChange:i,currentValue:r})=>{(!i||i&&r)&&(!this.config.extras.lazyRender||this.field.hide!==!0)&&this.elementRef&&this.renderer.setAttribute(this.elementRef.nativeElement,"class",r)})],!x3())["touched","pristine","status"].forEach(i=>this.hostObservers.push(qi(this.field,["formControl",i],({firstChange:r})=>!r&&gk(this.field))));else if(this.field.formControl){let i=this.field.formControl.events.subscribe(()=>gk(this.field));this.hostObservers.push(i)}}}resetRefs(i){i&&(i._localFields?i._localFields=[]:ar(this.field,"_localFields",[]),i._componentRefs?i._componentRefs=i._componentRefs.filter(r=>this.componentRefs.indexOf(r)===-1):ar(this.field,"_componentRefs",[])),this.componentRefs=[]}fieldChanges(i){if(!i)return()=>{};let r=v3(i,["props"],()=>i.options.detectChanges(i)),o=[()=>{r()}];for(let s of Object.keys(i._expressions||{})){let l=qi(i,["_expressions",s],({currentValue:c,previousValue:d})=>{d?.subscription&&(d.subscription.unsubscribe(),d.subscription=null),zi(c.value$)&&(c.subscription=c.value$.subscribe())});o.push(()=>{i._expressions[s]?.subscription&&i._expressions[s].subscription.unsubscribe(),l.unsubscribe()})}for(let s of[["focus"],["template"],["fieldGroupClassName"],["validation","show"]]){let l=qi(i,s,({firstChange:c})=>!c&&i.options.detectChanges(i));o.push(()=>l.unsubscribe())}if(i.formControl&&!i.fieldGroup){let s=i.formControl,l=s.valueChanges.pipe(se(_=>(i.parsers?.map(b=>_=b(_,i)),Object.is(_,i.formControl.value)||i.formControl.setValue(_),_)),_n((_,b)=>!(_!==b||Array.isArray(_)||Va(_))));s.value!==_u(i)&&(l=l.pipe(Ue(s.value)));let{updateOn:c,debounce:d}=i.modelOptions;(!c||c==="change")&&d?.default>0&&(l=l.pipe(St(d.default)));let p=l.subscribe(_=>{s._fields?.length>1&&s instanceof ia&&s.patchValue(_,{emitEvent:!1,onlySelf:!0}),pn(i)&&Cg(i,_),i.options.fieldChanges.next({value:_,field:i,type:"valueChanges"})});o.push(()=>p.unsubscribe())}let a=[];return qi(i,["_localFields"],({currentValue:s})=>{a.forEach(l=>l()),a=(s||[]).map(l=>this.fieldChanges(l))}),()=>{o.forEach(s=>s()),a.forEach(s=>s())}}};n.\u0275fac=function(r){return new(r||n)(be(Ck),be(ze),be(Y),be(ot),be(mte,8))},n.\u0275cmp=E({type:n,selectors:[["formly-field"]],viewQuery:function(r,o){if(r&1&&ie(Kee,7,ot),r&2){let a;j(a=H())&&(o.viewContainerRef=a.first)}},inputs:{field:"field"},features:[Ae],decls:2,vars:0,consts:[["container",""]],template:function(r,o){r&1&&wa(0,Zee,0,0,"ng-template",null,0,vi)},styles:["[_nghost-%COMP%]:empty{display:none}"]});let t=n;return t})(),pte=(()=>{let n=class n extends hte{};n.\u0275fac=(()=>{let i;return function(o){return(i||(i=ge(n)))(o||n)}})(),n.\u0275cmp=E({type:n,selectors:[["formly-field"]],standalone:!1,features:[le],decls:2,vars:0,consts:[["container",""]],template:function(r,o){r&1&&A(0,Xee,0,0,"ng-template",null,0,vi)},styles:["[_nghost-%COMP%]:empty{display:none}"]});let t=n;return t})(),fte=(()=>{let n=class n extends Eg{};n.\u0275fac=(()=>{let i;return function(o){return(i||(i=ge(n)))(o||n)}})(),n.\u0275cmp=E({type:n,selectors:[["formly-group"]],hostVars:2,hostBindings:function(r,o){r&2&&nt(o.field.fieldGroupClassName||"")},standalone:!1,features:[le],ngContentSelectors:Jee,decls:3,vars:0,consts:[[3,"field"]],template:function(r,o){r&1&&(Se(),xt(0,ete,1,1,"formly-field",0,Ui),ne(2)),r&2&&Ct(o.field.fieldGroup)},dependencies:[pte],encapsulation:2,changeDetection:0});let t=n;return t})(),Dg=new O("FORMLY_CONFIG");function gte(t){return{types:[{name:"formly-group",component:fte},{name:"formly-template",component:ute}],extensions:[{name:"core",extension:new bk(t),priority:-250},{name:"field-validation",extension:new yk(t),priority:-200},{name:"field-form",extension:new vk,priority:-150},{name:"field-expression",extension:new _k,priority:-100}]}}var w3=(t=[])=>[{provide:Dg,multi:!0,useFactory:gte,deps:[Ck]},_te(t)],_te=(t=[])=>({provide:Dg,multi:!0,useFactory:()=>{let n=u(Dg,{skipSelf:!0,optional:!0});return n?(n.push(t),n):t}});var bte=(()=>{let n=class n{get props(){return this.field.props||{}}get fieldAttrElements(){return this.field?._elementRefs||[]}constructor(i,r,o){this.renderer=i,this.elementRef=r,this.uiAttributesCache={},this.uiEvents={listeners:[],events:["click","keyup","keydown","keypress","focus","blur","change","wheel"],callback:(a,s)=>{switch(a){case"focus":return this.onFocus(s);case"blur":return this.onBlur(s);case"change":return this.onChange(s);default:return this.props[a](this.field,s)}}},this.document=o}ngOnChanges(i){i.field&&(this.field.name&&this.setAttribute("name",this.field.name),this.uiEvents.listeners.forEach(r=>r()),this.uiEvents.events.forEach(r=>{(this.props?.[r]||["focus","blur","change"].indexOf(r)!==-1)&&this.uiEvents.listeners.push(this.renderer.listen(this.elementRef.nativeElement,r,o=>this.uiEvents.callback(r,o)))}),this.props?.attributes&&qi(this.field,["props","attributes"],({currentValue:r,previousValue:o})=>{o&&Object.keys(o).forEach(a=>this.removeAttribute(a)),r&&Object.keys(r).forEach(a=>{r[a]!=null&&this.setAttribute(a,r[a])})}),this.detachElementRef(i.field.previousValue),this.attachElementRef(i.field.currentValue),this.fieldAttrElements.length===1&&(!this.id&&this.field.id&&this.setAttribute("id",this.field.id),this.focusObserver=qi(this.field,["focus"],({currentValue:r})=>{this.toggleFocus(r)}))),i.id&&this.setAttribute("id",this.id)}ngDoCheck(){if(!this.uiAttributes){let i=this.elementRef.nativeElement;this.uiAttributes=[...xk,"tabindex","placeholder","readonly","disabled","step"].filter(r=>!i.hasAttribute||!i.hasAttribute(r))}for(let i=0;ii()),this.detachElementRef(this.field),this.focusObserver?.unsubscribe()}toggleFocus(i){let r=this.fieldAttrElements?this.fieldAttrElements[0]:null;if(!r||!r.nativeElement.focus)return;let o=!!this.document.activeElement&&this.fieldAttrElements.some(({nativeElement:a})=>this.document.activeElement===a||a.contains(this.document.activeElement));i&&!o?Promise.resolve().then(()=>r.nativeElement.focus()):!i&&o&&Promise.resolve().then(()=>r.nativeElement.blur())}onFocus(i){this.focusObserver?.setValue(!0),this.props.focus?.(this.field,i)}onBlur(i){this.focusObserver?.setValue(!1),this.props.blur?.(this.field,i)}onHostChange(i){i instanceof Event||this.onChange(i)}onChange(i){this.props.change?.(this.field,i),this.field.formControl?.markAsDirty()}attachElementRef(i){i&&(i._elementRefs?.indexOf(this.elementRef)===-1?i._elementRefs.push(this.elementRef):ar(i,"_elementRefs",[this.elementRef]))}detachElementRef(i){let r=i?._elementRefs?this.fieldAttrElements.indexOf(this.elementRef):-1;r!==-1&&i._elementRefs.splice(r,1)}setAttribute(i,r){this.renderer.setAttribute(this.elementRef.nativeElement,i,r)}removeAttribute(i){this.renderer.removeAttribute(this.elementRef.nativeElement,i)}};n.\u0275fac=function(r){return new(r||n)(be(ze),be(Y),be(_e))},n.\u0275dir=P({type:n,selectors:[["","formlyAttributes",""]],hostBindings:function(r,o){r&1&&S("change",function(s){return o.onHostChange(s)})},inputs:{field:[0,"formlyAttributes","field"],id:"id"},features:[Ae]});let t=n;return t})(),ra=(()=>{let n=class n extends bte{};n.\u0275fac=(()=>{let i;return function(o){return(i||(i=ge(n)))(o||n)}})(),n.\u0275dir=P({type:n,selectors:[["","formlyAttributes",""]],hostBindings:function(r,o){r&1&&S("change",function(s){return o.onHostChange(s)})},standalone:!1,features:[le]});let t=n;return t})(),vte=(()=>{let n=class n{constructor(i){this.config=i}ngOnChanges(){let i=xk.map(r=>`templateOptions.${r}`);this.errorMessage$=Je(this.field.formControl.statusChanges,this.field.options?this.field.options.fieldChanges.pipe(ce(({field:r,type:o,property:a})=>r===this.field&&o==="expressionChanges"&&(a.indexOf("validation")!==-1||i.indexOf(a)!==-1))):Q(null)).pipe(Ue(null),je(()=>zi(this.errorMessage)?this.errorMessage:Q(this.errorMessage)))}get errorMessage(){let i=this.field.formControl;for(let r in i.errors)if(i.errors.hasOwnProperty(r)){let o=this.config.getValidatorMessage(r);if(Va(i.errors[r])){if(i.errors[r].errorPath)return;i.errors[r].message&&(o=i.errors[r].message)}return this.field.validation?.messages?.[r]&&(o=this.field.validation.messages[r]),this.field.validators?.[r]?.message&&(o=this.field.validators[r].message),this.field.asyncValidators?.[r]?.message&&(o=this.field.asyncValidators[r].message),typeof o=="function"?o(i.errors[r],this.field):o}}};n.\u0275fac=function(r){return new(r||n)(be(Ck))},n.\u0275cmp=E({type:n,selectors:[["formly-validation-message"]],inputs:{field:"field"},features:[Ae],decls:2,vars:3,template:function(r,o){r&1&&(g(0),ue(1,"async")),r&2&&N(Oe(1,1,o.errorMessage$))},dependencies:[sn],encapsulation:2,changeDetection:0});let t=n;return t})(),D3=(()=>{let n=class n extends vte{};n.\u0275fac=(()=>{let i;return function(o){return(i||(i=ge(n)))(o||n)}})(),n.\u0275cmp=E({type:n,selectors:[["formly-validation-message"]],standalone:!1,features:[le],decls:2,vars:3,template:function(r,o){r&1&&(g(0),ue(1,"async")),r&2&&N(Oe(1,1,o.errorMessage$))},dependencies:[sn],encapsulation:2,changeDetection:0});let t=n;return t})();var Mg=(()=>{let n=class n extends Eg{set _formlyControls(i){}set _staticContent(i){this.fieldComponent=i}};n.\u0275fac=(()=>{let i;return function(o){return(i||(i=ge(n)))(o||n)}})(),n.\u0275dir=P({type:n,viewQuery:function(r,o){if(r&1&&(ie(b3,5,ot),ie(b3,7,ot)),r&2){let a;j(a=H())&&(o.fieldComponent=a.first),j(a=H())&&(o._staticContent=a.first)}},standalone:!1,features:[le]});let t=n;return t})();var Sg=t=>({field:t}),M3=t=>({content:t});function yte(t,n){t&1&&(m(0,"span",9),g(1,"*"),h())}function xte(t,n){if(t&1&&(m(0,"mat-label"),g(1),V(2,yte,2,0,"span",9),h()),t&2){let e=x();f(),pe(" ",e.props.label," "),f(),B(e.props.required&&e.props.hideRequiredMarker!==!0?2:-1)}}function Cte(t,n){if(t&1&&Ge(0,3),t&2){let e=x();v("ngTemplateOutlet",e.props.textPrefix)("ngTemplateOutletContext",Nt(2,Sg,e.field))}}function wte(t,n){if(t&1&&Ge(0,4),t&2){let e=x();v("ngTemplateOutlet",e.props.prefix)("ngTemplateOutletContext",Nt(2,Sg,e.field))}}function Dte(t,n){if(t&1&&Ge(0,5),t&2){let e=x();v("ngTemplateOutlet",e.props.textSuffix)("ngTemplateOutletContext",Nt(2,Sg,e.field))}}function Ete(t,n){if(t&1&&Ge(0,6),t&2){let e=x();v("ngTemplateOutlet",e.props.suffix)("ngTemplateOutletContext",Nt(2,Sg,e.field))}}function Mte(t,n){if(t&1&&(m(0,"mat-hint"),Ge(1,10),h()),t&2){x();let e=Me(13);f(),v("ngTemplateOutlet",e)("ngTemplateOutletContext",Nt(2,M3,n))}}function Ste(t,n){if(t&1&&(m(0,"mat-hint",8),Ge(1,10),h()),t&2){x();let e=Me(13);f(),v("ngTemplateOutlet",e)("ngTemplateOutletContext",Nt(2,M3,n))}}function kte(t,n){if(t&1&&(kt(0),g(1),Dt()),t&2){let e=x().content;f(),N(e)}}function Tte(t,n){if(t&1&&Ge(0,10),t&2){let e=x().content,i=x();v("ngTemplateOutlet",e)("ngTemplateOutletContext",Nt(2,Sg,i.field))}}function Ite(t,n){if(t&1&&V(0,kte,2,1,"ng-container")(1,Tte,1,4,"ng-container",10),t&2){let e=n.content;B(e.createEmbeddedView?1:0)}}var Ate=["matPrefix"],Ote=["matTextPrefix"],Rte=["matSuffix"],Pte=["matTextSuffix"],Fte=(()=>{let n=class n extends Mg{constructor(i,r,o){super(),this.renderer=i,this.elementRef=r,this.focusMonitor=o}ngOnInit(){ar(this.field,"_formField",this.formField),this.focusMonitor.monitor(this.elementRef,!0).subscribe(i=>{!i&&this.field.focus&&(this.field.focus=!1)})}ngAfterViewInit(){if(this.formField.appearance!=="outline"&&this.props.hideFieldUnderline===!0){let i=this.formField._elementRef.nativeElement.querySelector(".mat-form-field-underline");i&&this.renderer.removeChild(i.parentNode,i)}}ngOnDestroy(){delete this.field._formField,this.focusMonitor.stopMonitoring(this.elementRef)}};n.\u0275fac=function(r){return new(r||n)(be(ze),be(Y),be(ti))},n.\u0275cmp=E({type:n,selectors:[["formly-wrapper-mat-form-field"]],viewQuery:function(r,o){if(r&1&&ie(Ci,7),r&2){let a;j(a=H())&&(o.formField=a.first)}},standalone:!1,features:[le],decls:14,vars:13,consts:[["fieldComponent",""],["stringOrTemplate",""],[3,"hideRequiredMarker","floatLabel","appearance","subscriptSizing","color"],["matTextPrefix","",3,"ngTemplateOutlet","ngTemplateOutletContext"],["matPrefix","",3,"ngTemplateOutlet","ngTemplateOutletContext"],["matTextSuffix","",3,"ngTemplateOutlet","ngTemplateOutletContext"],["matSuffix","",3,"ngTemplateOutlet","ngTemplateOutletContext"],[3,"field"],["align","end"],["aria-hidden","true",1,"mat-form-field-required-marker","mat-mdc-form-field-required-marker"],[3,"ngTemplateOutlet","ngTemplateOutletContext"]],template:function(r,o){if(r&1&&(m(0,"mat-form-field",2),Ge(1,null,0),V(3,xte,3,2,"mat-label"),V(4,Cte,1,4,"ng-container",3),V(5,wte,1,4,"ng-container",4),V(6,Dte,1,4,"ng-container",5),V(7,Ete,1,4,"ng-container",6),m(8,"mat-error"),M(9,"formly-validation-message",7),h(),V(10,Mte,2,4,"mat-hint"),V(11,Ste,2,4,"mat-hint",8),h(),A(12,Ite,2,1,"ng-template",null,1,vi)),r&2){let a,s;v("hideRequiredMarker",!0)("floatLabel",o.props.floatLabel)("appearance",o.props.appearance)("subscriptSizing",o.props.subscriptSizing)("color",o.props.color??"primary"),f(3),B(o.props.label&&o.props.hideLabel!==!0?3:-1),f(),B(o.props.textPrefix?4:-1),f(),B(o.props.prefix?5:-1),f(),B(o.props.textSuffix?6:-1),f(),B(o.props.suffix?7:-1),f(2),v("field",o.field),f(),B((a=o.props.description||o.props.hintStart)?10:-1,a),f(),B((s=o.props.hintEnd)?11:-1,s)}},dependencies:[Ln,Ci,Gi,og,So,cu,hl,D3],styles:[`formly-wrapper-mat-form-field .mat-mdc-form-field,formly-wrapper-mat-form-field .mat-form-field{width:100%} -`],encapsulation:2});let t=n;return t})();function S3(){return{wrappers:[{name:"form-field",component:Fte}]}}var oo=(()=>{let n=class n extends Eg{constructor(){super(...arguments),this.errorStateMatcher={isErrorState:()=>this.field&&this.showError},this.stateChanges=new z,this._errorState=!1,this._focused=!1}set matPrefix(i){i&&(this.props.prefix=i)}set matTextPrefix(i){i&&(this.props.textPrefix=i)}set matSuffix(i){i&&(this.props.suffix=i)}set matTextSuffix(i){i&&(this.props.textSuffix=i)}set _controls(i){this.attachControl(i.length===1?i.first:this)}ngOnDestroy(){delete this.formField?._control,this.stateChanges.complete()}setDescribedByIds(i){}onContainerClick(i){this.field.focus=!0,this.stateChanges.next()}get errorState(){let i=this.options.showError(this);return i!==this._errorState&&(this._errorState=i,this.stateChanges.next()),i}get controlType(){if(this.props.type)return this.props.type;let i=this.field.type;return i instanceof Pd?i.prototype.constructor.name:i}get focused(){let i=!!this.field.focus&&!this.disabled;return i!==this._focused&&(this._focused=i,this.stateChanges.next()),i}get disabled(){return!!this.props.disabled}get required(){return!!this.props.required}get placeholder(){return this.props.placeholder||""}get shouldPlaceholderFloat(){return this.shouldLabelFloat}get value(){return this.formControl?.value}set value(i){this.formControl?.patchValue(i)}get ngControl(){return this.formControl}get empty(){return this.value==null||this.value===""}get shouldLabelFloat(){return this.focused||!this.empty}get formField(){return this.field?._formField}attachControl(i){if(this.formField&&i!==this.formField._control){this.formField._control=i;let r=i?.ngControl;r?.valueAccessor?.hasOwnProperty("_formField")&&(r.valueAccessor._formField=this.formField),r?.valueAccessor?.hasOwnProperty("_parentFormField")&&(r.valueAccessor._parentFormField=this.formField),["prefix","suffix","textPrefix","textSuffix"].forEach(a=>qi(this.field,["props",a],({currentValue:s})=>s&&Promise.resolve().then(()=>{this.options.detectChanges(this.field)})));let o=i.setDescribedByIds.bind(i);i.setDescribedByIds=a=>{setTimeout(()=>o(a))}}}};n.\u0275fac=(()=>{let i;return function(o){return(i||(i=ge(n)))(o||n)}})(),n.\u0275dir=P({type:n,viewQuery:function(r,o){if(r&1&&(ie(Ate,5),ie(Ote,5),ie(Rte,5),ie(Pte,5),ie(Pa,5)),r&2){let a;j(a=H())&&(o.matPrefix=a.first),j(a=H())&&(o.matTextPrefix=a.first),j(a=H())&&(o.matSuffix=a.first),j(a=H())&&(o.matTextSuffix=a.first),j(a=H())&&(o._controls=a)}},standalone:!1,features:[le]});let t=n;return t})();var k3=(()=>{class t{static \u0275fac=function(i){return new(i||t)};static \u0275cmp=E({type:t,selectors:[["ng-component"]],hostAttrs:["cdk-text-field-style-loader",""],decls:0,vars:0,template:function(i,r){},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 t})(),Nte={passive:!0},T3=(()=>{class t{_platform=u(qe);_ngZone=u(ae);_renderer=u(mn).createRenderer(null,null);_styleLoader=u(ht);_monitoredElements=new Map;constructor(){}monitor(e){if(!this._platform.isBrowser)return Vi;this._styleLoader.load(k3);let i=jr(e),r=this._monitoredElements.get(i);if(r)return r.subject;let o=new z,a="cdk-text-field-autofilled",s=c=>{c.animationName==="cdk-text-field-autofill-start"&&!i.classList.contains(a)?(i.classList.add(a),this._ngZone.run(()=>o.next({target:c.target,isAutofilled:!0}))):c.animationName==="cdk-text-field-autofill-end"&&i.classList.contains(a)&&(i.classList.remove(a),this._ngZone.run(()=>o.next({target:c.target,isAutofilled:!1})))},l=this._ngZone.runOutsideAngular(()=>(i.classList.add("cdk-text-field-autofill-monitored"),this._renderer.listen(i,"animationstart",s,Nte)));return this._monitoredElements.set(i,{subject:o,unlisten:l}),o}stopMonitoring(e){let i=jr(e),r=this._monitoredElements.get(i);r&&(r.unlisten(),r.subject.complete(),i.classList.remove("cdk-text-field-autofill-monitored"),i.classList.remove("cdk-text-field-autofilled"),this._monitoredElements.delete(i))}ngOnDestroy(){this._monitoredElements.forEach((e,i)=>this.stopMonitoring(i))}static \u0275fac=function(i){return new(i||t)};static \u0275prov=R({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();var I3=(()=>{class t{_elementRef=u(Y);_platform=u(qe);_ngZone=u(ae);_renderer=u(ze);_resizeEvents=new z;_previousValue;_initialHeight;_destroyed=new z;_listenerCleanups;_minRows;_maxRows;_enabled=!0;_previousMinRows=-1;_textareaElement;get minRows(){return this._minRows}set minRows(e){this._minRows=Bn(e),this._setMinHeight()}get maxRows(){return this._maxRows}set maxRows(e){this._maxRows=Bn(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=u(_e);_hasFocus;_isViewInited=!1;constructor(){u(ht).load(k3),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(Nl(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),i=e.style;e.rows=1,i.position="absolute",i.visibility="hidden",i.border="none",i.padding="0",i.height="",i.minHeight="",i.maxHeight="",i.top=i.bottom=i.left=i.right="auto",i.overflow="hidden",this._textareaElement.parentNode.appendChild(e),this._cachedLineHeight=e.clientHeight,e.remove(),this._setMinHeight(),this._setMaxHeight()}_measureScrollHeight(){let e=this._textareaElement,i=e.style.marginBottom||"",r=this._platform.FIREFOX,o=r&&this._hasFocus,a=r?"cdk-textarea-autosize-measuring-firefox":"cdk-textarea-autosize-measuring";o&&(e.style.marginBottom=`${e.clientHeight}px`),e.classList.add(a);let s=e.scrollHeight-4;return e.classList.remove(a),o&&(e.style.marginBottom=i),s}_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 i=this._elementRef.nativeElement,r=i.value;if(!e&&this._minRows===this._previousMinRows&&r===this._previousValue)return;let o=this._measureScrollHeight(),a=Math.max(o,this._cachedPlaceholderHeight||0);i.style.height=`${a}px`,this._ngZone.runOutsideAngular(()=>{typeof requestAnimationFrame<"u"?requestAnimationFrame(()=>this._scrollToCaretPosition(i)):setTimeout(()=>this._scrollToCaretPosition(i))}),this._previousValue=r,this._previousMinRows=this._minRows}reset(){this._initialHeight!==void 0&&(this._textareaElement.style.height=this._initialHeight)}_noopInputHandler(){}_scrollToCaretPosition(e){let{selectionStart:i,selectionEnd:r}=e;!this._destroyed.isStopped&&this._hasFocus&&e.setSelectionRange(i,r)}static \u0275fac=function(i){return new(i||t)};static \u0275dir=P({type:t,selectors:[["textarea","cdkTextareaAutosize",""]],hostAttrs:["rows","1",1,"cdk-textarea-autosize"],hostBindings:function(i,r){i&1&&S("input",function(){return r._noopInputHandler()})},inputs:{minRows:[0,"cdkAutosizeMinRows","minRows"],maxRows:[0,"cdkAutosizeMaxRows","maxRows"],enabled:[2,"cdkTextareaAutosize","enabled",L],placeholder:"placeholder"},exportAs:["cdkTextareaAutosize"]})}return t})(),A3=(()=>{class t{static \u0275fac=function(i){return new(i||t)};static \u0275mod=ee({type:t});static \u0275inj=J({})}return t})();var Th=new O("MAT_INPUT_VALUE_ACCESSOR");var Vte=["button","checkbox","file","hidden","image","radio","range","reset","submit"],Bte=new O("MAT_INPUT_CONFIG"),en=(()=>{class t{_elementRef=u(Y);_platform=u(qe);ngControl=u(Un,{optional:!0,self:!0});_autofillMonitor=u(T3);_ngZone=u(ae);_formField=u(ta,{optional:!0});_renderer=u(ze);_uid=u(Ze).getId("mat-input-");_previousNativeValue;_inputValueAccessor;_signalBasedValueAccessor;_previousPlaceholder;_errorStateTracker;_config=u(Bte,{optional:!0});_cleanupIosKeyup;_cleanupWebkitWheel;_isServer;_isNativeSelect;_isTextarea;_isInFormField;focused=!1;stateChanges=new z;controlType="mat-input";autofilled=!1;get disabled(){return this._disabled}set disabled(e){this._disabled=Ri(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(Le.required)??!1}set required(e){this._required=Ri(e)}_required;get type(){return this._type}set type(e){this._type=e||"text",this._validateType(),!this._isTextarea&&IS().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=Ri(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=>IS().has(e));constructor(){let e=u(gc,{optional:!0}),i=u(Ji,{optional:!0}),r=u(ul),o=u(Th,{optional:!0,self:!0}),a=this._elementRef.nativeElement,s=a.nodeName.toLowerCase();o?ns(o.value)?this._signalBasedValueAccessor=o:this._inputValueAccessor=o:this._inputValueAccessor=a,this._previousNativeValue=this.value,this.id=this.id,this._platform.IOS&&this._ngZone.runOutsideAngular(()=>{this._cleanupIosKeyup=this._renderer.listen(a,"keyup",this._iOSKeyupListener)}),this._errorStateTracker=new dl(r,this.ngControl,i,e,this.stateChanges),this._isServer=!this._platform.isBrowser,this._isNativeSelect=s==="select",this._isTextarea=s==="textarea",this._isInFormField=!!this._formField,this.disabledInteractive=this._config?.disabledInteractive||!1,this._isNativeSelect&&(this.controlType=a.multiple?"mat-native-select-multiple":"mat-native-select"),this._signalBasedValueAccessor&&Lr(()=>{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 i=this._elementRef.nativeElement;i.type==="number"?(i.type="text",i.setSelectionRange(0,0),i.type="number"):i.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 i=this._elementRef.nativeElement;this._previousPlaceholder=e,e?i.setAttribute("placeholder",e):i.removeAttribute("placeholder")}}_getPlaceholder(){return this.placeholder||null}_validateType(){Vte.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,i=e.options[0];return this.focused||e.multiple||!this.empty||!!(e.selectedIndex>-1&&i&&i.label)}else return this.focused&&!this.disabled||!this.empty}get describedByIds(){return this._elementRef.nativeElement.getAttribute("aria-describedby")?.split(" ")||[]}setDescribedByIds(e){let i=this._elementRef.nativeElement;e.length?i.setAttribute("aria-describedby",e.join(" ")):i.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 i=e.target;!i.value&&i.selectionStart===0&&i.selectionEnd===0&&(i.setSelectionRange(1,1),i.setSelectionRange(0,0))};_getReadonlyAttribute(){return this._isNativeSelect?null:this.readonly||this.disabled&&this.disabledInteractive?"true":null}static \u0275fac=function(i){return new(i||t)};static \u0275dir=P({type:t,selectors:[["input","matInput",""],["textarea","matInput",""],["select","matNativeControl",""],["input","matNativeControl",""],["textarea","matNativeControl",""]],hostAttrs:[1,"mat-mdc-input-element"],hostVars:21,hostBindings:function(i,r){i&1&&S("focus",function(){return r._focusChanged(!0)})("blur",function(){return r._focusChanged(!1)})("input",function(){return r._onInput()}),i&2&&(ci("id",r.id)("disabled",r.disabled&&!r.disabledInteractive)("required",r.required),X("name",r.name||null)("readonly",r._getReadonlyAttribute())("aria-disabled",r.disabled&&r.disabledInteractive?"true":null)("aria-invalid",r.empty&&r.required?null:r.errorState)("aria-required",r.required)("id",r.id),G("mat-input-server",r._isServer)("mat-mdc-form-field-textarea-control",r._isInFormField&&r._isTextarea)("mat-mdc-form-field-input-control",r._isInFormField)("mat-mdc-input-disabled-interactive",r.disabledInteractive)("mdc-text-field__input",r._isInFormField)("mat-mdc-native-select-inline",r._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",L]},exportAs:["matInput"],features:[Ce([{provide:Pa,useExisting:t}]),Ae]})}return t})(),Mn=(()=>{class t{static \u0275fac=function(i){return new(i||t)};static \u0275mod=ee({type:t});static \u0275inj=J({imports:[De,Pi,Pi,A3,De]})}return t})();function jte(t,n){if(t&1&&M(0,"input",0),t&2){let e=x();v("id",e.id)("name",e.field.name)("type",e.type||"text")("readonly",e.props.readonly)("required",e.required)("errorStateMatcher",e.errorStateMatcher)("formControl",e.formControl)("formlyAttributes",e.field)("tabIndex",e.props.tabindex)("placeholder",e.props.placeholder)}}function Hte(t,n){if(t&1&&M(0,"input",1),t&2){let e=x();v("id",e.id)("name",e.field.name)("readonly",e.props.readonly)("required",e.required)("errorStateMatcher",e.errorStateMatcher)("formControl",e.formControl)("formlyAttributes",e.field)("tabIndex",e.props.tabindex)("placeholder",e.props.placeholder)}}var zte=(()=>{let n=class n extends oo{get type(){return this.props.type||"text"}};n.\u0275fac=(()=>{let i;return function(o){return(i||(i=ge(n)))(o||n)}})(),n.\u0275cmp=E({type:n,selectors:[["formly-field-mat-input"]],standalone:!1,features:[le],decls:2,vars:1,consts:[["matInput","",3,"id","name","type","readonly","required","errorStateMatcher","formControl","formlyAttributes","tabIndex","placeholder"],["matInput","","type","number",3,"id","name","readonly","required","errorStateMatcher","formControl","formlyAttributes","tabIndex","placeholder"]],template:function(r,o){r&1&&V(0,jte,1,10,"input",0)(1,Hte,1,9,"input",1),r&2&&B(o.type!=="number"?0:1)},dependencies:[Hi,fu,qt,Io,To,en,ra],encapsulation:2,changeDetection:0});let t=n;return t})();function O3(){return{types:[{name:"input",component:zte,wrappers:["form-field"]},{name:"string",extends:"input"},{name:"number",extends:"input",defaultOptions:{props:{type:"number"}}},{name:"integer",extends:"input",defaultOptions:{props:{type:"number"}}}]}}var Ute=(()=>{let n=class n extends oo{constructor(){super(...arguments),this.defaultOptions={props:{cols:1,rows:1}}}};n.\u0275fac=(()=>{let i;return function(o){return(i||(i=ge(n)))(o||n)}})(),n.\u0275cmp=E({type:n,selectors:[["formly-field-mat-textarea"]],standalone:!1,features:[Ce([{provide:Th,useExisting:n}]),le],decls:1,vars:16,consts:[["matInput","",3,"id","name","readonly","required","formControl","errorStateMatcher","cols","rows","formlyAttributes","placeholder","tabindex","cdkTextareaAutosize","cdkAutosizeMinRows","cdkAutosizeMaxRows"]],template:function(r,o){r&1&&M(0,"textarea",0),r&2&&(G("cdk-textarea-autosize",o.props.autosize),v("id",o.id)("name",o.field.name)("readonly",o.props.readonly)("required",o.required)("formControl",o.formControl)("errorStateMatcher",o.errorStateMatcher)("cols",o.props.cols)("rows",o.props.rows)("formlyAttributes",o.field)("placeholder",o.props.placeholder)("tabindex",o.props.tabindex)("cdkTextareaAutosize",o.props.autosize)("cdkAutosizeMinRows",o.props.autosizeMinRows)("cdkAutosizeMaxRows",o.props.autosizeMaxRows))},dependencies:[Hi,qt,Io,To,en,I3,ra],encapsulation:2,changeDetection:0});let t=n;return t})();function R3(){return{types:[{name:"textarea",component:Ute,wrappers:["form-field"]}]}}var $te=["input"],Wte=["formField"],Gte=["*"],Dx=class{source;value;constructor(n,e){this.source=n,this.value=e}},qte={provide:rr,useExisting:ri(()=>kg),multi:!0},P3=new O("MatRadioGroup"),Yte=new O("mat-radio-default-options",{providedIn:"root",factory:Qte});function Qte(){return{color:"accent",disabledInteractive:!1}}var kg=(()=>{class t{_changeDetector=u(ye);_value=null;_name=u(Ze).getId("mat-radio-group-");_selected=null;_isInitialized=!1;_labelPosition="after";_disabled=!1;_required=!1;_buttonChanges;_controlValueAccessorChangeFn=()=>{};onTouched=()=>{};change=new U;_radios;color;get name(){return this._name}set name(e){this._name=e,this._updateRadioButtonNames()}get labelPosition(){return this._labelPosition}set labelPosition(e){this._labelPosition=e==="before"?"before":"after",this._markRadiosForCheck()}get value(){return this._value}set value(e){this._value!==e&&(this._value=e,this._updateSelectedRadioFromValue(),this._checkSelectedRadioButton())}_checkSelectedRadioButton(){this._selected&&!this._selected.checked&&(this._selected.checked=!0)}get selected(){return this._selected}set selected(e){this._selected=e,this.value=e?e.value:null,this._checkSelectedRadioButton()}get disabled(){return this._disabled}set disabled(e){this._disabled=e,this._markRadiosForCheck()}get required(){return this._required}set required(e){this._required=e,this._markRadiosForCheck()}get disabledInteractive(){return this._disabledInteractive}set disabledInteractive(e){this._disabledInteractive=e,this._markRadiosForCheck()}_disabledInteractive=!1;constructor(){}ngAfterContentInit(){this._isInitialized=!0,this._buttonChanges=this._radios.changes.subscribe(()=>{this.selected&&!this._radios.find(e=>e===this.selected)&&(this._selected=null)})}ngOnDestroy(){this._buttonChanges?.unsubscribe()}_touch(){this.onTouched&&this.onTouched()}_updateRadioButtonNames(){this._radios&&this._radios.forEach(e=>{e.name=this.name,e._markForCheck()})}_updateSelectedRadioFromValue(){let e=this._selected!==null&&this._selected.value===this._value;this._radios&&!e&&(this._selected=null,this._radios.forEach(i=>{i.checked=this.value===i.value,i.checked&&(this._selected=i)}))}_emitChangeEvent(){this._isInitialized&&this.change.emit(new Dx(this._selected,this._value))}_markRadiosForCheck(){this._radios&&this._radios.forEach(e=>e._markForCheck())}writeValue(e){this.value=e,this._changeDetector.markForCheck()}registerOnChange(e){this._controlValueAccessorChangeFn=e}registerOnTouched(e){this.onTouched=e}setDisabledState(e){this.disabled=e,this._changeDetector.markForCheck()}static \u0275fac=function(i){return new(i||t)};static \u0275dir=P({type:t,selectors:[["mat-radio-group"]],contentQueries:function(i,r,o){if(i&1&&xe(o,wk,5),i&2){let a;j(a=H())&&(r._radios=a)}},hostAttrs:["role","radiogroup",1,"mat-mdc-radio-group"],inputs:{color:"color",name:"name",labelPosition:"labelPosition",value:"value",selected:"selected",disabled:[2,"disabled","disabled",L],required:[2,"required","required",L],disabledInteractive:[2,"disabledInteractive","disabledInteractive",L]},outputs:{change:"change"},exportAs:["matRadioGroup"],features:[Ce([qte,{provide:P3,useExisting:t}])]})}return t})(),wk=(()=>{class t{_elementRef=u(Y);_changeDetector=u(ye);_focusMonitor=u(ti);_radioDispatcher=u(uu);_defaultOptions=u(Yte,{optional:!0});_ngZone=u(ae);_renderer=u(ze);_uniqueId=u(Ze).getId("mat-radio-");_cleanupClick;id=this._uniqueId;name;ariaLabel;ariaLabelledby;ariaDescribedby;disableRipple=!1;tabIndex=0;get checked(){return this._checked}set checked(e){this._checked!==e&&(this._checked=e,e&&this.radioGroup&&this.radioGroup.value!==this.value?this.radioGroup.selected=this:!e&&this.radioGroup&&this.radioGroup.value===this.value&&(this.radioGroup.selected=null),e&&this._radioDispatcher.notify(this.id,this.name),this._changeDetector.markForCheck())}get value(){return this._value}set value(e){this._value!==e&&(this._value=e,this.radioGroup!==null&&(this.checked||(this.checked=this.radioGroup.value===e),this.checked&&(this.radioGroup.selected=this)))}get labelPosition(){return this._labelPosition||this.radioGroup&&this.radioGroup.labelPosition||"after"}set labelPosition(e){this._labelPosition=e}_labelPosition;get disabled(){return this._disabled||this.radioGroup!==null&&this.radioGroup.disabled}set disabled(e){this._setDisabled(e)}get required(){return this._required||this.radioGroup&&this.radioGroup.required}set required(e){e!==this._required&&this._changeDetector.markForCheck(),this._required=e}get color(){return this._color||this.radioGroup&&this.radioGroup.color||this._defaultOptions&&this._defaultOptions.color||"accent"}set color(e){this._color=e}_color;get disabledInteractive(){return this._disabledInteractive||this.radioGroup!==null&&this.radioGroup.disabledInteractive}set disabledInteractive(e){this._disabledInteractive=e}_disabledInteractive;change=new U;radioGroup;get inputId(){return`${this.id||this._uniqueId}-input`}_checked=!1;_disabled;_required;_value=null;_removeUniqueSelectionListener=()=>{};_previousTabIndex;_inputElement;_rippleTrigger;_noopAnimations=Ye();_injector=u(de);constructor(){u(ht).load(ki);let e=u(P3,{optional:!0}),i=u(new Oi("tabindex"),{optional:!0});this.radioGroup=e,this._disabledInteractive=this._defaultOptions?.disabledInteractive??!1,i&&(this.tabIndex=dt(i,0))}focus(e,i){i?this._focusMonitor.focusVia(this._inputElement,i,e):this._inputElement.nativeElement.focus(e)}_markForCheck(){this._changeDetector.markForCheck()}ngOnInit(){this.radioGroup&&(this.checked=this.radioGroup.value===this._value,this.checked&&(this.radioGroup.selected=this),this.name=this.radioGroup.name),this._removeUniqueSelectionListener=this._radioDispatcher.listen((e,i)=>{e!==this.id&&i===this.name&&(this.checked=!1)})}ngDoCheck(){this._updateTabIndex()}ngAfterViewInit(){this._updateTabIndex(),this._focusMonitor.monitor(this._elementRef,!0).subscribe(e=>{!e&&this.radioGroup&&this.radioGroup._touch()}),this._ngZone.runOutsideAngular(()=>{this._cleanupClick=this._renderer.listen(this._inputElement.nativeElement,"click",this._onInputClick)})}ngOnDestroy(){this._cleanupClick?.(),this._focusMonitor.stopMonitoring(this._elementRef),this._removeUniqueSelectionListener()}_emitChangeEvent(){this.change.emit(new Dx(this,this._value))}_isRippleDisabled(){return this.disableRipple||this.disabled}_onInputInteraction(e){if(e.stopPropagation(),!this.checked&&!this.disabled){let i=this.radioGroup&&this.value!==this.radioGroup.value;this.checked=!0,this._emitChangeEvent(),this.radioGroup&&(this.radioGroup._controlValueAccessorChangeFn(this.value),i&&this.radioGroup._emitChangeEvent())}}_onTouchTargetClick(e){this._onInputInteraction(e),(!this.disabled||this.disabledInteractive)&&this._inputElement?.nativeElement.focus()}_setDisabled(e){this._disabled!==e&&(this._disabled=e,this._changeDetector.markForCheck())}_onInputClick=e=>{this.disabled&&this.disabledInteractive&&e.preventDefault()};_updateTabIndex(){let e=this.radioGroup,i;if(!e||!e.selected||this.disabled?i=this.tabIndex:i=e.selected===this?this.tabIndex:-1,i!==this._previousTabIndex){let r=this._inputElement?.nativeElement;r&&(r.setAttribute("tabindex",i+""),this._previousTabIndex=i,gt(()=>{queueMicrotask(()=>{e&&e.selected&&e.selected!==this&&document.activeElement===r&&(e.selected?._inputElement.nativeElement.focus(),document.activeElement===r&&this._inputElement.nativeElement.blur())})},{injector:this._injector}))}}static \u0275fac=function(i){return new(i||t)};static \u0275cmp=E({type:t,selectors:[["mat-radio-button"]],viewQuery:function(i,r){if(i&1&&(ie($te,5),ie(Wte,7,Y)),i&2){let o;j(o=H())&&(r._inputElement=o.first),j(o=H())&&(r._rippleTrigger=o.first)}},hostAttrs:[1,"mat-mdc-radio-button"],hostVars:19,hostBindings:function(i,r){i&1&&S("focus",function(){return r._inputElement.nativeElement.focus()}),i&2&&(X("id",r.id)("tabindex",null)("aria-label",null)("aria-labelledby",null)("aria-describedby",null),G("mat-primary",r.color==="primary")("mat-accent",r.color==="accent")("mat-warn",r.color==="warn")("mat-mdc-radio-checked",r.checked)("mat-mdc-radio-disabled",r.disabled)("mat-mdc-radio-disabled-interactive",r.disabledInteractive)("_mat-animation-noopable",r._noopAnimations))},inputs:{id:"id",name:"name",ariaLabel:[0,"aria-label","ariaLabel"],ariaLabelledby:[0,"aria-labelledby","ariaLabelledby"],ariaDescribedby:[0,"aria-describedby","ariaDescribedby"],disableRipple:[2,"disableRipple","disableRipple",L],tabIndex:[2,"tabIndex","tabIndex",e=>e==null?0:dt(e)],checked:[2,"checked","checked",L],value:"value",labelPosition:"labelPosition",disabled:[2,"disabled","disabled",L],required:[2,"required","required",L],color:"color",disabledInteractive:[2,"disabledInteractive","disabledInteractive",L]},outputs:{change:"change"},exportAs:["matRadioButton"],ngContentSelectors:Gte,decls:13,vars:17,consts:[["formField",""],["input",""],["mat-internal-form-field","",3,"labelPosition"],[1,"mdc-radio"],[1,"mat-mdc-radio-touch-target",3,"click"],["type","radio","aria-invalid","false",1,"mdc-radio__native-control",3,"change","id","checked","disabled","required"],[1,"mdc-radio__background"],[1,"mdc-radio__outer-circle"],[1,"mdc-radio__inner-circle"],["mat-ripple","",1,"mat-radio-ripple","mat-focus-indicator",3,"matRippleTrigger","matRippleDisabled","matRippleCentered"],[1,"mat-ripple-element","mat-radio-persistent-ripple"],[1,"mdc-label",3,"for"]],template:function(i,r){if(i&1){let o=q();Se(),m(0,"div",2,0)(2,"div",3)(3,"div",4),S("click",function(s){return T(o),I(r._onTouchTargetClick(s))}),h(),m(4,"input",5,1),S("change",function(s){return T(o),I(r._onInputInteraction(s))}),h(),m(6,"div",6),M(7,"div",7)(8,"div",8),h(),m(9,"div",9),M(10,"div",10),h()(),m(11,"label",11),ne(12),h()()}i&2&&(v("labelPosition",r.labelPosition),f(2),G("mdc-radio--disabled",r.disabled),f(2),v("id",r.inputId)("checked",r.checked)("disabled",r.disabled&&!r.disabledInteractive)("required",r.required),X("name",r.name)("value",r.value)("aria-label",r.ariaLabel)("aria-labelledby",r.ariaLabelledby)("aria-describedby",r.ariaDescribedby)("aria-disabled",r.disabled&&r.disabledInteractive?"true":null),f(5),v("matRippleTrigger",r._rippleTrigger.nativeElement)("matRippleDisabled",r._isRippleDisabled())("matRippleCentered",!0),f(2),v("for",r.inputId))},dependencies:[jn,Zm],styles:[`.mat-mdc-radio-button{-webkit-tap-highlight-color:rgba(0,0,0,0)}.mat-mdc-radio-button .mdc-radio{display:inline-block;position:relative;flex:0 0 auto;box-sizing:content-box;width:20px;height:20px;cursor:pointer;will-change:opacity,transform,border-color,color;padding:calc((var(--mat-radio-state-layer-size, 40px) - 20px)/2)}.mat-mdc-radio-button .mdc-radio:hover>.mdc-radio__native-control:not([disabled]):not(:focus)~.mdc-radio__background::before{opacity:.04;transform:scale(1)}.mat-mdc-radio-button .mdc-radio:hover>.mdc-radio__native-control:not([disabled])~.mdc-radio__background>.mdc-radio__outer-circle{border-color:var(--mat-radio-unselected-hover-icon-color, var(--mat-sys-on-surface))}.mat-mdc-radio-button .mdc-radio:hover>.mdc-radio__native-control:enabled:checked+.mdc-radio__background>.mdc-radio__outer-circle{border-color:var(--mat-radio-selected-hover-icon-color, var(--mat-sys-primary))}.mat-mdc-radio-button .mdc-radio:hover>.mdc-radio__native-control:enabled:checked+.mdc-radio__background>.mdc-radio__inner-circle{background-color:var(--mat-radio-selected-hover-icon-color, var(--mat-sys-primary, currentColor))}.mat-mdc-radio-button .mdc-radio:active>.mdc-radio__native-control:enabled:not(:checked)+.mdc-radio__background>.mdc-radio__outer-circle{border-color:var(--mat-radio-unselected-pressed-icon-color, var(--mat-sys-on-surface))}.mat-mdc-radio-button .mdc-radio:active>.mdc-radio__native-control:enabled:checked+.mdc-radio__background>.mdc-radio__outer-circle{border-color:var(--mat-radio-selected-pressed-icon-color, var(--mat-sys-primary))}.mat-mdc-radio-button .mdc-radio:active>.mdc-radio__native-control:enabled:checked+.mdc-radio__background>.mdc-radio__inner-circle{background-color:var(--mat-radio-selected-pressed-icon-color, var(--mat-sys-primary, currentColor))}.mat-mdc-radio-button .mdc-radio__background{display:inline-block;position:relative;box-sizing:border-box;width:20px;height:20px}.mat-mdc-radio-button .mdc-radio__background::before{position:absolute;transform:scale(0, 0);border-radius:50%;opacity:0;pointer-events:none;content:"";transition:opacity 90ms cubic-bezier(0.4, 0, 0.6, 1),transform 90ms cubic-bezier(0.4, 0, 0.6, 1);width:var(--mat-radio-state-layer-size, 40px);height:var(--mat-radio-state-layer-size, 40px);top:calc(-1*(var(--mat-radio-state-layer-size, 40px) - 20px)/2);left:calc(-1*(var(--mat-radio-state-layer-size, 40px) - 20px)/2)}.mat-mdc-radio-button .mdc-radio__outer-circle{position:absolute;top:0;left:0;box-sizing:border-box;width:100%;height:100%;border-width:2px;border-style:solid;border-radius:50%;transition:border-color 90ms cubic-bezier(0.4, 0, 0.6, 1)}.mat-mdc-radio-button .mdc-radio__inner-circle{position:absolute;top:0;left:0;box-sizing:border-box;width:100%;height:100%;transform:scale(0);border-radius:50%;transition:transform 90ms cubic-bezier(0.4, 0, 0.6, 1),background-color 90ms cubic-bezier(0.4, 0, 0.6, 1)}@media(forced-colors: active){.mat-mdc-radio-button .mdc-radio__inner-circle{background-color:CanvasText !important}}.mat-mdc-radio-button .mdc-radio__native-control{position:absolute;margin:0;padding:0;opacity:0;top:0;right:0;left:0;cursor:inherit;z-index:1;width:var(--mat-radio-state-layer-size, 40px);height:var(--mat-radio-state-layer-size, 40px)}.mat-mdc-radio-button .mdc-radio__native-control:checked+.mdc-radio__background,.mat-mdc-radio-button .mdc-radio__native-control:disabled+.mdc-radio__background{transition:opacity 90ms cubic-bezier(0, 0, 0.2, 1),transform 90ms cubic-bezier(0, 0, 0.2, 1)}.mat-mdc-radio-button .mdc-radio__native-control:checked+.mdc-radio__background>.mdc-radio__outer-circle,.mat-mdc-radio-button .mdc-radio__native-control:disabled+.mdc-radio__background>.mdc-radio__outer-circle{transition:border-color 90ms cubic-bezier(0, 0, 0.2, 1)}.mat-mdc-radio-button .mdc-radio__native-control:checked+.mdc-radio__background>.mdc-radio__inner-circle,.mat-mdc-radio-button .mdc-radio__native-control:disabled+.mdc-radio__background>.mdc-radio__inner-circle{transition:transform 90ms cubic-bezier(0, 0, 0.2, 1),background-color 90ms cubic-bezier(0, 0, 0.2, 1)}.mat-mdc-radio-button .mdc-radio__native-control:focus+.mdc-radio__background::before{transform:scale(1);opacity:.12;transition:opacity 90ms cubic-bezier(0, 0, 0.2, 1),transform 90ms cubic-bezier(0, 0, 0.2, 1)}.mat-mdc-radio-button .mdc-radio__native-control:disabled:not(:checked)+.mdc-radio__background>.mdc-radio__outer-circle{border-color:var(--mat-radio-disabled-unselected-icon-color, var(--mat-sys-on-surface));opacity:var(--mat-radio-disabled-unselected-icon-opacity, 0.38)}.mat-mdc-radio-button .mdc-radio__native-control:disabled+.mdc-radio__background{cursor:default}.mat-mdc-radio-button .mdc-radio__native-control:disabled+.mdc-radio__background>.mdc-radio__outer-circle{border-color:var(--mat-radio-disabled-selected-icon-color, var(--mat-sys-on-surface));opacity:var(--mat-radio-disabled-selected-icon-opacity, 0.38)}.mat-mdc-radio-button .mdc-radio__native-control:disabled+.mdc-radio__background>.mdc-radio__inner-circle{background-color:var(--mat-radio-disabled-selected-icon-color, var(--mat-sys-on-surface, currentColor));opacity:var(--mat-radio-disabled-selected-icon-opacity, 0.38)}.mat-mdc-radio-button .mdc-radio__native-control:enabled:not(:checked)+.mdc-radio__background>.mdc-radio__outer-circle{border-color:var(--mat-radio-unselected-icon-color, var(--mat-sys-on-surface-variant))}.mat-mdc-radio-button .mdc-radio__native-control:enabled:checked+.mdc-radio__background>.mdc-radio__outer-circle{border-color:var(--mat-radio-selected-icon-color, var(--mat-sys-primary))}.mat-mdc-radio-button .mdc-radio__native-control:enabled:checked+.mdc-radio__background>.mdc-radio__inner-circle{background-color:var(--mat-radio-selected-icon-color, var(--mat-sys-primary, currentColor))}.mat-mdc-radio-button .mdc-radio__native-control:enabled:focus:checked+.mdc-radio__background>.mdc-radio__outer-circle{border-color:var(--mat-radio-selected-focus-icon-color, var(--mat-sys-primary))}.mat-mdc-radio-button .mdc-radio__native-control:enabled:focus:checked+.mdc-radio__background>.mdc-radio__inner-circle{background-color:var(--mat-radio-selected-focus-icon-color, var(--mat-sys-primary, currentColor))}.mat-mdc-radio-button .mdc-radio__native-control:checked+.mdc-radio__background>.mdc-radio__inner-circle{transform:scale(0.5);transition:transform 90ms cubic-bezier(0, 0, 0.2, 1),background-color 90ms cubic-bezier(0, 0, 0.2, 1)}.mat-mdc-radio-button.mat-mdc-radio-disabled-interactive .mdc-radio--disabled{pointer-events:auto}.mat-mdc-radio-button.mat-mdc-radio-disabled-interactive .mdc-radio--disabled .mdc-radio__native-control:not(:checked)+.mdc-radio__background>.mdc-radio__outer-circle{border-color:var(--mat-radio-disabled-unselected-icon-color, var(--mat-sys-on-surface));opacity:var(--mat-radio-disabled-unselected-icon-opacity, 0.38)}.mat-mdc-radio-button.mat-mdc-radio-disabled-interactive .mdc-radio--disabled:hover .mdc-radio__native-control:checked+.mdc-radio__background>.mdc-radio__outer-circle,.mat-mdc-radio-button.mat-mdc-radio-disabled-interactive .mdc-radio--disabled .mdc-radio__native-control:checked:focus+.mdc-radio__background>.mdc-radio__outer-circle,.mat-mdc-radio-button.mat-mdc-radio-disabled-interactive .mdc-radio--disabled .mdc-radio__native-control+.mdc-radio__background>.mdc-radio__outer-circle{border-color:var(--mat-radio-disabled-selected-icon-color, var(--mat-sys-on-surface));opacity:var(--mat-radio-disabled-selected-icon-opacity, 0.38)}.mat-mdc-radio-button.mat-mdc-radio-disabled-interactive .mdc-radio--disabled:hover .mdc-radio__native-control:checked+.mdc-radio__background>.mdc-radio__inner-circle,.mat-mdc-radio-button.mat-mdc-radio-disabled-interactive .mdc-radio--disabled .mdc-radio__native-control:checked:focus+.mdc-radio__background>.mdc-radio__inner-circle,.mat-mdc-radio-button.mat-mdc-radio-disabled-interactive .mdc-radio--disabled .mdc-radio__native-control+.mdc-radio__background>.mdc-radio__inner-circle{background-color:var(--mat-radio-disabled-selected-icon-color, var(--mat-sys-on-surface, currentColor));opacity:var(--mat-radio-disabled-selected-icon-opacity, 0.38)}.mat-mdc-radio-button._mat-animation-noopable .mdc-radio__background::before,.mat-mdc-radio-button._mat-animation-noopable .mdc-radio__outer-circle,.mat-mdc-radio-button._mat-animation-noopable .mdc-radio__inner-circle{transition:none !important}.mat-mdc-radio-button label{cursor:pointer}.mat-mdc-radio-button .mdc-radio__background::before{background-color:var(--mat-radio-ripple-color, var(--mat-sys-on-surface))}.mat-mdc-radio-button.mat-mdc-radio-checked .mat-ripple-element,.mat-mdc-radio-button.mat-mdc-radio-checked .mdc-radio__background::before{background-color:var(--mat-radio-checked-ripple-color, var(--mat-sys-primary))}.mat-mdc-radio-button.mat-mdc-radio-disabled-interactive .mdc-radio--disabled .mat-ripple-element,.mat-mdc-radio-button.mat-mdc-radio-disabled-interactive .mdc-radio--disabled .mdc-radio__background::before{background-color:var(--mat-radio-ripple-color, var(--mat-sys-on-surface))}.mat-mdc-radio-button .mat-internal-form-field{color:var(--mat-radio-label-text-color, var(--mat-sys-on-surface));font-family:var(--mat-radio-label-text-font, var(--mat-sys-body-medium-font));line-height:var(--mat-radio-label-text-line-height, var(--mat-sys-body-medium-line-height));font-size:var(--mat-radio-label-text-size, var(--mat-sys-body-medium-size));letter-spacing:var(--mat-radio-label-text-tracking, var(--mat-sys-body-medium-tracking));font-weight:var(--mat-radio-label-text-weight, var(--mat-sys-body-medium-weight))}.mat-mdc-radio-button .mdc-radio--disabled+label{color:var(--mat-radio-disabled-label-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent))}.mat-mdc-radio-button .mat-radio-ripple{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none;border-radius:50%}.mat-mdc-radio-button .mat-radio-ripple>.mat-ripple-element{opacity:.14}.mat-mdc-radio-button .mat-radio-ripple::before{border-radius:50%}.mat-mdc-radio-button .mdc-radio>.mdc-radio__native-control:focus:enabled:not(:checked)~.mdc-radio__background>.mdc-radio__outer-circle{border-color:var(--mat-radio-unselected-focus-icon-color, var(--mat-sys-on-surface))}.mat-mdc-radio-button.cdk-focused .mat-focus-indicator::before{content:""}.mat-mdc-radio-disabled{cursor:default;pointer-events:none}.mat-mdc-radio-disabled.mat-mdc-radio-disabled-interactive{pointer-events:auto}.mat-mdc-radio-touch-target{position:absolute;top:50%;left:50%;height:var(--mat-radio-touch-target-size, 48px);width:var(--mat-radio-touch-target-size, 48px);transform:translate(-50%, -50%);display:var(--mat-radio-touch-target-display, block)}[dir=rtl] .mat-mdc-radio-touch-target{left:auto;right:50%;transform:translate(50%, -50%)} -`],encapsulation:2,changeDetection:0})}return t})();var Zte=(()=>{let n=class n{transform(i,r){return i instanceof Fe?this.dispose():i=this.observableOf(i,r),i.pipe(se(o=>this.transformOptions(o,r)))}ngOnDestroy(){this.dispose()}transformOptions(i,r){let o=this.transformSelectProps(r),a=[],s={};return i?.forEach(l=>{let c=this.transformOption(l,o);if(c.group){let d=s[c.label];d===void 0?s[c.label]=a.push(c)-1:c.group.forEach(p=>a[d].group.push(p))}else a.push(c)}),a}transformOption(i,r){let o=r.groupProp(i);return Array.isArray(o)?{label:r.labelProp(i),group:o.map(a=>this.transformOption(a,r))}:(i={label:r.labelProp(i),value:r.valueProp(i),disabled:!!r.disabledProp(i)},o?{label:o,group:[i]}:i)}transformSelectProps(i){let r=i?.props||i?.templateOptions||{},o=a=>typeof a=="function"?a:s=>s[a];return{groupProp:o(r.groupProp||"group"),labelProp:o(r.labelProp||"label"),valueProp:o(r.valueProp||"value"),disabledProp:o(r.disabledProp||"disabled")}}dispose(){this._options&&(this._options.complete(),this._options=null),this._subscription&&(this._subscription.unsubscribe(),this._subscription=null)}observableOf(i,r){return this.dispose(),r&&r.options&&r.options.fieldChanges&&(this._subscription=r.options.fieldChanges.pipe(ce(({property:o,type:a,field:s})=>a==="expressionChanges"&&(o.indexOf("templateOptions.options")===0||o.indexOf("props.options")===0)&&s===r&&Array.isArray(s.props.options)&&!!this._options),He(()=>this._options.next(r.props.options))).subscribe()),this._options=new it(i),this._options.asObservable()}};n.\u0275fac=function(r){return new(r||n)},n.\u0275pipe=Kr({name:"formlySelectOptions",type:n,pure:!0});let t=n;return t})(),Ah=(()=>{let n=class n extends Zte{};n.\u0275fac=(()=>{let i;return function(o){return(i||(i=ge(n)))(o||n)}})(),n.\u0275pipe=Kr({name:"formlySelectOptions",type:n,pure:!0,standalone:!1});let t=n;return t})();function Xte(t,n){if(t&1&&(m(0,"mat-radio-button",1),g(1),h()),t&2){let e=n.$implicit,i=n.$index,r=x();v("id",r.id+"_"+i)("color",r.props.color)("labelPosition",r.props.labelPosition)("disabled",e.disabled)("value",e.value),f(),pe(" ",e.label," ")}}var Jte=(()=>{let n=class n extends oo{constructor(){super(...arguments),this.defaultOptions={props:{hideFieldUnderline:!0,floatLabel:"always",tabindex:-1}}}ngAfterViewInit(){this.focusObserver=qi(this.field,["focus"],({currentValue:i})=>{this.props.tabindex===-1&&i&&this.radioGroup._radios.length>0&&setTimeout(()=>{(this.radioGroup.selected?this.radioGroup.selected:this.radioGroup._radios.first).focus()})})}onContainerClick(){}ngOnDestroy(){super.ngOnDestroy(),this.focusObserver&&this.focusObserver.unsubscribe()}};n.\u0275fac=(()=>{let i;return function(o){return(i||(i=ge(n)))(o||n)}})(),n.\u0275cmp=E({type:n,selectors:[["formly-field-mat-radio"]],viewQuery:function(r,o){if(r&1&&ie(kg,7),r&2){let a;j(a=H())&&(o.radioGroup=a.first)}},standalone:!1,features:[le],decls:5,vars:9,consts:[[3,"formControl","formlyAttributes","required","tabindex"],[3,"id","color","labelPosition","disabled","value"]],template:function(r,o){r&1&&(m(0,"mat-radio-group",0),xt(1,Xte,2,6,"mat-radio-button",1,Ui),ue(3,"formlySelectOptions"),ue(4,"async"),h()),r&2&&(v("formControl",o.formControl)("formlyAttributes",o.field)("required",o.required)("tabindex",o.props.tabindex),f(),Ct(Oe(4,7,Ei(3,4,o.props.options,o.field))))},dependencies:[qt,Io,To,kg,wk,ra,sn,Ah],encapsulation:2,changeDetection:0});let t=n;return t})();function F3(){return{types:[{name:"radio",component:Jte,wrappers:["form-field"]}]}}var eie=["input"],tie=["label"],iie=["*"],nie=new O("mat-checkbox-default-options",{providedIn:"root",factory:L3});function L3(){return{color:"accent",clickAction:"check-indeterminate",disabledInteractive:!1}}var Er=(function(t){return t[t.Init=0]="Init",t[t.Checked=1]="Checked",t[t.Unchecked=2]="Unchecked",t[t.Indeterminate=3]="Indeterminate",t})(Er||{}),Ek=class{source;checked},N3=L3(),ja=(()=>{class t{_elementRef=u(Y);_changeDetectorRef=u(ye);_ngZone=u(ae);_animationsDisabled=Ye();_options=u(nie,{optional:!0});focus(){this._inputElement.nativeElement.focus()}_createChangeEvent(e){let i=new Ek;return i.source=this,i.checked=e,i}_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;labelPosition="after";name=null;change=new U;indeterminateChange=new U;value;disableRipple;_inputElement;_labelElement;tabIndex;color;disabledInteractive;_onTouched=()=>{};_currentAnimationClass="";_currentCheckState=Er.Init;_controlValueAccessorChangeFn=()=>{};_validatorChangeFn=()=>{};constructor(){u(ht).load(ki);let e=u(new Oi("tabindex"),{optional:!0});this._options=this._options||N3,this.color=this._options.color||N3.color,this.tabIndex=e==null?0:parseInt(e)||0,this.id=this._uniqueId=u(Ze).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 i=e!=this._indeterminate();this._indeterminate.set(e),i&&(e?this._transitionCheckState(Er.Indeterminate):this._transitionCheckState(this.checked?Er.Checked:Er.Unchecked),this.indeterminateChange.emit(e)),this._syncIndeterminate(e)}_indeterminate=he(!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 i=this._currentCheckState,r=this._getAnimationTargetElement();if(!(i===e||!r)&&(this._currentAnimationClass&&r.classList.remove(this._currentAnimationClass),this._currentAnimationClass=this._getAnimationClassForCheckStateTransition(i,e),this._currentCheckState=e,this._currentAnimationClass.length>0)){r.classList.add(this._currentAnimationClass);let o=this._currentAnimationClass;this._ngZone.runOutsideAngular(()=>{setTimeout(()=>{r.classList.remove(o)},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?Er.Checked:Er.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,i){if(this._animationsDisabled)return"";switch(e){case Er.Init:if(i===Er.Checked)return this._animationClasses.uncheckedToChecked;if(i==Er.Indeterminate)return this._checked?this._animationClasses.checkedToIndeterminate:this._animationClasses.uncheckedToIndeterminate;break;case Er.Unchecked:return i===Er.Checked?this._animationClasses.uncheckedToChecked:this._animationClasses.uncheckedToIndeterminate;case Er.Checked:return i===Er.Unchecked?this._animationClasses.checkedToUnchecked:this._animationClasses.checkedToIndeterminate;case Er.Indeterminate:return i===Er.Checked?this._animationClasses.indeterminateToChecked:this._animationClasses.indeterminateToUnchecked}return""}_syncIndeterminate(e){let i=this._inputElement;i&&(i.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(i){return new(i||t)};static \u0275cmp=E({type:t,selectors:[["mat-checkbox"]],viewQuery:function(i,r){if(i&1&&(ie(eie,5),ie(tie,5)),i&2){let o;j(o=H())&&(r._inputElement=o.first),j(o=H())&&(r._labelElement=o.first)}},hostAttrs:[1,"mat-mdc-checkbox"],hostVars:16,hostBindings:function(i,r){i&2&&(ci("id",r.id),X("tabindex",null)("aria-label",null)("aria-labelledby",null),nt(r.color?"mat-"+r.color:"mat-accent"),G("_mat-animation-noopable",r._animationsDisabled)("mdc-checkbox--disabled",r.disabled)("mat-mdc-checkbox-disabled",r.disabled)("mat-mdc-checkbox-checked",r.checked)("mat-mdc-checkbox-disabled-interactive",r.disabledInteractive))},inputs:{ariaLabel:[0,"aria-label","ariaLabel"],ariaLabelledby:[0,"aria-labelledby","ariaLabelledby"],ariaDescribedby:[0,"aria-describedby","ariaDescribedby"],ariaExpanded:[2,"aria-expanded","ariaExpanded",L],ariaControls:[0,"aria-controls","ariaControls"],ariaOwns:[0,"aria-owns","ariaOwns"],id:"id",required:[2,"required","required",L],labelPosition:"labelPosition",name:"name",value:"value",disableRipple:[2,"disableRipple","disableRipple",L],tabIndex:[2,"tabIndex","tabIndex",e=>e==null?void 0:dt(e)],color:"color",disabledInteractive:[2,"disabledInteractive","disabledInteractive",L],checked:[2,"checked","checked",L],disabled:[2,"disabled","disabled",L],indeterminate:[2,"indeterminate","indeterminate",L]},outputs:{change:"change",indeterminateChange:"indeterminateChange"},exportAs:["matCheckbox"],features:[Ce([{provide:rr,useExisting:ri(()=>t),multi:!0},{provide:na,useExisting:t,multi:!0}]),Ae],ngContentSelectors:iie,decls:15,vars:23,consts:[["checkbox",""],["input",""],["label",""],["mat-internal-form-field","",3,"click","labelPosition"],[1,"mdc-checkbox"],[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"],[1,"mdc-checkbox__ripple"],[1,"mdc-checkbox__background"],["focusable","false","viewBox","0 0 24 24","aria-hidden","true",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","",1,"mat-mdc-checkbox-ripple","mat-focus-indicator",3,"matRippleTrigger","matRippleDisabled","matRippleCentered"],[1,"mdc-label",3,"for"]],template:function(i,r){if(i&1){let o=q();Se(),m(0,"div",3),S("click",function(s){return T(o),I(r._preventBubblingFromLabel(s))}),m(1,"div",4,0)(3,"div",5),S("click",function(){return T(o),I(r._onTouchTargetClick())}),h(),m(4,"input",6,1),S("blur",function(){return T(o),I(r._onBlur())})("click",function(){return T(o),I(r._onInputClick())})("change",function(s){return T(o),I(r._onInteractionEvent(s))}),h(),M(6,"div",7),m(7,"div",8),Zt(),m(8,"svg",9),M(9,"path",10),h(),Wo(),M(10,"div",11),h(),M(11,"div",12),h(),m(12,"label",13,2),ne(14),h()()}if(i&2){let o=Me(2);v("labelPosition",r.labelPosition),f(4),G("mdc-checkbox--selected",r.checked),v("checked",r.checked)("indeterminate",r.indeterminate)("disabled",r.disabled&&!r.disabledInteractive)("id",r.inputId)("required",r.required)("tabIndex",r.disabled&&!r.disabledInteractive?-1:r.tabIndex),X("aria-label",r.ariaLabel||null)("aria-labelledby",r.ariaLabelledby)("aria-describedby",r.ariaDescribedby)("aria-checked",r.indeterminate?"mixed":null)("aria-controls",r.ariaControls)("aria-disabled",r.disabled&&r.disabledInteractive?!0:null)("aria-expanded",r.ariaExpanded)("aria-owns",r.ariaOwns)("name",r.name)("value",r.value),f(7),v("matRippleTrigger",o)("matRippleDisabled",r.disableRipple||r.disabled)("matRippleCentered",!0),f(),v("for",r.inputId)}},dependencies:[jn,Zm],styles:[`.mdc-checkbox{display:inline-block;position:relative;flex:0 0 18px;box-sizing:content-box;width:18px;height:18px;line-height:0;white-space:nowrap;cursor:pointer;vertical-align:bottom;padding:calc((var(--mat-checkbox-state-layer-size, 40px) - 18px)/2);margin:calc((var(--mat-checkbox-state-layer-size, 40px) - var(--mat-checkbox-state-layer-size, 40px))/2)}.mdc-checkbox:hover>.mdc-checkbox__ripple{opacity:var(--mat-checkbox-unselected-hover-state-layer-opacity, var(--mat-sys-hover-state-layer-opacity));background-color:var(--mat-checkbox-unselected-hover-state-layer-color, var(--mat-sys-on-surface))}.mdc-checkbox:hover>.mat-mdc-checkbox-ripple>.mat-ripple-element{background-color:var(--mat-checkbox-unselected-hover-state-layer-color, var(--mat-sys-on-surface))}.mdc-checkbox .mdc-checkbox__native-control:focus+.mdc-checkbox__ripple{opacity:var(--mat-checkbox-unselected-focus-state-layer-opacity, var(--mat-sys-focus-state-layer-opacity));background-color:var(--mat-checkbox-unselected-focus-state-layer-color, var(--mat-sys-on-surface))}.mdc-checkbox .mdc-checkbox__native-control:focus~.mat-mdc-checkbox-ripple .mat-ripple-element{background-color:var(--mat-checkbox-unselected-focus-state-layer-color, var(--mat-sys-on-surface))}.mdc-checkbox:active>.mdc-checkbox__native-control+.mdc-checkbox__ripple{opacity:var(--mat-checkbox-unselected-pressed-state-layer-opacity, var(--mat-sys-pressed-state-layer-opacity));background-color:var(--mat-checkbox-unselected-pressed-state-layer-color, var(--mat-sys-primary))}.mdc-checkbox:active>.mdc-checkbox__native-control~.mat-mdc-checkbox-ripple .mat-ripple-element{background-color:var(--mat-checkbox-unselected-pressed-state-layer-color, var(--mat-sys-primary))}.mdc-checkbox:hover .mdc-checkbox__native-control:checked+.mdc-checkbox__ripple{opacity:var(--mat-checkbox-selected-hover-state-layer-opacity, var(--mat-sys-hover-state-layer-opacity));background-color:var(--mat-checkbox-selected-hover-state-layer-color, var(--mat-sys-primary))}.mdc-checkbox:hover .mdc-checkbox__native-control:checked~.mat-mdc-checkbox-ripple .mat-ripple-element{background-color:var(--mat-checkbox-selected-hover-state-layer-color, var(--mat-sys-primary))}.mdc-checkbox .mdc-checkbox__native-control:focus:checked+.mdc-checkbox__ripple{opacity:var(--mat-checkbox-selected-focus-state-layer-opacity, var(--mat-sys-focus-state-layer-opacity));background-color:var(--mat-checkbox-selected-focus-state-layer-color, var(--mat-sys-primary))}.mdc-checkbox .mdc-checkbox__native-control:focus:checked~.mat-mdc-checkbox-ripple .mat-ripple-element{background-color:var(--mat-checkbox-selected-focus-state-layer-color, var(--mat-sys-primary))}.mdc-checkbox:active>.mdc-checkbox__native-control:checked+.mdc-checkbox__ripple{opacity:var(--mat-checkbox-selected-pressed-state-layer-opacity, var(--mat-sys-pressed-state-layer-opacity));background-color:var(--mat-checkbox-selected-pressed-state-layer-color, var(--mat-sys-on-surface))}.mdc-checkbox:active>.mdc-checkbox__native-control:checked~.mat-mdc-checkbox-ripple .mat-ripple-element{background-color:var(--mat-checkbox-selected-pressed-state-layer-color, var(--mat-sys-on-surface))}.mdc-checkbox--disabled.mat-mdc-checkbox-disabled-interactive .mdc-checkbox .mdc-checkbox__native-control~.mat-mdc-checkbox-ripple .mat-ripple-element,.mdc-checkbox--disabled.mat-mdc-checkbox-disabled-interactive .mdc-checkbox .mdc-checkbox__native-control+.mdc-checkbox__ripple{background-color:var(--mat-checkbox-unselected-hover-state-layer-color, var(--mat-sys-on-surface))}.mdc-checkbox .mdc-checkbox__native-control{position:absolute;margin:0;padding:0;opacity:0;cursor:inherit;z-index:1;width:var(--mat-checkbox-state-layer-size, 40px);height:var(--mat-checkbox-state-layer-size, 40px);top:calc((var(--mat-checkbox-state-layer-size, 40px) - var(--mat-checkbox-state-layer-size, 40px))/2);right:calc((var(--mat-checkbox-state-layer-size, 40px) - var(--mat-checkbox-state-layer-size, 40px))/2);left:calc((var(--mat-checkbox-state-layer-size, 40px) - var(--mat-checkbox-state-layer-size, 40px))/2)}.mdc-checkbox--disabled{cursor:default;pointer-events:none}.mdc-checkbox__background{display:inline-flex;position:absolute;align-items:center;justify-content:center;box-sizing:border-box;width:18px;height:18px;border:2px solid currentColor;border-radius:2px;background-color:rgba(0,0,0,0);pointer-events:none;will-change:background-color,border-color;transition:background-color 90ms cubic-bezier(0.4, 0, 0.6, 1),border-color 90ms cubic-bezier(0.4, 0, 0.6, 1);-webkit-print-color-adjust:exact;color-adjust:exact;border-color:var(--mat-checkbox-unselected-icon-color, var(--mat-sys-on-surface-variant));top:calc((var(--mat-checkbox-state-layer-size, 40px) - 18px)/2);left:calc((var(--mat-checkbox-state-layer-size, 40px) - 18px)/2)}.mdc-checkbox__native-control:enabled:checked~.mdc-checkbox__background,.mdc-checkbox__native-control:enabled:indeterminate~.mdc-checkbox__background{border-color:var(--mat-checkbox-selected-icon-color, var(--mat-sys-primary));background-color:var(--mat-checkbox-selected-icon-color, var(--mat-sys-primary))}.mdc-checkbox--disabled .mdc-checkbox__background{border-color:var(--mat-checkbox-disabled-unselected-icon-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent))}@media(forced-colors: active){.mdc-checkbox--disabled .mdc-checkbox__background{border-color:GrayText}}.mdc-checkbox__native-control:disabled:checked~.mdc-checkbox__background,.mdc-checkbox__native-control:disabled:indeterminate~.mdc-checkbox__background{background-color:var(--mat-checkbox-disabled-selected-icon-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent));border-color:rgba(0,0,0,0)}@media(forced-colors: active){.mdc-checkbox__native-control:disabled:checked~.mdc-checkbox__background,.mdc-checkbox__native-control:disabled:indeterminate~.mdc-checkbox__background{border-color:GrayText}}.mdc-checkbox:hover>.mdc-checkbox__native-control:not(:checked)~.mdc-checkbox__background,.mdc-checkbox:hover>.mdc-checkbox__native-control:not(:indeterminate)~.mdc-checkbox__background{border-color:var(--mat-checkbox-unselected-hover-icon-color, var(--mat-sys-on-surface));background-color:rgba(0,0,0,0)}.mdc-checkbox:hover>.mdc-checkbox__native-control:checked~.mdc-checkbox__background,.mdc-checkbox:hover>.mdc-checkbox__native-control:indeterminate~.mdc-checkbox__background{border-color:var(--mat-checkbox-selected-hover-icon-color, var(--mat-sys-primary));background-color:var(--mat-checkbox-selected-hover-icon-color, var(--mat-sys-primary))}.mdc-checkbox__native-control:focus:focus:not(:checked)~.mdc-checkbox__background,.mdc-checkbox__native-control:focus:focus:not(:indeterminate)~.mdc-checkbox__background{border-color:var(--mat-checkbox-unselected-focus-icon-color, var(--mat-sys-on-surface))}.mdc-checkbox__native-control:focus:focus:checked~.mdc-checkbox__background,.mdc-checkbox__native-control:focus:focus:indeterminate~.mdc-checkbox__background{border-color:var(--mat-checkbox-selected-focus-icon-color, var(--mat-sys-primary));background-color:var(--mat-checkbox-selected-focus-icon-color, var(--mat-sys-primary))}.mdc-checkbox--disabled.mat-mdc-checkbox-disabled-interactive .mdc-checkbox:hover>.mdc-checkbox__native-control~.mdc-checkbox__background,.mdc-checkbox--disabled.mat-mdc-checkbox-disabled-interactive .mdc-checkbox .mdc-checkbox__native-control:focus~.mdc-checkbox__background,.mdc-checkbox--disabled.mat-mdc-checkbox-disabled-interactive .mdc-checkbox__background{border-color:var(--mat-checkbox-disabled-unselected-icon-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent))}@media(forced-colors: active){.mdc-checkbox--disabled.mat-mdc-checkbox-disabled-interactive .mdc-checkbox:hover>.mdc-checkbox__native-control~.mdc-checkbox__background,.mdc-checkbox--disabled.mat-mdc-checkbox-disabled-interactive .mdc-checkbox .mdc-checkbox__native-control:focus~.mdc-checkbox__background,.mdc-checkbox--disabled.mat-mdc-checkbox-disabled-interactive .mdc-checkbox__background{border-color:GrayText}}.mdc-checkbox--disabled.mat-mdc-checkbox-disabled-interactive .mdc-checkbox__native-control:checked~.mdc-checkbox__background,.mdc-checkbox--disabled.mat-mdc-checkbox-disabled-interactive .mdc-checkbox__native-control:indeterminate~.mdc-checkbox__background{background-color:var(--mat-checkbox-disabled-selected-icon-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent));border-color:rgba(0,0,0,0)}.mdc-checkbox__checkmark{position:absolute;top:0;right:0;bottom:0;left:0;width:100%;opacity:0;transition:opacity 180ms cubic-bezier(0.4, 0, 0.6, 1);color:var(--mat-checkbox-selected-checkmark-color, var(--mat-sys-on-primary))}@media(forced-colors: active){.mdc-checkbox__checkmark{color:CanvasText}}.mdc-checkbox--disabled .mdc-checkbox__checkmark,.mdc-checkbox--disabled.mat-mdc-checkbox-disabled-interactive .mdc-checkbox__checkmark{color:var(--mat-checkbox-disabled-selected-checkmark-color, var(--mat-sys-surface))}@media(forced-colors: active){.mdc-checkbox--disabled .mdc-checkbox__checkmark,.mdc-checkbox--disabled.mat-mdc-checkbox-disabled-interactive .mdc-checkbox__checkmark{color:GrayText}}.mdc-checkbox__checkmark-path{transition:stroke-dashoffset 180ms cubic-bezier(0.4, 0, 0.6, 1);stroke:currentColor;stroke-width:3.12px;stroke-dashoffset:29.7833385;stroke-dasharray:29.7833385}.mdc-checkbox__mixedmark{width:100%;height:0;transform:scaleX(0) rotate(0deg);border-width:1px;border-style:solid;opacity:0;transition:opacity 90ms cubic-bezier(0.4, 0, 0.6, 1),transform 90ms cubic-bezier(0.4, 0, 0.6, 1);border-color:var(--mat-checkbox-selected-checkmark-color, var(--mat-sys-on-primary))}@media(forced-colors: active){.mdc-checkbox__mixedmark{margin:0 1px}}.mdc-checkbox--disabled .mdc-checkbox__mixedmark,.mdc-checkbox--disabled.mat-mdc-checkbox-disabled-interactive .mdc-checkbox__mixedmark{border-color:var(--mat-checkbox-disabled-selected-checkmark-color, var(--mat-sys-surface))}@media(forced-colors: active){.mdc-checkbox--disabled .mdc-checkbox__mixedmark,.mdc-checkbox--disabled.mat-mdc-checkbox-disabled-interactive .mdc-checkbox__mixedmark{border-color:GrayText}}.mdc-checkbox--anim-unchecked-checked .mdc-checkbox__background,.mdc-checkbox--anim-unchecked-indeterminate .mdc-checkbox__background,.mdc-checkbox--anim-checked-unchecked .mdc-checkbox__background,.mdc-checkbox--anim-indeterminate-unchecked .mdc-checkbox__background{animation-duration:180ms;animation-timing-function:linear}.mdc-checkbox--anim-unchecked-checked .mdc-checkbox__checkmark-path{animation:mdc-checkbox-unchecked-checked-checkmark-path 180ms linear;transition:none}.mdc-checkbox--anim-unchecked-indeterminate .mdc-checkbox__mixedmark{animation:mdc-checkbox-unchecked-indeterminate-mixedmark 90ms linear;transition:none}.mdc-checkbox--anim-checked-unchecked .mdc-checkbox__checkmark-path{animation:mdc-checkbox-checked-unchecked-checkmark-path 90ms linear;transition:none}.mdc-checkbox--anim-checked-indeterminate .mdc-checkbox__checkmark{animation:mdc-checkbox-checked-indeterminate-checkmark 90ms linear;transition:none}.mdc-checkbox--anim-checked-indeterminate .mdc-checkbox__mixedmark{animation:mdc-checkbox-checked-indeterminate-mixedmark 90ms linear;transition:none}.mdc-checkbox--anim-indeterminate-checked .mdc-checkbox__checkmark{animation:mdc-checkbox-indeterminate-checked-checkmark 500ms linear;transition:none}.mdc-checkbox--anim-indeterminate-checked .mdc-checkbox__mixedmark{animation:mdc-checkbox-indeterminate-checked-mixedmark 500ms linear;transition:none}.mdc-checkbox--anim-indeterminate-unchecked .mdc-checkbox__mixedmark{animation:mdc-checkbox-indeterminate-unchecked-mixedmark 300ms linear;transition:none}.mdc-checkbox__native-control:checked~.mdc-checkbox__background,.mdc-checkbox__native-control:indeterminate~.mdc-checkbox__background{transition:border-color 90ms cubic-bezier(0, 0, 0.2, 1),background-color 90ms cubic-bezier(0, 0, 0.2, 1)}.mdc-checkbox__native-control:checked~.mdc-checkbox__background>.mdc-checkbox__checkmark>.mdc-checkbox__checkmark-path,.mdc-checkbox__native-control:indeterminate~.mdc-checkbox__background>.mdc-checkbox__checkmark>.mdc-checkbox__checkmark-path{stroke-dashoffset:0}.mdc-checkbox__native-control:checked~.mdc-checkbox__background>.mdc-checkbox__checkmark{transition:opacity 180ms cubic-bezier(0, 0, 0.2, 1),transform 180ms cubic-bezier(0, 0, 0.2, 1);opacity:1}.mdc-checkbox__native-control:checked~.mdc-checkbox__background>.mdc-checkbox__mixedmark{transform:scaleX(1) rotate(-45deg)}.mdc-checkbox__native-control:indeterminate~.mdc-checkbox__background>.mdc-checkbox__checkmark{transform:rotate(45deg);opacity:0;transition:opacity 90ms cubic-bezier(0.4, 0, 0.6, 1),transform 90ms cubic-bezier(0.4, 0, 0.6, 1)}.mdc-checkbox__native-control:indeterminate~.mdc-checkbox__background>.mdc-checkbox__mixedmark{transform:scaleX(1) rotate(0deg);opacity:1}@keyframes mdc-checkbox-unchecked-checked-checkmark-path{0%,50%{stroke-dashoffset:29.7833385}50%{animation-timing-function:cubic-bezier(0, 0, 0.2, 1)}100%{stroke-dashoffset:0}}@keyframes mdc-checkbox-unchecked-indeterminate-mixedmark{0%,68.2%{transform:scaleX(0)}68.2%{animation-timing-function:cubic-bezier(0, 0, 0, 1)}100%{transform:scaleX(1)}}@keyframes mdc-checkbox-checked-unchecked-checkmark-path{from{animation-timing-function:cubic-bezier(0.4, 0, 1, 1);opacity:1;stroke-dashoffset:0}to{opacity:0;stroke-dashoffset:-29.7833385}}@keyframes mdc-checkbox-checked-indeterminate-checkmark{from{animation-timing-function:cubic-bezier(0, 0, 0.2, 1);transform:rotate(0deg);opacity:1}to{transform:rotate(45deg);opacity:0}}@keyframes mdc-checkbox-indeterminate-checked-checkmark{from{animation-timing-function:cubic-bezier(0.14, 0, 0, 1);transform:rotate(45deg);opacity:0}to{transform:rotate(360deg);opacity:1}}@keyframes mdc-checkbox-checked-indeterminate-mixedmark{from{animation-timing-function:cubic-bezier(0, 0, 0.2, 1);transform:rotate(-45deg);opacity:0}to{transform:rotate(0deg);opacity:1}}@keyframes mdc-checkbox-indeterminate-checked-mixedmark{from{animation-timing-function:cubic-bezier(0.14, 0, 0, 1);transform:rotate(0deg);opacity:1}to{transform:rotate(315deg);opacity:0}}@keyframes mdc-checkbox-indeterminate-unchecked-mixedmark{0%{animation-timing-function:linear;transform:scaleX(1);opacity:1}32.8%,100%{transform:scaleX(0);opacity:0}}.mat-mdc-checkbox{display:inline-block;position:relative;-webkit-tap-highlight-color:rgba(0,0,0,0)}.mat-mdc-checkbox._mat-animation-noopable>.mat-internal-form-field>.mdc-checkbox>.mat-mdc-checkbox-touch-target,.mat-mdc-checkbox._mat-animation-noopable>.mat-internal-form-field>.mdc-checkbox>.mdc-checkbox__native-control,.mat-mdc-checkbox._mat-animation-noopable>.mat-internal-form-field>.mdc-checkbox>.mdc-checkbox__ripple,.mat-mdc-checkbox._mat-animation-noopable>.mat-internal-form-field>.mdc-checkbox>.mat-mdc-checkbox-ripple::before,.mat-mdc-checkbox._mat-animation-noopable>.mat-internal-form-field>.mdc-checkbox>.mdc-checkbox__background,.mat-mdc-checkbox._mat-animation-noopable>.mat-internal-form-field>.mdc-checkbox>.mdc-checkbox__background>.mdc-checkbox__checkmark,.mat-mdc-checkbox._mat-animation-noopable>.mat-internal-form-field>.mdc-checkbox>.mdc-checkbox__background>.mdc-checkbox__checkmark>.mdc-checkbox__checkmark-path,.mat-mdc-checkbox._mat-animation-noopable>.mat-internal-form-field>.mdc-checkbox>.mdc-checkbox__background>.mdc-checkbox__mixedmark{transition:none !important;animation:none !important}.mat-mdc-checkbox label{cursor:pointer}.mat-mdc-checkbox .mat-internal-form-field{color:var(--mat-checkbox-label-text-color, var(--mat-sys-on-surface));font-family:var(--mat-checkbox-label-text-font, var(--mat-sys-body-medium-font));line-height:var(--mat-checkbox-label-text-line-height, var(--mat-sys-body-medium-line-height));font-size:var(--mat-checkbox-label-text-size, var(--mat-sys-body-medium-size));letter-spacing:var(--mat-checkbox-label-text-tracking, var(--mat-sys-body-medium-tracking));font-weight:var(--mat-checkbox-label-text-weight, var(--mat-sys-body-medium-weight))}.mat-mdc-checkbox.mat-mdc-checkbox-disabled.mat-mdc-checkbox-disabled-interactive{pointer-events:auto}.mat-mdc-checkbox.mat-mdc-checkbox-disabled.mat-mdc-checkbox-disabled-interactive input{cursor:default}.mat-mdc-checkbox.mat-mdc-checkbox-disabled label{cursor:default;color:var(--mat-checkbox-disabled-label-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent))}@media(forced-colors: active){.mat-mdc-checkbox.mat-mdc-checkbox-disabled label{color:GrayText}}.mat-mdc-checkbox label:empty{display:none}.mat-mdc-checkbox .mdc-checkbox__ripple{opacity:0}.mat-mdc-checkbox .mat-mdc-checkbox-ripple,.mdc-checkbox__ripple{top:0;left:0;right:0;bottom:0;position:absolute;border-radius:50%;pointer-events:none}.mat-mdc-checkbox .mat-mdc-checkbox-ripple:not(:empty),.mdc-checkbox__ripple:not(:empty){transform:translateZ(0)}.mat-mdc-checkbox-ripple .mat-ripple-element{opacity:.1}.mat-mdc-checkbox-touch-target{position:absolute;top:50%;left:50%;height:var(--mat-checkbox-touch-target-size, 48px);width:var(--mat-checkbox-touch-target-size, 48px);transform:translate(-50%, -50%);display:var(--mat-checkbox-touch-target-display, block)}.mat-mdc-checkbox .mat-mdc-checkbox-ripple::before{border-radius:50%}.mdc-checkbox__native-control:focus~.mat-focus-indicator::before{content:""} -`],encapsulation:2,changeDetection:0})}return t})(),Ex=(()=>{class t{static \u0275fac=function(i){return new(i||t)};static \u0275mod=ee({type:t});static \u0275inj=J({imports:[ja,De,De]})}return t})();function rie(t,n){t&1&&(m(0,"span",1),g(1,"*"),h())}var oie=(()=>{let n=class n extends oo{constructor(i,r){super(),this.renderer=i,this.focusMonitor=r,this.defaultOptions={props:{hideFieldUnderline:!0,indeterminate:!0,floatLabel:"always",hideLabel:!0,color:"accent"}}}onContainerClick(i){this.checkbox.focus(),super.onContainerClick(i)}ngAfterViewInit(){this.checkbox&&this.focusMonitor.monitor(this.checkbox._inputElement,!0).subscribe(i=>{this.field.focus=!!i,this.stateChanges.next(),i?this.props.focus&&this.props.focus(this.field):this.props.blur&&this.props.blur(this.field)})}ngAfterViewChecked(){if(this.required!==this._required&&this.checkbox&&this.checkbox._inputElement){this._required=this.required;let i=this.checkbox._inputElement.nativeElement;this.required?this.renderer.setAttribute(i,"required","required"):this.renderer.removeAttribute(i,"required")}}ngOnDestroy(){super.ngOnDestroy(),this.checkbox&&this.focusMonitor.stopMonitoring(this.checkbox._inputElement)}};n.\u0275fac=function(r){return new(r||n)(be(ze),be(ti))},n.\u0275cmp=E({type:n,selectors:[["formly-field-mat-checkbox"]],viewQuery:function(r,o){if(r&1&&ie(ja,7),r&2){let a;j(a=H())&&(o.checkbox=a.first)}},standalone:!1,features:[le],decls:3,vars:10,consts:[[3,"formControl","id","name","formlyAttributes","tabIndex","indeterminate","color","labelPosition"],["aria-hidden","true",1,"mat-form-field-required-marker","mat-mdc-form-field-required-marker"]],template:function(r,o){r&1&&(m(0,"mat-checkbox",0),g(1),V(2,rie,2,0,"span",1),h()),r&2&&(v("formControl",o.formControl)("id",o.id)("name",o.field.name)("formlyAttributes",o.field)("tabIndex",o.props.tabindex)("indeterminate",o.props.indeterminate&&o.formControl.value==null)("color",o.props.color)("labelPosition",o.props.labelPosition),f(),pe(" ",o.props.label," "),f(),B(o.props.required&&o.props.hideRequiredMarker!==!0?2:-1))},dependencies:[qt,To,ja,ra],encapsulation:2,changeDetection:0});let t=n;return t})();function V3(){return{types:[{name:"checkbox",component:oie,wrappers:["form-field"]},{name:"boolean",extends:"checkbox"}]}}function aie(t,n){if(t&1){let e=q();m(0,"mat-checkbox",1),S("change",function(r){let o=T(e).$implicit,a=x();return I(a.onChange(o.value,r.checked))}),g(1),h()}if(t&2){let e=n.$implicit,i=n.$index,r=x();v("id",r.id+"_"+i)("formlyAttributes",r.field)("tabIndex",r.props.tabindex)("color",r.props.color)("labelPosition",r.props.labelPosition)("checked",r.isChecked(e))("disabled",r.formControl.disabled||e.disabled),f(),pe(" ",e.label," ")}}var sie=(()=>{let n=class n extends oo{constructor(){super(...arguments),this.defaultOptions={props:{hideFieldUnderline:!0,floatLabel:"always",color:"accent"}}}onChange(i,r){this.formControl.markAsDirty(),this.props.type==="array"?this.formControl.patchValue(r?[...this.formControl.value||[],i]:[...this.formControl.value||[]].filter(o=>o!==i)):this.formControl.patchValue(Ee(k({},this.formControl.value),{[i]:r})),this.formControl.markAsTouched()}onContainerClick(){}isChecked(i){let r=this.formControl.value;return r&&(this.props.type==="array"?r.indexOf(i.value)!==-1:r[i.value])}};n.\u0275fac=(()=>{let i;return function(o){return(i||(i=ge(n)))(o||n)}})(),n.\u0275cmp=E({type:n,selectors:[["formly-field-mat-multicheckbox"]],viewQuery:function(r,o){if(r&1&&ie(ja,5),r&2){let a;j(a=H())&&(o.checkboxes=a)}},hostVars:1,hostBindings:function(r,o){r&2&&ci("id",o.id)},standalone:!1,features:[le],decls:4,vars:5,consts:[[3,"id","formlyAttributes","tabIndex","color","labelPosition","checked","disabled"],[3,"change","id","formlyAttributes","tabIndex","color","labelPosition","checked","disabled"]],template:function(r,o){r&1&&(xt(0,aie,2,8,"mat-checkbox",0,Ui),ue(2,"formlySelectOptions"),ue(3,"async")),r&2&&Ct(Oe(3,3,Ei(2,0,o.props.options,o.field)))},dependencies:[ja,ra,sn,Ah],encapsulation:2,changeDetection:0});let t=n;return t})();function B3(){return{types:[{name:"multicheckbox",component:sie,wrappers:["form-field"]}]}}var lie=t=>({selectOptions:t});function cie(t,n){if(t&1){let e=q();m(0,"mat-option",2),S("click",function(){let r=T(e).selectOptions,o=x();return I(o.toggleSelectAll(r))}),M(1,"mat-pseudo-checkbox",3),g(2),h()}if(t&2){let e=n.selectOptions,i=x();f(),v("state",i.getSelectAllState(e)),f(),pe(" ",i.props.selectAllOption," ")}}function die(t,n){if(t&1&&Ge(0,4),t&2){let e=x();x();let i=Me(1);v("ngTemplateOutlet",i)("ngTemplateOutletContext",Nt(2,lie,e))}}function uie(t,n){if(t&1&&(m(0,"mat-option",6),g(1),h()),t&2){let e=n.$implicit;v("value",e.value)("disabled",e.disabled),f(),pe(" ",e.label," ")}}function mie(t,n){if(t&1&&(m(0,"mat-optgroup",5),xt(1,uie,2,3,"mat-option",6,Ui),h()),t&2){let e=x().$implicit;v("label",e.label),f(),Ct(e.group)}}function hie(t,n){if(t&1&&(m(0,"mat-option",6),g(1),h()),t&2){let e=x().$implicit;v("value",e.value)("disabled",e.disabled),f(),N(e.label)}}function pie(t,n){if(t&1&&V(0,mie,3,1,"mat-optgroup",5)(1,hie,2,3,"mat-option",6),t&2){let e=n.$implicit;B(e.group?0:1)}}function fie(t,n){if(t&1&&(V(0,die,1,4,"ng-container",4),xt(1,pie,2,1,null,null,Ui)),t&2){let e=x();B(e.props.multiple&&e.props.selectAllOption?0:-1),f(),Ct(n)}}var gie=(()=>{let n=class n extends oo{constructor(){super(...arguments),this.defaultOptions={props:{compareWith(i,r){return i===r}}}}set select(i){qi(i,["_parentFormField","_textField"],({currentValue:r})=>{r&&(i._preferredOverlayOrigin=i._parentFormField.getConnectedOverlayOrigin())})}getSelectAllState(i){return this.empty||this.value.length===0?null:this.value.length!==this.getSelectAllValue(i).length?"indeterminate":"checked"}toggleSelectAll(i){let r=this.getSelectAllValue(i);this.formControl.markAsDirty(),this.formControl.setValue(!this.value||this.value.length!==r.length?r:[])}change(i){this.props.change?.(this.field,i)}_getAriaLabelledby(){return this.props.attributes?.["aria-labelledby"]?this.props.attributes["aria-labelledby"]:this.formField?._labelId}_getAriaLabel(){return this.props.attributes?.["aria-label"]}getSelectAllValue(i){if(!this.selectAllValue||i!==this.selectAllValue.options){let r=[];i.forEach(o=>o.group?r.push(...o.group):r.push(o)),this.selectAllValue={options:i,value:r.filter(o=>!o.disabled).map(o=>o.value)}}return this.selectAllValue.value}};n.\u0275fac=(()=>{let i;return function(o){return(i||(i=ge(n)))(o||n)}})(),n.\u0275cmp=E({type:n,selectors:[["formly-field-mat-select"]],viewQuery:function(r,o){if(r&1&&ie(La,7),r&2){let a;j(a=H())&&(o.select=a.first)}},standalone:!1,features:[le],decls:6,vars:20,consts:[["selectAll",""],[3,"selectionChange","id","formControl","formlyAttributes","placeholder","tabIndex","required","compareWith","multiple","errorStateMatcher","aria-label","aria-labelledby","disableOptionCentering","typeaheadDebounceInterval","panelClass"],[3,"click"],[1,"mat-option-pseudo-checkbox",3,"state"],[3,"ngTemplateOutlet","ngTemplateOutletContext"],[3,"label"],[3,"value","disabled"]],template:function(r,o){if(r&1){let a=q();A(0,cie,3,2,"ng-template",null,0,vi),m(2,"mat-select",1),S("selectionChange",function(l){return T(a),I(o.change(l))}),V(3,fie,3,1),ue(4,"formlySelectOptions"),ue(5,"async"),h()}if(r&2){let a;f(2),v("id",o.id)("formControl",o.formControl)("formlyAttributes",o.field)("placeholder",o.props.placeholder)("tabIndex",o.props.tabindex)("required",o.required)("compareWith",o.props.compareWith)("multiple",o.props.multiple)("errorStateMatcher",o.errorStateMatcher),Xl("aria-label",o._getAriaLabel())("aria-labelledby",o._getAriaLabelledby()),v("disableOptionCentering",o.props.disableOptionCentering)("typeaheadDebounceInterval",o.props.typeaheadDebounceInterval)("panelClass",o.props.panelClass),f(),B((a=Oe(5,18,Ei(4,15,o.props.options,o.field)))?3:-1,a)}},dependencies:[Ln,qt,Io,To,La,wn,OS,tu,ra,sn,Ah],encapsulation:2,changeDetection:0});let t=n;return t})();function j3(){return{types:[{name:"select",component:gie,wrappers:["form-field"]},{name:"enum",extends:"select"}]}}function H3(){return[S3(),O3(),R3(),F3(),V3(),B3(),j3()]}var Ag=class{},U3=(()=>{class t{handle(e){return e.key}static \u0275fac=function(i){return new(i||t)};static \u0275prov=R({token:t,factory:t.\u0275fac})}return t})(),Oh=class{},$3=(()=>{class t extends Oh{compile(e,i){return e}compileTranslations(e,i){return e}static \u0275fac=(()=>{let e;return function(r){return(e||(e=ge(t)))(r||t)}})();static \u0275prov=R({token:t,factory:t.\u0275fac})}return t})(),Cc=class{},W3=(()=>{class t extends Cc{getTranslation(e){return Q({})}static \u0275fac=(()=>{let e;return function(r){return(e||(e=ge(t)))(r||t)}})();static \u0275prov=R({token:t,factory:t.\u0275fac})}return t})();function Og(t,n){if(t===n)return!0;if(t===null||n===null)return!1;if(t!==t&&n!==n)return!0;let e=typeof t,i=typeof n,r;if(e==i&&e=="object")if(Array.isArray(t)){if(!Array.isArray(n))return!1;if((r=t.length)==n.length){for(let o=0;oMx(n));if(fl(t)){let n={};return Object.keys(t).forEach(e=>{n[e]=Mx(t[e])}),n}else return t}function Ak(t,n){if(!Ig(t))return Mx(n);let e=Mx(t);return Ig(e)&&Ig(n)&&Object.keys(n).forEach(i=>{fl(n[i])?i in t?e[i]=Ak(t[i],n[i]):Object.assign(e,{[i]:n[i]}):Object.assign(e,{[i]:n[i]})}),e}function G3(t,n){let e=n.split(".");n="";do{n+=e.shift();let i=!e.length;if(Oo(t)){if(fl(t)&&z3(t[n])&&(fl(t[n])||vu(t[n])||i)){t=t[n],n="";continue}if(vu(t)){let r=parseInt(n,10);if(z3(t[r])&&(fl(t[r])||vu(t[r])||i)){t=t[r],n="";continue}}}if(i){t=void 0;continue}n+="."}while(e.length);return t}function bie(t,n,e){return Ak(t,vie(n,e))}function vie(t,n){return t.split(".").reduceRight((e,i)=>({[i]:e}),n)}var Rh=class{},q3=(()=>{class t extends Rh{templateMatcher=/{{\s?([^{}\s]*)\s?}}/g;interpolate(e,i){if(Rg(e))return this.interpolateString(e,i);if(_ie(e))return this.interpolateFunction(e,i)}interpolateFunction(e,i){return e(i)}interpolateString(e,i){return i?e.replace(this.templateMatcher,(r,o)=>{let a=this.getInterpolationReplacement(i,o);return a!==void 0?a:r}):e}getInterpolationReplacement(e,i){return this.formatValue(G3(e,i))}formatValue(e){if(Rg(e))return e;if(typeof e=="number"||typeof e=="boolean")return e.toString();if(e===null)return"null";if(vu(e))return e.join(", ");if(Ig(e))return typeof e.toString=="function"&&e.toString!==Object.prototype.toString?e.toString():JSON.stringify(e)}static \u0275fac=(()=>{let e;return function(r){return(e||(e=ge(t)))(r||t)}})();static \u0275prov=R({token:t,factory:t.\u0275fac})}return t})(),kk=(()=>{class t{_onTranslationChange=new z;_onLangChange=new z;_onFallbackLangChange=new z;fallbackLang=null;currentLang;translations={};languages=[];getTranslations(e){return this.translations[e]}setTranslations(e,i,r){this.translations[e]=r&&this.hasTranslationFor(e)?Ak(this.translations[e],i):i,this.addLanguages([e]),this._onTranslationChange.next({lang:e,translations:this.getTranslations(e)})}getLanguages(){return this.languages}getCurrentLang(){return this.currentLang}getFallbackLang(){return this.fallbackLang}setFallbackLang(e,i=!0){this.fallbackLang=e,i&&this._onFallbackLangChange.next({lang:e,translations:this.translations[e]})}setCurrentLang(e,i=!0){this.currentLang=e,i&&this._onLangChange.next({lang:e,translations:this.translations[e]})}get onTranslationChange(){return this._onTranslationChange.asObservable()}get onLangChange(){return this._onLangChange.asObservable()}get onFallbackLangChange(){return this._onFallbackLangChange.asObservable()}addLanguages(e){this.languages=Array.from(new Set([...this.languages,...e]))}hasTranslationFor(e){return typeof this.translations[e]<"u"}deleteTranslations(e){delete this.translations[e]}getTranslation(e){let i=this.getValue(this.currentLang,e);return i===void 0&&this.fallbackLang!=null&&this.fallbackLang!==this.currentLang&&(i=this.getValue(this.fallbackLang,e)),i}getValue(e,i){return G3(this.getTranslations(e),i)}static \u0275fac=function(i){return new(i||t)};static \u0275prov=R({token:t,factory:t.\u0275fac})}return t})(),Tk=new O("TRANSLATE_CONFIG"),Tg=t=>zi(t)?t:Q(t);var oa=(()=>{class t{loadingTranslations;pending=!1;_translationRequests={};lastUseLanguage=null;currentLoader=u(Cc);compiler=u(Oh);parser=u(Rh);missingTranslationHandler=u(Ag);store=u(kk);extend=!1;get onTranslationChange(){return this.store.onTranslationChange}get onLangChange(){return this.store.onLangChange}get onFallbackLangChange(){return this.store.onFallbackLangChange}get onDefaultLangChange(){return this.store.onFallbackLangChange}constructor(){let e=k({extend:!1,fallbackLang:null},u(Tk,{optional:!0}));e.lang&&this.use(e.lang),e.fallbackLang&&this.setFallbackLang(e.fallbackLang),e.extend&&(this.extend=!0)}setFallbackLang(e){this.getFallbackLang()||this.store.setFallbackLang(e,!1);let i=this.loadOrExtendLanguage(e);return zi(i)?(i.pipe(ct(1)).subscribe({next:()=>{this.store.setFallbackLang(e)},error:()=>{}}),i):(this.store.setFallbackLang(e),Q(this.store.getTranslations(e)))}use(e){this.lastUseLanguage=e,this.getCurrentLang()||this.store.setCurrentLang(e,!1);let i=this.loadOrExtendLanguage(e);return zi(i)?(i.pipe(ct(1)).subscribe({next:()=>{this.changeLang(e)},error:()=>{}}),i):(this.changeLang(e),Q(this.store.getTranslations(e)))}loadOrExtendLanguage(e){if(!this.store.hasTranslationFor(e)||this.extend)return this._translationRequests[e]=this._translationRequests[e]||this.loadAndCompileTranslations(e),this._translationRequests[e]}changeLang(e){e===this.lastUseLanguage&&this.store.setCurrentLang(e)}getCurrentLang(){return this.store.getCurrentLang()}loadAndCompileTranslations(e){this.pending=!0;let i=this.currentLoader.getTranslation(e).pipe(fd(1),ct(1));return this.loadingTranslations=i.pipe(se(r=>this.compiler.compileTranslations(r,e)),fd(1),ct(1)),this.loadingTranslations.subscribe({next:r=>{this.store.setTranslations(e,r,this.extend),this.pending=!1},error:r=>{this.pending=!1}}),i}setTranslation(e,i,r=!1){let o=this.compiler.compileTranslations(i,e);this.store.setTranslations(e,o,r||this.extend)}getLangs(){return this.store.getLanguages()}addLangs(e){this.store.addLanguages(e)}getParsedResultForKey(e,i){let r=this.getTextToInterpolate(e);if(Oo(r))return this.runInterpolation(r,i);let o=this.missingTranslationHandler.handle(k({key:e,translateService:this},i!==void 0&&{interpolateParams:i}));return o!==void 0?o:e}getFallbackLang(){return this.store.getFallbackLang()}getTextToInterpolate(e){return this.store.getTranslation(e)}runInterpolation(e,i){if(Oo(e))return vu(e)?this.runInterpolationOnArray(e,i):fl(e)?this.runInterpolationOnDict(e,i):this.parser.interpolate(e,i)}runInterpolationOnArray(e,i){return e.map(r=>this.runInterpolation(r,i))}runInterpolationOnDict(e,i){let r={};for(let o in e){let a=this.runInterpolation(e[o],i);a!==void 0&&(r[o]=a)}return r}getParsedResult(e,i){return e instanceof Array?this.getParsedResultForArray(e,i):this.getParsedResultForKey(e,i)}getParsedResultForArray(e,i){let r={},o=!1;for(let s of e)r[s]=this.getParsedResultForKey(s,i),o=o||zi(r[s]);if(!o)return r;let a=e.map(s=>Tg(r[s]));return qa(a).pipe(se(s=>{let l={};return s.forEach((c,d)=>{l[e[d]]=c}),l}))}get(e,i){if(!Oo(e)||!e.length)throw new Error('Parameter "key" is required and cannot be empty');return this.pending?this.loadingTranslations.pipe(No(()=>Tg(this.getParsedResult(e,i)))):Tg(this.getParsedResult(e,i))}getStreamOnTranslationChange(e,i){if(!Oo(e)||!e.length)throw new Error('Parameter "key" is required and cannot be empty');return bo(In(()=>this.get(e,i)),this.onTranslationChange.pipe(je(()=>{let r=this.getParsedResult(e,i);return Tg(r)})))}stream(e,i){if(!Oo(e)||!e.length)throw new Error('Parameter "key" required');return bo(In(()=>this.get(e,i)),this.onLangChange.pipe(je(()=>{let r=this.getParsedResult(e,i);return Tg(r)})))}instant(e,i){if(!Oo(e)||e.length===0)throw new Error('Parameter "key" is required and cannot be empty');let r=this.getParsedResult(e,i);return zi(r)?Array.isArray(e)?e.reduce((o,a)=>(o[a]=a,o),{}):e:r}set(e,i,r=this.getCurrentLang()){this.store.setTranslations(r,bie(this.store.getTranslations(r),e,Rg(i)?this.compiler.compile(i,r):this.compiler.compileTranslations(i,r)),!1)}reloadLang(e){return this.resetLang(e),this.loadAndCompileTranslations(e)}resetLang(e){delete this._translationRequests[e],this.store.deleteTranslations(e)}static getBrowserLang(){if(typeof window>"u"||!window.navigator)return;let e=this.getBrowserCultureLang();return e?e.split(/[-_]/)[0]:void 0}static getBrowserCultureLang(){if(!(typeof window>"u"||typeof window.navigator>"u"))return window.navigator.languages?window.navigator.languages[0]:window.navigator.language||window.navigator.browserLanguage||window.navigator.userLanguage}getBrowserLang(){return t.getBrowserLang()}getBrowserCultureLang(){return t.getBrowserCultureLang()}get defaultLang(){return this.getFallbackLang()}get currentLang(){return this.store.getCurrentLang()}get langs(){return this.store.getLanguages()}setDefaultLang(e){return this.setFallbackLang(e)}getDefaultLang(){return this.getFallbackLang()}static \u0275fac=function(i){return new(i||t)};static \u0275prov=R({token:t,factory:t.\u0275fac})}return t})(),Y3=(()=>{class t{translateService=u(oa);element=u(Y);_ref=u(ye);key;lastParams;currentParams;onLangChangeSub;onFallbackLangChangeSub;onTranslationChangeSub;set translate(e){e&&(this.key=e,this.checkNodes())}set translateParams(e){Og(this.currentParams,e)||(this.currentParams=e,this.checkNodes(!0))}constructor(){this.onTranslationChangeSub||(this.onTranslationChangeSub=this.translateService.onTranslationChange.subscribe(e=>{e.lang===this.translateService.currentLang&&this.checkNodes(!0,e.translations)})),this.onLangChangeSub||(this.onLangChangeSub=this.translateService.onLangChange.subscribe(e=>{this.checkNodes(!0,e.translations)})),this.onFallbackLangChangeSub||(this.onFallbackLangChangeSub=this.translateService.onFallbackLangChange.subscribe(e=>{this.checkNodes(!0)}))}ngAfterViewChecked(){this.checkNodes()}checkNodes(e=!1,i){let r=this.element.nativeElement.childNodes;r.length||(this.setContent(this.element.nativeElement,this.key),r=this.element.nativeElement.childNodes),r.forEach(o=>{let a=o;if(a.nodeType===3){let s;if(e&&(a.lastKey=null),Oo(a.lookupKey))s=a.lookupKey;else if(this.key)s=this.key;else{let l=this.getContent(a),c=l.trim();c.length&&(a.lookupKey=c,l!==a.currentValue?(s=c,a.originalContent=l||a.originalContent):a.originalContent&&(s=a.originalContent.trim()))}this.updateValue(s,a,i)}})}updateValue(e,i,r){if(e){if(i.lastKey===e&&this.lastParams===this.currentParams)return;this.lastParams=this.currentParams;let o=a=>{(a!==e||!i.lastKey)&&(i.lastKey=e),i.originalContent||(i.originalContent=this.getContent(i)),Rg(a)?i.currentValue=a:Oo(a)?i.currentValue=JSON.stringify(a):i.currentValue=i.originalContent||e,this.setContent(i,this.key?i.currentValue:i.originalContent.replace(e,i.currentValue)),this._ref.markForCheck()};if(Oo(r)){let a=this.translateService.getParsedResult(e,this.currentParams);zi(a)?a.subscribe({next:o}):o(a)}else this.translateService.get(e,this.currentParams).subscribe(o)}}getContent(e){return Oo(e.textContent)?e.textContent:e.data}setContent(e,i){Oo(e.textContent)?e.textContent=i:e.data=i}ngOnDestroy(){this.onLangChangeSub&&this.onLangChangeSub.unsubscribe(),this.onFallbackLangChangeSub&&this.onFallbackLangChangeSub.unsubscribe(),this.onTranslationChangeSub&&this.onTranslationChangeSub.unsubscribe()}static \u0275fac=function(i){return new(i||t)};static \u0275dir=P({type:t,selectors:[["","translate",""],["","ngx-translate",""]],inputs:{translate:"translate",translateParams:"translateParams"}})}return t})(),Mr=(()=>{class t{translate=u(oa);_ref=u(ye);value="";lastKey=null;lastParams=[];onTranslationChange;onLangChange;onFallbackLangChange;updateValue(e,i,r){let o=a=>{this.value=a!==void 0?a:e,this.lastKey=e,this._ref.markForCheck()};if(r){let a=this.translate.getParsedResult(e,i);zi(a)?a.subscribe(o):o(a)}this.translate.get(e,i).subscribe(o)}transform(e,...i){if(!e||!e.length)return e;if(Og(e,this.lastKey)&&Og(i,this.lastParams))return this.value;let r;if(Oo(i[0])&&i.length)if(Rg(i[0])&&i[0].length){let o=i[0].replace(/(')?([a-zA-Z0-9_]+)(')?(\s)?:/g,'"$2":').replace(/:(\s)?(')(.*?)(')/g,':"$3"');try{r=JSON.parse(o)}catch(a){throw new SyntaxError(`Wrong parameter in TranslatePipe. Expected a valid Object, received: ${i[0]}`)}}else fl(i[0])&&(r=i[0]);return this.lastKey=e,this.lastParams=i,this.updateValue(e,r),this._dispose(),this.onTranslationChange||(this.onTranslationChange=this.translate.onTranslationChange.subscribe(o=>{(this.lastKey&&o.lang===this.translate.getCurrentLang()||o.lang===this.translate.getFallbackLang())&&(this.lastKey=null,this.updateValue(e,r,o.translations))})),this.onLangChange||(this.onLangChange=this.translate.onLangChange.subscribe(o=>{this.lastKey&&(this.lastKey=null,this.updateValue(e,r,o.translations))})),this.onFallbackLangChange||(this.onFallbackLangChange=this.translate.onFallbackLangChange.subscribe(()=>{this.lastKey&&(this.lastKey=null,this.updateValue(e,r))})),this.value}_dispose(){typeof this.onTranslationChange<"u"&&(this.onTranslationChange.unsubscribe(),this.onTranslationChange=void 0),typeof this.onLangChange<"u"&&(this.onLangChange.unsubscribe(),this.onLangChange=void 0),typeof this.onFallbackLangChange<"u"&&(this.onFallbackLangChange.unsubscribe(),this.onFallbackLangChange=void 0)}ngOnDestroy(){this._dispose()}static \u0275fac=function(i){return new(i||t)};static \u0275pipe=Kr({name:"translate",type:t,pure:!1});static \u0275prov=R({token:t,factory:t.\u0275fac})}return t})();function Q3(t){return{provide:Cc,useClass:t}}function K3(t){return{provide:Oh,useClass:t}}function Z3(t){return{provide:Rh,useClass:t}}function X3(t){return{provide:Ag,useClass:t}}function J3(t={}){return Ik(k({compiler:K3($3),parser:Z3(q3),loader:Q3(W3),missingTranslationHandler:X3(U3)},t),!0)}function Ik(t={},n){let e=[];t.loader&&e.push(t.loader),t.compiler&&e.push(t.compiler),t.parser&&e.push(t.parser),t.missingTranslationHandler&&e.push(t.missingTranslationHandler),n&&e.push(kk),(t.useDefaultLang||t.defaultLanguage)&&(console.warn("The `useDefaultLang` and `defaultLanguage` options are deprecated. Please use `fallbackLang` instead."),t.useDefaultLang===!0&&t.defaultLanguage&&(t.fallbackLang=t.defaultLanguage));let i={fallbackLang:t.fallbackLang??null,lang:t.lang,extend:t.extend??!1};return e.push({provide:Tk,useValue:i}),e.push({provide:oa,useClass:oa,deps:[kk,Cc,Oh,Rh,Ag,Tk]}),e}var Sr=(()=>{class t{static forRoot(e={}){return{ngModule:t,providers:[...Ik(k({compiler:K3($3),parser:Z3(q3),loader:Q3(W3),missingTranslationHandler:X3(U3)},e),!0)]}}static forChild(e={}){return{ngModule:t,providers:[...Ik(e,e.isolate??!1)]}}static \u0275fac=function(i){return new(i||t)};static \u0275mod=ee({type:t});static \u0275inj=J({})}return t})();var Ok=new O("TRANSLATE_HTTP_LOADER_CONFIG"),yie=(()=>{class t{http;config;constructor(){this.config=k({prefix:"/assets/i18n/",suffix:".json",enforceLoading:!1,useHttpBackend:!1},u(Ok)),this.http=this.config.useHttpBackend?new xr(u(Jl)):u(xr)}getTranslation(e){let i=this.config.enforceLoading?`?enforceLoading=${Date.now()}`:"";return this.http.get(`${this.config.prefix}${e}${this.config.suffix}${i}`)}static \u0275fac=function(i){return new(i||t)};static \u0275prov=R({token:t,factory:t.\u0275fac})}return t})();function ej(t={}){let n=t.useHttpBackend??!1;return[{provide:Ok,useValue:t},{provide:Cc,useClass:yie,deps:[n?Jl:xr,Ok]}]}var Rk=class{constructor(n){this.options=n,n.vcr?this.ref=n.vcr.createComponent(n.component,{index:n.vcr.length,injector:n.injector||n.vcr.injector}):(this.ref=Am(n.component,{elementInjector:n.injector,environmentInjector:n.environmentInjector}),n.appRef.attachView(this.ref.hostView))}setInput(n,e){return this.ref.setInput(n,e),this}setInputs(n){return Object.keys(n).forEach(e=>{this.ref.setInput(e,n[e])}),this}detectChanges(){return this.ref.hostView.detectChanges(),this}updateContext(n){return this.options.contextSignal?.set(n),this}appendTo(n){return n.appendChild(this.getElement()),this}removeFrom(n){return n.removeChild(this.getElement()),this}getRawContent(){return this.getElement().outerHTML}getElement(){return this.ref.location.nativeElement}destroy(){this.ref.destroy(),!this.options.vcr&&this.options.appRef.detachView(this.ref.hostView),this.ref=null}};function Pg(t){return t instanceof te}function xu(t){return typeof t=="function"}function tj(t){return typeof t=="string"}var Pk=class{constructor(n){this.args=n,this.args.vcr?(this.ref=this.args.vcr.createEmbeddedView(this.args.tpl,this.args.context||{},{injector:n.injector}),this.ref.detectChanges()):(this.ref=this.args.tpl.createEmbeddedView(this.args.context||{},n.injector),this.ref.detectChanges(),this.args.appRef.attachView(this.ref))}detectChanges(){return this.ref.detectChanges(),this}getElement(){let n=this.ref.rootNodes;return n.length===1&&n[0]===Node.ELEMENT_NODE?this.element=n[0]:(this.element=document.createElement("div"),this.element.append(...n)),this.element}destroy(){this.ref.rootNodes[0]!==1&&(this.element?.parentNode.removeChild(this.element),this.element=null),this.args.vcr||this.args.appRef.detachView(this.ref),this.ref.destroy(),this.ref=null}updateContext(n){return Object.assign(this.ref.context,n),this}},Fk=class{constructor(n){this.value=n}getElement(){return this.value}detectChanges(){return this}updateContext(){return this}destroy(){}},xie=new O("Component context"),Nk=(()=>{let n=class n{constructor(){this.injector=u(de),this.appRef=u(Yn),this.environmentInjector=u(Kt)}createComponent(i,r={}){let o=r.injector??this.injector,a;return r.context&&(a=he(r.context),o=de.create({providers:[{provide:xie,useValue:a.asReadonly()}],parent:o})),new Rk({component:i,vcr:r.vcr,injector:o,appRef:this.appRef,environmentInjector:r.environmentInjector||this.environmentInjector,contextSignal:a})}createTemplate(i,r={}){return new Pk({vcr:r.vcr,appRef:this.appRef,tpl:i,context:r.context,injector:r.injector})}createView(i,r={}){if(Pg(i))return this.createTemplate(i,r);if(xu(i))return this.createComponent(i,r);if(tj(i))return new Fk(i);throw"Type of content is not supported"}};n.\u0275fac=function(r){return new(r||n)},n.\u0275prov=R({token:n,factory:n.\u0275fac,providedIn:"root"});let t=n;return t})();var Cie=(()=>{let n=class n{constructor(){this.content=re()}};n.\u0275fac=function(r){return new(r||n)},n.\u0275cmp=E({type:n,selectors:[["dynamic-view"]],inputs:{content:[1,"content"]},decls:1,vars:1,consts:[[3,"innerHTML"]],template:function(r,o){r&1&&Xt(0,"div",0),r&2&&ci("innerHTML",o.content(),rf)},encapsulation:2});let t=n;return t})(),Sx=(()=>{let n=class n{constructor(){this.view=re(void 0,{alias:"dynamicView"}),this.injector=re(void 0,{alias:"dynamicViewInjector"}),this.context=re(void 0,{alias:"dynamicViewContext"}),this.inputs=re(void 0,{alias:"dynamicViewInputs"}),this.defaultTpl=u(te),this.vcr=u(ot),this.viewService=u(Nk)}ngOnInit(){this.resolveContentType()}ngOnChanges(i){let r=i.view&&!i.view.isFirstChange(),o=i.context&&!i.context.isFirstChange(),a=i.inputs&&!i.inputs.isFirstChange();r?this.resolveContentType():o?this.viewRef.updateContext(this.context()):xu(this.view())&&a&&this.viewRef.setInputs(this.inputs()||{})}resolveContentType(){this.viewRef?.destroy();let i=this.view(),r=this.injector(),o=this.context();if(tj(i))(this.viewRef=this.viewService.createComponent(Cie,{vcr:this.vcr,injector:r})).setInput("content",i).detectChanges();else if(xu(i)){this.viewRef=this.viewService.createComponent(i,{vcr:this.vcr,injector:r??this.vcr.injector,context:o});let a=this.inputs();a&&this.viewRef.setInputs(a)}else this.viewRef=this.viewService.createView(i||this.defaultTpl,{vcr:this.vcr,injector:r??this.vcr.injector,context:o})}ngOnDestroy(){this.viewRef?.destroy()}};n.\u0275fac=function(r){return new(r||n)},n.\u0275dir=P({type:n,selectors:[["","dynamicView",""]],inputs:{view:[1,"dynamicView","view"],injector:[1,"dynamicViewInjector","injector"],context:[1,"dynamicViewContext","context"],inputs:[1,"dynamicViewInputs","inputs"]},features:[Ae]});let t=n;return t})();function wie(t,n){if(t&1&&(g(0,` - `),M(1,"hot-toast-loader",1),g(2,` - `)),t&2){let e=x(2);f(),v("theme",e.theme)}}function Die(t,n){if(t&1&&(g(0,` - `),m(1,"div"),g(2,` - `),M(3,"hot-toast-error",1),g(4,` - `),h(),g(5,` - `)),t&2){let e=x(3);f(3),v("theme",e.theme)}}function Eie(t,n){if(t&1&&(g(0,` - `),m(1,"div"),g(2,` - `),M(3,"hot-toast-checkmark",1),g(4,` - `),h(),g(5,` - `)),t&2){let e=x(3);f(3),v("theme",e.theme)}}function Mie(t,n){if(t&1&&(g(0,` - `),m(1,"div"),g(2,` - `),M(3,"hot-toast-warning",1),g(4,` - `),h(),g(5,` - `)),t&2){let e=x(3);f(3),v("theme",e.theme)}}function Sie(t,n){if(t&1&&(g(0,` - `),m(1,"div"),g(2,` - `),M(3,"hot-toast-info",1),g(4,` - `),h(),g(5,` - `)),t&2){let e=x(3);f(3),v("theme",e.theme)}}function kie(t,n){if(t&1&&(g(0,` - `),m(1,"div",2),g(2,` - `),m(3,"div"),g(4,` - `),V(5,Die,6,1)(6,Eie,6,1)(7,Mie,6,1)(8,Sie,6,1),g(9,` - `),h(),g(10,` - `),h(),g(11,` - `)),t&2){let e,i=x(2);f(5),B((e=i.type)==="error"?5:e==="success"?6:e==="warning"?7:e==="info"?8:-1)}}function Tie(t,n){if(t&1&&(g(0,` -`),m(1,"div",0),g(2,` - `),V(3,wie,3,1),V(4,kie,12,1),h(),g(5,` -`)),t&2){let e=x();f(3),B(e.type==="loading"?3:-1),f(),B(e.type!=="loading"?4:-1)}}function Iie(t,n){t&1&&Ge(0)}var oj=["hotToastBarBase"];function Aie(t,n){if(t&1&&(g(0,` - `),m(1,"hot-toast-animated-icon",7),g(2),h(),g(3,` - `)),t&2){let e=x(2);f(),v("iconTheme",e.toast.iconTheme),f(),N(e.toast.icon)}}function Oie(t,n){t&1&&Ge(0)}function Rie(t,n){if(t&1&&(g(0,` - `),m(1,"div"),g(2,` - `),A(3,Oie,1,0,"ng-container",8),g(4,` - `),h(),g(5,` - `)),t&2){let e=x(2);f(3),v("dynamicView",e.toast.icon)}}function Pie(t,n){if(t&1&&(g(0," "),V(1,Aie,4,2)(2,Rie,6,1)),t&2){let e=x();f(),B(e.isIconString?1:2)}}function Fie(t,n){if(t&1&&(g(0,` - `),M(1,"hot-toast-indicator",9),g(2,` - `)),t&2){let e=x();f(),v("theme",e.toast.iconTheme)("type",e.toast.type)}}function Nie(t,n){t&1&&Ge(0)}function Lie(t,n){if(t&1){let e=q();g(0,` - `),m(1,"button",10),S("click",function(){T(e);let r=x();return I(r.close())}),h(),g(2,` - `)}if(t&2){let e=x();f(),el(e.toast.closeStyle)}}var Vie=(t,n)=>n.id;function Bie(t,n){if(t&1&&(g(0,` - `),M(1,"hot-toast-animated-icon",7),g(2,` - `)),t&2){let e=x(2);f(),v("iconTheme",e.toast.iconTheme)("icon",e.toast.icon)}}function jie(t,n){t&1&&Ge(0)}function Hie(t,n){if(t&1&&(g(0,` - `),m(1,"div"),g(2,` - `),A(3,jie,1,0,"ng-container",8),g(4,` - `),h(),g(5,` - `)),t&2){let e=x(2);f(3),v("dynamicView",e.toast.icon)}}function zie(t,n){if(t&1&&(g(0," "),V(1,Bie,3,2)(2,Hie,6,1)),t&2){let e=x();f(),B(e.isIconString?1:2)}}function Uie(t,n){if(t&1&&(g(0,` - `),M(1,"hot-toast-indicator",9),g(2,` - `)),t&2){let e=x();f(),v("theme",e.toast.iconTheme)("type",e.toast.type)}}function $ie(t,n){t&1&&Ge(0)}function Wie(t,n){if(t&1){let e=q();g(0,` - `),m(1,"button",10),S("click",function(){T(e);let r=x();return I(r.toggleToastGroup())}),h(),g(2,` - `)}if(t&2){let e=x();f(),el(e.toast.group.btnStyle),G("expanded",e.isExpanded),X("aria-label",e.isExpanded?"Collapse":"Expand")}}function Gie(t,n){if(t&1){let e=q();g(0,` - `),m(1,"button",11),S("click",function(){T(e);let r=x();return I(r.close())}),h(),g(2,` - `)}if(t&2){let e=x();f(),el(e.toast.closeStyle)}}function qie(t,n){if(t&1){let e=q();g(0,` - `),m(1,"hot-toast-group-item",13),S("height",function(r){let o=T(e).$implicit,a=x(2);return I(a.updateHeight(r,o))})("beforeClosed",function(){let r=T(e).$implicit,o=x(2);return I(o.beforeClosedGroupItem(r))})("afterClosed",function(r){T(e);let o=x(2);return I(o.afterClosedGroupItem(r))}),h(),g(2,` - `)}if(t&2){let e=n.$implicit,i=n.$index,r=x(2);f(),v("toast",e)("offset",r.calculateOffset(e.id))("toastRef",r.toastRef.groupRefs[i])("toastsAfter",(e.autoClose?r.groupChildrenToasts.length:r.visibleToasts.length)-1-i)("defaultConfig",r.defaultConfig)("isShowingAllToasts",r.isShowingAllToasts)}}function Yie(t,n){if(t&1&&(g(0,` - `),m(1,"div",12),g(2,` - `),xt(3,qie,3,6,null,null,Vie),h(),g(5,` - `)),t&2){let e=x();f(),nt(e.toast.group==null?null:e.toast.group.className),Et("--hot-toast-group-height",e.groupHeight+"px"),f(2),Ct(e.groupChildrenToasts)}}function Qie(t,n){t&1&&g(0,` - `)}function Kie(t,n){if(t&1){let e=q();g(0,` - `),m(1,"hot-toast",2),S("showAllToasts",function(r){T(e);let o=x(2);return I(o.showAllToasts(r))})("height",function(r){T(e);let o=x().$implicit,a=x();return I(a.updateHeight(r,o))})("beforeClosed",function(){T(e);let r=x().$implicit,o=x();return I(o.beforeClosed(r))})("afterClosed",function(r){T(e);let o=x(2);return I(o.afterClosed(r))})("toggleGroup",function(r){T(e);let o=x(2);return I(o.toggleGroup(r))}),h(),g(2,` - `)}if(t&2){let e=x(),i=e.$implicit,r=e.$index,o=x();f(),v("toast",i)("offset",o.calculateOffset(i.id,i.position))("toastRef",o.toastRefs[r])("toastsAfter",(i.autoClose?o.toasts.length:o.getVisibleToasts(i.position).length)-1-r)("defaultConfig",o.defaultConfig)("isShowingAllToasts",o.isShowingAllToasts)}}function Zie(t,n){if(t&1&&(g(0,` - `),V(1,Qie,1,0)(2,Kie,3,6)),t&2){let e=n.$implicit;f(),B(e.group!=null&&e.group.parent?1:2)}}var ij={blank:4e3,error:4e3,success:4e3,loading:3e4,warning:4e3,info:4e3},Ph=800,kx=350,Xie=8,Vk=.05,Jie=1,Fg=class{constructor(n){this.toast=n,this.groupRefs=[],this.groupExpanded=!1,this._onClosed=new z,this._onGroupToggle=new z}set data(n){this.toast.data=n}get data(){return this.toast.data}set dispose(n){this._dispose=n}getToast(){return this.toast}appendTo(n,e){let{dispose:i,updateMessage:r,updateToast:o,afterClosed:a,afterGroupToggled:s,afterGroupRefsAttached:l}=n.addToast(this,e);return this.dispose=i,this.updateMessage=r,this.updateToast=o,this.afterClosed=Ku(this._onClosed.asObservable(),a),this.afterGroupToggled=Ku(this._onGroupToggle.asObservable(),s),this.afterGroupRefsAttached=l,this}close(n={dismissedByAction:!1}){this.groupRefs.forEach(e=>e.close()),this._dispose(),this._onClosed.next({dismissedByAction:n.dismissedByAction,id:this.toast.id}),this._onClosed.complete()}toggleGroup(n={byAction:!1}){this.groupExpanded=!this.groupExpanded,this._onGroupToggle.next({byAction:n.byAction,id:this.toast.id,event:this.groupExpanded?"expand":"collapse"})}show(){this.toast.visible=!0}},Tx=(t,n,e)=>{t.setStyle(n,"animation",e)},ene=(()=>{let n=class n{};n.\u0275fac=function(r){return new(r||n)},n.\u0275cmp=E({type:n,selectors:[["hot-toast-loader"]],inputs:{theme:"theme"},decls:2,vars:4,consts:[[1,"hot-toast-loader-icon"]],template:function(r,o){r&1&&(Xt(0,"div",0),g(1,` -`)),r&2&&Et("border-color",o.theme==null?null:o.theme.primary)("border-right-color",o.theme==null?null:o.theme.secondary)},encapsulation:2,changeDetection:0});let t=n;return t})(),tne=(()=>{let n=class n{};n.\u0275fac=function(r){return new(r||n)},n.\u0275cmp=E({type:n,selectors:[["hot-toast-error"]],inputs:{theme:"theme"},decls:2,vars:4,consts:[[1,"hot-toast-error-icon"]],template:function(r,o){r&1&&(Xt(0,"div",0),g(1,` -`)),r&2&&Et("--error-primary",o.theme==null?null:o.theme.primary)("--error-secondary",o.theme==null?null:o.theme.secondary)},encapsulation:2,changeDetection:0});let t=n;return t})(),ine=(()=>{let n=class n{};n.\u0275fac=function(r){return new(r||n)},n.\u0275cmp=E({type:n,selectors:[["hot-toast-checkmark"]],inputs:{theme:"theme"},decls:2,vars:4,consts:[[1,"hot-toast-checkmark-icon"]],template:function(r,o){r&1&&(Xt(0,"div",0),g(1,` -`)),r&2&&Et("--check-primary",o.theme==null?null:o.theme.primary)("--check-secondary",o.theme==null?null:o.theme.secondary)},encapsulation:2,changeDetection:0});let t=n;return t})(),nne=(()=>{let n=class n{};n.\u0275fac=function(r){return new(r||n)},n.\u0275cmp=E({type:n,selectors:[["hot-toast-warning"]],inputs:{theme:"theme"},decls:2,vars:4,consts:[[1,"hot-toast-warning-icon"]],template:function(r,o){r&1&&(Xt(0,"div",0),g(1,` -`)),r&2&&Et("--warn-primary",o.theme==null?null:o.theme.primary)("--warn-secondary",o.theme==null?null:o.theme.secondary)},encapsulation:2,changeDetection:0});let t=n;return t})(),rne=(()=>{let n=class n{};n.\u0275fac=function(r){return new(r||n)},n.\u0275cmp=E({type:n,selectors:[["hot-toast-info"]],inputs:{theme:"theme"},decls:2,vars:4,consts:[[1,"hot-toast-info-icon"]],template:function(r,o){r&1&&(Xt(0,"div",0),g(1,` -`)),r&2&&Et("--info-primary",o.theme==null?null:o.theme.primary)("--info-secondary",o.theme==null?null:o.theme.secondary)},encapsulation:2,changeDetection:0});let t=n;return t})(),aj=(()=>{let n=class n{};n.\u0275fac=function(r){return new(r||n)},n.\u0275cmp=E({type:n,selectors:[["hot-toast-indicator"]],inputs:{theme:"theme",type:"type"},decls:1,vars:1,consts:[[1,"hot-toast-indicator-wrapper"],[3,"theme"],[1,"hot-toast-status-wrapper"]],template:function(r,o){r&1&&V(0,Tie,6,2),r&2&&B(o.type!=="blank"?0:-1)},dependencies:[ene,tne,ine,nne,rne],encapsulation:2,changeDetection:0});let t=n;return t})(),sj=(()=>{let n=class n{};n.\u0275fac=function(r){return new(r||n)},n.\u0275cmp=E({type:n,selectors:[["hot-toast-animated-icon"]],inputs:{iconTheme:"iconTheme",icon:"icon"},decls:5,vars:3,consts:[[1,"hot-toast-animated-icon"],[4,"dynamicView"]],template:function(r,o){r&1&&(m(0,"div",0),g(1,` - `),A(2,Iie,1,0,"ng-container",1),g(3,` -`),h(),g(4,` -`)),r&2&&(Et("color",o.iconTheme==null?null:o.iconTheme.primary),f(2),v("dynamicView",o.icon))},dependencies:[Sx],encapsulation:2,changeDetection:0});let t=n;return t})(),one=(()=>{let n=class n{constructor(){this.offset=0,this._toastsAfter=0,this.isShowingAllToasts=!1,this.height=new U,this.beforeClosed=new U,this.afterClosed=new U,this.showAllToasts=new U,this.toggleGroup=new U,this.isManualClose=!1,this.toastBarBaseStylesSignal=he({}),this.unlisteners=[],this.softClosed=!1,this.injector=u(de),this.renderer=u(ze),this.ngZone=u(ae),this.cdr=u(ye)}set toast(i){this._toast=i;let r=this.toastBarBaseStylesSignal(),o=k({},i.style);if(r.animation?.includes("hotToastExitAnimation"))o.animation=r.animation;else{let s=`hotToastEnterAnimation${i.position.includes("top")?"Negative":"Positive"} ${kx}ms cubic-bezier(0.21, 1.02, 0.73, 1) forwards`;o.animation=s}this.toastBarBaseStylesSignal.set(o)}get toast(){return this._toast}get toastsAfter(){return this._toastsAfter}set toastsAfter(i){this._toastsAfter=i}get toastBarBaseHeight(){return this.toastBarBase.nativeElement.offsetHeight}get scale(){return this.defaultConfig.stacking!=="vertical"&&!this.isShowingAllToasts?this.toastsAfter*-Vk+1:1}get translateY(){return this.offset*(this.top?1:-1)+"px"}get exitAnimationDelay(){return this.toast.duration+"ms"}get top(){return this.toast.position.includes("top")}get containerPositionStyle(){let i=this.top?{top:0}:{bottom:0},r="translateY(var(--hot-toast-translate-y)) scale(var(--hot-toast-scale))",o=this.toast.position.includes("left")?{left:0}:this.toast.position.includes("right")?{right:0}:{left:0,right:0,justifyContent:"center"};return k(k({transform:r},i),o)}get isIconString(){return typeof this.toast.icon=="string"}get groupChildrenToastRefs(){return this.toastRef.groupRefs.filter(i=>!!i)}set groupChildrenToastRefs(i){this.toastRef.groupRefs=i}get groupChildrenToasts(){return this.groupChildrenToastRefs.map(i=>i.getToast())}get groupHeight(){return this.visibleToasts.map(i=>i.height).reduce((i,r)=>i+r,0)}get isExpanded(){return this.toastRef.groupExpanded}ngOnChanges(i){i.toast&&!i.toast.firstChange&&i.toast.currentValue?.message&&requestAnimationFrame(()=>{this.height.emit(this.toastBarBase.nativeElement.offsetHeight)})}ngOnInit(){Pg(this.toast.message)&&(this.context={$implicit:this.toastRef}),xu(this.toast.message)&&(this.toastComponentInjector=de.create({providers:[{provide:Fg,useValue:this.toastRef}],parent:this.toast.injector||this.injector}));let i=this.toastBarBase.nativeElement;this.ngZone.runOutsideAngular(()=>{this.unlisteners.push(this.renderer.listen(i,"animationstart",r=>{this.isExitAnimation(r)&&this.ngZone.run(()=>{this.renderer.setStyle(i,"pointer-events","none"),this.renderer.setStyle(i.parentElement,"pointer-events","none"),this.beforeClosed.emit()})}),this.renderer.listen(i,"animationend",r=>{this.isEnterAnimation(r)&&this.ngZone.run(()=>{if(this.toast.autoClose){let o=`hotToastExitAnimation${this.top?"Negative":"Positive"} ${Ph}ms forwards cubic-bezier(0.06, 0.71, 0.55, 1) var(--hot-toast-exit-animation-delay) var(--hot-toast-exit-animation-state)`;this.toastBarBaseStylesSignal.set(Ee(k({},this.toast.style),{animation:o}))}}),this.isExitAnimation(r)&&this.ngZone.run(()=>this.afterClosed.emit({dismissedByAction:this.isManualClose,id:this.toast.id}))}))})}ngAfterViewInit(){let i=this.toastBarBase.nativeElement;requestAnimationFrame(()=>{this.height.emit(i.offsetHeight)}),this.setToastAttributes()}softClose(){let i=`hotToastExitSoftAnimation${this.top?"Negative":"Positive"} ${Ph}ms forwards cubic-bezier(0.06, 0.71, 0.55, 1)`,r=this.toastBarBase.nativeElement;Tx(this.renderer,r,i),this.softClosed=!0}softOpen(){let i=`hotToastEnterSoftAnimation${top?"Negative":"Positive"} ${kx}ms cubic-bezier(0.21, 1.02, 0.73, 1) forwards`,r=this.toastBarBase.nativeElement;Tx(this.renderer,r,i),this.softClosed=!1}close(){this.isManualClose=!0,this.cdr.markForCheck();let i=`hotToastExitAnimation${this.top?"Negative":"Positive"} ${Ph}ms forwards cubic-bezier(0.06, 0.71, 0.55, 1)`;this.toastBarBaseStylesSignal.set(Ee(k({},this.toast.style),{animation:i}))}handleMouseEnter(){this.showAllToasts.emit(!0)}handleMouseLeave(){this.showAllToasts.emit(!1)}ngOnDestroy(){for(this.close();this.unlisteners.length;)this.unlisteners.pop()()}isExitAnimation(i){return i.animationName.includes("hotToastExitAnimation")}isEnterAnimation(i){return i.animationName.includes("hotToastEnterAnimation")}setToastAttributes(){let i=this.toast.attributes;for(let[r,o]of Object.entries(i))this.renderer.setAttribute(this.toastBarBase.nativeElement,r,o)}get visibleToasts(){return this.groupChildrenToasts.filter(i=>i.visible)}};n.\u0275fac=function(r){return new(r||n)},n.\u0275cmp=E({type:n,selectors:[["hot-toast-group-item"]],viewQuery:function(r,o){if(r&1&&ie(oj,7),r&2){let a;j(a=H())&&(o.toastBarBase=a.first)}},inputs:{toast:"toast",offset:"offset",defaultConfig:"defaultConfig",toastRef:"toastRef",toastsAfter:"toastsAfter",isShowingAllToasts:"isShowingAllToasts"},outputs:{height:"height",beforeClosed:"beforeClosed",afterClosed:"afterClosed",showAllToasts:"showAllToasts",toggleGroup:"toggleGroup"},features:[Ae],decls:21,vars:25,consts:[["hotToastBarBase",""],[1,"hot-toast-bar-base-container"],[1,"hot-toast-bar-base-wrapper",3,"mouseenter","mouseleave"],[1,"hot-toast-bar-base"],["aria-hidden","true",1,"hot-toast-icon"],[1,"hot-toast-message"],[4,"dynamicView","dynamicViewContext","dynamicViewInjector"],[3,"iconTheme"],[4,"dynamicView"],[3,"theme","type"],["type","button","aria-label","Close",1,"hot-toast-close-btn",3,"click"]],template:function(r,o){if(r&1){let a=q();m(0,"div",1),g(1,` - `),m(2,"div",2),S("mouseenter",function(){return T(a),I(o.handleMouseEnter())})("mouseleave",function(){return T(a),I(o.handleMouseLeave())}),g(3,` - `),m(4,"div",3,0),g(6,` - `),m(7,"div",4),g(8,` - `),V(9,Pie,3,1)(10,Fie,3,2),h(),g(11,` - `),m(12,"div",5),g(13,` - `),A(14,Nie,1,0,"ng-container",6),g(15,` - `),h(),g(16,` - `),V(17,Lie,3,2),h(),g(18,` - `),h(),g(19,` -`),h(),g(20,` -`)}r&2&&(el(o.containerPositionStyle),nt("hot-toast-theme-"+o.toast.theme),Et("--hot-toast-scale",o.scale)("--hot-toast-translate-y",o.translateY),f(4),el(o.toastBarBaseStylesSignal()),nt(o.toast.className),Et("--hot-toast-animation-state",o.isManualClose?"running":"paused")("--hot-toast-exit-animation-state",o.isShowingAllToasts?"paused":"running")("--hot-toast-exit-animation-delay",o.exitAnimationDelay),X("aria-live",o.toast.ariaLive)("role",o.toast.role),f(5),B(o.toast.icon!==void 0?9:10),f(5),v("dynamicView",o.toast.message)("dynamicViewContext",o.context)("dynamicViewInjector",o.toastComponentInjector),f(3),B(o.toast.dismissible?17:-1))},dependencies:[sj,aj,Sx],encapsulation:2,changeDetection:0});let t=n;return t})(),nj=(()=>{let n=class n{constructor(){this.offset=0,this._toastsAfter=0,this.isShowingAllToasts=!1,this.height=new U,this.beforeClosed=new U,this.afterClosed=new U,this.showAllToasts=new U,this.toggleGroup=new U,this.isManualClose=!1,this.isExpanded=!1,this.toastBarBaseStylesSignal=he({}),this.unlisteners=[],this.softClosed=!1,this.groupRefs=[],this.injector=u(de),this.renderer=u(ze),this.ngZone=u(ae),this.cdr=u(ye)}set toast(i){this._toast=i;let r=this.toastBarBaseStylesSignal(),o=k({},i.style);if(r.animation?.includes("hotToastExitAnimation"))o.animation=r.animation;else{let s=`hotToastEnterAnimation${i.position.includes("top")?"Negative":"Positive"} ${kx}ms cubic-bezier(0.21, 1.02, 0.73, 1) forwards`;o.animation=s}this.toastBarBaseStylesSignal.set(o)}get toast(){return this._toast}get toastsAfter(){return this._toastsAfter}set toastsAfter(i){this._toastsAfter=i,this.defaultConfig?.visibleToasts>0&&(this.toast.autoClose||(i>=this.defaultConfig?.visibleToasts?this.softClose():this.softClosed&&this.softOpen()))}get toastBarBaseHeight(){return this.toastBarBase.nativeElement.offsetHeight}get scale(){return this.defaultConfig.stacking!=="vertical"&&!this.isShowingAllToasts?this.toastsAfter*-Vk+1:1}get translateY(){return this.offset*(this.top?1:-1)+"px"}get exitAnimationDelay(){return this.toast.duration+"ms"}get top(){return this.toast.position.includes("top")}get containerPositionStyle(){let i=this.top?{top:0}:{bottom:0},r="translateY(var(--hot-toast-translate-y)) scale(var(--hot-toast-scale))",o=this.toast.position.includes("left")?{left:0}:this.toast.position.includes("right")?{right:0}:{left:0,right:0,justifyContent:"center"};return k(k({transform:r},i),o)}get isIconString(){return typeof this.toast.icon=="string"}get groupChildrenToastRefs(){return this.groupRefs.filter(i=>!!i)}set groupChildrenToastRefs(i){this.groupRefs=i,this.toastRef.groupRefs=i}get groupChildrenToasts(){return this.groupChildrenToastRefs.map(i=>i.getToast())}get groupHeight(){return this.visibleToasts.slice(-this.defaultConfig.visibleToasts).map(i=>i.height).reduce((i,r)=>i+r,0)}get visibleToasts(){return this.groupChildrenToasts.filter(i=>i.visible)}ngDoCheck(){this.toastRef.groupRefs.length!==this.groupRefs.length&&(this.groupRefs=this.toastRef.groupRefs.slice(),this.cdr.markForCheck(),this.emiHeightWithGroup(this.isExpanded)),this.toastRef.groupExpanded!==this.isExpanded&&(this.isExpanded=this.toastRef.groupExpanded,this.cdr.markForCheck(),this.emiHeightWithGroup(this.isExpanded))}ngOnChanges(i){i.toast&&!i.toast.firstChange&&i.toast.currentValue?.message&&this.emiHeightWithGroup(this.isExpanded)}ngOnInit(){Pg(this.toast.message)&&(this.context={$implicit:this.toastRef}),xu(this.toast.message)&&(this.toastComponentInjector=de.create({providers:[{provide:Fg,useValue:this.toastRef}],parent:this.toast.injector||this.injector}));let i=this.toastBarBase.nativeElement;this.ngZone.runOutsideAngular(()=>{this.unlisteners.push(this.renderer.listen(i,"animationstart",r=>{this.isExitAnimation(r)&&this.ngZone.run(()=>{this.renderer.setStyle(i,"pointer-events","none"),this.renderer.setStyle(i.parentElement,"pointer-events","none"),this.beforeClosed.emit()})}),this.renderer.listen(i,"animationend",r=>{this.isEnterAnimation(r)&&this.ngZone.run(()=>{if(this.toast.autoClose){let o=`hotToastExitAnimation${this.top?"Negative":"Positive"} ${Ph}ms forwards cubic-bezier(0.06, 0.71, 0.55, 1) var(--hot-toast-exit-animation-delay) var(--hot-toast-exit-animation-state)`;this.toastBarBaseStylesSignal.set(Ee(k({},this.toast.style),{animation:o}))}}),this.isExitAnimation(r)&&this.ngZone.run(()=>this.afterClosed.emit({dismissedByAction:this.isManualClose,id:this.toast.id}))}))})}ngAfterViewInit(){let i=this.toastBarBase.nativeElement;requestAnimationFrame(()=>{this.height.emit(i.offsetHeight)}),this.setToastAttributes()}softClose(){let i=`hotToastExitSoftAnimation${this.top?"Negative":"Positive"} ${Ph}ms forwards cubic-bezier(0.06, 0.71, 0.55, 1)`,r=this.toastBarBase.nativeElement;Tx(this.renderer,r,i),this.softClosed=!0,this.isExpanded&&this.toggleToastGroup()}softOpen(){let i=`hotToastEnterSoftAnimation${top?"Negative":"Positive"} ${kx}ms cubic-bezier(0.21, 1.02, 0.73, 1) forwards`,r=this.toastBarBase.nativeElement;Tx(this.renderer,r,i),this.softClosed=!1}close(){this.isManualClose=!0,this.cdr.markForCheck();let i=`hotToastExitAnimation${this.top?"Negative":"Positive"} ${Ph}ms forwards cubic-bezier(0.06, 0.71, 0.55, 1)`;this.toastBarBaseStylesSignal.set(Ee(k({},this.toast.style),{animation:i}))}handleMouseEnter(){this.showAllToasts.emit(!0)}handleMouseLeave(){this.showAllToasts.emit(!1)}ngOnDestroy(){for(this.close();this.unlisteners.length;)this.unlisteners.pop()()}isExitAnimation(i){return i.animationName.includes("hotToastExitAnimation")}isEnterAnimation(i){return i.animationName.includes("hotToastEnterAnimation")}setToastAttributes(){let i=this.toast.attributes;for(let[r,o]of Object.entries(i))this.renderer.setAttribute(this.toastBarBase.nativeElement,r,o)}calculateOffset(i){let r=this.visibleToasts,o=r.findIndex(s=>s.id===i);return o!==-1?r.slice(...this.defaultConfig.reverseOrder?[o+1]:[0,o]).reduce((s,l,c)=>this.defaultConfig.visibleToasts!==0&&co.id===i.id)>-1&&(this.groupChildrenToastRefs=this.groupChildrenToastRefs.filter(o=>o.getToast().id!==i.id),this.cdr.markForCheck())}toggleToastGroup(){let i=this.isExpanded?"collapse":"expand";this.toggleGroup.emit({byAction:!0,event:i,id:this.toast.id}),this.emiHeightWithGroup(i==="expand")}emiHeightWithGroup(i){requestAnimationFrame(i?()=>{this.height.emit(this.toastBarBase.nativeElement.offsetHeight+this.groupHeight)}:()=>{this.height.emit(this.toastBarBase.nativeElement.offsetHeight)})}};n.\u0275fac=function(r){return new(r||n)},n.\u0275cmp=E({type:n,selectors:[["hot-toast"]],viewQuery:function(r,o){if(r&1&&ie(oj,7),r&2){let a;j(a=H())&&(o.toastBarBase=a.first)}},inputs:{toast:"toast",offset:"offset",defaultConfig:"defaultConfig",toastRef:"toastRef",toastsAfter:"toastsAfter",isShowingAllToasts:"isShowingAllToasts"},outputs:{height:"height",beforeClosed:"beforeClosed",afterClosed:"afterClosed",showAllToasts:"showAllToasts",toggleGroup:"toggleGroup"},features:[Ae],decls:23,vars:29,consts:[["hotToastBarBase",""],[1,"hot-toast-bar-base-container"],[1,"hot-toast-bar-base-wrapper",3,"mouseenter","mouseleave"],[1,"hot-toast-bar-base"],["aria-hidden","true",1,"hot-toast-icon"],[1,"hot-toast-message"],[4,"dynamicView","dynamicViewContext","dynamicViewInjector"],[3,"iconTheme","icon"],[4,"dynamicView"],[3,"theme","type"],["type","button",1,"hot-toast-group-btn",3,"click"],["type","button","aria-label","Close",1,"hot-toast-close-btn",3,"click"],["role","list",1,"hot-toast-bar-base-group"],[3,"height","beforeClosed","afterClosed","toast","offset","toastRef","toastsAfter","defaultConfig","isShowingAllToasts"]],template:function(r,o){if(r&1){let a=q();m(0,"div",1),g(1,` - `),m(2,"div",2),S("mouseenter",function(){return T(a),I(o.handleMouseEnter())})("mouseleave",function(){return T(a),I(o.handleMouseLeave())}),g(3,` - `),m(4,"div",3,0),g(6,` - `),m(7,"div",4),g(8,` - `),V(9,zie,3,1)(10,Uie,3,2),h(),g(11,` +`],encapsulation:2,changeDetection:0})}return t})();function Nee(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 Lee=new O("mat-mdc-fab-default-options",{providedIn:"root",factory:u3});function u3(){return{color:"accent"}}var l3=u3(),Dx=(()=>{class t extends wx{_options=u(Lee,{optional:!0});_isFab=!0;extended;constructor(){super(),this._options=this._options||l3,this.color=this._options.color||l3.color}static \u0275fac=function(i){return new(i||t)};static \u0275cmp=E({type:t,selectors:[["button","mat-fab",""],["a","mat-fab",""],["button","matFab",""],["a","matFab",""]],hostAttrs:[1,"mdc-fab","mat-mdc-fab-base","mat-mdc-fab"],hostVars:4,hostBindings:function(i,r){i&2&&G("mdc-fab--extended",r.extended)("mat-mdc-extended-fab",r.extended)},inputs:{extended:[2,"extended","extended",L]},exportAs:["matButton","matAnchor"],features:[le],attrs:Fee,ngContentSelectors:d3,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(i,r){i&1&&(Ee(c3),ni(0,"span",0),ne(1),gt(2,"span",1),ne(3,1),yt(),ne(4,2),ni(5,"span",2)(6,"span",3)),i&2&&G("mdc-button__ripple",!r._isFab)("mdc-fab__ripple",r._isFab)},styles:[`.mat-mdc-fab-base{-webkit-user-select:none;user-select:none;position:relative;display:inline-flex;align-items:center;justify-content:center;box-sizing:border-box;width:56px;height:56px;padding:0;border:none;fill:currentColor;text-decoration:none;cursor:pointer;-moz-appearance:none;-webkit-appearance:none;overflow:visible;transition:box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1),opacity 15ms linear 30ms,transform 270ms 0ms cubic-bezier(0, 0, 0.2, 1);flex-shrink:0;-webkit-tap-highlight-color:rgba(0,0,0,0)}.mat-mdc-fab-base .mat-mdc-button-ripple,.mat-mdc-fab-base .mat-mdc-button-persistent-ripple,.mat-mdc-fab-base .mat-mdc-button-persistent-ripple::before{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none;border-radius:inherit}.mat-mdc-fab-base .mat-mdc-button-ripple{overflow:hidden}.mat-mdc-fab-base .mat-mdc-button-persistent-ripple::before{content:"";opacity:0}.mat-mdc-fab-base .mdc-button__label,.mat-mdc-fab-base .mat-icon{z-index:1;position:relative}.mat-mdc-fab-base .mat-focus-indicator{top:0;left:0;right:0;bottom:0;position:absolute}.mat-mdc-fab-base:focus>.mat-focus-indicator::before{content:""}.mat-mdc-fab-base._mat-animation-noopable{transition:none !important;animation:none !important}.mat-mdc-fab-base::before{position:absolute;box-sizing:border-box;width:100%;height:100%;top:0;left:0;border:1px solid rgba(0,0,0,0);border-radius:inherit;content:"";pointer-events:none}.mat-mdc-fab-base[hidden]{display:none}.mat-mdc-fab-base::-moz-focus-inner{padding:0;border:0}.mat-mdc-fab-base:active,.mat-mdc-fab-base:focus{outline:none}.mat-mdc-fab-base:hover{cursor:pointer}.mat-mdc-fab-base>svg{width:100%}.mat-mdc-fab-base .mat-icon,.mat-mdc-fab-base .material-icons{transition:transform 180ms 90ms cubic-bezier(0, 0, 0.2, 1);fill:currentColor;will-change:transform}.mat-mdc-fab-base .mat-focus-indicator::before{margin:calc(calc(var(--mat-focus-indicator-border-width, 3px) + 2px)*-1)}.mat-mdc-fab-base[disabled],.mat-mdc-fab-base.mat-mdc-button-disabled{cursor:default;pointer-events:none}.mat-mdc-fab-base[disabled],.mat-mdc-fab-base[disabled]:focus,.mat-mdc-fab-base.mat-mdc-button-disabled,.mat-mdc-fab-base.mat-mdc-button-disabled:focus{box-shadow:none}.mat-mdc-fab-base.mat-mdc-button-disabled-interactive{pointer-events:auto}.mat-mdc-fab{background-color:var(--mat-fab-container-color, var(--mat-sys-primary-container));border-radius:var(--mat-fab-container-shape, var(--mat-sys-corner-large));color:var(--mat-fab-foreground-color, var(--mat-sys-on-primary-container, inherit));box-shadow:var(--mat-fab-container-elevation-shadow, var(--mat-sys-level3))}.mat-mdc-fab:hover{box-shadow:var(--mat-fab-hover-container-elevation-shadow, var(--mat-sys-level4))}.mat-mdc-fab:focus{box-shadow:var(--mat-fab-focus-container-elevation-shadow, var(--mat-sys-level3))}.mat-mdc-fab:active,.mat-mdc-fab:focus:active{box-shadow:var(--mat-fab-pressed-container-elevation-shadow, var(--mat-sys-level3))}.mat-mdc-fab[disabled],.mat-mdc-fab.mat-mdc-button-disabled{cursor:default;pointer-events:none;color:var(--mat-fab-disabled-state-foreground-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent));background-color:var(--mat-fab-disabled-state-container-color, color-mix(in srgb, var(--mat-sys-on-surface) 12%, transparent))}.mat-mdc-fab.mat-mdc-button-disabled-interactive{pointer-events:auto}.mat-mdc-fab .mat-mdc-button-touch-target{position:absolute;top:50%;height:var(--mat-fab-touch-target-size, 48px);display:var(--mat-fab-touch-target-display, block);left:50%;width:var(--mat-fab-touch-target-size, 48px);transform:translate(-50%, -50%)}.mat-mdc-fab .mat-ripple-element{background-color:var(--mat-fab-ripple-color, color-mix(in srgb, var(--mat-sys-on-primary-container) calc(var(--mat-sys-pressed-state-layer-opacity) * 100%), transparent))}.mat-mdc-fab .mat-mdc-button-persistent-ripple::before{background-color:var(--mat-fab-state-layer-color, var(--mat-sys-on-primary-container))}.mat-mdc-fab.mat-mdc-button-disabled .mat-mdc-button-persistent-ripple::before{background-color:var(--mat-fab-disabled-state-layer-color)}.mat-mdc-fab:hover>.mat-mdc-button-persistent-ripple::before{opacity:var(--mat-fab-hover-state-layer-opacity, var(--mat-sys-hover-state-layer-opacity))}.mat-mdc-fab.cdk-program-focused>.mat-mdc-button-persistent-ripple::before,.mat-mdc-fab.cdk-keyboard-focused>.mat-mdc-button-persistent-ripple::before,.mat-mdc-fab.mat-mdc-button-disabled-interactive:focus>.mat-mdc-button-persistent-ripple::before{opacity:var(--mat-fab-focus-state-layer-opacity, var(--mat-sys-focus-state-layer-opacity))}.mat-mdc-fab:active>.mat-mdc-button-persistent-ripple::before{opacity:var(--mat-fab-pressed-state-layer-opacity, var(--mat-sys-pressed-state-layer-opacity))}.mat-mdc-mini-fab{width:40px;height:40px;background-color:var(--mat-fab-small-container-color, var(--mat-sys-primary-container));border-radius:var(--mat-fab-small-container-shape, var(--mat-sys-corner-medium));color:var(--mat-fab-small-foreground-color, var(--mat-sys-on-primary-container, inherit));box-shadow:var(--mat-fab-small-container-elevation-shadow, var(--mat-sys-level3))}.mat-mdc-mini-fab:hover{box-shadow:var(--mat-fab-small-hover-container-elevation-shadow, var(--mat-sys-level4))}.mat-mdc-mini-fab:focus{box-shadow:var(--mat-fab-small-focus-container-elevation-shadow, var(--mat-sys-level3))}.mat-mdc-mini-fab:active,.mat-mdc-mini-fab:focus:active{box-shadow:var(--mat-fab-small-pressed-container-elevation-shadow, var(--mat-sys-level3))}.mat-mdc-mini-fab[disabled],.mat-mdc-mini-fab.mat-mdc-button-disabled{cursor:default;pointer-events:none;color:var(--mat-fab-small-disabled-state-foreground-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent));background-color:var(--mat-fab-small-disabled-state-container-color, color-mix(in srgb, var(--mat-sys-on-surface) 12%, transparent))}.mat-mdc-mini-fab.mat-mdc-button-disabled-interactive{pointer-events:auto}.mat-mdc-mini-fab .mat-mdc-button-touch-target{position:absolute;top:50%;height:var(--mat-fab-small-touch-target-size, 48px);display:var(--mat-fab-small-touch-target-display);left:50%;width:var(--mat-fab-small-touch-target-size, 48px);transform:translate(-50%, -50%)}.mat-mdc-mini-fab .mat-ripple-element{background-color:var(--mat-fab-small-ripple-color, color-mix(in srgb, var(--mat-sys-on-primary-container) calc(var(--mat-sys-pressed-state-layer-opacity) * 100%), transparent))}.mat-mdc-mini-fab .mat-mdc-button-persistent-ripple::before{background-color:var(--mat-fab-small-state-layer-color, var(--mat-sys-on-primary-container))}.mat-mdc-mini-fab.mat-mdc-button-disabled .mat-mdc-button-persistent-ripple::before{background-color:var(--mat-fab-small-disabled-state-layer-color)}.mat-mdc-mini-fab:hover>.mat-mdc-button-persistent-ripple::before{opacity:var(--mat-fab-small-hover-state-layer-opacity, var(--mat-sys-hover-state-layer-opacity))}.mat-mdc-mini-fab.cdk-program-focused>.mat-mdc-button-persistent-ripple::before,.mat-mdc-mini-fab.cdk-keyboard-focused>.mat-mdc-button-persistent-ripple::before,.mat-mdc-mini-fab.mat-mdc-button-disabled-interactive:focus>.mat-mdc-button-persistent-ripple::before{opacity:var(--mat-fab-small-focus-state-layer-opacity, var(--mat-sys-focus-state-layer-opacity))}.mat-mdc-mini-fab:active>.mat-mdc-button-persistent-ripple::before{opacity:var(--mat-fab-small-pressed-state-layer-opacity, var(--mat-sys-pressed-state-layer-opacity))}.mat-mdc-extended-fab{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;padding-left:20px;padding-right:20px;width:auto;max-width:100%;line-height:normal;box-shadow:var(--mat-fab-extended-container-elevation-shadow, var(--mat-sys-level3));height:var(--mat-fab-extended-container-height, 56px);border-radius:var(--mat-fab-extended-container-shape, var(--mat-sys-corner-large));font-family:var(--mat-fab-extended-label-text-font, var(--mat-sys-label-large-font));font-size:var(--mat-fab-extended-label-text-size, var(--mat-sys-label-large-size));font-weight:var(--mat-fab-extended-label-text-weight, var(--mat-sys-label-large-weight));letter-spacing:var(--mat-fab-extended-label-text-tracking, var(--mat-sys-label-large-tracking))}.mat-mdc-extended-fab:hover{box-shadow:var(--mat-fab-extended-hover-container-elevation-shadow, var(--mat-sys-level4))}.mat-mdc-extended-fab:focus{box-shadow:var(--mat-fab-extended-focus-container-elevation-shadow, var(--mat-sys-level3))}.mat-mdc-extended-fab:active,.mat-mdc-extended-fab:focus:active{box-shadow:var(--mat-fab-extended-pressed-container-elevation-shadow, var(--mat-sys-level3))}.mat-mdc-extended-fab[disabled],.mat-mdc-extended-fab.mat-mdc-button-disabled{cursor:default;pointer-events:none}.mat-mdc-extended-fab[disabled],.mat-mdc-extended-fab[disabled]:focus,.mat-mdc-extended-fab.mat-mdc-button-disabled,.mat-mdc-extended-fab.mat-mdc-button-disabled:focus{box-shadow:none}.mat-mdc-extended-fab.mat-mdc-button-disabled-interactive{pointer-events:auto}[dir=rtl] .mat-mdc-extended-fab .mdc-button__label+.mat-icon,[dir=rtl] .mat-mdc-extended-fab .mdc-button__label+.material-icons,.mat-mdc-extended-fab>.mat-icon,.mat-mdc-extended-fab>.material-icons{margin-left:-8px;margin-right:12px}.mat-mdc-extended-fab .mdc-button__label+.mat-icon,.mat-mdc-extended-fab .mdc-button__label+.material-icons,[dir=rtl] .mat-mdc-extended-fab>.mat-icon,[dir=rtl] .mat-mdc-extended-fab>.material-icons{margin-left:12px;margin-right:-8px}.mat-mdc-extended-fab .mat-mdc-button-touch-target{width:100%} +`],encapsulation:2,changeDetection:0})}return t})();var Fe=(()=>{class t{static \u0275fac=function(i){return new(i||t)};static \u0275mod=ee({type:t});static \u0275inj=J({imports:[De,Io,De]})}return t})();function Vee(t,n){if(t&1&&(m(0,"mat-option",17),f(1),h()),t&2){let e=n.$implicit;v("value",e),g(),fe(" ",e," ")}}function Bee(t,n){if(t&1){let e=q();m(0,"mat-form-field",14)(1,"mat-select",16,0),S("selectionChange",function(r){k(e);let o=x(2);return T(o._changePageSize(r.value))}),Mt(3,Vee,2,2,"mat-option",17,Em),h(),m(5,"div",18),S("click",function(){k(e);let r=Te(2);return T(r.open())}),h()()}if(t&2){let e=x(2);v("appearance",e._formFieldAppearance)("color",e.color),g(),v("value",e.pageSize)("disabled",e.disabled),pc("aria-labelledby",e._pageSizeLabelId),v("panelClass",e.selectConfig.panelClass||"")("disableOptionCentering",e.selectConfig.disableOptionCentering),g(2),Et(e._displayedPageSizeOptions)}}function jee(t,n){if(t&1&&(m(0,"div",15),f(1),h()),t&2){let e=x(2);g(),N(e.pageSize)}}function Hee(t,n){if(t&1&&(m(0,"div",3)(1,"div",13),f(2),h(),V(3,Bee,6,7,"mat-form-field",14),V(4,jee,2,1,"div",15),h()),t&2){let e=x();g(),X("id",e._pageSizeLabelId),g(),fe(" ",e._intl.itemsPerPageLabel," "),g(),B(e._displayedPageSizeOptions.length>1?3:-1),g(),B(e._displayedPageSizeOptions.length<=1?4:-1)}}function zee(t,n){if(t&1){let e=q();m(0,"button",19),S("click",function(){k(e);let r=x();return T(r._buttonClicked(0,r._previousButtonsDisabled()))}),ii(),m(1,"svg",8),M(2,"path",20),h()()}if(t&2){let e=x();v("matTooltip",e._intl.firstPageLabel)("matTooltipDisabled",e._previousButtonsDisabled())("disabled",e._previousButtonsDisabled())("tabindex",e._previousButtonsDisabled()?-1:null),X("aria-label",e._intl.firstPageLabel)}}function Uee(t,n){if(t&1){let e=q();m(0,"button",21),S("click",function(){k(e);let r=x();return T(r._buttonClicked(r.getNumberOfPages()-1,r._nextButtonsDisabled()))}),ii(),m(1,"svg",8),M(2,"path",22),h()()}if(t&2){let e=x();v("matTooltip",e._intl.lastPageLabel)("matTooltipDisabled",e._nextButtonsDisabled())("disabled",e._nextButtonsDisabled())("tabindex",e._nextButtonsDisabled()?-1:null),X("aria-label",e._intl.lastPageLabel)}}var Pc=(()=>{class t{changes=new z;itemsPerPageLabel="Items per page:";nextPageLabel="Next page";previousPageLabel="Previous page";firstPageLabel="First page";lastPageLabel="Last page";getRangeLabel=(e,i,r)=>{if(r==0||i==0)return`0 of ${r}`;r=Math.max(r,0);let o=e*i,a=o{class t{_intl=u(Pc);_changeDetectorRef=u(ye);_formFieldAppearance;_pageSizeLabelId=u(et).getId("mat-paginator-page-size-label-");_intlChanges;_isInitialized=!1;_initializedStream=new as(1);color;get pageIndex(){return this._pageIndex}set pageIndex(e){this._pageIndex=Math.max(e||0,0),this._changeDetectorRef.markForCheck()}_pageIndex=0;get length(){return this._length}set length(e){this._length=e||0,this._changeDetectorRef.markForCheck()}_length=0;get pageSize(){return this._pageSize}set pageSize(e){this._pageSize=Math.max(e||0,0),this._updateDisplayedPageSizeOptions()}_pageSize;get pageSizeOptions(){return this._pageSizeOptions}set pageSizeOptions(e){this._pageSizeOptions=(e||[]).map(i=>ht(i,0)),this._updateDisplayedPageSizeOptions()}_pageSizeOptions=[];hidePageSize=!1;showFirstLastButtons=!1;selectConfig={};disabled=!1;page=new U;_displayedPageSizeOptions;initialized=this._initializedStream;constructor(){let e=this._intl,i=u(qee,{optional:!0});if(this._intlChanges=e.changes.subscribe(()=>this._changeDetectorRef.markForCheck()),i){let{pageSize:r,pageSizeOptions:o,hidePageSize:a,showFirstLastButtons:s}=i;r!=null&&(this._pageSize=r),o!=null&&(this._pageSizeOptions=o),a!=null&&(this.hidePageSize=a),s!=null&&(this.showFirstLastButtons=s)}this._formFieldAppearance=i?.formFieldAppearance||"outline"}ngOnInit(){this._isInitialized=!0,this._updateDisplayedPageSizeOptions(),this._initializedStream.next()}ngOnDestroy(){this._initializedStream.complete(),this._intlChanges.unsubscribe()}nextPage(){this.hasNextPage()&&this._navigate(this.pageIndex+1)}previousPage(){this.hasPreviousPage()&&this._navigate(this.pageIndex-1)}firstPage(){this.hasPreviousPage()&&this._navigate(0)}lastPage(){this.hasNextPage()&&this._navigate(this.getNumberOfPages()-1)}hasPreviousPage(){return this.pageIndex>=1&&this.pageSize!=0}hasNextPage(){let e=this.getNumberOfPages()-1;return this.pageIndexe-i),this._changeDetectorRef.markForCheck())}_emitPageEvent(e){this.page.emit({previousPageIndex:e,pageIndex:this.pageIndex,pageSize:this.pageSize,length:this.length})}_navigate(e){let i=this.pageIndex;e!==i&&(this.pageIndex=e,this._emitPageEvent(i))}_buttonClicked(e,i){i||this._navigate(e)}static \u0275fac=function(i){return new(i||t)};static \u0275cmp=E({type:t,selectors:[["mat-paginator"]],hostAttrs:["role","group",1,"mat-mdc-paginator"],inputs:{color:"color",pageIndex:[2,"pageIndex","pageIndex",ht],length:[2,"length","length",ht],pageSize:[2,"pageSize","pageSize",ht],pageSizeOptions:"pageSizeOptions",hidePageSize:[2,"hidePageSize","hidePageSize",L],showFirstLastButtons:[2,"showFirstLastButtons","showFirstLastButtons",L],selectConfig:"selectConfig",disabled:[2,"disabled","disabled",L]},outputs:{page:"page"},exportAs:["matPaginator"],decls:14,vars:14,consts:[["selectRef",""],[1,"mat-mdc-paginator-outer-container"],[1,"mat-mdc-paginator-container"],[1,"mat-mdc-paginator-page-size"],[1,"mat-mdc-paginator-range-actions"],["aria-live","polite",1,"mat-mdc-paginator-range-label"],["matIconButton","","type","button","matTooltipPosition","above","disabledInteractive","",1,"mat-mdc-paginator-navigation-first",3,"matTooltip","matTooltipDisabled","disabled","tabindex"],["matIconButton","","type","button","matTooltipPosition","above","disabledInteractive","",1,"mat-mdc-paginator-navigation-previous",3,"click","matTooltip","matTooltipDisabled","disabled","tabindex"],["viewBox","0 0 24 24","focusable","false","aria-hidden","true",1,"mat-mdc-paginator-icon"],["d","M15.41 7.41L14 6l-6 6 6 6 1.41-1.41L10.83 12z"],["matIconButton","","type","button","matTooltipPosition","above","disabledInteractive","",1,"mat-mdc-paginator-navigation-next",3,"click","matTooltip","matTooltipDisabled","disabled","tabindex"],["d","M10 6L8.59 7.41 13.17 12l-4.58 4.59L10 18l6-6z"],["matIconButton","","type","button","matTooltipPosition","above","disabledInteractive","",1,"mat-mdc-paginator-navigation-last",3,"matTooltip","matTooltipDisabled","disabled","tabindex"],[1,"mat-mdc-paginator-page-size-label"],[1,"mat-mdc-paginator-page-size-select",3,"appearance","color"],[1,"mat-mdc-paginator-page-size-value"],["hideSingleSelectionIndicator","",3,"selectionChange","value","disabled","aria-labelledby","panelClass","disableOptionCentering"],[3,"value"],[1,"mat-mdc-paginator-touch-target",3,"click"],["matIconButton","","type","button","matTooltipPosition","above","disabledInteractive","",1,"mat-mdc-paginator-navigation-first",3,"click","matTooltip","matTooltipDisabled","disabled","tabindex"],["d","M18.41 16.59L13.82 12l4.59-4.59L17 6l-6 6 6 6zM6 6h2v12H6z"],["matIconButton","","type","button","matTooltipPosition","above","disabledInteractive","",1,"mat-mdc-paginator-navigation-last",3,"click","matTooltip","matTooltipDisabled","disabled","tabindex"],["d","M5.59 7.41L10.18 12l-4.59 4.59L7 18l6-6-6-6zM16 6h2v12h-2z"]],template:function(i,r){i&1&&(m(0,"div",1)(1,"div",2),V(2,Hee,5,4,"div",3),m(3,"div",4)(4,"div",5),f(5),h(),V(6,zee,3,5,"button",6),m(7,"button",7),S("click",function(){return r._buttonClicked(r.pageIndex-1,r._previousButtonsDisabled())}),ii(),m(8,"svg",8),M(9,"path",9),h()(),Qo(),m(10,"button",10),S("click",function(){return r._buttonClicked(r.pageIndex+1,r._nextButtonsDisabled())}),ii(),m(11,"svg",8),M(12,"path",11),h()(),V(13,Uee,3,5,"button",12),h()()()),i&2&&(g(2),B(r.hidePageSize?-1:2),g(3),fe(" ",r._intl.getRangeLabel(r.pageIndex,r.pageSize,r.length)," "),g(),B(r.showFirstLastButtons?6:-1),g(),v("matTooltip",r._intl.previousPageLabel)("matTooltipDisabled",r._previousButtonsDisabled())("disabled",r._previousButtonsDisabled())("tabindex",r._previousButtonsDisabled()?-1:null),X("aria-label",r._intl.previousPageLabel),g(3),v("matTooltip",r._intl.nextPageLabel)("matTooltipDisabled",r._nextButtonsDisabled())("disabled",r._nextButtonsDisabled())("tabindex",r._nextButtonsDisabled()?-1:null),X("aria-label",r._intl.nextPageLabel),g(3),B(r.showFirstLastButtons?13:-1))},dependencies:[Xt,Ja,Sn,Ft,ur],styles:[`.mat-mdc-paginator{display:block;-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;color:var(--mat-paginator-container-text-color, var(--mat-sys-on-surface));background-color:var(--mat-paginator-container-background-color, var(--mat-sys-surface));font-family:var(--mat-paginator-container-text-font, var(--mat-sys-body-small-font));line-height:var(--mat-paginator-container-text-line-height, var(--mat-sys-body-small-line-height));font-size:var(--mat-paginator-container-text-size, var(--mat-sys-body-small-size));font-weight:var(--mat-paginator-container-text-weight, var(--mat-sys-body-small-weight));letter-spacing:var(--mat-paginator-container-text-tracking, var(--mat-sys-body-small-tracking));--mat-form-field-container-height: var(--mat-paginator-form-field-container-height, 40px);--mat-form-field-container-vertical-padding: var(--mat-paginator-form-field-container-vertical-padding, 8px)}.mat-mdc-paginator .mat-mdc-select-value{font-size:var(--mat-paginator-select-trigger-text-size, var(--mat-sys-body-small-size))}.mat-mdc-paginator .mat-mdc-form-field-subscript-wrapper{display:none}.mat-mdc-paginator .mat-mdc-select{line-height:1.5}.mat-mdc-paginator-outer-container{display:flex}.mat-mdc-paginator-container{display:flex;align-items:center;justify-content:flex-end;padding:0 8px;flex-wrap:wrap;width:100%;min-height:var(--mat-paginator-container-size, 56px)}.mat-mdc-paginator-page-size{display:flex;align-items:baseline;margin-right:8px}[dir=rtl] .mat-mdc-paginator-page-size{margin-right:0;margin-left:8px}.mat-mdc-paginator-page-size-label{margin:0 4px}.mat-mdc-paginator-page-size-select{margin:0 4px;width:var(--mat-paginator-page-size-select-width, 84px)}.mat-mdc-paginator-range-label{margin:0 32px 0 24px}.mat-mdc-paginator-range-actions{display:flex;align-items:center}.mat-mdc-paginator-icon{display:inline-block;width:28px;fill:var(--mat-paginator-enabled-icon-color, var(--mat-sys-on-surface-variant))}.mat-mdc-icon-button[aria-disabled] .mat-mdc-paginator-icon{fill:var(--mat-paginator-disabled-icon-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent))}[dir=rtl] .mat-mdc-paginator-icon{transform:rotate(180deg)}@media(forced-colors: active){.mat-mdc-icon-button[aria-disabled] .mat-mdc-paginator-icon,.mat-mdc-paginator-icon{fill:currentColor}.mat-mdc-paginator-range-actions .mat-mdc-icon-button{outline:solid 1px}.mat-mdc-paginator-range-actions .mat-mdc-icon-button[aria-disabled]{color:GrayText}}.mat-mdc-paginator-touch-target{display:var(--mat-paginator-touch-target-display, block);position:absolute;top:50%;left:50%;width:var(--mat-paginator-page-size-select-width, 84px);height:var(--mat-paginator-page-size-select-touch-target-height, 48px);background-color:rgba(0,0,0,0);transform:translate(-50%, -50%);cursor:pointer} +`],encapsulation:2,changeDetection:0})}return t})(),Fc=(()=>{class t{static \u0275fac=function(i){return new(i||t)};static \u0275mod=ee({type:t});static \u0275inj=J({providers:[Wee],imports:[Fe,Rc,An,mr]})}return t})();var Cg=class extends Wi{constructor(){super(...arguments),this._delegate=u(Wi)}getValidDateOrNull(n){return this.isDateInstance(n)&&this.isValid(n)?n:null}compareDatetime(n,e,i=!0){return this.compareDate(n,e)||this.getHour(n)-this.getHour(e)||i&&this.getMinute(n)-this.getMinute(e)}sameDatetime(n,e){if(n&&e){let i=this.isValid(n),r=this.isValid(e);return i&&r?!this.compareDatetime(n,e):i===r}return n===e}sameYear(n,e){return n&&e&&this.getYear(n)===this.getYear(e)}sameDay(n,e){return n&&e&&this.getDate(n)===this.getDate(e)&&this.sameMonthAndYear(n,e)}sameHour(n,e){return n&&e&&this.getHour(n)===this.getHour(e)&&this.sameDay(n,e)}sameMinute(n,e){return n&&e&&this.getMinute(n)===this.getMinute(e)&&this.sameHour(n,e)}sameMonthAndYear(n,e){if(n&&e){let i=this.isValid(n),r=this.isValid(e);return i&&r?!(this.getYear(n)-this.getYear(e)||this.getMonth(n)-this.getMonth(e)):i===r}return n===e}clone(n){return this._delegate.clone(n)}addCalendarYears(n,e){return this._delegate.addCalendarYears(n,e)}addCalendarMonths(n,e){return this._delegate.addCalendarMonths(n,e)}addCalendarDays(n,e){return this._delegate.addCalendarDays(n,e)}getYear(n){return this._delegate.getYear(n)}getMonth(n){return this._delegate.getMonth(n)}getDate(n){return this._delegate.getDate(n)}getDayOfWeek(n){return this._delegate.getDayOfWeek(n)}getMonthNames(n){return this._delegate.getMonthNames(n)}getDateNames(){return this._delegate.getDateNames()}getDayOfWeekNames(n){return this._delegate.getDayOfWeekNames(n)}getYearName(n){return this._delegate.getYearName(n)}getFirstDayOfWeek(){return this._delegate.getFirstDayOfWeek()}getNumDaysInMonth(n){return this._delegate.getNumDaysInMonth(n)}createDate(n,e,i){return this._delegate.createDate(n,e,i)}today(){return this._delegate.today()}parse(n,e){return this._delegate.parse(n,e)}format(n,e){return this._delegate.format(n,e)}toIso8601(n){return this._delegate.toIso8601(n)}isDateInstance(n){return this._delegate.isDateInstance(n)}isValid(n){return this._delegate.isValid(n)}invalid(){return this._delegate.invalid()}clampDate(n,e,i){return e&&this.compareDatetime(n,e)<0?e:i&&this.compareDatetime(n,i)>0?i:n}},m3=new O("mtx-datetime-formats"),sqe=h3(24,t=>String(t)),lqe=h3(60,t=>String(t));function h3(t,n){let e=Array(t);for(let i=0;i{let n=class n{transform(i){return qi(i)?i:Q(i)}};n.\u0275fac=function(r){return new(r||n)},n.\u0275pipe=io({name:"toObservable",type:n,pure:!0});let t=n;return t})();var f3=(()=>{let n=class n{};n.\u0275fac=function(r){return new(r||n)},n.\u0275mod=ee({type:n}),n.\u0275inj=J({imports:[Je]});let t=n;return t})();function g3(t,n){let e=Array(t);for(let i=0;i{let n=class n extends Cg{constructor(){super();let i=u(Ns,{optional:!0});this.setLocale(i)}setLocale(i){super.setLocale(i)}getHour(i){return my(i)}getMinute(i){return hy(i)}isInNextMonth(i,r){let o=this.getDateInNextMonth(i);return super.sameMonthAndYear(o,r)}getWeek(i,r){return fh(i,{weekStartsOn:r})}createDatetime(i,r,o,a,s){if(r<0||r>11)throw Error(`Invalid month index "${r}". Month index has to be between 0 and 11.`);if(o<1)throw Error(`Invalid date "${o}". Date has to be greater than 0.`);if(a<0||a>23)throw Error(`Invalid hour "${a}". Hour has to be between 0 and 23.`);if(s<0||s>59)throw Error(`Invalid minute "${s}". Minute has to be between 0 and 59.`);let l=new Date(i,r,o,a,s);if(!mh(l))throw Error(`Invalid date "${o}" for month with index "${r}".`);return l}getFirstDateOfMonth(i){return pV(i)}getHourNames(){return g3(24,i=>i.toLocaleString(this.locale))}getMinuteNames(){return g3(60,i=>i.toLocaleString(this.locale))}addCalendarHours(i,r){return lV(i,r)}addCalendarMinutes(i,r){return uV(i,r)}deserialize(i){return this._delegate.deserialize(i)}getDateInNextMonth(i){return uh(i,1)}};n.\u0275fac=function(r){return new(r||n)},n.\u0275prov=R({token:n,factory:n.\u0275fac});let t=n;return t})(),Kee={parse:{dateInput:"P",monthInput:"LLLL",yearInput:"yyyy",datetimeInput:"P p",timeInput:"p"},display:{dateInput:"P",monthInput:"LLLL",yearInput:"yyyy",datetimeInput:"P p",timeInput:"p",monthYearLabel:"yyyy",dateA11yLabel:"LLLL dd, yyyy",monthYearA11yLabel:"MMMM yyyy",popupHeaderDateLabel:"ccc, dd LLL"}};function _3(t=Kee){return[{provide:Wi,useClass:WS,deps:[Ns]},{provide:Cg,useClass:Qee},{provide:m3,useValue:t}]}var Zee=["container"];function Xee(t,n){}function Jee(t,n){}var ete=["*"];function tte(t,n){if(t&1&&M(0,"formly-field",0),t&2){let e=n.$implicit;v("field",e)}}var b3=["fieldComponent"];function ite(t,n,e){if(n.id)return n.id;let i=n.type;return!i&&n.template&&(i="template"),i instanceof Vd&&(i=i.prototype.constructor.name),[t,i,n.key,e].join("_")}function bn(t){return!Nc(t.key)&&t.key!==""&&(!Array.isArray(t.key)||t.key.length>0)}function _u(t){if(!bn(t))return[];if(t._keyPath?.key!==t.key){let n=[];if(typeof t.key=="string"){let e=t.key.indexOf("[")===-1?t.key:t.key.replace(/\[(\w+)\]/g,".$1");n=e.indexOf(".")!==-1?e.split("."):[e]}else Array.isArray(t.key)?n=t.key.slice(0):n=[`${t.key}`];hr(t,"_keyPath",{key:t.key,path:n})}return t._keyPath.path.slice(0)}var wk=["required","pattern","minLength","maxLength","min","max"];function wg(t,n){let e=_u(t);if(e.length===0)return;let i=t;for(;i.parent;)i=i.parent,e=[..._u(i),...e];if(n===void 0&&t.resetOnHide){let r=e.pop(),o=e.reduce((a,s)=>a[s]||{},i.model);delete o[r];return}nte(i.model,e,n)}function nte(t,n,e){for(let i=0;i{for(let i in e)Nc(t[i])||rte(t[i])?t[i]=Lc(e[i]):ote(t[i],e[i])&&Sh(t[i],e[i])}),t}function Nc(t){return t==null}function Ex(t){return t===void 0}function rte(t){return t===""}function _k(t){return typeof t=="function"}function ote(t,n){return es(t)&&es(n)&&Object.getPrototypeOf(t)===Object.getPrototypeOf(n)&&!(Array.isArray(t)||Array.isArray(n))}function es(t){return t!=null&&typeof t=="object"}function ate(t){return!!t&&typeof t.then=="function"}function Lc(t){if(!es(t)||qi(t)||t instanceof te||t.changingThisBreaksApplicationSecurity||["RegExp","FileList","File","Blob"].indexOf(t.constructor?.name)!==-1)return t;if(t instanceof Set)return new Set(t);if(t instanceof Map)return new Map(t);if(t instanceof Uint8Array)return new Uint8Array(t);if(t instanceof Uint16Array)return new Uint16Array(t);if(t instanceof Uint32Array)return new Uint32Array(t);if(t._isAMomentObject&&_k(t.clone))return t.clone();if(t instanceof Ac)return null;if(t instanceof Date)return new Date(t.getTime());if(Array.isArray(t))return t.slice(0).map(i=>Lc(i));let n=Object.getPrototypeOf(t),e=Object.create(n);return e=Object.setPrototypeOf(e,n),Object.keys(t).reduce((i,r)=>{let o=Object.getOwnPropertyDescriptor(t,r);return o.get?Object.defineProperty(i,r,o):i[r]=Lc(t[r]),i},e)}function hr(t,n,e){Object.defineProperty(t,n,{enumerable:!1,writable:!0,configurable:!0}),t[n]=e}function v3(t,n,e){let i=[],r=()=>{i.forEach(a=>a()),i=[]},o=Zi(t,n,({firstChange:a,currentValue:s})=>{!a&&e(),r(),es(s)&&s.constructor.name==="Object"&&Object.keys(s).forEach(l=>{i.push(v3(t,[...n,l],e))})});return()=>{o.unsubscribe(),r()}}function Zi(t,n,e){t._observers||hr(t,"_observers",{});let i=t;for(let s=0;s=1&&es(i))){let{enumerable:s}=Object.getOwnPropertyDescriptor(i,r)||{enumerable:!0};Object.defineProperty(i,r,{enumerable:s,configurable:!0,get:()=>a.value,set:l=>{if(l!==a.value){let c=a.value;a.value=l,a.onChange.forEach(d=>d({previousValue:c,currentValue:l,firstChange:!1}))}}})}return{setValue(s,l=!0){if(s===a.value)return;let c=a.value;a.value=s,a.onChange.forEach(d=>{d!==e&&l&&d({previousValue:c,currentValue:s,firstChange:!1})})},unsubscribe(){a.onChange=a.onChange.filter(s=>s!==e),a.onChange.length===0&&delete t._observers[o]}}}function y3(t,n){if(n=Array.isArray(n)?n.join("."):n,!!t.fieldGroup)for(let e=0,i=t.fieldGroup.length;e{n instanceof Bd?n.injector.get(ye).markForCheck():n.markForCheck()})}function ste(t){let n=i=>i.hide||i.expressions?.hide||i.hideExpression,e=!t.resetOnHide||!n(t);if(!n(t)&&t.resetOnHide){let i=t.parent;for(;i&&!n(i);)i=i.parent;e=!i||!n(i)}return!e}function x3(){return+Tp.major>18||+Tp.major>=18&&+Tp.minor>=1}function lte(t,n){try{return Function(...n,`return ${t};`)}catch(e){console.error(e)}}function cte(t,n,e){return typeof t=="function"?t.apply(n,e):!!t}function dte(t,n=!1){let e=t.formControl,i=e._fields?e._fields.indexOf(t):-1;i!==-1&&e._fields.splice(i,1);let r=e.parent;if(!r)return;let o={emitEvent:n};if(r instanceof mk){let a=r.controls.findIndex(s=>s===e);a!==-1&&r.removeAt(a,o)}else if(r instanceof yx){let a=_u(t),s=a[a.length-1];r.get([s])===e&&r.removeControl(s,o)}e.setParent(null)}function ute(t){return t.formControl?t.formControl:t.shareFormControl===!1?null:t.form?.get(_u(t))}function C3(t,n,e=!1){if(n=n||t.formControl,n._fields||hr(n,"_fields",[]),n._fields.indexOf(t)===-1&&n._fields.push(t),!t.formControl&&n){hr(t,"formControl",n),n.setValidators(null),n.setAsyncValidators(null),t.props.disabled=!!t.props.disabled;let s=Zi(t,["props","disabled"],({firstChange:l,currentValue:c})=>{l||(c?t.formControl.disable():t.formControl.enable())});n instanceof aa&&n.registerOnDisabledChange(s.setValue)}if(!t.form||!bn(t))return;let i=t.form,r=_u(t),o=bu(t);!(Nc(n.value)&&Nc(o))&&n.value!==o&&n instanceof aa&&n.patchValue(o);for(let s=0;s{hr(n,"_hide",!!i),(!r||r&&i===!0)&&(n.props.hidden=i,n.options._hiddenFieldsForCheck.push({field:n}))}),n.hideExpression&&Zi(n,["hideExpression"],({currentValue:i})=>{n._expressions.hide=this.parseExpressions(n,"hide",typeof i=="boolean"?()=>i:i)});let e=(i,r)=>{typeof r=="string"||_k(r)?n._expressions[i]=this.parseExpressions(n,i,r):r instanceof Ne&&(n._expressions[i]={value$:r.pipe(He(o=>{this.evalExpr(n,i,o),n.options._detectChanges(n)}))})};n.expressions=n.expressions||{};for(let i of Object.keys(n.expressions))Zi(n,["expressions",i],({currentValue:r})=>{e(i,_k(r)?(...o)=>r(n,o[3]):r)});n.expressionProperties=n.expressionProperties||{};for(let i of Object.keys(n.expressionProperties))Zi(n,["expressionProperties",i],({currentValue:r})=>e(i,r))}postPopulate(n){if(!n.parent&&!n.options.checkExpressions){let e=!1;n.options.checkExpressions=(i,r)=>{if(e)return;e=!0;let o=this.checkExpressions(i,r),a=n.options;a._hiddenFieldsForCheck.sort(s=>s.field.hide?-1:1).forEach(s=>this.changeHideState(s.field,s.field.hide??s.default,!r)),a._hiddenFieldsForCheck=[],o&&this.checkExpressions(n),e=!1}}}parseExpressions(n,e,i){let r;if(n.parent&&["hide","props.disabled"].includes(e)){let a=s=>e==="hide"?s.hide:s.props.disabled;r=()=>{let s=n.parent;for(;s.parent&&!a(s);)s=s.parent;return a(s)}}i=i||(()=>!1),typeof i=="string"&&(i=lte(i,["model","formState","field"]));let o;return{callback:a=>{try{let s=cte(r?(...l)=>r(n)||i(...l):i,{field:n},[n.model,n.options.formState,n,a]);return a||o!==s&&(!es(s)||qi(s)||JSON.stringify(s)!==JSON.stringify(o))?(o=s,this.evalExpr(n,e,s),!0):!1}catch(s){throw s.message=`[Formly Error] [Expression "${e}"] ${s.message}`,s}}}}checkExpressions(n,e=!1){if(!n)return!1;let i=!1;if(n._expressions)for(let r of Object.keys(n._expressions))n._expressions[r].callback?.(e)&&(i=!0);return n.fieldGroup?.forEach(r=>this.checkExpressions(r,e)&&(i=!0)),i}changeDisabledState(n,e){n.fieldGroup&&n.fieldGroup.filter(i=>!i._expressions.hasOwnProperty("props.disabled")).forEach(i=>this.changeDisabledState(i,e)),bn(n)&&n.props.disabled!==e&&(n.props.disabled=e)}changeHideState(n,e,i){if(n.fieldGroup&&n.fieldGroup.filter(r=>r&&!r._expressions.hide).forEach(r=>this.changeHideState(r,e,i)),n.formControl&&bn(n)){hr(n,"_hide",!!(e||n.hide));let r=n.formControl;r._fields?.length>1&&Dg(r),e===!0&&(!r._fields||r._fields.every(o=>!!o._hide))?(dte(n,!0),i&&n.resetOnHide&&(wg(n,void 0),n.formControl.reset({value:void 0,disabled:n.formControl.disabled}),n.options.fieldChanges.next({value:void 0,field:n,type:"valueChanges"}),n.fieldGroup&&n.formControl instanceof mk&&(n.fieldGroup.length=0))):e===!1&&(n.resetOnHide&&!Ex(n.defaultValue)&&Ex(bu(n))&&wg(n,n.defaultValue),C3(n,void 0,!0),n.resetOnHide&&n.fieldArray&&n.fieldGroup?.length!==n.model?.length&&n.options.build(n))}n.options.fieldChanges&&n.options.fieldChanges.next({field:n,type:"hidden",value:e})}evalExpr(n,e,i){if(e.indexOf("model.")===0){let r=e.replace(/^model\./,""),o=n.fieldGroup?n:n.parent,a=n?.key===r?n.formControl:n.form.get(r);!a&&n.get(r)&&(a=n.get(r).formControl),wg({key:r,parent:o,model:n.model},i),a&&!(Nc(a.value)&&Nc(i))&&a.value!==i&&a.patchValue(i)}else{try{let r=n,o=this._evalExpressionPath(n,e),a=o.length-1;for(let s=0;sr).forEach(r=>{let o=r.match(/['|"](.*?)['|"]/);o?i.push(o[1]):i.push(...r.split(".").filter(a=>a))}),n._expressions[e]&&(n._expressions[e].paths=i),i}},yk=class{constructor(n){this.config=n,this.formId=0}prePopulate(n){let e=n.parent;this.initRootOptions(n),this.initFieldProps(n),e&&(Object.defineProperty(n,"options",{get:()=>e.options,configurable:!0}),Object.defineProperty(n,"model",{get:()=>bn(n)&&n.fieldGroup?bu(n):e.model,configurable:!0})),Object.defineProperty(n,"get",{value:i=>y3(n,i),configurable:!0}),this.getFieldComponentInstance(n).prePopulate?.(n)}onPopulate(n){this.initFieldOptions(n),this.getFieldComponentInstance(n).onPopulate?.(n),n.fieldGroup&&n.fieldGroup.forEach((e,i)=>{e&&(Object.defineProperty(e,"parent",{get:()=>n,configurable:!0}),Object.defineProperty(e,"index",{get:()=>i,configurable:!0})),this.formId++})}postPopulate(n){this.getFieldComponentInstance(n).postPopulate?.(n)}initFieldProps(n){n.props??=n.templateOptions,Object.defineProperty(n,"templateOptions",{get:()=>n.props,set:e=>n.props=e,configurable:!0})}initRootOptions(n){if(n.parent)return;let e=n.options;n.options.formState=n.options.formState||{},e.showError||(e.showError=this.config.extras.showError),e.fieldChanges||hr(e,"fieldChanges",new z),e._hiddenFieldsForCheck||(e._hiddenFieldsForCheck=[]),e._detectChanges=i=>{i._componentRefs&&bk(i),i.fieldGroup?.forEach(r=>r&&e._detectChanges(r))},e.detectChanges=i=>{i.options.checkExpressions?.(i),e._detectChanges(i)},e.resetModel=i=>{i=Lc(i??e._initialModel),n.model&&(Object.keys(n.model).forEach(r=>delete n.model[r]),Object.assign(n.model,i||{})),x3()||Zi(e,["parentForm","submitted"]).setValue(!1,!1),e.build(n),n.form.reset(n.model)},e.updateInitialValue=i=>e._initialModel=Lc(i??n.model),n.options.updateInitialValue()}initFieldOptions(n){Sh(n,{id:ite(`formly_${this.formId}`,n,n.index),hooks:{},modelOptions:{},validation:{messages:{}},props:!n.type||!bn(n)?{}:{label:"",placeholder:"",disabled:!1}}),this.config.extras.resetFieldOnHide&&n.resetOnHide!==!1&&(n.resetOnHide=!0),n.type!=="formly-template"&&(n.template||n.expressions?.template||n.expressionProperties?.template)&&(n.type="formly-template"),!n.type&&n.fieldGroup&&(n.type="formly-group"),n.type&&this.config.getMergedField(n),bn(n)&&!Ex(n.defaultValue)&&Ex(bu(n))&&!ste(n)&&wg(n,n.defaultValue),n.wrappers=n.wrappers||[]}getFieldComponentInstance(n){let e=()=>{let i=this.config.resolveFieldTypeRef(n),r=n._componentRefs?.slice(-1)[0];return r instanceof Bd&&r?.componentType===i?.componentType&&(i=r),i?.instance};return n._proxyInstance||hr(n,"_proxyInstance",new Proxy({},{get:(i,r)=>e()?.[r],set:(i,r,o)=>e()[r]=o})),n._proxyInstance}},xk=class{prePopulate(n){this.root||(this.root=n),n.parent&&Object.defineProperty(n,"form",{get:()=>n.parent.formControl,configurable:!0})}onPopulate(n){n.hasOwnProperty("fieldGroup")&&!bn(n)?hr(n,"formControl",n.form):this.addFormControl(n)}postPopulate(n){if(this.root!==n)return;if(this.root=null,this.setValidators(n)&&n.parent){let i=n.parent;for(;i;)(bn(i)||!i.parent)&&Dg(i.formControl,!0),i=i.parent}}addFormControl(n){let e=ute(n);if(!n.fieldArray){if(e){if(e instanceof aa){let i=bn(n)?bu(n):n.defaultValue;e.defaultValue=i}}else{let i={updateOn:n.modelOptions.updateOn};if(n.fieldGroup)e=new yx({},i);else{let r=bn(n)?bu(n):n.defaultValue;e=new YB({value:r,disabled:!!n.props.disabled},Me(I({},i),{initialValueIsDefault:!0}))}}C3(n,e)}}setValidators(n,e=!1){e===!1&&bn(n)&&n.props?.disabled&&(e=!0);let i=!1;if(n.fieldGroup?.forEach(r=>r&&this.setValidators(r,e)&&(i=!0)),bn(n)||!n.parent||!bn(n)&&!n.fieldGroup){let{formControl:r}=n;if(r&&(bn(n)&&r instanceof aa&&(e&&r.enabled&&(r.disable({emitEvent:!1,onlySelf:!0}),i=!0),!e&&r.disabled&&(r.enable({emitEvent:!1,onlySelf:!0}),i=!0)),r.validator===null&&this.hasValidators(n,"_validators")&&(r.setValidators(()=>{let o=Ve.compose(this.mergeValidators(n,"_validators"));return o?o(r):null}),i=!0),r.asyncValidator===null&&this.hasValidators(n,"_asyncValidators")&&(r.setAsyncValidators(()=>{let o=Ve.composeAsync(this.mergeValidators(n,"_asyncValidators"));return o?o(r):Q(null)}),i=!0),i)){Dg(r,!0);let o=r.parent;for(let a=1;a<_u(n).length;a++)o&&(Dg(o,!0),o=o.parent)}}return i}hasValidators(n,e){let i=n.formControl;return i?._fields?.length>1&&i._fields.some(r=>r[e].length>0)||n[e].length>0?!0:n.fieldGroup?.some(r=>r?.fieldGroup&&!bn(r)&&this.hasValidators(r,e))}mergeValidators(n,e){let i=[],r=n.formControl;return r?._fields?.length>1?r._fields.filter(o=>!o._hide).forEach(o=>i.push(...o[e])):n[e]&&i.push(...n[e]),n.fieldGroup&&n.fieldGroup.filter(o=>o?.fieldGroup&&!bn(o)).forEach(o=>i.push(...this.mergeValidators(o,e))),i}},Ck=class{constructor(n){this.config=n}onPopulate(n){this.initFieldValidation(n,"validators"),this.initFieldValidation(n,"asyncValidators")}initFieldValidation(n,e){let i=[];if(e==="validators"&&!(n.hasOwnProperty("fieldGroup")&&!bn(n))&&i.push(this.getPredefinedFieldValidation(n)),n[e])for(let r of Object.keys(n[e]))r==="validation"?i.push(...n[e].validation.map(o=>this.wrapNgValidatorFn(n,o))):i.push(this.wrapNgValidatorFn(n,n[e][r],r));hr(n,"_"+e,i)}getPredefinedFieldValidation(n){let e=[];return wk.forEach(i=>Zi(n,["props",i],({currentValue:r,firstChange:o})=>{e=e.filter(a=>a!==i),i==="required"&&r!=null&&typeof r!="boolean"&&console.warn(`Formly: Invalid prop 'required' of type '${typeof r}', expected 'boolean' (Field:${n.key}).`),r!=null&&r!==!1&&e.push(i),!o&&n.formControl&&Dg(n.formControl)})),i=>e.length===0?null:Ve.compose(e.map(r=>()=>{let o=n.props[r];switch(r){case"required":return Ve.required(i);case"pattern":return Ve.pattern(o)(i);case"minLength":let a=Ve.minLength(o)(i),s=this.config.getValidatorMessage("minlength")||n.validation?.messages?.minlength?"minlength":"minLength";return a?{[s]:a.minlength}:null;case"maxLength":let l=Ve.maxLength(o)(i),c=this.config.getValidatorMessage("maxlength")||n.validation?.messages?.maxlength?"maxlength":"maxLength";return l?{[c]:l.maxlength}:null;case"min":return Ve.min(o)(i);case"max":return Ve.max(o)(i);default:return null}}))(i)}wrapNgValidatorFn(n,e,i){let r;if(typeof e=="string"&&(r=Lc(this.config.getValidator(e))),typeof e=="object"&&e.name&&(r=Lc(this.config.getValidator(e.name)),e.options&&(r.options=e.options)),typeof e=="object"&&e.expression){let o=e,{expression:a}=o,s=cd(o,["expression"]);r={name:i,validation:a,options:Object.keys(s).length>0?s:null}}return typeof e=="function"&&(r={name:i,validation:e}),a=>{let s=r.validation(a,n,r.options);return ate(s)?s.then(l=>this.handleResult(n,i?!!l:l,r)):qi(s)?s.pipe(se(l=>this.handleResult(n,i?!!l:l,r))):this.handleResult(n,i?!!s:s,r)}}handleResult(n,e,{name:i,options:r}){typeof e=="boolean"&&(e=e?null:{[i]:r||!0});let o=n.formControl;return o?._childrenErrors?.[i]?.(),es(e)&&Object.keys(e).forEach(a=>{let s=e[a].errorPath?e[a].errorPath:r?.errorPath,l=s?n.formControl.get(s):null;if(l){let c=e[a],{errorPath:d}=c,p=cd(c,["errorPath"]);l.setErrors(Me(I({},l.errors||{}),{[a]:p})),!o._childrenErrors&&hr(o,"_childrenErrors",{}),o._childrenErrors[a]=()=>{let y=l.errors||{},{[a]:_}=y,b=cd(y,[xA(a)]);l.setErrors(Object.keys(b).length===0?null:b)}}}),e}},Eg=(()=>{let n=class n{constructor(){this.field={}}set _formlyControls(i){let r=this.field;r._localFields=i.map(o=>o.control._fields||[]).flat().filter(o=>o.formControl!==this.field.formControl)}get model(){return this.field.model}get form(){return this.field.form}get options(){return this.field.options}get key(){return this.field.key}get formControl(){return this.field.formControl}get props(){return this.field.props||{}}get to(){return this.props}get showError(){return this.options.showError(this)}get id(){return this.field.id}get formState(){return this.options?.formState||{}}};n.\u0275fac=function(r){return new(r||n)},n.\u0275dir=P({type:n,viewQuery:function(r,o){if(r&1&&ie(Kn,5),r&2){let a;j(a=H())&&(o._formlyControls=a)}},inputs:{field:"field"},standalone:!1});let t=n;return t})(),mte=(()=>{let n=class n extends Eg{get template(){return this.field&&this.field.template!==this.innerHtml.template&&(this.innerHtml={template:this.field.template,content:this.props.safeHtml?this.sanitizer.bypassSecurityTrustHtml(this.field.template):this.field.template}),this.innerHtml.content}constructor(i){super(),this.sanitizer=i,this.innerHtml={}}};n.\u0275fac=function(r){return new(r||n)(be(kf))},n.\u0275cmp=E({type:n,selectors:[["formly-template"]],standalone:!1,features:[le],decls:1,vars:1,consts:[[3,"innerHtml"]],template:function(r,o){r&1&&M(0,"div",0),r&2&&v("innerHtml",o.template,rf)},encapsulation:2,changeDetection:0});let t=n;return t})(),Dk=(()=>{let n=class n{constructor(){this.types={},this.validators={},this.wrappers={},this.messages={},this.extras={checkExpressionOn:"modelChange",lazyRender:!0,resetFieldOnHide:!0,renderFormlyFieldElement:!0,showError(i){return i.formControl?.invalid&&(i.formControl?.touched||i.options.parentForm?.submitted||!!i.field.validation?.show)}},this.extensions={},this.presets={},this.extensionsByPriority={},this.componentRefs={}}addConfig(i){if(Array.isArray(i)){i.forEach(r=>this.addConfig(r));return}i.types&&i.types.forEach(r=>this.setType(r)),i.validators&&i.validators.forEach(r=>this.setValidator(r)),i.wrappers&&i.wrappers.forEach(r=>this.setWrapper(r)),i.validationMessages&&i.validationMessages.forEach(r=>this.addValidatorMessage(r.name,r.message)),i.extensions&&this.setSortedExtensions(i.extensions),i.extras&&(this.extras=I(I({},this.extras),i.extras)),i.presets&&(this.presets=I(I({},this.presets),i.presets.reduce((r,o)=>Me(I({},r),{[o.name]:o.config}),{})))}setType(i){Array.isArray(i)?i.forEach(r=>this.setType(r)):(this.types[i.name]||(this.types[i.name]={name:i.name}),["component","extends","defaultOptions","wrappers"].forEach(r=>{i.hasOwnProperty(r)&&(this.types[i.name][r]=i[r])}))}getType(i,r=!1){if(i instanceof Vd)return{component:i,name:i.prototype.constructor.name};if(!this.types[i]){if(r)throw new Error(`[Formly Error] The type "${i}" could not be found. Please make sure that is registered through the FormlyModule declaration.`);return null}return this.mergeExtendedType(i),this.types[i]}getMergedField(i={}){let r=this.getType(i.type);if(!r)return;r.defaultOptions&&Sh(i,r.defaultOptions);let o=r.extends&&this.getType(r.extends).defaultOptions;o&&Sh(i,o),i?.optionsTypes&&i.optionsTypes.forEach(s=>{let l=this.getType(s).defaultOptions;l&&Sh(i,l)});let a=this.resolveFieldTypeRef(i);a?.instance?.defaultOptions&&Sh(i,a.instance.defaultOptions),!i.wrappers&&r.wrappers&&(i.wrappers=[...r.wrappers])}resolveFieldTypeRef(i={}){let r=this.getType(i.type);if(!r||!r.component)return null;if(!this.componentRefs[r.name]){let{_viewContainerRef:o,_injector:a}=i.options;if(!o||!a)return null;let s=o.createComponent(r.component,{injector:a});this.componentRefs[r.name]=s;try{s.destroy()}catch(l){console.error(`An error occurred while destroying the Formly component type "${i.type}"`,l)}}return this.componentRefs[r.name]}clearRefs(){this.componentRefs={}}setWrapper(i){this.wrappers[i.name]=i,i.types&&i.types.forEach(r=>{this.setTypeWrapper(r,i.name)})}getWrapper(i){if(i instanceof Vd)return{component:i,name:i.prototype.constructor.name};if(!this.wrappers[i])throw new Error(`[Formly Error] The wrapper "${i}" could not be found. Please make sure that is registered through the FormlyModule declaration.`);return this.wrappers[i]}setTypeWrapper(i,r){this.types[i]||(this.types[i]={}),this.types[i].wrappers||(this.types[i].wrappers=[]),this.types[i].wrappers.indexOf(r)===-1&&this.types[i].wrappers.push(r)}setValidator(i){this.validators[i.name]=i}getValidator(i){if(!this.validators[i])throw new Error(`[Formly Error] The validator "${i}" could not be found. Please make sure that is registered through the FormlyModule declaration.`);return this.validators[i]}addValidatorMessage(i,r){this.messages[i]=r}getValidatorMessage(i){return this.messages[i]}setSortedExtensions(i){i.forEach(r=>{let o=r.priority??1;this.extensionsByPriority[o]=Me(I({},this.extensionsByPriority[o]),{[r.name]:r.extension})}),this.extensions=Object.keys(this.extensionsByPriority).map(Number).sort((r,o)=>r-o).reduce((r,o)=>I(I({},r),this.extensionsByPriority[o]),{})}mergeExtendedType(i){if(!this.types[i].extends)return;let r=this.getType(this.types[i].extends);this.types[i].component||(this.types[i].component=r.component),this.types[i].wrappers||(this.types[i].wrappers=r.wrappers)}};n.\u0275fac=function(r){return new(r||n)},n.\u0275prov=R({token:n,factory:n.\u0275fac,providedIn:"root"});let t=n;return t})();var hte=(()=>{let n=class n{};n.\u0275fac=function(r){return new(r||n)},n.\u0275prov=R({token:n,factory:n.\u0275fac});let t=n;return t})(),pte=(()=>{let n=class n{get containerRef(){return this.config.extras.renderFormlyFieldElement?this.viewContainerRef:this.hostContainerRef}get elementRef(){return this.config.extras.renderFormlyFieldElement?this._elementRef:this.componentRefs?.[0]instanceof Bd?this.componentRefs[0].location:null}constructor(i,r,o,a,s){this.config=i,this.renderer=r,this._elementRef=o,this.hostContainerRef=a,this.form=s,this.hostObservers=[],this.componentRefs=[],this.hooksObservers=[],this.detectFieldBuild=!1,this.valueChangesUnsubscribe=()=>{}}ngAfterContentInit(){this.triggerHook("afterContentInit")}ngAfterViewInit(){this.triggerHook("afterViewInit")}ngDoCheck(){this.detectFieldBuild&&this.field&&this.field.options&&this.render()}ngOnInit(){this.triggerHook("onInit")}ngOnChanges(i){this.triggerHook("onChanges",i)}ngOnDestroy(){this.resetRefs(this.field),this.hostObservers.forEach(i=>i.unsubscribe()),this.hooksObservers.forEach(i=>i()),this.valueChangesUnsubscribe(),this.triggerHook("onDestroy")}renderField(i,r,o=[]){if(this.containerRef===i&&(this.resetRefs(this.field),this.containerRef.clear(),o=this.field?.wrappers),o?.length>0){let[a,...s]=o,{component:l}=this.config.getWrapper(a),c=i.createComponent(l);this.attachComponentRef(c,r),Zi(c.instance,["fieldComponent"],({currentValue:d,previousValue:p,firstChange:_})=>{if(d){if(p&&p._lContainer===d._lContainer)return;let b=p?p.detach():null;b&&!b.destroyed?d.insert(b):this.renderField(d,r,s),!_&&c.changeDetectorRef.detectChanges()}})}else if(r?.type){let a=this.form?.templates?.find(l=>l.name===r.type),s;if(a)s=i.createEmbeddedView(a.ref,{$implicit:r});else{let{component:l}=this.config.getType(r.type,!0);s=i.createComponent(l)}this.attachComponentRef(s,r)}}triggerHook(i,r){if((i==="onInit"||i==="onChanges"&&r.field&&!r.field.firstChange)&&(this.valueChangesUnsubscribe(),this.valueChangesUnsubscribe=this.fieldChanges(this.field)),this.field?.hooks?.[i]&&(!r||r.field)){let o=this.field.hooks[i](this.field);if(qi(o)&&["onInit","afterContentInit","afterViewInit"].indexOf(i)!==-1){let a=o.subscribe();this.hooksObservers.push(()=>a.unsubscribe())}}i==="onChanges"&&r.field&&(this.resetRefs(r.field.previousValue),this.render())}attachComponentRef(i,r){this.componentRefs.push(i),r._componentRefs.push(i),i instanceof Bd&&Object.assign(i.instance,{field:r})}render(){if(this.field){if(!this.field.options){this.detectFieldBuild=!0;return}if(this.detectFieldBuild=!1,this.hostObservers.forEach(i=>i.unsubscribe()),this.hostObservers=[Zi(this.field,["hide"],({firstChange:i,currentValue:r})=>{let o=this.containerRef;this.config.extras.lazyRender===!1?(i&&this.renderField(o,this.field),(!i||i&&r)&&this.elementRef&&this.renderer.setStyle(this.elementRef.nativeElement,"display",r?"none":"")):r?(o.clear(),this.field.className&&this.renderer.removeAttribute(this.elementRef.nativeElement,"class")):(this.renderField(o,this.field),this.field.className&&this.renderer.setAttribute(this.elementRef.nativeElement,"class",this.field.className)),!i&&this.field.options.detectChanges(this.field)}),Zi(this.field,["className"],({firstChange:i,currentValue:r})=>{(!i||i&&r)&&(!this.config.extras.lazyRender||this.field.hide!==!0)&&this.elementRef&&this.renderer.setAttribute(this.elementRef.nativeElement,"class",r)})],!x3())["touched","pristine","status"].forEach(i=>this.hostObservers.push(Zi(this.field,["formControl",i],({firstChange:r})=>!r&&bk(this.field))));else if(this.field.formControl){let i=this.field.formControl.events.subscribe(()=>bk(this.field));this.hostObservers.push(i)}}}resetRefs(i){i&&(i._localFields?i._localFields=[]:hr(this.field,"_localFields",[]),i._componentRefs?i._componentRefs=i._componentRefs.filter(r=>this.componentRefs.indexOf(r)===-1):hr(this.field,"_componentRefs",[])),this.componentRefs=[]}fieldChanges(i){if(!i)return()=>{};let r=v3(i,["props"],()=>i.options.detectChanges(i)),o=[()=>{r()}];for(let s of Object.keys(i._expressions||{})){let l=Zi(i,["_expressions",s],({currentValue:c,previousValue:d})=>{d?.subscription&&(d.subscription.unsubscribe(),d.subscription=null),qi(c.value$)&&(c.subscription=c.value$.subscribe())});o.push(()=>{i._expressions[s]?.subscription&&i._expressions[s].subscription.unsubscribe(),l.unsubscribe()})}for(let s of[["focus"],["template"],["fieldGroupClassName"],["validation","show"]]){let l=Zi(i,s,({firstChange:c})=>!c&&i.options.detectChanges(i));o.push(()=>l.unsubscribe())}if(i.formControl&&!i.fieldGroup){let s=i.formControl,l=s.valueChanges.pipe(se(_=>(i.parsers?.map(b=>_=b(_,i)),Object.is(_,i.formControl.value)||i.formControl.setValue(_),_)),Nn((_,b)=>!(_!==b||Array.isArray(_)||es(_))));s.value!==bu(i)&&(l=l.pipe(Ue(s.value)));let{updateOn:c,debounce:d}=i.modelOptions;(!c||c==="change")&&d?.default>0&&(l=l.pipe(Dt(d.default)));let p=l.subscribe(_=>{s._fields?.length>1&&s instanceof aa&&s.patchValue(_,{emitEvent:!1,onlySelf:!0}),bn(i)&&wg(i,_),i.options.fieldChanges.next({value:_,field:i,type:"valueChanges"})});o.push(()=>p.unsubscribe())}let a=[];return Zi(i,["_localFields"],({currentValue:s})=>{a.forEach(l=>l()),a=(s||[]).map(l=>this.fieldChanges(l))}),()=>{o.forEach(s=>s()),a.forEach(s=>s())}}};n.\u0275fac=function(r){return new(r||n)(be(Dk),be(ze),be(Y),be(st),be(hte,8))},n.\u0275cmp=E({type:n,selectors:[["formly-field"]],viewQuery:function(r,o){if(r&1&&ie(Zee,7,st),r&2){let a;j(a=H())&&(o.viewContainerRef=a.first)}},inputs:{field:"field"},features:[Oe],decls:2,vars:0,consts:[["container",""]],template:function(r,o){r&1&&Va(0,Xee,0,0,"ng-template",null,0,Mi)},styles:["[_nghost-%COMP%]:empty{display:none}"]});let t=n;return t})(),fte=(()=>{let n=class n extends pte{};n.\u0275fac=(()=>{let i;return function(o){return(i||(i=ge(n)))(o||n)}})(),n.\u0275cmp=E({type:n,selectors:[["formly-field"]],standalone:!1,features:[le],decls:2,vars:0,consts:[["container",""]],template:function(r,o){r&1&&A(0,Jee,0,0,"ng-template",null,0,Mi)},styles:["[_nghost-%COMP%]:empty{display:none}"]});let t=n;return t})(),gte=(()=>{let n=class n extends Eg{};n.\u0275fac=(()=>{let i;return function(o){return(i||(i=ge(n)))(o||n)}})(),n.\u0275cmp=E({type:n,selectors:[["formly-group"]],hostVars:2,hostBindings:function(r,o){r&2&&at(o.field.fieldGroupClassName||"")},standalone:!1,features:[le],ngContentSelectors:ete,decls:3,vars:0,consts:[[3,"field"]],template:function(r,o){r&1&&(Ee(),Mt(0,tte,1,1,"formly-field",0,Yi),ne(2)),r&2&&Et(o.field.fieldGroup)},dependencies:[fte],encapsulation:2,changeDetection:0});let t=n;return t})(),Mg=new O("FORMLY_CONFIG");function _te(t){return{types:[{name:"formly-group",component:gte},{name:"formly-template",component:mte}],extensions:[{name:"core",extension:new yk(t),priority:-250},{name:"field-validation",extension:new Ck(t),priority:-200},{name:"field-form",extension:new xk,priority:-150},{name:"field-expression",extension:new vk,priority:-100}]}}var w3=(t=[])=>[{provide:Mg,multi:!0,useFactory:_te,deps:[Dk]},bte(t)],bte=(t=[])=>({provide:Mg,multi:!0,useFactory:()=>{let n=u(Mg,{skipSelf:!0,optional:!0});return n?(n.push(t),n):t}});var vte=(()=>{let n=class n{get props(){return this.field.props||{}}get fieldAttrElements(){return this.field?._elementRefs||[]}constructor(i,r,o){this.renderer=i,this.elementRef=r,this.uiAttributesCache={},this.uiEvents={listeners:[],events:["click","keyup","keydown","keypress","focus","blur","change","wheel"],callback:(a,s)=>{switch(a){case"focus":return this.onFocus(s);case"blur":return this.onBlur(s);case"change":return this.onChange(s);default:return this.props[a](this.field,s)}}},this.document=o}ngOnChanges(i){i.field&&(this.field.name&&this.setAttribute("name",this.field.name),this.uiEvents.listeners.forEach(r=>r()),this.uiEvents.events.forEach(r=>{(this.props?.[r]||["focus","blur","change"].indexOf(r)!==-1)&&this.uiEvents.listeners.push(this.renderer.listen(this.elementRef.nativeElement,r,o=>this.uiEvents.callback(r,o)))}),this.props?.attributes&&Zi(this.field,["props","attributes"],({currentValue:r,previousValue:o})=>{o&&Object.keys(o).forEach(a=>this.removeAttribute(a)),r&&Object.keys(r).forEach(a=>{r[a]!=null&&this.setAttribute(a,r[a])})}),this.detachElementRef(i.field.previousValue),this.attachElementRef(i.field.currentValue),this.fieldAttrElements.length===1&&(!this.id&&this.field.id&&this.setAttribute("id",this.field.id),this.focusObserver=Zi(this.field,["focus"],({currentValue:r})=>{this.toggleFocus(r)}))),i.id&&this.setAttribute("id",this.id)}ngDoCheck(){if(!this.uiAttributes){let i=this.elementRef.nativeElement;this.uiAttributes=[...wk,"tabindex","placeholder","readonly","disabled","step"].filter(r=>!i.hasAttribute||!i.hasAttribute(r))}for(let i=0;ii()),this.detachElementRef(this.field),this.focusObserver?.unsubscribe()}toggleFocus(i){let r=this.fieldAttrElements?this.fieldAttrElements[0]:null;if(!r||!r.nativeElement.focus)return;let o=!!this.document.activeElement&&this.fieldAttrElements.some(({nativeElement:a})=>this.document.activeElement===a||a.contains(this.document.activeElement));i&&!o?Promise.resolve().then(()=>r.nativeElement.focus()):!i&&o&&Promise.resolve().then(()=>r.nativeElement.blur())}onFocus(i){this.focusObserver?.setValue(!0),this.props.focus?.(this.field,i)}onBlur(i){this.focusObserver?.setValue(!1),this.props.blur?.(this.field,i)}onHostChange(i){i instanceof Event||this.onChange(i)}onChange(i){this.props.change?.(this.field,i),this.field.formControl?.markAsDirty()}attachElementRef(i){i&&(i._elementRefs?.indexOf(this.elementRef)===-1?i._elementRefs.push(this.elementRef):hr(i,"_elementRefs",[this.elementRef]))}detachElementRef(i){let r=i?._elementRefs?this.fieldAttrElements.indexOf(this.elementRef):-1;r!==-1&&i._elementRefs.splice(r,1)}setAttribute(i,r){this.renderer.setAttribute(this.elementRef.nativeElement,i,r)}removeAttribute(i){this.renderer.removeAttribute(this.elementRef.nativeElement,i)}};n.\u0275fac=function(r){return new(r||n)(be(ze),be(Y),be(_e))},n.\u0275dir=P({type:n,selectors:[["","formlyAttributes",""]],hostBindings:function(r,o){r&1&&S("change",function(s){return o.onHostChange(s)})},inputs:{field:[0,"formlyAttributes","field"],id:"id"},features:[Oe]});let t=n;return t})(),la=(()=>{let n=class n extends vte{};n.\u0275fac=(()=>{let i;return function(o){return(i||(i=ge(n)))(o||n)}})(),n.\u0275dir=P({type:n,selectors:[["","formlyAttributes",""]],hostBindings:function(r,o){r&1&&S("change",function(s){return o.onHostChange(s)})},standalone:!1,features:[le]});let t=n;return t})(),yte=(()=>{let n=class n{constructor(i){this.config=i}ngOnChanges(){let i=wk.map(r=>`templateOptions.${r}`);this.errorMessage$=it(this.field.formControl.statusChanges,this.field.options?this.field.options.fieldChanges.pipe(ce(({field:r,type:o,property:a})=>r===this.field&&o==="expressionChanges"&&(a.indexOf("validation")!==-1||i.indexOf(a)!==-1))):Q(null)).pipe(Ue(null),je(()=>qi(this.errorMessage)?this.errorMessage:Q(this.errorMessage)))}get errorMessage(){let i=this.field.formControl;for(let r in i.errors)if(i.errors.hasOwnProperty(r)){let o=this.config.getValidatorMessage(r);if(es(i.errors[r])){if(i.errors[r].errorPath)return;i.errors[r].message&&(o=i.errors[r].message)}return this.field.validation?.messages?.[r]&&(o=this.field.validation.messages[r]),this.field.validators?.[r]?.message&&(o=this.field.validators[r].message),this.field.asyncValidators?.[r]?.message&&(o=this.field.asyncValidators[r].message),typeof o=="function"?o(i.errors[r],this.field):o}}};n.\u0275fac=function(r){return new(r||n)(be(Dk))},n.\u0275cmp=E({type:n,selectors:[["formly-validation-message"]],inputs:{field:"field"},features:[Oe],decls:2,vars:3,template:function(r,o){r&1&&(f(0),me(1,"async")),r&2&&N(Re(1,1,o.errorMessage$))},dependencies:[cn],encapsulation:2,changeDetection:0});let t=n;return t})(),D3=(()=>{let n=class n extends yte{};n.\u0275fac=(()=>{let i;return function(o){return(i||(i=ge(n)))(o||n)}})(),n.\u0275cmp=E({type:n,selectors:[["formly-validation-message"]],standalone:!1,features:[le],decls:2,vars:3,template:function(r,o){r&1&&(f(0),me(1,"async")),r&2&&N(Re(1,1,o.errorMessage$))},dependencies:[cn],encapsulation:2,changeDetection:0});let t=n;return t})();var Sg=(()=>{let n=class n extends Eg{set _formlyControls(i){}set _staticContent(i){this.fieldComponent=i}};n.\u0275fac=(()=>{let i;return function(o){return(i||(i=ge(n)))(o||n)}})(),n.\u0275dir=P({type:n,viewQuery:function(r,o){if(r&1&&(ie(b3,5,st),ie(b3,7,st)),r&2){let a;j(a=H())&&(o.fieldComponent=a.first),j(a=H())&&(o._staticContent=a.first)}},standalone:!1,features:[le]});let t=n;return t})();var kg=t=>({field:t}),E3=t=>({content:t});function xte(t,n){t&1&&(m(0,"span",9),f(1,"*"),h())}function Cte(t,n){if(t&1&&(m(0,"mat-label"),f(1),V(2,xte,2,0,"span",9),h()),t&2){let e=x();g(),fe(" ",e.props.label," "),g(),B(e.props.required&&e.props.hideRequiredMarker!==!0?2:-1)}}function wte(t,n){if(t&1&&qe(0,3),t&2){let e=x();v("ngTemplateOutlet",e.props.textPrefix)("ngTemplateOutletContext",Wt(2,kg,e.field))}}function Dte(t,n){if(t&1&&qe(0,4),t&2){let e=x();v("ngTemplateOutlet",e.props.prefix)("ngTemplateOutletContext",Wt(2,kg,e.field))}}function Mte(t,n){if(t&1&&qe(0,5),t&2){let e=x();v("ngTemplateOutlet",e.props.textSuffix)("ngTemplateOutletContext",Wt(2,kg,e.field))}}function Ete(t,n){if(t&1&&qe(0,6),t&2){let e=x();v("ngTemplateOutlet",e.props.suffix)("ngTemplateOutletContext",Wt(2,kg,e.field))}}function Ste(t,n){if(t&1&&(m(0,"mat-hint"),qe(1,10),h()),t&2){x();let e=Te(13);g(),v("ngTemplateOutlet",e)("ngTemplateOutletContext",Wt(2,E3,n))}}function kte(t,n){if(t&1&&(m(0,"mat-hint",8),qe(1,10),h()),t&2){x();let e=Te(13);g(),v("ngTemplateOutlet",e)("ngTemplateOutletContext",Wt(2,E3,n))}}function Tte(t,n){if(t&1&&(lt(0),f(1),ot()),t&2){let e=x().content;g(),N(e)}}function Ite(t,n){if(t&1&&qe(0,10),t&2){let e=x().content,i=x();v("ngTemplateOutlet",e)("ngTemplateOutletContext",Wt(2,kg,i.field))}}function Ate(t,n){if(t&1&&V(0,Tte,2,1,"ng-container")(1,Ite,1,4,"ng-container",10),t&2){let e=n.content;B(e.createEmbeddedView?1:0)}}var Ote=["matPrefix"],Rte=["matTextPrefix"],Pte=["matSuffix"],Fte=["matTextSuffix"],Nte=(()=>{let n=class n extends Sg{constructor(i,r,o){super(),this.renderer=i,this.elementRef=r,this.focusMonitor=o}ngOnInit(){hr(this.field,"_formField",this.formField),this.focusMonitor.monitor(this.elementRef,!0).subscribe(i=>{!i&&this.field.focus&&(this.field.focus=!1)})}ngAfterViewInit(){if(this.formField.appearance!=="outline"&&this.props.hideFieldUnderline===!0){let i=this.formField._elementRef.nativeElement.querySelector(".mat-form-field-underline");i&&this.renderer.removeChild(i.parentNode,i)}}ngOnDestroy(){delete this.field._formField,this.focusMonitor.stopMonitoring(this.elementRef)}};n.\u0275fac=function(r){return new(r||n)(be(ze),be(Y),be(oi))},n.\u0275cmp=E({type:n,selectors:[["formly-wrapper-mat-form-field"]],viewQuery:function(r,o){if(r&1&&ie(Xt,7),r&2){let a;j(a=H())&&(o.formField=a.first)}},standalone:!1,features:[le],decls:14,vars:13,consts:[["fieldComponent",""],["stringOrTemplate",""],[3,"hideRequiredMarker","floatLabel","appearance","subscriptSizing","color"],["matTextPrefix","",3,"ngTemplateOutlet","ngTemplateOutletContext"],["matPrefix","",3,"ngTemplateOutlet","ngTemplateOutletContext"],["matTextSuffix","",3,"ngTemplateOutlet","ngTemplateOutletContext"],["matSuffix","",3,"ngTemplateOutlet","ngTemplateOutletContext"],[3,"field"],["align","end"],["aria-hidden","true",1,"mat-form-field-required-marker","mat-mdc-form-field-required-marker"],[3,"ngTemplateOutlet","ngTemplateOutletContext"]],template:function(r,o){if(r&1&&(m(0,"mat-form-field",2),qe(1,null,0),V(3,Cte,3,2,"mat-label"),V(4,wte,1,4,"ng-container",3),V(5,Dte,1,4,"ng-container",4),V(6,Mte,1,4,"ng-container",5),V(7,Ete,1,4,"ng-container",6),m(8,"mat-error"),M(9,"formly-validation-message",7),h(),V(10,Ste,2,4,"mat-hint"),V(11,kte,2,4,"mat-hint",8),h(),A(12,Ate,2,1,"ng-template",null,1,Mi)),r&2){let a,s;v("hideRequiredMarker",!0)("floatLabel",o.props.floatLabel)("appearance",o.props.appearance)("subscriptSizing",o.props.subscriptSizing)("color",o.props.color??"primary"),g(3),B(o.props.label&&o.props.hideLabel!==!0?3:-1),g(),B(o.props.textPrefix?4:-1),g(),B(o.props.prefix?5:-1),g(),B(o.props.textSuffix?6:-1),g(),B(o.props.suffix?7:-1),g(2),v("field",o.field),g(),B((a=o.props.description||o.props.hintStart)?10:-1,a),g(),B((s=o.props.hintEnd)?11:-1,s)}},dependencies:[$n,Xt,gi,ag,Ao,uu,Qa,D3],styles:[`formly-wrapper-mat-form-field .mat-mdc-form-field,formly-wrapper-mat-form-field .mat-form-field{width:100%} +`],encapsulation:2});let t=n;return t})();function S3(){return{wrappers:[{name:"form-field",component:Nte}]}}var uo=(()=>{let n=class n extends Eg{constructor(){super(...arguments),this.errorStateMatcher={isErrorState:()=>this.field&&this.showError},this.stateChanges=new z,this._errorState=!1,this._focused=!1}set matPrefix(i){i&&(this.props.prefix=i)}set matTextPrefix(i){i&&(this.props.textPrefix=i)}set matSuffix(i){i&&(this.props.suffix=i)}set matTextSuffix(i){i&&(this.props.textSuffix=i)}set _controls(i){this.attachControl(i.length===1?i.first:this)}ngOnDestroy(){delete this.formField?._control,this.stateChanges.complete()}setDescribedByIds(i){}onContainerClick(i){this.field.focus=!0,this.stateChanges.next()}get errorState(){let i=this.options.showError(this);return i!==this._errorState&&(this._errorState=i,this.stateChanges.next()),i}get controlType(){if(this.props.type)return this.props.type;let i=this.field.type;return i instanceof Vd?i.prototype.constructor.name:i}get focused(){let i=!!this.field.focus&&!this.disabled;return i!==this._focused&&(this._focused=i,this.stateChanges.next()),i}get disabled(){return!!this.props.disabled}get required(){return!!this.props.required}get placeholder(){return this.props.placeholder||""}get shouldPlaceholderFloat(){return this.shouldLabelFloat}get value(){return this.formControl?.value}set value(i){this.formControl?.patchValue(i)}get ngControl(){return this.formControl}get empty(){return this.value==null||this.value===""}get shouldLabelFloat(){return this.focused||!this.empty}get formField(){return this.field?._formField}attachControl(i){if(this.formField&&i!==this.formField._control){this.formField._control=i;let r=i?.ngControl;r?.valueAccessor?.hasOwnProperty("_formField")&&(r.valueAccessor._formField=this.formField),r?.valueAccessor?.hasOwnProperty("_parentFormField")&&(r.valueAccessor._parentFormField=this.formField),["prefix","suffix","textPrefix","textSuffix"].forEach(a=>Zi(this.field,["props",a],({currentValue:s})=>s&&Promise.resolve().then(()=>{this.options.detectChanges(this.field)})));let o=i.setDescribedByIds.bind(i);i.setDescribedByIds=a=>{setTimeout(()=>o(a))}}}};n.\u0275fac=(()=>{let i;return function(o){return(i||(i=ge(n)))(o||n)}})(),n.\u0275dir=P({type:n,viewQuery:function(r,o){if(r&1&&(ie(Ote,5),ie(Rte,5),ie(Pte,5),ie(Fte,5),ie(Ka,5)),r&2){let a;j(a=H())&&(o.matPrefix=a.first),j(a=H())&&(o.matTextPrefix=a.first),j(a=H())&&(o.matSuffix=a.first),j(a=H())&&(o.matTextSuffix=a.first),j(a=H())&&(o._controls=a)}},standalone:!1,features:[le]});let t=n;return t})();var k3=(()=>{class t{static \u0275fac=function(i){return new(i||t)};static \u0275cmp=E({type:t,selectors:[["ng-component"]],hostAttrs:["cdk-text-field-style-loader",""],decls:0,vars:0,template:function(i,r){},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 t})(),Lte={passive:!0},T3=(()=>{class t{_platform=u(Ye);_ngZone=u(ae);_renderer=u(hn).createRenderer(null,null);_styleLoader=u(ft);_monitoredElements=new Map;constructor(){}monitor(e){if(!this._platform.isBrowser)return zi;this._styleLoader.load(k3);let i=Wr(e),r=this._monitoredElements.get(i);if(r)return r.subject;let o=new z,a="cdk-text-field-autofilled",s=c=>{c.animationName==="cdk-text-field-autofill-start"&&!i.classList.contains(a)?(i.classList.add(a),this._ngZone.run(()=>o.next({target:c.target,isAutofilled:!0}))):c.animationName==="cdk-text-field-autofill-end"&&i.classList.contains(a)&&(i.classList.remove(a),this._ngZone.run(()=>o.next({target:c.target,isAutofilled:!1})))},l=this._ngZone.runOutsideAngular(()=>(i.classList.add("cdk-text-field-autofill-monitored"),this._renderer.listen(i,"animationstart",s,Lte)));return this._monitoredElements.set(i,{subject:o,unlisten:l}),o}stopMonitoring(e){let i=Wr(e),r=this._monitoredElements.get(i);r&&(r.unlisten(),r.subject.complete(),i.classList.remove("cdk-text-field-autofill-monitored"),i.classList.remove("cdk-text-field-autofilled"),this._monitoredElements.delete(i))}ngOnDestroy(){this._monitoredElements.forEach((e,i)=>this.stopMonitoring(i))}static \u0275fac=function(i){return new(i||t)};static \u0275prov=R({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();var I3=(()=>{class t{_elementRef=u(Y);_platform=u(Ye);_ngZone=u(ae);_renderer=u(ze);_resizeEvents=new z;_previousValue;_initialHeight;_destroyed=new z;_listenerCleanups;_minRows;_maxRows;_enabled=!0;_previousMinRows=-1;_textareaElement;get minRows(){return this._minRows}set minRows(e){this._minRows=Gn(e),this._setMinHeight()}get maxRows(){return this._maxRows}set maxRows(e){this._maxRows=Gn(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=u(_e);_hasFocus;_isViewInited=!1;constructor(){u(ft).load(k3),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(Xl(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),i=e.style;e.rows=1,i.position="absolute",i.visibility="hidden",i.border="none",i.padding="0",i.height="",i.minHeight="",i.maxHeight="",i.top=i.bottom=i.left=i.right="auto",i.overflow="hidden",this._textareaElement.parentNode.appendChild(e),this._cachedLineHeight=e.clientHeight,e.remove(),this._setMinHeight(),this._setMaxHeight()}_measureScrollHeight(){let e=this._textareaElement,i=e.style.marginBottom||"",r=this._platform.FIREFOX,o=r&&this._hasFocus,a=r?"cdk-textarea-autosize-measuring-firefox":"cdk-textarea-autosize-measuring";o&&(e.style.marginBottom=`${e.clientHeight}px`),e.classList.add(a);let s=e.scrollHeight-4;return e.classList.remove(a),o&&(e.style.marginBottom=i),s}_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 i=this._elementRef.nativeElement,r=i.value;if(!e&&this._minRows===this._previousMinRows&&r===this._previousValue)return;let o=this._measureScrollHeight(),a=Math.max(o,this._cachedPlaceholderHeight||0);i.style.height=`${a}px`,this._ngZone.runOutsideAngular(()=>{typeof requestAnimationFrame<"u"?requestAnimationFrame(()=>this._scrollToCaretPosition(i)):setTimeout(()=>this._scrollToCaretPosition(i))}),this._previousValue=r,this._previousMinRows=this._minRows}reset(){this._initialHeight!==void 0&&(this._textareaElement.style.height=this._initialHeight)}_noopInputHandler(){}_scrollToCaretPosition(e){let{selectionStart:i,selectionEnd:r}=e;!this._destroyed.isStopped&&this._hasFocus&&e.setSelectionRange(i,r)}static \u0275fac=function(i){return new(i||t)};static \u0275dir=P({type:t,selectors:[["textarea","cdkTextareaAutosize",""]],hostAttrs:["rows","1",1,"cdk-textarea-autosize"],hostBindings:function(i,r){i&1&&S("input",function(){return r._noopInputHandler()})},inputs:{minRows:[0,"cdkAutosizeMinRows","minRows"],maxRows:[0,"cdkAutosizeMaxRows","maxRows"],enabled:[2,"cdkTextareaAutosize","enabled",L],placeholder:"placeholder"},exportAs:["cdkTextareaAutosize"]})}return t})(),A3=(()=>{class t{static \u0275fac=function(i){return new(i||t)};static \u0275mod=ee({type:t});static \u0275inj=J({})}return t})();var kh=new O("MAT_INPUT_VALUE_ACCESSOR");var Bte=["button","checkbox","file","hidden","image","radio","range","reset","submit"],jte=new O("MAT_INPUT_CONFIG"),Ci=(()=>{class t{_elementRef=u(Y);_platform=u(Ye);ngControl=u(Kn,{optional:!0,self:!0});_autofillMonitor=u(T3);_ngZone=u(ae);_formField=u(oa,{optional:!0});_renderer=u(ze);_uid=u(et).getId("mat-input-");_previousNativeValue;_inputValueAccessor;_signalBasedValueAccessor;_previousPlaceholder;_errorStateTracker;_config=u(jte,{optional:!0});_cleanupIosKeyup;_cleanupWebkitWheel;_isServer;_isNativeSelect;_isTextarea;_isInFormField;focused=!1;stateChanges=new z;controlType="mat-input";autofilled=!1;get disabled(){return this._disabled}set disabled(e){this._disabled=Vi(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(Ve.required)??!1}set required(e){this._required=Vi(e)}_required;get type(){return this._type}set type(e){this._type=e||"text",this._validateType(),!this._isTextarea&&OS().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=Vi(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=>OS().has(e));constructor(){let e=u(Oc,{optional:!0}),i=u(nn,{optional:!0}),r=u(kl),o=u(kh,{optional:!0,self:!0}),a=this._elementRef.nativeElement,s=a.nodeName.toLowerCase();o?bs(o.value)?this._signalBasedValueAccessor=o:this._inputValueAccessor=o:this._inputValueAccessor=a,this._previousNativeValue=this.value,this.id=this.id,this._platform.IOS&&this._ngZone.runOutsideAngular(()=>{this._cleanupIosKeyup=this._renderer.listen(a,"keyup",this._iOSKeyupListener)}),this._errorStateTracker=new Sl(r,this.ngControl,i,e,this.stateChanges),this._isServer=!this._platform.isBrowser,this._isNativeSelect=s==="select",this._isTextarea=s==="textarea",this._isInFormField=!!this._formField,this.disabledInteractive=this._config?.disabledInteractive||!1,this._isNativeSelect&&(this.controlType=a.multiple?"mat-native-select-multiple":"mat-native-select"),this._signalBasedValueAccessor&&zr(()=>{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 i=this._elementRef.nativeElement;i.type==="number"?(i.type="text",i.setSelectionRange(0,0),i.type="number"):i.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 i=this._elementRef.nativeElement;this._previousPlaceholder=e,e?i.setAttribute("placeholder",e):i.removeAttribute("placeholder")}}_getPlaceholder(){return this.placeholder||null}_validateType(){Bte.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,i=e.options[0];return this.focused||e.multiple||!this.empty||!!(e.selectedIndex>-1&&i&&i.label)}else return this.focused&&!this.disabled||!this.empty}get describedByIds(){return this._elementRef.nativeElement.getAttribute("aria-describedby")?.split(" ")||[]}setDescribedByIds(e){let i=this._elementRef.nativeElement;e.length?i.setAttribute("aria-describedby",e.join(" ")):i.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 i=e.target;!i.value&&i.selectionStart===0&&i.selectionEnd===0&&(i.setSelectionRange(1,1),i.setSelectionRange(0,0))};_getReadonlyAttribute(){return this._isNativeSelect?null:this.readonly||this.disabled&&this.disabledInteractive?"true":null}static \u0275fac=function(i){return new(i||t)};static \u0275dir=P({type:t,selectors:[["input","matInput",""],["textarea","matInput",""],["select","matNativeControl",""],["input","matNativeControl",""],["textarea","matNativeControl",""]],hostAttrs:[1,"mat-mdc-input-element"],hostVars:21,hostBindings:function(i,r){i&1&&S("focus",function(){return r._focusChanged(!0)})("blur",function(){return r._focusChanged(!1)})("input",function(){return r._onInput()}),i&2&&(pi("id",r.id)("disabled",r.disabled&&!r.disabledInteractive)("required",r.required),X("name",r.name||null)("readonly",r._getReadonlyAttribute())("aria-disabled",r.disabled&&r.disabledInteractive?"true":null)("aria-invalid",r.empty&&r.required?null:r.errorState)("aria-required",r.required)("id",r.id),G("mat-input-server",r._isServer)("mat-mdc-form-field-textarea-control",r._isInFormField&&r._isTextarea)("mat-mdc-form-field-input-control",r._isInFormField)("mat-mdc-input-disabled-interactive",r.disabledInteractive)("mdc-text-field__input",r._isInFormField)("mat-mdc-native-select-inline",r._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",L]},exportAs:["matInput"],features:[Ce([{provide:Ka,useExisting:t}]),Oe]})}return t})(),Bi=(()=>{class t{static \u0275fac=function(i){return new(i||t)};static \u0275mod=ee({type:t});static \u0275inj=J({imports:[De,ai,ai,A3,De]})}return t})();function Hte(t,n){if(t&1&&M(0,"input",0),t&2){let e=x();v("id",e.id)("name",e.field.name)("type",e.type||"text")("readonly",e.props.readonly)("required",e.required)("errorStateMatcher",e.errorStateMatcher)("formControl",e.formControl)("formlyAttributes",e.field)("tabIndex",e.props.tabindex)("placeholder",e.props.placeholder)}}function zte(t,n){if(t&1&&M(0,"input",1),t&2){let e=x();v("id",e.id)("name",e.field.name)("readonly",e.props.readonly)("required",e.required)("errorStateMatcher",e.errorStateMatcher)("formControl",e.formControl)("formlyAttributes",e.field)("tabIndex",e.props.tabindex)("placeholder",e.props.placeholder)}}var Ute=(()=>{let n=class n extends uo{get type(){return this.props.type||"text"}};n.\u0275fac=(()=>{let i;return function(o){return(i||(i=ge(n)))(o||n)}})(),n.\u0275cmp=E({type:n,selectors:[["formly-field-mat-input"]],standalone:!1,features:[le],decls:2,vars:1,consts:[["matInput","",3,"id","name","type","readonly","required","errorStateMatcher","formControl","formlyAttributes","tabIndex","placeholder"],["matInput","","type","number",3,"id","name","readonly","required","errorStateMatcher","formControl","formlyAttributes","tabIndex","placeholder"]],template:function(r,o){r&1&&V(0,Hte,1,10,"input",0)(1,zte,1,9,"input",1),r&2&&B(o.type!=="number"?0:1)},dependencies:[di,gu,Pt,Fo,Po,Ci,la],encapsulation:2,changeDetection:0});let t=n;return t})();function O3(){return{types:[{name:"input",component:Ute,wrappers:["form-field"]},{name:"string",extends:"input"},{name:"number",extends:"input",defaultOptions:{props:{type:"number"}}},{name:"integer",extends:"input",defaultOptions:{props:{type:"number"}}}]}}var $te=(()=>{let n=class n extends uo{constructor(){super(...arguments),this.defaultOptions={props:{cols:1,rows:1}}}};n.\u0275fac=(()=>{let i;return function(o){return(i||(i=ge(n)))(o||n)}})(),n.\u0275cmp=E({type:n,selectors:[["formly-field-mat-textarea"]],standalone:!1,features:[Ce([{provide:kh,useExisting:n}]),le],decls:1,vars:16,consts:[["matInput","",3,"id","name","readonly","required","formControl","errorStateMatcher","cols","rows","formlyAttributes","placeholder","tabindex","cdkTextareaAutosize","cdkAutosizeMinRows","cdkAutosizeMaxRows"]],template:function(r,o){r&1&&M(0,"textarea",0),r&2&&(G("cdk-textarea-autosize",o.props.autosize),v("id",o.id)("name",o.field.name)("readonly",o.props.readonly)("required",o.required)("formControl",o.formControl)("errorStateMatcher",o.errorStateMatcher)("cols",o.props.cols)("rows",o.props.rows)("formlyAttributes",o.field)("placeholder",o.props.placeholder)("tabindex",o.props.tabindex)("cdkTextareaAutosize",o.props.autosize)("cdkAutosizeMinRows",o.props.autosizeMinRows)("cdkAutosizeMaxRows",o.props.autosizeMaxRows))},dependencies:[di,Pt,Fo,Po,Ci,I3,la],encapsulation:2,changeDetection:0});let t=n;return t})();function R3(){return{types:[{name:"textarea",component:$te,wrappers:["form-field"]}]}}var Wte=["input"],Gte=["formField"],qte=["*"],Sx=class{source;value;constructor(n,e){this.source=n,this.value=e}},Yte={provide:dr,useExisting:li(()=>Tg),multi:!0},P3=new O("MatRadioGroup"),Qte=new O("mat-radio-default-options",{providedIn:"root",factory:Kte});function Kte(){return{color:"accent",disabledInteractive:!1}}var Tg=(()=>{class t{_changeDetector=u(ye);_value=null;_name=u(et).getId("mat-radio-group-");_selected=null;_isInitialized=!1;_labelPosition="after";_disabled=!1;_required=!1;_buttonChanges;_controlValueAccessorChangeFn=()=>{};onTouched=()=>{};change=new U;_radios;color;get name(){return this._name}set name(e){this._name=e,this._updateRadioButtonNames()}get labelPosition(){return this._labelPosition}set labelPosition(e){this._labelPosition=e==="before"?"before":"after",this._markRadiosForCheck()}get value(){return this._value}set value(e){this._value!==e&&(this._value=e,this._updateSelectedRadioFromValue(),this._checkSelectedRadioButton())}_checkSelectedRadioButton(){this._selected&&!this._selected.checked&&(this._selected.checked=!0)}get selected(){return this._selected}set selected(e){this._selected=e,this.value=e?e.value:null,this._checkSelectedRadioButton()}get disabled(){return this._disabled}set disabled(e){this._disabled=e,this._markRadiosForCheck()}get required(){return this._required}set required(e){this._required=e,this._markRadiosForCheck()}get disabledInteractive(){return this._disabledInteractive}set disabledInteractive(e){this._disabledInteractive=e,this._markRadiosForCheck()}_disabledInteractive=!1;constructor(){}ngAfterContentInit(){this._isInitialized=!0,this._buttonChanges=this._radios.changes.subscribe(()=>{this.selected&&!this._radios.find(e=>e===this.selected)&&(this._selected=null)})}ngOnDestroy(){this._buttonChanges?.unsubscribe()}_touch(){this.onTouched&&this.onTouched()}_updateRadioButtonNames(){this._radios&&this._radios.forEach(e=>{e.name=this.name,e._markForCheck()})}_updateSelectedRadioFromValue(){let e=this._selected!==null&&this._selected.value===this._value;this._radios&&!e&&(this._selected=null,this._radios.forEach(i=>{i.checked=this.value===i.value,i.checked&&(this._selected=i)}))}_emitChangeEvent(){this._isInitialized&&this.change.emit(new Sx(this._selected,this._value))}_markRadiosForCheck(){this._radios&&this._radios.forEach(e=>e._markForCheck())}writeValue(e){this.value=e,this._changeDetector.markForCheck()}registerOnChange(e){this._controlValueAccessorChangeFn=e}registerOnTouched(e){this.onTouched=e}setDisabledState(e){this.disabled=e,this._changeDetector.markForCheck()}static \u0275fac=function(i){return new(i||t)};static \u0275dir=P({type:t,selectors:[["mat-radio-group"]],contentQueries:function(i,r,o){if(i&1&&xe(o,Mk,5),i&2){let a;j(a=H())&&(r._radios=a)}},hostAttrs:["role","radiogroup",1,"mat-mdc-radio-group"],inputs:{color:"color",name:"name",labelPosition:"labelPosition",value:"value",selected:"selected",disabled:[2,"disabled","disabled",L],required:[2,"required","required",L],disabledInteractive:[2,"disabledInteractive","disabledInteractive",L]},outputs:{change:"change"},exportAs:["matRadioGroup"],features:[Ce([Yte,{provide:P3,useExisting:t}])]})}return t})(),Mk=(()=>{class t{_elementRef=u(Y);_changeDetector=u(ye);_focusMonitor=u(oi);_radioDispatcher=u(hu);_defaultOptions=u(Qte,{optional:!0});_ngZone=u(ae);_renderer=u(ze);_uniqueId=u(et).getId("mat-radio-");_cleanupClick;id=this._uniqueId;name;ariaLabel;ariaLabelledby;ariaDescribedby;disableRipple=!1;tabIndex=0;get checked(){return this._checked}set checked(e){this._checked!==e&&(this._checked=e,e&&this.radioGroup&&this.radioGroup.value!==this.value?this.radioGroup.selected=this:!e&&this.radioGroup&&this.radioGroup.value===this.value&&(this.radioGroup.selected=null),e&&this._radioDispatcher.notify(this.id,this.name),this._changeDetector.markForCheck())}get value(){return this._value}set value(e){this._value!==e&&(this._value=e,this.radioGroup!==null&&(this.checked||(this.checked=this.radioGroup.value===e),this.checked&&(this.radioGroup.selected=this)))}get labelPosition(){return this._labelPosition||this.radioGroup&&this.radioGroup.labelPosition||"after"}set labelPosition(e){this._labelPosition=e}_labelPosition;get disabled(){return this._disabled||this.radioGroup!==null&&this.radioGroup.disabled}set disabled(e){this._setDisabled(e)}get required(){return this._required||this.radioGroup&&this.radioGroup.required}set required(e){e!==this._required&&this._changeDetector.markForCheck(),this._required=e}get color(){return this._color||this.radioGroup&&this.radioGroup.color||this._defaultOptions&&this._defaultOptions.color||"accent"}set color(e){this._color=e}_color;get disabledInteractive(){return this._disabledInteractive||this.radioGroup!==null&&this.radioGroup.disabledInteractive}set disabledInteractive(e){this._disabledInteractive=e}_disabledInteractive;change=new U;radioGroup;get inputId(){return`${this.id||this._uniqueId}-input`}_checked=!1;_disabled;_required;_value=null;_removeUniqueSelectionListener=()=>{};_previousTabIndex;_inputElement;_rippleTrigger;_noopAnimations=Qe();_injector=u(de);constructor(){u(ft).load(Oi);let e=u(P3,{optional:!0}),i=u(new Li("tabindex"),{optional:!0});this.radioGroup=e,this._disabledInteractive=this._defaultOptions?.disabledInteractive??!1,i&&(this.tabIndex=ht(i,0))}focus(e,i){i?this._focusMonitor.focusVia(this._inputElement,i,e):this._inputElement.nativeElement.focus(e)}_markForCheck(){this._changeDetector.markForCheck()}ngOnInit(){this.radioGroup&&(this.checked=this.radioGroup.value===this._value,this.checked&&(this.radioGroup.selected=this),this.name=this.radioGroup.name),this._removeUniqueSelectionListener=this._radioDispatcher.listen((e,i)=>{e!==this.id&&i===this.name&&(this.checked=!1)})}ngDoCheck(){this._updateTabIndex()}ngAfterViewInit(){this._updateTabIndex(),this._focusMonitor.monitor(this._elementRef,!0).subscribe(e=>{!e&&this.radioGroup&&this.radioGroup._touch()}),this._ngZone.runOutsideAngular(()=>{this._cleanupClick=this._renderer.listen(this._inputElement.nativeElement,"click",this._onInputClick)})}ngOnDestroy(){this._cleanupClick?.(),this._focusMonitor.stopMonitoring(this._elementRef),this._removeUniqueSelectionListener()}_emitChangeEvent(){this.change.emit(new Sx(this,this._value))}_isRippleDisabled(){return this.disableRipple||this.disabled}_onInputInteraction(e){if(e.stopPropagation(),!this.checked&&!this.disabled){let i=this.radioGroup&&this.value!==this.radioGroup.value;this.checked=!0,this._emitChangeEvent(),this.radioGroup&&(this.radioGroup._controlValueAccessorChangeFn(this.value),i&&this.radioGroup._emitChangeEvent())}}_onTouchTargetClick(e){this._onInputInteraction(e),(!this.disabled||this.disabledInteractive)&&this._inputElement?.nativeElement.focus()}_setDisabled(e){this._disabled!==e&&(this._disabled=e,this._changeDetector.markForCheck())}_onInputClick=e=>{this.disabled&&this.disabledInteractive&&e.preventDefault()};_updateTabIndex(){let e=this.radioGroup,i;if(!e||!e.selected||this.disabled?i=this.tabIndex:i=e.selected===this?this.tabIndex:-1,i!==this._previousTabIndex){let r=this._inputElement?.nativeElement;r&&(r.setAttribute("tabindex",i+""),this._previousTabIndex=i,vt(()=>{queueMicrotask(()=>{e&&e.selected&&e.selected!==this&&document.activeElement===r&&(e.selected?._inputElement.nativeElement.focus(),document.activeElement===r&&this._inputElement.nativeElement.blur())})},{injector:this._injector}))}}static \u0275fac=function(i){return new(i||t)};static \u0275cmp=E({type:t,selectors:[["mat-radio-button"]],viewQuery:function(i,r){if(i&1&&(ie(Wte,5),ie(Gte,7,Y)),i&2){let o;j(o=H())&&(r._inputElement=o.first),j(o=H())&&(r._rippleTrigger=o.first)}},hostAttrs:[1,"mat-mdc-radio-button"],hostVars:19,hostBindings:function(i,r){i&1&&S("focus",function(){return r._inputElement.nativeElement.focus()}),i&2&&(X("id",r.id)("tabindex",null)("aria-label",null)("aria-labelledby",null)("aria-describedby",null),G("mat-primary",r.color==="primary")("mat-accent",r.color==="accent")("mat-warn",r.color==="warn")("mat-mdc-radio-checked",r.checked)("mat-mdc-radio-disabled",r.disabled)("mat-mdc-radio-disabled-interactive",r.disabledInteractive)("_mat-animation-noopable",r._noopAnimations))},inputs:{id:"id",name:"name",ariaLabel:[0,"aria-label","ariaLabel"],ariaLabelledby:[0,"aria-labelledby","ariaLabelledby"],ariaDescribedby:[0,"aria-describedby","ariaDescribedby"],disableRipple:[2,"disableRipple","disableRipple",L],tabIndex:[2,"tabIndex","tabIndex",e=>e==null?0:ht(e)],checked:[2,"checked","checked",L],value:"value",labelPosition:"labelPosition",disabled:[2,"disabled","disabled",L],required:[2,"required","required",L],color:"color",disabledInteractive:[2,"disabledInteractive","disabledInteractive",L]},outputs:{change:"change"},exportAs:["matRadioButton"],ngContentSelectors:qte,decls:13,vars:17,consts:[["formField",""],["input",""],["mat-internal-form-field","",3,"labelPosition"],[1,"mdc-radio"],[1,"mat-mdc-radio-touch-target",3,"click"],["type","radio","aria-invalid","false",1,"mdc-radio__native-control",3,"change","id","checked","disabled","required"],[1,"mdc-radio__background"],[1,"mdc-radio__outer-circle"],[1,"mdc-radio__inner-circle"],["mat-ripple","",1,"mat-radio-ripple","mat-focus-indicator",3,"matRippleTrigger","matRippleDisabled","matRippleCentered"],[1,"mat-ripple-element","mat-radio-persistent-ripple"],[1,"mdc-label",3,"for"]],template:function(i,r){if(i&1){let o=q();Ee(),m(0,"div",2,0)(2,"div",3)(3,"div",4),S("click",function(s){return k(o),T(r._onTouchTargetClick(s))}),h(),m(4,"input",5,1),S("change",function(s){return k(o),T(r._onInputInteraction(s))}),h(),m(6,"div",6),M(7,"div",7)(8,"div",8),h(),m(9,"div",9),M(10,"div",10),h()(),m(11,"label",11),ne(12),h()()}i&2&&(v("labelPosition",r.labelPosition),g(2),G("mdc-radio--disabled",r.disabled),g(2),v("id",r.inputId)("checked",r.checked)("disabled",r.disabled&&!r.disabledInteractive)("required",r.required),X("name",r.name)("value",r.value)("aria-label",r.ariaLabel)("aria-labelledby",r.ariaLabelledby)("aria-describedby",r.ariaDescribedby)("aria-disabled",r.disabled&&r.disabledInteractive?"true":null),g(5),v("matRippleTrigger",r._rippleTrigger.nativeElement)("matRippleDisabled",r._isRippleDisabled())("matRippleCentered",!0),g(2),v("for",r.inputId))},dependencies:[qn,Zm],styles:[`.mat-mdc-radio-button{-webkit-tap-highlight-color:rgba(0,0,0,0)}.mat-mdc-radio-button .mdc-radio{display:inline-block;position:relative;flex:0 0 auto;box-sizing:content-box;width:20px;height:20px;cursor:pointer;will-change:opacity,transform,border-color,color;padding:calc((var(--mat-radio-state-layer-size, 40px) - 20px)/2)}.mat-mdc-radio-button .mdc-radio:hover>.mdc-radio__native-control:not([disabled]):not(:focus)~.mdc-radio__background::before{opacity:.04;transform:scale(1)}.mat-mdc-radio-button .mdc-radio:hover>.mdc-radio__native-control:not([disabled])~.mdc-radio__background>.mdc-radio__outer-circle{border-color:var(--mat-radio-unselected-hover-icon-color, var(--mat-sys-on-surface))}.mat-mdc-radio-button .mdc-radio:hover>.mdc-radio__native-control:enabled:checked+.mdc-radio__background>.mdc-radio__outer-circle{border-color:var(--mat-radio-selected-hover-icon-color, var(--mat-sys-primary))}.mat-mdc-radio-button .mdc-radio:hover>.mdc-radio__native-control:enabled:checked+.mdc-radio__background>.mdc-radio__inner-circle{background-color:var(--mat-radio-selected-hover-icon-color, var(--mat-sys-primary, currentColor))}.mat-mdc-radio-button .mdc-radio:active>.mdc-radio__native-control:enabled:not(:checked)+.mdc-radio__background>.mdc-radio__outer-circle{border-color:var(--mat-radio-unselected-pressed-icon-color, var(--mat-sys-on-surface))}.mat-mdc-radio-button .mdc-radio:active>.mdc-radio__native-control:enabled:checked+.mdc-radio__background>.mdc-radio__outer-circle{border-color:var(--mat-radio-selected-pressed-icon-color, var(--mat-sys-primary))}.mat-mdc-radio-button .mdc-radio:active>.mdc-radio__native-control:enabled:checked+.mdc-radio__background>.mdc-radio__inner-circle{background-color:var(--mat-radio-selected-pressed-icon-color, var(--mat-sys-primary, currentColor))}.mat-mdc-radio-button .mdc-radio__background{display:inline-block;position:relative;box-sizing:border-box;width:20px;height:20px}.mat-mdc-radio-button .mdc-radio__background::before{position:absolute;transform:scale(0, 0);border-radius:50%;opacity:0;pointer-events:none;content:"";transition:opacity 90ms cubic-bezier(0.4, 0, 0.6, 1),transform 90ms cubic-bezier(0.4, 0, 0.6, 1);width:var(--mat-radio-state-layer-size, 40px);height:var(--mat-radio-state-layer-size, 40px);top:calc(-1*(var(--mat-radio-state-layer-size, 40px) - 20px)/2);left:calc(-1*(var(--mat-radio-state-layer-size, 40px) - 20px)/2)}.mat-mdc-radio-button .mdc-radio__outer-circle{position:absolute;top:0;left:0;box-sizing:border-box;width:100%;height:100%;border-width:2px;border-style:solid;border-radius:50%;transition:border-color 90ms cubic-bezier(0.4, 0, 0.6, 1)}.mat-mdc-radio-button .mdc-radio__inner-circle{position:absolute;top:0;left:0;box-sizing:border-box;width:100%;height:100%;transform:scale(0);border-radius:50%;transition:transform 90ms cubic-bezier(0.4, 0, 0.6, 1),background-color 90ms cubic-bezier(0.4, 0, 0.6, 1)}@media(forced-colors: active){.mat-mdc-radio-button .mdc-radio__inner-circle{background-color:CanvasText !important}}.mat-mdc-radio-button .mdc-radio__native-control{position:absolute;margin:0;padding:0;opacity:0;top:0;right:0;left:0;cursor:inherit;z-index:1;width:var(--mat-radio-state-layer-size, 40px);height:var(--mat-radio-state-layer-size, 40px)}.mat-mdc-radio-button .mdc-radio__native-control:checked+.mdc-radio__background,.mat-mdc-radio-button .mdc-radio__native-control:disabled+.mdc-radio__background{transition:opacity 90ms cubic-bezier(0, 0, 0.2, 1),transform 90ms cubic-bezier(0, 0, 0.2, 1)}.mat-mdc-radio-button .mdc-radio__native-control:checked+.mdc-radio__background>.mdc-radio__outer-circle,.mat-mdc-radio-button .mdc-radio__native-control:disabled+.mdc-radio__background>.mdc-radio__outer-circle{transition:border-color 90ms cubic-bezier(0, 0, 0.2, 1)}.mat-mdc-radio-button .mdc-radio__native-control:checked+.mdc-radio__background>.mdc-radio__inner-circle,.mat-mdc-radio-button .mdc-radio__native-control:disabled+.mdc-radio__background>.mdc-radio__inner-circle{transition:transform 90ms cubic-bezier(0, 0, 0.2, 1),background-color 90ms cubic-bezier(0, 0, 0.2, 1)}.mat-mdc-radio-button .mdc-radio__native-control:focus+.mdc-radio__background::before{transform:scale(1);opacity:.12;transition:opacity 90ms cubic-bezier(0, 0, 0.2, 1),transform 90ms cubic-bezier(0, 0, 0.2, 1)}.mat-mdc-radio-button .mdc-radio__native-control:disabled:not(:checked)+.mdc-radio__background>.mdc-radio__outer-circle{border-color:var(--mat-radio-disabled-unselected-icon-color, var(--mat-sys-on-surface));opacity:var(--mat-radio-disabled-unselected-icon-opacity, 0.38)}.mat-mdc-radio-button .mdc-radio__native-control:disabled+.mdc-radio__background{cursor:default}.mat-mdc-radio-button .mdc-radio__native-control:disabled+.mdc-radio__background>.mdc-radio__outer-circle{border-color:var(--mat-radio-disabled-selected-icon-color, var(--mat-sys-on-surface));opacity:var(--mat-radio-disabled-selected-icon-opacity, 0.38)}.mat-mdc-radio-button .mdc-radio__native-control:disabled+.mdc-radio__background>.mdc-radio__inner-circle{background-color:var(--mat-radio-disabled-selected-icon-color, var(--mat-sys-on-surface, currentColor));opacity:var(--mat-radio-disabled-selected-icon-opacity, 0.38)}.mat-mdc-radio-button .mdc-radio__native-control:enabled:not(:checked)+.mdc-radio__background>.mdc-radio__outer-circle{border-color:var(--mat-radio-unselected-icon-color, var(--mat-sys-on-surface-variant))}.mat-mdc-radio-button .mdc-radio__native-control:enabled:checked+.mdc-radio__background>.mdc-radio__outer-circle{border-color:var(--mat-radio-selected-icon-color, var(--mat-sys-primary))}.mat-mdc-radio-button .mdc-radio__native-control:enabled:checked+.mdc-radio__background>.mdc-radio__inner-circle{background-color:var(--mat-radio-selected-icon-color, var(--mat-sys-primary, currentColor))}.mat-mdc-radio-button .mdc-radio__native-control:enabled:focus:checked+.mdc-radio__background>.mdc-radio__outer-circle{border-color:var(--mat-radio-selected-focus-icon-color, var(--mat-sys-primary))}.mat-mdc-radio-button .mdc-radio__native-control:enabled:focus:checked+.mdc-radio__background>.mdc-radio__inner-circle{background-color:var(--mat-radio-selected-focus-icon-color, var(--mat-sys-primary, currentColor))}.mat-mdc-radio-button .mdc-radio__native-control:checked+.mdc-radio__background>.mdc-radio__inner-circle{transform:scale(0.5);transition:transform 90ms cubic-bezier(0, 0, 0.2, 1),background-color 90ms cubic-bezier(0, 0, 0.2, 1)}.mat-mdc-radio-button.mat-mdc-radio-disabled-interactive .mdc-radio--disabled{pointer-events:auto}.mat-mdc-radio-button.mat-mdc-radio-disabled-interactive .mdc-radio--disabled .mdc-radio__native-control:not(:checked)+.mdc-radio__background>.mdc-radio__outer-circle{border-color:var(--mat-radio-disabled-unselected-icon-color, var(--mat-sys-on-surface));opacity:var(--mat-radio-disabled-unselected-icon-opacity, 0.38)}.mat-mdc-radio-button.mat-mdc-radio-disabled-interactive .mdc-radio--disabled:hover .mdc-radio__native-control:checked+.mdc-radio__background>.mdc-radio__outer-circle,.mat-mdc-radio-button.mat-mdc-radio-disabled-interactive .mdc-radio--disabled .mdc-radio__native-control:checked:focus+.mdc-radio__background>.mdc-radio__outer-circle,.mat-mdc-radio-button.mat-mdc-radio-disabled-interactive .mdc-radio--disabled .mdc-radio__native-control+.mdc-radio__background>.mdc-radio__outer-circle{border-color:var(--mat-radio-disabled-selected-icon-color, var(--mat-sys-on-surface));opacity:var(--mat-radio-disabled-selected-icon-opacity, 0.38)}.mat-mdc-radio-button.mat-mdc-radio-disabled-interactive .mdc-radio--disabled:hover .mdc-radio__native-control:checked+.mdc-radio__background>.mdc-radio__inner-circle,.mat-mdc-radio-button.mat-mdc-radio-disabled-interactive .mdc-radio--disabled .mdc-radio__native-control:checked:focus+.mdc-radio__background>.mdc-radio__inner-circle,.mat-mdc-radio-button.mat-mdc-radio-disabled-interactive .mdc-radio--disabled .mdc-radio__native-control+.mdc-radio__background>.mdc-radio__inner-circle{background-color:var(--mat-radio-disabled-selected-icon-color, var(--mat-sys-on-surface, currentColor));opacity:var(--mat-radio-disabled-selected-icon-opacity, 0.38)}.mat-mdc-radio-button._mat-animation-noopable .mdc-radio__background::before,.mat-mdc-radio-button._mat-animation-noopable .mdc-radio__outer-circle,.mat-mdc-radio-button._mat-animation-noopable .mdc-radio__inner-circle{transition:none !important}.mat-mdc-radio-button label{cursor:pointer}.mat-mdc-radio-button .mdc-radio__background::before{background-color:var(--mat-radio-ripple-color, var(--mat-sys-on-surface))}.mat-mdc-radio-button.mat-mdc-radio-checked .mat-ripple-element,.mat-mdc-radio-button.mat-mdc-radio-checked .mdc-radio__background::before{background-color:var(--mat-radio-checked-ripple-color, var(--mat-sys-primary))}.mat-mdc-radio-button.mat-mdc-radio-disabled-interactive .mdc-radio--disabled .mat-ripple-element,.mat-mdc-radio-button.mat-mdc-radio-disabled-interactive .mdc-radio--disabled .mdc-radio__background::before{background-color:var(--mat-radio-ripple-color, var(--mat-sys-on-surface))}.mat-mdc-radio-button .mat-internal-form-field{color:var(--mat-radio-label-text-color, var(--mat-sys-on-surface));font-family:var(--mat-radio-label-text-font, var(--mat-sys-body-medium-font));line-height:var(--mat-radio-label-text-line-height, var(--mat-sys-body-medium-line-height));font-size:var(--mat-radio-label-text-size, var(--mat-sys-body-medium-size));letter-spacing:var(--mat-radio-label-text-tracking, var(--mat-sys-body-medium-tracking));font-weight:var(--mat-radio-label-text-weight, var(--mat-sys-body-medium-weight))}.mat-mdc-radio-button .mdc-radio--disabled+label{color:var(--mat-radio-disabled-label-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent))}.mat-mdc-radio-button .mat-radio-ripple{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none;border-radius:50%}.mat-mdc-radio-button .mat-radio-ripple>.mat-ripple-element{opacity:.14}.mat-mdc-radio-button .mat-radio-ripple::before{border-radius:50%}.mat-mdc-radio-button .mdc-radio>.mdc-radio__native-control:focus:enabled:not(:checked)~.mdc-radio__background>.mdc-radio__outer-circle{border-color:var(--mat-radio-unselected-focus-icon-color, var(--mat-sys-on-surface))}.mat-mdc-radio-button.cdk-focused .mat-focus-indicator::before{content:""}.mat-mdc-radio-disabled{cursor:default;pointer-events:none}.mat-mdc-radio-disabled.mat-mdc-radio-disabled-interactive{pointer-events:auto}.mat-mdc-radio-touch-target{position:absolute;top:50%;left:50%;height:var(--mat-radio-touch-target-size, 48px);width:var(--mat-radio-touch-target-size, 48px);transform:translate(-50%, -50%);display:var(--mat-radio-touch-target-display, block)}[dir=rtl] .mat-mdc-radio-touch-target{left:auto;right:50%;transform:translate(50%, -50%)} +`],encapsulation:2,changeDetection:0})}return t})();var Xte=(()=>{let n=class n{transform(i,r){return i instanceof Ne?this.dispose():i=this.observableOf(i,r),i.pipe(se(o=>this.transformOptions(o,r)))}ngOnDestroy(){this.dispose()}transformOptions(i,r){let o=this.transformSelectProps(r),a=[],s={};return i?.forEach(l=>{let c=this.transformOption(l,o);if(c.group){let d=s[c.label];d===void 0?s[c.label]=a.push(c)-1:c.group.forEach(p=>a[d].group.push(p))}else a.push(c)}),a}transformOption(i,r){let o=r.groupProp(i);return Array.isArray(o)?{label:r.labelProp(i),group:o.map(a=>this.transformOption(a,r))}:(i={label:r.labelProp(i),value:r.valueProp(i),disabled:!!r.disabledProp(i)},o?{label:o,group:[i]}:i)}transformSelectProps(i){let r=i?.props||i?.templateOptions||{},o=a=>typeof a=="function"?a:s=>s[a];return{groupProp:o(r.groupProp||"group"),labelProp:o(r.labelProp||"label"),valueProp:o(r.valueProp||"value"),disabledProp:o(r.disabledProp||"disabled")}}dispose(){this._options&&(this._options.complete(),this._options=null),this._subscription&&(this._subscription.unsubscribe(),this._subscription=null)}observableOf(i,r){return this.dispose(),r&&r.options&&r.options.fieldChanges&&(this._subscription=r.options.fieldChanges.pipe(ce(({property:o,type:a,field:s})=>a==="expressionChanges"&&(o.indexOf("templateOptions.options")===0||o.indexOf("props.options")===0)&&s===r&&Array.isArray(s.props.options)&&!!this._options),He(()=>this._options.next(r.props.options))).subscribe()),this._options=new rt(i),this._options.asObservable()}};n.\u0275fac=function(r){return new(r||n)},n.\u0275pipe=io({name:"formlySelectOptions",type:n,pure:!0});let t=n;return t})(),Ih=(()=>{let n=class n extends Xte{};n.\u0275fac=(()=>{let i;return function(o){return(i||(i=ge(n)))(o||n)}})(),n.\u0275pipe=io({name:"formlySelectOptions",type:n,pure:!0,standalone:!1});let t=n;return t})();function Jte(t,n){if(t&1&&(m(0,"mat-radio-button",1),f(1),h()),t&2){let e=n.$implicit,i=n.$index,r=x();v("id",r.id+"_"+i)("color",r.props.color)("labelPosition",r.props.labelPosition)("disabled",e.disabled)("value",e.value),g(),fe(" ",e.label," ")}}var eie=(()=>{let n=class n extends uo{constructor(){super(...arguments),this.defaultOptions={props:{hideFieldUnderline:!0,floatLabel:"always",tabindex:-1}}}ngAfterViewInit(){this.focusObserver=Zi(this.field,["focus"],({currentValue:i})=>{this.props.tabindex===-1&&i&&this.radioGroup._radios.length>0&&setTimeout(()=>{(this.radioGroup.selected?this.radioGroup.selected:this.radioGroup._radios.first).focus()})})}onContainerClick(){}ngOnDestroy(){super.ngOnDestroy(),this.focusObserver&&this.focusObserver.unsubscribe()}};n.\u0275fac=(()=>{let i;return function(o){return(i||(i=ge(n)))(o||n)}})(),n.\u0275cmp=E({type:n,selectors:[["formly-field-mat-radio"]],viewQuery:function(r,o){if(r&1&&ie(Tg,7),r&2){let a;j(a=H())&&(o.radioGroup=a.first)}},standalone:!1,features:[le],decls:5,vars:9,consts:[[3,"formControl","formlyAttributes","required","tabindex"],[3,"id","color","labelPosition","disabled","value"]],template:function(r,o){r&1&&(m(0,"mat-radio-group",0),Mt(1,Jte,2,6,"mat-radio-button",1,Yi),me(3,"formlySelectOptions"),me(4,"async"),h()),r&2&&(v("formControl",o.formControl)("formlyAttributes",o.field)("required",o.required)("tabindex",o.props.tabindex),g(),Et(Re(4,7,Ui(3,4,o.props.options,o.field))))},dependencies:[Pt,Fo,Po,Tg,Mk,la,cn,Ih],encapsulation:2,changeDetection:0});let t=n;return t})();function F3(){return{types:[{name:"radio",component:eie,wrappers:["form-field"]}]}}var tie=["input"],iie=["label"],nie=["*"],rie=new O("mat-checkbox-default-options",{providedIn:"root",factory:L3});function L3(){return{color:"accent",clickAction:"check-indeterminate",disabledInteractive:!1}}var Ar=(function(t){return t[t.Init=0]="Init",t[t.Checked=1]="Checked",t[t.Unchecked=2]="Unchecked",t[t.Indeterminate=3]="Indeterminate",t})(Ar||{}),Sk=class{source;checked},N3=L3(),ts=(()=>{class t{_elementRef=u(Y);_changeDetectorRef=u(ye);_ngZone=u(ae);_animationsDisabled=Qe();_options=u(rie,{optional:!0});focus(){this._inputElement.nativeElement.focus()}_createChangeEvent(e){let i=new Sk;return i.source=this,i.checked=e,i}_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;labelPosition="after";name=null;change=new U;indeterminateChange=new U;value;disableRipple;_inputElement;_labelElement;tabIndex;color;disabledInteractive;_onTouched=()=>{};_currentAnimationClass="";_currentCheckState=Ar.Init;_controlValueAccessorChangeFn=()=>{};_validatorChangeFn=()=>{};constructor(){u(ft).load(Oi);let e=u(new Li("tabindex"),{optional:!0});this._options=this._options||N3,this.color=this._options.color||N3.color,this.tabIndex=e==null?0:parseInt(e)||0,this.id=this._uniqueId=u(et).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 i=e!=this._indeterminate();this._indeterminate.set(e),i&&(e?this._transitionCheckState(Ar.Indeterminate):this._transitionCheckState(this.checked?Ar.Checked:Ar.Unchecked),this.indeterminateChange.emit(e)),this._syncIndeterminate(e)}_indeterminate=he(!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 i=this._currentCheckState,r=this._getAnimationTargetElement();if(!(i===e||!r)&&(this._currentAnimationClass&&r.classList.remove(this._currentAnimationClass),this._currentAnimationClass=this._getAnimationClassForCheckStateTransition(i,e),this._currentCheckState=e,this._currentAnimationClass.length>0)){r.classList.add(this._currentAnimationClass);let o=this._currentAnimationClass;this._ngZone.runOutsideAngular(()=>{setTimeout(()=>{r.classList.remove(o)},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?Ar.Checked:Ar.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,i){if(this._animationsDisabled)return"";switch(e){case Ar.Init:if(i===Ar.Checked)return this._animationClasses.uncheckedToChecked;if(i==Ar.Indeterminate)return this._checked?this._animationClasses.checkedToIndeterminate:this._animationClasses.uncheckedToIndeterminate;break;case Ar.Unchecked:return i===Ar.Checked?this._animationClasses.uncheckedToChecked:this._animationClasses.uncheckedToIndeterminate;case Ar.Checked:return i===Ar.Unchecked?this._animationClasses.checkedToUnchecked:this._animationClasses.checkedToIndeterminate;case Ar.Indeterminate:return i===Ar.Checked?this._animationClasses.indeterminateToChecked:this._animationClasses.indeterminateToUnchecked}return""}_syncIndeterminate(e){let i=this._inputElement;i&&(i.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(i){return new(i||t)};static \u0275cmp=E({type:t,selectors:[["mat-checkbox"]],viewQuery:function(i,r){if(i&1&&(ie(tie,5),ie(iie,5)),i&2){let o;j(o=H())&&(r._inputElement=o.first),j(o=H())&&(r._labelElement=o.first)}},hostAttrs:[1,"mat-mdc-checkbox"],hostVars:16,hostBindings:function(i,r){i&2&&(pi("id",r.id),X("tabindex",null)("aria-label",null)("aria-labelledby",null),at(r.color?"mat-"+r.color:"mat-accent"),G("_mat-animation-noopable",r._animationsDisabled)("mdc-checkbox--disabled",r.disabled)("mat-mdc-checkbox-disabled",r.disabled)("mat-mdc-checkbox-checked",r.checked)("mat-mdc-checkbox-disabled-interactive",r.disabledInteractive))},inputs:{ariaLabel:[0,"aria-label","ariaLabel"],ariaLabelledby:[0,"aria-labelledby","ariaLabelledby"],ariaDescribedby:[0,"aria-describedby","ariaDescribedby"],ariaExpanded:[2,"aria-expanded","ariaExpanded",L],ariaControls:[0,"aria-controls","ariaControls"],ariaOwns:[0,"aria-owns","ariaOwns"],id:"id",required:[2,"required","required",L],labelPosition:"labelPosition",name:"name",value:"value",disableRipple:[2,"disableRipple","disableRipple",L],tabIndex:[2,"tabIndex","tabIndex",e=>e==null?void 0:ht(e)],color:"color",disabledInteractive:[2,"disabledInteractive","disabledInteractive",L],checked:[2,"checked","checked",L],disabled:[2,"disabled","disabled",L],indeterminate:[2,"indeterminate","indeterminate",L]},outputs:{change:"change",indeterminateChange:"indeterminateChange"},exportAs:["matCheckbox"],features:[Ce([{provide:dr,useExisting:li(()=>t),multi:!0},{provide:sa,useExisting:t,multi:!0}]),Oe],ngContentSelectors:nie,decls:15,vars:23,consts:[["checkbox",""],["input",""],["label",""],["mat-internal-form-field","",3,"click","labelPosition"],[1,"mdc-checkbox"],[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"],[1,"mdc-checkbox__ripple"],[1,"mdc-checkbox__background"],["focusable","false","viewBox","0 0 24 24","aria-hidden","true",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","",1,"mat-mdc-checkbox-ripple","mat-focus-indicator",3,"matRippleTrigger","matRippleDisabled","matRippleCentered"],[1,"mdc-label",3,"for"]],template:function(i,r){if(i&1){let o=q();Ee(),m(0,"div",3),S("click",function(s){return k(o),T(r._preventBubblingFromLabel(s))}),m(1,"div",4,0)(3,"div",5),S("click",function(){return k(o),T(r._onTouchTargetClick())}),h(),m(4,"input",6,1),S("blur",function(){return k(o),T(r._onBlur())})("click",function(){return k(o),T(r._onInputClick())})("change",function(s){return k(o),T(r._onInteractionEvent(s))}),h(),M(6,"div",7),m(7,"div",8),ii(),m(8,"svg",9),M(9,"path",10),h(),Qo(),M(10,"div",11),h(),M(11,"div",12),h(),m(12,"label",13,2),ne(14),h()()}if(i&2){let o=Te(2);v("labelPosition",r.labelPosition),g(4),G("mdc-checkbox--selected",r.checked),v("checked",r.checked)("indeterminate",r.indeterminate)("disabled",r.disabled&&!r.disabledInteractive)("id",r.inputId)("required",r.required)("tabIndex",r.disabled&&!r.disabledInteractive?-1:r.tabIndex),X("aria-label",r.ariaLabel||null)("aria-labelledby",r.ariaLabelledby)("aria-describedby",r.ariaDescribedby)("aria-checked",r.indeterminate?"mixed":null)("aria-controls",r.ariaControls)("aria-disabled",r.disabled&&r.disabledInteractive?!0:null)("aria-expanded",r.ariaExpanded)("aria-owns",r.ariaOwns)("name",r.name)("value",r.value),g(7),v("matRippleTrigger",o)("matRippleDisabled",r.disableRipple||r.disabled)("matRippleCentered",!0),g(),v("for",r.inputId)}},dependencies:[qn,Zm],styles:[`.mdc-checkbox{display:inline-block;position:relative;flex:0 0 18px;box-sizing:content-box;width:18px;height:18px;line-height:0;white-space:nowrap;cursor:pointer;vertical-align:bottom;padding:calc((var(--mat-checkbox-state-layer-size, 40px) - 18px)/2);margin:calc((var(--mat-checkbox-state-layer-size, 40px) - var(--mat-checkbox-state-layer-size, 40px))/2)}.mdc-checkbox:hover>.mdc-checkbox__ripple{opacity:var(--mat-checkbox-unselected-hover-state-layer-opacity, var(--mat-sys-hover-state-layer-opacity));background-color:var(--mat-checkbox-unselected-hover-state-layer-color, var(--mat-sys-on-surface))}.mdc-checkbox:hover>.mat-mdc-checkbox-ripple>.mat-ripple-element{background-color:var(--mat-checkbox-unselected-hover-state-layer-color, var(--mat-sys-on-surface))}.mdc-checkbox .mdc-checkbox__native-control:focus+.mdc-checkbox__ripple{opacity:var(--mat-checkbox-unselected-focus-state-layer-opacity, var(--mat-sys-focus-state-layer-opacity));background-color:var(--mat-checkbox-unselected-focus-state-layer-color, var(--mat-sys-on-surface))}.mdc-checkbox .mdc-checkbox__native-control:focus~.mat-mdc-checkbox-ripple .mat-ripple-element{background-color:var(--mat-checkbox-unselected-focus-state-layer-color, var(--mat-sys-on-surface))}.mdc-checkbox:active>.mdc-checkbox__native-control+.mdc-checkbox__ripple{opacity:var(--mat-checkbox-unselected-pressed-state-layer-opacity, var(--mat-sys-pressed-state-layer-opacity));background-color:var(--mat-checkbox-unselected-pressed-state-layer-color, var(--mat-sys-primary))}.mdc-checkbox:active>.mdc-checkbox__native-control~.mat-mdc-checkbox-ripple .mat-ripple-element{background-color:var(--mat-checkbox-unselected-pressed-state-layer-color, var(--mat-sys-primary))}.mdc-checkbox:hover .mdc-checkbox__native-control:checked+.mdc-checkbox__ripple{opacity:var(--mat-checkbox-selected-hover-state-layer-opacity, var(--mat-sys-hover-state-layer-opacity));background-color:var(--mat-checkbox-selected-hover-state-layer-color, var(--mat-sys-primary))}.mdc-checkbox:hover .mdc-checkbox__native-control:checked~.mat-mdc-checkbox-ripple .mat-ripple-element{background-color:var(--mat-checkbox-selected-hover-state-layer-color, var(--mat-sys-primary))}.mdc-checkbox .mdc-checkbox__native-control:focus:checked+.mdc-checkbox__ripple{opacity:var(--mat-checkbox-selected-focus-state-layer-opacity, var(--mat-sys-focus-state-layer-opacity));background-color:var(--mat-checkbox-selected-focus-state-layer-color, var(--mat-sys-primary))}.mdc-checkbox .mdc-checkbox__native-control:focus:checked~.mat-mdc-checkbox-ripple .mat-ripple-element{background-color:var(--mat-checkbox-selected-focus-state-layer-color, var(--mat-sys-primary))}.mdc-checkbox:active>.mdc-checkbox__native-control:checked+.mdc-checkbox__ripple{opacity:var(--mat-checkbox-selected-pressed-state-layer-opacity, var(--mat-sys-pressed-state-layer-opacity));background-color:var(--mat-checkbox-selected-pressed-state-layer-color, var(--mat-sys-on-surface))}.mdc-checkbox:active>.mdc-checkbox__native-control:checked~.mat-mdc-checkbox-ripple .mat-ripple-element{background-color:var(--mat-checkbox-selected-pressed-state-layer-color, var(--mat-sys-on-surface))}.mdc-checkbox--disabled.mat-mdc-checkbox-disabled-interactive .mdc-checkbox .mdc-checkbox__native-control~.mat-mdc-checkbox-ripple .mat-ripple-element,.mdc-checkbox--disabled.mat-mdc-checkbox-disabled-interactive .mdc-checkbox .mdc-checkbox__native-control+.mdc-checkbox__ripple{background-color:var(--mat-checkbox-unselected-hover-state-layer-color, var(--mat-sys-on-surface))}.mdc-checkbox .mdc-checkbox__native-control{position:absolute;margin:0;padding:0;opacity:0;cursor:inherit;z-index:1;width:var(--mat-checkbox-state-layer-size, 40px);height:var(--mat-checkbox-state-layer-size, 40px);top:calc((var(--mat-checkbox-state-layer-size, 40px) - var(--mat-checkbox-state-layer-size, 40px))/2);right:calc((var(--mat-checkbox-state-layer-size, 40px) - var(--mat-checkbox-state-layer-size, 40px))/2);left:calc((var(--mat-checkbox-state-layer-size, 40px) - var(--mat-checkbox-state-layer-size, 40px))/2)}.mdc-checkbox--disabled{cursor:default;pointer-events:none}.mdc-checkbox__background{display:inline-flex;position:absolute;align-items:center;justify-content:center;box-sizing:border-box;width:18px;height:18px;border:2px solid currentColor;border-radius:2px;background-color:rgba(0,0,0,0);pointer-events:none;will-change:background-color,border-color;transition:background-color 90ms cubic-bezier(0.4, 0, 0.6, 1),border-color 90ms cubic-bezier(0.4, 0, 0.6, 1);-webkit-print-color-adjust:exact;color-adjust:exact;border-color:var(--mat-checkbox-unselected-icon-color, var(--mat-sys-on-surface-variant));top:calc((var(--mat-checkbox-state-layer-size, 40px) - 18px)/2);left:calc((var(--mat-checkbox-state-layer-size, 40px) - 18px)/2)}.mdc-checkbox__native-control:enabled:checked~.mdc-checkbox__background,.mdc-checkbox__native-control:enabled:indeterminate~.mdc-checkbox__background{border-color:var(--mat-checkbox-selected-icon-color, var(--mat-sys-primary));background-color:var(--mat-checkbox-selected-icon-color, var(--mat-sys-primary))}.mdc-checkbox--disabled .mdc-checkbox__background{border-color:var(--mat-checkbox-disabled-unselected-icon-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent))}@media(forced-colors: active){.mdc-checkbox--disabled .mdc-checkbox__background{border-color:GrayText}}.mdc-checkbox__native-control:disabled:checked~.mdc-checkbox__background,.mdc-checkbox__native-control:disabled:indeterminate~.mdc-checkbox__background{background-color:var(--mat-checkbox-disabled-selected-icon-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent));border-color:rgba(0,0,0,0)}@media(forced-colors: active){.mdc-checkbox__native-control:disabled:checked~.mdc-checkbox__background,.mdc-checkbox__native-control:disabled:indeterminate~.mdc-checkbox__background{border-color:GrayText}}.mdc-checkbox:hover>.mdc-checkbox__native-control:not(:checked)~.mdc-checkbox__background,.mdc-checkbox:hover>.mdc-checkbox__native-control:not(:indeterminate)~.mdc-checkbox__background{border-color:var(--mat-checkbox-unselected-hover-icon-color, var(--mat-sys-on-surface));background-color:rgba(0,0,0,0)}.mdc-checkbox:hover>.mdc-checkbox__native-control:checked~.mdc-checkbox__background,.mdc-checkbox:hover>.mdc-checkbox__native-control:indeterminate~.mdc-checkbox__background{border-color:var(--mat-checkbox-selected-hover-icon-color, var(--mat-sys-primary));background-color:var(--mat-checkbox-selected-hover-icon-color, var(--mat-sys-primary))}.mdc-checkbox__native-control:focus:focus:not(:checked)~.mdc-checkbox__background,.mdc-checkbox__native-control:focus:focus:not(:indeterminate)~.mdc-checkbox__background{border-color:var(--mat-checkbox-unselected-focus-icon-color, var(--mat-sys-on-surface))}.mdc-checkbox__native-control:focus:focus:checked~.mdc-checkbox__background,.mdc-checkbox__native-control:focus:focus:indeterminate~.mdc-checkbox__background{border-color:var(--mat-checkbox-selected-focus-icon-color, var(--mat-sys-primary));background-color:var(--mat-checkbox-selected-focus-icon-color, var(--mat-sys-primary))}.mdc-checkbox--disabled.mat-mdc-checkbox-disabled-interactive .mdc-checkbox:hover>.mdc-checkbox__native-control~.mdc-checkbox__background,.mdc-checkbox--disabled.mat-mdc-checkbox-disabled-interactive .mdc-checkbox .mdc-checkbox__native-control:focus~.mdc-checkbox__background,.mdc-checkbox--disabled.mat-mdc-checkbox-disabled-interactive .mdc-checkbox__background{border-color:var(--mat-checkbox-disabled-unselected-icon-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent))}@media(forced-colors: active){.mdc-checkbox--disabled.mat-mdc-checkbox-disabled-interactive .mdc-checkbox:hover>.mdc-checkbox__native-control~.mdc-checkbox__background,.mdc-checkbox--disabled.mat-mdc-checkbox-disabled-interactive .mdc-checkbox .mdc-checkbox__native-control:focus~.mdc-checkbox__background,.mdc-checkbox--disabled.mat-mdc-checkbox-disabled-interactive .mdc-checkbox__background{border-color:GrayText}}.mdc-checkbox--disabled.mat-mdc-checkbox-disabled-interactive .mdc-checkbox__native-control:checked~.mdc-checkbox__background,.mdc-checkbox--disabled.mat-mdc-checkbox-disabled-interactive .mdc-checkbox__native-control:indeterminate~.mdc-checkbox__background{background-color:var(--mat-checkbox-disabled-selected-icon-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent));border-color:rgba(0,0,0,0)}.mdc-checkbox__checkmark{position:absolute;top:0;right:0;bottom:0;left:0;width:100%;opacity:0;transition:opacity 180ms cubic-bezier(0.4, 0, 0.6, 1);color:var(--mat-checkbox-selected-checkmark-color, var(--mat-sys-on-primary))}@media(forced-colors: active){.mdc-checkbox__checkmark{color:CanvasText}}.mdc-checkbox--disabled .mdc-checkbox__checkmark,.mdc-checkbox--disabled.mat-mdc-checkbox-disabled-interactive .mdc-checkbox__checkmark{color:var(--mat-checkbox-disabled-selected-checkmark-color, var(--mat-sys-surface))}@media(forced-colors: active){.mdc-checkbox--disabled .mdc-checkbox__checkmark,.mdc-checkbox--disabled.mat-mdc-checkbox-disabled-interactive .mdc-checkbox__checkmark{color:GrayText}}.mdc-checkbox__checkmark-path{transition:stroke-dashoffset 180ms cubic-bezier(0.4, 0, 0.6, 1);stroke:currentColor;stroke-width:3.12px;stroke-dashoffset:29.7833385;stroke-dasharray:29.7833385}.mdc-checkbox__mixedmark{width:100%;height:0;transform:scaleX(0) rotate(0deg);border-width:1px;border-style:solid;opacity:0;transition:opacity 90ms cubic-bezier(0.4, 0, 0.6, 1),transform 90ms cubic-bezier(0.4, 0, 0.6, 1);border-color:var(--mat-checkbox-selected-checkmark-color, var(--mat-sys-on-primary))}@media(forced-colors: active){.mdc-checkbox__mixedmark{margin:0 1px}}.mdc-checkbox--disabled .mdc-checkbox__mixedmark,.mdc-checkbox--disabled.mat-mdc-checkbox-disabled-interactive .mdc-checkbox__mixedmark{border-color:var(--mat-checkbox-disabled-selected-checkmark-color, var(--mat-sys-surface))}@media(forced-colors: active){.mdc-checkbox--disabled .mdc-checkbox__mixedmark,.mdc-checkbox--disabled.mat-mdc-checkbox-disabled-interactive .mdc-checkbox__mixedmark{border-color:GrayText}}.mdc-checkbox--anim-unchecked-checked .mdc-checkbox__background,.mdc-checkbox--anim-unchecked-indeterminate .mdc-checkbox__background,.mdc-checkbox--anim-checked-unchecked .mdc-checkbox__background,.mdc-checkbox--anim-indeterminate-unchecked .mdc-checkbox__background{animation-duration:180ms;animation-timing-function:linear}.mdc-checkbox--anim-unchecked-checked .mdc-checkbox__checkmark-path{animation:mdc-checkbox-unchecked-checked-checkmark-path 180ms linear;transition:none}.mdc-checkbox--anim-unchecked-indeterminate .mdc-checkbox__mixedmark{animation:mdc-checkbox-unchecked-indeterminate-mixedmark 90ms linear;transition:none}.mdc-checkbox--anim-checked-unchecked .mdc-checkbox__checkmark-path{animation:mdc-checkbox-checked-unchecked-checkmark-path 90ms linear;transition:none}.mdc-checkbox--anim-checked-indeterminate .mdc-checkbox__checkmark{animation:mdc-checkbox-checked-indeterminate-checkmark 90ms linear;transition:none}.mdc-checkbox--anim-checked-indeterminate .mdc-checkbox__mixedmark{animation:mdc-checkbox-checked-indeterminate-mixedmark 90ms linear;transition:none}.mdc-checkbox--anim-indeterminate-checked .mdc-checkbox__checkmark{animation:mdc-checkbox-indeterminate-checked-checkmark 500ms linear;transition:none}.mdc-checkbox--anim-indeterminate-checked .mdc-checkbox__mixedmark{animation:mdc-checkbox-indeterminate-checked-mixedmark 500ms linear;transition:none}.mdc-checkbox--anim-indeterminate-unchecked .mdc-checkbox__mixedmark{animation:mdc-checkbox-indeterminate-unchecked-mixedmark 300ms linear;transition:none}.mdc-checkbox__native-control:checked~.mdc-checkbox__background,.mdc-checkbox__native-control:indeterminate~.mdc-checkbox__background{transition:border-color 90ms cubic-bezier(0, 0, 0.2, 1),background-color 90ms cubic-bezier(0, 0, 0.2, 1)}.mdc-checkbox__native-control:checked~.mdc-checkbox__background>.mdc-checkbox__checkmark>.mdc-checkbox__checkmark-path,.mdc-checkbox__native-control:indeterminate~.mdc-checkbox__background>.mdc-checkbox__checkmark>.mdc-checkbox__checkmark-path{stroke-dashoffset:0}.mdc-checkbox__native-control:checked~.mdc-checkbox__background>.mdc-checkbox__checkmark{transition:opacity 180ms cubic-bezier(0, 0, 0.2, 1),transform 180ms cubic-bezier(0, 0, 0.2, 1);opacity:1}.mdc-checkbox__native-control:checked~.mdc-checkbox__background>.mdc-checkbox__mixedmark{transform:scaleX(1) rotate(-45deg)}.mdc-checkbox__native-control:indeterminate~.mdc-checkbox__background>.mdc-checkbox__checkmark{transform:rotate(45deg);opacity:0;transition:opacity 90ms cubic-bezier(0.4, 0, 0.6, 1),transform 90ms cubic-bezier(0.4, 0, 0.6, 1)}.mdc-checkbox__native-control:indeterminate~.mdc-checkbox__background>.mdc-checkbox__mixedmark{transform:scaleX(1) rotate(0deg);opacity:1}@keyframes mdc-checkbox-unchecked-checked-checkmark-path{0%,50%{stroke-dashoffset:29.7833385}50%{animation-timing-function:cubic-bezier(0, 0, 0.2, 1)}100%{stroke-dashoffset:0}}@keyframes mdc-checkbox-unchecked-indeterminate-mixedmark{0%,68.2%{transform:scaleX(0)}68.2%{animation-timing-function:cubic-bezier(0, 0, 0, 1)}100%{transform:scaleX(1)}}@keyframes mdc-checkbox-checked-unchecked-checkmark-path{from{animation-timing-function:cubic-bezier(0.4, 0, 1, 1);opacity:1;stroke-dashoffset:0}to{opacity:0;stroke-dashoffset:-29.7833385}}@keyframes mdc-checkbox-checked-indeterminate-checkmark{from{animation-timing-function:cubic-bezier(0, 0, 0.2, 1);transform:rotate(0deg);opacity:1}to{transform:rotate(45deg);opacity:0}}@keyframes mdc-checkbox-indeterminate-checked-checkmark{from{animation-timing-function:cubic-bezier(0.14, 0, 0, 1);transform:rotate(45deg);opacity:0}to{transform:rotate(360deg);opacity:1}}@keyframes mdc-checkbox-checked-indeterminate-mixedmark{from{animation-timing-function:cubic-bezier(0, 0, 0.2, 1);transform:rotate(-45deg);opacity:0}to{transform:rotate(0deg);opacity:1}}@keyframes mdc-checkbox-indeterminate-checked-mixedmark{from{animation-timing-function:cubic-bezier(0.14, 0, 0, 1);transform:rotate(0deg);opacity:1}to{transform:rotate(315deg);opacity:0}}@keyframes mdc-checkbox-indeterminate-unchecked-mixedmark{0%{animation-timing-function:linear;transform:scaleX(1);opacity:1}32.8%,100%{transform:scaleX(0);opacity:0}}.mat-mdc-checkbox{display:inline-block;position:relative;-webkit-tap-highlight-color:rgba(0,0,0,0)}.mat-mdc-checkbox._mat-animation-noopable>.mat-internal-form-field>.mdc-checkbox>.mat-mdc-checkbox-touch-target,.mat-mdc-checkbox._mat-animation-noopable>.mat-internal-form-field>.mdc-checkbox>.mdc-checkbox__native-control,.mat-mdc-checkbox._mat-animation-noopable>.mat-internal-form-field>.mdc-checkbox>.mdc-checkbox__ripple,.mat-mdc-checkbox._mat-animation-noopable>.mat-internal-form-field>.mdc-checkbox>.mat-mdc-checkbox-ripple::before,.mat-mdc-checkbox._mat-animation-noopable>.mat-internal-form-field>.mdc-checkbox>.mdc-checkbox__background,.mat-mdc-checkbox._mat-animation-noopable>.mat-internal-form-field>.mdc-checkbox>.mdc-checkbox__background>.mdc-checkbox__checkmark,.mat-mdc-checkbox._mat-animation-noopable>.mat-internal-form-field>.mdc-checkbox>.mdc-checkbox__background>.mdc-checkbox__checkmark>.mdc-checkbox__checkmark-path,.mat-mdc-checkbox._mat-animation-noopable>.mat-internal-form-field>.mdc-checkbox>.mdc-checkbox__background>.mdc-checkbox__mixedmark{transition:none !important;animation:none !important}.mat-mdc-checkbox label{cursor:pointer}.mat-mdc-checkbox .mat-internal-form-field{color:var(--mat-checkbox-label-text-color, var(--mat-sys-on-surface));font-family:var(--mat-checkbox-label-text-font, var(--mat-sys-body-medium-font));line-height:var(--mat-checkbox-label-text-line-height, var(--mat-sys-body-medium-line-height));font-size:var(--mat-checkbox-label-text-size, var(--mat-sys-body-medium-size));letter-spacing:var(--mat-checkbox-label-text-tracking, var(--mat-sys-body-medium-tracking));font-weight:var(--mat-checkbox-label-text-weight, var(--mat-sys-body-medium-weight))}.mat-mdc-checkbox.mat-mdc-checkbox-disabled.mat-mdc-checkbox-disabled-interactive{pointer-events:auto}.mat-mdc-checkbox.mat-mdc-checkbox-disabled.mat-mdc-checkbox-disabled-interactive input{cursor:default}.mat-mdc-checkbox.mat-mdc-checkbox-disabled label{cursor:default;color:var(--mat-checkbox-disabled-label-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent))}@media(forced-colors: active){.mat-mdc-checkbox.mat-mdc-checkbox-disabled label{color:GrayText}}.mat-mdc-checkbox label:empty{display:none}.mat-mdc-checkbox .mdc-checkbox__ripple{opacity:0}.mat-mdc-checkbox .mat-mdc-checkbox-ripple,.mdc-checkbox__ripple{top:0;left:0;right:0;bottom:0;position:absolute;border-radius:50%;pointer-events:none}.mat-mdc-checkbox .mat-mdc-checkbox-ripple:not(:empty),.mdc-checkbox__ripple:not(:empty){transform:translateZ(0)}.mat-mdc-checkbox-ripple .mat-ripple-element{opacity:.1}.mat-mdc-checkbox-touch-target{position:absolute;top:50%;left:50%;height:var(--mat-checkbox-touch-target-size, 48px);width:var(--mat-checkbox-touch-target-size, 48px);transform:translate(-50%, -50%);display:var(--mat-checkbox-touch-target-display, block)}.mat-mdc-checkbox .mat-mdc-checkbox-ripple::before{border-radius:50%}.mdc-checkbox__native-control:focus~.mat-focus-indicator::before{content:""} +`],encapsulation:2,changeDetection:0})}return t})(),kx=(()=>{class t{static \u0275fac=function(i){return new(i||t)};static \u0275mod=ee({type:t});static \u0275inj=J({imports:[ts,De,De]})}return t})();function oie(t,n){t&1&&(m(0,"span",1),f(1,"*"),h())}var aie=(()=>{let n=class n extends uo{constructor(i,r){super(),this.renderer=i,this.focusMonitor=r,this.defaultOptions={props:{hideFieldUnderline:!0,indeterminate:!0,floatLabel:"always",hideLabel:!0,color:"accent"}}}onContainerClick(i){this.checkbox.focus(),super.onContainerClick(i)}ngAfterViewInit(){this.checkbox&&this.focusMonitor.monitor(this.checkbox._inputElement,!0).subscribe(i=>{this.field.focus=!!i,this.stateChanges.next(),i?this.props.focus&&this.props.focus(this.field):this.props.blur&&this.props.blur(this.field)})}ngAfterViewChecked(){if(this.required!==this._required&&this.checkbox&&this.checkbox._inputElement){this._required=this.required;let i=this.checkbox._inputElement.nativeElement;this.required?this.renderer.setAttribute(i,"required","required"):this.renderer.removeAttribute(i,"required")}}ngOnDestroy(){super.ngOnDestroy(),this.checkbox&&this.focusMonitor.stopMonitoring(this.checkbox._inputElement)}};n.\u0275fac=function(r){return new(r||n)(be(ze),be(oi))},n.\u0275cmp=E({type:n,selectors:[["formly-field-mat-checkbox"]],viewQuery:function(r,o){if(r&1&&ie(ts,7),r&2){let a;j(a=H())&&(o.checkbox=a.first)}},standalone:!1,features:[le],decls:3,vars:10,consts:[[3,"formControl","id","name","formlyAttributes","tabIndex","indeterminate","color","labelPosition"],["aria-hidden","true",1,"mat-form-field-required-marker","mat-mdc-form-field-required-marker"]],template:function(r,o){r&1&&(m(0,"mat-checkbox",0),f(1),V(2,oie,2,0,"span",1),h()),r&2&&(v("formControl",o.formControl)("id",o.id)("name",o.field.name)("formlyAttributes",o.field)("tabIndex",o.props.tabindex)("indeterminate",o.props.indeterminate&&o.formControl.value==null)("color",o.props.color)("labelPosition",o.props.labelPosition),g(),fe(" ",o.props.label," "),g(),B(o.props.required&&o.props.hideRequiredMarker!==!0?2:-1))},dependencies:[Pt,Po,ts,la],encapsulation:2,changeDetection:0});let t=n;return t})();function V3(){return{types:[{name:"checkbox",component:aie,wrappers:["form-field"]},{name:"boolean",extends:"checkbox"}]}}function sie(t,n){if(t&1){let e=q();m(0,"mat-checkbox",1),S("change",function(r){let o=k(e).$implicit,a=x();return T(a.onChange(o.value,r.checked))}),f(1),h()}if(t&2){let e=n.$implicit,i=n.$index,r=x();v("id",r.id+"_"+i)("formlyAttributes",r.field)("tabIndex",r.props.tabindex)("color",r.props.color)("labelPosition",r.props.labelPosition)("checked",r.isChecked(e))("disabled",r.formControl.disabled||e.disabled),g(),fe(" ",e.label," ")}}var lie=(()=>{let n=class n extends uo{constructor(){super(...arguments),this.defaultOptions={props:{hideFieldUnderline:!0,floatLabel:"always",color:"accent"}}}onChange(i,r){this.formControl.markAsDirty(),this.props.type==="array"?this.formControl.patchValue(r?[...this.formControl.value||[],i]:[...this.formControl.value||[]].filter(o=>o!==i)):this.formControl.patchValue(Me(I({},this.formControl.value),{[i]:r})),this.formControl.markAsTouched()}onContainerClick(){}isChecked(i){let r=this.formControl.value;return r&&(this.props.type==="array"?r.indexOf(i.value)!==-1:r[i.value])}};n.\u0275fac=(()=>{let i;return function(o){return(i||(i=ge(n)))(o||n)}})(),n.\u0275cmp=E({type:n,selectors:[["formly-field-mat-multicheckbox"]],viewQuery:function(r,o){if(r&1&&ie(ts,5),r&2){let a;j(a=H())&&(o.checkboxes=a)}},hostVars:1,hostBindings:function(r,o){r&2&&pi("id",o.id)},standalone:!1,features:[le],decls:4,vars:5,consts:[[3,"id","formlyAttributes","tabIndex","color","labelPosition","checked","disabled"],[3,"change","id","formlyAttributes","tabIndex","color","labelPosition","checked","disabled"]],template:function(r,o){r&1&&(Mt(0,sie,2,8,"mat-checkbox",0,Yi),me(2,"formlySelectOptions"),me(3,"async")),r&2&&Et(Re(3,3,Ui(2,0,o.props.options,o.field)))},dependencies:[ts,la,cn,Ih],encapsulation:2,changeDetection:0});let t=n;return t})();function B3(){return{types:[{name:"multicheckbox",component:lie,wrappers:["form-field"]}]}}var cie=t=>({selectOptions:t});function die(t,n){if(t&1){let e=q();m(0,"mat-option",2),S("click",function(){let r=k(e).selectOptions,o=x();return T(o.toggleSelectAll(r))}),M(1,"mat-pseudo-checkbox",3),f(2),h()}if(t&2){let e=n.selectOptions,i=x();g(),v("state",i.getSelectAllState(e)),g(),fe(" ",i.props.selectAllOption," ")}}function uie(t,n){if(t&1&&qe(0,4),t&2){let e=x();x();let i=Te(1);v("ngTemplateOutlet",i)("ngTemplateOutletContext",Wt(2,cie,e))}}function mie(t,n){if(t&1&&(m(0,"mat-option",6),f(1),h()),t&2){let e=n.$implicit;v("value",e.value)("disabled",e.disabled),g(),fe(" ",e.label," ")}}function hie(t,n){if(t&1&&(m(0,"mat-optgroup",5),Mt(1,mie,2,3,"mat-option",6,Yi),h()),t&2){let e=x().$implicit;v("label",e.label),g(),Et(e.group)}}function pie(t,n){if(t&1&&(m(0,"mat-option",6),f(1),h()),t&2){let e=x().$implicit;v("value",e.value)("disabled",e.disabled),g(),N(e.label)}}function fie(t,n){if(t&1&&V(0,hie,3,1,"mat-optgroup",5)(1,pie,2,3,"mat-option",6),t&2){let e=n.$implicit;B(e.group?0:1)}}function gie(t,n){if(t&1&&(V(0,uie,1,4,"ng-container",4),Mt(1,fie,2,1,null,null,Yi)),t&2){let e=x();B(e.props.multiple&&e.props.selectAllOption?0:-1),g(),Et(n)}}var _ie=(()=>{let n=class n extends uo{constructor(){super(...arguments),this.defaultOptions={props:{compareWith(i,r){return i===r}}}}set select(i){Zi(i,["_parentFormField","_textField"],({currentValue:r})=>{r&&(i._preferredOverlayOrigin=i._parentFormField.getConnectedOverlayOrigin())})}getSelectAllState(i){return this.empty||this.value.length===0?null:this.value.length!==this.getSelectAllValue(i).length?"indeterminate":"checked"}toggleSelectAll(i){let r=this.getSelectAllValue(i);this.formControl.markAsDirty(),this.formControl.setValue(!this.value||this.value.length!==r.length?r:[])}change(i){this.props.change?.(this.field,i)}_getAriaLabelledby(){return this.props.attributes?.["aria-labelledby"]?this.props.attributes["aria-labelledby"]:this.formField?._labelId}_getAriaLabel(){return this.props.attributes?.["aria-label"]}getSelectAllValue(i){if(!this.selectAllValue||i!==this.selectAllValue.options){let r=[];i.forEach(o=>o.group?r.push(...o.group):r.push(o)),this.selectAllValue={options:i,value:r.filter(o=>!o.disabled).map(o=>o.value)}}return this.selectAllValue.value}};n.\u0275fac=(()=>{let i;return function(o){return(i||(i=ge(n)))(o||n)}})(),n.\u0275cmp=E({type:n,selectors:[["formly-field-mat-select"]],viewQuery:function(r,o){if(r&1&&ie(Ja,7),r&2){let a;j(a=H())&&(o.select=a.first)}},standalone:!1,features:[le],decls:6,vars:20,consts:[["selectAll",""],[3,"selectionChange","id","formControl","formlyAttributes","placeholder","tabIndex","required","compareWith","multiple","errorStateMatcher","aria-label","aria-labelledby","disableOptionCentering","typeaheadDebounceInterval","panelClass"],[3,"click"],[1,"mat-option-pseudo-checkbox",3,"state"],[3,"ngTemplateOutlet","ngTemplateOutletContext"],[3,"label"],[3,"value","disabled"]],template:function(r,o){if(r&1){let a=q();A(0,die,3,2,"ng-template",null,0,Mi),m(2,"mat-select",1),S("selectionChange",function(l){return k(a),T(o.change(l))}),V(3,gie,3,1),me(4,"formlySelectOptions"),me(5,"async"),h()}if(r&2){let a;g(2),v("id",o.id)("formControl",o.formControl)("formlyAttributes",o.field)("placeholder",o.props.placeholder)("tabIndex",o.props.tabindex)("required",o.required)("compareWith",o.props.compareWith)("multiple",o.props.multiple)("errorStateMatcher",o.errorStateMatcher),pc("aria-label",o._getAriaLabel())("aria-labelledby",o._getAriaLabelledby()),v("disableOptionCentering",o.props.disableOptionCentering)("typeaheadDebounceInterval",o.props.typeaheadDebounceInterval)("panelClass",o.props.panelClass),g(),B((a=Re(5,18,Ui(4,15,o.props.options,o.field)))?3:-1,a)}},dependencies:[$n,Pt,Fo,Po,Ja,Sn,PS,nu,la,cn,Ih],encapsulation:2,changeDetection:0});let t=n;return t})();function j3(){return{types:[{name:"select",component:_ie,wrappers:["form-field"]},{name:"enum",extends:"select"}]}}function H3(){return[S3(),O3(),R3(),F3(),V3(),B3(),j3()]}var Og=class{},U3=(()=>{class t{handle(e){return e.key}static \u0275fac=function(i){return new(i||t)};static \u0275prov=R({token:t,factory:t.\u0275fac})}return t})(),Ah=class{},$3=(()=>{class t extends Ah{compile(e,i){return e}compileTranslations(e,i){return e}static \u0275fac=(()=>{let e;return function(r){return(e||(e=ge(t)))(r||t)}})();static \u0275prov=R({token:t,factory:t.\u0275fac})}return t})(),Vc=class{},W3=(()=>{class t extends Vc{getTranslation(e){return Q({})}static \u0275fac=(()=>{let e;return function(r){return(e||(e=ge(t)))(r||t)}})();static \u0275prov=R({token:t,factory:t.\u0275fac})}return t})();function Rg(t,n){if(t===n)return!0;if(t===null||n===null)return!1;if(t!==t&&n!==n)return!0;let e=typeof t,i=typeof n,r;if(e==i&&e=="object")if(Array.isArray(t)){if(!Array.isArray(n))return!1;if((r=t.length)==n.length){for(let o=0;oTx(n));if(Il(t)){let n={};return Object.keys(t).forEach(e=>{n[e]=Tx(t[e])}),n}else return t}function Rk(t,n){if(!Ag(t))return Tx(n);let e=Tx(t);return Ag(e)&&Ag(n)&&Object.keys(n).forEach(i=>{Il(n[i])?i in t?e[i]=Rk(t[i],n[i]):Object.assign(e,{[i]:n[i]}):Object.assign(e,{[i]:n[i]})}),e}function G3(t,n){let e=n.split(".");n="";do{n+=e.shift();let i=!e.length;if(Lo(t)){if(Il(t)&&z3(t[n])&&(Il(t[n])||yu(t[n])||i)){t=t[n],n="";continue}if(yu(t)){let r=parseInt(n,10);if(z3(t[r])&&(Il(t[r])||yu(t[r])||i)){t=t[r],n="";continue}}}if(i){t=void 0;continue}n+="."}while(e.length);return t}function vie(t,n,e){return Rk(t,yie(n,e))}function yie(t,n){return t.split(".").reduceRight((e,i)=>({[i]:e}),n)}var Oh=class{},q3=(()=>{class t extends Oh{templateMatcher=/{{\s?([^{}\s]*)\s?}}/g;interpolate(e,i){if(Pg(e))return this.interpolateString(e,i);if(bie(e))return this.interpolateFunction(e,i)}interpolateFunction(e,i){return e(i)}interpolateString(e,i){return i?e.replace(this.templateMatcher,(r,o)=>{let a=this.getInterpolationReplacement(i,o);return a!==void 0?a:r}):e}getInterpolationReplacement(e,i){return this.formatValue(G3(e,i))}formatValue(e){if(Pg(e))return e;if(typeof e=="number"||typeof e=="boolean")return e.toString();if(e===null)return"null";if(yu(e))return e.join(", ");if(Ag(e))return typeof e.toString=="function"&&e.toString!==Object.prototype.toString?e.toString():JSON.stringify(e)}static \u0275fac=(()=>{let e;return function(r){return(e||(e=ge(t)))(r||t)}})();static \u0275prov=R({token:t,factory:t.\u0275fac})}return t})(),Ik=(()=>{class t{_onTranslationChange=new z;_onLangChange=new z;_onFallbackLangChange=new z;fallbackLang=null;currentLang;translations={};languages=[];getTranslations(e){return this.translations[e]}setTranslations(e,i,r){this.translations[e]=r&&this.hasTranslationFor(e)?Rk(this.translations[e],i):i,this.addLanguages([e]),this._onTranslationChange.next({lang:e,translations:this.getTranslations(e)})}getLanguages(){return this.languages}getCurrentLang(){return this.currentLang}getFallbackLang(){return this.fallbackLang}setFallbackLang(e,i=!0){this.fallbackLang=e,i&&this._onFallbackLangChange.next({lang:e,translations:this.translations[e]})}setCurrentLang(e,i=!0){this.currentLang=e,i&&this._onLangChange.next({lang:e,translations:this.translations[e]})}get onTranslationChange(){return this._onTranslationChange.asObservable()}get onLangChange(){return this._onLangChange.asObservable()}get onFallbackLangChange(){return this._onFallbackLangChange.asObservable()}addLanguages(e){this.languages=Array.from(new Set([...this.languages,...e]))}hasTranslationFor(e){return typeof this.translations[e]<"u"}deleteTranslations(e){delete this.translations[e]}getTranslation(e){let i=this.getValue(this.currentLang,e);return i===void 0&&this.fallbackLang!=null&&this.fallbackLang!==this.currentLang&&(i=this.getValue(this.fallbackLang,e)),i}getValue(e,i){return G3(this.getTranslations(e),i)}static \u0275fac=function(i){return new(i||t)};static \u0275prov=R({token:t,factory:t.\u0275fac})}return t})(),Ak=new O("TRANSLATE_CONFIG"),Ig=t=>qi(t)?t:Q(t);var ca=(()=>{class t{loadingTranslations;pending=!1;_translationRequests={};lastUseLanguage=null;currentLoader=u(Vc);compiler=u(Ah);parser=u(Oh);missingTranslationHandler=u(Og);store=u(Ik);extend=!1;get onTranslationChange(){return this.store.onTranslationChange}get onLangChange(){return this.store.onLangChange}get onFallbackLangChange(){return this.store.onFallbackLangChange}get onDefaultLangChange(){return this.store.onFallbackLangChange}constructor(){let e=I({extend:!1,fallbackLang:null},u(Ak,{optional:!0}));e.lang&&this.use(e.lang),e.fallbackLang&&this.setFallbackLang(e.fallbackLang),e.extend&&(this.extend=!0)}setFallbackLang(e){this.getFallbackLang()||this.store.setFallbackLang(e,!1);let i=this.loadOrExtendLanguage(e);return qi(i)?(i.pipe(mt(1)).subscribe({next:()=>{this.store.setFallbackLang(e)},error:()=>{}}),i):(this.store.setFallbackLang(e),Q(this.store.getTranslations(e)))}use(e){this.lastUseLanguage=e,this.getCurrentLang()||this.store.setCurrentLang(e,!1);let i=this.loadOrExtendLanguage(e);return qi(i)?(i.pipe(mt(1)).subscribe({next:()=>{this.changeLang(e)},error:()=>{}}),i):(this.changeLang(e),Q(this.store.getTranslations(e)))}loadOrExtendLanguage(e){if(!this.store.hasTranslationFor(e)||this.extend)return this._translationRequests[e]=this._translationRequests[e]||this.loadAndCompileTranslations(e),this._translationRequests[e]}changeLang(e){e===this.lastUseLanguage&&this.store.setCurrentLang(e)}getCurrentLang(){return this.store.getCurrentLang()}loadAndCompileTranslations(e){this.pending=!0;let i=this.currentLoader.getTranslation(e).pipe(vd(1),mt(1));return this.loadingTranslations=i.pipe(se(r=>this.compiler.compileTranslations(r,e)),vd(1),mt(1)),this.loadingTranslations.subscribe({next:r=>{this.store.setTranslations(e,r,this.extend),this.pending=!1},error:r=>{this.pending=!1}}),i}setTranslation(e,i,r=!1){let o=this.compiler.compileTranslations(i,e);this.store.setTranslations(e,o,r||this.extend)}getLangs(){return this.store.getLanguages()}addLangs(e){this.store.addLanguages(e)}getParsedResultForKey(e,i){let r=this.getTextToInterpolate(e);if(Lo(r))return this.runInterpolation(r,i);let o=this.missingTranslationHandler.handle(I({key:e,translateService:this},i!==void 0&&{interpolateParams:i}));return o!==void 0?o:e}getFallbackLang(){return this.store.getFallbackLang()}getTextToInterpolate(e){return this.store.getTranslation(e)}runInterpolation(e,i){if(Lo(e))return yu(e)?this.runInterpolationOnArray(e,i):Il(e)?this.runInterpolationOnDict(e,i):this.parser.interpolate(e,i)}runInterpolationOnArray(e,i){return e.map(r=>this.runInterpolation(r,i))}runInterpolationOnDict(e,i){let r={};for(let o in e){let a=this.runInterpolation(e[o],i);a!==void 0&&(r[o]=a)}return r}getParsedResult(e,i){return e instanceof Array?this.getParsedResultForArray(e,i):this.getParsedResultForKey(e,i)}getParsedResultForArray(e,i){let r={},o=!1;for(let s of e)r[s]=this.getParsedResultForKey(s,i),o=o||qi(r[s]);if(!o)return r;let a=e.map(s=>Ig(r[s]));return ls(a).pipe(se(s=>{let l={};return s.forEach((c,d)=>{l[e[d]]=c}),l}))}get(e,i){if(!Lo(e)||!e.length)throw new Error('Parameter "key" is required and cannot be empty');return this.pending?this.loadingTranslations.pipe(jo(()=>Ig(this.getParsedResult(e,i)))):Ig(this.getParsedResult(e,i))}getStreamOnTranslationChange(e,i){if(!Lo(e)||!e.length)throw new Error('Parameter "key" is required and cannot be empty');return Co(Fn(()=>this.get(e,i)),this.onTranslationChange.pipe(je(()=>{let r=this.getParsedResult(e,i);return Ig(r)})))}stream(e,i){if(!Lo(e)||!e.length)throw new Error('Parameter "key" required');return Co(Fn(()=>this.get(e,i)),this.onLangChange.pipe(je(()=>{let r=this.getParsedResult(e,i);return Ig(r)})))}instant(e,i){if(!Lo(e)||e.length===0)throw new Error('Parameter "key" is required and cannot be empty');let r=this.getParsedResult(e,i);return qi(r)?Array.isArray(e)?e.reduce((o,a)=>(o[a]=a,o),{}):e:r}set(e,i,r=this.getCurrentLang()){this.store.setTranslations(r,vie(this.store.getTranslations(r),e,Pg(i)?this.compiler.compile(i,r):this.compiler.compileTranslations(i,r)),!1)}reloadLang(e){return this.resetLang(e),this.loadAndCompileTranslations(e)}resetLang(e){delete this._translationRequests[e],this.store.deleteTranslations(e)}static getBrowserLang(){if(typeof window>"u"||!window.navigator)return;let e=this.getBrowserCultureLang();return e?e.split(/[-_]/)[0]:void 0}static getBrowserCultureLang(){if(!(typeof window>"u"||typeof window.navigator>"u"))return window.navigator.languages?window.navigator.languages[0]:window.navigator.language||window.navigator.browserLanguage||window.navigator.userLanguage}getBrowserLang(){return t.getBrowserLang()}getBrowserCultureLang(){return t.getBrowserCultureLang()}get defaultLang(){return this.getFallbackLang()}get currentLang(){return this.store.getCurrentLang()}get langs(){return this.store.getLanguages()}setDefaultLang(e){return this.setFallbackLang(e)}getDefaultLang(){return this.getFallbackLang()}static \u0275fac=function(i){return new(i||t)};static \u0275prov=R({token:t,factory:t.\u0275fac})}return t})(),Y3=(()=>{class t{translateService=u(ca);element=u(Y);_ref=u(ye);key;lastParams;currentParams;onLangChangeSub;onFallbackLangChangeSub;onTranslationChangeSub;set translate(e){e&&(this.key=e,this.checkNodes())}set translateParams(e){Rg(this.currentParams,e)||(this.currentParams=e,this.checkNodes(!0))}constructor(){this.onTranslationChangeSub||(this.onTranslationChangeSub=this.translateService.onTranslationChange.subscribe(e=>{e.lang===this.translateService.currentLang&&this.checkNodes(!0,e.translations)})),this.onLangChangeSub||(this.onLangChangeSub=this.translateService.onLangChange.subscribe(e=>{this.checkNodes(!0,e.translations)})),this.onFallbackLangChangeSub||(this.onFallbackLangChangeSub=this.translateService.onFallbackLangChange.subscribe(e=>{this.checkNodes(!0)}))}ngAfterViewChecked(){this.checkNodes()}checkNodes(e=!1,i){let r=this.element.nativeElement.childNodes;r.length||(this.setContent(this.element.nativeElement,this.key),r=this.element.nativeElement.childNodes),r.forEach(o=>{let a=o;if(a.nodeType===3){let s;if(e&&(a.lastKey=null),Lo(a.lookupKey))s=a.lookupKey;else if(this.key)s=this.key;else{let l=this.getContent(a),c=l.trim();c.length&&(a.lookupKey=c,l!==a.currentValue?(s=c,a.originalContent=l||a.originalContent):a.originalContent&&(s=a.originalContent.trim()))}this.updateValue(s,a,i)}})}updateValue(e,i,r){if(e){if(i.lastKey===e&&this.lastParams===this.currentParams)return;this.lastParams=this.currentParams;let o=a=>{(a!==e||!i.lastKey)&&(i.lastKey=e),i.originalContent||(i.originalContent=this.getContent(i)),Pg(a)?i.currentValue=a:Lo(a)?i.currentValue=JSON.stringify(a):i.currentValue=i.originalContent||e,this.setContent(i,this.key?i.currentValue:i.originalContent.replace(e,i.currentValue)),this._ref.markForCheck()};if(Lo(r)){let a=this.translateService.getParsedResult(e,this.currentParams);qi(a)?a.subscribe({next:o}):o(a)}else this.translateService.get(e,this.currentParams).subscribe(o)}}getContent(e){return Lo(e.textContent)?e.textContent:e.data}setContent(e,i){Lo(e.textContent)?e.textContent=i:e.data=i}ngOnDestroy(){this.onLangChangeSub&&this.onLangChangeSub.unsubscribe(),this.onFallbackLangChangeSub&&this.onFallbackLangChangeSub.unsubscribe(),this.onTranslationChangeSub&&this.onTranslationChangeSub.unsubscribe()}static \u0275fac=function(i){return new(i||t)};static \u0275dir=P({type:t,selectors:[["","translate",""],["","ngx-translate",""]],inputs:{translate:"translate",translateParams:"translateParams"}})}return t})(),Or=(()=>{class t{translate=u(ca);_ref=u(ye);value="";lastKey=null;lastParams=[];onTranslationChange;onLangChange;onFallbackLangChange;updateValue(e,i,r){let o=a=>{this.value=a!==void 0?a:e,this.lastKey=e,this._ref.markForCheck()};if(r){let a=this.translate.getParsedResult(e,i);qi(a)?a.subscribe(o):o(a)}this.translate.get(e,i).subscribe(o)}transform(e,...i){if(!e||!e.length)return e;if(Rg(e,this.lastKey)&&Rg(i,this.lastParams))return this.value;let r;if(Lo(i[0])&&i.length)if(Pg(i[0])&&i[0].length){let o=i[0].replace(/(')?([a-zA-Z0-9_]+)(')?(\s)?:/g,'"$2":').replace(/:(\s)?(')(.*?)(')/g,':"$3"');try{r=JSON.parse(o)}catch(a){throw new SyntaxError(`Wrong parameter in TranslatePipe. Expected a valid Object, received: ${i[0]}`)}}else Il(i[0])&&(r=i[0]);return this.lastKey=e,this.lastParams=i,this.updateValue(e,r),this._dispose(),this.onTranslationChange||(this.onTranslationChange=this.translate.onTranslationChange.subscribe(o=>{(this.lastKey&&o.lang===this.translate.getCurrentLang()||o.lang===this.translate.getFallbackLang())&&(this.lastKey=null,this.updateValue(e,r,o.translations))})),this.onLangChange||(this.onLangChange=this.translate.onLangChange.subscribe(o=>{this.lastKey&&(this.lastKey=null,this.updateValue(e,r,o.translations))})),this.onFallbackLangChange||(this.onFallbackLangChange=this.translate.onFallbackLangChange.subscribe(()=>{this.lastKey&&(this.lastKey=null,this.updateValue(e,r))})),this.value}_dispose(){typeof this.onTranslationChange<"u"&&(this.onTranslationChange.unsubscribe(),this.onTranslationChange=void 0),typeof this.onLangChange<"u"&&(this.onLangChange.unsubscribe(),this.onLangChange=void 0),typeof this.onFallbackLangChange<"u"&&(this.onFallbackLangChange.unsubscribe(),this.onFallbackLangChange=void 0)}ngOnDestroy(){this._dispose()}static \u0275fac=function(i){return new(i||t)};static \u0275pipe=io({name:"translate",type:t,pure:!1});static \u0275prov=R({token:t,factory:t.\u0275fac})}return t})();function Q3(t){return{provide:Vc,useClass:t}}function K3(t){return{provide:Ah,useClass:t}}function Z3(t){return{provide:Oh,useClass:t}}function X3(t){return{provide:Og,useClass:t}}function J3(t={}){return Ok(I({compiler:K3($3),parser:Z3(q3),loader:Q3(W3),missingTranslationHandler:X3(U3)},t),!0)}function Ok(t={},n){let e=[];t.loader&&e.push(t.loader),t.compiler&&e.push(t.compiler),t.parser&&e.push(t.parser),t.missingTranslationHandler&&e.push(t.missingTranslationHandler),n&&e.push(Ik),(t.useDefaultLang||t.defaultLanguage)&&(console.warn("The `useDefaultLang` and `defaultLanguage` options are deprecated. Please use `fallbackLang` instead."),t.useDefaultLang===!0&&t.defaultLanguage&&(t.fallbackLang=t.defaultLanguage));let i={fallbackLang:t.fallbackLang??null,lang:t.lang,extend:t.extend??!1};return e.push({provide:Ak,useValue:i}),e.push({provide:ca,useClass:ca,deps:[Ik,Vc,Ah,Oh,Og,Ak]}),e}var Rr=(()=>{class t{static forRoot(e={}){return{ngModule:t,providers:[...Ok(I({compiler:K3($3),parser:Z3(q3),loader:Q3(W3),missingTranslationHandler:X3(U3)},e),!0)]}}static forChild(e={}){return{ngModule:t,providers:[...Ok(e,e.isolate??!1)]}}static \u0275fac=function(i){return new(i||t)};static \u0275mod=ee({type:t});static \u0275inj=J({})}return t})();var Pk=new O("TRANSLATE_HTTP_LOADER_CONFIG"),xie=(()=>{class t{http;config;constructor(){this.config=I({prefix:"/assets/i18n/",suffix:".json",enforceLoading:!1,useHttpBackend:!1},u(Pk)),this.http=this.config.useHttpBackend?new kr(u(fc)):u(kr)}getTranslation(e){let i=this.config.enforceLoading?`?enforceLoading=${Date.now()}`:"";return this.http.get(`${this.config.prefix}${e}${this.config.suffix}${i}`)}static \u0275fac=function(i){return new(i||t)};static \u0275prov=R({token:t,factory:t.\u0275fac})}return t})();function ej(t={}){let n=t.useHttpBackend??!1;return[{provide:Pk,useValue:t},{provide:Vc,useClass:xie,deps:[n?fc:kr,Pk]}]}var Fk=class{constructor(n){this.options=n,n.vcr?this.ref=n.vcr.createComponent(n.component,{index:n.vcr.length,injector:n.injector||n.vcr.injector}):(this.ref=Am(n.component,{elementInjector:n.injector,environmentInjector:n.environmentInjector}),n.appRef.attachView(this.ref.hostView))}setInput(n,e){return this.ref.setInput(n,e),this}setInputs(n){return Object.keys(n).forEach(e=>{this.ref.setInput(e,n[e])}),this}detectChanges(){return this.ref.hostView.detectChanges(),this}updateContext(n){return this.options.contextSignal?.set(n),this}appendTo(n){return n.appendChild(this.getElement()),this}removeFrom(n){return n.removeChild(this.getElement()),this}getRawContent(){return this.getElement().outerHTML}getElement(){return this.ref.location.nativeElement}destroy(){this.ref.destroy(),!this.options.vcr&&this.options.appRef.detachView(this.ref.hostView),this.ref=null}};function Fg(t){return t instanceof te}function Cu(t){return typeof t=="function"}function tj(t){return typeof t=="string"}var Nk=class{constructor(n){this.args=n,this.args.vcr?(this.ref=this.args.vcr.createEmbeddedView(this.args.tpl,this.args.context||{},{injector:n.injector}),this.ref.detectChanges()):(this.ref=this.args.tpl.createEmbeddedView(this.args.context||{},n.injector),this.ref.detectChanges(),this.args.appRef.attachView(this.ref))}detectChanges(){return this.ref.detectChanges(),this}getElement(){let n=this.ref.rootNodes;return n.length===1&&n[0]===Node.ELEMENT_NODE?this.element=n[0]:(this.element=document.createElement("div"),this.element.append(...n)),this.element}destroy(){this.ref.rootNodes[0]!==1&&(this.element?.parentNode.removeChild(this.element),this.element=null),this.args.vcr||this.args.appRef.detachView(this.ref),this.ref.destroy(),this.ref=null}updateContext(n){return Object.assign(this.ref.context,n),this}},Lk=class{constructor(n){this.value=n}getElement(){return this.value}detectChanges(){return this}updateContext(){return this}destroy(){}},Cie=new O("Component context"),Vk=(()=>{let n=class n{constructor(){this.injector=u(de),this.appRef=u(tr),this.environmentInjector=u(ti)}createComponent(i,r={}){let o=r.injector??this.injector,a;return r.context&&(a=he(r.context),o=de.create({providers:[{provide:Cie,useValue:a.asReadonly()}],parent:o})),new Fk({component:i,vcr:r.vcr,injector:o,appRef:this.appRef,environmentInjector:r.environmentInjector||this.environmentInjector,contextSignal:a})}createTemplate(i,r={}){return new Nk({vcr:r.vcr,appRef:this.appRef,tpl:i,context:r.context,injector:r.injector})}createView(i,r={}){if(Fg(i))return this.createTemplate(i,r);if(Cu(i))return this.createComponent(i,r);if(tj(i))return new Lk(i);throw"Type of content is not supported"}};n.\u0275fac=function(r){return new(r||n)},n.\u0275prov=R({token:n,factory:n.\u0275fac,providedIn:"root"});let t=n;return t})();var wie=(()=>{let n=class n{constructor(){this.content=re()}};n.\u0275fac=function(r){return new(r||n)},n.\u0275cmp=E({type:n,selectors:[["dynamic-view"]],inputs:{content:[1,"content"]},decls:1,vars:1,consts:[[3,"innerHTML"]],template:function(r,o){r&1&&ni(0,"div",0),r&2&&pi("innerHTML",o.content(),rf)},encapsulation:2});let t=n;return t})(),Ix=(()=>{let n=class n{constructor(){this.view=re(void 0,{alias:"dynamicView"}),this.injector=re(void 0,{alias:"dynamicViewInjector"}),this.context=re(void 0,{alias:"dynamicViewContext"}),this.inputs=re(void 0,{alias:"dynamicViewInputs"}),this.defaultTpl=u(te),this.vcr=u(st),this.viewService=u(Vk)}ngOnInit(){this.resolveContentType()}ngOnChanges(i){let r=i.view&&!i.view.isFirstChange(),o=i.context&&!i.context.isFirstChange(),a=i.inputs&&!i.inputs.isFirstChange();r?this.resolveContentType():o?this.viewRef.updateContext(this.context()):Cu(this.view())&&a&&this.viewRef.setInputs(this.inputs()||{})}resolveContentType(){this.viewRef?.destroy();let i=this.view(),r=this.injector(),o=this.context();if(tj(i))(this.viewRef=this.viewService.createComponent(wie,{vcr:this.vcr,injector:r})).setInput("content",i).detectChanges();else if(Cu(i)){this.viewRef=this.viewService.createComponent(i,{vcr:this.vcr,injector:r??this.vcr.injector,context:o});let a=this.inputs();a&&this.viewRef.setInputs(a)}else this.viewRef=this.viewService.createView(i||this.defaultTpl,{vcr:this.vcr,injector:r??this.vcr.injector,context:o})}ngOnDestroy(){this.viewRef?.destroy()}};n.\u0275fac=function(r){return new(r||n)},n.\u0275dir=P({type:n,selectors:[["","dynamicView",""]],inputs:{view:[1,"dynamicView","view"],injector:[1,"dynamicViewInjector","injector"],context:[1,"dynamicViewContext","context"],inputs:[1,"dynamicViewInputs","inputs"]},features:[Oe]});let t=n;return t})();function Die(t,n){if(t&1&&(f(0,` + `),M(1,"hot-toast-loader",1),f(2,` + `)),t&2){let e=x(2);g(),v("theme",e.theme)}}function Mie(t,n){if(t&1&&(f(0,` + `),m(1,"div"),f(2,` + `),M(3,"hot-toast-error",1),f(4,` + `),h(),f(5,` + `)),t&2){let e=x(3);g(3),v("theme",e.theme)}}function Eie(t,n){if(t&1&&(f(0,` + `),m(1,"div"),f(2,` + `),M(3,"hot-toast-checkmark",1),f(4,` + `),h(),f(5,` + `)),t&2){let e=x(3);g(3),v("theme",e.theme)}}function Sie(t,n){if(t&1&&(f(0,` + `),m(1,"div"),f(2,` + `),M(3,"hot-toast-warning",1),f(4,` + `),h(),f(5,` + `)),t&2){let e=x(3);g(3),v("theme",e.theme)}}function kie(t,n){if(t&1&&(f(0,` + `),m(1,"div"),f(2,` + `),M(3,"hot-toast-info",1),f(4,` + `),h(),f(5,` + `)),t&2){let e=x(3);g(3),v("theme",e.theme)}}function Tie(t,n){if(t&1&&(f(0,` + `),m(1,"div",2),f(2,` + `),m(3,"div"),f(4,` + `),V(5,Mie,6,1)(6,Eie,6,1)(7,Sie,6,1)(8,kie,6,1),f(9,` + `),h(),f(10,` + `),h(),f(11,` + `)),t&2){let e,i=x(2);g(5),B((e=i.type)==="error"?5:e==="success"?6:e==="warning"?7:e==="info"?8:-1)}}function Iie(t,n){if(t&1&&(f(0,` +`),m(1,"div",0),f(2,` + `),V(3,Die,3,1),V(4,Tie,12,1),h(),f(5,` +`)),t&2){let e=x();g(3),B(e.type==="loading"?3:-1),g(),B(e.type!=="loading"?4:-1)}}function Aie(t,n){t&1&&qe(0)}var oj=["hotToastBarBase"];function Oie(t,n){if(t&1&&(f(0,` + `),m(1,"hot-toast-animated-icon",7),f(2),h(),f(3,` + `)),t&2){let e=x(2);g(),v("iconTheme",e.toast.iconTheme),g(),N(e.toast.icon)}}function Rie(t,n){t&1&&qe(0)}function Pie(t,n){if(t&1&&(f(0,` + `),m(1,"div"),f(2,` + `),A(3,Rie,1,0,"ng-container",8),f(4,` + `),h(),f(5,` + `)),t&2){let e=x(2);g(3),v("dynamicView",e.toast.icon)}}function Fie(t,n){if(t&1&&(f(0," "),V(1,Oie,4,2)(2,Pie,6,1)),t&2){let e=x();g(),B(e.isIconString?1:2)}}function Nie(t,n){if(t&1&&(f(0,` + `),M(1,"hot-toast-indicator",9),f(2,` + `)),t&2){let e=x();g(),v("theme",e.toast.iconTheme)("type",e.toast.type)}}function Lie(t,n){t&1&&qe(0)}function Vie(t,n){if(t&1){let e=q();f(0,` + `),m(1,"button",10),S("click",function(){k(e);let r=x();return T(r.close())}),h(),f(2,` + `)}if(t&2){let e=x();g(),gl(e.toast.closeStyle)}}var Bie=(t,n)=>n.id;function jie(t,n){if(t&1&&(f(0,` + `),M(1,"hot-toast-animated-icon",7),f(2,` + `)),t&2){let e=x(2);g(),v("iconTheme",e.toast.iconTheme)("icon",e.toast.icon)}}function Hie(t,n){t&1&&qe(0)}function zie(t,n){if(t&1&&(f(0,` + `),m(1,"div"),f(2,` + `),A(3,Hie,1,0,"ng-container",8),f(4,` + `),h(),f(5,` + `)),t&2){let e=x(2);g(3),v("dynamicView",e.toast.icon)}}function Uie(t,n){if(t&1&&(f(0," "),V(1,jie,3,2)(2,zie,6,1)),t&2){let e=x();g(),B(e.isIconString?1:2)}}function $ie(t,n){if(t&1&&(f(0,` + `),M(1,"hot-toast-indicator",9),f(2,` + `)),t&2){let e=x();g(),v("theme",e.toast.iconTheme)("type",e.toast.type)}}function Wie(t,n){t&1&&qe(0)}function Gie(t,n){if(t&1){let e=q();f(0,` + `),m(1,"button",10),S("click",function(){k(e);let r=x();return T(r.toggleToastGroup())}),h(),f(2,` + `)}if(t&2){let e=x();g(),gl(e.toast.group.btnStyle),G("expanded",e.isExpanded),X("aria-label",e.isExpanded?"Collapse":"Expand")}}function qie(t,n){if(t&1){let e=q();f(0,` + `),m(1,"button",11),S("click",function(){k(e);let r=x();return T(r.close())}),h(),f(2,` + `)}if(t&2){let e=x();g(),gl(e.toast.closeStyle)}}function Yie(t,n){if(t&1){let e=q();f(0,` + `),m(1,"hot-toast-group-item",13),S("height",function(r){let o=k(e).$implicit,a=x(2);return T(a.updateHeight(r,o))})("beforeClosed",function(){let r=k(e).$implicit,o=x(2);return T(o.beforeClosedGroupItem(r))})("afterClosed",function(r){k(e);let o=x(2);return T(o.afterClosedGroupItem(r))}),h(),f(2,` + `)}if(t&2){let e=n.$implicit,i=n.$index,r=x(2);g(),v("toast",e)("offset",r.calculateOffset(e.id))("toastRef",r.toastRef.groupRefs[i])("toastsAfter",(e.autoClose?r.groupChildrenToasts.length:r.visibleToasts.length)-1-i)("defaultConfig",r.defaultConfig)("isShowingAllToasts",r.isShowingAllToasts)}}function Qie(t,n){if(t&1&&(f(0,` + `),m(1,"div",12),f(2,` + `),Mt(3,Yie,3,6,null,null,Bie),h(),f(5,` + `)),t&2){let e=x();g(),at(e.toast.group==null?null:e.toast.group.className),At("--hot-toast-group-height",e.groupHeight+"px"),g(2),Et(e.groupChildrenToasts)}}function Kie(t,n){t&1&&f(0,` + `)}function Zie(t,n){if(t&1){let e=q();f(0,` + `),m(1,"hot-toast",2),S("showAllToasts",function(r){k(e);let o=x(2);return T(o.showAllToasts(r))})("height",function(r){k(e);let o=x().$implicit,a=x();return T(a.updateHeight(r,o))})("beforeClosed",function(){k(e);let r=x().$implicit,o=x();return T(o.beforeClosed(r))})("afterClosed",function(r){k(e);let o=x(2);return T(o.afterClosed(r))})("toggleGroup",function(r){k(e);let o=x(2);return T(o.toggleGroup(r))}),h(),f(2,` + `)}if(t&2){let e=x(),i=e.$implicit,r=e.$index,o=x();g(),v("toast",i)("offset",o.calculateOffset(i.id,i.position))("toastRef",o.toastRefs[r])("toastsAfter",(i.autoClose?o.toasts.length:o.getVisibleToasts(i.position).length)-1-r)("defaultConfig",o.defaultConfig)("isShowingAllToasts",o.isShowingAllToasts)}}function Xie(t,n){if(t&1&&(f(0,` + `),V(1,Kie,1,0)(2,Zie,3,6)),t&2){let e=n.$implicit;g(),B(e.group!=null&&e.group.parent?1:2)}}var ij={blank:4e3,error:4e3,success:4e3,loading:3e4,warning:4e3,info:4e3},Rh=800,Ax=350,Jie=8,jk=.05,ene=1,Ng=class{constructor(n){this.toast=n,this.groupRefs=[],this.groupExpanded=!1,this._onClosed=new z,this._onGroupToggle=new z}set data(n){this.toast.data=n}get data(){return this.toast.data}set dispose(n){this._dispose=n}getToast(){return this.toast}appendTo(n,e){let{dispose:i,updateMessage:r,updateToast:o,afterClosed:a,afterGroupToggled:s,afterGroupRefsAttached:l}=n.addToast(this,e);return this.dispose=i,this.updateMessage=r,this.updateToast=o,this.afterClosed=Ku(this._onClosed.asObservable(),a),this.afterGroupToggled=Ku(this._onGroupToggle.asObservable(),s),this.afterGroupRefsAttached=l,this}close(n={dismissedByAction:!1}){this.groupRefs.forEach(e=>e.close()),this._dispose(),this._onClosed.next({dismissedByAction:n.dismissedByAction,id:this.toast.id}),this._onClosed.complete()}toggleGroup(n={byAction:!1}){this.groupExpanded=!this.groupExpanded,this._onGroupToggle.next({byAction:n.byAction,id:this.toast.id,event:this.groupExpanded?"expand":"collapse"})}show(){this.toast.visible=!0}},Ox=(t,n,e)=>{t.setStyle(n,"animation",e)},tne=(()=>{let n=class n{};n.\u0275fac=function(r){return new(r||n)},n.\u0275cmp=E({type:n,selectors:[["hot-toast-loader"]],inputs:{theme:"theme"},decls:2,vars:4,consts:[[1,"hot-toast-loader-icon"]],template:function(r,o){r&1&&(ni(0,"div",0),f(1,` +`)),r&2&&At("border-color",o.theme==null?null:o.theme.primary)("border-right-color",o.theme==null?null:o.theme.secondary)},encapsulation:2,changeDetection:0});let t=n;return t})(),ine=(()=>{let n=class n{};n.\u0275fac=function(r){return new(r||n)},n.\u0275cmp=E({type:n,selectors:[["hot-toast-error"]],inputs:{theme:"theme"},decls:2,vars:4,consts:[[1,"hot-toast-error-icon"]],template:function(r,o){r&1&&(ni(0,"div",0),f(1,` +`)),r&2&&At("--error-primary",o.theme==null?null:o.theme.primary)("--error-secondary",o.theme==null?null:o.theme.secondary)},encapsulation:2,changeDetection:0});let t=n;return t})(),nne=(()=>{let n=class n{};n.\u0275fac=function(r){return new(r||n)},n.\u0275cmp=E({type:n,selectors:[["hot-toast-checkmark"]],inputs:{theme:"theme"},decls:2,vars:4,consts:[[1,"hot-toast-checkmark-icon"]],template:function(r,o){r&1&&(ni(0,"div",0),f(1,` +`)),r&2&&At("--check-primary",o.theme==null?null:o.theme.primary)("--check-secondary",o.theme==null?null:o.theme.secondary)},encapsulation:2,changeDetection:0});let t=n;return t})(),rne=(()=>{let n=class n{};n.\u0275fac=function(r){return new(r||n)},n.\u0275cmp=E({type:n,selectors:[["hot-toast-warning"]],inputs:{theme:"theme"},decls:2,vars:4,consts:[[1,"hot-toast-warning-icon"]],template:function(r,o){r&1&&(ni(0,"div",0),f(1,` +`)),r&2&&At("--warn-primary",o.theme==null?null:o.theme.primary)("--warn-secondary",o.theme==null?null:o.theme.secondary)},encapsulation:2,changeDetection:0});let t=n;return t})(),one=(()=>{let n=class n{};n.\u0275fac=function(r){return new(r||n)},n.\u0275cmp=E({type:n,selectors:[["hot-toast-info"]],inputs:{theme:"theme"},decls:2,vars:4,consts:[[1,"hot-toast-info-icon"]],template:function(r,o){r&1&&(ni(0,"div",0),f(1,` +`)),r&2&&At("--info-primary",o.theme==null?null:o.theme.primary)("--info-secondary",o.theme==null?null:o.theme.secondary)},encapsulation:2,changeDetection:0});let t=n;return t})(),aj=(()=>{let n=class n{};n.\u0275fac=function(r){return new(r||n)},n.\u0275cmp=E({type:n,selectors:[["hot-toast-indicator"]],inputs:{theme:"theme",type:"type"},decls:1,vars:1,consts:[[1,"hot-toast-indicator-wrapper"],[3,"theme"],[1,"hot-toast-status-wrapper"]],template:function(r,o){r&1&&V(0,Iie,6,2),r&2&&B(o.type!=="blank"?0:-1)},dependencies:[tne,ine,nne,rne,one],encapsulation:2,changeDetection:0});let t=n;return t})(),sj=(()=>{let n=class n{};n.\u0275fac=function(r){return new(r||n)},n.\u0275cmp=E({type:n,selectors:[["hot-toast-animated-icon"]],inputs:{iconTheme:"iconTheme",icon:"icon"},decls:5,vars:3,consts:[[1,"hot-toast-animated-icon"],[4,"dynamicView"]],template:function(r,o){r&1&&(m(0,"div",0),f(1,` + `),A(2,Aie,1,0,"ng-container",1),f(3,` +`),h(),f(4,` +`)),r&2&&(At("color",o.iconTheme==null?null:o.iconTheme.primary),g(2),v("dynamicView",o.icon))},dependencies:[Ix],encapsulation:2,changeDetection:0});let t=n;return t})(),ane=(()=>{let n=class n{constructor(){this.offset=0,this._toastsAfter=0,this.isShowingAllToasts=!1,this.height=new U,this.beforeClosed=new U,this.afterClosed=new U,this.showAllToasts=new U,this.toggleGroup=new U,this.isManualClose=!1,this.toastBarBaseStylesSignal=he({}),this.unlisteners=[],this.softClosed=!1,this.injector=u(de),this.renderer=u(ze),this.ngZone=u(ae),this.cdr=u(ye)}set toast(i){this._toast=i;let r=this.toastBarBaseStylesSignal(),o=I({},i.style);if(r.animation?.includes("hotToastExitAnimation"))o.animation=r.animation;else{let s=`hotToastEnterAnimation${i.position.includes("top")?"Negative":"Positive"} ${Ax}ms cubic-bezier(0.21, 1.02, 0.73, 1) forwards`;o.animation=s}this.toastBarBaseStylesSignal.set(o)}get toast(){return this._toast}get toastsAfter(){return this._toastsAfter}set toastsAfter(i){this._toastsAfter=i}get toastBarBaseHeight(){return this.toastBarBase.nativeElement.offsetHeight}get scale(){return this.defaultConfig.stacking!=="vertical"&&!this.isShowingAllToasts?this.toastsAfter*-jk+1:1}get translateY(){return this.offset*(this.top?1:-1)+"px"}get exitAnimationDelay(){return this.toast.duration+"ms"}get top(){return this.toast.position.includes("top")}get containerPositionStyle(){let i=this.top?{top:0}:{bottom:0},r="translateY(var(--hot-toast-translate-y)) scale(var(--hot-toast-scale))",o=this.toast.position.includes("left")?{left:0}:this.toast.position.includes("right")?{right:0}:{left:0,right:0,justifyContent:"center"};return I(I({transform:r},i),o)}get isIconString(){return typeof this.toast.icon=="string"}get groupChildrenToastRefs(){return this.toastRef.groupRefs.filter(i=>!!i)}set groupChildrenToastRefs(i){this.toastRef.groupRefs=i}get groupChildrenToasts(){return this.groupChildrenToastRefs.map(i=>i.getToast())}get groupHeight(){return this.visibleToasts.map(i=>i.height).reduce((i,r)=>i+r,0)}get isExpanded(){return this.toastRef.groupExpanded}ngOnChanges(i){i.toast&&!i.toast.firstChange&&i.toast.currentValue?.message&&requestAnimationFrame(()=>{this.height.emit(this.toastBarBase.nativeElement.offsetHeight)})}ngOnInit(){Fg(this.toast.message)&&(this.context={$implicit:this.toastRef}),Cu(this.toast.message)&&(this.toastComponentInjector=de.create({providers:[{provide:Ng,useValue:this.toastRef}],parent:this.toast.injector||this.injector}));let i=this.toastBarBase.nativeElement;this.ngZone.runOutsideAngular(()=>{this.unlisteners.push(this.renderer.listen(i,"animationstart",r=>{this.isExitAnimation(r)&&this.ngZone.run(()=>{this.renderer.setStyle(i,"pointer-events","none"),this.renderer.setStyle(i.parentElement,"pointer-events","none"),this.beforeClosed.emit()})}),this.renderer.listen(i,"animationend",r=>{this.isEnterAnimation(r)&&this.ngZone.run(()=>{if(this.toast.autoClose){let o=`hotToastExitAnimation${this.top?"Negative":"Positive"} ${Rh}ms forwards cubic-bezier(0.06, 0.71, 0.55, 1) var(--hot-toast-exit-animation-delay) var(--hot-toast-exit-animation-state)`;this.toastBarBaseStylesSignal.set(Me(I({},this.toast.style),{animation:o}))}}),this.isExitAnimation(r)&&this.ngZone.run(()=>this.afterClosed.emit({dismissedByAction:this.isManualClose,id:this.toast.id}))}))})}ngAfterViewInit(){let i=this.toastBarBase.nativeElement;requestAnimationFrame(()=>{this.height.emit(i.offsetHeight)}),this.setToastAttributes()}softClose(){let i=`hotToastExitSoftAnimation${this.top?"Negative":"Positive"} ${Rh}ms forwards cubic-bezier(0.06, 0.71, 0.55, 1)`,r=this.toastBarBase.nativeElement;Ox(this.renderer,r,i),this.softClosed=!0}softOpen(){let i=`hotToastEnterSoftAnimation${top?"Negative":"Positive"} ${Ax}ms cubic-bezier(0.21, 1.02, 0.73, 1) forwards`,r=this.toastBarBase.nativeElement;Ox(this.renderer,r,i),this.softClosed=!1}close(){this.isManualClose=!0,this.cdr.markForCheck();let i=`hotToastExitAnimation${this.top?"Negative":"Positive"} ${Rh}ms forwards cubic-bezier(0.06, 0.71, 0.55, 1)`;this.toastBarBaseStylesSignal.set(Me(I({},this.toast.style),{animation:i}))}handleMouseEnter(){this.showAllToasts.emit(!0)}handleMouseLeave(){this.showAllToasts.emit(!1)}ngOnDestroy(){for(this.close();this.unlisteners.length;)this.unlisteners.pop()()}isExitAnimation(i){return i.animationName.includes("hotToastExitAnimation")}isEnterAnimation(i){return i.animationName.includes("hotToastEnterAnimation")}setToastAttributes(){let i=this.toast.attributes;for(let[r,o]of Object.entries(i))this.renderer.setAttribute(this.toastBarBase.nativeElement,r,o)}get visibleToasts(){return this.groupChildrenToasts.filter(i=>i.visible)}};n.\u0275fac=function(r){return new(r||n)},n.\u0275cmp=E({type:n,selectors:[["hot-toast-group-item"]],viewQuery:function(r,o){if(r&1&&ie(oj,7),r&2){let a;j(a=H())&&(o.toastBarBase=a.first)}},inputs:{toast:"toast",offset:"offset",defaultConfig:"defaultConfig",toastRef:"toastRef",toastsAfter:"toastsAfter",isShowingAllToasts:"isShowingAllToasts"},outputs:{height:"height",beforeClosed:"beforeClosed",afterClosed:"afterClosed",showAllToasts:"showAllToasts",toggleGroup:"toggleGroup"},features:[Oe],decls:21,vars:25,consts:[["hotToastBarBase",""],[1,"hot-toast-bar-base-container"],[1,"hot-toast-bar-base-wrapper",3,"mouseenter","mouseleave"],[1,"hot-toast-bar-base"],["aria-hidden","true",1,"hot-toast-icon"],[1,"hot-toast-message"],[4,"dynamicView","dynamicViewContext","dynamicViewInjector"],[3,"iconTheme"],[4,"dynamicView"],[3,"theme","type"],["type","button","aria-label","Close",1,"hot-toast-close-btn",3,"click"]],template:function(r,o){if(r&1){let a=q();m(0,"div",1),f(1,` + `),m(2,"div",2),S("mouseenter",function(){return k(a),T(o.handleMouseEnter())})("mouseleave",function(){return k(a),T(o.handleMouseLeave())}),f(3,` + `),m(4,"div",3,0),f(6,` + `),m(7,"div",4),f(8,` + `),V(9,Fie,3,1)(10,Nie,3,2),h(),f(11,` + `),m(12,"div",5),f(13,` + `),A(14,Lie,1,0,"ng-container",6),f(15,` + `),h(),f(16,` + `),V(17,Vie,3,2),h(),f(18,` + `),h(),f(19,` +`),h(),f(20,` +`)}r&2&&(gl(o.containerPositionStyle),at("hot-toast-theme-"+o.toast.theme),At("--hot-toast-scale",o.scale)("--hot-toast-translate-y",o.translateY),g(4),gl(o.toastBarBaseStylesSignal()),at(o.toast.className),At("--hot-toast-animation-state",o.isManualClose?"running":"paused")("--hot-toast-exit-animation-state",o.isShowingAllToasts?"paused":"running")("--hot-toast-exit-animation-delay",o.exitAnimationDelay),X("aria-live",o.toast.ariaLive)("role",o.toast.role),g(5),B(o.toast.icon!==void 0?9:10),g(5),v("dynamicView",o.toast.message)("dynamicViewContext",o.context)("dynamicViewInjector",o.toastComponentInjector),g(3),B(o.toast.dismissible?17:-1))},dependencies:[sj,aj,Ix],encapsulation:2,changeDetection:0});let t=n;return t})(),nj=(()=>{let n=class n{constructor(){this.offset=0,this._toastsAfter=0,this.isShowingAllToasts=!1,this.height=new U,this.beforeClosed=new U,this.afterClosed=new U,this.showAllToasts=new U,this.toggleGroup=new U,this.isManualClose=!1,this.isExpanded=!1,this.toastBarBaseStylesSignal=he({}),this.unlisteners=[],this.softClosed=!1,this.groupRefs=[],this.injector=u(de),this.renderer=u(ze),this.ngZone=u(ae),this.cdr=u(ye)}set toast(i){this._toast=i;let r=this.toastBarBaseStylesSignal(),o=I({},i.style);if(r.animation?.includes("hotToastExitAnimation"))o.animation=r.animation;else{let s=`hotToastEnterAnimation${i.position.includes("top")?"Negative":"Positive"} ${Ax}ms cubic-bezier(0.21, 1.02, 0.73, 1) forwards`;o.animation=s}this.toastBarBaseStylesSignal.set(o)}get toast(){return this._toast}get toastsAfter(){return this._toastsAfter}set toastsAfter(i){this._toastsAfter=i,this.defaultConfig?.visibleToasts>0&&(this.toast.autoClose||(i>=this.defaultConfig?.visibleToasts?this.softClose():this.softClosed&&this.softOpen()))}get toastBarBaseHeight(){return this.toastBarBase.nativeElement.offsetHeight}get scale(){return this.defaultConfig.stacking!=="vertical"&&!this.isShowingAllToasts?this.toastsAfter*-jk+1:1}get translateY(){return this.offset*(this.top?1:-1)+"px"}get exitAnimationDelay(){return this.toast.duration+"ms"}get top(){return this.toast.position.includes("top")}get containerPositionStyle(){let i=this.top?{top:0}:{bottom:0},r="translateY(var(--hot-toast-translate-y)) scale(var(--hot-toast-scale))",o=this.toast.position.includes("left")?{left:0}:this.toast.position.includes("right")?{right:0}:{left:0,right:0,justifyContent:"center"};return I(I({transform:r},i),o)}get isIconString(){return typeof this.toast.icon=="string"}get groupChildrenToastRefs(){return this.groupRefs.filter(i=>!!i)}set groupChildrenToastRefs(i){this.groupRefs=i,this.toastRef.groupRefs=i}get groupChildrenToasts(){return this.groupChildrenToastRefs.map(i=>i.getToast())}get groupHeight(){return this.visibleToasts.slice(-this.defaultConfig.visibleToasts).map(i=>i.height).reduce((i,r)=>i+r,0)}get visibleToasts(){return this.groupChildrenToasts.filter(i=>i.visible)}ngDoCheck(){this.toastRef.groupRefs.length!==this.groupRefs.length&&(this.groupRefs=this.toastRef.groupRefs.slice(),this.cdr.markForCheck(),this.emiHeightWithGroup(this.isExpanded)),this.toastRef.groupExpanded!==this.isExpanded&&(this.isExpanded=this.toastRef.groupExpanded,this.cdr.markForCheck(),this.emiHeightWithGroup(this.isExpanded))}ngOnChanges(i){i.toast&&!i.toast.firstChange&&i.toast.currentValue?.message&&this.emiHeightWithGroup(this.isExpanded)}ngOnInit(){Fg(this.toast.message)&&(this.context={$implicit:this.toastRef}),Cu(this.toast.message)&&(this.toastComponentInjector=de.create({providers:[{provide:Ng,useValue:this.toastRef}],parent:this.toast.injector||this.injector}));let i=this.toastBarBase.nativeElement;this.ngZone.runOutsideAngular(()=>{this.unlisteners.push(this.renderer.listen(i,"animationstart",r=>{this.isExitAnimation(r)&&this.ngZone.run(()=>{this.renderer.setStyle(i,"pointer-events","none"),this.renderer.setStyle(i.parentElement,"pointer-events","none"),this.beforeClosed.emit()})}),this.renderer.listen(i,"animationend",r=>{this.isEnterAnimation(r)&&this.ngZone.run(()=>{if(this.toast.autoClose){let o=`hotToastExitAnimation${this.top?"Negative":"Positive"} ${Rh}ms forwards cubic-bezier(0.06, 0.71, 0.55, 1) var(--hot-toast-exit-animation-delay) var(--hot-toast-exit-animation-state)`;this.toastBarBaseStylesSignal.set(Me(I({},this.toast.style),{animation:o}))}}),this.isExitAnimation(r)&&this.ngZone.run(()=>this.afterClosed.emit({dismissedByAction:this.isManualClose,id:this.toast.id}))}))})}ngAfterViewInit(){let i=this.toastBarBase.nativeElement;requestAnimationFrame(()=>{this.height.emit(i.offsetHeight)}),this.setToastAttributes()}softClose(){let i=`hotToastExitSoftAnimation${this.top?"Negative":"Positive"} ${Rh}ms forwards cubic-bezier(0.06, 0.71, 0.55, 1)`,r=this.toastBarBase.nativeElement;Ox(this.renderer,r,i),this.softClosed=!0,this.isExpanded&&this.toggleToastGroup()}softOpen(){let i=`hotToastEnterSoftAnimation${top?"Negative":"Positive"} ${Ax}ms cubic-bezier(0.21, 1.02, 0.73, 1) forwards`,r=this.toastBarBase.nativeElement;Ox(this.renderer,r,i),this.softClosed=!1}close(){this.isManualClose=!0,this.cdr.markForCheck();let i=`hotToastExitAnimation${this.top?"Negative":"Positive"} ${Rh}ms forwards cubic-bezier(0.06, 0.71, 0.55, 1)`;this.toastBarBaseStylesSignal.set(Me(I({},this.toast.style),{animation:i}))}handleMouseEnter(){this.showAllToasts.emit(!0)}handleMouseLeave(){this.showAllToasts.emit(!1)}ngOnDestroy(){for(this.close();this.unlisteners.length;)this.unlisteners.pop()()}isExitAnimation(i){return i.animationName.includes("hotToastExitAnimation")}isEnterAnimation(i){return i.animationName.includes("hotToastEnterAnimation")}setToastAttributes(){let i=this.toast.attributes;for(let[r,o]of Object.entries(i))this.renderer.setAttribute(this.toastBarBase.nativeElement,r,o)}calculateOffset(i){let r=this.visibleToasts,o=r.findIndex(s=>s.id===i);return o!==-1?r.slice(...this.defaultConfig.reverseOrder?[o+1]:[0,o]).reduce((s,l,c)=>this.defaultConfig.visibleToasts!==0&&co.id===i.id)>-1&&(this.groupChildrenToastRefs=this.groupChildrenToastRefs.filter(o=>o.getToast().id!==i.id),this.cdr.markForCheck())}toggleToastGroup(){let i=this.isExpanded?"collapse":"expand";this.toggleGroup.emit({byAction:!0,event:i,id:this.toast.id}),this.emiHeightWithGroup(i==="expand")}emiHeightWithGroup(i){requestAnimationFrame(i?()=>{this.height.emit(this.toastBarBase.nativeElement.offsetHeight+this.groupHeight)}:()=>{this.height.emit(this.toastBarBase.nativeElement.offsetHeight)})}};n.\u0275fac=function(r){return new(r||n)},n.\u0275cmp=E({type:n,selectors:[["hot-toast"]],viewQuery:function(r,o){if(r&1&&ie(oj,7),r&2){let a;j(a=H())&&(o.toastBarBase=a.first)}},inputs:{toast:"toast",offset:"offset",defaultConfig:"defaultConfig",toastRef:"toastRef",toastsAfter:"toastsAfter",isShowingAllToasts:"isShowingAllToasts"},outputs:{height:"height",beforeClosed:"beforeClosed",afterClosed:"afterClosed",showAllToasts:"showAllToasts",toggleGroup:"toggleGroup"},features:[Oe],decls:23,vars:29,consts:[["hotToastBarBase",""],[1,"hot-toast-bar-base-container"],[1,"hot-toast-bar-base-wrapper",3,"mouseenter","mouseleave"],[1,"hot-toast-bar-base"],["aria-hidden","true",1,"hot-toast-icon"],[1,"hot-toast-message"],[4,"dynamicView","dynamicViewContext","dynamicViewInjector"],[3,"iconTheme","icon"],[4,"dynamicView"],[3,"theme","type"],["type","button",1,"hot-toast-group-btn",3,"click"],["type","button","aria-label","Close",1,"hot-toast-close-btn",3,"click"],["role","list",1,"hot-toast-bar-base-group"],[3,"height","beforeClosed","afterClosed","toast","offset","toastRef","toastsAfter","defaultConfig","isShowingAllToasts"]],template:function(r,o){if(r&1){let a=q();m(0,"div",1),f(1,` + `),m(2,"div",2),S("mouseenter",function(){return k(a),T(o.handleMouseEnter())})("mouseleave",function(){return k(a),T(o.handleMouseLeave())}),f(3,` + `),m(4,"div",3,0),f(6,` + `),m(7,"div",4),f(8,` + `),V(9,Uie,3,1)(10,$ie,3,2),h(),f(11,` - `),m(12,"div",5),g(13,` - `),A(14,$ie,1,0,"ng-container",6),g(15,` - `),h(),g(16,` + `),m(12,"div",5),f(13,` + `),A(14,Wie,1,0,"ng-container",6),f(15,` + `),h(),f(16,` - `),V(17,Wie,3,5),V(18,Gie,3,2),h(),g(19,` + `),V(17,Gie,3,5),V(18,qie,3,2),h(),f(19,` - `),V(20,Yie,6,4),h(),g(21,` -`),h(),g(22,` -`)}r&2&&(el(o.containerPositionStyle),nt("hot-toast-theme-"+o.toast.theme),Et("--hot-toast-scale",o.scale)("--hot-toast-translate-y",o.translateY),f(2),G("expanded",o.isExpanded),f(2),el(o.toastBarBaseStylesSignal()),nt(o.toast.className),Et("--hot-toast-animation-state",o.isManualClose?"running":"paused")("--hot-toast-exit-animation-state",o.isShowingAllToasts?"paused":"running")("--hot-toast-exit-animation-delay",o.exitAnimationDelay),X("aria-live",o.toast.ariaLive)("role",o.toast.role),f(5),B(o.toast.icon!==void 0?9:10),f(5),v("dynamicView",o.toast.message)("dynamicViewContext",o.context)("dynamicViewInjector",o.toastComponentInjector),f(3),B(o.toast.group!=null&&o.toast.group.expandAndCollapsible&&(o.toast.group!=null&&o.toast.group.children)&&o.visibleToasts.length>0?17:-1),f(),B(o.toast.dismissible?18:-1),f(2),B(o.toast.visible?20:-1))},dependencies:[Sx,aj,sj,one],encapsulation:2,changeDetection:0});let t=n;return t})(),rj=(()=>{let n=class n{constructor(){this.toasts=[],this.toastRefs=[],this.isShowingAllToasts=!1,this._onClosed=new z,this._onGroupToggle=new z,this._onGroupRefAttached=new z,this.onClosed$=this._onClosed.asObservable(),this.onGroupToggle$=this._onGroupToggle.asObservable(),this.onGroupRefAttached$=this._onGroupRefAttached.asObservable(),this.cdr=u(ye),this.toastService=u(Lg)}trackById(i,r){return r.id}getVisibleToasts(i){return this.unGroupedToasts.filter(r=>r.visible&&r.position===i)}get unGroupedToasts(){return this.toasts.filter(i=>i.group?.parent===void 0||i.group?.children===void 0||i.group?.children.length===0)}calculateOffset(i,r){let o=this.getVisibleToasts(r),a=o.findIndex(l=>l.id===i);return a!==-1?o.slice(...this.defaultConfig.reverseOrder?[a+1]:[0,a]).reduce((l,c,d)=>{let p=o.length-1-d;return this.defaultConfig.visibleToasts!==0&&dthis.defaultConfig.visibleToasts&&this.toasts.slice(0,this.toasts.length-this.defaultConfig.visibleToasts).forEach(s=>{s.autoClose&&this.closeToast(s.id)}),this.cdr.markForCheck(),this.attachGroupRefs(o,i,r),{dispose:()=>{this.closeToast(o.id)},updateMessage:a=>{o.message=a,this.updateToasts(o),this.cdr.markForCheck()},updateToast:a=>{this.updateToasts(o,a),this.cdr.markForCheck()},afterClosed:this.getAfterClosed(o),afterGroupToggled:this.getAfterGroupToggled(o),afterGroupRefsAttached:this.getAfterGroupRefsAttached(o).pipe(se(a=>a.groupRefs))}}attachGroupRefs(i,r,o){return gn(this,null,function*(){let a=[];if(i.group){if(i.group.children){a=yield this.createGroupRefs(i,r);let s=this.toastRefs.findIndex(l=>l.getToast().id===i.id);s>-1&&(this.toastRefs[s].groupRefs=a,this.cdr.markForCheck(),this._onGroupRefAttached.next({groupRefs:a,id:i.id}))}else if(i.group.parent&&!o){let l=i.group.parent.getToast(),c=this.toastRefs.findIndex(p=>p.getToast().id===l.id),d=this.toasts.findIndex(p=>p.id===l.id);if(c>-1&&d>-1){this.toastRefs[c].groupRefs.push(r);let p=this.toasts[c].group??{},_=this.toasts[c].group?.children??[];_.push({options:Ee(k({},i),{type:i.type,message:i.message})}),p.children=_,this.toasts[c].group=k({},p),this.cdr.markForCheck(),this._onGroupRefAttached.next({groupRefs:a,id:l.id})}}}})}createGroupRefs(i,r){return new Promise(a=>{let l=i.group.children.map(c=>new Promise(d=>{c.options.group={parent:r},setTimeout(()=>{try{let p=this.toastService.show(c.options.message,c.options,!0);d(p)}catch(p){console.error("Error creating toast",p),d(null)}})}));Promise.all(l).then(c=>a(c))})}closeToast(i){if(i){let r=this.hotToastComponentList.find(o=>o.toast.id===i);r&&(r.close(),this.cdr.markForCheck())}else this.hotToastComponentList.forEach(r=>r.close()),this.cdr.markForCheck()}beforeClosed(i){i.visible=!1,this.cdr.markForCheck()}afterClosed(i){this.toasts.findIndex(o=>o.id===i.id)>-1&&(this._onClosed.next(i),this.toasts=this.toasts.filter(o=>o.id!==i.id),this.toastRefs=this.toastRefs.filter(o=>o.getToast().id!==i.id),this.cdr.markForCheck())}toggleGroup(i){let r=this.toastRefs.findIndex(o=>o.getToast().id===i.id);r>-1&&(this._onGroupToggle.next(i),this.toastRefs[r].groupExpanded=i.event==="expand",this.cdr.markForCheck())}hasToast(i){return this.toasts.findIndex(r=>r.id===i)>-1}showAllToasts(i){this.isShowingAllToasts=i}getAfterClosed(i){return this.onClosed$.pipe(ce(r=>r.id===i.id))}getAfterGroupToggled(i){return this.onGroupToggle$.pipe(ce(r=>r.id===i.id))}getAfterGroupRefsAttached(i){return this.onGroupRefAttached$.pipe(ce(r=>r.id===i.id))}updateToasts(i,r){this.toasts=this.toasts.map(o=>k(k({},o),o.id===i.id&&k(k({},i),r))),this.cdr.markForCheck()}};n.\u0275fac=function(r){return new(r||n)},n.\u0275cmp=E({type:n,selectors:[["hot-toast-container"]],viewQuery:function(r,o){if(r&1&&ie(nj,5),r&2){let a;j(a=H())&&(o.hotToastComponentList=a)}},inputs:{defaultConfig:"defaultConfig"},decls:11,vars:0,consts:[[1,"hot-toast-container-overlay"],[1,"hot-toast-container-wrapper"],[3,"showAllToasts","height","beforeClosed","afterClosed","toggleGroup","toast","offset","toastRef","toastsAfter","defaultConfig","isShowingAllToasts"]],template:function(r,o){r&1&&(m(0,"div",0),g(1,` - `),m(2,"div",1),g(3,` - `),m(4,"div"),g(5,` - `),xt(6,Zie,3,1,null,null,o.trackById,!0),h(),g(8,` - `),h(),g(9,` -`),h(),g(10,` -`)),r&2&&(f(6),Ct(o.toasts))},dependencies:[nj],styles:[".hot-toast-container-overlay[_ngcontent-%COMP%]{position:fixed;z-index:var(--hot-toast-container-overlay-z-index, 9999);inset:0;pointer-events:none}.hot-toast-container-wrapper[_ngcontent-%COMP%]{position:relative;height:100%}"],changeDetection:0});let t=n;return t})(),Ng=class{constructor(){this.reverseOrder=!1,this.visibleToasts=5,this.stacking="vertical",this.ariaLive="polite",this.role="status",this.position="top-center",this.autoClose=!0,this.theme="toast",this.attributes={},this.info={content:""},this.success={content:""},this.error={content:""},this.loading={content:""},this.blank={content:""},this.warning={content:""}}},ane=t=>typeof t=="function",sne=t=>typeof t=="function"&&!!t.\u0275cmp,lne=(t,n)=>sne(t)?t:ane(t)?t(n):t,Lk=class{constructor(){this.storage="local",this.key="ngxpert/hototast-${id}",this.count=1,this.enabled=!1}},cne=new O("HOT_TOAST_CONTAINER_TOKEN"),Lg=(()=>{let n=class n{constructor(){this._isInitialized=!1,this._defaultGlobalConfig=new Ng,this._defaultPersistConfig=new Lk,this._viewService=u(Nk),this._platformId=u(Zs),this._globalConfig=u(Ng,{optional:!0}),this._container=u(cne,{optional:!0}),this._globalConfig&&(this._defaultGlobalConfig=k(k({},this._defaultGlobalConfig),this._globalConfig))}get defaultConfig(){return this._defaultGlobalConfig}set defaultConfig(i){this._defaultGlobalConfig=k(k({},this._defaultGlobalConfig),i),this._componentRef&&this._componentRef.setInput("defaultConfig",this._defaultGlobalConfig)}show(i,r,o){return this.createToast({message:i||this._defaultGlobalConfig.blank.content,type:r?.type??"blank",options:k(k({},this._defaultGlobalConfig),r),skipAttachToParent:o})}error(i,r){return this.createToast({message:i||this._defaultGlobalConfig.error.content,type:"error",options:k(k(k({},this._defaultGlobalConfig),this._defaultGlobalConfig?.error),r)})}success(i,r){return this.createToast({message:i||this._defaultGlobalConfig.success.content,type:"success",options:k(k(k({},this._defaultGlobalConfig),this._defaultGlobalConfig?.success),r)})}loading(i,r){return this.createToast({message:i||this._defaultGlobalConfig.loading.content,type:"loading",options:k(k(k({},this._defaultGlobalConfig),this._defaultGlobalConfig?.loading),r)})}warning(i,r){return this.createToast({message:i||this._defaultGlobalConfig.warning.content,type:"warning",options:k(k(k({},this._defaultGlobalConfig),this._defaultGlobalConfig?.warning),r)})}info(i,r){return this.createToast({message:i||this._defaultGlobalConfig.info.content,type:"info",options:k(k(k({},this._defaultGlobalConfig),this._defaultGlobalConfig?.info),r)})}observe(i){return r=>{let o,a=0,s=i.loading??this._defaultGlobalConfig.loading?.content,l=i.success??this._defaultGlobalConfig.success?.content,c=i.error??this._defaultGlobalConfig.error?.content;return In(()=>(s&&(o=this.createLoadingToast(s),a=Date.now()),r.pipe(He(k(k({},l&&{next:d=>{o=this.createOrUpdateToast(i,d,o,"success",a===0?a:Date.now()-a)}}),c&&{error:d=>{o=this.createOrUpdateToast(i,d,o,"error",a===0?a:Date.now()-a)}})))))}}close(i){this._componentRef&&this._componentRef.ref.instance.closeToast(i)}init(){if(!Y2(this._platformId))if(this._container){let i=document.querySelector(this._container);i||(console.warn(`No container element found for selector: ${this._container}, using document.body instead as toast container.`),i=document.body),this._componentRef=this._viewService.createComponent(rj).setInput("defaultConfig",this._defaultGlobalConfig).appendTo(i)}else this._componentRef=this._viewService.createComponent(rj).setInput("defaultConfig",this._defaultGlobalConfig).appendTo(document.body)}createOrUpdateToast(i,r,o,a,s){try{let l=null,c={};if({content:l,options:c}=this.getContentAndOptions(a,i[a]||(this._defaultGlobalConfig[a]?this._defaultGlobalConfig[a].content:"")),l=lne(l,r),o){c.data&&(o.data=c.data),o.updateMessage(l);let d=k(k({type:a,duration:s+ij[a]},c),c.duration&&{duration:s+c.duration});o.updateToast(d)}else this.createToast({message:l,type:a,options:c});return o}catch(l){console.error(l)}}createToast({message:i,type:r,options:o,observableMessages:a,skipAttachToParent:s}){this._isInitialized||(this._isInitialized=!0,this.init());let l=o?.id??`toast-${n.nextId++}`;if(!this.isDuplicate(l)&&(!o.persist?.enabled||o.persist?.enabled&&this.handleStorageValue(l,o))){let c=k({ariaLive:o?.ariaLive??"polite",createdAt:Date.now(),duration:o?.duration??ij[r],id:l,message:i,role:o?.role??"status",type:r,visible:!0,observableMessages:a??void 0},o);return new Fg(c).appendTo(this._componentRef.ref.instance,s)}}isDuplicate(i){return this._componentRef.ref.instance.hasToast(i)}handleStorageValue(i,r){let o=1,a=k(k({},this._defaultPersistConfig),r.persist),s=a.storage==="local"?localStorage:sessionStorage,l=a.key.replace(/\${id}/g,i),c=s.getItem(l);return c?(c=parseInt(c,10),c>0?o=c-1:o=c):o=a.count,s.setItem(l,o.toString()),o}getContentAndOptions(i,r){var s;let o,a=k(k({},this._defaultGlobalConfig),this._defaultGlobalConfig[i]);if(typeof r=="string"||Pg(r)||xu(r))o=r;else{let l;s=r,{content:o}=s,l=od(s,["content"]),a=k(k({},a),l)}return{content:o,options:a}}createLoadingToast(i){let r=null,o={};return{content:r,options:o}=this.getContentAndOptions("loading",i),this.loading(r,o)}};n.nextId=0,n.\u0275fac=function(r){return new(r||n)},n.\u0275prov=R({token:n,factory:n.\u0275fac,providedIn:"root"});let t=n;return t})();function lj(t){return qr([{provide:Ng,useValue:t}])}var Ax={REMOVE:"remove",SHOW:"show"},dj=(()=>{let n=class n{constructor(){this.strategiesSource=new it({}),this.strategies$=this.strategiesSource.asObservable()}};n.\u0275fac=function(r){return new(r||n)},n.\u0275prov=R({token:n,factory:n.\u0275fac});let t=n;return t})(),jk=new O("USE_CONFIGURATION_STORE"),Hk=(()=>{let n=class n{constructor(i=!1,r){this.isolate=i,this.configurationStore=r,this.strategiesSource=this.isolate?new it({}):this.configurationStore.strategiesSource,this.strategies$=this.strategiesSource.asObservable(),this.onAuthorisedDefaultStrategy=this.isolate?void 0:this.configurationStore.onAuthorisedDefaultStrategy,this.onUnAuthorisedDefaultStrategy=this.isolate?void 0:this.configurationStore.onUnAuthorisedDefaultStrategy}setDefaultOnAuthorizedStrategy(i){this.isolate?this.onAuthorisedDefaultStrategy=this.getDefinedStrategy(i):(this.configurationStore.onAuthorisedDefaultStrategy=this.getDefinedStrategy(i),this.onAuthorisedDefaultStrategy=this.configurationStore.onAuthorisedDefaultStrategy)}setDefaultOnUnauthorizedStrategy(i){this.isolate?this.onUnAuthorisedDefaultStrategy=this.getDefinedStrategy(i):(this.configurationStore.onUnAuthorisedDefaultStrategy=this.getDefinedStrategy(i),this.onUnAuthorisedDefaultStrategy=this.configurationStore.onUnAuthorisedDefaultStrategy)}addPermissionStrategy(i,r){this.strategiesSource.value[i]=r}getStrategy(i){return this.strategiesSource.value[i]}getAllStrategies(){return this.strategiesSource.value}getDefinedStrategy(i){if(this.strategiesSource.value[i]||this.isPredefinedStrategy(i))return i;throw new Error(`No ' ${i} ' strategy is found please define one`)}isPredefinedStrategy(i){return i===Ax.SHOW||i===Ax.REMOVE}};n.\u0275fac=function(r){return new(r||n)(fe(jk),fe(dj))},n.\u0275prov=R({token:n,factory:n.\u0275fac});let t=n;return t})();function ao(t){return typeof t=="function"}function Bk(t){if(Object.prototype.toString.call(t)!=="[object Object]")return!1;{let n=Object.getPrototypeOf(t);return n===null||n===Object.prototype}}function uj(t){return!!t&&typeof t=="string"}function Ox(t){return typeof t=="boolean"}function dne(t){return Object.prototype.toString.call(t)==="[object Promise]"}function Ix(t){return Array.isArray(t)?t.length>0:!!t}function Rx(t){return uj(t)?[t]:t}var mj=(()=>{let n=class n{constructor(){this.permissionsSource=new it({}),this.permissions$=this.permissionsSource.asObservable()}};n.\u0275fac=function(r){return new(r||n)},n.\u0275prov=R({token:n,factory:n.\u0275fac});let t=n;return t})(),zk=new O("USE_PERMISSIONS_STORE"),Cu=(()=>{let n=class n{constructor(i=!1,r){this.isolate=i,this.permissionsStore=r,this.permissionsSource=this.isolate?new it({}):this.permissionsStore.permissionsSource,this.permissions$=this.permissionsSource.asObservable()}flushPermissions(){this.permissionsSource.next({})}hasPermission(i){return!i||Array.isArray(i)&&i.length===0?Promise.resolve(!0):(i=Rx(i),this.hasArrayPermission(i))}loadPermissions(i,r){let o=i.reduce((a,s)=>this.reducePermission(a,s,r),{});this.permissionsSource.next(o)}addPermission(i,r){if(Array.isArray(i)){let o=i.reduce((a,s)=>this.reducePermission(a,s,r),this.permissionsSource.value);this.permissionsSource.next(o)}else{let o=this.reducePermission(this.permissionsSource.value,i,r);this.permissionsSource.next(o)}}removePermission(i){let r=k({},this.permissionsSource.value);delete r[i],this.permissionsSource.next(r)}getPermission(i){return this.permissionsSource.value[i]}getPermissions(){return this.permissionsSource.value}reducePermission(i,r,o){return o&&ao(o)?Ee(k({},i),{[r]:{name:r,validationFunction:o}}):Ee(k({},i),{[r]:{name:r}})}hasArrayPermission(i){let r=i.map(o=>{if(this.hasPermissionValidationFunction(o)){let a=this.permissionsSource.value[o].validationFunction,s=k({},this.permissionsSource.value);return Q(null).pipe(se(()=>a(o,s)),je(l=>Ox(l)?Q(l):l),ii(()=>Q(!1)))}return Q(!!this.permissionsSource.value[o])});return Ft(r).pipe(_o(),bn(o=>o!==!1,!1),se(o=>o!==!1)).toPromise().then(o=>o)}hasPermissionValidationFunction(i){return!!this.permissionsSource.value[i]&&!!this.permissionsSource.value[i].validationFunction&&ao(this.permissionsSource.value[i].validationFunction)}};n.\u0275fac=function(r){return new(r||n)(fe(zk),fe(mj))},n.\u0275prov=R({token:n,factory:n.\u0275fac});let t=n;return t})(),Px=class{constructor(){this.rolesSource=new it({}),this.roles$=this.rolesSource.asObservable()}},Uk=new O("USE_ROLES_STORE"),Fh=(()=>{let n=class n{constructor(i=!1,r,o){this.isolate=i,this.rolesStore=r,this.permissionsService=o,this.rolesSource=this.isolate?new it({}):this.rolesStore.rolesSource,this.roles$=this.rolesSource.asObservable()}addRole(i,r){let o=Ee(k({},this.rolesSource.value),{[i]:{name:i,validationFunction:r}});this.rolesSource.next(o)}addRoleWithPermissions(i,r){this.permissionsService.addPermission(r),this.addRole(i,r)}addRoles(i){Object.keys(i).forEach((r,o)=>{this.addRole(r,i[r])})}addRolesWithPermissions(i){Object.keys(i).forEach((r,o)=>{this.addRoleWithPermissions(r,i[r])})}flushRoles(){this.rolesSource.next({})}flushRolesAndPermissions(){this.flushRoles(),this.permissionsService.flushPermissions()}removeRole(i){let r=k({},this.rolesSource.value);delete r[i],this.rolesSource.next(r)}getRoles(){return this.rolesSource.value}getRole(i){return this.rolesSource.value[i]}hasOnlyRoles(i){return!i||Array.isArray(i)&&i.length===0?Promise.resolve(!0):(i=Rx(i),Promise.all([this.hasRoleKey(i),this.hasRolePermission(this.rolesSource.value,i)]).then(([o,a])=>o||a))}hasRoleKey(i){let r=i.map(o=>{if(!!this.rolesSource.value[o]&&!!this.rolesSource.value[o].validationFunction&&ao(this.rolesSource.value[o].validationFunction)&&!dne(this.rolesSource.value[o].validationFunction)){let s=this.rolesSource.value[o].validationFunction,l=k({},this.rolesSource.value);return Q(null).pipe(se(()=>s(o,l)),je(c=>Ox(c)?Q(c):c),ii(()=>Q(!1)))}return Q(!1)});return Ft(r).pipe(_o(),bn(o=>o!==!1,!1),se(o=>o!==!1)).toPromise().then(o=>o)}hasRolePermission(i,r){return Ft(r).pipe(It(o=>i[o]&&Array.isArray(i[o].validationFunction)?Ft(i[o].validationFunction).pipe(It(a=>this.permissionsService.hasPermission(a)),Jw(a=>a===!0)):Q(!1)),bn(o=>o===!0,!1)).toPromise()}};n.\u0275fac=function(r){return new(r||n)(fe(Uk),fe(Px),fe(Cu))},n.\u0275prov=R({token:n,factory:n.\u0275fac});let t=n;return t})(),Nh=(()=>{let n=class n{constructor(){this.permissionsAuthorized=new U,this.permissionsUnauthorized=new U,this.firstMergeUnusedRun=1,this.permissionsService=u(Cu),this.configurationService=u(Hk),this.rolesService=u(Fh),this.viewContainer=u(ot),this.changeDetector=u(ye),this.templateRef=u(te)}ngOnInit(){this.viewContainer.clear(),this.initPermissionSubscription=this.validateExceptOnlyPermissions()}ngOnChanges(i){let r=i.ngxPermissionsOnly,o=i.ngxPermissionsExcept;if(r||o){if(r&&r.firstChange||o&&o.firstChange)return;Je(this.permissionsService.permissions$,this.rolesService.roles$).pipe(Qa(this.firstMergeUnusedRun),ct(1)).subscribe(()=>{if(Ix(this.ngxPermissionsExcept)){this.validateExceptAndOnlyPermissions();return}if(Ix(this.ngxPermissionsOnly)){this.validateOnlyPermissions();return}this.handleAuthorisedPermission(this.getAuthorisedTemplates())})}}ngOnDestroy(){this.initPermissionSubscription&&this.initPermissionSubscription.unsubscribe()}validateExceptOnlyPermissions(){return Je(this.permissionsService.permissions$,this.rolesService.roles$).pipe(Qa(this.firstMergeUnusedRun)).subscribe(()=>{if(Ix(this.ngxPermissionsExcept)){this.validateExceptAndOnlyPermissions();return}if(Ix(this.ngxPermissionsOnly)){this.validateOnlyPermissions();return}this.handleAuthorisedPermission(this.getAuthorisedTemplates())})}validateExceptAndOnlyPermissions(){Promise.all([this.permissionsService.hasPermission(this.ngxPermissionsExcept),this.rolesService.hasOnlyRoles(this.ngxPermissionsExcept)]).then(([i,r])=>{if(i||r){this.handleUnauthorisedPermission(this.ngxPermissionsExceptElse||this.ngxPermissionsElse);return}if(this.ngxPermissionsOnly)throw!1;this.handleAuthorisedPermission(this.ngxPermissionsExceptThen||this.ngxPermissionsThen||this.templateRef)}).catch(()=>{this.ngxPermissionsOnly?this.validateOnlyPermissions():this.handleAuthorisedPermission(this.ngxPermissionsExceptThen||this.ngxPermissionsThen||this.templateRef)})}validateOnlyPermissions(){Promise.all([this.permissionsService.hasPermission(this.ngxPermissionsOnly),this.rolesService.hasOnlyRoles(this.ngxPermissionsOnly)]).then(([i,r])=>{i||r?this.handleAuthorisedPermission(this.ngxPermissionsOnlyThen||this.ngxPermissionsThen||this.templateRef):this.handleUnauthorisedPermission(this.ngxPermissionsOnlyElse||this.ngxPermissionsElse)}).catch(()=>{this.handleUnauthorisedPermission(this.ngxPermissionsOnlyElse||this.ngxPermissionsElse)})}handleUnauthorisedPermission(i){if(!(Ox(this.currentAuthorizedState)&&!this.currentAuthorizedState)){if(this.currentAuthorizedState=!1,this.permissionsUnauthorized.emit(),this.getUnAuthorizedStrategyInput()){this.applyStrategyAccordingToStrategyType(this.getUnAuthorizedStrategyInput());return}this.configurationService.onUnAuthorisedDefaultStrategy&&!this.elseBlockDefined()?this.applyStrategy(this.configurationService.onUnAuthorisedDefaultStrategy):this.showTemplateBlockInView(i)}}handleAuthorisedPermission(i){if(!(Ox(this.currentAuthorizedState)&&this.currentAuthorizedState)){if(this.currentAuthorizedState=!0,this.permissionsAuthorized.emit(),this.getAuthorizedStrategyInput()){this.applyStrategyAccordingToStrategyType(this.getAuthorizedStrategyInput());return}this.configurationService.onAuthorisedDefaultStrategy&&!this.thenBlockDefined()?this.applyStrategy(this.configurationService.onAuthorisedDefaultStrategy):this.showTemplateBlockInView(i)}}applyStrategyAccordingToStrategyType(i){if(uj(i)){this.applyStrategy(i);return}if(ao(i)){this.showTemplateBlockInView(this.templateRef),i(this.templateRef);return}}showTemplateBlockInView(i){this.viewContainer.clear(),i&&(this.viewContainer.createEmbeddedView(i),this.changeDetector.markForCheck())}getAuthorisedTemplates(){return this.ngxPermissionsOnlyThen||this.ngxPermissionsExceptThen||this.ngxPermissionsThen||this.templateRef}elseBlockDefined(){return!!this.ngxPermissionsExceptElse||!!this.ngxPermissionsElse}thenBlockDefined(){return!!this.ngxPermissionsExceptThen||!!this.ngxPermissionsThen}getAuthorizedStrategyInput(){return this.ngxPermissionsOnlyAuthorisedStrategy||this.ngxPermissionsExceptAuthorisedStrategy||this.ngxPermissionsAuthorisedStrategy}getUnAuthorizedStrategyInput(){return this.ngxPermissionsOnlyUnauthorisedStrategy||this.ngxPermissionsExceptUnauthorisedStrategy||this.ngxPermissionsUnauthorisedStrategy}applyStrategy(i){if(i===Ax.SHOW){this.showTemplateBlockInView(this.templateRef);return}if(i===Ax.REMOVE){this.viewContainer.clear();return}let r=this.configurationService.getStrategy(i);this.showTemplateBlockInView(this.templateRef),r(this.templateRef)}};n.\u0275fac=function(r){return new(r||n)},n.\u0275dir=P({type:n,selectors:[["","ngxPermissionsOnly",""],["","ngxPermissionsExcept",""]],inputs:{ngxPermissionsOnly:"ngxPermissionsOnly",ngxPermissionsOnlyThen:"ngxPermissionsOnlyThen",ngxPermissionsOnlyElse:"ngxPermissionsOnlyElse",ngxPermissionsExcept:"ngxPermissionsExcept",ngxPermissionsExceptElse:"ngxPermissionsExceptElse",ngxPermissionsExceptThen:"ngxPermissionsExceptThen",ngxPermissionsThen:"ngxPermissionsThen",ngxPermissionsElse:"ngxPermissionsElse",ngxPermissionsOnlyAuthorisedStrategy:"ngxPermissionsOnlyAuthorisedStrategy",ngxPermissionsOnlyUnauthorisedStrategy:"ngxPermissionsOnlyUnauthorisedStrategy",ngxPermissionsExceptUnauthorisedStrategy:"ngxPermissionsExceptUnauthorisedStrategy",ngxPermissionsExceptAuthorisedStrategy:"ngxPermissionsExceptAuthorisedStrategy",ngxPermissionsUnauthorisedStrategy:"ngxPermissionsUnauthorisedStrategy",ngxPermissionsAuthorisedStrategy:"ngxPermissionsAuthorisedStrategy"},outputs:{permissionsAuthorized:"permissionsAuthorized",permissionsUnauthorized:"permissionsUnauthorized"},standalone:!1,features:[Ae]});let t=n;return t})(),une="default";var cj=(()=>{let n=class n{constructor(i,r,o){this.permissionsService=i,this.rolesService=r,this.router=o}canActivate(i,r){return this.hasPermissions(i,r)}canActivateChild(i,r){return this.hasPermissions(i,r)}canLoad(i){return this.hasPermissions(i)}canMatch(i){return this.hasPermissions(i)}hasPermissions(i,r){let o=i&&i.data?i.data.permissions:{},a=this.transformPermission(o,i,r);return this.isParameterAvailable(a.except)?this.passingExceptPermissionsValidation(a,i,r):this.isParameterAvailable(a.only)?this.passingOnlyPermissionsValidation(a,i,r):!0}transformPermission(i,r,o){let a=ao(i.only)?i.only(r,o):Rx(i.only),s=ao(i.except)?i.except(r,o):Rx(i.except),l=i.redirectTo;return{only:a,except:s,redirectTo:l}}isParameterAvailable(i){return!!i&&i.length>0}passingExceptPermissionsValidation(i,r,o){if(i.redirectTo&&(ao(i.redirectTo)||Bk(i.redirectTo)&&!this.isRedirectionWithParameters(i.redirectTo))){let a="";return Ft(i.except).pipe(It(s=>qa([this.permissionsService.hasPermission(s),this.rolesService.hasOnlyRoles(s)]).pipe(He(l=>{l.every(d=>d===!1)||(a=s)}))),bn(s=>s.some(l=>l===!0),!1),It(s=>a?(this.handleRedirectOfFailedPermission(i,a,r,o),Q(!1)):!s&&i.only?this.onlyRedirectCheck(i,r,o):Q(!s))).toPromise()}return Promise.all([this.permissionsService.hasPermission(i.except),this.rolesService.hasOnlyRoles(i.except)]).then(([a,s])=>a||s?(i.redirectTo&&this.redirectToAnotherRoute(i.redirectTo,r,o),!1):i.only?this.checkOnlyPermissions(i,r,o):!0)}redirectToAnotherRoute(i,r,o,a){let s=ao(i)?i(a,r,o):i;if(this.isRedirectionWithParameters(s)){s.navigationCommands=this.transformNavigationCommands(s.navigationCommands,r,o),s.navigationExtras=this.transformNavigationExtras(s.navigationExtras,r,o),this.router.navigate(s.navigationCommands,s.navigationExtras);return}Array.isArray(s)?this.router.navigate(s):this.router.navigate([s])}isRedirectionWithParameters(i){return Bk(i)&&(!!i.navigationCommands||!!i.navigationExtras)}transformNavigationCommands(i,r,o){return ao(i)?i(r,o):i}transformNavigationExtras(i,r,o){return ao(i)?i(r,o):i}onlyRedirectCheck(i,r,o){let a="";return Ft(i.only).pipe(It(s=>qa([this.permissionsService.hasPermission(s),this.rolesService.hasOnlyRoles(s)]).pipe(He(l=>{l.every(d=>d===!1)&&(a=s)}))),bn(s=>ao(i.redirectTo)?s.some(l=>l===!0):s.every(l=>l===!1),!1),It(s=>ao(i.redirectTo)?s?Q(!0):(this.handleRedirectOfFailedPermission(i,a,r,o),Q(!1)):(a&&this.handleRedirectOfFailedPermission(i,a,r,o),Q(!s)))).toPromise()}handleRedirectOfFailedPermission(i,r,o,a){this.isFailedPermissionPropertyOfRedirectTo(i,r)?this.redirectToAnotherRoute(i.redirectTo[r],o,a,r):ao(i.redirectTo)?this.redirectToAnotherRoute(i.redirectTo,o,a,r):this.redirectToAnotherRoute(i.redirectTo[une],o,a,r)}isFailedPermissionPropertyOfRedirectTo(i,r){return!!i.redirectTo&&i.redirectTo[r]}checkOnlyPermissions(i,r,o){let a=k({},i);return Promise.all([this.permissionsService.hasPermission(a.only),this.rolesService.hasOnlyRoles(a.only)]).then(([s,l])=>s||l?!0:(a.redirectTo&&this.redirectToAnotherRoute(a.redirectTo,r,o),!1))}passingOnlyPermissionsValidation(i,r,o){return ao(i.redirectTo)||Bk(i.redirectTo)&&!this.isRedirectionWithParameters(i.redirectTo)?this.onlyRedirectCheck(i,r,o):this.checkOnlyPermissions(i,r,o)}};n.\u0275fac=function(r){return new(r||n)(fe(Cu),fe(Fh),fe(Re))},n.\u0275prov=R({token:n,factory:n.\u0275fac});let t=n;return t})();var wc=(()=>{let n=class n{static forRoot(i={}){return{ngModule:n,providers:[mj,Px,dj,Cu,cj,Fh,Hk,{provide:zk,useValue:i.permissionsIsolate},{provide:Uk,useValue:i.rolesIsolate},{provide:jk,useValue:i.configurationIsolate}]}}static forChild(i={}){return{ngModule:n,providers:[{provide:zk,useValue:i.permissionsIsolate},{provide:Uk,useValue:i.rolesIsolate},{provide:jk,useValue:i.configurationIsolate},Hk,Cu,Fh,cj]}}};n.\u0275fac=function(r){return new(r||n)},n.\u0275mod=ee({type:n}),n.\u0275inj=J({});let t=n;return t})();function jg(t){return t+.5|0}var Dc=(t,n,e)=>Math.max(Math.min(t,e),n);function Vg(t){return Dc(jg(t*2.55),0,255)}function Ec(t){return Dc(jg(t*255),0,255)}function gl(t){return Dc(jg(t/2.55)/100,0,1)}function hj(t){return Dc(jg(t*100),0,100)}var aa={0:0,1:1,2:2,3:3,4:4,5:5,6:6,7:7,8:8,9:9,A:10,B:11,C:12,D:13,E:14,F:15,a:10,b:11,c:12,d:13,e:14,f:15},Gk=[..."0123456789ABCDEF"],mne=t=>Gk[t&15],hne=t=>Gk[(t&240)>>4]+Gk[t&15],Fx=t=>(t&240)>>4===(t&15),pne=t=>Fx(t.r)&&Fx(t.g)&&Fx(t.b)&&Fx(t.a);function fne(t){var n=t.length,e;return t[0]==="#"&&(n===4||n===5?e={r:255&aa[t[1]]*17,g:255&aa[t[2]]*17,b:255&aa[t[3]]*17,a:n===5?aa[t[4]]*17:255}:(n===7||n===9)&&(e={r:aa[t[1]]<<4|aa[t[2]],g:aa[t[3]]<<4|aa[t[4]],b:aa[t[5]]<<4|aa[t[6]],a:n===9?aa[t[7]]<<4|aa[t[8]]:255})),e}var gne=(t,n)=>t<255?n(t):"";function _ne(t){var n=pne(t)?mne:hne;return t?"#"+n(t.r)+n(t.g)+n(t.b)+gne(t.a,n):void 0}var bne=/^(hsla?|hwb|hsv)\(\s*([-+.e\d]+)(?:deg)?[\s,]+([-+.e\d]+)%[\s,]+([-+.e\d]+)%(?:[\s,]+([-+.e\d]+)(%)?)?\s*\)$/;function _j(t,n,e){let i=n*Math.min(e,1-e),r=(o,a=(o+t/30)%12)=>e-i*Math.max(Math.min(a-3,9-a,1),-1);return[r(0),r(8),r(4)]}function vne(t,n,e){let i=(r,o=(r+t/60)%6)=>e-e*n*Math.max(Math.min(o,4-o,1),0);return[i(5),i(3),i(1)]}function yne(t,n,e){let i=_j(t,1,.5),r;for(n+e>1&&(r=1/(n+e),n*=r,e*=r),r=0;r<3;r++)i[r]*=1-n-e,i[r]+=n;return i}function xne(t,n,e,i,r){return t===r?(n-e)/i+(n.5?d/(2-o-a):d/(o+a),l=xne(e,i,r,d,o),l=l*60+.5),[l|0,c||0,s]}function Yk(t,n,e,i){return(Array.isArray(n)?t(n[0],n[1],n[2]):t(n,e,i)).map(Ec)}function Qk(t,n,e){return Yk(_j,t,n,e)}function Cne(t,n,e){return Yk(yne,t,n,e)}function wne(t,n,e){return Yk(vne,t,n,e)}function bj(t){return(t%360+360)%360}function Dne(t){let n=bne.exec(t),e=255,i;if(!n)return;n[5]!==i&&(e=n[6]?Vg(+n[5]):Ec(+n[5]));let r=bj(+n[2]),o=+n[3]/100,a=+n[4]/100;return n[1]==="hwb"?i=Cne(r,o,a):n[1]==="hsv"?i=wne(r,o,a):i=Qk(r,o,a),{r:i[0],g:i[1],b:i[2],a:e}}function Ene(t,n){var e=qk(t);e[0]=bj(e[0]+n),e=Qk(e),t.r=e[0],t.g=e[1],t.b=e[2]}function Mne(t){if(!t)return;let n=qk(t),e=n[0],i=hj(n[1]),r=hj(n[2]);return t.a<255?`hsla(${e}, ${i}%, ${r}%, ${gl(t.a)})`:`hsl(${e}, ${i}%, ${r}%)`}var pj={x:"dark",Z:"light",Y:"re",X:"blu",W:"gr",V:"medium",U:"slate",A:"ee",T:"ol",S:"or",B:"ra",C:"lateg",D:"ights",R:"in",Q:"turquois",E:"hi",P:"ro",O:"al",N:"le",M:"de",L:"yello",F:"en",K:"ch",G:"arks",H:"ea",I:"ightg",J:"wh"},fj={OiceXe:"f0f8ff",antiquewEte:"faebd7",aqua:"ffff",aquamarRe:"7fffd4",azuY:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"0",blanKedOmond:"ffebcd",Xe:"ff",XeviTet:"8a2be2",bPwn:"a52a2a",burlywood:"deb887",caMtXe:"5f9ea0",KartYuse:"7fff00",KocTate:"d2691e",cSO:"ff7f50",cSnflowerXe:"6495ed",cSnsilk:"fff8dc",crimson:"dc143c",cyan:"ffff",xXe:"8b",xcyan:"8b8b",xgTMnPd:"b8860b",xWay:"a9a9a9",xgYF:"6400",xgYy:"a9a9a9",xkhaki:"bdb76b",xmagFta:"8b008b",xTivegYF:"556b2f",xSange:"ff8c00",xScEd:"9932cc",xYd:"8b0000",xsOmon:"e9967a",xsHgYF:"8fbc8f",xUXe:"483d8b",xUWay:"2f4f4f",xUgYy:"2f4f4f",xQe:"ced1",xviTet:"9400d3",dAppRk:"ff1493",dApskyXe:"bfff",dimWay:"696969",dimgYy:"696969",dodgerXe:"1e90ff",fiYbrick:"b22222",flSOwEte:"fffaf0",foYstWAn:"228b22",fuKsia:"ff00ff",gaRsbSo:"dcdcdc",ghostwEte:"f8f8ff",gTd:"ffd700",gTMnPd:"daa520",Way:"808080",gYF:"8000",gYFLw:"adff2f",gYy:"808080",honeyMw:"f0fff0",hotpRk:"ff69b4",RdianYd:"cd5c5c",Rdigo:"4b0082",ivSy:"fffff0",khaki:"f0e68c",lavFMr:"e6e6fa",lavFMrXsh:"fff0f5",lawngYF:"7cfc00",NmoncEffon:"fffacd",ZXe:"add8e6",ZcSO:"f08080",Zcyan:"e0ffff",ZgTMnPdLw:"fafad2",ZWay:"d3d3d3",ZgYF:"90ee90",ZgYy:"d3d3d3",ZpRk:"ffb6c1",ZsOmon:"ffa07a",ZsHgYF:"20b2aa",ZskyXe:"87cefa",ZUWay:"778899",ZUgYy:"778899",ZstAlXe:"b0c4de",ZLw:"ffffe0",lime:"ff00",limegYF:"32cd32",lRF:"faf0e6",magFta:"ff00ff",maPon:"800000",VaquamarRe:"66cdaa",VXe:"cd",VScEd:"ba55d3",VpurpN:"9370db",VsHgYF:"3cb371",VUXe:"7b68ee",VsprRggYF:"fa9a",VQe:"48d1cc",VviTetYd:"c71585",midnightXe:"191970",mRtcYam:"f5fffa",mistyPse:"ffe4e1",moccasR:"ffe4b5",navajowEte:"ffdead",navy:"80",Tdlace:"fdf5e6",Tive:"808000",TivedBb:"6b8e23",Sange:"ffa500",SangeYd:"ff4500",ScEd:"da70d6",pOegTMnPd:"eee8aa",pOegYF:"98fb98",pOeQe:"afeeee",pOeviTetYd:"db7093",papayawEp:"ffefd5",pHKpuff:"ffdab9",peru:"cd853f",pRk:"ffc0cb",plum:"dda0dd",powMrXe:"b0e0e6",purpN:"800080",YbeccapurpN:"663399",Yd:"ff0000",Psybrown:"bc8f8f",PyOXe:"4169e1",saddNbPwn:"8b4513",sOmon:"fa8072",sandybPwn:"f4a460",sHgYF:"2e8b57",sHshell:"fff5ee",siFna:"a0522d",silver:"c0c0c0",skyXe:"87ceeb",UXe:"6a5acd",UWay:"708090",UgYy:"708090",snow:"fffafa",sprRggYF:"ff7f",stAlXe:"4682b4",tan:"d2b48c",teO:"8080",tEstN:"d8bfd8",tomato:"ff6347",Qe:"40e0d0",viTet:"ee82ee",JHt:"f5deb3",wEte:"ffffff",wEtesmoke:"f5f5f5",Lw:"ffff00",LwgYF:"9acd32"};function Sne(){let t={},n=Object.keys(fj),e=Object.keys(pj),i,r,o,a,s;for(i=0;i>16&255,o>>8&255,o&255]}return t}var Nx;function kne(t){Nx||(Nx=Sne(),Nx.transparent=[0,0,0,0]);let n=Nx[t.toLowerCase()];return n&&{r:n[0],g:n[1],b:n[2],a:n.length===4?n[3]:255}}var Tne=/^rgba?\(\s*([-+.\d]+)(%)?[\s,]+([-+.e\d]+)(%)?[\s,]+([-+.e\d]+)(%)?(?:[\s,/]+([-+.e\d]+)(%)?)?\s*\)$/;function Ine(t){let n=Tne.exec(t),e=255,i,r,o;if(n){if(n[7]!==i){let a=+n[7];e=n[8]?Vg(a):Dc(a*255,0,255)}return i=+n[1],r=+n[3],o=+n[5],i=255&(n[2]?Vg(i):Dc(i,0,255)),r=255&(n[4]?Vg(r):Dc(r,0,255)),o=255&(n[6]?Vg(o):Dc(o,0,255)),{r:i,g:r,b:o,a:e}}}function Ane(t){return t&&(t.a<255?`rgba(${t.r}, ${t.g}, ${t.b}, ${gl(t.a)})`:`rgb(${t.r}, ${t.g}, ${t.b})`)}var Wk=t=>t<=.0031308?t*12.92:Math.pow(t,1/2.4)*1.055-.055,Lh=t=>t<=.04045?t/12.92:Math.pow((t+.055)/1.055,2.4);function One(t,n,e){let i=Lh(gl(t.r)),r=Lh(gl(t.g)),o=Lh(gl(t.b));return{r:Ec(Wk(i+e*(Lh(gl(n.r))-i))),g:Ec(Wk(r+e*(Lh(gl(n.g))-r))),b:Ec(Wk(o+e*(Lh(gl(n.b))-o))),a:t.a+e*(n.a-t.a)}}function Lx(t,n,e){if(t){let i=qk(t);i[n]=Math.max(0,Math.min(i[n]+i[n]*e,n===0?360:1)),i=Qk(i),t.r=i[0],t.g=i[1],t.b=i[2]}}function vj(t,n){return t&&Object.assign(n||{},t)}function gj(t){var n={r:0,g:0,b:0,a:255};return Array.isArray(t)?t.length>=3&&(n={r:t[0],g:t[1],b:t[2],a:255},t.length>3&&(n.a=Ec(t[3]))):(n=vj(t,{r:0,g:0,b:0,a:1}),n.a=Ec(n.a)),n}function Rne(t){return t.charAt(0)==="r"?Ine(t):Dne(t)}var Bg=class t{constructor(n){if(n instanceof t)return n;let e=typeof n,i;e==="object"?i=gj(n):e==="string"&&(i=fne(n)||kne(n)||Rne(n)),this._rgb=i,this._valid=!!i}get valid(){return this._valid}get rgb(){var n=vj(this._rgb);return n&&(n.a=gl(n.a)),n}set rgb(n){this._rgb=gj(n)}rgbString(){return this._valid?Ane(this._rgb):void 0}hexString(){return this._valid?_ne(this._rgb):void 0}hslString(){return this._valid?Mne(this._rgb):void 0}mix(n,e){if(n){let i=this.rgb,r=n.rgb,o,a=e===o?.5:e,s=2*a-1,l=i.a-r.a,c=((s*l===-1?s:(s+l)/(1+s*l))+1)/2;o=1-c,i.r=255&c*i.r+o*r.r+.5,i.g=255&c*i.g+o*r.g+.5,i.b=255&c*i.b+o*r.b+.5,i.a=a*i.a+(1-a)*r.a,this.rgb=i}return this}interpolate(n,e){return n&&(this._rgb=One(this._rgb,n._rgb,e)),this}clone(){return new t(this.rgb)}alpha(n){return this._rgb.a=Ec(n),this}clearer(n){let e=this._rgb;return e.a*=1-n,this}greyscale(){let n=this._rgb,e=jg(n.r*.3+n.g*.59+n.b*.11);return n.r=n.g=n.b=e,this}opaquer(n){let e=this._rgb;return e.a*=1+n,this}negate(){let n=this._rgb;return n.r=255-n.r,n.g=255-n.g,n.b=255-n.b,this}lighten(n){return Lx(this._rgb,2,n),this}darken(n){return Lx(this._rgb,2,-n),this}saturate(n){return Lx(this._rgb,1,n),this}desaturate(n){return Lx(this._rgb,1,-n),this}rotate(n){return Ene(this._rgb,n),this}};function Is(){}var Ij=(()=>{let t=0;return()=>t++})();function Tt(t){return t==null}function Ti(t){if(Array.isArray&&Array.isArray(t))return!0;let n=Object.prototype.toString.call(t);return n.slice(0,7)==="[object"&&n.slice(-6)==="Array]"}function At(t){return t!==null&&Object.prototype.toString.call(t)==="[object Object]"}function Yi(t){return(typeof t=="number"||t instanceof Number)&&isFinite(+t)}function so(t,n){return Yi(t)?t:n}function lt(t,n){return typeof t>"u"?n:t}var Aj=(t,n)=>typeof t=="string"&&t.endsWith("%")?parseFloat(t)/100:+t/n,Jk=(t,n)=>typeof t=="string"&&t.endsWith("%")?parseFloat(t)/100*n:+t;function wi(t,n,e){if(t&&typeof t.call=="function")return t.apply(e,n)}function ai(t,n,e,i){let r,o,a;if(Ti(t))if(o=t.length,i)for(r=o-1;r>=0;r--)n.call(e,t[r],r);else for(r=0;rt,x:t=>t.x,y:t=>t.y};function Nne(t){let n=t.split("."),e=[],i="";for(let r of n)i+=r,i.endsWith("\\")?i=i.slice(0,-1)+".":(e.push(i),i="");return e}function Lne(t){let n=Nne(t);return e=>{for(let i of n){if(i==="")break;e=e&&e[i]}return e}}function vl(t,n){return(yj[n]||(yj[n]=Lne(n)))(t)}function Wx(t){return t.charAt(0).toUpperCase()+t.slice(1)}var zh=t=>typeof t<"u",_l=t=>typeof t=="function",eT=(t,n)=>{if(t.size!==n.size)return!1;for(let e of t)if(!n.has(e))return!1;return!0};function Rj(t){return t.type==="mouseup"||t.type==="click"||t.type==="contextmenu"}var $t=Math.PI,Ii=2*$t,Vne=Ii+$t,zx=Number.POSITIVE_INFINITY,Bne=$t/180,tn=$t/2,wu=$t/4,xj=$t*2/3,bl=Math.log10,Ha=Math.sign;function Uh(t,n,e){return Math.abs(t-n)r-o).pop(),n}function jne(t){return typeof t=="symbol"||typeof t=="object"&&t!==null&&!(Symbol.toPrimitive in t||"toString"in t||"valueOf"in t)}function Mu(t){return!jne(t)&&!isNaN(parseFloat(t))&&isFinite(t)}function Fj(t,n){let e=Math.round(t);return e-n<=t&&e+n>=t}function iT(t,n,e){let i,r,o;for(i=0,r=t.length;il&&c=Math.min(n,e)-i&&t<=Math.max(n,e)+i}function qx(t,n,e){e=e||(a=>t[a]1;)o=r+i>>1,e(o)?r=o:i=o;return{lo:r,hi:i}}var ks=(t,n,e,i)=>qx(t,e,i?r=>{let o=t[r][n];return ot[r][n]qx(t,e,i=>t[i][n]>=e);function Vj(t,n,e){let i=0,r=t.length;for(;ii&&t[r-1]>e;)r--;return i>0||r{let i="_onData"+Wx(e),r=t[e];Object.defineProperty(t,e,{configurable:!0,enumerable:!1,value(...o){let a=r.apply(this,o);return t._chartjs.listeners.forEach(s=>{typeof s[i]=="function"&&s[i](...o)}),a}})})}function oT(t,n){let e=t._chartjs;if(!e)return;let i=e.listeners,r=i.indexOf(n);r!==-1&&i.splice(r,1),!(i.length>0)&&(Bj.forEach(o=>{delete t[o]}),delete t._chartjs)}function aT(t){let n=new Set(t);return n.size===t.length?t:Array.from(n)}var sT=(function(){return typeof window>"u"?function(t){return t()}:window.requestAnimationFrame})();function lT(t,n){let e=[],i=!1;return function(...r){e=r,i||(i=!0,sT.call(window,()=>{i=!1,t.apply(n,e)}))}}function Hj(t,n){let e;return function(...i){return n?(clearTimeout(e),e=setTimeout(t,n,i)):t.apply(this,i),n}}var Yx=t=>t==="start"?"left":t==="end"?"right":"center",lr=(t,n,e)=>t==="start"?n:t==="end"?e:(n+e)/2,zj=(t,n,e,i)=>t===(i?"left":"right")?e:t==="center"?(n+e)/2:n;function cT(t,n,e){let i=n.length,r=0,o=i;if(t._sorted){let{iScale:a,vScale:s,_parsed:l}=t,c=t.dataset&&t.dataset.options?t.dataset.options.spanGaps:null,d=a.axis,{min:p,max:_,minDefined:b,maxDefined:y}=a.getUserBounds();if(b){if(r=Math.min(ks(l,d,p).lo,e?i:ks(n,d,a.getPixelForValue(p)).lo),c){let w=l.slice(0,r+1).reverse().findIndex(C=>!Tt(C[s.axis]));r-=Math.max(0,w)}r=Sn(r,0,i-1)}if(y){let w=Math.max(ks(l,a.axis,_,!0).hi+1,e?0:ks(n,d,a.getPixelForValue(_),!0).hi+1);if(c){let C=l.slice(w-1).findIndex(D=>!Tt(D[s.axis]));w+=Math.max(0,C)}o=Sn(w,r,i)-r}else o=i-r}return{start:r,count:o}}function dT(t){let{xScale:n,yScale:e,_scaleRanges:i}=t,r={xmin:n.min,xmax:n.max,ymin:e.min,ymax:e.max};if(!i)return t._scaleRanges=r,!0;let o=i.xmin!==n.min||i.xmax!==n.max||i.ymin!==e.min||i.ymax!==e.max;return Object.assign(i,r),o}var Vx=t=>t===0||t===1,Cj=(t,n,e)=>-(Math.pow(2,10*(t-=1))*Math.sin((t-n)*Ii/e)),wj=(t,n,e)=>Math.pow(2,-10*t)*Math.sin((t-n)*Ii/e)+1,Vh={linear:t=>t,easeInQuad:t=>t*t,easeOutQuad:t=>-t*(t-2),easeInOutQuad:t=>(t/=.5)<1?.5*t*t:-.5*(--t*(t-2)-1),easeInCubic:t=>t*t*t,easeOutCubic:t=>(t-=1)*t*t+1,easeInOutCubic:t=>(t/=.5)<1?.5*t*t*t:.5*((t-=2)*t*t+2),easeInQuart:t=>t*t*t*t,easeOutQuart:t=>-((t-=1)*t*t*t-1),easeInOutQuart:t=>(t/=.5)<1?.5*t*t*t*t:-.5*((t-=2)*t*t*t-2),easeInQuint:t=>t*t*t*t*t,easeOutQuint:t=>(t-=1)*t*t*t*t+1,easeInOutQuint:t=>(t/=.5)<1?.5*t*t*t*t*t:.5*((t-=2)*t*t*t*t+2),easeInSine:t=>-Math.cos(t*tn)+1,easeOutSine:t=>Math.sin(t*tn),easeInOutSine:t=>-.5*(Math.cos($t*t)-1),easeInExpo:t=>t===0?0:Math.pow(2,10*(t-1)),easeOutExpo:t=>t===1?1:-Math.pow(2,-10*t)+1,easeInOutExpo:t=>Vx(t)?t:t<.5?.5*Math.pow(2,10*(t*2-1)):.5*(-Math.pow(2,-10*(t*2-1))+2),easeInCirc:t=>t>=1?t:-(Math.sqrt(1-t*t)-1),easeOutCirc:t=>Math.sqrt(1-(t-=1)*t),easeInOutCirc:t=>(t/=.5)<1?-.5*(Math.sqrt(1-t*t)-1):.5*(Math.sqrt(1-(t-=2)*t)+1),easeInElastic:t=>Vx(t)?t:Cj(t,.075,.3),easeOutElastic:t=>Vx(t)?t:wj(t,.075,.3),easeInOutElastic(t){return Vx(t)?t:t<.5?.5*Cj(t*2,.1125,.45):.5+.5*wj(t*2-1,.1125,.45)},easeInBack(t){return t*t*((1.70158+1)*t-1.70158)},easeOutBack(t){return(t-=1)*t*((1.70158+1)*t+1.70158)+1},easeInOutBack(t){let n=1.70158;return(t/=.5)<1?.5*(t*t*(((n*=1.525)+1)*t-n)):.5*((t-=2)*t*(((n*=1.525)+1)*t+n)+2)},easeInBounce:t=>1-Vh.easeOutBounce(1-t),easeOutBounce(t){return t<1/2.75?7.5625*t*t:t<2/2.75?7.5625*(t-=1.5/2.75)*t+.75:t<2.5/2.75?7.5625*(t-=2.25/2.75)*t+.9375:7.5625*(t-=2.625/2.75)*t+.984375},easeInOutBounce:t=>t<.5?Vh.easeInBounce(t*2)*.5:Vh.easeOutBounce(t*2-1)*.5+.5};function uT(t){if(t&&typeof t=="object"){let n=t.toString();return n==="[object CanvasPattern]"||n==="[object CanvasGradient]"}return!1}function mT(t){return uT(t)?t:new Bg(t)}function Kk(t){return uT(t)?t:new Bg(t).saturate(.5).darken(.1).hexString()}var zne=["x","y","borderWidth","radius","tension"],Une=["color","borderColor","backgroundColor"];function $ne(t){t.set("animation",{delay:void 0,duration:1e3,easing:"easeOutQuart",fn:void 0,from:void 0,loop:void 0,to:void 0,type:void 0}),t.describe("animation",{_fallback:!1,_indexable:!1,_scriptable:n=>n!=="onProgress"&&n!=="onComplete"&&n!=="fn"}),t.set("animations",{colors:{type:"color",properties:Une},numbers:{type:"number",properties:zne}}),t.describe("animations",{_fallback:"animation"}),t.set("transitions",{active:{animation:{duration:400}},resize:{animation:{duration:0}},show:{animations:{colors:{from:"transparent"},visible:{type:"boolean",duration:0}}},hide:{animations:{colors:{to:"transparent"},visible:{type:"boolean",easing:"linear",fn:n=>n|0}}}})}function Wne(t){t.set("layout",{autoPadding:!0,padding:{top:0,right:0,bottom:0,left:0}})}var Dj=new Map;function Gne(t,n){n=n||{};let e=t+JSON.stringify(n),i=Dj.get(e);return i||(i=new Intl.NumberFormat(t,n),Dj.set(e,i)),i}function Wh(t,n,e){return Gne(n,e).format(t)}var Uj={values(t){return Ti(t)?t:""+t},numeric(t,n,e){if(t===0)return"0";let i=this.chart.options.locale,r,o=t;if(e.length>1){let c=Math.max(Math.abs(e[0].value),Math.abs(e[e.length-1].value));(c<1e-4||c>1e15)&&(r="scientific"),o=qne(t,e)}let a=bl(Math.abs(o)),s=isNaN(a)?1:Math.max(Math.min(-1*Math.floor(a),20),0),l={notation:r,minimumFractionDigits:s,maximumFractionDigits:s};return Object.assign(l,this.options.ticks.format),Wh(t,i,l)},logarithmic(t,n,e){if(t===0)return"0";let i=e[n].significand||t/Math.pow(10,Math.floor(bl(t)));return[1,2,3,5,10,15].includes(i)||n>.8*e.length?Uj.numeric.call(this,t,n,e):""}};function qne(t,n){let e=n.length>3?n[2].value-n[1].value:n[1].value-n[0].value;return Math.abs(e)>=1&&t!==Math.floor(t)&&(e=t-Math.floor(t)),e}var $g={formatters:Uj};function Yne(t){t.set("scale",{display:!0,offset:!1,reverse:!1,beginAtZero:!1,bounds:"ticks",clip:!0,grace:0,grid:{display:!0,lineWidth:1,drawOnChartArea:!0,drawTicks:!0,tickLength:8,tickWidth:(n,e)=>e.lineWidth,tickColor:(n,e)=>e.color,offset:!1},border:{display:!0,dash:[],dashOffset:0,width:1},title:{display:!1,text:"",padding:{top:4,bottom:4}},ticks:{minRotation:0,maxRotation:50,mirror:!1,textStrokeWidth:0,textStrokeColor:"",padding:3,display:!0,autoSkip:!0,autoSkipPadding:3,labelOffset:0,callback:$g.formatters.values,minor:{},major:{},align:"center",crossAlign:"near",showLabelBackdrop:!1,backdropColor:"rgba(255, 255, 255, 0.75)",backdropPadding:2}}),t.route("scale.ticks","color","","color"),t.route("scale.grid","color","","borderColor"),t.route("scale.border","color","","borderColor"),t.route("scale.title","color","","color"),t.describe("scale",{_fallback:!1,_scriptable:n=>!n.startsWith("before")&&!n.startsWith("after")&&n!=="callback"&&n!=="parser",_indexable:n=>n!=="borderDash"&&n!=="tickBorderDash"&&n!=="dash"}),t.describe("scales",{_fallback:"scale"}),t.describe("scale.ticks",{_scriptable:n=>n!=="backdropPadding"&&n!=="callback",_indexable:n=>n!=="backdropPadding"})}var kc=Object.create(null),Qx=Object.create(null);function Hg(t,n){if(!n)return t;let e=n.split(".");for(let i=0,r=e.length;ii.chart.platform.getDevicePixelRatio(),this.elements={},this.events=["mousemove","mouseout","click","touchstart","touchmove"],this.font={family:"'Helvetica Neue', 'Helvetica', 'Arial', sans-serif",size:12,style:"normal",lineHeight:1.2,weight:null},this.hover={},this.hoverBackgroundColor=(i,r)=>Kk(r.backgroundColor),this.hoverBorderColor=(i,r)=>Kk(r.borderColor),this.hoverColor=(i,r)=>Kk(r.color),this.indexAxis="x",this.interaction={mode:"nearest",intersect:!0,includeInvisible:!1},this.maintainAspectRatio=!0,this.onHover=null,this.onClick=null,this.parsing=!0,this.plugins={},this.responsive=!0,this.scale=void 0,this.scales={},this.showLine=!0,this.drawActiveElementsOnTop=!0,this.describe(n),this.apply(e)}set(n,e){return Zk(this,n,e)}get(n){return Hg(this,n)}describe(n,e){return Zk(Qx,n,e)}override(n,e){return Zk(kc,n,e)}route(n,e,i,r){let o=Hg(this,n),a=Hg(this,i),s="_"+e;Object.defineProperties(o,{[s]:{value:o[e],writable:!0},[e]:{enumerable:!0,get(){let l=this[s],c=a[r];return At(l)?Object.assign({},c,l):lt(l,c)},set(l){this[s]=l}}})}apply(n){n.forEach(e=>e(this))}},Di=new Xk({_scriptable:t=>!t.startsWith("on"),_indexable:t=>t!=="events",hover:{_fallback:"interaction"},interaction:{_scriptable:!1,_indexable:!1}},[$ne,Wne,Yne]);function Qne(t){return!t||Tt(t.size)||Tt(t.family)?null:(t.style?t.style+" ":"")+(t.weight?t.weight+" ":"")+t.size+"px "+t.family}function zg(t,n,e,i,r){let o=n[r];return o||(o=n[r]=t.measureText(r).width,e.push(r)),o>i&&(i=o),i}function $j(t,n,e,i){i=i||{};let r=i.data=i.data||{},o=i.garbageCollect=i.garbageCollect||[];i.font!==n&&(r=i.data={},o=i.garbageCollect=[],i.font=n),t.save(),t.font=n;let a=0,s=e.length,l,c,d,p,_;for(l=0;le.length){for(l=0;l0&&t.stroke()}}function Ts(t,n,e){return e=e||.5,!n||t&&t.x>n.left-e&&t.xn.top-e&&t.y0&&o.strokeColor!=="",l,c;for(t.save(),t.font=r.string,Kne(t,o),l=0;l+t||0;function Zx(t,n){let e={},i=At(n),r=i?Object.keys(n):n,o=At(t)?i?a=>lt(t[a],t[n[a]]):a=>t[a]:()=>t;for(let a of r)e[a]=ire(o(a));return e}function fT(t){return Zx(t,{top:"y",right:"x",bottom:"y",left:"x"})}function Ac(t){return Zx(t,["topLeft","topRight","bottomLeft","bottomRight"])}function cr(t){let n=fT(t);return n.width=n.left+n.right,n.height=n.top+n.bottom,n}function fn(t,n){t=t||{},n=n||Di.font;let e=lt(t.size,n.size);typeof e=="string"&&(e=parseInt(e,10));let i=lt(t.style,n.style);i&&!(""+i).match(ere)&&(console.warn('Invalid font style specified: "'+i+'"'),i=void 0);let r={family:lt(t.family,n.family),lineHeight:tre(lt(t.lineHeight,n.lineHeight),e),size:e,style:i,weight:lt(t.weight,n.weight),string:""};return r.string=Qne(r),r}function qh(t,n,e,i){let r=!0,o,a,s;for(o=0,a=t.length;oe&&s===0?0:s+l;return{min:a(i,-Math.abs(o)),max:a(r,o)}}function yl(t,n){return Object.assign(Object.create(t),n)}function Xx(t,n=[""],e,i,r=()=>t[0]){let o=e||t;typeof i>"u"&&(i=Kj("_fallback",t));let a={[Symbol.toStringTag]:"Object",_cacheable:!0,_scopes:t,_rootScopes:o,_fallback:i,_getTarget:r,override:s=>Xx([s,...t],n,o,i)};return new Proxy(a,{deleteProperty(s,l){return delete s[l],delete s._keys,delete t[0][l],!0},get(s,l){return Yj(s,l,()=>dre(l,n,t,s))},getOwnPropertyDescriptor(s,l){return Reflect.getOwnPropertyDescriptor(s._scopes[0],l)},getPrototypeOf(){return Reflect.getPrototypeOf(t[0])},has(s,l){return Mj(s).includes(l)},ownKeys(s){return Mj(s)},set(s,l,c){let d=s._storage||(s._storage=r());return s[l]=d[l]=c,delete s._keys,!0}})}function Eu(t,n,e,i){let r={_cacheable:!1,_proxy:t,_context:n,_subProxy:e,_stack:new Set,_descriptors:gT(t,i),setContext:o=>Eu(t,o,e,i),override:o=>Eu(t.override(o),n,e,i)};return new Proxy(r,{deleteProperty(o,a){return delete o[a],delete t[a],!0},get(o,a,s){return Yj(o,a,()=>rre(o,a,s))},getOwnPropertyDescriptor(o,a){return o._descriptors.allKeys?Reflect.has(t,a)?{enumerable:!0,configurable:!0}:void 0:Reflect.getOwnPropertyDescriptor(t,a)},getPrototypeOf(){return Reflect.getPrototypeOf(t)},has(o,a){return Reflect.has(t,a)},ownKeys(){return Reflect.ownKeys(t)},set(o,a,s){return t[a]=s,delete o[a],!0}})}function gT(t,n={scriptable:!0,indexable:!0}){let{_scriptable:e=n.scriptable,_indexable:i=n.indexable,_allKeys:r=n.allKeys}=t;return{allKeys:r,scriptable:e,indexable:i,isScriptable:_l(e)?e:()=>e,isIndexable:_l(i)?i:()=>i}}var nre=(t,n)=>t?t+Wx(n):n,_T=(t,n)=>At(n)&&t!=="adapters"&&(Object.getPrototypeOf(n)===null||n.constructor===Object);function Yj(t,n,e){if(Object.prototype.hasOwnProperty.call(t,n)||n==="constructor")return t[n];let i=e();return t[n]=i,i}function rre(t,n,e){let{_proxy:i,_context:r,_subProxy:o,_descriptors:a}=t,s=i[n];return _l(s)&&a.isScriptable(n)&&(s=ore(n,s,t,e)),Ti(s)&&s.length&&(s=are(n,s,t,a.isIndexable)),_T(n,s)&&(s=Eu(s,r,o&&o[n],a)),s}function ore(t,n,e,i){let{_proxy:r,_context:o,_subProxy:a,_stack:s}=e;if(s.has(t))throw new Error("Recursion detected: "+Array.from(s).join("->")+"->"+t);s.add(t);let l=n(o,a||i);return s.delete(t),_T(t,l)&&(l=bT(r._scopes,r,t,l)),l}function are(t,n,e,i){let{_proxy:r,_context:o,_subProxy:a,_descriptors:s}=e;if(typeof o.index<"u"&&i(t))return n[o.index%n.length];if(At(n[0])){let l=n,c=r._scopes.filter(d=>d!==l);n=[];for(let d of l){let p=bT(c,r,t,d);n.push(Eu(p,o,a&&a[t],s))}}return n}function Qj(t,n,e){return _l(t)?t(n,e):t}var sre=(t,n)=>t===!0?n:typeof t=="string"?vl(n,t):void 0;function lre(t,n,e,i,r){for(let o of n){let a=sre(e,o);if(a){t.add(a);let s=Qj(a._fallback,e,r);if(typeof s<"u"&&s!==e&&s!==i)return s}else if(a===!1&&typeof i<"u"&&e!==i)return null}return!1}function bT(t,n,e,i){let r=n._rootScopes,o=Qj(n._fallback,e,i),a=[...t,...r],s=new Set;s.add(i);let l=Ej(s,a,e,o||e,i);return l===null||typeof o<"u"&&o!==e&&(l=Ej(s,a,o,l,i),l===null)?!1:Xx(Array.from(s),[""],r,o,()=>cre(n,e,i))}function Ej(t,n,e,i,r){for(;e;)e=lre(t,n,e,i,r);return e}function cre(t,n,e){let i=t._getTarget();n in i||(i[n]={});let r=i[n];return Ti(r)&&At(e)?e:r||{}}function dre(t,n,e,i){let r;for(let o of n)if(r=Kj(nre(o,t),e),typeof r<"u")return _T(t,r)?bT(e,i,t,r):r}function Kj(t,n){for(let e of n){if(!e)continue;let i=e[t];if(typeof i<"u")return i}}function Mj(t){let n=t._keys;return n||(n=t._keys=ure(t._scopes)),n}function ure(t){let n=new Set;for(let e of t)for(let i of Object.keys(e).filter(r=>!r.startsWith("_")))n.add(i);return Array.from(n)}function vT(t,n,e,i){let{iScale:r}=t,{key:o="r"}=this._parsing,a=new Array(i),s,l,c,d;for(s=0,l=i;snt==="x"?"y":"x";function hre(t,n,e,i){let r=t.skip?n:t,o=n,a=e.skip?n:e,s=Ux(o,r),l=Ux(a,o),c=s/(s+l),d=l/(s+l);c=isNaN(c)?0:c,d=isNaN(d)?0:d;let p=i*c,_=i*d;return{previous:{x:o.x-p*(a.x-r.x),y:o.y-p*(a.y-r.y)},next:{x:o.x+_*(a.x-r.x),y:o.y+_*(a.y-r.y)}}}function pre(t,n,e){let i=t.length,r,o,a,s,l,c=jh(t,0);for(let d=0;d!c.skip)),n.cubicInterpolationMode==="monotone")gre(t,r);else{let c=i?t[t.length-1]:t[0];for(o=0,a=t.length;ot.ownerDocument.defaultView.getComputedStyle(t,null);function bre(t,n){return tC(t).getPropertyValue(n)}var vre=["top","right","bottom","left"];function Du(t,n,e){let i={};e=e?"-"+e:"";for(let r=0;r<4;r++){let o=vre[r];i[o]=parseFloat(t[n+"-"+o+e])||0}return i.width=i.left+i.right,i.height=i.top+i.bottom,i}var yre=(t,n,e)=>(t>0||n>0)&&(!e||!e.shadowRoot);function xre(t,n){let e=t.touches,i=e&&e.length?e[0]:t,{offsetX:r,offsetY:o}=i,a=!1,s,l;if(yre(r,o,t.target))s=r,l=o;else{let c=n.getBoundingClientRect();s=i.clientX-c.left,l=i.clientY-c.top,a=!0}return{x:s,y:l,box:a}}function Oc(t,n){if("native"in t)return t;let{canvas:e,currentDevicePixelRatio:i}=n,r=tC(e),o=r.boxSizing==="border-box",a=Du(r,"padding"),s=Du(r,"border","width"),{x:l,y:c,box:d}=xre(t,e),p=a.left+(d&&s.left),_=a.top+(d&&s.top),{width:b,height:y}=n;return o&&(b-=a.width+s.width,y-=a.height+s.height),{x:Math.round((l-p)/b*e.width/i),y:Math.round((c-_)/y*e.height/i)}}function Cre(t,n,e){let i,r;if(n===void 0||e===void 0){let o=t&&eC(t);if(!o)n=t.clientWidth,e=t.clientHeight;else{let a=o.getBoundingClientRect(),s=tC(o),l=Du(s,"border","width"),c=Du(s,"padding");n=a.width-c.width-l.width,e=a.height-c.height-l.height,i=$x(s.maxWidth,o,"clientWidth"),r=$x(s.maxHeight,o,"clientHeight")}}return{width:n,height:e,maxWidth:i||zx,maxHeight:r||zx}}var Sc=t=>Math.round(t*10)/10;function Jj(t,n,e,i){let r=tC(t),o=Du(r,"margin"),a=$x(r.maxWidth,t,"clientWidth")||zx,s=$x(r.maxHeight,t,"clientHeight")||zx,l=Cre(t,n,e),{width:c,height:d}=l;if(r.boxSizing==="content-box"){let _=Du(r,"border","width"),b=Du(r,"padding");c-=b.width+_.width,d-=b.height+_.height}return c=Math.max(0,c-o.width),d=Math.max(0,i?c/i:d-o.height),c=Sc(Math.min(c,a,l.maxWidth)),d=Sc(Math.min(d,s,l.maxHeight)),c&&!d&&(d=Sc(c/2)),(n!==void 0||e!==void 0)&&i&&l.height&&d>l.height&&(d=l.height,c=Sc(Math.floor(d*i))),{width:c,height:d}}function yT(t,n,e){let i=n||1,r=Sc(t.height*i),o=Sc(t.width*i);t.height=Sc(t.height),t.width=Sc(t.width);let a=t.canvas;return a.style&&(e||!a.style.height&&!a.style.width)&&(a.style.height=`${t.height}px`,a.style.width=`${t.width}px`),t.currentDevicePixelRatio!==i||a.height!==r||a.width!==o?(t.currentDevicePixelRatio=i,a.height=r,a.width=o,t.ctx.setTransform(i,0,0,i,0,0),!0):!1}var e4=(function(){let t=!1;try{let n={get passive(){return t=!0,!1}};Jx()&&(window.addEventListener("test",null,n),window.removeEventListener("test",null,n))}catch{}return t})();function xT(t,n){let e=bre(t,n),i=e&&e.match(/^(\d+)(\.\d+)?px$/);return i?+i[1]:void 0}function Mc(t,n,e,i){return{x:t.x+e*(n.x-t.x),y:t.y+e*(n.y-t.y)}}function t4(t,n,e,i){return{x:t.x+e*(n.x-t.x),y:i==="middle"?e<.5?t.y:n.y:i==="after"?e<1?t.y:n.y:e>0?n.y:t.y}}function i4(t,n,e,i){let r={x:t.cp2x,y:t.cp2y},o={x:n.cp1x,y:n.cp1y},a=Mc(t,r,e),s=Mc(r,o,e),l=Mc(o,n,e),c=Mc(a,s,e),d=Mc(s,l,e);return Mc(c,d,e)}var wre=function(t,n){return{x(e){return t+t+n-e},setWidth(e){n=e},textAlign(e){return e==="center"?e:e==="right"?"left":"right"},xPlus(e,i){return e-i},leftForLtr(e,i){return e-i}}},Dre=function(){return{x(t){return t},setWidth(t){},textAlign(t){return t},xPlus(t,n){return t+n},leftForLtr(t,n){return t}}};function Su(t,n,e){return t?wre(n,e):Dre()}function CT(t,n){let e,i;(n==="ltr"||n==="rtl")&&(e=t.canvas.style,i=[e.getPropertyValue("direction"),e.getPropertyPriority("direction")],e.setProperty("direction",n,"important"),t.prevTextDirection=i)}function wT(t,n){n!==void 0&&(delete t.prevTextDirection,t.canvas.style.setProperty("direction",n[0],n[1]))}function n4(t){return t==="angle"?{between:$h,compare:Hne,normalize:sr}:{between:As,compare:(n,e)=>n-e,normalize:n=>n}}function Sj({start:t,end:n,count:e,loop:i,style:r}){return{start:t%e,end:n%e,loop:i&&(n-t+1)%e===0,style:r}}function Ere(t,n,e){let{property:i,start:r,end:o}=e,{between:a,normalize:s}=n4(i),l=n.length,{start:c,end:d,loop:p}=t,_,b;if(p){for(c+=l,d+=l,_=0,b=l;_l(r,W,D)&&s(r,W)!==0,K=()=>s(o,D)===0||l(o,W,D),oe=()=>w||Z(),ke=()=>!w||K();for(let ve=d,Ve=d;ve<=p;++ve)F=n[ve%a],!F.skip&&(D=c(F[i]),D!==W&&(w=l(D,r,o),C===null&&oe()&&(C=s(D,r)===0?ve:Ve),C!==null&&ke()&&(y.push(Sj({start:C,end:ve,loop:_,count:a,style:b})),C=null),Ve=ve,W=D));return C!==null&&y.push(Sj({start:C,end:p,loop:_,count:a,style:b})),y}function ET(t,n){let e=[],i=t.segments;for(let r=0;rr&&t[o%n].skip;)o--;return o%=n,{start:r,end:o}}function Sre(t,n,e,i){let r=t.length,o=[],a=n,s=t[n],l;for(l=n+1;l<=e;++l){let c=t[l%r];c.skip||c.stop?s.skip||(i=!1,o.push({start:n%r,end:(l-1)%r,loop:i}),n=a=c.stop?l:null):(a=l,s.skip&&(n=l)),s=c}return a!==null&&o.push({start:n%r,end:a%r,loop:i}),o}function r4(t,n){let e=t.points,i=t.options.spanGaps,r=e.length;if(!r)return[];let o=!!t._loop,{start:a,end:s}=Mre(e,r,o,i);if(i===!0)return kj(t,[{start:a,end:s,loop:o}],e,n);let l=ss({chart:n,initial:e.initial,numSteps:a,currentStep:Math.min(i-e.start,a)}))}_refresh(){this._request||(this._running=!0,this._request=sT.call(window,()=>{this._update(),this._request=null,this._running&&this._refresh()}))}_update(n=Date.now()){let e=0;this._charts.forEach((i,r)=>{if(!i.running||!i.items.length)return;let o=i.items,a=o.length-1,s=!1,l;for(;a>=0;--a)l=o[a],l._active?(l._total>i.duration&&(i.duration=l._total),l.tick(n),s=!0):(o[a]=o[o.length-1],o.pop());s&&(r.draw(),this._notify(r,i,n,"progress")),o.length||(i.running=!1,this._notify(r,i,n,"complete"),i.initial=!1),e+=o.length}),this._lastDate=n,e===0&&(this._running=!1)}_getAnims(n){let e=this._charts,i=e.get(n);return i||(i={running:!1,initial:!0,items:[],listeners:{complete:[],progress:[]}},e.set(n,i)),i}listen(n,e,i){this._getAnims(n).listeners[e].push(i)}add(n,e){!e||!e.length||this._getAnims(n).items.push(...e)}has(n){return this._getAnims(n).items.length>0}start(n){let e=this._charts.get(n);e&&(e.running=!0,e.start=Date.now(),e.duration=e.items.reduce((i,r)=>Math.max(i,r._duration),0),this._refresh())}running(n){if(!this._running)return!1;let e=this._charts.get(n);return!(!e||!e.running||!e.items.length)}stop(n){let e=this._charts.get(n);if(!e||!e.items.length)return;let i=e.items,r=i.length-1;for(;r>=0;--r)i[r].cancel();e.items=[],this._notify(n,e,Date.now(),"complete")}remove(n){return this._charts.delete(n)}},xl=new VT,o4="transparent",Are={boolean(t,n,e){return e>.5?n:t},color(t,n,e){let i=mT(t||o4),r=i.valid&&mT(n||o4);return r&&r.valid?r.mix(i,e).hexString():n},number(t,n,e){return t+(n-t)*e}},BT=class{constructor(n,e,i,r){let o=e[i];r=qh([n.to,r,o,n.from]);let a=qh([n.from,o,r]);this._active=!0,this._fn=n.fn||Are[n.type||typeof a],this._easing=Vh[n.easing]||Vh.linear,this._start=Math.floor(Date.now()+(n.delay||0)),this._duration=this._total=Math.floor(n.duration),this._loop=!!n.loop,this._target=e,this._prop=i,this._from=a,this._to=r,this._promises=void 0}active(){return this._active}update(n,e,i){if(this._active){this._notify(!1);let r=this._target[this._prop],o=i-this._start,a=this._duration-o;this._start=i,this._duration=Math.floor(Math.max(a,n.duration)),this._total+=o,this._loop=!!n.loop,this._to=qh([n.to,e,r,n.from]),this._from=qh([n.from,r,e])}}cancel(){this._active&&(this.tick(Date.now()),this._active=!1,this._notify(!1))}tick(n){let e=n-this._start,i=this._duration,r=this._prop,o=this._from,a=this._loop,s=this._to,l;if(this._active=o!==s&&(a||e1?2-l:l,l=this._easing(Math.min(1,Math.max(0,l))),this._target[r]=this._fn(o,s,l)}wait(){let n=this._promises||(this._promises=[]);return new Promise((e,i)=>{n.push({res:e,rej:i})})}_notify(n){let e=n?"res":"rej",i=this._promises||[];for(let r=0;r{let o=n[r];if(!At(o))return;let a={};for(let s of e)a[s]=o[s];(Ti(o.properties)&&o.properties||[r]).forEach(s=>{(s===r||!i.has(s))&&i.set(s,a)})})}_animateOptions(n,e){let i=e.options,r=Rre(n,i);if(!r)return[];let o=this._createAnimations(r,i);return i.$shared&&Ore(n.options.$animations,i).then(()=>{n.options=i},()=>{}),o}_createAnimations(n,e){let i=this._properties,r=[],o=n.$animations||(n.$animations={}),a=Object.keys(e),s=Date.now(),l;for(l=a.length-1;l>=0;--l){let c=a[l];if(c.charAt(0)==="$")continue;if(c==="options"){r.push(...this._animateOptions(n,e));continue}let d=e[c],p=o[c],_=i.get(c);if(p)if(_&&p.active()){p.update(_,d,s);continue}else p.cancel();if(!_||!_.duration){n[c]=d;continue}o[c]=p=new BT(_,n,c,d),r.push(p)}return r}update(n,e){if(this._properties.size===0){Object.assign(n,e);return}let i=this._createAnimations(n,e);if(i.length)return xl.add(this._chart,i),!0}};function Ore(t,n){let e=[],i=Object.keys(n);for(let r=0;r0||!e&&o<0)return r.index}return null}function c4(t,n){let{chart:e,_cachedMeta:i}=t,r=e._stacks||(e._stacks={}),{iScale:o,vScale:a,index:s}=i,l=o.axis,c=a.axis,d=Lre(o,a,i),p=n.length,_;for(let b=0;be[i].axis===n).shift()}function jre(t,n){return yl(t,{active:!1,dataset:void 0,datasetIndex:n,index:n,mode:"default",type:"dataset"})}function Hre(t,n,e){return yl(t,{active:!1,dataIndex:n,parsed:void 0,raw:void 0,element:e,index:n,mode:"default",type:"data"})}function qg(t,n){let e=t.controller.index,i=t.vScale&&t.vScale.axis;if(i){n=n||t._parsed;for(let r of n){let o=r._stacks;if(!o||o[i]===void 0||o[i][e]===void 0)return;delete o[i][e],o[i]._visualValues!==void 0&&o[i]._visualValues[e]!==void 0&&delete o[i]._visualValues[e]}}}var TT=t=>t==="reset"||t==="none",d4=(t,n)=>n?t:Object.assign({},t),zre=(t,n,e)=>t&&!n.hidden&&n._stacked&&{keys:o5(e,!0),values:null},Pc=(()=>{class t{static defaults={};static datasetElementType=null;static dataElementType=null;constructor(e,i){this.chart=e,this._ctx=e.ctx,this.index=i,this._cachedDataOpts={},this._cachedMeta=this.getMeta(),this._type=this._cachedMeta.type,this.options=void 0,this._parsing=!1,this._data=void 0,this._objectData=void 0,this._sharedOptions=void 0,this._drawStart=void 0,this._drawCount=void 0,this.enableOptionSharing=!1,this.supportsDecimation=!1,this.$context=void 0,this._syncList=[],this.datasetElementType=new.target.datasetElementType,this.dataElementType=new.target.dataElementType,this.initialize()}initialize(){let e=this._cachedMeta;this.configure(),this.linkScales(),e._stacked=ST(e.vScale,e),this.addElements(),this.options.fill&&!this.chart.isPluginEnabled("filler")&&console.warn("Tried to use the 'fill' option without the 'Filler' plugin enabled. Please import and register the 'Filler' plugin and make sure it is not disabled in the options")}updateIndex(e){this.index!==e&&qg(this._cachedMeta),this.index=e}linkScales(){let e=this.chart,i=this._cachedMeta,r=this.getDataset(),o=(_,b,y,w)=>_==="x"?b:_==="r"?w:y,a=i.xAxisID=lt(r.xAxisID,kT(e,"x")),s=i.yAxisID=lt(r.yAxisID,kT(e,"y")),l=i.rAxisID=lt(r.rAxisID,kT(e,"r")),c=i.indexAxis,d=i.iAxisID=o(c,a,s,l),p=i.vAxisID=o(c,s,a,l);i.xScale=this.getScaleForId(a),i.yScale=this.getScaleForId(s),i.rScale=this.getScaleForId(l),i.iScale=this.getScaleForId(d),i.vScale=this.getScaleForId(p)}getDataset(){return this.chart.data.datasets[this.index]}getMeta(){return this.chart.getDatasetMeta(this.index)}getScaleForId(e){return this.chart.scales[e]}_getOtherScale(e){let i=this._cachedMeta;return e===i.iScale?i.vScale:i.iScale}reset(){this._update("reset")}_destroy(){let e=this._cachedMeta;this._data&&oT(this._data,this),e._stacked&&qg(e)}_dataCheck(){let e=this.getDataset(),i=e.data||(e.data=[]),r=this._data;if(At(i)){let o=this._cachedMeta;this._data=Nre(i,o)}else if(r!==i){if(r){oT(r,this);let o=this._cachedMeta;qg(o),o._parsed=[]}i&&Object.isExtensible(i)&&jj(i,this),this._syncList=[],this._data=i}}addElements(){let e=this._cachedMeta;this._dataCheck(),this.datasetElementType&&(e.dataset=new this.datasetElementType)}buildOrUpdateElements(e){let i=this._cachedMeta,r=this.getDataset(),o=!1;this._dataCheck();let a=i._stacked;i._stacked=ST(i.vScale,i),i.stack!==r.stack&&(o=!0,qg(i),i.stack=r.stack),this._resyncElements(e),(o||a!==i._stacked)&&(c4(this,i._parsed),i._stacked=ST(i.vScale,i))}configure(){let e=this.chart.config,i=e.datasetScopeKeys(this._type),r=e.getOptionScopes(this.getDataset(),i,!0);this.options=e.createResolver(r,this.getContext()),this._parsing=this.options.parsing,this._cachedDataOpts={}}parse(e,i){let{_cachedMeta:r,_data:o}=this,{iScale:a,_stacked:s}=r,l=a.axis,c=e===0&&i===o.length?!0:r._sorted,d=e>0&&r._parsed[e-1],p,_,b;if(this._parsing===!1)r._parsed=o,r._sorted=!0,b=o;else{Ti(o[e])?b=this.parseArrayData(r,o,e,i):At(o[e])?b=this.parseObjectData(r,o,e,i):b=this.parsePrimitiveData(r,o,e,i);let y=()=>_[l]===null||d&&_[l]C||_=0;--b)if(!w()){this.updateRangeFromParsed(d,e,y,c);break}}return d}getAllParsedValues(e){let i=this._cachedMeta._parsed,r=[],o,a,s;for(o=0,a=i.length;o=0&&ethis.getContext(r,o,i),C=d.resolveNamedOptions(b,y,w,_);return C.$shared&&(C.$shared=c,a[s]=Object.freeze(d4(C,c))),C}_resolveAnimations(e,i,r){let o=this.chart,a=this._cachedDataOpts,s=`animation-${i}`,l=a[s];if(l)return l;let c;if(o.options.animation!==!1){let p=this.chart.config,_=p.datasetAnimationScopeKeys(this._type,i),b=p.getOptionScopes(this.getDataset(),_);c=p.createResolver(b,this.getContext(e,r,i))}let d=new dC(o,c&&c.animations);return c&&c._cacheable&&(a[s]=Object.freeze(d)),d}getSharedOptions(e){if(e.$shared)return this._sharedOptions||(this._sharedOptions=Object.assign({},e))}includeOptions(e,i){return!i||TT(e)||this.chart._animationsDisabled}_getSharedOptions(e,i){let r=this.resolveDataElementOptions(e,i),o=this._sharedOptions,a=this.getSharedOptions(r),s=this.includeOptions(i,a)||a!==o;return this.updateSharedOptions(a,i,r),{sharedOptions:a,includeOptions:s}}updateElement(e,i,r,o){TT(o)?Object.assign(e,r):this._resolveAnimations(i,o).update(e,r)}updateSharedOptions(e,i,r){e&&!TT(i)&&this._resolveAnimations(void 0,i).update(e,r)}_setStyle(e,i,r,o){e.active=o;let a=this.getStyle(i,o);this._resolveAnimations(i,r,o).update(e,{options:!o&&this.getSharedOptions(a)||a})}removeHoverStyle(e,i,r){this._setStyle(e,r,"active",!1)}setHoverStyle(e,i,r){this._setStyle(e,r,"active",!0)}_removeDatasetHoverStyle(){let e=this._cachedMeta.dataset;e&&this._setStyle(e,void 0,"active",!1)}_setDatasetHoverStyle(){let e=this._cachedMeta.dataset;e&&this._setStyle(e,void 0,"active",!0)}_resyncElements(e){let i=this._data,r=this._cachedMeta.data;for(let[l,c,d]of this._syncList)this[l](c,d);this._syncList=[];let o=r.length,a=i.length,s=Math.min(a,o);s&&this.parse(0,s),a>o?this._insertElements(o,a-o,e):a{for(d.length+=i,l=d.length-1;l>=s;l--)d[l]=d[l-i]};for(c(a),l=e;lr-o))}return t._cache.$bar}function $re(t){let n=t.iScale,e=Ure(n,t.type),i=n._length,r,o,a,s,l=()=>{a===32767||a===-32768||(zh(s)&&(i=Math.min(i,Math.abs(a-s)||i)),s=a)};for(r=0,o=e.length;r0?r[t-1]:null,s=tMath.abs(s)&&(l=s,c=a),n[e.axis]=c,n._custom={barStart:l,barEnd:c,start:r,end:o,min:a,max:s}}function a5(t,n,e,i){return Ti(t)?qre(t,n,e,i):n[e.axis]=e.parse(t,i),n}function u4(t,n,e,i){let r=t.iScale,o=t.vScale,a=r.getLabels(),s=r===o,l=[],c,d,p,_;for(c=e,d=e+i;c=e?1:-1)}function Qre(t){let n,e,i,r,o;return t.horizontal?(n=t.base>t.x,e="left",i="right"):(n=t.base{class t extends Pc{static id="bar";static defaults={datasetElementType:!1,dataElementType:"bar",categoryPercentage:.8,barPercentage:.9,grouped:!0,animations:{numbers:{type:"number",properties:["x","y","base","width","height"]}}};static overrides={scales:{_index_:{type:"category",offset:!0,grid:{offset:!0}},_value_:{type:"linear",beginAtZero:!0}}};parsePrimitiveData(e,i,r,o){return u4(e,i,r,o)}parseArrayData(e,i,r,o){return u4(e,i,r,o)}parseObjectData(e,i,r,o){let{iScale:a,vScale:s}=e,{xAxisKey:l="x",yAxisKey:c="y"}=this._parsing,d=a.axis==="x"?l:c,p=s.axis==="x"?l:c,_=[],b,y,w,C;for(b=r,y=r+o;bp.controller.options.grouped),a=r.options.stacked,s=[],l=this._cachedMeta.controller.getParsed(i),c=l&&l[r.axis],d=p=>{let _=p._parsed.find(y=>y[r.axis]===c),b=_&&_[p.vScale.axis];if(Tt(b)||isNaN(b))return!0};for(let p of o)if(!(i!==void 0&&d(p))&&((a===!1||s.indexOf(p.stack)===-1||a===void 0&&p.stack===void 0)&&s.push(p.stack),p.index===e))break;return s.length||s.push(void 0),s}_getStackCount(e){return this._getStacks(void 0,e).length}_getAxisCount(){return this._getAxis().length}getFirstScaleIdForIndexAxis(){let e=this.chart.scales,i=this.chart.options.indexAxis;return Object.keys(e).filter(r=>e[r].axis===i).shift()}_getAxis(){let e={},i=this.getFirstScaleIdForIndexAxis();for(let r of this.chart.data.datasets)e[lt(this.chart.options.indexAxis==="x"?r.xAxisID:r.yAxisID,i)]=!0;return Object.keys(e)}_getStackIndex(e,i,r){let o=this._getStacks(e,r),a=i!==void 0?o.indexOf(i):-1;return a===-1?o.length-1:a}_getRuler(){let e=this.options,i=this._cachedMeta,r=i.iScale,o=[],a,s;for(a=0,s=i.data.length;a{class t extends Pc{static id="bubble";static defaults={datasetElementType:!1,dataElementType:"point",animations:{numbers:{type:"number",properties:["x","y","borderWidth","radius"]}}};static overrides={scales:{x:{type:"linear"},y:{type:"linear"}}};initialize(){this.enableOptionSharing=!0,super.initialize()}parsePrimitiveData(e,i,r,o){let a=super.parsePrimitiveData(e,i,r,o);for(let s=0;s=0;--r)i=Math.max(i,e[r].size(this.resolveDataElementOptions(r))/2);return i>0&&i}getLabelAndValue(e){let i=this._cachedMeta,r=this.chart.data.labels||[],{xScale:o,yScale:a}=i,s=this.getParsed(e),l=o.getLabelForValue(s.x),c=a.getLabelForValue(s.y),d=s._custom;return{label:r[e]||"",value:"("+l+", "+c+(d?", "+d:"")+")"}}update(e){let i=this._cachedMeta.data;this.updateElements(i,0,i.length,e)}updateElements(e,i,r,o){let a=o==="reset",{iScale:s,vScale:l}=this._cachedMeta,{sharedOptions:c,includeOptions:d}=this._getSharedOptions(i,o),p=s.axis,_=l.axis;for(let b=i;b$h(W,s,l,!0)?1:Math.max(Z,Z*e,K,K*e),y=(W,Z,K)=>$h(W,s,l,!0)?-1:Math.min(Z,Z*e,K,K*e),w=b(0,c,p),C=b(tn,d,_),D=y($t,c,p),F=y($t+tn,d,_);i=(w-D)/2,r=(C-F)/2,o=-(w+D)/2,a=-(C+F)/2}return{ratioX:i,ratioY:r,offsetX:o,offsetY:a}}var oI=(()=>{class t extends Pc{static id="doughnut";static defaults={datasetElementType:!1,dataElementType:"arc",animation:{animateRotate:!0,animateScale:!1},animations:{numbers:{type:"number",properties:["circumference","endAngle","innerRadius","outerRadius","startAngle","x","y","offset","borderWidth","spacing"]}},cutout:"50%",rotation:0,circumference:360,radius:"100%",spacing:0,indexAxis:"r"};static descriptors={_scriptable:e=>e!=="spacing",_indexable:e=>e!=="spacing"&&!e.startsWith("borderDash")&&!e.startsWith("hoverBorderDash")};static overrides={aspectRatio:1,plugins:{legend:{labels:{generateLabels(e){let i=e.data,{labels:{pointStyle:r,textAlign:o,color:a,useBorderRadius:s,borderRadius:l}}=e.legend.options;return i.labels.length&&i.datasets.length?i.labels.map((c,d)=>{let _=e.getDatasetMeta(0).controller.getStyle(d);return{text:c,fillStyle:_.backgroundColor,fontColor:a,hidden:!e.getDataVisibility(d),lineDash:_.borderDash,lineDashOffset:_.borderDashOffset,lineJoin:_.borderJoinStyle,lineWidth:_.borderWidth,strokeStyle:_.borderColor,textAlign:o,pointStyle:r,borderRadius:s&&(l||_.borderRadius),index:d}}):[]}},onClick(e,i,r){r.chart.toggleDataVisibility(i.index),r.chart.update()}}}};constructor(e,i){super(e,i),this.enableOptionSharing=!0,this.innerRadius=void 0,this.outerRadius=void 0,this.offsetX=void 0,this.offsetY=void 0}linkScales(){}parse(e,i){let r=this.getDataset().data,o=this._cachedMeta;if(this._parsing===!1)o._parsed=r;else{let a=c=>+r[c];if(At(r[e])){let{key:c="value"}=this._parsing;a=d=>+vl(r[d],c)}let s,l;for(s=e,l=e+i;s0&&!isNaN(e)?Ii*(Math.abs(e)/i):0}getLabelAndValue(e){let i=this._cachedMeta,r=this.chart,o=r.data.labels||[],a=Wh(i._parsed[e],r.options.locale);return{label:o[e]||"",value:a}}getMaxBorderWidth(e){let i=0,r=this.chart,o,a,s,l,c;if(!e){for(o=0,a=r.data.datasets.length;o{class t extends Pc{static id="line";static defaults={datasetElementType:"line",dataElementType:"point",showLine:!0,spanGaps:!1};static overrides={scales:{_index_:{type:"category"},_value_:{type:"linear"}}};initialize(){this.enableOptionSharing=!0,this.supportsDecimation=!0,super.initialize()}update(e){let i=this._cachedMeta,{dataset:r,data:o=[],_dataset:a}=i,s=this.chart._animationsDisabled,{start:l,count:c}=cT(i,o,s);this._drawStart=l,this._drawCount=c,dT(i)&&(l=0,c=o.length),r._chart=this.chart,r._datasetIndex=this.index,r._decimated=!!a._decimated,r.points=o;let d=this.resolveDatasetElementOptions(e);this.options.showLine||(d.borderWidth=0),d.segment=this.options.segment,this.updateElement(r,void 0,{animated:!s,options:d},e),this.updateElements(o,l,c,e)}updateElements(e,i,r,o){let a=o==="reset",{iScale:s,vScale:l,_stacked:c,_dataset:d}=this._cachedMeta,{sharedOptions:p,includeOptions:_}=this._getSharedOptions(i,o),b=s.axis,y=l.axis,{spanGaps:w,segment:C}=this.options,D=Mu(w)?w:Number.POSITIVE_INFINITY,F=this.chart._animationsDisabled||a||o==="none",W=i+r,Z=e.length,K=i>0&&this.getParsed(i-1);for(let oe=0;oe=W){ve.skip=!0;continue}let Ve=this.getParsed(oe),yt=Tt(Ve[y]),vt=ve[b]=s.getPixelForValue(Ve[b],oe),Rt=ve[y]=a||yt?l.getBasePixel():l.getPixelForValue(c?this.applyStack(l,Ve,c):Ve[y],oe);ve.skip=isNaN(vt)||isNaN(Rt)||yt,ve.stop=oe>0&&Math.abs(Ve[b]-K[b])>D,C&&(ve.parsed=Ve,ve.raw=d.data[oe]),_&&(ve.options=p||this.resolveDataElementOptions(oe,ke.active?"active":o)),F||this.updateElement(ke,oe,ve,o),K=Ve}}getMaxOverflow(){let e=this._cachedMeta,i=e.dataset,r=i.options&&i.options.borderWidth||0,o=e.data||[];if(!o.length)return r;let a=o[0].size(this.resolveDataElementOptions(0)),s=o[o.length-1].size(this.resolveDataElementOptions(o.length-1));return Math.max(r,a,s)/2}draw(){let e=this._cachedMeta;e.dataset.updateControlPoints(this.chart.chartArea,e.iScale.axis),super.draw()}}return t})(),s5=(()=>{class t extends Pc{static id="polarArea";static defaults={dataElementType:"arc",animation:{animateRotate:!0,animateScale:!0},animations:{numbers:{type:"number",properties:["x","y","startAngle","endAngle","innerRadius","outerRadius"]}},indexAxis:"r",startAngle:0};static overrides={aspectRatio:1,plugins:{legend:{labels:{generateLabels(e){let i=e.data;if(i.labels.length&&i.datasets.length){let{labels:{pointStyle:r,color:o}}=e.legend.options;return i.labels.map((a,s)=>{let c=e.getDatasetMeta(0).controller.getStyle(s);return{text:a,fillStyle:c.backgroundColor,strokeStyle:c.borderColor,fontColor:o,lineWidth:c.borderWidth,pointStyle:r,hidden:!e.getDataVisibility(s),index:s}})}return[]}},onClick(e,i,r){r.chart.toggleDataVisibility(i.index),r.chart.update()}}},scales:{r:{type:"radialLinear",angleLines:{display:!1},beginAtZero:!0,grid:{circular:!0},pointLabels:{display:!1},startAngle:0}}};constructor(e,i){super(e,i),this.innerRadius=void 0,this.outerRadius=void 0}getLabelAndValue(e){let i=this._cachedMeta,r=this.chart,o=r.data.labels||[],a=Wh(i._parsed[e].r,r.options.locale);return{label:o[e]||"",value:a}}parseObjectData(e,i,r,o){return vT.bind(this)(e,i,r,o)}update(e){let i=this._cachedMeta.data;this._updateRadius(),this.updateElements(i,0,i.length,e)}getMinMax(){let e=this._cachedMeta,i={min:Number.POSITIVE_INFINITY,max:Number.NEGATIVE_INFINITY};return e.data.forEach((r,o)=>{let a=this.getParsed(o).r;!isNaN(a)&&this.chart.getDataVisibility(o)&&(ai.max&&(i.max=a))}),i}_updateRadius(){let e=this.chart,i=e.chartArea,r=e.options,o=Math.min(i.right-i.left,i.bottom-i.top),a=Math.max(o/2,0),s=Math.max(r.cutoutPercentage?a/100*r.cutoutPercentage:1,0),l=(a-s)/e.getVisibleDatasetCount();this.outerRadius=a-l*this.index,this.innerRadius=this.outerRadius-l}updateElements(e,i,r,o){let a=o==="reset",s=this.chart,c=s.options.animation,d=this._cachedMeta.rScale,p=d.xCenter,_=d.yCenter,b=d.getIndexAngle(0)-.5*$t,y=b,w,C=360/this.countVisibleElements();for(w=0;w{!isNaN(this.getParsed(o).r)&&this.chart.getDataVisibility(o)&&i++}),i}_computeAngle(e,i,r){return this.chart.getDataVisibility(e)?sa(this.resolveDataElementOptions(e,i).angle||r):0}}return t})(),noe=(()=>{class t extends oI{static id="pie";static defaults={cutout:0,rotation:0,circumference:360,radius:"100%"}}return t})(),roe=(()=>{class t extends Pc{static id="radar";static defaults={datasetElementType:"line",dataElementType:"point",indexAxis:"r",showLine:!0,elements:{line:{fill:"start"}}};static overrides={aspectRatio:1,scales:{r:{type:"radialLinear"}}};getLabelAndValue(e){let i=this._cachedMeta.vScale,r=this.getParsed(e);return{label:i.getLabels()[e],value:""+i.getLabelForValue(r[i.axis])}}parseObjectData(e,i,r,o){return vT.bind(this)(e,i,r,o)}update(e){let i=this._cachedMeta,r=i.dataset,o=i.data||[],a=i.iScale.getLabels();if(r.points=o,e!=="resize"){let s=this.resolveDatasetElementOptions(e);this.options.showLine||(s.borderWidth=0);let l={_loop:!0,_fullLoop:a.length===o.length,options:s};this.updateElement(r,void 0,l,e)}this.updateElements(o,0,o.length,e)}updateElements(e,i,r,o){let a=this._cachedMeta.rScale,s=o==="reset";for(let l=i;l{class t extends Pc{static id="scatter";static defaults={datasetElementType:!1,dataElementType:"point",showLine:!1,fill:!1};static overrides={interaction:{mode:"point"},scales:{x:{type:"linear"},y:{type:"linear"}}};getLabelAndValue(e){let i=this._cachedMeta,r=this.chart.data.labels||[],{xScale:o,yScale:a}=i,s=this.getParsed(e),l=o.getLabelForValue(s.x),c=a.getLabelForValue(s.y);return{label:r[e]||"",value:"("+l+", "+c+")"}}update(e){let i=this._cachedMeta,{data:r=[]}=i,o=this.chart._animationsDisabled,{start:a,count:s}=cT(i,r,o);if(this._drawStart=a,this._drawCount=s,dT(i)&&(a=0,s=r.length),this.options.showLine){this.datasetElementType||this.addElements();let{dataset:l,_dataset:c}=i;l._chart=this.chart,l._datasetIndex=this.index,l._decimated=!!c._decimated,l.points=r;let d=this.resolveDatasetElementOptions(e);d.segment=this.options.segment,this.updateElement(l,void 0,{animated:!o,options:d},e)}else this.datasetElementType&&(delete i.dataset,this.datasetElementType=!1);this.updateElements(r,a,s,e)}addElements(){let{showLine:e}=this.options;!this.datasetElementType&&e&&(this.datasetElementType=this.chart.registry.getElement("line")),super.addElements()}updateElements(e,i,r,o){let a=o==="reset",{iScale:s,vScale:l,_stacked:c,_dataset:d}=this._cachedMeta,p=this.resolveDataElementOptions(i,o),_=this.getSharedOptions(p),b=this.includeOptions(o,_),y=s.axis,w=l.axis,{spanGaps:C,segment:D}=this.options,F=Mu(C)?C:Number.POSITIVE_INFINITY,W=this.chart._animationsDisabled||a||o==="none",Z=i>0&&this.getParsed(i-1);for(let K=i;K0&&Math.abs(ke[y]-Z[y])>F,D&&(ve.parsed=ke,ve.raw=d.data[K]),b&&(ve.options=_||this.resolveDataElementOptions(K,oe.active?"active":o)),W||this.updateElement(oe,K,ve,o),Z=ke}this.updateSharedOptions(_,o,p)}getMaxOverflow(){let e=this._cachedMeta,i=e.data||[];if(!this.options.showLine){let l=0;for(let c=i.length-1;c>=0;--c)l=Math.max(l,i[c].size(this.resolveDataElementOptions(c))/2);return l>0&&l}let r=e.dataset,o=r.options&&r.options.borderWidth||0;if(!i.length)return o;let a=i[0].size(this.resolveDataElementOptions(0)),s=i[i.length-1].size(this.resolveDataElementOptions(i.length-1));return Math.max(o,a,s)/2}}return t})(),aoe=Object.freeze({__proto__:null,BarController:Jre,BubbleController:eoe,DoughnutController:oI,LineController:ioe,PieController:noe,PolarAreaController:s5,RadarController:roe,ScatterController:ooe});function ku(){throw new Error("This method is not implemented: Check that a complete date adapter is provided.")}var jT=class t{static override(n){Object.assign(t.prototype,n)}options;constructor(n){this.options=n||{}}init(){}formats(){return ku()}parse(){return ku()}format(){return ku()}add(){return ku()}diff(){return ku()}startOf(){return ku()}endOf(){return ku()}},soe={_date:jT};function loe(t,n,e,i){let{controller:r,data:o,_sorted:a}=t,s=r._cachedMeta.iScale,l=t.dataset&&t.dataset.options?t.dataset.options.spanGaps:null;if(s&&n===s.axis&&n!=="r"&&a&&o.length){let c=s._reversePixels?Lj:ks;if(i){if(r._sharedOptions){let d=o[0],p=typeof d.getRange=="function"&&d.getRange(n);if(p){let _=c(o,n,e-p),b=c(o,n,e+p);return{lo:_.lo,hi:b.hi}}}}else{let d=c(o,n,e);if(l){let{vScale:p}=r._cachedMeta,{_parsed:_}=t,b=_.slice(0,d.lo+1).reverse().findIndex(w=>!Tt(w[p.axis]));d.lo-=Math.max(0,b);let y=_.slice(d.hi).findIndex(w=>!Tt(w[p.axis]));d.hi+=Math.max(0,y)}return d}}return{lo:0,hi:o.length-1}}function n_(t,n,e,i,r){let o=t.getSortedVisibleDatasetMetas(),a=e[n];for(let s=0,l=o.length;s{l[a]&&l[a](n[e],r)&&(o.push({element:l,datasetIndex:c,index:d}),s=s||l.inRange(n.x,n.y,r))}),i&&!s?[]:o}var moe={evaluateInteractionItems:n_,modes:{index(t,n,e,i){let r=Oc(n,t),o=e.axis||"x",a=e.includeInvisible||!1,s=e.intersect?AT(t,r,o,i,a):OT(t,r,o,!1,i,a),l=[];return s.length?(t.getSortedVisibleDatasetMetas().forEach(c=>{let d=s[0].index,p=c.data[d];p&&!p.skip&&l.push({element:p,datasetIndex:c.index,index:d})}),l):[]},dataset(t,n,e,i){let r=Oc(n,t),o=e.axis||"xy",a=e.includeInvisible||!1,s=e.intersect?AT(t,r,o,i,a):OT(t,r,o,!1,i,a);if(s.length>0){let l=s[0].datasetIndex,c=t.getDatasetMeta(l).data;s=[];for(let d=0;de.pos===n)}function f4(t,n){return t.filter(e=>l5.indexOf(e.pos)===-1&&e.box.axis===n)}function Qg(t,n){return t.sort((e,i)=>{let r=n?i:e,o=n?e:i;return r.weight===o.weight?r.index-o.index:r.weight-o.weight})}function hoe(t){let n=[],e,i,r,o,a,s;for(e=0,i=(t||[]).length;ec.box.fullSize),!0),i=Qg(Yg(n,"left"),!0),r=Qg(Yg(n,"right")),o=Qg(Yg(n,"top"),!0),a=Qg(Yg(n,"bottom")),s=f4(n,"x"),l=f4(n,"y");return{fullSize:e,leftAndTop:i.concat(o),rightAndBottom:r.concat(l).concat(a).concat(s),chartArea:Yg(n,"chartArea"),vertical:i.concat(r).concat(l),horizontal:o.concat(a).concat(s)}}function g4(t,n,e,i){return Math.max(t[e],n[e])+Math.max(t[i],n[i])}function c5(t,n){t.top=Math.max(t.top,n.top),t.left=Math.max(t.left,n.left),t.bottom=Math.max(t.bottom,n.bottom),t.right=Math.max(t.right,n.right)}function _oe(t,n,e,i){let{pos:r,box:o}=e,a=t.maxPadding;if(!At(r)){e.size&&(t[r]-=e.size);let p=i[e.stack]||{size:0,count:1};p.size=Math.max(p.size,e.horizontal?o.height:o.width),e.size=p.size/p.count,t[r]+=e.size}o.getPadding&&c5(a,o.getPadding());let s=Math.max(0,n.outerWidth-g4(a,t,"left","right")),l=Math.max(0,n.outerHeight-g4(a,t,"top","bottom")),c=s!==t.w,d=l!==t.h;return t.w=s,t.h=l,e.horizontal?{same:c,other:d}:{same:d,other:c}}function boe(t){let n=t.maxPadding;function e(i){let r=Math.max(n[i]-t[i],0);return t[i]+=r,r}t.y+=e("top"),t.x+=e("left"),e("right"),e("bottom")}function voe(t,n){let e=n.maxPadding;function i(r){let o={left:0,top:0,right:0,bottom:0};return r.forEach(a=>{o[a]=Math.max(n[a],e[a])}),o}return i(t?["left","right"]:["top","bottom"])}function Xg(t,n,e,i){let r=[],o,a,s,l,c,d;for(o=0,a=t.length,c=0;o{typeof w.beforeLayout=="function"&&w.beforeLayout()});let d=l.reduce((w,C)=>C.box.options&&C.box.options.display===!1?w:w+1,0)||1,p=Object.freeze({outerWidth:n,outerHeight:e,padding:r,availableWidth:o,availableHeight:a,vBoxMaxWidth:o/2/d,hBoxMaxHeight:a/2}),_=Object.assign({},r);c5(_,cr(i));let b=Object.assign({maxPadding:_,w:o,h:a,x:r.left,y:r.top},r),y=foe(l.concat(c),p);Xg(s.fullSize,b,p,y),Xg(l,b,p,y),Xg(c,b,p,y)&&Xg(l,b,p,y),boe(b),_4(s.leftAndTop,b,p,y),b.x+=b.w,b.y+=b.h,_4(s.rightAndBottom,b,p,y),t.chartArea={left:b.left,top:b.top,right:b.left+b.w,bottom:b.top+b.h,height:b.h,width:b.w},ai(s.chartArea,w=>{let C=w.box;Object.assign(C,t.chartArea),C.update(b.w,b.h,{left:0,top:0,right:0,bottom:0})})}},uC=class{acquireContext(n,e){}releaseContext(n){return!1}addEventListener(n,e,i){}removeEventListener(n,e,i){}getDevicePixelRatio(){return 1}getMaximumSize(n,e,i,r){return e=Math.max(0,e||n.width),i=i||n.height,{width:e,height:Math.max(0,r?Math.floor(e/r):i)}}isAttached(n){return!0}updateConfig(n){}},HT=class extends uC{acquireContext(n){return n&&n.getContext&&n.getContext("2d")||null}updateConfig(n){n.options.animation=!1}},lC="$chartjs",yoe={touchstart:"mousedown",touchmove:"mousemove",touchend:"mouseup",pointerenter:"mouseenter",pointerdown:"mousedown",pointermove:"mousemove",pointerup:"mouseup",pointerleave:"mouseout",pointerout:"mouseout"},b4=t=>t===null||t==="";function xoe(t,n){let e=t.style,i=t.getAttribute("height"),r=t.getAttribute("width");if(t[lC]={initial:{height:i,width:r,style:{display:e.display,height:e.height,width:e.width}}},e.display=e.display||"block",e.boxSizing=e.boxSizing||"border-box",b4(r)){let o=xT(t,"width");o!==void 0&&(t.width=o)}if(b4(i))if(t.style.height==="")t.height=t.width/(n||2);else{let o=xT(t,"height");o!==void 0&&(t.height=o)}return t}var d5=e4?{passive:!0}:!1;function Coe(t,n,e){t&&t.addEventListener(n,e,d5)}function woe(t,n,e){t&&t.canvas&&t.canvas.removeEventListener(n,e,d5)}function Doe(t,n){let e=yoe[t.type]||t.type,{x:i,y:r}=Oc(t,n);return{type:e,chart:n,native:t,x:i!==void 0?i:null,y:r!==void 0?r:null}}function mC(t,n){for(let e of t)if(e===n||e.contains(n))return!0}function Eoe(t,n,e){let i=t.canvas,r=new MutationObserver(o=>{let a=!1;for(let s of o)a=a||mC(s.addedNodes,i),a=a&&!mC(s.removedNodes,i);a&&e()});return r.observe(document,{childList:!0,subtree:!0}),r}function Moe(t,n,e){let i=t.canvas,r=new MutationObserver(o=>{let a=!1;for(let s of o)a=a||mC(s.removedNodes,i),a=a&&!mC(s.addedNodes,i);a&&e()});return r.observe(document,{childList:!0,subtree:!0}),r}var e_=new Map,v4=0;function u5(){let t=window.devicePixelRatio;t!==v4&&(v4=t,e_.forEach((n,e)=>{e.currentDevicePixelRatio!==t&&n()}))}function Soe(t,n){e_.size||window.addEventListener("resize",u5),e_.set(t,n)}function koe(t){e_.delete(t),e_.size||window.removeEventListener("resize",u5)}function Toe(t,n,e){let i=t.canvas,r=i&&eC(i);if(!r)return;let o=lT((s,l)=>{let c=r.clientWidth;e(s,l),c{let l=s[0],c=l.contentRect.width,d=l.contentRect.height;c===0&&d===0||o(c,d)});return a.observe(r),Soe(t,o),a}function RT(t,n,e){e&&e.disconnect(),n==="resize"&&koe(t)}function Ioe(t,n,e){let i=t.canvas,r=lT(o=>{t.ctx!==null&&e(Doe(o,t))},t);return Coe(i,n,r),r}var zT=class extends uC{acquireContext(n,e){let i=n&&n.getContext&&n.getContext("2d");return i&&i.canvas===n?(xoe(n,e),i):null}releaseContext(n){let e=n.canvas;if(!e[lC])return!1;let i=e[lC].initial;["height","width"].forEach(o=>{let a=i[o];Tt(a)?e.removeAttribute(o):e.setAttribute(o,a)});let r=i.style||{};return Object.keys(r).forEach(o=>{e.style[o]=r[o]}),e.width=e.width,delete e[lC],!0}addEventListener(n,e,i){this.removeEventListener(n,e);let r=n.$proxies||(n.$proxies={}),a={attach:Eoe,detach:Moe,resize:Toe}[e]||Ioe;r[e]=a(n,e,i)}removeEventListener(n,e){let i=n.$proxies||(n.$proxies={}),r=i[e];if(!r)return;({attach:RT,detach:RT,resize:RT}[e]||woe)(n,e,r),i[e]=void 0}getDevicePixelRatio(){return window.devicePixelRatio}getMaximumSize(n,e,i,r){return Jj(n,e,i,r)}isAttached(n){let e=n&&eC(n);return!!(e&&e.isConnected)}};function Aoe(t){return!Jx()||typeof OffscreenCanvas<"u"&&t instanceof OffscreenCanvas?HT:zT}var za=class{static defaults={};static defaultRoutes=void 0;x;y;active=!1;options;$animations;tooltipPosition(n){let{x:e,y:i}=this.getProps(["x","y"],n);return{x:e,y:i}}hasValue(){return Mu(this.x)&&Mu(this.y)}getProps(n,e){let i=this.$animations;if(!e||!i)return this;let r={};return n.forEach(o=>{r[o]=i[o]&&i[o].active()?i[o]._to:this[o]}),r}};function Ooe(t,n){let e=t.options.ticks,i=Roe(t),r=Math.min(e.maxTicksLimit||i,i),o=e.major.enabled?Foe(n):[],a=o.length,s=o[0],l=o[a-1],c=[];if(a>r)return Noe(n,c,o,a/r),c;let d=Poe(o,n,r);if(a>0){let p,_,b=a>1?Math.round((l-s)/(a-1)):null;for(nC(n,c,d,Tt(b)?0:s-b,s),p=0,_=a-1;p<_;p++)nC(n,c,d,o[p],o[p+1]);return nC(n,c,d,l,Tt(b)?n.length:l+b),c}return nC(n,c,d),c}function Roe(t){let n=t.options.offset,e=t._tickSize(),i=t._length/e+(n?0:1),r=t._maxLength/e;return Math.floor(Math.min(i,r))}function Poe(t,n,e){let i=Loe(t),r=n.length/e;if(!i)return Math.max(r,1);let o=Pj(i);for(let a=0,s=o.length-1;ar)return l}return Math.max(r,1)}function Foe(t){let n=[],e,i;for(e=0,i=t.length;et==="left"?"right":t==="right"?"left":t,y4=(t,n,e)=>n==="top"||n==="left"?t[n]+e:t[n]-e,x4=(t,n)=>Math.min(n||t,t);function C4(t,n){let e=[],i=t.length/n,r=t.length,o=0;for(;oa+s)))return l}function joe(t,n){ai(t,e=>{let i=e.gc,r=i.length/2,o;if(r>n){for(o=0;oi?i:e,i=r&&e>i?e:i,{min:so(e,so(i,e)),max:so(i,so(e,i))}}getPadding(){return{left:this.paddingLeft||0,top:this.paddingTop||0,right:this.paddingRight||0,bottom:this.paddingBottom||0}}getTicks(){return this.ticks}getLabels(){let n=this.chart.data;return this.options.labels||(this.isHorizontal()?n.xLabels:n.yLabels)||n.labels||[]}getLabelItems(n=this.chart.chartArea){return this._labelItems||(this._labelItems=this._computeLabelItems(n))}beforeLayout(){this._cache={},this._dataLimitsCached=!1}beforeUpdate(){wi(this.options.beforeUpdate,[this])}update(n,e,i){let{beginAtZero:r,grace:o,ticks:a}=this.options,s=a.sampleSize;this.beforeUpdate(),this.maxWidth=n,this.maxHeight=e,this._margins=i=Object.assign({left:0,right:0,top:0,bottom:0},i),this.ticks=null,this._labelSizes=null,this._gridLineItems=null,this._labelItems=null,this.beforeSetDimensions(),this.setDimensions(),this.afterSetDimensions(),this._maxLength=this.isHorizontal()?this.width+i.left+i.right:this.height+i.top+i.bottom,this._dataLimitsCached||(this.beforeDataLimits(),this.determineDataLimits(),this.afterDataLimits(),this._range=qj(this,o,r),this._dataLimitsCached=!0),this.beforeBuildTicks(),this.ticks=this.buildTicks()||[],this.afterBuildTicks();let l=s=o||i<=1||!this.isHorizontal()){this.labelRotation=r;return}let d=this._getLabelSizes(),p=d.widest.width,_=d.highest.height,b=Sn(this.chart.width-p,0,this.maxWidth);s=n.offset?this.maxWidth/i:b/(i-1),p+6>s&&(s=b/(i-(n.offset?.5:1)),l=this.maxHeight-Kg(n.grid)-e.padding-w4(n.title,this.chart.options.font),c=Math.sqrt(p*p+_*_),a=Gx(Math.min(Math.asin(Sn((d.highest.height+6)/s,-1,1)),Math.asin(Sn(l/c,-1,1))-Math.asin(Sn(_/c,-1,1)))),a=Math.max(r,Math.min(o,a))),this.labelRotation=a}afterCalculateLabelRotation(){wi(this.options.afterCalculateLabelRotation,[this])}afterAutoSkip(){}beforeFit(){wi(this.options.beforeFit,[this])}fit(){let n={width:0,height:0},{chart:e,options:{ticks:i,title:r,grid:o}}=this,a=this._isVisible(),s=this.isHorizontal();if(a){let l=w4(r,e.options.font);if(s?(n.width=this.maxWidth,n.height=Kg(o)+l):(n.height=this.maxHeight,n.width=Kg(o)+l),i.display&&this.ticks.length){let{first:c,last:d,widest:p,highest:_}=this._getLabelSizes(),b=i.padding*2,y=sa(this.labelRotation),w=Math.cos(y),C=Math.sin(y);if(s){let D=i.mirror?0:C*p.width+w*_.height;n.height=Math.min(this.maxHeight,n.height+D+b)}else{let D=i.mirror?0:w*p.width+C*_.height;n.width=Math.min(this.maxWidth,n.width+D+b)}this._calculatePadding(c,d,C,w)}}this._handleMargins(),s?(this.width=this._length=e.width-this._margins.left-this._margins.right,this.height=n.height):(this.width=n.width,this.height=this._length=e.height-this._margins.top-this._margins.bottom)}_calculatePadding(n,e,i,r){let{ticks:{align:o,padding:a},position:s}=this.options,l=this.labelRotation!==0,c=s!=="top"&&this.axis==="x";if(this.isHorizontal()){let d=this.getPixelForTick(0)-this.left,p=this.right-this.getPixelForTick(this.ticks.length-1),_=0,b=0;l?c?(_=r*n.width,b=i*e.height):(_=i*n.height,b=r*e.width):o==="start"?b=e.width:o==="end"?_=n.width:o!=="inner"&&(_=n.width/2,b=e.width/2),this.paddingLeft=Math.max((_-d+a)*this.width/(this.width-d),0),this.paddingRight=Math.max((b-p+a)*this.width/(this.width-p),0)}else{let d=e.height/2,p=n.height/2;o==="start"?(d=0,p=n.height):o==="end"&&(d=e.height,p=0),this.paddingTop=d+a,this.paddingBottom=p+a}}_handleMargins(){this._margins&&(this._margins.left=Math.max(this.paddingLeft,this._margins.left),this._margins.top=Math.max(this.paddingTop,this._margins.top),this._margins.right=Math.max(this.paddingRight,this._margins.right),this._margins.bottom=Math.max(this.paddingBottom,this._margins.bottom))}afterFit(){wi(this.options.afterFit,[this])}isHorizontal(){let{axis:n,position:e}=this.options;return e==="top"||e==="bottom"||n==="x"}isFullSize(){return this.options.fullSize}_convertTicksToLabels(n){this.beforeTickToLabelConversion(),this.generateTickLabels(n);let e,i;for(e=0,i=n.length;e({width:a[Ve]||0,height:s[Ve]||0});return{first:ve(0),last:ve(e-1),widest:ve(oe),highest:ve(ke),widths:a,heights:s}}getLabelForValue(n){return n}getPixelForValue(n,e){return NaN}getValueForPixel(n){}getPixelForTick(n){let e=this.ticks;return n<0||n>e.length-1?null:this.getPixelForValue(e[n].value)}getPixelForDecimal(n){this._reversePixels&&(n=1-n);let e=this._startPixel+n*this._length;return Nj(this._alignToPixels?Tc(this.chart,e,0):e)}getDecimalForPixel(n){let e=(n-this._startPixel)/this._length;return this._reversePixels?1-e:e}getBasePixel(){return this.getPixelForValue(this.getBaseValue())}getBaseValue(){let{min:n,max:e}=this;return n<0&&e<0?e:n>0&&e>0?n:0}getContext(n){let e=this.ticks||[];if(n>=0&&ns*r?s/i:l/r:l*r0}_computeGridLineItems(n){let e=this.axis,i=this.chart,r=this.options,{grid:o,position:a,border:s}=r,l=o.offset,c=this.isHorizontal(),p=this.ticks.length+(l?1:0),_=Kg(o),b=[],y=s.setContext(this.getContext()),w=y.display?y.width:0,C=w/2,D=function(Li){return Tc(i,Li,w)},F,W,Z,K,oe,ke,ve,Ve,yt,vt,Rt,Gn;if(a==="top")F=D(this.bottom),ke=this.bottom-_,Ve=F-C,vt=D(n.top)+C,Gn=n.bottom;else if(a==="bottom")F=D(this.top),vt=n.top,Gn=D(n.bottom)-C,ke=F+C,Ve=this.top+_;else if(a==="left")F=D(this.right),oe=this.right-_,ve=F-C,yt=D(n.left)+C,Rt=n.right;else if(a==="right")F=D(this.left),yt=n.left,Rt=D(n.right)-C,oe=F+C,ve=this.left+_;else if(e==="x"){if(a==="center")F=D((n.top+n.bottom)/2+.5);else if(At(a)){let Li=Object.keys(a)[0],rn=a[Li];F=D(this.chart.scales[Li].getPixelForValue(rn))}vt=n.top,Gn=n.bottom,ke=F+C,Ve=ke+_}else if(e==="y"){if(a==="center")F=D((n.left+n.right)/2);else if(At(a)){let Li=Object.keys(a)[0],rn=a[Li];F=D(this.chart.scales[Li].getPixelForValue(rn))}oe=F-C,ve=oe-_,yt=n.left,Rt=n.right}let fo=lt(r.ticks.maxTicksLimit,p),mi=Math.max(1,Math.ceil(p/fo));for(W=0;W0&&(rd-=nd/2);break}S_={left:rd,top:bp,width:nd+Bu.width,height:_p+Bu.height,color:mi.backdropColor}}C.push({label:Z,font:Ve,textOffset:Rt,options:{rotation:w,color:rn,strokeColor:pa,strokeWidth:dr,textAlign:Vu,textBaseline:Gn,translation:[K,oe],backdrop:S_}})}return C}_getXAxisLabelAlignment(){let{position:n,ticks:e}=this.options;if(-sa(this.labelRotation))return n==="top"?"left":"right";let r="center";return e.align==="start"?r="left":e.align==="end"?r="right":e.align==="inner"&&(r="inner"),r}_getYAxisLabelAlignment(n){let{position:e,ticks:{crossAlign:i,mirror:r,padding:o}}=this.options,a=this._getLabelSizes(),s=n+o,l=a.widest.width,c,d;return e==="left"?r?(d=this.right+o,i==="near"?c="left":i==="center"?(c="center",d+=l/2):(c="right",d+=l)):(d=this.right-s,i==="near"?c="right":i==="center"?(c="center",d-=l/2):(c="left",d=this.left)):e==="right"?r?(d=this.left+o,i==="near"?c="right":i==="center"?(c="center",d-=l/2):(c="left",d-=l)):(d=this.left+s,i==="near"?c="left":i==="center"?(c="center",d+=l/2):(c="right",d=this.right)):c="right",{textAlign:c,x:d}}_computeLabelArea(){if(this.options.ticks.mirror)return;let n=this.chart,e=this.options.position;if(e==="left"||e==="right")return{top:0,left:this.left,bottom:n.height,right:this.right};if(e==="top"||e==="bottom")return{top:this.top,left:0,bottom:this.bottom,right:n.width}}drawBackground(){let{ctx:n,options:{backgroundColor:e},left:i,top:r,width:o,height:a}=this;e&&(n.save(),n.fillStyle=e,n.fillRect(i,r,o,a),n.restore())}getLineWidthForValue(n){let e=this.options.grid;if(!this._isVisible()||!e.display)return 0;let r=this.ticks.findIndex(o=>o.value===n);return r>=0?e.setContext(this.getContext(r)).lineWidth:0}drawGrid(n){let e=this.options.grid,i=this.ctx,r=this._gridLineItems||(this._gridLineItems=this._computeGridLineItems(n)),o,a,s=(l,c,d)=>{!d.width||!d.color||(i.save(),i.lineWidth=d.width,i.strokeStyle=d.color,i.setLineDash(d.borderDash||[]),i.lineDashOffset=d.borderDashOffset,i.beginPath(),i.moveTo(l.x,l.y),i.lineTo(c.x,c.y),i.stroke(),i.restore())};if(e.display)for(o=0,a=r.length;o{this.draw(o)}}]:[{z:i,draw:o=>{this.drawBackground(),this.drawGrid(o),this.drawTitle()}},{z:r,draw:()=>{this.drawBorder()}},{z:e,draw:o=>{this.drawLabels(o)}}]}getMatchingVisibleMetas(n){let e=this.chart.getSortedVisibleDatasetMetas(),i=this.axis+"AxisID",r=[],o,a;for(o=0,a=e.length;o{let i=e.split("."),r=i.pop(),o=[t].concat(i).join("."),a=n[e].split("."),s=a.pop(),l=a.join(".");Di.route(o,r,l,s)})}function qoe(t){return"id"in t&&"defaults"in t}var UT=class{constructor(){this.controllers=new Qh(Pc,"datasets",!0),this.elements=new Qh(za,"elements"),this.plugins=new Qh(Object,"plugins"),this.scales=new Qh(Iu,"scales"),this._typedRegistries=[this.controllers,this.scales,this.elements]}add(...n){this._each("register",n)}remove(...n){this._each("unregister",n)}addControllers(...n){this._each("register",n,this.controllers)}addElements(...n){this._each("register",n,this.elements)}addPlugins(...n){this._each("register",n,this.plugins)}addScales(...n){this._each("register",n,this.scales)}getController(n){return this._get(n,this.controllers,"controller")}getElement(n){return this._get(n,this.elements,"element")}getPlugin(n){return this._get(n,this.plugins,"plugin")}getScale(n){return this._get(n,this.scales,"scale")}removeControllers(...n){this._each("unregister",n,this.controllers)}removeElements(...n){this._each("unregister",n,this.elements)}removePlugins(...n){this._each("unregister",n,this.plugins)}removeScales(...n){this._each("unregister",n,this.scales)}_each(n,e,i){[...e].forEach(r=>{let o=i||this._getRegistryForType(r);i||o.isForType(r)||o===this.plugins&&r.id?this._exec(n,o,r):ai(r,a=>{let s=i||this._getRegistryForType(a);this._exec(n,s,a)})})}_exec(n,e,i){let r=Wx(n);wi(i["before"+r],[],i),e[n](i),wi(i["after"+r],[],i)}_getRegistryForType(n){for(let e=0;eo.filter(s=>!a.some(l=>s.plugin.id===l.plugin.id));this._notify(r(e,i),n,"stop"),this._notify(r(i,e),n,"start")}};function Yoe(t){let n={},e=[],i=Object.keys(Rs.plugins.items);for(let o=0;o1&&D4(t[0].toLowerCase());if(i)return i}throw new Error(`Cannot determine type of '${t}' axis. Please provide 'axis' or 'position' option.`)}function E4(t,n,e){if(e[n+"AxisID"]===t)return{axis:n}}function tae(t,n){if(n.data&&n.data.datasets){let e=n.data.datasets.filter(i=>i.xAxisID===t||i.yAxisID===t);if(e.length)return E4(t,"x",e[0])||E4(t,"y",e[0])}return{}}function iae(t,n){let e=kc[t.type]||{scales:{}},i=n.scales||{},r=WT(t.type,n),o=Object.create(null);return Object.keys(i).forEach(a=>{let s=i[a];if(!At(s))return console.error(`Invalid scale configuration for scale: ${a}`);if(s._proxy)return console.warn(`Ignoring resolver passed as options for scale: ${a}`);let l=GT(a,s,tae(a,t),Di.scales[s.type]),c=Joe(l,r),d=e.scales||{};o[a]=Hh(Object.create(null),[{axis:l},s,d[l],d[c]])}),t.data.datasets.forEach(a=>{let s=a.type||t.type,l=a.indexAxis||WT(s,n),d=(kc[s]||{}).scales||{};Object.keys(d).forEach(p=>{let _=Xoe(p,l),b=a[_+"AxisID"]||_;o[b]=o[b]||Object.create(null),Hh(o[b],[{axis:_},i[b],d[p]])})}),Object.keys(o).forEach(a=>{let s=o[a];Hh(s,[Di.scales[s.type],Di.scale])}),o}function m5(t){let n=t.options||(t.options={});n.plugins=lt(n.plugins,{}),n.scales=iae(t,n)}function h5(t){return t=t||{},t.datasets=t.datasets||[],t.labels=t.labels||[],t}function nae(t){return t=t||{},t.data=h5(t.data),m5(t),t}var M4=new Map,p5=new Set;function rC(t,n){let e=M4.get(t);return e||(e=n(),M4.set(t,e),p5.add(e)),e}var Zg=(t,n,e)=>{let i=vl(n,e);i!==void 0&&t.add(i)},qT=class{constructor(n){this._config=nae(n),this._scopeCache=new Map,this._resolverCache=new Map}get platform(){return this._config.platform}get type(){return this._config.type}set type(n){this._config.type=n}get data(){return this._config.data}set data(n){this._config.data=h5(n)}get options(){return this._config.options}set options(n){this._config.options=n}get plugins(){return this._config.plugins}update(){let n=this._config;this.clearCache(),m5(n)}clearCache(){this._scopeCache.clear(),this._resolverCache.clear()}datasetScopeKeys(n){return rC(n,()=>[[`datasets.${n}`,""]])}datasetAnimationScopeKeys(n,e){return rC(`${n}.transition.${e}`,()=>[[`datasets.${n}.transitions.${e}`,`transitions.${e}`],[`datasets.${n}`,""]])}datasetElementScopeKeys(n,e){return rC(`${n}-${e}`,()=>[[`datasets.${n}.elements.${e}`,`datasets.${n}`,`elements.${e}`,""]])}pluginScopeKeys(n){let e=n.id,i=this.type;return rC(`${i}-plugin-${e}`,()=>[[`plugins.${e}`,...n.additionalOptionScopes||[]]])}_cachedScopes(n,e){let i=this._scopeCache,r=i.get(n);return(!r||e)&&(r=new Map,i.set(n,r)),r}getOptionScopes(n,e,i){let{options:r,type:o}=this,a=this._cachedScopes(n,i),s=a.get(e);if(s)return s;let l=new Set;e.forEach(d=>{n&&(l.add(n),d.forEach(p=>Zg(l,n,p))),d.forEach(p=>Zg(l,r,p)),d.forEach(p=>Zg(l,kc[o]||{},p)),d.forEach(p=>Zg(l,Di,p)),d.forEach(p=>Zg(l,Qx,p))});let c=Array.from(l);return c.length===0&&c.push(Object.create(null)),p5.has(e)&&a.set(e,c),c}chartOptionScopes(){let{options:n,type:e}=this;return[n,kc[e]||{},Di.datasets[e]||{},{type:e},Di,Qx]}resolveNamedOptions(n,e,i,r=[""]){let o={$shared:!0},{resolver:a,subPrefixes:s}=S4(this._resolverCache,n,r),l=a;if(oae(a,e)){o.$shared=!1,i=_l(i)?i():i;let c=this.createResolver(n,i,s);l=Eu(a,i,c)}for(let c of e)o[c]=l[c];return o}createResolver(n,e,i=[""],r){let{resolver:o}=S4(this._resolverCache,n,i);return At(e)?Eu(o,e,void 0,r):o}};function S4(t,n,e){let i=t.get(n);i||(i=new Map,t.set(n,i));let r=e.join(),o=i.get(r);return o||(o={resolver:Xx(n,e),subPrefixes:e.filter(s=>!s.toLowerCase().includes("hover"))},i.set(r,o)),o}var rae=t=>At(t)&&Object.getOwnPropertyNames(t).some(n=>_l(t[n]));function oae(t,n){let{isScriptable:e,isIndexable:i}=gT(t);for(let r of n){let o=e(r),a=i(r),s=(a||o)&&t[r];if(o&&(_l(s)||rae(s))||a&&Ti(s))return!0}return!1}var aae="4.5.1",sae=["top","bottom","left","right","chartArea"];function k4(t,n){return t==="top"||t==="bottom"||sae.indexOf(t)===-1&&n==="x"}function T4(t,n){return function(e,i){return e[t]===i[t]?e[n]-i[n]:e[t]-i[t]}}function I4(t){let n=t.chart,e=n.options.animation;n.notifyPlugins("afterRender"),wi(e&&e.onComplete,[t],n)}function lae(t){let n=t.chart,e=n.options.animation;wi(e&&e.onProgress,[t],n)}function f5(t){return Jx()&&typeof t=="string"?t=document.getElementById(t):t&&t.length&&(t=t[0]),t&&t.canvas&&(t=t.canvas),t}var cC={},A4=t=>{let n=f5(t);return Object.values(cC).filter(e=>e.canvas===n).pop()};function cae(t,n,e){let i=Object.keys(t);for(let r of i){let o=+r;if(o>=n){let a=t[r];delete t[r],(e>0||o>n)&&(t[o+e]=a)}}}function dae(t,n,e,i){return!e||t.type==="mouseout"?null:i?n:t}var gC=(()=>{class t{static defaults=Di;static instances=cC;static overrides=kc;static registry=Rs;static version=aae;static getChart=A4;static register(...e){Rs.add(...e),O4()}static unregister(...e){Rs.remove(...e),O4()}constructor(e,i){let r=this.config=new qT(i),o=f5(e),a=A4(o);if(a)throw new Error("Canvas is already in use. Chart with ID '"+a.id+"' must be destroyed before the canvas with ID '"+a.canvas.id+"' can be reused.");let s=r.createResolver(r.chartOptionScopes(),this.getContext());this.platform=new(r.platform||Aoe(o)),this.platform.updateConfig(r);let l=this.platform.acquireContext(o,s.aspectRatio),c=l&&l.canvas,d=c&&c.height,p=c&&c.width;if(this.id=Ij(),this.ctx=l,this.canvas=c,this.width=p,this.height=d,this._options=s,this._aspectRatio=this.aspectRatio,this._layers=[],this._metasets=[],this._stacks=void 0,this.boxes=[],this.currentDevicePixelRatio=void 0,this.chartArea=void 0,this._active=[],this._lastEvent=void 0,this._listeners={},this._responsiveListeners=void 0,this._sortedMetasets=[],this.scales={},this._plugins=new $T,this.$proxies={},this._hiddenIndices={},this.attached=!1,this._animationsDisabled=void 0,this.$context=void 0,this._doResize=Hj(_=>this.update(_),s.resizeDelay||0),this._dataChanges=[],cC[this.id]=this,!l||!c){console.error("Failed to create chart: can't acquire context from the given item");return}xl.listen(this,"complete",I4),xl.listen(this,"progress",lae),this._initialize(),this.attached&&this.update()}get aspectRatio(){let{options:{aspectRatio:e,maintainAspectRatio:i},width:r,height:o,_aspectRatio:a}=this;return Tt(e)?i&&a?a:o?r/o:null:e}get data(){return this.config.data}set data(e){this.config.data=e}get options(){return this._options}set options(e){this.config.options=e}get registry(){return Rs}_initialize(){return this.notifyPlugins("beforeInit"),this.options.responsive?this.resize():yT(this,this.options.devicePixelRatio),this.bindEvents(),this.notifyPlugins("afterInit"),this}clear(){return hT(this.canvas,this.ctx),this}stop(){return xl.stop(this),this}resize(e,i){xl.running(this)?this._resizeBeforeDraw={width:e,height:i}:this._resize(e,i)}_resize(e,i){let r=this.options,o=this.canvas,a=r.maintainAspectRatio&&this.aspectRatio,s=this.platform.getMaximumSize(o,e,i,a),l=r.devicePixelRatio||this.platform.getDevicePixelRatio(),c=this.width?"resize":"attach";this.width=s.width,this.height=s.height,this._aspectRatio=this.aspectRatio,yT(this,l,!0)&&(this.notifyPlugins("resize",{size:s}),wi(r.onResize,[this,s],this),this.attached&&this._doResize(c)&&this.render())}ensureScalesHaveIDs(){let i=this.options.scales||{};ai(i,(r,o)=>{r.id=o})}buildOrUpdateScales(){let e=this.options,i=e.scales,r=this.scales,o=Object.keys(r).reduce((s,l)=>(s[l]=!1,s),{}),a=[];i&&(a=a.concat(Object.keys(i).map(s=>{let l=i[s],c=GT(s,l),d=c==="r",p=c==="x";return{options:l,dposition:d?"chartArea":p?"bottom":"left",dtype:d?"radialLinear":p?"category":"linear"}}))),ai(a,s=>{let l=s.options,c=l.id,d=GT(c,l),p=lt(l.type,s.dtype);(l.position===void 0||k4(l.position,d)!==k4(s.dposition))&&(l.position=s.dposition),o[c]=!0;let _=null;if(c in r&&r[c].type===p)_=r[c];else{let b=Rs.getScale(p);_=new b({id:c,type:p,ctx:this.ctx,chart:this}),r[_.id]=_}_.init(l,e)}),ai(o,(s,l)=>{s||delete r[l]}),ai(r,s=>{kr.configure(this,s,s.options),kr.addBox(this,s)})}_updateMetasets(){let e=this._metasets,i=this.data.datasets.length,r=e.length;if(e.sort((o,a)=>o.index-a.index),r>i){for(let o=i;oi.length&&delete this._stacks,e.forEach((r,o)=>{i.filter(a=>a===r._dataset).length===0&&this._destroyDatasetMeta(o)})}buildOrUpdateControllers(){let e=[],i=this.data.datasets,r,o;for(this._removeUnreferencedMetasets(),r=0,o=i.length;r{this.getDatasetMeta(i).controller.reset()},this)}reset(){this._resetElements(),this.notifyPlugins("reset")}update(e){let i=this.config;i.update();let r=this._options=i.createResolver(i.chartOptionScopes(),this.getContext()),o=this._animationsDisabled=!r.animation;if(this._updateScales(),this._checkEventBindings(),this._updateHiddenIndices(),this._plugins.invalidate(),this.notifyPlugins("beforeUpdate",{mode:e,cancelable:!0})===!1)return;let a=this.buildOrUpdateControllers();this.notifyPlugins("beforeElementsUpdate");let s=0;for(let d=0,p=this.data.datasets.length;d{d.reset()}),this._updateDatasets(e),this.notifyPlugins("afterUpdate",{mode:e}),this._layers.sort(T4("z","_idx"));let{_active:l,_lastEvent:c}=this;c?this._eventHandler(c,!0):l.length&&this._updateHoverStyles(l,l,!0),this.render()}_updateScales(){ai(this.scales,e=>{kr.removeBox(this,e)}),this.ensureScalesHaveIDs(),this.buildOrUpdateScales()}_checkEventBindings(){let e=this.options,i=new Set(Object.keys(this._listeners)),r=new Set(e.events);(!eT(i,r)||!!this._responsiveListeners!==e.responsive)&&(this.unbindEvents(),this.bindEvents())}_updateHiddenIndices(){let{_hiddenIndices:e}=this,i=this._getUniformDataChanges()||[];for(let{method:r,start:o,count:a}of i){let s=r==="_removeElements"?-a:a;cae(e,o,s)}}_getUniformDataChanges(){let e=this._dataChanges;if(!e||!e.length)return;this._dataChanges=[];let i=this.data.datasets.length,r=a=>new Set(e.filter(s=>s[0]===a).map((s,l)=>l+","+s.splice(1).join(","))),o=r(0);for(let a=1;aa.split(",")).map(a=>({method:a[1],start:+a[2],count:+a[3]}))}_updateLayout(e){if(this.notifyPlugins("beforeLayout",{cancelable:!0})===!1)return;kr.update(this,this.width,this.height,e);let i=this.chartArea,r=i.width<=0||i.height<=0;this._layers=[],ai(this.boxes,o=>{r&&o.position==="chartArea"||(o.configure&&o.configure(),this._layers.push(...o._layers()))},this),this._layers.forEach((o,a)=>{o._idx=a}),this.notifyPlugins("afterLayout")}_updateDatasets(e){if(this.notifyPlugins("beforeDatasetsUpdate",{mode:e,cancelable:!0})!==!1){for(let i=0,r=this.data.datasets.length;i=0;--i)this._drawDataset(e[i]);this.notifyPlugins("afterDatasetsDraw")}_drawDataset(e){let i=this.ctx,r={meta:e,index:e.index,cancelable:!0},o=MT(this,e);this.notifyPlugins("beforeDatasetDraw",r)!==!1&&(o&&Wg(i,o),e.controller.draw(),o&&Gg(i),r.cancelable=!1,this.notifyPlugins("afterDatasetDraw",r))}isPointInArea(e){return Ts(e,this.chartArea,this._minPadding)}getElementsAtEventForMode(e,i,r,o){let a=moe.modes[i];return typeof a=="function"?a(this,e,r,o):[]}getDatasetMeta(e){let i=this.data.datasets[e],r=this._metasets,o=r.filter(a=>a&&a._dataset===i).pop();return o||(o={type:null,data:[],dataset:null,controller:null,hidden:null,xAxisID:null,yAxisID:null,order:i&&i.order||0,index:e,_dataset:i,_parsed:[],_sorted:!1},r.push(o)),o}getContext(){return this.$context||(this.$context=yl(null,{chart:this,type:"chart"}))}getVisibleDatasetCount(){return this.getSortedVisibleDatasetMetas().length}isDatasetVisible(e){let i=this.data.datasets[e];if(!i)return!1;let r=this.getDatasetMeta(e);return typeof r.hidden=="boolean"?!r.hidden:!i.hidden}setDatasetVisibility(e,i){let r=this.getDatasetMeta(e);r.hidden=!i}toggleDataVisibility(e){this._hiddenIndices[e]=!this._hiddenIndices[e]}getDataVisibility(e){return!this._hiddenIndices[e]}_updateVisibility(e,i,r){let o=r?"show":"hide",a=this.getDatasetMeta(e),s=a.controller._resolveAnimations(void 0,o);zh(i)?(a.data[i].hidden=!r,this.update()):(this.setDatasetVisibility(e,r),s.update(a,{visible:r}),this.update(l=>l.datasetIndex===e?o:void 0))}hide(e,i){this._updateVisibility(e,i,!1)}show(e,i){this._updateVisibility(e,i,!0)}_destroyDatasetMeta(e){let i=this._metasets[e];i&&i.controller&&i.controller._destroy(),delete this._metasets[e]}_stop(){let e,i;for(this.stop(),xl.remove(this),e=0,i=this.data.datasets.length;e{i.addEventListener(this,a,s),e[a]=s},o=(a,s,l)=>{a.offsetX=s,a.offsetY=l,this._eventHandler(a)};ai(this.options.events,a=>r(a,o))}bindResponsiveEvents(){this._responsiveListeners||(this._responsiveListeners={});let e=this._responsiveListeners,i=this.platform,r=(c,d)=>{i.addEventListener(this,c,d),e[c]=d},o=(c,d)=>{e[c]&&(i.removeEventListener(this,c,d),delete e[c])},a=(c,d)=>{this.canvas&&this.resize(c,d)},s,l=()=>{o("attach",l),this.attached=!0,this.resize(),r("resize",a),r("detach",s)};s=()=>{this.attached=!1,o("resize",a),this._stop(),this._resize(0,0),r("attach",l)},i.isAttached(this.canvas)?l():s()}unbindEvents(){ai(this._listeners,(e,i)=>{this.platform.removeEventListener(this,i,e)}),this._listeners={},ai(this._responsiveListeners,(e,i)=>{this.platform.removeEventListener(this,i,e)}),this._responsiveListeners=void 0}updateHoverStyle(e,i,r){let o=r?"set":"remove",a,s,l,c;for(i==="dataset"&&(a=this.getDatasetMeta(e[0].datasetIndex),a.controller["_"+o+"DatasetHoverStyle"]()),l=0,c=e.length;l{let l=this.getDatasetMeta(a);if(!l)throw new Error("No dataset found at index "+a);return{datasetIndex:a,element:l.data[s],index:s}});!Ug(r,i)&&(this._active=r,this._lastEvent=null,this._updateHoverStyles(r,i))}notifyPlugins(e,i,r){return this._plugins.notify(this,e,i,r)}isPluginEnabled(e){return this._plugins._cache.filter(i=>i.plugin.id===e).length===1}_updateHoverStyles(e,i,r){let o=this.options.hover,a=(c,d)=>c.filter(p=>!d.some(_=>p.datasetIndex===_.datasetIndex&&p.index===_.index)),s=a(i,e),l=r?e:a(e,i);s.length&&this.updateHoverStyle(s,o.mode,!1),l.length&&o.mode&&this.updateHoverStyle(l,o.mode,!0)}_eventHandler(e,i){let r={event:e,replay:i,cancelable:!0,inChartArea:this.isPointInArea(e)},o=s=>(s.options.events||this.options.events).includes(e.native.type);if(this.notifyPlugins("beforeEvent",r,o)===!1)return;let a=this._handleEvent(e,i,r.inChartArea);return r.cancelable=!1,this.notifyPlugins("afterEvent",r,o),(a||r.changed)&&this.render(),this}_handleEvent(e,i,r){let{_active:o=[],options:a}=this,s=i,l=this._getActiveElements(e,o,r,s),c=Rj(e),d=dae(e,this._lastEvent,r,c);r&&(this._lastEvent=null,wi(a.onHover,[e,l,this],this),c&&wi(a.onClick,[e,l,this],this));let p=!Ug(l,o);return(p||i)&&(this._active=l,this._updateHoverStyles(l,o,i)),this._lastEvent=d,p}_getActiveElements(e,i,r,o){if(e.type==="mouseout")return[];if(!r)return i;let a=this.options.hover;return this.getElementsAtEventForMode(e,a.mode,a,o)}}return t})();function O4(){return ai(gC.instances,t=>t._plugins.invalidate())}function uae(t,n,e){let{startAngle:i,x:r,y:o,outerRadius:a,innerRadius:s,options:l}=n,{borderWidth:c,borderJoinStyle:d}=l,p=Math.min(c/a,sr(i-e));if(t.beginPath(),t.arc(r,o,a-c/2,i+p/2,e-p/2),s>0){let _=Math.min(c/s,sr(i-e));t.arc(r,o,s+c/2,e-_/2,i+_/2,!0)}else{let _=Math.min(c/2,a*sr(i-e));if(d==="round")t.arc(r,o,_,e-$t/2,i+$t/2,!0);else if(d==="bevel"){let b=2*_*_,y=-b*Math.cos(e+$t/2)+r,w=-b*Math.sin(e+$t/2)+o,C=b*Math.cos(i+$t/2)+r,D=b*Math.sin(i+$t/2)+o;t.lineTo(y,w),t.lineTo(C,D)}}t.closePath(),t.moveTo(0,0),t.rect(0,0,t.canvas.width,t.canvas.height),t.clip("evenodd")}function mae(t,n,e){let{startAngle:i,pixelMargin:r,x:o,y:a,outerRadius:s,innerRadius:l}=n,c=r/s;t.beginPath(),t.arc(o,a,s,i-c,e+c),l>r?(c=r/l,t.arc(o,a,l,e+c,i-c,!0)):t.arc(o,a,r,e+tn,i-tn),t.closePath(),t.clip()}function hae(t){return Zx(t,["outerStart","outerEnd","innerStart","innerEnd"])}function pae(t,n,e,i){let r=hae(t.options.borderRadius),o=(e-n)/2,a=Math.min(o,i*n/2),s=l=>{let c=(e-Math.min(o,l))*i/2;return Sn(l,0,Math.min(o,c))};return{outerStart:s(r.outerStart),outerEnd:s(r.outerEnd),innerStart:Sn(r.innerStart,0,a),innerEnd:Sn(r.innerEnd,0,a)}}function Yh(t,n,e,i){return{x:e+t*Math.cos(n),y:i+t*Math.sin(n)}}function hC(t,n,e,i,r,o){let{x:a,y:s,startAngle:l,pixelMargin:c,innerRadius:d}=n,p=Math.max(n.outerRadius+i+e-c,0),_=d>0?d+i+e+c:0,b=0,y=r-l;if(i){let mi=d>0?d-i:0,Li=p>0?p-i:0,rn=(mi+Li)/2,pa=rn!==0?y*rn/(rn+i):y;b=(y-pa)/2}let w=Math.max(.001,y*p-e/$t)/p,C=(y-w)/2,D=l+C+b,F=r-C-b,{outerStart:W,outerEnd:Z,innerStart:K,innerEnd:oe}=pae(n,_,p,F-D),ke=p-W,ve=p-Z,Ve=D+W/ke,yt=F-Z/ve,vt=_+K,Rt=_+oe,Gn=D+K/vt,fo=F-oe/Rt;if(t.beginPath(),o){let mi=(Ve+yt)/2;if(t.arc(a,s,p,Ve,mi),t.arc(a,s,p,mi,yt),Z>0){let dr=Yh(ve,yt,a,s);t.arc(dr.x,dr.y,Z,yt,F+tn)}let Li=Yh(Rt,F,a,s);if(t.lineTo(Li.x,Li.y),oe>0){let dr=Yh(Rt,fo,a,s);t.arc(dr.x,dr.y,oe,F+tn,fo+Math.PI)}let rn=(F-oe/_+(D+K/_))/2;if(t.arc(a,s,_,F-oe/_,rn,!0),t.arc(a,s,_,rn,D+K/_,!0),K>0){let dr=Yh(vt,Gn,a,s);t.arc(dr.x,dr.y,K,Gn+Math.PI,D-tn)}let pa=Yh(ke,D,a,s);if(t.lineTo(pa.x,pa.y),W>0){let dr=Yh(ke,Ve,a,s);t.arc(dr.x,dr.y,W,D-tn,Ve)}}else{t.moveTo(a,s);let mi=Math.cos(Ve)*p+a,Li=Math.sin(Ve)*p+s;t.lineTo(mi,Li);let rn=Math.cos(yt)*p+a,pa=Math.sin(yt)*p+s;t.lineTo(rn,pa)}t.closePath()}function fae(t,n,e,i,r){let{fullCircles:o,startAngle:a,circumference:s}=n,l=n.endAngle;if(o){hC(t,n,e,i,l,r);for(let c=0;c=$t&&b===0&&d!=="miter"&&uae(t,n,w),o||(hC(t,n,e,i,w,r),t.stroke())}var YT=class extends za{static id="arc";static defaults={borderAlign:"center",borderColor:"#fff",borderDash:[],borderDashOffset:0,borderJoinStyle:void 0,borderRadius:0,borderWidth:2,offset:0,spacing:0,angle:void 0,circular:!0,selfJoin:!1};static defaultRoutes={backgroundColor:"backgroundColor"};static descriptors={_scriptable:!0,_indexable:n=>n!=="borderDash"};circumference;endAngle;fullCircles;innerRadius;outerRadius;pixelMargin;startAngle;constructor(n){super(),this.options=void 0,this.circumference=void 0,this.startAngle=void 0,this.endAngle=void 0,this.innerRadius=void 0,this.outerRadius=void 0,this.pixelMargin=0,this.fullCircles=0,n&&Object.assign(this,n)}inRange(n,e,i){let r=this.getProps(["x","y"],i),{angle:o,distance:a}=rT(r,{x:n,y:e}),{startAngle:s,endAngle:l,innerRadius:c,outerRadius:d,circumference:p}=this.getProps(["startAngle","endAngle","innerRadius","outerRadius","circumference"],i),_=(this.options.spacing+this.options.borderWidth)/2,b=lt(p,l-s),y=$h(o,s,l)&&s!==l,w=b>=Ii||y,C=As(a,c+_,d+_);return w&&C}getCenterPoint(n){let{x:e,y:i,startAngle:r,endAngle:o,innerRadius:a,outerRadius:s}=this.getProps(["x","y","startAngle","endAngle","innerRadius","outerRadius"],n),{offset:l,spacing:c}=this.options,d=(r+o)/2,p=(a+s+c+l)/2;return{x:e+Math.cos(d)*p,y:i+Math.sin(d)*p}}tooltipPosition(n){return this.getCenterPoint(n)}draw(n){let{options:e,circumference:i}=this,r=(e.offset||0)/4,o=(e.spacing||0)/2,a=e.circular;if(this.pixelMargin=e.borderAlign==="inner"?.33:0,this.fullCircles=i>Ii?Math.floor(i/Ii):0,i===0||this.innerRadius<0||this.outerRadius<0)return;n.save();let s=(this.startAngle+this.endAngle)/2;n.translate(Math.cos(s)*r,Math.sin(s)*r);let l=1-Math.sin(Math.min($t,i||0)),c=r*l;n.fillStyle=e.backgroundColor,n.strokeStyle=e.borderColor,fae(n,this,c,o,a),gae(n,this,c,o,a),n.restore()}};function g5(t,n,e=n){t.lineCap=lt(e.borderCapStyle,n.borderCapStyle),t.setLineDash(lt(e.borderDash,n.borderDash)),t.lineDashOffset=lt(e.borderDashOffset,n.borderDashOffset),t.lineJoin=lt(e.borderJoinStyle,n.borderJoinStyle),t.lineWidth=lt(e.borderWidth,n.borderWidth),t.strokeStyle=lt(e.borderColor,n.borderColor)}function _ae(t,n,e){t.lineTo(e.x,e.y)}function bae(t){return t.stepped?Wj:t.tension||t.cubicInterpolationMode==="monotone"?Gj:_ae}function _5(t,n,e={}){let i=t.length,{start:r=0,end:o=i-1}=e,{start:a,end:s}=n,l=Math.max(r,a),c=Math.min(o,s),d=rs&&o>s;return{count:i,start:l,loop:n.loop,ilen:c(a+(c?s-Z:Z))%o,W=()=>{w!==C&&(t.lineTo(d,C),t.lineTo(d,w),t.lineTo(d,D))};for(l&&(b=r[F(0)],t.moveTo(b.x,b.y)),_=0;_<=s;++_){if(b=r[F(_)],b.skip)continue;let Z=b.x,K=b.y,oe=Z|0;oe===y?(KC&&(C=K),d=(p*d+Z)/++p):(W(),t.lineTo(Z,K),y=oe,p=0,w=C=K),D=K}W()}function QT(t){let n=t.options,e=n.borderDash&&n.borderDash.length;return!t._decimated&&!t._loop&&!n.tension&&n.cubicInterpolationMode!=="monotone"&&!n.stepped&&!e?yae:vae}function xae(t){return t.stepped?t4:t.tension||t.cubicInterpolationMode==="monotone"?i4:Mc}function Cae(t,n,e,i){let r=n._path;r||(r=n._path=new Path2D,n.path(r,e,i)&&r.closePath()),g5(t,n.options),t.stroke(r)}function wae(t,n,e,i){let{segments:r,options:o}=n,a=QT(n);for(let s of r)g5(t,o,s.style),t.beginPath(),a(t,n,s,{start:e,end:e+i-1})&&t.closePath(),t.stroke()}var Dae=typeof Path2D=="function";function Eae(t,n,e,i){Dae&&!n.options.segment?Cae(t,n,e,i):wae(t,n,e,i)}var _C=(()=>{class t extends za{static id="line";static defaults={borderCapStyle:"butt",borderDash:[],borderDashOffset:0,borderJoinStyle:"miter",borderWidth:3,capBezierPoints:!0,cubicInterpolationMode:"default",fill:!1,spanGaps:!1,stepped:!1,tension:0};static defaultRoutes={backgroundColor:"backgroundColor",borderColor:"borderColor"};static descriptors={_scriptable:!0,_indexable:e=>e!=="borderDash"&&e!=="fill"};constructor(e){super(),this.animated=!0,this.options=void 0,this._chart=void 0,this._loop=void 0,this._fullLoop=void 0,this._path=void 0,this._points=void 0,this._segments=void 0,this._decimated=!1,this._pointsUpdated=!1,this._datasetIndex=void 0,e&&Object.assign(this,e)}updateControlPoints(e,i){let r=this.options;if((r.tension||r.cubicInterpolationMode==="monotone")&&!r.stepped&&!this._pointsUpdated){let o=r.spanGaps?this._loop:this._fullLoop;Xj(this._points,r,e,o,i),this._pointsUpdated=!0}}set points(e){this._points=e,delete this._segments,delete this._path,this._pointsUpdated=!1}get points(){return this._points}get segments(){return this._segments||(this._segments=r4(this,this.options.segment))}first(){let e=this.segments,i=this.points;return e.length&&i[e[0].start]}last(){let e=this.segments,i=this.points,r=e.length;return r&&i[e[r-1].end]}interpolate(e,i){let r=this.options,o=e[i],a=this.points,s=ET(this,{property:i,start:o,end:o});if(!s.length)return;let l=[],c=xae(r),d,p;for(d=0,p=s.length;d{class t extends za{static id="point";parsed;skip;stop;static defaults={borderWidth:1,hitRadius:1,hoverBorderWidth:1,hoverRadius:4,pointStyle:"circle",radius:3,rotation:0};static defaultRoutes={backgroundColor:"backgroundColor",borderColor:"borderColor"};constructor(e){super(),this.options=void 0,this.parsed=void 0,this.skip=void 0,this.stop=void 0,e&&Object.assign(this,e)}inRange(e,i,r){let o=this.options,{x:a,y:s}=this.getProps(["x","y"],r);return Math.pow(e-a,2)+Math.pow(i-s,2)t.replace("rgb(","rgba(").replace(")",", 0.5)"));function v5(t){return ZT[t%ZT.length]}function y5(t){return P4[t%P4.length]}function Rae(t,n){return t.borderColor=v5(n),t.backgroundColor=y5(n),++n}function Pae(t,n){return t.backgroundColor=t.data.map(()=>v5(n++)),n}function Fae(t,n){return t.backgroundColor=t.data.map(()=>y5(n++)),n}function Nae(t){let n=0;return(e,i)=>{let r=t.getDatasetMeta(i).controller;r instanceof oI?n=Pae(e,n):r instanceof s5?n=Fae(e,n):r&&(n=Rae(e,n))}}function F4(t){let n;for(n in t)if(t[n].borderColor||t[n].backgroundColor)return!0;return!1}function Lae(t){return t&&(t.borderColor||t.backgroundColor)}function Vae(){return Di.borderColor!=="rgba(0,0,0,0.1)"||Di.backgroundColor!=="rgba(0,0,0,0.1)"}var Bae={id:"colors",defaults:{enabled:!0,forceOverride:!1},beforeLayout(t,n,e){if(!e.enabled)return;let{data:{datasets:i},options:r}=t.config,{elements:o}=r,a=F4(i)||Lae(r)||o&&F4(o)||Vae();if(!e.forceOverride&&a)return;let s=Nae(t);i.forEach(s)}};function jae(t,n,e,i,r){let o=r.samples||i;if(o>=e)return t.slice(n,n+e);let a=[],s=(e-2)/(o-2),l=0,c=n+e-1,d=n,p,_,b,y,w;for(a[l++]=t[d],p=0;pb&&(b=y,_=t[F],w=F);a[l++]=_,d=w}return a[l++]=t[c],a}function Hae(t,n,e,i){let r=0,o=0,a,s,l,c,d,p,_,b,y,w,C=[],D=n+e-1,F=t[n].x,Z=t[D].x-F;for(a=n;aw&&(w=c,_=a),r=(o*r+s.x)/++o;else{let oe=a-1;if(!Tt(p)&&!Tt(_)){let ke=Math.min(p,_),ve=Math.max(p,_);ke!==b&&ke!==oe&&C.push(Ee(k({},t[ke]),{x:r})),ve!==b&&ve!==oe&&C.push(Ee(k({},t[ve]),{x:r}))}a>0&&oe!==b&&C.push(t[oe]),C.push(s),d=K,o=0,y=w=c,p=_=b=a}}return C}function x5(t){if(t._decimated){let n=t._data;delete t._decimated,delete t._data,Object.defineProperty(t,"data",{configurable:!0,enumerable:!0,writable:!0,value:n})}}function N4(t){t.data.datasets.forEach(n=>{x5(n)})}function zae(t,n){let e=n.length,i=0,r,{iScale:o}=t,{min:a,max:s,minDefined:l,maxDefined:c}=o.getUserBounds();return l&&(i=Sn(ks(n,o.axis,a).lo,0,e-1)),c?r=Sn(ks(n,o.axis,s).hi+1,i,e)-i:r=e-i,{start:i,count:r}}var Uae={id:"decimation",defaults:{algorithm:"min-max",enabled:!1},beforeElementsUpdate:(t,n,e)=>{if(!e.enabled){N4(t);return}let i=t.width;t.data.datasets.forEach((r,o)=>{let{_data:a,indexAxis:s}=r,l=t.getDatasetMeta(o),c=a||r.data;if(qh([s,t.options.indexAxis])==="y"||!l.controller.supportsDecimation)return;let d=t.scales[l.xAxisID];if(d.type!=="linear"&&d.type!=="time"||t.options.parsing)return;let{start:p,count:_}=zae(l,c),b=e.threshold||4*i;if(_<=b){x5(r);return}Tt(a)&&(r._data=c,delete r.data,Object.defineProperty(r,"data",{configurable:!0,enumerable:!0,get:function(){return this._decimated},set:function(w){this._data=w}}));let y;switch(e.algorithm){case"lttb":y=jae(c,p,_,i,e);break;case"min-max":y=Hae(c,p,_,i);break;default:throw new Error(`Unsupported decimation algorithm '${e.algorithm}'`)}r._decimated=y})},destroy(t){N4(t)}};function $ae(t,n,e){let i=t.segments,r=t.points,o=n.points,a=[];for(let s of i){let{start:l,end:c}=s;c=bC(l,c,r);let d=XT(e,r[l],r[c],s.loop);if(!n.segments){a.push({source:s,target:d,start:r[l],end:r[c]});continue}let p=ET(n,d);for(let _ of p){let b=XT(e,o[_.start],o[_.end],_.loop),y=DT(s,r,b);for(let w of y)a.push({source:w,target:_,start:{[e]:L4(d,b,"start",Math.max)},end:{[e]:L4(d,b,"end",Math.min)}})}}return a}function XT(t,n,e,i){if(i)return;let r=n[t],o=e[t];return t==="angle"&&(r=sr(r),o=sr(o)),{property:t,start:r,end:o}}function Wae(t,n){let{x:e=null,y:i=null}=t||{},r=n.points,o=[];return n.segments.forEach(({start:a,end:s})=>{s=bC(a,s,r);let l=r[a],c=r[s];i!==null?(o.push({x:l.x,y:i}),o.push({x:c.x,y:i})):e!==null&&(o.push({x:e,y:l.y}),o.push({x:e,y:c.y}))}),o}function bC(t,n,e){for(;n>t;n--){let i=e[n];if(!isNaN(i.x)&&!isNaN(i.y))break}return n}function L4(t,n,e,i){return t&&n?i(t[e],n[e]):t?t[e]:n?n[e]:0}function C5(t,n){let e=[],i=!1;return Ti(t)?(i=!0,e=t):e=Wae(t,n),e.length?new _C({points:e,options:{tension:0},_loop:i,_fullLoop:i}):null}function V4(t){return t&&t.fill!==!1}function Gae(t,n,e){let r=t[n].fill,o=[n],a;if(!e)return r;for(;r!==!1&&o.indexOf(r)===-1;){if(!Yi(r))return r;if(a=t[r],!a)return!1;if(a.visible)return r;o.push(r),r=a.fill}return!1}function qae(t,n,e){let i=Zae(t);if(At(i))return isNaN(i.value)?!1:i;let r=parseFloat(i);return Yi(r)&&Math.floor(r)===r?Yae(i[0],n,r,e):["origin","start","end","stack","shape"].indexOf(i)>=0&&i}function Yae(t,n,e,i){return(t==="-"||t==="+")&&(e=n+e),e===n||e<0||e>=i?!1:e}function Qae(t,n){let e=null;return t==="start"?e=n.bottom:t==="end"?e=n.top:At(t)?e=n.getPixelForValue(t.value):n.getBasePixel&&(e=n.getBasePixel()),e}function Kae(t,n,e){let i;return t==="start"?i=e:t==="end"?i=n.options.reverse?n.min:n.max:At(t)?i=t.value:i=n.getBaseValue(),i}function Zae(t){let n=t.options,e=n.fill,i=lt(e&&e.target,e);return i===void 0&&(i=!!n.backgroundColor),i===!1||i===null?!1:i===!0?"origin":i}function Xae(t){let{scale:n,index:e,line:i}=t,r=[],o=i.segments,a=i.points,s=Jae(n,e);s.push(C5({x:null,y:n.bottom},i));for(let l=0;l=0;--a){let s=r[a].$filler;s&&(s.line.updateControlPoints(o,s.axis),i&&s.fill&&NT(t.ctx,s,o))}},beforeDatasetsDraw(t,n,e){if(e.drawTime!=="beforeDatasetsDraw")return;let i=t.getSortedVisibleDatasetMetas();for(let r=i.length-1;r>=0;--r){let o=i[r].$filler;V4(o)&&NT(t.ctx,o,t.chartArea)}},beforeDatasetDraw(t,n,e){let i=n.meta.$filler;!V4(i)||e.drawTime!=="beforeDatasetDraw"||NT(t.ctx,i,t.chartArea)},defaults:{propagate:!0,drawTime:"beforeDatasetDraw"}},z4=(t,n)=>{let{boxHeight:e=n,boxWidth:i=n}=t;return t.usePointStyle&&(e=Math.min(e,n),i=t.pointStyleWidth||Math.min(i,n)),{boxWidth:i,boxHeight:e,itemHeight:Math.max(n,e)}},dse=(t,n)=>t!==null&&n!==null&&t.datasetIndex===n.datasetIndex&&t.index===n.index,fC=class extends za{constructor(n){super(),this._added=!1,this.legendHitBoxes=[],this._hoveredItem=null,this.doughnutMode=!1,this.chart=n.chart,this.options=n.options,this.ctx=n.ctx,this.legendItems=void 0,this.columnSizes=void 0,this.lineWidths=void 0,this.maxHeight=void 0,this.maxWidth=void 0,this.top=void 0,this.bottom=void 0,this.left=void 0,this.right=void 0,this.height=void 0,this.width=void 0,this._margins=void 0,this.position=void 0,this.weight=void 0,this.fullSize=void 0}update(n,e,i){this.maxWidth=n,this.maxHeight=e,this._margins=i,this.setDimensions(),this.buildLabels(),this.fit()}setDimensions(){this.isHorizontal()?(this.width=this.maxWidth,this.left=this._margins.left,this.right=this.width):(this.height=this.maxHeight,this.top=this._margins.top,this.bottom=this.height)}buildLabels(){let n=this.options.labels||{},e=wi(n.generateLabels,[this.chart],this)||[];n.filter&&(e=e.filter(i=>n.filter(i,this.chart.data))),n.sort&&(e=e.sort((i,r)=>n.sort(i,r,this.chart.data))),this.options.reverse&&e.reverse(),this.legendItems=e}fit(){let{options:n,ctx:e}=this;if(!n.display){this.width=this.height=0;return}let i=n.labels,r=fn(i.font),o=r.size,a=this._computeTitleHeight(),{boxWidth:s,itemHeight:l}=z4(i,o),c,d;e.font=r.string,this.isHorizontal()?(c=this.maxWidth,d=this._fitRows(a,o,s,l)+10):(d=this.maxHeight,c=this._fitCols(a,r,s,l)+10),this.width=Math.min(c,n.maxWidth||this.maxWidth),this.height=Math.min(d,n.maxHeight||this.maxHeight)}_fitRows(n,e,i,r){let{ctx:o,maxWidth:a,options:{labels:{padding:s}}}=this,l=this.legendHitBoxes=[],c=this.lineWidths=[0],d=r+s,p=n;o.textAlign="left",o.textBaseline="middle";let _=-1,b=-d;return this.legendItems.forEach((y,w)=>{let C=i+e/2+o.measureText(y.text).width;(w===0||c[c.length-1]+C+2*s>a)&&(p+=d,c[c.length-(w>0?0:1)]=0,b+=d,_++),l[w]={left:0,top:b,row:_,width:C,height:r},c[c.length-1]+=C+s}),p}_fitCols(n,e,i,r){let{ctx:o,maxHeight:a,options:{labels:{padding:s}}}=this,l=this.legendHitBoxes=[],c=this.columnSizes=[],d=a-n,p=s,_=0,b=0,y=0,w=0;return this.legendItems.forEach((C,D)=>{let{itemWidth:F,itemHeight:W}=use(i,e,o,C,r);D>0&&b+W+2*s>d&&(p+=_+s,c.push({width:_,height:b}),y+=_+s,w++,_=b=0),l[D]={left:y,top:b,col:w,width:F,height:W},_=Math.max(_,F),b+=W+s}),p+=_,c.push({width:_,height:b}),p}adjustHitBoxes(){if(!this.options.display)return;let n=this._computeTitleHeight(),{legendHitBoxes:e,options:{align:i,labels:{padding:r},rtl:o}}=this,a=Su(o,this.left,this.width);if(this.isHorizontal()){let s=0,l=lr(i,this.left+r,this.right-this.lineWidths[s]);for(let c of e)s!==c.row&&(s=c.row,l=lr(i,this.left+r,this.right-this.lineWidths[s])),c.top+=this.top+n+r,c.left=a.leftForLtr(a.x(l),c.width),l+=c.width+r}else{let s=0,l=lr(i,this.top+n+r,this.bottom-this.columnSizes[s].height);for(let c of e)c.col!==s&&(s=c.col,l=lr(i,this.top+n+r,this.bottom-this.columnSizes[s].height)),c.top=l,c.left+=this.left+r,c.left=a.leftForLtr(a.x(c.left),c.width),l+=c.height+r}}isHorizontal(){return this.options.position==="top"||this.options.position==="bottom"}draw(){if(this.options.display){let n=this.ctx;Wg(n,this),this._draw(),Gg(n)}}_draw(){let{options:n,columnSizes:e,lineWidths:i,ctx:r}=this,{align:o,labels:a}=n,s=Di.color,l=Su(n.rtl,this.left,this.width),c=fn(a.font),{padding:d}=a,p=c.size,_=p/2,b;this.drawTitle(),r.textAlign=l.textAlign("left"),r.textBaseline="middle",r.lineWidth=.5,r.font=c.string;let{boxWidth:y,boxHeight:w,itemHeight:C}=z4(a,p),D=function(oe,ke,ve){if(isNaN(y)||y<=0||isNaN(w)||w<0)return;r.save();let Ve=lt(ve.lineWidth,1);if(r.fillStyle=lt(ve.fillStyle,s),r.lineCap=lt(ve.lineCap,"butt"),r.lineDashOffset=lt(ve.lineDashOffset,0),r.lineJoin=lt(ve.lineJoin,"miter"),r.lineWidth=Ve,r.strokeStyle=lt(ve.strokeStyle,s),r.setLineDash(lt(ve.lineDash,[])),a.usePointStyle){let yt={radius:w*Math.SQRT2/2,pointStyle:ve.pointStyle,rotation:ve.rotation,borderWidth:Ve},vt=l.xPlus(oe,y/2),Rt=ke+_;pT(r,yt,vt,Rt,a.pointStyleWidth&&y)}else{let yt=ke+Math.max((p-w)/2,0),vt=l.leftForLtr(oe,y),Rt=Ac(ve.borderRadius);r.beginPath(),Object.values(Rt).some(Gn=>Gn!==0)?Gh(r,{x:vt,y:yt,w:y,h:w,radius:Rt}):r.rect(vt,yt,y,w),r.fill(),Ve!==0&&r.stroke()}r.restore()},F=function(oe,ke,ve){Ic(r,ve.text,oe,ke+C/2,c,{strikethrough:ve.hidden,textAlign:l.textAlign(ve.textAlign)})},W=this.isHorizontal(),Z=this._computeTitleHeight();W?b={x:lr(o,this.left+d,this.right-i[0]),y:this.top+d+Z,line:0}:b={x:this.left+d,y:lr(o,this.top+Z+d,this.bottom-e[0].height),line:0},CT(this.ctx,n.textDirection);let K=C+d;this.legendItems.forEach((oe,ke)=>{r.strokeStyle=oe.fontColor,r.fillStyle=oe.fontColor;let ve=r.measureText(oe.text).width,Ve=l.textAlign(oe.textAlign||(oe.textAlign=a.textAlign)),yt=y+_+ve,vt=b.x,Rt=b.y;l.setWidth(this.width),W?ke>0&&vt+yt+d>this.right&&(Rt=b.y+=K,b.line++,vt=b.x=lr(o,this.left+d,this.right-i[b.line])):ke>0&&Rt+K>this.bottom&&(vt=b.x=vt+e[b.line].width+d,b.line++,Rt=b.y=lr(o,this.top+Z+d,this.bottom-e[b.line].height));let Gn=l.x(vt);if(D(Gn,Rt,oe),vt=zj(Ve,vt+y+_,W?vt+yt:this.right,n.rtl),F(l.x(vt),Rt,oe),W)b.x+=yt+d;else if(typeof oe.text!="string"){let fo=c.lineHeight;b.y+=w5(oe,fo)+d}else b.y+=K}),wT(this.ctx,n.textDirection)}drawTitle(){let n=this.options,e=n.title,i=fn(e.font),r=cr(e.padding);if(!e.display)return;let o=Su(n.rtl,this.left,this.width),a=this.ctx,s=e.position,l=i.size/2,c=r.top+l,d,p=this.left,_=this.width;if(this.isHorizontal())_=Math.max(...this.lineWidths),d=this.top+c,p=lr(n.align,p,this.right-_);else{let y=this.columnSizes.reduce((w,C)=>Math.max(w,C.height),0);d=c+lr(n.align,this.top,this.bottom-y-n.labels.padding-this._computeTitleHeight())}let b=lr(s,p,p+_);a.textAlign=o.textAlign(Yx(s)),a.textBaseline="middle",a.strokeStyle=e.color,a.fillStyle=e.color,a.font=i.string,Ic(a,e.text,b,d,i)}_computeTitleHeight(){let n=this.options.title,e=fn(n.font),i=cr(n.padding);return n.display?e.lineHeight+i.height:0}_getLegendItemAt(n,e){let i,r,o;if(As(n,this.left,this.right)&&As(e,this.top,this.bottom)){for(o=this.legendHitBoxes,i=0;io.length>a.length?o:a)),n+e.size/2+i.measureText(r).width}function hse(t,n,e){let i=t;return typeof n.text!="string"&&(i=w5(n,e)),i}function w5(t,n){let e=t.text?t.text.length:0;return n*e}function pse(t,n){return!!((t==="mousemove"||t==="mouseout")&&(n.onHover||n.onLeave)||n.onClick&&(t==="click"||t==="mouseup"))}var fse={id:"legend",_element:fC,start(t,n,e){let i=t.legend=new fC({ctx:t.ctx,options:e,chart:t});kr.configure(t,i,e),kr.addBox(t,i)},stop(t){kr.removeBox(t,t.legend),delete t.legend},beforeUpdate(t,n,e){let i=t.legend;kr.configure(t,i,e),i.options=e},afterUpdate(t){let n=t.legend;n.buildLabels(),n.adjustHitBoxes()},afterEvent(t,n){n.replay||t.legend.handleEvent(n.event)},defaults:{display:!0,position:"top",align:"center",fullSize:!0,reverse:!1,weight:1e3,onClick(t,n,e){let i=n.datasetIndex,r=e.chart;r.isDatasetVisible(i)?(r.hide(i),n.hidden=!0):(r.show(i),n.hidden=!1)},onHover:null,onLeave:null,labels:{color:t=>t.chart.options.color,boxWidth:40,padding:10,generateLabels(t){let n=t.data.datasets,{labels:{usePointStyle:e,pointStyle:i,textAlign:r,color:o,useBorderRadius:a,borderRadius:s}}=t.legend.options;return t._getSortedDatasetMetas().map(l=>{let c=l.controller.getStyle(e?0:void 0),d=cr(c.borderWidth);return{text:n[l.index].label,fillStyle:c.backgroundColor,fontColor:o,hidden:!l.visible,lineCap:c.borderCapStyle,lineDash:c.borderDash,lineDashOffset:c.borderDashOffset,lineJoin:c.borderJoinStyle,lineWidth:(d.width+d.height)/4,strokeStyle:c.borderColor,pointStyle:i||c.pointStyle,rotation:c.rotation,textAlign:r||c.textAlign,borderRadius:a&&(s||c.borderRadius),datasetIndex:l.index}},this)}},title:{color:t=>t.chart.options.color,display:!1,position:"center",text:""}},descriptors:{_scriptable:t=>!t.startsWith("on"),labels:{_scriptable:t=>!["generateLabels","filter","sort"].includes(t)}}},t_=class extends za{constructor(n){super(),this.chart=n.chart,this.options=n.options,this.ctx=n.ctx,this._padding=void 0,this.top=void 0,this.bottom=void 0,this.left=void 0,this.right=void 0,this.width=void 0,this.height=void 0,this.position=void 0,this.weight=void 0,this.fullSize=void 0}update(n,e){let i=this.options;if(this.left=0,this.top=0,!i.display){this.width=this.height=this.right=this.bottom=0;return}this.width=this.right=n,this.height=this.bottom=e;let r=Ti(i.text)?i.text.length:1;this._padding=cr(i.padding);let o=r*fn(i.font).lineHeight+this._padding.height;this.isHorizontal()?this.height=o:this.width=o}isHorizontal(){let n=this.options.position;return n==="top"||n==="bottom"}_drawArgs(n){let{top:e,left:i,bottom:r,right:o,options:a}=this,s=a.align,l=0,c,d,p;return this.isHorizontal()?(d=lr(s,i,o),p=e+n,c=o-i):(a.position==="left"?(d=i+n,p=lr(s,r,e),l=$t*-.5):(d=o-n,p=lr(s,e,r),l=$t*.5),c=r-e),{titleX:d,titleY:p,maxWidth:c,rotation:l}}draw(){let n=this.ctx,e=this.options;if(!e.display)return;let i=fn(e.font),o=i.lineHeight/2+this._padding.top,{titleX:a,titleY:s,maxWidth:l,rotation:c}=this._drawArgs(o);Ic(n,e.text,0,0,i,{color:e.color,maxWidth:l,rotation:c,textAlign:Yx(e.align),textBaseline:"middle",translation:[a,s]})}};function gse(t,n){let e=new t_({ctx:t.ctx,options:n,chart:t});kr.configure(t,e,n),kr.addBox(t,e),t.titleBlock=e}var _se={id:"title",_element:t_,start(t,n,e){gse(t,e)},stop(t){let n=t.titleBlock;kr.removeBox(t,n),delete t.titleBlock},beforeUpdate(t,n,e){let i=t.titleBlock;kr.configure(t,i,e),i.options=e},defaults:{align:"center",display:!1,font:{weight:"bold"},fullSize:!0,padding:10,position:"top",text:"",weight:2e3},defaultRoutes:{color:"color"},descriptors:{_scriptable:!0,_indexable:!1}},oC=new WeakMap,bse={id:"subtitle",start(t,n,e){let i=new t_({ctx:t.ctx,options:e,chart:t});kr.configure(t,i,e),kr.addBox(t,i),oC.set(t,i)},stop(t){kr.removeBox(t,oC.get(t)),oC.delete(t)},beforeUpdate(t,n,e){let i=oC.get(t);kr.configure(t,i,e),i.options=e},defaults:{align:"center",display:!1,font:{weight:"normal"},fullSize:!0,padding:0,position:"top",text:"",weight:1500},defaultRoutes:{color:"color"},descriptors:{_scriptable:!0,_indexable:!1}},Jg={average(t){if(!t.length)return!1;let n,e,i=new Set,r=0,o=0;for(n=0,e=t.length;ns+l)/i.size,y:r/o}},nearest(t,n){if(!t.length)return!1;let e=n.x,i=n.y,r=Number.POSITIVE_INFINITY,o,a,s;for(o=0,a=t.length;o0?17:-1),g(),B(o.toast.dismissible?18:-1),g(2),B(o.toast.visible?20:-1))},dependencies:[Ix,aj,sj,ane],encapsulation:2,changeDetection:0});let t=n;return t})(),rj=(()=>{let n=class n{constructor(){this.toasts=[],this.toastRefs=[],this.isShowingAllToasts=!1,this._onClosed=new z,this._onGroupToggle=new z,this._onGroupRefAttached=new z,this.onClosed$=this._onClosed.asObservable(),this.onGroupToggle$=this._onGroupToggle.asObservable(),this.onGroupRefAttached$=this._onGroupRefAttached.asObservable(),this.cdr=u(ye),this.toastService=u(Vg)}trackById(i,r){return r.id}getVisibleToasts(i){return this.unGroupedToasts.filter(r=>r.visible&&r.position===i)}get unGroupedToasts(){return this.toasts.filter(i=>i.group?.parent===void 0||i.group?.children===void 0||i.group?.children.length===0)}calculateOffset(i,r){let o=this.getVisibleToasts(r),a=o.findIndex(l=>l.id===i);return a!==-1?o.slice(...this.defaultConfig.reverseOrder?[a+1]:[0,a]).reduce((l,c,d)=>{let p=o.length-1-d;return this.defaultConfig.visibleToasts!==0&&dthis.defaultConfig.visibleToasts&&this.toasts.slice(0,this.toasts.length-this.defaultConfig.visibleToasts).forEach(s=>{s.autoClose&&this.closeToast(s.id)}),this.cdr.markForCheck(),this.attachGroupRefs(o,i,r),{dispose:()=>{this.closeToast(o.id)},updateMessage:a=>{o.message=a,this.updateToasts(o),this.cdr.markForCheck()},updateToast:a=>{this.updateToasts(o,a),this.cdr.markForCheck()},afterClosed:this.getAfterClosed(o),afterGroupToggled:this.getAfterGroupToggled(o),afterGroupRefsAttached:this.getAfterGroupRefsAttached(o).pipe(se(a=>a.groupRefs))}}attachGroupRefs(i,r,o){return yn(this,null,function*(){let a=[];if(i.group){if(i.group.children){a=yield this.createGroupRefs(i,r);let s=this.toastRefs.findIndex(l=>l.getToast().id===i.id);s>-1&&(this.toastRefs[s].groupRefs=a,this.cdr.markForCheck(),this._onGroupRefAttached.next({groupRefs:a,id:i.id}))}else if(i.group.parent&&!o){let l=i.group.parent.getToast(),c=this.toastRefs.findIndex(p=>p.getToast().id===l.id),d=this.toasts.findIndex(p=>p.id===l.id);if(c>-1&&d>-1){this.toastRefs[c].groupRefs.push(r);let p=this.toasts[c].group??{},_=this.toasts[c].group?.children??[];_.push({options:Me(I({},i),{type:i.type,message:i.message})}),p.children=_,this.toasts[c].group=I({},p),this.cdr.markForCheck(),this._onGroupRefAttached.next({groupRefs:a,id:l.id})}}}})}createGroupRefs(i,r){return new Promise(a=>{let l=i.group.children.map(c=>new Promise(d=>{c.options.group={parent:r},setTimeout(()=>{try{let p=this.toastService.show(c.options.message,c.options,!0);d(p)}catch(p){console.error("Error creating toast",p),d(null)}})}));Promise.all(l).then(c=>a(c))})}closeToast(i){if(i){let r=this.hotToastComponentList.find(o=>o.toast.id===i);r&&(r.close(),this.cdr.markForCheck())}else this.hotToastComponentList.forEach(r=>r.close()),this.cdr.markForCheck()}beforeClosed(i){i.visible=!1,this.cdr.markForCheck()}afterClosed(i){this.toasts.findIndex(o=>o.id===i.id)>-1&&(this._onClosed.next(i),this.toasts=this.toasts.filter(o=>o.id!==i.id),this.toastRefs=this.toastRefs.filter(o=>o.getToast().id!==i.id),this.cdr.markForCheck())}toggleGroup(i){let r=this.toastRefs.findIndex(o=>o.getToast().id===i.id);r>-1&&(this._onGroupToggle.next(i),this.toastRefs[r].groupExpanded=i.event==="expand",this.cdr.markForCheck())}hasToast(i){return this.toasts.findIndex(r=>r.id===i)>-1}showAllToasts(i){this.isShowingAllToasts=i}getAfterClosed(i){return this.onClosed$.pipe(ce(r=>r.id===i.id))}getAfterGroupToggled(i){return this.onGroupToggle$.pipe(ce(r=>r.id===i.id))}getAfterGroupRefsAttached(i){return this.onGroupRefAttached$.pipe(ce(r=>r.id===i.id))}updateToasts(i,r){this.toasts=this.toasts.map(o=>I(I({},o),o.id===i.id&&I(I({},i),r))),this.cdr.markForCheck()}};n.\u0275fac=function(r){return new(r||n)},n.\u0275cmp=E({type:n,selectors:[["hot-toast-container"]],viewQuery:function(r,o){if(r&1&&ie(nj,5),r&2){let a;j(a=H())&&(o.hotToastComponentList=a)}},inputs:{defaultConfig:"defaultConfig"},decls:11,vars:0,consts:[[1,"hot-toast-container-overlay"],[1,"hot-toast-container-wrapper"],[3,"showAllToasts","height","beforeClosed","afterClosed","toggleGroup","toast","offset","toastRef","toastsAfter","defaultConfig","isShowingAllToasts"]],template:function(r,o){r&1&&(m(0,"div",0),f(1,` + `),m(2,"div",1),f(3,` + `),m(4,"div"),f(5,` + `),Mt(6,Xie,3,1,null,null,o.trackById,!0),h(),f(8,` + `),h(),f(9,` +`),h(),f(10,` +`)),r&2&&(g(6),Et(o.toasts))},dependencies:[nj],styles:[".hot-toast-container-overlay[_ngcontent-%COMP%]{position:fixed;z-index:var(--hot-toast-container-overlay-z-index, 9999);inset:0;pointer-events:none}.hot-toast-container-wrapper[_ngcontent-%COMP%]{position:relative;height:100%}"],changeDetection:0});let t=n;return t})(),Lg=class{constructor(){this.reverseOrder=!1,this.visibleToasts=5,this.stacking="vertical",this.ariaLive="polite",this.role="status",this.position="top-center",this.autoClose=!0,this.theme="toast",this.attributes={},this.info={content:""},this.success={content:""},this.error={content:""},this.loading={content:""},this.blank={content:""},this.warning={content:""}}},sne=t=>typeof t=="function",lne=t=>typeof t=="function"&&!!t.\u0275cmp,cne=(t,n)=>lne(t)?t:sne(t)?t(n):t,Bk=class{constructor(){this.storage="local",this.key="ngxpert/hototast-${id}",this.count=1,this.enabled=!1}},dne=new O("HOT_TOAST_CONTAINER_TOKEN"),Vg=(()=>{let n=class n{constructor(){this._isInitialized=!1,this._defaultGlobalConfig=new Lg,this._defaultPersistConfig=new Bk,this._viewService=u(Vk),this._platformId=u(hl),this._globalConfig=u(Lg,{optional:!0}),this._container=u(dne,{optional:!0}),this._globalConfig&&(this._defaultGlobalConfig=I(I({},this._defaultGlobalConfig),this._globalConfig))}get defaultConfig(){return this._defaultGlobalConfig}set defaultConfig(i){this._defaultGlobalConfig=I(I({},this._defaultGlobalConfig),i),this._componentRef&&this._componentRef.setInput("defaultConfig",this._defaultGlobalConfig)}show(i,r,o){return this.createToast({message:i||this._defaultGlobalConfig.blank.content,type:r?.type??"blank",options:I(I({},this._defaultGlobalConfig),r),skipAttachToParent:o})}error(i,r){return this.createToast({message:i||this._defaultGlobalConfig.error.content,type:"error",options:I(I(I({},this._defaultGlobalConfig),this._defaultGlobalConfig?.error),r)})}success(i,r){return this.createToast({message:i||this._defaultGlobalConfig.success.content,type:"success",options:I(I(I({},this._defaultGlobalConfig),this._defaultGlobalConfig?.success),r)})}loading(i,r){return this.createToast({message:i||this._defaultGlobalConfig.loading.content,type:"loading",options:I(I(I({},this._defaultGlobalConfig),this._defaultGlobalConfig?.loading),r)})}warning(i,r){return this.createToast({message:i||this._defaultGlobalConfig.warning.content,type:"warning",options:I(I(I({},this._defaultGlobalConfig),this._defaultGlobalConfig?.warning),r)})}info(i,r){return this.createToast({message:i||this._defaultGlobalConfig.info.content,type:"info",options:I(I(I({},this._defaultGlobalConfig),this._defaultGlobalConfig?.info),r)})}observe(i){return r=>{let o,a=0,s=i.loading??this._defaultGlobalConfig.loading?.content,l=i.success??this._defaultGlobalConfig.success?.content,c=i.error??this._defaultGlobalConfig.error?.content;return Fn(()=>(s&&(o=this.createLoadingToast(s),a=Date.now()),r.pipe(He(I(I({},l&&{next:d=>{o=this.createOrUpdateToast(i,d,o,"success",a===0?a:Date.now()-a)}}),c&&{error:d=>{o=this.createOrUpdateToast(i,d,o,"error",a===0?a:Date.now()-a)}})))))}}close(i){this._componentRef&&this._componentRef.ref.instance.closeToast(i)}init(){if(!K2(this._platformId))if(this._container){let i=document.querySelector(this._container);i||(console.warn(`No container element found for selector: ${this._container}, using document.body instead as toast container.`),i=document.body),this._componentRef=this._viewService.createComponent(rj).setInput("defaultConfig",this._defaultGlobalConfig).appendTo(i)}else this._componentRef=this._viewService.createComponent(rj).setInput("defaultConfig",this._defaultGlobalConfig).appendTo(document.body)}createOrUpdateToast(i,r,o,a,s){try{let l=null,c={};if({content:l,options:c}=this.getContentAndOptions(a,i[a]||(this._defaultGlobalConfig[a]?this._defaultGlobalConfig[a].content:"")),l=cne(l,r),o){c.data&&(o.data=c.data),o.updateMessage(l);let d=I(I({type:a,duration:s+ij[a]},c),c.duration&&{duration:s+c.duration});o.updateToast(d)}else this.createToast({message:l,type:a,options:c});return o}catch(l){console.error(l)}}createToast({message:i,type:r,options:o,observableMessages:a,skipAttachToParent:s}){this._isInitialized||(this._isInitialized=!0,this.init());let l=o?.id??`toast-${n.nextId++}`;if(!this.isDuplicate(l)&&(!o.persist?.enabled||o.persist?.enabled&&this.handleStorageValue(l,o))){let c=I({ariaLive:o?.ariaLive??"polite",createdAt:Date.now(),duration:o?.duration??ij[r],id:l,message:i,role:o?.role??"status",type:r,visible:!0,observableMessages:a??void 0},o);return new Ng(c).appendTo(this._componentRef.ref.instance,s)}}isDuplicate(i){return this._componentRef.ref.instance.hasToast(i)}handleStorageValue(i,r){let o=1,a=I(I({},this._defaultPersistConfig),r.persist),s=a.storage==="local"?localStorage:sessionStorage,l=a.key.replace(/\${id}/g,i),c=s.getItem(l);return c?(c=parseInt(c,10),c>0?o=c-1:o=c):o=a.count,s.setItem(l,o.toString()),o}getContentAndOptions(i,r){var s;let o,a=I(I({},this._defaultGlobalConfig),this._defaultGlobalConfig[i]);if(typeof r=="string"||Fg(r)||Cu(r))o=r;else{let l;s=r,{content:o}=s,l=cd(s,["content"]),a=I(I({},a),l)}return{content:o,options:a}}createLoadingToast(i){let r=null,o={};return{content:r,options:o}=this.getContentAndOptions("loading",i),this.loading(r,o)}};n.nextId=0,n.\u0275fac=function(r){return new(r||n)},n.\u0275prov=R({token:n,factory:n.\u0275fac,providedIn:"root"});let t=n;return t})();function lj(t){return Jr([{provide:Lg,useValue:t}])}var Px={REMOVE:"remove",SHOW:"show"},dj=(()=>{let n=class n{constructor(){this.strategiesSource=new rt({}),this.strategies$=this.strategiesSource.asObservable()}};n.\u0275fac=function(r){return new(r||n)},n.\u0275prov=R({token:n,factory:n.\u0275fac});let t=n;return t})(),zk=new O("USE_CONFIGURATION_STORE"),Uk=(()=>{let n=class n{constructor(i=!1,r){this.isolate=i,this.configurationStore=r,this.strategiesSource=this.isolate?new rt({}):this.configurationStore.strategiesSource,this.strategies$=this.strategiesSource.asObservable(),this.onAuthorisedDefaultStrategy=this.isolate?void 0:this.configurationStore.onAuthorisedDefaultStrategy,this.onUnAuthorisedDefaultStrategy=this.isolate?void 0:this.configurationStore.onUnAuthorisedDefaultStrategy}setDefaultOnAuthorizedStrategy(i){this.isolate?this.onAuthorisedDefaultStrategy=this.getDefinedStrategy(i):(this.configurationStore.onAuthorisedDefaultStrategy=this.getDefinedStrategy(i),this.onAuthorisedDefaultStrategy=this.configurationStore.onAuthorisedDefaultStrategy)}setDefaultOnUnauthorizedStrategy(i){this.isolate?this.onUnAuthorisedDefaultStrategy=this.getDefinedStrategy(i):(this.configurationStore.onUnAuthorisedDefaultStrategy=this.getDefinedStrategy(i),this.onUnAuthorisedDefaultStrategy=this.configurationStore.onUnAuthorisedDefaultStrategy)}addPermissionStrategy(i,r){this.strategiesSource.value[i]=r}getStrategy(i){return this.strategiesSource.value[i]}getAllStrategies(){return this.strategiesSource.value}getDefinedStrategy(i){if(this.strategiesSource.value[i]||this.isPredefinedStrategy(i))return i;throw new Error(`No ' ${i} ' strategy is found please define one`)}isPredefinedStrategy(i){return i===Px.SHOW||i===Px.REMOVE}};n.\u0275fac=function(r){return new(r||n)(pe(zk),pe(dj))},n.\u0275prov=R({token:n,factory:n.\u0275fac});let t=n;return t})();function ho(t){return typeof t=="function"}function Hk(t){if(Object.prototype.toString.call(t)!=="[object Object]")return!1;{let n=Object.getPrototypeOf(t);return n===null||n===Object.prototype}}function uj(t){return!!t&&typeof t=="string"}function Fx(t){return typeof t=="boolean"}function une(t){return Object.prototype.toString.call(t)==="[object Promise]"}function Rx(t){return Array.isArray(t)?t.length>0:!!t}function Nx(t){return uj(t)?[t]:t}var mj=(()=>{let n=class n{constructor(){this.permissionsSource=new rt({}),this.permissions$=this.permissionsSource.asObservable()}};n.\u0275fac=function(r){return new(r||n)},n.\u0275prov=R({token:n,factory:n.\u0275fac});let t=n;return t})(),$k=new O("USE_PERMISSIONS_STORE"),wu=(()=>{let n=class n{constructor(i=!1,r){this.isolate=i,this.permissionsStore=r,this.permissionsSource=this.isolate?new rt({}):this.permissionsStore.permissionsSource,this.permissions$=this.permissionsSource.asObservable()}flushPermissions(){this.permissionsSource.next({})}hasPermission(i){return!i||Array.isArray(i)&&i.length===0?Promise.resolve(!0):(i=Nx(i),this.hasArrayPermission(i))}loadPermissions(i,r){let o=i.reduce((a,s)=>this.reducePermission(a,s,r),{});this.permissionsSource.next(o)}addPermission(i,r){if(Array.isArray(i)){let o=i.reduce((a,s)=>this.reducePermission(a,s,r),this.permissionsSource.value);this.permissionsSource.next(o)}else{let o=this.reducePermission(this.permissionsSource.value,i,r);this.permissionsSource.next(o)}}removePermission(i){let r=I({},this.permissionsSource.value);delete r[i],this.permissionsSource.next(r)}getPermission(i){return this.permissionsSource.value[i]}getPermissions(){return this.permissionsSource.value}reducePermission(i,r,o){return o&&ho(o)?Me(I({},i),{[r]:{name:r,validationFunction:o}}):Me(I({},i),{[r]:{name:r}})}hasArrayPermission(i){let r=i.map(o=>{if(this.hasPermissionValidationFunction(o)){let a=this.permissionsSource.value[o].validationFunction,s=I({},this.permissionsSource.value);return Q(null).pipe(se(()=>a(o,s)),je(l=>Fx(l)?Q(l):l),ei(()=>Q(!1)))}return Q(!!this.permissionsSource.value[o])});return $t(r).pipe(xo(),xn(o=>o!==!1,!1),se(o=>o!==!1)).toPromise().then(o=>o)}hasPermissionValidationFunction(i){return!!this.permissionsSource.value[i]&&!!this.permissionsSource.value[i].validationFunction&&ho(this.permissionsSource.value[i].validationFunction)}};n.\u0275fac=function(r){return new(r||n)(pe($k),pe(mj))},n.\u0275prov=R({token:n,factory:n.\u0275fac});let t=n;return t})(),Lx=class{constructor(){this.rolesSource=new rt({}),this.roles$=this.rolesSource.asObservable()}},Wk=new O("USE_ROLES_STORE"),Ph=(()=>{let n=class n{constructor(i=!1,r,o){this.isolate=i,this.rolesStore=r,this.permissionsService=o,this.rolesSource=this.isolate?new rt({}):this.rolesStore.rolesSource,this.roles$=this.rolesSource.asObservable()}addRole(i,r){let o=Me(I({},this.rolesSource.value),{[i]:{name:i,validationFunction:r}});this.rolesSource.next(o)}addRoleWithPermissions(i,r){this.permissionsService.addPermission(r),this.addRole(i,r)}addRoles(i){Object.keys(i).forEach((r,o)=>{this.addRole(r,i[r])})}addRolesWithPermissions(i){Object.keys(i).forEach((r,o)=>{this.addRoleWithPermissions(r,i[r])})}flushRoles(){this.rolesSource.next({})}flushRolesAndPermissions(){this.flushRoles(),this.permissionsService.flushPermissions()}removeRole(i){let r=I({},this.rolesSource.value);delete r[i],this.rolesSource.next(r)}getRoles(){return this.rolesSource.value}getRole(i){return this.rolesSource.value[i]}hasOnlyRoles(i){return!i||Array.isArray(i)&&i.length===0?Promise.resolve(!0):(i=Nx(i),Promise.all([this.hasRoleKey(i),this.hasRolePermission(this.rolesSource.value,i)]).then(([o,a])=>o||a))}hasRoleKey(i){let r=i.map(o=>{if(!!this.rolesSource.value[o]&&!!this.rolesSource.value[o].validationFunction&&ho(this.rolesSource.value[o].validationFunction)&&!une(this.rolesSource.value[o].validationFunction)){let s=this.rolesSource.value[o].validationFunction,l=I({},this.rolesSource.value);return Q(null).pipe(se(()=>s(o,l)),je(c=>Fx(c)?Q(c):c),ei(()=>Q(!1)))}return Q(!1)});return $t(r).pipe(xo(),xn(o=>o!==!1,!1),se(o=>o!==!1)).toPromise().then(o=>o)}hasRolePermission(i,r){return $t(r).pipe(Vt(o=>i[o]&&Array.isArray(i[o].validationFunction)?$t(i[o].validationFunction).pipe(Vt(a=>this.permissionsService.hasPermission(a)),tD(a=>a===!0)):Q(!1)),xn(o=>o===!0,!1)).toPromise()}};n.\u0275fac=function(r){return new(r||n)(pe(Wk),pe(Lx),pe(wu))},n.\u0275prov=R({token:n,factory:n.\u0275fac});let t=n;return t})(),Fh=(()=>{let n=class n{constructor(){this.permissionsAuthorized=new U,this.permissionsUnauthorized=new U,this.firstMergeUnusedRun=1,this.permissionsService=u(wu),this.configurationService=u(Uk),this.rolesService=u(Ph),this.viewContainer=u(st),this.changeDetector=u(ye),this.templateRef=u(te)}ngOnInit(){this.viewContainer.clear(),this.initPermissionSubscription=this.validateExceptOnlyPermissions()}ngOnChanges(i){let r=i.ngxPermissionsOnly,o=i.ngxPermissionsExcept;if(r||o){if(r&&r.firstChange||o&&o.firstChange)return;it(this.permissionsService.permissions$,this.rolesService.roles$).pipe(ds(this.firstMergeUnusedRun),mt(1)).subscribe(()=>{if(Rx(this.ngxPermissionsExcept)){this.validateExceptAndOnlyPermissions();return}if(Rx(this.ngxPermissionsOnly)){this.validateOnlyPermissions();return}this.handleAuthorisedPermission(this.getAuthorisedTemplates())})}}ngOnDestroy(){this.initPermissionSubscription&&this.initPermissionSubscription.unsubscribe()}validateExceptOnlyPermissions(){return it(this.permissionsService.permissions$,this.rolesService.roles$).pipe(ds(this.firstMergeUnusedRun)).subscribe(()=>{if(Rx(this.ngxPermissionsExcept)){this.validateExceptAndOnlyPermissions();return}if(Rx(this.ngxPermissionsOnly)){this.validateOnlyPermissions();return}this.handleAuthorisedPermission(this.getAuthorisedTemplates())})}validateExceptAndOnlyPermissions(){Promise.all([this.permissionsService.hasPermission(this.ngxPermissionsExcept),this.rolesService.hasOnlyRoles(this.ngxPermissionsExcept)]).then(([i,r])=>{if(i||r){this.handleUnauthorisedPermission(this.ngxPermissionsExceptElse||this.ngxPermissionsElse);return}if(this.ngxPermissionsOnly)throw!1;this.handleAuthorisedPermission(this.ngxPermissionsExceptThen||this.ngxPermissionsThen||this.templateRef)}).catch(()=>{this.ngxPermissionsOnly?this.validateOnlyPermissions():this.handleAuthorisedPermission(this.ngxPermissionsExceptThen||this.ngxPermissionsThen||this.templateRef)})}validateOnlyPermissions(){Promise.all([this.permissionsService.hasPermission(this.ngxPermissionsOnly),this.rolesService.hasOnlyRoles(this.ngxPermissionsOnly)]).then(([i,r])=>{i||r?this.handleAuthorisedPermission(this.ngxPermissionsOnlyThen||this.ngxPermissionsThen||this.templateRef):this.handleUnauthorisedPermission(this.ngxPermissionsOnlyElse||this.ngxPermissionsElse)}).catch(()=>{this.handleUnauthorisedPermission(this.ngxPermissionsOnlyElse||this.ngxPermissionsElse)})}handleUnauthorisedPermission(i){if(!(Fx(this.currentAuthorizedState)&&!this.currentAuthorizedState)){if(this.currentAuthorizedState=!1,this.permissionsUnauthorized.emit(),this.getUnAuthorizedStrategyInput()){this.applyStrategyAccordingToStrategyType(this.getUnAuthorizedStrategyInput());return}this.configurationService.onUnAuthorisedDefaultStrategy&&!this.elseBlockDefined()?this.applyStrategy(this.configurationService.onUnAuthorisedDefaultStrategy):this.showTemplateBlockInView(i)}}handleAuthorisedPermission(i){if(!(Fx(this.currentAuthorizedState)&&this.currentAuthorizedState)){if(this.currentAuthorizedState=!0,this.permissionsAuthorized.emit(),this.getAuthorizedStrategyInput()){this.applyStrategyAccordingToStrategyType(this.getAuthorizedStrategyInput());return}this.configurationService.onAuthorisedDefaultStrategy&&!this.thenBlockDefined()?this.applyStrategy(this.configurationService.onAuthorisedDefaultStrategy):this.showTemplateBlockInView(i)}}applyStrategyAccordingToStrategyType(i){if(uj(i)){this.applyStrategy(i);return}if(ho(i)){this.showTemplateBlockInView(this.templateRef),i(this.templateRef);return}}showTemplateBlockInView(i){this.viewContainer.clear(),i&&(this.viewContainer.createEmbeddedView(i),this.changeDetector.markForCheck())}getAuthorisedTemplates(){return this.ngxPermissionsOnlyThen||this.ngxPermissionsExceptThen||this.ngxPermissionsThen||this.templateRef}elseBlockDefined(){return!!this.ngxPermissionsExceptElse||!!this.ngxPermissionsElse}thenBlockDefined(){return!!this.ngxPermissionsExceptThen||!!this.ngxPermissionsThen}getAuthorizedStrategyInput(){return this.ngxPermissionsOnlyAuthorisedStrategy||this.ngxPermissionsExceptAuthorisedStrategy||this.ngxPermissionsAuthorisedStrategy}getUnAuthorizedStrategyInput(){return this.ngxPermissionsOnlyUnauthorisedStrategy||this.ngxPermissionsExceptUnauthorisedStrategy||this.ngxPermissionsUnauthorisedStrategy}applyStrategy(i){if(i===Px.SHOW){this.showTemplateBlockInView(this.templateRef);return}if(i===Px.REMOVE){this.viewContainer.clear();return}let r=this.configurationService.getStrategy(i);this.showTemplateBlockInView(this.templateRef),r(this.templateRef)}};n.\u0275fac=function(r){return new(r||n)},n.\u0275dir=P({type:n,selectors:[["","ngxPermissionsOnly",""],["","ngxPermissionsExcept",""]],inputs:{ngxPermissionsOnly:"ngxPermissionsOnly",ngxPermissionsOnlyThen:"ngxPermissionsOnlyThen",ngxPermissionsOnlyElse:"ngxPermissionsOnlyElse",ngxPermissionsExcept:"ngxPermissionsExcept",ngxPermissionsExceptElse:"ngxPermissionsExceptElse",ngxPermissionsExceptThen:"ngxPermissionsExceptThen",ngxPermissionsThen:"ngxPermissionsThen",ngxPermissionsElse:"ngxPermissionsElse",ngxPermissionsOnlyAuthorisedStrategy:"ngxPermissionsOnlyAuthorisedStrategy",ngxPermissionsOnlyUnauthorisedStrategy:"ngxPermissionsOnlyUnauthorisedStrategy",ngxPermissionsExceptUnauthorisedStrategy:"ngxPermissionsExceptUnauthorisedStrategy",ngxPermissionsExceptAuthorisedStrategy:"ngxPermissionsExceptAuthorisedStrategy",ngxPermissionsUnauthorisedStrategy:"ngxPermissionsUnauthorisedStrategy",ngxPermissionsAuthorisedStrategy:"ngxPermissionsAuthorisedStrategy"},outputs:{permissionsAuthorized:"permissionsAuthorized",permissionsUnauthorized:"permissionsUnauthorized"},standalone:!1,features:[Oe]});let t=n;return t})(),mne="default";var cj=(()=>{let n=class n{constructor(i,r,o){this.permissionsService=i,this.rolesService=r,this.router=o}canActivate(i,r){return this.hasPermissions(i,r)}canActivateChild(i,r){return this.hasPermissions(i,r)}canLoad(i){return this.hasPermissions(i)}canMatch(i){return this.hasPermissions(i)}hasPermissions(i,r){let o=i&&i.data?i.data.permissions:{},a=this.transformPermission(o,i,r);return this.isParameterAvailable(a.except)?this.passingExceptPermissionsValidation(a,i,r):this.isParameterAvailable(a.only)?this.passingOnlyPermissionsValidation(a,i,r):!0}transformPermission(i,r,o){let a=ho(i.only)?i.only(r,o):Nx(i.only),s=ho(i.except)?i.except(r,o):Nx(i.except),l=i.redirectTo;return{only:a,except:s,redirectTo:l}}isParameterAvailable(i){return!!i&&i.length>0}passingExceptPermissionsValidation(i,r,o){if(i.redirectTo&&(ho(i.redirectTo)||Hk(i.redirectTo)&&!this.isRedirectionWithParameters(i.redirectTo))){let a="";return $t(i.except).pipe(Vt(s=>ls([this.permissionsService.hasPermission(s),this.rolesService.hasOnlyRoles(s)]).pipe(He(l=>{l.every(d=>d===!1)||(a=s)}))),xn(s=>s.some(l=>l===!0),!1),Vt(s=>a?(this.handleRedirectOfFailedPermission(i,a,r,o),Q(!1)):!s&&i.only?this.onlyRedirectCheck(i,r,o):Q(!s))).toPromise()}return Promise.all([this.permissionsService.hasPermission(i.except),this.rolesService.hasOnlyRoles(i.except)]).then(([a,s])=>a||s?(i.redirectTo&&this.redirectToAnotherRoute(i.redirectTo,r,o),!1):i.only?this.checkOnlyPermissions(i,r,o):!0)}redirectToAnotherRoute(i,r,o,a){let s=ho(i)?i(a,r,o):i;if(this.isRedirectionWithParameters(s)){s.navigationCommands=this.transformNavigationCommands(s.navigationCommands,r,o),s.navigationExtras=this.transformNavigationExtras(s.navigationExtras,r,o),this.router.navigate(s.navigationCommands,s.navigationExtras);return}Array.isArray(s)?this.router.navigate(s):this.router.navigate([s])}isRedirectionWithParameters(i){return Hk(i)&&(!!i.navigationCommands||!!i.navigationExtras)}transformNavigationCommands(i,r,o){return ho(i)?i(r,o):i}transformNavigationExtras(i,r,o){return ho(i)?i(r,o):i}onlyRedirectCheck(i,r,o){let a="";return $t(i.only).pipe(Vt(s=>ls([this.permissionsService.hasPermission(s),this.rolesService.hasOnlyRoles(s)]).pipe(He(l=>{l.every(d=>d===!1)&&(a=s)}))),xn(s=>ho(i.redirectTo)?s.some(l=>l===!0):s.every(l=>l===!1),!1),Vt(s=>ho(i.redirectTo)?s?Q(!0):(this.handleRedirectOfFailedPermission(i,a,r,o),Q(!1)):(a&&this.handleRedirectOfFailedPermission(i,a,r,o),Q(!s)))).toPromise()}handleRedirectOfFailedPermission(i,r,o,a){this.isFailedPermissionPropertyOfRedirectTo(i,r)?this.redirectToAnotherRoute(i.redirectTo[r],o,a,r):ho(i.redirectTo)?this.redirectToAnotherRoute(i.redirectTo,o,a,r):this.redirectToAnotherRoute(i.redirectTo[mne],o,a,r)}isFailedPermissionPropertyOfRedirectTo(i,r){return!!i.redirectTo&&i.redirectTo[r]}checkOnlyPermissions(i,r,o){let a=I({},i);return Promise.all([this.permissionsService.hasPermission(a.only),this.rolesService.hasOnlyRoles(a.only)]).then(([s,l])=>s||l?!0:(a.redirectTo&&this.redirectToAnotherRoute(a.redirectTo,r,o),!1))}passingOnlyPermissionsValidation(i,r,o){return ho(i.redirectTo)||Hk(i.redirectTo)&&!this.isRedirectionWithParameters(i.redirectTo)?this.onlyRedirectCheck(i,r,o):this.checkOnlyPermissions(i,r,o)}};n.\u0275fac=function(r){return new(r||n)(pe(wu),pe(Ph),pe(Ae))},n.\u0275prov=R({token:n,factory:n.\u0275fac});let t=n;return t})();var Bc=(()=>{let n=class n{static forRoot(i={}){return{ngModule:n,providers:[mj,Lx,dj,wu,cj,Ph,Uk,{provide:$k,useValue:i.permissionsIsolate},{provide:Wk,useValue:i.rolesIsolate},{provide:zk,useValue:i.configurationIsolate}]}}static forChild(i={}){return{ngModule:n,providers:[{provide:$k,useValue:i.permissionsIsolate},{provide:Wk,useValue:i.rolesIsolate},{provide:zk,useValue:i.configurationIsolate},Uk,wu,Ph,cj]}}};n.\u0275fac=function(r){return new(r||n)},n.\u0275mod=ee({type:n}),n.\u0275inj=J({});let t=n;return t})();function Hg(t){return t+.5|0}var jc=(t,n,e)=>Math.max(Math.min(t,e),n);function Bg(t){return jc(Hg(t*2.55),0,255)}function Hc(t){return jc(Hg(t*255),0,255)}function Al(t){return jc(Hg(t/2.55)/100,0,1)}function hj(t){return jc(Hg(t*100),0,100)}var da={0:0,1:1,2:2,3:3,4:4,5:5,6:6,7:7,8:8,9:9,A:10,B:11,C:12,D:13,E:14,F:15,a:10,b:11,c:12,d:13,e:14,f:15},Yk=[..."0123456789ABCDEF"],hne=t=>Yk[t&15],pne=t=>Yk[(t&240)>>4]+Yk[t&15],Vx=t=>(t&240)>>4===(t&15),fne=t=>Vx(t.r)&&Vx(t.g)&&Vx(t.b)&&Vx(t.a);function gne(t){var n=t.length,e;return t[0]==="#"&&(n===4||n===5?e={r:255&da[t[1]]*17,g:255&da[t[2]]*17,b:255&da[t[3]]*17,a:n===5?da[t[4]]*17:255}:(n===7||n===9)&&(e={r:da[t[1]]<<4|da[t[2]],g:da[t[3]]<<4|da[t[4]],b:da[t[5]]<<4|da[t[6]],a:n===9?da[t[7]]<<4|da[t[8]]:255})),e}var _ne=(t,n)=>t<255?n(t):"";function bne(t){var n=fne(t)?hne:pne;return t?"#"+n(t.r)+n(t.g)+n(t.b)+_ne(t.a,n):void 0}var vne=/^(hsla?|hwb|hsv)\(\s*([-+.e\d]+)(?:deg)?[\s,]+([-+.e\d]+)%[\s,]+([-+.e\d]+)%(?:[\s,]+([-+.e\d]+)(%)?)?\s*\)$/;function _j(t,n,e){let i=n*Math.min(e,1-e),r=(o,a=(o+t/30)%12)=>e-i*Math.max(Math.min(a-3,9-a,1),-1);return[r(0),r(8),r(4)]}function yne(t,n,e){let i=(r,o=(r+t/60)%6)=>e-e*n*Math.max(Math.min(o,4-o,1),0);return[i(5),i(3),i(1)]}function xne(t,n,e){let i=_j(t,1,.5),r;for(n+e>1&&(r=1/(n+e),n*=r,e*=r),r=0;r<3;r++)i[r]*=1-n-e,i[r]+=n;return i}function Cne(t,n,e,i,r){return t===r?(n-e)/i+(n.5?d/(2-o-a):d/(o+a),l=Cne(e,i,r,d,o),l=l*60+.5),[l|0,c||0,s]}function Kk(t,n,e,i){return(Array.isArray(n)?t(n[0],n[1],n[2]):t(n,e,i)).map(Hc)}function Zk(t,n,e){return Kk(_j,t,n,e)}function wne(t,n,e){return Kk(xne,t,n,e)}function Dne(t,n,e){return Kk(yne,t,n,e)}function bj(t){return(t%360+360)%360}function Mne(t){let n=vne.exec(t),e=255,i;if(!n)return;n[5]!==i&&(e=n[6]?Bg(+n[5]):Hc(+n[5]));let r=bj(+n[2]),o=+n[3]/100,a=+n[4]/100;return n[1]==="hwb"?i=wne(r,o,a):n[1]==="hsv"?i=Dne(r,o,a):i=Zk(r,o,a),{r:i[0],g:i[1],b:i[2],a:e}}function Ene(t,n){var e=Qk(t);e[0]=bj(e[0]+n),e=Zk(e),t.r=e[0],t.g=e[1],t.b=e[2]}function Sne(t){if(!t)return;let n=Qk(t),e=n[0],i=hj(n[1]),r=hj(n[2]);return t.a<255?`hsla(${e}, ${i}%, ${r}%, ${Al(t.a)})`:`hsl(${e}, ${i}%, ${r}%)`}var pj={x:"dark",Z:"light",Y:"re",X:"blu",W:"gr",V:"medium",U:"slate",A:"ee",T:"ol",S:"or",B:"ra",C:"lateg",D:"ights",R:"in",Q:"turquois",E:"hi",P:"ro",O:"al",N:"le",M:"de",L:"yello",F:"en",K:"ch",G:"arks",H:"ea",I:"ightg",J:"wh"},fj={OiceXe:"f0f8ff",antiquewEte:"faebd7",aqua:"ffff",aquamarRe:"7fffd4",azuY:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"0",blanKedOmond:"ffebcd",Xe:"ff",XeviTet:"8a2be2",bPwn:"a52a2a",burlywood:"deb887",caMtXe:"5f9ea0",KartYuse:"7fff00",KocTate:"d2691e",cSO:"ff7f50",cSnflowerXe:"6495ed",cSnsilk:"fff8dc",crimson:"dc143c",cyan:"ffff",xXe:"8b",xcyan:"8b8b",xgTMnPd:"b8860b",xWay:"a9a9a9",xgYF:"6400",xgYy:"a9a9a9",xkhaki:"bdb76b",xmagFta:"8b008b",xTivegYF:"556b2f",xSange:"ff8c00",xScEd:"9932cc",xYd:"8b0000",xsOmon:"e9967a",xsHgYF:"8fbc8f",xUXe:"483d8b",xUWay:"2f4f4f",xUgYy:"2f4f4f",xQe:"ced1",xviTet:"9400d3",dAppRk:"ff1493",dApskyXe:"bfff",dimWay:"696969",dimgYy:"696969",dodgerXe:"1e90ff",fiYbrick:"b22222",flSOwEte:"fffaf0",foYstWAn:"228b22",fuKsia:"ff00ff",gaRsbSo:"dcdcdc",ghostwEte:"f8f8ff",gTd:"ffd700",gTMnPd:"daa520",Way:"808080",gYF:"8000",gYFLw:"adff2f",gYy:"808080",honeyMw:"f0fff0",hotpRk:"ff69b4",RdianYd:"cd5c5c",Rdigo:"4b0082",ivSy:"fffff0",khaki:"f0e68c",lavFMr:"e6e6fa",lavFMrXsh:"fff0f5",lawngYF:"7cfc00",NmoncEffon:"fffacd",ZXe:"add8e6",ZcSO:"f08080",Zcyan:"e0ffff",ZgTMnPdLw:"fafad2",ZWay:"d3d3d3",ZgYF:"90ee90",ZgYy:"d3d3d3",ZpRk:"ffb6c1",ZsOmon:"ffa07a",ZsHgYF:"20b2aa",ZskyXe:"87cefa",ZUWay:"778899",ZUgYy:"778899",ZstAlXe:"b0c4de",ZLw:"ffffe0",lime:"ff00",limegYF:"32cd32",lRF:"faf0e6",magFta:"ff00ff",maPon:"800000",VaquamarRe:"66cdaa",VXe:"cd",VScEd:"ba55d3",VpurpN:"9370db",VsHgYF:"3cb371",VUXe:"7b68ee",VsprRggYF:"fa9a",VQe:"48d1cc",VviTetYd:"c71585",midnightXe:"191970",mRtcYam:"f5fffa",mistyPse:"ffe4e1",moccasR:"ffe4b5",navajowEte:"ffdead",navy:"80",Tdlace:"fdf5e6",Tive:"808000",TivedBb:"6b8e23",Sange:"ffa500",SangeYd:"ff4500",ScEd:"da70d6",pOegTMnPd:"eee8aa",pOegYF:"98fb98",pOeQe:"afeeee",pOeviTetYd:"db7093",papayawEp:"ffefd5",pHKpuff:"ffdab9",peru:"cd853f",pRk:"ffc0cb",plum:"dda0dd",powMrXe:"b0e0e6",purpN:"800080",YbeccapurpN:"663399",Yd:"ff0000",Psybrown:"bc8f8f",PyOXe:"4169e1",saddNbPwn:"8b4513",sOmon:"fa8072",sandybPwn:"f4a460",sHgYF:"2e8b57",sHshell:"fff5ee",siFna:"a0522d",silver:"c0c0c0",skyXe:"87ceeb",UXe:"6a5acd",UWay:"708090",UgYy:"708090",snow:"fffafa",sprRggYF:"ff7f",stAlXe:"4682b4",tan:"d2b48c",teO:"8080",tEstN:"d8bfd8",tomato:"ff6347",Qe:"40e0d0",viTet:"ee82ee",JHt:"f5deb3",wEte:"ffffff",wEtesmoke:"f5f5f5",Lw:"ffff00",LwgYF:"9acd32"};function kne(){let t={},n=Object.keys(fj),e=Object.keys(pj),i,r,o,a,s;for(i=0;i>16&255,o>>8&255,o&255]}return t}var Bx;function Tne(t){Bx||(Bx=kne(),Bx.transparent=[0,0,0,0]);let n=Bx[t.toLowerCase()];return n&&{r:n[0],g:n[1],b:n[2],a:n.length===4?n[3]:255}}var Ine=/^rgba?\(\s*([-+.\d]+)(%)?[\s,]+([-+.e\d]+)(%)?[\s,]+([-+.e\d]+)(%)?(?:[\s,/]+([-+.e\d]+)(%)?)?\s*\)$/;function Ane(t){let n=Ine.exec(t),e=255,i,r,o;if(n){if(n[7]!==i){let a=+n[7];e=n[8]?Bg(a):jc(a*255,0,255)}return i=+n[1],r=+n[3],o=+n[5],i=255&(n[2]?Bg(i):jc(i,0,255)),r=255&(n[4]?Bg(r):jc(r,0,255)),o=255&(n[6]?Bg(o):jc(o,0,255)),{r:i,g:r,b:o,a:e}}}function One(t){return t&&(t.a<255?`rgba(${t.r}, ${t.g}, ${t.b}, ${Al(t.a)})`:`rgb(${t.r}, ${t.g}, ${t.b})`)}var qk=t=>t<=.0031308?t*12.92:Math.pow(t,1/2.4)*1.055-.055,Nh=t=>t<=.04045?t/12.92:Math.pow((t+.055)/1.055,2.4);function Rne(t,n,e){let i=Nh(Al(t.r)),r=Nh(Al(t.g)),o=Nh(Al(t.b));return{r:Hc(qk(i+e*(Nh(Al(n.r))-i))),g:Hc(qk(r+e*(Nh(Al(n.g))-r))),b:Hc(qk(o+e*(Nh(Al(n.b))-o))),a:t.a+e*(n.a-t.a)}}function jx(t,n,e){if(t){let i=Qk(t);i[n]=Math.max(0,Math.min(i[n]+i[n]*e,n===0?360:1)),i=Zk(i),t.r=i[0],t.g=i[1],t.b=i[2]}}function vj(t,n){return t&&Object.assign(n||{},t)}function gj(t){var n={r:0,g:0,b:0,a:255};return Array.isArray(t)?t.length>=3&&(n={r:t[0],g:t[1],b:t[2],a:255},t.length>3&&(n.a=Hc(t[3]))):(n=vj(t,{r:0,g:0,b:0,a:1}),n.a=Hc(n.a)),n}function Pne(t){return t.charAt(0)==="r"?Ane(t):Mne(t)}var jg=class t{constructor(n){if(n instanceof t)return n;let e=typeof n,i;e==="object"?i=gj(n):e==="string"&&(i=gne(n)||Tne(n)||Pne(n)),this._rgb=i,this._valid=!!i}get valid(){return this._valid}get rgb(){var n=vj(this._rgb);return n&&(n.a=Al(n.a)),n}set rgb(n){this._rgb=gj(n)}rgbString(){return this._valid?One(this._rgb):void 0}hexString(){return this._valid?bne(this._rgb):void 0}hslString(){return this._valid?Sne(this._rgb):void 0}mix(n,e){if(n){let i=this.rgb,r=n.rgb,o,a=e===o?.5:e,s=2*a-1,l=i.a-r.a,c=((s*l===-1?s:(s+l)/(1+s*l))+1)/2;o=1-c,i.r=255&c*i.r+o*r.r+.5,i.g=255&c*i.g+o*r.g+.5,i.b=255&c*i.b+o*r.b+.5,i.a=a*i.a+(1-a)*r.a,this.rgb=i}return this}interpolate(n,e){return n&&(this._rgb=Rne(this._rgb,n._rgb,e)),this}clone(){return new t(this.rgb)}alpha(n){return this._rgb.a=Hc(n),this}clearer(n){let e=this._rgb;return e.a*=1-n,this}greyscale(){let n=this._rgb,e=Hg(n.r*.3+n.g*.59+n.b*.11);return n.r=n.g=n.b=e,this}opaquer(n){let e=this._rgb;return e.a*=1+n,this}negate(){let n=this._rgb;return n.r=255-n.r,n.g=255-n.g,n.b=255-n.b,this}lighten(n){return jx(this._rgb,2,n),this}darken(n){return jx(this._rgb,2,-n),this}saturate(n){return jx(this._rgb,1,n),this}desaturate(n){return jx(this._rgb,1,-n),this}rotate(n){return Ene(this._rgb,n),this}};function Gs(){}var Ij=(()=>{let t=0;return()=>t++})();function Nt(t){return t==null}function Ri(t){if(Array.isArray&&Array.isArray(t))return!0;let n=Object.prototype.toString.call(t);return n.slice(0,7)==="[object"&&n.slice(-6)==="Array]"}function jt(t){return t!==null&&Object.prototype.toString.call(t)==="[object Object]"}function Xi(t){return(typeof t=="number"||t instanceof Number)&&isFinite(+t)}function po(t,n){return Xi(t)?t:n}function ut(t,n){return typeof t>"u"?n:t}var Aj=(t,n)=>typeof t=="string"&&t.endsWith("%")?parseFloat(t)/100:+t/n,tT=(t,n)=>typeof t=="string"&&t.endsWith("%")?parseFloat(t)/100*n:+t;function ki(t,n,e){if(t&&typeof t.call=="function")return t.apply(e,n)}function ui(t,n,e,i){let r,o,a;if(Ri(t))if(o=t.length,i)for(r=o-1;r>=0;r--)n.call(e,t[r],r);else for(r=0;rt,x:t=>t.x,y:t=>t.y};function Lne(t){let n=t.split("."),e=[],i="";for(let r of n)i+=r,i.endsWith("\\")?i=i.slice(0,-1)+".":(e.push(i),i="");return e}function Vne(t){let n=Lne(t);return e=>{for(let i of n){if(i==="")break;e=e&&e[i]}return e}}function Pl(t,n){return(yj[n]||(yj[n]=Vne(n)))(t)}function Yx(t){return t.charAt(0).toUpperCase()+t.slice(1)}var Hh=t=>typeof t<"u",Ol=t=>typeof t=="function",iT=(t,n)=>{if(t.size!==n.size)return!1;for(let e of t)if(!n.has(e))return!1;return!0};function Rj(t){return t.type==="mouseup"||t.type==="click"||t.type==="contextmenu"}var Jt=Math.PI,Pi=2*Jt,Bne=Pi+Jt,Wx=Number.POSITIVE_INFINITY,jne=Jt/180,rn=Jt/2,Du=Jt/4,xj=Jt*2/3,Rl=Math.log10,is=Math.sign;function zh(t,n,e){return Math.abs(t-n)r-o).pop(),n}function Hne(t){return typeof t=="symbol"||typeof t=="object"&&t!==null&&!(Symbol.toPrimitive in t||"toString"in t||"valueOf"in t)}function Su(t){return!Hne(t)&&!isNaN(parseFloat(t))&&isFinite(t)}function Fj(t,n){let e=Math.round(t);return e-n<=t&&e+n>=t}function rT(t,n,e){let i,r,o;for(i=0,r=t.length;il&&c=Math.min(n,e)-i&&t<=Math.max(n,e)+i}function Kx(t,n,e){e=e||(a=>t[a]1;)o=r+i>>1,e(o)?r=o:i=o;return{lo:r,hi:i}}var $s=(t,n,e,i)=>Kx(t,e,i?r=>{let o=t[r][n];return ot[r][n]Kx(t,e,i=>t[i][n]>=e);function Vj(t,n,e){let i=0,r=t.length;for(;ii&&t[r-1]>e;)r--;return i>0||r{let i="_onData"+Yx(e),r=t[e];Object.defineProperty(t,e,{configurable:!0,enumerable:!1,value(...o){let a=r.apply(this,o);return t._chartjs.listeners.forEach(s=>{typeof s[i]=="function"&&s[i](...o)}),a}})})}function sT(t,n){let e=t._chartjs;if(!e)return;let i=e.listeners,r=i.indexOf(n);r!==-1&&i.splice(r,1),!(i.length>0)&&(Bj.forEach(o=>{delete t[o]}),delete t._chartjs)}function lT(t){let n=new Set(t);return n.size===t.length?t:Array.from(n)}var cT=(function(){return typeof window>"u"?function(t){return t()}:window.requestAnimationFrame})();function dT(t,n){let e=[],i=!1;return function(...r){e=r,i||(i=!0,cT.call(window,()=>{i=!1,t.apply(n,e)}))}}function Hj(t,n){let e;return function(...i){return n?(clearTimeout(e),e=setTimeout(t,n,i)):t.apply(this,i),n}}var Zx=t=>t==="start"?"left":t==="end"?"right":"center",fr=(t,n,e)=>t==="start"?n:t==="end"?e:(n+e)/2,zj=(t,n,e,i)=>t===(i?"left":"right")?e:t==="center"?(n+e)/2:n;function uT(t,n,e){let i=n.length,r=0,o=i;if(t._sorted){let{iScale:a,vScale:s,_parsed:l}=t,c=t.dataset&&t.dataset.options?t.dataset.options.spanGaps:null,d=a.axis,{min:p,max:_,minDefined:b,maxDefined:y}=a.getUserBounds();if(b){if(r=Math.min($s(l,d,p).lo,e?i:$s(n,d,a.getPixelForValue(p)).lo),c){let w=l.slice(0,r+1).reverse().findIndex(C=>!Nt(C[s.axis]));r-=Math.max(0,w)}r=On(r,0,i-1)}if(y){let w=Math.max($s(l,a.axis,_,!0).hi+1,e?0:$s(n,d,a.getPixelForValue(_),!0).hi+1);if(c){let C=l.slice(w-1).findIndex(D=>!Nt(D[s.axis]));w+=Math.max(0,C)}o=On(w,r,i)-r}else o=i-r}return{start:r,count:o}}function mT(t){let{xScale:n,yScale:e,_scaleRanges:i}=t,r={xmin:n.min,xmax:n.max,ymin:e.min,ymax:e.max};if(!i)return t._scaleRanges=r,!0;let o=i.xmin!==n.min||i.xmax!==n.max||i.ymin!==e.min||i.ymax!==e.max;return Object.assign(i,r),o}var Hx=t=>t===0||t===1,Cj=(t,n,e)=>-(Math.pow(2,10*(t-=1))*Math.sin((t-n)*Pi/e)),wj=(t,n,e)=>Math.pow(2,-10*t)*Math.sin((t-n)*Pi/e)+1,Lh={linear:t=>t,easeInQuad:t=>t*t,easeOutQuad:t=>-t*(t-2),easeInOutQuad:t=>(t/=.5)<1?.5*t*t:-.5*(--t*(t-2)-1),easeInCubic:t=>t*t*t,easeOutCubic:t=>(t-=1)*t*t+1,easeInOutCubic:t=>(t/=.5)<1?.5*t*t*t:.5*((t-=2)*t*t+2),easeInQuart:t=>t*t*t*t,easeOutQuart:t=>-((t-=1)*t*t*t-1),easeInOutQuart:t=>(t/=.5)<1?.5*t*t*t*t:-.5*((t-=2)*t*t*t-2),easeInQuint:t=>t*t*t*t*t,easeOutQuint:t=>(t-=1)*t*t*t*t+1,easeInOutQuint:t=>(t/=.5)<1?.5*t*t*t*t*t:.5*((t-=2)*t*t*t*t+2),easeInSine:t=>-Math.cos(t*rn)+1,easeOutSine:t=>Math.sin(t*rn),easeInOutSine:t=>-.5*(Math.cos(Jt*t)-1),easeInExpo:t=>t===0?0:Math.pow(2,10*(t-1)),easeOutExpo:t=>t===1?1:-Math.pow(2,-10*t)+1,easeInOutExpo:t=>Hx(t)?t:t<.5?.5*Math.pow(2,10*(t*2-1)):.5*(-Math.pow(2,-10*(t*2-1))+2),easeInCirc:t=>t>=1?t:-(Math.sqrt(1-t*t)-1),easeOutCirc:t=>Math.sqrt(1-(t-=1)*t),easeInOutCirc:t=>(t/=.5)<1?-.5*(Math.sqrt(1-t*t)-1):.5*(Math.sqrt(1-(t-=2)*t)+1),easeInElastic:t=>Hx(t)?t:Cj(t,.075,.3),easeOutElastic:t=>Hx(t)?t:wj(t,.075,.3),easeInOutElastic(t){return Hx(t)?t:t<.5?.5*Cj(t*2,.1125,.45):.5+.5*wj(t*2-1,.1125,.45)},easeInBack(t){return t*t*((1.70158+1)*t-1.70158)},easeOutBack(t){return(t-=1)*t*((1.70158+1)*t+1.70158)+1},easeInOutBack(t){let n=1.70158;return(t/=.5)<1?.5*(t*t*(((n*=1.525)+1)*t-n)):.5*((t-=2)*t*(((n*=1.525)+1)*t+n)+2)},easeInBounce:t=>1-Lh.easeOutBounce(1-t),easeOutBounce(t){return t<1/2.75?7.5625*t*t:t<2/2.75?7.5625*(t-=1.5/2.75)*t+.75:t<2.5/2.75?7.5625*(t-=2.25/2.75)*t+.9375:7.5625*(t-=2.625/2.75)*t+.984375},easeInOutBounce:t=>t<.5?Lh.easeInBounce(t*2)*.5:Lh.easeOutBounce(t*2-1)*.5+.5};function hT(t){if(t&&typeof t=="object"){let n=t.toString();return n==="[object CanvasPattern]"||n==="[object CanvasGradient]"}return!1}function pT(t){return hT(t)?t:new jg(t)}function Xk(t){return hT(t)?t:new jg(t).saturate(.5).darken(.1).hexString()}var Une=["x","y","borderWidth","radius","tension"],$ne=["color","borderColor","backgroundColor"];function Wne(t){t.set("animation",{delay:void 0,duration:1e3,easing:"easeOutQuart",fn:void 0,from:void 0,loop:void 0,to:void 0,type:void 0}),t.describe("animation",{_fallback:!1,_indexable:!1,_scriptable:n=>n!=="onProgress"&&n!=="onComplete"&&n!=="fn"}),t.set("animations",{colors:{type:"color",properties:$ne},numbers:{type:"number",properties:Une}}),t.describe("animations",{_fallback:"animation"}),t.set("transitions",{active:{animation:{duration:400}},resize:{animation:{duration:0}},show:{animations:{colors:{from:"transparent"},visible:{type:"boolean",duration:0}}},hide:{animations:{colors:{to:"transparent"},visible:{type:"boolean",easing:"linear",fn:n=>n|0}}}})}function Gne(t){t.set("layout",{autoPadding:!0,padding:{top:0,right:0,bottom:0,left:0}})}var Dj=new Map;function qne(t,n){n=n||{};let e=t+JSON.stringify(n),i=Dj.get(e);return i||(i=new Intl.NumberFormat(t,n),Dj.set(e,i)),i}function $h(t,n,e){return qne(n,e).format(t)}var Uj={values(t){return Ri(t)?t:""+t},numeric(t,n,e){if(t===0)return"0";let i=this.chart.options.locale,r,o=t;if(e.length>1){let c=Math.max(Math.abs(e[0].value),Math.abs(e[e.length-1].value));(c<1e-4||c>1e15)&&(r="scientific"),o=Yne(t,e)}let a=Rl(Math.abs(o)),s=isNaN(a)?1:Math.max(Math.min(-1*Math.floor(a),20),0),l={notation:r,minimumFractionDigits:s,maximumFractionDigits:s};return Object.assign(l,this.options.ticks.format),$h(t,i,l)},logarithmic(t,n,e){if(t===0)return"0";let i=e[n].significand||t/Math.pow(10,Math.floor(Rl(t)));return[1,2,3,5,10,15].includes(i)||n>.8*e.length?Uj.numeric.call(this,t,n,e):""}};function Yne(t,n){let e=n.length>3?n[2].value-n[1].value:n[1].value-n[0].value;return Math.abs(e)>=1&&t!==Math.floor(t)&&(e=t-Math.floor(t)),e}var Wg={formatters:Uj};function Qne(t){t.set("scale",{display:!0,offset:!1,reverse:!1,beginAtZero:!1,bounds:"ticks",clip:!0,grace:0,grid:{display:!0,lineWidth:1,drawOnChartArea:!0,drawTicks:!0,tickLength:8,tickWidth:(n,e)=>e.lineWidth,tickColor:(n,e)=>e.color,offset:!1},border:{display:!0,dash:[],dashOffset:0,width:1},title:{display:!1,text:"",padding:{top:4,bottom:4}},ticks:{minRotation:0,maxRotation:50,mirror:!1,textStrokeWidth:0,textStrokeColor:"",padding:3,display:!0,autoSkip:!0,autoSkipPadding:3,labelOffset:0,callback:Wg.formatters.values,minor:{},major:{},align:"center",crossAlign:"near",showLabelBackdrop:!1,backdropColor:"rgba(255, 255, 255, 0.75)",backdropPadding:2}}),t.route("scale.ticks","color","","color"),t.route("scale.grid","color","","borderColor"),t.route("scale.border","color","","borderColor"),t.route("scale.title","color","","color"),t.describe("scale",{_fallback:!1,_scriptable:n=>!n.startsWith("before")&&!n.startsWith("after")&&n!=="callback"&&n!=="parser",_indexable:n=>n!=="borderDash"&&n!=="tickBorderDash"&&n!=="dash"}),t.describe("scales",{_fallback:"scale"}),t.describe("scale.ticks",{_scriptable:n=>n!=="backdropPadding"&&n!=="callback",_indexable:n=>n!=="backdropPadding"})}var $c=Object.create(null),Xx=Object.create(null);function zg(t,n){if(!n)return t;let e=n.split(".");for(let i=0,r=e.length;ii.chart.platform.getDevicePixelRatio(),this.elements={},this.events=["mousemove","mouseout","click","touchstart","touchmove"],this.font={family:"'Helvetica Neue', 'Helvetica', 'Arial', sans-serif",size:12,style:"normal",lineHeight:1.2,weight:null},this.hover={},this.hoverBackgroundColor=(i,r)=>Xk(r.backgroundColor),this.hoverBorderColor=(i,r)=>Xk(r.borderColor),this.hoverColor=(i,r)=>Xk(r.color),this.indexAxis="x",this.interaction={mode:"nearest",intersect:!0,includeInvisible:!1},this.maintainAspectRatio=!0,this.onHover=null,this.onClick=null,this.parsing=!0,this.plugins={},this.responsive=!0,this.scale=void 0,this.scales={},this.showLine=!0,this.drawActiveElementsOnTop=!0,this.describe(n),this.apply(e)}set(n,e){return Jk(this,n,e)}get(n){return zg(this,n)}describe(n,e){return Jk(Xx,n,e)}override(n,e){return Jk($c,n,e)}route(n,e,i,r){let o=zg(this,n),a=zg(this,i),s="_"+e;Object.defineProperties(o,{[s]:{value:o[e],writable:!0},[e]:{enumerable:!0,get(){let l=this[s],c=a[r];return jt(l)?Object.assign({},c,l):ut(l,c)},set(l){this[s]=l}}})}apply(n){n.forEach(e=>e(this))}},Ti=new eT({_scriptable:t=>!t.startsWith("on"),_indexable:t=>t!=="events",hover:{_fallback:"interaction"},interaction:{_scriptable:!1,_indexable:!1}},[Wne,Gne,Qne]);function Kne(t){return!t||Nt(t.size)||Nt(t.family)?null:(t.style?t.style+" ":"")+(t.weight?t.weight+" ":"")+t.size+"px "+t.family}function Ug(t,n,e,i,r){let o=n[r];return o||(o=n[r]=t.measureText(r).width,e.push(r)),o>i&&(i=o),i}function $j(t,n,e,i){i=i||{};let r=i.data=i.data||{},o=i.garbageCollect=i.garbageCollect||[];i.font!==n&&(r=i.data={},o=i.garbageCollect=[],i.font=n),t.save(),t.font=n;let a=0,s=e.length,l,c,d,p,_;for(l=0;le.length){for(l=0;l0&&t.stroke()}}function Ws(t,n,e){return e=e||.5,!n||t&&t.x>n.left-e&&t.xn.top-e&&t.y0&&o.strokeColor!=="",l,c;for(t.save(),t.font=r.string,Zne(t,o),l=0;l+t||0;function eC(t,n){let e={},i=jt(n),r=i?Object.keys(n):n,o=jt(t)?i?a=>ut(t[a],t[n[a]]):a=>t[a]:()=>t;for(let a of r)e[a]=nre(o(a));return e}function _T(t){return eC(t,{top:"y",right:"x",bottom:"y",left:"x"})}function qc(t){return eC(t,["topLeft","topRight","bottomLeft","bottomRight"])}function gr(t){let n=_T(t);return n.width=n.left+n.right,n.height=n.top+n.bottom,n}function vn(t,n){t=t||{},n=n||Ti.font;let e=ut(t.size,n.size);typeof e=="string"&&(e=parseInt(e,10));let i=ut(t.style,n.style);i&&!(""+i).match(tre)&&(console.warn('Invalid font style specified: "'+i+'"'),i=void 0);let r={family:ut(t.family,n.family),lineHeight:ire(ut(t.lineHeight,n.lineHeight),e),size:e,style:i,weight:ut(t.weight,n.weight),string:""};return r.string=Kne(r),r}function Gh(t,n,e,i){let r=!0,o,a,s;for(o=0,a=t.length;oe&&s===0?0:s+l;return{min:a(i,-Math.abs(o)),max:a(r,o)}}function Fl(t,n){return Object.assign(Object.create(t),n)}function tC(t,n=[""],e,i,r=()=>t[0]){let o=e||t;typeof i>"u"&&(i=Kj("_fallback",t));let a={[Symbol.toStringTag]:"Object",_cacheable:!0,_scopes:t,_rootScopes:o,_fallback:i,_getTarget:r,override:s=>tC([s,...t],n,o,i)};return new Proxy(a,{deleteProperty(s,l){return delete s[l],delete s._keys,delete t[0][l],!0},get(s,l){return Yj(s,l,()=>ure(l,n,t,s))},getOwnPropertyDescriptor(s,l){return Reflect.getOwnPropertyDescriptor(s._scopes[0],l)},getPrototypeOf(){return Reflect.getPrototypeOf(t[0])},has(s,l){return Ej(s).includes(l)},ownKeys(s){return Ej(s)},set(s,l,c){let d=s._storage||(s._storage=r());return s[l]=d[l]=c,delete s._keys,!0}})}function Eu(t,n,e,i){let r={_cacheable:!1,_proxy:t,_context:n,_subProxy:e,_stack:new Set,_descriptors:bT(t,i),setContext:o=>Eu(t,o,e,i),override:o=>Eu(t.override(o),n,e,i)};return new Proxy(r,{deleteProperty(o,a){return delete o[a],delete t[a],!0},get(o,a,s){return Yj(o,a,()=>ore(o,a,s))},getOwnPropertyDescriptor(o,a){return o._descriptors.allKeys?Reflect.has(t,a)?{enumerable:!0,configurable:!0}:void 0:Reflect.getOwnPropertyDescriptor(t,a)},getPrototypeOf(){return Reflect.getPrototypeOf(t)},has(o,a){return Reflect.has(t,a)},ownKeys(){return Reflect.ownKeys(t)},set(o,a,s){return t[a]=s,delete o[a],!0}})}function bT(t,n={scriptable:!0,indexable:!0}){let{_scriptable:e=n.scriptable,_indexable:i=n.indexable,_allKeys:r=n.allKeys}=t;return{allKeys:r,scriptable:e,indexable:i,isScriptable:Ol(e)?e:()=>e,isIndexable:Ol(i)?i:()=>i}}var rre=(t,n)=>t?t+Yx(n):n,vT=(t,n)=>jt(n)&&t!=="adapters"&&(Object.getPrototypeOf(n)===null||n.constructor===Object);function Yj(t,n,e){if(Object.prototype.hasOwnProperty.call(t,n)||n==="constructor")return t[n];let i=e();return t[n]=i,i}function ore(t,n,e){let{_proxy:i,_context:r,_subProxy:o,_descriptors:a}=t,s=i[n];return Ol(s)&&a.isScriptable(n)&&(s=are(n,s,t,e)),Ri(s)&&s.length&&(s=sre(n,s,t,a.isIndexable)),vT(n,s)&&(s=Eu(s,r,o&&o[n],a)),s}function are(t,n,e,i){let{_proxy:r,_context:o,_subProxy:a,_stack:s}=e;if(s.has(t))throw new Error("Recursion detected: "+Array.from(s).join("->")+"->"+t);s.add(t);let l=n(o,a||i);return s.delete(t),vT(t,l)&&(l=yT(r._scopes,r,t,l)),l}function sre(t,n,e,i){let{_proxy:r,_context:o,_subProxy:a,_descriptors:s}=e;if(typeof o.index<"u"&&i(t))return n[o.index%n.length];if(jt(n[0])){let l=n,c=r._scopes.filter(d=>d!==l);n=[];for(let d of l){let p=yT(c,r,t,d);n.push(Eu(p,o,a&&a[t],s))}}return n}function Qj(t,n,e){return Ol(t)?t(n,e):t}var lre=(t,n)=>t===!0?n:typeof t=="string"?Pl(n,t):void 0;function cre(t,n,e,i,r){for(let o of n){let a=lre(e,o);if(a){t.add(a);let s=Qj(a._fallback,e,r);if(typeof s<"u"&&s!==e&&s!==i)return s}else if(a===!1&&typeof i<"u"&&e!==i)return null}return!1}function yT(t,n,e,i){let r=n._rootScopes,o=Qj(n._fallback,e,i),a=[...t,...r],s=new Set;s.add(i);let l=Mj(s,a,e,o||e,i);return l===null||typeof o<"u"&&o!==e&&(l=Mj(s,a,o,l,i),l===null)?!1:tC(Array.from(s),[""],r,o,()=>dre(n,e,i))}function Mj(t,n,e,i,r){for(;e;)e=cre(t,n,e,i,r);return e}function dre(t,n,e){let i=t._getTarget();n in i||(i[n]={});let r=i[n];return Ri(r)&&jt(e)?e:r||{}}function ure(t,n,e,i){let r;for(let o of n)if(r=Kj(rre(o,t),e),typeof r<"u")return vT(t,r)?yT(e,i,t,r):r}function Kj(t,n){for(let e of n){if(!e)continue;let i=e[t];if(typeof i<"u")return i}}function Ej(t){let n=t._keys;return n||(n=t._keys=mre(t._scopes)),n}function mre(t){let n=new Set;for(let e of t)for(let i of Object.keys(e).filter(r=>!r.startsWith("_")))n.add(i);return Array.from(n)}function xT(t,n,e,i){let{iScale:r}=t,{key:o="r"}=this._parsing,a=new Array(i),s,l,c,d;for(s=0,l=i;snt==="x"?"y":"x";function pre(t,n,e,i){let r=t.skip?n:t,o=n,a=e.skip?n:e,s=Gx(o,r),l=Gx(a,o),c=s/(s+l),d=l/(s+l);c=isNaN(c)?0:c,d=isNaN(d)?0:d;let p=i*c,_=i*d;return{previous:{x:o.x-p*(a.x-r.x),y:o.y-p*(a.y-r.y)},next:{x:o.x+_*(a.x-r.x),y:o.y+_*(a.y-r.y)}}}function fre(t,n,e){let i=t.length,r,o,a,s,l,c=Bh(t,0);for(let d=0;d!c.skip)),n.cubicInterpolationMode==="monotone")_re(t,r);else{let c=i?t[t.length-1]:t[0];for(o=0,a=t.length;ot.ownerDocument.defaultView.getComputedStyle(t,null);function vre(t,n){return rC(t).getPropertyValue(n)}var yre=["top","right","bottom","left"];function Mu(t,n,e){let i={};e=e?"-"+e:"";for(let r=0;r<4;r++){let o=yre[r];i[o]=parseFloat(t[n+"-"+o+e])||0}return i.width=i.left+i.right,i.height=i.top+i.bottom,i}var xre=(t,n,e)=>(t>0||n>0)&&(!e||!e.shadowRoot);function Cre(t,n){let e=t.touches,i=e&&e.length?e[0]:t,{offsetX:r,offsetY:o}=i,a=!1,s,l;if(xre(r,o,t.target))s=r,l=o;else{let c=n.getBoundingClientRect();s=i.clientX-c.left,l=i.clientY-c.top,a=!0}return{x:s,y:l,box:a}}function Yc(t,n){if("native"in t)return t;let{canvas:e,currentDevicePixelRatio:i}=n,r=rC(e),o=r.boxSizing==="border-box",a=Mu(r,"padding"),s=Mu(r,"border","width"),{x:l,y:c,box:d}=Cre(t,e),p=a.left+(d&&s.left),_=a.top+(d&&s.top),{width:b,height:y}=n;return o&&(b-=a.width+s.width,y-=a.height+s.height),{x:Math.round((l-p)/b*e.width/i),y:Math.round((c-_)/y*e.height/i)}}function wre(t,n,e){let i,r;if(n===void 0||e===void 0){let o=t&&nC(t);if(!o)n=t.clientWidth,e=t.clientHeight;else{let a=o.getBoundingClientRect(),s=rC(o),l=Mu(s,"border","width"),c=Mu(s,"padding");n=a.width-c.width-l.width,e=a.height-c.height-l.height,i=qx(s.maxWidth,o,"clientWidth"),r=qx(s.maxHeight,o,"clientHeight")}}return{width:n,height:e,maxWidth:i||Wx,maxHeight:r||Wx}}var Uc=t=>Math.round(t*10)/10;function Jj(t,n,e,i){let r=rC(t),o=Mu(r,"margin"),a=qx(r.maxWidth,t,"clientWidth")||Wx,s=qx(r.maxHeight,t,"clientHeight")||Wx,l=wre(t,n,e),{width:c,height:d}=l;if(r.boxSizing==="content-box"){let _=Mu(r,"border","width"),b=Mu(r,"padding");c-=b.width+_.width,d-=b.height+_.height}return c=Math.max(0,c-o.width),d=Math.max(0,i?c/i:d-o.height),c=Uc(Math.min(c,a,l.maxWidth)),d=Uc(Math.min(d,s,l.maxHeight)),c&&!d&&(d=Uc(c/2)),(n!==void 0||e!==void 0)&&i&&l.height&&d>l.height&&(d=l.height,c=Uc(Math.floor(d*i))),{width:c,height:d}}function CT(t,n,e){let i=n||1,r=Uc(t.height*i),o=Uc(t.width*i);t.height=Uc(t.height),t.width=Uc(t.width);let a=t.canvas;return a.style&&(e||!a.style.height&&!a.style.width)&&(a.style.height=`${t.height}px`,a.style.width=`${t.width}px`),t.currentDevicePixelRatio!==i||a.height!==r||a.width!==o?(t.currentDevicePixelRatio=i,a.height=r,a.width=o,t.ctx.setTransform(i,0,0,i,0,0),!0):!1}var e4=(function(){let t=!1;try{let n={get passive(){return t=!0,!1}};iC()&&(window.addEventListener("test",null,n),window.removeEventListener("test",null,n))}catch{}return t})();function wT(t,n){let e=vre(t,n),i=e&&e.match(/^(\d+)(\.\d+)?px$/);return i?+i[1]:void 0}function zc(t,n,e,i){return{x:t.x+e*(n.x-t.x),y:t.y+e*(n.y-t.y)}}function t4(t,n,e,i){return{x:t.x+e*(n.x-t.x),y:i==="middle"?e<.5?t.y:n.y:i==="after"?e<1?t.y:n.y:e>0?n.y:t.y}}function i4(t,n,e,i){let r={x:t.cp2x,y:t.cp2y},o={x:n.cp1x,y:n.cp1y},a=zc(t,r,e),s=zc(r,o,e),l=zc(o,n,e),c=zc(a,s,e),d=zc(s,l,e);return zc(c,d,e)}var Dre=function(t,n){return{x(e){return t+t+n-e},setWidth(e){n=e},textAlign(e){return e==="center"?e:e==="right"?"left":"right"},xPlus(e,i){return e-i},leftForLtr(e,i){return e-i}}},Mre=function(){return{x(t){return t},setWidth(t){},textAlign(t){return t},xPlus(t,n){return t+n},leftForLtr(t,n){return t}}};function ku(t,n,e){return t?Dre(n,e):Mre()}function DT(t,n){let e,i;(n==="ltr"||n==="rtl")&&(e=t.canvas.style,i=[e.getPropertyValue("direction"),e.getPropertyPriority("direction")],e.setProperty("direction",n,"important"),t.prevTextDirection=i)}function MT(t,n){n!==void 0&&(delete t.prevTextDirection,t.canvas.style.setProperty("direction",n[0],n[1]))}function n4(t){return t==="angle"?{between:Uh,compare:zne,normalize:pr}:{between:qs,compare:(n,e)=>n-e,normalize:n=>n}}function Sj({start:t,end:n,count:e,loop:i,style:r}){return{start:t%e,end:n%e,loop:i&&(n-t+1)%e===0,style:r}}function Ere(t,n,e){let{property:i,start:r,end:o}=e,{between:a,normalize:s}=n4(i),l=n.length,{start:c,end:d,loop:p}=t,_,b;if(p){for(c+=l,d+=l,_=0,b=l;_l(r,W,D)&&s(r,W)!==0,K=()=>s(o,D)===0||l(o,W,D),oe=()=>w||Z(),Se=()=>!w||K();for(let ve=d,Be=d;ve<=p;++ve)F=n[ve%a],!F.skip&&(D=c(F[i]),D!==W&&(w=l(D,r,o),C===null&&oe()&&(C=s(D,r)===0?ve:Be),C!==null&&Se()&&(y.push(Sj({start:C,end:ve,loop:_,count:a,style:b})),C=null),Be=ve,W=D));return C!==null&&y.push(Sj({start:C,end:p,loop:_,count:a,style:b})),y}function ST(t,n){let e=[],i=t.segments;for(let r=0;rr&&t[o%n].skip;)o--;return o%=n,{start:r,end:o}}function kre(t,n,e,i){let r=t.length,o=[],a=n,s=t[n],l;for(l=n+1;l<=e;++l){let c=t[l%r];c.skip||c.stop?s.skip||(i=!1,o.push({start:n%r,end:(l-1)%r,loop:i}),n=a=c.stop?l:null):(a=l,s.skip&&(n=l)),s=c}return a!==null&&o.push({start:n%r,end:a%r,loop:i}),o}function r4(t,n){let e=t.points,i=t.options.spanGaps,r=e.length;if(!r)return[];let o=!!t._loop,{start:a,end:s}=Sre(e,r,o,i);if(i===!0)return kj(t,[{start:a,end:s,loop:o}],e,n);let l=ss({chart:n,initial:e.initial,numSteps:a,currentStep:Math.min(i-e.start,a)}))}_refresh(){this._request||(this._running=!0,this._request=cT.call(window,()=>{this._update(),this._request=null,this._running&&this._refresh()}))}_update(n=Date.now()){let e=0;this._charts.forEach((i,r)=>{if(!i.running||!i.items.length)return;let o=i.items,a=o.length-1,s=!1,l;for(;a>=0;--a)l=o[a],l._active?(l._total>i.duration&&(i.duration=l._total),l.tick(n),s=!0):(o[a]=o[o.length-1],o.pop());s&&(r.draw(),this._notify(r,i,n,"progress")),o.length||(i.running=!1,this._notify(r,i,n,"complete"),i.initial=!1),e+=o.length}),this._lastDate=n,e===0&&(this._running=!1)}_getAnims(n){let e=this._charts,i=e.get(n);return i||(i={running:!1,initial:!0,items:[],listeners:{complete:[],progress:[]}},e.set(n,i)),i}listen(n,e,i){this._getAnims(n).listeners[e].push(i)}add(n,e){!e||!e.length||this._getAnims(n).items.push(...e)}has(n){return this._getAnims(n).items.length>0}start(n){let e=this._charts.get(n);e&&(e.running=!0,e.start=Date.now(),e.duration=e.items.reduce((i,r)=>Math.max(i,r._duration),0),this._refresh())}running(n){if(!this._running)return!1;let e=this._charts.get(n);return!(!e||!e.running||!e.items.length)}stop(n){let e=this._charts.get(n);if(!e||!e.items.length)return;let i=e.items,r=i.length-1;for(;r>=0;--r)i[r].cancel();e.items=[],this._notify(n,e,Date.now(),"complete")}remove(n){return this._charts.delete(n)}},Nl=new jT,o4="transparent",Ore={boolean(t,n,e){return e>.5?n:t},color(t,n,e){let i=pT(t||o4),r=i.valid&&pT(n||o4);return r&&r.valid?r.mix(i,e).hexString():n},number(t,n,e){return t+(n-t)*e}},HT=class{constructor(n,e,i,r){let o=e[i];r=Gh([n.to,r,o,n.from]);let a=Gh([n.from,o,r]);this._active=!0,this._fn=n.fn||Ore[n.type||typeof a],this._easing=Lh[n.easing]||Lh.linear,this._start=Math.floor(Date.now()+(n.delay||0)),this._duration=this._total=Math.floor(n.duration),this._loop=!!n.loop,this._target=e,this._prop=i,this._from=a,this._to=r,this._promises=void 0}active(){return this._active}update(n,e,i){if(this._active){this._notify(!1);let r=this._target[this._prop],o=i-this._start,a=this._duration-o;this._start=i,this._duration=Math.floor(Math.max(a,n.duration)),this._total+=o,this._loop=!!n.loop,this._to=Gh([n.to,e,r,n.from]),this._from=Gh([n.from,r,e])}}cancel(){this._active&&(this.tick(Date.now()),this._active=!1,this._notify(!1))}tick(n){let e=n-this._start,i=this._duration,r=this._prop,o=this._from,a=this._loop,s=this._to,l;if(this._active=o!==s&&(a||e1?2-l:l,l=this._easing(Math.min(1,Math.max(0,l))),this._target[r]=this._fn(o,s,l)}wait(){let n=this._promises||(this._promises=[]);return new Promise((e,i)=>{n.push({res:e,rej:i})})}_notify(n){let e=n?"res":"rej",i=this._promises||[];for(let r=0;r{let o=n[r];if(!jt(o))return;let a={};for(let s of e)a[s]=o[s];(Ri(o.properties)&&o.properties||[r]).forEach(s=>{(s===r||!i.has(s))&&i.set(s,a)})})}_animateOptions(n,e){let i=e.options,r=Pre(n,i);if(!r)return[];let o=this._createAnimations(r,i);return i.$shared&&Rre(n.options.$animations,i).then(()=>{n.options=i},()=>{}),o}_createAnimations(n,e){let i=this._properties,r=[],o=n.$animations||(n.$animations={}),a=Object.keys(e),s=Date.now(),l;for(l=a.length-1;l>=0;--l){let c=a[l];if(c.charAt(0)==="$")continue;if(c==="options"){r.push(...this._animateOptions(n,e));continue}let d=e[c],p=o[c],_=i.get(c);if(p)if(_&&p.active()){p.update(_,d,s);continue}else p.cancel();if(!_||!_.duration){n[c]=d;continue}o[c]=p=new HT(_,n,c,d),r.push(p)}return r}update(n,e){if(this._properties.size===0){Object.assign(n,e);return}let i=this._createAnimations(n,e);if(i.length)return Nl.add(this._chart,i),!0}};function Rre(t,n){let e=[],i=Object.keys(n);for(let r=0;r0||!e&&o<0)return r.index}return null}function c4(t,n){let{chart:e,_cachedMeta:i}=t,r=e._stacks||(e._stacks={}),{iScale:o,vScale:a,index:s}=i,l=o.axis,c=a.axis,d=Vre(o,a,i),p=n.length,_;for(let b=0;be[i].axis===n).shift()}function Hre(t,n){return Fl(t,{active:!1,dataset:void 0,datasetIndex:n,index:n,mode:"default",type:"dataset"})}function zre(t,n,e){return Fl(t,{active:!1,dataIndex:n,parsed:void 0,raw:void 0,element:e,index:n,mode:"default",type:"data"})}function Yg(t,n){let e=t.controller.index,i=t.vScale&&t.vScale.axis;if(i){n=n||t._parsed;for(let r of n){let o=r._stacks;if(!o||o[i]===void 0||o[i][e]===void 0)return;delete o[i][e],o[i]._visualValues!==void 0&&o[i]._visualValues[e]!==void 0&&delete o[i]._visualValues[e]}}}var AT=t=>t==="reset"||t==="none",d4=(t,n)=>n?t:Object.assign({},t),Ure=(t,n,e)=>t&&!n.hidden&&n._stacked&&{keys:oH(e,!0),values:null},Kc=(()=>{class t{static defaults={};static datasetElementType=null;static dataElementType=null;constructor(e,i){this.chart=e,this._ctx=e.ctx,this.index=i,this._cachedDataOpts={},this._cachedMeta=this.getMeta(),this._type=this._cachedMeta.type,this.options=void 0,this._parsing=!1,this._data=void 0,this._objectData=void 0,this._sharedOptions=void 0,this._drawStart=void 0,this._drawCount=void 0,this.enableOptionSharing=!1,this.supportsDecimation=!1,this.$context=void 0,this._syncList=[],this.datasetElementType=new.target.datasetElementType,this.dataElementType=new.target.dataElementType,this.initialize()}initialize(){let e=this._cachedMeta;this.configure(),this.linkScales(),e._stacked=TT(e.vScale,e),this.addElements(),this.options.fill&&!this.chart.isPluginEnabled("filler")&&console.warn("Tried to use the 'fill' option without the 'Filler' plugin enabled. Please import and register the 'Filler' plugin and make sure it is not disabled in the options")}updateIndex(e){this.index!==e&&Yg(this._cachedMeta),this.index=e}linkScales(){let e=this.chart,i=this._cachedMeta,r=this.getDataset(),o=(_,b,y,w)=>_==="x"?b:_==="r"?w:y,a=i.xAxisID=ut(r.xAxisID,IT(e,"x")),s=i.yAxisID=ut(r.yAxisID,IT(e,"y")),l=i.rAxisID=ut(r.rAxisID,IT(e,"r")),c=i.indexAxis,d=i.iAxisID=o(c,a,s,l),p=i.vAxisID=o(c,s,a,l);i.xScale=this.getScaleForId(a),i.yScale=this.getScaleForId(s),i.rScale=this.getScaleForId(l),i.iScale=this.getScaleForId(d),i.vScale=this.getScaleForId(p)}getDataset(){return this.chart.data.datasets[this.index]}getMeta(){return this.chart.getDatasetMeta(this.index)}getScaleForId(e){return this.chart.scales[e]}_getOtherScale(e){let i=this._cachedMeta;return e===i.iScale?i.vScale:i.iScale}reset(){this._update("reset")}_destroy(){let e=this._cachedMeta;this._data&&sT(this._data,this),e._stacked&&Yg(e)}_dataCheck(){let e=this.getDataset(),i=e.data||(e.data=[]),r=this._data;if(jt(i)){let o=this._cachedMeta;this._data=Lre(i,o)}else if(r!==i){if(r){sT(r,this);let o=this._cachedMeta;Yg(o),o._parsed=[]}i&&Object.isExtensible(i)&&jj(i,this),this._syncList=[],this._data=i}}addElements(){let e=this._cachedMeta;this._dataCheck(),this.datasetElementType&&(e.dataset=new this.datasetElementType)}buildOrUpdateElements(e){let i=this._cachedMeta,r=this.getDataset(),o=!1;this._dataCheck();let a=i._stacked;i._stacked=TT(i.vScale,i),i.stack!==r.stack&&(o=!0,Yg(i),i.stack=r.stack),this._resyncElements(e),(o||a!==i._stacked)&&(c4(this,i._parsed),i._stacked=TT(i.vScale,i))}configure(){let e=this.chart.config,i=e.datasetScopeKeys(this._type),r=e.getOptionScopes(this.getDataset(),i,!0);this.options=e.createResolver(r,this.getContext()),this._parsing=this.options.parsing,this._cachedDataOpts={}}parse(e,i){let{_cachedMeta:r,_data:o}=this,{iScale:a,_stacked:s}=r,l=a.axis,c=e===0&&i===o.length?!0:r._sorted,d=e>0&&r._parsed[e-1],p,_,b;if(this._parsing===!1)r._parsed=o,r._sorted=!0,b=o;else{Ri(o[e])?b=this.parseArrayData(r,o,e,i):jt(o[e])?b=this.parseObjectData(r,o,e,i):b=this.parsePrimitiveData(r,o,e,i);let y=()=>_[l]===null||d&&_[l]C||_=0;--b)if(!w()){this.updateRangeFromParsed(d,e,y,c);break}}return d}getAllParsedValues(e){let i=this._cachedMeta._parsed,r=[],o,a,s;for(o=0,a=i.length;o=0&&ethis.getContext(r,o,i),C=d.resolveNamedOptions(b,y,w,_);return C.$shared&&(C.$shared=c,a[s]=Object.freeze(d4(C,c))),C}_resolveAnimations(e,i,r){let o=this.chart,a=this._cachedDataOpts,s=`animation-${i}`,l=a[s];if(l)return l;let c;if(o.options.animation!==!1){let p=this.chart.config,_=p.datasetAnimationScopeKeys(this._type,i),b=p.getOptionScopes(this.getDataset(),_);c=p.createResolver(b,this.getContext(e,r,i))}let d=new hC(o,c&&c.animations);return c&&c._cacheable&&(a[s]=Object.freeze(d)),d}getSharedOptions(e){if(e.$shared)return this._sharedOptions||(this._sharedOptions=Object.assign({},e))}includeOptions(e,i){return!i||AT(e)||this.chart._animationsDisabled}_getSharedOptions(e,i){let r=this.resolveDataElementOptions(e,i),o=this._sharedOptions,a=this.getSharedOptions(r),s=this.includeOptions(i,a)||a!==o;return this.updateSharedOptions(a,i,r),{sharedOptions:a,includeOptions:s}}updateElement(e,i,r,o){AT(o)?Object.assign(e,r):this._resolveAnimations(i,o).update(e,r)}updateSharedOptions(e,i,r){e&&!AT(i)&&this._resolveAnimations(void 0,i).update(e,r)}_setStyle(e,i,r,o){e.active=o;let a=this.getStyle(i,o);this._resolveAnimations(i,r,o).update(e,{options:!o&&this.getSharedOptions(a)||a})}removeHoverStyle(e,i,r){this._setStyle(e,r,"active",!1)}setHoverStyle(e,i,r){this._setStyle(e,r,"active",!0)}_removeDatasetHoverStyle(){let e=this._cachedMeta.dataset;e&&this._setStyle(e,void 0,"active",!1)}_setDatasetHoverStyle(){let e=this._cachedMeta.dataset;e&&this._setStyle(e,void 0,"active",!0)}_resyncElements(e){let i=this._data,r=this._cachedMeta.data;for(let[l,c,d]of this._syncList)this[l](c,d);this._syncList=[];let o=r.length,a=i.length,s=Math.min(a,o);s&&this.parse(0,s),a>o?this._insertElements(o,a-o,e):a{for(d.length+=i,l=d.length-1;l>=s;l--)d[l]=d[l-i]};for(c(a),l=e;lr-o))}return t._cache.$bar}function Wre(t){let n=t.iScale,e=$re(n,t.type),i=n._length,r,o,a,s,l=()=>{a===32767||a===-32768||(Hh(s)&&(i=Math.min(i,Math.abs(a-s)||i)),s=a)};for(r=0,o=e.length;r0?r[t-1]:null,s=tMath.abs(s)&&(l=s,c=a),n[e.axis]=c,n._custom={barStart:l,barEnd:c,start:r,end:o,min:a,max:s}}function aH(t,n,e,i){return Ri(t)?Yre(t,n,e,i):n[e.axis]=e.parse(t,i),n}function u4(t,n,e,i){let r=t.iScale,o=t.vScale,a=r.getLabels(),s=r===o,l=[],c,d,p,_;for(c=e,d=e+i;c=e?1:-1)}function Kre(t){let n,e,i,r,o;return t.horizontal?(n=t.base>t.x,e="left",i="right"):(n=t.base{class t extends Kc{static id="bar";static defaults={datasetElementType:!1,dataElementType:"bar",categoryPercentage:.8,barPercentage:.9,grouped:!0,animations:{numbers:{type:"number",properties:["x","y","base","width","height"]}}};static overrides={scales:{_index_:{type:"category",offset:!0,grid:{offset:!0}},_value_:{type:"linear",beginAtZero:!0}}};parsePrimitiveData(e,i,r,o){return u4(e,i,r,o)}parseArrayData(e,i,r,o){return u4(e,i,r,o)}parseObjectData(e,i,r,o){let{iScale:a,vScale:s}=e,{xAxisKey:l="x",yAxisKey:c="y"}=this._parsing,d=a.axis==="x"?l:c,p=s.axis==="x"?l:c,_=[],b,y,w,C;for(b=r,y=r+o;bp.controller.options.grouped),a=r.options.stacked,s=[],l=this._cachedMeta.controller.getParsed(i),c=l&&l[r.axis],d=p=>{let _=p._parsed.find(y=>y[r.axis]===c),b=_&&_[p.vScale.axis];if(Nt(b)||isNaN(b))return!0};for(let p of o)if(!(i!==void 0&&d(p))&&((a===!1||s.indexOf(p.stack)===-1||a===void 0&&p.stack===void 0)&&s.push(p.stack),p.index===e))break;return s.length||s.push(void 0),s}_getStackCount(e){return this._getStacks(void 0,e).length}_getAxisCount(){return this._getAxis().length}getFirstScaleIdForIndexAxis(){let e=this.chart.scales,i=this.chart.options.indexAxis;return Object.keys(e).filter(r=>e[r].axis===i).shift()}_getAxis(){let e={},i=this.getFirstScaleIdForIndexAxis();for(let r of this.chart.data.datasets)e[ut(this.chart.options.indexAxis==="x"?r.xAxisID:r.yAxisID,i)]=!0;return Object.keys(e)}_getStackIndex(e,i,r){let o=this._getStacks(e,r),a=i!==void 0?o.indexOf(i):-1;return a===-1?o.length-1:a}_getRuler(){let e=this.options,i=this._cachedMeta,r=i.iScale,o=[],a,s;for(a=0,s=i.data.length;a{class t extends Kc{static id="bubble";static defaults={datasetElementType:!1,dataElementType:"point",animations:{numbers:{type:"number",properties:["x","y","borderWidth","radius"]}}};static overrides={scales:{x:{type:"linear"},y:{type:"linear"}}};initialize(){this.enableOptionSharing=!0,super.initialize()}parsePrimitiveData(e,i,r,o){let a=super.parsePrimitiveData(e,i,r,o);for(let s=0;s=0;--r)i=Math.max(i,e[r].size(this.resolveDataElementOptions(r))/2);return i>0&&i}getLabelAndValue(e){let i=this._cachedMeta,r=this.chart.data.labels||[],{xScale:o,yScale:a}=i,s=this.getParsed(e),l=o.getLabelForValue(s.x),c=a.getLabelForValue(s.y),d=s._custom;return{label:r[e]||"",value:"("+l+", "+c+(d?", "+d:"")+")"}}update(e){let i=this._cachedMeta.data;this.updateElements(i,0,i.length,e)}updateElements(e,i,r,o){let a=o==="reset",{iScale:s,vScale:l}=this._cachedMeta,{sharedOptions:c,includeOptions:d}=this._getSharedOptions(i,o),p=s.axis,_=l.axis;for(let b=i;bUh(W,s,l,!0)?1:Math.max(Z,Z*e,K,K*e),y=(W,Z,K)=>Uh(W,s,l,!0)?-1:Math.min(Z,Z*e,K,K*e),w=b(0,c,p),C=b(rn,d,_),D=y(Jt,c,p),F=y(Jt+rn,d,_);i=(w-D)/2,r=(C-F)/2,o=-(w+D)/2,a=-(C+F)/2}return{ratioX:i,ratioY:r,offsetX:o,offsetY:a}}var sI=(()=>{class t extends Kc{static id="doughnut";static defaults={datasetElementType:!1,dataElementType:"arc",animation:{animateRotate:!0,animateScale:!1},animations:{numbers:{type:"number",properties:["circumference","endAngle","innerRadius","outerRadius","startAngle","x","y","offset","borderWidth","spacing"]}},cutout:"50%",rotation:0,circumference:360,radius:"100%",spacing:0,indexAxis:"r"};static descriptors={_scriptable:e=>e!=="spacing",_indexable:e=>e!=="spacing"&&!e.startsWith("borderDash")&&!e.startsWith("hoverBorderDash")};static overrides={aspectRatio:1,plugins:{legend:{labels:{generateLabels(e){let i=e.data,{labels:{pointStyle:r,textAlign:o,color:a,useBorderRadius:s,borderRadius:l}}=e.legend.options;return i.labels.length&&i.datasets.length?i.labels.map((c,d)=>{let _=e.getDatasetMeta(0).controller.getStyle(d);return{text:c,fillStyle:_.backgroundColor,fontColor:a,hidden:!e.getDataVisibility(d),lineDash:_.borderDash,lineDashOffset:_.borderDashOffset,lineJoin:_.borderJoinStyle,lineWidth:_.borderWidth,strokeStyle:_.borderColor,textAlign:o,pointStyle:r,borderRadius:s&&(l||_.borderRadius),index:d}}):[]}},onClick(e,i,r){r.chart.toggleDataVisibility(i.index),r.chart.update()}}}};constructor(e,i){super(e,i),this.enableOptionSharing=!0,this.innerRadius=void 0,this.outerRadius=void 0,this.offsetX=void 0,this.offsetY=void 0}linkScales(){}parse(e,i){let r=this.getDataset().data,o=this._cachedMeta;if(this._parsing===!1)o._parsed=r;else{let a=c=>+r[c];if(jt(r[e])){let{key:c="value"}=this._parsing;a=d=>+Pl(r[d],c)}let s,l;for(s=e,l=e+i;s0&&!isNaN(e)?Pi*(Math.abs(e)/i):0}getLabelAndValue(e){let i=this._cachedMeta,r=this.chart,o=r.data.labels||[],a=$h(i._parsed[e],r.options.locale);return{label:o[e]||"",value:a}}getMaxBorderWidth(e){let i=0,r=this.chart,o,a,s,l,c;if(!e){for(o=0,a=r.data.datasets.length;o{class t extends Kc{static id="line";static defaults={datasetElementType:"line",dataElementType:"point",showLine:!0,spanGaps:!1};static overrides={scales:{_index_:{type:"category"},_value_:{type:"linear"}}};initialize(){this.enableOptionSharing=!0,this.supportsDecimation=!0,super.initialize()}update(e){let i=this._cachedMeta,{dataset:r,data:o=[],_dataset:a}=i,s=this.chart._animationsDisabled,{start:l,count:c}=uT(i,o,s);this._drawStart=l,this._drawCount=c,mT(i)&&(l=0,c=o.length),r._chart=this.chart,r._datasetIndex=this.index,r._decimated=!!a._decimated,r.points=o;let d=this.resolveDatasetElementOptions(e);this.options.showLine||(d.borderWidth=0),d.segment=this.options.segment,this.updateElement(r,void 0,{animated:!s,options:d},e),this.updateElements(o,l,c,e)}updateElements(e,i,r,o){let a=o==="reset",{iScale:s,vScale:l,_stacked:c,_dataset:d}=this._cachedMeta,{sharedOptions:p,includeOptions:_}=this._getSharedOptions(i,o),b=s.axis,y=l.axis,{spanGaps:w,segment:C}=this.options,D=Su(w)?w:Number.POSITIVE_INFINITY,F=this.chart._animationsDisabled||a||o==="none",W=i+r,Z=e.length,K=i>0&&this.getParsed(i-1);for(let oe=0;oe=W){ve.skip=!0;continue}let Be=this.getParsed(oe),wt=Nt(Be[y]),Ct=ve[b]=s.getPixelForValue(Be[b],oe),zt=ve[y]=a||wt?l.getBasePixel():l.getPixelForValue(c?this.applyStack(l,Be,c):Be[y],oe);ve.skip=isNaN(Ct)||isNaN(zt)||wt,ve.stop=oe>0&&Math.abs(Be[b]-K[b])>D,C&&(ve.parsed=Be,ve.raw=d.data[oe]),_&&(ve.options=p||this.resolveDataElementOptions(oe,Se.active?"active":o)),F||this.updateElement(Se,oe,ve,o),K=Be}}getMaxOverflow(){let e=this._cachedMeta,i=e.dataset,r=i.options&&i.options.borderWidth||0,o=e.data||[];if(!o.length)return r;let a=o[0].size(this.resolveDataElementOptions(0)),s=o[o.length-1].size(this.resolveDataElementOptions(o.length-1));return Math.max(r,a,s)/2}draw(){let e=this._cachedMeta;e.dataset.updateControlPoints(this.chart.chartArea,e.iScale.axis),super.draw()}}return t})(),sH=(()=>{class t extends Kc{static id="polarArea";static defaults={dataElementType:"arc",animation:{animateRotate:!0,animateScale:!0},animations:{numbers:{type:"number",properties:["x","y","startAngle","endAngle","innerRadius","outerRadius"]}},indexAxis:"r",startAngle:0};static overrides={aspectRatio:1,plugins:{legend:{labels:{generateLabels(e){let i=e.data;if(i.labels.length&&i.datasets.length){let{labels:{pointStyle:r,color:o}}=e.legend.options;return i.labels.map((a,s)=>{let c=e.getDatasetMeta(0).controller.getStyle(s);return{text:a,fillStyle:c.backgroundColor,strokeStyle:c.borderColor,fontColor:o,lineWidth:c.borderWidth,pointStyle:r,hidden:!e.getDataVisibility(s),index:s}})}return[]}},onClick(e,i,r){r.chart.toggleDataVisibility(i.index),r.chart.update()}}},scales:{r:{type:"radialLinear",angleLines:{display:!1},beginAtZero:!0,grid:{circular:!0},pointLabels:{display:!1},startAngle:0}}};constructor(e,i){super(e,i),this.innerRadius=void 0,this.outerRadius=void 0}getLabelAndValue(e){let i=this._cachedMeta,r=this.chart,o=r.data.labels||[],a=$h(i._parsed[e].r,r.options.locale);return{label:o[e]||"",value:a}}parseObjectData(e,i,r,o){return xT.bind(this)(e,i,r,o)}update(e){let i=this._cachedMeta.data;this._updateRadius(),this.updateElements(i,0,i.length,e)}getMinMax(){let e=this._cachedMeta,i={min:Number.POSITIVE_INFINITY,max:Number.NEGATIVE_INFINITY};return e.data.forEach((r,o)=>{let a=this.getParsed(o).r;!isNaN(a)&&this.chart.getDataVisibility(o)&&(ai.max&&(i.max=a))}),i}_updateRadius(){let e=this.chart,i=e.chartArea,r=e.options,o=Math.min(i.right-i.left,i.bottom-i.top),a=Math.max(o/2,0),s=Math.max(r.cutoutPercentage?a/100*r.cutoutPercentage:1,0),l=(a-s)/e.getVisibleDatasetCount();this.outerRadius=a-l*this.index,this.innerRadius=this.outerRadius-l}updateElements(e,i,r,o){let a=o==="reset",s=this.chart,c=s.options.animation,d=this._cachedMeta.rScale,p=d.xCenter,_=d.yCenter,b=d.getIndexAngle(0)-.5*Jt,y=b,w,C=360/this.countVisibleElements();for(w=0;w{!isNaN(this.getParsed(o).r)&&this.chart.getDataVisibility(o)&&i++}),i}_computeAngle(e,i,r){return this.chart.getDataVisibility(e)?ua(this.resolveDataElementOptions(e,i).angle||r):0}}return t})(),roe=(()=>{class t extends sI{static id="pie";static defaults={cutout:0,rotation:0,circumference:360,radius:"100%"}}return t})(),ooe=(()=>{class t extends Kc{static id="radar";static defaults={datasetElementType:"line",dataElementType:"point",indexAxis:"r",showLine:!0,elements:{line:{fill:"start"}}};static overrides={aspectRatio:1,scales:{r:{type:"radialLinear"}}};getLabelAndValue(e){let i=this._cachedMeta.vScale,r=this.getParsed(e);return{label:i.getLabels()[e],value:""+i.getLabelForValue(r[i.axis])}}parseObjectData(e,i,r,o){return xT.bind(this)(e,i,r,o)}update(e){let i=this._cachedMeta,r=i.dataset,o=i.data||[],a=i.iScale.getLabels();if(r.points=o,e!=="resize"){let s=this.resolveDatasetElementOptions(e);this.options.showLine||(s.borderWidth=0);let l={_loop:!0,_fullLoop:a.length===o.length,options:s};this.updateElement(r,void 0,l,e)}this.updateElements(o,0,o.length,e)}updateElements(e,i,r,o){let a=this._cachedMeta.rScale,s=o==="reset";for(let l=i;l{class t extends Kc{static id="scatter";static defaults={datasetElementType:!1,dataElementType:"point",showLine:!1,fill:!1};static overrides={interaction:{mode:"point"},scales:{x:{type:"linear"},y:{type:"linear"}}};getLabelAndValue(e){let i=this._cachedMeta,r=this.chart.data.labels||[],{xScale:o,yScale:a}=i,s=this.getParsed(e),l=o.getLabelForValue(s.x),c=a.getLabelForValue(s.y);return{label:r[e]||"",value:"("+l+", "+c+")"}}update(e){let i=this._cachedMeta,{data:r=[]}=i,o=this.chart._animationsDisabled,{start:a,count:s}=uT(i,r,o);if(this._drawStart=a,this._drawCount=s,mT(i)&&(a=0,s=r.length),this.options.showLine){this.datasetElementType||this.addElements();let{dataset:l,_dataset:c}=i;l._chart=this.chart,l._datasetIndex=this.index,l._decimated=!!c._decimated,l.points=r;let d=this.resolveDatasetElementOptions(e);d.segment=this.options.segment,this.updateElement(l,void 0,{animated:!o,options:d},e)}else this.datasetElementType&&(delete i.dataset,this.datasetElementType=!1);this.updateElements(r,a,s,e)}addElements(){let{showLine:e}=this.options;!this.datasetElementType&&e&&(this.datasetElementType=this.chart.registry.getElement("line")),super.addElements()}updateElements(e,i,r,o){let a=o==="reset",{iScale:s,vScale:l,_stacked:c,_dataset:d}=this._cachedMeta,p=this.resolveDataElementOptions(i,o),_=this.getSharedOptions(p),b=this.includeOptions(o,_),y=s.axis,w=l.axis,{spanGaps:C,segment:D}=this.options,F=Su(C)?C:Number.POSITIVE_INFINITY,W=this.chart._animationsDisabled||a||o==="none",Z=i>0&&this.getParsed(i-1);for(let K=i;K0&&Math.abs(Se[y]-Z[y])>F,D&&(ve.parsed=Se,ve.raw=d.data[K]),b&&(ve.options=_||this.resolveDataElementOptions(K,oe.active?"active":o)),W||this.updateElement(oe,K,ve,o),Z=Se}this.updateSharedOptions(_,o,p)}getMaxOverflow(){let e=this._cachedMeta,i=e.data||[];if(!this.options.showLine){let l=0;for(let c=i.length-1;c>=0;--c)l=Math.max(l,i[c].size(this.resolveDataElementOptions(c))/2);return l>0&&l}let r=e.dataset,o=r.options&&r.options.borderWidth||0;if(!i.length)return o;let a=i[0].size(this.resolveDataElementOptions(0)),s=i[i.length-1].size(this.resolveDataElementOptions(i.length-1));return Math.max(o,a,s)/2}}return t})(),soe=Object.freeze({__proto__:null,BarController:eoe,BubbleController:toe,DoughnutController:sI,LineController:noe,PieController:roe,PolarAreaController:sH,RadarController:ooe,ScatterController:aoe});function Tu(){throw new Error("This method is not implemented: Check that a complete date adapter is provided.")}var zT=class t{static override(n){Object.assign(t.prototype,n)}options;constructor(n){this.options=n||{}}init(){}formats(){return Tu()}parse(){return Tu()}format(){return Tu()}add(){return Tu()}diff(){return Tu()}startOf(){return Tu()}endOf(){return Tu()}},loe={_date:zT};function coe(t,n,e,i){let{controller:r,data:o,_sorted:a}=t,s=r._cachedMeta.iScale,l=t.dataset&&t.dataset.options?t.dataset.options.spanGaps:null;if(s&&n===s.axis&&n!=="r"&&a&&o.length){let c=s._reversePixels?Lj:$s;if(i){if(r._sharedOptions){let d=o[0],p=typeof d.getRange=="function"&&d.getRange(n);if(p){let _=c(o,n,e-p),b=c(o,n,e+p);return{lo:_.lo,hi:b.hi}}}}else{let d=c(o,n,e);if(l){let{vScale:p}=r._cachedMeta,{_parsed:_}=t,b=_.slice(0,d.lo+1).reverse().findIndex(w=>!Nt(w[p.axis]));d.lo-=Math.max(0,b);let y=_.slice(d.hi).findIndex(w=>!Nt(w[p.axis]));d.hi+=Math.max(0,y)}return d}}return{lo:0,hi:o.length-1}}function r_(t,n,e,i,r){let o=t.getSortedVisibleDatasetMetas(),a=e[n];for(let s=0,l=o.length;s{l[a]&&l[a](n[e],r)&&(o.push({element:l,datasetIndex:c,index:d}),s=s||l.inRange(n.x,n.y,r))}),i&&!s?[]:o}var hoe={evaluateInteractionItems:r_,modes:{index(t,n,e,i){let r=Yc(n,t),o=e.axis||"x",a=e.includeInvisible||!1,s=e.intersect?RT(t,r,o,i,a):PT(t,r,o,!1,i,a),l=[];return s.length?(t.getSortedVisibleDatasetMetas().forEach(c=>{let d=s[0].index,p=c.data[d];p&&!p.skip&&l.push({element:p,datasetIndex:c.index,index:d})}),l):[]},dataset(t,n,e,i){let r=Yc(n,t),o=e.axis||"xy",a=e.includeInvisible||!1,s=e.intersect?RT(t,r,o,i,a):PT(t,r,o,!1,i,a);if(s.length>0){let l=s[0].datasetIndex,c=t.getDatasetMeta(l).data;s=[];for(let d=0;de.pos===n)}function f4(t,n){return t.filter(e=>lH.indexOf(e.pos)===-1&&e.box.axis===n)}function Kg(t,n){return t.sort((e,i)=>{let r=n?i:e,o=n?e:i;return r.weight===o.weight?r.index-o.index:r.weight-o.weight})}function poe(t){let n=[],e,i,r,o,a,s;for(e=0,i=(t||[]).length;ec.box.fullSize),!0),i=Kg(Qg(n,"left"),!0),r=Kg(Qg(n,"right")),o=Kg(Qg(n,"top"),!0),a=Kg(Qg(n,"bottom")),s=f4(n,"x"),l=f4(n,"y");return{fullSize:e,leftAndTop:i.concat(o),rightAndBottom:r.concat(l).concat(a).concat(s),chartArea:Qg(n,"chartArea"),vertical:i.concat(r).concat(l),horizontal:o.concat(a).concat(s)}}function g4(t,n,e,i){return Math.max(t[e],n[e])+Math.max(t[i],n[i])}function cH(t,n){t.top=Math.max(t.top,n.top),t.left=Math.max(t.left,n.left),t.bottom=Math.max(t.bottom,n.bottom),t.right=Math.max(t.right,n.right)}function boe(t,n,e,i){let{pos:r,box:o}=e,a=t.maxPadding;if(!jt(r)){e.size&&(t[r]-=e.size);let p=i[e.stack]||{size:0,count:1};p.size=Math.max(p.size,e.horizontal?o.height:o.width),e.size=p.size/p.count,t[r]+=e.size}o.getPadding&&cH(a,o.getPadding());let s=Math.max(0,n.outerWidth-g4(a,t,"left","right")),l=Math.max(0,n.outerHeight-g4(a,t,"top","bottom")),c=s!==t.w,d=l!==t.h;return t.w=s,t.h=l,e.horizontal?{same:c,other:d}:{same:d,other:c}}function voe(t){let n=t.maxPadding;function e(i){let r=Math.max(n[i]-t[i],0);return t[i]+=r,r}t.y+=e("top"),t.x+=e("left"),e("right"),e("bottom")}function yoe(t,n){let e=n.maxPadding;function i(r){let o={left:0,top:0,right:0,bottom:0};return r.forEach(a=>{o[a]=Math.max(n[a],e[a])}),o}return i(t?["left","right"]:["top","bottom"])}function Jg(t,n,e,i){let r=[],o,a,s,l,c,d;for(o=0,a=t.length,c=0;o{typeof w.beforeLayout=="function"&&w.beforeLayout()});let d=l.reduce((w,C)=>C.box.options&&C.box.options.display===!1?w:w+1,0)||1,p=Object.freeze({outerWidth:n,outerHeight:e,padding:r,availableWidth:o,availableHeight:a,vBoxMaxWidth:o/2/d,hBoxMaxHeight:a/2}),_=Object.assign({},r);cH(_,gr(i));let b=Object.assign({maxPadding:_,w:o,h:a,x:r.left,y:r.top},r),y=goe(l.concat(c),p);Jg(s.fullSize,b,p,y),Jg(l,b,p,y),Jg(c,b,p,y)&&Jg(l,b,p,y),voe(b),_4(s.leftAndTop,b,p,y),b.x+=b.w,b.y+=b.h,_4(s.rightAndBottom,b,p,y),t.chartArea={left:b.left,top:b.top,right:b.left+b.w,bottom:b.top+b.h,height:b.h,width:b.w},ui(s.chartArea,w=>{let C=w.box;Object.assign(C,t.chartArea),C.update(b.w,b.h,{left:0,top:0,right:0,bottom:0})})}},pC=class{acquireContext(n,e){}releaseContext(n){return!1}addEventListener(n,e,i){}removeEventListener(n,e,i){}getDevicePixelRatio(){return 1}getMaximumSize(n,e,i,r){return e=Math.max(0,e||n.width),i=i||n.height,{width:e,height:Math.max(0,r?Math.floor(e/r):i)}}isAttached(n){return!0}updateConfig(n){}},UT=class extends pC{acquireContext(n){return n&&n.getContext&&n.getContext("2d")||null}updateConfig(n){n.options.animation=!1}},uC="$chartjs",xoe={touchstart:"mousedown",touchmove:"mousemove",touchend:"mouseup",pointerenter:"mouseenter",pointerdown:"mousedown",pointermove:"mousemove",pointerup:"mouseup",pointerleave:"mouseout",pointerout:"mouseout"},b4=t=>t===null||t==="";function Coe(t,n){let e=t.style,i=t.getAttribute("height"),r=t.getAttribute("width");if(t[uC]={initial:{height:i,width:r,style:{display:e.display,height:e.height,width:e.width}}},e.display=e.display||"block",e.boxSizing=e.boxSizing||"border-box",b4(r)){let o=wT(t,"width");o!==void 0&&(t.width=o)}if(b4(i))if(t.style.height==="")t.height=t.width/(n||2);else{let o=wT(t,"height");o!==void 0&&(t.height=o)}return t}var dH=e4?{passive:!0}:!1;function woe(t,n,e){t&&t.addEventListener(n,e,dH)}function Doe(t,n,e){t&&t.canvas&&t.canvas.removeEventListener(n,e,dH)}function Moe(t,n){let e=xoe[t.type]||t.type,{x:i,y:r}=Yc(t,n);return{type:e,chart:n,native:t,x:i!==void 0?i:null,y:r!==void 0?r:null}}function fC(t,n){for(let e of t)if(e===n||e.contains(n))return!0}function Eoe(t,n,e){let i=t.canvas,r=new MutationObserver(o=>{let a=!1;for(let s of o)a=a||fC(s.addedNodes,i),a=a&&!fC(s.removedNodes,i);a&&e()});return r.observe(document,{childList:!0,subtree:!0}),r}function Soe(t,n,e){let i=t.canvas,r=new MutationObserver(o=>{let a=!1;for(let s of o)a=a||fC(s.removedNodes,i),a=a&&!fC(s.addedNodes,i);a&&e()});return r.observe(document,{childList:!0,subtree:!0}),r}var t_=new Map,v4=0;function uH(){let t=window.devicePixelRatio;t!==v4&&(v4=t,t_.forEach((n,e)=>{e.currentDevicePixelRatio!==t&&n()}))}function koe(t,n){t_.size||window.addEventListener("resize",uH),t_.set(t,n)}function Toe(t){t_.delete(t),t_.size||window.removeEventListener("resize",uH)}function Ioe(t,n,e){let i=t.canvas,r=i&&nC(i);if(!r)return;let o=dT((s,l)=>{let c=r.clientWidth;e(s,l),c{let l=s[0],c=l.contentRect.width,d=l.contentRect.height;c===0&&d===0||o(c,d)});return a.observe(r),koe(t,o),a}function FT(t,n,e){e&&e.disconnect(),n==="resize"&&Toe(t)}function Aoe(t,n,e){let i=t.canvas,r=dT(o=>{t.ctx!==null&&e(Moe(o,t))},t);return woe(i,n,r),r}var $T=class extends pC{acquireContext(n,e){let i=n&&n.getContext&&n.getContext("2d");return i&&i.canvas===n?(Coe(n,e),i):null}releaseContext(n){let e=n.canvas;if(!e[uC])return!1;let i=e[uC].initial;["height","width"].forEach(o=>{let a=i[o];Nt(a)?e.removeAttribute(o):e.setAttribute(o,a)});let r=i.style||{};return Object.keys(r).forEach(o=>{e.style[o]=r[o]}),e.width=e.width,delete e[uC],!0}addEventListener(n,e,i){this.removeEventListener(n,e);let r=n.$proxies||(n.$proxies={}),a={attach:Eoe,detach:Soe,resize:Ioe}[e]||Aoe;r[e]=a(n,e,i)}removeEventListener(n,e){let i=n.$proxies||(n.$proxies={}),r=i[e];if(!r)return;({attach:FT,detach:FT,resize:FT}[e]||Doe)(n,e,r),i[e]=void 0}getDevicePixelRatio(){return window.devicePixelRatio}getMaximumSize(n,e,i,r){return Jj(n,e,i,r)}isAttached(n){let e=n&&nC(n);return!!(e&&e.isConnected)}};function Ooe(t){return!iC()||typeof OffscreenCanvas<"u"&&t instanceof OffscreenCanvas?UT:$T}var ns=class{static defaults={};static defaultRoutes=void 0;x;y;active=!1;options;$animations;tooltipPosition(n){let{x:e,y:i}=this.getProps(["x","y"],n);return{x:e,y:i}}hasValue(){return Su(this.x)&&Su(this.y)}getProps(n,e){let i=this.$animations;if(!e||!i)return this;let r={};return n.forEach(o=>{r[o]=i[o]&&i[o].active()?i[o]._to:this[o]}),r}};function Roe(t,n){let e=t.options.ticks,i=Poe(t),r=Math.min(e.maxTicksLimit||i,i),o=e.major.enabled?Noe(n):[],a=o.length,s=o[0],l=o[a-1],c=[];if(a>r)return Loe(n,c,o,a/r),c;let d=Foe(o,n,r);if(a>0){let p,_,b=a>1?Math.round((l-s)/(a-1)):null;for(aC(n,c,d,Nt(b)?0:s-b,s),p=0,_=a-1;p<_;p++)aC(n,c,d,o[p],o[p+1]);return aC(n,c,d,l,Nt(b)?n.length:l+b),c}return aC(n,c,d),c}function Poe(t){let n=t.options.offset,e=t._tickSize(),i=t._length/e+(n?0:1),r=t._maxLength/e;return Math.floor(Math.min(i,r))}function Foe(t,n,e){let i=Voe(t),r=n.length/e;if(!i)return Math.max(r,1);let o=Pj(i);for(let a=0,s=o.length-1;ar)return l}return Math.max(r,1)}function Noe(t){let n=[],e,i;for(e=0,i=t.length;et==="left"?"right":t==="right"?"left":t,y4=(t,n,e)=>n==="top"||n==="left"?t[n]+e:t[n]-e,x4=(t,n)=>Math.min(n||t,t);function C4(t,n){let e=[],i=t.length/n,r=t.length,o=0;for(;oa+s)))return l}function Hoe(t,n){ui(t,e=>{let i=e.gc,r=i.length/2,o;if(r>n){for(o=0;oi?i:e,i=r&&e>i?e:i,{min:po(e,po(i,e)),max:po(i,po(e,i))}}getPadding(){return{left:this.paddingLeft||0,top:this.paddingTop||0,right:this.paddingRight||0,bottom:this.paddingBottom||0}}getTicks(){return this.ticks}getLabels(){let n=this.chart.data;return this.options.labels||(this.isHorizontal()?n.xLabels:n.yLabels)||n.labels||[]}getLabelItems(n=this.chart.chartArea){return this._labelItems||(this._labelItems=this._computeLabelItems(n))}beforeLayout(){this._cache={},this._dataLimitsCached=!1}beforeUpdate(){ki(this.options.beforeUpdate,[this])}update(n,e,i){let{beginAtZero:r,grace:o,ticks:a}=this.options,s=a.sampleSize;this.beforeUpdate(),this.maxWidth=n,this.maxHeight=e,this._margins=i=Object.assign({left:0,right:0,top:0,bottom:0},i),this.ticks=null,this._labelSizes=null,this._gridLineItems=null,this._labelItems=null,this.beforeSetDimensions(),this.setDimensions(),this.afterSetDimensions(),this._maxLength=this.isHorizontal()?this.width+i.left+i.right:this.height+i.top+i.bottom,this._dataLimitsCached||(this.beforeDataLimits(),this.determineDataLimits(),this.afterDataLimits(),this._range=qj(this,o,r),this._dataLimitsCached=!0),this.beforeBuildTicks(),this.ticks=this.buildTicks()||[],this.afterBuildTicks();let l=s=o||i<=1||!this.isHorizontal()){this.labelRotation=r;return}let d=this._getLabelSizes(),p=d.widest.width,_=d.highest.height,b=On(this.chart.width-p,0,this.maxWidth);s=n.offset?this.maxWidth/i:b/(i-1),p+6>s&&(s=b/(i-(n.offset?.5:1)),l=this.maxHeight-Zg(n.grid)-e.padding-w4(n.title,this.chart.options.font),c=Math.sqrt(p*p+_*_),a=Qx(Math.min(Math.asin(On((d.highest.height+6)/s,-1,1)),Math.asin(On(l/c,-1,1))-Math.asin(On(_/c,-1,1)))),a=Math.max(r,Math.min(o,a))),this.labelRotation=a}afterCalculateLabelRotation(){ki(this.options.afterCalculateLabelRotation,[this])}afterAutoSkip(){}beforeFit(){ki(this.options.beforeFit,[this])}fit(){let n={width:0,height:0},{chart:e,options:{ticks:i,title:r,grid:o}}=this,a=this._isVisible(),s=this.isHorizontal();if(a){let l=w4(r,e.options.font);if(s?(n.width=this.maxWidth,n.height=Zg(o)+l):(n.height=this.maxHeight,n.width=Zg(o)+l),i.display&&this.ticks.length){let{first:c,last:d,widest:p,highest:_}=this._getLabelSizes(),b=i.padding*2,y=ua(this.labelRotation),w=Math.cos(y),C=Math.sin(y);if(s){let D=i.mirror?0:C*p.width+w*_.height;n.height=Math.min(this.maxHeight,n.height+D+b)}else{let D=i.mirror?0:w*p.width+C*_.height;n.width=Math.min(this.maxWidth,n.width+D+b)}this._calculatePadding(c,d,C,w)}}this._handleMargins(),s?(this.width=this._length=e.width-this._margins.left-this._margins.right,this.height=n.height):(this.width=n.width,this.height=this._length=e.height-this._margins.top-this._margins.bottom)}_calculatePadding(n,e,i,r){let{ticks:{align:o,padding:a},position:s}=this.options,l=this.labelRotation!==0,c=s!=="top"&&this.axis==="x";if(this.isHorizontal()){let d=this.getPixelForTick(0)-this.left,p=this.right-this.getPixelForTick(this.ticks.length-1),_=0,b=0;l?c?(_=r*n.width,b=i*e.height):(_=i*n.height,b=r*e.width):o==="start"?b=e.width:o==="end"?_=n.width:o!=="inner"&&(_=n.width/2,b=e.width/2),this.paddingLeft=Math.max((_-d+a)*this.width/(this.width-d),0),this.paddingRight=Math.max((b-p+a)*this.width/(this.width-p),0)}else{let d=e.height/2,p=n.height/2;o==="start"?(d=0,p=n.height):o==="end"&&(d=e.height,p=0),this.paddingTop=d+a,this.paddingBottom=p+a}}_handleMargins(){this._margins&&(this._margins.left=Math.max(this.paddingLeft,this._margins.left),this._margins.top=Math.max(this.paddingTop,this._margins.top),this._margins.right=Math.max(this.paddingRight,this._margins.right),this._margins.bottom=Math.max(this.paddingBottom,this._margins.bottom))}afterFit(){ki(this.options.afterFit,[this])}isHorizontal(){let{axis:n,position:e}=this.options;return e==="top"||e==="bottom"||n==="x"}isFullSize(){return this.options.fullSize}_convertTicksToLabels(n){this.beforeTickToLabelConversion(),this.generateTickLabels(n);let e,i;for(e=0,i=n.length;e({width:a[Be]||0,height:s[Be]||0});return{first:ve(0),last:ve(e-1),widest:ve(oe),highest:ve(Se),widths:a,heights:s}}getLabelForValue(n){return n}getPixelForValue(n,e){return NaN}getValueForPixel(n){}getPixelForTick(n){let e=this.ticks;return n<0||n>e.length-1?null:this.getPixelForValue(e[n].value)}getPixelForDecimal(n){this._reversePixels&&(n=1-n);let e=this._startPixel+n*this._length;return Nj(this._alignToPixels?Wc(this.chart,e,0):e)}getDecimalForPixel(n){let e=(n-this._startPixel)/this._length;return this._reversePixels?1-e:e}getBasePixel(){return this.getPixelForValue(this.getBaseValue())}getBaseValue(){let{min:n,max:e}=this;return n<0&&e<0?e:n>0&&e>0?n:0}getContext(n){let e=this.ticks||[];if(n>=0&&ns*r?s/i:l/r:l*r0}_computeGridLineItems(n){let e=this.axis,i=this.chart,r=this.options,{grid:o,position:a,border:s}=r,l=o.offset,c=this.isHorizontal(),p=this.ticks.length+(l?1:0),_=Zg(o),b=[],y=s.setContext(this.getContext()),w=y.display?y.width:0,C=w/2,D=function(Hi){return Wc(i,Hi,w)},F,W,Z,K,oe,Se,ve,Be,wt,Ct,zt,Jn;if(a==="top")F=D(this.bottom),Se=this.bottom-_,Be=F-C,Ct=D(n.top)+C,Jn=n.bottom;else if(a==="bottom")F=D(this.top),Ct=n.top,Jn=D(n.bottom)-C,Se=F+C,Be=this.top+_;else if(a==="left")F=D(this.right),oe=this.right-_,ve=F-C,wt=D(n.left)+C,zt=n.right;else if(a==="right")F=D(this.left),wt=n.left,zt=D(n.right)-C,oe=F+C,ve=this.left+_;else if(e==="x"){if(a==="center")F=D((n.top+n.bottom)/2+.5);else if(jt(a)){let Hi=Object.keys(a)[0],an=a[Hi];F=D(this.chart.scales[Hi].getPixelForValue(an))}Ct=n.top,Jn=n.bottom,Se=F+C,Be=Se+_}else if(e==="y"){if(a==="center")F=D((n.left+n.right)/2);else if(jt(a)){let Hi=Object.keys(a)[0],an=a[Hi];F=D(this.chart.scales[Hi].getPixelForValue(an))}oe=F-C,ve=oe-_,wt=n.left,zt=n.right}let vo=ut(r.ticks.maxTicksLimit,p),bi=Math.max(1,Math.ceil(p/vo));for(W=0;W0&&(ld-=sd/2);break}T_={left:ld,top:bp,width:sd+Bu.width,height:_p+Bu.height,color:bi.backdropColor}}C.push({label:Z,font:Be,textOffset:zt,options:{rotation:w,color:an,strokeColor:Ta,strokeWidth:br,textAlign:Vu,textBaseline:Jn,translation:[K,oe],backdrop:T_}})}return C}_getXAxisLabelAlignment(){let{position:n,ticks:e}=this.options;if(-ua(this.labelRotation))return n==="top"?"left":"right";let r="center";return e.align==="start"?r="left":e.align==="end"?r="right":e.align==="inner"&&(r="inner"),r}_getYAxisLabelAlignment(n){let{position:e,ticks:{crossAlign:i,mirror:r,padding:o}}=this.options,a=this._getLabelSizes(),s=n+o,l=a.widest.width,c,d;return e==="left"?r?(d=this.right+o,i==="near"?c="left":i==="center"?(c="center",d+=l/2):(c="right",d+=l)):(d=this.right-s,i==="near"?c="right":i==="center"?(c="center",d-=l/2):(c="left",d=this.left)):e==="right"?r?(d=this.left+o,i==="near"?c="right":i==="center"?(c="center",d-=l/2):(c="left",d-=l)):(d=this.left+s,i==="near"?c="left":i==="center"?(c="center",d+=l/2):(c="right",d=this.right)):c="right",{textAlign:c,x:d}}_computeLabelArea(){if(this.options.ticks.mirror)return;let n=this.chart,e=this.options.position;if(e==="left"||e==="right")return{top:0,left:this.left,bottom:n.height,right:this.right};if(e==="top"||e==="bottom")return{top:this.top,left:0,bottom:this.bottom,right:n.width}}drawBackground(){let{ctx:n,options:{backgroundColor:e},left:i,top:r,width:o,height:a}=this;e&&(n.save(),n.fillStyle=e,n.fillRect(i,r,o,a),n.restore())}getLineWidthForValue(n){let e=this.options.grid;if(!this._isVisible()||!e.display)return 0;let r=this.ticks.findIndex(o=>o.value===n);return r>=0?e.setContext(this.getContext(r)).lineWidth:0}drawGrid(n){let e=this.options.grid,i=this.ctx,r=this._gridLineItems||(this._gridLineItems=this._computeGridLineItems(n)),o,a,s=(l,c,d)=>{!d.width||!d.color||(i.save(),i.lineWidth=d.width,i.strokeStyle=d.color,i.setLineDash(d.borderDash||[]),i.lineDashOffset=d.borderDashOffset,i.beginPath(),i.moveTo(l.x,l.y),i.lineTo(c.x,c.y),i.stroke(),i.restore())};if(e.display)for(o=0,a=r.length;o{this.draw(o)}}]:[{z:i,draw:o=>{this.drawBackground(),this.drawGrid(o),this.drawTitle()}},{z:r,draw:()=>{this.drawBorder()}},{z:e,draw:o=>{this.drawLabels(o)}}]}getMatchingVisibleMetas(n){let e=this.chart.getSortedVisibleDatasetMetas(),i=this.axis+"AxisID",r=[],o,a;for(o=0,a=e.length;o{let i=e.split("."),r=i.pop(),o=[t].concat(i).join("."),a=n[e].split("."),s=a.pop(),l=a.join(".");Ti.route(o,r,l,s)})}function Yoe(t){return"id"in t&&"defaults"in t}var WT=class{constructor(){this.controllers=new Yh(Kc,"datasets",!0),this.elements=new Yh(ns,"elements"),this.plugins=new Yh(Object,"plugins"),this.scales=new Yh(Au,"scales"),this._typedRegistries=[this.controllers,this.scales,this.elements]}add(...n){this._each("register",n)}remove(...n){this._each("unregister",n)}addControllers(...n){this._each("register",n,this.controllers)}addElements(...n){this._each("register",n,this.elements)}addPlugins(...n){this._each("register",n,this.plugins)}addScales(...n){this._each("register",n,this.scales)}getController(n){return this._get(n,this.controllers,"controller")}getElement(n){return this._get(n,this.elements,"element")}getPlugin(n){return this._get(n,this.plugins,"plugin")}getScale(n){return this._get(n,this.scales,"scale")}removeControllers(...n){this._each("unregister",n,this.controllers)}removeElements(...n){this._each("unregister",n,this.elements)}removePlugins(...n){this._each("unregister",n,this.plugins)}removeScales(...n){this._each("unregister",n,this.scales)}_each(n,e,i){[...e].forEach(r=>{let o=i||this._getRegistryForType(r);i||o.isForType(r)||o===this.plugins&&r.id?this._exec(n,o,r):ui(r,a=>{let s=i||this._getRegistryForType(a);this._exec(n,s,a)})})}_exec(n,e,i){let r=Yx(n);ki(i["before"+r],[],i),e[n](i),ki(i["after"+r],[],i)}_getRegistryForType(n){for(let e=0;eo.filter(s=>!a.some(l=>s.plugin.id===l.plugin.id));this._notify(r(e,i),n,"stop"),this._notify(r(i,e),n,"start")}};function Qoe(t){let n={},e=[],i=Object.keys(Qs.plugins.items);for(let o=0;o1&&D4(t[0].toLowerCase());if(i)return i}throw new Error(`Cannot determine type of '${t}' axis. Please provide 'axis' or 'position' option.`)}function M4(t,n,e){if(e[n+"AxisID"]===t)return{axis:n}}function iae(t,n){if(n.data&&n.data.datasets){let e=n.data.datasets.filter(i=>i.xAxisID===t||i.yAxisID===t);if(e.length)return M4(t,"x",e[0])||M4(t,"y",e[0])}return{}}function nae(t,n){let e=$c[t.type]||{scales:{}},i=n.scales||{},r=qT(t.type,n),o=Object.create(null);return Object.keys(i).forEach(a=>{let s=i[a];if(!jt(s))return console.error(`Invalid scale configuration for scale: ${a}`);if(s._proxy)return console.warn(`Ignoring resolver passed as options for scale: ${a}`);let l=YT(a,s,iae(a,t),Ti.scales[s.type]),c=eae(l,r),d=e.scales||{};o[a]=jh(Object.create(null),[{axis:l},s,d[l],d[c]])}),t.data.datasets.forEach(a=>{let s=a.type||t.type,l=a.indexAxis||qT(s,n),d=($c[s]||{}).scales||{};Object.keys(d).forEach(p=>{let _=Joe(p,l),b=a[_+"AxisID"]||_;o[b]=o[b]||Object.create(null),jh(o[b],[{axis:_},i[b],d[p]])})}),Object.keys(o).forEach(a=>{let s=o[a];jh(s,[Ti.scales[s.type],Ti.scale])}),o}function mH(t){let n=t.options||(t.options={});n.plugins=ut(n.plugins,{}),n.scales=nae(t,n)}function hH(t){return t=t||{},t.datasets=t.datasets||[],t.labels=t.labels||[],t}function rae(t){return t=t||{},t.data=hH(t.data),mH(t),t}var E4=new Map,pH=new Set;function sC(t,n){let e=E4.get(t);return e||(e=n(),E4.set(t,e),pH.add(e)),e}var Xg=(t,n,e)=>{let i=Pl(n,e);i!==void 0&&t.add(i)},QT=class{constructor(n){this._config=rae(n),this._scopeCache=new Map,this._resolverCache=new Map}get platform(){return this._config.platform}get type(){return this._config.type}set type(n){this._config.type=n}get data(){return this._config.data}set data(n){this._config.data=hH(n)}get options(){return this._config.options}set options(n){this._config.options=n}get plugins(){return this._config.plugins}update(){let n=this._config;this.clearCache(),mH(n)}clearCache(){this._scopeCache.clear(),this._resolverCache.clear()}datasetScopeKeys(n){return sC(n,()=>[[`datasets.${n}`,""]])}datasetAnimationScopeKeys(n,e){return sC(`${n}.transition.${e}`,()=>[[`datasets.${n}.transitions.${e}`,`transitions.${e}`],[`datasets.${n}`,""]])}datasetElementScopeKeys(n,e){return sC(`${n}-${e}`,()=>[[`datasets.${n}.elements.${e}`,`datasets.${n}`,`elements.${e}`,""]])}pluginScopeKeys(n){let e=n.id,i=this.type;return sC(`${i}-plugin-${e}`,()=>[[`plugins.${e}`,...n.additionalOptionScopes||[]]])}_cachedScopes(n,e){let i=this._scopeCache,r=i.get(n);return(!r||e)&&(r=new Map,i.set(n,r)),r}getOptionScopes(n,e,i){let{options:r,type:o}=this,a=this._cachedScopes(n,i),s=a.get(e);if(s)return s;let l=new Set;e.forEach(d=>{n&&(l.add(n),d.forEach(p=>Xg(l,n,p))),d.forEach(p=>Xg(l,r,p)),d.forEach(p=>Xg(l,$c[o]||{},p)),d.forEach(p=>Xg(l,Ti,p)),d.forEach(p=>Xg(l,Xx,p))});let c=Array.from(l);return c.length===0&&c.push(Object.create(null)),pH.has(e)&&a.set(e,c),c}chartOptionScopes(){let{options:n,type:e}=this;return[n,$c[e]||{},Ti.datasets[e]||{},{type:e},Ti,Xx]}resolveNamedOptions(n,e,i,r=[""]){let o={$shared:!0},{resolver:a,subPrefixes:s}=S4(this._resolverCache,n,r),l=a;if(aae(a,e)){o.$shared=!1,i=Ol(i)?i():i;let c=this.createResolver(n,i,s);l=Eu(a,i,c)}for(let c of e)o[c]=l[c];return o}createResolver(n,e,i=[""],r){let{resolver:o}=S4(this._resolverCache,n,i);return jt(e)?Eu(o,e,void 0,r):o}};function S4(t,n,e){let i=t.get(n);i||(i=new Map,t.set(n,i));let r=e.join(),o=i.get(r);return o||(o={resolver:tC(n,e),subPrefixes:e.filter(s=>!s.toLowerCase().includes("hover"))},i.set(r,o)),o}var oae=t=>jt(t)&&Object.getOwnPropertyNames(t).some(n=>Ol(t[n]));function aae(t,n){let{isScriptable:e,isIndexable:i}=bT(t);for(let r of n){let o=e(r),a=i(r),s=(a||o)&&t[r];if(o&&(Ol(s)||oae(s))||a&&Ri(s))return!0}return!1}var sae="4.5.1",lae=["top","bottom","left","right","chartArea"];function k4(t,n){return t==="top"||t==="bottom"||lae.indexOf(t)===-1&&n==="x"}function T4(t,n){return function(e,i){return e[t]===i[t]?e[n]-i[n]:e[t]-i[t]}}function I4(t){let n=t.chart,e=n.options.animation;n.notifyPlugins("afterRender"),ki(e&&e.onComplete,[t],n)}function cae(t){let n=t.chart,e=n.options.animation;ki(e&&e.onProgress,[t],n)}function fH(t){return iC()&&typeof t=="string"?t=document.getElementById(t):t&&t.length&&(t=t[0]),t&&t.canvas&&(t=t.canvas),t}var mC={},A4=t=>{let n=fH(t);return Object.values(mC).filter(e=>e.canvas===n).pop()};function dae(t,n,e){let i=Object.keys(t);for(let r of i){let o=+r;if(o>=n){let a=t[r];delete t[r],(e>0||o>n)&&(t[o+e]=a)}}}function uae(t,n,e,i){return!e||t.type==="mouseout"?null:i?n:t}var vC=(()=>{class t{static defaults=Ti;static instances=mC;static overrides=$c;static registry=Qs;static version=sae;static getChart=A4;static register(...e){Qs.add(...e),O4()}static unregister(...e){Qs.remove(...e),O4()}constructor(e,i){let r=this.config=new QT(i),o=fH(e),a=A4(o);if(a)throw new Error("Canvas is already in use. Chart with ID '"+a.id+"' must be destroyed before the canvas with ID '"+a.canvas.id+"' can be reused.");let s=r.createResolver(r.chartOptionScopes(),this.getContext());this.platform=new(r.platform||Ooe(o)),this.platform.updateConfig(r);let l=this.platform.acquireContext(o,s.aspectRatio),c=l&&l.canvas,d=c&&c.height,p=c&&c.width;if(this.id=Ij(),this.ctx=l,this.canvas=c,this.width=p,this.height=d,this._options=s,this._aspectRatio=this.aspectRatio,this._layers=[],this._metasets=[],this._stacks=void 0,this.boxes=[],this.currentDevicePixelRatio=void 0,this.chartArea=void 0,this._active=[],this._lastEvent=void 0,this._listeners={},this._responsiveListeners=void 0,this._sortedMetasets=[],this.scales={},this._plugins=new GT,this.$proxies={},this._hiddenIndices={},this.attached=!1,this._animationsDisabled=void 0,this.$context=void 0,this._doResize=Hj(_=>this.update(_),s.resizeDelay||0),this._dataChanges=[],mC[this.id]=this,!l||!c){console.error("Failed to create chart: can't acquire context from the given item");return}Nl.listen(this,"complete",I4),Nl.listen(this,"progress",cae),this._initialize(),this.attached&&this.update()}get aspectRatio(){let{options:{aspectRatio:e,maintainAspectRatio:i},width:r,height:o,_aspectRatio:a}=this;return Nt(e)?i&&a?a:o?r/o:null:e}get data(){return this.config.data}set data(e){this.config.data=e}get options(){return this._options}set options(e){this.config.options=e}get registry(){return Qs}_initialize(){return this.notifyPlugins("beforeInit"),this.options.responsive?this.resize():CT(this,this.options.devicePixelRatio),this.bindEvents(),this.notifyPlugins("afterInit"),this}clear(){return fT(this.canvas,this.ctx),this}stop(){return Nl.stop(this),this}resize(e,i){Nl.running(this)?this._resizeBeforeDraw={width:e,height:i}:this._resize(e,i)}_resize(e,i){let r=this.options,o=this.canvas,a=r.maintainAspectRatio&&this.aspectRatio,s=this.platform.getMaximumSize(o,e,i,a),l=r.devicePixelRatio||this.platform.getDevicePixelRatio(),c=this.width?"resize":"attach";this.width=s.width,this.height=s.height,this._aspectRatio=this.aspectRatio,CT(this,l,!0)&&(this.notifyPlugins("resize",{size:s}),ki(r.onResize,[this,s],this),this.attached&&this._doResize(c)&&this.render())}ensureScalesHaveIDs(){let i=this.options.scales||{};ui(i,(r,o)=>{r.id=o})}buildOrUpdateScales(){let e=this.options,i=e.scales,r=this.scales,o=Object.keys(r).reduce((s,l)=>(s[l]=!1,s),{}),a=[];i&&(a=a.concat(Object.keys(i).map(s=>{let l=i[s],c=YT(s,l),d=c==="r",p=c==="x";return{options:l,dposition:d?"chartArea":p?"bottom":"left",dtype:d?"radialLinear":p?"category":"linear"}}))),ui(a,s=>{let l=s.options,c=l.id,d=YT(c,l),p=ut(l.type,s.dtype);(l.position===void 0||k4(l.position,d)!==k4(s.dposition))&&(l.position=s.dposition),o[c]=!0;let _=null;if(c in r&&r[c].type===p)_=r[c];else{let b=Qs.getScale(p);_=new b({id:c,type:p,ctx:this.ctx,chart:this}),r[_.id]=_}_.init(l,e)}),ui(o,(s,l)=>{s||delete r[l]}),ui(r,s=>{Pr.configure(this,s,s.options),Pr.addBox(this,s)})}_updateMetasets(){let e=this._metasets,i=this.data.datasets.length,r=e.length;if(e.sort((o,a)=>o.index-a.index),r>i){for(let o=i;oi.length&&delete this._stacks,e.forEach((r,o)=>{i.filter(a=>a===r._dataset).length===0&&this._destroyDatasetMeta(o)})}buildOrUpdateControllers(){let e=[],i=this.data.datasets,r,o;for(this._removeUnreferencedMetasets(),r=0,o=i.length;r{this.getDatasetMeta(i).controller.reset()},this)}reset(){this._resetElements(),this.notifyPlugins("reset")}update(e){let i=this.config;i.update();let r=this._options=i.createResolver(i.chartOptionScopes(),this.getContext()),o=this._animationsDisabled=!r.animation;if(this._updateScales(),this._checkEventBindings(),this._updateHiddenIndices(),this._plugins.invalidate(),this.notifyPlugins("beforeUpdate",{mode:e,cancelable:!0})===!1)return;let a=this.buildOrUpdateControllers();this.notifyPlugins("beforeElementsUpdate");let s=0;for(let d=0,p=this.data.datasets.length;d{d.reset()}),this._updateDatasets(e),this.notifyPlugins("afterUpdate",{mode:e}),this._layers.sort(T4("z","_idx"));let{_active:l,_lastEvent:c}=this;c?this._eventHandler(c,!0):l.length&&this._updateHoverStyles(l,l,!0),this.render()}_updateScales(){ui(this.scales,e=>{Pr.removeBox(this,e)}),this.ensureScalesHaveIDs(),this.buildOrUpdateScales()}_checkEventBindings(){let e=this.options,i=new Set(Object.keys(this._listeners)),r=new Set(e.events);(!iT(i,r)||!!this._responsiveListeners!==e.responsive)&&(this.unbindEvents(),this.bindEvents())}_updateHiddenIndices(){let{_hiddenIndices:e}=this,i=this._getUniformDataChanges()||[];for(let{method:r,start:o,count:a}of i){let s=r==="_removeElements"?-a:a;dae(e,o,s)}}_getUniformDataChanges(){let e=this._dataChanges;if(!e||!e.length)return;this._dataChanges=[];let i=this.data.datasets.length,r=a=>new Set(e.filter(s=>s[0]===a).map((s,l)=>l+","+s.splice(1).join(","))),o=r(0);for(let a=1;aa.split(",")).map(a=>({method:a[1],start:+a[2],count:+a[3]}))}_updateLayout(e){if(this.notifyPlugins("beforeLayout",{cancelable:!0})===!1)return;Pr.update(this,this.width,this.height,e);let i=this.chartArea,r=i.width<=0||i.height<=0;this._layers=[],ui(this.boxes,o=>{r&&o.position==="chartArea"||(o.configure&&o.configure(),this._layers.push(...o._layers()))},this),this._layers.forEach((o,a)=>{o._idx=a}),this.notifyPlugins("afterLayout")}_updateDatasets(e){if(this.notifyPlugins("beforeDatasetsUpdate",{mode:e,cancelable:!0})!==!1){for(let i=0,r=this.data.datasets.length;i=0;--i)this._drawDataset(e[i]);this.notifyPlugins("afterDatasetsDraw")}_drawDataset(e){let i=this.ctx,r={meta:e,index:e.index,cancelable:!0},o=kT(this,e);this.notifyPlugins("beforeDatasetDraw",r)!==!1&&(o&&Gg(i,o),e.controller.draw(),o&&qg(i),r.cancelable=!1,this.notifyPlugins("afterDatasetDraw",r))}isPointInArea(e){return Ws(e,this.chartArea,this._minPadding)}getElementsAtEventForMode(e,i,r,o){let a=hoe.modes[i];return typeof a=="function"?a(this,e,r,o):[]}getDatasetMeta(e){let i=this.data.datasets[e],r=this._metasets,o=r.filter(a=>a&&a._dataset===i).pop();return o||(o={type:null,data:[],dataset:null,controller:null,hidden:null,xAxisID:null,yAxisID:null,order:i&&i.order||0,index:e,_dataset:i,_parsed:[],_sorted:!1},r.push(o)),o}getContext(){return this.$context||(this.$context=Fl(null,{chart:this,type:"chart"}))}getVisibleDatasetCount(){return this.getSortedVisibleDatasetMetas().length}isDatasetVisible(e){let i=this.data.datasets[e];if(!i)return!1;let r=this.getDatasetMeta(e);return typeof r.hidden=="boolean"?!r.hidden:!i.hidden}setDatasetVisibility(e,i){let r=this.getDatasetMeta(e);r.hidden=!i}toggleDataVisibility(e){this._hiddenIndices[e]=!this._hiddenIndices[e]}getDataVisibility(e){return!this._hiddenIndices[e]}_updateVisibility(e,i,r){let o=r?"show":"hide",a=this.getDatasetMeta(e),s=a.controller._resolveAnimations(void 0,o);Hh(i)?(a.data[i].hidden=!r,this.update()):(this.setDatasetVisibility(e,r),s.update(a,{visible:r}),this.update(l=>l.datasetIndex===e?o:void 0))}hide(e,i){this._updateVisibility(e,i,!1)}show(e,i){this._updateVisibility(e,i,!0)}_destroyDatasetMeta(e){let i=this._metasets[e];i&&i.controller&&i.controller._destroy(),delete this._metasets[e]}_stop(){let e,i;for(this.stop(),Nl.remove(this),e=0,i=this.data.datasets.length;e{i.addEventListener(this,a,s),e[a]=s},o=(a,s,l)=>{a.offsetX=s,a.offsetY=l,this._eventHandler(a)};ui(this.options.events,a=>r(a,o))}bindResponsiveEvents(){this._responsiveListeners||(this._responsiveListeners={});let e=this._responsiveListeners,i=this.platform,r=(c,d)=>{i.addEventListener(this,c,d),e[c]=d},o=(c,d)=>{e[c]&&(i.removeEventListener(this,c,d),delete e[c])},a=(c,d)=>{this.canvas&&this.resize(c,d)},s,l=()=>{o("attach",l),this.attached=!0,this.resize(),r("resize",a),r("detach",s)};s=()=>{this.attached=!1,o("resize",a),this._stop(),this._resize(0,0),r("attach",l)},i.isAttached(this.canvas)?l():s()}unbindEvents(){ui(this._listeners,(e,i)=>{this.platform.removeEventListener(this,i,e)}),this._listeners={},ui(this._responsiveListeners,(e,i)=>{this.platform.removeEventListener(this,i,e)}),this._responsiveListeners=void 0}updateHoverStyle(e,i,r){let o=r?"set":"remove",a,s,l,c;for(i==="dataset"&&(a=this.getDatasetMeta(e[0].datasetIndex),a.controller["_"+o+"DatasetHoverStyle"]()),l=0,c=e.length;l{let l=this.getDatasetMeta(a);if(!l)throw new Error("No dataset found at index "+a);return{datasetIndex:a,element:l.data[s],index:s}});!$g(r,i)&&(this._active=r,this._lastEvent=null,this._updateHoverStyles(r,i))}notifyPlugins(e,i,r){return this._plugins.notify(this,e,i,r)}isPluginEnabled(e){return this._plugins._cache.filter(i=>i.plugin.id===e).length===1}_updateHoverStyles(e,i,r){let o=this.options.hover,a=(c,d)=>c.filter(p=>!d.some(_=>p.datasetIndex===_.datasetIndex&&p.index===_.index)),s=a(i,e),l=r?e:a(e,i);s.length&&this.updateHoverStyle(s,o.mode,!1),l.length&&o.mode&&this.updateHoverStyle(l,o.mode,!0)}_eventHandler(e,i){let r={event:e,replay:i,cancelable:!0,inChartArea:this.isPointInArea(e)},o=s=>(s.options.events||this.options.events).includes(e.native.type);if(this.notifyPlugins("beforeEvent",r,o)===!1)return;let a=this._handleEvent(e,i,r.inChartArea);return r.cancelable=!1,this.notifyPlugins("afterEvent",r,o),(a||r.changed)&&this.render(),this}_handleEvent(e,i,r){let{_active:o=[],options:a}=this,s=i,l=this._getActiveElements(e,o,r,s),c=Rj(e),d=uae(e,this._lastEvent,r,c);r&&(this._lastEvent=null,ki(a.onHover,[e,l,this],this),c&&ki(a.onClick,[e,l,this],this));let p=!$g(l,o);return(p||i)&&(this._active=l,this._updateHoverStyles(l,o,i)),this._lastEvent=d,p}_getActiveElements(e,i,r,o){if(e.type==="mouseout")return[];if(!r)return i;let a=this.options.hover;return this.getElementsAtEventForMode(e,a.mode,a,o)}}return t})();function O4(){return ui(vC.instances,t=>t._plugins.invalidate())}function mae(t,n,e){let{startAngle:i,x:r,y:o,outerRadius:a,innerRadius:s,options:l}=n,{borderWidth:c,borderJoinStyle:d}=l,p=Math.min(c/a,pr(i-e));if(t.beginPath(),t.arc(r,o,a-c/2,i+p/2,e-p/2),s>0){let _=Math.min(c/s,pr(i-e));t.arc(r,o,s+c/2,e-_/2,i+_/2,!0)}else{let _=Math.min(c/2,a*pr(i-e));if(d==="round")t.arc(r,o,_,e-Jt/2,i+Jt/2,!0);else if(d==="bevel"){let b=2*_*_,y=-b*Math.cos(e+Jt/2)+r,w=-b*Math.sin(e+Jt/2)+o,C=b*Math.cos(i+Jt/2)+r,D=b*Math.sin(i+Jt/2)+o;t.lineTo(y,w),t.lineTo(C,D)}}t.closePath(),t.moveTo(0,0),t.rect(0,0,t.canvas.width,t.canvas.height),t.clip("evenodd")}function hae(t,n,e){let{startAngle:i,pixelMargin:r,x:o,y:a,outerRadius:s,innerRadius:l}=n,c=r/s;t.beginPath(),t.arc(o,a,s,i-c,e+c),l>r?(c=r/l,t.arc(o,a,l,e+c,i-c,!0)):t.arc(o,a,r,e+rn,i-rn),t.closePath(),t.clip()}function pae(t){return eC(t,["outerStart","outerEnd","innerStart","innerEnd"])}function fae(t,n,e,i){let r=pae(t.options.borderRadius),o=(e-n)/2,a=Math.min(o,i*n/2),s=l=>{let c=(e-Math.min(o,l))*i/2;return On(l,0,Math.min(o,c))};return{outerStart:s(r.outerStart),outerEnd:s(r.outerEnd),innerStart:On(r.innerStart,0,a),innerEnd:On(r.innerEnd,0,a)}}function qh(t,n,e,i){return{x:e+t*Math.cos(n),y:i+t*Math.sin(n)}}function gC(t,n,e,i,r,o){let{x:a,y:s,startAngle:l,pixelMargin:c,innerRadius:d}=n,p=Math.max(n.outerRadius+i+e-c,0),_=d>0?d+i+e+c:0,b=0,y=r-l;if(i){let bi=d>0?d-i:0,Hi=p>0?p-i:0,an=(bi+Hi)/2,Ta=an!==0?y*an/(an+i):y;b=(y-Ta)/2}let w=Math.max(.001,y*p-e/Jt)/p,C=(y-w)/2,D=l+C+b,F=r-C-b,{outerStart:W,outerEnd:Z,innerStart:K,innerEnd:oe}=fae(n,_,p,F-D),Se=p-W,ve=p-Z,Be=D+W/Se,wt=F-Z/ve,Ct=_+K,zt=_+oe,Jn=D+K/Ct,vo=F-oe/zt;if(t.beginPath(),o){let bi=(Be+wt)/2;if(t.arc(a,s,p,Be,bi),t.arc(a,s,p,bi,wt),Z>0){let br=qh(ve,wt,a,s);t.arc(br.x,br.y,Z,wt,F+rn)}let Hi=qh(zt,F,a,s);if(t.lineTo(Hi.x,Hi.y),oe>0){let br=qh(zt,vo,a,s);t.arc(br.x,br.y,oe,F+rn,vo+Math.PI)}let an=(F-oe/_+(D+K/_))/2;if(t.arc(a,s,_,F-oe/_,an,!0),t.arc(a,s,_,an,D+K/_,!0),K>0){let br=qh(Ct,Jn,a,s);t.arc(br.x,br.y,K,Jn+Math.PI,D-rn)}let Ta=qh(Se,D,a,s);if(t.lineTo(Ta.x,Ta.y),W>0){let br=qh(Se,Be,a,s);t.arc(br.x,br.y,W,D-rn,Be)}}else{t.moveTo(a,s);let bi=Math.cos(Be)*p+a,Hi=Math.sin(Be)*p+s;t.lineTo(bi,Hi);let an=Math.cos(wt)*p+a,Ta=Math.sin(wt)*p+s;t.lineTo(an,Ta)}t.closePath()}function gae(t,n,e,i,r){let{fullCircles:o,startAngle:a,circumference:s}=n,l=n.endAngle;if(o){gC(t,n,e,i,l,r);for(let c=0;c=Jt&&b===0&&d!=="miter"&&mae(t,n,w),o||(gC(t,n,e,i,w,r),t.stroke())}var KT=class extends ns{static id="arc";static defaults={borderAlign:"center",borderColor:"#fff",borderDash:[],borderDashOffset:0,borderJoinStyle:void 0,borderRadius:0,borderWidth:2,offset:0,spacing:0,angle:void 0,circular:!0,selfJoin:!1};static defaultRoutes={backgroundColor:"backgroundColor"};static descriptors={_scriptable:!0,_indexable:n=>n!=="borderDash"};circumference;endAngle;fullCircles;innerRadius;outerRadius;pixelMargin;startAngle;constructor(n){super(),this.options=void 0,this.circumference=void 0,this.startAngle=void 0,this.endAngle=void 0,this.innerRadius=void 0,this.outerRadius=void 0,this.pixelMargin=0,this.fullCircles=0,n&&Object.assign(this,n)}inRange(n,e,i){let r=this.getProps(["x","y"],i),{angle:o,distance:a}=aT(r,{x:n,y:e}),{startAngle:s,endAngle:l,innerRadius:c,outerRadius:d,circumference:p}=this.getProps(["startAngle","endAngle","innerRadius","outerRadius","circumference"],i),_=(this.options.spacing+this.options.borderWidth)/2,b=ut(p,l-s),y=Uh(o,s,l)&&s!==l,w=b>=Pi||y,C=qs(a,c+_,d+_);return w&&C}getCenterPoint(n){let{x:e,y:i,startAngle:r,endAngle:o,innerRadius:a,outerRadius:s}=this.getProps(["x","y","startAngle","endAngle","innerRadius","outerRadius"],n),{offset:l,spacing:c}=this.options,d=(r+o)/2,p=(a+s+c+l)/2;return{x:e+Math.cos(d)*p,y:i+Math.sin(d)*p}}tooltipPosition(n){return this.getCenterPoint(n)}draw(n){let{options:e,circumference:i}=this,r=(e.offset||0)/4,o=(e.spacing||0)/2,a=e.circular;if(this.pixelMargin=e.borderAlign==="inner"?.33:0,this.fullCircles=i>Pi?Math.floor(i/Pi):0,i===0||this.innerRadius<0||this.outerRadius<0)return;n.save();let s=(this.startAngle+this.endAngle)/2;n.translate(Math.cos(s)*r,Math.sin(s)*r);let l=1-Math.sin(Math.min(Jt,i||0)),c=r*l;n.fillStyle=e.backgroundColor,n.strokeStyle=e.borderColor,gae(n,this,c,o,a),_ae(n,this,c,o,a),n.restore()}};function gH(t,n,e=n){t.lineCap=ut(e.borderCapStyle,n.borderCapStyle),t.setLineDash(ut(e.borderDash,n.borderDash)),t.lineDashOffset=ut(e.borderDashOffset,n.borderDashOffset),t.lineJoin=ut(e.borderJoinStyle,n.borderJoinStyle),t.lineWidth=ut(e.borderWidth,n.borderWidth),t.strokeStyle=ut(e.borderColor,n.borderColor)}function bae(t,n,e){t.lineTo(e.x,e.y)}function vae(t){return t.stepped?Wj:t.tension||t.cubicInterpolationMode==="monotone"?Gj:bae}function _H(t,n,e={}){let i=t.length,{start:r=0,end:o=i-1}=e,{start:a,end:s}=n,l=Math.max(r,a),c=Math.min(o,s),d=rs&&o>s;return{count:i,start:l,loop:n.loop,ilen:c(a+(c?s-Z:Z))%o,W=()=>{w!==C&&(t.lineTo(d,C),t.lineTo(d,w),t.lineTo(d,D))};for(l&&(b=r[F(0)],t.moveTo(b.x,b.y)),_=0;_<=s;++_){if(b=r[F(_)],b.skip)continue;let Z=b.x,K=b.y,oe=Z|0;oe===y?(KC&&(C=K),d=(p*d+Z)/++p):(W(),t.lineTo(Z,K),y=oe,p=0,w=C=K),D=K}W()}function ZT(t){let n=t.options,e=n.borderDash&&n.borderDash.length;return!t._decimated&&!t._loop&&!n.tension&&n.cubicInterpolationMode!=="monotone"&&!n.stepped&&!e?xae:yae}function Cae(t){return t.stepped?t4:t.tension||t.cubicInterpolationMode==="monotone"?i4:zc}function wae(t,n,e,i){let r=n._path;r||(r=n._path=new Path2D,n.path(r,e,i)&&r.closePath()),gH(t,n.options),t.stroke(r)}function Dae(t,n,e,i){let{segments:r,options:o}=n,a=ZT(n);for(let s of r)gH(t,o,s.style),t.beginPath(),a(t,n,s,{start:e,end:e+i-1})&&t.closePath(),t.stroke()}var Mae=typeof Path2D=="function";function Eae(t,n,e,i){Mae&&!n.options.segment?wae(t,n,e,i):Dae(t,n,e,i)}var yC=(()=>{class t extends ns{static id="line";static defaults={borderCapStyle:"butt",borderDash:[],borderDashOffset:0,borderJoinStyle:"miter",borderWidth:3,capBezierPoints:!0,cubicInterpolationMode:"default",fill:!1,spanGaps:!1,stepped:!1,tension:0};static defaultRoutes={backgroundColor:"backgroundColor",borderColor:"borderColor"};static descriptors={_scriptable:!0,_indexable:e=>e!=="borderDash"&&e!=="fill"};constructor(e){super(),this.animated=!0,this.options=void 0,this._chart=void 0,this._loop=void 0,this._fullLoop=void 0,this._path=void 0,this._points=void 0,this._segments=void 0,this._decimated=!1,this._pointsUpdated=!1,this._datasetIndex=void 0,e&&Object.assign(this,e)}updateControlPoints(e,i){let r=this.options;if((r.tension||r.cubicInterpolationMode==="monotone")&&!r.stepped&&!this._pointsUpdated){let o=r.spanGaps?this._loop:this._fullLoop;Xj(this._points,r,e,o,i),this._pointsUpdated=!0}}set points(e){this._points=e,delete this._segments,delete this._path,this._pointsUpdated=!1}get points(){return this._points}get segments(){return this._segments||(this._segments=r4(this,this.options.segment))}first(){let e=this.segments,i=this.points;return e.length&&i[e[0].start]}last(){let e=this.segments,i=this.points,r=e.length;return r&&i[e[r-1].end]}interpolate(e,i){let r=this.options,o=e[i],a=this.points,s=ST(this,{property:i,start:o,end:o});if(!s.length)return;let l=[],c=Cae(r),d,p;for(d=0,p=s.length;d{class t extends ns{static id="point";parsed;skip;stop;static defaults={borderWidth:1,hitRadius:1,hoverBorderWidth:1,hoverRadius:4,pointStyle:"circle",radius:3,rotation:0};static defaultRoutes={backgroundColor:"backgroundColor",borderColor:"borderColor"};constructor(e){super(),this.options=void 0,this.parsed=void 0,this.skip=void 0,this.stop=void 0,e&&Object.assign(this,e)}inRange(e,i,r){let o=this.options,{x:a,y:s}=this.getProps(["x","y"],r);return Math.pow(e-a,2)+Math.pow(i-s,2)t.replace("rgb(","rgba(").replace(")",", 0.5)"));function vH(t){return JT[t%JT.length]}function yH(t){return P4[t%P4.length]}function Pae(t,n){return t.borderColor=vH(n),t.backgroundColor=yH(n),++n}function Fae(t,n){return t.backgroundColor=t.data.map(()=>vH(n++)),n}function Nae(t,n){return t.backgroundColor=t.data.map(()=>yH(n++)),n}function Lae(t){let n=0;return(e,i)=>{let r=t.getDatasetMeta(i).controller;r instanceof sI?n=Fae(e,n):r instanceof sH?n=Nae(e,n):r&&(n=Pae(e,n))}}function F4(t){let n;for(n in t)if(t[n].borderColor||t[n].backgroundColor)return!0;return!1}function Vae(t){return t&&(t.borderColor||t.backgroundColor)}function Bae(){return Ti.borderColor!=="rgba(0,0,0,0.1)"||Ti.backgroundColor!=="rgba(0,0,0,0.1)"}var jae={id:"colors",defaults:{enabled:!0,forceOverride:!1},beforeLayout(t,n,e){if(!e.enabled)return;let{data:{datasets:i},options:r}=t.config,{elements:o}=r,a=F4(i)||Vae(r)||o&&F4(o)||Bae();if(!e.forceOverride&&a)return;let s=Lae(t);i.forEach(s)}};function Hae(t,n,e,i,r){let o=r.samples||i;if(o>=e)return t.slice(n,n+e);let a=[],s=(e-2)/(o-2),l=0,c=n+e-1,d=n,p,_,b,y,w;for(a[l++]=t[d],p=0;pb&&(b=y,_=t[F],w=F);a[l++]=_,d=w}return a[l++]=t[c],a}function zae(t,n,e,i){let r=0,o=0,a,s,l,c,d,p,_,b,y,w,C=[],D=n+e-1,F=t[n].x,Z=t[D].x-F;for(a=n;aw&&(w=c,_=a),r=(o*r+s.x)/++o;else{let oe=a-1;if(!Nt(p)&&!Nt(_)){let Se=Math.min(p,_),ve=Math.max(p,_);Se!==b&&Se!==oe&&C.push(Me(I({},t[Se]),{x:r})),ve!==b&&ve!==oe&&C.push(Me(I({},t[ve]),{x:r}))}a>0&&oe!==b&&C.push(t[oe]),C.push(s),d=K,o=0,y=w=c,p=_=b=a}}return C}function xH(t){if(t._decimated){let n=t._data;delete t._decimated,delete t._data,Object.defineProperty(t,"data",{configurable:!0,enumerable:!0,writable:!0,value:n})}}function N4(t){t.data.datasets.forEach(n=>{xH(n)})}function Uae(t,n){let e=n.length,i=0,r,{iScale:o}=t,{min:a,max:s,minDefined:l,maxDefined:c}=o.getUserBounds();return l&&(i=On($s(n,o.axis,a).lo,0,e-1)),c?r=On($s(n,o.axis,s).hi+1,i,e)-i:r=e-i,{start:i,count:r}}var $ae={id:"decimation",defaults:{algorithm:"min-max",enabled:!1},beforeElementsUpdate:(t,n,e)=>{if(!e.enabled){N4(t);return}let i=t.width;t.data.datasets.forEach((r,o)=>{let{_data:a,indexAxis:s}=r,l=t.getDatasetMeta(o),c=a||r.data;if(Gh([s,t.options.indexAxis])==="y"||!l.controller.supportsDecimation)return;let d=t.scales[l.xAxisID];if(d.type!=="linear"&&d.type!=="time"||t.options.parsing)return;let{start:p,count:_}=Uae(l,c),b=e.threshold||4*i;if(_<=b){xH(r);return}Nt(a)&&(r._data=c,delete r.data,Object.defineProperty(r,"data",{configurable:!0,enumerable:!0,get:function(){return this._decimated},set:function(w){this._data=w}}));let y;switch(e.algorithm){case"lttb":y=Hae(c,p,_,i,e);break;case"min-max":y=zae(c,p,_,i);break;default:throw new Error(`Unsupported decimation algorithm '${e.algorithm}'`)}r._decimated=y})},destroy(t){N4(t)}};function Wae(t,n,e){let i=t.segments,r=t.points,o=n.points,a=[];for(let s of i){let{start:l,end:c}=s;c=xC(l,c,r);let d=eI(e,r[l],r[c],s.loop);if(!n.segments){a.push({source:s,target:d,start:r[l],end:r[c]});continue}let p=ST(n,d);for(let _ of p){let b=eI(e,o[_.start],o[_.end],_.loop),y=ET(s,r,b);for(let w of y)a.push({source:w,target:_,start:{[e]:L4(d,b,"start",Math.max)},end:{[e]:L4(d,b,"end",Math.min)}})}}return a}function eI(t,n,e,i){if(i)return;let r=n[t],o=e[t];return t==="angle"&&(r=pr(r),o=pr(o)),{property:t,start:r,end:o}}function Gae(t,n){let{x:e=null,y:i=null}=t||{},r=n.points,o=[];return n.segments.forEach(({start:a,end:s})=>{s=xC(a,s,r);let l=r[a],c=r[s];i!==null?(o.push({x:l.x,y:i}),o.push({x:c.x,y:i})):e!==null&&(o.push({x:e,y:l.y}),o.push({x:e,y:c.y}))}),o}function xC(t,n,e){for(;n>t;n--){let i=e[n];if(!isNaN(i.x)&&!isNaN(i.y))break}return n}function L4(t,n,e,i){return t&&n?i(t[e],n[e]):t?t[e]:n?n[e]:0}function CH(t,n){let e=[],i=!1;return Ri(t)?(i=!0,e=t):e=Gae(t,n),e.length?new yC({points:e,options:{tension:0},_loop:i,_fullLoop:i}):null}function V4(t){return t&&t.fill!==!1}function qae(t,n,e){let r=t[n].fill,o=[n],a;if(!e)return r;for(;r!==!1&&o.indexOf(r)===-1;){if(!Xi(r))return r;if(a=t[r],!a)return!1;if(a.visible)return r;o.push(r),r=a.fill}return!1}function Yae(t,n,e){let i=Xae(t);if(jt(i))return isNaN(i.value)?!1:i;let r=parseFloat(i);return Xi(r)&&Math.floor(r)===r?Qae(i[0],n,r,e):["origin","start","end","stack","shape"].indexOf(i)>=0&&i}function Qae(t,n,e,i){return(t==="-"||t==="+")&&(e=n+e),e===n||e<0||e>=i?!1:e}function Kae(t,n){let e=null;return t==="start"?e=n.bottom:t==="end"?e=n.top:jt(t)?e=n.getPixelForValue(t.value):n.getBasePixel&&(e=n.getBasePixel()),e}function Zae(t,n,e){let i;return t==="start"?i=e:t==="end"?i=n.options.reverse?n.min:n.max:jt(t)?i=t.value:i=n.getBaseValue(),i}function Xae(t){let n=t.options,e=n.fill,i=ut(e&&e.target,e);return i===void 0&&(i=!!n.backgroundColor),i===!1||i===null?!1:i===!0?"origin":i}function Jae(t){let{scale:n,index:e,line:i}=t,r=[],o=i.segments,a=i.points,s=ese(n,e);s.push(CH({x:null,y:n.bottom},i));for(let l=0;l=0;--a){let s=r[a].$filler;s&&(s.line.updateControlPoints(o,s.axis),i&&s.fill&&VT(t.ctx,s,o))}},beforeDatasetsDraw(t,n,e){if(e.drawTime!=="beforeDatasetsDraw")return;let i=t.getSortedVisibleDatasetMetas();for(let r=i.length-1;r>=0;--r){let o=i[r].$filler;V4(o)&&VT(t.ctx,o,t.chartArea)}},beforeDatasetDraw(t,n,e){let i=n.meta.$filler;!V4(i)||e.drawTime!=="beforeDatasetDraw"||VT(t.ctx,i,t.chartArea)},defaults:{propagate:!0,drawTime:"beforeDatasetDraw"}},z4=(t,n)=>{let{boxHeight:e=n,boxWidth:i=n}=t;return t.usePointStyle&&(e=Math.min(e,n),i=t.pointStyleWidth||Math.min(i,n)),{boxWidth:i,boxHeight:e,itemHeight:Math.max(n,e)}},use=(t,n)=>t!==null&&n!==null&&t.datasetIndex===n.datasetIndex&&t.index===n.index,bC=class extends ns{constructor(n){super(),this._added=!1,this.legendHitBoxes=[],this._hoveredItem=null,this.doughnutMode=!1,this.chart=n.chart,this.options=n.options,this.ctx=n.ctx,this.legendItems=void 0,this.columnSizes=void 0,this.lineWidths=void 0,this.maxHeight=void 0,this.maxWidth=void 0,this.top=void 0,this.bottom=void 0,this.left=void 0,this.right=void 0,this.height=void 0,this.width=void 0,this._margins=void 0,this.position=void 0,this.weight=void 0,this.fullSize=void 0}update(n,e,i){this.maxWidth=n,this.maxHeight=e,this._margins=i,this.setDimensions(),this.buildLabels(),this.fit()}setDimensions(){this.isHorizontal()?(this.width=this.maxWidth,this.left=this._margins.left,this.right=this.width):(this.height=this.maxHeight,this.top=this._margins.top,this.bottom=this.height)}buildLabels(){let n=this.options.labels||{},e=ki(n.generateLabels,[this.chart],this)||[];n.filter&&(e=e.filter(i=>n.filter(i,this.chart.data))),n.sort&&(e=e.sort((i,r)=>n.sort(i,r,this.chart.data))),this.options.reverse&&e.reverse(),this.legendItems=e}fit(){let{options:n,ctx:e}=this;if(!n.display){this.width=this.height=0;return}let i=n.labels,r=vn(i.font),o=r.size,a=this._computeTitleHeight(),{boxWidth:s,itemHeight:l}=z4(i,o),c,d;e.font=r.string,this.isHorizontal()?(c=this.maxWidth,d=this._fitRows(a,o,s,l)+10):(d=this.maxHeight,c=this._fitCols(a,r,s,l)+10),this.width=Math.min(c,n.maxWidth||this.maxWidth),this.height=Math.min(d,n.maxHeight||this.maxHeight)}_fitRows(n,e,i,r){let{ctx:o,maxWidth:a,options:{labels:{padding:s}}}=this,l=this.legendHitBoxes=[],c=this.lineWidths=[0],d=r+s,p=n;o.textAlign="left",o.textBaseline="middle";let _=-1,b=-d;return this.legendItems.forEach((y,w)=>{let C=i+e/2+o.measureText(y.text).width;(w===0||c[c.length-1]+C+2*s>a)&&(p+=d,c[c.length-(w>0?0:1)]=0,b+=d,_++),l[w]={left:0,top:b,row:_,width:C,height:r},c[c.length-1]+=C+s}),p}_fitCols(n,e,i,r){let{ctx:o,maxHeight:a,options:{labels:{padding:s}}}=this,l=this.legendHitBoxes=[],c=this.columnSizes=[],d=a-n,p=s,_=0,b=0,y=0,w=0;return this.legendItems.forEach((C,D)=>{let{itemWidth:F,itemHeight:W}=mse(i,e,o,C,r);D>0&&b+W+2*s>d&&(p+=_+s,c.push({width:_,height:b}),y+=_+s,w++,_=b=0),l[D]={left:y,top:b,col:w,width:F,height:W},_=Math.max(_,F),b+=W+s}),p+=_,c.push({width:_,height:b}),p}adjustHitBoxes(){if(!this.options.display)return;let n=this._computeTitleHeight(),{legendHitBoxes:e,options:{align:i,labels:{padding:r},rtl:o}}=this,a=ku(o,this.left,this.width);if(this.isHorizontal()){let s=0,l=fr(i,this.left+r,this.right-this.lineWidths[s]);for(let c of e)s!==c.row&&(s=c.row,l=fr(i,this.left+r,this.right-this.lineWidths[s])),c.top+=this.top+n+r,c.left=a.leftForLtr(a.x(l),c.width),l+=c.width+r}else{let s=0,l=fr(i,this.top+n+r,this.bottom-this.columnSizes[s].height);for(let c of e)c.col!==s&&(s=c.col,l=fr(i,this.top+n+r,this.bottom-this.columnSizes[s].height)),c.top=l,c.left+=this.left+r,c.left=a.leftForLtr(a.x(c.left),c.width),l+=c.height+r}}isHorizontal(){return this.options.position==="top"||this.options.position==="bottom"}draw(){if(this.options.display){let n=this.ctx;Gg(n,this),this._draw(),qg(n)}}_draw(){let{options:n,columnSizes:e,lineWidths:i,ctx:r}=this,{align:o,labels:a}=n,s=Ti.color,l=ku(n.rtl,this.left,this.width),c=vn(a.font),{padding:d}=a,p=c.size,_=p/2,b;this.drawTitle(),r.textAlign=l.textAlign("left"),r.textBaseline="middle",r.lineWidth=.5,r.font=c.string;let{boxWidth:y,boxHeight:w,itemHeight:C}=z4(a,p),D=function(oe,Se,ve){if(isNaN(y)||y<=0||isNaN(w)||w<0)return;r.save();let Be=ut(ve.lineWidth,1);if(r.fillStyle=ut(ve.fillStyle,s),r.lineCap=ut(ve.lineCap,"butt"),r.lineDashOffset=ut(ve.lineDashOffset,0),r.lineJoin=ut(ve.lineJoin,"miter"),r.lineWidth=Be,r.strokeStyle=ut(ve.strokeStyle,s),r.setLineDash(ut(ve.lineDash,[])),a.usePointStyle){let wt={radius:w*Math.SQRT2/2,pointStyle:ve.pointStyle,rotation:ve.rotation,borderWidth:Be},Ct=l.xPlus(oe,y/2),zt=Se+_;gT(r,wt,Ct,zt,a.pointStyleWidth&&y)}else{let wt=Se+Math.max((p-w)/2,0),Ct=l.leftForLtr(oe,y),zt=qc(ve.borderRadius);r.beginPath(),Object.values(zt).some(Jn=>Jn!==0)?Wh(r,{x:Ct,y:wt,w:y,h:w,radius:zt}):r.rect(Ct,wt,y,w),r.fill(),Be!==0&&r.stroke()}r.restore()},F=function(oe,Se,ve){Gc(r,ve.text,oe,Se+C/2,c,{strikethrough:ve.hidden,textAlign:l.textAlign(ve.textAlign)})},W=this.isHorizontal(),Z=this._computeTitleHeight();W?b={x:fr(o,this.left+d,this.right-i[0]),y:this.top+d+Z,line:0}:b={x:this.left+d,y:fr(o,this.top+Z+d,this.bottom-e[0].height),line:0},DT(this.ctx,n.textDirection);let K=C+d;this.legendItems.forEach((oe,Se)=>{r.strokeStyle=oe.fontColor,r.fillStyle=oe.fontColor;let ve=r.measureText(oe.text).width,Be=l.textAlign(oe.textAlign||(oe.textAlign=a.textAlign)),wt=y+_+ve,Ct=b.x,zt=b.y;l.setWidth(this.width),W?Se>0&&Ct+wt+d>this.right&&(zt=b.y+=K,b.line++,Ct=b.x=fr(o,this.left+d,this.right-i[b.line])):Se>0&&zt+K>this.bottom&&(Ct=b.x=Ct+e[b.line].width+d,b.line++,zt=b.y=fr(o,this.top+Z+d,this.bottom-e[b.line].height));let Jn=l.x(Ct);if(D(Jn,zt,oe),Ct=zj(Be,Ct+y+_,W?Ct+wt:this.right,n.rtl),F(l.x(Ct),zt,oe),W)b.x+=wt+d;else if(typeof oe.text!="string"){let vo=c.lineHeight;b.y+=wH(oe,vo)+d}else b.y+=K}),MT(this.ctx,n.textDirection)}drawTitle(){let n=this.options,e=n.title,i=vn(e.font),r=gr(e.padding);if(!e.display)return;let o=ku(n.rtl,this.left,this.width),a=this.ctx,s=e.position,l=i.size/2,c=r.top+l,d,p=this.left,_=this.width;if(this.isHorizontal())_=Math.max(...this.lineWidths),d=this.top+c,p=fr(n.align,p,this.right-_);else{let y=this.columnSizes.reduce((w,C)=>Math.max(w,C.height),0);d=c+fr(n.align,this.top,this.bottom-y-n.labels.padding-this._computeTitleHeight())}let b=fr(s,p,p+_);a.textAlign=o.textAlign(Zx(s)),a.textBaseline="middle",a.strokeStyle=e.color,a.fillStyle=e.color,a.font=i.string,Gc(a,e.text,b,d,i)}_computeTitleHeight(){let n=this.options.title,e=vn(n.font),i=gr(n.padding);return n.display?e.lineHeight+i.height:0}_getLegendItemAt(n,e){let i,r,o;if(qs(n,this.left,this.right)&&qs(e,this.top,this.bottom)){for(o=this.legendHitBoxes,i=0;io.length>a.length?o:a)),n+e.size/2+i.measureText(r).width}function pse(t,n,e){let i=t;return typeof n.text!="string"&&(i=wH(n,e)),i}function wH(t,n){let e=t.text?t.text.length:0;return n*e}function fse(t,n){return!!((t==="mousemove"||t==="mouseout")&&(n.onHover||n.onLeave)||n.onClick&&(t==="click"||t==="mouseup"))}var gse={id:"legend",_element:bC,start(t,n,e){let i=t.legend=new bC({ctx:t.ctx,options:e,chart:t});Pr.configure(t,i,e),Pr.addBox(t,i)},stop(t){Pr.removeBox(t,t.legend),delete t.legend},beforeUpdate(t,n,e){let i=t.legend;Pr.configure(t,i,e),i.options=e},afterUpdate(t){let n=t.legend;n.buildLabels(),n.adjustHitBoxes()},afterEvent(t,n){n.replay||t.legend.handleEvent(n.event)},defaults:{display:!0,position:"top",align:"center",fullSize:!0,reverse:!1,weight:1e3,onClick(t,n,e){let i=n.datasetIndex,r=e.chart;r.isDatasetVisible(i)?(r.hide(i),n.hidden=!0):(r.show(i),n.hidden=!1)},onHover:null,onLeave:null,labels:{color:t=>t.chart.options.color,boxWidth:40,padding:10,generateLabels(t){let n=t.data.datasets,{labels:{usePointStyle:e,pointStyle:i,textAlign:r,color:o,useBorderRadius:a,borderRadius:s}}=t.legend.options;return t._getSortedDatasetMetas().map(l=>{let c=l.controller.getStyle(e?0:void 0),d=gr(c.borderWidth);return{text:n[l.index].label,fillStyle:c.backgroundColor,fontColor:o,hidden:!l.visible,lineCap:c.borderCapStyle,lineDash:c.borderDash,lineDashOffset:c.borderDashOffset,lineJoin:c.borderJoinStyle,lineWidth:(d.width+d.height)/4,strokeStyle:c.borderColor,pointStyle:i||c.pointStyle,rotation:c.rotation,textAlign:r||c.textAlign,borderRadius:a&&(s||c.borderRadius),datasetIndex:l.index}},this)}},title:{color:t=>t.chart.options.color,display:!1,position:"center",text:""}},descriptors:{_scriptable:t=>!t.startsWith("on"),labels:{_scriptable:t=>!["generateLabels","filter","sort"].includes(t)}}},i_=class extends ns{constructor(n){super(),this.chart=n.chart,this.options=n.options,this.ctx=n.ctx,this._padding=void 0,this.top=void 0,this.bottom=void 0,this.left=void 0,this.right=void 0,this.width=void 0,this.height=void 0,this.position=void 0,this.weight=void 0,this.fullSize=void 0}update(n,e){let i=this.options;if(this.left=0,this.top=0,!i.display){this.width=this.height=this.right=this.bottom=0;return}this.width=this.right=n,this.height=this.bottom=e;let r=Ri(i.text)?i.text.length:1;this._padding=gr(i.padding);let o=r*vn(i.font).lineHeight+this._padding.height;this.isHorizontal()?this.height=o:this.width=o}isHorizontal(){let n=this.options.position;return n==="top"||n==="bottom"}_drawArgs(n){let{top:e,left:i,bottom:r,right:o,options:a}=this,s=a.align,l=0,c,d,p;return this.isHorizontal()?(d=fr(s,i,o),p=e+n,c=o-i):(a.position==="left"?(d=i+n,p=fr(s,r,e),l=Jt*-.5):(d=o-n,p=fr(s,e,r),l=Jt*.5),c=r-e),{titleX:d,titleY:p,maxWidth:c,rotation:l}}draw(){let n=this.ctx,e=this.options;if(!e.display)return;let i=vn(e.font),o=i.lineHeight/2+this._padding.top,{titleX:a,titleY:s,maxWidth:l,rotation:c}=this._drawArgs(o);Gc(n,e.text,0,0,i,{color:e.color,maxWidth:l,rotation:c,textAlign:Zx(e.align),textBaseline:"middle",translation:[a,s]})}};function _se(t,n){let e=new i_({ctx:t.ctx,options:n,chart:t});Pr.configure(t,e,n),Pr.addBox(t,e),t.titleBlock=e}var bse={id:"title",_element:i_,start(t,n,e){_se(t,e)},stop(t){let n=t.titleBlock;Pr.removeBox(t,n),delete t.titleBlock},beforeUpdate(t,n,e){let i=t.titleBlock;Pr.configure(t,i,e),i.options=e},defaults:{align:"center",display:!1,font:{weight:"bold"},fullSize:!0,padding:10,position:"top",text:"",weight:2e3},defaultRoutes:{color:"color"},descriptors:{_scriptable:!0,_indexable:!1}},lC=new WeakMap,vse={id:"subtitle",start(t,n,e){let i=new i_({ctx:t.ctx,options:e,chart:t});Pr.configure(t,i,e),Pr.addBox(t,i),lC.set(t,i)},stop(t){Pr.removeBox(t,lC.get(t)),lC.delete(t)},beforeUpdate(t,n,e){let i=lC.get(t);Pr.configure(t,i,e),i.options=e},defaults:{align:"center",display:!1,font:{weight:"normal"},fullSize:!0,padding:0,position:"top",text:"",weight:1500},defaultRoutes:{color:"color"},descriptors:{_scriptable:!0,_indexable:!1}},e_={average(t){if(!t.length)return!1;let n,e,i=new Set,r=0,o=0;for(n=0,e=t.length;ns+l)/i.size,y:r/o}},nearest(t,n){if(!t.length)return!1;let e=n.x,i=n.y,r=Number.POSITIVE_INFINITY,o,a,s;for(o=0,a=t.length;o-1?t.split(` -`):t}function vse(t,n){let{element:e,datasetIndex:i,index:r}=n,o=t.getDatasetMeta(i).controller,{label:a,value:s}=o.getLabelAndValue(r);return{chart:t,label:a,parsed:o.getParsed(r),raw:t.data.datasets[i].data[r],formattedValue:s,dataset:o.getDataset(),dataIndex:r,datasetIndex:i,element:e}}function U4(t,n){let e=t.chart.ctx,{body:i,footer:r,title:o}=t,{boxWidth:a,boxHeight:s}=n,l=fn(n.bodyFont),c=fn(n.titleFont),d=fn(n.footerFont),p=o.length,_=r.length,b=i.length,y=cr(n.padding),w=y.height,C=0,D=i.reduce((Z,K)=>Z+K.before.length+K.lines.length+K.after.length,0);if(D+=t.beforeBody.length+t.afterBody.length,p&&(w+=p*c.lineHeight+(p-1)*n.titleSpacing+n.titleMarginBottom),D){let Z=n.displayColors?Math.max(s,l.lineHeight):l.lineHeight;w+=b*Z+(D-b)*l.lineHeight+(D-1)*n.bodySpacing}_&&(w+=n.footerMarginTop+_*d.lineHeight+(_-1)*n.footerSpacing);let F=0,W=function(Z){C=Math.max(C,e.measureText(Z).width+F)};return e.save(),e.font=c.string,ai(t.title,W),e.font=l.string,ai(t.beforeBody.concat(t.afterBody),W),F=n.displayColors?a+2+n.boxPadding:0,ai(i,Z=>{ai(Z.before,W),ai(Z.lines,W),ai(Z.after,W)}),F=0,e.font=d.string,ai(t.footer,W),e.restore(),C+=y.width,{width:C,height:w}}function yse(t,n){let{y:e,height:i}=n;return et.height-i/2?"bottom":"center"}function xse(t,n,e,i){let{x:r,width:o}=i,a=e.caretSize+e.caretPadding;if(t==="left"&&r+o+a>n.width||t==="right"&&r-o-a<0)return!0}function Cse(t,n,e,i){let{x:r,width:o}=e,{width:a,chartArea:{left:s,right:l}}=t,c="center";return i==="center"?c=r<=(s+l)/2?"left":"right":r<=o/2?c="left":r>=a-o/2&&(c="right"),xse(c,t,n,e)&&(c="center"),c}function $4(t,n,e){let i=e.yAlign||n.yAlign||yse(t,e);return{xAlign:e.xAlign||n.xAlign||Cse(t,n,e,i),yAlign:i}}function wse(t,n){let{x:e,width:i}=t;return n==="right"?e-=i:n==="center"&&(e-=i/2),e}function Dse(t,n,e){let{y:i,height:r}=t;return n==="top"?i+=e:n==="bottom"?i-=r+e:i-=r/2,i}function W4(t,n,e,i){let{caretSize:r,caretPadding:o,cornerRadius:a}=t,{xAlign:s,yAlign:l}=e,c=r+o,{topLeft:d,topRight:p,bottomLeft:_,bottomRight:b}=Ac(a),y=wse(n,s),w=Dse(n,l,c);return l==="center"?s==="left"?y+=c:s==="right"&&(y-=c):s==="left"?y-=Math.max(d,_)+r:s==="right"&&(y+=Math.max(p,b)+r),{x:Sn(y,0,i.width-n.width),y:Sn(w,0,i.height-n.height)}}function aC(t,n,e){let i=cr(e.padding);return n==="center"?t.x+t.width/2:n==="right"?t.x+t.width-i.right:t.x+i.left}function G4(t){return Os([],Cl(t))}function Ese(t,n,e){return yl(t,{tooltip:n,tooltipItems:e,type:"tooltip"})}function q4(t,n){let e=n&&n.dataset&&n.dataset.tooltip&&n.dataset.tooltip.callbacks;return e?t.override(e):t}var D5={beforeTitle:Is,title(t){if(t.length>0){let n=t[0],e=n.chart.data.labels,i=e?e.length:0;if(this&&this.options&&this.options.mode==="dataset")return n.dataset.label||"";if(n.label)return n.label;if(i>0&&n.dataIndex"u"?D5[n].call(e,i):r}var Y4=(()=>{class t extends za{static positioners=Jg;constructor(e){super(),this.opacity=0,this._active=[],this._eventPosition=void 0,this._size=void 0,this._cachedAnimations=void 0,this._tooltipItems=[],this.$animations=void 0,this.$context=void 0,this.chart=e.chart,this.options=e.options,this.dataPoints=void 0,this.title=void 0,this.beforeBody=void 0,this.body=void 0,this.afterBody=void 0,this.footer=void 0,this.xAlign=void 0,this.yAlign=void 0,this.x=void 0,this.y=void 0,this.height=void 0,this.width=void 0,this.caretX=void 0,this.caretY=void 0,this.labelColors=void 0,this.labelPointStyles=void 0,this.labelTextColors=void 0}initialize(e){this.options=e,this._cachedAnimations=void 0,this.$context=void 0}_resolveAnimations(){let e=this._cachedAnimations;if(e)return e;let i=this.chart,r=this.options.setContext(this.getContext()),o=r.enabled&&i.options.animation&&r.animations,a=new dC(this.chart,o);return o._cacheable&&(this._cachedAnimations=Object.freeze(a)),a}getContext(){return this.$context||(this.$context=Ese(this.chart.getContext(),this,this._tooltipItems))}getTitle(e,i){let{callbacks:r}=i,o=lo(r,"beforeTitle",this,e),a=lo(r,"title",this,e),s=lo(r,"afterTitle",this,e),l=[];return l=Os(l,Cl(o)),l=Os(l,Cl(a)),l=Os(l,Cl(s)),l}getBeforeBody(e,i){return G4(lo(i.callbacks,"beforeBody",this,e))}getBody(e,i){let{callbacks:r}=i,o=[];return ai(e,a=>{let s={before:[],lines:[],after:[]},l=q4(r,a);Os(s.before,Cl(lo(l,"beforeLabel",this,a))),Os(s.lines,lo(l,"label",this,a)),Os(s.after,Cl(lo(l,"afterLabel",this,a))),o.push(s)}),o}getAfterBody(e,i){return G4(lo(i.callbacks,"afterBody",this,e))}getFooter(e,i){let{callbacks:r}=i,o=lo(r,"beforeFooter",this,e),a=lo(r,"footer",this,e),s=lo(r,"afterFooter",this,e),l=[];return l=Os(l,Cl(o)),l=Os(l,Cl(a)),l=Os(l,Cl(s)),l}_createItems(e){let i=this._active,r=this.chart.data,o=[],a=[],s=[],l=[],c,d;for(c=0,d=i.length;ce.filter(p,_,b,r))),e.itemSort&&(l=l.sort((p,_)=>e.itemSort(p,_,r))),ai(l,p=>{let _=q4(e.callbacks,p);o.push(lo(_,"labelColor",this,p)),a.push(lo(_,"labelPointStyle",this,p)),s.push(lo(_,"labelTextColor",this,p))}),this.labelColors=o,this.labelPointStyles=a,this.labelTextColors=s,this.dataPoints=l,l}update(e,i){let r=this.options.setContext(this.getContext()),o=this._active,a,s=[];if(!o.length)this.opacity!==0&&(a={opacity:0});else{let l=Jg[r.position].call(this,o,this._eventPosition);s=this._createItems(r),this.title=this.getTitle(s,r),this.beforeBody=this.getBeforeBody(s,r),this.body=this.getBody(s,r),this.afterBody=this.getAfterBody(s,r),this.footer=this.getFooter(s,r);let c=this._size=U4(this,r),d=Object.assign({},l,c),p=$4(this.chart,r,d),_=W4(r,d,p,this.chart);this.xAlign=p.xAlign,this.yAlign=p.yAlign,a={opacity:1,x:_.x,y:_.y,width:c.width,height:c.height,caretX:l.x,caretY:l.y}}this._tooltipItems=s,this.$context=void 0,a&&this._resolveAnimations().update(this,a),e&&r.external&&r.external.call(this,{chart:this.chart,tooltip:this,replay:i})}drawCaret(e,i,r,o){let a=this.getCaretPosition(e,r,o);i.lineTo(a.x1,a.y1),i.lineTo(a.x2,a.y2),i.lineTo(a.x3,a.y3)}getCaretPosition(e,i,r){let{xAlign:o,yAlign:a}=this,{caretSize:s,cornerRadius:l}=r,{topLeft:c,topRight:d,bottomLeft:p,bottomRight:_}=Ac(l),{x:b,y}=e,{width:w,height:C}=i,D,F,W,Z,K,oe;return a==="center"?(K=y+C/2,o==="left"?(D=b,F=D-s,Z=K+s,oe=K-s):(D=b+w,F=D+s,Z=K-s,oe=K+s),W=D):(o==="left"?F=b+Math.max(c,p)+s:o==="right"?F=b+w-Math.max(d,_)-s:F=this.caretX,a==="top"?(Z=y,K=Z-s,D=F-s,W=F+s):(Z=y+C,K=Z+s,D=F+s,W=F-s),oe=Z),{x1:D,x2:F,x3:W,y1:Z,y2:K,y3:oe}}drawTitle(e,i,r){let o=this.title,a=o.length,s,l,c;if(a){let d=Su(r.rtl,this.x,this.width);for(e.x=aC(this,r.titleAlign,r),i.textAlign=d.textAlign(r.titleAlign),i.textBaseline="middle",s=fn(r.titleFont),l=r.titleSpacing,i.fillStyle=r.titleColor,i.font=s.string,c=0;cW!==0)?(e.beginPath(),e.fillStyle=a.multiKeyBackground,Gh(e,{x:C,y:w,w:d,h:c,radius:F}),e.fill(),e.stroke(),e.fillStyle=s.backgroundColor,e.beginPath(),Gh(e,{x:D,y:w+1,w:d-2,h:c-2,radius:F}),e.fill()):(e.fillStyle=a.multiKeyBackground,e.fillRect(C,w,d,c),e.strokeRect(C,w,d,c),e.fillStyle=s.backgroundColor,e.fillRect(D,w+1,d-2,c-2))}e.fillStyle=this.labelTextColors[r]}drawBody(e,i,r){let{body:o}=this,{bodySpacing:a,bodyAlign:s,displayColors:l,boxHeight:c,boxWidth:d,boxPadding:p}=r,_=fn(r.bodyFont),b=_.lineHeight,y=0,w=Su(r.rtl,this.x,this.width),C=function(Ve){i.fillText(Ve,w.x(e.x+y),e.y+b/2),e.y+=b+a},D=w.textAlign(s),F,W,Z,K,oe,ke,ve;for(i.textAlign=s,i.textBaseline="middle",i.font=_.string,e.x=aC(this,D,r),i.fillStyle=r.bodyColor,ai(this.beforeBody,C),y=l&&D!=="right"?s==="center"?d/2+p:d+2+p:0,K=0,ke=o.length;K0&&i.stroke()}_updateAnimationTarget(e){let i=this.chart,r=this.$animations,o=r&&r.x,a=r&&r.y;if(o||a){let s=Jg[e.position].call(this,this._active,this._eventPosition);if(!s)return;let l=this._size=U4(this,e),c=Object.assign({},s,this._size),d=$4(i,e,c),p=W4(e,c,d,i);(o._to!==p.x||a._to!==p.y)&&(this.xAlign=d.xAlign,this.yAlign=d.yAlign,this.width=l.width,this.height=l.height,this.caretX=s.x,this.caretY=s.y,this._resolveAnimations().update(this,p))}}_willRender(){return!!this.opacity}draw(e){let i=this.options.setContext(this.getContext()),r=this.opacity;if(!r)return;this._updateAnimationTarget(i);let o={width:this.width,height:this.height},a={x:this.x,y:this.y};r=Math.abs(r)<.001?0:r;let s=cr(i.padding),l=this.title.length||this.beforeBody.length||this.body.length||this.afterBody.length||this.footer.length;i.enabled&&l&&(e.save(),e.globalAlpha=r,this.drawBackground(a,e,o,i),CT(e,i.textDirection),a.y+=s.top,this.drawTitle(a,e,i),this.drawBody(a,e,i),this.drawFooter(a,e,i),wT(e,i.textDirection),e.restore())}getActiveElements(){return this._active||[]}setActiveElements(e,i){let r=this._active,o=e.map(({datasetIndex:l,index:c})=>{let d=this.chart.getDatasetMeta(l);if(!d)throw new Error("Cannot find a dataset at index "+l);return{datasetIndex:l,element:d.data[c],index:c}}),a=!Ug(r,o),s=this._positionChanged(o,i);(a||s)&&(this._active=o,this._eventPosition=i,this._ignoreReplayEvents=!0,this.update(!0))}handleEvent(e,i,r=!0){if(i&&this._ignoreReplayEvents)return!1;this._ignoreReplayEvents=!1;let o=this.options,a=this._active||[],s=this._getActiveElements(e,a,i,r),l=this._positionChanged(s,e),c=i||!Ug(s,a)||l;return c&&(this._active=s,(o.enabled||o.external)&&(this._eventPosition={x:e.x,y:e.y},this.update(!0,i))),c}_getActiveElements(e,i,r,o){let a=this.options;if(e.type==="mouseout")return[];if(!o)return i.filter(l=>this.chart.data.datasets[l.datasetIndex]&&this.chart.getDatasetMeta(l.datasetIndex).controller.getParsed(l.index)!==void 0);let s=this.chart.getElementsAtEventForMode(e,a.mode,a,r);return a.reverse&&s.reverse(),s}_positionChanged(e,i){let{caretX:r,caretY:o,options:a}=this,s=Jg[a.position].call(this,e,i);return s!==!1&&(r!==s.x||o!==s.y)}}return t})(),Mse={id:"tooltip",_element:Y4,positioners:Jg,afterInit(t,n,e){e&&(t.tooltip=new Y4({chart:t,options:e}))},beforeUpdate(t,n,e){t.tooltip&&t.tooltip.initialize(e)},reset(t,n,e){t.tooltip&&t.tooltip.initialize(e)},afterDraw(t){let n=t.tooltip;if(n&&n._willRender()){let e={tooltip:n};if(t.notifyPlugins("beforeTooltipDraw",Ee(k({},e),{cancelable:!0}))===!1)return;n.draw(t.ctx),t.notifyPlugins("afterTooltipDraw",e)}},afterEvent(t,n){if(t.tooltip){let e=n.replay;t.tooltip.handleEvent(n.event,e,n.inChartArea)&&(n.changed=!0)}},defaults:{enabled:!0,external:null,position:"average",backgroundColor:"rgba(0,0,0,0.8)",titleColor:"#fff",titleFont:{weight:"bold"},titleSpacing:2,titleMarginBottom:6,titleAlign:"left",bodyColor:"#fff",bodySpacing:2,bodyFont:{},bodyAlign:"left",footerColor:"#fff",footerSpacing:2,footerMarginTop:6,footerFont:{weight:"bold"},footerAlign:"left",padding:6,caretPadding:2,caretSize:5,cornerRadius:6,boxHeight:(t,n)=>n.bodyFont.size,boxWidth:(t,n)=>n.bodyFont.size,multiKeyBackground:"#fff",displayColors:!0,boxPadding:0,borderColor:"rgba(0,0,0,0)",borderWidth:0,animation:{duration:400,easing:"easeOutQuart"},animations:{numbers:{type:"number",properties:["x","y","width","height","caretX","caretY"]},opacity:{easing:"linear",duration:200}},callbacks:D5},defaultRoutes:{bodyFont:"font",footerFont:"font",titleFont:"font"},descriptors:{_scriptable:t=>t!=="filter"&&t!=="itemSort"&&t!=="external",_indexable:!1,callbacks:{_scriptable:!1,_indexable:!1},animation:{_fallback:!1},animations:{_fallback:"animation"}},additionalOptionScopes:["interaction"]},Sse=Object.freeze({__proto__:null,Colors:Bae,Decimation:Uae,Filler:cse,Legend:fse,SubTitle:bse,Title:_se,Tooltip:Mse}),kse=(t,n,e,i)=>(typeof n=="string"?(e=t.push(n)-1,i.unshift({index:e,label:n})):isNaN(n)&&(e=null),e);function Tse(t,n,e,i){let r=t.indexOf(n);if(r===-1)return kse(t,n,e,i);let o=t.lastIndexOf(n);return r!==o?e:r}var Ise=(t,n)=>t===null?null:Sn(Math.round(t),0,n);function Q4(t){let n=this.getLabels();return t>=0&&t{class t extends Iu{static id="category";static defaults={ticks:{callback:Q4}};constructor(e){super(e),this._startValue=void 0,this._valueRange=0,this._addedLabels=[]}init(e){let i=this._addedLabels;if(i.length){let r=this.getLabels();for(let{index:o,label:a}of i)r[o]===a&&r.splice(o,1);this._addedLabels=[]}super.init(e)}parse(e,i){if(Tt(e))return null;let r=this.getLabels();return i=isFinite(i)&&r[i]===e?i:Tse(r,e,lt(i,e),this._addedLabels),Ise(i,r.length-1)}determineDataLimits(){let{minDefined:e,maxDefined:i}=this.getUserBounds(),{min:r,max:o}=this.getMinMax(!0);this.options.bounds==="ticks"&&(e||(r=0),i||(o=this.getLabels().length-1)),this.min=r,this.max=o}buildTicks(){let e=this.min,i=this.max,r=this.options.offset,o=[],a=this.getLabels();a=e===0&&i===a.length-1?a:a.slice(e,i+1),this._valueRange=Math.max(a.length-(r?0:1),1),this._startValue=this.min-(r?.5:0);for(let s=e;s<=i;s++)o.push({value:s});return o}getLabelForValue(e){return Q4.call(this,e)}configure(){super.configure(),this.isHorizontal()||(this._reversePixels=!this._reversePixels)}getPixelForValue(e){return typeof e!="number"&&(e=this.parse(e)),e===null?NaN:this.getPixelForDecimal((e-this._startValue)/this._valueRange)}getPixelForTick(e){let i=this.ticks;return e<0||e>i.length-1?null:this.getPixelForValue(i[e].value)}getValueForPixel(e){return Math.round(this._startValue+this.getDecimalForPixel(e)*this._valueRange)}getBasePixel(){return this.bottom}}return t})();function Ose(t,n){let e=[],{bounds:r,step:o,min:a,max:s,precision:l,count:c,maxTicks:d,maxDigits:p,includeBounds:_}=t,b=o||1,y=d-1,{min:w,max:C}=n,D=!Tt(a),F=!Tt(s),W=!Tt(c),Z=(C-w)/(p+1),K=tT((C-w)/y/b)*b,oe,ke,ve,Ve;if(K<1e-14&&!D&&!F)return[{value:w},{value:C}];Ve=Math.ceil(C/K)-Math.floor(w/K),Ve>y&&(K=tT(Ve*K/y/b)*b),Tt(l)||(oe=Math.pow(10,l),K=Math.ceil(K*oe)/oe),r==="ticks"?(ke=Math.floor(w/K)*K,ve=Math.ceil(C/K)*K):(ke=w,ve=C),D&&F&&o&&Fj((s-a)/o,K/1e3)?(Ve=Math.round(Math.min((s-a)/K,d)),K=(s-a)/Ve,ke=a,ve=s):W?(ke=D?a:ke,ve=F?s:ve,Ve=c-1,K=(ve-ke)/Ve):(Ve=(ve-ke)/K,Uh(Ve,Math.round(Ve),K/1e3)?Ve=Math.round(Ve):Ve=Math.ceil(Ve));let yt=Math.max(nT(K),nT(ke));oe=Math.pow(10,Tt(l)?yt:l),ke=Math.round(ke*oe)/oe,ve=Math.round(ve*oe)/oe;let vt=0;for(D&&(_&&ke!==a?(e.push({value:a}),kes)break;e.push({value:Rt})}return F&&_&&ve!==s?e.length&&Uh(e[e.length-1].value,s,K4(s,Z,t))?e[e.length-1].value=s:e.push({value:s}):(!F||ve===s)&&e.push({value:ve}),e}function K4(t,n,{horizontal:e,minRotation:i}){let r=sa(i),o=(e?Math.sin(r):Math.cos(r))||.001,a=.75*n*(""+t).length;return Math.min(n/o,a)}var Kh=class extends Iu{constructor(n){super(n),this.start=void 0,this.end=void 0,this._startValue=void 0,this._endValue=void 0,this._valueRange=0}parse(n,e){return Tt(n)||(typeof n=="number"||n instanceof Number)&&!isFinite(+n)?null:+n}handleTickRangeOptions(){let{beginAtZero:n}=this.options,{minDefined:e,maxDefined:i}=this.getUserBounds(),{min:r,max:o}=this,a=l=>r=e?r:l,s=l=>o=i?o:l;if(n){let l=Ha(r),c=Ha(o);l<0&&c<0?s(0):l>0&&c>0&&a(0)}if(r===o){let l=o===0?1:Math.abs(o*.05);s(o+l),n||a(r-l)}this.min=r,this.max=o}getTickLimit(){let n=this.options.ticks,{maxTicksLimit:e,stepSize:i}=n,r;return i?(r=Math.ceil(this.max/i)-Math.floor(this.min/i)+1,r>1e3&&(console.warn(`scales.${this.id}.ticks.stepSize: ${i} would result generating up to ${r} ticks. Limiting to 1000.`),r=1e3)):(r=this.computeTickLimit(),e=e||11),e&&(r=Math.min(e,r)),r}computeTickLimit(){return Number.POSITIVE_INFINITY}buildTicks(){let n=this.options,e=n.ticks,i=this.getTickLimit();i=Math.max(2,i);let r={maxTicks:i,bounds:n.bounds,min:n.min,max:n.max,precision:e.precision,step:e.stepSize,count:e.count,maxDigits:this._maxDigits(),horizontal:this.isHorizontal(),minRotation:e.minRotation||0,includeBounds:e.includeBounds!==!1},o=this._range||this,a=Ose(r,o);return n.bounds==="ticks"&&iT(a,this,"value"),n.reverse?(a.reverse(),this.start=this.max,this.end=this.min):(this.start=this.min,this.end=this.max),a}configure(){let n=this.ticks,e=this.min,i=this.max;if(super.configure(),this.options.offset&&n.length){let r=(i-e)/Math.max(n.length-1,1)/2;e-=r,i+=r}this._startValue=e,this._endValue=i,this._valueRange=i-e}getLabelForValue(n){return Wh(n,this.chart.options.locale,this.options.ticks.format)}},JT=class extends Kh{static id="linear";static defaults={ticks:{callback:$g.formatters.numeric}};determineDataLimits(){let{min:n,max:e}=this.getMinMax(!0);this.min=Yi(n)?n:0,this.max=Yi(e)?e:1,this.handleTickRangeOptions()}computeTickLimit(){let n=this.isHorizontal(),e=n?this.width:this.height,i=sa(this.options.ticks.minRotation),r=(n?Math.sin(i):Math.cos(i))||.001,o=this._resolveTickFontOptions(0);return Math.ceil(e/Math.min(40,o.lineHeight/r))}getPixelForValue(n){return n===null?NaN:this.getPixelForDecimal((n-this._startValue)/this._valueRange)}getValueForPixel(n){return this._startValue+this.getDecimalForPixel(n)*this._valueRange}},i_=t=>Math.floor(bl(t)),Tu=(t,n)=>Math.pow(10,i_(t)+n);function Z4(t){return t/Math.pow(10,i_(t))===1}function X4(t,n,e){let i=Math.pow(10,e),r=Math.floor(t/i);return Math.ceil(n/i)-r}function Rse(t,n){let e=n-t,i=i_(e);for(;X4(t,n,i)>10;)i++;for(;X4(t,n,i)<10;)i--;return Math.min(i,i_(t))}function Pse(t,{min:n,max:e}){n=so(t.min,n);let i=[],r=i_(n),o=Rse(n,e),a=o<0?Math.pow(10,Math.abs(o)):1,s=Math.pow(10,o),l=r>o?Math.pow(10,r):0,c=Math.round((n-l)*a)/a,d=Math.floor((n-l)/s/10)*s*10,p=Math.floor((c-d)/Math.pow(10,o)),_=so(t.min,Math.round((l+d+p*Math.pow(10,o))*a)/a);for(;_=10?p=p<15?15:20:p++,p>=20&&(o++,p=2,a=o>=0?1:a),_=Math.round((l+d+p*Math.pow(10,o))*a)/a;let b=so(t.max,_);return i.push({value:b,major:Z4(b),significand:p}),i}var eI=class extends Iu{static id="logarithmic";static defaults={ticks:{callback:$g.formatters.logarithmic,major:{enabled:!0}}};constructor(n){super(n),this.start=void 0,this.end=void 0,this._startValue=void 0,this._valueRange=0}parse(n,e){let i=Kh.prototype.parse.apply(this,[n,e]);if(i===0){this._zero=!0;return}return Yi(i)&&i>0?i:null}determineDataLimits(){let{min:n,max:e}=this.getMinMax(!0);this.min=Yi(n)?Math.max(0,n):null,this.max=Yi(e)?Math.max(0,e):null,this.options.beginAtZero&&(this._zero=!0),this._zero&&this.min!==this._suggestedMin&&!Yi(this._userMin)&&(this.min=n===Tu(this.min,0)?Tu(this.min,-1):Tu(this.min,0)),this.handleTickRangeOptions()}handleTickRangeOptions(){let{minDefined:n,maxDefined:e}=this.getUserBounds(),i=this.min,r=this.max,o=s=>i=n?i:s,a=s=>r=e?r:s;i===r&&(i<=0?(o(1),a(10)):(o(Tu(i,-1)),a(Tu(r,1)))),i<=0&&o(Tu(r,-1)),r<=0&&a(Tu(i,1)),this.min=i,this.max=r}buildTicks(){let n=this.options,e={min:this._userMin,max:this._userMax},i=Pse(e,this);return n.bounds==="ticks"&&iT(i,this,"value"),n.reverse?(i.reverse(),this.start=this.max,this.end=this.min):(this.start=this.min,this.end=this.max),i}getLabelForValue(n){return n===void 0?"0":Wh(n,this.chart.options.locale,this.options.ticks.format)}configure(){let n=this.min;super.configure(),this._startValue=bl(n),this._valueRange=bl(this.max)-bl(n)}getPixelForValue(n){return(n===void 0||n===0)&&(n=this.min),n===null||isNaN(n)?NaN:this.getPixelForDecimal(n===this.min?0:(bl(n)-this._startValue)/this._valueRange)}getValueForPixel(n){let e=this.getDecimalForPixel(n);return Math.pow(10,this._startValue+e*this._valueRange)}};function tI(t){let n=t.ticks;if(n.display&&t.display){let e=cr(n.backdropPadding);return lt(n.font&&n.font.size,Di.font.size)+e.height}return 0}function Fse(t,n,e){return e=Ti(e)?e:[e],{w:$j(t,n.string,e),h:e.length*n.lineHeight}}function J4(t,n,e,i,r){return t===i||t===r?{start:n-e/2,end:n+e/2}:tr?{start:n-e,end:n}:{start:n,end:n+e}}function Nse(t){let n={l:t.left+t._padding.left,r:t.right-t._padding.right,t:t.top+t._padding.top,b:t.bottom-t._padding.bottom},e=Object.assign({},n),i=[],r=[],o=t._pointLabels.length,a=t.options.pointLabels,s=a.centerPointLabels?$t/o:0;for(let l=0;ln.r&&(s=(i.end-n.r)/o,t.r=Math.max(t.r,n.r+s)),r.startn.b&&(l=(r.end-n.b)/a,t.b=Math.max(t.b,n.b+l))}function Vse(t,n,e){let i=t.drawingArea,{extra:r,additionalAngle:o,padding:a,size:s}=e,l=t.getPointPosition(n,i+r+a,o),c=Math.round(Gx(sr(l.angle+tn))),d=Use(l.y,s.h,c),p=Hse(c),_=zse(l.x,s.w,p);return{visible:!0,x:l.x,y:d,textAlign:p,left:_,top:d,right:_+s.w,bottom:d+s.h}}function Bse(t,n){if(!n)return!0;let{left:e,top:i,right:r,bottom:o}=t;return!(Ts({x:e,y:i},n)||Ts({x:e,y:o},n)||Ts({x:r,y:i},n)||Ts({x:r,y:o},n))}function jse(t,n,e){let i=[],r=t._pointLabels.length,o=t.options,{centerPointLabels:a,display:s}=o.pointLabels,l={extra:tI(o)/2,additionalAngle:a?$t/r:0},c;for(let d=0;d270||e<90)&&(t-=n),t}function $se(t,n,e){let{left:i,top:r,right:o,bottom:a}=e,{backdropColor:s}=n;if(!Tt(s)){let l=Ac(n.borderRadius),c=cr(n.backdropPadding);t.fillStyle=s;let d=i-c.left,p=r-c.top,_=o-i+c.width,b=a-r+c.height;Object.values(l).some(y=>y!==0)?(t.beginPath(),Gh(t,{x:d,y:p,w:_,h:b,radius:l}),t.fill()):t.fillRect(d,p,_,b)}}function Wse(t,n){let{ctx:e,options:{pointLabels:i}}=t;for(let r=n-1;r>=0;r--){let o=t._pointLabelItems[r];if(!o.visible)continue;let a=i.setContext(t.getPointLabelContext(r));$se(e,a,o);let s=fn(a.font),{x:l,y:c,textAlign:d}=o;Ic(e,t._pointLabels[r],l,c+s.lineHeight/2,s,{color:a.color,textAlign:d,textBaseline:"middle"})}}function E5(t,n,e,i){let{ctx:r}=t;if(e)r.arc(t.xCenter,t.yCenter,n,0,Ii);else{let o=t.getPointPosition(0,n);r.moveTo(o.x,o.y);for(let a=1;a{let r=wi(this.options.pointLabels.callback,[e,i],this);return r||r===0?r:""}).filter((e,i)=>this.chart.getDataVisibility(i))}fit(){let n=this.options;n.display&&n.pointLabels.display?Nse(this):this.setCenterPoint(0,0,0,0)}setCenterPoint(n,e,i,r){this.xCenter+=Math.floor((n-e)/2),this.yCenter+=Math.floor((i-r)/2),this.drawingArea-=Math.min(this.drawingArea/2,Math.max(n,e,i,r))}getIndexAngle(n){let e=Ii/(this._pointLabels.length||1),i=this.options.startAngle||0;return sr(n*e+sa(i))}getDistanceFromCenterForValue(n){if(Tt(n))return NaN;let e=this.drawingArea/(this.max-this.min);return this.options.reverse?(this.max-n)*e:(n-this.min)*e}getValueForDistanceFromCenter(n){if(Tt(n))return NaN;let e=n/(this.drawingArea/(this.max-this.min));return this.options.reverse?this.max-e:this.min+e}getPointLabelContext(n){let e=this._pointLabels||[];if(n>=0&&n{if(p!==0||p===0&&this.min<0){l=this.getDistanceFromCenterForValue(d.value);let _=this.getContext(p),b=r.setContext(_),y=o.setContext(_);Gse(this,b,l,a,y)}}),i.display){for(n.save(),s=a-1;s>=0;s--){let d=i.setContext(this.getPointLabelContext(s)),{color:p,lineWidth:_}=d;!_||!p||(n.lineWidth=_,n.strokeStyle=p,n.setLineDash(d.borderDash),n.lineDashOffset=d.borderDashOffset,l=this.getDistanceFromCenterForValue(e.reverse?this.min:this.max),c=this.getPointPosition(s,l),n.beginPath(),n.moveTo(this.xCenter,this.yCenter),n.lineTo(c.x,c.y),n.stroke())}n.restore()}}drawBorder(){}drawLabels(){let n=this.ctx,e=this.options,i=e.ticks;if(!i.display)return;let r=this.getIndexAngle(0),o,a;n.save(),n.translate(this.xCenter,this.yCenter),n.rotate(r),n.textAlign="center",n.textBaseline="middle",this.ticks.forEach((s,l)=>{if(l===0&&this.min>=0&&!e.reverse)return;let c=i.setContext(this.getContext(l)),d=fn(c.font);if(o=this.getDistanceFromCenterForValue(this.ticks[l].value),c.showLabelBackdrop){n.font=d.string,a=n.measureText(s.label).width,n.fillStyle=c.backdropColor;let p=cr(c.backdropPadding);n.fillRect(-a/2-p.left,-o-d.size/2-p.top,a+p.width,d.size+p.height)}Ic(n,s.label,0,-o,d,{color:c.color,strokeColor:c.textStrokeColor,strokeWidth:c.textStrokeWidth})}),n.restore()}drawTitle(){}},vC={millisecond:{common:!0,size:1,steps:1e3},second:{common:!0,size:1e3,steps:60},minute:{common:!0,size:6e4,steps:60},hour:{common:!0,size:36e5,steps:24},day:{common:!0,size:864e5,steps:30},week:{common:!1,size:6048e5,steps:4},month:{common:!0,size:2628e6,steps:12},quarter:{common:!1,size:7884e6,steps:4},year:{common:!0,size:3154e7}},co=Object.keys(vC);function e5(t,n){return t-n}function t5(t,n){if(Tt(n))return null;let e=t._adapter,{parser:i,round:r,isoWeekday:o}=t._parseOpts,a=n;return typeof i=="function"&&(a=i(a)),Yi(a)||(a=typeof i=="string"?e.parse(a,i):e.parse(a)),a===null?null:(r&&(a=r==="week"&&(Mu(o)||o===!0)?e.startOf(a,"isoWeek",o):e.startOf(a,r)),+a)}function i5(t,n,e,i){let r=co.length;for(let o=co.indexOf(t);o=co.indexOf(e);o--){let a=co[o];if(vC[a].common&&t._adapter.diff(r,i,a)>=n-1)return a}return co[e?co.indexOf(e):0]}function Qse(t){for(let n=co.indexOf(t)+1,e=co.length;n=n?e[i]:e[r];t[o]=!0}}function Kse(t,n,e,i){let r=t._adapter,o=+r.startOf(n[0].value,i),a=n[n.length-1].value,s,l;for(s=o;s<=a;s=+r.add(s,1,i))l=e[s],l>=0&&(n[l].major=!0);return n}function r5(t,n,e){let i=[],r={},o=n.length,a,s;for(a=0;a{class t extends Iu{static id="time";static defaults={bounds:"data",adapters:{},time:{parser:!1,unit:!1,round:!1,isoWeekday:!1,minUnit:"millisecond",displayFormats:{}},ticks:{source:"auto",callback:!1,major:{enabled:!1}}};constructor(e){super(e),this._cache={data:[],labels:[],all:[]},this._unit="day",this._majorUnit=void 0,this._offsets={},this._normalized=!1,this._parseOpts=void 0}init(e,i={}){let r=e.time||(e.time={}),o=this._adapter=new soe._date(e.adapters.date);o.init(i),Hh(r.displayFormats,o.formats()),this._parseOpts={parser:r.parser,round:r.round,isoWeekday:r.isoWeekday},super.init(e),this._normalized=i.normalized}parse(e,i){return e===void 0?null:t5(this,e)}beforeLayout(){super.beforeLayout(),this._cache={data:[],labels:[],all:[]}}determineDataLimits(){let e=this.options,i=this._adapter,r=e.time.unit||"day",{min:o,max:a,minDefined:s,maxDefined:l}=this.getUserBounds();function c(d){!s&&!isNaN(d.min)&&(o=Math.min(o,d.min)),!l&&!isNaN(d.max)&&(a=Math.max(a,d.max))}(!s||!l)&&(c(this._getLabelBounds()),(e.bounds!=="ticks"||e.ticks.source!=="labels")&&c(this.getMinMax(!1))),o=Yi(o)&&!isNaN(o)?o:+i.startOf(Date.now(),r),a=Yi(a)&&!isNaN(a)?a:+i.endOf(Date.now(),r)+1,this.min=Math.min(o,a-1),this.max=Math.max(o+1,a)}_getLabelBounds(){let e=this.getLabelTimestamps(),i=Number.POSITIVE_INFINITY,r=Number.NEGATIVE_INFINITY;return e.length&&(i=e[0],r=e[e.length-1]),{min:i,max:r}}buildTicks(){let e=this.options,i=e.time,r=e.ticks,o=r.source==="labels"?this.getLabelTimestamps():this._generate();e.bounds==="ticks"&&o.length&&(this.min=this._userMin||o[0],this.max=this._userMax||o[o.length-1]);let a=this.min,s=this.max,l=Vj(o,a,s);return this._unit=i.unit||(r.autoSkip?i5(i.minUnit,this.min,this.max,this._getLabelCapacity(a)):Yse(this,l.length,i.minUnit,this.min,this.max)),this._majorUnit=!r.major.enabled||this._unit==="year"?void 0:Qse(this._unit),this.initOffsets(o),e.reverse&&l.reverse(),r5(this,l,this._majorUnit)}afterAutoSkip(){this.options.offsetAfterAutoskip&&this.initOffsets(this.ticks.map(e=>+e.value))}initOffsets(e=[]){let i=0,r=0,o,a;this.options.offset&&e.length&&(o=this.getDecimalForValue(e[0]),e.length===1?i=1-o:i=(this.getDecimalForValue(e[1])-o)/2,a=this.getDecimalForValue(e[e.length-1]),e.length===1?r=a:r=(a-this.getDecimalForValue(e[e.length-2]))/2);let s=e.length<3?.5:.25;i=Sn(i,0,s),r=Sn(r,0,s),this._offsets={start:i,end:r,factor:1/(i+1+r)}}_generate(){let e=this._adapter,i=this.min,r=this.max,o=this.options,a=o.time,s=a.unit||i5(a.minUnit,i,r,this._getLabelCapacity(i)),l=lt(o.ticks.stepSize,1),c=s==="week"?a.isoWeekday:!1,d=Mu(c)||c===!0,p={},_=i,b,y;if(d&&(_=+e.startOf(_,"isoWeek",c)),_=+e.startOf(_,d?"day":s),e.diff(r,i,s)>1e5*l)throw new Error(i+" and "+r+" are too far apart with stepSize of "+l+" "+s);let w=o.ticks.source==="data"&&this.getDataTimestamps();for(b=_,y=0;b+C)}getLabelForValue(e){let i=this._adapter,r=this.options.time;return r.tooltipFormat?i.format(e,r.tooltipFormat):i.format(e,r.displayFormats.datetime)}format(e,i){let o=this.options.time.displayFormats,a=this._unit,s=i||o[a];return this._adapter.format(e,s)}_tickFormatFunction(e,i,r,o){let a=this.options,s=a.ticks.callback;if(s)return wi(s,[e,i,r],this);let l=a.time.displayFormats,c=this._unit,d=this._majorUnit,p=c&&l[c],_=d&&l[d],b=r[i],y=d&&_&&b&&b.major;return this._adapter.format(e,o||(y?_:p))}generateTickLabels(e){let i,r,o;for(i=0,r=e.length;i0?l:1}getDataTimestamps(){let e=this._cache.data||[],i,r;if(e.length)return e;let o=this.getMatchingVisibleMetas();if(this._normalized&&o.length)return this._cache.data=o[0].controller.getAllParsedValues(this);for(i=0,r=o.length;i=t[i].pos&&n<=t[r].pos&&({lo:i,hi:r}=ks(t,"pos",n)),{pos:o,time:s}=t[i],{pos:a,time:l}=t[r]):(n>=t[i].time&&n<=t[r].time&&({lo:i,hi:r}=ks(t,"time",n)),{time:o,pos:s}=t[i],{time:a,pos:l}=t[r]);let c=a-o;return c?s+(l-s)*(n-o)/c:s}var rI=class extends nI{static id="timeseries";static defaults=nI.defaults;constructor(n){super(n),this._table=[],this._minPos=void 0,this._tableRange=void 0}initOffsets(){let n=this._getTimestampsForTable(),e=this._table=this.buildLookupTable(n);this._minPos=sC(e,this.min),this._tableRange=sC(e,this.max)-this._minPos,super.initOffsets(n)}buildLookupTable(n){let{min:e,max:i}=this,r=[],o=[],a,s,l,c,d;for(a=0,s=n.length;a=e&&c<=i&&r.push(c);if(r.length<2)return[{time:e,pos:0},{time:i,pos:1}];for(a=0,s=r.length;ar-o)}_getTimestampsForTable(){let n=this._cache.all||[];if(n.length)return n;let e=this.getDataTimestamps(),i=this.getLabelTimestamps();return e.length&&i.length?n=this.normalize(e.concat(i)):n=e.length?e:i,n=this._cache.all=n,n}getDecimalForValue(n){return(sC(this._table,n)-this._minPos)/this._tableRange}getValueForPixel(n){let e=this._offsets,i=this.getDecimalForPixel(n)/e.factor-e.end;return sC(this._table,i*this._tableRange+this._minPos,!0)}},Zse=Object.freeze({__proto__:null,CategoryScale:Ase,LinearScale:JT,LogarithmicScale:eI,RadialLinearScale:iI,TimeScale:nI,TimeSeriesScale:rI}),M5=[aoe,Oae,Sse,Zse];var Xse=typeof global=="object"&&global&&global.Object===Object&&global,yC=Xse;var Jse=typeof self=="object"&&self&&self.Object===Object&&self,ele=yC||Jse||Function("return this")(),la=ele;var tle=la.Symbol,Zh=tle;var S5=Object.prototype,ile=S5.hasOwnProperty,nle=S5.toString,r_=Zh?Zh.toStringTag:void 0;function rle(t){var n=ile.call(t,r_),e=t[r_];try{t[r_]=void 0;var i=!0}catch{}var r=nle.call(t);return i&&(n?t[r_]=e:delete t[r_]),r}var k5=rle;var ole=Object.prototype,ale=ole.toString;function sle(t){return ale.call(t)}var T5=sle;var lle="[object Null]",cle="[object Undefined]",I5=Zh?Zh.toStringTag:void 0;function dle(t){return t==null?t===void 0?cle:lle:I5&&I5 in Object(t)?k5(t):T5(t)}var Fc=dle;function ule(t){return t!=null&&typeof t=="object"}var Ps=ule;var mle=Array.isArray,o_=mle;function hle(t){var n=typeof t;return t!=null&&(n=="object"||n=="function")}var uo=hle;function ple(t){return t}var xC=ple;var fle="[object AsyncFunction]",gle="[object Function]",_le="[object GeneratorFunction]",ble="[object Proxy]";function vle(t){if(!uo(t))return!1;var n=Fc(t);return n==gle||n==_le||n==fle||n==ble}var Xh=vle;var yle=la["__core-js_shared__"],CC=yle;var A5=(function(){var t=/[^.]+$/.exec(CC&&CC.keys&&CC.keys.IE_PROTO||"");return t?"Symbol(src)_1."+t:""})();function xle(t){return!!A5&&A5 in t}var O5=xle;var Cle=Function.prototype,wle=Cle.toString;function Dle(t){if(t!=null){try{return wle.call(t)}catch{}try{return t+""}catch{}}return""}var R5=Dle;var Ele=/[\\^$.*+?()[\]{}|]/g,Mle=/^\[object .+?Constructor\]$/,Sle=Function.prototype,kle=Object.prototype,Tle=Sle.toString,Ile=kle.hasOwnProperty,Ale=RegExp("^"+Tle.call(Ile).replace(Ele,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function Ole(t){if(!uo(t)||O5(t))return!1;var n=Xh(t)?Ale:Mle;return n.test(R5(t))}var P5=Ole;function Rle(t,n){return t?.[n]}var F5=Rle;function Ple(t,n){var e=F5(t,n);return P5(e)?e:void 0}var Jh=Ple;var N5=Object.create,Fle=(function(){function t(){}return function(n){if(!uo(n))return{};if(N5)return N5(n);t.prototype=n;var e=new t;return t.prototype=void 0,e}})(),L5=Fle;function Nle(t,n,e){switch(e.length){case 0:return t.call(n);case 1:return t.call(n,e[0]);case 2:return t.call(n,e[0],e[1]);case 3:return t.call(n,e[0],e[1],e[2])}return t.apply(n,e)}var V5=Nle;function Lle(t,n){var e=-1,i=t.length;for(n||(n=Array(i));++e0){if(++n>=Vle)return arguments[0]}else n=0;return t.apply(void 0,arguments)}}var j5=Hle;function zle(t){return function(){return t}}var H5=zle;var Ule=(function(){try{var t=Jh(Object,"defineProperty");return t({},"",{}),t}catch{}})(),ep=Ule;var $le=ep?function(t,n){return ep(t,"toString",{configurable:!0,enumerable:!1,value:H5(n),writable:!0})}:xC,z5=$le;var Wle=j5(z5),U5=Wle;var Gle=9007199254740991,qle=/^(?:0|[1-9]\d*)$/;function Yle(t,n){var e=typeof t;return n=n??Gle,!!n&&(e=="number"||e!="symbol"&&qle.test(t))&&t>-1&&t%1==0&&t-1&&t%1==0&&t<=nce}var DC=rce;function oce(t){return t!=null&&DC(t.length)&&!Xh(t)}var ip=oce;function ace(t,n,e){if(!uo(e))return!1;var i=typeof n;return(i=="number"?ip(e)&&wC(n,e.length):i=="string"&&n in e)?Nc(e[n],t):!1}var Q5=ace;function sce(t){return Y5(function(n,e){var i=-1,r=e.length,o=r>1?e[r-1]:void 0,a=r>2?e[2]:void 0;for(o=t.length>3&&typeof o=="function"?(r--,o):void 0,a&&Q5(e[0],e[1],a)&&(o=r<3?void 0:o,r=1),n=Object(n);++i-1}var vH=Cde;function wde(t,n){var e=this.__data__,i=Lc(e,t);return i<0?(++this.size,e.push([t,n])):e[i][1]=n,this}var yH=wde;function rp(t){var n=-1,e=t==null?0:t.length;for(this.clear();++n{let n=class n{constructor(){this.colorschemesOptions=new it(void 0)}setColorschemesOptions(i){this.pColorschemesOptions=i,this.colorschemesOptions.next(i)}getColorschemesOptions(){return this.pColorschemesOptions}};n.\u0275fac=function(r){return new(r||n)},n.\u0275prov=R({token:n,factory:n.\u0275fac,providedIn:"root"});let t=n;return t})(),ez=(()=>{let n=class n{constructor(i,r,o,a){this.zone=r,this.themeService=o,this.type="bar",this.plugins=[],this.chartClick=new U,this.chartHover=new U,this.subs=[],this.themeOverrides={},a?.registerables&&gC.register(...a.registerables),a?.defaults&&Di.set(a.defaults),this.ctx=i.nativeElement.getContext("2d"),this.subs.push(this.themeService.colorschemesOptions.pipe(_n()).subscribe(s=>this.themeChanged(s)))}ngOnChanges(i){let r=["type"],o=Object.getOwnPropertyNames(i);if(o.some(a=>r.includes(a))||o.every(a=>i[a].isFirstChange()))this.render();else{let a=this.getChartConfiguration();this.chart&&(Object.assign(this.chart.config.data,a.data),this.chart.config.plugins&&Object.assign(this.chart.config.plugins,a.plugins),this.chart.config.options&&Object.assign(this.chart.config.options,a.options)),this.update()}}ngOnDestroy(){this.chart&&(this.chart.destroy(),this.chart=void 0),this.subs.forEach(i=>i.unsubscribe())}render(){return this.chart&&this.chart.destroy(),this.zone.runOutsideAngular(()=>this.chart=new gC(this.ctx,this.getChartConfiguration()))}update(i){this.chart&&this.zone.runOutsideAngular(()=>this.chart?.update(i))}hideDataset(i,r){this.chart&&(this.chart.getDatasetMeta(i).hidden=r,this.update())}isDatasetHidden(i){return this.chart?.getDatasetMeta(i)?.hidden}toBase64Image(){return this.chart?.toBase64Image()}themeChanged(i){this.themeOverrides=i,this.chart&&(this.chart.config.options&&Object.assign(this.chart.config.options,this.getChartOptions()),this.update())}getChartOptions(){return AC({onHover:(i,r)=>{!this.chartHover.observed&&!this.chartHover.observers?.length||this.zone.run(()=>this.chartHover.emit({event:i,active:r}))},onClick:(i,r)=>{!this.chartClick.observed&&!this.chartClick.observers?.length||this.zone.run(()=>this.chartClick.emit({event:i,active:r}))}},this.themeOverrides,this.options,{plugins:{legend:{display:this.legend}}})}getChartConfiguration(){return{type:this.type,data:this.getChartData(),options:this.getChartOptions(),plugins:this.plugins}}getChartData(){return this.data?this.data:{labels:this.labels||[],datasets:this.datasets||[]}}};n.\u0275fac=function(r){return new(r||n)(be(Y),be(ae),be(oue),be(ZH,8))},n.\u0275dir=P({type:n,selectors:[["canvas","baseChart",""]],inputs:{type:"type",legend:"legend",data:"data",options:"options",plugins:"plugins",labels:"labels",datasets:"datasets"},outputs:{chartClick:"chartClick",chartHover:"chartHover"},exportAs:["base-chart"],features:[Ae]});let t=n;return t})();var Qi={production:!0,baseUrl:"",useHash:!1,apiUrl:"https://app-talent-api-dev.azurewebsites.net/api/v1",identityServerUrl:"https://app-talent-ids-dev.azurewebsites.net",clientId:"TalentManagement",scope:"openid profile email roles app.api.talentmanagement.read app.api.talentmanagement.write",allowAnonymousAccess:!0,aiEnabled:!0};var uI=document.baseURI.endsWith("/")?document.baseURI.slice(0,-1):document.baseURI,tz={issuer:Qi.identityServerUrl,redirectUri:uI+"/callback",postLogoutRedirectUri:uI,clientId:Qi.clientId,scope:Qi.scope,responseType:"code",showDebugInformation:!Qi.production,useSilentRefresh:!0,silentRefreshRedirectUri:uI+"/silent-refresh.html",silentRefreshTimeout:5e3,timeoutFactor:.75,sessionChecksEnabled:!0,clearHashAfterLogin:!0,strictDiscoveryDocumentValidation:!1,skipIssuerCheck:!Qi.production,requireHttps:Qi.production,requestAccessToken:!0,dummyClientSecret:void 0,customQueryParams:{}};var Ot=(()=>{let n=class n{constructor(){this.oauthService=u(Km),this.router=u(Re),this.isAuthenticatedSubject=new it(!1),this.isAuthenticated$=this.isAuthenticatedSubject.asObservable(),this.userInfoSubject=new it(null),this.userInfo$=this.userInfoSubject.asObservable(),this.permissionsChangeSubject=new z,this.permissionsChange$=this.permissionsChangeSubject.asObservable(),this.configureOAuth()}configureOAuth(){this.oauthService.configure(tz),this.oauthService.events.pipe(ce(i=>i.type==="token_received")).subscribe(()=>{this.handleSuccessfulLogin()}),this.oauthService.events.pipe(ce(i=>i.type==="token_error"||i.type==="token_refresh_error")).subscribe(()=>{console.error("Token error occurred")}),this.oauthService.setupAutomaticSilentRefresh()}initAuth(){return gn(this,null,function*(){try{return yield this.oauthService.loadDiscoveryDocument(),yield this.oauthService.tryLogin(),this.oauthService.hasValidAccessToken()?(yield this.handleSuccessfulLogin(),!0):!1}catch(i){return console.error("Error during authentication initialization:",i),!1}})}login(i){i?this.oauthService.initCodeFlow(i):this.oauthService.initCodeFlow()}logout(){this.oauthService.logOut(),this.isAuthenticatedSubject.next(!1),this.userInfoSubject.next(null),this.permissionsChangeSubject.next()}handleSuccessfulLogin(){return gn(this,null,function*(){try{let i=this.oauthService.getIdentityClaims();this.userInfoSubject.next(i),this.isAuthenticatedSubject.next(!0),this.permissionsChangeSubject.next()}catch(i){console.error("Error loading user info:",i)}})}isAuthenticated(){return this.oauthService.hasValidAccessToken()}getAccessToken(){return this.oauthService.getAccessToken()}getUserInfo(){return this.userInfoSubject.value}getUserRoles(){let i=this.oauthService.getIdentityClaims();if(!i)return[];let r=i.role;return Array.isArray(r)?r:typeof r=="string"?[r]:[]}hasRole(i){return this.getUserRoles().includes(i)}isEmployee(){return this.hasRole("Employee")}isManager(){return this.hasRole("Manager")}isHRAdmin(){return this.hasRole("HRAdmin")}hasAnyRole(i){let r=this.getUserRoles();return i.some(o=>r.includes(o))}getUserDisplayName(){let i=this.getUserInfo();return i?.name||i?.email||"User"}};n.\u0275fac=function(r){return new(r||n)},n.\u0275prov=R({token:n,factory:n.\u0275fac,providedIn:"root"});let t=n;return t})();var mI=(t,n)=>{let e=u(Ot);return Qi.allowAnonymousAccess||e.isAuthenticated()?!0:(e.login(n?.url),!1)};var d_=t=>{let n=u(Ot),e=u(Re);return n.isAuthenticated()?n.isManager()||n.isHRAdmin()?!0:(e.navigate(["/403"]),!1):(n.login(),!1)},u_=t=>{let n=u(Ot),e=u(Re);return n.isAuthenticated()?n.isHRAdmin()?!0:(e.navigate(["/403"]),!1):(n.login(),!1)};var mo=(()=>{let n=class n{constructor(){this.menu$=new it([])}getAll(){return this.menu$.asObservable()}change(){return this.menu$.pipe(Vl())}set(i){return this.menu$.next(i),this.menu$.asObservable()}add(i){let r=this.menu$.value;r.push(i),this.menu$.next(r)}reset(){this.menu$.next([])}buildRoute(i){let r="";return i.forEach(o=>{o&&o.trim()&&(r+="/"+o.replace(/^\/+|\/+$/g,""))}),r}getItemName(i){return this.getLevel(i)[i.length-1]}isLeafItem(i){let r=i.route===void 0,o=i.children===void 0,a=!o&&i.children?.length===0;return r||o||a}deepClone(i){return JSON.parse(JSON.stringify(i))}isJsonObjEqual(i,r){return JSON.stringify(i)===JSON.stringify(r)}isRouteEqual(i,r){return r=this.deepClone(r),r=r.filter(o=>o!==""),this.isJsonObjEqual(i,r)}getLevel(i){let r=[];return this.menu$.value.forEach(o=>{let a=[{item:o,parentNamePathList:[],realRouteArr:[]}];for(;a.length>0;){let s=[];for(let l of a){let c=l.item,d=this.deepClone(l.parentNamePathList).concat(c.name),p=this.deepClone(l.realRouteArr).concat(c.route);if(this.isRouteEqual(i,p)){r=d;break}if(!this.isLeafItem(c)){let _=c.children?.map(b=>({item:b,parentNamePathList:d,realRouteArr:p}));s=s.concat(_)}}a=s}}),r}addNamespace(i,r){i.forEach(o=>{o.name=`${r}.${o.name}`,o.children&&o.children.length>0&&this.addNamespace(o.children,o.name)})}};n.\u0275fac=function(r){return new(r||n)},n.\u0275prov=R({token:n,factory:n.\u0275fac,providedIn:"root"});let t=n;return t})();var OC;function aue(){if(OC===void 0&&(OC=null,typeof window<"u")){let t=window;t.trustedTypes!==void 0&&(OC=t.trustedTypes.createPolicy("angular#components",{createHTML:n=>n}))}return OC}function m_(t){return aue()?.createHTML(t)||t}function iz(t){return Error(`Unable to find icon with the name "${t}"`)}function sue(){return Error("Could not find HttpClient for use with Angular Material icons. Please add provideHttpClient() to your providers.")}function nz(t){return Error(`The URL provided to MatIconRegistry was not trusted as a resource URL via Angular's DomSanitizer. Attempted URL was "${t}".`)}function rz(t){return Error(`The literal provided to MatIconRegistry was not trusted as safe HTML by Angular's DomSanitizer. Attempted literal was "${t}".`)}var Dl=class{url;svgText;options;svgElement;constructor(n,e,i){this.url=n,this.svgText=e,this.options=i}},az=(()=>{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,i,r,o){this._httpClient=e,this._sanitizer=i,this._errorHandler=o,this._document=r}addSvgIcon(e,i,r){return this.addSvgIconInNamespace("",e,i,r)}addSvgIconLiteral(e,i,r){return this.addSvgIconLiteralInNamespace("",e,i,r)}addSvgIconInNamespace(e,i,r,o){return this._addSvgIconConfig(e,i,new Dl(r,null,o))}addSvgIconResolver(e){return this._resolvers.push(e),this}addSvgIconLiteralInNamespace(e,i,r,o){let a=this._sanitizer.sanitize(Rn.HTML,r);if(!a)throw rz(r);let s=m_(a);return this._addSvgIconConfig(e,i,new Dl("",s,o))}addSvgIconSet(e,i){return this.addSvgIconSetInNamespace("",e,i)}addSvgIconSetLiteral(e,i){return this.addSvgIconSetLiteralInNamespace("",e,i)}addSvgIconSetInNamespace(e,i,r){return this._addSvgIconSetConfig(e,new Dl(i,null,r))}addSvgIconSetLiteralInNamespace(e,i,r){let o=this._sanitizer.sanitize(Rn.HTML,i);if(!o)throw rz(i);let a=m_(o);return this._addSvgIconSetConfig(e,new Dl("",a,r))}registerFontClassAlias(e,i=e){return this._fontCssClassesByAlias.set(e,i),this}classNameForFontAlias(e){return this._fontCssClassesByAlias.get(e)||e}setDefaultFontSetClass(...e){return this._defaultFontSetClass=e,this}getDefaultFontSetClass(){return this._defaultFontSetClass}getSvgIconFromUrl(e){let i=this._sanitizer.sanitize(Rn.RESOURCE_URL,e);if(!i)throw nz(e);let r=this._cachedIconsByUrl.get(i);return r?Q(RC(r)):this._loadSvgIconFromConfig(new Dl(e,null)).pipe(He(o=>this._cachedIconsByUrl.set(i,o)),se(o=>RC(o)))}getNamedSvgIcon(e,i=""){let r=oz(i,e),o=this._svgIconConfigs.get(r);if(o)return this._getSvgFromConfig(o);if(o=this._getIconConfigFromResolvers(i,e),o)return this._svgIconConfigs.set(r,o),this._getSvgFromConfig(o);let a=this._iconSetConfigs.get(i);return a?this._getSvgFromIconSetConfigs(e,a):qn(iz(r))}ngOnDestroy(){this._resolvers=[],this._svgIconConfigs.clear(),this._iconSetConfigs.clear(),this._cachedIconsByUrl.clear()}_getSvgFromConfig(e){return e.svgText?Q(RC(this._svgElementFromConfig(e))):this._loadSvgIconFromConfig(e).pipe(se(i=>RC(i)))}_getSvgFromIconSetConfigs(e,i){let r=this._extractIconWithNameFromAnySet(e,i);if(r)return Q(r);let o=i.filter(a=>!a.svgText).map(a=>this._loadSvgIconSetFromConfig(a).pipe(ii(s=>{let c=`Loading icon set URL: ${this._sanitizer.sanitize(Rn.RESOURCE_URL,a.url)} failed: ${s.message}`;return this._errorHandler.handleError(new Error(c)),Q(null)})));return qa(o).pipe(se(()=>{let a=this._extractIconWithNameFromAnySet(e,i);if(!a)throw iz(e);return a}))}_extractIconWithNameFromAnySet(e,i){for(let r=i.length-1;r>=0;r--){let o=i[r];if(o.svgText&&o.svgText.toString().indexOf(e)>-1){let a=this._svgElementFromConfig(o),s=this._extractSvgIconFromSet(a,e,o.options);if(s)return s}}return null}_loadSvgIconFromConfig(e){return this._fetchIcon(e).pipe(He(i=>e.svgText=i),se(()=>this._svgElementFromConfig(e)))}_loadSvgIconSetFromConfig(e){return e.svgText?Q(null):this._fetchIcon(e).pipe(He(i=>e.svgText=i))}_extractSvgIconFromSet(e,i,r){let o=e.querySelector(`[id="${i}"]`);if(!o)return null;let a=o.cloneNode(!0);if(a.removeAttribute("id"),a.nodeName.toLowerCase()==="svg")return this._setSvgAttributes(a,r);if(a.nodeName.toLowerCase()==="symbol")return this._setSvgAttributes(this._toSvgElement(a),r);let s=this._svgElementFromString(m_(""));return s.appendChild(a),this._setSvgAttributes(s,r)}_svgElementFromString(e){let i=this._document.createElement("DIV");i.innerHTML=e;let r=i.querySelector("svg");if(!r)throw Error(" tag not found");return r}_toSvgElement(e){let i=this._svgElementFromString(m_("")),r=e.attributes;for(let o=0;om_(c)),Gr(()=>this._inProgressUrlFetches.delete(a)),Vl());return this._inProgressUrlFetches.set(a,l),l}_addSvgIconConfig(e,i,r){return this._svgIconConfigs.set(oz(e,i),r),this}_addSvgIconSetConfig(e,i){let r=this._iconSetConfigs.get(e);return r?r.push(i):this._iconSetConfigs.set(e,[i]),this}_svgElementFromConfig(e){if(!e.svgElement){let i=this._svgElementFromString(e.svgText);this._setSvgAttributes(i,e.options),e.svgElement=i}return e.svgElement}_getIconConfigFromResolvers(e,i){for(let r=0;rn?n.pathname+n.search:""}}var sz=["clip-path","color-profile","src","cursor","fill","filter","marker","marker-start","marker-mid","marker-end","mask","stroke"],hue=sz.map(t=>`[${t}]`).join(", "),pue=/^url\(['"]?#(.*?)['"]?\)$/,st=(()=>{class t{_elementRef=u(Y);_iconRegistry=u(az);_location=u(uue);_errorHandler=u(An);_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 i=this._cleanupFontValue(e);i!==this._fontSet&&(this._fontSet=i,this._updateFontIconClasses())}_fontSet;get fontIcon(){return this._fontIcon}set fontIcon(e){let i=this._cleanupFontValue(e);i!==this._fontIcon&&(this._fontIcon=i,this._updateFontIconClasses())}_fontIcon;_previousFontSetClass=[];_previousFontIconClass;_svgName;_svgNamespace;_previousPath;_elementsWithExternalReferences;_currentIconFetch=Te.EMPTY;constructor(){let e=u(new Oi("aria-hidden"),{optional:!0}),i=u(due,{optional:!0});i&&(i.color&&(this.color=this._defaultColor=i.color),i.fontSet&&(this.fontSet=i.fontSet)),e||this._elementRef.nativeElement.setAttribute("aria-hidden","true")}_splitIconName(e){if(!e)return["",""];let i=e.split(":");switch(i.length){case 1:return["",i[0]];case 2:return i;default:throw Error(`Invalid icon name: "${e}"`)}}ngOnInit(){this._updateFontIconClasses()}ngAfterViewChecked(){let e=this._elementsWithExternalReferences;if(e&&e.size){let i=this._location.getPathname();i!==this._previousPath&&(this._previousPath=i,this._prependPathToReferences(i))}}ngOnDestroy(){this._currentIconFetch.unsubscribe(),this._elementsWithExternalReferences&&this._elementsWithExternalReferences.clear()}_usingFontIcon(){return!this.svgIcon}_setSvgElement(e){this._clearSvgElement();let i=this._location.getPathname();this._previousPath=i,this._cacheChildrenWithExternalReferences(e),this._prependPathToReferences(i),this._elementRef.nativeElement.appendChild(e)}_clearSvgElement(){let e=this._elementRef.nativeElement,i=e.childNodes.length;for(this._elementsWithExternalReferences&&this._elementsWithExternalReferences.clear();i--;){let r=e.childNodes[i];(r.nodeType!==1||r.nodeName.toLowerCase()==="svg")&&r.remove()}}_updateFontIconClasses(){if(!this._usingFontIcon())return;let e=this._elementRef.nativeElement,i=(this.fontSet?this._iconRegistry.classNameForFontAlias(this.fontSet).split(/ +/):this._iconRegistry.getDefaultFontSetClass()).filter(r=>r.length>0);this._previousFontSetClass.forEach(r=>e.classList.remove(r)),i.forEach(r=>e.classList.add(r)),this._previousFontSetClass=i,this.fontIcon!==this._previousFontIconClass&&!i.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 i=this._elementsWithExternalReferences;i&&i.forEach((r,o)=>{r.forEach(a=>{o.setAttribute(a.name,`url('${e}#${a.value}')`)})})}_cacheChildrenWithExternalReferences(e){let i=e.querySelectorAll(hue),r=this._elementsWithExternalReferences=this._elementsWithExternalReferences||new Map;for(let o=0;o{let s=i[o],l=s.getAttribute(a),c=l?l.match(pue):null;if(c){let d=r.get(s);d||(d=[],r.set(s,d)),d.push({name:a,value:c[1]})}})}_updateSvgIcon(e){if(this._svgNamespace=null,this._svgName=null,this._currentIconFetch.unsubscribe(),e){let[i,r]=this._splitIconName(e);i&&(this._svgNamespace=i),r&&(this._svgName=r),this._currentIconFetch=this._iconRegistry.getNamedSvgIcon(r,i).pipe(ct(1)).subscribe(o=>this._setSvgElement(o),o=>{let a=`Error retrieving icon ${i}:${r}! ${o.message}`;this._errorHandler.handleError(new Error(a))})}}static \u0275fac=function(i){return new(i||t)};static \u0275cmp=E({type:t,selectors:[["mat-icon"]],hostAttrs:["role","img",1,"mat-icon","notranslate"],hostVars:10,hostBindings:function(i,r){i&2&&(X("data-mat-icon-type",r._usingFontIcon()?"font":"svg")("data-mat-icon-name",r._svgName||r.fontIcon)("data-mat-icon-namespace",r._svgNamespace||r.fontSet)("fontIcon",r._usingFontIcon()?r.fontIcon:null),nt(r.color?"mat-"+r.color:""),G("mat-icon-inline",r.inline)("mat-icon-no-color",r.color!=="primary"&&r.color!=="accent"&&r.color!=="warn"))},inputs:{color:"color",inline:[2,"inline","inline",L],svgIcon:"svgIcon",fontSet:"fontSet",fontIcon:"fontIcon"},exportAs:["matIcon"],ngContentSelectors:cue,decls:1,vars:0,template:function(i,r){i&1&&(Se(),ne(0))},styles:[`mat-icon,mat-icon.mat-primary,mat-icon.mat-accent,mat-icon.mat-warn{color:var(--mat-icon-color, inherit)}.mat-icon{-webkit-user-select:none;user-select:none;background-repeat:no-repeat;display:inline-block;fill:currentColor;height:24px;width:24px;overflow:hidden}.mat-icon.mat-icon-inline{font-size:inherit;height:inherit;line-height:inherit;width:inherit}.mat-icon.mat-ligature-font[fontIcon]::before{content:attr(fontIcon)}[dir=rtl] .mat-icon-rtl-mirror{transform:scale(-1, 1)}.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-prefix .mat-icon,.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-suffix .mat-icon{display:block}.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-prefix .mat-icon-button .mat-icon,.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})(),tt=(()=>{class t{static \u0275fac=function(i){return new(i||t)};static \u0275mod=ee({type:t});static \u0275inj=J({imports:[De,De]})}return t})();function fue(t,n){if(t&1&&(m(0,"a",3),g(1),h()),t&2){let e=x().$implicit;f(),N(e)}}function gue(t,n){if(t&1&&(m(0,"mat-icon",4),g(1,"chevron_right"),h(),m(2,"span"),g(3),ue(4,"translate"),h()),t&2){let e=x().$implicit;f(3),N(Oe(4,1,e))}}function _ue(t,n){if(t&1&&(m(0,"li",2),V(1,fue,2,1,"a",3),V(2,gue,5,3),h()),t&2){let e=n.$index;f(),B(e===0?1:-1),f(),B(e!==0?2:-1)}}var lz=(()=>{let n=class n{constructor(){this.router=u(Re),this.menu=u(mo),this.nav=re([]),this.navItems=[]}ngOnInit(){this.router.events.pipe(ce(i=>i instanceof xi),Ue(this.router)).subscribe(()=>{this.genBreadcrumb()})}genBreadcrumb(){let i=this.router.url.slice(1).split("/");this.nav().length>0?this.navItems=[...this.nav()]:(this.navItems=this.menu.getLevel(i),this.navItems.unshift("home"))}};n.\u0275fac=function(r){return new(r||n)},n.\u0275cmp=E({type:n,selectors:[["breadcrumb"]],inputs:{nav:[1,"nav"]},decls:4,vars:0,consts:[["aria-label","breadcrumb"],[1,"matero-breadcrumb"],[1,"matero-breadcrumb-item"],["href","#",1,"link"],[1,"chevron"]],template:function(r,o){r&1&&(m(0,"nav",0)(1,"ol",1),xt(2,_ue,3,2,"li",2,Ui),h()()),r&2&&(f(2),Ct(o.navItems))},dependencies:[tt,st,Sr,Mr],styles:[`.matero-breadcrumb{display:flex;flex-wrap:wrap;padding:0;margin-bottom:1rem;font-size:.875rem;list-style:none}.matero-breadcrumb-item{line-height:1.125rem;text-transform:capitalize}.matero-breadcrumb-item>*{vertical-align:middle}.matero-breadcrumb-item>a.link{color:currentColor;text-decoration:none}.matero-breadcrumb-item>a.link:hover{color:currentColor;text-decoration:underline}.matero-breadcrumb-item>.chevron{width:1.125rem;height:1.125rem;font-size:1.125rem;-webkit-user-select:none;user-select:none} -`],encapsulation:2});let t=n;return t})();function bue(t,n){}var jc=class{viewContainerRef;injector;id;role="dialog";panelClass="";hasBackdrop=!0;backdropClass="";disableClose=!1;closePredicate;width="";height="";minWidth;minHeight;maxWidth;maxHeight;positionStrategy;data=null;direction;ariaDescribedBy=null;ariaLabelledBy=null;ariaLabel=null;ariaModal=!1;autoFocus="first-tabbable";restoreFocus=!0;scrollStrategy;closeOnNavigation=!0;closeOnDestroy=!0;closeOnOverlayDetachments=!0;disableAnimations=!1;providers;container;templateContext};var pI=(()=>{class t extends mc{_elementRef=u(Y);_focusTrapFactory=u(eh);_config;_interactivityChecker=u(lc);_ngZone=u(ae);_focusMonitor=u(ti);_renderer=u(ze);_changeDetectorRef=u(ye);_injector=u(de);_platform=u(qe);_document=u(_e);_portalOutlet;_focusTrapped=new z;_focusTrap=null;_elementFocusedBeforeDialogWasOpened=null;_closeInteractionType=null;_ariaLabelledByQueue=[];_isDestroyed=!1;constructor(){super(),this._config=u(jc,{optional:!0})||new jc,this._config.ariaLabelledBy&&this._ariaLabelledByQueue.push(this._config.ariaLabelledBy)}_addAriaLabelledBy(e){this._ariaLabelledByQueue.push(e),this._changeDetectorRef.markForCheck()}_removeAriaLabelledBy(e){let i=this._ariaLabelledByQueue.indexOf(e);i>-1&&(this._ariaLabelledByQueue.splice(i,1),this._changeDetectorRef.markForCheck())}_contentAttached(){this._initializeFocusTrap(),this._captureInitialFocus()}_captureInitialFocus(){this._trapFocus()}ngOnDestroy(){this._focusTrapped.complete(),this._isDestroyed=!0,this._restoreFocus()}attachComponentPortal(e){this._portalOutlet.hasAttached();let i=this._portalOutlet.attachComponentPortal(e);return this._contentAttached(),i}attachTemplatePortal(e){this._portalOutlet.hasAttached();let i=this._portalOutlet.attachTemplatePortal(e);return this._contentAttached(),i}attachDomPortal=e=>{this._portalOutlet.hasAttached();let i=this._portalOutlet.attachDomPortal(e);return this._contentAttached(),i};_recaptureFocus(){this._containsFocus()||this._trapFocus()}_forceFocus(e,i){this._interactivityChecker.isFocusable(e)||(e.tabIndex=-1,this._ngZone.runOutsideAngular(()=>{let r=()=>{o(),a(),e.removeAttribute("tabindex")},o=this._renderer.listen(e,"blur",r),a=this._renderer.listen(e,"mousedown",r)})),e.focus(i)}_focusByCssSelector(e,i){let r=this._elementRef.nativeElement.querySelector(e);r&&this._forceFocus(r,i)}_trapFocus(e){this._isDestroyed||gt(()=>{let i=this._elementRef.nativeElement;switch(this._config.autoFocus){case!1:case"dialog":this._containsFocus()||i.focus(e);break;case!0:case"first-tabbable":this._focusTrap?.focusInitialElement(e)||this._focusDialogContainer(e);break;case"first-heading":this._focusByCssSelector('h1, h2, h3, h4, h5, h6, [role="heading"]',e);break;default:this._focusByCssSelector(this._config.autoFocus,e);break}this._focusTrapped.next()},{injector:this._injector})}_restoreFocus(){let e=this._config.restoreFocus,i=null;if(typeof e=="string"?i=this._document.querySelector(e):typeof e=="boolean"?i=e?this._elementFocusedBeforeDialogWasOpened:null:e&&(i=e),this._config.restoreFocus&&i&&typeof i.focus=="function"){let r=wo(),o=this._elementRef.nativeElement;(!r||r===this._document.body||r===o||o.contains(r))&&(this._focusMonitor?(this._focusMonitor.focusVia(i,this._closeInteractionType),this._closeInteractionType=null):i.focus())}this._focusTrap&&this._focusTrap.destroy()}_focusDialogContainer(e){this._elementRef.nativeElement.focus?.(e)}_containsFocus(){let e=this._elementRef.nativeElement,i=wo();return e===i||e.contains(i)}_initializeFocusTrap(){this._platform.isBrowser&&(this._focusTrap=this._focusTrapFactory.create(this._elementRef.nativeElement),this._document&&(this._elementFocusedBeforeDialogWasOpened=wo()))}static \u0275fac=function(i){return new(i||t)};static \u0275cmp=E({type:t,selectors:[["cdk-dialog-container"]],viewQuery:function(i,r){if(i&1&&ie(wr,7),i&2){let o;j(o=H())&&(r._portalOutlet=o.first)}},hostAttrs:["tabindex","-1",1,"cdk-dialog-container"],hostVars:6,hostBindings:function(i,r){i&2&&X("id",r._config.id||null)("role",r._config.role)("aria-modal",r._config.ariaModal)("aria-labelledby",r._config.ariaLabel?null:r._ariaLabelledByQueue[0])("aria-label",r._config.ariaLabel)("aria-describedby",r._config.ariaDescribedBy||null)},features:[le],decls:1,vars:0,consts:[["cdkPortalOutlet",""]],template:function(i,r){i&1&&A(0,bue,0,0,"ng-template",0)},dependencies:[wr],styles:[`.cdk-dialog-container{display:block;width:100%;height:100%;min-height:inherit;max-height:inherit} -`],encapsulation:2})}return t})(),h_=class{overlayRef;config;componentInstance;componentRef;containerInstance;disableClose;closed=new z;backdropClick;keydownEvents;outsidePointerEvents;id;_detachSubscription;constructor(n,e){this.overlayRef=n,this.config=e,this.disableClose=e.disableClose,this.backdropClick=n.backdropClick(),this.keydownEvents=n.keydownEvents(),this.outsidePointerEvents=n.outsidePointerEvents(),this.id=e.id,this.keydownEvents.subscribe(i=>{i.keyCode===27&&!this.disableClose&&!Lt(i)&&(i.preventDefault(),this.close(void 0,{focusOrigin:"keyboard"}))}),this.backdropClick.subscribe(()=>{!this.disableClose&&this._canClose()?this.close(void 0,{focusOrigin:"mouse"}):this.containerInstance._recaptureFocus?.()}),this._detachSubscription=n.detachments().subscribe(()=>{e.closeOnOverlayDetachments!==!1&&this.close()})}close(n,e){if(this._canClose(n)){let i=this.closed;this.containerInstance._closeInteractionType=e?.focusOrigin||"program",this._detachSubscription.unsubscribe(),this.overlayRef.dispose(),i.next(n),i.complete(),this.componentInstance=this.containerInstance=null}}updatePosition(){return this.overlayRef.updatePosition(),this}updateSize(n="",e=""){return this.overlayRef.updateSize({width:n,height:e}),this}addPanelClass(n){return this.overlayRef.addPanelClass(n),this}removePanelClass(n){return this.overlayRef.removePanelClass(n),this}_canClose(n){let e=this.config;return!!this.containerInstance&&(!e.closePredicate||e.closePredicate(n,e,this.componentInstance))}},vue=new O("DialogScrollStrategy",{providedIn:"root",factory:()=>{let t=u(de);return()=>hc(t)}}),yue=new O("DialogData"),xue=new O("DefaultDialogConfig");function Cue(t){let n=he(t),e=new U;return{valueSignal:n,get value(){return n()},change:e,ngOnDestroy(){e.complete()}}}var fI=(()=>{class t{_injector=u(de);_defaultOptions=u(xue,{optional:!0});_parentDialog=u(t,{optional:!0,skipSelf:!0});_overlayContainer=u(rx);_idGenerator=u(Ze);_openDialogsAtThisLevel=[];_afterAllClosedAtThisLevel=new z;_afterOpenedAtThisLevel=new z;_ariaHiddenElements=new Map;_scrollStrategy=u(vue);get openDialogs(){return this._parentDialog?this._parentDialog.openDialogs:this._openDialogsAtThisLevel}get afterOpened(){return this._parentDialog?this._parentDialog.afterOpened:this._afterOpenedAtThisLevel}afterAllClosed=In(()=>this.openDialogs.length?this._getAfterAllClosed():this._getAfterAllClosed().pipe(Ue(void 0)));constructor(){}open(e,i){let r=this._defaultOptions||new jc;i=k(k({},r),i),i.id=i.id||this._idGenerator.getId("cdk-dialog-"),i.id&&this.getDialogById(i.id);let o=this._getOverlayConfig(i),a=zr(this._injector,o),s=new h_(a,i),l=this._attachContainer(a,s,i);if(s.containerInstance=l,!this.openDialogs.length){let c=this._overlayContainer.getContainerElement();l._focusTrapped?l._focusTrapped.pipe(ct(1)).subscribe(()=>{this._hideNonDialogContentFromAssistiveTechnology(c)}):this._hideNonDialogContentFromAssistiveTechnology(c)}return this._attachDialogContent(e,s,l,i),this.openDialogs.push(s),s.closed.subscribe(()=>this._removeOpenDialog(s,!0)),this.afterOpened.next(s),s}closeAll(){hI(this.openDialogs,e=>e.close())}getDialogById(e){return this.openDialogs.find(i=>i.id===e)}ngOnDestroy(){hI(this._openDialogsAtThisLevel,e=>{e.config.closeOnDestroy===!1&&this._removeOpenDialog(e,!1)}),hI(this._openDialogsAtThisLevel,e=>e.close()),this._afterAllClosedAtThisLevel.complete(),this._afterOpenedAtThisLevel.complete(),this._openDialogsAtThisLevel=[]}_getOverlayConfig(e){let i=new Hr({positionStrategy:e.positionStrategy||Es().centerHorizontally().centerVertically(),scrollStrategy:e.scrollStrategy||this._scrollStrategy(),panelClass:e.panelClass,hasBackdrop:e.hasBackdrop,direction:e.direction,minWidth:e.minWidth,minHeight:e.minHeight,maxWidth:e.maxWidth,maxHeight:e.maxHeight,width:e.width,height:e.height,disposeOnNavigation:e.closeOnNavigation,disableAnimations:e.disableAnimations});return e.backdropClass&&(i.backdropClass=e.backdropClass),i}_attachContainer(e,i,r){let o=r.injector||r.viewContainerRef?.injector,a=[{provide:jc,useValue:r},{provide:h_,useValue:i},{provide:Ch,useValue:e}],s;r.container?typeof r.container=="function"?s=r.container:(s=r.container.type,a.push(...r.container.providers(r))):s=pI;let l=new to(s,r.viewContainerRef,de.create({parent:o||this._injector,providers:a}));return e.attach(l).instance}_attachDialogContent(e,i,r,o){if(e instanceof te){let a=this._createInjector(o,i,r,void 0),s={$implicit:o.data,dialogRef:i};o.templateContext&&(s=k(k({},s),typeof o.templateContext=="function"?o.templateContext():o.templateContext)),r.attachTemplatePortal(new Dn(e,null,s,a))}else{let a=this._createInjector(o,i,r,this._injector),s=r.attachComponentPortal(new to(e,o.viewContainerRef,a));i.componentRef=s,i.componentInstance=s.instance}}_createInjector(e,i,r,o){let a=e.injector||e.viewContainerRef?.injector,s=[{provide:yue,useValue:e.data},{provide:h_,useValue:i}];return e.providers&&(typeof e.providers=="function"?s.push(...e.providers(i,e,r)):s.push(...e.providers)),e.direction&&(!a||!a.get(Bt,null,{optional:!0}))&&s.push({provide:Bt,useValue:Cue(e.direction)}),de.create({parent:a||o,providers:s})}_removeOpenDialog(e,i){let r=this.openDialogs.indexOf(e);r>-1&&(this.openDialogs.splice(r,1),this.openDialogs.length||(this._ariaHiddenElements.forEach((o,a)=>{o?a.setAttribute("aria-hidden",o):a.removeAttribute("aria-hidden")}),this._ariaHiddenElements.clear(),i&&this._getAfterAllClosed().next()))}_hideNonDialogContentFromAssistiveTechnology(e){if(e.parentElement){let i=e.parentElement.children;for(let r=i.length-1;r>-1;r--){let o=i[r];o!==e&&o.nodeName!=="SCRIPT"&&o.nodeName!=="STYLE"&&!o.hasAttribute("aria-live")&&(this._ariaHiddenElements.set(o,o.getAttribute("aria-hidden")),o.setAttribute("aria-hidden","true"))}}}_getAfterAllClosed(){let e=this._parentDialog;return e?e._getAfterAllClosed():this._afterAllClosedAtThisLevel}static \u0275fac=function(i){return new(i||t)};static \u0275prov=R({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();function hI(t,n){let e=t.length;for(;e--;)n(t[e])}var cz=(()=>{class t{static \u0275fac=function(i){return new(i||t)};static \u0275mod=ee({type:t});static \u0275inj=J({providers:[fI],imports:[nr,ko,cl,ko]})}return t})();function wue(t,n){}var f_=class{viewContainerRef;injector;id;role="dialog";panelClass="";hasBackdrop=!0;backdropClass="";disableClose=!1;closePredicate;width="";height="";minWidth;minHeight;maxWidth;maxHeight;position;data=null;direction;ariaDescribedBy=null;ariaLabelledBy=null;ariaLabel=null;ariaModal=!1;autoFocus="first-tabbable";restoreFocus=!0;delayFocusTrap=!0;scrollStrategy;closeOnNavigation=!0;enterAnimationDuration;exitAnimationDuration},gI="mdc-dialog--open",dz="mdc-dialog--opening",uz="mdc-dialog--closing",Due=150,Eue=75,pz=(()=>{class t extends pI{_animationStateChanged=new U;_animationsEnabled=!Ye();_actionSectionCount=0;_hostElement=this._elementRef.nativeElement;_enterAnimationDuration=this._animationsEnabled?hz(this._config.enterAnimationDuration)??Due:0;_exitAnimationDuration=this._animationsEnabled?hz(this._config.exitAnimationDuration)??Eue:0;_animationTimer=null;_contentAttached(){super._contentAttached(),this._startOpenAnimation()}_startOpenAnimation(){this._animationStateChanged.emit({state:"opening",totalTime:this._enterAnimationDuration}),this._animationsEnabled?(this._hostElement.style.setProperty(mz,`${this._enterAnimationDuration}ms`),this._requestAnimationFrame(()=>this._hostElement.classList.add(dz,gI)),this._waitForAnimationToComplete(this._enterAnimationDuration,this._finishDialogOpen)):(this._hostElement.classList.add(gI),Promise.resolve().then(()=>this._finishDialogOpen()))}_startExitAnimation(){this._animationStateChanged.emit({state:"closing",totalTime:this._exitAnimationDuration}),this._hostElement.classList.remove(gI),this._animationsEnabled?(this._hostElement.style.setProperty(mz,`${this._exitAnimationDuration}ms`),this._requestAnimationFrame(()=>this._hostElement.classList.add(uz)),this._waitForAnimationToComplete(this._exitAnimationDuration,this._finishDialogClose)):Promise.resolve().then(()=>this._finishDialogClose())}_updateActionSectionCount(e){this._actionSectionCount+=e,this._changeDetectorRef.markForCheck()}_finishDialogOpen=()=>{this._clearAnimationClasses(),this._openAnimationDone(this._enterAnimationDuration)};_finishDialogClose=()=>{this._clearAnimationClasses(),this._animationStateChanged.emit({state:"closed",totalTime:this._exitAnimationDuration})};_clearAnimationClasses(){this._hostElement.classList.remove(dz,uz)}_waitForAnimationToComplete(e,i){this._animationTimer!==null&&clearTimeout(this._animationTimer),this._animationTimer=setTimeout(i,e)}_requestAnimationFrame(e){this._ngZone.runOutsideAngular(()=>{typeof requestAnimationFrame=="function"?requestAnimationFrame(e):e()})}_captureInitialFocus(){this._config.delayFocusTrap||this._trapFocus()}_openAnimationDone(e){this._config.delayFocusTrap&&this._trapFocus(),this._animationStateChanged.next({state:"opened",totalTime:e})}ngOnDestroy(){super.ngOnDestroy(),this._animationTimer!==null&&clearTimeout(this._animationTimer)}attachComponentPortal(e){let i=super.attachComponentPortal(e);return i.location.nativeElement.classList.add("mat-mdc-dialog-component-host"),i}static \u0275fac=(()=>{let e;return function(r){return(e||(e=ge(t)))(r||t)}})();static \u0275cmp=E({type:t,selectors:[["mat-dialog-container"]],hostAttrs:["tabindex","-1",1,"mat-mdc-dialog-container","mdc-dialog"],hostVars:10,hostBindings:function(i,r){i&2&&(ci("id",r._config.id),X("aria-modal",r._config.ariaModal)("role",r._config.role)("aria-labelledby",r._config.ariaLabel?null:r._ariaLabelledByQueue[0])("aria-label",r._config.ariaLabel)("aria-describedby",r._config.ariaDescribedBy||null),G("_mat-animation-noopable",!r._animationsEnabled)("mat-mdc-dialog-container-with-actions",r._actionSectionCount>0))},features:[le],decls:3,vars:0,consts:[[1,"mat-mdc-dialog-inner-container","mdc-dialog__container"],[1,"mat-mdc-dialog-surface","mdc-dialog__surface"],["cdkPortalOutlet",""]],template:function(i,r){i&1&&(m(0,"div",0)(1,"div",1),A(2,wue,0,0,"ng-template",2),h()())},dependencies:[wr],styles:[`.mat-mdc-dialog-container{width:100%;height:100%;display:block;box-sizing:border-box;max-height:inherit;min-height:inherit;min-width:inherit;max-width:inherit;outline:0}.cdk-overlay-pane.mat-mdc-dialog-panel{max-width:var(--mat-dialog-container-max-width, 560px);min-width:var(--mat-dialog-container-min-width, 280px)}@media(max-width: 599px){.cdk-overlay-pane.mat-mdc-dialog-panel{max-width:var(--mat-dialog-container-small-max-width, calc(100vw - 32px))}}.mat-mdc-dialog-inner-container{display:flex;flex-direction:row;align-items:center;justify-content:space-around;box-sizing:border-box;height:100%;opacity:0;transition:opacity linear var(--mat-dialog-transition-duration, 0ms);max-height:inherit;min-height:inherit;min-width:inherit;max-width:inherit}.mdc-dialog--closing .mat-mdc-dialog-inner-container{transition:opacity 75ms linear;transform:none}.mdc-dialog--open .mat-mdc-dialog-inner-container{opacity:1}._mat-animation-noopable .mat-mdc-dialog-inner-container{transition:none}.mat-mdc-dialog-surface{display:flex;flex-direction:column;flex-grow:0;flex-shrink:0;box-sizing:border-box;width:100%;height:100%;position:relative;overflow-y:auto;outline:0;transform:scale(0.8);transition:transform var(--mat-dialog-transition-duration, 0ms) cubic-bezier(0, 0, 0.2, 1);max-height:inherit;min-height:inherit;min-width:inherit;max-width:inherit;box-shadow:var(--mat-dialog-container-elevation-shadow, none);border-radius:var(--mat-dialog-container-shape, var(--mat-sys-corner-extra-large, 4px));background-color:var(--mat-dialog-container-color, var(--mat-sys-surface, white))}[dir=rtl] .mat-mdc-dialog-surface{text-align:right}.mdc-dialog--open .mat-mdc-dialog-surface,.mdc-dialog--closing .mat-mdc-dialog-surface{transform:none}._mat-animation-noopable .mat-mdc-dialog-surface{transition:none}.mat-mdc-dialog-surface::before{position:absolute;box-sizing:border-box;width:100%;height:100%;top:0;left:0;border:2px solid rgba(0,0,0,0);border-radius:inherit;content:"";pointer-events:none}.mat-mdc-dialog-title{display:block;position:relative;flex-shrink:0;box-sizing:border-box;margin:0 0 1px;padding:var(--mat-dialog-headline-padding, 6px 24px 13px)}.mat-mdc-dialog-title::before{display:inline-block;width:0;height:40px;content:"";vertical-align:0}[dir=rtl] .mat-mdc-dialog-title{text-align:right}.mat-mdc-dialog-container .mat-mdc-dialog-title{color:var(--mat-dialog-subhead-color, var(--mat-sys-on-surface, rgba(0, 0, 0, 0.87)));font-family:var(--mat-dialog-subhead-font, var(--mat-sys-headline-small-font, inherit));line-height:var(--mat-dialog-subhead-line-height, var(--mat-sys-headline-small-line-height, 1.5rem));font-size:var(--mat-dialog-subhead-size, var(--mat-sys-headline-small-size, 1rem));font-weight:var(--mat-dialog-subhead-weight, var(--mat-sys-headline-small-weight, 400));letter-spacing:var(--mat-dialog-subhead-tracking, var(--mat-sys-headline-small-tracking, 0.03125em))}.mat-mdc-dialog-content{display:block;flex-grow:1;box-sizing:border-box;margin:0;overflow:auto;max-height:65vh}.mat-mdc-dialog-content>:first-child{margin-top:0}.mat-mdc-dialog-content>:last-child{margin-bottom:0}.mat-mdc-dialog-container .mat-mdc-dialog-content{color:var(--mat-dialog-supporting-text-color, var(--mat-sys-on-surface-variant, rgba(0, 0, 0, 0.6)));font-family:var(--mat-dialog-supporting-text-font, var(--mat-sys-body-medium-font, inherit));line-height:var(--mat-dialog-supporting-text-line-height, var(--mat-sys-body-medium-line-height, 1.5rem));font-size:var(--mat-dialog-supporting-text-size, var(--mat-sys-body-medium-size, 1rem));font-weight:var(--mat-dialog-supporting-text-weight, var(--mat-sys-body-medium-weight, 400));letter-spacing:var(--mat-dialog-supporting-text-tracking, var(--mat-sys-body-medium-tracking, 0.03125em))}.mat-mdc-dialog-container .mat-mdc-dialog-content{padding:var(--mat-dialog-content-padding, 20px 24px)}.mat-mdc-dialog-container-with-actions .mat-mdc-dialog-content{padding:var(--mat-dialog-with-actions-content-padding, 20px 24px 0)}.mat-mdc-dialog-container .mat-mdc-dialog-title+.mat-mdc-dialog-content{padding-top:0}.mat-mdc-dialog-actions{display:flex;position:relative;flex-shrink:0;flex-wrap:wrap;align-items:center;box-sizing:border-box;min-height:52px;margin:0;border-top:1px solid rgba(0,0,0,0);padding:var(--mat-dialog-actions-padding, 16px 24px);justify-content:var(--mat-dialog-actions-alignment, flex-end)}@media(forced-colors: active){.mat-mdc-dialog-actions{border-top-color:CanvasText}}.mat-mdc-dialog-actions.mat-mdc-dialog-actions-align-start,.mat-mdc-dialog-actions[align=start]{justify-content:start}.mat-mdc-dialog-actions.mat-mdc-dialog-actions-align-center,.mat-mdc-dialog-actions[align=center]{justify-content:center}.mat-mdc-dialog-actions.mat-mdc-dialog-actions-align-end,.mat-mdc-dialog-actions[align=end]{justify-content:flex-end}.mat-mdc-dialog-actions .mat-button-base+.mat-button-base,.mat-mdc-dialog-actions .mat-mdc-button-base+.mat-mdc-button-base{margin-left:8px}[dir=rtl] .mat-mdc-dialog-actions .mat-button-base+.mat-button-base,[dir=rtl] .mat-mdc-dialog-actions .mat-mdc-button-base+.mat-mdc-button-base{margin-left:0;margin-right:8px}.mat-mdc-dialog-component-host{display:contents} -`],encapsulation:2})}return t})(),mz="--mat-dialog-transition-duration";function hz(t){return t==null?null:typeof t=="number"?t:t.endsWith("ms")?Bn(t.substring(0,t.length-2)):t.endsWith("s")?Bn(t.substring(0,t.length-1))*1e3:t==="0"?0:null}var p_=(function(t){return t[t.OPEN=0]="OPEN",t[t.CLOSING=1]="CLOSING",t[t.CLOSED=2]="CLOSED",t})(p_||{}),Au=class{_ref;_config;_containerInstance;componentInstance;componentRef;disableClose;id;_afterOpened=new z;_beforeClosed=new z;_result;_closeFallbackTimeout;_state=p_.OPEN;_closeInteractionType;constructor(n,e,i){this._ref=n,this._config=e,this._containerInstance=i,this.disableClose=e.disableClose,this.id=n.id,n.addPanelClass("mat-mdc-dialog-panel"),i._animationStateChanged.pipe(ce(r=>r.state==="opened"),ct(1)).subscribe(()=>{this._afterOpened.next(),this._afterOpened.complete()}),i._animationStateChanged.pipe(ce(r=>r.state==="closed"),ct(1)).subscribe(()=>{clearTimeout(this._closeFallbackTimeout),this._finishDialogClose()}),n.overlayRef.detachments().subscribe(()=>{this._beforeClosed.next(this._result),this._beforeClosed.complete(),this._finishDialogClose()}),Je(this.backdropClick(),this.keydownEvents().pipe(ce(r=>r.keyCode===27&&!this.disableClose&&!Lt(r)))).subscribe(r=>{this.disableClose||(r.preventDefault(),fz(this,r.type==="keydown"?"keyboard":"mouse"))})}close(n){let e=this._config.closePredicate;e&&!e(n,this._config,this.componentInstance)||(this._result=n,this._containerInstance._animationStateChanged.pipe(ce(i=>i.state==="closing"),ct(1)).subscribe(i=>{this._beforeClosed.next(n),this._beforeClosed.complete(),this._ref.overlayRef.detachBackdrop(),this._closeFallbackTimeout=setTimeout(()=>this._finishDialogClose(),i.totalTime+100)}),this._state=p_.CLOSING,this._containerInstance._startExitAnimation())}afterOpened(){return this._afterOpened}afterClosed(){return this._ref.closed}beforeClosed(){return this._beforeClosed}backdropClick(){return this._ref.backdropClick}keydownEvents(){return this._ref.keydownEvents}updatePosition(n){let e=this._ref.config.positionStrategy;return n&&(n.left||n.right)?n.left?e.left(n.left):e.right(n.right):e.centerHorizontally(),n&&(n.top||n.bottom)?n.top?e.top(n.top):e.bottom(n.bottom):e.centerVertically(),this._ref.updatePosition(),this}updateSize(n="",e=""){return this._ref.updateSize(n,e),this}addPanelClass(n){return this._ref.addPanelClass(n),this}removePanelClass(n){return this._ref.removePanelClass(n),this}getState(){return this._state}_finishDialogClose(){this._state=p_.CLOSED,this._ref.close(this._result,{focusOrigin:this._closeInteractionType}),this.componentInstance=null}};function fz(t,n,e){return t._closeInteractionType=n,t.close(e)}var PC=new O("MatMdcDialogData"),gz=new O("mat-mdc-dialog-default-options"),_z=new O("mat-mdc-dialog-scroll-strategy",{providedIn:"root",factory:()=>{let t=u(de);return()=>hc(t)}}),kn=(()=>{class t{_defaultOptions=u(gz,{optional:!0});_scrollStrategy=u(_z);_parentDialog=u(t,{optional:!0,skipSelf:!0});_idGenerator=u(Ze);_injector=u(de);_dialog=u(fI);_animationsDisabled=Ye();_openDialogsAtThisLevel=[];_afterAllClosedAtThisLevel=new z;_afterOpenedAtThisLevel=new z;dialogConfigClass=f_;_dialogRefConstructor;_dialogContainerType;_dialogDataToken;get openDialogs(){return this._parentDialog?this._parentDialog.openDialogs:this._openDialogsAtThisLevel}get afterOpened(){return this._parentDialog?this._parentDialog.afterOpened:this._afterOpenedAtThisLevel}_getAfterAllClosed(){let e=this._parentDialog;return e?e._getAfterAllClosed():this._afterAllClosedAtThisLevel}afterAllClosed=In(()=>this.openDialogs.length?this._getAfterAllClosed():this._getAfterAllClosed().pipe(Ue(void 0)));constructor(){this._dialogRefConstructor=Au,this._dialogContainerType=pz,this._dialogDataToken=PC}open(e,i){let r;i=k(k({},this._defaultOptions||new f_),i),i.id=i.id||this._idGenerator.getId("mat-mdc-dialog-"),i.scrollStrategy=i.scrollStrategy||this._scrollStrategy();let o=this._dialog.open(e,Ee(k({},i),{positionStrategy:Es(this._injector).centerHorizontally().centerVertically(),disableClose:!0,closePredicate:void 0,closeOnDestroy:!1,closeOnOverlayDetachments:!1,disableAnimations:this._animationsDisabled||i.enterAnimationDuration?.toLocaleString()==="0"||i.exitAnimationDuration?.toString()==="0",container:{type:this._dialogContainerType,providers:()=>[{provide:this.dialogConfigClass,useValue:i},{provide:jc,useValue:i}]},templateContext:()=>({dialogRef:r}),providers:(a,s,l)=>(r=new this._dialogRefConstructor(a,i,l),r.updatePosition(i?.position),[{provide:this._dialogContainerType,useValue:l},{provide:this._dialogDataToken,useValue:s.data},{provide:this._dialogRefConstructor,useValue:r}])}));return r.componentRef=o.componentRef,r.componentInstance=o.componentInstance,this.openDialogs.push(r),this.afterOpened.next(r),r.afterClosed().subscribe(()=>{let a=this.openDialogs.indexOf(r);a>-1&&(this.openDialogs.splice(a,1),this.openDialogs.length||this._getAfterAllClosed().next())}),r}closeAll(){this._closeDialogs(this.openDialogs)}getDialogById(e){return this.openDialogs.find(i=>i.id===e)}ngOnDestroy(){this._closeDialogs(this._openDialogsAtThisLevel),this._afterAllClosedAtThisLevel.complete(),this._afterOpenedAtThisLevel.complete()}_closeDialogs(e){let i=e.length;for(;i--;)e[i].close()}static \u0275fac=function(i){return new(i||t)};static \u0275prov=R({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();var bz=(()=>{class t{_dialogRef=u(Au,{optional:!0});_elementRef=u(Y);_dialog=u(kn);constructor(){}ngOnInit(){this._dialogRef||(this._dialogRef=Mue(this._elementRef,this._dialog.openDialogs)),this._dialogRef&&Promise.resolve().then(()=>{this._onAdd()})}ngOnDestroy(){this._dialogRef?._containerInstance&&Promise.resolve().then(()=>{this._onRemove()})}static \u0275fac=function(i){return new(i||t)};static \u0275dir=P({type:t})}return t})(),_I=(()=>{class t extends bz{id=u(Ze).getId("mat-mdc-dialog-title-");_onAdd(){this._dialogRef._containerInstance?._addAriaLabelledBy?.(this.id)}_onRemove(){this._dialogRef?._containerInstance?._removeAriaLabelledBy?.(this.id)}static \u0275fac=(()=>{let e;return function(r){return(e||(e=ge(t)))(r||t)}})();static \u0275dir=P({type:t,selectors:[["","mat-dialog-title",""],["","matDialogTitle",""]],hostAttrs:[1,"mat-mdc-dialog-title","mdc-dialog__title"],hostVars:1,hostBindings:function(i,r){i&2&&ci("id",r.id)},inputs:{id:"id"},exportAs:["matDialogTitle"],features:[le]})}return t})(),bI=(()=>{class t{static \u0275fac=function(i){return new(i||t)};static \u0275dir=P({type:t,selectors:[["","mat-dialog-content",""],["mat-dialog-content"],["","matDialogContent",""]],hostAttrs:[1,"mat-mdc-dialog-content","mdc-dialog__content"],features:[Em([Fa])]})}return t})(),vI=(()=>{class t extends bz{align;_onAdd(){this._dialogRef._containerInstance?._updateActionSectionCount?.(1)}_onRemove(){this._dialogRef._containerInstance?._updateActionSectionCount?.(-1)}static \u0275fac=(()=>{let e;return function(r){return(e||(e=ge(t)))(r||t)}})();static \u0275dir=P({type:t,selectors:[["","mat-dialog-actions",""],["mat-dialog-actions"],["","matDialogActions",""]],hostAttrs:[1,"mat-mdc-dialog-actions","mdc-dialog__actions"],hostVars:6,hostBindings:function(i,r){i&2&&G("mat-mdc-dialog-actions-align-start",r.align==="start")("mat-mdc-dialog-actions-align-center",r.align==="center")("mat-mdc-dialog-actions-align-end",r.align==="end")},inputs:{align:"align"},features:[le]})}return t})();function Mue(t,n){let e=t.nativeElement.parentElement;for(;e&&!e.classList.contains("mat-mdc-dialog-container");)e=e.parentElement;return e?n.find(i=>i.id===e.id):null}var Tn=(()=>{class t{static \u0275fac=function(i){return new(i||t)};static \u0275mod=ee({type:t});static \u0275inj=J({providers:[kn],imports:[cz,nr,ko,De,De]})}return t})();var Tr=(()=>{let n=class n{constructor(){this.dialogRef=u(Au),this.data=u(PC)}confirm(){this.dialogRef.close(!0)}cancel(){this.dialogRef.close(!1)}};n.\u0275fac=function(r){return new(r||n)},n.\u0275cmp=E({type:n,selectors:[["app-confirm-dialog"]],decls:12,vars:4,consts:[["mat-dialog-title",""],["color","warn",2,"vertical-align","middle","margin-right","8px"],["align","end"],["mat-button","",3,"click"],["mat-raised-button","","color","warn","cdkFocusInitial","",3,"click"]],template:function(r,o){r&1&&(m(0,"h2",0)(1,"mat-icon",1),g(2,"warning"),h(),g(3),h(),m(4,"mat-dialog-content")(5,"p"),g(6),h()(),m(7,"mat-dialog-actions",2)(8,"button",3),S("click",function(){return o.cancel()}),g(9),h(),m(10,"button",4),S("click",function(){return o.confirm()}),g(11),h()()),r&2&&(f(3),pe(" ",o.data.title,` -`),f(3),N(o.data.message),f(3),pe(" ",o.data.cancelText||"Cancel"," "),f(2),pe(" ",o.data.confirmText||"Delete"," "))},dependencies:[Tn,_I,vI,bI,Be,Mt,tt,st],encapsulation:2});let t=n;return t})();function kue(t,n){if(t&1&&(m(0,"div",2),g(1),h()),t&2){let e=x();f(),N(e.title())}}function Tue(t,n){if(t&1&&(m(0,"div",3),g(1),h()),t&2){let e=x();f(),N(e.message())}}var sp=(()=>{let n=class n{constructor(){this.code=re(""),this.title=re(""),this.message=re("")}};n.\u0275fac=function(r){return new(r||n)},n.\u0275cmp=E({type:n,selectors:[["error-code"]],inputs:{code:[1,"code"],title:[1,"title"],message:[1,"message"]},decls:8,vars:3,consts:[[1,"matero-error-wrap"],[1,"matero-error-code"],[1,"matero-error-title"],[1,"matero-error-message"],["matButton","elevated","color","primary","routerLink","/"]],template:function(r,o){r&1&&(m(0,"div",0)(1,"div",1),g(2),h(),V(3,kue,2,1,"div",2),V(4,Tue,2,1,"div",3),m(5,"div")(6,"a",4),g(7,"Back to Home"),h()()()),r&2&&(f(2),N(o.code()),f(),B(o.title()?3:-1),f(),B(o.message()?4:-1))},dependencies:[Vn,Be,Mt],styles:[`.matero-error-wrap{text-align:center}.matero-error-code{padding:1.25rem 0;font-size:10rem;text-shadow:.1325825215rem .1325825215rem 0 rgba(0,0,0,.028575),.2651650429rem .2651650429rem 0 rgba(0,0,0,.02715),.3977475644rem .3977475644rem 0 rgba(0,0,0,.025725),.5303300859rem .5303300859rem 0 rgba(0,0,0,.0243),.6629126074rem .6629126074rem 0 rgba(0,0,0,.022875),.7954951288rem .7954951288rem 0 rgba(0,0,0,.02145),.9280776503rem .9280776503rem 0 rgba(0,0,0,.020025),1.0606601718rem 1.0606601718rem 0 rgba(0,0,0,.0186),1.1932426933rem 1.1932426933rem 0 rgba(0,0,0,.017175),1.3258252147rem 1.3258252147rem 0 rgba(0,0,0,.01575),1.4584077362rem 1.4584077362rem 0 rgba(0,0,0,.014325),1.5909902577rem 1.5909902577rem 0 rgba(0,0,0,.0129),1.7235727791rem 1.7235727791rem 0 rgba(0,0,0,.011475),1.8561553006rem 1.8561553006rem 0 rgba(0,0,0,.01005),1.9887378221rem 1.9887378221rem 0 rgba(0,0,0,.008625),2.1213203436rem 2.1213203436rem 0 rgba(0,0,0,.0072),2.253902865rem 2.253902865rem 0 rgba(0,0,0,.005775),2.3864853865rem 2.3864853865rem 0 rgba(0,0,0,.00435),2.519067908rem 2.519067908rem 0 rgba(0,0,0,.002925),2.6516504294rem 2.6516504294rem 0 rgba(0,0,0,.0015)}.matero-error-title{margin:0 0 1rem;font-size:1.25rem;font-weight:500;line-height:2rem}.matero-error-message{margin:0 0 1rem;font-size:1rem;font-weight:400;line-height:1.75rem} -`],encapsulation:2});let t=n;return t})();function Iue(t,n){if(t&1&&M(0,"breadcrumb",2),t&2){let e=x();v("nav",e.nav())}}var Qt=(()=>{let n=class n{constructor(){this.router=u(Re),this.menu=u(mo),this.title=re(""),this.subtitle=re(""),this.nav=re([]),this.hideBreadcrumb=re(!1,{transform:L}),this.titleName=oi(()=>{let i=this.router.url.slice(1).split("/"),r=this.menu.getLevel(i);return this.title()||r[r.length-1]})}};n.\u0275fac=function(r){return new(r||n)},n.\u0275cmp=E({type:n,selectors:[["page-header"]],hostAttrs:[1,"matero-page-header"],inputs:{title:[1,"title"],subtitle:[1,"subtitle"],nav:[1,"nav"],hideBreadcrumb:[1,"hideBreadcrumb"]},decls:7,vars:5,consts:[[1,"matero-page-header-inner"],[1,"matero-page-title"],[3,"nav"]],template:function(r,o){r&1&&(m(0,"div",0)(1,"h1",1),g(2),ue(3,"translate"),m(4,"small"),g(5),h()(),V(6,Iue,1,1,"breadcrumb",2),h()),r&2&&(f(2),pe(" ",Oe(3,3,o.titleName())," "),f(3),N(o.subtitle()),f(),B(o.hideBreadcrumb()?-1:6))},dependencies:[lz,Sr,Mr],styles:[`.matero-page-header{display:block;padding:1rem;margin-bottom:1rem;color:#ffffffde;background-color:#0074e9;border-radius:var(--mat-sys-corner-medium)}.matero-page-header .matero-breadcrumb{margin-top:.5rem;margin-bottom:0}.matero-page-title{margin:0;font-size:1.5rem;font-weight:400} -`],encapsulation:2});let t=n;return t})();var vz=(()=>{let n=class n{constructor(){this.change=new U,this.valueSignal=he("ltr")}get value(){return this.valueSignal()}set value(i){this.valueSignal.set(i),this.change.next(i)}ngOnDestroy(){this.change.complete()}};n.\u0275fac=function(r){return new(r||n)},n.\u0275prov=R({token:n,factory:n.\u0275fac,providedIn:"root"});let t=n;return t})();var yz=(()=>{let n=class n{constructor(){this.messages=[]}add(i){this.messages.push(i)}clear(){this.messages=[]}};n.\u0275fac=function(r){return new(r||n)},n.\u0275prov=R({token:n,factory:n.\u0275fac,providedIn:"root"});let t=n;return t})();var xz=(()=>{let n=class n{get(i){return JSON.parse(localStorage.getItem(i)||"{}")||{}}set(i,r){return localStorage.setItem(i,JSON.stringify(r)),!0}has(i){return!!localStorage.getItem(i)}remove(i){localStorage.removeItem(i)}clear(){localStorage.clear()}};n.\u0275fac=function(r){return new(r||n)},n.\u0275prov=R({token:n,factory:n.\u0275fac,providedIn:"root"});let t=n;return t})();var Cz=(()=>{let n=class n{constructor(){this.translate=u(oa),this.paginatorIntl=new bc,this.translate.onLangChange.subscribe(i=>this.getPaginatorIntl())}getPaginatorIntl(){return this.paginatorIntl.itemsPerPageLabel=this.translate.instant("paginator.items_per_page_label"),this.paginatorIntl.previousPageLabel=this.translate.instant("paginator.previous_page_label"),this.paginatorIntl.nextPageLabel=this.translate.instant("paginator.next_page_label"),this.paginatorIntl.firstPageLabel=this.translate.instant("paginator.first_page_label"),this.paginatorIntl.lastPageLabel=this.translate.instant("paginator.last_page_label"),this.paginatorIntl.getRangeLabel=this.getRangeLabel.bind(this),this.paginatorIntl.changes.next(),this.paginatorIntl}getRangeLabel(i,r,o){if(o===0||r===0)return this.translate.instant("paginator.range_page_label_1",{length:o});o=Math.max(o,0);let a=i*r,s=a{if(t.destroyed){e.next();return}return t.onDestroy(e.next.bind(e))});return e=>e.pipe(we(n))}function wz(t){let n=Y1(t);return new Fe(e=>{let i=n?.onDestroy(()=>e.complete()),r=t.subscribe(o=>e.next(o));return()=>{r.unsubscribe(),i?.()}})}var Aue=["content"],Oue=["scroll"],Rue=["padding"],Mz=["*"],g_=t=>({searchTerm:t});function Pue(t,n){if(t&1&&(m(0,"div",3),Ge(1,6),h()),t&2){let e=x();f(),v("ngTemplateOutlet",e.headerTemplate())("ngTemplateOutletContext",Nt(2,g_,e.filterValue()))}}function Fue(t,n){if(t&1&&(m(0,"div",5),Ge(1,6),h()),t&2){let e=x();f(),v("ngTemplateOutlet",e.footerTemplate())("ngTemplateOutletContext",Nt(2,g_,e.filterValue()))}}var Nue=["searchInput"],Lue=["clearButton"],Vue=(t,n,e)=>({item:t,clear:n,label:e}),Bue=(t,n)=>({items:t,clear:n}),jue=(t,n,e,i)=>({item:t,item$:n,index:e,searchTerm:i});function Hue(t,n){if(t&1&&(m(0,"div",20),g(1),h()),t&2){let e=x(2);f(),N(e.placeholder()??e.config.placeholder)}}function zue(t,n){}function Uue(t,n){if(t&1&&A(0,Hue,2,1,"ng-template",null,1,vi)(2,zue,0,0,"ng-template",19),t&2){let e=Me(1),i=x();f(2),v("ngTemplateOutlet",i.placeholderTemplate()||e)}}function $ue(t,n){if(t&1){let e=q();m(0,"span",23),S("click",function(){T(e);let r=x().$implicit,o=x(2);return I(o.unselect(r))}),g(1,"\xD7"),h(),M(2,"span",24)}if(t&2){let e=x().$implicit,i=x(2);f(2),v("ngItemLabel",e.label)("escape",i.escapeHTML)}}function Wue(t,n){}function Gue(t,n){if(t&1&&(m(0,"div",22),A(1,$ue,3,2,"ng-template",null,2,vi)(3,Wue,0,0,"ng-template",12),h()),t&2){let e=n.$implicit,i=Me(2),r=x(2);G("ng-value-disabled",e.disabled),f(3),v("ngTemplateOutlet",r.labelTemplate()||i)("ngTemplateOutletContext",Vd(4,Vue,e.value,r.clearItem,e.label))}}function que(t,n){if(t&1&&xt(0,Gue,4,8,"div",21,T0().trackByOption,!0),t&2){let e=x();Ct(e.selectedItems)}}function Yue(t,n){}function Que(t,n){if(t&1&&A(0,Yue,0,0,"ng-template",12),t&2){let e=x();v("ngTemplateOutlet",e.multiLabelTemplate())("ngTemplateOutletContext",Da(2,Bue,e.selectedValues,e.clearItem))}}function Kue(t,n){t&1&&M(0,"div",25)}function Zue(t,n){}function Xue(t,n){if(t&1&&A(0,Kue,1,0,"ng-template",null,3,vi)(2,Zue,0,0,"ng-template",19),t&2){let e=Me(1),i=x();f(2),v("ngTemplateOutlet",i.loadingSpinnerTemplate()||e)}}function Jue(t,n){if(t&1&&Ge(0,19),t&2){let e=x(2);v("ngTemplateOutlet",e.clearButtonTemplate())}}function eme(t,n){if(t&1){let e=q();m(0,"span",27,4),S("click",function(r){T(e);let o=x(2);return I(o.handleClearClick(r))}),m(2,"span",28),g(3,"\xD7"),h()()}if(t&2){let e=x(2);v("title",U1(e.clearAllText()||e.config.clearAllText)),X("tabindex",e.tabFocusOnClear()?0:-1)}}function tme(t,n){if(t&1&&V(0,Jue,1,1,"ng-container",19)(1,eme,4,3,"span",26),t&2){let e=x();B(e.clearButtonTemplate()?0:1)}}function ime(t,n){if(t&1&&M(0,"span",33),t&2){let e=x().$implicit,i=x(2);v("ngItemLabel",e.label)("escape",i.escapeHTML)}}function nme(t,n){}function rme(t,n){if(t&1){let e=q();m(0,"div",32),S("click",function(){let r=T(e).$implicit,o=x(2);return I(o.toggleItem(r))})("mouseover",function(){let r=T(e).$implicit,o=x(2);return I(o.onItemHover(r))}),A(1,ime,1,2,"ng-template",null,5,vi)(3,nme,0,0,"ng-template",12),h()}if(t&2){let e=n.$implicit,i=Me(2),r=x(2);G("ng-option-disabled",e.disabled)("ng-option-selected",e.selected)("ng-optgroup",e.children)("ng-option",!e.children)("ng-option-child",!!e.parent)("ng-option-marked",e===r.itemsList.markedItem),X("role",e.children?"group":"option")("aria-selected",e.selected)("id",e==null?null:e.htmlId)("aria-setsize",r.itemsList.filteredItems.length)("aria-posinset",e.index+1),f(3),v("ngTemplateOutlet",e.children?r.optgroupTemplate()||i:r.optionTemplate()||i)("ngTemplateOutletContext",km(19,jue,e.value,e,e.index,r.searchTerm))}}function ome(t,n){if(t&1&&(m(0,"span")(1,"span",35),g(2),h(),g(3),h()),t&2){let e=x(3);f(2),N(e.addTagText()||e.config.addTagText),f(),pe('"',e.searchTerm,'"')}}function ame(t,n){}function sme(t,n){if(t&1){let e=q();m(0,"div",34),S("mouseover",function(){T(e);let r=x(2);return I(r.itemsList.unmarkItem())})("click",function(){T(e);let r=x(2);return I(r.selectTag())}),A(1,ome,4,2,"ng-template",null,6,vi)(3,ame,0,0,"ng-template",12),h()}if(t&2){let e=Me(2),i=x(2);G("ng-option-marked",!i.itemsList.markedItem),f(3),v("ngTemplateOutlet",i.tagTemplate()||e)("ngTemplateOutletContext",Nt(4,g_,i.searchTerm))}}function lme(t,n){if(t&1&&(m(0,"div",36),g(1),h()),t&2){let e=x(3);f(),N(e.notFoundText()??e.config.notFoundText)}}function cme(t,n){}function dme(t,n){if(t&1&&A(0,lme,2,1,"ng-template",null,7,vi)(2,cme,0,0,"ng-template",12),t&2){let e=Me(1),i=x(2);f(2),v("ngTemplateOutlet",i.notFoundTemplate()||e)("ngTemplateOutletContext",Nt(2,g_,i.searchTerm))}}function ume(t,n){if(t&1&&(m(0,"div",36),g(1),h()),t&2){let e=x(3);f(),N(e.typeToSearchText()||e.config.typeToSearchText)}}function mme(t,n){}function hme(t,n){if(t&1&&A(0,ume,2,1,"ng-template",null,8,vi)(2,mme,0,0,"ng-template",19),t&2){let e=Me(1),i=x(2);f(2),v("ngTemplateOutlet",i.typeToSearchTemplate()||e)}}function pme(t,n){if(t&1&&(m(0,"div",36),g(1),h()),t&2){let e=x(3);f(),N(e.loadingText()||e.config.loadingText)}}function fme(t,n){}function gme(t,n){if(t&1&&A(0,pme,2,1,"ng-template",null,9,vi)(2,fme,0,0,"ng-template",12),t&2){let e=Me(1),i=x(2);f(2),v("ngTemplateOutlet",i.loadingTextTemplate()||e)("ngTemplateOutletContext",Nt(2,g_,i.searchTerm))}}function _me(t,n){if(t&1){let e=q();m(0,"ng-dropdown-panel",29),S("update",function(r){T(e);let o=x();return I(o.viewPortItems=r)})("scroll",function(r){T(e);let o=x();return I(o.scroll.emit(r))})("scrollToEnd",function(r){T(e);let o=x();return I(o.scrollToEnd.emit(r))})("outsideClick",function(){T(e);let r=x();return I(r.close())}),kt(1),xt(2,rme,4,24,"div",30,T0().trackByOption,!0),V(4,sme,4,6,"div",31),Dt(),V(5,dme,3,4),V(6,hme,3,1),V(7,gme,3,4),h()}if(t&2){let e=x(),i=e.appendTo()||e.config.appendTo;nt(i?e.ngClass()?e.ngClass():e.classes:null),G("ng-select-multiple",e.multiple()),v("virtualScroll",e.virtualScroll()??!e.config.disableVirtualScroll??!1)("bufferAmount",e.bufferAmount())("appendTo",i)("position",e.dropdownPosition())("outsideClickEvent",e.outsideClickEvent())("headerTemplate",e.headerTemplate())("footerTemplate",e.footerTemplate())("filterValue",e.searchTerm)("items",e.itemsList.filteredItems)("showAddTag",e.showAddTag)("markedItem",e.itemsList.markedItem)("id",e.dropdownId)("ariaLabelDropdown",e.ariaLabelDropdown()),f(2),Ct(e.viewPortItems),f(2),B(e.showAddTag?4:-1),f(),B(e.showNoItemsFound()?5:-1),f(),B(e.showTypeToSearch()?6:-1),f(),B(e.loading()&&e.itemsList.filteredItems.length===0?7:-1)}}function bme(t,n){if(t&1&&g(0),t&2){let e=x();pe(" ",e.notFoundText()??e.config.notFoundText," ")}}var Sz=/[&<>"']/g,vme=RegExp(Sz.source),yme={"&":"&","<":"<",">":">",'"':""","'":"'"};function xme(t){return t&&vme.test(t)?t.replace(Sz,n=>yme[n]):t}function nn(t){return t!=null}function Ru(t){return typeof t=="object"&&nn(t)}function Cme(t){return t instanceof Promise}function NC(t){return t instanceof Function}var wme=(()=>{let n=class n{constructor(){this.element=u(Y),this.ngItemLabel=re(),this.escape=re(!0),Lr(()=>{this.element.nativeElement.innerHTML=this.escape()?xme(this.ngItemLabel()):this.ngItemLabel()})}};n.\u0275fac=function(r){return new(r||n)},n.\u0275dir=P({type:n,selectors:[["","ngItemLabel",""]],inputs:{ngItemLabel:[1,"ngItemLabel"],escape:[1,"escape"]}});let t=n;return t})(),LC=(()=>{let n=class n{constructor(){this.template=u(te)}};n.\u0275fac=function(r){return new(r||n)},n.\u0275dir=P({type:n,selectors:[["","ng-option-tmp",""]]});let t=n;return t})(),VC=(()=>{let n=class n{constructor(){this.template=u(te)}};n.\u0275fac=function(r){return new(r||n)},n.\u0275dir=P({type:n,selectors:[["","ng-optgroup-tmp",""]]});let t=n;return t})(),BC=(()=>{let n=class n{constructor(){this.template=u(te)}};n.\u0275fac=function(r){return new(r||n)},n.\u0275dir=P({type:n,selectors:[["","ng-label-tmp",""]]});let t=n;return t})(),jC=(()=>{let n=class n{constructor(){this.template=u(te)}};n.\u0275fac=function(r){return new(r||n)},n.\u0275dir=P({type:n,selectors:[["","ng-multi-label-tmp",""]]});let t=n;return t})(),HC=(()=>{let n=class n{constructor(){this.template=u(te)}};n.\u0275fac=function(r){return new(r||n)},n.\u0275dir=P({type:n,selectors:[["","ng-header-tmp",""]]});let t=n;return t})(),zC=(()=>{let n=class n{constructor(){this.template=u(te)}};n.\u0275fac=function(r){return new(r||n)},n.\u0275dir=P({type:n,selectors:[["","ng-footer-tmp",""]]});let t=n;return t})(),UC=(()=>{let n=class n{constructor(){this.template=u(te)}};n.\u0275fac=function(r){return new(r||n)},n.\u0275dir=P({type:n,selectors:[["","ng-notfound-tmp",""]]});let t=n;return t})(),$C=(()=>{let n=class n{constructor(){this.template=u(te)}};n.\u0275fac=function(r){return new(r||n)},n.\u0275dir=P({type:n,selectors:[["","ng-placeholder-tmp",""]]});let t=n;return t})(),WC=(()=>{let n=class n{constructor(){this.template=u(te)}};n.\u0275fac=function(r){return new(r||n)},n.\u0275dir=P({type:n,selectors:[["","ng-typetosearch-tmp",""]]});let t=n;return t})(),GC=(()=>{let n=class n{constructor(){this.template=u(te)}};n.\u0275fac=function(r){return new(r||n)},n.\u0275dir=P({type:n,selectors:[["","ng-loadingtext-tmp",""]]});let t=n;return t})(),qC=(()=>{let n=class n{constructor(){this.template=u(te)}};n.\u0275fac=function(r){return new(r||n)},n.\u0275dir=P({type:n,selectors:[["","ng-tag-tmp",""]]});let t=n;return t})(),YC=(()=>{let n=class n{constructor(){this.template=u(te)}};n.\u0275fac=function(r){return new(r||n)},n.\u0275dir=P({type:n,selectors:[["","ng-loadingspinner-tmp",""]]});let t=n;return t})(),QC=(()=>{let n=class n{constructor(){this.template=u(te)}};n.\u0275fac=function(r){return new(r||n)},n.\u0275dir=P({type:n,selectors:[["","ng-clearbutton-tmp",""]]});let t=n;return t})(),Dme=(()=>{let n=class n{constructor(){this.fixedPlaceholder=!0,this.notFoundText="No items found",this.typeToSearchText="Type to search",this.addTagText="Add item",this.loadingText="Loading...",this.clearAllText="Clear all",this.disableVirtualScroll=!0,this.openOnEnter=!0,this.appearance="underline",this.tabFocusOnClear=!0,this.outsideClickEvent="click"}};n.\u0275fac=function(r){return new(r||n)},n.\u0275prov=R({token:n,factory:n.\u0275fac,providedIn:"root"});let t=n;return t})(),Eme=(()=>{let n=class n{warn(i){console.warn(i)}};n.\u0275fac=function(r){return new(r||n)},n.\u0275prov=R({token:n,factory:n.\u0275fac,providedIn:"root"});let t=n;return t})();function kz(){return"axxxxxxxxxxx".replace(/[x]/g,()=>(Math.random()*16|0).toString(16))}var Mme={"\u24B6":"A",\uFF21:"A",\u00C0:"A",\u00C1:"A",\u00C2:"A",\u1EA6:"A",\u1EA4:"A",\u1EAA:"A",\u1EA8:"A",\u00C3:"A",\u0100:"A",\u0102:"A",\u1EB0:"A",\u1EAE:"A",\u1EB4:"A",\u1EB2:"A",\u0226:"A",\u01E0:"A",\u00C4:"A",\u01DE:"A",\u1EA2:"A",\u00C5:"A",\u01FA:"A",\u01CD:"A",\u0200:"A",\u0202:"A",\u1EA0:"A",\u1EAC:"A",\u1EB6:"A",\u1E00:"A",\u0104:"A","\u023A":"A","\u2C6F":"A","\uA732":"AA",\u00C6:"AE",\u01FC:"AE",\u01E2:"AE","\uA734":"AO","\uA736":"AU","\uA738":"AV","\uA73A":"AV","\uA73C":"AY","\u24B7":"B",\uFF22:"B",\u1E02:"B",\u1E04:"B",\u1E06:"B","\u0243":"B",\u0182:"B",\u0181:"B","\u24B8":"C",\uFF23:"C",\u0106:"C",\u0108:"C",\u010A:"C",\u010C:"C",\u00C7:"C",\u1E08:"C",\u0187:"C","\u023B":"C","\uA73E":"C","\u24B9":"D",\uFF24:"D",\u1E0A:"D",\u010E:"D",\u1E0C:"D",\u1E10:"D",\u1E12:"D",\u1E0E:"D",\u0110:"D",\u018B:"D",\u018A:"D",\u0189:"D","\uA779":"D",\u01F1:"DZ",\u01C4:"DZ",\u01F2:"Dz",\u01C5:"Dz","\u24BA":"E",\uFF25:"E",\u00C8:"E",\u00C9:"E",\u00CA:"E",\u1EC0:"E",\u1EBE:"E",\u1EC4:"E",\u1EC2:"E",\u1EBC:"E",\u0112:"E",\u1E14:"E",\u1E16:"E",\u0114:"E",\u0116:"E",\u00CB:"E",\u1EBA:"E",\u011A:"E",\u0204:"E",\u0206:"E",\u1EB8:"E",\u1EC6:"E",\u0228:"E",\u1E1C:"E",\u0118:"E",\u1E18:"E",\u1E1A:"E",\u0190:"E",\u018E:"E","\u24BB":"F",\uFF26:"F",\u1E1E:"F",\u0191:"F","\uA77B":"F","\u24BC":"G",\uFF27:"G",\u01F4:"G",\u011C:"G",\u1E20:"G",\u011E:"G",\u0120:"G",\u01E6:"G",\u0122:"G",\u01E4:"G",\u0193:"G","\uA7A0":"G","\uA77D":"G","\uA77E":"G","\u24BD":"H",\uFF28:"H",\u0124:"H",\u1E22:"H",\u1E26:"H",\u021E:"H",\u1E24:"H",\u1E28:"H",\u1E2A:"H",\u0126:"H","\u2C67":"H","\u2C75":"H","\uA78D":"H","\u24BE":"I",\uFF29:"I",\u00CC:"I",\u00CD:"I",\u00CE:"I",\u0128:"I",\u012A:"I",\u012C:"I",\u0130:"I",\u00CF:"I",\u1E2E:"I",\u1EC8:"I",\u01CF:"I",\u0208:"I",\u020A:"I",\u1ECA:"I",\u012E:"I",\u1E2C:"I",\u0197:"I","\u24BF":"J",\uFF2A:"J",\u0134:"J","\u0248":"J","\u24C0":"K",\uFF2B:"K",\u1E30:"K",\u01E8:"K",\u1E32:"K",\u0136:"K",\u1E34:"K",\u0198:"K","\u2C69":"K","\uA740":"K","\uA742":"K","\uA744":"K","\uA7A2":"K","\u24C1":"L",\uFF2C:"L",\u013F:"L",\u0139:"L",\u013D:"L",\u1E36:"L",\u1E38:"L",\u013B:"L",\u1E3C:"L",\u1E3A:"L",\u0141:"L","\u023D":"L","\u2C62":"L","\u2C60":"L","\uA748":"L","\uA746":"L","\uA780":"L",\u01C7:"LJ",\u01C8:"Lj","\u24C2":"M",\uFF2D:"M",\u1E3E:"M",\u1E40:"M",\u1E42:"M","\u2C6E":"M",\u019C:"M","\u24C3":"N",\uFF2E:"N",\u01F8:"N",\u0143:"N",\u00D1:"N",\u1E44:"N",\u0147:"N",\u1E46:"N",\u0145:"N",\u1E4A:"N",\u1E48:"N","\u0220":"N",\u019D:"N","\uA790":"N","\uA7A4":"N",\u01CA:"NJ",\u01CB:"Nj","\u24C4":"O",\uFF2F:"O",\u00D2:"O",\u00D3:"O",\u00D4:"O",\u1ED2:"O",\u1ED0:"O",\u1ED6:"O",\u1ED4:"O",\u00D5:"O",\u1E4C:"O",\u022C:"O",\u1E4E:"O",\u014C:"O",\u1E50:"O",\u1E52:"O",\u014E:"O",\u022E:"O",\u0230:"O",\u00D6:"O",\u022A:"O",\u1ECE:"O",\u0150:"O",\u01D1:"O",\u020C:"O",\u020E:"O",\u01A0:"O",\u1EDC:"O",\u1EDA:"O",\u1EE0:"O",\u1EDE:"O",\u1EE2:"O",\u1ECC:"O",\u1ED8:"O",\u01EA:"O",\u01EC:"O",\u00D8:"O",\u01FE:"O",\u0186:"O",\u019F:"O","\uA74A":"O","\uA74C":"O",\u01A2:"OI","\uA74E":"OO",\u0222:"OU","\u24C5":"P",\uFF30:"P",\u1E54:"P",\u1E56:"P",\u01A4:"P","\u2C63":"P","\uA750":"P","\uA752":"P","\uA754":"P","\u24C6":"Q",\uFF31:"Q","\uA756":"Q","\uA758":"Q","\u024A":"Q","\u24C7":"R",\uFF32:"R",\u0154:"R",\u1E58:"R",\u0158:"R",\u0210:"R",\u0212:"R",\u1E5A:"R",\u1E5C:"R",\u0156:"R",\u1E5E:"R","\u024C":"R","\u2C64":"R","\uA75A":"R","\uA7A6":"R","\uA782":"R","\u24C8":"S",\uFF33:"S","\u1E9E":"S",\u015A:"S",\u1E64:"S",\u015C:"S",\u1E60:"S",\u0160:"S",\u1E66:"S",\u1E62:"S",\u1E68:"S",\u0218:"S",\u015E:"S","\u2C7E":"S","\uA7A8":"S","\uA784":"S","\u24C9":"T",\uFF34:"T",\u1E6A:"T",\u0164:"T",\u1E6C:"T",\u021A:"T",\u0162:"T",\u1E70:"T",\u1E6E:"T",\u0166:"T",\u01AC:"T",\u01AE:"T","\u023E":"T","\uA786":"T","\uA728":"TZ","\u24CA":"U",\uFF35:"U",\u00D9:"U",\u00DA:"U",\u00DB:"U",\u0168:"U",\u1E78:"U",\u016A:"U",\u1E7A:"U",\u016C:"U",\u00DC:"U",\u01DB:"U",\u01D7:"U",\u01D5:"U",\u01D9:"U",\u1EE6:"U",\u016E:"U",\u0170:"U",\u01D3:"U",\u0214:"U",\u0216:"U",\u01AF:"U",\u1EEA:"U",\u1EE8:"U",\u1EEE:"U",\u1EEC:"U",\u1EF0:"U",\u1EE4:"U",\u1E72:"U",\u0172:"U",\u1E76:"U",\u1E74:"U","\u0244":"U","\u24CB":"V",\uFF36:"V",\u1E7C:"V",\u1E7E:"V",\u01B2:"V","\uA75E":"V","\u0245":"V","\uA760":"VY","\u24CC":"W",\uFF37:"W",\u1E80:"W",\u1E82:"W",\u0174:"W",\u1E86:"W",\u1E84:"W",\u1E88:"W","\u2C72":"W","\u24CD":"X",\uFF38:"X",\u1E8A:"X",\u1E8C:"X","\u24CE":"Y",\uFF39:"Y",\u1EF2:"Y",\u00DD:"Y",\u0176:"Y",\u1EF8:"Y",\u0232:"Y",\u1E8E:"Y",\u0178:"Y",\u1EF6:"Y",\u1EF4:"Y",\u01B3:"Y","\u024E":"Y","\u1EFE":"Y","\u24CF":"Z",\uFF3A:"Z",\u0179:"Z",\u1E90:"Z",\u017B:"Z",\u017D:"Z",\u1E92:"Z",\u1E94:"Z",\u01B5:"Z",\u0224:"Z","\u2C7F":"Z","\u2C6B":"Z","\uA762":"Z","\u24D0":"a",\uFF41:"a",\u1E9A:"a",\u00E0:"a",\u00E1:"a",\u00E2:"a",\u1EA7:"a",\u1EA5:"a",\u1EAB:"a",\u1EA9:"a",\u00E3:"a",\u0101:"a",\u0103:"a",\u1EB1:"a",\u1EAF:"a",\u1EB5:"a",\u1EB3:"a",\u0227:"a",\u01E1:"a",\u00E4:"a",\u01DF:"a",\u1EA3:"a",\u00E5:"a",\u01FB:"a",\u01CE:"a",\u0201:"a",\u0203:"a",\u1EA1:"a",\u1EAD:"a",\u1EB7:"a",\u1E01:"a",\u0105:"a","\u2C65":"a",\u0250:"a","\uA733":"aa",\u00E6:"ae",\u01FD:"ae",\u01E3:"ae","\uA735":"ao","\uA737":"au","\uA739":"av","\uA73B":"av","\uA73D":"ay","\u24D1":"b",\uFF42:"b",\u1E03:"b",\u1E05:"b",\u1E07:"b",\u0180:"b",\u0183:"b",\u0253:"b","\u24D2":"c",\uFF43:"c",\u0107:"c",\u0109:"c",\u010B:"c",\u010D:"c",\u00E7:"c",\u1E09:"c",\u0188:"c","\u023C":"c","\uA73F":"c","\u2184":"c","\u24D3":"d",\uFF44:"d",\u1E0B:"d",\u010F:"d",\u1E0D:"d",\u1E11:"d",\u1E13:"d",\u1E0F:"d",\u0111:"d",\u018C:"d",\u0256:"d",\u0257:"d","\uA77A":"d",\u01F3:"dz",\u01C6:"dz","\u24D4":"e",\uFF45:"e",\u00E8:"e",\u00E9:"e",\u00EA:"e",\u1EC1:"e",\u1EBF:"e",\u1EC5:"e",\u1EC3:"e",\u1EBD:"e",\u0113:"e",\u1E15:"e",\u1E17:"e",\u0115:"e",\u0117:"e",\u00EB:"e",\u1EBB:"e",\u011B:"e",\u0205:"e",\u0207:"e",\u1EB9:"e",\u1EC7:"e",\u0229:"e",\u1E1D:"e",\u0119:"e",\u1E19:"e",\u1E1B:"e","\u0247":"e",\u025B:"e",\u01DD:"e","\u24D5":"f",\uFF46:"f",\u1E1F:"f",\u0192:"f","\uA77C":"f","\u24D6":"g",\uFF47:"g",\u01F5:"g",\u011D:"g",\u1E21:"g",\u011F:"g",\u0121:"g",\u01E7:"g",\u0123:"g",\u01E5:"g",\u0260:"g","\uA7A1":"g","\u1D79":"g","\uA77F":"g","\u24D7":"h",\uFF48:"h",\u0125:"h",\u1E23:"h",\u1E27:"h",\u021F:"h",\u1E25:"h",\u1E29:"h",\u1E2B:"h",\u1E96:"h",\u0127:"h","\u2C68":"h","\u2C76":"h",\u0265:"h",\u0195:"hv","\u24D8":"i",\uFF49:"i",\u00EC:"i",\u00ED:"i",\u00EE:"i",\u0129:"i",\u012B:"i",\u012D:"i",\u00EF:"i",\u1E2F:"i",\u1EC9:"i",\u01D0:"i",\u0209:"i",\u020B:"i",\u1ECB:"i",\u012F:"i",\u1E2D:"i",\u0268:"i",\u0131:"i","\u24D9":"j",\uFF4A:"j",\u0135:"j",\u01F0:"j","\u0249":"j","\u24DA":"k",\uFF4B:"k",\u1E31:"k",\u01E9:"k",\u1E33:"k",\u0137:"k",\u1E35:"k",\u0199:"k","\u2C6A":"k","\uA741":"k","\uA743":"k","\uA745":"k","\uA7A3":"k","\u24DB":"l",\uFF4C:"l",\u0140:"l",\u013A:"l",\u013E:"l",\u1E37:"l",\u1E39:"l",\u013C:"l",\u1E3D:"l",\u1E3B:"l",\u017F:"l",\u0142:"l",\u019A:"l",\u026B:"l","\u2C61":"l","\uA749":"l","\uA781":"l","\uA747":"l",\u01C9:"lj","\u24DC":"m",\uFF4D:"m",\u1E3F:"m",\u1E41:"m",\u1E43:"m",\u0271:"m",\u026F:"m","\u24DD":"n",\uFF4E:"n",\u01F9:"n",\u0144:"n",\u00F1:"n",\u1E45:"n",\u0148:"n",\u1E47:"n",\u0146:"n",\u1E4B:"n",\u1E49:"n",\u019E:"n",\u0272:"n",\u0149:"n","\uA791":"n","\uA7A5":"n",\u01CC:"nj","\u24DE":"o",\uFF4F:"o",\u00F2:"o",\u00F3:"o",\u00F4:"o",\u1ED3:"o",\u1ED1:"o",\u1ED7:"o",\u1ED5:"o",\u00F5:"o",\u1E4D:"o",\u022D:"o",\u1E4F:"o",\u014D:"o",\u1E51:"o",\u1E53:"o",\u014F:"o",\u022F:"o",\u0231:"o",\u00F6:"o",\u022B:"o",\u1ECF:"o",\u0151:"o",\u01D2:"o",\u020D:"o",\u020F:"o",\u01A1:"o",\u1EDD:"o",\u1EDB:"o",\u1EE1:"o",\u1EDF:"o",\u1EE3:"o",\u1ECD:"o",\u1ED9:"o",\u01EB:"o",\u01ED:"o",\u00F8:"o",\u01FF:"o",\u0254:"o","\uA74B":"o","\uA74D":"o",\u0275:"o",\u01A3:"oi",\u0223:"ou","\uA74F":"oo","\u24DF":"p",\uFF50:"p",\u1E55:"p",\u1E57:"p",\u01A5:"p","\u1D7D":"p","\uA751":"p","\uA753":"p","\uA755":"p","\u24E0":"q",\uFF51:"q","\u024B":"q","\uA757":"q","\uA759":"q","\u24E1":"r",\uFF52:"r",\u0155:"r",\u1E59:"r",\u0159:"r",\u0211:"r",\u0213:"r",\u1E5B:"r",\u1E5D:"r",\u0157:"r",\u1E5F:"r","\u024D":"r",\u027D:"r","\uA75B":"r","\uA7A7":"r","\uA783":"r","\u24E2":"s",\uFF53:"s",\u00DF:"s",\u015B:"s",\u1E65:"s",\u015D:"s",\u1E61:"s",\u0161:"s",\u1E67:"s",\u1E63:"s",\u1E69:"s",\u0219:"s",\u015F:"s","\u023F":"s","\uA7A9":"s","\uA785":"s",\u1E9B:"s","\u24E3":"t",\uFF54:"t",\u1E6B:"t",\u1E97:"t",\u0165:"t",\u1E6D:"t",\u021B:"t",\u0163:"t",\u1E71:"t",\u1E6F:"t",\u0167:"t",\u01AD:"t",\u0288:"t","\u2C66":"t","\uA787":"t","\uA729":"tz","\u24E4":"u",\uFF55:"u",\u00F9:"u",\u00FA:"u",\u00FB:"u",\u0169:"u",\u1E79:"u",\u016B:"u",\u1E7B:"u",\u016D:"u",\u00FC:"u",\u01DC:"u",\u01D8:"u",\u01D6:"u",\u01DA:"u",\u1EE7:"u",\u016F:"u",\u0171:"u",\u01D4:"u",\u0215:"u",\u0217:"u",\u01B0:"u",\u1EEB:"u",\u1EE9:"u",\u1EEF:"u",\u1EED:"u",\u1EF1:"u",\u1EE5:"u",\u1E73:"u",\u0173:"u",\u1E77:"u",\u1E75:"u",\u0289:"u","\u24E5":"v",\uFF56:"v",\u1E7D:"v",\u1E7F:"v",\u028B:"v","\uA75F":"v",\u028C:"v","\uA761":"vy","\u24E6":"w",\uFF57:"w",\u1E81:"w",\u1E83:"w",\u0175:"w",\u1E87:"w",\u1E85:"w",\u1E98:"w",\u1E89:"w","\u2C73":"w","\u24E7":"x",\uFF58:"x",\u1E8B:"x",\u1E8D:"x","\u24E8":"y",\uFF59:"y",\u1EF3:"y",\u00FD:"y",\u0177:"y",\u1EF9:"y",\u0233:"y",\u1E8F:"y",\u00FF:"y",\u1EF7:"y",\u1E99:"y",\u1EF5:"y",\u01B4:"y","\u024F":"y","\u1EFF":"y","\u24E9":"z",\uFF5A:"z",\u017A:"z",\u1E91:"z",\u017C:"z",\u017E:"z",\u1E93:"z",\u1E95:"z",\u01B6:"z",\u0225:"z","\u0240":"z","\u2C6C":"z","\uA763":"z",\u0386:"\u0391",\u0388:"\u0395",\u0389:"\u0397",\u038A:"\u0399",\u03AA:"\u0399",\u038C:"\u039F",\u038E:"\u03A5",\u03AB:"\u03A5",\u038F:"\u03A9",\u03AC:"\u03B1",\u03AD:"\u03B5",\u03AE:"\u03B7",\u03AF:"\u03B9",\u03CA:"\u03B9",\u0390:"\u03B9",\u03CC:"\u03BF",\u03CD:"\u03C5",\u03CB:"\u03C5",\u03B0:"\u03C5",\u03C9:"\u03C9",\u03C2:"\u03C3"};function FC(t){let n=e=>Mme[e]||e;return t.replace(/[^\u0000-\u007E]/g,n)}var xI=class{constructor(n,e){this._ngSelect=n,this._selectionModel=e,this._items=[],this._filteredItems=[],this._markedIndex=-1}get items(){return this._items}get filteredItems(){return this._filteredItems}get markedIndex(){return this._markedIndex}get selectedItems(){return this._selectionModel.value}get markedItem(){return this._filteredItems[this._markedIndex]}get noItemsToSelect(){return this._ngSelect.hideSelected()&&this._items.length===this.selectedItems.length}get maxItemsSelected(){return this._ngSelect.multiple()&&this._ngSelect.maxSelectedItems()<=this.selectedItems.length}get lastSelectedItem(){let n=this.selectedItems.length-1;for(;n>=0;n--){let e=this.selectedItems[n];if(!e.disabled)return e}return null}setItems(n){this._items=n.map((i,r)=>this.mapItem(i,r));let e=this._ngSelect.groupBy();e?(this._groups=this._groupBy(this._items,e),this._items=this._flatten(this._groups)):(this._groups=new Map,this._groups.set(void 0,this._items)),this._filteredItems=[...this._items]}select(n){if(n.selected||this.maxItemsSelected)return;let e=this._ngSelect.multiple();e||this.clearSelected(),this._selectionModel.select(n,e,this._ngSelect.selectableGroupAsModel()),this._ngSelect.hideSelected()&&this._hideSelected(n)}unselect(n){if(!n.selected)return;let e=this._ngSelect.multiple();this._selectionModel.unselect(n,e),this._ngSelect.hideSelected()&&nn(n.index)&&e&&this._showSelected(n)}findItem(n){let e;return this._ngSelect.compareWith()?e=i=>this._ngSelect.compareWith()(i.value,n):this._ngSelect.bindValue()?e=i=>!i.children&&this.resolveNested(i.value,this._ngSelect.bindValue())===n:e=i=>i.value===n||!i.children&&i.label&&i.label===this.resolveNested(n,this._ngSelect.bindLabel()),this._items.find(i=>e(i))}addItem(n){let e=this.mapItem(n,this._items.length);return this._items.push(e),this._filteredItems.push(e),e}clearSelected(n=!1){this._selectionModel.clear(n),this._items.forEach(e=>{e.selected=n&&e.selected&&e.disabled,e.marked=!1}),this._ngSelect.hideSelected()&&this.resetFilteredItems()}findByLabel(n){return n=FC(n).toLocaleLowerCase(),this.filteredItems.find(e=>FC(e.label).toLocaleLowerCase().substr(0,n.length)===n)}filter(n){if(!n){this.resetFilteredItems();return}this._filteredItems=[],n=this._ngSelect.searchFn()?n:FC(n).toLocaleLowerCase();let e=this._ngSelect.searchFn()||this._defaultSearchFn,i=this._ngSelect.hideSelected();for(let r of Array.from(this._groups.keys())){let o=[];for(let a of this._groups.get(r)){if(i&&(a.parent&&a.parent.selected||a.selected))continue;let s=this._ngSelect.searchFn()?a.value:a;e(n,s)&&o.push(a)}if(o.length>0){let[a]=o.slice(-1);if(a.parent){let s=this._items.find(l=>l===a.parent);this._filteredItems.push(s)}this._filteredItems.push(...o)}}}resetFilteredItems(){this._filteredItems.length!==this._items.length&&(this._ngSelect.hideSelected()&&this.selectedItems.length>0?this._filteredItems=this._items.filter(n=>!n.selected):this._filteredItems=this._items)}unmarkItem(){this._markedIndex=-1}markNextItem(){this._stepToItem(1)}markPreviousItem(){this._stepToItem(-1)}markItem(n){this._markedIndex=this._filteredItems.indexOf(n)}markSelectedOrDefault(n){if(this._filteredItems.length===0)return;let e=this._getLastMarkedIndex();e>-1?this._markedIndex=e:this._markedIndex=n?this.filteredItems.findIndex(i=>!i.disabled):-1}resolveNested(n,e){if(!Ru(n))return n;if(e.indexOf(".")===-1)return n[e];{let i=e.split("."),r=n;for(let o=0,a=i.length;othis._ngSelect.compareWith()(o.value,e.value));else{let o=i?this.resolveNested(e.value,i):e.value;r=nn(o)?this.findItem(o):null}this._selectionModel.unselect(e,n),this._selectionModel.select(r||e,n,this._ngSelect.selectableGroupAsModel())}this._ngSelect.hideSelected()&&(this._filteredItems=this.filteredItems.filter(e=>this.selectedItems.indexOf(e)===-1))}_showSelected(n){if(this._filteredItems.push(n),n.parent){let e=n.parent;this._filteredItems.find(r=>r===e)||this._filteredItems.push(e)}else if(n.children)for(let e of n.children)e.selected=!1,this._filteredItems.push(e);this._filteredItems=[...this._filteredItems.sort((e,i)=>e.index-i.index)]}_hideSelected(n){this._filteredItems=this._filteredItems.filter(e=>e!==n),n.parent?n.parent.children.every(i=>i.selected)&&(this._filteredItems=this._filteredItems.filter(i=>i!==n.parent)):n.children&&(this._filteredItems=this.filteredItems.filter(e=>e.parent!==n))}_defaultSearchFn(n,e){return FC(e.label).toLocaleLowerCase().indexOf(n)>-1}_getNextItemIndex(n){return n>0?this._markedIndex>=this._filteredItems.length-1?0:this._markedIndex+1:this._markedIndex<=0?this._filteredItems.length-1:this._markedIndex-1}_stepToItem(n){this._filteredItems.length===0||this._filteredItems.every(e=>e.disabled)||(this._markedIndex=this._getNextItemIndex(n),this.markedItem.disabled&&this._stepToItem(n))}_getLastMarkedIndex(){if(this._ngSelect.hideSelected()||this._markedIndex>-1&&this.markedItem===void 0)return-1;let n=this._filteredItems.indexOf(this.lastSelectedItem);return this.lastSelectedItem&&n<0?-1:Math.max(this.markedIndex,n)}_groupBy(n,e){let i=new Map;if(n.length===0)return i;if(Array.isArray(n[0].value[e])){for(let a of n){let s=(a.value[e]||[]).map((l,c)=>this.mapItem(l,c));i.set(a,s)}return i}let r=NC(this._ngSelect.groupBy()),o=a=>{let s=r?e(a.value):a.value[e];return nn(s)?s:void 0};for(let a of n){let s=o(a),l=i.get(s);l?l.push(a):i.set(s,[a])}return i}_flatten(n){let e=NC(this._ngSelect.groupBy()),i=[];for(let r of Array.from(n.keys())){let o=i.length;if(r===void 0){let p=n.get(void 0)||[];i.push(...p.map(_=>(_.index=o++,_)));continue}let a=Ru(r),s={label:a?"":String(r),children:void 0,parent:null,index:o++,disabled:!this._ngSelect.selectableGroup(),htmlId:kz()},l=e?this._ngSelect.bindLabel():this._ngSelect.groupBy(),c=this._ngSelect.groupValue()||(()=>a?r.value:{[l]:r}),d=n.get(r).map(p=>(p.parent=s,p.children=void 0,p.index=o++,p));s.children=d,s.value=c(r,d.map(p=>p.value)),i.push(s),i.push(...d)}return i}},Tz=(()=>{let n=class n{constructor(){this._dimensions={itemHeight:0,panelHeight:0,itemsPerViewport:0}}get dimensions(){return this._dimensions}calculateItems(i,r,o){let a=this._dimensions,s=a.itemHeight*r,c=Math.max(0,i)/s*r,d=Math.min(r,Math.ceil(c)+(a.itemsPerViewport+1)),_=Math.max(0,d-a.itemsPerViewport),b=Math.min(_,Math.floor(c)),y=a.itemHeight*Math.ceil(b)-a.itemHeight*Math.min(b,o);return y=isNaN(y)?0:y,b=isNaN(b)?-1:b,d=isNaN(d)?-1:d,b-=o,b=Math.max(0,b),d+=o,d=Math.min(r,d),{topPadding:y,scrollHeight:s,start:b,end:d}}setDimensions(i,r){let o=Math.max(1,Math.floor(r/i));this._dimensions={itemHeight:i,panelHeight:r,itemsPerViewport:o}}getScrollTo(i,r,o){let{panelHeight:a}=this.dimensions,s=i+r,l=o,c=l+a;return a>=s&&o===i?null:s>c?l+s-c:i<=l?i:null}};n.\u0275fac=function(r){return new(r||n)},n.\u0275prov=R({token:n,factory:n.\u0275fac});let t=n;return t})(),Dz=["top","right","bottom","left"],Sme=typeof requestAnimationFrame<"u"?Q_:G_,yI=(()=>{let n=class n{get currentPosition(){return this._currentPosition}get itemsLength(){return this._itemsLength}set itemsLength(i){i!==this._itemsLength&&(this._itemsLength=i,this._onItemsLengthChanged())}get _startOffset(){if(this.markedItem()){let{itemHeight:i,panelHeight:r}=this._panelService.dimensions,o=this.markedItem().index*i;return r>o?0:o}return 0}constructor(){this._renderer=u(ze),this._zone=u(ae),this._panelService=u(Tz),this._document=u(_e,{optional:!0}),this._destroyRef=u(an),this._dropdown=u(Y).nativeElement,this.items=re([]),this.showAddTag=re(!1,{transform:L}),this.markedItem=re(void 0),this.position=re("auto"),this.appendTo=re(void 0),this.bufferAmount=re(void 0),this.virtualScroll=re(!1,{transform:L}),this.headerTemplate=re(void 0),this.footerTemplate=re(void 0),this.filterValue=re(null),this.ariaLabelDropdown=re(null),this.outsideClickEvent=re("click"),this.update=yi(),this.scroll=yi(),this.scrollToEnd=yi(),this.outsideClick=yi(),this.contentElementRef=Qn("content",{read:Y}),this.scrollElementRef=Qn("scroll",{read:Y}),this.paddingElementRef=Qn("padding",{read:Y}),this._virtualPadding=oi(()=>this.paddingElementRef()?.nativeElement),this._scrollablePanel=oi(()=>this.scrollElementRef()?.nativeElement),this._contentPanel=oi(()=>this.contentElementRef()?.nativeElement),this._scrollToEndFired=!1,this._updateScrollHeight=!1,this._lastScrollPosition=0,this._destroyRef.onDestroy(()=>{this.appendTo()&&this._renderer.removeChild(this._dropdown.parentNode,this._dropdown)})}ngOnInit(){this._select=this._dropdown.parentElement,this._handleScroll(),this._handleOutsideClick(),this._appendDropdown(),this._setupMousedownListener()}ngOnChanges(i){if(i.items){let r=i.items;this._onItemsOrShowAddTagChange(r.currentValue,this.showAddTag(),r.firstChange)}if(i.showAddTag){let r=i.showAddTag;this._onItemsOrShowAddTagChange(this.items(),r.currentValue,r.firstChange)}}scrollTo(i,r=!1){if(!i)return;let o=this.items().indexOf(i);if(o<0||o>=this.itemsLength)return;let a;if(this.virtualScroll()){let s=this._panelService.dimensions.itemHeight;a=this._panelService.getScrollTo(o*s,s,this._lastScrollPosition)}else{let s=this._dropdown.querySelector(`#${i.htmlId}`),l=r?s.offsetTop:this._lastScrollPosition;a=this._panelService.getScrollTo(s.offsetTop,s.clientHeight,l)}nn(a)&&(this._scrollablePanel().scrollTop=a)}scrollToTag(){let i=this._scrollablePanel();i.scrollTop=i.scrollHeight-i.clientHeight}adjustPosition(){this._updateYPosition()}_handleDropdownPosition(){this._currentPosition=this._calculateCurrentPosition(this._dropdown),Dz.includes(this._currentPosition)?this._updateDropdownClass(this._currentPosition):this._updateDropdownClass("bottom"),this.appendTo()&&this._updateYPosition(),this._dropdown.style.opacity="1"}_updateDropdownClass(i){Dz.forEach(o=>{let a=`ng-select-${o}`;this._renderer.removeClass(this._dropdown,a),this._renderer.removeClass(this._select,a)});let r=`ng-select-${i}`;this._renderer.addClass(this._dropdown,r),this._renderer.addClass(this._select,r)}_handleScroll(){this._zone.runOutsideAngular(()=>{this._scrollablePanel()&&Us(this._scrollablePanel(),"scroll").pipe(Ou(this._destroyRef),Nl(0,Sme)).subscribe(i=>{let r=i.target;r&&"scrollTop"in r&&this._onContentScrolled(r.scrollTop)})})}_handleOutsideClick(){this._document&&this._zone.runOutsideAngular(()=>{Us(this._document,this.outsideClickEvent(),{capture:!0}).pipe(Ou(this._destroyRef)).subscribe(i=>this._checkToClose(i))})}_checkToClose(i){if(this._select.contains(i.target)||this._dropdown.contains(i.target))return;let r=i.path||i.composedPath&&i.composedPath();i.target&&i.target.shadowRoot&&r&&r[0]&&this._select.contains(r[0])||this._zone.run(()=>this.outsideClick.emit())}_onItemsOrShowAddTagChange(i=[],r,o){this._scrollToEndFired=!1,this.itemsLength=i.length,r&&i.length&&this.itemsLength++,this.virtualScroll()?this._updateItemsRange(o):(this._setVirtualHeight(),this._updateItems(o))}_updateItems(i){this.update.emit(this.items()),i!==!1&&this._zone.runOutsideAngular(()=>{Promise.resolve().then(()=>{let r=this._scrollablePanel().clientHeight;this._panelService.setDimensions(0,r),this._handleDropdownPosition(),this.scrollTo(this.markedItem(),i)})})}_updateItemsRange(i){this._zone.runOutsideAngular(()=>{this._measureDimensions().then(()=>{i?(this._renderItemsRange(this._startOffset),this._handleDropdownPosition()):this._renderItemsRange()})})}_onContentScrolled(i){this.virtualScroll()&&this._renderItemsRange(i),this._lastScrollPosition=i,this._fireScrollToEnd(i)}_updateVirtualHeight(i){this._updateScrollHeight&&(this._virtualPadding().style.height=`${i}px`,this._updateScrollHeight=!1)}_setVirtualHeight(){this._virtualPadding()&&(this._virtualPadding().style.height="0px")}_onItemsLengthChanged(){this._updateScrollHeight=!0}_renderItemsRange(i=null){if(i&&this._lastScrollPosition===i)return;i=i||this._scrollablePanel().scrollTop;let r=this._panelService.calculateItems(i,this.itemsLength,this.bufferAmount());this._updateVirtualHeight(r.scrollHeight),this._contentPanel().style.transform=`translateY(${r.topPadding}px)`,this._zone.run(()=>{this.update.emit(this.items().slice(r.start,r.end)),this.scroll.emit({start:r.start,end:r.end})}),nn(i)&&this._lastScrollPosition===0&&(this._scrollablePanel().scrollTop=i,this._lastScrollPosition=i)}_measureDimensions(){if(this._panelService.dimensions.itemHeight>0||this.itemsLength===0)return Promise.resolve(this._panelService.dimensions);let[i]=this.items();return this.update.emit([i]),Promise.resolve().then(()=>{let o=this._dropdown.querySelector(`#${i.htmlId}`).clientHeight;this._virtualPadding().style.height=`${o*this.itemsLength}px`;let a=this._scrollablePanel().clientHeight;return this._panelService.setDimensions(o,a),this._panelService.dimensions})}_fireScrollToEnd(i){if(this._scrollToEndFired||i===0)return;let r=this.virtualScroll()?this._virtualPadding():this._contentPanel();i+this._dropdown.clientHeight>=r.clientHeight-1&&(this._zone.run(()=>this.scrollToEnd.emit()),this._scrollToEndFired=!0)}_calculateCurrentPosition(i){let r=this.position();if(r!=="auto")return r;let o=this._select.getBoundingClientRect(),a=document.documentElement.scrollTop||document.body.scrollTop,s=o.top+window.pageYOffset,l=o.height,c=i.getBoundingClientRect().height;return s+l+c>a+document.documentElement.clientHeight?"top":"bottom"}_appendDropdown(){if(this.appendTo()){if(this._parent=this._dropdown.shadowRoot?this._dropdown.shadowRoot.querySelector(this.appendTo()):document.querySelector(this.appendTo()),!this._parent)throw new Error(`appendTo selector ${this.appendTo()} did not found any parent element`);this._updateXPosition(),this._parent.appendChild(this._dropdown)}}_updateXPosition(){let i=this._select.getBoundingClientRect(),r=this._parent.getBoundingClientRect(),o=document.documentElement.dir==="rtl",a=i.left-r.left;if(o){let s=r.right-i.right;this._dropdown.style.right=s+"px",this._dropdown.style.left="auto"}else this._dropdown.style.left=a+"px",this._dropdown.style.right="auto";this._dropdown.style.width=i.width+"px",this._dropdown.style.minWidth=i.width+"px"}_updateYPosition(){let i=this._select.getBoundingClientRect(),r=this._parent.getBoundingClientRect(),o=i.height;if(this._currentPosition==="top"){let a=r.bottom-i.bottom;this._dropdown.style.bottom=a+o+"px",this._dropdown.style.top="auto"}else if(this._currentPosition==="bottom"){let a=i.top-r.top;this._dropdown.style.top=a+o+"px",this._dropdown.style.bottom="auto"}}_setupMousedownListener(){this._zone.runOutsideAngular(()=>{Us(this._dropdown,"mousedown").pipe(Ou(this._destroyRef)).subscribe(i=>{i.target.tagName!=="INPUT"&&i.preventDefault()})})}};n.\u0275fac=function(r){return new(r||n)},n.\u0275cmp=E({type:n,selectors:[["ng-dropdown-panel"]],viewQuery:function(r,o){r&1&&(Nn(o.contentElementRef,Aue,5,Y),Nn(o.scrollElementRef,Oue,5,Y),Nn(o.paddingElementRef,Rue,5,Y)),r&2&&Go(3)},inputs:{items:[1,"items"],showAddTag:[1,"showAddTag"],markedItem:[1,"markedItem"],position:[1,"position"],appendTo:[1,"appendTo"],bufferAmount:[1,"bufferAmount"],virtualScroll:[1,"virtualScroll"],headerTemplate:[1,"headerTemplate"],footerTemplate:[1,"footerTemplate"],filterValue:[1,"filterValue"],ariaLabelDropdown:[1,"ariaLabelDropdown"],outsideClickEvent:[1,"outsideClickEvent"]},outputs:{update:"update",scroll:"scroll",scrollToEnd:"scrollToEnd",outsideClick:"outsideClick"},features:[Ae],ngContentSelectors:Mz,decls:9,vars:7,consts:[["scroll",""],["padding",""],["content",""],[1,"ng-dropdown-header"],["role","listbox",1,"ng-dropdown-panel-items","scroll-host"],[1,"ng-dropdown-footer"],[3,"ngTemplateOutlet","ngTemplateOutletContext"]],template:function(r,o){r&1&&(Se(),V(0,Pue,2,4,"div",3),m(1,"div",4,0),M(3,"div",null,1),m(5,"div",null,2),ne(7),h()(),V(8,Fue,2,4,"div",5)),r&2&&(B(o.headerTemplate()?0:-1),f(),X("aria-label",o.ariaLabelDropdown()),f(2),G("total-padding",o.virtualScroll()),f(2),G("scrollable-content",o.virtualScroll()&&o.items().length),f(3),B(o.footerTemplate()?8:-1))},dependencies:[Ln],encapsulation:2,changeDetection:0});let t=n;return t})(),Ez=(()=>{let n=class n{constructor(){this.value=re(),this.disabled=re(!1,{transform:L}),this.elementRef=u(Y),this.label=he(""),gt(()=>{let i=(this.elementRef.nativeElement.innerHTML||"").trim();i!==this.label()&&this.label.set(i)})}};n.\u0275fac=function(r){return new(r||n)},n.\u0275cmp=E({type:n,selectors:[["ng-option"]],inputs:{value:[1,"value"],disabled:[1,"disabled"]},ngContentSelectors:Mz,decls:1,vars:0,template:function(r,o){r&1&&(Se(),ne(0))},encapsulation:2,changeDetection:0});let t=n;return t})(),Fs=(function(t){return t.Tab="Tab",t.Enter="Enter",t.Esc="Escape",t.Space=" ",t.ArrowUp="ArrowUp",t.ArrowDown="ArrowDown",t.Backspace="Backspace",t})(Fs||{});function Iz(){return new CI}var CI=class{constructor(){this._selected=[]}get value(){return this._selected}select(n,e,i){if(n.selected=!0,(!n.children||!e&&i)&&this._selected.push(n),e)if(n.parent){let r=n.parent.children.length,o=n.parent.children.filter(a=>a.selected).length;n.parent.selected=r===o}else n.children&&(this._setChildrenSelectedState(n.children,!0),this._removeChildren(n),i&&this._activeChildren(n)?this._selected=[...this._selected.filter(r=>r.parent!==n),n]:this._selected=[...this._selected,...n.children.filter(r=>!r.disabled)])}unselect(n,e){if(this._selected=this._selected.filter(i=>i!==n),n.selected=!1,e)if(n.parent&&n.parent.selected){let i=n.parent.children;this._removeParent(n.parent),this._removeChildren(n.parent),this._selected.push(...i.filter(r=>r!==n&&!r.disabled)),n.parent.selected=!1}else n.children&&(this._setChildrenSelectedState(n.children,!1),this._removeChildren(n))}clear(n){this._selected=n?this._selected.filter(e=>e.disabled):[]}_setChildrenSelectedState(n,e){for(let i of n)i.disabled||(i.selected=e)}_removeChildren(n){this._selected=[...this._selected.filter(e=>e.parent!==n),...n.children.filter(e=>e.parent===n&&e.disabled&&e.selected)]}_removeParent(n){this._selected=this._selected.filter(e=>e!==n)}_activeChildren(n){return n.children.every(e=>!e.disabled||e.selected)}},Az=new O("ng-select-selection-model"),Oz=(()=>{let n=class n{constructor(){this.classes=u(new Oi("class"),{optional:!0}),this.config=u(Dme),this._cd=u(ye),this._console=u(Eme),this._destroyRef=u(an),this._disabled=he(!1),this.ariaLabelDropdown=re("Options List"),this.ariaLabel=re(void 0),this.markFirst=re(!0,{transform:L}),this.placeholder=re(this.config.placeholder),this.fixedPlaceholder=re(!0),this.notFoundText=re(void 0),this.typeToSearchText=re(void 0),this.preventToggleOnRightClick=re(!1),this.addTagText=re(void 0),this.loadingText=re(void 0),this.clearAllText=re(void 0),this.dropdownPosition=re("auto"),this.appendTo=re(void 0),this.outsideClickEvent=re(this.config.outsideClickEvent),this.loading=re(!1,{transform:L}),this.closeOnSelect=re(!0,{transform:L}),this.hideSelected=re(!1,{transform:L}),this.selectOnTab=re(!1,{transform:L}),this.openOnEnter=re(void 0,{transform:L}),this.maxSelectedItems=re(void 0,{transform:dt}),this.groupBy=re(void 0),this.groupValue=re(void 0),this.bufferAmount=re(4,{transform:dt}),this.virtualScroll=re(void 0,{transform:L}),this.selectableGroup=re(!1,{transform:L}),this.tabFocusOnClearButton=re(),this.selectableGroupAsModel=re(!0,{transform:L}),this.searchFn=re(null),this.trackByFn=re(null),this.clearOnBackspace=re(!0,{transform:L}),this.labelForId=re(null),this.inputAttrs=re({}),this.tabIndex=re(void 0,{transform:dt}),this.readonly=re(!1,{transform:L}),this.searchWhileComposing=re(!0,{transform:L}),this.minTermLength=re(0,{transform:dt}),this.editableSearchTerm=re(!1,{transform:L}),this.ngClass=re(null),this.typeahead=re(void 0),this.multiple=re(!1,{transform:L}),this.addTag=re(!1),this.searchable=re(!0,{transform:L}),this.clearable=re(!0,{transform:L}),this.deselectOnClick=re(),this.clearSearchOnAdd=re(void 0),this.compareWith=re(void 0,{transform:a=>{if(a!=null&&!NC(a))throw Error("`compareWith` must be a function.");return a}}),this.keyDownFn=re(a=>!0),this.bindLabel=Im(void 0),this.bindValue=Im(void 0),this.appearance=Im(void 0),this.isOpen=Im(!1),this.items=Im([]),this.blurEvent=yi({alias:"blur"}),this.focusEvent=yi({alias:"focus"}),this.changeEvent=yi({alias:"change"}),this.openEvent=yi({alias:"open"}),this.closeEvent=yi({alias:"close"}),this.searchEvent=yi({alias:"search"}),this.clearEvent=yi({alias:"clear"}),this.addEvent=yi({alias:"add"}),this.removeEvent=yi({alias:"remove"}),this.scroll=yi({alias:"scroll"}),this.scrollToEnd=yi({alias:"scrollToEnd"}),this.disabled=oi(()=>this.readonly()||this._disabled()),this.clearSearchOnAddValue=oi(()=>nn(this.clearSearchOnAdd())?this.clearSearchOnAdd():nn(this.config.clearSearchOnAdd)?this.config.clearSearchOnAdd:this.closeOnSelect()),this.deselectOnClickValue=oi(()=>nn(this.deselectOnClick())?this.deselectOnClick():nn(this.config.deselectOnClick)?this.config.deselectOnClick:this.multiple()),this.optionTemplate=_r(LC,{read:te}),this.optgroupTemplate=_r(VC,{read:te}),this.labelTemplate=_r(BC,{read:te}),this.multiLabelTemplate=_r(jC,{read:te}),this.headerTemplate=_r(HC,{read:te}),this.footerTemplate=_r(zC,{read:te}),this.notFoundTemplate=_r(UC,{read:te}),this.placeholderTemplate=_r($C,{read:te}),this.typeToSearchTemplate=_r(WC,{read:te}),this.loadingTextTemplate=_r(GC,{read:te}),this.tagTemplate=_r(qC,{read:te}),this.loadingSpinnerTemplate=_r(YC,{read:te}),this.clearButtonTemplate=_r(QC,{read:te}),this.ngOptions=c2(Ez,{descendants:!0}),this.dropdownPanel=Qn(ri(()=>yI)),this.searchInput=Qn("searchInput"),this.clearButton=Qn("clearButton"),this.dropdownId=kz(),this.escapeHTML=!0,this.viewPortItems=[],this.tabFocusOnClear=he(!0),this.autoFocus=u(new Oi("autofocus"),{optional:!0}),this._defaultLabel="label",this._editableSearchTerm=oi(()=>this.editableSearchTerm()&&!this.multiple()),this._injector=u(de),this._isComposing=!1,this._keyPress$=new z,this._pressedKeys=[],this._searchTerm=he(null),this._validTerm=oi(()=>{let a=this._searchTerm()?.trim();return a&&a.length>=this.minTermLength()}),this.clearItem=a=>{let s=this.selectedItems.find(l=>l.value===a);this.unselect(s)},this.trackByOption=(a,s)=>this.trackByFn()?this.trackByFn()(s.value):s,this._onChange=a=>{},this._onTouched=()=>{};let i=this.config,r=u(Az,{optional:!0}),o=u(Y);this._mergeGlobalConfig(i),this.itemsList=new xI(this,r?r():Iz()),this.element=o.nativeElement}get filtered(){return!!this.searchTerm&&this.searchable()||this._isComposing}get focused(){return this._focused}get searchTerm(){return this._searchTerm()}get selectedItems(){return this.itemsList.selectedItems}get selectedValues(){return this.selectedItems.map(i=>i.value)}get hasValue(){return this.selectedItems.length>0}get currentPanelPosition(){if(this.dropdownPanel())return this.dropdownPanel().currentPosition}get showAddTag(){if(!this._validTerm())return!1;let i=this.searchTerm.toLowerCase().trim();return this.addTag()&&!this.itemsList.filteredItems.some(r=>r.label.toLowerCase()===i)&&(!this.hideSelected()&&this.isOpen()||!this.selectedItems.some(r=>r.label.toLowerCase()===i))&&!this.loading()}ngOnInit(){this._handleKeyPresses(),this._setInputAttributes()}ngOnChanges(i){i.multiple&&this.itemsList.clearSelected(),i.items&&(this._itemsAreUsed=!0,this._setItems(i.items.currentValue||[])),i.isOpen&&(this._manualOpen=nn(i.isOpen.currentValue)),i.groupBy&&(i.items||this._setItems([...this.items()])),i.inputAttrs&&this._setInputAttributes(),this._setTabFocusOnClear()}ngAfterViewInit(){this._itemsAreUsed||(this.escapeHTML=!1,this._setItemsFromNgOptions()),nn(this.autoFocus)&&this.focus()}handleKeyDown(i){let r=i.key;if(Object.values(Fs).includes(r)){if(this.keyDownFn()(i)===!1)return;this.handleKeyCode(i)}else r&&r.length===1&&this._keyPress$.next(r.toLocaleLowerCase())}handleKeyCode(i){let r=i.target;this.clearButton()&&this.clearButton().nativeElement===r?this.handleKeyCodeClear(i):this.handleKeyCodeInput(i)}handleKeyCodeInput(i){switch(i.key){case Fs.ArrowDown:this._handleArrowDown(i);break;case Fs.ArrowUp:this._handleArrowUp(i);break;case Fs.Space:this._handleSpace(i);break;case Fs.Enter:this._handleEnter(i);break;case Fs.Tab:this._handleTab(i);break;case Fs.Esc:this.close(),i.preventDefault();break;case Fs.Backspace:this._handleBackspace();break}}handleKeyCodeClear(i){switch(i.key){case Fs.Enter:this.handleClearClick(),i.preventDefault();break}}handleMousedown(i){if(this.disabled())return;if(this.preventToggleOnRightClick()&&i.button===2)return!1;let r=i.target;if(r.tagName!=="INPUT"&&i.preventDefault(),!r.classList.contains("ng-clear-wrapper")){if(r.classList.contains("ng-arrow-wrapper")){this.handleArrowClick();return}r.classList.contains("ng-value-icon")||(this._focused||this.focus(),this.searchable()?this.open():this.toggle())}}handleArrowClick(){this.isOpen()?this.close():this.open()}handleClearClick(i){this.hasValue&&(this.itemsList.clearSelected(!0),this._updateNgModel()),this._clearSearch(),this.focus(),this.clearEvent.emit(),this._onSelectionChanged()}clearModel(){this.clearable()&&(this.itemsList.clearSelected(),this._updateNgModel())}writeValue(i){this.itemsList.clearSelected(),this._handleWriteValue(i),this._editableSearchTerm()&&this._setSearchTermFromItems(),this._cd.markForCheck()}registerOnChange(i){this._onChange=i}registerOnTouched(i){this._onTouched=i}setDisabledState(i){this._disabled.set(i),this._cd.markForCheck()}toggle(){this.isOpen()?this.close():this.open()}open(){this.disabled()||this.isOpen()||this._manualOpen||!this.typeahead()?.observed&&!this.addTag()&&this.itemsList.noItemsToSelect||(this.isOpen.set(!0),this.itemsList.markSelectedOrDefault(this.markFirst()),this.openEvent.emit(),this.searchTerm||this.focus(),this.detectChanges())}close(){!this.isOpen()||this._manualOpen||(this.isOpen.set(!1),this._isComposing=!1,this._editableSearchTerm()?this.itemsList.resetFilteredItems():this._clearSearch(),this.itemsList.unmarkItem(),this._onTouched(),this.closeEvent.emit(),this._cd.markForCheck())}toggleItem(i){!i||i.disabled||this.disabled()||(this.deselectOnClickValue()&&i.selected?this.unselect(i):this.select(i),this._editableSearchTerm()&&this._setSearchTermFromItems())}select(i){i.selected||(this.itemsList.select(i),this.clearSearchOnAddValue()&&!this._editableSearchTerm()&&this._clearSearch(),this._updateNgModel(),this.multiple()&&this.addEvent.emit(i.value)),(this.closeOnSelect()||this.itemsList.noItemsToSelect)&&this.close(),this._onSelectionChanged()}focus(){this.searchInput().nativeElement.focus()}blur(){this.searchInput().nativeElement.blur()}unselect(i){i&&(this.itemsList.unselect(i),this.focus(),this._updateNgModel(),this.removeEvent.emit(i.value),this._onSelectionChanged())}selectTag(){let i;NC(this.addTag())?i=this.addTag()(this.searchTerm):i=this._primitive?this.searchTerm:{[this.bindLabel()]:this.searchTerm};let r=o=>this.typeahead()?.observed||!this.isOpen()?this.itemsList.mapItem(o,null):this.itemsList.addItem(o);Cme(i)?i.then(o=>this.select(r(o))).catch(()=>{}):i&&this.select(r(i))}showClear(){return this.clearable()&&(this.hasValue||this.searchTerm)&&!this.disabled()}focusOnClear(){this.blur(),this.clearButton()&&this.clearButton().nativeElement.focus()}showNoItemsFound(){let i=this.itemsList.filteredItems.length===0;return(i&&!this.typeahead()?.observed&&!this.loading()||i&&this.typeahead()?.observed&&this._validTerm()&&!this.loading())&&!this.showAddTag}showTypeToSearch(){return this.itemsList.filteredItems.length===0&&this.typeahead()?.observed&&!this._validTerm()&&!this.loading()}onCompositionStart(){this._isComposing=!0}onCompositionEnd(i){this._isComposing=!1,!this.searchWhileComposing()&&this.filter(i)}filter(i){this._isComposing&&!this.searchWhileComposing()||(this._searchTerm.set(i),this.typeahead()?.observed&&(this._validTerm()||this.minTermLength()===0)&&this.typeahead().next(i),this.typeahead()?.observed||(this.itemsList.filter(i),this.isOpen()&&this.itemsList.markSelectedOrDefault(this.markFirst())),this.searchEvent.emit({term:i,items:this.itemsList.filteredItems.map(r=>r.value)}),this.open())}onInputFocus(i){this._focused||(this._editableSearchTerm()&&this._setSearchTermFromItems(),this.element.classList.add("ng-select-focused"),this.focusEvent.emit(i),this._focused=!0)}onInputBlur(i){this.element.classList.remove("ng-select-focused"),this.blurEvent.emit(i),!this.isOpen()&&!this.disabled()&&this._onTouched(),this._editableSearchTerm()&&this._setSearchTermFromItems(),this._focused=!1}onItemHover(i){i.disabled||this.itemsList.markItem(i)}detectChanges(){this._cd.destroyed||this._cd.detectChanges()}_setSearchTermFromItems(){let i=this.selectedItems?.[0];this._searchTerm.set(i?.label??null)}_setItems(i){let r=i[0];this.bindLabel.set(this.bindLabel()||this._defaultLabel),this._primitive=nn(r)?!Ru(r):this._primitive||this.bindLabel()===this._defaultLabel,this.itemsList.setItems(i),i.length>0&&this.hasValue&&this.itemsList.mapSelectedItems(),this.isOpen()&&nn(this.searchTerm)&&!this.typeahead()?.observed&&this.itemsList.filter(this.searchTerm),(this.typeahead()?.observed||this.isOpen())&&this.itemsList.markSelectedOrDefault(this.markFirst())}_setItemsFromNgOptions(){Lr(()=>{let i=this.ngOptions();this.bindLabel.set(this._defaultLabel);let r=i.map(o=>({$ngOptionValue:o.value(),$ngOptionLabel:o.elementRef.nativeElement.innerHTML,disabled:o.disabled()}))??[];this.items.set(r),this.itemsList.setItems(r),this.hasValue&&this.itemsList.mapSelectedItems(),this._cd.detectChanges(),i.map(o=>({option:o,item:this.itemsList.findItem(o.value())})).filter(({item:o})=>nn(o)).forEach(({option:o,item:a})=>{a.disabled=o.disabled(),a.label=o.label()||a.label})},{injector:this._injector})}_isValidWriteValue(i){if(!nn(i)||this.multiple()&&i===""||Array.isArray(i)&&i.length===0)return!1;let r=o=>!nn(this.compareWith())&&Ru(o)&&this.bindValue()?(this._console.warn(`Setting object(${JSON.stringify(o)}) as your model with bindValue is not allowed unless [compareWith] is used.`),!1):!0;return this.multiple()?Array.isArray(i)?i.every(o=>r(o)):(this._console.warn("Multiple select ngModel should be array."),!1):r(i)}_handleWriteValue(i){if(!this._isValidWriteValue(i))return;let r=o=>{let a=this.itemsList.findItem(o);if(a)this.itemsList.select(a);else{let s=Ru(o),l=!s&&!this.bindValue();s||l?this.itemsList.select(this.itemsList.mapItem(o,null)):this.bindValue()&&(a={[this.bindLabel()]:null,[this.bindValue()]:o},this.itemsList.select(this.itemsList.mapItem(a,null)))}};this.multiple()?i.forEach(o=>r(o)):r(i)}_handleKeyPresses(){this.searchable()||this._keyPress$.pipe(Ou(this._destroyRef),He(i=>this._pressedKeys.push(i)),St(200),ce(()=>this._pressedKeys.length>0),se(()=>this._pressedKeys.join(""))).subscribe(i=>{let r=this.itemsList.findByLabel(i);r&&(this.isOpen()?(this.itemsList.markItem(r),this._scrollToMarked(),this._cd.markForCheck()):this.select(r)),this._pressedKeys=[]})}_setInputAttributes(){let i=this.searchInput().nativeElement,r=k({type:"text",autocorrect:"off",autocapitalize:"off",autocomplete:"off","aria-controls":this.dropdownId},this.inputAttrs());for(let o of Object.keys(r))i.setAttribute(o,r[o])}_setTabFocusOnClear(){this.tabFocusOnClear.set(nn(this.tabFocusOnClearButton())?!!this.tabFocusOnClearButton():this.config.tabFocusOnClear)}_updateNgModel(){let i=[];for(let o of this.selectedItems)if(this.bindValue()){let a=null;if(o.children){let s=this.groupValue()?this.bindValue():this.groupBy();a=o.value[s||this.groupBy()]}else a=this.itemsList.resolveNested(o.value,this.bindValue());i.push(a)}else i.push(o.value);let r=this.selectedItems.map(o=>o.value);this.multiple()?(this._onChange(i),this.changeEvent.emit(r)):(this._onChange(nn(i[0])?i[0]:null),this.changeEvent.emit(r[0])),this._cd.markForCheck()}_clearSearch(){this.searchTerm&&(this._changeSearch(null),this.itemsList.resetFilteredItems())}_changeSearch(i){this._searchTerm.set(i),this.typeahead()?.observed&&this.typeahead().next(i)}_scrollToMarked(){!this.isOpen()||!this.dropdownPanel()||this.dropdownPanel().scrollTo(this.itemsList.markedItem)}_scrollToTag(){!this.isOpen()||!this.dropdownPanel()||this.dropdownPanel().scrollToTag()}_onSelectionChanged(){let i=this.appendTo()??this.config.appendTo;this.isOpen()&&this.deselectOnClickValue()&&i&&(this._cd.detectChanges(),this.dropdownPanel().adjustPosition())}_handleTab(i){if(this.isOpen()===!1){if(this.showClear()&&!i.shiftKey&&this.tabFocusOnClear())this.focusOnClear(),i.preventDefault();else if(!this.addTag())return}this.selectOnTab()?this.itemsList.markedItem?(this.toggleItem(this.itemsList.markedItem),i.preventDefault()):this.showAddTag?(this.selectTag(),i.preventDefault()):this.close():this.close()}_handleEnter(i){let r=this.openOnEnter()??this.config.openOnEnter;if(this.isOpen()||this._manualOpen)this.itemsList.markedItem?this.toggleItem(this.itemsList.markedItem):this.showAddTag&&this.selectTag();else if(r)this.open();else return;i.preventDefault()}_handleSpace(i){this.isOpen()||this._manualOpen||(this.open(),i.preventDefault())}_handleArrowDown(i){this._nextItemIsTag(1)?(this.itemsList.unmarkItem(),this._scrollToTag()):(this.itemsList.markNextItem(),this._scrollToMarked()),this.open(),i.preventDefault()}_handleArrowUp(i){this.isOpen()&&(this._nextItemIsTag(-1)?(this.itemsList.unmarkItem(),this._scrollToTag()):(this.itemsList.markPreviousItem(),this._scrollToMarked()),i.preventDefault())}_nextItemIsTag(i){let r=this.itemsList.markedIndex+i;return this.addTag()&&this.searchTerm&&this.itemsList.markedItem&&(r<0||r===this.itemsList.filteredItems.length)}_handleBackspace(){this.searchTerm||!this.clearable()||!this.clearOnBackspace()||!this.hasValue||(this.multiple()?this.unselect(this.itemsList.lastSelectedItem):this.clearModel())}_mergeGlobalConfig(i){this.bindValue.set(this.bindValue()||i.bindValue),this.bindLabel.set(this.bindLabel()||i.bindLabel),this.appearance.set(this.appearance()||i.appearance),this._setTabFocusOnClear()}getVirtualScroll(i){return nn(this.virtualScroll)?this.virtualScroll():this.isVirtualScrollDisabled(i)}isVirtualScrollDisabled(i){return nn(i.disableVirtualScroll)?!i.disableVirtualScroll:!1}};n.\u0275fac=function(r){return new(r||n)},n.\u0275cmp=E({type:n,selectors:[["ng-select"]],contentQueries:function(r,o,a){r&1&&(Fn(a,o.optionTemplate,LC,5,te),Fn(a,o.optgroupTemplate,VC,5,te),Fn(a,o.labelTemplate,BC,5,te),Fn(a,o.multiLabelTemplate,jC,5,te),Fn(a,o.headerTemplate,HC,5,te),Fn(a,o.footerTemplate,zC,5,te),Fn(a,o.notFoundTemplate,UC,5,te),Fn(a,o.placeholderTemplate,$C,5,te),Fn(a,o.typeToSearchTemplate,WC,5,te),Fn(a,o.loadingTextTemplate,GC,5,te),Fn(a,o.tagTemplate,qC,5,te),Fn(a,o.loadingSpinnerTemplate,YC,5,te),Fn(a,o.clearButtonTemplate,QC,5,te),Fn(a,o.ngOptions,Ez,5)),r&2&&Go(14)},viewQuery:function(r,o){r&1&&(Nn(o.dropdownPanel,yI,5),Nn(o.searchInput,Nue,5),Nn(o.clearButton,Lue,5)),r&2&&Go(3)},hostVars:20,hostBindings:function(r,o){r&1&&S("keydown",function(s){return o.handleKeyDown(s)}),r&2&&G("ng-select",!0)("ng-select-single",!o.multiple())("ng-select-typeahead",o.typeahead())("ng-select-multiple",o.multiple())("ng-select-taggable",o.addTag())("ng-select-searchable",o.searchable())("ng-select-clearable",o.clearable())("ng-select-opened",o.isOpen())("ng-select-filtered",o.filtered)("ng-select-disabled",o.disabled())},inputs:{ariaLabelDropdown:[1,"ariaLabelDropdown"],ariaLabel:[1,"ariaLabel"],markFirst:[1,"markFirst"],placeholder:[1,"placeholder"],fixedPlaceholder:[1,"fixedPlaceholder"],notFoundText:[1,"notFoundText"],typeToSearchText:[1,"typeToSearchText"],preventToggleOnRightClick:[1,"preventToggleOnRightClick"],addTagText:[1,"addTagText"],loadingText:[1,"loadingText"],clearAllText:[1,"clearAllText"],dropdownPosition:[1,"dropdownPosition"],appendTo:[1,"appendTo"],outsideClickEvent:[1,"outsideClickEvent"],loading:[1,"loading"],closeOnSelect:[1,"closeOnSelect"],hideSelected:[1,"hideSelected"],selectOnTab:[1,"selectOnTab"],openOnEnter:[1,"openOnEnter"],maxSelectedItems:[1,"maxSelectedItems"],groupBy:[1,"groupBy"],groupValue:[1,"groupValue"],bufferAmount:[1,"bufferAmount"],virtualScroll:[1,"virtualScroll"],selectableGroup:[1,"selectableGroup"],tabFocusOnClearButton:[1,"tabFocusOnClearButton"],selectableGroupAsModel:[1,"selectableGroupAsModel"],searchFn:[1,"searchFn"],trackByFn:[1,"trackByFn"],clearOnBackspace:[1,"clearOnBackspace"],labelForId:[1,"labelForId"],inputAttrs:[1,"inputAttrs"],tabIndex:[1,"tabIndex"],readonly:[1,"readonly"],searchWhileComposing:[1,"searchWhileComposing"],minTermLength:[1,"minTermLength"],editableSearchTerm:[1,"editableSearchTerm"],ngClass:[1,"ngClass"],typeahead:[1,"typeahead"],multiple:[1,"multiple"],addTag:[1,"addTag"],searchable:[1,"searchable"],clearable:[1,"clearable"],deselectOnClick:[1,"deselectOnClick"],clearSearchOnAdd:[1,"clearSearchOnAdd"],compareWith:[1,"compareWith"],keyDownFn:[1,"keyDownFn"],bindLabel:[1,"bindLabel"],bindValue:[1,"bindValue"],appearance:[1,"appearance"],isOpen:[1,"isOpen"],items:[1,"items"]},outputs:{bindLabel:"bindLabelChange",bindValue:"bindValueChange",appearance:"appearanceChange",isOpen:"isOpenChange",items:"itemsChange",blurEvent:"blur",focusEvent:"focus",changeEvent:"change",openEvent:"open",closeEvent:"close",searchEvent:"search",clearEvent:"clear",addEvent:"add",removeEvent:"remove",scroll:"scroll",scrollToEnd:"scrollToEnd"},exportAs:["ngSelect"],features:[Ce([{provide:rr,useExisting:ri(()=>n),multi:!0},Tz]),Ae],decls:15,vars:20,consts:[["searchInput",""],["defaultPlaceholderTemplate",""],["defaultLabelTemplate",""],["defaultLoadingSpinnerTemplate",""],["clearButton",""],["defaultOptionTemplate",""],["defaultTagTemplate",""],["defaultNotFoundTemplate",""],["defaultTypeToSearchTemplate",""],["defaultLoadingTextTemplate",""],[1,"ng-select-container",3,"mousedown"],[1,"ng-value-container"],[3,"ngTemplateOutlet","ngTemplateOutletContext"],[1,"ng-input"],["aria-autocomplete","list","role","combobox",3,"blur","change","compositionend","compositionstart","focus","input","disabled","readOnly","value"],[1,"ng-arrow-wrapper"],[1,"ng-arrow"],[1,"ng-dropdown-panel",3,"virtualScroll","bufferAmount","appendTo","position","outsideClickEvent","headerTemplate","footerTemplate","filterValue","items","showAddTag","markedItem","ng-select-multiple","class","id","ariaLabelDropdown"],["aria-atomic","true","aria-live","polite","role","status",1,"ng-visually-hidden"],[3,"ngTemplateOutlet"],[1,"ng-placeholder"],[1,"ng-value",3,"ng-value-disabled"],[1,"ng-value"],["aria-hidden","true",1,"ng-value-icon","left",3,"click"],[1,"ng-value-label",3,"ngItemLabel","escape"],[1,"ng-spinner-loader"],["role","button","tabindex","0",1,"ng-clear-wrapper",3,"title"],["role","button","tabindex","0",1,"ng-clear-wrapper",3,"click","title"],["aria-hidden","true",1,"ng-clear"],[1,"ng-dropdown-panel",3,"update","scroll","scrollToEnd","outsideClick","virtualScroll","bufferAmount","appendTo","position","outsideClickEvent","headerTemplate","footerTemplate","filterValue","items","showAddTag","markedItem","id","ariaLabelDropdown"],[1,"ng-option",3,"ng-option-disabled","ng-option-selected","ng-optgroup","ng-option","ng-option-child","ng-option-marked"],["role","option",1,"ng-option",3,"ng-option-marked"],[1,"ng-option",3,"click","mouseover"],[1,"ng-option-label",3,"ngItemLabel","escape"],["role","option",1,"ng-option",3,"mouseover","click"],[1,"ng-tag-label"],[1,"ng-option","ng-option-disabled"]],template:function(r,o){if(r&1){let a=q();m(0,"div",10),S("mousedown",function(l){return T(a),I(o.handleMousedown(l))}),m(1,"div",11),V(2,Uue,3,1),V(3,que,2,0),V(4,Que,1,5,null,12),m(5,"div",13)(6,"input",14,0),S("blur",function(l){return T(a),I(o.onInputBlur(l))})("change",function(l){return T(a),I(l.stopPropagation())})("compositionend",function(){T(a);let l=Me(7);return I(o.onCompositionEnd(l.value))})("compositionstart",function(){return T(a),I(o.onCompositionStart())})("focus",function(l){return T(a),I(o.onInputFocus(l))})("input",function(){T(a);let l=Me(7);return I(o.filter(l.value))}),h()()(),V(8,Xue,3,1),V(9,tme,2,1),m(10,"span",15),M(11,"span",16),h()(),V(12,_me,8,21,"ng-dropdown-panel",17),m(13,"div",18),V(14,bme,1,1),h()}r&2&&(G("ng-appearance-outline",o.appearance()==="outline")("ng-has-value",o.hasValue),f(2),B(o.selectedItems.length===0&&!o.searchTerm||(o.fixedPlaceholder()??o.config.fixedPlaceholder)?2:-1),f(),B((!o.multiLabelTemplate()||!o.multiple())&&o.selectedItems.length>0?3:-1),f(),B(o.multiple()&&o.multiLabelTemplate()&&o.selectedValues.length>0?4:-1),f(2),v("disabled",o.disabled())("readOnly",!o.searchable()||o.itemsList.maxItemsSelected)("value",o.searchTerm??""),X("aria-activedescendant",o.isOpen()?o.itemsList==null||o.itemsList.markedItem==null?null:o.itemsList.markedItem.htmlId:null)("aria-controls",o.isOpen()?o.dropdownId:null)("aria-expanded",o.isOpen())("aria-label",o.ariaLabel())("id",o.labelForId())("tabindex",o.tabIndex()),f(2),B(o.loading()?8:-1),f(),B(o.showClear()?9:-1),f(3),B(o.isOpen()?12:-1),f(2),B(o.isOpen()&&o.showNoItemsFound()?14:-1))},dependencies:[Ln,wme,yI],styles:[`@charset "UTF-8";.ng-select{position:relative;display:block;-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box}.ng-select div,.ng-select input,.ng-select span{-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box}.ng-select [hidden]{display:none}.ng-select.ng-select-searchable .ng-select-container .ng-value-container .ng-input{opacity:1}.ng-select.ng-select-opened .ng-select-container{z-index:1001}.ng-select.ng-select-disabled .ng-select-container .ng-value-container .ng-placeholder,.ng-select.ng-select-disabled .ng-select-container .ng-value-container .ng-value{-webkit-user-select:none;user-select:none;cursor:default}.ng-select.ng-select-disabled .ng-arrow-wrapper{cursor:default}.ng-select.ng-select-filtered .ng-placeholder{display:none}.ng-select .ng-select-container{cursor:default;display:flex;outline:none;overflow:hidden;position:relative;width:100%}.ng-select .ng-select-container .ng-value-container{display:flex;flex:1}.ng-select .ng-select-container .ng-value-container .ng-input{opacity:0}.ng-select .ng-select-container .ng-value-container .ng-input>input{box-sizing:content-box;background:none transparent;border:0 none;box-shadow:none;outline:none;padding:0;cursor:default;width:100%}.ng-select .ng-select-container .ng-value-container .ng-input>input::-ms-clear{display:none}.ng-select .ng-select-container .ng-value-container .ng-input>input[readonly]{-webkit-user-select:unset;user-select:unset;width:0;padding:0}.ng-select.ng-select-single.ng-select-filtered .ng-select-container .ng-value-container .ng-value{visibility:hidden}.ng-select.ng-select-single .ng-select-container .ng-value-container,.ng-select.ng-select-single .ng-select-container .ng-value-container .ng-value{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.ng-select.ng-select-single .ng-select-container .ng-value-container .ng-value .ng-value-icon{display:none}.ng-select.ng-select-single .ng-select-container .ng-value-container .ng-input{position:absolute;left:0;width:100%}.ng-select.ng-select-multiple.ng-select-disabled>.ng-select-container .ng-value-container .ng-value .ng-value-icon{display:none}.ng-select.ng-select-multiple .ng-select-container .ng-value-container{flex-wrap:wrap}.ng-select.ng-select-multiple .ng-select-container .ng-value-container .ng-placeholder{position:absolute}.ng-select.ng-select-multiple .ng-select-container .ng-value-container .ng-value{white-space:nowrap}.ng-select.ng-select-multiple .ng-select-container .ng-value-container .ng-value.ng-value-disabled .ng-value-icon{display:none}.ng-select.ng-select-multiple .ng-select-container .ng-value-container .ng-value .ng-value-icon{cursor:pointer}.ng-select.ng-select-multiple .ng-select-container .ng-value-container .ng-input{flex:1;z-index:2}.ng-select.ng-select-multiple .ng-select-container .ng-value-container .ng-placeholder{z-index:1}.ng-select .ng-clear-wrapper{cursor:pointer;position:relative;width:17px;-webkit-user-select:none;user-select:none}.ng-select .ng-clear-wrapper .ng-clear{display:inline-block;font-size:18px;line-height:1;pointer-events:none}.ng-select .ng-spinner-loader{border-radius:50%;width:17px;height:17px;margin-right:5px;font-size:10px;position:relative;text-indent:-9999em;border-top:2px solid rgba(66,66,66,.2);border-right:2px solid rgba(66,66,66,.2);border-bottom:2px solid rgba(66,66,66,.2);border-left:2px solid #424242;transform:translateZ(0);animation:load8 .8s infinite linear}.ng-select .ng-spinner-loader:after{border-radius:50%;width:17px;height:17px}@-webkit-keyframes load8{0%{-webkit-transform:rotate(0deg);transform:rotate(0)}to{-webkit-transform:rotate(360deg);transform:rotate(360deg)}}@keyframes load8{0%{-webkit-transform:rotate(0deg);transform:rotate(0)}to{-webkit-transform:rotate(360deg);transform:rotate(360deg)}}.ng-select .ng-arrow-wrapper{cursor:pointer;position:relative;text-align:center;-webkit-user-select:none;user-select:none}.ng-select .ng-arrow-wrapper .ng-arrow{pointer-events:none;display:inline-block;height:0;width:0;position:relative}.ng-dropdown-panel{box-sizing:border-box;position:absolute;opacity:0;width:100%;z-index:1050;-webkit-overflow-scrolling:touch}.ng-dropdown-panel .ng-dropdown-panel-items{display:block;height:auto;-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box;max-height:240px;overflow-y:auto}.ng-dropdown-panel .ng-dropdown-panel-items .ng-optgroup{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.ng-dropdown-panel .ng-dropdown-panel-items .ng-option{box-sizing:border-box;cursor:pointer;display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.ng-dropdown-panel .ng-dropdown-panel-items .ng-option .ng-option-label:empty:before{content:"\\200b"}.ng-dropdown-panel .ng-dropdown-panel-items .ng-option .highlighted{font-weight:700;text-decoration:underline}.ng-dropdown-panel .ng-dropdown-panel-items .ng-option.disabled{cursor:default}.ng-dropdown-panel .scroll-host{overflow:hidden;overflow-y:auto;position:relative;display:block;-webkit-overflow-scrolling:touch}.ng-dropdown-panel .scrollable-content{top:0;left:0;width:100%;height:100%;position:absolute}.ng-dropdown-panel .total-padding{width:1px;opacity:0}.ng-visually-hidden{position:absolute!important;width:1px;height:1px;margin:-1px;padding:0;overflow:hidden;clip:rect(0 0 0 0);border:0;white-space:nowrap} -`],encapsulation:2,changeDetection:0});let t=n;return t})(),wI=(()=>{let n=class n{};n.\u0275fac=function(r){return new(r||n)},n.\u0275mod=ee({type:n}),n.\u0275inj=J({providers:kme()});let t=n;return t})();function kme(){return[{provide:Az,useValue:Iz}]}var Ime=["*"],Ame=["ngSelect"],Ome=()=>({standalone:!0}),Pz=(t,n,e,i)=>({item:t,item$:n,index:e,searchTerm:i}),Rme=(t,n,e)=>({item:t,clear:n,label:e}),Pme=(t,n)=>({items:t,clear:n}),DI=t=>({searchTerm:t});function Fme(t,n){}function Nme(t,n){if(t&1&&A(0,Fme,0,0,"ng-template",15),t&2){let e=n.item,i=n.item$,r=n.index,o=n.searchTerm,a=x(2);v("ngTemplateOutlet",a.optionTemplate)("ngTemplateOutletContext",km(2,Pz,e,i,r,o))}}function Lme(t,n){t&1&&A(0,Nme,1,7,"ng-template",2)}function Vme(t,n){}function Bme(t,n){if(t&1&&A(0,Vme,0,0,"ng-template",15),t&2){let e=n.item,i=n.item$,r=n.index,o=n.searchTerm,a=x(2);v("ngTemplateOutlet",a.optgroupTemplate)("ngTemplateOutletContext",km(2,Pz,e,i,r,o))}}function jme(t,n){t&1&&A(0,Bme,1,7,"ng-template",3)}function Hme(t,n){}function zme(t,n){if(t&1&&A(0,Hme,0,0,"ng-template",15),t&2){let e=n.item,i=n.clear,r=n.label,o=x(2);v("ngTemplateOutlet",o.labelTemplate)("ngTemplateOutletContext",Vd(2,Rme,e,i,r))}}function Ume(t,n){t&1&&A(0,zme,1,6,"ng-template",4)}function $me(t,n){}function Wme(t,n){if(t&1&&A(0,$me,0,0,"ng-template",15),t&2){let e=n.items,i=n.clear,r=x(2);v("ngTemplateOutlet",r.multiLabelTemplate)("ngTemplateOutletContext",Da(2,Pme,e,i))}}function Gme(t,n){t&1&&A(0,Wme,1,5,"ng-template",5)}function qme(t,n){}function Yme(t,n){if(t&1&&A(0,qme,0,0,"ng-template",16),t&2){let e=x(2);v("ngTemplateOutlet",e.headerTemplate)}}function Qme(t,n){t&1&&A(0,Yme,1,1,"ng-template",6)}function Kme(t,n){}function Zme(t,n){if(t&1&&A(0,Kme,0,0,"ng-template",16),t&2){let e=x(2);v("ngTemplateOutlet",e.footerTemplate)}}function Xme(t,n){t&1&&A(0,Zme,1,1,"ng-template",7)}function Jme(t,n){}function ehe(t,n){if(t&1&&A(0,Jme,0,0,"ng-template",15),t&2){let e=n.searchTerm,i=x(2);v("ngTemplateOutlet",i.notFoundTemplate)("ngTemplateOutletContext",Nt(2,DI,e))}}function the(t,n){t&1&&A(0,ehe,1,4,"ng-template",8)}function ihe(t,n){}function nhe(t,n){if(t&1&&A(0,ihe,0,0,"ng-template",16),t&2){let e=x(2);v("ngTemplateOutlet",e.typeToSearchTemplate)}}function rhe(t,n){t&1&&A(0,nhe,1,1,"ng-template",9)}function ohe(t,n){}function ahe(t,n){if(t&1&&A(0,ohe,0,0,"ng-template",15),t&2){let e=n.searchTerm,i=x(2);v("ngTemplateOutlet",i.loadingTextTemplate)("ngTemplateOutletContext",Nt(2,DI,e))}}function she(t,n){t&1&&A(0,ahe,1,4,"ng-template",10)}function lhe(t,n){}function che(t,n){if(t&1&&A(0,lhe,0,0,"ng-template",15),t&2){let e=n.searchTerm,i=x(2);v("ngTemplateOutlet",i.tagTemplate)("ngTemplateOutletContext",Nt(2,DI,e))}}function dhe(t,n){t&1&&A(0,che,1,4,"ng-template",11)}function uhe(t,n){}function mhe(t,n){if(t&1&&A(0,uhe,0,0,"ng-template",16),t&2){let e=x(2);v("ngTemplateOutlet",e.loadingSpinnerTemplate)}}function hhe(t,n){t&1&&A(0,mhe,1,1,"ng-template",12)}function phe(t,n){}function fhe(t,n){if(t&1&&A(0,phe,0,0,"ng-template",16),t&2){let e=x(2);v("ngTemplateOutlet",e.placeholderTemplate)}}function ghe(t,n){t&1&&A(0,fhe,1,1,"ng-template",13)}function _he(t,n){}function bhe(t,n){if(t&1&&A(0,_he,0,0,"ng-template",16),t&2){let e=x(2);v("ngTemplateOutlet",e.clearbuttonTemplate)}}function vhe(t,n){t&1&&A(0,bhe,1,1,"ng-template",14)}var yhe=(()=>{let n=class n{constructor(){this.elementRef=u(Y),this.disabled=!1,this.stateChange$=new z}get label(){return(this.elementRef.nativeElement.textContent||"").trim()}ngOnChanges(i){i.disabled&&this.stateChange$.next({value:this.value,disabled:this.disabled})}ngAfterViewChecked(){this.label!==this._previousLabel&&(this._previousLabel=this.label,this.stateChange$.next({value:this.value,disabled:this.disabled,label:this.elementRef.nativeElement.innerHTML}))}ngOnDestroy(){this.stateChange$.complete()}};n.\u0275fac=function(r){return new(r||n)},n.\u0275cmp=E({type:n,selectors:[["mtx-option"]],inputs:{value:"value",disabled:[2,"disabled","disabled",L]},exportAs:["mtxOption"],features:[Ae],ngContentSelectors:Ime,decls:1,vars:0,template:function(r,o){r&1&&(Se(),ne(0))},encapsulation:2,changeDetection:0});let t=n;return t})(),xhe=(()=>{let n=class n{constructor(){this._defaultOptions=u(Fz,{optional:!0}),this.changes=new z,this.placeholder=this._defaultOptions?.placeholder,this.notFoundText=this._defaultOptions?.notFoundText??"No items found",this.typeToSearchText=this._defaultOptions?.typeToSearchText??"Type to search",this.addTagText=this._defaultOptions?.addTagText??"Add item",this.loadingText=this._defaultOptions?.loadingText??"Loading...",this.clearAllText=this._defaultOptions?.clearAllText??"Clear all"}};n.\u0275fac=function(r){return new(r||n)},n.\u0275prov=R({token:n,factory:n.\u0275fac,providedIn:"root"});let t=n;return t})(),Che=(()=>{let n=class n{constructor(){this.template=u(te)}};n.\u0275fac=function(r){return new(r||n)},n.\u0275dir=P({type:n,selectors:[["","ng-option-tmp",""]]});let t=n;return t})(),whe=(()=>{let n=class n{constructor(){this.template=u(te)}};n.\u0275fac=function(r){return new(r||n)},n.\u0275dir=P({type:n,selectors:[["","ng-optgroup-tmp",""]]});let t=n;return t})(),Dhe=(()=>{let n=class n{constructor(){this.template=u(te)}};n.\u0275fac=function(r){return new(r||n)},n.\u0275dir=P({type:n,selectors:[["","ng-label-tmp",""]]});let t=n;return t})(),Ehe=(()=>{let n=class n{constructor(){this.template=u(te)}};n.\u0275fac=function(r){return new(r||n)},n.\u0275dir=P({type:n,selectors:[["","ng-multi-label-tmp",""]]});let t=n;return t})(),Mhe=(()=>{let n=class n{constructor(){this.template=u(te)}};n.\u0275fac=function(r){return new(r||n)},n.\u0275dir=P({type:n,selectors:[["","ng-header-tmp",""]]});let t=n;return t})(),She=(()=>{let n=class n{constructor(){this.template=u(te)}};n.\u0275fac=function(r){return new(r||n)},n.\u0275dir=P({type:n,selectors:[["","ng-footer-tmp",""]]});let t=n;return t})(),khe=(()=>{let n=class n{constructor(){this.template=u(te)}};n.\u0275fac=function(r){return new(r||n)},n.\u0275dir=P({type:n,selectors:[["","ng-notfound-tmp",""]]});let t=n;return t})(),The=(()=>{let n=class n{constructor(){this.template=u(te)}};n.\u0275fac=function(r){return new(r||n)},n.\u0275dir=P({type:n,selectors:[["","ng-typetosearch-tmp",""]]});let t=n;return t})(),Ihe=(()=>{let n=class n{constructor(){this.template=u(te)}};n.\u0275fac=function(r){return new(r||n)},n.\u0275dir=P({type:n,selectors:[["","ng-loadingtext-tmp",""]]});let t=n;return t})(),Ahe=(()=>{let n=class n{constructor(){this.template=u(te)}};n.\u0275fac=function(r){return new(r||n)},n.\u0275dir=P({type:n,selectors:[["","ng-tag-tmp",""]]});let t=n;return t})(),Ohe=(()=>{let n=class n{constructor(){this.template=u(te)}};n.\u0275fac=function(r){return new(r||n)},n.\u0275dir=P({type:n,selectors:[["","ng-loadingspinner-tmp",""]]});let t=n;return t})(),Rhe=(()=>{let n=class n{constructor(){this.template=u(te)}};n.\u0275fac=function(r){return new(r||n)},n.\u0275dir=P({type:n,selectors:[["","ng-placeholder-tmp",""]]});let t=n;return t})(),Phe=(()=>{let n=class n{constructor(){this.template=u(te)}};n.\u0275fac=function(r){return new(r||n)},n.\u0275dir=P({type:n,selectors:[["","ng-clearbutton-tmp",""]]});let t=n;return t})(),Fz=new O("mtx-select-default-options"),Rz=0,EI=(()=>{let n=class n{get clearSearchOnAdd(){return this._clearSearchOnAdd??this.closeOnSelect}set clearSearchOnAdd(i){this._clearSearchOnAdd=i}get items(){return this._items}set items(i){this._itemsAreUsed=!0,this._items=i}get value(){return this._value}set value(i){this._assignValue(i)&&this._onChange(i)}get id(){return this._id}set id(i){this._id=i||this._uid,this.stateChanges.next()}get placeholder(){return this._placeholder}set placeholder(i){this._placeholder=i,this.stateChanges.next()}get focused(){return this._focused}get empty(){return this.value==null||Array.isArray(this.value)&&this.value.length===0}get shouldLabelFloat(){return this.focused||!this.empty}get required(){return this._required??this.ngControl?.control?.hasValidator(Le.required)??!1}set required(i){this._required=i,this.stateChanges.next()}get errorStateMatcher(){return this._errorStateTracker.matcher}set errorStateMatcher(i){this._errorStateTracker.matcher=i}get panelOpen(){return!!this.ngSelect.isOpen}get errorState(){return this._errorStateTracker.errorState}set errorState(i){this._errorStateTracker.errorState=i}constructor(){this._intl=u(xhe),this._changeDetectorRef=u(ye),this._elementRef=u(Y),this._focusMonitor=u(ti),this.ngControl=u(Un,{optional:!0,self:!0}),this._parentFormField=u(ta,{optional:!0}),this._defaultOptions=u(Fz,{optional:!0}),this._document=u(_e),this.addTag=!1,this.appearance="underline",this.appendTo=this._defaultOptions?.appendTo??"body",this.bindLabel=this._defaultOptions?.bindLabel,this.bindValue=this._defaultOptions?.bindValue,this.closeOnSelect=!0,this.clearable=!0,this.clearOnBackspace=!0,this.dropdownPosition="auto",this.bufferAmount=4,this.selectableGroup=!1,this.selectableGroupAsModel=!0,this.hideSelected=!1,this.loading=!1,this.labelForId=null,this.markFirst=!0,this.multiple=!1,this.searchable=!0,this.readonly=!1,this.searchFn=null,this.searchWhileComposing=!0,this.selectOnTab=!1,this.trackByFn=null,this.inputAttrs={},this.openOnEnter=this._defaultOptions?.openOnEnter??!0,this.minTermLength=0,this.editableSearchTerm=!1,this.keyDownFn=l=>!0,this.virtualScroll=this._defaultOptions?.virtualScroll??!1,this.fixedPlaceholder=this._defaultOptions?.fixedPlaceholder??!1,this.deselectOnClick=this._defaultOptions?.deselectOnClick??!1,this.blurEvent=new U,this.focusEvent=new U,this.changeEvent=new U,this.openEvent=new U,this.closeEvent=new U,this.searchEvent=new U,this.clearEvent=new U,this.addEvent=new U,this.removeEvent=new U,this.scroll=new U,this.scrollToEnd=new U,this._clearSearchOnAdd=this._defaultOptions?.clearSearchOnAdd,this._items=[],this._itemsAreUsed=!1,this._destroy$=new z,this._value=null,this.stateChanges=new z,this._uid=`mtx-select-${Rz++}`,this._focused=!1,this.disabled=!1,this.ariaLabel="",this.ariaLabelledby=null,this._ariaDescribedby=null,this.controlType="mtx-select",this._onChange=()=>{},this._onTouched=()=>{},this._valueId=`mtx-select-value-${Rz++}`,this._intlChangesSubscription=Te.EMPTY;let i=this._focusMonitor,r=u(ul),o=u(gc,{optional:!0}),a=u(Ji,{optional:!0}),s=this.ngControl;this._intlChangesSubscription=this._intl.changes.subscribe(()=>{this._changeDetectorRef.detectChanges()}),i.monitor(this._elementRef,!0).subscribe(l=>{this._focused&&!l&&this._onTouched(),this._focused=!!l,this.stateChanges.next()}),this.ngControl&&(this.ngControl.valueAccessor=this),this._errorStateTracker=new dl(r,s,a,o,this.stateChanges),this.id=this.id}ngOnInit(){this.compareWith&&(this.ngSelect.compareWith=this.compareWith)}ngAfterViewInit(){this._itemsAreUsed||(this.ngSelect.escapeHTML=!1,this._setItemsFromMtxOptions())}ngDoCheck(){if(this.ngControl){let i=this.ngControl;this._previousControl!==i.control&&(this._previousControl!==void 0&&i.disabled!==null&&i.disabled!==this.disabled&&(this.disabled=i.disabled),this._previousControl=i.control),this.updateErrorState()}}ngOnDestroy(){this._destroy$.next(),this._destroy$.complete(),this.stateChanges.complete(),this._focusMonitor.stopMonitoring(this._elementRef),this._intlChangesSubscription.unsubscribe()}_getAriaLabelledby(){if(this.ariaLabel)return null;let i=this._parentFormField?.getLabelId(),r=(i?i+" ":"")+this._valueId;return this.ariaLabelledby&&(r+=" "+this.ariaLabelledby),r}setDescribedByIds(i){this._ariaDescribedby=i.length?i.join(" "):null}setDisabledState(i){this.disabled=i,this._changeDetectorRef.markForCheck(),this.stateChanges.next()}onContainerClick(i){i.target.classList.contains("ng-arrow-wrapper")||(this.focus(),this.open())}writeValue(i){this._assignValue(i)}registerOnChange(i){this._onChange=i}registerOnTouched(i){this._onTouched=i}updateErrorState(){this._errorStateTracker.updateErrorState()}_assignValue(i){return i!==this._value||this.multiple&&Array.isArray(i)?(this._value=i,this._changeDetectorRef.markForCheck(),!0):!1}_setItemsFromMtxOptions(){let i=o=>{this.items=o.map(a=>({$ngOptionValue:a.value,$ngOptionLabel:a.elementRef.nativeElement.innerHTML,disabled:a.disabled})),this.ngSelect.itemsList.setItems(this.items),this.ngSelect.hasValue&&this.ngSelect.itemsList.mapSelectedItems(),this.ngSelect.detectChanges()},r=()=>{let o=Je(this.mtxOptions.changes,this._destroy$);Je(...this.mtxOptions.map(a=>a.stateChange$)).pipe(we(o)).subscribe(a=>{let s=this.ngSelect.itemsList.findItem(a.value);s.disabled=a.disabled,s.label=a.label||s.label,this.ngSelect.detectChanges()})};this.mtxOptions.changes.pipe(Ue(this.mtxOptions),we(this._destroy$)).subscribe(o=>{i(o),r()})}open(){this.ngSelect.open()}close(){this.ngSelect.close()}focus(){this.ngSelect.focus()}blur(){this.ngSelect.blur()}openChange(){this.openEvent.emit(),setTimeout(()=>{this._document.getElementById(this.ngSelect.dropdownId)?.classList.add("mat-"+this._parentFormField?.color)})}};n.\u0275fac=function(r){return new(r||n)},n.\u0275cmp=E({type:n,selectors:[["mtx-select"]],contentQueries:function(r,o,a){if(r&1&&(xe(a,Che,5,te),xe(a,whe,5,te),xe(a,Dhe,5,te),xe(a,Ehe,5,te),xe(a,Mhe,5,te),xe(a,She,5,te),xe(a,khe,5,te),xe(a,The,5,te),xe(a,Ihe,5,te),xe(a,Ahe,5,te),xe(a,Ohe,5,te),xe(a,Rhe,5,te),xe(a,Phe,5,te),xe(a,yhe,5)),r&2){let s;j(s=H())&&(o.optionTemplate=s.first),j(s=H())&&(o.optgroupTemplate=s.first),j(s=H())&&(o.labelTemplate=s.first),j(s=H())&&(o.multiLabelTemplate=s.first),j(s=H())&&(o.headerTemplate=s.first),j(s=H())&&(o.footerTemplate=s.first),j(s=H())&&(o.notFoundTemplate=s.first),j(s=H())&&(o.typeToSearchTemplate=s.first),j(s=H())&&(o.loadingTextTemplate=s.first),j(s=H())&&(o.tagTemplate=s.first),j(s=H())&&(o.loadingSpinnerTemplate=s.first),j(s=H())&&(o.placeholderTemplate=s.first),j(s=H())&&(o.clearbuttonTemplate=s.first),j(s=H())&&(o.mtxOptions=s)}},viewQuery:function(r,o){if(r&1&&ie(Ame,7),r&2){let a;j(a=H())&&(o.ngSelect=a.first)}},hostAttrs:["role","combobox","aria-autocomplete","none",1,"mtx-select"],hostVars:20,hostBindings:function(r,o){r&2&&(X("id",o.id)("aria-expanded",o.panelOpen)("aria-label",o.ariaLabel||null)("aria-labelledby",o._getAriaLabelledby())("aria-describedby",o._ariaDescribedby||null)("aria-required",o.required.toString())("aria-disabled",o.disabled.toString())("aria-invalid",o.errorState),G("mtx-select-floating",o.shouldLabelFloat)("mtx-select-disabled",o.disabled)("mtx-select-invalid",o.errorState)("mtx-select-required",o.required)("mtx-select-empty",o.empty)("mtx-select-multiple",o.multiple))},inputs:{addTag:"addTag",addTagText:"addTagText",appearance:"appearance",appendTo:"appendTo",bindLabel:"bindLabel",bindValue:"bindValue",closeOnSelect:[2,"closeOnSelect","closeOnSelect",L],clearAllText:"clearAllText",clearable:[2,"clearable","clearable",L],clearOnBackspace:[2,"clearOnBackspace","clearOnBackspace",L],compareWith:"compareWith",dropdownPosition:"dropdownPosition",groupBy:"groupBy",groupValue:"groupValue",bufferAmount:"bufferAmount",selectableGroup:[2,"selectableGroup","selectableGroup",L],selectableGroupAsModel:[2,"selectableGroupAsModel","selectableGroupAsModel",L],hideSelected:[2,"hideSelected","hideSelected",L],loading:[2,"loading","loading",L],loadingText:"loadingText",labelForId:"labelForId",markFirst:[2,"markFirst","markFirst",L],maxSelectedItems:"maxSelectedItems",multiple:[2,"multiple","multiple",L],notFoundText:"notFoundText",searchable:[2,"searchable","searchable",L],readonly:[2,"readonly","readonly",L],searchFn:"searchFn",searchWhileComposing:[2,"searchWhileComposing","searchWhileComposing",L],selectOnTab:[2,"selectOnTab","selectOnTab",L],trackByFn:"trackByFn",inputAttrs:"inputAttrs",tabIndex:"tabIndex",openOnEnter:[2,"openOnEnter","openOnEnter",L],minTermLength:"minTermLength",editableSearchTerm:[2,"editableSearchTerm","editableSearchTerm",L],keyDownFn:"keyDownFn",virtualScroll:[2,"virtualScroll","virtualScroll",L],typeToSearchText:"typeToSearchText",typeahead:"typeahead",isOpen:"isOpen",fixedPlaceholder:[2,"fixedPlaceholder","fixedPlaceholder",L],deselectOnClick:[2,"deselectOnClick","deselectOnClick",L],clearSearchOnAdd:"clearSearchOnAdd",items:"items",value:"value",id:"id",placeholder:"placeholder",disabled:[2,"disabled","disabled",L],required:[2,"required","required",L],errorStateMatcher:"errorStateMatcher",ariaLabel:[0,"aria-label","ariaLabel"],ariaLabelledby:[0,"aria-labelledby","ariaLabelledby"]},outputs:{blurEvent:"blur",focusEvent:"focus",changeEvent:"change",openEvent:"open",closeEvent:"close",searchEvent:"search",clearEvent:"clear",addEvent:"add",removeEvent:"remove",scroll:"scroll",scrollToEnd:"scrollToEnd"},exportAs:["mtxSelect"],features:[Ce([{provide:Pa,useExisting:n}])],decls:15,vars:63,consts:[["ngSelect",""],[3,"ngModelChange","blur","focus","change","open","close","search","clear","add","remove","scroll","scrollToEnd","ngModel","ngModelOptions","placeholder","items","addTag","addTagText","appendTo","appearance","bindLabel","bindValue","closeOnSelect","clearAllText","clearable","clearOnBackspace","dropdownPosition","groupBy","groupValue","bufferAmount","hideSelected","isOpen","inputAttrs","loading","loadingText","labelForId","markFirst","maxSelectedItems","multiple","notFoundText","readonly","typeahead","typeToSearchText","trackByFn","searchable","searchFn","searchWhileComposing","clearSearchOnAdd","selectableGroup","selectableGroupAsModel","selectOnTab","tabIndex","openOnEnter","minTermLength","editableSearchTerm","keyDownFn","virtualScroll","fixedPlaceholder","deselectOnClick"],["ng-option-tmp",""],["ng-optgroup-tmp",""],["ng-label-tmp",""],["ng-multi-label-tmp",""],["ng-header-tmp",""],["ng-footer-tmp",""],["ng-notfound-tmp",""],["ng-typetosearch-tmp",""],["ng-loadingtext-tmp",""],["ng-tag-tmp",""],["ng-loadingspinner-tmp",""],["ng-placeholder-tmp",""],["ng-clearbutton-tmp",""],[3,"ngTemplateOutlet","ngTemplateOutletContext"],[3,"ngTemplateOutlet"]],template:function(r,o){if(r&1){let a=q();m(0,"ng-select",1,0),Nr("ngModelChange",function(l){return T(a),Zr(o.value,l)||(o.value=l),I(l)}),S("blur",function(l){return T(a),I(o.blurEvent.emit(l))})("focus",function(l){return T(a),I(o.focusEvent.emit(l))})("change",function(l){return T(a),I(o.changeEvent.emit(l))})("open",function(){return T(a),I(o.openChange())})("close",function(){return T(a),I(o.closeEvent.emit())})("search",function(l){return T(a),I(o.searchEvent.emit(l))})("clear",function(l){return T(a),I(o.clearEvent.emit(l))})("add",function(l){return T(a),I(o.addEvent.emit(l))})("remove",function(l){return T(a),I(o.removeEvent.emit(l))})("scroll",function(l){return T(a),I(o.scroll.emit(l))})("scrollToEnd",function(){return T(a),I(o.scrollToEnd.emit())}),V(2,Lme,1,0,null,2),V(3,jme,1,0,null,3),V(4,Ume,1,0,null,4),V(5,Gme,1,0,null,5),V(6,Qme,1,0,null,6),V(7,Xme,1,0,null,7),V(8,the,1,0,null,8),V(9,rhe,1,0,null,9),V(10,she,1,0,null,10),V(11,dhe,1,0,null,11),V(12,hhe,1,0,null,12),V(13,ghe,1,0,null,13),V(14,vhe,1,0,null,14),h()}r&2&&(G("ng-select-invalid",o.errorState),Fr("ngModel",o.value),v("ngModelOptions",rt(62,Ome))("placeholder",o.placeholder||o._intl.placeholder)("items",o.items)("addTag",o.addTag)("addTagText",o.addTagText||o._intl.addTagText)("appendTo",o.appendTo)("appearance",o.appearance)("bindLabel",o.bindLabel)("bindValue",o.bindValue)("closeOnSelect",o.closeOnSelect)("clearAllText",o.clearAllText||o._intl.clearAllText)("clearable",o.clearable)("clearOnBackspace",o.clearOnBackspace)("dropdownPosition",o.dropdownPosition)("groupBy",o.groupBy)("groupValue",o.groupValue)("bufferAmount",o.bufferAmount)("hideSelected",o.hideSelected)("isOpen",o.isOpen)("inputAttrs",o.inputAttrs)("loading",o.loading)("loadingText",o.loadingText||o._intl.loadingText)("labelForId",o.labelForId)("markFirst",o.markFirst)("maxSelectedItems",o.maxSelectedItems)("multiple",o.multiple)("notFoundText",o.notFoundText||o._intl.notFoundText)("readonly",o.readonly||o.disabled)("typeahead",o.typeahead)("typeToSearchText",o.typeToSearchText||o._intl.typeToSearchText)("trackByFn",o.trackByFn)("searchable",o.searchable)("searchFn",o.searchFn)("searchWhileComposing",o.searchWhileComposing)("clearSearchOnAdd",o.clearSearchOnAdd)("selectableGroup",o.selectableGroup)("selectableGroupAsModel",o.selectableGroupAsModel)("selectOnTab",o.selectOnTab)("tabIndex",o.tabIndex)("openOnEnter",o.openOnEnter)("minTermLength",o.minTermLength)("editableSearchTerm",o.editableSearchTerm)("keyDownFn",o.keyDownFn)("virtualScroll",o.virtualScroll)("fixedPlaceholder",o.fixedPlaceholder)("deselectOnClick",o.deselectOnClick),f(2),B(o.optionTemplate?2:-1),f(),B(o.optgroupTemplate?3:-1),f(),B(o.labelTemplate?4:-1),f(),B(o.multiLabelTemplate?5:-1),f(),B(o.headerTemplate?6:-1),f(),B(o.footerTemplate?7:-1),f(),B(o.notFoundTemplate?8:-1),f(),B(o.typeToSearchTemplate?9:-1),f(),B(o.loadingTextTemplate?10:-1),f(),B(o.tagTemplate?11:-1),f(),B(o.loadingSpinnerTemplate?12:-1),f(),B(o.placeholderTemplate?13:-1),f(),B(o.clearbuttonTemplate?14:-1))},dependencies:[wI,Oz,VC,LC,BC,jC,HC,zC,$C,UC,WC,GC,qC,YC,QC,pl,qt,pu,Ln],styles:[`.ng-select{padding:var(--mat-form-field-filled-with-label-container-padding-top, 24px) 16px var(--mat-form-field-filled-with-label-container-padding-bottom, 8px);margin:calc(var(--mat-form-field-filled-with-label-container-padding-top, 24px) * -1) -16px calc(var(--mat-form-field-filled-with-label-container-padding-bottom, 8px) * -1)}.mdc-text-field--outlined .ng-select,.mdc-text-field--no-label .ng-select{padding-top:var(--mat-form-field-container-vertical-padding, 16px);padding-bottom:var(--mat-form-field-container-vertical-padding, 16px);margin-top:calc(var(--mat-form-field-container-vertical-padding, 16px) * -1);margin-bottom:calc(var(--mat-form-field-container-vertical-padding, 16px) * -1)}.ng-select .ng-select-container{align-items:center;color:var(--mtx-select-container-text-color, var(--mat-sys-on-surface))}.ng-select .ng-select-container .ng-value-container{align-items:center;gap:4px}.ng-select .ng-select-container .ng-value-container .ng-input>input{height:var(--mat-form-field-container-text-line-height, var(--mat-sys-body-large-line-height));color:inherit;font:inherit}.ng-select .ng-select-container .ng-clear-wrapper{display:inline-flex;justify-content:center;align-items:center;width:24px;height:var(--mat-form-field-container-text-line-height, var(--mat-sys-body-large-line-height))}.ng-select .ng-placeholder{transition:opacity .2s;opacity:1;color:var(--mtx-select-placeholder-text-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent))}.mat-form-field-hide-placeholder .ng-select .ng-placeholder{opacity:0}.ng-select .ng-has-value .ng-placeholder{display:none}.ng-select .ng-clear-wrapper{color:var(--mtx-select-clear-icon-color, var(--mat-sys-on-surface))}.ng-select .ng-clear-wrapper:hover .ng-clear{color:var(--mtx-select-clear-icon-hover-color, var(--mat-sys-error))}.ng-select.ng-select-disabled .ng-value{color:var(--mtx-select-disabled-text-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent))}.ng-select.ng-select-opened .ng-arrow-wrapper .ng-arrow{top:-2px;border-width:0 5px 5px}.ng-select.ng-select-single.ng-select-filtered .ng-placeholder{display:initial;visibility:hidden}.ng-select.ng-select-multiple .ng-select-container .ng-value-container .ng-value{display:inline-flex;align-items:center;height:var(--mat-form-field-container-text-line-height, var(--mat-sys-body-large-line-height));padding:0 calc((var(--mat-form-field-container-text-line-height, var(--mat-sys-body-large-line-height)) - 16px) / 2);border-radius:9999px;font-size:.875em;background-color:var(--mtx-select-multiple-value-background-color, transparent);border:1px solid var(--mtx-select-multiple-value-outline-color, var(--mat-sys-outline))}.ng-select.ng-select-multiple .ng-select-container .ng-value-container .ng-value.ng-value-disabled{opacity:.4}.ng-select.ng-select-multiple .ng-select-container .ng-value-container .ng-value .ng-value-label{display:inline-block;margin:0 4px;line-height:16px}.ng-select.ng-select-multiple .ng-select-container .ng-value-container .ng-value .ng-value-icon{width:16px;height:16px;line-height:16px;border-radius:50%;text-align:center}.ng-select.ng-select-multiple .ng-select-container .ng-value-container .ng-value .ng-value-icon:hover{background-color:var(--mtx-select-multiple-value-icon-hover-background-color, var(--mat-sys-outline-variant))}.ng-select.ng-select-multiple.ng-select-disabled .ng-select-container .ng-value-container .ng-value{border-color:var(--mtx-select-multiple-value-disabled-outline-color, color-mix(in srgb, var(--mat-sys-outline) 38%, transparent))}.ng-select .ng-arrow-wrapper{width:10px}.ng-select .ng-arrow{border-width:5px 5px 2px;border-style:solid;border-color:var(--mtx-select-enabled-arrow-color, var(--mat-sys-on-surface)) transparent transparent}.ng-select.ng-select-disabled .ng-arrow{border-color:var(--mtx-select-disabled-arrow-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent)) transparent transparent}.ng-select.ng-select-invalid .ng-arrow{border-color:var(--mtx-select-invalid-arrow-color, var(--mat-sys-error)) transparent transparent}.ng-select.ng-select-opened .ng-arrow{border-color:transparent transparent var(--mtx-select-enabled-arrow-color, var(--mat-sys-on-surface))}.ng-select.ng-select-opened.ng-select-invalid .ng-arrow{border-color:transparent transparent var(--mtx-select-invalid-arrow-color, var(--mat-sys-error))}.ng-dropdown-panel{background-color:var(--mtx-select-panel-background-color, var(--mat-sys-surface-container))}.ng-dropdown-panel.ng-select-bottom{top:100%;border-bottom-left-radius:var(--mtx-select-container-shape, var(--mat-sys-corner-extra-small));border-bottom-right-radius:var(--mtx-select-container-shape, var(--mat-sys-corner-extra-small));box-shadow:var(--mtx-select-container-elevation-shadow, 0px 3px 1px -2px rgba(0, 0, 0, .2), 0px 2px 2px 0px rgba(0, 0, 0, .14), 0px 1px 5px 0px rgba(0, 0, 0, .12))}.ng-dropdown-panel.ng-select-top{bottom:100%;border-top-left-radius:var(--mtx-select-container-shape, var(--mat-sys-corner-extra-small));border-top-right-radius:var(--mtx-select-container-shape, var(--mat-sys-corner-extra-small));box-shadow:var(--mtx-select-container-elevation-shadow, 0px 3px 1px -2px rgba(0, 0, 0, .2), 0px 2px 2px 0px rgba(0, 0, 0, .14), 0px 1px 5px 0px rgba(0, 0, 0, .12))}.ng-dropdown-panel .ng-dropdown-header,.ng-dropdown-panel .ng-dropdown-footer{padding:14px 16px}.ng-dropdown-panel .ng-dropdown-header{border-bottom:1px solid var(--mtx-select-panel-divider-color, var(--mat-sys-outline))}.ng-dropdown-panel .ng-dropdown-footer{border-top:1px solid var(--mtx-select-panel-divider-color, var(--mat-sys-outline))}.ng-dropdown-panel .ng-dropdown-panel-items .ng-optgroup{padding:14px 16px;font-weight:500;-webkit-user-select:none;user-select:none;cursor:pointer;color:var(--mtx-select-optgroup-label-text-color, var(--mat-sys-on-surface))}.ng-dropdown-panel .ng-dropdown-panel-items .ng-optgroup.ng-option-disabled{cursor:default}.ng-dropdown-panel .ng-dropdown-panel-items .ng-optgroup.ng-option-marked{background-color:var(--mtx-select-option-hover-state-background-color, color-mix(in srgb, var(--mat-sys-on-surface) calc(var(--mat-sys-hover-state-layer-opacity) * 100%), transparent))}.ng-dropdown-panel .ng-dropdown-panel-items .ng-optgroup.ng-option-selected{background-color:var(--mtx-select-option-selected-state-background-color, var(--mat-sys-secondary-container));color:var(--mtx-select-option-selected-state-text-color, var(--mat-sys-on-surface))}.ng-dropdown-panel .ng-dropdown-panel-items .ng-option{position:relative;padding:14px 16px;text-overflow:ellipsis;text-decoration:none;text-align:left;white-space:nowrap;overflow:hidden;color:var(--mtx-select-option-label-text-color, var(--mat-sys-on-surface))}.ng-dropdown-panel .ng-dropdown-panel-items .ng-option.ng-option-marked{background-color:var(--mtx-select-option-hover-state-background-color, color-mix(in srgb, var(--mat-sys-on-surface) calc(var(--mat-sys-hover-state-layer-opacity) * 100%), transparent))}.ng-dropdown-panel .ng-dropdown-panel-items .ng-option.ng-option-selected{background-color:var(--mtx-select-option-selected-state-background-color, var(--mat-sys-secondary-container));color:var(--mtx-select-option-selected-state-text-color, var(--mat-sys-on-surface))}.ng-dropdown-panel .ng-dropdown-panel-items .ng-option.ng-option-disabled{color:var(--mtx-select-option-disabled-state-text-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent))}[dir=rtl] .ng-dropdown-panel .ng-dropdown-panel-items .ng-option{text-align:right}.ng-dropdown-panel .ng-dropdown-panel-items .ng-option.ng-option-child{padding-left:32px}[dir=rtl] .ng-dropdown-panel .ng-dropdown-panel-items .ng-option.ng-option-child{padding-right:32px;padding-left:0}.ng-dropdown-panel .ng-dropdown-panel-items .ng-option .ng-tag-label{margin-right:6px;font-size:80%}[dir=rtl] .ng-dropdown-panel .ng-dropdown-panel-items .ng-option .ng-tag-label{margin-left:6px;margin-right:0} -`],encapsulation:2,changeDetection:0});let t=n;return t})(),Nz=(()=>{let n=class n{};n.\u0275fac=function(r){return new(r||n)},n.\u0275mod=ee({type:n}),n.\u0275inj=J({imports:[ut,pl,$n,wI,EI]});let t=n;return t})();var Lz=(()=>{let n=class n extends oo{get bindLabel(){return typeof this.props.labelProp=="string"?this.props.labelProp:""}get bindValue(){return typeof this.props.valueProp=="string"?this.props.valueProp:void 0}};n.\u0275fac=(()=>{let i;return function(o){return(i||(i=ge(n)))(o||n)}})(),n.\u0275cmp=E({type:n,selectors:[["formly-field-combobox"]],features:[le],decls:4,vars:13,consts:[["select",""],[3,"formControl","items","bindLabel","bindValue","multiple","placeholder","required","closeOnSelect","compareWith"]],template:function(r,o){r&1&&(M(0,"mtx-select",1,0),ue(2,"toObservable"),ue(3,"async")),r&2&&v("formControl",o.formControl)("items",Oe(3,11,Oe(2,9,o.props.options)))("bindLabel",o.bindLabel)("bindValue",o.bindValue)("multiple",o.props.multiple)("placeholder",o.props.placeholder)("required",o.props.required)("closeOnSelect",!o.props.multiple)("compareWith",o.props.compareWith)},dependencies:[$n,qt,Io,To,Nz,EI,f3,sn,p3],encapsulation:2});let t=n;return t})();var Vz=(()=>{let n=class n extends Mg{};n.\u0275fac=(()=>{let i;return function(o){return(i||(i=ge(n)))(o||n)}})(),n.\u0275cmp=E({type:n,selectors:[["formly-wrapper-card"]],features:[le],decls:8,vars:1,consts:[["fieldComponent",""],[1,"card"],[1,"card-header"],[1,"card-body"]],template:function(r,o){r&1&&(pt(0,"div",1)(1,"h3",2),g(2,"Its time to party"),_t(),pt(3,"h3",2),g(4),_t(),pt(5,"div",3),df(6,null,0),_t()()),r&2&&(f(4),N(o.props.label))},encapsulation:2});let t=n;return t})(),Bz=(()=>{let n=class n extends Mg{};n.\u0275fac=(()=>{let i;return function(o){return(i||(i=ge(n)))(o||n)}})(),n.\u0275cmp=E({type:n,selectors:[["formly-wrapper-div"]],features:[le],decls:3,vars:0,consts:[["fieldComponent",""]],template:function(r,o){r&1&&(pt(0,"div"),df(1,null,0),_t())},encapsulation:2});let t=n;return t})();function jz(t){return{types:[{name:"combobox",component:Lz,wrappers:["form-field"]}],wrappers:[{name:"card",component:Vz},{name:"div",component:Bz}],validators:[],validationMessages:[{name:"required",message:(n,e)=>t.stream("validation.required")},{name:"min",message:(n,e)=>t.stream("validation.min",{number:e.props?.min})},{name:"max",message:(n,e)=>t.stream("validation.max",{number:e.props?.max})},{name:"minLength",message:(n,e)=>t.stream("validation.min_length",{number:e.props?.minLength})},{name:"maxLength",message:(n,e)=>t.stream("validation.max_length",{number:e.props?.maxLength})}]}}var Nhe={lessThanXSeconds:{one:"\u4E0D\u5230 1 \u79D2",other:"\u4E0D\u5230 {{count}} \u79D2"},xSeconds:{one:"1 \u79D2",other:"{{count}} \u79D2"},halfAMinute:"\u534A\u5206\u949F",lessThanXMinutes:{one:"\u4E0D\u5230 1 \u5206\u949F",other:"\u4E0D\u5230 {{count}} \u5206\u949F"},xMinutes:{one:"1 \u5206\u949F",other:"{{count}} \u5206\u949F"},xHours:{one:"1 \u5C0F\u65F6",other:"{{count}} \u5C0F\u65F6"},aboutXHours:{one:"\u5927\u7EA6 1 \u5C0F\u65F6",other:"\u5927\u7EA6 {{count}} \u5C0F\u65F6"},xDays:{one:"1 \u5929",other:"{{count}} \u5929"},aboutXWeeks:{one:"\u5927\u7EA6 1 \u4E2A\u661F\u671F",other:"\u5927\u7EA6 {{count}} \u4E2A\u661F\u671F"},xWeeks:{one:"1 \u4E2A\u661F\u671F",other:"{{count}} \u4E2A\u661F\u671F"},aboutXMonths:{one:"\u5927\u7EA6 1 \u4E2A\u6708",other:"\u5927\u7EA6 {{count}} \u4E2A\u6708"},xMonths:{one:"1 \u4E2A\u6708",other:"{{count}} \u4E2A\u6708"},aboutXYears:{one:"\u5927\u7EA6 1 \u5E74",other:"\u5927\u7EA6 {{count}} \u5E74"},xYears:{one:"1 \u5E74",other:"{{count}} \u5E74"},overXYears:{one:"\u8D85\u8FC7 1 \u5E74",other:"\u8D85\u8FC7 {{count}} \u5E74"},almostXYears:{one:"\u5C06\u8FD1 1 \u5E74",other:"\u5C06\u8FD1 {{count}} \u5E74"}},Hz=(t,n,e)=>{let i,r=Nhe[t];return typeof r=="string"?i=r:n===1?i=r.one:i=r.other.replace("{{count}}",String(n)),e?.addSuffix?e.comparison&&e.comparison>0?i+"\u5185":i+"\u524D":i};var Lhe={full:"y'\u5E74'M'\u6708'd'\u65E5' EEEE",long:"y'\u5E74'M'\u6708'd'\u65E5'",medium:"yyyy-MM-dd",short:"yy-MM-dd"},Vhe={full:"zzzz a h:mm:ss",long:"z a h:mm:ss",medium:"a h:mm:ss",short:"a h:mm"},Bhe={full:"{{date}} {{time}}",long:"{{date}} {{time}}",medium:"{{date}} {{time}}",short:"{{date}} {{time}}"},zz={date:Xo({formats:Lhe,defaultWidth:"full"}),time:Xo({formats:Vhe,defaultWidth:"full"}),dateTime:Xo({formats:Bhe,defaultWidth:"full"})};function Uz(t,n,e){let i="eeee p";return jV(t,n,e)?i:t.getTime()>n.getTime()?"'\u4E0B\u4E2A'"+i:"'\u4E0A\u4E2A'"+i}var jhe={lastWeek:Uz,yesterday:"'\u6628\u5929' p",today:"'\u4ECA\u5929' p",tomorrow:"'\u660E\u5929' p",nextWeek:Uz,other:"PP p"},$z=(t,n,e,i)=>{let r=jhe[t];return typeof r=="function"?r(n,e,i):r};var Hhe={narrow:["\u524D","\u516C\u5143"],abbreviated:["\u524D","\u516C\u5143"],wide:["\u516C\u5143\u524D","\u516C\u5143"]},zhe={narrow:["1","2","3","4"],abbreviated:["\u7B2C\u4E00\u5B63","\u7B2C\u4E8C\u5B63","\u7B2C\u4E09\u5B63","\u7B2C\u56DB\u5B63"],wide:["\u7B2C\u4E00\u5B63\u5EA6","\u7B2C\u4E8C\u5B63\u5EA6","\u7B2C\u4E09\u5B63\u5EA6","\u7B2C\u56DB\u5B63\u5EA6"]},Uhe={narrow:["\u4E00","\u4E8C","\u4E09","\u56DB","\u4E94","\u516D","\u4E03","\u516B","\u4E5D","\u5341","\u5341\u4E00","\u5341\u4E8C"],abbreviated:["1\u6708","2\u6708","3\u6708","4\u6708","5\u6708","6\u6708","7\u6708","8\u6708","9\u6708","10\u6708","11\u6708","12\u6708"],wide:["\u4E00\u6708","\u4E8C\u6708","\u4E09\u6708","\u56DB\u6708","\u4E94\u6708","\u516D\u6708","\u4E03\u6708","\u516B\u6708","\u4E5D\u6708","\u5341\u6708","\u5341\u4E00\u6708","\u5341\u4E8C\u6708"]},$he={narrow:["\u65E5","\u4E00","\u4E8C","\u4E09","\u56DB","\u4E94","\u516D"],short:["\u65E5","\u4E00","\u4E8C","\u4E09","\u56DB","\u4E94","\u516D"],abbreviated:["\u5468\u65E5","\u5468\u4E00","\u5468\u4E8C","\u5468\u4E09","\u5468\u56DB","\u5468\u4E94","\u5468\u516D"],wide:["\u661F\u671F\u65E5","\u661F\u671F\u4E00","\u661F\u671F\u4E8C","\u661F\u671F\u4E09","\u661F\u671F\u56DB","\u661F\u671F\u4E94","\u661F\u671F\u516D"]},Whe={narrow:{am:"\u4E0A",pm:"\u4E0B",midnight:"\u51CC\u6668",noon:"\u5348",morning:"\u65E9",afternoon:"\u4E0B\u5348",evening:"\u665A",night:"\u591C"},abbreviated:{am:"\u4E0A\u5348",pm:"\u4E0B\u5348",midnight:"\u51CC\u6668",noon:"\u4E2D\u5348",morning:"\u65E9\u6668",afternoon:"\u4E2D\u5348",evening:"\u665A\u4E0A",night:"\u591C\u95F4"},wide:{am:"\u4E0A\u5348",pm:"\u4E0B\u5348",midnight:"\u51CC\u6668",noon:"\u4E2D\u5348",morning:"\u65E9\u6668",afternoon:"\u4E2D\u5348",evening:"\u665A\u4E0A",night:"\u591C\u95F4"}},Ghe={narrow:{am:"\u4E0A",pm:"\u4E0B",midnight:"\u51CC\u6668",noon:"\u5348",morning:"\u65E9",afternoon:"\u4E0B\u5348",evening:"\u665A",night:"\u591C"},abbreviated:{am:"\u4E0A\u5348",pm:"\u4E0B\u5348",midnight:"\u51CC\u6668",noon:"\u4E2D\u5348",morning:"\u65E9\u6668",afternoon:"\u4E2D\u5348",evening:"\u665A\u4E0A",night:"\u591C\u95F4"},wide:{am:"\u4E0A\u5348",pm:"\u4E0B\u5348",midnight:"\u51CC\u6668",noon:"\u4E2D\u5348",morning:"\u65E9\u6668",afternoon:"\u4E2D\u5348",evening:"\u665A\u4E0A",night:"\u591C\u95F4"}},qhe=(t,n)=>{let e=Number(t);switch(n?.unit){case"date":return e.toString()+"\u65E5";case"hour":return e.toString()+"\u65F6";case"minute":return e.toString()+"\u5206";case"second":return e.toString()+"\u79D2";default:return"\u7B2C "+e.toString()}},Wz={ordinalNumber:qhe,era:Hn({values:Hhe,defaultWidth:"wide"}),quarter:Hn({values:zhe,defaultWidth:"wide",argumentCallback:t=>t-1}),month:Hn({values:Uhe,defaultWidth:"wide"}),day:Hn({values:$he,defaultWidth:"wide"}),dayPeriod:Hn({values:Whe,defaultWidth:"wide",formattingValues:Ghe,defaultFormattingWidth:"wide"})};var Yhe=/^(第\s*)?\d+(日|时|分|秒)?/i,Qhe=/\d+/i,Khe={narrow:/^(前)/i,abbreviated:/^(前)/i,wide:/^(公元前|公元)/i},Zhe={any:[/^(前)/i,/^(公元)/i]},Xhe={narrow:/^[1234]/i,abbreviated:/^第[一二三四]刻/i,wide:/^第[一二三四]刻钟/i},Jhe={any:[/(1|一)/i,/(2|二)/i,/(3|三)/i,/(4|四)/i]},epe={narrow:/^(一|二|三|四|五|六|七|八|九|十[二一])/i,abbreviated:/^(一|二|三|四|五|六|七|八|九|十[二一]|\d|1[12])月/i,wide:/^(一|二|三|四|五|六|七|八|九|十[二一])月/i},tpe={narrow:[/^一/i,/^二/i,/^三/i,/^四/i,/^五/i,/^六/i,/^七/i,/^八/i,/^九/i,/^十(?!(一|二))/i,/^十一/i,/^十二/i],any:[/^一|1/i,/^二|2/i,/^三|3/i,/^四|4/i,/^五|5/i,/^六|6/i,/^七|7/i,/^八|8/i,/^九|9/i,/^十(?!(一|二))|10/i,/^十一|11/i,/^十二|12/i]},ipe={narrow:/^[一二三四五六日]/i,short:/^[一二三四五六日]/i,abbreviated:/^周[一二三四五六日]/i,wide:/^星期[一二三四五六日]/i},npe={any:[/日/i,/一/i,/二/i,/三/i,/四/i,/五/i,/六/i]},rpe={any:/^(上午?|下午?|午夜|[中正]午|早上?|下午|晚上?|凌晨|)/i},ope={any:{am:/^上午?/i,pm:/^下午?/i,midnight:/^午夜/i,noon:/^[中正]午/i,morning:/^早上/i,afternoon:/^下午/i,evening:/^晚上?/i,night:/^凌晨/i}},Gz={ordinalNumber:hh({matchPattern:Yhe,parsePattern:Qhe,valueCallback:t=>parseInt(t,10)}),era:zn({matchPatterns:Khe,defaultMatchWidth:"wide",parsePatterns:Zhe,defaultParseWidth:"any"}),quarter:zn({matchPatterns:Xhe,defaultMatchWidth:"wide",parsePatterns:Jhe,defaultParseWidth:"any",valueCallback:t=>t+1}),month:zn({matchPatterns:epe,defaultMatchWidth:"wide",parsePatterns:tpe,defaultParseWidth:"any"}),day:zn({matchPatterns:ipe,defaultMatchWidth:"wide",parsePatterns:npe,defaultParseWidth:"any"}),dayPeriod:zn({matchPatterns:rpe,defaultMatchWidth:"any",parsePatterns:ope,defaultParseWidth:"any"})};var qz={code:"zh-CN",formatDistance:Hz,formatLong:zz,formatRelative:$z,localize:Wz,match:Gz,options:{weekStartsOn:1,firstWeekContainsDate:4}};var ape={lessThanXSeconds:{one:"\u5C11\u65BC 1 \u79D2",other:"\u5C11\u65BC {{count}} \u79D2"},xSeconds:{one:"1 \u79D2",other:"{{count}} \u79D2"},halfAMinute:"\u534A\u5206\u9418",lessThanXMinutes:{one:"\u5C11\u65BC 1 \u5206\u9418",other:"\u5C11\u65BC {{count}} \u5206\u9418"},xMinutes:{one:"1 \u5206\u9418",other:"{{count}} \u5206\u9418"},xHours:{one:"1 \u5C0F\u6642",other:"{{count}} \u5C0F\u6642"},aboutXHours:{one:"\u5927\u7D04 1 \u5C0F\u6642",other:"\u5927\u7D04 {{count}} \u5C0F\u6642"},xDays:{one:"1 \u5929",other:"{{count}} \u5929"},aboutXWeeks:{one:"\u5927\u7D04 1 \u500B\u661F\u671F",other:"\u5927\u7D04 {{count}} \u500B\u661F\u671F"},xWeeks:{one:"1 \u500B\u661F\u671F",other:"{{count}} \u500B\u661F\u671F"},aboutXMonths:{one:"\u5927\u7D04 1 \u500B\u6708",other:"\u5927\u7D04 {{count}} \u500B\u6708"},xMonths:{one:"1 \u500B\u6708",other:"{{count}} \u500B\u6708"},aboutXYears:{one:"\u5927\u7D04 1 \u5E74",other:"\u5927\u7D04 {{count}} \u5E74"},xYears:{one:"1 \u5E74",other:"{{count}} \u5E74"},overXYears:{one:"\u8D85\u904E 1 \u5E74",other:"\u8D85\u904E {{count}} \u5E74"},almostXYears:{one:"\u5C07\u8FD1 1 \u5E74",other:"\u5C07\u8FD1 {{count}} \u5E74"}},Yz=(t,n,e)=>{let i,r=ape[t];return typeof r=="string"?i=r:n===1?i=r.one:i=r.other.replace("{{count}}",String(n)),e?.addSuffix?e.comparison&&e.comparison>0?i+"\u5167":i+"\u524D":i};var spe={full:"y'\u5E74'M'\u6708'd'\u65E5' EEEE",long:"y'\u5E74'M'\u6708'd'\u65E5'",medium:"yyyy-MM-dd",short:"yy-MM-dd"},lpe={full:"zzzz a h:mm:ss",long:"z a h:mm:ss",medium:"a h:mm:ss",short:"a h:mm"},cpe={full:"{{date}} {{time}}",long:"{{date}} {{time}}",medium:"{{date}} {{time}}",short:"{{date}} {{time}}"},Qz={date:Xo({formats:spe,defaultWidth:"full"}),time:Xo({formats:lpe,defaultWidth:"full"}),dateTime:Xo({formats:cpe,defaultWidth:"full"})};var dpe={lastWeek:"'\u4E0A\u500B'eeee p",yesterday:"'\u6628\u5929' p",today:"'\u4ECA\u5929' p",tomorrow:"'\u660E\u5929' p",nextWeek:"'\u4E0B\u500B'eeee p",other:"P"},Kz=(t,n,e,i)=>dpe[t];var upe={narrow:["\u524D","\u516C\u5143"],abbreviated:["\u524D","\u516C\u5143"],wide:["\u516C\u5143\u524D","\u516C\u5143"]},mpe={narrow:["1","2","3","4"],abbreviated:["\u7B2C\u4E00\u523B","\u7B2C\u4E8C\u523B","\u7B2C\u4E09\u523B","\u7B2C\u56DB\u523B"],wide:["\u7B2C\u4E00\u523B\u9418","\u7B2C\u4E8C\u523B\u9418","\u7B2C\u4E09\u523B\u9418","\u7B2C\u56DB\u523B\u9418"]},hpe={narrow:["\u4E00","\u4E8C","\u4E09","\u56DB","\u4E94","\u516D","\u4E03","\u516B","\u4E5D","\u5341","\u5341\u4E00","\u5341\u4E8C"],abbreviated:["1\u6708","2\u6708","3\u6708","4\u6708","5\u6708","6\u6708","7\u6708","8\u6708","9\u6708","10\u6708","11\u6708","12\u6708"],wide:["\u4E00\u6708","\u4E8C\u6708","\u4E09\u6708","\u56DB\u6708","\u4E94\u6708","\u516D\u6708","\u4E03\u6708","\u516B\u6708","\u4E5D\u6708","\u5341\u6708","\u5341\u4E00\u6708","\u5341\u4E8C\u6708"]},ppe={narrow:["\u65E5","\u4E00","\u4E8C","\u4E09","\u56DB","\u4E94","\u516D"],short:["\u65E5","\u4E00","\u4E8C","\u4E09","\u56DB","\u4E94","\u516D"],abbreviated:["\u9031\u65E5","\u9031\u4E00","\u9031\u4E8C","\u9031\u4E09","\u9031\u56DB","\u9031\u4E94","\u9031\u516D"],wide:["\u661F\u671F\u65E5","\u661F\u671F\u4E00","\u661F\u671F\u4E8C","\u661F\u671F\u4E09","\u661F\u671F\u56DB","\u661F\u671F\u4E94","\u661F\u671F\u516D"]},fpe={narrow:{am:"\u4E0A",pm:"\u4E0B",midnight:"\u51CC\u6668",noon:"\u5348",morning:"\u65E9",afternoon:"\u4E0B\u5348",evening:"\u665A",night:"\u591C"},abbreviated:{am:"\u4E0A\u5348",pm:"\u4E0B\u5348",midnight:"\u51CC\u6668",noon:"\u4E2D\u5348",morning:"\u65E9\u6668",afternoon:"\u4E2D\u5348",evening:"\u665A\u4E0A",night:"\u591C\u9593"},wide:{am:"\u4E0A\u5348",pm:"\u4E0B\u5348",midnight:"\u51CC\u6668",noon:"\u4E2D\u5348",morning:"\u65E9\u6668",afternoon:"\u4E2D\u5348",evening:"\u665A\u4E0A",night:"\u591C\u9593"}},gpe={narrow:{am:"\u4E0A",pm:"\u4E0B",midnight:"\u51CC\u6668",noon:"\u5348",morning:"\u65E9",afternoon:"\u4E0B\u5348",evening:"\u665A",night:"\u591C"},abbreviated:{am:"\u4E0A\u5348",pm:"\u4E0B\u5348",midnight:"\u51CC\u6668",noon:"\u4E2D\u5348",morning:"\u65E9\u6668",afternoon:"\u4E2D\u5348",evening:"\u665A\u4E0A",night:"\u591C\u9593"},wide:{am:"\u4E0A\u5348",pm:"\u4E0B\u5348",midnight:"\u51CC\u6668",noon:"\u4E2D\u5348",morning:"\u65E9\u6668",afternoon:"\u4E2D\u5348",evening:"\u665A\u4E0A",night:"\u591C\u9593"}},_pe=(t,n)=>{let e=Number(t);switch(n?.unit){case"date":return e+"\u65E5";case"hour":return e+"\u6642";case"minute":return e+"\u5206";case"second":return e+"\u79D2";default:return"\u7B2C "+e}},Zz={ordinalNumber:_pe,era:Hn({values:upe,defaultWidth:"wide"}),quarter:Hn({values:mpe,defaultWidth:"wide",argumentCallback:t=>t-1}),month:Hn({values:hpe,defaultWidth:"wide"}),day:Hn({values:ppe,defaultWidth:"wide"}),dayPeriod:Hn({values:fpe,defaultWidth:"wide",formattingValues:gpe,defaultFormattingWidth:"wide"})};var bpe=/^(第\s*)?\d+(日|時|分|秒)?/i,vpe=/\d+/i,ype={narrow:/^(前)/i,abbreviated:/^(前)/i,wide:/^(公元前|公元)/i},xpe={any:[/^(前)/i,/^(公元)/i]},Cpe={narrow:/^[1234]/i,abbreviated:/^第[一二三四]刻/i,wide:/^第[一二三四]刻鐘/i},wpe={any:[/(1|一)/i,/(2|二)/i,/(3|三)/i,/(4|四)/i]},Dpe={narrow:/^(一|二|三|四|五|六|七|八|九|十[二一])/i,abbreviated:/^(一|二|三|四|五|六|七|八|九|十[二一]|\d|1[12])月/i,wide:/^(一|二|三|四|五|六|七|八|九|十[二一])月/i},Epe={narrow:[/^一/i,/^二/i,/^三/i,/^四/i,/^五/i,/^六/i,/^七/i,/^八/i,/^九/i,/^十(?!(一|二))/i,/^十一/i,/^十二/i],any:[/^一|1/i,/^二|2/i,/^三|3/i,/^四|4/i,/^五|5/i,/^六|6/i,/^七|7/i,/^八|8/i,/^九|9/i,/^十(?!(一|二))|10/i,/^十一|11/i,/^十二|12/i]},Mpe={narrow:/^[一二三四五六日]/i,short:/^[一二三四五六日]/i,abbreviated:/^週[一二三四五六日]/i,wide:/^星期[一二三四五六日]/i},Spe={any:[/日/i,/一/i,/二/i,/三/i,/四/i,/五/i,/六/i]},kpe={any:/^(上午?|下午?|午夜|[中正]午|早上?|下午|晚上?|凌晨)/i},Tpe={any:{am:/^上午?/i,pm:/^下午?/i,midnight:/^午夜/i,noon:/^[中正]午/i,morning:/^早上/i,afternoon:/^下午/i,evening:/^晚上?/i,night:/^凌晨/i}},Xz={ordinalNumber:hh({matchPattern:bpe,parsePattern:vpe,valueCallback:t=>parseInt(t,10)}),era:zn({matchPatterns:ype,defaultMatchWidth:"wide",parsePatterns:xpe,defaultParseWidth:"any"}),quarter:zn({matchPatterns:Cpe,defaultMatchWidth:"wide",parsePatterns:wpe,defaultParseWidth:"any",valueCallback:t=>t+1}),month:zn({matchPatterns:Dpe,defaultMatchWidth:"wide",parsePatterns:Epe,defaultParseWidth:"any"}),day:zn({matchPatterns:Mpe,defaultMatchWidth:"wide",parsePatterns:Spe,defaultParseWidth:"any"}),dayPeriod:zn({matchPatterns:kpe,defaultMatchWidth:"any",parsePatterns:Tpe,defaultParseWidth:"any"})};var Jz={code:"zh-TW",formatDistance:Yz,formatLong:Qz,formatRelative:Kz,localize:Zz,match:Xz,options:{weekStartsOn:1,firstWeekContainsDate:4}};var MI={navPos:"side",theme:"auto",dir:"ltr",showHeader:!0,headerPos:"fixed",showUserPanel:!0,sidenavOpened:!0,sidenavCollapsed:!1,language:"auto"};var ca=(()=>{let n=class n{get notify(){return this.notify$.asObservable()}constructor(){this.key="ng-matero-settings",this.document=u(_e),this.translate=u(oa),this.store=u(xz),this.mediaMatcher=u(Xm),this.dir=u(vz),this.notify$=new it({}),this.htmlElement=this.document.querySelector("html"),this.storedOptions=this.store.get(this.key),this.options=Object.assign(MI,this.storedOptions),this.languages=["en-US","zh-CN","zh-TW"],this.localeMap={"en-US":su,"zh-CN":qz,"zh-TW":Jz},this.translate.addLangs(this.languages)}reset(){this.store.remove(this.key)}setOptions(i){this.options=Object.assign(MI,this.options,i),this.store.set(this.key,this.options),this.notify$.next(this.options)}setDirection(i){i&&this.setOptions({dir:i}),this.dir.value=this.options.dir,this.htmlElement.dir=this.options.dir}getThemeColor(){return this.options.theme==="auto"&&this.mediaMatcher.matchMedia("(prefers-color-scheme)").media!=="not all"?this.mediaMatcher.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light":this.options.theme}setTheme(i){i&&this.setOptions({theme:i}),this.getThemeColor()==="dark"?this.htmlElement.classList.add("theme-dark"):this.htmlElement.classList.remove("theme-dark")}getTranslateLang(){if(this.options.language==="auto"){let i=navigator.language;return this.languages.includes(i)?i:"en-US"}return this.options.language}setLanguage(i){i&&this.setOptions({language:i}),this.translate.use(this.getTranslateLang())}getLocale(){return this.localeMap[this.getTranslateLang()]}};n.\u0275fac=function(r){return new(r||n)},n.\u0275prov=R({token:n,factory:n.\u0275fac,providedIn:"root"});let t=n;return t})();var e8=(()=>{let n=class n{constructor(){this.http=u(xr),this.oidcAuth=u(Ot),this.menuService=u(mo),this.permissonsService=u(Cu),this.rolesService=u(Fh),this.oidcAuth.permissionsChange$.subscribe(()=>{console.log("StartupService: Permission change event received, refreshing permissions"),this.setPermissions()})}load(){return new Promise((i,r)=>{this.http.get("data/menu.json").pipe(He(o=>this.setMenu(o.menu))).subscribe({next:()=>{this.setPermissions(),i()},error:o=>{console.error("Error loading menu:",o),this.setPermissions(),i()}})})}setMenu(i){this.menuService.addNamespace(i,"menu"),this.menuService.set(i)}setPermissions(){let i=this.oidcAuth.getUserRoles();console.log("StartupService: User roles from token:",i);let r=["canAdd","canDelete","canEdit","canRead"];this.rolesService.flushRoles(),i.length>0?(this.permissonsService.loadPermissions(r),console.log("StartupService: Loaded permissions:",r),i.includes("HRAdmin")&&(this.rolesService.addRoles({HRAdmin:r}),console.log("StartupService: Added HRAdmin role with permissions:",r)),i.includes("Manager")&&(this.rolesService.addRoles({Manager:r}),console.log("StartupService: Added Manager role with permissions:",r)),i.includes("Employee")&&(this.rolesService.addRoles({Employee:["canRead"]}),console.log("StartupService: Added Employee role with canRead permission"))):(console.log("StartupService: No roles found - setting Guest permissions"),this.permissonsService.loadPermissions(["canRead"]),this.rolesService.addRoles({Guest:["canRead"]}))}};n.\u0275fac=function(r){return new(r||n)},n.\u0275prov=R({token:n,factory:n.\u0275fac,providedIn:"root"});let t=n;return t})();var t8=(()=>{let n=class n{constructor(){this.document=u(_e),this.selector="globalLoader"}getElement(){return this.document.getElementById(this.selector)}hide(){let i=this.getElement();i&&(i.addEventListener("transitionend",()=>{i.className="global-loader-hidden"}),i.classList.contains("global-loader-hidden")||(i.className+=" global-loader-fade-out"))}};n.\u0275fac=function(r){return new(r||n)},n.\u0275prov=R({token:n,factory:n.\u0275fac,providedIn:"root"});let t=n;return t})();var i8=(()=>{let n=class n{constructor(){this.translate=u(oa),this.settings=u(ca)}load(){return new Promise(i=>{let r=this.settings.getTranslateLang();this.translate.setFallbackLang(r),this.translate.use(r).subscribe({next:()=>console.log(`Successfully initialized '${r}' language.'`),error:()=>console.error(`Problem with '${r}' language initialization.'`),complete:()=>i()})})}};n.\u0275fac=function(r){return new(r||n)},n.\u0275prov=R({token:n,factory:n.\u0275fac,providedIn:"root"});let t=n;return t})();function n8(t,n){return n(t)}var SI=new O("BASE_URL");function Ipe(t){return new RegExp("^http(s)?://","i").test(t)}function r8(t,n){let e=u(SI,{optional:!0}),i=o=>e&&Ipe(o),r=o=>[e?.replace(/\/$/g,""),o.replace(/^\.?\//,"")].filter(a=>a).join("/");return i(t.url)===!1?n(t.clone({url:r(t.url)})):n(t)}function o8(t,n){let e=u(ca);return n(t.clone({headers:t.headers.append("Accept-Language",e.getTranslateLang())}))}function a8(t,n){let e=u(Lg);return t.url.includes("/api/")?n(t).pipe(It(i=>{if(i instanceof rl){let r=i.body;if(r&&"code"in r&&r.code!==0)return r.msg&&e.error(r.msg),qn(()=>[])}return Q(i)})):n(t)}var __=(function(t){return t[t.UNAUTHORIZED=401]="UNAUTHORIZED",t[t.FORBIDDEN=403]="FORBIDDEN",t[t.NOT_FOUND=404]="NOT_FOUND",t[t.INTERNAL_SERVER_ERROR=500]="INTERNAL_SERVER_ERROR",t})(__||{});function s8(t,n){let e=u(Re),i=u(Lg),r=[__.FORBIDDEN,__.NOT_FOUND,__.INTERNAL_SERVER_ERROR],o=a=>a.error?.message?a.error.message:a.error?.msg?a.error.msg:a.status===0?"Network error - please check your connection":`${a.status} ${a.statusText}`;return n(t).pipe(ii(a=>a.status===0?(console.warn("Network error (possible CORS issue):",a),qn(()=>a)):(!t.url.includes("/ai/")&&r.includes(a.status)?e.navigateByUrl(`/${a.status}`,{skipLocationChange:!0}):(console.error("ERROR",a),i.error(o(a)),a.status===__.UNAUTHORIZED&&console.warn("Unauthorized access - authentication required")),qn(()=>a))))}function l8(t,n){let e=u(yz),i=Date.now(),r;return n(t).pipe(He({next:o=>r=o instanceof rl?"succeeded":"",error:o=>r="failed"}),Gr(()=>{let o=Date.now()-i,a=`${t.method} "${t.urlWithParams}" ${r} in ${o} ms.`;e.add(a)}))}var c8=[n8,r8,o8,a8,s8,l8];var XC=["*"],Ape=["content"],Ope=[[["mat-drawer"]],[["mat-drawer-content"]],"*"],Rpe=["mat-drawer","mat-drawer-content","*"];function Ppe(t,n){if(t&1){let e=q();m(0,"div",1),S("click",function(){T(e);let r=x();return I(r._onBackdropClicked())}),h()}if(t&2){let e=x();G("mat-drawer-shown",e._isShowingBackdrop())}}function Fpe(t,n){t&1&&(m(0,"mat-drawer-content"),ne(1,2),h())}var Npe=[[["mat-sidenav"]],[["mat-sidenav-content"]],"*"],Lpe=["mat-sidenav","mat-sidenav-content","*"];function Vpe(t,n){if(t&1){let e=q();m(0,"div",1),S("click",function(){T(e);let r=x();return I(r._onBackdropClicked())}),h()}if(t&2){let e=x();G("mat-drawer-shown",e._isShowingBackdrop())}}function Bpe(t,n){t&1&&(m(0,"mat-sidenav-content"),ne(1,2),h())}var jpe=`.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:.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} -`;var Hpe=new O("MAT_DRAWER_DEFAULT_AUTOSIZE",{providedIn:"root",factory:zpe}),II=new O("MAT_DRAWER_CONTAINER");function zpe(){return!1}var KC=(()=>{class t extends Fa{_platform=u(qe);_changeDetectorRef=u(ye);_container=u(TI);constructor(){let e=u(Y),i=u(Ds),r=u(ae);super(e,i,r)}ngAfterContentInit(){this._container._contentMarginChanges.subscribe(()=>{this._changeDetectorRef.markForCheck()})}_shouldBeHidden(){if(this._platform.isBrowser)return!1;let{start:e,end:i}=this._container;return e!=null&&e.mode!=="over"&&e.opened||i!=null&&i.mode!=="over"&&i.opened}static \u0275fac=function(i){return new(i||t)};static \u0275cmp=E({type:t,selectors:[["mat-drawer-content"]],hostAttrs:[1,"mat-drawer-content"],hostVars:6,hostBindings:function(i,r){i&2&&(Et("margin-left",r._container._contentMargins.left,"px")("margin-right",r._container._contentMargins.right,"px"),G("mat-drawer-content-hidden",r._shouldBeHidden()))},features:[Ce([{provide:Fa,useExisting:t}]),le],ngContentSelectors:XC,decls:1,vars:0,template:function(i,r){i&1&&(Se(),ne(0))},encapsulation:2,changeDetection:0})}return t})(),kI=(()=>{class t{_elementRef=u(Y);_focusTrapFactory=u(eh);_focusMonitor=u(ti);_platform=u(qe);_ngZone=u(ae);_renderer=u(ze);_interactivityChecker=u(lc);_doc=u(_e);_container=u(II,{optional:!0});_focusTrap=null;_elementFocusedBeforeDrawerWasOpened=null;_eventCleanups;_isAttached;_anchor;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=Ri(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=Ri(e)),this._autoFocus=e}_autoFocus;get opened(){return this._opened()}set opened(e){this.toggle(Ri(e))}_opened=he(!1);_openedVia;_animationStarted=new z;_animationEnd=new z;openedChange=new U(!0);_openedStream=this.openedChange.pipe(ce(e=>e),se(()=>{}));openedStart=this._animationStarted.pipe(ce(()=>this.opened),Zu(void 0));_closedStream=this.openedChange.pipe(ce(e=>!e),se(()=>{}));closedStart=this._animationStarted.pipe(ce(()=>!this.opened),Zu(void 0));_destroyed=new z;onPositionChanged=new U;_content;_modeChanged=new z;_injector=u(de);_changeDetectorRef=u(ye);constructor(){this.openedChange.pipe(we(this._destroyed)).subscribe(e=>{e?(this._elementFocusedBeforeDrawerWasOpened=this._doc.activeElement,this._takeFocus()):this._isFocusWithinDrawer()&&this._restoreFocus(this._openedVia||"program")}),this._ngZone.runOutsideAngular(()=>{let e=this._elementRef.nativeElement;Us(e,"keydown").pipe(ce(i=>i.keyCode===27&&!this.disableClose&&!Lt(i)),we(this._destroyed)).subscribe(i=>this._ngZone.run(()=>{this.close(),i.stopPropagation(),i.preventDefault()})),this._eventCleanups=[this._renderer.listen(e,"transitionrun",this._handleTransitionEvent),this._renderer.listen(e,"transitionend",this._handleTransitionEvent),this._renderer.listen(e,"transitioncancel",this._handleTransitionEvent)]}),this._animationEnd.subscribe(()=>{this.openedChange.emit(this.opened)})}_forceFocus(e,i){this._interactivityChecker.isFocusable(e)||(e.tabIndex=-1,this._ngZone.runOutsideAngular(()=>{let r=()=>{o(),a(),e.removeAttribute("tabindex")},o=this._renderer.listen(e,"blur",r),a=this._renderer.listen(e,"mousedown",r)})),e.focus(i)}_focusByCssSelector(e,i){let r=this._elementRef.nativeElement.querySelector(e);r&&this._forceFocus(r,i)}_takeFocus(){if(!this._focusTrap)return;let e=this._elementRef.nativeElement;switch(this.autoFocus){case!1:case"dialog":return;case!0:case"first-tabbable":gt(()=>{!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,i){e&&i&&(this._openedVia=i);let r=this._setOpen(e,!e&&this._isFocusWithinDrawer(),this._openedVia||"program");return e||(this._openedVia=null),r}_setOpen(e,i,r){return e===this.opened?Promise.resolve(e?"open":"close"):(this._opened.set(e),this._container?._transitionsEnabled?this._setIsAnimating(!0):setTimeout(()=>{this._animationStarted.next(),this._animationEnd.next()}),this._elementRef.nativeElement.classList.toggle("mat-drawer-opened",e),!e&&i&&this._restoreFocus(r),this._changeDetectorRef.markForCheck(),this._updateFocusTrapState(),new Promise(o=>{this.openedChange.pipe(ct(1)).subscribe(a=>o(a?"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._container?.hasBackdrop&&this.opened)}_updatePositionInParent(e){if(!this._platform.isBrowser)return;let i=this._elementRef.nativeElement,r=i.parentNode;e==="end"?(this._anchor||(this._anchor=this._doc.createComment("mat-drawer-anchor"),r.insertBefore(this._anchor,i)),r.appendChild(i)):this._anchor&&this._anchor.parentNode.insertBefore(i,this._anchor)}_handleTransitionEvent=e=>{let i=this._elementRef.nativeElement;e.target===i&&this._ngZone.run(()=>{e.type==="transitionrun"?this._animationStarted.next(e):(e.type==="transitionend"&&this._setIsAnimating(!1),this._animationEnd.next(e))})};static \u0275fac=function(i){return new(i||t)};static \u0275cmp=E({type:t,selectors:[["mat-drawer"]],viewQuery:function(i,r){if(i&1&&ie(Ape,5),i&2){let o;j(o=H())&&(r._content=o.first)}},hostAttrs:[1,"mat-drawer"],hostVars:12,hostBindings:function(i,r){i&2&&(X("align",null)("tabIndex",r.mode!=="side"?"-1":null),Et("visibility",!r._container&&!r.opened?"hidden":null),G("mat-drawer-end",r.position==="end")("mat-drawer-over",r.mode==="over")("mat-drawer-push",r.mode==="push")("mat-drawer-side",r.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:XC,decls:3,vars:0,consts:[["content",""],["cdkScrollable","",1,"mat-drawer-inner-container"]],template:function(i,r){i&1&&(Se(),m(0,"div",1,0),ne(2),h())},dependencies:[Fa],encapsulation:2,changeDetection:0})}return t})(),TI=(()=>{class t{_dir=u(Bt,{optional:!0});_element=u(Y);_ngZone=u(ae);_changeDetectorRef=u(ye);_animationDisabled=Ye();_transitionsEnabled=!1;_allDrawers;_drawers=new gr;_content;_userContent;get start(){return this._start}get end(){return this._end}get autosize(){return this._autosize}set autosize(e){this._autosize=Ri(e)}_autosize=u(Hpe);get hasBackdrop(){return this._drawerHasBackdrop(this._start)||this._drawerHasBackdrop(this._end)}set hasBackdrop(e){this._backdropOverride=e==null?null:Ri(e)}_backdropOverride;backdropClick=new U;_start;_end;_left;_right;_destroyed=new z;_doCheckSubject=new z;_contentMargins={left:null,right:null};_contentMarginChanges=new z;get scrollable(){return this._userContent||this._content}_injector=u(de);constructor(){let e=u(qe),i=u(tr);this._dir?.change.pipe(we(this._destroyed)).subscribe(()=>{this._validateDrawers(),this.updateContentMargins()}),i.change().pipe(we(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(Ue(this._allDrawers),we(this._destroyed)).subscribe(e=>{this._drawers.reset(e.filter(i=>!i._container||i._container===this)),this._drawers.notifyOnChanges()}),this._drawers.changes.pipe(Ue(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(St(10),we(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,i=0;if(this._left&&this._left.opened){if(this._left.mode=="side")e+=this._left._getWidth();else if(this._left.mode=="push"){let r=this._left._getWidth();e+=r,i-=r}}if(this._right&&this._right.opened){if(this._right.mode=="side")i+=this._right._getWidth();else if(this._right.mode=="push"){let r=this._right._getWidth();i+=r,e-=r}}e=e||null,i=i||null,(e!==this._contentMargins.left||i!==this._contentMargins.right)&&(this._contentMargins={left:e,right:i},this._ngZone.run(()=>this._contentMarginChanges.next(this._contentMargins)))}ngDoCheck(){this._autosize&&this._isPushed()&&this._ngZone.runOutsideAngular(()=>this._doCheckSubject.next())}_watchDrawerToggle(e){e._animationStarted.pipe(we(this._drawers.changes)).subscribe(()=>{this.updateContentMargins(),this._changeDetectorRef.markForCheck()}),e.mode!=="side"&&e.openedChange.pipe(we(this._drawers.changes)).subscribe(()=>this._setContainerClass(e.opened))}_watchDrawerPosition(e){e.onPositionChanged.pipe(we(this._drawers.changes)).subscribe(()=>{gt({read:()=>this._validateDrawers()},{injector:this._injector})})}_watchDrawerMode(e){e._modeChanged.pipe(we(Je(this._drawers.changes,this._destroyed))).subscribe(()=>{this.updateContentMargins(),this._changeDetectorRef.markForCheck()})}_setContainerClass(e){let i=this._element.nativeElement.classList,r="mat-drawer-container-has-open";e?i.add(r):i.remove(r)}_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(i){return new(i||t)};static \u0275cmp=E({type:t,selectors:[["mat-drawer-container"]],contentQueries:function(i,r,o){if(i&1&&(xe(o,KC,5),xe(o,kI,5)),i&2){let a;j(a=H())&&(r._content=a.first),j(a=H())&&(r._allDrawers=a)}},viewQuery:function(i,r){if(i&1&&ie(KC,5),i&2){let o;j(o=H())&&(r._userContent=o.first)}},hostAttrs:[1,"mat-drawer-container"],hostVars:2,hostBindings:function(i,r){i&2&&G("mat-drawer-container-explicit-backdrop",r._backdropOverride)},inputs:{autosize:"autosize",hasBackdrop:"hasBackdrop"},outputs:{backdropClick:"backdropClick"},exportAs:["matDrawerContainer"],features:[Ce([{provide:II,useExisting:t}])],ngContentSelectors:Rpe,decls:4,vars:2,consts:[[1,"mat-drawer-backdrop",3,"mat-drawer-shown"],[1,"mat-drawer-backdrop",3,"click"]],template:function(i,r){i&1&&(Se(Ope),V(0,Ppe,1,2,"div",0),ne(1),ne(2,1),V(3,Fpe,2,0,"mat-drawer-content")),i&2&&(B(r.hasBackdrop?0:-1),f(3),B(r._content?-1:3))},dependencies:[KC],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:.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 t})(),ZC=(()=>{class t extends KC{static \u0275fac=(()=>{let e;return function(r){return(e||(e=ge(t)))(r||t)}})();static \u0275cmp=E({type:t,selectors:[["mat-sidenav-content"]],hostAttrs:[1,"mat-drawer-content","mat-sidenav-content"],features:[Ce([{provide:Fa,useExisting:t}]),le],ngContentSelectors:XC,decls:1,vars:0,template:function(i,r){i&1&&(Se(),ne(0))},encapsulation:2,changeDetection:0})}return t})(),AI=(()=>{class t extends kI{get fixedInViewport(){return this._fixedInViewport}set fixedInViewport(e){this._fixedInViewport=Ri(e)}_fixedInViewport=!1;get fixedTopGap(){return this._fixedTopGap}set fixedTopGap(e){this._fixedTopGap=Bn(e)}_fixedTopGap=0;get fixedBottomGap(){return this._fixedBottomGap}set fixedBottomGap(e){this._fixedBottomGap=Bn(e)}_fixedBottomGap=0;static \u0275fac=(()=>{let e;return function(r){return(e||(e=ge(t)))(r||t)}})();static \u0275cmp=E({type:t,selectors:[["mat-sidenav"]],hostAttrs:[1,"mat-drawer","mat-sidenav"],hostVars:16,hostBindings:function(i,r){i&2&&(X("tabIndex",r.mode!=="side"?"-1":null)("align",null),Et("top",r.fixedInViewport?r.fixedTopGap:null,"px")("bottom",r.fixedInViewport?r.fixedBottomGap:null,"px"),G("mat-drawer-end",r.position==="end")("mat-drawer-over",r.mode==="over")("mat-drawer-push",r.mode==="push")("mat-drawer-side",r.mode==="side")("mat-sidenav-fixed",r.fixedInViewport))},inputs:{fixedInViewport:"fixedInViewport",fixedTopGap:"fixedTopGap",fixedBottomGap:"fixedBottomGap"},exportAs:["matSidenav"],features:[Ce([{provide:kI,useExisting:t}]),le],ngContentSelectors:XC,decls:3,vars:0,consts:[["content",""],["cdkScrollable","",1,"mat-drawer-inner-container"]],template:function(i,r){i&1&&(Se(),m(0,"div",1,0),ne(2),h())},dependencies:[Fa],encapsulation:2,changeDetection:0})}return t})(),d8=(()=>{class t extends TI{_allDrawers=void 0;_content=void 0;static \u0275fac=(()=>{let e;return function(r){return(e||(e=ge(t)))(r||t)}})();static \u0275cmp=E({type:t,selectors:[["mat-sidenav-container"]],contentQueries:function(i,r,o){if(i&1&&(xe(o,ZC,5),xe(o,AI,5)),i&2){let a;j(a=H())&&(r._content=a.first),j(a=H())&&(r._allDrawers=a)}},hostAttrs:[1,"mat-drawer-container","mat-sidenav-container"],hostVars:2,hostBindings:function(i,r){i&2&&G("mat-drawer-container-explicit-backdrop",r._backdropOverride)},exportAs:["matSidenavContainer"],features:[Ce([{provide:II,useExisting:t},{provide:TI,useExisting:t}]),le],ngContentSelectors:Lpe,decls:4,vars:2,consts:[[1,"mat-drawer-backdrop",3,"mat-drawer-shown"],[1,"mat-drawer-backdrop",3,"click"]],template:function(i,r){i&1&&(Se(Npe),V(0,Vpe,1,2,"div",0),ne(1),ne(2,1),V(3,Bpe,2,0,"mat-sidenav-content")),i&2&&(B(r.hasBackdrop?0:-1),f(3),B(r._content?-1:3))},dependencies:[ZC],styles:[jpe],encapsulation:2,changeDetection:0})}return t})(),u8=(()=>{class t{static \u0275fac=function(i){return new(i||t)};static \u0275mod=ee({type:t});static \u0275inj=J({imports:[De,Cr,Cr,De]})}return t})();function $pe(t,n){t&1&&Xt(0,"div",3)}function Wpe(t,n){t&1&&(pt(0,"div",4),Xt(1,"div",5),_t())}var Gpe={min:8,max:100,speed:200,debounceTime:0,trickleSpeed:300,fadeOutSpeed:50,relative:!1,flat:!1,spinner:!1,direction:"ltr+",spinnerPosition:"right",trickleFunc:t=>t>=0&&t<20?10:t>=20&&t<50?4:t>=50&&t<80?2:t>=80&&t<99?.5:0},m8=new O("NG_PROGRESS_OPTIONS",{providedIn:"root",factory:()=>Gpe});var JC=(function(t){return t.START="START",t.COMPLETE="COMPLETE",t})(JC||{});function qpe(t){let n=dt(t)||0;return n<100&&n>=0?n:0}function Ype(t){let n=dt(t)||100;return n>0&&n<=100?n:100}var ew=(()=>{let n=class n{constructor(){this.defaultOptions=u(m8),this.min=re(this.defaultOptions.min,{transform:qpe}),this.max=re(this.defaultOptions.max,{transform:Ype}),this.speed=re(this.defaultOptions.speed,{transform:dt}),this.trickleSpeed=re(this.defaultOptions.trickleSpeed,{transform:dt}),this.fadeOutSpeed=re(this.defaultOptions.fadeOutSpeed,{transform:dt}),this.debounceTime=re(this.defaultOptions.debounceTime,{transform:dt}),this.trickleFunc=re(this.defaultOptions.trickleFunc),this.config=oi(()=>({max:this.max(),min:this.min(),speed:this.speed(),trickleSpeed:this.trickleSpeed(),fadeOutSpeed:this.fadeOutSpeed(),trickleFunc:this.trickleFunc(),debounceTime:this.debounceTime()})),this._progress=he(0),this._active=he(!1),this.active=oi(()=>this._active()),this.progress=oi(()=>this._progress()),this.started=yi(),this.completed=yi(),this._trigger=new it(null);let i;Lr(r=>{let o=this.config();Ai(()=>{i=this._trigger.pipe(ce(a=>!!a),je(a=>a===JC.START?Ya(o.debounceTime).pipe(je(()=>this.onTrickling(o))):this.onComplete(o))).subscribe(),r(()=>i?.unsubscribe())})})}start(){this.started.emit(),this._trigger.next(JC.START),this._active.set(!0)}complete(){this._trigger.next(JC.COMPLETE)}inc(i){let r=this.progress();this.active()?(typeof i!="number"&&(i=this.config().trickleFunc(r)),this.set(r+i)):this.start()}set(i){this._active.set(!0),this._progress.set(this.clamp(i))}clamp(i){return Math.max(this.config().min,Math.min(this.config().max,i))}onTrickling(i){return this.active()||this.set(i.min),Ya(0,i.trickleSpeed).pipe(He(()=>this.inc()))}onComplete(i){return this.active()?(this.completed.emit(),Q({}).pipe(He(()=>this._progress.set(100)),ga(i.speed+140),He(()=>this._active.set(!1)),ga(i.fadeOutSpeed),Gr(()=>this._progress.set(0)),we(wz(this.started)))):Vi}};n.\u0275fac=function(r){return new(r||n)},n.\u0275dir=P({type:n,selectors:[["","ngProgressRef",""]],inputs:{min:[1,"min"],max:[1,"max"],speed:[1,"speed"],trickleSpeed:[1,"trickleSpeed"],fadeOutSpeed:[1,"fadeOutSpeed"],debounceTime:[1,"debounceTime"],trickleFunc:[1,"trickleFunc"]},outputs:{started:"started",completed:"completed"},exportAs:["ngProgressRef"]});let t=n;return t})(),h8=(()=>{let n=class n{constructor(){this.config=u(m8),this.progressRef=u(ew,{host:!0,self:!0}),this.flat=re(this.config.flat,{transform:L}),this.spinner=re(this.config.spinner,{transform:L}),this.relative=re(this.config.relative,{transform:L}),this.spinnerPosition=re(this.config.spinnerPosition),this.direction=re(this.config.direction),this.progressTransform=oi(()=>`translate3d(${this.progressRef.progress()}%,0,0)`)}};n.\u0275fac=function(r){return new(r||n)},n.\u0275cmp=E({type:n,selectors:[["ng-progress"]],hostAttrs:["role","progressbar"],hostVars:12,hostBindings:function(r,o){r&2&&(X("spinnerPosition",o.spinnerPosition())("direction",o.direction()),Et("--_ng-progress-speed",o.progressRef.speed()+"ms")("--_ng-progress-fade-out-speed",o.progressRef.fadeOutSpeed()+"ms"),G("ng-progress-bar",!0)("ng-progress-bar-active",o.progressRef.active())("ng-progress-bar-relative",o.relative()))},inputs:{flat:[1,"flat"],spinner:[1,"spinner"],relative:[1,"relative"],spinnerPosition:[1,"spinnerPosition"],direction:[1,"direction"]},exportAs:["ngProgress"],features:[Em([{directive:ew,inputs:["min","min","max","max","speed","speed","trickleSpeed","trickleSpeed","fadeOutSpeed","fadeOutSpeed","debounceTime","debounceTime"],outputs:["started","started","completed","completed"]}])],decls:5,vars:4,consts:[[1,"ng-progress-bar-wrapper"],[1,"ng-bar-placeholder"],[1,"ng-bar"],[1,"ng-meteor"],[1,"ng-spinner"],[1,"ng-spinner-icon"]],template:function(r,o){r&1&&(pt(0,"div",0)(1,"div",1)(2,"div",2),V(3,$pe,1,0,"div",3),_t()(),V(4,Wpe,2,0,"div",4),_t()),r&2&&(f(2),Et("transform",o.progressTransform()),f(),B(o.flat()?-1:3),f(),B(o.spinner()?4:-1))},styles:['[_nghost-%COMP%]{--_ng-progress-thickness: var(--ng-progress-thickness, 2);--_ng-progress-thickness-px: calc(var(--_ng-progress-thickness) * 1px);--_ng-progress-thickness-add-one: calc(var(--_ng-progress-thickness) + 1);--_ng-progress-meteor-position-px: calc(var(--_ng-progress-thickness-add-one) * -1px);--_ng-progress-color: var(--ng-progress-color, #1B95E0);--_ng-progress-holder-color: var(--ng-progress-holder-color, transparent);--_ng-progress-ease: var(--ng-progress-ease, linear);--_ng-progress-spinner-thickness: var(--ng-progress-spinner-thickness, 2);--_ng-progress-spinner-thickness-px: calc(var(--_ng-progress-spinner-thickness) * 1px);--_ng-progress-spinner-spacing: var(--ng-progress-spinner-spacing, 15);--_ng-progress-spinner-spacing-px: calc(var(--_ng-progress-spinner-spacing) * 1px);--_ng-progress-spinner-size: var(--ng-progress-spinner-size, 18);--_ng-progress-spinner-size-px: calc(var(--_ng-progress-spinner-size) * 1px);--_ng-progress-spinner-speed: var(--ng-progress-spinner-speed, .25s);z-index:999999;pointer-events:none}.ng-progress-bar-active[_nghost-%COMP%] .ng-progress-bar-wrapper[_ngcontent-%COMP%]{filter:alpha(opacity=100);opacity:1;transition:none}.ng-progress-bar-active[_nghost-%COMP%] .ng-bar[_ngcontent-%COMP%]{transition:all var(--_ng-progress-speed) var(--_ng-progress-ease)}.ng-progress-bar-relative[_nghost-%COMP%] .ng-progress-bar-wrapper[_ngcontent-%COMP%]{position:relative}[direction="ltr+"][_nghost-%COMP%] .ng-meteor[_ngcontent-%COMP%], [direction=ltr-][_nghost-%COMP%] .ng-meteor[_ngcontent-%COMP%]{rotate:calc(var(--_ng-progress-thickness-add-one) * 1deg)}[direction="ltr+"][_nghost-%COMP%] .ng-bar[_ngcontent-%COMP%], [direction="rtl+"][_nghost-%COMP%] .ng-bar[_ngcontent-%COMP%]{margin-left:-100%}[direction="ltr+"][_nghost-%COMP%] .ng-meteor[_ngcontent-%COMP%], [direction="rtl+"][_nghost-%COMP%] .ng-meteor[_ngcontent-%COMP%]{right:0}[direction="ltr+"][_nghost-%COMP%] .ng-meteor[_ngcontent-%COMP%], [direction=rtl-][_nghost-%COMP%] .ng-meteor[_ngcontent-%COMP%]{top:var(--_ng-progress-meteor-position-px)}[direction=ltr-][_nghost-%COMP%] .ng-meteor[_ngcontent-%COMP%], [direction="rtl+"][_nghost-%COMP%] .ng-meteor[_ngcontent-%COMP%]{bottom:var(--_ng-progress-meteor-position-px)}[direction=ltr-][_nghost-%COMP%] .ng-bar-placeholder[_ngcontent-%COMP%], [direction="rtl+"][_nghost-%COMP%] .ng-bar-placeholder[_ngcontent-%COMP%]{transform:rotate(180deg)}[direction=ltr-][_nghost-%COMP%] .ng-spinner-icon[_ngcontent-%COMP%], [direction="rtl+"][_nghost-%COMP%] .ng-spinner-icon[_ngcontent-%COMP%]{animation-direction:reverse}[direction="rtl+"][_nghost-%COMP%] .ng-meteor[_ngcontent-%COMP%], [direction=rtl-][_nghost-%COMP%] .ng-meteor[_ngcontent-%COMP%]{rotate:calc(var(--_ng-progress-thickness-add-one) * -1deg)}[_nghost-%COMP%] .ng-spinner[_ngcontent-%COMP%]{top:var(--_ng-progress-spinner-spacing-px)}[spinnerPosition=left][_nghost-%COMP%] .ng-spinner[_ngcontent-%COMP%]{left:var(--_ng-progress-spinner-spacing-px)}[spinnerPosition=right][_nghost-%COMP%] .ng-spinner[_ngcontent-%COMP%]{right:var(--_ng-progress-spinner-spacing-px)}.ng-progress-bar-wrapper[_ngcontent-%COMP%]{position:fixed;z-index:999999;top:0;left:0;width:100%;transform:scale(1);filter:alpha(opacity=0);opacity:0;transition:opacity var(--_ng-progress-fade-out-speed) linear}.ng-bar-placeholder[_ngcontent-%COMP%]{position:absolute;height:var(--_ng-progress-thickness-px);width:100%}.ng-bar[_ngcontent-%COMP%]{width:100%;height:100%;transform:translate(-100%,0,0);background:var(--_ng-progress-color)}.ng-meteor[_ngcontent-%COMP%]{display:block;position:absolute;width:100px;height:100%;opacity:1;box-shadow:0 0 10px var(--_ng-progress-color),0 0 5px var(--_ng-progress-color)}.ng-spinner[_ngcontent-%COMP%]{position:absolute;display:block;z-index:1031;top:10px}.ng-spinner-icon[_ngcontent-%COMP%]{box-sizing:border-box;animation:_ngcontent-%COMP%_spinner-animation var(--_ng-progress-spinner-speed) linear infinite;border-style:solid;border-color:transparent;border-radius:50%;border-top-color:var(--_ng-progress-color);border-left-color:var(--_ng-progress-color);width:var(--_ng-progress-spinner-size-px);height:var(--_ng-progress-spinner-size-px);border-width:var(--_ng-progress-spinner-thickness-px)}@keyframes _ngcontent-%COMP%_spinner-animation{0%{transform:rotate(0)}to{transform:rotate(360deg)}}'],changeDetection:0});let t=n;return t})();var Qpe={minDuration:0,startEvents:[fs],completeEvents:[xi,Ko,nc]},Kpe=new O("NG_PROGRESS_ROUTER_OPTIONS",{providedIn:"root",factory:()=>Qpe});function p8(t,n){return n.some(e=>t instanceof e)}var Zpe=(()=>{let n=class n{constructor(){this.router=u(Re),this.config=u(Kpe),this.progressRef=u(ew,{host:!0,self:!0});let i;this.router.events.pipe(ce(r=>p8(r,[...this.config.startEvents,...this.config.completeEvents])),se(r=>p8(r,this.config.startEvents)),He(r=>{clearTimeout(i),r?this.progressRef.start():i=setTimeout(()=>{this.progressRef.complete()},this.config.minDuration)}),Ou()).subscribe()}};n.\u0275fac=function(r){return new(r||n)},n.\u0275dir=P({type:n});let t=n;return t})(),f8=(()=>{let n=class n extends Zpe{};n.\u0275fac=(()=>{let i;return function(o){return(i||(i=ge(n)))(o||n)}})(),n.\u0275dir=P({type:n,selectors:[["ng-progress","ngProgressRouter",""]],features:[le]});let t=n;return t})();var Xpe=["*",[["mat-toolbar-row"]]],Jpe=["*","mat-toolbar-row"],efe=(()=>{class t{static \u0275fac=function(i){return new(i||t)};static \u0275dir=P({type:t,selectors:[["mat-toolbar-row"]],hostAttrs:[1,"mat-toolbar-row"],exportAs:["matToolbarRow"]})}return t})(),tw=(()=>{class t{_elementRef=u(Y);_platform=u(qe);_document=u(_e);color;_toolbarRows;constructor(){}ngAfterViewInit(){this._platform.isBrowser&&(this._checkToolbarMixedModes(),this._toolbarRows.changes.subscribe(()=>this._checkToolbarMixedModes()))}_checkToolbarMixedModes(){this._toolbarRows.length}static \u0275fac=function(i){return new(i||t)};static \u0275cmp=E({type:t,selectors:[["mat-toolbar"]],contentQueries:function(i,r,o){if(i&1&&xe(o,efe,5),i&2){let a;j(a=H())&&(r._toolbarRows=a)}},hostAttrs:[1,"mat-toolbar"],hostVars:6,hostBindings:function(i,r){i&2&&(nt(r.color?"mat-"+r.color:""),G("mat-toolbar-multiple-rows",r._toolbarRows.length>0)("mat-toolbar-single-row",r._toolbarRows.length===0))},inputs:{color:"color"},exportAs:["matToolbar"],ngContentSelectors:Jpe,decls:2,vars:0,template:function(i,r){i&1&&(Se(Xpe),ne(0),ne(1,1))},styles:[`.mat-toolbar{background:var(--mat-toolbar-container-background-color, var(--mat-sys-surface));color:var(--mat-toolbar-container-text-color, var(--mat-sys-on-surface))}.mat-toolbar,.mat-toolbar h1,.mat-toolbar h2,.mat-toolbar h3,.mat-toolbar h4,.mat-toolbar h5,.mat-toolbar h6{font-family:var(--mat-toolbar-title-text-font, var(--mat-sys-title-large-font));font-size:var(--mat-toolbar-title-text-size, var(--mat-sys-title-large-size));line-height:var(--mat-toolbar-title-text-line-height, var(--mat-sys-title-large-line-height));font-weight:var(--mat-toolbar-title-text-weight, var(--mat-sys-title-large-weight));letter-spacing:var(--mat-toolbar-title-text-tracking, var(--mat-sys-title-large-tracking));margin:0}@media(forced-colors: active){.mat-toolbar{outline:solid 1px}}.mat-toolbar .mat-form-field-underline,.mat-toolbar .mat-form-field-ripple,.mat-toolbar .mat-focused .mat-form-field-ripple{background-color:currentColor}.mat-toolbar .mat-form-field-label,.mat-toolbar .mat-focused .mat-form-field-label,.mat-toolbar .mat-select-value,.mat-toolbar .mat-select-arrow,.mat-toolbar .mat-form-field.mat-focused .mat-select-arrow{color:inherit}.mat-toolbar .mat-input-element{caret-color:currentColor}.mat-toolbar .mat-mdc-button-base.mat-mdc-button-base.mat-unthemed{--mat-button-text-label-text-color: var(--mat-toolbar-container-text-color, var(--mat-sys-on-surface));--mat-button-outlined-label-text-color: var(--mat-toolbar-container-text-color, var(--mat-sys-on-surface))}.mat-toolbar-row,.mat-toolbar-single-row{display:flex;box-sizing:border-box;padding:0 16px;width:100%;flex-direction:row;align-items:center;white-space:nowrap;height:var(--mat-toolbar-standard-height, 64px)}@media(max-width: 599px){.mat-toolbar-row,.mat-toolbar-single-row{height:var(--mat-toolbar-mobile-height, 56px)}}.mat-toolbar-multiple-rows{display:flex;box-sizing:border-box;flex-direction:column;width:100%;min-height:var(--mat-toolbar-standard-height, 64px)}@media(max-width: 599px){.mat-toolbar-multiple-rows{min-height:var(--mat-toolbar-mobile-height, 56px)}} -`],encapsulation:2,changeDetection:0})}return t})();var iw=(()=>{class t{static \u0275fac=function(i){return new(i||t)};static \u0275mod=ee({type:t});static \u0275inj=J({imports:[De,De]})}return t})();var _8=[["requestFullscreen","exitFullscreen","fullscreenElement","fullscreenEnabled","fullscreenchange","fullscreenerror"],["webkitRequestFullscreen","webkitExitFullscreen","webkitFullscreenElement","webkitFullscreenEnabled","webkitfullscreenchange","webkitfullscreenerror"],["webkitRequestFullScreen","webkitCancelFullScreen","webkitCurrentFullScreenElement","webkitCancelFullScreen","webkitfullscreenchange","webkitfullscreenerror"],["mozRequestFullScreen","mozCancelFullScreen","mozFullScreenElement","mozFullScreenEnabled","mozfullscreenchange","mozfullscreenerror"],["msRequestFullscreen","msExitFullscreen","msFullscreenElement","msFullscreenEnabled","MSFullscreenChange","MSFullscreenError"]],El=(()=>{if(typeof document>"u")return!1;let t=_8[0],n={};for(let e of _8)if(e?.[1]in document){for(let[r,o]of e.entries())n[t[r]]=o;return n}return!1})(),b8={change:El.fullscreenchange,error:El.fullscreenerror},Ro={request(t=document.documentElement,n){return new Promise((e,i)=>{let r=()=>{Ro.off("change",r),e()};Ro.on("change",r);let o=t[El.requestFullscreen](n);o instanceof Promise&&o.then(r).catch(i)})},exit(){return new Promise((t,n)=>{if(!Ro.isFullscreen){t();return}let e=()=>{Ro.off("change",e),t()};Ro.on("change",e);let i=document[El.exitFullscreen]();i instanceof Promise&&i.then(e).catch(n)})},toggle(t,n){return Ro.isFullscreen?Ro.exit():Ro.request(t,n)},onchange(t){Ro.on("change",t)},onerror(t){Ro.on("error",t)},on(t,n){let e=b8[t];e&&document.addEventListener(e,n,!1)},off(t,n){let e=b8[t];e&&document.removeEventListener(e,n,!1)},raw:El};Object.defineProperties(Ro,{isFullscreen:{get:()=>!!document[El.fullscreenElement]},element:{enumerable:!0,get:()=>document[El.fullscreenElement]??void 0},isEnabled:{enumerable:!0,get:()=>!!document[El.fullscreenEnabled]}});El||(Ro={isEnabled:!1});var OI=Ro;function tfe(t,n){t&1&&(pt(0,"span",2),g(1,"Talent Management"),_t())}var nw=(()=>{let n=class n{constructor(){this.showName=re(!0)}};n.\u0275fac=function(r){return new(r||n)},n.\u0275cmp=E({type:n,selectors:[["app-branding"]],inputs:{showName:[1,"showName"]},decls:3,vars:1,consts:[["href","/",1,"branding"],["src","images/matero.png","alt","logo",1,"branding-logo"],[1,"branding-name"]],template:function(r,o){r&1&&(pt(0,"a",0),Xt(1,"img",1),V(2,tfe,2,0,"span",2),_t()),r&2&&(f(2),B(o.showName()?2:-1))},styles:[".branding[_ngcontent-%COMP%]{display:flex;align-items:center;margin:0 .5rem;text-decoration:none;white-space:nowrap;color:inherit;border-radius:50rem}.branding-logo[_ngcontent-%COMP%]{width:2rem;height:2rem;border-radius:50rem}.branding-name[_ngcontent-%COMP%]{margin:0 .5rem;font-size:1rem;font-weight:500}"]});let t=n;return t})();var v8=(()=>{let n=class n{};n.\u0275fac=function(r){return new(r||n)},n.\u0275cmp=E({type:n,selectors:[["app-github-button"]],decls:3,vars:0,consts:[["matIconButton","","href","https://github.com/ng-matero/ng-matero","target","_blank"],["viewBox","0 0 16 16"],["fill","currentColor","d",`M7.999,0.431c-4.285,0-7.76,3.474-7.76,7.761 c0,3.428,2.223,6.337,5.307,7.363c0.388, +`):t}function yse(t,n){let{element:e,datasetIndex:i,index:r}=n,o=t.getDatasetMeta(i).controller,{label:a,value:s}=o.getLabelAndValue(r);return{chart:t,label:a,parsed:o.getParsed(r),raw:t.data.datasets[i].data[r],formattedValue:s,dataset:o.getDataset(),dataIndex:r,datasetIndex:i,element:e}}function U4(t,n){let e=t.chart.ctx,{body:i,footer:r,title:o}=t,{boxWidth:a,boxHeight:s}=n,l=vn(n.bodyFont),c=vn(n.titleFont),d=vn(n.footerFont),p=o.length,_=r.length,b=i.length,y=gr(n.padding),w=y.height,C=0,D=i.reduce((Z,K)=>Z+K.before.length+K.lines.length+K.after.length,0);if(D+=t.beforeBody.length+t.afterBody.length,p&&(w+=p*c.lineHeight+(p-1)*n.titleSpacing+n.titleMarginBottom),D){let Z=n.displayColors?Math.max(s,l.lineHeight):l.lineHeight;w+=b*Z+(D-b)*l.lineHeight+(D-1)*n.bodySpacing}_&&(w+=n.footerMarginTop+_*d.lineHeight+(_-1)*n.footerSpacing);let F=0,W=function(Z){C=Math.max(C,e.measureText(Z).width+F)};return e.save(),e.font=c.string,ui(t.title,W),e.font=l.string,ui(t.beforeBody.concat(t.afterBody),W),F=n.displayColors?a+2+n.boxPadding:0,ui(i,Z=>{ui(Z.before,W),ui(Z.lines,W),ui(Z.after,W)}),F=0,e.font=d.string,ui(t.footer,W),e.restore(),C+=y.width,{width:C,height:w}}function xse(t,n){let{y:e,height:i}=n;return et.height-i/2?"bottom":"center"}function Cse(t,n,e,i){let{x:r,width:o}=i,a=e.caretSize+e.caretPadding;if(t==="left"&&r+o+a>n.width||t==="right"&&r-o-a<0)return!0}function wse(t,n,e,i){let{x:r,width:o}=e,{width:a,chartArea:{left:s,right:l}}=t,c="center";return i==="center"?c=r<=(s+l)/2?"left":"right":r<=o/2?c="left":r>=a-o/2&&(c="right"),Cse(c,t,n,e)&&(c="center"),c}function $4(t,n,e){let i=e.yAlign||n.yAlign||xse(t,e);return{xAlign:e.xAlign||n.xAlign||wse(t,n,e,i),yAlign:i}}function Dse(t,n){let{x:e,width:i}=t;return n==="right"?e-=i:n==="center"&&(e-=i/2),e}function Mse(t,n,e){let{y:i,height:r}=t;return n==="top"?i+=e:n==="bottom"?i-=r+e:i-=r/2,i}function W4(t,n,e,i){let{caretSize:r,caretPadding:o,cornerRadius:a}=t,{xAlign:s,yAlign:l}=e,c=r+o,{topLeft:d,topRight:p,bottomLeft:_,bottomRight:b}=qc(a),y=Dse(n,s),w=Mse(n,l,c);return l==="center"?s==="left"?y+=c:s==="right"&&(y-=c):s==="left"?y-=Math.max(d,_)+r:s==="right"&&(y+=Math.max(p,b)+r),{x:On(y,0,i.width-n.width),y:On(w,0,i.height-n.height)}}function cC(t,n,e){let i=gr(e.padding);return n==="center"?t.x+t.width/2:n==="right"?t.x+t.width-i.right:t.x+i.left}function G4(t){return Ys([],Ll(t))}function Ese(t,n,e){return Fl(t,{tooltip:n,tooltipItems:e,type:"tooltip"})}function q4(t,n){let e=n&&n.dataset&&n.dataset.tooltip&&n.dataset.tooltip.callbacks;return e?t.override(e):t}var DH={beforeTitle:Gs,title(t){if(t.length>0){let n=t[0],e=n.chart.data.labels,i=e?e.length:0;if(this&&this.options&&this.options.mode==="dataset")return n.dataset.label||"";if(n.label)return n.label;if(i>0&&n.dataIndex"u"?DH[n].call(e,i):r}var Y4=(()=>{class t extends ns{static positioners=e_;constructor(e){super(),this.opacity=0,this._active=[],this._eventPosition=void 0,this._size=void 0,this._cachedAnimations=void 0,this._tooltipItems=[],this.$animations=void 0,this.$context=void 0,this.chart=e.chart,this.options=e.options,this.dataPoints=void 0,this.title=void 0,this.beforeBody=void 0,this.body=void 0,this.afterBody=void 0,this.footer=void 0,this.xAlign=void 0,this.yAlign=void 0,this.x=void 0,this.y=void 0,this.height=void 0,this.width=void 0,this.caretX=void 0,this.caretY=void 0,this.labelColors=void 0,this.labelPointStyles=void 0,this.labelTextColors=void 0}initialize(e){this.options=e,this._cachedAnimations=void 0,this.$context=void 0}_resolveAnimations(){let e=this._cachedAnimations;if(e)return e;let i=this.chart,r=this.options.setContext(this.getContext()),o=r.enabled&&i.options.animation&&r.animations,a=new hC(this.chart,o);return o._cacheable&&(this._cachedAnimations=Object.freeze(a)),a}getContext(){return this.$context||(this.$context=Ese(this.chart.getContext(),this,this._tooltipItems))}getTitle(e,i){let{callbacks:r}=i,o=fo(r,"beforeTitle",this,e),a=fo(r,"title",this,e),s=fo(r,"afterTitle",this,e),l=[];return l=Ys(l,Ll(o)),l=Ys(l,Ll(a)),l=Ys(l,Ll(s)),l}getBeforeBody(e,i){return G4(fo(i.callbacks,"beforeBody",this,e))}getBody(e,i){let{callbacks:r}=i,o=[];return ui(e,a=>{let s={before:[],lines:[],after:[]},l=q4(r,a);Ys(s.before,Ll(fo(l,"beforeLabel",this,a))),Ys(s.lines,fo(l,"label",this,a)),Ys(s.after,Ll(fo(l,"afterLabel",this,a))),o.push(s)}),o}getAfterBody(e,i){return G4(fo(i.callbacks,"afterBody",this,e))}getFooter(e,i){let{callbacks:r}=i,o=fo(r,"beforeFooter",this,e),a=fo(r,"footer",this,e),s=fo(r,"afterFooter",this,e),l=[];return l=Ys(l,Ll(o)),l=Ys(l,Ll(a)),l=Ys(l,Ll(s)),l}_createItems(e){let i=this._active,r=this.chart.data,o=[],a=[],s=[],l=[],c,d;for(c=0,d=i.length;ce.filter(p,_,b,r))),e.itemSort&&(l=l.sort((p,_)=>e.itemSort(p,_,r))),ui(l,p=>{let _=q4(e.callbacks,p);o.push(fo(_,"labelColor",this,p)),a.push(fo(_,"labelPointStyle",this,p)),s.push(fo(_,"labelTextColor",this,p))}),this.labelColors=o,this.labelPointStyles=a,this.labelTextColors=s,this.dataPoints=l,l}update(e,i){let r=this.options.setContext(this.getContext()),o=this._active,a,s=[];if(!o.length)this.opacity!==0&&(a={opacity:0});else{let l=e_[r.position].call(this,o,this._eventPosition);s=this._createItems(r),this.title=this.getTitle(s,r),this.beforeBody=this.getBeforeBody(s,r),this.body=this.getBody(s,r),this.afterBody=this.getAfterBody(s,r),this.footer=this.getFooter(s,r);let c=this._size=U4(this,r),d=Object.assign({},l,c),p=$4(this.chart,r,d),_=W4(r,d,p,this.chart);this.xAlign=p.xAlign,this.yAlign=p.yAlign,a={opacity:1,x:_.x,y:_.y,width:c.width,height:c.height,caretX:l.x,caretY:l.y}}this._tooltipItems=s,this.$context=void 0,a&&this._resolveAnimations().update(this,a),e&&r.external&&r.external.call(this,{chart:this.chart,tooltip:this,replay:i})}drawCaret(e,i,r,o){let a=this.getCaretPosition(e,r,o);i.lineTo(a.x1,a.y1),i.lineTo(a.x2,a.y2),i.lineTo(a.x3,a.y3)}getCaretPosition(e,i,r){let{xAlign:o,yAlign:a}=this,{caretSize:s,cornerRadius:l}=r,{topLeft:c,topRight:d,bottomLeft:p,bottomRight:_}=qc(l),{x:b,y}=e,{width:w,height:C}=i,D,F,W,Z,K,oe;return a==="center"?(K=y+C/2,o==="left"?(D=b,F=D-s,Z=K+s,oe=K-s):(D=b+w,F=D+s,Z=K-s,oe=K+s),W=D):(o==="left"?F=b+Math.max(c,p)+s:o==="right"?F=b+w-Math.max(d,_)-s:F=this.caretX,a==="top"?(Z=y,K=Z-s,D=F-s,W=F+s):(Z=y+C,K=Z+s,D=F+s,W=F-s),oe=Z),{x1:D,x2:F,x3:W,y1:Z,y2:K,y3:oe}}drawTitle(e,i,r){let o=this.title,a=o.length,s,l,c;if(a){let d=ku(r.rtl,this.x,this.width);for(e.x=cC(this,r.titleAlign,r),i.textAlign=d.textAlign(r.titleAlign),i.textBaseline="middle",s=vn(r.titleFont),l=r.titleSpacing,i.fillStyle=r.titleColor,i.font=s.string,c=0;cW!==0)?(e.beginPath(),e.fillStyle=a.multiKeyBackground,Wh(e,{x:C,y:w,w:d,h:c,radius:F}),e.fill(),e.stroke(),e.fillStyle=s.backgroundColor,e.beginPath(),Wh(e,{x:D,y:w+1,w:d-2,h:c-2,radius:F}),e.fill()):(e.fillStyle=a.multiKeyBackground,e.fillRect(C,w,d,c),e.strokeRect(C,w,d,c),e.fillStyle=s.backgroundColor,e.fillRect(D,w+1,d-2,c-2))}e.fillStyle=this.labelTextColors[r]}drawBody(e,i,r){let{body:o}=this,{bodySpacing:a,bodyAlign:s,displayColors:l,boxHeight:c,boxWidth:d,boxPadding:p}=r,_=vn(r.bodyFont),b=_.lineHeight,y=0,w=ku(r.rtl,this.x,this.width),C=function(Be){i.fillText(Be,w.x(e.x+y),e.y+b/2),e.y+=b+a},D=w.textAlign(s),F,W,Z,K,oe,Se,ve;for(i.textAlign=s,i.textBaseline="middle",i.font=_.string,e.x=cC(this,D,r),i.fillStyle=r.bodyColor,ui(this.beforeBody,C),y=l&&D!=="right"?s==="center"?d/2+p:d+2+p:0,K=0,Se=o.length;K0&&i.stroke()}_updateAnimationTarget(e){let i=this.chart,r=this.$animations,o=r&&r.x,a=r&&r.y;if(o||a){let s=e_[e.position].call(this,this._active,this._eventPosition);if(!s)return;let l=this._size=U4(this,e),c=Object.assign({},s,this._size),d=$4(i,e,c),p=W4(e,c,d,i);(o._to!==p.x||a._to!==p.y)&&(this.xAlign=d.xAlign,this.yAlign=d.yAlign,this.width=l.width,this.height=l.height,this.caretX=s.x,this.caretY=s.y,this._resolveAnimations().update(this,p))}}_willRender(){return!!this.opacity}draw(e){let i=this.options.setContext(this.getContext()),r=this.opacity;if(!r)return;this._updateAnimationTarget(i);let o={width:this.width,height:this.height},a={x:this.x,y:this.y};r=Math.abs(r)<.001?0:r;let s=gr(i.padding),l=this.title.length||this.beforeBody.length||this.body.length||this.afterBody.length||this.footer.length;i.enabled&&l&&(e.save(),e.globalAlpha=r,this.drawBackground(a,e,o,i),DT(e,i.textDirection),a.y+=s.top,this.drawTitle(a,e,i),this.drawBody(a,e,i),this.drawFooter(a,e,i),MT(e,i.textDirection),e.restore())}getActiveElements(){return this._active||[]}setActiveElements(e,i){let r=this._active,o=e.map(({datasetIndex:l,index:c})=>{let d=this.chart.getDatasetMeta(l);if(!d)throw new Error("Cannot find a dataset at index "+l);return{datasetIndex:l,element:d.data[c],index:c}}),a=!$g(r,o),s=this._positionChanged(o,i);(a||s)&&(this._active=o,this._eventPosition=i,this._ignoreReplayEvents=!0,this.update(!0))}handleEvent(e,i,r=!0){if(i&&this._ignoreReplayEvents)return!1;this._ignoreReplayEvents=!1;let o=this.options,a=this._active||[],s=this._getActiveElements(e,a,i,r),l=this._positionChanged(s,e),c=i||!$g(s,a)||l;return c&&(this._active=s,(o.enabled||o.external)&&(this._eventPosition={x:e.x,y:e.y},this.update(!0,i))),c}_getActiveElements(e,i,r,o){let a=this.options;if(e.type==="mouseout")return[];if(!o)return i.filter(l=>this.chart.data.datasets[l.datasetIndex]&&this.chart.getDatasetMeta(l.datasetIndex).controller.getParsed(l.index)!==void 0);let s=this.chart.getElementsAtEventForMode(e,a.mode,a,r);return a.reverse&&s.reverse(),s}_positionChanged(e,i){let{caretX:r,caretY:o,options:a}=this,s=e_[a.position].call(this,e,i);return s!==!1&&(r!==s.x||o!==s.y)}}return t})(),Sse={id:"tooltip",_element:Y4,positioners:e_,afterInit(t,n,e){e&&(t.tooltip=new Y4({chart:t,options:e}))},beforeUpdate(t,n,e){t.tooltip&&t.tooltip.initialize(e)},reset(t,n,e){t.tooltip&&t.tooltip.initialize(e)},afterDraw(t){let n=t.tooltip;if(n&&n._willRender()){let e={tooltip:n};if(t.notifyPlugins("beforeTooltipDraw",Me(I({},e),{cancelable:!0}))===!1)return;n.draw(t.ctx),t.notifyPlugins("afterTooltipDraw",e)}},afterEvent(t,n){if(t.tooltip){let e=n.replay;t.tooltip.handleEvent(n.event,e,n.inChartArea)&&(n.changed=!0)}},defaults:{enabled:!0,external:null,position:"average",backgroundColor:"rgba(0,0,0,0.8)",titleColor:"#fff",titleFont:{weight:"bold"},titleSpacing:2,titleMarginBottom:6,titleAlign:"left",bodyColor:"#fff",bodySpacing:2,bodyFont:{},bodyAlign:"left",footerColor:"#fff",footerSpacing:2,footerMarginTop:6,footerFont:{weight:"bold"},footerAlign:"left",padding:6,caretPadding:2,caretSize:5,cornerRadius:6,boxHeight:(t,n)=>n.bodyFont.size,boxWidth:(t,n)=>n.bodyFont.size,multiKeyBackground:"#fff",displayColors:!0,boxPadding:0,borderColor:"rgba(0,0,0,0)",borderWidth:0,animation:{duration:400,easing:"easeOutQuart"},animations:{numbers:{type:"number",properties:["x","y","width","height","caretX","caretY"]},opacity:{easing:"linear",duration:200}},callbacks:DH},defaultRoutes:{bodyFont:"font",footerFont:"font",titleFont:"font"},descriptors:{_scriptable:t=>t!=="filter"&&t!=="itemSort"&&t!=="external",_indexable:!1,callbacks:{_scriptable:!1,_indexable:!1},animation:{_fallback:!1},animations:{_fallback:"animation"}},additionalOptionScopes:["interaction"]},kse=Object.freeze({__proto__:null,Colors:jae,Decimation:$ae,Filler:dse,Legend:gse,SubTitle:vse,Title:bse,Tooltip:Sse}),Tse=(t,n,e,i)=>(typeof n=="string"?(e=t.push(n)-1,i.unshift({index:e,label:n})):isNaN(n)&&(e=null),e);function Ise(t,n,e,i){let r=t.indexOf(n);if(r===-1)return Tse(t,n,e,i);let o=t.lastIndexOf(n);return r!==o?e:r}var Ase=(t,n)=>t===null?null:On(Math.round(t),0,n);function Q4(t){let n=this.getLabels();return t>=0&&t{class t extends Au{static id="category";static defaults={ticks:{callback:Q4}};constructor(e){super(e),this._startValue=void 0,this._valueRange=0,this._addedLabels=[]}init(e){let i=this._addedLabels;if(i.length){let r=this.getLabels();for(let{index:o,label:a}of i)r[o]===a&&r.splice(o,1);this._addedLabels=[]}super.init(e)}parse(e,i){if(Nt(e))return null;let r=this.getLabels();return i=isFinite(i)&&r[i]===e?i:Ise(r,e,ut(i,e),this._addedLabels),Ase(i,r.length-1)}determineDataLimits(){let{minDefined:e,maxDefined:i}=this.getUserBounds(),{min:r,max:o}=this.getMinMax(!0);this.options.bounds==="ticks"&&(e||(r=0),i||(o=this.getLabels().length-1)),this.min=r,this.max=o}buildTicks(){let e=this.min,i=this.max,r=this.options.offset,o=[],a=this.getLabels();a=e===0&&i===a.length-1?a:a.slice(e,i+1),this._valueRange=Math.max(a.length-(r?0:1),1),this._startValue=this.min-(r?.5:0);for(let s=e;s<=i;s++)o.push({value:s});return o}getLabelForValue(e){return Q4.call(this,e)}configure(){super.configure(),this.isHorizontal()||(this._reversePixels=!this._reversePixels)}getPixelForValue(e){return typeof e!="number"&&(e=this.parse(e)),e===null?NaN:this.getPixelForDecimal((e-this._startValue)/this._valueRange)}getPixelForTick(e){let i=this.ticks;return e<0||e>i.length-1?null:this.getPixelForValue(i[e].value)}getValueForPixel(e){return Math.round(this._startValue+this.getDecimalForPixel(e)*this._valueRange)}getBasePixel(){return this.bottom}}return t})();function Rse(t,n){let e=[],{bounds:r,step:o,min:a,max:s,precision:l,count:c,maxTicks:d,maxDigits:p,includeBounds:_}=t,b=o||1,y=d-1,{min:w,max:C}=n,D=!Nt(a),F=!Nt(s),W=!Nt(c),Z=(C-w)/(p+1),K=nT((C-w)/y/b)*b,oe,Se,ve,Be;if(K<1e-14&&!D&&!F)return[{value:w},{value:C}];Be=Math.ceil(C/K)-Math.floor(w/K),Be>y&&(K=nT(Be*K/y/b)*b),Nt(l)||(oe=Math.pow(10,l),K=Math.ceil(K*oe)/oe),r==="ticks"?(Se=Math.floor(w/K)*K,ve=Math.ceil(C/K)*K):(Se=w,ve=C),D&&F&&o&&Fj((s-a)/o,K/1e3)?(Be=Math.round(Math.min((s-a)/K,d)),K=(s-a)/Be,Se=a,ve=s):W?(Se=D?a:Se,ve=F?s:ve,Be=c-1,K=(ve-Se)/Be):(Be=(ve-Se)/K,zh(Be,Math.round(Be),K/1e3)?Be=Math.round(Be):Be=Math.ceil(Be));let wt=Math.max(oT(K),oT(Se));oe=Math.pow(10,Nt(l)?wt:l),Se=Math.round(Se*oe)/oe,ve=Math.round(ve*oe)/oe;let Ct=0;for(D&&(_&&Se!==a?(e.push({value:a}),Ses)break;e.push({value:zt})}return F&&_&&ve!==s?e.length&&zh(e[e.length-1].value,s,K4(s,Z,t))?e[e.length-1].value=s:e.push({value:s}):(!F||ve===s)&&e.push({value:ve}),e}function K4(t,n,{horizontal:e,minRotation:i}){let r=ua(i),o=(e?Math.sin(r):Math.cos(r))||.001,a=.75*n*(""+t).length;return Math.min(n/o,a)}var Qh=class extends Au{constructor(n){super(n),this.start=void 0,this.end=void 0,this._startValue=void 0,this._endValue=void 0,this._valueRange=0}parse(n,e){return Nt(n)||(typeof n=="number"||n instanceof Number)&&!isFinite(+n)?null:+n}handleTickRangeOptions(){let{beginAtZero:n}=this.options,{minDefined:e,maxDefined:i}=this.getUserBounds(),{min:r,max:o}=this,a=l=>r=e?r:l,s=l=>o=i?o:l;if(n){let l=is(r),c=is(o);l<0&&c<0?s(0):l>0&&c>0&&a(0)}if(r===o){let l=o===0?1:Math.abs(o*.05);s(o+l),n||a(r-l)}this.min=r,this.max=o}getTickLimit(){let n=this.options.ticks,{maxTicksLimit:e,stepSize:i}=n,r;return i?(r=Math.ceil(this.max/i)-Math.floor(this.min/i)+1,r>1e3&&(console.warn(`scales.${this.id}.ticks.stepSize: ${i} would result generating up to ${r} ticks. Limiting to 1000.`),r=1e3)):(r=this.computeTickLimit(),e=e||11),e&&(r=Math.min(e,r)),r}computeTickLimit(){return Number.POSITIVE_INFINITY}buildTicks(){let n=this.options,e=n.ticks,i=this.getTickLimit();i=Math.max(2,i);let r={maxTicks:i,bounds:n.bounds,min:n.min,max:n.max,precision:e.precision,step:e.stepSize,count:e.count,maxDigits:this._maxDigits(),horizontal:this.isHorizontal(),minRotation:e.minRotation||0,includeBounds:e.includeBounds!==!1},o=this._range||this,a=Rse(r,o);return n.bounds==="ticks"&&rT(a,this,"value"),n.reverse?(a.reverse(),this.start=this.max,this.end=this.min):(this.start=this.min,this.end=this.max),a}configure(){let n=this.ticks,e=this.min,i=this.max;if(super.configure(),this.options.offset&&n.length){let r=(i-e)/Math.max(n.length-1,1)/2;e-=r,i+=r}this._startValue=e,this._endValue=i,this._valueRange=i-e}getLabelForValue(n){return $h(n,this.chart.options.locale,this.options.ticks.format)}},tI=class extends Qh{static id="linear";static defaults={ticks:{callback:Wg.formatters.numeric}};determineDataLimits(){let{min:n,max:e}=this.getMinMax(!0);this.min=Xi(n)?n:0,this.max=Xi(e)?e:1,this.handleTickRangeOptions()}computeTickLimit(){let n=this.isHorizontal(),e=n?this.width:this.height,i=ua(this.options.ticks.minRotation),r=(n?Math.sin(i):Math.cos(i))||.001,o=this._resolveTickFontOptions(0);return Math.ceil(e/Math.min(40,o.lineHeight/r))}getPixelForValue(n){return n===null?NaN:this.getPixelForDecimal((n-this._startValue)/this._valueRange)}getValueForPixel(n){return this._startValue+this.getDecimalForPixel(n)*this._valueRange}},n_=t=>Math.floor(Rl(t)),Iu=(t,n)=>Math.pow(10,n_(t)+n);function Z4(t){return t/Math.pow(10,n_(t))===1}function X4(t,n,e){let i=Math.pow(10,e),r=Math.floor(t/i);return Math.ceil(n/i)-r}function Pse(t,n){let e=n-t,i=n_(e);for(;X4(t,n,i)>10;)i++;for(;X4(t,n,i)<10;)i--;return Math.min(i,n_(t))}function Fse(t,{min:n,max:e}){n=po(t.min,n);let i=[],r=n_(n),o=Pse(n,e),a=o<0?Math.pow(10,Math.abs(o)):1,s=Math.pow(10,o),l=r>o?Math.pow(10,r):0,c=Math.round((n-l)*a)/a,d=Math.floor((n-l)/s/10)*s*10,p=Math.floor((c-d)/Math.pow(10,o)),_=po(t.min,Math.round((l+d+p*Math.pow(10,o))*a)/a);for(;_=10?p=p<15?15:20:p++,p>=20&&(o++,p=2,a=o>=0?1:a),_=Math.round((l+d+p*Math.pow(10,o))*a)/a;let b=po(t.max,_);return i.push({value:b,major:Z4(b),significand:p}),i}var iI=class extends Au{static id="logarithmic";static defaults={ticks:{callback:Wg.formatters.logarithmic,major:{enabled:!0}}};constructor(n){super(n),this.start=void 0,this.end=void 0,this._startValue=void 0,this._valueRange=0}parse(n,e){let i=Qh.prototype.parse.apply(this,[n,e]);if(i===0){this._zero=!0;return}return Xi(i)&&i>0?i:null}determineDataLimits(){let{min:n,max:e}=this.getMinMax(!0);this.min=Xi(n)?Math.max(0,n):null,this.max=Xi(e)?Math.max(0,e):null,this.options.beginAtZero&&(this._zero=!0),this._zero&&this.min!==this._suggestedMin&&!Xi(this._userMin)&&(this.min=n===Iu(this.min,0)?Iu(this.min,-1):Iu(this.min,0)),this.handleTickRangeOptions()}handleTickRangeOptions(){let{minDefined:n,maxDefined:e}=this.getUserBounds(),i=this.min,r=this.max,o=s=>i=n?i:s,a=s=>r=e?r:s;i===r&&(i<=0?(o(1),a(10)):(o(Iu(i,-1)),a(Iu(r,1)))),i<=0&&o(Iu(r,-1)),r<=0&&a(Iu(i,1)),this.min=i,this.max=r}buildTicks(){let n=this.options,e={min:this._userMin,max:this._userMax},i=Fse(e,this);return n.bounds==="ticks"&&rT(i,this,"value"),n.reverse?(i.reverse(),this.start=this.max,this.end=this.min):(this.start=this.min,this.end=this.max),i}getLabelForValue(n){return n===void 0?"0":$h(n,this.chart.options.locale,this.options.ticks.format)}configure(){let n=this.min;super.configure(),this._startValue=Rl(n),this._valueRange=Rl(this.max)-Rl(n)}getPixelForValue(n){return(n===void 0||n===0)&&(n=this.min),n===null||isNaN(n)?NaN:this.getPixelForDecimal(n===this.min?0:(Rl(n)-this._startValue)/this._valueRange)}getValueForPixel(n){let e=this.getDecimalForPixel(n);return Math.pow(10,this._startValue+e*this._valueRange)}};function nI(t){let n=t.ticks;if(n.display&&t.display){let e=gr(n.backdropPadding);return ut(n.font&&n.font.size,Ti.font.size)+e.height}return 0}function Nse(t,n,e){return e=Ri(e)?e:[e],{w:$j(t,n.string,e),h:e.length*n.lineHeight}}function J4(t,n,e,i,r){return t===i||t===r?{start:n-e/2,end:n+e/2}:tr?{start:n-e,end:n}:{start:n,end:n+e}}function Lse(t){let n={l:t.left+t._padding.left,r:t.right-t._padding.right,t:t.top+t._padding.top,b:t.bottom-t._padding.bottom},e=Object.assign({},n),i=[],r=[],o=t._pointLabels.length,a=t.options.pointLabels,s=a.centerPointLabels?Jt/o:0;for(let l=0;ln.r&&(s=(i.end-n.r)/o,t.r=Math.max(t.r,n.r+s)),r.startn.b&&(l=(r.end-n.b)/a,t.b=Math.max(t.b,n.b+l))}function Bse(t,n,e){let i=t.drawingArea,{extra:r,additionalAngle:o,padding:a,size:s}=e,l=t.getPointPosition(n,i+r+a,o),c=Math.round(Qx(pr(l.angle+rn))),d=$se(l.y,s.h,c),p=zse(c),_=Use(l.x,s.w,p);return{visible:!0,x:l.x,y:d,textAlign:p,left:_,top:d,right:_+s.w,bottom:d+s.h}}function jse(t,n){if(!n)return!0;let{left:e,top:i,right:r,bottom:o}=t;return!(Ws({x:e,y:i},n)||Ws({x:e,y:o},n)||Ws({x:r,y:i},n)||Ws({x:r,y:o},n))}function Hse(t,n,e){let i=[],r=t._pointLabels.length,o=t.options,{centerPointLabels:a,display:s}=o.pointLabels,l={extra:nI(o)/2,additionalAngle:a?Jt/r:0},c;for(let d=0;d270||e<90)&&(t-=n),t}function Wse(t,n,e){let{left:i,top:r,right:o,bottom:a}=e,{backdropColor:s}=n;if(!Nt(s)){let l=qc(n.borderRadius),c=gr(n.backdropPadding);t.fillStyle=s;let d=i-c.left,p=r-c.top,_=o-i+c.width,b=a-r+c.height;Object.values(l).some(y=>y!==0)?(t.beginPath(),Wh(t,{x:d,y:p,w:_,h:b,radius:l}),t.fill()):t.fillRect(d,p,_,b)}}function Gse(t,n){let{ctx:e,options:{pointLabels:i}}=t;for(let r=n-1;r>=0;r--){let o=t._pointLabelItems[r];if(!o.visible)continue;let a=i.setContext(t.getPointLabelContext(r));Wse(e,a,o);let s=vn(a.font),{x:l,y:c,textAlign:d}=o;Gc(e,t._pointLabels[r],l,c+s.lineHeight/2,s,{color:a.color,textAlign:d,textBaseline:"middle"})}}function MH(t,n,e,i){let{ctx:r}=t;if(e)r.arc(t.xCenter,t.yCenter,n,0,Pi);else{let o=t.getPointPosition(0,n);r.moveTo(o.x,o.y);for(let a=1;a{let r=ki(this.options.pointLabels.callback,[e,i],this);return r||r===0?r:""}).filter((e,i)=>this.chart.getDataVisibility(i))}fit(){let n=this.options;n.display&&n.pointLabels.display?Lse(this):this.setCenterPoint(0,0,0,0)}setCenterPoint(n,e,i,r){this.xCenter+=Math.floor((n-e)/2),this.yCenter+=Math.floor((i-r)/2),this.drawingArea-=Math.min(this.drawingArea/2,Math.max(n,e,i,r))}getIndexAngle(n){let e=Pi/(this._pointLabels.length||1),i=this.options.startAngle||0;return pr(n*e+ua(i))}getDistanceFromCenterForValue(n){if(Nt(n))return NaN;let e=this.drawingArea/(this.max-this.min);return this.options.reverse?(this.max-n)*e:(n-this.min)*e}getValueForDistanceFromCenter(n){if(Nt(n))return NaN;let e=n/(this.drawingArea/(this.max-this.min));return this.options.reverse?this.max-e:this.min+e}getPointLabelContext(n){let e=this._pointLabels||[];if(n>=0&&n{if(p!==0||p===0&&this.min<0){l=this.getDistanceFromCenterForValue(d.value);let _=this.getContext(p),b=r.setContext(_),y=o.setContext(_);qse(this,b,l,a,y)}}),i.display){for(n.save(),s=a-1;s>=0;s--){let d=i.setContext(this.getPointLabelContext(s)),{color:p,lineWidth:_}=d;!_||!p||(n.lineWidth=_,n.strokeStyle=p,n.setLineDash(d.borderDash),n.lineDashOffset=d.borderDashOffset,l=this.getDistanceFromCenterForValue(e.reverse?this.min:this.max),c=this.getPointPosition(s,l),n.beginPath(),n.moveTo(this.xCenter,this.yCenter),n.lineTo(c.x,c.y),n.stroke())}n.restore()}}drawBorder(){}drawLabels(){let n=this.ctx,e=this.options,i=e.ticks;if(!i.display)return;let r=this.getIndexAngle(0),o,a;n.save(),n.translate(this.xCenter,this.yCenter),n.rotate(r),n.textAlign="center",n.textBaseline="middle",this.ticks.forEach((s,l)=>{if(l===0&&this.min>=0&&!e.reverse)return;let c=i.setContext(this.getContext(l)),d=vn(c.font);if(o=this.getDistanceFromCenterForValue(this.ticks[l].value),c.showLabelBackdrop){n.font=d.string,a=n.measureText(s.label).width,n.fillStyle=c.backdropColor;let p=gr(c.backdropPadding);n.fillRect(-a/2-p.left,-o-d.size/2-p.top,a+p.width,d.size+p.height)}Gc(n,s.label,0,-o,d,{color:c.color,strokeColor:c.textStrokeColor,strokeWidth:c.textStrokeWidth})}),n.restore()}drawTitle(){}},CC={millisecond:{common:!0,size:1,steps:1e3},second:{common:!0,size:1e3,steps:60},minute:{common:!0,size:6e4,steps:60},hour:{common:!0,size:36e5,steps:24},day:{common:!0,size:864e5,steps:30},week:{common:!1,size:6048e5,steps:4},month:{common:!0,size:2628e6,steps:12},quarter:{common:!1,size:7884e6,steps:4},year:{common:!0,size:3154e7}},go=Object.keys(CC);function eH(t,n){return t-n}function tH(t,n){if(Nt(n))return null;let e=t._adapter,{parser:i,round:r,isoWeekday:o}=t._parseOpts,a=n;return typeof i=="function"&&(a=i(a)),Xi(a)||(a=typeof i=="string"?e.parse(a,i):e.parse(a)),a===null?null:(r&&(a=r==="week"&&(Su(o)||o===!0)?e.startOf(a,"isoWeek",o):e.startOf(a,r)),+a)}function iH(t,n,e,i){let r=go.length;for(let o=go.indexOf(t);o=go.indexOf(e);o--){let a=go[o];if(CC[a].common&&t._adapter.diff(r,i,a)>=n-1)return a}return go[e?go.indexOf(e):0]}function Kse(t){for(let n=go.indexOf(t)+1,e=go.length;n=n?e[i]:e[r];t[o]=!0}}function Zse(t,n,e,i){let r=t._adapter,o=+r.startOf(n[0].value,i),a=n[n.length-1].value,s,l;for(s=o;s<=a;s=+r.add(s,1,i))l=e[s],l>=0&&(n[l].major=!0);return n}function rH(t,n,e){let i=[],r={},o=n.length,a,s;for(a=0;a{class t extends Au{static id="time";static defaults={bounds:"data",adapters:{},time:{parser:!1,unit:!1,round:!1,isoWeekday:!1,minUnit:"millisecond",displayFormats:{}},ticks:{source:"auto",callback:!1,major:{enabled:!1}}};constructor(e){super(e),this._cache={data:[],labels:[],all:[]},this._unit="day",this._majorUnit=void 0,this._offsets={},this._normalized=!1,this._parseOpts=void 0}init(e,i={}){let r=e.time||(e.time={}),o=this._adapter=new loe._date(e.adapters.date);o.init(i),jh(r.displayFormats,o.formats()),this._parseOpts={parser:r.parser,round:r.round,isoWeekday:r.isoWeekday},super.init(e),this._normalized=i.normalized}parse(e,i){return e===void 0?null:tH(this,e)}beforeLayout(){super.beforeLayout(),this._cache={data:[],labels:[],all:[]}}determineDataLimits(){let e=this.options,i=this._adapter,r=e.time.unit||"day",{min:o,max:a,minDefined:s,maxDefined:l}=this.getUserBounds();function c(d){!s&&!isNaN(d.min)&&(o=Math.min(o,d.min)),!l&&!isNaN(d.max)&&(a=Math.max(a,d.max))}(!s||!l)&&(c(this._getLabelBounds()),(e.bounds!=="ticks"||e.ticks.source!=="labels")&&c(this.getMinMax(!1))),o=Xi(o)&&!isNaN(o)?o:+i.startOf(Date.now(),r),a=Xi(a)&&!isNaN(a)?a:+i.endOf(Date.now(),r)+1,this.min=Math.min(o,a-1),this.max=Math.max(o+1,a)}_getLabelBounds(){let e=this.getLabelTimestamps(),i=Number.POSITIVE_INFINITY,r=Number.NEGATIVE_INFINITY;return e.length&&(i=e[0],r=e[e.length-1]),{min:i,max:r}}buildTicks(){let e=this.options,i=e.time,r=e.ticks,o=r.source==="labels"?this.getLabelTimestamps():this._generate();e.bounds==="ticks"&&o.length&&(this.min=this._userMin||o[0],this.max=this._userMax||o[o.length-1]);let a=this.min,s=this.max,l=Vj(o,a,s);return this._unit=i.unit||(r.autoSkip?iH(i.minUnit,this.min,this.max,this._getLabelCapacity(a)):Qse(this,l.length,i.minUnit,this.min,this.max)),this._majorUnit=!r.major.enabled||this._unit==="year"?void 0:Kse(this._unit),this.initOffsets(o),e.reverse&&l.reverse(),rH(this,l,this._majorUnit)}afterAutoSkip(){this.options.offsetAfterAutoskip&&this.initOffsets(this.ticks.map(e=>+e.value))}initOffsets(e=[]){let i=0,r=0,o,a;this.options.offset&&e.length&&(o=this.getDecimalForValue(e[0]),e.length===1?i=1-o:i=(this.getDecimalForValue(e[1])-o)/2,a=this.getDecimalForValue(e[e.length-1]),e.length===1?r=a:r=(a-this.getDecimalForValue(e[e.length-2]))/2);let s=e.length<3?.5:.25;i=On(i,0,s),r=On(r,0,s),this._offsets={start:i,end:r,factor:1/(i+1+r)}}_generate(){let e=this._adapter,i=this.min,r=this.max,o=this.options,a=o.time,s=a.unit||iH(a.minUnit,i,r,this._getLabelCapacity(i)),l=ut(o.ticks.stepSize,1),c=s==="week"?a.isoWeekday:!1,d=Su(c)||c===!0,p={},_=i,b,y;if(d&&(_=+e.startOf(_,"isoWeek",c)),_=+e.startOf(_,d?"day":s),e.diff(r,i,s)>1e5*l)throw new Error(i+" and "+r+" are too far apart with stepSize of "+l+" "+s);let w=o.ticks.source==="data"&&this.getDataTimestamps();for(b=_,y=0;b+C)}getLabelForValue(e){let i=this._adapter,r=this.options.time;return r.tooltipFormat?i.format(e,r.tooltipFormat):i.format(e,r.displayFormats.datetime)}format(e,i){let o=this.options.time.displayFormats,a=this._unit,s=i||o[a];return this._adapter.format(e,s)}_tickFormatFunction(e,i,r,o){let a=this.options,s=a.ticks.callback;if(s)return ki(s,[e,i,r],this);let l=a.time.displayFormats,c=this._unit,d=this._majorUnit,p=c&&l[c],_=d&&l[d],b=r[i],y=d&&_&&b&&b.major;return this._adapter.format(e,o||(y?_:p))}generateTickLabels(e){let i,r,o;for(i=0,r=e.length;i0?l:1}getDataTimestamps(){let e=this._cache.data||[],i,r;if(e.length)return e;let o=this.getMatchingVisibleMetas();if(this._normalized&&o.length)return this._cache.data=o[0].controller.getAllParsedValues(this);for(i=0,r=o.length;i=t[i].pos&&n<=t[r].pos&&({lo:i,hi:r}=$s(t,"pos",n)),{pos:o,time:s}=t[i],{pos:a,time:l}=t[r]):(n>=t[i].time&&n<=t[r].time&&({lo:i,hi:r}=$s(t,"time",n)),{time:o,pos:s}=t[i],{time:a,pos:l}=t[r]);let c=a-o;return c?s+(l-s)*(n-o)/c:s}var aI=class extends oI{static id="timeseries";static defaults=oI.defaults;constructor(n){super(n),this._table=[],this._minPos=void 0,this._tableRange=void 0}initOffsets(){let n=this._getTimestampsForTable(),e=this._table=this.buildLookupTable(n);this._minPos=dC(e,this.min),this._tableRange=dC(e,this.max)-this._minPos,super.initOffsets(n)}buildLookupTable(n){let{min:e,max:i}=this,r=[],o=[],a,s,l,c,d;for(a=0,s=n.length;a=e&&c<=i&&r.push(c);if(r.length<2)return[{time:e,pos:0},{time:i,pos:1}];for(a=0,s=r.length;ar-o)}_getTimestampsForTable(){let n=this._cache.all||[];if(n.length)return n;let e=this.getDataTimestamps(),i=this.getLabelTimestamps();return e.length&&i.length?n=this.normalize(e.concat(i)):n=e.length?e:i,n=this._cache.all=n,n}getDecimalForValue(n){return(dC(this._table,n)-this._minPos)/this._tableRange}getValueForPixel(n){let e=this._offsets,i=this.getDecimalForPixel(n)/e.factor-e.end;return dC(this._table,i*this._tableRange+this._minPos,!0)}},Xse=Object.freeze({__proto__:null,CategoryScale:Ose,LinearScale:tI,LogarithmicScale:iI,RadialLinearScale:rI,TimeScale:oI,TimeSeriesScale:aI}),EH=[soe,Rae,kse,Xse];var Jse=typeof global=="object"&&global&&global.Object===Object&&global,wC=Jse;var ele=typeof self=="object"&&self&&self.Object===Object&&self,tle=wC||ele||Function("return this")(),ma=tle;var ile=ma.Symbol,Kh=ile;var SH=Object.prototype,nle=SH.hasOwnProperty,rle=SH.toString,o_=Kh?Kh.toStringTag:void 0;function ole(t){var n=nle.call(t,o_),e=t[o_];try{t[o_]=void 0;var i=!0}catch{}var r=rle.call(t);return i&&(n?t[o_]=e:delete t[o_]),r}var kH=ole;var ale=Object.prototype,sle=ale.toString;function lle(t){return sle.call(t)}var TH=lle;var cle="[object Null]",dle="[object Undefined]",IH=Kh?Kh.toStringTag:void 0;function ule(t){return t==null?t===void 0?dle:cle:IH&&IH in Object(t)?kH(t):TH(t)}var Zc=ule;function mle(t){return t!=null&&typeof t=="object"}var Ks=mle;var hle=Array.isArray,a_=hle;function ple(t){var n=typeof t;return t!=null&&(n=="object"||n=="function")}var _o=ple;function fle(t){return t}var DC=fle;var gle="[object AsyncFunction]",_le="[object Function]",ble="[object GeneratorFunction]",vle="[object Proxy]";function yle(t){if(!_o(t))return!1;var n=Zc(t);return n==_le||n==ble||n==gle||n==vle}var Zh=yle;var xle=ma["__core-js_shared__"],MC=xle;var AH=(function(){var t=/[^.]+$/.exec(MC&&MC.keys&&MC.keys.IE_PROTO||"");return t?"Symbol(src)_1."+t:""})();function Cle(t){return!!AH&&AH in t}var OH=Cle;var wle=Function.prototype,Dle=wle.toString;function Mle(t){if(t!=null){try{return Dle.call(t)}catch{}try{return t+""}catch{}}return""}var RH=Mle;var Ele=/[\\^$.*+?()[\]{}|]/g,Sle=/^\[object .+?Constructor\]$/,kle=Function.prototype,Tle=Object.prototype,Ile=kle.toString,Ale=Tle.hasOwnProperty,Ole=RegExp("^"+Ile.call(Ale).replace(Ele,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function Rle(t){if(!_o(t)||OH(t))return!1;var n=Zh(t)?Ole:Sle;return n.test(RH(t))}var PH=Rle;function Ple(t,n){return t?.[n]}var FH=Ple;function Fle(t,n){var e=FH(t,n);return PH(e)?e:void 0}var Xh=Fle;var NH=Object.create,Nle=(function(){function t(){}return function(n){if(!_o(n))return{};if(NH)return NH(n);t.prototype=n;var e=new t;return t.prototype=void 0,e}})(),LH=Nle;function Lle(t,n,e){switch(e.length){case 0:return t.call(n);case 1:return t.call(n,e[0]);case 2:return t.call(n,e[0],e[1]);case 3:return t.call(n,e[0],e[1],e[2])}return t.apply(n,e)}var VH=Lle;function Vle(t,n){var e=-1,i=t.length;for(n||(n=Array(i));++e0){if(++n>=Ble)return arguments[0]}else n=0;return t.apply(void 0,arguments)}}var jH=zle;function Ule(t){return function(){return t}}var HH=Ule;var $le=(function(){try{var t=Xh(Object,"defineProperty");return t({},"",{}),t}catch{}})(),Jh=$le;var Wle=Jh?function(t,n){return Jh(t,"toString",{configurable:!0,enumerable:!1,value:HH(n),writable:!0})}:DC,zH=Wle;var Gle=jH(zH),UH=Gle;var qle=9007199254740991,Yle=/^(?:0|[1-9]\d*)$/;function Qle(t,n){var e=typeof t;return n=n??qle,!!n&&(e=="number"||e!="symbol"&&Yle.test(t))&&t>-1&&t%1==0&&t-1&&t%1==0&&t<=rce}var SC=oce;function ace(t){return t!=null&&SC(t.length)&&!Zh(t)}var tp=ace;function sce(t,n,e){if(!_o(e))return!1;var i=typeof n;return(i=="number"?tp(e)&&EC(n,e.length):i=="string"&&n in e)?Xc(e[n],t):!1}var QH=sce;function lce(t){return YH(function(n,e){var i=-1,r=e.length,o=r>1?e[r-1]:void 0,a=r>2?e[2]:void 0;for(o=t.length>3&&typeof o=="function"?(r--,o):void 0,a&&QH(e[0],e[1],a)&&(o=r<3?void 0:o,r=1),n=Object(n);++i-1}var v5=wde;function Dde(t,n){var e=this.__data__,i=Jc(e,t);return i<0?(++this.size,e.push([t,n])):e[i][1]=n,this}var y5=Dde;function np(t){var n=-1,e=t==null?0:t.length;for(this.clear();++n{let n=class n{constructor(){this.colorschemesOptions=new rt(void 0)}setColorschemesOptions(i){this.pColorschemesOptions=i,this.colorschemesOptions.next(i)}getColorschemesOptions(){return this.pColorschemesOptions}};n.\u0275fac=function(r){return new(r||n)},n.\u0275prov=R({token:n,factory:n.\u0275fac,providedIn:"root"});let t=n;return t})(),ez=(()=>{let n=class n{constructor(i,r,o,a){this.zone=r,this.themeService=o,this.type="bar",this.plugins=[],this.chartClick=new U,this.chartHover=new U,this.subs=[],this.themeOverrides={},a?.registerables&&vC.register(...a.registerables),a?.defaults&&Ti.set(a.defaults),this.ctx=i.nativeElement.getContext("2d"),this.subs.push(this.themeService.colorschemesOptions.pipe(Nn()).subscribe(s=>this.themeChanged(s)))}ngOnChanges(i){let r=["type"],o=Object.getOwnPropertyNames(i);if(o.some(a=>r.includes(a))||o.every(a=>i[a].isFirstChange()))this.render();else{let a=this.getChartConfiguration();this.chart&&(Object.assign(this.chart.config.data,a.data),this.chart.config.plugins&&Object.assign(this.chart.config.plugins,a.plugins),this.chart.config.options&&Object.assign(this.chart.config.options,a.options)),this.update()}}ngOnDestroy(){this.chart&&(this.chart.destroy(),this.chart=void 0),this.subs.forEach(i=>i.unsubscribe())}render(){return this.chart&&this.chart.destroy(),this.zone.runOutsideAngular(()=>this.chart=new vC(this.ctx,this.getChartConfiguration()))}update(i){this.chart&&this.zone.runOutsideAngular(()=>this.chart?.update(i))}hideDataset(i,r){this.chart&&(this.chart.getDatasetMeta(i).hidden=r,this.update())}isDatasetHidden(i){return this.chart?.getDatasetMeta(i)?.hidden}toBase64Image(){return this.chart?.toBase64Image()}themeChanged(i){this.themeOverrides=i,this.chart&&(this.chart.config.options&&Object.assign(this.chart.config.options,this.getChartOptions()),this.update())}getChartOptions(){return PC({onHover:(i,r)=>{!this.chartHover.observed&&!this.chartHover.observers?.length||this.zone.run(()=>this.chartHover.emit({event:i,active:r}))},onClick:(i,r)=>{!this.chartClick.observed&&!this.chartClick.observers?.length||this.zone.run(()=>this.chartClick.emit({event:i,active:r}))}},this.themeOverrides,this.options,{plugins:{legend:{display:this.legend}}})}getChartConfiguration(){return{type:this.type,data:this.getChartData(),options:this.getChartOptions(),plugins:this.plugins}}getChartData(){return this.data?this.data:{labels:this.labels||[],datasets:this.datasets||[]}}};n.\u0275fac=function(r){return new(r||n)(be(Y),be(ae),be(aue),be(Z5,8))},n.\u0275dir=P({type:n,selectors:[["canvas","baseChart",""]],inputs:{type:"type",legend:"legend",data:"data",options:"options",plugins:"plugins",labels:"labels",datasets:"datasets"},outputs:{chartClick:"chartClick",chartHover:"chartHover"},exportAs:["base-chart"],features:[Oe]});let t=n;return t})();var Ji={production:!0,baseUrl:"",useHash:!1,apiUrl:"https://app-talent-api-dev.azurewebsites.net/api/v1",identityServerUrl:"https://app-talent-ids-dev.azurewebsites.net",clientId:"TalentManagement",scope:"openid profile email roles app.api.talentmanagement.read app.api.talentmanagement.write",allowAnonymousAccess:!0,aiEnabled:!0};var hI=document.baseURI.endsWith("/")?document.baseURI.slice(0,-1):document.baseURI,tz={issuer:Ji.identityServerUrl,redirectUri:hI+"/callback",postLogoutRedirectUri:hI,clientId:Ji.clientId,scope:Ji.scope,responseType:"code",showDebugInformation:!Ji.production,useSilentRefresh:!0,silentRefreshRedirectUri:hI+"/silent-refresh.html",silentRefreshTimeout:5e3,timeoutFactor:.75,sessionChecksEnabled:!0,clearHashAfterLogin:!0,strictDiscoveryDocumentValidation:!1,skipIssuerCheck:!Ji.production,requireHttps:Ji.production,requestAccessToken:!0,dummyClientSecret:void 0,customQueryParams:{}};var Ht=(()=>{let n=class n{constructor(){this.oauthService=u(Km),this.router=u(Ae),this.isAuthenticatedSubject=new rt(!1),this.isAuthenticated$=this.isAuthenticatedSubject.asObservable(),this.userInfoSubject=new rt(null),this.userInfo$=this.userInfoSubject.asObservable(),this.permissionsChangeSubject=new z,this.permissionsChange$=this.permissionsChangeSubject.asObservable(),this.configureOAuth()}configureOAuth(){this.oauthService.configure(tz),this.oauthService.events.pipe(ce(i=>i.type==="token_received")).subscribe(()=>{this.handleSuccessfulLogin()}),this.oauthService.events.pipe(ce(i=>i.type==="token_error"||i.type==="token_refresh_error")).subscribe(()=>{console.error("Token error occurred")}),this.oauthService.setupAutomaticSilentRefresh()}initAuth(){return yn(this,null,function*(){try{return yield this.oauthService.loadDiscoveryDocument(),yield this.oauthService.tryLogin(),this.oauthService.hasValidAccessToken()?(yield this.handleSuccessfulLogin(),!0):!1}catch(i){return console.error("Error during authentication initialization:",i),!1}})}login(i){i?this.oauthService.initCodeFlow(i):this.oauthService.initCodeFlow()}logout(){this.oauthService.logOut(),this.isAuthenticatedSubject.next(!1),this.userInfoSubject.next(null),this.permissionsChangeSubject.next()}handleSuccessfulLogin(){return yn(this,null,function*(){try{let i=this.oauthService.getIdentityClaims();this.userInfoSubject.next(i),this.isAuthenticatedSubject.next(!0),this.permissionsChangeSubject.next()}catch(i){console.error("Error loading user info:",i)}})}isAuthenticated(){return this.oauthService.hasValidAccessToken()}getAccessToken(){return this.oauthService.getAccessToken()}getUserInfo(){return this.userInfoSubject.value}getUserRoles(){let i=this.oauthService.getIdentityClaims();if(!i)return[];let r=i.role;return Array.isArray(r)?r:typeof r=="string"?[r]:[]}hasRole(i){return this.getUserRoles().includes(i)}isEmployee(){return this.hasRole("Employee")}isManager(){return this.hasRole("Manager")}isHRAdmin(){return this.hasRole("HRAdmin")}hasAnyRole(i){let r=this.getUserRoles();return i.some(o=>r.includes(o))}getUserDisplayName(){let i=this.getUserInfo();return i?.name||i?.email||"User"}};n.\u0275fac=function(r){return new(r||n)},n.\u0275prov=R({token:n,factory:n.\u0275fac,providedIn:"root"});let t=n;return t})();var pI=(t,n)=>{let e=u(Ht);return Ji.allowAnonymousAccess||e.isAuthenticated()?!0:(e.login(n?.url),!1)};var u_=t=>{let n=u(Ht),e=u(Ae);return n.isAuthenticated()?n.isManager()||n.isHRAdmin()?!0:(e.navigate(["/403"]),!1):(n.login(),!1)},m_=t=>{let n=u(Ht),e=u(Ae);return n.isAuthenticated()?n.isHRAdmin()?!0:(e.navigate(["/403"]),!1):(n.login(),!1)};var bo=(()=>{let n=class n{constructor(){this.menu$=new rt([])}getAll(){return this.menu$.asObservable()}change(){return this.menu$.pipe(ec())}set(i){return this.menu$.next(i),this.menu$.asObservable()}add(i){let r=this.menu$.value;r.push(i),this.menu$.next(r)}reset(){this.menu$.next([])}buildRoute(i){let r="";return i.forEach(o=>{o&&o.trim()&&(r+="/"+o.replace(/^\/+|\/+$/g,""))}),r}getItemName(i){return this.getLevel(i)[i.length-1]}isLeafItem(i){let r=i.route===void 0,o=i.children===void 0,a=!o&&i.children?.length===0;return r||o||a}deepClone(i){return JSON.parse(JSON.stringify(i))}isJsonObjEqual(i,r){return JSON.stringify(i)===JSON.stringify(r)}isRouteEqual(i,r){return r=this.deepClone(r),r=r.filter(o=>o!==""),this.isJsonObjEqual(i,r)}getLevel(i){let r=[];return this.menu$.value.forEach(o=>{let a=[{item:o,parentNamePathList:[],realRouteArr:[]}];for(;a.length>0;){let s=[];for(let l of a){let c=l.item,d=this.deepClone(l.parentNamePathList).concat(c.name),p=this.deepClone(l.realRouteArr).concat(c.route);if(this.isRouteEqual(i,p)){r=d;break}if(!this.isLeafItem(c)){let _=c.children?.map(b=>({item:b,parentNamePathList:d,realRouteArr:p}));s=s.concat(_)}}a=s}}),r}addNamespace(i,r){i.forEach(o=>{o.name=`${r}.${o.name}`,o.children&&o.children.length>0&&this.addNamespace(o.children,o.name)})}};n.\u0275fac=function(r){return new(r||n)},n.\u0275prov=R({token:n,factory:n.\u0275fac,providedIn:"root"});let t=n;return t})();var FC;function sue(){if(FC===void 0&&(FC=null,typeof window<"u")){let t=window;t.trustedTypes!==void 0&&(FC=t.trustedTypes.createPolicy("angular#components",{createHTML:n=>n}))}return FC}function h_(t){return sue()?.createHTML(t)||t}function iz(t){return Error(`Unable to find icon with the name "${t}"`)}function lue(){return Error("Could not find HttpClient for use with Angular Material icons. Please add provideHttpClient() to your providers.")}function nz(t){return Error(`The URL provided to MatIconRegistry was not trusted as a resource URL via Angular's DomSanitizer. Attempted URL was "${t}".`)}function rz(t){return Error(`The literal provided to MatIconRegistry was not trusted as safe HTML by Angular's DomSanitizer. Attempted literal was "${t}".`)}var Bl=class{url;svgText;options;svgElement;constructor(n,e,i){this.url=n,this.svgText=e,this.options=i}},az=(()=>{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,i,r,o){this._httpClient=e,this._sanitizer=i,this._errorHandler=o,this._document=r}addSvgIcon(e,i,r){return this.addSvgIconInNamespace("",e,i,r)}addSvgIconLiteral(e,i,r){return this.addSvgIconLiteralInNamespace("",e,i,r)}addSvgIconInNamespace(e,i,r,o){return this._addSvgIconConfig(e,i,new Bl(r,null,o))}addSvgIconResolver(e){return this._resolvers.push(e),this}addSvgIconLiteralInNamespace(e,i,r,o){let a=this._sanitizer.sanitize(Bn.HTML,r);if(!a)throw rz(r);let s=h_(a);return this._addSvgIconConfig(e,i,new Bl("",s,o))}addSvgIconSet(e,i){return this.addSvgIconSetInNamespace("",e,i)}addSvgIconSetLiteral(e,i){return this.addSvgIconSetLiteralInNamespace("",e,i)}addSvgIconSetInNamespace(e,i,r){return this._addSvgIconSetConfig(e,new Bl(i,null,r))}addSvgIconSetLiteralInNamespace(e,i,r){let o=this._sanitizer.sanitize(Bn.HTML,i);if(!o)throw rz(i);let a=h_(o);return this._addSvgIconSetConfig(e,new Bl("",a,r))}registerFontClassAlias(e,i=e){return this._fontCssClassesByAlias.set(e,i),this}classNameForFontAlias(e){return this._fontCssClassesByAlias.get(e)||e}setDefaultFontSetClass(...e){return this._defaultFontSetClass=e,this}getDefaultFontSetClass(){return this._defaultFontSetClass}getSvgIconFromUrl(e){let i=this._sanitizer.sanitize(Bn.RESOURCE_URL,e);if(!i)throw nz(e);let r=this._cachedIconsByUrl.get(i);return r?Q(NC(r)):this._loadSvgIconFromConfig(new Bl(e,null)).pipe(He(o=>this._cachedIconsByUrl.set(i,o)),se(o=>NC(o)))}getNamedSvgIcon(e,i=""){let r=oz(i,e),o=this._svgIconConfigs.get(r);if(o)return this._getSvgFromConfig(o);if(o=this._getIconConfigFromResolvers(i,e),o)return this._svgIconConfigs.set(r,o),this._getSvgFromConfig(o);let a=this._iconSetConfigs.get(i);return a?this._getSvgFromIconSetConfigs(e,a):er(iz(r))}ngOnDestroy(){this._resolvers=[],this._svgIconConfigs.clear(),this._iconSetConfigs.clear(),this._cachedIconsByUrl.clear()}_getSvgFromConfig(e){return e.svgText?Q(NC(this._svgElementFromConfig(e))):this._loadSvgIconFromConfig(e).pipe(se(i=>NC(i)))}_getSvgFromIconSetConfigs(e,i){let r=this._extractIconWithNameFromAnySet(e,i);if(r)return Q(r);let o=i.filter(a=>!a.svgText).map(a=>this._loadSvgIconSetFromConfig(a).pipe(ei(s=>{let c=`Loading icon set URL: ${this._sanitizer.sanitize(Bn.RESOURCE_URL,a.url)} failed: ${s.message}`;return this._errorHandler.handleError(new Error(c)),Q(null)})));return ls(o).pipe(se(()=>{let a=this._extractIconWithNameFromAnySet(e,i);if(!a)throw iz(e);return a}))}_extractIconWithNameFromAnySet(e,i){for(let r=i.length-1;r>=0;r--){let o=i[r];if(o.svgText&&o.svgText.toString().indexOf(e)>-1){let a=this._svgElementFromConfig(o),s=this._extractSvgIconFromSet(a,e,o.options);if(s)return s}}return null}_loadSvgIconFromConfig(e){return this._fetchIcon(e).pipe(He(i=>e.svgText=i),se(()=>this._svgElementFromConfig(e)))}_loadSvgIconSetFromConfig(e){return e.svgText?Q(null):this._fetchIcon(e).pipe(He(i=>e.svgText=i))}_extractSvgIconFromSet(e,i,r){let o=e.querySelector(`[id="${i}"]`);if(!o)return null;let a=o.cloneNode(!0);if(a.removeAttribute("id"),a.nodeName.toLowerCase()==="svg")return this._setSvgAttributes(a,r);if(a.nodeName.toLowerCase()==="symbol")return this._setSvgAttributes(this._toSvgElement(a),r);let s=this._svgElementFromString(h_(""));return s.appendChild(a),this._setSvgAttributes(s,r)}_svgElementFromString(e){let i=this._document.createElement("DIV");i.innerHTML=e;let r=i.querySelector("svg");if(!r)throw Error(" tag not found");return r}_toSvgElement(e){let i=this._svgElementFromString(h_("")),r=e.attributes;for(let o=0;oh_(c)),Xr(()=>this._inProgressUrlFetches.delete(a)),ec());return this._inProgressUrlFetches.set(a,l),l}_addSvgIconConfig(e,i,r){return this._svgIconConfigs.set(oz(e,i),r),this}_addSvgIconSetConfig(e,i){let r=this._iconSetConfigs.get(e);return r?r.push(i):this._iconSetConfigs.set(e,[i]),this}_svgElementFromConfig(e){if(!e.svgElement){let i=this._svgElementFromString(e.svgText);this._setSvgAttributes(i,e.options),e.svgElement=i}return e.svgElement}_getIconConfigFromResolvers(e,i){for(let r=0;rn?n.pathname+n.search:""}}var sz=["clip-path","color-profile","src","cursor","fill","filter","marker","marker-start","marker-mid","marker-end","mask","stroke"],pue=sz.map(t=>`[${t}]`).join(", "),fue=/^url\(['"]?#(.*?)['"]?\)$/,Ze=(()=>{class t{_elementRef=u(Y);_iconRegistry=u(az);_location=u(mue);_errorHandler=u(Ln);_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 i=this._cleanupFontValue(e);i!==this._fontSet&&(this._fontSet=i,this._updateFontIconClasses())}_fontSet;get fontIcon(){return this._fontIcon}set fontIcon(e){let i=this._cleanupFontValue(e);i!==this._fontIcon&&(this._fontIcon=i,this._updateFontIconClasses())}_fontIcon;_previousFontSetClass=[];_previousFontIconClass;_svgName;_svgNamespace;_previousPath;_elementsWithExternalReferences;_currentIconFetch=ke.EMPTY;constructor(){let e=u(new Li("aria-hidden"),{optional:!0}),i=u(uue,{optional:!0});i&&(i.color&&(this.color=this._defaultColor=i.color),i.fontSet&&(this.fontSet=i.fontSet)),e||this._elementRef.nativeElement.setAttribute("aria-hidden","true")}_splitIconName(e){if(!e)return["",""];let i=e.split(":");switch(i.length){case 1:return["",i[0]];case 2:return i;default:throw Error(`Invalid icon name: "${e}"`)}}ngOnInit(){this._updateFontIconClasses()}ngAfterViewChecked(){let e=this._elementsWithExternalReferences;if(e&&e.size){let i=this._location.getPathname();i!==this._previousPath&&(this._previousPath=i,this._prependPathToReferences(i))}}ngOnDestroy(){this._currentIconFetch.unsubscribe(),this._elementsWithExternalReferences&&this._elementsWithExternalReferences.clear()}_usingFontIcon(){return!this.svgIcon}_setSvgElement(e){this._clearSvgElement();let i=this._location.getPathname();this._previousPath=i,this._cacheChildrenWithExternalReferences(e),this._prependPathToReferences(i),this._elementRef.nativeElement.appendChild(e)}_clearSvgElement(){let e=this._elementRef.nativeElement,i=e.childNodes.length;for(this._elementsWithExternalReferences&&this._elementsWithExternalReferences.clear();i--;){let r=e.childNodes[i];(r.nodeType!==1||r.nodeName.toLowerCase()==="svg")&&r.remove()}}_updateFontIconClasses(){if(!this._usingFontIcon())return;let e=this._elementRef.nativeElement,i=(this.fontSet?this._iconRegistry.classNameForFontAlias(this.fontSet).split(/ +/):this._iconRegistry.getDefaultFontSetClass()).filter(r=>r.length>0);this._previousFontSetClass.forEach(r=>e.classList.remove(r)),i.forEach(r=>e.classList.add(r)),this._previousFontSetClass=i,this.fontIcon!==this._previousFontIconClass&&!i.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 i=this._elementsWithExternalReferences;i&&i.forEach((r,o)=>{r.forEach(a=>{o.setAttribute(a.name,`url('${e}#${a.value}')`)})})}_cacheChildrenWithExternalReferences(e){let i=e.querySelectorAll(pue),r=this._elementsWithExternalReferences=this._elementsWithExternalReferences||new Map;for(let o=0;o{let s=i[o],l=s.getAttribute(a),c=l?l.match(fue):null;if(c){let d=r.get(s);d||(d=[],r.set(s,d)),d.push({name:a,value:c[1]})}})}_updateSvgIcon(e){if(this._svgNamespace=null,this._svgName=null,this._currentIconFetch.unsubscribe(),e){let[i,r]=this._splitIconName(e);i&&(this._svgNamespace=i),r&&(this._svgName=r),this._currentIconFetch=this._iconRegistry.getNamedSvgIcon(r,i).pipe(mt(1)).subscribe(o=>this._setSvgElement(o),o=>{let a=`Error retrieving icon ${i}:${r}! ${o.message}`;this._errorHandler.handleError(new Error(a))})}}static \u0275fac=function(i){return new(i||t)};static \u0275cmp=E({type:t,selectors:[["mat-icon"]],hostAttrs:["role","img",1,"mat-icon","notranslate"],hostVars:10,hostBindings:function(i,r){i&2&&(X("data-mat-icon-type",r._usingFontIcon()?"font":"svg")("data-mat-icon-name",r._svgName||r.fontIcon)("data-mat-icon-namespace",r._svgNamespace||r.fontSet)("fontIcon",r._usingFontIcon()?r.fontIcon:null),at(r.color?"mat-"+r.color:""),G("mat-icon-inline",r.inline)("mat-icon-no-color",r.color!=="primary"&&r.color!=="accent"&&r.color!=="warn"))},inputs:{color:"color",inline:[2,"inline","inline",L],svgIcon:"svgIcon",fontSet:"fontSet",fontIcon:"fontIcon"},exportAs:["matIcon"],ngContentSelectors:due,decls:1,vars:0,template:function(i,r){i&1&&(Ee(),ne(0))},styles:[`mat-icon,mat-icon.mat-primary,mat-icon.mat-accent,mat-icon.mat-warn{color:var(--mat-icon-color, inherit)}.mat-icon{-webkit-user-select:none;user-select:none;background-repeat:no-repeat;display:inline-block;fill:currentColor;height:24px;width:24px;overflow:hidden}.mat-icon.mat-icon-inline{font-size:inherit;height:inherit;line-height:inherit;width:inherit}.mat-icon.mat-ligature-font[fontIcon]::before{content:attr(fontIcon)}[dir=rtl] .mat-icon-rtl-mirror{transform:scale(-1, 1)}.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-prefix .mat-icon,.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-suffix .mat-icon{display:block}.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-prefix .mat-icon-button .mat-icon,.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})(),Ge=(()=>{class t{static \u0275fac=function(i){return new(i||t)};static \u0275mod=ee({type:t});static \u0275inj=J({imports:[De,De]})}return t})();function gue(t,n){if(t&1&&(m(0,"a",3),f(1),h()),t&2){let e=x().$implicit;g(),N(e)}}function _ue(t,n){if(t&1&&(m(0,"mat-icon",4),f(1,"chevron_right"),h(),m(2,"span"),f(3),me(4,"translate"),h()),t&2){let e=x().$implicit;g(3),N(Re(4,1,e))}}function bue(t,n){if(t&1&&(m(0,"li",2),V(1,gue,2,1,"a",3),V(2,_ue,5,3),h()),t&2){let e=n.$index;g(),B(e===0?1:-1),g(),B(e!==0?2:-1)}}var lz=(()=>{let n=class n{constructor(){this.router=u(Ae),this.menu=u(bo),this.nav=re([]),this.navItems=[]}ngOnInit(){this.router.events.pipe(ce(i=>i instanceof Si),Ue(this.router)).subscribe(()=>{this.genBreadcrumb()})}genBreadcrumb(){let i=this.router.url.slice(1).split("/");this.nav().length>0?this.navItems=[...this.nav()]:(this.navItems=this.menu.getLevel(i),this.navItems.unshift("home"))}};n.\u0275fac=function(r){return new(r||n)},n.\u0275cmp=E({type:n,selectors:[["breadcrumb"]],inputs:{nav:[1,"nav"]},decls:4,vars:0,consts:[["aria-label","breadcrumb"],[1,"matero-breadcrumb"],[1,"matero-breadcrumb-item"],["href","#",1,"link"],[1,"chevron"]],template:function(r,o){r&1&&(m(0,"nav",0)(1,"ol",1),Mt(2,bue,3,2,"li",2,Yi),h()()),r&2&&(g(2),Et(o.navItems))},dependencies:[Ge,Ze,Rr,Or],styles:[`.matero-breadcrumb{display:flex;flex-wrap:wrap;padding:0;margin-bottom:1rem;font-size:.875rem;list-style:none}.matero-breadcrumb-item{line-height:1.125rem;text-transform:capitalize}.matero-breadcrumb-item>*{vertical-align:middle}.matero-breadcrumb-item>a.link{color:currentColor;text-decoration:none}.matero-breadcrumb-item>a.link:hover{color:currentColor;text-decoration:underline}.matero-breadcrumb-item>.chevron{width:1.125rem;height:1.125rem;font-size:1.125rem;-webkit-user-select:none;user-select:none} +`],encapsulation:2});let t=n;return t})();function vue(t,n){}var id=class{viewContainerRef;injector;id;role="dialog";panelClass="";hasBackdrop=!0;backdropClass="";disableClose=!1;closePredicate;width="";height="";minWidth;minHeight;maxWidth;maxHeight;positionStrategy;data=null;direction;ariaDescribedBy=null;ariaLabelledBy=null;ariaLabel=null;ariaModal=!1;autoFocus="first-tabbable";restoreFocus=!0;scrollStrategy;closeOnNavigation=!0;closeOnDestroy=!0;closeOnOverlayDetachments=!0;disableAnimations=!1;providers;container;templateContext};var gI=(()=>{class t extends kc{_elementRef=u(Y);_focusTrapFactory=u(eh);_config;_interactivityChecker=u(Dc);_ngZone=u(ae);_focusMonitor=u(oi);_renderer=u(ze);_changeDetectorRef=u(ye);_injector=u(de);_platform=u(Ye);_document=u(_e);_portalOutlet;_focusTrapped=new z;_focusTrap=null;_elementFocusedBeforeDialogWasOpened=null;_closeInteractionType=null;_ariaLabelledByQueue=[];_isDestroyed=!1;constructor(){super(),this._config=u(id,{optional:!0})||new id,this._config.ariaLabelledBy&&this._ariaLabelledByQueue.push(this._config.ariaLabelledBy)}_addAriaLabelledBy(e){this._ariaLabelledByQueue.push(e),this._changeDetectorRef.markForCheck()}_removeAriaLabelledBy(e){let i=this._ariaLabelledByQueue.indexOf(e);i>-1&&(this._ariaLabelledByQueue.splice(i,1),this._changeDetectorRef.markForCheck())}_contentAttached(){this._initializeFocusTrap(),this._captureInitialFocus()}_captureInitialFocus(){this._trapFocus()}ngOnDestroy(){this._focusTrapped.complete(),this._isDestroyed=!0,this._restoreFocus()}attachComponentPortal(e){this._portalOutlet.hasAttached();let i=this._portalOutlet.attachComponentPortal(e);return this._contentAttached(),i}attachTemplatePortal(e){this._portalOutlet.hasAttached();let i=this._portalOutlet.attachTemplatePortal(e);return this._contentAttached(),i}attachDomPortal=e=>{this._portalOutlet.hasAttached();let i=this._portalOutlet.attachDomPortal(e);return this._contentAttached(),i};_recaptureFocus(){this._containsFocus()||this._trapFocus()}_forceFocus(e,i){this._interactivityChecker.isFocusable(e)||(e.tabIndex=-1,this._ngZone.runOutsideAngular(()=>{let r=()=>{o(),a(),e.removeAttribute("tabindex")},o=this._renderer.listen(e,"blur",r),a=this._renderer.listen(e,"mousedown",r)})),e.focus(i)}_focusByCssSelector(e,i){let r=this._elementRef.nativeElement.querySelector(e);r&&this._forceFocus(r,i)}_trapFocus(e){this._isDestroyed||vt(()=>{let i=this._elementRef.nativeElement;switch(this._config.autoFocus){case!1:case"dialog":this._containsFocus()||i.focus(e);break;case!0:case"first-tabbable":this._focusTrap?.focusInitialElement(e)||this._focusDialogContainer(e);break;case"first-heading":this._focusByCssSelector('h1, h2, h3, h4, h5, h6, [role="heading"]',e);break;default:this._focusByCssSelector(this._config.autoFocus,e);break}this._focusTrapped.next()},{injector:this._injector})}_restoreFocus(){let e=this._config.restoreFocus,i=null;if(typeof e=="string"?i=this._document.querySelector(e):typeof e=="boolean"?i=e?this._elementFocusedBeforeDialogWasOpened:null:e&&(i=e),this._config.restoreFocus&&i&&typeof i.focus=="function"){let r=So(),o=this._elementRef.nativeElement;(!r||r===this._document.body||r===o||o.contains(r))&&(this._focusMonitor?(this._focusMonitor.focusVia(i,this._closeInteractionType),this._closeInteractionType=null):i.focus())}this._focusTrap&&this._focusTrap.destroy()}_focusDialogContainer(e){this._elementRef.nativeElement.focus?.(e)}_containsFocus(){let e=this._elementRef.nativeElement,i=So();return e===i||e.contains(i)}_initializeFocusTrap(){this._platform.isBrowser&&(this._focusTrap=this._focusTrapFactory.create(this._elementRef.nativeElement),this._document&&(this._elementFocusedBeforeDialogWasOpened=So()))}static \u0275fac=function(i){return new(i||t)};static \u0275cmp=E({type:t,selectors:[["cdk-dialog-container"]],viewQuery:function(i,r){if(i&1&&ie(Ir,7),i&2){let o;j(o=H())&&(r._portalOutlet=o.first)}},hostAttrs:["tabindex","-1",1,"cdk-dialog-container"],hostVars:6,hostBindings:function(i,r){i&2&&X("id",r._config.id||null)("role",r._config.role)("aria-modal",r._config.ariaModal)("aria-labelledby",r._config.ariaLabel?null:r._ariaLabelledByQueue[0])("aria-label",r._config.ariaLabel)("aria-describedby",r._config.ariaDescribedBy||null)},features:[le],decls:1,vars:0,consts:[["cdkPortalOutlet",""]],template:function(i,r){i&1&&A(0,vue,0,0,"ng-template",0)},dependencies:[Ir],styles:[`.cdk-dialog-container{display:block;width:100%;height:100%;min-height:inherit;max-height:inherit} +`],encapsulation:2})}return t})(),p_=class{overlayRef;config;componentInstance;componentRef;containerInstance;disableClose;closed=new z;backdropClick;keydownEvents;outsidePointerEvents;id;_detachSubscription;constructor(n,e){this.overlayRef=n,this.config=e,this.disableClose=e.disableClose,this.backdropClick=n.backdropClick(),this.keydownEvents=n.keydownEvents(),this.outsidePointerEvents=n.outsidePointerEvents(),this.id=e.id,this.keydownEvents.subscribe(i=>{i.keyCode===27&&!this.disableClose&&!Gt(i)&&(i.preventDefault(),this.close(void 0,{focusOrigin:"keyboard"}))}),this.backdropClick.subscribe(()=>{!this.disableClose&&this._canClose()?this.close(void 0,{focusOrigin:"mouse"}):this.containerInstance._recaptureFocus?.()}),this._detachSubscription=n.detachments().subscribe(()=>{e.closeOnOverlayDetachments!==!1&&this.close()})}close(n,e){if(this._canClose(n)){let i=this.closed;this.containerInstance._closeInteractionType=e?.focusOrigin||"program",this._detachSubscription.unsubscribe(),this.overlayRef.dispose(),i.next(n),i.complete(),this.componentInstance=this.containerInstance=null}}updatePosition(){return this.overlayRef.updatePosition(),this}updateSize(n="",e=""){return this.overlayRef.updateSize({width:n,height:e}),this}addPanelClass(n){return this.overlayRef.addPanelClass(n),this}removePanelClass(n){return this.overlayRef.removePanelClass(n),this}_canClose(n){let e=this.config;return!!this.containerInstance&&(!e.closePredicate||e.closePredicate(n,e,this.componentInstance))}},yue=new O("DialogScrollStrategy",{providedIn:"root",factory:()=>{let t=u(de);return()=>Tc(t)}}),xue=new O("DialogData"),Cue=new O("DefaultDialogConfig");function wue(t){let n=he(t),e=new U;return{valueSignal:n,get value(){return n()},change:e,ngOnDestroy(){e.complete()}}}var _I=(()=>{class t{_injector=u(de);_defaultOptions=u(Cue,{optional:!0});_parentDialog=u(t,{optional:!0,skipSelf:!0});_overlayContainer=u(ax);_idGenerator=u(et);_openDialogsAtThisLevel=[];_afterAllClosedAtThisLevel=new z;_afterOpenedAtThisLevel=new z;_ariaHiddenElements=new Map;_scrollStrategy=u(yue);get openDialogs(){return this._parentDialog?this._parentDialog.openDialogs:this._openDialogsAtThisLevel}get afterOpened(){return this._parentDialog?this._parentDialog.afterOpened:this._afterOpenedAtThisLevel}afterAllClosed=Fn(()=>this.openDialogs.length?this._getAfterAllClosed():this._getAfterAllClosed().pipe(Ue(void 0)));constructor(){}open(e,i){let r=this._defaultOptions||new id;i=I(I({},r),i),i.id=i.id||this._idGenerator.getId("cdk-dialog-"),i.id&&this.getDialogById(i.id);let o=this._getOverlayConfig(i),a=qr(this._injector,o),s=new p_(a,i),l=this._attachContainer(a,s,i);if(s.containerInstance=l,!this.openDialogs.length){let c=this._overlayContainer.getContainerElement();l._focusTrapped?l._focusTrapped.pipe(mt(1)).subscribe(()=>{this._hideNonDialogContentFromAssistiveTechnology(c)}):this._hideNonDialogContentFromAssistiveTechnology(c)}return this._attachDialogContent(e,s,l,i),this.openDialogs.push(s),s.closed.subscribe(()=>this._removeOpenDialog(s,!0)),this.afterOpened.next(s),s}closeAll(){fI(this.openDialogs,e=>e.close())}getDialogById(e){return this.openDialogs.find(i=>i.id===e)}ngOnDestroy(){fI(this._openDialogsAtThisLevel,e=>{e.config.closeOnDestroy===!1&&this._removeOpenDialog(e,!1)}),fI(this._openDialogsAtThisLevel,e=>e.close()),this._afterAllClosedAtThisLevel.complete(),this._afterOpenedAtThisLevel.complete(),this._openDialogsAtThisLevel=[]}_getOverlayConfig(e){let i=new Gr({positionStrategy:e.positionStrategy||zs().centerHorizontally().centerVertically(),scrollStrategy:e.scrollStrategy||this._scrollStrategy(),panelClass:e.panelClass,hasBackdrop:e.hasBackdrop,direction:e.direction,minWidth:e.minWidth,minHeight:e.minHeight,maxWidth:e.maxWidth,maxHeight:e.maxHeight,width:e.width,height:e.height,disposeOnNavigation:e.closeOnNavigation,disableAnimations:e.disableAnimations});return e.backdropClass&&(i.backdropClass=e.backdropClass),i}_attachContainer(e,i,r){let o=r.injector||r.viewContainerRef?.injector,a=[{provide:id,useValue:r},{provide:p_,useValue:i},{provide:xh,useValue:e}],s;r.container?typeof r.container=="function"?s=r.container:(s=r.container.type,a.push(...r.container.providers(r))):s=gI;let l=new ao(s,r.viewContainerRef,de.create({parent:o||this._injector,providers:a}));return e.attach(l).instance}_attachDialogContent(e,i,r,o){if(e instanceof te){let a=this._createInjector(o,i,r,void 0),s={$implicit:o.data,dialogRef:i};o.templateContext&&(s=I(I({},s),typeof o.templateContext=="function"?o.templateContext():o.templateContext)),r.attachTemplatePortal(new kn(e,null,s,a))}else{let a=this._createInjector(o,i,r,this._injector),s=r.attachComponentPortal(new ao(e,o.viewContainerRef,a));i.componentRef=s,i.componentInstance=s.instance}}_createInjector(e,i,r,o){let a=e.injector||e.viewContainerRef?.injector,s=[{provide:xue,useValue:e.data},{provide:p_,useValue:i}];return e.providers&&(typeof e.providers=="function"?s.push(...e.providers(i,e,r)):s.push(...e.providers)),e.direction&&(!a||!a.get(Yt,null,{optional:!0}))&&s.push({provide:Yt,useValue:wue(e.direction)}),de.create({parent:a||o,providers:s})}_removeOpenDialog(e,i){let r=this.openDialogs.indexOf(e);r>-1&&(this.openDialogs.splice(r,1),this.openDialogs.length||(this._ariaHiddenElements.forEach((o,a)=>{o?a.setAttribute("aria-hidden",o):a.removeAttribute("aria-hidden")}),this._ariaHiddenElements.clear(),i&&this._getAfterAllClosed().next()))}_hideNonDialogContentFromAssistiveTechnology(e){if(e.parentElement){let i=e.parentElement.children;for(let r=i.length-1;r>-1;r--){let o=i[r];o!==e&&o.nodeName!=="SCRIPT"&&o.nodeName!=="STYLE"&&!o.hasAttribute("aria-live")&&(this._ariaHiddenElements.set(o,o.getAttribute("aria-hidden")),o.setAttribute("aria-hidden","true"))}}}_getAfterAllClosed(){let e=this._parentDialog;return e?e._getAfterAllClosed():this._afterAllClosedAtThisLevel}static \u0275fac=function(i){return new(i||t)};static \u0275prov=R({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();function fI(t,n){let e=t.length;for(;e--;)n(t[e])}var cz=(()=>{class t{static \u0275fac=function(i){return new(i||t)};static \u0275mod=ee({type:t});static \u0275inj=J({providers:[_I],imports:[cr,Oo,El,Oo]})}return t})();function Due(t,n){}var g_=class{viewContainerRef;injector;id;role="dialog";panelClass="";hasBackdrop=!0;backdropClass="";disableClose=!1;closePredicate;width="";height="";minWidth;minHeight;maxWidth;maxHeight;position;data=null;direction;ariaDescribedBy=null;ariaLabelledBy=null;ariaLabel=null;ariaModal=!1;autoFocus="first-tabbable";restoreFocus=!0;delayFocusTrap=!0;scrollStrategy;closeOnNavigation=!0;enterAnimationDuration;exitAnimationDuration},bI="mdc-dialog--open",dz="mdc-dialog--opening",uz="mdc-dialog--closing",Mue=150,Eue=75,pz=(()=>{class t extends gI{_animationStateChanged=new U;_animationsEnabled=!Qe();_actionSectionCount=0;_hostElement=this._elementRef.nativeElement;_enterAnimationDuration=this._animationsEnabled?hz(this._config.enterAnimationDuration)??Mue:0;_exitAnimationDuration=this._animationsEnabled?hz(this._config.exitAnimationDuration)??Eue:0;_animationTimer=null;_contentAttached(){super._contentAttached(),this._startOpenAnimation()}_startOpenAnimation(){this._animationStateChanged.emit({state:"opening",totalTime:this._enterAnimationDuration}),this._animationsEnabled?(this._hostElement.style.setProperty(mz,`${this._enterAnimationDuration}ms`),this._requestAnimationFrame(()=>this._hostElement.classList.add(dz,bI)),this._waitForAnimationToComplete(this._enterAnimationDuration,this._finishDialogOpen)):(this._hostElement.classList.add(bI),Promise.resolve().then(()=>this._finishDialogOpen()))}_startExitAnimation(){this._animationStateChanged.emit({state:"closing",totalTime:this._exitAnimationDuration}),this._hostElement.classList.remove(bI),this._animationsEnabled?(this._hostElement.style.setProperty(mz,`${this._exitAnimationDuration}ms`),this._requestAnimationFrame(()=>this._hostElement.classList.add(uz)),this._waitForAnimationToComplete(this._exitAnimationDuration,this._finishDialogClose)):Promise.resolve().then(()=>this._finishDialogClose())}_updateActionSectionCount(e){this._actionSectionCount+=e,this._changeDetectorRef.markForCheck()}_finishDialogOpen=()=>{this._clearAnimationClasses(),this._openAnimationDone(this._enterAnimationDuration)};_finishDialogClose=()=>{this._clearAnimationClasses(),this._animationStateChanged.emit({state:"closed",totalTime:this._exitAnimationDuration})};_clearAnimationClasses(){this._hostElement.classList.remove(dz,uz)}_waitForAnimationToComplete(e,i){this._animationTimer!==null&&clearTimeout(this._animationTimer),this._animationTimer=setTimeout(i,e)}_requestAnimationFrame(e){this._ngZone.runOutsideAngular(()=>{typeof requestAnimationFrame=="function"?requestAnimationFrame(e):e()})}_captureInitialFocus(){this._config.delayFocusTrap||this._trapFocus()}_openAnimationDone(e){this._config.delayFocusTrap&&this._trapFocus(),this._animationStateChanged.next({state:"opened",totalTime:e})}ngOnDestroy(){super.ngOnDestroy(),this._animationTimer!==null&&clearTimeout(this._animationTimer)}attachComponentPortal(e){let i=super.attachComponentPortal(e);return i.location.nativeElement.classList.add("mat-mdc-dialog-component-host"),i}static \u0275fac=(()=>{let e;return function(r){return(e||(e=ge(t)))(r||t)}})();static \u0275cmp=E({type:t,selectors:[["mat-dialog-container"]],hostAttrs:["tabindex","-1",1,"mat-mdc-dialog-container","mdc-dialog"],hostVars:10,hostBindings:function(i,r){i&2&&(pi("id",r._config.id),X("aria-modal",r._config.ariaModal)("role",r._config.role)("aria-labelledby",r._config.ariaLabel?null:r._ariaLabelledByQueue[0])("aria-label",r._config.ariaLabel)("aria-describedby",r._config.ariaDescribedBy||null),G("_mat-animation-noopable",!r._animationsEnabled)("mat-mdc-dialog-container-with-actions",r._actionSectionCount>0))},features:[le],decls:3,vars:0,consts:[[1,"mat-mdc-dialog-inner-container","mdc-dialog__container"],[1,"mat-mdc-dialog-surface","mdc-dialog__surface"],["cdkPortalOutlet",""]],template:function(i,r){i&1&&(m(0,"div",0)(1,"div",1),A(2,Due,0,0,"ng-template",2),h()())},dependencies:[Ir],styles:[`.mat-mdc-dialog-container{width:100%;height:100%;display:block;box-sizing:border-box;max-height:inherit;min-height:inherit;min-width:inherit;max-width:inherit;outline:0}.cdk-overlay-pane.mat-mdc-dialog-panel{max-width:var(--mat-dialog-container-max-width, 560px);min-width:var(--mat-dialog-container-min-width, 280px)}@media(max-width: 599px){.cdk-overlay-pane.mat-mdc-dialog-panel{max-width:var(--mat-dialog-container-small-max-width, calc(100vw - 32px))}}.mat-mdc-dialog-inner-container{display:flex;flex-direction:row;align-items:center;justify-content:space-around;box-sizing:border-box;height:100%;opacity:0;transition:opacity linear var(--mat-dialog-transition-duration, 0ms);max-height:inherit;min-height:inherit;min-width:inherit;max-width:inherit}.mdc-dialog--closing .mat-mdc-dialog-inner-container{transition:opacity 75ms linear;transform:none}.mdc-dialog--open .mat-mdc-dialog-inner-container{opacity:1}._mat-animation-noopable .mat-mdc-dialog-inner-container{transition:none}.mat-mdc-dialog-surface{display:flex;flex-direction:column;flex-grow:0;flex-shrink:0;box-sizing:border-box;width:100%;height:100%;position:relative;overflow-y:auto;outline:0;transform:scale(0.8);transition:transform var(--mat-dialog-transition-duration, 0ms) cubic-bezier(0, 0, 0.2, 1);max-height:inherit;min-height:inherit;min-width:inherit;max-width:inherit;box-shadow:var(--mat-dialog-container-elevation-shadow, none);border-radius:var(--mat-dialog-container-shape, var(--mat-sys-corner-extra-large, 4px));background-color:var(--mat-dialog-container-color, var(--mat-sys-surface, white))}[dir=rtl] .mat-mdc-dialog-surface{text-align:right}.mdc-dialog--open .mat-mdc-dialog-surface,.mdc-dialog--closing .mat-mdc-dialog-surface{transform:none}._mat-animation-noopable .mat-mdc-dialog-surface{transition:none}.mat-mdc-dialog-surface::before{position:absolute;box-sizing:border-box;width:100%;height:100%;top:0;left:0;border:2px solid rgba(0,0,0,0);border-radius:inherit;content:"";pointer-events:none}.mat-mdc-dialog-title{display:block;position:relative;flex-shrink:0;box-sizing:border-box;margin:0 0 1px;padding:var(--mat-dialog-headline-padding, 6px 24px 13px)}.mat-mdc-dialog-title::before{display:inline-block;width:0;height:40px;content:"";vertical-align:0}[dir=rtl] .mat-mdc-dialog-title{text-align:right}.mat-mdc-dialog-container .mat-mdc-dialog-title{color:var(--mat-dialog-subhead-color, var(--mat-sys-on-surface, rgba(0, 0, 0, 0.87)));font-family:var(--mat-dialog-subhead-font, var(--mat-sys-headline-small-font, inherit));line-height:var(--mat-dialog-subhead-line-height, var(--mat-sys-headline-small-line-height, 1.5rem));font-size:var(--mat-dialog-subhead-size, var(--mat-sys-headline-small-size, 1rem));font-weight:var(--mat-dialog-subhead-weight, var(--mat-sys-headline-small-weight, 400));letter-spacing:var(--mat-dialog-subhead-tracking, var(--mat-sys-headline-small-tracking, 0.03125em))}.mat-mdc-dialog-content{display:block;flex-grow:1;box-sizing:border-box;margin:0;overflow:auto;max-height:65vh}.mat-mdc-dialog-content>:first-child{margin-top:0}.mat-mdc-dialog-content>:last-child{margin-bottom:0}.mat-mdc-dialog-container .mat-mdc-dialog-content{color:var(--mat-dialog-supporting-text-color, var(--mat-sys-on-surface-variant, rgba(0, 0, 0, 0.6)));font-family:var(--mat-dialog-supporting-text-font, var(--mat-sys-body-medium-font, inherit));line-height:var(--mat-dialog-supporting-text-line-height, var(--mat-sys-body-medium-line-height, 1.5rem));font-size:var(--mat-dialog-supporting-text-size, var(--mat-sys-body-medium-size, 1rem));font-weight:var(--mat-dialog-supporting-text-weight, var(--mat-sys-body-medium-weight, 400));letter-spacing:var(--mat-dialog-supporting-text-tracking, var(--mat-sys-body-medium-tracking, 0.03125em))}.mat-mdc-dialog-container .mat-mdc-dialog-content{padding:var(--mat-dialog-content-padding, 20px 24px)}.mat-mdc-dialog-container-with-actions .mat-mdc-dialog-content{padding:var(--mat-dialog-with-actions-content-padding, 20px 24px 0)}.mat-mdc-dialog-container .mat-mdc-dialog-title+.mat-mdc-dialog-content{padding-top:0}.mat-mdc-dialog-actions{display:flex;position:relative;flex-shrink:0;flex-wrap:wrap;align-items:center;box-sizing:border-box;min-height:52px;margin:0;border-top:1px solid rgba(0,0,0,0);padding:var(--mat-dialog-actions-padding, 16px 24px);justify-content:var(--mat-dialog-actions-alignment, flex-end)}@media(forced-colors: active){.mat-mdc-dialog-actions{border-top-color:CanvasText}}.mat-mdc-dialog-actions.mat-mdc-dialog-actions-align-start,.mat-mdc-dialog-actions[align=start]{justify-content:start}.mat-mdc-dialog-actions.mat-mdc-dialog-actions-align-center,.mat-mdc-dialog-actions[align=center]{justify-content:center}.mat-mdc-dialog-actions.mat-mdc-dialog-actions-align-end,.mat-mdc-dialog-actions[align=end]{justify-content:flex-end}.mat-mdc-dialog-actions .mat-button-base+.mat-button-base,.mat-mdc-dialog-actions .mat-mdc-button-base+.mat-mdc-button-base{margin-left:8px}[dir=rtl] .mat-mdc-dialog-actions .mat-button-base+.mat-button-base,[dir=rtl] .mat-mdc-dialog-actions .mat-mdc-button-base+.mat-mdc-button-base{margin-left:0;margin-right:8px}.mat-mdc-dialog-component-host{display:contents} +`],encapsulation:2})}return t})(),mz="--mat-dialog-transition-duration";function hz(t){return t==null?null:typeof t=="number"?t:t.endsWith("ms")?Gn(t.substring(0,t.length-2)):t.endsWith("s")?Gn(t.substring(0,t.length-1))*1e3:t==="0"?0:null}var f_=(function(t){return t[t.OPEN=0]="OPEN",t[t.CLOSING=1]="CLOSING",t[t.CLOSED=2]="CLOSED",t})(f_||{}),Ou=class{_ref;_config;_containerInstance;componentInstance;componentRef;disableClose;id;_afterOpened=new z;_beforeClosed=new z;_result;_closeFallbackTimeout;_state=f_.OPEN;_closeInteractionType;constructor(n,e,i){this._ref=n,this._config=e,this._containerInstance=i,this.disableClose=e.disableClose,this.id=n.id,n.addPanelClass("mat-mdc-dialog-panel"),i._animationStateChanged.pipe(ce(r=>r.state==="opened"),mt(1)).subscribe(()=>{this._afterOpened.next(),this._afterOpened.complete()}),i._animationStateChanged.pipe(ce(r=>r.state==="closed"),mt(1)).subscribe(()=>{clearTimeout(this._closeFallbackTimeout),this._finishDialogClose()}),n.overlayRef.detachments().subscribe(()=>{this._beforeClosed.next(this._result),this._beforeClosed.complete(),this._finishDialogClose()}),it(this.backdropClick(),this.keydownEvents().pipe(ce(r=>r.keyCode===27&&!this.disableClose&&!Gt(r)))).subscribe(r=>{this.disableClose||(r.preventDefault(),fz(this,r.type==="keydown"?"keyboard":"mouse"))})}close(n){let e=this._config.closePredicate;e&&!e(n,this._config,this.componentInstance)||(this._result=n,this._containerInstance._animationStateChanged.pipe(ce(i=>i.state==="closing"),mt(1)).subscribe(i=>{this._beforeClosed.next(n),this._beforeClosed.complete(),this._ref.overlayRef.detachBackdrop(),this._closeFallbackTimeout=setTimeout(()=>this._finishDialogClose(),i.totalTime+100)}),this._state=f_.CLOSING,this._containerInstance._startExitAnimation())}afterOpened(){return this._afterOpened}afterClosed(){return this._ref.closed}beforeClosed(){return this._beforeClosed}backdropClick(){return this._ref.backdropClick}keydownEvents(){return this._ref.keydownEvents}updatePosition(n){let e=this._ref.config.positionStrategy;return n&&(n.left||n.right)?n.left?e.left(n.left):e.right(n.right):e.centerHorizontally(),n&&(n.top||n.bottom)?n.top?e.top(n.top):e.bottom(n.bottom):e.centerVertically(),this._ref.updatePosition(),this}updateSize(n="",e=""){return this._ref.updateSize(n,e),this}addPanelClass(n){return this._ref.addPanelClass(n),this}removePanelClass(n){return this._ref.removePanelClass(n),this}getState(){return this._state}_finishDialogClose(){this._state=f_.CLOSED,this._ref.close(this._result,{focusOrigin:this._closeInteractionType}),this.componentInstance=null}};function fz(t,n,e){return t._closeInteractionType=n,t.close(e)}var LC=new O("MatMdcDialogData"),gz=new O("mat-mdc-dialog-default-options"),_z=new O("mat-mdc-dialog-scroll-strategy",{providedIn:"root",factory:()=>{let t=u(de);return()=>Tc(t)}}),Rn=(()=>{class t{_defaultOptions=u(gz,{optional:!0});_scrollStrategy=u(_z);_parentDialog=u(t,{optional:!0,skipSelf:!0});_idGenerator=u(et);_injector=u(de);_dialog=u(_I);_animationsDisabled=Qe();_openDialogsAtThisLevel=[];_afterAllClosedAtThisLevel=new z;_afterOpenedAtThisLevel=new z;dialogConfigClass=g_;_dialogRefConstructor;_dialogContainerType;_dialogDataToken;get openDialogs(){return this._parentDialog?this._parentDialog.openDialogs:this._openDialogsAtThisLevel}get afterOpened(){return this._parentDialog?this._parentDialog.afterOpened:this._afterOpenedAtThisLevel}_getAfterAllClosed(){let e=this._parentDialog;return e?e._getAfterAllClosed():this._afterAllClosedAtThisLevel}afterAllClosed=Fn(()=>this.openDialogs.length?this._getAfterAllClosed():this._getAfterAllClosed().pipe(Ue(void 0)));constructor(){this._dialogRefConstructor=Ou,this._dialogContainerType=pz,this._dialogDataToken=LC}open(e,i){let r;i=I(I({},this._defaultOptions||new g_),i),i.id=i.id||this._idGenerator.getId("mat-mdc-dialog-"),i.scrollStrategy=i.scrollStrategy||this._scrollStrategy();let o=this._dialog.open(e,Me(I({},i),{positionStrategy:zs(this._injector).centerHorizontally().centerVertically(),disableClose:!0,closePredicate:void 0,closeOnDestroy:!1,closeOnOverlayDetachments:!1,disableAnimations:this._animationsDisabled||i.enterAnimationDuration?.toLocaleString()==="0"||i.exitAnimationDuration?.toString()==="0",container:{type:this._dialogContainerType,providers:()=>[{provide:this.dialogConfigClass,useValue:i},{provide:id,useValue:i}]},templateContext:()=>({dialogRef:r}),providers:(a,s,l)=>(r=new this._dialogRefConstructor(a,i,l),r.updatePosition(i?.position),[{provide:this._dialogContainerType,useValue:l},{provide:this._dialogDataToken,useValue:s.data},{provide:this._dialogRefConstructor,useValue:r}])}));return r.componentRef=o.componentRef,r.componentInstance=o.componentInstance,this.openDialogs.push(r),this.afterOpened.next(r),r.afterClosed().subscribe(()=>{let a=this.openDialogs.indexOf(r);a>-1&&(this.openDialogs.splice(a,1),this.openDialogs.length||this._getAfterAllClosed().next())}),r}closeAll(){this._closeDialogs(this.openDialogs)}getDialogById(e){return this.openDialogs.find(i=>i.id===e)}ngOnDestroy(){this._closeDialogs(this._openDialogsAtThisLevel),this._afterAllClosedAtThisLevel.complete(),this._afterOpenedAtThisLevel.complete()}_closeDialogs(e){let i=e.length;for(;i--;)e[i].close()}static \u0275fac=function(i){return new(i||t)};static \u0275prov=R({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();var bz=(()=>{class t{_dialogRef=u(Ou,{optional:!0});_elementRef=u(Y);_dialog=u(Rn);constructor(){}ngOnInit(){this._dialogRef||(this._dialogRef=Sue(this._elementRef,this._dialog.openDialogs)),this._dialogRef&&Promise.resolve().then(()=>{this._onAdd()})}ngOnDestroy(){this._dialogRef?._containerInstance&&Promise.resolve().then(()=>{this._onRemove()})}static \u0275fac=function(i){return new(i||t)};static \u0275dir=P({type:t})}return t})(),vI=(()=>{class t extends bz{id=u(et).getId("mat-mdc-dialog-title-");_onAdd(){this._dialogRef._containerInstance?._addAriaLabelledBy?.(this.id)}_onRemove(){this._dialogRef?._containerInstance?._removeAriaLabelledBy?.(this.id)}static \u0275fac=(()=>{let e;return function(r){return(e||(e=ge(t)))(r||t)}})();static \u0275dir=P({type:t,selectors:[["","mat-dialog-title",""],["","matDialogTitle",""]],hostAttrs:[1,"mat-mdc-dialog-title","mdc-dialog__title"],hostVars:1,hostBindings:function(i,r){i&2&&pi("id",r.id)},inputs:{id:"id"},exportAs:["matDialogTitle"],features:[le]})}return t})(),yI=(()=>{class t{static \u0275fac=function(i){return new(i||t)};static \u0275dir=P({type:t,selectors:[["","mat-dialog-content",""],["mat-dialog-content"],["","matDialogContent",""]],hostAttrs:[1,"mat-mdc-dialog-content","mdc-dialog__content"],features:[Mm([Za])]})}return t})(),xI=(()=>{class t extends bz{align;_onAdd(){this._dialogRef._containerInstance?._updateActionSectionCount?.(1)}_onRemove(){this._dialogRef._containerInstance?._updateActionSectionCount?.(-1)}static \u0275fac=(()=>{let e;return function(r){return(e||(e=ge(t)))(r||t)}})();static \u0275dir=P({type:t,selectors:[["","mat-dialog-actions",""],["mat-dialog-actions"],["","matDialogActions",""]],hostAttrs:[1,"mat-mdc-dialog-actions","mdc-dialog__actions"],hostVars:6,hostBindings:function(i,r){i&2&&G("mat-mdc-dialog-actions-align-start",r.align==="start")("mat-mdc-dialog-actions-align-center",r.align==="center")("mat-mdc-dialog-actions-align-end",r.align==="end")},inputs:{align:"align"},features:[le]})}return t})();function Sue(t,n){let e=t.nativeElement.parentElement;for(;e&&!e.classList.contains("mat-mdc-dialog-container");)e=e.parentElement;return e?n.find(i=>i.id===e.id):null}var Pn=(()=>{class t{static \u0275fac=function(i){return new(i||t)};static \u0275mod=ee({type:t});static \u0275inj=J({providers:[Rn],imports:[cz,cr,Oo,De,De]})}return t})();var Fr=(()=>{let n=class n{constructor(){this.dialogRef=u(Ou),this.data=u(LC)}confirm(){this.dialogRef.close(!0)}cancel(){this.dialogRef.close(!1)}};n.\u0275fac=function(r){return new(r||n)},n.\u0275cmp=E({type:n,selectors:[["app-confirm-dialog"]],decls:12,vars:4,consts:[["mat-dialog-title",""],["color","warn",2,"vertical-align","middle","margin-right","8px"],["align","end"],["mat-button","",3,"click"],["mat-raised-button","","color","warn","cdkFocusInitial","",3,"click"]],template:function(r,o){r&1&&(m(0,"h2",0)(1,"mat-icon",1),f(2,"warning"),h(),f(3),h(),m(4,"mat-dialog-content")(5,"p"),f(6),h()(),m(7,"mat-dialog-actions",2)(8,"button",3),S("click",function(){return o.cancel()}),f(9),h(),m(10,"button",4),S("click",function(){return o.confirm()}),f(11),h()()),r&2&&(g(3),fe(" ",o.data.title,` +`),g(3),N(o.data.message),g(3),fe(" ",o.data.cancelText||"Cancel"," "),g(2),fe(" ",o.data.confirmText||"Delete"," "))},dependencies:[Pn,vI,xI,yI,Fe,_t,Ge,Ze],encapsulation:2});let t=n;return t})();function Tue(t,n){if(t&1&&(m(0,"div",2),f(1),h()),t&2){let e=x();g(),N(e.title())}}function Iue(t,n){if(t&1&&(m(0,"div",3),f(1),h()),t&2){let e=x();g(),N(e.message())}}var ap=(()=>{let n=class n{constructor(){this.code=re(""),this.title=re(""),this.message=re("")}};n.\u0275fac=function(r){return new(r||n)},n.\u0275cmp=E({type:n,selectors:[["error-code"]],inputs:{code:[1,"code"],title:[1,"title"],message:[1,"message"]},decls:8,vars:3,consts:[[1,"matero-error-wrap"],[1,"matero-error-code"],[1,"matero-error-title"],[1,"matero-error-message"],["matButton","elevated","color","primary","routerLink","/"]],template:function(r,o){r&1&&(m(0,"div",0)(1,"div",1),f(2),h(),V(3,Tue,2,1,"div",2),V(4,Iue,2,1,"div",3),m(5,"div")(6,"a",4),f(7,"Back to Home"),h()()()),r&2&&(g(2),N(o.code()),g(),B(o.title()?3:-1),g(),B(o.message()?4:-1))},dependencies:[Wn,Fe,_t],styles:[`.matero-error-wrap{text-align:center}.matero-error-code{padding:1.25rem 0;font-size:10rem;text-shadow:.1325825215rem .1325825215rem 0 rgba(0,0,0,.028575),.2651650429rem .2651650429rem 0 rgba(0,0,0,.02715),.3977475644rem .3977475644rem 0 rgba(0,0,0,.025725),.5303300859rem .5303300859rem 0 rgba(0,0,0,.0243),.6629126074rem .6629126074rem 0 rgba(0,0,0,.022875),.7954951288rem .7954951288rem 0 rgba(0,0,0,.02145),.9280776503rem .9280776503rem 0 rgba(0,0,0,.020025),1.0606601718rem 1.0606601718rem 0 rgba(0,0,0,.0186),1.1932426933rem 1.1932426933rem 0 rgba(0,0,0,.017175),1.3258252147rem 1.3258252147rem 0 rgba(0,0,0,.01575),1.4584077362rem 1.4584077362rem 0 rgba(0,0,0,.014325),1.5909902577rem 1.5909902577rem 0 rgba(0,0,0,.0129),1.7235727791rem 1.7235727791rem 0 rgba(0,0,0,.011475),1.8561553006rem 1.8561553006rem 0 rgba(0,0,0,.01005),1.9887378221rem 1.9887378221rem 0 rgba(0,0,0,.008625),2.1213203436rem 2.1213203436rem 0 rgba(0,0,0,.0072),2.253902865rem 2.253902865rem 0 rgba(0,0,0,.005775),2.3864853865rem 2.3864853865rem 0 rgba(0,0,0,.00435),2.519067908rem 2.519067908rem 0 rgba(0,0,0,.002925),2.6516504294rem 2.6516504294rem 0 rgba(0,0,0,.0015)}.matero-error-title{margin:0 0 1rem;font-size:1.25rem;font-weight:500;line-height:2rem}.matero-error-message{margin:0 0 1rem;font-size:1rem;font-weight:400;line-height:1.75rem} +`],encapsulation:2});let t=n;return t})();function Aue(t,n){if(t&1&&M(0,"breadcrumb",2),t&2){let e=x();v("nav",e.nav())}}var Lt=(()=>{let n=class n{constructor(){this.router=u(Ae),this.menu=u(bo),this.title=re(""),this.subtitle=re(""),this.nav=re([]),this.hideBreadcrumb=re(!1,{transform:L}),this.titleName=ci(()=>{let i=this.router.url.slice(1).split("/"),r=this.menu.getLevel(i);return this.title()||r[r.length-1]})}};n.\u0275fac=function(r){return new(r||n)},n.\u0275cmp=E({type:n,selectors:[["page-header"]],hostAttrs:[1,"matero-page-header"],inputs:{title:[1,"title"],subtitle:[1,"subtitle"],nav:[1,"nav"],hideBreadcrumb:[1,"hideBreadcrumb"]},decls:7,vars:5,consts:[[1,"matero-page-header-inner"],[1,"matero-page-title"],[3,"nav"]],template:function(r,o){r&1&&(m(0,"div",0)(1,"h1",1),f(2),me(3,"translate"),m(4,"small"),f(5),h()(),V(6,Aue,1,1,"breadcrumb",2),h()),r&2&&(g(2),fe(" ",Re(3,3,o.titleName())," "),g(3),N(o.subtitle()),g(),B(o.hideBreadcrumb()?-1:6))},dependencies:[lz,Rr,Or],styles:[`.matero-page-header{display:block;padding:1rem;margin-bottom:1rem;color:#ffffffde;background-color:#0074e9;border-radius:var(--mat-sys-corner-medium)}.matero-page-header .matero-breadcrumb{margin-top:.5rem;margin-bottom:0}.matero-page-title{margin:0;font-size:1.5rem;font-weight:400} +`],encapsulation:2});let t=n;return t})();var vz=(()=>{let n=class n{constructor(){this.change=new U,this.valueSignal=he("ltr")}get value(){return this.valueSignal()}set value(i){this.valueSignal.set(i),this.change.next(i)}ngOnDestroy(){this.change.complete()}};n.\u0275fac=function(r){return new(r||n)},n.\u0275prov=R({token:n,factory:n.\u0275fac,providedIn:"root"});let t=n;return t})();var yz=(()=>{let n=class n{constructor(){this.messages=[]}add(i){this.messages.push(i)}clear(){this.messages=[]}};n.\u0275fac=function(r){return new(r||n)},n.\u0275prov=R({token:n,factory:n.\u0275fac,providedIn:"root"});let t=n;return t})();var xz=(()=>{let n=class n{get(i){return JSON.parse(localStorage.getItem(i)||"{}")||{}}set(i,r){return localStorage.setItem(i,JSON.stringify(r)),!0}has(i){return!!localStorage.getItem(i)}remove(i){localStorage.removeItem(i)}clear(){localStorage.clear()}};n.\u0275fac=function(r){return new(r||n)},n.\u0275prov=R({token:n,factory:n.\u0275fac,providedIn:"root"});let t=n;return t})();var Cz=(()=>{let n=class n{constructor(){this.translate=u(ca),this.paginatorIntl=new Pc,this.translate.onLangChange.subscribe(i=>this.getPaginatorIntl())}getPaginatorIntl(){return this.paginatorIntl.itemsPerPageLabel=this.translate.instant("paginator.items_per_page_label"),this.paginatorIntl.previousPageLabel=this.translate.instant("paginator.previous_page_label"),this.paginatorIntl.nextPageLabel=this.translate.instant("paginator.next_page_label"),this.paginatorIntl.firstPageLabel=this.translate.instant("paginator.first_page_label"),this.paginatorIntl.lastPageLabel=this.translate.instant("paginator.last_page_label"),this.paginatorIntl.getRangeLabel=this.getRangeLabel.bind(this),this.paginatorIntl.changes.next(),this.paginatorIntl}getRangeLabel(i,r,o){if(o===0||r===0)return this.translate.instant("paginator.range_page_label_1",{length:o});o=Math.max(o,0);let a=i*r,s=a{if(t.destroyed){e.next();return}return t.onDestroy(e.next.bind(e))});return e=>e.pipe(we(n))}function wz(t){let n=KM(t);return new Ne(e=>{let i=n?.onDestroy(()=>e.complete()),r=t.subscribe(o=>e.next(o));return()=>{r.unsubscribe(),i?.()}})}var Oue=["content"],Rue=["scroll"],Pue=["padding"],Ez=["*"],__=t=>({searchTerm:t});function Fue(t,n){if(t&1&&(m(0,"div",3),qe(1,6),h()),t&2){let e=x();g(),v("ngTemplateOutlet",e.headerTemplate())("ngTemplateOutletContext",Wt(2,__,e.filterValue()))}}function Nue(t,n){if(t&1&&(m(0,"div",5),qe(1,6),h()),t&2){let e=x();g(),v("ngTemplateOutlet",e.footerTemplate())("ngTemplateOutletContext",Wt(2,__,e.filterValue()))}}var Lue=["searchInput"],Vue=["clearButton"],Bue=(t,n,e)=>({item:t,clear:n,label:e}),jue=(t,n)=>({items:t,clear:n}),Hue=(t,n,e,i)=>({item:t,item$:n,index:e,searchTerm:i});function zue(t,n){if(t&1&&(m(0,"div",20),f(1),h()),t&2){let e=x(2);g(),N(e.placeholder()??e.config.placeholder)}}function Uue(t,n){}function $ue(t,n){if(t&1&&A(0,zue,2,1,"ng-template",null,1,Mi)(2,Uue,0,0,"ng-template",19),t&2){let e=Te(1),i=x();g(2),v("ngTemplateOutlet",i.placeholderTemplate()||e)}}function Wue(t,n){if(t&1){let e=q();m(0,"span",23),S("click",function(){k(e);let r=x().$implicit,o=x(2);return T(o.unselect(r))}),f(1,"\xD7"),h(),M(2,"span",24)}if(t&2){let e=x().$implicit,i=x(2);g(2),v("ngItemLabel",e.label)("escape",i.escapeHTML)}}function Gue(t,n){}function que(t,n){if(t&1&&(m(0,"div",22),A(1,Wue,3,2,"ng-template",null,2,Mi)(3,Gue,0,0,"ng-template",12),h()),t&2){let e=n.$implicit,i=Te(2),r=x(2);G("ng-value-disabled",e.disabled),g(3),v("ngTemplateOutlet",r.labelTemplate()||i)("ngTemplateOutletContext",Hd(4,Bue,e.value,r.clearItem,e.label))}}function Yue(t,n){if(t&1&&Mt(0,que,4,8,"div",21,A0().trackByOption,!0),t&2){let e=x();Et(e.selectedItems)}}function Que(t,n){}function Kue(t,n){if(t&1&&A(0,Que,0,0,"ng-template",12),t&2){let e=x();v("ngTemplateOutlet",e.multiLabelTemplate())("ngTemplateOutletContext",Ba(2,jue,e.selectedValues,e.clearItem))}}function Zue(t,n){t&1&&M(0,"div",25)}function Xue(t,n){}function Jue(t,n){if(t&1&&A(0,Zue,1,0,"ng-template",null,3,Mi)(2,Xue,0,0,"ng-template",19),t&2){let e=Te(1),i=x();g(2),v("ngTemplateOutlet",i.loadingSpinnerTemplate()||e)}}function eme(t,n){if(t&1&&qe(0,19),t&2){let e=x(2);v("ngTemplateOutlet",e.clearButtonTemplate())}}function tme(t,n){if(t&1){let e=q();m(0,"span",27,4),S("click",function(r){k(e);let o=x(2);return T(o.handleClearClick(r))}),m(2,"span",28),f(3,"\xD7"),h()()}if(t&2){let e=x(2);v("title",WM(e.clearAllText()||e.config.clearAllText)),X("tabindex",e.tabFocusOnClear()?0:-1)}}function ime(t,n){if(t&1&&V(0,eme,1,1,"ng-container",19)(1,tme,4,3,"span",26),t&2){let e=x();B(e.clearButtonTemplate()?0:1)}}function nme(t,n){if(t&1&&M(0,"span",33),t&2){let e=x().$implicit,i=x(2);v("ngItemLabel",e.label)("escape",i.escapeHTML)}}function rme(t,n){}function ome(t,n){if(t&1){let e=q();m(0,"div",32),S("click",function(){let r=k(e).$implicit,o=x(2);return T(o.toggleItem(r))})("mouseover",function(){let r=k(e).$implicit,o=x(2);return T(o.onItemHover(r))}),A(1,nme,1,2,"ng-template",null,5,Mi)(3,rme,0,0,"ng-template",12),h()}if(t&2){let e=n.$implicit,i=Te(2),r=x(2);G("ng-option-disabled",e.disabled)("ng-option-selected",e.selected)("ng-optgroup",e.children)("ng-option",!e.children)("ng-option-child",!!e.parent)("ng-option-marked",e===r.itemsList.markedItem),X("role",e.children?"group":"option")("aria-selected",e.selected)("id",e==null?null:e.htmlId)("aria-setsize",r.itemsList.filteredItems.length)("aria-posinset",e.index+1),g(3),v("ngTemplateOutlet",e.children?r.optgroupTemplate()||i:r.optionTemplate()||i)("ngTemplateOutletContext",km(19,Hue,e.value,e,e.index,r.searchTerm))}}function ame(t,n){if(t&1&&(m(0,"span")(1,"span",35),f(2),h(),f(3),h()),t&2){let e=x(3);g(2),N(e.addTagText()||e.config.addTagText),g(),fe('"',e.searchTerm,'"')}}function sme(t,n){}function lme(t,n){if(t&1){let e=q();m(0,"div",34),S("mouseover",function(){k(e);let r=x(2);return T(r.itemsList.unmarkItem())})("click",function(){k(e);let r=x(2);return T(r.selectTag())}),A(1,ame,4,2,"ng-template",null,6,Mi)(3,sme,0,0,"ng-template",12),h()}if(t&2){let e=Te(2),i=x(2);G("ng-option-marked",!i.itemsList.markedItem),g(3),v("ngTemplateOutlet",i.tagTemplate()||e)("ngTemplateOutletContext",Wt(4,__,i.searchTerm))}}function cme(t,n){if(t&1&&(m(0,"div",36),f(1),h()),t&2){let e=x(3);g(),N(e.notFoundText()??e.config.notFoundText)}}function dme(t,n){}function ume(t,n){if(t&1&&A(0,cme,2,1,"ng-template",null,7,Mi)(2,dme,0,0,"ng-template",12),t&2){let e=Te(1),i=x(2);g(2),v("ngTemplateOutlet",i.notFoundTemplate()||e)("ngTemplateOutletContext",Wt(2,__,i.searchTerm))}}function mme(t,n){if(t&1&&(m(0,"div",36),f(1),h()),t&2){let e=x(3);g(),N(e.typeToSearchText()||e.config.typeToSearchText)}}function hme(t,n){}function pme(t,n){if(t&1&&A(0,mme,2,1,"ng-template",null,8,Mi)(2,hme,0,0,"ng-template",19),t&2){let e=Te(1),i=x(2);g(2),v("ngTemplateOutlet",i.typeToSearchTemplate()||e)}}function fme(t,n){if(t&1&&(m(0,"div",36),f(1),h()),t&2){let e=x(3);g(),N(e.loadingText()||e.config.loadingText)}}function gme(t,n){}function _me(t,n){if(t&1&&A(0,fme,2,1,"ng-template",null,9,Mi)(2,gme,0,0,"ng-template",12),t&2){let e=Te(1),i=x(2);g(2),v("ngTemplateOutlet",i.loadingTextTemplate()||e)("ngTemplateOutletContext",Wt(2,__,i.searchTerm))}}function bme(t,n){if(t&1){let e=q();m(0,"ng-dropdown-panel",29),S("update",function(r){k(e);let o=x();return T(o.viewPortItems=r)})("scroll",function(r){k(e);let o=x();return T(o.scroll.emit(r))})("scrollToEnd",function(r){k(e);let o=x();return T(o.scrollToEnd.emit(r))})("outsideClick",function(){k(e);let r=x();return T(r.close())}),lt(1),Mt(2,ome,4,24,"div",30,A0().trackByOption,!0),V(4,lme,4,6,"div",31),ot(),V(5,ume,3,4),V(6,pme,3,1),V(7,_me,3,4),h()}if(t&2){let e=x(),i=e.appendTo()||e.config.appendTo;at(i?e.ngClass()?e.ngClass():e.classes:null),G("ng-select-multiple",e.multiple()),v("virtualScroll",e.virtualScroll()??!e.config.disableVirtualScroll??!1)("bufferAmount",e.bufferAmount())("appendTo",i)("position",e.dropdownPosition())("outsideClickEvent",e.outsideClickEvent())("headerTemplate",e.headerTemplate())("footerTemplate",e.footerTemplate())("filterValue",e.searchTerm)("items",e.itemsList.filteredItems)("showAddTag",e.showAddTag)("markedItem",e.itemsList.markedItem)("id",e.dropdownId)("ariaLabelDropdown",e.ariaLabelDropdown()),g(2),Et(e.viewPortItems),g(2),B(e.showAddTag?4:-1),g(),B(e.showNoItemsFound()?5:-1),g(),B(e.showTypeToSearch()?6:-1),g(),B(e.loading()&&e.itemsList.filteredItems.length===0?7:-1)}}function vme(t,n){if(t&1&&f(0),t&2){let e=x();fe(" ",e.notFoundText()??e.config.notFoundText," ")}}var Sz=/[&<>"']/g,yme=RegExp(Sz.source),xme={"&":"&","<":"<",">":">",'"':""","'":"'"};function Cme(t){return t&&yme.test(t)?t.replace(Sz,n=>xme[n]):t}function on(t){return t!=null}function Pu(t){return typeof t=="object"&&on(t)}function wme(t){return t instanceof Promise}function BC(t){return t instanceof Function}var Dme=(()=>{let n=class n{constructor(){this.element=u(Y),this.ngItemLabel=re(),this.escape=re(!0),zr(()=>{this.element.nativeElement.innerHTML=this.escape()?Cme(this.ngItemLabel()):this.ngItemLabel()})}};n.\u0275fac=function(r){return new(r||n)},n.\u0275dir=P({type:n,selectors:[["","ngItemLabel",""]],inputs:{ngItemLabel:[1,"ngItemLabel"],escape:[1,"escape"]}});let t=n;return t})(),jC=(()=>{let n=class n{constructor(){this.template=u(te)}};n.\u0275fac=function(r){return new(r||n)},n.\u0275dir=P({type:n,selectors:[["","ng-option-tmp",""]]});let t=n;return t})(),HC=(()=>{let n=class n{constructor(){this.template=u(te)}};n.\u0275fac=function(r){return new(r||n)},n.\u0275dir=P({type:n,selectors:[["","ng-optgroup-tmp",""]]});let t=n;return t})(),zC=(()=>{let n=class n{constructor(){this.template=u(te)}};n.\u0275fac=function(r){return new(r||n)},n.\u0275dir=P({type:n,selectors:[["","ng-label-tmp",""]]});let t=n;return t})(),UC=(()=>{let n=class n{constructor(){this.template=u(te)}};n.\u0275fac=function(r){return new(r||n)},n.\u0275dir=P({type:n,selectors:[["","ng-multi-label-tmp",""]]});let t=n;return t})(),$C=(()=>{let n=class n{constructor(){this.template=u(te)}};n.\u0275fac=function(r){return new(r||n)},n.\u0275dir=P({type:n,selectors:[["","ng-header-tmp",""]]});let t=n;return t})(),WC=(()=>{let n=class n{constructor(){this.template=u(te)}};n.\u0275fac=function(r){return new(r||n)},n.\u0275dir=P({type:n,selectors:[["","ng-footer-tmp",""]]});let t=n;return t})(),GC=(()=>{let n=class n{constructor(){this.template=u(te)}};n.\u0275fac=function(r){return new(r||n)},n.\u0275dir=P({type:n,selectors:[["","ng-notfound-tmp",""]]});let t=n;return t})(),qC=(()=>{let n=class n{constructor(){this.template=u(te)}};n.\u0275fac=function(r){return new(r||n)},n.\u0275dir=P({type:n,selectors:[["","ng-placeholder-tmp",""]]});let t=n;return t})(),YC=(()=>{let n=class n{constructor(){this.template=u(te)}};n.\u0275fac=function(r){return new(r||n)},n.\u0275dir=P({type:n,selectors:[["","ng-typetosearch-tmp",""]]});let t=n;return t})(),QC=(()=>{let n=class n{constructor(){this.template=u(te)}};n.\u0275fac=function(r){return new(r||n)},n.\u0275dir=P({type:n,selectors:[["","ng-loadingtext-tmp",""]]});let t=n;return t})(),KC=(()=>{let n=class n{constructor(){this.template=u(te)}};n.\u0275fac=function(r){return new(r||n)},n.\u0275dir=P({type:n,selectors:[["","ng-tag-tmp",""]]});let t=n;return t})(),ZC=(()=>{let n=class n{constructor(){this.template=u(te)}};n.\u0275fac=function(r){return new(r||n)},n.\u0275dir=P({type:n,selectors:[["","ng-loadingspinner-tmp",""]]});let t=n;return t})(),XC=(()=>{let n=class n{constructor(){this.template=u(te)}};n.\u0275fac=function(r){return new(r||n)},n.\u0275dir=P({type:n,selectors:[["","ng-clearbutton-tmp",""]]});let t=n;return t})(),Mme=(()=>{let n=class n{constructor(){this.fixedPlaceholder=!0,this.notFoundText="No items found",this.typeToSearchText="Type to search",this.addTagText="Add item",this.loadingText="Loading...",this.clearAllText="Clear all",this.disableVirtualScroll=!0,this.openOnEnter=!0,this.appearance="underline",this.tabFocusOnClear=!0,this.outsideClickEvent="click"}};n.\u0275fac=function(r){return new(r||n)},n.\u0275prov=R({token:n,factory:n.\u0275fac,providedIn:"root"});let t=n;return t})(),Eme=(()=>{let n=class n{warn(i){console.warn(i)}};n.\u0275fac=function(r){return new(r||n)},n.\u0275prov=R({token:n,factory:n.\u0275fac,providedIn:"root"});let t=n;return t})();function kz(){return"axxxxxxxxxxx".replace(/[x]/g,()=>(Math.random()*16|0).toString(16))}var Sme={"\u24B6":"A",\uFF21:"A",\u00C0:"A",\u00C1:"A",\u00C2:"A",\u1EA6:"A",\u1EA4:"A",\u1EAA:"A",\u1EA8:"A",\u00C3:"A",\u0100:"A",\u0102:"A",\u1EB0:"A",\u1EAE:"A",\u1EB4:"A",\u1EB2:"A",\u0226:"A",\u01E0:"A",\u00C4:"A",\u01DE:"A",\u1EA2:"A",\u00C5:"A",\u01FA:"A",\u01CD:"A",\u0200:"A",\u0202:"A",\u1EA0:"A",\u1EAC:"A",\u1EB6:"A",\u1E00:"A",\u0104:"A","\u023A":"A","\u2C6F":"A","\uA732":"AA",\u00C6:"AE",\u01FC:"AE",\u01E2:"AE","\uA734":"AO","\uA736":"AU","\uA738":"AV","\uA73A":"AV","\uA73C":"AY","\u24B7":"B",\uFF22:"B",\u1E02:"B",\u1E04:"B",\u1E06:"B","\u0243":"B",\u0182:"B",\u0181:"B","\u24B8":"C",\uFF23:"C",\u0106:"C",\u0108:"C",\u010A:"C",\u010C:"C",\u00C7:"C",\u1E08:"C",\u0187:"C","\u023B":"C","\uA73E":"C","\u24B9":"D",\uFF24:"D",\u1E0A:"D",\u010E:"D",\u1E0C:"D",\u1E10:"D",\u1E12:"D",\u1E0E:"D",\u0110:"D",\u018B:"D",\u018A:"D",\u0189:"D","\uA779":"D",\u01F1:"DZ",\u01C4:"DZ",\u01F2:"Dz",\u01C5:"Dz","\u24BA":"E",\uFF25:"E",\u00C8:"E",\u00C9:"E",\u00CA:"E",\u1EC0:"E",\u1EBE:"E",\u1EC4:"E",\u1EC2:"E",\u1EBC:"E",\u0112:"E",\u1E14:"E",\u1E16:"E",\u0114:"E",\u0116:"E",\u00CB:"E",\u1EBA:"E",\u011A:"E",\u0204:"E",\u0206:"E",\u1EB8:"E",\u1EC6:"E",\u0228:"E",\u1E1C:"E",\u0118:"E",\u1E18:"E",\u1E1A:"E",\u0190:"E",\u018E:"E","\u24BB":"F",\uFF26:"F",\u1E1E:"F",\u0191:"F","\uA77B":"F","\u24BC":"G",\uFF27:"G",\u01F4:"G",\u011C:"G",\u1E20:"G",\u011E:"G",\u0120:"G",\u01E6:"G",\u0122:"G",\u01E4:"G",\u0193:"G","\uA7A0":"G","\uA77D":"G","\uA77E":"G","\u24BD":"H",\uFF28:"H",\u0124:"H",\u1E22:"H",\u1E26:"H",\u021E:"H",\u1E24:"H",\u1E28:"H",\u1E2A:"H",\u0126:"H","\u2C67":"H","\u2C75":"H","\uA78D":"H","\u24BE":"I",\uFF29:"I",\u00CC:"I",\u00CD:"I",\u00CE:"I",\u0128:"I",\u012A:"I",\u012C:"I",\u0130:"I",\u00CF:"I",\u1E2E:"I",\u1EC8:"I",\u01CF:"I",\u0208:"I",\u020A:"I",\u1ECA:"I",\u012E:"I",\u1E2C:"I",\u0197:"I","\u24BF":"J",\uFF2A:"J",\u0134:"J","\u0248":"J","\u24C0":"K",\uFF2B:"K",\u1E30:"K",\u01E8:"K",\u1E32:"K",\u0136:"K",\u1E34:"K",\u0198:"K","\u2C69":"K","\uA740":"K","\uA742":"K","\uA744":"K","\uA7A2":"K","\u24C1":"L",\uFF2C:"L",\u013F:"L",\u0139:"L",\u013D:"L",\u1E36:"L",\u1E38:"L",\u013B:"L",\u1E3C:"L",\u1E3A:"L",\u0141:"L","\u023D":"L","\u2C62":"L","\u2C60":"L","\uA748":"L","\uA746":"L","\uA780":"L",\u01C7:"LJ",\u01C8:"Lj","\u24C2":"M",\uFF2D:"M",\u1E3E:"M",\u1E40:"M",\u1E42:"M","\u2C6E":"M",\u019C:"M","\u24C3":"N",\uFF2E:"N",\u01F8:"N",\u0143:"N",\u00D1:"N",\u1E44:"N",\u0147:"N",\u1E46:"N",\u0145:"N",\u1E4A:"N",\u1E48:"N","\u0220":"N",\u019D:"N","\uA790":"N","\uA7A4":"N",\u01CA:"NJ",\u01CB:"Nj","\u24C4":"O",\uFF2F:"O",\u00D2:"O",\u00D3:"O",\u00D4:"O",\u1ED2:"O",\u1ED0:"O",\u1ED6:"O",\u1ED4:"O",\u00D5:"O",\u1E4C:"O",\u022C:"O",\u1E4E:"O",\u014C:"O",\u1E50:"O",\u1E52:"O",\u014E:"O",\u022E:"O",\u0230:"O",\u00D6:"O",\u022A:"O",\u1ECE:"O",\u0150:"O",\u01D1:"O",\u020C:"O",\u020E:"O",\u01A0:"O",\u1EDC:"O",\u1EDA:"O",\u1EE0:"O",\u1EDE:"O",\u1EE2:"O",\u1ECC:"O",\u1ED8:"O",\u01EA:"O",\u01EC:"O",\u00D8:"O",\u01FE:"O",\u0186:"O",\u019F:"O","\uA74A":"O","\uA74C":"O",\u01A2:"OI","\uA74E":"OO",\u0222:"OU","\u24C5":"P",\uFF30:"P",\u1E54:"P",\u1E56:"P",\u01A4:"P","\u2C63":"P","\uA750":"P","\uA752":"P","\uA754":"P","\u24C6":"Q",\uFF31:"Q","\uA756":"Q","\uA758":"Q","\u024A":"Q","\u24C7":"R",\uFF32:"R",\u0154:"R",\u1E58:"R",\u0158:"R",\u0210:"R",\u0212:"R",\u1E5A:"R",\u1E5C:"R",\u0156:"R",\u1E5E:"R","\u024C":"R","\u2C64":"R","\uA75A":"R","\uA7A6":"R","\uA782":"R","\u24C8":"S",\uFF33:"S","\u1E9E":"S",\u015A:"S",\u1E64:"S",\u015C:"S",\u1E60:"S",\u0160:"S",\u1E66:"S",\u1E62:"S",\u1E68:"S",\u0218:"S",\u015E:"S","\u2C7E":"S","\uA7A8":"S","\uA784":"S","\u24C9":"T",\uFF34:"T",\u1E6A:"T",\u0164:"T",\u1E6C:"T",\u021A:"T",\u0162:"T",\u1E70:"T",\u1E6E:"T",\u0166:"T",\u01AC:"T",\u01AE:"T","\u023E":"T","\uA786":"T","\uA728":"TZ","\u24CA":"U",\uFF35:"U",\u00D9:"U",\u00DA:"U",\u00DB:"U",\u0168:"U",\u1E78:"U",\u016A:"U",\u1E7A:"U",\u016C:"U",\u00DC:"U",\u01DB:"U",\u01D7:"U",\u01D5:"U",\u01D9:"U",\u1EE6:"U",\u016E:"U",\u0170:"U",\u01D3:"U",\u0214:"U",\u0216:"U",\u01AF:"U",\u1EEA:"U",\u1EE8:"U",\u1EEE:"U",\u1EEC:"U",\u1EF0:"U",\u1EE4:"U",\u1E72:"U",\u0172:"U",\u1E76:"U",\u1E74:"U","\u0244":"U","\u24CB":"V",\uFF36:"V",\u1E7C:"V",\u1E7E:"V",\u01B2:"V","\uA75E":"V","\u0245":"V","\uA760":"VY","\u24CC":"W",\uFF37:"W",\u1E80:"W",\u1E82:"W",\u0174:"W",\u1E86:"W",\u1E84:"W",\u1E88:"W","\u2C72":"W","\u24CD":"X",\uFF38:"X",\u1E8A:"X",\u1E8C:"X","\u24CE":"Y",\uFF39:"Y",\u1EF2:"Y",\u00DD:"Y",\u0176:"Y",\u1EF8:"Y",\u0232:"Y",\u1E8E:"Y",\u0178:"Y",\u1EF6:"Y",\u1EF4:"Y",\u01B3:"Y","\u024E":"Y","\u1EFE":"Y","\u24CF":"Z",\uFF3A:"Z",\u0179:"Z",\u1E90:"Z",\u017B:"Z",\u017D:"Z",\u1E92:"Z",\u1E94:"Z",\u01B5:"Z",\u0224:"Z","\u2C7F":"Z","\u2C6B":"Z","\uA762":"Z","\u24D0":"a",\uFF41:"a",\u1E9A:"a",\u00E0:"a",\u00E1:"a",\u00E2:"a",\u1EA7:"a",\u1EA5:"a",\u1EAB:"a",\u1EA9:"a",\u00E3:"a",\u0101:"a",\u0103:"a",\u1EB1:"a",\u1EAF:"a",\u1EB5:"a",\u1EB3:"a",\u0227:"a",\u01E1:"a",\u00E4:"a",\u01DF:"a",\u1EA3:"a",\u00E5:"a",\u01FB:"a",\u01CE:"a",\u0201:"a",\u0203:"a",\u1EA1:"a",\u1EAD:"a",\u1EB7:"a",\u1E01:"a",\u0105:"a","\u2C65":"a",\u0250:"a","\uA733":"aa",\u00E6:"ae",\u01FD:"ae",\u01E3:"ae","\uA735":"ao","\uA737":"au","\uA739":"av","\uA73B":"av","\uA73D":"ay","\u24D1":"b",\uFF42:"b",\u1E03:"b",\u1E05:"b",\u1E07:"b",\u0180:"b",\u0183:"b",\u0253:"b","\u24D2":"c",\uFF43:"c",\u0107:"c",\u0109:"c",\u010B:"c",\u010D:"c",\u00E7:"c",\u1E09:"c",\u0188:"c","\u023C":"c","\uA73F":"c","\u2184":"c","\u24D3":"d",\uFF44:"d",\u1E0B:"d",\u010F:"d",\u1E0D:"d",\u1E11:"d",\u1E13:"d",\u1E0F:"d",\u0111:"d",\u018C:"d",\u0256:"d",\u0257:"d","\uA77A":"d",\u01F3:"dz",\u01C6:"dz","\u24D4":"e",\uFF45:"e",\u00E8:"e",\u00E9:"e",\u00EA:"e",\u1EC1:"e",\u1EBF:"e",\u1EC5:"e",\u1EC3:"e",\u1EBD:"e",\u0113:"e",\u1E15:"e",\u1E17:"e",\u0115:"e",\u0117:"e",\u00EB:"e",\u1EBB:"e",\u011B:"e",\u0205:"e",\u0207:"e",\u1EB9:"e",\u1EC7:"e",\u0229:"e",\u1E1D:"e",\u0119:"e",\u1E19:"e",\u1E1B:"e","\u0247":"e",\u025B:"e",\u01DD:"e","\u24D5":"f",\uFF46:"f",\u1E1F:"f",\u0192:"f","\uA77C":"f","\u24D6":"g",\uFF47:"g",\u01F5:"g",\u011D:"g",\u1E21:"g",\u011F:"g",\u0121:"g",\u01E7:"g",\u0123:"g",\u01E5:"g",\u0260:"g","\uA7A1":"g","\u1D79":"g","\uA77F":"g","\u24D7":"h",\uFF48:"h",\u0125:"h",\u1E23:"h",\u1E27:"h",\u021F:"h",\u1E25:"h",\u1E29:"h",\u1E2B:"h",\u1E96:"h",\u0127:"h","\u2C68":"h","\u2C76":"h",\u0265:"h",\u0195:"hv","\u24D8":"i",\uFF49:"i",\u00EC:"i",\u00ED:"i",\u00EE:"i",\u0129:"i",\u012B:"i",\u012D:"i",\u00EF:"i",\u1E2F:"i",\u1EC9:"i",\u01D0:"i",\u0209:"i",\u020B:"i",\u1ECB:"i",\u012F:"i",\u1E2D:"i",\u0268:"i",\u0131:"i","\u24D9":"j",\uFF4A:"j",\u0135:"j",\u01F0:"j","\u0249":"j","\u24DA":"k",\uFF4B:"k",\u1E31:"k",\u01E9:"k",\u1E33:"k",\u0137:"k",\u1E35:"k",\u0199:"k","\u2C6A":"k","\uA741":"k","\uA743":"k","\uA745":"k","\uA7A3":"k","\u24DB":"l",\uFF4C:"l",\u0140:"l",\u013A:"l",\u013E:"l",\u1E37:"l",\u1E39:"l",\u013C:"l",\u1E3D:"l",\u1E3B:"l",\u017F:"l",\u0142:"l",\u019A:"l",\u026B:"l","\u2C61":"l","\uA749":"l","\uA781":"l","\uA747":"l",\u01C9:"lj","\u24DC":"m",\uFF4D:"m",\u1E3F:"m",\u1E41:"m",\u1E43:"m",\u0271:"m",\u026F:"m","\u24DD":"n",\uFF4E:"n",\u01F9:"n",\u0144:"n",\u00F1:"n",\u1E45:"n",\u0148:"n",\u1E47:"n",\u0146:"n",\u1E4B:"n",\u1E49:"n",\u019E:"n",\u0272:"n",\u0149:"n","\uA791":"n","\uA7A5":"n",\u01CC:"nj","\u24DE":"o",\uFF4F:"o",\u00F2:"o",\u00F3:"o",\u00F4:"o",\u1ED3:"o",\u1ED1:"o",\u1ED7:"o",\u1ED5:"o",\u00F5:"o",\u1E4D:"o",\u022D:"o",\u1E4F:"o",\u014D:"o",\u1E51:"o",\u1E53:"o",\u014F:"o",\u022F:"o",\u0231:"o",\u00F6:"o",\u022B:"o",\u1ECF:"o",\u0151:"o",\u01D2:"o",\u020D:"o",\u020F:"o",\u01A1:"o",\u1EDD:"o",\u1EDB:"o",\u1EE1:"o",\u1EDF:"o",\u1EE3:"o",\u1ECD:"o",\u1ED9:"o",\u01EB:"o",\u01ED:"o",\u00F8:"o",\u01FF:"o",\u0254:"o","\uA74B":"o","\uA74D":"o",\u0275:"o",\u01A3:"oi",\u0223:"ou","\uA74F":"oo","\u24DF":"p",\uFF50:"p",\u1E55:"p",\u1E57:"p",\u01A5:"p","\u1D7D":"p","\uA751":"p","\uA753":"p","\uA755":"p","\u24E0":"q",\uFF51:"q","\u024B":"q","\uA757":"q","\uA759":"q","\u24E1":"r",\uFF52:"r",\u0155:"r",\u1E59:"r",\u0159:"r",\u0211:"r",\u0213:"r",\u1E5B:"r",\u1E5D:"r",\u0157:"r",\u1E5F:"r","\u024D":"r",\u027D:"r","\uA75B":"r","\uA7A7":"r","\uA783":"r","\u24E2":"s",\uFF53:"s",\u00DF:"s",\u015B:"s",\u1E65:"s",\u015D:"s",\u1E61:"s",\u0161:"s",\u1E67:"s",\u1E63:"s",\u1E69:"s",\u0219:"s",\u015F:"s","\u023F":"s","\uA7A9":"s","\uA785":"s",\u1E9B:"s","\u24E3":"t",\uFF54:"t",\u1E6B:"t",\u1E97:"t",\u0165:"t",\u1E6D:"t",\u021B:"t",\u0163:"t",\u1E71:"t",\u1E6F:"t",\u0167:"t",\u01AD:"t",\u0288:"t","\u2C66":"t","\uA787":"t","\uA729":"tz","\u24E4":"u",\uFF55:"u",\u00F9:"u",\u00FA:"u",\u00FB:"u",\u0169:"u",\u1E79:"u",\u016B:"u",\u1E7B:"u",\u016D:"u",\u00FC:"u",\u01DC:"u",\u01D8:"u",\u01D6:"u",\u01DA:"u",\u1EE7:"u",\u016F:"u",\u0171:"u",\u01D4:"u",\u0215:"u",\u0217:"u",\u01B0:"u",\u1EEB:"u",\u1EE9:"u",\u1EEF:"u",\u1EED:"u",\u1EF1:"u",\u1EE5:"u",\u1E73:"u",\u0173:"u",\u1E77:"u",\u1E75:"u",\u0289:"u","\u24E5":"v",\uFF56:"v",\u1E7D:"v",\u1E7F:"v",\u028B:"v","\uA75F":"v",\u028C:"v","\uA761":"vy","\u24E6":"w",\uFF57:"w",\u1E81:"w",\u1E83:"w",\u0175:"w",\u1E87:"w",\u1E85:"w",\u1E98:"w",\u1E89:"w","\u2C73":"w","\u24E7":"x",\uFF58:"x",\u1E8B:"x",\u1E8D:"x","\u24E8":"y",\uFF59:"y",\u1EF3:"y",\u00FD:"y",\u0177:"y",\u1EF9:"y",\u0233:"y",\u1E8F:"y",\u00FF:"y",\u1EF7:"y",\u1E99:"y",\u1EF5:"y",\u01B4:"y","\u024F":"y","\u1EFF":"y","\u24E9":"z",\uFF5A:"z",\u017A:"z",\u1E91:"z",\u017C:"z",\u017E:"z",\u1E93:"z",\u1E95:"z",\u01B6:"z",\u0225:"z","\u0240":"z","\u2C6C":"z","\uA763":"z",\u0386:"\u0391",\u0388:"\u0395",\u0389:"\u0397",\u038A:"\u0399",\u03AA:"\u0399",\u038C:"\u039F",\u038E:"\u03A5",\u03AB:"\u03A5",\u038F:"\u03A9",\u03AC:"\u03B1",\u03AD:"\u03B5",\u03AE:"\u03B7",\u03AF:"\u03B9",\u03CA:"\u03B9",\u0390:"\u03B9",\u03CC:"\u03BF",\u03CD:"\u03C5",\u03CB:"\u03C5",\u03B0:"\u03C5",\u03C9:"\u03C9",\u03C2:"\u03C3"};function VC(t){let n=e=>Sme[e]||e;return t.replace(/[^\u0000-\u007E]/g,n)}var wI=class{constructor(n,e){this._ngSelect=n,this._selectionModel=e,this._items=[],this._filteredItems=[],this._markedIndex=-1}get items(){return this._items}get filteredItems(){return this._filteredItems}get markedIndex(){return this._markedIndex}get selectedItems(){return this._selectionModel.value}get markedItem(){return this._filteredItems[this._markedIndex]}get noItemsToSelect(){return this._ngSelect.hideSelected()&&this._items.length===this.selectedItems.length}get maxItemsSelected(){return this._ngSelect.multiple()&&this._ngSelect.maxSelectedItems()<=this.selectedItems.length}get lastSelectedItem(){let n=this.selectedItems.length-1;for(;n>=0;n--){let e=this.selectedItems[n];if(!e.disabled)return e}return null}setItems(n){this._items=n.map((i,r)=>this.mapItem(i,r));let e=this._ngSelect.groupBy();e?(this._groups=this._groupBy(this._items,e),this._items=this._flatten(this._groups)):(this._groups=new Map,this._groups.set(void 0,this._items)),this._filteredItems=[...this._items]}select(n){if(n.selected||this.maxItemsSelected)return;let e=this._ngSelect.multiple();e||this.clearSelected(),this._selectionModel.select(n,e,this._ngSelect.selectableGroupAsModel()),this._ngSelect.hideSelected()&&this._hideSelected(n)}unselect(n){if(!n.selected)return;let e=this._ngSelect.multiple();this._selectionModel.unselect(n,e),this._ngSelect.hideSelected()&&on(n.index)&&e&&this._showSelected(n)}findItem(n){let e;return this._ngSelect.compareWith()?e=i=>this._ngSelect.compareWith()(i.value,n):this._ngSelect.bindValue()?e=i=>!i.children&&this.resolveNested(i.value,this._ngSelect.bindValue())===n:e=i=>i.value===n||!i.children&&i.label&&i.label===this.resolveNested(n,this._ngSelect.bindLabel()),this._items.find(i=>e(i))}addItem(n){let e=this.mapItem(n,this._items.length);return this._items.push(e),this._filteredItems.push(e),e}clearSelected(n=!1){this._selectionModel.clear(n),this._items.forEach(e=>{e.selected=n&&e.selected&&e.disabled,e.marked=!1}),this._ngSelect.hideSelected()&&this.resetFilteredItems()}findByLabel(n){return n=VC(n).toLocaleLowerCase(),this.filteredItems.find(e=>VC(e.label).toLocaleLowerCase().substr(0,n.length)===n)}filter(n){if(!n){this.resetFilteredItems();return}this._filteredItems=[],n=this._ngSelect.searchFn()?n:VC(n).toLocaleLowerCase();let e=this._ngSelect.searchFn()||this._defaultSearchFn,i=this._ngSelect.hideSelected();for(let r of Array.from(this._groups.keys())){let o=[];for(let a of this._groups.get(r)){if(i&&(a.parent&&a.parent.selected||a.selected))continue;let s=this._ngSelect.searchFn()?a.value:a;e(n,s)&&o.push(a)}if(o.length>0){let[a]=o.slice(-1);if(a.parent){let s=this._items.find(l=>l===a.parent);this._filteredItems.push(s)}this._filteredItems.push(...o)}}}resetFilteredItems(){this._filteredItems.length!==this._items.length&&(this._ngSelect.hideSelected()&&this.selectedItems.length>0?this._filteredItems=this._items.filter(n=>!n.selected):this._filteredItems=this._items)}unmarkItem(){this._markedIndex=-1}markNextItem(){this._stepToItem(1)}markPreviousItem(){this._stepToItem(-1)}markItem(n){this._markedIndex=this._filteredItems.indexOf(n)}markSelectedOrDefault(n){if(this._filteredItems.length===0)return;let e=this._getLastMarkedIndex();e>-1?this._markedIndex=e:this._markedIndex=n?this.filteredItems.findIndex(i=>!i.disabled):-1}resolveNested(n,e){if(!Pu(n))return n;if(e.indexOf(".")===-1)return n[e];{let i=e.split("."),r=n;for(let o=0,a=i.length;othis._ngSelect.compareWith()(o.value,e.value));else{let o=i?this.resolveNested(e.value,i):e.value;r=on(o)?this.findItem(o):null}this._selectionModel.unselect(e,n),this._selectionModel.select(r||e,n,this._ngSelect.selectableGroupAsModel())}this._ngSelect.hideSelected()&&(this._filteredItems=this.filteredItems.filter(e=>this.selectedItems.indexOf(e)===-1))}_showSelected(n){if(this._filteredItems.push(n),n.parent){let e=n.parent;this._filteredItems.find(r=>r===e)||this._filteredItems.push(e)}else if(n.children)for(let e of n.children)e.selected=!1,this._filteredItems.push(e);this._filteredItems=[...this._filteredItems.sort((e,i)=>e.index-i.index)]}_hideSelected(n){this._filteredItems=this._filteredItems.filter(e=>e!==n),n.parent?n.parent.children.every(i=>i.selected)&&(this._filteredItems=this._filteredItems.filter(i=>i!==n.parent)):n.children&&(this._filteredItems=this.filteredItems.filter(e=>e.parent!==n))}_defaultSearchFn(n,e){return VC(e.label).toLocaleLowerCase().indexOf(n)>-1}_getNextItemIndex(n){return n>0?this._markedIndex>=this._filteredItems.length-1?0:this._markedIndex+1:this._markedIndex<=0?this._filteredItems.length-1:this._markedIndex-1}_stepToItem(n){this._filteredItems.length===0||this._filteredItems.every(e=>e.disabled)||(this._markedIndex=this._getNextItemIndex(n),this.markedItem.disabled&&this._stepToItem(n))}_getLastMarkedIndex(){if(this._ngSelect.hideSelected()||this._markedIndex>-1&&this.markedItem===void 0)return-1;let n=this._filteredItems.indexOf(this.lastSelectedItem);return this.lastSelectedItem&&n<0?-1:Math.max(this.markedIndex,n)}_groupBy(n,e){let i=new Map;if(n.length===0)return i;if(Array.isArray(n[0].value[e])){for(let a of n){let s=(a.value[e]||[]).map((l,c)=>this.mapItem(l,c));i.set(a,s)}return i}let r=BC(this._ngSelect.groupBy()),o=a=>{let s=r?e(a.value):a.value[e];return on(s)?s:void 0};for(let a of n){let s=o(a),l=i.get(s);l?l.push(a):i.set(s,[a])}return i}_flatten(n){let e=BC(this._ngSelect.groupBy()),i=[];for(let r of Array.from(n.keys())){let o=i.length;if(r===void 0){let p=n.get(void 0)||[];i.push(...p.map(_=>(_.index=o++,_)));continue}let a=Pu(r),s={label:a?"":String(r),children:void 0,parent:null,index:o++,disabled:!this._ngSelect.selectableGroup(),htmlId:kz()},l=e?this._ngSelect.bindLabel():this._ngSelect.groupBy(),c=this._ngSelect.groupValue()||(()=>a?r.value:{[l]:r}),d=n.get(r).map(p=>(p.parent=s,p.children=void 0,p.index=o++,p));s.children=d,s.value=c(r,d.map(p=>p.value)),i.push(s),i.push(...d)}return i}},Tz=(()=>{let n=class n{constructor(){this._dimensions={itemHeight:0,panelHeight:0,itemsPerViewport:0}}get dimensions(){return this._dimensions}calculateItems(i,r,o){let a=this._dimensions,s=a.itemHeight*r,c=Math.max(0,i)/s*r,d=Math.min(r,Math.ceil(c)+(a.itemsPerViewport+1)),_=Math.max(0,d-a.itemsPerViewport),b=Math.min(_,Math.floor(c)),y=a.itemHeight*Math.ceil(b)-a.itemHeight*Math.min(b,o);return y=isNaN(y)?0:y,b=isNaN(b)?-1:b,d=isNaN(d)?-1:d,b-=o,b=Math.max(0,b),d+=o,d=Math.min(r,d),{topPadding:y,scrollHeight:s,start:b,end:d}}setDimensions(i,r){let o=Math.max(1,Math.floor(r/i));this._dimensions={itemHeight:i,panelHeight:r,itemsPerViewport:o}}getScrollTo(i,r,o){let{panelHeight:a}=this.dimensions,s=i+r,l=o,c=l+a;return a>=s&&o===i?null:s>c?l+s-c:i<=l?i:null}};n.\u0275fac=function(r){return new(r||n)},n.\u0275prov=R({token:n,factory:n.\u0275fac});let t=n;return t})(),Dz=["top","right","bottom","left"],kme=typeof requestAnimationFrame<"u"?Z_:Y_,CI=(()=>{let n=class n{get currentPosition(){return this._currentPosition}get itemsLength(){return this._itemsLength}set itemsLength(i){i!==this._itemsLength&&(this._itemsLength=i,this._onItemsLengthChanged())}get _startOffset(){if(this.markedItem()){let{itemHeight:i,panelHeight:r}=this._panelService.dimensions,o=this.markedItem().index*i;return r>o?0:o}return 0}constructor(){this._renderer=u(ze),this._zone=u(ae),this._panelService=u(Tz),this._document=u(_e,{optional:!0}),this._destroyRef=u(ln),this._dropdown=u(Y).nativeElement,this.items=re([]),this.showAddTag=re(!1,{transform:L}),this.markedItem=re(void 0),this.position=re("auto"),this.appendTo=re(void 0),this.bufferAmount=re(void 0),this.virtualScroll=re(!1,{transform:L}),this.headerTemplate=re(void 0),this.footerTemplate=re(void 0),this.filterValue=re(null),this.ariaLabelDropdown=re(null),this.outsideClickEvent=re("click"),this.update=Ei(),this.scroll=Ei(),this.scrollToEnd=Ei(),this.outsideClick=Ei(),this.contentElementRef=ir("content",{read:Y}),this.scrollElementRef=ir("scroll",{read:Y}),this.paddingElementRef=ir("padding",{read:Y}),this._virtualPadding=ci(()=>this.paddingElementRef()?.nativeElement),this._scrollablePanel=ci(()=>this.scrollElementRef()?.nativeElement),this._contentPanel=ci(()=>this.contentElementRef()?.nativeElement),this._scrollToEndFired=!1,this._updateScrollHeight=!1,this._lastScrollPosition=0,this._destroyRef.onDestroy(()=>{this.appendTo()&&this._renderer.removeChild(this._dropdown.parentNode,this._dropdown)})}ngOnInit(){this._select=this._dropdown.parentElement,this._handleScroll(),this._handleOutsideClick(),this._appendDropdown(),this._setupMousedownListener()}ngOnChanges(i){if(i.items){let r=i.items;this._onItemsOrShowAddTagChange(r.currentValue,this.showAddTag(),r.firstChange)}if(i.showAddTag){let r=i.showAddTag;this._onItemsOrShowAddTagChange(this.items(),r.currentValue,r.firstChange)}}scrollTo(i,r=!1){if(!i)return;let o=this.items().indexOf(i);if(o<0||o>=this.itemsLength)return;let a;if(this.virtualScroll()){let s=this._panelService.dimensions.itemHeight;a=this._panelService.getScrollTo(o*s,s,this._lastScrollPosition)}else{let s=this._dropdown.querySelector(`#${i.htmlId}`),l=r?s.offsetTop:this._lastScrollPosition;a=this._panelService.getScrollTo(s.offsetTop,s.clientHeight,l)}on(a)&&(this._scrollablePanel().scrollTop=a)}scrollToTag(){let i=this._scrollablePanel();i.scrollTop=i.scrollHeight-i.clientHeight}adjustPosition(){this._updateYPosition()}_handleDropdownPosition(){this._currentPosition=this._calculateCurrentPosition(this._dropdown),Dz.includes(this._currentPosition)?this._updateDropdownClass(this._currentPosition):this._updateDropdownClass("bottom"),this.appendTo()&&this._updateYPosition(),this._dropdown.style.opacity="1"}_updateDropdownClass(i){Dz.forEach(o=>{let a=`ng-select-${o}`;this._renderer.removeClass(this._dropdown,a),this._renderer.removeClass(this._select,a)});let r=`ng-select-${i}`;this._renderer.addClass(this._dropdown,r),this._renderer.addClass(this._select,r)}_handleScroll(){this._zone.runOutsideAngular(()=>{this._scrollablePanel()&&ol(this._scrollablePanel(),"scroll").pipe(Ru(this._destroyRef),Xl(0,kme)).subscribe(i=>{let r=i.target;r&&"scrollTop"in r&&this._onContentScrolled(r.scrollTop)})})}_handleOutsideClick(){this._document&&this._zone.runOutsideAngular(()=>{ol(this._document,this.outsideClickEvent(),{capture:!0}).pipe(Ru(this._destroyRef)).subscribe(i=>this._checkToClose(i))})}_checkToClose(i){if(this._select.contains(i.target)||this._dropdown.contains(i.target))return;let r=i.path||i.composedPath&&i.composedPath();i.target&&i.target.shadowRoot&&r&&r[0]&&this._select.contains(r[0])||this._zone.run(()=>this.outsideClick.emit())}_onItemsOrShowAddTagChange(i=[],r,o){this._scrollToEndFired=!1,this.itemsLength=i.length,r&&i.length&&this.itemsLength++,this.virtualScroll()?this._updateItemsRange(o):(this._setVirtualHeight(),this._updateItems(o))}_updateItems(i){this.update.emit(this.items()),i!==!1&&this._zone.runOutsideAngular(()=>{Promise.resolve().then(()=>{let r=this._scrollablePanel().clientHeight;this._panelService.setDimensions(0,r),this._handleDropdownPosition(),this.scrollTo(this.markedItem(),i)})})}_updateItemsRange(i){this._zone.runOutsideAngular(()=>{this._measureDimensions().then(()=>{i?(this._renderItemsRange(this._startOffset),this._handleDropdownPosition()):this._renderItemsRange()})})}_onContentScrolled(i){this.virtualScroll()&&this._renderItemsRange(i),this._lastScrollPosition=i,this._fireScrollToEnd(i)}_updateVirtualHeight(i){this._updateScrollHeight&&(this._virtualPadding().style.height=`${i}px`,this._updateScrollHeight=!1)}_setVirtualHeight(){this._virtualPadding()&&(this._virtualPadding().style.height="0px")}_onItemsLengthChanged(){this._updateScrollHeight=!0}_renderItemsRange(i=null){if(i&&this._lastScrollPosition===i)return;i=i||this._scrollablePanel().scrollTop;let r=this._panelService.calculateItems(i,this.itemsLength,this.bufferAmount());this._updateVirtualHeight(r.scrollHeight),this._contentPanel().style.transform=`translateY(${r.topPadding}px)`,this._zone.run(()=>{this.update.emit(this.items().slice(r.start,r.end)),this.scroll.emit({start:r.start,end:r.end})}),on(i)&&this._lastScrollPosition===0&&(this._scrollablePanel().scrollTop=i,this._lastScrollPosition=i)}_measureDimensions(){if(this._panelService.dimensions.itemHeight>0||this.itemsLength===0)return Promise.resolve(this._panelService.dimensions);let[i]=this.items();return this.update.emit([i]),Promise.resolve().then(()=>{let o=this._dropdown.querySelector(`#${i.htmlId}`).clientHeight;this._virtualPadding().style.height=`${o*this.itemsLength}px`;let a=this._scrollablePanel().clientHeight;return this._panelService.setDimensions(o,a),this._panelService.dimensions})}_fireScrollToEnd(i){if(this._scrollToEndFired||i===0)return;let r=this.virtualScroll()?this._virtualPadding():this._contentPanel();i+this._dropdown.clientHeight>=r.clientHeight-1&&(this._zone.run(()=>this.scrollToEnd.emit()),this._scrollToEndFired=!0)}_calculateCurrentPosition(i){let r=this.position();if(r!=="auto")return r;let o=this._select.getBoundingClientRect(),a=document.documentElement.scrollTop||document.body.scrollTop,s=o.top+window.pageYOffset,l=o.height,c=i.getBoundingClientRect().height;return s+l+c>a+document.documentElement.clientHeight?"top":"bottom"}_appendDropdown(){if(this.appendTo()){if(this._parent=this._dropdown.shadowRoot?this._dropdown.shadowRoot.querySelector(this.appendTo()):document.querySelector(this.appendTo()),!this._parent)throw new Error(`appendTo selector ${this.appendTo()} did not found any parent element`);this._updateXPosition(),this._parent.appendChild(this._dropdown)}}_updateXPosition(){let i=this._select.getBoundingClientRect(),r=this._parent.getBoundingClientRect(),o=document.documentElement.dir==="rtl",a=i.left-r.left;if(o){let s=r.right-i.right;this._dropdown.style.right=s+"px",this._dropdown.style.left="auto"}else this._dropdown.style.left=a+"px",this._dropdown.style.right="auto";this._dropdown.style.width=i.width+"px",this._dropdown.style.minWidth=i.width+"px"}_updateYPosition(){let i=this._select.getBoundingClientRect(),r=this._parent.getBoundingClientRect(),o=i.height;if(this._currentPosition==="top"){let a=r.bottom-i.bottom;this._dropdown.style.bottom=a+o+"px",this._dropdown.style.top="auto"}else if(this._currentPosition==="bottom"){let a=i.top-r.top;this._dropdown.style.top=a+o+"px",this._dropdown.style.bottom="auto"}}_setupMousedownListener(){this._zone.runOutsideAngular(()=>{ol(this._dropdown,"mousedown").pipe(Ru(this._destroyRef)).subscribe(i=>{i.target.tagName!=="INPUT"&&i.preventDefault()})})}};n.\u0275fac=function(r){return new(r||n)},n.\u0275cmp=E({type:n,selectors:[["ng-dropdown-panel"]],viewQuery:function(r,o){r&1&&(zn(o.contentElementRef,Oue,5,Y),zn(o.scrollElementRef,Rue,5,Y),zn(o.paddingElementRef,Pue,5,Y)),r&2&&Ko(3)},inputs:{items:[1,"items"],showAddTag:[1,"showAddTag"],markedItem:[1,"markedItem"],position:[1,"position"],appendTo:[1,"appendTo"],bufferAmount:[1,"bufferAmount"],virtualScroll:[1,"virtualScroll"],headerTemplate:[1,"headerTemplate"],footerTemplate:[1,"footerTemplate"],filterValue:[1,"filterValue"],ariaLabelDropdown:[1,"ariaLabelDropdown"],outsideClickEvent:[1,"outsideClickEvent"]},outputs:{update:"update",scroll:"scroll",scrollToEnd:"scrollToEnd",outsideClick:"outsideClick"},features:[Oe],ngContentSelectors:Ez,decls:9,vars:7,consts:[["scroll",""],["padding",""],["content",""],[1,"ng-dropdown-header"],["role","listbox",1,"ng-dropdown-panel-items","scroll-host"],[1,"ng-dropdown-footer"],[3,"ngTemplateOutlet","ngTemplateOutletContext"]],template:function(r,o){r&1&&(Ee(),V(0,Fue,2,4,"div",3),m(1,"div",4,0),M(3,"div",null,1),m(5,"div",null,2),ne(7),h()(),V(8,Nue,2,4,"div",5)),r&2&&(B(o.headerTemplate()?0:-1),g(),X("aria-label",o.ariaLabelDropdown()),g(2),G("total-padding",o.virtualScroll()),g(2),G("scrollable-content",o.virtualScroll()&&o.items().length),g(3),B(o.footerTemplate()?8:-1))},dependencies:[$n],encapsulation:2,changeDetection:0});let t=n;return t})(),Mz=(()=>{let n=class n{constructor(){this.value=re(),this.disabled=re(!1,{transform:L}),this.elementRef=u(Y),this.label=he(""),vt(()=>{let i=(this.elementRef.nativeElement.innerHTML||"").trim();i!==this.label()&&this.label.set(i)})}};n.\u0275fac=function(r){return new(r||n)},n.\u0275cmp=E({type:n,selectors:[["ng-option"]],inputs:{value:[1,"value"],disabled:[1,"disabled"]},ngContentSelectors:Ez,decls:1,vars:0,template:function(r,o){r&1&&(Ee(),ne(0))},encapsulation:2,changeDetection:0});let t=n;return t})(),Zs=(function(t){return t.Tab="Tab",t.Enter="Enter",t.Esc="Escape",t.Space=" ",t.ArrowUp="ArrowUp",t.ArrowDown="ArrowDown",t.Backspace="Backspace",t})(Zs||{});function Iz(){return new DI}var DI=class{constructor(){this._selected=[]}get value(){return this._selected}select(n,e,i){if(n.selected=!0,(!n.children||!e&&i)&&this._selected.push(n),e)if(n.parent){let r=n.parent.children.length,o=n.parent.children.filter(a=>a.selected).length;n.parent.selected=r===o}else n.children&&(this._setChildrenSelectedState(n.children,!0),this._removeChildren(n),i&&this._activeChildren(n)?this._selected=[...this._selected.filter(r=>r.parent!==n),n]:this._selected=[...this._selected,...n.children.filter(r=>!r.disabled)])}unselect(n,e){if(this._selected=this._selected.filter(i=>i!==n),n.selected=!1,e)if(n.parent&&n.parent.selected){let i=n.parent.children;this._removeParent(n.parent),this._removeChildren(n.parent),this._selected.push(...i.filter(r=>r!==n&&!r.disabled)),n.parent.selected=!1}else n.children&&(this._setChildrenSelectedState(n.children,!1),this._removeChildren(n))}clear(n){this._selected=n?this._selected.filter(e=>e.disabled):[]}_setChildrenSelectedState(n,e){for(let i of n)i.disabled||(i.selected=e)}_removeChildren(n){this._selected=[...this._selected.filter(e=>e.parent!==n),...n.children.filter(e=>e.parent===n&&e.disabled&&e.selected)]}_removeParent(n){this._selected=this._selected.filter(e=>e!==n)}_activeChildren(n){return n.children.every(e=>!e.disabled||e.selected)}},Az=new O("ng-select-selection-model"),Oz=(()=>{let n=class n{constructor(){this.classes=u(new Li("class"),{optional:!0}),this.config=u(Mme),this._cd=u(ye),this._console=u(Eme),this._destroyRef=u(ln),this._disabled=he(!1),this.ariaLabelDropdown=re("Options List"),this.ariaLabel=re(void 0),this.markFirst=re(!0,{transform:L}),this.placeholder=re(this.config.placeholder),this.fixedPlaceholder=re(!0),this.notFoundText=re(void 0),this.typeToSearchText=re(void 0),this.preventToggleOnRightClick=re(!1),this.addTagText=re(void 0),this.loadingText=re(void 0),this.clearAllText=re(void 0),this.dropdownPosition=re("auto"),this.appendTo=re(void 0),this.outsideClickEvent=re(this.config.outsideClickEvent),this.loading=re(!1,{transform:L}),this.closeOnSelect=re(!0,{transform:L}),this.hideSelected=re(!1,{transform:L}),this.selectOnTab=re(!1,{transform:L}),this.openOnEnter=re(void 0,{transform:L}),this.maxSelectedItems=re(void 0,{transform:ht}),this.groupBy=re(void 0),this.groupValue=re(void 0),this.bufferAmount=re(4,{transform:ht}),this.virtualScroll=re(void 0,{transform:L}),this.selectableGroup=re(!1,{transform:L}),this.tabFocusOnClearButton=re(),this.selectableGroupAsModel=re(!0,{transform:L}),this.searchFn=re(null),this.trackByFn=re(null),this.clearOnBackspace=re(!0,{transform:L}),this.labelForId=re(null),this.inputAttrs=re({}),this.tabIndex=re(void 0,{transform:ht}),this.readonly=re(!1,{transform:L}),this.searchWhileComposing=re(!0,{transform:L}),this.minTermLength=re(0,{transform:ht}),this.editableSearchTerm=re(!1,{transform:L}),this.ngClass=re(null),this.typeahead=re(void 0),this.multiple=re(!1,{transform:L}),this.addTag=re(!1),this.searchable=re(!0,{transform:L}),this.clearable=re(!0,{transform:L}),this.deselectOnClick=re(),this.clearSearchOnAdd=re(void 0),this.compareWith=re(void 0,{transform:a=>{if(a!=null&&!BC(a))throw Error("`compareWith` must be a function.");return a}}),this.keyDownFn=re(a=>!0),this.bindLabel=Im(void 0),this.bindValue=Im(void 0),this.appearance=Im(void 0),this.isOpen=Im(!1),this.items=Im([]),this.blurEvent=Ei({alias:"blur"}),this.focusEvent=Ei({alias:"focus"}),this.changeEvent=Ei({alias:"change"}),this.openEvent=Ei({alias:"open"}),this.closeEvent=Ei({alias:"close"}),this.searchEvent=Ei({alias:"search"}),this.clearEvent=Ei({alias:"clear"}),this.addEvent=Ei({alias:"add"}),this.removeEvent=Ei({alias:"remove"}),this.scroll=Ei({alias:"scroll"}),this.scrollToEnd=Ei({alias:"scrollToEnd"}),this.disabled=ci(()=>this.readonly()||this._disabled()),this.clearSearchOnAddValue=ci(()=>on(this.clearSearchOnAdd())?this.clearSearchOnAdd():on(this.config.clearSearchOnAdd)?this.config.clearSearchOnAdd:this.closeOnSelect()),this.deselectOnClickValue=ci(()=>on(this.deselectOnClick())?this.deselectOnClick():on(this.config.deselectOnClick)?this.config.deselectOnClick:this.multiple()),this.optionTemplate=Mr(jC,{read:te}),this.optgroupTemplate=Mr(HC,{read:te}),this.labelTemplate=Mr(zC,{read:te}),this.multiLabelTemplate=Mr(UC,{read:te}),this.headerTemplate=Mr($C,{read:te}),this.footerTemplate=Mr(WC,{read:te}),this.notFoundTemplate=Mr(GC,{read:te}),this.placeholderTemplate=Mr(qC,{read:te}),this.typeToSearchTemplate=Mr(YC,{read:te}),this.loadingTextTemplate=Mr(QC,{read:te}),this.tagTemplate=Mr(KC,{read:te}),this.loadingSpinnerTemplate=Mr(ZC,{read:te}),this.clearButtonTemplate=Mr(XC,{read:te}),this.ngOptions=u2(Mz,{descendants:!0}),this.dropdownPanel=ir(li(()=>CI)),this.searchInput=ir("searchInput"),this.clearButton=ir("clearButton"),this.dropdownId=kz(),this.escapeHTML=!0,this.viewPortItems=[],this.tabFocusOnClear=he(!0),this.autoFocus=u(new Li("autofocus"),{optional:!0}),this._defaultLabel="label",this._editableSearchTerm=ci(()=>this.editableSearchTerm()&&!this.multiple()),this._injector=u(de),this._isComposing=!1,this._keyPress$=new z,this._pressedKeys=[],this._searchTerm=he(null),this._validTerm=ci(()=>{let a=this._searchTerm()?.trim();return a&&a.length>=this.minTermLength()}),this.clearItem=a=>{let s=this.selectedItems.find(l=>l.value===a);this.unselect(s)},this.trackByOption=(a,s)=>this.trackByFn()?this.trackByFn()(s.value):s,this._onChange=a=>{},this._onTouched=()=>{};let i=this.config,r=u(Az,{optional:!0}),o=u(Y);this._mergeGlobalConfig(i),this.itemsList=new wI(this,r?r():Iz()),this.element=o.nativeElement}get filtered(){return!!this.searchTerm&&this.searchable()||this._isComposing}get focused(){return this._focused}get searchTerm(){return this._searchTerm()}get selectedItems(){return this.itemsList.selectedItems}get selectedValues(){return this.selectedItems.map(i=>i.value)}get hasValue(){return this.selectedItems.length>0}get currentPanelPosition(){if(this.dropdownPanel())return this.dropdownPanel().currentPosition}get showAddTag(){if(!this._validTerm())return!1;let i=this.searchTerm.toLowerCase().trim();return this.addTag()&&!this.itemsList.filteredItems.some(r=>r.label.toLowerCase()===i)&&(!this.hideSelected()&&this.isOpen()||!this.selectedItems.some(r=>r.label.toLowerCase()===i))&&!this.loading()}ngOnInit(){this._handleKeyPresses(),this._setInputAttributes()}ngOnChanges(i){i.multiple&&this.itemsList.clearSelected(),i.items&&(this._itemsAreUsed=!0,this._setItems(i.items.currentValue||[])),i.isOpen&&(this._manualOpen=on(i.isOpen.currentValue)),i.groupBy&&(i.items||this._setItems([...this.items()])),i.inputAttrs&&this._setInputAttributes(),this._setTabFocusOnClear()}ngAfterViewInit(){this._itemsAreUsed||(this.escapeHTML=!1,this._setItemsFromNgOptions()),on(this.autoFocus)&&this.focus()}handleKeyDown(i){let r=i.key;if(Object.values(Zs).includes(r)){if(this.keyDownFn()(i)===!1)return;this.handleKeyCode(i)}else r&&r.length===1&&this._keyPress$.next(r.toLocaleLowerCase())}handleKeyCode(i){let r=i.target;this.clearButton()&&this.clearButton().nativeElement===r?this.handleKeyCodeClear(i):this.handleKeyCodeInput(i)}handleKeyCodeInput(i){switch(i.key){case Zs.ArrowDown:this._handleArrowDown(i);break;case Zs.ArrowUp:this._handleArrowUp(i);break;case Zs.Space:this._handleSpace(i);break;case Zs.Enter:this._handleEnter(i);break;case Zs.Tab:this._handleTab(i);break;case Zs.Esc:this.close(),i.preventDefault();break;case Zs.Backspace:this._handleBackspace();break}}handleKeyCodeClear(i){switch(i.key){case Zs.Enter:this.handleClearClick(),i.preventDefault();break}}handleMousedown(i){if(this.disabled())return;if(this.preventToggleOnRightClick()&&i.button===2)return!1;let r=i.target;if(r.tagName!=="INPUT"&&i.preventDefault(),!r.classList.contains("ng-clear-wrapper")){if(r.classList.contains("ng-arrow-wrapper")){this.handleArrowClick();return}r.classList.contains("ng-value-icon")||(this._focused||this.focus(),this.searchable()?this.open():this.toggle())}}handleArrowClick(){this.isOpen()?this.close():this.open()}handleClearClick(i){this.hasValue&&(this.itemsList.clearSelected(!0),this._updateNgModel()),this._clearSearch(),this.focus(),this.clearEvent.emit(),this._onSelectionChanged()}clearModel(){this.clearable()&&(this.itemsList.clearSelected(),this._updateNgModel())}writeValue(i){this.itemsList.clearSelected(),this._handleWriteValue(i),this._editableSearchTerm()&&this._setSearchTermFromItems(),this._cd.markForCheck()}registerOnChange(i){this._onChange=i}registerOnTouched(i){this._onTouched=i}setDisabledState(i){this._disabled.set(i),this._cd.markForCheck()}toggle(){this.isOpen()?this.close():this.open()}open(){this.disabled()||this.isOpen()||this._manualOpen||!this.typeahead()?.observed&&!this.addTag()&&this.itemsList.noItemsToSelect||(this.isOpen.set(!0),this.itemsList.markSelectedOrDefault(this.markFirst()),this.openEvent.emit(),this.searchTerm||this.focus(),this.detectChanges())}close(){!this.isOpen()||this._manualOpen||(this.isOpen.set(!1),this._isComposing=!1,this._editableSearchTerm()?this.itemsList.resetFilteredItems():this._clearSearch(),this.itemsList.unmarkItem(),this._onTouched(),this.closeEvent.emit(),this._cd.markForCheck())}toggleItem(i){!i||i.disabled||this.disabled()||(this.deselectOnClickValue()&&i.selected?this.unselect(i):this.select(i),this._editableSearchTerm()&&this._setSearchTermFromItems())}select(i){i.selected||(this.itemsList.select(i),this.clearSearchOnAddValue()&&!this._editableSearchTerm()&&this._clearSearch(),this._updateNgModel(),this.multiple()&&this.addEvent.emit(i.value)),(this.closeOnSelect()||this.itemsList.noItemsToSelect)&&this.close(),this._onSelectionChanged()}focus(){this.searchInput().nativeElement.focus()}blur(){this.searchInput().nativeElement.blur()}unselect(i){i&&(this.itemsList.unselect(i),this.focus(),this._updateNgModel(),this.removeEvent.emit(i.value),this._onSelectionChanged())}selectTag(){let i;BC(this.addTag())?i=this.addTag()(this.searchTerm):i=this._primitive?this.searchTerm:{[this.bindLabel()]:this.searchTerm};let r=o=>this.typeahead()?.observed||!this.isOpen()?this.itemsList.mapItem(o,null):this.itemsList.addItem(o);wme(i)?i.then(o=>this.select(r(o))).catch(()=>{}):i&&this.select(r(i))}showClear(){return this.clearable()&&(this.hasValue||this.searchTerm)&&!this.disabled()}focusOnClear(){this.blur(),this.clearButton()&&this.clearButton().nativeElement.focus()}showNoItemsFound(){let i=this.itemsList.filteredItems.length===0;return(i&&!this.typeahead()?.observed&&!this.loading()||i&&this.typeahead()?.observed&&this._validTerm()&&!this.loading())&&!this.showAddTag}showTypeToSearch(){return this.itemsList.filteredItems.length===0&&this.typeahead()?.observed&&!this._validTerm()&&!this.loading()}onCompositionStart(){this._isComposing=!0}onCompositionEnd(i){this._isComposing=!1,!this.searchWhileComposing()&&this.filter(i)}filter(i){this._isComposing&&!this.searchWhileComposing()||(this._searchTerm.set(i),this.typeahead()?.observed&&(this._validTerm()||this.minTermLength()===0)&&this.typeahead().next(i),this.typeahead()?.observed||(this.itemsList.filter(i),this.isOpen()&&this.itemsList.markSelectedOrDefault(this.markFirst())),this.searchEvent.emit({term:i,items:this.itemsList.filteredItems.map(r=>r.value)}),this.open())}onInputFocus(i){this._focused||(this._editableSearchTerm()&&this._setSearchTermFromItems(),this.element.classList.add("ng-select-focused"),this.focusEvent.emit(i),this._focused=!0)}onInputBlur(i){this.element.classList.remove("ng-select-focused"),this.blurEvent.emit(i),!this.isOpen()&&!this.disabled()&&this._onTouched(),this._editableSearchTerm()&&this._setSearchTermFromItems(),this._focused=!1}onItemHover(i){i.disabled||this.itemsList.markItem(i)}detectChanges(){this._cd.destroyed||this._cd.detectChanges()}_setSearchTermFromItems(){let i=this.selectedItems?.[0];this._searchTerm.set(i?.label??null)}_setItems(i){let r=i[0];this.bindLabel.set(this.bindLabel()||this._defaultLabel),this._primitive=on(r)?!Pu(r):this._primitive||this.bindLabel()===this._defaultLabel,this.itemsList.setItems(i),i.length>0&&this.hasValue&&this.itemsList.mapSelectedItems(),this.isOpen()&&on(this.searchTerm)&&!this.typeahead()?.observed&&this.itemsList.filter(this.searchTerm),(this.typeahead()?.observed||this.isOpen())&&this.itemsList.markSelectedOrDefault(this.markFirst())}_setItemsFromNgOptions(){zr(()=>{let i=this.ngOptions();this.bindLabel.set(this._defaultLabel);let r=i.map(o=>({$ngOptionValue:o.value(),$ngOptionLabel:o.elementRef.nativeElement.innerHTML,disabled:o.disabled()}))??[];this.items.set(r),this.itemsList.setItems(r),this.hasValue&&this.itemsList.mapSelectedItems(),this._cd.detectChanges(),i.map(o=>({option:o,item:this.itemsList.findItem(o.value())})).filter(({item:o})=>on(o)).forEach(({option:o,item:a})=>{a.disabled=o.disabled(),a.label=o.label()||a.label})},{injector:this._injector})}_isValidWriteValue(i){if(!on(i)||this.multiple()&&i===""||Array.isArray(i)&&i.length===0)return!1;let r=o=>!on(this.compareWith())&&Pu(o)&&this.bindValue()?(this._console.warn(`Setting object(${JSON.stringify(o)}) as your model with bindValue is not allowed unless [compareWith] is used.`),!1):!0;return this.multiple()?Array.isArray(i)?i.every(o=>r(o)):(this._console.warn("Multiple select ngModel should be array."),!1):r(i)}_handleWriteValue(i){if(!this._isValidWriteValue(i))return;let r=o=>{let a=this.itemsList.findItem(o);if(a)this.itemsList.select(a);else{let s=Pu(o),l=!s&&!this.bindValue();s||l?this.itemsList.select(this.itemsList.mapItem(o,null)):this.bindValue()&&(a={[this.bindLabel()]:null,[this.bindValue()]:o},this.itemsList.select(this.itemsList.mapItem(a,null)))}};this.multiple()?i.forEach(o=>r(o)):r(i)}_handleKeyPresses(){this.searchable()||this._keyPress$.pipe(Ru(this._destroyRef),He(i=>this._pressedKeys.push(i)),Dt(200),ce(()=>this._pressedKeys.length>0),se(()=>this._pressedKeys.join(""))).subscribe(i=>{let r=this.itemsList.findByLabel(i);r&&(this.isOpen()?(this.itemsList.markItem(r),this._scrollToMarked(),this._cd.markForCheck()):this.select(r)),this._pressedKeys=[]})}_setInputAttributes(){let i=this.searchInput().nativeElement,r=I({type:"text",autocorrect:"off",autocapitalize:"off",autocomplete:"off","aria-controls":this.dropdownId},this.inputAttrs());for(let o of Object.keys(r))i.setAttribute(o,r[o])}_setTabFocusOnClear(){this.tabFocusOnClear.set(on(this.tabFocusOnClearButton())?!!this.tabFocusOnClearButton():this.config.tabFocusOnClear)}_updateNgModel(){let i=[];for(let o of this.selectedItems)if(this.bindValue()){let a=null;if(o.children){let s=this.groupValue()?this.bindValue():this.groupBy();a=o.value[s||this.groupBy()]}else a=this.itemsList.resolveNested(o.value,this.bindValue());i.push(a)}else i.push(o.value);let r=this.selectedItems.map(o=>o.value);this.multiple()?(this._onChange(i),this.changeEvent.emit(r)):(this._onChange(on(i[0])?i[0]:null),this.changeEvent.emit(r[0])),this._cd.markForCheck()}_clearSearch(){this.searchTerm&&(this._changeSearch(null),this.itemsList.resetFilteredItems())}_changeSearch(i){this._searchTerm.set(i),this.typeahead()?.observed&&this.typeahead().next(i)}_scrollToMarked(){!this.isOpen()||!this.dropdownPanel()||this.dropdownPanel().scrollTo(this.itemsList.markedItem)}_scrollToTag(){!this.isOpen()||!this.dropdownPanel()||this.dropdownPanel().scrollToTag()}_onSelectionChanged(){let i=this.appendTo()??this.config.appendTo;this.isOpen()&&this.deselectOnClickValue()&&i&&(this._cd.detectChanges(),this.dropdownPanel().adjustPosition())}_handleTab(i){if(this.isOpen()===!1){if(this.showClear()&&!i.shiftKey&&this.tabFocusOnClear())this.focusOnClear(),i.preventDefault();else if(!this.addTag())return}this.selectOnTab()?this.itemsList.markedItem?(this.toggleItem(this.itemsList.markedItem),i.preventDefault()):this.showAddTag?(this.selectTag(),i.preventDefault()):this.close():this.close()}_handleEnter(i){let r=this.openOnEnter()??this.config.openOnEnter;if(this.isOpen()||this._manualOpen)this.itemsList.markedItem?this.toggleItem(this.itemsList.markedItem):this.showAddTag&&this.selectTag();else if(r)this.open();else return;i.preventDefault()}_handleSpace(i){this.isOpen()||this._manualOpen||(this.open(),i.preventDefault())}_handleArrowDown(i){this._nextItemIsTag(1)?(this.itemsList.unmarkItem(),this._scrollToTag()):(this.itemsList.markNextItem(),this._scrollToMarked()),this.open(),i.preventDefault()}_handleArrowUp(i){this.isOpen()&&(this._nextItemIsTag(-1)?(this.itemsList.unmarkItem(),this._scrollToTag()):(this.itemsList.markPreviousItem(),this._scrollToMarked()),i.preventDefault())}_nextItemIsTag(i){let r=this.itemsList.markedIndex+i;return this.addTag()&&this.searchTerm&&this.itemsList.markedItem&&(r<0||r===this.itemsList.filteredItems.length)}_handleBackspace(){this.searchTerm||!this.clearable()||!this.clearOnBackspace()||!this.hasValue||(this.multiple()?this.unselect(this.itemsList.lastSelectedItem):this.clearModel())}_mergeGlobalConfig(i){this.bindValue.set(this.bindValue()||i.bindValue),this.bindLabel.set(this.bindLabel()||i.bindLabel),this.appearance.set(this.appearance()||i.appearance),this._setTabFocusOnClear()}getVirtualScroll(i){return on(this.virtualScroll)?this.virtualScroll():this.isVirtualScrollDisabled(i)}isVirtualScrollDisabled(i){return on(i.disableVirtualScroll)?!i.disableVirtualScroll:!1}};n.\u0275fac=function(r){return new(r||n)},n.\u0275cmp=E({type:n,selectors:[["ng-select"]],contentQueries:function(r,o,a){r&1&&(Hn(a,o.optionTemplate,jC,5,te),Hn(a,o.optgroupTemplate,HC,5,te),Hn(a,o.labelTemplate,zC,5,te),Hn(a,o.multiLabelTemplate,UC,5,te),Hn(a,o.headerTemplate,$C,5,te),Hn(a,o.footerTemplate,WC,5,te),Hn(a,o.notFoundTemplate,GC,5,te),Hn(a,o.placeholderTemplate,qC,5,te),Hn(a,o.typeToSearchTemplate,YC,5,te),Hn(a,o.loadingTextTemplate,QC,5,te),Hn(a,o.tagTemplate,KC,5,te),Hn(a,o.loadingSpinnerTemplate,ZC,5,te),Hn(a,o.clearButtonTemplate,XC,5,te),Hn(a,o.ngOptions,Mz,5)),r&2&&Ko(14)},viewQuery:function(r,o){r&1&&(zn(o.dropdownPanel,CI,5),zn(o.searchInput,Lue,5),zn(o.clearButton,Vue,5)),r&2&&Ko(3)},hostVars:20,hostBindings:function(r,o){r&1&&S("keydown",function(s){return o.handleKeyDown(s)}),r&2&&G("ng-select",!0)("ng-select-single",!o.multiple())("ng-select-typeahead",o.typeahead())("ng-select-multiple",o.multiple())("ng-select-taggable",o.addTag())("ng-select-searchable",o.searchable())("ng-select-clearable",o.clearable())("ng-select-opened",o.isOpen())("ng-select-filtered",o.filtered)("ng-select-disabled",o.disabled())},inputs:{ariaLabelDropdown:[1,"ariaLabelDropdown"],ariaLabel:[1,"ariaLabel"],markFirst:[1,"markFirst"],placeholder:[1,"placeholder"],fixedPlaceholder:[1,"fixedPlaceholder"],notFoundText:[1,"notFoundText"],typeToSearchText:[1,"typeToSearchText"],preventToggleOnRightClick:[1,"preventToggleOnRightClick"],addTagText:[1,"addTagText"],loadingText:[1,"loadingText"],clearAllText:[1,"clearAllText"],dropdownPosition:[1,"dropdownPosition"],appendTo:[1,"appendTo"],outsideClickEvent:[1,"outsideClickEvent"],loading:[1,"loading"],closeOnSelect:[1,"closeOnSelect"],hideSelected:[1,"hideSelected"],selectOnTab:[1,"selectOnTab"],openOnEnter:[1,"openOnEnter"],maxSelectedItems:[1,"maxSelectedItems"],groupBy:[1,"groupBy"],groupValue:[1,"groupValue"],bufferAmount:[1,"bufferAmount"],virtualScroll:[1,"virtualScroll"],selectableGroup:[1,"selectableGroup"],tabFocusOnClearButton:[1,"tabFocusOnClearButton"],selectableGroupAsModel:[1,"selectableGroupAsModel"],searchFn:[1,"searchFn"],trackByFn:[1,"trackByFn"],clearOnBackspace:[1,"clearOnBackspace"],labelForId:[1,"labelForId"],inputAttrs:[1,"inputAttrs"],tabIndex:[1,"tabIndex"],readonly:[1,"readonly"],searchWhileComposing:[1,"searchWhileComposing"],minTermLength:[1,"minTermLength"],editableSearchTerm:[1,"editableSearchTerm"],ngClass:[1,"ngClass"],typeahead:[1,"typeahead"],multiple:[1,"multiple"],addTag:[1,"addTag"],searchable:[1,"searchable"],clearable:[1,"clearable"],deselectOnClick:[1,"deselectOnClick"],clearSearchOnAdd:[1,"clearSearchOnAdd"],compareWith:[1,"compareWith"],keyDownFn:[1,"keyDownFn"],bindLabel:[1,"bindLabel"],bindValue:[1,"bindValue"],appearance:[1,"appearance"],isOpen:[1,"isOpen"],items:[1,"items"]},outputs:{bindLabel:"bindLabelChange",bindValue:"bindValueChange",appearance:"appearanceChange",isOpen:"isOpenChange",items:"itemsChange",blurEvent:"blur",focusEvent:"focus",changeEvent:"change",openEvent:"open",closeEvent:"close",searchEvent:"search",clearEvent:"clear",addEvent:"add",removeEvent:"remove",scroll:"scroll",scrollToEnd:"scrollToEnd"},exportAs:["ngSelect"],features:[Ce([{provide:dr,useExisting:li(()=>n),multi:!0},Tz]),Oe],decls:15,vars:20,consts:[["searchInput",""],["defaultPlaceholderTemplate",""],["defaultLabelTemplate",""],["defaultLoadingSpinnerTemplate",""],["clearButton",""],["defaultOptionTemplate",""],["defaultTagTemplate",""],["defaultNotFoundTemplate",""],["defaultTypeToSearchTemplate",""],["defaultLoadingTextTemplate",""],[1,"ng-select-container",3,"mousedown"],[1,"ng-value-container"],[3,"ngTemplateOutlet","ngTemplateOutletContext"],[1,"ng-input"],["aria-autocomplete","list","role","combobox",3,"blur","change","compositionend","compositionstart","focus","input","disabled","readOnly","value"],[1,"ng-arrow-wrapper"],[1,"ng-arrow"],[1,"ng-dropdown-panel",3,"virtualScroll","bufferAmount","appendTo","position","outsideClickEvent","headerTemplate","footerTemplate","filterValue","items","showAddTag","markedItem","ng-select-multiple","class","id","ariaLabelDropdown"],["aria-atomic","true","aria-live","polite","role","status",1,"ng-visually-hidden"],[3,"ngTemplateOutlet"],[1,"ng-placeholder"],[1,"ng-value",3,"ng-value-disabled"],[1,"ng-value"],["aria-hidden","true",1,"ng-value-icon","left",3,"click"],[1,"ng-value-label",3,"ngItemLabel","escape"],[1,"ng-spinner-loader"],["role","button","tabindex","0",1,"ng-clear-wrapper",3,"title"],["role","button","tabindex","0",1,"ng-clear-wrapper",3,"click","title"],["aria-hidden","true",1,"ng-clear"],[1,"ng-dropdown-panel",3,"update","scroll","scrollToEnd","outsideClick","virtualScroll","bufferAmount","appendTo","position","outsideClickEvent","headerTemplate","footerTemplate","filterValue","items","showAddTag","markedItem","id","ariaLabelDropdown"],[1,"ng-option",3,"ng-option-disabled","ng-option-selected","ng-optgroup","ng-option","ng-option-child","ng-option-marked"],["role","option",1,"ng-option",3,"ng-option-marked"],[1,"ng-option",3,"click","mouseover"],[1,"ng-option-label",3,"ngItemLabel","escape"],["role","option",1,"ng-option",3,"mouseover","click"],[1,"ng-tag-label"],[1,"ng-option","ng-option-disabled"]],template:function(r,o){if(r&1){let a=q();m(0,"div",10),S("mousedown",function(l){return k(a),T(o.handleMousedown(l))}),m(1,"div",11),V(2,$ue,3,1),V(3,Yue,2,0),V(4,Kue,1,5,null,12),m(5,"div",13)(6,"input",14,0),S("blur",function(l){return k(a),T(o.onInputBlur(l))})("change",function(l){return k(a),T(l.stopPropagation())})("compositionend",function(){k(a);let l=Te(7);return T(o.onCompositionEnd(l.value))})("compositionstart",function(){return k(a),T(o.onCompositionStart())})("focus",function(l){return k(a),T(o.onInputFocus(l))})("input",function(){k(a);let l=Te(7);return T(o.filter(l.value))}),h()()(),V(8,Jue,3,1),V(9,ime,2,1),m(10,"span",15),M(11,"span",16),h()(),V(12,bme,8,21,"ng-dropdown-panel",17),m(13,"div",18),V(14,vme,1,1),h()}r&2&&(G("ng-appearance-outline",o.appearance()==="outline")("ng-has-value",o.hasValue),g(2),B(o.selectedItems.length===0&&!o.searchTerm||(o.fixedPlaceholder()??o.config.fixedPlaceholder)?2:-1),g(),B((!o.multiLabelTemplate()||!o.multiple())&&o.selectedItems.length>0?3:-1),g(),B(o.multiple()&&o.multiLabelTemplate()&&o.selectedValues.length>0?4:-1),g(2),v("disabled",o.disabled())("readOnly",!o.searchable()||o.itemsList.maxItemsSelected)("value",o.searchTerm??""),X("aria-activedescendant",o.isOpen()?o.itemsList==null||o.itemsList.markedItem==null?null:o.itemsList.markedItem.htmlId:null)("aria-controls",o.isOpen()?o.dropdownId:null)("aria-expanded",o.isOpen())("aria-label",o.ariaLabel())("id",o.labelForId())("tabindex",o.tabIndex()),g(2),B(o.loading()?8:-1),g(),B(o.showClear()?9:-1),g(3),B(o.isOpen()?12:-1),g(2),B(o.isOpen()&&o.showNoItemsFound()?14:-1))},dependencies:[$n,Dme,CI],styles:[`@charset "UTF-8";.ng-select{position:relative;display:block;-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box}.ng-select div,.ng-select input,.ng-select span{-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box}.ng-select [hidden]{display:none}.ng-select.ng-select-searchable .ng-select-container .ng-value-container .ng-input{opacity:1}.ng-select.ng-select-opened .ng-select-container{z-index:1001}.ng-select.ng-select-disabled .ng-select-container .ng-value-container .ng-placeholder,.ng-select.ng-select-disabled .ng-select-container .ng-value-container .ng-value{-webkit-user-select:none;user-select:none;cursor:default}.ng-select.ng-select-disabled .ng-arrow-wrapper{cursor:default}.ng-select.ng-select-filtered .ng-placeholder{display:none}.ng-select .ng-select-container{cursor:default;display:flex;outline:none;overflow:hidden;position:relative;width:100%}.ng-select .ng-select-container .ng-value-container{display:flex;flex:1}.ng-select .ng-select-container .ng-value-container .ng-input{opacity:0}.ng-select .ng-select-container .ng-value-container .ng-input>input{box-sizing:content-box;background:none transparent;border:0 none;box-shadow:none;outline:none;padding:0;cursor:default;width:100%}.ng-select .ng-select-container .ng-value-container .ng-input>input::-ms-clear{display:none}.ng-select .ng-select-container .ng-value-container .ng-input>input[readonly]{-webkit-user-select:unset;user-select:unset;width:0;padding:0}.ng-select.ng-select-single.ng-select-filtered .ng-select-container .ng-value-container .ng-value{visibility:hidden}.ng-select.ng-select-single .ng-select-container .ng-value-container,.ng-select.ng-select-single .ng-select-container .ng-value-container .ng-value{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.ng-select.ng-select-single .ng-select-container .ng-value-container .ng-value .ng-value-icon{display:none}.ng-select.ng-select-single .ng-select-container .ng-value-container .ng-input{position:absolute;left:0;width:100%}.ng-select.ng-select-multiple.ng-select-disabled>.ng-select-container .ng-value-container .ng-value .ng-value-icon{display:none}.ng-select.ng-select-multiple .ng-select-container .ng-value-container{flex-wrap:wrap}.ng-select.ng-select-multiple .ng-select-container .ng-value-container .ng-placeholder{position:absolute}.ng-select.ng-select-multiple .ng-select-container .ng-value-container .ng-value{white-space:nowrap}.ng-select.ng-select-multiple .ng-select-container .ng-value-container .ng-value.ng-value-disabled .ng-value-icon{display:none}.ng-select.ng-select-multiple .ng-select-container .ng-value-container .ng-value .ng-value-icon{cursor:pointer}.ng-select.ng-select-multiple .ng-select-container .ng-value-container .ng-input{flex:1;z-index:2}.ng-select.ng-select-multiple .ng-select-container .ng-value-container .ng-placeholder{z-index:1}.ng-select .ng-clear-wrapper{cursor:pointer;position:relative;width:17px;-webkit-user-select:none;user-select:none}.ng-select .ng-clear-wrapper .ng-clear{display:inline-block;font-size:18px;line-height:1;pointer-events:none}.ng-select .ng-spinner-loader{border-radius:50%;width:17px;height:17px;margin-right:5px;font-size:10px;position:relative;text-indent:-9999em;border-top:2px solid rgba(66,66,66,.2);border-right:2px solid rgba(66,66,66,.2);border-bottom:2px solid rgba(66,66,66,.2);border-left:2px solid #424242;transform:translateZ(0);animation:load8 .8s infinite linear}.ng-select .ng-spinner-loader:after{border-radius:50%;width:17px;height:17px}@-webkit-keyframes load8{0%{-webkit-transform:rotate(0deg);transform:rotate(0)}to{-webkit-transform:rotate(360deg);transform:rotate(360deg)}}@keyframes load8{0%{-webkit-transform:rotate(0deg);transform:rotate(0)}to{-webkit-transform:rotate(360deg);transform:rotate(360deg)}}.ng-select .ng-arrow-wrapper{cursor:pointer;position:relative;text-align:center;-webkit-user-select:none;user-select:none}.ng-select .ng-arrow-wrapper .ng-arrow{pointer-events:none;display:inline-block;height:0;width:0;position:relative}.ng-dropdown-panel{box-sizing:border-box;position:absolute;opacity:0;width:100%;z-index:1050;-webkit-overflow-scrolling:touch}.ng-dropdown-panel .ng-dropdown-panel-items{display:block;height:auto;-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box;max-height:240px;overflow-y:auto}.ng-dropdown-panel .ng-dropdown-panel-items .ng-optgroup{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.ng-dropdown-panel .ng-dropdown-panel-items .ng-option{box-sizing:border-box;cursor:pointer;display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.ng-dropdown-panel .ng-dropdown-panel-items .ng-option .ng-option-label:empty:before{content:"\\200b"}.ng-dropdown-panel .ng-dropdown-panel-items .ng-option .highlighted{font-weight:700;text-decoration:underline}.ng-dropdown-panel .ng-dropdown-panel-items .ng-option.disabled{cursor:default}.ng-dropdown-panel .scroll-host{overflow:hidden;overflow-y:auto;position:relative;display:block;-webkit-overflow-scrolling:touch}.ng-dropdown-panel .scrollable-content{top:0;left:0;width:100%;height:100%;position:absolute}.ng-dropdown-panel .total-padding{width:1px;opacity:0}.ng-visually-hidden{position:absolute!important;width:1px;height:1px;margin:-1px;padding:0;overflow:hidden;clip:rect(0 0 0 0);border:0;white-space:nowrap} +`],encapsulation:2,changeDetection:0});let t=n;return t})(),MI=(()=>{let n=class n{};n.\u0275fac=function(r){return new(r||n)},n.\u0275mod=ee({type:n}),n.\u0275inj=J({providers:Tme()});let t=n;return t})();function Tme(){return[{provide:Az,useValue:Iz}]}var Ame=["*"],Ome=["ngSelect"],Rme=()=>({standalone:!0}),Pz=(t,n,e,i)=>({item:t,item$:n,index:e,searchTerm:i}),Pme=(t,n,e)=>({item:t,clear:n,label:e}),Fme=(t,n)=>({items:t,clear:n}),EI=t=>({searchTerm:t});function Nme(t,n){}function Lme(t,n){if(t&1&&A(0,Nme,0,0,"ng-template",15),t&2){let e=n.item,i=n.item$,r=n.index,o=n.searchTerm,a=x(2);v("ngTemplateOutlet",a.optionTemplate)("ngTemplateOutletContext",km(2,Pz,e,i,r,o))}}function Vme(t,n){t&1&&A(0,Lme,1,7,"ng-template",2)}function Bme(t,n){}function jme(t,n){if(t&1&&A(0,Bme,0,0,"ng-template",15),t&2){let e=n.item,i=n.item$,r=n.index,o=n.searchTerm,a=x(2);v("ngTemplateOutlet",a.optgroupTemplate)("ngTemplateOutletContext",km(2,Pz,e,i,r,o))}}function Hme(t,n){t&1&&A(0,jme,1,7,"ng-template",3)}function zme(t,n){}function Ume(t,n){if(t&1&&A(0,zme,0,0,"ng-template",15),t&2){let e=n.item,i=n.clear,r=n.label,o=x(2);v("ngTemplateOutlet",o.labelTemplate)("ngTemplateOutletContext",Hd(2,Pme,e,i,r))}}function $me(t,n){t&1&&A(0,Ume,1,6,"ng-template",4)}function Wme(t,n){}function Gme(t,n){if(t&1&&A(0,Wme,0,0,"ng-template",15),t&2){let e=n.items,i=n.clear,r=x(2);v("ngTemplateOutlet",r.multiLabelTemplate)("ngTemplateOutletContext",Ba(2,Fme,e,i))}}function qme(t,n){t&1&&A(0,Gme,1,5,"ng-template",5)}function Yme(t,n){}function Qme(t,n){if(t&1&&A(0,Yme,0,0,"ng-template",16),t&2){let e=x(2);v("ngTemplateOutlet",e.headerTemplate)}}function Kme(t,n){t&1&&A(0,Qme,1,1,"ng-template",6)}function Zme(t,n){}function Xme(t,n){if(t&1&&A(0,Zme,0,0,"ng-template",16),t&2){let e=x(2);v("ngTemplateOutlet",e.footerTemplate)}}function Jme(t,n){t&1&&A(0,Xme,1,1,"ng-template",7)}function ehe(t,n){}function the(t,n){if(t&1&&A(0,ehe,0,0,"ng-template",15),t&2){let e=n.searchTerm,i=x(2);v("ngTemplateOutlet",i.notFoundTemplate)("ngTemplateOutletContext",Wt(2,EI,e))}}function ihe(t,n){t&1&&A(0,the,1,4,"ng-template",8)}function nhe(t,n){}function rhe(t,n){if(t&1&&A(0,nhe,0,0,"ng-template",16),t&2){let e=x(2);v("ngTemplateOutlet",e.typeToSearchTemplate)}}function ohe(t,n){t&1&&A(0,rhe,1,1,"ng-template",9)}function ahe(t,n){}function she(t,n){if(t&1&&A(0,ahe,0,0,"ng-template",15),t&2){let e=n.searchTerm,i=x(2);v("ngTemplateOutlet",i.loadingTextTemplate)("ngTemplateOutletContext",Wt(2,EI,e))}}function lhe(t,n){t&1&&A(0,she,1,4,"ng-template",10)}function che(t,n){}function dhe(t,n){if(t&1&&A(0,che,0,0,"ng-template",15),t&2){let e=n.searchTerm,i=x(2);v("ngTemplateOutlet",i.tagTemplate)("ngTemplateOutletContext",Wt(2,EI,e))}}function uhe(t,n){t&1&&A(0,dhe,1,4,"ng-template",11)}function mhe(t,n){}function hhe(t,n){if(t&1&&A(0,mhe,0,0,"ng-template",16),t&2){let e=x(2);v("ngTemplateOutlet",e.loadingSpinnerTemplate)}}function phe(t,n){t&1&&A(0,hhe,1,1,"ng-template",12)}function fhe(t,n){}function ghe(t,n){if(t&1&&A(0,fhe,0,0,"ng-template",16),t&2){let e=x(2);v("ngTemplateOutlet",e.placeholderTemplate)}}function _he(t,n){t&1&&A(0,ghe,1,1,"ng-template",13)}function bhe(t,n){}function vhe(t,n){if(t&1&&A(0,bhe,0,0,"ng-template",16),t&2){let e=x(2);v("ngTemplateOutlet",e.clearbuttonTemplate)}}function yhe(t,n){t&1&&A(0,vhe,1,1,"ng-template",14)}var xhe=(()=>{let n=class n{constructor(){this.elementRef=u(Y),this.disabled=!1,this.stateChange$=new z}get label(){return(this.elementRef.nativeElement.textContent||"").trim()}ngOnChanges(i){i.disabled&&this.stateChange$.next({value:this.value,disabled:this.disabled})}ngAfterViewChecked(){this.label!==this._previousLabel&&(this._previousLabel=this.label,this.stateChange$.next({value:this.value,disabled:this.disabled,label:this.elementRef.nativeElement.innerHTML}))}ngOnDestroy(){this.stateChange$.complete()}};n.\u0275fac=function(r){return new(r||n)},n.\u0275cmp=E({type:n,selectors:[["mtx-option"]],inputs:{value:"value",disabled:[2,"disabled","disabled",L]},exportAs:["mtxOption"],features:[Oe],ngContentSelectors:Ame,decls:1,vars:0,template:function(r,o){r&1&&(Ee(),ne(0))},encapsulation:2,changeDetection:0});let t=n;return t})(),Che=(()=>{let n=class n{constructor(){this._defaultOptions=u(Fz,{optional:!0}),this.changes=new z,this.placeholder=this._defaultOptions?.placeholder,this.notFoundText=this._defaultOptions?.notFoundText??"No items found",this.typeToSearchText=this._defaultOptions?.typeToSearchText??"Type to search",this.addTagText=this._defaultOptions?.addTagText??"Add item",this.loadingText=this._defaultOptions?.loadingText??"Loading...",this.clearAllText=this._defaultOptions?.clearAllText??"Clear all"}};n.\u0275fac=function(r){return new(r||n)},n.\u0275prov=R({token:n,factory:n.\u0275fac,providedIn:"root"});let t=n;return t})(),whe=(()=>{let n=class n{constructor(){this.template=u(te)}};n.\u0275fac=function(r){return new(r||n)},n.\u0275dir=P({type:n,selectors:[["","ng-option-tmp",""]]});let t=n;return t})(),Dhe=(()=>{let n=class n{constructor(){this.template=u(te)}};n.\u0275fac=function(r){return new(r||n)},n.\u0275dir=P({type:n,selectors:[["","ng-optgroup-tmp",""]]});let t=n;return t})(),Mhe=(()=>{let n=class n{constructor(){this.template=u(te)}};n.\u0275fac=function(r){return new(r||n)},n.\u0275dir=P({type:n,selectors:[["","ng-label-tmp",""]]});let t=n;return t})(),Ehe=(()=>{let n=class n{constructor(){this.template=u(te)}};n.\u0275fac=function(r){return new(r||n)},n.\u0275dir=P({type:n,selectors:[["","ng-multi-label-tmp",""]]});let t=n;return t})(),She=(()=>{let n=class n{constructor(){this.template=u(te)}};n.\u0275fac=function(r){return new(r||n)},n.\u0275dir=P({type:n,selectors:[["","ng-header-tmp",""]]});let t=n;return t})(),khe=(()=>{let n=class n{constructor(){this.template=u(te)}};n.\u0275fac=function(r){return new(r||n)},n.\u0275dir=P({type:n,selectors:[["","ng-footer-tmp",""]]});let t=n;return t})(),The=(()=>{let n=class n{constructor(){this.template=u(te)}};n.\u0275fac=function(r){return new(r||n)},n.\u0275dir=P({type:n,selectors:[["","ng-notfound-tmp",""]]});let t=n;return t})(),Ihe=(()=>{let n=class n{constructor(){this.template=u(te)}};n.\u0275fac=function(r){return new(r||n)},n.\u0275dir=P({type:n,selectors:[["","ng-typetosearch-tmp",""]]});let t=n;return t})(),Ahe=(()=>{let n=class n{constructor(){this.template=u(te)}};n.\u0275fac=function(r){return new(r||n)},n.\u0275dir=P({type:n,selectors:[["","ng-loadingtext-tmp",""]]});let t=n;return t})(),Ohe=(()=>{let n=class n{constructor(){this.template=u(te)}};n.\u0275fac=function(r){return new(r||n)},n.\u0275dir=P({type:n,selectors:[["","ng-tag-tmp",""]]});let t=n;return t})(),Rhe=(()=>{let n=class n{constructor(){this.template=u(te)}};n.\u0275fac=function(r){return new(r||n)},n.\u0275dir=P({type:n,selectors:[["","ng-loadingspinner-tmp",""]]});let t=n;return t})(),Phe=(()=>{let n=class n{constructor(){this.template=u(te)}};n.\u0275fac=function(r){return new(r||n)},n.\u0275dir=P({type:n,selectors:[["","ng-placeholder-tmp",""]]});let t=n;return t})(),Fhe=(()=>{let n=class n{constructor(){this.template=u(te)}};n.\u0275fac=function(r){return new(r||n)},n.\u0275dir=P({type:n,selectors:[["","ng-clearbutton-tmp",""]]});let t=n;return t})(),Fz=new O("mtx-select-default-options"),Rz=0,SI=(()=>{let n=class n{get clearSearchOnAdd(){return this._clearSearchOnAdd??this.closeOnSelect}set clearSearchOnAdd(i){this._clearSearchOnAdd=i}get items(){return this._items}set items(i){this._itemsAreUsed=!0,this._items=i}get value(){return this._value}set value(i){this._assignValue(i)&&this._onChange(i)}get id(){return this._id}set id(i){this._id=i||this._uid,this.stateChanges.next()}get placeholder(){return this._placeholder}set placeholder(i){this._placeholder=i,this.stateChanges.next()}get focused(){return this._focused}get empty(){return this.value==null||Array.isArray(this.value)&&this.value.length===0}get shouldLabelFloat(){return this.focused||!this.empty}get required(){return this._required??this.ngControl?.control?.hasValidator(Ve.required)??!1}set required(i){this._required=i,this.stateChanges.next()}get errorStateMatcher(){return this._errorStateTracker.matcher}set errorStateMatcher(i){this._errorStateTracker.matcher=i}get panelOpen(){return!!this.ngSelect.isOpen}get errorState(){return this._errorStateTracker.errorState}set errorState(i){this._errorStateTracker.errorState=i}constructor(){this._intl=u(Che),this._changeDetectorRef=u(ye),this._elementRef=u(Y),this._focusMonitor=u(oi),this.ngControl=u(Kn,{optional:!0,self:!0}),this._parentFormField=u(oa,{optional:!0}),this._defaultOptions=u(Fz,{optional:!0}),this._document=u(_e),this.addTag=!1,this.appearance="underline",this.appendTo=this._defaultOptions?.appendTo??"body",this.bindLabel=this._defaultOptions?.bindLabel,this.bindValue=this._defaultOptions?.bindValue,this.closeOnSelect=!0,this.clearable=!0,this.clearOnBackspace=!0,this.dropdownPosition="auto",this.bufferAmount=4,this.selectableGroup=!1,this.selectableGroupAsModel=!0,this.hideSelected=!1,this.loading=!1,this.labelForId=null,this.markFirst=!0,this.multiple=!1,this.searchable=!0,this.readonly=!1,this.searchFn=null,this.searchWhileComposing=!0,this.selectOnTab=!1,this.trackByFn=null,this.inputAttrs={},this.openOnEnter=this._defaultOptions?.openOnEnter??!0,this.minTermLength=0,this.editableSearchTerm=!1,this.keyDownFn=l=>!0,this.virtualScroll=this._defaultOptions?.virtualScroll??!1,this.fixedPlaceholder=this._defaultOptions?.fixedPlaceholder??!1,this.deselectOnClick=this._defaultOptions?.deselectOnClick??!1,this.blurEvent=new U,this.focusEvent=new U,this.changeEvent=new U,this.openEvent=new U,this.closeEvent=new U,this.searchEvent=new U,this.clearEvent=new U,this.addEvent=new U,this.removeEvent=new U,this.scroll=new U,this.scrollToEnd=new U,this._clearSearchOnAdd=this._defaultOptions?.clearSearchOnAdd,this._items=[],this._itemsAreUsed=!1,this._destroy$=new z,this._value=null,this.stateChanges=new z,this._uid=`mtx-select-${Rz++}`,this._focused=!1,this.disabled=!1,this.ariaLabel="",this.ariaLabelledby=null,this._ariaDescribedby=null,this.controlType="mtx-select",this._onChange=()=>{},this._onTouched=()=>{},this._valueId=`mtx-select-value-${Rz++}`,this._intlChangesSubscription=ke.EMPTY;let i=this._focusMonitor,r=u(kl),o=u(Oc,{optional:!0}),a=u(nn,{optional:!0}),s=this.ngControl;this._intlChangesSubscription=this._intl.changes.subscribe(()=>{this._changeDetectorRef.detectChanges()}),i.monitor(this._elementRef,!0).subscribe(l=>{this._focused&&!l&&this._onTouched(),this._focused=!!l,this.stateChanges.next()}),this.ngControl&&(this.ngControl.valueAccessor=this),this._errorStateTracker=new Sl(r,s,a,o,this.stateChanges),this.id=this.id}ngOnInit(){this.compareWith&&(this.ngSelect.compareWith=this.compareWith)}ngAfterViewInit(){this._itemsAreUsed||(this.ngSelect.escapeHTML=!1,this._setItemsFromMtxOptions())}ngDoCheck(){if(this.ngControl){let i=this.ngControl;this._previousControl!==i.control&&(this._previousControl!==void 0&&i.disabled!==null&&i.disabled!==this.disabled&&(this.disabled=i.disabled),this._previousControl=i.control),this.updateErrorState()}}ngOnDestroy(){this._destroy$.next(),this._destroy$.complete(),this.stateChanges.complete(),this._focusMonitor.stopMonitoring(this._elementRef),this._intlChangesSubscription.unsubscribe()}_getAriaLabelledby(){if(this.ariaLabel)return null;let i=this._parentFormField?.getLabelId(),r=(i?i+" ":"")+this._valueId;return this.ariaLabelledby&&(r+=" "+this.ariaLabelledby),r}setDescribedByIds(i){this._ariaDescribedby=i.length?i.join(" "):null}setDisabledState(i){this.disabled=i,this._changeDetectorRef.markForCheck(),this.stateChanges.next()}onContainerClick(i){i.target.classList.contains("ng-arrow-wrapper")||(this.focus(),this.open())}writeValue(i){this._assignValue(i)}registerOnChange(i){this._onChange=i}registerOnTouched(i){this._onTouched=i}updateErrorState(){this._errorStateTracker.updateErrorState()}_assignValue(i){return i!==this._value||this.multiple&&Array.isArray(i)?(this._value=i,this._changeDetectorRef.markForCheck(),!0):!1}_setItemsFromMtxOptions(){let i=o=>{this.items=o.map(a=>({$ngOptionValue:a.value,$ngOptionLabel:a.elementRef.nativeElement.innerHTML,disabled:a.disabled})),this.ngSelect.itemsList.setItems(this.items),this.ngSelect.hasValue&&this.ngSelect.itemsList.mapSelectedItems(),this.ngSelect.detectChanges()},r=()=>{let o=it(this.mtxOptions.changes,this._destroy$);it(...this.mtxOptions.map(a=>a.stateChange$)).pipe(we(o)).subscribe(a=>{let s=this.ngSelect.itemsList.findItem(a.value);s.disabled=a.disabled,s.label=a.label||s.label,this.ngSelect.detectChanges()})};this.mtxOptions.changes.pipe(Ue(this.mtxOptions),we(this._destroy$)).subscribe(o=>{i(o),r()})}open(){this.ngSelect.open()}close(){this.ngSelect.close()}focus(){this.ngSelect.focus()}blur(){this.ngSelect.blur()}openChange(){this.openEvent.emit(),setTimeout(()=>{this._document.getElementById(this.ngSelect.dropdownId)?.classList.add("mat-"+this._parentFormField?.color)})}};n.\u0275fac=function(r){return new(r||n)},n.\u0275cmp=E({type:n,selectors:[["mtx-select"]],contentQueries:function(r,o,a){if(r&1&&(xe(a,whe,5,te),xe(a,Dhe,5,te),xe(a,Mhe,5,te),xe(a,Ehe,5,te),xe(a,She,5,te),xe(a,khe,5,te),xe(a,The,5,te),xe(a,Ihe,5,te),xe(a,Ahe,5,te),xe(a,Ohe,5,te),xe(a,Rhe,5,te),xe(a,Phe,5,te),xe(a,Fhe,5,te),xe(a,xhe,5)),r&2){let s;j(s=H())&&(o.optionTemplate=s.first),j(s=H())&&(o.optgroupTemplate=s.first),j(s=H())&&(o.labelTemplate=s.first),j(s=H())&&(o.multiLabelTemplate=s.first),j(s=H())&&(o.headerTemplate=s.first),j(s=H())&&(o.footerTemplate=s.first),j(s=H())&&(o.notFoundTemplate=s.first),j(s=H())&&(o.typeToSearchTemplate=s.first),j(s=H())&&(o.loadingTextTemplate=s.first),j(s=H())&&(o.tagTemplate=s.first),j(s=H())&&(o.loadingSpinnerTemplate=s.first),j(s=H())&&(o.placeholderTemplate=s.first),j(s=H())&&(o.clearbuttonTemplate=s.first),j(s=H())&&(o.mtxOptions=s)}},viewQuery:function(r,o){if(r&1&&ie(Ome,7),r&2){let a;j(a=H())&&(o.ngSelect=a.first)}},hostAttrs:["role","combobox","aria-autocomplete","none",1,"mtx-select"],hostVars:20,hostBindings:function(r,o){r&2&&(X("id",o.id)("aria-expanded",o.panelOpen)("aria-label",o.ariaLabel||null)("aria-labelledby",o._getAriaLabelledby())("aria-describedby",o._ariaDescribedby||null)("aria-required",o.required.toString())("aria-disabled",o.disabled.toString())("aria-invalid",o.errorState),G("mtx-select-floating",o.shouldLabelFloat)("mtx-select-disabled",o.disabled)("mtx-select-invalid",o.errorState)("mtx-select-required",o.required)("mtx-select-empty",o.empty)("mtx-select-multiple",o.multiple))},inputs:{addTag:"addTag",addTagText:"addTagText",appearance:"appearance",appendTo:"appendTo",bindLabel:"bindLabel",bindValue:"bindValue",closeOnSelect:[2,"closeOnSelect","closeOnSelect",L],clearAllText:"clearAllText",clearable:[2,"clearable","clearable",L],clearOnBackspace:[2,"clearOnBackspace","clearOnBackspace",L],compareWith:"compareWith",dropdownPosition:"dropdownPosition",groupBy:"groupBy",groupValue:"groupValue",bufferAmount:"bufferAmount",selectableGroup:[2,"selectableGroup","selectableGroup",L],selectableGroupAsModel:[2,"selectableGroupAsModel","selectableGroupAsModel",L],hideSelected:[2,"hideSelected","hideSelected",L],loading:[2,"loading","loading",L],loadingText:"loadingText",labelForId:"labelForId",markFirst:[2,"markFirst","markFirst",L],maxSelectedItems:"maxSelectedItems",multiple:[2,"multiple","multiple",L],notFoundText:"notFoundText",searchable:[2,"searchable","searchable",L],readonly:[2,"readonly","readonly",L],searchFn:"searchFn",searchWhileComposing:[2,"searchWhileComposing","searchWhileComposing",L],selectOnTab:[2,"selectOnTab","selectOnTab",L],trackByFn:"trackByFn",inputAttrs:"inputAttrs",tabIndex:"tabIndex",openOnEnter:[2,"openOnEnter","openOnEnter",L],minTermLength:"minTermLength",editableSearchTerm:[2,"editableSearchTerm","editableSearchTerm",L],keyDownFn:"keyDownFn",virtualScroll:[2,"virtualScroll","virtualScroll",L],typeToSearchText:"typeToSearchText",typeahead:"typeahead",isOpen:"isOpen",fixedPlaceholder:[2,"fixedPlaceholder","fixedPlaceholder",L],deselectOnClick:[2,"deselectOnClick","deselectOnClick",L],clearSearchOnAdd:"clearSearchOnAdd",items:"items",value:"value",id:"id",placeholder:"placeholder",disabled:[2,"disabled","disabled",L],required:[2,"required","required",L],errorStateMatcher:"errorStateMatcher",ariaLabel:[0,"aria-label","ariaLabel"],ariaLabelledby:[0,"aria-labelledby","ariaLabelledby"]},outputs:{blurEvent:"blur",focusEvent:"focus",changeEvent:"change",openEvent:"open",closeEvent:"close",searchEvent:"search",clearEvent:"clear",addEvent:"add",removeEvent:"remove",scroll:"scroll",scrollToEnd:"scrollToEnd"},exportAs:["mtxSelect"],features:[Ce([{provide:Ka,useExisting:n}])],decls:15,vars:63,consts:[["ngSelect",""],[3,"ngModelChange","blur","focus","change","open","close","search","clear","add","remove","scroll","scrollToEnd","ngModel","ngModelOptions","placeholder","items","addTag","addTagText","appendTo","appearance","bindLabel","bindValue","closeOnSelect","clearAllText","clearable","clearOnBackspace","dropdownPosition","groupBy","groupValue","bufferAmount","hideSelected","isOpen","inputAttrs","loading","loadingText","labelForId","markFirst","maxSelectedItems","multiple","notFoundText","readonly","typeahead","typeToSearchText","trackByFn","searchable","searchFn","searchWhileComposing","clearSearchOnAdd","selectableGroup","selectableGroupAsModel","selectOnTab","tabIndex","openOnEnter","minTermLength","editableSearchTerm","keyDownFn","virtualScroll","fixedPlaceholder","deselectOnClick"],["ng-option-tmp",""],["ng-optgroup-tmp",""],["ng-label-tmp",""],["ng-multi-label-tmp",""],["ng-header-tmp",""],["ng-footer-tmp",""],["ng-notfound-tmp",""],["ng-typetosearch-tmp",""],["ng-loadingtext-tmp",""],["ng-tag-tmp",""],["ng-loadingspinner-tmp",""],["ng-placeholder-tmp",""],["ng-clearbutton-tmp",""],[3,"ngTemplateOutlet","ngTemplateOutletContext"],[3,"ngTemplateOutlet"]],template:function(r,o){if(r&1){let a=q();m(0,"ng-select",1,0),fn("ngModelChange",function(l){return k(a),Mn(o.value,l)||(o.value=l),T(l)}),S("blur",function(l){return k(a),T(o.blurEvent.emit(l))})("focus",function(l){return k(a),T(o.focusEvent.emit(l))})("change",function(l){return k(a),T(o.changeEvent.emit(l))})("open",function(){return k(a),T(o.openChange())})("close",function(){return k(a),T(o.closeEvent.emit())})("search",function(l){return k(a),T(o.searchEvent.emit(l))})("clear",function(l){return k(a),T(o.clearEvent.emit(l))})("add",function(l){return k(a),T(o.addEvent.emit(l))})("remove",function(l){return k(a),T(o.removeEvent.emit(l))})("scroll",function(l){return k(a),T(o.scroll.emit(l))})("scrollToEnd",function(){return k(a),T(o.scrollToEnd.emit())}),V(2,Vme,1,0,null,2),V(3,Hme,1,0,null,3),V(4,$me,1,0,null,4),V(5,qme,1,0,null,5),V(6,Kme,1,0,null,6),V(7,Jme,1,0,null,7),V(8,ihe,1,0,null,8),V(9,ohe,1,0,null,9),V(10,lhe,1,0,null,10),V(11,uhe,1,0,null,11),V(12,phe,1,0,null,12),V(13,_he,1,0,null,13),V(14,yhe,1,0,null,14),h()}r&2&&(G("ng-select-invalid",o.errorState),pn("ngModel",o.value),v("ngModelOptions",dt(62,Rme))("placeholder",o.placeholder||o._intl.placeholder)("items",o.items)("addTag",o.addTag)("addTagText",o.addTagText||o._intl.addTagText)("appendTo",o.appendTo)("appearance",o.appearance)("bindLabel",o.bindLabel)("bindValue",o.bindValue)("closeOnSelect",o.closeOnSelect)("clearAllText",o.clearAllText||o._intl.clearAllText)("clearable",o.clearable)("clearOnBackspace",o.clearOnBackspace)("dropdownPosition",o.dropdownPosition)("groupBy",o.groupBy)("groupValue",o.groupValue)("bufferAmount",o.bufferAmount)("hideSelected",o.hideSelected)("isOpen",o.isOpen)("inputAttrs",o.inputAttrs)("loading",o.loading)("loadingText",o.loadingText||o._intl.loadingText)("labelForId",o.labelForId)("markFirst",o.markFirst)("maxSelectedItems",o.maxSelectedItems)("multiple",o.multiple)("notFoundText",o.notFoundText||o._intl.notFoundText)("readonly",o.readonly||o.disabled)("typeahead",o.typeahead)("typeToSearchText",o.typeToSearchText||o._intl.typeToSearchText)("trackByFn",o.trackByFn)("searchable",o.searchable)("searchFn",o.searchFn)("searchWhileComposing",o.searchWhileComposing)("clearSearchOnAdd",o.clearSearchOnAdd)("selectableGroup",o.selectableGroup)("selectableGroupAsModel",o.selectableGroupAsModel)("selectOnTab",o.selectOnTab)("tabIndex",o.tabIndex)("openOnEnter",o.openOnEnter)("minTermLength",o.minTermLength)("editableSearchTerm",o.editableSearchTerm)("keyDownFn",o.keyDownFn)("virtualScroll",o.virtualScroll)("fixedPlaceholder",o.fixedPlaceholder)("deselectOnClick",o.deselectOnClick),g(2),B(o.optionTemplate?2:-1),g(),B(o.optgroupTemplate?3:-1),g(),B(o.labelTemplate?4:-1),g(),B(o.multiLabelTemplate?5:-1),g(),B(o.headerTemplate?6:-1),g(),B(o.footerTemplate?7:-1),g(),B(o.notFoundTemplate?8:-1),g(),B(o.typeToSearchTemplate?9:-1),g(),B(o.loadingTextTemplate?10:-1),g(),B(o.tagTemplate?11:-1),g(),B(o.loadingSpinnerTemplate?12:-1),g(),B(o.placeholderTemplate?13:-1),g(),B(o.clearbuttonTemplate?14:-1))},dependencies:[MI,Oz,HC,jC,zC,UC,$C,WC,qC,GC,YC,QC,KC,ZC,XC,Qr,Pt,Ro,$n],styles:[`.ng-select{padding:var(--mat-form-field-filled-with-label-container-padding-top, 24px) 16px var(--mat-form-field-filled-with-label-container-padding-bottom, 8px);margin:calc(var(--mat-form-field-filled-with-label-container-padding-top, 24px) * -1) -16px calc(var(--mat-form-field-filled-with-label-container-padding-bottom, 8px) * -1)}.mdc-text-field--outlined .ng-select,.mdc-text-field--no-label .ng-select{padding-top:var(--mat-form-field-container-vertical-padding, 16px);padding-bottom:var(--mat-form-field-container-vertical-padding, 16px);margin-top:calc(var(--mat-form-field-container-vertical-padding, 16px) * -1);margin-bottom:calc(var(--mat-form-field-container-vertical-padding, 16px) * -1)}.ng-select .ng-select-container{align-items:center;color:var(--mtx-select-container-text-color, var(--mat-sys-on-surface))}.ng-select .ng-select-container .ng-value-container{align-items:center;gap:4px}.ng-select .ng-select-container .ng-value-container .ng-input>input{height:var(--mat-form-field-container-text-line-height, var(--mat-sys-body-large-line-height));color:inherit;font:inherit}.ng-select .ng-select-container .ng-clear-wrapper{display:inline-flex;justify-content:center;align-items:center;width:24px;height:var(--mat-form-field-container-text-line-height, var(--mat-sys-body-large-line-height))}.ng-select .ng-placeholder{transition:opacity .2s;opacity:1;color:var(--mtx-select-placeholder-text-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent))}.mat-form-field-hide-placeholder .ng-select .ng-placeholder{opacity:0}.ng-select .ng-has-value .ng-placeholder{display:none}.ng-select .ng-clear-wrapper{color:var(--mtx-select-clear-icon-color, var(--mat-sys-on-surface))}.ng-select .ng-clear-wrapper:hover .ng-clear{color:var(--mtx-select-clear-icon-hover-color, var(--mat-sys-error))}.ng-select.ng-select-disabled .ng-value{color:var(--mtx-select-disabled-text-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent))}.ng-select.ng-select-opened .ng-arrow-wrapper .ng-arrow{top:-2px;border-width:0 5px 5px}.ng-select.ng-select-single.ng-select-filtered .ng-placeholder{display:initial;visibility:hidden}.ng-select.ng-select-multiple .ng-select-container .ng-value-container .ng-value{display:inline-flex;align-items:center;height:var(--mat-form-field-container-text-line-height, var(--mat-sys-body-large-line-height));padding:0 calc((var(--mat-form-field-container-text-line-height, var(--mat-sys-body-large-line-height)) - 16px) / 2);border-radius:9999px;font-size:.875em;background-color:var(--mtx-select-multiple-value-background-color, transparent);border:1px solid var(--mtx-select-multiple-value-outline-color, var(--mat-sys-outline))}.ng-select.ng-select-multiple .ng-select-container .ng-value-container .ng-value.ng-value-disabled{opacity:.4}.ng-select.ng-select-multiple .ng-select-container .ng-value-container .ng-value .ng-value-label{display:inline-block;margin:0 4px;line-height:16px}.ng-select.ng-select-multiple .ng-select-container .ng-value-container .ng-value .ng-value-icon{width:16px;height:16px;line-height:16px;border-radius:50%;text-align:center}.ng-select.ng-select-multiple .ng-select-container .ng-value-container .ng-value .ng-value-icon:hover{background-color:var(--mtx-select-multiple-value-icon-hover-background-color, var(--mat-sys-outline-variant))}.ng-select.ng-select-multiple.ng-select-disabled .ng-select-container .ng-value-container .ng-value{border-color:var(--mtx-select-multiple-value-disabled-outline-color, color-mix(in srgb, var(--mat-sys-outline) 38%, transparent))}.ng-select .ng-arrow-wrapper{width:10px}.ng-select .ng-arrow{border-width:5px 5px 2px;border-style:solid;border-color:var(--mtx-select-enabled-arrow-color, var(--mat-sys-on-surface)) transparent transparent}.ng-select.ng-select-disabled .ng-arrow{border-color:var(--mtx-select-disabled-arrow-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent)) transparent transparent}.ng-select.ng-select-invalid .ng-arrow{border-color:var(--mtx-select-invalid-arrow-color, var(--mat-sys-error)) transparent transparent}.ng-select.ng-select-opened .ng-arrow{border-color:transparent transparent var(--mtx-select-enabled-arrow-color, var(--mat-sys-on-surface))}.ng-select.ng-select-opened.ng-select-invalid .ng-arrow{border-color:transparent transparent var(--mtx-select-invalid-arrow-color, var(--mat-sys-error))}.ng-dropdown-panel{background-color:var(--mtx-select-panel-background-color, var(--mat-sys-surface-container))}.ng-dropdown-panel.ng-select-bottom{top:100%;border-bottom-left-radius:var(--mtx-select-container-shape, var(--mat-sys-corner-extra-small));border-bottom-right-radius:var(--mtx-select-container-shape, var(--mat-sys-corner-extra-small));box-shadow:var(--mtx-select-container-elevation-shadow, 0px 3px 1px -2px rgba(0, 0, 0, .2), 0px 2px 2px 0px rgba(0, 0, 0, .14), 0px 1px 5px 0px rgba(0, 0, 0, .12))}.ng-dropdown-panel.ng-select-top{bottom:100%;border-top-left-radius:var(--mtx-select-container-shape, var(--mat-sys-corner-extra-small));border-top-right-radius:var(--mtx-select-container-shape, var(--mat-sys-corner-extra-small));box-shadow:var(--mtx-select-container-elevation-shadow, 0px 3px 1px -2px rgba(0, 0, 0, .2), 0px 2px 2px 0px rgba(0, 0, 0, .14), 0px 1px 5px 0px rgba(0, 0, 0, .12))}.ng-dropdown-panel .ng-dropdown-header,.ng-dropdown-panel .ng-dropdown-footer{padding:14px 16px}.ng-dropdown-panel .ng-dropdown-header{border-bottom:1px solid var(--mtx-select-panel-divider-color, var(--mat-sys-outline))}.ng-dropdown-panel .ng-dropdown-footer{border-top:1px solid var(--mtx-select-panel-divider-color, var(--mat-sys-outline))}.ng-dropdown-panel .ng-dropdown-panel-items .ng-optgroup{padding:14px 16px;font-weight:500;-webkit-user-select:none;user-select:none;cursor:pointer;color:var(--mtx-select-optgroup-label-text-color, var(--mat-sys-on-surface))}.ng-dropdown-panel .ng-dropdown-panel-items .ng-optgroup.ng-option-disabled{cursor:default}.ng-dropdown-panel .ng-dropdown-panel-items .ng-optgroup.ng-option-marked{background-color:var(--mtx-select-option-hover-state-background-color, color-mix(in srgb, var(--mat-sys-on-surface) calc(var(--mat-sys-hover-state-layer-opacity) * 100%), transparent))}.ng-dropdown-panel .ng-dropdown-panel-items .ng-optgroup.ng-option-selected{background-color:var(--mtx-select-option-selected-state-background-color, var(--mat-sys-secondary-container));color:var(--mtx-select-option-selected-state-text-color, var(--mat-sys-on-surface))}.ng-dropdown-panel .ng-dropdown-panel-items .ng-option{position:relative;padding:14px 16px;text-overflow:ellipsis;text-decoration:none;text-align:left;white-space:nowrap;overflow:hidden;color:var(--mtx-select-option-label-text-color, var(--mat-sys-on-surface))}.ng-dropdown-panel .ng-dropdown-panel-items .ng-option.ng-option-marked{background-color:var(--mtx-select-option-hover-state-background-color, color-mix(in srgb, var(--mat-sys-on-surface) calc(var(--mat-sys-hover-state-layer-opacity) * 100%), transparent))}.ng-dropdown-panel .ng-dropdown-panel-items .ng-option.ng-option-selected{background-color:var(--mtx-select-option-selected-state-background-color, var(--mat-sys-secondary-container));color:var(--mtx-select-option-selected-state-text-color, var(--mat-sys-on-surface))}.ng-dropdown-panel .ng-dropdown-panel-items .ng-option.ng-option-disabled{color:var(--mtx-select-option-disabled-state-text-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent))}[dir=rtl] .ng-dropdown-panel .ng-dropdown-panel-items .ng-option{text-align:right}.ng-dropdown-panel .ng-dropdown-panel-items .ng-option.ng-option-child{padding-left:32px}[dir=rtl] .ng-dropdown-panel .ng-dropdown-panel-items .ng-option.ng-option-child{padding-right:32px;padding-left:0}.ng-dropdown-panel .ng-dropdown-panel-items .ng-option .ng-tag-label{margin-right:6px;font-size:80%}[dir=rtl] .ng-dropdown-panel .ng-dropdown-panel-items .ng-option .ng-tag-label{margin-left:6px;margin-right:0} +`],encapsulation:2,changeDetection:0});let t=n;return t})(),Nz=(()=>{let n=class n{};n.\u0275fac=function(r){return new(r||n)},n.\u0275mod=ee({type:n}),n.\u0275inj=J({imports:[Je,Qr,Zn,MI,SI]});let t=n;return t})();var Lz=(()=>{let n=class n extends uo{get bindLabel(){return typeof this.props.labelProp=="string"?this.props.labelProp:""}get bindValue(){return typeof this.props.valueProp=="string"?this.props.valueProp:void 0}};n.\u0275fac=(()=>{let i;return function(o){return(i||(i=ge(n)))(o||n)}})(),n.\u0275cmp=E({type:n,selectors:[["formly-field-combobox"]],features:[le],decls:4,vars:13,consts:[["select",""],[3,"formControl","items","bindLabel","bindValue","multiple","placeholder","required","closeOnSelect","compareWith"]],template:function(r,o){r&1&&(M(0,"mtx-select",1,0),me(2,"toObservable"),me(3,"async")),r&2&&v("formControl",o.formControl)("items",Re(3,11,Re(2,9,o.props.options)))("bindLabel",o.bindLabel)("bindValue",o.bindValue)("multiple",o.props.multiple)("placeholder",o.props.placeholder)("required",o.props.required)("closeOnSelect",!o.props.multiple)("compareWith",o.props.compareWith)},dependencies:[Zn,Pt,Fo,Po,Nz,SI,f3,cn,p3],encapsulation:2});let t=n;return t})();var Vz=(()=>{let n=class n extends Sg{};n.\u0275fac=(()=>{let i;return function(o){return(i||(i=ge(n)))(o||n)}})(),n.\u0275cmp=E({type:n,selectors:[["formly-wrapper-card"]],features:[le],decls:8,vars:1,consts:[["fieldComponent",""],[1,"card"],[1,"card-header"],[1,"card-body"]],template:function(r,o){r&1&&(gt(0,"div",1)(1,"h3",2),f(2,"Its time to party"),yt(),gt(3,"h3",2),f(4),yt(),gt(5,"div",3),df(6,null,0),yt()()),r&2&&(g(4),N(o.props.label))},encapsulation:2});let t=n;return t})(),Bz=(()=>{let n=class n extends Sg{};n.\u0275fac=(()=>{let i;return function(o){return(i||(i=ge(n)))(o||n)}})(),n.\u0275cmp=E({type:n,selectors:[["formly-wrapper-div"]],features:[le],decls:3,vars:0,consts:[["fieldComponent",""]],template:function(r,o){r&1&&(gt(0,"div"),df(1,null,0),yt())},encapsulation:2});let t=n;return t})();function jz(t){return{types:[{name:"combobox",component:Lz,wrappers:["form-field"]}],wrappers:[{name:"card",component:Vz},{name:"div",component:Bz}],validators:[],validationMessages:[{name:"required",message:(n,e)=>t.stream("validation.required")},{name:"min",message:(n,e)=>t.stream("validation.min",{number:e.props?.min})},{name:"max",message:(n,e)=>t.stream("validation.max",{number:e.props?.max})},{name:"minLength",message:(n,e)=>t.stream("validation.min_length",{number:e.props?.minLength})},{name:"maxLength",message:(n,e)=>t.stream("validation.max_length",{number:e.props?.maxLength})}]}}var Lhe={lessThanXSeconds:{one:"\u4E0D\u5230 1 \u79D2",other:"\u4E0D\u5230 {{count}} \u79D2"},xSeconds:{one:"1 \u79D2",other:"{{count}} \u79D2"},halfAMinute:"\u534A\u5206\u949F",lessThanXMinutes:{one:"\u4E0D\u5230 1 \u5206\u949F",other:"\u4E0D\u5230 {{count}} \u5206\u949F"},xMinutes:{one:"1 \u5206\u949F",other:"{{count}} \u5206\u949F"},xHours:{one:"1 \u5C0F\u65F6",other:"{{count}} \u5C0F\u65F6"},aboutXHours:{one:"\u5927\u7EA6 1 \u5C0F\u65F6",other:"\u5927\u7EA6 {{count}} \u5C0F\u65F6"},xDays:{one:"1 \u5929",other:"{{count}} \u5929"},aboutXWeeks:{one:"\u5927\u7EA6 1 \u4E2A\u661F\u671F",other:"\u5927\u7EA6 {{count}} \u4E2A\u661F\u671F"},xWeeks:{one:"1 \u4E2A\u661F\u671F",other:"{{count}} \u4E2A\u661F\u671F"},aboutXMonths:{one:"\u5927\u7EA6 1 \u4E2A\u6708",other:"\u5927\u7EA6 {{count}} \u4E2A\u6708"},xMonths:{one:"1 \u4E2A\u6708",other:"{{count}} \u4E2A\u6708"},aboutXYears:{one:"\u5927\u7EA6 1 \u5E74",other:"\u5927\u7EA6 {{count}} \u5E74"},xYears:{one:"1 \u5E74",other:"{{count}} \u5E74"},overXYears:{one:"\u8D85\u8FC7 1 \u5E74",other:"\u8D85\u8FC7 {{count}} \u5E74"},almostXYears:{one:"\u5C06\u8FD1 1 \u5E74",other:"\u5C06\u8FD1 {{count}} \u5E74"}},Hz=(t,n,e)=>{let i,r=Lhe[t];return typeof r=="string"?i=r:n===1?i=r.one:i=r.other.replace("{{count}}",String(n)),e?.addSuffix?e.comparison&&e.comparison>0?i+"\u5185":i+"\u524D":i};var Vhe={full:"y'\u5E74'M'\u6708'd'\u65E5' EEEE",long:"y'\u5E74'M'\u6708'd'\u65E5'",medium:"yyyy-MM-dd",short:"yy-MM-dd"},Bhe={full:"zzzz a h:mm:ss",long:"z a h:mm:ss",medium:"a h:mm:ss",short:"a h:mm"},jhe={full:"{{date}} {{time}}",long:"{{date}} {{time}}",medium:"{{date}} {{time}}",short:"{{date}} {{time}}"},zz={date:ia({formats:Vhe,defaultWidth:"full"}),time:ia({formats:Bhe,defaultWidth:"full"}),dateTime:ia({formats:jhe,defaultWidth:"full"})};function Uz(t,n,e){let i="eeee p";return zV(t,n,e)?i:t.getTime()>n.getTime()?"'\u4E0B\u4E2A'"+i:"'\u4E0A\u4E2A'"+i}var Hhe={lastWeek:Uz,yesterday:"'\u6628\u5929' p",today:"'\u4ECA\u5929' p",tomorrow:"'\u660E\u5929' p",nextWeek:Uz,other:"PP p"},$z=(t,n,e,i)=>{let r=Hhe[t];return typeof r=="function"?r(n,e,i):r};var zhe={narrow:["\u524D","\u516C\u5143"],abbreviated:["\u524D","\u516C\u5143"],wide:["\u516C\u5143\u524D","\u516C\u5143"]},Uhe={narrow:["1","2","3","4"],abbreviated:["\u7B2C\u4E00\u5B63","\u7B2C\u4E8C\u5B63","\u7B2C\u4E09\u5B63","\u7B2C\u56DB\u5B63"],wide:["\u7B2C\u4E00\u5B63\u5EA6","\u7B2C\u4E8C\u5B63\u5EA6","\u7B2C\u4E09\u5B63\u5EA6","\u7B2C\u56DB\u5B63\u5EA6"]},$he={narrow:["\u4E00","\u4E8C","\u4E09","\u56DB","\u4E94","\u516D","\u4E03","\u516B","\u4E5D","\u5341","\u5341\u4E00","\u5341\u4E8C"],abbreviated:["1\u6708","2\u6708","3\u6708","4\u6708","5\u6708","6\u6708","7\u6708","8\u6708","9\u6708","10\u6708","11\u6708","12\u6708"],wide:["\u4E00\u6708","\u4E8C\u6708","\u4E09\u6708","\u56DB\u6708","\u4E94\u6708","\u516D\u6708","\u4E03\u6708","\u516B\u6708","\u4E5D\u6708","\u5341\u6708","\u5341\u4E00\u6708","\u5341\u4E8C\u6708"]},Whe={narrow:["\u65E5","\u4E00","\u4E8C","\u4E09","\u56DB","\u4E94","\u516D"],short:["\u65E5","\u4E00","\u4E8C","\u4E09","\u56DB","\u4E94","\u516D"],abbreviated:["\u5468\u65E5","\u5468\u4E00","\u5468\u4E8C","\u5468\u4E09","\u5468\u56DB","\u5468\u4E94","\u5468\u516D"],wide:["\u661F\u671F\u65E5","\u661F\u671F\u4E00","\u661F\u671F\u4E8C","\u661F\u671F\u4E09","\u661F\u671F\u56DB","\u661F\u671F\u4E94","\u661F\u671F\u516D"]},Ghe={narrow:{am:"\u4E0A",pm:"\u4E0B",midnight:"\u51CC\u6668",noon:"\u5348",morning:"\u65E9",afternoon:"\u4E0B\u5348",evening:"\u665A",night:"\u591C"},abbreviated:{am:"\u4E0A\u5348",pm:"\u4E0B\u5348",midnight:"\u51CC\u6668",noon:"\u4E2D\u5348",morning:"\u65E9\u6668",afternoon:"\u4E2D\u5348",evening:"\u665A\u4E0A",night:"\u591C\u95F4"},wide:{am:"\u4E0A\u5348",pm:"\u4E0B\u5348",midnight:"\u51CC\u6668",noon:"\u4E2D\u5348",morning:"\u65E9\u6668",afternoon:"\u4E2D\u5348",evening:"\u665A\u4E0A",night:"\u591C\u95F4"}},qhe={narrow:{am:"\u4E0A",pm:"\u4E0B",midnight:"\u51CC\u6668",noon:"\u5348",morning:"\u65E9",afternoon:"\u4E0B\u5348",evening:"\u665A",night:"\u591C"},abbreviated:{am:"\u4E0A\u5348",pm:"\u4E0B\u5348",midnight:"\u51CC\u6668",noon:"\u4E2D\u5348",morning:"\u65E9\u6668",afternoon:"\u4E2D\u5348",evening:"\u665A\u4E0A",night:"\u591C\u95F4"},wide:{am:"\u4E0A\u5348",pm:"\u4E0B\u5348",midnight:"\u51CC\u6668",noon:"\u4E2D\u5348",morning:"\u65E9\u6668",afternoon:"\u4E2D\u5348",evening:"\u665A\u4E0A",night:"\u591C\u95F4"}},Yhe=(t,n)=>{let e=Number(t);switch(n?.unit){case"date":return e.toString()+"\u65E5";case"hour":return e.toString()+"\u65F6";case"minute":return e.toString()+"\u5206";case"second":return e.toString()+"\u79D2";default:return"\u7B2C "+e.toString()}},Wz={ordinalNumber:Yhe,era:Yn({values:zhe,defaultWidth:"wide"}),quarter:Yn({values:Uhe,defaultWidth:"wide",argumentCallback:t=>t-1}),month:Yn({values:$he,defaultWidth:"wide"}),day:Yn({values:Whe,defaultWidth:"wide"}),dayPeriod:Yn({values:Ghe,defaultWidth:"wide",formattingValues:qhe,defaultFormattingWidth:"wide"})};var Qhe=/^(第\s*)?\d+(日|时|分|秒)?/i,Khe=/\d+/i,Zhe={narrow:/^(前)/i,abbreviated:/^(前)/i,wide:/^(公元前|公元)/i},Xhe={any:[/^(前)/i,/^(公元)/i]},Jhe={narrow:/^[1234]/i,abbreviated:/^第[一二三四]刻/i,wide:/^第[一二三四]刻钟/i},epe={any:[/(1|一)/i,/(2|二)/i,/(3|三)/i,/(4|四)/i]},tpe={narrow:/^(一|二|三|四|五|六|七|八|九|十[二一])/i,abbreviated:/^(一|二|三|四|五|六|七|八|九|十[二一]|\d|1[12])月/i,wide:/^(一|二|三|四|五|六|七|八|九|十[二一])月/i},ipe={narrow:[/^一/i,/^二/i,/^三/i,/^四/i,/^五/i,/^六/i,/^七/i,/^八/i,/^九/i,/^十(?!(一|二))/i,/^十一/i,/^十二/i],any:[/^一|1/i,/^二|2/i,/^三|3/i,/^四|4/i,/^五|5/i,/^六|6/i,/^七|7/i,/^八|8/i,/^九|9/i,/^十(?!(一|二))|10/i,/^十一|11/i,/^十二|12/i]},npe={narrow:/^[一二三四五六日]/i,short:/^[一二三四五六日]/i,abbreviated:/^周[一二三四五六日]/i,wide:/^星期[一二三四五六日]/i},rpe={any:[/日/i,/一/i,/二/i,/三/i,/四/i,/五/i,/六/i]},ope={any:/^(上午?|下午?|午夜|[中正]午|早上?|下午|晚上?|凌晨|)/i},ape={any:{am:/^上午?/i,pm:/^下午?/i,midnight:/^午夜/i,noon:/^[中正]午/i,morning:/^早上/i,afternoon:/^下午/i,evening:/^晚上?/i,night:/^凌晨/i}},Gz={ordinalNumber:hh({matchPattern:Qhe,parsePattern:Khe,valueCallback:t=>parseInt(t,10)}),era:Qn({matchPatterns:Zhe,defaultMatchWidth:"wide",parsePatterns:Xhe,defaultParseWidth:"any"}),quarter:Qn({matchPatterns:Jhe,defaultMatchWidth:"wide",parsePatterns:epe,defaultParseWidth:"any",valueCallback:t=>t+1}),month:Qn({matchPatterns:tpe,defaultMatchWidth:"wide",parsePatterns:ipe,defaultParseWidth:"any"}),day:Qn({matchPatterns:npe,defaultMatchWidth:"wide",parsePatterns:rpe,defaultParseWidth:"any"}),dayPeriod:Qn({matchPatterns:ope,defaultMatchWidth:"any",parsePatterns:ape,defaultParseWidth:"any"})};var qz={code:"zh-CN",formatDistance:Hz,formatLong:zz,formatRelative:$z,localize:Wz,match:Gz,options:{weekStartsOn:1,firstWeekContainsDate:4}};var spe={lessThanXSeconds:{one:"\u5C11\u65BC 1 \u79D2",other:"\u5C11\u65BC {{count}} \u79D2"},xSeconds:{one:"1 \u79D2",other:"{{count}} \u79D2"},halfAMinute:"\u534A\u5206\u9418",lessThanXMinutes:{one:"\u5C11\u65BC 1 \u5206\u9418",other:"\u5C11\u65BC {{count}} \u5206\u9418"},xMinutes:{one:"1 \u5206\u9418",other:"{{count}} \u5206\u9418"},xHours:{one:"1 \u5C0F\u6642",other:"{{count}} \u5C0F\u6642"},aboutXHours:{one:"\u5927\u7D04 1 \u5C0F\u6642",other:"\u5927\u7D04 {{count}} \u5C0F\u6642"},xDays:{one:"1 \u5929",other:"{{count}} \u5929"},aboutXWeeks:{one:"\u5927\u7D04 1 \u500B\u661F\u671F",other:"\u5927\u7D04 {{count}} \u500B\u661F\u671F"},xWeeks:{one:"1 \u500B\u661F\u671F",other:"{{count}} \u500B\u661F\u671F"},aboutXMonths:{one:"\u5927\u7D04 1 \u500B\u6708",other:"\u5927\u7D04 {{count}} \u500B\u6708"},xMonths:{one:"1 \u500B\u6708",other:"{{count}} \u500B\u6708"},aboutXYears:{one:"\u5927\u7D04 1 \u5E74",other:"\u5927\u7D04 {{count}} \u5E74"},xYears:{one:"1 \u5E74",other:"{{count}} \u5E74"},overXYears:{one:"\u8D85\u904E 1 \u5E74",other:"\u8D85\u904E {{count}} \u5E74"},almostXYears:{one:"\u5C07\u8FD1 1 \u5E74",other:"\u5C07\u8FD1 {{count}} \u5E74"}},Yz=(t,n,e)=>{let i,r=spe[t];return typeof r=="string"?i=r:n===1?i=r.one:i=r.other.replace("{{count}}",String(n)),e?.addSuffix?e.comparison&&e.comparison>0?i+"\u5167":i+"\u524D":i};var lpe={full:"y'\u5E74'M'\u6708'd'\u65E5' EEEE",long:"y'\u5E74'M'\u6708'd'\u65E5'",medium:"yyyy-MM-dd",short:"yy-MM-dd"},cpe={full:"zzzz a h:mm:ss",long:"z a h:mm:ss",medium:"a h:mm:ss",short:"a h:mm"},dpe={full:"{{date}} {{time}}",long:"{{date}} {{time}}",medium:"{{date}} {{time}}",short:"{{date}} {{time}}"},Qz={date:ia({formats:lpe,defaultWidth:"full"}),time:ia({formats:cpe,defaultWidth:"full"}),dateTime:ia({formats:dpe,defaultWidth:"full"})};var upe={lastWeek:"'\u4E0A\u500B'eeee p",yesterday:"'\u6628\u5929' p",today:"'\u4ECA\u5929' p",tomorrow:"'\u660E\u5929' p",nextWeek:"'\u4E0B\u500B'eeee p",other:"P"},Kz=(t,n,e,i)=>upe[t];var mpe={narrow:["\u524D","\u516C\u5143"],abbreviated:["\u524D","\u516C\u5143"],wide:["\u516C\u5143\u524D","\u516C\u5143"]},hpe={narrow:["1","2","3","4"],abbreviated:["\u7B2C\u4E00\u523B","\u7B2C\u4E8C\u523B","\u7B2C\u4E09\u523B","\u7B2C\u56DB\u523B"],wide:["\u7B2C\u4E00\u523B\u9418","\u7B2C\u4E8C\u523B\u9418","\u7B2C\u4E09\u523B\u9418","\u7B2C\u56DB\u523B\u9418"]},ppe={narrow:["\u4E00","\u4E8C","\u4E09","\u56DB","\u4E94","\u516D","\u4E03","\u516B","\u4E5D","\u5341","\u5341\u4E00","\u5341\u4E8C"],abbreviated:["1\u6708","2\u6708","3\u6708","4\u6708","5\u6708","6\u6708","7\u6708","8\u6708","9\u6708","10\u6708","11\u6708","12\u6708"],wide:["\u4E00\u6708","\u4E8C\u6708","\u4E09\u6708","\u56DB\u6708","\u4E94\u6708","\u516D\u6708","\u4E03\u6708","\u516B\u6708","\u4E5D\u6708","\u5341\u6708","\u5341\u4E00\u6708","\u5341\u4E8C\u6708"]},fpe={narrow:["\u65E5","\u4E00","\u4E8C","\u4E09","\u56DB","\u4E94","\u516D"],short:["\u65E5","\u4E00","\u4E8C","\u4E09","\u56DB","\u4E94","\u516D"],abbreviated:["\u9031\u65E5","\u9031\u4E00","\u9031\u4E8C","\u9031\u4E09","\u9031\u56DB","\u9031\u4E94","\u9031\u516D"],wide:["\u661F\u671F\u65E5","\u661F\u671F\u4E00","\u661F\u671F\u4E8C","\u661F\u671F\u4E09","\u661F\u671F\u56DB","\u661F\u671F\u4E94","\u661F\u671F\u516D"]},gpe={narrow:{am:"\u4E0A",pm:"\u4E0B",midnight:"\u51CC\u6668",noon:"\u5348",morning:"\u65E9",afternoon:"\u4E0B\u5348",evening:"\u665A",night:"\u591C"},abbreviated:{am:"\u4E0A\u5348",pm:"\u4E0B\u5348",midnight:"\u51CC\u6668",noon:"\u4E2D\u5348",morning:"\u65E9\u6668",afternoon:"\u4E2D\u5348",evening:"\u665A\u4E0A",night:"\u591C\u9593"},wide:{am:"\u4E0A\u5348",pm:"\u4E0B\u5348",midnight:"\u51CC\u6668",noon:"\u4E2D\u5348",morning:"\u65E9\u6668",afternoon:"\u4E2D\u5348",evening:"\u665A\u4E0A",night:"\u591C\u9593"}},_pe={narrow:{am:"\u4E0A",pm:"\u4E0B",midnight:"\u51CC\u6668",noon:"\u5348",morning:"\u65E9",afternoon:"\u4E0B\u5348",evening:"\u665A",night:"\u591C"},abbreviated:{am:"\u4E0A\u5348",pm:"\u4E0B\u5348",midnight:"\u51CC\u6668",noon:"\u4E2D\u5348",morning:"\u65E9\u6668",afternoon:"\u4E2D\u5348",evening:"\u665A\u4E0A",night:"\u591C\u9593"},wide:{am:"\u4E0A\u5348",pm:"\u4E0B\u5348",midnight:"\u51CC\u6668",noon:"\u4E2D\u5348",morning:"\u65E9\u6668",afternoon:"\u4E2D\u5348",evening:"\u665A\u4E0A",night:"\u591C\u9593"}},bpe=(t,n)=>{let e=Number(t);switch(n?.unit){case"date":return e+"\u65E5";case"hour":return e+"\u6642";case"minute":return e+"\u5206";case"second":return e+"\u79D2";default:return"\u7B2C "+e}},Zz={ordinalNumber:bpe,era:Yn({values:mpe,defaultWidth:"wide"}),quarter:Yn({values:hpe,defaultWidth:"wide",argumentCallback:t=>t-1}),month:Yn({values:ppe,defaultWidth:"wide"}),day:Yn({values:fpe,defaultWidth:"wide"}),dayPeriod:Yn({values:gpe,defaultWidth:"wide",formattingValues:_pe,defaultFormattingWidth:"wide"})};var vpe=/^(第\s*)?\d+(日|時|分|秒)?/i,ype=/\d+/i,xpe={narrow:/^(前)/i,abbreviated:/^(前)/i,wide:/^(公元前|公元)/i},Cpe={any:[/^(前)/i,/^(公元)/i]},wpe={narrow:/^[1234]/i,abbreviated:/^第[一二三四]刻/i,wide:/^第[一二三四]刻鐘/i},Dpe={any:[/(1|一)/i,/(2|二)/i,/(3|三)/i,/(4|四)/i]},Mpe={narrow:/^(一|二|三|四|五|六|七|八|九|十[二一])/i,abbreviated:/^(一|二|三|四|五|六|七|八|九|十[二一]|\d|1[12])月/i,wide:/^(一|二|三|四|五|六|七|八|九|十[二一])月/i},Epe={narrow:[/^一/i,/^二/i,/^三/i,/^四/i,/^五/i,/^六/i,/^七/i,/^八/i,/^九/i,/^十(?!(一|二))/i,/^十一/i,/^十二/i],any:[/^一|1/i,/^二|2/i,/^三|3/i,/^四|4/i,/^五|5/i,/^六|6/i,/^七|7/i,/^八|8/i,/^九|9/i,/^十(?!(一|二))|10/i,/^十一|11/i,/^十二|12/i]},Spe={narrow:/^[一二三四五六日]/i,short:/^[一二三四五六日]/i,abbreviated:/^週[一二三四五六日]/i,wide:/^星期[一二三四五六日]/i},kpe={any:[/日/i,/一/i,/二/i,/三/i,/四/i,/五/i,/六/i]},Tpe={any:/^(上午?|下午?|午夜|[中正]午|早上?|下午|晚上?|凌晨)/i},Ipe={any:{am:/^上午?/i,pm:/^下午?/i,midnight:/^午夜/i,noon:/^[中正]午/i,morning:/^早上/i,afternoon:/^下午/i,evening:/^晚上?/i,night:/^凌晨/i}},Xz={ordinalNumber:hh({matchPattern:vpe,parsePattern:ype,valueCallback:t=>parseInt(t,10)}),era:Qn({matchPatterns:xpe,defaultMatchWidth:"wide",parsePatterns:Cpe,defaultParseWidth:"any"}),quarter:Qn({matchPatterns:wpe,defaultMatchWidth:"wide",parsePatterns:Dpe,defaultParseWidth:"any",valueCallback:t=>t+1}),month:Qn({matchPatterns:Mpe,defaultMatchWidth:"wide",parsePatterns:Epe,defaultParseWidth:"any"}),day:Qn({matchPatterns:Spe,defaultMatchWidth:"wide",parsePatterns:kpe,defaultParseWidth:"any"}),dayPeriod:Qn({matchPatterns:Tpe,defaultMatchWidth:"any",parsePatterns:Ipe,defaultParseWidth:"any"})};var Jz={code:"zh-TW",formatDistance:Yz,formatLong:Qz,formatRelative:Kz,localize:Zz,match:Xz,options:{weekStartsOn:1,firstWeekContainsDate:4}};var kI={navPos:"side",theme:"auto",dir:"ltr",showHeader:!0,headerPos:"fixed",showUserPanel:!0,sidenavOpened:!0,sidenavCollapsed:!1,language:"auto"};var ha=(()=>{let n=class n{get notify(){return this.notify$.asObservable()}constructor(){this.key="ng-matero-settings",this.document=u(_e),this.translate=u(ca),this.store=u(xz),this.mediaMatcher=u(Xm),this.dir=u(vz),this.notify$=new rt({}),this.htmlElement=this.document.querySelector("html"),this.storedOptions=this.store.get(this.key),this.options=Object.assign(kI,this.storedOptions),this.languages=["en-US","zh-CN","zh-TW"],this.localeMap={"en-US":cu,"zh-CN":qz,"zh-TW":Jz},this.translate.addLangs(this.languages)}reset(){this.store.remove(this.key)}setOptions(i){this.options=Object.assign(kI,this.options,i),this.store.set(this.key,this.options),this.notify$.next(this.options)}setDirection(i){i&&this.setOptions({dir:i}),this.dir.value=this.options.dir,this.htmlElement.dir=this.options.dir}getThemeColor(){return this.options.theme==="auto"&&this.mediaMatcher.matchMedia("(prefers-color-scheme)").media!=="not all"?this.mediaMatcher.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light":this.options.theme}setTheme(i){i&&this.setOptions({theme:i}),this.getThemeColor()==="dark"?this.htmlElement.classList.add("theme-dark"):this.htmlElement.classList.remove("theme-dark")}getTranslateLang(){if(this.options.language==="auto"){let i=navigator.language;return this.languages.includes(i)?i:"en-US"}return this.options.language}setLanguage(i){i&&this.setOptions({language:i}),this.translate.use(this.getTranslateLang())}getLocale(){return this.localeMap[this.getTranslateLang()]}};n.\u0275fac=function(r){return new(r||n)},n.\u0275prov=R({token:n,factory:n.\u0275fac,providedIn:"root"});let t=n;return t})();var e8=(()=>{let n=class n{constructor(){this.http=u(kr),this.oidcAuth=u(Ht),this.menuService=u(bo),this.permissonsService=u(wu),this.rolesService=u(Ph),this.oidcAuth.permissionsChange$.subscribe(()=>{console.log("StartupService: Permission change event received, refreshing permissions"),this.setPermissions()})}load(){return new Promise((i,r)=>{this.http.get("data/menu.json").pipe(He(o=>this.setMenu(o.menu))).subscribe({next:()=>{this.setPermissions(),i()},error:o=>{console.error("Error loading menu:",o),this.setPermissions(),i()}})})}setMenu(i){this.menuService.addNamespace(i,"menu"),this.menuService.set(i)}setPermissions(){let i=this.oidcAuth.getUserRoles();console.log("StartupService: User roles from token:",i);let r=["canAdd","canDelete","canEdit","canRead"];this.rolesService.flushRoles(),i.length>0?(this.permissonsService.loadPermissions(r),console.log("StartupService: Loaded permissions:",r),i.includes("HRAdmin")&&(this.rolesService.addRoles({HRAdmin:r}),console.log("StartupService: Added HRAdmin role with permissions:",r)),i.includes("Manager")&&(this.rolesService.addRoles({Manager:r}),console.log("StartupService: Added Manager role with permissions:",r)),i.includes("Employee")&&(this.rolesService.addRoles({Employee:["canRead"]}),console.log("StartupService: Added Employee role with canRead permission"))):(console.log("StartupService: No roles found - setting Guest permissions"),this.permissonsService.loadPermissions(["canRead"]),this.rolesService.addRoles({Guest:["canRead"]}))}};n.\u0275fac=function(r){return new(r||n)},n.\u0275prov=R({token:n,factory:n.\u0275fac,providedIn:"root"});let t=n;return t})();var t8=(()=>{let n=class n{constructor(){this.document=u(_e),this.selector="globalLoader"}getElement(){return this.document.getElementById(this.selector)}hide(){let i=this.getElement();i&&(i.addEventListener("transitionend",()=>{i.className="global-loader-hidden"}),i.classList.contains("global-loader-hidden")||(i.className+=" global-loader-fade-out"))}};n.\u0275fac=function(r){return new(r||n)},n.\u0275prov=R({token:n,factory:n.\u0275fac,providedIn:"root"});let t=n;return t})();var i8=(()=>{let n=class n{constructor(){this.translate=u(ca),this.settings=u(ha)}load(){return new Promise(i=>{let r=this.settings.getTranslateLang();this.translate.setFallbackLang(r),this.translate.use(r).subscribe({next:()=>console.log(`Successfully initialized '${r}' language.'`),error:()=>console.error(`Problem with '${r}' language initialization.'`),complete:()=>i()})})}};n.\u0275fac=function(r){return new(r||n)},n.\u0275prov=R({token:n,factory:n.\u0275fac,providedIn:"root"});let t=n;return t})();function n8(t,n){return n(t)}var TI=new O("BASE_URL");function Ape(t){return new RegExp("^http(s)?://","i").test(t)}function r8(t,n){let e=u(TI,{optional:!0}),i=o=>e&&Ape(o),r=o=>[e?.replace(/\/$/g,""),o.replace(/^\.?\//,"")].filter(a=>a).join("/");return i(t.url)===!1?n(t.clone({url:r(t.url)})):n(t)}function o8(t,n){let e=u(ha);return n(t.clone({headers:t.headers.append("Accept-Language",e.getTranslateLang())}))}function a8(t,n){let e=u(Vg);return t.url.includes("/api/")?n(t).pipe(Vt(i=>{if(i instanceof xl){let r=i.body;if(r&&"code"in r&&r.code!==0)return r.msg&&e.error(r.msg),er(()=>[])}return Q(i)})):n(t)}var b_=(function(t){return t[t.UNAUTHORIZED=401]="UNAUTHORIZED",t[t.FORBIDDEN=403]="FORBIDDEN",t[t.NOT_FOUND=404]="NOT_FOUND",t[t.INTERNAL_SERVER_ERROR=500]="INTERNAL_SERVER_ERROR",t})(b_||{});function s8(t,n){let e=u(Ae),i=u(Vg),r=[b_.FORBIDDEN,b_.NOT_FOUND,b_.INTERNAL_SERVER_ERROR],o=a=>a.error?.message?a.error.message:a.error?.msg?a.error.msg:a.status===0?"Network error - please check your connection":`${a.status} ${a.statusText}`;return n(t).pipe(ei(a=>a.status===0?(console.warn("Network error (possible CORS issue):",a),er(()=>a)):(!t.url.includes("/ai/")&&r.includes(a.status)?e.navigateByUrl(`/${a.status}`,{skipLocationChange:!0}):(console.error("ERROR",a),i.error(o(a)),a.status===b_.UNAUTHORIZED&&console.warn("Unauthorized access - authentication required")),er(()=>a))))}function l8(t,n){let e=u(yz),i=Date.now(),r;return n(t).pipe(He({next:o=>r=o instanceof xl?"succeeded":"",error:o=>r="failed"}),Xr(()=>{let o=Date.now()-i,a=`${t.method} "${t.urlWithParams}" ${r} in ${o} ms.`;e.add(a)}))}var c8=[n8,r8,o8,a8,s8,l8];var tw=["*"],Ope=["content"],Rpe=[[["mat-drawer"]],[["mat-drawer-content"]],"*"],Ppe=["mat-drawer","mat-drawer-content","*"];function Fpe(t,n){if(t&1){let e=q();m(0,"div",1),S("click",function(){k(e);let r=x();return T(r._onBackdropClicked())}),h()}if(t&2){let e=x();G("mat-drawer-shown",e._isShowingBackdrop())}}function Npe(t,n){t&1&&(m(0,"mat-drawer-content"),ne(1,2),h())}var Lpe=[[["mat-sidenav"]],[["mat-sidenav-content"]],"*"],Vpe=["mat-sidenav","mat-sidenav-content","*"];function Bpe(t,n){if(t&1){let e=q();m(0,"div",1),S("click",function(){k(e);let r=x();return T(r._onBackdropClicked())}),h()}if(t&2){let e=x();G("mat-drawer-shown",e._isShowingBackdrop())}}function jpe(t,n){t&1&&(m(0,"mat-sidenav-content"),ne(1,2),h())}var Hpe=`.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:.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} +`;var zpe=new O("MAT_DRAWER_DEFAULT_AUTOSIZE",{providedIn:"root",factory:Upe}),OI=new O("MAT_DRAWER_CONTAINER");function Upe(){return!1}var JC=(()=>{class t extends Za{_platform=u(Ye);_changeDetectorRef=u(ye);_container=u(AI);constructor(){let e=u(Y),i=u(Hs),r=u(ae);super(e,i,r)}ngAfterContentInit(){this._container._contentMarginChanges.subscribe(()=>{this._changeDetectorRef.markForCheck()})}_shouldBeHidden(){if(this._platform.isBrowser)return!1;let{start:e,end:i}=this._container;return e!=null&&e.mode!=="over"&&e.opened||i!=null&&i.mode!=="over"&&i.opened}static \u0275fac=function(i){return new(i||t)};static \u0275cmp=E({type:t,selectors:[["mat-drawer-content"]],hostAttrs:[1,"mat-drawer-content"],hostVars:6,hostBindings:function(i,r){i&2&&(At("margin-left",r._container._contentMargins.left,"px")("margin-right",r._container._contentMargins.right,"px"),G("mat-drawer-content-hidden",r._shouldBeHidden()))},features:[Ce([{provide:Za,useExisting:t}]),le],ngContentSelectors:tw,decls:1,vars:0,template:function(i,r){i&1&&(Ee(),ne(0))},encapsulation:2,changeDetection:0})}return t})(),II=(()=>{class t{_elementRef=u(Y);_focusTrapFactory=u(eh);_focusMonitor=u(oi);_platform=u(Ye);_ngZone=u(ae);_renderer=u(ze);_interactivityChecker=u(Dc);_doc=u(_e);_container=u(OI,{optional:!0});_focusTrap=null;_elementFocusedBeforeDrawerWasOpened=null;_eventCleanups;_isAttached;_anchor;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=Vi(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=Vi(e)),this._autoFocus=e}_autoFocus;get opened(){return this._opened()}set opened(e){this.toggle(Vi(e))}_opened=he(!1);_openedVia;_animationStarted=new z;_animationEnd=new z;openedChange=new U(!0);_openedStream=this.openedChange.pipe(ce(e=>e),se(()=>{}));openedStart=this._animationStarted.pipe(ce(()=>this.opened),Zu(void 0));_closedStream=this.openedChange.pipe(ce(e=>!e),se(()=>{}));closedStart=this._animationStarted.pipe(ce(()=>!this.opened),Zu(void 0));_destroyed=new z;onPositionChanged=new U;_content;_modeChanged=new z;_injector=u(de);_changeDetectorRef=u(ye);constructor(){this.openedChange.pipe(we(this._destroyed)).subscribe(e=>{e?(this._elementFocusedBeforeDrawerWasOpened=this._doc.activeElement,this._takeFocus()):this._isFocusWithinDrawer()&&this._restoreFocus(this._openedVia||"program")}),this._ngZone.runOutsideAngular(()=>{let e=this._elementRef.nativeElement;ol(e,"keydown").pipe(ce(i=>i.keyCode===27&&!this.disableClose&&!Gt(i)),we(this._destroyed)).subscribe(i=>this._ngZone.run(()=>{this.close(),i.stopPropagation(),i.preventDefault()})),this._eventCleanups=[this._renderer.listen(e,"transitionrun",this._handleTransitionEvent),this._renderer.listen(e,"transitionend",this._handleTransitionEvent),this._renderer.listen(e,"transitioncancel",this._handleTransitionEvent)]}),this._animationEnd.subscribe(()=>{this.openedChange.emit(this.opened)})}_forceFocus(e,i){this._interactivityChecker.isFocusable(e)||(e.tabIndex=-1,this._ngZone.runOutsideAngular(()=>{let r=()=>{o(),a(),e.removeAttribute("tabindex")},o=this._renderer.listen(e,"blur",r),a=this._renderer.listen(e,"mousedown",r)})),e.focus(i)}_focusByCssSelector(e,i){let r=this._elementRef.nativeElement.querySelector(e);r&&this._forceFocus(r,i)}_takeFocus(){if(!this._focusTrap)return;let e=this._elementRef.nativeElement;switch(this.autoFocus){case!1:case"dialog":return;case!0:case"first-tabbable":vt(()=>{!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,i){e&&i&&(this._openedVia=i);let r=this._setOpen(e,!e&&this._isFocusWithinDrawer(),this._openedVia||"program");return e||(this._openedVia=null),r}_setOpen(e,i,r){return e===this.opened?Promise.resolve(e?"open":"close"):(this._opened.set(e),this._container?._transitionsEnabled?this._setIsAnimating(!0):setTimeout(()=>{this._animationStarted.next(),this._animationEnd.next()}),this._elementRef.nativeElement.classList.toggle("mat-drawer-opened",e),!e&&i&&this._restoreFocus(r),this._changeDetectorRef.markForCheck(),this._updateFocusTrapState(),new Promise(o=>{this.openedChange.pipe(mt(1)).subscribe(a=>o(a?"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._container?.hasBackdrop&&this.opened)}_updatePositionInParent(e){if(!this._platform.isBrowser)return;let i=this._elementRef.nativeElement,r=i.parentNode;e==="end"?(this._anchor||(this._anchor=this._doc.createComment("mat-drawer-anchor"),r.insertBefore(this._anchor,i)),r.appendChild(i)):this._anchor&&this._anchor.parentNode.insertBefore(i,this._anchor)}_handleTransitionEvent=e=>{let i=this._elementRef.nativeElement;e.target===i&&this._ngZone.run(()=>{e.type==="transitionrun"?this._animationStarted.next(e):(e.type==="transitionend"&&this._setIsAnimating(!1),this._animationEnd.next(e))})};static \u0275fac=function(i){return new(i||t)};static \u0275cmp=E({type:t,selectors:[["mat-drawer"]],viewQuery:function(i,r){if(i&1&&ie(Ope,5),i&2){let o;j(o=H())&&(r._content=o.first)}},hostAttrs:[1,"mat-drawer"],hostVars:12,hostBindings:function(i,r){i&2&&(X("align",null)("tabIndex",r.mode!=="side"?"-1":null),At("visibility",!r._container&&!r.opened?"hidden":null),G("mat-drawer-end",r.position==="end")("mat-drawer-over",r.mode==="over")("mat-drawer-push",r.mode==="push")("mat-drawer-side",r.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:tw,decls:3,vars:0,consts:[["content",""],["cdkScrollable","",1,"mat-drawer-inner-container"]],template:function(i,r){i&1&&(Ee(),m(0,"div",1,0),ne(2),h())},dependencies:[Za],encapsulation:2,changeDetection:0})}return t})(),AI=(()=>{class t{_dir=u(Yt,{optional:!0});_element=u(Y);_ngZone=u(ae);_changeDetectorRef=u(ye);_animationDisabled=Qe();_transitionsEnabled=!1;_allDrawers;_drawers=new Dr;_content;_userContent;get start(){return this._start}get end(){return this._end}get autosize(){return this._autosize}set autosize(e){this._autosize=Vi(e)}_autosize=u(zpe);get hasBackdrop(){return this._drawerHasBackdrop(this._start)||this._drawerHasBackdrop(this._end)}set hasBackdrop(e){this._backdropOverride=e==null?null:Vi(e)}_backdropOverride;backdropClick=new U;_start;_end;_left;_right;_destroyed=new z;_doCheckSubject=new z;_contentMargins={left:null,right:null};_contentMarginChanges=new z;get scrollable(){return this._userContent||this._content}_injector=u(de);constructor(){let e=u(Ye),i=u(sr);this._dir?.change.pipe(we(this._destroyed)).subscribe(()=>{this._validateDrawers(),this.updateContentMargins()}),i.change().pipe(we(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(Ue(this._allDrawers),we(this._destroyed)).subscribe(e=>{this._drawers.reset(e.filter(i=>!i._container||i._container===this)),this._drawers.notifyOnChanges()}),this._drawers.changes.pipe(Ue(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(Dt(10),we(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,i=0;if(this._left&&this._left.opened){if(this._left.mode=="side")e+=this._left._getWidth();else if(this._left.mode=="push"){let r=this._left._getWidth();e+=r,i-=r}}if(this._right&&this._right.opened){if(this._right.mode=="side")i+=this._right._getWidth();else if(this._right.mode=="push"){let r=this._right._getWidth();i+=r,e-=r}}e=e||null,i=i||null,(e!==this._contentMargins.left||i!==this._contentMargins.right)&&(this._contentMargins={left:e,right:i},this._ngZone.run(()=>this._contentMarginChanges.next(this._contentMargins)))}ngDoCheck(){this._autosize&&this._isPushed()&&this._ngZone.runOutsideAngular(()=>this._doCheckSubject.next())}_watchDrawerToggle(e){e._animationStarted.pipe(we(this._drawers.changes)).subscribe(()=>{this.updateContentMargins(),this._changeDetectorRef.markForCheck()}),e.mode!=="side"&&e.openedChange.pipe(we(this._drawers.changes)).subscribe(()=>this._setContainerClass(e.opened))}_watchDrawerPosition(e){e.onPositionChanged.pipe(we(this._drawers.changes)).subscribe(()=>{vt({read:()=>this._validateDrawers()},{injector:this._injector})})}_watchDrawerMode(e){e._modeChanged.pipe(we(it(this._drawers.changes,this._destroyed))).subscribe(()=>{this.updateContentMargins(),this._changeDetectorRef.markForCheck()})}_setContainerClass(e){let i=this._element.nativeElement.classList,r="mat-drawer-container-has-open";e?i.add(r):i.remove(r)}_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(i){return new(i||t)};static \u0275cmp=E({type:t,selectors:[["mat-drawer-container"]],contentQueries:function(i,r,o){if(i&1&&(xe(o,JC,5),xe(o,II,5)),i&2){let a;j(a=H())&&(r._content=a.first),j(a=H())&&(r._allDrawers=a)}},viewQuery:function(i,r){if(i&1&&ie(JC,5),i&2){let o;j(o=H())&&(r._userContent=o.first)}},hostAttrs:[1,"mat-drawer-container"],hostVars:2,hostBindings:function(i,r){i&2&&G("mat-drawer-container-explicit-backdrop",r._backdropOverride)},inputs:{autosize:"autosize",hasBackdrop:"hasBackdrop"},outputs:{backdropClick:"backdropClick"},exportAs:["matDrawerContainer"],features:[Ce([{provide:OI,useExisting:t}])],ngContentSelectors:Ppe,decls:4,vars:2,consts:[[1,"mat-drawer-backdrop",3,"mat-drawer-shown"],[1,"mat-drawer-backdrop",3,"click"]],template:function(i,r){i&1&&(Ee(Rpe),V(0,Fpe,1,2,"div",0),ne(1),ne(2,1),V(3,Npe,2,0,"mat-drawer-content")),i&2&&(B(r.hasBackdrop?0:-1),g(3),B(r._content?-1:3))},dependencies:[JC],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:.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 t})(),ew=(()=>{class t extends JC{static \u0275fac=(()=>{let e;return function(r){return(e||(e=ge(t)))(r||t)}})();static \u0275cmp=E({type:t,selectors:[["mat-sidenav-content"]],hostAttrs:[1,"mat-drawer-content","mat-sidenav-content"],features:[Ce([{provide:Za,useExisting:t}]),le],ngContentSelectors:tw,decls:1,vars:0,template:function(i,r){i&1&&(Ee(),ne(0))},encapsulation:2,changeDetection:0})}return t})(),RI=(()=>{class t extends II{get fixedInViewport(){return this._fixedInViewport}set fixedInViewport(e){this._fixedInViewport=Vi(e)}_fixedInViewport=!1;get fixedTopGap(){return this._fixedTopGap}set fixedTopGap(e){this._fixedTopGap=Gn(e)}_fixedTopGap=0;get fixedBottomGap(){return this._fixedBottomGap}set fixedBottomGap(e){this._fixedBottomGap=Gn(e)}_fixedBottomGap=0;static \u0275fac=(()=>{let e;return function(r){return(e||(e=ge(t)))(r||t)}})();static \u0275cmp=E({type:t,selectors:[["mat-sidenav"]],hostAttrs:[1,"mat-drawer","mat-sidenav"],hostVars:16,hostBindings:function(i,r){i&2&&(X("tabIndex",r.mode!=="side"?"-1":null)("align",null),At("top",r.fixedInViewport?r.fixedTopGap:null,"px")("bottom",r.fixedInViewport?r.fixedBottomGap:null,"px"),G("mat-drawer-end",r.position==="end")("mat-drawer-over",r.mode==="over")("mat-drawer-push",r.mode==="push")("mat-drawer-side",r.mode==="side")("mat-sidenav-fixed",r.fixedInViewport))},inputs:{fixedInViewport:"fixedInViewport",fixedTopGap:"fixedTopGap",fixedBottomGap:"fixedBottomGap"},exportAs:["matSidenav"],features:[Ce([{provide:II,useExisting:t}]),le],ngContentSelectors:tw,decls:3,vars:0,consts:[["content",""],["cdkScrollable","",1,"mat-drawer-inner-container"]],template:function(i,r){i&1&&(Ee(),m(0,"div",1,0),ne(2),h())},dependencies:[Za],encapsulation:2,changeDetection:0})}return t})(),d8=(()=>{class t extends AI{_allDrawers=void 0;_content=void 0;static \u0275fac=(()=>{let e;return function(r){return(e||(e=ge(t)))(r||t)}})();static \u0275cmp=E({type:t,selectors:[["mat-sidenav-container"]],contentQueries:function(i,r,o){if(i&1&&(xe(o,ew,5),xe(o,RI,5)),i&2){let a;j(a=H())&&(r._content=a.first),j(a=H())&&(r._allDrawers=a)}},hostAttrs:[1,"mat-drawer-container","mat-sidenav-container"],hostVars:2,hostBindings:function(i,r){i&2&&G("mat-drawer-container-explicit-backdrop",r._backdropOverride)},exportAs:["matSidenavContainer"],features:[Ce([{provide:OI,useExisting:t},{provide:AI,useExisting:t}]),le],ngContentSelectors:Vpe,decls:4,vars:2,consts:[[1,"mat-drawer-backdrop",3,"mat-drawer-shown"],[1,"mat-drawer-backdrop",3,"click"]],template:function(i,r){i&1&&(Ee(Lpe),V(0,Bpe,1,2,"div",0),ne(1),ne(2,1),V(3,jpe,2,0,"mat-sidenav-content")),i&2&&(B(r.hasBackdrop?0:-1),g(3),B(r._content?-1:3))},dependencies:[ew],styles:[Hpe],encapsulation:2,changeDetection:0})}return t})(),u8=(()=>{class t{static \u0275fac=function(i){return new(i||t)};static \u0275mod=ee({type:t});static \u0275inj=J({imports:[De,Tr,Tr,De]})}return t})();function Wpe(t,n){t&1&&ni(0,"div",3)}function Gpe(t,n){t&1&&(gt(0,"div",4),ni(1,"div",5),yt())}var qpe={min:8,max:100,speed:200,debounceTime:0,trickleSpeed:300,fadeOutSpeed:50,relative:!1,flat:!1,spinner:!1,direction:"ltr+",spinnerPosition:"right",trickleFunc:t=>t>=0&&t<20?10:t>=20&&t<50?4:t>=50&&t<80?2:t>=80&&t<99?.5:0},m8=new O("NG_PROGRESS_OPTIONS",{providedIn:"root",factory:()=>qpe});var iw=(function(t){return t.START="START",t.COMPLETE="COMPLETE",t})(iw||{});function Ype(t){let n=ht(t)||0;return n<100&&n>=0?n:0}function Qpe(t){let n=ht(t)||100;return n>0&&n<=100?n:100}var nw=(()=>{let n=class n{constructor(){this.defaultOptions=u(m8),this.min=re(this.defaultOptions.min,{transform:Ype}),this.max=re(this.defaultOptions.max,{transform:Qpe}),this.speed=re(this.defaultOptions.speed,{transform:ht}),this.trickleSpeed=re(this.defaultOptions.trickleSpeed,{transform:ht}),this.fadeOutSpeed=re(this.defaultOptions.fadeOutSpeed,{transform:ht}),this.debounceTime=re(this.defaultOptions.debounceTime,{transform:ht}),this.trickleFunc=re(this.defaultOptions.trickleFunc),this.config=ci(()=>({max:this.max(),min:this.min(),speed:this.speed(),trickleSpeed:this.trickleSpeed(),fadeOutSpeed:this.fadeOutSpeed(),trickleFunc:this.trickleFunc(),debounceTime:this.debounceTime()})),this._progress=he(0),this._active=he(!1),this.active=ci(()=>this._active()),this.progress=ci(()=>this._progress()),this.started=Ei(),this.completed=Ei(),this._trigger=new rt(null);let i;zr(r=>{let o=this.config();Ni(()=>{i=this._trigger.pipe(ce(a=>!!a),je(a=>a===iw.START?cs(o.debounceTime).pipe(je(()=>this.onTrickling(o))):this.onComplete(o))).subscribe(),r(()=>i?.unsubscribe())})})}start(){this.started.emit(),this._trigger.next(iw.START),this._active.set(!0)}complete(){this._trigger.next(iw.COMPLETE)}inc(i){let r=this.progress();this.active()?(typeof i!="number"&&(i=this.config().trickleFunc(r)),this.set(r+i)):this.start()}set(i){this._active.set(!0),this._progress.set(this.clamp(i))}clamp(i){return Math.max(this.config().min,Math.min(this.config().max,i))}onTrickling(i){return this.active()||this.set(i.min),cs(0,i.trickleSpeed).pipe(He(()=>this.inc()))}onComplete(i){return this.active()?(this.completed.emit(),Q({}).pipe(He(()=>this._progress.set(100)),Aa(i.speed+140),He(()=>this._active.set(!1)),Aa(i.fadeOutSpeed),Xr(()=>this._progress.set(0)),we(wz(this.started)))):zi}};n.\u0275fac=function(r){return new(r||n)},n.\u0275dir=P({type:n,selectors:[["","ngProgressRef",""]],inputs:{min:[1,"min"],max:[1,"max"],speed:[1,"speed"],trickleSpeed:[1,"trickleSpeed"],fadeOutSpeed:[1,"fadeOutSpeed"],debounceTime:[1,"debounceTime"],trickleFunc:[1,"trickleFunc"]},outputs:{started:"started",completed:"completed"},exportAs:["ngProgressRef"]});let t=n;return t})(),h8=(()=>{let n=class n{constructor(){this.config=u(m8),this.progressRef=u(nw,{host:!0,self:!0}),this.flat=re(this.config.flat,{transform:L}),this.spinner=re(this.config.spinner,{transform:L}),this.relative=re(this.config.relative,{transform:L}),this.spinnerPosition=re(this.config.spinnerPosition),this.direction=re(this.config.direction),this.progressTransform=ci(()=>`translate3d(${this.progressRef.progress()}%,0,0)`)}};n.\u0275fac=function(r){return new(r||n)},n.\u0275cmp=E({type:n,selectors:[["ng-progress"]],hostAttrs:["role","progressbar"],hostVars:12,hostBindings:function(r,o){r&2&&(X("spinnerPosition",o.spinnerPosition())("direction",o.direction()),At("--_ng-progress-speed",o.progressRef.speed()+"ms")("--_ng-progress-fade-out-speed",o.progressRef.fadeOutSpeed()+"ms"),G("ng-progress-bar",!0)("ng-progress-bar-active",o.progressRef.active())("ng-progress-bar-relative",o.relative()))},inputs:{flat:[1,"flat"],spinner:[1,"spinner"],relative:[1,"relative"],spinnerPosition:[1,"spinnerPosition"],direction:[1,"direction"]},exportAs:["ngProgress"],features:[Mm([{directive:nw,inputs:["min","min","max","max","speed","speed","trickleSpeed","trickleSpeed","fadeOutSpeed","fadeOutSpeed","debounceTime","debounceTime"],outputs:["started","started","completed","completed"]}])],decls:5,vars:4,consts:[[1,"ng-progress-bar-wrapper"],[1,"ng-bar-placeholder"],[1,"ng-bar"],[1,"ng-meteor"],[1,"ng-spinner"],[1,"ng-spinner-icon"]],template:function(r,o){r&1&&(gt(0,"div",0)(1,"div",1)(2,"div",2),V(3,Wpe,1,0,"div",3),yt()(),V(4,Gpe,2,0,"div",4),yt()),r&2&&(g(2),At("transform",o.progressTransform()),g(),B(o.flat()?-1:3),g(),B(o.spinner()?4:-1))},styles:['[_nghost-%COMP%]{--_ng-progress-thickness: var(--ng-progress-thickness, 2);--_ng-progress-thickness-px: calc(var(--_ng-progress-thickness) * 1px);--_ng-progress-thickness-add-one: calc(var(--_ng-progress-thickness) + 1);--_ng-progress-meteor-position-px: calc(var(--_ng-progress-thickness-add-one) * -1px);--_ng-progress-color: var(--ng-progress-color, #1B95E0);--_ng-progress-holder-color: var(--ng-progress-holder-color, transparent);--_ng-progress-ease: var(--ng-progress-ease, linear);--_ng-progress-spinner-thickness: var(--ng-progress-spinner-thickness, 2);--_ng-progress-spinner-thickness-px: calc(var(--_ng-progress-spinner-thickness) * 1px);--_ng-progress-spinner-spacing: var(--ng-progress-spinner-spacing, 15);--_ng-progress-spinner-spacing-px: calc(var(--_ng-progress-spinner-spacing) * 1px);--_ng-progress-spinner-size: var(--ng-progress-spinner-size, 18);--_ng-progress-spinner-size-px: calc(var(--_ng-progress-spinner-size) * 1px);--_ng-progress-spinner-speed: var(--ng-progress-spinner-speed, .25s);z-index:999999;pointer-events:none}.ng-progress-bar-active[_nghost-%COMP%] .ng-progress-bar-wrapper[_ngcontent-%COMP%]{filter:alpha(opacity=100);opacity:1;transition:none}.ng-progress-bar-active[_nghost-%COMP%] .ng-bar[_ngcontent-%COMP%]{transition:all var(--_ng-progress-speed) var(--_ng-progress-ease)}.ng-progress-bar-relative[_nghost-%COMP%] .ng-progress-bar-wrapper[_ngcontent-%COMP%]{position:relative}[direction="ltr+"][_nghost-%COMP%] .ng-meteor[_ngcontent-%COMP%], [direction=ltr-][_nghost-%COMP%] .ng-meteor[_ngcontent-%COMP%]{rotate:calc(var(--_ng-progress-thickness-add-one) * 1deg)}[direction="ltr+"][_nghost-%COMP%] .ng-bar[_ngcontent-%COMP%], [direction="rtl+"][_nghost-%COMP%] .ng-bar[_ngcontent-%COMP%]{margin-left:-100%}[direction="ltr+"][_nghost-%COMP%] .ng-meteor[_ngcontent-%COMP%], [direction="rtl+"][_nghost-%COMP%] .ng-meteor[_ngcontent-%COMP%]{right:0}[direction="ltr+"][_nghost-%COMP%] .ng-meteor[_ngcontent-%COMP%], [direction=rtl-][_nghost-%COMP%] .ng-meteor[_ngcontent-%COMP%]{top:var(--_ng-progress-meteor-position-px)}[direction=ltr-][_nghost-%COMP%] .ng-meteor[_ngcontent-%COMP%], [direction="rtl+"][_nghost-%COMP%] .ng-meteor[_ngcontent-%COMP%]{bottom:var(--_ng-progress-meteor-position-px)}[direction=ltr-][_nghost-%COMP%] .ng-bar-placeholder[_ngcontent-%COMP%], [direction="rtl+"][_nghost-%COMP%] .ng-bar-placeholder[_ngcontent-%COMP%]{transform:rotate(180deg)}[direction=ltr-][_nghost-%COMP%] .ng-spinner-icon[_ngcontent-%COMP%], [direction="rtl+"][_nghost-%COMP%] .ng-spinner-icon[_ngcontent-%COMP%]{animation-direction:reverse}[direction="rtl+"][_nghost-%COMP%] .ng-meteor[_ngcontent-%COMP%], [direction=rtl-][_nghost-%COMP%] .ng-meteor[_ngcontent-%COMP%]{rotate:calc(var(--_ng-progress-thickness-add-one) * -1deg)}[_nghost-%COMP%] .ng-spinner[_ngcontent-%COMP%]{top:var(--_ng-progress-spinner-spacing-px)}[spinnerPosition=left][_nghost-%COMP%] .ng-spinner[_ngcontent-%COMP%]{left:var(--_ng-progress-spinner-spacing-px)}[spinnerPosition=right][_nghost-%COMP%] .ng-spinner[_ngcontent-%COMP%]{right:var(--_ng-progress-spinner-spacing-px)}.ng-progress-bar-wrapper[_ngcontent-%COMP%]{position:fixed;z-index:999999;top:0;left:0;width:100%;transform:scale(1);filter:alpha(opacity=0);opacity:0;transition:opacity var(--_ng-progress-fade-out-speed) linear}.ng-bar-placeholder[_ngcontent-%COMP%]{position:absolute;height:var(--_ng-progress-thickness-px);width:100%}.ng-bar[_ngcontent-%COMP%]{width:100%;height:100%;transform:translate(-100%,0,0);background:var(--_ng-progress-color)}.ng-meteor[_ngcontent-%COMP%]{display:block;position:absolute;width:100px;height:100%;opacity:1;box-shadow:0 0 10px var(--_ng-progress-color),0 0 5px var(--_ng-progress-color)}.ng-spinner[_ngcontent-%COMP%]{position:absolute;display:block;z-index:1031;top:10px}.ng-spinner-icon[_ngcontent-%COMP%]{box-sizing:border-box;animation:_ngcontent-%COMP%_spinner-animation var(--_ng-progress-spinner-speed) linear infinite;border-style:solid;border-color:transparent;border-radius:50%;border-top-color:var(--_ng-progress-color);border-left-color:var(--_ng-progress-color);width:var(--_ng-progress-spinner-size-px);height:var(--_ng-progress-spinner-size-px);border-width:var(--_ng-progress-spinner-thickness-px)}@keyframes _ngcontent-%COMP%_spinner-animation{0%{transform:rotate(0)}to{transform:rotate(360deg)}}'],changeDetection:0});let t=n;return t})();var Kpe={minDuration:0,startEvents:[Is],completeEvents:[Si,ea,vc]},Zpe=new O("NG_PROGRESS_ROUTER_OPTIONS",{providedIn:"root",factory:()=>Kpe});function p8(t,n){return n.some(e=>t instanceof e)}var Xpe=(()=>{let n=class n{constructor(){this.router=u(Ae),this.config=u(Zpe),this.progressRef=u(nw,{host:!0,self:!0});let i;this.router.events.pipe(ce(r=>p8(r,[...this.config.startEvents,...this.config.completeEvents])),se(r=>p8(r,this.config.startEvents)),He(r=>{clearTimeout(i),r?this.progressRef.start():i=setTimeout(()=>{this.progressRef.complete()},this.config.minDuration)}),Ru()).subscribe()}};n.\u0275fac=function(r){return new(r||n)},n.\u0275dir=P({type:n});let t=n;return t})(),f8=(()=>{let n=class n extends Xpe{};n.\u0275fac=(()=>{let i;return function(o){return(i||(i=ge(n)))(o||n)}})(),n.\u0275dir=P({type:n,selectors:[["ng-progress","ngProgressRouter",""]],features:[le]});let t=n;return t})();var Jpe=["*",[["mat-toolbar-row"]]],efe=["*","mat-toolbar-row"],tfe=(()=>{class t{static \u0275fac=function(i){return new(i||t)};static \u0275dir=P({type:t,selectors:[["mat-toolbar-row"]],hostAttrs:[1,"mat-toolbar-row"],exportAs:["matToolbarRow"]})}return t})(),rw=(()=>{class t{_elementRef=u(Y);_platform=u(Ye);_document=u(_e);color;_toolbarRows;constructor(){}ngAfterViewInit(){this._platform.isBrowser&&(this._checkToolbarMixedModes(),this._toolbarRows.changes.subscribe(()=>this._checkToolbarMixedModes()))}_checkToolbarMixedModes(){this._toolbarRows.length}static \u0275fac=function(i){return new(i||t)};static \u0275cmp=E({type:t,selectors:[["mat-toolbar"]],contentQueries:function(i,r,o){if(i&1&&xe(o,tfe,5),i&2){let a;j(a=H())&&(r._toolbarRows=a)}},hostAttrs:[1,"mat-toolbar"],hostVars:6,hostBindings:function(i,r){i&2&&(at(r.color?"mat-"+r.color:""),G("mat-toolbar-multiple-rows",r._toolbarRows.length>0)("mat-toolbar-single-row",r._toolbarRows.length===0))},inputs:{color:"color"},exportAs:["matToolbar"],ngContentSelectors:efe,decls:2,vars:0,template:function(i,r){i&1&&(Ee(Jpe),ne(0),ne(1,1))},styles:[`.mat-toolbar{background:var(--mat-toolbar-container-background-color, var(--mat-sys-surface));color:var(--mat-toolbar-container-text-color, var(--mat-sys-on-surface))}.mat-toolbar,.mat-toolbar h1,.mat-toolbar h2,.mat-toolbar h3,.mat-toolbar h4,.mat-toolbar h5,.mat-toolbar h6{font-family:var(--mat-toolbar-title-text-font, var(--mat-sys-title-large-font));font-size:var(--mat-toolbar-title-text-size, var(--mat-sys-title-large-size));line-height:var(--mat-toolbar-title-text-line-height, var(--mat-sys-title-large-line-height));font-weight:var(--mat-toolbar-title-text-weight, var(--mat-sys-title-large-weight));letter-spacing:var(--mat-toolbar-title-text-tracking, var(--mat-sys-title-large-tracking));margin:0}@media(forced-colors: active){.mat-toolbar{outline:solid 1px}}.mat-toolbar .mat-form-field-underline,.mat-toolbar .mat-form-field-ripple,.mat-toolbar .mat-focused .mat-form-field-ripple{background-color:currentColor}.mat-toolbar .mat-form-field-label,.mat-toolbar .mat-focused .mat-form-field-label,.mat-toolbar .mat-select-value,.mat-toolbar .mat-select-arrow,.mat-toolbar .mat-form-field.mat-focused .mat-select-arrow{color:inherit}.mat-toolbar .mat-input-element{caret-color:currentColor}.mat-toolbar .mat-mdc-button-base.mat-mdc-button-base.mat-unthemed{--mat-button-text-label-text-color: var(--mat-toolbar-container-text-color, var(--mat-sys-on-surface));--mat-button-outlined-label-text-color: var(--mat-toolbar-container-text-color, var(--mat-sys-on-surface))}.mat-toolbar-row,.mat-toolbar-single-row{display:flex;box-sizing:border-box;padding:0 16px;width:100%;flex-direction:row;align-items:center;white-space:nowrap;height:var(--mat-toolbar-standard-height, 64px)}@media(max-width: 599px){.mat-toolbar-row,.mat-toolbar-single-row{height:var(--mat-toolbar-mobile-height, 56px)}}.mat-toolbar-multiple-rows{display:flex;box-sizing:border-box;flex-direction:column;width:100%;min-height:var(--mat-toolbar-standard-height, 64px)}@media(max-width: 599px){.mat-toolbar-multiple-rows{min-height:var(--mat-toolbar-mobile-height, 56px)}} +`],encapsulation:2,changeDetection:0})}return t})();var ow=(()=>{class t{static \u0275fac=function(i){return new(i||t)};static \u0275mod=ee({type:t});static \u0275inj=J({imports:[De,De]})}return t})();var _8=[["requestFullscreen","exitFullscreen","fullscreenElement","fullscreenEnabled","fullscreenchange","fullscreenerror"],["webkitRequestFullscreen","webkitExitFullscreen","webkitFullscreenElement","webkitFullscreenEnabled","webkitfullscreenchange","webkitfullscreenerror"],["webkitRequestFullScreen","webkitCancelFullScreen","webkitCurrentFullScreenElement","webkitCancelFullScreen","webkitfullscreenchange","webkitfullscreenerror"],["mozRequestFullScreen","mozCancelFullScreen","mozFullScreenElement","mozFullScreenEnabled","mozfullscreenchange","mozfullscreenerror"],["msRequestFullscreen","msExitFullscreen","msFullscreenElement","msFullscreenEnabled","MSFullscreenChange","MSFullscreenError"]],jl=(()=>{if(typeof document>"u")return!1;let t=_8[0],n={};for(let e of _8)if(e?.[1]in document){for(let[r,o]of e.entries())n[t[r]]=o;return n}return!1})(),b8={change:jl.fullscreenchange,error:jl.fullscreenerror},Vo={request(t=document.documentElement,n){return new Promise((e,i)=>{let r=()=>{Vo.off("change",r),e()};Vo.on("change",r);let o=t[jl.requestFullscreen](n);o instanceof Promise&&o.then(r).catch(i)})},exit(){return new Promise((t,n)=>{if(!Vo.isFullscreen){t();return}let e=()=>{Vo.off("change",e),t()};Vo.on("change",e);let i=document[jl.exitFullscreen]();i instanceof Promise&&i.then(e).catch(n)})},toggle(t,n){return Vo.isFullscreen?Vo.exit():Vo.request(t,n)},onchange(t){Vo.on("change",t)},onerror(t){Vo.on("error",t)},on(t,n){let e=b8[t];e&&document.addEventListener(e,n,!1)},off(t,n){let e=b8[t];e&&document.removeEventListener(e,n,!1)},raw:jl};Object.defineProperties(Vo,{isFullscreen:{get:()=>!!document[jl.fullscreenElement]},element:{enumerable:!0,get:()=>document[jl.fullscreenElement]??void 0},isEnabled:{enumerable:!0,get:()=>!!document[jl.fullscreenEnabled]}});jl||(Vo={isEnabled:!1});var PI=Vo;function ife(t,n){t&1&&(gt(0,"span",2),f(1,"Talent Management"),yt())}var aw=(()=>{let n=class n{constructor(){this.showName=re(!0)}};n.\u0275fac=function(r){return new(r||n)},n.\u0275cmp=E({type:n,selectors:[["app-branding"]],inputs:{showName:[1,"showName"]},decls:3,vars:1,consts:[["href","/",1,"branding"],["src","images/matero.png","alt","logo",1,"branding-logo"],[1,"branding-name"]],template:function(r,o){r&1&&(gt(0,"a",0),ni(1,"img",1),V(2,ife,2,0,"span",2),yt()),r&2&&(g(2),B(o.showName()?2:-1))},styles:[".branding[_ngcontent-%COMP%]{display:flex;align-items:center;margin:0 .5rem;text-decoration:none;white-space:nowrap;color:inherit;border-radius:50rem}.branding-logo[_ngcontent-%COMP%]{width:2rem;height:2rem;border-radius:50rem}.branding-name[_ngcontent-%COMP%]{margin:0 .5rem;font-size:1rem;font-weight:500}"]});let t=n;return t})();var v8=(()=>{let n=class n{};n.\u0275fac=function(r){return new(r||n)},n.\u0275cmp=E({type:n,selectors:[["app-github-button"]],decls:3,vars:0,consts:[["matIconButton","","href","https://github.com/ng-matero/ng-matero","target","_blank"],["viewBox","0 0 16 16"],["fill","currentColor","d",`M7.999,0.431c-4.285,0-7.76,3.474-7.76,7.761 c0,3.428,2.223,6.337,5.307,7.363c0.388, 0.071,0.53-0.168,0.53-0.374c0-0.184-0.007-0.672-0.01-1.32 c-2.159, 0.469-2.614-1.04-2.614-1.04c-0.353-0.896-0.862-1.135-0.862-1.135c-0.705-0.481, 0.053-0.472,0.053-0.472 c0.779,0.055,1.189,0.8,1.189,0.8c0.692,1.186,1.816,0.843,2.258, @@ -148,46 +148,43 @@ if you are not using oidc but just oauth2 password flow set oidc to false`);retu 0.261 c1.482-1.004,2.132-0.796,2.132-0.796c0.423,1.068,0.157,1.857,0.077,2.054c0.497, 0.542,0.798,1.235,0.798,2.082 c0,2.981-1.814,3.637-3.543,3.829c0.279,0.24,0.527,0.713, 0.527,1.437c0,1.037-0.01,1.874-0.01,2.129 c0,0.208,0.14,0.449,0.534,0.373c3.081-1.028, - 5.302-3.935,5.302-7.362C15.76,3.906,12.285,0.431,7.999,0.431z`]],template:function(r,o){r&1&&(m(0,"a",0),Zt(),m(1,"svg",1),M(2,"path",2),h()())},dependencies:[Be,Yt],encapsulation:2});let t=n;return t})();var y8="mat-badge-content",ife=(()=>{class t{static \u0275fac=function(i){return new(i||t)};static \u0275cmp=E({type:t,selectors:[["ng-component"]],decls:0,vars:0,template:function(i,r){},styles:[`.mat-badge{position:relative}.mat-badge.mat-badge{overflow:visible}.mat-badge-content{position:absolute;text-align:center;display:inline-block;transition:transform 200ms ease-in-out;transform:scale(0.6);overflow:hidden;white-space:nowrap;text-overflow:ellipsis;box-sizing:border-box;pointer-events:none;background-color:var(--mat-badge-background-color, var(--mat-sys-error));color:var(--mat-badge-text-color, var(--mat-sys-on-error));font-family:var(--mat-badge-text-font, var(--mat-sys-label-small-font));font-weight:var(--mat-badge-text-weight, var(--mat-sys-label-small-weight));border-radius:var(--mat-badge-container-shape, var(--mat-sys-corner-full))}.mat-badge-above .mat-badge-content{bottom:100%}.mat-badge-below .mat-badge-content{top:100%}.mat-badge-before .mat-badge-content{right:100%}[dir=rtl] .mat-badge-before .mat-badge-content{right:auto;left:100%}.mat-badge-after .mat-badge-content{left:100%}[dir=rtl] .mat-badge-after .mat-badge-content{left:auto;right:100%}@media(forced-colors: active){.mat-badge-content{outline:solid 1px;border-radius:0}}.mat-badge-disabled .mat-badge-content{background-color:var(--mat-badge-disabled-state-background-color, color-mix(in srgb, var(--mat-sys-error) 38%, transparent));color:var(--mat-badge-disabled-state-text-color, var(--mat-sys-on-error))}.mat-badge-hidden .mat-badge-content{display:none}.ng-animate-disabled .mat-badge-content,.mat-badge-content._mat-animation-noopable{transition:none}.mat-badge-content.mat-badge-active{transform:none}.mat-badge-small .mat-badge-content{width:var(--mat-badge-legacy-small-size-container-size, unset);height:var(--mat-badge-legacy-small-size-container-size, unset);min-width:var(--mat-badge-small-size-container-size, 6px);min-height:var(--mat-badge-small-size-container-size, 6px);line-height:var(--mat-badge-small-size-line-height, 6px);padding:var(--mat-badge-small-size-container-padding, 0);font-size:var(--mat-badge-small-size-text-size, 0);margin:var(--mat-badge-small-size-container-offset, -6px 0)}.mat-badge-small.mat-badge-overlap .mat-badge-content{margin:var(--mat-badge-small-size-container-overlap-offset, -6px)}.mat-badge-medium .mat-badge-content{width:var(--mat-badge-legacy-container-size, unset);height:var(--mat-badge-legacy-container-size, unset);min-width:var(--mat-badge-container-size, 16px);min-height:var(--mat-badge-container-size, 16px);line-height:var(--mat-badge-line-height, 16px);padding:var(--mat-badge-container-padding, 0 4px);font-size:var(--mat-badge-text-size, var(--mat-sys-label-small-size));margin:var(--mat-badge-container-offset, -12px 0)}.mat-badge-medium.mat-badge-overlap .mat-badge-content{margin:var(--mat-badge-container-overlap-offset, -12px)}.mat-badge-large .mat-badge-content{width:var(--mat-badge-legacy-large-size-container-size, unset);height:var(--mat-badge-legacy-large-size-container-size, unset);min-width:var(--mat-badge-large-size-container-size, 16px);min-height:var(--mat-badge-large-size-container-size, 16px);line-height:var(--mat-badge-large-size-line-height, 16px);padding:var(--mat-badge-large-size-container-padding, 0 4px);font-size:var(--mat-badge-large-size-text-size, var(--mat-sys-label-small-size));margin:var(--mat-badge-large-size-container-offset, -12px 0)}.mat-badge-large.mat-badge-overlap .mat-badge-content{margin:var(--mat-badge-large-size-container-overlap-offset, -12px)} -`],encapsulation:2,changeDetection:0})}return t})(),x8=(()=>{class t{_ngZone=u(ae);_elementRef=u(Y);_ariaDescriber=u(nh);_renderer=u(ze);_animationsDisabled=Ye();_idGenerator=u(Ze);get color(){return this._color}set color(e){this._setColor(e),this._color=e}_color="primary";overlap=!0;disabled;position="above after";get content(){return this._content}set content(e){this._updateRenderedContent(e)}_content;get description(){return this._description}set description(e){this._updateDescription(e)}_description;size="medium";hidden;_badgeElement;_inlineBadgeDescription;_isInitialized=!1;_interactivityChecker=u(lc);_document=u(_e);constructor(){let e=u(ht);e.load(ife),e.load(Jr)}isAbove(){return this.position.indexOf("below")===-1}isAfter(){return this.position.indexOf("before")===-1}getBadgeElement(){return this._badgeElement}ngOnInit(){this._clearExistingBadges(),this.content&&!this._badgeElement&&(this._badgeElement=this._createBadgeElement(),this._updateRenderedContent(this.content)),this._isInitialized=!0}ngOnDestroy(){this._renderer.destroyNode&&(this._renderer.destroyNode(this._badgeElement),this._inlineBadgeDescription?.remove()),this._ariaDescriber.removeDescription(this._elementRef.nativeElement,this.description)}_isHostInteractive(){return this._interactivityChecker.isFocusable(this._elementRef.nativeElement,{ignoreVisibility:!0})}_createBadgeElement(){let e=this._renderer.createElement("span"),i="mat-badge-active";return e.setAttribute("id",this._idGenerator.getId("mat-badge-content-")),e.setAttribute("aria-hidden","true"),e.classList.add(y8),this._animationsDisabled&&e.classList.add("_mat-animation-noopable"),this._elementRef.nativeElement.appendChild(e),typeof requestAnimationFrame=="function"&&!this._animationsDisabled?this._ngZone.runOutsideAngular(()=>{requestAnimationFrame(()=>{e.classList.add(i)})}):e.classList.add(i),e}_updateRenderedContent(e){let i=`${e??""}`.trim();this._isInitialized&&i&&!this._badgeElement&&(this._badgeElement=this._createBadgeElement()),this._badgeElement&&(this._badgeElement.textContent=i),this._content=i}_updateDescription(e){this._ariaDescriber.removeDescription(this._elementRef.nativeElement,this.description),(!e||this._isHostInteractive())&&this._removeInlineDescription(),this._description=e,this._isHostInteractive()?this._ariaDescriber.describe(this._elementRef.nativeElement,e):this._updateInlineDescription()}_updateInlineDescription(){this._inlineBadgeDescription||(this._inlineBadgeDescription=this._document.createElement("span"),this._inlineBadgeDescription.classList.add("cdk-visually-hidden")),this._inlineBadgeDescription.textContent=this.description,this._badgeElement?.appendChild(this._inlineBadgeDescription)}_removeInlineDescription(){this._inlineBadgeDescription?.remove(),this._inlineBadgeDescription=void 0}_setColor(e){let i=this._elementRef.nativeElement.classList;i.remove(`mat-badge-${this._color}`),e&&i.add(`mat-badge-${e}`)}_clearExistingBadges(){let e=this._elementRef.nativeElement.querySelectorAll(`:scope > .${y8}`);for(let i of Array.from(e))i!==this._badgeElement&&i.remove()}static \u0275fac=function(i){return new(i||t)};static \u0275dir=P({type:t,selectors:[["","matBadge",""]],hostAttrs:[1,"mat-badge"],hostVars:20,hostBindings:function(i,r){i&2&&G("mat-badge-overlap",r.overlap)("mat-badge-above",r.isAbove())("mat-badge-below",!r.isAbove())("mat-badge-before",!r.isAfter())("mat-badge-after",r.isAfter())("mat-badge-small",r.size==="small")("mat-badge-medium",r.size==="medium")("mat-badge-large",r.size==="large")("mat-badge-hidden",r.hidden||!r.content)("mat-badge-disabled",r.disabled)},inputs:{color:[0,"matBadgeColor","color"],overlap:[2,"matBadgeOverlap","overlap",L],disabled:[2,"matBadgeDisabled","disabled",L],position:[0,"matBadgePosition","position"],content:[0,"matBadge","content"],description:[0,"matBadgeDescription","description"],size:[0,"matBadgeSize","size"],hidden:[2,"matBadgeHidden","hidden",L]}})}return t})(),C8=(()=>{class t{static \u0275fac=function(i){return new(i||t)};static \u0275mod=ee({type:t});static \u0275inj=J({imports:[cl,De,De]})}return t})();var Po=(()=>{class t{get vertical(){return this._vertical}set vertical(e){this._vertical=Ri(e)}_vertical=!1;get inset(){return this._inset}set inset(e){this._inset=Ri(e)}_inset=!1;static \u0275fac=function(i){return new(i||t)};static \u0275cmp=E({type:t,selectors:[["mat-divider"]],hostAttrs:["role","separator",1,"mat-divider"],hostVars:7,hostBindings:function(i,r){i&2&&(X("aria-orientation",r.vertical?"vertical":"horizontal"),G("mat-divider-vertical",r.vertical)("mat-divider-horizontal",!r.vertical)("mat-divider-inset",r.inset))},inputs:{vertical:"vertical",inset:"inset"},decls:0,vars:0,template:function(i,r){},styles:[`.mat-divider{display:block;margin:0;border-top-style:solid;border-top-color:var(--mat-divider-color, var(--mat-sys-outline-variant));border-top-width:var(--mat-divider-width, 1px)}.mat-divider.mat-divider-vertical{border-top:0;border-right-style:solid;border-right-color:var(--mat-divider-color, var(--mat-sys-outline-variant));border-right-width:var(--mat-divider-width, 1px)}.mat-divider.mat-divider-inset{margin-left:80px}[dir=rtl] .mat-divider.mat-divider-inset{margin-left:auto;margin-right:80px} -`],encapsulation:2,changeDetection:0})}return t})(),ho=(()=>{class t{static \u0275fac=function(i){return new(i||t)};static \u0275mod=ee({type:t});static \u0275inj=J({imports:[De,De]})}return t})();var w8=["*"],D8=`.mdc-list{margin:0;padding:8px 0;list-style-type:none}.mdc-list:focus{outline:none}.mdc-list-item{display:flex;position:relative;justify-content:flex-start;overflow:hidden;padding:0;align-items:stretch;cursor:pointer;padding-left:16px;padding-right:16px;background-color:var(--mat-list-list-item-container-color, transparent);border-radius:var(--mat-list-list-item-container-shape, var(--mat-sys-corner-none))}.mdc-list-item.mdc-list-item--selected{background-color:var(--mat-list-list-item-selected-container-color)}.mdc-list-item:focus{outline:0}.mdc-list-item.mdc-list-item--disabled{cursor:auto}.mdc-list-item.mdc-list-item--with-one-line{height:var(--mat-list-list-item-one-line-container-height, 48px)}.mdc-list-item.mdc-list-item--with-one-line .mdc-list-item__start{align-self:center;margin-top:0}.mdc-list-item.mdc-list-item--with-one-line .mdc-list-item__end{align-self:center;margin-top:0}.mdc-list-item.mdc-list-item--with-two-lines{height:var(--mat-list-list-item-two-line-container-height, 64px)}.mdc-list-item.mdc-list-item--with-two-lines .mdc-list-item__start{align-self:flex-start;margin-top:16px}.mdc-list-item.mdc-list-item--with-two-lines .mdc-list-item__end{align-self:center;margin-top:0}.mdc-list-item.mdc-list-item--with-three-lines{height:var(--mat-list-list-item-three-line-container-height, 88px)}.mdc-list-item.mdc-list-item--with-three-lines .mdc-list-item__start{align-self:flex-start;margin-top:16px}.mdc-list-item.mdc-list-item--with-three-lines .mdc-list-item__end{align-self:flex-start;margin-top:16px}.mdc-list-item.mdc-list-item--selected::before,.mdc-list-item.mdc-list-item--selected:focus::before,.mdc-list-item:not(.mdc-list-item--selected):focus::before{position:absolute;box-sizing:border-box;width:100%;height:100%;top:0;left:0;content:"";pointer-events:none}a.mdc-list-item{color:inherit;text-decoration:none}.mdc-list-item__start{fill:currentColor;flex-shrink:0;pointer-events:none}.mdc-list-item--with-leading-icon .mdc-list-item__start{color:var(--mat-list-list-item-leading-icon-color, var(--mat-sys-on-surface-variant));width:var(--mat-list-list-item-leading-icon-size, 24px);height:var(--mat-list-list-item-leading-icon-size, 24px);margin-left:16px;margin-right:32px}[dir=rtl] .mdc-list-item--with-leading-icon .mdc-list-item__start{margin-left:32px;margin-right:16px}.mdc-list-item--with-leading-icon:hover .mdc-list-item__start{color:var(--mat-list-list-item-hover-leading-icon-color)}.mdc-list-item--with-leading-avatar .mdc-list-item__start{width:var(--mat-list-list-item-leading-avatar-size, 40px);height:var(--mat-list-list-item-leading-avatar-size, 40px);margin-left:16px;margin-right:16px;border-radius:50%}.mdc-list-item--with-leading-avatar .mdc-list-item__start,[dir=rtl] .mdc-list-item--with-leading-avatar .mdc-list-item__start{margin-left:16px;margin-right:16px;border-radius:50%}.mdc-list-item__end{flex-shrink:0;pointer-events:none}.mdc-list-item--with-trailing-meta .mdc-list-item__end{font-family:var(--mat-list-list-item-trailing-supporting-text-font, var(--mat-sys-label-small-font));line-height:var(--mat-list-list-item-trailing-supporting-text-line-height, var(--mat-sys-label-small-line-height));font-size:var(--mat-list-list-item-trailing-supporting-text-size, var(--mat-sys-label-small-size));font-weight:var(--mat-list-list-item-trailing-supporting-text-weight, var(--mat-sys-label-small-weight));letter-spacing:var(--mat-list-list-item-trailing-supporting-text-tracking, var(--mat-sys-label-small-tracking))}.mdc-list-item--with-trailing-icon .mdc-list-item__end{color:var(--mat-list-list-item-trailing-icon-color, var(--mat-sys-on-surface-variant));width:var(--mat-list-list-item-trailing-icon-size, 24px);height:var(--mat-list-list-item-trailing-icon-size, 24px)}.mdc-list-item--with-trailing-icon:hover .mdc-list-item__end{color:var(--mat-list-list-item-hover-trailing-icon-color)}.mdc-list-item.mdc-list-item--with-trailing-meta .mdc-list-item__end{color:var(--mat-list-list-item-trailing-supporting-text-color, var(--mat-sys-on-surface-variant))}.mdc-list-item--selected.mdc-list-item--with-trailing-icon .mdc-list-item__end{color:var(--mat-list-list-item-selected-trailing-icon-color, var(--mat-sys-primary))}.mdc-list-item__content{text-overflow:ellipsis;white-space:nowrap;overflow:hidden;align-self:center;flex:1;pointer-events:none}.mdc-list-item--with-two-lines .mdc-list-item__content,.mdc-list-item--with-three-lines .mdc-list-item__content{align-self:stretch}.mdc-list-item__primary-text{text-overflow:ellipsis;white-space:nowrap;overflow:hidden;color:var(--mat-list-list-item-label-text-color, var(--mat-sys-on-surface));font-family:var(--mat-list-list-item-label-text-font, var(--mat-sys-body-large-font));line-height:var(--mat-list-list-item-label-text-line-height, var(--mat-sys-body-large-line-height));font-size:var(--mat-list-list-item-label-text-size, var(--mat-sys-body-large-size));font-weight:var(--mat-list-list-item-label-text-weight, var(--mat-sys-body-large-weight));letter-spacing:var(--mat-list-list-item-label-text-tracking, var(--mat-sys-body-large-tracking))}.mdc-list-item:hover .mdc-list-item__primary-text{color:var(--mat-list-list-item-hover-label-text-color, var(--mat-sys-on-surface))}.mdc-list-item:focus .mdc-list-item__primary-text{color:var(--mat-list-list-item-focus-label-text-color, var(--mat-sys-on-surface))}.mdc-list-item--with-two-lines .mdc-list-item__primary-text,.mdc-list-item--with-three-lines .mdc-list-item__primary-text{display:block;margin-top:0;line-height:normal;margin-bottom:-20px}.mdc-list-item--with-two-lines .mdc-list-item__primary-text::before,.mdc-list-item--with-three-lines .mdc-list-item__primary-text::before{display:inline-block;width:0;height:28px;content:"";vertical-align:0}.mdc-list-item--with-two-lines .mdc-list-item__primary-text::after,.mdc-list-item--with-three-lines .mdc-list-item__primary-text::after{display:inline-block;width:0;height:20px;content:"";vertical-align:-20px}.mdc-list-item__secondary-text{text-overflow:ellipsis;white-space:nowrap;overflow:hidden;display:block;margin-top:0;color:var(--mat-list-list-item-supporting-text-color, var(--mat-sys-on-surface-variant));font-family:var(--mat-list-list-item-supporting-text-font, var(--mat-sys-body-medium-font));line-height:var(--mat-list-list-item-supporting-text-line-height, var(--mat-sys-body-medium-line-height));font-size:var(--mat-list-list-item-supporting-text-size, var(--mat-sys-body-medium-size));font-weight:var(--mat-list-list-item-supporting-text-weight, var(--mat-sys-body-medium-weight));letter-spacing:var(--mat-list-list-item-supporting-text-tracking, var(--mat-sys-body-medium-tracking))}.mdc-list-item__secondary-text::before{display:inline-block;width:0;height:20px;content:"";vertical-align:0}.mdc-list-item--with-three-lines .mdc-list-item__secondary-text{white-space:normal;line-height:20px}.mdc-list-item--with-overline .mdc-list-item__secondary-text{white-space:nowrap;line-height:auto}.mdc-list-item--with-leading-radio.mdc-list-item,.mdc-list-item--with-leading-checkbox.mdc-list-item,.mdc-list-item--with-leading-icon.mdc-list-item,.mdc-list-item--with-leading-avatar.mdc-list-item{padding-left:0;padding-right:16px}[dir=rtl] .mdc-list-item--with-leading-radio.mdc-list-item,[dir=rtl] .mdc-list-item--with-leading-checkbox.mdc-list-item,[dir=rtl] .mdc-list-item--with-leading-icon.mdc-list-item,[dir=rtl] .mdc-list-item--with-leading-avatar.mdc-list-item{padding-left:16px;padding-right:0}.mdc-list-item--with-leading-radio.mdc-list-item--with-two-lines .mdc-list-item__primary-text,.mdc-list-item--with-leading-checkbox.mdc-list-item--with-two-lines .mdc-list-item__primary-text,.mdc-list-item--with-leading-icon.mdc-list-item--with-two-lines .mdc-list-item__primary-text,.mdc-list-item--with-leading-avatar.mdc-list-item--with-two-lines .mdc-list-item__primary-text{display:block;margin-top:0;line-height:normal;margin-bottom:-20px}.mdc-list-item--with-leading-radio.mdc-list-item--with-two-lines .mdc-list-item__primary-text::before,.mdc-list-item--with-leading-checkbox.mdc-list-item--with-two-lines .mdc-list-item__primary-text::before,.mdc-list-item--with-leading-icon.mdc-list-item--with-two-lines .mdc-list-item__primary-text::before,.mdc-list-item--with-leading-avatar.mdc-list-item--with-two-lines .mdc-list-item__primary-text::before{display:inline-block;width:0;height:32px;content:"";vertical-align:0}.mdc-list-item--with-leading-radio.mdc-list-item--with-two-lines .mdc-list-item__primary-text::after,.mdc-list-item--with-leading-checkbox.mdc-list-item--with-two-lines .mdc-list-item__primary-text::after,.mdc-list-item--with-leading-icon.mdc-list-item--with-two-lines .mdc-list-item__primary-text::after,.mdc-list-item--with-leading-avatar.mdc-list-item--with-two-lines .mdc-list-item__primary-text::after{display:inline-block;width:0;height:20px;content:"";vertical-align:-20px}.mdc-list-item--with-leading-radio.mdc-list-item--with-two-lines.mdc-list-item--with-trailing-meta .mdc-list-item__end,.mdc-list-item--with-leading-checkbox.mdc-list-item--with-two-lines.mdc-list-item--with-trailing-meta .mdc-list-item__end,.mdc-list-item--with-leading-icon.mdc-list-item--with-two-lines.mdc-list-item--with-trailing-meta .mdc-list-item__end,.mdc-list-item--with-leading-avatar.mdc-list-item--with-two-lines.mdc-list-item--with-trailing-meta .mdc-list-item__end{display:block;margin-top:0;line-height:normal}.mdc-list-item--with-leading-radio.mdc-list-item--with-two-lines.mdc-list-item--with-trailing-meta .mdc-list-item__end::before,.mdc-list-item--with-leading-checkbox.mdc-list-item--with-two-lines.mdc-list-item--with-trailing-meta .mdc-list-item__end::before,.mdc-list-item--with-leading-icon.mdc-list-item--with-two-lines.mdc-list-item--with-trailing-meta .mdc-list-item__end::before,.mdc-list-item--with-leading-avatar.mdc-list-item--with-two-lines.mdc-list-item--with-trailing-meta .mdc-list-item__end::before{display:inline-block;width:0;height:32px;content:"";vertical-align:0}.mdc-list-item--with-trailing-icon.mdc-list-item,[dir=rtl] .mdc-list-item--with-trailing-icon.mdc-list-item{padding-left:0;padding-right:0}.mdc-list-item--with-trailing-icon .mdc-list-item__end{margin-left:16px;margin-right:16px}.mdc-list-item--with-trailing-meta.mdc-list-item{padding-left:16px;padding-right:0}[dir=rtl] .mdc-list-item--with-trailing-meta.mdc-list-item{padding-left:0;padding-right:16px}.mdc-list-item--with-trailing-meta .mdc-list-item__end{-webkit-user-select:none;user-select:none;margin-left:28px;margin-right:16px}[dir=rtl] .mdc-list-item--with-trailing-meta .mdc-list-item__end{margin-left:16px;margin-right:28px}.mdc-list-item--with-trailing-meta.mdc-list-item--with-three-lines .mdc-list-item__end,.mdc-list-item--with-trailing-meta.mdc-list-item--with-two-lines .mdc-list-item__end{display:block;line-height:normal;align-self:flex-start;margin-top:0}.mdc-list-item--with-trailing-meta.mdc-list-item--with-three-lines .mdc-list-item__end::before,.mdc-list-item--with-trailing-meta.mdc-list-item--with-two-lines .mdc-list-item__end::before{display:inline-block;width:0;height:28px;content:"";vertical-align:0}.mdc-list-item--with-leading-radio .mdc-list-item__start,.mdc-list-item--with-leading-checkbox .mdc-list-item__start{margin-left:8px;margin-right:24px}[dir=rtl] .mdc-list-item--with-leading-radio .mdc-list-item__start,[dir=rtl] .mdc-list-item--with-leading-checkbox .mdc-list-item__start{margin-left:24px;margin-right:8px}.mdc-list-item--with-leading-radio.mdc-list-item--with-two-lines .mdc-list-item__start,.mdc-list-item--with-leading-checkbox.mdc-list-item--with-two-lines .mdc-list-item__start{align-self:flex-start;margin-top:8px}.mdc-list-item--with-trailing-radio.mdc-list-item,.mdc-list-item--with-trailing-checkbox.mdc-list-item{padding-left:16px;padding-right:0}[dir=rtl] .mdc-list-item--with-trailing-radio.mdc-list-item,[dir=rtl] .mdc-list-item--with-trailing-checkbox.mdc-list-item{padding-left:0;padding-right:16px}.mdc-list-item--with-trailing-radio.mdc-list-item--with-leading-icon,.mdc-list-item--with-trailing-radio.mdc-list-item--with-leading-avatar,.mdc-list-item--with-trailing-checkbox.mdc-list-item--with-leading-icon,.mdc-list-item--with-trailing-checkbox.mdc-list-item--with-leading-avatar{padding-left:0}[dir=rtl] .mdc-list-item--with-trailing-radio.mdc-list-item--with-leading-icon,[dir=rtl] .mdc-list-item--with-trailing-radio.mdc-list-item--with-leading-avatar,[dir=rtl] .mdc-list-item--with-trailing-checkbox.mdc-list-item--with-leading-icon,[dir=rtl] .mdc-list-item--with-trailing-checkbox.mdc-list-item--with-leading-avatar{padding-right:0}.mdc-list-item--with-trailing-radio .mdc-list-item__end,.mdc-list-item--with-trailing-checkbox .mdc-list-item__end{margin-left:24px;margin-right:8px}[dir=rtl] .mdc-list-item--with-trailing-radio .mdc-list-item__end,[dir=rtl] .mdc-list-item--with-trailing-checkbox .mdc-list-item__end{margin-left:8px;margin-right:24px}.mdc-list-item--with-trailing-radio.mdc-list-item--with-three-lines .mdc-list-item__end,.mdc-list-item--with-trailing-checkbox.mdc-list-item--with-three-lines .mdc-list-item__end{align-self:flex-start;margin-top:8px}.mdc-list-group__subheader{margin:.75rem 16px}.mdc-list-item--disabled .mdc-list-item__start,.mdc-list-item--disabled .mdc-list-item__content,.mdc-list-item--disabled .mdc-list-item__end{opacity:1}.mdc-list-item--disabled .mdc-list-item__primary-text,.mdc-list-item--disabled .mdc-list-item__secondary-text{opacity:var(--mat-list-list-item-disabled-label-text-opacity, 0.3)}.mdc-list-item--disabled.mdc-list-item--with-leading-icon .mdc-list-item__start{color:var(--mat-list-list-item-disabled-leading-icon-color, var(--mat-sys-on-surface));opacity:var(--mat-list-list-item-disabled-leading-icon-opacity, 0.38)}.mdc-list-item--disabled.mdc-list-item--with-trailing-icon .mdc-list-item__end{color:var(--mat-list-list-item-disabled-trailing-icon-color, var(--mat-sys-on-surface));opacity:var(--mat-list-list-item-disabled-trailing-icon-opacity, 0.38)}.mat-mdc-list-item.mat-mdc-list-item-both-leading-and-trailing,[dir=rtl] .mat-mdc-list-item.mat-mdc-list-item-both-leading-and-trailing{padding-left:0;padding-right:0}.mdc-list-item.mdc-list-item--disabled .mdc-list-item__primary-text{color:var(--mat-list-list-item-disabled-label-text-color, var(--mat-sys-on-surface))}.mdc-list-item:hover::before{background-color:var(--mat-list-list-item-hover-state-layer-color, var(--mat-sys-on-surface));opacity:var(--mat-list-list-item-hover-state-layer-opacity, var(--mat-sys-hover-state-layer-opacity))}.mdc-list-item.mdc-list-item--disabled::before{background-color:var(--mat-list-list-item-disabled-state-layer-color, var(--mat-sys-on-surface));opacity:var(--mat-list-list-item-disabled-state-layer-opacity, var(--mat-sys-focus-state-layer-opacity))}.mdc-list-item:focus::before{background-color:var(--mat-list-list-item-focus-state-layer-color, var(--mat-sys-on-surface));opacity:var(--mat-list-list-item-focus-state-layer-opacity, var(--mat-sys-focus-state-layer-opacity))}.mdc-list-item--disabled .mdc-radio,.mdc-list-item--disabled .mdc-checkbox{opacity:var(--mat-list-list-item-disabled-label-text-opacity, 0.3)}.mdc-list-item--with-leading-avatar .mat-mdc-list-item-avatar{border-radius:var(--mat-list-list-item-leading-avatar-shape, var(--mat-sys-corner-full));background-color:var(--mat-list-list-item-leading-avatar-color, var(--mat-sys-primary-container))}.mat-mdc-list-item-icon{font-size:var(--mat-list-list-item-leading-icon-size, 24px)}@media(forced-colors: active){a.mdc-list-item--activated::after{content:"";position:absolute;top:50%;right:16px;transform:translateY(-50%);width:10px;height:0;border-bottom:solid 10px;border-radius:10px}a.mdc-list-item--activated [dir=rtl]::after{right:auto;left:16px}}.mat-mdc-list-base{display:block}.mat-mdc-list-base .mdc-list-item__start,.mat-mdc-list-base .mdc-list-item__end,.mat-mdc-list-base .mdc-list-item__content{pointer-events:auto}.mat-mdc-list-item,.mat-mdc-list-option{width:100%;box-sizing:border-box;-webkit-tap-highlight-color:rgba(0,0,0,0)}.mat-mdc-list-item:not(.mat-mdc-list-item-interactive),.mat-mdc-list-option:not(.mat-mdc-list-item-interactive){cursor:default}.mat-mdc-list-item .mat-divider-inset,.mat-mdc-list-option .mat-divider-inset{position:absolute;left:0;right:0;bottom:0}.mat-mdc-list-item .mat-mdc-list-item-avatar~.mat-divider-inset,.mat-mdc-list-option .mat-mdc-list-item-avatar~.mat-divider-inset{margin-left:72px}[dir=rtl] .mat-mdc-list-item .mat-mdc-list-item-avatar~.mat-divider-inset,[dir=rtl] .mat-mdc-list-option .mat-mdc-list-item-avatar~.mat-divider-inset{margin-right:72px}.mat-mdc-list-item-interactive::before{top:0;left:0;right:0;bottom:0;position:absolute;content:"";opacity:0;pointer-events:none;border-radius:inherit}.mat-mdc-list-item>.mat-focus-indicator{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none}.mat-mdc-list-item:focus>.mat-focus-indicator::before{content:""}.mat-mdc-list-item.mdc-list-item--with-three-lines .mat-mdc-list-item-line.mdc-list-item__secondary-text{white-space:nowrap;line-height:normal}.mat-mdc-list-item.mdc-list-item--with-three-lines .mat-mdc-list-item-unscoped-content.mdc-list-item__secondary-text{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2}mat-action-list button{background:none;color:inherit;border:none;font:inherit;outline:inherit;-webkit-tap-highlight-color:rgba(0,0,0,0);text-align:start}mat-action-list button::-moz-focus-inner{border:0}.mdc-list-item--with-leading-icon .mdc-list-item__start{margin-inline-start:var(--mat-list-list-item-leading-icon-start-space, 16px);margin-inline-end:var(--mat-list-list-item-leading-icon-end-space, 16px)}.mat-mdc-nav-list .mat-mdc-list-item{border-radius:var(--mat-list-active-indicator-shape, var(--mat-sys-corner-full));--mat-focus-indicator-border-radius: var(--mat-list-active-indicator-shape, var(--mat-sys-corner-full))}.mat-mdc-nav-list .mat-mdc-list-item.mdc-list-item--activated{background-color:var(--mat-list-active-indicator-color, var(--mat-sys-secondary-container))} -`,rfe=["unscopedContent"],ofe=["text"],afe=[[["","matListItemAvatar",""],["","matListItemIcon",""]],[["","matListItemTitle",""]],[["","matListItemLine",""]],"*",[["","matListItemMeta",""]],[["mat-divider"]]],sfe=["[matListItemAvatar],[matListItemIcon]","[matListItemTitle]","[matListItemLine]","*","[matListItemMeta]","mat-divider"];var lfe=new O("ListOption"),Ml=(()=>{class t{_elementRef=u(Y);constructor(){}static \u0275fac=function(i){return new(i||t)};static \u0275dir=P({type:t,selectors:[["","matListItemTitle",""]],hostAttrs:[1,"mat-mdc-list-item-title","mdc-list-item__primary-text"]})}return t})(),Pu=(()=>{class t{_elementRef=u(Y);constructor(){}static \u0275fac=function(i){return new(i||t)};static \u0275dir=P({type:t,selectors:[["","matListItemLine",""]],hostAttrs:[1,"mat-mdc-list-item-line","mdc-list-item__secondary-text"]})}return t})(),RI=(()=>{class t{static \u0275fac=function(i){return new(i||t)};static \u0275dir=P({type:t,selectors:[["","matListItemMeta",""]],hostAttrs:[1,"mat-mdc-list-item-meta","mdc-list-item__end"]})}return t})(),E8=(()=>{class t{_listOption=u(lfe,{optional:!0});constructor(){}_isAlignedAtStart(){return!this._listOption||this._listOption?._getTogglePosition()==="after"}static \u0275fac=function(i){return new(i||t)};static \u0275dir=P({type:t,hostVars:4,hostBindings:function(i,r){i&2&&G("mdc-list-item__start",r._isAlignedAtStart())("mdc-list-item__end",!r._isAlignedAtStart())}})}return t})(),cfe=(()=>{class t extends E8{static \u0275fac=(()=>{let e;return function(r){return(e||(e=ge(t)))(r||t)}})();static \u0275dir=P({type:t,selectors:[["","matListItemAvatar",""]],hostAttrs:[1,"mat-mdc-list-item-avatar"],features:[le]})}return t})(),v_=(()=>{class t extends E8{static \u0275fac=(()=>{let e;return function(r){return(e||(e=ge(t)))(r||t)}})();static \u0275dir=P({type:t,selectors:[["","matListItemIcon",""]],hostAttrs:[1,"mat-mdc-list-item-icon"],features:[le]})}return t})(),dfe=new O("MAT_LIST_CONFIG"),b_=(()=>{class t{_isNonInteractive=!0;get disableRipple(){return this._disableRipple}set disableRipple(e){this._disableRipple=Ri(e)}_disableRipple=!1;get disabled(){return this._disabled()}set disabled(e){this._disabled.set(Ri(e))}_disabled=he(!1);_defaultOptions=u(dfe,{optional:!0});static \u0275fac=function(i){return new(i||t)};static \u0275dir=P({type:t,hostVars:1,hostBindings:function(i,r){i&2&&X("aria-disabled",r.disabled)},inputs:{disableRipple:"disableRipple",disabled:"disabled"}})}return t})(),ufe=(()=>{class t{_elementRef=u(Y);_ngZone=u(ae);_listBase=u(b_,{optional:!0});_platform=u(qe);_hostElement;_isButtonElement;_noopAnimations=Ye();_avatars;_icons;set lines(e){this._explicitLines=Bn(e,null),this._updateItemLines(!1)}_explicitLines=null;get disableRipple(){return this.disabled||this._disableRipple||this._noopAnimations||!!this._listBase?.disableRipple}set disableRipple(e){this._disableRipple=Ri(e)}_disableRipple=!1;get disabled(){return this._disabled()||!!this._listBase?.disabled}set disabled(e){this._disabled.set(Ri(e))}_disabled=he(!1);_subscriptions=new Te;_rippleRenderer=null;_hasUnscopedTextContent=!1;rippleConfig;get rippleDisabled(){return this.disableRipple||!!this.rippleConfig.disabled}constructor(){u(ht).load(ki);let e=u(ws,{optional:!0});this.rippleConfig=e||{},this._hostElement=this._elementRef.nativeElement,this._isButtonElement=this._hostElement.nodeName.toLowerCase()==="button",this._listBase&&!this._listBase._isNonInteractive&&this._initInteractiveListItem(),this._isButtonElement&&!this._hostElement.hasAttribute("type")&&this._hostElement.setAttribute("type","button")}ngAfterViewInit(){this._monitorProjectedLinesAndTitle(),this._updateItemLines(!0)}ngOnDestroy(){this._subscriptions.unsubscribe(),this._rippleRenderer!==null&&this._rippleRenderer._removeTriggerEvents()}_hasIconOrAvatar(){return!!(this._avatars.length||this._icons.length)}_initInteractiveListItem(){this._hostElement.classList.add("mat-mdc-list-item-interactive"),this._rippleRenderer=new dc(this,this._ngZone,this._hostElement,this._platform,u(de)),this._rippleRenderer.setupTriggerEvents(this._hostElement)}_monitorProjectedLinesAndTitle(){this._ngZone.runOutsideAngular(()=>{this._subscriptions.add(Je(this._lines.changes,this._titles.changes).subscribe(()=>this._updateItemLines(!1)))})}_updateItemLines(e){if(!this._lines||!this._titles||!this._unscopedContent)return;e&&this._checkDomForUnscopedTextContent();let i=this._explicitLines??this._inferLinesFromContent(),r=this._unscopedContent.nativeElement;if(this._hostElement.classList.toggle("mat-mdc-list-item-single-line",i<=1),this._hostElement.classList.toggle("mdc-list-item--with-one-line",i<=1),this._hostElement.classList.toggle("mdc-list-item--with-two-lines",i===2),this._hostElement.classList.toggle("mdc-list-item--with-three-lines",i===3),this._hasUnscopedTextContent){let o=this._titles.length===0&&i===1;r.classList.toggle("mdc-list-item__primary-text",o),r.classList.toggle("mdc-list-item__secondary-text",!o)}else r.classList.remove("mdc-list-item__primary-text"),r.classList.remove("mdc-list-item__secondary-text")}_inferLinesFromContent(){let e=this._titles.length+this._lines.length;return this._hasUnscopedTextContent&&(e+=1),e}_checkDomForUnscopedTextContent(){this._hasUnscopedTextContent=Array.from(this._unscopedContent.nativeElement.childNodes).filter(e=>e.nodeType!==e.COMMENT_NODE).some(e=>!!(e.textContent&&e.textContent.trim()))}static \u0275fac=function(i){return new(i||t)};static \u0275dir=P({type:t,contentQueries:function(i,r,o){if(i&1&&(xe(o,cfe,4),xe(o,v_,4)),i&2){let a;j(a=H())&&(r._avatars=a),j(a=H())&&(r._icons=a)}},hostVars:4,hostBindings:function(i,r){i&2&&(X("aria-disabled",r.disabled)("disabled",r._isButtonElement&&r.disabled||null),G("mdc-list-item--disabled",r.disabled))},inputs:{lines:"lines",disableRipple:"disableRipple",disabled:"disabled"}})}return t})();var Ns=(()=>{class t extends b_{static \u0275fac=(()=>{let e;return function(r){return(e||(e=ge(t)))(r||t)}})();static \u0275cmp=E({type:t,selectors:[["mat-list"]],hostAttrs:[1,"mat-mdc-list","mat-mdc-list-base","mdc-list"],exportAs:["matList"],features:[Ce([{provide:b_,useExisting:t}]),le],ngContentSelectors:w8,decls:1,vars:0,template:function(i,r){i&1&&(Se(),ne(0))},styles:[D8],encapsulation:2,changeDetection:0})}return t})(),da=(()=>{class t extends ufe{_lines;_titles;_meta;_unscopedContent;_itemText;get activated(){return this._activated}set activated(e){this._activated=Ri(e)}_activated=!1;_getAriaCurrent(){return this._hostElement.nodeName==="A"&&this._activated?"page":null}_hasBothLeadingAndTrailing(){return this._meta.length!==0&&(this._avatars.length!==0||this._icons.length!==0)}static \u0275fac=(()=>{let e;return function(r){return(e||(e=ge(t)))(r||t)}})();static \u0275cmp=E({type:t,selectors:[["mat-list-item"],["a","mat-list-item",""],["button","mat-list-item",""]],contentQueries:function(i,r,o){if(i&1&&(xe(o,Pu,5),xe(o,Ml,5),xe(o,RI,5)),i&2){let a;j(a=H())&&(r._lines=a),j(a=H())&&(r._titles=a),j(a=H())&&(r._meta=a)}},viewQuery:function(i,r){if(i&1&&(ie(rfe,5),ie(ofe,5)),i&2){let o;j(o=H())&&(r._unscopedContent=o.first),j(o=H())&&(r._itemText=o.first)}},hostAttrs:[1,"mat-mdc-list-item","mdc-list-item"],hostVars:13,hostBindings:function(i,r){i&2&&(X("aria-current",r._getAriaCurrent()),G("mdc-list-item--activated",r.activated)("mdc-list-item--with-leading-avatar",r._avatars.length!==0)("mdc-list-item--with-leading-icon",r._icons.length!==0)("mdc-list-item--with-trailing-meta",r._meta.length!==0)("mat-mdc-list-item-both-leading-and-trailing",r._hasBothLeadingAndTrailing())("_mat-animation-noopable",r._noopAnimations))},inputs:{activated:"activated"},exportAs:["matListItem"],features:[le],ngContentSelectors:sfe,decls:10,vars:0,consts:[["unscopedContent",""],[1,"mdc-list-item__content"],[1,"mat-mdc-list-item-unscoped-content",3,"cdkObserveContent"],[1,"mat-focus-indicator"]],template:function(i,r){if(i&1){let o=q();Se(afe),ne(0),m(1,"span",1),ne(2,1),ne(3,2),m(4,"span",2,0),S("cdkObserveContent",function(){return T(o),I(r._updateItemLines(!0))}),ne(6,3),h()(),ne(7,4),ne(8,5),M(9,"div",3)}},dependencies:[Kf],encapsulation:2,changeDetection:0})}return t})();var M8=(()=>{class t extends b_{_isNonInteractive=!1;static \u0275fac=(()=>{let e;return function(r){return(e||(e=ge(t)))(r||t)}})();static \u0275cmp=E({type:t,selectors:[["mat-nav-list"]],hostAttrs:["role","navigation",1,"mat-mdc-nav-list","mat-mdc-list-base","mdc-list"],exportAs:["matNavList"],features:[Ce([{provide:b_,useExisting:t}]),le],ngContentSelectors:w8,decls:1,vars:0,template:function(i,r){i&1&&(Se(),ne(0))},styles:[D8],encapsulation:2,changeDetection:0})}return t})();var ua=(()=>{class t{static \u0275fac=function(i){return new(i||t)};static \u0275mod=ee({type:t});static \u0275inj=J({imports:[Jm,De,Mo,Xv,ho]})}return t})();var mfe=["mat-menu-item",""],hfe=[[["mat-icon"],["","matMenuItemIcon",""]],"*"],pfe=["mat-icon, [matMenuItemIcon]","*"];function ffe(t,n){t&1&&(Zt(),m(0,"svg",2),M(1,"polygon",3),h())}var gfe=["*"];function _fe(t,n){if(t&1){let e=q();pt(0,"div",0),I0("click",function(){T(e);let r=x();return I(r.closed.emit("click"))})("animationstart",function(r){T(e);let o=x();return I(o._onAnimationStart(r.animationName))})("animationend",function(r){T(e);let o=x();return I(o._onAnimationDone(r.animationName))})("animationcancel",function(r){T(e);let o=x();return I(o._onAnimationDone(r.animationName))}),pt(1,"div",1),ne(2),_t()()}if(t&2){let e=x();nt(e._classList),G("mat-menu-panel-animations-disabled",e._animationsDisabled)("mat-menu-panel-exit-animation",e._panelAnimationState==="void")("mat-menu-panel-animating",e._isAnimating()),ci("id",e.panelId),X("aria-label",e.ariaLabel||null)("aria-labelledby",e.ariaLabelledby||null)("aria-describedby",e.ariaDescribedby||null)}}var FI=new O("MAT_MENU_PANEL"),Sl=(()=>{class t{_elementRef=u(Y);_document=u(_e);_focusMonitor=u(ti);_parentMenu=u(FI,{optional:!0});_changeDetectorRef=u(ye);role="menuitem";disabled=!1;disableRipple=!1;_hovered=new z;_focused=new z;_highlighted=!1;_triggersSubmenu=!1;constructor(){u(ht).load(ki),this._parentMenu?.addItem?.(this)}focus(e,i){this._focusMonitor&&e?this._focusMonitor.focusVia(this._getHostElement(),e,i):this._getHostElement().focus(i),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),i=e.querySelectorAll("mat-icon, .material-icons");for(let r=0;r{class t{_elementRef=u(Y);_changeDetectorRef=u(ye);_injector=u(de);_keyManager;_xPosition;_yPosition;_firstItemFocusRef;_exitFallbackTimeout;_animationsDisabled=Ye();_allItems;_directDescendantItems=new gr;_classList={};_panelAnimationState="void";_animationDone=new z;_isAnimating=he(!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;hasBackdrop;set panelClass(e){let i=this._previousPanelClass,r=k({},this._classList);i&&i.length&&i.split(" ").forEach(o=>{r[o]=!1}),this._previousPanelClass=e,e&&e.length&&(e.split(" ").forEach(o=>{r[o]=!0}),this._elementRef.nativeElement.className=""),this._classList=r}_previousPanelClass;get classList(){return this.panelClass}set classList(e){this.panelClass=e}closed=new U;close=this.closed;panelId=u(Ze).getId("mat-menu-panel-");constructor(){let e=u(vfe);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 vs(this._directDescendantItems).withWrap().withTypeAhead().withHomeAndEnd(),this._keyManager.tabOut.subscribe(()=>this.closed.emit("tab")),this._directDescendantItems.changes.pipe(Ue(this._directDescendantItems),je(e=>Je(...e.map(i=>i._focused)))).subscribe(e=>this._keyManager.updateActiveItem(e)),this._directDescendantItems.changes.subscribe(e=>{let i=this._keyManager;if(this._panelAnimationState==="enter"&&i.activeItem?._hasFocus()){let r=e.toArray(),o=Math.max(0,Math.min(r.length-1,i.activeItemIndex||0));r[o]&&!r[o].disabled?i.setActiveItem(o):i.setNextItemActive()}})}ngOnDestroy(){this._keyManager?.destroy(),this._directDescendantItems.destroy(),this.closed.complete(),this._firstItemFocusRef?.destroy(),clearTimeout(this._exitFallbackTimeout)}_hovered(){return this._directDescendantItems.changes.pipe(Ue(this._directDescendantItems),je(i=>Je(...i.map(r=>r._hovered))))}addItem(e){}removeItem(e){}_handleKeydown(e){let i=e.keyCode,r=this._keyManager;switch(i){case 27:Lt(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:(i===38||i===40)&&r.setFocusOrigin("keyboard"),r.onKeydown(e);return}}focusFirstItem(e="program"){this._firstItemFocusRef?.destroy(),this._firstItemFocusRef=gt(()=>{let i=this._resolvePanel();if(!i||!i.contains(document.activeElement)){let r=this._keyManager;r.setFocusOrigin(e).setFirstItemActive(),!r.activeItem&&i&&i.focus()}},{injector:this._injector})}resetActiveItem(){this._keyManager.setActiveItem(-1)}setElevation(e){}setPositionClasses(e=this.xPosition,i=this.yPosition){this._classList=Ee(k({},this._classList),{"mat-menu-before":e==="before","mat-menu-after":e==="after","mat-menu-above":i==="above","mat-menu-below":i==="below"}),this._changeDetectorRef.markForCheck()}_onAnimationDone(e){let i=e===rw;(i||e===PI)&&(i&&(clearTimeout(this._exitFallbackTimeout),this._exitFallbackTimeout=void 0),this._animationDone.next(i?"void":"enter"),this._isAnimating.set(!1))}_onAnimationStart(e){(e===PI||e===rw)&&this._isAnimating.set(!0)}_setIsOpen(e){if(this._panelAnimationState=e?"enter":"void",e){if(this._keyManager.activeItemIndex===0){let i=this._resolvePanel();i&&(i.scrollTop=0)}}else this._animationsDisabled||(this._exitFallbackTimeout=setTimeout(()=>this._onAnimationDone(rw),200));this._animationsDisabled&&setTimeout(()=>{this._onAnimationDone(e?PI:rw)}),this._changeDetectorRef.markForCheck()}_updateDirectDescendants(){this._allItems.changes.pipe(Ue(this._allItems)).subscribe(e=>{this._directDescendantItems.reset(e.filter(i=>i._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(i){return new(i||t)};static \u0275cmp=E({type:t,selectors:[["mat-menu"]],contentQueries:function(i,r,o){if(i&1&&(xe(o,bfe,5),xe(o,Sl,5),xe(o,Sl,4)),i&2){let a;j(a=H())&&(r.lazyContent=a.first),j(a=H())&&(r._allItems=a),j(a=H())&&(r.items=a)}},viewQuery:function(i,r){if(i&1&&ie(te,5),i&2){let o;j(o=H())&&(r.templateRef=o.first)}},hostVars:3,hostBindings:function(i,r){i&2&&X("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",L],hasBackdrop:[2,"hasBackdrop","hasBackdrop",e=>e==null?null:L(e)],panelClass:[0,"class","panelClass"],classList:"classList"},outputs:{closed:"closed",close:"close"},exportAs:["matMenu"],features:[Ce([{provide:FI,useExisting:t}])],ngContentSelectors:gfe,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(i,r){i&1&&(Se(),wa(0,_fe,3,12,"ng-template"))},styles:[`mat-menu{display:none}.mat-mdc-menu-content{margin:0;padding:8px 0;outline:0}.mat-mdc-menu-content,.mat-mdc-menu-content .mat-mdc-menu-item .mat-mdc-menu-item-text{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;flex:1;white-space:normal;font-family:var(--mat-menu-item-label-text-font, var(--mat-sys-label-large-font));line-height:var(--mat-menu-item-label-text-line-height, var(--mat-sys-label-large-line-height));font-size:var(--mat-menu-item-label-text-size, var(--mat-sys-label-large-size));letter-spacing:var(--mat-menu-item-label-text-tracking, var(--mat-sys-label-large-tracking));font-weight:var(--mat-menu-item-label-text-weight, var(--mat-sys-label-large-weight))}@keyframes _mat-menu-enter{from{opacity:0;transform:scale(0.8)}to{opacity:1;transform:none}}@keyframes _mat-menu-exit{from{opacity:1}to{opacity:0}}.mat-mdc-menu-panel{min-width:112px;max-width:280px;overflow:auto;box-sizing:border-box;outline:0;animation:_mat-menu-enter 120ms cubic-bezier(0, 0, 0.2, 1);border-radius:var(--mat-menu-container-shape, var(--mat-sys-corner-extra-small));background-color:var(--mat-menu-container-color, var(--mat-sys-surface-container));box-shadow:var(--mat-menu-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));will-change:transform,opacity}.mat-mdc-menu-panel.mat-menu-panel-exit-animation{animation:_mat-menu-exit 100ms 25ms linear forwards}.mat-mdc-menu-panel.mat-menu-panel-animations-disabled{animation:none}.mat-mdc-menu-panel.mat-menu-panel-animating{pointer-events:none}.mat-mdc-menu-panel.mat-menu-panel-animating:has(.mat-mdc-menu-content:empty){display:none}@media(forced-colors: active){.mat-mdc-menu-panel{outline:solid 1px}}.mat-mdc-menu-panel .mat-divider{color:var(--mat-menu-divider-color, var(--mat-sys-surface-variant));margin-bottom:var(--mat-menu-divider-bottom-spacing, 8px);margin-top:var(--mat-menu-divider-top-spacing, 8px)}.mat-mdc-menu-item{display:flex;position:relative;align-items:center;justify-content:flex-start;overflow:hidden;padding:0;cursor:pointer;width:100%;text-align:left;box-sizing:border-box;color:inherit;font-size:inherit;background:none;text-decoration:none;margin:0;min-height:48px;padding-left:var(--mat-menu-item-leading-spacing, 12px);padding-right:var(--mat-menu-item-trailing-spacing, 12px);-webkit-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:rgba(0,0,0,0)}.mat-mdc-menu-item::-moz-focus-inner{border:0}[dir=rtl] .mat-mdc-menu-item{padding-left:var(--mat-menu-item-trailing-spacing, 12px);padding-right:var(--mat-menu-item-leading-spacing, 12px)}.mat-mdc-menu-item:has(.material-icons,mat-icon,[matButtonIcon]){padding-left:var(--mat-menu-item-with-icon-leading-spacing, 12px);padding-right:var(--mat-menu-item-with-icon-trailing-spacing, 12px)}[dir=rtl] .mat-mdc-menu-item:has(.material-icons,mat-icon,[matButtonIcon]){padding-left:var(--mat-menu-item-with-icon-trailing-spacing, 12px);padding-right:var(--mat-menu-item-with-icon-leading-spacing, 12px)}.mat-mdc-menu-item,.mat-mdc-menu-item:visited,.mat-mdc-menu-item:link{color:var(--mat-menu-item-label-text-color, var(--mat-sys-on-surface))}.mat-mdc-menu-item .mat-icon-no-color,.mat-mdc-menu-item .mat-mdc-menu-submenu-icon{color:var(--mat-menu-item-icon-color, var(--mat-sys-on-surface-variant))}.mat-mdc-menu-item[disabled]{cursor:default;opacity:.38}.mat-mdc-menu-item[disabled]::after{display:block;position:absolute;content:"";top:0;left:0;bottom:0;right:0}.mat-mdc-menu-item:focus{outline:0}.mat-mdc-menu-item .mat-icon{flex-shrink:0;margin-right:var(--mat-menu-item-spacing, 12px);height:var(--mat-menu-item-icon-size, 24px);width:var(--mat-menu-item-icon-size, 24px)}[dir=rtl] .mat-mdc-menu-item{text-align:right}[dir=rtl] .mat-mdc-menu-item .mat-icon{margin-right:0;margin-left:var(--mat-menu-item-spacing, 12px)}.mat-mdc-menu-item:not([disabled]):hover{background-color:var(--mat-menu-item-hover-state-layer-color, color-mix(in srgb, var(--mat-sys-on-surface) calc(var(--mat-sys-hover-state-layer-opacity) * 100%), transparent))}.mat-mdc-menu-item:not([disabled]).cdk-program-focused,.mat-mdc-menu-item:not([disabled]).cdk-keyboard-focused,.mat-mdc-menu-item:not([disabled]).mat-mdc-menu-item-highlighted{background-color:var(--mat-menu-item-focus-state-layer-color, color-mix(in srgb, var(--mat-sys-on-surface) calc(var(--mat-sys-focus-state-layer-opacity) * 100%), transparent))}@media(forced-colors: active){.mat-mdc-menu-item{margin-top:1px}}.mat-mdc-menu-submenu-icon{width:var(--mat-menu-item-icon-size, 24px);height:10px;fill:currentColor;padding-left:var(--mat-menu-item-spacing, 12px)}[dir=rtl] .mat-mdc-menu-submenu-icon{padding-right:var(--mat-menu-item-spacing, 12px);padding-left:0}[dir=rtl] .mat-mdc-menu-submenu-icon polygon{transform:scaleX(-1);transform-origin:center}@media(forced-colors: active){.mat-mdc-menu-submenu-icon{fill:CanvasText}}.mat-mdc-menu-item .mat-mdc-menu-ripple{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none} -`],encapsulation:2,changeDetection:0})}return t})(),S8=new O("mat-menu-scroll-strategy",{providedIn:"root",factory:()=>{let t=u(de);return()=>En(t)}});function xfe(t){let n=u(de);return()=>En(n)}var Cfe={provide:S8,deps:[],useFactory:xfe};var lp=new WeakMap,wfe=(()=>{class t{_canHaveBackdrop;_element=u(Y);_viewContainerRef=u(ot);_menuItemInstance=u(Sl,{optional:!0,self:!0});_dir=u(Bt,{optional:!0});_focusMonitor=u(ti);_ngZone=u(ae);_injector=u(de);_scrollStrategy=u(S8);_changeDetectorRef=u(ye);_animationsDisabled=Ye();_portal;_overlayRef=null;_menuOpen=!1;_closingActionsSubscription=Te.EMPTY;_menuCloseSubscription=Te.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(i=>{this._destroyMenu(i),(i==="click"||i==="tab")&&this._parentMaterialMenu&&this._parentMaterialMenu.closed.emit(i)})),this._menuItemInstance?._setTriggersSubmenu(this._triggersSubmenu()))}_menuInternal;constructor(e){this._canHaveBackdrop=e;let i=u(FI,{optional:!0});this._parentMaterialMenu=i instanceof Wr?i:void 0}ngOnDestroy(){this._menu&&this._ownsMenu(this._menu)&&lp.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){let i=this._menu;if(this._menuOpen||!i)return;this._pendingRemoval?.unsubscribe();let r=lp.get(i);lp.set(i,this),r&&r!==this&&r._closeMenu();let o=this._createOverlay(i),a=o.getConfig(),s=a.positionStrategy;this._setPosition(i,s),this._canHaveBackdrop?a.hasBackdrop=i.hasBackdrop==null?!this._triggersSubmenu():i.hasBackdrop:a.hasBackdrop=!1,o.hasAttached()||(o.attach(this._getPortal(i)),i.lazyContent?.attach(this.menuData)),this._closingActionsSubscription=this._menuClosingActions().subscribe(()=>this._closeMenu()),i.parentMenu=this._triggersSubmenu()?this._parentMaterialMenu:void 0,i.direction=this.dir,e&&i.focusFirstItem(this._openedBy||"program"),this._setIsMenuOpen(!0),i instanceof Wr&&(i._setIsOpen(!0),i._directDescendantItems.changes.pipe(we(i.close)).subscribe(()=>{s.withLockedPosition(!1).reapplyLastPosition(),s.withLockedPosition(!0)}))}focus(e,i){this._focusMonitor&&e?this._focusMonitor.focusVia(this._element,e,i):this._element.nativeElement.focus(i)}_destroyMenu(e){let i=this._overlayRef,r=this._menu;!i||!this.menuOpen||(this._closingActionsSubscription.unsubscribe(),this._pendingRemoval?.unsubscribe(),r instanceof Wr&&this._ownsMenu(r)?(this._pendingRemoval=r._animationDone.pipe(ct(1)).subscribe(()=>{i.detach(),lp.has(r)||r.lazyContent?.detach()}),r._setIsOpen(!1)):(i.detach(),r?.lazyContent?.detach()),r&&this._ownsMenu(r)&&lp.delete(r),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 i=this._getOverlayConfig(e);this._subscribeToPositions(e,i.positionStrategy),this._overlayRef=zr(this._injector,i),this._overlayRef.keydownEvents().subscribe(r=>{this._menu instanceof Wr&&this._menu._handleKeydown(r)})}return this._overlayRef}_getOverlayConfig(e){return new Hr({positionStrategy:Na(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,i){e.setPositionClasses&&i.positionChanges.subscribe(r=>{this._ngZone.run(()=>{let o=r.connectionPair.overlayX==="start"?"after":"before",a=r.connectionPair.overlayY==="top"?"below":"above";e.setPositionClasses(o,a)})})}_setPosition(e,i){let[r,o]=e.xPosition==="before"?["end","start"]:["start","end"],[a,s]=e.yPosition==="above"?["bottom","top"]:["top","bottom"],[l,c]=[a,s],[d,p]=[r,o],_=0;if(this._triggersSubmenu()){if(p=r=e.xPosition==="before"?"start":"end",o=d=r==="end"?"start":"end",this._parentMaterialMenu){if(this._parentInnerPadding==null){let b=this._parentMaterialMenu.items.first;this._parentInnerPadding=b?b._getHostElement().offsetTop:0}_=a==="bottom"?this._parentInnerPadding:-this._parentInnerPadding}}else e.overlapTrigger||(l=a==="top"?"bottom":"top",c=s==="top"?"bottom":"top");i.withPositions([{originX:r,originY:l,overlayX:d,overlayY:a,offsetY:_},{originX:o,originY:l,overlayX:p,overlayY:a,offsetY:_},{originX:r,originY:c,overlayX:d,overlayY:s,offsetY:-_},{originX:o,originY:c,overlayX:p,overlayY:s,offsetY:-_}])}_menuClosingActions(){let e=this._getOutsideClickStream(this._overlayRef),i=this._overlayRef.detachments(),r=this._parentMaterialMenu?this._parentMaterialMenu.closed:Q(),o=this._parentMaterialMenu?this._parentMaterialMenu._hovered().pipe(ce(a=>this._menuOpen&&a!==this._menuItemInstance)):Q();return Je(e,r,o,i)}_getPortal(e){return(!this._portal||this._portal.templateRef!==e.templateRef)&&(this._portal=new Dn(e.templateRef,this._viewContainerRef)),this._portal}_ownsMenu(e){return lp.get(e)===this}static \u0275fac=function(i){Nd()};static \u0275dir=P({type:t})}return t})(),Ls=(()=>{class t extends wfe{_cleanupTouchstart;_hoverSubscription=Te.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 U;onMenuOpen=this.menuOpened;menuClosed=new U;onMenuClose=this.menuClosed;constructor(){super(!0);let e=u(ze);this._cleanupTouchstart=e.listen(this._element.nativeElement,"touchstart",i=>{Xd(i)||(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){Zd(e)||(this._openedBy=e.button===0?"mouse":void 0,this.triggersSubmenu()&&e.preventDefault())}_handleKeydown(e){let i=e.keyCode;(i===13||i===32)&&(this._openedBy="keyboard"),this.triggersSubmenu()&&(i===39&&this.dir==="ltr"||i===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(i){return new(i||t)};static \u0275dir=P({type:t,selectors:[["","mat-menu-trigger-for",""],["","matMenuTriggerFor",""]],hostAttrs:[1,"mat-mdc-menu-trigger"],hostVars:3,hostBindings:function(i,r){i&1&&S("click",function(a){return r._handleClick(a)})("mousedown",function(a){return r._handleMousedown(a)})("keydown",function(a){return r._handleKeydown(a)}),i&2&&X("aria-haspopup",r.menu?"menu":null)("aria-expanded",r.menuOpen)("aria-controls",r.menuOpen?r.menu==null?null:r.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:[le]})}return t})();var Vs=(()=>{class t{static \u0275fac=function(i){return new(i||t)};static \u0275mod=ee({type:t});static \u0275inj=J({providers:[Cfe],imports:[Mo,De,nr,Cr,De]})}return t})(),k8={transformMenu:{type:7,name:"transformMenu",definitions:[{type:0,name:"void",styles:{type:6,styles:{opacity:0,transform:"scale(0.8)"},offset:null}},{type:1,expr:"void => enter",animation:{type:4,styles:{type:6,styles:{opacity:1,transform:"scale(1)"},offset:null},timings:"120ms cubic-bezier(0, 0, 0.2, 1)"},options:null},{type:1,expr:"* => void",animation:{type:4,styles:{type:6,styles:{opacity:0},offset:null},timings:"100ms 25ms linear"},options:null}],options:{}},fadeInItems:{type:7,name:"fadeInItems",definitions:[{type:0,name:"showing",styles:{type:6,styles:{opacity:1},offset:null}},{type:1,expr:"void => *",animation:[{type:6,styles:{opacity:0},offset:null},{type:4,styles:null,timings:"400ms 100ms cubic-bezier(0.55, 0, 0.55, 0.2)"}],options:null}],options:{}}},hct=k8.fadeInItems,pct=k8.transformMenu;function Dfe(t,n){if(t&1&&(m(0,"mat-list-item")(1,"mat-icon",3),g(2,"info"),h(),m(3,"a",4),g(4),h()()),t&2){let e=n.$implicit;f(4),N(e)}}var T8=(()=>{let n=class n{constructor(){this.messages=["Server Error Reports 1","Server Error Reports 2","Server Error Reports 3"]}};n.\u0275fac=function(r){return new(r||n)},n.\u0275cmp=E({type:n,selectors:[["app-notification"]],decls:8,vars:1,consts:[["menu","matMenu"],["matIconButton","",3,"matMenuTriggerFor"],["matBadge","5","matBadgeColor","warn","aria-hidden","false"],["matListItemIcon","",1,"m-x-16"],["matListItemTitle","","href","#"]],template:function(r,o){if(r&1&&(m(0,"button",1)(1,"mat-icon",2),g(2,"notifications"),h()(),m(3,"mat-menu",null,0)(5,"mat-nav-list"),xt(6,Dfe,5,1,"mat-list-item",null,Ui),h()()),r&2){let a=Me(4);v("matMenuTriggerFor",a),f(6),Ct(o.messages)}},dependencies:[C8,x8,Be,Yt,tt,st,ua,M8,da,v_,Ml,Vs,Wr,Ls],styles:["[_nghost-%COMP%] .mat-badge-content{--mat-badge-background-color: #ef0000;--mat-badge-text-color: #fff}"]});let t=n;return t})();var Efe=(t,n)=>n.value;function Mfe(t,n){t&1&&M(0,"mat-pseudo-checkbox",5)}function Sfe(t,n){if(t&1){let e=q();m(0,"button",3),S("click",function(){let r=T(e).$implicit,o=x();return I(o.changeLang(r.value))}),m(1,"span",4),g(2),ue(3,"translate"),V(4,Mfe,1,0,"mat-pseudo-checkbox",5),h()()}if(t&2){let e=n.$implicit,i=x();f(2),pe(" ",Oe(3,2,e.name)," "),f(2),B(e.value===i.options.language?4:-1)}}var I8=(()=>{let n=class n{constructor(){this.settings=u(ca),this.options=this.settings.options,this.langs=[{value:"en-US",name:"en_us"},{value:"zh-CN",name:"zh_cn"},{value:"zh-TW",name:"zh_tw"},{value:"auto",name:"system"}]}changeLang(i){this.settings.setLanguage(i)}};n.\u0275fac=function(r){return new(r||n)},n.\u0275cmp=E({type:n,selectors:[["app-translate"]],decls:7,vars:1,consts:[["menu","matMenu"],["matIconButton","",3,"matMenuTriggerFor"],["mat-menu-item",""],["mat-menu-item","",3,"click"],[1,"d-flex","justify-content-between","gap-8"],["state","checked","appearance","minimal"]],template:function(r,o){if(r&1&&(m(0,"button",1)(1,"mat-icon"),g(2,"translate"),h()(),m(3,"mat-menu",null,0),xt(5,Sfe,5,4,"button",2,Efe),h()),r&2){let a=Me(4);v("matMenuTriggerFor",a),f(5),Ct(o.langs)}},dependencies:[Be,Yt,tt,st,Vs,Wr,Sl,Ls,tu,Mr],encapsulation:2});let t=n;return t})();function kfe(t,n){t&1&&(m(0,"button",8)(1,"mat-icon"),g(2,"account_circle"),h(),m(3,"span"),g(4),ue(5,"translate"),h()(),m(6,"button",9)(7,"mat-icon"),g(8,"edit"),h(),m(9,"span"),g(10),ue(11,"translate"),h()()),t&2&&(f(4),N(Oe(5,2,"profile")),f(6),N(Oe(11,4,"edit_profile")))}function Tfe(t,n){if(t&1){let e=q();m(0,"button",6),S("click",function(){T(e);let r=x();return I(r.logout())}),m(1,"mat-icon"),g(2,"exit_to_app"),h(),m(3,"span"),g(4),ue(5,"translate"),h()()}t&2&&(f(4),N(Oe(5,1,"logout")))}function Ife(t,n){if(t&1){let e=q();m(0,"button",6),S("click",function(){T(e);let r=x();return I(r.login())}),m(1,"mat-icon"),g(2,"login"),h(),m(3,"span"),g(4),ue(5,"translate"),h()()}t&2&&(f(4),N(Oe(5,1,"login")))}var A8=(()=>{let n=class n{constructor(){this.oidcAuth=u(Ot),this.router=u(Re),this.settings=u(ca),this.userName="Guest",this.userEmail="",this.userRoles="Anonymous User"}ngOnInit(){this.updateUserInfo(),this.authSubscription=this.oidcAuth.isAuthenticated$.subscribe(()=>{this.updateUserInfo()})}ngOnDestroy(){this.authSubscription?.unsubscribe()}updateUserInfo(){if(!this.oidcAuth.isAuthenticated()){this.userName="Guest",this.userEmail="",this.userRoles="Anonymous User";return}let i=this.oidcAuth.getUserInfo();console.log("UserButton: User info:",i),console.log("UserButton: Available claims:",i?Object.keys(i):"null"),this.userName=i?.name||i?.preferred_username||i?.given_name||i?.["http://schemas.xmlsoap.org/ws/2005/05/identity/claims/name"]||i?.sub||"User",this.userEmail=i?.email||i?.["http://schemas.xmlsoap.org/ws/2005/05/identity/claims/emailaddress"]||"";let r=this.oidcAuth.getUserRoles();this.userRoles=r.length>0?r.join(", "):"No roles",console.log("UserButton: Set userName to:",this.userName,"email to:",this.userEmail,"roles:",this.userRoles)}isAuthenticated(){return this.oidcAuth.isAuthenticated()}login(){this.oidcAuth.login()}logout(){this.oidcAuth.logout(),this.router.navigateByUrl("/dashboard")}restore(){this.settings.reset(),window.location.reload()}};n.\u0275fac=function(r){return new(r||n)},n.\u0275cmp=E({type:n,selectors:[["app-user"]],decls:22,vars:9,consts:[["menu","matMenu"],["matIconButton","",1,"user-button",3,"matMenuTriggerFor"],[1,"user-info"],[1,"user-name"],[1,"user-email"],[1,"user-roles"],["mat-menu-item","",3,"click"],["mat-menu-item",""],["routerLink","/profile/overview","mat-menu-item",""],["routerLink","/profile/settings","mat-menu-item",""]],template:function(r,o){if(r&1){let a=q();m(0,"button",1)(1,"mat-icon"),g(2,"account_circle"),h()(),m(3,"mat-menu",null,0)(5,"div",2)(6,"div",3),g(7),h(),m(8,"div",4),g(9),h(),m(10,"div",5),g(11),h()(),M(12,"mat-divider"),V(13,kfe,12,6),m(14,"button",6),S("click",function(){return T(a),I(o.restore())}),m(15,"mat-icon"),g(16,"restore"),h(),m(17,"span"),g(18),ue(19,"translate"),h()(),V(20,Tfe,6,3,"button",7)(21,Ife,6,3,"button",7),h()}if(r&2){let a=Me(4);v("matMenuTriggerFor",a),f(7),N(o.userName),f(2),N(o.userEmail),f(2),N(o.userRoles),f(2),B(o.isAuthenticated()?13:-1),f(5),N(Oe(19,7,"restore_defaults")),f(2),B(o.isAuthenticated()?20:21)}},dependencies:[ut,Vn,Be,Yt,tt,st,Vs,Wr,Sl,Ls,ho,Po,Sr,Mr],styles:["[_nghost-%COMP%]{display:inline-block}.user-button[_ngcontent-%COMP%]{display:inline-flex!important}.user-info[_ngcontent-%COMP%]{padding:16px;max-width:250px}.user-info[_ngcontent-%COMP%] .user-name[_ngcontent-%COMP%]{font-weight:500;font-size:14px;margin-bottom:4px}.user-info[_ngcontent-%COMP%] .user-email[_ngcontent-%COMP%]{font-size:12px;color:#0009;margin-bottom:4px}.user-info[_ngcontent-%COMP%] .user-roles[_ngcontent-%COMP%]{font-size:11px;color:#00000080;font-style:italic}"]});let t=n;return t})();function Afe(t,n){if(t&1){let e=q();m(0,"button",4),S("click",function(){T(e);let r=x();return I(r.toggleSidenav.emit())}),m(1,"mat-icon"),g(2,"menu"),h()()}}function Ofe(t,n){t&1&&M(0,"app-branding")}var O8=(()=>{let n=class n{constructor(){this.showToggle=re(!0),this.showBranding=re(!1),this.toggleSidenav=yi(),this.toggleSidenavNotice=yi()}toggleFullscreen(){OI.isEnabled&&OI.toggle()}};n.\u0275fac=function(r){return new(r||n)},n.\u0275cmp=E({type:n,selectors:[["app-header"]],hostAttrs:[1,"matero-header"],inputs:{showToggle:[1,"showToggle"],showBranding:[1,"showBranding"]},outputs:{toggleSidenav:"toggleSidenav",toggleSidenavNotice:"toggleSidenavNotice"},decls:17,vars:2,consts:[["matIconButton",""],[1,"flex-fill"],["matIconButton","",1,"hide-small",3,"click"],[1,"hide-small"],["matIconButton","",3,"click"]],template:function(r,o){r&1&&(m(0,"mat-toolbar"),V(1,Afe,3,0,"button",0),V(2,Ofe,1,0,"app-branding"),M(3,"span",1)(4,"app-github-button"),m(5,"button",0)(6,"mat-icon"),g(7,"search"),h()(),M(8,"app-translate"),m(9,"button",2),S("click",function(){return o.toggleFullscreen()}),m(10,"mat-icon"),g(11,"fullscreen"),h()(),M(12,"app-notification",3)(13,"app-user"),m(14,"button",2),S("click",function(){return o.toggleSidenavNotice.emit()}),m(15,"mat-icon"),g(16,"list"),h()()()),r&2&&(f(),B(o.showToggle()?1:-1),f(),B(o.showBranding()?2:-1))},dependencies:[iw,tw,Be,Yt,tt,st,nw,v8,T8,I8,A8],styles:[`.matero-header{--mat-toolbar-container-background-color: transparent;position:relative;z-index:200;display:block;background-color:var(--header-background-color);-webkit-backdrop-filter:blur(8px);backdrop-filter:blur(8px)} -`],encapsulation:2});let t=n;return t})();var cp=["*"];function Rfe(t,n){t&1&&ne(0)}var N8=["tabListContainer"],L8=["tabList"],V8=["tabListInner"],B8=["nextPaginator"],j8=["previousPaginator"],Pfe=["content"];function Ffe(t,n){}var Nfe=["tabBodyWrapper"],Lfe=["tabHeader"];function Vfe(t,n){}function Bfe(t,n){if(t&1&&A(0,Vfe,0,0,"ng-template",12),t&2){let e=x().$implicit;v("cdkPortalOutlet",e.templateLabel)}}function jfe(t,n){if(t&1&&g(0),t&2){let e=x().$implicit;N(e.textLabel)}}function Hfe(t,n){if(t&1){let e=q();m(0,"div",7,2),S("click",function(){let r=T(e),o=r.$implicit,a=r.$index,s=x(),l=Me(1);return I(s._handleClick(o,l,a))})("cdkFocusChange",function(r){let o=T(e).$index,a=x();return I(a._tabFocusChanged(r,o))}),M(2,"span",8)(3,"div",9),m(4,"span",10)(5,"span",11),V(6,Bfe,1,1,null,12)(7,jfe,1,1),h()()()}if(t&2){let e=n.$implicit,i=n.$index,r=Me(1),o=x();nt(e.labelClass),G("mdc-tab--active",o.selectedIndex===i),v("id",o._getTabLabelId(e,i))("disabled",e.disabled)("fitInkBarToContent",o.fitInkBarToContent),X("tabIndex",o._getTabIndex(i))("aria-posinset",i+1)("aria-setsize",o._tabs.length)("aria-controls",o._getTabContentId(i))("aria-selected",o.selectedIndex===i)("aria-label",e.ariaLabel||null)("aria-labelledby",!e.ariaLabel&&e.ariaLabelledby?e.ariaLabelledby:null),f(3),v("matRippleTrigger",r)("matRippleDisabled",e.disabled||o.disableRipple),f(3),B(e.templateLabel?6:7)}}function zfe(t,n){t&1&&ne(0)}function Ufe(t,n){if(t&1){let e=q();m(0,"mat-tab-body",13),S("_onCentered",function(){T(e);let r=x();return I(r._removeTabBodyWrapperHeight())})("_onCentering",function(r){T(e);let o=x();return I(o._setTabBodyWrapperHeight(r))})("_beforeCentering",function(r){T(e);let o=x();return I(o._bodyCentered(r))}),h()}if(t&2){let e=n.$implicit,i=n.$index,r=x();nt(e.bodyClass),v("id",r._getTabContentId(i))("content",e.content)("position",e.position)("animationDuration",r.animationDuration)("preserveContent",r.preserveContent),X("tabindex",r.contentTabIndex!=null&&r.selectedIndex===i?r.contentTabIndex:null)("aria-labelledby",r._getTabLabelId(e,i))("aria-hidden",r.selectedIndex!==i)}}var $fe=["mat-tab-nav-bar",""],Wfe=["mat-tab-link",""],Gfe=new O("MatTabContent"),qfe=(()=>{class t{template=u(te);constructor(){}static \u0275fac=function(i){return new(i||t)};static \u0275dir=P({type:t,selectors:[["","matTabContent",""]],features:[Ce([{provide:Gfe,useExisting:t}])]})}return t})(),Yfe=new O("MatTabLabel"),H8=new O("MAT_TAB"),BI=(()=>{class t extends rB{_closestTab=u(H8,{optional:!0});static \u0275fac=(()=>{let e;return function(r){return(e||(e=ge(t)))(r||t)}})();static \u0275dir=P({type:t,selectors:[["","mat-tab-label",""],["","matTabLabel",""]],features:[Ce([{provide:Yfe,useExisting:t}]),le]})}return t})(),z8=new O("MAT_TAB_GROUP"),Fu=(()=>{class t{_viewContainerRef=u(ot);_closestTabGroup=u(z8,{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 z;position=null;origin=null;isActive=!1;constructor(){u(ht).load(ki)}ngOnChanges(e){(e.hasOwnProperty("textLabel")||e.hasOwnProperty("disabled"))&&this._stateChanges.next()}ngOnDestroy(){this._stateChanges.complete()}ngOnInit(){this._contentPortal=new Dn(this._explicitContent||this._implicitContent,this._viewContainerRef)}_setTemplateLabelInput(e){e&&e._closestTab===this&&(this._templateLabel=e)}static \u0275fac=function(i){return new(i||t)};static \u0275cmp=E({type:t,selectors:[["mat-tab"]],contentQueries:function(i,r,o){if(i&1&&(xe(o,BI,5),xe(o,qfe,7,te)),i&2){let a;j(a=H())&&(r.templateLabel=a.first),j(a=H())&&(r._explicitContent=a.first)}},viewQuery:function(i,r){if(i&1&&ie(te,7),i&2){let o;j(o=H())&&(r._implicitContent=o.first)}},hostAttrs:["hidden",""],hostVars:1,hostBindings:function(i,r){i&2&&X("id",null)},inputs:{disabled:[2,"disabled","disabled",L],textLabel:[0,"label","textLabel"],ariaLabel:[0,"aria-label","ariaLabel"],ariaLabelledby:[0,"aria-labelledby","ariaLabelledby"],labelClass:"labelClass",bodyClass:"bodyClass",id:"id"},exportAs:["matTab"],features:[Ce([{provide:H8,useExisting:t}]),Ae],ngContentSelectors:cp,decls:1,vars:0,template:function(i,r){i&1&&(Se(),wa(0,Rfe,1,0,"ng-template"))},encapsulation:2})}return t})(),NI="mdc-tab-indicator--active",R8="mdc-tab-indicator--no-transition",ow=class{_items;_currentItem;constructor(n){this._items=n}hide(){this._items.forEach(n=>n.deactivateInkBar()),this._currentItem=void 0}alignToElement(n){let e=this._items.find(r=>r.elementRef.nativeElement===n),i=this._currentItem;if(e!==i&&(i?.deactivateInkBar(),e)){let r=i?.elementRef.nativeElement.getBoundingClientRect?.();e.activateInkBar(r),this._currentItem=e}}},U8=(()=>{class t{_elementRef=u(Y);_inkBarElement;_inkBarContentElement;_fitToContent=!1;get fitInkBarToContent(){return this._fitToContent}set fitInkBarToContent(e){this._fitToContent!==e&&(this._fitToContent=e,this._inkBarElement&&this._appendInkBarElement())}activateInkBar(e){let i=this._elementRef.nativeElement;if(!e||!i.getBoundingClientRect||!this._inkBarContentElement){i.classList.add(NI);return}let r=i.getBoundingClientRect(),o=e.width/r.width,a=e.left-r.left;i.classList.add(R8),this._inkBarContentElement.style.setProperty("transform",`translateX(${a}px) scaleX(${o})`),i.getBoundingClientRect(),i.classList.remove(R8),i.classList.add(NI),this._inkBarContentElement.style.setProperty("transform","")}deactivateInkBar(){this._elementRef.nativeElement.classList.remove(NI)}ngOnInit(){this._createInkBarElement()}ngOnDestroy(){this._inkBarElement?.remove(),this._inkBarElement=this._inkBarContentElement=null}_createInkBarElement(){let e=this._elementRef.nativeElement.ownerDocument||document,i=this._inkBarElement=e.createElement("span"),r=this._inkBarContentElement=e.createElement("span");i.className="mdc-tab-indicator",r.className="mdc-tab-indicator__content mdc-tab-indicator__content--underline",i.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(i){return new(i||t)};static \u0275dir=P({type:t,inputs:{fitInkBarToContent:[2,"fitInkBarToContent","fitInkBarToContent",L]}})}return t})();var $8=(()=>{class t extends U8{elementRef=u(Y);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(r){return(e||(e=ge(t)))(r||t)}})();static \u0275dir=P({type:t,selectors:[["","matTabLabelWrapper",""]],hostVars:3,hostBindings:function(i,r){i&2&&(X("aria-disabled",!!r.disabled),G("mat-mdc-tab-disabled",r.disabled))},inputs:{disabled:[2,"disabled","disabled",L]},features:[le]})}return t})(),P8={passive:!0},Qfe=650,Kfe=100,W8=(()=>{class t{_elementRef=u(Y);_changeDetectorRef=u(ye);_viewportRuler=u(tr);_dir=u(Bt,{optional:!0});_ngZone=u(ae);_platform=u(qe);_sharedResizeObserver=u(Zy);_injector=u(de);_renderer=u(ze);_animationsDisabled=Ye();_eventCleanups;_scrollDistance=0;_selectedIndexChanged=!1;_destroyed=new z;_showPaginationControls=!1;_disableScrollAfter=!0;_disableScrollBefore=!0;_tabLabelCount;_scrollDistanceChanged;_keyManager;_currentTextContent;_stopScrolling=new z;disablePagination=!1;get selectedIndex(){return this._selectedIndex}set selectedIndex(e){let i=isNaN(e)?0:e;this._selectedIndex!=i&&(this._selectedIndexChanged=!0,this._selectedIndex=i,this._keyManager&&this._keyManager.updateActiveItem(i))}_selectedIndex=0;selectFocusedIndex=new U;indexFocused=new U;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"),P8),this._renderer.listen(this._nextPaginator.nativeElement,"touchstart",()=>this._handlePaginatorPress("after"),P8))}ngAfterContentInit(){let e=this._dir?this._dir.change:Q("ltr"),i=this._sharedResizeObserver.observe(this._elementRef.nativeElement).pipe(St(32),we(this._destroyed)),r=this._viewportRuler.change(150).pipe(we(this._destroyed)),o=()=>{this.updatePagination(),this._alignInkBarToSelectedTab()};this._keyManager=new vs(this._items).withHorizontalOrientation(this._getLayoutDirection()).withHomeAndEnd().withWrap().skipPredicate(()=>!1),this._keyManager.updateActiveItem(Math.max(this._selectedIndex,0)),gt(o,{injector:this._injector}),Je(e,r,i,this._items.changes,this._itemsResized()).pipe(we(this._destroyed)).subscribe(()=>{this._ngZone.run(()=>{Promise.resolve().then(()=>{this._scrollDistance=Math.max(0,Math.min(this._getMaxScrollDistance(),this._scrollDistance)),o()})}),this._keyManager?.withHorizontalOrientation(this._getLayoutDirection())}),this._keyManager.change.subscribe(a=>{this.indexFocused.emit(a),this._setTabFocus(a)})}_itemsResized(){return typeof ResizeObserver!="function"?Vi:this._items.changes.pipe(Ue(this._items),je(e=>new Fe(i=>this._ngZone.runOutsideAngular(()=>{let r=new ResizeObserver(o=>i.next(o));return e.forEach(o=>r.observe(o.elementRef.nativeElement)),()=>{r.disconnect()}}))),Qa(1),ce(e=>e.some(i=>i.contentRect.width>0&&i.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(!Lt(e))switch(e.keyCode){case 13:case 32:if(this.focusIndex!==this.selectedIndex){let i=this._items.get(this.focusIndex);i&&!i.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 i=this._tabListContainer.nativeElement;this._getLayoutDirection()=="ltr"?i.scrollLeft=0:i.scrollLeft=i.scrollWidth-i.offsetWidth}}_getLayoutDirection(){return this._dir&&this._dir.value==="rtl"?"rtl":"ltr"}_updateTabScrollPosition(){if(this.disablePagination)return;let e=this.scrollDistance,i=this._getLayoutDirection()==="ltr"?-e:e;this._tabList.nativeElement.style.transform=`translateX(${Math.round(i)}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 i=this._tabListContainer.nativeElement.offsetWidth,r=(e=="before"?-1:1)*i/3;return this._scrollTo(this._scrollDistance+r)}_handlePaginatorClick(e){this._stopInterval(),this._scrollHeader(e)}_scrollToLabel(e){if(this.disablePagination)return;let i=this._items?this._items.toArray()[e]:null;if(!i)return;let r=this._tabListContainer.nativeElement.offsetWidth,{offsetLeft:o,offsetWidth:a}=i.elementRef.nativeElement,s,l;this._getLayoutDirection()=="ltr"?(s=o,l=s+a):(l=this._tabListInner.nativeElement.offsetWidth-o,s=l-a);let c=this.scrollDistance,d=this.scrollDistance+r;sd&&(this.scrollDistance+=Math.min(l-d,s-c))}_checkPaginationEnabled(){if(this.disablePagination)this._showPaginationControls=!1;else{let e=this._tabListInner.nativeElement.scrollWidth,i=this._elementRef.nativeElement.offsetWidth,r=e-i>=5;r||(this.scrollDistance=0),r!==this._showPaginationControls&&(this._showPaginationControls=r,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,i=this._tabListContainer.nativeElement.offsetWidth;return e-i||0}_alignInkBarToSelectedTab(){let e=this._items&&this._items.length?this._items.toArray()[this.selectedIndex]:null,i=e?e.elementRef.nativeElement:null;i?this._inkBar.alignToElement(i):this._inkBar.hide()}_stopInterval(){this._stopScrolling.next()}_handlePaginatorPress(e,i){i&&i.button!=null&&i.button!==0||(this._stopInterval(),Ya(Qfe,Kfe).pipe(we(Je(this._stopScrolling,this._destroyed))).subscribe(()=>{let{maxScrollDistance:r,distance:o}=this._scrollHeader(e);(o===0||o>=r)&&this._stopInterval()}))}_scrollTo(e){if(this.disablePagination)return{maxScrollDistance:0,distance:0};let i=this._getMaxScrollDistance();return this._scrollDistance=Math.max(0,Math.min(i,e)),this._scrollDistanceChanged=!0,this._checkScrollingControls(),{maxScrollDistance:i,distance:this._scrollDistance}}static \u0275fac=function(i){return new(i||t)};static \u0275dir=P({type:t,inputs:{disablePagination:[2,"disablePagination","disablePagination",L],selectedIndex:[2,"selectedIndex","selectedIndex",dt]},outputs:{selectFocusedIndex:"selectFocusedIndex",indexFocused:"indexFocused"}})}return t})(),Zfe=(()=>{class t extends W8{_items;_tabListContainer;_tabList;_tabListInner;_nextPaginator;_previousPaginator;_inkBar;ariaLabel;ariaLabelledby;disableRipple=!1;ngAfterContentInit(){this._inkBar=new ow(this._items),super.ngAfterContentInit()}_itemSelected(e){e.preventDefault()}static \u0275fac=(()=>{let e;return function(r){return(e||(e=ge(t)))(r||t)}})();static \u0275cmp=E({type:t,selectors:[["mat-tab-header"]],contentQueries:function(i,r,o){if(i&1&&xe(o,$8,4),i&2){let a;j(a=H())&&(r._items=a)}},viewQuery:function(i,r){if(i&1&&(ie(N8,7),ie(L8,7),ie(V8,7),ie(B8,5),ie(j8,5)),i&2){let o;j(o=H())&&(r._tabListContainer=o.first),j(o=H())&&(r._tabList=o.first),j(o=H())&&(r._tabListInner=o.first),j(o=H())&&(r._nextPaginator=o.first),j(o=H())&&(r._previousPaginator=o.first)}},hostAttrs:[1,"mat-mdc-tab-header"],hostVars:4,hostBindings:function(i,r){i&2&&G("mat-mdc-tab-header-pagination-controls-enabled",r._showPaginationControls)("mat-mdc-tab-header-rtl",r._getLayoutDirection()=="rtl")},inputs:{ariaLabel:[0,"aria-label","ariaLabel"],ariaLabelledby:[0,"aria-labelledby","ariaLabelledby"],disableRipple:[2,"disableRipple","disableRipple",L]},features:[le],ngContentSelectors:cp,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(i,r){if(i&1){let o=q();Se(),m(0,"div",5,0),S("click",function(){return T(o),I(r._handlePaginatorClick("before"))})("mousedown",function(s){return T(o),I(r._handlePaginatorPress("before",s))})("touchend",function(){return T(o),I(r._stopInterval())}),M(2,"div",6),h(),m(3,"div",7,1),S("keydown",function(s){return T(o),I(r._handleKeydown(s))}),m(5,"div",8,2),S("cdkObserveContent",function(){return T(o),I(r._onContentChanges())}),m(7,"div",9,3),ne(9),h()()(),m(10,"div",10,4),S("mousedown",function(s){return T(o),I(r._handlePaginatorPress("after",s))})("click",function(){return T(o),I(r._handlePaginatorClick("after"))})("touchend",function(){return T(o),I(r._stopInterval())}),M(12,"div",6),h()}i&2&&(G("mat-mdc-tab-header-pagination-disabled",r._disableScrollBefore),v("matRippleDisabled",r._disableScrollBefore||r.disableRipple),f(3),G("_mat-animation-noopable",r._animationsDisabled),f(2),X("aria-label",r.ariaLabel||null)("aria-labelledby",r.ariaLabelledby||null),f(5),G("mat-mdc-tab-header-pagination-disabled",r._disableScrollAfter),v("matRippleDisabled",r._disableScrollAfter||r.disableRipple))},dependencies:[jn,Kf],styles:[`.mat-mdc-tab-header{display:flex;overflow:hidden;position:relative;flex-shrink:0}.mdc-tab-indicator .mdc-tab-indicator__content{transition-duration:var(--mat-tab-animation-duration, 250ms)}.mat-mdc-tab-header-pagination{-webkit-user-select:none;user-select:none;position:relative;display:none;justify-content:center;align-items:center;min-width:32px;cursor:pointer;z-index:2;-webkit-tap-highlight-color:rgba(0,0,0,0);touch-action:none;box-sizing:content-box;outline:0}.mat-mdc-tab-header-pagination::-moz-focus-inner{border:0}.mat-mdc-tab-header-pagination .mat-ripple-element{opacity:.12;background-color:var(--mat-tab-inactive-ripple-color, var(--mat-sys-on-surface))}.mat-mdc-tab-header-pagination-controls-enabled .mat-mdc-tab-header-pagination{display:flex}.mat-mdc-tab-header-pagination-before,.mat-mdc-tab-header-rtl .mat-mdc-tab-header-pagination-after{padding-left:4px}.mat-mdc-tab-header-pagination-before .mat-mdc-tab-header-pagination-chevron,.mat-mdc-tab-header-rtl .mat-mdc-tab-header-pagination-after .mat-mdc-tab-header-pagination-chevron{transform:rotate(-135deg)}.mat-mdc-tab-header-rtl .mat-mdc-tab-header-pagination-before,.mat-mdc-tab-header-pagination-after{padding-right:4px}.mat-mdc-tab-header-rtl .mat-mdc-tab-header-pagination-before .mat-mdc-tab-header-pagination-chevron,.mat-mdc-tab-header-pagination-after .mat-mdc-tab-header-pagination-chevron{transform:rotate(45deg)}.mat-mdc-tab-header-pagination-chevron{border-style:solid;border-width:2px 2px 0 0;height:8px;width:8px;border-color:var(--mat-tab-pagination-icon-color, var(--mat-sys-on-surface))}.mat-mdc-tab-header-pagination-disabled{box-shadow:none;cursor:default;pointer-events:none}.mat-mdc-tab-header-pagination-disabled .mat-mdc-tab-header-pagination-chevron{opacity:.4}.mat-mdc-tab-list{flex-grow:1;position:relative;transition:transform 500ms cubic-bezier(0.35, 0, 0.25, 1)}._mat-animation-noopable .mat-mdc-tab-list{transition:none}.mat-mdc-tab-label-container{display:flex;flex-grow:1;overflow:hidden;z-index:1;border-bottom-style:solid;border-bottom-width:var(--mat-tab-divider-height, 1px);border-bottom-color:var(--mat-tab-divider-color, var(--mat-sys-surface-variant))}.mat-mdc-tab-group-inverted-header .mat-mdc-tab-label-container{border-bottom:none;border-top-style:solid;border-top-width:var(--mat-tab-divider-height, 1px);border-top-color:var(--mat-tab-divider-color, var(--mat-sys-surface-variant))}.mat-mdc-tab-labels{display:flex;flex:1 0 auto}[mat-align-tabs=center]>.mat-mdc-tab-header .mat-mdc-tab-labels{justify-content:center}[mat-align-tabs=end]>.mat-mdc-tab-header .mat-mdc-tab-labels{justify-content:flex-end}.cdk-drop-list .mat-mdc-tab-labels,.mat-mdc-tab-labels.cdk-drop-list{min-height:var(--mat-tab-container-height, 48px)}.mat-mdc-tab::before{margin:5px}@media(forced-colors: active){.mat-mdc-tab[aria-disabled=true]{color:GrayText}} -`],encapsulation:2})}return t})(),G8=new O("MAT_TABS_CONFIG"),F8=(()=>{class t extends wr{_host=u(LI);_ngZone=u(ae);_centeringSub=Te.EMPTY;_leavingSub=Te.EMPTY;constructor(){super()}ngOnInit(){super.ngOnInit(),this._centeringSub=this._host._beforeCentering.pipe(Ue(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(i){return new(i||t)};static \u0275dir=P({type:t,selectors:[["","matTabBodyHost",""]],features:[le]})}return t})(),LI=(()=>{class t{_elementRef=u(Y);_dir=u(Bt,{optional:!0});_ngZone=u(ae);_injector=u(de);_renderer=u(ze);_diAnimationsDisabled=Ye();_eventCleanups;_initialized;_fallbackTimer;_positionIndex;_dirChangeSubscription=Te.EMPTY;_position;_previousPosition;_onCentering=new U;_beforeCentering=new U;_afterLeavingCenter=new U;_onCentered=new U(!0);_portalHost;_contentElement;_content;animationDuration="500ms";preserveContent=!1;set position(e){this._positionIndex=e,this._computePositionAnimationState()}constructor(){if(this._dir){let e=u(ye);this._dirChangeSubscription=this._dir.change.subscribe(i=>{this._computePositionAnimationState(i),e.markForCheck()})}}ngOnInit(){this._bindTransitionEvents(),this._position==="center"&&(this._setActiveClass(!0),gt(()=>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,i=r=>{r.target===this._contentElement?.nativeElement&&(this._elementRef.nativeElement.classList.remove("mat-tab-body-animating"),r.type==="transitionend"&&this._transitionDone())};this._eventCleanups=[this._renderer.listen(e,"transitionstart",r=>{r.target===this._contentElement?.nativeElement&&(this._elementRef.nativeElement.classList.add("mat-tab-body-animating"),this._transitionStarted())}),this._renderer.listen(e,"transitionend",i),this._renderer.listen(e,"transitioncancel",i)]})}_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(),gt(()=>this._transitionDone(),{injector:this._injector})}_animationsDisabled(){return this._diAnimationsDisabled||this.animationDuration==="0ms"||this.animationDuration==="0s"}static \u0275fac=function(i){return new(i||t)};static \u0275cmp=E({type:t,selectors:[["mat-tab-body"]],viewQuery:function(i,r){if(i&1&&(ie(F8,5),ie(Pfe,5)),i&2){let o;j(o=H())&&(r._portalHost=o.first),j(o=H())&&(r._contentElement=o.first)}},hostAttrs:[1,"mat-mdc-tab-body"],hostVars:1,hostBindings:function(i,r){i&2&&X("inert",r._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(i,r){i&1&&(m(0,"div",1,0),A(2,Ffe,0,0,"ng-template",2),h()),i&2&&G("mat-tab-body-content-left",r._position==="left")("mat-tab-body-content-right",r._position==="right")("mat-tab-body-content-can-animate",r._position==="center"||r._previousPosition==="center")},dependencies:[F8,Fa],styles:[`.mat-mdc-tab-body{top:0;left:0;right:0;bottom:0;position:absolute;display:block;overflow:hidden;outline:0;flex-basis:100%}.mat-mdc-tab-body.mat-mdc-tab-body-active{position:relative;overflow-x:hidden;overflow-y:auto;z-index:1;flex-grow:1}.mat-mdc-tab-group.mat-mdc-tab-group-dynamic-height .mat-mdc-tab-body.mat-mdc-tab-body-active{overflow-y:hidden}.mat-mdc-tab-body-content{height:100%;overflow:auto;transform:none;visibility:hidden}.mat-tab-body-animating>.mat-mdc-tab-body-content,.mat-mdc-tab-body-active>.mat-mdc-tab-body-content{visibility:visible}.mat-tab-body-animating>.mat-mdc-tab-body-content{min-height:1px}.mat-mdc-tab-group-dynamic-height .mat-mdc-tab-body-content{overflow:hidden}.mat-tab-body-content-can-animate{transition:transform var(--mat-tab-animation-duration) 1ms cubic-bezier(0.35, 0, 0.25, 1)}.mat-mdc-tab-body-wrapper._mat-animation-noopable .mat-tab-body-content-can-animate{transition:none}.mat-tab-body-content-left{transform:translate3d(-100%, 0, 0)}.mat-tab-body-content-right{transform:translate3d(100%, 0, 0)} -`],encapsulation:2})}return t})(),dp=(()=>{class t{_elementRef=u(Y);_changeDetectorRef=u(ye);_ngZone=u(ae);_tabsSubscription=Te.EMPTY;_tabLabelSubscription=Te.EMPTY;_tabBodySubscription=Te.EMPTY;_diAnimationsDisabled=Ye();_allTabs;_tabBodies;_tabBodyWrapper;_tabHeader;_tabs=new gr;_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 i=e+"";this._animationDuration=/^\d+$/.test(i)?e+"ms":i}_animationDuration;get contentTabIndex(){return this._contentTabIndex}set contentTabIndex(e){this._contentTabIndex=isNaN(e)?null:e}_contentTabIndex;disablePagination=!1;disableRipple=!1;preserveContent=!1;get backgroundColor(){return this._backgroundColor}set backgroundColor(e){let i=this._elementRef.nativeElement.classList;i.remove("mat-tabs-with-background",`mat-background-${this.backgroundColor}`),e&&i.add("mat-tabs-with-background",`mat-background-${e}`),this._backgroundColor=e}_backgroundColor;ariaLabel;ariaLabelledby;selectedIndexChange=new U;focusChange=new U;animationDone=new U;selectedTabChange=new U(!0);_groupId;_isServer=!u(qe).isBrowser;constructor(){let e=u(G8,{optional:!0});this._groupId=u(Ze).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 i=this._selectedIndex==null;if(!i){this.selectedTabChange.emit(this._createChangeEvent(e));let r=this._tabBodyWrapper.nativeElement;r.style.minHeight=r.clientHeight+"px"}Promise.resolve().then(()=>{this._tabs.forEach((r,o)=>r.isActive=o===e),i||(this.selectedIndexChange.emit(e),this._tabBodyWrapper.nativeElement.style.minHeight="")})}this._tabs.forEach((i,r)=>{i.position=r-e,this._selectedIndex!=null&&i.position==0&&!i.origin&&(i.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 i=this._tabs.toArray(),r;for(let o=0;o{i[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(Ue(this._allTabs)).subscribe(e=>{this._tabs.reset(e.filter(i=>i._closestTabGroup===this||!i._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 i=this._tabHeader;i&&(i.focusIndex=e)}_focusChanged(e){this._lastFocusedTabIndex=e,this.focusChange.emit(this._createChangeEvent(e))}_createChangeEvent(e){let i=new VI;return i.index=e,this._tabs&&this._tabs.length&&(i.tab=this._tabs.toArray()[e]),i}_subscribeToTabLabels(){this._tabLabelSubscription&&this._tabLabelSubscription.unsubscribe(),this._tabLabelSubscription=Je(...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,i){return e.id||`${this._groupId}-label-${i}`}_getTabContentId(e){return`${this._groupId}-content-${e}`}_setTabBodyWrapperHeight(e){if(!this.dynamicHeight||!this._tabBodyWrapperHeight){this._tabBodyWrapperHeight=e;return}let i=this._tabBodyWrapper.nativeElement;i.style.height=this._tabBodyWrapperHeight+"px",this._tabBodyWrapper.nativeElement.offsetHeight&&(i.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,i,r){i.focusIndex=r,e.disabled||(this.selectedIndex=r)}_getTabIndex(e){let i=this._lastFocusedTabIndex??this.selectedIndex;return e===i?0:-1}_tabFocusChanged(e,i){e&&e!=="mouse"&&e!=="touch"&&(this._tabHeader.focusIndex=i)}_bodyCentered(e){e&&this._tabBodies?.forEach((i,r)=>i._setActiveClass(r===this._selectedIndex))}_animationsDisabled(){return this._diAnimationsDisabled||this.animationDuration==="0"||this.animationDuration==="0ms"}static \u0275fac=function(i){return new(i||t)};static \u0275cmp=E({type:t,selectors:[["mat-tab-group"]],contentQueries:function(i,r,o){if(i&1&&xe(o,Fu,5),i&2){let a;j(a=H())&&(r._allTabs=a)}},viewQuery:function(i,r){if(i&1&&(ie(Nfe,5),ie(Lfe,5),ie(LI,5)),i&2){let o;j(o=H())&&(r._tabBodyWrapper=o.first),j(o=H())&&(r._tabHeader=o.first),j(o=H())&&(r._tabBodies=o)}},hostAttrs:[1,"mat-mdc-tab-group"],hostVars:11,hostBindings:function(i,r){i&2&&(X("mat-align-tabs",r.alignTabs),nt("mat-"+(r.color||"primary")),Et("--mat-tab-animation-duration",r.animationDuration),G("mat-mdc-tab-group-dynamic-height",r.dynamicHeight)("mat-mdc-tab-group-inverted-header",r.headerPosition==="below")("mat-mdc-tab-group-stretch-tabs",r.stretchTabs))},inputs:{color:"color",fitInkBarToContent:[2,"fitInkBarToContent","fitInkBarToContent",L],stretchTabs:[2,"mat-stretch-tabs","stretchTabs",L],alignTabs:[0,"mat-align-tabs","alignTabs"],dynamicHeight:[2,"dynamicHeight","dynamicHeight",L],selectedIndex:[2,"selectedIndex","selectedIndex",dt],headerPosition:"headerPosition",animationDuration:"animationDuration",contentTabIndex:[2,"contentTabIndex","contentTabIndex",dt],disablePagination:[2,"disablePagination","disablePagination",L],disableRipple:[2,"disableRipple","disableRipple",L],preserveContent:[2,"preserveContent","preserveContent",L],backgroundColor:"backgroundColor",ariaLabel:[0,"aria-label","ariaLabel"],ariaLabelledby:[0,"aria-labelledby","ariaLabelledby"]},outputs:{selectedIndexChange:"selectedIndexChange",focusChange:"focusChange",animationDone:"animationDone",selectedTabChange:"selectedTabChange"},exportAs:["matTabGroup"],features:[Ce([{provide:z8,useExisting:t}])],ngContentSelectors:cp,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(i,r){if(i&1){let o=q();Se(),m(0,"mat-tab-header",3,0),S("indexFocused",function(s){return T(o),I(r._focusChanged(s))})("selectFocusedIndex",function(s){return T(o),I(r.selectedIndex=s)}),xt(2,Hfe,8,17,"div",4,Mm),h(),V(4,zfe,1,0),m(5,"div",5,1),xt(7,Ufe,1,10,"mat-tab-body",6,Mm),h()}i&2&&(v("selectedIndex",r.selectedIndex||0)("disableRipple",r.disableRipple)("disablePagination",r.disablePagination),Xl("aria-label",r.ariaLabel)("aria-labelledby",r.ariaLabelledby),f(2),Ct(r._tabs),f(2),B(r._isServer?4:-1),f(),G("_mat-animation-noopable",r._animationsDisabled()),f(2),Ct(r._tabs))},dependencies:[Zfe,$8,Qf,jn,wr,LI],styles:[`.mdc-tab{min-width:90px;padding:0 24px;display:flex;flex:1 0 auto;justify-content:center;box-sizing:border-box;border:none;outline:none;text-align:center;white-space:nowrap;cursor:pointer;z-index:1;touch-action:manipulation}.mdc-tab__content{display:flex;align-items:center;justify-content:center;height:inherit;pointer-events:none}.mdc-tab__text-label{transition:150ms color linear;display:inline-block;line-height:1;z-index:2}.mdc-tab--active .mdc-tab__text-label{transition-delay:100ms}._mat-animation-noopable .mdc-tab__text-label{transition:none}.mdc-tab-indicator{display:flex;position:absolute;top:0;left:0;justify-content:center;width:100%;height:100%;pointer-events:none;z-index:1}.mdc-tab-indicator__content{transition:var(--mat-tab-animation-duration, 250ms) transform cubic-bezier(0.4, 0, 0.2, 1);transform-origin:left;opacity:0}.mdc-tab-indicator__content--underline{align-self:flex-end;box-sizing:border-box;width:100%;border-top-style:solid}.mdc-tab-indicator--active .mdc-tab-indicator__content{opacity:1}._mat-animation-noopable .mdc-tab-indicator__content,.mdc-tab-indicator--no-transition .mdc-tab-indicator__content{transition:none}.mat-mdc-tab-ripple.mat-mdc-tab-ripple{position:absolute;top:0;left:0;bottom:0;right:0;pointer-events:none}.mat-mdc-tab{-webkit-tap-highlight-color:rgba(0,0,0,0);-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;text-decoration:none;background:none;height:var(--mat-tab-container-height, 48px);font-family:var(--mat-tab-label-text-font, var(--mat-sys-title-small-font));font-size:var(--mat-tab-label-text-size, var(--mat-sys-title-small-size));letter-spacing:var(--mat-tab-label-text-tracking, var(--mat-sys-title-small-tracking));line-height:var(--mat-tab-label-text-line-height, var(--mat-sys-title-small-line-height));font-weight:var(--mat-tab-label-text-weight, var(--mat-sys-title-small-weight))}.mat-mdc-tab.mdc-tab{flex-grow:0}.mat-mdc-tab .mdc-tab-indicator__content--underline{border-color:var(--mat-tab-active-indicator-color, var(--mat-sys-primary));border-top-width:var(--mat-tab-active-indicator-height, 2px);border-radius:var(--mat-tab-active-indicator-shape, 0)}.mat-mdc-tab:hover .mdc-tab__text-label{color:var(--mat-tab-inactive-hover-label-text-color, var(--mat-sys-on-surface))}.mat-mdc-tab:focus .mdc-tab__text-label{color:var(--mat-tab-inactive-focus-label-text-color, var(--mat-sys-on-surface))}.mat-mdc-tab.mdc-tab--active .mdc-tab__text-label{color:var(--mat-tab-active-label-text-color, var(--mat-sys-on-surface))}.mat-mdc-tab.mdc-tab--active .mdc-tab__ripple::before,.mat-mdc-tab.mdc-tab--active .mat-ripple-element{background-color:var(--mat-tab-active-ripple-color, var(--mat-sys-on-surface))}.mat-mdc-tab.mdc-tab--active:hover .mdc-tab__text-label{color:var(--mat-tab-active-hover-label-text-color, var(--mat-sys-on-surface))}.mat-mdc-tab.mdc-tab--active:hover .mdc-tab-indicator__content--underline{border-color:var(--mat-tab-active-hover-indicator-color, var(--mat-sys-primary))}.mat-mdc-tab.mdc-tab--active:focus .mdc-tab__text-label{color:var(--mat-tab-active-focus-label-text-color, var(--mat-sys-on-surface))}.mat-mdc-tab.mdc-tab--active:focus .mdc-tab-indicator__content--underline{border-color:var(--mat-tab-active-focus-indicator-color, var(--mat-sys-primary))}.mat-mdc-tab.mat-mdc-tab-disabled{opacity:.4;pointer-events:none}.mat-mdc-tab.mat-mdc-tab-disabled .mdc-tab__content{pointer-events:none}.mat-mdc-tab.mat-mdc-tab-disabled .mdc-tab__ripple::before,.mat-mdc-tab.mat-mdc-tab-disabled .mat-ripple-element{background-color:var(--mat-tab-disabled-ripple-color, var(--mat-sys-on-surface-variant))}.mat-mdc-tab .mdc-tab__ripple::before{content:"";display:block;position:absolute;top:0;left:0;right:0;bottom:0;opacity:0;pointer-events:none;background-color:var(--mat-tab-inactive-ripple-color, var(--mat-sys-on-surface))}.mat-mdc-tab .mdc-tab__text-label{color:var(--mat-tab-inactive-label-text-color, var(--mat-sys-on-surface));display:inline-flex;align-items:center}.mat-mdc-tab .mdc-tab__content{position:relative;pointer-events:auto}.mat-mdc-tab:hover .mdc-tab__ripple::before{opacity:.04}.mat-mdc-tab.cdk-program-focused .mdc-tab__ripple::before,.mat-mdc-tab.cdk-keyboard-focused .mdc-tab__ripple::before{opacity:.12}.mat-mdc-tab .mat-ripple-element{opacity:.12;background-color:var(--mat-tab-inactive-ripple-color, var(--mat-sys-on-surface))}.mat-mdc-tab-group.mat-mdc-tab-group-stretch-tabs>.mat-mdc-tab-header .mat-mdc-tab{flex-grow:1}.mat-mdc-tab-group{display:flex;flex-direction:column;max-width:100%}.mat-mdc-tab-group.mat-tabs-with-background>.mat-mdc-tab-header,.mat-mdc-tab-group.mat-tabs-with-background>.mat-mdc-tab-header-pagination{background-color:var(--mat-tab-background-color)}.mat-mdc-tab-group.mat-tabs-with-background.mat-primary>.mat-mdc-tab-header .mat-mdc-tab .mdc-tab__text-label{color:var(--mat-tab-foreground-color)}.mat-mdc-tab-group.mat-tabs-with-background.mat-primary>.mat-mdc-tab-header .mdc-tab-indicator__content--underline{border-color:var(--mat-tab-foreground-color)}.mat-mdc-tab-group.mat-tabs-with-background:not(.mat-primary)>.mat-mdc-tab-header .mat-mdc-tab:not(.mdc-tab--active) .mdc-tab__text-label{color:var(--mat-tab-foreground-color)}.mat-mdc-tab-group.mat-tabs-with-background:not(.mat-primary)>.mat-mdc-tab-header .mat-mdc-tab:not(.mdc-tab--active) .mdc-tab-indicator__content--underline{border-color:var(--mat-tab-foreground-color)}.mat-mdc-tab-group.mat-tabs-with-background>.mat-mdc-tab-header .mat-mdc-tab-header-pagination-chevron,.mat-mdc-tab-group.mat-tabs-with-background>.mat-mdc-tab-header .mat-focus-indicator::before,.mat-mdc-tab-group.mat-tabs-with-background>.mat-mdc-tab-header-pagination .mat-mdc-tab-header-pagination-chevron,.mat-mdc-tab-group.mat-tabs-with-background>.mat-mdc-tab-header-pagination .mat-focus-indicator::before{border-color:var(--mat-tab-foreground-color)}.mat-mdc-tab-group.mat-tabs-with-background>.mat-mdc-tab-header .mat-ripple-element,.mat-mdc-tab-group.mat-tabs-with-background>.mat-mdc-tab-header .mdc-tab__ripple::before,.mat-mdc-tab-group.mat-tabs-with-background>.mat-mdc-tab-header-pagination .mat-ripple-element,.mat-mdc-tab-group.mat-tabs-with-background>.mat-mdc-tab-header-pagination .mdc-tab__ripple::before{background-color:var(--mat-tab-foreground-color)}.mat-mdc-tab-group.mat-tabs-with-background>.mat-mdc-tab-header .mat-mdc-tab-header-pagination-chevron,.mat-mdc-tab-group.mat-tabs-with-background>.mat-mdc-tab-header-pagination .mat-mdc-tab-header-pagination-chevron{color:var(--mat-tab-foreground-color)}.mat-mdc-tab-group.mat-mdc-tab-group-inverted-header{flex-direction:column-reverse}.mat-mdc-tab-group.mat-mdc-tab-group-inverted-header .mdc-tab-indicator__content--underline{align-self:flex-start}.mat-mdc-tab-body-wrapper{position:relative;overflow:hidden;display:flex;transition:height 500ms cubic-bezier(0.35, 0, 0.25, 1)}.mat-mdc-tab-body-wrapper._mat-animation-noopable{transition:none !important;animation:none !important} -`],encapsulation:2})}return t})(),VI=class{index;tab},jI=(()=>{class t extends W8{_focusedItem=he(null);get fitInkBarToContent(){return this._fitInkBarToContent.value}set fitInkBarToContent(e){this._fitInkBarToContent.next(e),this._changeDetectorRef.markForCheck()}_fitInkBarToContent=new it(!1);stretchTabs=!0;get animationDuration(){return this._animationDuration}set animationDuration(e){let i=e+"";this._animationDuration=/^\d+$/.test(i)?e+"ms":i}_animationDuration;_items;get backgroundColor(){return this._backgroundColor}set backgroundColor(e){let i=this._elementRef.nativeElement.classList;i.remove("mat-tabs-with-background",`mat-background-${this.backgroundColor}`),e&&i.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=he(!1);color="primary";tabPanel;_tabListContainer;_tabList;_tabListInner;_nextPaginator;_previousPaginator;_inkBar;constructor(){let e=u(G8,{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 ow(this._items),this._items.changes.pipe(Ue(null),we(this._destroyed)).subscribe(()=>this.updateActiveLink()),super.ngAfterContentInit(),this._keyManager.change.pipe(Ue(null),we(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 i=0;i.mat-mdc-tab-link-container .mat-mdc-tab-links{justify-content:center}[mat-align-tabs=end]>.mat-mdc-tab-link-container .mat-mdc-tab-links{justify-content:flex-end}.cdk-drop-list .mat-mdc-tab-links,.mat-mdc-tab-links.cdk-drop-list{min-height:var(--mat-tab-container-height, 48px)}.mat-mdc-tab-link-container{display:flex;flex-grow:1;overflow:hidden;z-index:1;border-bottom-style:solid;border-bottom-width:var(--mat-tab-divider-height, 1px);border-bottom-color:var(--mat-tab-divider-color, var(--mat-sys-surface-variant))}.mat-mdc-tab-nav-bar.mat-tabs-with-background>.mat-mdc-tab-link-container,.mat-mdc-tab-nav-bar.mat-tabs-with-background>.mat-mdc-tab-header-pagination{background-color:var(--mat-tab-background-color)}.mat-mdc-tab-nav-bar.mat-tabs-with-background.mat-primary>.mat-mdc-tab-link-container .mat-mdc-tab-link .mdc-tab__text-label{color:var(--mat-tab-foreground-color)}.mat-mdc-tab-nav-bar.mat-tabs-with-background.mat-primary>.mat-mdc-tab-link-container .mdc-tab-indicator__content--underline{border-color:var(--mat-tab-foreground-color)}.mat-mdc-tab-nav-bar.mat-tabs-with-background:not(.mat-primary)>.mat-mdc-tab-link-container .mat-mdc-tab-link:not(.mdc-tab--active) .mdc-tab__text-label{color:var(--mat-tab-foreground-color)}.mat-mdc-tab-nav-bar.mat-tabs-with-background:not(.mat-primary)>.mat-mdc-tab-link-container .mat-mdc-tab-link:not(.mdc-tab--active) .mdc-tab-indicator__content--underline{border-color:var(--mat-tab-foreground-color)}.mat-mdc-tab-nav-bar.mat-tabs-with-background>.mat-mdc-tab-link-container .mat-mdc-tab-header-pagination-chevron,.mat-mdc-tab-nav-bar.mat-tabs-with-background>.mat-mdc-tab-link-container .mat-focus-indicator::before,.mat-mdc-tab-nav-bar.mat-tabs-with-background>.mat-mdc-tab-header-pagination .mat-mdc-tab-header-pagination-chevron,.mat-mdc-tab-nav-bar.mat-tabs-with-background>.mat-mdc-tab-header-pagination .mat-focus-indicator::before{border-color:var(--mat-tab-foreground-color)}.mat-mdc-tab-nav-bar.mat-tabs-with-background>.mat-mdc-tab-link-container .mat-ripple-element,.mat-mdc-tab-nav-bar.mat-tabs-with-background>.mat-mdc-tab-link-container .mdc-tab__ripple::before,.mat-mdc-tab-nav-bar.mat-tabs-with-background>.mat-mdc-tab-header-pagination .mat-ripple-element,.mat-mdc-tab-nav-bar.mat-tabs-with-background>.mat-mdc-tab-header-pagination .mdc-tab__ripple::before{background-color:var(--mat-tab-foreground-color)}.mat-mdc-tab-nav-bar.mat-tabs-with-background>.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 t})(),Xfe=(()=>{class t extends U8{_tabNavBar=u(jI);elementRef=u(Y);_focusMonitor=u(ti);_destroyed=new z;_isActive=!1;_tabIndex=oi(()=>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=he(!1);tabIndex=0;rippleConfig;get rippleDisabled(){return this.disabled||this.disableRipple||this._tabNavBar.disableRipple||!!this.rippleConfig.disabled}id=u(Ze).getId("mat-tab-link-");constructor(){super(),u(ht).load(ki);let e=u(ws,{optional:!0}),i=u(new Oi("tabindex"),{optional:!0});this.rippleConfig=e||{},this.tabIndex=i==null?0:parseInt(i)||0,Ye()&&(this.rippleConfig.animation={enterDuration:0,exitDuration:0}),this._tabNavBar._fitInkBarToContent.pipe(we(this._destroyed)).subscribe(r=>{this.fitInkBarToContent=r})}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(i){return new(i||t)};static \u0275cmp=E({type:t,selectors:[["","mat-tab-link",""],["","matTabLink",""]],hostAttrs:[1,"mdc-tab","mat-mdc-tab-link","mat-focus-indicator"],hostVars:11,hostBindings:function(i,r){i&1&&S("focus",function(){return r._handleFocus()})("keydown",function(a){return r._handleKeydown(a)}),i&2&&(X("aria-controls",r._getAriaControls())("aria-current",r._getAriaCurrent())("aria-disabled",r.disabled)("aria-selected",r._getAriaSelected())("id",r.id)("tabIndex",r._tabIndex())("role",r._getRole()),G("mat-mdc-tab-disabled",r.disabled)("mdc-tab--active",r.active))},inputs:{active:[2,"active","active",L],disabled:[2,"disabled","disabled",L],disableRipple:[2,"disableRipple","disableRipple",L],tabIndex:[2,"tabIndex","tabIndex",e=>e==null?0:dt(e)],id:"id"},exportAs:["matTabLink"],features:[le],attrs:Wfe,ngContentSelectors:cp,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(i,r){i&1&&(Se(),M(0,"span",0)(1,"div",1),m(2,"span",2)(3,"span",3),ne(4),h()()),i&2&&(f(),v("matRippleTrigger",r.elementRef.nativeElement)("matRippleDisabled",r.rippleDisabled))},dependencies:[jn],styles:[`.mat-mdc-tab-link{-webkit-tap-highlight-color:rgba(0,0,0,0);-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;text-decoration:none;background:none;height:var(--mat-tab-container-height, 48px);font-family:var(--mat-tab-label-text-font, var(--mat-sys-title-small-font));font-size:var(--mat-tab-label-text-size, var(--mat-sys-title-small-size));letter-spacing:var(--mat-tab-label-text-tracking, var(--mat-sys-title-small-tracking));line-height:var(--mat-tab-label-text-line-height, var(--mat-sys-title-small-line-height));font-weight:var(--mat-tab-label-text-weight, var(--mat-sys-title-small-weight))}.mat-mdc-tab-link.mdc-tab{flex-grow:0}.mat-mdc-tab-link .mdc-tab-indicator__content--underline{border-color:var(--mat-tab-active-indicator-color, var(--mat-sys-primary));border-top-width:var(--mat-tab-active-indicator-height, 2px);border-radius:var(--mat-tab-active-indicator-shape, 0)}.mat-mdc-tab-link:hover .mdc-tab__text-label{color:var(--mat-tab-inactive-hover-label-text-color, var(--mat-sys-on-surface))}.mat-mdc-tab-link:focus .mdc-tab__text-label{color:var(--mat-tab-inactive-focus-label-text-color, var(--mat-sys-on-surface))}.mat-mdc-tab-link.mdc-tab--active .mdc-tab__text-label{color:var(--mat-tab-active-label-text-color, var(--mat-sys-on-surface))}.mat-mdc-tab-link.mdc-tab--active .mdc-tab__ripple::before,.mat-mdc-tab-link.mdc-tab--active .mat-ripple-element{background-color:var(--mat-tab-active-ripple-color, var(--mat-sys-on-surface))}.mat-mdc-tab-link.mdc-tab--active:hover .mdc-tab__text-label{color:var(--mat-tab-active-hover-label-text-color, var(--mat-sys-on-surface))}.mat-mdc-tab-link.mdc-tab--active:hover .mdc-tab-indicator__content--underline{border-color:var(--mat-tab-active-hover-indicator-color, var(--mat-sys-primary))}.mat-mdc-tab-link.mdc-tab--active:focus .mdc-tab__text-label{color:var(--mat-tab-active-focus-label-text-color, var(--mat-sys-on-surface))}.mat-mdc-tab-link.mdc-tab--active:focus .mdc-tab-indicator__content--underline{border-color:var(--mat-tab-active-focus-indicator-color, var(--mat-sys-primary))}.mat-mdc-tab-link.mat-mdc-tab-disabled{opacity:.4;pointer-events:none}.mat-mdc-tab-link.mat-mdc-tab-disabled .mdc-tab__content{pointer-events:none}.mat-mdc-tab-link.mat-mdc-tab-disabled .mdc-tab__ripple::before,.mat-mdc-tab-link.mat-mdc-tab-disabled .mat-ripple-element{background-color:var(--mat-tab-disabled-ripple-color, var(--mat-sys-on-surface-variant))}.mat-mdc-tab-link .mdc-tab__ripple::before{content:"";display:block;position:absolute;top:0;left:0;right:0;bottom:0;opacity:0;pointer-events:none;background-color:var(--mat-tab-inactive-ripple-color, var(--mat-sys-on-surface))}.mat-mdc-tab-link .mdc-tab__text-label{color:var(--mat-tab-inactive-label-text-color, var(--mat-sys-on-surface));display:inline-flex;align-items:center}.mat-mdc-tab-link .mdc-tab__content{position:relative;pointer-events:auto}.mat-mdc-tab-link:hover .mdc-tab__ripple::before{opacity:.04}.mat-mdc-tab-link.cdk-program-focused .mdc-tab__ripple::before,.mat-mdc-tab-link.cdk-keyboard-focused .mdc-tab__ripple::before{opacity:.12}.mat-mdc-tab-link .mat-ripple-element{opacity:.12;background-color:var(--mat-tab-inactive-ripple-color, var(--mat-sys-on-surface))}.mat-mdc-tab-header.mat-mdc-tab-nav-bar-stretch-tabs .mat-mdc-tab-link{flex-grow:1}.mat-mdc-tab-link::before{margin:5px}@media(max-width: 599px){.mat-mdc-tab-link{min-width:72px}} -`],encapsulation:2,changeDetection:0})}return t})(),q8=(()=>{class t{id=u(Ze).getId("mat-tab-nav-panel-");_activeTabId;static \u0275fac=function(i){return new(i||t)};static \u0275cmp=E({type:t,selectors:[["mat-tab-nav-panel"]],hostAttrs:["role","tabpanel",1,"mat-mdc-tab-nav-panel"],hostVars:2,hostBindings:function(i,r){i&2&&X("aria-labelledby",r._activeTabId)("id",r.id)},inputs:{id:"id"},exportAs:["matTabNavPanel"],ngContentSelectors:cp,decls:1,vars:0,template:function(i,r){i&1&&(Se(),ne(0))},encapsulation:2,changeDetection:0})}return t})(),zc=(()=>{class t{static \u0275fac=function(i){return new(i||t)};static \u0275mod=ee({type:t});static \u0275inj=J({imports:[De,De]})}return t})();function Jfe(t,n){if(t&1&&(m(0,"div",1)(1,"div"),g(2),h(),m(3,"div",2)(4,"div",3),g(5),h(),m(6,"div",4),g(7),h()()()),t&2){let e=n.$implicit;f(),nt(qo("d-flex align-items-center justify-content-center r-12 ",e.color)),Et("width",3,"rem")("height",3,"rem"),f(),pe(" ",e.icon," "),f(3),N(e.title),f(2),N(e.content)}}function ege(t,n){if(t&1&&(m(0,"mat-tab",0),xt(1,Jfe,8,10,"div",1,Ui),h()),t&2){let e=n.$implicit;v("label",e.label),f(),Ct(e.messages)}}var Y8=(()=>{let n=class n{constructor(){this.tabs=[{label:"Today",messages:[{icon:"\u{1F514}",color:"bg-red-95",title:"General Meeting for update",content:"You can use the Dashboard to explore how many new users download reports daily and monthly."},{icon:"\u{1F4E2}",color:"bg-azure-95",title:"Widgets update",content:"We've made some updates to the emendable widget which we think you are going to love."},{icon:"\u23F3",color:"bg-violet-95",title:"Coming soon new features",content:"More new features are coming soon, so stay patient!"}]},{label:"Notifications",messages:[{icon:"\u{1F4E9}",color:"bg-magenta-95",title:"Weekly reports are available",content:"Please go to the notification center to check your reports."}]}]}};n.\u0275fac=function(r){return new(r||n)},n.\u0275cmp=E({type:n,selectors:[["app-sidebar-notice"]],hostAttrs:[1,"matero-sidebar-notice"],decls:3,vars:0,consts:[[3,"label"],[1,"d-flex","align-items-center","gap-16","p-16","m-b-16","b-1","r-12"],[1,"flex-grow-1","w-0"],[1,"f-w-600"],[1,"f-s-14"]],template:function(r,o){r&1&&(m(0,"mat-tab-group"),xt(1,ege,3,1,"mat-tab",0,Ui),h()),r&2&&(f(),Ct(o.tabs))},dependencies:[zc,Fu,dp],styles:[`.matero-sidebar-notice{display:block;height:100%}.matero-sidebar-notice .mat-mdc-tab-group{height:100%}.matero-sidebar-notice .mat-mdc-tab-body-wrapper{flex:1}.matero-sidebar-notice .mat-mdc-tab-body-content{padding:1rem} -`],encapsulation:2});let t=n;return t})();var tge=["switch"],ige=["*"];function nge(t,n){t&1&&(m(0,"span",11),Zt(),m(1,"svg",13),M(2,"path",14),h(),m(3,"svg",15),M(4,"path",16),h()())}var rge=new O("mat-slide-toggle-default-options",{providedIn:"root",factory:()=>({disableToggleValue:!1,hideIcon:!1,disabledInteractive:!1})}),sw=class{source;checked;constructor(n,e){this.source=n,this.checked=e}},HI=(()=>{class t{_elementRef=u(Y);_focusMonitor=u(ti);_changeDetectorRef=u(ye);defaults=u(rge);_onChange=e=>{};_onTouched=()=>{};_validatorOnChange=()=>{};_uniqueId;_checked=!1;_createChangeEvent(e){return new sw(this,e)}_labelId;get buttonId(){return`${this.id||this._uniqueId}-button`}_switchElement;focus(){this._switchElement.nativeElement.focus()}_noopAnimations=Ye();_focused;name=null;id;labelPosition="after";ariaLabel=null;ariaLabelledby=null;ariaDescribedby;required;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 U;toggleChange=new U;get inputId(){return`${this.id||this._uniqueId}-input`}constructor(){u(ht).load(ki);let e=u(new Oi("tabindex"),{optional:!0}),i=this.defaults;this.tabIndex=e==null?0:parseInt(e)||0,this.color=i.color||"accent",this.id=this._uniqueId=u(Ze).getId("mat-mdc-slide-toggle-"),this.hideIcon=i.hideIcon??!1,this.disabledInteractive=i.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 sw(this,this.checked))))}_getAriaLabelledBy(){return this.ariaLabelledby?this.ariaLabelledby:this.ariaLabel?null:this._labelId}static \u0275fac=function(i){return new(i||t)};static \u0275cmp=E({type:t,selectors:[["mat-slide-toggle"]],viewQuery:function(i,r){if(i&1&&ie(tge,5),i&2){let o;j(o=H())&&(r._switchElement=o.first)}},hostAttrs:[1,"mat-mdc-slide-toggle"],hostVars:13,hostBindings:function(i,r){i&2&&(ci("id",r.id),X("tabindex",null)("aria-label",null)("name",null)("aria-labelledby",null),nt(r.color?"mat-"+r.color:""),G("mat-mdc-slide-toggle-focused",r._focused)("mat-mdc-slide-toggle-checked",r.checked)("_mat-animation-noopable",r._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",L],color:"color",disabled:[2,"disabled","disabled",L],disableRipple:[2,"disableRipple","disableRipple",L],tabIndex:[2,"tabIndex","tabIndex",e=>e==null?0:dt(e)],checked:[2,"checked","checked",L],hideIcon:[2,"hideIcon","hideIcon",L],disabledInteractive:[2,"disabledInteractive","disabledInteractive",L]},outputs:{change:"change",toggleChange:"toggleChange"},exportAs:["matSlideToggle"],features:[Ce([{provide:rr,useExisting:ri(()=>t),multi:!0},{provide:na,useExisting:t,multi:!0}]),Ae],ngContentSelectors:ige,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(i,r){if(i&1){let o=q();Se(),m(0,"div",1)(1,"button",2,0),S("click",function(){return T(o),I(r._handleClick())}),M(3,"div",3)(4,"span",4),m(5,"span",5)(6,"span",6)(7,"span",7),M(8,"span",8),h(),m(9,"span",9),M(10,"span",10),h(),V(11,nge,5,0,"span",11),h()()(),m(12,"label",12),S("click",function(s){return T(o),I(s.stopPropagation())}),ne(13),h()()}if(i&2){let o=Me(2);v("labelPosition",r.labelPosition),f(),G("mdc-switch--selected",r.checked)("mdc-switch--unselected",!r.checked)("mdc-switch--checked",r.checked)("mdc-switch--disabled",r.disabled)("mat-mdc-slide-toggle-disabled-interactive",r.disabledInteractive),v("tabIndex",r.disabled&&!r.disabledInteractive?-1:r.tabIndex)("disabled",r.disabled&&!r.disabledInteractive),X("id",r.buttonId)("name",r.name)("aria-label",r.ariaLabel)("aria-labelledby",r._getAriaLabelledBy())("aria-describedby",r.ariaDescribedby)("aria-required",r.required||null)("aria-checked",r.checked)("aria-disabled",r.disabled&&r.disabledInteractive?"true":null),f(9),v("matRippleTrigger",o)("matRippleDisabled",r.disableRipple||r.disabled)("matRippleCentered",!0),f(),B(r.hideIcon?-1:11),f(),v("for",r.buttonId),X("id",r._labelId)}},dependencies:[jn,Zm],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 rgba(0,0,0,0);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 rgba(0,0,0,0);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:rgba(0,0,0,0);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:.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-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 t})(),Q8=(()=>{class t{static \u0275fac=function(i){return new(i||t)};static \u0275mod=ee({type:t});static \u0275inj=J({imports:[HI,De,De]})}return t})();var lw=(()=>{let n=class n{constructor(){this.router=u(Re),this.menu=u(mo),this.navItems=[],this.router.events.pipe(ce(i=>i instanceof xi)).subscribe(()=>this.checkOpenedItems()),this.menu.change().pipe(St(10)).subscribe(()=>{setTimeout(()=>this.checkOpenedItems())})}addItem(i){this.navItems.push(i)}removeItem(i){let r=this.navItems.indexOf(i);r!==-1&&this.navItems.splice(r,1)}closeOtherItems(i){this.navItems.forEach(r=>{r!==i&&r.setExpanded(!1)})}checkOpenedItems(){this.navItems.forEach(i=>{let r=i.route();r&&this.router.url.split("/").includes(r)&&(i.setExpanded(!0),this.closeOtherItems(i))})}};n.\u0275fac=function(r){return new(r||n)},n.\u0275dir=P({type:n,selectors:[["","navAccordion",""]],exportAs:["navAccordion"]});let t=n;return t})();var cw=(()=>{let n=class n{constructor(){this.nav=u(lw),this.route=re(""),this.expanded=he(!1)}ngOnInit(){this.nav.addItem(this)}ngOnDestroy(){this.nav.removeItem(this)}toggle(){this.expanded.update(i=>!i),this.expanded()&&this.nav.closeOtherItems(this)}setExpanded(i){this.expanded()!==i&&this.expanded.set(i)}};n.\u0275fac=function(r){return new(r||n)},n.\u0275dir=P({type:n,selectors:[["","navAccordionItem",""]],hostVars:2,hostBindings:function(r,o){r&2&&G("expanded",o.expanded())},inputs:{route:[1,"route"]},exportAs:["navAccordionItem"]});let t=n;return t})();var K8=(()=>{let n=class n{constructor(){this.navItem=u(cw)}onClick(){this.navItem.toggle()}};n.\u0275fac=function(r){return new(r||n)},n.\u0275dir=P({type:n,selectors:[["","navAccordionToggle",""]],hostBindings:function(r,o){r&1&&S("click",function(){return o.onClick()})},exportAs:["navAccordionToggle"]});let t=n;return t})();var age=()=>[],sge=(t,n)=>({menuList:t,parentRoute:n,level:0}),Z8=t=>[t],dw=(t,n)=>({item:t,level:n}),lge=(t,n,e)=>({menuList:t,parentRoute:n,level:e});function cge(t,n){if(t&1&&(m(0,"a",6),Ge(1,2),h()),t&2){let e=x(2).$implicit,i=x(),r=i.parentRoute,o=i.level,a=x(),s=Me(5);v("routerLink",a.menu.buildRoute(r.concat(Nt(3,Z8,e.route)))),f(),v("ngTemplateOutlet",s)("ngTemplateOutletContext",Da(5,dw,e,o))}}function dge(t,n){if(t&1&&(m(0,"a",7),Ge(1,2),h()),t&2){let e=x(2).$implicit,i=x().level;x();let r=Me(5);v("href",e.route,Qr),f(),v("ngTemplateOutlet",r)("ngTemplateOutletContext",Da(3,dw,e,i))}}function uge(t,n){if(t&1&&(m(0,"a",8),Ge(1,2),h()),t&2){let e=x(2).$implicit,i=x().level;x();let r=Me(5);v("href",e.route,Qr),f(),v("ngTemplateOutlet",r)("ngTemplateOutletContext",Da(3,dw,e,i))}}function mge(t,n){if(t&1&&(m(0,"button",9),Ge(1,2),h(),Ge(2,2)),t&2){let e=x(2).$implicit,i=x(),r=i.parentRoute,o=i.level;x();let a=Me(3),s=Me(5);f(),v("ngTemplateOutlet",s)("ngTemplateOutletContext",Da(4,dw,e,o)),f(),v("ngTemplateOutlet",a)("ngTemplateOutletContext",Vd(9,lge,e.children,r.concat(Nt(7,Z8,e.route)),o+1))}}function hge(t,n){if(t&1&&(m(0,"li",5),V(1,cge,2,8,"a",6),V(2,dge,2,6,"a",7),V(3,uge,2,6,"a",8),V(4,mge,3,13),h()),t&2){let e=x().$implicit;v("route",e.route),f(),B(e.type==="link"?1:-1),f(),B(e.type==="extLink"?2:-1),f(),B(e.type==="extTabLink"?3:-1),f(),B(e.type==="sub"?4:-1)}}function pge(t,n){if(t&1&&A(0,hge,5,5,"ng-template",4),t&2){let e=n.$implicit;v("ngxPermissionsOnly",e.permissions==null?null:e.permissions.only)("ngxPermissionsExcept",e.permissions==null?null:e.permissions.except)}}function fge(t,n){if(t&1&&(m(0,"ul",3),xt(1,pge,1,2,null,4,Ui),h()),t&2){let e=n.menuList,i=n.level;nt(qo("matero-sidemenu level-",i)),G("submenu",i>0),f(),Ct(e)}}function gge(t,n){if(t&1&&(m(0,"mat-icon",14),g(1),h()),t&2){let e=x(),i=e.item,r=e.level;G("submenu-icon",r>0),f(),N(i.icon)}}function _ge(t,n){if(t&1&&(m(0,"span",14),g(1),ue(2,"translate"),ue(3,"slice"),h()),t&2){let e=x(),i=e.item,r=e.level;G("submenu-icon",r>0),f(),pe(" ",$1(3,5,Oe(2,3,i.name),0,1)," ")}}function bge(t,n){if(t&1&&(m(0,"span"),g(1),h()),t&2){let e=x().item;nt(qo("menu-label bg-",e.label.color)),f(),N(e.label.value)}}function vge(t,n){if(t&1&&(m(0,"span"),g(1),h()),t&2){let e=x().item;nt(qo("menu-badge bg-",e.badge.color)),f(),N(e.badge.value)}}function yge(t,n){if(t&1&&(m(0,"mat-icon",13),g(1),h()),t&2){let e=x().item;f(),N(e.type==="sub"?"arrow_drop_down":"launch")}}function xge(t,n){if(t&1&&(V(0,gge,2,3,"mat-icon",10)(1,_ge,4,9,"span",10),m(2,"span",11),g(3),ue(4,"translate"),h(),V(5,bge,2,4,"span",12),V(6,vge,2,4,"span",12),V(7,yge,2,1,"mat-icon",13)),t&2){let e=n.item;B(e.icon?0:1),f(3),N(Oe(4,5,e.name)),f(2),B(e.label?5:-1),f(),B(e.badge?6:-1),f(),B(e.type!=="link"?7:-1)}}var X8=(()=>{let n=class n{constructor(){this.menu=u(mo)}};n.\u0275fac=function(r){return new(r||n)},n.\u0275cmp=E({type:n,selectors:[["app-sidemenu"]],decls:6,vars:8,consts:[["menuTpl",""],["linkTypeTpl",""],[3,"ngTemplateOutlet","ngTemplateOutletContext"],["navAccordion",""],[3,"ngxPermissionsOnly","ngxPermissionsExcept"],["navAccordionItem","","routerLinkActive","active",1,"menu-item",3,"route"],["matRipple","",1,"menu-heading",3,"routerLink"],["matRipple","",1,"menu-heading",3,"href"],["target","_blank","matRipple","",1,"menu-heading",3,"href"],["navAccordionToggle","","matRipple","",1,"menu-heading","menu-toggle"],[1,"menu-icon",3,"submenu-icon"],[1,"menu-name"],[3,"class"],[1,"menu-caret"],[1,"menu-icon"]],template:function(r,o){if(r&1&&(Ge(0,2),ue(1,"async"),A(2,fge,3,5,"ng-template",null,0,vi)(4,xge,8,7,"ng-template",null,1,vi)),r&2){let a=Me(3);v("ngTemplateOutlet",a)("ngTemplateOutletContext",Da(5,sge,Oe(1,2,o.menu.getAll()),rt(4,age)))}},dependencies:[Ln,Vn,Yd,wc,Nh,tt,st,Mo,jn,Sr,lw,cw,K8,sn,fM,Mr],styles:[`.matero-sidemenu{padding:0;margin:0;list-style:none}.matero-sidemenu .menu-item{overflow:hidden;border-radius:1.5rem;transition:background 225ms cubic-bezier(.4,0,.2,1)}.matero-sidemenu .menu-item>.submenu{visibility:hidden;height:0;transition:all 225ms cubic-bezier(.4,0,.2,1)}.matero-sidemenu .menu-item>.menu-heading:hover,.matero-sidemenu .menu-item>.menu-heading:focus{background-color:var(--sidemenu-heading-hover-background-color)}.matero-sidemenu .menu-item.active>.menu-heading{color:var(--sidemenu-active-heading-text-color);background-color:var(--sidemenu-active-heading-background-color)}.matero-sidemenu .menu-item.active>.menu-heading:hover,.matero-sidemenu .menu-item.active>.menu-heading:focus{background-color:var(--sidemenu-active-heading-hover-background-color)}.matero-sidemenu .menu-item.expanded{background-color:var(--sidemenu-expanded-background-color)}.matero-sidemenu .menu-item.expanded>.submenu{visibility:visible;height:auto;height:calc-size(auto,size)}.matero-sidemenu .menu-item.expanded>.menu-toggle>.menu-caret{transform:rotate(-180deg)}.matero-sidemenu .menu-item:has(.active)>.menu-heading{color:var(--sidemenu-active-heading-text-color)}.matero-sidemenu .menu-heading{position:relative;display:flex;align-items:center;width:calc(var(--sidenav-width) - 1rem);padding:.75rem;font-size:inherit;color:inherit;text-decoration:none;cursor:pointer;outline:none;background-color:transparent;border:none;border-radius:1.5rem}.matero-sidemenu .menu-icon{width:1.5rem;height:1.5rem;margin-right:.75rem;font-size:1.25rem;line-height:1.5rem;text-align:center}[dir=rtl] .matero-sidemenu .menu-icon{margin-right:0;margin-left:.75rem}.matero-sidemenu .menu-icon.submenu-icon{position:absolute;left:.75rem;width:1.5rem;height:1.5rem;font-size:1rem;line-height:1.5rem;opacity:0}[dir=rtl] .matero-sidemenu .menu-icon.submenu-icon{right:.75rem;left:0}.matero-sidemenu .menu-caret{display:block;width:1.5rem;height:1.5rem;font-size:1.5rem;line-height:1.5rem;text-align:center;transition:transform .4s cubic-bezier(.25,.8,.25,1)}.matero-sidemenu .menu-name{flex:1;overflow:hidden;text-overflow:ellipsis;text-align:initial}.matero-sidemenu .menu-icon,.matero-sidemenu .menu-name,.matero-sidemenu .menu-label,.matero-sidemenu .menu-badge{transition:opacity .4s cubic-bezier(.25,.8,.25,1)}.matero-sidemenu .menu-label,.matero-sidemenu .menu-badge{padding:.25rem .5rem;font-size:.75rem;font-weight:700;line-height:1;color:#fff;background-color:#757575;border-radius:.375rem}.matero-sidemenu .menu-badge{border-radius:50rem}.matero-sidemenu.level-1>li>.menu-heading{padding-left:3rem}[dir=rtl] .matero-sidemenu.level-1>li>.menu-heading{padding-right:3rem;padding-left:1rem}.matero-sidemenu.level-2>li>.menu-heading{padding-left:4rem}[dir=rtl] .matero-sidemenu.level-2>li>.menu-heading{padding-right:4rem;padding-left:1rem}.matero-sidemenu.level-2 [class^=level-]>li>.menu-heading{padding-left:5rem}[dir=rtl] .matero-sidemenu.level-2 [class^=level-]>li>.menu-heading{padding-right:5rem;padding-left:1rem} -`],encapsulation:2});let t=n;return t})();var J8=(()=>{let n=class n{constructor(){this.oidcAuth=u(Ot),this.userName="Guest",this.userEmail="Anonymous"}ngOnInit(){this.updateUserInfo(),this.authSubscription=this.oidcAuth.isAuthenticated$.subscribe(i=>{console.log("UserPanel: Auth state changed:",i),this.updateUserInfo()})}ngOnDestroy(){this.authSubscription?.unsubscribe()}updateUserInfo(){let i=this.oidcAuth.isAuthenticated();if(console.log("UserPanel: Updating user info, isAuthenticated:",i),!i){this.userName="Guest",this.userEmail="Anonymous";return}let r=this.oidcAuth.getUserInfo();console.log("UserPanel: User info from service:",r),console.log("UserPanel: Available claims:",r?Object.keys(r):"null"),this.userName=r?.name||r?.preferred_username||r?.given_name||r?.["http://schemas.xmlsoap.org/ws/2005/05/identity/claims/name"]||r?.sub||"User",this.userEmail=r?.email||r?.["http://schemas.xmlsoap.org/ws/2005/05/identity/claims/emailaddress"]||"",console.log("UserPanel: Set userName to:",this.userName,"email to:",this.userEmail)}};n.\u0275fac=function(r){return new(r||n)},n.\u0275cmp=E({type:n,selectors:[["app-user-panel"]],decls:8,vars:4,consts:[[1,"matero-user-panel"],[1,"matero-user-panel-avatar"],[1,"matero-user-panel-info"]],template:function(r,o){r&1&&(m(0,"div",0)(1,"mat-icon",1),g(2,"account_circle"),h(),m(3,"div",2)(4,"h4"),g(5),h(),m(6,"h5"),g(7),h()()()),r&2&&(G("authenticated",o.oidcAuth.isAuthenticated()),f(5),N(o.userName),f(2),N(o.userEmail))},dependencies:[ut,Be,tt,st,$r,Sr],styles:[`.matero-user-panel{display:flex;align-items:center;padding:.75rem;margin-bottom:.75rem;cursor:pointer;outline:none;background-color:var(--user-panel-background-color);border-radius:.75rem}.matero-user-panel:hover,.matero-user-panel:focus{background-color:var(--user-panel-hover-background-color)}.matero-user-panel-avatar{width:3rem;height:3rem;font-size:3rem;border-radius:50rem;color:#0000008a;transform-origin:0 1.5rem;transition:transform .4s cubic-bezier(.25,.8,.25,1)}[dir=rtl] .matero-user-panel-avatar{transform-origin:3rem 1.5rem}.matero-user-panel-info{flex:1;width:0;margin-left:.75rem;opacity:1;transition:opacity .4s cubic-bezier(.25,.8,.25,1)}[dir=rtl] .matero-user-panel-info{margin-right:.75rem;margin-left:0}.matero-user-panel-info h4,.matero-user-panel-info h5{margin:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.matero-user-panel-info h4{margin-bottom:4px;font-size:1rem;font-weight:500}.matero-user-panel-info h5{font-size:.75rem;font-weight:400} -`],encapsulation:2});let t=n;return t})();function Cge(t,n){if(t&1){let e=q();m(0,"mat-slide-toggle",6),S("change",function(){T(e);let r=x(2);return I(r.toggleCollapsed.emit())}),h()}if(t&2){let e=x(2);v("checked",e.toggleChecked())}}function wge(t,n){if(t&1){let e=q();m(0,"button",7),S("click",function(){T(e);let r=x(2);return I(r.closeSidenav.emit())}),m(1,"mat-icon"),g(2,"close"),h()()}}function Dge(t,n){if(t&1&&(m(0,"div",0)(1,"mat-toolbar"),M(2,"app-branding",2)(3,"span",3),V(4,Cge,1,1,"mat-slide-toggle",4)(5,wge,3,0,"button",5),h()()),t&2){let e=x();f(2),v("showName",!e.toggleChecked()),f(2),B(e.showToggle()?4:5)}}function Ege(t,n){t&1&&M(0,"app-user-panel")}var e6=(()=>{let n=class n{constructor(){this.showToggle=re(!0),this.showUser=re(!0),this.showHeader=re(!0),this.toggleChecked=re(!1),this.toggleCollapsed=yi(),this.closeSidenav=yi()}};n.\u0275fac=function(r){return new(r||n)},n.\u0275cmp=E({type:n,selectors:[["app-sidebar"]],inputs:{showToggle:[1,"showToggle"],showUser:[1,"showUser"],showHeader:[1,"showHeader"],toggleChecked:[1,"toggleChecked"]},outputs:{toggleCollapsed:"toggleCollapsed",closeSidenav:"closeSidenav"},decls:4,vars:2,consts:[[1,"matero-sidebar-header"],[1,"matero-sidebar-main"],[3,"showName"],[1,"flex-fill"],["hideIcon","",3,"checked"],["mat-icon-button",""],["hideIcon","",3,"change","checked"],["mat-icon-button","",3,"click"]],template:function(r,o){r&1&&(V(0,Dge,6,2,"div",0),m(1,"div",1),V(2,Ege,1,0,"app-user-panel"),M(3,"app-sidemenu"),h()),r&2&&(B(o.showHeader()?0:-1),f(2),B(o.showUser()?2:-1))},dependencies:[Q8,HI,tt,st,Be,Yt,iw,tw,nw,X8,J8],styles:[`.matero-sidebar-header{overflow:hidden}.matero-sidebar-header mat-toolbar{width:var(--sidenav-width);padding:0 .5rem}.matero-sidebar-header mat-slide-toggle .mdc-label{display:none}.matero-sidebar-main{height:calc(100% - var(--mat-toolbar-standard-height));padding:0 .5rem .5rem;overflow:auto;scrollbar-width:none}@media (max-width: 599px){.matero-sidebar-main{height:calc(100% - var(--mat-toolbar-mobile-height))}} -`],encapsulation:2});let t=n;return t})();var t6=t=>[t],Mge=()=>[];function Sge(t,n){if(t&1){let e=q();m(0,"a",8,0),S("click",function(){T(e);let r=Me(1),o=x(3);return I(o.onRouterLinkClick(r))}),g(2),ue(3,"translate"),h()}if(t&2){let e=x(2).$implicit,i=x();v("routerLink",i.menu.buildRoute(i.parentRoute().concat(Nt(4,t6,e.route)))),f(2),pe(" ",Oe(3,2,e.name)," ")}}function kge(t,n){if(t&1&&(m(0,"a",5)(1,"span",9),g(2),ue(3,"translate"),h(),m(4,"mat-icon"),g(5,"launch"),h()()),t&2){let e=x(2).$implicit;v("href",e.route,Qr),f(2),N(Oe(3,2,e.name))}}function Tge(t,n){if(t&1&&(m(0,"a",6)(1,"span",9),g(2),ue(3,"translate"),h(),m(4,"mat-icon"),g(5,"launch"),h()()),t&2){let e=x(2).$implicit;v("href",e.route,Qr),f(2),N(Oe(3,2,e.name))}}function Ige(t,n){if(t&1){let e=q();m(0,"button",10),g(1),ue(2,"translate"),m(3,"app-topmenu-panel",11,1),S("routeChange",function(r){T(e);let o=x(2).$implicit,a=x();return I(a.onRouteChange(r,o))}),h()()}if(t&2){let e=Me(4),i=x(2).$implicit,r=x();G("active",i.active==null?null:i.active()),v("matMenuTriggerFor",e.menuPanel()),f(),pe(" ",Oe(2,7,i.name)," "),f(2),v("items",i.children||rt(9,Mge))("parentRoute",r.parentRoute().concat(Nt(10,t6,i.route)))("level",r.level()+1)}}function Age(t,n){if(t&1&&(V(0,Sge,4,6,"a",4),V(1,kge,6,4,"a",5),V(2,Tge,6,4,"a",6),V(3,Ige,5,12,"button",7)),t&2){let e=x().$implicit;B(e.type==="link"?0:-1),f(),B(e.type==="extLink"?1:-1),f(),B(e.type==="extTabLink"?2:-1),f(),B(e.type==="sub"?3:-1)}}function Oge(t,n){if(t&1&&A(0,Age,4,4,"ng-template",3),t&2){let e=n.$implicit;v("ngxPermissionsOnly",e.permissions==null?null:e.permissions.only)("ngxPermissionsExcept",e.permissions==null?null:e.permissions.except)}}var i6=(()=>{let n=class n{constructor(){this.router=u(Re),this.menu=u(mo),this.menuPanel=Qn.required(Wr),this.items=re([]),this.parentRoute=re([]),this.level=re(1),this.routeChange=yi(),this.routerSubscription=this.router.events.pipe(ce(i=>i instanceof xi)).subscribe(i=>{this.items().map(r=>r.active?.set(!1))})}ngOnInit(){this.items().forEach(i=>{i.active=he(this.checkRoute(i))})}ngOnDestroy(){this.routerSubscription.unsubscribe()}checkRoute(i){return i.route?this.router.url.split("/").includes(i.route):this.checkChildRoute(i.children)}checkChildRoute(i=[]){return i.some(r=>this.router.url.split("/").includes(r.route)?!0:(!r.route&&r.children&&this.checkChildRoute(r.children),!1))}onRouterLinkClick(i){this.routeChange.emit(i)}onRouteChange(i,r){this.routeChange.emit(i),this.routerSubscription.unsubscribe(),this.routerSubscription=this.router.events.pipe(ce(o=>o instanceof xi),He(()=>{this.items().filter(a=>a!=r).map(a=>a.active?.set(!1))}),St(10),He(()=>{r.active?.set(i.isActive)})).subscribe()}};n.\u0275fac=function(r){return new(r||n)},n.\u0275cmp=E({type:n,selectors:[["app-topmenu-panel"]],viewQuery:function(r,o){r&1&&Nn(o.menuPanel,Wr,5),r&2&&Go()},inputs:{items:[1,"items"],parentRoute:[1,"parentRoute"],level:[1,"level"]},outputs:{routeChange:"routeChange"},decls:3,vars:0,consts:[["rla","routerLinkActive"],["submenu",""],[1,"matero-topmenu-panel"],[3,"ngxPermissionsOnly","ngxPermissionsExcept"],["mat-menu-item","","routerLinkActive","active",3,"routerLink"],["mat-menu-item","",3,"href"],["mat-menu-item","","target","_blank",3,"href"],["mat-menu-item","",3,"matMenuTriggerFor","active"],["mat-menu-item","","routerLinkActive","active",3,"click","routerLink"],[1,"menu-name"],["mat-menu-item","",3,"matMenuTriggerFor"],[3,"routeChange","items","parentRoute","level"]],template:function(r,o){r&1&&(m(0,"mat-menu",2),xt(1,Oge,1,2,null,3,Ui),h()),r&2&&(f(),Ct(o.items()))},dependencies:[n,Vn,Yd,tt,st,Vs,Wr,Sl,Ls,wc,Nh,Sr,Mr],encapsulation:2});let t=n;return t})();var n6=t=>[t],mw=t=>({item:t}),Rge=()=>[];function Pge(t,n){if(t&1&&(m(0,"a",5),Ge(1,9),h()),t&2){let e=x(2).$implicit,i=x(),r=Me(7);v("routerLink",i.menu.buildRoute(Nt(3,n6,e.route))),f(),v("ngTemplateOutlet",r)("ngTemplateOutletContext",Nt(5,mw,e))}}function Fge(t,n){if(t&1&&(m(0,"a",6),Ge(1,9),h()),t&2){let e=x(2).$implicit;x();let i=Me(7);v("href",e.route,Qr),f(),v("ngTemplateOutlet",i)("ngTemplateOutletContext",Nt(3,mw,e))}}function Nge(t,n){if(t&1&&(m(0,"a",7),Ge(1,9),h()),t&2){let e=x(2).$implicit;x();let i=Me(7);v("href",e.route,Qr),f(),v("ngTemplateOutlet",i)("ngTemplateOutletContext",Nt(3,mw,e))}}function Lge(t,n){if(t&1){let e=q();m(0,"button",10),Ge(1,9),m(2,"app-topmenu-panel",11,2),S("routeChange",function(r){T(e);let o=x(2).$implicit,a=x();return I(a.onRouteChange(r,o))}),h()()}if(t&2){let e=Me(3),i=x(2).$implicit;x();let r=Me(7);G("active",i.active==null?null:i.active()),v("matMenuTriggerFor",e.menuPanel()),f(),v("ngTemplateOutlet",r)("ngTemplateOutletContext",Nt(8,mw,i)),f(),v("items",i.children||rt(10,Rge))("parentRoute",Nt(11,n6,i.route))("level",1)}}function Vge(t,n){if(t&1&&(V(0,Pge,2,7,"a",5),V(1,Fge,2,5,"a",6),V(2,Nge,2,5,"a",7),V(3,Lge,4,13,"button",8)),t&2){let e=x().$implicit;B(e.type==="link"?0:-1),f(),B(e.type==="extLink"?1:-1),f(),B(e.type==="extTabLink"?2:-1),f(),B(e.type==="sub"?3:-1)}}function Bge(t,n){if(t&1&&A(0,Vge,4,4,"ng-template",4),t&2){let e=n.$implicit;v("ngxPermissionsOnly",e.permissions==null?null:e.permissions.only)("ngxPermissionsExcept",e.permissions==null?null:e.permissions.except)}}function jge(t,n){if(t&1&&(m(0,"span"),g(1),h()),t&2){let e=x().item;nt(qo("menu-label bg-",e.label.color)),f(),N(e.label.value)}}function Hge(t,n){if(t&1&&(m(0,"span"),g(1),h()),t&2){let e=x().item;nt(qo("menu-badge bg-",e.badge.color)),f(),N(e.badge.value)}}function zge(t,n){if(t&1&&(m(0,"mat-icon",15),g(1),h()),t&2){let e=x().item;f(),N(e.type==="sub"?"arrow_drop_down":"launch")}}function Uge(t,n){if(t&1&&(m(0,"mat-icon",12),g(1),h(),m(2,"span",13),g(3),ue(4,"translate"),h(),V(5,jge,2,4,"span",14),V(6,Hge,2,4,"span",14),V(7,zge,2,1,"mat-icon",15)),t&2){let e=n.item;f(),N(e.icon),f(2),N(Oe(4,5,e.name)),f(2),B(e.label?5:-1),f(),B(e.badge?6:-1),f(),B(e.type!=="link"?7:-1)}}var r6=(()=>{let n=class n{constructor(){this.router=u(Re),this.menu=u(mo),this.menuList=[],this.menuSubscription=this.menu.getAll().subscribe(i=>{this.menuList=i.map(r=>{let o=this.router.url.split("/").includes(r.route);return r.active=he(o),r})}),this.routerSubscription=this.router.events.pipe(ce(i=>i instanceof xi)).subscribe(i=>{this.menuList.map(r=>r.active?.set(!1))})}ngOnDestroy(){this.menuSubscription.unsubscribe(),this.routerSubscription.unsubscribe()}onRouteChange(i,r){this.routerSubscription.unsubscribe(),this.routerSubscription=this.router.events.pipe(ce(o=>o instanceof xi),He(()=>{this.menuList.filter(o=>o!=r).map(o=>o.active?.set(!1))}),St(10),He(()=>{r.active?.set(i.isActive)})).subscribe()}};n.\u0275fac=function(r){return new(r||n)},n.\u0275cmp=E({type:n,selectors:[["app-topmenu"]],hostAttrs:[1,"matero-topmenu"],decls:8,vars:3,consts:[["tabPanel",""],["linkTypeTpl",""],["submenu",""],["mat-tab-nav-bar","",3,"tabPanel"],[3,"ngxPermissionsOnly","ngxPermissionsExcept"],["matButton","","routerLinkActive","active",3,"routerLink"],["matButton","",3,"href"],["matButton","","target","_blank",3,"href"],["matButton","",3,"matMenuTriggerFor","active"],[3,"ngTemplateOutlet","ngTemplateOutletContext"],["matButton","",3,"matMenuTriggerFor"],[3,"routeChange","items","parentRoute","level"],[1,"menu-icon"],[1,"menu-name"],[3,"class"],[1,"menu-caret"]],template:function(r,o){if(r&1&&(m(0,"nav",3),xt(1,Bge,1,2,null,4,Ui),ue(3,"async"),h(),M(4,"mat-tab-nav-panel",null,0),A(6,Uge,8,7,"ng-template",null,1,vi)),r&2){let a=Me(5);v("tabPanel",a),f(),Ct(Oe(3,1,o.menu.getAll()))}},dependencies:[Ln,Vn,Yd,Be,Mt,tt,st,Vs,Ls,zc,jI,q8,wc,Nh,Sr,i6,sn,Mr],styles:[`.matero-topmenu{--mat-tab-divider-height: 0;--mat-button-text-label-text-color: var(--topmenu-text-color);position:sticky;z-index:200;display:block;padding:.5rem;background-color:var(--topmenu-background-color);-webkit-backdrop-filter:blur(8px);backdrop-filter:blur(8px)}.matero-topmenu .mat-mdc-button{padding:0 1rem;white-space:nowrap}.matero-topmenu .mat-mdc-button.active{background-color:var(--topmenu-item-active-background-color)}.matero-topmenu .menu-icon,.matero-topmenu .menu-caret,.matero-topmenu .menu-name{vertical-align:middle}.matero-topmenu .mat-icon.menu-icon{width:1.125rem;height:1.125rem;margin-right:.5rem;font-size:1.125rem;line-height:1.125rem}[dir=rtl] .matero-topmenu .mat-icon.menu-icon{margin-right:auto;margin-left:.5rem}.matero-topmenu .mat-icon.menu-caret{margin-right:-.5rem}[dir=rtl] .matero-topmenu .mat-icon.menu-caret{margin-right:auto;margin-left:-.5rem}.matero-topmenu .menu-label,.matero-topmenu .menu-badge{padding:.25rem .5rem;margin-left:.5rem;font-size:.75rem;font-weight:700;line-height:1;color:#fff;background-color:#757575;border-radius:.375rem}[dir=rtl] .matero-topmenu .menu-label,[dir=rtl] .matero-topmenu .menu-badge{margin-right:.5rem;margin-left:auto}.matero-topmenu .menu-badge{border-radius:50rem}.matero-topmenu .mat-tab-nav-bar,.matero-topmenu .mat-tab-header{border-bottom:none}.matero-topmenu-panel .mat-mdc-menu-item.active{color:var(--topmenu-dropdown-item-active-text-color)} -`],encapsulation:2});let t=n;return t})();var $ge=["sidenav"],Wge=["content"];function Gge(t,n){if(t&1){let e=q();m(0,"app-header",13),S("toggleSidenav",function(){T(e),x();let r=Me(5);return I(r.toggle())})("toggleSidenavNotice",function(){T(e),x();let r=Me(8);return I(r.toggle())}),h()}t&2&&v("showBranding",!0)}function qge(t,n){if(t&1){let e=q();m(0,"app-header",14),S("toggleSidenav",function(){T(e),x();let r=Me(5);return I(r.toggle())})("toggleSidenavNotice",function(){T(e),x();let r=Me(8);return I(r.toggle())}),h()}if(t&2){let e=x();v("showToggle",!e.options.sidenavCollapsed&&e.options.navPos!=="top")("showBranding",e.options.navPos==="top")}}function Yge(t,n){t&1&&M(0,"app-topmenu")}var o6="screen and (max-width: 599px)",a6="screen and (min-width: 600px) and (max-width: 959px)",s6="screen and (min-width: 960px)",l6=(()=>{let n=class n{get themeColor(){return this.settings.getThemeColor()}get isOver(){return this.isMobileScreen}get contentWidthFix(){return this.isContentWidthFixed&&this.options.navPos==="side"&&this.options.sidenavOpened&&!this.isOver}get collapsedWidthFix(){return this.isCollapsedWidthFixed&&(this.options.navPos==="top"||this.options.sidenavOpened&&this.isOver)}constructor(){this.sidenav=Qn.required("sidenav"),this.content=Qn.required("content"),this.breakpointObserver=u(ll),this.router=u(Re),this.settings=u(ca),this.options=this.settings.options,this.isMobileScreen=!1,this.isContentWidthFixed=!0,this.isCollapsedWidthFixed=!1,this.layoutChangesSubscription=Te.EMPTY,this.layoutChangesSubscription=this.breakpointObserver.observe([o6,a6,s6]).subscribe(i=>{this.options.sidenavOpened=!0,this.isMobileScreen=i.breakpoints[o6],this.options.sidenavCollapsed=i.breakpoints[a6],this.isContentWidthFixed=i.breakpoints[s6]}),this.router.events.pipe(ce(i=>i instanceof xi)).subscribe(i=>{this.isOver&&this.sidenav().close(),this.content().scrollTo({top:0})})}ngOnDestroy(){this.layoutChangesSubscription.unsubscribe()}toggleCollapsed(){this.isContentWidthFixed=!1,this.options.sidenavCollapsed=!this.options.sidenavCollapsed,this.resetCollapsedState()}resetCollapsedState(i=400){setTimeout(()=>{this.settings.setOptions(this.options)},i)}onSidenavClosedStart(){this.isContentWidthFixed=!1}onSidenavOpenedChange(i){this.isCollapsedWidthFixed=!this.isOver,this.options.sidenavOpened=i,this.settings.setOptions(this.options)}updateOptions(i){this.options=i,this.settings.setOptions(i),this.settings.setDirection(),this.settings.setTheme()}};n.\u0275fac=function(r){return new(r||n)},n.\u0275cmp=E({type:n,selectors:[["app-admin-layout"]],viewQuery:function(r,o){r&1&&(Nn(o.sidenav,$ge,5),Nn(o.content,Wge,5)),r&2&&Go(2)},hostVars:4,hostBindings:function(r,o){r&2&&G("matero-content-width-fix",o.contentWidthFix)("matero-sidenav-collapsed-fix",o.collapsedWidthFix)},decls:16,vars:20,consts:[["sidenav",""],["sidenavNotice",""],["content",""],[1,"matero-container-wrap",3,"dir"],["ngProgressRouter",""],[3,"showBranding"],["autosize","","autoFocus","",1,"matero-container"],[1,"matero-sidenav",3,"openedChange","closedStart","mode","opened"],[3,"toggleCollapsed","closeSidenav","showToggle","showUser","showHeader","toggleChecked"],["position","end","mode","over"],[1,"matero-content"],[3,"showToggle","showBranding"],[1,"matero-page-content"],[3,"toggleSidenav","toggleSidenavNotice","showBranding"],[3,"toggleSidenav","toggleSidenavNotice","showToggle","showBranding"]],template:function(r,o){if(r&1){let a=q();m(0,"div",3),M(1,"ng-progress",4),V(2,Gge,1,1,"app-header",5),m(3,"mat-sidenav-container",6)(4,"mat-sidenav",7,0),S("openedChange",function(l){return T(a),I(o.onSidenavOpenedChange(l))})("closedStart",function(){return T(a),I(o.onSidenavClosedStart())}),m(6,"app-sidebar",8),S("toggleCollapsed",function(){return T(a),I(o.toggleCollapsed())})("closeSidenav",function(){T(a);let l=Me(5);return I(l.close())}),h()(),m(7,"mat-sidenav",9,1),M(9,"app-sidebar-notice"),h(),m(10,"mat-sidenav-content",10,2),V(12,qge,1,2,"app-header",11),V(13,Yge,1,0,"app-topmenu"),m(14,"main",12),M(15,"router-outlet"),h()()()()}r&2&&(G("matero-sidenav-collapsed",o.options.sidenavCollapsed&&o.options.navPos!=="top")("matero-navbar-side",o.options.navPos==="side")("matero-navbar-top",o.options.navPos==="top")("matero-header-above",o.options.headerPos==="above")("matero-header-fixed",o.options.headerPos==="fixed"),v("dir",o.options.dir),f(2),B(o.options.showHeader&&o.options.headerPos==="above"?2:-1),f(2),v("mode",o.isOver?"over":"side")("opened",o.options.navPos==="side"&&o.options.sidenavOpened&&!o.isOver),f(2),v("showToggle",!o.isOver)("showUser",!!o.options.showUserPanel)("showHeader",o.options.headerPos!=="above")("toggleChecked",!!o.options.sidenavCollapsed),f(6),B(o.options.showHeader&&o.options.headerPos!=="above"?12:-1),f(),B(o.options.navPos==="top"?13:-1))},dependencies:[al,ys,GL,u8,AI,d8,ZC,h8,f8,O8,r6,e6,Y8],styles:[`.matero-container-wrap,.matero-container{--mat-sidenav-content-background-color: transparent;height:100%}.matero-sidenav{--mat-sidenav-container-width: var(--sidenav-width);position:absolute;overflow-x:hidden;border-width:0!important;transition-property:transform,width!important}.matero-header-above .matero-container{height:calc(100% - var(--mat-toolbar-standard-height))!important}@media (max-width: 599px){.matero-header-above .matero-container{height:calc(100% - var(--mat-toolbar-mobile-height))!important}}.matero-header-above .matero-sidebar-main{height:100%!important;padding-top:.5rem}.matero-sidenav-collapsed .matero-sidenav,.matero-sidenav-collapsed-fix .matero-sidenav{width:var(--sidenav-collapsed-width)}.matero-sidenav-collapsed .matero-sidenav .menu-name,.matero-sidenav-collapsed .matero-sidenav .menu-label,.matero-sidenav-collapsed .matero-sidenav .menu-badge,.matero-sidenav-collapsed .matero-sidenav .menu-caret,.matero-sidenav-collapsed .matero-sidenav .matero-user-panel-info,.matero-sidenav-collapsed-fix .matero-sidenav .menu-name,.matero-sidenav-collapsed-fix .matero-sidenav .menu-label,.matero-sidenav-collapsed-fix .matero-sidenav .menu-badge,.matero-sidenav-collapsed-fix .matero-sidenav .menu-caret,.matero-sidenav-collapsed-fix .matero-sidenav .matero-user-panel-info{opacity:0}.matero-sidenav-collapsed .matero-sidenav .menu-icon.submenu-icon,.matero-sidenav-collapsed-fix .matero-sidenav .menu-icon.submenu-icon{opacity:1}.matero-sidenav-collapsed .matero-sidenav .matero-user-panel-avatar,.matero-sidenav-collapsed-fix .matero-sidenav .matero-user-panel-avatar{transform:scale(.5)}.matero-sidenav-collapsed .matero-sidenav:hover,.matero-sidenav-collapsed-fix .matero-sidenav:hover{width:var(--sidenav-width)}.matero-sidenav-collapsed .matero-sidenav:hover .menu-name,.matero-sidenav-collapsed .matero-sidenav:hover .menu-label,.matero-sidenav-collapsed .matero-sidenav:hover .menu-badge,.matero-sidenav-collapsed .matero-sidenav:hover .menu-caret,.matero-sidenav-collapsed .matero-sidenav:hover .matero-user-panel-info,.matero-sidenav-collapsed-fix .matero-sidenav:hover .menu-name,.matero-sidenav-collapsed-fix .matero-sidenav:hover .menu-label,.matero-sidenav-collapsed-fix .matero-sidenav:hover .menu-badge,.matero-sidenav-collapsed-fix .matero-sidenav:hover .menu-caret,.matero-sidenav-collapsed-fix .matero-sidenav:hover .matero-user-panel-info{opacity:1}.matero-sidenav-collapsed .matero-sidenav:hover .menu-icon.submenu-icon,.matero-sidenav-collapsed-fix .matero-sidenav:hover .menu-icon.submenu-icon{opacity:0}.matero-sidenav-collapsed .matero-sidenav:hover .matero-user-panel-avatar,.matero-sidenav-collapsed-fix .matero-sidenav:hover .matero-user-panel-avatar{transform:scale(1)}.matero-sidenav-collapsed .matero-content{margin-left:var(--sidenav-collapsed-width)!important}[dir=rtl] .matero-sidenav-collapsed .matero-content,.matero-sidenav-collapsed[dir=rtl] .matero-content{margin-right:var(--sidenav-collapsed-width)!important;margin-left:auto!important}.matero-navbar-top .matero-topmenu{top:0}.matero-navbar-top .matero-branding{margin-left:1rem}[dir=rtl] .matero-navbar-top .matero-branding{margin-right:1rem;margin-left:auto}.matero-header-fixed .matero-header{position:sticky;top:0}.matero-header-fixed .matero-topmenu{top:var(--mat-toolbar-standard-height)}@media (max-width: 599px){.matero-header-fixed .matero-topmenu{top:var(--mat-toolbar-mobile-height)}}.matero-content-width-fix .matero-content{margin-left:var(--sidenav-width)!important}[dir=rtl] .matero-content-width-fix .matero-content{margin-right:var(--sidenav-width)!important;margin-left:auto!important}.matero-page-content{position:relative;padding:var(--gutter)}.matero-header+.matero-page-content,.matero-header-above .matero-page-content,.matero-navbar-top .matero-page-content{padding-top:0} -`],encapsulation:2});let t=n;return t})();var c6=(()=>{let n=class n{};n.\u0275fac=function(r){return new(r||n)},n.\u0275cmp=E({type:n,selectors:[["app-auth-layout"]],decls:2,vars:0,consts:[[1,"matero-auth-container"]],template:function(r,o){r&1&&(m(0,"div",0),M(1,"router-outlet"),h())},dependencies:[al],styles:[`.matero-auth-container{position:relative;display:flex;justify-content:center;min-height:100%;background-image:radial-gradient(at 97% 21%,hsla(125,98%,72%,.3) 0,transparent 50%),radial-gradient(at 52% 99%,hsla(354,98%,61%,.3) 0,transparent 50%),radial-gradient(at 10% 29%,hsla(256,96%,67%,.3) 0,transparent 50%),radial-gradient(at 97% 96%,hsla(38,60%,74%,.3) 0,transparent 50%),radial-gradient(at 33% 50%,hsla(222,67%,73%,.3) 0,transparent 50%),radial-gradient(at 79% 53%,hsla(343,68%,79%,.3) 0,transparent 50%)} -`],encapsulation:2});let t=n;return t})();var Qge=["determinateSpinner"];function Kge(t,n){if(t&1&&(Zt(),m(0,"svg",11),M(1,"circle",12),h()),t&2){let e=x();X("viewBox",e._viewBox()),f(),Et("stroke-dasharray",e._strokeCircumference(),"px")("stroke-dashoffset",e._strokeCircumference()/2,"px")("stroke-width",e._circleStrokeWidth(),"%"),X("r",e._circleRadius())}}var Zge=new O("mat-progress-spinner-default-options",{providedIn:"root",factory:Xge});function Xge(){return{diameter:d6}}var d6=100,Jge=10,fi=(()=>{class t{_elementRef=u(Y);_noopAnimations;get color(){return this._color||this._defaultColor}set color(e){this._color=e}_color;_defaultColor="primary";_determinateCircle;constructor(){let e=u(Zge),i=vS(),r=this._elementRef.nativeElement;this._noopAnimations=i==="di-disabled"&&!!e&&!e._forceAnimations,this.mode=r.nodeName.toLowerCase()==="mat-spinner"?"indeterminate":"determinate",!this._noopAnimations&&i==="reduced-motion"&&r.classList.add("mat-progress-spinner-reduced-motion"),e&&(e.color&&(this.color=this._defaultColor=e.color),e.diameter&&(this.diameter=e.diameter),e.strokeWidth&&(this.strokeWidth=e.strokeWidth))}mode;get value(){return this.mode==="determinate"?this._value:0}set value(e){this._value=Math.max(0,Math.min(100,e||0))}_value=0;get diameter(){return this._diameter}set diameter(e){this._diameter=e||0}_diameter=d6;get strokeWidth(){return this._strokeWidth??this.diameter/10}set strokeWidth(e){this._strokeWidth=e||0}_strokeWidth;_circleRadius(){return(this.diameter-Jge)/2}_viewBox(){let e=this._circleRadius()*2+this.strokeWidth;return`0 0 ${e} ${e}`}_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(i){return new(i||t)};static \u0275cmp=E({type:t,selectors:[["mat-progress-spinner"],["mat-spinner"]],viewQuery:function(i,r){if(i&1&&ie(Qge,5),i&2){let o;j(o=H())&&(r._determinateCircle=o.first)}},hostAttrs:["role","progressbar","tabindex","-1",1,"mat-mdc-progress-spinner","mdc-circular-progress"],hostVars:18,hostBindings:function(i,r){i&2&&(X("aria-valuemin",0)("aria-valuemax",100)("aria-valuenow",r.mode==="determinate"?r.value:null)("mode",r.mode),nt("mat-"+r.color),Et("width",r.diameter,"px")("height",r.diameter,"px")("--mat-progress-spinner-size",r.diameter+"px")("--mat-progress-spinner-active-indicator-width",r.diameter+"px"),G("_mat-animation-noopable",r._noopAnimations)("mdc-circular-progress--indeterminate",r.mode==="indeterminate"))},inputs:{color:"color",mode:"mode",value:[2,"value","value",dt],diameter:[2,"diameter","diameter",dt],strokeWidth:[2,"strokeWidth","strokeWidth",dt]},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(i,r){if(i&1&&(A(0,Kge,2,8,"ng-template",null,0,vi),m(2,"div",2,1),Zt(),m(4,"svg",3),M(5,"circle",4),h()(),Wo(),m(6,"div",5)(7,"div",6)(8,"div",7),Ge(9,8),h(),m(10,"div",9),Ge(11,8),h(),m(12,"div",10),Ge(13,8),h()()()),i&2){let o=Me(1);f(4),X("viewBox",r._viewBox()),f(),Et("stroke-dasharray",r._strokeCircumference(),"px")("stroke-dashoffset",r._strokeDashOffset(),"px")("stroke-width",r._circleStrokeWidth(),"%"),X("r",r._circleRadius()),f(4),v("ngTemplateOutlet",o),f(2),v("ngTemplateOutlet",o),f(2),v("ngTemplateOutlet",o)}},dependencies:[Ln],styles:[`.mat-mdc-progress-spinner{--mat-progress-spinner-animation-multiplier: 1;display:block;overflow:hidden;line-height:0;position:relative;direction:ltr;transition:opacity 250ms cubic-bezier(0.4, 0, 0.6, 1)}.mat-mdc-progress-spinner circle{stroke-width:var(--mat-progress-spinner-active-indicator-width, 4px)}.mat-mdc-progress-spinner._mat-animation-noopable,.mat-mdc-progress-spinner._mat-animation-noopable .mdc-circular-progress__determinate-circle{transition:none !important}.mat-mdc-progress-spinner._mat-animation-noopable .mdc-circular-progress__indeterminate-circle-graphic,.mat-mdc-progress-spinner._mat-animation-noopable .mdc-circular-progress__spinner-layer,.mat-mdc-progress-spinner._mat-animation-noopable .mdc-circular-progress__indeterminate-container{animation:none !important}.mat-mdc-progress-spinner._mat-animation-noopable .mdc-circular-progress__indeterminate-container circle{stroke-dasharray:0 !important}@media(forced-colors: active){.mat-mdc-progress-spinner .mdc-circular-progress__indeterminate-circle-graphic,.mat-mdc-progress-spinner .mdc-circular-progress__determinate-circle{stroke:currentColor;stroke:CanvasText}}.mat-progress-spinner-reduced-motion{--mat-progress-spinner-animation-multiplier: 1.25}.mdc-circular-progress__determinate-container,.mdc-circular-progress__indeterminate-circle-graphic,.mdc-circular-progress__indeterminate-container,.mdc-circular-progress__spinner-layer{position:absolute;width:100%;height:100%}.mdc-circular-progress__determinate-container{transform:rotate(-90deg)}.mdc-circular-progress--indeterminate .mdc-circular-progress__determinate-container{opacity:0}.mdc-circular-progress__indeterminate-container{font-size:0;letter-spacing:0;white-space:nowrap;opacity:0}.mdc-circular-progress--indeterminate .mdc-circular-progress__indeterminate-container{opacity:1;animation:mdc-circular-progress-container-rotate calc(1568.2352941176ms*var(--mat-progress-spinner-animation-multiplier)) linear infinite}.mdc-circular-progress__determinate-circle-graphic,.mdc-circular-progress__indeterminate-circle-graphic{fill:rgba(0,0,0,0)}.mat-mdc-progress-spinner .mdc-circular-progress__determinate-circle,.mat-mdc-progress-spinner .mdc-circular-progress__indeterminate-circle-graphic{stroke:var(--mat-progress-spinner-active-indicator-color, var(--mat-sys-primary))}@media(forced-colors: active){.mat-mdc-progress-spinner .mdc-circular-progress__determinate-circle,.mat-mdc-progress-spinner .mdc-circular-progress__indeterminate-circle-graphic{stroke:CanvasText}}.mdc-circular-progress__determinate-circle{transition:stroke-dashoffset 500ms cubic-bezier(0, 0, 0.2, 1)}.mdc-circular-progress__gap-patch{position:absolute;top:0;left:47.5%;box-sizing:border-box;width:5%;height:100%;overflow:hidden}.mdc-circular-progress__gap-patch .mdc-circular-progress__indeterminate-circle-graphic{left:-900%;width:2000%;transform:rotate(180deg)}.mdc-circular-progress__circle-clipper .mdc-circular-progress__indeterminate-circle-graphic{width:200%}.mdc-circular-progress__circle-right .mdc-circular-progress__indeterminate-circle-graphic{left:-100%}.mdc-circular-progress--indeterminate .mdc-circular-progress__circle-left .mdc-circular-progress__indeterminate-circle-graphic{animation:mdc-circular-progress-left-spin calc(1333ms*var(--mat-progress-spinner-animation-multiplier)) cubic-bezier(0.4, 0, 0.2, 1) infinite both}.mdc-circular-progress--indeterminate .mdc-circular-progress__circle-right .mdc-circular-progress__indeterminate-circle-graphic{animation:mdc-circular-progress-right-spin calc(1333ms*var(--mat-progress-spinner-animation-multiplier)) cubic-bezier(0.4, 0, 0.2, 1) infinite both}.mdc-circular-progress__circle-clipper{display:inline-flex;position:relative;width:50%;height:100%;overflow:hidden}.mdc-circular-progress--indeterminate .mdc-circular-progress__spinner-layer{animation:mdc-circular-progress-spinner-layer-rotate calc(5332ms*var(--mat-progress-spinner-animation-multiplier)) cubic-bezier(0.4, 0, 0.2, 1) infinite both}@keyframes mdc-circular-progress-container-rotate{to{transform:rotate(360deg)}}@keyframes mdc-circular-progress-spinner-layer-rotate{12.5%{transform:rotate(135deg)}25%{transform:rotate(270deg)}37.5%{transform:rotate(405deg)}50%{transform:rotate(540deg)}62.5%{transform:rotate(675deg)}75%{transform:rotate(810deg)}87.5%{transform:rotate(945deg)}100%{transform:rotate(1080deg)}}@keyframes mdc-circular-progress-left-spin{from{transform:rotate(265deg)}50%{transform:rotate(130deg)}to{transform:rotate(265deg)}}@keyframes mdc-circular-progress-right-spin{from{transform:rotate(-265deg)}50%{transform:rotate(-130deg)}to{transform:rotate(-265deg)}} -`],encapsulation:2,changeDetection:0})}return t})();var gi=(()=>{class t{static \u0275fac=function(i){return new(i||t)};static \u0275mod=ee({type:t});static \u0275inj=J({imports:[De]})}return t})();function e_e(t,n){if(t&1){let e=q();m(0,"div",1)(1,"button",2),S("click",function(){T(e);let r=x();return I(r.action())}),g(2),h()()}if(t&2){let e=x();f(2),pe(" ",e.data.action," ")}}var t_e=["label"];function i_e(t,n){}var n_e=Math.pow(2,31)-1,x_=class{_overlayRef;instance;containerInstance;_afterDismissed=new z;_afterOpened=new z;_onAction=new z;_durationTimeoutId;_dismissedByAction=!1;constructor(n,e){this._overlayRef=e,this.containerInstance=n,n._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(n){this._durationTimeoutId=setTimeout(()=>this.dismiss(),Math.min(n,n_e))}_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}},u6=new O("MatSnackBarData"),up=class{politeness="polite";announcementMessage="";viewContainerRef;duration=0;panelClass;direction;data=null;horizontalPosition="center";verticalPosition="bottom"},r_e=(()=>{class t{static \u0275fac=function(i){return new(i||t)};static \u0275dir=P({type:t,selectors:[["","matSnackBarLabel",""]],hostAttrs:[1,"mat-mdc-snack-bar-label","mdc-snackbar__label"]})}return t})(),o_e=(()=>{class t{static \u0275fac=function(i){return new(i||t)};static \u0275dir=P({type:t,selectors:[["","matSnackBarActions",""]],hostAttrs:[1,"mat-mdc-snack-bar-actions","mdc-snackbar__actions"]})}return t})(),a_e=(()=>{class t{static \u0275fac=function(i){return new(i||t)};static \u0275dir=P({type:t,selectors:[["","matSnackBarAction",""]],hostAttrs:[1,"mat-mdc-snack-bar-action","mdc-snackbar__action"]})}return t})(),m6=(()=>{class t{snackBarRef=u(x_);data=u(u6);constructor(){}action(){this.snackBarRef.dismissWithAction()}get hasAction(){return!!this.data.action}static \u0275fac=function(i){return new(i||t)};static \u0275cmp=E({type:t,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(i,r){i&1&&(m(0,"div",0),g(1),h(),V(2,e_e,3,1,"div",1)),i&2&&(f(),pe(" ",r.data.message,` -`),f(),B(r.hasAction?2:-1))},dependencies:[Mt,r_e,o_e,a_e],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 t})(),zI="_mat-snack-bar-enter",UI="_mat-snack-bar-exit",s_e=(()=>{class t extends mc{_ngZone=u(ae);_elementRef=u(Y);_changeDetectorRef=u(ye);_platform=u(qe);_animationsDisabled=Ye();snackBarConfig=u(up);_document=u(_e);_trackedModals=new Set;_enterFallback;_exitFallback;_injector=u(de);_announceDelay=150;_announceTimeoutId;_destroyed=!1;_portalOutlet;_onAnnounce=new z;_onExit=new z;_onEnter=new z;_animationState="void";_live;_label;_role;_liveElementId=u(Ze).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 i=this._portalOutlet.attachComponentPortal(e);return this._afterPortalAttached(),i}attachTemplatePortal(e){this._assertNotAttached();let i=this._portalOutlet.attachTemplatePortal(e);return this._afterPortalAttached(),i}attachDomPortal=e=>{this._assertNotAttached();let i=this._portalOutlet.attachDomPortal(e);return this._afterPortalAttached(),i};onAnimationEnd(e){e===UI?this._completeExit():e===zI&&(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?gt(()=>{this._ngZone.run(()=>queueMicrotask(()=>this.onAnimationEnd(zI)))},{injector:this._injector}):(clearTimeout(this._enterFallback),this._enterFallback=setTimeout(()=>{this._elementRef.nativeElement.classList.add("mat-snack-bar-fallback-visible"),this.onAnimationEnd(zI)},200)))}exit(){return this._destroyed?Q(void 0):(this._ngZone.run(()=>{this._animationState="hidden",this._changeDetectorRef.markForCheck(),this._elementRef.nativeElement.setAttribute("mat-exit",""),clearTimeout(this._announceTimeoutId),this._animationsDisabled?gt(()=>{this._ngZone.run(()=>queueMicrotask(()=>this.onAnimationEnd(UI)))},{injector:this._injector}):(clearTimeout(this._exitFallback),this._exitFallback=setTimeout(()=>this.onAnimationEnd(UI),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,i=this.snackBarConfig.panelClass;i&&(Array.isArray(i)?i.forEach(a=>e.classList.add(a)):e.classList.add(i)),this._exposeToModals();let r=this._label.nativeElement,o="mdc-snackbar__label";r.classList.toggle(o,!r.querySelector(`.${o}`))}_exposeToModals(){let e=this._liveElementId,i=this._document.querySelectorAll('body > .cdk-overlay-container [aria-modal="true"]');for(let r=0;r{let i=e.getAttribute("aria-owns");if(i){let r=i.replace(this._liveElementId,"").trim();r.length>0?e.setAttribute("aria-owns",r):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,i=e.querySelector("[aria-hidden]"),r=e.querySelector("[aria-live]");if(i&&r){let o=null;this._platform.isBrowser&&document.activeElement instanceof HTMLElement&&i.contains(document.activeElement)&&(o=document.activeElement),i.removeAttribute("aria-hidden"),r.appendChild(i),o?.focus(),this._onAnnounce.next(),this._onAnnounce.complete()}},this._announceDelay)})}static \u0275fac=function(i){return new(i||t)};static \u0275cmp=E({type:t,selectors:[["mat-snack-bar-container"]],viewQuery:function(i,r){if(i&1&&(ie(wr,7),ie(t_e,7)),i&2){let o;j(o=H())&&(r._portalOutlet=o.first),j(o=H())&&(r._label=o.first)}},hostAttrs:[1,"mdc-snackbar","mat-mdc-snack-bar-container"],hostVars:6,hostBindings:function(i,r){i&1&&S("animationend",function(a){return r.onAnimationEnd(a.animationName)})("animationcancel",function(a){return r.onAnimationEnd(a.animationName)}),i&2&&G("mat-snack-bar-container-enter",r._animationState==="visible")("mat-snack-bar-container-exit",r._animationState==="hidden")("mat-snack-bar-container-animations-enabled",!r._animationsDisabled)},features:[le],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(i,r){i&1&&(m(0,"div",1)(1,"div",2,0)(3,"div",3),A(4,i_e,0,0,"ng-template",4),h(),M(5,"div"),h()()),i&2&&(f(5),X("aria-live",r._live)("role",r._role)("id",r._liveElementId))},dependencies:[wr],styles:[`@keyframes _mat-snack-bar-enter{from{transform:scale(0.8);opacity:0}to{transform:scale(1);opacity:1}}@keyframes _mat-snack-bar-exit{from{opacity:1}to{opacity:0}}.mat-mdc-snack-bar-container{display:flex;align-items:center;justify-content:center;box-sizing:border-box;-webkit-tap-highlight-color:rgba(0,0,0,0);margin:8px}.mat-mdc-snack-bar-handset .mat-mdc-snack-bar-container{width:100vw}.mat-snack-bar-container-animations-enabled{opacity:0}.mat-snack-bar-container-animations-enabled.mat-snack-bar-fallback-visible{opacity:1}.mat-snack-bar-container-animations-enabled.mat-snack-bar-container-enter{animation:_mat-snack-bar-enter 150ms cubic-bezier(0, 0, 0.2, 1) forwards}.mat-snack-bar-container-animations-enabled.mat-snack-bar-container-exit{animation:_mat-snack-bar-exit 75ms cubic-bezier(0.4, 0, 1, 1) forwards}.mat-mdc-snackbar-surface{box-shadow:0px 3px 5px -1px rgba(0, 0, 0, 0.2), 0px 6px 10px 0px rgba(0, 0, 0, 0.14), 0px 1px 18px 0px rgba(0, 0, 0, 0.12);display:flex;align-items:center;justify-content:flex-start;box-sizing:border-box;padding-left:0;padding-right:8px}[dir=rtl] .mat-mdc-snackbar-surface{padding-right:0;padding-left:8px}.mat-mdc-snack-bar-container .mat-mdc-snackbar-surface{min-width:344px;max-width:672px}.mat-mdc-snack-bar-handset .mat-mdc-snackbar-surface{width:100%;min-width:0}@media(forced-colors: active){.mat-mdc-snackbar-surface{outline:solid 1px}}.mat-mdc-snack-bar-container .mat-mdc-snackbar-surface{color:var(--mat-snack-bar-supporting-text-color, var(--mat-sys-inverse-on-surface));border-radius:var(--mat-snack-bar-container-shape, var(--mat-sys-corner-extra-small));background-color:var(--mat-snack-bar-container-color, var(--mat-sys-inverse-surface))}.mdc-snackbar__label{width:100%;flex-grow:1;box-sizing:border-box;margin:0;padding:14px 8px 14px 16px}[dir=rtl] .mdc-snackbar__label{padding-left:8px;padding-right:16px}.mat-mdc-snack-bar-container .mdc-snackbar__label{font-family:var(--mat-snack-bar-supporting-text-font, var(--mat-sys-body-medium-font));font-size:var(--mat-snack-bar-supporting-text-size, var(--mat-sys-body-medium-size));font-weight:var(--mat-snack-bar-supporting-text-weight, var(--mat-sys-body-medium-weight));line-height:var(--mat-snack-bar-supporting-text-line-height, var(--mat-sys-body-medium-line-height))}.mat-mdc-snack-bar-actions{display:flex;flex-shrink:0;align-items:center;box-sizing:border-box}.mat-mdc-snack-bar-handset,.mat-mdc-snack-bar-container,.mat-mdc-snack-bar-label{flex:1 1 auto}.mat-mdc-snack-bar-container .mat-mdc-button.mat-mdc-snack-bar-action:not(:disabled){--mat-button-text-state-layer-color: currentColor;--mat-button-text-ripple-color: currentColor}.mat-mdc-snack-bar-container .mat-mdc-button.mat-mdc-snack-bar-action:not(:disabled).mat-unthemed{color:var(--mat-snack-bar-button-color, var(--mat-sys-inverse-primary))}.mat-mdc-snack-bar-container .mat-mdc-button.mat-mdc-snack-bar-action:not(:disabled) .mat-ripple-element{opacity:.1} -`],encapsulation:2})}return t})();function l_e(){return new up}var c_e=new O("mat-snack-bar-default-options",{providedIn:"root",factory:l_e}),ui=(()=>{class t{_live=u(Zf);_injector=u(de);_breakpointObserver=u(ll);_parentSnackBar=u(t,{optional:!0,skipSelf:!0});_defaultConfig=u(c_e);_animationsDisabled=Ye();_snackBarRefAtThisLevel=null;simpleSnackBarComponent=m6;snackBarContainerComponent=s_e;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,i){return this._attach(e,i)}openFromTemplate(e,i){return this._attach(e,i)}open(e,i="",r){let o=k(k({},this._defaultConfig),r);return o.data={message:e,action:i},o.announcementMessage===e&&(o.announcementMessage=void 0),this.openFromComponent(this.simpleSnackBarComponent,o)}dismiss(){this._openedSnackBarRef&&this._openedSnackBarRef.dismiss()}ngOnDestroy(){this._snackBarRefAtThisLevel&&this._snackBarRefAtThisLevel.dismiss()}_attachSnackBarContainer(e,i){let r=i&&i.viewContainerRef&&i.viewContainerRef.injector,o=de.create({parent:r||this._injector,providers:[{provide:up,useValue:i}]}),a=new to(this.snackBarContainerComponent,i.viewContainerRef,o),s=e.attach(a);return s.instance.snackBarConfig=i,s.instance}_attach(e,i){let r=k(k(k({},new up),this._defaultConfig),i),o=this._createOverlay(r),a=this._attachSnackBarContainer(o,r),s=new x_(a,o);if(e instanceof te){let l=new Dn(e,null,{$implicit:r.data,snackBarRef:s});s.instance=a.attachTemplatePortal(l)}else{let l=this._createInjector(r,s),c=new to(e,void 0,l),d=a.attachComponentPortal(c);s.instance=d.instance}return this._breakpointObserver.observe(Vv.HandsetPortrait).pipe(we(o.detachments())).subscribe(l=>{o.overlayElement.classList.toggle(this.handsetCssClass,l.matches)}),r.announcementMessage&&a._onAnnounce.subscribe(()=>{this._live.announce(r.announcementMessage,r.politeness)}),this._animateSnackBar(s,r),this._openedSnackBarRef=s,this._openedSnackBarRef}_animateSnackBar(e,i){e.afterDismissed().subscribe(()=>{this._openedSnackBarRef==e&&(this._openedSnackBarRef=null),i.announcementMessage&&this._live.clear()}),i.duration&&i.duration>0&&e.afterOpened().subscribe(()=>e._dismissAfter(i.duration)),this._openedSnackBarRef?(this._openedSnackBarRef.afterDismissed().subscribe(()=>{e.containerInstance.enter()}),this._openedSnackBarRef.dismiss()):e.containerInstance.enter()}_createOverlay(e){let i=new Hr;i.direction=e.direction;let r=Es(this._injector),o=e.direction==="rtl",a=e.horizontalPosition==="left"||e.horizontalPosition==="start"&&!o||e.horizontalPosition==="end"&&o,s=!a&&e.horizontalPosition!=="center";return a?r.left("0"):s?r.right("0"):r.centerHorizontally(),e.verticalPosition==="top"?r.top("0"):r.bottom("0"),i.positionStrategy=r,i.disableAnimations=this._animationsDisabled,zr(this._injector,i)}_createInjector(e,i){let r=e&&e.viewContainerRef&&e.viewContainerRef.injector;return de.create({parent:r||this._injector,providers:[{provide:x_,useValue:i},{provide:u6,useValue:e.data}]})}static \u0275fac=function(i){return new(i||t)};static \u0275prov=R({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();var _i=(()=>{class t{static \u0275fac=function(i){return new(i||t)};static \u0275mod=ee({type:t});static \u0275inj=J({providers:[ui],imports:[nr,ko,Be,De,m6,De]})}return t})();var Wn=(()=>{let n=class n{constructor(){this.authService=u(Ot),this.templateRef=u(te),this.viewContainer=u(ot)}set appHasRole(i){this.updateView(i)}ngOnInit(){this.subscription=this.authService.isAuthenticated$.subscribe(()=>{let i=this.roles;i&&this.updateView(i)})}ngOnDestroy(){this.subscription?.unsubscribe()}updateView(i){this.roles=i,this.viewContainer.clear(),this.checkRole(i)&&this.viewContainer.createEmbeddedView(this.templateRef)}checkRole(i){return this.authService.isAuthenticated()?typeof i=="string"?this.authService.hasRole(i):Array.isArray(i)?this.authService.hasAnyRole(i):!1:!1}};n.\u0275fac=function(r){return new(r||n)},n.\u0275dir=P({type:n,selectors:[["","appHasRole",""]],inputs:{appHasRole:"appHasRole"}});let t=n;return t})();var Uc=(()=>{let n=class n{constructor(){this.http=u(xr),this.apiUrl=Qi.apiUrl}chat(i,r){return this.http.post(`${this.apiUrl}/ai/chat`,{message:i,systemPrompt:r})}hrInsight(i){return this.http.post(`${this.apiUrl}/ai/hr-insight`,{question:i})}nlEmployeeSearch(i){return this.http.post(`${this.apiUrl}/ai/nl-employee-search`,{query:i})}semanticPositionSearch(i,r=10){return this.http.post(`${this.apiUrl}/positions/semantic-search`,{queryText:i,topK:r})}};n.\u0275fac=function(r){return new(r||n)},n.\u0275prov=R({token:n,factory:n.\u0275fac,providedIn:"root"});let t=n;return t})();var ma=class{constructor(){this.http=u(xr),this.apiUrl=Qi.apiUrl}getAll(n){let e=this.buildHttpParams(n);return this.http.get(`${this.apiUrl}/${this.endpoint}`,{params:e}).pipe(se(i=>i.value))}getAllPaged(n){let e=this.buildHttpParams(n);return this.http.get(`${this.apiUrl}/${this.endpoint}`,{params:e})}getById(n){return this.http.get(`${this.apiUrl}/${this.endpoint}/${n}`).pipe(se(e=>e.value))}create(n){return this.http.post(`${this.apiUrl}/${this.endpoint}`,n).pipe(se(e=>e&&"value"in e&&typeof e.value=="string"?{id:e.value}:e))}update(n,e){return this.http.put(`${this.apiUrl}/${this.endpoint}/${n}`,e)}delete(n){return this.http.delete(`${this.apiUrl}/${this.endpoint}/${n}`)}buildHttpParams(n){let e=new Zn;return n&&Object.keys(n).forEach(i=>{let r=n[i];r!=null&&(e=e.set(i,r.toString()))}),e}};var h6=(()=>{let n=class n extends ma{constructor(){super(...arguments),this.endpoint="Dashboard"}getDashboardMetrics(){return this.http.get(`${this.apiUrl}/${this.endpoint}/Metrics`).pipe(se(i=>{if(i.isSuccess&&i.value)return i.value;throw new Error(i.message||"Failed to load dashboard metrics")}))}};n.\u0275fac=(()=>{let i;return function(o){return(i||(i=ge(n)))(o||n)}})(),n.\u0275prov=R({token:n,factory:n.\u0275fac,providedIn:"root"});let t=n;return t})();var Bs=(()=>{let n=class n extends ma{constructor(){super(...arguments),this.endpoint="Departments"}createDepartment(i){return this.create(i)}updateDepartment(i){return this.update(i.id,i)}};n.\u0275fac=(()=>{let i;return function(o){return(i||(i=ge(n)))(o||n)}})(),n.\u0275prov=R({token:n,factory:n.\u0275fac,providedIn:"root"});let t=n;return t})();var mp=(()=>{let n=class n extends ma{constructor(){super(...arguments),this.endpoint="Employees"}createEmployee(i){return this.create(i)}updateEmployee(i){return this.update(i.id,i)}};n.\u0275fac=(()=>{let i;return function(o){return(i||(i=ge(n)))(o||n)}})(),n.\u0275prov=R({token:n,factory:n.\u0275fac,providedIn:"root"});let t=n;return t})();var $c=(()=>{let n=class n extends ma{constructor(){super(...arguments),this.endpoint="Positions"}createPosition(i){return this.create(i)}updatePosition(i){return this.update(i.id,i)}getAllPaged(i){let r=this.buildHttpParams(i);return this.http.get(`${this.apiUrl}/${this.endpoint}`,{params:r})}addMockPositions(i){return this.http.post(`${this.apiUrl}/${this.endpoint}/AddMock`,i)}};n.\u0275fac=(()=>{let i;return function(o){return(i||(i=ge(n)))(o||n)}})(),n.\u0275prov=R({token:n,factory:n.\u0275fac,providedIn:"root"});let t=n;return t})();var Wc=(()=>{let n=class n extends ma{constructor(){super(...arguments),this.endpoint="SalaryRanges"}createSalaryRange(i){return this.create(i)}updateSalaryRange(i){return this.update(i.id,i)}};n.\u0275fac=(()=>{let i;return function(o){return(i||(i=ge(n)))(o||n)}})(),n.\u0275prov=R({token:n,factory:n.\u0275fac,providedIn:"root"});let t=n;return t})();var p6=(()=>{let n=class n{decodeToken(i){if(!i)return null;try{let r=i.split(".");if(r.length!==3)return console.warn("Invalid JWT token format"),null;let o=this.decodeBase64Url(r[0]),a=this.decodeBase64Url(r[1]),s=r[2],l=JSON.parse(a),c=l.iat?new Date(l.iat*1e3):void 0,d=l.exp?new Date(l.exp*1e3):void 0,p=new Date,_=d?d24){let s=Math.floor(o/24);return`Expires in ${s} day${s>1?"s":""}`}else return o>0?`Expires in ${o}h ${a}m`:a>0?`Expires in ${a}m`:"Expires soon"}};n.\u0275fac=function(r){return new(r||n)},n.\u0275prov=R({token:n,factory:n.\u0275fac,providedIn:"root"});let t=n;return t})();var d_e=()=>["HRAdmin","Manager"],f6=()=>["HRAdmin"];function u_e(t,n){t&1&&(m(0,"div",9),M(1,"mat-spinner",10),m(2,"span"),g(3,"Analyzing workforce data\u2026"),h()())}function m_e(t,n){if(t&1&&(m(0,"p",11),g(1),h()),t&2){let e=x(2);f(),pe(" ",e.aiInsight," ")}}function h_e(t,n){if(t&1&&(m(0,"p",12)(1,"mat-icon"),g(2,"warning"),h(),g(3),h()),t&2){let e=x(2);f(3),pe(" ",e.aiInsightError," ")}}function p_e(t,n){if(t&1&&(m(0,"mat-card",4)(1,"mat-card-header")(2,"mat-icon",5),g(3,"smart_toy"),h(),m(4,"mat-card-title"),g(5,"AI Workforce Insights"),h(),m(6,"mat-card-subtitle"),g(7,"Generated from live dashboard metrics"),h()(),m(8,"mat-card-content"),A(9,u_e,4,0,"div",6)(10,m_e,2,1,"p",7)(11,h_e,4,1,"p",8),h()()),t&2){let e=x();f(9),v("ngIf",e.aiInsightLoading),f(),v("ngIf",!e.aiInsightLoading&&e.aiInsight),f(),v("ngIf",!e.aiInsightLoading&&e.aiInsightError)}}function f_e(t,n){t&1&&(m(0,"div",13),M(1,"mat-spinner"),h())}function g_e(t,n){if(t&1&&(m(0,"div",31),M(1,"canvas",32),h()),t&2){let e=x(2);f(),v("data",e.departmentChartData)("options",e.departmentChartOptions)}}function __e(t,n){t&1&&(m(0,"div",33)(1,"mat-icon"),g(2,"pie_chart"),h(),m(3,"p"),g(4,"No department data available"),h()())}function b_e(t,n){if(t&1&&(m(0,"div",31),M(1,"canvas",34),h()),t&2){let e=x(2);f(),v("data",e.positionChartData)("options",e.positionChartOptions)}}function v_e(t,n){t&1&&(m(0,"div",33)(1,"mat-icon"),g(2,"bar_chart"),h(),m(3,"p"),g(4,"No position data available"),h()())}function y_e(t,n){if(t&1&&(m(0,"div",31),M(1,"canvas",35),h()),t&2){let e=x(2);f(),v("data",e.genderChartData)("options",e.genderChartOptions)}}function x_e(t,n){t&1&&(m(0,"div",33)(1,"mat-icon"),g(2,"donut_large"),h(),m(3,"p"),g(4,"No gender data available"),h()())}function C_e(t,n){if(t&1&&(m(0,"div",31),M(1,"canvas",34),h()),t&2){let e=x(2);f(),v("data",e.salaryChartData)("options",e.salaryChartOptions)}}function w_e(t,n){t&1&&(m(0,"div",33)(1,"mat-icon"),g(2,"bar_chart"),h(),m(3,"p"),g(4,"No salary range data available"),h()())}function D_e(t,n){if(t&1){let e=q();m(0,"mat-list-item",37),S("click",function(){let r=T(e).$implicit,o=x(3);return I(o.navigateToEmployee(r.id))}),m(1,"mat-icon",38),g(2,"person"),h(),m(3,"div",39),g(4),h(),m(5,"div",40),g(6),h(),m(7,"div",41),g(8),ue(9,"date"),h()()}if(t&2){let e=n.$implicit;f(4),N(e.fullName),f(2),Ld("",e.positionTitle," \u2022 ",e.departmentName),f(2),N(Ei(9,4,e.createdAt,"MMM d, y"))}}function E_e(t,n){if(t&1&&(m(0,"mat-list"),A(1,D_e,10,7,"mat-list-item",36),h()),t&2){let e=x(2);f(),v("ngForOf",e.metrics.recentEmployees)}}function M_e(t,n){t&1&&(m(0,"div",33)(1,"mat-icon"),g(2,"people_outline"),h(),m(3,"p"),g(4,"No recent employees"),h()())}function S_e(t,n){if(t&1){let e=q();m(0,"button",46),S("click",function(){T(e);let r=x(3);return I(r.navigateToAddDepartment())}),m(1,"mat-icon"),g(2,"add_business"),h(),g(3," Add Department "),h()}}function k_e(t,n){if(t&1){let e=q();m(0,"button",46),S("click",function(){T(e);let r=x(3);return I(r.navigateToAddPosition())}),m(1,"mat-icon"),g(2,"work_outline"),h(),g(3," Add Position "),h()}}function T_e(t,n){if(t&1){let e=q();m(0,"div",42)(1,"mat-card")(2,"mat-card-header")(3,"mat-card-title"),g(4,"Quick Actions"),h()(),m(5,"mat-card-content")(6,"div",43)(7,"button",44),S("click",function(){T(e);let r=x(2);return I(r.navigateToAddEmployee())}),m(8,"mat-icon"),g(9,"person_add"),h(),g(10," Add Employee "),h(),A(11,S_e,4,0,"button",45)(12,k_e,4,0,"button",45),h()()()()}t&2&&(f(11),v("appHasRole",rt(2,f6)),f(),v("appHasRole",rt(3,f6)))}function I_e(t,n){if(t&1){let e=q();m(0,"div",14)(1,"div",15)(2,"mat-card",16)(3,"mat-card-content")(4,"div",17)(5,"mat-icon"),g(6,"people"),h()(),m(7,"div",18),g(8),h(),m(9,"div",19),g(10,"Total Employees"),h()()(),m(11,"mat-card",16)(12,"mat-card-content")(13,"div",17)(14,"mat-icon"),g(15,"business"),h()(),m(16,"div",18),g(17),h(),m(18,"div",19),g(19,"Departments"),h()()(),m(20,"mat-card",16)(21,"mat-card-content")(22,"div",17)(23,"mat-icon"),g(24,"work"),h()(),m(25,"div",18),g(26),h(),m(27,"div",19),g(28,"Positions"),h()()(),m(29,"mat-card",16)(30,"mat-card-content")(31,"div",17)(32,"mat-icon"),g(33,"attach_money"),h()(),m(34,"div",18),g(35),h(),m(36,"div",19),g(37,"Salary Ranges"),h()()()(),m(38,"div",20)(39,"mat-card",21)(40,"mat-card-content")(41,"div",22)(42,"mat-icon"),g(43,"person_add"),h()(),m(44,"div",18),g(45),h(),m(46,"div",19),g(47,"New Hires This Month"),h()()(),m(48,"mat-card",21)(49,"mat-card-content")(50,"div",22)(51,"mat-icon"),g(52,"payments"),h()(),m(53,"div",18),g(54),ue(55,"currency"),h(),m(56,"div",19),g(57,"Average Salary"),h()()()(),m(58,"div",23)(59,"mat-card",24)(60,"mat-card-header")(61,"mat-card-title"),g(62,"Employees by Department"),h()(),m(63,"mat-card-content"),A(64,g_e,2,2,"div",25)(65,__e,5,0,"div",26),h()(),m(66,"mat-card",24)(67,"mat-card-header")(68,"mat-card-title"),g(69,"Top 10 Positions"),h()(),m(70,"mat-card-content"),A(71,b_e,2,2,"div",25)(72,v_e,5,0,"div",26),h()()(),m(73,"div",23)(74,"mat-card",24)(75,"mat-card-header")(76,"mat-card-title"),g(77,"Gender Distribution"),h()(),m(78,"mat-card-content"),A(79,y_e,2,2,"div",25)(80,x_e,5,0,"div",26),h()(),m(81,"mat-card",24)(82,"mat-card-header")(83,"mat-card-title"),g(84,"Salary Range Distribution"),h()(),m(85,"mat-card-content"),A(86,C_e,2,2,"div",25)(87,w_e,5,0,"div",26),h()()(),m(88,"div",27)(89,"mat-card")(90,"mat-card-header")(91,"mat-card-title"),g(92,"Recent Employees"),h(),m(93,"button",28),S("click",function(){T(e);let r=x();return I(r.navigateToEmployees())}),g(94," View All "),m(95,"mat-icon"),g(96,"arrow_forward"),h()()(),m(97,"mat-card-content"),A(98,E_e,2,1,"mat-list",29)(99,M_e,5,0,"div",26),h()()(),A(100,T_e,13,4,"div",30),h()}if(t&2){let e=x();f(8),N(e.metrics.totalEmployees),f(9),N(e.metrics.totalDepartments),f(9),N(e.metrics.totalPositions),f(9),N(e.metrics.totalSalaryRanges),f(10),N(e.metrics.newHiresThisMonth),f(9),N(Tm(55,17,e.metrics.averageSalary,"USD","symbol","1.0-0")),f(10),v("ngIf",e.departmentChartData),f(),v("ngIf",!e.departmentChartData),f(6),v("ngIf",e.positionChartData),f(),v("ngIf",!e.positionChartData),f(7),v("ngIf",e.genderChartData),f(),v("ngIf",!e.genderChartData),f(6),v("ngIf",e.salaryChartData),f(),v("ngIf",!e.salaryChartData),f(11),v("ngIf",e.metrics.recentEmployees&&e.metrics.recentEmployees.length>0),f(),v("ngIf",!e.metrics.recentEmployees||e.metrics.recentEmployees.length===0),f(),v("appHasRole",rt(22,d_e))}}function A_e(t,n){if(t&1){let e=q();m(0,"div",47)(1,"mat-card")(2,"mat-card-content")(3,"div",33)(4,"mat-icon"),g(5,"error_outline"),h(),m(6,"p"),g(7,"Unable to load dashboard data"),h(),m(8,"button",44),S("click",function(){T(e);let r=x();return I(r.loadDashboardMetrics())}),m(9,"mat-icon"),g(10,"refresh"),h(),g(11," Retry "),h()()()()()}}var g6=(()=>{let n=class n{constructor(){this.dashboardService=u(h6),this.aiService=u(Uc),this.router=u(Re),this.snackBar=u(ui),this.destroy$=new z,this.loading=!0,this.metrics=null,this.aiEnabled=Qi.aiEnabled,this.aiInsight="",this.aiInsightLoading=!1,this.aiInsightError="",this.departmentChartData=null,this.departmentChartOptions={responsive:!0,maintainAspectRatio:!1,plugins:{legend:{position:"bottom"},tooltip:{callbacks:{label:i=>{let r=i.label||"",o=i.parsed||0;return`${r}: ${o} employees`}}}}},this.positionChartData=null,this.positionChartOptions={responsive:!0,maintainAspectRatio:!1,indexAxis:"y",plugins:{legend:{display:!1},tooltip:{callbacks:{label:i=>`${i.parsed.x} employees`}}},scales:{x:{beginAtZero:!0,ticks:{precision:0}}}},this.genderChartData=null,this.genderChartOptions={responsive:!0,maintainAspectRatio:!1,plugins:{legend:{position:"bottom"},tooltip:{callbacks:{label:i=>{let r=i.label||"",o=i.parsed||0;return`${r}: ${o} employees`}}}}},this.salaryChartData=null,this.salaryChartOptions={responsive:!0,maintainAspectRatio:!1,plugins:{legend:{display:!1},tooltip:{callbacks:{label:i=>`${i.parsed.y} employees`}}},scales:{y:{beginAtZero:!0,ticks:{precision:0}}}}}ngOnInit(){this.loadDashboardMetrics()}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete()}loadDashboardMetrics(){this.loading=!0,this.dashboardService.getDashboardMetrics().subscribe({next:i=>{this.metrics=i,this.prepareCharts(i),this.loading=!1,this.aiEnabled&&this.loadAiInsight(i)},error:i=>{console.error("Error loading dashboard metrics:",i),this.showMessage("Error loading dashboard data"),this.loading=!1}})}loadAiInsight(i){this.aiInsightLoading=!0,this.aiInsightError="",this.aiInsight="";let r=`You are an HR analytics assistant. Analyze the following workforce metrics and provide a concise executive summary (3-4 sentences) highlighting key observations, any notable patterns, and one actionable recommendation. Be specific \u2014 reference the actual numbers. - -Workforce Metrics: -${JSON.stringify(i,null,2)}`;this.aiService.chat("Provide a brief executive summary of the current workforce.",r).pipe(we(this.destroy$)).subscribe({next:a=>{this.aiInsight=a.reply,this.aiInsightLoading=!1},error:a=>{this.aiInsightError=a?.error?.detail??"AI insights unavailable. Is the API running with AiEnabled: true?",this.aiInsightLoading=!1}})}prepareCharts(i){this.prepareDepartmentChart(i.employeesByDepartment),this.preparePositionChart(i.employeesByPosition),this.prepareGenderChart(i.genderDistribution),this.prepareSalaryChart(i.employeesBySalaryRange)}prepareDepartmentChart(i){if(!i||i.length===0){this.departmentChartData=null;return}this.departmentChartData={labels:i.map(r=>r.departmentName),datasets:[{data:i.map(r=>r.employeeCount),backgroundColor:["#FF6384","#36A2EB","#FFCE56","#4BC0C0","#9966FF","#FF9F40","#FF6384","#C9CBCF"]}]}}preparePositionChart(i){if(!i||i.length===0){this.positionChartData=null;return}this.positionChartData={labels:i.map(r=>r.positionTitle),datasets:[{label:"Employees",data:i.map(r=>r.employeeCount),backgroundColor:"#36A2EB"}]}}prepareGenderChart(i){if(!i){this.genderChartData=null;return}this.genderChartData={labels:["Male","Female"],datasets:[{data:[i.male,i.female],backgroundColor:["#36A2EB","#FF6384"]}]}}prepareSalaryChart(i){if(!i||i.length===0){this.salaryChartData=null;return}this.salaryChartData={labels:i.map(r=>r.rangeName),datasets:[{label:"Employees",data:i.map(r=>r.employeeCount),backgroundColor:"#4BC0C0"}]}}navigateToAddEmployee(){this.router.navigate(["/employees/create"])}navigateToAddDepartment(){this.router.navigate(["/departments/create"])}navigateToAddPosition(){this.router.navigate(["/positions/create"])}navigateToEmployees(){this.router.navigate(["/employees"])}navigateToEmployee(i){this.router.navigate(["/employees",i])}showMessage(i){this.snackBar.open(i,"Close",{duration:3e3,horizontalPosition:"end",verticalPosition:"top"})}};n.\u0275fac=function(r){return new(r||n)},n.\u0275cmp=E({type:n,selectors:[["app-dashboard"]],decls:5,vars:4,consts:[["class","ai-insights-card",4,"ngIf"],["class","loading-spinner",4,"ngIf"],["class","dashboard-container",4,"ngIf"],["class","error-state",4,"ngIf"],[1,"ai-insights-card"],["mat-card-avatar",""],["class","ai-insight-loading",4,"ngIf"],["class","ai-insight-text",4,"ngIf"],["class","ai-insight-error",4,"ngIf"],[1,"ai-insight-loading"],["diameter","24"],[1,"ai-insight-text"],[1,"ai-insight-error"],[1,"loading-spinner"],[1,"dashboard-container"],[1,"metrics-row"],[1,"metric-card"],[1,"metric-icon"],[1,"metric-value"],[1,"metric-label"],[1,"secondary-metrics-row"],[1,"metric-card","secondary"],[1,"metric-icon","secondary"],[1,"charts-row"],[1,"chart-card"],["class","chart-container",4,"ngIf"],["class","no-data",4,"ngIf"],[1,"activity-row"],["mat-button","","color","primary",3,"click"],[4,"ngIf"],["class","actions-row",4,"appHasRole"],[1,"chart-container"],["baseChart","","type","pie",3,"data","options"],[1,"no-data"],["baseChart","","type","bar",3,"data","options"],["baseChart","","type","doughnut",3,"data","options"],["class","clickable-item",3,"click",4,"ngFor","ngForOf"],[1,"clickable-item",3,"click"],["matListItemIcon",""],["matListItemTitle",""],["matListItemLine",""],["matListItemMeta",""],[1,"actions-row"],[1,"action-buttons"],["mat-raised-button","","color","primary",3,"click"],["mat-raised-button","","color","accent",3,"click",4,"appHasRole"],["mat-raised-button","","color","accent",3,"click"],[1,"error-state"]],template:function(r,o){r&1&&(M(0,"page-header"),A(1,p_e,12,3,"mat-card",0)(2,f_e,2,0,"div",1)(3,I_e,101,23,"div",2)(4,A_e,12,0,"div",3)),r&2&&(f(),v("ngIf",o.aiEnabled),f(),v("ngIf",o.loading),f(),v("ngIf",!o.loading&&o.metrics),f(),v("ngIf",!o.loading&&!o.metrics))},dependencies:[ut,vr,Jt,Ut,Ht,Ky,zt,Gt,yh,Wt,tt,st,Be,Mt,gi,fi,ua,Ns,da,v_,Pu,Ml,RI,_i,ez,Qt,Wn,nl,Ta],styles:[".loading-spinner[_ngcontent-%COMP%]{display:flex;justify-content:center;align-items:center;min-height:400px}.dashboard-container[_ngcontent-%COMP%]{padding:16px;max-width:1400px;margin:0 auto}.metrics-row[_ngcontent-%COMP%], .secondary-metrics-row[_ngcontent-%COMP%]{display:grid;grid-template-columns:repeat(auto-fit,minmax(200px,1fr));gap:16px;margin-bottom:24px}@media (max-width: 768px){.metrics-row[_ngcontent-%COMP%], .secondary-metrics-row[_ngcontent-%COMP%]{grid-template-columns:repeat(2,1fr)}}@media (max-width: 480px){.metrics-row[_ngcontent-%COMP%], .secondary-metrics-row[_ngcontent-%COMP%]{grid-template-columns:1fr}}.secondary-metrics-row[_ngcontent-%COMP%]{grid-template-columns:repeat(auto-fit,minmax(250px,1fr))}.metric-card[_ngcontent-%COMP%] mat-card-content[_ngcontent-%COMP%]{padding:24px!important;text-align:center}.metric-card[_ngcontent-%COMP%] .metric-icon[_ngcontent-%COMP%]{display:inline-flex;align-items:center;justify-content:center;width:64px;height:64px;border-radius:50%;background-color:#3f51b51a;margin-bottom:16px}.metric-card[_ngcontent-%COMP%] .metric-icon[_ngcontent-%COMP%] mat-icon[_ngcontent-%COMP%]{font-size:32px;width:32px;height:32px;color:#3f51b5}.metric-card[_ngcontent-%COMP%] .metric-icon.secondary[_ngcontent-%COMP%]{background-color:#ff98001a}.metric-card[_ngcontent-%COMP%] .metric-icon.secondary[_ngcontent-%COMP%] mat-icon[_ngcontent-%COMP%]{color:#ff9800}.metric-card[_ngcontent-%COMP%] .metric-value[_ngcontent-%COMP%]{font-size:32px;font-weight:600;color:#000000de;margin-bottom:8px;line-height:1.2}.metric-card[_ngcontent-%COMP%] .metric-label[_ngcontent-%COMP%]{font-size:14px;color:#0009;text-transform:uppercase;letter-spacing:.5px}.metric-card[_ngcontent-%COMP%]:hover{box-shadow:0 4px 8px #00000026;transition:box-shadow .3s ease}.charts-row[_ngcontent-%COMP%]{display:grid;grid-template-columns:repeat(auto-fit,minmax(400px,1fr));gap:24px;margin-bottom:24px}@media (max-width: 900px){.charts-row[_ngcontent-%COMP%]{grid-template-columns:1fr}}.chart-card[_ngcontent-%COMP%] mat-card-header[_ngcontent-%COMP%]{padding:16px 16px 0;margin-bottom:16px}.chart-card[_ngcontent-%COMP%] mat-card-header[_ngcontent-%COMP%] mat-card-title[_ngcontent-%COMP%]{font-size:18px;font-weight:500;margin:0}.chart-card[_ngcontent-%COMP%] mat-card-content[_ngcontent-%COMP%]{padding:0 16px 16px}.chart-card[_ngcontent-%COMP%] .chart-container[_ngcontent-%COMP%]{position:relative;height:300px;width:100%}.chart-card[_ngcontent-%COMP%] .no-data[_ngcontent-%COMP%]{display:flex;flex-direction:column;align-items:center;justify-content:center;min-height:300px;color:#00000061}.chart-card[_ngcontent-%COMP%] .no-data[_ngcontent-%COMP%] mat-icon[_ngcontent-%COMP%]{font-size:48px;width:48px;height:48px;margin-bottom:12px}.chart-card[_ngcontent-%COMP%] .no-data[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{margin:0;font-size:14px}.activity-row[_ngcontent-%COMP%]{margin-bottom:24px}.activity-row[_ngcontent-%COMP%] mat-card-header[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:space-between;padding:16px;border-bottom:1px solid rgba(0,0,0,.12)}.activity-row[_ngcontent-%COMP%] mat-card-header[_ngcontent-%COMP%] mat-card-title[_ngcontent-%COMP%]{font-size:18px;font-weight:500;margin:0}.activity-row[_ngcontent-%COMP%] mat-card-header[_ngcontent-%COMP%] button[_ngcontent-%COMP%] mat-icon[_ngcontent-%COMP%]{margin-left:4px;font-size:18px;width:18px;height:18px}.activity-row[_ngcontent-%COMP%] mat-card-content[_ngcontent-%COMP%]{padding:0}.activity-row[_ngcontent-%COMP%] mat-list[_ngcontent-%COMP%]{padding:0}.activity-row[_ngcontent-%COMP%] mat-list-item[_ngcontent-%COMP%]{height:auto;padding:12px 16px;cursor:pointer;transition:background-color .2s ease}.activity-row[_ngcontent-%COMP%] mat-list-item[_ngcontent-%COMP%]:hover{background-color:#0000000a}.activity-row[_ngcontent-%COMP%] mat-list-item[_ngcontent-%COMP%]:not(:last-child){border-bottom:1px solid rgba(0,0,0,.08)}.activity-row[_ngcontent-%COMP%] mat-list-item[_ngcontent-%COMP%] mat-icon[_ngcontent-%COMP%]{color:#0000008a}.activity-row[_ngcontent-%COMP%] .clickable-item[_ngcontent-%COMP%]{cursor:pointer}.activity-row[_ngcontent-%COMP%] .no-data[_ngcontent-%COMP%]{display:flex;flex-direction:column;align-items:center;justify-content:center;padding:48px 16px;color:#00000061}.activity-row[_ngcontent-%COMP%] .no-data[_ngcontent-%COMP%] mat-icon[_ngcontent-%COMP%]{font-size:48px;width:48px;height:48px;margin-bottom:12px}.activity-row[_ngcontent-%COMP%] .no-data[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{margin:0;font-size:14px}.actions-row[_ngcontent-%COMP%]{margin-bottom:24px}.actions-row[_ngcontent-%COMP%] mat-card-header[_ngcontent-%COMP%]{padding:16px;border-bottom:1px solid rgba(0,0,0,.12)}.actions-row[_ngcontent-%COMP%] mat-card-header[_ngcontent-%COMP%] mat-card-title[_ngcontent-%COMP%]{font-size:18px;font-weight:500;margin:0}.actions-row[_ngcontent-%COMP%] mat-card-content[_ngcontent-%COMP%]{padding:24px 16px}.actions-row[_ngcontent-%COMP%] .action-buttons[_ngcontent-%COMP%]{display:flex;gap:12px;flex-wrap:wrap}.actions-row[_ngcontent-%COMP%] .action-buttons[_ngcontent-%COMP%] button[_ngcontent-%COMP%] mat-icon[_ngcontent-%COMP%]{margin-right:8px}@media (max-width: 600px){.actions-row[_ngcontent-%COMP%] .action-buttons[_ngcontent-%COMP%]{flex-direction:column}.actions-row[_ngcontent-%COMP%] .action-buttons[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{width:100%}}.error-state[_ngcontent-%COMP%]{padding:16px}.error-state[_ngcontent-%COMP%] mat-card[_ngcontent-%COMP%]{max-width:600px;margin:0 auto}.error-state[_ngcontent-%COMP%] .no-data[_ngcontent-%COMP%]{display:flex;flex-direction:column;align-items:center;justify-content:center;padding:48px 16px;color:#0000008a}.error-state[_ngcontent-%COMP%] .no-data[_ngcontent-%COMP%] mat-icon[_ngcontent-%COMP%]{font-size:64px;width:64px;height:64px;margin-bottom:16px;color:#f44336}.error-state[_ngcontent-%COMP%] .no-data[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{margin:0 0 24px;font-size:16px}.error-state[_ngcontent-%COMP%] .no-data[_ngcontent-%COMP%] button[_ngcontent-%COMP%] mat-icon[_ngcontent-%COMP%]{margin-right:8px;font-size:20px;width:20px;height:20px}.ai-insights-card[_ngcontent-%COMP%]{margin:16px 16px 0}.ai-insights-card[_ngcontent-%COMP%] mat-card-avatar[_ngcontent-%COMP%]{background:none;color:#1976d2}.ai-insights-card[_ngcontent-%COMP%] .ai-insight-loading[_ngcontent-%COMP%]{display:flex;align-items:center;gap:12px;color:#0000008a;font-size:14px;padding:8px 0}.ai-insights-card[_ngcontent-%COMP%] .ai-insight-text[_ngcontent-%COMP%]{font-size:15px;line-height:1.6;color:#000000de;margin:0;padding:4px 0}.ai-insights-card[_ngcontent-%COMP%] .ai-insight-error[_ngcontent-%COMP%]{display:flex;align-items:center;gap:8px;font-size:14px;color:#b00020}.ai-insights-card[_ngcontent-%COMP%] .ai-insight-error[_ngcontent-%COMP%] mat-icon[_ngcontent-%COMP%]{font-size:18px;height:18px;width:18px}@media (max-width: 1200px){.dashboard-container[_ngcontent-%COMP%]{padding:12px}.charts-row[_ngcontent-%COMP%]{gap:16px}}@media (max-width: 768px){.metric-card[_ngcontent-%COMP%] mat-card-content[_ngcontent-%COMP%]{padding:16px!important}.metric-card[_ngcontent-%COMP%] .metric-icon[_ngcontent-%COMP%]{width:56px;height:56px}.metric-card[_ngcontent-%COMP%] .metric-icon[_ngcontent-%COMP%] mat-icon[_ngcontent-%COMP%]{font-size:28px;width:28px;height:28px}.metric-card[_ngcontent-%COMP%] .metric-value[_ngcontent-%COMP%]{font-size:28px}.metric-card[_ngcontent-%COMP%] .metric-label[_ngcontent-%COMP%]{font-size:12px}.chart-card[_ngcontent-%COMP%] .chart-container[_ngcontent-%COMP%]{height:250px}}@media (max-width: 480px){.dashboard-container[_ngcontent-%COMP%]{padding:8px}.metrics-row[_ngcontent-%COMP%], .secondary-metrics-row[_ngcontent-%COMP%], .charts-row[_ngcontent-%COMP%]{gap:12px;margin-bottom:16px}.metric-card[_ngcontent-%COMP%] .metric-value[_ngcontent-%COMP%]{font-size:24px}.chart-card[_ngcontent-%COMP%] .chart-container[_ngcontent-%COMP%]{height:200px}}"]});let t=n;return t})();var _6=(()=>{let n=class n{};n.\u0275fac=function(r){return new(r||n)},n.\u0275cmp=E({type:n,selectors:[["app-error-403"]],decls:1,vars:0,consts:[["code","403","title","Permission denied!","message","You do not have permission to access the requested data."]],template:function(r,o){r&1&&M(0,"error-code",0)},dependencies:[sp],encapsulation:2});let t=n;return t})();var b6=(()=>{let n=class n{};n.\u0275fac=function(r){return new(r||n)},n.\u0275cmp=E({type:n,selectors:[["app-error-404"]],decls:1,vars:0,consts:[["code","404","title","Page not found!","message","This is not the web page you are looking for."]],template:function(r,o){r&1&&M(0,"error-code",0)},dependencies:[sp],encapsulation:2});let t=n;return t})();var v6=(()=>{let n=class n{};n.\u0275fac=function(r){return new(r||n)},n.\u0275cmp=E({type:n,selectors:[["app-error-500"]],decls:1,vars:0,consts:[["code","500","title","Server went wrong!","message","Just kidding, looks like we have an internal issue, please try refreshing."]],template:function(r,o){r&1&&M(0,"error-code",0)},dependencies:[sp],encapsulation:2});let t=n;return t})();var O_e=t=>({value:t});function R_e(t,n){t&1&&(m(0,"mat-error")(1,"span"),g(2),ue(3,"translate"),h()()),t&2&&(f(2),N(Oe(3,1,"validation.required")))}function P_e(t,n){t&1&&(m(0,"mat-error")(1,"span"),g(2),ue(3,"translate"),h()()),t&2&&(f(2),N(Oe(3,1,"validation.required")))}function F_e(t,n){t&1&&(m(0,"mat-error")(1,"span"),g(2),ue(3,"translate"),h()()),t&2&&(f(2),N(Oe(3,1,"validation.required")))}function N_e(t,n){t&1&&(m(0,"mat-error",8),ue(1,"translate"),m(2,"span"),g(3),h()()),t&2&&(v("translateParams",Nt(4,O_e,Oe(1,2,"login.password"))),f(3),N("validation.inconsistent"))}var y6=(()=>{let n=class n{constructor(){this.fb=u(ro),this.registerForm=this.fb.nonNullable.group({username:["",[Le.required]],password:["",[Le.required]],confirmPassword:["",[Le.required]]},{validators:[this.matchValidator("password","confirmPassword")]})}matchValidator(i,r){return o=>{let a=o.get(i),s=o.get(r);return s.errors&&!s.errors.mismatch?null:a.value!==s.value?(s.setErrors({mismatch:!0}),{mismatch:!0}):(s.setErrors(null),null)}}};n.\u0275fac=function(r){return new(r||n)},n.\u0275cmp=E({type:n,selectors:[["app-register"]],decls:43,vars:32,consts:[[1,"d-flex","w-full","h-full"],[1,"m-auto",2,"max-width","380px"],[1,"m-b-24"],[1,"form-field-full",3,"formGroup"],["appearance","outline"],["matInput","","formControlName","username","required",""],["matInput","","type","password","formControlName","password","required",""],["matInput","","type","password","formControlName","confirmPassword","required",""],["translate","",3,"translateParams"],["matButton","filled",1,"w-full","m-y-16"],["routerLink","/auth/login"]],template:function(r,o){if(r&1&&(m(0,"div",0)(1,"mat-card",1)(2,"mat-card-header",2)(3,"mat-card-title"),g(4),ue(5,"translate"),M(6,"br"),g(7),ue(8,"translate"),h()(),m(9,"mat-card-content")(10,"form",3)(11,"mat-form-field",4)(12,"mat-label"),g(13),ue(14,"translate"),h(),M(15,"input",5),V(16,R_e,4,3,"mat-error"),h(),m(17,"mat-form-field",4)(18,"mat-label"),g(19),ue(20,"translate"),h(),M(21,"input",6),V(22,P_e,4,3,"mat-error"),h(),m(23,"mat-form-field",4)(24,"mat-label"),g(25),ue(26,"translate"),h(),M(27,"input",7),V(28,F_e,4,3,"mat-error"),V(29,N_e,4,6,"mat-error",8),h(),m(30,"mat-checkbox"),g(31),ue(32,"translate"),h(),m(33,"button",9),g(34),ue(35,"translate"),h(),m(36,"div")(37,"span"),g(38),ue(39,"translate"),h(),m(40,"a",10),g(41),ue(42,"translate"),h()()()()()()),r&2){let a,s,l,c;f(4),pe(" ",Oe(5,14,"register_welcome"),", "),f(3),pe(" ",Oe(8,16,"register_title")," "),f(3),v("formGroup",o.registerForm),f(3),N(Oe(14,18,"username")),f(3),B((a=o.registerForm.get("username"))!=null&&a.invalid?16:-1),f(3),N(Oe(20,20,"password")),f(3),B((s=o.registerForm.get("password"))!=null&&s.invalid?22:-1),f(3),N(Oe(26,22,"confirm_password")),f(3),B((l=o.registerForm.get("confirmPassword"))!=null&&l.hasError("required")?28:-1),f(),B((c=o.registerForm.get("confirmPassword"))!=null&&c.hasError("mismatch")?29:-1),f(2),N(Oe(32,24,"read_and_agree")),f(3),N(Oe(35,26,"register")),f(4),pe("",Oe(39,28,"have_an_account"),"?"),f(3),N(Oe(42,30,"login"))}},dependencies:[Vn,pl,no,Hi,qt,io,Io,$n,Ji,Ur,Be,Mt,Ut,Ht,zt,Gt,Wt,Ex,ja,Pi,Ci,Gi,So,Mn,en,Sr,Y3,Mr],encapsulation:2});let t=n;return t})();var x6=(()=>{let n=class n{constructor(){this.authService=u(Ot),this.router=u(Re)}ngOnInit(){return gn(this,null,function*(){try{(yield this.authService.initAuth())?this.router.navigate(["/dashboard"]):(console.warn("Authentication callback failed, redirecting to dashboard as guest"),this.router.navigate(["/dashboard"]))}catch(i){console.error("Error processing callback:",i),this.router.navigate(["/dashboard"])}})}};n.\u0275fac=function(r){return new(r||n)},n.\u0275cmp=E({type:n,selectors:[["app-callback"]],decls:5,vars:0,consts:[[1,"callback-container"]],template:function(r,o){r&1&&(pt(0,"div",0)(1,"h2"),g(2,"Processing login..."),_t(),pt(3,"p"),g(4,"Please wait while we complete your authentication."),_t()())},styles:[".callback-container[_ngcontent-%COMP%]{display:flex;flex-direction:column;align-items:center;justify-content:center;height:100vh;text-align:center}"]});let t=n;return t})();var L_e=[[["caption"]],[["colgroup"],["col"]],"*"],V_e=["caption","colgroup, col","*"];function B_e(t,n){t&1&&ne(0,2)}function j_e(t,n){t&1&&(m(0,"thead",0),Ge(1,1),h(),m(2,"tbody",0),Ge(3,2)(4,3),h(),m(5,"tfoot",0),Ge(6,4),h())}function H_e(t,n){t&1&&Ge(0,1)(1,2)(2,3)(3,4)}var Ua=new O("CDK_TABLE");var gw=(()=>{class t{template=u(te);constructor(){}static \u0275fac=function(i){return new(i||t)};static \u0275dir=P({type:t,selectors:[["","cdkCellDef",""]]})}return t})(),_w=(()=>{class t{template=u(te);constructor(){}static \u0275fac=function(i){return new(i||t)};static \u0275dir=P({type:t,selectors:[["","cdkHeaderCellDef",""]]})}return t})(),D6=(()=>{class t{template=u(te);constructor(){}static \u0275fac=function(i){return new(i||t)};static \u0275dir=P({type:t,selectors:[["","cdkFooterCellDef",""]]})}return t})(),hp=(()=>{class t{_table=u(Ua,{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(i){return new(i||t)};static \u0275dir=P({type:t,selectors:[["","cdkColumnDef",""]],contentQueries:function(i,r,o){if(i&1&&(xe(o,gw,5),xe(o,_w,5),xe(o,D6,5)),i&2){let a;j(a=H())&&(r.cell=a.first),j(a=H())&&(r.headerCell=a.first),j(a=H())&&(r.footerCell=a.first)}},inputs:{name:[0,"cdkColumnDef","name"],sticky:[2,"sticky","sticky",L],stickyEnd:[2,"stickyEnd","stickyEnd",L]},features:[Ce([{provide:"MAT_SORT_HEADER_COLUMN_DEF",useExisting:t}])]})}return t})(),pw=class{constructor(n,e){e.nativeElement.classList.add(...n._columnCssClassName)}},E6=(()=>{class t extends pw{constructor(){super(u(hp),u(Y))}static \u0275fac=function(i){return new(i||t)};static \u0275dir=P({type:t,selectors:[["cdk-header-cell"],["th","cdk-header-cell",""]],hostAttrs:["role","columnheader",1,"cdk-header-cell"],features:[le]})}return t})();var M6=(()=>{class t extends pw{constructor(){let e=u(hp),i=u(Y);super(e,i);let r=e._table?._getCellRole();r&&i.nativeElement.setAttribute("role",r)}static \u0275fac=function(i){return new(i||t)};static \u0275dir=P({type:t,selectors:[["cdk-cell"],["td","cdk-cell",""]],hostAttrs:[1,"cdk-cell"],features:[le]})}return t})();var WI=(()=>{class t{template=u(te);_differs=u(us);columns;_columnsDiffer;constructor(){}ngOnChanges(e){if(!this._columnsDiffer){let i=e.columns&&e.columns.currentValue||[];this._columnsDiffer=this._differs.find(i).create(),this._columnsDiffer.diff(i)}}getColumnsDiff(){return this._columnsDiffer.diff(this.columns)}extractCellTemplate(e){return this instanceof C_?e.headerCell.template:this instanceof GI?e.footerCell.template:e.cell.template}static \u0275fac=function(i){return new(i||t)};static \u0275dir=P({type:t,features:[Ae]})}return t})(),C_=(()=>{class t extends WI{_table=u(Ua,{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(u(te),u(us))}ngOnChanges(e){super.ngOnChanges(e)}hasStickyChanged(){let e=this._hasStickyChanged;return this.resetStickyChanged(),e}resetStickyChanged(){this._hasStickyChanged=!1}static \u0275fac=function(i){return new(i||t)};static \u0275dir=P({type:t,selectors:[["","cdkHeaderRowDef",""]],inputs:{columns:[0,"cdkHeaderRowDef","columns"],sticky:[2,"cdkHeaderRowDefSticky","sticky",L]},features:[le,Ae]})}return t})(),GI=(()=>{class t extends WI{_table=u(Ua,{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(u(te),u(us))}ngOnChanges(e){super.ngOnChanges(e)}hasStickyChanged(){let e=this._hasStickyChanged;return this.resetStickyChanged(),e}resetStickyChanged(){this._hasStickyChanged=!1}static \u0275fac=function(i){return new(i||t)};static \u0275dir=P({type:t,selectors:[["","cdkFooterRowDef",""]],inputs:{columns:[0,"cdkFooterRowDef","columns"],sticky:[2,"cdkFooterRowDefSticky","sticky",L]},features:[le,Ae]})}return t})(),bw=(()=>{class t extends WI{_table=u(Ua,{optional:!0});when;constructor(){super(u(te),u(us))}static \u0275fac=function(i){return new(i||t)};static \u0275dir=P({type:t,selectors:[["","cdkRowDef",""]],inputs:{columns:[0,"cdkRowDefColumns","columns"],when:[0,"cdkRowDefWhen","when"]},features:[le]})}return t})(),Nu=(()=>{class t{_viewContainer=u(ot);cells;context;static mostRecentCellOutlet=null;constructor(){t.mostRecentCellOutlet=this}ngOnDestroy(){t.mostRecentCellOutlet===this&&(t.mostRecentCellOutlet=null)}static \u0275fac=function(i){return new(i||t)};static \u0275dir=P({type:t,selectors:[["","cdkCellOutlet",""]]})}return t})(),qI=(()=>{class t{static \u0275fac=function(i){return new(i||t)};static \u0275cmp=E({type:t,selectors:[["cdk-header-row"],["tr","cdk-header-row",""]],hostAttrs:["role","row",1,"cdk-header-row"],decls:1,vars:0,consts:[["cdkCellOutlet",""]],template:function(i,r){i&1&&Ge(0,0)},dependencies:[Nu],encapsulation:2})}return t})();var YI=(()=>{class t{static \u0275fac=function(i){return new(i||t)};static \u0275cmp=E({type:t,selectors:[["cdk-row"],["tr","cdk-row",""]],hostAttrs:["role","row",1,"cdk-row"],decls:1,vars:0,consts:[["cdkCellOutlet",""]],template:function(i,r){i&1&&Ge(0,0)},dependencies:[Nu],encapsulation:2})}return t})(),vw=(()=>{class t{templateRef=u(te);_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(i){return new(i||t)};static \u0275dir=P({type:t,selectors:[["ng-template","cdkNoDataRow",""]]})}return t})(),C6=["top","bottom","left","right"],$I=class{_isNativeHtmlTable;_stickCellCss;_isBrowser;_needsPositionStickyOnElement;direction;_positionListener;_tableInjector;_elemSizeCache=new WeakMap;_resizeObserver=globalThis?.ResizeObserver?new globalThis.ResizeObserver(n=>this._updateCachedSizes(n)):null;_updatedStickyColumnsParamsToReplay=[];_stickyColumnsReplayTimeout=null;_cachedCellWidths=[];_borderCellCss;_destroyed=!1;constructor(n,e,i=!0,r=!0,o,a,s){this._isNativeHtmlTable=n,this._stickCellCss=e,this._isBrowser=i,this._needsPositionStickyOnElement=r,this.direction=o,this._positionListener=a,this._tableInjector=s,this._borderCellCss={top:`${e}-border-elem-top`,bottom:`${e}-border-elem-bottom`,left:`${e}-border-elem-left`,right:`${e}-border-elem-right`}}clearStickyPositioning(n,e){(e.includes("left")||e.includes("right"))&&this._removeFromStickyColumnReplayQueue(n);let i=[];for(let r of n)r.nodeType===r.ELEMENT_NODE&&i.push(r,...Array.from(r.children));gt({write:()=>{for(let r of i)this._removeStickyStyle(r,e)}},{injector:this._tableInjector})}updateStickyColumns(n,e,i,r=!0,o=!0){if(!n.length||!this._isBrowser||!(e.some(C=>C)||i.some(C=>C))){this._positionListener?.stickyColumnsUpdated({sizes:[]}),this._positionListener?.stickyEndColumnsUpdated({sizes:[]});return}let a=n[0],s=a.children.length,l=this.direction==="rtl",c=l?"right":"left",d=l?"left":"right",p=e.lastIndexOf(!0),_=i.indexOf(!0),b,y,w;o&&this._updateStickyColumnReplayQueue({rows:[...n],stickyStartStates:[...e],stickyEndStates:[...i]}),gt({earlyRead:()=>{b=this._getCellWidths(a,r),y=this._getStickyStartColumnPositions(b,e),w=this._getStickyEndColumnPositions(b,i)},write:()=>{for(let C of n)for(let D=0;D!!C)&&(this._positionListener.stickyColumnsUpdated({sizes:p===-1?[]:b.slice(0,p+1).map((C,D)=>e[D]?C:null)}),this._positionListener.stickyEndColumnsUpdated({sizes:_===-1?[]:b.slice(_).map((C,D)=>i[D+_]?C:null).reverse()}))}},{injector:this._tableInjector})}stickRows(n,e,i){if(!this._isBrowser)return;let r=i==="bottom"?n.slice().reverse():n,o=i==="bottom"?e.slice().reverse():e,a=[],s=[],l=[];gt({earlyRead:()=>{for(let c=0,d=0;c{let c=o.lastIndexOf(!0);for(let d=0;d{let i=n.querySelector("tfoot");i&&(e.some(r=>!r)?this._removeStickyStyle(i,["bottom"]):this._addStickyStyle(i,"bottom",0,!1))}},{injector:this._tableInjector})}destroy(){this._stickyColumnsReplayTimeout&&clearTimeout(this._stickyColumnsReplayTimeout),this._resizeObserver?.disconnect(),this._destroyed=!0}_removeStickyStyle(n,e){if(!n.classList.contains(this._stickCellCss))return;for(let r of e)n.style[r]="",n.classList.remove(this._borderCellCss[r]);C6.some(r=>e.indexOf(r)===-1&&n.style[r])?n.style.zIndex=this._getCalculatedZIndex(n):(n.style.zIndex="",this._needsPositionStickyOnElement&&(n.style.position=""),n.classList.remove(this._stickCellCss))}_addStickyStyle(n,e,i,r){n.classList.add(this._stickCellCss),r&&n.classList.add(this._borderCellCss[e]),n.style[e]=`${i}px`,n.style.zIndex=this._getCalculatedZIndex(n),this._needsPositionStickyOnElement&&(n.style.cssText+="position: -webkit-sticky; position: sticky; ")}_getCalculatedZIndex(n){let e={top:100,bottom:10,left:1,right:1},i=0;for(let r of C6)n.style[r]&&(i+=e[r]);return i?`${i}`:""}_getCellWidths(n,e=!0){if(!e&&this._cachedCellWidths.length)return this._cachedCellWidths;let i=[],r=n.children;for(let o=0;o0;o--)e[o]&&(i[o]=r,r+=n[o]);return i}_retrieveElementSize(n){let e=this._elemSizeCache.get(n);if(e)return e;let i=n.getBoundingClientRect(),r={width:i.width,height:i.height};return this._resizeObserver&&(this._elemSizeCache.set(n,r),this._resizeObserver.observe(n,{box:"border-box"})),r}_updateStickyColumnReplayQueue(n){this._removeFromStickyColumnReplayQueue(n.rows),this._stickyColumnsReplayTimeout||this._updatedStickyColumnsParamsToReplay.push(n)}_removeFromStickyColumnReplayQueue(n){let e=new Set(n);for(let i of this._updatedStickyColumnsParamsToReplay)i.rows=i.rows.filter(r=>!e.has(r));this._updatedStickyColumnsParamsToReplay=this._updatedStickyColumnsParamsToReplay.filter(i=>!!i.rows.length)}_updateCachedSizes(n){let e=!1;for(let i of n){let r=i.borderBoxSize?.length?{width:i.borderBoxSize[0].inlineSize,height:i.borderBoxSize[0].blockSize}:{width:i.contentRect.width,height:i.contentRect.height};r.width!==this._elemSizeCache.get(i.target)?.width&&z_e(i.target)&&(e=!0),this._elemSizeCache.set(i.target,r)}e&&this._updatedStickyColumnsParamsToReplay.length&&(this._stickyColumnsReplayTimeout&&clearTimeout(this._stickyColumnsReplayTimeout),this._stickyColumnsReplayTimeout=setTimeout(()=>{if(!this._destroyed){for(let i of this._updatedStickyColumnsParamsToReplay)this.updateStickyColumns(i.rows,i.stickyStartStates,i.stickyEndStates,!0,!1);this._updatedStickyColumnsParamsToReplay=[],this._stickyColumnsReplayTimeout=null}},0))}};function z_e(t){return["cdk-cell","cdk-header-cell","cdk-footer-cell"].some(n=>t.classList.contains(n))}var fw=new O("CDK_SPL");var QI=(()=>{class t{viewContainer=u(ot);elementRef=u(Y);constructor(){let e=u(Ua);e._rowOutlet=this,e._outletAssigned()}static \u0275fac=function(i){return new(i||t)};static \u0275dir=P({type:t,selectors:[["","rowOutlet",""]]})}return t})(),KI=(()=>{class t{viewContainer=u(ot);elementRef=u(Y);constructor(){let e=u(Ua);e._headerRowOutlet=this,e._outletAssigned()}static \u0275fac=function(i){return new(i||t)};static \u0275dir=P({type:t,selectors:[["","headerRowOutlet",""]]})}return t})(),ZI=(()=>{class t{viewContainer=u(ot);elementRef=u(Y);constructor(){let e=u(Ua);e._footerRowOutlet=this,e._outletAssigned()}static \u0275fac=function(i){return new(i||t)};static \u0275dir=P({type:t,selectors:[["","footerRowOutlet",""]]})}return t})(),XI=(()=>{class t{viewContainer=u(ot);elementRef=u(Y);constructor(){let e=u(Ua);e._noDataRowOutlet=this,e._outletAssigned()}static \u0275fac=function(i){return new(i||t)};static \u0275dir=P({type:t,selectors:[["","noDataRowOutlet",""]]})}return t})(),JI=(()=>{class t{_differs=u(us);_changeDetectorRef=u(ye);_elementRef=u(Y);_dir=u(Bt,{optional:!0});_platform=u(qe);_viewRepeater=u(xh);_viewportRuler=u(tr);_stickyPositioningListener=u(fw,{optional:!0,skipSelf:!0});_document=u(_e);_data;_onDestroy=new z;_renderRows;_renderChangeSubscription;_columnDefsByName=new Map;_rowDefs;_headerRowDefs;_footerRowDefs;_dataDiffer;_defaultRowDef;_customColumnDefs=new Set;_customRowDefs=new Set;_customHeaderRowDefs=new Set;_customFooterRowDefs=new Set;_customNoDataRow;_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;_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)}_dataSource;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._fixedLayout}set fixedLayout(e){this._fixedLayout=e,this._forceRecalculateCellWidths=!0,this._stickyColumnStylesNeedReset=!0}_fixedLayout=!1;contentChanged=new U;viewChange=new it({start:0,end:Number.MAX_VALUE});_rowOutlet;_headerRowOutlet;_footerRowOutlet;_noDataRowOutlet;_contentColumnDefs;_contentRowDefs;_contentHeaderRowDefs;_contentFooterRowDefs;_noDataRow;_injector=u(de);constructor(){u(new Oi("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((i,r)=>this.trackBy?this.trackBy(r.dataIndex,r.data):r)}ngOnInit(){this._setupStickyStyler(),this._viewportRuler.change().pipe(we(this._onDestroy)).subscribe(()=>{this._forceRecalculateCellWidths=!0})}ngAfterContentInit(){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._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 i=this._rowOutlet.viewContainer;this._viewRepeater.applyChanges(e,i,(r,o,a)=>this._getEmbeddedViewArgs(r.item,a),r=>r.item.data,r=>{r.operation===uc.INSERTED&&r.context&&this._renderCellTemplateForItem(r.record.item.rowDef,r.context)}),this._updateRowIndexContext(),e.forEachIdentityChange(r=>{let o=i.get(r.currentIndex);o.context.$implicit=r.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 r=w6(this._headerRowOutlet,"thead");r&&(r.style.display=e.length?"":"none")}let i=this._headerRowDefs.map(r=>r.sticky);this._stickyStyler.clearStickyPositioning(e,["top"]),this._stickyStyler.stickRows(e,i,"top"),this._headerRowDefs.forEach(r=>r.resetStickyChanged())}updateStickyFooterRowStyles(){let e=this._getRenderedRows(this._footerRowOutlet);if(this._isNativeHtmlTable){let r=w6(this._footerRowOutlet,"tfoot");r&&(r.style.display=e.length?"":"none")}let i=this._footerRowDefs.map(r=>r.sticky);this._stickyStyler.clearStickyPositioning(e,["bottom"]),this._stickyStyler.stickRows(e,i,"bottom"),this._stickyStyler.updateStickyFooterContainer(this._elementRef.nativeElement,i),this._footerRowDefs.forEach(r=>r.resetStickyChanged())}updateStickyColumnStyles(){let e=this._getRenderedRows(this._headerRowOutlet),i=this._getRenderedRows(this._rowOutlet),r=this._getRenderedRows(this._footerRowOutlet);(this._isNativeHtmlTable&&!this._fixedLayout||this._stickyColumnStylesNeedReset)&&(this._stickyStyler.clearStickyPositioning([...e,...i,...r],["left","right"]),this._stickyColumnStylesNeedReset=!1),e.forEach((o,a)=>{this._addStickyColumnStyles([o],this._headerRowDefs[a])}),this._rowDefs.forEach(o=>{let a=[];for(let s=0;s{this._addStickyColumnStyles([o],this._footerRowDefs[a])}),Array.from(this._columnDefsByName.values()).forEach(o=>o.resetStickyChanged())}_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 i=this._renderUpdatedColumns()||this._headerRowDefChanged||this._footerRowDefChanged;this._stickyColumnStylesNeedReset=this._stickyColumnStylesNeedReset||i,this._forceRecalculateCellWidths=i,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(){let e=[],i=this._cachedRenderRowsMap;if(this._cachedRenderRowsMap=new Map,!this._data)return e;for(let r=0;r{let s=r&&r.has(a)?r.get(a):[];if(s.length){let l=s.shift();return l.dataIndex=i,l}else return{data:e,rowDef:a,dataIndex:i}})}_cacheColumnDefs(){this._columnDefsByName.clear(),hw(this._getOwnDefs(this._contentColumnDefs),this._customColumnDefs).forEach(i=>{this._columnDefsByName.has(i.name),this._columnDefsByName.set(i.name,i)})}_cacheRowDefs(){this._headerRowDefs=hw(this._getOwnDefs(this._contentHeaderRowDefs),this._customHeaderRowDefs),this._footerRowDefs=hw(this._getOwnDefs(this._contentFooterRowDefs),this._customFooterRowDefs),this._rowDefs=hw(this._getOwnDefs(this._contentRowDefs),this._customRowDefs);let e=this._rowDefs.filter(i=>!i.when);!this.multiTemplateDataRows&&e.length>1,this._defaultRowDef=e[0]}_renderUpdatedColumns(){let e=(a,s)=>{let l=!!s.getColumnsDiff();return a||l},i=this._rowDefs.reduce(e,!1);i&&this._forceRenderDataRows();let r=this._headerRowDefs.reduce(e,!1);r&&this._forceRenderHeaderRows();let o=this._footerRowDefs.reduce(e,!1);return o&&this._forceRenderFooterRows(),i||r||o}_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):zi(this.dataSource)?e=this.dataSource:Array.isArray(this.dataSource)&&(e=Q(this.dataSource)),this._renderChangeSubscription=e.pipe(we(this._onDestroy)).subscribe(i=>{this._data=i||[],this.renderRows()})}_forceRenderHeaderRows(){this._headerRowOutlet.viewContainer.length>0&&this._headerRowOutlet.viewContainer.clear(),this._headerRowDefs.forEach((e,i)=>this._renderRow(this._headerRowOutlet,e,i)),this.updateStickyHeaderRowStyles()}_forceRenderFooterRows(){this._footerRowOutlet.viewContainer.length>0&&this._footerRowOutlet.viewContainer.clear(),this._footerRowDefs.forEach((e,i)=>this._renderRow(this._footerRowOutlet,e,i)),this.updateStickyFooterRowStyles()}_addStickyColumnStyles(e,i){let r=Array.from(i?.columns||[]).map(s=>{let l=this._columnDefsByName.get(s);return l}),o=r.map(s=>s.sticky),a=r.map(s=>s.stickyEnd);this._stickyStyler.updateStickyColumns(e,o,a,!this._fixedLayout||this._forceRecalculateCellWidths)}_getRenderedRows(e){let i=[];for(let r=0;r!o.when||o.when(i,e));else{let o=this._rowDefs.find(a=>a.when&&a.when(i,e))||this._defaultRowDef;o&&r.push(o)}return r.length,r}_getEmbeddedViewArgs(e,i){let r=e.rowDef,o={$implicit:e.data};return{templateRef:r.template,context:o,index:i}}_renderRow(e,i,r,o={}){let a=e.viewContainer.createEmbeddedView(i.template,o,r);return this._renderCellTemplateForItem(i,o),a}_renderCellTemplateForItem(e,i){for(let r of this._getCellTemplates(e))Nu.mostRecentCellOutlet&&Nu.mostRecentCellOutlet._viewContainer.createEmbeddedView(r,i);this._changeDetectorRef.markForCheck()}_updateRowIndexContext(){let e=this._rowOutlet.viewContainer;for(let i=0,r=e.length;i{let r=this._columnDefsByName.get(i);return e.extractCellTemplate(r)})}_forceRenderDataRows(){this._dataDiffer.diff([]),this._rowOutlet.viewContainer.clear(),this.renderRows()}_checkStickyStates(){let e=(i,r)=>i||r.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";this._stickyStyler=new $I(this._isNativeHtmlTable,this.stickyCssClass,this._platform.isBrowser,this.needsPositionStickyOnElement,e,this._stickyPositioningListener,this._injector),(this._dir?this._dir.change:Q()).pipe(we(this._onDestroy)).subscribe(i=>{this._stickyStyler.direction=i,this.updateStickyColumnStyles()})}_getOwnDefs(e){return e.filter(i=>!i._table||i._table===this)}_updateNoDataRow(){let e=this._customNoDataRow||this._noDataRow;if(!e)return;let i=this._rowOutlet.viewContainer.length===0;if(i===this._isShowingNoDataRow)return;let r=this._noDataRowOutlet.viewContainer;if(i){let o=r.createEmbeddedView(e.templateRef),a=o.rootNodes[0];if(o.rootNodes.length===1&&a?.nodeType===this._document.ELEMENT_NODE){a.setAttribute("role","row"),a.classList.add(...e._contentClassNames);let s=a.querySelectorAll(e._cellSelector);for(let l=0;l{class t{static \u0275fac=function(i){return new(i||t)};static \u0275mod=ee({type:t});static \u0275inj=J({imports:[lg]})}return t})();var U_e=[[["caption"]],[["colgroup"],["col"]],"*"],$_e=["caption","colgroup, col","*"];function W_e(t,n){t&1&&ne(0,2)}function G_e(t,n){t&1&&(m(0,"thead",0),Ge(1,1),h(),m(2,"tbody",2),Ge(3,3)(4,4),h(),m(5,"tfoot",0),Ge(6,5),h())}function q_e(t,n){t&1&&Ge(0,1)(1,3)(2,4)(3,5)}var Gc=(()=>{class t extends JI{stickyCssClass="mat-mdc-table-sticky";needsPositionStickyOnElement=!1;static \u0275fac=(()=>{let e;return function(r){return(e||(e=ge(t)))(r||t)}})();static \u0275cmp=E({type:t,selectors:[["mat-table"],["table","mat-table",""]],hostAttrs:[1,"mat-mdc-table","mdc-data-table__table"],hostVars:2,hostBindings:function(i,r){i&2&&G("mdc-table-fixed-layout",r.fixedLayout)},exportAs:["matTable"],features:[Ce([{provide:JI,useExisting:t},{provide:Ua,useExisting:t},{provide:xh,useClass:mu},{provide:fw,useValue:null}]),le],ngContentSelectors:$_e,decls:5,vars:2,consts:[["role","rowgroup"],["headerRowOutlet",""],["role","rowgroup",1,"mdc-data-table__content"],["rowOutlet",""],["noDataRowOutlet",""],["footerRowOutlet",""]],template:function(i,r){i&1&&(Se(U_e),ne(0),ne(1,1),V(2,W_e,1,0),V(3,G_e,7,0)(4,q_e,4,0)),i&2&&(f(2),B(r._isServer?2:-1),f(),B(r._isNativeHtmlTable?3:4))},dependencies:[KI,QI,XI,ZI],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))}.mdc-data-table__cell{box-sizing:border-box;overflow:hidden;text-align:left;text-overflow:ellipsis}[dir=rtl] .mdc-data-table__cell{text-align:right}.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:left}[dir=rtl] .mat-mdc-header-cell{text-align:right}.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 t})(),qc=(()=>{class t extends gw{static \u0275fac=(()=>{let e;return function(r){return(e||(e=ge(t)))(r||t)}})();static \u0275dir=P({type:t,selectors:[["","matCellDef",""]],features:[Ce([{provide:gw,useExisting:t}]),le]})}return t})(),Yc=(()=>{class t extends _w{static \u0275fac=(()=>{let e;return function(r){return(e||(e=ge(t)))(r||t)}})();static \u0275dir=P({type:t,selectors:[["","matHeaderCellDef",""]],features:[Ce([{provide:_w,useExisting:t}]),le]})}return t})();var Qc=(()=>{class t extends hp{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(r){return(e||(e=ge(t)))(r||t)}})();static \u0275dir=P({type:t,selectors:[["","matColumnDef",""]],inputs:{name:[0,"matColumnDef","name"]},features:[Ce([{provide:hp,useExisting:t},{provide:"MAT_SORT_HEADER_COLUMN_DEF",useExisting:t}]),le]})}return t})(),Kc=(()=>{class t extends E6{static \u0275fac=(()=>{let e;return function(r){return(e||(e=ge(t)))(r||t)}})();static \u0275dir=P({type:t,selectors:[["mat-header-cell"],["th","mat-header-cell",""]],hostAttrs:["role","columnheader",1,"mat-mdc-header-cell","mdc-data-table__header-cell"],features:[le]})}return t})();var Zc=(()=>{class t extends M6{static \u0275fac=(()=>{let e;return function(r){return(e||(e=ge(t)))(r||t)}})();static \u0275dir=P({type:t,selectors:[["mat-cell"],["td","mat-cell",""]],hostAttrs:[1,"mat-mdc-cell","mdc-data-table__cell"],features:[le]})}return t})();var Xc=(()=>{class t extends C_{static \u0275fac=(()=>{let e;return function(r){return(e||(e=ge(t)))(r||t)}})();static \u0275dir=P({type:t,selectors:[["","matHeaderRowDef",""]],inputs:{columns:[0,"matHeaderRowDef","columns"],sticky:[2,"matHeaderRowDefSticky","sticky",L]},features:[Ce([{provide:C_,useExisting:t}]),le]})}return t})();var Jc=(()=>{class t extends bw{static \u0275fac=(()=>{let e;return function(r){return(e||(e=ge(t)))(r||t)}})();static \u0275dir=P({type:t,selectors:[["","matRowDef",""]],inputs:{columns:[0,"matRowDefColumns","columns"],when:[0,"matRowDefWhen","when"]},features:[Ce([{provide:bw,useExisting:t}]),le]})}return t})(),ed=(()=>{class t extends qI{static \u0275fac=(()=>{let e;return function(r){return(e||(e=ge(t)))(r||t)}})();static \u0275cmp=E({type:t,selectors:[["mat-header-row"],["tr","mat-header-row",""]],hostAttrs:["role","row",1,"mat-mdc-header-row","mdc-data-table__header-row"],exportAs:["matHeaderRow"],features:[Ce([{provide:qI,useExisting:t}]),le],decls:1,vars:0,consts:[["cdkCellOutlet",""]],template:function(i,r){i&1&&Ge(0,0)},dependencies:[Nu],encapsulation:2})}return t})();var td=(()=>{class t extends YI{static \u0275fac=(()=>{let e;return function(r){return(e||(e=ge(t)))(r||t)}})();static \u0275cmp=E({type:t,selectors:[["mat-row"],["tr","mat-row",""]],hostAttrs:["role","row",1,"mat-mdc-row","mdc-data-table__row"],exportAs:["matRow"],features:[Ce([{provide:YI,useExisting:t}]),le],decls:1,vars:0,consts:[["cdkCellOutlet",""]],template:function(i,r){i&1&&Ge(0,0)},dependencies:[Nu],encapsulation:2})}return t})(),xw=(()=>{class t extends vw{_cellSelector="td, mat-cell, [mat-cell], .mat-cell";constructor(){super(),this._contentClassNames.push("mat-mdc-no-data-row","mat-mdc-row","mdc-data-table__row"),this._cellClassNames.push("mat-mdc-cell","mdc-data-table__cell","mat-no-data-cell")}static \u0275fac=function(i){return new(i||t)};static \u0275dir=P({type:t,selectors:[["ng-template","matNoDataRow",""]],features:[Ce([{provide:vw,useExisting:t}]),le]})}return t})();var id=(()=>{class t{static \u0275fac=function(i){return new(i||t)};static \u0275mod=ee({type:t});static \u0275inj=J({imports:[De,S6,De]})}return t})(),Y_e=9007199254740991,yw=class extends ag{_data;_renderData=new it([]);_filter=new it("");_internalPageChanges=new z;_renderChangesSubscription=null;filteredData;get data(){return this._data.value}set data(n){n=Array.isArray(n)?n:[],this._data.next(n),this._renderChangesSubscription||this._filterData(n)}get filter(){return this._filter.value}set filter(n){this._filter.next(n),this._renderChangesSubscription||this._filterData(this.data)}get sort(){return this._sort}set sort(n){this._sort=n,this._updateChangeSubscription()}_sort;get paginator(){return this._paginator}set paginator(n){this._paginator=n,this._updateChangeSubscription()}_paginator;sortingDataAccessor=(n,e)=>{let i=n[e];if(Bv(i)){let r=Number(i);return r{let i=e.active,r=e.direction;return!i||r==""?n:n.sort((o,a)=>{let s=this.sortingDataAccessor(o,i),l=this.sortingDataAccessor(a,i),c=typeof s,d=typeof l;c!==d&&(c==="number"&&(s+=""),d==="number"&&(l+=""));let p=0;return s!=null&&l!=null?s>l?p=1:s{let i=e.trim().toLowerCase();return Object.values(n).some(r=>`${r}`.toLowerCase().includes(i))};constructor(n=[]){super(),this._data=new it(n),this._updateChangeSubscription()}_updateChangeSubscription(){let n=this._sort?Je(this._sort.sortChange,this._sort.initialized):Q(null),e=this._paginator?Je(this._paginator.page,this._internalPageChanges,this._paginator.initialized):Q(null),i=this._data,r=go([i,this._filter]).pipe(se(([s])=>this._filterData(s))),o=go([r,n]).pipe(se(([s])=>this._orderData(s))),a=go([o,e]).pipe(se(([s])=>this._pageData(s)));this._renderChangesSubscription?.unsubscribe(),this._renderChangesSubscription=a.subscribe(s=>this._renderData.next(s))}_filterData(n){return this.filteredData=this.filter==null||this.filter===""?n:n.filter(e=>this.filterPredicate(e,this.filter)),this.paginator&&this._updatePaginator(this.filteredData.length),this.filteredData}_orderData(n){return this.sort?this.sortData(n.slice(),this.sort):n}_pageData(n){if(!this.paginator)return n;let e=this.paginator.pageIndex*this.paginator.pageSize;return n.slice(e,e+this.paginator.pageSize)}_updatePaginator(n){Promise.resolve().then(()=>{let e=this.paginator;if(e&&(e.length=n,e.pageIndex>0)){let i=Math.ceil(e.length/e.pageSize)-1||0,r=Math.min(e.pageIndex,i);r!==e.pageIndex&&(e.pageIndex=r,this._internalPageChanges.next())}})}connect(){return this._renderChangesSubscription||this._updateChangeSubscription(),this._renderData}disconnect(){this._renderChangesSubscription?.unsubscribe(),this._renderChangesSubscription=null}};var Q_e=["panel"],K_e=["*"];function Z_e(t,n){if(t&1&&(pt(0,"div",1,0),ne(2),_t()),t&2){let e=n.id,i=x();nt(i._classList),G("mat-mdc-autocomplete-visible",i.showPanel)("mat-mdc-autocomplete-hidden",!i.showPanel)("mat-autocomplete-panel-animations-enabled",!i._animationsDisabled)("mat-primary",i._color==="primary")("mat-accent",i._color==="accent")("mat-warn",i._color==="warn"),ci("id",i.id),X("aria-label",i.ariaLabel||null)("aria-labelledby",i._getPanelAriaLabelledby(e))}}var eA=class{source;option;constructor(n,e){this.source=n,this.option=e}},k6=new O("mat-autocomplete-default-options",{providedIn:"root",factory:X_e});function X_e(){return{autoActiveFirstOption:!1,autoSelectActiveOption:!1,hideSingleSelectionIndicator:!1,requireSelection:!1,hasBackdrop:!1}}var ww=(()=>{class t{_changeDetectorRef=u(ye);_elementRef=u(Y);_defaults=u(k6);_animationsDisabled=Ye();_activeOptionChanges=Te.EMPTY;_keyManager;showPanel=!1;get isOpen(){return this._isOpen&&this.showPanel}_isOpen=!1;_latestOpeningTrigger;_setColor(e){this._color=e,this._changeDetectorRef.markForCheck()}_color;template;panel;options;optionGroups;ariaLabel;ariaLabelledby;displayWith=null;autoActiveFirstOption;autoSelectActiveOption;requireSelection;panelWidth;disableRipple;optionSelected=new U;opened=new U;closed=new U;optionActivated=new U;set classList(e){this._classList=e,this._elementRef.nativeElement.className=""}_classList;get hideSingleSelectionIndicator(){return this._hideSingleSelectionIndicator}set hideSingleSelectionIndicator(e){this._hideSingleSelectionIndicator=e,this._syncParentProperties()}_hideSingleSelectionIndicator;_syncParentProperties(){if(this.options)for(let e of this.options)e._changeDetectorRef.markForCheck()}id=u(Ze).getId("mat-autocomplete-");inertGroups;constructor(){let e=u(qe);this.inertGroups=e?.SAFARI||!1,this.autoActiveFirstOption=!!this._defaults.autoActiveFirstOption,this.autoSelectActiveOption=!!this._defaults.autoSelectActiveOption,this.requireSelection=!!this._defaults.requireSelection,this._hideSingleSelectionIndicator=this._defaults.hideSingleSelectionIndicator??!1}ngAfterContentInit(){this._keyManager=new Jd(this.options).withWrap().skipPredicate(this._skipPredicate),this._activeOptionChanges=this._keyManager.change.subscribe(e=>{this.isOpen&&this.optionActivated.emit({source:this,option:this.options.toArray()[e]||null})}),this._setVisibility()}ngOnDestroy(){this._keyManager?.destroy(),this._activeOptionChanges.unsubscribe()}_setScrollTop(e){this.panel&&(this.panel.nativeElement.scrollTop=e)}_getScrollTop(){return this.panel?this.panel.nativeElement.scrollTop:0}_setVisibility(){this.showPanel=!!this.options?.length,this._changeDetectorRef.markForCheck()}_emitSelectEvent(e){let i=new eA(this,e);this.optionSelected.emit(i)}_getPanelAriaLabelledby(e){if(this.ariaLabel)return null;let i=e?e+" ":"";return this.ariaLabelledby?i+this.ariaLabelledby:e}_skipPredicate(){return!1}static \u0275fac=function(i){return new(i||t)};static \u0275cmp=E({type:t,selectors:[["mat-autocomplete"]],contentQueries:function(i,r,o){if(i&1&&(xe(o,wn,5),xe(o,nu,5)),i&2){let a;j(a=H())&&(r.options=a),j(a=H())&&(r.optionGroups=a)}},viewQuery:function(i,r){if(i&1&&(ie(te,7),ie(Q_e,5)),i&2){let o;j(o=H())&&(r.template=o.first),j(o=H())&&(r.panel=o.first)}},hostAttrs:[1,"mat-mdc-autocomplete"],inputs:{ariaLabel:[0,"aria-label","ariaLabel"],ariaLabelledby:[0,"aria-labelledby","ariaLabelledby"],displayWith:"displayWith",autoActiveFirstOption:[2,"autoActiveFirstOption","autoActiveFirstOption",L],autoSelectActiveOption:[2,"autoSelectActiveOption","autoSelectActiveOption",L],requireSelection:[2,"requireSelection","requireSelection",L],panelWidth:"panelWidth",disableRipple:[2,"disableRipple","disableRipple",L],classList:[0,"class","classList"],hideSingleSelectionIndicator:[2,"hideSingleSelectionIndicator","hideSingleSelectionIndicator",L]},outputs:{optionSelected:"optionSelected",opened:"opened",closed:"closed",optionActivated:"optionActivated"},exportAs:["matAutocomplete"],features:[Ce([{provide:iu,useExisting:t}])],ngContentSelectors:K_e,decls:1,vars:0,consts:[["panel",""],["role","listbox",1,"mat-mdc-autocomplete-panel","mdc-menu-surface","mdc-menu-surface--open",3,"id"]],template:function(i,r){i&1&&(Se(),wa(0,Z_e,3,17,"ng-template"))},styles:[`div.mat-mdc-autocomplete-panel{width:100%;max-height:256px;visibility:hidden;transform-origin:center top;overflow:auto;padding:8px 0;box-sizing:border-box;position:relative;border-radius:var(--mat-autocomplete-container-shape, var(--mat-sys-corner-extra-small));box-shadow:var(--mat-autocomplete-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));background-color:var(--mat-autocomplete-background-color, var(--mat-sys-surface-container))}@media(forced-colors: active){div.mat-mdc-autocomplete-panel{outline:solid 1px}}.cdk-overlay-pane:not(.mat-mdc-autocomplete-panel-above) div.mat-mdc-autocomplete-panel{border-top-left-radius:0;border-top-right-radius:0}.mat-mdc-autocomplete-panel-above div.mat-mdc-autocomplete-panel{border-bottom-left-radius:0;border-bottom-right-radius:0;transform-origin:center bottom}div.mat-mdc-autocomplete-panel.mat-mdc-autocomplete-visible{visibility:visible}div.mat-mdc-autocomplete-panel.mat-mdc-autocomplete-hidden{visibility:hidden;pointer-events:none}@keyframes _mat-autocomplete-enter{from{opacity:0;transform:scaleY(0.8)}to{opacity:1;transform:none}}.mat-autocomplete-panel-animations-enabled{animation:_mat-autocomplete-enter 120ms cubic-bezier(0, 0, 0.2, 1)}mat-autocomplete{display:none} -`],encapsulation:2,changeDetection:0})}return t})();var J_e={provide:rr,useExisting:ri(()=>w_),multi:!0};var T6=new O("mat-autocomplete-scroll-strategy",{providedIn:"root",factory:()=>{let t=u(de);return()=>En(t)}});function ebe(t){let n=u(de);return()=>En(n)}var tbe={provide:T6,deps:[],useFactory:ebe},w_=(()=>{class t{_environmentInjector=u(Kt);_element=u(Y);_injector=u(de);_viewContainerRef=u(ot);_zone=u(ae);_changeDetectorRef=u(ye);_dir=u(Bt,{optional:!0});_formField=u(ta,{optional:!0,host:!0});_viewportRuler=u(tr);_scrollStrategy=u(T6);_renderer=u(ze);_animationsDisabled=Ye();_defaults=u(k6,{optional:!0});_overlayRef;_portal;_componentDestroyed=!1;_initialized=new z;_keydownSubscription;_outsideClickSubscription;_cleanupWindowBlur;_previousValue;_valueOnAttach;_valueOnLastKeydown;_positionStrategy;_manuallyFloatingLabel=!1;_closingActionsSubscription;_viewportSubscription=Te.EMPTY;_breakpointObserver=u(ll);_handsetLandscapeSubscription=Te.EMPTY;_canOpenOnNextFocus=!0;_valueBeforeAutoSelection;_pendingAutoselectedOption;_closeKeyEventStream=new z;_overlayPanelClass=sl(this._defaults?.overlayPanelClass||[]);_windowBlurHandler=()=>{this._canOpenOnNextFocus=this.panelOpen||!this._hasFocus()};_onChange=()=>{};_onTouched=()=>{};autocomplete;position="auto";connectedTo;autocompleteAttribute="off";autocompleteDisabled;constructor(){}_aboveClass="mat-mdc-autocomplete-panel-above";ngAfterViewInit(){this._initialized.next(),this._initialized.complete(),this._cleanupWindowBlur=this._renderer.listen("window","blur",this._windowBlurHandler)}ngOnChanges(e){e.position&&this._positionStrategy&&(this._setStrategyPositions(this._positionStrategy),this.panelOpen&&this._overlayRef.updatePosition())}ngOnDestroy(){this._cleanupWindowBlur?.(),this._handsetLandscapeSubscription.unsubscribe(),this._viewportSubscription.unsubscribe(),this._componentDestroyed=!0,this._destroyPanel(),this._closeKeyEventStream.complete(),this._clearFromModal()}get panelOpen(){return this._overlayAttached&&this.autocomplete.showPanel}_overlayAttached=!1;openPanel(){this._openPanelInternal()}closePanel(){this._resetLabel(),this._overlayAttached&&(this.panelOpen&&this._zone.run(()=>{this.autocomplete.closed.emit()}),this.autocomplete._latestOpeningTrigger===this&&(this.autocomplete._isOpen=!1,this.autocomplete._latestOpeningTrigger=null),this._overlayAttached=!1,this._pendingAutoselectedOption=null,this._overlayRef&&this._overlayRef.hasAttached()&&(this._overlayRef.detach(),this._closingActionsSubscription.unsubscribe()),this._updatePanelState(),this._componentDestroyed||this._changeDetectorRef.detectChanges(),this._trackedModal&&cc(this._trackedModal,"aria-owns",this.autocomplete.id))}updatePosition(){this._overlayAttached&&this._overlayRef.updatePosition()}get panelClosingActions(){return Je(this.optionSelections,this.autocomplete._keyManager.tabOut.pipe(ce(()=>this._overlayAttached)),this._closeKeyEventStream,this._getOutsideClickStream(),this._overlayRef?this._overlayRef.detachments().pipe(ce(()=>this._overlayAttached)):Q()).pipe(se(e=>e instanceof lh?e:null))}optionSelections=In(()=>{let e=this.autocomplete?this.autocomplete.options:null;return e?e.changes.pipe(Ue(e),je(()=>Je(...e.map(i=>i.onSelectionChange)))):this._initialized.pipe(je(()=>this.optionSelections))});get activeOption(){return this.autocomplete&&this.autocomplete._keyManager?this.autocomplete._keyManager.activeItem:null}_getOutsideClickStream(){return new Fe(e=>{let i=o=>{let a=Xn(o),s=this._formField?this._formField.getConnectedOverlayOrigin().nativeElement:null,l=this.connectedTo?this.connectedTo.elementRef.nativeElement:null;this._overlayAttached&&a!==this._element.nativeElement&&!this._hasFocus()&&(!s||!s.contains(a))&&(!l||!l.contains(a))&&this._overlayRef&&!this._overlayRef.overlayElement.contains(a)&&e.next(o)},r=[this._renderer.listen("document","click",i),this._renderer.listen("document","auxclick",i),this._renderer.listen("document","touchend",i)];return()=>{r.forEach(o=>o())}})}writeValue(e){Promise.resolve(null).then(()=>this._assignOptionValue(e))}registerOnChange(e){this._onChange=e}registerOnTouched(e){this._onTouched=e}setDisabledState(e){this._element.nativeElement.disabled=e}_handleKeydown(e){let i=e,r=i.keyCode,o=Lt(i);if(r===27&&!o&&i.preventDefault(),this._valueOnLastKeydown=this._element.nativeElement.value,this.activeOption&&r===13&&this.panelOpen&&!o)this.activeOption._selectViaInteraction(),this._resetActiveItem(),i.preventDefault();else if(this.autocomplete){let a=this.autocomplete._keyManager.activeItem,s=r===38||r===40;r===9||s&&!o&&this.panelOpen?this.autocomplete._keyManager.onKeydown(i):s&&this._canOpen()&&this._openPanelInternal(this._valueOnLastKeydown),(s||this.autocomplete._keyManager.activeItem!==a)&&(this._scrollToOption(this.autocomplete._keyManager.activeItemIndex||0),this.autocomplete.autoSelectActiveOption&&this.activeOption&&(this._pendingAutoselectedOption||(this._valueBeforeAutoSelection=this._valueOnLastKeydown),this._pendingAutoselectedOption=this.activeOption,this._assignOptionValue(this.activeOption.value)))}}_handleInput(e){let i=e.target,r=i.value;if(i.type==="number"&&(r=r==""?null:parseFloat(r)),this._previousValue!==r){if(this._previousValue=r,this._pendingAutoselectedOption=null,(!this.autocomplete||!this.autocomplete.requireSelection)&&this._onChange(r),!r)this._clearPreviousSelectedOption(null,!1);else if(this.panelOpen&&!this.autocomplete.requireSelection){let o=this.autocomplete.options?.find(a=>a.selected);if(o){let a=this._getDisplayValue(o.value);r!==a&&o.deselect(!1)}}if(this._canOpen()&&this._hasFocus()){let o=this._valueOnLastKeydown??this._element.nativeElement.value;this._valueOnLastKeydown=null,this._openPanelInternal(o)}}}_handleFocus(){this._canOpenOnNextFocus?this._canOpen()&&(this._previousValue=this._element.nativeElement.value,this._attachOverlay(this._previousValue),this._floatLabel(!0)):this._canOpenOnNextFocus=!0}_handleClick(){this._canOpen()&&!this.panelOpen&&this._openPanelInternal()}_hasFocus(){return wo()===this._element.nativeElement}_floatLabel(e=!1){this._formField&&this._formField.floatLabel==="auto"&&(e?this._formField._animateAndLockLabel():this._formField.floatLabel="always",this._manuallyFloatingLabel=!0)}_resetLabel(){this._manuallyFloatingLabel&&(this._formField&&(this._formField.floatLabel="auto"),this._manuallyFloatingLabel=!1)}_subscribeToClosingActions(){let e=new Fe(r=>{gt(()=>{r.next()},{injector:this._environmentInjector})}),i=this.autocomplete.options?.changes.pipe(He(()=>this._positionStrategy.reapplyLastPosition()),ga(0))??Q();return Je(e,i).pipe(je(()=>this._zone.run(()=>{let r=this.panelOpen;return this._resetActiveItem(),this._updatePanelState(),this._changeDetectorRef.detectChanges(),this.panelOpen&&this._overlayRef.updatePosition(),r!==this.panelOpen&&(this.panelOpen?this._emitOpened():this.autocomplete.closed.emit()),this.panelClosingActions})),ct(1)).subscribe(r=>this._setValueAndClose(r))}_emitOpened(){this.autocomplete.opened.emit()}_destroyPanel(){this._overlayRef&&(this.closePanel(),this._overlayRef.dispose(),this._overlayRef=null)}_getDisplayValue(e){let i=this.autocomplete;return i&&i.displayWith?i.displayWith(e):e}_assignOptionValue(e){let i=this._getDisplayValue(e);e==null&&this._clearPreviousSelectedOption(null,!1),this._updateNativeInputValue(i??"")}_updateNativeInputValue(e){this._formField?this._formField._control.value=e:this._element.nativeElement.value=e,this._previousValue=e}_setValueAndClose(e){let i=this.autocomplete,r=e?e.source:this._pendingAutoselectedOption;r?(this._clearPreviousSelectedOption(r),this._assignOptionValue(r.value),this._onChange(r.value),i._emitSelectEvent(r),this._element.nativeElement.focus()):i.requireSelection&&this._element.nativeElement.value!==this._valueOnAttach&&(this._clearPreviousSelectedOption(null),this._assignOptionValue(null),this._onChange(null)),this.closePanel()}_clearPreviousSelectedOption(e,i){this.autocomplete?.options?.forEach(r=>{r!==e&&r.selected&&r.deselect(i)})}_openPanelInternal(e=this._element.nativeElement.value){if(this._attachOverlay(e),this._floatLabel(),this._trackedModal){let i=this.autocomplete.id;ih(this._trackedModal,"aria-owns",i)}}_attachOverlay(e){this.autocomplete;let i=this._overlayRef;i?(this._positionStrategy.setOrigin(this._getConnectedElement()),i.updateSize({width:this._getPanelWidth()})):(this._portal=new Dn(this.autocomplete.template,this._viewContainerRef,{id:this._formField?.getLabelId()}),i=zr(this._injector,this._getOverlayConfig()),this._overlayRef=i,this._viewportSubscription=this._viewportRuler.change().subscribe(()=>{this.panelOpen&&i&&i.updateSize({width:this._getPanelWidth()})}),this._handsetLandscapeSubscription=this._breakpointObserver.observe(Vv.HandsetLandscape).subscribe(o=>{o.matches?this._positionStrategy.withFlexibleDimensions(!0).withGrowAfterOpen(!0).withViewportMargin(8):this._positionStrategy.withFlexibleDimensions(!1).withGrowAfterOpen(!1).withViewportMargin(0)})),i&&!i.hasAttached()&&(i.attach(this._portal),this._valueOnAttach=e,this._valueOnLastKeydown=null,this._closingActionsSubscription=this._subscribeToClosingActions());let r=this.panelOpen;this.autocomplete._isOpen=this._overlayAttached=!0,this.autocomplete._latestOpeningTrigger=this,this.autocomplete._setColor(this._formField?.color),this._updatePanelState(),this._applyModalPanelOwnership(),this.panelOpen&&r!==this.panelOpen&&this._emitOpened()}_handlePanelKeydown=e=>{(e.keyCode===27&&!Lt(e)||e.keyCode===38&&Lt(e,"altKey"))&&(this._pendingAutoselectedOption&&(this._updateNativeInputValue(this._valueBeforeAutoSelection??""),this._pendingAutoselectedOption=null),this._closeKeyEventStream.next(),this._resetActiveItem(),e.stopPropagation(),e.preventDefault())};_updatePanelState(){if(this.autocomplete._setVisibility(),this.panelOpen){let e=this._overlayRef;this._keydownSubscription||(this._keydownSubscription=e.keydownEvents().subscribe(this._handlePanelKeydown)),this._outsideClickSubscription||(this._outsideClickSubscription=e.outsidePointerEvents().subscribe())}else this._keydownSubscription?.unsubscribe(),this._outsideClickSubscription?.unsubscribe(),this._keydownSubscription=this._outsideClickSubscription=null}_getOverlayConfig(){return new Hr({positionStrategy:this._getOverlayPosition(),scrollStrategy:this._scrollStrategy(),width:this._getPanelWidth(),direction:this._dir??void 0,hasBackdrop:this._defaults?.hasBackdrop,backdropClass:this._defaults?.backdropClass||"cdk-overlay-transparent-backdrop",panelClass:this._overlayPanelClass,disableAnimations:this._animationsDisabled})}_getOverlayPosition(){let e=Na(this._injector,this._getConnectedElement()).withFlexibleDimensions(!1).withPush(!1);return this._setStrategyPositions(e),this._positionStrategy=e,e}_setStrategyPositions(e){let i=[{originX:"start",originY:"bottom",overlayX:"start",overlayY:"top"},{originX:"end",originY:"bottom",overlayX:"end",overlayY:"top"}],r=this._aboveClass,o=[{originX:"start",originY:"top",overlayX:"start",overlayY:"bottom",panelClass:r},{originX:"end",originY:"top",overlayX:"end",overlayY:"bottom",panelClass:r}],a;this.position==="above"?a=o:this.position==="below"?a=i:a=[...i,...o],e.withPositions(a)}_getConnectedElement(){return this.connectedTo?this.connectedTo.elementRef:this._formField?this._formField.getConnectedOverlayOrigin():this._element}_getPanelWidth(){return this.autocomplete.panelWidth||this._getHostWidth()}_getHostWidth(){return this._getConnectedElement().nativeElement.getBoundingClientRect().width}_resetActiveItem(){let e=this.autocomplete;if(e.autoActiveFirstOption){let i=-1;for(let r=0;r .cdk-overlay-container [aria-modal="true"]');if(!e)return;let i=this.autocomplete.id;this._trackedModal&&cc(this._trackedModal,"aria-owns",i),ih(e,"aria-owns",i),this._trackedModal=e}_clearFromModal(){if(this._trackedModal){let e=this.autocomplete.id;cc(this._trackedModal,"aria-owns",e),this._trackedModal=null}}static \u0275fac=function(i){return new(i||t)};static \u0275dir=P({type:t,selectors:[["input","matAutocomplete",""],["textarea","matAutocomplete",""]],hostAttrs:[1,"mat-mdc-autocomplete-trigger"],hostVars:7,hostBindings:function(i,r){i&1&&S("focusin",function(){return r._handleFocus()})("blur",function(){return r._onTouched()})("input",function(a){return r._handleInput(a)})("keydown",function(a){return r._handleKeydown(a)})("click",function(){return r._handleClick()}),i&2&&X("autocomplete",r.autocompleteAttribute)("role",r.autocompleteDisabled?null:"combobox")("aria-autocomplete",r.autocompleteDisabled?null:"list")("aria-activedescendant",r.panelOpen&&r.activeOption?r.activeOption.id:null)("aria-expanded",r.autocompleteDisabled?null:r.panelOpen.toString())("aria-controls",r.autocompleteDisabled||!r.panelOpen||r.autocomplete==null?null:r.autocomplete.id)("aria-haspopup",r.autocompleteDisabled?null:"listbox")},inputs:{autocomplete:[0,"matAutocomplete","autocomplete"],position:[0,"matAutocompletePosition","position"],connectedTo:[0,"matAutocompleteConnectedTo","connectedTo"],autocompleteAttribute:[0,"autocomplete","autocompleteAttribute"],autocompleteDisabled:[2,"matAutocompleteDisabled","autocompleteDisabled",L]},exportAs:["matAutocompleteTrigger"],features:[Ce([J_e]),Ae]})}return t})(),Dw=(()=>{class t{static \u0275fac=function(i){return new(i||t)};static \u0275mod=ee({type:t});static \u0275inj=J({providers:[tbe],imports:[nr,ch,De,Cr,ch,De]})}return t})();var I6=()=>["HRAdmin","Manager"],ibe=()=>[5,10,25,50,100],nbe=()=>["HRAdmin"];function rbe(t,n){t&1&&(m(0,"mat-icon",32),g(1,"search"),h())}function obe(t,n){t&1&&M(0,"mat-spinner",33)}function abe(t,n){if(t&1){let e=q();m(0,"button",34),S("click",function(){T(e);let r=x(2);return I(r.clearNlSearch())}),m(1,"mat-icon"),g(2,"close"),h()()}}function sbe(t,n){if(t&1&&(m(0,"div",35)(1,"mat-icon"),g(2,"auto_awesome"),h(),m(3,"span"),g(4,"AI interpreted: "),m(5,"em"),g(6),h()()()),t&2){let e=x(2);f(6),N(e.nlParsedExpression)}}function lbe(t,n){if(t&1&&(m(0,"div",36)(1,"mat-icon"),g(2,"warning"),h(),m(3,"span"),g(4),h()()),t&2){let e=x(2);f(4),N(e.nlError)}}function cbe(t,n){if(t&1){let e=q();m(0,"mat-card",24)(1,"mat-card-content")(2,"mat-form-field",25)(3,"mat-label")(4,"mat-icon"),g(5,"smart_toy"),h(),g(6," Search in plain English "),h(),m(7,"input",26,5),S("input",function(){T(e);let r=Me(8),o=x();return I(o.onNlQueryChange(r.value))}),h(),A(9,rbe,2,0,"mat-icon",27)(10,obe,1,0,"mat-spinner",28)(11,abe,3,0,"button",29),h(),A(12,sbe,7,1,"div",30)(13,lbe,5,1,"div",31),h()()}if(t&2){let e=x();f(7),v("value",e.nlQuery),f(2),v("ngIf",!e.nlLoading&&!e.nlQuery),f(),v("ngIf",e.nlLoading),f(),v("ngIf",e.nlQuery&&!e.nlLoading),f(),v("ngIf",e.nlParsedExpression&&!e.nlLoading),f(),v("ngIf",e.nlError)}}function dbe(t,n){if(t&1){let e=q();m(0,"button",37),S("click",function(){T(e);let r=x();return I(r.createEmployee())}),m(1,"mat-icon"),g(2,"add"),h(),g(3," Add Employee "),h()}}function ube(t,n){if(t&1&&(m(0,"mat-option",38),g(1),h()),t&2){let e=n.$implicit;v("value",e),f(),pe(" ",e," ")}}function mbe(t,n){if(t&1&&(m(0,"mat-option",38),g(1),h()),t&2){let e=n.$implicit;v("value",e),f(),pe(" ",e," ")}}function hbe(t,n){if(t&1&&(m(0,"mat-option",38),g(1),h()),t&2){let e=n.$implicit;v("value",e),f(),pe(" ",e," ")}}function pbe(t,n){if(t&1&&(m(0,"mat-option",38),g(1),h()),t&2){let e=n.$implicit;v("value",e),f(),pe(" ",e," ")}}function fbe(t,n){if(t&1&&(m(0,"mat-option",38),g(1),h()),t&2){let e=n.$implicit;v("value",e),f(),pe(" ",e," ")}}function gbe(t,n){t&1&&(m(0,"div",39),M(1,"mat-spinner"),h())}function _be(t,n){t&1&&(m(0,"th",52),g(1,"Employee #"),h())}function bbe(t,n){if(t&1&&(m(0,"td",53),g(1),h()),t&2){let e=n.$implicit;f(),N(e.employeeNumber)}}function vbe(t,n){t&1&&(m(0,"th",52),g(1,"Name"),h())}function ybe(t,n){if(t&1&&(m(0,"td",53),g(1),h()),t&2){let e=n.$implicit,i=x(2);f(),N(i.getFullName(e))}}function xbe(t,n){t&1&&(m(0,"th",52),g(1,"Email"),h())}function Cbe(t,n){if(t&1&&(m(0,"td",53),g(1),h()),t&2){let e=n.$implicit;f(),N(e.email)}}function wbe(t,n){t&1&&(m(0,"th",52),g(1,"Phone"),h())}function Dbe(t,n){if(t&1&&(m(0,"td",53),g(1),h()),t&2){let e=n.$implicit;f(),N(e.phoneNumber||e.phone||"-")}}function Ebe(t,n){t&1&&(m(0,"th",52),g(1,"Position"),h())}function Mbe(t,n){if(t&1&&(m(0,"td",53),g(1),h()),t&2){let e=n.$implicit;f(),N(e.positionTitle||(e.position==null?null:e.position.positionTitle)||"-")}}function Sbe(t,n){t&1&&(m(0,"th",52),g(1,"Actions"),h())}function kbe(t,n){if(t&1){let e=q();m(0,"button",58),S("click",function(){T(e);let r=x().$implicit,o=x(2);return I(o.editEmployee(r))}),m(1,"mat-icon"),g(2,"edit"),h()()}}function Tbe(t,n){if(t&1){let e=q();m(0,"button",59),S("click",function(){T(e);let r=x().$implicit,o=x(2);return I(o.deleteEmployee(r))}),m(1,"mat-icon"),g(2,"delete"),h()()}}function Ibe(t,n){if(t&1){let e=q();m(0,"td",53)(1,"div",54)(2,"button",55),S("click",function(){let r=T(e).$implicit,o=x(2);return I(o.viewEmployee(r))}),m(3,"mat-icon"),g(4,"visibility"),h()(),A(5,kbe,3,0,"button",56)(6,Tbe,3,0,"button",57),h()()}t&2&&(f(5),v("appHasRole",rt(2,I6)),f(),v("appHasRole",rt(3,nbe)))}function Abe(t,n){t&1&&M(0,"tr",60)}function Obe(t,n){t&1&&M(0,"tr",61)}function Rbe(t,n){if(t&1&&(m(0,"tr",62)(1,"td",63)(2,"div",64)(3,"mat-icon"),g(4,"info"),h(),m(5,"p"),g(6,"No employees found"),h()()()()),t&2){let e=x(2);f(),X("colspan",e.displayedColumns.length)}}function Pbe(t,n){if(t&1&&(m(0,"table",40),kt(1,41),A(2,_be,2,0,"th",42)(3,bbe,2,1,"td",43),Dt(),kt(4,44),A(5,vbe,2,0,"th",42)(6,ybe,2,1,"td",43),Dt(),kt(7,45),A(8,xbe,2,0,"th",42)(9,Cbe,2,1,"td",43),Dt(),kt(10,46),A(11,wbe,2,0,"th",42)(12,Dbe,2,1,"td",43),Dt(),kt(13,47),A(14,Ebe,2,0,"th",42)(15,Mbe,2,1,"td",43),Dt(),kt(16,48),A(17,Sbe,2,0,"th",42)(18,Ibe,7,4,"td",43),Dt(),A(19,Abe,1,0,"tr",49)(20,Obe,1,0,"tr",50)(21,Rbe,7,1,"tr",51),h()),t&2){let e=x();v("dataSource",e.employees),f(19),v("matHeaderRowDef",e.displayedColumns),f(),v("matRowDefColumns",e.displayedColumns),f(),v("ngIf",e.employees.length===0)}}var A6=(()=>{let n=class n{constructor(){this.employeeService=u(mp),this.aiService=u(Uc),this.authService=u(Ot),this.router=u(Re),this.fb=u(ro),this.snackBar=u(ui),this.dialog=u(kn),this.employees=[],this.loading=!1,this.totalCount=0,this.pageSize=10,this.pageNumber=1,this.aiEnabled=Qi.aiEnabled,this.nlQuery="",this.nlLoading=!1,this.nlError="",this.nlParsedExpression="",this.nlSearch$=new z,this.destroy$=new z,this.displayedColumns=["employeeNumber","name","email","phone","positionTitle","actions"]}ngOnInit(){this.initSearchForm(),this.setupAutocomplete(),this.setupAutoSubmit(),this.loadEmployees(),this.setupNlSearch()}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete()}initSearchForm(){this.searchForm=this.fb.group({FirstName:[""],LastName:[""],Email:[""],EmployeeNumber:[""],PositionTitle:[""]})}setupAutocomplete(){this.filteredEmployeeNumbers$=this.searchForm.get("EmployeeNumber").valueChanges.pipe(Ue(""),St(300),_n(),je(i=>this.getAutocompleteOptions("EmployeeNumber",i))),this.filteredFirstNames$=this.searchForm.get("FirstName").valueChanges.pipe(Ue(""),St(300),_n(),je(i=>this.getAutocompleteOptions("FirstName",i))),this.filteredLastNames$=this.searchForm.get("LastName").valueChanges.pipe(Ue(""),St(300),_n(),je(i=>this.getAutocompleteOptions("LastName",i))),this.filteredEmails$=this.searchForm.get("Email").valueChanges.pipe(Ue(""),St(300),_n(),je(i=>this.getAutocompleteOptions("Email",i))),this.filteredPositionTitles$=this.searchForm.get("PositionTitle").valueChanges.pipe(Ue(""),St(300),_n(),je(i=>this.getAutocompleteOptions("PositionTitle",i)))}setupAutoSubmit(){this.searchForm.valueChanges.pipe(St(500),_n((i,r)=>JSON.stringify(i)===JSON.stringify(r)),we(this.destroy$)).subscribe(()=>{this.pageNumber=1,this.loadEmployees()})}getAutocompleteOptions(i,r){if(!r||r.length<2)return Q([]);let o={PageNumber:1,PageSize:10,[i]:r};return this.employeeService.getAllPaged(o).pipe(se(a=>{let s={EmployeeNumber:c=>c.employeeNumber,FirstName:c=>c.firstName,LastName:c=>c.lastName,Email:c=>c.email,PositionTitle:c=>c.positionTitle||""};return a.value.map(c=>s[i](c)).filter((c,d,p)=>c&&p.indexOf(c)===d)}),ii(()=>Q([])))}loadEmployees(){this.loading=!0;let i=k({PageNumber:this.pageNumber,PageSize:this.pageSize},this.searchForm.value);Object.keys(i).forEach(r=>{(i[r]===""||i[r]===null||i[r]===void 0)&&delete i[r]}),this.employeeService.getAllPaged(i).subscribe({next:r=>{this.employees=r.value,this.totalCount=r.recordsTotal,this.loading=!1},error:r=>{console.error("Error loading employees:",r),this.loading=!1}})}onClearSearch(){this.searchForm.reset(),this.pageNumber=1,this.paginator&&(this.paginator.pageIndex=0),this.loadEmployees()}onPageChange(i){this.pageSize=i.pageSize,this.pageNumber=i.pageIndex+1,this.loadEmployees()}getFullName(i){return[i.prefix,i.firstName,i.middleName,i.lastName].filter(Boolean).join(" ")}viewEmployee(i){this.router.navigate(["/employees",i.id])}editEmployee(i){this.router.navigate(["/employees","edit",i.id])}deleteEmployee(i){let r=this.getFullName(i);this.dialog.open(Tr,{width:"400px",data:{title:"Delete Employee",message:`Are you sure you want to delete ${r}? This action cannot be undone.`,confirmText:"Delete",cancelText:"Cancel"}}).afterClosed().subscribe(a=>{a&&this.employeeService.delete(i.id).subscribe({next:()=>{this.snackBar.open(`${r} has been deleted.`,"Close",{duration:3e3,horizontalPosition:"end",verticalPosition:"top"}),this.loadEmployees()},error:s=>{console.error("Error deleting employee:",s),this.snackBar.open("Failed to delete employee. Please try again.","Close",{duration:4e3,horizontalPosition:"end",verticalPosition:"top"})}})})}createEmployee(){this.router.navigate(["/employees","create"])}canEdit(){return this.authService.isHRAdmin()||this.authService.isManager()}canDelete(){return this.authService.isHRAdmin()}canCreate(){return this.authService.isHRAdmin()||this.authService.isManager()}onNlQueryChange(i){this.nlQuery=i,this.nlSearch$.next(i)}clearNlSearch(){this.nlQuery="",this.nlParsedExpression="",this.nlError="",this.searchForm.reset(),this.pageNumber=1,this.loadEmployees()}setupNlSearch(){this.nlSearch$.pipe(St(600),_n(),je(i=>!i||i.length<3?(this.nlParsedExpression="",this.nlError="",Q(null)):(this.nlLoading=!0,this.nlError="",this.aiService.nlEmployeeSearch(i).pipe(ii(r=>(this.nlLoading=!1,this.nlError=r?.error?.detail??"Could not parse query. Try rephrasing.",Q(null)))))),we(this.destroy$)).subscribe(i=>{i&&(this.nlLoading=!1,this.nlParsedExpression=i.parsedExpression,this.applyNlFilter(i))})}applyNlFilter(i){this.searchForm.patchValue({FirstName:i.firstName,LastName:i.lastName,Email:i.email,EmployeeNumber:i.employeeNumber,PositionTitle:i.positionTitle})}};n.\u0275fac=function(r){return new(r||n)},n.\u0275cmp=E({type:n,selectors:[["app-employee-list"]],viewQuery:function(r,o){if(r&1&&ie(or,5),r&2){let a;j(a=H())&&(o.paginator=a.first)}},decls:60,vars:31,consts:[["autoEmployeeNumber","matAutocomplete"],["autoFirstName","matAutocomplete"],["autoLastName","matAutocomplete"],["autoEmail","matAutocomplete"],["autoPositionTitle","matAutocomplete"],["nlInput",""],["class","nl-search-card",4,"ngIf"],[1,"flex-spacer"],["mat-raised-button","","color","primary",3,"click",4,"appHasRole"],[1,"search-form",3,"formGroup"],[1,"search-row"],["appearance","outline"],["matInput","","formControlName","EmployeeNumber",3,"matAutocomplete"],[3,"value",4,"ngFor","ngForOf"],["matInput","","formControlName","FirstName",3,"matAutocomplete"],["matInput","","formControlName","LastName",3,"matAutocomplete"],["matInput","","formControlName","Email",3,"matAutocomplete"],["matInput","","formControlName","PositionTitle",3,"matAutocomplete"],[1,"search-buttons"],["mat-raised-button","","color","accent","type","button",3,"click"],[1,"table-container"],["class","loading-spinner",4,"ngIf"],["mat-table","","class","employee-table",3,"dataSource",4,"ngIf"],["showFirstLastButtons","",3,"page","length","pageSize","pageSizeOptions","pageIndex"],[1,"nl-search-card"],["appearance","outline",1,"nl-search-field"],["matInput","","type","text","placeholder",'e.g. "find all engineers" or "employees named Johnson"',"autocomplete","off",3,"input","value"],["matSuffix","",4,"ngIf"],["matSuffix","","diameter","20",4,"ngIf"],["mat-icon-button","","matSuffix","","type","button",3,"click",4,"ngIf"],["class","nl-parsed-hint",4,"ngIf"],["class","nl-error",4,"ngIf"],["matSuffix",""],["matSuffix","","diameter","20"],["mat-icon-button","","matSuffix","","type","button",3,"click"],[1,"nl-parsed-hint"],[1,"nl-error"],["mat-raised-button","","color","primary",3,"click"],[3,"value"],[1,"loading-spinner"],["mat-table","",1,"employee-table",3,"dataSource"],["matColumnDef","employeeNumber"],["mat-header-cell","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","name"],["matColumnDef","email"],["matColumnDef","phone"],["matColumnDef","positionTitle"],["matColumnDef","actions"],["mat-header-row","",4,"matHeaderRowDef"],["mat-row","",4,"matRowDef","matRowDefColumns"],["class","mat-row",4,"ngIf"],["mat-header-cell",""],["mat-cell",""],[1,"action-buttons"],["mat-icon-button","","color","primary","matTooltip","View Details",3,"click"],["mat-icon-button","","color","accent","matTooltip","Edit Employee",3,"click",4,"appHasRole"],["mat-icon-button","","color","warn","matTooltip","Delete Employee",3,"click",4,"appHasRole"],["mat-icon-button","","color","accent","matTooltip","Edit Employee",3,"click"],["mat-icon-button","","color","warn","matTooltip","Delete Employee",3,"click"],["mat-header-row",""],["mat-row",""],[1,"mat-row"],[1,"mat-cell"],[1,"no-data"]],template:function(r,o){if(r&1){let a=q();M(0,"page-header"),A(1,cbe,14,6,"mat-card",6),m(2,"mat-card")(3,"mat-card-header")(4,"mat-card-title"),g(5,"Employee Directory"),h(),M(6,"div",7),A(7,dbe,4,0,"button",8),h(),m(8,"mat-card-content")(9,"form",9)(10,"div",10)(11,"mat-form-field",11)(12,"mat-label"),g(13,"Employee Number"),h(),M(14,"input",12),m(15,"mat-autocomplete",null,0),A(17,ube,2,2,"mat-option",13),ue(18,"async"),h()(),m(19,"mat-form-field",11)(20,"mat-label"),g(21,"First Name"),h(),M(22,"input",14),m(23,"mat-autocomplete",null,1),A(25,mbe,2,2,"mat-option",13),ue(26,"async"),h()(),m(27,"mat-form-field",11)(28,"mat-label"),g(29,"Last Name"),h(),M(30,"input",15),m(31,"mat-autocomplete",null,2),A(33,hbe,2,2,"mat-option",13),ue(34,"async"),h()(),m(35,"mat-form-field",11)(36,"mat-label"),g(37,"Email"),h(),M(38,"input",16),m(39,"mat-autocomplete",null,3),A(41,pbe,2,2,"mat-option",13),ue(42,"async"),h()(),m(43,"mat-form-field",11)(44,"mat-label"),g(45,"Position Title"),h(),M(46,"input",17),m(47,"mat-autocomplete",null,4),A(49,fbe,2,2,"mat-option",13),ue(50,"async"),h()(),m(51,"div",18)(52,"button",19),S("click",function(){return T(a),I(o.onClearSearch())}),m(53,"mat-icon"),g(54,"clear"),h(),g(55," Clear Filters "),h()()()(),m(56,"div",20),A(57,gbe,2,0,"div",21)(58,Pbe,22,4,"table",22),h(),m(59,"mat-paginator",23),S("page",function(l){return T(a),I(o.onPageChange(l))}),h()()()}if(r&2){let a=Me(16),s=Me(24),l=Me(32),c=Me(40),d=Me(48);f(),v("ngIf",o.aiEnabled),f(6),v("appHasRole",rt(29,I6)),f(2),v("formGroup",o.searchForm),f(5),v("matAutocomplete",a),f(3),v("ngForOf",Oe(18,19,o.filteredEmployeeNumbers$)),f(5),v("matAutocomplete",s),f(3),v("ngForOf",Oe(26,21,o.filteredFirstNames$)),f(5),v("matAutocomplete",l),f(3),v("ngForOf",Oe(34,23,o.filteredLastNames$)),f(5),v("matAutocomplete",c),f(3),v("ngForOf",Oe(42,25,o.filteredEmails$)),f(5),v("matAutocomplete",d),f(3),v("ngForOf",Oe(50,27,o.filteredPositionTitles$)),f(8),v("ngIf",o.loading),f(),v("ngIf",!o.loading),f(),v("length",o.totalCount)("pageSize",o.pageSize)("pageSizeOptions",rt(30,ibe))("pageIndex",o.pageNumber-1)}},dependencies:[ut,vr,Jt,$n,no,Hi,qt,io,Ji,Ur,Be,Mt,Yt,Ut,Ht,zt,Gt,Wt,tt,st,Mn,en,Ci,Gi,hl,Pi,id,Gc,Yc,Xc,Qc,qc,Jc,Kc,Zc,ed,td,vc,or,gi,fi,$r,Ao,Dw,ww,wn,w_,_i,Tn,Qt,Wn,sn],styles:["mat-card[_ngcontent-%COMP%]{margin:16px}.nl-search-card[_ngcontent-%COMP%]{margin-bottom:0}.nl-search-card[_ngcontent-%COMP%] .nl-search-field[_ngcontent-%COMP%]{width:100%}.nl-search-card[_ngcontent-%COMP%] .nl-parsed-hint[_ngcontent-%COMP%]{display:flex;align-items:center;gap:8px;font-size:13px;color:#0009;margin-top:4px}.nl-search-card[_ngcontent-%COMP%] .nl-parsed-hint[_ngcontent-%COMP%] mat-icon[_ngcontent-%COMP%]{font-size:16px;height:16px;width:16px;color:#1976d2}.nl-search-card[_ngcontent-%COMP%] .nl-error[_ngcontent-%COMP%]{display:flex;align-items:center;gap:8px;font-size:13px;color:#b00020;margin-top:4px}.nl-search-card[_ngcontent-%COMP%] .nl-error[_ngcontent-%COMP%] mat-icon[_ngcontent-%COMP%]{font-size:16px;height:16px;width:16px}mat-card-header[_ngcontent-%COMP%]{display:flex;align-items:center;margin-bottom:16px;padding:16px;border-bottom:1px solid rgba(0,0,0,.12)}mat-card-header[_ngcontent-%COMP%] mat-card-title[_ngcontent-%COMP%]{font-size:20px;font-weight:500;margin:0}mat-card-header[_ngcontent-%COMP%] .flex-spacer[_ngcontent-%COMP%]{flex:1 1 auto}mat-card-header[_ngcontent-%COMP%] button[_ngcontent-%COMP%] mat-icon[_ngcontent-%COMP%]{margin-right:4px}mat-card-content[_ngcontent-%COMP%]{padding:0}.search-form[_ngcontent-%COMP%]{padding:16px;background-color:#f5f5f5;margin-bottom:0}.search-form[_ngcontent-%COMP%] .search-row[_ngcontent-%COMP%]{display:grid;grid-template-columns:repeat(auto-fit,minmax(180px,1fr));gap:16px;align-items:start}.search-form[_ngcontent-%COMP%] .search-row[_ngcontent-%COMP%] mat-form-field[_ngcontent-%COMP%]{width:100%}.search-form[_ngcontent-%COMP%] .search-row[_ngcontent-%COMP%] .search-buttons[_ngcontent-%COMP%]{display:flex;gap:8px;align-items:center}.search-form[_ngcontent-%COMP%] .search-row[_ngcontent-%COMP%] .search-buttons[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{white-space:nowrap}.search-form[_ngcontent-%COMP%] .search-row[_ngcontent-%COMP%] .search-buttons[_ngcontent-%COMP%] button[_ngcontent-%COMP%] mat-icon[_ngcontent-%COMP%]{margin-right:4px}.table-container[_ngcontent-%COMP%]{position:relative;min-height:300px;overflow-x:auto}.loading-spinner[_ngcontent-%COMP%]{display:flex;justify-content:center;align-items:center;min-height:300px}.employee-table[_ngcontent-%COMP%]{width:100%}.employee-table[_ngcontent-%COMP%] th[_ngcontent-%COMP%]{font-weight:600;font-size:14px;color:#000000de}.employee-table[_ngcontent-%COMP%] td[_ngcontent-%COMP%]{font-size:14px;color:#000000de}.employee-table[_ngcontent-%COMP%] .mat-column-employeeNumber[_ngcontent-%COMP%]{width:120px}.employee-table[_ngcontent-%COMP%] .mat-column-name[_ngcontent-%COMP%], .employee-table[_ngcontent-%COMP%] .mat-column-email[_ngcontent-%COMP%]{min-width:200px}.employee-table[_ngcontent-%COMP%] .mat-column-phone[_ngcontent-%COMP%]{width:150px}.employee-table[_ngcontent-%COMP%] .mat-column-positionTitle[_ngcontent-%COMP%]{min-width:200px}.employee-table[_ngcontent-%COMP%] .mat-column-actions[_ngcontent-%COMP%]{width:120px;text-align:right}.employee-table[_ngcontent-%COMP%] .mat-column-actions[_ngcontent-%COMP%] .action-buttons[_ngcontent-%COMP%]{display:flex;justify-content:flex-end;align-items:center;gap:4px}.no-data[_ngcontent-%COMP%]{display:flex;flex-direction:column;align-items:center;justify-content:center;padding:48px 16px;color:#0000008a}.no-data[_ngcontent-%COMP%] mat-icon[_ngcontent-%COMP%]{font-size:48px;width:48px;height:48px;margin-bottom:16px}.no-data[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{margin:0;font-size:16px}mat-paginator[_ngcontent-%COMP%]{border-top:1px solid rgba(0,0,0,.12)}"]});let t=n;return t})();var Lu=(function(t){return t[t.Male=0]="Male",t[t.Female=1]="Female",t})(Lu||{});var Fbe=()=>["HRAdmin","Manager"],Nbe=()=>["HRAdmin"];function Lbe(t,n){t&1&&(m(0,"div",2),M(1,"mat-spinner"),h())}function Vbe(t,n){if(t&1){let e=q();m(0,"button",14),S("click",function(){T(e);let r=x(2);return I(r.editEmployee())}),m(1,"mat-icon"),g(2,"edit"),h(),g(3," Edit "),h()}}function Bbe(t,n){if(t&1){let e=q();m(0,"button",15),S("click",function(){T(e);let r=x(2);return I(r.deleteEmployee())}),m(1,"mat-icon"),g(2,"delete"),h(),g(3," Delete "),h()}}function jbe(t,n){if(t&1&&(m(0,"mat-list-item")(1,"span",10),g(2,"Address"),h(),m(3,"span",11),g(4),h()()),t&2){let e=x(2);f(4),N(e.employee.address)}}function Hbe(t,n){if(t&1&&(m(0,"mat-list-item")(1,"span",10),g(2,"Hire Date"),h(),m(3,"span",11),g(4),ue(5,"date"),h()()),t&2){let e=x(2);f(4),N(Oe(5,1,e.employee.hireDate))}}function zbe(t,n){if(t&1&&(m(0,"mat-list-item")(1,"span",10),g(2,"Salary Range"),h(),m(3,"span",11),g(4),ue(5,"number"),ue(6,"number"),h()()),t&2){let e=x(2);f(4),Sm(" ",e.employee.salaryRange.name," ($",Oe(5,3,e.employee.salaryRange.minSalary)," - $",Oe(6,5,e.employee.salaryRange.maxSalary),") ")}}function Ube(t,n){if(t&1&&(m(0,"mat-list-item")(1,"span",10),g(2,"Created"),h(),m(3,"span",11),g(4),ue(5,"date"),h()()),t&2){let e=x(3);f(4),N(Ei(5,1,e.employee.createdAt,"medium"))}}function $be(t,n){if(t&1&&(m(0,"mat-list-item")(1,"span",10),g(2,"Last Modified"),h(),m(3,"span",11),g(4),ue(5,"date"),h()()),t&2){let e=x(3);f(4),N(Ei(5,1,e.employee.lastModifiedAt,"medium"))}}function Wbe(t,n){if(t&1&&(m(0,"div",9)(1,"h3"),g(2,"Audit Information"),h(),M(3,"mat-divider"),m(4,"mat-list"),A(5,Ube,6,4,"mat-list-item",1)(6,$be,6,4,"mat-list-item",1),h()()),t&2){let e=x(2);f(5),v("ngIf",e.employee.createdAt),f(),v("ngIf",e.employee.lastModifiedAt)}}function Gbe(t,n){if(t&1){let e=q();m(0,"mat-card")(1,"mat-card-header")(2,"mat-card-title"),g(3),h(),M(4,"div",3),m(5,"div",4)(6,"button",5),S("click",function(){T(e);let r=x();return I(r.goBack())}),m(7,"mat-icon"),g(8,"arrow_back"),h(),g(9," Back to List "),h(),A(10,Vbe,4,0,"button",6)(11,Bbe,4,0,"button",7),h()(),m(12,"mat-card-content")(13,"div",8)(14,"div",9)(15,"h3"),g(16,"Personal Information"),h(),M(17,"mat-divider"),m(18,"mat-list")(19,"mat-list-item")(20,"span",10),g(21,"Employee Number"),h(),m(22,"span",11),g(23),h()(),m(24,"mat-list-item")(25,"span",10),g(26,"Full Name"),h(),m(27,"span",11),g(28),h()(),m(29,"mat-list-item")(30,"span",10),g(31,"Date of Birth"),h(),m(32,"span",11),g(33),ue(34,"date"),h()(),m(35,"mat-list-item")(36,"span",10),g(37,"Gender"),h(),m(38,"span",11),g(39),h()()()(),m(40,"div",9)(41,"h3"),g(42,"Contact Information"),h(),M(43,"mat-divider"),m(44,"mat-list")(45,"mat-list-item")(46,"span",10),g(47,"Email"),h(),m(48,"span",11)(49,"a",12),g(50),h()()(),m(51,"mat-list-item")(52,"span",10),g(53,"Phone Number"),h(),m(54,"span",11)(55,"a",12),g(56),h()()(),A(57,jbe,5,1,"mat-list-item",1),h()(),m(58,"div",9)(59,"h3"),g(60,"Employment Information"),h(),M(61,"mat-divider"),m(62,"mat-list"),A(63,Hbe,6,3,"mat-list-item",1),m(64,"mat-list-item")(65,"span",10),g(66,"Salary"),h(),m(67,"span",11),g(68),ue(69,"currency"),h()(),m(70,"mat-list-item")(71,"span",10),g(72,"Department"),h(),m(73,"span",11),g(74),h()(),m(75,"mat-list-item")(76,"span",10),g(77,"Position"),h(),m(78,"span",11),g(79),h()(),A(80,zbe,7,7,"mat-list-item",1),h()(),A(81,Wbe,7,2,"div",13),h()()()}if(t&2){let e=x();f(3),N(e.getFullName()),f(7),v("appHasRole",rt(22,Fbe)),f(),v("appHasRole",rt(23,Nbe)),f(12),N(e.employee.employeeNumber),f(5),N(e.getFullName()),f(5),N(Oe(34,18,e.employee.dateOfBirth||e.employee.birthday)),f(6),N(e.getGenderLabel(e.employee.gender)),f(10),v("href","mailto:"+e.employee.email,Qr),f(),N(e.employee.email),f(5),v("href","tel:"+(e.employee.phoneNumber||e.employee.phone),Qr),f(),N(e.employee.phoneNumber||e.employee.phone),f(),v("ngIf",e.employee.address),f(6),v("ngIf",e.employee.hireDate),f(5),N(Oe(69,20,e.employee.salary)),f(6),N(e.employee.departmentName||(e.employee.department==null?null:e.employee.department.name)||"N/A"),f(5),N(e.employee.positionTitle||(e.employee.position==null?null:e.employee.position.positionTitle)||"N/A"),f(),v("ngIf",e.employee.salaryRange),f(),v("ngIf",e.employee.createdAt||e.employee.lastModifiedAt)}}function qbe(t,n){if(t&1){let e=q();m(0,"mat-card")(1,"mat-card-content")(2,"div",16)(3,"mat-icon"),g(4,"error"),h(),m(5,"p"),g(6,"Employee not found"),h(),m(7,"button",17),S("click",function(){T(e);let r=x();return I(r.goBack())}),g(8," Go Back "),h()()()()}}var O6=(()=>{let n=class n{constructor(){this.employeeService=u(mp),this.authService=u(Ot),this.router=u(Re),this.route=u(Si),this.snackBar=u(ui),this.dialog=u(kn),this.loading=!1}ngOnInit(){let i=this.route.snapshot.paramMap.get("id");i&&this.loadEmployee(i)}loadEmployee(i){this.loading=!0,this.employeeService.getById(i).subscribe({next:r=>{this.employee=r,this.loading=!1},error:r=>{console.error("Error loading employee:",r),this.loading=!1,this.router.navigate(["/employees"])}})}getFullName(){return this.employee?[this.employee.prefix,this.employee.firstName,this.employee.middleName,this.employee.lastName,this.employee.suffix].filter(Boolean).join(" "):""}getGenderLabel(i){return i===Lu.Male?"Male":"Female"}editEmployee(){this.employee&&this.router.navigate(["/employees","edit",this.employee.id])}deleteEmployee(){if(!this.employee)return;let i=this.getFullName();this.dialog.open(Tr,{width:"400px",data:{title:"Delete Employee",message:`Are you sure you want to delete ${i}? This action cannot be undone.`,confirmText:"Delete",cancelText:"Cancel"}}).afterClosed().subscribe(o=>{o&&this.employeeService.delete(this.employee.id).subscribe({next:()=>{let a=this.snackBar.open(`${i} has been deleted.`,"Close",{duration:3e3,horizontalPosition:"end",verticalPosition:"top"});a.afterDismissed().subscribe(()=>this.router.navigate(["/employees"])),a.onAction().subscribe(()=>this.router.navigate(["/employees"]))},error:a=>{console.error("Error deleting employee:",a),this.snackBar.open("Failed to delete employee. Please try again.","Close",{duration:4e3,horizontalPosition:"end",verticalPosition:"top"})}})})}goBack(){this.router.navigate(["/employees"])}canEdit(){return this.authService.isHRAdmin()||this.authService.isManager()}canDelete(){return this.authService.isHRAdmin()}};n.\u0275fac=function(r){return new(r||n)},n.\u0275cmp=E({type:n,selectors:[["app-employee-detail"]],decls:4,vars:3,consts:[["class","loading-spinner",4,"ngIf"],[4,"ngIf"],[1,"loading-spinner"],[1,"flex-spacer"],[1,"header-actions"],["mat-stroked-button","",3,"click"],["mat-raised-button","","color","accent",3,"click",4,"appHasRole"],["mat-raised-button","","color","warn",3,"click",4,"appHasRole"],[1,"detail-container"],[1,"detail-section"],["matListItemTitle",""],["matListItemLine",""],[3,"href"],["class","detail-section",4,"ngIf"],["mat-raised-button","","color","accent",3,"click"],["mat-raised-button","","color","warn",3,"click"],[1,"no-data"],["mat-raised-button","","color","primary",3,"click"]],template:function(r,o){r&1&&(M(0,"page-header"),A(1,Lbe,2,0,"div",0)(2,Gbe,82,24,"mat-card",1)(3,qbe,9,0,"mat-card",1)),r&2&&(f(),v("ngIf",o.loading),f(),v("ngIf",!o.loading&&o.employee),f(),v("ngIf",!o.loading&&!o.employee))},dependencies:[ut,Jt,Be,Mt,Ut,Ht,zt,Gt,Wt,tt,st,gi,fi,ho,Po,ua,Ns,da,Pu,Ml,_i,Tn,Qt,Wn,jd,nl,Ta],styles:[".loading-spinner[_ngcontent-%COMP%]{display:flex;justify-content:center;align-items:center;min-height:400px}mat-card[_ngcontent-%COMP%]{margin:16px;max-width:1200px}mat-card-header[_ngcontent-%COMP%]{display:flex;align-items:center;padding:16px;border-bottom:1px solid rgba(0,0,0,.12)}mat-card-header[_ngcontent-%COMP%] mat-card-title[_ngcontent-%COMP%]{font-size:24px;font-weight:500;margin:0}mat-card-header[_ngcontent-%COMP%] .flex-spacer[_ngcontent-%COMP%]{flex:1 1 auto}mat-card-header[_ngcontent-%COMP%] .header-actions[_ngcontent-%COMP%]{display:flex;gap:12px}mat-card-header[_ngcontent-%COMP%] .header-actions[_ngcontent-%COMP%] button[_ngcontent-%COMP%] mat-icon[_ngcontent-%COMP%]{margin-right:4px}mat-card-content[_ngcontent-%COMP%]{padding:24px}.detail-container[_ngcontent-%COMP%]{display:grid;grid-template-columns:1fr 1fr;gap:24px}@media (max-width: 768px){.detail-container[_ngcontent-%COMP%]{grid-template-columns:1fr}}.detail-section[_ngcontent-%COMP%] h3[_ngcontent-%COMP%]{font-size:16px;font-weight:500;margin:0 0 8px;color:#000000de}.detail-section[_ngcontent-%COMP%] mat-divider[_ngcontent-%COMP%]{margin-bottom:16px}.detail-section[_ngcontent-%COMP%] mat-list[_ngcontent-%COMP%]{padding:0}.detail-section[_ngcontent-%COMP%] mat-list-item[_ngcontent-%COMP%]{height:auto;min-height:48px;padding:8px 0}.detail-section[_ngcontent-%COMP%] mat-list-item[_ngcontent-%COMP%] span[matListItemTitle][_ngcontent-%COMP%]{font-weight:500;color:#0009;font-size:12px;text-transform:uppercase;letter-spacing:.5px}.detail-section[_ngcontent-%COMP%] mat-list-item[_ngcontent-%COMP%] span[matListItemLine][_ngcontent-%COMP%]{font-size:14px;color:#000000de;margin-top:4px;white-space:normal;word-break:break-word}.detail-section[_ngcontent-%COMP%] mat-list-item[_ngcontent-%COMP%] span[matListItemLine][_ngcontent-%COMP%] a[_ngcontent-%COMP%]{color:#1976d2;text-decoration:none}.detail-section[_ngcontent-%COMP%] mat-list-item[_ngcontent-%COMP%] span[matListItemLine][_ngcontent-%COMP%] a[_ngcontent-%COMP%]:hover{text-decoration:underline}.no-data[_ngcontent-%COMP%]{display:flex;flex-direction:column;align-items:center;justify-content:center;padding:48px 16px;color:#0000008a}.no-data[_ngcontent-%COMP%] mat-icon[_ngcontent-%COMP%]{font-size:64px;width:64px;height:64px;margin-bottom:16px;color:#f44336}.no-data[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{margin:0 0 24px;font-size:18px}"]});let t=n;return t})();var Qbe=["mat-calendar-body",""];function Kbe(t,n){return this._trackRow(n)}var B6=(t,n)=>n.id;function Zbe(t,n){if(t&1&&(m(0,"tr",0)(1,"td",3),g(2),h()()),t&2){let e=x();f(),Et("padding-top",e._cellPadding)("padding-bottom",e._cellPadding),X("colspan",e.numCols),f(),pe(" ",e.label," ")}}function Xbe(t,n){if(t&1&&(m(0,"td",3),g(1),h()),t&2){let e=x(2);Et("padding-top",e._cellPadding)("padding-bottom",e._cellPadding),X("colspan",e._firstRowOffset),f(),pe(" ",e._firstRowOffset>=e.labelMinRequiredCells?e.label:""," ")}}function Jbe(t,n){if(t&1){let e=q();m(0,"td",6)(1,"button",7),S("click",function(r){let o=T(e).$implicit,a=x(2);return I(a._cellClicked(o,r))})("focus",function(r){let o=T(e).$implicit,a=x(2);return I(a._emitActiveDateChange(o,r))}),m(2,"span",8),g(3),h(),M(4,"span",9),h()()}if(t&2){let e=n.$implicit,i=n.$index,r=x().$index,o=x();Et("width",o._cellWidth)("padding-top",o._cellPadding)("padding-bottom",o._cellPadding),X("data-mat-row",r)("data-mat-col",i),f(),G("mat-calendar-body-disabled",!e.enabled)("mat-calendar-body-active",o._isActiveCell(r,i))("mat-calendar-body-range-start",o._isRangeStart(e.compareValue))("mat-calendar-body-range-end",o._isRangeEnd(e.compareValue))("mat-calendar-body-in-range",o._isInRange(e.compareValue))("mat-calendar-body-comparison-bridge-start",o._isComparisonBridgeStart(e.compareValue,r,i))("mat-calendar-body-comparison-bridge-end",o._isComparisonBridgeEnd(e.compareValue,r,i))("mat-calendar-body-comparison-start",o._isComparisonStart(e.compareValue))("mat-calendar-body-comparison-end",o._isComparisonEnd(e.compareValue))("mat-calendar-body-in-comparison-range",o._isInComparisonRange(e.compareValue))("mat-calendar-body-preview-start",o._isPreviewStart(e.compareValue))("mat-calendar-body-preview-end",o._isPreviewEnd(e.compareValue))("mat-calendar-body-in-preview",o._isInPreview(e.compareValue)),v("ngClass",e.cssClasses)("tabindex",o._isActiveCell(r,i)?0:-1),X("aria-label",e.ariaLabel)("aria-disabled",!e.enabled||null)("aria-pressed",o._isSelected(e.compareValue))("aria-current",o.todayValue===e.compareValue?"date":null)("aria-describedby",o._getDescribedby(e.compareValue)),f(),G("mat-calendar-body-selected",o._isSelected(e.compareValue))("mat-calendar-body-comparison-identical",o._isComparisonIdentical(e.compareValue))("mat-calendar-body-today",o.todayValue===e.compareValue),f(),pe(" ",e.displayValue," ")}}function e0e(t,n){if(t&1&&(m(0,"tr",1),V(1,Xbe,2,6,"td",4),xt(2,Jbe,5,48,"td",5,B6),h()),t&2){let e=n.$implicit,i=n.$index,r=x();f(),B(i===0&&r._firstRowOffset?1:-1),f(),Ct(e)}}function t0e(t,n){if(t&1&&(m(0,"th",2)(1,"span",6),g(2),h(),m(3,"span",3),g(4),h()()),t&2){let e=n.$implicit;f(2),N(e.long),f(2),N(e.narrow)}}var i0e=["*"];function n0e(t,n){}function r0e(t,n){if(t&1){let e=q();m(0,"mat-month-view",4),Nr("activeDateChange",function(r){T(e);let o=x();return Zr(o.activeDate,r)||(o.activeDate=r),I(r)}),S("_userSelection",function(r){T(e);let o=x();return I(o._dateSelected(r))})("dragStarted",function(r){T(e);let o=x();return I(o._dragStarted(r))})("dragEnded",function(r){T(e);let o=x();return I(o._dragEnded(r))}),h()}if(t&2){let e=x();Fr("activeDate",e.activeDate),v("selected",e.selected)("dateFilter",e.dateFilter)("maxDate",e.maxDate)("minDate",e.minDate)("dateClass",e.dateClass)("comparisonStart",e.comparisonStart)("comparisonEnd",e.comparisonEnd)("startDateAccessibleName",e.startDateAccessibleName)("endDateAccessibleName",e.endDateAccessibleName)("activeDrag",e._activeDrag)}}function o0e(t,n){if(t&1){let e=q();m(0,"mat-year-view",5),Nr("activeDateChange",function(r){T(e);let o=x();return Zr(o.activeDate,r)||(o.activeDate=r),I(r)}),S("monthSelected",function(r){T(e);let o=x();return I(o._monthSelectedInYearView(r))})("selectedChange",function(r){T(e);let o=x();return I(o._goToDateInView(r,"month"))}),h()}if(t&2){let e=x();Fr("activeDate",e.activeDate),v("selected",e.selected)("dateFilter",e.dateFilter)("maxDate",e.maxDate)("minDate",e.minDate)("dateClass",e.dateClass)}}function a0e(t,n){if(t&1){let e=q();m(0,"mat-multi-year-view",6),Nr("activeDateChange",function(r){T(e);let o=x();return Zr(o.activeDate,r)||(o.activeDate=r),I(r)}),S("yearSelected",function(r){T(e);let o=x();return I(o._yearSelectedInMultiYearView(r))})("selectedChange",function(r){T(e);let o=x();return I(o._goToDateInView(r,"year"))}),h()}if(t&2){let e=x();Fr("activeDate",e.activeDate),v("selected",e.selected)("dateFilter",e.dateFilter)("maxDate",e.maxDate)("minDate",e.minDate)("dateClass",e.dateClass)}}function s0e(t,n){}var l0e=["button"],c0e=[[["","matDatepickerToggleIcon",""]]],d0e=["[matDatepickerToggleIcon]"];function u0e(t,n){t&1&&(Zt(),m(0,"svg",2),M(1,"path",3),h())}var gp=(()=>{class t{changes=new z;calendarLabel="Calendar";openCalendarLabel="Open calendar";closeCalendarLabel="Close calendar";prevMonthLabel="Previous month";nextMonthLabel="Next month";prevYearLabel="Previous year";nextYearLabel="Next year";prevMultiYearLabel="Previous 24 years";nextMultiYearLabel="Next 24 years";switchToMonthViewLabel="Choose date";switchToMultiYearViewLabel="Choose month and year";startDateLabel="Start date";endDateLabel="End date";comparisonDateLabel="Comparison range";formatYearRange(e,i){return`${e} \u2013 ${i}`}formatYearRangeLabel(e,i){return`${e} to ${i}`}static \u0275fac=function(i){return new(i||t)};static \u0275prov=R({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),m0e=0,E_=class{value;displayValue;ariaLabel;enabled;cssClasses;compareValue;rawValue;id=m0e++;constructor(n,e,i,r,o={},a=n,s){this.value=n,this.displayValue=e,this.ariaLabel=i,this.enabled=r,this.cssClasses=o,this.compareValue=a,this.rawValue=s}},h0e={passive:!1,capture:!0},Mw={passive:!0,capture:!0},R6={passive:!0},fp=(()=>{class t{_elementRef=u(Y);_ngZone=u(ae);_platform=u(qe);_intl=u(gp);_eventCleanups;_skipNextFocus;_focusActiveCellAfterViewChecked=!1;label;rows;todayValue;startValue;endValue;labelMinRequiredCells;numCols=7;activeCell=0;ngAfterViewChecked(){this._focusActiveCellAfterViewChecked&&(this._focusActiveCell(),this._focusActiveCellAfterViewChecked=!1)}isRange=!1;cellAspectRatio=1;comparisonStart;comparisonEnd;previewStart=null;previewEnd=null;startDateAccessibleName;endDateAccessibleName;selectedValueChange=new U;previewChange=new U;activeDateChange=new U;dragStarted=new U;dragEnded=new U;_firstRowOffset;_cellPadding;_cellWidth;_startDateLabelId;_endDateLabelId;_comparisonStartDateLabelId;_comparisonEndDateLabelId;_didDragSinceMouseDown=!1;_injector=u(de);comparisonDateAccessibleName=this._intl.comparisonDateLabel;_trackRow=e=>e;constructor(){let e=u(ze),i=u(Ze);this._startDateLabelId=i.getId("mat-calendar-body-start-"),this._endDateLabelId=i.getId("mat-calendar-body-end-"),this._comparisonStartDateLabelId=i.getId("mat-calendar-body-comparison-start-"),this._comparisonEndDateLabelId=i.getId("mat-calendar-body-comparison-end-"),u(ht).load(ki),this._ngZone.runOutsideAngular(()=>{let r=this._elementRef.nativeElement,o=[e.listen(r,"touchmove",this._touchmoveHandler,h0e),e.listen(r,"mouseenter",this._enterHandler,Mw),e.listen(r,"focus",this._enterHandler,Mw),e.listen(r,"mouseleave",this._leaveHandler,Mw),e.listen(r,"blur",this._leaveHandler,Mw),e.listen(r,"mousedown",this._mousedownHandler,R6),e.listen(r,"touchstart",this._mousedownHandler,R6)];this._platform.isBrowser&&o.push(e.listen("window","mouseup",this._mouseupHandler),e.listen("window","touchend",this._touchendHandler)),this._eventCleanups=o})}_cellClicked(e,i){this._didDragSinceMouseDown||e.enabled&&this.selectedValueChange.emit({value:e.value,event:i})}_emitActiveDateChange(e,i){e.enabled&&this.activeDateChange.emit({value:e.value,event:i})}_isSelected(e){return this.startValue===e||this.endValue===e}ngOnChanges(e){let i=e.numCols,{rows:r,numCols:o}=this;(e.rows||i)&&(this._firstRowOffset=r&&r.length&&r[0].length?o-r[0].length:0),(e.cellAspectRatio||i||!this._cellPadding)&&(this._cellPadding=`${50*this.cellAspectRatio/o}%`),(i||!this._cellWidth)&&(this._cellWidth=`${100/o}%`)}ngOnDestroy(){this._eventCleanups.forEach(e=>e())}_isActiveCell(e,i){let r=e*this.numCols+i;return e&&(r-=this._firstRowOffset),r==this.activeCell}_focusActiveCell(e=!0){gt(()=>{setTimeout(()=>{let i=this._elementRef.nativeElement.querySelector(".mat-calendar-body-active");i&&(e||(this._skipNextFocus=!0),i.focus())})},{injector:this._injector})}_scheduleFocusActiveCellAfterViewChecked(){this._focusActiveCellAfterViewChecked=!0}_isRangeStart(e){return nA(e,this.startValue,this.endValue)}_isRangeEnd(e){return rA(e,this.startValue,this.endValue)}_isInRange(e){return oA(e,this.startValue,this.endValue,this.isRange)}_isComparisonStart(e){return nA(e,this.comparisonStart,this.comparisonEnd)}_isComparisonBridgeStart(e,i,r){if(!this._isComparisonStart(e)||this._isRangeStart(e)||!this._isInRange(e))return!1;let o=this.rows[i][r-1];if(!o){let a=this.rows[i-1];o=a&&a[a.length-1]}return o&&!this._isRangeEnd(o.compareValue)}_isComparisonBridgeEnd(e,i,r){if(!this._isComparisonEnd(e)||this._isRangeEnd(e)||!this._isInRange(e))return!1;let o=this.rows[i][r+1];if(!o){let a=this.rows[i+1];o=a&&a[0]}return o&&!this._isRangeStart(o.compareValue)}_isComparisonEnd(e){return rA(e,this.comparisonStart,this.comparisonEnd)}_isInComparisonRange(e){return oA(e,this.comparisonStart,this.comparisonEnd,this.isRange)}_isComparisonIdentical(e){return this.comparisonStart===this.comparisonEnd&&e===this.comparisonStart}_isPreviewStart(e){return nA(e,this.previewStart,this.previewEnd)}_isPreviewEnd(e){return rA(e,this.previewStart,this.previewEnd)}_isInPreview(e){return oA(e,this.previewStart,this.previewEnd,this.isRange)}_getDescribedby(e){if(!this.isRange)return null;if(this.startValue===e&&this.endValue===e)return`${this._startDateLabelId} ${this._endDateLabelId}`;if(this.startValue===e)return this._startDateLabelId;if(this.endValue===e)return this._endDateLabelId;if(this.comparisonStart!==null&&this.comparisonEnd!==null){if(e===this.comparisonStart&&e===this.comparisonEnd)return`${this._comparisonStartDateLabelId} ${this._comparisonEndDateLabelId}`;if(e===this.comparisonStart)return this._comparisonStartDateLabelId;if(e===this.comparisonEnd)return this._comparisonEndDateLabelId}return null}_enterHandler=e=>{if(this._skipNextFocus&&e.type==="focus"){this._skipNextFocus=!1;return}if(e.target&&this.isRange){let i=this._getCellFromElement(e.target);i&&this._ngZone.run(()=>this.previewChange.emit({value:i.enabled?i:null,event:e}))}};_touchmoveHandler=e=>{if(!this.isRange)return;let i=P6(e),r=i?this._getCellFromElement(i):null;i!==e.target&&(this._didDragSinceMouseDown=!0),iA(e.target)&&e.preventDefault(),this._ngZone.run(()=>this.previewChange.emit({value:r?.enabled?r:null,event:e}))};_leaveHandler=e=>{this.previewEnd!==null&&this.isRange&&(e.type!=="blur"&&(this._didDragSinceMouseDown=!0),e.target&&this._getCellFromElement(e.target)&&!(e.relatedTarget&&this._getCellFromElement(e.relatedTarget))&&this._ngZone.run(()=>this.previewChange.emit({value:null,event:e})))};_mousedownHandler=e=>{if(!this.isRange)return;this._didDragSinceMouseDown=!1;let i=e.target&&this._getCellFromElement(e.target);!i||!this._isInRange(i.compareValue)||this._ngZone.run(()=>{this.dragStarted.emit({value:i.rawValue,event:e})})};_mouseupHandler=e=>{if(!this.isRange)return;let i=iA(e.target);if(!i){this._ngZone.run(()=>{this.dragEnded.emit({value:null,event:e})});return}i.closest(".mat-calendar-body")===this._elementRef.nativeElement&&this._ngZone.run(()=>{let r=this._getCellFromElement(i);this.dragEnded.emit({value:r?.rawValue??null,event:e})})};_touchendHandler=e=>{let i=P6(e);i&&this._mouseupHandler({target:i})};_getCellFromElement(e){let i=iA(e);if(i){let r=i.getAttribute("data-mat-row"),o=i.getAttribute("data-mat-col");if(r&&o)return this.rows[parseInt(r)]?.[parseInt(o)]||null}return null}static \u0275fac=function(i){return new(i||t)};static \u0275cmp=E({type:t,selectors:[["","mat-calendar-body",""]],hostAttrs:[1,"mat-calendar-body"],inputs:{label:"label",rows:"rows",todayValue:"todayValue",startValue:"startValue",endValue:"endValue",labelMinRequiredCells:"labelMinRequiredCells",numCols:"numCols",activeCell:"activeCell",isRange:"isRange",cellAspectRatio:"cellAspectRatio",comparisonStart:"comparisonStart",comparisonEnd:"comparisonEnd",previewStart:"previewStart",previewEnd:"previewEnd",startDateAccessibleName:"startDateAccessibleName",endDateAccessibleName:"endDateAccessibleName"},outputs:{selectedValueChange:"selectedValueChange",previewChange:"previewChange",activeDateChange:"activeDateChange",dragStarted:"dragStarted",dragEnded:"dragEnded"},exportAs:["matCalendarBody"],features:[Ae],attrs:Qbe,decls:11,vars:11,consts:[["aria-hidden","true"],["role","row"],[1,"mat-calendar-body-hidden-label",3,"id"],[1,"mat-calendar-body-label"],[1,"mat-calendar-body-label",3,"paddingTop","paddingBottom"],["role","gridcell",1,"mat-calendar-body-cell-container",3,"width","paddingTop","paddingBottom"],["role","gridcell",1,"mat-calendar-body-cell-container"],["type","button",1,"mat-calendar-body-cell",3,"click","focus","ngClass","tabindex"],[1,"mat-calendar-body-cell-content","mat-focus-indicator"],["aria-hidden","true",1,"mat-calendar-body-cell-preview"]],template:function(i,r){i&1&&(V(0,Zbe,3,6,"tr",0),xt(1,e0e,4,1,"tr",1,Kbe,!0),m(3,"span",2),g(4),h(),m(5,"span",2),g(6),h(),m(7,"span",2),g(8),h(),m(9,"span",2),g(10),h()),i&2&&(B(r._firstRowOffset.mat-calendar-body-cell-content:not(.mat-calendar-body-selected):not(.mat-calendar-body-comparison-identical){color:var(--mat-datepicker-calendar-date-disabled-state-text-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent))}.mat-calendar-body-disabled>.mat-calendar-body-today:not(.mat-calendar-body-selected):not(.mat-calendar-body-comparison-identical){border-color:var(--mat-datepicker-calendar-date-today-disabled-state-outline-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent))}@media(forced-colors: active){.mat-calendar-body-disabled{opacity:.5}}.mat-calendar-body-cell-content{top:5%;left:5%;z-index:1;display:flex;align-items:center;justify-content:center;box-sizing:border-box;width:90%;height:90%;line-height:1;border-width:1px;border-style:solid;border-radius:999px;color:var(--mat-datepicker-calendar-date-text-color, var(--mat-sys-on-surface));border-color:var(--mat-datepicker-calendar-date-outline-color, transparent)}.mat-calendar-body-cell-content.mat-focus-indicator{position:absolute}@media(forced-colors: active){.mat-calendar-body-cell-content{border:none}}.cdk-keyboard-focused .mat-calendar-body-active>.mat-calendar-body-cell-content:not(.mat-calendar-body-selected):not(.mat-calendar-body-comparison-identical),.cdk-program-focused .mat-calendar-body-active>.mat-calendar-body-cell-content:not(.mat-calendar-body-selected):not(.mat-calendar-body-comparison-identical){background-color:var(--mat-datepicker-calendar-date-focus-state-background-color, color-mix(in srgb, var(--mat-sys-on-surface) calc(var(--mat-sys-focus-state-layer-opacity) * 100%), transparent))}@media(hover: hover){.mat-calendar-body-cell:not(.mat-calendar-body-disabled):hover>.mat-calendar-body-cell-content:not(.mat-calendar-body-selected):not(.mat-calendar-body-comparison-identical){background-color:var(--mat-datepicker-calendar-date-hover-state-background-color, color-mix(in srgb, var(--mat-sys-on-surface) calc(var(--mat-sys-hover-state-layer-opacity) * 100%), transparent))}}.mat-calendar-body-selected{background-color:var(--mat-datepicker-calendar-date-selected-state-background-color, var(--mat-sys-primary));color:var(--mat-datepicker-calendar-date-selected-state-text-color, var(--mat-sys-on-primary))}.mat-calendar-body-disabled>.mat-calendar-body-selected{background-color:var(--mat-datepicker-calendar-date-selected-disabled-state-background-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent))}.mat-calendar-body-selected.mat-calendar-body-today{box-shadow:inset 0 0 0 1px var(--mat-datepicker-calendar-date-today-selected-state-outline-color, var(--mat-sys-primary))}.mat-calendar-body-in-range::before{background:var(--mat-datepicker-calendar-date-in-range-state-background-color, var(--mat-sys-primary-container))}.mat-calendar-body-comparison-identical,.mat-calendar-body-in-comparison-range::before{background:var(--mat-datepicker-calendar-date-in-comparison-range-state-background-color, var(--mat-sys-tertiary-container))}.mat-calendar-body-comparison-identical,.mat-calendar-body-in-comparison-range::before{background:var(--mat-datepicker-calendar-date-in-comparison-range-state-background-color, var(--mat-sys-tertiary-container))}.mat-calendar-body-comparison-bridge-start::before,[dir=rtl] .mat-calendar-body-comparison-bridge-end::before{background:linear-gradient(to right, var(--mat-datepicker-calendar-date-in-range-state-background-color, var(--mat-sys-primary-container)) 50%, var(--mat-datepicker-calendar-date-in-comparison-range-state-background-color, var(--mat-sys-tertiary-container)) 50%)}.mat-calendar-body-comparison-bridge-end::before,[dir=rtl] .mat-calendar-body-comparison-bridge-start::before{background:linear-gradient(to left, var(--mat-datepicker-calendar-date-in-range-state-background-color, var(--mat-sys-primary-container)) 50%, var(--mat-datepicker-calendar-date-in-comparison-range-state-background-color, var(--mat-sys-tertiary-container)) 50%)}.mat-calendar-body-in-range>.mat-calendar-body-comparison-identical,.mat-calendar-body-in-comparison-range.mat-calendar-body-in-range::after{background:var(--mat-datepicker-calendar-date-in-overlap-range-state-background-color, var(--mat-sys-secondary-container))}.mat-calendar-body-comparison-identical.mat-calendar-body-selected,.mat-calendar-body-in-comparison-range>.mat-calendar-body-selected{background:var(--mat-datepicker-calendar-date-in-overlap-range-selected-state-background-color, var(--mat-sys-secondary))}@media(forced-colors: active){.mat-datepicker-popup:not(:empty),.mat-calendar-body-cell:not(.mat-calendar-body-in-range) .mat-calendar-body-selected{outline:solid 1px}.mat-calendar-body-today{outline:dotted 1px}.mat-calendar-body-cell::before,.mat-calendar-body-cell::after,.mat-calendar-body-selected{background:none}.mat-calendar-body-in-range::before,.mat-calendar-body-comparison-bridge-start::before,.mat-calendar-body-comparison-bridge-end::before{border-top:solid 1px;border-bottom:solid 1px}.mat-calendar-body-range-start::before{border-left:solid 1px}[dir=rtl] .mat-calendar-body-range-start::before{border-left:0;border-right:solid 1px}.mat-calendar-body-range-end::before{border-right:solid 1px}[dir=rtl] .mat-calendar-body-range-end::before{border-right:0;border-left:solid 1px}.mat-calendar-body-in-comparison-range::before{border-top:dashed 1px;border-bottom:dashed 1px}.mat-calendar-body-comparison-start::before{border-left:dashed 1px}[dir=rtl] .mat-calendar-body-comparison-start::before{border-left:0;border-right:dashed 1px}.mat-calendar-body-comparison-end::before{border-right:dashed 1px}[dir=rtl] .mat-calendar-body-comparison-end::before{border-right:0;border-left:dashed 1px}} -`],encapsulation:2,changeDetection:0})}return t})();function tA(t){return t?.nodeName==="TD"}function iA(t){let n;return tA(t)?n=t:tA(t.parentNode)?n=t.parentNode:tA(t.parentNode?.parentNode)&&(n=t.parentNode.parentNode),n?.getAttribute("data-mat-row")!=null?n:null}function nA(t,n,e){return e!==null&&n!==e&&t=n&&t===e}function oA(t,n,e,i){return i&&n!==null&&e!==null&&n!==e&&t>=n&&t<=e}function P6(t){let n=t.changedTouches[0];return document.elementFromPoint(n.clientX,n.clientY)}var ha=class{start;end;_disableStructuralEquivalency;constructor(n,e){this.start=n,this.end=e}},M_=(()=>{class t{selection;_adapter;_selectionChanged=new z;selectionChanged=this._selectionChanged;constructor(e,i){this.selection=e,this._adapter=i,this.selection=e}updateSelection(e,i){let r=this.selection;this.selection=e,this._selectionChanged.next({selection:e,source:i,oldValue:r})}ngOnDestroy(){this._selectionChanged.complete()}_isValidDateInstance(e){return this._adapter.isDateInstance(e)&&this._adapter.isValid(e)}static \u0275fac=function(i){Nd()};static \u0275prov=R({token:t,factory:t.\u0275fac})}return t})(),p0e=(()=>{class t extends M_{constructor(e){super(null,e)}add(e){super.updateSelection(e,this)}isValid(){return this.selection!=null&&this._isValidDateInstance(this.selection)}isComplete(){return this.selection!=null}clone(){let e=new t(this._adapter);return e.updateSelection(this.selection,this),e}static \u0275fac=function(i){return new(i||t)(fe(Bi))};static \u0275prov=R({token:t,factory:t.\u0275fac})}return t})();function f0e(t,n){return t||new p0e(n)}var j6={provide:M_,deps:[[new ls,new Yl,M_],Bi],useFactory:f0e};var H6=new O("MAT_DATE_RANGE_SELECTION_STRATEGY");var aA=7,g0e=0,F6=(()=>{class t{_changeDetectorRef=u(ye);_dateFormats=u(Cs,{optional:!0});_dateAdapter=u(Bi,{optional:!0});_dir=u(Bt,{optional:!0});_rangeStrategy=u(H6,{optional:!0});_rerenderSubscription=Te.EMPTY;_selectionKeyPressed;get activeDate(){return this._activeDate}set activeDate(e){let i=this._activeDate,r=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e))||this._dateAdapter.today();this._activeDate=this._dateAdapter.clampDate(r,this.minDate,this.maxDate),this._hasSameMonthAndYear(i,this._activeDate)||this._init()}_activeDate;get selected(){return this._selected}set selected(e){e instanceof ha?this._selected=e:this._selected=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e)),this._setRanges(this._selected)}_selected;get minDate(){return this._minDate}set minDate(e){this._minDate=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e))}_minDate;get maxDate(){return this._maxDate}set maxDate(e){this._maxDate=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e))}_maxDate;dateFilter;dateClass;comparisonStart;comparisonEnd;startDateAccessibleName;endDateAccessibleName;activeDrag=null;selectedChange=new U;_userSelection=new U;dragStarted=new U;dragEnded=new U;activeDateChange=new U;_matCalendarBody;_monthLabel=he("");_weeks=he([]);_firstWeekOffset=he(0);_rangeStart=he(null);_rangeEnd=he(null);_comparisonRangeStart=he(null);_comparisonRangeEnd=he(null);_previewStart=he(null);_previewEnd=he(null);_isRange=he(!1);_todayDate=he(null);_weekdays=he([]);constructor(){u(ht).load(Jr),this._activeDate=this._dateAdapter.today()}ngAfterContentInit(){this._rerenderSubscription=this._dateAdapter.localeChanges.pipe(Ue(null)).subscribe(()=>this._init())}ngOnChanges(e){let i=e.comparisonStart||e.comparisonEnd;i&&!i.firstChange&&this._setRanges(this.selected),e.activeDrag&&!this.activeDrag&&this._clearPreview()}ngOnDestroy(){this._rerenderSubscription.unsubscribe()}_dateSelected(e){let i=e.value,r=this._getDateFromDayOfMonth(i),o,a;this._selected instanceof ha?(o=this._getDateInCurrentMonth(this._selected.start),a=this._getDateInCurrentMonth(this._selected.end)):o=a=this._getDateInCurrentMonth(this._selected),(o!==i||a!==i)&&this.selectedChange.emit(r),this._userSelection.emit({value:r,event:e.event}),this._clearPreview(),this._changeDetectorRef.markForCheck()}_updateActiveDate(e){let i=e.value,r=this._activeDate;this.activeDate=this._getDateFromDayOfMonth(i),this._dateAdapter.compareDate(r,this.activeDate)&&this.activeDateChange.emit(this._activeDate)}_handleCalendarBodyKeydown(e){let i=this._activeDate,r=this._isRtl();switch(e.keyCode){case 37:this.activeDate=this._dateAdapter.addCalendarDays(this._activeDate,r?1:-1);break;case 39:this.activeDate=this._dateAdapter.addCalendarDays(this._activeDate,r?-1:1);break;case 38:this.activeDate=this._dateAdapter.addCalendarDays(this._activeDate,-7);break;case 40:this.activeDate=this._dateAdapter.addCalendarDays(this._activeDate,7);break;case 36:this.activeDate=this._dateAdapter.addCalendarDays(this._activeDate,1-this._dateAdapter.getDate(this._activeDate));break;case 35:this.activeDate=this._dateAdapter.addCalendarDays(this._activeDate,this._dateAdapter.getNumDaysInMonth(this._activeDate)-this._dateAdapter.getDate(this._activeDate));break;case 33:this.activeDate=e.altKey?this._dateAdapter.addCalendarYears(this._activeDate,-1):this._dateAdapter.addCalendarMonths(this._activeDate,-1);break;case 34:this.activeDate=e.altKey?this._dateAdapter.addCalendarYears(this._activeDate,1):this._dateAdapter.addCalendarMonths(this._activeDate,1);break;case 13:case 32:this._selectionKeyPressed=!0,this._canSelect(this._activeDate)&&e.preventDefault();return;case 27:this._previewEnd()!=null&&!Lt(e)&&(this._clearPreview(),this.activeDrag?this.dragEnded.emit({value:null,event:e}):(this.selectedChange.emit(null),this._userSelection.emit({value:null,event:e})),e.preventDefault(),e.stopPropagation());return;default:return}this._dateAdapter.compareDate(i,this.activeDate)&&(this.activeDateChange.emit(this.activeDate),this._focusActiveCellAfterViewChecked()),e.preventDefault()}_handleCalendarBodyKeyup(e){(e.keyCode===32||e.keyCode===13)&&(this._selectionKeyPressed&&this._canSelect(this._activeDate)&&this._dateSelected({value:this._dateAdapter.getDate(this._activeDate),event:e}),this._selectionKeyPressed=!1)}_init(){this._setRanges(this.selected),this._todayDate.set(this._getCellCompareValue(this._dateAdapter.today())),this._monthLabel.set(this._dateFormats.display.monthLabel?this._dateAdapter.format(this.activeDate,this._dateFormats.display.monthLabel):this._dateAdapter.getMonthNames("short")[this._dateAdapter.getMonth(this.activeDate)].toLocaleUpperCase());let e=this._dateAdapter.createDate(this._dateAdapter.getYear(this.activeDate),this._dateAdapter.getMonth(this.activeDate),1);this._firstWeekOffset.set((aA+this._dateAdapter.getDayOfWeek(e)-this._dateAdapter.getFirstDayOfWeek())%aA),this._initWeekdays(),this._createWeekCells(),this._changeDetectorRef.markForCheck()}_focusActiveCell(e){this._matCalendarBody._focusActiveCell(e)}_focusActiveCellAfterViewChecked(){this._matCalendarBody._scheduleFocusActiveCellAfterViewChecked()}_previewChanged({event:e,value:i}){if(this._rangeStrategy){let r=i?i.rawValue:null,o=this._rangeStrategy.createPreview(r,this.selected,e);if(this._previewStart.set(this._getCellCompareValue(o.start)),this._previewEnd.set(this._getCellCompareValue(o.end)),this.activeDrag&&r){let a=this._rangeStrategy.createDrag?.(this.activeDrag.value,this.selected,r,e);a&&(this._previewStart.set(this._getCellCompareValue(a.start)),this._previewEnd.set(this._getCellCompareValue(a.end)))}}}_dragEnded(e){if(this.activeDrag)if(e.value){let i=this._rangeStrategy?.createDrag?.(this.activeDrag.value,this.selected,e.value,e.event);this.dragEnded.emit({value:i??null,event:e.event})}else this.dragEnded.emit({value:null,event:e.event})}_getDateFromDayOfMonth(e){return this._dateAdapter.createDate(this._dateAdapter.getYear(this.activeDate),this._dateAdapter.getMonth(this.activeDate),e)}_initWeekdays(){let e=this._dateAdapter.getFirstDayOfWeek(),i=this._dateAdapter.getDayOfWeekNames("narrow"),o=this._dateAdapter.getDayOfWeekNames("long").map((a,s)=>({long:a,narrow:i[s],id:g0e++}));this._weekdays.set(o.slice(e).concat(o.slice(0,e)))}_createWeekCells(){let e=this._dateAdapter.getNumDaysInMonth(this.activeDate),i=this._dateAdapter.getDateNames(),r=[[]];for(let o=0,a=this._firstWeekOffset();o=0)&&(!this.maxDate||this._dateAdapter.compareDate(e,this.maxDate)<=0)&&(!this.dateFilter||this.dateFilter(e))}_getDateInCurrentMonth(e){return e&&this._hasSameMonthAndYear(e,this.activeDate)?this._dateAdapter.getDate(e):null}_hasSameMonthAndYear(e,i){return!!(e&&i&&this._dateAdapter.getMonth(e)==this._dateAdapter.getMonth(i)&&this._dateAdapter.getYear(e)==this._dateAdapter.getYear(i))}_getCellCompareValue(e){if(e){let i=this._dateAdapter.getYear(e),r=this._dateAdapter.getMonth(e),o=this._dateAdapter.getDate(e);return new Date(i,r,o).getTime()}return null}_isRtl(){return this._dir&&this._dir.value==="rtl"}_setRanges(e){e instanceof ha?(this._rangeStart.set(this._getCellCompareValue(e.start)),this._rangeEnd.set(this._getCellCompareValue(e.end)),this._isRange.set(!0)):(this._rangeStart.set(this._getCellCompareValue(e)),this._rangeEnd.set(this._rangeStart()),this._isRange.set(!1)),this._comparisonRangeStart.set(this._getCellCompareValue(this.comparisonStart)),this._comparisonRangeEnd.set(this._getCellCompareValue(this.comparisonEnd))}_canSelect(e){return!this.dateFilter||this.dateFilter(e)}_clearPreview(){this._previewStart.set(null),this._previewEnd.set(null)}static \u0275fac=function(i){return new(i||t)};static \u0275cmp=E({type:t,selectors:[["mat-month-view"]],viewQuery:function(i,r){if(i&1&&ie(fp,5),i&2){let o;j(o=H())&&(r._matCalendarBody=o.first)}},inputs:{activeDate:"activeDate",selected:"selected",minDate:"minDate",maxDate:"maxDate",dateFilter:"dateFilter",dateClass:"dateClass",comparisonStart:"comparisonStart",comparisonEnd:"comparisonEnd",startDateAccessibleName:"startDateAccessibleName",endDateAccessibleName:"endDateAccessibleName",activeDrag:"activeDrag"},outputs:{selectedChange:"selectedChange",_userSelection:"_userSelection",dragStarted:"dragStarted",dragEnded:"dragEnded",activeDateChange:"activeDateChange"},exportAs:["matMonthView"],features:[Ae],decls:8,vars:14,consts:[["role","grid",1,"mat-calendar-table"],[1,"mat-calendar-table-header"],["scope","col"],["aria-hidden","true"],["colspan","7",1,"mat-calendar-table-header-divider"],["mat-calendar-body","",3,"selectedValueChange","activeDateChange","previewChange","dragStarted","dragEnded","keyup","keydown","label","rows","todayValue","startValue","endValue","comparisonStart","comparisonEnd","previewStart","previewEnd","isRange","labelMinRequiredCells","activeCell","startDateAccessibleName","endDateAccessibleName"],[1,"cdk-visually-hidden"]],template:function(i,r){i&1&&(m(0,"table",0)(1,"thead",1)(2,"tr"),xt(3,t0e,5,2,"th",2,B6),h(),m(5,"tr",3),M(6,"th",4),h()(),m(7,"tbody",5),S("selectedValueChange",function(a){return r._dateSelected(a)})("activeDateChange",function(a){return r._updateActiveDate(a)})("previewChange",function(a){return r._previewChanged(a)})("dragStarted",function(a){return r.dragStarted.emit(a)})("dragEnded",function(a){return r._dragEnded(a)})("keyup",function(a){return r._handleCalendarBodyKeyup(a)})("keydown",function(a){return r._handleCalendarBodyKeydown(a)}),h()()),i&2&&(f(3),Ct(r._weekdays()),f(4),v("label",r._monthLabel())("rows",r._weeks())("todayValue",r._todayDate())("startValue",r._rangeStart())("endValue",r._rangeEnd())("comparisonStart",r._comparisonRangeStart())("comparisonEnd",r._comparisonRangeEnd())("previewStart",r._previewStart())("previewEnd",r._previewEnd())("isRange",r._isRange())("labelMinRequiredCells",3)("activeCell",r._dateAdapter.getDate(r.activeDate)-1)("startDateAccessibleName",r.startDateAccessibleName)("endDateAccessibleName",r.endDateAccessibleName))},dependencies:[fp],encapsulation:2,changeDetection:0})}return t})(),Fo=24,sA=4,N6=(()=>{class t{_changeDetectorRef=u(ye);_dateAdapter=u(Bi,{optional:!0});_dir=u(Bt,{optional:!0});_rerenderSubscription=Te.EMPTY;_selectionKeyPressed;get activeDate(){return this._activeDate}set activeDate(e){let i=this._activeDate,r=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e))||this._dateAdapter.today();this._activeDate=this._dateAdapter.clampDate(r,this.minDate,this.maxDate),z6(this._dateAdapter,i,this._activeDate,this.minDate,this.maxDate)||this._init()}_activeDate;get selected(){return this._selected}set selected(e){e instanceof ha?this._selected=e:this._selected=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e)),this._setSelectedYear(e)}_selected;get minDate(){return this._minDate}set minDate(e){this._minDate=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e))}_minDate;get maxDate(){return this._maxDate}set maxDate(e){this._maxDate=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e))}_maxDate;dateFilter;dateClass;selectedChange=new U;yearSelected=new U;activeDateChange=new U;_matCalendarBody;_years=he([]);_todayYear=he(0);_selectedYear=he(null);constructor(){this._dateAdapter,this._activeDate=this._dateAdapter.today()}ngAfterContentInit(){this._rerenderSubscription=this._dateAdapter.localeChanges.pipe(Ue(null)).subscribe(()=>this._init())}ngOnDestroy(){this._rerenderSubscription.unsubscribe()}_init(){this._todayYear.set(this._dateAdapter.getYear(this._dateAdapter.today()));let i=this._dateAdapter.getYear(this._activeDate)-D_(this._dateAdapter,this.activeDate,this.minDate,this.maxDate),r=[];for(let o=0,a=[];othis._createCellForYear(s))),a=[]);this._years.set(r),this._changeDetectorRef.markForCheck()}_yearSelected(e){let i=e.value,r=this._dateAdapter.createDate(i,0,1),o=this._getDateFromYear(i);this.yearSelected.emit(r),this.selectedChange.emit(o)}_updateActiveDate(e){let i=e.value,r=this._activeDate;this.activeDate=this._getDateFromYear(i),this._dateAdapter.compareDate(r,this.activeDate)&&this.activeDateChange.emit(this.activeDate)}_handleCalendarBodyKeydown(e){let i=this._activeDate,r=this._isRtl();switch(e.keyCode){case 37:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,r?1:-1);break;case 39:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,r?-1:1);break;case 38:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,-sA);break;case 40:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,sA);break;case 36:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,-D_(this._dateAdapter,this.activeDate,this.minDate,this.maxDate));break;case 35:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,Fo-D_(this._dateAdapter,this.activeDate,this.minDate,this.maxDate)-1);break;case 33:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,e.altKey?-Fo*10:-Fo);break;case 34:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,e.altKey?Fo*10:Fo);break;case 13:case 32:this._selectionKeyPressed=!0;break;default:return}this._dateAdapter.compareDate(i,this.activeDate)&&this.activeDateChange.emit(this.activeDate),this._focusActiveCellAfterViewChecked(),e.preventDefault()}_handleCalendarBodyKeyup(e){(e.keyCode===32||e.keyCode===13)&&(this._selectionKeyPressed&&this._yearSelected({value:this._dateAdapter.getYear(this._activeDate),event:e}),this._selectionKeyPressed=!1)}_getActiveCell(){return D_(this._dateAdapter,this.activeDate,this.minDate,this.maxDate)}_focusActiveCell(){this._matCalendarBody._focusActiveCell()}_focusActiveCellAfterViewChecked(){this._matCalendarBody._scheduleFocusActiveCellAfterViewChecked()}_getDateFromYear(e){let i=this._dateAdapter.getMonth(this.activeDate),r=this._dateAdapter.getNumDaysInMonth(this._dateAdapter.createDate(e,i,1));return this._dateAdapter.createDate(e,i,Math.min(this._dateAdapter.getDate(this.activeDate),r))}_createCellForYear(e){let i=this._dateAdapter.createDate(e,0,1),r=this._dateAdapter.getYearName(i),o=this.dateClass?this.dateClass(i,"multi-year"):void 0;return new E_(e,r,r,this._shouldEnableYear(e),o)}_shouldEnableYear(e){if(e==null||this.maxDate&&e>this._dateAdapter.getYear(this.maxDate)||this.minDate&&e{class t{_changeDetectorRef=u(ye);_dateFormats=u(Cs,{optional:!0});_dateAdapter=u(Bi,{optional:!0});_dir=u(Bt,{optional:!0});_rerenderSubscription=Te.EMPTY;_selectionKeyPressed;get activeDate(){return this._activeDate}set activeDate(e){let i=this._activeDate,r=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e))||this._dateAdapter.today();this._activeDate=this._dateAdapter.clampDate(r,this.minDate,this.maxDate),this._dateAdapter.getYear(i)!==this._dateAdapter.getYear(this._activeDate)&&this._init()}_activeDate;get selected(){return this._selected}set selected(e){e instanceof ha?this._selected=e:this._selected=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e)),this._setSelectedMonth(e)}_selected;get minDate(){return this._minDate}set minDate(e){this._minDate=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e))}_minDate;get maxDate(){return this._maxDate}set maxDate(e){this._maxDate=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e))}_maxDate;dateFilter;dateClass;selectedChange=new U;monthSelected=new U;activeDateChange=new U;_matCalendarBody;_months=he([]);_yearLabel=he("");_todayMonth=he(null);_selectedMonth=he(null);constructor(){this._activeDate=this._dateAdapter.today()}ngAfterContentInit(){this._rerenderSubscription=this._dateAdapter.localeChanges.pipe(Ue(null)).subscribe(()=>this._init())}ngOnDestroy(){this._rerenderSubscription.unsubscribe()}_monthSelected(e){let i=e.value,r=this._dateAdapter.createDate(this._dateAdapter.getYear(this.activeDate),i,1);this.monthSelected.emit(r);let o=this._getDateFromMonth(i);this.selectedChange.emit(o)}_updateActiveDate(e){let i=e.value,r=this._activeDate;this.activeDate=this._getDateFromMonth(i),this._dateAdapter.compareDate(r,this.activeDate)&&this.activeDateChange.emit(this.activeDate)}_handleCalendarBodyKeydown(e){let i=this._activeDate,r=this._isRtl();switch(e.keyCode){case 37:this.activeDate=this._dateAdapter.addCalendarMonths(this._activeDate,r?1:-1);break;case 39:this.activeDate=this._dateAdapter.addCalendarMonths(this._activeDate,r?-1:1);break;case 38:this.activeDate=this._dateAdapter.addCalendarMonths(this._activeDate,-4);break;case 40:this.activeDate=this._dateAdapter.addCalendarMonths(this._activeDate,4);break;case 36:this.activeDate=this._dateAdapter.addCalendarMonths(this._activeDate,-this._dateAdapter.getMonth(this._activeDate));break;case 35:this.activeDate=this._dateAdapter.addCalendarMonths(this._activeDate,11-this._dateAdapter.getMonth(this._activeDate));break;case 33:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,e.altKey?-10:-1);break;case 34:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,e.altKey?10:1);break;case 13:case 32:this._selectionKeyPressed=!0;break;default:return}this._dateAdapter.compareDate(i,this.activeDate)&&(this.activeDateChange.emit(this.activeDate),this._focusActiveCellAfterViewChecked()),e.preventDefault()}_handleCalendarBodyKeyup(e){(e.keyCode===32||e.keyCode===13)&&(this._selectionKeyPressed&&this._monthSelected({value:this._dateAdapter.getMonth(this._activeDate),event:e}),this._selectionKeyPressed=!1)}_init(){this._setSelectedMonth(this.selected),this._todayMonth.set(this._getMonthInCurrentYear(this._dateAdapter.today())),this._yearLabel.set(this._dateAdapter.getYearName(this.activeDate));let e=this._dateAdapter.getMonthNames("short");this._months.set([[0,1,2,3],[4,5,6,7],[8,9,10,11]].map(i=>i.map(r=>this._createCellForMonth(r,e[r])))),this._changeDetectorRef.markForCheck()}_focusActiveCell(){this._matCalendarBody._focusActiveCell()}_focusActiveCellAfterViewChecked(){this._matCalendarBody._scheduleFocusActiveCellAfterViewChecked()}_getMonthInCurrentYear(e){return e&&this._dateAdapter.getYear(e)==this._dateAdapter.getYear(this.activeDate)?this._dateAdapter.getMonth(e):null}_getDateFromMonth(e){let i=this._dateAdapter.createDate(this._dateAdapter.getYear(this.activeDate),e,1),r=this._dateAdapter.getNumDaysInMonth(i);return this._dateAdapter.createDate(this._dateAdapter.getYear(this.activeDate),e,Math.min(this._dateAdapter.getDate(this.activeDate),r))}_createCellForMonth(e,i){let r=this._dateAdapter.createDate(this._dateAdapter.getYear(this.activeDate),e,1),o=this._dateAdapter.format(r,this._dateFormats.display.monthYearA11yLabel),a=this.dateClass?this.dateClass(r,"year"):void 0;return new E_(e,i.toLocaleUpperCase(),o,this._shouldEnableMonth(e),a)}_shouldEnableMonth(e){let i=this._dateAdapter.getYear(this.activeDate);if(e==null||this._isYearAndMonthAfterMaxDate(i,e)||this._isYearAndMonthBeforeMinDate(i,e))return!1;if(!this.dateFilter)return!0;let r=this._dateAdapter.createDate(i,e,1);for(let o=r;this._dateAdapter.getMonth(o)==e;o=this._dateAdapter.addCalendarDays(o,1))if(this.dateFilter(o))return!0;return!1}_isYearAndMonthAfterMaxDate(e,i){if(this.maxDate){let r=this._dateAdapter.getYear(this.maxDate),o=this._dateAdapter.getMonth(this.maxDate);return e>r||e===r&&i>o}return!1}_isYearAndMonthBeforeMinDate(e,i){if(this.minDate){let r=this._dateAdapter.getYear(this.minDate),o=this._dateAdapter.getMonth(this.minDate);return e{class t{_intl=u(gp);calendar=u(lA);_dateAdapter=u(Bi,{optional:!0});_dateFormats=u(Cs,{optional:!0});_periodButtonText;_periodButtonDescription;_periodButtonLabel;_prevButtonLabel;_nextButtonLabel;constructor(){u(ht).load(Jr);let e=u(ye);this._updateLabels(),this.calendar.stateChanges.subscribe(()=>{this._updateLabels(),e.markForCheck()})}get periodButtonText(){return this._periodButtonText}get periodButtonDescription(){return this._periodButtonDescription}get periodButtonLabel(){return this._periodButtonLabel}get prevButtonLabel(){return this._prevButtonLabel}get nextButtonLabel(){return this._nextButtonLabel}currentPeriodClicked(){this.calendar.currentView=this.calendar.currentView=="month"?"multi-year":"month"}previousClicked(){this.previousEnabled()&&(this.calendar.activeDate=this.calendar.currentView=="month"?this._dateAdapter.addCalendarMonths(this.calendar.activeDate,-1):this._dateAdapter.addCalendarYears(this.calendar.activeDate,this.calendar.currentView=="year"?-1:-Fo))}nextClicked(){this.nextEnabled()&&(this.calendar.activeDate=this.calendar.currentView=="month"?this._dateAdapter.addCalendarMonths(this.calendar.activeDate,1):this._dateAdapter.addCalendarYears(this.calendar.activeDate,this.calendar.currentView=="year"?1:Fo))}previousEnabled(){return this.calendar.minDate?!this.calendar.minDate||!this._isSameView(this.calendar.activeDate,this.calendar.minDate):!0}nextEnabled(){return!this.calendar.maxDate||!this._isSameView(this.calendar.activeDate,this.calendar.maxDate)}_updateLabels(){let e=this.calendar,i=this._intl,r=this._dateAdapter;e.currentView==="month"?(this._periodButtonText=r.format(e.activeDate,this._dateFormats.display.monthYearLabel).toLocaleUpperCase(),this._periodButtonDescription=r.format(e.activeDate,this._dateFormats.display.monthYearLabel).toLocaleUpperCase(),this._periodButtonLabel=i.switchToMultiYearViewLabel,this._prevButtonLabel=i.prevMonthLabel,this._nextButtonLabel=i.nextMonthLabel):e.currentView==="year"?(this._periodButtonText=r.getYearName(e.activeDate),this._periodButtonDescription=r.getYearName(e.activeDate),this._periodButtonLabel=i.switchToMonthViewLabel,this._prevButtonLabel=i.prevYearLabel,this._nextButtonLabel=i.nextYearLabel):(this._periodButtonText=i.formatYearRange(...this._formatMinAndMaxYearLabels()),this._periodButtonDescription=i.formatYearRangeLabel(...this._formatMinAndMaxYearLabels()),this._periodButtonLabel=i.switchToMonthViewLabel,this._prevButtonLabel=i.prevMultiYearLabel,this._nextButtonLabel=i.nextMultiYearLabel)}_isSameView(e,i){return this.calendar.currentView=="month"?this._dateAdapter.getYear(e)==this._dateAdapter.getYear(i)&&this._dateAdapter.getMonth(e)==this._dateAdapter.getMonth(i):this.calendar.currentView=="year"?this._dateAdapter.getYear(e)==this._dateAdapter.getYear(i):z6(this._dateAdapter,e,i,this.calendar.minDate,this.calendar.maxDate)}_formatMinAndMaxYearLabels(){let i=this._dateAdapter.getYear(this.calendar.activeDate)-D_(this._dateAdapter,this.calendar.activeDate,this.calendar.minDate,this.calendar.maxDate),r=i+Fo-1,o=this._dateAdapter.getYearName(this._dateAdapter.createDate(i,0,1)),a=this._dateAdapter.getYearName(this._dateAdapter.createDate(r,0,1));return[o,a]}_periodButtonLabelId=u(Ze).getId("mat-calendar-period-label-");static \u0275fac=function(i){return new(i||t)};static \u0275cmp=E({type:t,selectors:[["mat-calendar-header"]],exportAs:["matCalendarHeader"],ngContentSelectors:i0e,decls:17,vars:13,consts:[[1,"mat-calendar-header"],[1,"mat-calendar-controls"],["aria-live","polite",1,"cdk-visually-hidden",3,"id"],["matButton","","type","button",1,"mat-calendar-period-button",3,"click"],["aria-hidden","true"],["viewBox","0 0 10 5","focusable","false","aria-hidden","true",1,"mat-calendar-arrow"],["points","0,0 5,5 10,0"],[1,"mat-calendar-spacer"],["matIconButton","","type","button","disabledInteractive","",1,"mat-calendar-previous-button",3,"click","disabled","matTooltip"],["viewBox","0 0 24 24","focusable","false","aria-hidden","true"],["d","M15.41 7.41L14 6l-6 6 6 6 1.41-1.41L10.83 12z"],["matIconButton","","type","button","disabledInteractive","",1,"mat-calendar-next-button",3,"click","disabled","matTooltip"],["d","M10 6L8.59 7.41 13.17 12l-4.58 4.59L10 18l6-6z"]],template:function(i,r){i&1&&(Se(),m(0,"div",0)(1,"div",1)(2,"span",2),g(3),h(),m(4,"button",3),S("click",function(){return r.currentPeriodClicked()}),m(5,"span",4),g(6),h(),Zt(),m(7,"svg",5),M(8,"polygon",6),h()(),Wo(),M(9,"div",7),ne(10),m(11,"button",8),S("click",function(){return r.previousClicked()}),Zt(),m(12,"svg",9),M(13,"path",10),h()(),Wo(),m(14,"button",11),S("click",function(){return r.nextClicked()}),Zt(),m(15,"svg",9),M(16,"path",12),h()()()()),i&2&&(f(2),v("id",r._periodButtonLabelId),f(),N(r.periodButtonDescription),f(),X("aria-label",r.periodButtonLabel)("aria-describedby",r._periodButtonLabelId),f(2),N(r.periodButtonText),f(),G("mat-calendar-invert",r.calendar.currentView!=="month"),f(4),v("disabled",!r.previousEnabled())("matTooltip",r.prevButtonLabel),X("aria-label",r.prevButtonLabel),f(3),v("disabled",!r.nextEnabled())("matTooltip",r.nextButtonLabel),X("aria-label",r.nextButtonLabel))},dependencies:[Mt,Yt,Ao],encapsulation:2,changeDetection:0})}return t})(),lA=(()=>{class t{_dateAdapter=u(Bi,{optional:!0});_dateFormats=u(Cs,{optional:!0});_changeDetectorRef=u(ye);_elementRef=u(Y);headerComponent;_calendarHeaderPortal;_intlChanges;_moveFocusOnNextTick=!1;get startAt(){return this._startAt}set startAt(e){this._startAt=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e))}_startAt;startView="month";get selected(){return this._selected}set selected(e){e instanceof ha?this._selected=e:this._selected=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e))}_selected;get minDate(){return this._minDate}set minDate(e){this._minDate=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e))}_minDate;get maxDate(){return this._maxDate}set maxDate(e){this._maxDate=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e))}_maxDate;dateFilter;dateClass;comparisonStart;comparisonEnd;startDateAccessibleName;endDateAccessibleName;selectedChange=new U;yearSelected=new U;monthSelected=new U;viewChanged=new U(!0);_userSelection=new U;_userDragDrop=new U;monthView;yearView;multiYearView;get activeDate(){return this._clampedActiveDate}set activeDate(e){this._clampedActiveDate=this._dateAdapter.clampDate(e,this.minDate,this.maxDate),this.stateChanges.next(),this._changeDetectorRef.markForCheck()}_clampedActiveDate;get currentView(){return this._currentView}set currentView(e){let i=this._currentView!==e?e:null;this._currentView=e,this._moveFocusOnNextTick=!0,this._changeDetectorRef.markForCheck(),i&&(this.stateChanges.next(),this.viewChanged.emit(i))}_currentView;_activeDrag=null;stateChanges=new z;constructor(){this._intlChanges=u(gp).changes.subscribe(()=>{this._changeDetectorRef.markForCheck(),this.stateChanges.next()})}ngAfterContentInit(){this._calendarHeaderPortal=new to(this.headerComponent||$6),this.activeDate=this.startAt||this._dateAdapter.today(),this._currentView=this.startView}ngAfterViewChecked(){this._moveFocusOnNextTick&&(this._moveFocusOnNextTick=!1,this.focusActiveCell())}ngOnDestroy(){this._intlChanges.unsubscribe(),this.stateChanges.complete()}ngOnChanges(e){let i=e.minDate&&!this._dateAdapter.sameDate(e.minDate.previousValue,e.minDate.currentValue)?e.minDate:void 0,r=e.maxDate&&!this._dateAdapter.sameDate(e.maxDate.previousValue,e.maxDate.currentValue)?e.maxDate:void 0,o=i||r||e.dateFilter;if(o&&!o.firstChange){let a=this._getCurrentViewComponent();a&&(this._elementRef.nativeElement.contains(wo())&&(this._moveFocusOnNextTick=!0),this._changeDetectorRef.detectChanges(),a._init())}this.stateChanges.next()}focusActiveCell(){this._getCurrentViewComponent()._focusActiveCell(!1)}updateTodaysDate(){this._getCurrentViewComponent()._init()}_dateSelected(e){let i=e.value;(this.selected instanceof ha||i&&!this._dateAdapter.sameDate(i,this.selected))&&this.selectedChange.emit(i),this._userSelection.emit(e)}_yearSelectedInMultiYearView(e){this.yearSelected.emit(e)}_monthSelectedInYearView(e){this.monthSelected.emit(e)}_goToDateInView(e,i){this.activeDate=e,this.currentView=i}_dragStarted(e){this._activeDrag=e}_dragEnded(e){this._activeDrag&&(e.value&&this._userDragDrop.emit(e),this._activeDrag=null)}_getCurrentViewComponent(){return this.monthView||this.yearView||this.multiYearView}static \u0275fac=function(i){return new(i||t)};static \u0275cmp=E({type:t,selectors:[["mat-calendar"]],viewQuery:function(i,r){if(i&1&&(ie(F6,5),ie(L6,5),ie(N6,5)),i&2){let o;j(o=H())&&(r.monthView=o.first),j(o=H())&&(r.yearView=o.first),j(o=H())&&(r.multiYearView=o.first)}},hostAttrs:[1,"mat-calendar"],inputs:{headerComponent:"headerComponent",startAt:"startAt",startView:"startView",selected:"selected",minDate:"minDate",maxDate:"maxDate",dateFilter:"dateFilter",dateClass:"dateClass",comparisonStart:"comparisonStart",comparisonEnd:"comparisonEnd",startDateAccessibleName:"startDateAccessibleName",endDateAccessibleName:"endDateAccessibleName"},outputs:{selectedChange:"selectedChange",yearSelected:"yearSelected",monthSelected:"monthSelected",viewChanged:"viewChanged",_userSelection:"_userSelection",_userDragDrop:"_userDragDrop"},exportAs:["matCalendar"],features:[Ce([j6]),Ae],decls:5,vars:2,consts:[[3,"cdkPortalOutlet"],["cdkMonitorSubtreeFocus","","tabindex","-1",1,"mat-calendar-content"],[3,"activeDate","selected","dateFilter","maxDate","minDate","dateClass","comparisonStart","comparisonEnd","startDateAccessibleName","endDateAccessibleName","activeDrag"],[3,"activeDate","selected","dateFilter","maxDate","minDate","dateClass"],[3,"activeDateChange","_userSelection","dragStarted","dragEnded","activeDate","selected","dateFilter","maxDate","minDate","dateClass","comparisonStart","comparisonEnd","startDateAccessibleName","endDateAccessibleName","activeDrag"],[3,"activeDateChange","monthSelected","selectedChange","activeDate","selected","dateFilter","maxDate","minDate","dateClass"],[3,"activeDateChange","yearSelected","selectedChange","activeDate","selected","dateFilter","maxDate","minDate","dateClass"]],template:function(i,r){if(i&1&&(A(0,n0e,0,0,"ng-template",0),m(1,"div",1),V(2,r0e,1,11,"mat-month-view",2)(3,o0e,1,6,"mat-year-view",3)(4,a0e,1,6,"mat-multi-year-view",3),h()),i&2){let o;v("cdkPortalOutlet",r._calendarHeaderPortal),f(2),B((o=r.currentView)==="month"?2:o==="year"?3:o==="multi-year"?4:-1)}},dependencies:[wr,Qf,F6,L6,N6],styles:[`.mat-calendar{display:block;line-height:normal;font-family:var(--mat-datepicker-calendar-text-font, var(--mat-sys-body-medium-font));font-size:var(--mat-datepicker-calendar-text-size, var(--mat-sys-body-medium-size))}.mat-calendar-header{padding:8px 8px 0 8px}.mat-calendar-content{padding:0 8px 8px 8px;outline:none}.mat-calendar-controls{display:flex;align-items:center;margin:5% calc(4.7142857143% - 16px)}.mat-calendar-spacer{flex:1 1 auto}.mat-calendar-period-button{min-width:0;margin:0 8px;font-size:var(--mat-datepicker-calendar-period-button-text-size, var(--mat-sys-title-small-size));font-weight:var(--mat-datepicker-calendar-period-button-text-weight, var(--mat-sys-title-small-weight));--mat-button-text-label-text-color: var(--mat-datepicker-calendar-period-button-text-color, var(--mat-sys-on-surface-variant))}.mat-calendar-arrow{display:inline-block;width:10px;height:5px;margin:0 0 0 5px;vertical-align:middle;fill:var(--mat-datepicker-calendar-period-button-icon-color, var(--mat-sys-on-surface-variant))}.mat-calendar-arrow.mat-calendar-invert{transform:rotate(180deg)}[dir=rtl] .mat-calendar-arrow{margin:0 5px 0 0}@media(forced-colors: active){.mat-calendar-arrow{fill:CanvasText}}.mat-datepicker-content .mat-calendar-previous-button:not(.mat-mdc-button-disabled),.mat-datepicker-content .mat-calendar-next-button:not(.mat-mdc-button-disabled){color:var(--mat-datepicker-calendar-navigation-button-icon-color, var(--mat-sys-on-surface-variant))}[dir=rtl] .mat-calendar-previous-button,[dir=rtl] .mat-calendar-next-button{transform:rotate(180deg)}.mat-calendar-table{border-spacing:0;border-collapse:collapse;width:100%}.mat-calendar-table-header th{text-align:center;padding:0 0 8px 0;color:var(--mat-datepicker-calendar-header-text-color, var(--mat-sys-on-surface-variant));font-size:var(--mat-datepicker-calendar-header-text-size, var(--mat-sys-title-small-size));font-weight:var(--mat-datepicker-calendar-header-text-weight, var(--mat-sys-title-small-weight))}.mat-calendar-table-header-divider{position:relative;height:1px}.mat-calendar-table-header-divider::after{content:"";position:absolute;top:0;left:-8px;right:-8px;height:1px;background:var(--mat-datepicker-calendar-header-divider-color, transparent)}.mat-calendar-body-cell-content::before{margin:calc(calc(var(--mat-focus-indicator-border-width, 3px) + 3px)*-1)}.mat-calendar-body-cell:focus .mat-focus-indicator::before{content:""} -`],encapsulation:2,changeDetection:0})}return t})(),W6=new O("mat-datepicker-scroll-strategy",{providedIn:"root",factory:()=>{let t=u(de);return()=>En(t)}});function b0e(t){let n=u(de);return()=>En(n)}var v0e={provide:W6,deps:[],useFactory:b0e},G6=(()=>{class t{_elementRef=u(Y);_animationsDisabled=Ye();_changeDetectorRef=u(ye);_globalModel=u(M_);_dateAdapter=u(Bi);_ngZone=u(ae);_rangeSelectionStrategy=u(H6,{optional:!0});_stateChanges;_model;_eventCleanups;_animationFallback;_calendar;color;datepicker;comparisonStart;comparisonEnd;startDateAccessibleName;endDateAccessibleName;_isAbove;_animationDone=new z;_isAnimating=!1;_closeButtonText;_closeButtonFocused;_actionsPortal=null;_dialogLabelId;constructor(){if(u(ht).load(Jr),this._closeButtonText=u(gp).closeCalendarLabel,!this._animationsDisabled){let e=this._elementRef.nativeElement,i=u(ze);this._eventCleanups=this._ngZone.runOutsideAngular(()=>[i.listen(e,"animationstart",this._handleAnimationEvent),i.listen(e,"animationend",this._handleAnimationEvent),i.listen(e,"animationcancel",this._handleAnimationEvent)])}}ngAfterViewInit(){this._stateChanges=this.datepicker.stateChanges.subscribe(()=>{this._changeDetectorRef.markForCheck()}),this._calendar.focusActiveCell()}ngOnDestroy(){clearTimeout(this._animationFallback),this._eventCleanups?.forEach(e=>e()),this._stateChanges?.unsubscribe(),this._animationDone.complete()}_handleUserSelection(e){let i=this._model.selection,r=e.value,o=i instanceof ha;if(o&&this._rangeSelectionStrategy){let a=this._rangeSelectionStrategy.selectionFinished(r,i,e.event);this._model.updateSelection(a,this)}else r&&(o||!this._dateAdapter.sameDate(r,i))&&this._model.add(r);(!this._model||this._model.isComplete())&&!this._actionsPortal&&this.datepicker.close()}_handleUserDragDrop(e){this._model.updateSelection(e.value,this)}_startExitAnimation(){this._elementRef.nativeElement.classList.add("mat-datepicker-content-exit"),this._animationsDisabled?this._animationDone.next():(clearTimeout(this._animationFallback),this._animationFallback=setTimeout(()=>{this._isAnimating||this._animationDone.next()},200))}_handleAnimationEvent=e=>{let i=this._elementRef.nativeElement;e.target!==i||!e.animationName.startsWith("_mat-datepicker-content")||(clearTimeout(this._animationFallback),this._isAnimating=e.type==="animationstart",i.classList.toggle("mat-datepicker-content-animating",this._isAnimating),this._isAnimating||this._animationDone.next())};_getSelected(){return this._model.selection}_applyPendingSelection(){this._model!==this._globalModel&&this._globalModel.updateSelection(this._model.selection,this)}_assignActions(e,i){this._model=e?this._globalModel.clone():this._globalModel,this._actionsPortal=e,i&&this._changeDetectorRef.detectChanges()}static \u0275fac=function(i){return new(i||t)};static \u0275cmp=E({type:t,selectors:[["mat-datepicker-content"]],viewQuery:function(i,r){if(i&1&&ie(lA,5),i&2){let o;j(o=H())&&(r._calendar=o.first)}},hostAttrs:[1,"mat-datepicker-content"],hostVars:6,hostBindings:function(i,r){i&2&&(nt(r.color?"mat-"+r.color:""),G("mat-datepicker-content-touch",r.datepicker.touchUi)("mat-datepicker-content-animations-enabled",!r._animationsDisabled))},inputs:{color:"color"},exportAs:["matDatepickerContent"],decls:5,vars:26,consts:[["cdkTrapFocus","","role","dialog",1,"mat-datepicker-content-container"],[3,"yearSelected","monthSelected","viewChanged","_userSelection","_userDragDrop","id","startAt","startView","minDate","maxDate","dateFilter","headerComponent","selected","dateClass","comparisonStart","comparisonEnd","startDateAccessibleName","endDateAccessibleName"],[3,"cdkPortalOutlet"],["type","button","matButton","elevated",1,"mat-datepicker-close-button",3,"focus","blur","click","color"]],template:function(i,r){i&1&&(m(0,"div",0)(1,"mat-calendar",1),S("yearSelected",function(a){return r.datepicker._selectYear(a)})("monthSelected",function(a){return r.datepicker._selectMonth(a)})("viewChanged",function(a){return r.datepicker._viewChanged(a)})("_userSelection",function(a){return r._handleUserSelection(a)})("_userDragDrop",function(a){return r._handleUserDragDrop(a)}),h(),A(2,s0e,0,0,"ng-template",2),m(3,"button",3),S("focus",function(){return r._closeButtonFocused=!0})("blur",function(){return r._closeButtonFocused=!1})("click",function(){return r.datepicker.close()}),g(4),h()()),i&2&&(G("mat-datepicker-content-container-with-custom-header",r.datepicker.calendarHeaderComponent)("mat-datepicker-content-container-with-actions",r._actionsPortal),X("aria-modal",!0)("aria-labelledby",r._dialogLabelId??void 0),f(),nt(r.datepicker.panelClass),v("id",r.datepicker.id)("startAt",r.datepicker.startAt)("startView",r.datepicker.startView)("minDate",r.datepicker._getMinDate())("maxDate",r.datepicker._getMaxDate())("dateFilter",r.datepicker._getDateFilter())("headerComponent",r.datepicker.calendarHeaderComponent)("selected",r._getSelected())("dateClass",r.datepicker.dateClass)("comparisonStart",r.comparisonStart)("comparisonEnd",r.comparisonEnd)("startDateAccessibleName",r.startDateAccessibleName)("endDateAccessibleName",r.endDateAccessibleName),f(),v("cdkPortalOutlet",r._actionsPortal),f(),G("cdk-visually-hidden",!r._closeButtonFocused),v("color",r.color||"primary"),f(),N(r._closeButtonText))},dependencies:[DS,lA,wr,Mt],styles:[`@keyframes _mat-datepicker-content-dropdown-enter{from{opacity:0;transform:scaleY(0.8)}to{opacity:1;transform:none}}@keyframes _mat-datepicker-content-dialog-enter{from{opacity:0;transform:scale(0.8)}to{opacity:1;transform:none}}@keyframes _mat-datepicker-content-exit{from{opacity:1}to{opacity:0}}.mat-datepicker-content{display:block;background-color:var(--mat-datepicker-calendar-container-background-color, var(--mat-sys-surface-container-high));color:var(--mat-datepicker-calendar-container-text-color, var(--mat-sys-on-surface));box-shadow:var(--mat-datepicker-calendar-container-elevation-shadow, 0px 0px 0px 0px rgba(0, 0, 0, 0.2), 0px 0px 0px 0px rgba(0, 0, 0, 0.14), 0px 0px 0px 0px rgba(0, 0, 0, 0.12));border-radius:var(--mat-datepicker-calendar-container-shape, var(--mat-sys-corner-large))}.mat-datepicker-content.mat-datepicker-content-animations-enabled{animation:_mat-datepicker-content-dropdown-enter 120ms cubic-bezier(0, 0, 0.2, 1)}.mat-datepicker-content .mat-calendar{width:296px;height:354px}.mat-datepicker-content .mat-datepicker-content-container-with-custom-header .mat-calendar{height:auto}.mat-datepicker-content .mat-datepicker-close-button{position:absolute;top:100%;left:0;margin-top:8px}.mat-datepicker-content-animating .mat-datepicker-content .mat-datepicker-close-button{display:none}.mat-datepicker-content-container{display:flex;flex-direction:column;justify-content:space-between}.mat-datepicker-content-touch{display:block;max-height:80vh;box-shadow:var(--mat-datepicker-calendar-container-touch-elevation-shadow, 0px 0px 0px 0px rgba(0, 0, 0, 0.2), 0px 0px 0px 0px rgba(0, 0, 0, 0.14), 0px 0px 0px 0px rgba(0, 0, 0, 0.12));border-radius:var(--mat-datepicker-calendar-container-touch-shape, var(--mat-sys-corner-extra-large));position:relative;overflow:visible}.mat-datepicker-content-touch.mat-datepicker-content-animations-enabled{animation:_mat-datepicker-content-dialog-enter 150ms cubic-bezier(0, 0, 0.2, 1)}.mat-datepicker-content-touch .mat-datepicker-content-container{min-height:312px;max-height:788px;min-width:250px;max-width:750px}.mat-datepicker-content-touch .mat-calendar{width:100%;height:auto}.mat-datepicker-content-exit.mat-datepicker-content-animations-enabled{animation:_mat-datepicker-content-exit 100ms linear}@media all and (orientation: landscape){.mat-datepicker-content-touch .mat-datepicker-content-container{width:64vh;height:80vh}}@media all and (orientation: portrait){.mat-datepicker-content-touch .mat-datepicker-content-container{width:80vw;height:100vw}.mat-datepicker-content-touch .mat-datepicker-content-container-with-actions{height:115vw}} -`],encapsulation:2,changeDetection:0})}return t})(),V6=(()=>{class t{_injector=u(de);_viewContainerRef=u(ot);_dateAdapter=u(Bi,{optional:!0});_dir=u(Bt,{optional:!0});_model=u(M_);_animationsDisabled=Ye();_scrollStrategy=u(W6);_inputStateChanges=Te.EMPTY;_document=u(_e);calendarHeaderComponent;get startAt(){return this._startAt||(this.datepickerInput?this.datepickerInput.getStartValue():null)}set startAt(e){this._startAt=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e))}_startAt;startView="month";get color(){return this._color||(this.datepickerInput?this.datepickerInput.getThemePalette():void 0)}set color(e){this._color=e}_color;touchUi=!1;get disabled(){return this._disabled===void 0&&this.datepickerInput?this.datepickerInput.disabled:!!this._disabled}set disabled(e){e!==this._disabled&&(this._disabled=e,this.stateChanges.next(void 0))}_disabled;xPosition="start";yPosition="below";restoreFocus=!0;yearSelected=new U;monthSelected=new U;viewChanged=new U(!0);dateClass;openedStream=new U;closedStream=new U;get panelClass(){return this._panelClass}set panelClass(e){this._panelClass=YL(e)}_panelClass;get opened(){return this._opened}set opened(e){e?this.open():this.close()}_opened=!1;id=u(Ze).getId("mat-datepicker-");_getMinDate(){return this.datepickerInput&&this.datepickerInput.min}_getMaxDate(){return this.datepickerInput&&this.datepickerInput.max}_getDateFilter(){return this.datepickerInput&&this.datepickerInput.dateFilter}_overlayRef;_componentRef;_focusedElementBeforeOpen=null;_backdropHarnessClass=`${this.id}-backdrop`;_actionsPortal;datepickerInput;stateChanges=new z;_changeDetectorRef=u(ye);constructor(){this._dateAdapter,this._model.selectionChanged.subscribe(()=>{this._changeDetectorRef.markForCheck()})}ngOnChanges(e){let i=e.xPosition||e.yPosition;if(i&&!i.firstChange&&this._overlayRef){let r=this._overlayRef.getConfig().positionStrategy;r instanceof wh&&(this._setConnectedPositions(r),this.opened&&this._overlayRef.updatePosition())}this.stateChanges.next(void 0)}ngOnDestroy(){this._destroyOverlay(),this.close(),this._inputStateChanges.unsubscribe(),this.stateChanges.complete()}select(e){this._model.add(e)}_selectYear(e){this.yearSelected.emit(e)}_selectMonth(e){this.monthSelected.emit(e)}_viewChanged(e){this.viewChanged.emit(e)}registerInput(e){return this.datepickerInput,this._inputStateChanges.unsubscribe(),this.datepickerInput=e,this._inputStateChanges=e.stateChanges.subscribe(()=>this.stateChanges.next(void 0)),this._model}registerActions(e){this._actionsPortal,this._actionsPortal=e,this._componentRef?.instance._assignActions(e,!0)}removeActions(e){e===this._actionsPortal&&(this._actionsPortal=null,this._componentRef?.instance._assignActions(null,!0))}open(){this._opened||this.disabled||this._componentRef?.instance._isAnimating||(this.datepickerInput,this._focusedElementBeforeOpen=wo(),this._openOverlay(),this._opened=!0,this.openedStream.emit())}close(){if(!this._opened||this._componentRef?.instance._isAnimating)return;let e=this.restoreFocus&&this._focusedElementBeforeOpen&&typeof this._focusedElementBeforeOpen.focus=="function",i=()=>{this._opened&&(this._opened=!1,this.closedStream.emit())};if(this._componentRef){let{instance:r,location:o}=this._componentRef;r._animationDone.pipe(ct(1)).subscribe(()=>{let a=this._document.activeElement;e&&(!a||a===this._document.activeElement||o.nativeElement.contains(a))&&this._focusedElementBeforeOpen.focus(),this._focusedElementBeforeOpen=null,this._destroyOverlay()}),r._startExitAnimation()}e?setTimeout(i):i()}_applyPendingSelection(){this._componentRef?.instance?._applyPendingSelection()}_forwardContentValues(e){e.datepicker=this,e.color=this.color,e._dialogLabelId=this.datepickerInput.getOverlayLabelId(),e._assignActions(this._actionsPortal,!1)}_openOverlay(){this._destroyOverlay();let e=this.touchUi,i=new to(G6,this._viewContainerRef),r=this._overlayRef=zr(this._injector,new Hr({positionStrategy:e?this._getDialogStrategy():this._getDropdownStrategy(),hasBackdrop:!0,backdropClass:[e?"cdk-overlay-dark-backdrop":"mat-overlay-transparent-backdrop",this._backdropHarnessClass],direction:this._dir||"ltr",scrollStrategy:e?hc(this._injector):this._scrollStrategy(),panelClass:`mat-datepicker-${e?"dialog":"popup"}`,disableAnimations:this._animationsDisabled}));this._getCloseStream(r).subscribe(o=>{o&&o.preventDefault(),this.close()}),r.keydownEvents().subscribe(o=>{let a=o.keyCode;(a===38||a===40||a===37||a===39||a===33||a===34)&&o.preventDefault()}),this._componentRef=r.attach(i),this._forwardContentValues(this._componentRef.instance),e||gt(()=>{r.updatePosition()},{injector:this._injector})}_destroyOverlay(){this._overlayRef&&(this._overlayRef.dispose(),this._overlayRef=this._componentRef=null)}_getDialogStrategy(){return Es(this._injector).centerHorizontally().centerVertically()}_getDropdownStrategy(){let e=Na(this._injector,this.datepickerInput.getConnectedOverlayOrigin()).withTransformOriginOn(".mat-datepicker-content").withFlexibleDimensions(!1).withViewportMargin(8).withLockedPosition();return this._setConnectedPositions(e)}_setConnectedPositions(e){let i=this.xPosition==="end"?"end":"start",r=i==="start"?"end":"start",o=this.yPosition==="above"?"bottom":"top",a=o==="top"?"bottom":"top";return e.withPositions([{originX:i,originY:a,overlayX:i,overlayY:o},{originX:i,originY:o,overlayX:i,overlayY:a},{originX:r,originY:a,overlayX:r,overlayY:o},{originX:r,originY:o,overlayX:r,overlayY:a}])}_getCloseStream(e){let i=["ctrlKey","shiftKey","metaKey"];return Je(e.backdropClick(),e.detachments(),e.keydownEvents().pipe(ce(r=>r.keyCode===27&&!Lt(r)||this.datepickerInput&&Lt(r,"altKey")&&r.keyCode===38&&i.every(o=>!Lt(r,o)))))}static \u0275fac=function(i){return new(i||t)};static \u0275dir=P({type:t,inputs:{calendarHeaderComponent:"calendarHeaderComponent",startAt:"startAt",startView:"startView",color:"color",touchUi:[2,"touchUi","touchUi",L],disabled:[2,"disabled","disabled",L],xPosition:"xPosition",yPosition:"yPosition",restoreFocus:[2,"restoreFocus","restoreFocus",L],dateClass:"dateClass",panelClass:"panelClass",opened:[2,"opened","opened",L]},outputs:{yearSelected:"yearSelected",monthSelected:"monthSelected",viewChanged:"viewChanged",openedStream:"opened",closedStream:"closed"},features:[Ae]})}return t})(),q6=(()=>{class t extends V6{static \u0275fac=(()=>{let e;return function(r){return(e||(e=ge(t)))(r||t)}})();static \u0275cmp=E({type:t,selectors:[["mat-datepicker"]],exportAs:["matDatepicker"],features:[Ce([j6,{provide:V6,useExisting:t}]),le],decls:0,vars:0,template:function(i,r){},encapsulation:2,changeDetection:0})}return t})(),pp=class{target;targetElement;value;constructor(n,e){this.target=n,this.targetElement=e,this.value=this.target.value}},y0e=(()=>{class t{_elementRef=u(Y);_dateAdapter=u(Bi,{optional:!0});_dateFormats=u(Cs,{optional:!0});_isInitialized;get value(){return this._model?this._getValueFromModel(this._model.selection):this._pendingValue}set value(e){this._assignValueProgrammatically(e)}_model;get disabled(){return!!this._disabled||this._parentDisabled()}set disabled(e){let i=e,r=this._elementRef.nativeElement;this._disabled!==i&&(this._disabled=i,this.stateChanges.next(void 0)),i&&this._isInitialized&&r.blur&&r.blur()}_disabled;dateChange=new U;dateInput=new U;stateChanges=new z;_onTouched=()=>{};_validatorOnChange=()=>{};_cvaOnChange=()=>{};_valueChangesSubscription=Te.EMPTY;_localeSubscription=Te.EMPTY;_pendingValue;_parseValidator=()=>this._lastValueValid?null:{matDatepickerParse:{text:this._elementRef.nativeElement.value}};_filterValidator=e=>{let i=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e.value));return!i||this._matchesFilter(i)?null:{matDatepickerFilter:!0}};_minValidator=e=>{let i=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e.value)),r=this._getMinDate();return!r||!i||this._dateAdapter.compareDate(r,i)<=0?null:{matDatepickerMin:{min:r,actual:i}}};_maxValidator=e=>{let i=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e.value)),r=this._getMaxDate();return!r||!i||this._dateAdapter.compareDate(r,i)>=0?null:{matDatepickerMax:{max:r,actual:i}}};_getValidators(){return[this._parseValidator,this._minValidator,this._maxValidator,this._filterValidator]}_registerModel(e){this._model=e,this._valueChangesSubscription.unsubscribe(),this._pendingValue&&this._assignValue(this._pendingValue),this._valueChangesSubscription=this._model.selectionChanged.subscribe(i=>{if(this._shouldHandleChangeEvent(i)){let r=this._getValueFromModel(i.selection);this._lastValueValid=this._isValidValue(r),this._cvaOnChange(r),this._onTouched(),this._formatValue(r),this.dateInput.emit(new pp(this,this._elementRef.nativeElement)),this.dateChange.emit(new pp(this,this._elementRef.nativeElement))}})}_lastValueValid=!1;constructor(){this._localeSubscription=this._dateAdapter.localeChanges.subscribe(()=>{this._assignValueProgrammatically(this.value)})}ngAfterViewInit(){this._isInitialized=!0}ngOnChanges(e){x0e(e,this._dateAdapter)&&this.stateChanges.next(void 0)}ngOnDestroy(){this._valueChangesSubscription.unsubscribe(),this._localeSubscription.unsubscribe(),this.stateChanges.complete()}registerOnValidatorChange(e){this._validatorOnChange=e}validate(e){return this._validator?this._validator(e):null}writeValue(e){this._assignValueProgrammatically(e)}registerOnChange(e){this._cvaOnChange=e}registerOnTouched(e){this._onTouched=e}setDisabledState(e){this.disabled=e}_onKeydown(e){let i=["ctrlKey","shiftKey","metaKey"];Lt(e,"altKey")&&e.keyCode===40&&i.every(o=>!Lt(e,o))&&!this._elementRef.nativeElement.readOnly&&(this._openPopup(),e.preventDefault())}_onInput(e){let i=e.target.value,r=this._lastValueValid,o=this._dateAdapter.parse(i,this._dateFormats.parse.dateInput);this._lastValueValid=this._isValidValue(o),o=this._dateAdapter.getValidDateOrNull(o);let a=!this._dateAdapter.sameDate(o,this.value);!o||a?this._cvaOnChange(o):(i&&!this.value&&this._cvaOnChange(o),r!==this._lastValueValid&&this._validatorOnChange()),a&&(this._assignValue(o),this.dateInput.emit(new pp(this,this._elementRef.nativeElement)))}_onChange(){this.dateChange.emit(new pp(this,this._elementRef.nativeElement))}_onBlur(){this.value&&this._formatValue(this.value),this._onTouched()}_formatValue(e){this._elementRef.nativeElement.value=e!=null?this._dateAdapter.format(e,this._dateFormats.display.dateInput):""}_assignValue(e){this._model?(this._assignValueToModel(e),this._pendingValue=null):this._pendingValue=e}_isValidValue(e){return!e||this._dateAdapter.isValid(e)}_parentDisabled(){return!1}_assignValueProgrammatically(e){e=this._dateAdapter.deserialize(e),this._lastValueValid=this._isValidValue(e),e=this._dateAdapter.getValidDateOrNull(e),this._assignValue(e),this._formatValue(e)}_matchesFilter(e){let i=this._getDateFilter();return!i||i(e)}static \u0275fac=function(i){return new(i||t)};static \u0275dir=P({type:t,inputs:{value:"value",disabled:[2,"disabled","disabled",L]},outputs:{dateChange:"dateChange",dateInput:"dateInput"},features:[Ae]})}return t})();function x0e(t,n){let e=Object.keys(t);for(let i of e){let{previousValue:r,currentValue:o}=t[i];if(n.isDateInstance(r)&&n.isDateInstance(o)){if(!n.sameDate(r,o))return!0}else return!0}return!1}var C0e={provide:rr,useExisting:ri(()=>Sw),multi:!0},w0e={provide:na,useExisting:ri(()=>Sw),multi:!0},Sw=(()=>{class t extends y0e{_formField=u(ta,{optional:!0});_closedSubscription=Te.EMPTY;_openedSubscription=Te.EMPTY;set matDatepicker(e){e&&(this._datepicker=e,this._ariaOwns.set(e.opened?e.id:null),this._closedSubscription=e.closedStream.subscribe(()=>{this._onTouched(),this._ariaOwns.set(null)}),this._openedSubscription=e.openedStream.subscribe(()=>{this._ariaOwns.set(e.id)}),this._registerModel(e.registerInput(this)))}_datepicker;_ariaOwns=he(null);get min(){return this._min}set min(e){let i=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e));this._dateAdapter.sameDate(i,this._min)||(this._min=i,this._validatorOnChange())}_min;get max(){return this._max}set max(e){let i=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e));this._dateAdapter.sameDate(i,this._max)||(this._max=i,this._validatorOnChange())}_max;get dateFilter(){return this._dateFilter}set dateFilter(e){let i=this._matchesFilter(this.value);this._dateFilter=e,this._matchesFilter(this.value)!==i&&this._validatorOnChange()}_dateFilter;_validator;constructor(){super(),this._validator=Le.compose(super._getValidators())}getConnectedOverlayOrigin(){return this._formField?this._formField.getConnectedOverlayOrigin():this._elementRef}getOverlayLabelId(){return this._formField?this._formField.getLabelId():this._elementRef.nativeElement.getAttribute("aria-labelledby")}getThemePalette(){return this._formField?this._formField.color:void 0}getStartValue(){return this.value}ngOnDestroy(){super.ngOnDestroy(),this._closedSubscription.unsubscribe(),this._openedSubscription.unsubscribe()}_openPopup(){this._datepicker&&this._datepicker.open()}_getValueFromModel(e){return e}_assignValueToModel(e){this._model&&this._model.updateSelection(e,this)}_getMinDate(){return this._min}_getMaxDate(){return this._max}_getDateFilter(){return this._dateFilter}_shouldHandleChangeEvent(e){return e.source!==this}static \u0275fac=function(i){return new(i||t)};static \u0275dir=P({type:t,selectors:[["input","matDatepicker",""]],hostAttrs:[1,"mat-datepicker-input"],hostVars:6,hostBindings:function(i,r){i&1&&S("input",function(a){return r._onInput(a)})("change",function(){return r._onChange()})("blur",function(){return r._onBlur()})("keydown",function(a){return r._onKeydown(a)}),i&2&&(ci("disabled",r.disabled),X("aria-haspopup",r._datepicker?"dialog":null)("aria-owns",r._ariaOwns())("min",r.min?r._dateAdapter.toIso8601(r.min):null)("max",r.max?r._dateAdapter.toIso8601(r.max):null)("data-mat-calendar",r._datepicker?r._datepicker.id:null))},inputs:{matDatepicker:"matDatepicker",min:"min",max:"max",dateFilter:[0,"matDatepickerFilter","dateFilter"]},exportAs:["matDatepickerInput"],features:[Ce([C0e,w0e,{provide:Th,useExisting:t}]),le]})}return t})(),D0e=(()=>{class t{static \u0275fac=function(i){return new(i||t)};static \u0275dir=P({type:t,selectors:[["","matDatepickerToggleIcon",""]]})}return t})(),cA=(()=>{class t{_intl=u(gp);_changeDetectorRef=u(ye);_stateChanges=Te.EMPTY;datepicker;tabIndex;ariaLabel;get disabled(){return this._disabled===void 0&&this.datepicker?this.datepicker.disabled:!!this._disabled}set disabled(e){this._disabled=e}_disabled;disableRipple;_customIcon;_button;constructor(){let e=u(new Oi("tabindex"),{optional:!0}),i=Number(e);this.tabIndex=i||i===0?i:null}ngOnChanges(e){e.datepicker&&this._watchStateChanges()}ngOnDestroy(){this._stateChanges.unsubscribe()}ngAfterContentInit(){this._watchStateChanges()}_open(e){this.datepicker&&!this.disabled&&(this.datepicker.open(),e.stopPropagation())}_watchStateChanges(){let e=this.datepicker?this.datepicker.stateChanges:Q(),i=this.datepicker&&this.datepicker.datepickerInput?this.datepicker.datepickerInput.stateChanges:Q(),r=this.datepicker?Je(this.datepicker.openedStream,this.datepicker.closedStream):Q();this._stateChanges.unsubscribe(),this._stateChanges=Je(this._intl.changes,e,i,r).subscribe(()=>this._changeDetectorRef.markForCheck())}static \u0275fac=function(i){return new(i||t)};static \u0275cmp=E({type:t,selectors:[["mat-datepicker-toggle"]],contentQueries:function(i,r,o){if(i&1&&xe(o,D0e,5),i&2){let a;j(a=H())&&(r._customIcon=a.first)}},viewQuery:function(i,r){if(i&1&&ie(l0e,5),i&2){let o;j(o=H())&&(r._button=o.first)}},hostAttrs:[1,"mat-datepicker-toggle"],hostVars:8,hostBindings:function(i,r){i&1&&S("click",function(a){return r._open(a)}),i&2&&(X("tabindex",null)("data-mat-calendar",r.datepicker?r.datepicker.id:null),G("mat-datepicker-toggle-active",r.datepicker&&r.datepicker.opened)("mat-accent",r.datepicker&&r.datepicker.color==="accent")("mat-warn",r.datepicker&&r.datepicker.color==="warn"))},inputs:{datepicker:[0,"for","datepicker"],tabIndex:"tabIndex",ariaLabel:[0,"aria-label","ariaLabel"],disabled:[2,"disabled","disabled",L],disableRipple:"disableRipple"},exportAs:["matDatepickerToggle"],features:[Ae],ngContentSelectors:d0e,decls:4,vars:7,consts:[["button",""],["matIconButton","","type","button",3,"tabIndex","disabled","disableRipple"],["viewBox","0 0 24 24","width","24px","height","24px","fill","currentColor","focusable","false","aria-hidden","true",1,"mat-datepicker-toggle-default-icon"],["d","M19 3h-1V1h-2v2H8V1H6v2H5c-1.11 0-1.99.9-1.99 2L3 19c0 1.1.89 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm0 16H5V8h14v11zM7 10h5v5H7z"]],template:function(i,r){i&1&&(Se(c0e),m(0,"button",1,0),V(2,u0e,2,0,":svg:svg",2),ne(3),h()),i&2&&(v("tabIndex",r.disabled?-1:r.tabIndex)("disabled",r.disabled)("disableRipple",r.disableRipple),X("aria-haspopup",r.datepicker?"dialog":null)("aria-label",r.ariaLabel||r._intl.openCalendarLabel)("aria-expanded",r.datepicker?r.datepicker.opened:null),f(2),B(r._customIcon?-1:2))},dependencies:[Yt],styles:[`.mat-datepicker-toggle{pointer-events:auto;color:var(--mat-datepicker-toggle-icon-color, var(--mat-sys-on-surface-variant))}.mat-datepicker-toggle button{color:inherit}.mat-datepicker-toggle-active{color:var(--mat-datepicker-toggle-active-state-icon-color, var(--mat-sys-primary))}@media(forced-colors: active){.mat-datepicker-toggle-default-icon{color:CanvasText}} -`],encapsulation:2,changeDetection:0})}return t})();var Y6=(()=>{class t{static \u0275fac=function(i){return new(i||t)};static \u0275mod=ee({type:t});static \u0275inj=J({providers:[gp,v0e],imports:[Be,nr,cl,ko,De,G6,cA,$6,Cr]})}return t})();function M0e(t,n){t&1&&(m(0,"div",1),M(1,"mat-spinner"),h())}function S0e(t,n){t&1&&(m(0,"mat-error"),g(1," Employee number is required "),h())}function k0e(t,n){t&1&&(m(0,"mat-error"),g(1," First name is required "),h())}function T0e(t,n){t&1&&(m(0,"mat-error"),g(1," Last name is required "),h())}function I0e(t,n){t&1&&(m(0,"mat-error"),g(1," Date of birth is required "),h())}function A0e(t,n){t&1&&(m(0,"mat-error"),g(1," Email is required "),h())}function O0e(t,n){t&1&&(m(0,"mat-error"),g(1," Please enter a valid email "),h())}function R0e(t,n){t&1&&(m(0,"mat-error"),g(1," Phone number is required "),h())}function P0e(t,n){if(t&1&&(m(0,"mat-option",25),g(1),h()),t&2){let e=n.$implicit;v("value",e.value),f(),pe(" ",e.label," ")}}function F0e(t,n){t&1&&(m(0,"mat-error"),g(1," Gender is required "),h())}function N0e(t,n){if(t&1&&(m(0,"mat-option",25),g(1),h()),t&2){let e=n.$implicit;v("value",e.id),f(),pe(" ",e.name," ")}}function L0e(t,n){t&1&&(m(0,"mat-error"),g(1," Department is required "),h())}function V0e(t,n){if(t&1&&(m(0,"mat-option",25),g(1),h()),t&2){let e=n.$implicit;v("value",e.id),f(),pe(" ",e.positionTitle," ")}}function B0e(t,n){t&1&&(m(0,"mat-error"),g(1," Position is required "),h())}function j0e(t,n){t&1&&(m(0,"mat-error"),g(1," Salary is required "),h())}function H0e(t,n){t&1&&(m(0,"mat-error"),g(1," Salary must be greater than 0 "),h())}var dA=(()=>{let n=class n{constructor(){this.fb=u(ro),this.router=u(Re),this.route=u(Si),this.snackBar=u(ui),this.employeeService=u(mp),this.positionService=u($c),this.departmentService=u(Bs),this.loading=!1,this.isEditMode=!1,this.positions=[],this.departments=[],this.genderOptions=[{value:Lu.Male,label:"Male"},{value:Lu.Female,label:"Female"}]}ngOnInit(){this.initForm(),this.loadDependencies(),this.checkEditMode()}initForm(){this.employeeForm=this.fb.group({employeeNumber:["",[Le.required,Le.maxLength(50)]],prefix:["",Le.maxLength(10)],firstName:["",[Le.required,Le.maxLength(100)]],middleName:["",Le.maxLength(100)],lastName:["",[Le.required,Le.maxLength(100)]],birthday:[null,Le.required],gender:[Lu.Male,Le.required],email:["",[Le.required,Le.email,Le.maxLength(255)]],phone:["",[Le.required,Le.maxLength(20)]],salary:[0,[Le.required,Le.min(0)]],positionId:["",Le.required],departmentId:["",Le.required]})}loadDependencies(){this.departmentService.getAll().subscribe({next:i=>{this.departments=i},error:i=>{console.error("Error loading departments:",i),this.showMessage("Error loading departments")}}),this.positionService.getAll().subscribe({next:i=>{this.positions=i},error:i=>{console.error("Error loading positions:",i),this.showMessage("Error loading positions")}})}checkEditMode(){this.employeeId=this.route.snapshot.paramMap.get("id")||void 0,this.isEditMode=!!this.employeeId,this.isEditMode&&this.employeeId&&this.loadEmployee(this.employeeId)}loadEmployee(i){this.loading=!0,this.employeeService.getById(i).subscribe({next:r=>{this.employeeForm.patchValue({employeeNumber:r.employeeNumber,prefix:r.prefix,firstName:r.firstName,middleName:r.middleName,lastName:r.lastName,birthday:r.birthday||r.dateOfBirth,gender:r.gender,email:r.email,phone:r.phone||r.phoneNumber,salary:r.salary,positionId:r.positionId,departmentId:r.departmentId}),this.loading=!1},error:r=>{console.error("Error loading employee:",r),this.showMessage("Error loading employee"),this.loading=!1}})}onSubmit(){if(this.employeeForm.invalid){this.employeeForm.markAllAsTouched();return}if(this.loading=!0,this.isEditMode&&this.employeeId){let i=k({id:this.employeeId},this.employeeForm.value);this.employeeService.updateEmployee(i).subscribe({next:()=>{this.showMessage("Employee updated successfully"),this.router.navigate(["/employees",this.employeeId])},error:r=>{console.error("Error updating employee:",r),this.showMessage("Error updating employee"),this.loading=!1}})}else{let i=this.employeeForm.value;this.employeeService.createEmployee(i).subscribe({next:r=>{console.log("Employee created - Response:",r),console.log("Employee ID:",r?.id),this.showMessage("Employee created successfully"),r?.id?(console.log("Navigating to detail page:","/employees/"+r.id),this.router.navigate(["/employees",r.id])):(console.warn("No employee ID returned, navigating to list page"),this.router.navigate(["/employees"])),this.loading=!1},error:r=>{console.error("Error creating employee:",r),this.showMessage("Error creating employee"),this.loading=!1}})}}onCancel(){this.router.navigate(["/employees"])}showMessage(i){this.snackBar.open(i,"Close",{duration:3e3,horizontalPosition:"end",verticalPosition:"top"})}getFormTitle(){return this.isEditMode?"Edit Employee":"Create Employee"}};n.\u0275fac=function(r){return new(r||n)},n.\u0275cmp=E({type:n,selectors:[["app-employee-form"]],decls:94,vars:22,consts:[["dobPicker",""],[1,"loading-overlay"],[3,"ngSubmit","formGroup"],[1,"form-section"],[1,"form-row"],["appearance","outline"],["matInput","","formControlName","employeeNumber"],[4,"ngIf"],["matInput","","formControlName","prefix","placeholder","Mr., Mrs., Dr."],["matInput","","formControlName","firstName"],["matInput","","formControlName","middleName"],["matInput","","formControlName","lastName"],["matInput","","formControlName","birthday",3,"matDatepicker"],["matIconSuffix","",3,"for"],["matInput","","type","email","formControlName","email"],["matInput","","formControlName","phone"],["formControlName","gender"],[3,"value",4,"ngFor","ngForOf"],["formControlName","departmentId"],["formControlName","positionId"],["matInput","","type","number","formControlName","salary"],["matTextPrefix",""],[1,"form-actions"],["type","button","mat-stroked-button","",3,"click"],["type","submit","mat-raised-button","","color","primary",3,"disabled"],[3,"value"]],template:function(r,o){if(r&1){let a=q();M(0,"page-header"),m(1,"mat-card")(2,"mat-card-header")(3,"mat-card-title"),g(4),h()(),m(5,"mat-card-content"),V(6,M0e,2,0,"div",1),m(7,"form",2),S("ngSubmit",function(){return T(a),I(o.onSubmit())}),m(8,"div",3)(9,"h3"),g(10,"Personal Information"),h(),m(11,"div",4)(12,"mat-form-field",5)(13,"mat-label"),g(14,"Employee Number"),h(),M(15,"input",6),A(16,S0e,2,0,"mat-error",7),h(),m(17,"mat-form-field",5)(18,"mat-label"),g(19,"Prefix"),h(),M(20,"input",8),h()(),m(21,"div",4)(22,"mat-form-field",5)(23,"mat-label"),g(24,"First Name"),h(),M(25,"input",9),A(26,k0e,2,0,"mat-error",7),h(),m(27,"mat-form-field",5)(28,"mat-label"),g(29,"Middle Name"),h(),M(30,"input",10),h()(),m(31,"div",4)(32,"mat-form-field",5)(33,"mat-label"),g(34,"Last Name"),h(),M(35,"input",11),A(36,T0e,2,0,"mat-error",7),h(),m(37,"mat-form-field",5)(38,"mat-label"),g(39,"Date of Birth"),h(),M(40,"input",12)(41,"mat-datepicker-toggle",13)(42,"mat-datepicker",null,0),A(44,I0e,2,0,"mat-error",7),h()(),m(45,"div",4)(46,"mat-form-field",5)(47,"mat-label"),g(48,"Email"),h(),M(49,"input",14),A(50,A0e,2,0,"mat-error",7)(51,O0e,2,0,"mat-error",7),h(),m(52,"mat-form-field",5)(53,"mat-label"),g(54,"Phone Number"),h(),M(55,"input",15),A(56,R0e,2,0,"mat-error",7),h()(),m(57,"div",4)(58,"mat-form-field",5)(59,"mat-label"),g(60,"Gender"),h(),m(61,"mat-select",16),A(62,P0e,2,2,"mat-option",17),h(),A(63,F0e,2,0,"mat-error",7),h()()(),m(64,"div",3)(65,"h3"),g(66,"Employment Information"),h(),m(67,"div",4)(68,"mat-form-field",5)(69,"mat-label"),g(70,"Department"),h(),m(71,"mat-select",18),A(72,N0e,2,2,"mat-option",17),h(),A(73,L0e,2,0,"mat-error",7),h(),m(74,"mat-form-field",5)(75,"mat-label"),g(76,"Position"),h(),m(77,"mat-select",19),A(78,V0e,2,2,"mat-option",17),h(),A(79,B0e,2,0,"mat-error",7),h()(),m(80,"div",4)(81,"mat-form-field",5)(82,"mat-label"),g(83,"Salary"),h(),M(84,"input",20),m(85,"span",21),g(86,"$\xA0"),h(),A(87,j0e,2,0,"mat-error",7)(88,H0e,2,0,"mat-error",7),h()()(),m(89,"div",22)(90,"button",23),S("click",function(){return T(a),I(o.onCancel())}),g(91," Cancel "),h(),m(92,"button",24),g(93),h()()()()()}if(r&2){let a,s,l,c,d,p,_,b,y,w,C,D,F=Me(43);f(4),N(o.getFormTitle()),f(2),B(o.loading?6:-1),f(),v("formGroup",o.employeeForm),f(9),v("ngIf",(a=o.employeeForm.get("employeeNumber"))==null?null:a.hasError("required")),f(10),v("ngIf",(s=o.employeeForm.get("firstName"))==null?null:s.hasError("required")),f(10),v("ngIf",(l=o.employeeForm.get("lastName"))==null?null:l.hasError("required")),f(4),v("matDatepicker",F),f(),v("for",F),f(3),v("ngIf",(c=o.employeeForm.get("birthday"))==null?null:c.hasError("required")),f(6),v("ngIf",(d=o.employeeForm.get("email"))==null?null:d.hasError("required")),f(),v("ngIf",(p=o.employeeForm.get("email"))==null?null:p.hasError("email")),f(5),v("ngIf",(_=o.employeeForm.get("phone"))==null?null:_.hasError("required")),f(6),v("ngForOf",o.genderOptions),f(),v("ngIf",(b=o.employeeForm.get("gender"))==null?null:b.hasError("required")),f(9),v("ngForOf",o.departments),f(),v("ngIf",(y=o.employeeForm.get("departmentId"))==null?null:y.hasError("required")),f(5),v("ngForOf",o.positions),f(),v("ngIf",(w=o.employeeForm.get("positionId"))==null?null:w.hasError("required")),f(8),v("ngIf",(C=o.employeeForm.get("salary"))==null?null:C.hasError("required")),f(),v("ngIf",(D=o.employeeForm.get("salary"))==null?null:D.hasError("min")),f(4),v("disabled",o.loading),f(),pe(" ",o.isEditMode?"Update":"Create"," ")}},dependencies:[ut,vr,Jt,$n,no,Hi,fu,qt,io,Ji,Ur,Be,Mt,Ut,Ht,zt,Gt,Wt,Pi,Ci,Gi,So,cu,hl,Mn,en,_c,La,wn,Y6,q6,Sw,cA,tV,gi,fi,_i,Qt],styles:["mat-card[_ngcontent-%COMP%]{margin:16px;max-width:1200px}mat-card-header[_ngcontent-%COMP%]{padding:16px;border-bottom:1px solid rgba(0,0,0,.12);margin-bottom:24px}mat-card-header[_ngcontent-%COMP%] mat-card-title[_ngcontent-%COMP%]{font-size:20px;font-weight:500;margin:0}mat-card-content[_ngcontent-%COMP%]{padding:24px;position:relative}.loading-overlay[_ngcontent-%COMP%]{position:absolute;inset:0;background-color:#fffc;display:flex;align-items:center;justify-content:center;z-index:1000}form[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:24px}.form-section[_ngcontent-%COMP%] h3[_ngcontent-%COMP%]{font-size:16px;font-weight:500;margin:0 0 16px;color:#000000de}.form-row[_ngcontent-%COMP%]{display:grid;grid-template-columns:1fr 1fr;gap:16px;margin-bottom:8px}@media (max-width: 768px){.form-row[_ngcontent-%COMP%]{grid-template-columns:1fr}}mat-form-field[_ngcontent-%COMP%]{width:100%}mat-form-field.full-width[_ngcontent-%COMP%]{grid-column:1/-1}.form-actions[_ngcontent-%COMP%]{display:flex;justify-content:flex-end;gap:12px;margin-top:24px;padding-top:24px;border-top:1px solid rgba(0,0,0,.12)}.form-actions[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{min-width:120px}"]});let t=n;return t})();var Q6=()=>["HRAdmin","Manager"],z0e=()=>[5,10,25,50,100],U0e=()=>["HRAdmin"];function $0e(t,n){if(t&1){let e=q();m(0,"button",14),S("click",function(){T(e);let r=x();return I(r.createDepartment())}),m(1,"mat-icon"),g(2,"add"),h(),g(3," Add Department "),h()}}function W0e(t,n){if(t&1&&(m(0,"mat-option",15),g(1),h()),t&2){let e=n.$implicit;v("value",e),f(),pe(" ",e," ")}}function G0e(t,n){t&1&&(m(0,"div",16),M(1,"mat-spinner"),h())}function q0e(t,n){t&1&&(m(0,"th",25),g(1,"Name"),h())}function Y0e(t,n){if(t&1&&(m(0,"td",26),g(1),h()),t&2){let e=n.$implicit;f(),N(e.name)}}function Q0e(t,n){t&1&&(m(0,"th",25),g(1,"Actions"),h())}function K0e(t,n){if(t&1){let e=q();m(0,"button",31),S("click",function(){T(e);let r=x().$implicit,o=x(2);return I(o.editDepartment(r))}),m(1,"mat-icon"),g(2,"edit"),h()()}}function Z0e(t,n){if(t&1){let e=q();m(0,"button",32),S("click",function(){T(e);let r=x().$implicit,o=x(2);return I(o.deleteDepartment(r))}),m(1,"mat-icon"),g(2,"delete"),h()()}}function X0e(t,n){if(t&1){let e=q();m(0,"td",26)(1,"div",27)(2,"button",28),S("click",function(){let r=T(e).$implicit,o=x(2);return I(o.viewDepartment(r))}),m(3,"mat-icon"),g(4,"visibility"),h()(),A(5,K0e,3,0,"button",29)(6,Z0e,3,0,"button",30),h()()}t&2&&(f(5),v("appHasRole",rt(2,Q6)),f(),v("appHasRole",rt(3,U0e)))}function J0e(t,n){t&1&&M(0,"tr",33)}function eve(t,n){t&1&&M(0,"tr",34)}function tve(t,n){if(t&1&&(m(0,"tr",35)(1,"td",36)(2,"div",37)(3,"mat-icon"),g(4,"info"),h(),m(5,"p"),g(6,"No departments found"),h()()()()),t&2){let e=x(2);f(),X("colspan",e.displayedColumns.length)}}function ive(t,n){if(t&1&&(m(0,"table",17),kt(1,18),A(2,q0e,2,0,"th",19)(3,Y0e,2,1,"td",20),Dt(),kt(4,21),A(5,Q0e,2,0,"th",19)(6,X0e,7,4,"td",20),Dt(),A(7,J0e,1,0,"tr",22)(8,eve,1,0,"tr",23)(9,tve,7,1,"tr",24),h()),t&2){let e=x();v("dataSource",e.departments),f(7),v("matHeaderRowDef",e.displayedColumns),f(),v("matRowDefColumns",e.displayedColumns),f(),v("ngIf",e.departments.length===0)}}var K6=(()=>{let n=class n{constructor(){this.departmentService=u(Bs),this.authService=u(Ot),this.router=u(Re),this.fb=u(ro),this.snackBar=u(ui),this.dialog=u(kn),this.departments=[],this.loading=!1,this.totalCount=0,this.pageSize=10,this.pageNumber=1,this.destroy$=new z,this.displayedColumns=["name","actions"]}ngOnInit(){this.initSearchForm(),this.setupAutocomplete(),this.setupAutoSubmit(),this.loadDepartments()}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete()}initSearchForm(){this.searchForm=this.fb.group({Name:[""]})}setupAutocomplete(){this.filteredNames$=this.searchForm.get("Name").valueChanges.pipe(Ue(""),St(300),_n(),je(i=>this.getAutocompleteOptions("Name",i)))}setupAutoSubmit(){this.searchForm.valueChanges.pipe(St(500),_n((i,r)=>JSON.stringify(i)===JSON.stringify(r)),we(this.destroy$)).subscribe(()=>{this.pageNumber=1,this.loadDepartments()})}getAutocompleteOptions(i,r){if(!r||r.length<2)return Q([]);let o={PageNumber:1,PageSize:10,[i]:r};return this.departmentService.getAllPaged(o).pipe(se(a=>a.value.map(l=>l.name).filter((l,c,d)=>l&&d.indexOf(l)===c)),ii(()=>Q([])))}loadDepartments(){this.loading=!0;let i=k({PageNumber:this.pageNumber,PageSize:this.pageSize},this.searchForm.value);Object.keys(i).forEach(r=>{(i[r]===""||i[r]===null||i[r]===void 0)&&delete i[r]}),this.departmentService.getAllPaged(i).subscribe({next:r=>{this.departments=r.value,this.totalCount=r.recordsTotal,this.loading=!1},error:r=>{console.error("Error loading departments:",r),this.loading=!1}})}onClearSearch(){this.searchForm.reset(),this.pageNumber=1,this.paginator&&(this.paginator.pageIndex=0),this.loadDepartments()}onPageChange(i){this.pageSize=i.pageSize,this.pageNumber=i.pageIndex+1,this.loadDepartments()}viewDepartment(i){this.router.navigate(["/departments",i.id])}editDepartment(i){this.router.navigate(["/departments","edit",i.id])}deleteDepartment(i){this.dialog.open(Tr,{width:"400px",data:{title:"Delete Department",message:`Are you sure you want to delete "${i.name}"? This action cannot be undone.`,confirmText:"Delete",cancelText:"Cancel"}}).afterClosed().subscribe(o=>{o&&this.departmentService.delete(i.id).subscribe({next:()=>{this.showMessage(`"${i.name}" has been deleted.`),this.loadDepartments()},error:a=>{console.error("Error deleting department:",a),this.showMessage("Failed to delete department. Please try again.")}})})}createDepartment(){this.router.navigate(["/departments","create"])}canEdit(){return this.authService.isHRAdmin()||this.authService.isManager()}canDelete(){return this.authService.isHRAdmin()}canCreate(){return this.authService.isHRAdmin()||this.authService.isManager()}showMessage(i){this.snackBar.open(i,"Close",{duration:3e3,horizontalPosition:"end",verticalPosition:"top"})}};n.\u0275fac=function(r){return new(r||n)},n.\u0275cmp=E({type:n,selectors:[["app-department-list"]],viewQuery:function(r,o){if(r&1&&ie(or,5),r&2){let a;j(a=H())&&(o.paginator=a.first)}},decls:27,vars:14,consts:[["autoName","matAutocomplete"],[1,"flex-spacer"],["mat-raised-button","","color","primary",3,"click",4,"appHasRole"],[1,"search-form",3,"formGroup"],[1,"search-row"],["appearance","outline"],["matInput","","formControlName","Name",3,"matAutocomplete"],[3,"value",4,"ngFor","ngForOf"],[1,"search-buttons"],["mat-raised-button","","color","accent","type","button",3,"click"],[1,"table-container"],["class","loading-spinner",4,"ngIf"],["mat-table","","class","department-table",3,"dataSource",4,"ngIf"],["showFirstLastButtons","",3,"page","length","pageSize","pageSizeOptions","pageIndex"],["mat-raised-button","","color","primary",3,"click"],[3,"value"],[1,"loading-spinner"],["mat-table","",1,"department-table",3,"dataSource"],["matColumnDef","name"],["mat-header-cell","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","actions"],["mat-header-row","",4,"matHeaderRowDef"],["mat-row","",4,"matRowDef","matRowDefColumns"],["class","mat-row",4,"ngIf"],["mat-header-cell",""],["mat-cell",""],[1,"action-buttons"],["mat-icon-button","","color","primary","matTooltip","View Details",3,"click"],["mat-icon-button","","color","accent","matTooltip","Edit Department",3,"click",4,"appHasRole"],["mat-icon-button","","color","warn","matTooltip","Delete Department",3,"click",4,"appHasRole"],["mat-icon-button","","color","accent","matTooltip","Edit Department",3,"click"],["mat-icon-button","","color","warn","matTooltip","Delete Department",3,"click"],["mat-header-row",""],["mat-row",""],[1,"mat-row"],[1,"mat-cell"],[1,"no-data"]],template:function(r,o){if(r&1){let a=q();M(0,"page-header"),m(1,"mat-card")(2,"mat-card-header")(3,"mat-card-title"),g(4,"Department Directory"),h(),M(5,"div",1),A(6,$0e,4,0,"button",2),h(),m(7,"mat-card-content")(8,"form",3)(9,"div",4)(10,"mat-form-field",5)(11,"mat-label"),g(12,"Department Name"),h(),M(13,"input",6),m(14,"mat-autocomplete",null,0),A(16,W0e,2,2,"mat-option",7),ue(17,"async"),h()(),m(18,"div",8)(19,"button",9),S("click",function(){return T(a),I(o.onClearSearch())}),m(20,"mat-icon"),g(21,"clear"),h(),g(22," Clear Filters "),h()()()(),m(23,"div",10),A(24,G0e,2,0,"div",11)(25,ive,10,4,"table",12),h(),m(26,"mat-paginator",13),S("page",function(l){return T(a),I(o.onPageChange(l))}),h()()()}if(r&2){let a=Me(15);f(6),v("appHasRole",rt(12,Q6)),f(2),v("formGroup",o.searchForm),f(5),v("matAutocomplete",a),f(3),v("ngForOf",Oe(17,10,o.filteredNames$)),f(8),v("ngIf",o.loading),f(),v("ngIf",!o.loading),f(),v("length",o.totalCount)("pageSize",o.pageSize)("pageSizeOptions",rt(13,z0e))("pageIndex",o.pageNumber-1)}},dependencies:[ut,vr,Jt,$n,no,Hi,qt,io,Ji,Ur,Be,Mt,Yt,Ut,Ht,zt,Gt,Wt,tt,st,Mn,en,Ci,Gi,Pi,id,Gc,Yc,Xc,Qc,qc,Jc,Kc,Zc,ed,td,vc,or,gi,fi,$r,Ao,Dw,ww,wn,w_,_i,Tn,Qt,Wn,sn],styles:["mat-card[_ngcontent-%COMP%]{margin:16px}mat-card-header[_ngcontent-%COMP%]{display:flex;align-items:center;margin-bottom:16px;padding:16px;border-bottom:1px solid rgba(0,0,0,.12)}mat-card-header[_ngcontent-%COMP%] mat-card-title[_ngcontent-%COMP%]{font-size:20px;font-weight:500;margin:0}mat-card-header[_ngcontent-%COMP%] .flex-spacer[_ngcontent-%COMP%]{flex:1 1 auto}mat-card-header[_ngcontent-%COMP%] button[_ngcontent-%COMP%] mat-icon[_ngcontent-%COMP%]{margin-right:4px}mat-card-content[_ngcontent-%COMP%]{padding:0}.search-form[_ngcontent-%COMP%]{padding:16px;background-color:#f5f5f5;margin-bottom:0}.search-form[_ngcontent-%COMP%] .search-row[_ngcontent-%COMP%]{display:grid;grid-template-columns:1fr auto;gap:16px;align-items:start}.search-form[_ngcontent-%COMP%] .search-row[_ngcontent-%COMP%] mat-form-field[_ngcontent-%COMP%]{width:100%}.search-form[_ngcontent-%COMP%] .search-row[_ngcontent-%COMP%] .search-buttons[_ngcontent-%COMP%]{display:flex;gap:8px;align-items:center}.search-form[_ngcontent-%COMP%] .search-row[_ngcontent-%COMP%] .search-buttons[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{white-space:nowrap}.search-form[_ngcontent-%COMP%] .search-row[_ngcontent-%COMP%] .search-buttons[_ngcontent-%COMP%] button[_ngcontent-%COMP%] mat-icon[_ngcontent-%COMP%]{margin-right:4px}.table-container[_ngcontent-%COMP%]{position:relative;min-height:300px;overflow-x:auto}.loading-spinner[_ngcontent-%COMP%]{display:flex;justify-content:center;align-items:center;min-height:300px}.department-table[_ngcontent-%COMP%]{width:100%}.department-table[_ngcontent-%COMP%] th[_ngcontent-%COMP%]{font-weight:600;font-size:14px;color:#000000de}.department-table[_ngcontent-%COMP%] td[_ngcontent-%COMP%]{font-size:14px;color:#000000de}.department-table[_ngcontent-%COMP%] .mat-column-name[_ngcontent-%COMP%]{min-width:200px}.department-table[_ngcontent-%COMP%] .mat-column-actions[_ngcontent-%COMP%]{width:120px;text-align:right}.department-table[_ngcontent-%COMP%] .mat-column-actions[_ngcontent-%COMP%] .action-buttons[_ngcontent-%COMP%]{display:flex;justify-content:flex-end;align-items:center;gap:4px}.no-data[_ngcontent-%COMP%]{display:flex;flex-direction:column;align-items:center;justify-content:center;padding:48px 16px;color:#0000008a}.no-data[_ngcontent-%COMP%] mat-icon[_ngcontent-%COMP%]{font-size:48px;width:48px;height:48px;margin-bottom:16px}.no-data[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{margin:0;font-size:16px}mat-paginator[_ngcontent-%COMP%]{border-top:1px solid rgba(0,0,0,.12)}"]});let t=n;return t})();var nve=()=>["HRAdmin","Manager"],rve=()=>["HRAdmin"];function ove(t,n){if(t&1){let e=q();m(0,"button",10),S("click",function(){T(e);let r=x(2);return I(r.editDepartment())}),m(1,"mat-icon"),g(2,"edit"),h(),g(3," Edit "),h()}}function ave(t,n){if(t&1){let e=q();m(0,"button",11),S("click",function(){T(e);let r=x(2);return I(r.deleteDepartment())}),m(1,"mat-icon"),g(2,"delete"),h(),g(3," Delete "),h()}}function sve(t,n){if(t&1&&(m(0,"mat-list-item")(1,"span",7),g(2,"Created At"),h(),m(3,"span",8),g(4),ue(5,"date"),h()()),t&2){let e=x(3);f(4),N(Ei(5,1,e.department.createdAt,"medium"))}}function lve(t,n){if(t&1&&(m(0,"mat-list-item")(1,"span",7),g(2,"Last Modified At"),h(),m(3,"span",8),g(4),ue(5,"date"),h()()),t&2){let e=x(3);f(4),N(Ei(5,1,e.department.lastModifiedAt,"medium"))}}function cve(t,n){if(t&1&&(m(0,"div",6)(1,"h3"),g(2,"Audit Information"),h(),M(3,"mat-divider"),m(4,"mat-list"),A(5,sve,6,4,"mat-list-item",0)(6,lve,6,4,"mat-list-item",0),h()()),t&2){let e=x(2);f(5),v("ngIf",e.department.createdAt),f(),v("ngIf",e.department.lastModifiedAt)}}function dve(t,n){if(t&1){let e=q();m(0,"mat-card")(1,"mat-card-header")(2,"mat-card-title"),g(3,"Department Details"),h(),M(4,"div",1),A(5,ove,4,0,"button",2)(6,ave,4,0,"button",3),m(7,"button",4),S("click",function(){T(e);let r=x();return I(r.goBack())}),m(8,"mat-icon"),g(9,"arrow_back"),h(),g(10," Back to List "),h()(),m(11,"mat-card-content")(12,"div",5)(13,"div",6)(14,"h3"),g(15,"Basic Information"),h(),M(16,"mat-divider"),m(17,"mat-list")(18,"mat-list-item")(19,"span",7),g(20,"Department Name"),h(),m(21,"span",8),g(22),h()()()(),A(23,cve,7,2,"div",9),h()()()}if(t&2){let e=x();f(5),v("appHasRole",rt(4,nve)),f(),v("appHasRole",rt(5,rve)),f(16),N(e.department.name),f(),v("ngIf",e.department.createdAt||e.department.lastModifiedAt)}}function uve(t,n){t&1&&(m(0,"mat-card")(1,"mat-card-content")(2,"div",12),M(3,"mat-spinner"),h()()())}function mve(t,n){if(t&1){let e=q();m(0,"mat-card")(1,"mat-card-content")(2,"div",13)(3,"mat-icon"),g(4,"error"),h(),m(5,"p"),g(6,"Department not found"),h(),m(7,"button",14),S("click",function(){T(e);let r=x();return I(r.goBack())}),g(8," Go Back "),h()()()()}}var Z6=(()=>{let n=class n{constructor(){this.departmentService=u(Bs),this.authService=u(Ot),this.route=u(Si),this.router=u(Re),this.snackBar=u(ui),this.dialog=u(kn),this.loading=!1}ngOnInit(){let i=this.route.snapshot.paramMap.get("id");i&&this.loadDepartment(i)}loadDepartment(i){this.loading=!0,this.departmentService.getById(i).subscribe({next:r=>{this.department=r,this.loading=!1},error:r=>{console.error("Error loading department:",r),this.showMessage("Error loading department"),this.loading=!1,this.router.navigate(["/departments"])}})}editDepartment(){this.router.navigate(["/departments","edit",this.department.id])}deleteDepartment(){this.dialog.open(Tr,{width:"400px",data:{title:"Delete Department",message:`Are you sure you want to delete "${this.department.name}"? This action cannot be undone.`,confirmText:"Delete",cancelText:"Cancel"}}).afterClosed().subscribe(r=>{r&&this.departmentService.delete(this.department.id).subscribe({next:()=>{let o=this.snackBar.open(`"${this.department.name}" has been deleted.`,"Close",{duration:3e3,horizontalPosition:"end",verticalPosition:"top"});o.afterDismissed().subscribe(()=>this.router.navigate(["/departments"])),o.onAction().subscribe(()=>this.router.navigate(["/departments"]))},error:o=>{console.error("Error deleting department:",o),this.showMessage("Failed to delete department. Please try again.")}})})}goBack(){this.router.navigate(["/departments"])}canEdit(){return this.authService.isHRAdmin()||this.authService.isManager()}canDelete(){return this.authService.isHRAdmin()}showMessage(i){this.snackBar.open(i,"Close",{duration:3e3,horizontalPosition:"end",verticalPosition:"top"})}};n.\u0275fac=function(r){return new(r||n)},n.\u0275cmp=E({type:n,selectors:[["app-department-detail"]],decls:4,vars:3,consts:[[4,"ngIf"],[1,"flex-spacer"],["mat-raised-button","","color","accent",3,"click",4,"appHasRole"],["mat-raised-button","","color","warn",3,"click",4,"appHasRole"],["mat-stroked-button","",3,"click"],[1,"detail-grid"],[1,"detail-section"],["matListItemTitle",""],["matListItemLine",""],["class","detail-section",4,"ngIf"],["mat-raised-button","","color","accent",3,"click"],["mat-raised-button","","color","warn",3,"click"],[1,"loading-container"],[1,"no-data"],["mat-raised-button","","color","primary",3,"click"]],template:function(r,o){r&1&&(M(0,"page-header"),A(1,dve,24,6,"mat-card",0)(2,uve,4,0,"mat-card",0)(3,mve,9,0,"mat-card",0)),r&2&&(f(),v("ngIf",!o.loading&&o.department),f(),v("ngIf",o.loading),f(),v("ngIf",!o.loading&&!o.department))},dependencies:[ut,Jt,Be,Mt,Ut,Ht,zt,Gt,Wt,tt,st,ua,Ns,da,Po,Pu,Ml,ho,gi,fi,_i,Tn,Qt,Wn,Ta],styles:["mat-card[_ngcontent-%COMP%]{margin:16px}mat-card-header[_ngcontent-%COMP%]{display:flex;align-items:center;margin-bottom:16px;padding:16px;border-bottom:1px solid rgba(0,0,0,.12)}mat-card-header[_ngcontent-%COMP%] mat-card-title[_ngcontent-%COMP%]{font-size:20px;font-weight:500;margin:0}mat-card-header[_ngcontent-%COMP%] .flex-spacer[_ngcontent-%COMP%]{flex:1 1 auto}mat-card-header[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{margin-left:8px}mat-card-header[_ngcontent-%COMP%] button[_ngcontent-%COMP%] mat-icon[_ngcontent-%COMP%]{margin-right:4px}mat-card-content[_ngcontent-%COMP%]{padding:16px}.detail-grid[_ngcontent-%COMP%]{display:grid;grid-template-columns:repeat(auto-fit,minmax(400px,1fr));gap:24px}.detail-section[_ngcontent-%COMP%] h3[_ngcontent-%COMP%]{margin:0 0 8px;font-size:16px;font-weight:500;color:#000000de}.detail-section[_ngcontent-%COMP%] mat-divider[_ngcontent-%COMP%]{margin-bottom:16px}.detail-section[_ngcontent-%COMP%] mat-list[_ngcontent-%COMP%]{padding:0}.detail-section[_ngcontent-%COMP%] mat-list-item[_ngcontent-%COMP%]{height:auto;min-height:48px;padding:8px 0}.loading-container[_ngcontent-%COMP%]{display:flex;justify-content:center;align-items:center;min-height:300px}.no-data[_ngcontent-%COMP%]{display:flex;flex-direction:column;align-items:center;justify-content:center;padding:48px 16px;color:#0000008a}.no-data[_ngcontent-%COMP%] mat-icon[_ngcontent-%COMP%]{font-size:48px;width:48px;height:48px;margin-bottom:16px}.no-data[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{margin:0 0 16px;font-size:16px}"]});let t=n;return t})();function hve(t,n){t&1&&(m(0,"div",0),M(1,"mat-spinner"),h())}function pve(t,n){t&1&&(m(0,"mat-error"),g(1," Department name is required "),h())}function fve(t,n){t&1&&(m(0,"mat-error"),g(1," Department name cannot exceed 100 characters "),h())}var uA=(()=>{let n=class n{constructor(){this.departmentService=u(Bs),this.route=u(Si),this.router=u(Re),this.fb=u(ro),this.snackBar=u(ui),this.loading=!1,this.isEditMode=!1}ngOnInit(){this.initForm();let i=this.route.snapshot.paramMap.get("id");i&&(this.isEditMode=!0,this.departmentId=i,this.loadDepartment(i))}initForm(){this.departmentForm=this.fb.group({name:["",[Le.required,Le.maxLength(100)]]})}loadDepartment(i){this.loading=!0,this.departmentService.getById(i).subscribe({next:r=>{this.departmentForm.patchValue({name:r.name}),this.loading=!1},error:r=>{console.error("Error loading department:",r),this.showMessage("Error loading department"),this.loading=!1}})}onSubmit(){if(!this.departmentForm.invalid)if(this.loading=!0,this.isEditMode&&this.departmentId){let i={id:this.departmentId,name:this.departmentForm.value.name};this.departmentService.updateDepartment(i).subscribe({next:()=>{this.showMessage("Department updated successfully"),this.router.navigate(["/departments",this.departmentId])},error:r=>{console.error("Error updating department:",r),this.showMessage("Error updating department"),this.loading=!1}})}else{let i={name:this.departmentForm.value.name};this.departmentService.createDepartment(i).subscribe({next:r=>{console.log("Department created - Response:",r),console.log("Department ID:",r?.id),this.showMessage("Department created successfully"),r?.id?(console.log("Navigating to detail page:","/departments/"+r.id),this.router.navigate(["/departments",r.id])):(console.warn("No department ID returned, navigating to list page"),this.router.navigate(["/departments"])),this.loading=!1},error:r=>{console.error("Error creating department:",r),this.showMessage("Error creating department"),this.loading=!1}})}}onCancel(){this.isEditMode&&this.departmentId?this.router.navigate(["/departments",this.departmentId]):this.router.navigate(["/departments"])}showMessage(i){this.snackBar.open(i,"Close",{duration:3e3,horizontalPosition:"end",verticalPosition:"top"})}};n.\u0275fac=function(r){return new(r||n)},n.\u0275cmp=E({type:n,selectors:[["app-department-form"]],decls:23,vars:7,consts:[[1,"loading-overlay"],[3,"ngSubmit","formGroup"],[1,"form-section"],[1,"form-row"],["appearance","outline"],["matInput","","formControlName","name"],[4,"ngIf"],[1,"form-actions"],["type","button","mat-stroked-button","",3,"click"],["type","submit","mat-raised-button","","color","primary",3,"disabled"]],template:function(r,o){if(r&1&&(M(0,"page-header"),m(1,"mat-card")(2,"mat-card-header")(3,"mat-card-title"),g(4),h()(),m(5,"mat-card-content"),V(6,hve,2,0,"div",0),m(7,"form",1),S("ngSubmit",function(){return o.onSubmit()}),m(8,"div",2)(9,"h3"),g(10,"Department Information"),h(),m(11,"div",3)(12,"mat-form-field",4)(13,"mat-label"),g(14,"Department Name"),h(),M(15,"input",5),A(16,pve,2,0,"mat-error",6)(17,fve,2,0,"mat-error",6),h()()(),m(18,"div",7)(19,"button",8),S("click",function(){return o.onCancel()}),g(20," Cancel "),h(),m(21,"button",9),g(22),h()()()()()),r&2){let a,s;f(4),N(o.isEditMode?"Edit Department":"Create Department"),f(2),B(o.loading?6:-1),f(),v("formGroup",o.departmentForm),f(9),v("ngIf",(a=o.departmentForm.get("name"))==null?null:a.hasError("required")),f(),v("ngIf",(s=o.departmentForm.get("name"))==null?null:s.hasError("maxlength")),f(4),v("disabled",o.loading),f(),pe(" ",o.isEditMode?"Update":"Create"," ")}},dependencies:[ut,Jt,$n,no,Hi,qt,io,Ji,Ur,Be,Mt,Ut,Ht,zt,Gt,Wt,tt,Mn,en,Ci,Gi,So,Pi,gi,fi,_i,Qt],styles:["mat-card[_ngcontent-%COMP%]{margin:16px;max-width:800px}mat-card-header[_ngcontent-%COMP%]{padding:16px;border-bottom:1px solid rgba(0,0,0,.12)}mat-card-header[_ngcontent-%COMP%] mat-card-title[_ngcontent-%COMP%]{font-size:20px;font-weight:500;margin:0}mat-card-content[_ngcontent-%COMP%]{padding:24px;position:relative}.form-section[_ngcontent-%COMP%]{margin-bottom:24px}.form-section[_ngcontent-%COMP%] h3[_ngcontent-%COMP%]{margin:0 0 16px;font-size:16px;font-weight:500;color:#000000de}.form-section[_ngcontent-%COMP%] .form-row[_ngcontent-%COMP%]{display:grid;grid-template-columns:1fr;gap:16px;margin-bottom:16px}.form-section[_ngcontent-%COMP%] .form-row[_ngcontent-%COMP%] mat-form-field[_ngcontent-%COMP%]{width:100%}.form-actions[_ngcontent-%COMP%]{display:flex;justify-content:flex-end;gap:8px;padding-top:16px;border-top:1px solid rgba(0,0,0,.12)}.loading-overlay[_ngcontent-%COMP%]{position:absolute;inset:0;background-color:#fffc;display:flex;align-items:center;justify-content:center;z-index:1000}"]});let t=n;return t})();var gve=["mat-sort-header",""],_ve=["*"];function bve(t,n){t&1&&(pt(0,"div",2),Zt(),pt(1,"svg",3),Xt(2,"path",4),_t()())}var X6=new O("MAT_SORT_DEFAULT_OPTIONS"),kl=(()=>{class t{_defaultOptions;_initializedStream=new Wa(1);sortables=new Map;_stateChanges=new z;active;start="asc";get direction(){return this._direction}set direction(e){this._direction=e}_direction="";disableClear;disabled=!1;sortChange=new U;initialized=this._initializedStream;constructor(e){this._defaultOptions=e}register(e){this.sortables.set(e.id,e)}deregister(e){this.sortables.delete(e.id)}sort(e){this.active!=e.id?(this.active=e.id,this.direction=e.start?e.start:this.start):this.direction=this.getNextSortDirection(e),this.sortChange.emit({active:this.active,direction:this.direction})}getNextSortDirection(e){if(!e)return"";let i=e?.disableClear??this.disableClear??!!this._defaultOptions?.disableClear,r=vve(e.start||this.start,i),o=r.indexOf(this.direction)+1;return o>=r.length&&(o=0),r[o]}ngOnInit(){this._initializedStream.next()}ngOnChanges(){this._stateChanges.next()}ngOnDestroy(){this._stateChanges.complete(),this._initializedStream.complete()}static \u0275fac=function(i){return new(i||t)(be(X6,8))};static \u0275dir=P({type:t,selectors:[["","matSort",""]],hostAttrs:[1,"mat-sort"],inputs:{active:[0,"matSortActive","active"],start:[0,"matSortStart","start"],direction:[0,"matSortDirection","direction"],disableClear:[2,"matSortDisableClear","disableClear",L],disabled:[2,"matSortDisabled","disabled",L]},outputs:{sortChange:"matSortChange"},exportAs:["matSort"],features:[Ae]})}return t})();function vve(t,n){let e=["asc","desc"];return t=="desc"&&e.reverse(),n||e.push(""),e}var kw=(()=>{class t{changes=new z;static \u0275fac=function(i){return new(i||t)};static \u0275prov=R({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();function yve(t){return t||new kw}var xve={provide:kw,deps:[[new ls,new Yl,kw]],useFactory:yve},Tw=(()=>{class t{_intl=u(kw);_sort=u(kl,{optional:!0});_columnDef=u("MAT_SORT_HEADER_COLUMN_DEF",{optional:!0});_changeDetectorRef=u(ye);_focusMonitor=u(ti);_elementRef=u(Y);_ariaDescriber=u(nh,{optional:!0});_renderChanges;_animationsDisabled=Ye();_recentlyCleared=he(null);_sortButton;id;arrowPosition="after";start;disabled=!1;get sortActionDescription(){return this._sortActionDescription}set sortActionDescription(e){this._updateSortActionDescription(e)}_sortActionDescription="Sort";disableClear;constructor(){u(ht).load(ki);let e=u(X6,{optional:!0});this._sort,e?.arrowPosition&&(this.arrowPosition=e?.arrowPosition)}ngOnInit(){!this.id&&this._columnDef&&(this.id=this._columnDef.name),this._sort.register(this),this._renderChanges=Je(this._sort._stateChanges,this._sort.sortChange).subscribe(()=>this._changeDetectorRef.markForCheck()),this._sortButton=this._elementRef.nativeElement.querySelector(".mat-sort-header-container"),this._updateSortActionDescription(this._sortActionDescription)}ngAfterViewInit(){this._focusMonitor.monitor(this._elementRef,!0).subscribe(()=>{Promise.resolve().then(()=>this._recentlyCleared.set(null))})}ngOnDestroy(){this._focusMonitor.stopMonitoring(this._elementRef),this._sort.deregister(this),this._renderChanges?.unsubscribe(),this._sortButton&&this._ariaDescriber?.removeDescription(this._sortButton,this._sortActionDescription)}_toggleOnInteraction(){if(!this._isDisabled()){let e=this._isSorted(),i=this._sort.direction;this._sort.sort(this),this._recentlyCleared.set(e&&!this._isSorted()?i:null)}}_handleKeydown(e){(e.keyCode===32||e.keyCode===13)&&(e.preventDefault(),this._toggleOnInteraction())}_isSorted(){return this._sort.active==this.id&&(this._sort.direction==="asc"||this._sort.direction==="desc")}_isDisabled(){return this._sort.disabled||this.disabled}_getAriaSortAttribute(){return this._isSorted()?this._sort.direction=="asc"?"ascending":"descending":"none"}_renderArrow(){return!this._isDisabled()||this._isSorted()}_updateSortActionDescription(e){this._sortButton&&(this._ariaDescriber?.removeDescription(this._sortButton,this._sortActionDescription),this._ariaDescriber?.describe(this._sortButton,e)),this._sortActionDescription=e}static \u0275fac=function(i){return new(i||t)};static \u0275cmp=E({type:t,selectors:[["","mat-sort-header",""]],hostAttrs:[1,"mat-sort-header"],hostVars:3,hostBindings:function(i,r){i&1&&S("click",function(){return r._toggleOnInteraction()})("keydown",function(a){return r._handleKeydown(a)})("mouseleave",function(){return r._recentlyCleared.set(null)}),i&2&&(X("aria-sort",r._getAriaSortAttribute()),G("mat-sort-header-disabled",r._isDisabled()))},inputs:{id:[0,"mat-sort-header","id"],arrowPosition:"arrowPosition",start:"start",disabled:[2,"disabled","disabled",L],sortActionDescription:"sortActionDescription",disableClear:[2,"disableClear","disableClear",L]},exportAs:["matSortHeader"],attrs:gve,ngContentSelectors:_ve,decls:4,vars:17,consts:[[1,"mat-sort-header-container","mat-focus-indicator"],[1,"mat-sort-header-content"],[1,"mat-sort-header-arrow"],["viewBox","0 -960 960 960","focusable","false","aria-hidden","true"],["d","M440-240v-368L296-464l-56-56 240-240 240 240-56 56-144-144v368h-80Z"]],template:function(i,r){i&1&&(Se(),pt(0,"div",0)(1,"div",1),ne(2),_t(),V(3,bve,3,0,"div",2),_t()),i&2&&(G("mat-sort-header-sorted",r._isSorted())("mat-sort-header-position-before",r.arrowPosition==="before")("mat-sort-header-descending",r._sort.direction==="desc")("mat-sort-header-ascending",r._sort.direction==="asc")("mat-sort-header-recently-cleared-ascending",r._recentlyCleared()==="asc")("mat-sort-header-recently-cleared-descending",r._recentlyCleared()==="desc")("mat-sort-header-animations-disabled",r._animationsDisabled),X("tabindex",r._isDisabled()?null:0)("role",r._isDisabled()?null:"button"),f(3),B(r._renderArrow()?3:-1))},styles:[`.mat-sort-header{cursor:pointer}.mat-sort-header-disabled{cursor:default}.mat-sort-header-container{display:flex;align-items:center;letter-spacing:normal;outline:0}[mat-sort-header].cdk-keyboard-focused .mat-sort-header-container,[mat-sort-header].cdk-program-focused .mat-sort-header-container{border-bottom:solid 1px currentColor}.mat-sort-header-container::before{margin:calc(calc(var(--mat-focus-indicator-border-width, 3px) + 2px)*-1)}.mat-sort-header-content{display:flex;align-items:center}.mat-sort-header-position-before{flex-direction:row-reverse}@keyframes _mat-sort-header-recently-cleared-ascending{from{transform:translateY(0);opacity:1}to{transform:translateY(-25%);opacity:0}}@keyframes _mat-sort-header-recently-cleared-descending{from{transform:translateY(0) rotate(180deg);opacity:1}to{transform:translateY(25%) rotate(180deg);opacity:0}}.mat-sort-header-arrow{height:12px;width:12px;position:relative;transition:transform 225ms cubic-bezier(0.4, 0, 0.2, 1),opacity 225ms cubic-bezier(0.4, 0, 0.2, 1);opacity:0;overflow:visible;color:var(--mat-sort-arrow-color, var(--mat-sys-on-surface))}.mat-sort-header.cdk-keyboard-focused .mat-sort-header-arrow,.mat-sort-header.cdk-program-focused .mat-sort-header-arrow,.mat-sort-header:hover .mat-sort-header-arrow{opacity:.54}.mat-sort-header .mat-sort-header-sorted .mat-sort-header-arrow{opacity:1}.mat-sort-header-descending .mat-sort-header-arrow{transform:rotate(180deg)}.mat-sort-header-recently-cleared-ascending .mat-sort-header-arrow{transform:translateY(-25%)}.mat-sort-header-recently-cleared-ascending .mat-sort-header-arrow{transition:none;animation:_mat-sort-header-recently-cleared-ascending 225ms cubic-bezier(0.4, 0, 0.2, 1) forwards}.mat-sort-header-recently-cleared-descending .mat-sort-header-arrow{transition:none;animation:_mat-sort-header-recently-cleared-descending 225ms cubic-bezier(0.4, 0, 0.2, 1) forwards}.mat-sort-header-animations-disabled .mat-sort-header-arrow{transition-duration:0ms;animation-duration:0ms}.mat-sort-header-arrow svg{width:24px;height:24px;fill:currentColor;position:absolute;top:50%;left:50%;margin:-12px 0 0 -12px;transform:translateZ(0)}.mat-sort-header-arrow,[dir=rtl] .mat-sort-header-position-before .mat-sort-header-arrow{margin:0 0 0 6px}.mat-sort-header-position-before .mat-sort-header-arrow,[dir=rtl] .mat-sort-header-arrow{margin:0 6px 0 0} -`],encapsulation:2,changeDetection:0})}return t})(),Iw=(()=>{class t{static \u0275fac=function(i){return new(i||t)};static \u0275mod=ee({type:t});static \u0275inj=J({providers:[xve],imports:[De]})}return t})();var tU=()=>["HRAdmin","Manager"],iU=()=>["HRAdmin"],eU=()=>["score","positionNumber","positionTitle","departmentName","salaryRangeName"];function Cve(t,n){t&1&&(m(0,"div",23),M(1,"mat-spinner",24),m(2,"span"),g(3,"Searching\u2026"),h()())}function wve(t,n){if(t&1&&(m(0,"div",25),g(1),h()),t&2){let e=x(2);f(),N(e.semanticError)}}function Dve(t,n){t&1&&(m(0,"th",39),g(1,"Score"),h())}function Eve(t,n){if(t&1&&(m(0,"td",40),g(1),ue(2,"number"),h()),t&2){let e=n.$implicit;f(),N(Ei(2,1,e.score,"1.3-3"))}}function Mve(t,n){t&1&&(m(0,"th",39),g(1,"Position #"),h())}function Sve(t,n){if(t&1&&(m(0,"td",40),g(1),h()),t&2){let e=n.$implicit;f(),N(e.positionNumber)}}function kve(t,n){t&1&&(m(0,"th",39),g(1,"Title"),h())}function Tve(t,n){if(t&1&&(m(0,"td",40),g(1),h()),t&2){let e=n.$implicit;f(),N(e.positionTitle)}}function Ive(t,n){t&1&&(m(0,"th",39),g(1,"Department"),h())}function Ave(t,n){if(t&1&&(m(0,"td",40),g(1),h()),t&2){let e=n.$implicit;f(),N(e.departmentName)}}function Ove(t,n){t&1&&(m(0,"th",39),g(1,"Salary Range"),h())}function Rve(t,n){if(t&1&&(m(0,"td",40),g(1),h()),t&2){let e=n.$implicit;f(),N(e.salaryRangeName)}}function Pve(t,n){t&1&&M(0,"tr",41)}function Fve(t,n){t&1&&M(0,"tr",42)}function Nve(t,n){if(t&1){let e=q();m(0,"div")(1,"div",26)(2,"span",27),g(3),h(),m(4,"button",28),S("click",function(){T(e);let r=x(2);return I(r.clearSemanticSearch())}),m(5,"mat-icon"),g(6,"clear"),h(),g(7," Clear "),h()(),m(8,"table",29),kt(9,30),A(10,Dve,2,0,"th",31)(11,Eve,3,4,"td",32),Dt(),kt(12,33),A(13,Mve,2,0,"th",31)(14,Sve,2,1,"td",32),Dt(),kt(15,34),A(16,kve,2,0,"th",31)(17,Tve,2,1,"td",32),Dt(),kt(18,35),A(19,Ive,2,0,"th",31)(20,Ave,2,1,"td",32),Dt(),kt(21,36),A(22,Ove,2,0,"th",31)(23,Rve,2,1,"td",32),Dt(),A(24,Pve,1,0,"tr",37)(25,Fve,1,0,"tr",38),h()()}if(t&2){let e=x(2);f(3),pe("",e.semanticResults.length," result(s) found"),f(5),v("dataSource",e.semanticResults),f(16),v("matHeaderRowDef",rt(4,eU)),f(),v("matRowDefColumns",rt(5,eU))}}function Lve(t,n){if(t&1){let e=q();m(0,"mat-card",16)(1,"mat-card-header")(2,"mat-card-title")(3,"mat-icon",17),g(4,"auto_awesome"),h(),g(5," Semantic Position Search "),h()(),m(6,"mat-card-content")(7,"mat-form-field",18)(8,"mat-label"),g(9,"Describe the position you're looking for\u2026"),h(),m(10,"input",19,0),S("input",function(){T(e);let r=Me(11),o=x();return I(o.onSemanticQueryChange(r.value))}),h(),m(12,"mat-icon",8),g(13,"search"),h()(),A(14,Cve,4,0,"div",20)(15,wve,2,1,"div",21)(16,Nve,26,6,"div",22),h()()}if(t&2){let e=x();f(10),v("value",e.semanticQuery),f(4),v("ngIf",e.semanticLoading),f(),v("ngIf",e.semanticError),f(),v("ngIf",e.semanticResults!==null&&!e.semanticLoading)}}function Vve(t,n){if(t&1){let e=q();m(0,"button",43),S("click",function(){T(e);let r=x();return I(r.createPosition())}),m(1,"mat-icon"),g(2,"add"),h(),g(3," Add Position "),h()}}function Bve(t,n){if(t&1){let e=q();m(0,"button",44),S("click",function(){T(e);let r=x();return I(r.addMockData())}),m(1,"mat-icon"),g(2,"data_object"),h(),g(3," Add Mock Data "),h()}}function jve(t,n){t&1&&(m(0,"div",45),M(1,"mat-spinner"),h())}function Hve(t,n){t&1&&(m(0,"th",54),g(1,"Position Number"),h())}function zve(t,n){if(t&1&&(m(0,"td",40),g(1),h()),t&2){let e=n.$implicit;f(),N(e.positionNumber)}}function Uve(t,n){t&1&&(m(0,"th",54),g(1,"Position Title"),h())}function $ve(t,n){if(t&1&&(m(0,"td",40),g(1),h()),t&2){let e=n.$implicit;f(),N(e.positionTitle)}}function Wve(t,n){t&1&&(m(0,"th",54),g(1,"Department"),h())}function Gve(t,n){if(t&1&&(m(0,"td",40),g(1),h()),t&2){let e=n.$implicit;f(),N(e.department==null?null:e.department.name)}}function qve(t,n){t&1&&(m(0,"th",54),g(1,"Salary Range"),h())}function Yve(t,n){if(t&1&&(m(0,"td",40),g(1),h()),t&2){let e=n.$implicit;f(),N(e.salaryRange==null?null:e.salaryRange.name)}}function Qve(t,n){t&1&&(m(0,"th",55),g(1,"Actions"),h())}function Kve(t,n){if(t&1){let e=q();m(0,"button",61),S("click",function(){T(e);let r=x().$implicit,o=x(2);return I(o.editPosition(r))}),m(1,"mat-icon"),g(2,"edit"),h()()}}function Zve(t,n){if(t&1){let e=q();m(0,"button",62),S("click",function(){T(e);let r=x().$implicit,o=x(2);return I(o.deletePosition(r))}),m(1,"mat-icon"),g(2,"delete"),h()()}}function Xve(t,n){if(t&1){let e=q();m(0,"td",56)(1,"div",57)(2,"button",58),S("click",function(){let r=T(e).$implicit,o=x(2);return I(o.viewPosition(r))}),m(3,"mat-icon"),g(4,"visibility"),h()(),A(5,Kve,3,0,"button",59)(6,Zve,3,0,"button",60),h()()}t&2&&(f(5),v("appHasRole",rt(2,tU)),f(),v("appHasRole",rt(3,iU)))}function Jve(t,n){t&1&&M(0,"tr",41)}function eye(t,n){t&1&&M(0,"tr",42)}function tye(t,n){if(t&1&&(m(0,"tr",63)(1,"td",64)(2,"div",65)(3,"mat-icon"),g(4,"work_off"),h(),m(5,"p"),g(6,"No positions found"),h()()()()),t&2){let e=x(2);f(),X("colspan",e.displayedColumns.length)}}function iye(t,n){if(t&1){let e=q();m(0,"table",46),S("matSortChange",function(r){T(e);let o=x();return I(o.onSortChange(r))}),kt(1,33),A(2,Hve,2,0,"th",47)(3,zve,2,1,"td",32),Dt(),kt(4,34),A(5,Uve,2,0,"th",47)(6,$ve,2,1,"td",32),Dt(),kt(7,48),A(8,Wve,2,0,"th",47)(9,Gve,2,1,"td",32),Dt(),kt(10,49),A(11,qve,2,0,"th",47)(12,Yve,2,1,"td",32),Dt(),kt(13,50),A(14,Qve,2,0,"th",51)(15,Xve,7,4,"td",52),Dt(),A(16,Jve,1,0,"tr",37)(17,eye,1,0,"tr",38)(18,tye,7,1,"tr",53),h()}if(t&2){let e=x();v("dataSource",e.positions),f(16),v("matHeaderRowDef",e.displayedColumns),f(),v("matRowDefColumns",e.displayedColumns)}}var nU=(()=>{let n=class n{constructor(){this.positionService=u($c),this.aiService=u(Uc),this.authService=u(Ot),this.router=u(Re),this.dialog=u(kn),this.snackBar=u(ui),this.searchSubject=new z,this.destroy$=new z,this.positions=[],this.aiEnabled=Qi.aiEnabled,this.semanticQuery="",this.semanticLoading=!1,this.semanticError="",this.semanticResults=null,this.semanticSearch$=new z,this.loading=!1,this.displayedColumns=["positionNumber","positionTitle","departmentId","salaryRangeId","actions"],this.totalCount=0,this.pageNumber=1,this.pageSize=10,this.pageSizeOptions=[5,10,25,50,100],this.searchPositionNumber="",this.searchPositionTitle="",this.searchDepartment=""}ngOnInit(){this.searchSubject.pipe(St(500)).subscribe(()=>{this.pageNumber=1,this.loadPositions()}),this.setupSemanticSearch(),this.loadPositions()}ngAfterViewInit(){}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete()}setupSemanticSearch(){this.semanticSearch$.pipe(St(600),je(i=>!i||i.trim().length<3?(this.semanticResults=null,this.semanticError="",Q(null)):(this.semanticLoading=!0,this.semanticError="",this.aiService.semanticPositionSearch(i.trim()).pipe(ii(r=>(this.semanticError=r?.error?.detail??"Semantic search failed. Please try again.",Q(null)))))),we(this.destroy$)).subscribe(i=>{this.semanticLoading=!1,i!==null&&(this.semanticResults=i)})}onSemanticQueryChange(i){this.semanticQuery=i,this.semanticSearch$.next(i)}clearSemanticSearch(){this.semanticQuery="",this.semanticResults=null,this.semanticError=""}loadPositions(){this.loading=!0;let i={pageNumber:this.pageNumber,pageSize:this.pageSize};this.searchPositionNumber&&(i.PositionNumber=this.searchPositionNumber),this.searchPositionTitle&&(i.PositionTitle=this.searchPositionTitle),this.searchDepartment&&(i.Department=this.searchDepartment),this.sort?.active&&this.sort?.direction&&(i.orderBy=`${this.sort.active} ${this.sort.direction}`),this.positionService.getAllPaged(i).subscribe({next:r=>{this.positions=r.value,this.totalCount=r.recordsTotal,this.loading=!1},error:r=>{console.error("Error loading positions:",r),this.loading=!1}})}onSearch(){this.searchSubject.next()}onPageChange(i){this.pageNumber=i.pageIndex+1,this.pageSize=i.pageSize,this.loadPositions()}onSortChange(i){this.loadPositions()}clearFilters(){this.searchPositionNumber="",this.searchPositionTitle="",this.searchDepartment="",this.pageNumber=1,this.loadPositions()}createPosition(){this.router.navigate(["/positions/create"])}viewPosition(i){this.router.navigate(["/positions",i.id])}editPosition(i){this.router.navigate(["/positions/edit",i.id])}deletePosition(i){this.dialog.open(Tr,{width:"400px",data:{title:"Delete Position",message:`Are you sure you want to delete "${i.positionTitle}"? This action cannot be undone.`,confirmText:"Delete",cancelText:"Cancel"}}).afterClosed().subscribe(o=>{o&&this.positionService.delete(i.id).subscribe({next:()=>{this.showMessage(`"${i.positionTitle}" has been deleted.`),this.loadPositions()},error:a=>{console.error("Error deleting position:",a),this.showMessage("Failed to delete position. Please try again.")}})})}addMockData(){let i=prompt("How many mock positions would you like to add?","10");if(i){let r=parseInt(i,10);r>0&&r<=100?(this.loading=!0,this.positionService.addMockPositions({rowCount:r}).subscribe({next:()=>{this.showMessage(`${r} mock positions added successfully`),this.loadPositions()},error:o=>{console.error("Error adding mock positions:",o),this.showMessage("Error adding mock positions"),this.loading=!1}})):this.showMessage("Please enter a number between 1 and 100")}}showMessage(i){this.snackBar.open(i,"Close",{duration:3e3,horizontalPosition:"end",verticalPosition:"top"})}canEdit(){return this.authService.hasRole("HRAdmin")||this.authService.hasRole("Manager")}};n.\u0275fac=function(r){return new(r||n)},n.\u0275cmp=E({type:n,selectors:[["app-position-list"]],viewQuery:function(r,o){if(r&1&&(ie(or,5),ie(kl,5)),r&2){let a;j(a=H())&&(o.paginator=a.first),j(a=H())&&(o.sort=a.first)}},decls:37,vars:14,consts:[["semanticInput",""],["class","nl-search-card",4,"ngIf"],[1,"flex-spacer"],["mat-raised-button","","color","primary",3,"click",4,"appHasRole"],["mat-stroked-button","","color","accent","style","margin-left: 8px;",3,"click",4,"appHasRole"],[1,"search-filters",2,"margin-bottom","16px","display","flex","gap","16px","flex-wrap","wrap"],["appearance","outline",2,"flex","1","min-width","200px"],["matInput","","placeholder","Search by position number",3,"ngModelChange","input","ngModel"],["matSuffix",""],["matInput","","placeholder","Search by position title",3,"ngModelChange","input","ngModel"],["matInput","","placeholder","Search by department",3,"ngModelChange","input","ngModel"],["mat-stroked-button","",2,"height","56px",3,"click"],[1,"table-container"],["class","loading-spinner",4,"ngIf"],["mat-table","","matSort","","class","position-table",3,"dataSource","matSortChange",4,"ngIf"],["showFirstLastButtons","",3,"page","length","pageSize","pageSizeOptions","pageIndex"],[1,"nl-search-card"],[2,"vertical-align","middle","margin-right","8px"],["appearance","outline",2,"width","100%"],["matInput","","placeholder","e.g. senior software engineer in finance with high salary",3,"input","value"],["style","display: flex; align-items: center; gap: 8px; margin-top: 8px;",4,"ngIf"],["class","nl-error",4,"ngIf"],[4,"ngIf"],[2,"display","flex","align-items","center","gap","8px","margin-top","8px"],["diameter","20"],[1,"nl-error"],[2,"display","flex","justify-content","space-between","align-items","center","margin-bottom","8px"],[1,"nl-parsed-hint"],["mat-stroked-button","",3,"click"],["mat-table","",1,"position-table",2,"width","100%",3,"dataSource"],["matColumnDef","score"],["mat-header-cell","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","positionNumber"],["matColumnDef","positionTitle"],["matColumnDef","departmentName"],["matColumnDef","salaryRangeName"],["mat-header-row","",4,"matHeaderRowDef"],["mat-row","",4,"matRowDef","matRowDefColumns"],["mat-header-cell",""],["mat-cell",""],["mat-header-row",""],["mat-row",""],["mat-raised-button","","color","primary",3,"click"],["mat-stroked-button","","color","accent",2,"margin-left","8px",3,"click"],[1,"loading-spinner"],["mat-table","","matSort","",1,"position-table",3,"matSortChange","dataSource"],["mat-header-cell","","mat-sort-header","",4,"matHeaderCellDef"],["matColumnDef","departmentId"],["matColumnDef","salaryRangeId"],["matColumnDef","actions"],["mat-header-cell","","class","mat-column-actions",4,"matHeaderCellDef"],["mat-cell","","class","mat-column-actions",4,"matCellDef"],["class","mat-row",4,"matNoDataRow"],["mat-header-cell","","mat-sort-header",""],["mat-header-cell","",1,"mat-column-actions"],["mat-cell","",1,"mat-column-actions"],[1,"action-buttons"],["mat-icon-button","","color","primary","matTooltip","View Details",3,"click"],["mat-icon-button","","color","accent","matTooltip","Edit Position",3,"click",4,"appHasRole"],["mat-icon-button","","color","warn","matTooltip","Delete Position",3,"click",4,"appHasRole"],["mat-icon-button","","color","accent","matTooltip","Edit Position",3,"click"],["mat-icon-button","","color","warn","matTooltip","Delete Position",3,"click"],[1,"mat-row"],[1,"mat-cell"],[1,"no-data"]],template:function(r,o){r&1&&(M(0,"page-header"),A(1,Lve,17,4,"mat-card",1),m(2,"mat-card")(3,"mat-card-header")(4,"mat-card-title"),g(5,"Positions"),h(),M(6,"span",2),A(7,Vve,4,0,"button",3)(8,Bve,4,0,"button",4),h(),m(9,"mat-card-content")(10,"div",5)(11,"mat-form-field",6)(12,"mat-label"),g(13,"Position Number"),h(),m(14,"input",7),Nr("ngModelChange",function(s){return Zr(o.searchPositionNumber,s)||(o.searchPositionNumber=s),s}),S("input",function(){return o.onSearch()}),h(),m(15,"mat-icon",8),g(16,"search"),h()(),m(17,"mat-form-field",6)(18,"mat-label"),g(19,"Position Title"),h(),m(20,"input",9),Nr("ngModelChange",function(s){return Zr(o.searchPositionTitle,s)||(o.searchPositionTitle=s),s}),S("input",function(){return o.onSearch()}),h(),m(21,"mat-icon",8),g(22,"search"),h()(),m(23,"mat-form-field",6)(24,"mat-label"),g(25,"Department"),h(),m(26,"input",10),Nr("ngModelChange",function(s){return Zr(o.searchDepartment,s)||(o.searchDepartment=s),s}),S("input",function(){return o.onSearch()}),h(),m(27,"mat-icon",8),g(28,"search"),h()(),m(29,"button",11),S("click",function(){return o.clearFilters()}),m(30,"mat-icon"),g(31,"clear"),h(),g(32," Clear Filters "),h()(),m(33,"div",12),A(34,jve,2,0,"div",13)(35,iye,19,3,"table",14),h(),m(36,"mat-paginator",15),S("page",function(s){return o.onPageChange(s)}),h()()()),r&2&&(f(),v("ngIf",o.aiEnabled),f(6),v("appHasRole",rt(12,tU)),f(),v("appHasRole",rt(13,iU)),f(6),Fr("ngModel",o.searchPositionNumber),f(6),Fr("ngModel",o.searchPositionTitle),f(6),Fr("ngModel",o.searchDepartment),f(8),v("ngIf",o.loading),f(),v("ngIf",!o.loading),f(),v("length",o.totalCount)("pageSize",o.pageSize)("pageSizeOptions",o.pageSizeOptions)("pageIndex",o.pageNumber-1))},dependencies:[ut,Jt,Be,Mt,Yt,Ut,Ht,zt,Gt,Wt,tt,st,id,Gc,Yc,Xc,Qc,qc,Jc,Kc,Zc,ed,td,xw,vc,or,Iw,kl,Tw,gi,fi,$r,Ao,Tn,Pi,Ci,Gi,hl,Mn,en,_i,pl,Hi,qt,pu,Qt,Wn,jd],styles:["mat-card[_ngcontent-%COMP%]{margin:16px}.nl-search-card[_ngcontent-%COMP%]{margin:16px 16px 0}.nl-search-card[_ngcontent-%COMP%] mat-card-title[_ngcontent-%COMP%]{display:flex;align-items:center;font-size:18px}.nl-parsed-hint[_ngcontent-%COMP%]{font-size:13px;color:#0000008a}.nl-error[_ngcontent-%COMP%]{color:#f44336;font-size:13px;margin-top:8px}mat-card-header[_ngcontent-%COMP%]{display:flex;align-items:center;margin-bottom:16px;padding:16px;border-bottom:1px solid rgba(0,0,0,.12)}mat-card-header[_ngcontent-%COMP%] mat-card-title[_ngcontent-%COMP%]{font-size:20px;font-weight:500;margin:0}mat-card-header[_ngcontent-%COMP%] .flex-spacer[_ngcontent-%COMP%]{flex:1 1 auto}mat-card-header[_ngcontent-%COMP%] button[_ngcontent-%COMP%] mat-icon[_ngcontent-%COMP%]{margin-right:4px}mat-card-content[_ngcontent-%COMP%]{padding:0}.table-container[_ngcontent-%COMP%]{position:relative;min-height:300px;overflow-x:auto}.loading-spinner[_ngcontent-%COMP%]{display:flex;justify-content:center;align-items:center;min-height:300px}.position-table[_ngcontent-%COMP%]{width:100%}.position-table[_ngcontent-%COMP%] th[_ngcontent-%COMP%]{font-weight:600;font-size:14px;color:#000000de}.position-table[_ngcontent-%COMP%] td[_ngcontent-%COMP%]{font-size:14px;color:#000000de}.position-table[_ngcontent-%COMP%] .mat-column-positionNumber[_ngcontent-%COMP%]{min-width:150px}.position-table[_ngcontent-%COMP%] .mat-column-positionTitle[_ngcontent-%COMP%]{min-width:200px}.position-table[_ngcontent-%COMP%] .mat-column-departmentId[_ngcontent-%COMP%], .position-table[_ngcontent-%COMP%] .mat-column-salaryRangeId[_ngcontent-%COMP%]{min-width:150px}.position-table[_ngcontent-%COMP%] .mat-column-actions[_ngcontent-%COMP%]{width:150px;text-align:right}.position-table[_ngcontent-%COMP%] .action-buttons[_ngcontent-%COMP%]{display:flex;justify-content:flex-end;gap:4px}.position-table[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{margin-left:4px}.no-data[_ngcontent-%COMP%]{display:flex;flex-direction:column;align-items:center;justify-content:center;padding:48px 16px;color:#0000008a}.no-data[_ngcontent-%COMP%] mat-icon[_ngcontent-%COMP%]{font-size:48px;width:48px;height:48px;margin-bottom:16px}.no-data[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{margin:0;font-size:16px}mat-paginator[_ngcontent-%COMP%]{border-top:1px solid rgba(0,0,0,.12)}"]});let t=n;return t})();var rU=()=>["HRAdmin","Manager"];function nye(t,n){t&1&&(m(0,"div",2),M(1,"mat-spinner"),h())}function rye(t,n){if(t&1){let e=q();m(0,"button",9),S("click",function(){T(e);let r=x(2);return I(r.editPosition())}),m(1,"mat-icon"),g(2,"edit"),h()()}}function oye(t,n){if(t&1){let e=q();m(0,"button",10),S("click",function(){T(e);let r=x(2);return I(r.deletePosition())}),m(1,"mat-icon"),g(2,"delete"),h()()}}function aye(t,n){if(t&1&&(m(0,"mat-list-item")(1,"span",7),g(2,"Description:"),h(),m(3,"span",8),g(4),h()()),t&2){let e=x(2);f(4),N(e.position.positionDescription)}}function sye(t,n){t&1&&M(0,"mat-divider")}function lye(t,n){if(t&1&&(m(0,"mat-list-item")(1,"span",7),g(2,"Created:"),h(),m(3,"span",8),g(4),ue(5,"date"),h()()),t&2){let e=x(2);f(4),N(Ei(5,1,e.position.createdAt,"medium"))}}function cye(t,n){t&1&&M(0,"mat-divider")}function dye(t,n){if(t&1&&(m(0,"mat-list-item")(1,"span",7),g(2,"Last Modified:"),h(),m(3,"span",8),g(4),ue(5,"date"),h()()),t&2){let e=x(2);f(4),N(Ei(5,1,e.position.lastModifiedAt,"medium"))}}function uye(t,n){if(t&1){let e=q();m(0,"mat-card")(1,"mat-card-header")(2,"mat-card-title"),g(3),h(),m(4,"div",3),A(5,rye,3,0,"button",4)(6,oye,3,0,"button",5),m(7,"button",6),S("click",function(){T(e);let r=x();return I(r.goBack())}),m(8,"mat-icon"),g(9,"arrow_back"),h()()()(),m(10,"mat-card-content")(11,"mat-list")(12,"mat-list-item")(13,"span",7),g(14,"Position Number:"),h(),m(15,"span",8),g(16),h()(),M(17,"mat-divider"),m(18,"mat-list-item")(19,"span",7),g(20,"Position Title:"),h(),m(21,"span",8),g(22),h()(),M(23,"mat-divider"),A(24,aye,5,1,"mat-list-item",1)(25,sye,1,0,"mat-divider",1),m(26,"mat-list-item")(27,"span",7),g(28,"Department:"),h(),m(29,"span",8),g(30),h()(),M(31,"mat-divider"),m(32,"mat-list-item")(33,"span",7),g(34,"Salary Range:"),h(),m(35,"span",8),g(36),h()(),M(37,"mat-divider"),A(38,lye,6,4,"mat-list-item",1)(39,cye,1,0,"mat-divider",1)(40,dye,6,4,"mat-list-item",1),h()()()}if(t&2){let e=x();f(3),N(e.position.positionTitle),f(2),v("appHasRole",rt(12,rU)),f(),v("appHasRole",rt(13,rU)),f(10),N(e.position.positionNumber),f(6),N(e.position.positionTitle),f(2),v("ngIf",e.position.positionDescription),f(),v("ngIf",e.position.positionDescription),f(5),N((e.position.department==null?null:e.position.department.name)||e.position.departmentId),f(6),N((e.position.salaryRange==null?null:e.position.salaryRange.name)||e.position.salaryRangeId),f(2),v("ngIf",e.position.createdAt),f(),v("ngIf",e.position.createdAt),f(),v("ngIf",e.position.lastModifiedAt)}}function mye(t,n){t&1&&(m(0,"mat-card")(1,"mat-card-content")(2,"p"),g(3,"Position not found."),h()()())}var oU=(()=>{let n=class n{constructor(){this.positionService=u($c),this.authService=u(Ot),this.route=u(Si),this.router=u(Re),this.snackBar=u(ui),this.dialog=u(kn),this.loading=!1}ngOnInit(){let i=this.route.snapshot.paramMap.get("id");i&&this.loadPosition(i)}loadPosition(i){this.loading=!0,this.positionService.getById(i).subscribe({next:r=>{this.position=r,this.loading=!1},error:r=>{console.error("Error loading position:",r),this.showMessage("Error loading position"),this.loading=!1,this.router.navigate(["/positions"])}})}editPosition(){this.router.navigate(["/positions","edit",this.position.id])}deletePosition(){this.dialog.open(Tr,{width:"400px",data:{title:"Delete Position",message:`Are you sure you want to delete "${this.position.positionTitle}"? This action cannot be undone.`,confirmText:"Delete",cancelText:"Cancel"}}).afterClosed().subscribe(r=>{r&&this.positionService.delete(this.position.id).subscribe({next:()=>{let o=this.snackBar.open(`"${this.position.positionTitle}" has been deleted.`,"Close",{duration:3e3,horizontalPosition:"end",verticalPosition:"top"});o.afterDismissed().subscribe(()=>this.router.navigate(["/positions"])),o.onAction().subscribe(()=>this.router.navigate(["/positions"]))},error:o=>{console.error("Error deleting position:",o),this.showMessage("Failed to delete position. Please try again.")}})})}goBack(){this.router.navigate(["/positions"])}canEdit(){return this.authService.isHRAdmin()||this.authService.isManager()}canDelete(){return this.authService.isHRAdmin()||this.authService.isManager()}showMessage(i){this.snackBar.open(i,"Close",{duration:3e3,horizontalPosition:"end",verticalPosition:"top"})}};n.\u0275fac=function(r){return new(r||n)},n.\u0275cmp=E({type:n,selectors:[["app-position-detail"]],decls:4,vars:3,consts:[["class","loading-spinner",4,"ngIf"],[4,"ngIf"],[1,"loading-spinner"],[1,"header-actions"],["mat-icon-button","","color","primary","matTooltip","Edit Position",3,"click",4,"appHasRole"],["mat-icon-button","","color","warn","matTooltip","Delete Position",3,"click",4,"appHasRole"],["mat-icon-button","","matTooltip","Back to List",3,"click"],[1,"label"],[1,"value"],["mat-icon-button","","color","primary","matTooltip","Edit Position",3,"click"],["mat-icon-button","","color","warn","matTooltip","Delete Position",3,"click"]],template:function(r,o){r&1&&(M(0,"page-header"),A(1,nye,2,0,"div",0)(2,uye,41,14,"mat-card",1)(3,mye,4,0,"mat-card",1)),r&2&&(f(),v("ngIf",o.loading),f(),v("ngIf",!o.loading&&o.position),f(),v("ngIf",!o.loading&&!o.position))},dependencies:[ut,Jt,Be,Yt,Ut,Ht,zt,Gt,Wt,tt,st,ua,Ns,da,Po,ho,gi,fi,_i,Tn,Qt,Wn,Ta],styles:[".loading-spinner[_ngcontent-%COMP%]{display:flex;justify-content:center;align-items:center;min-height:400px}mat-card[_ngcontent-%COMP%]{margin:16px;max-width:800px}mat-card-header[_ngcontent-%COMP%]{padding:16px;border-bottom:1px solid rgba(0,0,0,.12);display:flex;justify-content:space-between;align-items:center}mat-card-header[_ngcontent-%COMP%] mat-card-title[_ngcontent-%COMP%]{font-size:24px;font-weight:500;margin:0}mat-card-header[_ngcontent-%COMP%] .header-actions[_ngcontent-%COMP%]{display:flex;gap:8px}mat-card-content[_ngcontent-%COMP%]{padding:0}mat-list[_ngcontent-%COMP%]{padding:0}mat-list-item[_ngcontent-%COMP%]{height:auto!important;min-height:48px;padding:12px 16px;display:flex;justify-content:space-between;align-items:flex-start}mat-list-item[_ngcontent-%COMP%] .label[_ngcontent-%COMP%]{font-weight:500;color:#0009;min-width:180px}mat-list-item[_ngcontent-%COMP%] .value[_ngcontent-%COMP%]{flex:1;text-align:right;word-break:break-word}"]});let t=n;return t})();function hye(t,n){t&1&&(m(0,"div",0),M(1,"mat-spinner"),h())}function pye(t,n){t&1&&(m(0,"mat-error"),g(1," Position title is required "),h())}function fye(t,n){t&1&&(m(0,"mat-error"),g(1," Position title cannot exceed 100 characters "),h())}function gye(t,n){t&1&&(m(0,"mat-error"),g(1," Position number is required "),h())}function _ye(t,n){t&1&&(m(0,"mat-error"),g(1," Position number cannot exceed 50 characters "),h())}function bye(t,n){t&1&&(m(0,"mat-error"),g(1," Position description cannot exceed 500 characters "),h())}function vye(t,n){if(t&1&&(m(0,"mat-option",14),g(1),h()),t&2){let e=n.$implicit;v("value",e.id),f(),pe(" ",e.name," ")}}function yye(t,n){t&1&&(m(0,"mat-error"),g(1," Department is required "),h())}function xye(t,n){if(t&1&&(m(0,"mat-option",14),g(1),ue(2,"number"),ue(3,"number"),h()),t&2){let e=n.$implicit;v("value",e.id),f(),Sm(" ",e.name," ($",Ei(2,4,e.minSalary,"1.0-0")," - $",Ei(3,7,e.maxSalary,"1.0-0"),") ")}}function Cye(t,n){t&1&&(m(0,"mat-error"),g(1," Salary range is required "),h())}var mA=(()=>{let n=class n{constructor(){this.fb=u(ro),this.router=u(Re),this.route=u(Si),this.snackBar=u(ui),this.positionService=u($c),this.departmentService=u(Bs),this.salaryRangeService=u(Wc),this.loading=!1,this.isEditMode=!1,this.departments=[],this.salaryRanges=[]}ngOnInit(){this.initForm(),this.loadDepartments(),this.loadSalaryRanges(),this.checkEditMode()}initForm(){this.positionForm=this.fb.group({positionTitle:["",[Le.required,Le.maxLength(100)]],positionNumber:["",[Le.required,Le.maxLength(50)]],positionDescription:["",[Le.maxLength(500)]],departmentId:["",Le.required],salaryRangeId:["",Le.required]})}loadDepartments(){this.departmentService.getAll().subscribe({next:i=>{this.departments=i},error:i=>{console.error("Error loading departments:",i),this.showMessage("Error loading departments")}})}loadSalaryRanges(){this.salaryRangeService.getAll().subscribe({next:i=>{this.salaryRanges=i},error:i=>{console.error("Error loading salary ranges:",i),this.showMessage("Error loading salary ranges")}})}checkEditMode(){this.positionId=this.route.snapshot.paramMap.get("id")||void 0,this.isEditMode=!!this.positionId,this.isEditMode&&this.positionId&&this.loadPosition(this.positionId)}loadPosition(i){this.loading=!0,this.positionService.getById(i).subscribe({next:r=>{this.positionForm.patchValue({positionTitle:r.positionTitle,positionNumber:r.positionNumber,positionDescription:r.positionDescription,departmentId:r.departmentId,salaryRangeId:r.salaryRangeId}),this.loading=!1},error:r=>{console.error("Error loading position:",r),this.showMessage("Error loading position"),this.loading=!1}})}onSubmit(){if(this.positionForm.invalid){this.positionForm.markAllAsTouched();return}if(this.loading=!0,this.isEditMode&&this.positionId){let i=k({id:this.positionId},this.positionForm.value);this.positionService.updatePosition(i).subscribe({next:()=>{this.showMessage("Position updated successfully"),this.router.navigate(["/positions",this.positionId])},error:r=>{console.error("Error updating position:",r),this.showMessage("Error updating position"),this.loading=!1}})}else{let i=this.positionForm.value;this.positionService.createPosition(i).subscribe({next:r=>{console.log("Position created - Response:",r),console.log("Position ID:",r?.id),this.showMessage("Position created successfully"),r?.id?(console.log("Navigating to detail page:","/positions/"+r.id),this.router.navigate(["/positions",r.id])):(console.warn("No position ID returned, navigating to list page"),this.router.navigate(["/positions"])),this.loading=!1},error:r=>{console.error("Error creating position:",r),this.showMessage("Error creating position"),this.loading=!1}})}}onCancel(){this.router.navigate(["/positions"])}showMessage(i){this.snackBar.open(i,"Close",{duration:3e3,horizontalPosition:"end",verticalPosition:"top"})}getFormTitle(){return this.isEditMode?"Edit Position":"Create Position"}};n.\u0275fac=function(r){return new(r||n)},n.\u0275cmp=E({type:n,selectors:[["app-position-form"]],decls:43,vars:14,consts:[[1,"loading-overlay"],[3,"ngSubmit","formGroup"],[1,"form-section"],["appearance","outline",1,"full-width"],["matInput","","formControlName","positionTitle"],[4,"ngIf"],["matInput","","formControlName","positionNumber"],["matInput","","formControlName","positionDescription","rows","4"],["formControlName","departmentId"],[3,"value",4,"ngFor","ngForOf"],["formControlName","salaryRangeId"],[1,"form-actions"],["type","button","mat-stroked-button","",3,"click"],["type","submit","mat-raised-button","","color","primary",3,"disabled"],[3,"value"]],template:function(r,o){if(r&1&&(M(0,"page-header"),m(1,"mat-card")(2,"mat-card-header")(3,"mat-card-title"),g(4),h()(),m(5,"mat-card-content"),V(6,hye,2,0,"div",0),m(7,"form",1),S("ngSubmit",function(){return o.onSubmit()}),m(8,"div",2)(9,"mat-form-field",3)(10,"mat-label"),g(11,"Position Title"),h(),M(12,"input",4),A(13,pye,2,0,"mat-error",5)(14,fye,2,0,"mat-error",5),h(),m(15,"mat-form-field",3)(16,"mat-label"),g(17,"Position Number"),h(),M(18,"input",6),A(19,gye,2,0,"mat-error",5)(20,_ye,2,0,"mat-error",5),h(),m(21,"mat-form-field",3)(22,"mat-label"),g(23,"Position Description"),h(),M(24,"textarea",7),A(25,bye,2,0,"mat-error",5),h(),m(26,"mat-form-field",3)(27,"mat-label"),g(28,"Department"),h(),m(29,"mat-select",8),A(30,vye,2,2,"mat-option",9),h(),A(31,yye,2,0,"mat-error",5),h(),m(32,"mat-form-field",3)(33,"mat-label"),g(34,"Salary Range"),h(),m(35,"mat-select",10),A(36,xye,4,10,"mat-option",9),h(),A(37,Cye,2,0,"mat-error",5),h()(),m(38,"div",11)(39,"button",12),S("click",function(){return o.onCancel()}),g(40," Cancel "),h(),m(41,"button",13),g(42),h()()()()()),r&2){let a,s,l,c,d,p,_;f(4),N(o.getFormTitle()),f(2),B(o.loading?6:-1),f(),v("formGroup",o.positionForm),f(6),v("ngIf",(a=o.positionForm.get("positionTitle"))==null?null:a.hasError("required")),f(),v("ngIf",(s=o.positionForm.get("positionTitle"))==null?null:s.hasError("maxlength")),f(5),v("ngIf",(l=o.positionForm.get("positionNumber"))==null?null:l.hasError("required")),f(),v("ngIf",(c=o.positionForm.get("positionNumber"))==null?null:c.hasError("maxlength")),f(5),v("ngIf",(d=o.positionForm.get("positionDescription"))==null?null:d.hasError("maxlength")),f(5),v("ngForOf",o.departments),f(),v("ngIf",(p=o.positionForm.get("departmentId"))==null?null:p.hasError("required")),f(5),v("ngForOf",o.salaryRanges),f(),v("ngIf",(_=o.positionForm.get("salaryRangeId"))==null?null:_.hasError("required")),f(4),v("disabled",o.loading),f(),pe(" ",o.isEditMode?"Update":"Create"," ")}},dependencies:[ut,vr,Jt,$n,no,Hi,qt,io,Ji,Ur,Be,Mt,Ut,Ht,zt,Gt,Wt,Pi,Ci,Gi,So,Mn,en,_c,La,wn,gi,fi,_i,Qt,jd],styles:["mat-card[_ngcontent-%COMP%]{margin:16px;max-width:800px}mat-card-header[_ngcontent-%COMP%]{margin-bottom:16px;padding:16px;border-bottom:1px solid rgba(0,0,0,.12)}mat-card-header[_ngcontent-%COMP%] mat-card-title[_ngcontent-%COMP%]{font-size:20px;font-weight:500;margin:0}mat-card-content[_ngcontent-%COMP%]{padding:16px;position:relative}.loading-overlay[_ngcontent-%COMP%]{position:absolute;inset:0;background-color:#fffc;display:flex;align-items:center;justify-content:center;z-index:1000}.form-section[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:16px;margin-bottom:24px}.form-section[_ngcontent-%COMP%] .full-width[_ngcontent-%COMP%]{width:100%}.form-actions[_ngcontent-%COMP%]{display:flex;gap:12px;justify-content:flex-end;padding-top:16px;border-top:1px solid rgba(0,0,0,.12)}"]});let t=n;return t})();var aU=()=>["HRAdmin","Manager"],wye=()=>[5,10,25,50],Dye=()=>["HRAdmin"];function Eye(t,n){if(t&1){let e=q();m(0,"button",6),S("click",function(){T(e);let r=x();return I(r.createSalaryRange())}),m(1,"mat-icon"),g(2,"add"),h(),g(3," Add Salary Range "),h()}}function Mye(t,n){t&1&&(m(0,"div",7),M(1,"mat-spinner"),h())}function Sye(t,n){t&1&&(m(0,"th",20),g(1,"Range Name"),h())}function kye(t,n){if(t&1&&(m(0,"td",21),g(1),h()),t&2){let e=n.$implicit;f(),N(e.name)}}function Tye(t,n){t&1&&(m(0,"th",20),g(1,"Minimum Salary"),h())}function Iye(t,n){if(t&1&&(m(0,"td",21),g(1),ue(2,"currency"),h()),t&2){let e=n.$implicit;f(),N(Tm(2,1,e.minSalary,"USD","symbol","1.0-0"))}}function Aye(t,n){t&1&&(m(0,"th",20),g(1,"Maximum Salary"),h())}function Oye(t,n){if(t&1&&(m(0,"td",21),g(1),ue(2,"currency"),h()),t&2){let e=n.$implicit;f(),N(Tm(2,1,e.maxSalary,"USD","symbol","1.0-0"))}}function Rye(t,n){t&1&&(m(0,"th",22),g(1,"Actions"),h())}function Pye(t,n){if(t&1){let e=q();m(0,"button",28),S("click",function(){T(e);let r=x().$implicit,o=x(2);return I(o.editSalaryRange(r))}),m(1,"mat-icon"),g(2,"edit"),h()()}}function Fye(t,n){if(t&1){let e=q();m(0,"button",29),S("click",function(){T(e);let r=x().$implicit,o=x(2);return I(o.deleteSalaryRange(r))}),m(1,"mat-icon"),g(2,"delete"),h()()}}function Nye(t,n){if(t&1){let e=q();m(0,"td",23)(1,"div",24)(2,"button",25),S("click",function(){let r=T(e).$implicit,o=x(2);return I(o.viewSalaryRange(r))}),m(3,"mat-icon"),g(4,"visibility"),h()(),A(5,Pye,3,0,"button",26)(6,Fye,3,0,"button",27),h()()}t&2&&(f(5),v("appHasRole",rt(2,aU)),f(),v("appHasRole",rt(3,Dye)))}function Lye(t,n){t&1&&M(0,"tr",30)}function Vye(t,n){t&1&&M(0,"tr",31)}function Bye(t,n){if(t&1&&(m(0,"tr",32)(1,"td",33)(2,"div",34)(3,"mat-icon"),g(4,"money_off"),h(),m(5,"p"),g(6,"No salary ranges found"),h()()()()),t&2){let e=x(2);f(),X("colspan",e.displayedColumns.length)}}function jye(t,n){if(t&1&&(m(0,"table",8),kt(1,9),A(2,Sye,2,0,"th",10)(3,kye,2,1,"td",11),Dt(),kt(4,12),A(5,Tye,2,0,"th",10)(6,Iye,3,6,"td",11),Dt(),kt(7,13),A(8,Aye,2,0,"th",10)(9,Oye,3,6,"td",11),Dt(),kt(10,14),A(11,Rye,2,0,"th",15)(12,Nye,7,4,"td",16),Dt(),A(13,Lye,1,0,"tr",17)(14,Vye,1,0,"tr",18)(15,Bye,7,1,"tr",19),h()),t&2){let e=x();v("dataSource",e.dataSource),f(13),v("matHeaderRowDef",e.displayedColumns),f(),v("matRowDefColumns",e.displayedColumns)}}var sU=(()=>{let n=class n{constructor(){this.salaryRangeService=u(Wc),this.authService=u(Ot),this.router=u(Re),this.snackBar=u(ui),this.dialog=u(kn),this.dataSource=new yw([]),this.loading=!1,this.displayedColumns=["name","minSalary","maxSalary","actions"]}ngOnInit(){this.loadSalaryRanges()}ngAfterViewInit(){this.dataSource.paginator=this.paginator,this.dataSource.sort=this.sort}loadSalaryRanges(){this.loading=!0,this.salaryRangeService.getAll().subscribe({next:i=>{this.dataSource.data=i,this.loading=!1},error:i=>{console.error("Error loading salary ranges:",i),this.loading=!1}})}createSalaryRange(){this.router.navigate(["/salary-ranges/create"])}viewSalaryRange(i){this.router.navigate(["/salary-ranges",i.id])}editSalaryRange(i){this.router.navigate(["/salary-ranges/edit",i.id])}deleteSalaryRange(i){this.dialog.open(Tr,{width:"400px",data:{title:"Delete Salary Range",message:`Are you sure you want to delete "${i.name}"? This action cannot be undone.`,confirmText:"Delete",cancelText:"Cancel"}}).afterClosed().subscribe(o=>{o&&this.salaryRangeService.delete(i.id).subscribe({next:()=>{this.showMessage(`"${i.name}" has been deleted.`),this.loadSalaryRanges()},error:a=>{console.error("Error deleting salary range:",a),this.showMessage("Failed to delete salary range. Please try again.")}})})}showMessage(i){this.snackBar.open(i,"Close",{duration:3e3,horizontalPosition:"end",verticalPosition:"top"})}canEdit(){return this.authService.hasRole("HRAdmin")||this.authService.hasRole("Manager")}};n.\u0275fac=function(r){return new(r||n)},n.\u0275cmp=E({type:n,selectors:[["app-salary-range-list"]],viewQuery:function(r,o){if(r&1&&(ie(or,5),ie(kl,5)),r&2){let a;j(a=H())&&(o.paginator=a.first),j(a=H())&&(o.sort=a.first)}},decls:12,vars:6,consts:[[1,"flex-spacer"],["mat-raised-button","","color","primary",3,"click",4,"appHasRole"],[1,"table-container"],["class","loading-spinner",4,"ngIf"],["mat-table","","matSort","","class","salary-range-table",3,"dataSource",4,"ngIf"],["showFirstLastButtons","",3,"pageSizeOptions"],["mat-raised-button","","color","primary",3,"click"],[1,"loading-spinner"],["mat-table","","matSort","",1,"salary-range-table",3,"dataSource"],["matColumnDef","name"],["mat-header-cell","","mat-sort-header","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","minSalary"],["matColumnDef","maxSalary"],["matColumnDef","actions"],["mat-header-cell","","class","mat-column-actions",4,"matHeaderCellDef"],["mat-cell","","class","mat-column-actions",4,"matCellDef"],["mat-header-row","",4,"matHeaderRowDef"],["mat-row","",4,"matRowDef","matRowDefColumns"],["class","mat-row",4,"matNoDataRow"],["mat-header-cell","","mat-sort-header",""],["mat-cell",""],["mat-header-cell","",1,"mat-column-actions"],["mat-cell","",1,"mat-column-actions"],[1,"action-buttons"],["mat-icon-button","","color","primary","matTooltip","View Details",3,"click"],["mat-icon-button","","color","accent","matTooltip","Edit Salary Range",3,"click",4,"appHasRole"],["mat-icon-button","","color","warn","matTooltip","Delete Salary Range",3,"click",4,"appHasRole"],["mat-icon-button","","color","accent","matTooltip","Edit Salary Range",3,"click"],["mat-icon-button","","color","warn","matTooltip","Delete Salary Range",3,"click"],["mat-header-row",""],["mat-row",""],[1,"mat-row"],[1,"mat-cell"],[1,"no-data"]],template:function(r,o){r&1&&(M(0,"page-header"),m(1,"mat-card")(2,"mat-card-header")(3,"mat-card-title"),g(4,"Salary Ranges"),h(),M(5,"span",0),A(6,Eye,4,0,"button",1),h(),m(7,"mat-card-content")(8,"div",2),A(9,Mye,2,0,"div",3)(10,jye,16,3,"table",4),h(),M(11,"mat-paginator",5),h()()),r&2&&(f(6),v("appHasRole",rt(4,aU)),f(3),v("ngIf",o.loading),f(),v("ngIf",!o.loading),f(),v("pageSizeOptions",rt(5,wye)))},dependencies:[ut,Jt,Be,Mt,Yt,Ut,Ht,zt,Gt,Wt,tt,st,id,Gc,Yc,Xc,Qc,qc,Jc,Kc,Zc,ed,td,xw,vc,or,Iw,kl,Tw,gi,fi,$r,Ao,_i,Tn,Qt,Wn,nl],styles:["mat-card[_ngcontent-%COMP%]{margin:16px}mat-card-header[_ngcontent-%COMP%]{display:flex;align-items:center;margin-bottom:16px;padding:16px;border-bottom:1px solid rgba(0,0,0,.12)}mat-card-header[_ngcontent-%COMP%] mat-card-title[_ngcontent-%COMP%]{font-size:20px;font-weight:500;margin:0}mat-card-header[_ngcontent-%COMP%] .flex-spacer[_ngcontent-%COMP%]{flex:1 1 auto}mat-card-header[_ngcontent-%COMP%] button[_ngcontent-%COMP%] mat-icon[_ngcontent-%COMP%]{margin-right:4px}mat-card-content[_ngcontent-%COMP%]{padding:0}.table-container[_ngcontent-%COMP%]{position:relative;min-height:300px;overflow-x:auto}.loading-spinner[_ngcontent-%COMP%]{display:flex;justify-content:center;align-items:center;min-height:300px}.salary-range-table[_ngcontent-%COMP%]{width:100%}.salary-range-table[_ngcontent-%COMP%] th[_ngcontent-%COMP%]{font-weight:600;font-size:14px;color:#000000de}.salary-range-table[_ngcontent-%COMP%] td[_ngcontent-%COMP%]{font-size:14px;color:#000000de}.salary-range-table[_ngcontent-%COMP%] .mat-column-name[_ngcontent-%COMP%]{min-width:200px}.salary-range-table[_ngcontent-%COMP%] .mat-column-minSalary[_ngcontent-%COMP%], .salary-range-table[_ngcontent-%COMP%] .mat-column-maxSalary[_ngcontent-%COMP%]{min-width:150px}.salary-range-table[_ngcontent-%COMP%] .mat-column-actions[_ngcontent-%COMP%]{width:150px;text-align:right}.salary-range-table[_ngcontent-%COMP%] .action-buttons[_ngcontent-%COMP%]{display:flex;justify-content:flex-end;gap:4px}.salary-range-table[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{margin-left:4px}.no-data[_ngcontent-%COMP%]{display:flex;flex-direction:column;align-items:center;justify-content:center;padding:48px 16px;color:#0000008a}.no-data[_ngcontent-%COMP%] mat-icon[_ngcontent-%COMP%]{font-size:48px;width:48px;height:48px;margin-bottom:16px}.no-data[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{margin:0;font-size:16px}mat-paginator[_ngcontent-%COMP%]{border-top:1px solid rgba(0,0,0,.12)}"]});let t=n;return t})();var lU=()=>["HRAdmin","Manager"];function Hye(t,n){t&1&&(m(0,"div",2),M(1,"mat-spinner"),h())}function zye(t,n){if(t&1){let e=q();m(0,"button",9),S("click",function(){T(e);let r=x(2);return I(r.editSalaryRange())}),m(1,"mat-icon"),g(2,"edit"),h()()}}function Uye(t,n){if(t&1){let e=q();m(0,"button",10),S("click",function(){T(e);let r=x(2);return I(r.deleteSalaryRange())}),m(1,"mat-icon"),g(2,"delete"),h()()}}function $ye(t,n){if(t&1&&(m(0,"mat-list-item")(1,"span",7),g(2,"Created:"),h(),m(3,"span",8),g(4),ue(5,"date"),h()()),t&2){let e=x(2);f(4),N(Ei(5,1,e.salaryRange.createdAt,"medium"))}}function Wye(t,n){t&1&&M(0,"mat-divider")}function Gye(t,n){if(t&1&&(m(0,"mat-list-item")(1,"span",7),g(2,"Last Modified:"),h(),m(3,"span",8),g(4),ue(5,"date"),h()()),t&2){let e=x(2);f(4),N(Ei(5,1,e.salaryRange.lastModifiedAt,"medium"))}}function qye(t,n){if(t&1){let e=q();m(0,"mat-card")(1,"mat-card-header")(2,"mat-card-title"),g(3),h(),m(4,"div",3),A(5,zye,3,0,"button",4)(6,Uye,3,0,"button",5),m(7,"button",6),S("click",function(){T(e);let r=x();return I(r.goBack())}),m(8,"mat-icon"),g(9,"arrow_back"),h()()()(),m(10,"mat-card-content")(11,"mat-list")(12,"mat-list-item")(13,"span",7),g(14,"Name:"),h(),m(15,"span",8),g(16),h()(),M(17,"mat-divider"),m(18,"mat-list-item")(19,"span",7),g(20,"Minimum Salary:"),h(),m(21,"span",8),g(22),ue(23,"currency"),h()(),M(24,"mat-divider"),m(25,"mat-list-item")(26,"span",7),g(27,"Maximum Salary:"),h(),m(28,"span",8),g(29),ue(30,"currency"),h()(),M(31,"mat-divider"),A(32,$ye,6,4,"mat-list-item",1)(33,Wye,1,0,"mat-divider",1)(34,Gye,6,4,"mat-list-item",1),h()()()}if(t&2){let e=x();f(3),N(e.salaryRange.name),f(2),v("appHasRole",rt(13,lU)),f(),v("appHasRole",rt(14,lU)),f(10),N(e.salaryRange.name),f(6),N(Oe(23,9,e.salaryRange.minSalary)),f(7),N(Oe(30,11,e.salaryRange.maxSalary)),f(3),v("ngIf",e.salaryRange.createdAt),f(),v("ngIf",e.salaryRange.createdAt),f(),v("ngIf",e.salaryRange.lastModifiedAt)}}function Yye(t,n){t&1&&(m(0,"mat-card")(1,"mat-card-content")(2,"p"),g(3,"Salary range not found."),h()()())}var cU=(()=>{let n=class n{constructor(){this.salaryRangeService=u(Wc),this.authService=u(Ot),this.route=u(Si),this.router=u(Re),this.snackBar=u(ui),this.dialog=u(kn),this.loading=!1}ngOnInit(){let i=this.route.snapshot.paramMap.get("id");i&&this.loadSalaryRange(i)}loadSalaryRange(i){this.loading=!0,this.salaryRangeService.getById(i).subscribe({next:r=>{this.salaryRange=r,this.loading=!1},error:r=>{console.error("Error loading salary range:",r),this.showMessage("Error loading salary range"),this.loading=!1,this.router.navigate(["/salary-ranges"])}})}editSalaryRange(){this.router.navigate(["/salary-ranges","edit",this.salaryRange.id])}deleteSalaryRange(){this.dialog.open(Tr,{width:"400px",data:{title:"Delete Salary Range",message:`Are you sure you want to delete "${this.salaryRange.name}"? This action cannot be undone.`,confirmText:"Delete",cancelText:"Cancel"}}).afterClosed().subscribe(r=>{r&&this.salaryRangeService.delete(this.salaryRange.id).subscribe({next:()=>{let o=this.snackBar.open(`"${this.salaryRange.name}" has been deleted.`,"Close",{duration:3e3,horizontalPosition:"end",verticalPosition:"top"});o.afterDismissed().subscribe(()=>this.router.navigate(["/salary-ranges"])),o.onAction().subscribe(()=>this.router.navigate(["/salary-ranges"]))},error:o=>{console.error("Error deleting salary range:",o),this.showMessage("Failed to delete salary range. Please try again.")}})})}goBack(){this.router.navigate(["/salary-ranges"])}canEdit(){return this.authService.isHRAdmin()||this.authService.isManager()}canDelete(){return this.authService.isHRAdmin()||this.authService.isManager()}showMessage(i){this.snackBar.open(i,"Close",{duration:3e3,horizontalPosition:"end",verticalPosition:"top"})}};n.\u0275fac=function(r){return new(r||n)},n.\u0275cmp=E({type:n,selectors:[["app-salary-range-detail"]],decls:4,vars:3,consts:[["class","loading-spinner",4,"ngIf"],[4,"ngIf"],[1,"loading-spinner"],[1,"header-actions"],["mat-icon-button","","color","primary","matTooltip","Edit Salary Range",3,"click",4,"appHasRole"],["mat-icon-button","","color","warn","matTooltip","Delete Salary Range",3,"click",4,"appHasRole"],["mat-icon-button","","matTooltip","Back to List",3,"click"],[1,"label"],[1,"value"],["mat-icon-button","","color","primary","matTooltip","Edit Salary Range",3,"click"],["mat-icon-button","","color","warn","matTooltip","Delete Salary Range",3,"click"]],template:function(r,o){r&1&&(M(0,"page-header"),A(1,Hye,2,0,"div",0)(2,qye,35,15,"mat-card",1)(3,Yye,4,0,"mat-card",1)),r&2&&(f(),v("ngIf",o.loading),f(),v("ngIf",!o.loading&&o.salaryRange),f(),v("ngIf",!o.loading&&!o.salaryRange))},dependencies:[ut,Jt,Be,Yt,Ut,Ht,zt,Gt,Wt,tt,st,ua,Ns,da,Po,ho,gi,fi,_i,Tn,Qt,Wn,nl,Ta],styles:[".loading-spinner[_ngcontent-%COMP%]{display:flex;justify-content:center;align-items:center;min-height:400px}mat-card[_ngcontent-%COMP%]{margin:16px;max-width:800px}mat-card-header[_ngcontent-%COMP%]{padding:16px;border-bottom:1px solid rgba(0,0,0,.12);display:flex;justify-content:space-between;align-items:center}mat-card-header[_ngcontent-%COMP%] mat-card-title[_ngcontent-%COMP%]{font-size:24px;font-weight:500;margin:0}mat-card-header[_ngcontent-%COMP%] .header-actions[_ngcontent-%COMP%]{display:flex;gap:8px}mat-card-content[_ngcontent-%COMP%]{padding:0}mat-list[_ngcontent-%COMP%]{padding:0}mat-list-item[_ngcontent-%COMP%]{height:auto!important;min-height:48px;padding:12px 16px;display:flex;justify-content:space-between;align-items:flex-start}mat-list-item[_ngcontent-%COMP%] .label[_ngcontent-%COMP%]{font-weight:500;color:#0009;min-width:180px}mat-list-item[_ngcontent-%COMP%] .value[_ngcontent-%COMP%]{flex:1;text-align:right;word-break:break-word}"]});let t=n;return t})();function Qye(t,n){t&1&&(m(0,"div",0),M(1,"mat-spinner"),h())}function Kye(t,n){t&1&&(m(0,"mat-error"),g(1," Range name is required "),h())}function Zye(t,n){t&1&&(m(0,"mat-error"),g(1," Range name cannot exceed 100 characters "),h())}function Xye(t,n){t&1&&(m(0,"mat-error"),g(1," Minimum salary is required "),h())}function Jye(t,n){t&1&&(m(0,"mat-error"),g(1," Minimum salary must be at least 0 "),h())}function exe(t,n){t&1&&(m(0,"mat-error"),g(1," Maximum salary is required "),h())}function txe(t,n){t&1&&(m(0,"mat-error"),g(1," Maximum salary must be at least 0 "),h())}function ixe(t,n){t&1&&(m(0,"mat-error",13),g(1," Maximum salary must be greater than minimum salary "),h())}var hA=(()=>{let n=class n{constructor(){this.fb=u(ro),this.router=u(Re),this.route=u(Si),this.snackBar=u(ui),this.salaryRangeService=u(Wc),this.loading=!1,this.isEditMode=!1}ngOnInit(){this.initForm(),this.checkEditMode()}initForm(){this.salaryRangeForm=this.fb.group({name:["",[Le.required,Le.maxLength(100)]],minSalary:["",[Le.required,Le.min(0)]],maxSalary:["",[Le.required,Le.min(0)]]},{validators:this.salaryRangeValidator})}salaryRangeValidator(i){let r=i.get("minSalary")?.value,o=i.get("maxSalary")?.value;return r&&o&&parseFloat(r)>=parseFloat(o)?{salaryRangeInvalid:!0}:null}checkEditMode(){this.salaryRangeId=this.route.snapshot.paramMap.get("id")||void 0,this.isEditMode=!!this.salaryRangeId,this.isEditMode&&this.salaryRangeId&&this.loadSalaryRange(this.salaryRangeId)}loadSalaryRange(i){this.loading=!0,this.salaryRangeService.getById(i).subscribe({next:r=>{this.salaryRangeForm.patchValue({name:r.name,minSalary:r.minSalary,maxSalary:r.maxSalary}),this.loading=!1},error:r=>{console.error("Error loading salary range:",r),this.showMessage("Error loading salary range"),this.loading=!1}})}onSubmit(){if(this.salaryRangeForm.invalid){this.salaryRangeForm.markAllAsTouched();return}if(this.loading=!0,this.isEditMode&&this.salaryRangeId){let i={id:this.salaryRangeId,name:this.salaryRangeForm.value.name,minSalary:parseFloat(this.salaryRangeForm.value.minSalary),maxSalary:parseFloat(this.salaryRangeForm.value.maxSalary)};this.salaryRangeService.updateSalaryRange(i).subscribe({next:()=>{this.showMessage("Salary range updated successfully"),this.router.navigate(["/salary-ranges",this.salaryRangeId])},error:r=>{console.error("Error updating salary range:",r),this.showMessage("Error updating salary range"),this.loading=!1}})}else{let i={name:this.salaryRangeForm.value.name,minSalary:parseFloat(this.salaryRangeForm.value.minSalary),maxSalary:parseFloat(this.salaryRangeForm.value.maxSalary)};this.salaryRangeService.createSalaryRange(i).subscribe({next:r=>{console.log("Salary range created - Response:",r),console.log("Salary range ID:",r?.id),this.showMessage("Salary range created successfully"),r?.id?(console.log("Navigating to detail page:","/salary-ranges/"+r.id),this.router.navigate(["/salary-ranges",r.id])):(console.warn("No salary range ID returned, navigating to list page"),this.router.navigate(["/salary-ranges"])),this.loading=!1},error:r=>{console.error("Error creating salary range:",r),this.showMessage("Error creating salary range"),this.loading=!1}})}}onCancel(){this.router.navigate(["/salary-ranges"])}showMessage(i){this.snackBar.open(i,"Close",{duration:3e3,horizontalPosition:"end",verticalPosition:"top"})}getFormTitle(){return this.isEditMode?"Edit Salary Range":"Create Salary Range"}};n.\u0275fac=function(r){return new(r||n)},n.\u0275cmp=E({type:n,selectors:[["app-salary-range-form"]],decls:37,vars:12,consts:[[1,"loading-overlay"],[3,"ngSubmit","formGroup"],[1,"form-section"],["appearance","outline",1,"full-width"],["matInput","","formControlName","name"],[4,"ngIf"],["matInput","","type","number","formControlName","minSalary"],["matTextPrefix",""],["matInput","","type","number","formControlName","maxSalary"],["class","range-error",4,"ngIf"],[1,"form-actions"],["type","button","mat-stroked-button","",3,"click"],["type","submit","mat-raised-button","","color","primary",3,"disabled"],[1,"range-error"]],template:function(r,o){if(r&1&&(M(0,"page-header"),m(1,"mat-card")(2,"mat-card-header")(3,"mat-card-title"),g(4),h()(),m(5,"mat-card-content"),V(6,Qye,2,0,"div",0),m(7,"form",1),S("ngSubmit",function(){return o.onSubmit()}),m(8,"div",2)(9,"mat-form-field",3)(10,"mat-label"),g(11,"Range Name"),h(),M(12,"input",4),A(13,Kye,2,0,"mat-error",5)(14,Zye,2,0,"mat-error",5),h(),m(15,"mat-form-field",3)(16,"mat-label"),g(17,"Minimum Salary"),h(),M(18,"input",6),m(19,"span",7),g(20,"$\xA0"),h(),A(21,Xye,2,0,"mat-error",5)(22,Jye,2,0,"mat-error",5),h(),m(23,"mat-form-field",3)(24,"mat-label"),g(25,"Maximum Salary"),h(),M(26,"input",8),m(27,"span",7),g(28,"$\xA0"),h(),A(29,exe,2,0,"mat-error",5)(30,txe,2,0,"mat-error",5),h(),A(31,ixe,2,0,"mat-error",9),h(),m(32,"div",10)(33,"button",11),S("click",function(){return o.onCancel()}),g(34," Cancel "),h(),m(35,"button",12),g(36),h()()()()()),r&2){let a,s,l,c,d,p;f(4),N(o.getFormTitle()),f(2),B(o.loading?6:-1),f(),v("formGroup",o.salaryRangeForm),f(6),v("ngIf",(a=o.salaryRangeForm.get("name"))==null?null:a.hasError("required")),f(),v("ngIf",(s=o.salaryRangeForm.get("name"))==null?null:s.hasError("maxlength")),f(7),v("ngIf",(l=o.salaryRangeForm.get("minSalary"))==null?null:l.hasError("required")),f(),v("ngIf",(c=o.salaryRangeForm.get("minSalary"))==null?null:c.hasError("min")),f(7),v("ngIf",(d=o.salaryRangeForm.get("maxSalary"))==null?null:d.hasError("required")),f(),v("ngIf",(p=o.salaryRangeForm.get("maxSalary"))==null?null:p.hasError("min")),f(),v("ngIf",o.salaryRangeForm.hasError("salaryRangeInvalid")&&o.salaryRangeForm.touched),f(4),v("disabled",o.loading),f(),pe(" ",o.isEditMode?"Update":"Create"," ")}},dependencies:[ut,Jt,$n,no,Hi,fu,qt,io,Ji,Ur,Be,Mt,Ut,Ht,zt,Gt,Wt,Pi,Ci,Gi,So,cu,Mn,en,gi,fi,_i,Qt],styles:["mat-card[_ngcontent-%COMP%]{margin:16px;max-width:800px}mat-card-header[_ngcontent-%COMP%]{margin-bottom:16px;padding:16px;border-bottom:1px solid rgba(0,0,0,.12)}mat-card-header[_ngcontent-%COMP%] mat-card-title[_ngcontent-%COMP%]{font-size:20px;font-weight:500;margin:0}mat-card-content[_ngcontent-%COMP%]{padding:16px;position:relative}.loading-overlay[_ngcontent-%COMP%]{position:absolute;inset:0;background-color:#fffc;display:flex;align-items:center;justify-content:center;z-index:1000}.form-section[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:16px;margin-bottom:24px}.form-section[_ngcontent-%COMP%] .full-width[_ngcontent-%COMP%]{width:100%}.form-section[_ngcontent-%COMP%] .range-error[_ngcontent-%COMP%]{color:#f44336;font-size:12px;margin-top:-8px}.form-actions[_ngcontent-%COMP%]{display:flex;gap:12px;justify-content:flex-end;padding-top:16px;border-top:1px solid rgba(0,0,0,.12)}"]});let t=n;return t})();var nxe=["*",[["mat-chip-avatar"],["","matChipAvatar",""]],[["mat-chip-trailing-icon"],["","matChipRemove",""],["","matChipTrailingIcon",""]]],rxe=["*","mat-chip-avatar, [matChipAvatar]","mat-chip-trailing-icon,[matChipRemove],[matChipTrailingIcon]"];function oxe(t,n){t&1&&(m(0,"span",3),ne(1,1),h())}function axe(t,n){t&1&&(m(0,"span",6),ne(1,2),h())}var sxe=["*"];var lxe=new O("mat-chips-default-options",{providedIn:"root",factory:()=>({separatorKeyCodes:[13]})}),dU=new O("MatChipAvatar"),uU=new O("MatChipTrailingIcon"),mU=new O("MatChipEdit"),hU=new O("MatChipRemove"),fU=new O("MatChip"),pU=(()=>{class t{_elementRef=u(Y);_parentChip=u(fU);isInteractive=!0;_isPrimary=!0;_isLeading=!1;get disabled(){return this._disabled||this._parentChip?.disabled||!1}set disabled(e){this._disabled=e}_disabled=!1;tabIndex=-1;_allowFocusWhenDisabled=!1;_getDisabledAttribute(){return this.disabled&&!this._allowFocusWhenDisabled?"":null}_getTabindex(){return this.disabled&&!this._allowFocusWhenDisabled||!this.isInteractive?null:this.tabIndex.toString()}constructor(){u(ht).load(ki),this._elementRef.nativeElement.nodeName==="BUTTON"&&this._elementRef.nativeElement.setAttribute("type","button")}focus(){this._elementRef.nativeElement.focus()}_handleClick(e){!this.disabled&&this.isInteractive&&this._isPrimary&&(e.preventDefault(),this._parentChip._handlePrimaryActionInteraction())}_handleKeydown(e){(e.keyCode===13||e.keyCode===32)&&!this.disabled&&this.isInteractive&&this._isPrimary&&!this._parentChip._isEditing&&(e.preventDefault(),this._parentChip._handlePrimaryActionInteraction())}static \u0275fac=function(i){return new(i||t)};static \u0275dir=P({type:t,selectors:[["","matChipAction",""]],hostAttrs:[1,"mdc-evolution-chip__action","mat-mdc-chip-action"],hostVars:11,hostBindings:function(i,r){i&1&&S("click",function(a){return r._handleClick(a)})("keydown",function(a){return r._handleKeydown(a)}),i&2&&(X("tabindex",r._getTabindex())("disabled",r._getDisabledAttribute())("aria-disabled",r.disabled),G("mdc-evolution-chip__action--primary",r._isPrimary)("mdc-evolution-chip__action--presentational",!r.isInteractive)("mdc-evolution-chip__action--secondary",!r._isPrimary)("mdc-evolution-chip__action--trailing",!r._isPrimary&&!r._isLeading))},inputs:{isInteractive:"isInteractive",disabled:[2,"disabled","disabled",L],tabIndex:[2,"tabIndex","tabIndex",e=>e==null?-1:dt(e)],_allowFocusWhenDisabled:"_allowFocusWhenDisabled"}})}return t})();var pA=(()=>{class t{_changeDetectorRef=u(ye);_elementRef=u(Y);_tagName=u(iM);_ngZone=u(ae);_focusMonitor=u(ti);_globalRippleOptions=u(ws,{optional:!0});_document=u(_e);_onFocus=new z;_onBlur=new z;_isBasicChip;role=null;_hasFocusInternal=!1;_pendingFocus;_actionChanges;_animationsDisabled=Ye();_allLeadingIcons;_allTrailingIcons;_allEditIcons;_allRemoveIcons;_hasFocus(){return this._hasFocusInternal}id=u(Ze).getId("mat-mdc-chip-");ariaLabel=null;ariaDescription=null;_chipListDisabled=!1;_hadFocusOnRemove=!1;_textElement;get value(){return this._value!==void 0?this._value:this._textElement.textContent.trim()}set value(e){this._value=e}_value;color;removable=!0;highlighted=!1;disableRipple=!1;get disabled(){return this._disabled||this._chipListDisabled}set disabled(e){this._disabled=e}_disabled=!1;removed=new U;destroyed=new U;basicChipAttrName="mat-basic-chip";leadingIcon;editIcon;trailingIcon;removeIcon;primaryAction;_rippleLoader=u(ey);_injector=u(de);constructor(){let e=u(ht);e.load(ki),e.load(Jr),this._monitorFocus(),this._rippleLoader?.configureRipple(this._elementRef.nativeElement,{className:"mat-mdc-chip-ripple",disabled:this._isRippleDisabled()})}ngOnInit(){this._isBasicChip=this._elementRef.nativeElement.hasAttribute(this.basicChipAttrName)||this._tagName.toLowerCase()===this.basicChipAttrName}ngAfterViewInit(){this._textElement=this._elementRef.nativeElement.querySelector(".mat-mdc-chip-action-label"),this._pendingFocus&&(this._pendingFocus=!1,this.focus())}ngAfterContentInit(){this._actionChanges=Je(this._allLeadingIcons.changes,this._allTrailingIcons.changes,this._allEditIcons.changes,this._allRemoveIcons.changes).subscribe(()=>this._changeDetectorRef.markForCheck())}ngDoCheck(){this._rippleLoader.setDisabled(this._elementRef.nativeElement,this._isRippleDisabled())}ngOnDestroy(){this._focusMonitor.stopMonitoring(this._elementRef),this._rippleLoader?.destroyRipple(this._elementRef.nativeElement),this._actionChanges?.unsubscribe(),this.destroyed.emit({chip:this}),this.destroyed.complete()}remove(){this.removable&&(this._hadFocusOnRemove=this._hasFocus(),this.removed.emit({chip:this}))}_isRippleDisabled(){return this.disabled||this.disableRipple||this._animationsDisabled||this._isBasicChip||!this._hasInteractiveActions()||!!this._globalRippleOptions?.disabled}_hasTrailingIcon(){return!!(this.trailingIcon||this.removeIcon)}_handleKeydown(e){(e.keyCode===8&&!e.repeat||e.keyCode===46)&&(e.preventDefault(),this.remove())}focus(){this.disabled||(this.primaryAction?this.primaryAction.focus():this._pendingFocus=!0)}_getSourceAction(e){return this._getActions().find(i=>{let r=i._elementRef.nativeElement;return r===e||r.contains(e)})}_getActions(){let e=[];return this.editIcon&&e.push(this.editIcon),this.primaryAction&&e.push(this.primaryAction),this.removeIcon&&e.push(this.removeIcon),this.trailingIcon&&e.push(this.trailingIcon),e}_handlePrimaryActionInteraction(){}_hasInteractiveActions(){return this._getActions().some(e=>e.isInteractive)}_edit(e){}_monitorFocus(){this._focusMonitor.monitor(this._elementRef,!0).subscribe(e=>{let i=e!==null;i!==this._hasFocusInternal&&(this._hasFocusInternal=i,i?this._onFocus.next({chip:this}):(this._changeDetectorRef.markForCheck(),setTimeout(()=>this._ngZone.run(()=>this._onBlur.next({chip:this})))))})}static \u0275fac=function(i){return new(i||t)};static \u0275cmp=E({type:t,selectors:[["mat-basic-chip"],["","mat-basic-chip",""],["mat-chip"],["","mat-chip",""]],contentQueries:function(i,r,o){if(i&1&&(xe(o,dU,5),xe(o,mU,5),xe(o,uU,5),xe(o,hU,5),xe(o,dU,5),xe(o,uU,5),xe(o,mU,5),xe(o,hU,5)),i&2){let a;j(a=H())&&(r.leadingIcon=a.first),j(a=H())&&(r.editIcon=a.first),j(a=H())&&(r.trailingIcon=a.first),j(a=H())&&(r.removeIcon=a.first),j(a=H())&&(r._allLeadingIcons=a),j(a=H())&&(r._allTrailingIcons=a),j(a=H())&&(r._allEditIcons=a),j(a=H())&&(r._allRemoveIcons=a)}},viewQuery:function(i,r){if(i&1&&ie(pU,5),i&2){let o;j(o=H())&&(r.primaryAction=o.first)}},hostAttrs:[1,"mat-mdc-chip"],hostVars:31,hostBindings:function(i,r){i&1&&S("keydown",function(a){return r._handleKeydown(a)}),i&2&&(ci("id",r.id),X("role",r.role)("aria-label",r.ariaLabel),nt("mat-"+(r.color||"primary")),G("mdc-evolution-chip",!r._isBasicChip)("mdc-evolution-chip--disabled",r.disabled)("mdc-evolution-chip--with-trailing-action",r._hasTrailingIcon())("mdc-evolution-chip--with-primary-graphic",r.leadingIcon)("mdc-evolution-chip--with-primary-icon",r.leadingIcon)("mdc-evolution-chip--with-avatar",r.leadingIcon)("mat-mdc-chip-with-avatar",r.leadingIcon)("mat-mdc-chip-highlighted",r.highlighted)("mat-mdc-chip-disabled",r.disabled)("mat-mdc-basic-chip",r._isBasicChip)("mat-mdc-standard-chip",!r._isBasicChip)("mat-mdc-chip-with-trailing-icon",r._hasTrailingIcon())("_mat-animation-noopable",r._animationsDisabled))},inputs:{role:"role",id:"id",ariaLabel:[0,"aria-label","ariaLabel"],ariaDescription:[0,"aria-description","ariaDescription"],value:"value",color:"color",removable:[2,"removable","removable",L],highlighted:[2,"highlighted","highlighted",L],disableRipple:[2,"disableRipple","disableRipple",L],disabled:[2,"disabled","disabled",L]},outputs:{removed:"removed",destroyed:"destroyed"},exportAs:["matChip"],features:[Ce([{provide:fU,useExisting:t}])],ngContentSelectors:rxe,decls:8,vars:3,consts:[[1,"mat-mdc-chip-focus-overlay"],[1,"mdc-evolution-chip__cell","mdc-evolution-chip__cell--primary"],["matChipAction","",3,"isInteractive"],[1,"mdc-evolution-chip__graphic","mat-mdc-chip-graphic"],[1,"mdc-evolution-chip__text-label","mat-mdc-chip-action-label"],[1,"mat-mdc-chip-primary-focus-indicator","mat-focus-indicator"],[1,"mdc-evolution-chip__cell","mdc-evolution-chip__cell--trailing"]],template:function(i,r){i&1&&(Se(nxe),M(0,"span",0),m(1,"span",1)(2,"span",2),V(3,oxe,2,0,"span",3),m(4,"span",4),ne(5),M(6,"span",5),h()()(),V(7,axe,2,0,"span",6)),i&2&&(f(2),v("isInteractive",!1),f(),B(r.leadingIcon?3:-1),f(4),B(r._hasTrailingIcon()?7:-1))},dependencies:[pU],styles:[`.mdc-evolution-chip,.mdc-evolution-chip__cell,.mdc-evolution-chip__action{display:inline-flex;align-items:center}.mdc-evolution-chip{position:relative;max-width:100%}.mdc-evolution-chip__cell,.mdc-evolution-chip__action{height:100%}.mdc-evolution-chip__cell--primary{flex-basis:100%;overflow-x:hidden}.mdc-evolution-chip__cell--trailing{flex:1 0 auto}.mdc-evolution-chip__action{align-items:center;background:none;border:none;box-sizing:content-box;cursor:pointer;display:inline-flex;justify-content:center;outline:none;padding:0;text-decoration:none;color:inherit}.mdc-evolution-chip__action--presentational{cursor:auto}.mdc-evolution-chip--disabled,.mdc-evolution-chip__action:disabled{pointer-events:none}@media(forced-colors: active){.mdc-evolution-chip--disabled,.mdc-evolution-chip__action:disabled{forced-color-adjust:none}}.mdc-evolution-chip__action--primary{font:inherit;letter-spacing:inherit;white-space:inherit;overflow-x:hidden}.mat-mdc-standard-chip .mdc-evolution-chip__action--primary::before{border-width:var(--mat-chip-outline-width, 1px);border-radius:var(--mat-chip-container-shape-radius, 8px);box-sizing:border-box;content:"";height:100%;left:0;position:absolute;pointer-events:none;top:0;width:100%;z-index:1;border-style:solid}.mat-mdc-standard-chip .mdc-evolution-chip__action--primary{padding-left:12px;padding-right:12px}.mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic .mdc-evolution-chip__action--primary{padding-left:0;padding-right:12px}[dir=rtl] .mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic .mdc-evolution-chip__action--primary{padding-left:12px;padding-right:0}.mat-mdc-standard-chip:not(.mdc-evolution-chip--disabled) .mdc-evolution-chip__action--primary::before{border-color:var(--mat-chip-outline-color, var(--mat-sys-outline))}.mdc-evolution-chip__action--primary:not(.mdc-evolution-chip__action--presentational):not(.mdc-ripple-upgraded):focus::before{border-color:var(--mat-chip-focus-outline-color, var(--mat-sys-on-surface-variant))}.mat-mdc-standard-chip.mdc-evolution-chip--disabled .mdc-evolution-chip__action--primary::before{border-color:var(--mat-chip-disabled-outline-color, color-mix(in srgb, var(--mat-sys-on-surface) 12%, transparent))}.mat-mdc-standard-chip.mdc-evolution-chip--selected .mdc-evolution-chip__action--primary::before{border-width:var(--mat-chip-flat-selected-outline-width, 0)}.mat-mdc-basic-chip .mdc-evolution-chip__action--primary{font:inherit}.mat-mdc-standard-chip.mdc-evolution-chip--with-leading-action .mdc-evolution-chip__action--primary{padding-left:0;padding-right:12px}[dir=rtl] .mat-mdc-standard-chip.mdc-evolution-chip--with-leading-action .mdc-evolution-chip__action--primary{padding-left:12px;padding-right:0}.mat-mdc-standard-chip.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--primary{padding-left:12px;padding-right:0}[dir=rtl] .mat-mdc-standard-chip.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--primary{padding-left:0;padding-right:12px}.mat-mdc-standard-chip.mdc-evolution-chip--with-leading-action.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--primary{padding-left:0;padding-right:0}.mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--primary{padding-left:0;padding-right:0}[dir=rtl] .mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--primary{padding-left:0;padding-right:0}.mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic .mdc-evolution-chip__action--primary{padding-left:0;padding-right:12px}[dir=rtl] .mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic .mdc-evolution-chip__action--primary{padding-left:12px;padding-right:0}.mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--primary{padding-left:0;padding-right:0}[dir=rtl] .mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--primary{padding-left:0;padding-right:0}.mdc-evolution-chip__action--secondary{position:relative;overflow:visible}.mat-mdc-standard-chip:not(.mdc-evolution-chip--disabled) .mdc-evolution-chip__action--secondary{color:var(--mat-chip-with-trailing-icon-trailing-icon-color, var(--mat-sys-on-surface-variant))}.mat-mdc-standard-chip.mdc-evolution-chip--disabled .mdc-evolution-chip__action--secondary{color:var(--mat-chip-with-trailing-icon-disabled-trailing-icon-color, var(--mat-sys-on-surface))}.mat-mdc-standard-chip.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--secondary{padding-left:8px;padding-right:8px}.mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--secondary{padding-left:8px;padding-right:8px}.mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--secondary{padding-left:8px;padding-right:8px}[dir=rtl] .mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--secondary{padding-left:8px;padding-right:8px}.mdc-evolution-chip__text-label{-webkit-user-select:none;user-select:none;white-space:nowrap;text-overflow:ellipsis;overflow:hidden}.mat-mdc-standard-chip .mdc-evolution-chip__text-label{font-family:var(--mat-chip-label-text-font, var(--mat-sys-label-large-font));line-height:var(--mat-chip-label-text-line-height, var(--mat-sys-label-large-line-height));font-size:var(--mat-chip-label-text-size, var(--mat-sys-label-large-size));font-weight:var(--mat-chip-label-text-weight, var(--mat-sys-label-large-weight));letter-spacing:var(--mat-chip-label-text-tracking, var(--mat-sys-label-large-tracking))}.mat-mdc-standard-chip:not(.mdc-evolution-chip--disabled) .mdc-evolution-chip__text-label{color:var(--mat-chip-label-text-color, var(--mat-sys-on-surface-variant))}.mat-mdc-standard-chip.mdc-evolution-chip--selected:not(.mdc-evolution-chip--disabled) .mdc-evolution-chip__text-label{color:var(--mat-chip-selected-label-text-color, var(--mat-sys-on-secondary-container))}.mat-mdc-standard-chip.mdc-evolution-chip--disabled .mdc-evolution-chip__text-label,.mat-mdc-standard-chip.mdc-evolution-chip--selected.mdc-evolution-chip--disabled .mdc-evolution-chip__text-label{color:var(--mat-chip-disabled-label-text-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent))}.mdc-evolution-chip__graphic{align-items:center;display:inline-flex;justify-content:center;overflow:hidden;pointer-events:none;position:relative;flex:1 0 auto}.mat-mdc-standard-chip .mdc-evolution-chip__graphic{width:var(--mat-chip-with-avatar-avatar-size, 24px);height:var(--mat-chip-with-avatar-avatar-size, 24px);font-size:var(--mat-chip-with-avatar-avatar-size, 24px)}.mdc-evolution-chip--selecting .mdc-evolution-chip__graphic{transition:width 150ms 0ms cubic-bezier(0.4, 0, 0.2, 1)}.mdc-evolution-chip--selectable:not(.mdc-evolution-chip--selected):not(.mdc-evolution-chip--with-primary-icon) .mdc-evolution-chip__graphic{width:0}.mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic .mdc-evolution-chip__graphic{padding-left:6px;padding-right:6px}.mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic .mdc-evolution-chip__graphic{padding-left:4px;padding-right:8px}[dir=rtl] .mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic .mdc-evolution-chip__graphic{padding-left:8px;padding-right:4px}.mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__graphic{padding-left:6px;padding-right:6px}.mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__graphic{padding-left:4px;padding-right:8px}[dir=rtl] .mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__graphic{padding-left:8px;padding-right:4px}.mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-leading-action .mdc-evolution-chip__graphic{padding-left:0}.mdc-evolution-chip__checkmark{position:absolute;opacity:0;top:50%;left:50%;height:20px;width:20px}.mat-mdc-standard-chip:not(.mdc-evolution-chip--disabled) .mdc-evolution-chip__checkmark{color:var(--mat-chip-with-icon-selected-icon-color, var(--mat-sys-on-secondary-container))}.mat-mdc-standard-chip.mdc-evolution-chip--disabled .mdc-evolution-chip__checkmark{color:var(--mat-chip-with-icon-disabled-icon-color, var(--mat-sys-on-surface))}.mdc-evolution-chip--selecting .mdc-evolution-chip__checkmark{transition:transform 150ms 0ms cubic-bezier(0.4, 0, 0.2, 1);transform:translate(-75%, -50%)}.mdc-evolution-chip--selected .mdc-evolution-chip__checkmark{transform:translate(-50%, -50%);opacity:1}.mdc-evolution-chip__checkmark-svg{display:block}.mdc-evolution-chip__checkmark-path{stroke-width:2px;stroke-dasharray:29.7833385;stroke-dashoffset:29.7833385;stroke:currentColor}.mdc-evolution-chip--selecting .mdc-evolution-chip__checkmark-path{transition:stroke-dashoffset 150ms 45ms cubic-bezier(0.4, 0, 0.2, 1)}.mdc-evolution-chip--selected .mdc-evolution-chip__checkmark-path{stroke-dashoffset:0}@media(forced-colors: active){.mdc-evolution-chip__checkmark-path{stroke:CanvasText !important}}.mat-mdc-standard-chip .mdc-evolution-chip__icon--trailing{height:18px;width:18px;font-size:18px}.mdc-evolution-chip--disabled .mdc-evolution-chip__icon--trailing.mat-mdc-chip-remove{opacity:calc(var(--mat-chip-trailing-action-opacity, 1)*var(--mat-chip-with-trailing-icon-disabled-trailing-icon-opacity, 0.38))}.mdc-evolution-chip--disabled .mdc-evolution-chip__icon--trailing.mat-mdc-chip-remove:focus{opacity:calc(var(--mat-chip-trailing-action-focus-opacity, 1)*var(--mat-chip-with-trailing-icon-disabled-trailing-icon-opacity, 0.38))}.mat-mdc-standard-chip{border-radius:var(--mat-chip-container-shape-radius, 8px);height:var(--mat-chip-container-height, 32px)}.mat-mdc-standard-chip:not(.mdc-evolution-chip--disabled){background-color:var(--mat-chip-elevated-container-color, transparent)}.mat-mdc-standard-chip.mdc-evolution-chip--disabled{background-color:var(--mat-chip-elevated-disabled-container-color)}.mat-mdc-standard-chip.mdc-evolution-chip--selected:not(.mdc-evolution-chip--disabled){background-color:var(--mat-chip-elevated-selected-container-color, var(--mat-sys-secondary-container))}.mat-mdc-standard-chip.mdc-evolution-chip--selected.mdc-evolution-chip--disabled{background-color:var(--mat-chip-flat-disabled-selected-container-color, color-mix(in srgb, var(--mat-sys-on-surface) 12%, transparent))}@media(forced-colors: active){.mat-mdc-standard-chip{outline:solid 1px}}.mat-mdc-standard-chip .mdc-evolution-chip__icon--primary{border-radius:var(--mat-chip-with-avatar-avatar-shape-radius, 24px);width:var(--mat-chip-with-icon-icon-size, 18px);height:var(--mat-chip-with-icon-icon-size, 18px);font-size:var(--mat-chip-with-icon-icon-size, 18px)}.mdc-evolution-chip--selected .mdc-evolution-chip__icon--primary{opacity:0}.mat-mdc-standard-chip:not(.mdc-evolution-chip--disabled) .mdc-evolution-chip__icon--primary{color:var(--mat-chip-with-icon-icon-color, var(--mat-sys-on-surface-variant))}.mat-mdc-standard-chip.mdc-evolution-chip--disabled .mdc-evolution-chip__icon--primary{color:var(--mat-chip-with-icon-disabled-icon-color, var(--mat-sys-on-surface))}.mat-mdc-chip-highlighted{--mat-chip-with-icon-icon-color: var(--mat-chip-with-icon-selected-icon-color, var(--mat-sys-on-secondary-container));--mat-chip-elevated-container-color: var(--mat-chip-elevated-selected-container-color, var(--mat-sys-secondary-container));--mat-chip-label-text-color: var(--mat-chip-selected-label-text-color, var(--mat-sys-on-secondary-container));--mat-chip-outline-width: var(--mat-chip-flat-selected-outline-width, 0)}.mat-mdc-chip-focus-overlay{background:var(--mat-chip-focus-state-layer-color, var(--mat-sys-on-surface-variant))}.mat-mdc-chip-selected .mat-mdc-chip-focus-overlay,.mat-mdc-chip-highlighted .mat-mdc-chip-focus-overlay{background:var(--mat-chip-selected-focus-state-layer-color, var(--mat-sys-on-secondary-container))}.mat-mdc-chip:hover .mat-mdc-chip-focus-overlay{background:var(--mat-chip-hover-state-layer-color, var(--mat-sys-on-surface-variant));opacity:var(--mat-chip-hover-state-layer-opacity, var(--mat-sys-hover-state-layer-opacity))}.mat-mdc-chip-focus-overlay .mat-mdc-chip-selected:hover,.mat-mdc-chip-highlighted:hover .mat-mdc-chip-focus-overlay{background:var(--mat-chip-selected-hover-state-layer-color, var(--mat-sys-on-secondary-container));opacity:var(--mat-chip-selected-hover-state-layer-opacity, var(--mat-sys-hover-state-layer-opacity))}.mat-mdc-chip.cdk-focused .mat-mdc-chip-focus-overlay{background:var(--mat-chip-focus-state-layer-color, var(--mat-sys-on-surface-variant));opacity:var(--mat-chip-focus-state-layer-opacity, var(--mat-sys-focus-state-layer-opacity))}.mat-mdc-chip-selected.cdk-focused .mat-mdc-chip-focus-overlay,.mat-mdc-chip-highlighted.cdk-focused .mat-mdc-chip-focus-overlay{background:var(--mat-chip-selected-focus-state-layer-color, var(--mat-sys-on-secondary-container));opacity:var(--mat-chip-selected-focus-state-layer-opacity, var(--mat-sys-focus-state-layer-opacity))}.mdc-evolution-chip--disabled:not(.mdc-evolution-chip--selected) .mat-mdc-chip-avatar{opacity:var(--mat-chip-with-avatar-disabled-avatar-opacity, 0.38)}.mdc-evolution-chip--disabled .mdc-evolution-chip__icon--trailing{opacity:var(--mat-chip-with-trailing-icon-disabled-trailing-icon-opacity, 0.38)}.mdc-evolution-chip--disabled.mdc-evolution-chip--selected .mdc-evolution-chip__checkmark{opacity:var(--mat-chip-with-icon-disabled-icon-opacity, 0.38)}.mat-mdc-standard-chip.mdc-evolution-chip--disabled{opacity:var(--mat-chip-disabled-container-opacity, 1)}.mat-mdc-standard-chip.mdc-evolution-chip--selected .mdc-evolution-chip__icon--trailing,.mat-mdc-standard-chip.mat-mdc-chip-highlighted .mdc-evolution-chip__icon--trailing{color:var(--mat-chip-selected-trailing-icon-color, var(--mat-sys-on-secondary-container))}.mat-mdc-standard-chip.mdc-evolution-chip--selected.mdc-evolution-chip--disabled .mdc-evolution-chip__icon--trailing,.mat-mdc-standard-chip.mat-mdc-chip-highlighted.mdc-evolution-chip--disabled .mdc-evolution-chip__icon--trailing{color:var(--mat-chip-selected-disabled-trailing-icon-color, var(--mat-sys-on-surface))}.mat-mdc-chip-edit,.mat-mdc-chip-remove{opacity:var(--mat-chip-trailing-action-opacity, 1)}.mat-mdc-chip-edit:focus,.mat-mdc-chip-remove:focus{opacity:var(--mat-chip-trailing-action-focus-opacity, 1)}.mat-mdc-chip-edit::after,.mat-mdc-chip-remove::after{background-color:var(--mat-chip-trailing-action-state-layer-color, var(--mat-sys-on-surface-variant))}.mat-mdc-chip-edit:hover::after,.mat-mdc-chip-remove:hover::after{opacity:var(--mat-chip-trailing-action-hover-state-layer-opacity, var(--mat-sys-hover-state-layer-opacity))}.mat-mdc-chip-edit:focus::after,.mat-mdc-chip-remove:focus::after{opacity:var(--mat-chip-trailing-action-focus-state-layer-opacity, var(--mat-sys-focus-state-layer-opacity))}.mat-mdc-chip-selected .mat-mdc-chip-remove::after,.mat-mdc-chip-highlighted .mat-mdc-chip-remove::after{background-color:var(--mat-chip-selected-trailing-action-state-layer-color, var(--mat-sys-on-secondary-container))}.mat-mdc-standard-chip{-webkit-tap-highlight-color:rgba(0,0,0,0)}.mat-mdc-standard-chip .mdc-evolution-chip__cell--primary,.mat-mdc-standard-chip .mdc-evolution-chip__action--primary,.mat-mdc-standard-chip .mat-mdc-chip-action-label{overflow:visible}.mat-mdc-standard-chip .mat-mdc-chip-graphic,.mat-mdc-standard-chip .mat-mdc-chip-trailing-icon{box-sizing:content-box}.mat-mdc-standard-chip._mat-animation-noopable,.mat-mdc-standard-chip._mat-animation-noopable .mdc-evolution-chip__graphic,.mat-mdc-standard-chip._mat-animation-noopable .mdc-evolution-chip__checkmark,.mat-mdc-standard-chip._mat-animation-noopable .mdc-evolution-chip__checkmark-path{transition-duration:1ms;animation-duration:1ms}.mat-mdc-chip-focus-overlay{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none;opacity:0;border-radius:inherit;transition:opacity 150ms linear}._mat-animation-noopable .mat-mdc-chip-focus-overlay{transition:none}.mat-mdc-basic-chip .mat-mdc-chip-focus-overlay{display:none}.mat-mdc-chip .mat-ripple.mat-mdc-chip-ripple{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none;border-radius:inherit}.mat-mdc-chip-avatar{text-align:center;line-height:1;color:var(--mat-chip-with-icon-icon-color, currentColor)}.mat-mdc-chip{position:relative;z-index:0}.mat-mdc-chip-action-label{text-align:left;z-index:1}[dir=rtl] .mat-mdc-chip-action-label{text-align:right}.mat-mdc-chip.mdc-evolution-chip--with-trailing-action .mat-mdc-chip-action-label{position:relative}.mat-mdc-chip-action-label .mat-mdc-chip-primary-focus-indicator{position:absolute;top:0;right:0;bottom:0;left:0;pointer-events:none}.mat-mdc-chip-action-label .mat-focus-indicator::before{margin:calc(calc(var(--mat-focus-indicator-border-width, 3px) + 2px)*-1)}.mat-mdc-chip-edit::before,.mat-mdc-chip-remove::before{margin:calc(var(--mat-focus-indicator-border-width, 3px)*-1);left:8px;right:8px}.mat-mdc-chip-edit::after,.mat-mdc-chip-remove::after{content:"";display:block;opacity:0;position:absolute;top:-3px;bottom:-3px;left:5px;right:5px;border-radius:50%;box-sizing:border-box;padding:12px;margin:-12px;background-clip:content-box}.mat-mdc-chip-edit .mat-icon,.mat-mdc-chip-remove .mat-icon{width:18px;height:18px;font-size:18px;box-sizing:content-box}.mat-chip-edit-input{cursor:text;display:inline-block;color:inherit;outline:0}@media(forced-colors: active){.mat-mdc-chip-selected:not(.mat-mdc-chip-multiple){outline-width:3px}}.mat-mdc-chip-action:focus .mat-focus-indicator::before{content:""}.mdc-evolution-chip__icon,.mat-mdc-chip-edit .mat-icon,.mat-mdc-chip-remove .mat-icon{min-height:fit-content}img.mdc-evolution-chip__icon{min-height:0} -`],encapsulation:2,changeDetection:0})}return t})();var gU=(()=>{class t{_elementRef=u(Y);_changeDetectorRef=u(ye);_dir=u(Bt,{optional:!0});_lastDestroyedFocusedChipIndex=null;_keyManager;_destroyed=new z;_defaultRole="presentation";get chipFocusChanges(){return this._getChipStream(e=>e._onFocus)}get chipDestroyedChanges(){return this._getChipStream(e=>e.destroyed)}get chipRemovedChanges(){return this._getChipStream(e=>e.removed)}get disabled(){return this._disabled}set disabled(e){this._disabled=e,this._syncChipsState()}_disabled=!1;get empty(){return!this._chips||this._chips.length===0}get role(){return this._explicitRole?this._explicitRole:this.empty?null:this._defaultRole}tabIndex=0;set role(e){this._explicitRole=e}_explicitRole=null;get focused(){return this._hasFocusedChip()}_chips;_chipActions=new gr;constructor(){}ngAfterViewInit(){this._setUpFocusManagement(),this._trackChipSetChanges(),this._trackDestroyedFocusedChip()}ngOnDestroy(){this._keyManager?.destroy(),this._chipActions.destroy(),this._destroyed.next(),this._destroyed.complete()}_hasFocusedChip(){return this._chips&&this._chips.some(e=>e._hasFocus())}_syncChipsState(){this._chips?.forEach(e=>{e._chipListDisabled=this._disabled,e._changeDetectorRef.markForCheck()})}focus(){}_handleKeydown(e){this._originatesFromChip(e)&&this._keyManager.onKeydown(e)}_isValidIndex(e){return e>=0&&ethis._elementRef.nativeElement.tabIndex=e))}_getChipStream(e){return this._chips.changes.pipe(Ue(null),je(()=>Je(...this._chips.map(e))))}_originatesFromChip(e){let i=e.target;for(;i&&i!==this._elementRef.nativeElement;){if(i.classList.contains("mat-mdc-chip"))return!0;i=i.parentElement}return!1}_setUpFocusManagement(){this._chips.changes.pipe(Ue(this._chips)).subscribe(e=>{let i=[];e.forEach(r=>r._getActions().forEach(o=>i.push(o))),this._chipActions.reset(i),this._chipActions.notifyOnChanges()}),this._keyManager=new vs(this._chipActions).withVerticalOrientation().withHorizontalOrientation(this._dir?this._dir.value:"ltr").withHomeAndEnd().skipPredicate(e=>this._skipPredicate(e)),this.chipFocusChanges.pipe(we(this._destroyed)).subscribe(({chip:e})=>{let i=e._getSourceAction(document.activeElement);i&&this._keyManager.updateActiveItem(i)}),this._dir?.change.pipe(we(this._destroyed)).subscribe(e=>this._keyManager.withHorizontalOrientation(e))}_skipPredicate(e){return!e.isInteractive||e.disabled}_trackChipSetChanges(){this._chips.changes.pipe(Ue(null),we(this._destroyed)).subscribe(()=>{this.disabled&&Promise.resolve().then(()=>this._syncChipsState()),this._redirectDestroyedChipFocus()})}_trackDestroyedFocusedChip(){this.chipDestroyedChanges.pipe(we(this._destroyed)).subscribe(e=>{let r=this._chips.toArray().indexOf(e.chip),o=e.chip._hasFocus(),a=e.chip._hadFocusOnRemove&&this._keyManager.activeItem&&e.chip._getActions().includes(this._keyManager.activeItem),s=o||a;this._isValidIndex(r)&&s&&(this._lastDestroyedFocusedChipIndex=r)})}_redirectDestroyedChipFocus(){if(this._lastDestroyedFocusedChipIndex!=null){if(this._chips.length){let e=Math.min(this._lastDestroyedFocusedChipIndex,this._chips.length-1),i=this._chips.toArray()[e];i.disabled?this._chips.length===1?this.focus():this._keyManager.setPreviousItemActive():i.focus()}else this.focus();this._lastDestroyedFocusedChipIndex=null}}static \u0275fac=function(i){return new(i||t)};static \u0275cmp=E({type:t,selectors:[["mat-chip-set"]],contentQueries:function(i,r,o){if(i&1&&xe(o,pA,5),i&2){let a;j(a=H())&&(r._chips=a)}},hostAttrs:[1,"mat-mdc-chip-set","mdc-evolution-chip-set"],hostVars:1,hostBindings:function(i,r){i&1&&S("keydown",function(a){return r._handleKeydown(a)}),i&2&&X("role",r.role)},inputs:{disabled:[2,"disabled","disabled",L],role:"role",tabIndex:[2,"tabIndex","tabIndex",e=>e==null?0:dt(e)]},ngContentSelectors:sxe,decls:2,vars:0,consts:[["role","presentation",1,"mdc-evolution-chip-set__chips"]],template:function(i,r){i&1&&(Se(),pt(0,"div",0),ne(1),_t())},styles:[`.mat-mdc-chip-set{display:flex}.mat-mdc-chip-set:focus{outline:none}.mat-mdc-chip-set .mdc-evolution-chip-set__chips{min-width:100%;margin-left:-8px;margin-right:0}.mat-mdc-chip-set .mdc-evolution-chip{margin:4px 0 4px 8px}[dir=rtl] .mat-mdc-chip-set .mdc-evolution-chip-set__chips{margin-left:0;margin-right:-8px}[dir=rtl] .mat-mdc-chip-set .mdc-evolution-chip{margin-left:0;margin-right:8px}.mdc-evolution-chip-set__chips{display:flex;flex-flow:wrap;min-width:0}.mat-mdc-chip-set-stacked{flex-direction:column;align-items:flex-start}.mat-mdc-chip-set-stacked .mat-mdc-chip{width:100%}.mat-mdc-chip-set-stacked .mdc-evolution-chip__graphic{flex-grow:0}.mat-mdc-chip-set-stacked .mdc-evolution-chip__action--primary{flex-basis:100%;justify-content:start}input.mat-mdc-chip-input{flex:1 0 150px;margin-left:8px}[dir=rtl] input.mat-mdc-chip-input{margin-left:0;margin-right:8px}.mat-mdc-form-field:not(.mat-form-field-hide-placeholder) input.mat-mdc-chip-input::placeholder{opacity:1}.mat-mdc-form-field:not(.mat-form-field-hide-placeholder) input.mat-mdc-chip-input::-moz-placeholder{opacity:1}.mat-mdc-form-field:not(.mat-form-field-hide-placeholder) input.mat-mdc-chip-input::-webkit-input-placeholder{opacity:1}.mat-mdc-form-field:not(.mat-form-field-hide-placeholder) input.mat-mdc-chip-input:-ms-input-placeholder{opacity:1}.mat-mdc-chip-set+input.mat-mdc-chip-input{margin-left:0;margin-right:0} -`],encapsulation:2,changeDetection:0})}return t})();var _U=(()=>{class t{static \u0275fac=function(i){return new(i||t)};static \u0275mod=ee({type:t});static \u0275inj=J({providers:[ul,{provide:lxe,useValue:{separatorKeyCodes:[13]}}],imports:[De,Mo,De]})}return t})();var bU=new O("CdkAccordion");var vU=(()=>{class t{accordion=u(bU,{optional:!0,skipSelf:!0});_changeDetectorRef=u(ye);_expansionDispatcher=u(uu);_openCloseAllSubscription=Te.EMPTY;closed=new U;opened=new U;destroyed=new U;expandedChange=new U;id=u(Ze).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 i=this.accordion?this.accordion.id:this.id;this._expansionDispatcher.notify(this.id,i)}else this.closed.emit();this._changeDetectorRef.markForCheck()}}_expanded=!1;get disabled(){return this._disabled()}set disabled(e){this._disabled.set(e)}_disabled=he(!1);_removeUniqueSelectionListener=()=>{};constructor(){}ngOnInit(){this._removeUniqueSelectionListener=this._expansionDispatcher.listen((e,i)=>{this.accordion&&!this.accordion.multi&&this.accordion.id===i&&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(i){return new(i||t)};static \u0275dir=P({type:t,selectors:[["cdk-accordion-item"],["","cdkAccordionItem",""]],inputs:{expanded:[2,"expanded","expanded",L],disabled:[2,"disabled","disabled",L]},outputs:{closed:"closed",opened:"opened",destroyed:"destroyed",expandedChange:"expandedChange"},exportAs:["cdkAccordionItem"],features:[Ce([{provide:bU,useValue:void 0}])]})}return t})(),yU=(()=>{class t{static \u0275fac=function(i){return new(i||t)};static \u0275mod=ee({type:t});static \u0275inj=J({})}return t})();var dxe=["body"],uxe=["bodyWrapper"],mxe=[[["mat-expansion-panel-header"]],"*",[["mat-action-row"]]],hxe=["mat-expansion-panel-header","*","mat-action-row"];function pxe(t,n){}var fxe=[[["mat-panel-title"]],[["mat-panel-description"]],"*"],gxe=["mat-panel-title","mat-panel-description","*"];function _xe(t,n){t&1&&(pt(0,"span",1),Zt(),pt(1,"svg",2),Xt(2,"path",3),_t()())}var xU=new O("MAT_ACCORDION"),CU=new O("MAT_EXPANSION_PANEL"),bxe=(()=>{class t{_template=u(te);_expansionPanel=u(CU,{optional:!0});constructor(){}static \u0275fac=function(i){return new(i||t)};static \u0275dir=P({type:t,selectors:[["ng-template","matExpansionPanelContent",""]]})}return t})(),wU=new O("MAT_EXPANSION_PANEL_DEFAULT_OPTIONS"),fA=(()=>{class t extends vU{_viewContainerRef=u(ot);_animationsDisabled=Ye();_document=u(_e);_ngZone=u(ae);_elementRef=u(Y);_renderer=u(ze);_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 U;afterCollapse=new U;_inputChanges=new z;accordion=u(xU,{optional:!0,skipSelf:!0});_lazyContent;_body;_bodyWrapper;_portal;_headerId=u(Ze).getId("mat-expansion-panel-header-");constructor(){super();let e=u(wU,{optional:!0});this._expansionDispatcher=u(uu),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(Ue(null),ce(()=>this.expanded&&!this._portal),ct(1)).subscribe(()=>{this._portal=new Dn(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,i=this._body.nativeElement;return e===i||i.contains(e)}return!1}_transitionEndListener=({target:e,propertyName:i})=>{e===this._bodyWrapper?.nativeElement&&i==="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(i){return new(i||t)};static \u0275cmp=E({type:t,selectors:[["mat-expansion-panel"]],contentQueries:function(i,r,o){if(i&1&&xe(o,bxe,5),i&2){let a;j(a=H())&&(r._lazyContent=a.first)}},viewQuery:function(i,r){if(i&1&&(ie(dxe,5),ie(uxe,5)),i&2){let o;j(o=H())&&(r._body=o.first),j(o=H())&&(r._bodyWrapper=o.first)}},hostAttrs:[1,"mat-expansion-panel"],hostVars:4,hostBindings:function(i,r){i&2&&G("mat-expanded",r.expanded)("mat-expansion-panel-spacing",r._hasSpacing())},inputs:{hideToggle:[2,"hideToggle","hideToggle",L],togglePosition:"togglePosition"},outputs:{afterExpand:"afterExpand",afterCollapse:"afterCollapse"},exportAs:["matExpansionPanel"],features:[Ce([{provide:xU,useValue:void 0},{provide:CU,useExisting:t}]),le,Ae],ngContentSelectors:hxe,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(i,r){i&1&&(Se(mxe),ne(0),m(1,"div",2,0)(3,"div",3,1)(5,"div",4),ne(6,1),A(7,pxe,0,0,"ng-template",5),h(),ne(8,2),h()()),i&2&&(f(),X("inert",r.expanded?null:""),f(2),v("id",r.id),X("aria-labelledby",r._headerId),f(4),v("cdkPortalOutlet",r._portal))},dependencies:[wr],styles:[`.mat-expansion-panel{box-sizing:content-box;display:block;margin:0;overflow:hidden;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.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: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}}.mat-expansion-panel-content{display:flex;flex-direction:column;overflow:visible;min-height:0;visibility:hidden;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-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-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 t})();var DU=(()=>{class t{panel=u(fA,{host:!0});_element=u(Y);_focusMonitor=u(ti);_changeDetectorRef=u(ye);_parentChangeSubscription=Te.EMPTY;constructor(){u(ht).load(ki);let e=this.panel,i=u(wU,{optional:!0}),r=u(new Oi("tabindex"),{optional:!0}),o=e.accordion?e.accordion._stateChanges.pipe(ce(a=>!!(a.hideToggle||a.togglePosition))):Vi;this.tabIndex=parseInt(r||"")||0,this._parentChangeSubscription=Je(e.opened,e.closed,o,e._inputChanges.pipe(ce(a=>!!(a.hideToggle||a.disabled||a.togglePosition)))).subscribe(()=>this._changeDetectorRef.markForCheck()),e.closed.pipe(ce(()=>e._containsFocus())).subscribe(()=>this._focusMonitor.focusVia(this._element,"program")),i&&(this.expandedHeight=i.expandedHeight,this.collapsedHeight=i.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:Lt(e)||(e.preventDefault(),this._toggle());break;default:this.panel.accordion&&this.panel.accordion._handleHeaderKeydown(e);return}}focus(e,i){e?this._focusMonitor.focusVia(this._element,e,i):this._element.nativeElement.focus(i)}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(i){return new(i||t)};static \u0275cmp=E({type:t,selectors:[["mat-expansion-panel-header"]],hostAttrs:["role","button",1,"mat-expansion-panel-header","mat-focus-indicator"],hostVars:13,hostBindings:function(i,r){i&1&&S("click",function(){return r._toggle()})("keydown",function(a){return r._keydown(a)}),i&2&&(X("id",r.panel._headerId)("tabindex",r.disabled?-1:r.tabIndex)("aria-controls",r._getPanelId())("aria-expanded",r._isExpanded())("aria-disabled",r.panel.disabled),Et("height",r._getHeaderHeight()),G("mat-expanded",r._isExpanded())("mat-expansion-toggle-indicator-after",r._getTogglePosition()==="after")("mat-expansion-toggle-indicator-before",r._getTogglePosition()==="before"))},inputs:{expandedHeight:"expandedHeight",collapsedHeight:"collapsedHeight",tabIndex:[2,"tabIndex","tabIndex",e=>e==null?0:dt(e)]},ngContentSelectors:gxe,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(i,r){i&1&&(Se(fxe),pt(0,"span",0),ne(1),ne(2,1),ne(3,2),_t(),V(4,_xe,3,0,"span",1)),i&2&&(G("mat-content-hide-toggle",!r._showToggle()),f(4),B(r._showToggle()?4:-1))},styles:[`.mat-expansion-panel-header{display:flex;flex-direction:row;align-items:center;padding:0 24px;border-radius:inherit;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-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.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 t})();var EU=(()=>{class t{static \u0275fac=function(i){return new(i||t)};static \u0275dir=P({type:t,selectors:[["mat-panel-title"]],hostAttrs:[1,"mat-expansion-panel-header-title"]})}return t})();var MU=(()=>{class t{static \u0275fac=function(i){return new(i||t)};static \u0275mod=ee({type:t});static \u0275inj=J({imports:[De,yU,ko]})}return t})();function yxe(t,n){if(t&1&&(kt(0),m(1,"mat-icon"),g(2,"account_circle"),h(),g(3),Dt()),t&2){let e=n.ngIf;f(3),pe(" ",e.name||e.preferred_username||"User Profile"," ")}}function xxe(t,n){t&1&&(kt(0),m(1,"mat-icon"),g(2,"account_circle"),h(),g(3," User Profile "),Dt())}function Cxe(t,n){t&1&&(m(0,"div",3)(1,"mat-card")(2,"mat-card-content")(3,"div",4)(4,"mat-icon"),g(5,"lock"),h(),m(6,"h2"),g(7,"Not Authenticated"),h(),m(8,"p"),g(9,"Please log in to view your profile information."),h(),m(10,"button",5)(11,"mat-icon"),g(12,"login"),h(),g(13," Log In "),h()()()()())}function wxe(t,n){if(t&1&&(m(0,"mat-chip",23),g(1),h()),t&2){let e=n.$implicit;v("color","primary"),f(),pe(" ",e," ")}}function Dxe(t,n){if(t&1&&(m(0,"mat-chip",24),g(1),h()),t&2){let e=n.$implicit;v("color","accent"),f(),pe(" ",e," ")}}function Exe(t,n){if(t&1&&(m(0,"div",17)(1,"div",18)(2,"label"),g(3,"User ID (sub)"),h(),m(4,"div",19),g(5),h()(),m(6,"div",18)(7,"label"),g(8,"Display Name"),h(),m(9,"div",19),g(10),h()(),m(11,"div",18)(12,"label"),g(13,"Email"),h(),m(14,"div",19),g(15),h()(),m(16,"div",18)(17,"label"),g(18,"Username"),h(),m(19,"div",19),g(20),h()(),m(21,"div",20)(22,"label"),g(23,"Roles"),h(),m(24,"div",19)(25,"mat-chip-set"),A(26,wxe,2,2,"mat-chip",21),h()()(),m(27,"div",20)(28,"label"),g(29,"Permissions"),h(),m(30,"div",19)(31,"mat-chip-set"),A(32,Dxe,2,2,"mat-chip",22),h()()()()),t&2){let e=n.ngIf,i=x(2);f(5),N(e.sub),f(5),N(e.name||"N/A"),f(5),N(e.email||"N/A"),f(5),N(e.preferred_username||"N/A"),f(6),v("ngForOf",i.profileData==null?null:i.profileData.roles),f(6),v("ngForOf",i.profileData==null?null:i.profileData.permissions)}}function Mxe(t,n){t&1&&(m(0,"mat-chip",36)(1,"mat-icon"),g(2,"verified_user"),h(),g(3," Valid "),h())}function Sxe(t,n){t&1&&(m(0,"mat-chip",37)(1,"mat-icon"),g(2,"error"),h(),g(3," Expired "),h())}function kxe(t,n){if(t&1&&(m(0,"div",30)(1,"label"),g(2,"Issuer"),h(),m(3,"div"),g(4),h()()),t&2){let e=x().ngIf;f(4),N(e.payload.iss)}}function Txe(t,n){if(t&1&&(m(0,"mat-expansion-panel",38)(1,"mat-expansion-panel-header")(2,"mat-panel-title"),g(3,"Raw JWT Token"),h()(),m(4,"pre",39),g(5),h()()),t&2){let e=x().ngIf;f(5),N(e.raw)}}function Ixe(t,n){if(t&1){let e=q();m(0,"div",25)(1,"div",26)(2,"mat-chip-set")(3,"mat-chip",23)(4,"mat-icon"),g(5,"schedule"),h(),g(6),h(),A(7,Mxe,4,0,"mat-chip",27)(8,Sxe,4,0,"mat-chip",28),h()(),m(9,"div",29)(10,"div",30)(11,"label"),g(12,"Issued At"),h(),m(13,"div"),g(14),h()(),m(15,"div",30)(16,"label"),g(17,"Expires At"),h(),m(18,"div"),g(19),h()(),A(20,kxe,5,1,"div",31),h(),m(21,"div",32)(22,"button",33),S("click",function(){T(e);let r=x(2);return I(r.toggleRawIdToken())}),m(23,"mat-icon"),g(24),h(),g(25),h(),m(26,"button",33),S("click",function(){let r=T(e).ngIf,o=x(2);return I(o.copyToClipboard(r.raw,"ID Token"))}),m(27,"mat-icon"),g(28,"content_copy"),h(),g(29," Copy Token "),h()(),A(30,Txe,6,1,"mat-expansion-panel",34),m(31,"mat-expansion-panel")(32,"mat-expansion-panel-header")(33,"mat-panel-title"),g(34,"Token Header"),h()(),m(35,"pre",35),g(36),h()(),m(37,"mat-expansion-panel")(38,"mat-expansion-panel-header")(39,"mat-panel-title"),g(40,"Token Claims (Payload)"),h()(),m(41,"pre",35),g(42),h()()()}if(t&2){let e=n.ngIf,i=x(2);f(3),v("color",i.getExpirationColor(e)),f(3),pe(" ",i.getExpirationStatus(e)," "),f(),v("ngIf",!e.isExpired),f(),v("ngIf",e.isExpired),f(6),N(i.formatDate(e.issuedAt)),f(5),N(i.formatDate(e.expiresAt)),f(),v("ngIf",e.payload.iss),f(4),N(i.showRawIdToken?"visibility_off":"visibility"),f(),pe(" ",i.showRawIdToken?"Hide":"Show"," Raw Token "),f(5),v("ngIf",i.showRawIdToken),f(6),N(i.formatJson(e.header)),f(6),N(i.formatJson(e.payload))}}function Axe(t,n){t&1&&(m(0,"div",40)(1,"mat-icon"),g(2,"info"),h(),m(3,"p"),g(4,"ID Token not available"),h()())}function Oxe(t,n){t&1&&(m(0,"mat-chip",36)(1,"mat-icon"),g(2,"verified_user"),h(),g(3," Valid "),h())}function Rxe(t,n){t&1&&(m(0,"mat-chip",37)(1,"mat-icon"),g(2,"error"),h(),g(3," Expired "),h())}function Pxe(t,n){if(t&1&&(m(0,"div",30)(1,"label"),g(2,"Audience"),h(),m(3,"div"),g(4),h()()),t&2){let e=x().ngIf;f(4),N(e.payload.aud)}}function Fxe(t,n){if(t&1&&(m(0,"mat-expansion-panel",38)(1,"mat-expansion-panel-header")(2,"mat-panel-title"),g(3,"Raw JWT Token"),h()(),m(4,"pre",39),g(5),h()()),t&2){let e=x().ngIf;f(5),N(e.raw)}}function Nxe(t,n){if(t&1&&(m(0,"mat-chip"),g(1),h()),t&2){let e=n.$implicit;f(),pe(" ",e," ")}}function Lxe(t,n){if(t&1&&(m(0,"mat-expansion-panel")(1,"mat-expansion-panel-header")(2,"mat-panel-title"),g(3,"Scopes"),h()(),m(4,"div",41)(5,"mat-chip-set"),A(6,Nxe,2,1,"mat-chip",42),h()()()),t&2){let e=x().ngIf,i=x(2);f(6),v("ngForOf",i.getScopes(e.payload.scope))}}function Vxe(t,n){if(t&1){let e=q();m(0,"div",25)(1,"div",26)(2,"mat-chip-set")(3,"mat-chip",23)(4,"mat-icon"),g(5,"schedule"),h(),g(6),h(),A(7,Oxe,4,0,"mat-chip",27)(8,Rxe,4,0,"mat-chip",28),h()(),m(9,"div",29)(10,"div",30)(11,"label"),g(12,"Issued At"),h(),m(13,"div"),g(14),h()(),m(15,"div",30)(16,"label"),g(17,"Expires At"),h(),m(18,"div"),g(19),h()(),A(20,Pxe,5,1,"div",31),h(),m(21,"div",32)(22,"button",33),S("click",function(){T(e);let r=x(2);return I(r.toggleRawAccessToken())}),m(23,"mat-icon"),g(24),h(),g(25),h(),m(26,"button",33),S("click",function(){let r=T(e).ngIf,o=x(2);return I(o.copyToClipboard(r.raw,"Access Token"))}),m(27,"mat-icon"),g(28,"content_copy"),h(),g(29," Copy Token "),h()(),A(30,Fxe,6,1,"mat-expansion-panel",34),m(31,"mat-expansion-panel")(32,"mat-expansion-panel-header")(33,"mat-panel-title"),g(34,"Token Header"),h()(),m(35,"pre",35),g(36),h()(),m(37,"mat-expansion-panel")(38,"mat-expansion-panel-header")(39,"mat-panel-title"),g(40,"Token Claims (Payload)"),h()(),m(41,"pre",35),g(42),h()(),A(43,Lxe,7,1,"mat-expansion-panel",0),h()}if(t&2){let e=n.ngIf,i=x(2);f(3),v("color",i.getExpirationColor(e)),f(3),pe(" ",i.getExpirationStatus(e)," "),f(),v("ngIf",!e.isExpired),f(),v("ngIf",e.isExpired),f(6),N(i.formatDate(e.issuedAt)),f(5),N(i.formatDate(e.expiresAt)),f(),v("ngIf",e.payload.aud),f(4),N(i.showRawAccessToken?"visibility_off":"visibility"),f(),pe(" ",i.showRawAccessToken?"Hide":"Show"," Raw Token "),f(5),v("ngIf",i.showRawAccessToken),f(6),N(i.formatJson(e.header)),f(6),N(i.formatJson(e.payload)),f(),v("ngIf",e.payload.scope)}}function Bxe(t,n){t&1&&(m(0,"div",40)(1,"mat-icon"),g(2,"info"),h(),m(3,"p"),g(4,"Access Token not available"),h()())}function jxe(t,n){if(t&1&&(m(0,"div",6)(1,"mat-card",7)(2,"mat-card-content")(3,"div",8)(4,"mat-icon"),g(5,"warning"),h(),m(6,"div")(7,"strong"),g(8,"Security Notice:"),h(),g(9," Tokens displayed on this page contain sensitive information. Do not share these tokens with anyone or paste them in untrusted applications. "),h()()()(),m(10,"mat-card",9)(11,"mat-card-header")(12,"mat-icon",10),g(13,"person"),h(),m(14,"mat-card-title"),g(15,"User Information"),h(),m(16,"mat-card-subtitle"),g(17,"Your profile details from ID token"),h()(),m(18,"mat-card-content"),A(19,Exe,33,6,"div",11),h()(),m(20,"mat-card",12)(21,"mat-card-header")(22,"mat-icon",10),g(23,"vpn_key"),h(),m(24,"mat-card-title"),g(25,"Token Details"),h(),m(26,"mat-card-subtitle"),g(27,"Detailed JWT token information and claims"),h()(),m(28,"mat-card-content")(29,"mat-tab-group")(30,"mat-tab",13),A(31,Ixe,43,12,"div",14)(32,Axe,5,0,"div",15),h(),m(33,"mat-tab",16),A(34,Vxe,44,13,"div",14)(35,Bxe,5,0,"div",15),h()()()()()),t&2){let e=x();f(19),v("ngIf",e.profileData==null?null:e.profileData.userInfo),f(12),v("ngIf",e.profileData==null?null:e.profileData.idToken),f(),v("ngIf",!(e.profileData!=null&&e.profileData.idToken)),f(2),v("ngIf",e.profileData==null?null:e.profileData.accessToken),f(),v("ngIf",!(e.profileData!=null&&e.profileData.accessToken))}}var SU=(()=>{let n=class n{constructor(){this.authService=u(Ot),this.oauthService=u(Km),this.tokenDecoder=u(p6),this.snackBar=u(ui),this.router=u(Re),this.profileData=null,this.showRawIdToken=!1,this.showRawAccessToken=!1}ngOnInit(){this.loadProfileData(),this.authSubscription=this.authService.isAuthenticated$.subscribe(()=>{this.loadProfileData()})}ngOnDestroy(){this.authSubscription?.unsubscribe()}loadProfileData(){let i=this.authService.isAuthenticated(),r=this.oauthService.hasValidAccessToken();if(console.log("Authentication Status:",{isAuthenticated:i,hasValidAccessToken:r}),!i&&!r){this.profileData=null;return}let o=this.authService.getUserInfo(),a=this.authService.getAccessToken(),s=this.oauthService.getIdToken(),l=this.authService.getUserRoles();console.log("Profile Data Debug:",{isAuthenticated:i,hasUserInfo:!!o,hasAccessToken:!!a,accessTokenLength:a?.length,hasIdToken:!!s,idTokenLength:s?.length,roles:l}),this.profileData={isAuthenticated:i,userInfo:o,idToken:s?this.tokenDecoder.decodeToken(s):null,accessToken:a?this.tokenDecoder.decodeToken(a):null,roles:l,permissions:this.getUserPermissions()},console.log("Decoded tokens:",{idToken:this.profileData.idToken,accessToken:this.profileData.accessToken})}getUserPermissions(){let i=[];return this.authService.hasRole("HRAdmin")||this.authService.hasRole("Manager")?i.push("canAdd","canEdit","canDelete","canRead"):this.authService.hasRole("Employee")&&i.push("canRead"),i}toggleRawIdToken(){this.showRawIdToken=!this.showRawIdToken}toggleRawAccessToken(){this.showRawAccessToken=!this.showRawAccessToken}copyToClipboard(i,r){navigator.clipboard.writeText(i).then(()=>{this.showMessage(`${r} copied to clipboard`)}).catch(o=>{console.error("Failed to copy:",o),this.showMessage("Failed to copy to clipboard")})}formatJson(i){return JSON.stringify(i,null,2)}getExpirationStatus(i){return this.tokenDecoder.getExpirationStatus(i)}getExpirationColor(i){if(!i||!i.expiresIn)return"";let r=i.expiresIn/3600;return i.isExpired?"warn":r<1?"accent":"primary"}formatDate(i){return i?new Intl.DateTimeFormat("en-US",{dateStyle:"medium",timeStyle:"medium"}).format(i):"N/A"}showMessage(i){this.snackBar.open(i,"Close",{duration:3e3,horizontalPosition:"end",verticalPosition:"top"})}getScopes(i){return i?Array.isArray(i)?i:typeof i=="string"?i.split(" ").filter(r=>r.length>0):[]:[]}};n.\u0275fac=function(r){return new(r||n)},n.\u0275cmp=E({type:n,selectors:[["app-profile-overview"]],decls:5,vars:4,consts:[[4,"ngIf"],["class","not-authenticated",4,"ngIf"],["class","profile-container",4,"ngIf"],[1,"not-authenticated"],[1,"empty-state"],["mat-raised-button","","color","primary","routerLink","/login"],[1,"profile-container"],[1,"security-warning"],[1,"warning-content"],[1,"profile-card"],["mat-card-avatar",""],["class","info-grid",4,"ngIf"],[1,"tokens-card"],["label","ID Token"],["class","token-content",4,"ngIf"],["class","no-token",4,"ngIf"],["label","Access Token"],[1,"info-grid"],[1,"info-item"],[1,"value"],[1,"info-item","full-width"],["highlighted","",3,"color",4,"ngFor","ngForOf"],[3,"color",4,"ngFor","ngForOf"],["highlighted","",3,"color"],[3,"color"],[1,"token-content"],[1,"token-status"],["color","primary",4,"ngIf"],["color","warn",4,"ngIf"],[1,"token-metadata"],[1,"metadata-item"],["class","metadata-item",4,"ngIf"],[1,"token-actions"],["mat-button","",3,"click"],["expanded","",4,"ngIf"],[1,"json-display"],["color","primary"],["color","warn"],["expanded",""],[1,"token-display"],[1,"no-token"],[1,"scopes-list"],[4,"ngFor","ngForOf"]],template:function(r,o){r&1&&(m(0,"page-header"),A(1,yxe,4,1,"ng-container",0)(2,xxe,4,0,"ng-container",0),h(),A(3,Cxe,14,0,"div",1)(4,jxe,36,5,"div",2)),r&2&&(f(),v("ngIf",o.profileData==null?null:o.profileData.userInfo),f(),v("ngIf",!(o.profileData!=null&&o.profileData.isAuthenticated)),f(),v("ngIf",!(o.profileData!=null&&o.profileData.isAuthenticated)),f(),v("ngIf",o.profileData==null?null:o.profileData.isAuthenticated))},dependencies:[ut,vr,Jt,Ut,Ht,Ky,zt,Gt,yh,Wt,tt,st,Be,Mt,_U,pA,gU,MU,fA,DU,EU,$r,_i,zc,Fu,dp,hS,Vn,Qt],styles:[".profile-container[_ngcontent-%COMP%]{padding:16px;max-width:1200px;margin:0 auto;display:flex;flex-direction:column;gap:24px}.not-authenticated[_ngcontent-%COMP%]{padding:16px;max-width:600px;margin:0 auto}.not-authenticated[_ngcontent-%COMP%] .empty-state[_ngcontent-%COMP%]{display:flex;flex-direction:column;align-items:center;justify-content:center;padding:48px 16px;text-align:center}.not-authenticated[_ngcontent-%COMP%] .empty-state[_ngcontent-%COMP%] mat-icon[_ngcontent-%COMP%]{font-size:64px;width:64px;height:64px;color:#00000061;margin-bottom:16px}.not-authenticated[_ngcontent-%COMP%] .empty-state[_ngcontent-%COMP%] h2[_ngcontent-%COMP%]{margin:0 0 8px;font-size:24px;font-weight:500}.not-authenticated[_ngcontent-%COMP%] .empty-state[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{margin:0 0 24px;color:#0009}.not-authenticated[_ngcontent-%COMP%] .empty-state[_ngcontent-%COMP%] button[_ngcontent-%COMP%] mat-icon[_ngcontent-%COMP%]{font-size:20px;width:20px;height:20px;margin-right:8px;color:inherit}.security-warning[_ngcontent-%COMP%]{background-color:#fff3cd;border-left:4px solid #ff9800}.security-warning[_ngcontent-%COMP%] mat-card-content[_ngcontent-%COMP%]{padding:16px}.security-warning[_ngcontent-%COMP%] .warning-content[_ngcontent-%COMP%]{display:flex;align-items:center;gap:12px}.security-warning[_ngcontent-%COMP%] .warning-content[_ngcontent-%COMP%] mat-icon[_ngcontent-%COMP%]{color:#ff9800;flex-shrink:0}.security-warning[_ngcontent-%COMP%] .warning-content[_ngcontent-%COMP%] strong[_ngcontent-%COMP%]{font-weight:600}.profile-card[_ngcontent-%COMP%] mat-card-header[_ngcontent-%COMP%], .tokens-card[_ngcontent-%COMP%] mat-card-header[_ngcontent-%COMP%]{padding:16px;border-bottom:1px solid rgba(0,0,0,.12)}.profile-card[_ngcontent-%COMP%] mat-card-header[_ngcontent-%COMP%] mat-card-title[_ngcontent-%COMP%], .tokens-card[_ngcontent-%COMP%] mat-card-header[_ngcontent-%COMP%] mat-card-title[_ngcontent-%COMP%]{font-size:20px;font-weight:500;margin:0}.profile-card[_ngcontent-%COMP%] mat-card-header[_ngcontent-%COMP%] mat-card-subtitle[_ngcontent-%COMP%], .tokens-card[_ngcontent-%COMP%] mat-card-header[_ngcontent-%COMP%] mat-card-subtitle[_ngcontent-%COMP%]{margin-top:4px;color:#0009}.profile-card[_ngcontent-%COMP%] mat-card-content[_ngcontent-%COMP%], .tokens-card[_ngcontent-%COMP%] mat-card-content[_ngcontent-%COMP%]{padding:24px}.info-grid[_ngcontent-%COMP%]{display:grid;grid-template-columns:repeat(2,1fr);gap:24px}@media (max-width: 768px){.info-grid[_ngcontent-%COMP%]{grid-template-columns:1fr}}.info-grid[_ngcontent-%COMP%] .info-item[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:8px}.info-grid[_ngcontent-%COMP%] .info-item.full-width[_ngcontent-%COMP%]{grid-column:1/-1}.info-grid[_ngcontent-%COMP%] .info-item[_ngcontent-%COMP%] label[_ngcontent-%COMP%]{font-size:12px;font-weight:500;text-transform:uppercase;letter-spacing:.5px;color:#0009}.info-grid[_ngcontent-%COMP%] .info-item[_ngcontent-%COMP%] .value[_ngcontent-%COMP%]{font-size:16px;color:#000000de;word-break:break-word}.token-content[_ngcontent-%COMP%]{padding:24px 0;display:flex;flex-direction:column;gap:16px}.token-content[_ngcontent-%COMP%] .token-status[_ngcontent-%COMP%] mat-chip-set[_ngcontent-%COMP%] mat-chip[_ngcontent-%COMP%] mat-icon[_ngcontent-%COMP%]{margin-right:4px;font-size:18px;width:18px;height:18px}.token-content[_ngcontent-%COMP%] .token-metadata[_ngcontent-%COMP%]{display:grid;grid-template-columns:repeat(auto-fit,minmax(200px,1fr));gap:16px;padding:16px;background-color:#00000005;border-radius:4px}.token-content[_ngcontent-%COMP%] .token-metadata[_ngcontent-%COMP%] .metadata-item[_ngcontent-%COMP%] label[_ngcontent-%COMP%]{display:block;font-size:12px;font-weight:500;text-transform:uppercase;letter-spacing:.5px;color:#0009;margin-bottom:4px}.token-content[_ngcontent-%COMP%] .token-metadata[_ngcontent-%COMP%] .metadata-item[_ngcontent-%COMP%] div[_ngcontent-%COMP%]{font-size:14px;color:#000000de;word-break:break-word}.token-content[_ngcontent-%COMP%] .token-actions[_ngcontent-%COMP%]{display:flex;gap:8px;flex-wrap:wrap}.token-content[_ngcontent-%COMP%] .token-actions[_ngcontent-%COMP%] button[_ngcontent-%COMP%] mat-icon[_ngcontent-%COMP%]{margin-right:4px}.token-content[_ngcontent-%COMP%] mat-expansion-panel[_ngcontent-%COMP%]{margin-top:8px}.token-content[_ngcontent-%COMP%] .token-display[_ngcontent-%COMP%], .token-content[_ngcontent-%COMP%] .json-display[_ngcontent-%COMP%]{background-color:#f5f5f5;padding:16px;border-radius:4px;overflow-x:auto;font-family:Courier New,monospace;font-size:12px;line-height:1.5;margin:0;white-space:pre-wrap;word-break:break-all}.token-content[_ngcontent-%COMP%] .scopes-list[_ngcontent-%COMP%]{padding:16px}.token-content[_ngcontent-%COMP%] .scopes-list[_ngcontent-%COMP%] mat-chip-set[_ngcontent-%COMP%] mat-chip[_ngcontent-%COMP%]{margin:4px}.no-token[_ngcontent-%COMP%]{display:flex;flex-direction:column;align-items:center;justify-content:center;padding:48px 16px;text-align:center;color:#00000061}.no-token[_ngcontent-%COMP%] mat-icon[_ngcontent-%COMP%]{font-size:48px;width:48px;height:48px;margin-bottom:12px}.no-token[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{margin:0;font-size:14px}mat-chip-set[_ngcontent-%COMP%] mat-chip[_ngcontent-%COMP%]{margin:4px}@media (max-width: 768px){.profile-container[_ngcontent-%COMP%]{padding:12px}.profile-card[_ngcontent-%COMP%] mat-card-content[_ngcontent-%COMP%], .tokens-card[_ngcontent-%COMP%] mat-card-content[_ngcontent-%COMP%]{padding:16px}.token-content[_ngcontent-%COMP%]{padding:16px 0}.token-content[_ngcontent-%COMP%] .token-metadata[_ngcontent-%COMP%]{grid-template-columns:1fr}.security-warning[_ngcontent-%COMP%] .warning-content[_ngcontent-%COMP%]{flex-direction:column;align-items:flex-start}}"]});let t=n;return t})();var kU=(()=>{let n=class n{};n.\u0275fac=function(r){return new(r||n)},n.\u0275cmp=E({type:n,selectors:[["app-profile-settings"]],decls:14,vars:0,consts:[[1,"settings-container"],[1,"coming-soon"]],template:function(r,o){r&1&&(m(0,"page-header")(1,"mat-icon"),g(2,"settings"),h(),g(3,` Profile Settings -`),h(),m(4,"div",0)(5,"mat-card")(6,"mat-card-content")(7,"div",1)(8,"mat-icon"),g(9,"construction"),h(),m(10,"h2"),g(11,"Coming Soon"),h(),m(12,"p"),g(13,"User settings functionality will be available in a future update."),h()()()()())},dependencies:[ut,Ut,Ht,zt,tt,st,Qt],styles:[".settings-container[_ngcontent-%COMP%]{padding:16px;max-width:800px;margin:0 auto}.settings-container[_ngcontent-%COMP%] .coming-soon[_ngcontent-%COMP%]{display:flex;flex-direction:column;align-items:center;justify-content:center;padding:48px 16px;text-align:center}.settings-container[_ngcontent-%COMP%] .coming-soon[_ngcontent-%COMP%] mat-icon[_ngcontent-%COMP%]{font-size:64px;width:64px;height:64px;color:#00000061;margin-bottom:16px}.settings-container[_ngcontent-%COMP%] .coming-soon[_ngcontent-%COMP%] h2[_ngcontent-%COMP%]{margin:0 0 8px;font-size:24px;font-weight:500}.settings-container[_ngcontent-%COMP%] .coming-soon[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{margin:0;color:#0009}"]});let t=n;return t})();function Hxe(t,n){t&1&&(m(0,"div",2)(1,"mat-card",3)(2,"mat-card-content")(3,"div",4)(4,"mat-icon"),g(5,"info"),h(),m(6,"div")(7,"strong"),g(8,"AI features are disabled."),h(),m(9,"p"),g(10," To enable AI, set "),m(11,"code"),g(12,"aiEnabled: true"),h(),g(13," in "),m(14,"code"),g(15,"src/environments/environment.ts"),h(),g(16," and "),m(17,"code"),g(18,'"AiEnabled": true'),h(),g(19," in the API's "),m(20,"code"),g(21,"appsettings.json"),h(),g(22,". "),h()()()()()())}function zxe(t,n){t&1&&(m(0,"mat-icon",22),g(1,"chat"),h(),g(2," General Chat "))}function Uxe(t,n){if(t&1&&(m(0,"div",25)(1,"mat-icon",26),g(2),h(),m(3,"div",27),g(4),h()()),t&2){let e=n.$implicit;G("user-message",e.role==="user")("assistant-message",e.role==="assistant"),f(2),N(e.role==="user"?"person":"smart_toy"),f(2),N(e.content)}}function $xe(t,n){if(t&1&&(m(0,"div",23),A(1,Uxe,5,6,"div",24),h()),t&2){let e=x(2);f(),v("ngForOf",e.chatMessages)}}function Wxe(t,n){t&1&&(m(0,"div",28)(1,"mat-icon"),g(2,"chat_bubble_outline"),h(),m(3,"p"),g(4,"Start a conversation"),h()())}function Gxe(t,n){t&1&&(m(0,"div",29),M(1,"mat-spinner",30),m(2,"span"),g(3,"Thinking\u2026"),h()())}function qxe(t,n){if(t&1&&(m(0,"div",31)(1,"mat-icon"),g(2,"error_outline"),h(),m(3,"span"),g(4),h()()),t&2){let e=x(2);f(4),N(e.chatError)}}function Yxe(t,n){t&1&&(m(0,"mat-icon",22),g(1,"analytics"),h(),g(2," HR Insights "))}function Qxe(t,n){if(t&1){let e=q();m(0,"div",32)(1,"p",33),g(2,"Try asking:"),h(),m(3,"div",34)(4,"button",35),S("click",function(){T(e);let r=x(2);return I(r.hrInput="Which department has the most employees?")}),g(5,"Which department has the most employees?"),h(),m(6,"button",35),S("click",function(){T(e);let r=x(2);return I(r.hrInput="How many new hires joined this month?")}),g(7,"How many new hires joined this month?"),h(),m(8,"button",35),S("click",function(){T(e);let r=x(2);return I(r.hrInput="What is the gender distribution?")}),g(9,"What is the gender distribution?"),h(),m(10,"button",35),S("click",function(){T(e);let r=x(2);return I(r.hrInput="Who are the most recent hires?")}),g(11,"Who are the most recent hires?"),h()()()}}function Kxe(t,n){if(t&1&&(m(0,"span",38),g(1),h()),t&2){let e=x().$implicit;f(),pe("",e.executionTimeMs,"ms")}}function Zxe(t,n){if(t&1&&(m(0,"div",25)(1,"mat-icon",26),g(2),h(),m(3,"div",36)(4,"div",27),g(5),h(),A(6,Kxe,2,1,"span",37),h()()),t&2){let e=n.$implicit;G("user-message",e.role==="user")("assistant-message",e.role==="assistant"),f(2),N(e.role==="user"?"person":"analytics"),f(3),N(e.content),f(),v("ngIf",e.executionTimeMs)}}function Xxe(t,n){if(t&1&&(m(0,"div",23),A(1,Zxe,7,7,"div",24),h()),t&2){let e=x(2);f(),v("ngForOf",e.hrMessages)}}function Jxe(t,n){t&1&&(m(0,"div",29),M(1,"mat-spinner",30),m(2,"span"),g(3,"Fetching live data and reasoning\u2026"),h()())}function eCe(t,n){if(t&1&&(m(0,"div",31)(1,"mat-icon"),g(2,"error_outline"),h(),m(3,"span"),g(4),h()()),t&2){let e=x(2);f(4),N(e.hrError)}}function tCe(t,n){if(t&1){let e=q();m(0,"div",5)(1,"mat-tab-group",6)(2,"mat-tab"),A(3,zxe,3,0,"ng-template",7),m(4,"div",8)(5,"mat-card",9)(6,"mat-card-header")(7,"mat-card-title"),g(8,"AI Assistant"),h(),m(9,"mat-card-subtitle"),g(10,"Ask anything \u2014 general knowledge, writing help, code questions"),h(),m(11,"div",10)(12,"button",11),S("click",function(){T(e);let r=x();return I(r.clearChat())}),m(13,"mat-icon"),g(14,"delete_sweep"),h()()()(),m(15,"mat-card-content"),A(16,$xe,2,1,"div",12)(17,Wxe,5,0,"div",13)(18,Gxe,4,0,"div",14)(19,qxe,5,1,"div",15),h(),M(20,"mat-divider"),m(21,"mat-card-actions",16)(22,"mat-form-field",17)(23,"mat-label"),g(24,"Message"),h(),m(25,"input",18),Nr("ngModelChange",function(r){T(e);let o=x();return Zr(o.chatInput,r)||(o.chatInput=r),I(r)}),S("keydown",function(r){T(e);let o=x();return I(o.onChatKeydown(r))}),h()(),m(26,"button",19),S("click",function(){T(e);let r=x();return I(r.sendChat())}),m(27,"mat-icon"),g(28,"send"),h(),g(29," Send "),h()()()()(),m(30,"mat-tab"),A(31,Yxe,3,0,"ng-template",7),m(32,"div",8)(33,"mat-card",9)(34,"mat-card-header")(35,"mat-card-title"),g(36,"HR AI Assistant"),h(),m(37,"mat-card-subtitle"),g(38,"Ask about your live workforce data \u2014 headcount, departments, recent hires"),h(),m(39,"div",10)(40,"button",11),S("click",function(){T(e);let r=x();return I(r.clearHr())}),m(41,"mat-icon"),g(42,"delete_sweep"),h()()()(),m(43,"mat-card-content"),A(44,Qxe,12,0,"div",20)(45,Xxe,2,1,"div",12)(46,Jxe,4,0,"div",14)(47,eCe,5,1,"div",15),h(),M(48,"mat-divider"),m(49,"mat-card-actions",16)(50,"mat-form-field",17)(51,"mat-label"),g(52,"Question"),h(),m(53,"input",21),Nr("ngModelChange",function(r){T(e);let o=x();return Zr(o.hrInput,r)||(o.hrInput=r),I(r)}),S("keydown",function(r){T(e);let o=x();return I(o.onHrKeydown(r))}),h()(),m(54,"button",19),S("click",function(){T(e);let r=x();return I(r.sendHrInsight())}),m(55,"mat-icon"),g(56,"send"),h(),g(57," Ask "),h()()()()()()()}if(t&2){let e=x();f(16),v("ngIf",e.chatMessages.length>0),f(),v("ngIf",e.chatMessages.length===0&&!e.chatLoading),f(),v("ngIf",e.chatLoading),f(),v("ngIf",e.chatError),f(6),Fr("ngModel",e.chatInput),v("disabled",e.chatLoading),f(),v("disabled",!e.chatInput.trim()||e.chatLoading),f(18),v("ngIf",e.hrMessages.length===0&&!e.hrLoading),f(),v("ngIf",e.hrMessages.length>0),f(),v("ngIf",e.hrLoading),f(),v("ngIf",e.hrError),f(6),Fr("ngModel",e.hrInput),v("disabled",e.hrLoading),f(),v("disabled",!e.hrInput.trim()||e.hrLoading)}}var TU=(()=>{let n=class n{constructor(){this.aiService=u(Uc),this.destroy$=new z,this.aiEnabled=Qi.aiEnabled,this.chatMessages=[],this.chatInput="",this.chatLoading=!1,this.chatError="",this.hrMessages=[],this.hrInput="",this.hrLoading=!1,this.hrError=""}sendChat(){let i=this.chatInput.trim();!i||this.chatLoading||(this.chatMessages.push({role:"user",content:i}),this.chatInput="",this.chatLoading=!0,this.chatError="",this.aiService.chat(i).pipe(we(this.destroy$)).subscribe({next:r=>{this.chatMessages.push({role:"assistant",content:r.reply}),this.chatLoading=!1},error:r=>{this.chatError=r?.error?.detail??"Failed to get a response. Is the API running with AiEnabled: true?",this.chatLoading=!1}}))}sendHrInsight(){let i=this.hrInput.trim();!i||this.hrLoading||(this.hrMessages.push({role:"user",content:i}),this.hrInput="",this.hrLoading=!0,this.hrError="",this.aiService.hrInsight(i).pipe(we(this.destroy$)).subscribe({next:r=>{this.hrMessages.push({role:"assistant",content:r.answer,executionTimeMs:r.executionTimeMs}),this.hrLoading=!1},error:r=>{this.hrError=r?.error?.detail??"Failed to get HR insights. Is the API running with AiEnabled: true?",this.hrLoading=!1}}))}onChatKeydown(i){i.key==="Enter"&&!i.shiftKey&&(i.preventDefault(),this.sendChat())}onHrKeydown(i){i.key==="Enter"&&!i.shiftKey&&(i.preventDefault(),this.sendHrInsight())}clearChat(){this.chatMessages=[],this.chatError=""}clearHr(){this.hrMessages=[],this.hrError=""}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete()}};n.\u0275fac=function(r){return new(r||n)},n.\u0275cmp=E({type:n,selectors:[["app-ai-chat"]],decls:3,vars:2,consts:[["class","ai-disabled-banner",4,"ngIf"],["class","chat-container",4,"ngIf"],[1,"ai-disabled-banner"],[1,"disabled-card"],[1,"disabled-content"],[1,"chat-container"],["animationDuration","200ms"],["mat-tab-label",""],[1,"tab-content"],[1,"chat-card"],[1,"header-actions"],["mat-icon-button","","matTooltip","Clear conversation",3,"click"],["class","message-list",4,"ngIf"],["class","empty-state",4,"ngIf"],["class","loading-row",4,"ngIf"],["class","error-row",4,"ngIf"],[1,"input-area"],["appearance","outline",1,"message-input"],["matInput","","placeholder","Ask the AI assistant anything\u2026",3,"ngModelChange","keydown","ngModel","disabled"],["mat-fab","","extended","","color","primary",3,"click","disabled"],["class","suggestions",4,"ngIf"],["matInput","","placeholder","Ask about your workforce data\u2026",3,"ngModelChange","keydown","ngModel","disabled"],[1,"tab-icon"],[1,"message-list"],["class","message",3,"user-message","assistant-message",4,"ngFor","ngForOf"],[1,"message"],[1,"avatar-icon"],[1,"bubble"],[1,"empty-state"],[1,"loading-row"],["diameter","24"],[1,"error-row"],[1,"suggestions"],[1,"suggestions-label"],[1,"suggestion-list"],["mat-stroked-button","",3,"click"],[1,"bubble-wrapper"],["class","exec-time",4,"ngIf"],[1,"exec-time"]],template:function(r,o){r&1&&(M(0,"page-header"),A(1,Hxe,23,0,"div",0)(2,tCe,58,14,"div",1)),r&2&&(f(),v("ngIf",!o.aiEnabled),f(),v("ngIf",o.aiEnabled))},dependencies:[ut,vr,Jt,pl,Hi,qt,pu,Ut,Ht,WV,zt,Gt,yh,Wt,tt,st,Be,Mt,Yt,u3,Mn,en,Ci,Gi,Pi,gi,fi,zc,BI,Fu,dp,ho,Po,Qt],styles:[".ai-disabled-banner[_ngcontent-%COMP%]{padding:16px}.ai-disabled-banner[_ngcontent-%COMP%] .disabled-card[_ngcontent-%COMP%]{max-width:720px;margin:0 auto;border-left:4px solid #2196f3}.ai-disabled-banner[_ngcontent-%COMP%] .disabled-card[_ngcontent-%COMP%] mat-card-content[_ngcontent-%COMP%]{padding:20px}.ai-disabled-banner[_ngcontent-%COMP%] .disabled-card[_ngcontent-%COMP%] .disabled-content[_ngcontent-%COMP%]{display:flex;align-items:flex-start;gap:16px}.ai-disabled-banner[_ngcontent-%COMP%] .disabled-card[_ngcontent-%COMP%] .disabled-content[_ngcontent-%COMP%] mat-icon[_ngcontent-%COMP%]{font-size:28px;width:28px;height:28px;color:#2196f3;flex-shrink:0;margin-top:2px}.ai-disabled-banner[_ngcontent-%COMP%] .disabled-card[_ngcontent-%COMP%] .disabled-content[_ngcontent-%COMP%] strong[_ngcontent-%COMP%]{font-size:16px}.ai-disabled-banner[_ngcontent-%COMP%] .disabled-card[_ngcontent-%COMP%] .disabled-content[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{margin:8px 0 0;color:#0009;font-size:14px;line-height:1.5}.ai-disabled-banner[_ngcontent-%COMP%] .disabled-card[_ngcontent-%COMP%] .disabled-content[_ngcontent-%COMP%] code[_ngcontent-%COMP%]{background:#0000000f;padding:2px 6px;border-radius:4px;font-family:monospace;font-size:13px}.chat-container[_ngcontent-%COMP%]{padding:16px;max-width:900px;margin:0 auto}.tab-icon[_ngcontent-%COMP%]{margin-right:6px;font-size:18px;width:18px;height:18px;vertical-align:middle}.tab-content[_ngcontent-%COMP%]{padding-top:16px}.chat-card[_ngcontent-%COMP%] mat-card-header[_ngcontent-%COMP%]{display:flex;align-items:flex-start;padding:16px 16px 0;margin-bottom:0}.chat-card[_ngcontent-%COMP%] mat-card-header[_ngcontent-%COMP%] .mat-mdc-card-header-text[_ngcontent-%COMP%]{flex:1}.chat-card[_ngcontent-%COMP%] mat-card-header[_ngcontent-%COMP%] .header-actions[_ngcontent-%COMP%]{margin-left:auto}.chat-card[_ngcontent-%COMP%] mat-card-content[_ngcontent-%COMP%]{padding:16px;min-height:320px;max-height:480px;overflow-y:auto}.message-list[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:12px}.message[_ngcontent-%COMP%]{display:flex;align-items:flex-start;gap:10px}.message[_ngcontent-%COMP%] .avatar-icon[_ngcontent-%COMP%]{font-size:22px;width:22px;height:22px;flex-shrink:0;margin-top:4px}.message[_ngcontent-%COMP%] .bubble[_ngcontent-%COMP%]{padding:10px 14px;border-radius:12px;font-size:14px;line-height:1.6;white-space:pre-wrap;word-break:break-word;max-width:100%}.message[_ngcontent-%COMP%] .bubble-wrapper[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:4px}.message[_ngcontent-%COMP%] .bubble-wrapper[_ngcontent-%COMP%] .exec-time[_ngcontent-%COMP%]{font-size:11px;color:#00000061;padding-left:4px}.message.user-message[_ngcontent-%COMP%]{flex-direction:row-reverse}.message.user-message[_ngcontent-%COMP%] .avatar-icon[_ngcontent-%COMP%]{color:#3f51b5}.message.user-message[_ngcontent-%COMP%] .bubble[_ngcontent-%COMP%]{background:#e8eaf6;color:#000000de}.message.assistant-message[_ngcontent-%COMP%] .avatar-icon[_ngcontent-%COMP%]{color:#4caf50}.message.assistant-message[_ngcontent-%COMP%] .bubble[_ngcontent-%COMP%]{background:#f5f5f5;color:#000000de}.empty-state[_ngcontent-%COMP%]{display:flex;flex-direction:column;align-items:center;justify-content:center;min-height:240px;color:#00000061}.empty-state[_ngcontent-%COMP%] mat-icon[_ngcontent-%COMP%]{font-size:48px;width:48px;height:48px;margin-bottom:12px}.empty-state[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{margin:0;font-size:14px}.suggestions[_ngcontent-%COMP%]{padding-bottom:16px}.suggestions[_ngcontent-%COMP%] .suggestions-label[_ngcontent-%COMP%]{font-size:13px;color:#0000008a;margin:0 0 10px}.suggestions[_ngcontent-%COMP%] .suggestion-list[_ngcontent-%COMP%]{display:flex;flex-wrap:wrap;gap:8px}.suggestions[_ngcontent-%COMP%] .suggestion-list[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{font-size:13px;height:32px}.loading-row[_ngcontent-%COMP%]{display:flex;align-items:center;gap:12px;padding:16px 0;color:#0000008a;font-size:14px}.error-row[_ngcontent-%COMP%]{display:flex;align-items:flex-start;gap:8px;padding:12px;border-radius:6px;background:#fff3e0;color:#e65100;font-size:14px;margin-top:8px}.error-row[_ngcontent-%COMP%] mat-icon[_ngcontent-%COMP%]{font-size:20px;width:20px;height:20px;flex-shrink:0}.input-area[_ngcontent-%COMP%]{padding:12px 16px;display:flex;gap:12px;align-items:flex-end}.input-area[_ngcontent-%COMP%] .message-input[_ngcontent-%COMP%]{flex:1;margin-bottom:0}@media (max-width: 600px){.chat-container[_ngcontent-%COMP%]{padding:8px}.input-area[_ngcontent-%COMP%]{flex-direction:column;align-items:stretch}.input-area[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{width:100%}.suggestion-list[_ngcontent-%COMP%]{flex-direction:column}}"]});let t=n;return t})();var IU=[{path:"",component:l6,canActivate:[mI],canActivateChild:[mI],children:[{path:"",redirectTo:"dashboard",pathMatch:"full"},{path:"dashboard",component:g6},{path:"employees",component:A6},{path:"employees/create",component:dA,canActivate:[d_]},{path:"employees/edit/:id",component:dA,canActivate:[d_]},{path:"employees/:id",component:O6},{path:"departments",component:K6},{path:"departments/create",component:uA,canActivate:[d_]},{path:"departments/edit/:id",component:uA,canActivate:[d_]},{path:"departments/:id",component:Z6},{path:"positions",component:nU},{path:"positions/create",component:mA,canActivate:[u_]},{path:"positions/edit/:id",component:mA,canActivate:[u_]},{path:"positions/:id",component:oU},{path:"salary-ranges",component:sU},{path:"salary-ranges/create",component:hA,canActivate:[u_]},{path:"salary-ranges/edit/:id",component:hA,canActivate:[u_]},{path:"salary-ranges/:id",component:cU},{path:"profile",children:[{path:"overview",component:SU},{path:"settings",component:kU},{path:"",redirectTo:"overview",pathMatch:"full"}]},{path:"ai-chat",component:TU},{path:"403",component:_6},{path:"404",component:b6},{path:"500",component:v6}]},{path:"auth",component:c6,children:[{path:"register",component:y6}]},{path:"callback",component:x6},{path:"**",redirectTo:"dashboard"}];var AU=(t,n)=>{let e=u(Ot);if(!e.isAuthenticated())return n(t);let i=e.getAccessToken();if(!i)return n(t);let r=t.clone({setHeaders:{Authorization:`Bearer ${i}`}});return n(r)};var OU={providers:[iE(),{provide:SI,useValue:Qi.baseUrl},yL(),Zl(()=>u(Ot).initAuth()),Zl(()=>u(i8).load()),Zl(()=>u(e8).load()),RM(PM([AU,...c8])),dS(IU,uS({scrollPositionRestoration:"enabled",anchorScrolling:"enabled"}),Av()),lj(),JH(XH()),J3({loader:ej({prefix:"i18n/",suffix:".json"})}),Db(wc.forRoot()),w3([...H3()]),{provide:Dg,useFactory:jz,deps:[oa],multi:!0},{provide:bc,deps:[Cz],useFactory:t=>t.getPaginatorIntl()},{provide:$S,useValue:{appearance:"outlined"}},$V({parse:{dateInput:"yyyy-MM-dd"},display:{dateInput:"yyyy-MM-dd",monthYearLabel:"yyyy MMM",dateA11yLabel:"LL",monthYearA11yLabel:"yyyy MMM"}}),_3({parse:{dateInput:"yyyy-MM-dd",yearInput:"yyyy",monthInput:"MMMM",datetimeInput:"yyyy-MM-dd HH:mm",timeInput:"HH:mm"},display:{dateInput:"yyyy-MM-dd",yearInput:"yyyy",monthInput:"MMMM",datetimeInput:"yyyy-MM-dd HH:mm",timeInput:"HH:mm",monthYearLabel:"yyyy MMMM",dateA11yLabel:"LL",monthYearA11yLabel:"MMMM yyyy",popupHeaderDateLabel:"MMM dd, E"}})]};var RU=(()=>{let n=class n{constructor(){this.preloader=u(t8),this.settings=u(ca)}ngOnInit(){this.settings.setDirection(),this.settings.setTheme()}ngAfterViewInit(){this.preloader.hide()}};n.\u0275fac=function(r){return new(r||n)},n.\u0275cmp=E({type:n,selectors:[["app-root"]],decls:1,vars:0,template:function(r,o){r&1&&M(0,"router-outlet")},dependencies:[al],encapsulation:2});let t=n;return t})();SM(RU,OU).catch(t=>console.error(t)); + 5.302-3.935,5.302-7.362C15.76,3.906,12.285,0.431,7.999,0.431z`]],template:function(r,o){r&1&&(m(0,"a",0),ii(),m(1,"svg",1),M(2,"path",2),h()())},dependencies:[Fe,Ft],encapsulation:2});let t=n;return t})();var y8="mat-badge-content",nfe=(()=>{class t{static \u0275fac=function(i){return new(i||t)};static \u0275cmp=E({type:t,selectors:[["ng-component"]],decls:0,vars:0,template:function(i,r){},styles:[`.mat-badge{position:relative}.mat-badge.mat-badge{overflow:visible}.mat-badge-content{position:absolute;text-align:center;display:inline-block;transition:transform 200ms ease-in-out;transform:scale(0.6);overflow:hidden;white-space:nowrap;text-overflow:ellipsis;box-sizing:border-box;pointer-events:none;background-color:var(--mat-badge-background-color, var(--mat-sys-error));color:var(--mat-badge-text-color, var(--mat-sys-on-error));font-family:var(--mat-badge-text-font, var(--mat-sys-label-small-font));font-weight:var(--mat-badge-text-weight, var(--mat-sys-label-small-weight));border-radius:var(--mat-badge-container-shape, var(--mat-sys-corner-full))}.mat-badge-above .mat-badge-content{bottom:100%}.mat-badge-below .mat-badge-content{top:100%}.mat-badge-before .mat-badge-content{right:100%}[dir=rtl] .mat-badge-before .mat-badge-content{right:auto;left:100%}.mat-badge-after .mat-badge-content{left:100%}[dir=rtl] .mat-badge-after .mat-badge-content{left:auto;right:100%}@media(forced-colors: active){.mat-badge-content{outline:solid 1px;border-radius:0}}.mat-badge-disabled .mat-badge-content{background-color:var(--mat-badge-disabled-state-background-color, color-mix(in srgb, var(--mat-sys-error) 38%, transparent));color:var(--mat-badge-disabled-state-text-color, var(--mat-sys-on-error))}.mat-badge-hidden .mat-badge-content{display:none}.ng-animate-disabled .mat-badge-content,.mat-badge-content._mat-animation-noopable{transition:none}.mat-badge-content.mat-badge-active{transform:none}.mat-badge-small .mat-badge-content{width:var(--mat-badge-legacy-small-size-container-size, unset);height:var(--mat-badge-legacy-small-size-container-size, unset);min-width:var(--mat-badge-small-size-container-size, 6px);min-height:var(--mat-badge-small-size-container-size, 6px);line-height:var(--mat-badge-small-size-line-height, 6px);padding:var(--mat-badge-small-size-container-padding, 0);font-size:var(--mat-badge-small-size-text-size, 0);margin:var(--mat-badge-small-size-container-offset, -6px 0)}.mat-badge-small.mat-badge-overlap .mat-badge-content{margin:var(--mat-badge-small-size-container-overlap-offset, -6px)}.mat-badge-medium .mat-badge-content{width:var(--mat-badge-legacy-container-size, unset);height:var(--mat-badge-legacy-container-size, unset);min-width:var(--mat-badge-container-size, 16px);min-height:var(--mat-badge-container-size, 16px);line-height:var(--mat-badge-line-height, 16px);padding:var(--mat-badge-container-padding, 0 4px);font-size:var(--mat-badge-text-size, var(--mat-sys-label-small-size));margin:var(--mat-badge-container-offset, -12px 0)}.mat-badge-medium.mat-badge-overlap .mat-badge-content{margin:var(--mat-badge-container-overlap-offset, -12px)}.mat-badge-large .mat-badge-content{width:var(--mat-badge-legacy-large-size-container-size, unset);height:var(--mat-badge-legacy-large-size-container-size, unset);min-width:var(--mat-badge-large-size-container-size, 16px);min-height:var(--mat-badge-large-size-container-size, 16px);line-height:var(--mat-badge-large-size-line-height, 16px);padding:var(--mat-badge-large-size-container-padding, 0 4px);font-size:var(--mat-badge-large-size-text-size, var(--mat-sys-label-small-size));margin:var(--mat-badge-large-size-container-offset, -12px 0)}.mat-badge-large.mat-badge-overlap .mat-badge-content{margin:var(--mat-badge-large-size-container-overlap-offset, -12px)} +`],encapsulation:2,changeDetection:0})}return t})(),x8=(()=>{class t{_ngZone=u(ae);_elementRef=u(Y);_ariaDescriber=u(nh);_renderer=u(ze);_animationsDisabled=Qe();_idGenerator=u(et);get color(){return this._color}set color(e){this._setColor(e),this._color=e}_color="primary";overlap=!0;disabled;position="above after";get content(){return this._content}set content(e){this._updateRenderedContent(e)}_content;get description(){return this._description}set description(e){this._updateDescription(e)}_description;size="medium";hidden;_badgeElement;_inlineBadgeDescription;_isInitialized=!1;_interactivityChecker=u(Dc);_document=u(_e);constructor(){let e=u(ft);e.load(nfe),e.load(ro)}isAbove(){return this.position.indexOf("below")===-1}isAfter(){return this.position.indexOf("before")===-1}getBadgeElement(){return this._badgeElement}ngOnInit(){this._clearExistingBadges(),this.content&&!this._badgeElement&&(this._badgeElement=this._createBadgeElement(),this._updateRenderedContent(this.content)),this._isInitialized=!0}ngOnDestroy(){this._renderer.destroyNode&&(this._renderer.destroyNode(this._badgeElement),this._inlineBadgeDescription?.remove()),this._ariaDescriber.removeDescription(this._elementRef.nativeElement,this.description)}_isHostInteractive(){return this._interactivityChecker.isFocusable(this._elementRef.nativeElement,{ignoreVisibility:!0})}_createBadgeElement(){let e=this._renderer.createElement("span"),i="mat-badge-active";return e.setAttribute("id",this._idGenerator.getId("mat-badge-content-")),e.setAttribute("aria-hidden","true"),e.classList.add(y8),this._animationsDisabled&&e.classList.add("_mat-animation-noopable"),this._elementRef.nativeElement.appendChild(e),typeof requestAnimationFrame=="function"&&!this._animationsDisabled?this._ngZone.runOutsideAngular(()=>{requestAnimationFrame(()=>{e.classList.add(i)})}):e.classList.add(i),e}_updateRenderedContent(e){let i=`${e??""}`.trim();this._isInitialized&&i&&!this._badgeElement&&(this._badgeElement=this._createBadgeElement()),this._badgeElement&&(this._badgeElement.textContent=i),this._content=i}_updateDescription(e){this._ariaDescriber.removeDescription(this._elementRef.nativeElement,this.description),(!e||this._isHostInteractive())&&this._removeInlineDescription(),this._description=e,this._isHostInteractive()?this._ariaDescriber.describe(this._elementRef.nativeElement,e):this._updateInlineDescription()}_updateInlineDescription(){this._inlineBadgeDescription||(this._inlineBadgeDescription=this._document.createElement("span"),this._inlineBadgeDescription.classList.add("cdk-visually-hidden")),this._inlineBadgeDescription.textContent=this.description,this._badgeElement?.appendChild(this._inlineBadgeDescription)}_removeInlineDescription(){this._inlineBadgeDescription?.remove(),this._inlineBadgeDescription=void 0}_setColor(e){let i=this._elementRef.nativeElement.classList;i.remove(`mat-badge-${this._color}`),e&&i.add(`mat-badge-${e}`)}_clearExistingBadges(){let e=this._elementRef.nativeElement.querySelectorAll(`:scope > .${y8}`);for(let i of Array.from(e))i!==this._badgeElement&&i.remove()}static \u0275fac=function(i){return new(i||t)};static \u0275dir=P({type:t,selectors:[["","matBadge",""]],hostAttrs:[1,"mat-badge"],hostVars:20,hostBindings:function(i,r){i&2&&G("mat-badge-overlap",r.overlap)("mat-badge-above",r.isAbove())("mat-badge-below",!r.isAbove())("mat-badge-before",!r.isAfter())("mat-badge-after",r.isAfter())("mat-badge-small",r.size==="small")("mat-badge-medium",r.size==="medium")("mat-badge-large",r.size==="large")("mat-badge-hidden",r.hidden||!r.content)("mat-badge-disabled",r.disabled)},inputs:{color:[0,"matBadgeColor","color"],overlap:[2,"matBadgeOverlap","overlap",L],disabled:[2,"matBadgeDisabled","disabled",L],position:[0,"matBadgePosition","position"],content:[0,"matBadge","content"],description:[0,"matBadgeDescription","description"],size:[0,"matBadgeSize","size"],hidden:[2,"matBadgeHidden","hidden",L]}})}return t})(),C8=(()=>{class t{static \u0275fac=function(i){return new(i||t)};static \u0275mod=ee({type:t});static \u0275inj=J({imports:[El,De,De]})}return t})();var Kr=(()=>{class t{get vertical(){return this._vertical}set vertical(e){this._vertical=Vi(e)}_vertical=!1;get inset(){return this._inset}set inset(e){this._inset=Vi(e)}_inset=!1;static \u0275fac=function(i){return new(i||t)};static \u0275cmp=E({type:t,selectors:[["mat-divider"]],hostAttrs:["role","separator",1,"mat-divider"],hostVars:7,hostBindings:function(i,r){i&2&&(X("aria-orientation",r.vertical?"vertical":"horizontal"),G("mat-divider-vertical",r.vertical)("mat-divider-horizontal",!r.vertical)("mat-divider-inset",r.inset))},inputs:{vertical:"vertical",inset:"inset"},decls:0,vars:0,template:function(i,r){},styles:[`.mat-divider{display:block;margin:0;border-top-style:solid;border-top-color:var(--mat-divider-color, var(--mat-sys-outline-variant));border-top-width:var(--mat-divider-width, 1px)}.mat-divider.mat-divider-vertical{border-top:0;border-right-style:solid;border-right-color:var(--mat-divider-color, var(--mat-sys-outline-variant));border-right-width:var(--mat-divider-width, 1px)}.mat-divider.mat-divider-inset{margin-left:80px}[dir=rtl] .mat-divider.mat-divider-inset{margin-left:auto;margin-right:80px} +`],encapsulation:2,changeDetection:0})}return t})(),Nr=(()=>{class t{static \u0275fac=function(i){return new(i||t)};static \u0275mod=ee({type:t});static \u0275inj=J({imports:[De,De]})}return t})();var w8=["*"],D8=`.mdc-list{margin:0;padding:8px 0;list-style-type:none}.mdc-list:focus{outline:none}.mdc-list-item{display:flex;position:relative;justify-content:flex-start;overflow:hidden;padding:0;align-items:stretch;cursor:pointer;padding-left:16px;padding-right:16px;background-color:var(--mat-list-list-item-container-color, transparent);border-radius:var(--mat-list-list-item-container-shape, var(--mat-sys-corner-none))}.mdc-list-item.mdc-list-item--selected{background-color:var(--mat-list-list-item-selected-container-color)}.mdc-list-item:focus{outline:0}.mdc-list-item.mdc-list-item--disabled{cursor:auto}.mdc-list-item.mdc-list-item--with-one-line{height:var(--mat-list-list-item-one-line-container-height, 48px)}.mdc-list-item.mdc-list-item--with-one-line .mdc-list-item__start{align-self:center;margin-top:0}.mdc-list-item.mdc-list-item--with-one-line .mdc-list-item__end{align-self:center;margin-top:0}.mdc-list-item.mdc-list-item--with-two-lines{height:var(--mat-list-list-item-two-line-container-height, 64px)}.mdc-list-item.mdc-list-item--with-two-lines .mdc-list-item__start{align-self:flex-start;margin-top:16px}.mdc-list-item.mdc-list-item--with-two-lines .mdc-list-item__end{align-self:center;margin-top:0}.mdc-list-item.mdc-list-item--with-three-lines{height:var(--mat-list-list-item-three-line-container-height, 88px)}.mdc-list-item.mdc-list-item--with-three-lines .mdc-list-item__start{align-self:flex-start;margin-top:16px}.mdc-list-item.mdc-list-item--with-three-lines .mdc-list-item__end{align-self:flex-start;margin-top:16px}.mdc-list-item.mdc-list-item--selected::before,.mdc-list-item.mdc-list-item--selected:focus::before,.mdc-list-item:not(.mdc-list-item--selected):focus::before{position:absolute;box-sizing:border-box;width:100%;height:100%;top:0;left:0;content:"";pointer-events:none}a.mdc-list-item{color:inherit;text-decoration:none}.mdc-list-item__start{fill:currentColor;flex-shrink:0;pointer-events:none}.mdc-list-item--with-leading-icon .mdc-list-item__start{color:var(--mat-list-list-item-leading-icon-color, var(--mat-sys-on-surface-variant));width:var(--mat-list-list-item-leading-icon-size, 24px);height:var(--mat-list-list-item-leading-icon-size, 24px);margin-left:16px;margin-right:32px}[dir=rtl] .mdc-list-item--with-leading-icon .mdc-list-item__start{margin-left:32px;margin-right:16px}.mdc-list-item--with-leading-icon:hover .mdc-list-item__start{color:var(--mat-list-list-item-hover-leading-icon-color)}.mdc-list-item--with-leading-avatar .mdc-list-item__start{width:var(--mat-list-list-item-leading-avatar-size, 40px);height:var(--mat-list-list-item-leading-avatar-size, 40px);margin-left:16px;margin-right:16px;border-radius:50%}.mdc-list-item--with-leading-avatar .mdc-list-item__start,[dir=rtl] .mdc-list-item--with-leading-avatar .mdc-list-item__start{margin-left:16px;margin-right:16px;border-radius:50%}.mdc-list-item__end{flex-shrink:0;pointer-events:none}.mdc-list-item--with-trailing-meta .mdc-list-item__end{font-family:var(--mat-list-list-item-trailing-supporting-text-font, var(--mat-sys-label-small-font));line-height:var(--mat-list-list-item-trailing-supporting-text-line-height, var(--mat-sys-label-small-line-height));font-size:var(--mat-list-list-item-trailing-supporting-text-size, var(--mat-sys-label-small-size));font-weight:var(--mat-list-list-item-trailing-supporting-text-weight, var(--mat-sys-label-small-weight));letter-spacing:var(--mat-list-list-item-trailing-supporting-text-tracking, var(--mat-sys-label-small-tracking))}.mdc-list-item--with-trailing-icon .mdc-list-item__end{color:var(--mat-list-list-item-trailing-icon-color, var(--mat-sys-on-surface-variant));width:var(--mat-list-list-item-trailing-icon-size, 24px);height:var(--mat-list-list-item-trailing-icon-size, 24px)}.mdc-list-item--with-trailing-icon:hover .mdc-list-item__end{color:var(--mat-list-list-item-hover-trailing-icon-color)}.mdc-list-item.mdc-list-item--with-trailing-meta .mdc-list-item__end{color:var(--mat-list-list-item-trailing-supporting-text-color, var(--mat-sys-on-surface-variant))}.mdc-list-item--selected.mdc-list-item--with-trailing-icon .mdc-list-item__end{color:var(--mat-list-list-item-selected-trailing-icon-color, var(--mat-sys-primary))}.mdc-list-item__content{text-overflow:ellipsis;white-space:nowrap;overflow:hidden;align-self:center;flex:1;pointer-events:none}.mdc-list-item--with-two-lines .mdc-list-item__content,.mdc-list-item--with-three-lines .mdc-list-item__content{align-self:stretch}.mdc-list-item__primary-text{text-overflow:ellipsis;white-space:nowrap;overflow:hidden;color:var(--mat-list-list-item-label-text-color, var(--mat-sys-on-surface));font-family:var(--mat-list-list-item-label-text-font, var(--mat-sys-body-large-font));line-height:var(--mat-list-list-item-label-text-line-height, var(--mat-sys-body-large-line-height));font-size:var(--mat-list-list-item-label-text-size, var(--mat-sys-body-large-size));font-weight:var(--mat-list-list-item-label-text-weight, var(--mat-sys-body-large-weight));letter-spacing:var(--mat-list-list-item-label-text-tracking, var(--mat-sys-body-large-tracking))}.mdc-list-item:hover .mdc-list-item__primary-text{color:var(--mat-list-list-item-hover-label-text-color, var(--mat-sys-on-surface))}.mdc-list-item:focus .mdc-list-item__primary-text{color:var(--mat-list-list-item-focus-label-text-color, var(--mat-sys-on-surface))}.mdc-list-item--with-two-lines .mdc-list-item__primary-text,.mdc-list-item--with-three-lines .mdc-list-item__primary-text{display:block;margin-top:0;line-height:normal;margin-bottom:-20px}.mdc-list-item--with-two-lines .mdc-list-item__primary-text::before,.mdc-list-item--with-three-lines .mdc-list-item__primary-text::before{display:inline-block;width:0;height:28px;content:"";vertical-align:0}.mdc-list-item--with-two-lines .mdc-list-item__primary-text::after,.mdc-list-item--with-three-lines .mdc-list-item__primary-text::after{display:inline-block;width:0;height:20px;content:"";vertical-align:-20px}.mdc-list-item__secondary-text{text-overflow:ellipsis;white-space:nowrap;overflow:hidden;display:block;margin-top:0;color:var(--mat-list-list-item-supporting-text-color, var(--mat-sys-on-surface-variant));font-family:var(--mat-list-list-item-supporting-text-font, var(--mat-sys-body-medium-font));line-height:var(--mat-list-list-item-supporting-text-line-height, var(--mat-sys-body-medium-line-height));font-size:var(--mat-list-list-item-supporting-text-size, var(--mat-sys-body-medium-size));font-weight:var(--mat-list-list-item-supporting-text-weight, var(--mat-sys-body-medium-weight));letter-spacing:var(--mat-list-list-item-supporting-text-tracking, var(--mat-sys-body-medium-tracking))}.mdc-list-item__secondary-text::before{display:inline-block;width:0;height:20px;content:"";vertical-align:0}.mdc-list-item--with-three-lines .mdc-list-item__secondary-text{white-space:normal;line-height:20px}.mdc-list-item--with-overline .mdc-list-item__secondary-text{white-space:nowrap;line-height:auto}.mdc-list-item--with-leading-radio.mdc-list-item,.mdc-list-item--with-leading-checkbox.mdc-list-item,.mdc-list-item--with-leading-icon.mdc-list-item,.mdc-list-item--with-leading-avatar.mdc-list-item{padding-left:0;padding-right:16px}[dir=rtl] .mdc-list-item--with-leading-radio.mdc-list-item,[dir=rtl] .mdc-list-item--with-leading-checkbox.mdc-list-item,[dir=rtl] .mdc-list-item--with-leading-icon.mdc-list-item,[dir=rtl] .mdc-list-item--with-leading-avatar.mdc-list-item{padding-left:16px;padding-right:0}.mdc-list-item--with-leading-radio.mdc-list-item--with-two-lines .mdc-list-item__primary-text,.mdc-list-item--with-leading-checkbox.mdc-list-item--with-two-lines .mdc-list-item__primary-text,.mdc-list-item--with-leading-icon.mdc-list-item--with-two-lines .mdc-list-item__primary-text,.mdc-list-item--with-leading-avatar.mdc-list-item--with-two-lines .mdc-list-item__primary-text{display:block;margin-top:0;line-height:normal;margin-bottom:-20px}.mdc-list-item--with-leading-radio.mdc-list-item--with-two-lines .mdc-list-item__primary-text::before,.mdc-list-item--with-leading-checkbox.mdc-list-item--with-two-lines .mdc-list-item__primary-text::before,.mdc-list-item--with-leading-icon.mdc-list-item--with-two-lines .mdc-list-item__primary-text::before,.mdc-list-item--with-leading-avatar.mdc-list-item--with-two-lines .mdc-list-item__primary-text::before{display:inline-block;width:0;height:32px;content:"";vertical-align:0}.mdc-list-item--with-leading-radio.mdc-list-item--with-two-lines .mdc-list-item__primary-text::after,.mdc-list-item--with-leading-checkbox.mdc-list-item--with-two-lines .mdc-list-item__primary-text::after,.mdc-list-item--with-leading-icon.mdc-list-item--with-two-lines .mdc-list-item__primary-text::after,.mdc-list-item--with-leading-avatar.mdc-list-item--with-two-lines .mdc-list-item__primary-text::after{display:inline-block;width:0;height:20px;content:"";vertical-align:-20px}.mdc-list-item--with-leading-radio.mdc-list-item--with-two-lines.mdc-list-item--with-trailing-meta .mdc-list-item__end,.mdc-list-item--with-leading-checkbox.mdc-list-item--with-two-lines.mdc-list-item--with-trailing-meta .mdc-list-item__end,.mdc-list-item--with-leading-icon.mdc-list-item--with-two-lines.mdc-list-item--with-trailing-meta .mdc-list-item__end,.mdc-list-item--with-leading-avatar.mdc-list-item--with-two-lines.mdc-list-item--with-trailing-meta .mdc-list-item__end{display:block;margin-top:0;line-height:normal}.mdc-list-item--with-leading-radio.mdc-list-item--with-two-lines.mdc-list-item--with-trailing-meta .mdc-list-item__end::before,.mdc-list-item--with-leading-checkbox.mdc-list-item--with-two-lines.mdc-list-item--with-trailing-meta .mdc-list-item__end::before,.mdc-list-item--with-leading-icon.mdc-list-item--with-two-lines.mdc-list-item--with-trailing-meta .mdc-list-item__end::before,.mdc-list-item--with-leading-avatar.mdc-list-item--with-two-lines.mdc-list-item--with-trailing-meta .mdc-list-item__end::before{display:inline-block;width:0;height:32px;content:"";vertical-align:0}.mdc-list-item--with-trailing-icon.mdc-list-item,[dir=rtl] .mdc-list-item--with-trailing-icon.mdc-list-item{padding-left:0;padding-right:0}.mdc-list-item--with-trailing-icon .mdc-list-item__end{margin-left:16px;margin-right:16px}.mdc-list-item--with-trailing-meta.mdc-list-item{padding-left:16px;padding-right:0}[dir=rtl] .mdc-list-item--with-trailing-meta.mdc-list-item{padding-left:0;padding-right:16px}.mdc-list-item--with-trailing-meta .mdc-list-item__end{-webkit-user-select:none;user-select:none;margin-left:28px;margin-right:16px}[dir=rtl] .mdc-list-item--with-trailing-meta .mdc-list-item__end{margin-left:16px;margin-right:28px}.mdc-list-item--with-trailing-meta.mdc-list-item--with-three-lines .mdc-list-item__end,.mdc-list-item--with-trailing-meta.mdc-list-item--with-two-lines .mdc-list-item__end{display:block;line-height:normal;align-self:flex-start;margin-top:0}.mdc-list-item--with-trailing-meta.mdc-list-item--with-three-lines .mdc-list-item__end::before,.mdc-list-item--with-trailing-meta.mdc-list-item--with-two-lines .mdc-list-item__end::before{display:inline-block;width:0;height:28px;content:"";vertical-align:0}.mdc-list-item--with-leading-radio .mdc-list-item__start,.mdc-list-item--with-leading-checkbox .mdc-list-item__start{margin-left:8px;margin-right:24px}[dir=rtl] .mdc-list-item--with-leading-radio .mdc-list-item__start,[dir=rtl] .mdc-list-item--with-leading-checkbox .mdc-list-item__start{margin-left:24px;margin-right:8px}.mdc-list-item--with-leading-radio.mdc-list-item--with-two-lines .mdc-list-item__start,.mdc-list-item--with-leading-checkbox.mdc-list-item--with-two-lines .mdc-list-item__start{align-self:flex-start;margin-top:8px}.mdc-list-item--with-trailing-radio.mdc-list-item,.mdc-list-item--with-trailing-checkbox.mdc-list-item{padding-left:16px;padding-right:0}[dir=rtl] .mdc-list-item--with-trailing-radio.mdc-list-item,[dir=rtl] .mdc-list-item--with-trailing-checkbox.mdc-list-item{padding-left:0;padding-right:16px}.mdc-list-item--with-trailing-radio.mdc-list-item--with-leading-icon,.mdc-list-item--with-trailing-radio.mdc-list-item--with-leading-avatar,.mdc-list-item--with-trailing-checkbox.mdc-list-item--with-leading-icon,.mdc-list-item--with-trailing-checkbox.mdc-list-item--with-leading-avatar{padding-left:0}[dir=rtl] .mdc-list-item--with-trailing-radio.mdc-list-item--with-leading-icon,[dir=rtl] .mdc-list-item--with-trailing-radio.mdc-list-item--with-leading-avatar,[dir=rtl] .mdc-list-item--with-trailing-checkbox.mdc-list-item--with-leading-icon,[dir=rtl] .mdc-list-item--with-trailing-checkbox.mdc-list-item--with-leading-avatar{padding-right:0}.mdc-list-item--with-trailing-radio .mdc-list-item__end,.mdc-list-item--with-trailing-checkbox .mdc-list-item__end{margin-left:24px;margin-right:8px}[dir=rtl] .mdc-list-item--with-trailing-radio .mdc-list-item__end,[dir=rtl] .mdc-list-item--with-trailing-checkbox .mdc-list-item__end{margin-left:8px;margin-right:24px}.mdc-list-item--with-trailing-radio.mdc-list-item--with-three-lines .mdc-list-item__end,.mdc-list-item--with-trailing-checkbox.mdc-list-item--with-three-lines .mdc-list-item__end{align-self:flex-start;margin-top:8px}.mdc-list-group__subheader{margin:.75rem 16px}.mdc-list-item--disabled .mdc-list-item__start,.mdc-list-item--disabled .mdc-list-item__content,.mdc-list-item--disabled .mdc-list-item__end{opacity:1}.mdc-list-item--disabled .mdc-list-item__primary-text,.mdc-list-item--disabled .mdc-list-item__secondary-text{opacity:var(--mat-list-list-item-disabled-label-text-opacity, 0.3)}.mdc-list-item--disabled.mdc-list-item--with-leading-icon .mdc-list-item__start{color:var(--mat-list-list-item-disabled-leading-icon-color, var(--mat-sys-on-surface));opacity:var(--mat-list-list-item-disabled-leading-icon-opacity, 0.38)}.mdc-list-item--disabled.mdc-list-item--with-trailing-icon .mdc-list-item__end{color:var(--mat-list-list-item-disabled-trailing-icon-color, var(--mat-sys-on-surface));opacity:var(--mat-list-list-item-disabled-trailing-icon-opacity, 0.38)}.mat-mdc-list-item.mat-mdc-list-item-both-leading-and-trailing,[dir=rtl] .mat-mdc-list-item.mat-mdc-list-item-both-leading-and-trailing{padding-left:0;padding-right:0}.mdc-list-item.mdc-list-item--disabled .mdc-list-item__primary-text{color:var(--mat-list-list-item-disabled-label-text-color, var(--mat-sys-on-surface))}.mdc-list-item:hover::before{background-color:var(--mat-list-list-item-hover-state-layer-color, var(--mat-sys-on-surface));opacity:var(--mat-list-list-item-hover-state-layer-opacity, var(--mat-sys-hover-state-layer-opacity))}.mdc-list-item.mdc-list-item--disabled::before{background-color:var(--mat-list-list-item-disabled-state-layer-color, var(--mat-sys-on-surface));opacity:var(--mat-list-list-item-disabled-state-layer-opacity, var(--mat-sys-focus-state-layer-opacity))}.mdc-list-item:focus::before{background-color:var(--mat-list-list-item-focus-state-layer-color, var(--mat-sys-on-surface));opacity:var(--mat-list-list-item-focus-state-layer-opacity, var(--mat-sys-focus-state-layer-opacity))}.mdc-list-item--disabled .mdc-radio,.mdc-list-item--disabled .mdc-checkbox{opacity:var(--mat-list-list-item-disabled-label-text-opacity, 0.3)}.mdc-list-item--with-leading-avatar .mat-mdc-list-item-avatar{border-radius:var(--mat-list-list-item-leading-avatar-shape, var(--mat-sys-corner-full));background-color:var(--mat-list-list-item-leading-avatar-color, var(--mat-sys-primary-container))}.mat-mdc-list-item-icon{font-size:var(--mat-list-list-item-leading-icon-size, 24px)}@media(forced-colors: active){a.mdc-list-item--activated::after{content:"";position:absolute;top:50%;right:16px;transform:translateY(-50%);width:10px;height:0;border-bottom:solid 10px;border-radius:10px}a.mdc-list-item--activated [dir=rtl]::after{right:auto;left:16px}}.mat-mdc-list-base{display:block}.mat-mdc-list-base .mdc-list-item__start,.mat-mdc-list-base .mdc-list-item__end,.mat-mdc-list-base .mdc-list-item__content{pointer-events:auto}.mat-mdc-list-item,.mat-mdc-list-option{width:100%;box-sizing:border-box;-webkit-tap-highlight-color:rgba(0,0,0,0)}.mat-mdc-list-item:not(.mat-mdc-list-item-interactive),.mat-mdc-list-option:not(.mat-mdc-list-item-interactive){cursor:default}.mat-mdc-list-item .mat-divider-inset,.mat-mdc-list-option .mat-divider-inset{position:absolute;left:0;right:0;bottom:0}.mat-mdc-list-item .mat-mdc-list-item-avatar~.mat-divider-inset,.mat-mdc-list-option .mat-mdc-list-item-avatar~.mat-divider-inset{margin-left:72px}[dir=rtl] .mat-mdc-list-item .mat-mdc-list-item-avatar~.mat-divider-inset,[dir=rtl] .mat-mdc-list-option .mat-mdc-list-item-avatar~.mat-divider-inset{margin-right:72px}.mat-mdc-list-item-interactive::before{top:0;left:0;right:0;bottom:0;position:absolute;content:"";opacity:0;pointer-events:none;border-radius:inherit}.mat-mdc-list-item>.mat-focus-indicator{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none}.mat-mdc-list-item:focus>.mat-focus-indicator::before{content:""}.mat-mdc-list-item.mdc-list-item--with-three-lines .mat-mdc-list-item-line.mdc-list-item__secondary-text{white-space:nowrap;line-height:normal}.mat-mdc-list-item.mdc-list-item--with-three-lines .mat-mdc-list-item-unscoped-content.mdc-list-item__secondary-text{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2}mat-action-list button{background:none;color:inherit;border:none;font:inherit;outline:inherit;-webkit-tap-highlight-color:rgba(0,0,0,0);text-align:start}mat-action-list button::-moz-focus-inner{border:0}.mdc-list-item--with-leading-icon .mdc-list-item__start{margin-inline-start:var(--mat-list-list-item-leading-icon-start-space, 16px);margin-inline-end:var(--mat-list-list-item-leading-icon-end-space, 16px)}.mat-mdc-nav-list .mat-mdc-list-item{border-radius:var(--mat-list-active-indicator-shape, var(--mat-sys-corner-full));--mat-focus-indicator-border-radius: var(--mat-list-active-indicator-shape, var(--mat-sys-corner-full))}.mat-mdc-nav-list .mat-mdc-list-item.mdc-list-item--activated{background-color:var(--mat-list-active-indicator-color, var(--mat-sys-secondary-container))} +`,ofe=["unscopedContent"],afe=["text"],sfe=[[["","matListItemAvatar",""],["","matListItemIcon",""]],[["","matListItemTitle",""]],[["","matListItemLine",""]],"*",[["","matListItemMeta",""]],[["mat-divider"]]],lfe=["[matListItemAvatar],[matListItemIcon]","[matListItemTitle]","[matListItemLine]","*","[matListItemMeta]","mat-divider"];var cfe=new O("ListOption"),Hl=(()=>{class t{_elementRef=u(Y);constructor(){}static \u0275fac=function(i){return new(i||t)};static \u0275dir=P({type:t,selectors:[["","matListItemTitle",""]],hostAttrs:[1,"mat-mdc-list-item-title","mdc-list-item__primary-text"]})}return t})(),Fu=(()=>{class t{_elementRef=u(Y);constructor(){}static \u0275fac=function(i){return new(i||t)};static \u0275dir=P({type:t,selectors:[["","matListItemLine",""]],hostAttrs:[1,"mat-mdc-list-item-line","mdc-list-item__secondary-text"]})}return t})(),FI=(()=>{class t{static \u0275fac=function(i){return new(i||t)};static \u0275dir=P({type:t,selectors:[["","matListItemMeta",""]],hostAttrs:[1,"mat-mdc-list-item-meta","mdc-list-item__end"]})}return t})(),M8=(()=>{class t{_listOption=u(cfe,{optional:!0});constructor(){}_isAlignedAtStart(){return!this._listOption||this._listOption?._getTogglePosition()==="after"}static \u0275fac=function(i){return new(i||t)};static \u0275dir=P({type:t,hostVars:4,hostBindings:function(i,r){i&2&&G("mdc-list-item__start",r._isAlignedAtStart())("mdc-list-item__end",!r._isAlignedAtStart())}})}return t})(),dfe=(()=>{class t extends M8{static \u0275fac=(()=>{let e;return function(r){return(e||(e=ge(t)))(r||t)}})();static \u0275dir=P({type:t,selectors:[["","matListItemAvatar",""]],hostAttrs:[1,"mat-mdc-list-item-avatar"],features:[le]})}return t})(),y_=(()=>{class t extends M8{static \u0275fac=(()=>{let e;return function(r){return(e||(e=ge(t)))(r||t)}})();static \u0275dir=P({type:t,selectors:[["","matListItemIcon",""]],hostAttrs:[1,"mat-mdc-list-item-icon"],features:[le]})}return t})(),ufe=new O("MAT_LIST_CONFIG"),v_=(()=>{class t{_isNonInteractive=!0;get disableRipple(){return this._disableRipple}set disableRipple(e){this._disableRipple=Vi(e)}_disableRipple=!1;get disabled(){return this._disabled()}set disabled(e){this._disabled.set(Vi(e))}_disabled=he(!1);_defaultOptions=u(ufe,{optional:!0});static \u0275fac=function(i){return new(i||t)};static \u0275dir=P({type:t,hostVars:1,hostBindings:function(i,r){i&2&&X("aria-disabled",r.disabled)},inputs:{disableRipple:"disableRipple",disabled:"disabled"}})}return t})(),mfe=(()=>{class t{_elementRef=u(Y);_ngZone=u(ae);_listBase=u(v_,{optional:!0});_platform=u(Ye);_hostElement;_isButtonElement;_noopAnimations=Qe();_avatars;_icons;set lines(e){this._explicitLines=Gn(e,null),this._updateItemLines(!1)}_explicitLines=null;get disableRipple(){return this.disabled||this._disableRipple||this._noopAnimations||!!this._listBase?.disableRipple}set disableRipple(e){this._disableRipple=Vi(e)}_disableRipple=!1;get disabled(){return this._disabled()||!!this._listBase?.disabled}set disabled(e){this._disabled.set(Vi(e))}_disabled=he(!1);_subscriptions=new ke;_rippleRenderer=null;_hasUnscopedTextContent=!1;rippleConfig;get rippleDisabled(){return this.disableRipple||!!this.rippleConfig.disabled}constructor(){u(ft).load(Oi);let e=u(Vs,{optional:!0});this.rippleConfig=e||{},this._hostElement=this._elementRef.nativeElement,this._isButtonElement=this._hostElement.nodeName.toLowerCase()==="button",this._listBase&&!this._listBase._isNonInteractive&&this._initInteractiveListItem(),this._isButtonElement&&!this._hostElement.hasAttribute("type")&&this._hostElement.setAttribute("type","button")}ngAfterViewInit(){this._monitorProjectedLinesAndTitle(),this._updateItemLines(!0)}ngOnDestroy(){this._subscriptions.unsubscribe(),this._rippleRenderer!==null&&this._rippleRenderer._removeTriggerEvents()}_hasIconOrAvatar(){return!!(this._avatars.length||this._icons.length)}_initInteractiveListItem(){this._hostElement.classList.add("mat-mdc-list-item-interactive"),this._rippleRenderer=new Ec(this,this._ngZone,this._hostElement,this._platform,u(de)),this._rippleRenderer.setupTriggerEvents(this._hostElement)}_monitorProjectedLinesAndTitle(){this._ngZone.runOutsideAngular(()=>{this._subscriptions.add(it(this._lines.changes,this._titles.changes).subscribe(()=>this._updateItemLines(!1)))})}_updateItemLines(e){if(!this._lines||!this._titles||!this._unscopedContent)return;e&&this._checkDomForUnscopedTextContent();let i=this._explicitLines??this._inferLinesFromContent(),r=this._unscopedContent.nativeElement;if(this._hostElement.classList.toggle("mat-mdc-list-item-single-line",i<=1),this._hostElement.classList.toggle("mdc-list-item--with-one-line",i<=1),this._hostElement.classList.toggle("mdc-list-item--with-two-lines",i===2),this._hostElement.classList.toggle("mdc-list-item--with-three-lines",i===3),this._hasUnscopedTextContent){let o=this._titles.length===0&&i===1;r.classList.toggle("mdc-list-item__primary-text",o),r.classList.toggle("mdc-list-item__secondary-text",!o)}else r.classList.remove("mdc-list-item__primary-text"),r.classList.remove("mdc-list-item__secondary-text")}_inferLinesFromContent(){let e=this._titles.length+this._lines.length;return this._hasUnscopedTextContent&&(e+=1),e}_checkDomForUnscopedTextContent(){this._hasUnscopedTextContent=Array.from(this._unscopedContent.nativeElement.childNodes).filter(e=>e.nodeType!==e.COMMENT_NODE).some(e=>!!(e.textContent&&e.textContent.trim()))}static \u0275fac=function(i){return new(i||t)};static \u0275dir=P({type:t,contentQueries:function(i,r,o){if(i&1&&(xe(o,dfe,4),xe(o,y_,4)),i&2){let a;j(a=H())&&(r._avatars=a),j(a=H())&&(r._icons=a)}},hostVars:4,hostBindings:function(i,r){i&2&&(X("aria-disabled",r.disabled)("disabled",r._isButtonElement&&r.disabled||null),G("mdc-list-item--disabled",r.disabled))},inputs:{lines:"lines",disableRipple:"disableRipple",disabled:"disabled"}})}return t})();var Xs=(()=>{class t extends v_{static \u0275fac=(()=>{let e;return function(r){return(e||(e=ge(t)))(r||t)}})();static \u0275cmp=E({type:t,selectors:[["mat-list"]],hostAttrs:[1,"mat-mdc-list","mat-mdc-list-base","mdc-list"],exportAs:["matList"],features:[Ce([{provide:v_,useExisting:t}]),le],ngContentSelectors:w8,decls:1,vars:0,template:function(i,r){i&1&&(Ee(),ne(0))},styles:[D8],encapsulation:2,changeDetection:0})}return t})(),pa=(()=>{class t extends mfe{_lines;_titles;_meta;_unscopedContent;_itemText;get activated(){return this._activated}set activated(e){this._activated=Vi(e)}_activated=!1;_getAriaCurrent(){return this._hostElement.nodeName==="A"&&this._activated?"page":null}_hasBothLeadingAndTrailing(){return this._meta.length!==0&&(this._avatars.length!==0||this._icons.length!==0)}static \u0275fac=(()=>{let e;return function(r){return(e||(e=ge(t)))(r||t)}})();static \u0275cmp=E({type:t,selectors:[["mat-list-item"],["a","mat-list-item",""],["button","mat-list-item",""]],contentQueries:function(i,r,o){if(i&1&&(xe(o,Fu,5),xe(o,Hl,5),xe(o,FI,5)),i&2){let a;j(a=H())&&(r._lines=a),j(a=H())&&(r._titles=a),j(a=H())&&(r._meta=a)}},viewQuery:function(i,r){if(i&1&&(ie(ofe,5),ie(afe,5)),i&2){let o;j(o=H())&&(r._unscopedContent=o.first),j(o=H())&&(r._itemText=o.first)}},hostAttrs:[1,"mat-mdc-list-item","mdc-list-item"],hostVars:13,hostBindings:function(i,r){i&2&&(X("aria-current",r._getAriaCurrent()),G("mdc-list-item--activated",r.activated)("mdc-list-item--with-leading-avatar",r._avatars.length!==0)("mdc-list-item--with-leading-icon",r._icons.length!==0)("mdc-list-item--with-trailing-meta",r._meta.length!==0)("mat-mdc-list-item-both-leading-and-trailing",r._hasBothLeadingAndTrailing())("_mat-animation-noopable",r._noopAnimations))},inputs:{activated:"activated"},exportAs:["matListItem"],features:[le],ngContentSelectors:lfe,decls:10,vars:0,consts:[["unscopedContent",""],[1,"mdc-list-item__content"],[1,"mat-mdc-list-item-unscoped-content",3,"cdkObserveContent"],[1,"mat-focus-indicator"]],template:function(i,r){if(i&1){let o=q();Ee(sfe),ne(0),m(1,"span",1),ne(2,1),ne(3,2),m(4,"span",2,0),S("cdkObserveContent",function(){return k(o),T(r._updateItemLines(!0))}),ne(6,3),h()(),ne(7,4),ne(8,5),M(9,"div",3)}},dependencies:[Zf],encapsulation:2,changeDetection:0})}return t})();var E8=(()=>{class t extends v_{_isNonInteractive=!1;static \u0275fac=(()=>{let e;return function(r){return(e||(e=ge(t)))(r||t)}})();static \u0275cmp=E({type:t,selectors:[["mat-nav-list"]],hostAttrs:["role","navigation",1,"mat-mdc-nav-list","mat-mdc-list-base","mdc-list"],exportAs:["matNavList"],features:[Ce([{provide:v_,useExisting:t}]),le],ngContentSelectors:w8,decls:1,vars:0,template:function(i,r){i&1&&(Ee(),ne(0))},styles:[D8],encapsulation:2,changeDetection:0})}return t})();var fa=(()=>{class t{static \u0275fac=function(i){return new(i||t)};static \u0275mod=ee({type:t});static \u0275inj=J({imports:[Jm,De,Io,ey,Nr]})}return t})();var hfe=["mat-menu-item",""],pfe=[[["mat-icon"],["","matMenuItemIcon",""]],"*"],ffe=["mat-icon, [matMenuItemIcon]","*"];function gfe(t,n){t&1&&(ii(),m(0,"svg",2),M(1,"polygon",3),h())}var _fe=["*"];function bfe(t,n){if(t&1){let e=q();gt(0,"div",0),O0("click",function(){k(e);let r=x();return T(r.closed.emit("click"))})("animationstart",function(r){k(e);let o=x();return T(o._onAnimationStart(r.animationName))})("animationend",function(r){k(e);let o=x();return T(o._onAnimationDone(r.animationName))})("animationcancel",function(r){k(e);let o=x();return T(o._onAnimationDone(r.animationName))}),gt(1,"div",1),ne(2),yt()()}if(t&2){let e=x();at(e._classList),G("mat-menu-panel-animations-disabled",e._animationsDisabled)("mat-menu-panel-exit-animation",e._panelAnimationState==="void")("mat-menu-panel-animating",e._isAnimating()),pi("id",e.panelId),X("aria-label",e.ariaLabel||null)("aria-labelledby",e.ariaLabelledby||null)("aria-describedby",e.ariaDescribedby||null)}}var LI=new O("MAT_MENU_PANEL"),Ul=(()=>{class t{_elementRef=u(Y);_document=u(_e);_focusMonitor=u(oi);_parentMenu=u(LI,{optional:!0});_changeDetectorRef=u(ye);role="menuitem";disabled=!1;disableRipple=!1;_hovered=new z;_focused=new z;_highlighted=!1;_triggersSubmenu=!1;constructor(){u(ft).load(Oi),this._parentMenu?.addItem?.(this)}focus(e,i){this._focusMonitor&&e?this._focusMonitor.focusVia(this._getHostElement(),e,i):this._getHostElement().focus(i),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),i=e.querySelectorAll("mat-icon, .material-icons");for(let r=0;r{class t{_elementRef=u(Y);_changeDetectorRef=u(ye);_injector=u(de);_keyManager;_xPosition;_yPosition;_firstItemFocusRef;_exitFallbackTimeout;_animationsDisabled=Qe();_allItems;_directDescendantItems=new Dr;_classList={};_panelAnimationState="void";_animationDone=new z;_isAnimating=he(!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;hasBackdrop;set panelClass(e){let i=this._previousPanelClass,r=I({},this._classList);i&&i.length&&i.split(" ").forEach(o=>{r[o]=!1}),this._previousPanelClass=e,e&&e.length&&(e.split(" ").forEach(o=>{r[o]=!0}),this._elementRef.nativeElement.className=""),this._classList=r}_previousPanelClass;get classList(){return this.panelClass}set classList(e){this.panelClass=e}closed=new U;close=this.closed;panelId=u(et).getId("mat-menu-panel-");constructor(){let e=u(yfe);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 Ps(this._directDescendantItems).withWrap().withTypeAhead().withHomeAndEnd(),this._keyManager.tabOut.subscribe(()=>this.closed.emit("tab")),this._directDescendantItems.changes.pipe(Ue(this._directDescendantItems),je(e=>it(...e.map(i=>i._focused)))).subscribe(e=>this._keyManager.updateActiveItem(e)),this._directDescendantItems.changes.subscribe(e=>{let i=this._keyManager;if(this._panelAnimationState==="enter"&&i.activeItem?._hasFocus()){let r=e.toArray(),o=Math.max(0,Math.min(r.length-1,i.activeItemIndex||0));r[o]&&!r[o].disabled?i.setActiveItem(o):i.setNextItemActive()}})}ngOnDestroy(){this._keyManager?.destroy(),this._directDescendantItems.destroy(),this.closed.complete(),this._firstItemFocusRef?.destroy(),clearTimeout(this._exitFallbackTimeout)}_hovered(){return this._directDescendantItems.changes.pipe(Ue(this._directDescendantItems),je(i=>it(...i.map(r=>r._hovered))))}addItem(e){}removeItem(e){}_handleKeydown(e){let i=e.keyCode,r=this._keyManager;switch(i){case 27:Gt(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:(i===38||i===40)&&r.setFocusOrigin("keyboard"),r.onKeydown(e);return}}focusFirstItem(e="program"){this._firstItemFocusRef?.destroy(),this._firstItemFocusRef=vt(()=>{let i=this._resolvePanel();if(!i||!i.contains(document.activeElement)){let r=this._keyManager;r.setFocusOrigin(e).setFirstItemActive(),!r.activeItem&&i&&i.focus()}},{injector:this._injector})}resetActiveItem(){this._keyManager.setActiveItem(-1)}setElevation(e){}setPositionClasses(e=this.xPosition,i=this.yPosition){this._classList=Me(I({},this._classList),{"mat-menu-before":e==="before","mat-menu-after":e==="after","mat-menu-above":i==="above","mat-menu-below":i==="below"}),this._changeDetectorRef.markForCheck()}_onAnimationDone(e){let i=e===sw;(i||e===NI)&&(i&&(clearTimeout(this._exitFallbackTimeout),this._exitFallbackTimeout=void 0),this._animationDone.next(i?"void":"enter"),this._isAnimating.set(!1))}_onAnimationStart(e){(e===NI||e===sw)&&this._isAnimating.set(!0)}_setIsOpen(e){if(this._panelAnimationState=e?"enter":"void",e){if(this._keyManager.activeItemIndex===0){let i=this._resolvePanel();i&&(i.scrollTop=0)}}else this._animationsDisabled||(this._exitFallbackTimeout=setTimeout(()=>this._onAnimationDone(sw),200));this._animationsDisabled&&setTimeout(()=>{this._onAnimationDone(e?NI:sw)}),this._changeDetectorRef.markForCheck()}_updateDirectDescendants(){this._allItems.changes.pipe(Ue(this._allItems)).subscribe(e=>{this._directDescendantItems.reset(e.filter(i=>i._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(i){return new(i||t)};static \u0275cmp=E({type:t,selectors:[["mat-menu"]],contentQueries:function(i,r,o){if(i&1&&(xe(o,vfe,5),xe(o,Ul,5),xe(o,Ul,4)),i&2){let a;j(a=H())&&(r.lazyContent=a.first),j(a=H())&&(r._allItems=a),j(a=H())&&(r.items=a)}},viewQuery:function(i,r){if(i&1&&ie(te,5),i&2){let o;j(o=H())&&(r.templateRef=o.first)}},hostVars:3,hostBindings:function(i,r){i&2&&X("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",L],hasBackdrop:[2,"hasBackdrop","hasBackdrop",e=>e==null?null:L(e)],panelClass:[0,"class","panelClass"],classList:"classList"},outputs:{closed:"closed",close:"close"},exportAs:["matMenu"],features:[Ce([{provide:LI,useExisting:t}])],ngContentSelectors:_fe,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(i,r){i&1&&(Ee(),Va(0,bfe,3,12,"ng-template"))},styles:[`mat-menu{display:none}.mat-mdc-menu-content{margin:0;padding:8px 0;outline:0}.mat-mdc-menu-content,.mat-mdc-menu-content .mat-mdc-menu-item .mat-mdc-menu-item-text{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;flex:1;white-space:normal;font-family:var(--mat-menu-item-label-text-font, var(--mat-sys-label-large-font));line-height:var(--mat-menu-item-label-text-line-height, var(--mat-sys-label-large-line-height));font-size:var(--mat-menu-item-label-text-size, var(--mat-sys-label-large-size));letter-spacing:var(--mat-menu-item-label-text-tracking, var(--mat-sys-label-large-tracking));font-weight:var(--mat-menu-item-label-text-weight, var(--mat-sys-label-large-weight))}@keyframes _mat-menu-enter{from{opacity:0;transform:scale(0.8)}to{opacity:1;transform:none}}@keyframes _mat-menu-exit{from{opacity:1}to{opacity:0}}.mat-mdc-menu-panel{min-width:112px;max-width:280px;overflow:auto;box-sizing:border-box;outline:0;animation:_mat-menu-enter 120ms cubic-bezier(0, 0, 0.2, 1);border-radius:var(--mat-menu-container-shape, var(--mat-sys-corner-extra-small));background-color:var(--mat-menu-container-color, var(--mat-sys-surface-container));box-shadow:var(--mat-menu-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));will-change:transform,opacity}.mat-mdc-menu-panel.mat-menu-panel-exit-animation{animation:_mat-menu-exit 100ms 25ms linear forwards}.mat-mdc-menu-panel.mat-menu-panel-animations-disabled{animation:none}.mat-mdc-menu-panel.mat-menu-panel-animating{pointer-events:none}.mat-mdc-menu-panel.mat-menu-panel-animating:has(.mat-mdc-menu-content:empty){display:none}@media(forced-colors: active){.mat-mdc-menu-panel{outline:solid 1px}}.mat-mdc-menu-panel .mat-divider{color:var(--mat-menu-divider-color, var(--mat-sys-surface-variant));margin-bottom:var(--mat-menu-divider-bottom-spacing, 8px);margin-top:var(--mat-menu-divider-top-spacing, 8px)}.mat-mdc-menu-item{display:flex;position:relative;align-items:center;justify-content:flex-start;overflow:hidden;padding:0;cursor:pointer;width:100%;text-align:left;box-sizing:border-box;color:inherit;font-size:inherit;background:none;text-decoration:none;margin:0;min-height:48px;padding-left:var(--mat-menu-item-leading-spacing, 12px);padding-right:var(--mat-menu-item-trailing-spacing, 12px);-webkit-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:rgba(0,0,0,0)}.mat-mdc-menu-item::-moz-focus-inner{border:0}[dir=rtl] .mat-mdc-menu-item{padding-left:var(--mat-menu-item-trailing-spacing, 12px);padding-right:var(--mat-menu-item-leading-spacing, 12px)}.mat-mdc-menu-item:has(.material-icons,mat-icon,[matButtonIcon]){padding-left:var(--mat-menu-item-with-icon-leading-spacing, 12px);padding-right:var(--mat-menu-item-with-icon-trailing-spacing, 12px)}[dir=rtl] .mat-mdc-menu-item:has(.material-icons,mat-icon,[matButtonIcon]){padding-left:var(--mat-menu-item-with-icon-trailing-spacing, 12px);padding-right:var(--mat-menu-item-with-icon-leading-spacing, 12px)}.mat-mdc-menu-item,.mat-mdc-menu-item:visited,.mat-mdc-menu-item:link{color:var(--mat-menu-item-label-text-color, var(--mat-sys-on-surface))}.mat-mdc-menu-item .mat-icon-no-color,.mat-mdc-menu-item .mat-mdc-menu-submenu-icon{color:var(--mat-menu-item-icon-color, var(--mat-sys-on-surface-variant))}.mat-mdc-menu-item[disabled]{cursor:default;opacity:.38}.mat-mdc-menu-item[disabled]::after{display:block;position:absolute;content:"";top:0;left:0;bottom:0;right:0}.mat-mdc-menu-item:focus{outline:0}.mat-mdc-menu-item .mat-icon{flex-shrink:0;margin-right:var(--mat-menu-item-spacing, 12px);height:var(--mat-menu-item-icon-size, 24px);width:var(--mat-menu-item-icon-size, 24px)}[dir=rtl] .mat-mdc-menu-item{text-align:right}[dir=rtl] .mat-mdc-menu-item .mat-icon{margin-right:0;margin-left:var(--mat-menu-item-spacing, 12px)}.mat-mdc-menu-item:not([disabled]):hover{background-color:var(--mat-menu-item-hover-state-layer-color, color-mix(in srgb, var(--mat-sys-on-surface) calc(var(--mat-sys-hover-state-layer-opacity) * 100%), transparent))}.mat-mdc-menu-item:not([disabled]).cdk-program-focused,.mat-mdc-menu-item:not([disabled]).cdk-keyboard-focused,.mat-mdc-menu-item:not([disabled]).mat-mdc-menu-item-highlighted{background-color:var(--mat-menu-item-focus-state-layer-color, color-mix(in srgb, var(--mat-sys-on-surface) calc(var(--mat-sys-focus-state-layer-opacity) * 100%), transparent))}@media(forced-colors: active){.mat-mdc-menu-item{margin-top:1px}}.mat-mdc-menu-submenu-icon{width:var(--mat-menu-item-icon-size, 24px);height:10px;fill:currentColor;padding-left:var(--mat-menu-item-spacing, 12px)}[dir=rtl] .mat-mdc-menu-submenu-icon{padding-right:var(--mat-menu-item-spacing, 12px);padding-left:0}[dir=rtl] .mat-mdc-menu-submenu-icon polygon{transform:scaleX(-1);transform-origin:center}@media(forced-colors: active){.mat-mdc-menu-submenu-icon{fill:CanvasText}}.mat-mdc-menu-item .mat-mdc-menu-ripple{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none} +`],encapsulation:2,changeDetection:0})}return t})(),S8=new O("mat-menu-scroll-strategy",{providedIn:"root",factory:()=>{let t=u(de);return()=>Tn(t)}});function Cfe(t){let n=u(de);return()=>Tn(n)}var wfe={provide:S8,deps:[],useFactory:Cfe};var sp=new WeakMap,Dfe=(()=>{class t{_canHaveBackdrop;_element=u(Y);_viewContainerRef=u(st);_menuItemInstance=u(Ul,{optional:!0,self:!0});_dir=u(Yt,{optional:!0});_focusMonitor=u(oi);_ngZone=u(ae);_injector=u(de);_scrollStrategy=u(S8);_changeDetectorRef=u(ye);_animationsDisabled=Qe();_portal;_overlayRef=null;_menuOpen=!1;_closingActionsSubscription=ke.EMPTY;_menuCloseSubscription=ke.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(i=>{this._destroyMenu(i),(i==="click"||i==="tab")&&this._parentMaterialMenu&&this._parentMaterialMenu.closed.emit(i)})),this._menuItemInstance?._setTriggersSubmenu(this._triggersSubmenu()))}_menuInternal;constructor(e){this._canHaveBackdrop=e;let i=u(LI,{optional:!0});this._parentMaterialMenu=i instanceof Zr?i:void 0}ngOnDestroy(){this._menu&&this._ownsMenu(this._menu)&&sp.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){let i=this._menu;if(this._menuOpen||!i)return;this._pendingRemoval?.unsubscribe();let r=sp.get(i);sp.set(i,this),r&&r!==this&&r._closeMenu();let o=this._createOverlay(i),a=o.getConfig(),s=a.positionStrategy;this._setPosition(i,s),this._canHaveBackdrop?a.hasBackdrop=i.hasBackdrop==null?!this._triggersSubmenu():i.hasBackdrop:a.hasBackdrop=!1,o.hasAttached()||(o.attach(this._getPortal(i)),i.lazyContent?.attach(this.menuData)),this._closingActionsSubscription=this._menuClosingActions().subscribe(()=>this._closeMenu()),i.parentMenu=this._triggersSubmenu()?this._parentMaterialMenu:void 0,i.direction=this.dir,e&&i.focusFirstItem(this._openedBy||"program"),this._setIsMenuOpen(!0),i instanceof Zr&&(i._setIsOpen(!0),i._directDescendantItems.changes.pipe(we(i.close)).subscribe(()=>{s.withLockedPosition(!1).reapplyLastPosition(),s.withLockedPosition(!0)}))}focus(e,i){this._focusMonitor&&e?this._focusMonitor.focusVia(this._element,e,i):this._element.nativeElement.focus(i)}_destroyMenu(e){let i=this._overlayRef,r=this._menu;!i||!this.menuOpen||(this._closingActionsSubscription.unsubscribe(),this._pendingRemoval?.unsubscribe(),r instanceof Zr&&this._ownsMenu(r)?(this._pendingRemoval=r._animationDone.pipe(mt(1)).subscribe(()=>{i.detach(),sp.has(r)||r.lazyContent?.detach()}),r._setIsOpen(!1)):(i.detach(),r?.lazyContent?.detach()),r&&this._ownsMenu(r)&&sp.delete(r),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 i=this._getOverlayConfig(e);this._subscribeToPositions(e,i.positionStrategy),this._overlayRef=qr(this._injector,i),this._overlayRef.keydownEvents().subscribe(r=>{this._menu instanceof Zr&&this._menu._handleKeydown(r)})}return this._overlayRef}_getOverlayConfig(e){return new Gr({positionStrategy:Xa(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,i){e.setPositionClasses&&i.positionChanges.subscribe(r=>{this._ngZone.run(()=>{let o=r.connectionPair.overlayX==="start"?"after":"before",a=r.connectionPair.overlayY==="top"?"below":"above";e.setPositionClasses(o,a)})})}_setPosition(e,i){let[r,o]=e.xPosition==="before"?["end","start"]:["start","end"],[a,s]=e.yPosition==="above"?["bottom","top"]:["top","bottom"],[l,c]=[a,s],[d,p]=[r,o],_=0;if(this._triggersSubmenu()){if(p=r=e.xPosition==="before"?"start":"end",o=d=r==="end"?"start":"end",this._parentMaterialMenu){if(this._parentInnerPadding==null){let b=this._parentMaterialMenu.items.first;this._parentInnerPadding=b?b._getHostElement().offsetTop:0}_=a==="bottom"?this._parentInnerPadding:-this._parentInnerPadding}}else e.overlapTrigger||(l=a==="top"?"bottom":"top",c=s==="top"?"bottom":"top");i.withPositions([{originX:r,originY:l,overlayX:d,overlayY:a,offsetY:_},{originX:o,originY:l,overlayX:p,overlayY:a,offsetY:_},{originX:r,originY:c,overlayX:d,overlayY:s,offsetY:-_},{originX:o,originY:c,overlayX:p,overlayY:s,offsetY:-_}])}_menuClosingActions(){let e=this._getOutsideClickStream(this._overlayRef),i=this._overlayRef.detachments(),r=this._parentMaterialMenu?this._parentMaterialMenu.closed:Q(),o=this._parentMaterialMenu?this._parentMaterialMenu._hovered().pipe(ce(a=>this._menuOpen&&a!==this._menuItemInstance)):Q();return it(e,r,o,i)}_getPortal(e){return(!this._portal||this._portal.templateRef!==e.templateRef)&&(this._portal=new kn(e.templateRef,this._viewContainerRef)),this._portal}_ownsMenu(e){return sp.get(e)===this}static \u0275fac=function(i){jd()};static \u0275dir=P({type:t})}return t})(),Js=(()=>{class t extends Dfe{_cleanupTouchstart;_hoverSubscription=ke.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 U;onMenuOpen=this.menuOpened;menuClosed=new U;onMenuClose=this.menuClosed;constructor(){super(!0);let e=u(ze);this._cleanupTouchstart=e.listen(this._element.nativeElement,"touchstart",i=>{eu(i)||(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){Jd(e)||(this._openedBy=e.button===0?"mouse":void 0,this.triggersSubmenu()&&e.preventDefault())}_handleKeydown(e){let i=e.keyCode;(i===13||i===32)&&(this._openedBy="keyboard"),this.triggersSubmenu()&&(i===39&&this.dir==="ltr"||i===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(i){return new(i||t)};static \u0275dir=P({type:t,selectors:[["","mat-menu-trigger-for",""],["","matMenuTriggerFor",""]],hostAttrs:[1,"mat-mdc-menu-trigger"],hostVars:3,hostBindings:function(i,r){i&1&&S("click",function(a){return r._handleClick(a)})("mousedown",function(a){return r._handleMousedown(a)})("keydown",function(a){return r._handleKeydown(a)}),i&2&&X("aria-haspopup",r.menu?"menu":null)("aria-expanded",r.menuOpen)("aria-controls",r.menuOpen?r.menu==null?null:r.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:[le]})}return t})();var el=(()=>{class t{static \u0275fac=function(i){return new(i||t)};static \u0275mod=ee({type:t});static \u0275inj=J({providers:[wfe],imports:[Io,De,cr,Tr,De]})}return t})(),k8={transformMenu:{type:7,name:"transformMenu",definitions:[{type:0,name:"void",styles:{type:6,styles:{opacity:0,transform:"scale(0.8)"},offset:null}},{type:1,expr:"void => enter",animation:{type:4,styles:{type:6,styles:{opacity:1,transform:"scale(1)"},offset:null},timings:"120ms cubic-bezier(0, 0, 0.2, 1)"},options:null},{type:1,expr:"* => void",animation:{type:4,styles:{type:6,styles:{opacity:0},offset:null},timings:"100ms 25ms linear"},options:null}],options:{}},fadeInItems:{type:7,name:"fadeInItems",definitions:[{type:0,name:"showing",styles:{type:6,styles:{opacity:1},offset:null}},{type:1,expr:"void => *",animation:[{type:6,styles:{opacity:0},offset:null},{type:4,styles:null,timings:"400ms 100ms cubic-bezier(0.55, 0, 0.55, 0.2)"}],options:null}],options:{}}},Ict=k8.fadeInItems,Act=k8.transformMenu;function Mfe(t,n){if(t&1&&(m(0,"mat-list-item")(1,"mat-icon",3),f(2,"info"),h(),m(3,"a",4),f(4),h()()),t&2){let e=n.$implicit;g(4),N(e)}}var T8=(()=>{let n=class n{constructor(){this.messages=["Server Error Reports 1","Server Error Reports 2","Server Error Reports 3"]}};n.\u0275fac=function(r){return new(r||n)},n.\u0275cmp=E({type:n,selectors:[["app-notification"]],decls:8,vars:1,consts:[["menu","matMenu"],["matIconButton","",3,"matMenuTriggerFor"],["matBadge","5","matBadgeColor","warn","aria-hidden","false"],["matListItemIcon","",1,"m-x-16"],["matListItemTitle","","href","#"]],template:function(r,o){if(r&1&&(m(0,"button",1)(1,"mat-icon",2),f(2,"notifications"),h()(),m(3,"mat-menu",null,0)(5,"mat-nav-list"),Mt(6,Mfe,5,1,"mat-list-item",null,Yi),h()()),r&2){let a=Te(4);v("matMenuTriggerFor",a),g(6),Et(o.messages)}},dependencies:[C8,x8,Fe,Ft,Ge,Ze,fa,E8,pa,y_,Hl,el,Zr,Js],styles:["[_nghost-%COMP%] .mat-badge-content{--mat-badge-background-color: #ef0000;--mat-badge-text-color: #fff}"]});let t=n;return t})();var Efe=(t,n)=>n.value;function Sfe(t,n){t&1&&M(0,"mat-pseudo-checkbox",5)}function kfe(t,n){if(t&1){let e=q();m(0,"button",3),S("click",function(){let r=k(e).$implicit,o=x();return T(o.changeLang(r.value))}),m(1,"span",4),f(2),me(3,"translate"),V(4,Sfe,1,0,"mat-pseudo-checkbox",5),h()()}if(t&2){let e=n.$implicit,i=x();g(2),fe(" ",Re(3,2,e.name)," "),g(2),B(e.value===i.options.language?4:-1)}}var I8=(()=>{let n=class n{constructor(){this.settings=u(ha),this.options=this.settings.options,this.langs=[{value:"en-US",name:"en_us"},{value:"zh-CN",name:"zh_cn"},{value:"zh-TW",name:"zh_tw"},{value:"auto",name:"system"}]}changeLang(i){this.settings.setLanguage(i)}};n.\u0275fac=function(r){return new(r||n)},n.\u0275cmp=E({type:n,selectors:[["app-translate"]],decls:7,vars:1,consts:[["menu","matMenu"],["matIconButton","",3,"matMenuTriggerFor"],["mat-menu-item",""],["mat-menu-item","",3,"click"],[1,"d-flex","justify-content-between","gap-8"],["state","checked","appearance","minimal"]],template:function(r,o){if(r&1&&(m(0,"button",1)(1,"mat-icon"),f(2,"translate"),h()(),m(3,"mat-menu",null,0),Mt(5,kfe,5,4,"button",2,Efe),h()),r&2){let a=Te(4);v("matMenuTriggerFor",a),g(5),Et(o.langs)}},dependencies:[Fe,Ft,Ge,Ze,el,Zr,Ul,Js,nu,Or],encapsulation:2});let t=n;return t})();function Tfe(t,n){t&1&&(m(0,"button",8)(1,"mat-icon"),f(2,"account_circle"),h(),m(3,"span"),f(4),me(5,"translate"),h()(),m(6,"button",9)(7,"mat-icon"),f(8,"edit"),h(),m(9,"span"),f(10),me(11,"translate"),h()()),t&2&&(g(4),N(Re(5,2,"profile")),g(6),N(Re(11,4,"edit_profile")))}function Ife(t,n){if(t&1){let e=q();m(0,"button",6),S("click",function(){k(e);let r=x();return T(r.logout())}),m(1,"mat-icon"),f(2,"exit_to_app"),h(),m(3,"span"),f(4),me(5,"translate"),h()()}t&2&&(g(4),N(Re(5,1,"logout")))}function Afe(t,n){if(t&1){let e=q();m(0,"button",6),S("click",function(){k(e);let r=x();return T(r.login())}),m(1,"mat-icon"),f(2,"login"),h(),m(3,"span"),f(4),me(5,"translate"),h()()}t&2&&(g(4),N(Re(5,1,"login")))}var A8=(()=>{let n=class n{constructor(){this.oidcAuth=u(Ht),this.router=u(Ae),this.settings=u(ha),this.userName="Guest",this.userEmail="",this.userRoles="Anonymous User"}ngOnInit(){this.updateUserInfo(),this.authSubscription=this.oidcAuth.isAuthenticated$.subscribe(()=>{this.updateUserInfo()})}ngOnDestroy(){this.authSubscription?.unsubscribe()}updateUserInfo(){if(!this.oidcAuth.isAuthenticated()){this.userName="Guest",this.userEmail="",this.userRoles="Anonymous User";return}let i=this.oidcAuth.getUserInfo();console.log("UserButton: User info:",i),console.log("UserButton: Available claims:",i?Object.keys(i):"null"),this.userName=i?.name||i?.preferred_username||i?.given_name||i?.["http://schemas.xmlsoap.org/ws/2005/05/identity/claims/name"]||i?.sub||"User",this.userEmail=i?.email||i?.["http://schemas.xmlsoap.org/ws/2005/05/identity/claims/emailaddress"]||"";let r=this.oidcAuth.getUserRoles();this.userRoles=r.length>0?r.join(", "):"No roles",console.log("UserButton: Set userName to:",this.userName,"email to:",this.userEmail,"roles:",this.userRoles)}isAuthenticated(){return this.oidcAuth.isAuthenticated()}login(){this.oidcAuth.login()}logout(){this.oidcAuth.logout(),this.router.navigateByUrl("/dashboard")}restore(){this.settings.reset(),window.location.reload()}};n.\u0275fac=function(r){return new(r||n)},n.\u0275cmp=E({type:n,selectors:[["app-user"]],decls:22,vars:9,consts:[["menu","matMenu"],["matIconButton","",1,"user-button",3,"matMenuTriggerFor"],[1,"user-info"],[1,"user-name"],[1,"user-email"],[1,"user-roles"],["mat-menu-item","",3,"click"],["mat-menu-item",""],["routerLink","/profile/overview","mat-menu-item",""],["routerLink","/profile/settings","mat-menu-item",""]],template:function(r,o){if(r&1){let a=q();m(0,"button",1)(1,"mat-icon"),f(2,"account_circle"),h()(),m(3,"mat-menu",null,0)(5,"div",2)(6,"div",3),f(7),h(),m(8,"div",4),f(9),h(),m(10,"div",5),f(11),h()(),M(12,"mat-divider"),V(13,Tfe,12,6),m(14,"button",6),S("click",function(){return k(a),T(o.restore())}),m(15,"mat-icon"),f(16,"restore"),h(),m(17,"span"),f(18),me(19,"translate"),h()(),V(20,Ife,6,3,"button",7)(21,Afe,6,3,"button",7),h()}if(r&2){let a=Te(4);v("matMenuTriggerFor",a),g(7),N(o.userName),g(2),N(o.userEmail),g(2),N(o.userRoles),g(2),B(o.isAuthenticated()?13:-1),g(5),N(Re(19,7,"restore_defaults")),g(2),B(o.isAuthenticated()?20:21)}},dependencies:[Je,Wn,Fe,Ft,Ge,Ze,el,Zr,Ul,Js,Nr,Kr,Rr,Or],styles:["[_nghost-%COMP%]{display:inline-block}.user-button[_ngcontent-%COMP%]{display:inline-flex!important}.user-info[_ngcontent-%COMP%]{padding:16px;max-width:250px}.user-info[_ngcontent-%COMP%] .user-name[_ngcontent-%COMP%]{font-weight:500;font-size:14px;margin-bottom:4px}.user-info[_ngcontent-%COMP%] .user-email[_ngcontent-%COMP%]{font-size:12px;color:#0009;margin-bottom:4px}.user-info[_ngcontent-%COMP%] .user-roles[_ngcontent-%COMP%]{font-size:11px;color:#00000080;font-style:italic}"]});let t=n;return t})();function Ofe(t,n){if(t&1){let e=q();m(0,"button",4),S("click",function(){k(e);let r=x();return T(r.toggleSidenav.emit())}),m(1,"mat-icon"),f(2,"menu"),h()()}}function Rfe(t,n){t&1&&M(0,"app-branding")}var O8=(()=>{let n=class n{constructor(){this.showToggle=re(!0),this.showBranding=re(!1),this.toggleSidenav=Ei(),this.toggleSidenavNotice=Ei()}toggleFullscreen(){PI.isEnabled&&PI.toggle()}};n.\u0275fac=function(r){return new(r||n)},n.\u0275cmp=E({type:n,selectors:[["app-header"]],hostAttrs:[1,"matero-header"],inputs:{showToggle:[1,"showToggle"],showBranding:[1,"showBranding"]},outputs:{toggleSidenav:"toggleSidenav",toggleSidenavNotice:"toggleSidenavNotice"},decls:17,vars:2,consts:[["matIconButton",""],[1,"flex-fill"],["matIconButton","",1,"hide-small",3,"click"],[1,"hide-small"],["matIconButton","",3,"click"]],template:function(r,o){r&1&&(m(0,"mat-toolbar"),V(1,Ofe,3,0,"button",0),V(2,Rfe,1,0,"app-branding"),M(3,"span",1)(4,"app-github-button"),m(5,"button",0)(6,"mat-icon"),f(7,"search"),h()(),M(8,"app-translate"),m(9,"button",2),S("click",function(){return o.toggleFullscreen()}),m(10,"mat-icon"),f(11,"fullscreen"),h()(),M(12,"app-notification",3)(13,"app-user"),m(14,"button",2),S("click",function(){return o.toggleSidenavNotice.emit()}),m(15,"mat-icon"),f(16,"list"),h()()()),r&2&&(g(),B(o.showToggle()?1:-1),g(),B(o.showBranding()?2:-1))},dependencies:[ow,rw,Fe,Ft,Ge,Ze,aw,v8,T8,I8,A8],styles:[`.matero-header{--mat-toolbar-container-background-color: transparent;position:relative;z-index:200;display:block;background-color:var(--header-background-color);-webkit-backdrop-filter:blur(8px);backdrop-filter:blur(8px)} +`],encapsulation:2});let t=n;return t})();var lp=["*"];function Pfe(t,n){t&1&&ne(0)}var N8=["tabListContainer"],L8=["tabList"],V8=["tabListInner"],B8=["nextPaginator"],j8=["previousPaginator"],Ffe=["content"];function Nfe(t,n){}var Lfe=["tabBodyWrapper"],Vfe=["tabHeader"];function Bfe(t,n){}function jfe(t,n){if(t&1&&A(0,Bfe,0,0,"ng-template",12),t&2){let e=x().$implicit;v("cdkPortalOutlet",e.templateLabel)}}function Hfe(t,n){if(t&1&&f(0),t&2){let e=x().$implicit;N(e.textLabel)}}function zfe(t,n){if(t&1){let e=q();m(0,"div",7,2),S("click",function(){let r=k(e),o=r.$implicit,a=r.$index,s=x(),l=Te(1);return T(s._handleClick(o,l,a))})("cdkFocusChange",function(r){let o=k(e).$index,a=x();return T(a._tabFocusChanged(r,o))}),M(2,"span",8)(3,"div",9),m(4,"span",10)(5,"span",11),V(6,jfe,1,1,null,12)(7,Hfe,1,1),h()()()}if(t&2){let e=n.$implicit,i=n.$index,r=Te(1),o=x();at(e.labelClass),G("mdc-tab--active",o.selectedIndex===i),v("id",o._getTabLabelId(e,i))("disabled",e.disabled)("fitInkBarToContent",o.fitInkBarToContent),X("tabIndex",o._getTabIndex(i))("aria-posinset",i+1)("aria-setsize",o._tabs.length)("aria-controls",o._getTabContentId(i))("aria-selected",o.selectedIndex===i)("aria-label",e.ariaLabel||null)("aria-labelledby",!e.ariaLabel&&e.ariaLabelledby?e.ariaLabelledby:null),g(3),v("matRippleTrigger",r)("matRippleDisabled",e.disabled||o.disableRipple),g(3),B(e.templateLabel?6:7)}}function Ufe(t,n){t&1&&ne(0)}function $fe(t,n){if(t&1){let e=q();m(0,"mat-tab-body",13),S("_onCentered",function(){k(e);let r=x();return T(r._removeTabBodyWrapperHeight())})("_onCentering",function(r){k(e);let o=x();return T(o._setTabBodyWrapperHeight(r))})("_beforeCentering",function(r){k(e);let o=x();return T(o._bodyCentered(r))}),h()}if(t&2){let e=n.$implicit,i=n.$index,r=x();at(e.bodyClass),v("id",r._getTabContentId(i))("content",e.content)("position",e.position)("animationDuration",r.animationDuration)("preserveContent",r.preserveContent),X("tabindex",r.contentTabIndex!=null&&r.selectedIndex===i?r.contentTabIndex:null)("aria-labelledby",r._getTabLabelId(e,i))("aria-hidden",r.selectedIndex!==i)}}var Wfe=["mat-tab-nav-bar",""],Gfe=["mat-tab-link",""],qfe=new O("MatTabContent"),Yfe=(()=>{class t{template=u(te);constructor(){}static \u0275fac=function(i){return new(i||t)};static \u0275dir=P({type:t,selectors:[["","matTabContent",""]],features:[Ce([{provide:qfe,useExisting:t}])]})}return t})(),Qfe=new O("MatTabLabel"),H8=new O("MAT_TAB"),Kfe=(()=>{class t extends oB{_closestTab=u(H8,{optional:!0});static \u0275fac=(()=>{let e;return function(r){return(e||(e=ge(t)))(r||t)}})();static \u0275dir=P({type:t,selectors:[["","mat-tab-label",""],["","matTabLabel",""]],features:[Ce([{provide:Qfe,useExisting:t}]),le]})}return t})(),z8=new O("MAT_TAB_GROUP"),C_=(()=>{class t{_viewContainerRef=u(st);_closestTabGroup=u(z8,{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 z;position=null;origin=null;isActive=!1;constructor(){u(ft).load(Oi)}ngOnChanges(e){(e.hasOwnProperty("textLabel")||e.hasOwnProperty("disabled"))&&this._stateChanges.next()}ngOnDestroy(){this._stateChanges.complete()}ngOnInit(){this._contentPortal=new kn(this._explicitContent||this._implicitContent,this._viewContainerRef)}_setTemplateLabelInput(e){e&&e._closestTab===this&&(this._templateLabel=e)}static \u0275fac=function(i){return new(i||t)};static \u0275cmp=E({type:t,selectors:[["mat-tab"]],contentQueries:function(i,r,o){if(i&1&&(xe(o,Kfe,5),xe(o,Yfe,7,te)),i&2){let a;j(a=H())&&(r.templateLabel=a.first),j(a=H())&&(r._explicitContent=a.first)}},viewQuery:function(i,r){if(i&1&&ie(te,7),i&2){let o;j(o=H())&&(r._implicitContent=o.first)}},hostAttrs:["hidden",""],hostVars:1,hostBindings:function(i,r){i&2&&X("id",null)},inputs:{disabled:[2,"disabled","disabled",L],textLabel:[0,"label","textLabel"],ariaLabel:[0,"aria-label","ariaLabel"],ariaLabelledby:[0,"aria-labelledby","ariaLabelledby"],labelClass:"labelClass",bodyClass:"bodyClass",id:"id"},exportAs:["matTab"],features:[Ce([{provide:H8,useExisting:t}]),Oe],ngContentSelectors:lp,decls:1,vars:0,template:function(i,r){i&1&&(Ee(),Va(0,Pfe,1,0,"ng-template"))},encapsulation:2})}return t})(),VI="mdc-tab-indicator--active",R8="mdc-tab-indicator--no-transition",lw=class{_items;_currentItem;constructor(n){this._items=n}hide(){this._items.forEach(n=>n.deactivateInkBar()),this._currentItem=void 0}alignToElement(n){let e=this._items.find(r=>r.elementRef.nativeElement===n),i=this._currentItem;if(e!==i&&(i?.deactivateInkBar(),e)){let r=i?.elementRef.nativeElement.getBoundingClientRect?.();e.activateInkBar(r),this._currentItem=e}}},U8=(()=>{class t{_elementRef=u(Y);_inkBarElement;_inkBarContentElement;_fitToContent=!1;get fitInkBarToContent(){return this._fitToContent}set fitInkBarToContent(e){this._fitToContent!==e&&(this._fitToContent=e,this._inkBarElement&&this._appendInkBarElement())}activateInkBar(e){let i=this._elementRef.nativeElement;if(!e||!i.getBoundingClientRect||!this._inkBarContentElement){i.classList.add(VI);return}let r=i.getBoundingClientRect(),o=e.width/r.width,a=e.left-r.left;i.classList.add(R8),this._inkBarContentElement.style.setProperty("transform",`translateX(${a}px) scaleX(${o})`),i.getBoundingClientRect(),i.classList.remove(R8),i.classList.add(VI),this._inkBarContentElement.style.setProperty("transform","")}deactivateInkBar(){this._elementRef.nativeElement.classList.remove(VI)}ngOnInit(){this._createInkBarElement()}ngOnDestroy(){this._inkBarElement?.remove(),this._inkBarElement=this._inkBarContentElement=null}_createInkBarElement(){let e=this._elementRef.nativeElement.ownerDocument||document,i=this._inkBarElement=e.createElement("span"),r=this._inkBarContentElement=e.createElement("span");i.className="mdc-tab-indicator",r.className="mdc-tab-indicator__content mdc-tab-indicator__content--underline",i.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(i){return new(i||t)};static \u0275dir=P({type:t,inputs:{fitInkBarToContent:[2,"fitInkBarToContent","fitInkBarToContent",L]}})}return t})();var $8=(()=>{class t extends U8{elementRef=u(Y);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(r){return(e||(e=ge(t)))(r||t)}})();static \u0275dir=P({type:t,selectors:[["","matTabLabelWrapper",""]],hostVars:3,hostBindings:function(i,r){i&2&&(X("aria-disabled",!!r.disabled),G("mat-mdc-tab-disabled",r.disabled))},inputs:{disabled:[2,"disabled","disabled",L]},features:[le]})}return t})(),P8={passive:!0},Zfe=650,Xfe=100,W8=(()=>{class t{_elementRef=u(Y);_changeDetectorRef=u(ye);_viewportRuler=u(sr);_dir=u(Yt,{optional:!0});_ngZone=u(ae);_platform=u(Ye);_sharedResizeObserver=u(Jy);_injector=u(de);_renderer=u(ze);_animationsDisabled=Qe();_eventCleanups;_scrollDistance=0;_selectedIndexChanged=!1;_destroyed=new z;_showPaginationControls=!1;_disableScrollAfter=!0;_disableScrollBefore=!0;_tabLabelCount;_scrollDistanceChanged;_keyManager;_currentTextContent;_stopScrolling=new z;disablePagination=!1;get selectedIndex(){return this._selectedIndex}set selectedIndex(e){let i=isNaN(e)?0:e;this._selectedIndex!=i&&(this._selectedIndexChanged=!0,this._selectedIndex=i,this._keyManager&&this._keyManager.updateActiveItem(i))}_selectedIndex=0;selectFocusedIndex=new U;indexFocused=new U;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"),P8),this._renderer.listen(this._nextPaginator.nativeElement,"touchstart",()=>this._handlePaginatorPress("after"),P8))}ngAfterContentInit(){let e=this._dir?this._dir.change:Q("ltr"),i=this._sharedResizeObserver.observe(this._elementRef.nativeElement).pipe(Dt(32),we(this._destroyed)),r=this._viewportRuler.change(150).pipe(we(this._destroyed)),o=()=>{this.updatePagination(),this._alignInkBarToSelectedTab()};this._keyManager=new Ps(this._items).withHorizontalOrientation(this._getLayoutDirection()).withHomeAndEnd().withWrap().skipPredicate(()=>!1),this._keyManager.updateActiveItem(Math.max(this._selectedIndex,0)),vt(o,{injector:this._injector}),it(e,r,i,this._items.changes,this._itemsResized()).pipe(we(this._destroyed)).subscribe(()=>{this._ngZone.run(()=>{Promise.resolve().then(()=>{this._scrollDistance=Math.max(0,Math.min(this._getMaxScrollDistance(),this._scrollDistance)),o()})}),this._keyManager?.withHorizontalOrientation(this._getLayoutDirection())}),this._keyManager.change.subscribe(a=>{this.indexFocused.emit(a),this._setTabFocus(a)})}_itemsResized(){return typeof ResizeObserver!="function"?zi:this._items.changes.pipe(Ue(this._items),je(e=>new Ne(i=>this._ngZone.runOutsideAngular(()=>{let r=new ResizeObserver(o=>i.next(o));return e.forEach(o=>r.observe(o.elementRef.nativeElement)),()=>{r.disconnect()}}))),ds(1),ce(e=>e.some(i=>i.contentRect.width>0&&i.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(!Gt(e))switch(e.keyCode){case 13:case 32:if(this.focusIndex!==this.selectedIndex){let i=this._items.get(this.focusIndex);i&&!i.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 i=this._tabListContainer.nativeElement;this._getLayoutDirection()=="ltr"?i.scrollLeft=0:i.scrollLeft=i.scrollWidth-i.offsetWidth}}_getLayoutDirection(){return this._dir&&this._dir.value==="rtl"?"rtl":"ltr"}_updateTabScrollPosition(){if(this.disablePagination)return;let e=this.scrollDistance,i=this._getLayoutDirection()==="ltr"?-e:e;this._tabList.nativeElement.style.transform=`translateX(${Math.round(i)}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 i=this._tabListContainer.nativeElement.offsetWidth,r=(e=="before"?-1:1)*i/3;return this._scrollTo(this._scrollDistance+r)}_handlePaginatorClick(e){this._stopInterval(),this._scrollHeader(e)}_scrollToLabel(e){if(this.disablePagination)return;let i=this._items?this._items.toArray()[e]:null;if(!i)return;let r=this._tabListContainer.nativeElement.offsetWidth,{offsetLeft:o,offsetWidth:a}=i.elementRef.nativeElement,s,l;this._getLayoutDirection()=="ltr"?(s=o,l=s+a):(l=this._tabListInner.nativeElement.offsetWidth-o,s=l-a);let c=this.scrollDistance,d=this.scrollDistance+r;sd&&(this.scrollDistance+=Math.min(l-d,s-c))}_checkPaginationEnabled(){if(this.disablePagination)this._showPaginationControls=!1;else{let e=this._tabListInner.nativeElement.scrollWidth,i=this._elementRef.nativeElement.offsetWidth,r=e-i>=5;r||(this.scrollDistance=0),r!==this._showPaginationControls&&(this._showPaginationControls=r,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,i=this._tabListContainer.nativeElement.offsetWidth;return e-i||0}_alignInkBarToSelectedTab(){let e=this._items&&this._items.length?this._items.toArray()[this.selectedIndex]:null,i=e?e.elementRef.nativeElement:null;i?this._inkBar.alignToElement(i):this._inkBar.hide()}_stopInterval(){this._stopScrolling.next()}_handlePaginatorPress(e,i){i&&i.button!=null&&i.button!==0||(this._stopInterval(),cs(Zfe,Xfe).pipe(we(it(this._stopScrolling,this._destroyed))).subscribe(()=>{let{maxScrollDistance:r,distance:o}=this._scrollHeader(e);(o===0||o>=r)&&this._stopInterval()}))}_scrollTo(e){if(this.disablePagination)return{maxScrollDistance:0,distance:0};let i=this._getMaxScrollDistance();return this._scrollDistance=Math.max(0,Math.min(i,e)),this._scrollDistanceChanged=!0,this._checkScrollingControls(),{maxScrollDistance:i,distance:this._scrollDistance}}static \u0275fac=function(i){return new(i||t)};static \u0275dir=P({type:t,inputs:{disablePagination:[2,"disablePagination","disablePagination",L],selectedIndex:[2,"selectedIndex","selectedIndex",ht]},outputs:{selectFocusedIndex:"selectFocusedIndex",indexFocused:"indexFocused"}})}return t})(),Jfe=(()=>{class t extends W8{_items;_tabListContainer;_tabList;_tabListInner;_nextPaginator;_previousPaginator;_inkBar;ariaLabel;ariaLabelledby;disableRipple=!1;ngAfterContentInit(){this._inkBar=new lw(this._items),super.ngAfterContentInit()}_itemSelected(e){e.preventDefault()}static \u0275fac=(()=>{let e;return function(r){return(e||(e=ge(t)))(r||t)}})();static \u0275cmp=E({type:t,selectors:[["mat-tab-header"]],contentQueries:function(i,r,o){if(i&1&&xe(o,$8,4),i&2){let a;j(a=H())&&(r._items=a)}},viewQuery:function(i,r){if(i&1&&(ie(N8,7),ie(L8,7),ie(V8,7),ie(B8,5),ie(j8,5)),i&2){let o;j(o=H())&&(r._tabListContainer=o.first),j(o=H())&&(r._tabList=o.first),j(o=H())&&(r._tabListInner=o.first),j(o=H())&&(r._nextPaginator=o.first),j(o=H())&&(r._previousPaginator=o.first)}},hostAttrs:[1,"mat-mdc-tab-header"],hostVars:4,hostBindings:function(i,r){i&2&&G("mat-mdc-tab-header-pagination-controls-enabled",r._showPaginationControls)("mat-mdc-tab-header-rtl",r._getLayoutDirection()=="rtl")},inputs:{ariaLabel:[0,"aria-label","ariaLabel"],ariaLabelledby:[0,"aria-labelledby","ariaLabelledby"],disableRipple:[2,"disableRipple","disableRipple",L]},features:[le],ngContentSelectors:lp,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(i,r){if(i&1){let o=q();Ee(),m(0,"div",5,0),S("click",function(){return k(o),T(r._handlePaginatorClick("before"))})("mousedown",function(s){return k(o),T(r._handlePaginatorPress("before",s))})("touchend",function(){return k(o),T(r._stopInterval())}),M(2,"div",6),h(),m(3,"div",7,1),S("keydown",function(s){return k(o),T(r._handleKeydown(s))}),m(5,"div",8,2),S("cdkObserveContent",function(){return k(o),T(r._onContentChanges())}),m(7,"div",9,3),ne(9),h()()(),m(10,"div",10,4),S("mousedown",function(s){return k(o),T(r._handlePaginatorPress("after",s))})("click",function(){return k(o),T(r._handlePaginatorClick("after"))})("touchend",function(){return k(o),T(r._stopInterval())}),M(12,"div",6),h()}i&2&&(G("mat-mdc-tab-header-pagination-disabled",r._disableScrollBefore),v("matRippleDisabled",r._disableScrollBefore||r.disableRipple),g(3),G("_mat-animation-noopable",r._animationsDisabled),g(2),X("aria-label",r.ariaLabel||null)("aria-labelledby",r.ariaLabelledby||null),g(5),G("mat-mdc-tab-header-pagination-disabled",r._disableScrollAfter),v("matRippleDisabled",r._disableScrollAfter||r.disableRipple))},dependencies:[qn,Zf],styles:[`.mat-mdc-tab-header{display:flex;overflow:hidden;position:relative;flex-shrink:0}.mdc-tab-indicator .mdc-tab-indicator__content{transition-duration:var(--mat-tab-animation-duration, 250ms)}.mat-mdc-tab-header-pagination{-webkit-user-select:none;user-select:none;position:relative;display:none;justify-content:center;align-items:center;min-width:32px;cursor:pointer;z-index:2;-webkit-tap-highlight-color:rgba(0,0,0,0);touch-action:none;box-sizing:content-box;outline:0}.mat-mdc-tab-header-pagination::-moz-focus-inner{border:0}.mat-mdc-tab-header-pagination .mat-ripple-element{opacity:.12;background-color:var(--mat-tab-inactive-ripple-color, var(--mat-sys-on-surface))}.mat-mdc-tab-header-pagination-controls-enabled .mat-mdc-tab-header-pagination{display:flex}.mat-mdc-tab-header-pagination-before,.mat-mdc-tab-header-rtl .mat-mdc-tab-header-pagination-after{padding-left:4px}.mat-mdc-tab-header-pagination-before .mat-mdc-tab-header-pagination-chevron,.mat-mdc-tab-header-rtl .mat-mdc-tab-header-pagination-after .mat-mdc-tab-header-pagination-chevron{transform:rotate(-135deg)}.mat-mdc-tab-header-rtl .mat-mdc-tab-header-pagination-before,.mat-mdc-tab-header-pagination-after{padding-right:4px}.mat-mdc-tab-header-rtl .mat-mdc-tab-header-pagination-before .mat-mdc-tab-header-pagination-chevron,.mat-mdc-tab-header-pagination-after .mat-mdc-tab-header-pagination-chevron{transform:rotate(45deg)}.mat-mdc-tab-header-pagination-chevron{border-style:solid;border-width:2px 2px 0 0;height:8px;width:8px;border-color:var(--mat-tab-pagination-icon-color, var(--mat-sys-on-surface))}.mat-mdc-tab-header-pagination-disabled{box-shadow:none;cursor:default;pointer-events:none}.mat-mdc-tab-header-pagination-disabled .mat-mdc-tab-header-pagination-chevron{opacity:.4}.mat-mdc-tab-list{flex-grow:1;position:relative;transition:transform 500ms cubic-bezier(0.35, 0, 0.25, 1)}._mat-animation-noopable .mat-mdc-tab-list{transition:none}.mat-mdc-tab-label-container{display:flex;flex-grow:1;overflow:hidden;z-index:1;border-bottom-style:solid;border-bottom-width:var(--mat-tab-divider-height, 1px);border-bottom-color:var(--mat-tab-divider-color, var(--mat-sys-surface-variant))}.mat-mdc-tab-group-inverted-header .mat-mdc-tab-label-container{border-bottom:none;border-top-style:solid;border-top-width:var(--mat-tab-divider-height, 1px);border-top-color:var(--mat-tab-divider-color, var(--mat-sys-surface-variant))}.mat-mdc-tab-labels{display:flex;flex:1 0 auto}[mat-align-tabs=center]>.mat-mdc-tab-header .mat-mdc-tab-labels{justify-content:center}[mat-align-tabs=end]>.mat-mdc-tab-header .mat-mdc-tab-labels{justify-content:flex-end}.cdk-drop-list .mat-mdc-tab-labels,.mat-mdc-tab-labels.cdk-drop-list{min-height:var(--mat-tab-container-height, 48px)}.mat-mdc-tab::before{margin:5px}@media(forced-colors: active){.mat-mdc-tab[aria-disabled=true]{color:GrayText}} +`],encapsulation:2})}return t})(),G8=new O("MAT_TABS_CONFIG"),F8=(()=>{class t extends Ir{_host=u(BI);_ngZone=u(ae);_centeringSub=ke.EMPTY;_leavingSub=ke.EMPTY;constructor(){super()}ngOnInit(){super.ngOnInit(),this._centeringSub=this._host._beforeCentering.pipe(Ue(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(i){return new(i||t)};static \u0275dir=P({type:t,selectors:[["","matTabBodyHost",""]],features:[le]})}return t})(),BI=(()=>{class t{_elementRef=u(Y);_dir=u(Yt,{optional:!0});_ngZone=u(ae);_injector=u(de);_renderer=u(ze);_diAnimationsDisabled=Qe();_eventCleanups;_initialized;_fallbackTimer;_positionIndex;_dirChangeSubscription=ke.EMPTY;_position;_previousPosition;_onCentering=new U;_beforeCentering=new U;_afterLeavingCenter=new U;_onCentered=new U(!0);_portalHost;_contentElement;_content;animationDuration="500ms";preserveContent=!1;set position(e){this._positionIndex=e,this._computePositionAnimationState()}constructor(){if(this._dir){let e=u(ye);this._dirChangeSubscription=this._dir.change.subscribe(i=>{this._computePositionAnimationState(i),e.markForCheck()})}}ngOnInit(){this._bindTransitionEvents(),this._position==="center"&&(this._setActiveClass(!0),vt(()=>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,i=r=>{r.target===this._contentElement?.nativeElement&&(this._elementRef.nativeElement.classList.remove("mat-tab-body-animating"),r.type==="transitionend"&&this._transitionDone())};this._eventCleanups=[this._renderer.listen(e,"transitionstart",r=>{r.target===this._contentElement?.nativeElement&&(this._elementRef.nativeElement.classList.add("mat-tab-body-animating"),this._transitionStarted())}),this._renderer.listen(e,"transitionend",i),this._renderer.listen(e,"transitioncancel",i)]})}_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(),vt(()=>this._transitionDone(),{injector:this._injector})}_animationsDisabled(){return this._diAnimationsDisabled||this.animationDuration==="0ms"||this.animationDuration==="0s"}static \u0275fac=function(i){return new(i||t)};static \u0275cmp=E({type:t,selectors:[["mat-tab-body"]],viewQuery:function(i,r){if(i&1&&(ie(F8,5),ie(Ffe,5)),i&2){let o;j(o=H())&&(r._portalHost=o.first),j(o=H())&&(r._contentElement=o.first)}},hostAttrs:[1,"mat-mdc-tab-body"],hostVars:1,hostBindings:function(i,r){i&2&&X("inert",r._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(i,r){i&1&&(m(0,"div",1,0),A(2,Nfe,0,0,"ng-template",2),h()),i&2&&G("mat-tab-body-content-left",r._position==="left")("mat-tab-body-content-right",r._position==="right")("mat-tab-body-content-can-animate",r._position==="center"||r._previousPosition==="center")},dependencies:[F8,Za],styles:[`.mat-mdc-tab-body{top:0;left:0;right:0;bottom:0;position:absolute;display:block;overflow:hidden;outline:0;flex-basis:100%}.mat-mdc-tab-body.mat-mdc-tab-body-active{position:relative;overflow-x:hidden;overflow-y:auto;z-index:1;flex-grow:1}.mat-mdc-tab-group.mat-mdc-tab-group-dynamic-height .mat-mdc-tab-body.mat-mdc-tab-body-active{overflow-y:hidden}.mat-mdc-tab-body-content{height:100%;overflow:auto;transform:none;visibility:hidden}.mat-tab-body-animating>.mat-mdc-tab-body-content,.mat-mdc-tab-body-active>.mat-mdc-tab-body-content{visibility:visible}.mat-tab-body-animating>.mat-mdc-tab-body-content{min-height:1px}.mat-mdc-tab-group-dynamic-height .mat-mdc-tab-body-content{overflow:hidden}.mat-tab-body-content-can-animate{transition:transform var(--mat-tab-animation-duration) 1ms cubic-bezier(0.35, 0, 0.25, 1)}.mat-mdc-tab-body-wrapper._mat-animation-noopable .mat-tab-body-content-can-animate{transition:none}.mat-tab-body-content-left{transform:translate3d(-100%, 0, 0)}.mat-tab-body-content-right{transform:translate3d(100%, 0, 0)} +`],encapsulation:2})}return t})(),cw=(()=>{class t{_elementRef=u(Y);_changeDetectorRef=u(ye);_ngZone=u(ae);_tabsSubscription=ke.EMPTY;_tabLabelSubscription=ke.EMPTY;_tabBodySubscription=ke.EMPTY;_diAnimationsDisabled=Qe();_allTabs;_tabBodies;_tabBodyWrapper;_tabHeader;_tabs=new Dr;_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 i=e+"";this._animationDuration=/^\d+$/.test(i)?e+"ms":i}_animationDuration;get contentTabIndex(){return this._contentTabIndex}set contentTabIndex(e){this._contentTabIndex=isNaN(e)?null:e}_contentTabIndex;disablePagination=!1;disableRipple=!1;preserveContent=!1;get backgroundColor(){return this._backgroundColor}set backgroundColor(e){let i=this._elementRef.nativeElement.classList;i.remove("mat-tabs-with-background",`mat-background-${this.backgroundColor}`),e&&i.add("mat-tabs-with-background",`mat-background-${e}`),this._backgroundColor=e}_backgroundColor;ariaLabel;ariaLabelledby;selectedIndexChange=new U;focusChange=new U;animationDone=new U;selectedTabChange=new U(!0);_groupId;_isServer=!u(Ye).isBrowser;constructor(){let e=u(G8,{optional:!0});this._groupId=u(et).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 i=this._selectedIndex==null;if(!i){this.selectedTabChange.emit(this._createChangeEvent(e));let r=this._tabBodyWrapper.nativeElement;r.style.minHeight=r.clientHeight+"px"}Promise.resolve().then(()=>{this._tabs.forEach((r,o)=>r.isActive=o===e),i||(this.selectedIndexChange.emit(e),this._tabBodyWrapper.nativeElement.style.minHeight="")})}this._tabs.forEach((i,r)=>{i.position=r-e,this._selectedIndex!=null&&i.position==0&&!i.origin&&(i.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 i=this._tabs.toArray(),r;for(let o=0;o{i[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(Ue(this._allTabs)).subscribe(e=>{this._tabs.reset(e.filter(i=>i._closestTabGroup===this||!i._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 i=this._tabHeader;i&&(i.focusIndex=e)}_focusChanged(e){this._lastFocusedTabIndex=e,this.focusChange.emit(this._createChangeEvent(e))}_createChangeEvent(e){let i=new jI;return i.index=e,this._tabs&&this._tabs.length&&(i.tab=this._tabs.toArray()[e]),i}_subscribeToTabLabels(){this._tabLabelSubscription&&this._tabLabelSubscription.unsubscribe(),this._tabLabelSubscription=it(...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,i){return e.id||`${this._groupId}-label-${i}`}_getTabContentId(e){return`${this._groupId}-content-${e}`}_setTabBodyWrapperHeight(e){if(!this.dynamicHeight||!this._tabBodyWrapperHeight){this._tabBodyWrapperHeight=e;return}let i=this._tabBodyWrapper.nativeElement;i.style.height=this._tabBodyWrapperHeight+"px",this._tabBodyWrapper.nativeElement.offsetHeight&&(i.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,i,r){i.focusIndex=r,e.disabled||(this.selectedIndex=r)}_getTabIndex(e){let i=this._lastFocusedTabIndex??this.selectedIndex;return e===i?0:-1}_tabFocusChanged(e,i){e&&e!=="mouse"&&e!=="touch"&&(this._tabHeader.focusIndex=i)}_bodyCentered(e){e&&this._tabBodies?.forEach((i,r)=>i._setActiveClass(r===this._selectedIndex))}_animationsDisabled(){return this._diAnimationsDisabled||this.animationDuration==="0"||this.animationDuration==="0ms"}static \u0275fac=function(i){return new(i||t)};static \u0275cmp=E({type:t,selectors:[["mat-tab-group"]],contentQueries:function(i,r,o){if(i&1&&xe(o,C_,5),i&2){let a;j(a=H())&&(r._allTabs=a)}},viewQuery:function(i,r){if(i&1&&(ie(Lfe,5),ie(Vfe,5),ie(BI,5)),i&2){let o;j(o=H())&&(r._tabBodyWrapper=o.first),j(o=H())&&(r._tabHeader=o.first),j(o=H())&&(r._tabBodies=o)}},hostAttrs:[1,"mat-mdc-tab-group"],hostVars:11,hostBindings:function(i,r){i&2&&(X("mat-align-tabs",r.alignTabs),at("mat-"+(r.color||"primary")),At("--mat-tab-animation-duration",r.animationDuration),G("mat-mdc-tab-group-dynamic-height",r.dynamicHeight)("mat-mdc-tab-group-inverted-header",r.headerPosition==="below")("mat-mdc-tab-group-stretch-tabs",r.stretchTabs))},inputs:{color:"color",fitInkBarToContent:[2,"fitInkBarToContent","fitInkBarToContent",L],stretchTabs:[2,"mat-stretch-tabs","stretchTabs",L],alignTabs:[0,"mat-align-tabs","alignTabs"],dynamicHeight:[2,"dynamicHeight","dynamicHeight",L],selectedIndex:[2,"selectedIndex","selectedIndex",ht],headerPosition:"headerPosition",animationDuration:"animationDuration",contentTabIndex:[2,"contentTabIndex","contentTabIndex",ht],disablePagination:[2,"disablePagination","disablePagination",L],disableRipple:[2,"disableRipple","disableRipple",L],preserveContent:[2,"preserveContent","preserveContent",L],backgroundColor:"backgroundColor",ariaLabel:[0,"aria-label","ariaLabel"],ariaLabelledby:[0,"aria-labelledby","ariaLabelledby"]},outputs:{selectedIndexChange:"selectedIndexChange",focusChange:"focusChange",animationDone:"animationDone",selectedTabChange:"selectedTabChange"},exportAs:["matTabGroup"],features:[Ce([{provide:z8,useExisting:t}])],ngContentSelectors:lp,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(i,r){if(i&1){let o=q();Ee(),m(0,"mat-tab-header",3,0),S("indexFocused",function(s){return k(o),T(r._focusChanged(s))})("selectFocusedIndex",function(s){return k(o),T(r.selectedIndex=s)}),Mt(2,zfe,8,17,"div",4,Em),h(),V(4,Ufe,1,0),m(5,"div",5,1),Mt(7,$fe,1,10,"mat-tab-body",6,Em),h()}i&2&&(v("selectedIndex",r.selectedIndex||0)("disableRipple",r.disableRipple)("disablePagination",r.disablePagination),pc("aria-label",r.ariaLabel)("aria-labelledby",r.ariaLabelledby),g(2),Et(r._tabs),g(2),B(r._isServer?4:-1),g(),G("_mat-animation-noopable",r._animationsDisabled()),g(2),Et(r._tabs))},dependencies:[Jfe,$8,Kf,qn,Ir,BI],styles:[`.mdc-tab{min-width:90px;padding:0 24px;display:flex;flex:1 0 auto;justify-content:center;box-sizing:border-box;border:none;outline:none;text-align:center;white-space:nowrap;cursor:pointer;z-index:1;touch-action:manipulation}.mdc-tab__content{display:flex;align-items:center;justify-content:center;height:inherit;pointer-events:none}.mdc-tab__text-label{transition:150ms color linear;display:inline-block;line-height:1;z-index:2}.mdc-tab--active .mdc-tab__text-label{transition-delay:100ms}._mat-animation-noopable .mdc-tab__text-label{transition:none}.mdc-tab-indicator{display:flex;position:absolute;top:0;left:0;justify-content:center;width:100%;height:100%;pointer-events:none;z-index:1}.mdc-tab-indicator__content{transition:var(--mat-tab-animation-duration, 250ms) transform cubic-bezier(0.4, 0, 0.2, 1);transform-origin:left;opacity:0}.mdc-tab-indicator__content--underline{align-self:flex-end;box-sizing:border-box;width:100%;border-top-style:solid}.mdc-tab-indicator--active .mdc-tab-indicator__content{opacity:1}._mat-animation-noopable .mdc-tab-indicator__content,.mdc-tab-indicator--no-transition .mdc-tab-indicator__content{transition:none}.mat-mdc-tab-ripple.mat-mdc-tab-ripple{position:absolute;top:0;left:0;bottom:0;right:0;pointer-events:none}.mat-mdc-tab{-webkit-tap-highlight-color:rgba(0,0,0,0);-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;text-decoration:none;background:none;height:var(--mat-tab-container-height, 48px);font-family:var(--mat-tab-label-text-font, var(--mat-sys-title-small-font));font-size:var(--mat-tab-label-text-size, var(--mat-sys-title-small-size));letter-spacing:var(--mat-tab-label-text-tracking, var(--mat-sys-title-small-tracking));line-height:var(--mat-tab-label-text-line-height, var(--mat-sys-title-small-line-height));font-weight:var(--mat-tab-label-text-weight, var(--mat-sys-title-small-weight))}.mat-mdc-tab.mdc-tab{flex-grow:0}.mat-mdc-tab .mdc-tab-indicator__content--underline{border-color:var(--mat-tab-active-indicator-color, var(--mat-sys-primary));border-top-width:var(--mat-tab-active-indicator-height, 2px);border-radius:var(--mat-tab-active-indicator-shape, 0)}.mat-mdc-tab:hover .mdc-tab__text-label{color:var(--mat-tab-inactive-hover-label-text-color, var(--mat-sys-on-surface))}.mat-mdc-tab:focus .mdc-tab__text-label{color:var(--mat-tab-inactive-focus-label-text-color, var(--mat-sys-on-surface))}.mat-mdc-tab.mdc-tab--active .mdc-tab__text-label{color:var(--mat-tab-active-label-text-color, var(--mat-sys-on-surface))}.mat-mdc-tab.mdc-tab--active .mdc-tab__ripple::before,.mat-mdc-tab.mdc-tab--active .mat-ripple-element{background-color:var(--mat-tab-active-ripple-color, var(--mat-sys-on-surface))}.mat-mdc-tab.mdc-tab--active:hover .mdc-tab__text-label{color:var(--mat-tab-active-hover-label-text-color, var(--mat-sys-on-surface))}.mat-mdc-tab.mdc-tab--active:hover .mdc-tab-indicator__content--underline{border-color:var(--mat-tab-active-hover-indicator-color, var(--mat-sys-primary))}.mat-mdc-tab.mdc-tab--active:focus .mdc-tab__text-label{color:var(--mat-tab-active-focus-label-text-color, var(--mat-sys-on-surface))}.mat-mdc-tab.mdc-tab--active:focus .mdc-tab-indicator__content--underline{border-color:var(--mat-tab-active-focus-indicator-color, var(--mat-sys-primary))}.mat-mdc-tab.mat-mdc-tab-disabled{opacity:.4;pointer-events:none}.mat-mdc-tab.mat-mdc-tab-disabled .mdc-tab__content{pointer-events:none}.mat-mdc-tab.mat-mdc-tab-disabled .mdc-tab__ripple::before,.mat-mdc-tab.mat-mdc-tab-disabled .mat-ripple-element{background-color:var(--mat-tab-disabled-ripple-color, var(--mat-sys-on-surface-variant))}.mat-mdc-tab .mdc-tab__ripple::before{content:"";display:block;position:absolute;top:0;left:0;right:0;bottom:0;opacity:0;pointer-events:none;background-color:var(--mat-tab-inactive-ripple-color, var(--mat-sys-on-surface))}.mat-mdc-tab .mdc-tab__text-label{color:var(--mat-tab-inactive-label-text-color, var(--mat-sys-on-surface));display:inline-flex;align-items:center}.mat-mdc-tab .mdc-tab__content{position:relative;pointer-events:auto}.mat-mdc-tab:hover .mdc-tab__ripple::before{opacity:.04}.mat-mdc-tab.cdk-program-focused .mdc-tab__ripple::before,.mat-mdc-tab.cdk-keyboard-focused .mdc-tab__ripple::before{opacity:.12}.mat-mdc-tab .mat-ripple-element{opacity:.12;background-color:var(--mat-tab-inactive-ripple-color, var(--mat-sys-on-surface))}.mat-mdc-tab-group.mat-mdc-tab-group-stretch-tabs>.mat-mdc-tab-header .mat-mdc-tab{flex-grow:1}.mat-mdc-tab-group{display:flex;flex-direction:column;max-width:100%}.mat-mdc-tab-group.mat-tabs-with-background>.mat-mdc-tab-header,.mat-mdc-tab-group.mat-tabs-with-background>.mat-mdc-tab-header-pagination{background-color:var(--mat-tab-background-color)}.mat-mdc-tab-group.mat-tabs-with-background.mat-primary>.mat-mdc-tab-header .mat-mdc-tab .mdc-tab__text-label{color:var(--mat-tab-foreground-color)}.mat-mdc-tab-group.mat-tabs-with-background.mat-primary>.mat-mdc-tab-header .mdc-tab-indicator__content--underline{border-color:var(--mat-tab-foreground-color)}.mat-mdc-tab-group.mat-tabs-with-background:not(.mat-primary)>.mat-mdc-tab-header .mat-mdc-tab:not(.mdc-tab--active) .mdc-tab__text-label{color:var(--mat-tab-foreground-color)}.mat-mdc-tab-group.mat-tabs-with-background:not(.mat-primary)>.mat-mdc-tab-header .mat-mdc-tab:not(.mdc-tab--active) .mdc-tab-indicator__content--underline{border-color:var(--mat-tab-foreground-color)}.mat-mdc-tab-group.mat-tabs-with-background>.mat-mdc-tab-header .mat-mdc-tab-header-pagination-chevron,.mat-mdc-tab-group.mat-tabs-with-background>.mat-mdc-tab-header .mat-focus-indicator::before,.mat-mdc-tab-group.mat-tabs-with-background>.mat-mdc-tab-header-pagination .mat-mdc-tab-header-pagination-chevron,.mat-mdc-tab-group.mat-tabs-with-background>.mat-mdc-tab-header-pagination .mat-focus-indicator::before{border-color:var(--mat-tab-foreground-color)}.mat-mdc-tab-group.mat-tabs-with-background>.mat-mdc-tab-header .mat-ripple-element,.mat-mdc-tab-group.mat-tabs-with-background>.mat-mdc-tab-header .mdc-tab__ripple::before,.mat-mdc-tab-group.mat-tabs-with-background>.mat-mdc-tab-header-pagination .mat-ripple-element,.mat-mdc-tab-group.mat-tabs-with-background>.mat-mdc-tab-header-pagination .mdc-tab__ripple::before{background-color:var(--mat-tab-foreground-color)}.mat-mdc-tab-group.mat-tabs-with-background>.mat-mdc-tab-header .mat-mdc-tab-header-pagination-chevron,.mat-mdc-tab-group.mat-tabs-with-background>.mat-mdc-tab-header-pagination .mat-mdc-tab-header-pagination-chevron{color:var(--mat-tab-foreground-color)}.mat-mdc-tab-group.mat-mdc-tab-group-inverted-header{flex-direction:column-reverse}.mat-mdc-tab-group.mat-mdc-tab-group-inverted-header .mdc-tab-indicator__content--underline{align-self:flex-start}.mat-mdc-tab-body-wrapper{position:relative;overflow:hidden;display:flex;transition:height 500ms cubic-bezier(0.35, 0, 0.25, 1)}.mat-mdc-tab-body-wrapper._mat-animation-noopable{transition:none !important;animation:none !important} +`],encapsulation:2})}return t})(),jI=class{index;tab},HI=(()=>{class t extends W8{_focusedItem=he(null);get fitInkBarToContent(){return this._fitInkBarToContent.value}set fitInkBarToContent(e){this._fitInkBarToContent.next(e),this._changeDetectorRef.markForCheck()}_fitInkBarToContent=new rt(!1);stretchTabs=!0;get animationDuration(){return this._animationDuration}set animationDuration(e){let i=e+"";this._animationDuration=/^\d+$/.test(i)?e+"ms":i}_animationDuration;_items;get backgroundColor(){return this._backgroundColor}set backgroundColor(e){let i=this._elementRef.nativeElement.classList;i.remove("mat-tabs-with-background",`mat-background-${this.backgroundColor}`),e&&i.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=he(!1);color="primary";tabPanel;_tabListContainer;_tabList;_tabListInner;_nextPaginator;_previousPaginator;_inkBar;constructor(){let e=u(G8,{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 lw(this._items),this._items.changes.pipe(Ue(null),we(this._destroyed)).subscribe(()=>this.updateActiveLink()),super.ngAfterContentInit(),this._keyManager.change.pipe(Ue(null),we(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 i=0;i.mat-mdc-tab-link-container .mat-mdc-tab-links{justify-content:center}[mat-align-tabs=end]>.mat-mdc-tab-link-container .mat-mdc-tab-links{justify-content:flex-end}.cdk-drop-list .mat-mdc-tab-links,.mat-mdc-tab-links.cdk-drop-list{min-height:var(--mat-tab-container-height, 48px)}.mat-mdc-tab-link-container{display:flex;flex-grow:1;overflow:hidden;z-index:1;border-bottom-style:solid;border-bottom-width:var(--mat-tab-divider-height, 1px);border-bottom-color:var(--mat-tab-divider-color, var(--mat-sys-surface-variant))}.mat-mdc-tab-nav-bar.mat-tabs-with-background>.mat-mdc-tab-link-container,.mat-mdc-tab-nav-bar.mat-tabs-with-background>.mat-mdc-tab-header-pagination{background-color:var(--mat-tab-background-color)}.mat-mdc-tab-nav-bar.mat-tabs-with-background.mat-primary>.mat-mdc-tab-link-container .mat-mdc-tab-link .mdc-tab__text-label{color:var(--mat-tab-foreground-color)}.mat-mdc-tab-nav-bar.mat-tabs-with-background.mat-primary>.mat-mdc-tab-link-container .mdc-tab-indicator__content--underline{border-color:var(--mat-tab-foreground-color)}.mat-mdc-tab-nav-bar.mat-tabs-with-background:not(.mat-primary)>.mat-mdc-tab-link-container .mat-mdc-tab-link:not(.mdc-tab--active) .mdc-tab__text-label{color:var(--mat-tab-foreground-color)}.mat-mdc-tab-nav-bar.mat-tabs-with-background:not(.mat-primary)>.mat-mdc-tab-link-container .mat-mdc-tab-link:not(.mdc-tab--active) .mdc-tab-indicator__content--underline{border-color:var(--mat-tab-foreground-color)}.mat-mdc-tab-nav-bar.mat-tabs-with-background>.mat-mdc-tab-link-container .mat-mdc-tab-header-pagination-chevron,.mat-mdc-tab-nav-bar.mat-tabs-with-background>.mat-mdc-tab-link-container .mat-focus-indicator::before,.mat-mdc-tab-nav-bar.mat-tabs-with-background>.mat-mdc-tab-header-pagination .mat-mdc-tab-header-pagination-chevron,.mat-mdc-tab-nav-bar.mat-tabs-with-background>.mat-mdc-tab-header-pagination .mat-focus-indicator::before{border-color:var(--mat-tab-foreground-color)}.mat-mdc-tab-nav-bar.mat-tabs-with-background>.mat-mdc-tab-link-container .mat-ripple-element,.mat-mdc-tab-nav-bar.mat-tabs-with-background>.mat-mdc-tab-link-container .mdc-tab__ripple::before,.mat-mdc-tab-nav-bar.mat-tabs-with-background>.mat-mdc-tab-header-pagination .mat-ripple-element,.mat-mdc-tab-nav-bar.mat-tabs-with-background>.mat-mdc-tab-header-pagination .mdc-tab__ripple::before{background-color:var(--mat-tab-foreground-color)}.mat-mdc-tab-nav-bar.mat-tabs-with-background>.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 t})(),ege=(()=>{class t extends U8{_tabNavBar=u(HI);elementRef=u(Y);_focusMonitor=u(oi);_destroyed=new z;_isActive=!1;_tabIndex=ci(()=>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=he(!1);tabIndex=0;rippleConfig;get rippleDisabled(){return this.disabled||this.disableRipple||this._tabNavBar.disableRipple||!!this.rippleConfig.disabled}id=u(et).getId("mat-tab-link-");constructor(){super(),u(ft).load(Oi);let e=u(Vs,{optional:!0}),i=u(new Li("tabindex"),{optional:!0});this.rippleConfig=e||{},this.tabIndex=i==null?0:parseInt(i)||0,Qe()&&(this.rippleConfig.animation={enterDuration:0,exitDuration:0}),this._tabNavBar._fitInkBarToContent.pipe(we(this._destroyed)).subscribe(r=>{this.fitInkBarToContent=r})}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(i){return new(i||t)};static \u0275cmp=E({type:t,selectors:[["","mat-tab-link",""],["","matTabLink",""]],hostAttrs:[1,"mdc-tab","mat-mdc-tab-link","mat-focus-indicator"],hostVars:11,hostBindings:function(i,r){i&1&&S("focus",function(){return r._handleFocus()})("keydown",function(a){return r._handleKeydown(a)}),i&2&&(X("aria-controls",r._getAriaControls())("aria-current",r._getAriaCurrent())("aria-disabled",r.disabled)("aria-selected",r._getAriaSelected())("id",r.id)("tabIndex",r._tabIndex())("role",r._getRole()),G("mat-mdc-tab-disabled",r.disabled)("mdc-tab--active",r.active))},inputs:{active:[2,"active","active",L],disabled:[2,"disabled","disabled",L],disableRipple:[2,"disableRipple","disableRipple",L],tabIndex:[2,"tabIndex","tabIndex",e=>e==null?0:ht(e)],id:"id"},exportAs:["matTabLink"],features:[le],attrs:Gfe,ngContentSelectors:lp,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(i,r){i&1&&(Ee(),M(0,"span",0)(1,"div",1),m(2,"span",2)(3,"span",3),ne(4),h()()),i&2&&(g(),v("matRippleTrigger",r.elementRef.nativeElement)("matRippleDisabled",r.rippleDisabled))},dependencies:[qn],styles:[`.mat-mdc-tab-link{-webkit-tap-highlight-color:rgba(0,0,0,0);-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;text-decoration:none;background:none;height:var(--mat-tab-container-height, 48px);font-family:var(--mat-tab-label-text-font, var(--mat-sys-title-small-font));font-size:var(--mat-tab-label-text-size, var(--mat-sys-title-small-size));letter-spacing:var(--mat-tab-label-text-tracking, var(--mat-sys-title-small-tracking));line-height:var(--mat-tab-label-text-line-height, var(--mat-sys-title-small-line-height));font-weight:var(--mat-tab-label-text-weight, var(--mat-sys-title-small-weight))}.mat-mdc-tab-link.mdc-tab{flex-grow:0}.mat-mdc-tab-link .mdc-tab-indicator__content--underline{border-color:var(--mat-tab-active-indicator-color, var(--mat-sys-primary));border-top-width:var(--mat-tab-active-indicator-height, 2px);border-radius:var(--mat-tab-active-indicator-shape, 0)}.mat-mdc-tab-link:hover .mdc-tab__text-label{color:var(--mat-tab-inactive-hover-label-text-color, var(--mat-sys-on-surface))}.mat-mdc-tab-link:focus .mdc-tab__text-label{color:var(--mat-tab-inactive-focus-label-text-color, var(--mat-sys-on-surface))}.mat-mdc-tab-link.mdc-tab--active .mdc-tab__text-label{color:var(--mat-tab-active-label-text-color, var(--mat-sys-on-surface))}.mat-mdc-tab-link.mdc-tab--active .mdc-tab__ripple::before,.mat-mdc-tab-link.mdc-tab--active .mat-ripple-element{background-color:var(--mat-tab-active-ripple-color, var(--mat-sys-on-surface))}.mat-mdc-tab-link.mdc-tab--active:hover .mdc-tab__text-label{color:var(--mat-tab-active-hover-label-text-color, var(--mat-sys-on-surface))}.mat-mdc-tab-link.mdc-tab--active:hover .mdc-tab-indicator__content--underline{border-color:var(--mat-tab-active-hover-indicator-color, var(--mat-sys-primary))}.mat-mdc-tab-link.mdc-tab--active:focus .mdc-tab__text-label{color:var(--mat-tab-active-focus-label-text-color, var(--mat-sys-on-surface))}.mat-mdc-tab-link.mdc-tab--active:focus .mdc-tab-indicator__content--underline{border-color:var(--mat-tab-active-focus-indicator-color, var(--mat-sys-primary))}.mat-mdc-tab-link.mat-mdc-tab-disabled{opacity:.4;pointer-events:none}.mat-mdc-tab-link.mat-mdc-tab-disabled .mdc-tab__content{pointer-events:none}.mat-mdc-tab-link.mat-mdc-tab-disabled .mdc-tab__ripple::before,.mat-mdc-tab-link.mat-mdc-tab-disabled .mat-ripple-element{background-color:var(--mat-tab-disabled-ripple-color, var(--mat-sys-on-surface-variant))}.mat-mdc-tab-link .mdc-tab__ripple::before{content:"";display:block;position:absolute;top:0;left:0;right:0;bottom:0;opacity:0;pointer-events:none;background-color:var(--mat-tab-inactive-ripple-color, var(--mat-sys-on-surface))}.mat-mdc-tab-link .mdc-tab__text-label{color:var(--mat-tab-inactive-label-text-color, var(--mat-sys-on-surface));display:inline-flex;align-items:center}.mat-mdc-tab-link .mdc-tab__content{position:relative;pointer-events:auto}.mat-mdc-tab-link:hover .mdc-tab__ripple::before{opacity:.04}.mat-mdc-tab-link.cdk-program-focused .mdc-tab__ripple::before,.mat-mdc-tab-link.cdk-keyboard-focused .mdc-tab__ripple::before{opacity:.12}.mat-mdc-tab-link .mat-ripple-element{opacity:.12;background-color:var(--mat-tab-inactive-ripple-color, var(--mat-sys-on-surface))}.mat-mdc-tab-header.mat-mdc-tab-nav-bar-stretch-tabs .mat-mdc-tab-link{flex-grow:1}.mat-mdc-tab-link::before{margin:5px}@media(max-width: 599px){.mat-mdc-tab-link{min-width:72px}} +`],encapsulation:2,changeDetection:0})}return t})(),q8=(()=>{class t{id=u(et).getId("mat-tab-nav-panel-");_activeTabId;static \u0275fac=function(i){return new(i||t)};static \u0275cmp=E({type:t,selectors:[["mat-tab-nav-panel"]],hostAttrs:["role","tabpanel",1,"mat-mdc-tab-nav-panel"],hostVars:2,hostBindings:function(i,r){i&2&&X("aria-labelledby",r._activeTabId)("id",r.id)},inputs:{id:"id"},exportAs:["matTabNavPanel"],ngContentSelectors:lp,decls:1,vars:0,template:function(i,r){i&1&&(Ee(),ne(0))},encapsulation:2,changeDetection:0})}return t})(),cp=(()=>{class t{static \u0275fac=function(i){return new(i||t)};static \u0275mod=ee({type:t});static \u0275inj=J({imports:[De,De]})}return t})();function tge(t,n){if(t&1&&(m(0,"div",1)(1,"div"),f(2),h(),m(3,"div",2)(4,"div",3),f(5),h(),m(6,"div",4),f(7),h()()()),t&2){let e=n.$implicit;g(),at(Zo("d-flex align-items-center justify-content-center r-12 ",e.color)),At("width",3,"rem")("height",3,"rem"),g(),fe(" ",e.icon," "),g(3),N(e.title),g(2),N(e.content)}}function ige(t,n){if(t&1&&(m(0,"mat-tab",0),Mt(1,tge,8,10,"div",1,Yi),h()),t&2){let e=n.$implicit;v("label",e.label),g(),Et(e.messages)}}var Y8=(()=>{let n=class n{constructor(){this.tabs=[{label:"Today",messages:[{icon:"\u{1F514}",color:"bg-red-95",title:"General Meeting for update",content:"You can use the Dashboard to explore how many new users download reports daily and monthly."},{icon:"\u{1F4E2}",color:"bg-azure-95",title:"Widgets update",content:"We've made some updates to the emendable widget which we think you are going to love."},{icon:"\u23F3",color:"bg-violet-95",title:"Coming soon new features",content:"More new features are coming soon, so stay patient!"}]},{label:"Notifications",messages:[{icon:"\u{1F4E9}",color:"bg-magenta-95",title:"Weekly reports are available",content:"Please go to the notification center to check your reports."}]}]}};n.\u0275fac=function(r){return new(r||n)},n.\u0275cmp=E({type:n,selectors:[["app-sidebar-notice"]],hostAttrs:[1,"matero-sidebar-notice"],decls:3,vars:0,consts:[[3,"label"],[1,"d-flex","align-items-center","gap-16","p-16","m-b-16","b-1","r-12"],[1,"flex-grow-1","w-0"],[1,"f-w-600"],[1,"f-s-14"]],template:function(r,o){r&1&&(m(0,"mat-tab-group"),Mt(1,ige,3,1,"mat-tab",0,Yi),h()),r&2&&(g(),Et(o.tabs))},dependencies:[cp,C_,cw],styles:[`.matero-sidebar-notice{display:block;height:100%}.matero-sidebar-notice .mat-mdc-tab-group{height:100%}.matero-sidebar-notice .mat-mdc-tab-body-wrapper{flex:1}.matero-sidebar-notice .mat-mdc-tab-body-content{padding:1rem} +`],encapsulation:2});let t=n;return t})();var nge=["switch"],rge=["*"];function oge(t,n){t&1&&(m(0,"span",11),ii(),m(1,"svg",13),M(2,"path",14),h(),m(3,"svg",15),M(4,"path",16),h()())}var age=new O("mat-slide-toggle-default-options",{providedIn:"root",factory:()=>({disableToggleValue:!1,hideIcon:!1,disabledInteractive:!1})}),dw=class{source;checked;constructor(n,e){this.source=n,this.checked=e}},UI=(()=>{class t{_elementRef=u(Y);_focusMonitor=u(oi);_changeDetectorRef=u(ye);defaults=u(age);_onChange=e=>{};_onTouched=()=>{};_validatorOnChange=()=>{};_uniqueId;_checked=!1;_createChangeEvent(e){return new dw(this,e)}_labelId;get buttonId(){return`${this.id||this._uniqueId}-button`}_switchElement;focus(){this._switchElement.nativeElement.focus()}_noopAnimations=Qe();_focused;name=null;id;labelPosition="after";ariaLabel=null;ariaLabelledby=null;ariaDescribedby;required;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 U;toggleChange=new U;get inputId(){return`${this.id||this._uniqueId}-input`}constructor(){u(ft).load(Oi);let e=u(new Li("tabindex"),{optional:!0}),i=this.defaults;this.tabIndex=e==null?0:parseInt(e)||0,this.color=i.color||"accent",this.id=this._uniqueId=u(et).getId("mat-mdc-slide-toggle-"),this.hideIcon=i.hideIcon??!1,this.disabledInteractive=i.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 dw(this,this.checked))))}_getAriaLabelledBy(){return this.ariaLabelledby?this.ariaLabelledby:this.ariaLabel?null:this._labelId}static \u0275fac=function(i){return new(i||t)};static \u0275cmp=E({type:t,selectors:[["mat-slide-toggle"]],viewQuery:function(i,r){if(i&1&&ie(nge,5),i&2){let o;j(o=H())&&(r._switchElement=o.first)}},hostAttrs:[1,"mat-mdc-slide-toggle"],hostVars:13,hostBindings:function(i,r){i&2&&(pi("id",r.id),X("tabindex",null)("aria-label",null)("name",null)("aria-labelledby",null),at(r.color?"mat-"+r.color:""),G("mat-mdc-slide-toggle-focused",r._focused)("mat-mdc-slide-toggle-checked",r.checked)("_mat-animation-noopable",r._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",L],color:"color",disabled:[2,"disabled","disabled",L],disableRipple:[2,"disableRipple","disableRipple",L],tabIndex:[2,"tabIndex","tabIndex",e=>e==null?0:ht(e)],checked:[2,"checked","checked",L],hideIcon:[2,"hideIcon","hideIcon",L],disabledInteractive:[2,"disabledInteractive","disabledInteractive",L]},outputs:{change:"change",toggleChange:"toggleChange"},exportAs:["matSlideToggle"],features:[Ce([{provide:dr,useExisting:li(()=>t),multi:!0},{provide:sa,useExisting:t,multi:!0}]),Oe],ngContentSelectors:rge,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(i,r){if(i&1){let o=q();Ee(),m(0,"div",1)(1,"button",2,0),S("click",function(){return k(o),T(r._handleClick())}),M(3,"div",3)(4,"span",4),m(5,"span",5)(6,"span",6)(7,"span",7),M(8,"span",8),h(),m(9,"span",9),M(10,"span",10),h(),V(11,oge,5,0,"span",11),h()()(),m(12,"label",12),S("click",function(s){return k(o),T(s.stopPropagation())}),ne(13),h()()}if(i&2){let o=Te(2);v("labelPosition",r.labelPosition),g(),G("mdc-switch--selected",r.checked)("mdc-switch--unselected",!r.checked)("mdc-switch--checked",r.checked)("mdc-switch--disabled",r.disabled)("mat-mdc-slide-toggle-disabled-interactive",r.disabledInteractive),v("tabIndex",r.disabled&&!r.disabledInteractive?-1:r.tabIndex)("disabled",r.disabled&&!r.disabledInteractive),X("id",r.buttonId)("name",r.name)("aria-label",r.ariaLabel)("aria-labelledby",r._getAriaLabelledBy())("aria-describedby",r.ariaDescribedby)("aria-required",r.required||null)("aria-checked",r.checked)("aria-disabled",r.disabled&&r.disabledInteractive?"true":null),g(9),v("matRippleTrigger",o)("matRippleDisabled",r.disableRipple||r.disabled)("matRippleCentered",!0),g(),B(r.hideIcon?-1:11),g(),v("for",r.buttonId),X("id",r._labelId)}},dependencies:[qn,Zm],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 rgba(0,0,0,0);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 rgba(0,0,0,0);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:rgba(0,0,0,0);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:.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-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 t})(),Q8=(()=>{class t{static \u0275fac=function(i){return new(i||t)};static \u0275mod=ee({type:t});static \u0275inj=J({imports:[UI,De,De]})}return t})();var uw=(()=>{let n=class n{constructor(){this.router=u(Ae),this.menu=u(bo),this.navItems=[],this.router.events.pipe(ce(i=>i instanceof Si)).subscribe(()=>this.checkOpenedItems()),this.menu.change().pipe(Dt(10)).subscribe(()=>{setTimeout(()=>this.checkOpenedItems())})}addItem(i){this.navItems.push(i)}removeItem(i){let r=this.navItems.indexOf(i);r!==-1&&this.navItems.splice(r,1)}closeOtherItems(i){this.navItems.forEach(r=>{r!==i&&r.setExpanded(!1)})}checkOpenedItems(){this.navItems.forEach(i=>{let r=i.route();r&&this.router.url.split("/").includes(r)&&(i.setExpanded(!0),this.closeOtherItems(i))})}};n.\u0275fac=function(r){return new(r||n)},n.\u0275dir=P({type:n,selectors:[["","navAccordion",""]],exportAs:["navAccordion"]});let t=n;return t})();var mw=(()=>{let n=class n{constructor(){this.nav=u(uw),this.route=re(""),this.expanded=he(!1)}ngOnInit(){this.nav.addItem(this)}ngOnDestroy(){this.nav.removeItem(this)}toggle(){this.expanded.update(i=>!i),this.expanded()&&this.nav.closeOtherItems(this)}setExpanded(i){this.expanded()!==i&&this.expanded.set(i)}};n.\u0275fac=function(r){return new(r||n)},n.\u0275dir=P({type:n,selectors:[["","navAccordionItem",""]],hostVars:2,hostBindings:function(r,o){r&2&&G("expanded",o.expanded())},inputs:{route:[1,"route"]},exportAs:["navAccordionItem"]});let t=n;return t})();var K8=(()=>{let n=class n{constructor(){this.navItem=u(mw)}onClick(){this.navItem.toggle()}};n.\u0275fac=function(r){return new(r||n)},n.\u0275dir=P({type:n,selectors:[["","navAccordionToggle",""]],hostBindings:function(r,o){r&1&&S("click",function(){return o.onClick()})},exportAs:["navAccordionToggle"]});let t=n;return t})();var lge=()=>[],cge=(t,n)=>({menuList:t,parentRoute:n,level:0}),Z8=t=>[t],hw=(t,n)=>({item:t,level:n}),dge=(t,n,e)=>({menuList:t,parentRoute:n,level:e});function uge(t,n){if(t&1&&(m(0,"a",6),qe(1,2),h()),t&2){let e=x(2).$implicit,i=x(),r=i.parentRoute,o=i.level,a=x(),s=Te(5);v("routerLink",a.menu.buildRoute(r.concat(Wt(3,Z8,e.route)))),g(),v("ngTemplateOutlet",s)("ngTemplateOutletContext",Ba(5,hw,e,o))}}function mge(t,n){if(t&1&&(m(0,"a",7),qe(1,2),h()),t&2){let e=x(2).$implicit,i=x().level;x();let r=Te(5);v("href",e.route,to),g(),v("ngTemplateOutlet",r)("ngTemplateOutletContext",Ba(3,hw,e,i))}}function hge(t,n){if(t&1&&(m(0,"a",8),qe(1,2),h()),t&2){let e=x(2).$implicit,i=x().level;x();let r=Te(5);v("href",e.route,to),g(),v("ngTemplateOutlet",r)("ngTemplateOutletContext",Ba(3,hw,e,i))}}function pge(t,n){if(t&1&&(m(0,"button",9),qe(1,2),h(),qe(2,2)),t&2){let e=x(2).$implicit,i=x(),r=i.parentRoute,o=i.level;x();let a=Te(3),s=Te(5);g(),v("ngTemplateOutlet",s)("ngTemplateOutletContext",Ba(4,hw,e,o)),g(),v("ngTemplateOutlet",a)("ngTemplateOutletContext",Hd(9,dge,e.children,r.concat(Wt(7,Z8,e.route)),o+1))}}function fge(t,n){if(t&1&&(m(0,"li",5),V(1,uge,2,8,"a",6),V(2,mge,2,6,"a",7),V(3,hge,2,6,"a",8),V(4,pge,3,13),h()),t&2){let e=x().$implicit;v("route",e.route),g(),B(e.type==="link"?1:-1),g(),B(e.type==="extLink"?2:-1),g(),B(e.type==="extTabLink"?3:-1),g(),B(e.type==="sub"?4:-1)}}function gge(t,n){if(t&1&&A(0,fge,5,5,"ng-template",4),t&2){let e=n.$implicit;v("ngxPermissionsOnly",e.permissions==null?null:e.permissions.only)("ngxPermissionsExcept",e.permissions==null?null:e.permissions.except)}}function _ge(t,n){if(t&1&&(m(0,"ul",3),Mt(1,gge,1,2,null,4,Yi),h()),t&2){let e=n.menuList,i=n.level;at(Zo("matero-sidemenu level-",i)),G("submenu",i>0),g(),Et(e)}}function bge(t,n){if(t&1&&(m(0,"mat-icon",14),f(1),h()),t&2){let e=x(),i=e.item,r=e.level;G("submenu-icon",r>0),g(),N(i.icon)}}function vge(t,n){if(t&1&&(m(0,"span",14),f(1),me(2,"translate"),me(3,"slice"),h()),t&2){let e=x(),i=e.item,r=e.level;G("submenu-icon",r>0),g(),fe(" ",GM(3,5,Re(2,3,i.name),0,1)," ")}}function yge(t,n){if(t&1&&(m(0,"span"),f(1),h()),t&2){let e=x().item;at(Zo("menu-label bg-",e.label.color)),g(),N(e.label.value)}}function xge(t,n){if(t&1&&(m(0,"span"),f(1),h()),t&2){let e=x().item;at(Zo("menu-badge bg-",e.badge.color)),g(),N(e.badge.value)}}function Cge(t,n){if(t&1&&(m(0,"mat-icon",13),f(1),h()),t&2){let e=x().item;g(),N(e.type==="sub"?"arrow_drop_down":"launch")}}function wge(t,n){if(t&1&&(V(0,bge,2,3,"mat-icon",10)(1,vge,4,9,"span",10),m(2,"span",11),f(3),me(4,"translate"),h(),V(5,yge,2,4,"span",12),V(6,xge,2,4,"span",12),V(7,Cge,2,1,"mat-icon",13)),t&2){let e=n.item;B(e.icon?0:1),g(3),N(Re(4,5,e.name)),g(2),B(e.label?5:-1),g(),B(e.badge?6:-1),g(),B(e.type!=="link"?7:-1)}}var X8=(()=>{let n=class n{constructor(){this.menu=u(bo)}};n.\u0275fac=function(r){return new(r||n)},n.\u0275cmp=E({type:n,selectors:[["app-sidemenu"]],decls:6,vars:8,consts:[["menuTpl",""],["linkTypeTpl",""],[3,"ngTemplateOutlet","ngTemplateOutletContext"],["navAccordion",""],[3,"ngxPermissionsOnly","ngxPermissionsExcept"],["navAccordionItem","","routerLinkActive","active",1,"menu-item",3,"route"],["matRipple","",1,"menu-heading",3,"routerLink"],["matRipple","",1,"menu-heading",3,"href"],["target","_blank","matRipple","",1,"menu-heading",3,"href"],["navAccordionToggle","","matRipple","",1,"menu-heading","menu-toggle"],[1,"menu-icon",3,"submenu-icon"],[1,"menu-name"],[3,"class"],[1,"menu-caret"],[1,"menu-icon"]],template:function(r,o){if(r&1&&(qe(0,2),me(1,"async"),A(2,_ge,3,5,"ng-template",null,0,Mi)(4,wge,8,7,"ng-template",null,1,Mi)),r&2){let a=Te(3);v("ngTemplateOutlet",a)("ngTemplateOutletContext",Ba(5,cge,Re(1,2,o.menu.getAll()),dt(4,lge)))}},dependencies:[$n,Wn,Kd,Bc,Fh,Ge,Ze,Io,qn,Rr,uw,mw,K8,cn,_E,Or],styles:[`.matero-sidemenu{padding:0;margin:0;list-style:none}.matero-sidemenu .menu-item{overflow:hidden;border-radius:1.5rem;transition:background 225ms cubic-bezier(.4,0,.2,1)}.matero-sidemenu .menu-item>.submenu{visibility:hidden;height:0;transition:all 225ms cubic-bezier(.4,0,.2,1)}.matero-sidemenu .menu-item>.menu-heading:hover,.matero-sidemenu .menu-item>.menu-heading:focus{background-color:var(--sidemenu-heading-hover-background-color)}.matero-sidemenu .menu-item.active>.menu-heading{color:var(--sidemenu-active-heading-text-color);background-color:var(--sidemenu-active-heading-background-color)}.matero-sidemenu .menu-item.active>.menu-heading:hover,.matero-sidemenu .menu-item.active>.menu-heading:focus{background-color:var(--sidemenu-active-heading-hover-background-color)}.matero-sidemenu .menu-item.expanded{background-color:var(--sidemenu-expanded-background-color)}.matero-sidemenu .menu-item.expanded>.submenu{visibility:visible;height:auto;height:calc-size(auto,size)}.matero-sidemenu .menu-item.expanded>.menu-toggle>.menu-caret{transform:rotate(-180deg)}.matero-sidemenu .menu-item:has(.active)>.menu-heading{color:var(--sidemenu-active-heading-text-color)}.matero-sidemenu .menu-heading{position:relative;display:flex;align-items:center;width:calc(var(--sidenav-width) - 1rem);padding:.75rem;font-size:inherit;color:inherit;text-decoration:none;cursor:pointer;outline:none;background-color:transparent;border:none;border-radius:1.5rem}.matero-sidemenu .menu-icon{width:1.5rem;height:1.5rem;margin-right:.75rem;font-size:1.25rem;line-height:1.5rem;text-align:center}[dir=rtl] .matero-sidemenu .menu-icon{margin-right:0;margin-left:.75rem}.matero-sidemenu .menu-icon.submenu-icon{position:absolute;left:.75rem;width:1.5rem;height:1.5rem;font-size:1rem;line-height:1.5rem;opacity:0}[dir=rtl] .matero-sidemenu .menu-icon.submenu-icon{right:.75rem;left:0}.matero-sidemenu .menu-caret{display:block;width:1.5rem;height:1.5rem;font-size:1.5rem;line-height:1.5rem;text-align:center;transition:transform .4s cubic-bezier(.25,.8,.25,1)}.matero-sidemenu .menu-name{flex:1;overflow:hidden;text-overflow:ellipsis;text-align:initial}.matero-sidemenu .menu-icon,.matero-sidemenu .menu-name,.matero-sidemenu .menu-label,.matero-sidemenu .menu-badge{transition:opacity .4s cubic-bezier(.25,.8,.25,1)}.matero-sidemenu .menu-label,.matero-sidemenu .menu-badge{padding:.25rem .5rem;font-size:.75rem;font-weight:700;line-height:1;color:#fff;background-color:#757575;border-radius:.375rem}.matero-sidemenu .menu-badge{border-radius:50rem}.matero-sidemenu.level-1>li>.menu-heading{padding-left:3rem}[dir=rtl] .matero-sidemenu.level-1>li>.menu-heading{padding-right:3rem;padding-left:1rem}.matero-sidemenu.level-2>li>.menu-heading{padding-left:4rem}[dir=rtl] .matero-sidemenu.level-2>li>.menu-heading{padding-right:4rem;padding-left:1rem}.matero-sidemenu.level-2 [class^=level-]>li>.menu-heading{padding-left:5rem}[dir=rtl] .matero-sidemenu.level-2 [class^=level-]>li>.menu-heading{padding-right:5rem;padding-left:1rem} +`],encapsulation:2});let t=n;return t})();var J8=(()=>{let n=class n{constructor(){this.oidcAuth=u(Ht),this.userName="Guest",this.userEmail="Anonymous"}ngOnInit(){this.updateUserInfo(),this.authSubscription=this.oidcAuth.isAuthenticated$.subscribe(i=>{console.log("UserPanel: Auth state changed:",i),this.updateUserInfo()})}ngOnDestroy(){this.authSubscription?.unsubscribe()}updateUserInfo(){let i=this.oidcAuth.isAuthenticated();if(console.log("UserPanel: Updating user info, isAuthenticated:",i),!i){this.userName="Guest",this.userEmail="Anonymous";return}let r=this.oidcAuth.getUserInfo();console.log("UserPanel: User info from service:",r),console.log("UserPanel: Available claims:",r?Object.keys(r):"null"),this.userName=r?.name||r?.preferred_username||r?.given_name||r?.["http://schemas.xmlsoap.org/ws/2005/05/identity/claims/name"]||r?.sub||"User",this.userEmail=r?.email||r?.["http://schemas.xmlsoap.org/ws/2005/05/identity/claims/emailaddress"]||"",console.log("UserPanel: Set userName to:",this.userName,"email to:",this.userEmail)}};n.\u0275fac=function(r){return new(r||n)},n.\u0275cmp=E({type:n,selectors:[["app-user-panel"]],decls:8,vars:4,consts:[[1,"matero-user-panel"],[1,"matero-user-panel-avatar"],[1,"matero-user-panel-info"]],template:function(r,o){r&1&&(m(0,"div",0)(1,"mat-icon",1),f(2,"account_circle"),h(),m(3,"div",2)(4,"h4"),f(5),h(),m(6,"h5"),f(7),h()()()),r&2&&(G("authenticated",o.oidcAuth.isAuthenticated()),g(5),N(o.userName),g(2),N(o.userEmail))},dependencies:[Je,Fe,Ge,Ze,An,Rr],styles:[`.matero-user-panel{display:flex;align-items:center;padding:.75rem;margin-bottom:.75rem;cursor:pointer;outline:none;background-color:var(--user-panel-background-color);border-radius:.75rem}.matero-user-panel:hover,.matero-user-panel:focus{background-color:var(--user-panel-hover-background-color)}.matero-user-panel-avatar{width:3rem;height:3rem;font-size:3rem;border-radius:50rem;color:#0000008a;transform-origin:0 1.5rem;transition:transform .4s cubic-bezier(.25,.8,.25,1)}[dir=rtl] .matero-user-panel-avatar{transform-origin:3rem 1.5rem}.matero-user-panel-info{flex:1;width:0;margin-left:.75rem;opacity:1;transition:opacity .4s cubic-bezier(.25,.8,.25,1)}[dir=rtl] .matero-user-panel-info{margin-right:.75rem;margin-left:0}.matero-user-panel-info h4,.matero-user-panel-info h5{margin:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.matero-user-panel-info h4{margin-bottom:4px;font-size:1rem;font-weight:500}.matero-user-panel-info h5{font-size:.75rem;font-weight:400} +`],encapsulation:2});let t=n;return t})();function Dge(t,n){if(t&1){let e=q();m(0,"mat-slide-toggle",6),S("change",function(){k(e);let r=x(2);return T(r.toggleCollapsed.emit())}),h()}if(t&2){let e=x(2);v("checked",e.toggleChecked())}}function Mge(t,n){if(t&1){let e=q();m(0,"button",7),S("click",function(){k(e);let r=x(2);return T(r.closeSidenav.emit())}),m(1,"mat-icon"),f(2,"close"),h()()}}function Ege(t,n){if(t&1&&(m(0,"div",0)(1,"mat-toolbar"),M(2,"app-branding",2)(3,"span",3),V(4,Dge,1,1,"mat-slide-toggle",4)(5,Mge,3,0,"button",5),h()()),t&2){let e=x();g(2),v("showName",!e.toggleChecked()),g(2),B(e.showToggle()?4:5)}}function Sge(t,n){t&1&&M(0,"app-user-panel")}var e6=(()=>{let n=class n{constructor(){this.showToggle=re(!0),this.showUser=re(!0),this.showHeader=re(!0),this.toggleChecked=re(!1),this.toggleCollapsed=Ei(),this.closeSidenav=Ei()}};n.\u0275fac=function(r){return new(r||n)},n.\u0275cmp=E({type:n,selectors:[["app-sidebar"]],inputs:{showToggle:[1,"showToggle"],showUser:[1,"showUser"],showHeader:[1,"showHeader"],toggleChecked:[1,"toggleChecked"]},outputs:{toggleCollapsed:"toggleCollapsed",closeSidenav:"closeSidenav"},decls:4,vars:2,consts:[[1,"matero-sidebar-header"],[1,"matero-sidebar-main"],[3,"showName"],[1,"flex-fill"],["hideIcon","",3,"checked"],["mat-icon-button",""],["hideIcon","",3,"change","checked"],["mat-icon-button","",3,"click"]],template:function(r,o){r&1&&(V(0,Ege,6,2,"div",0),m(1,"div",1),V(2,Sge,1,0,"app-user-panel"),M(3,"app-sidemenu"),h()),r&2&&(B(o.showHeader()?0:-1),g(2),B(o.showUser()?2:-1))},dependencies:[Q8,UI,Ge,Ze,Fe,Ft,ow,rw,aw,X8,J8],styles:[`.matero-sidebar-header{overflow:hidden}.matero-sidebar-header mat-toolbar{width:var(--sidenav-width);padding:0 .5rem}.matero-sidebar-header mat-slide-toggle .mdc-label{display:none}.matero-sidebar-main{height:calc(100% - var(--mat-toolbar-standard-height));padding:0 .5rem .5rem;overflow:auto;scrollbar-width:none}@media (max-width: 599px){.matero-sidebar-main{height:calc(100% - var(--mat-toolbar-mobile-height))}} +`],encapsulation:2});let t=n;return t})();var t6=t=>[t],kge=()=>[];function Tge(t,n){if(t&1){let e=q();m(0,"a",8,0),S("click",function(){k(e);let r=Te(1),o=x(3);return T(o.onRouterLinkClick(r))}),f(2),me(3,"translate"),h()}if(t&2){let e=x(2).$implicit,i=x();v("routerLink",i.menu.buildRoute(i.parentRoute().concat(Wt(4,t6,e.route)))),g(2),fe(" ",Re(3,2,e.name)," ")}}function Ige(t,n){if(t&1&&(m(0,"a",5)(1,"span",9),f(2),me(3,"translate"),h(),m(4,"mat-icon"),f(5,"launch"),h()()),t&2){let e=x(2).$implicit;v("href",e.route,to),g(2),N(Re(3,2,e.name))}}function Age(t,n){if(t&1&&(m(0,"a",6)(1,"span",9),f(2),me(3,"translate"),h(),m(4,"mat-icon"),f(5,"launch"),h()()),t&2){let e=x(2).$implicit;v("href",e.route,to),g(2),N(Re(3,2,e.name))}}function Oge(t,n){if(t&1){let e=q();m(0,"button",10),f(1),me(2,"translate"),m(3,"app-topmenu-panel",11,1),S("routeChange",function(r){k(e);let o=x(2).$implicit,a=x();return T(a.onRouteChange(r,o))}),h()()}if(t&2){let e=Te(4),i=x(2).$implicit,r=x();G("active",i.active==null?null:i.active()),v("matMenuTriggerFor",e.menuPanel()),g(),fe(" ",Re(2,7,i.name)," "),g(2),v("items",i.children||dt(9,kge))("parentRoute",r.parentRoute().concat(Wt(10,t6,i.route)))("level",r.level()+1)}}function Rge(t,n){if(t&1&&(V(0,Tge,4,6,"a",4),V(1,Ige,6,4,"a",5),V(2,Age,6,4,"a",6),V(3,Oge,5,12,"button",7)),t&2){let e=x().$implicit;B(e.type==="link"?0:-1),g(),B(e.type==="extLink"?1:-1),g(),B(e.type==="extTabLink"?2:-1),g(),B(e.type==="sub"?3:-1)}}function Pge(t,n){if(t&1&&A(0,Rge,4,4,"ng-template",3),t&2){let e=n.$implicit;v("ngxPermissionsOnly",e.permissions==null?null:e.permissions.only)("ngxPermissionsExcept",e.permissions==null?null:e.permissions.except)}}var i6=(()=>{let n=class n{constructor(){this.router=u(Ae),this.menu=u(bo),this.menuPanel=ir.required(Zr),this.items=re([]),this.parentRoute=re([]),this.level=re(1),this.routeChange=Ei(),this.routerSubscription=this.router.events.pipe(ce(i=>i instanceof Si)).subscribe(i=>{this.items().map(r=>r.active?.set(!1))})}ngOnInit(){this.items().forEach(i=>{i.active=he(this.checkRoute(i))})}ngOnDestroy(){this.routerSubscription.unsubscribe()}checkRoute(i){return i.route?this.router.url.split("/").includes(i.route):this.checkChildRoute(i.children)}checkChildRoute(i=[]){return i.some(r=>this.router.url.split("/").includes(r.route)?!0:(!r.route&&r.children&&this.checkChildRoute(r.children),!1))}onRouterLinkClick(i){this.routeChange.emit(i)}onRouteChange(i,r){this.routeChange.emit(i),this.routerSubscription.unsubscribe(),this.routerSubscription=this.router.events.pipe(ce(o=>o instanceof Si),He(()=>{this.items().filter(a=>a!=r).map(a=>a.active?.set(!1))}),Dt(10),He(()=>{r.active?.set(i.isActive)})).subscribe()}};n.\u0275fac=function(r){return new(r||n)},n.\u0275cmp=E({type:n,selectors:[["app-topmenu-panel"]],viewQuery:function(r,o){r&1&&zn(o.menuPanel,Zr,5),r&2&&Ko()},inputs:{items:[1,"items"],parentRoute:[1,"parentRoute"],level:[1,"level"]},outputs:{routeChange:"routeChange"},decls:3,vars:0,consts:[["rla","routerLinkActive"],["submenu",""],[1,"matero-topmenu-panel"],[3,"ngxPermissionsOnly","ngxPermissionsExcept"],["mat-menu-item","","routerLinkActive","active",3,"routerLink"],["mat-menu-item","",3,"href"],["mat-menu-item","","target","_blank",3,"href"],["mat-menu-item","",3,"matMenuTriggerFor","active"],["mat-menu-item","","routerLinkActive","active",3,"click","routerLink"],[1,"menu-name"],["mat-menu-item","",3,"matMenuTriggerFor"],[3,"routeChange","items","parentRoute","level"]],template:function(r,o){r&1&&(m(0,"mat-menu",2),Mt(1,Pge,1,2,null,3,Yi),h()),r&2&&(g(),Et(o.items()))},dependencies:[n,Wn,Kd,Ge,Ze,el,Zr,Ul,Js,Bc,Fh,Rr,Or],encapsulation:2});let t=n;return t})();var n6=t=>[t],pw=t=>({item:t}),Fge=()=>[];function Nge(t,n){if(t&1&&(m(0,"a",5),qe(1,9),h()),t&2){let e=x(2).$implicit,i=x(),r=Te(7);v("routerLink",i.menu.buildRoute(Wt(3,n6,e.route))),g(),v("ngTemplateOutlet",r)("ngTemplateOutletContext",Wt(5,pw,e))}}function Lge(t,n){if(t&1&&(m(0,"a",6),qe(1,9),h()),t&2){let e=x(2).$implicit;x();let i=Te(7);v("href",e.route,to),g(),v("ngTemplateOutlet",i)("ngTemplateOutletContext",Wt(3,pw,e))}}function Vge(t,n){if(t&1&&(m(0,"a",7),qe(1,9),h()),t&2){let e=x(2).$implicit;x();let i=Te(7);v("href",e.route,to),g(),v("ngTemplateOutlet",i)("ngTemplateOutletContext",Wt(3,pw,e))}}function Bge(t,n){if(t&1){let e=q();m(0,"button",10),qe(1,9),m(2,"app-topmenu-panel",11,2),S("routeChange",function(r){k(e);let o=x(2).$implicit,a=x();return T(a.onRouteChange(r,o))}),h()()}if(t&2){let e=Te(3),i=x(2).$implicit;x();let r=Te(7);G("active",i.active==null?null:i.active()),v("matMenuTriggerFor",e.menuPanel()),g(),v("ngTemplateOutlet",r)("ngTemplateOutletContext",Wt(8,pw,i)),g(),v("items",i.children||dt(10,Fge))("parentRoute",Wt(11,n6,i.route))("level",1)}}function jge(t,n){if(t&1&&(V(0,Nge,2,7,"a",5),V(1,Lge,2,5,"a",6),V(2,Vge,2,5,"a",7),V(3,Bge,4,13,"button",8)),t&2){let e=x().$implicit;B(e.type==="link"?0:-1),g(),B(e.type==="extLink"?1:-1),g(),B(e.type==="extTabLink"?2:-1),g(),B(e.type==="sub"?3:-1)}}function Hge(t,n){if(t&1&&A(0,jge,4,4,"ng-template",4),t&2){let e=n.$implicit;v("ngxPermissionsOnly",e.permissions==null?null:e.permissions.only)("ngxPermissionsExcept",e.permissions==null?null:e.permissions.except)}}function zge(t,n){if(t&1&&(m(0,"span"),f(1),h()),t&2){let e=x().item;at(Zo("menu-label bg-",e.label.color)),g(),N(e.label.value)}}function Uge(t,n){if(t&1&&(m(0,"span"),f(1),h()),t&2){let e=x().item;at(Zo("menu-badge bg-",e.badge.color)),g(),N(e.badge.value)}}function $ge(t,n){if(t&1&&(m(0,"mat-icon",15),f(1),h()),t&2){let e=x().item;g(),N(e.type==="sub"?"arrow_drop_down":"launch")}}function Wge(t,n){if(t&1&&(m(0,"mat-icon",12),f(1),h(),m(2,"span",13),f(3),me(4,"translate"),h(),V(5,zge,2,4,"span",14),V(6,Uge,2,4,"span",14),V(7,$ge,2,1,"mat-icon",15)),t&2){let e=n.item;g(),N(e.icon),g(2),N(Re(4,5,e.name)),g(2),B(e.label?5:-1),g(),B(e.badge?6:-1),g(),B(e.type!=="link"?7:-1)}}var r6=(()=>{let n=class n{constructor(){this.router=u(Ae),this.menu=u(bo),this.menuList=[],this.menuSubscription=this.menu.getAll().subscribe(i=>{this.menuList=i.map(r=>{let o=this.router.url.split("/").includes(r.route);return r.active=he(o),r})}),this.routerSubscription=this.router.events.pipe(ce(i=>i instanceof Si)).subscribe(i=>{this.menuList.map(r=>r.active?.set(!1))})}ngOnDestroy(){this.menuSubscription.unsubscribe(),this.routerSubscription.unsubscribe()}onRouteChange(i,r){this.routerSubscription.unsubscribe(),this.routerSubscription=this.router.events.pipe(ce(o=>o instanceof Si),He(()=>{this.menuList.filter(o=>o!=r).map(o=>o.active?.set(!1))}),Dt(10),He(()=>{r.active?.set(i.isActive)})).subscribe()}};n.\u0275fac=function(r){return new(r||n)},n.\u0275cmp=E({type:n,selectors:[["app-topmenu"]],hostAttrs:[1,"matero-topmenu"],decls:8,vars:3,consts:[["tabPanel",""],["linkTypeTpl",""],["submenu",""],["mat-tab-nav-bar","",3,"tabPanel"],[3,"ngxPermissionsOnly","ngxPermissionsExcept"],["matButton","","routerLinkActive","active",3,"routerLink"],["matButton","",3,"href"],["matButton","","target","_blank",3,"href"],["matButton","",3,"matMenuTriggerFor","active"],[3,"ngTemplateOutlet","ngTemplateOutletContext"],["matButton","",3,"matMenuTriggerFor"],[3,"routeChange","items","parentRoute","level"],[1,"menu-icon"],[1,"menu-name"],[3,"class"],[1,"menu-caret"]],template:function(r,o){if(r&1&&(m(0,"nav",3),Mt(1,Hge,1,2,null,4,Yi),me(3,"async"),h(),M(4,"mat-tab-nav-panel",null,0),A(6,Wge,8,7,"ng-template",null,1,Mi)),r&2){let a=Te(5);v("tabPanel",a),g(),Et(Re(3,1,o.menu.getAll()))}},dependencies:[$n,Wn,Kd,Fe,_t,Ge,Ze,el,Js,cp,HI,q8,Bc,Fh,Rr,i6,cn,Or],styles:[`.matero-topmenu{--mat-tab-divider-height: 0;--mat-button-text-label-text-color: var(--topmenu-text-color);position:sticky;z-index:200;display:block;padding:.5rem;background-color:var(--topmenu-background-color);-webkit-backdrop-filter:blur(8px);backdrop-filter:blur(8px)}.matero-topmenu .mat-mdc-button{padding:0 1rem;white-space:nowrap}.matero-topmenu .mat-mdc-button.active{background-color:var(--topmenu-item-active-background-color)}.matero-topmenu .menu-icon,.matero-topmenu .menu-caret,.matero-topmenu .menu-name{vertical-align:middle}.matero-topmenu .mat-icon.menu-icon{width:1.125rem;height:1.125rem;margin-right:.5rem;font-size:1.125rem;line-height:1.125rem}[dir=rtl] .matero-topmenu .mat-icon.menu-icon{margin-right:auto;margin-left:.5rem}.matero-topmenu .mat-icon.menu-caret{margin-right:-.5rem}[dir=rtl] .matero-topmenu .mat-icon.menu-caret{margin-right:auto;margin-left:-.5rem}.matero-topmenu .menu-label,.matero-topmenu .menu-badge{padding:.25rem .5rem;margin-left:.5rem;font-size:.75rem;font-weight:700;line-height:1;color:#fff;background-color:#757575;border-radius:.375rem}[dir=rtl] .matero-topmenu .menu-label,[dir=rtl] .matero-topmenu .menu-badge{margin-right:.5rem;margin-left:auto}.matero-topmenu .menu-badge{border-radius:50rem}.matero-topmenu .mat-tab-nav-bar,.matero-topmenu .mat-tab-header{border-bottom:none}.matero-topmenu-panel .mat-mdc-menu-item.active{color:var(--topmenu-dropdown-item-active-text-color)} +`],encapsulation:2});let t=n;return t})();var Gge=["sidenav"],qge=["content"];function Yge(t,n){if(t&1){let e=q();m(0,"app-header",13),S("toggleSidenav",function(){k(e),x();let r=Te(5);return T(r.toggle())})("toggleSidenavNotice",function(){k(e),x();let r=Te(8);return T(r.toggle())}),h()}t&2&&v("showBranding",!0)}function Qge(t,n){if(t&1){let e=q();m(0,"app-header",14),S("toggleSidenav",function(){k(e),x();let r=Te(5);return T(r.toggle())})("toggleSidenavNotice",function(){k(e),x();let r=Te(8);return T(r.toggle())}),h()}if(t&2){let e=x();v("showToggle",!e.options.sidenavCollapsed&&e.options.navPos!=="top")("showBranding",e.options.navPos==="top")}}function Kge(t,n){t&1&&M(0,"app-topmenu")}var o6="screen and (max-width: 599px)",a6="screen and (min-width: 600px) and (max-width: 959px)",s6="screen and (min-width: 960px)",l6=(()=>{let n=class n{get themeColor(){return this.settings.getThemeColor()}get isOver(){return this.isMobileScreen}get contentWidthFix(){return this.isContentWidthFixed&&this.options.navPos==="side"&&this.options.sidenavOpened&&!this.isOver}get collapsedWidthFix(){return this.isCollapsedWidthFixed&&(this.options.navPos==="top"||this.options.sidenavOpened&&this.isOver)}constructor(){this.sidenav=ir.required("sidenav"),this.content=ir.required("content"),this.breakpointObserver=u(Ml),this.router=u(Ae),this.settings=u(ha),this.options=this.settings.options,this.isMobileScreen=!1,this.isContentWidthFixed=!0,this.isCollapsedWidthFixed=!1,this.layoutChangesSubscription=ke.EMPTY,this.layoutChangesSubscription=this.breakpointObserver.observe([o6,a6,s6]).subscribe(i=>{this.options.sidenavOpened=!0,this.isMobileScreen=i.breakpoints[o6],this.options.sidenavCollapsed=i.breakpoints[a6],this.isContentWidthFixed=i.breakpoints[s6]}),this.router.events.pipe(ce(i=>i instanceof Si)).subscribe(i=>{this.isOver&&this.sidenav().close(),this.content().scrollTo({top:0})})}ngOnDestroy(){this.layoutChangesSubscription.unsubscribe()}toggleCollapsed(){this.isContentWidthFixed=!1,this.options.sidenavCollapsed=!this.options.sidenavCollapsed,this.resetCollapsedState()}resetCollapsedState(i=400){setTimeout(()=>{this.settings.setOptions(this.options)},i)}onSidenavClosedStart(){this.isContentWidthFixed=!1}onSidenavOpenedChange(i){this.isCollapsedWidthFixed=!this.isOver,this.options.sidenavOpened=i,this.settings.setOptions(this.options)}updateOptions(i){this.options=i,this.settings.setOptions(i),this.settings.setDirection(),this.settings.setTheme()}};n.\u0275fac=function(r){return new(r||n)},n.\u0275cmp=E({type:n,selectors:[["app-admin-layout"]],viewQuery:function(r,o){r&1&&(zn(o.sidenav,Gge,5),zn(o.content,qge,5)),r&2&&Ko(2)},hostVars:4,hostBindings:function(r,o){r&2&&G("matero-content-width-fix",o.contentWidthFix)("matero-sidenav-collapsed-fix",o.collapsedWidthFix)},decls:16,vars:20,consts:[["sidenav",""],["sidenavNotice",""],["content",""],[1,"matero-container-wrap",3,"dir"],["ngProgressRouter",""],[3,"showBranding"],["autosize","","autoFocus","",1,"matero-container"],[1,"matero-sidenav",3,"openedChange","closedStart","mode","opened"],[3,"toggleCollapsed","closeSidenav","showToggle","showUser","showHeader","toggleChecked"],["position","end","mode","over"],[1,"matero-content"],[3,"showToggle","showBranding"],[1,"matero-page-content"],[3,"toggleSidenav","toggleSidenavNotice","showBranding"],[3,"toggleSidenav","toggleSidenavNotice","showToggle","showBranding"]],template:function(r,o){if(r&1){let a=q();m(0,"div",3),M(1,"ng-progress",4),V(2,Yge,1,1,"app-header",5),m(3,"mat-sidenav-container",6)(4,"mat-sidenav",7,0),S("openedChange",function(l){return k(a),T(o.onSidenavOpenedChange(l))})("closedStart",function(){return k(a),T(o.onSidenavClosedStart())}),m(6,"app-sidebar",8),S("toggleCollapsed",function(){return k(a),T(o.toggleCollapsed())})("closeSidenav",function(){k(a);let l=Te(5);return T(l.close())}),h()(),m(7,"mat-sidenav",9,1),M(9,"app-sidebar-notice"),h(),m(10,"mat-sidenav-content",10,2),V(12,Qge,1,2,"app-header",11),V(13,Kge,1,0,"app-topmenu"),m(14,"main",12),M(15,"router-outlet"),h()()()()}r&2&&(G("matero-sidenav-collapsed",o.options.sidenavCollapsed&&o.options.navPos!=="top")("matero-navbar-side",o.options.navPos==="side")("matero-navbar-top",o.options.navPos==="top")("matero-header-above",o.options.headerPos==="above")("matero-header-fixed",o.options.headerPos==="fixed"),v("dir",o.options.dir),g(2),B(o.options.showHeader&&o.options.headerPos==="above"?2:-1),g(2),v("mode",o.isOver?"over":"side")("opened",o.options.navPos==="side"&&o.options.sidenavOpened&&!o.isOver),g(2),v("showToggle",!o.isOver)("showUser",!!o.options.showUserPanel)("showHeader",o.options.headerPos!=="above")("toggleChecked",!!o.options.sidenavCollapsed),g(6),B(o.options.showHeader&&o.options.headerPos!=="above"?12:-1),g(),B(o.options.navPos==="top"?13:-1))},dependencies:[wl,Fs,YL,u8,RI,d8,ew,h8,f8,O8,r6,e6,Y8],styles:[`.matero-container-wrap,.matero-container{--mat-sidenav-content-background-color: transparent;height:100%}.matero-sidenav{--mat-sidenav-container-width: var(--sidenav-width);position:absolute;overflow-x:hidden;border-width:0!important;transition-property:transform,width!important}.matero-header-above .matero-container{height:calc(100% - var(--mat-toolbar-standard-height))!important}@media (max-width: 599px){.matero-header-above .matero-container{height:calc(100% - var(--mat-toolbar-mobile-height))!important}}.matero-header-above .matero-sidebar-main{height:100%!important;padding-top:.5rem}.matero-sidenav-collapsed .matero-sidenav,.matero-sidenav-collapsed-fix .matero-sidenav{width:var(--sidenav-collapsed-width)}.matero-sidenav-collapsed .matero-sidenav .menu-name,.matero-sidenav-collapsed .matero-sidenav .menu-label,.matero-sidenav-collapsed .matero-sidenav .menu-badge,.matero-sidenav-collapsed .matero-sidenav .menu-caret,.matero-sidenav-collapsed .matero-sidenav .matero-user-panel-info,.matero-sidenav-collapsed-fix .matero-sidenav .menu-name,.matero-sidenav-collapsed-fix .matero-sidenav .menu-label,.matero-sidenav-collapsed-fix .matero-sidenav .menu-badge,.matero-sidenav-collapsed-fix .matero-sidenav .menu-caret,.matero-sidenav-collapsed-fix .matero-sidenav .matero-user-panel-info{opacity:0}.matero-sidenav-collapsed .matero-sidenav .menu-icon.submenu-icon,.matero-sidenav-collapsed-fix .matero-sidenav .menu-icon.submenu-icon{opacity:1}.matero-sidenav-collapsed .matero-sidenav .matero-user-panel-avatar,.matero-sidenav-collapsed-fix .matero-sidenav .matero-user-panel-avatar{transform:scale(.5)}.matero-sidenav-collapsed .matero-sidenav:hover,.matero-sidenav-collapsed-fix .matero-sidenav:hover{width:var(--sidenav-width)}.matero-sidenav-collapsed .matero-sidenav:hover .menu-name,.matero-sidenav-collapsed .matero-sidenav:hover .menu-label,.matero-sidenav-collapsed .matero-sidenav:hover .menu-badge,.matero-sidenav-collapsed .matero-sidenav:hover .menu-caret,.matero-sidenav-collapsed .matero-sidenav:hover .matero-user-panel-info,.matero-sidenav-collapsed-fix .matero-sidenav:hover .menu-name,.matero-sidenav-collapsed-fix .matero-sidenav:hover .menu-label,.matero-sidenav-collapsed-fix .matero-sidenav:hover .menu-badge,.matero-sidenav-collapsed-fix .matero-sidenav:hover .menu-caret,.matero-sidenav-collapsed-fix .matero-sidenav:hover .matero-user-panel-info{opacity:1}.matero-sidenav-collapsed .matero-sidenav:hover .menu-icon.submenu-icon,.matero-sidenav-collapsed-fix .matero-sidenav:hover .menu-icon.submenu-icon{opacity:0}.matero-sidenav-collapsed .matero-sidenav:hover .matero-user-panel-avatar,.matero-sidenav-collapsed-fix .matero-sidenav:hover .matero-user-panel-avatar{transform:scale(1)}.matero-sidenav-collapsed .matero-content{margin-left:var(--sidenav-collapsed-width)!important}[dir=rtl] .matero-sidenav-collapsed .matero-content,.matero-sidenav-collapsed[dir=rtl] .matero-content{margin-right:var(--sidenav-collapsed-width)!important;margin-left:auto!important}.matero-navbar-top .matero-topmenu{top:0}.matero-navbar-top .matero-branding{margin-left:1rem}[dir=rtl] .matero-navbar-top .matero-branding{margin-right:1rem;margin-left:auto}.matero-header-fixed .matero-header{position:sticky;top:0}.matero-header-fixed .matero-topmenu{top:var(--mat-toolbar-standard-height)}@media (max-width: 599px){.matero-header-fixed .matero-topmenu{top:var(--mat-toolbar-mobile-height)}}.matero-content-width-fix .matero-content{margin-left:var(--sidenav-width)!important}[dir=rtl] .matero-content-width-fix .matero-content{margin-right:var(--sidenav-width)!important;margin-left:auto!important}.matero-page-content{position:relative;padding:var(--gutter)}.matero-header+.matero-page-content,.matero-header-above .matero-page-content,.matero-navbar-top .matero-page-content{padding-top:0} +`],encapsulation:2});let t=n;return t})();var c6=(()=>{let n=class n{};n.\u0275fac=function(r){return new(r||n)},n.\u0275cmp=E({type:n,selectors:[["app-auth-layout"]],decls:2,vars:0,consts:[[1,"matero-auth-container"]],template:function(r,o){r&1&&(m(0,"div",0),M(1,"router-outlet"),h())},dependencies:[wl],styles:[`.matero-auth-container{position:relative;display:flex;justify-content:center;min-height:100%;background-image:radial-gradient(at 97% 21%,hsla(125,98%,72%,.3) 0,transparent 50%),radial-gradient(at 52% 99%,hsla(354,98%,61%,.3) 0,transparent 50%),radial-gradient(at 10% 29%,hsla(256,96%,67%,.3) 0,transparent 50%),radial-gradient(at 97% 96%,hsla(38,60%,74%,.3) 0,transparent 50%),radial-gradient(at 33% 50%,hsla(222,67%,73%,.3) 0,transparent 50%),radial-gradient(at 79% 53%,hsla(343,68%,79%,.3) 0,transparent 50%)} +`],encapsulation:2});let t=n;return t})();var Zge=["determinateSpinner"];function Xge(t,n){if(t&1&&(ii(),m(0,"svg",11),M(1,"circle",12),h()),t&2){let e=x();X("viewBox",e._viewBox()),g(),At("stroke-dasharray",e._strokeCircumference(),"px")("stroke-dashoffset",e._strokeCircumference()/2,"px")("stroke-width",e._circleStrokeWidth(),"%"),X("r",e._circleRadius())}}var Jge=new O("mat-progress-spinner-default-options",{providedIn:"root",factory:e_e});function e_e(){return{diameter:d6}}var d6=100,t_e=10,Kt=(()=>{class t{_elementRef=u(Y);_noopAnimations;get color(){return this._color||this._defaultColor}set color(e){this._color=e}_color;_defaultColor="primary";_determinateCircle;constructor(){let e=u(Jge),i=xS(),r=this._elementRef.nativeElement;this._noopAnimations=i==="di-disabled"&&!!e&&!e._forceAnimations,this.mode=r.nodeName.toLowerCase()==="mat-spinner"?"indeterminate":"determinate",!this._noopAnimations&&i==="reduced-motion"&&r.classList.add("mat-progress-spinner-reduced-motion"),e&&(e.color&&(this.color=this._defaultColor=e.color),e.diameter&&(this.diameter=e.diameter),e.strokeWidth&&(this.strokeWidth=e.strokeWidth))}mode;get value(){return this.mode==="determinate"?this._value:0}set value(e){this._value=Math.max(0,Math.min(100,e||0))}_value=0;get diameter(){return this._diameter}set diameter(e){this._diameter=e||0}_diameter=d6;get strokeWidth(){return this._strokeWidth??this.diameter/10}set strokeWidth(e){this._strokeWidth=e||0}_strokeWidth;_circleRadius(){return(this.diameter-t_e)/2}_viewBox(){let e=this._circleRadius()*2+this.strokeWidth;return`0 0 ${e} ${e}`}_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(i){return new(i||t)};static \u0275cmp=E({type:t,selectors:[["mat-progress-spinner"],["mat-spinner"]],viewQuery:function(i,r){if(i&1&&ie(Zge,5),i&2){let o;j(o=H())&&(r._determinateCircle=o.first)}},hostAttrs:["role","progressbar","tabindex","-1",1,"mat-mdc-progress-spinner","mdc-circular-progress"],hostVars:18,hostBindings:function(i,r){i&2&&(X("aria-valuemin",0)("aria-valuemax",100)("aria-valuenow",r.mode==="determinate"?r.value:null)("mode",r.mode),at("mat-"+r.color),At("width",r.diameter,"px")("height",r.diameter,"px")("--mat-progress-spinner-size",r.diameter+"px")("--mat-progress-spinner-active-indicator-width",r.diameter+"px"),G("_mat-animation-noopable",r._noopAnimations)("mdc-circular-progress--indeterminate",r.mode==="indeterminate"))},inputs:{color:"color",mode:"mode",value:[2,"value","value",ht],diameter:[2,"diameter","diameter",ht],strokeWidth:[2,"strokeWidth","strokeWidth",ht]},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(i,r){if(i&1&&(A(0,Xge,2,8,"ng-template",null,0,Mi),m(2,"div",2,1),ii(),m(4,"svg",3),M(5,"circle",4),h()(),Qo(),m(6,"div",5)(7,"div",6)(8,"div",7),qe(9,8),h(),m(10,"div",9),qe(11,8),h(),m(12,"div",10),qe(13,8),h()()()),i&2){let o=Te(1);g(4),X("viewBox",r._viewBox()),g(),At("stroke-dasharray",r._strokeCircumference(),"px")("stroke-dashoffset",r._strokeDashOffset(),"px")("stroke-width",r._circleStrokeWidth(),"%"),X("r",r._circleRadius()),g(4),v("ngTemplateOutlet",o),g(2),v("ngTemplateOutlet",o),g(2),v("ngTemplateOutlet",o)}},dependencies:[$n],styles:[`.mat-mdc-progress-spinner{--mat-progress-spinner-animation-multiplier: 1;display:block;overflow:hidden;line-height:0;position:relative;direction:ltr;transition:opacity 250ms cubic-bezier(0.4, 0, 0.6, 1)}.mat-mdc-progress-spinner circle{stroke-width:var(--mat-progress-spinner-active-indicator-width, 4px)}.mat-mdc-progress-spinner._mat-animation-noopable,.mat-mdc-progress-spinner._mat-animation-noopable .mdc-circular-progress__determinate-circle{transition:none !important}.mat-mdc-progress-spinner._mat-animation-noopable .mdc-circular-progress__indeterminate-circle-graphic,.mat-mdc-progress-spinner._mat-animation-noopable .mdc-circular-progress__spinner-layer,.mat-mdc-progress-spinner._mat-animation-noopable .mdc-circular-progress__indeterminate-container{animation:none !important}.mat-mdc-progress-spinner._mat-animation-noopable .mdc-circular-progress__indeterminate-container circle{stroke-dasharray:0 !important}@media(forced-colors: active){.mat-mdc-progress-spinner .mdc-circular-progress__indeterminate-circle-graphic,.mat-mdc-progress-spinner .mdc-circular-progress__determinate-circle{stroke:currentColor;stroke:CanvasText}}.mat-progress-spinner-reduced-motion{--mat-progress-spinner-animation-multiplier: 1.25}.mdc-circular-progress__determinate-container,.mdc-circular-progress__indeterminate-circle-graphic,.mdc-circular-progress__indeterminate-container,.mdc-circular-progress__spinner-layer{position:absolute;width:100%;height:100%}.mdc-circular-progress__determinate-container{transform:rotate(-90deg)}.mdc-circular-progress--indeterminate .mdc-circular-progress__determinate-container{opacity:0}.mdc-circular-progress__indeterminate-container{font-size:0;letter-spacing:0;white-space:nowrap;opacity:0}.mdc-circular-progress--indeterminate .mdc-circular-progress__indeterminate-container{opacity:1;animation:mdc-circular-progress-container-rotate calc(1568.2352941176ms*var(--mat-progress-spinner-animation-multiplier)) linear infinite}.mdc-circular-progress__determinate-circle-graphic,.mdc-circular-progress__indeterminate-circle-graphic{fill:rgba(0,0,0,0)}.mat-mdc-progress-spinner .mdc-circular-progress__determinate-circle,.mat-mdc-progress-spinner .mdc-circular-progress__indeterminate-circle-graphic{stroke:var(--mat-progress-spinner-active-indicator-color, var(--mat-sys-primary))}@media(forced-colors: active){.mat-mdc-progress-spinner .mdc-circular-progress__determinate-circle,.mat-mdc-progress-spinner .mdc-circular-progress__indeterminate-circle-graphic{stroke:CanvasText}}.mdc-circular-progress__determinate-circle{transition:stroke-dashoffset 500ms cubic-bezier(0, 0, 0.2, 1)}.mdc-circular-progress__gap-patch{position:absolute;top:0;left:47.5%;box-sizing:border-box;width:5%;height:100%;overflow:hidden}.mdc-circular-progress__gap-patch .mdc-circular-progress__indeterminate-circle-graphic{left:-900%;width:2000%;transform:rotate(180deg)}.mdc-circular-progress__circle-clipper .mdc-circular-progress__indeterminate-circle-graphic{width:200%}.mdc-circular-progress__circle-right .mdc-circular-progress__indeterminate-circle-graphic{left:-100%}.mdc-circular-progress--indeterminate .mdc-circular-progress__circle-left .mdc-circular-progress__indeterminate-circle-graphic{animation:mdc-circular-progress-left-spin calc(1333ms*var(--mat-progress-spinner-animation-multiplier)) cubic-bezier(0.4, 0, 0.2, 1) infinite both}.mdc-circular-progress--indeterminate .mdc-circular-progress__circle-right .mdc-circular-progress__indeterminate-circle-graphic{animation:mdc-circular-progress-right-spin calc(1333ms*var(--mat-progress-spinner-animation-multiplier)) cubic-bezier(0.4, 0, 0.2, 1) infinite both}.mdc-circular-progress__circle-clipper{display:inline-flex;position:relative;width:50%;height:100%;overflow:hidden}.mdc-circular-progress--indeterminate .mdc-circular-progress__spinner-layer{animation:mdc-circular-progress-spinner-layer-rotate calc(5332ms*var(--mat-progress-spinner-animation-multiplier)) cubic-bezier(0.4, 0, 0.2, 1) infinite both}@keyframes mdc-circular-progress-container-rotate{to{transform:rotate(360deg)}}@keyframes mdc-circular-progress-spinner-layer-rotate{12.5%{transform:rotate(135deg)}25%{transform:rotate(270deg)}37.5%{transform:rotate(405deg)}50%{transform:rotate(540deg)}62.5%{transform:rotate(675deg)}75%{transform:rotate(810deg)}87.5%{transform:rotate(945deg)}100%{transform:rotate(1080deg)}}@keyframes mdc-circular-progress-left-spin{from{transform:rotate(265deg)}50%{transform:rotate(130deg)}to{transform:rotate(265deg)}}@keyframes mdc-circular-progress-right-spin{from{transform:rotate(-265deg)}50%{transform:rotate(-130deg)}to{transform:rotate(-265deg)}} +`],encapsulation:2,changeDetection:0})}return t})();var Zt=(()=>{class t{static \u0275fac=function(i){return new(i||t)};static \u0275mod=ee({type:t});static \u0275inj=J({imports:[De]})}return t})();function i_e(t,n){if(t&1){let e=q();m(0,"div",1)(1,"button",2),S("click",function(){k(e);let r=x();return T(r.action())}),f(2),h()()}if(t&2){let e=x();g(2),fe(" ",e.data.action," ")}}var n_e=["label"];function r_e(t,n){}var o_e=Math.pow(2,31)-1,w_=class{_overlayRef;instance;containerInstance;_afterDismissed=new z;_afterOpened=new z;_onAction=new z;_durationTimeoutId;_dismissedByAction=!1;constructor(n,e){this._overlayRef=e,this.containerInstance=n,n._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(n){this._durationTimeoutId=setTimeout(()=>this.dismiss(),Math.min(n,o_e))}_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}},u6=new O("MatSnackBarData"),up=class{politeness="polite";announcementMessage="";viewContainerRef;duration=0;panelClass;direction;data=null;horizontalPosition="center";verticalPosition="bottom"},a_e=(()=>{class t{static \u0275fac=function(i){return new(i||t)};static \u0275dir=P({type:t,selectors:[["","matSnackBarLabel",""]],hostAttrs:[1,"mat-mdc-snack-bar-label","mdc-snackbar__label"]})}return t})(),s_e=(()=>{class t{static \u0275fac=function(i){return new(i||t)};static \u0275dir=P({type:t,selectors:[["","matSnackBarActions",""]],hostAttrs:[1,"mat-mdc-snack-bar-actions","mdc-snackbar__actions"]})}return t})(),l_e=(()=>{class t{static \u0275fac=function(i){return new(i||t)};static \u0275dir=P({type:t,selectors:[["","matSnackBarAction",""]],hostAttrs:[1,"mat-mdc-snack-bar-action","mdc-snackbar__action"]})}return t})(),m6=(()=>{class t{snackBarRef=u(w_);data=u(u6);constructor(){}action(){this.snackBarRef.dismissWithAction()}get hasAction(){return!!this.data.action}static \u0275fac=function(i){return new(i||t)};static \u0275cmp=E({type:t,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(i,r){i&1&&(m(0,"div",0),f(1),h(),V(2,i_e,3,1,"div",1)),i&2&&(g(),fe(" ",r.data.message,` +`),g(),B(r.hasAction?2:-1))},dependencies:[_t,a_e,s_e,l_e],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 t})(),$I="_mat-snack-bar-enter",WI="_mat-snack-bar-exit",c_e=(()=>{class t extends kc{_ngZone=u(ae);_elementRef=u(Y);_changeDetectorRef=u(ye);_platform=u(Ye);_animationsDisabled=Qe();snackBarConfig=u(up);_document=u(_e);_trackedModals=new Set;_enterFallback;_exitFallback;_injector=u(de);_announceDelay=150;_announceTimeoutId;_destroyed=!1;_portalOutlet;_onAnnounce=new z;_onExit=new z;_onEnter=new z;_animationState="void";_live;_label;_role;_liveElementId=u(et).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 i=this._portalOutlet.attachComponentPortal(e);return this._afterPortalAttached(),i}attachTemplatePortal(e){this._assertNotAttached();let i=this._portalOutlet.attachTemplatePortal(e);return this._afterPortalAttached(),i}attachDomPortal=e=>{this._assertNotAttached();let i=this._portalOutlet.attachDomPortal(e);return this._afterPortalAttached(),i};onAnimationEnd(e){e===WI?this._completeExit():e===$I&&(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?vt(()=>{this._ngZone.run(()=>queueMicrotask(()=>this.onAnimationEnd($I)))},{injector:this._injector}):(clearTimeout(this._enterFallback),this._enterFallback=setTimeout(()=>{this._elementRef.nativeElement.classList.add("mat-snack-bar-fallback-visible"),this.onAnimationEnd($I)},200)))}exit(){return this._destroyed?Q(void 0):(this._ngZone.run(()=>{this._animationState="hidden",this._changeDetectorRef.markForCheck(),this._elementRef.nativeElement.setAttribute("mat-exit",""),clearTimeout(this._announceTimeoutId),this._animationsDisabled?vt(()=>{this._ngZone.run(()=>queueMicrotask(()=>this.onAnimationEnd(WI)))},{injector:this._injector}):(clearTimeout(this._exitFallback),this._exitFallback=setTimeout(()=>this.onAnimationEnd(WI),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,i=this.snackBarConfig.panelClass;i&&(Array.isArray(i)?i.forEach(a=>e.classList.add(a)):e.classList.add(i)),this._exposeToModals();let r=this._label.nativeElement,o="mdc-snackbar__label";r.classList.toggle(o,!r.querySelector(`.${o}`))}_exposeToModals(){let e=this._liveElementId,i=this._document.querySelectorAll('body > .cdk-overlay-container [aria-modal="true"]');for(let r=0;r{let i=e.getAttribute("aria-owns");if(i){let r=i.replace(this._liveElementId,"").trim();r.length>0?e.setAttribute("aria-owns",r):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,i=e.querySelector("[aria-hidden]"),r=e.querySelector("[aria-live]");if(i&&r){let o=null;this._platform.isBrowser&&document.activeElement instanceof HTMLElement&&i.contains(document.activeElement)&&(o=document.activeElement),i.removeAttribute("aria-hidden"),r.appendChild(i),o?.focus(),this._onAnnounce.next(),this._onAnnounce.complete()}},this._announceDelay)})}static \u0275fac=function(i){return new(i||t)};static \u0275cmp=E({type:t,selectors:[["mat-snack-bar-container"]],viewQuery:function(i,r){if(i&1&&(ie(Ir,7),ie(n_e,7)),i&2){let o;j(o=H())&&(r._portalOutlet=o.first),j(o=H())&&(r._label=o.first)}},hostAttrs:[1,"mdc-snackbar","mat-mdc-snack-bar-container"],hostVars:6,hostBindings:function(i,r){i&1&&S("animationend",function(a){return r.onAnimationEnd(a.animationName)})("animationcancel",function(a){return r.onAnimationEnd(a.animationName)}),i&2&&G("mat-snack-bar-container-enter",r._animationState==="visible")("mat-snack-bar-container-exit",r._animationState==="hidden")("mat-snack-bar-container-animations-enabled",!r._animationsDisabled)},features:[le],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(i,r){i&1&&(m(0,"div",1)(1,"div",2,0)(3,"div",3),A(4,r_e,0,0,"ng-template",4),h(),M(5,"div"),h()()),i&2&&(g(5),X("aria-live",r._live)("role",r._role)("id",r._liveElementId))},dependencies:[Ir],styles:[`@keyframes _mat-snack-bar-enter{from{transform:scale(0.8);opacity:0}to{transform:scale(1);opacity:1}}@keyframes _mat-snack-bar-exit{from{opacity:1}to{opacity:0}}.mat-mdc-snack-bar-container{display:flex;align-items:center;justify-content:center;box-sizing:border-box;-webkit-tap-highlight-color:rgba(0,0,0,0);margin:8px}.mat-mdc-snack-bar-handset .mat-mdc-snack-bar-container{width:100vw}.mat-snack-bar-container-animations-enabled{opacity:0}.mat-snack-bar-container-animations-enabled.mat-snack-bar-fallback-visible{opacity:1}.mat-snack-bar-container-animations-enabled.mat-snack-bar-container-enter{animation:_mat-snack-bar-enter 150ms cubic-bezier(0, 0, 0.2, 1) forwards}.mat-snack-bar-container-animations-enabled.mat-snack-bar-container-exit{animation:_mat-snack-bar-exit 75ms cubic-bezier(0.4, 0, 1, 1) forwards}.mat-mdc-snackbar-surface{box-shadow:0px 3px 5px -1px rgba(0, 0, 0, 0.2), 0px 6px 10px 0px rgba(0, 0, 0, 0.14), 0px 1px 18px 0px rgba(0, 0, 0, 0.12);display:flex;align-items:center;justify-content:flex-start;box-sizing:border-box;padding-left:0;padding-right:8px}[dir=rtl] .mat-mdc-snackbar-surface{padding-right:0;padding-left:8px}.mat-mdc-snack-bar-container .mat-mdc-snackbar-surface{min-width:344px;max-width:672px}.mat-mdc-snack-bar-handset .mat-mdc-snackbar-surface{width:100%;min-width:0}@media(forced-colors: active){.mat-mdc-snackbar-surface{outline:solid 1px}}.mat-mdc-snack-bar-container .mat-mdc-snackbar-surface{color:var(--mat-snack-bar-supporting-text-color, var(--mat-sys-inverse-on-surface));border-radius:var(--mat-snack-bar-container-shape, var(--mat-sys-corner-extra-small));background-color:var(--mat-snack-bar-container-color, var(--mat-sys-inverse-surface))}.mdc-snackbar__label{width:100%;flex-grow:1;box-sizing:border-box;margin:0;padding:14px 8px 14px 16px}[dir=rtl] .mdc-snackbar__label{padding-left:8px;padding-right:16px}.mat-mdc-snack-bar-container .mdc-snackbar__label{font-family:var(--mat-snack-bar-supporting-text-font, var(--mat-sys-body-medium-font));font-size:var(--mat-snack-bar-supporting-text-size, var(--mat-sys-body-medium-size));font-weight:var(--mat-snack-bar-supporting-text-weight, var(--mat-sys-body-medium-weight));line-height:var(--mat-snack-bar-supporting-text-line-height, var(--mat-sys-body-medium-line-height))}.mat-mdc-snack-bar-actions{display:flex;flex-shrink:0;align-items:center;box-sizing:border-box}.mat-mdc-snack-bar-handset,.mat-mdc-snack-bar-container,.mat-mdc-snack-bar-label{flex:1 1 auto}.mat-mdc-snack-bar-container .mat-mdc-button.mat-mdc-snack-bar-action:not(:disabled){--mat-button-text-state-layer-color: currentColor;--mat-button-text-ripple-color: currentColor}.mat-mdc-snack-bar-container .mat-mdc-button.mat-mdc-snack-bar-action:not(:disabled).mat-unthemed{color:var(--mat-snack-bar-button-color, var(--mat-sys-inverse-primary))}.mat-mdc-snack-bar-container .mat-mdc-button.mat-mdc-snack-bar-action:not(:disabled) .mat-ripple-element{opacity:.1} +`],encapsulation:2})}return t})();function d_e(){return new up}var u_e=new O("mat-snack-bar-default-options",{providedIn:"root",factory:d_e}),_i=(()=>{class t{_live=u(Xf);_injector=u(de);_breakpointObserver=u(Ml);_parentSnackBar=u(t,{optional:!0,skipSelf:!0});_defaultConfig=u(u_e);_animationsDisabled=Qe();_snackBarRefAtThisLevel=null;simpleSnackBarComponent=m6;snackBarContainerComponent=c_e;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,i){return this._attach(e,i)}openFromTemplate(e,i){return this._attach(e,i)}open(e,i="",r){let o=I(I({},this._defaultConfig),r);return o.data={message:e,action:i},o.announcementMessage===e&&(o.announcementMessage=void 0),this.openFromComponent(this.simpleSnackBarComponent,o)}dismiss(){this._openedSnackBarRef&&this._openedSnackBarRef.dismiss()}ngOnDestroy(){this._snackBarRefAtThisLevel&&this._snackBarRefAtThisLevel.dismiss()}_attachSnackBarContainer(e,i){let r=i&&i.viewContainerRef&&i.viewContainerRef.injector,o=de.create({parent:r||this._injector,providers:[{provide:up,useValue:i}]}),a=new ao(this.snackBarContainerComponent,i.viewContainerRef,o),s=e.attach(a);return s.instance.snackBarConfig=i,s.instance}_attach(e,i){let r=I(I(I({},new up),this._defaultConfig),i),o=this._createOverlay(r),a=this._attachSnackBarContainer(o,r),s=new w_(a,o);if(e instanceof te){let l=new kn(e,null,{$implicit:r.data,snackBarRef:s});s.instance=a.attachTemplatePortal(l)}else{let l=this._createInjector(r,s),c=new ao(e,void 0,l),d=a.attachComponentPortal(c);s.instance=d.instance}return this._breakpointObserver.observe(jv.HandsetPortrait).pipe(we(o.detachments())).subscribe(l=>{o.overlayElement.classList.toggle(this.handsetCssClass,l.matches)}),r.announcementMessage&&a._onAnnounce.subscribe(()=>{this._live.announce(r.announcementMessage,r.politeness)}),this._animateSnackBar(s,r),this._openedSnackBarRef=s,this._openedSnackBarRef}_animateSnackBar(e,i){e.afterDismissed().subscribe(()=>{this._openedSnackBarRef==e&&(this._openedSnackBarRef=null),i.announcementMessage&&this._live.clear()}),i.duration&&i.duration>0&&e.afterOpened().subscribe(()=>e._dismissAfter(i.duration)),this._openedSnackBarRef?(this._openedSnackBarRef.afterDismissed().subscribe(()=>{e.containerInstance.enter()}),this._openedSnackBarRef.dismiss()):e.containerInstance.enter()}_createOverlay(e){let i=new Gr;i.direction=e.direction;let r=zs(this._injector),o=e.direction==="rtl",a=e.horizontalPosition==="left"||e.horizontalPosition==="start"&&!o||e.horizontalPosition==="end"&&o,s=!a&&e.horizontalPosition!=="center";return a?r.left("0"):s?r.right("0"):r.centerHorizontally(),e.verticalPosition==="top"?r.top("0"):r.bottom("0"),i.positionStrategy=r,i.disableAnimations=this._animationsDisabled,qr(this._injector,i)}_createInjector(e,i){let r=e&&e.viewContainerRef&&e.viewContainerRef.injector;return de.create({parent:r||this._injector,providers:[{provide:w_,useValue:i},{provide:u6,useValue:e.data}]})}static \u0275fac=function(i){return new(i||t)};static \u0275prov=R({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();var wi=(()=>{class t{static \u0275fac=function(i){return new(i||t)};static \u0275mod=ee({type:t});static \u0275inj=J({providers:[_i],imports:[cr,Oo,Fe,De,m6,De]})}return t})();var Xn=(()=>{let n=class n{constructor(){this.authService=u(Ht),this.templateRef=u(te),this.viewContainer=u(st)}set appHasRole(i){this.updateView(i)}ngOnInit(){this.subscription=this.authService.isAuthenticated$.subscribe(()=>{let i=this.roles;i&&this.updateView(i)})}ngOnDestroy(){this.subscription?.unsubscribe()}updateView(i){this.roles=i,this.viewContainer.clear(),this.checkRole(i)&&this.viewContainer.createEmbeddedView(this.templateRef)}checkRole(i){return this.authService.isAuthenticated()?typeof i=="string"?this.authService.hasRole(i):Array.isArray(i)?this.authService.hasAnyRole(i):!1:!1}};n.\u0275fac=function(r){return new(r||n)},n.\u0275dir=P({type:n,selectors:[["","appHasRole",""]],inputs:{appHasRole:"appHasRole"}});let t=n;return t})();var nd=(()=>{let n=class n{constructor(){this.http=u(kr),this.apiUrl=Ji.apiUrl}chat(i,r){return this.http.post(`${this.apiUrl}/ai/chat`,{message:i,systemPrompt:r})}hrInsight(i){return this.http.post(`${this.apiUrl}/ai/hr-insight`,{question:i})}nlEmployeeSearch(i){return this.http.post(`${this.apiUrl}/ai/nl-employee-search`,{query:i})}semanticPositionSearch(i,r=10){return this.http.post(`${this.apiUrl}/positions/semantic-search`,{queryText:i,topK:r})}};n.\u0275fac=function(r){return new(r||n)},n.\u0275prov=R({token:n,factory:n.\u0275fac,providedIn:"root"});let t=n;return t})();var ga=class{constructor(){this.http=u(kr),this.apiUrl=Ji.apiUrl}getAll(n){let e=this.buildHttpParams(n);return this.http.get(`${this.apiUrl}/${this.endpoint}`,{params:e}).pipe(se(i=>i.value))}getAllPaged(n){let e=this.buildHttpParams(n);return this.http.get(`${this.apiUrl}/${this.endpoint}`,{params:e})}getById(n){return this.http.get(`${this.apiUrl}/${this.endpoint}/${n}`).pipe(se(e=>e.value))}create(n){return this.http.post(`${this.apiUrl}/${this.endpoint}`,n).pipe(se(e=>e&&"value"in e&&typeof e.value=="string"?{id:e.value}:e))}update(n,e){return this.http.put(`${this.apiUrl}/${this.endpoint}/${n}`,e)}delete(n){return this.http.delete(`${this.apiUrl}/${this.endpoint}/${n}`)}buildHttpParams(n){let e=new rr;return n&&Object.keys(n).forEach(i=>{let r=n[i];r!=null&&(e=e.set(i,r.toString()))}),e}};var h6=(()=>{let n=class n extends ga{constructor(){super(...arguments),this.endpoint="Dashboard"}getDashboardMetrics(){return this.http.get(`${this.apiUrl}/${this.endpoint}/Metrics`).pipe(se(i=>{if(i.isSuccess&&i.value)return i.value;throw new Error(i.message||"Failed to load dashboard metrics")}))}};n.\u0275fac=(()=>{let i;return function(o){return(i||(i=ge(n)))(o||n)}})(),n.\u0275prov=R({token:n,factory:n.\u0275fac,providedIn:"root"});let t=n;return t})();var tl=(()=>{let n=class n extends ga{constructor(){super(...arguments),this.endpoint="Departments"}createDepartment(i){return this.create(i)}updateDepartment(i){return this.update(i.id,i)}};n.\u0275fac=(()=>{let i;return function(o){return(i||(i=ge(n)))(o||n)}})(),n.\u0275prov=R({token:n,factory:n.\u0275fac,providedIn:"root"});let t=n;return t})();var rd=(()=>{let n=class n extends ga{constructor(){super(...arguments),this.endpoint="Employees"}createEmployee(i){return this.create(i)}updateEmployee(i){return this.update(i.id,i)}};n.\u0275fac=(()=>{let i;return function(o){return(i||(i=ge(n)))(o||n)}})(),n.\u0275prov=R({token:n,factory:n.\u0275fac,providedIn:"root"});let t=n;return t})();var od=(()=>{let n=class n extends ga{constructor(){super(...arguments),this.endpoint="Positions"}createPosition(i){return this.create(i)}updatePosition(i){return this.update(i.id,i)}getAllPaged(i){let r=this.buildHttpParams(i);return this.http.get(`${this.apiUrl}/${this.endpoint}`,{params:r})}addMockPositions(i){return this.http.post(`${this.apiUrl}/${this.endpoint}/AddMock`,i)}};n.\u0275fac=(()=>{let i;return function(o){return(i||(i=ge(n)))(o||n)}})(),n.\u0275prov=R({token:n,factory:n.\u0275fac,providedIn:"root"});let t=n;return t})();var ad=(()=>{let n=class n extends ga{constructor(){super(...arguments),this.endpoint="SalaryRanges"}createSalaryRange(i){return this.create(i)}updateSalaryRange(i){return this.update(i.id,i)}};n.\u0275fac=(()=>{let i;return function(o){return(i||(i=ge(n)))(o||n)}})(),n.\u0275prov=R({token:n,factory:n.\u0275fac,providedIn:"root"});let t=n;return t})();var p6=(()=>{let n=class n{decodeToken(i){if(!i)return null;try{let r=i.split(".");if(r.length!==3)return console.warn("Invalid JWT token format"),null;let o=this.decodeBase64Url(r[0]),a=this.decodeBase64Url(r[1]),s=r[2],l=JSON.parse(a),c=l.iat?new Date(l.iat*1e3):void 0,d=l.exp?new Date(l.exp*1e3):void 0,p=new Date,_=d?d24){let s=Math.floor(o/24);return`Expires in ${s} day${s>1?"s":""}`}else return o>0?`Expires in ${o}h ${a}m`:a>0?`Expires in ${a}m`:"Expires soon"}};n.\u0275fac=function(r){return new(r||n)},n.\u0275prov=R({token:n,factory:n.\u0275fac,providedIn:"root"});let t=n;return t})();var m_e=()=>["HRAdmin","Manager"],f6=()=>["HRAdmin"];function h_e(t,n){t&1&&(m(0,"div",3),M(1,"mat-spinner"),h())}function p_e(t,n){if(t&1&&(m(0,"div",21),M(1,"canvas",22),h()),t&2){let e=x(2);g(),v("data",e.departmentChartData)("options",e.departmentChartOptions)}}function f_e(t,n){t&1&&(m(0,"div",23)(1,"mat-icon"),f(2,"pie_chart"),h(),m(3,"p"),f(4,"No department data available"),h()())}function g_e(t,n){if(t&1&&(m(0,"div",21),M(1,"canvas",24),h()),t&2){let e=x(2);g(),v("data",e.positionChartData)("options",e.positionChartOptions)}}function __e(t,n){t&1&&(m(0,"div",23)(1,"mat-icon"),f(2,"bar_chart"),h(),m(3,"p"),f(4,"No position data available"),h()())}function b_e(t,n){if(t&1&&(m(0,"div",21),M(1,"canvas",25),h()),t&2){let e=x(2);g(),v("data",e.genderChartData)("options",e.genderChartOptions)}}function v_e(t,n){t&1&&(m(0,"div",23)(1,"mat-icon"),f(2,"donut_large"),h(),m(3,"p"),f(4,"No gender data available"),h()())}function y_e(t,n){if(t&1&&(m(0,"div",21),M(1,"canvas",24),h()),t&2){let e=x(2);g(),v("data",e.salaryChartData)("options",e.salaryChartOptions)}}function x_e(t,n){t&1&&(m(0,"div",23)(1,"mat-icon"),f(2,"bar_chart"),h(),m(3,"p"),f(4,"No salary range data available"),h()())}function C_e(t,n){if(t&1){let e=q();m(0,"mat-list-item",27),S("click",function(){let r=k(e).$implicit,o=x(3);return T(o.navigateToEmployee(r.id))}),m(1,"mat-icon",28),f(2,"person"),h(),m(3,"div",29),f(4),h(),m(5,"div",30),f(6),h(),m(7,"div",31),f(8),me(9,"date"),h()()}if(t&2){let e=n.$implicit;g(4),N(e.fullName),g(2),_l("",e.positionTitle," \u2022 ",e.departmentName),g(2),N(Ui(9,4,e.createdAt,"MMM d, y"))}}function w_e(t,n){if(t&1&&(m(0,"mat-list"),A(1,C_e,10,7,"mat-list-item",26),h()),t&2){let e=x(2);g(),v("ngForOf",e.metrics.recentEmployees)}}function D_e(t,n){t&1&&(m(0,"div",23)(1,"mat-icon"),f(2,"people_outline"),h(),m(3,"p"),f(4,"No recent employees"),h()())}function M_e(t,n){if(t&1){let e=q();m(0,"button",36),S("click",function(){k(e);let r=x(3);return T(r.navigateToAddDepartment())}),m(1,"mat-icon"),f(2,"add_business"),h(),f(3," Add Department "),h()}}function E_e(t,n){if(t&1){let e=q();m(0,"button",36),S("click",function(){k(e);let r=x(3);return T(r.navigateToAddPosition())}),m(1,"mat-icon"),f(2,"work_outline"),h(),f(3," Add Position "),h()}}function S_e(t,n){if(t&1){let e=q();m(0,"div",32)(1,"mat-card")(2,"mat-card-header")(3,"mat-card-title"),f(4,"Quick Actions"),h()(),m(5,"mat-card-content")(6,"div",33)(7,"button",34),S("click",function(){k(e);let r=x(2);return T(r.navigateToAddEmployee())}),m(8,"mat-icon"),f(9,"person_add"),h(),f(10," Add Employee "),h(),A(11,M_e,4,0,"button",35)(12,E_e,4,0,"button",35),h()()()()}t&2&&(g(11),v("appHasRole",dt(2,f6)),g(),v("appHasRole",dt(3,f6)))}function k_e(t,n){if(t&1){let e=q();m(0,"div",4)(1,"div",5)(2,"mat-card",6)(3,"mat-card-content")(4,"div",7)(5,"mat-icon"),f(6,"people"),h()(),m(7,"div",8),f(8),h(),m(9,"div",9),f(10,"Total Employees"),h()()(),m(11,"mat-card",6)(12,"mat-card-content")(13,"div",7)(14,"mat-icon"),f(15,"business"),h()(),m(16,"div",8),f(17),h(),m(18,"div",9),f(19,"Departments"),h()()(),m(20,"mat-card",6)(21,"mat-card-content")(22,"div",7)(23,"mat-icon"),f(24,"work"),h()(),m(25,"div",8),f(26),h(),m(27,"div",9),f(28,"Positions"),h()()(),m(29,"mat-card",6)(30,"mat-card-content")(31,"div",7)(32,"mat-icon"),f(33,"attach_money"),h()(),m(34,"div",8),f(35),h(),m(36,"div",9),f(37,"Salary Ranges"),h()()()(),m(38,"div",10)(39,"mat-card",11)(40,"mat-card-content")(41,"div",12)(42,"mat-icon"),f(43,"person_add"),h()(),m(44,"div",8),f(45),h(),m(46,"div",9),f(47,"New Hires This Month"),h()()(),m(48,"mat-card",11)(49,"mat-card-content")(50,"div",12)(51,"mat-icon"),f(52,"payments"),h()(),m(53,"div",8),f(54),me(55,"currency"),h(),m(56,"div",9),f(57,"Average Salary"),h()()()(),m(58,"div",13)(59,"mat-card",14)(60,"mat-card-header")(61,"mat-card-title"),f(62,"Employees by Department"),h()(),m(63,"mat-card-content"),A(64,p_e,2,2,"div",15)(65,f_e,5,0,"div",16),h()(),m(66,"mat-card",14)(67,"mat-card-header")(68,"mat-card-title"),f(69,"Top 10 Positions"),h()(),m(70,"mat-card-content"),A(71,g_e,2,2,"div",15)(72,__e,5,0,"div",16),h()()(),m(73,"div",13)(74,"mat-card",14)(75,"mat-card-header")(76,"mat-card-title"),f(77,"Gender Distribution"),h()(),m(78,"mat-card-content"),A(79,b_e,2,2,"div",15)(80,v_e,5,0,"div",16),h()(),m(81,"mat-card",14)(82,"mat-card-header")(83,"mat-card-title"),f(84,"Salary Range Distribution"),h()(),m(85,"mat-card-content"),A(86,y_e,2,2,"div",15)(87,x_e,5,0,"div",16),h()()(),m(88,"div",17)(89,"mat-card")(90,"mat-card-header")(91,"mat-card-title"),f(92,"Recent Employees"),h(),m(93,"button",18),S("click",function(){k(e);let r=x();return T(r.navigateToEmployees())}),f(94," View All "),m(95,"mat-icon"),f(96,"arrow_forward"),h()()(),m(97,"mat-card-content"),A(98,w_e,2,1,"mat-list",19)(99,D_e,5,0,"div",16),h()()(),A(100,S_e,13,4,"div",20),h()}if(t&2){let e=x();g(8),N(e.metrics.totalEmployees),g(9),N(e.metrics.totalDepartments),g(9),N(e.metrics.totalPositions),g(9),N(e.metrics.totalSalaryRanges),g(10),N(e.metrics.newHiresThisMonth),g(9),N(Tm(55,17,e.metrics.averageSalary,"USD","symbol","1.0-0")),g(10),v("ngIf",e.departmentChartData),g(),v("ngIf",!e.departmentChartData),g(6),v("ngIf",e.positionChartData),g(),v("ngIf",!e.positionChartData),g(7),v("ngIf",e.genderChartData),g(),v("ngIf",!e.genderChartData),g(6),v("ngIf",e.salaryChartData),g(),v("ngIf",!e.salaryChartData),g(11),v("ngIf",e.metrics.recentEmployees&&e.metrics.recentEmployees.length>0),g(),v("ngIf",!e.metrics.recentEmployees||e.metrics.recentEmployees.length===0),g(),v("appHasRole",dt(22,m_e))}}function T_e(t,n){if(t&1){let e=q();m(0,"div",37)(1,"mat-card")(2,"mat-card-content")(3,"div",23)(4,"mat-icon"),f(5,"error_outline"),h(),m(6,"p"),f(7,"Unable to load dashboard data"),h(),m(8,"button",34),S("click",function(){k(e);let r=x();return T(r.loadDashboardMetrics())}),m(9,"mat-icon"),f(10,"refresh"),h(),f(11," Retry "),h()()()()()}}var g6=(()=>{let n=class n{constructor(){this.dashboardService=u(h6),this.router=u(Ae),this.snackBar=u(_i),this.loading=!0,this.metrics=null,this.departmentChartData=null,this.departmentChartOptions={responsive:!0,maintainAspectRatio:!1,plugins:{legend:{position:"bottom"},tooltip:{callbacks:{label:i=>{let r=i.label||"",o=i.parsed||0;return`${r}: ${o} employees`}}}}},this.positionChartData=null,this.positionChartOptions={responsive:!0,maintainAspectRatio:!1,indexAxis:"y",plugins:{legend:{display:!1},tooltip:{callbacks:{label:i=>`${i.parsed.x} employees`}}},scales:{x:{beginAtZero:!0,ticks:{precision:0}}}},this.genderChartData=null,this.genderChartOptions={responsive:!0,maintainAspectRatio:!1,plugins:{legend:{position:"bottom"},tooltip:{callbacks:{label:i=>{let r=i.label||"",o=i.parsed||0;return`${r}: ${o} employees`}}}}},this.salaryChartData=null,this.salaryChartOptions={responsive:!0,maintainAspectRatio:!1,plugins:{legend:{display:!1},tooltip:{callbacks:{label:i=>`${i.parsed.y} employees`}}},scales:{y:{beginAtZero:!0,ticks:{precision:0}}}}}ngOnInit(){this.loadDashboardMetrics()}loadDashboardMetrics(){this.loading=!0,this.dashboardService.getDashboardMetrics().subscribe({next:i=>{this.metrics=i,this.prepareCharts(i),this.loading=!1},error:i=>{console.error("Error loading dashboard metrics:",i),this.showMessage("Error loading dashboard data"),this.loading=!1}})}prepareCharts(i){this.prepareDepartmentChart(i.employeesByDepartment),this.preparePositionChart(i.employeesByPosition),this.prepareGenderChart(i.genderDistribution),this.prepareSalaryChart(i.employeesBySalaryRange)}prepareDepartmentChart(i){if(!i||i.length===0){this.departmentChartData=null;return}this.departmentChartData={labels:i.map(r=>r.departmentName),datasets:[{data:i.map(r=>r.employeeCount),backgroundColor:["#FF6384","#36A2EB","#FFCE56","#4BC0C0","#9966FF","#FF9F40","#FF6384","#C9CBCF"]}]}}preparePositionChart(i){if(!i||i.length===0){this.positionChartData=null;return}this.positionChartData={labels:i.map(r=>r.positionTitle),datasets:[{label:"Employees",data:i.map(r=>r.employeeCount),backgroundColor:"#36A2EB"}]}}prepareGenderChart(i){if(!i){this.genderChartData=null;return}this.genderChartData={labels:["Male","Female"],datasets:[{data:[i.male,i.female],backgroundColor:["#36A2EB","#FF6384"]}]}}prepareSalaryChart(i){if(!i||i.length===0){this.salaryChartData=null;return}this.salaryChartData={labels:i.map(r=>r.rangeName),datasets:[{label:"Employees",data:i.map(r=>r.employeeCount),backgroundColor:"#4BC0C0"}]}}navigateToAddEmployee(){this.router.navigate(["/employees/create"])}navigateToAddDepartment(){this.router.navigate(["/departments/create"])}navigateToAddPosition(){this.router.navigate(["/positions/create"])}navigateToEmployees(){this.router.navigate(["/employees"])}navigateToEmployee(i){this.router.navigate(["/employees",i])}showMessage(i){this.snackBar.open(i,"Close",{duration:3e3,horizontalPosition:"end",verticalPosition:"top"})}};n.\u0275fac=function(r){return new(r||n)},n.\u0275cmp=E({type:n,selectors:[["app-dashboard"]],decls:4,vars:3,consts:[["class","loading-spinner",4,"ngIf"],["class","dashboard-container",4,"ngIf"],["class","error-state",4,"ngIf"],[1,"loading-spinner"],[1,"dashboard-container"],[1,"metrics-row"],[1,"metric-card"],[1,"metric-icon"],[1,"metric-value"],[1,"metric-label"],[1,"secondary-metrics-row"],[1,"metric-card","secondary"],[1,"metric-icon","secondary"],[1,"charts-row"],[1,"chart-card"],["class","chart-container",4,"ngIf"],["class","no-data",4,"ngIf"],[1,"activity-row"],["mat-button","","color","primary",3,"click"],[4,"ngIf"],["class","actions-row",4,"appHasRole"],[1,"chart-container"],["baseChart","","type","pie",3,"data","options"],[1,"no-data"],["baseChart","","type","bar",3,"data","options"],["baseChart","","type","doughnut",3,"data","options"],["class","clickable-item",3,"click",4,"ngFor","ngForOf"],[1,"clickable-item",3,"click"],["matListItemIcon",""],["matListItemTitle",""],["matListItemLine",""],["matListItemMeta",""],[1,"actions-row"],[1,"action-buttons"],["mat-raised-button","","color","primary",3,"click"],["mat-raised-button","","color","accent",3,"click",4,"appHasRole"],["mat-raised-button","","color","accent",3,"click"],[1,"error-state"]],template:function(r,o){r&1&&(M(0,"page-header"),A(1,h_e,2,0,"div",0)(2,k_e,101,23,"div",1)(3,T_e,12,0,"div",2)),r&2&&(g(),v("ngIf",o.loading),g(),v("ngIf",!o.loading&&o.metrics),g(),v("ngIf",!o.loading&&!o.metrics))},dependencies:[Je,Un,Bt,It,kt,Tt,Rt,Ot,Ge,Ze,Fe,_t,Zt,Kt,fa,Xs,pa,y_,Fu,Hl,FI,wi,ez,Lt,Xn,yl,$a],styles:[".loading-spinner[_ngcontent-%COMP%]{display:flex;justify-content:center;align-items:center;min-height:400px}.dashboard-container[_ngcontent-%COMP%]{padding:16px;max-width:1400px;margin:0 auto}.metrics-row[_ngcontent-%COMP%], .secondary-metrics-row[_ngcontent-%COMP%]{display:grid;grid-template-columns:repeat(auto-fit,minmax(200px,1fr));gap:16px;margin-bottom:24px}@media (max-width: 768px){.metrics-row[_ngcontent-%COMP%], .secondary-metrics-row[_ngcontent-%COMP%]{grid-template-columns:repeat(2,1fr)}}@media (max-width: 480px){.metrics-row[_ngcontent-%COMP%], .secondary-metrics-row[_ngcontent-%COMP%]{grid-template-columns:1fr}}.secondary-metrics-row[_ngcontent-%COMP%]{grid-template-columns:repeat(auto-fit,minmax(250px,1fr))}.metric-card[_ngcontent-%COMP%] mat-card-content[_ngcontent-%COMP%]{padding:24px!important;text-align:center}.metric-card[_ngcontent-%COMP%] .metric-icon[_ngcontent-%COMP%]{display:inline-flex;align-items:center;justify-content:center;width:64px;height:64px;border-radius:50%;background-color:#3f51b51a;margin-bottom:16px}.metric-card[_ngcontent-%COMP%] .metric-icon[_ngcontent-%COMP%] mat-icon[_ngcontent-%COMP%]{font-size:32px;width:32px;height:32px;color:#3f51b5}.metric-card[_ngcontent-%COMP%] .metric-icon.secondary[_ngcontent-%COMP%]{background-color:#ff98001a}.metric-card[_ngcontent-%COMP%] .metric-icon.secondary[_ngcontent-%COMP%] mat-icon[_ngcontent-%COMP%]{color:#ff9800}.metric-card[_ngcontent-%COMP%] .metric-value[_ngcontent-%COMP%]{font-size:32px;font-weight:600;color:#000000de;margin-bottom:8px;line-height:1.2}.metric-card[_ngcontent-%COMP%] .metric-label[_ngcontent-%COMP%]{font-size:14px;color:#0009;text-transform:uppercase;letter-spacing:.5px}.metric-card[_ngcontent-%COMP%]:hover{box-shadow:0 4px 8px #00000026;transition:box-shadow .3s ease}.charts-row[_ngcontent-%COMP%]{display:grid;grid-template-columns:repeat(auto-fit,minmax(400px,1fr));gap:24px;margin-bottom:24px}@media (max-width: 900px){.charts-row[_ngcontent-%COMP%]{grid-template-columns:1fr}}.chart-card[_ngcontent-%COMP%] mat-card-header[_ngcontent-%COMP%]{padding:16px 16px 0;margin-bottom:16px}.chart-card[_ngcontent-%COMP%] mat-card-header[_ngcontent-%COMP%] mat-card-title[_ngcontent-%COMP%]{font-size:18px;font-weight:500;margin:0}.chart-card[_ngcontent-%COMP%] mat-card-content[_ngcontent-%COMP%]{padding:0 16px 16px}.chart-card[_ngcontent-%COMP%] .chart-container[_ngcontent-%COMP%]{position:relative;height:300px;width:100%}.chart-card[_ngcontent-%COMP%] .no-data[_ngcontent-%COMP%]{display:flex;flex-direction:column;align-items:center;justify-content:center;min-height:300px;color:#00000061}.chart-card[_ngcontent-%COMP%] .no-data[_ngcontent-%COMP%] mat-icon[_ngcontent-%COMP%]{font-size:48px;width:48px;height:48px;margin-bottom:12px}.chart-card[_ngcontent-%COMP%] .no-data[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{margin:0;font-size:14px}.activity-row[_ngcontent-%COMP%]{margin-bottom:24px}.activity-row[_ngcontent-%COMP%] mat-card-header[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:space-between;padding:16px;border-bottom:1px solid rgba(0,0,0,.12)}.activity-row[_ngcontent-%COMP%] mat-card-header[_ngcontent-%COMP%] mat-card-title[_ngcontent-%COMP%]{font-size:18px;font-weight:500;margin:0}.activity-row[_ngcontent-%COMP%] mat-card-header[_ngcontent-%COMP%] button[_ngcontent-%COMP%] mat-icon[_ngcontent-%COMP%]{margin-left:4px;font-size:18px;width:18px;height:18px}.activity-row[_ngcontent-%COMP%] mat-card-content[_ngcontent-%COMP%]{padding:0}.activity-row[_ngcontent-%COMP%] mat-list[_ngcontent-%COMP%]{padding:0}.activity-row[_ngcontent-%COMP%] mat-list-item[_ngcontent-%COMP%]{height:auto;padding:12px 16px;cursor:pointer;transition:background-color .2s ease}.activity-row[_ngcontent-%COMP%] mat-list-item[_ngcontent-%COMP%]:hover{background-color:#0000000a}.activity-row[_ngcontent-%COMP%] mat-list-item[_ngcontent-%COMP%]:not(:last-child){border-bottom:1px solid rgba(0,0,0,.08)}.activity-row[_ngcontent-%COMP%] mat-list-item[_ngcontent-%COMP%] mat-icon[_ngcontent-%COMP%]{color:#0000008a}.activity-row[_ngcontent-%COMP%] .clickable-item[_ngcontent-%COMP%]{cursor:pointer}.activity-row[_ngcontent-%COMP%] .no-data[_ngcontent-%COMP%]{display:flex;flex-direction:column;align-items:center;justify-content:center;padding:48px 16px;color:#00000061}.activity-row[_ngcontent-%COMP%] .no-data[_ngcontent-%COMP%] mat-icon[_ngcontent-%COMP%]{font-size:48px;width:48px;height:48px;margin-bottom:12px}.activity-row[_ngcontent-%COMP%] .no-data[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{margin:0;font-size:14px}.actions-row[_ngcontent-%COMP%]{margin-bottom:24px}.actions-row[_ngcontent-%COMP%] mat-card-header[_ngcontent-%COMP%]{padding:16px;border-bottom:1px solid rgba(0,0,0,.12)}.actions-row[_ngcontent-%COMP%] mat-card-header[_ngcontent-%COMP%] mat-card-title[_ngcontent-%COMP%]{font-size:18px;font-weight:500;margin:0}.actions-row[_ngcontent-%COMP%] mat-card-content[_ngcontent-%COMP%]{padding:24px 16px}.actions-row[_ngcontent-%COMP%] .action-buttons[_ngcontent-%COMP%]{display:flex;gap:12px;flex-wrap:wrap}.actions-row[_ngcontent-%COMP%] .action-buttons[_ngcontent-%COMP%] button[_ngcontent-%COMP%] mat-icon[_ngcontent-%COMP%]{margin-right:8px}@media (max-width: 600px){.actions-row[_ngcontent-%COMP%] .action-buttons[_ngcontent-%COMP%]{flex-direction:column}.actions-row[_ngcontent-%COMP%] .action-buttons[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{width:100%}}.error-state[_ngcontent-%COMP%]{padding:16px}.error-state[_ngcontent-%COMP%] mat-card[_ngcontent-%COMP%]{max-width:600px;margin:0 auto}.error-state[_ngcontent-%COMP%] .no-data[_ngcontent-%COMP%]{display:flex;flex-direction:column;align-items:center;justify-content:center;padding:48px 16px;color:#0000008a}.error-state[_ngcontent-%COMP%] .no-data[_ngcontent-%COMP%] mat-icon[_ngcontent-%COMP%]{font-size:64px;width:64px;height:64px;margin-bottom:16px;color:#f44336}.error-state[_ngcontent-%COMP%] .no-data[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{margin:0 0 24px;font-size:16px}.error-state[_ngcontent-%COMP%] .no-data[_ngcontent-%COMP%] button[_ngcontent-%COMP%] mat-icon[_ngcontent-%COMP%]{margin-right:8px;font-size:20px;width:20px;height:20px}.ai-insights-card[_ngcontent-%COMP%]{margin:16px 16px 0}.ai-insights-card[_ngcontent-%COMP%] mat-card-avatar[_ngcontent-%COMP%]{background:none;color:#1976d2}.ai-insights-card[_ngcontent-%COMP%] .ai-insight-loading[_ngcontent-%COMP%]{display:flex;align-items:center;gap:12px;color:#0000008a;font-size:14px;padding:8px 0}.ai-insights-card[_ngcontent-%COMP%] .ai-insight-text[_ngcontent-%COMP%]{font-size:15px;line-height:1.6;color:#000000de;margin:0;padding:4px 0}.ai-insights-card[_ngcontent-%COMP%] .ai-insight-error[_ngcontent-%COMP%]{display:flex;align-items:center;gap:8px;font-size:14px;color:#b00020}.ai-insights-card[_ngcontent-%COMP%] .ai-insight-error[_ngcontent-%COMP%] mat-icon[_ngcontent-%COMP%]{font-size:18px;height:18px;width:18px}@media (max-width: 1200px){.dashboard-container[_ngcontent-%COMP%]{padding:12px}.charts-row[_ngcontent-%COMP%]{gap:16px}}@media (max-width: 768px){.metric-card[_ngcontent-%COMP%] mat-card-content[_ngcontent-%COMP%]{padding:16px!important}.metric-card[_ngcontent-%COMP%] .metric-icon[_ngcontent-%COMP%]{width:56px;height:56px}.metric-card[_ngcontent-%COMP%] .metric-icon[_ngcontent-%COMP%] mat-icon[_ngcontent-%COMP%]{font-size:28px;width:28px;height:28px}.metric-card[_ngcontent-%COMP%] .metric-value[_ngcontent-%COMP%]{font-size:28px}.metric-card[_ngcontent-%COMP%] .metric-label[_ngcontent-%COMP%]{font-size:12px}.chart-card[_ngcontent-%COMP%] .chart-container[_ngcontent-%COMP%]{height:250px}}@media (max-width: 480px){.dashboard-container[_ngcontent-%COMP%]{padding:8px}.metrics-row[_ngcontent-%COMP%], .secondary-metrics-row[_ngcontent-%COMP%], .charts-row[_ngcontent-%COMP%]{gap:12px;margin-bottom:16px}.metric-card[_ngcontent-%COMP%] .metric-value[_ngcontent-%COMP%]{font-size:24px}.chart-card[_ngcontent-%COMP%] .chart-container[_ngcontent-%COMP%]{height:200px}}"]});let t=n;return t})();var _6=(()=>{let n=class n{};n.\u0275fac=function(r){return new(r||n)},n.\u0275cmp=E({type:n,selectors:[["app-error-403"]],decls:1,vars:0,consts:[["code","403","title","Permission denied!","message","You do not have permission to access the requested data."]],template:function(r,o){r&1&&M(0,"error-code",0)},dependencies:[ap],encapsulation:2});let t=n;return t})();var b6=(()=>{let n=class n{};n.\u0275fac=function(r){return new(r||n)},n.\u0275cmp=E({type:n,selectors:[["app-error-404"]],decls:1,vars:0,consts:[["code","404","title","Page not found!","message","This is not the web page you are looking for."]],template:function(r,o){r&1&&M(0,"error-code",0)},dependencies:[ap],encapsulation:2});let t=n;return t})();var v6=(()=>{let n=class n{};n.\u0275fac=function(r){return new(r||n)},n.\u0275cmp=E({type:n,selectors:[["app-error-500"]],decls:1,vars:0,consts:[["code","500","title","Server went wrong!","message","Just kidding, looks like we have an internal issue, please try refreshing."]],template:function(r,o){r&1&&M(0,"error-code",0)},dependencies:[ap],encapsulation:2});let t=n;return t})();var I_e=t=>({value:t});function A_e(t,n){t&1&&(m(0,"mat-error")(1,"span"),f(2),me(3,"translate"),h()()),t&2&&(g(2),N(Re(3,1,"validation.required")))}function O_e(t,n){t&1&&(m(0,"mat-error")(1,"span"),f(2),me(3,"translate"),h()()),t&2&&(g(2),N(Re(3,1,"validation.required")))}function R_e(t,n){t&1&&(m(0,"mat-error")(1,"span"),f(2),me(3,"translate"),h()()),t&2&&(g(2),N(Re(3,1,"validation.required")))}function P_e(t,n){t&1&&(m(0,"mat-error",8),me(1,"translate"),m(2,"span"),f(3),h()()),t&2&&(v("translateParams",Wt(4,I_e,Re(1,2,"login.password"))),g(3),N("validation.inconsistent"))}var y6=(()=>{let n=class n{constructor(){this.fb=u(co),this.registerForm=this.fb.nonNullable.group({username:["",[Ve.required]],password:["",[Ve.required]],confirmPassword:["",[Ve.required]]},{validators:[this.matchValidator("password","confirmPassword")]})}matchValidator(i,r){return o=>{let a=o.get(i),s=o.get(r);return s.errors&&!s.errors.mismatch?null:a.value!==s.value?(s.setErrors({mismatch:!0}),{mismatch:!0}):(s.setErrors(null),null)}}};n.\u0275fac=function(r){return new(r||n)},n.\u0275cmp=E({type:n,selectors:[["app-register"]],decls:43,vars:32,consts:[[1,"d-flex","w-full","h-full"],[1,"m-auto",2,"max-width","380px"],[1,"m-b-24"],[1,"form-field-full",3,"formGroup"],["appearance","outline"],["matInput","","formControlName","username","required",""],["matInput","","type","password","formControlName","password","required",""],["matInput","","type","password","formControlName","confirmPassword","required",""],["translate","",3,"translateParams"],["matButton","filled",1,"w-full","m-y-16"],["routerLink","/auth/login"]],template:function(r,o){if(r&1&&(m(0,"div",0)(1,"mat-card",1)(2,"mat-card-header",2)(3,"mat-card-title"),f(4),me(5,"translate"),M(6,"br"),f(7),me(8,"translate"),h()(),m(9,"mat-card-content")(10,"form",3)(11,"mat-form-field",4)(12,"mat-label"),f(13),me(14,"translate"),h(),M(15,"input",5),V(16,A_e,4,3,"mat-error"),h(),m(17,"mat-form-field",4)(18,"mat-label"),f(19),me(20,"translate"),h(),M(21,"input",6),V(22,O_e,4,3,"mat-error"),h(),m(23,"mat-form-field",4)(24,"mat-label"),f(25),me(26,"translate"),h(),M(27,"input",7),V(28,R_e,4,3,"mat-error"),V(29,P_e,4,6,"mat-error",8),h(),m(30,"mat-checkbox"),f(31),me(32,"translate"),h(),m(33,"button",9),f(34),me(35,"translate"),h(),m(36,"div")(37,"span"),f(38),me(39,"translate"),h(),m(40,"a",10),f(41),me(42,"translate"),h()()()()()()),r&2){let a,s,l,c;g(4),fe(" ",Re(5,14,"register_welcome"),", "),g(3),fe(" ",Re(8,16,"register_title")," "),g(3),v("formGroup",o.registerForm),g(3),N(Re(14,18,"username")),g(3),B((a=o.registerForm.get("username"))!=null&&a.invalid?16:-1),g(3),N(Re(20,20,"password")),g(3),B((s=o.registerForm.get("password"))!=null&&s.invalid?22:-1),g(3),N(Re(26,22,"confirm_password")),g(3),B((l=o.registerForm.get("confirmPassword"))!=null&&l.hasError("required")?28:-1),g(),B((c=o.registerForm.get("confirmPassword"))!=null&&c.hasError("mismatch")?29:-1),g(2),N(Re(32,24,"read_and_agree")),g(3),N(Re(35,26,"register")),g(4),fe("",Re(39,28,"have_an_account"),"?"),g(3),N(Re(42,30,"login"))}},dependencies:[Wn,Qr,lo,di,Pt,so,Fo,Zn,nn,Yr,Fe,_t,It,kt,Tt,Rt,Ot,kx,ts,ai,Xt,gi,Ao,Bi,Ci,Rr,Y3,Or],encapsulation:2});let t=n;return t})();var x6=(()=>{let n=class n{constructor(){this.authService=u(Ht),this.router=u(Ae)}ngOnInit(){return yn(this,null,function*(){try{(yield this.authService.initAuth())?this.router.navigate(["/dashboard"]):(console.warn("Authentication callback failed, redirecting to dashboard as guest"),this.router.navigate(["/dashboard"]))}catch(i){console.error("Error processing callback:",i),this.router.navigate(["/dashboard"])}})}};n.\u0275fac=function(r){return new(r||n)},n.\u0275cmp=E({type:n,selectors:[["app-callback"]],decls:5,vars:0,consts:[[1,"callback-container"]],template:function(r,o){r&1&&(gt(0,"div",0)(1,"h2"),f(2,"Processing login..."),yt(),gt(3,"p"),f(4,"Please wait while we complete your authentication."),yt()())},styles:[".callback-container[_ngcontent-%COMP%]{display:flex;flex-direction:column;align-items:center;justify-content:center;height:100vh;text-align:center}"]});let t=n;return t})();var F_e=[[["caption"]],[["colgroup"],["col"]],"*"],N_e=["caption","colgroup, col","*"];function L_e(t,n){t&1&&ne(0,2)}function V_e(t,n){t&1&&(m(0,"thead",0),qe(1,1),h(),m(2,"tbody",0),qe(3,2)(4,3),h(),m(5,"tfoot",0),qe(6,4),h())}function B_e(t,n){t&1&&qe(0,1)(1,2)(2,3)(3,4)}var rs=new O("CDK_TABLE");var bw=(()=>{class t{template=u(te);constructor(){}static \u0275fac=function(i){return new(i||t)};static \u0275dir=P({type:t,selectors:[["","cdkCellDef",""]]})}return t})(),vw=(()=>{class t{template=u(te);constructor(){}static \u0275fac=function(i){return new(i||t)};static \u0275dir=P({type:t,selectors:[["","cdkHeaderCellDef",""]]})}return t})(),D6=(()=>{class t{template=u(te);constructor(){}static \u0275fac=function(i){return new(i||t)};static \u0275dir=P({type:t,selectors:[["","cdkFooterCellDef",""]]})}return t})(),mp=(()=>{class t{_table=u(rs,{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(i){return new(i||t)};static \u0275dir=P({type:t,selectors:[["","cdkColumnDef",""]],contentQueries:function(i,r,o){if(i&1&&(xe(o,bw,5),xe(o,vw,5),xe(o,D6,5)),i&2){let a;j(a=H())&&(r.cell=a.first),j(a=H())&&(r.headerCell=a.first),j(a=H())&&(r.footerCell=a.first)}},inputs:{name:[0,"cdkColumnDef","name"],sticky:[2,"sticky","sticky",L],stickyEnd:[2,"stickyEnd","stickyEnd",L]},features:[Ce([{provide:"MAT_SORT_HEADER_COLUMN_DEF",useExisting:t}])]})}return t})(),gw=class{constructor(n,e){e.nativeElement.classList.add(...n._columnCssClassName)}},M6=(()=>{class t extends gw{constructor(){super(u(mp),u(Y))}static \u0275fac=function(i){return new(i||t)};static \u0275dir=P({type:t,selectors:[["cdk-header-cell"],["th","cdk-header-cell",""]],hostAttrs:["role","columnheader",1,"cdk-header-cell"],features:[le]})}return t})();var E6=(()=>{class t extends gw{constructor(){let e=u(mp),i=u(Y);super(e,i);let r=e._table?._getCellRole();r&&i.nativeElement.setAttribute("role",r)}static \u0275fac=function(i){return new(i||t)};static \u0275dir=P({type:t,selectors:[["cdk-cell"],["td","cdk-cell",""]],hostAttrs:[1,"cdk-cell"],features:[le]})}return t})();var qI=(()=>{class t{template=u(te);_differs=u(Es);columns;_columnsDiffer;constructor(){}ngOnChanges(e){if(!this._columnsDiffer){let i=e.columns&&e.columns.currentValue||[];this._columnsDiffer=this._differs.find(i).create(),this._columnsDiffer.diff(i)}}getColumnsDiff(){return this._columnsDiffer.diff(this.columns)}extractCellTemplate(e){return this instanceof D_?e.headerCell.template:this instanceof YI?e.footerCell.template:e.cell.template}static \u0275fac=function(i){return new(i||t)};static \u0275dir=P({type:t,features:[Oe]})}return t})(),D_=(()=>{class t extends qI{_table=u(rs,{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(u(te),u(Es))}ngOnChanges(e){super.ngOnChanges(e)}hasStickyChanged(){let e=this._hasStickyChanged;return this.resetStickyChanged(),e}resetStickyChanged(){this._hasStickyChanged=!1}static \u0275fac=function(i){return new(i||t)};static \u0275dir=P({type:t,selectors:[["","cdkHeaderRowDef",""]],inputs:{columns:[0,"cdkHeaderRowDef","columns"],sticky:[2,"cdkHeaderRowDefSticky","sticky",L]},features:[le,Oe]})}return t})(),YI=(()=>{class t extends qI{_table=u(rs,{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(u(te),u(Es))}ngOnChanges(e){super.ngOnChanges(e)}hasStickyChanged(){let e=this._hasStickyChanged;return this.resetStickyChanged(),e}resetStickyChanged(){this._hasStickyChanged=!1}static \u0275fac=function(i){return new(i||t)};static \u0275dir=P({type:t,selectors:[["","cdkFooterRowDef",""]],inputs:{columns:[0,"cdkFooterRowDef","columns"],sticky:[2,"cdkFooterRowDefSticky","sticky",L]},features:[le,Oe]})}return t})(),yw=(()=>{class t extends qI{_table=u(rs,{optional:!0});when;constructor(){super(u(te),u(Es))}static \u0275fac=function(i){return new(i||t)};static \u0275dir=P({type:t,selectors:[["","cdkRowDef",""]],inputs:{columns:[0,"cdkRowDefColumns","columns"],when:[0,"cdkRowDefWhen","when"]},features:[le]})}return t})(),Nu=(()=>{class t{_viewContainer=u(st);cells;context;static mostRecentCellOutlet=null;constructor(){t.mostRecentCellOutlet=this}ngOnDestroy(){t.mostRecentCellOutlet===this&&(t.mostRecentCellOutlet=null)}static \u0275fac=function(i){return new(i||t)};static \u0275dir=P({type:t,selectors:[["","cdkCellOutlet",""]]})}return t})(),QI=(()=>{class t{static \u0275fac=function(i){return new(i||t)};static \u0275cmp=E({type:t,selectors:[["cdk-header-row"],["tr","cdk-header-row",""]],hostAttrs:["role","row",1,"cdk-header-row"],decls:1,vars:0,consts:[["cdkCellOutlet",""]],template:function(i,r){i&1&&qe(0,0)},dependencies:[Nu],encapsulation:2})}return t})();var KI=(()=>{class t{static \u0275fac=function(i){return new(i||t)};static \u0275cmp=E({type:t,selectors:[["cdk-row"],["tr","cdk-row",""]],hostAttrs:["role","row",1,"cdk-row"],decls:1,vars:0,consts:[["cdkCellOutlet",""]],template:function(i,r){i&1&&qe(0,0)},dependencies:[Nu],encapsulation:2})}return t})(),xw=(()=>{class t{templateRef=u(te);_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(i){return new(i||t)};static \u0275dir=P({type:t,selectors:[["ng-template","cdkNoDataRow",""]]})}return t})(),C6=["top","bottom","left","right"],GI=class{_isNativeHtmlTable;_stickCellCss;_isBrowser;_needsPositionStickyOnElement;direction;_positionListener;_tableInjector;_elemSizeCache=new WeakMap;_resizeObserver=globalThis?.ResizeObserver?new globalThis.ResizeObserver(n=>this._updateCachedSizes(n)):null;_updatedStickyColumnsParamsToReplay=[];_stickyColumnsReplayTimeout=null;_cachedCellWidths=[];_borderCellCss;_destroyed=!1;constructor(n,e,i=!0,r=!0,o,a,s){this._isNativeHtmlTable=n,this._stickCellCss=e,this._isBrowser=i,this._needsPositionStickyOnElement=r,this.direction=o,this._positionListener=a,this._tableInjector=s,this._borderCellCss={top:`${e}-border-elem-top`,bottom:`${e}-border-elem-bottom`,left:`${e}-border-elem-left`,right:`${e}-border-elem-right`}}clearStickyPositioning(n,e){(e.includes("left")||e.includes("right"))&&this._removeFromStickyColumnReplayQueue(n);let i=[];for(let r of n)r.nodeType===r.ELEMENT_NODE&&i.push(r,...Array.from(r.children));vt({write:()=>{for(let r of i)this._removeStickyStyle(r,e)}},{injector:this._tableInjector})}updateStickyColumns(n,e,i,r=!0,o=!0){if(!n.length||!this._isBrowser||!(e.some(C=>C)||i.some(C=>C))){this._positionListener?.stickyColumnsUpdated({sizes:[]}),this._positionListener?.stickyEndColumnsUpdated({sizes:[]});return}let a=n[0],s=a.children.length,l=this.direction==="rtl",c=l?"right":"left",d=l?"left":"right",p=e.lastIndexOf(!0),_=i.indexOf(!0),b,y,w;o&&this._updateStickyColumnReplayQueue({rows:[...n],stickyStartStates:[...e],stickyEndStates:[...i]}),vt({earlyRead:()=>{b=this._getCellWidths(a,r),y=this._getStickyStartColumnPositions(b,e),w=this._getStickyEndColumnPositions(b,i)},write:()=>{for(let C of n)for(let D=0;D!!C)&&(this._positionListener.stickyColumnsUpdated({sizes:p===-1?[]:b.slice(0,p+1).map((C,D)=>e[D]?C:null)}),this._positionListener.stickyEndColumnsUpdated({sizes:_===-1?[]:b.slice(_).map((C,D)=>i[D+_]?C:null).reverse()}))}},{injector:this._tableInjector})}stickRows(n,e,i){if(!this._isBrowser)return;let r=i==="bottom"?n.slice().reverse():n,o=i==="bottom"?e.slice().reverse():e,a=[],s=[],l=[];vt({earlyRead:()=>{for(let c=0,d=0;c{let c=o.lastIndexOf(!0);for(let d=0;d{let i=n.querySelector("tfoot");i&&(e.some(r=>!r)?this._removeStickyStyle(i,["bottom"]):this._addStickyStyle(i,"bottom",0,!1))}},{injector:this._tableInjector})}destroy(){this._stickyColumnsReplayTimeout&&clearTimeout(this._stickyColumnsReplayTimeout),this._resizeObserver?.disconnect(),this._destroyed=!0}_removeStickyStyle(n,e){if(!n.classList.contains(this._stickCellCss))return;for(let r of e)n.style[r]="",n.classList.remove(this._borderCellCss[r]);C6.some(r=>e.indexOf(r)===-1&&n.style[r])?n.style.zIndex=this._getCalculatedZIndex(n):(n.style.zIndex="",this._needsPositionStickyOnElement&&(n.style.position=""),n.classList.remove(this._stickCellCss))}_addStickyStyle(n,e,i,r){n.classList.add(this._stickCellCss),r&&n.classList.add(this._borderCellCss[e]),n.style[e]=`${i}px`,n.style.zIndex=this._getCalculatedZIndex(n),this._needsPositionStickyOnElement&&(n.style.cssText+="position: -webkit-sticky; position: sticky; ")}_getCalculatedZIndex(n){let e={top:100,bottom:10,left:1,right:1},i=0;for(let r of C6)n.style[r]&&(i+=e[r]);return i?`${i}`:""}_getCellWidths(n,e=!0){if(!e&&this._cachedCellWidths.length)return this._cachedCellWidths;let i=[],r=n.children;for(let o=0;o0;o--)e[o]&&(i[o]=r,r+=n[o]);return i}_retrieveElementSize(n){let e=this._elemSizeCache.get(n);if(e)return e;let i=n.getBoundingClientRect(),r={width:i.width,height:i.height};return this._resizeObserver&&(this._elemSizeCache.set(n,r),this._resizeObserver.observe(n,{box:"border-box"})),r}_updateStickyColumnReplayQueue(n){this._removeFromStickyColumnReplayQueue(n.rows),this._stickyColumnsReplayTimeout||this._updatedStickyColumnsParamsToReplay.push(n)}_removeFromStickyColumnReplayQueue(n){let e=new Set(n);for(let i of this._updatedStickyColumnsParamsToReplay)i.rows=i.rows.filter(r=>!e.has(r));this._updatedStickyColumnsParamsToReplay=this._updatedStickyColumnsParamsToReplay.filter(i=>!!i.rows.length)}_updateCachedSizes(n){let e=!1;for(let i of n){let r=i.borderBoxSize?.length?{width:i.borderBoxSize[0].inlineSize,height:i.borderBoxSize[0].blockSize}:{width:i.contentRect.width,height:i.contentRect.height};r.width!==this._elemSizeCache.get(i.target)?.width&&j_e(i.target)&&(e=!0),this._elemSizeCache.set(i.target,r)}e&&this._updatedStickyColumnsParamsToReplay.length&&(this._stickyColumnsReplayTimeout&&clearTimeout(this._stickyColumnsReplayTimeout),this._stickyColumnsReplayTimeout=setTimeout(()=>{if(!this._destroyed){for(let i of this._updatedStickyColumnsParamsToReplay)this.updateStickyColumns(i.rows,i.stickyStartStates,i.stickyEndStates,!0,!1);this._updatedStickyColumnsParamsToReplay=[],this._stickyColumnsReplayTimeout=null}},0))}};function j_e(t){return["cdk-cell","cdk-header-cell","cdk-footer-cell"].some(n=>t.classList.contains(n))}var _w=new O("CDK_SPL");var ZI=(()=>{class t{viewContainer=u(st);elementRef=u(Y);constructor(){let e=u(rs);e._rowOutlet=this,e._outletAssigned()}static \u0275fac=function(i){return new(i||t)};static \u0275dir=P({type:t,selectors:[["","rowOutlet",""]]})}return t})(),XI=(()=>{class t{viewContainer=u(st);elementRef=u(Y);constructor(){let e=u(rs);e._headerRowOutlet=this,e._outletAssigned()}static \u0275fac=function(i){return new(i||t)};static \u0275dir=P({type:t,selectors:[["","headerRowOutlet",""]]})}return t})(),JI=(()=>{class t{viewContainer=u(st);elementRef=u(Y);constructor(){let e=u(rs);e._footerRowOutlet=this,e._outletAssigned()}static \u0275fac=function(i){return new(i||t)};static \u0275dir=P({type:t,selectors:[["","footerRowOutlet",""]]})}return t})(),eA=(()=>{class t{viewContainer=u(st);elementRef=u(Y);constructor(){let e=u(rs);e._noDataRowOutlet=this,e._outletAssigned()}static \u0275fac=function(i){return new(i||t)};static \u0275dir=P({type:t,selectors:[["","noDataRowOutlet",""]]})}return t})(),tA=(()=>{class t{_differs=u(Es);_changeDetectorRef=u(ye);_elementRef=u(Y);_dir=u(Yt,{optional:!0});_platform=u(Ye);_viewRepeater=u(yh);_viewportRuler=u(sr);_stickyPositioningListener=u(_w,{optional:!0,skipSelf:!0});_document=u(_e);_data;_onDestroy=new z;_renderRows;_renderChangeSubscription;_columnDefsByName=new Map;_rowDefs;_headerRowDefs;_footerRowDefs;_dataDiffer;_defaultRowDef;_customColumnDefs=new Set;_customRowDefs=new Set;_customHeaderRowDefs=new Set;_customFooterRowDefs=new Set;_customNoDataRow;_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;_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)}_dataSource;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._fixedLayout}set fixedLayout(e){this._fixedLayout=e,this._forceRecalculateCellWidths=!0,this._stickyColumnStylesNeedReset=!0}_fixedLayout=!1;contentChanged=new U;viewChange=new rt({start:0,end:Number.MAX_VALUE});_rowOutlet;_headerRowOutlet;_footerRowOutlet;_noDataRowOutlet;_contentColumnDefs;_contentRowDefs;_contentHeaderRowDefs;_contentFooterRowDefs;_noDataRow;_injector=u(de);constructor(){u(new Li("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((i,r)=>this.trackBy?this.trackBy(r.dataIndex,r.data):r)}ngOnInit(){this._setupStickyStyler(),this._viewportRuler.change().pipe(we(this._onDestroy)).subscribe(()=>{this._forceRecalculateCellWidths=!0})}ngAfterContentInit(){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._onDestroy.next(),this._onDestroy.complete(),lg(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 i=this._rowOutlet.viewContainer;this._viewRepeater.applyChanges(e,i,(r,o,a)=>this._getEmbeddedViewArgs(r.item,a),r=>r.item.data,r=>{r.operation===Sc.INSERTED&&r.context&&this._renderCellTemplateForItem(r.record.item.rowDef,r.context)}),this._updateRowIndexContext(),e.forEachIdentityChange(r=>{let o=i.get(r.currentIndex);o.context.$implicit=r.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 r=w6(this._headerRowOutlet,"thead");r&&(r.style.display=e.length?"":"none")}let i=this._headerRowDefs.map(r=>r.sticky);this._stickyStyler.clearStickyPositioning(e,["top"]),this._stickyStyler.stickRows(e,i,"top"),this._headerRowDefs.forEach(r=>r.resetStickyChanged())}updateStickyFooterRowStyles(){let e=this._getRenderedRows(this._footerRowOutlet);if(this._isNativeHtmlTable){let r=w6(this._footerRowOutlet,"tfoot");r&&(r.style.display=e.length?"":"none")}let i=this._footerRowDefs.map(r=>r.sticky);this._stickyStyler.clearStickyPositioning(e,["bottom"]),this._stickyStyler.stickRows(e,i,"bottom"),this._stickyStyler.updateStickyFooterContainer(this._elementRef.nativeElement,i),this._footerRowDefs.forEach(r=>r.resetStickyChanged())}updateStickyColumnStyles(){let e=this._getRenderedRows(this._headerRowOutlet),i=this._getRenderedRows(this._rowOutlet),r=this._getRenderedRows(this._footerRowOutlet);(this._isNativeHtmlTable&&!this._fixedLayout||this._stickyColumnStylesNeedReset)&&(this._stickyStyler.clearStickyPositioning([...e,...i,...r],["left","right"]),this._stickyColumnStylesNeedReset=!1),e.forEach((o,a)=>{this._addStickyColumnStyles([o],this._headerRowDefs[a])}),this._rowDefs.forEach(o=>{let a=[];for(let s=0;s{this._addStickyColumnStyles([o],this._footerRowDefs[a])}),Array.from(this._columnDefsByName.values()).forEach(o=>o.resetStickyChanged())}_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 i=this._renderUpdatedColumns()||this._headerRowDefChanged||this._footerRowDefChanged;this._stickyColumnStylesNeedReset=this._stickyColumnStylesNeedReset||i,this._forceRecalculateCellWidths=i,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(){let e=[],i=this._cachedRenderRowsMap;if(this._cachedRenderRowsMap=new Map,!this._data)return e;for(let r=0;r{let s=r&&r.has(a)?r.get(a):[];if(s.length){let l=s.shift();return l.dataIndex=i,l}else return{data:e,rowDef:a,dataIndex:i}})}_cacheColumnDefs(){this._columnDefsByName.clear(),fw(this._getOwnDefs(this._contentColumnDefs),this._customColumnDefs).forEach(i=>{this._columnDefsByName.has(i.name),this._columnDefsByName.set(i.name,i)})}_cacheRowDefs(){this._headerRowDefs=fw(this._getOwnDefs(this._contentHeaderRowDefs),this._customHeaderRowDefs),this._footerRowDefs=fw(this._getOwnDefs(this._contentFooterRowDefs),this._customFooterRowDefs),this._rowDefs=fw(this._getOwnDefs(this._contentRowDefs),this._customRowDefs);let e=this._rowDefs.filter(i=>!i.when);!this.multiTemplateDataRows&&e.length>1,this._defaultRowDef=e[0]}_renderUpdatedColumns(){let e=(a,s)=>{let l=!!s.getColumnsDiff();return a||l},i=this._rowDefs.reduce(e,!1);i&&this._forceRenderDataRows();let r=this._headerRowDefs.reduce(e,!1);r&&this._forceRenderHeaderRows();let o=this._footerRowDefs.reduce(e,!1);return o&&this._forceRenderFooterRows(),i||r||o}_switchDataSource(e){this._data=[],lg(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;lg(this.dataSource)?e=this.dataSource.connect(this):qi(this.dataSource)?e=this.dataSource:Array.isArray(this.dataSource)&&(e=Q(this.dataSource)),this._renderChangeSubscription=e.pipe(we(this._onDestroy)).subscribe(i=>{this._data=i||[],this.renderRows()})}_forceRenderHeaderRows(){this._headerRowOutlet.viewContainer.length>0&&this._headerRowOutlet.viewContainer.clear(),this._headerRowDefs.forEach((e,i)=>this._renderRow(this._headerRowOutlet,e,i)),this.updateStickyHeaderRowStyles()}_forceRenderFooterRows(){this._footerRowOutlet.viewContainer.length>0&&this._footerRowOutlet.viewContainer.clear(),this._footerRowDefs.forEach((e,i)=>this._renderRow(this._footerRowOutlet,e,i)),this.updateStickyFooterRowStyles()}_addStickyColumnStyles(e,i){let r=Array.from(i?.columns||[]).map(s=>{let l=this._columnDefsByName.get(s);return l}),o=r.map(s=>s.sticky),a=r.map(s=>s.stickyEnd);this._stickyStyler.updateStickyColumns(e,o,a,!this._fixedLayout||this._forceRecalculateCellWidths)}_getRenderedRows(e){let i=[];for(let r=0;r!o.when||o.when(i,e));else{let o=this._rowDefs.find(a=>a.when&&a.when(i,e))||this._defaultRowDef;o&&r.push(o)}return r.length,r}_getEmbeddedViewArgs(e,i){let r=e.rowDef,o={$implicit:e.data};return{templateRef:r.template,context:o,index:i}}_renderRow(e,i,r,o={}){let a=e.viewContainer.createEmbeddedView(i.template,o,r);return this._renderCellTemplateForItem(i,o),a}_renderCellTemplateForItem(e,i){for(let r of this._getCellTemplates(e))Nu.mostRecentCellOutlet&&Nu.mostRecentCellOutlet._viewContainer.createEmbeddedView(r,i);this._changeDetectorRef.markForCheck()}_updateRowIndexContext(){let e=this._rowOutlet.viewContainer;for(let i=0,r=e.length;i{let r=this._columnDefsByName.get(i);return e.extractCellTemplate(r)})}_forceRenderDataRows(){this._dataDiffer.diff([]),this._rowOutlet.viewContainer.clear(),this.renderRows()}_checkStickyStates(){let e=(i,r)=>i||r.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";this._stickyStyler=new GI(this._isNativeHtmlTable,this.stickyCssClass,this._platform.isBrowser,this.needsPositionStickyOnElement,e,this._stickyPositioningListener,this._injector),(this._dir?this._dir.change:Q()).pipe(we(this._onDestroy)).subscribe(i=>{this._stickyStyler.direction=i,this.updateStickyColumnStyles()})}_getOwnDefs(e){return e.filter(i=>!i._table||i._table===this)}_updateNoDataRow(){let e=this._customNoDataRow||this._noDataRow;if(!e)return;let i=this._rowOutlet.viewContainer.length===0;if(i===this._isShowingNoDataRow)return;let r=this._noDataRowOutlet.viewContainer;if(i){let o=r.createEmbeddedView(e.templateRef),a=o.rootNodes[0];if(o.rootNodes.length===1&&a?.nodeType===this._document.ELEMENT_NODE){a.setAttribute("role","row"),a.classList.add(...e._contentClassNames);let s=a.querySelectorAll(e._cellSelector);for(let l=0;l{class t{static \u0275fac=function(i){return new(i||t)};static \u0275mod=ee({type:t});static \u0275inj=J({imports:[cg]})}return t})();var H_e=[[["caption"]],[["colgroup"],["col"]],"*"],z_e=["caption","colgroup, col","*"];function U_e(t,n){t&1&&ne(0,2)}function $_e(t,n){t&1&&(m(0,"thead",0),qe(1,1),h(),m(2,"tbody",2),qe(3,3)(4,4),h(),m(5,"tfoot",0),qe(6,5),h())}function W_e(t,n){t&1&&qe(0,1)(1,3)(2,4)(3,5)}var _a=(()=>{class t extends tA{stickyCssClass="mat-mdc-table-sticky";needsPositionStickyOnElement=!1;static \u0275fac=(()=>{let e;return function(r){return(e||(e=ge(t)))(r||t)}})();static \u0275cmp=E({type:t,selectors:[["mat-table"],["table","mat-table",""]],hostAttrs:[1,"mat-mdc-table","mdc-data-table__table"],hostVars:2,hostBindings:function(i,r){i&2&&G("mdc-table-fixed-layout",r.fixedLayout)},exportAs:["matTable"],features:[Ce([{provide:tA,useExisting:t},{provide:rs,useExisting:t},{provide:yh,useClass:pu},{provide:_w,useValue:null}]),le],ngContentSelectors:z_e,decls:5,vars:2,consts:[["role","rowgroup"],["headerRowOutlet",""],["role","rowgroup",1,"mdc-data-table__content"],["rowOutlet",""],["noDataRowOutlet",""],["footerRowOutlet",""]],template:function(i,r){i&1&&(Ee(H_e),ne(0),ne(1,1),V(2,U_e,1,0),V(3,$_e,7,0)(4,W_e,4,0)),i&2&&(g(2),B(r._isServer?2:-1),g(),B(r._isNativeHtmlTable?3:4))},dependencies:[XI,ZI,eA,JI],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))}.mdc-data-table__cell{box-sizing:border-box;overflow:hidden;text-align:left;text-overflow:ellipsis}[dir=rtl] .mdc-data-table__cell{text-align:right}.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:left}[dir=rtl] .mat-mdc-header-cell{text-align:right}.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 t})(),ba=(()=>{class t extends bw{static \u0275fac=(()=>{let e;return function(r){return(e||(e=ge(t)))(r||t)}})();static \u0275dir=P({type:t,selectors:[["","matCellDef",""]],features:[Ce([{provide:bw,useExisting:t}]),le]})}return t})(),va=(()=>{class t extends vw{static \u0275fac=(()=>{let e;return function(r){return(e||(e=ge(t)))(r||t)}})();static \u0275dir=P({type:t,selectors:[["","matHeaderCellDef",""]],features:[Ce([{provide:vw,useExisting:t}]),le]})}return t})();var ya=(()=>{class t extends mp{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(r){return(e||(e=ge(t)))(r||t)}})();static \u0275dir=P({type:t,selectors:[["","matColumnDef",""]],inputs:{name:[0,"matColumnDef","name"]},features:[Ce([{provide:mp,useExisting:t},{provide:"MAT_SORT_HEADER_COLUMN_DEF",useExisting:t}]),le]})}return t})(),xa=(()=>{class t extends M6{static \u0275fac=(()=>{let e;return function(r){return(e||(e=ge(t)))(r||t)}})();static \u0275dir=P({type:t,selectors:[["mat-header-cell"],["th","mat-header-cell",""]],hostAttrs:["role","columnheader",1,"mat-mdc-header-cell","mdc-data-table__header-cell"],features:[le]})}return t})();var Ca=(()=>{class t extends E6{static \u0275fac=(()=>{let e;return function(r){return(e||(e=ge(t)))(r||t)}})();static \u0275dir=P({type:t,selectors:[["mat-cell"],["td","mat-cell",""]],hostAttrs:[1,"mat-mdc-cell","mdc-data-table__cell"],features:[le]})}return t})();var wa=(()=>{class t extends D_{static \u0275fac=(()=>{let e;return function(r){return(e||(e=ge(t)))(r||t)}})();static \u0275dir=P({type:t,selectors:[["","matHeaderRowDef",""]],inputs:{columns:[0,"matHeaderRowDef","columns"],sticky:[2,"matHeaderRowDefSticky","sticky",L]},features:[Ce([{provide:D_,useExisting:t}]),le]})}return t})();var Da=(()=>{class t extends yw{static \u0275fac=(()=>{let e;return function(r){return(e||(e=ge(t)))(r||t)}})();static \u0275dir=P({type:t,selectors:[["","matRowDef",""]],inputs:{columns:[0,"matRowDefColumns","columns"],when:[0,"matRowDefWhen","when"]},features:[Ce([{provide:yw,useExisting:t}]),le]})}return t})(),Ma=(()=>{class t extends QI{static \u0275fac=(()=>{let e;return function(r){return(e||(e=ge(t)))(r||t)}})();static \u0275cmp=E({type:t,selectors:[["mat-header-row"],["tr","mat-header-row",""]],hostAttrs:["role","row",1,"mat-mdc-header-row","mdc-data-table__header-row"],exportAs:["matHeaderRow"],features:[Ce([{provide:QI,useExisting:t}]),le],decls:1,vars:0,consts:[["cdkCellOutlet",""]],template:function(i,r){i&1&&qe(0,0)},dependencies:[Nu],encapsulation:2})}return t})();var Ea=(()=>{class t extends KI{static \u0275fac=(()=>{let e;return function(r){return(e||(e=ge(t)))(r||t)}})();static \u0275cmp=E({type:t,selectors:[["mat-row"],["tr","mat-row",""]],hostAttrs:["role","row",1,"mat-mdc-row","mdc-data-table__row"],exportAs:["matRow"],features:[Ce([{provide:KI,useExisting:t}]),le],decls:1,vars:0,consts:[["cdkCellOutlet",""]],template:function(i,r){i&1&&qe(0,0)},dependencies:[Nu],encapsulation:2})}return t})(),ww=(()=>{class t extends xw{_cellSelector="td, mat-cell, [mat-cell], .mat-cell";constructor(){super(),this._contentClassNames.push("mat-mdc-no-data-row","mat-mdc-row","mdc-data-table__row"),this._cellClassNames.push("mat-mdc-cell","mdc-data-table__cell","mat-no-data-cell")}static \u0275fac=function(i){return new(i||t)};static \u0275dir=P({type:t,selectors:[["ng-template","matNoDataRow",""]],features:[Ce([{provide:xw,useExisting:t}]),le]})}return t})();var Sa=(()=>{class t{static \u0275fac=function(i){return new(i||t)};static \u0275mod=ee({type:t});static \u0275inj=J({imports:[De,S6,De]})}return t})(),G_e=9007199254740991,Cw=class extends sg{_data;_renderData=new rt([]);_filter=new rt("");_internalPageChanges=new z;_renderChangesSubscription=null;filteredData;get data(){return this._data.value}set data(n){n=Array.isArray(n)?n:[],this._data.next(n),this._renderChangesSubscription||this._filterData(n)}get filter(){return this._filter.value}set filter(n){this._filter.next(n),this._renderChangesSubscription||this._filterData(this.data)}get sort(){return this._sort}set sort(n){this._sort=n,this._updateChangeSubscription()}_sort;get paginator(){return this._paginator}set paginator(n){this._paginator=n,this._updateChangeSubscription()}_paginator;sortingDataAccessor=(n,e)=>{let i=n[e];if(Hv(i)){let r=Number(i);return r{let i=e.active,r=e.direction;return!i||r==""?n:n.sort((o,a)=>{let s=this.sortingDataAccessor(o,i),l=this.sortingDataAccessor(a,i),c=typeof s,d=typeof l;c!==d&&(c==="number"&&(s+=""),d==="number"&&(l+=""));let p=0;return s!=null&&l!=null?s>l?p=1:s{let i=e.trim().toLowerCase();return Object.values(n).some(r=>`${r}`.toLowerCase().includes(i))};constructor(n=[]){super(),this._data=new rt(n),this._updateChangeSubscription()}_updateChangeSubscription(){let n=this._sort?it(this._sort.sortChange,this._sort.initialized):Q(null),e=this._paginator?it(this._paginator.page,this._internalPageChanges,this._paginator.initialized):Q(null),i=this._data,r=yo([i,this._filter]).pipe(se(([s])=>this._filterData(s))),o=yo([r,n]).pipe(se(([s])=>this._orderData(s))),a=yo([o,e]).pipe(se(([s])=>this._pageData(s)));this._renderChangesSubscription?.unsubscribe(),this._renderChangesSubscription=a.subscribe(s=>this._renderData.next(s))}_filterData(n){return this.filteredData=this.filter==null||this.filter===""?n:n.filter(e=>this.filterPredicate(e,this.filter)),this.paginator&&this._updatePaginator(this.filteredData.length),this.filteredData}_orderData(n){return this.sort?this.sortData(n.slice(),this.sort):n}_pageData(n){if(!this.paginator)return n;let e=this.paginator.pageIndex*this.paginator.pageSize;return n.slice(e,e+this.paginator.pageSize)}_updatePaginator(n){Promise.resolve().then(()=>{let e=this.paginator;if(e&&(e.length=n,e.pageIndex>0)){let i=Math.ceil(e.length/e.pageSize)-1||0,r=Math.min(e.pageIndex,i);r!==e.pageIndex&&(e.pageIndex=r,this._internalPageChanges.next())}})}connect(){return this._renderChangesSubscription||this._updateChangeSubscription(),this._renderData}disconnect(){this._renderChangesSubscription?.unsubscribe(),this._renderChangesSubscription=null}};var q_e=["panel"],Y_e=["*"];function Q_e(t,n){if(t&1&&(gt(0,"div",1,0),ne(2),yt()),t&2){let e=n.id,i=x();at(i._classList),G("mat-mdc-autocomplete-visible",i.showPanel)("mat-mdc-autocomplete-hidden",!i.showPanel)("mat-autocomplete-panel-animations-enabled",!i._animationsDisabled)("mat-primary",i._color==="primary")("mat-accent",i._color==="accent")("mat-warn",i._color==="warn"),pi("id",i.id),X("aria-label",i.ariaLabel||null)("aria-labelledby",i._getPanelAriaLabelledby(e))}}var iA=class{source;option;constructor(n,e){this.source=n,this.option=e}},k6=new O("mat-autocomplete-default-options",{providedIn:"root",factory:K_e});function K_e(){return{autoActiveFirstOption:!1,autoSelectActiveOption:!1,hideSingleSelectionIndicator:!1,requireSelection:!1,hasBackdrop:!1}}var Dw=(()=>{class t{_changeDetectorRef=u(ye);_elementRef=u(Y);_defaults=u(k6);_animationsDisabled=Qe();_activeOptionChanges=ke.EMPTY;_keyManager;showPanel=!1;get isOpen(){return this._isOpen&&this.showPanel}_isOpen=!1;_latestOpeningTrigger;_setColor(e){this._color=e,this._changeDetectorRef.markForCheck()}_color;template;panel;options;optionGroups;ariaLabel;ariaLabelledby;displayWith=null;autoActiveFirstOption;autoSelectActiveOption;requireSelection;panelWidth;disableRipple;optionSelected=new U;opened=new U;closed=new U;optionActivated=new U;set classList(e){this._classList=e,this._elementRef.nativeElement.className=""}_classList;get hideSingleSelectionIndicator(){return this._hideSingleSelectionIndicator}set hideSingleSelectionIndicator(e){this._hideSingleSelectionIndicator=e,this._syncParentProperties()}_hideSingleSelectionIndicator;_syncParentProperties(){if(this.options)for(let e of this.options)e._changeDetectorRef.markForCheck()}id=u(et).getId("mat-autocomplete-");inertGroups;constructor(){let e=u(Ye);this.inertGroups=e?.SAFARI||!1,this.autoActiveFirstOption=!!this._defaults.autoActiveFirstOption,this.autoSelectActiveOption=!!this._defaults.autoSelectActiveOption,this.requireSelection=!!this._defaults.requireSelection,this._hideSingleSelectionIndicator=this._defaults.hideSingleSelectionIndicator??!1}ngAfterContentInit(){this._keyManager=new tu(this.options).withWrap().skipPredicate(this._skipPredicate),this._activeOptionChanges=this._keyManager.change.subscribe(e=>{this.isOpen&&this.optionActivated.emit({source:this,option:this.options.toArray()[e]||null})}),this._setVisibility()}ngOnDestroy(){this._keyManager?.destroy(),this._activeOptionChanges.unsubscribe()}_setScrollTop(e){this.panel&&(this.panel.nativeElement.scrollTop=e)}_getScrollTop(){return this.panel?this.panel.nativeElement.scrollTop:0}_setVisibility(){this.showPanel=!!this.options?.length,this._changeDetectorRef.markForCheck()}_emitSelectEvent(e){let i=new iA(this,e);this.optionSelected.emit(i)}_getPanelAriaLabelledby(e){if(this.ariaLabel)return null;let i=e?e+" ":"";return this.ariaLabelledby?i+this.ariaLabelledby:e}_skipPredicate(){return!1}static \u0275fac=function(i){return new(i||t)};static \u0275cmp=E({type:t,selectors:[["mat-autocomplete"]],contentQueries:function(i,r,o){if(i&1&&(xe(o,Sn,5),xe(o,ou,5)),i&2){let a;j(a=H())&&(r.options=a),j(a=H())&&(r.optionGroups=a)}},viewQuery:function(i,r){if(i&1&&(ie(te,7),ie(q_e,5)),i&2){let o;j(o=H())&&(r.template=o.first),j(o=H())&&(r.panel=o.first)}},hostAttrs:[1,"mat-mdc-autocomplete"],inputs:{ariaLabel:[0,"aria-label","ariaLabel"],ariaLabelledby:[0,"aria-labelledby","ariaLabelledby"],displayWith:"displayWith",autoActiveFirstOption:[2,"autoActiveFirstOption","autoActiveFirstOption",L],autoSelectActiveOption:[2,"autoSelectActiveOption","autoSelectActiveOption",L],requireSelection:[2,"requireSelection","requireSelection",L],panelWidth:"panelWidth",disableRipple:[2,"disableRipple","disableRipple",L],classList:[0,"class","classList"],hideSingleSelectionIndicator:[2,"hideSingleSelectionIndicator","hideSingleSelectionIndicator",L]},outputs:{optionSelected:"optionSelected",opened:"opened",closed:"closed",optionActivated:"optionActivated"},exportAs:["matAutocomplete"],features:[Ce([{provide:ru,useExisting:t}])],ngContentSelectors:Y_e,decls:1,vars:0,consts:[["panel",""],["role","listbox",1,"mat-mdc-autocomplete-panel","mdc-menu-surface","mdc-menu-surface--open",3,"id"]],template:function(i,r){i&1&&(Ee(),Va(0,Q_e,3,17,"ng-template"))},styles:[`div.mat-mdc-autocomplete-panel{width:100%;max-height:256px;visibility:hidden;transform-origin:center top;overflow:auto;padding:8px 0;box-sizing:border-box;position:relative;border-radius:var(--mat-autocomplete-container-shape, var(--mat-sys-corner-extra-small));box-shadow:var(--mat-autocomplete-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));background-color:var(--mat-autocomplete-background-color, var(--mat-sys-surface-container))}@media(forced-colors: active){div.mat-mdc-autocomplete-panel{outline:solid 1px}}.cdk-overlay-pane:not(.mat-mdc-autocomplete-panel-above) div.mat-mdc-autocomplete-panel{border-top-left-radius:0;border-top-right-radius:0}.mat-mdc-autocomplete-panel-above div.mat-mdc-autocomplete-panel{border-bottom-left-radius:0;border-bottom-right-radius:0;transform-origin:center bottom}div.mat-mdc-autocomplete-panel.mat-mdc-autocomplete-visible{visibility:visible}div.mat-mdc-autocomplete-panel.mat-mdc-autocomplete-hidden{visibility:hidden;pointer-events:none}@keyframes _mat-autocomplete-enter{from{opacity:0;transform:scaleY(0.8)}to{opacity:1;transform:none}}.mat-autocomplete-panel-animations-enabled{animation:_mat-autocomplete-enter 120ms cubic-bezier(0, 0, 0.2, 1)}mat-autocomplete{display:none} +`],encapsulation:2,changeDetection:0})}return t})();var Z_e={provide:dr,useExisting:li(()=>M_),multi:!0};var T6=new O("mat-autocomplete-scroll-strategy",{providedIn:"root",factory:()=>{let t=u(de);return()=>Tn(t)}});function X_e(t){let n=u(de);return()=>Tn(n)}var J_e={provide:T6,deps:[],useFactory:X_e},M_=(()=>{class t{_environmentInjector=u(ti);_element=u(Y);_injector=u(de);_viewContainerRef=u(st);_zone=u(ae);_changeDetectorRef=u(ye);_dir=u(Yt,{optional:!0});_formField=u(oa,{optional:!0,host:!0});_viewportRuler=u(sr);_scrollStrategy=u(T6);_renderer=u(ze);_animationsDisabled=Qe();_defaults=u(k6,{optional:!0});_overlayRef;_portal;_componentDestroyed=!1;_initialized=new z;_keydownSubscription;_outsideClickSubscription;_cleanupWindowBlur;_previousValue;_valueOnAttach;_valueOnLastKeydown;_positionStrategy;_manuallyFloatingLabel=!1;_closingActionsSubscription;_viewportSubscription=ke.EMPTY;_breakpointObserver=u(Ml);_handsetLandscapeSubscription=ke.EMPTY;_canOpenOnNextFocus=!0;_valueBeforeAutoSelection;_pendingAutoselectedOption;_closeKeyEventStream=new z;_overlayPanelClass=Dl(this._defaults?.overlayPanelClass||[]);_windowBlurHandler=()=>{this._canOpenOnNextFocus=this.panelOpen||!this._hasFocus()};_onChange=()=>{};_onTouched=()=>{};autocomplete;position="auto";connectedTo;autocompleteAttribute="off";autocompleteDisabled;constructor(){}_aboveClass="mat-mdc-autocomplete-panel-above";ngAfterViewInit(){this._initialized.next(),this._initialized.complete(),this._cleanupWindowBlur=this._renderer.listen("window","blur",this._windowBlurHandler)}ngOnChanges(e){e.position&&this._positionStrategy&&(this._setStrategyPositions(this._positionStrategy),this.panelOpen&&this._overlayRef.updatePosition())}ngOnDestroy(){this._cleanupWindowBlur?.(),this._handsetLandscapeSubscription.unsubscribe(),this._viewportSubscription.unsubscribe(),this._componentDestroyed=!0,this._destroyPanel(),this._closeKeyEventStream.complete(),this._clearFromModal()}get panelOpen(){return this._overlayAttached&&this.autocomplete.showPanel}_overlayAttached=!1;openPanel(){this._openPanelInternal()}closePanel(){this._resetLabel(),this._overlayAttached&&(this.panelOpen&&this._zone.run(()=>{this.autocomplete.closed.emit()}),this.autocomplete._latestOpeningTrigger===this&&(this.autocomplete._isOpen=!1,this.autocomplete._latestOpeningTrigger=null),this._overlayAttached=!1,this._pendingAutoselectedOption=null,this._overlayRef&&this._overlayRef.hasAttached()&&(this._overlayRef.detach(),this._closingActionsSubscription.unsubscribe()),this._updatePanelState(),this._componentDestroyed||this._changeDetectorRef.detectChanges(),this._trackedModal&&Mc(this._trackedModal,"aria-owns",this.autocomplete.id))}updatePosition(){this._overlayAttached&&this._overlayRef.updatePosition()}get panelClosingActions(){return it(this.optionSelections,this.autocomplete._keyManager.tabOut.pipe(ce(()=>this._overlayAttached)),this._closeKeyEventStream,this._getOutsideClickStream(),this._overlayRef?this._overlayRef.detachments().pipe(ce(()=>this._overlayAttached)):Q()).pipe(se(e=>e instanceof lh?e:null))}optionSelections=Fn(()=>{let e=this.autocomplete?this.autocomplete.options:null;return e?e.changes.pipe(Ue(e),je(()=>it(...e.map(i=>i.onSelectionChange)))):this._initialized.pipe(je(()=>this.optionSelections))});get activeOption(){return this.autocomplete&&this.autocomplete._keyManager?this.autocomplete._keyManager.activeItem:null}_getOutsideClickStream(){return new Ne(e=>{let i=o=>{let a=or(o),s=this._formField?this._formField.getConnectedOverlayOrigin().nativeElement:null,l=this.connectedTo?this.connectedTo.elementRef.nativeElement:null;this._overlayAttached&&a!==this._element.nativeElement&&!this._hasFocus()&&(!s||!s.contains(a))&&(!l||!l.contains(a))&&this._overlayRef&&!this._overlayRef.overlayElement.contains(a)&&e.next(o)},r=[this._renderer.listen("document","click",i),this._renderer.listen("document","auxclick",i),this._renderer.listen("document","touchend",i)];return()=>{r.forEach(o=>o())}})}writeValue(e){Promise.resolve(null).then(()=>this._assignOptionValue(e))}registerOnChange(e){this._onChange=e}registerOnTouched(e){this._onTouched=e}setDisabledState(e){this._element.nativeElement.disabled=e}_handleKeydown(e){let i=e,r=i.keyCode,o=Gt(i);if(r===27&&!o&&i.preventDefault(),this._valueOnLastKeydown=this._element.nativeElement.value,this.activeOption&&r===13&&this.panelOpen&&!o)this.activeOption._selectViaInteraction(),this._resetActiveItem(),i.preventDefault();else if(this.autocomplete){let a=this.autocomplete._keyManager.activeItem,s=r===38||r===40;r===9||s&&!o&&this.panelOpen?this.autocomplete._keyManager.onKeydown(i):s&&this._canOpen()&&this._openPanelInternal(this._valueOnLastKeydown),(s||this.autocomplete._keyManager.activeItem!==a)&&(this._scrollToOption(this.autocomplete._keyManager.activeItemIndex||0),this.autocomplete.autoSelectActiveOption&&this.activeOption&&(this._pendingAutoselectedOption||(this._valueBeforeAutoSelection=this._valueOnLastKeydown),this._pendingAutoselectedOption=this.activeOption,this._assignOptionValue(this.activeOption.value)))}}_handleInput(e){let i=e.target,r=i.value;if(i.type==="number"&&(r=r==""?null:parseFloat(r)),this._previousValue!==r){if(this._previousValue=r,this._pendingAutoselectedOption=null,(!this.autocomplete||!this.autocomplete.requireSelection)&&this._onChange(r),!r)this._clearPreviousSelectedOption(null,!1);else if(this.panelOpen&&!this.autocomplete.requireSelection){let o=this.autocomplete.options?.find(a=>a.selected);if(o){let a=this._getDisplayValue(o.value);r!==a&&o.deselect(!1)}}if(this._canOpen()&&this._hasFocus()){let o=this._valueOnLastKeydown??this._element.nativeElement.value;this._valueOnLastKeydown=null,this._openPanelInternal(o)}}}_handleFocus(){this._canOpenOnNextFocus?this._canOpen()&&(this._previousValue=this._element.nativeElement.value,this._attachOverlay(this._previousValue),this._floatLabel(!0)):this._canOpenOnNextFocus=!0}_handleClick(){this._canOpen()&&!this.panelOpen&&this._openPanelInternal()}_hasFocus(){return So()===this._element.nativeElement}_floatLabel(e=!1){this._formField&&this._formField.floatLabel==="auto"&&(e?this._formField._animateAndLockLabel():this._formField.floatLabel="always",this._manuallyFloatingLabel=!0)}_resetLabel(){this._manuallyFloatingLabel&&(this._formField&&(this._formField.floatLabel="auto"),this._manuallyFloatingLabel=!1)}_subscribeToClosingActions(){let e=new Ne(r=>{vt(()=>{r.next()},{injector:this._environmentInjector})}),i=this.autocomplete.options?.changes.pipe(He(()=>this._positionStrategy.reapplyLastPosition()),Aa(0))??Q();return it(e,i).pipe(je(()=>this._zone.run(()=>{let r=this.panelOpen;return this._resetActiveItem(),this._updatePanelState(),this._changeDetectorRef.detectChanges(),this.panelOpen&&this._overlayRef.updatePosition(),r!==this.panelOpen&&(this.panelOpen?this._emitOpened():this.autocomplete.closed.emit()),this.panelClosingActions})),mt(1)).subscribe(r=>this._setValueAndClose(r))}_emitOpened(){this.autocomplete.opened.emit()}_destroyPanel(){this._overlayRef&&(this.closePanel(),this._overlayRef.dispose(),this._overlayRef=null)}_getDisplayValue(e){let i=this.autocomplete;return i&&i.displayWith?i.displayWith(e):e}_assignOptionValue(e){let i=this._getDisplayValue(e);e==null&&this._clearPreviousSelectedOption(null,!1),this._updateNativeInputValue(i??"")}_updateNativeInputValue(e){this._formField?this._formField._control.value=e:this._element.nativeElement.value=e,this._previousValue=e}_setValueAndClose(e){let i=this.autocomplete,r=e?e.source:this._pendingAutoselectedOption;r?(this._clearPreviousSelectedOption(r),this._assignOptionValue(r.value),this._onChange(r.value),i._emitSelectEvent(r),this._element.nativeElement.focus()):i.requireSelection&&this._element.nativeElement.value!==this._valueOnAttach&&(this._clearPreviousSelectedOption(null),this._assignOptionValue(null),this._onChange(null)),this.closePanel()}_clearPreviousSelectedOption(e,i){this.autocomplete?.options?.forEach(r=>{r!==e&&r.selected&&r.deselect(i)})}_openPanelInternal(e=this._element.nativeElement.value){if(this._attachOverlay(e),this._floatLabel(),this._trackedModal){let i=this.autocomplete.id;ih(this._trackedModal,"aria-owns",i)}}_attachOverlay(e){this.autocomplete;let i=this._overlayRef;i?(this._positionStrategy.setOrigin(this._getConnectedElement()),i.updateSize({width:this._getPanelWidth()})):(this._portal=new kn(this.autocomplete.template,this._viewContainerRef,{id:this._formField?.getLabelId()}),i=qr(this._injector,this._getOverlayConfig()),this._overlayRef=i,this._viewportSubscription=this._viewportRuler.change().subscribe(()=>{this.panelOpen&&i&&i.updateSize({width:this._getPanelWidth()})}),this._handsetLandscapeSubscription=this._breakpointObserver.observe(jv.HandsetLandscape).subscribe(o=>{o.matches?this._positionStrategy.withFlexibleDimensions(!0).withGrowAfterOpen(!0).withViewportMargin(8):this._positionStrategy.withFlexibleDimensions(!1).withGrowAfterOpen(!1).withViewportMargin(0)})),i&&!i.hasAttached()&&(i.attach(this._portal),this._valueOnAttach=e,this._valueOnLastKeydown=null,this._closingActionsSubscription=this._subscribeToClosingActions());let r=this.panelOpen;this.autocomplete._isOpen=this._overlayAttached=!0,this.autocomplete._latestOpeningTrigger=this,this.autocomplete._setColor(this._formField?.color),this._updatePanelState(),this._applyModalPanelOwnership(),this.panelOpen&&r!==this.panelOpen&&this._emitOpened()}_handlePanelKeydown=e=>{(e.keyCode===27&&!Gt(e)||e.keyCode===38&&Gt(e,"altKey"))&&(this._pendingAutoselectedOption&&(this._updateNativeInputValue(this._valueBeforeAutoSelection??""),this._pendingAutoselectedOption=null),this._closeKeyEventStream.next(),this._resetActiveItem(),e.stopPropagation(),e.preventDefault())};_updatePanelState(){if(this.autocomplete._setVisibility(),this.panelOpen){let e=this._overlayRef;this._keydownSubscription||(this._keydownSubscription=e.keydownEvents().subscribe(this._handlePanelKeydown)),this._outsideClickSubscription||(this._outsideClickSubscription=e.outsidePointerEvents().subscribe())}else this._keydownSubscription?.unsubscribe(),this._outsideClickSubscription?.unsubscribe(),this._keydownSubscription=this._outsideClickSubscription=null}_getOverlayConfig(){return new Gr({positionStrategy:this._getOverlayPosition(),scrollStrategy:this._scrollStrategy(),width:this._getPanelWidth(),direction:this._dir??void 0,hasBackdrop:this._defaults?.hasBackdrop,backdropClass:this._defaults?.backdropClass||"cdk-overlay-transparent-backdrop",panelClass:this._overlayPanelClass,disableAnimations:this._animationsDisabled})}_getOverlayPosition(){let e=Xa(this._injector,this._getConnectedElement()).withFlexibleDimensions(!1).withPush(!1);return this._setStrategyPositions(e),this._positionStrategy=e,e}_setStrategyPositions(e){let i=[{originX:"start",originY:"bottom",overlayX:"start",overlayY:"top"},{originX:"end",originY:"bottom",overlayX:"end",overlayY:"top"}],r=this._aboveClass,o=[{originX:"start",originY:"top",overlayX:"start",overlayY:"bottom",panelClass:r},{originX:"end",originY:"top",overlayX:"end",overlayY:"bottom",panelClass:r}],a;this.position==="above"?a=o:this.position==="below"?a=i:a=[...i,...o],e.withPositions(a)}_getConnectedElement(){return this.connectedTo?this.connectedTo.elementRef:this._formField?this._formField.getConnectedOverlayOrigin():this._element}_getPanelWidth(){return this.autocomplete.panelWidth||this._getHostWidth()}_getHostWidth(){return this._getConnectedElement().nativeElement.getBoundingClientRect().width}_resetActiveItem(){let e=this.autocomplete;if(e.autoActiveFirstOption){let i=-1;for(let r=0;r .cdk-overlay-container [aria-modal="true"]');if(!e)return;let i=this.autocomplete.id;this._trackedModal&&Mc(this._trackedModal,"aria-owns",i),ih(e,"aria-owns",i),this._trackedModal=e}_clearFromModal(){if(this._trackedModal){let e=this.autocomplete.id;Mc(this._trackedModal,"aria-owns",e),this._trackedModal=null}}static \u0275fac=function(i){return new(i||t)};static \u0275dir=P({type:t,selectors:[["input","matAutocomplete",""],["textarea","matAutocomplete",""]],hostAttrs:[1,"mat-mdc-autocomplete-trigger"],hostVars:7,hostBindings:function(i,r){i&1&&S("focusin",function(){return r._handleFocus()})("blur",function(){return r._onTouched()})("input",function(a){return r._handleInput(a)})("keydown",function(a){return r._handleKeydown(a)})("click",function(){return r._handleClick()}),i&2&&X("autocomplete",r.autocompleteAttribute)("role",r.autocompleteDisabled?null:"combobox")("aria-autocomplete",r.autocompleteDisabled?null:"list")("aria-activedescendant",r.panelOpen&&r.activeOption?r.activeOption.id:null)("aria-expanded",r.autocompleteDisabled?null:r.panelOpen.toString())("aria-controls",r.autocompleteDisabled||!r.panelOpen||r.autocomplete==null?null:r.autocomplete.id)("aria-haspopup",r.autocompleteDisabled?null:"listbox")},inputs:{autocomplete:[0,"matAutocomplete","autocomplete"],position:[0,"matAutocompletePosition","position"],connectedTo:[0,"matAutocompleteConnectedTo","connectedTo"],autocompleteAttribute:[0,"autocomplete","autocompleteAttribute"],autocompleteDisabled:[2,"matAutocompleteDisabled","autocompleteDisabled",L]},exportAs:["matAutocompleteTrigger"],features:[Ce([Z_e]),Oe]})}return t})(),Mw=(()=>{class t{static \u0275fac=function(i){return new(i||t)};static \u0275mod=ee({type:t});static \u0275inj=J({providers:[J_e],imports:[cr,ch,De,Tr,ch,De]})}return t})();var I6=()=>["HRAdmin","Manager"],ebe=()=>[5,10,25,50,100],tbe=()=>["HRAdmin"];function ibe(t,n){if(t&1){let e=q();m(0,"button",22),S("click",function(){k(e);let r=x();return T(r.createEmployee())}),m(1,"mat-icon"),f(2,"add"),h(),f(3," Add Employee "),h()}}function nbe(t,n){if(t&1&&(m(0,"mat-option",23),f(1),h()),t&2){let e=n.$implicit;v("value",e),g(),fe(" ",e," ")}}function rbe(t,n){if(t&1&&(m(0,"mat-option",23),f(1),h()),t&2){let e=n.$implicit;v("value",e),g(),fe(" ",e," ")}}function obe(t,n){if(t&1&&(m(0,"mat-option",23),f(1),h()),t&2){let e=n.$implicit;v("value",e),g(),fe(" ",e," ")}}function abe(t,n){if(t&1&&(m(0,"mat-option",23),f(1),h()),t&2){let e=n.$implicit;v("value",e),g(),fe(" ",e," ")}}function sbe(t,n){if(t&1&&(m(0,"mat-option",23),f(1),h()),t&2){let e=n.$implicit;v("value",e),g(),fe(" ",e," ")}}function lbe(t,n){t&1&&(m(0,"div",24),M(1,"mat-spinner"),h())}function cbe(t,n){t&1&&(m(0,"th",37),f(1,"Employee #"),h())}function dbe(t,n){if(t&1&&(m(0,"td",38),f(1),h()),t&2){let e=n.$implicit;g(),N(e.employeeNumber)}}function ube(t,n){t&1&&(m(0,"th",37),f(1,"Name"),h())}function mbe(t,n){if(t&1&&(m(0,"td",38),f(1),h()),t&2){let e=n.$implicit,i=x(2);g(),N(i.getFullName(e))}}function hbe(t,n){t&1&&(m(0,"th",37),f(1,"Email"),h())}function pbe(t,n){if(t&1&&(m(0,"td",38),f(1),h()),t&2){let e=n.$implicit;g(),N(e.email)}}function fbe(t,n){t&1&&(m(0,"th",37),f(1,"Phone"),h())}function gbe(t,n){if(t&1&&(m(0,"td",38),f(1),h()),t&2){let e=n.$implicit;g(),N(e.phoneNumber||e.phone||"-")}}function _be(t,n){t&1&&(m(0,"th",37),f(1,"Position"),h())}function bbe(t,n){if(t&1&&(m(0,"td",38),f(1),h()),t&2){let e=n.$implicit;g(),N(e.positionTitle||(e.position==null?null:e.position.positionTitle)||"-")}}function vbe(t,n){t&1&&(m(0,"th",37),f(1,"Actions"),h())}function ybe(t,n){if(t&1){let e=q();m(0,"button",43),S("click",function(){k(e);let r=x().$implicit,o=x(2);return T(o.editEmployee(r))}),m(1,"mat-icon"),f(2,"edit"),h()()}}function xbe(t,n){if(t&1){let e=q();m(0,"button",44),S("click",function(){k(e);let r=x().$implicit,o=x(2);return T(o.deleteEmployee(r))}),m(1,"mat-icon"),f(2,"delete"),h()()}}function Cbe(t,n){if(t&1){let e=q();m(0,"td",38)(1,"div",39)(2,"button",40),S("click",function(){let r=k(e).$implicit,o=x(2);return T(o.viewEmployee(r))}),m(3,"mat-icon"),f(4,"visibility"),h()(),A(5,ybe,3,0,"button",41)(6,xbe,3,0,"button",42),h()()}t&2&&(g(5),v("appHasRole",dt(2,I6)),g(),v("appHasRole",dt(3,tbe)))}function wbe(t,n){t&1&&M(0,"tr",45)}function Dbe(t,n){t&1&&M(0,"tr",46)}function Mbe(t,n){if(t&1&&(m(0,"tr",47)(1,"td",48)(2,"div",49)(3,"mat-icon"),f(4,"info"),h(),m(5,"p"),f(6,"No employees found"),h()()()()),t&2){let e=x(2);g(),X("colspan",e.displayedColumns.length)}}function Ebe(t,n){if(t&1&&(m(0,"table",25),lt(1,26),A(2,cbe,2,0,"th",27)(3,dbe,2,1,"td",28),ot(),lt(4,29),A(5,ube,2,0,"th",27)(6,mbe,2,1,"td",28),ot(),lt(7,30),A(8,hbe,2,0,"th",27)(9,pbe,2,1,"td",28),ot(),lt(10,31),A(11,fbe,2,0,"th",27)(12,gbe,2,1,"td",28),ot(),lt(13,32),A(14,_be,2,0,"th",27)(15,bbe,2,1,"td",28),ot(),lt(16,33),A(17,vbe,2,0,"th",27)(18,Cbe,7,4,"td",28),ot(),A(19,wbe,1,0,"tr",34)(20,Dbe,1,0,"tr",35)(21,Mbe,7,1,"tr",36),h()),t&2){let e=x();v("dataSource",e.employees),g(19),v("matHeaderRowDef",e.displayedColumns),g(),v("matRowDefColumns",e.displayedColumns),g(),v("ngIf",e.employees.length===0)}}var A6=(()=>{let n=class n{constructor(){this.employeeService=u(rd),this.authService=u(Ht),this.router=u(Ae),this.fb=u(co),this.snackBar=u(_i),this.dialog=u(Rn),this.employees=[],this.loading=!1,this.totalCount=0,this.pageSize=10,this.pageNumber=1,this.destroy$=new z,this.displayedColumns=["employeeNumber","name","email","phone","positionTitle","actions"]}ngOnInit(){this.initSearchForm(),this.setupAutocomplete(),this.setupAutoSubmit(),this.loadEmployees()}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete()}initSearchForm(){this.searchForm=this.fb.group({FirstName:[""],LastName:[""],Email:[""],EmployeeNumber:[""],PositionTitle:[""]})}setupAutocomplete(){this.filteredEmployeeNumbers$=this.searchForm.get("EmployeeNumber").valueChanges.pipe(Ue(""),Dt(300),Nn(),je(i=>this.getAutocompleteOptions("EmployeeNumber",i))),this.filteredFirstNames$=this.searchForm.get("FirstName").valueChanges.pipe(Ue(""),Dt(300),Nn(),je(i=>this.getAutocompleteOptions("FirstName",i))),this.filteredLastNames$=this.searchForm.get("LastName").valueChanges.pipe(Ue(""),Dt(300),Nn(),je(i=>this.getAutocompleteOptions("LastName",i))),this.filteredEmails$=this.searchForm.get("Email").valueChanges.pipe(Ue(""),Dt(300),Nn(),je(i=>this.getAutocompleteOptions("Email",i))),this.filteredPositionTitles$=this.searchForm.get("PositionTitle").valueChanges.pipe(Ue(""),Dt(300),Nn(),je(i=>this.getAutocompleteOptions("PositionTitle",i)))}setupAutoSubmit(){this.searchForm.valueChanges.pipe(Dt(500),Nn((i,r)=>JSON.stringify(i)===JSON.stringify(r)),we(this.destroy$)).subscribe(()=>{this.pageNumber=1,this.loadEmployees()})}getAutocompleteOptions(i,r){if(!r||r.length<2)return Q([]);let o={PageNumber:1,PageSize:10,[i]:r};return this.employeeService.getAllPaged(o).pipe(se(a=>{let s={EmployeeNumber:c=>c.employeeNumber,FirstName:c=>c.firstName,LastName:c=>c.lastName,Email:c=>c.email,PositionTitle:c=>c.positionTitle||""};return a.value.map(c=>s[i](c)).filter((c,d,p)=>c&&p.indexOf(c)===d)}),ei(()=>Q([])))}loadEmployees(){this.loading=!0;let i=I({PageNumber:this.pageNumber,PageSize:this.pageSize},this.searchForm.value);Object.keys(i).forEach(r=>{(i[r]===""||i[r]===null||i[r]===void 0)&&delete i[r]}),this.employeeService.getAllPaged(i).subscribe({next:r=>{this.employees=r.value,this.totalCount=r.recordsTotal,this.loading=!1},error:r=>{console.error("Error loading employees:",r),this.loading=!1}})}onClearSearch(){this.searchForm.reset(),this.pageNumber=1,this.paginator&&(this.paginator.pageIndex=0),this.loadEmployees()}onPageChange(i){this.pageSize=i.pageSize,this.pageNumber=i.pageIndex+1,this.loadEmployees()}getFullName(i){return[i.prefix,i.firstName,i.middleName,i.lastName].filter(Boolean).join(" ")}viewEmployee(i){this.router.navigate(["/employees",i.id])}editEmployee(i){this.router.navigate(["/employees","edit",i.id])}deleteEmployee(i){let r=this.getFullName(i);this.dialog.open(Fr,{width:"400px",data:{title:"Delete Employee",message:`Are you sure you want to delete ${r}? This action cannot be undone.`,confirmText:"Delete",cancelText:"Cancel"}}).afterClosed().subscribe(a=>{a&&this.employeeService.delete(i.id).subscribe({next:()=>{this.snackBar.open(`${r} has been deleted.`,"Close",{duration:3e3,horizontalPosition:"end",verticalPosition:"top"}),this.loadEmployees()},error:s=>{console.error("Error deleting employee:",s),this.snackBar.open("Failed to delete employee. Please try again.","Close",{duration:4e3,horizontalPosition:"end",verticalPosition:"top"})}})})}createEmployee(){this.router.navigate(["/employees","create"])}canEdit(){return this.authService.isHRAdmin()||this.authService.isManager()}canDelete(){return this.authService.isHRAdmin()}canCreate(){return this.authService.isHRAdmin()||this.authService.isManager()}};n.\u0275fac=function(r){return new(r||n)},n.\u0275cmp=E({type:n,selectors:[["app-employee-list"]],viewQuery:function(r,o){if(r&1&&ie(mr,5),r&2){let a;j(a=H())&&(o.paginator=a.first)}},decls:59,vars:30,consts:[["autoEmployeeNumber","matAutocomplete"],["autoFirstName","matAutocomplete"],["autoLastName","matAutocomplete"],["autoEmail","matAutocomplete"],["autoPositionTitle","matAutocomplete"],[1,"flex-spacer"],["mat-raised-button","","color","primary",3,"click",4,"appHasRole"],[1,"search-form",3,"formGroup"],[1,"search-row"],["appearance","outline"],["matInput","","formControlName","EmployeeNumber",3,"matAutocomplete"],[3,"value",4,"ngFor","ngForOf"],["matInput","","formControlName","FirstName",3,"matAutocomplete"],["matInput","","formControlName","LastName",3,"matAutocomplete"],["matInput","","formControlName","Email",3,"matAutocomplete"],["matInput","","formControlName","PositionTitle",3,"matAutocomplete"],[1,"search-buttons"],["mat-raised-button","","color","accent","type","button",3,"click"],[1,"table-container"],["class","loading-spinner",4,"ngIf"],["mat-table","","class","employee-table",3,"dataSource",4,"ngIf"],["showFirstLastButtons","",3,"page","length","pageSize","pageSizeOptions","pageIndex"],["mat-raised-button","","color","primary",3,"click"],[3,"value"],[1,"loading-spinner"],["mat-table","",1,"employee-table",3,"dataSource"],["matColumnDef","employeeNumber"],["mat-header-cell","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","name"],["matColumnDef","email"],["matColumnDef","phone"],["matColumnDef","positionTitle"],["matColumnDef","actions"],["mat-header-row","",4,"matHeaderRowDef"],["mat-row","",4,"matRowDef","matRowDefColumns"],["class","mat-row",4,"ngIf"],["mat-header-cell",""],["mat-cell",""],[1,"action-buttons"],["mat-icon-button","","color","primary","matTooltip","View Details",3,"click"],["mat-icon-button","","color","accent","matTooltip","Edit Employee",3,"click",4,"appHasRole"],["mat-icon-button","","color","warn","matTooltip","Delete Employee",3,"click",4,"appHasRole"],["mat-icon-button","","color","accent","matTooltip","Edit Employee",3,"click"],["mat-icon-button","","color","warn","matTooltip","Delete Employee",3,"click"],["mat-header-row",""],["mat-row",""],[1,"mat-row"],[1,"mat-cell"],[1,"no-data"]],template:function(r,o){if(r&1){let a=q();M(0,"page-header"),m(1,"mat-card")(2,"mat-card-header")(3,"mat-card-title"),f(4,"Employee Directory"),h(),M(5,"div",5),A(6,ibe,4,0,"button",6),h(),m(7,"mat-card-content")(8,"form",7)(9,"div",8)(10,"mat-form-field",9)(11,"mat-label"),f(12,"Employee Number"),h(),M(13,"input",10),m(14,"mat-autocomplete",null,0),A(16,nbe,2,2,"mat-option",11),me(17,"async"),h()(),m(18,"mat-form-field",9)(19,"mat-label"),f(20,"First Name"),h(),M(21,"input",12),m(22,"mat-autocomplete",null,1),A(24,rbe,2,2,"mat-option",11),me(25,"async"),h()(),m(26,"mat-form-field",9)(27,"mat-label"),f(28,"Last Name"),h(),M(29,"input",13),m(30,"mat-autocomplete",null,2),A(32,obe,2,2,"mat-option",11),me(33,"async"),h()(),m(34,"mat-form-field",9)(35,"mat-label"),f(36,"Email"),h(),M(37,"input",14),m(38,"mat-autocomplete",null,3),A(40,abe,2,2,"mat-option",11),me(41,"async"),h()(),m(42,"mat-form-field",9)(43,"mat-label"),f(44,"Position Title"),h(),M(45,"input",15),m(46,"mat-autocomplete",null,4),A(48,sbe,2,2,"mat-option",11),me(49,"async"),h()(),m(50,"div",16)(51,"button",17),S("click",function(){return k(a),T(o.onClearSearch())}),m(52,"mat-icon"),f(53,"clear"),h(),f(54," Clear Filters "),h()()()(),m(55,"div",18),A(56,lbe,2,0,"div",19)(57,Ebe,22,4,"table",20),h(),m(58,"mat-paginator",21),S("page",function(l){return k(a),T(o.onPageChange(l))}),h()()()}if(r&2){let a=Te(15),s=Te(23),l=Te(31),c=Te(39),d=Te(47);g(6),v("appHasRole",dt(28,I6)),g(2),v("formGroup",o.searchForm),g(5),v("matAutocomplete",a),g(3),v("ngForOf",Re(17,18,o.filteredEmployeeNumbers$)),g(5),v("matAutocomplete",s),g(3),v("ngForOf",Re(25,20,o.filteredFirstNames$)),g(5),v("matAutocomplete",l),g(3),v("ngForOf",Re(33,22,o.filteredLastNames$)),g(5),v("matAutocomplete",c),g(3),v("ngForOf",Re(41,24,o.filteredEmails$)),g(5),v("matAutocomplete",d),g(3),v("ngForOf",Re(49,26,o.filteredPositionTitles$)),g(8),v("ngIf",o.loading),g(),v("ngIf",!o.loading),g(),v("length",o.totalCount)("pageSize",o.pageSize)("pageSizeOptions",dt(29,ebe))("pageIndex",o.pageNumber-1)}},dependencies:[Je,Un,Bt,Zn,lo,di,Pt,so,nn,Yr,Fe,_t,Ft,It,kt,Tt,Rt,Ot,Ge,Ze,Bi,Ci,Xt,gi,ai,Sa,_a,va,wa,ya,ba,Da,xa,Ca,Ma,Ea,Fc,mr,Zt,Kt,An,ur,Mw,Dw,Sn,M_,wi,Pn,Lt,Xn,cn],styles:["mat-card[_ngcontent-%COMP%]{margin:16px}.nl-search-card[_ngcontent-%COMP%]{margin-bottom:0}.nl-search-card[_ngcontent-%COMP%] .nl-search-field[_ngcontent-%COMP%]{width:100%}.nl-search-card[_ngcontent-%COMP%] .nl-parsed-hint[_ngcontent-%COMP%]{display:flex;align-items:center;gap:8px;font-size:13px;color:#0009;margin-top:4px}.nl-search-card[_ngcontent-%COMP%] .nl-parsed-hint[_ngcontent-%COMP%] mat-icon[_ngcontent-%COMP%]{font-size:16px;height:16px;width:16px;color:#1976d2}.nl-search-card[_ngcontent-%COMP%] .nl-error[_ngcontent-%COMP%]{display:flex;align-items:center;gap:8px;font-size:13px;color:#b00020;margin-top:4px}.nl-search-card[_ngcontent-%COMP%] .nl-error[_ngcontent-%COMP%] mat-icon[_ngcontent-%COMP%]{font-size:16px;height:16px;width:16px}mat-card-header[_ngcontent-%COMP%]{display:flex;align-items:center;margin-bottom:16px;padding:16px;border-bottom:1px solid rgba(0,0,0,.12)}mat-card-header[_ngcontent-%COMP%] mat-card-title[_ngcontent-%COMP%]{font-size:20px;font-weight:500;margin:0}mat-card-header[_ngcontent-%COMP%] .flex-spacer[_ngcontent-%COMP%]{flex:1 1 auto}mat-card-header[_ngcontent-%COMP%] button[_ngcontent-%COMP%] mat-icon[_ngcontent-%COMP%]{margin-right:4px}mat-card-content[_ngcontent-%COMP%]{padding:0}.search-form[_ngcontent-%COMP%]{padding:16px;background-color:#f5f5f5;margin-bottom:0}.search-form[_ngcontent-%COMP%] .search-row[_ngcontent-%COMP%]{display:grid;grid-template-columns:repeat(auto-fit,minmax(180px,1fr));gap:16px;align-items:start}.search-form[_ngcontent-%COMP%] .search-row[_ngcontent-%COMP%] mat-form-field[_ngcontent-%COMP%]{width:100%}.search-form[_ngcontent-%COMP%] .search-row[_ngcontent-%COMP%] .search-buttons[_ngcontent-%COMP%]{display:flex;gap:8px;align-items:center}.search-form[_ngcontent-%COMP%] .search-row[_ngcontent-%COMP%] .search-buttons[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{white-space:nowrap}.search-form[_ngcontent-%COMP%] .search-row[_ngcontent-%COMP%] .search-buttons[_ngcontent-%COMP%] button[_ngcontent-%COMP%] mat-icon[_ngcontent-%COMP%]{margin-right:4px}.table-container[_ngcontent-%COMP%]{position:relative;min-height:300px;overflow-x:auto}.loading-spinner[_ngcontent-%COMP%]{display:flex;justify-content:center;align-items:center;min-height:300px}.employee-table[_ngcontent-%COMP%]{width:100%}.employee-table[_ngcontent-%COMP%] th[_ngcontent-%COMP%]{font-weight:600;font-size:14px;color:#000000de}.employee-table[_ngcontent-%COMP%] td[_ngcontent-%COMP%]{font-size:14px;color:#000000de}.employee-table[_ngcontent-%COMP%] .mat-column-employeeNumber[_ngcontent-%COMP%]{width:120px}.employee-table[_ngcontent-%COMP%] .mat-column-name[_ngcontent-%COMP%], .employee-table[_ngcontent-%COMP%] .mat-column-email[_ngcontent-%COMP%]{min-width:200px}.employee-table[_ngcontent-%COMP%] .mat-column-phone[_ngcontent-%COMP%]{width:150px}.employee-table[_ngcontent-%COMP%] .mat-column-positionTitle[_ngcontent-%COMP%]{min-width:200px}.employee-table[_ngcontent-%COMP%] .mat-column-actions[_ngcontent-%COMP%]{width:120px;text-align:right}.employee-table[_ngcontent-%COMP%] .mat-column-actions[_ngcontent-%COMP%] .action-buttons[_ngcontent-%COMP%]{display:flex;justify-content:flex-end;align-items:center;gap:4px}.no-data[_ngcontent-%COMP%]{display:flex;flex-direction:column;align-items:center;justify-content:center;padding:48px 16px;color:#0000008a}.no-data[_ngcontent-%COMP%] mat-icon[_ngcontent-%COMP%]{font-size:48px;width:48px;height:48px;margin-bottom:16px}.no-data[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{margin:0;font-size:16px}mat-paginator[_ngcontent-%COMP%]{border-top:1px solid rgba(0,0,0,.12)}"]});let t=n;return t})();var Lu=(function(t){return t[t.Male=0]="Male",t[t.Female=1]="Female",t})(Lu||{});var Sbe=()=>["HRAdmin","Manager"],kbe=()=>["HRAdmin"];function Tbe(t,n){t&1&&(m(0,"div",2),M(1,"mat-spinner"),h())}function Ibe(t,n){if(t&1){let e=q();m(0,"button",14),S("click",function(){k(e);let r=x(2);return T(r.editEmployee())}),m(1,"mat-icon"),f(2,"edit"),h(),f(3," Edit "),h()}}function Abe(t,n){if(t&1){let e=q();m(0,"button",15),S("click",function(){k(e);let r=x(2);return T(r.deleteEmployee())}),m(1,"mat-icon"),f(2,"delete"),h(),f(3," Delete "),h()}}function Obe(t,n){if(t&1&&(m(0,"mat-list-item")(1,"span",10),f(2,"Address"),h(),m(3,"span",11),f(4),h()()),t&2){let e=x(2);g(4),N(e.employee.address)}}function Rbe(t,n){if(t&1&&(m(0,"mat-list-item")(1,"span",10),f(2,"Hire Date"),h(),m(3,"span",11),f(4),me(5,"date"),h()()),t&2){let e=x(2);g(4),N(Re(5,1,e.employee.hireDate))}}function Pbe(t,n){if(t&1&&(m(0,"mat-list-item")(1,"span",10),f(2,"Salary Range"),h(),m(3,"span",11),f(4),me(5,"number"),me(6,"number"),h()()),t&2){let e=x(2);g(4),Sm(" ",e.employee.salaryRange.name," ($",Re(5,3,e.employee.salaryRange.minSalary)," - $",Re(6,5,e.employee.salaryRange.maxSalary),") ")}}function Fbe(t,n){if(t&1&&(m(0,"mat-list-item")(1,"span",10),f(2,"Created"),h(),m(3,"span",11),f(4),me(5,"date"),h()()),t&2){let e=x(3);g(4),N(Ui(5,1,e.employee.createdAt,"medium"))}}function Nbe(t,n){if(t&1&&(m(0,"mat-list-item")(1,"span",10),f(2,"Last Modified"),h(),m(3,"span",11),f(4),me(5,"date"),h()()),t&2){let e=x(3);g(4),N(Ui(5,1,e.employee.lastModifiedAt,"medium"))}}function Lbe(t,n){if(t&1&&(m(0,"div",9)(1,"h3"),f(2,"Audit Information"),h(),M(3,"mat-divider"),m(4,"mat-list"),A(5,Fbe,6,4,"mat-list-item",1)(6,Nbe,6,4,"mat-list-item",1),h()()),t&2){let e=x(2);g(5),v("ngIf",e.employee.createdAt),g(),v("ngIf",e.employee.lastModifiedAt)}}function Vbe(t,n){if(t&1){let e=q();m(0,"mat-card")(1,"mat-card-header")(2,"mat-card-title"),f(3),h(),M(4,"div",3),m(5,"div",4)(6,"button",5),S("click",function(){k(e);let r=x();return T(r.goBack())}),m(7,"mat-icon"),f(8,"arrow_back"),h(),f(9," Back to List "),h(),A(10,Ibe,4,0,"button",6)(11,Abe,4,0,"button",7),h()(),m(12,"mat-card-content")(13,"div",8)(14,"div",9)(15,"h3"),f(16,"Personal Information"),h(),M(17,"mat-divider"),m(18,"mat-list")(19,"mat-list-item")(20,"span",10),f(21,"Employee Number"),h(),m(22,"span",11),f(23),h()(),m(24,"mat-list-item")(25,"span",10),f(26,"Full Name"),h(),m(27,"span",11),f(28),h()(),m(29,"mat-list-item")(30,"span",10),f(31,"Date of Birth"),h(),m(32,"span",11),f(33),me(34,"date"),h()(),m(35,"mat-list-item")(36,"span",10),f(37,"Gender"),h(),m(38,"span",11),f(39),h()()()(),m(40,"div",9)(41,"h3"),f(42,"Contact Information"),h(),M(43,"mat-divider"),m(44,"mat-list")(45,"mat-list-item")(46,"span",10),f(47,"Email"),h(),m(48,"span",11)(49,"a",12),f(50),h()()(),m(51,"mat-list-item")(52,"span",10),f(53,"Phone Number"),h(),m(54,"span",11)(55,"a",12),f(56),h()()(),A(57,Obe,5,1,"mat-list-item",1),h()(),m(58,"div",9)(59,"h3"),f(60,"Employment Information"),h(),M(61,"mat-divider"),m(62,"mat-list"),A(63,Rbe,6,3,"mat-list-item",1),m(64,"mat-list-item")(65,"span",10),f(66,"Salary"),h(),m(67,"span",11),f(68),me(69,"currency"),h()(),m(70,"mat-list-item")(71,"span",10),f(72,"Department"),h(),m(73,"span",11),f(74),h()(),m(75,"mat-list-item")(76,"span",10),f(77,"Position"),h(),m(78,"span",11),f(79),h()(),A(80,Pbe,7,7,"mat-list-item",1),h()(),A(81,Lbe,7,2,"div",13),h()()()}if(t&2){let e=x();g(3),N(e.getFullName()),g(7),v("appHasRole",dt(22,Sbe)),g(),v("appHasRole",dt(23,kbe)),g(12),N(e.employee.employeeNumber),g(5),N(e.getFullName()),g(5),N(Re(34,18,e.employee.dateOfBirth||e.employee.birthday)),g(6),N(e.getGenderLabel(e.employee.gender)),g(10),v("href","mailto:"+e.employee.email,to),g(),N(e.employee.email),g(5),v("href","tel:"+(e.employee.phoneNumber||e.employee.phone),to),g(),N(e.employee.phoneNumber||e.employee.phone),g(),v("ngIf",e.employee.address),g(6),v("ngIf",e.employee.hireDate),g(5),N(Re(69,20,e.employee.salary)),g(6),N(e.employee.departmentName||(e.employee.department==null?null:e.employee.department.name)||"N/A"),g(5),N(e.employee.positionTitle||(e.employee.position==null?null:e.employee.position.positionTitle)||"N/A"),g(),v("ngIf",e.employee.salaryRange),g(),v("ngIf",e.employee.createdAt||e.employee.lastModifiedAt)}}function Bbe(t,n){if(t&1){let e=q();m(0,"mat-card")(1,"mat-card-content")(2,"div",16)(3,"mat-icon"),f(4,"error"),h(),m(5,"p"),f(6,"Employee not found"),h(),m(7,"button",17),S("click",function(){k(e);let r=x();return T(r.goBack())}),f(8," Go Back "),h()()()()}}var O6=(()=>{let n=class n{constructor(){this.employeeService=u(rd),this.authService=u(Ht),this.router=u(Ae),this.route=u(Ai),this.snackBar=u(_i),this.dialog=u(Rn),this.loading=!1}ngOnInit(){let i=this.route.snapshot.paramMap.get("id");i&&this.loadEmployee(i)}loadEmployee(i){this.loading=!0,this.employeeService.getById(i).subscribe({next:r=>{this.employee=r,this.loading=!1},error:r=>{console.error("Error loading employee:",r),this.loading=!1,this.router.navigate(["/employees"])}})}getFullName(){return this.employee?[this.employee.prefix,this.employee.firstName,this.employee.middleName,this.employee.lastName,this.employee.suffix].filter(Boolean).join(" "):""}getGenderLabel(i){return i===Lu.Male?"Male":"Female"}editEmployee(){this.employee&&this.router.navigate(["/employees","edit",this.employee.id])}deleteEmployee(){if(!this.employee)return;let i=this.getFullName();this.dialog.open(Fr,{width:"400px",data:{title:"Delete Employee",message:`Are you sure you want to delete ${i}? This action cannot be undone.`,confirmText:"Delete",cancelText:"Cancel"}}).afterClosed().subscribe(o=>{o&&this.employeeService.delete(this.employee.id).subscribe({next:()=>{let a=this.snackBar.open(`${i} has been deleted.`,"Close",{duration:3e3,horizontalPosition:"end",verticalPosition:"top"});a.afterDismissed().subscribe(()=>this.router.navigate(["/employees"])),a.onAction().subscribe(()=>this.router.navigate(["/employees"]))},error:a=>{console.error("Error deleting employee:",a),this.snackBar.open("Failed to delete employee. Please try again.","Close",{duration:4e3,horizontalPosition:"end",verticalPosition:"top"})}})})}goBack(){this.router.navigate(["/employees"])}canEdit(){return this.authService.isHRAdmin()||this.authService.isManager()}canDelete(){return this.authService.isHRAdmin()}};n.\u0275fac=function(r){return new(r||n)},n.\u0275cmp=E({type:n,selectors:[["app-employee-detail"]],decls:4,vars:3,consts:[["class","loading-spinner",4,"ngIf"],[4,"ngIf"],[1,"loading-spinner"],[1,"flex-spacer"],[1,"header-actions"],["mat-stroked-button","",3,"click"],["mat-raised-button","","color","accent",3,"click",4,"appHasRole"],["mat-raised-button","","color","warn",3,"click",4,"appHasRole"],[1,"detail-container"],[1,"detail-section"],["matListItemTitle",""],["matListItemLine",""],[3,"href"],["class","detail-section",4,"ngIf"],["mat-raised-button","","color","accent",3,"click"],["mat-raised-button","","color","warn",3,"click"],[1,"no-data"],["mat-raised-button","","color","primary",3,"click"]],template:function(r,o){r&1&&(M(0,"page-header"),A(1,Tbe,2,0,"div",0)(2,Vbe,82,24,"mat-card",1)(3,Bbe,9,0,"mat-card",1)),r&2&&(g(),v("ngIf",o.loading),g(),v("ngIf",!o.loading&&o.employee),g(),v("ngIf",!o.loading&&!o.employee))},dependencies:[Je,Bt,Fe,_t,It,kt,Tt,Rt,Ot,Ge,Ze,Zt,Kt,Nr,Kr,fa,Xs,pa,Fu,Hl,wi,Pn,Lt,Xn,xf,yl,$a],styles:[".loading-spinner[_ngcontent-%COMP%]{display:flex;justify-content:center;align-items:center;min-height:400px}mat-card[_ngcontent-%COMP%]{margin:16px;max-width:1200px}mat-card-header[_ngcontent-%COMP%]{display:flex;align-items:center;padding:16px;border-bottom:1px solid rgba(0,0,0,.12)}mat-card-header[_ngcontent-%COMP%] mat-card-title[_ngcontent-%COMP%]{font-size:24px;font-weight:500;margin:0}mat-card-header[_ngcontent-%COMP%] .flex-spacer[_ngcontent-%COMP%]{flex:1 1 auto}mat-card-header[_ngcontent-%COMP%] .header-actions[_ngcontent-%COMP%]{display:flex;gap:12px}mat-card-header[_ngcontent-%COMP%] .header-actions[_ngcontent-%COMP%] button[_ngcontent-%COMP%] mat-icon[_ngcontent-%COMP%]{margin-right:4px}mat-card-content[_ngcontent-%COMP%]{padding:24px}.detail-container[_ngcontent-%COMP%]{display:grid;grid-template-columns:1fr 1fr;gap:24px}@media (max-width: 768px){.detail-container[_ngcontent-%COMP%]{grid-template-columns:1fr}}.detail-section[_ngcontent-%COMP%] h3[_ngcontent-%COMP%]{font-size:16px;font-weight:500;margin:0 0 8px;color:#000000de}.detail-section[_ngcontent-%COMP%] mat-divider[_ngcontent-%COMP%]{margin-bottom:16px}.detail-section[_ngcontent-%COMP%] mat-list[_ngcontent-%COMP%]{padding:0}.detail-section[_ngcontent-%COMP%] mat-list-item[_ngcontent-%COMP%]{height:auto;min-height:48px;padding:8px 0}.detail-section[_ngcontent-%COMP%] mat-list-item[_ngcontent-%COMP%] span[matListItemTitle][_ngcontent-%COMP%]{font-weight:500;color:#0009;font-size:12px;text-transform:uppercase;letter-spacing:.5px}.detail-section[_ngcontent-%COMP%] mat-list-item[_ngcontent-%COMP%] span[matListItemLine][_ngcontent-%COMP%]{font-size:14px;color:#000000de;margin-top:4px;white-space:normal;word-break:break-word}.detail-section[_ngcontent-%COMP%] mat-list-item[_ngcontent-%COMP%] span[matListItemLine][_ngcontent-%COMP%] a[_ngcontent-%COMP%]{color:#1976d2;text-decoration:none}.detail-section[_ngcontent-%COMP%] mat-list-item[_ngcontent-%COMP%] span[matListItemLine][_ngcontent-%COMP%] a[_ngcontent-%COMP%]:hover{text-decoration:underline}.no-data[_ngcontent-%COMP%]{display:flex;flex-direction:column;align-items:center;justify-content:center;padding:48px 16px;color:#0000008a}.no-data[_ngcontent-%COMP%] mat-icon[_ngcontent-%COMP%]{font-size:64px;width:64px;height:64px;margin-bottom:16px;color:#f44336}.no-data[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{margin:0 0 24px;font-size:18px}"]});let t=n;return t})();var Hbe=["mat-calendar-body",""];function zbe(t,n){return this._trackRow(n)}var B6=(t,n)=>n.id;function Ube(t,n){if(t&1&&(m(0,"tr",0)(1,"td",3),f(2),h()()),t&2){let e=x();g(),At("padding-top",e._cellPadding)("padding-bottom",e._cellPadding),X("colspan",e.numCols),g(),fe(" ",e.label," ")}}function $be(t,n){if(t&1&&(m(0,"td",3),f(1),h()),t&2){let e=x(2);At("padding-top",e._cellPadding)("padding-bottom",e._cellPadding),X("colspan",e._firstRowOffset),g(),fe(" ",e._firstRowOffset>=e.labelMinRequiredCells?e.label:""," ")}}function Wbe(t,n){if(t&1){let e=q();m(0,"td",6)(1,"button",7),S("click",function(r){let o=k(e).$implicit,a=x(2);return T(a._cellClicked(o,r))})("focus",function(r){let o=k(e).$implicit,a=x(2);return T(a._emitActiveDateChange(o,r))}),m(2,"span",8),f(3),h(),M(4,"span",9),h()()}if(t&2){let e=n.$implicit,i=n.$index,r=x().$index,o=x();At("width",o._cellWidth)("padding-top",o._cellPadding)("padding-bottom",o._cellPadding),X("data-mat-row",r)("data-mat-col",i),g(),G("mat-calendar-body-disabled",!e.enabled)("mat-calendar-body-active",o._isActiveCell(r,i))("mat-calendar-body-range-start",o._isRangeStart(e.compareValue))("mat-calendar-body-range-end",o._isRangeEnd(e.compareValue))("mat-calendar-body-in-range",o._isInRange(e.compareValue))("mat-calendar-body-comparison-bridge-start",o._isComparisonBridgeStart(e.compareValue,r,i))("mat-calendar-body-comparison-bridge-end",o._isComparisonBridgeEnd(e.compareValue,r,i))("mat-calendar-body-comparison-start",o._isComparisonStart(e.compareValue))("mat-calendar-body-comparison-end",o._isComparisonEnd(e.compareValue))("mat-calendar-body-in-comparison-range",o._isInComparisonRange(e.compareValue))("mat-calendar-body-preview-start",o._isPreviewStart(e.compareValue))("mat-calendar-body-preview-end",o._isPreviewEnd(e.compareValue))("mat-calendar-body-in-preview",o._isInPreview(e.compareValue)),v("ngClass",e.cssClasses)("tabindex",o._isActiveCell(r,i)?0:-1),X("aria-label",e.ariaLabel)("aria-disabled",!e.enabled||null)("aria-pressed",o._isSelected(e.compareValue))("aria-current",o.todayValue===e.compareValue?"date":null)("aria-describedby",o._getDescribedby(e.compareValue)),g(),G("mat-calendar-body-selected",o._isSelected(e.compareValue))("mat-calendar-body-comparison-identical",o._isComparisonIdentical(e.compareValue))("mat-calendar-body-today",o.todayValue===e.compareValue),g(),fe(" ",e.displayValue," ")}}function Gbe(t,n){if(t&1&&(m(0,"tr",1),V(1,$be,2,6,"td",4),Mt(2,Wbe,5,48,"td",5,B6),h()),t&2){let e=n.$implicit,i=n.$index,r=x();g(),B(i===0&&r._firstRowOffset?1:-1),g(),Et(e)}}function qbe(t,n){if(t&1&&(m(0,"th",2)(1,"span",6),f(2),h(),m(3,"span",3),f(4),h()()),t&2){let e=n.$implicit;g(2),N(e.long),g(2),N(e.narrow)}}var Ybe=["*"];function Qbe(t,n){}function Kbe(t,n){if(t&1){let e=q();m(0,"mat-month-view",4),fn("activeDateChange",function(r){k(e);let o=x();return Mn(o.activeDate,r)||(o.activeDate=r),T(r)}),S("_userSelection",function(r){k(e);let o=x();return T(o._dateSelected(r))})("dragStarted",function(r){k(e);let o=x();return T(o._dragStarted(r))})("dragEnded",function(r){k(e);let o=x();return T(o._dragEnded(r))}),h()}if(t&2){let e=x();pn("activeDate",e.activeDate),v("selected",e.selected)("dateFilter",e.dateFilter)("maxDate",e.maxDate)("minDate",e.minDate)("dateClass",e.dateClass)("comparisonStart",e.comparisonStart)("comparisonEnd",e.comparisonEnd)("startDateAccessibleName",e.startDateAccessibleName)("endDateAccessibleName",e.endDateAccessibleName)("activeDrag",e._activeDrag)}}function Zbe(t,n){if(t&1){let e=q();m(0,"mat-year-view",5),fn("activeDateChange",function(r){k(e);let o=x();return Mn(o.activeDate,r)||(o.activeDate=r),T(r)}),S("monthSelected",function(r){k(e);let o=x();return T(o._monthSelectedInYearView(r))})("selectedChange",function(r){k(e);let o=x();return T(o._goToDateInView(r,"month"))}),h()}if(t&2){let e=x();pn("activeDate",e.activeDate),v("selected",e.selected)("dateFilter",e.dateFilter)("maxDate",e.maxDate)("minDate",e.minDate)("dateClass",e.dateClass)}}function Xbe(t,n){if(t&1){let e=q();m(0,"mat-multi-year-view",6),fn("activeDateChange",function(r){k(e);let o=x();return Mn(o.activeDate,r)||(o.activeDate=r),T(r)}),S("yearSelected",function(r){k(e);let o=x();return T(o._yearSelectedInMultiYearView(r))})("selectedChange",function(r){k(e);let o=x();return T(o._goToDateInView(r,"year"))}),h()}if(t&2){let e=x();pn("activeDate",e.activeDate),v("selected",e.selected)("dateFilter",e.dateFilter)("maxDate",e.maxDate)("minDate",e.minDate)("dateClass",e.dateClass)}}function Jbe(t,n){}var e0e=["button"],t0e=[[["","matDatepickerToggleIcon",""]]],i0e=["[matDatepickerToggleIcon]"];function n0e(t,n){t&1&&(ii(),m(0,"svg",2),M(1,"path",3),h())}var gp=(()=>{class t{changes=new z;calendarLabel="Calendar";openCalendarLabel="Open calendar";closeCalendarLabel="Close calendar";prevMonthLabel="Previous month";nextMonthLabel="Next month";prevYearLabel="Previous year";nextYearLabel="Next year";prevMultiYearLabel="Previous 24 years";nextMultiYearLabel="Next 24 years";switchToMonthViewLabel="Choose date";switchToMultiYearViewLabel="Choose month and year";startDateLabel="Start date";endDateLabel="End date";comparisonDateLabel="Comparison range";formatYearRange(e,i){return`${e} \u2013 ${i}`}formatYearRangeLabel(e,i){return`${e} to ${i}`}static \u0275fac=function(i){return new(i||t)};static \u0275prov=R({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),r0e=0,S_=class{value;displayValue;ariaLabel;enabled;cssClasses;compareValue;rawValue;id=r0e++;constructor(n,e,i,r,o={},a=n,s){this.value=n,this.displayValue=e,this.ariaLabel=i,this.enabled=r,this.cssClasses=o,this.compareValue=a,this.rawValue=s}},o0e={passive:!1,capture:!0},Sw={passive:!0,capture:!0},R6={passive:!0},fp=(()=>{class t{_elementRef=u(Y);_ngZone=u(ae);_platform=u(Ye);_intl=u(gp);_eventCleanups;_skipNextFocus;_focusActiveCellAfterViewChecked=!1;label;rows;todayValue;startValue;endValue;labelMinRequiredCells;numCols=7;activeCell=0;ngAfterViewChecked(){this._focusActiveCellAfterViewChecked&&(this._focusActiveCell(),this._focusActiveCellAfterViewChecked=!1)}isRange=!1;cellAspectRatio=1;comparisonStart;comparisonEnd;previewStart=null;previewEnd=null;startDateAccessibleName;endDateAccessibleName;selectedValueChange=new U;previewChange=new U;activeDateChange=new U;dragStarted=new U;dragEnded=new U;_firstRowOffset;_cellPadding;_cellWidth;_startDateLabelId;_endDateLabelId;_comparisonStartDateLabelId;_comparisonEndDateLabelId;_didDragSinceMouseDown=!1;_injector=u(de);comparisonDateAccessibleName=this._intl.comparisonDateLabel;_trackRow=e=>e;constructor(){let e=u(ze),i=u(et);this._startDateLabelId=i.getId("mat-calendar-body-start-"),this._endDateLabelId=i.getId("mat-calendar-body-end-"),this._comparisonStartDateLabelId=i.getId("mat-calendar-body-comparison-start-"),this._comparisonEndDateLabelId=i.getId("mat-calendar-body-comparison-end-"),u(ft).load(Oi),this._ngZone.runOutsideAngular(()=>{let r=this._elementRef.nativeElement,o=[e.listen(r,"touchmove",this._touchmoveHandler,o0e),e.listen(r,"mouseenter",this._enterHandler,Sw),e.listen(r,"focus",this._enterHandler,Sw),e.listen(r,"mouseleave",this._leaveHandler,Sw),e.listen(r,"blur",this._leaveHandler,Sw),e.listen(r,"mousedown",this._mousedownHandler,R6),e.listen(r,"touchstart",this._mousedownHandler,R6)];this._platform.isBrowser&&o.push(e.listen("window","mouseup",this._mouseupHandler),e.listen("window","touchend",this._touchendHandler)),this._eventCleanups=o})}_cellClicked(e,i){this._didDragSinceMouseDown||e.enabled&&this.selectedValueChange.emit({value:e.value,event:i})}_emitActiveDateChange(e,i){e.enabled&&this.activeDateChange.emit({value:e.value,event:i})}_isSelected(e){return this.startValue===e||this.endValue===e}ngOnChanges(e){let i=e.numCols,{rows:r,numCols:o}=this;(e.rows||i)&&(this._firstRowOffset=r&&r.length&&r[0].length?o-r[0].length:0),(e.cellAspectRatio||i||!this._cellPadding)&&(this._cellPadding=`${50*this.cellAspectRatio/o}%`),(i||!this._cellWidth)&&(this._cellWidth=`${100/o}%`)}ngOnDestroy(){this._eventCleanups.forEach(e=>e())}_isActiveCell(e,i){let r=e*this.numCols+i;return e&&(r-=this._firstRowOffset),r==this.activeCell}_focusActiveCell(e=!0){vt(()=>{setTimeout(()=>{let i=this._elementRef.nativeElement.querySelector(".mat-calendar-body-active");i&&(e||(this._skipNextFocus=!0),i.focus())})},{injector:this._injector})}_scheduleFocusActiveCellAfterViewChecked(){this._focusActiveCellAfterViewChecked=!0}_isRangeStart(e){return oA(e,this.startValue,this.endValue)}_isRangeEnd(e){return aA(e,this.startValue,this.endValue)}_isInRange(e){return sA(e,this.startValue,this.endValue,this.isRange)}_isComparisonStart(e){return oA(e,this.comparisonStart,this.comparisonEnd)}_isComparisonBridgeStart(e,i,r){if(!this._isComparisonStart(e)||this._isRangeStart(e)||!this._isInRange(e))return!1;let o=this.rows[i][r-1];if(!o){let a=this.rows[i-1];o=a&&a[a.length-1]}return o&&!this._isRangeEnd(o.compareValue)}_isComparisonBridgeEnd(e,i,r){if(!this._isComparisonEnd(e)||this._isRangeEnd(e)||!this._isInRange(e))return!1;let o=this.rows[i][r+1];if(!o){let a=this.rows[i+1];o=a&&a[0]}return o&&!this._isRangeStart(o.compareValue)}_isComparisonEnd(e){return aA(e,this.comparisonStart,this.comparisonEnd)}_isInComparisonRange(e){return sA(e,this.comparisonStart,this.comparisonEnd,this.isRange)}_isComparisonIdentical(e){return this.comparisonStart===this.comparisonEnd&&e===this.comparisonStart}_isPreviewStart(e){return oA(e,this.previewStart,this.previewEnd)}_isPreviewEnd(e){return aA(e,this.previewStart,this.previewEnd)}_isInPreview(e){return sA(e,this.previewStart,this.previewEnd,this.isRange)}_getDescribedby(e){if(!this.isRange)return null;if(this.startValue===e&&this.endValue===e)return`${this._startDateLabelId} ${this._endDateLabelId}`;if(this.startValue===e)return this._startDateLabelId;if(this.endValue===e)return this._endDateLabelId;if(this.comparisonStart!==null&&this.comparisonEnd!==null){if(e===this.comparisonStart&&e===this.comparisonEnd)return`${this._comparisonStartDateLabelId} ${this._comparisonEndDateLabelId}`;if(e===this.comparisonStart)return this._comparisonStartDateLabelId;if(e===this.comparisonEnd)return this._comparisonEndDateLabelId}return null}_enterHandler=e=>{if(this._skipNextFocus&&e.type==="focus"){this._skipNextFocus=!1;return}if(e.target&&this.isRange){let i=this._getCellFromElement(e.target);i&&this._ngZone.run(()=>this.previewChange.emit({value:i.enabled?i:null,event:e}))}};_touchmoveHandler=e=>{if(!this.isRange)return;let i=P6(e),r=i?this._getCellFromElement(i):null;i!==e.target&&(this._didDragSinceMouseDown=!0),rA(e.target)&&e.preventDefault(),this._ngZone.run(()=>this.previewChange.emit({value:r?.enabled?r:null,event:e}))};_leaveHandler=e=>{this.previewEnd!==null&&this.isRange&&(e.type!=="blur"&&(this._didDragSinceMouseDown=!0),e.target&&this._getCellFromElement(e.target)&&!(e.relatedTarget&&this._getCellFromElement(e.relatedTarget))&&this._ngZone.run(()=>this.previewChange.emit({value:null,event:e})))};_mousedownHandler=e=>{if(!this.isRange)return;this._didDragSinceMouseDown=!1;let i=e.target&&this._getCellFromElement(e.target);!i||!this._isInRange(i.compareValue)||this._ngZone.run(()=>{this.dragStarted.emit({value:i.rawValue,event:e})})};_mouseupHandler=e=>{if(!this.isRange)return;let i=rA(e.target);if(!i){this._ngZone.run(()=>{this.dragEnded.emit({value:null,event:e})});return}i.closest(".mat-calendar-body")===this._elementRef.nativeElement&&this._ngZone.run(()=>{let r=this._getCellFromElement(i);this.dragEnded.emit({value:r?.rawValue??null,event:e})})};_touchendHandler=e=>{let i=P6(e);i&&this._mouseupHandler({target:i})};_getCellFromElement(e){let i=rA(e);if(i){let r=i.getAttribute("data-mat-row"),o=i.getAttribute("data-mat-col");if(r&&o)return this.rows[parseInt(r)]?.[parseInt(o)]||null}return null}static \u0275fac=function(i){return new(i||t)};static \u0275cmp=E({type:t,selectors:[["","mat-calendar-body",""]],hostAttrs:[1,"mat-calendar-body"],inputs:{label:"label",rows:"rows",todayValue:"todayValue",startValue:"startValue",endValue:"endValue",labelMinRequiredCells:"labelMinRequiredCells",numCols:"numCols",activeCell:"activeCell",isRange:"isRange",cellAspectRatio:"cellAspectRatio",comparisonStart:"comparisonStart",comparisonEnd:"comparisonEnd",previewStart:"previewStart",previewEnd:"previewEnd",startDateAccessibleName:"startDateAccessibleName",endDateAccessibleName:"endDateAccessibleName"},outputs:{selectedValueChange:"selectedValueChange",previewChange:"previewChange",activeDateChange:"activeDateChange",dragStarted:"dragStarted",dragEnded:"dragEnded"},exportAs:["matCalendarBody"],features:[Oe],attrs:Hbe,decls:11,vars:11,consts:[["aria-hidden","true"],["role","row"],[1,"mat-calendar-body-hidden-label",3,"id"],[1,"mat-calendar-body-label"],[1,"mat-calendar-body-label",3,"paddingTop","paddingBottom"],["role","gridcell",1,"mat-calendar-body-cell-container",3,"width","paddingTop","paddingBottom"],["role","gridcell",1,"mat-calendar-body-cell-container"],["type","button",1,"mat-calendar-body-cell",3,"click","focus","ngClass","tabindex"],[1,"mat-calendar-body-cell-content","mat-focus-indicator"],["aria-hidden","true",1,"mat-calendar-body-cell-preview"]],template:function(i,r){i&1&&(V(0,Ube,3,6,"tr",0),Mt(1,Gbe,4,1,"tr",1,zbe,!0),m(3,"span",2),f(4),h(),m(5,"span",2),f(6),h(),m(7,"span",2),f(8),h(),m(9,"span",2),f(10),h()),i&2&&(B(r._firstRowOffset.mat-calendar-body-cell-content:not(.mat-calendar-body-selected):not(.mat-calendar-body-comparison-identical){color:var(--mat-datepicker-calendar-date-disabled-state-text-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent))}.mat-calendar-body-disabled>.mat-calendar-body-today:not(.mat-calendar-body-selected):not(.mat-calendar-body-comparison-identical){border-color:var(--mat-datepicker-calendar-date-today-disabled-state-outline-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent))}@media(forced-colors: active){.mat-calendar-body-disabled{opacity:.5}}.mat-calendar-body-cell-content{top:5%;left:5%;z-index:1;display:flex;align-items:center;justify-content:center;box-sizing:border-box;width:90%;height:90%;line-height:1;border-width:1px;border-style:solid;border-radius:999px;color:var(--mat-datepicker-calendar-date-text-color, var(--mat-sys-on-surface));border-color:var(--mat-datepicker-calendar-date-outline-color, transparent)}.mat-calendar-body-cell-content.mat-focus-indicator{position:absolute}@media(forced-colors: active){.mat-calendar-body-cell-content{border:none}}.cdk-keyboard-focused .mat-calendar-body-active>.mat-calendar-body-cell-content:not(.mat-calendar-body-selected):not(.mat-calendar-body-comparison-identical),.cdk-program-focused .mat-calendar-body-active>.mat-calendar-body-cell-content:not(.mat-calendar-body-selected):not(.mat-calendar-body-comparison-identical){background-color:var(--mat-datepicker-calendar-date-focus-state-background-color, color-mix(in srgb, var(--mat-sys-on-surface) calc(var(--mat-sys-focus-state-layer-opacity) * 100%), transparent))}@media(hover: hover){.mat-calendar-body-cell:not(.mat-calendar-body-disabled):hover>.mat-calendar-body-cell-content:not(.mat-calendar-body-selected):not(.mat-calendar-body-comparison-identical){background-color:var(--mat-datepicker-calendar-date-hover-state-background-color, color-mix(in srgb, var(--mat-sys-on-surface) calc(var(--mat-sys-hover-state-layer-opacity) * 100%), transparent))}}.mat-calendar-body-selected{background-color:var(--mat-datepicker-calendar-date-selected-state-background-color, var(--mat-sys-primary));color:var(--mat-datepicker-calendar-date-selected-state-text-color, var(--mat-sys-on-primary))}.mat-calendar-body-disabled>.mat-calendar-body-selected{background-color:var(--mat-datepicker-calendar-date-selected-disabled-state-background-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent))}.mat-calendar-body-selected.mat-calendar-body-today{box-shadow:inset 0 0 0 1px var(--mat-datepicker-calendar-date-today-selected-state-outline-color, var(--mat-sys-primary))}.mat-calendar-body-in-range::before{background:var(--mat-datepicker-calendar-date-in-range-state-background-color, var(--mat-sys-primary-container))}.mat-calendar-body-comparison-identical,.mat-calendar-body-in-comparison-range::before{background:var(--mat-datepicker-calendar-date-in-comparison-range-state-background-color, var(--mat-sys-tertiary-container))}.mat-calendar-body-comparison-identical,.mat-calendar-body-in-comparison-range::before{background:var(--mat-datepicker-calendar-date-in-comparison-range-state-background-color, var(--mat-sys-tertiary-container))}.mat-calendar-body-comparison-bridge-start::before,[dir=rtl] .mat-calendar-body-comparison-bridge-end::before{background:linear-gradient(to right, var(--mat-datepicker-calendar-date-in-range-state-background-color, var(--mat-sys-primary-container)) 50%, var(--mat-datepicker-calendar-date-in-comparison-range-state-background-color, var(--mat-sys-tertiary-container)) 50%)}.mat-calendar-body-comparison-bridge-end::before,[dir=rtl] .mat-calendar-body-comparison-bridge-start::before{background:linear-gradient(to left, var(--mat-datepicker-calendar-date-in-range-state-background-color, var(--mat-sys-primary-container)) 50%, var(--mat-datepicker-calendar-date-in-comparison-range-state-background-color, var(--mat-sys-tertiary-container)) 50%)}.mat-calendar-body-in-range>.mat-calendar-body-comparison-identical,.mat-calendar-body-in-comparison-range.mat-calendar-body-in-range::after{background:var(--mat-datepicker-calendar-date-in-overlap-range-state-background-color, var(--mat-sys-secondary-container))}.mat-calendar-body-comparison-identical.mat-calendar-body-selected,.mat-calendar-body-in-comparison-range>.mat-calendar-body-selected{background:var(--mat-datepicker-calendar-date-in-overlap-range-selected-state-background-color, var(--mat-sys-secondary))}@media(forced-colors: active){.mat-datepicker-popup:not(:empty),.mat-calendar-body-cell:not(.mat-calendar-body-in-range) .mat-calendar-body-selected{outline:solid 1px}.mat-calendar-body-today{outline:dotted 1px}.mat-calendar-body-cell::before,.mat-calendar-body-cell::after,.mat-calendar-body-selected{background:none}.mat-calendar-body-in-range::before,.mat-calendar-body-comparison-bridge-start::before,.mat-calendar-body-comparison-bridge-end::before{border-top:solid 1px;border-bottom:solid 1px}.mat-calendar-body-range-start::before{border-left:solid 1px}[dir=rtl] .mat-calendar-body-range-start::before{border-left:0;border-right:solid 1px}.mat-calendar-body-range-end::before{border-right:solid 1px}[dir=rtl] .mat-calendar-body-range-end::before{border-right:0;border-left:solid 1px}.mat-calendar-body-in-comparison-range::before{border-top:dashed 1px;border-bottom:dashed 1px}.mat-calendar-body-comparison-start::before{border-left:dashed 1px}[dir=rtl] .mat-calendar-body-comparison-start::before{border-left:0;border-right:dashed 1px}.mat-calendar-body-comparison-end::before{border-right:dashed 1px}[dir=rtl] .mat-calendar-body-comparison-end::before{border-right:0;border-left:dashed 1px}} +`],encapsulation:2,changeDetection:0})}return t})();function nA(t){return t?.nodeName==="TD"}function rA(t){let n;return nA(t)?n=t:nA(t.parentNode)?n=t.parentNode:nA(t.parentNode?.parentNode)&&(n=t.parentNode.parentNode),n?.getAttribute("data-mat-row")!=null?n:null}function oA(t,n,e){return e!==null&&n!==e&&t=n&&t===e}function sA(t,n,e,i){return i&&n!==null&&e!==null&&n!==e&&t>=n&&t<=e}function P6(t){let n=t.changedTouches[0];return document.elementFromPoint(n.clientX,n.clientY)}var ka=class{start;end;_disableStructuralEquivalency;constructor(n,e){this.start=n,this.end=e}},k_=(()=>{class t{selection;_adapter;_selectionChanged=new z;selectionChanged=this._selectionChanged;constructor(e,i){this.selection=e,this._adapter=i,this.selection=e}updateSelection(e,i){let r=this.selection;this.selection=e,this._selectionChanged.next({selection:e,source:i,oldValue:r})}ngOnDestroy(){this._selectionChanged.complete()}_isValidDateInstance(e){return this._adapter.isDateInstance(e)&&this._adapter.isValid(e)}static \u0275fac=function(i){jd()};static \u0275prov=R({token:t,factory:t.\u0275fac})}return t})(),a0e=(()=>{class t extends k_{constructor(e){super(null,e)}add(e){super.updateSelection(e,this)}isValid(){return this.selection!=null&&this._isValidDateInstance(this.selection)}isComplete(){return this.selection!=null}clone(){let e=new t(this._adapter);return e.updateSelection(this.selection,this),e}static \u0275fac=function(i){return new(i||t)(pe(Wi))};static \u0275prov=R({token:t,factory:t.\u0275fac})}return t})();function s0e(t,n){return t||new a0e(n)}var j6={provide:k_,deps:[[new ws,new dc,k_],Wi],useFactory:s0e};var H6=new O("MAT_DATE_RANGE_SELECTION_STRATEGY");var lA=7,l0e=0,F6=(()=>{class t{_changeDetectorRef=u(ye);_dateFormats=u(Ls,{optional:!0});_dateAdapter=u(Wi,{optional:!0});_dir=u(Yt,{optional:!0});_rangeStrategy=u(H6,{optional:!0});_rerenderSubscription=ke.EMPTY;_selectionKeyPressed;get activeDate(){return this._activeDate}set activeDate(e){let i=this._activeDate,r=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e))||this._dateAdapter.today();this._activeDate=this._dateAdapter.clampDate(r,this.minDate,this.maxDate),this._hasSameMonthAndYear(i,this._activeDate)||this._init()}_activeDate;get selected(){return this._selected}set selected(e){e instanceof ka?this._selected=e:this._selected=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e)),this._setRanges(this._selected)}_selected;get minDate(){return this._minDate}set minDate(e){this._minDate=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e))}_minDate;get maxDate(){return this._maxDate}set maxDate(e){this._maxDate=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e))}_maxDate;dateFilter;dateClass;comparisonStart;comparisonEnd;startDateAccessibleName;endDateAccessibleName;activeDrag=null;selectedChange=new U;_userSelection=new U;dragStarted=new U;dragEnded=new U;activeDateChange=new U;_matCalendarBody;_monthLabel=he("");_weeks=he([]);_firstWeekOffset=he(0);_rangeStart=he(null);_rangeEnd=he(null);_comparisonRangeStart=he(null);_comparisonRangeEnd=he(null);_previewStart=he(null);_previewEnd=he(null);_isRange=he(!1);_todayDate=he(null);_weekdays=he([]);constructor(){u(ft).load(ro),this._activeDate=this._dateAdapter.today()}ngAfterContentInit(){this._rerenderSubscription=this._dateAdapter.localeChanges.pipe(Ue(null)).subscribe(()=>this._init())}ngOnChanges(e){let i=e.comparisonStart||e.comparisonEnd;i&&!i.firstChange&&this._setRanges(this.selected),e.activeDrag&&!this.activeDrag&&this._clearPreview()}ngOnDestroy(){this._rerenderSubscription.unsubscribe()}_dateSelected(e){let i=e.value,r=this._getDateFromDayOfMonth(i),o,a;this._selected instanceof ka?(o=this._getDateInCurrentMonth(this._selected.start),a=this._getDateInCurrentMonth(this._selected.end)):o=a=this._getDateInCurrentMonth(this._selected),(o!==i||a!==i)&&this.selectedChange.emit(r),this._userSelection.emit({value:r,event:e.event}),this._clearPreview(),this._changeDetectorRef.markForCheck()}_updateActiveDate(e){let i=e.value,r=this._activeDate;this.activeDate=this._getDateFromDayOfMonth(i),this._dateAdapter.compareDate(r,this.activeDate)&&this.activeDateChange.emit(this._activeDate)}_handleCalendarBodyKeydown(e){let i=this._activeDate,r=this._isRtl();switch(e.keyCode){case 37:this.activeDate=this._dateAdapter.addCalendarDays(this._activeDate,r?1:-1);break;case 39:this.activeDate=this._dateAdapter.addCalendarDays(this._activeDate,r?-1:1);break;case 38:this.activeDate=this._dateAdapter.addCalendarDays(this._activeDate,-7);break;case 40:this.activeDate=this._dateAdapter.addCalendarDays(this._activeDate,7);break;case 36:this.activeDate=this._dateAdapter.addCalendarDays(this._activeDate,1-this._dateAdapter.getDate(this._activeDate));break;case 35:this.activeDate=this._dateAdapter.addCalendarDays(this._activeDate,this._dateAdapter.getNumDaysInMonth(this._activeDate)-this._dateAdapter.getDate(this._activeDate));break;case 33:this.activeDate=e.altKey?this._dateAdapter.addCalendarYears(this._activeDate,-1):this._dateAdapter.addCalendarMonths(this._activeDate,-1);break;case 34:this.activeDate=e.altKey?this._dateAdapter.addCalendarYears(this._activeDate,1):this._dateAdapter.addCalendarMonths(this._activeDate,1);break;case 13:case 32:this._selectionKeyPressed=!0,this._canSelect(this._activeDate)&&e.preventDefault();return;case 27:this._previewEnd()!=null&&!Gt(e)&&(this._clearPreview(),this.activeDrag?this.dragEnded.emit({value:null,event:e}):(this.selectedChange.emit(null),this._userSelection.emit({value:null,event:e})),e.preventDefault(),e.stopPropagation());return;default:return}this._dateAdapter.compareDate(i,this.activeDate)&&(this.activeDateChange.emit(this.activeDate),this._focusActiveCellAfterViewChecked()),e.preventDefault()}_handleCalendarBodyKeyup(e){(e.keyCode===32||e.keyCode===13)&&(this._selectionKeyPressed&&this._canSelect(this._activeDate)&&this._dateSelected({value:this._dateAdapter.getDate(this._activeDate),event:e}),this._selectionKeyPressed=!1)}_init(){this._setRanges(this.selected),this._todayDate.set(this._getCellCompareValue(this._dateAdapter.today())),this._monthLabel.set(this._dateFormats.display.monthLabel?this._dateAdapter.format(this.activeDate,this._dateFormats.display.monthLabel):this._dateAdapter.getMonthNames("short")[this._dateAdapter.getMonth(this.activeDate)].toLocaleUpperCase());let e=this._dateAdapter.createDate(this._dateAdapter.getYear(this.activeDate),this._dateAdapter.getMonth(this.activeDate),1);this._firstWeekOffset.set((lA+this._dateAdapter.getDayOfWeek(e)-this._dateAdapter.getFirstDayOfWeek())%lA),this._initWeekdays(),this._createWeekCells(),this._changeDetectorRef.markForCheck()}_focusActiveCell(e){this._matCalendarBody._focusActiveCell(e)}_focusActiveCellAfterViewChecked(){this._matCalendarBody._scheduleFocusActiveCellAfterViewChecked()}_previewChanged({event:e,value:i}){if(this._rangeStrategy){let r=i?i.rawValue:null,o=this._rangeStrategy.createPreview(r,this.selected,e);if(this._previewStart.set(this._getCellCompareValue(o.start)),this._previewEnd.set(this._getCellCompareValue(o.end)),this.activeDrag&&r){let a=this._rangeStrategy.createDrag?.(this.activeDrag.value,this.selected,r,e);a&&(this._previewStart.set(this._getCellCompareValue(a.start)),this._previewEnd.set(this._getCellCompareValue(a.end)))}}}_dragEnded(e){if(this.activeDrag)if(e.value){let i=this._rangeStrategy?.createDrag?.(this.activeDrag.value,this.selected,e.value,e.event);this.dragEnded.emit({value:i??null,event:e.event})}else this.dragEnded.emit({value:null,event:e.event})}_getDateFromDayOfMonth(e){return this._dateAdapter.createDate(this._dateAdapter.getYear(this.activeDate),this._dateAdapter.getMonth(this.activeDate),e)}_initWeekdays(){let e=this._dateAdapter.getFirstDayOfWeek(),i=this._dateAdapter.getDayOfWeekNames("narrow"),o=this._dateAdapter.getDayOfWeekNames("long").map((a,s)=>({long:a,narrow:i[s],id:l0e++}));this._weekdays.set(o.slice(e).concat(o.slice(0,e)))}_createWeekCells(){let e=this._dateAdapter.getNumDaysInMonth(this.activeDate),i=this._dateAdapter.getDateNames(),r=[[]];for(let o=0,a=this._firstWeekOffset();o=0)&&(!this.maxDate||this._dateAdapter.compareDate(e,this.maxDate)<=0)&&(!this.dateFilter||this.dateFilter(e))}_getDateInCurrentMonth(e){return e&&this._hasSameMonthAndYear(e,this.activeDate)?this._dateAdapter.getDate(e):null}_hasSameMonthAndYear(e,i){return!!(e&&i&&this._dateAdapter.getMonth(e)==this._dateAdapter.getMonth(i)&&this._dateAdapter.getYear(e)==this._dateAdapter.getYear(i))}_getCellCompareValue(e){if(e){let i=this._dateAdapter.getYear(e),r=this._dateAdapter.getMonth(e),o=this._dateAdapter.getDate(e);return new Date(i,r,o).getTime()}return null}_isRtl(){return this._dir&&this._dir.value==="rtl"}_setRanges(e){e instanceof ka?(this._rangeStart.set(this._getCellCompareValue(e.start)),this._rangeEnd.set(this._getCellCompareValue(e.end)),this._isRange.set(!0)):(this._rangeStart.set(this._getCellCompareValue(e)),this._rangeEnd.set(this._rangeStart()),this._isRange.set(!1)),this._comparisonRangeStart.set(this._getCellCompareValue(this.comparisonStart)),this._comparisonRangeEnd.set(this._getCellCompareValue(this.comparisonEnd))}_canSelect(e){return!this.dateFilter||this.dateFilter(e)}_clearPreview(){this._previewStart.set(null),this._previewEnd.set(null)}static \u0275fac=function(i){return new(i||t)};static \u0275cmp=E({type:t,selectors:[["mat-month-view"]],viewQuery:function(i,r){if(i&1&&ie(fp,5),i&2){let o;j(o=H())&&(r._matCalendarBody=o.first)}},inputs:{activeDate:"activeDate",selected:"selected",minDate:"minDate",maxDate:"maxDate",dateFilter:"dateFilter",dateClass:"dateClass",comparisonStart:"comparisonStart",comparisonEnd:"comparisonEnd",startDateAccessibleName:"startDateAccessibleName",endDateAccessibleName:"endDateAccessibleName",activeDrag:"activeDrag"},outputs:{selectedChange:"selectedChange",_userSelection:"_userSelection",dragStarted:"dragStarted",dragEnded:"dragEnded",activeDateChange:"activeDateChange"},exportAs:["matMonthView"],features:[Oe],decls:8,vars:14,consts:[["role","grid",1,"mat-calendar-table"],[1,"mat-calendar-table-header"],["scope","col"],["aria-hidden","true"],["colspan","7",1,"mat-calendar-table-header-divider"],["mat-calendar-body","",3,"selectedValueChange","activeDateChange","previewChange","dragStarted","dragEnded","keyup","keydown","label","rows","todayValue","startValue","endValue","comparisonStart","comparisonEnd","previewStart","previewEnd","isRange","labelMinRequiredCells","activeCell","startDateAccessibleName","endDateAccessibleName"],[1,"cdk-visually-hidden"]],template:function(i,r){i&1&&(m(0,"table",0)(1,"thead",1)(2,"tr"),Mt(3,qbe,5,2,"th",2,B6),h(),m(5,"tr",3),M(6,"th",4),h()(),m(7,"tbody",5),S("selectedValueChange",function(a){return r._dateSelected(a)})("activeDateChange",function(a){return r._updateActiveDate(a)})("previewChange",function(a){return r._previewChanged(a)})("dragStarted",function(a){return r.dragStarted.emit(a)})("dragEnded",function(a){return r._dragEnded(a)})("keyup",function(a){return r._handleCalendarBodyKeyup(a)})("keydown",function(a){return r._handleCalendarBodyKeydown(a)}),h()()),i&2&&(g(3),Et(r._weekdays()),g(4),v("label",r._monthLabel())("rows",r._weeks())("todayValue",r._todayDate())("startValue",r._rangeStart())("endValue",r._rangeEnd())("comparisonStart",r._comparisonRangeStart())("comparisonEnd",r._comparisonRangeEnd())("previewStart",r._previewStart())("previewEnd",r._previewEnd())("isRange",r._isRange())("labelMinRequiredCells",3)("activeCell",r._dateAdapter.getDate(r.activeDate)-1)("startDateAccessibleName",r.startDateAccessibleName)("endDateAccessibleName",r.endDateAccessibleName))},dependencies:[fp],encapsulation:2,changeDetection:0})}return t})(),Bo=24,cA=4,N6=(()=>{class t{_changeDetectorRef=u(ye);_dateAdapter=u(Wi,{optional:!0});_dir=u(Yt,{optional:!0});_rerenderSubscription=ke.EMPTY;_selectionKeyPressed;get activeDate(){return this._activeDate}set activeDate(e){let i=this._activeDate,r=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e))||this._dateAdapter.today();this._activeDate=this._dateAdapter.clampDate(r,this.minDate,this.maxDate),z6(this._dateAdapter,i,this._activeDate,this.minDate,this.maxDate)||this._init()}_activeDate;get selected(){return this._selected}set selected(e){e instanceof ka?this._selected=e:this._selected=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e)),this._setSelectedYear(e)}_selected;get minDate(){return this._minDate}set minDate(e){this._minDate=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e))}_minDate;get maxDate(){return this._maxDate}set maxDate(e){this._maxDate=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e))}_maxDate;dateFilter;dateClass;selectedChange=new U;yearSelected=new U;activeDateChange=new U;_matCalendarBody;_years=he([]);_todayYear=he(0);_selectedYear=he(null);constructor(){this._dateAdapter,this._activeDate=this._dateAdapter.today()}ngAfterContentInit(){this._rerenderSubscription=this._dateAdapter.localeChanges.pipe(Ue(null)).subscribe(()=>this._init())}ngOnDestroy(){this._rerenderSubscription.unsubscribe()}_init(){this._todayYear.set(this._dateAdapter.getYear(this._dateAdapter.today()));let i=this._dateAdapter.getYear(this._activeDate)-E_(this._dateAdapter,this.activeDate,this.minDate,this.maxDate),r=[];for(let o=0,a=[];othis._createCellForYear(s))),a=[]);this._years.set(r),this._changeDetectorRef.markForCheck()}_yearSelected(e){let i=e.value,r=this._dateAdapter.createDate(i,0,1),o=this._getDateFromYear(i);this.yearSelected.emit(r),this.selectedChange.emit(o)}_updateActiveDate(e){let i=e.value,r=this._activeDate;this.activeDate=this._getDateFromYear(i),this._dateAdapter.compareDate(r,this.activeDate)&&this.activeDateChange.emit(this.activeDate)}_handleCalendarBodyKeydown(e){let i=this._activeDate,r=this._isRtl();switch(e.keyCode){case 37:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,r?1:-1);break;case 39:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,r?-1:1);break;case 38:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,-cA);break;case 40:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,cA);break;case 36:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,-E_(this._dateAdapter,this.activeDate,this.minDate,this.maxDate));break;case 35:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,Bo-E_(this._dateAdapter,this.activeDate,this.minDate,this.maxDate)-1);break;case 33:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,e.altKey?-Bo*10:-Bo);break;case 34:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,e.altKey?Bo*10:Bo);break;case 13:case 32:this._selectionKeyPressed=!0;break;default:return}this._dateAdapter.compareDate(i,this.activeDate)&&this.activeDateChange.emit(this.activeDate),this._focusActiveCellAfterViewChecked(),e.preventDefault()}_handleCalendarBodyKeyup(e){(e.keyCode===32||e.keyCode===13)&&(this._selectionKeyPressed&&this._yearSelected({value:this._dateAdapter.getYear(this._activeDate),event:e}),this._selectionKeyPressed=!1)}_getActiveCell(){return E_(this._dateAdapter,this.activeDate,this.minDate,this.maxDate)}_focusActiveCell(){this._matCalendarBody._focusActiveCell()}_focusActiveCellAfterViewChecked(){this._matCalendarBody._scheduleFocusActiveCellAfterViewChecked()}_getDateFromYear(e){let i=this._dateAdapter.getMonth(this.activeDate),r=this._dateAdapter.getNumDaysInMonth(this._dateAdapter.createDate(e,i,1));return this._dateAdapter.createDate(e,i,Math.min(this._dateAdapter.getDate(this.activeDate),r))}_createCellForYear(e){let i=this._dateAdapter.createDate(e,0,1),r=this._dateAdapter.getYearName(i),o=this.dateClass?this.dateClass(i,"multi-year"):void 0;return new S_(e,r,r,this._shouldEnableYear(e),o)}_shouldEnableYear(e){if(e==null||this.maxDate&&e>this._dateAdapter.getYear(this.maxDate)||this.minDate&&e{class t{_changeDetectorRef=u(ye);_dateFormats=u(Ls,{optional:!0});_dateAdapter=u(Wi,{optional:!0});_dir=u(Yt,{optional:!0});_rerenderSubscription=ke.EMPTY;_selectionKeyPressed;get activeDate(){return this._activeDate}set activeDate(e){let i=this._activeDate,r=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e))||this._dateAdapter.today();this._activeDate=this._dateAdapter.clampDate(r,this.minDate,this.maxDate),this._dateAdapter.getYear(i)!==this._dateAdapter.getYear(this._activeDate)&&this._init()}_activeDate;get selected(){return this._selected}set selected(e){e instanceof ka?this._selected=e:this._selected=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e)),this._setSelectedMonth(e)}_selected;get minDate(){return this._minDate}set minDate(e){this._minDate=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e))}_minDate;get maxDate(){return this._maxDate}set maxDate(e){this._maxDate=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e))}_maxDate;dateFilter;dateClass;selectedChange=new U;monthSelected=new U;activeDateChange=new U;_matCalendarBody;_months=he([]);_yearLabel=he("");_todayMonth=he(null);_selectedMonth=he(null);constructor(){this._activeDate=this._dateAdapter.today()}ngAfterContentInit(){this._rerenderSubscription=this._dateAdapter.localeChanges.pipe(Ue(null)).subscribe(()=>this._init())}ngOnDestroy(){this._rerenderSubscription.unsubscribe()}_monthSelected(e){let i=e.value,r=this._dateAdapter.createDate(this._dateAdapter.getYear(this.activeDate),i,1);this.monthSelected.emit(r);let o=this._getDateFromMonth(i);this.selectedChange.emit(o)}_updateActiveDate(e){let i=e.value,r=this._activeDate;this.activeDate=this._getDateFromMonth(i),this._dateAdapter.compareDate(r,this.activeDate)&&this.activeDateChange.emit(this.activeDate)}_handleCalendarBodyKeydown(e){let i=this._activeDate,r=this._isRtl();switch(e.keyCode){case 37:this.activeDate=this._dateAdapter.addCalendarMonths(this._activeDate,r?1:-1);break;case 39:this.activeDate=this._dateAdapter.addCalendarMonths(this._activeDate,r?-1:1);break;case 38:this.activeDate=this._dateAdapter.addCalendarMonths(this._activeDate,-4);break;case 40:this.activeDate=this._dateAdapter.addCalendarMonths(this._activeDate,4);break;case 36:this.activeDate=this._dateAdapter.addCalendarMonths(this._activeDate,-this._dateAdapter.getMonth(this._activeDate));break;case 35:this.activeDate=this._dateAdapter.addCalendarMonths(this._activeDate,11-this._dateAdapter.getMonth(this._activeDate));break;case 33:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,e.altKey?-10:-1);break;case 34:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,e.altKey?10:1);break;case 13:case 32:this._selectionKeyPressed=!0;break;default:return}this._dateAdapter.compareDate(i,this.activeDate)&&(this.activeDateChange.emit(this.activeDate),this._focusActiveCellAfterViewChecked()),e.preventDefault()}_handleCalendarBodyKeyup(e){(e.keyCode===32||e.keyCode===13)&&(this._selectionKeyPressed&&this._monthSelected({value:this._dateAdapter.getMonth(this._activeDate),event:e}),this._selectionKeyPressed=!1)}_init(){this._setSelectedMonth(this.selected),this._todayMonth.set(this._getMonthInCurrentYear(this._dateAdapter.today())),this._yearLabel.set(this._dateAdapter.getYearName(this.activeDate));let e=this._dateAdapter.getMonthNames("short");this._months.set([[0,1,2,3],[4,5,6,7],[8,9,10,11]].map(i=>i.map(r=>this._createCellForMonth(r,e[r])))),this._changeDetectorRef.markForCheck()}_focusActiveCell(){this._matCalendarBody._focusActiveCell()}_focusActiveCellAfterViewChecked(){this._matCalendarBody._scheduleFocusActiveCellAfterViewChecked()}_getMonthInCurrentYear(e){return e&&this._dateAdapter.getYear(e)==this._dateAdapter.getYear(this.activeDate)?this._dateAdapter.getMonth(e):null}_getDateFromMonth(e){let i=this._dateAdapter.createDate(this._dateAdapter.getYear(this.activeDate),e,1),r=this._dateAdapter.getNumDaysInMonth(i);return this._dateAdapter.createDate(this._dateAdapter.getYear(this.activeDate),e,Math.min(this._dateAdapter.getDate(this.activeDate),r))}_createCellForMonth(e,i){let r=this._dateAdapter.createDate(this._dateAdapter.getYear(this.activeDate),e,1),o=this._dateAdapter.format(r,this._dateFormats.display.monthYearA11yLabel),a=this.dateClass?this.dateClass(r,"year"):void 0;return new S_(e,i.toLocaleUpperCase(),o,this._shouldEnableMonth(e),a)}_shouldEnableMonth(e){let i=this._dateAdapter.getYear(this.activeDate);if(e==null||this._isYearAndMonthAfterMaxDate(i,e)||this._isYearAndMonthBeforeMinDate(i,e))return!1;if(!this.dateFilter)return!0;let r=this._dateAdapter.createDate(i,e,1);for(let o=r;this._dateAdapter.getMonth(o)==e;o=this._dateAdapter.addCalendarDays(o,1))if(this.dateFilter(o))return!0;return!1}_isYearAndMonthAfterMaxDate(e,i){if(this.maxDate){let r=this._dateAdapter.getYear(this.maxDate),o=this._dateAdapter.getMonth(this.maxDate);return e>r||e===r&&i>o}return!1}_isYearAndMonthBeforeMinDate(e,i){if(this.minDate){let r=this._dateAdapter.getYear(this.minDate),o=this._dateAdapter.getMonth(this.minDate);return e{class t{_intl=u(gp);calendar=u(dA);_dateAdapter=u(Wi,{optional:!0});_dateFormats=u(Ls,{optional:!0});_periodButtonText;_periodButtonDescription;_periodButtonLabel;_prevButtonLabel;_nextButtonLabel;constructor(){u(ft).load(ro);let e=u(ye);this._updateLabels(),this.calendar.stateChanges.subscribe(()=>{this._updateLabels(),e.markForCheck()})}get periodButtonText(){return this._periodButtonText}get periodButtonDescription(){return this._periodButtonDescription}get periodButtonLabel(){return this._periodButtonLabel}get prevButtonLabel(){return this._prevButtonLabel}get nextButtonLabel(){return this._nextButtonLabel}currentPeriodClicked(){this.calendar.currentView=this.calendar.currentView=="month"?"multi-year":"month"}previousClicked(){this.previousEnabled()&&(this.calendar.activeDate=this.calendar.currentView=="month"?this._dateAdapter.addCalendarMonths(this.calendar.activeDate,-1):this._dateAdapter.addCalendarYears(this.calendar.activeDate,this.calendar.currentView=="year"?-1:-Bo))}nextClicked(){this.nextEnabled()&&(this.calendar.activeDate=this.calendar.currentView=="month"?this._dateAdapter.addCalendarMonths(this.calendar.activeDate,1):this._dateAdapter.addCalendarYears(this.calendar.activeDate,this.calendar.currentView=="year"?1:Bo))}previousEnabled(){return this.calendar.minDate?!this.calendar.minDate||!this._isSameView(this.calendar.activeDate,this.calendar.minDate):!0}nextEnabled(){return!this.calendar.maxDate||!this._isSameView(this.calendar.activeDate,this.calendar.maxDate)}_updateLabels(){let e=this.calendar,i=this._intl,r=this._dateAdapter;e.currentView==="month"?(this._periodButtonText=r.format(e.activeDate,this._dateFormats.display.monthYearLabel).toLocaleUpperCase(),this._periodButtonDescription=r.format(e.activeDate,this._dateFormats.display.monthYearLabel).toLocaleUpperCase(),this._periodButtonLabel=i.switchToMultiYearViewLabel,this._prevButtonLabel=i.prevMonthLabel,this._nextButtonLabel=i.nextMonthLabel):e.currentView==="year"?(this._periodButtonText=r.getYearName(e.activeDate),this._periodButtonDescription=r.getYearName(e.activeDate),this._periodButtonLabel=i.switchToMonthViewLabel,this._prevButtonLabel=i.prevYearLabel,this._nextButtonLabel=i.nextYearLabel):(this._periodButtonText=i.formatYearRange(...this._formatMinAndMaxYearLabels()),this._periodButtonDescription=i.formatYearRangeLabel(...this._formatMinAndMaxYearLabels()),this._periodButtonLabel=i.switchToMonthViewLabel,this._prevButtonLabel=i.prevMultiYearLabel,this._nextButtonLabel=i.nextMultiYearLabel)}_isSameView(e,i){return this.calendar.currentView=="month"?this._dateAdapter.getYear(e)==this._dateAdapter.getYear(i)&&this._dateAdapter.getMonth(e)==this._dateAdapter.getMonth(i):this.calendar.currentView=="year"?this._dateAdapter.getYear(e)==this._dateAdapter.getYear(i):z6(this._dateAdapter,e,i,this.calendar.minDate,this.calendar.maxDate)}_formatMinAndMaxYearLabels(){let i=this._dateAdapter.getYear(this.calendar.activeDate)-E_(this._dateAdapter,this.calendar.activeDate,this.calendar.minDate,this.calendar.maxDate),r=i+Bo-1,o=this._dateAdapter.getYearName(this._dateAdapter.createDate(i,0,1)),a=this._dateAdapter.getYearName(this._dateAdapter.createDate(r,0,1));return[o,a]}_periodButtonLabelId=u(et).getId("mat-calendar-period-label-");static \u0275fac=function(i){return new(i||t)};static \u0275cmp=E({type:t,selectors:[["mat-calendar-header"]],exportAs:["matCalendarHeader"],ngContentSelectors:Ybe,decls:17,vars:13,consts:[[1,"mat-calendar-header"],[1,"mat-calendar-controls"],["aria-live","polite",1,"cdk-visually-hidden",3,"id"],["matButton","","type","button",1,"mat-calendar-period-button",3,"click"],["aria-hidden","true"],["viewBox","0 0 10 5","focusable","false","aria-hidden","true",1,"mat-calendar-arrow"],["points","0,0 5,5 10,0"],[1,"mat-calendar-spacer"],["matIconButton","","type","button","disabledInteractive","",1,"mat-calendar-previous-button",3,"click","disabled","matTooltip"],["viewBox","0 0 24 24","focusable","false","aria-hidden","true"],["d","M15.41 7.41L14 6l-6 6 6 6 1.41-1.41L10.83 12z"],["matIconButton","","type","button","disabledInteractive","",1,"mat-calendar-next-button",3,"click","disabled","matTooltip"],["d","M10 6L8.59 7.41 13.17 12l-4.58 4.59L10 18l6-6z"]],template:function(i,r){i&1&&(Ee(),m(0,"div",0)(1,"div",1)(2,"span",2),f(3),h(),m(4,"button",3),S("click",function(){return r.currentPeriodClicked()}),m(5,"span",4),f(6),h(),ii(),m(7,"svg",5),M(8,"polygon",6),h()(),Qo(),M(9,"div",7),ne(10),m(11,"button",8),S("click",function(){return r.previousClicked()}),ii(),m(12,"svg",9),M(13,"path",10),h()(),Qo(),m(14,"button",11),S("click",function(){return r.nextClicked()}),ii(),m(15,"svg",9),M(16,"path",12),h()()()()),i&2&&(g(2),v("id",r._periodButtonLabelId),g(),N(r.periodButtonDescription),g(),X("aria-label",r.periodButtonLabel)("aria-describedby",r._periodButtonLabelId),g(2),N(r.periodButtonText),g(),G("mat-calendar-invert",r.calendar.currentView!=="month"),g(4),v("disabled",!r.previousEnabled())("matTooltip",r.prevButtonLabel),X("aria-label",r.prevButtonLabel),g(3),v("disabled",!r.nextEnabled())("matTooltip",r.nextButtonLabel),X("aria-label",r.nextButtonLabel))},dependencies:[_t,Ft,ur],encapsulation:2,changeDetection:0})}return t})(),dA=(()=>{class t{_dateAdapter=u(Wi,{optional:!0});_dateFormats=u(Ls,{optional:!0});_changeDetectorRef=u(ye);_elementRef=u(Y);headerComponent;_calendarHeaderPortal;_intlChanges;_moveFocusOnNextTick=!1;get startAt(){return this._startAt}set startAt(e){this._startAt=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e))}_startAt;startView="month";get selected(){return this._selected}set selected(e){e instanceof ka?this._selected=e:this._selected=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e))}_selected;get minDate(){return this._minDate}set minDate(e){this._minDate=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e))}_minDate;get maxDate(){return this._maxDate}set maxDate(e){this._maxDate=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e))}_maxDate;dateFilter;dateClass;comparisonStart;comparisonEnd;startDateAccessibleName;endDateAccessibleName;selectedChange=new U;yearSelected=new U;monthSelected=new U;viewChanged=new U(!0);_userSelection=new U;_userDragDrop=new U;monthView;yearView;multiYearView;get activeDate(){return this._clampedActiveDate}set activeDate(e){this._clampedActiveDate=this._dateAdapter.clampDate(e,this.minDate,this.maxDate),this.stateChanges.next(),this._changeDetectorRef.markForCheck()}_clampedActiveDate;get currentView(){return this._currentView}set currentView(e){let i=this._currentView!==e?e:null;this._currentView=e,this._moveFocusOnNextTick=!0,this._changeDetectorRef.markForCheck(),i&&(this.stateChanges.next(),this.viewChanged.emit(i))}_currentView;_activeDrag=null;stateChanges=new z;constructor(){this._intlChanges=u(gp).changes.subscribe(()=>{this._changeDetectorRef.markForCheck(),this.stateChanges.next()})}ngAfterContentInit(){this._calendarHeaderPortal=new ao(this.headerComponent||$6),this.activeDate=this.startAt||this._dateAdapter.today(),this._currentView=this.startView}ngAfterViewChecked(){this._moveFocusOnNextTick&&(this._moveFocusOnNextTick=!1,this.focusActiveCell())}ngOnDestroy(){this._intlChanges.unsubscribe(),this.stateChanges.complete()}ngOnChanges(e){let i=e.minDate&&!this._dateAdapter.sameDate(e.minDate.previousValue,e.minDate.currentValue)?e.minDate:void 0,r=e.maxDate&&!this._dateAdapter.sameDate(e.maxDate.previousValue,e.maxDate.currentValue)?e.maxDate:void 0,o=i||r||e.dateFilter;if(o&&!o.firstChange){let a=this._getCurrentViewComponent();a&&(this._elementRef.nativeElement.contains(So())&&(this._moveFocusOnNextTick=!0),this._changeDetectorRef.detectChanges(),a._init())}this.stateChanges.next()}focusActiveCell(){this._getCurrentViewComponent()._focusActiveCell(!1)}updateTodaysDate(){this._getCurrentViewComponent()._init()}_dateSelected(e){let i=e.value;(this.selected instanceof ka||i&&!this._dateAdapter.sameDate(i,this.selected))&&this.selectedChange.emit(i),this._userSelection.emit(e)}_yearSelectedInMultiYearView(e){this.yearSelected.emit(e)}_monthSelectedInYearView(e){this.monthSelected.emit(e)}_goToDateInView(e,i){this.activeDate=e,this.currentView=i}_dragStarted(e){this._activeDrag=e}_dragEnded(e){this._activeDrag&&(e.value&&this._userDragDrop.emit(e),this._activeDrag=null)}_getCurrentViewComponent(){return this.monthView||this.yearView||this.multiYearView}static \u0275fac=function(i){return new(i||t)};static \u0275cmp=E({type:t,selectors:[["mat-calendar"]],viewQuery:function(i,r){if(i&1&&(ie(F6,5),ie(L6,5),ie(N6,5)),i&2){let o;j(o=H())&&(r.monthView=o.first),j(o=H())&&(r.yearView=o.first),j(o=H())&&(r.multiYearView=o.first)}},hostAttrs:[1,"mat-calendar"],inputs:{headerComponent:"headerComponent",startAt:"startAt",startView:"startView",selected:"selected",minDate:"minDate",maxDate:"maxDate",dateFilter:"dateFilter",dateClass:"dateClass",comparisonStart:"comparisonStart",comparisonEnd:"comparisonEnd",startDateAccessibleName:"startDateAccessibleName",endDateAccessibleName:"endDateAccessibleName"},outputs:{selectedChange:"selectedChange",yearSelected:"yearSelected",monthSelected:"monthSelected",viewChanged:"viewChanged",_userSelection:"_userSelection",_userDragDrop:"_userDragDrop"},exportAs:["matCalendar"],features:[Ce([j6]),Oe],decls:5,vars:2,consts:[[3,"cdkPortalOutlet"],["cdkMonitorSubtreeFocus","","tabindex","-1",1,"mat-calendar-content"],[3,"activeDate","selected","dateFilter","maxDate","minDate","dateClass","comparisonStart","comparisonEnd","startDateAccessibleName","endDateAccessibleName","activeDrag"],[3,"activeDate","selected","dateFilter","maxDate","minDate","dateClass"],[3,"activeDateChange","_userSelection","dragStarted","dragEnded","activeDate","selected","dateFilter","maxDate","minDate","dateClass","comparisonStart","comparisonEnd","startDateAccessibleName","endDateAccessibleName","activeDrag"],[3,"activeDateChange","monthSelected","selectedChange","activeDate","selected","dateFilter","maxDate","minDate","dateClass"],[3,"activeDateChange","yearSelected","selectedChange","activeDate","selected","dateFilter","maxDate","minDate","dateClass"]],template:function(i,r){if(i&1&&(A(0,Qbe,0,0,"ng-template",0),m(1,"div",1),V(2,Kbe,1,11,"mat-month-view",2)(3,Zbe,1,6,"mat-year-view",3)(4,Xbe,1,6,"mat-multi-year-view",3),h()),i&2){let o;v("cdkPortalOutlet",r._calendarHeaderPortal),g(2),B((o=r.currentView)==="month"?2:o==="year"?3:o==="multi-year"?4:-1)}},dependencies:[Ir,Kf,F6,L6,N6],styles:[`.mat-calendar{display:block;line-height:normal;font-family:var(--mat-datepicker-calendar-text-font, var(--mat-sys-body-medium-font));font-size:var(--mat-datepicker-calendar-text-size, var(--mat-sys-body-medium-size))}.mat-calendar-header{padding:8px 8px 0 8px}.mat-calendar-content{padding:0 8px 8px 8px;outline:none}.mat-calendar-controls{display:flex;align-items:center;margin:5% calc(4.7142857143% - 16px)}.mat-calendar-spacer{flex:1 1 auto}.mat-calendar-period-button{min-width:0;margin:0 8px;font-size:var(--mat-datepicker-calendar-period-button-text-size, var(--mat-sys-title-small-size));font-weight:var(--mat-datepicker-calendar-period-button-text-weight, var(--mat-sys-title-small-weight));--mat-button-text-label-text-color: var(--mat-datepicker-calendar-period-button-text-color, var(--mat-sys-on-surface-variant))}.mat-calendar-arrow{display:inline-block;width:10px;height:5px;margin:0 0 0 5px;vertical-align:middle;fill:var(--mat-datepicker-calendar-period-button-icon-color, var(--mat-sys-on-surface-variant))}.mat-calendar-arrow.mat-calendar-invert{transform:rotate(180deg)}[dir=rtl] .mat-calendar-arrow{margin:0 5px 0 0}@media(forced-colors: active){.mat-calendar-arrow{fill:CanvasText}}.mat-datepicker-content .mat-calendar-previous-button:not(.mat-mdc-button-disabled),.mat-datepicker-content .mat-calendar-next-button:not(.mat-mdc-button-disabled){color:var(--mat-datepicker-calendar-navigation-button-icon-color, var(--mat-sys-on-surface-variant))}[dir=rtl] .mat-calendar-previous-button,[dir=rtl] .mat-calendar-next-button{transform:rotate(180deg)}.mat-calendar-table{border-spacing:0;border-collapse:collapse;width:100%}.mat-calendar-table-header th{text-align:center;padding:0 0 8px 0;color:var(--mat-datepicker-calendar-header-text-color, var(--mat-sys-on-surface-variant));font-size:var(--mat-datepicker-calendar-header-text-size, var(--mat-sys-title-small-size));font-weight:var(--mat-datepicker-calendar-header-text-weight, var(--mat-sys-title-small-weight))}.mat-calendar-table-header-divider{position:relative;height:1px}.mat-calendar-table-header-divider::after{content:"";position:absolute;top:0;left:-8px;right:-8px;height:1px;background:var(--mat-datepicker-calendar-header-divider-color, transparent)}.mat-calendar-body-cell-content::before{margin:calc(calc(var(--mat-focus-indicator-border-width, 3px) + 3px)*-1)}.mat-calendar-body-cell:focus .mat-focus-indicator::before{content:""} +`],encapsulation:2,changeDetection:0})}return t})(),W6=new O("mat-datepicker-scroll-strategy",{providedIn:"root",factory:()=>{let t=u(de);return()=>Tn(t)}});function d0e(t){let n=u(de);return()=>Tn(n)}var u0e={provide:W6,deps:[],useFactory:d0e},G6=(()=>{class t{_elementRef=u(Y);_animationsDisabled=Qe();_changeDetectorRef=u(ye);_globalModel=u(k_);_dateAdapter=u(Wi);_ngZone=u(ae);_rangeSelectionStrategy=u(H6,{optional:!0});_stateChanges;_model;_eventCleanups;_animationFallback;_calendar;color;datepicker;comparisonStart;comparisonEnd;startDateAccessibleName;endDateAccessibleName;_isAbove;_animationDone=new z;_isAnimating=!1;_closeButtonText;_closeButtonFocused;_actionsPortal=null;_dialogLabelId;constructor(){if(u(ft).load(ro),this._closeButtonText=u(gp).closeCalendarLabel,!this._animationsDisabled){let e=this._elementRef.nativeElement,i=u(ze);this._eventCleanups=this._ngZone.runOutsideAngular(()=>[i.listen(e,"animationstart",this._handleAnimationEvent),i.listen(e,"animationend",this._handleAnimationEvent),i.listen(e,"animationcancel",this._handleAnimationEvent)])}}ngAfterViewInit(){this._stateChanges=this.datepicker.stateChanges.subscribe(()=>{this._changeDetectorRef.markForCheck()}),this._calendar.focusActiveCell()}ngOnDestroy(){clearTimeout(this._animationFallback),this._eventCleanups?.forEach(e=>e()),this._stateChanges?.unsubscribe(),this._animationDone.complete()}_handleUserSelection(e){let i=this._model.selection,r=e.value,o=i instanceof ka;if(o&&this._rangeSelectionStrategy){let a=this._rangeSelectionStrategy.selectionFinished(r,i,e.event);this._model.updateSelection(a,this)}else r&&(o||!this._dateAdapter.sameDate(r,i))&&this._model.add(r);(!this._model||this._model.isComplete())&&!this._actionsPortal&&this.datepicker.close()}_handleUserDragDrop(e){this._model.updateSelection(e.value,this)}_startExitAnimation(){this._elementRef.nativeElement.classList.add("mat-datepicker-content-exit"),this._animationsDisabled?this._animationDone.next():(clearTimeout(this._animationFallback),this._animationFallback=setTimeout(()=>{this._isAnimating||this._animationDone.next()},200))}_handleAnimationEvent=e=>{let i=this._elementRef.nativeElement;e.target!==i||!e.animationName.startsWith("_mat-datepicker-content")||(clearTimeout(this._animationFallback),this._isAnimating=e.type==="animationstart",i.classList.toggle("mat-datepicker-content-animating",this._isAnimating),this._isAnimating||this._animationDone.next())};_getSelected(){return this._model.selection}_applyPendingSelection(){this._model!==this._globalModel&&this._globalModel.updateSelection(this._model.selection,this)}_assignActions(e,i){this._model=e?this._globalModel.clone():this._globalModel,this._actionsPortal=e,i&&this._changeDetectorRef.detectChanges()}static \u0275fac=function(i){return new(i||t)};static \u0275cmp=E({type:t,selectors:[["mat-datepicker-content"]],viewQuery:function(i,r){if(i&1&&ie(dA,5),i&2){let o;j(o=H())&&(r._calendar=o.first)}},hostAttrs:[1,"mat-datepicker-content"],hostVars:6,hostBindings:function(i,r){i&2&&(at(r.color?"mat-"+r.color:""),G("mat-datepicker-content-touch",r.datepicker.touchUi)("mat-datepicker-content-animations-enabled",!r._animationsDisabled))},inputs:{color:"color"},exportAs:["matDatepickerContent"],decls:5,vars:26,consts:[["cdkTrapFocus","","role","dialog",1,"mat-datepicker-content-container"],[3,"yearSelected","monthSelected","viewChanged","_userSelection","_userDragDrop","id","startAt","startView","minDate","maxDate","dateFilter","headerComponent","selected","dateClass","comparisonStart","comparisonEnd","startDateAccessibleName","endDateAccessibleName"],[3,"cdkPortalOutlet"],["type","button","matButton","elevated",1,"mat-datepicker-close-button",3,"focus","blur","click","color"]],template:function(i,r){i&1&&(m(0,"div",0)(1,"mat-calendar",1),S("yearSelected",function(a){return r.datepicker._selectYear(a)})("monthSelected",function(a){return r.datepicker._selectMonth(a)})("viewChanged",function(a){return r.datepicker._viewChanged(a)})("_userSelection",function(a){return r._handleUserSelection(a)})("_userDragDrop",function(a){return r._handleUserDragDrop(a)}),h(),A(2,Jbe,0,0,"ng-template",2),m(3,"button",3),S("focus",function(){return r._closeButtonFocused=!0})("blur",function(){return r._closeButtonFocused=!1})("click",function(){return r.datepicker.close()}),f(4),h()()),i&2&&(G("mat-datepicker-content-container-with-custom-header",r.datepicker.calendarHeaderComponent)("mat-datepicker-content-container-with-actions",r._actionsPortal),X("aria-modal",!0)("aria-labelledby",r._dialogLabelId??void 0),g(),at(r.datepicker.panelClass),v("id",r.datepicker.id)("startAt",r.datepicker.startAt)("startView",r.datepicker.startView)("minDate",r.datepicker._getMinDate())("maxDate",r.datepicker._getMaxDate())("dateFilter",r.datepicker._getDateFilter())("headerComponent",r.datepicker.calendarHeaderComponent)("selected",r._getSelected())("dateClass",r.datepicker.dateClass)("comparisonStart",r.comparisonStart)("comparisonEnd",r.comparisonEnd)("startDateAccessibleName",r.startDateAccessibleName)("endDateAccessibleName",r.endDateAccessibleName),g(),v("cdkPortalOutlet",r._actionsPortal),g(),G("cdk-visually-hidden",!r._closeButtonFocused),v("color",r.color||"primary"),g(),N(r._closeButtonText))},dependencies:[ES,dA,Ir,_t],styles:[`@keyframes _mat-datepicker-content-dropdown-enter{from{opacity:0;transform:scaleY(0.8)}to{opacity:1;transform:none}}@keyframes _mat-datepicker-content-dialog-enter{from{opacity:0;transform:scale(0.8)}to{opacity:1;transform:none}}@keyframes _mat-datepicker-content-exit{from{opacity:1}to{opacity:0}}.mat-datepicker-content{display:block;background-color:var(--mat-datepicker-calendar-container-background-color, var(--mat-sys-surface-container-high));color:var(--mat-datepicker-calendar-container-text-color, var(--mat-sys-on-surface));box-shadow:var(--mat-datepicker-calendar-container-elevation-shadow, 0px 0px 0px 0px rgba(0, 0, 0, 0.2), 0px 0px 0px 0px rgba(0, 0, 0, 0.14), 0px 0px 0px 0px rgba(0, 0, 0, 0.12));border-radius:var(--mat-datepicker-calendar-container-shape, var(--mat-sys-corner-large))}.mat-datepicker-content.mat-datepicker-content-animations-enabled{animation:_mat-datepicker-content-dropdown-enter 120ms cubic-bezier(0, 0, 0.2, 1)}.mat-datepicker-content .mat-calendar{width:296px;height:354px}.mat-datepicker-content .mat-datepicker-content-container-with-custom-header .mat-calendar{height:auto}.mat-datepicker-content .mat-datepicker-close-button{position:absolute;top:100%;left:0;margin-top:8px}.mat-datepicker-content-animating .mat-datepicker-content .mat-datepicker-close-button{display:none}.mat-datepicker-content-container{display:flex;flex-direction:column;justify-content:space-between}.mat-datepicker-content-touch{display:block;max-height:80vh;box-shadow:var(--mat-datepicker-calendar-container-touch-elevation-shadow, 0px 0px 0px 0px rgba(0, 0, 0, 0.2), 0px 0px 0px 0px rgba(0, 0, 0, 0.14), 0px 0px 0px 0px rgba(0, 0, 0, 0.12));border-radius:var(--mat-datepicker-calendar-container-touch-shape, var(--mat-sys-corner-extra-large));position:relative;overflow:visible}.mat-datepicker-content-touch.mat-datepicker-content-animations-enabled{animation:_mat-datepicker-content-dialog-enter 150ms cubic-bezier(0, 0, 0.2, 1)}.mat-datepicker-content-touch .mat-datepicker-content-container{min-height:312px;max-height:788px;min-width:250px;max-width:750px}.mat-datepicker-content-touch .mat-calendar{width:100%;height:auto}.mat-datepicker-content-exit.mat-datepicker-content-animations-enabled{animation:_mat-datepicker-content-exit 100ms linear}@media all and (orientation: landscape){.mat-datepicker-content-touch .mat-datepicker-content-container{width:64vh;height:80vh}}@media all and (orientation: portrait){.mat-datepicker-content-touch .mat-datepicker-content-container{width:80vw;height:100vw}.mat-datepicker-content-touch .mat-datepicker-content-container-with-actions{height:115vw}} +`],encapsulation:2,changeDetection:0})}return t})(),V6=(()=>{class t{_injector=u(de);_viewContainerRef=u(st);_dateAdapter=u(Wi,{optional:!0});_dir=u(Yt,{optional:!0});_model=u(k_);_animationsDisabled=Qe();_scrollStrategy=u(W6);_inputStateChanges=ke.EMPTY;_document=u(_e);calendarHeaderComponent;get startAt(){return this._startAt||(this.datepickerInput?this.datepickerInput.getStartValue():null)}set startAt(e){this._startAt=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e))}_startAt;startView="month";get color(){return this._color||(this.datepickerInput?this.datepickerInput.getThemePalette():void 0)}set color(e){this._color=e}_color;touchUi=!1;get disabled(){return this._disabled===void 0&&this.datepickerInput?this.datepickerInput.disabled:!!this._disabled}set disabled(e){e!==this._disabled&&(this._disabled=e,this.stateChanges.next(void 0))}_disabled;xPosition="start";yPosition="below";restoreFocus=!0;yearSelected=new U;monthSelected=new U;viewChanged=new U(!0);dateClass;openedStream=new U;closedStream=new U;get panelClass(){return this._panelClass}set panelClass(e){this._panelClass=KL(e)}_panelClass;get opened(){return this._opened}set opened(e){e?this.open():this.close()}_opened=!1;id=u(et).getId("mat-datepicker-");_getMinDate(){return this.datepickerInput&&this.datepickerInput.min}_getMaxDate(){return this.datepickerInput&&this.datepickerInput.max}_getDateFilter(){return this.datepickerInput&&this.datepickerInput.dateFilter}_overlayRef;_componentRef;_focusedElementBeforeOpen=null;_backdropHarnessClass=`${this.id}-backdrop`;_actionsPortal;datepickerInput;stateChanges=new z;_changeDetectorRef=u(ye);constructor(){this._dateAdapter,this._model.selectionChanged.subscribe(()=>{this._changeDetectorRef.markForCheck()})}ngOnChanges(e){let i=e.xPosition||e.yPosition;if(i&&!i.firstChange&&this._overlayRef){let r=this._overlayRef.getConfig().positionStrategy;r instanceof Ch&&(this._setConnectedPositions(r),this.opened&&this._overlayRef.updatePosition())}this.stateChanges.next(void 0)}ngOnDestroy(){this._destroyOverlay(),this.close(),this._inputStateChanges.unsubscribe(),this.stateChanges.complete()}select(e){this._model.add(e)}_selectYear(e){this.yearSelected.emit(e)}_selectMonth(e){this.monthSelected.emit(e)}_viewChanged(e){this.viewChanged.emit(e)}registerInput(e){return this.datepickerInput,this._inputStateChanges.unsubscribe(),this.datepickerInput=e,this._inputStateChanges=e.stateChanges.subscribe(()=>this.stateChanges.next(void 0)),this._model}registerActions(e){this._actionsPortal,this._actionsPortal=e,this._componentRef?.instance._assignActions(e,!0)}removeActions(e){e===this._actionsPortal&&(this._actionsPortal=null,this._componentRef?.instance._assignActions(null,!0))}open(){this._opened||this.disabled||this._componentRef?.instance._isAnimating||(this.datepickerInput,this._focusedElementBeforeOpen=So(),this._openOverlay(),this._opened=!0,this.openedStream.emit())}close(){if(!this._opened||this._componentRef?.instance._isAnimating)return;let e=this.restoreFocus&&this._focusedElementBeforeOpen&&typeof this._focusedElementBeforeOpen.focus=="function",i=()=>{this._opened&&(this._opened=!1,this.closedStream.emit())};if(this._componentRef){let{instance:r,location:o}=this._componentRef;r._animationDone.pipe(mt(1)).subscribe(()=>{let a=this._document.activeElement;e&&(!a||a===this._document.activeElement||o.nativeElement.contains(a))&&this._focusedElementBeforeOpen.focus(),this._focusedElementBeforeOpen=null,this._destroyOverlay()}),r._startExitAnimation()}e?setTimeout(i):i()}_applyPendingSelection(){this._componentRef?.instance?._applyPendingSelection()}_forwardContentValues(e){e.datepicker=this,e.color=this.color,e._dialogLabelId=this.datepickerInput.getOverlayLabelId(),e._assignActions(this._actionsPortal,!1)}_openOverlay(){this._destroyOverlay();let e=this.touchUi,i=new ao(G6,this._viewContainerRef),r=this._overlayRef=qr(this._injector,new Gr({positionStrategy:e?this._getDialogStrategy():this._getDropdownStrategy(),hasBackdrop:!0,backdropClass:[e?"cdk-overlay-dark-backdrop":"mat-overlay-transparent-backdrop",this._backdropHarnessClass],direction:this._dir||"ltr",scrollStrategy:e?Tc(this._injector):this._scrollStrategy(),panelClass:`mat-datepicker-${e?"dialog":"popup"}`,disableAnimations:this._animationsDisabled}));this._getCloseStream(r).subscribe(o=>{o&&o.preventDefault(),this.close()}),r.keydownEvents().subscribe(o=>{let a=o.keyCode;(a===38||a===40||a===37||a===39||a===33||a===34)&&o.preventDefault()}),this._componentRef=r.attach(i),this._forwardContentValues(this._componentRef.instance),e||vt(()=>{r.updatePosition()},{injector:this._injector})}_destroyOverlay(){this._overlayRef&&(this._overlayRef.dispose(),this._overlayRef=this._componentRef=null)}_getDialogStrategy(){return zs(this._injector).centerHorizontally().centerVertically()}_getDropdownStrategy(){let e=Xa(this._injector,this.datepickerInput.getConnectedOverlayOrigin()).withTransformOriginOn(".mat-datepicker-content").withFlexibleDimensions(!1).withViewportMargin(8).withLockedPosition();return this._setConnectedPositions(e)}_setConnectedPositions(e){let i=this.xPosition==="end"?"end":"start",r=i==="start"?"end":"start",o=this.yPosition==="above"?"bottom":"top",a=o==="top"?"bottom":"top";return e.withPositions([{originX:i,originY:a,overlayX:i,overlayY:o},{originX:i,originY:o,overlayX:i,overlayY:a},{originX:r,originY:a,overlayX:r,overlayY:o},{originX:r,originY:o,overlayX:r,overlayY:a}])}_getCloseStream(e){let i=["ctrlKey","shiftKey","metaKey"];return it(e.backdropClick(),e.detachments(),e.keydownEvents().pipe(ce(r=>r.keyCode===27&&!Gt(r)||this.datepickerInput&&Gt(r,"altKey")&&r.keyCode===38&&i.every(o=>!Gt(r,o)))))}static \u0275fac=function(i){return new(i||t)};static \u0275dir=P({type:t,inputs:{calendarHeaderComponent:"calendarHeaderComponent",startAt:"startAt",startView:"startView",color:"color",touchUi:[2,"touchUi","touchUi",L],disabled:[2,"disabled","disabled",L],xPosition:"xPosition",yPosition:"yPosition",restoreFocus:[2,"restoreFocus","restoreFocus",L],dateClass:"dateClass",panelClass:"panelClass",opened:[2,"opened","opened",L]},outputs:{yearSelected:"yearSelected",monthSelected:"monthSelected",viewChanged:"viewChanged",openedStream:"opened",closedStream:"closed"},features:[Oe]})}return t})(),q6=(()=>{class t extends V6{static \u0275fac=(()=>{let e;return function(r){return(e||(e=ge(t)))(r||t)}})();static \u0275cmp=E({type:t,selectors:[["mat-datepicker"]],exportAs:["matDatepicker"],features:[Ce([j6,{provide:V6,useExisting:t}]),le],decls:0,vars:0,template:function(i,r){},encapsulation:2,changeDetection:0})}return t})(),pp=class{target;targetElement;value;constructor(n,e){this.target=n,this.targetElement=e,this.value=this.target.value}},m0e=(()=>{class t{_elementRef=u(Y);_dateAdapter=u(Wi,{optional:!0});_dateFormats=u(Ls,{optional:!0});_isInitialized;get value(){return this._model?this._getValueFromModel(this._model.selection):this._pendingValue}set value(e){this._assignValueProgrammatically(e)}_model;get disabled(){return!!this._disabled||this._parentDisabled()}set disabled(e){let i=e,r=this._elementRef.nativeElement;this._disabled!==i&&(this._disabled=i,this.stateChanges.next(void 0)),i&&this._isInitialized&&r.blur&&r.blur()}_disabled;dateChange=new U;dateInput=new U;stateChanges=new z;_onTouched=()=>{};_validatorOnChange=()=>{};_cvaOnChange=()=>{};_valueChangesSubscription=ke.EMPTY;_localeSubscription=ke.EMPTY;_pendingValue;_parseValidator=()=>this._lastValueValid?null:{matDatepickerParse:{text:this._elementRef.nativeElement.value}};_filterValidator=e=>{let i=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e.value));return!i||this._matchesFilter(i)?null:{matDatepickerFilter:!0}};_minValidator=e=>{let i=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e.value)),r=this._getMinDate();return!r||!i||this._dateAdapter.compareDate(r,i)<=0?null:{matDatepickerMin:{min:r,actual:i}}};_maxValidator=e=>{let i=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e.value)),r=this._getMaxDate();return!r||!i||this._dateAdapter.compareDate(r,i)>=0?null:{matDatepickerMax:{max:r,actual:i}}};_getValidators(){return[this._parseValidator,this._minValidator,this._maxValidator,this._filterValidator]}_registerModel(e){this._model=e,this._valueChangesSubscription.unsubscribe(),this._pendingValue&&this._assignValue(this._pendingValue),this._valueChangesSubscription=this._model.selectionChanged.subscribe(i=>{if(this._shouldHandleChangeEvent(i)){let r=this._getValueFromModel(i.selection);this._lastValueValid=this._isValidValue(r),this._cvaOnChange(r),this._onTouched(),this._formatValue(r),this.dateInput.emit(new pp(this,this._elementRef.nativeElement)),this.dateChange.emit(new pp(this,this._elementRef.nativeElement))}})}_lastValueValid=!1;constructor(){this._localeSubscription=this._dateAdapter.localeChanges.subscribe(()=>{this._assignValueProgrammatically(this.value)})}ngAfterViewInit(){this._isInitialized=!0}ngOnChanges(e){h0e(e,this._dateAdapter)&&this.stateChanges.next(void 0)}ngOnDestroy(){this._valueChangesSubscription.unsubscribe(),this._localeSubscription.unsubscribe(),this.stateChanges.complete()}registerOnValidatorChange(e){this._validatorOnChange=e}validate(e){return this._validator?this._validator(e):null}writeValue(e){this._assignValueProgrammatically(e)}registerOnChange(e){this._cvaOnChange=e}registerOnTouched(e){this._onTouched=e}setDisabledState(e){this.disabled=e}_onKeydown(e){let i=["ctrlKey","shiftKey","metaKey"];Gt(e,"altKey")&&e.keyCode===40&&i.every(o=>!Gt(e,o))&&!this._elementRef.nativeElement.readOnly&&(this._openPopup(),e.preventDefault())}_onInput(e){let i=e.target.value,r=this._lastValueValid,o=this._dateAdapter.parse(i,this._dateFormats.parse.dateInput);this._lastValueValid=this._isValidValue(o),o=this._dateAdapter.getValidDateOrNull(o);let a=!this._dateAdapter.sameDate(o,this.value);!o||a?this._cvaOnChange(o):(i&&!this.value&&this._cvaOnChange(o),r!==this._lastValueValid&&this._validatorOnChange()),a&&(this._assignValue(o),this.dateInput.emit(new pp(this,this._elementRef.nativeElement)))}_onChange(){this.dateChange.emit(new pp(this,this._elementRef.nativeElement))}_onBlur(){this.value&&this._formatValue(this.value),this._onTouched()}_formatValue(e){this._elementRef.nativeElement.value=e!=null?this._dateAdapter.format(e,this._dateFormats.display.dateInput):""}_assignValue(e){this._model?(this._assignValueToModel(e),this._pendingValue=null):this._pendingValue=e}_isValidValue(e){return!e||this._dateAdapter.isValid(e)}_parentDisabled(){return!1}_assignValueProgrammatically(e){e=this._dateAdapter.deserialize(e),this._lastValueValid=this._isValidValue(e),e=this._dateAdapter.getValidDateOrNull(e),this._assignValue(e),this._formatValue(e)}_matchesFilter(e){let i=this._getDateFilter();return!i||i(e)}static \u0275fac=function(i){return new(i||t)};static \u0275dir=P({type:t,inputs:{value:"value",disabled:[2,"disabled","disabled",L]},outputs:{dateChange:"dateChange",dateInput:"dateInput"},features:[Oe]})}return t})();function h0e(t,n){let e=Object.keys(t);for(let i of e){let{previousValue:r,currentValue:o}=t[i];if(n.isDateInstance(r)&&n.isDateInstance(o)){if(!n.sameDate(r,o))return!0}else return!0}return!1}var p0e={provide:dr,useExisting:li(()=>kw),multi:!0},f0e={provide:sa,useExisting:li(()=>kw),multi:!0},kw=(()=>{class t extends m0e{_formField=u(oa,{optional:!0});_closedSubscription=ke.EMPTY;_openedSubscription=ke.EMPTY;set matDatepicker(e){e&&(this._datepicker=e,this._ariaOwns.set(e.opened?e.id:null),this._closedSubscription=e.closedStream.subscribe(()=>{this._onTouched(),this._ariaOwns.set(null)}),this._openedSubscription=e.openedStream.subscribe(()=>{this._ariaOwns.set(e.id)}),this._registerModel(e.registerInput(this)))}_datepicker;_ariaOwns=he(null);get min(){return this._min}set min(e){let i=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e));this._dateAdapter.sameDate(i,this._min)||(this._min=i,this._validatorOnChange())}_min;get max(){return this._max}set max(e){let i=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e));this._dateAdapter.sameDate(i,this._max)||(this._max=i,this._validatorOnChange())}_max;get dateFilter(){return this._dateFilter}set dateFilter(e){let i=this._matchesFilter(this.value);this._dateFilter=e,this._matchesFilter(this.value)!==i&&this._validatorOnChange()}_dateFilter;_validator;constructor(){super(),this._validator=Ve.compose(super._getValidators())}getConnectedOverlayOrigin(){return this._formField?this._formField.getConnectedOverlayOrigin():this._elementRef}getOverlayLabelId(){return this._formField?this._formField.getLabelId():this._elementRef.nativeElement.getAttribute("aria-labelledby")}getThemePalette(){return this._formField?this._formField.color:void 0}getStartValue(){return this.value}ngOnDestroy(){super.ngOnDestroy(),this._closedSubscription.unsubscribe(),this._openedSubscription.unsubscribe()}_openPopup(){this._datepicker&&this._datepicker.open()}_getValueFromModel(e){return e}_assignValueToModel(e){this._model&&this._model.updateSelection(e,this)}_getMinDate(){return this._min}_getMaxDate(){return this._max}_getDateFilter(){return this._dateFilter}_shouldHandleChangeEvent(e){return e.source!==this}static \u0275fac=function(i){return new(i||t)};static \u0275dir=P({type:t,selectors:[["input","matDatepicker",""]],hostAttrs:[1,"mat-datepicker-input"],hostVars:6,hostBindings:function(i,r){i&1&&S("input",function(a){return r._onInput(a)})("change",function(){return r._onChange()})("blur",function(){return r._onBlur()})("keydown",function(a){return r._onKeydown(a)}),i&2&&(pi("disabled",r.disabled),X("aria-haspopup",r._datepicker?"dialog":null)("aria-owns",r._ariaOwns())("min",r.min?r._dateAdapter.toIso8601(r.min):null)("max",r.max?r._dateAdapter.toIso8601(r.max):null)("data-mat-calendar",r._datepicker?r._datepicker.id:null))},inputs:{matDatepicker:"matDatepicker",min:"min",max:"max",dateFilter:[0,"matDatepickerFilter","dateFilter"]},exportAs:["matDatepickerInput"],features:[Ce([p0e,f0e,{provide:kh,useExisting:t}]),le]})}return t})(),g0e=(()=>{class t{static \u0275fac=function(i){return new(i||t)};static \u0275dir=P({type:t,selectors:[["","matDatepickerToggleIcon",""]]})}return t})(),uA=(()=>{class t{_intl=u(gp);_changeDetectorRef=u(ye);_stateChanges=ke.EMPTY;datepicker;tabIndex;ariaLabel;get disabled(){return this._disabled===void 0&&this.datepicker?this.datepicker.disabled:!!this._disabled}set disabled(e){this._disabled=e}_disabled;disableRipple;_customIcon;_button;constructor(){let e=u(new Li("tabindex"),{optional:!0}),i=Number(e);this.tabIndex=i||i===0?i:null}ngOnChanges(e){e.datepicker&&this._watchStateChanges()}ngOnDestroy(){this._stateChanges.unsubscribe()}ngAfterContentInit(){this._watchStateChanges()}_open(e){this.datepicker&&!this.disabled&&(this.datepicker.open(),e.stopPropagation())}_watchStateChanges(){let e=this.datepicker?this.datepicker.stateChanges:Q(),i=this.datepicker&&this.datepicker.datepickerInput?this.datepicker.datepickerInput.stateChanges:Q(),r=this.datepicker?it(this.datepicker.openedStream,this.datepicker.closedStream):Q();this._stateChanges.unsubscribe(),this._stateChanges=it(this._intl.changes,e,i,r).subscribe(()=>this._changeDetectorRef.markForCheck())}static \u0275fac=function(i){return new(i||t)};static \u0275cmp=E({type:t,selectors:[["mat-datepicker-toggle"]],contentQueries:function(i,r,o){if(i&1&&xe(o,g0e,5),i&2){let a;j(a=H())&&(r._customIcon=a.first)}},viewQuery:function(i,r){if(i&1&&ie(e0e,5),i&2){let o;j(o=H())&&(r._button=o.first)}},hostAttrs:[1,"mat-datepicker-toggle"],hostVars:8,hostBindings:function(i,r){i&1&&S("click",function(a){return r._open(a)}),i&2&&(X("tabindex",null)("data-mat-calendar",r.datepicker?r.datepicker.id:null),G("mat-datepicker-toggle-active",r.datepicker&&r.datepicker.opened)("mat-accent",r.datepicker&&r.datepicker.color==="accent")("mat-warn",r.datepicker&&r.datepicker.color==="warn"))},inputs:{datepicker:[0,"for","datepicker"],tabIndex:"tabIndex",ariaLabel:[0,"aria-label","ariaLabel"],disabled:[2,"disabled","disabled",L],disableRipple:"disableRipple"},exportAs:["matDatepickerToggle"],features:[Oe],ngContentSelectors:i0e,decls:4,vars:7,consts:[["button",""],["matIconButton","","type","button",3,"tabIndex","disabled","disableRipple"],["viewBox","0 0 24 24","width","24px","height","24px","fill","currentColor","focusable","false","aria-hidden","true",1,"mat-datepicker-toggle-default-icon"],["d","M19 3h-1V1h-2v2H8V1H6v2H5c-1.11 0-1.99.9-1.99 2L3 19c0 1.1.89 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm0 16H5V8h14v11zM7 10h5v5H7z"]],template:function(i,r){i&1&&(Ee(t0e),m(0,"button",1,0),V(2,n0e,2,0,":svg:svg",2),ne(3),h()),i&2&&(v("tabIndex",r.disabled?-1:r.tabIndex)("disabled",r.disabled)("disableRipple",r.disableRipple),X("aria-haspopup",r.datepicker?"dialog":null)("aria-label",r.ariaLabel||r._intl.openCalendarLabel)("aria-expanded",r.datepicker?r.datepicker.opened:null),g(2),B(r._customIcon?-1:2))},dependencies:[Ft],styles:[`.mat-datepicker-toggle{pointer-events:auto;color:var(--mat-datepicker-toggle-icon-color, var(--mat-sys-on-surface-variant))}.mat-datepicker-toggle button{color:inherit}.mat-datepicker-toggle-active{color:var(--mat-datepicker-toggle-active-state-icon-color, var(--mat-sys-primary))}@media(forced-colors: active){.mat-datepicker-toggle-default-icon{color:CanvasText}} +`],encapsulation:2,changeDetection:0})}return t})();var Y6=(()=>{class t{static \u0275fac=function(i){return new(i||t)};static \u0275mod=ee({type:t});static \u0275inj=J({providers:[gp,u0e],imports:[Fe,cr,El,Oo,De,G6,uA,$6,Tr]})}return t})();function b0e(t,n){t&1&&(m(0,"div",1),M(1,"mat-spinner"),h())}function v0e(t,n){t&1&&(m(0,"mat-error"),f(1," Employee number is required "),h())}function y0e(t,n){t&1&&(m(0,"mat-error"),f(1," First name is required "),h())}function x0e(t,n){t&1&&(m(0,"mat-error"),f(1," Last name is required "),h())}function C0e(t,n){t&1&&(m(0,"mat-error"),f(1," Date of birth is required "),h())}function w0e(t,n){t&1&&(m(0,"mat-error"),f(1," Email is required "),h())}function D0e(t,n){t&1&&(m(0,"mat-error"),f(1," Please enter a valid email "),h())}function M0e(t,n){t&1&&(m(0,"mat-error"),f(1," Phone number is required "),h())}function E0e(t,n){if(t&1&&(m(0,"mat-option",25),f(1),h()),t&2){let e=n.$implicit;v("value",e.value),g(),fe(" ",e.label," ")}}function S0e(t,n){t&1&&(m(0,"mat-error"),f(1," Gender is required "),h())}function k0e(t,n){if(t&1&&(m(0,"mat-option",25),f(1),h()),t&2){let e=n.$implicit;v("value",e.id),g(),fe(" ",e.name," ")}}function T0e(t,n){t&1&&(m(0,"mat-error"),f(1," Department is required "),h())}function I0e(t,n){if(t&1&&(m(0,"mat-option",25),f(1),h()),t&2){let e=n.$implicit;v("value",e.id),g(),fe(" ",e.positionTitle," ")}}function A0e(t,n){t&1&&(m(0,"mat-error"),f(1," Position is required "),h())}function O0e(t,n){t&1&&(m(0,"mat-error"),f(1," Salary is required "),h())}function R0e(t,n){t&1&&(m(0,"mat-error"),f(1," Salary must be greater than 0 "),h())}var mA=(()=>{let n=class n{constructor(){this.fb=u(co),this.router=u(Ae),this.route=u(Ai),this.snackBar=u(_i),this.employeeService=u(rd),this.positionService=u(od),this.departmentService=u(tl),this.loading=!1,this.isEditMode=!1,this.positions=[],this.departments=[],this.genderOptions=[{value:Lu.Male,label:"Male"},{value:Lu.Female,label:"Female"}]}ngOnInit(){this.initForm(),this.loadDependencies(),this.checkEditMode()}initForm(){this.employeeForm=this.fb.group({employeeNumber:["",[Ve.required,Ve.maxLength(50)]],prefix:["",Ve.maxLength(10)],firstName:["",[Ve.required,Ve.maxLength(100)]],middleName:["",Ve.maxLength(100)],lastName:["",[Ve.required,Ve.maxLength(100)]],birthday:[null,Ve.required],gender:[Lu.Male,Ve.required],email:["",[Ve.required,Ve.email,Ve.maxLength(255)]],phone:["",[Ve.required,Ve.maxLength(20)]],salary:[0,[Ve.required,Ve.min(0)]],positionId:["",Ve.required],departmentId:["",Ve.required]})}loadDependencies(){this.departmentService.getAll().subscribe({next:i=>{this.departments=i},error:i=>{console.error("Error loading departments:",i),this.showMessage("Error loading departments")}}),this.positionService.getAll().subscribe({next:i=>{this.positions=i},error:i=>{console.error("Error loading positions:",i),this.showMessage("Error loading positions")}})}checkEditMode(){this.employeeId=this.route.snapshot.paramMap.get("id")||void 0,this.isEditMode=!!this.employeeId,this.isEditMode&&this.employeeId&&this.loadEmployee(this.employeeId)}loadEmployee(i){this.loading=!0,this.employeeService.getById(i).subscribe({next:r=>{this.employeeForm.patchValue({employeeNumber:r.employeeNumber,prefix:r.prefix,firstName:r.firstName,middleName:r.middleName,lastName:r.lastName,birthday:r.birthday||r.dateOfBirth,gender:r.gender,email:r.email,phone:r.phone||r.phoneNumber,salary:r.salary,positionId:r.positionId,departmentId:r.departmentId}),this.loading=!1},error:r=>{console.error("Error loading employee:",r),this.showMessage("Error loading employee"),this.loading=!1}})}onSubmit(){if(this.employeeForm.invalid){this.employeeForm.markAllAsTouched();return}if(this.loading=!0,this.isEditMode&&this.employeeId){let i=I({id:this.employeeId},this.employeeForm.value);this.employeeService.updateEmployee(i).subscribe({next:()=>{this.showMessage("Employee updated successfully"),this.router.navigate(["/employees",this.employeeId])},error:r=>{console.error("Error updating employee:",r),this.showMessage("Error updating employee"),this.loading=!1}})}else{let i=this.employeeForm.value;this.employeeService.createEmployee(i).subscribe({next:r=>{console.log("Employee created - Response:",r),console.log("Employee ID:",r?.id),this.showMessage("Employee created successfully"),r?.id?(console.log("Navigating to detail page:","/employees/"+r.id),this.router.navigate(["/employees",r.id])):(console.warn("No employee ID returned, navigating to list page"),this.router.navigate(["/employees"])),this.loading=!1},error:r=>{console.error("Error creating employee:",r),this.showMessage("Error creating employee"),this.loading=!1}})}}onCancel(){this.router.navigate(["/employees"])}showMessage(i){this.snackBar.open(i,"Close",{duration:3e3,horizontalPosition:"end",verticalPosition:"top"})}getFormTitle(){return this.isEditMode?"Edit Employee":"Create Employee"}};n.\u0275fac=function(r){return new(r||n)},n.\u0275cmp=E({type:n,selectors:[["app-employee-form"]],decls:94,vars:22,consts:[["dobPicker",""],[1,"loading-overlay"],[3,"ngSubmit","formGroup"],[1,"form-section"],[1,"form-row"],["appearance","outline"],["matInput","","formControlName","employeeNumber"],[4,"ngIf"],["matInput","","formControlName","prefix","placeholder","Mr., Mrs., Dr."],["matInput","","formControlName","firstName"],["matInput","","formControlName","middleName"],["matInput","","formControlName","lastName"],["matInput","","formControlName","birthday",3,"matDatepicker"],["matIconSuffix","",3,"for"],["matInput","","type","email","formControlName","email"],["matInput","","formControlName","phone"],["formControlName","gender"],[3,"value",4,"ngFor","ngForOf"],["formControlName","departmentId"],["formControlName","positionId"],["matInput","","type","number","formControlName","salary"],["matTextPrefix",""],[1,"form-actions"],["type","button","mat-stroked-button","",3,"click"],["type","submit","mat-raised-button","","color","primary",3,"disabled"],[3,"value"]],template:function(r,o){if(r&1){let a=q();M(0,"page-header"),m(1,"mat-card")(2,"mat-card-header")(3,"mat-card-title"),f(4),h()(),m(5,"mat-card-content"),V(6,b0e,2,0,"div",1),m(7,"form",2),S("ngSubmit",function(){return k(a),T(o.onSubmit())}),m(8,"div",3)(9,"h3"),f(10,"Personal Information"),h(),m(11,"div",4)(12,"mat-form-field",5)(13,"mat-label"),f(14,"Employee Number"),h(),M(15,"input",6),A(16,v0e,2,0,"mat-error",7),h(),m(17,"mat-form-field",5)(18,"mat-label"),f(19,"Prefix"),h(),M(20,"input",8),h()(),m(21,"div",4)(22,"mat-form-field",5)(23,"mat-label"),f(24,"First Name"),h(),M(25,"input",9),A(26,y0e,2,0,"mat-error",7),h(),m(27,"mat-form-field",5)(28,"mat-label"),f(29,"Middle Name"),h(),M(30,"input",10),h()(),m(31,"div",4)(32,"mat-form-field",5)(33,"mat-label"),f(34,"Last Name"),h(),M(35,"input",11),A(36,x0e,2,0,"mat-error",7),h(),m(37,"mat-form-field",5)(38,"mat-label"),f(39,"Date of Birth"),h(),M(40,"input",12)(41,"mat-datepicker-toggle",13)(42,"mat-datepicker",null,0),A(44,C0e,2,0,"mat-error",7),h()(),m(45,"div",4)(46,"mat-form-field",5)(47,"mat-label"),f(48,"Email"),h(),M(49,"input",14),A(50,w0e,2,0,"mat-error",7)(51,D0e,2,0,"mat-error",7),h(),m(52,"mat-form-field",5)(53,"mat-label"),f(54,"Phone Number"),h(),M(55,"input",15),A(56,M0e,2,0,"mat-error",7),h()(),m(57,"div",4)(58,"mat-form-field",5)(59,"mat-label"),f(60,"Gender"),h(),m(61,"mat-select",16),A(62,E0e,2,2,"mat-option",17),h(),A(63,S0e,2,0,"mat-error",7),h()()(),m(64,"div",3)(65,"h3"),f(66,"Employment Information"),h(),m(67,"div",4)(68,"mat-form-field",5)(69,"mat-label"),f(70,"Department"),h(),m(71,"mat-select",18),A(72,k0e,2,2,"mat-option",17),h(),A(73,T0e,2,0,"mat-error",7),h(),m(74,"mat-form-field",5)(75,"mat-label"),f(76,"Position"),h(),m(77,"mat-select",19),A(78,I0e,2,2,"mat-option",17),h(),A(79,A0e,2,0,"mat-error",7),h()(),m(80,"div",4)(81,"mat-form-field",5)(82,"mat-label"),f(83,"Salary"),h(),M(84,"input",20),m(85,"span",21),f(86,"$\xA0"),h(),A(87,O0e,2,0,"mat-error",7)(88,R0e,2,0,"mat-error",7),h()()(),m(89,"div",22)(90,"button",23),S("click",function(){return k(a),T(o.onCancel())}),f(91," Cancel "),h(),m(92,"button",24),f(93),h()()()()()}if(r&2){let a,s,l,c,d,p,_,b,y,w,C,D,F=Te(43);g(4),N(o.getFormTitle()),g(2),B(o.loading?6:-1),g(),v("formGroup",o.employeeForm),g(9),v("ngIf",(a=o.employeeForm.get("employeeNumber"))==null?null:a.hasError("required")),g(10),v("ngIf",(s=o.employeeForm.get("firstName"))==null?null:s.hasError("required")),g(10),v("ngIf",(l=o.employeeForm.get("lastName"))==null?null:l.hasError("required")),g(4),v("matDatepicker",F),g(),v("for",F),g(3),v("ngIf",(c=o.employeeForm.get("birthday"))==null?null:c.hasError("required")),g(6),v("ngIf",(d=o.employeeForm.get("email"))==null?null:d.hasError("required")),g(),v("ngIf",(p=o.employeeForm.get("email"))==null?null:p.hasError("email")),g(5),v("ngIf",(_=o.employeeForm.get("phone"))==null?null:_.hasError("required")),g(6),v("ngForOf",o.genderOptions),g(),v("ngIf",(b=o.employeeForm.get("gender"))==null?null:b.hasError("required")),g(9),v("ngForOf",o.departments),g(),v("ngIf",(y=o.employeeForm.get("departmentId"))==null?null:y.hasError("required")),g(5),v("ngForOf",o.positions),g(),v("ngIf",(w=o.employeeForm.get("positionId"))==null?null:w.hasError("required")),g(8),v("ngIf",(C=o.employeeForm.get("salary"))==null?null:C.hasError("required")),g(),v("ngIf",(D=o.employeeForm.get("salary"))==null?null:D.hasError("min")),g(4),v("disabled",o.loading),g(),fe(" ",o.isEditMode?"Update":"Create"," ")}},dependencies:[Je,Un,Bt,Zn,lo,di,gu,Pt,so,nn,Yr,Fe,_t,It,kt,Tt,Rt,Ot,ai,Xt,gi,Ao,uu,Qa,Bi,Ci,Rc,Ja,Sn,Y6,q6,kw,uA,nV,Zt,Kt,wi,Lt],styles:["mat-card[_ngcontent-%COMP%]{margin:16px;max-width:1200px}mat-card-header[_ngcontent-%COMP%]{padding:16px;border-bottom:1px solid rgba(0,0,0,.12);margin-bottom:24px}mat-card-header[_ngcontent-%COMP%] mat-card-title[_ngcontent-%COMP%]{font-size:20px;font-weight:500;margin:0}mat-card-content[_ngcontent-%COMP%]{padding:24px;position:relative}.loading-overlay[_ngcontent-%COMP%]{position:absolute;inset:0;background-color:#fffc;display:flex;align-items:center;justify-content:center;z-index:1000}form[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:24px}.form-section[_ngcontent-%COMP%] h3[_ngcontent-%COMP%]{font-size:16px;font-weight:500;margin:0 0 16px;color:#000000de}.form-row[_ngcontent-%COMP%]{display:grid;grid-template-columns:1fr 1fr;gap:16px;margin-bottom:8px}@media (max-width: 768px){.form-row[_ngcontent-%COMP%]{grid-template-columns:1fr}}mat-form-field[_ngcontent-%COMP%]{width:100%}mat-form-field.full-width[_ngcontent-%COMP%]{grid-column:1/-1}.form-actions[_ngcontent-%COMP%]{display:flex;justify-content:flex-end;gap:12px;margin-top:24px;padding-top:24px;border-top:1px solid rgba(0,0,0,.12)}.form-actions[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{min-width:120px}"]});let t=n;return t})();var Q6=()=>["HRAdmin","Manager"],P0e=()=>[5,10,25,50,100],F0e=()=>["HRAdmin"];function N0e(t,n){if(t&1){let e=q();m(0,"button",14),S("click",function(){k(e);let r=x();return T(r.createDepartment())}),m(1,"mat-icon"),f(2,"add"),h(),f(3," Add Department "),h()}}function L0e(t,n){if(t&1&&(m(0,"mat-option",15),f(1),h()),t&2){let e=n.$implicit;v("value",e),g(),fe(" ",e," ")}}function V0e(t,n){t&1&&(m(0,"div",16),M(1,"mat-spinner"),h())}function B0e(t,n){t&1&&(m(0,"th",25),f(1,"Name"),h())}function j0e(t,n){if(t&1&&(m(0,"td",26),f(1),h()),t&2){let e=n.$implicit;g(),N(e.name)}}function H0e(t,n){t&1&&(m(0,"th",25),f(1,"Actions"),h())}function z0e(t,n){if(t&1){let e=q();m(0,"button",31),S("click",function(){k(e);let r=x().$implicit,o=x(2);return T(o.editDepartment(r))}),m(1,"mat-icon"),f(2,"edit"),h()()}}function U0e(t,n){if(t&1){let e=q();m(0,"button",32),S("click",function(){k(e);let r=x().$implicit,o=x(2);return T(o.deleteDepartment(r))}),m(1,"mat-icon"),f(2,"delete"),h()()}}function $0e(t,n){if(t&1){let e=q();m(0,"td",26)(1,"div",27)(2,"button",28),S("click",function(){let r=k(e).$implicit,o=x(2);return T(o.viewDepartment(r))}),m(3,"mat-icon"),f(4,"visibility"),h()(),A(5,z0e,3,0,"button",29)(6,U0e,3,0,"button",30),h()()}t&2&&(g(5),v("appHasRole",dt(2,Q6)),g(),v("appHasRole",dt(3,F0e)))}function W0e(t,n){t&1&&M(0,"tr",33)}function G0e(t,n){t&1&&M(0,"tr",34)}function q0e(t,n){if(t&1&&(m(0,"tr",35)(1,"td",36)(2,"div",37)(3,"mat-icon"),f(4,"info"),h(),m(5,"p"),f(6,"No departments found"),h()()()()),t&2){let e=x(2);g(),X("colspan",e.displayedColumns.length)}}function Y0e(t,n){if(t&1&&(m(0,"table",17),lt(1,18),A(2,B0e,2,0,"th",19)(3,j0e,2,1,"td",20),ot(),lt(4,21),A(5,H0e,2,0,"th",19)(6,$0e,7,4,"td",20),ot(),A(7,W0e,1,0,"tr",22)(8,G0e,1,0,"tr",23)(9,q0e,7,1,"tr",24),h()),t&2){let e=x();v("dataSource",e.departments),g(7),v("matHeaderRowDef",e.displayedColumns),g(),v("matRowDefColumns",e.displayedColumns),g(),v("ngIf",e.departments.length===0)}}var K6=(()=>{let n=class n{constructor(){this.departmentService=u(tl),this.authService=u(Ht),this.router=u(Ae),this.fb=u(co),this.snackBar=u(_i),this.dialog=u(Rn),this.departments=[],this.loading=!1,this.totalCount=0,this.pageSize=10,this.pageNumber=1,this.destroy$=new z,this.displayedColumns=["name","actions"]}ngOnInit(){this.initSearchForm(),this.setupAutocomplete(),this.setupAutoSubmit(),this.loadDepartments()}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete()}initSearchForm(){this.searchForm=this.fb.group({Name:[""]})}setupAutocomplete(){this.filteredNames$=this.searchForm.get("Name").valueChanges.pipe(Ue(""),Dt(300),Nn(),je(i=>this.getAutocompleteOptions("Name",i)))}setupAutoSubmit(){this.searchForm.valueChanges.pipe(Dt(500),Nn((i,r)=>JSON.stringify(i)===JSON.stringify(r)),we(this.destroy$)).subscribe(()=>{this.pageNumber=1,this.loadDepartments()})}getAutocompleteOptions(i,r){if(!r||r.length<2)return Q([]);let o={PageNumber:1,PageSize:10,[i]:r};return this.departmentService.getAllPaged(o).pipe(se(a=>a.value.map(l=>l.name).filter((l,c,d)=>l&&d.indexOf(l)===c)),ei(()=>Q([])))}loadDepartments(){this.loading=!0;let i=I({PageNumber:this.pageNumber,PageSize:this.pageSize},this.searchForm.value);Object.keys(i).forEach(r=>{(i[r]===""||i[r]===null||i[r]===void 0)&&delete i[r]}),this.departmentService.getAllPaged(i).subscribe({next:r=>{this.departments=r.value,this.totalCount=r.recordsTotal,this.loading=!1},error:r=>{console.error("Error loading departments:",r),this.loading=!1}})}onClearSearch(){this.searchForm.reset(),this.pageNumber=1,this.paginator&&(this.paginator.pageIndex=0),this.loadDepartments()}onPageChange(i){this.pageSize=i.pageSize,this.pageNumber=i.pageIndex+1,this.loadDepartments()}viewDepartment(i){this.router.navigate(["/departments",i.id])}editDepartment(i){this.router.navigate(["/departments","edit",i.id])}deleteDepartment(i){this.dialog.open(Fr,{width:"400px",data:{title:"Delete Department",message:`Are you sure you want to delete "${i.name}"? This action cannot be undone.`,confirmText:"Delete",cancelText:"Cancel"}}).afterClosed().subscribe(o=>{o&&this.departmentService.delete(i.id).subscribe({next:()=>{this.showMessage(`"${i.name}" has been deleted.`),this.loadDepartments()},error:a=>{console.error("Error deleting department:",a),this.showMessage("Failed to delete department. Please try again.")}})})}createDepartment(){this.router.navigate(["/departments","create"])}canEdit(){return this.authService.isHRAdmin()||this.authService.isManager()}canDelete(){return this.authService.isHRAdmin()}canCreate(){return this.authService.isHRAdmin()||this.authService.isManager()}showMessage(i){this.snackBar.open(i,"Close",{duration:3e3,horizontalPosition:"end",verticalPosition:"top"})}};n.\u0275fac=function(r){return new(r||n)},n.\u0275cmp=E({type:n,selectors:[["app-department-list"]],viewQuery:function(r,o){if(r&1&&ie(mr,5),r&2){let a;j(a=H())&&(o.paginator=a.first)}},decls:27,vars:14,consts:[["autoName","matAutocomplete"],[1,"flex-spacer"],["mat-raised-button","","color","primary",3,"click",4,"appHasRole"],[1,"search-form",3,"formGroup"],[1,"search-row"],["appearance","outline"],["matInput","","formControlName","Name",3,"matAutocomplete"],[3,"value",4,"ngFor","ngForOf"],[1,"search-buttons"],["mat-raised-button","","color","accent","type","button",3,"click"],[1,"table-container"],["class","loading-spinner",4,"ngIf"],["mat-table","","class","department-table",3,"dataSource",4,"ngIf"],["showFirstLastButtons","",3,"page","length","pageSize","pageSizeOptions","pageIndex"],["mat-raised-button","","color","primary",3,"click"],[3,"value"],[1,"loading-spinner"],["mat-table","",1,"department-table",3,"dataSource"],["matColumnDef","name"],["mat-header-cell","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","actions"],["mat-header-row","",4,"matHeaderRowDef"],["mat-row","",4,"matRowDef","matRowDefColumns"],["class","mat-row",4,"ngIf"],["mat-header-cell",""],["mat-cell",""],[1,"action-buttons"],["mat-icon-button","","color","primary","matTooltip","View Details",3,"click"],["mat-icon-button","","color","accent","matTooltip","Edit Department",3,"click",4,"appHasRole"],["mat-icon-button","","color","warn","matTooltip","Delete Department",3,"click",4,"appHasRole"],["mat-icon-button","","color","accent","matTooltip","Edit Department",3,"click"],["mat-icon-button","","color","warn","matTooltip","Delete Department",3,"click"],["mat-header-row",""],["mat-row",""],[1,"mat-row"],[1,"mat-cell"],[1,"no-data"]],template:function(r,o){if(r&1){let a=q();M(0,"page-header"),m(1,"mat-card")(2,"mat-card-header")(3,"mat-card-title"),f(4,"Department Directory"),h(),M(5,"div",1),A(6,N0e,4,0,"button",2),h(),m(7,"mat-card-content")(8,"form",3)(9,"div",4)(10,"mat-form-field",5)(11,"mat-label"),f(12,"Department Name"),h(),M(13,"input",6),m(14,"mat-autocomplete",null,0),A(16,L0e,2,2,"mat-option",7),me(17,"async"),h()(),m(18,"div",8)(19,"button",9),S("click",function(){return k(a),T(o.onClearSearch())}),m(20,"mat-icon"),f(21,"clear"),h(),f(22," Clear Filters "),h()()()(),m(23,"div",10),A(24,V0e,2,0,"div",11)(25,Y0e,10,4,"table",12),h(),m(26,"mat-paginator",13),S("page",function(l){return k(a),T(o.onPageChange(l))}),h()()()}if(r&2){let a=Te(15);g(6),v("appHasRole",dt(12,Q6)),g(2),v("formGroup",o.searchForm),g(5),v("matAutocomplete",a),g(3),v("ngForOf",Re(17,10,o.filteredNames$)),g(8),v("ngIf",o.loading),g(),v("ngIf",!o.loading),g(),v("length",o.totalCount)("pageSize",o.pageSize)("pageSizeOptions",dt(13,P0e))("pageIndex",o.pageNumber-1)}},dependencies:[Je,Un,Bt,Zn,lo,di,Pt,so,nn,Yr,Fe,_t,Ft,It,kt,Tt,Rt,Ot,Ge,Ze,Bi,Ci,Xt,gi,ai,Sa,_a,va,wa,ya,ba,Da,xa,Ca,Ma,Ea,Fc,mr,Zt,Kt,An,ur,Mw,Dw,Sn,M_,wi,Pn,Lt,Xn,cn],styles:["mat-card[_ngcontent-%COMP%]{margin:16px}mat-card-header[_ngcontent-%COMP%]{display:flex;align-items:center;margin-bottom:16px;padding:16px;border-bottom:1px solid rgba(0,0,0,.12)}mat-card-header[_ngcontent-%COMP%] mat-card-title[_ngcontent-%COMP%]{font-size:20px;font-weight:500;margin:0}mat-card-header[_ngcontent-%COMP%] .flex-spacer[_ngcontent-%COMP%]{flex:1 1 auto}mat-card-header[_ngcontent-%COMP%] button[_ngcontent-%COMP%] mat-icon[_ngcontent-%COMP%]{margin-right:4px}mat-card-content[_ngcontent-%COMP%]{padding:0}.search-form[_ngcontent-%COMP%]{padding:16px;background-color:#f5f5f5;margin-bottom:0}.search-form[_ngcontent-%COMP%] .search-row[_ngcontent-%COMP%]{display:grid;grid-template-columns:1fr auto;gap:16px;align-items:start}.search-form[_ngcontent-%COMP%] .search-row[_ngcontent-%COMP%] mat-form-field[_ngcontent-%COMP%]{width:100%}.search-form[_ngcontent-%COMP%] .search-row[_ngcontent-%COMP%] .search-buttons[_ngcontent-%COMP%]{display:flex;gap:8px;align-items:center}.search-form[_ngcontent-%COMP%] .search-row[_ngcontent-%COMP%] .search-buttons[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{white-space:nowrap}.search-form[_ngcontent-%COMP%] .search-row[_ngcontent-%COMP%] .search-buttons[_ngcontent-%COMP%] button[_ngcontent-%COMP%] mat-icon[_ngcontent-%COMP%]{margin-right:4px}.table-container[_ngcontent-%COMP%]{position:relative;min-height:300px;overflow-x:auto}.loading-spinner[_ngcontent-%COMP%]{display:flex;justify-content:center;align-items:center;min-height:300px}.department-table[_ngcontent-%COMP%]{width:100%}.department-table[_ngcontent-%COMP%] th[_ngcontent-%COMP%]{font-weight:600;font-size:14px;color:#000000de}.department-table[_ngcontent-%COMP%] td[_ngcontent-%COMP%]{font-size:14px;color:#000000de}.department-table[_ngcontent-%COMP%] .mat-column-name[_ngcontent-%COMP%]{min-width:200px}.department-table[_ngcontent-%COMP%] .mat-column-actions[_ngcontent-%COMP%]{width:120px;text-align:right}.department-table[_ngcontent-%COMP%] .mat-column-actions[_ngcontent-%COMP%] .action-buttons[_ngcontent-%COMP%]{display:flex;justify-content:flex-end;align-items:center;gap:4px}.no-data[_ngcontent-%COMP%]{display:flex;flex-direction:column;align-items:center;justify-content:center;padding:48px 16px;color:#0000008a}.no-data[_ngcontent-%COMP%] mat-icon[_ngcontent-%COMP%]{font-size:48px;width:48px;height:48px;margin-bottom:16px}.no-data[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{margin:0;font-size:16px}mat-paginator[_ngcontent-%COMP%]{border-top:1px solid rgba(0,0,0,.12)}"]});let t=n;return t})();var Q0e=()=>["HRAdmin","Manager"],K0e=()=>["HRAdmin"];function Z0e(t,n){if(t&1){let e=q();m(0,"button",10),S("click",function(){k(e);let r=x(2);return T(r.editDepartment())}),m(1,"mat-icon"),f(2,"edit"),h(),f(3," Edit "),h()}}function X0e(t,n){if(t&1){let e=q();m(0,"button",11),S("click",function(){k(e);let r=x(2);return T(r.deleteDepartment())}),m(1,"mat-icon"),f(2,"delete"),h(),f(3," Delete "),h()}}function J0e(t,n){if(t&1&&(m(0,"mat-list-item")(1,"span",7),f(2,"Created At"),h(),m(3,"span",8),f(4),me(5,"date"),h()()),t&2){let e=x(3);g(4),N(Ui(5,1,e.department.createdAt,"medium"))}}function eve(t,n){if(t&1&&(m(0,"mat-list-item")(1,"span",7),f(2,"Last Modified At"),h(),m(3,"span",8),f(4),me(5,"date"),h()()),t&2){let e=x(3);g(4),N(Ui(5,1,e.department.lastModifiedAt,"medium"))}}function tve(t,n){if(t&1&&(m(0,"div",6)(1,"h3"),f(2,"Audit Information"),h(),M(3,"mat-divider"),m(4,"mat-list"),A(5,J0e,6,4,"mat-list-item",0)(6,eve,6,4,"mat-list-item",0),h()()),t&2){let e=x(2);g(5),v("ngIf",e.department.createdAt),g(),v("ngIf",e.department.lastModifiedAt)}}function ive(t,n){if(t&1){let e=q();m(0,"mat-card")(1,"mat-card-header")(2,"mat-card-title"),f(3,"Department Details"),h(),M(4,"div",1),A(5,Z0e,4,0,"button",2)(6,X0e,4,0,"button",3),m(7,"button",4),S("click",function(){k(e);let r=x();return T(r.goBack())}),m(8,"mat-icon"),f(9,"arrow_back"),h(),f(10," Back to List "),h()(),m(11,"mat-card-content")(12,"div",5)(13,"div",6)(14,"h3"),f(15,"Basic Information"),h(),M(16,"mat-divider"),m(17,"mat-list")(18,"mat-list-item")(19,"span",7),f(20,"Department Name"),h(),m(21,"span",8),f(22),h()()()(),A(23,tve,7,2,"div",9),h()()()}if(t&2){let e=x();g(5),v("appHasRole",dt(4,Q0e)),g(),v("appHasRole",dt(5,K0e)),g(16),N(e.department.name),g(),v("ngIf",e.department.createdAt||e.department.lastModifiedAt)}}function nve(t,n){t&1&&(m(0,"mat-card")(1,"mat-card-content")(2,"div",12),M(3,"mat-spinner"),h()()())}function rve(t,n){if(t&1){let e=q();m(0,"mat-card")(1,"mat-card-content")(2,"div",13)(3,"mat-icon"),f(4,"error"),h(),m(5,"p"),f(6,"Department not found"),h(),m(7,"button",14),S("click",function(){k(e);let r=x();return T(r.goBack())}),f(8," Go Back "),h()()()()}}var Z6=(()=>{let n=class n{constructor(){this.departmentService=u(tl),this.authService=u(Ht),this.route=u(Ai),this.router=u(Ae),this.snackBar=u(_i),this.dialog=u(Rn),this.loading=!1}ngOnInit(){let i=this.route.snapshot.paramMap.get("id");i&&this.loadDepartment(i)}loadDepartment(i){this.loading=!0,this.departmentService.getById(i).subscribe({next:r=>{this.department=r,this.loading=!1},error:r=>{console.error("Error loading department:",r),this.showMessage("Error loading department"),this.loading=!1,this.router.navigate(["/departments"])}})}editDepartment(){this.router.navigate(["/departments","edit",this.department.id])}deleteDepartment(){this.dialog.open(Fr,{width:"400px",data:{title:"Delete Department",message:`Are you sure you want to delete "${this.department.name}"? This action cannot be undone.`,confirmText:"Delete",cancelText:"Cancel"}}).afterClosed().subscribe(r=>{r&&this.departmentService.delete(this.department.id).subscribe({next:()=>{let o=this.snackBar.open(`"${this.department.name}" has been deleted.`,"Close",{duration:3e3,horizontalPosition:"end",verticalPosition:"top"});o.afterDismissed().subscribe(()=>this.router.navigate(["/departments"])),o.onAction().subscribe(()=>this.router.navigate(["/departments"]))},error:o=>{console.error("Error deleting department:",o),this.showMessage("Failed to delete department. Please try again.")}})})}goBack(){this.router.navigate(["/departments"])}canEdit(){return this.authService.isHRAdmin()||this.authService.isManager()}canDelete(){return this.authService.isHRAdmin()}showMessage(i){this.snackBar.open(i,"Close",{duration:3e3,horizontalPosition:"end",verticalPosition:"top"})}};n.\u0275fac=function(r){return new(r||n)},n.\u0275cmp=E({type:n,selectors:[["app-department-detail"]],decls:4,vars:3,consts:[[4,"ngIf"],[1,"flex-spacer"],["mat-raised-button","","color","accent",3,"click",4,"appHasRole"],["mat-raised-button","","color","warn",3,"click",4,"appHasRole"],["mat-stroked-button","",3,"click"],[1,"detail-grid"],[1,"detail-section"],["matListItemTitle",""],["matListItemLine",""],["class","detail-section",4,"ngIf"],["mat-raised-button","","color","accent",3,"click"],["mat-raised-button","","color","warn",3,"click"],[1,"loading-container"],[1,"no-data"],["mat-raised-button","","color","primary",3,"click"]],template:function(r,o){r&1&&(M(0,"page-header"),A(1,ive,24,6,"mat-card",0)(2,nve,4,0,"mat-card",0)(3,rve,9,0,"mat-card",0)),r&2&&(g(),v("ngIf",!o.loading&&o.department),g(),v("ngIf",o.loading),g(),v("ngIf",!o.loading&&!o.department))},dependencies:[Je,Bt,Fe,_t,It,kt,Tt,Rt,Ot,Ge,Ze,fa,Xs,pa,Kr,Fu,Hl,Nr,Zt,Kt,wi,Pn,Lt,Xn,$a],styles:["mat-card[_ngcontent-%COMP%]{margin:16px}mat-card-header[_ngcontent-%COMP%]{display:flex;align-items:center;margin-bottom:16px;padding:16px;border-bottom:1px solid rgba(0,0,0,.12)}mat-card-header[_ngcontent-%COMP%] mat-card-title[_ngcontent-%COMP%]{font-size:20px;font-weight:500;margin:0}mat-card-header[_ngcontent-%COMP%] .flex-spacer[_ngcontent-%COMP%]{flex:1 1 auto}mat-card-header[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{margin-left:8px}mat-card-header[_ngcontent-%COMP%] button[_ngcontent-%COMP%] mat-icon[_ngcontent-%COMP%]{margin-right:4px}mat-card-content[_ngcontent-%COMP%]{padding:16px}.detail-grid[_ngcontent-%COMP%]{display:grid;grid-template-columns:repeat(auto-fit,minmax(400px,1fr));gap:24px}.detail-section[_ngcontent-%COMP%] h3[_ngcontent-%COMP%]{margin:0 0 8px;font-size:16px;font-weight:500;color:#000000de}.detail-section[_ngcontent-%COMP%] mat-divider[_ngcontent-%COMP%]{margin-bottom:16px}.detail-section[_ngcontent-%COMP%] mat-list[_ngcontent-%COMP%]{padding:0}.detail-section[_ngcontent-%COMP%] mat-list-item[_ngcontent-%COMP%]{height:auto;min-height:48px;padding:8px 0}.loading-container[_ngcontent-%COMP%]{display:flex;justify-content:center;align-items:center;min-height:300px}.no-data[_ngcontent-%COMP%]{display:flex;flex-direction:column;align-items:center;justify-content:center;padding:48px 16px;color:#0000008a}.no-data[_ngcontent-%COMP%] mat-icon[_ngcontent-%COMP%]{font-size:48px;width:48px;height:48px;margin-bottom:16px}.no-data[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{margin:0 0 16px;font-size:16px}"]});let t=n;return t})();function ove(t,n){t&1&&(m(0,"div",0),M(1,"mat-spinner"),h())}function ave(t,n){t&1&&(m(0,"mat-error"),f(1," Department name is required "),h())}function sve(t,n){t&1&&(m(0,"mat-error"),f(1," Department name cannot exceed 100 characters "),h())}var hA=(()=>{let n=class n{constructor(){this.departmentService=u(tl),this.route=u(Ai),this.router=u(Ae),this.fb=u(co),this.snackBar=u(_i),this.loading=!1,this.isEditMode=!1}ngOnInit(){this.initForm();let i=this.route.snapshot.paramMap.get("id");i&&(this.isEditMode=!0,this.departmentId=i,this.loadDepartment(i))}initForm(){this.departmentForm=this.fb.group({name:["",[Ve.required,Ve.maxLength(100)]]})}loadDepartment(i){this.loading=!0,this.departmentService.getById(i).subscribe({next:r=>{this.departmentForm.patchValue({name:r.name}),this.loading=!1},error:r=>{console.error("Error loading department:",r),this.showMessage("Error loading department"),this.loading=!1}})}onSubmit(){if(!this.departmentForm.invalid)if(this.loading=!0,this.isEditMode&&this.departmentId){let i={id:this.departmentId,name:this.departmentForm.value.name};this.departmentService.updateDepartment(i).subscribe({next:()=>{this.showMessage("Department updated successfully"),this.router.navigate(["/departments",this.departmentId])},error:r=>{console.error("Error updating department:",r),this.showMessage("Error updating department"),this.loading=!1}})}else{let i={name:this.departmentForm.value.name};this.departmentService.createDepartment(i).subscribe({next:r=>{console.log("Department created - Response:",r),console.log("Department ID:",r?.id),this.showMessage("Department created successfully"),r?.id?(console.log("Navigating to detail page:","/departments/"+r.id),this.router.navigate(["/departments",r.id])):(console.warn("No department ID returned, navigating to list page"),this.router.navigate(["/departments"])),this.loading=!1},error:r=>{console.error("Error creating department:",r),this.showMessage("Error creating department"),this.loading=!1}})}}onCancel(){this.isEditMode&&this.departmentId?this.router.navigate(["/departments",this.departmentId]):this.router.navigate(["/departments"])}showMessage(i){this.snackBar.open(i,"Close",{duration:3e3,horizontalPosition:"end",verticalPosition:"top"})}};n.\u0275fac=function(r){return new(r||n)},n.\u0275cmp=E({type:n,selectors:[["app-department-form"]],decls:23,vars:7,consts:[[1,"loading-overlay"],[3,"ngSubmit","formGroup"],[1,"form-section"],[1,"form-row"],["appearance","outline"],["matInput","","formControlName","name"],[4,"ngIf"],[1,"form-actions"],["type","button","mat-stroked-button","",3,"click"],["type","submit","mat-raised-button","","color","primary",3,"disabled"]],template:function(r,o){if(r&1&&(M(0,"page-header"),m(1,"mat-card")(2,"mat-card-header")(3,"mat-card-title"),f(4),h()(),m(5,"mat-card-content"),V(6,ove,2,0,"div",0),m(7,"form",1),S("ngSubmit",function(){return o.onSubmit()}),m(8,"div",2)(9,"h3"),f(10,"Department Information"),h(),m(11,"div",3)(12,"mat-form-field",4)(13,"mat-label"),f(14,"Department Name"),h(),M(15,"input",5),A(16,ave,2,0,"mat-error",6)(17,sve,2,0,"mat-error",6),h()()(),m(18,"div",7)(19,"button",8),S("click",function(){return o.onCancel()}),f(20," Cancel "),h(),m(21,"button",9),f(22),h()()()()()),r&2){let a,s;g(4),N(o.isEditMode?"Edit Department":"Create Department"),g(2),B(o.loading?6:-1),g(),v("formGroup",o.departmentForm),g(9),v("ngIf",(a=o.departmentForm.get("name"))==null?null:a.hasError("required")),g(),v("ngIf",(s=o.departmentForm.get("name"))==null?null:s.hasError("maxlength")),g(4),v("disabled",o.loading),g(),fe(" ",o.isEditMode?"Update":"Create"," ")}},dependencies:[Je,Bt,Zn,lo,di,Pt,so,nn,Yr,Fe,_t,It,kt,Tt,Rt,Ot,Ge,Bi,Ci,Xt,gi,Ao,ai,Zt,Kt,wi,Lt],styles:["mat-card[_ngcontent-%COMP%]{margin:16px;max-width:800px}mat-card-header[_ngcontent-%COMP%]{padding:16px;border-bottom:1px solid rgba(0,0,0,.12)}mat-card-header[_ngcontent-%COMP%] mat-card-title[_ngcontent-%COMP%]{font-size:20px;font-weight:500;margin:0}mat-card-content[_ngcontent-%COMP%]{padding:24px;position:relative}.form-section[_ngcontent-%COMP%]{margin-bottom:24px}.form-section[_ngcontent-%COMP%] h3[_ngcontent-%COMP%]{margin:0 0 16px;font-size:16px;font-weight:500;color:#000000de}.form-section[_ngcontent-%COMP%] .form-row[_ngcontent-%COMP%]{display:grid;grid-template-columns:1fr;gap:16px;margin-bottom:16px}.form-section[_ngcontent-%COMP%] .form-row[_ngcontent-%COMP%] mat-form-field[_ngcontent-%COMP%]{width:100%}.form-actions[_ngcontent-%COMP%]{display:flex;justify-content:flex-end;gap:8px;padding-top:16px;border-top:1px solid rgba(0,0,0,.12)}.loading-overlay[_ngcontent-%COMP%]{position:absolute;inset:0;background-color:#fffc;display:flex;align-items:center;justify-content:center;z-index:1000}"]});let t=n;return t})();var lve=["mat-sort-header",""],cve=["*"];function dve(t,n){t&1&&(gt(0,"div",2),ii(),gt(1,"svg",3),ni(2,"path",4),yt()())}var X6=new O("MAT_SORT_DEFAULT_OPTIONS"),$l=(()=>{class t{_defaultOptions;_initializedStream=new as(1);sortables=new Map;_stateChanges=new z;active;start="asc";get direction(){return this._direction}set direction(e){this._direction=e}_direction="";disableClear;disabled=!1;sortChange=new U;initialized=this._initializedStream;constructor(e){this._defaultOptions=e}register(e){this.sortables.set(e.id,e)}deregister(e){this.sortables.delete(e.id)}sort(e){this.active!=e.id?(this.active=e.id,this.direction=e.start?e.start:this.start):this.direction=this.getNextSortDirection(e),this.sortChange.emit({active:this.active,direction:this.direction})}getNextSortDirection(e){if(!e)return"";let i=e?.disableClear??this.disableClear??!!this._defaultOptions?.disableClear,r=uve(e.start||this.start,i),o=r.indexOf(this.direction)+1;return o>=r.length&&(o=0),r[o]}ngOnInit(){this._initializedStream.next()}ngOnChanges(){this._stateChanges.next()}ngOnDestroy(){this._stateChanges.complete(),this._initializedStream.complete()}static \u0275fac=function(i){return new(i||t)(be(X6,8))};static \u0275dir=P({type:t,selectors:[["","matSort",""]],hostAttrs:[1,"mat-sort"],inputs:{active:[0,"matSortActive","active"],start:[0,"matSortStart","start"],direction:[0,"matSortDirection","direction"],disableClear:[2,"matSortDisableClear","disableClear",L],disabled:[2,"matSortDisabled","disabled",L]},outputs:{sortChange:"matSortChange"},exportAs:["matSort"],features:[Oe]})}return t})();function uve(t,n){let e=["asc","desc"];return t=="desc"&&e.reverse(),n||e.push(""),e}var Tw=(()=>{class t{changes=new z;static \u0275fac=function(i){return new(i||t)};static \u0275prov=R({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();function mve(t){return t||new Tw}var hve={provide:Tw,deps:[[new ws,new dc,Tw]],useFactory:mve},Iw=(()=>{class t{_intl=u(Tw);_sort=u($l,{optional:!0});_columnDef=u("MAT_SORT_HEADER_COLUMN_DEF",{optional:!0});_changeDetectorRef=u(ye);_focusMonitor=u(oi);_elementRef=u(Y);_ariaDescriber=u(nh,{optional:!0});_renderChanges;_animationsDisabled=Qe();_recentlyCleared=he(null);_sortButton;id;arrowPosition="after";start;disabled=!1;get sortActionDescription(){return this._sortActionDescription}set sortActionDescription(e){this._updateSortActionDescription(e)}_sortActionDescription="Sort";disableClear;constructor(){u(ft).load(Oi);let e=u(X6,{optional:!0});this._sort,e?.arrowPosition&&(this.arrowPosition=e?.arrowPosition)}ngOnInit(){!this.id&&this._columnDef&&(this.id=this._columnDef.name),this._sort.register(this),this._renderChanges=it(this._sort._stateChanges,this._sort.sortChange).subscribe(()=>this._changeDetectorRef.markForCheck()),this._sortButton=this._elementRef.nativeElement.querySelector(".mat-sort-header-container"),this._updateSortActionDescription(this._sortActionDescription)}ngAfterViewInit(){this._focusMonitor.monitor(this._elementRef,!0).subscribe(()=>{Promise.resolve().then(()=>this._recentlyCleared.set(null))})}ngOnDestroy(){this._focusMonitor.stopMonitoring(this._elementRef),this._sort.deregister(this),this._renderChanges?.unsubscribe(),this._sortButton&&this._ariaDescriber?.removeDescription(this._sortButton,this._sortActionDescription)}_toggleOnInteraction(){if(!this._isDisabled()){let e=this._isSorted(),i=this._sort.direction;this._sort.sort(this),this._recentlyCleared.set(e&&!this._isSorted()?i:null)}}_handleKeydown(e){(e.keyCode===32||e.keyCode===13)&&(e.preventDefault(),this._toggleOnInteraction())}_isSorted(){return this._sort.active==this.id&&(this._sort.direction==="asc"||this._sort.direction==="desc")}_isDisabled(){return this._sort.disabled||this.disabled}_getAriaSortAttribute(){return this._isSorted()?this._sort.direction=="asc"?"ascending":"descending":"none"}_renderArrow(){return!this._isDisabled()||this._isSorted()}_updateSortActionDescription(e){this._sortButton&&(this._ariaDescriber?.removeDescription(this._sortButton,this._sortActionDescription),this._ariaDescriber?.describe(this._sortButton,e)),this._sortActionDescription=e}static \u0275fac=function(i){return new(i||t)};static \u0275cmp=E({type:t,selectors:[["","mat-sort-header",""]],hostAttrs:[1,"mat-sort-header"],hostVars:3,hostBindings:function(i,r){i&1&&S("click",function(){return r._toggleOnInteraction()})("keydown",function(a){return r._handleKeydown(a)})("mouseleave",function(){return r._recentlyCleared.set(null)}),i&2&&(X("aria-sort",r._getAriaSortAttribute()),G("mat-sort-header-disabled",r._isDisabled()))},inputs:{id:[0,"mat-sort-header","id"],arrowPosition:"arrowPosition",start:"start",disabled:[2,"disabled","disabled",L],sortActionDescription:"sortActionDescription",disableClear:[2,"disableClear","disableClear",L]},exportAs:["matSortHeader"],attrs:lve,ngContentSelectors:cve,decls:4,vars:17,consts:[[1,"mat-sort-header-container","mat-focus-indicator"],[1,"mat-sort-header-content"],[1,"mat-sort-header-arrow"],["viewBox","0 -960 960 960","focusable","false","aria-hidden","true"],["d","M440-240v-368L296-464l-56-56 240-240 240 240-56 56-144-144v368h-80Z"]],template:function(i,r){i&1&&(Ee(),gt(0,"div",0)(1,"div",1),ne(2),yt(),V(3,dve,3,0,"div",2),yt()),i&2&&(G("mat-sort-header-sorted",r._isSorted())("mat-sort-header-position-before",r.arrowPosition==="before")("mat-sort-header-descending",r._sort.direction==="desc")("mat-sort-header-ascending",r._sort.direction==="asc")("mat-sort-header-recently-cleared-ascending",r._recentlyCleared()==="asc")("mat-sort-header-recently-cleared-descending",r._recentlyCleared()==="desc")("mat-sort-header-animations-disabled",r._animationsDisabled),X("tabindex",r._isDisabled()?null:0)("role",r._isDisabled()?null:"button"),g(3),B(r._renderArrow()?3:-1))},styles:[`.mat-sort-header{cursor:pointer}.mat-sort-header-disabled{cursor:default}.mat-sort-header-container{display:flex;align-items:center;letter-spacing:normal;outline:0}[mat-sort-header].cdk-keyboard-focused .mat-sort-header-container,[mat-sort-header].cdk-program-focused .mat-sort-header-container{border-bottom:solid 1px currentColor}.mat-sort-header-container::before{margin:calc(calc(var(--mat-focus-indicator-border-width, 3px) + 2px)*-1)}.mat-sort-header-content{display:flex;align-items:center}.mat-sort-header-position-before{flex-direction:row-reverse}@keyframes _mat-sort-header-recently-cleared-ascending{from{transform:translateY(0);opacity:1}to{transform:translateY(-25%);opacity:0}}@keyframes _mat-sort-header-recently-cleared-descending{from{transform:translateY(0) rotate(180deg);opacity:1}to{transform:translateY(25%) rotate(180deg);opacity:0}}.mat-sort-header-arrow{height:12px;width:12px;position:relative;transition:transform 225ms cubic-bezier(0.4, 0, 0.2, 1),opacity 225ms cubic-bezier(0.4, 0, 0.2, 1);opacity:0;overflow:visible;color:var(--mat-sort-arrow-color, var(--mat-sys-on-surface))}.mat-sort-header.cdk-keyboard-focused .mat-sort-header-arrow,.mat-sort-header.cdk-program-focused .mat-sort-header-arrow,.mat-sort-header:hover .mat-sort-header-arrow{opacity:.54}.mat-sort-header .mat-sort-header-sorted .mat-sort-header-arrow{opacity:1}.mat-sort-header-descending .mat-sort-header-arrow{transform:rotate(180deg)}.mat-sort-header-recently-cleared-ascending .mat-sort-header-arrow{transform:translateY(-25%)}.mat-sort-header-recently-cleared-ascending .mat-sort-header-arrow{transition:none;animation:_mat-sort-header-recently-cleared-ascending 225ms cubic-bezier(0.4, 0, 0.2, 1) forwards}.mat-sort-header-recently-cleared-descending .mat-sort-header-arrow{transition:none;animation:_mat-sort-header-recently-cleared-descending 225ms cubic-bezier(0.4, 0, 0.2, 1) forwards}.mat-sort-header-animations-disabled .mat-sort-header-arrow{transition-duration:0ms;animation-duration:0ms}.mat-sort-header-arrow svg{width:24px;height:24px;fill:currentColor;position:absolute;top:50%;left:50%;margin:-12px 0 0 -12px;transform:translateZ(0)}.mat-sort-header-arrow,[dir=rtl] .mat-sort-header-position-before .mat-sort-header-arrow{margin:0 0 0 6px}.mat-sort-header-position-before .mat-sort-header-arrow,[dir=rtl] .mat-sort-header-arrow{margin:0 6px 0 0} +`],encapsulation:2,changeDetection:0})}return t})(),Aw=(()=>{class t{static \u0275fac=function(i){return new(i||t)};static \u0275mod=ee({type:t});static \u0275inj=J({providers:[hve],imports:[De]})}return t})();var eU=()=>["HRAdmin","Manager"],tU=()=>["HRAdmin"];function pve(t,n){if(t&1){let e=q();m(0,"button",14),S("click",function(){k(e);let r=x();return T(r.createPosition())}),m(1,"mat-icon"),f(2,"add"),h(),f(3," Add Position "),h()}}function fve(t,n){if(t&1){let e=q();m(0,"button",15),S("click",function(){k(e);let r=x();return T(r.addMockData())}),m(1,"mat-icon"),f(2,"data_object"),h(),f(3," Add Mock Data "),h()}}function gve(t,n){t&1&&(m(0,"div",16),M(1,"mat-spinner"),h())}function _ve(t,n){t&1&&(m(0,"th",30),f(1,"Position Number"),h())}function bve(t,n){if(t&1&&(m(0,"td",31),f(1),h()),t&2){let e=n.$implicit;g(),N(e.positionNumber)}}function vve(t,n){t&1&&(m(0,"th",30),f(1,"Position Title"),h())}function yve(t,n){if(t&1&&(m(0,"td",31),f(1),h()),t&2){let e=n.$implicit;g(),N(e.positionTitle)}}function xve(t,n){t&1&&(m(0,"th",30),f(1,"Department"),h())}function Cve(t,n){if(t&1&&(m(0,"td",31),f(1),h()),t&2){let e=n.$implicit;g(),N(e.department==null?null:e.department.name)}}function wve(t,n){t&1&&(m(0,"th",30),f(1,"Salary Range"),h())}function Dve(t,n){if(t&1&&(m(0,"td",31),f(1),h()),t&2){let e=n.$implicit;g(),N(e.salaryRange==null?null:e.salaryRange.name)}}function Mve(t,n){t&1&&(m(0,"th",32),f(1,"Actions"),h())}function Eve(t,n){if(t&1){let e=q();m(0,"button",38),S("click",function(){k(e);let r=x().$implicit,o=x(2);return T(o.editPosition(r))}),m(1,"mat-icon"),f(2,"edit"),h()()}}function Sve(t,n){if(t&1){let e=q();m(0,"button",39),S("click",function(){k(e);let r=x().$implicit,o=x(2);return T(o.deletePosition(r))}),m(1,"mat-icon"),f(2,"delete"),h()()}}function kve(t,n){if(t&1){let e=q();m(0,"td",33)(1,"div",34)(2,"button",35),S("click",function(){let r=k(e).$implicit,o=x(2);return T(o.viewPosition(r))}),m(3,"mat-icon"),f(4,"visibility"),h()(),A(5,Eve,3,0,"button",36)(6,Sve,3,0,"button",37),h()()}t&2&&(g(5),v("appHasRole",dt(2,eU)),g(),v("appHasRole",dt(3,tU)))}function Tve(t,n){t&1&&M(0,"tr",40)}function Ive(t,n){t&1&&M(0,"tr",41)}function Ave(t,n){if(t&1&&(m(0,"tr",42)(1,"td",43)(2,"div",44)(3,"mat-icon"),f(4,"work_off"),h(),m(5,"p"),f(6,"No positions found"),h()()()()),t&2){let e=x(2);g(),X("colspan",e.displayedColumns.length)}}function Ove(t,n){if(t&1){let e=q();m(0,"table",17),S("matSortChange",function(r){k(e);let o=x();return T(o.onSortChange(r))}),lt(1,18),A(2,_ve,2,0,"th",19)(3,bve,2,1,"td",20),ot(),lt(4,21),A(5,vve,2,0,"th",19)(6,yve,2,1,"td",20),ot(),lt(7,22),A(8,xve,2,0,"th",19)(9,Cve,2,1,"td",20),ot(),lt(10,23),A(11,wve,2,0,"th",19)(12,Dve,2,1,"td",20),ot(),lt(13,24),A(14,Mve,2,0,"th",25)(15,kve,7,4,"td",26),ot(),A(16,Tve,1,0,"tr",27)(17,Ive,1,0,"tr",28)(18,Ave,7,1,"tr",29),h()}if(t&2){let e=x();v("dataSource",e.positions),g(16),v("matHeaderRowDef",e.displayedColumns),g(),v("matRowDefColumns",e.displayedColumns)}}var iU=(()=>{let n=class n{constructor(){this.positionService=u(od),this.authService=u(Ht),this.router=u(Ae),this.dialog=u(Rn),this.snackBar=u(_i),this.searchSubject=new z,this.destroy$=new z,this.positions=[],this.loading=!1,this.displayedColumns=["positionNumber","positionTitle","departmentId","salaryRangeId","actions"],this.totalCount=0,this.pageNumber=1,this.pageSize=10,this.pageSizeOptions=[5,10,25,50,100],this.searchPositionNumber="",this.searchPositionTitle="",this.searchDepartment=""}ngOnInit(){this.searchSubject.pipe(Dt(500)).subscribe(()=>{this.pageNumber=1,this.loadPositions()}),this.loadPositions()}ngAfterViewInit(){}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete()}loadPositions(){this.loading=!0;let i={pageNumber:this.pageNumber,pageSize:this.pageSize};this.searchPositionNumber&&(i.PositionNumber=this.searchPositionNumber),this.searchPositionTitle&&(i.PositionTitle=this.searchPositionTitle),this.searchDepartment&&(i.Department=this.searchDepartment),this.sort?.active&&this.sort?.direction&&(i.orderBy=`${this.sort.active} ${this.sort.direction}`),this.positionService.getAllPaged(i).subscribe({next:r=>{this.positions=r.value,this.totalCount=r.recordsTotal,this.loading=!1},error:r=>{console.error("Error loading positions:",r),this.loading=!1}})}onSearch(){this.searchSubject.next()}onPageChange(i){this.pageNumber=i.pageIndex+1,this.pageSize=i.pageSize,this.loadPositions()}onSortChange(i){this.loadPositions()}clearFilters(){this.searchPositionNumber="",this.searchPositionTitle="",this.searchDepartment="",this.pageNumber=1,this.loadPositions()}createPosition(){this.router.navigate(["/positions/create"])}viewPosition(i){this.router.navigate(["/positions",i.id])}editPosition(i){this.router.navigate(["/positions/edit",i.id])}deletePosition(i){this.dialog.open(Fr,{width:"400px",data:{title:"Delete Position",message:`Are you sure you want to delete "${i.positionTitle}"? This action cannot be undone.`,confirmText:"Delete",cancelText:"Cancel"}}).afterClosed().subscribe(o=>{o&&this.positionService.delete(i.id).subscribe({next:()=>{this.showMessage(`"${i.positionTitle}" has been deleted.`),this.loadPositions()},error:a=>{console.error("Error deleting position:",a),this.showMessage("Failed to delete position. Please try again.")}})})}addMockData(){let i=prompt("How many mock positions would you like to add?","10");if(i){let r=parseInt(i,10);r>0&&r<=100?(this.loading=!0,this.positionService.addMockPositions({rowCount:r}).subscribe({next:()=>{this.showMessage(`${r} mock positions added successfully`),this.loadPositions()},error:o=>{console.error("Error adding mock positions:",o),this.showMessage("Error adding mock positions"),this.loading=!1}})):this.showMessage("Please enter a number between 1 and 100")}}showMessage(i){this.snackBar.open(i,"Close",{duration:3e3,horizontalPosition:"end",verticalPosition:"top"})}canEdit(){return this.authService.hasRole("HRAdmin")||this.authService.hasRole("Manager")}};n.\u0275fac=function(r){return new(r||n)},n.\u0275cmp=E({type:n,selectors:[["app-position-list"]],viewQuery:function(r,o){if(r&1&&(ie(mr,5),ie($l,5)),r&2){let a;j(a=H())&&(o.paginator=a.first),j(a=H())&&(o.sort=a.first)}},decls:36,vars:13,consts:[[1,"flex-spacer"],["mat-raised-button","","color","primary",3,"click",4,"appHasRole"],["mat-stroked-button","","color","accent","style","margin-left: 8px;",3,"click",4,"appHasRole"],[1,"search-filters",2,"margin-bottom","16px","display","flex","gap","16px","flex-wrap","wrap"],["appearance","outline",2,"flex","1","min-width","200px"],["matInput","","placeholder","Search by position number",3,"ngModelChange","input","ngModel"],["matSuffix",""],["matInput","","placeholder","Search by position title",3,"ngModelChange","input","ngModel"],["matInput","","placeholder","Search by department",3,"ngModelChange","input","ngModel"],["mat-stroked-button","",2,"height","56px",3,"click"],[1,"table-container"],["class","loading-spinner",4,"ngIf"],["mat-table","","matSort","","class","position-table",3,"dataSource","matSortChange",4,"ngIf"],["showFirstLastButtons","",3,"page","length","pageSize","pageSizeOptions","pageIndex"],["mat-raised-button","","color","primary",3,"click"],["mat-stroked-button","","color","accent",2,"margin-left","8px",3,"click"],[1,"loading-spinner"],["mat-table","","matSort","",1,"position-table",3,"matSortChange","dataSource"],["matColumnDef","positionNumber"],["mat-header-cell","","mat-sort-header","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","positionTitle"],["matColumnDef","departmentId"],["matColumnDef","salaryRangeId"],["matColumnDef","actions"],["mat-header-cell","","class","mat-column-actions",4,"matHeaderCellDef"],["mat-cell","","class","mat-column-actions",4,"matCellDef"],["mat-header-row","",4,"matHeaderRowDef"],["mat-row","",4,"matRowDef","matRowDefColumns"],["class","mat-row",4,"matNoDataRow"],["mat-header-cell","","mat-sort-header",""],["mat-cell",""],["mat-header-cell","",1,"mat-column-actions"],["mat-cell","",1,"mat-column-actions"],[1,"action-buttons"],["mat-icon-button","","color","primary","matTooltip","View Details",3,"click"],["mat-icon-button","","color","accent","matTooltip","Edit Position",3,"click",4,"appHasRole"],["mat-icon-button","","color","warn","matTooltip","Delete Position",3,"click",4,"appHasRole"],["mat-icon-button","","color","accent","matTooltip","Edit Position",3,"click"],["mat-icon-button","","color","warn","matTooltip","Delete Position",3,"click"],["mat-header-row",""],["mat-row",""],[1,"mat-row"],[1,"mat-cell"],[1,"no-data"]],template:function(r,o){r&1&&(M(0,"page-header"),m(1,"mat-card")(2,"mat-card-header")(3,"mat-card-title"),f(4,"Positions"),h(),M(5,"span",0),A(6,pve,4,0,"button",1)(7,fve,4,0,"button",2),h(),m(8,"mat-card-content")(9,"div",3)(10,"mat-form-field",4)(11,"mat-label"),f(12,"Position Number"),h(),m(13,"input",5),fn("ngModelChange",function(s){return Mn(o.searchPositionNumber,s)||(o.searchPositionNumber=s),s}),S("input",function(){return o.onSearch()}),h(),m(14,"mat-icon",6),f(15,"search"),h()(),m(16,"mat-form-field",4)(17,"mat-label"),f(18,"Position Title"),h(),m(19,"input",7),fn("ngModelChange",function(s){return Mn(o.searchPositionTitle,s)||(o.searchPositionTitle=s),s}),S("input",function(){return o.onSearch()}),h(),m(20,"mat-icon",6),f(21,"search"),h()(),m(22,"mat-form-field",4)(23,"mat-label"),f(24,"Department"),h(),m(25,"input",8),fn("ngModelChange",function(s){return Mn(o.searchDepartment,s)||(o.searchDepartment=s),s}),S("input",function(){return o.onSearch()}),h(),m(26,"mat-icon",6),f(27,"search"),h()(),m(28,"button",9),S("click",function(){return o.clearFilters()}),m(29,"mat-icon"),f(30,"clear"),h(),f(31," Clear Filters "),h()(),m(32,"div",10),A(33,gve,2,0,"div",11)(34,Ove,19,3,"table",12),h(),m(35,"mat-paginator",13),S("page",function(s){return o.onPageChange(s)}),h()()()),r&2&&(g(6),v("appHasRole",dt(11,eU)),g(),v("appHasRole",dt(12,tU)),g(6),pn("ngModel",o.searchPositionNumber),g(6),pn("ngModel",o.searchPositionTitle),g(6),pn("ngModel",o.searchDepartment),g(8),v("ngIf",o.loading),g(),v("ngIf",!o.loading),g(),v("length",o.totalCount)("pageSize",o.pageSize)("pageSizeOptions",o.pageSizeOptions)("pageIndex",o.pageNumber-1))},dependencies:[Je,Bt,Fe,_t,Ft,It,kt,Tt,Rt,Ot,Ge,Ze,Sa,_a,va,wa,ya,ba,Da,xa,Ca,Ma,Ea,ww,Fc,mr,Aw,$l,Iw,Zt,Kt,An,ur,Pn,ai,Xt,gi,Qa,Bi,Ci,wi,Qr,di,Pt,Ro,Lt,Xn],styles:["mat-card[_ngcontent-%COMP%]{margin:16px}.nl-search-card[_ngcontent-%COMP%]{margin:16px 16px 0}.nl-search-card[_ngcontent-%COMP%] mat-card-title[_ngcontent-%COMP%]{display:flex;align-items:center;font-size:18px}.nl-parsed-hint[_ngcontent-%COMP%]{font-size:13px;color:#0000008a}.nl-error[_ngcontent-%COMP%]{color:#f44336;font-size:13px;margin-top:8px}mat-card-header[_ngcontent-%COMP%]{display:flex;align-items:center;margin-bottom:16px;padding:16px;border-bottom:1px solid rgba(0,0,0,.12)}mat-card-header[_ngcontent-%COMP%] mat-card-title[_ngcontent-%COMP%]{font-size:20px;font-weight:500;margin:0}mat-card-header[_ngcontent-%COMP%] .flex-spacer[_ngcontent-%COMP%]{flex:1 1 auto}mat-card-header[_ngcontent-%COMP%] button[_ngcontent-%COMP%] mat-icon[_ngcontent-%COMP%]{margin-right:4px}mat-card-content[_ngcontent-%COMP%]{padding:0}.table-container[_ngcontent-%COMP%]{position:relative;min-height:300px;overflow-x:auto}.loading-spinner[_ngcontent-%COMP%]{display:flex;justify-content:center;align-items:center;min-height:300px}.position-table[_ngcontent-%COMP%]{width:100%}.position-table[_ngcontent-%COMP%] th[_ngcontent-%COMP%]{font-weight:600;font-size:14px;color:#000000de}.position-table[_ngcontent-%COMP%] td[_ngcontent-%COMP%]{font-size:14px;color:#000000de}.position-table[_ngcontent-%COMP%] .mat-column-positionNumber[_ngcontent-%COMP%]{min-width:150px}.position-table[_ngcontent-%COMP%] .mat-column-positionTitle[_ngcontent-%COMP%]{min-width:200px}.position-table[_ngcontent-%COMP%] .mat-column-departmentId[_ngcontent-%COMP%], .position-table[_ngcontent-%COMP%] .mat-column-salaryRangeId[_ngcontent-%COMP%]{min-width:150px}.position-table[_ngcontent-%COMP%] .mat-column-actions[_ngcontent-%COMP%]{width:150px;text-align:right}.position-table[_ngcontent-%COMP%] .action-buttons[_ngcontent-%COMP%]{display:flex;justify-content:flex-end;gap:4px}.position-table[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{margin-left:4px}.no-data[_ngcontent-%COMP%]{display:flex;flex-direction:column;align-items:center;justify-content:center;padding:48px 16px;color:#0000008a}.no-data[_ngcontent-%COMP%] mat-icon[_ngcontent-%COMP%]{font-size:48px;width:48px;height:48px;margin-bottom:16px}.no-data[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{margin:0;font-size:16px}mat-paginator[_ngcontent-%COMP%]{border-top:1px solid rgba(0,0,0,.12)}"]});let t=n;return t})();var nU=()=>["HRAdmin","Manager"];function Rve(t,n){t&1&&(m(0,"div",2),M(1,"mat-spinner"),h())}function Pve(t,n){if(t&1){let e=q();m(0,"button",9),S("click",function(){k(e);let r=x(2);return T(r.editPosition())}),m(1,"mat-icon"),f(2,"edit"),h()()}}function Fve(t,n){if(t&1){let e=q();m(0,"button",10),S("click",function(){k(e);let r=x(2);return T(r.deletePosition())}),m(1,"mat-icon"),f(2,"delete"),h()()}}function Nve(t,n){if(t&1&&(m(0,"mat-list-item")(1,"span",7),f(2,"Description:"),h(),m(3,"span",8),f(4),h()()),t&2){let e=x(2);g(4),N(e.position.positionDescription)}}function Lve(t,n){t&1&&M(0,"mat-divider")}function Vve(t,n){if(t&1&&(m(0,"mat-list-item")(1,"span",7),f(2,"Created:"),h(),m(3,"span",8),f(4),me(5,"date"),h()()),t&2){let e=x(2);g(4),N(Ui(5,1,e.position.createdAt,"medium"))}}function Bve(t,n){t&1&&M(0,"mat-divider")}function jve(t,n){if(t&1&&(m(0,"mat-list-item")(1,"span",7),f(2,"Last Modified:"),h(),m(3,"span",8),f(4),me(5,"date"),h()()),t&2){let e=x(2);g(4),N(Ui(5,1,e.position.lastModifiedAt,"medium"))}}function Hve(t,n){if(t&1){let e=q();m(0,"mat-card")(1,"mat-card-header")(2,"mat-card-title"),f(3),h(),m(4,"div",3),A(5,Pve,3,0,"button",4)(6,Fve,3,0,"button",5),m(7,"button",6),S("click",function(){k(e);let r=x();return T(r.goBack())}),m(8,"mat-icon"),f(9,"arrow_back"),h()()()(),m(10,"mat-card-content")(11,"mat-list")(12,"mat-list-item")(13,"span",7),f(14,"Position Number:"),h(),m(15,"span",8),f(16),h()(),M(17,"mat-divider"),m(18,"mat-list-item")(19,"span",7),f(20,"Position Title:"),h(),m(21,"span",8),f(22),h()(),M(23,"mat-divider"),A(24,Nve,5,1,"mat-list-item",1)(25,Lve,1,0,"mat-divider",1),m(26,"mat-list-item")(27,"span",7),f(28,"Department:"),h(),m(29,"span",8),f(30),h()(),M(31,"mat-divider"),m(32,"mat-list-item")(33,"span",7),f(34,"Salary Range:"),h(),m(35,"span",8),f(36),h()(),M(37,"mat-divider"),A(38,Vve,6,4,"mat-list-item",1)(39,Bve,1,0,"mat-divider",1)(40,jve,6,4,"mat-list-item",1),h()()()}if(t&2){let e=x();g(3),N(e.position.positionTitle),g(2),v("appHasRole",dt(12,nU)),g(),v("appHasRole",dt(13,nU)),g(10),N(e.position.positionNumber),g(6),N(e.position.positionTitle),g(2),v("ngIf",e.position.positionDescription),g(),v("ngIf",e.position.positionDescription),g(5),N((e.position.department==null?null:e.position.department.name)||e.position.departmentId),g(6),N((e.position.salaryRange==null?null:e.position.salaryRange.name)||e.position.salaryRangeId),g(2),v("ngIf",e.position.createdAt),g(),v("ngIf",e.position.createdAt),g(),v("ngIf",e.position.lastModifiedAt)}}function zve(t,n){t&1&&(m(0,"mat-card")(1,"mat-card-content")(2,"p"),f(3,"Position not found."),h()()())}var rU=(()=>{let n=class n{constructor(){this.positionService=u(od),this.authService=u(Ht),this.route=u(Ai),this.router=u(Ae),this.snackBar=u(_i),this.dialog=u(Rn),this.loading=!1}ngOnInit(){let i=this.route.snapshot.paramMap.get("id");i&&this.loadPosition(i)}loadPosition(i){this.loading=!0,this.positionService.getById(i).subscribe({next:r=>{this.position=r,this.loading=!1},error:r=>{console.error("Error loading position:",r),this.showMessage("Error loading position"),this.loading=!1,this.router.navigate(["/positions"])}})}editPosition(){this.router.navigate(["/positions","edit",this.position.id])}deletePosition(){this.dialog.open(Fr,{width:"400px",data:{title:"Delete Position",message:`Are you sure you want to delete "${this.position.positionTitle}"? This action cannot be undone.`,confirmText:"Delete",cancelText:"Cancel"}}).afterClosed().subscribe(r=>{r&&this.positionService.delete(this.position.id).subscribe({next:()=>{let o=this.snackBar.open(`"${this.position.positionTitle}" has been deleted.`,"Close",{duration:3e3,horizontalPosition:"end",verticalPosition:"top"});o.afterDismissed().subscribe(()=>this.router.navigate(["/positions"])),o.onAction().subscribe(()=>this.router.navigate(["/positions"]))},error:o=>{console.error("Error deleting position:",o),this.showMessage("Failed to delete position. Please try again.")}})})}goBack(){this.router.navigate(["/positions"])}canEdit(){return this.authService.isHRAdmin()||this.authService.isManager()}canDelete(){return this.authService.isHRAdmin()||this.authService.isManager()}showMessage(i){this.snackBar.open(i,"Close",{duration:3e3,horizontalPosition:"end",verticalPosition:"top"})}};n.\u0275fac=function(r){return new(r||n)},n.\u0275cmp=E({type:n,selectors:[["app-position-detail"]],decls:4,vars:3,consts:[["class","loading-spinner",4,"ngIf"],[4,"ngIf"],[1,"loading-spinner"],[1,"header-actions"],["mat-icon-button","","color","primary","matTooltip","Edit Position",3,"click",4,"appHasRole"],["mat-icon-button","","color","warn","matTooltip","Delete Position",3,"click",4,"appHasRole"],["mat-icon-button","","matTooltip","Back to List",3,"click"],[1,"label"],[1,"value"],["mat-icon-button","","color","primary","matTooltip","Edit Position",3,"click"],["mat-icon-button","","color","warn","matTooltip","Delete Position",3,"click"]],template:function(r,o){r&1&&(M(0,"page-header"),A(1,Rve,2,0,"div",0)(2,Hve,41,14,"mat-card",1)(3,zve,4,0,"mat-card",1)),r&2&&(g(),v("ngIf",o.loading),g(),v("ngIf",!o.loading&&o.position),g(),v("ngIf",!o.loading&&!o.position))},dependencies:[Je,Bt,Fe,Ft,It,kt,Tt,Rt,Ot,Ge,Ze,fa,Xs,pa,Kr,Nr,Zt,Kt,wi,Pn,Lt,Xn,$a],styles:[".loading-spinner[_ngcontent-%COMP%]{display:flex;justify-content:center;align-items:center;min-height:400px}mat-card[_ngcontent-%COMP%]{margin:16px;max-width:800px}mat-card-header[_ngcontent-%COMP%]{padding:16px;border-bottom:1px solid rgba(0,0,0,.12);display:flex;justify-content:space-between;align-items:center}mat-card-header[_ngcontent-%COMP%] mat-card-title[_ngcontent-%COMP%]{font-size:24px;font-weight:500;margin:0}mat-card-header[_ngcontent-%COMP%] .header-actions[_ngcontent-%COMP%]{display:flex;gap:8px}mat-card-content[_ngcontent-%COMP%]{padding:0}mat-list[_ngcontent-%COMP%]{padding:0}mat-list-item[_ngcontent-%COMP%]{height:auto!important;min-height:48px;padding:12px 16px;display:flex;justify-content:space-between;align-items:flex-start}mat-list-item[_ngcontent-%COMP%] .label[_ngcontent-%COMP%]{font-weight:500;color:#0009;min-width:180px}mat-list-item[_ngcontent-%COMP%] .value[_ngcontent-%COMP%]{flex:1;text-align:right;word-break:break-word}"]});let t=n;return t})();function Uve(t,n){t&1&&(m(0,"div",0),M(1,"mat-spinner"),h())}function $ve(t,n){t&1&&(m(0,"mat-error"),f(1," Position title is required "),h())}function Wve(t,n){t&1&&(m(0,"mat-error"),f(1," Position title cannot exceed 100 characters "),h())}function Gve(t,n){t&1&&(m(0,"mat-error"),f(1," Position number is required "),h())}function qve(t,n){t&1&&(m(0,"mat-error"),f(1," Position number cannot exceed 50 characters "),h())}function Yve(t,n){t&1&&(m(0,"mat-error"),f(1," Position description cannot exceed 500 characters "),h())}function Qve(t,n){if(t&1&&(m(0,"mat-option",14),f(1),h()),t&2){let e=n.$implicit;v("value",e.id),g(),fe(" ",e.name," ")}}function Kve(t,n){t&1&&(m(0,"mat-error"),f(1," Department is required "),h())}function Zve(t,n){if(t&1&&(m(0,"mat-option",14),f(1),me(2,"number"),me(3,"number"),h()),t&2){let e=n.$implicit;v("value",e.id),g(),Sm(" ",e.name," ($",Ui(2,4,e.minSalary,"1.0-0")," - $",Ui(3,7,e.maxSalary,"1.0-0"),") ")}}function Xve(t,n){t&1&&(m(0,"mat-error"),f(1," Salary range is required "),h())}var pA=(()=>{let n=class n{constructor(){this.fb=u(co),this.router=u(Ae),this.route=u(Ai),this.snackBar=u(_i),this.positionService=u(od),this.departmentService=u(tl),this.salaryRangeService=u(ad),this.loading=!1,this.isEditMode=!1,this.departments=[],this.salaryRanges=[]}ngOnInit(){this.initForm(),this.loadDepartments(),this.loadSalaryRanges(),this.checkEditMode()}initForm(){this.positionForm=this.fb.group({positionTitle:["",[Ve.required,Ve.maxLength(100)]],positionNumber:["",[Ve.required,Ve.maxLength(50)]],positionDescription:["",[Ve.maxLength(500)]],departmentId:["",Ve.required],salaryRangeId:["",Ve.required]})}loadDepartments(){this.departmentService.getAll().subscribe({next:i=>{this.departments=i},error:i=>{console.error("Error loading departments:",i),this.showMessage("Error loading departments")}})}loadSalaryRanges(){this.salaryRangeService.getAll().subscribe({next:i=>{this.salaryRanges=i},error:i=>{console.error("Error loading salary ranges:",i),this.showMessage("Error loading salary ranges")}})}checkEditMode(){this.positionId=this.route.snapshot.paramMap.get("id")||void 0,this.isEditMode=!!this.positionId,this.isEditMode&&this.positionId&&this.loadPosition(this.positionId)}loadPosition(i){this.loading=!0,this.positionService.getById(i).subscribe({next:r=>{this.positionForm.patchValue({positionTitle:r.positionTitle,positionNumber:r.positionNumber,positionDescription:r.positionDescription,departmentId:r.departmentId,salaryRangeId:r.salaryRangeId}),this.loading=!1},error:r=>{console.error("Error loading position:",r),this.showMessage("Error loading position"),this.loading=!1}})}onSubmit(){if(this.positionForm.invalid){this.positionForm.markAllAsTouched();return}if(this.loading=!0,this.isEditMode&&this.positionId){let i=I({id:this.positionId},this.positionForm.value);this.positionService.updatePosition(i).subscribe({next:()=>{this.showMessage("Position updated successfully"),this.router.navigate(["/positions",this.positionId])},error:r=>{console.error("Error updating position:",r),this.showMessage("Error updating position"),this.loading=!1}})}else{let i=this.positionForm.value;this.positionService.createPosition(i).subscribe({next:r=>{console.log("Position created - Response:",r),console.log("Position ID:",r?.id),this.showMessage("Position created successfully"),r?.id?(console.log("Navigating to detail page:","/positions/"+r.id),this.router.navigate(["/positions",r.id])):(console.warn("No position ID returned, navigating to list page"),this.router.navigate(["/positions"])),this.loading=!1},error:r=>{console.error("Error creating position:",r),this.showMessage("Error creating position"),this.loading=!1}})}}onCancel(){this.router.navigate(["/positions"])}showMessage(i){this.snackBar.open(i,"Close",{duration:3e3,horizontalPosition:"end",verticalPosition:"top"})}getFormTitle(){return this.isEditMode?"Edit Position":"Create Position"}};n.\u0275fac=function(r){return new(r||n)},n.\u0275cmp=E({type:n,selectors:[["app-position-form"]],decls:43,vars:14,consts:[[1,"loading-overlay"],[3,"ngSubmit","formGroup"],[1,"form-section"],["appearance","outline",1,"full-width"],["matInput","","formControlName","positionTitle"],[4,"ngIf"],["matInput","","formControlName","positionNumber"],["matInput","","formControlName","positionDescription","rows","4"],["formControlName","departmentId"],[3,"value",4,"ngFor","ngForOf"],["formControlName","salaryRangeId"],[1,"form-actions"],["type","button","mat-stroked-button","",3,"click"],["type","submit","mat-raised-button","","color","primary",3,"disabled"],[3,"value"]],template:function(r,o){if(r&1&&(M(0,"page-header"),m(1,"mat-card")(2,"mat-card-header")(3,"mat-card-title"),f(4),h()(),m(5,"mat-card-content"),V(6,Uve,2,0,"div",0),m(7,"form",1),S("ngSubmit",function(){return o.onSubmit()}),m(8,"div",2)(9,"mat-form-field",3)(10,"mat-label"),f(11,"Position Title"),h(),M(12,"input",4),A(13,$ve,2,0,"mat-error",5)(14,Wve,2,0,"mat-error",5),h(),m(15,"mat-form-field",3)(16,"mat-label"),f(17,"Position Number"),h(),M(18,"input",6),A(19,Gve,2,0,"mat-error",5)(20,qve,2,0,"mat-error",5),h(),m(21,"mat-form-field",3)(22,"mat-label"),f(23,"Position Description"),h(),M(24,"textarea",7),A(25,Yve,2,0,"mat-error",5),h(),m(26,"mat-form-field",3)(27,"mat-label"),f(28,"Department"),h(),m(29,"mat-select",8),A(30,Qve,2,2,"mat-option",9),h(),A(31,Kve,2,0,"mat-error",5),h(),m(32,"mat-form-field",3)(33,"mat-label"),f(34,"Salary Range"),h(),m(35,"mat-select",10),A(36,Zve,4,10,"mat-option",9),h(),A(37,Xve,2,0,"mat-error",5),h()(),m(38,"div",11)(39,"button",12),S("click",function(){return o.onCancel()}),f(40," Cancel "),h(),m(41,"button",13),f(42),h()()()()()),r&2){let a,s,l,c,d,p,_;g(4),N(o.getFormTitle()),g(2),B(o.loading?6:-1),g(),v("formGroup",o.positionForm),g(6),v("ngIf",(a=o.positionForm.get("positionTitle"))==null?null:a.hasError("required")),g(),v("ngIf",(s=o.positionForm.get("positionTitle"))==null?null:s.hasError("maxlength")),g(5),v("ngIf",(l=o.positionForm.get("positionNumber"))==null?null:l.hasError("required")),g(),v("ngIf",(c=o.positionForm.get("positionNumber"))==null?null:c.hasError("maxlength")),g(5),v("ngIf",(d=o.positionForm.get("positionDescription"))==null?null:d.hasError("maxlength")),g(5),v("ngForOf",o.departments),g(),v("ngIf",(p=o.positionForm.get("departmentId"))==null?null:p.hasError("required")),g(5),v("ngForOf",o.salaryRanges),g(),v("ngIf",(_=o.positionForm.get("salaryRangeId"))==null?null:_.hasError("required")),g(4),v("disabled",o.loading),g(),fe(" ",o.isEditMode?"Update":"Create"," ")}},dependencies:[Je,Un,Bt,Zn,lo,di,Pt,so,nn,Yr,Fe,_t,It,kt,Tt,Rt,Ot,ai,Xt,gi,Ao,Bi,Ci,Rc,Ja,Sn,Zt,Kt,wi,Lt,xf],styles:["mat-card[_ngcontent-%COMP%]{margin:16px;max-width:800px}mat-card-header[_ngcontent-%COMP%]{margin-bottom:16px;padding:16px;border-bottom:1px solid rgba(0,0,0,.12)}mat-card-header[_ngcontent-%COMP%] mat-card-title[_ngcontent-%COMP%]{font-size:20px;font-weight:500;margin:0}mat-card-content[_ngcontent-%COMP%]{padding:16px;position:relative}.loading-overlay[_ngcontent-%COMP%]{position:absolute;inset:0;background-color:#fffc;display:flex;align-items:center;justify-content:center;z-index:1000}.form-section[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:16px;margin-bottom:24px}.form-section[_ngcontent-%COMP%] .full-width[_ngcontent-%COMP%]{width:100%}.form-actions[_ngcontent-%COMP%]{display:flex;gap:12px;justify-content:flex-end;padding-top:16px;border-top:1px solid rgba(0,0,0,.12)}"]});let t=n;return t})();var oU=()=>["HRAdmin","Manager"],Jve=()=>[5,10,25,50],eye=()=>["HRAdmin"];function tye(t,n){if(t&1){let e=q();m(0,"button",6),S("click",function(){k(e);let r=x();return T(r.createSalaryRange())}),m(1,"mat-icon"),f(2,"add"),h(),f(3," Add Salary Range "),h()}}function iye(t,n){t&1&&(m(0,"div",7),M(1,"mat-spinner"),h())}function nye(t,n){t&1&&(m(0,"th",20),f(1,"Range Name"),h())}function rye(t,n){if(t&1&&(m(0,"td",21),f(1),h()),t&2){let e=n.$implicit;g(),N(e.name)}}function oye(t,n){t&1&&(m(0,"th",20),f(1,"Minimum Salary"),h())}function aye(t,n){if(t&1&&(m(0,"td",21),f(1),me(2,"currency"),h()),t&2){let e=n.$implicit;g(),N(Tm(2,1,e.minSalary,"USD","symbol","1.0-0"))}}function sye(t,n){t&1&&(m(0,"th",20),f(1,"Maximum Salary"),h())}function lye(t,n){if(t&1&&(m(0,"td",21),f(1),me(2,"currency"),h()),t&2){let e=n.$implicit;g(),N(Tm(2,1,e.maxSalary,"USD","symbol","1.0-0"))}}function cye(t,n){t&1&&(m(0,"th",22),f(1,"Actions"),h())}function dye(t,n){if(t&1){let e=q();m(0,"button",28),S("click",function(){k(e);let r=x().$implicit,o=x(2);return T(o.editSalaryRange(r))}),m(1,"mat-icon"),f(2,"edit"),h()()}}function uye(t,n){if(t&1){let e=q();m(0,"button",29),S("click",function(){k(e);let r=x().$implicit,o=x(2);return T(o.deleteSalaryRange(r))}),m(1,"mat-icon"),f(2,"delete"),h()()}}function mye(t,n){if(t&1){let e=q();m(0,"td",23)(1,"div",24)(2,"button",25),S("click",function(){let r=k(e).$implicit,o=x(2);return T(o.viewSalaryRange(r))}),m(3,"mat-icon"),f(4,"visibility"),h()(),A(5,dye,3,0,"button",26)(6,uye,3,0,"button",27),h()()}t&2&&(g(5),v("appHasRole",dt(2,oU)),g(),v("appHasRole",dt(3,eye)))}function hye(t,n){t&1&&M(0,"tr",30)}function pye(t,n){t&1&&M(0,"tr",31)}function fye(t,n){if(t&1&&(m(0,"tr",32)(1,"td",33)(2,"div",34)(3,"mat-icon"),f(4,"money_off"),h(),m(5,"p"),f(6,"No salary ranges found"),h()()()()),t&2){let e=x(2);g(),X("colspan",e.displayedColumns.length)}}function gye(t,n){if(t&1&&(m(0,"table",8),lt(1,9),A(2,nye,2,0,"th",10)(3,rye,2,1,"td",11),ot(),lt(4,12),A(5,oye,2,0,"th",10)(6,aye,3,6,"td",11),ot(),lt(7,13),A(8,sye,2,0,"th",10)(9,lye,3,6,"td",11),ot(),lt(10,14),A(11,cye,2,0,"th",15)(12,mye,7,4,"td",16),ot(),A(13,hye,1,0,"tr",17)(14,pye,1,0,"tr",18)(15,fye,7,1,"tr",19),h()),t&2){let e=x();v("dataSource",e.dataSource),g(13),v("matHeaderRowDef",e.displayedColumns),g(),v("matRowDefColumns",e.displayedColumns)}}var aU=(()=>{let n=class n{constructor(){this.salaryRangeService=u(ad),this.authService=u(Ht),this.router=u(Ae),this.snackBar=u(_i),this.dialog=u(Rn),this.dataSource=new Cw([]),this.loading=!1,this.displayedColumns=["name","minSalary","maxSalary","actions"]}ngOnInit(){this.loadSalaryRanges()}ngAfterViewInit(){this.dataSource.paginator=this.paginator,this.dataSource.sort=this.sort}loadSalaryRanges(){this.loading=!0,this.salaryRangeService.getAll().subscribe({next:i=>{this.dataSource.data=i,this.loading=!1},error:i=>{console.error("Error loading salary ranges:",i),this.loading=!1}})}createSalaryRange(){this.router.navigate(["/salary-ranges/create"])}viewSalaryRange(i){this.router.navigate(["/salary-ranges",i.id])}editSalaryRange(i){this.router.navigate(["/salary-ranges/edit",i.id])}deleteSalaryRange(i){this.dialog.open(Fr,{width:"400px",data:{title:"Delete Salary Range",message:`Are you sure you want to delete "${i.name}"? This action cannot be undone.`,confirmText:"Delete",cancelText:"Cancel"}}).afterClosed().subscribe(o=>{o&&this.salaryRangeService.delete(i.id).subscribe({next:()=>{this.showMessage(`"${i.name}" has been deleted.`),this.loadSalaryRanges()},error:a=>{console.error("Error deleting salary range:",a),this.showMessage("Failed to delete salary range. Please try again.")}})})}showMessage(i){this.snackBar.open(i,"Close",{duration:3e3,horizontalPosition:"end",verticalPosition:"top"})}canEdit(){return this.authService.hasRole("HRAdmin")||this.authService.hasRole("Manager")}};n.\u0275fac=function(r){return new(r||n)},n.\u0275cmp=E({type:n,selectors:[["app-salary-range-list"]],viewQuery:function(r,o){if(r&1&&(ie(mr,5),ie($l,5)),r&2){let a;j(a=H())&&(o.paginator=a.first),j(a=H())&&(o.sort=a.first)}},decls:12,vars:6,consts:[[1,"flex-spacer"],["mat-raised-button","","color","primary",3,"click",4,"appHasRole"],[1,"table-container"],["class","loading-spinner",4,"ngIf"],["mat-table","","matSort","","class","salary-range-table",3,"dataSource",4,"ngIf"],["showFirstLastButtons","",3,"pageSizeOptions"],["mat-raised-button","","color","primary",3,"click"],[1,"loading-spinner"],["mat-table","","matSort","",1,"salary-range-table",3,"dataSource"],["matColumnDef","name"],["mat-header-cell","","mat-sort-header","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","minSalary"],["matColumnDef","maxSalary"],["matColumnDef","actions"],["mat-header-cell","","class","mat-column-actions",4,"matHeaderCellDef"],["mat-cell","","class","mat-column-actions",4,"matCellDef"],["mat-header-row","",4,"matHeaderRowDef"],["mat-row","",4,"matRowDef","matRowDefColumns"],["class","mat-row",4,"matNoDataRow"],["mat-header-cell","","mat-sort-header",""],["mat-cell",""],["mat-header-cell","",1,"mat-column-actions"],["mat-cell","",1,"mat-column-actions"],[1,"action-buttons"],["mat-icon-button","","color","primary","matTooltip","View Details",3,"click"],["mat-icon-button","","color","accent","matTooltip","Edit Salary Range",3,"click",4,"appHasRole"],["mat-icon-button","","color","warn","matTooltip","Delete Salary Range",3,"click",4,"appHasRole"],["mat-icon-button","","color","accent","matTooltip","Edit Salary Range",3,"click"],["mat-icon-button","","color","warn","matTooltip","Delete Salary Range",3,"click"],["mat-header-row",""],["mat-row",""],[1,"mat-row"],[1,"mat-cell"],[1,"no-data"]],template:function(r,o){r&1&&(M(0,"page-header"),m(1,"mat-card")(2,"mat-card-header")(3,"mat-card-title"),f(4,"Salary Ranges"),h(),M(5,"span",0),A(6,tye,4,0,"button",1),h(),m(7,"mat-card-content")(8,"div",2),A(9,iye,2,0,"div",3)(10,gye,16,3,"table",4),h(),M(11,"mat-paginator",5),h()()),r&2&&(g(6),v("appHasRole",dt(4,oU)),g(3),v("ngIf",o.loading),g(),v("ngIf",!o.loading),g(),v("pageSizeOptions",dt(5,Jve)))},dependencies:[Je,Bt,Fe,_t,Ft,It,kt,Tt,Rt,Ot,Ge,Ze,Sa,_a,va,wa,ya,ba,Da,xa,Ca,Ma,Ea,ww,Fc,mr,Aw,$l,Iw,Zt,Kt,An,ur,wi,Pn,Lt,Xn,yl],styles:["mat-card[_ngcontent-%COMP%]{margin:16px}mat-card-header[_ngcontent-%COMP%]{display:flex;align-items:center;margin-bottom:16px;padding:16px;border-bottom:1px solid rgba(0,0,0,.12)}mat-card-header[_ngcontent-%COMP%] mat-card-title[_ngcontent-%COMP%]{font-size:20px;font-weight:500;margin:0}mat-card-header[_ngcontent-%COMP%] .flex-spacer[_ngcontent-%COMP%]{flex:1 1 auto}mat-card-header[_ngcontent-%COMP%] button[_ngcontent-%COMP%] mat-icon[_ngcontent-%COMP%]{margin-right:4px}mat-card-content[_ngcontent-%COMP%]{padding:0}.table-container[_ngcontent-%COMP%]{position:relative;min-height:300px;overflow-x:auto}.loading-spinner[_ngcontent-%COMP%]{display:flex;justify-content:center;align-items:center;min-height:300px}.salary-range-table[_ngcontent-%COMP%]{width:100%}.salary-range-table[_ngcontent-%COMP%] th[_ngcontent-%COMP%]{font-weight:600;font-size:14px;color:#000000de}.salary-range-table[_ngcontent-%COMP%] td[_ngcontent-%COMP%]{font-size:14px;color:#000000de}.salary-range-table[_ngcontent-%COMP%] .mat-column-name[_ngcontent-%COMP%]{min-width:200px}.salary-range-table[_ngcontent-%COMP%] .mat-column-minSalary[_ngcontent-%COMP%], .salary-range-table[_ngcontent-%COMP%] .mat-column-maxSalary[_ngcontent-%COMP%]{min-width:150px}.salary-range-table[_ngcontent-%COMP%] .mat-column-actions[_ngcontent-%COMP%]{width:150px;text-align:right}.salary-range-table[_ngcontent-%COMP%] .action-buttons[_ngcontent-%COMP%]{display:flex;justify-content:flex-end;gap:4px}.salary-range-table[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{margin-left:4px}.no-data[_ngcontent-%COMP%]{display:flex;flex-direction:column;align-items:center;justify-content:center;padding:48px 16px;color:#0000008a}.no-data[_ngcontent-%COMP%] mat-icon[_ngcontent-%COMP%]{font-size:48px;width:48px;height:48px;margin-bottom:16px}.no-data[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{margin:0;font-size:16px}mat-paginator[_ngcontent-%COMP%]{border-top:1px solid rgba(0,0,0,.12)}"]});let t=n;return t})();var sU=()=>["HRAdmin","Manager"];function _ye(t,n){t&1&&(m(0,"div",2),M(1,"mat-spinner"),h())}function bye(t,n){if(t&1){let e=q();m(0,"button",9),S("click",function(){k(e);let r=x(2);return T(r.editSalaryRange())}),m(1,"mat-icon"),f(2,"edit"),h()()}}function vye(t,n){if(t&1){let e=q();m(0,"button",10),S("click",function(){k(e);let r=x(2);return T(r.deleteSalaryRange())}),m(1,"mat-icon"),f(2,"delete"),h()()}}function yye(t,n){if(t&1&&(m(0,"mat-list-item")(1,"span",7),f(2,"Created:"),h(),m(3,"span",8),f(4),me(5,"date"),h()()),t&2){let e=x(2);g(4),N(Ui(5,1,e.salaryRange.createdAt,"medium"))}}function xye(t,n){t&1&&M(0,"mat-divider")}function Cye(t,n){if(t&1&&(m(0,"mat-list-item")(1,"span",7),f(2,"Last Modified:"),h(),m(3,"span",8),f(4),me(5,"date"),h()()),t&2){let e=x(2);g(4),N(Ui(5,1,e.salaryRange.lastModifiedAt,"medium"))}}function wye(t,n){if(t&1){let e=q();m(0,"mat-card")(1,"mat-card-header")(2,"mat-card-title"),f(3),h(),m(4,"div",3),A(5,bye,3,0,"button",4)(6,vye,3,0,"button",5),m(7,"button",6),S("click",function(){k(e);let r=x();return T(r.goBack())}),m(8,"mat-icon"),f(9,"arrow_back"),h()()()(),m(10,"mat-card-content")(11,"mat-list")(12,"mat-list-item")(13,"span",7),f(14,"Name:"),h(),m(15,"span",8),f(16),h()(),M(17,"mat-divider"),m(18,"mat-list-item")(19,"span",7),f(20,"Minimum Salary:"),h(),m(21,"span",8),f(22),me(23,"currency"),h()(),M(24,"mat-divider"),m(25,"mat-list-item")(26,"span",7),f(27,"Maximum Salary:"),h(),m(28,"span",8),f(29),me(30,"currency"),h()(),M(31,"mat-divider"),A(32,yye,6,4,"mat-list-item",1)(33,xye,1,0,"mat-divider",1)(34,Cye,6,4,"mat-list-item",1),h()()()}if(t&2){let e=x();g(3),N(e.salaryRange.name),g(2),v("appHasRole",dt(13,sU)),g(),v("appHasRole",dt(14,sU)),g(10),N(e.salaryRange.name),g(6),N(Re(23,9,e.salaryRange.minSalary)),g(7),N(Re(30,11,e.salaryRange.maxSalary)),g(3),v("ngIf",e.salaryRange.createdAt),g(),v("ngIf",e.salaryRange.createdAt),g(),v("ngIf",e.salaryRange.lastModifiedAt)}}function Dye(t,n){t&1&&(m(0,"mat-card")(1,"mat-card-content")(2,"p"),f(3,"Salary range not found."),h()()())}var lU=(()=>{let n=class n{constructor(){this.salaryRangeService=u(ad),this.authService=u(Ht),this.route=u(Ai),this.router=u(Ae),this.snackBar=u(_i),this.dialog=u(Rn),this.loading=!1}ngOnInit(){let i=this.route.snapshot.paramMap.get("id");i&&this.loadSalaryRange(i)}loadSalaryRange(i){this.loading=!0,this.salaryRangeService.getById(i).subscribe({next:r=>{this.salaryRange=r,this.loading=!1},error:r=>{console.error("Error loading salary range:",r),this.showMessage("Error loading salary range"),this.loading=!1,this.router.navigate(["/salary-ranges"])}})}editSalaryRange(){this.router.navigate(["/salary-ranges","edit",this.salaryRange.id])}deleteSalaryRange(){this.dialog.open(Fr,{width:"400px",data:{title:"Delete Salary Range",message:`Are you sure you want to delete "${this.salaryRange.name}"? This action cannot be undone.`,confirmText:"Delete",cancelText:"Cancel"}}).afterClosed().subscribe(r=>{r&&this.salaryRangeService.delete(this.salaryRange.id).subscribe({next:()=>{let o=this.snackBar.open(`"${this.salaryRange.name}" has been deleted.`,"Close",{duration:3e3,horizontalPosition:"end",verticalPosition:"top"});o.afterDismissed().subscribe(()=>this.router.navigate(["/salary-ranges"])),o.onAction().subscribe(()=>this.router.navigate(["/salary-ranges"]))},error:o=>{console.error("Error deleting salary range:",o),this.showMessage("Failed to delete salary range. Please try again.")}})})}goBack(){this.router.navigate(["/salary-ranges"])}canEdit(){return this.authService.isHRAdmin()||this.authService.isManager()}canDelete(){return this.authService.isHRAdmin()||this.authService.isManager()}showMessage(i){this.snackBar.open(i,"Close",{duration:3e3,horizontalPosition:"end",verticalPosition:"top"})}};n.\u0275fac=function(r){return new(r||n)},n.\u0275cmp=E({type:n,selectors:[["app-salary-range-detail"]],decls:4,vars:3,consts:[["class","loading-spinner",4,"ngIf"],[4,"ngIf"],[1,"loading-spinner"],[1,"header-actions"],["mat-icon-button","","color","primary","matTooltip","Edit Salary Range",3,"click",4,"appHasRole"],["mat-icon-button","","color","warn","matTooltip","Delete Salary Range",3,"click",4,"appHasRole"],["mat-icon-button","","matTooltip","Back to List",3,"click"],[1,"label"],[1,"value"],["mat-icon-button","","color","primary","matTooltip","Edit Salary Range",3,"click"],["mat-icon-button","","color","warn","matTooltip","Delete Salary Range",3,"click"]],template:function(r,o){r&1&&(M(0,"page-header"),A(1,_ye,2,0,"div",0)(2,wye,35,15,"mat-card",1)(3,Dye,4,0,"mat-card",1)),r&2&&(g(),v("ngIf",o.loading),g(),v("ngIf",!o.loading&&o.salaryRange),g(),v("ngIf",!o.loading&&!o.salaryRange))},dependencies:[Je,Bt,Fe,Ft,It,kt,Tt,Rt,Ot,Ge,Ze,fa,Xs,pa,Kr,Nr,Zt,Kt,wi,Pn,Lt,Xn,yl,$a],styles:[".loading-spinner[_ngcontent-%COMP%]{display:flex;justify-content:center;align-items:center;min-height:400px}mat-card[_ngcontent-%COMP%]{margin:16px;max-width:800px}mat-card-header[_ngcontent-%COMP%]{padding:16px;border-bottom:1px solid rgba(0,0,0,.12);display:flex;justify-content:space-between;align-items:center}mat-card-header[_ngcontent-%COMP%] mat-card-title[_ngcontent-%COMP%]{font-size:24px;font-weight:500;margin:0}mat-card-header[_ngcontent-%COMP%] .header-actions[_ngcontent-%COMP%]{display:flex;gap:8px}mat-card-content[_ngcontent-%COMP%]{padding:0}mat-list[_ngcontent-%COMP%]{padding:0}mat-list-item[_ngcontent-%COMP%]{height:auto!important;min-height:48px;padding:12px 16px;display:flex;justify-content:space-between;align-items:flex-start}mat-list-item[_ngcontent-%COMP%] .label[_ngcontent-%COMP%]{font-weight:500;color:#0009;min-width:180px}mat-list-item[_ngcontent-%COMP%] .value[_ngcontent-%COMP%]{flex:1;text-align:right;word-break:break-word}"]});let t=n;return t})();function Mye(t,n){t&1&&(m(0,"div",0),M(1,"mat-spinner"),h())}function Eye(t,n){t&1&&(m(0,"mat-error"),f(1," Range name is required "),h())}function Sye(t,n){t&1&&(m(0,"mat-error"),f(1," Range name cannot exceed 100 characters "),h())}function kye(t,n){t&1&&(m(0,"mat-error"),f(1," Minimum salary is required "),h())}function Tye(t,n){t&1&&(m(0,"mat-error"),f(1," Minimum salary must be at least 0 "),h())}function Iye(t,n){t&1&&(m(0,"mat-error"),f(1," Maximum salary is required "),h())}function Aye(t,n){t&1&&(m(0,"mat-error"),f(1," Maximum salary must be at least 0 "),h())}function Oye(t,n){t&1&&(m(0,"mat-error",13),f(1," Maximum salary must be greater than minimum salary "),h())}var fA=(()=>{let n=class n{constructor(){this.fb=u(co),this.router=u(Ae),this.route=u(Ai),this.snackBar=u(_i),this.salaryRangeService=u(ad),this.loading=!1,this.isEditMode=!1}ngOnInit(){this.initForm(),this.checkEditMode()}initForm(){this.salaryRangeForm=this.fb.group({name:["",[Ve.required,Ve.maxLength(100)]],minSalary:["",[Ve.required,Ve.min(0)]],maxSalary:["",[Ve.required,Ve.min(0)]]},{validators:this.salaryRangeValidator})}salaryRangeValidator(i){let r=i.get("minSalary")?.value,o=i.get("maxSalary")?.value;return r&&o&&parseFloat(r)>=parseFloat(o)?{salaryRangeInvalid:!0}:null}checkEditMode(){this.salaryRangeId=this.route.snapshot.paramMap.get("id")||void 0,this.isEditMode=!!this.salaryRangeId,this.isEditMode&&this.salaryRangeId&&this.loadSalaryRange(this.salaryRangeId)}loadSalaryRange(i){this.loading=!0,this.salaryRangeService.getById(i).subscribe({next:r=>{this.salaryRangeForm.patchValue({name:r.name,minSalary:r.minSalary,maxSalary:r.maxSalary}),this.loading=!1},error:r=>{console.error("Error loading salary range:",r),this.showMessage("Error loading salary range"),this.loading=!1}})}onSubmit(){if(this.salaryRangeForm.invalid){this.salaryRangeForm.markAllAsTouched();return}if(this.loading=!0,this.isEditMode&&this.salaryRangeId){let i={id:this.salaryRangeId,name:this.salaryRangeForm.value.name,minSalary:parseFloat(this.salaryRangeForm.value.minSalary),maxSalary:parseFloat(this.salaryRangeForm.value.maxSalary)};this.salaryRangeService.updateSalaryRange(i).subscribe({next:()=>{this.showMessage("Salary range updated successfully"),this.router.navigate(["/salary-ranges",this.salaryRangeId])},error:r=>{console.error("Error updating salary range:",r),this.showMessage("Error updating salary range"),this.loading=!1}})}else{let i={name:this.salaryRangeForm.value.name,minSalary:parseFloat(this.salaryRangeForm.value.minSalary),maxSalary:parseFloat(this.salaryRangeForm.value.maxSalary)};this.salaryRangeService.createSalaryRange(i).subscribe({next:r=>{console.log("Salary range created - Response:",r),console.log("Salary range ID:",r?.id),this.showMessage("Salary range created successfully"),r?.id?(console.log("Navigating to detail page:","/salary-ranges/"+r.id),this.router.navigate(["/salary-ranges",r.id])):(console.warn("No salary range ID returned, navigating to list page"),this.router.navigate(["/salary-ranges"])),this.loading=!1},error:r=>{console.error("Error creating salary range:",r),this.showMessage("Error creating salary range"),this.loading=!1}})}}onCancel(){this.router.navigate(["/salary-ranges"])}showMessage(i){this.snackBar.open(i,"Close",{duration:3e3,horizontalPosition:"end",verticalPosition:"top"})}getFormTitle(){return this.isEditMode?"Edit Salary Range":"Create Salary Range"}};n.\u0275fac=function(r){return new(r||n)},n.\u0275cmp=E({type:n,selectors:[["app-salary-range-form"]],decls:37,vars:12,consts:[[1,"loading-overlay"],[3,"ngSubmit","formGroup"],[1,"form-section"],["appearance","outline",1,"full-width"],["matInput","","formControlName","name"],[4,"ngIf"],["matInput","","type","number","formControlName","minSalary"],["matTextPrefix",""],["matInput","","type","number","formControlName","maxSalary"],["class","range-error",4,"ngIf"],[1,"form-actions"],["type","button","mat-stroked-button","",3,"click"],["type","submit","mat-raised-button","","color","primary",3,"disabled"],[1,"range-error"]],template:function(r,o){if(r&1&&(M(0,"page-header"),m(1,"mat-card")(2,"mat-card-header")(3,"mat-card-title"),f(4),h()(),m(5,"mat-card-content"),V(6,Mye,2,0,"div",0),m(7,"form",1),S("ngSubmit",function(){return o.onSubmit()}),m(8,"div",2)(9,"mat-form-field",3)(10,"mat-label"),f(11,"Range Name"),h(),M(12,"input",4),A(13,Eye,2,0,"mat-error",5)(14,Sye,2,0,"mat-error",5),h(),m(15,"mat-form-field",3)(16,"mat-label"),f(17,"Minimum Salary"),h(),M(18,"input",6),m(19,"span",7),f(20,"$\xA0"),h(),A(21,kye,2,0,"mat-error",5)(22,Tye,2,0,"mat-error",5),h(),m(23,"mat-form-field",3)(24,"mat-label"),f(25,"Maximum Salary"),h(),M(26,"input",8),m(27,"span",7),f(28,"$\xA0"),h(),A(29,Iye,2,0,"mat-error",5)(30,Aye,2,0,"mat-error",5),h(),A(31,Oye,2,0,"mat-error",9),h(),m(32,"div",10)(33,"button",11),S("click",function(){return o.onCancel()}),f(34," Cancel "),h(),m(35,"button",12),f(36),h()()()()()),r&2){let a,s,l,c,d,p;g(4),N(o.getFormTitle()),g(2),B(o.loading?6:-1),g(),v("formGroup",o.salaryRangeForm),g(6),v("ngIf",(a=o.salaryRangeForm.get("name"))==null?null:a.hasError("required")),g(),v("ngIf",(s=o.salaryRangeForm.get("name"))==null?null:s.hasError("maxlength")),g(7),v("ngIf",(l=o.salaryRangeForm.get("minSalary"))==null?null:l.hasError("required")),g(),v("ngIf",(c=o.salaryRangeForm.get("minSalary"))==null?null:c.hasError("min")),g(7),v("ngIf",(d=o.salaryRangeForm.get("maxSalary"))==null?null:d.hasError("required")),g(),v("ngIf",(p=o.salaryRangeForm.get("maxSalary"))==null?null:p.hasError("min")),g(),v("ngIf",o.salaryRangeForm.hasError("salaryRangeInvalid")&&o.salaryRangeForm.touched),g(4),v("disabled",o.loading),g(),fe(" ",o.isEditMode?"Update":"Create"," ")}},dependencies:[Je,Bt,Zn,lo,di,gu,Pt,so,nn,Yr,Fe,_t,It,kt,Tt,Rt,Ot,ai,Xt,gi,Ao,uu,Bi,Ci,Zt,Kt,wi,Lt],styles:["mat-card[_ngcontent-%COMP%]{margin:16px;max-width:800px}mat-card-header[_ngcontent-%COMP%]{margin-bottom:16px;padding:16px;border-bottom:1px solid rgba(0,0,0,.12)}mat-card-header[_ngcontent-%COMP%] mat-card-title[_ngcontent-%COMP%]{font-size:20px;font-weight:500;margin:0}mat-card-content[_ngcontent-%COMP%]{padding:16px;position:relative}.loading-overlay[_ngcontent-%COMP%]{position:absolute;inset:0;background-color:#fffc;display:flex;align-items:center;justify-content:center;z-index:1000}.form-section[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:16px;margin-bottom:24px}.form-section[_ngcontent-%COMP%] .full-width[_ngcontent-%COMP%]{width:100%}.form-section[_ngcontent-%COMP%] .range-error[_ngcontent-%COMP%]{color:#f44336;font-size:12px;margin-top:-8px}.form-actions[_ngcontent-%COMP%]{display:flex;gap:12px;justify-content:flex-end;padding-top:16px;border-top:1px solid rgba(0,0,0,.12)}"]});let t=n;return t})();var Rye=["*",[["mat-chip-avatar"],["","matChipAvatar",""]],[["mat-chip-trailing-icon"],["","matChipRemove",""],["","matChipTrailingIcon",""]]],Pye=["*","mat-chip-avatar, [matChipAvatar]","mat-chip-trailing-icon,[matChipRemove],[matChipTrailingIcon]"];function Fye(t,n){t&1&&(m(0,"span",3),ne(1,1),h())}function Nye(t,n){t&1&&(m(0,"span",6),ne(1,2),h())}var Lye=["*"];var Vye=new O("mat-chips-default-options",{providedIn:"root",factory:()=>({separatorKeyCodes:[13]})}),cU=new O("MatChipAvatar"),dU=new O("MatChipTrailingIcon"),uU=new O("MatChipEdit"),mU=new O("MatChipRemove"),pU=new O("MatChip"),hU=(()=>{class t{_elementRef=u(Y);_parentChip=u(pU);isInteractive=!0;_isPrimary=!0;_isLeading=!1;get disabled(){return this._disabled||this._parentChip?.disabled||!1}set disabled(e){this._disabled=e}_disabled=!1;tabIndex=-1;_allowFocusWhenDisabled=!1;_getDisabledAttribute(){return this.disabled&&!this._allowFocusWhenDisabled?"":null}_getTabindex(){return this.disabled&&!this._allowFocusWhenDisabled||!this.isInteractive?null:this.tabIndex.toString()}constructor(){u(ft).load(Oi),this._elementRef.nativeElement.nodeName==="BUTTON"&&this._elementRef.nativeElement.setAttribute("type","button")}focus(){this._elementRef.nativeElement.focus()}_handleClick(e){!this.disabled&&this.isInteractive&&this._isPrimary&&(e.preventDefault(),this._parentChip._handlePrimaryActionInteraction())}_handleKeydown(e){(e.keyCode===13||e.keyCode===32)&&!this.disabled&&this.isInteractive&&this._isPrimary&&!this._parentChip._isEditing&&(e.preventDefault(),this._parentChip._handlePrimaryActionInteraction())}static \u0275fac=function(i){return new(i||t)};static \u0275dir=P({type:t,selectors:[["","matChipAction",""]],hostAttrs:[1,"mdc-evolution-chip__action","mat-mdc-chip-action"],hostVars:11,hostBindings:function(i,r){i&1&&S("click",function(a){return r._handleClick(a)})("keydown",function(a){return r._handleKeydown(a)}),i&2&&(X("tabindex",r._getTabindex())("disabled",r._getDisabledAttribute())("aria-disabled",r.disabled),G("mdc-evolution-chip__action--primary",r._isPrimary)("mdc-evolution-chip__action--presentational",!r.isInteractive)("mdc-evolution-chip__action--secondary",!r._isPrimary)("mdc-evolution-chip__action--trailing",!r._isPrimary&&!r._isLeading))},inputs:{isInteractive:"isInteractive",disabled:[2,"disabled","disabled",L],tabIndex:[2,"tabIndex","tabIndex",e=>e==null?-1:ht(e)],_allowFocusWhenDisabled:"_allowFocusWhenDisabled"}})}return t})();var gA=(()=>{class t{_changeDetectorRef=u(ye);_elementRef=u(Y);_tagName=u(rE);_ngZone=u(ae);_focusMonitor=u(oi);_globalRippleOptions=u(Vs,{optional:!0});_document=u(_e);_onFocus=new z;_onBlur=new z;_isBasicChip;role=null;_hasFocusInternal=!1;_pendingFocus;_actionChanges;_animationsDisabled=Qe();_allLeadingIcons;_allTrailingIcons;_allEditIcons;_allRemoveIcons;_hasFocus(){return this._hasFocusInternal}id=u(et).getId("mat-mdc-chip-");ariaLabel=null;ariaDescription=null;_chipListDisabled=!1;_hadFocusOnRemove=!1;_textElement;get value(){return this._value!==void 0?this._value:this._textElement.textContent.trim()}set value(e){this._value=e}_value;color;removable=!0;highlighted=!1;disableRipple=!1;get disabled(){return this._disabled||this._chipListDisabled}set disabled(e){this._disabled=e}_disabled=!1;removed=new U;destroyed=new U;basicChipAttrName="mat-basic-chip";leadingIcon;editIcon;trailingIcon;removeIcon;primaryAction;_rippleLoader=u(iy);_injector=u(de);constructor(){let e=u(ft);e.load(Oi),e.load(ro),this._monitorFocus(),this._rippleLoader?.configureRipple(this._elementRef.nativeElement,{className:"mat-mdc-chip-ripple",disabled:this._isRippleDisabled()})}ngOnInit(){this._isBasicChip=this._elementRef.nativeElement.hasAttribute(this.basicChipAttrName)||this._tagName.toLowerCase()===this.basicChipAttrName}ngAfterViewInit(){this._textElement=this._elementRef.nativeElement.querySelector(".mat-mdc-chip-action-label"),this._pendingFocus&&(this._pendingFocus=!1,this.focus())}ngAfterContentInit(){this._actionChanges=it(this._allLeadingIcons.changes,this._allTrailingIcons.changes,this._allEditIcons.changes,this._allRemoveIcons.changes).subscribe(()=>this._changeDetectorRef.markForCheck())}ngDoCheck(){this._rippleLoader.setDisabled(this._elementRef.nativeElement,this._isRippleDisabled())}ngOnDestroy(){this._focusMonitor.stopMonitoring(this._elementRef),this._rippleLoader?.destroyRipple(this._elementRef.nativeElement),this._actionChanges?.unsubscribe(),this.destroyed.emit({chip:this}),this.destroyed.complete()}remove(){this.removable&&(this._hadFocusOnRemove=this._hasFocus(),this.removed.emit({chip:this}))}_isRippleDisabled(){return this.disabled||this.disableRipple||this._animationsDisabled||this._isBasicChip||!this._hasInteractiveActions()||!!this._globalRippleOptions?.disabled}_hasTrailingIcon(){return!!(this.trailingIcon||this.removeIcon)}_handleKeydown(e){(e.keyCode===8&&!e.repeat||e.keyCode===46)&&(e.preventDefault(),this.remove())}focus(){this.disabled||(this.primaryAction?this.primaryAction.focus():this._pendingFocus=!0)}_getSourceAction(e){return this._getActions().find(i=>{let r=i._elementRef.nativeElement;return r===e||r.contains(e)})}_getActions(){let e=[];return this.editIcon&&e.push(this.editIcon),this.primaryAction&&e.push(this.primaryAction),this.removeIcon&&e.push(this.removeIcon),this.trailingIcon&&e.push(this.trailingIcon),e}_handlePrimaryActionInteraction(){}_hasInteractiveActions(){return this._getActions().some(e=>e.isInteractive)}_edit(e){}_monitorFocus(){this._focusMonitor.monitor(this._elementRef,!0).subscribe(e=>{let i=e!==null;i!==this._hasFocusInternal&&(this._hasFocusInternal=i,i?this._onFocus.next({chip:this}):(this._changeDetectorRef.markForCheck(),setTimeout(()=>this._ngZone.run(()=>this._onBlur.next({chip:this})))))})}static \u0275fac=function(i){return new(i||t)};static \u0275cmp=E({type:t,selectors:[["mat-basic-chip"],["","mat-basic-chip",""],["mat-chip"],["","mat-chip",""]],contentQueries:function(i,r,o){if(i&1&&(xe(o,cU,5),xe(o,uU,5),xe(o,dU,5),xe(o,mU,5),xe(o,cU,5),xe(o,dU,5),xe(o,uU,5),xe(o,mU,5)),i&2){let a;j(a=H())&&(r.leadingIcon=a.first),j(a=H())&&(r.editIcon=a.first),j(a=H())&&(r.trailingIcon=a.first),j(a=H())&&(r.removeIcon=a.first),j(a=H())&&(r._allLeadingIcons=a),j(a=H())&&(r._allTrailingIcons=a),j(a=H())&&(r._allEditIcons=a),j(a=H())&&(r._allRemoveIcons=a)}},viewQuery:function(i,r){if(i&1&&ie(hU,5),i&2){let o;j(o=H())&&(r.primaryAction=o.first)}},hostAttrs:[1,"mat-mdc-chip"],hostVars:31,hostBindings:function(i,r){i&1&&S("keydown",function(a){return r._handleKeydown(a)}),i&2&&(pi("id",r.id),X("role",r.role)("aria-label",r.ariaLabel),at("mat-"+(r.color||"primary")),G("mdc-evolution-chip",!r._isBasicChip)("mdc-evolution-chip--disabled",r.disabled)("mdc-evolution-chip--with-trailing-action",r._hasTrailingIcon())("mdc-evolution-chip--with-primary-graphic",r.leadingIcon)("mdc-evolution-chip--with-primary-icon",r.leadingIcon)("mdc-evolution-chip--with-avatar",r.leadingIcon)("mat-mdc-chip-with-avatar",r.leadingIcon)("mat-mdc-chip-highlighted",r.highlighted)("mat-mdc-chip-disabled",r.disabled)("mat-mdc-basic-chip",r._isBasicChip)("mat-mdc-standard-chip",!r._isBasicChip)("mat-mdc-chip-with-trailing-icon",r._hasTrailingIcon())("_mat-animation-noopable",r._animationsDisabled))},inputs:{role:"role",id:"id",ariaLabel:[0,"aria-label","ariaLabel"],ariaDescription:[0,"aria-description","ariaDescription"],value:"value",color:"color",removable:[2,"removable","removable",L],highlighted:[2,"highlighted","highlighted",L],disableRipple:[2,"disableRipple","disableRipple",L],disabled:[2,"disabled","disabled",L]},outputs:{removed:"removed",destroyed:"destroyed"},exportAs:["matChip"],features:[Ce([{provide:pU,useExisting:t}])],ngContentSelectors:Pye,decls:8,vars:3,consts:[[1,"mat-mdc-chip-focus-overlay"],[1,"mdc-evolution-chip__cell","mdc-evolution-chip__cell--primary"],["matChipAction","",3,"isInteractive"],[1,"mdc-evolution-chip__graphic","mat-mdc-chip-graphic"],[1,"mdc-evolution-chip__text-label","mat-mdc-chip-action-label"],[1,"mat-mdc-chip-primary-focus-indicator","mat-focus-indicator"],[1,"mdc-evolution-chip__cell","mdc-evolution-chip__cell--trailing"]],template:function(i,r){i&1&&(Ee(Rye),M(0,"span",0),m(1,"span",1)(2,"span",2),V(3,Fye,2,0,"span",3),m(4,"span",4),ne(5),M(6,"span",5),h()()(),V(7,Nye,2,0,"span",6)),i&2&&(g(2),v("isInteractive",!1),g(),B(r.leadingIcon?3:-1),g(4),B(r._hasTrailingIcon()?7:-1))},dependencies:[hU],styles:[`.mdc-evolution-chip,.mdc-evolution-chip__cell,.mdc-evolution-chip__action{display:inline-flex;align-items:center}.mdc-evolution-chip{position:relative;max-width:100%}.mdc-evolution-chip__cell,.mdc-evolution-chip__action{height:100%}.mdc-evolution-chip__cell--primary{flex-basis:100%;overflow-x:hidden}.mdc-evolution-chip__cell--trailing{flex:1 0 auto}.mdc-evolution-chip__action{align-items:center;background:none;border:none;box-sizing:content-box;cursor:pointer;display:inline-flex;justify-content:center;outline:none;padding:0;text-decoration:none;color:inherit}.mdc-evolution-chip__action--presentational{cursor:auto}.mdc-evolution-chip--disabled,.mdc-evolution-chip__action:disabled{pointer-events:none}@media(forced-colors: active){.mdc-evolution-chip--disabled,.mdc-evolution-chip__action:disabled{forced-color-adjust:none}}.mdc-evolution-chip__action--primary{font:inherit;letter-spacing:inherit;white-space:inherit;overflow-x:hidden}.mat-mdc-standard-chip .mdc-evolution-chip__action--primary::before{border-width:var(--mat-chip-outline-width, 1px);border-radius:var(--mat-chip-container-shape-radius, 8px);box-sizing:border-box;content:"";height:100%;left:0;position:absolute;pointer-events:none;top:0;width:100%;z-index:1;border-style:solid}.mat-mdc-standard-chip .mdc-evolution-chip__action--primary{padding-left:12px;padding-right:12px}.mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic .mdc-evolution-chip__action--primary{padding-left:0;padding-right:12px}[dir=rtl] .mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic .mdc-evolution-chip__action--primary{padding-left:12px;padding-right:0}.mat-mdc-standard-chip:not(.mdc-evolution-chip--disabled) .mdc-evolution-chip__action--primary::before{border-color:var(--mat-chip-outline-color, var(--mat-sys-outline))}.mdc-evolution-chip__action--primary:not(.mdc-evolution-chip__action--presentational):not(.mdc-ripple-upgraded):focus::before{border-color:var(--mat-chip-focus-outline-color, var(--mat-sys-on-surface-variant))}.mat-mdc-standard-chip.mdc-evolution-chip--disabled .mdc-evolution-chip__action--primary::before{border-color:var(--mat-chip-disabled-outline-color, color-mix(in srgb, var(--mat-sys-on-surface) 12%, transparent))}.mat-mdc-standard-chip.mdc-evolution-chip--selected .mdc-evolution-chip__action--primary::before{border-width:var(--mat-chip-flat-selected-outline-width, 0)}.mat-mdc-basic-chip .mdc-evolution-chip__action--primary{font:inherit}.mat-mdc-standard-chip.mdc-evolution-chip--with-leading-action .mdc-evolution-chip__action--primary{padding-left:0;padding-right:12px}[dir=rtl] .mat-mdc-standard-chip.mdc-evolution-chip--with-leading-action .mdc-evolution-chip__action--primary{padding-left:12px;padding-right:0}.mat-mdc-standard-chip.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--primary{padding-left:12px;padding-right:0}[dir=rtl] .mat-mdc-standard-chip.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--primary{padding-left:0;padding-right:12px}.mat-mdc-standard-chip.mdc-evolution-chip--with-leading-action.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--primary{padding-left:0;padding-right:0}.mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--primary{padding-left:0;padding-right:0}[dir=rtl] .mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--primary{padding-left:0;padding-right:0}.mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic .mdc-evolution-chip__action--primary{padding-left:0;padding-right:12px}[dir=rtl] .mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic .mdc-evolution-chip__action--primary{padding-left:12px;padding-right:0}.mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--primary{padding-left:0;padding-right:0}[dir=rtl] .mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--primary{padding-left:0;padding-right:0}.mdc-evolution-chip__action--secondary{position:relative;overflow:visible}.mat-mdc-standard-chip:not(.mdc-evolution-chip--disabled) .mdc-evolution-chip__action--secondary{color:var(--mat-chip-with-trailing-icon-trailing-icon-color, var(--mat-sys-on-surface-variant))}.mat-mdc-standard-chip.mdc-evolution-chip--disabled .mdc-evolution-chip__action--secondary{color:var(--mat-chip-with-trailing-icon-disabled-trailing-icon-color, var(--mat-sys-on-surface))}.mat-mdc-standard-chip.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--secondary{padding-left:8px;padding-right:8px}.mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--secondary{padding-left:8px;padding-right:8px}.mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--secondary{padding-left:8px;padding-right:8px}[dir=rtl] .mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--secondary{padding-left:8px;padding-right:8px}.mdc-evolution-chip__text-label{-webkit-user-select:none;user-select:none;white-space:nowrap;text-overflow:ellipsis;overflow:hidden}.mat-mdc-standard-chip .mdc-evolution-chip__text-label{font-family:var(--mat-chip-label-text-font, var(--mat-sys-label-large-font));line-height:var(--mat-chip-label-text-line-height, var(--mat-sys-label-large-line-height));font-size:var(--mat-chip-label-text-size, var(--mat-sys-label-large-size));font-weight:var(--mat-chip-label-text-weight, var(--mat-sys-label-large-weight));letter-spacing:var(--mat-chip-label-text-tracking, var(--mat-sys-label-large-tracking))}.mat-mdc-standard-chip:not(.mdc-evolution-chip--disabled) .mdc-evolution-chip__text-label{color:var(--mat-chip-label-text-color, var(--mat-sys-on-surface-variant))}.mat-mdc-standard-chip.mdc-evolution-chip--selected:not(.mdc-evolution-chip--disabled) .mdc-evolution-chip__text-label{color:var(--mat-chip-selected-label-text-color, var(--mat-sys-on-secondary-container))}.mat-mdc-standard-chip.mdc-evolution-chip--disabled .mdc-evolution-chip__text-label,.mat-mdc-standard-chip.mdc-evolution-chip--selected.mdc-evolution-chip--disabled .mdc-evolution-chip__text-label{color:var(--mat-chip-disabled-label-text-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent))}.mdc-evolution-chip__graphic{align-items:center;display:inline-flex;justify-content:center;overflow:hidden;pointer-events:none;position:relative;flex:1 0 auto}.mat-mdc-standard-chip .mdc-evolution-chip__graphic{width:var(--mat-chip-with-avatar-avatar-size, 24px);height:var(--mat-chip-with-avatar-avatar-size, 24px);font-size:var(--mat-chip-with-avatar-avatar-size, 24px)}.mdc-evolution-chip--selecting .mdc-evolution-chip__graphic{transition:width 150ms 0ms cubic-bezier(0.4, 0, 0.2, 1)}.mdc-evolution-chip--selectable:not(.mdc-evolution-chip--selected):not(.mdc-evolution-chip--with-primary-icon) .mdc-evolution-chip__graphic{width:0}.mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic .mdc-evolution-chip__graphic{padding-left:6px;padding-right:6px}.mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic .mdc-evolution-chip__graphic{padding-left:4px;padding-right:8px}[dir=rtl] .mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic .mdc-evolution-chip__graphic{padding-left:8px;padding-right:4px}.mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__graphic{padding-left:6px;padding-right:6px}.mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__graphic{padding-left:4px;padding-right:8px}[dir=rtl] .mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__graphic{padding-left:8px;padding-right:4px}.mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-leading-action .mdc-evolution-chip__graphic{padding-left:0}.mdc-evolution-chip__checkmark{position:absolute;opacity:0;top:50%;left:50%;height:20px;width:20px}.mat-mdc-standard-chip:not(.mdc-evolution-chip--disabled) .mdc-evolution-chip__checkmark{color:var(--mat-chip-with-icon-selected-icon-color, var(--mat-sys-on-secondary-container))}.mat-mdc-standard-chip.mdc-evolution-chip--disabled .mdc-evolution-chip__checkmark{color:var(--mat-chip-with-icon-disabled-icon-color, var(--mat-sys-on-surface))}.mdc-evolution-chip--selecting .mdc-evolution-chip__checkmark{transition:transform 150ms 0ms cubic-bezier(0.4, 0, 0.2, 1);transform:translate(-75%, -50%)}.mdc-evolution-chip--selected .mdc-evolution-chip__checkmark{transform:translate(-50%, -50%);opacity:1}.mdc-evolution-chip__checkmark-svg{display:block}.mdc-evolution-chip__checkmark-path{stroke-width:2px;stroke-dasharray:29.7833385;stroke-dashoffset:29.7833385;stroke:currentColor}.mdc-evolution-chip--selecting .mdc-evolution-chip__checkmark-path{transition:stroke-dashoffset 150ms 45ms cubic-bezier(0.4, 0, 0.2, 1)}.mdc-evolution-chip--selected .mdc-evolution-chip__checkmark-path{stroke-dashoffset:0}@media(forced-colors: active){.mdc-evolution-chip__checkmark-path{stroke:CanvasText !important}}.mat-mdc-standard-chip .mdc-evolution-chip__icon--trailing{height:18px;width:18px;font-size:18px}.mdc-evolution-chip--disabled .mdc-evolution-chip__icon--trailing.mat-mdc-chip-remove{opacity:calc(var(--mat-chip-trailing-action-opacity, 1)*var(--mat-chip-with-trailing-icon-disabled-trailing-icon-opacity, 0.38))}.mdc-evolution-chip--disabled .mdc-evolution-chip__icon--trailing.mat-mdc-chip-remove:focus{opacity:calc(var(--mat-chip-trailing-action-focus-opacity, 1)*var(--mat-chip-with-trailing-icon-disabled-trailing-icon-opacity, 0.38))}.mat-mdc-standard-chip{border-radius:var(--mat-chip-container-shape-radius, 8px);height:var(--mat-chip-container-height, 32px)}.mat-mdc-standard-chip:not(.mdc-evolution-chip--disabled){background-color:var(--mat-chip-elevated-container-color, transparent)}.mat-mdc-standard-chip.mdc-evolution-chip--disabled{background-color:var(--mat-chip-elevated-disabled-container-color)}.mat-mdc-standard-chip.mdc-evolution-chip--selected:not(.mdc-evolution-chip--disabled){background-color:var(--mat-chip-elevated-selected-container-color, var(--mat-sys-secondary-container))}.mat-mdc-standard-chip.mdc-evolution-chip--selected.mdc-evolution-chip--disabled{background-color:var(--mat-chip-flat-disabled-selected-container-color, color-mix(in srgb, var(--mat-sys-on-surface) 12%, transparent))}@media(forced-colors: active){.mat-mdc-standard-chip{outline:solid 1px}}.mat-mdc-standard-chip .mdc-evolution-chip__icon--primary{border-radius:var(--mat-chip-with-avatar-avatar-shape-radius, 24px);width:var(--mat-chip-with-icon-icon-size, 18px);height:var(--mat-chip-with-icon-icon-size, 18px);font-size:var(--mat-chip-with-icon-icon-size, 18px)}.mdc-evolution-chip--selected .mdc-evolution-chip__icon--primary{opacity:0}.mat-mdc-standard-chip:not(.mdc-evolution-chip--disabled) .mdc-evolution-chip__icon--primary{color:var(--mat-chip-with-icon-icon-color, var(--mat-sys-on-surface-variant))}.mat-mdc-standard-chip.mdc-evolution-chip--disabled .mdc-evolution-chip__icon--primary{color:var(--mat-chip-with-icon-disabled-icon-color, var(--mat-sys-on-surface))}.mat-mdc-chip-highlighted{--mat-chip-with-icon-icon-color: var(--mat-chip-with-icon-selected-icon-color, var(--mat-sys-on-secondary-container));--mat-chip-elevated-container-color: var(--mat-chip-elevated-selected-container-color, var(--mat-sys-secondary-container));--mat-chip-label-text-color: var(--mat-chip-selected-label-text-color, var(--mat-sys-on-secondary-container));--mat-chip-outline-width: var(--mat-chip-flat-selected-outline-width, 0)}.mat-mdc-chip-focus-overlay{background:var(--mat-chip-focus-state-layer-color, var(--mat-sys-on-surface-variant))}.mat-mdc-chip-selected .mat-mdc-chip-focus-overlay,.mat-mdc-chip-highlighted .mat-mdc-chip-focus-overlay{background:var(--mat-chip-selected-focus-state-layer-color, var(--mat-sys-on-secondary-container))}.mat-mdc-chip:hover .mat-mdc-chip-focus-overlay{background:var(--mat-chip-hover-state-layer-color, var(--mat-sys-on-surface-variant));opacity:var(--mat-chip-hover-state-layer-opacity, var(--mat-sys-hover-state-layer-opacity))}.mat-mdc-chip-focus-overlay .mat-mdc-chip-selected:hover,.mat-mdc-chip-highlighted:hover .mat-mdc-chip-focus-overlay{background:var(--mat-chip-selected-hover-state-layer-color, var(--mat-sys-on-secondary-container));opacity:var(--mat-chip-selected-hover-state-layer-opacity, var(--mat-sys-hover-state-layer-opacity))}.mat-mdc-chip.cdk-focused .mat-mdc-chip-focus-overlay{background:var(--mat-chip-focus-state-layer-color, var(--mat-sys-on-surface-variant));opacity:var(--mat-chip-focus-state-layer-opacity, var(--mat-sys-focus-state-layer-opacity))}.mat-mdc-chip-selected.cdk-focused .mat-mdc-chip-focus-overlay,.mat-mdc-chip-highlighted.cdk-focused .mat-mdc-chip-focus-overlay{background:var(--mat-chip-selected-focus-state-layer-color, var(--mat-sys-on-secondary-container));opacity:var(--mat-chip-selected-focus-state-layer-opacity, var(--mat-sys-focus-state-layer-opacity))}.mdc-evolution-chip--disabled:not(.mdc-evolution-chip--selected) .mat-mdc-chip-avatar{opacity:var(--mat-chip-with-avatar-disabled-avatar-opacity, 0.38)}.mdc-evolution-chip--disabled .mdc-evolution-chip__icon--trailing{opacity:var(--mat-chip-with-trailing-icon-disabled-trailing-icon-opacity, 0.38)}.mdc-evolution-chip--disabled.mdc-evolution-chip--selected .mdc-evolution-chip__checkmark{opacity:var(--mat-chip-with-icon-disabled-icon-opacity, 0.38)}.mat-mdc-standard-chip.mdc-evolution-chip--disabled{opacity:var(--mat-chip-disabled-container-opacity, 1)}.mat-mdc-standard-chip.mdc-evolution-chip--selected .mdc-evolution-chip__icon--trailing,.mat-mdc-standard-chip.mat-mdc-chip-highlighted .mdc-evolution-chip__icon--trailing{color:var(--mat-chip-selected-trailing-icon-color, var(--mat-sys-on-secondary-container))}.mat-mdc-standard-chip.mdc-evolution-chip--selected.mdc-evolution-chip--disabled .mdc-evolution-chip__icon--trailing,.mat-mdc-standard-chip.mat-mdc-chip-highlighted.mdc-evolution-chip--disabled .mdc-evolution-chip__icon--trailing{color:var(--mat-chip-selected-disabled-trailing-icon-color, var(--mat-sys-on-surface))}.mat-mdc-chip-edit,.mat-mdc-chip-remove{opacity:var(--mat-chip-trailing-action-opacity, 1)}.mat-mdc-chip-edit:focus,.mat-mdc-chip-remove:focus{opacity:var(--mat-chip-trailing-action-focus-opacity, 1)}.mat-mdc-chip-edit::after,.mat-mdc-chip-remove::after{background-color:var(--mat-chip-trailing-action-state-layer-color, var(--mat-sys-on-surface-variant))}.mat-mdc-chip-edit:hover::after,.mat-mdc-chip-remove:hover::after{opacity:var(--mat-chip-trailing-action-hover-state-layer-opacity, var(--mat-sys-hover-state-layer-opacity))}.mat-mdc-chip-edit:focus::after,.mat-mdc-chip-remove:focus::after{opacity:var(--mat-chip-trailing-action-focus-state-layer-opacity, var(--mat-sys-focus-state-layer-opacity))}.mat-mdc-chip-selected .mat-mdc-chip-remove::after,.mat-mdc-chip-highlighted .mat-mdc-chip-remove::after{background-color:var(--mat-chip-selected-trailing-action-state-layer-color, var(--mat-sys-on-secondary-container))}.mat-mdc-standard-chip{-webkit-tap-highlight-color:rgba(0,0,0,0)}.mat-mdc-standard-chip .mdc-evolution-chip__cell--primary,.mat-mdc-standard-chip .mdc-evolution-chip__action--primary,.mat-mdc-standard-chip .mat-mdc-chip-action-label{overflow:visible}.mat-mdc-standard-chip .mat-mdc-chip-graphic,.mat-mdc-standard-chip .mat-mdc-chip-trailing-icon{box-sizing:content-box}.mat-mdc-standard-chip._mat-animation-noopable,.mat-mdc-standard-chip._mat-animation-noopable .mdc-evolution-chip__graphic,.mat-mdc-standard-chip._mat-animation-noopable .mdc-evolution-chip__checkmark,.mat-mdc-standard-chip._mat-animation-noopable .mdc-evolution-chip__checkmark-path{transition-duration:1ms;animation-duration:1ms}.mat-mdc-chip-focus-overlay{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none;opacity:0;border-radius:inherit;transition:opacity 150ms linear}._mat-animation-noopable .mat-mdc-chip-focus-overlay{transition:none}.mat-mdc-basic-chip .mat-mdc-chip-focus-overlay{display:none}.mat-mdc-chip .mat-ripple.mat-mdc-chip-ripple{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none;border-radius:inherit}.mat-mdc-chip-avatar{text-align:center;line-height:1;color:var(--mat-chip-with-icon-icon-color, currentColor)}.mat-mdc-chip{position:relative;z-index:0}.mat-mdc-chip-action-label{text-align:left;z-index:1}[dir=rtl] .mat-mdc-chip-action-label{text-align:right}.mat-mdc-chip.mdc-evolution-chip--with-trailing-action .mat-mdc-chip-action-label{position:relative}.mat-mdc-chip-action-label .mat-mdc-chip-primary-focus-indicator{position:absolute;top:0;right:0;bottom:0;left:0;pointer-events:none}.mat-mdc-chip-action-label .mat-focus-indicator::before{margin:calc(calc(var(--mat-focus-indicator-border-width, 3px) + 2px)*-1)}.mat-mdc-chip-edit::before,.mat-mdc-chip-remove::before{margin:calc(var(--mat-focus-indicator-border-width, 3px)*-1);left:8px;right:8px}.mat-mdc-chip-edit::after,.mat-mdc-chip-remove::after{content:"";display:block;opacity:0;position:absolute;top:-3px;bottom:-3px;left:5px;right:5px;border-radius:50%;box-sizing:border-box;padding:12px;margin:-12px;background-clip:content-box}.mat-mdc-chip-edit .mat-icon,.mat-mdc-chip-remove .mat-icon{width:18px;height:18px;font-size:18px;box-sizing:content-box}.mat-chip-edit-input{cursor:text;display:inline-block;color:inherit;outline:0}@media(forced-colors: active){.mat-mdc-chip-selected:not(.mat-mdc-chip-multiple){outline-width:3px}}.mat-mdc-chip-action:focus .mat-focus-indicator::before{content:""}.mdc-evolution-chip__icon,.mat-mdc-chip-edit .mat-icon,.mat-mdc-chip-remove .mat-icon{min-height:fit-content}img.mdc-evolution-chip__icon{min-height:0} +`],encapsulation:2,changeDetection:0})}return t})();var fU=(()=>{class t{_elementRef=u(Y);_changeDetectorRef=u(ye);_dir=u(Yt,{optional:!0});_lastDestroyedFocusedChipIndex=null;_keyManager;_destroyed=new z;_defaultRole="presentation";get chipFocusChanges(){return this._getChipStream(e=>e._onFocus)}get chipDestroyedChanges(){return this._getChipStream(e=>e.destroyed)}get chipRemovedChanges(){return this._getChipStream(e=>e.removed)}get disabled(){return this._disabled}set disabled(e){this._disabled=e,this._syncChipsState()}_disabled=!1;get empty(){return!this._chips||this._chips.length===0}get role(){return this._explicitRole?this._explicitRole:this.empty?null:this._defaultRole}tabIndex=0;set role(e){this._explicitRole=e}_explicitRole=null;get focused(){return this._hasFocusedChip()}_chips;_chipActions=new Dr;constructor(){}ngAfterViewInit(){this._setUpFocusManagement(),this._trackChipSetChanges(),this._trackDestroyedFocusedChip()}ngOnDestroy(){this._keyManager?.destroy(),this._chipActions.destroy(),this._destroyed.next(),this._destroyed.complete()}_hasFocusedChip(){return this._chips&&this._chips.some(e=>e._hasFocus())}_syncChipsState(){this._chips?.forEach(e=>{e._chipListDisabled=this._disabled,e._changeDetectorRef.markForCheck()})}focus(){}_handleKeydown(e){this._originatesFromChip(e)&&this._keyManager.onKeydown(e)}_isValidIndex(e){return e>=0&&ethis._elementRef.nativeElement.tabIndex=e))}_getChipStream(e){return this._chips.changes.pipe(Ue(null),je(()=>it(...this._chips.map(e))))}_originatesFromChip(e){let i=e.target;for(;i&&i!==this._elementRef.nativeElement;){if(i.classList.contains("mat-mdc-chip"))return!0;i=i.parentElement}return!1}_setUpFocusManagement(){this._chips.changes.pipe(Ue(this._chips)).subscribe(e=>{let i=[];e.forEach(r=>r._getActions().forEach(o=>i.push(o))),this._chipActions.reset(i),this._chipActions.notifyOnChanges()}),this._keyManager=new Ps(this._chipActions).withVerticalOrientation().withHorizontalOrientation(this._dir?this._dir.value:"ltr").withHomeAndEnd().skipPredicate(e=>this._skipPredicate(e)),this.chipFocusChanges.pipe(we(this._destroyed)).subscribe(({chip:e})=>{let i=e._getSourceAction(document.activeElement);i&&this._keyManager.updateActiveItem(i)}),this._dir?.change.pipe(we(this._destroyed)).subscribe(e=>this._keyManager.withHorizontalOrientation(e))}_skipPredicate(e){return!e.isInteractive||e.disabled}_trackChipSetChanges(){this._chips.changes.pipe(Ue(null),we(this._destroyed)).subscribe(()=>{this.disabled&&Promise.resolve().then(()=>this._syncChipsState()),this._redirectDestroyedChipFocus()})}_trackDestroyedFocusedChip(){this.chipDestroyedChanges.pipe(we(this._destroyed)).subscribe(e=>{let r=this._chips.toArray().indexOf(e.chip),o=e.chip._hasFocus(),a=e.chip._hadFocusOnRemove&&this._keyManager.activeItem&&e.chip._getActions().includes(this._keyManager.activeItem),s=o||a;this._isValidIndex(r)&&s&&(this._lastDestroyedFocusedChipIndex=r)})}_redirectDestroyedChipFocus(){if(this._lastDestroyedFocusedChipIndex!=null){if(this._chips.length){let e=Math.min(this._lastDestroyedFocusedChipIndex,this._chips.length-1),i=this._chips.toArray()[e];i.disabled?this._chips.length===1?this.focus():this._keyManager.setPreviousItemActive():i.focus()}else this.focus();this._lastDestroyedFocusedChipIndex=null}}static \u0275fac=function(i){return new(i||t)};static \u0275cmp=E({type:t,selectors:[["mat-chip-set"]],contentQueries:function(i,r,o){if(i&1&&xe(o,gA,5),i&2){let a;j(a=H())&&(r._chips=a)}},hostAttrs:[1,"mat-mdc-chip-set","mdc-evolution-chip-set"],hostVars:1,hostBindings:function(i,r){i&1&&S("keydown",function(a){return r._handleKeydown(a)}),i&2&&X("role",r.role)},inputs:{disabled:[2,"disabled","disabled",L],role:"role",tabIndex:[2,"tabIndex","tabIndex",e=>e==null?0:ht(e)]},ngContentSelectors:Lye,decls:2,vars:0,consts:[["role","presentation",1,"mdc-evolution-chip-set__chips"]],template:function(i,r){i&1&&(Ee(),gt(0,"div",0),ne(1),yt())},styles:[`.mat-mdc-chip-set{display:flex}.mat-mdc-chip-set:focus{outline:none}.mat-mdc-chip-set .mdc-evolution-chip-set__chips{min-width:100%;margin-left:-8px;margin-right:0}.mat-mdc-chip-set .mdc-evolution-chip{margin:4px 0 4px 8px}[dir=rtl] .mat-mdc-chip-set .mdc-evolution-chip-set__chips{margin-left:0;margin-right:-8px}[dir=rtl] .mat-mdc-chip-set .mdc-evolution-chip{margin-left:0;margin-right:8px}.mdc-evolution-chip-set__chips{display:flex;flex-flow:wrap;min-width:0}.mat-mdc-chip-set-stacked{flex-direction:column;align-items:flex-start}.mat-mdc-chip-set-stacked .mat-mdc-chip{width:100%}.mat-mdc-chip-set-stacked .mdc-evolution-chip__graphic{flex-grow:0}.mat-mdc-chip-set-stacked .mdc-evolution-chip__action--primary{flex-basis:100%;justify-content:start}input.mat-mdc-chip-input{flex:1 0 150px;margin-left:8px}[dir=rtl] input.mat-mdc-chip-input{margin-left:0;margin-right:8px}.mat-mdc-form-field:not(.mat-form-field-hide-placeholder) input.mat-mdc-chip-input::placeholder{opacity:1}.mat-mdc-form-field:not(.mat-form-field-hide-placeholder) input.mat-mdc-chip-input::-moz-placeholder{opacity:1}.mat-mdc-form-field:not(.mat-form-field-hide-placeholder) input.mat-mdc-chip-input::-webkit-input-placeholder{opacity:1}.mat-mdc-form-field:not(.mat-form-field-hide-placeholder) input.mat-mdc-chip-input:-ms-input-placeholder{opacity:1}.mat-mdc-chip-set+input.mat-mdc-chip-input{margin-left:0;margin-right:0} +`],encapsulation:2,changeDetection:0})}return t})();var Ow=(()=>{class t{static \u0275fac=function(i){return new(i||t)};static \u0275mod=ee({type:t});static \u0275inj=J({providers:[kl,{provide:Vye,useValue:{separatorKeyCodes:[13]}}],imports:[De,Io,De]})}return t})();var gU=new O("CdkAccordion");var _U=(()=>{class t{accordion=u(gU,{optional:!0,skipSelf:!0});_changeDetectorRef=u(ye);_expansionDispatcher=u(hu);_openCloseAllSubscription=ke.EMPTY;closed=new U;opened=new U;destroyed=new U;expandedChange=new U;id=u(et).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 i=this.accordion?this.accordion.id:this.id;this._expansionDispatcher.notify(this.id,i)}else this.closed.emit();this._changeDetectorRef.markForCheck()}}_expanded=!1;get disabled(){return this._disabled()}set disabled(e){this._disabled.set(e)}_disabled=he(!1);_removeUniqueSelectionListener=()=>{};constructor(){}ngOnInit(){this._removeUniqueSelectionListener=this._expansionDispatcher.listen((e,i)=>{this.accordion&&!this.accordion.multi&&this.accordion.id===i&&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(i){return new(i||t)};static \u0275dir=P({type:t,selectors:[["cdk-accordion-item"],["","cdkAccordionItem",""]],inputs:{expanded:[2,"expanded","expanded",L],disabled:[2,"disabled","disabled",L]},outputs:{closed:"closed",opened:"opened",destroyed:"destroyed",expandedChange:"expandedChange"},exportAs:["cdkAccordionItem"],features:[Ce([{provide:gU,useValue:void 0}])]})}return t})(),bU=(()=>{class t{static \u0275fac=function(i){return new(i||t)};static \u0275mod=ee({type:t});static \u0275inj=J({})}return t})();var jye=["body"],Hye=["bodyWrapper"],zye=[[["mat-expansion-panel-header"]],"*",[["mat-action-row"]]],Uye=["mat-expansion-panel-header","*","mat-action-row"];function $ye(t,n){}var Wye=[[["mat-panel-title"]],[["mat-panel-description"]],"*"],Gye=["mat-panel-title","mat-panel-description","*"];function qye(t,n){t&1&&(gt(0,"span",1),ii(),gt(1,"svg",2),ni(2,"path",3),yt()())}var vU=new O("MAT_ACCORDION"),yU=new O("MAT_EXPANSION_PANEL"),Yye=(()=>{class t{_template=u(te);_expansionPanel=u(yU,{optional:!0});constructor(){}static \u0275fac=function(i){return new(i||t)};static \u0275dir=P({type:t,selectors:[["ng-template","matExpansionPanelContent",""]]})}return t})(),xU=new O("MAT_EXPANSION_PANEL_DEFAULT_OPTIONS"),_A=(()=>{class t extends _U{_viewContainerRef=u(st);_animationsDisabled=Qe();_document=u(_e);_ngZone=u(ae);_elementRef=u(Y);_renderer=u(ze);_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 U;afterCollapse=new U;_inputChanges=new z;accordion=u(vU,{optional:!0,skipSelf:!0});_lazyContent;_body;_bodyWrapper;_portal;_headerId=u(et).getId("mat-expansion-panel-header-");constructor(){super();let e=u(xU,{optional:!0});this._expansionDispatcher=u(hu),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(Ue(null),ce(()=>this.expanded&&!this._portal),mt(1)).subscribe(()=>{this._portal=new kn(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,i=this._body.nativeElement;return e===i||i.contains(e)}return!1}_transitionEndListener=({target:e,propertyName:i})=>{e===this._bodyWrapper?.nativeElement&&i==="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(i){return new(i||t)};static \u0275cmp=E({type:t,selectors:[["mat-expansion-panel"]],contentQueries:function(i,r,o){if(i&1&&xe(o,Yye,5),i&2){let a;j(a=H())&&(r._lazyContent=a.first)}},viewQuery:function(i,r){if(i&1&&(ie(jye,5),ie(Hye,5)),i&2){let o;j(o=H())&&(r._body=o.first),j(o=H())&&(r._bodyWrapper=o.first)}},hostAttrs:[1,"mat-expansion-panel"],hostVars:4,hostBindings:function(i,r){i&2&&G("mat-expanded",r.expanded)("mat-expansion-panel-spacing",r._hasSpacing())},inputs:{hideToggle:[2,"hideToggle","hideToggle",L],togglePosition:"togglePosition"},outputs:{afterExpand:"afterExpand",afterCollapse:"afterCollapse"},exportAs:["matExpansionPanel"],features:[Ce([{provide:vU,useValue:void 0},{provide:yU,useExisting:t}]),le,Oe],ngContentSelectors:Uye,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(i,r){i&1&&(Ee(zye),ne(0),m(1,"div",2,0)(3,"div",3,1)(5,"div",4),ne(6,1),A(7,$ye,0,0,"ng-template",5),h(),ne(8,2),h()()),i&2&&(g(),X("inert",r.expanded?null:""),g(2),v("id",r.id),X("aria-labelledby",r._headerId),g(4),v("cdkPortalOutlet",r._portal))},dependencies:[Ir],styles:[`.mat-expansion-panel{box-sizing:content-box;display:block;margin:0;overflow:hidden;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.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: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}}.mat-expansion-panel-content{display:flex;flex-direction:column;overflow:visible;min-height:0;visibility:hidden;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-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-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 t})();var CU=(()=>{class t{panel=u(_A,{host:!0});_element=u(Y);_focusMonitor=u(oi);_changeDetectorRef=u(ye);_parentChangeSubscription=ke.EMPTY;constructor(){u(ft).load(Oi);let e=this.panel,i=u(xU,{optional:!0}),r=u(new Li("tabindex"),{optional:!0}),o=e.accordion?e.accordion._stateChanges.pipe(ce(a=>!!(a.hideToggle||a.togglePosition))):zi;this.tabIndex=parseInt(r||"")||0,this._parentChangeSubscription=it(e.opened,e.closed,o,e._inputChanges.pipe(ce(a=>!!(a.hideToggle||a.disabled||a.togglePosition)))).subscribe(()=>this._changeDetectorRef.markForCheck()),e.closed.pipe(ce(()=>e._containsFocus())).subscribe(()=>this._focusMonitor.focusVia(this._element,"program")),i&&(this.expandedHeight=i.expandedHeight,this.collapsedHeight=i.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:Gt(e)||(e.preventDefault(),this._toggle());break;default:this.panel.accordion&&this.panel.accordion._handleHeaderKeydown(e);return}}focus(e,i){e?this._focusMonitor.focusVia(this._element,e,i):this._element.nativeElement.focus(i)}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(i){return new(i||t)};static \u0275cmp=E({type:t,selectors:[["mat-expansion-panel-header"]],hostAttrs:["role","button",1,"mat-expansion-panel-header","mat-focus-indicator"],hostVars:13,hostBindings:function(i,r){i&1&&S("click",function(){return r._toggle()})("keydown",function(a){return r._keydown(a)}),i&2&&(X("id",r.panel._headerId)("tabindex",r.disabled?-1:r.tabIndex)("aria-controls",r._getPanelId())("aria-expanded",r._isExpanded())("aria-disabled",r.panel.disabled),At("height",r._getHeaderHeight()),G("mat-expanded",r._isExpanded())("mat-expansion-toggle-indicator-after",r._getTogglePosition()==="after")("mat-expansion-toggle-indicator-before",r._getTogglePosition()==="before"))},inputs:{expandedHeight:"expandedHeight",collapsedHeight:"collapsedHeight",tabIndex:[2,"tabIndex","tabIndex",e=>e==null?0:ht(e)]},ngContentSelectors:Gye,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(i,r){i&1&&(Ee(Wye),gt(0,"span",0),ne(1),ne(2,1),ne(3,2),yt(),V(4,qye,3,0,"span",1)),i&2&&(G("mat-content-hide-toggle",!r._showToggle()),g(4),B(r._showToggle()?4:-1))},styles:[`.mat-expansion-panel-header{display:flex;flex-direction:row;align-items:center;padding:0 24px;border-radius:inherit;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-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.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 t})();var wU=(()=>{class t{static \u0275fac=function(i){return new(i||t)};static \u0275dir=P({type:t,selectors:[["mat-panel-title"]],hostAttrs:[1,"mat-expansion-panel-header-title"]})}return t})();var DU=(()=>{class t{static \u0275fac=function(i){return new(i||t)};static \u0275mod=ee({type:t});static \u0275inj=J({imports:[De,bU,Oo]})}return t})();function Kye(t,n){if(t&1&&(lt(0),m(1,"mat-icon"),f(2,"account_circle"),h(),f(3),ot()),t&2){let e=n.ngIf;g(3),fe(" ",e.name||e.preferred_username||"User Profile"," ")}}function Zye(t,n){t&1&&(lt(0),m(1,"mat-icon"),f(2,"account_circle"),h(),f(3," User Profile "),ot())}function Xye(t,n){t&1&&(m(0,"div",3)(1,"mat-card")(2,"mat-card-content")(3,"div",4)(4,"mat-icon"),f(5,"lock"),h(),m(6,"h2"),f(7,"Not Authenticated"),h(),m(8,"p"),f(9,"Please log in to view your profile information."),h(),m(10,"button",5)(11,"mat-icon"),f(12,"login"),h(),f(13," Log In "),h()()()()())}function Jye(t,n){if(t&1&&(m(0,"mat-chip",23),f(1),h()),t&2){let e=n.$implicit;v("color","primary"),g(),fe(" ",e," ")}}function exe(t,n){if(t&1&&(m(0,"mat-chip",24),f(1),h()),t&2){let e=n.$implicit;v("color","accent"),g(),fe(" ",e," ")}}function txe(t,n){if(t&1&&(m(0,"div",17)(1,"div",18)(2,"label"),f(3,"User ID (sub)"),h(),m(4,"div",19),f(5),h()(),m(6,"div",18)(7,"label"),f(8,"Display Name"),h(),m(9,"div",19),f(10),h()(),m(11,"div",18)(12,"label"),f(13,"Email"),h(),m(14,"div",19),f(15),h()(),m(16,"div",18)(17,"label"),f(18,"Username"),h(),m(19,"div",19),f(20),h()(),m(21,"div",20)(22,"label"),f(23,"Roles"),h(),m(24,"div",19)(25,"mat-chip-set"),A(26,Jye,2,2,"mat-chip",21),h()()(),m(27,"div",20)(28,"label"),f(29,"Permissions"),h(),m(30,"div",19)(31,"mat-chip-set"),A(32,exe,2,2,"mat-chip",22),h()()()()),t&2){let e=n.ngIf,i=x(2);g(5),N(e.sub),g(5),N(e.name||"N/A"),g(5),N(e.email||"N/A"),g(5),N(e.preferred_username||"N/A"),g(6),v("ngForOf",i.profileData==null?null:i.profileData.roles),g(6),v("ngForOf",i.profileData==null?null:i.profileData.permissions)}}function ixe(t,n){t&1&&(m(0,"mat-chip",36)(1,"mat-icon"),f(2,"verified_user"),h(),f(3," Valid "),h())}function nxe(t,n){t&1&&(m(0,"mat-chip",37)(1,"mat-icon"),f(2,"error"),h(),f(3," Expired "),h())}function rxe(t,n){if(t&1&&(m(0,"div",30)(1,"label"),f(2,"Issuer"),h(),m(3,"div"),f(4),h()()),t&2){let e=x().ngIf;g(4),N(e.payload.iss)}}function oxe(t,n){if(t&1&&(m(0,"mat-expansion-panel",38)(1,"mat-expansion-panel-header")(2,"mat-panel-title"),f(3,"Raw JWT Token"),h()(),m(4,"pre",39),f(5),h()()),t&2){let e=x().ngIf;g(5),N(e.raw)}}function axe(t,n){if(t&1){let e=q();m(0,"div",25)(1,"div",26)(2,"mat-chip-set")(3,"mat-chip",23)(4,"mat-icon"),f(5,"schedule"),h(),f(6),h(),A(7,ixe,4,0,"mat-chip",27)(8,nxe,4,0,"mat-chip",28),h()(),m(9,"div",29)(10,"div",30)(11,"label"),f(12,"Issued At"),h(),m(13,"div"),f(14),h()(),m(15,"div",30)(16,"label"),f(17,"Expires At"),h(),m(18,"div"),f(19),h()(),A(20,rxe,5,1,"div",31),h(),m(21,"div",32)(22,"button",33),S("click",function(){k(e);let r=x(2);return T(r.toggleRawIdToken())}),m(23,"mat-icon"),f(24),h(),f(25),h(),m(26,"button",33),S("click",function(){let r=k(e).ngIf,o=x(2);return T(o.copyToClipboard(r.raw,"ID Token"))}),m(27,"mat-icon"),f(28,"content_copy"),h(),f(29," Copy Token "),h()(),A(30,oxe,6,1,"mat-expansion-panel",34),m(31,"mat-expansion-panel")(32,"mat-expansion-panel-header")(33,"mat-panel-title"),f(34,"Token Header"),h()(),m(35,"pre",35),f(36),h()(),m(37,"mat-expansion-panel")(38,"mat-expansion-panel-header")(39,"mat-panel-title"),f(40,"Token Claims (Payload)"),h()(),m(41,"pre",35),f(42),h()()()}if(t&2){let e=n.ngIf,i=x(2);g(3),v("color",i.getExpirationColor(e)),g(3),fe(" ",i.getExpirationStatus(e)," "),g(),v("ngIf",!e.isExpired),g(),v("ngIf",e.isExpired),g(6),N(i.formatDate(e.issuedAt)),g(5),N(i.formatDate(e.expiresAt)),g(),v("ngIf",e.payload.iss),g(4),N(i.showRawIdToken?"visibility_off":"visibility"),g(),fe(" ",i.showRawIdToken?"Hide":"Show"," Raw Token "),g(5),v("ngIf",i.showRawIdToken),g(6),N(i.formatJson(e.header)),g(6),N(i.formatJson(e.payload))}}function sxe(t,n){t&1&&(m(0,"div",40)(1,"mat-icon"),f(2,"info"),h(),m(3,"p"),f(4,"ID Token not available"),h()())}function lxe(t,n){t&1&&(m(0,"mat-chip",36)(1,"mat-icon"),f(2,"verified_user"),h(),f(3," Valid "),h())}function cxe(t,n){t&1&&(m(0,"mat-chip",37)(1,"mat-icon"),f(2,"error"),h(),f(3," Expired "),h())}function dxe(t,n){if(t&1&&(m(0,"div",30)(1,"label"),f(2,"Audience"),h(),m(3,"div"),f(4),h()()),t&2){let e=x().ngIf;g(4),N(e.payload.aud)}}function uxe(t,n){if(t&1&&(m(0,"mat-expansion-panel",38)(1,"mat-expansion-panel-header")(2,"mat-panel-title"),f(3,"Raw JWT Token"),h()(),m(4,"pre",39),f(5),h()()),t&2){let e=x().ngIf;g(5),N(e.raw)}}function mxe(t,n){if(t&1&&(m(0,"mat-chip"),f(1),h()),t&2){let e=n.$implicit;g(),fe(" ",e," ")}}function hxe(t,n){if(t&1&&(m(0,"mat-expansion-panel")(1,"mat-expansion-panel-header")(2,"mat-panel-title"),f(3,"Scopes"),h()(),m(4,"div",41)(5,"mat-chip-set"),A(6,mxe,2,1,"mat-chip",42),h()()()),t&2){let e=x().ngIf,i=x(2);g(6),v("ngForOf",i.getScopes(e.payload.scope))}}function pxe(t,n){if(t&1){let e=q();m(0,"div",25)(1,"div",26)(2,"mat-chip-set")(3,"mat-chip",23)(4,"mat-icon"),f(5,"schedule"),h(),f(6),h(),A(7,lxe,4,0,"mat-chip",27)(8,cxe,4,0,"mat-chip",28),h()(),m(9,"div",29)(10,"div",30)(11,"label"),f(12,"Issued At"),h(),m(13,"div"),f(14),h()(),m(15,"div",30)(16,"label"),f(17,"Expires At"),h(),m(18,"div"),f(19),h()(),A(20,dxe,5,1,"div",31),h(),m(21,"div",32)(22,"button",33),S("click",function(){k(e);let r=x(2);return T(r.toggleRawAccessToken())}),m(23,"mat-icon"),f(24),h(),f(25),h(),m(26,"button",33),S("click",function(){let r=k(e).ngIf,o=x(2);return T(o.copyToClipboard(r.raw,"Access Token"))}),m(27,"mat-icon"),f(28,"content_copy"),h(),f(29," Copy Token "),h()(),A(30,uxe,6,1,"mat-expansion-panel",34),m(31,"mat-expansion-panel")(32,"mat-expansion-panel-header")(33,"mat-panel-title"),f(34,"Token Header"),h()(),m(35,"pre",35),f(36),h()(),m(37,"mat-expansion-panel")(38,"mat-expansion-panel-header")(39,"mat-panel-title"),f(40,"Token Claims (Payload)"),h()(),m(41,"pre",35),f(42),h()(),A(43,hxe,7,1,"mat-expansion-panel",0),h()}if(t&2){let e=n.ngIf,i=x(2);g(3),v("color",i.getExpirationColor(e)),g(3),fe(" ",i.getExpirationStatus(e)," "),g(),v("ngIf",!e.isExpired),g(),v("ngIf",e.isExpired),g(6),N(i.formatDate(e.issuedAt)),g(5),N(i.formatDate(e.expiresAt)),g(),v("ngIf",e.payload.aud),g(4),N(i.showRawAccessToken?"visibility_off":"visibility"),g(),fe(" ",i.showRawAccessToken?"Hide":"Show"," Raw Token "),g(5),v("ngIf",i.showRawAccessToken),g(6),N(i.formatJson(e.header)),g(6),N(i.formatJson(e.payload)),g(),v("ngIf",e.payload.scope)}}function fxe(t,n){t&1&&(m(0,"div",40)(1,"mat-icon"),f(2,"info"),h(),m(3,"p"),f(4,"Access Token not available"),h()())}function gxe(t,n){if(t&1&&(m(0,"div",6)(1,"mat-card",7)(2,"mat-card-content")(3,"div",8)(4,"mat-icon"),f(5,"warning"),h(),m(6,"div")(7,"strong"),f(8,"Security Notice:"),h(),f(9," Tokens displayed on this page contain sensitive information. Do not share these tokens with anyone or paste them in untrusted applications. "),h()()()(),m(10,"mat-card",9)(11,"mat-card-header")(12,"mat-icon",10),f(13,"person"),h(),m(14,"mat-card-title"),f(15,"User Information"),h(),m(16,"mat-card-subtitle"),f(17,"Your profile details from ID token"),h()(),m(18,"mat-card-content"),A(19,txe,33,6,"div",11),h()(),m(20,"mat-card",12)(21,"mat-card-header")(22,"mat-icon",10),f(23,"vpn_key"),h(),m(24,"mat-card-title"),f(25,"Token Details"),h(),m(26,"mat-card-subtitle"),f(27,"Detailed JWT token information and claims"),h()(),m(28,"mat-card-content")(29,"mat-tab-group")(30,"mat-tab",13),A(31,axe,43,12,"div",14)(32,sxe,5,0,"div",15),h(),m(33,"mat-tab",16),A(34,pxe,44,13,"div",14)(35,fxe,5,0,"div",15),h()()()()()),t&2){let e=x();g(19),v("ngIf",e.profileData==null?null:e.profileData.userInfo),g(12),v("ngIf",e.profileData==null?null:e.profileData.idToken),g(),v("ngIf",!(e.profileData!=null&&e.profileData.idToken)),g(2),v("ngIf",e.profileData==null?null:e.profileData.accessToken),g(),v("ngIf",!(e.profileData!=null&&e.profileData.accessToken))}}var MU=(()=>{let n=class n{constructor(){this.authService=u(Ht),this.oauthService=u(Km),this.tokenDecoder=u(p6),this.snackBar=u(_i),this.router=u(Ae),this.profileData=null,this.showRawIdToken=!1,this.showRawAccessToken=!1}ngOnInit(){this.loadProfileData(),this.authSubscription=this.authService.isAuthenticated$.subscribe(()=>{this.loadProfileData()})}ngOnDestroy(){this.authSubscription?.unsubscribe()}loadProfileData(){let i=this.authService.isAuthenticated(),r=this.oauthService.hasValidAccessToken();if(console.log("Authentication Status:",{isAuthenticated:i,hasValidAccessToken:r}),!i&&!r){this.profileData=null;return}let o=this.authService.getUserInfo(),a=this.authService.getAccessToken(),s=this.oauthService.getIdToken(),l=this.authService.getUserRoles();console.log("Profile Data Debug:",{isAuthenticated:i,hasUserInfo:!!o,hasAccessToken:!!a,accessTokenLength:a?.length,hasIdToken:!!s,idTokenLength:s?.length,roles:l}),this.profileData={isAuthenticated:i,userInfo:o,idToken:s?this.tokenDecoder.decodeToken(s):null,accessToken:a?this.tokenDecoder.decodeToken(a):null,roles:l,permissions:this.getUserPermissions()},console.log("Decoded tokens:",{idToken:this.profileData.idToken,accessToken:this.profileData.accessToken})}getUserPermissions(){let i=[];return this.authService.hasRole("HRAdmin")||this.authService.hasRole("Manager")?i.push("canAdd","canEdit","canDelete","canRead"):this.authService.hasRole("Employee")&&i.push("canRead"),i}toggleRawIdToken(){this.showRawIdToken=!this.showRawIdToken}toggleRawAccessToken(){this.showRawAccessToken=!this.showRawAccessToken}copyToClipboard(i,r){navigator.clipboard.writeText(i).then(()=>{this.showMessage(`${r} copied to clipboard`)}).catch(o=>{console.error("Failed to copy:",o),this.showMessage("Failed to copy to clipboard")})}formatJson(i){return JSON.stringify(i,null,2)}getExpirationStatus(i){return this.tokenDecoder.getExpirationStatus(i)}getExpirationColor(i){if(!i||!i.expiresIn)return"";let r=i.expiresIn/3600;return i.isExpired?"warn":r<1?"accent":"primary"}formatDate(i){return i?new Intl.DateTimeFormat("en-US",{dateStyle:"medium",timeStyle:"medium"}).format(i):"N/A"}showMessage(i){this.snackBar.open(i,"Close",{duration:3e3,horizontalPosition:"end",verticalPosition:"top"})}getScopes(i){return i?Array.isArray(i)?i:typeof i=="string"?i.split(" ").filter(r=>r.length>0):[]:[]}};n.\u0275fac=function(r){return new(r||n)},n.\u0275cmp=E({type:n,selectors:[["app-profile-overview"]],decls:5,vars:4,consts:[[4,"ngIf"],["class","not-authenticated",4,"ngIf"],["class","profile-container",4,"ngIf"],[1,"not-authenticated"],[1,"empty-state"],["mat-raised-button","","color","primary","routerLink","/login"],[1,"profile-container"],[1,"security-warning"],[1,"warning-content"],[1,"profile-card"],["mat-card-avatar",""],["class","info-grid",4,"ngIf"],[1,"tokens-card"],["label","ID Token"],["class","token-content",4,"ngIf"],["class","no-token",4,"ngIf"],["label","Access Token"],[1,"info-grid"],[1,"info-item"],[1,"value"],[1,"info-item","full-width"],["highlighted","",3,"color",4,"ngFor","ngForOf"],[3,"color",4,"ngFor","ngForOf"],["highlighted","",3,"color"],[3,"color"],[1,"token-content"],[1,"token-status"],["color","primary",4,"ngIf"],["color","warn",4,"ngIf"],[1,"token-metadata"],[1,"metadata-item"],["class","metadata-item",4,"ngIf"],[1,"token-actions"],["mat-button","",3,"click"],["expanded","",4,"ngIf"],[1,"json-display"],["color","primary"],["color","warn"],["expanded",""],[1,"token-display"],[1,"no-token"],[1,"scopes-list"],[4,"ngFor","ngForOf"]],template:function(r,o){r&1&&(m(0,"page-header"),A(1,Kye,4,1,"ng-container",0)(2,Zye,4,0,"ng-container",0),h(),A(3,Xye,14,0,"div",1)(4,gxe,36,5,"div",2)),r&2&&(g(),v("ngIf",o.profileData==null?null:o.profileData.userInfo),g(),v("ngIf",!(o.profileData!=null&&o.profileData.isAuthenticated)),g(),v("ngIf",!(o.profileData!=null&&o.profileData.isAuthenticated)),g(),v("ngIf",o.profileData==null?null:o.profileData.isAuthenticated))},dependencies:[Je,Un,Bt,It,kt,js,Tt,Rt,Bs,Ot,Ge,Ze,Fe,_t,Ow,gA,fU,DU,_A,CU,wU,An,wi,cp,C_,cw,fS,Wn,Lt],styles:[".profile-container[_ngcontent-%COMP%]{padding:16px;max-width:1200px;margin:0 auto;display:flex;flex-direction:column;gap:24px}.not-authenticated[_ngcontent-%COMP%]{padding:16px;max-width:600px;margin:0 auto}.not-authenticated[_ngcontent-%COMP%] .empty-state[_ngcontent-%COMP%]{display:flex;flex-direction:column;align-items:center;justify-content:center;padding:48px 16px;text-align:center}.not-authenticated[_ngcontent-%COMP%] .empty-state[_ngcontent-%COMP%] mat-icon[_ngcontent-%COMP%]{font-size:64px;width:64px;height:64px;color:#00000061;margin-bottom:16px}.not-authenticated[_ngcontent-%COMP%] .empty-state[_ngcontent-%COMP%] h2[_ngcontent-%COMP%]{margin:0 0 8px;font-size:24px;font-weight:500}.not-authenticated[_ngcontent-%COMP%] .empty-state[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{margin:0 0 24px;color:#0009}.not-authenticated[_ngcontent-%COMP%] .empty-state[_ngcontent-%COMP%] button[_ngcontent-%COMP%] mat-icon[_ngcontent-%COMP%]{font-size:20px;width:20px;height:20px;margin-right:8px;color:inherit}.security-warning[_ngcontent-%COMP%]{background-color:#fff3cd;border-left:4px solid #ff9800}.security-warning[_ngcontent-%COMP%] mat-card-content[_ngcontent-%COMP%]{padding:16px}.security-warning[_ngcontent-%COMP%] .warning-content[_ngcontent-%COMP%]{display:flex;align-items:center;gap:12px}.security-warning[_ngcontent-%COMP%] .warning-content[_ngcontent-%COMP%] mat-icon[_ngcontent-%COMP%]{color:#ff9800;flex-shrink:0}.security-warning[_ngcontent-%COMP%] .warning-content[_ngcontent-%COMP%] strong[_ngcontent-%COMP%]{font-weight:600}.profile-card[_ngcontent-%COMP%] mat-card-header[_ngcontent-%COMP%], .tokens-card[_ngcontent-%COMP%] mat-card-header[_ngcontent-%COMP%]{padding:16px;border-bottom:1px solid rgba(0,0,0,.12)}.profile-card[_ngcontent-%COMP%] mat-card-header[_ngcontent-%COMP%] mat-card-title[_ngcontent-%COMP%], .tokens-card[_ngcontent-%COMP%] mat-card-header[_ngcontent-%COMP%] mat-card-title[_ngcontent-%COMP%]{font-size:20px;font-weight:500;margin:0}.profile-card[_ngcontent-%COMP%] mat-card-header[_ngcontent-%COMP%] mat-card-subtitle[_ngcontent-%COMP%], .tokens-card[_ngcontent-%COMP%] mat-card-header[_ngcontent-%COMP%] mat-card-subtitle[_ngcontent-%COMP%]{margin-top:4px;color:#0009}.profile-card[_ngcontent-%COMP%] mat-card-content[_ngcontent-%COMP%], .tokens-card[_ngcontent-%COMP%] mat-card-content[_ngcontent-%COMP%]{padding:24px}.info-grid[_ngcontent-%COMP%]{display:grid;grid-template-columns:repeat(2,1fr);gap:24px}@media (max-width: 768px){.info-grid[_ngcontent-%COMP%]{grid-template-columns:1fr}}.info-grid[_ngcontent-%COMP%] .info-item[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:8px}.info-grid[_ngcontent-%COMP%] .info-item.full-width[_ngcontent-%COMP%]{grid-column:1/-1}.info-grid[_ngcontent-%COMP%] .info-item[_ngcontent-%COMP%] label[_ngcontent-%COMP%]{font-size:12px;font-weight:500;text-transform:uppercase;letter-spacing:.5px;color:#0009}.info-grid[_ngcontent-%COMP%] .info-item[_ngcontent-%COMP%] .value[_ngcontent-%COMP%]{font-size:16px;color:#000000de;word-break:break-word}.token-content[_ngcontent-%COMP%]{padding:24px 0;display:flex;flex-direction:column;gap:16px}.token-content[_ngcontent-%COMP%] .token-status[_ngcontent-%COMP%] mat-chip-set[_ngcontent-%COMP%] mat-chip[_ngcontent-%COMP%] mat-icon[_ngcontent-%COMP%]{margin-right:4px;font-size:18px;width:18px;height:18px}.token-content[_ngcontent-%COMP%] .token-metadata[_ngcontent-%COMP%]{display:grid;grid-template-columns:repeat(auto-fit,minmax(200px,1fr));gap:16px;padding:16px;background-color:#00000005;border-radius:4px}.token-content[_ngcontent-%COMP%] .token-metadata[_ngcontent-%COMP%] .metadata-item[_ngcontent-%COMP%] label[_ngcontent-%COMP%]{display:block;font-size:12px;font-weight:500;text-transform:uppercase;letter-spacing:.5px;color:#0009;margin-bottom:4px}.token-content[_ngcontent-%COMP%] .token-metadata[_ngcontent-%COMP%] .metadata-item[_ngcontent-%COMP%] div[_ngcontent-%COMP%]{font-size:14px;color:#000000de;word-break:break-word}.token-content[_ngcontent-%COMP%] .token-actions[_ngcontent-%COMP%]{display:flex;gap:8px;flex-wrap:wrap}.token-content[_ngcontent-%COMP%] .token-actions[_ngcontent-%COMP%] button[_ngcontent-%COMP%] mat-icon[_ngcontent-%COMP%]{margin-right:4px}.token-content[_ngcontent-%COMP%] mat-expansion-panel[_ngcontent-%COMP%]{margin-top:8px}.token-content[_ngcontent-%COMP%] .token-display[_ngcontent-%COMP%], .token-content[_ngcontent-%COMP%] .json-display[_ngcontent-%COMP%]{background-color:#f5f5f5;padding:16px;border-radius:4px;overflow-x:auto;font-family:Courier New,monospace;font-size:12px;line-height:1.5;margin:0;white-space:pre-wrap;word-break:break-all}.token-content[_ngcontent-%COMP%] .scopes-list[_ngcontent-%COMP%]{padding:16px}.token-content[_ngcontent-%COMP%] .scopes-list[_ngcontent-%COMP%] mat-chip-set[_ngcontent-%COMP%] mat-chip[_ngcontent-%COMP%]{margin:4px}.no-token[_ngcontent-%COMP%]{display:flex;flex-direction:column;align-items:center;justify-content:center;padding:48px 16px;text-align:center;color:#00000061}.no-token[_ngcontent-%COMP%] mat-icon[_ngcontent-%COMP%]{font-size:48px;width:48px;height:48px;margin-bottom:12px}.no-token[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{margin:0;font-size:14px}mat-chip-set[_ngcontent-%COMP%] mat-chip[_ngcontent-%COMP%]{margin:4px}@media (max-width: 768px){.profile-container[_ngcontent-%COMP%]{padding:12px}.profile-card[_ngcontent-%COMP%] mat-card-content[_ngcontent-%COMP%], .tokens-card[_ngcontent-%COMP%] mat-card-content[_ngcontent-%COMP%]{padding:16px}.token-content[_ngcontent-%COMP%]{padding:16px 0}.token-content[_ngcontent-%COMP%] .token-metadata[_ngcontent-%COMP%]{grid-template-columns:1fr}.security-warning[_ngcontent-%COMP%] .warning-content[_ngcontent-%COMP%]{flex-direction:column;align-items:flex-start}}"]});let t=n;return t})();var EU=(()=>{let n=class n{};n.\u0275fac=function(r){return new(r||n)},n.\u0275cmp=E({type:n,selectors:[["app-profile-settings"]],decls:14,vars:0,consts:[[1,"settings-container"],[1,"coming-soon"]],template:function(r,o){r&1&&(m(0,"page-header")(1,"mat-icon"),f(2,"settings"),h(),f(3,` Profile Settings +`),h(),m(4,"div",0)(5,"mat-card")(6,"mat-card-content")(7,"div",1)(8,"mat-icon"),f(9,"construction"),h(),m(10,"h2"),f(11,"Coming Soon"),h(),m(12,"p"),f(13,"User settings functionality will be available in a future update."),h()()()()())},dependencies:[Je,It,kt,Tt,Ge,Ze,Lt],styles:[".settings-container[_ngcontent-%COMP%]{padding:16px;max-width:800px;margin:0 auto}.settings-container[_ngcontent-%COMP%] .coming-soon[_ngcontent-%COMP%]{display:flex;flex-direction:column;align-items:center;justify-content:center;padding:48px 16px;text-align:center}.settings-container[_ngcontent-%COMP%] .coming-soon[_ngcontent-%COMP%] mat-icon[_ngcontent-%COMP%]{font-size:64px;width:64px;height:64px;color:#00000061;margin-bottom:16px}.settings-container[_ngcontent-%COMP%] .coming-soon[_ngcontent-%COMP%] h2[_ngcontent-%COMP%]{margin:0 0 8px;font-size:24px;font-weight:500}.settings-container[_ngcontent-%COMP%] .coming-soon[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{margin:0;color:#0009}"]});let t=n;return t})();function _xe(t,n){t&1&&(m(0,"div",2)(1,"mat-card",3)(2,"mat-card-content")(3,"div",4)(4,"mat-icon"),f(5,"info"),h(),m(6,"div")(7,"strong"),f(8,"AI features are disabled."),h(),m(9,"p"),f(10," To enable AI, set "),m(11,"code"),f(12,"aiEnabled: true"),h(),f(13," in "),m(14,"code"),f(15,"src/environments/environment.ts"),h(),f(16," and "),m(17,"code"),f(18,'"AiEnabled": true'),h(),f(19," in the API's "),m(20,"code"),f(21,"appsettings.json"),h(),f(22,". "),h()()()()()())}function bxe(t,n){if(t&1&&(m(0,"div",20)(1,"mat-icon",21),f(2),h(),m(3,"div",22),f(4),h()()),t&2){let e=n.$implicit;G("user-message",e.role==="user")("assistant-message",e.role==="assistant"),g(2),N(e.role==="user"?"person":"smart_toy"),g(2),N(e.content)}}function vxe(t,n){if(t&1&&(m(0,"div",18),A(1,bxe,5,6,"div",19),h()),t&2){let e=x(2);g(),v("ngForOf",e.messages)}}function yxe(t,n){t&1&&(m(0,"div",23)(1,"mat-icon"),f(2,"chat_bubble_outline"),h(),m(3,"p"),f(4,"Start a conversation"),h()())}function xxe(t,n){t&1&&(m(0,"div",24),M(1,"mat-spinner",25),m(2,"span"),f(3,"Thinking\u2026"),h()())}function Cxe(t,n){if(t&1&&(m(0,"div",26)(1,"mat-icon"),f(2,"error_outline"),h(),m(3,"span"),f(4),h()()),t&2){let e=x(2);g(4),N(e.error)}}function wxe(t,n){if(t&1){let e=q();m(0,"div",5)(1,"mat-card",6)(2,"mat-card-header")(3,"mat-icon",7),f(4,"smart_toy"),h(),m(5,"mat-card-title"),f(6,"AI Assistant"),h(),m(7,"mat-card-subtitle"),f(8,"Ask anything \u2014 general knowledge, writing help, code questions"),h(),m(9,"div",8)(10,"button",9),S("click",function(){k(e);let r=x();return T(r.clear())}),m(11,"mat-icon"),f(12,"delete_sweep"),h()()()(),m(13,"mat-card-content"),A(14,vxe,2,1,"div",10)(15,yxe,5,0,"div",11)(16,xxe,4,0,"div",12)(17,Cxe,5,1,"div",13),h(),M(18,"mat-divider"),m(19,"mat-card-actions",14)(20,"mat-form-field",15)(21,"mat-label"),f(22,"Message"),h(),m(23,"input",16),fn("ngModelChange",function(r){k(e);let o=x();return Mn(o.input,r)||(o.input=r),T(r)}),S("keydown",function(r){k(e);let o=x();return T(o.onKeydown(r))}),h()(),m(24,"button",17),S("click",function(){k(e);let r=x();return T(r.send())}),m(25,"mat-icon"),f(26,"send"),h(),f(27," Send "),h()()()()}if(t&2){let e=x();g(14),v("ngIf",e.messages.length>0),g(),v("ngIf",e.messages.length===0&&!e.loading),g(),v("ngIf",e.loading),g(),v("ngIf",e.error),g(6),pn("ngModel",e.input),v("disabled",e.loading),g(),v("disabled",!e.input.trim()||e.loading)}}var SU=(()=>{let n=class n{constructor(){this.aiService=u(nd),this.destroy$=new z,this.aiEnabled=Ji.aiEnabled,this.messages=[],this.input="",this.loading=!1,this.error=""}send(){let i=this.input.trim();!i||this.loading||(this.messages.push({role:"user",content:i}),this.input="",this.loading=!0,this.error="",this.aiService.chat(i).pipe(we(this.destroy$)).subscribe({next:r=>{this.messages.push({role:"assistant",content:r.reply}),this.loading=!1},error:r=>{this.error=r?.error?.detail??"Failed to get a response. Is the API running with AiEnabled: true?",this.loading=!1}}))}onKeydown(i){i.key==="Enter"&&!i.shiftKey&&(i.preventDefault(),this.send())}clear(){this.messages=[],this.error=""}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete()}};n.\u0275fac=function(r){return new(r||n)},n.\u0275cmp=E({type:n,selectors:[["app-ai-assistant"]],decls:3,vars:2,consts:[["class","ai-disabled-banner",4,"ngIf"],["class","chat-container",4,"ngIf"],[1,"ai-disabled-banner"],[1,"disabled-card"],[1,"disabled-content"],[1,"chat-container"],[1,"chat-card"],["mat-card-avatar",""],[1,"header-actions"],["mat-icon-button","","matTooltip","Clear conversation",3,"click"],["class","message-list",4,"ngIf"],["class","empty-state",4,"ngIf"],["class","loading-row",4,"ngIf"],["class","error-row",4,"ngIf"],[1,"input-area"],["appearance","outline",1,"message-input"],["matInput","","placeholder","Ask the AI assistant anything\u2026",3,"ngModelChange","keydown","ngModel","disabled"],["mat-fab","","extended","","color","primary",3,"click","disabled"],[1,"message-list"],["class","message",3,"user-message","assistant-message",4,"ngFor","ngForOf"],[1,"message"],[1,"avatar-icon"],[1,"bubble"],[1,"empty-state"],[1,"loading-row"],["diameter","24"],[1,"error-row"]],template:function(r,o){r&1&&(M(0,"page-header"),A(1,_xe,23,0,"div",0)(2,wxe,28,7,"div",1)),r&2&&(g(),v("ngIf",!o.aiEnabled),g(),v("ngIf",o.aiEnabled))},dependencies:[Je,Un,Bt,Qr,di,Pt,Ro,It,kt,Xy,js,Tt,Rt,Bs,Ot,Ge,Ze,Fe,Ft,Dx,Bi,Ci,Xt,gi,ai,Zt,Kt,Nr,Kr,Lt],styles:[".ai-disabled-banner[_ngcontent-%COMP%]{padding:16px}.ai-disabled-banner[_ngcontent-%COMP%] .disabled-card[_ngcontent-%COMP%]{max-width:720px;margin:0 auto;border-left:4px solid #2196f3}.ai-disabled-banner[_ngcontent-%COMP%] .disabled-card[_ngcontent-%COMP%] mat-card-content[_ngcontent-%COMP%]{padding:20px}.ai-disabled-banner[_ngcontent-%COMP%] .disabled-card[_ngcontent-%COMP%] .disabled-content[_ngcontent-%COMP%]{display:flex;align-items:flex-start;gap:16px}.ai-disabled-banner[_ngcontent-%COMP%] .disabled-card[_ngcontent-%COMP%] .disabled-content[_ngcontent-%COMP%] mat-icon[_ngcontent-%COMP%]{font-size:28px;width:28px;height:28px;color:#2196f3;flex-shrink:0;margin-top:2px}.ai-disabled-banner[_ngcontent-%COMP%] .disabled-card[_ngcontent-%COMP%] .disabled-content[_ngcontent-%COMP%] strong[_ngcontent-%COMP%]{font-size:16px}.ai-disabled-banner[_ngcontent-%COMP%] .disabled-card[_ngcontent-%COMP%] .disabled-content[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{margin:8px 0 0;color:#0009;font-size:14px;line-height:1.5}.ai-disabled-banner[_ngcontent-%COMP%] .disabled-card[_ngcontent-%COMP%] .disabled-content[_ngcontent-%COMP%] code[_ngcontent-%COMP%]{background:#0000000f;padding:2px 6px;border-radius:4px;font-family:monospace;font-size:13px}.chat-container[_ngcontent-%COMP%]{padding:16px;max-width:900px;margin:0 auto}.chat-card[_ngcontent-%COMP%] mat-card-header[_ngcontent-%COMP%]{display:flex;align-items:flex-start;padding:16px 16px 0}.chat-card[_ngcontent-%COMP%] mat-card-header[_ngcontent-%COMP%] .mat-mdc-card-header-text[_ngcontent-%COMP%]{flex:1}.chat-card[_ngcontent-%COMP%] mat-card-header[_ngcontent-%COMP%] .header-actions[_ngcontent-%COMP%]{margin-left:auto}.chat-card[_ngcontent-%COMP%] mat-card-content[_ngcontent-%COMP%]{padding:16px;min-height:320px;max-height:480px;overflow-y:auto}.message-list[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:12px}.message[_ngcontent-%COMP%]{display:flex;align-items:flex-start;gap:10px}.message[_ngcontent-%COMP%] .avatar-icon[_ngcontent-%COMP%]{font-size:22px;width:22px;height:22px;flex-shrink:0;margin-top:4px}.message[_ngcontent-%COMP%] .bubble[_ngcontent-%COMP%]{padding:10px 14px;border-radius:12px;font-size:14px;line-height:1.6;white-space:pre-wrap;word-break:break-word;max-width:100%}.message.user-message[_ngcontent-%COMP%]{flex-direction:row-reverse}.message.user-message[_ngcontent-%COMP%] .avatar-icon[_ngcontent-%COMP%]{color:#3f51b5}.message.user-message[_ngcontent-%COMP%] .bubble[_ngcontent-%COMP%]{background:#e8eaf6;color:#000000de}.message.assistant-message[_ngcontent-%COMP%] .avatar-icon[_ngcontent-%COMP%]{color:#4caf50}.message.assistant-message[_ngcontent-%COMP%] .bubble[_ngcontent-%COMP%]{background:#f5f5f5;color:#000000de}.empty-state[_ngcontent-%COMP%]{display:flex;flex-direction:column;align-items:center;justify-content:center;min-height:240px;color:#00000061}.empty-state[_ngcontent-%COMP%] mat-icon[_ngcontent-%COMP%]{font-size:48px;width:48px;height:48px;margin-bottom:12px}.empty-state[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{margin:0;font-size:14px}.loading-row[_ngcontent-%COMP%]{display:flex;align-items:center;gap:12px;padding:16px 0;color:#0000008a;font-size:14px}.error-row[_ngcontent-%COMP%]{display:flex;align-items:flex-start;gap:8px;padding:12px;border-radius:6px;background:#fff3e0;color:#e65100;font-size:14px;margin-top:8px}.error-row[_ngcontent-%COMP%] mat-icon[_ngcontent-%COMP%]{font-size:20px;width:20px;height:20px;flex-shrink:0}.input-area[_ngcontent-%COMP%]{padding:12px 16px;display:flex;gap:12px;align-items:flex-end}.input-area[_ngcontent-%COMP%] .message-input[_ngcontent-%COMP%]{flex:1;margin-bottom:0}@media (max-width: 600px){.chat-container[_ngcontent-%COMP%]{padding:8px}.input-area[_ngcontent-%COMP%]{flex-direction:column;align-items:stretch}.input-area[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{width:100%}}"]});let t=n;return t})();function Dxe(t,n){t&1&&(m(0,"div",2)(1,"mat-card",3)(2,"mat-card-content")(3,"div",4)(4,"mat-icon"),f(5,"info"),h(),m(6,"div")(7,"strong"),f(8,"AI features are disabled."),h(),m(9,"p"),f(10," To enable AI, set "),m(11,"code"),f(12,"aiEnabled: true"),h(),f(13," in "),m(14,"code"),f(15,"src/environments/environment.ts"),h(),f(16," and "),m(17,"code"),f(18,'"AiEnabled": true'),h(),f(19," in the API's "),m(20,"code"),f(21,"appsettings.json"),h(),f(22,". "),h()()()()()())}function Mxe(t,n){if(t&1){let e=q();m(0,"div",18)(1,"p",19),f(2,"Try asking:"),h(),m(3,"div",20)(4,"button",21),S("click",function(){k(e);let r=x(2);return T(r.input="Which department has the most employees?")}),f(5,"Which department has the most employees?"),h(),m(6,"button",21),S("click",function(){k(e);let r=x(2);return T(r.input="How many new hires joined this month?")}),f(7,"How many new hires joined this month?"),h(),m(8,"button",21),S("click",function(){k(e);let r=x(2);return T(r.input="What is the gender distribution?")}),f(9,"What is the gender distribution?"),h(),m(10,"button",21),S("click",function(){k(e);let r=x(2);return T(r.input="Who are the most recent hires?")}),f(11,"Who are the most recent hires?"),h()()()}}function Exe(t,n){if(t&1&&(m(0,"span",29),f(1),h()),t&2){let e=x().$implicit;g(),fe("",e.executionTimeMs,"ms")}}function Sxe(t,n){if(t&1&&(m(0,"div",24)(1,"mat-icon",25),f(2),h(),m(3,"div",26)(4,"div",27),f(5),h(),A(6,Exe,2,1,"span",28),h()()),t&2){let e=n.$implicit;G("user-message",e.role==="user")("assistant-message",e.role==="assistant"),g(2),N(e.role==="user"?"person":"analytics"),g(3),N(e.content),g(),v("ngIf",e.executionTimeMs)}}function kxe(t,n){if(t&1&&(m(0,"div",22),A(1,Sxe,7,7,"div",23),h()),t&2){let e=x(2);g(),v("ngForOf",e.messages)}}function Txe(t,n){t&1&&(m(0,"div",30),M(1,"mat-spinner",31),m(2,"span"),f(3,"Fetching live data and reasoning\u2026"),h()())}function Ixe(t,n){if(t&1&&(m(0,"div",32)(1,"mat-icon"),f(2,"error_outline"),h(),m(3,"span"),f(4),h()()),t&2){let e=x(2);g(4),N(e.error)}}function Axe(t,n){if(t&1){let e=q();m(0,"div",5)(1,"mat-card",6)(2,"mat-card-header")(3,"mat-icon",7),f(4,"analytics"),h(),m(5,"mat-card-title"),f(6,"HR AI Assistant"),h(),m(7,"mat-card-subtitle"),f(8,"Ask about your live workforce data \u2014 headcount, departments, recent hires"),h(),m(9,"div",8)(10,"button",9),S("click",function(){k(e);let r=x();return T(r.clear())}),m(11,"mat-icon"),f(12,"delete_sweep"),h()()()(),m(13,"mat-card-content"),A(14,Mxe,12,0,"div",10)(15,kxe,2,1,"div",11)(16,Txe,4,0,"div",12)(17,Ixe,5,1,"div",13),h(),M(18,"mat-divider"),m(19,"mat-card-actions",14)(20,"mat-form-field",15)(21,"mat-label"),f(22,"Question"),h(),m(23,"input",16),fn("ngModelChange",function(r){k(e);let o=x();return Mn(o.input,r)||(o.input=r),T(r)}),S("keydown",function(r){k(e);let o=x();return T(o.onKeydown(r))}),h()(),m(24,"button",17),S("click",function(){k(e);let r=x();return T(r.send())}),m(25,"mat-icon"),f(26,"send"),h(),f(27," Ask "),h()()()()}if(t&2){let e=x();g(14),v("ngIf",e.messages.length===0&&!e.loading),g(),v("ngIf",e.messages.length>0),g(),v("ngIf",e.loading),g(),v("ngIf",e.error),g(6),pn("ngModel",e.input),v("disabled",e.loading),g(),v("disabled",!e.input.trim()||e.loading)}}var kU=(()=>{let n=class n{constructor(){this.aiService=u(nd),this.destroy$=new z,this.aiEnabled=Ji.aiEnabled,this.messages=[],this.input="",this.loading=!1,this.error=""}send(){let i=this.input.trim();!i||this.loading||(this.messages.push({role:"user",content:i}),this.input="",this.loading=!0,this.error="",this.aiService.hrInsight(i).pipe(we(this.destroy$)).subscribe({next:r=>{this.messages.push({role:"assistant",content:r.answer,executionTimeMs:r.executionTimeMs}),this.loading=!1},error:r=>{this.error=r?.error?.detail??"Failed to get HR insights. Is the API running with AiEnabled: true?",this.loading=!1}}))}onKeydown(i){i.key==="Enter"&&!i.shiftKey&&(i.preventDefault(),this.send())}clear(){this.messages=[],this.error=""}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete()}};n.\u0275fac=function(r){return new(r||n)},n.\u0275cmp=E({type:n,selectors:[["app-ai-hr-insight"]],decls:3,vars:2,consts:[["class","ai-disabled-banner",4,"ngIf"],["class","chat-container",4,"ngIf"],[1,"ai-disabled-banner"],[1,"disabled-card"],[1,"disabled-content"],[1,"chat-container"],[1,"chat-card"],["mat-card-avatar",""],[1,"header-actions"],["mat-icon-button","","matTooltip","Clear conversation",3,"click"],["class","suggestions",4,"ngIf"],["class","message-list",4,"ngIf"],["class","loading-row",4,"ngIf"],["class","error-row",4,"ngIf"],[1,"input-area"],["appearance","outline",1,"message-input"],["matInput","","placeholder","Ask about your workforce data\u2026",3,"ngModelChange","keydown","ngModel","disabled"],["mat-fab","","extended","","color","primary",3,"click","disabled"],[1,"suggestions"],[1,"suggestions-label"],[1,"suggestion-list"],["mat-stroked-button","",3,"click"],[1,"message-list"],["class","message",3,"user-message","assistant-message",4,"ngFor","ngForOf"],[1,"message"],[1,"avatar-icon"],[1,"bubble-wrapper"],[1,"bubble"],["class","exec-time",4,"ngIf"],[1,"exec-time"],[1,"loading-row"],["diameter","24"],[1,"error-row"]],template:function(r,o){r&1&&(M(0,"page-header"),A(1,Dxe,23,0,"div",0)(2,Axe,28,7,"div",1)),r&2&&(g(),v("ngIf",!o.aiEnabled),g(),v("ngIf",o.aiEnabled))},dependencies:[Je,Un,Bt,Qr,di,Pt,Ro,It,kt,Xy,js,Tt,Rt,Bs,Ot,Ge,Ze,Fe,_t,Ft,Dx,Bi,Ci,Xt,gi,ai,Zt,Kt,Nr,Kr,Lt],styles:[".ai-disabled-banner[_ngcontent-%COMP%]{padding:16px}.ai-disabled-banner[_ngcontent-%COMP%] .disabled-card[_ngcontent-%COMP%]{max-width:720px;margin:0 auto;border-left:4px solid #2196f3}.ai-disabled-banner[_ngcontent-%COMP%] .disabled-card[_ngcontent-%COMP%] mat-card-content[_ngcontent-%COMP%]{padding:20px}.ai-disabled-banner[_ngcontent-%COMP%] .disabled-card[_ngcontent-%COMP%] .disabled-content[_ngcontent-%COMP%]{display:flex;align-items:flex-start;gap:16px}.ai-disabled-banner[_ngcontent-%COMP%] .disabled-card[_ngcontent-%COMP%] .disabled-content[_ngcontent-%COMP%] mat-icon[_ngcontent-%COMP%]{font-size:28px;width:28px;height:28px;color:#2196f3;flex-shrink:0;margin-top:2px}.ai-disabled-banner[_ngcontent-%COMP%] .disabled-card[_ngcontent-%COMP%] .disabled-content[_ngcontent-%COMP%] strong[_ngcontent-%COMP%]{font-size:16px}.ai-disabled-banner[_ngcontent-%COMP%] .disabled-card[_ngcontent-%COMP%] .disabled-content[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{margin:8px 0 0;color:#0009;font-size:14px;line-height:1.5}.ai-disabled-banner[_ngcontent-%COMP%] .disabled-card[_ngcontent-%COMP%] .disabled-content[_ngcontent-%COMP%] code[_ngcontent-%COMP%]{background:#0000000f;padding:2px 6px;border-radius:4px;font-family:monospace;font-size:13px}.chat-container[_ngcontent-%COMP%]{padding:16px;max-width:900px;margin:0 auto}.chat-card[_ngcontent-%COMP%] mat-card-header[_ngcontent-%COMP%]{display:flex;align-items:flex-start;padding:16px 16px 0}.chat-card[_ngcontent-%COMP%] mat-card-header[_ngcontent-%COMP%] .mat-mdc-card-header-text[_ngcontent-%COMP%]{flex:1}.chat-card[_ngcontent-%COMP%] mat-card-header[_ngcontent-%COMP%] .header-actions[_ngcontent-%COMP%]{margin-left:auto}.chat-card[_ngcontent-%COMP%] mat-card-content[_ngcontent-%COMP%]{padding:16px;min-height:320px;max-height:480px;overflow-y:auto}.suggestions[_ngcontent-%COMP%]{padding-bottom:16px}.suggestions[_ngcontent-%COMP%] .suggestions-label[_ngcontent-%COMP%]{font-size:13px;color:#0000008a;margin:0 0 10px}.suggestions[_ngcontent-%COMP%] .suggestion-list[_ngcontent-%COMP%]{display:flex;flex-wrap:wrap;gap:8px}.suggestions[_ngcontent-%COMP%] .suggestion-list[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{font-size:13px;height:32px}.message-list[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:12px}.message[_ngcontent-%COMP%]{display:flex;align-items:flex-start;gap:10px}.message[_ngcontent-%COMP%] .avatar-icon[_ngcontent-%COMP%]{font-size:22px;width:22px;height:22px;flex-shrink:0;margin-top:4px}.message[_ngcontent-%COMP%] .bubble[_ngcontent-%COMP%]{padding:10px 14px;border-radius:12px;font-size:14px;line-height:1.6;white-space:pre-wrap;word-break:break-word;max-width:100%}.message[_ngcontent-%COMP%] .bubble-wrapper[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:4px}.message[_ngcontent-%COMP%] .bubble-wrapper[_ngcontent-%COMP%] .exec-time[_ngcontent-%COMP%]{font-size:11px;color:#00000061;padding-left:4px}.message.user-message[_ngcontent-%COMP%]{flex-direction:row-reverse}.message.user-message[_ngcontent-%COMP%] .avatar-icon[_ngcontent-%COMP%]{color:#3f51b5}.message.user-message[_ngcontent-%COMP%] .bubble[_ngcontent-%COMP%]{background:#e8eaf6;color:#000000de}.message.assistant-message[_ngcontent-%COMP%] .avatar-icon[_ngcontent-%COMP%]{color:#4caf50}.message.assistant-message[_ngcontent-%COMP%] .bubble[_ngcontent-%COMP%]{background:#f5f5f5;color:#000000de}.loading-row[_ngcontent-%COMP%]{display:flex;align-items:center;gap:12px;padding:16px 0;color:#0000008a;font-size:14px}.error-row[_ngcontent-%COMP%]{display:flex;align-items:flex-start;gap:8px;padding:12px;border-radius:6px;background:#fff3e0;color:#e65100;font-size:14px;margin-top:8px}.error-row[_ngcontent-%COMP%] mat-icon[_ngcontent-%COMP%]{font-size:20px;width:20px;height:20px;flex-shrink:0}.input-area[_ngcontent-%COMP%]{padding:12px 16px;display:flex;gap:12px;align-items:flex-end}.input-area[_ngcontent-%COMP%] .message-input[_ngcontent-%COMP%]{flex:1;margin-bottom:0}@media (max-width: 600px){.chat-container[_ngcontent-%COMP%]{padding:8px}.input-area[_ngcontent-%COMP%]{flex-direction:column;align-items:stretch}.input-area[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{width:100%}.suggestion-list[_ngcontent-%COMP%]{flex-direction:column}}"]});let t=n;return t})();function Oxe(t,n){t&1&&(m(0,"div",2)(1,"mat-card",3)(2,"mat-card-content")(3,"div",4)(4,"mat-icon"),f(5,"info"),h(),m(6,"div")(7,"strong"),f(8,"AI features are disabled."),h(),m(9,"p"),f(10," To enable AI, set "),m(11,"code"),f(12,"aiEnabled: true"),h(),f(13," in "),m(14,"code"),f(15,"src/environments/environment.ts"),h(),f(16," and "),m(17,"code"),f(18,'"AiEnabled": true'),h(),f(19," in the API's "),m(20,"code"),f(21,"appsettings.json"),h(),f(22,". "),h()()()()()())}function Rxe(t,n){if(t&1&&(m(0,"div",17)(1,"mat-icon"),f(2,"info_outline"),h(),m(3,"span"),f(4,"Parsed filter: "),m(5,"em"),f(6),h()()()),t&2){let e=x(2);g(6),N(e.parsedExpression)}}function Pxe(t,n){t&1&&(m(0,"div",18),M(1,"mat-spinner",19),m(2,"span"),f(3,"Parsing query and searching\u2026"),h()())}function Fxe(t,n){if(t&1&&(m(0,"div",20)(1,"mat-icon"),f(2,"error_outline"),h(),m(3,"span"),f(4),h()()),t&2){let e=x(2);g(4),N(e.error)}}function Nxe(t,n){t&1&&(m(0,"th",33),f(1,"Employee #"),h())}function Lxe(t,n){if(t&1&&(m(0,"td",34),f(1),h()),t&2){let e=n.$implicit;g(),N(e.employeeNumber)}}function Vxe(t,n){t&1&&(m(0,"th",33),f(1,"Name"),h())}function Bxe(t,n){if(t&1&&(m(0,"td",34),f(1),h()),t&2){let e=n.$implicit;g(),_l("",e.firstName," ",e.lastName)}}function jxe(t,n){t&1&&(m(0,"th",33),f(1,"Position"),h())}function Hxe(t,n){if(t&1&&(m(0,"td",34),f(1),h()),t&2){let e=n.$implicit;g(),N(e.positionTitle)}}function zxe(t,n){t&1&&(m(0,"th",33),f(1,"Department"),h())}function Uxe(t,n){if(t&1&&(m(0,"td",34),f(1),h()),t&2){let e=n.$implicit;g(),N(e.departmentName)}}function $xe(t,n){t&1&&(m(0,"th",33),f(1,"Actions"),h())}function Wxe(t,n){if(t&1){let e=q();m(0,"td",34)(1,"button",35),S("click",function(){let r=k(e).$implicit,o=x(3);return T(o.viewEmployee(r.id))}),m(2,"mat-icon"),f(3,"visibility"),h()()()}}function Gxe(t,n){t&1&&M(0,"tr",36)}function qxe(t,n){t&1&&M(0,"tr",37)}function Yxe(t,n){if(t&1&&(m(0,"div",21)(1,"table",22),lt(2,23),A(3,Nxe,2,0,"th",24)(4,Lxe,2,1,"td",25),ot(),lt(5,26),A(6,Vxe,2,0,"th",24)(7,Bxe,2,2,"td",25),ot(),lt(8,27),A(9,jxe,2,0,"th",24)(10,Hxe,2,1,"td",25),ot(),lt(11,28),A(12,zxe,2,0,"th",24)(13,Uxe,2,1,"td",25),ot(),lt(14,29),A(15,$xe,2,0,"th",24)(16,Wxe,4,0,"td",25),ot(),A(17,Gxe,1,0,"tr",30)(18,qxe,1,0,"tr",31),h(),m(19,"p",32),f(20),h()()),t&2){let e=x(2);g(),v("dataSource",e.results),g(16),v("matHeaderRowDef",e.displayedColumns),g(),v("matRowDefColumns",e.displayedColumns),g(2),fe("",e.results.length," result(s) found")}}function Qxe(t,n){t&1&&(m(0,"div",38)(1,"mat-icon"),f(2,"person_search"),h(),m(3,"p"),f(4,"No employees matched your query"),h()())}function Kxe(t,n){t&1&&(m(0,"div",38)(1,"mat-icon"),f(2,"manage_search"),h(),m(3,"p"),f(4,"Type a natural language query to search employees"),h()())}function Zxe(t,n){if(t&1){let e=q();m(0,"div")(1,"mat-card",5)(2,"mat-card-header")(3,"mat-icon",6),f(4,"manage_search"),h(),m(5,"mat-card-title"),f(6,"Natural Language Employee Search"),h(),m(7,"mat-card-subtitle"),f(8,"Describe the employee you're looking for in plain English"),h()(),m(9,"mat-card-content")(10,"div",7)(11,"mat-form-field",8)(12,"mat-label"),f(13,"Search employees"),h(),m(14,"input",9),fn("ngModelChange",function(r){k(e);let o=x();return Mn(o.query,r)||(o.query=r),T(r)}),S("ngModelChange",function(){k(e);let r=x();return T(r.onQueryChange())}),h(),m(15,"mat-icon",10),f(16,"search"),h()(),m(17,"button",11),S("click",function(){k(e);let r=x();return T(r.clear())}),m(18,"mat-icon"),f(19,"clear"),h(),f(20," Clear "),h()(),A(21,Rxe,7,1,"div",12)(22,Pxe,4,0,"div",13)(23,Fxe,5,1,"div",14)(24,Yxe,21,4,"div",15)(25,Qxe,5,0,"div",16)(26,Kxe,5,0,"div",16),h()()()}if(t&2){let e=x();g(14),pn("ngModel",e.query),v("disabled",e.loading),g(3),v("disabled",!e.query&&e.results.length===0),g(4),v("ngIf",e.parsedExpression),g(),v("ngIf",e.loading),g(),v("ngIf",e.error),g(),v("ngIf",!e.loading&&e.results.length>0),g(),v("ngIf",!e.loading&&!e.error&&e.query&&e.results.length===0),g(),v("ngIf",!e.loading&&!e.error&&!e.query)}}var TU=(()=>{let n=class n{constructor(){this.aiService=u(nd),this.employeeService=u(rd),this.router=u(Ae),this.destroy$=new z,this.searchSubject=new z,this.aiEnabled=Ji.aiEnabled,this.query="",this.loading=!1,this.error="",this.parsedExpression="",this.results=[],this.displayedColumns=["employeeNumber","fullName","positionTitle","departmentName","actions"],this.searchSubject.pipe(Dt(600),je(i=>i.trim()?(this.loading=!0,this.error="",this.aiService.nlEmployeeSearch(i).pipe(ei(r=>(this.error=r?.error?.detail??"Failed to parse query. Is the API running with AiEnabled: true?",this.loading=!1,Q(null))))):(this.results=[],this.parsedExpression="",Q(null))),we(this.destroy$)).subscribe(i=>{if(!i){this.loading=!1;return}this.parsedExpression=i.parsedExpression,this.applyFilter(i)})}onQueryChange(){this.searchSubject.next(this.query)}applyFilter(i){let r={};i.firstName&&(r.FirstName=i.firstName),i.lastName&&(r.LastName=i.lastName),i.email&&(r.Email=i.email),i.employeeNumber&&(r.EmployeeNumber=i.employeeNumber),i.positionTitle&&(r.PositionTitle=i.positionTitle),this.employeeService.getAllPaged(I({pageNumber:1,pageSize:50},r)).subscribe({next:o=>{this.results=o.value,this.loading=!1},error:o=>{console.error("Error loading employees:",o),this.error="Failed to load employee results.",this.loading=!1}})}clear(){this.query="",this.results=[],this.parsedExpression="",this.error=""}viewEmployee(i){this.router.navigate(["/employees",i])}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete()}};n.\u0275fac=function(r){return new(r||n)},n.\u0275cmp=E({type:n,selectors:[["app-ai-nl-search"]],decls:3,vars:2,consts:[["class","ai-disabled-banner",4,"ngIf"],[4,"ngIf"],[1,"ai-disabled-banner"],[1,"disabled-card"],[1,"disabled-content"],[1,"search-card"],["mat-card-avatar",""],[1,"search-row"],["appearance","outline",1,"search-input"],["matInput","","placeholder","e.g. software engineers in IT department hired last year",3,"ngModelChange","ngModel","disabled"],["matSuffix",""],["mat-stroked-button","",3,"click","disabled"],["class","parsed-expression",4,"ngIf"],["class","loading-row",4,"ngIf"],["class","error-row",4,"ngIf"],["class","table-container",4,"ngIf"],["class","empty-state",4,"ngIf"],[1,"parsed-expression"],[1,"loading-row"],["diameter","24"],[1,"error-row"],[1,"table-container"],["mat-table","",1,"results-table",3,"dataSource"],["matColumnDef","employeeNumber"],["mat-header-cell","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","fullName"],["matColumnDef","positionTitle"],["matColumnDef","departmentName"],["matColumnDef","actions"],["mat-header-row","",4,"matHeaderRowDef"],["mat-row","",4,"matRowDef","matRowDefColumns"],[1,"result-count"],["mat-header-cell",""],["mat-cell",""],["mat-icon-button","","color","primary","matTooltip","View Employee",3,"click"],["mat-header-row",""],["mat-row",""],[1,"empty-state"]],template:function(r,o){r&1&&(M(0,"page-header"),A(1,Oxe,23,0,"div",0)(2,Zxe,27,9,"div",1)),r&2&&(g(),v("ngIf",!o.aiEnabled),g(),v("ngIf",o.aiEnabled))},dependencies:[Je,Bt,Qr,di,Pt,Ro,It,kt,js,Tt,Rt,Bs,Ot,Ge,Ze,Fe,_t,Ft,Bi,Ci,Xt,gi,Qa,ai,Zt,Kt,Sa,_a,va,wa,ya,ba,Da,xa,Ca,Ma,Ea,An,ur,Lt],styles:[".ai-disabled-banner[_ngcontent-%COMP%]{padding:16px}.ai-disabled-banner[_ngcontent-%COMP%] .disabled-card[_ngcontent-%COMP%]{max-width:720px;margin:0 auto;border-left:4px solid #2196f3}.ai-disabled-banner[_ngcontent-%COMP%] .disabled-card[_ngcontent-%COMP%] mat-card-content[_ngcontent-%COMP%]{padding:20px}.ai-disabled-banner[_ngcontent-%COMP%] .disabled-card[_ngcontent-%COMP%] .disabled-content[_ngcontent-%COMP%]{display:flex;align-items:flex-start;gap:16px}.ai-disabled-banner[_ngcontent-%COMP%] .disabled-card[_ngcontent-%COMP%] .disabled-content[_ngcontent-%COMP%] mat-icon[_ngcontent-%COMP%]{font-size:28px;width:28px;height:28px;color:#2196f3;flex-shrink:0;margin-top:2px}.ai-disabled-banner[_ngcontent-%COMP%] .disabled-card[_ngcontent-%COMP%] .disabled-content[_ngcontent-%COMP%] strong[_ngcontent-%COMP%]{font-size:16px}.ai-disabled-banner[_ngcontent-%COMP%] .disabled-card[_ngcontent-%COMP%] .disabled-content[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{margin:8px 0 0;color:#0009;font-size:14px;line-height:1.5}.ai-disabled-banner[_ngcontent-%COMP%] .disabled-card[_ngcontent-%COMP%] .disabled-content[_ngcontent-%COMP%] code[_ngcontent-%COMP%]{background:#0000000f;padding:2px 6px;border-radius:4px;font-family:monospace;font-size:13px}.search-card[_ngcontent-%COMP%] mat-card-content[_ngcontent-%COMP%]{padding:16px}.search-row[_ngcontent-%COMP%]{display:flex;gap:12px;align-items:flex-start;margin-bottom:8px}.search-row[_ngcontent-%COMP%] .search-input[_ngcontent-%COMP%]{flex:1}.search-row[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{height:56px;flex-shrink:0}.parsed-expression[_ngcontent-%COMP%]{display:flex;align-items:center;gap:6px;font-size:13px;color:#0000008a;margin-bottom:12px;padding:8px 12px;background:#0000000a;border-radius:4px}.parsed-expression[_ngcontent-%COMP%] mat-icon[_ngcontent-%COMP%]{font-size:16px;width:16px;height:16px}.table-container[_ngcontent-%COMP%]{margin-top:16px;overflow-x:auto}.results-table[_ngcontent-%COMP%]{width:100%}.result-count[_ngcontent-%COMP%]{font-size:13px;color:#0000008a;margin:8px 0 0;text-align:right}.loading-row[_ngcontent-%COMP%]{display:flex;align-items:center;gap:12px;padding:16px 0;color:#0000008a;font-size:14px}.error-row[_ngcontent-%COMP%]{display:flex;align-items:flex-start;gap:8px;padding:12px;border-radius:6px;background:#fff3e0;color:#e65100;font-size:14px;margin-top:8px}.error-row[_ngcontent-%COMP%] mat-icon[_ngcontent-%COMP%]{font-size:20px;width:20px;height:20px;flex-shrink:0}.empty-state[_ngcontent-%COMP%]{display:flex;flex-direction:column;align-items:center;justify-content:center;min-height:200px;color:#00000061}.empty-state[_ngcontent-%COMP%] mat-icon[_ngcontent-%COMP%]{font-size:48px;width:48px;height:48px;margin-bottom:12px}.empty-state[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{margin:0;font-size:14px}"]});let t=n;return t})();function Xxe(t,n){t&1&&(m(0,"div",2)(1,"mat-card",3)(2,"mat-card-content")(3,"div",4)(4,"mat-icon"),f(5,"info"),h(),m(6,"div")(7,"strong"),f(8,"AI features are disabled."),h(),m(9,"p"),f(10," To enable AI, set "),m(11,"code"),f(12,"aiEnabled: true"),h(),f(13," in "),m(14,"code"),f(15,"src/environments/environment.ts"),h(),f(16," and "),m(17,"code"),f(18,'"VectorSearchEnabled": true'),h(),f(19," in the API's "),m(20,"code"),f(21,"appsettings.json"),h(),f(22,". "),h()()()()()())}function Jxe(t,n){t&1&&(m(0,"div",16),M(1,"mat-spinner",17),m(2,"span"),f(3,"Searching with vector similarity\u2026"),h()())}function eCe(t,n){if(t&1&&(m(0,"div",18)(1,"mat-icon"),f(2,"error_outline"),h(),m(3,"span"),f(4),h()()),t&2){let e=x(2);g(4),N(e.error)}}function tCe(t,n){t&1&&(m(0,"th",32),f(1,"Match"),h())}function iCe(t,n){if(t&1&&(m(0,"td",33)(1,"span",34),f(2),h()()),t&2){let e=n.$implicit,i=x(3);g(2),N(i.scorePercent(e.score))}}function nCe(t,n){t&1&&(m(0,"th",32),f(1,"Position #"),h())}function rCe(t,n){if(t&1&&(m(0,"td",33),f(1),h()),t&2){let e=n.$implicit;g(),N(e.positionNumber)}}function oCe(t,n){t&1&&(m(0,"th",32),f(1,"Title"),h())}function aCe(t,n){if(t&1&&(m(0,"td",33),f(1),h()),t&2){let e=n.$implicit;g(),N(e.positionTitle)}}function sCe(t,n){t&1&&(m(0,"th",32),f(1,"Department"),h())}function lCe(t,n){if(t&1&&(m(0,"td",33),f(1),h()),t&2){let e=n.$implicit;g(),N(e.departmentName)}}function cCe(t,n){t&1&&(m(0,"th",32),f(1,"Salary Range"),h())}function dCe(t,n){if(t&1&&(m(0,"td",33),f(1),h()),t&2){let e=n.$implicit;g(),N(e.salaryRangeName)}}function uCe(t,n){t&1&&(m(0,"th",32),f(1,"Actions"),h())}function mCe(t,n){if(t&1){let e=q();m(0,"td",33)(1,"button",35),S("click",function(){let r=k(e).$implicit,o=x(3);return T(o.viewPosition(r.id))}),m(2,"mat-icon"),f(3,"visibility"),h()()()}}function hCe(t,n){t&1&&M(0,"tr",36)}function pCe(t,n){t&1&&M(0,"tr",37)}function fCe(t,n){if(t&1&&(m(0,"div",19)(1,"table",20),lt(2,21),A(3,tCe,2,0,"th",22)(4,iCe,3,1,"td",23),ot(),lt(5,24),A(6,nCe,2,0,"th",22)(7,rCe,2,1,"td",23),ot(),lt(8,25),A(9,oCe,2,0,"th",22)(10,aCe,2,1,"td",23),ot(),lt(11,26),A(12,sCe,2,0,"th",22)(13,lCe,2,1,"td",23),ot(),lt(14,27),A(15,cCe,2,0,"th",22)(16,dCe,2,1,"td",23),ot(),lt(17,28),A(18,uCe,2,0,"th",22)(19,mCe,4,0,"td",23),ot(),A(20,hCe,1,0,"tr",29)(21,pCe,1,0,"tr",30),h(),m(22,"p",31),f(23),h()()),t&2){let e=x(2);g(),v("dataSource",e.results),g(19),v("matHeaderRowDef",e.displayedColumns),g(),v("matRowDefColumns",e.displayedColumns),g(2),fe("",e.results.length," result(s) found")}}function gCe(t,n){t&1&&(m(0,"div",38)(1,"mat-icon"),f(2,"work_off"),h(),m(3,"p"),f(4,"No positions matched your query"),h()())}function _Ce(t,n){t&1&&(m(0,"div",38)(1,"mat-icon"),f(2,"travel_explore"),h(),m(3,"p"),f(4,"Describe a position to find semantic matches"),h()())}function bCe(t,n){if(t&1){let e=q();m(0,"div")(1,"mat-card",5)(2,"mat-card-header")(3,"mat-icon",6),f(4,"travel_explore"),h(),m(5,"mat-card-title"),f(6,"Vector Search \u2014 Positions"),h(),m(7,"mat-card-subtitle"),f(8,"Find positions using semantic similarity \u2014 describe what you're looking for"),h()(),m(9,"mat-card-content")(10,"div",7)(11,"mat-form-field",8)(12,"mat-label"),f(13,"Describe the position"),h(),m(14,"input",9),fn("ngModelChange",function(r){k(e);let o=x();return Mn(o.query,r)||(o.query=r),T(r)}),S("ngModelChange",function(){k(e);let r=x();return T(r.onQueryChange())}),h(),m(15,"mat-icon",10),f(16,"travel_explore"),h()(),m(17,"button",11),S("click",function(){k(e);let r=x();return T(r.clear())}),m(18,"mat-icon"),f(19,"clear"),h(),f(20," Clear "),h()(),A(21,Jxe,4,0,"div",12)(22,eCe,5,1,"div",13)(23,fCe,24,4,"div",14)(24,gCe,5,0,"div",15)(25,_Ce,5,0,"div",15),h()()()}if(t&2){let e=x();g(14),pn("ngModel",e.query),v("disabled",e.loading),g(3),v("disabled",!e.query&&e.results.length===0),g(4),v("ngIf",e.loading),g(),v("ngIf",e.error),g(),v("ngIf",!e.loading&&e.results.length>0),g(),v("ngIf",!e.loading&&!e.error&&e.query&&e.results.length===0),g(),v("ngIf",!e.loading&&!e.error&&!e.query)}}var IU=(()=>{let n=class n{constructor(){this.aiService=u(nd),this.router=u(Ae),this.destroy$=new z,this.searchSubject=new z,this.aiEnabled=Ji.aiEnabled,this.query="",this.loading=!1,this.error="",this.results=[],this.displayedColumns=["score","positionNumber","positionTitle","departmentName","salaryRangeName","actions"],this.searchSubject.pipe(Dt(600),je(i=>i.trim()?(this.loading=!0,this.error="",this.aiService.semanticPositionSearch(i).pipe(ei(r=>(this.error=r?.error?.detail??"Failed to search. Is the API running with VectorSearchEnabled: true?",this.loading=!1,Q(null))))):(this.results=[],Q(null))),we(this.destroy$)).subscribe(i=>{if(i===null){this.loading=!1;return}this.results=i,this.loading=!1})}onQueryChange(){this.searchSubject.next(this.query)}clear(){this.query="",this.results=[],this.error=""}viewPosition(i){this.router.navigate(["/positions",i])}scorePercent(i){return`${Math.round(i*100)}%`}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete()}};n.\u0275fac=function(r){return new(r||n)},n.\u0275cmp=E({type:n,selectors:[["app-ai-vector-search"]],decls:3,vars:2,consts:[["class","ai-disabled-banner",4,"ngIf"],[4,"ngIf"],[1,"ai-disabled-banner"],[1,"disabled-card"],[1,"disabled-content"],[1,"search-card"],["mat-card-avatar",""],[1,"search-row"],["appearance","outline",1,"search-input"],["matInput","","placeholder","e.g. senior software engineer with cloud experience",3,"ngModelChange","ngModel","disabled"],["matSuffix",""],["mat-stroked-button","",3,"click","disabled"],["class","loading-row",4,"ngIf"],["class","error-row",4,"ngIf"],["class","table-container",4,"ngIf"],["class","empty-state",4,"ngIf"],[1,"loading-row"],["diameter","24"],[1,"error-row"],[1,"table-container"],["mat-table","",1,"results-table",3,"dataSource"],["matColumnDef","score"],["mat-header-cell","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","positionNumber"],["matColumnDef","positionTitle"],["matColumnDef","departmentName"],["matColumnDef","salaryRangeName"],["matColumnDef","actions"],["mat-header-row","",4,"matHeaderRowDef"],["mat-row","",4,"matRowDef","matRowDefColumns"],[1,"result-count"],["mat-header-cell",""],["mat-cell",""],[1,"score-badge"],["mat-icon-button","","color","primary","matTooltip","View Position",3,"click"],["mat-header-row",""],["mat-row",""],[1,"empty-state"]],template:function(r,o){r&1&&(M(0,"page-header"),A(1,Xxe,23,0,"div",0)(2,bCe,26,8,"div",1)),r&2&&(g(),v("ngIf",!o.aiEnabled),g(),v("ngIf",o.aiEnabled))},dependencies:[Je,Bt,Qr,di,Pt,Ro,It,kt,js,Tt,Rt,Bs,Ot,Ge,Ze,Fe,_t,Ft,Bi,Ci,Xt,gi,Qa,ai,Zt,Kt,Sa,_a,va,wa,ya,ba,Da,xa,Ca,Ma,Ea,An,ur,Ow,Lt],styles:[".ai-disabled-banner[_ngcontent-%COMP%]{padding:16px}.ai-disabled-banner[_ngcontent-%COMP%] .disabled-card[_ngcontent-%COMP%]{max-width:720px;margin:0 auto;border-left:4px solid #2196f3}.ai-disabled-banner[_ngcontent-%COMP%] .disabled-card[_ngcontent-%COMP%] mat-card-content[_ngcontent-%COMP%]{padding:20px}.ai-disabled-banner[_ngcontent-%COMP%] .disabled-card[_ngcontent-%COMP%] .disabled-content[_ngcontent-%COMP%]{display:flex;align-items:flex-start;gap:16px}.ai-disabled-banner[_ngcontent-%COMP%] .disabled-card[_ngcontent-%COMP%] .disabled-content[_ngcontent-%COMP%] mat-icon[_ngcontent-%COMP%]{font-size:28px;width:28px;height:28px;color:#2196f3;flex-shrink:0;margin-top:2px}.ai-disabled-banner[_ngcontent-%COMP%] .disabled-card[_ngcontent-%COMP%] .disabled-content[_ngcontent-%COMP%] strong[_ngcontent-%COMP%]{font-size:16px}.ai-disabled-banner[_ngcontent-%COMP%] .disabled-card[_ngcontent-%COMP%] .disabled-content[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{margin:8px 0 0;color:#0009;font-size:14px;line-height:1.5}.ai-disabled-banner[_ngcontent-%COMP%] .disabled-card[_ngcontent-%COMP%] .disabled-content[_ngcontent-%COMP%] code[_ngcontent-%COMP%]{background:#0000000f;padding:2px 6px;border-radius:4px;font-family:monospace;font-size:13px}.search-card[_ngcontent-%COMP%] mat-card-content[_ngcontent-%COMP%]{padding:16px}.search-row[_ngcontent-%COMP%]{display:flex;gap:12px;align-items:flex-start;margin-bottom:8px}.search-row[_ngcontent-%COMP%] .search-input[_ngcontent-%COMP%]{flex:1}.search-row[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{height:56px;flex-shrink:0}.table-container[_ngcontent-%COMP%]{margin-top:16px;overflow-x:auto}.results-table[_ngcontent-%COMP%]{width:100%}.score-badge[_ngcontent-%COMP%]{display:inline-block;padding:2px 8px;border-radius:12px;background:#e8f5e9;color:#2e7d32;font-size:13px;font-weight:500}.result-count[_ngcontent-%COMP%]{font-size:13px;color:#0000008a;margin:8px 0 0;text-align:right}.loading-row[_ngcontent-%COMP%]{display:flex;align-items:center;gap:12px;padding:16px 0;color:#0000008a;font-size:14px}.error-row[_ngcontent-%COMP%]{display:flex;align-items:flex-start;gap:8px;padding:12px;border-radius:6px;background:#fff3e0;color:#e65100;font-size:14px;margin-top:8px}.error-row[_ngcontent-%COMP%] mat-icon[_ngcontent-%COMP%]{font-size:20px;width:20px;height:20px;flex-shrink:0}.empty-state[_ngcontent-%COMP%]{display:flex;flex-direction:column;align-items:center;justify-content:center;min-height:200px;color:#00000061}.empty-state[_ngcontent-%COMP%] mat-icon[_ngcontent-%COMP%]{font-size:48px;width:48px;height:48px;margin-bottom:12px}.empty-state[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{margin:0;font-size:14px}"]});let t=n;return t})();var AU=[{path:"",component:l6,canActivate:[pI],canActivateChild:[pI],children:[{path:"",redirectTo:"dashboard",pathMatch:"full"},{path:"dashboard",component:g6},{path:"employees",component:A6},{path:"employees/create",component:mA,canActivate:[u_]},{path:"employees/edit/:id",component:mA,canActivate:[u_]},{path:"employees/:id",component:O6},{path:"departments",component:K6},{path:"departments/create",component:hA,canActivate:[u_]},{path:"departments/edit/:id",component:hA,canActivate:[u_]},{path:"departments/:id",component:Z6},{path:"positions",component:iU},{path:"positions/create",component:pA,canActivate:[m_]},{path:"positions/edit/:id",component:pA,canActivate:[m_]},{path:"positions/:id",component:rU},{path:"salary-ranges",component:aU},{path:"salary-ranges/create",component:fA,canActivate:[m_]},{path:"salary-ranges/edit/:id",component:fA,canActivate:[m_]},{path:"salary-ranges/:id",component:lU},{path:"profile",children:[{path:"overview",component:MU},{path:"settings",component:EU},{path:"",redirectTo:"overview",pathMatch:"full"}]},{path:"ai",children:[{path:"assistant",component:SU},{path:"hr-insight",component:kU},{path:"nl-search",component:TU},{path:"vector-search",component:IU},{path:"",redirectTo:"assistant",pathMatch:"full"}]},{path:"ai-chat",redirectTo:"ai/assistant",pathMatch:"full"},{path:"403",component:_6},{path:"404",component:b6},{path:"500",component:v6}]},{path:"auth",component:c6,children:[{path:"register",component:y6}]},{path:"callback",component:x6},{path:"**",redirectTo:"dashboard"}];var OU=(t,n)=>{let e=u(Ht);if(!e.isAuthenticated())return n(t);let i=e.getAccessToken();if(!i)return n(t);let r=t.clone({setHeaders:{Authorization:`Bearer ${i}`}});return n(r)};var RU={providers:[r1(),{provide:TI,useValue:Ji.baseUrl},CL(),hc(()=>u(Ht).initAuth()),hc(()=>u(i8).load()),hc(()=>u(e8).load()),FE(NE([OU,...c8])),mS(AU,hS({scrollPositionRestoration:"enabled",anchorScrolling:"enabled"}),Rv()),lj(),J5(X5()),J3({loader:ej({prefix:"i18n/",suffix:".json"})}),Eb(Bc.forRoot()),w3([...H3()]),{provide:Mg,useFactory:jz,deps:[ca],multi:!0},{provide:Pc,deps:[Cz],useFactory:t=>t.getPaginatorIntl()},{provide:GS,useValue:{appearance:"outlined"}},GV({parse:{dateInput:"yyyy-MM-dd"},display:{dateInput:"yyyy-MM-dd",monthYearLabel:"yyyy MMM",dateA11yLabel:"LL",monthYearA11yLabel:"yyyy MMM"}}),_3({parse:{dateInput:"yyyy-MM-dd",yearInput:"yyyy",monthInput:"MMMM",datetimeInput:"yyyy-MM-dd HH:mm",timeInput:"HH:mm"},display:{dateInput:"yyyy-MM-dd",yearInput:"yyyy",monthInput:"MMMM",datetimeInput:"yyyy-MM-dd HH:mm",timeInput:"HH:mm",monthYearLabel:"yyyy MMMM",dateA11yLabel:"LL",monthYearA11yLabel:"MMMM yyyy",popupHeaderDateLabel:"MMM dd, E"}})]};var PU=(()=>{let n=class n{constructor(){this.preloader=u(t8),this.settings=u(ha)}ngOnInit(){this.settings.setDirection(),this.settings.setTheme()}ngAfterViewInit(){this.preloader.hide()}};n.\u0275fac=function(r){return new(r||n)},n.\u0275cmp=E({type:n,selectors:[["app-root"]],decls:1,vars:0,template:function(r,o){r&1&&M(0,"router-outlet")},dependencies:[wl],encapsulation:2});let t=n;return t})();TE(PU,RU).catch(t=>console.error(t)); From 716c003726bf993a291ad9be7abdc05bab8c38f7 Mon Sep 17 00:00:00 2001 From: workcontrolgit Date: Wed, 22 Apr 2026 11:38:53 +0000 Subject: [PATCH 7/8] =?UTF-8?q?Deploying=20to=20gh-pages=20from=20@=20work?= =?UTF-8?q?controlgit/AngularNetTutorial@3e739427f717a3c279b1aa9669b3b2459?= =?UTF-8?q?f594754=20=F0=9F=9A=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- 404.html | 5 +- data/menu.json | 8 +- index.html | 5 +- main-UBMTBLRM.js => main-EXXUWAY3.js | 166 +++++++++++++-------------- 4 files changed, 91 insertions(+), 93 deletions(-) rename main-UBMTBLRM.js => main-EXXUWAY3.js (91%) diff --git a/404.html b/404.html index b6277bf..1dfa5c0 100644 --- a/404.html +++ b/404.html @@ -7,9 +7,8 @@ - - + - - +